1 2008-12-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3 * DateTimePicker.cs: Handle the "MMMM" month format.
6 2008-12-23 Ivan N. Zlatev <contact@i-nz.net>
9 - Make ReBind private and refactor various calls to call ReBind
10 instead of ClearBinding/DoBinding
11 - Rebind when the column collection changes
12 * DataGridViewColumnCollection.cs:
13 - Leave the rebinding on change to be handled by the DataGridView.
15 2008-12-23 Jonathan Pobst <monkey@jpobst.com>
17 * DataGridView.cs: Add a ReBind convenience method.
18 * DataGridViewColumnCollection.cs: Rebind when a column is added.
21 2008-12-23 Neville Gao <nevillegao@gmail.com>
23 * StatusBar.cs: Modified argument variable.
24 * SplitContainer.cs: Control enabled to support accessibility.
27 2008-12-22 Jonathan Pobst <monkey@jpobst.com>
29 * ToolStripMenuItem.cs: Guard against an NRE.
32 2008-12-22 Mario Carrion <mcarrion@novell.com>
34 * Control.cs: AccessibleXXXX properties don't return
35 AccessibleObject.XXXX, instead a local referece is returned.
37 2008-12-22 Neville Gao <nevillegao@gmail.com>
39 * PrintPreviewControl.cs: Added internal properties to support
43 2008-12-19 Mario Carrion <mcarrion@novell.com>
45 * Control.cs: Reverted r121561.
47 2008-12-19 Andrés G. Aragoneses <aaragoneses@novell.com>
49 * X11DesktopColors.cs: Since r121873 we don't need gtk a11y checks here,
50 it has been moved to the bridge.
52 2008-12-18 Brad Taylor <brad@getcoded.net>
54 * DateTimePicker.cs: Add a few UIA specific events, and a couple
55 internal methods useful for UIA.
57 2008-12-18 Mario Carrion <mcarrion@novell.com>
59 * ListBox.cs: Fixed GetItemRectangle when MultiColumn is true.
62 2008-12-17 Mike Gorse <mgorse@novell.com>
64 * ListView.cs, ListViewItem.cs: Send OnUIAFocusedItemChanged if an
65 item's Focused property is set.
67 2008-12-17 Sandy Armstrong <sanfordarmstrong@gmail.com>
71 * TreeNodeCollection.cs: Add events for UIA support:
72 UIACheckBoxesChanged, UIALabelEditChanged, UIANodeTextChanged, and
75 2008-12-17 Bill Holmes <billholmes54@gmail.com>
77 * ListViewItem.cs (ListViewSubItem.ctor): Initalizing the
78 SubItemStyle member field.
80 Contributed under MIT/X11 license.
82 2008-12-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
84 * ListBox.cs: In MultiColumn mode don't use top_index to calculate the
85 y coord, since it's useless in this case, and we need to rely only on
86 the number of rows and ItemHeight to compute this value.
87 Fixes part of #257471.
89 2008-12-15 Mike Gorse <mgorse@novell.com>
91 * StatusBar.cs: Send OnUIACollectionChanged in Remove().
93 2008-12-15 Mario Carrion <mcarrion@novell.com>
95 * Control.cs: Accessibility properties instantiate AccessibilityObject when
99 2008-12-15 Brad Taylor <brad@getcoded.net>
101 * ToolStripItem.cs: Add a UIA specific event for listening for when a
102 ToolStripItem becomes selected or deselected.
104 2008-12-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
106 * MonthCalendar.cs: Select the date in MouseDown, not in MouseUp, as
107 .net does. Use the date in the point of the mouse move coords as the
108 new range as well, if the left button of the mouse is being pressed.
111 2008-12-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
113 * MonthCalendar.cs: When modifying either AnnuallyBoldedDates,
114 MonthlyBoldedDates or BoldedDates call UpdateBoldedDates, to
115 effectively repaint the control.
116 Fixes the remaining bits of #417961.
118 2008-12-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
120 * MonthCalendar.cs: When setting MaxDate/MinDate, adjust the selected
121 range to contain only dates within the new possible range.
122 Fixes part of #417961.
124 2008-12-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
126 * MaskedTextBox.cs: MaskedTextService.Replace doesn't expect the
127 length of the text, but the end position, so we need to substract 1 to
128 have a valid value. Also, in the same InputText method, don't use
129 SelectionLength as the length of the text, since the selected text
130 could actually be empty, but we need to set the value anyway.
133 2008-12-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
135 * TextBox.cs: Don't do any auto complete task if the custom source is
136 null or empty. Also avoid duplication of code.
139 2008-12-09 Ivan N. Zlatev <contact@i-nz.net>
141 * DataGridView.cs: Refresh column sizes when new rows are added.
144 2008-12-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
145 * RichTextBox.cs: When parsing the contents of a rtf file, don't call
146 Split to create a line - we are already doing this, by _adding_ a new
147 one when rtf_cursor_x is 0 (this field gets this value just after we
148 receive the newline param as true). This avoids having a proportional number
149 of empty lines in the end of the rich text box.
152 2008-12-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
154 * RichTextBox.cs: When saving the contents as a plain text, don't add
155 a new line for every Line structure, since the data in Document
156 already contains the new line characters. This avoids duplicated new
157 lines using the Save methods.
160 2008-12-09 Sandy Armstrong <sanfordarmstrong@gmail.com>
162 * TreeView.cs: Expose ScrollBars as internal properties, for use by UIA
163 framework. Fixes bug #457678.
165 2008-12-08 Ivan N. Zlatev <contact@i-nz.net>
167 * DataGridViewRow.cs: Prevent an exception on a not yet databound grid,
168 where datasource is null.
169 [Fixes exception reported in bug 441240]
171 2008-12-08 Ivan N. Zlatev <contact@i-nz.net>
173 * DataGridView.cs: EndEdit validation fixes.
175 2008-12-08 Ivan N. Zlatev <contact@i-nz.net>
177 * DataGridView.cs: This is the cool patch that adds support for
178 actually updating the data in the databinding backend after editing.
179 With bonus firing and handling the DataError event.
181 2008-12-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
183 * Line.cs: When calculating the text tags's Shift value, store it as
184 pixels instead of points. This way we can actually handle different
185 fonts in the same RichTextBox, as well as the right size of the caret.
186 Fixes part of #351938.
188 2008-12-08 Ivan N. Zlatev <contact@i-nz.net>
190 * DataGridViewCheckBoxCell.cs: Fix to make it work. Wrong value was
191 casted to CheckState causing InvalidCastExceptions.
193 2008-12-08 Ivan N. Zlatev <contact@i-nz.net>
195 * DataGridView.cs: Fix the DataGridViewEditMode.EditOnEnter behavior
196 to not depend on the item being clicked.
198 2008-12-08 Ivan N. Zlatev <contact@i-nz.net>
200 * DataGridView.cs: Implement NotifyCurrentCellDirty, so that it no
201 longer throws a NotImplementedException.
203 2008-12-08 Ivan N. Zlatev <contact@i-nz.net>
205 * DataGridView.cs: Set EditingControlFormattedValue when preparing an
206 IDataGridViewEditingControl for editing.
208 2008-12-08 Ivan N. Zlatev <contact@i-nz.net>
210 * DataGridViewComboBoxCell.cs: Implement data binding support.
212 2008-12-08 Ivan N. Zlatev <contact@i-nz.net>
214 * DataGridView.cs: Use the CurrencyManager to update the data source
215 binding position instead of casting the data sourcde to BindingSource.
216 This enables position updating for other type of data sources.
218 2008-12-08 Ivan N. Zlatev <contact@i-nz.net>
220 * ComboBox.cs: Update the SelectedIndex before updating the Text
221 in OnDisplayMemberChanged.
223 2008-12-07 Ivan N. Zlatev <contact@i-nz.net>
225 * DataGridView.cs: Fix our support for IDataGridViewEditingControl.
228 2008-12-06 Ivan N. Zlatev <contact@i-nz.net>
230 * DataGridView.cs: Sorting fixes:
231 - Be strict when sorting is enabled.
232 - If there is a data source delegate the sorting request.
234 2008-12-06 Ivan N. Zlatev <contact@i-nz.net>
236 * Binding.cs: When converting the data also try with the destination
237 type typeconverter. This indirectly adds support for Nullable types
238 in our databinding layer.
240 2008-12-06 Ivan N. Zlatev <contact@i-nz.net>
242 * DataGridView.cs: When cell editing is finished focus back the
243 DataGridView. Fixes keyboard navigation post-editing.
245 2008-12-06 Ivan N. Zlatev <contact@i-nz.net>
247 * DataGridView.cs: Fix the cell editing by delaying the currentCell
248 setting to after EndEdit is called for the old cell.
250 2008-12-06 Ivan N. Zlatev <contact@i-nz.net>
252 * BindingSource.cs: Reset the bindings. Fixes a NotWorking test.
254 2008-12-06 Ivan N. Zlatev <contact@i-nz.net>
256 * XplatUIX11.cs: Send WM_HELP only to the focused window.
258 2008-12-05 Ivan N. Zlatev <contact@i-nz.net>
260 * CurrencyManager.cs: Fix exceptions when resetting the data source
261 for the same time (e.g. in ComboBox):
262 - Do not set the list position if we are still transferring data
263 - When resetting the list firstly push the data then update the
265 * Binding.cs: Check BindingManager.Position == -1 instead of
266 BindingManager.Current == null in order to avoid unexpected
269 2008-12-05 Brad Taylor <brad@getcoded.net>
271 * MonthCalendar.cs: Add UIA specific events so that we can know when
272 the selection changes, and when MaxSelectedCount changes.
274 2008-12-05 Ivan N. Zlatev <contact@i-nz.net>
276 * DataGridView.cs: Cleanup rows_displayed out of OnPaint. It's not
279 2008-12-05 Ivan N. Zlatev <contact@i-nz.net>
281 * DataGridView.cs: Fix scrolling and selection of cells/rows prior
282 to the control being drawn for the first time by:
283 - Implement DisplayedRowsCount to not rely on the control being
284 already painted. Also added support for the partial row flag.
285 - Fix scrolling to take into account partial rows and scroll to
289 2008-12-05 Ivan N. Zlatev <contact@i-nz.net>
291 * DataGridView.cs: Do not reset the CurrentCell when the handle is
292 created if the user has already set it.
294 2008-12-05 Ivan N. Zlatev <contact@i-nz.net>
296 * DataGridView.cs: Fix CurrentCell to actually select the cell.
298 2008-12-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
300 * XplatUIX11.cs: Add support to RichTextFormat by reading it as ascii
301 text and then let the underneath users of IDataObject interpret and
305 2008-12-01 Ivan N. Zlatev <contact@i-nz.net>
307 * DataGridView.cs: Fix my previous commit to actually update what it
310 2008-12-01 Ivan N. Zlatev <contact@i-nz.net>
312 * DataGridView.cs: Ensure that when a row is removed the all the
313 current row/column/cell get updated. Fixes multiple exceptions.
315 2008-12-01 Ivan N. Zlatev <contact@i-nz.net>
317 * DataGridView.cs: Fix scrolling to the current cell when key navigation
321 2008-12-01 Ivan N. Zlatev <contact@i-nz.net>
323 * DataGridView.cs, DataGridViewCell.cs: Fire CellStateChanged events.
324 * DataGridViewCell.cs: Set the cell as selected prior to setting the
326 [Fixes issue 1 in bug #443560]
328 2008-12-01 Ivan N. Zlatev <contact@i-nz.net>
330 * DataGridView.cs: Invalidate after the current row/column seletion
334 2008-12-01 Ivan N. Zlatev <contact@i-nz.net>
336 * DataGridView.cs: Refresh the data if the data list is reset, etc.
338 2008-12-01 Ivan N. Zlatev <contact@i-nz.net>
340 * DataGridView.cs: Handle datasource state changes:
341 - IBindingList - list changes
342 - BindingSource - list changed and datasource changes
344 2008-11-30 Ivan N. Zlatev <contact@i-nz.net>
346 * DataGridView.cs: Select the first cell when databound.
347 Visually select when CurrentCell is set.
349 2008-11-30 Ivan N. Zlatev <contact@i-nz.net>
351 * DataGridView.cs: Set the current cell before raising CellClick.
353 2008-11-30 Ivan N. Zlatev <contact@i-nz.net>
355 * DataGridView.cs: Cleanup MoveCurrentCell to not fire any CellEnter,
356 CellLeave events as this is already done in SetCurrentCellAddressCore.
358 2008-11-30 Ivan N. Zlatev <contact@i-nz.net>
360 * DataGridView.cs: Set the minimum size for the columns to be the
361 width of their header, so that the columns don't get squashed
364 2008-11-30 Ivan N. Zlatev <contact@i-nz.net>
366 * DataGridView.cs: After the data is bound PerformLayout, so that
367 the columns get autosized.
369 2008-11-30 Ivan N. Zlatev <contact@i-nz.net>
371 * DataGridView.cs: Move all currentCell setting code into
372 one central place - SetCurrentCellAddressCore. That way the
373 current cell is properly updated when programatically set.
374 Fire RowEnter/Leave events.
376 2008-11-30 Ivan N. Zlatev <contact@i-nz.net>
378 * DataGridView.cs: Update the CurrencyManager.Position, so that
379 when a BindingSource is used BindingSource.Current will be correct.
381 2008-11-30 Ivan N. Zlatev <contact@i-nz.net>
383 * GroupBoxRenderer.cs: Fix when VisualStyles disabled:
384 - No caption text is drawn because Color.Empty is used.
385 - Fix top and height off by 1.
387 2008-11-30 Ivan N. Zlatev <contact@i-nz.net>
389 * DataGridViewRow.cs: Implement DataBoundItem.
391 2008-11-30 Ivan N. Zlatev <contact@i-nz.net>
393 * BindingSource.cs: Return null for Current if there is no data present.
395 2008-11-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
397 * MenuAPI.cs: Add a Menu.SelectedItem null check when navigating the
398 menus using the arrow keys. Also when handling the left arrow key, don't
399 assign the current menu to the parent one, if the parent is null.
402 2008-11-24 Everaldo Canuto <ecanuto@novell.com>
404 * PrintPreviewDialog.cs: Fix toolbar size, height must be 26. Fixes bug
407 2008-11-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
410 * ScrollableControl.cs: Simplify the code to manually set the size of
411 the thum area, avoiding duplication of code, and also preserving the
412 right value for different code paths - this can happen when size
413 changes are made to the scrollbar after setting LargeChange, Maximum
414 or related properties for the ScrollBar.
416 2008-11-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
418 * ScrollableControl.cs: When scrolling, don't invalidate the entire
419 area, and call to XplatUIX11.ScrollWindow instead. This is exactly
420 what .Net does: copy the visible area, and only invalidate the part of
421 the area that wasn't visible before scrolling.
424 2008-11-24 Jonathan Pobst <monkey@jpobst.com>
426 * DataGridView.cs: Listen for a DataTable's TableCleared event so we
427 can clear ourselves when it is raised, we don't have a newrowindex
428 if we don't have any columns.
429 * DataGridViewRowCollection.cs: Ensure we always delete all the rows,
430 re-index after each delete so the NewRow will have the correct index.
433 2008-11-24 Jonathan Pobst <monkey@jpobst.com>
435 * Form.cs: Don't change min/max size if it is empty.
438 2008-11-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
441 * ScrollableControl.cs: When the manual thumb size is used, the
442 maximum allowed value should depend on that thumb size, instead of
443 LargeChange (using the maximum - LargeChange + 1 value). But
444 LargeChange should be used normally when incrementing/decrementing.
445 Fixes the remaining part of #441546.
447 2008-11-23 Andreia Gaita <avidigal@novell.com>
449 * WebBrowser.cs, WebBrowserBase.cs: Delay loading of DocumentStream
450 until an about:blank has been loaded (according to spec). Fix
451 ScrollbarsEnabled to set when a document is loaded (since we use js
452 for it). Fix url so it reflects the current loading document and not
453 the previous one. Send StatusChanged events.
455 2008-11-23 Andreia Gaita <avidigal@novell.com>
457 * Application.cs: If a message comes in for an embedded control
458 (like webbrowser) when we're capturing the keyboard, release the
459 capture and continue.
462 2008-11-22 Andreia Gaita <avidigal@novell.com>
464 * XplatUI.cs: Only use PlatformID.MacOSX enum when not building on VS
466 2008-11-21 Andreia Gaita <avidigal@novell.com>
468 * WebBrowser.cs, HtmlDocument.cs: Fixes for #428172
470 2008-11-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
473 * ScrollableControl.cs: Set manually the thumb size for the
474 ScrollableControl scrollbars, so any further changes to the underneath
475 scrollbars respect the original size.
476 Fixes part of #441546.
478 2008-11-21 Geoff Norton <gnorton@novell.com>
480 * XplatUI.cs: Ensure that we can run on .net 2.0 with mono 2.2 where
481 PlatformID.MacOSX now exists.
483 2008-11-20 Jonathan Pobst <monkey@jpobst.com>
485 * TextBoxBase.cs: Provide a default implementation for ChangeBackColor.
486 Having something internal abstract isn't very nice for people who want
487 to inherit from this class.
489 2008-11-20 Jonathan Pobst <monkey@jpobst.com>
491 * ToolStripItem.cs: Don't crash if ImageIndex or ImageKey is set to an
492 invalid value. Just return null for the Image, and use the ImageList's
493 ImageSize for calculations.
495 2008-11-20 Jonathan Pobst <monkey@jpobst.com>
497 * ComboBox.cs: Call HideWindow instead of Hide when closing the dropdown
498 through DroppedDown so the proper events get called and state gets reset.
501 2008-11-18 Jonathan Pobst <monkey@jpobst.com>
503 * DataGridViewColumnCollection.cs: Make sure we re-index the columns after
504 the collection is modified.
506 2008-11-17 Jonathan Pobst <monkey@jpobst.com>
508 * DomainUpDown.cs: Remove string cache and reflection optimizations. They
509 aren't always correct, and fixing them for every case is not worth the
510 negligible benefit they provide.
513 2008-11-17 Jonathan Pobst <monkey@jpobst.com>
515 * DataGridView.cs: We should never add actual cells to the RowTemplate.
516 Internally, use RowTemplateFull to give us a new row with cells.
517 * DataGridViewColumnCollection.cs: Clear Rows when we clear Columns.
518 * DataGridViewRowCollection.cs: Use RowTemplateFull.
520 2008-11-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
522 * XplatUIX11.cs: Forms without borders should be able to change its
523 size - specially they should be able to be maximized, adding the
524 respective MotifFunctions.Resize bit when setting window properties as
525 well as *not* marking the Hwnd as size fixed.
528 2008-11-12 Jonathan Pobst <monkey@jpobst.com>
530 * DataGridViewCellStyle.cs: Allow SelectionBackColor to have
534 2008-11-11 Jonathan Pobst <monkey@jpobst.com>
536 * DataGridView.cs: Add internal to OnAutoSizeColumnModeChanged.
537 * DataGridViewColumn.cs: Recalculate columns when AutoSizeMode changes. Raise
538 AutoSizeColumnModeChanged.
541 2008-11-11 Jonathan Pobst <monkey@jpobst.com>
543 * DataGridViewRowCollection.cs: Guard against the user deleting the
544 NewRow. Add an internal delete so we can still delete it.
545 * DataGridView.cs: Use the new internal delete when deleting the NewRow.
548 2008-11-10 Jonathan Pobst <monkey@jpobst.com>
550 * TextControl.cs: Add some order of operation to our math so
551 we don't end up with a negative height for our invalidate rect.
554 2008-11-10 Jonathan Pobst <monkey@jpobst.com>
556 * Control.cs: When our enabled changes, notify our implicit children
557 controls as well as our regular controls.
560 2008-11-08 Andreia Gaita <shana@jitted.com>
562 * HtmlElement.cs: Small code cleanup
564 2008-11-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
566 * BindingNavigator.cs: MoveFirstItem should be enabled only if
567 position is larger than 0, not only different than 0. Also Position
568 and Count items should be enabled if the BindingSource is non null and
572 2008-11-05 Jonathan Pobst <monkey@jpobst.com>
574 * TabControl.cs: Don't raise SelectedIndexChanged until we have
575 actually modified the tab collection, so TabCount will be correct.
578 2008-11-05 Sandy Armstrong <sanfordarmstrong@gmail.com>
580 * ListViewItem.cs: Mark ListViewSubItem.UIATextChanged event as
581 NonSerialized to fix serialization of ListViewItem.
583 2008-11-04 Mike Gorse <mgorse@novell.com>
585 * ListView.cs: Call OnUIAFocusedItemChanged after completing the
586 focus change, and always call in SetFocusedItem.
587 * ListBox.cs: Add UIAFocusedItemChanged as in ListView.
589 2008-11-04 Jonathan Pobst <monkey@jpobst.com>
591 * ComboBox.cs: Only call OnDrawItem when we are using an OwnerDraw
592 mode. Based on a patch by John Mortlock.
595 2008-11-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
597 * ListView.cs: Use the UsingGroups property where needed, instead of
598 duplicating the check in other places.
600 2008-11-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
602 * ListView.cs: When calculating layout, refresh the count of items
603 belonging to the default item, insteas of doing it only one time. This
604 was already working fine for icon views, not not for details.
607 2008-11-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
611 * ThemeWin32Classic.cs: Don't render Tile view if there wasn't a call
612 to Applicatin.EnableVisualStyles, and use LargeIcon view, as .net
616 2008-11-03 Sandy Armstrong <sanfordarmstrong@gmail.com>
618 * ListView.cs: Wrap call to OnUIAFocusedItemChanged with #if NET_2_0.
620 2008-11-03 Sandy Armstrong <sanfordarmstrong@gmail.com>
622 * ListView.cs: Add internal UIAFocusedItemChanged event. Fixes bug
623 #441280, patch by Mike Gorse <mgorse@novell.com>.
625 2008-11-03 Jonathan Pobst <monkey@jpobst.com>
627 * TreeView.cs: When doing ExpandAll, don't scroll to the bottom
628 if there is no scrollbar.
631 2008-11-03 Jonathan Pobst <monkey@jpobst.com>
633 * ProgressBar.cs, ThemeWin32Classic.cs, ThemeVisualStyles.cs: Commit
634 patch from Andy Hume that fixes many issues with ProgressBar.
637 2008-11-03 Jonathan Pobst <monkey@jpobst.com>
639 * Form.cs: Don't allow MinimumSize and MaximumSize to conflict.
642 2008-11-03 Sandy Armstrong <sanfordarmstrong@gmail.com>
646 * NumericUpDown.cs: Internal events added to UpDownBase:
647 UIAUpButtonClick and UIADownButtonClick. Patch by Neville Gao
650 2008-11-03 Sandy Armstrong <sanfordarmstrong@gmail.com>
652 * ToolStripLabel.cs: Internal event added: UIAIsLinkChanged.
654 2008-11-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
657 * ThemeWin32Classic.cs: Don't use groups nor insertion mark in
658 Application.EnableVisualStyles hasn't been called.
659 Fixes part of #437933.
661 2008-10-31 Andreia Gaita <shana@jitted.com>
663 * Form.cs (SetVisibleCore): since set_ActiveControl no longer calls focus
664 if the container is not focused already, we need to specifically set
665 focus to the first available control, or to the form itself if there
668 2008-10-31 Andreia Gaita <shana@jitted.com>
670 activate message fix: a call to .Show now waits until both WM_SHOWWINDOW and
671 WM_ACTIVATE have been processed before returning, so it is guaranteed that
672 once it returns and the form is visible, it is actually on the screen on X11
674 * ContainerControl.cs: Only send focus to the control if the top container
675 is already focused. This is so that, when a form is first shown, all
676 the enter/leave events are done first before any focus stuff comes in.
677 If a control has no top container, there's an extra check on Control.Focus
678 to make sure it gets focused in this particular case.
680 * Control.cs: Force focus if the control is active but did not receive
681 focus after being set as active.
683 * MdiClient.cs: Dispose the form when closing
685 * XplatUIX11.cs: When mapping and unmapping windows, make sure the call
686 doesn't return until both WM_SHOWWINDOW and WM_ACTIVATE have come in
687 if the window is a top Form.
688 Reset all hwnd properties when the window has been destroyed so that
689 we don't land in any codepaths that might try to do something with it.
690 Added a bunch of debugging messages. If TRACE is defined, all X calls
691 are logged through DebugHelper. Set a few missing EntryPoint attributes.
693 2008-10-29 Mario Carrion <mcarrion@novell.com>
695 * ListViewItem.cs: Control enabled to support Accessibility:
696 - Internal events: UIATextChanged, UIASubItemTextChanged.
697 - Internal event UIATextChanged in ListViewSubItem that triggers
698 UIASubItemTextChanged.
699 * ListView.cs: Control enabled to support Accessibility:
700 - Internal events: UIACheckBoxesChanged, UIAMultiSelectChanged,
701 UIAShowGroupsChanged, UIAViewChanged and UIALabelEditChanged.
702 - Internal event UIACollectionChanged in ColumnHeaderCollection.
703 - Internal event UIACollectionChanged in ListViewItemCollection.
704 - Internal properties: UIAHeaderControl, UIAColumns, UIARows,
705 UIADefaultListViewGroup, UIAHScrollBar and UIAVScrollBar.
706 - Internal methods: UIAGetHeaderBounds.
708 2008-10-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
710 * ScrollableControl.cs: Actually fire the 2.0 Scroll event when we get
711 the event from the respective scrollbars.
714 2008-10-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
716 * ComboBox.cs: Use the new CanNavigateAutoCompleteList property of the
717 textbox to know whether any navigation key will be handled or not. If
718 not, don't pass the message to the textbox, and use it here instead.
719 * TextBox.cs: Define a new CanNavigateAutoCompleteList property -which
720 is more precise- than the previous AutoCompleteMatches one.
721 This should the keyboard navigation in ComboBox when using auto
724 2008-10-24 Jonathan Pobst <monkey@jpobst.com>
726 * ComboBox.cs: Fix item height calculation based off Font to match .Net.
729 2008-10-24 Jonathan Pobst <monkey@jpobst.com>
731 * ToolStripDropDownItem.cs: Call OnClick instead of base.OnClick so
732 overridden methods will get called.
733 * ToolStripItem.cs: Raise Click before MouseUp.
734 * ToolStripSplitButton.cs: Fix up some bounding rectangles to take
735 the item's location into account.
738 2008-10-24 Neville Gao <nevillegao@gmail.com>
740 * NumericUpDown.cs: Control enabled to support accessibility.
743 2008-10-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
745 * TextBox.cs: Check that we actually have items no navigate, select
746 text when pressing enter, as well as handle direction keys only if
747 mode is different to Suggest or the suggest listbox is visible.
749 2008-10-23 Andreia Gaita <shana@jitted.com>
751 * WebBrowser.cs: Use the new ContentStream property to retrieve
752 a stream encoded from the document content
754 2008-10-23 Andreia Gaita <shana@jitted.com>
758 HtmlWindow.cs: Fix GetHashcode for null objects
760 2008-10-22 Andreia Gaita <shana@jitted.com>
764 HtmlWindow.cs: Fix equality operators (fixes #428173)
766 2008-10-21 Jonathan Pobst <monkey@jpobst.com>
768 * XplatUIWin32.cs: Apply patch from John Mortlock that ensures
769 mouse_state gets set during WM_MOUSEMOVE and WM_NCMOUSEMOVE.
772 2008-10-21 Jonathan Pobst <monkey@jpobst.com>
774 * ComboBox.cs: Fire SelectedIndexChanged when the user selects the
775 same item with the mouse as was already selected.
778 2008-10-21 Brad Taylor <brad@getcoded.net>
780 * TextControl.cs: Break out code to get the visible range into
781 GetVisibleLineIndexes to be used in UIA code.
785 * TextBoxBase.cs: Add comments indicating that the method or property
786 is used via reflection from UIA code.
788 2008-10-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
790 * ListViewItem.cs: Match .net serialization.
791 Fixes remaining part of #417520.
793 2008-10-20 Jonathan Pobst <monkey@jpobst.com>
795 * ToolStripProfessionalRenderer.cs: Don't paint over a set BackgroundImage.
797 2008-10-20 Mario Carrion <mcarrion@novell.com>
799 * ErrorProvider.cs, ToolTip.cs, HelpProvider.cs: UIA internal property
800 added: UIAToolTipRectangle.
802 2008-10-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
804 * ListViewItem.cs: When deserializing enumerate over the data, instead
805 of accessing the data directly. This way we handle much better the
806 cases were we lack information.
809 2008-10-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
811 * ListView.cs: When removing an item from a main ListView.Items
812 collection (and not a ListViewGroupCollection.Items one), remove it
813 also from the group, as .net does. Patch by Mario Carrion (mario at
817 2008-10-19 Andreia Gaita <avidigal@novell.com>
819 * Form.cs: Forms that get closed without a handle being created are
820 disposed in 2.0. Fixes failing FormTest.FormClose and
821 FormTest.FormClose2 on windows.
823 2008-10-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
825 * ListView.cs: If both scrollbars are visible, the vertical one
826 shouldn't extend too far down.
829 2008-10-17 Jonathan Pobst <monkey@jpobst.com>
831 * DataGridView.cs: Add the ability to resize columns and rows with
832 the mouse. Also support double-clicking to autoresize.
833 * DataGridViewColumn.cs: Invalidate the grid if a column's width changes.
834 * DataGridViewRow.cs: Invalidate the grid if a row's height changes.
835 * DataGridViewTextBoxCell.cs: Add 1 to preferred width so ellipsis
836 isn't shown on autoresize.
839 2008-10-17 Mario Carrion <mcarrion@novell.com>
841 * ComboBox.cs: Remove UIAListbox.
843 2008-10-17 Mario Carrion <mcarrion@novell.com>
845 * ComboBox.cs, ListBox.cs: Using added/removed item in
846 OnUIACollectionChangedEvent instead of index.
848 2008-10-17 Jonathan Pobst <monkey@jpobst.com>
850 * ComboBox.cs: When we are sorting the items, if the item's type
851 doesn't support IComparer, use a default one that compares based
852 off the item's visible text.
855 2008-10-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
857 * ColumnHeader.cs: Invalidate ListView.header_control when setting
859 * ThemeWin32Classic.cs: When drawing the column header, draw a image
860 for the column if available, and make the required adjustments to the
864 2008-10-17 Neville Gao <nevillegao@gmail.com>
866 * StatusBarPanel.cs: Control enabled to support accessibility.
869 2008-10-16 Jonathan Pobst <monkey@jpobst.com>
871 * DataGridView.cs: When a user begins an edit in the 'new row',
872 make that a real row, and add a new 'new row'. If the user
873 cancels the edit, remove the new 'new row' and reset everything.
874 Also, ensure UserAddedRow and UserRemovedRow events are raised.
877 2008-10-16 Ivan N. Zlatev <contact@i-nz.net>
879 * TableLayoutSettings.cs: Fix NREs when deserializing and
880 panel is not yet set.
883 2008-10-16 Jonathan Pobst <monkey@jpobst.com>
885 * DataGridView.cs: Invalidate after deleting a row.
887 2008-10-16 Jonathan Pobst <monkey@jpobst.com>
889 * DataGridView.cs: Handle Enter and Escape keys.
890 - Move call to EndEdit to MoveCurrentCell.
891 - Remove call to EndEdit from navigation key routines.
892 - Fire CellLeave and CellEnter.
894 2008-10-16 Jonathan Pobst <monkey@jpobst.com>
896 * DataGridViewCell.cs: Some fixes to the new cell border
899 2008-10-16 Jonathan Pobst <monkey@jpobst.com>
901 * ThemeEngine.cs: Enable visualstyles rendering by default
902 (on platforms that support it).
904 2008-10-15 Ivan N. Zlatev <contact@i-nz.net>
906 * XplatUIX11.cs, XplatUICarbon.cs: Do not Timer.Tick before
907 MainForm.OnLoad has completed unless DoEvents is forced.
910 2008-10-15 Jonathan Pobst <monkey@jpobst.com>
912 * ToolTip.cs: Ensure that Timer.Internal cannot be set to 0.
914 2008-10-15 Jonathan Pobst <monkey@jpobst.com>
916 * Control.cs: Make our implementation of DrawToBitmap better
917 match WmPaint. [Fixes bug #435579]
919 2008-10-14 Andreia Gaita <avidigal@novell.com>
921 * WebBrowser.cs: Use DocumentElement as the document's root for the
922 whole content. Should fix DocumentText and DocumentStream problems.
924 2008-10-14 Jonathan Pobst <monkey@jpobst.com>
926 * DataGridViewColumnCollection.cs: Remove calls to OnColumnAddedInternal,
927 these will get called in DGV.OnCollectionChanged. Make sure
928 OnCollectionChanged always gets called.
929 * DataGridView.cs: Make a OnColumnRemovedInternal that removes the cells
930 from every row. Call this in OnCollectionChanged.
933 2008-10-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
935 * ComboBox.cs: WM_KEYDOWN and WM_KEYUP messages should be sent to the
936 textbox if auto complete is used, since we need to navigate over it.
937 And in this case don't pass this messages to the base impl. Also hide
938 the auto complete list box when displaying the drop down listbox.
939 * TextBox.cs: new internal members to expose some of the auto complete
940 functionality to combobox.
942 2008-10-13 Ivan N. Zlatev <contact@i-nz.net>
944 * XplatUIX11.cs, XplatUICarbon.cs, Form.cs: Do not Timer.Tick before
945 MainForm.OnLoad has completed.
948 2008-10-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
950 * TextBox.cs: Apply an old-approved patch that adds autocomplete's
951 Append support to this controls. We need it to apply new patches.
953 2008-10-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
955 * Control.cs: When updating z order in child controls, send to back
956 the implicit controls. Also, do it explicitly, instead of making
957 GetAllControls return the implicit controls in a specific order, and
958 thus avoid depending on that, which could change in the future.
961 2008-10-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
963 * X11Dnd.cs: Try to call Application.DoEvents before returning in a
964 call to StartDrag, since we must fire DragDrop/DragLeave *before*
965 that, as .net does - instead of firing DragDrop/DragLeave *after* the
966 call to Control.DoDragDrop has completed. This is needed since at the
967 point of returning, we have sent related dnd ClientMessages, but we
968 need to wait for them to fire the wmf respective ones.
971 2008-10-09 Everaldo Canuto <ecanuto@novell.com>
973 * LinkLabel.cs: Recreate link pieces when change Padding.
975 2008-10-09 Everaldo Canuto <ecanuto@novell.com>
977 * LinkLabel.cs: Take Padding into account when recreate link pieces.
980 2008-10-08 Everaldo Canuto <ecanuto@novell.com>
982 * Control.cs: Implement internal property PaddingClientRectangle, it will be
983 useful for drawing controls that must take care about Padding property.
985 2008-10-08 Jonathan Pobst <monkey@jpobst.com>
987 * BindingSource.cs: Make item_type internal so we can access it in DGV.
988 * DataGridView.cs: Add support for autogenerating columns from a
991 2008-10-07 Jonathan Pobst <monkey@jpobst.com>
993 * DataGridView.cs: Comment out an exception that is getting thrown
996 2008-10-07 Jonathan Pobst <monkey@jpobst.com>
998 * DataGridView.cs: Always rebind to the datasource, as things may
999 have changed in it that we aren't capturing yet.
1001 2008-10-07 Jonathan Pobst <monkey@jpobst.com>
1003 * DataGridViewTextBoxCell.cs: Don't default to VerticalCenter font
1004 drawing mode. If we are top aligned, give ourselves some top padding.
1006 2008-10-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1008 * X11Dnd.cs: When firing the default dnd enter/leave events, fire the
1009 events on the control under the mouse pointer, instead of firing them
1010 on the window generating the dnd operation. To achieve this re-use the
1011 code used to get the window under the pointer when getting MouseMove
1015 2008-10-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1017 * X11Dnd.cs: Don't check that that the window sending the dnd events
1018 is the owner of the selection. Although Gtk+ sets it that way, it's
1019 not a requirement of the XDnd protocol, and Qt doesn't seem to do it.
1020 So, just as Gtk+ does, we set our window sending the dnd events as the
1021 owner of the selection, but don't check it when receiving them. This
1022 should fix interoperability with Qt/Kde.
1025 2008-10-06 Jonathan Pobst <monkey@jpobst.com>
1027 * DataGridView.cs: Make sure we take the vertical scrollbar into
1028 account when autosizing columns.
1030 2008-10-06 Jonathan Pobst <monkey@jpobst.com>
1032 * DataGridView.cs: Handle sorting datetimes.
1034 2008-10-04 Ivan N. Zlatev <contact@i-nz.net>
1036 * ButtonBase.cs, Control.cs, Label.cs, PictureBox.cs, TabControl.cs,
1037 TextBoxBase.cs, ToolBar.cs, TrackBar.cs, TreeView.cs: Cleanup
1038 compilation warnings.
1040 2008-10-03 Ivan N. Zlatev <contact@i-nz.net>
1042 * RTF.cs, Application.cs, BindingContext.cs, BindingSource.cs,
1043 ContextMenuStrip.cs, Control.cs, Hwnd.cs, Line.cs, MaskedTextBox.cs,
1044 ProgressBar.cs, SaveFileDialog.cs, TextControl.cs, Theme.cs,
1045 ToolBar.cs, ToolStripItemCollection.cs, TrackBar.cs: Cleanup
1046 compilation warnings.
1048 2008-10-03 Ivan N. Zlatev <contact@i-nz.net>
1050 * DataGridView.cs, DataGridViewCell.cs,
1051 DataGridViewCellValidatingEventArgs.cs,
1052 DataGridViewComboBoxEditingControl.cs, DataGridViewHeaderCell.cs,
1053 DataGridViewRow.cs, DataGridViewRowHeaderCell.cs,
1054 DataGridViewTextBoxEditingControl.cs: Cleanup compilation warnings.
1056 2008-10-03 Ivan N. Zlatev <contact@i-nz.net>
1058 * HtmlElementEventArgs.cs, HtmlWindowCollection.cs:
1059 Cleanup compilation warnings.
1061 2008-10-03 Ivan N. Zlatev <contact@i-nz.net>
1063 * XplatUIWin32.cs: Cleanup compilation warnings.
1065 2008-10-03 Ivan N. Zlatev <contact@i-nz.net>
1067 * PropertyGrid.cs: Cleanup compilation warnings.
1069 2008-10-02 Jonathan Pobst <monkey@jpobst.com>
1071 * DataGridViewRow.cs: Only clear the row background if we
1072 are going to paint a new background.
1074 2008-10-02 Jonathan Pobst <monkey@jpobst.com>
1076 * DataGridViewCell.cs, DataGridViewColumnHeaderCell.cs,
1077 DataGridViewRowHeaderCell.cs: Remove PaintPartBorder and
1078 use PaintBorder instead.
1080 2008-10-02 Jonathan Pobst <monkey@jpobst.com>
1082 * DataGridView.cs: When CellBorderStyle is set, update the
1083 AdvancedCellBorderStyle to match.
1085 2008-10-02 Jonathan Pobst <monkey@jpobst.com>
1087 * DataGridViewCell.cs: Add helper methods to convert Alignment
1088 to TextFormatFlags and align rectangles.
1089 * DataGridViewTextBoxCell.cs: Use Alignment when painting text.
1090 * DataGridViewImageCell.cs: Use Alignment when painting the image.
1092 2008-10-02 Ivan N. Zlatev <contact@i-nz.net>
1094 * ToolTip.cs: Display tooltips only for controls on the active form.
1097 2008-10-02 Jonathan Pobst <monkey@jpobst.com>
1099 * DataGridView.cs: Make OnCellValueNeeded internal.
1100 * DataGridViewCell.cs: Raise the CellValueNeeded event so the
1101 user can supply their own value if they choose.
1103 2008-10-02 Jonathan Pobst <monkey@jpobst.com>
1105 * DataGridViewColumnHeaderCell.cs: Create a new style object
1106 so the DefaultCellStyle doesn't get changed.
1108 2008-10-02 Jonathan Pobst <monkey@jpobst.com>
1110 * ToolStripItem.cs: Check to make sure the owner is actually
1111 changing in InternalOwner before doing any work. Fixes some
1114 2008-10-01 Jonathan Pobst <monkey@jpobst.com>
1116 * DataGridViewColumnHeaderCell.cs: Correctly calculate style.
1117 * DataGridView.cs: Use a column header's inherited style instead
1118 of just using the default.
1120 2008-10-01 Jonathan Pobst <monkey@jpobst.com>
1122 * SplitContainer.cs: Raise SplitterMoved when the splitter is
1125 2008-10-01 Mario Carrion <mcarrion@novell.com>
1127 * ScrollBar.cs: Internal property added: UIAThumbPosition.
1129 2008-10-01 Jonathan Pobst <monkey@jpobst.com>
1131 * ToolStripOverflowButton.cs: Use InternalOwner instead of Owner.
1133 2008-10-01 Jonathan Pobst <monkey@jpobst.com>
1135 * ToolStripItem.cs: When the user sets Owner, we need to remove
1136 it from its previous owner and then add it to the new owner's
1137 item collection. Also, create InternalOwner, so we can set the owner
1138 that doesn't do this new stuff.
1139 * ToolStripItemCollection.cs: Use InternalOwner instead of Owner.
1141 2008-10-01 Jonathan Pobst <monkey@jpobst.com>
1143 * ToolStripItem.cs: When our parent changes, recalculate our text
1144 size, since we may be getting our Font from our parent. When our
1145 owner's Font changes, recalculate ourselves as we may be using
1148 2008-10-01 Everaldo Canuto <ecanuto@novell.com>
1150 * MenuAPI.cs: Select the first option of a popup when opening the popup via
1151 return key. [Fixes bug #413792].
1153 2008-10-01 Jonathan Pobst <monkey@jpobst.com>
1155 * ToolStripItem.cs: Make Font, BackColor, and ForeColor be
1156 ambient properties. (Get their value from their parents if
1157 values haven't been set.)
1159 2008-10-01 Jonathan Pobst <monkey@jpobst.com>
1161 * ToolStripSystemRenderer.cs: Call overridden methods' bases
1162 after our logic, so users can do painting by handling the events.
1163 Currently, we draw over any user painting.
1165 2008-10-01 Jonathan Pobst <monkey@jpobst.com>
1167 * ToolStripProfessionalRenderer.cs: Call overridden methods' bases
1168 after our logic, so users can do painting by handling the events.
1169 Currently, we draw over any user painting.
1171 2008-09-30 Everaldo Canuto <ecanuto@novell.com>
1173 * MenuAPI.cs: Prevent NRE when deactivate menu. Fixes #413636.
1175 2008-09-30 Jonathan Pobst <monkey@jpobst.com>
1177 * TreeNode.cs, TreeView.cs: Move logic that determines the node
1178 image to draw to TreeNode. Give Index/Keys put on the node
1179 precedence over the global one for the TreeView.
1181 2008-09-30 Jonathan Pobst <monkey@jpobst.com>
1183 * TreeNode.cs: Setting ImageIndex or ImageKey should reset the other.
1185 2008-09-29 Mario Carrion <mcarrion@novell.com>
1187 * ListBox.cs: Index fixed.
1189 2008-09-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1191 * TabControl.cs: When expanding the tab -because it's selected now-,
1192 using Right alignment, instead of adding some selected delta value to
1193 the X origin, substract it, so it gets a location adjacent to the panel,
1194 instead of be more separated.
1197 2008-09-29 Jonathan Pobst <monkey@jpobst.com>
1199 * MessageBox.cs: Use SystemIcons for graphics instead of keeping our
1202 2008-09-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1204 * X11Dnd.cs: source and related fields should be set to IntPtr.Zero,
1205 as well as the other static fields, to avoid using their previous
1206 values my mistake when handling the dnd events. This should avoid
1207 handling any status event after the drop has been finalized/cancelled.
1209 2008-09-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1211 * X11Dnd.cs: We have to send a dnd enter event as soon as we start the
1212 operation, instead of waiting until we get any movement - this will
1213 help us to have the data available in case no movement was detected
1214 and _still_ we have to fire DragEnter and DragLeave/DragDrop events.
1215 Finally add a windows.forms-only fallback to fire the mentioned events
1216 if no movement at all was detected, just like .net does.
1219 2008-09-27 Jonathan Pobst <monkey@jpobst.com>
1221 * ThemeWin32Classic.cs: When drawing a status bar panel, don't
1222 return early if the text is empty because the icon doesn't get
1223 drawn then. [Fixes bug #428113]
1225 2008-09-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1227 * FileDialog.cs: Implement basic support for sorting by columns in
1228 Details view. Patch by Eric Petit.
1231 2008-09-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1233 * ThemeWin32Classis.cs: When drawing gridlines take into account the
1234 case where ListView.ItemSize hasn't been computed, and provide a
1235 fallback as well. This prevents a division by 0.
1237 2008-09-24 Jonathan Pobst <monkey@jpobst.com>
1239 * ThemeVisualStyles.cs: Use ClientRectangle instead of Bounds to
1240 correctly draw tooltip backgrounds.
1242 2008-09-24 Jonathan Pobst <monkey@jpobst.com>
1244 * ImageList.cs: Change CopyTo implementation to ensure clones are
1245 created of our images.
1248 2008-09-24 Jonathan Pobst <monkey@jpobst.com>
1250 * Control.cs: When setting fonts, we need to ensure we change our
1251 reference to the new font object, even if it represents the same
1252 font as before. If we don't, the original font can get disposed
1253 and we will still try to use it.
1256 2008-09-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1258 * FileDialog.cs: Take into account Tile view when selecting the view
1261 2008-09-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1263 * ThemeWin32Classic.cs: When drawing gridlines for ListView don't use
1264 the item bounds, since we can't iterate over them in virtual mode.
1265 Also fix wrong calculation of the gridlines when using scrolling.
1268 2008-09-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1270 * XplatUIX11.cs: When handling EnterNotify events, take into account
1271 both the public and implicit controls when trying to detect the
1272 grab/ungrab process. This should fix ListView selection in Details
1275 2008-09-23 Jonathan Pobst <monkey@jpobst.com>
1277 * TreeView.cs: Redraw the whole node area when the selected node changes.
1278 Things like state images were not getting redrawn because the invalid
1279 rectangle was too small.
1282 2008-09-23 Mario Carrion <mcarrion@novell.com>
1284 * ListBox.cs: UIA Selection Pattern fully supported in ListBox control.
1287 2008-09-23 Jonathan Pobst <monkey@jpobst.com>
1289 * Form.cs: Do not set the Form's icon in the backend if showicon = false.
1292 2008-09-23 Jonathan Pobst <monkey@jpobst.com>
1294 * ThemeWin32Classic.cs: Allow tooltips to be multiline.
1297 2008-09-23 Jonathan Pobst <monkey@jpobst.com>
1299 * StatusBar.cs: Add tooltip support.
1302 2008-09-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1304 * ThemeWin32Classic.cs: Use StringAlignment.Center for the vertical
1305 alignments of sub items in Details view. Patch by John Mortlock (johnm at
1306 hlaustralia.com.au).
1309 2008-09-23 Neville Gao <nevillegao@gmail.com>
1311 * StatusBar.cs: Add UIA event in AddInternal () to support accessibility.
1314 2008-09-22 Jonathan Pobst <monkey@jpobst.com>
1316 * TextBoxBase.cs: Set Text to "" instead of null in Clear().
1319 2008-09-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1321 * ListView.cs: Don't do anything when EnsureVisible is called inside a
1322 BeginUpdate/EndUpdate block.
1325 2008-09-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1327 * ListViewItem.cs: The semantics for the public .ctor of
1328 ListViewSubItemCollection need us to already have a Text value for the
1329 item, which in our implementation have as available *after* adding the
1330 first sub item. So create an internal .ctor that satisfies our needs
1331 and let the public .ctor have the same semantics as .net.
1334 2008-09-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1336 * ListControl.cs: Changes in Formatting related values should call
1337 RefreshItems, as .net does.
1339 * ListBox.cs: In the respective overrides of RefreshItems calculate
1340 layout as well as refreshing - again, this is what .net does.
1343 2008-09-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1345 * ListBox.cs: In UpdateTopItem, don' call to XplatUI.ScrollWindow,
1346 since we are already doing that when we change the value of the
1347 scrollbar or force the call to ScrollWindow in the same method. This
1348 way we don't cause a Invalidate call for all the listbox bounds for
1349 methods calling UpdateTopItem with an already updated top item. This
1350 was happening specially calling EnsureVisible with already visible
1353 2008-09-18 Mike Gorse <mgorse@novell.com>
1355 * Application.cs, IKeyFilter.cs, X11Keyboard.cs, XplatUI.cs,
1356 XplatUIStructs.cs: Added KeyFilter
1359 2008-09-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1361 * RelatedPropertyManager.cs: The properties returned by
1362 GetItemProperties should be that ones of the *actual* object returned
1363 by the property, not the property type - this is very special when the
1364 property exposes a type, but the returned object actually is a child
1365 class and implements more functionality and properties.
1367 2008-09-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1369 * Binding.cs: Don't look for the property in the data source if the
1370 passed string is empty.
1372 2008-09-18 Ivan N. Zlatev <contact@i-nz.net>
1374 * XplatUIX11.cs: Comment out _NET_WM_WINDOW_TYPE_DIALOG in order to
1375 fix unused variable warnings.
1377 2008-09-18 Ivan N. Zlatev <contact@i-nz.net>
1379 * XplatUIX11.cs: Send WM_HELP when F1 is pressed.
1382 2008-09-18 Ivan N. Zlatev <contact@i-nz.net>
1385 - Do not set _NET_WM_WINDOW_TYPE_DIALOG for modal forms, because this
1386 leads to the window manager overriding our border style and zorder.
1387 - Allow the activation of non-modal forms, which are children of a
1391 2008-09-17 Ivan N. Zlatev <contact@i-nz.net>
1393 * XplatUIX11.cs, X11Structs.cs: For mapped windows SetTopMost should
1394 ask the window manager to do the work instead of changing the property
1398 2008-09-17 Everaldo Canuto <ecanuto@novell.com>
1400 * CurrencyManager.cs: Check for positon before call ChangeRecordState in
1401 AddNew to fix some navigation for empty datasets. [Fixes #323053]
1403 2008-09-17 Everaldo Canuto <ecanuto@novell.com>
1405 * FileDialog.cs: Remove OnPaint method on PopupButtonPanel and set
1406 InternalBorderStyle to BorderStyle.Fixed3D. It is the best way to get 3d
1407 border and fixes some drawing issues when resize form.
1409 2008-09-17 Everaldo Canuto <ecanuto@novell.com>
1411 * FileDialog.cs: Lots of layout fixes to mimic Win32. [Fixes #408752]
1413 * ThemeWin32Classic.cs: We don't need to reduce button size when it is
1416 2008-09-17 Ivan N. Zlatev <contact@i-nz.net>
1418 * TextBoxBase.cs: For standard textbox the scrollbars are always
1419 visible if Multiline is true.
1422 2008-05-12 Everaldo Canuto <ecanuto@novell.com>
1424 * DataGridTextBoxColumn.cs: Uncomment code accidentally commited in last
1427 2008-05-12 Everaldo Canuto <ecanuto@novell.com>
1429 [Fixes most od DBNull and HeadersVisible problems]
1432 - ShowingColumnHeaders removed because we dont need it, ColumnHeadersVisible
1433 returns the value that we need.
1434 - Fixed FromPixelToColumn method that return zero for first column and for
1435 row header cell, now it returns -1 for row header cell.
1436 - Fixed HitTest to check row header cell in column header area, it now
1437 returns HitTestType.None. [Fixes #322864]
1438 - Fixed the calculation of visible columns in UpdateVisibleColumn, now it
1439 checks for RowHeadersVisible and other things.
1440 - If an exception occurs when setting CurrentCell and user type 'yes' in
1441 message dialog, invalidade current and new cell and set setting_current_cell
1442 to false to prevent future errors. [Partially fixes #323050]
1444 * DataGridColumnStyle.cs: Don't call EndEdit after set property_descriptor
1445 value (SetColumnValueAtRow), it must be done by grid to properly show
1446 messages. [Fixes #323050]
1448 * ThemeWin32Classic.cs: Lots of fixes in DataGridPaintColumnHeaders to
1449 better draw column and row header. Also dont draw anything when column
1450 headers is not visible.
1452 2008-09-16 Jonathan Pobst <monkey@jpobst.com>
1454 * ThemeWin32Classic.cs: Hook ListViewItems into the ShowFocusCues
1457 2008-09-16 Jonathan Pobst <monkey@jpobst.com>
1459 * TreeView.cs: Don't start editing a node on right click, only
1462 2008-09-16 Jonathan Pobst <monkey@jpobst.com>
1464 * NativeWindow.cs: Reenable the ThreadExceptionDialog I accidentally
1465 disabled over a year ago.
1466 * Form.cs: Wrap calling Load in a try/catch because it can happen
1467 before the catch-all one in NativeWindow.
1470 2008-09-16 Jonathan Pobst <monkey@jpobst.com>
1472 * ToolStripDropDownMenu.cs: Calculate the connected area better
1473 to take into account when the drop down is not directly under the
1475 * ToolStripProfessionalRenderer.cs: Draw the whole unconnected area.
1477 2008-09-16 Mario Carrion <mcarrion@novell.com>
1479 * ScrollBar.cs: New event added: UIAValueChanged, generated when
1480 LargeChange, SmallChange, Maximum or Minimum values are changed.
1483 2008-09-16 Mario Carrion <mcarrion@novell.com>
1485 * ErrorProvider.cs: Component enabled to support accessibility.
1486 * Application.cs: Updated to Initialize UIA in ErrorProvider.
1489 2008-09-16 Jonathan Pobst <monkey@jpobst.com>
1491 * TextBoxBase.cs: Flag has_been_focused when SelectionStart is set
1492 so we don't highlight on first focus.
1495 2008-09-16 Jonathan Pobst <monkey@jpobst.com>
1497 * TextControl.cs: Correctly calculate the height of the area we
1498 need to invalidate when we have started scrolling and viewport_y
1499 is used. [Fixes bug #387608]
1501 2008-09-16 Jonathan Pobst <monkey@jpobst.com>
1503 * TextControl.cs: When getting the SelectedText, don't add in
1504 NewLine characters, as they are already contained in the lines.
1507 2008-09-16 Jonathan Pobst <monkey@jpobst.com>
1509 * TextBoxBase.cs: Replace the buggy Lines setter with one that
1510 simply concats the lines and send it to the Text setter.
1511 [Fixes issue #2 and #3 of 388115]
1513 2008-09-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1515 * Binding.cs: The default value of DataSourceNullValue should be
1516 Convert.DBNull actually. Also, the NullValue should only be used *if*
1517 itself is not null, and use the null/Convert.DBNull value instead.
1519 2008-09-15 Jonathan Pobst <monkey@jpobst.com>
1521 * TextControl.cs: Add a method to convert a string newline to the
1523 * TextBoxBase.cs: When the user hits enter, insert a native newline.
1524 [Fixes part 1 of bug #388115]
1526 2008-09-15 Mario Carrion <mcarrion@novell.com>
1528 * ToolTip.cs: UnPopup event set to internal to match public API.
1530 2008-09-15 Jonathan Pobst <monkey@jpobst.com>
1532 * TextBoxBase.cs: If the user is using Ctrl-Tab to move focus, we
1533 have to remove the Ctrl in order for the focus moving code to kick in.
1536 2008-09-15 Jonathan Pobst <monkey@jpobst.com>
1538 * CheckedListBox.cs: Return the real item index from Add. It may not be
1539 the last item if the list is sorted. The user can change the NewValue in
1540 the ItemCheck event, we need to use that value if so.
1541 * ListBox.cs: Return the real item index from a sorted Add.
1544 2008-09-15 Ivan N. Zlatev <contact@i-nz.net>
1546 * MimeIcon.cs: Add null checks in the GnomeHandler, because it might
1547 happen that the icons from the theme is missing or the particular size
1551 2008-09-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1553 * Binding.cs: When assigning null or DBNull depending on value/ref type,
1554 use IsValueType instead to get the precise desired value.
1557 2008-09-12 Jonathan Pobst <monkey@jpobst.com>
1559 * TreeNodeCollection.cs: When adding a new node to an opened node,
1560 we have to invalidate everything below the parent node because
1561 every node scoots down and we have to repaint them.
1564 2008-09-12 Jonathan Pobst <monkey@jpobst.com>
1566 * ThemeWin32Classic.cs: Take CheckBox and RadioButton's CheckAlign
1567 property into account when drawing.
1570 2008-09-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1572 * ListBox.cs: When calling Items.Clear(), call
1573 SelectedIndexCollection.ClearCore instead of normal Clear method, to
1574 not fire any Selected*Changed event - this is done to match .net and
1575 don't have invalid values when changing the DataSourceProperty.
1578 2008-09-12 Mario Carrion <mcarrion@novell.com>
1580 * HelpProvider.cs: Control enabled to support accessibility.
1581 * Application.cs: Updated to Initialize UIA in HelpProvider.
1584 2008-09-12 Jonathan Pobst <monkey@jpobst.com>
1586 * Form.cs: When we are showing a dialog box, if its owner is TopMost,
1587 make the dialog TopMost as well.
1590 2008-09-12 Jonathan Pobst <monkey@jpobst.com>
1592 * Win32DnD.cs, XplatUIWin32.cs: Applied patch from Andy Hume that handles
1593 clipboard data better.
1596 2008-09-12 Jonathan Pobst <monkey@jpobst.com>
1598 * TextBoxBase.cs: Applied patch from John Mortlock that ensures
1599 TextChanged and SelectionChanged events fire in the same order as .Net.
1602 2008-09-12 Jonathan Pobst <monkey@jpobst.com>
1604 * DataGridView.cs: When sorting a column, if it only contains numbers,
1605 do a numeric sort instead of a string sort.
1608 2008-09-12 Jonathan Pobst <monkey@jpobst.com>
1610 * TableLayoutSettings.cs, TableLayoutStyleCollection.cs: Guard
1611 against NRE's when the settings have a null panel.
1612 * TableLayoutPanel.cs: When setting the TableLayoutSettings, ensure
1616 2008-09-11 Mario Carrion <mcarrion@novell.com>
1618 * ToolTip.cs: Control enabled to support accessibility.
1619 * Application.cs: Updated to Initialize UIA in ToolTip.
1622 2008-09-11 Jonathan Pobst <monkey@jpobst.com>
1624 * Control.cs: Make the custom Enumerator internal to fix build.
1626 2008-09-11 Jonathan Pobst <monkey@jpobst.com>
1628 * DataGridViewCheckBoxCell.cs: If our content is clicked and we aren't
1629 already in edit mode, begin edit mode. Generally edit mode isn't
1630 started until the second click, but CheckBoxes are special.
1632 2008-09-11 Jonathan Pobst <monkey@jpobst.com>
1634 * ErrorProvider.cs: Never try to add our icons to ContainerControl,
1635 since that can be set to anything. Always add them to the Control's
1636 parent. [Fixes bug #416058]
1638 2008-09-11 Jonathan Pobst <monkey@jpobst.com>
1640 * ListView.cs: Use a custom enumerator for ListViewItemCollection
1641 so items can be deleted in a foreach.
1644 2008-09-11 Jonathan Pobst <monkey@jpobst.com>
1646 * DataGridViewRow.cs: Better implementation of GetPreferredHeight.
1647 Store the user set explicit height so that the row can be AutoSized
1648 and then when AutoSize is turned off, it can get its original size back.
1649 * DataGridView.cs: Use the Row's GetPreferredHeight instead of
1650 duplicating the logic. When setting AutoSizeRowsMode to None, reset
1651 rows' heights back to their explicit values.
1654 2008-09-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1656 * DateTimePicker.cs: When getting focus, select the checkbox if we are
1657 already showing it. Also, don't change its value when pressing space
1658 if the checkbox is not visible (ShowCheckBox as false). Finally, the
1659 checkbox should remain selected as long as Checked is false, and the
1660 other parts are disabled.
1663 2008-09-11 Jonathan Pobst <monkey@jpobst.com>
1665 * MessageBox.cs: Handle shortcut keys to dialog buttons.
1668 2008-09-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1670 * Binding.cs: When the value retrieved from the control property is
1671 null, don't return Convert.DBNull for Nullable instances, since they
1672 can *actually* get a null value.
1675 2008-09-10 Jonathan Pobst <monkey@jpobst.com>
1677 * Control.cs: Add an internal field to force doublebuffering regardless
1678 of what the public mechanisms are set to. This is because MS's native
1679 controls are doublebuffered even though their .Net bits are set to false.
1680 * ProgressBar.cs: Set force_double_buffer to true.
1683 2008-09-10 Jonathan Pobst <monkey@jpobst.com>
1685 * DataGridViewCheckBoxColumn.cs: Use the threestate constructor for
1687 * DataGridViewCheckBoxCell.cs: Add proper support for threestate.
1688 * DataGridViewCell.cs: Implement GetEditedFormattedValue for types
1689 without EditingControls, paint background selection for types without
1690 EditingControls, reset the EditingCellValueChanged flag when the
1691 cell's value is committed.
1692 * DataGridView.cs: Make BeginEdit and EndEdit work with cells that don't
1693 have EditingControls, remove a double call to a cell's OnContentClickInternal,
1694 don't do cell changing logic in OnMouseDown if the cell didn't change.
1697 2008-09-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1699 * DateTimePicker.cs: Fix the edition of am/pm specifier.
1701 2008-09-09 Jonathan Pobst <monkey@jpobst.com>
1703 * TextControl.cs: Add "&" to the list of valid characters in a URL.
1705 2008-09-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1707 * DateTimePicker.cs: Before incrementing or decrementing any part in
1708 the textbox, end any current edit. Also when ending the current edit
1709 use the editing_part_index field instead of the current selected
1710 value, since they can be out of synch, and we really need to work on
1711 the *real* current edit part. Finally when PartData.Selected changes,
1712 always try to end any ongoing edit.
1713 This should fix some small errors handling mouse navigation and
1714 increase/decrease operations.
1716 2008-09-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1718 * DateTimePicker.cs: 'hh' and 'HH' formats (12 and 24 hour formats
1719 respectively) should handled different, since the 12 hours format
1720 needs the value typed by the user to be adjusted depending on the
1721 a.m/p.m value, so it is preserved, and only changed when the value
1722 reaches the 12 value (when it changes from a.m to p.m).
1723 Fixes part of #416555.
1725 2008-09-08 Jonathan Pobst <monkey@jpobst.com>
1727 * ToolStrip.cs: Ensure MouseDown gets called for MenuStrip items.
1728 * ToolStripDropDownItem.cs: Don't fire events and such again if
1729 ShowDropDown is called on an already dropped down item.
1730 * ToolStripMenuItem.cs: Call ShowDropDown even if there aren't any
1731 subitems, the user may add some in the DropDownOpening event.
1734 2008-09-08 Jonathan Pobst <monkey@jpobst.com>
1736 * ComboBox.cs: Fix IOORE when setting SelectedItem to null.
1739 2008-09-08 Jonathan Pobst <monkey@jpobst.com>
1741 * MdiClient.cs: When looking for menustrips on a child form to merge,
1742 look inside ToolStripContainers.
1745 2008-09-08 Ivan N. Zlatev <contact@i-nz.net>
1747 * ErrorProvider.cs: Unbreak my previous commit.
1749 2008-09-08 Ivan N. Zlatev <contact@i-nz.net>
1751 * ErrorProvider.cs: Icon should always be 16x16.
1754 2008-09-07 Ivan N. Zlatev <contact@i-nz.net>
1756 * GridEntry.cs: Invalidate the child items cache when the property
1759 2008-09-07 Ivan N. Zlatev <contact@i-nz.net>
1761 * GridEntry.cs, PropertyGridView.cs:
1762 - Update the ReadOnly detection and rendering to finally hopefully
1763 match the one of MSFT.
1764 - Niceify and move the debug CWLS.
1767 2008-09-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1769 * ListView.cs: Don't call Invalidate at all from SetItemLocation,
1770 since we are already calling Invalidate for the entire control when
1771 needed - and call Redraw() when size changes, since we need to paint
1772 there by ourselved and not anymore from the mentioned method.
1773 This should improve the layout process. Also clean some not needed calls
1776 2008-09-05 Jonathan Pobst <monkey@jpobst.com>
1778 * MenuAPI.cs: Add a null check to the Alt-F4 code.
1781 2008-09-05 Jonathan Pobst <monkey@jpobst.com>
1783 * ThreadExceptionDialog.cs: Disable AutoScaling for this dialog.
1786 2008-09-04 Ivan N. Zlatev <contact@i-nz.net>
1788 * GridEntry.cs, CategoryGridEntry.cs, RootGridEntry.cs, PropertyGrid.cs,
1789 PropertyGridView.sc: Implement lazy/delayed propertygrid population
1790 on item expansion. Improves performance and fixes bug #417955.
1793 2008-09-05 Stephane Delcroix <sdelcroix@novell.com>
1795 * Control.cs: only check for OptimizedDoubleBuffer in NET_2_0.
1798 2008-09-04 Jonathan Pobst <monkey@jpobst.com>
1800 * TextControl.cs: Add "_" to the list of valid characters in a URL.
1803 2008-09-04 Jonathan Pobst <monkey@jpobst.com>
1805 * Control.cs: If using OptimizedDoubleBuffer, ensure the clip
1809 2008-09-04 Jonathan Pobst <monkey@jpobst.com>
1811 * FontDialog.cs: When storing our font size from the starting font,
1812 use SizeInPoints instead of Size in case Size is a different unit
1816 2008-09-04 Jonathan Pobst <monkey@jpobst.com>
1818 * FileDialog.cs: When enter is pressed on a SaveFileDialog and we
1819 don't use it for anything else, check if a directory is highlighted.
1820 If it is, navigate into it.
1823 2008-09-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1825 * Binding.cs: When acquiring a BindingManagerBase for the first time,
1826 check that the specified property actually exists in the data source,
1827 and throw an ArgumentException if that's not the case - this is only
1828 done for this scenario, since for later cases (such Position changes)
1829 we throw different exceptions (match .Net).
1831 2008-09-03 Ivan N. Zlatev <contact@i-nz.net>
1833 * ButtonBase.cs CheckBox.cs, Control.cs, FlowLayoutPanel.cs,
1834 FlowLayoutSettings.cs, GroupBox.cs, Label.cs, ListBox.cs,
1835 PropertyGrid.cs, RadioButton.cs, TableLayoutPanel.cs,
1836 TableLayoutSettings.cs, ToolStrip.cs, ToolStripDropDownButton.cs,
1837 ToolStripDropDownMenu.cs, ToolStripItem.cs, ToolStripSplitButton.cs,
1838 ToolStripStatusLabel.cs: Add missing PerformLayout calls to various
1842 2008-09-03 Neville Gao <nevillegao@gmail.com>
1844 * StatusBar.cs: Control enabled to support accessibility.
1847 2008-09-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1849 * Binding.cs: When connecting the event handler for the "Changed"
1850 event for the property, only do it for PropertyManager, and not for
1851 CurrencyManager - this is exactly what does .Net, totally ignoring any
1852 change in the property of the elements of a list.
1855 2008-09-02 Jonathan Pobst <monkey@jpobst.com>
1857 * XplatUIWin32.cs: Ensure we never send the WS_EX_MDICHILD flag
1858 to Windows when creating a window, as we fake MDI stuffs.
1861 2008-09-01 Ivan N. Zlatev <contact@i-nz.net>
1863 * TextBox.cs: Invalidate after UseSystemPasswordChar, so that the
1864 change takes effect.
1866 2008-08-24 Ivan N. Zlatev <contact@i-nz.net>
1868 * XplatUIX11.cs: Provide MouseButtons/State information to the XPlatUI.
1871 2008-08-27 Jonathan Pobst <monkey@jpobst.com>
1873 * DataGridView.cs: Raise CellContentClick event.
1874 [Fixes part of bug #420351]
1876 2008-08-27 Mario Carrion <mcarrion@novell.com>
1878 * ScrollBar.cs: Control enabled to support accessibility.
1881 2008-08-27 Mario Carrion <mcarrion@novell.com>
1883 * ComboBox.cs: Control enabled to support accessibility.
1886 2008-08-27 Mario Carrion <mcarrion@novell.com>
1888 * ListBox.cs: Control enabled to support accessibility.
1891 2008-08-27 Jonathan Pobst <monkey@jpobst.com>
1893 * ComboBox.cs: Don't suppress the TextChanged event when changing
1895 * ToolStripComboBox.cs: Listen to the ComboBox's TextChanged event
1899 2008-08-26 Jonathan Pobst <monkey@jpobst.com>
1901 * ErrorProvider.cs: Fix a regression NRE when setting properties
1902 for a control before it has a parent.
1905 2008-08-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1907 * Binding.cs: Use the BindingManagerBase.Current value to obtain
1908 connect the property "Changed" event, instead of using the data
1909 sources - this is useful when the property specifies actually a
1910 multiple objects path.
1911 Fixes part of #417973.
1913 2008-08-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1915 * RelatedPropertyManager.cs: PropertyManager instances associated to a
1916 nested properties should return not the properties of the data source
1917 itself, but the properties of the type of a specific property in the
1918 data source - match .net.
1920 2008-08-24 Gert Driesen <drieseng@users.sourceforge.net>
1922 * ListBox.cs (IntegerCollection): To avoid duplication, moved code for
1923 AddRange overloads into AddItems method, and added missing NULL check.
1924 Added extra argument check to RemoveAt for compatibility with MS.
1925 Modified IList implementation of Add, Contains, IndexOf and Remove to
1926 throw an ArgumentException if item is not an int. Modified IList.Insert
1927 to throw a NotSupportException instead of an Exception. Implemented
1929 (ObjectCollection): To avoid duplication, use AddItems method from
1930 AddRange overloads. On 1.0 profile, first perform NULL check on items
1933 2008-08-23 Gert Driesen <drieseng@users.sourceforge.net>
1935 * Control.cs: Do not modify bounds directly in .ctor's. Fixes bug
1938 2008-08-22 Atsushi Enomoto <atsushi@ximian.com>
1940 * X11Keyboard.cs : comment out some Console.WriteLine().
1942 2008-08-22 Atsushi Enomoto <atsushi@ximian.com>
1944 * X11Keyboard.cs : fixed wrong call to XOpenIM() which happened
1945 even if premises are not filled. Also XLookupString() was not
1946 receiving correct input, which blocked precise input handling
1949 2008-08-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1951 * ListView.cs: When calling OnCacheVirtualItems, cast to the right
1952 type of delegate, instead of EventHandler - this was causing a type
1953 cast exception in all apps handling this event.
1956 2008-08-20 Jonathan Pobst <monkey@jpobst.com>
1958 * ToolStripDropDownItem.cs: Always raise DropDownOpening in
1959 ShowDropDown to give the user a chance to dynamically add
1960 drop down items. [Step 1 of fixing bug #417877]
1962 2008-08-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1964 * X11Dnd.cs: Don't fire pseudo motion DragOver events if we haven't
1965 had any mouse motion since the call to StartDrag, to match the dnd
1967 Fixes part of #381876.
1969 2008-08-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1971 * XplatUIX11.cs: Only do the children control bounds check for EnterNotify
1972 if mode is NotifyUngrab, and let it flow if mode is NotifyNormal.
1973 Also, if we are actually moving into a different window after
1974 grabbing, generate a LeaveNotify event for the previous window, since
1975 we need to fire the leave events until the grab ends, not when
1976 actually moving outside of the control.
1978 2008-08-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1980 * XplatUIX11.cs: The check inside EnterNotify case to fire MouseEnter
1981 events only for client windows was wrong - we need to compare the
1982 client window against the window receiving the EnterNotify event, not
1983 against zero (since client window is never Zero, btw).
1984 This prevents having unnecessary handling of EnterNotify events for
1985 non-client windows when a gran begins.
1987 2008-08-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1989 * XplatUIX11.cs: Handling X ButtonPress events, we must *not* generate
1990 MouseMove/MotionNotify events at all (which should only happen after
1991 MouseUp/ButtonRelease, as .Net does).
1992 This avoids firing an extra and unnecessary MouseMove event just after
1993 every MouseDown event.
1995 2008-08-19 Jonathan Pobst <monkey@jpobst.com>
1997 * LinkLabel.cs: Always clear any previous links when LinkArea
1998 is set. [Fixes bug #410709]
2000 2008-08-19 Jonathan Pobst <monkey@jpobst.com>
2002 * ToolStripProfessionalRenderer.cs: Revert last change.
2003 * ProfessionalColorTable.cs: For Classic, use SystemColors.Window
2004 for ToolStripDropDownBackground.
2006 2008-08-19 Jonathan Pobst <monkey@jpobst.com>
2008 * ToolStripProfessionalRenderer.cs: Use Window color for the
2009 background of dropdowns to match .Net when the user is not
2010 using the default white. [Fixes bug #418108]
2012 2008-08-19 Atsushi Enomoto <atsushi@ximian.com>
2014 * XplatUIWin32.cs : SetTimer() used to set wrong window handle and
2015 it caused timer registration twice. Fixed bug #418107.
2017 2008-08-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2019 [Correction: This is the actual change to X11Dnd issue, not the
2020 previous one, which was actually a different issue.]
2022 * X11Dnd.cs: Increase the interval for the Timer, to not fire our
2023 pseudo motion HandleMouseOver method so aggresive. Also, don't call it
2024 when the pointer is actually in motion, but only when the pointer
2025 seems to stop (as .net does).
2026 Fixes part of #381876.
2029 2008-08-18 Jonathan Pobst <monkey@jpobst.com>
2031 * ListBox.cs: Fix CopyTo implementation.
2034 2008-08-18 Jonathan Pobst <monkey@jpobst.com>
2036 * ThemeWin32Classic.cs: Use ClientRectangle instead of Bounds when
2037 drawing a ComboBox's background. Fixes bad disabled rendering when
2038 the control is not at 0,0.
2041 2008-08-16 Ivan N. Zlatev <contact@i-nz.net>
2043 * GridEntry.cs: Leave the ICustomTypeDescriptor handling up to the
2044 ComponentModel layer, which will properly prioritize the attributes.
2045 Avoids wrong prioritization of duplicate attributes when retrieving
2046 the converter and editor.
2049 2008-08-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2051 * XplatUIX11.cs: Increase the interval for the Timer, to not fire our
2052 pseudo motion HandleMouseOver method so aggresive. Also, don't call it
2053 when the pointer is actually in motion, but only when the pointer
2054 seems to stop (as .net does).
2055 Fixes part of #381876.
2057 2008-08-15 Ivan N. Zlatev <contact@i-nz.net>
2059 * GridEntry.cs: Perform stricter check for the ParentEntry's
2060 PropertyDescriptor/PropertyOwner for the ICustomTypeDescriptor
2064 2008-08-14 Geoff Norton <gnorton@novell.com>
2066 * XplatUICarbon.cs: Properly implement PeekMessage and DoEvents.
2067 Fixes #396983. Properly fix ActiveWindow trackin and do not
2068 prematurely show POPUP windows.
2070 2008-08-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2072 * XplatUIX11.cs: Handle the obscured regions while scrolling using
2073 GraphicsExpose event, processing it just after we copy the scrolled
2074 area. This ensures that the next calls to ScrollWindow will copy
2075 regions already updated, and the scrolling will be smooth. Also remove
2076 the code that was trying to detect the obscured regions, since we are
2077 not using it anymore (too slow).
2079 2008-08-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2081 * ListBox.cs: Fix the -temporary- broken selection in ListBox for
2082 MultiExtended mode, by separating some logic between the ctrl/shift
2083 handling. Also ignore any MouseMove events generated together with
2084 MouseDown events - we are only interested in the real motion event.
2085 Fixes part of #414963.
2087 2008-08-08 Jonathan Pobst <monkey@jpobst.com>
2089 * DataGridViewCell.cs: Guard against an AOORE when checking if a cell
2090 is selected. [Fixes bug #414143]
2092 2008-08-07 Ivan N. Zlatev <contact@i-nz.net>
2094 * GridEntry.cs: Check if current property is a ICustomTypeDescriptor
2095 and not the parent one (the propertyowner). Fixes the behavior of
2096 GetConverter/GetEditor.
2099 2008-08-07 Ivan N. Zlatev <contact@i-nz.net>
2101 * PropertyGrid.cs: Refresh should also repopulate the PropertyGrid.
2102 [Fixes part of bug #415452]
2104 2008-08-05 Ivan N. Zlatev <contact@i-nz.net>
2106 * GridEntry.cs: ITypeDescriptorContext should be relative to the parent
2107 GridEntry, not the current.
2110 2008-08-04 Ivan N. Zlatev <contact@i-nz.net>
2112 * TextBoxBase.cs: De-internalize max_length field.
2113 * RichTextBox.cs: Use base.MaxLength - both TextBoxBase and RichTextBox
2114 share the same logic.
2117 2008-08-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2119 * ListBox.cs: Selection changes made in the MouseDown handler should
2120 use the *Core versions of selection in SelectedIndices collection,
2121 since the SelectedIndexChanged/SelectedValueChanged events are fired
2122 until we get a MouseUp event, and thus we need to separate the logic
2123 from the events, as done in the keyboard navigation. Also, fire those
2124 selection events from keyboard navigation in SelectionMode.None, even
2125 if we don't have a selection, as .Net does.
2127 2008-08-01 Jonathan Pobst <monkey@jpobst.com>
2129 * ToolStripButton.cs, ToolStripMenuItem.cs: Guard against a NRE my
2130 last change introduced when an item is clicked but isn't on a toolstrip.
2132 2008-07-31 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2134 * ListBindingHelper.cs: When looking for an object's properties, check
2135 if it implements ICustomTypeDescriptor, in which case we should
2136 resolve the propertu based on its GetProperties method, not in its
2137 actual properties. This is what .Net seems to do.
2138 Fixes a UsingWebBrowser problem during initialization.
2140 2008-07-31 Jonathan Pobst <monkey@jpobst.com>
2142 * ToolStrip.cs: Fix an NRE caused by clicking on a ToolStripButton
2143 sitting on a MenuStrip.
2145 2008-07-31 Jonathan Pobst <monkey@jpobst.com>
2147 * ToolStripButton.cs: If we "click" a top button on a menustrip that has
2148 no children with the keyboard, we need to release the keyboard capture.
2151 2008-07-31 Jonathan Pobst <monkey@jpobst.com>
2153 * ToolStripMenuItem.cs: If we "click" a top level menu item that has
2154 no children with the keyboard, we need to release the keyboard capture.
2157 2008-07-31 George Giolfan <georgegiolfan@yahoo.com>
2159 * ThemeVisualStyles.cs: Made ScrollBar rendering less strict so it supports
2160 the GTK+-based implementation of VisualStyles.
2161 * ThemeWin32Classic.cs: Exposed various layout values for use in the
2162 GTK+-based implementation of VisualStyles: ListViewGetHeaderHeight(Font),
2163 ListViewGetHeaderHeight(), ProgressBarChunkSpacing, ProgressBarGetChunkSize(),
2164 ProgressBarGetChunkSize(int), ProgressBarDefaultHeight,
2165 TrackBarGetThumbSize(), TrackBarVerticalTrackWidth,
2166 TrackBarHorizontalTrackHeight.
2168 2008-07-31 George Giolfan <georgegiolfan@yahoo.com>
2170 * TabControl.cs: Added hot style handling for the scroll buttons.
2171 right_slider_state, left_slider_state are now of type PushButtonState to
2172 allow for a hot state. Added tracking of the mouse button being held down
2173 on a tab page. Extracted HasHotElementStyles, RightScrollButtonArea,
2174 LeftScrollButtonArea.
2175 * Theme.cs, ThemeWin32Classic.cs: Removed TabControlGetLeftScrollRect,
2176 TabControlGetRightScrollRect.
2178 2008-07-30 Everaldo Canuto <ecanuto@novell.com>
2180 * MenuAPI.cs: Check for null GrabControl on ProcessMnemonic to prevent
2183 2008-07-30 Ivan N. Zlatev <contact@i-nz.net>
2185 * Form.cs: Ensure that we reset the shown_raised flag after
2186 the form is closed, so that we raise the show events the next
2187 time the form is shown.
2190 2008-07-30 Ivan N. Zlatev <contact@i-nz.net>
2192 * Form.cs: Ensure closing events are raised only once.
2195 2008-07-30 Ivan N. Zlatev <contact@i-nz.net>
2197 * X11Keyboard.cs: Refactor SendKeyboardInput to accept the keycode,
2198 so that we can successfully generate the LParam in-place instead of
2199 in KeyEvent, which isn't called for e.g. MainMenu. Fixes keyboard
2200 navigation for menus.
2202 2008-07-30 Everaldo Canuto <ecanuto@novell.com>
2204 * MenuAPI.cs: When montion don't set the keyboard navigation state to
2205 'navigating'. Fixes bug #411356.
2207 2008-07-30 Everaldo Canuto <ecanuto@novell.com>
2209 [Fixed remaining issues of #406773 (#1)]
2210 * MenuItem.cs: UpdateMenuItem added to track the shotcut changes.
2212 * MenuAPI.cs: Don't create tracker on TrackPopupMenu, it will be created in
2213 MainMenu (already done) and ContextMenu creation.
2215 * ContextMenu.cs: Create tracker on construction.
2217 2008-07-30 Everaldo Canuto <ecanuto@novell.com>
2219 * MenuAPI.cs: For ContextMenu set GrabControl on TrackPopupMenu, it make
2220 possible to instantiate MenuTracker without GrabControl.
2222 2008-07-30 Everaldo Canuto <ecanuto@novell.com>
2224 * MenuAPI.cs: On constructor dont set the GrabControl for non ContextMenu.
2226 * MainMenu.cs: Set GrabControl on SetForm using current form.
2228 2008-07-30 Everaldo Canuto <ecanuto@novell.com>
2230 * MenuAPI.cs: Chage grab_control to GrabControl and make it public.
2232 2008-07-30 Everaldo Canuto <ecanuto@novell.com>
2234 * MenuAPI.cs: Check if menu is activated before deactivate it in
2237 2008-07-30 Ivan N. Zlatev <contact@i-nz.net>
2239 * TableLayoutStyleCollection, TableLayoutStyle.cs, RowStyle.cs,
2241 Make the TableLayoutStyle owned by the the TableLayoutPanel, so that:
2242 - One style instance can only participate in a single style collection.
2243 - Styles can request their owner to layout whenever their properties
2245 [Fixes bugs #412583 and #412582]
2247 2008-07-29 Ivan N. Zlatev <contact@i-nz.net>
2249 * X11Keyboard.cs: Implement the generation of the LParam for
2250 all keyboard messages.
2253 2008-07-29 Jonathan Pobst <monkey@jpobst.com>
2255 * ListBox.cs: Don't let the user set TopIndex so high that it
2256 scrolls up far enough to show empty items.
2259 2008-07-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2261 * ThemeWin32Classic.cs: Actually commit the changes to fix #410880
2262 (I'm an idiot and forgot to commit the actual changes, as well as
2263 specify the right file, which is this one, not ListView.cs).
2265 2008-07-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2267 * ListView.cs: Don't draw ListViewSubItem instances from
2268 DrawListViewItem - we need to reuse the main item's drawing for the
2269 first sub item in case owner draw is true, but wants the system to
2270 do the default draw for the first sub item, without incurring in a
2274 2008-07-28 Jonathan Pobst <monkey@jpobst.com>
2276 * ToolStripButton.cs: Update Checked for CheckOnClick before
2277 raising the Click event. [Fixes bug #412505]
2279 2008-07-28 Ivan N. Zlatev <contact@i-nz.net>
2281 * Form.cs: Remove some seems leftover code for non-TopLevel's
2282 CreateParams, which is breaking ClientSize sizing, because it
2283 removes the border window styles.
2285 2008-07-27 Ivan N. Zlatev <contact@i-nz.net>
2287 * PropertyGrid.cs: Invalidate the View when the PropertyTab
2290 2008-07-25 Gert Driesen <drieseng@users.sourceforge.net>
2292 * WebBrowser.cs: Removed debug output.
2294 2008-07-25 Jonathan Pobst <monkey@jpobst.com>
2296 * FileDialog.cs: Apply patch from Ernesto to clean up some
2299 2008-07-25 Ivan N. Zlatev <contact@i-nz.net>
2301 * TableLayoutPanel.cs: Perform layout on GrowStyle change, so
2302 that the change has an immediate effect.
2304 2008-07-25 Ivan N. Zlatev <contact@i-nz.net>
2306 * ScrollableControl.cs: Update PerformLayout calls to include
2307 provide the name of the property that changed.
2309 2008-07-25 Ivan N. Zlatev <contact@i-nz.net>
2311 * TableLayoutPanel.cs: Draw relative to the DisplayRectangle
2312 location. Fixes drawing of border and cell borders if scrollable.
2314 2008-07-25 Ivan N. Zlatev <contact@i-nz.net>
2316 * ScrollableControl.cs: Perform layouting after the AutoScroll
2317 properties have changed, so that the changes have immediate
2321 2008-07-25 Ivan N. Zlatev <contact@i-nz.net>
2323 * XplatUIX11.cs: Non Client area is actually Client such in the
2324 case of NotifyIcon, so double check WholeWindow == ClientWindow
2325 when adding an expose.
2326 [Fixes bugs #324237 and #357022]
2328 2008-07-25 Ivan N. Zlatev <contact@i-nz.net>
2330 * TableLayoutPanel.cs: Invalidate after layouting, so that we
2331 repaint the cell borders.
2333 2008-07-25 Ivan N. Zlatev <contact@i-nz.net>
2335 * PropertyGridTextBox.cs: Stop filtering messages prior to our
2336 disposal to avoid unexpected ObjectDisposedExceptions.
2338 2008-07-24 Ivan N. Zlatev <contact@i-nz.net>
2340 * TableLayoutPanel.cs: Layout on Row/Column count change.
2342 2008-07-22 Gert Driesen <drieseng@users.sourceforge.net>
2344 * ListViewItem.cs: Changed binary serialization to match MS. Fixes
2346 * PictureBox.cs: When ImageLocation is set to null or an empty string,
2347 only set image to null if it was previously initialized from an url
2348 (or using ImageLocation). In ImageLocation, load specified image
2349 asynchronously if WaitOnLoad is false. Added support for local file
2350 paths to LoadAsync, and added missing argument check.
2352 2008-07-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2354 * DateTimePicker.cs:
2355 * ThemeWin32Classic.cs: Add a editing capability to DateTimePicker, in
2356 order to set the value as required (which means: when selection
2357 changes for a part being edited, and not before that if not needed).
2358 Also use an enum to describe which part are we using, and use the
2359 selection as a property in PartData, in order to notify the
2360 DateTimePicker owner that we need to end the current edit.
2363 2008-07-17 Ivan N. Zlatev <contact@i-nz.net>
2365 * PropertyGridTextBox.cs: Validation should be performed only if we
2366 are focused. We can lose focus for example if the Return key is used
2367 to set the entry and there is an error. When the message box is
2368 displayed we would have validate on click in the message box.
2370 2008-07-16 Ivan N. Zlatev <contact@i-nz.net>
2372 * GridEntry.cs: Checking for DesignerSerializaitonVisibility.Content
2373 in order to determine that we are expandable is wrong. There was a bug,
2374 now fixed, in TypeDescriptor that was causing the wrong converter to be
2375 returned which caused GetPropertiesSupported == false in most cases.
2378 2008-07-15 Jonathan Pobst <monkey@jpobst.com>
2380 * ImageList.cs: Fix ICollection.CopyTo implementation for
2381 ImageListCollection. [Fixes bug #409169]
2383 2008-07-14 Jonathan Pobst <monkey@jpobst.com>
2385 * MenuAPI.cs, ToolStripDropDown.cs: Use VirtualScreen instead of
2386 WorkingArea so that menus can appear on the second monitor
2387 when one has dual monitors.
2389 2008-07-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2391 * TextBox.cs: Auto complete stuff in WndProc should be 2.0 only.
2394 2008-07-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2396 * TextBox.cs: Implement navigation support for auto complete in
2397 TextBox, as well as refactor the code to show the auto complete window
2398 when receiving a WM_CHAR message, instead of TextChanged, since
2399 autocomplete itself should be able to set the Text a lot of times and
2400 finally only typing should show it, not changes from code.
2402 2008-07-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2404 * TabControl.cs: When expanding the selected tab, don't adjust the
2405 width if alignment is Right, since it has a different offset than 0,
2406 as opposed to the other alignments.
2407 Fixes the selected tab not being painted at all with alignment = Right
2408 and using FillToRight size mode.
2410 2008-07-14 Jonathan Pobst <monkey@jpobst.com>
2412 * TreeView.cs: Fix ToString to match MS. [Fixes bug #409029]
2414 2008-07-14 Jonathan Pobst <monkey@jpobst.com>
2416 * NumericUpDown.cs: Apply patch from Andy Hume to clamp out of range
2417 values from the textbox to the boundary values. [Fixes bug #409026]
2419 2008-07-14 Jonathan Pobst <monkey@jpobst.com>
2421 * TreeNodeCollection.cs: We were copying one too many elements when
2422 doing our array copy. Fixes a crash when RemoveAt is called.
2425 2008-07-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2427 * TabControl.cs: When doing the layout and need to call FillRow -using
2428 FillToRight size mode-, use the overload receiving a bool param
2429 indicating whether we need to do a vertical or horizontal calculation.
2430 Fixes part of #399583.
2432 2008-07-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2434 * TextBox.cs: When painting, use the value returned by
2435 GetLastVisibleItem instead of using the cached last_item field, since
2436 there could be a desynchronization between the layout and the
2437 painting. Fixes a AOOR exception in auto complete mode.
2439 2008-07-12 George Giolfan <georgegiolfan@yahoo.com>
2441 * ThemeVisualStyles.cs: Disabled when Application.VisualStyleState is
2442 NonClientAreaEnabled until our VisualStyles is modified to allow it.
2444 2008-07-12 Gert Driesen <drieseng@users.sourceforge.net>
2446 * TextBox.cs: Fixed NRE in LostFocus. Avoid unnecessary initialization.
2448 2008-07-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2450 * TextBox.cs: When focus is lost, if the auto complete listbox is
2453 2008-07-11 George Giolfan <georgegiolfan@yahoo.com>
2455 * InternalWindowManager.cs: HandleSizing: Implemented a better minimum
2456 tracking size for tool windows.
2457 * Theme.cs, ThemeWin32Classic.cs : Extracted
2458 ManagedWindowSpacingAfterLastTitleButton.
2460 2008-07-11 Jonathan Pobst <monkey@jpobst.com>
2462 * ThemeEngine.cs: Remove the clearlooks, nice, and old gtk themes.
2463 They are bit-rotted and have always been listed as "unsupported".
2465 2008-07-11 Jonathan Pobst <monkey@jpobst.com>
2467 * PictureBox.cs: Don't crash if ImageLocation is set to "" or null.
2469 2008-07-11 George Giolfan <georgegiolfan@yahoo.com>
2471 * ThemeVisualStyles.cs: Fixed minimized window height adjustment.
2473 2008-07-10 Jonathan Pobst <monkey@jpobst.com>
2475 * ListBox.cs: Make sure last_item_visible gets reset before we try
2476 to do a layout due to scrollbars appearing or disappearing.
2479 2008-07-10 Jonathan Pobst <monkey@jpobst.com>
2481 * XPlatUIWin32.cs: Change GetMenuOrigin to calculate borders better
2482 for different window themes. [Fixes bug #339140]
2484 2008-07-10 George Giolfan <georgegiolfan@yahoo.com>
2486 * ThemeWin32Classic.cs: Implemented minimized window border width properly,
2487 in ManagedWindowBorderWidth.
2489 2008-07-10 Jonathan Pobst <monkey@jpobst.com>
2491 * InternalWindowManager.cs: Change MouseMove to take a point, so
2492 we can use the same point later on.
2493 * MdiWindowManager.cs: Store point sent to MouseMove so we can
2494 later reset to it. On Windows, the Cursor.Position had already
2495 changed by the time we were resetting to it.
2498 2008-07-10 Jonathan Pobst <monkey@jpobst.com>
2500 * InternalWindowManager.cs: Ignore mouse actions on TitleButtons that
2502 * ThemeWin32Classic.cs: Disable or hide MinimizeBox/MaximizeBox if
2506 2008-07-10 Jonathan Pobst <monkey@jpobst.com>
2508 * MdiWindowManager.cs: Double-clicking on the title bar should not
2509 maximize a MDI form if MaximizeBox = false.
2511 2008-07-10 George Giolfan <georgegiolfan@yahoo.com>
2513 * ThemeVisualStyles.cs: Fixed a warning.
2515 2008-07-10 George Giolfan <georgegiolfan@yahoo.com>
2517 * ThemeVisualStyles.cs: Fixed warnings and formatted.
2519 2008-07-10 George Giolfan <georgegiolfan@yahoo.com>
2521 * ThemeVisualStyles.cs: Removed ManagedWindowGetMenuButtonSize. The base
2522 implementation produces a better result.
2524 2008-07-10 George Giolfan <georgegiolfan@yahoo.com>
2526 * ThemeVisualStyles.cs: Adjusted height and border rendering for minimized
2529 2008-07-10 George Giolfan <georgegiolfan@yahoo.com>
2531 * Application.cs: Added VisualStylesEnabled because XplatUI.ThemesEnabled
2532 cannot be used from the ThemeEngine constructor.
2533 * ThemeEngine.cs: Changed the XplatUI.ThemesEnabled check to
2534 Application.VisualStylesEnabled because it does not work on X11.
2536 2008-07-09 Jonathan Pobst <monkey@jpobst.com>
2538 * StatusBar.cs: Apply patch from Andy Hume to remove lazy instantiation
2539 that we did not always check for, as well as fixes to the IList
2540 implementations. [Fixes bug #402703]
2542 2008-07-09 George Giolfan <georgegiolfan@yahoo.com>
2544 * IDeviceContext.cs: Added Dispose.
2546 2008-07-09 George Giolfan <georgegiolfan@yahoo.com>
2548 * Control.cs: Added OnSizeInitializedOrChanged.
2549 * Form.cs: OnLoadInternal: Added a call to
2550 Control.OnSizeInitializedOrChanged.
2551 * InternalWindowManager.cs:
2552 * HandleTitleBarMouseMove: No longer invalidates the parent window.
2553 * DrawTitleButton: Extracted Theme.ManagedWindowDrawMenuButton.
2554 * TitleButton: Added Entered.
2555 * TitleButtons.MouseMove: Added handling of TitleButton.Entered.
2556 * MdiWindowManager.cs:
2557 * HandleTitleBarMouseMove: Now invalidates the parent window when a mouse
2558 move over the maximized title buttons causes a change.
2559 * IsActive: Can now be called before the window is added to a MDI parent.
2560 * Theme.cs: Added ManagedWindowTitleButtonHasHotElementStyle,
2561 ManagedWindowDrawMenuButton, ManagedWindowOnSizeInitializedOrChanged.
2562 * ThemeVisualStyles.cs: Implemented proper managed window rendering.
2563 * ThemeWin32Classic.cs:
2564 * Extracted ManagedWindowDrawTitleBarAndBorders, ManagedWindowDrawTitleButton.
2565 * DrawTitleButton takes a new form parameter.
2566 * Added ManagedWindowTitleButtonHasHotElementStyle,
2567 ManagedWindowDrawMenuButton, ManagedWindowOnSizeInitializedOrChanged.
2569 2008-07-09 George Giolfan <georgegiolfan@yahoo.com>
2571 * ThemeEngine.cs: ThemeVisualStyles is now selected if
2572 Application.EnableVisualStyles has been called, even if the current system
2573 configuration does not support rendering with Visual Styles.
2574 * ThemeVisualStyles.cs: Now falls back to ThemeWin32Classic when Visual
2575 Styles should not be used.
2577 2008-07-08 Jonathan Pobst <monkey@jpobst.com>
2579 * ComboBox.cs: PreferredHeight is not tied to ItemHeight. Fixes 3rd
2580 ComboBox in FormsTest.
2582 2008-07-08 Ivan N. Zlatev <contact@i-nz.net>
2584 * ThemeWin32Classic.cs: (ManagedWindowBorderWidth): width 3 is only
2585 for fixed toolwindows.
2587 2008-07-08 George Giolfan <georgegiolfan@yahoo.com>
2589 * Form.cs: SetBoundsCore: Added minimum size for minimized windows.
2591 2008-07-07 Ivan N. Zlatev <contact@i-nz.net>
2593 * Control.cs: CreateControl just returns if the Control is diposed
2594 and doesn't throw ObjectDisposedException.
2597 2008-07-07 Ivan N. Zlatev <contact@i-nz.net>
2599 * Control.cs: Do not create the control if the parent isn't created
2600 yet, e.g in the case of a parented form on which .Show is called.
2601 It will be created when the parent is made visible/created.
2604 2008-07-07 Ivan N. Zlatev <contact@i-nz.net>
2606 * Form.cs: Avoid recursively calling OnSizeChanged due to recursive
2607 WM_WINDOWPOSCHANGED caused by the layouting code on win32.
2610 2008-07-07 Ivan N. Zlatev <contact@i-nz.net>
2612 * Form.cs: When disposed set owner to null. Improves #402446.
2614 2008-07-07 Ivan N. Zlatev <contact@i-nz.net>
2616 * Form.cs, FlowLayoutPanel.cs: When calculating the PreferredSize
2617 use children's PreferredSize if in AutoSize mode and ExplicitBounds
2619 * Form.cs: Take the Padding into account for the PreferredSize.
2622 2008-07-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2624 * TabControl.cs: Since we don't support more than one direction in
2625 TabControl rows alignment (this is, the row becomes the
2626 bottom row when selected), make Direction return always 1. This way
2627 the layout doesn't get confused about a bad calculation.
2630 2008-07-07 Ivan N. Zlatev <contact@i-nz.net>
2632 * XplatUIX11.cs: Implement NC hit-testing for mouse down/up messages,
2633 so that the wparam is properly set.
2634 Fixes form moving in the test case in bug 402446.
2636 2008-07-07 Jonathan Pobst <monkey@jpobst.com>
2638 * FolderBrowserDialog.cs: If we can't find the SelectedPath, display
2639 the full tree instead of nothing. [Improves bug #406584]
2641 2008-07-07 George Giolfan <georgegiolfan@yahoo.com>
2643 * ThemeWin32Classic.cs: Adjusted minimized window painting.
2645 2008-07-07 George Giolfan <georgegiolfan@yahoo.com>
2647 * InternalWindowManager.cs: No longer draws decorations for maximized MDI
2650 2008-07-04 Jonathan Pobst <monkey@jpobst.com>
2652 * TreeView.cs: Add a null check when using CollapseAll on an
2653 empty tree. [Fixes bug #406449]
2655 2008-07-03 Jonathan Pobst <monkey@jpobst.com>
2657 * Form.cs: Make OnMenuComplete internal so we can call it.
2658 * MenuAPI.cs: Raise Form.MenuComplete when a menu item is clicked.
2661 2008-07-03 Jonathan Pobst <monkey@jpobst.com>
2663 * TabControl.cs: Handle Up and Down keys when TabControl is in
2667 2008-07-03 Jonathan Pobst <monkey@jpobst.com>
2669 * TabControl.cs: Invalidate when we remove a tab. Guard against
2670 an AOORE when trying to remove a tabpage that is not owned by the
2674 2008-07-03 Jonathan Pobst <monkey@jpobst.com>
2676 * ScrollBar.cs: Change the LargeChange calculation to be correct.
2677 Ensure we are using LargeChange instead of large_change so we our
2678 calculations are correct.
2681 2008-07-03 Jonathan Pobst <monkey@jpobst.com>
2683 * TableLayoutPanel.cs: When we change to a serialized TableLayoutSettings,
2684 we need to ensure the ColumnCount/RowCount gets set.
2687 2008-07-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2689 * ListBox.cs: When handling item navigation, if selection mode is
2690 None, call EnsureVisible, since scrolling is normally handled by
2691 selection, that we are not calling in this case.
2694 2008-07-02 Jonathan Pobst <monkey@jpobst.com>
2696 * ContainerControl.cs: Apply a patch from Ernesto Carrea that adds
2697 a null check to our focus walking code. [Fixes bug #394332]
2699 2008-07-02 Andy Hume <andyhume32 at yahoo dot co dot uk>
2701 * ComboBox.cs: Case missed in bug 379596 "Support item
2702 navigation by entering text": On _close_ drop-down select
2703 the first item matching the text in the textbox. [Fixes bug #397265]
2705 2008-07-02 Jonathan Pobst <monkey@jpobst.com>
2707 * DataGridView.cs: Fix a crash when sorting by column headers,
2708 mentioned in bug #404841. Remove some dead switch cases.
2710 2008-07-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2713 * TextBox.cs: Implement AutoComplete support for ComboBox, which just
2714 uses the AutoComplete support in the internal TextBox. Also TextBox
2715 can store a reference to ComboBox, in case AutoCompleteSource is set
2716 to ListItems (this is, ComboBox's items, and we don't want to pass an
2717 additional collection).
2719 2008-07-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2721 * ListViewItem.cs: Restore the initial value of bounds rect to
2722 Rectangle.Empty, and is this value for Layout detection in virtual
2723 mode. Fixes the tests.
2725 2008-06-30 Jonathan Pobst <monkey@jpobst.com>
2727 * XPlatUI.cs: Remove references to "new" X11 backend.
2729 2008-06-28 Ivan N. Zlatev <contact@i-nz.net>
2731 * Control.cs: Add an internal virtual OnDragDropEnd method
2732 to allow controls such as ListBox, which depend on a sequence
2733 of MouseDown+Move+End events, to handle the lack of a MouseUp
2734 when a DnD operation is started in MouseDown.
2735 * ListBox.cs: If a DnD operation is started in MouseDown we won't
2736 get a MouseUp, so reset our state whenever a DnD operation ends.
2738 2008-06-28 Ivan N. Zlatev <contact@i-nz.net>
2740 * PropertyGrid.cs: Clear the root griditem first thing when
2741 new object/s is/are selected. Fixes some rare cases where
2742 the View will get a paint request and won't know that the
2743 grid is in the process of repopulating.
2745 2008-06-27 Ivan N. Zlatev <contact@i-nz.net>
2747 * XplatUIX11.cs, InternalWindowManager.cs:
2748 If WS_EX_TOOLWINDOW is set in the CreateParams for a form MS
2749 doesn't automagically update the FormBorderStyle, so we must
2750 double check the CreateParams explicitly to determine if the
2751 window is a toolwindow.
2752 * ThemeWin32Classic.cs: Use InternalWindowManager.IsToolWindow
2753 instead of doing custom checks.
2755 Fixes toolwindows for the test case in bug #402446
2757 2008-06-27 Ivan N. Zlatev <contact@i-nz.net>
2759 * Control.cs: Visibility of the control should be false
2760 when the handle is destroyed in WmDestroy and not immediately
2761 in Dispose(). This is effectively where the disposing process
2762 ends even though the control is marked as Disposed immediately
2763 after calling Dispose().
2766 2008-06-27 Ivan N. Zlatev <contact@i-nz.net>
2768 * PropertyGridTextBox.cs: Start monitoring the mouse clicks
2769 when the textbox gets focus.
2772 2008-06-27 Ivan N. Zlatev <contact@i-nz.net>
2774 * PropertyGridTextBox.cs, PropertyGridView.cs:
2775 - Alt + Down should show the drop down editor.
2776 - Focus the editor when showing it
2779 2008-06-25 Jonathan Pobst <monkey@jpobst.com>
2781 * ThemeWin32Classic.cs: Fix from Andy for panel text for panels
2782 that are not the first panel.
2783 * StatusBar.cs: Ensure that the X coordinate of panels is always
2784 stored. Fix IList implementation of StatusBarPanelCollection to
2785 call the regular methods.
2786 [Fixes bug #403599, #402165]
2788 2008-06-23 Jonathan Pobst <monkey@jpobst.com>
2790 * ThemeWin32Classic.cs: Fix position calculation for centered
2791 text on status bar panels. [Fixes bug #402165]
2793 2008-06-22 Ivan N. Zlatev <contact@i-nz.net>
2795 * Splitter.cs: Fix Splitter to:
2796 - Work for arbitrary splitter size
2797 - Handle MinSize and MinExtra properly
2798 - Get rid of absolute positioning during drag and use relative
2799 - Multiple other fixes
2802 2008-06-22 Ivan N. Zlatev <contact@i-nz.net>
2804 * Cursor.cs: Show shouldn't hide the cursor.
2806 2008-06-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2808 * ListViewItem.cs: When invalidating, add some extra space to bounds,
2809 since focus rectangle and selection can add some space and need to
2810 take into account those small offsets - specially in Details view.
2811 * ListView.cs: Instead of invalidate using item Bounds directly, call
2812 item.Invalidate, to have the code centralized.
2813 Fixes focused/selection garbage when selecting and deselecting items
2816 2008-06-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2818 * ListViewItem.cs: Set bounds initially to -1 values - thus in virtual
2819 mode we can check whether we have to force a Layout or not, and can
2820 cache based on this, instead of avoiding caching all the the time. Do
2821 this check in GetBounds and TextBounds.
2822 Fixes selection in Details view.
2824 2008-06-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2826 * ListView.cs: Make HeaderControl internal, thus the theme engine can
2827 get its *real* height instead of trying to infere it.
2828 * ThemeWin32Classic.cs: When drawing gridlines, don't iterate over the items to
2829 get the position of them, since it's in general a bad idea in general,
2830 and because we can't do that in virtual mode. Instead get the first
2831 visible item as well as item height, and draw them.
2834 2008-06-20 Jonathan Pobst <monkey@jpobst.com>
2836 * ToolStripSplitButton.cs: We can't add in extra width if
2837 the button is not AutoSize. [Fixes bug #401279]
2839 2008-06-20 Ivan N. Zlatev <contact@i-nz.net>
2841 * PaddingConverter.cs:
2842 - Implement conversion to InstanceDescriptor
2843 - Handle "All" in CreateInstance by using the supplied
2844 ITypeDescriptorContext.
2845 [Fixes bugs #396076 and #396078]
2847 Patch by Andy Hume <andyhume32@yahoo.co.uk>
2848 Code contributed under MIT/X11 license.
2850 2008-06-19 Andy Hume <andyhume32 at yahoo dot co dot uk>
2852 * ComboBox.cs, ListControl.cs, Control.cs, Button.cs,
2854 Add Category attributes.
2855 Code is contributed under the MIT/X11 license.
2857 2008-06-18 Ivan N. Zlatev <contact@i-nz.net>
2860 - Fix a NRE when unparenting a form.
2861 - Do not recreate or destroy a parented form when
2864 2008-06-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2866 * TextBox.cs: Implement basic support for AutComplete with custom
2869 2008-06-18 Jonathan Pobst <monkey@jpobst.com>
2871 * ToolStripSplitButton.cs: Left and Top of ButtonBounds, SplitterBounds,
2872 DropDownButtonBounds should be from the origin of the button, not the
2873 ToolStrip. [Fixes bug #401279]
2875 2008-06-16 Sandy Armstrong <sanfordarmstrong@gmail.com>
2877 * X11DesktopColors.cs: Clear GTK_MODULES environment variable before
2878 running gtk_init_check. This prevents GAIL from loading
2879 unnecessarily, which was breaking UIA support. Initial fix for bug
2881 * Application.cs: Add UIA support to Winforms. New static constructor
2882 uses reflection to initialize UIAutomationWinforms assembly. Added
2883 PreRun event so UIA can initialize before the mainloop starts, and
2884 FormAdded event so UIA can provide a11y support for new Forms in an
2887 2008-06-16 Jonathan Pobst <monkey@jpobst.com>
2889 * DataGridView.cs: When binding to a dataset, subscribe to table
2890 and column change events. Unsubscribe to these when we clear bindings.
2893 2008-06-14 Everaldo Canuto <ecanuto@novell.com>
2895 [DataGrid drawing refactory]
2897 * DataGrid.cs: Fix the caption size, we need one pixel more for divider.
2899 * DataGridColumnStyle.cs: Removing PaintHeader code, the draw operations
2900 must be handle by Theme, now it call DataGridPaintColumnHeader.
2902 * DataGridTextBoxColumn.cs: Fix the textbox size. It must be one pixel less,
2903 test cases must be also fixed because it checks for wrong size.
2905 * ThemeWin32Classic.cs:
2906 - Draw the bottom line of grid caption.
2907 - Prevent to draw caption text when it is empty.
2908 - Use CPDrawBorder3D for 3D efects to simplify code.
2909 - Uses 3D (when not flat) to paint corner shared between row and column
2911 - Fix header drawing issues on win32, now borders are drawing.
2912 - Fix column header paint issues to mimic win32.
2913 - Adjust header drawing for last column, like first one it must be draw
2915 - Added DataGridPaintRowHeaderStar to draw star like .net does, it is
2917 - DataGridPaintColumnHeader created to draw column headers, it also
2918 paint stuff right on Win32.
2919 - Use DataGridPaintColumnHeader method instead of DataGridColumnStyle
2923 - DataGridPaintRowHeaderStar method added.
2924 - DataGridPaintColumnHeader method added.
2926 2008-06-13 Jonathan Pobst <monkey@jpobst.com>
2928 * Control.cs: Don't reset to Dock style layout if DockStyle is
2929 set to none. [Fixes bug #399316]
2931 2008-06-12 Everaldo Canuto <ecanuto@novell.com>
2933 * Win32DnD.cs: Fix the check for control not equal null.
2934 Fixes bug #341420 and #381886.
2936 2008-06-12 Jonathan Pobst <monkey@jpobst.com>
2938 * DataGridViewRowCollection.cs: Update the indexes of rows after
2939 one has been removed.
2940 * DataGridViewSelectedRowCollection.cs: Add internal clear method.
2941 * DataGridViewSelectedColumnCollection.cs: Add internal clear method.
2942 * DataGridView.cs: Add support for deleting rows via Delete key, deleting
2943 rows for the Rows collection, or deleting rows from the bound DataSet.
2945 2008-06-12 Jonathan Pobst <monkey@jpobst.com>
2947 * DataGridView.cs: Listen to a DataSet's changed event even
2948 when autogeneratecolumns is false. Refactor the changed event's
2949 add row code to use the same as the existing add row code.
2952 2008-06-11 Jonathan Pobst <monkey@jpobst.com>
2954 * TextBoxBase.cs: We need to call RaiseSelectionChanged pretty
2955 much any time the caret moves and there is text, not just when
2956 the selection changes as one would think.
2957 * RichTextBox.cs: Override RaiseSelectionChanged and fire
2961 2008-06-11 Jonathan Pobst <monkey@jpobst.com>
2963 * FontDialog.cs: Forward ListBox keyboard events to the ListBox
2964 instead of trying to duplicate the code.
2965 * ListBox.cs: Make method internal so we can send keyboard events.
2968 2008-06-11 Jonathan Pobst <monkey@jpobst.com>
2970 * TextBoxBase.cs: When pasting and checking the max length,
2971 subtract the selected text length (the text we will be replacing) from
2972 the document length.
2973 * TextControl.cs: Ensure every character insertion is reflected in
2974 charcount, so max length will work properly.
2977 2008-06-11 Jonathan Pobst <monkey@jpobst.com>
2979 * ListBox.cs: Ensure scrollbars are updated when a single
2980 column listbox with an already set top-index is created.
2983 2008-06-11 Jonathan Pobst <monkey@jpobst.com>
2985 * FontDialog.cs: Typing in the font/style textboxes should search
2986 the list boxes case-insensitively. [Fixes bug #398343]
2988 2008-06-11 George Giolfan <georgegiolfan@yahoo.com>
2990 * ThemeWin32Classic.cs: Managed window title bar layout now uses actual
2991 widths of icon and buttons instead of hard coded values.
2993 2008-06-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2995 * ListBox.cs: When SelectionMode is None, clicking an item should move focus
2996 as well as generating a SelectedIndexChanged event, just like .Net does
3000 2008-06-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3002 * ListBox.cs: When navigating items visually, use FocusedItem as the
3003 reference point instead of SelectedIndex, since even in
3004 SelectionMode.None we need to support navigation, and in that case we
3005 just can't use SelectedIndex.
3006 Fixes part of #398345.
3008 2008-06-10 Jonathan Pobst <monkey@jpobst.com>
3010 * Control.cs: Make a SetBoundsInternal that avoids the new
3012 * ComboBox.cs, Form.cs, ListBox.cs, ScrollableControl.cs: Use
3013 SetBoundsInternal instead of SetBoundsCoreInternal.
3015 2008-06-10 Ivan N. Zlatev <contact@i-nz.net>
3017 * ScrollableControl.cs: Use SetBoundsCoreInternal instead of
3018 SetBounds for the scrollbars.
3020 2008-06-10 Andreia Gaita <avidigal@novell.com>
3022 * HtmlDocument.cs: Implement RightToLeft, ContextMenuShowing,
3023 FocusingEvent, LosingFocusEvent, OnMouseDown, OnMouseLeave,
3024 OnMouseMove, OnMouseOver, OnMouseUp
3025 * HtmlElement.cs: Optimize InsertBefore. Implement RemoveFocus,
3026 ScrollIntoView, Focusing, GotFocus, LosingFocus, LostFocus.
3027 * HtmlElementCollection.cs, HtmlWindowCollection.cs: Keep a reference
3028 to the WebControl object to pass to new collection objects
3029 * HtmlHistory.cs: Implement support for individual window histories.
3030 * HtmlWindow.cs: Implement History, Position, Size, WindowFrameElement,
3031 AttachEventHandler, DetachEventHandler, RemoveFocus, Error,
3032 GotFocus, LostFocus, OnLoad, OnUnload
3033 * WebBrowser.cs: Implement EncryptionLevel, ScrollBarsEnabled,
3035 * WebBrowserBase.cs: Implement Cursor, Enabled, UseWaitCursor, Add
3036 security level changes and context menu event support.
3038 2008-06-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3040 * ComboBox.cs: Pressing Enter should close the dropdown listbox, just
3041 as happens with Esc, patch my Andy Hume.
3044 2008-06-10 George Giolfan <georgegiolfan@yahoo.com>
3046 * MdiWindowManager.cs: DrawMaximizedButtons now uses
3047 ManagedWindowGetMenuButtonSize instead of ManagedWindowButtonSize.
3048 * Theme.cs: Made MenuButtonSize platform dependent. Added
3049 ManagedWindowButtonSize.
3050 * ThemeWin32Classic.cs: Added ManagedWindowGetMenuButtonSize.
3051 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added MenuButtonSize.
3053 2008-06-10 George Giolfan <georgegiolfan@yahoo.com>
3055 * DateTimePicker.cs, Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs:
3056 Added support for rendering with VisualStyles.
3058 2008-06-10 George Giolfan <georgegiolfan@yahoo.com>
3060 * ComboBox.cs, Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs: Added
3061 support for rendering the border with VisualStyles.
3063 2008-06-10 George Giolfan <georgegiolfan@yahoo.com>
3065 * InternalWindowManager.cs: Added ShowIcon. Fixed IconRectangleContains when
3066 the icon is not shown.
3067 * ThemeWin32Classic.cs: Now uses InternalWindowManager.ShowIcon instead of
3070 2008-06-10 George Giolfan <georgegiolfan@yahoo.com>
3072 * InternalWindowManager.cs: Draw minimized windows even if they don't have
3075 2008-06-09 Jonathan Pobst <monkey@jpobst.com>
3077 * ComboBox.cs, ListBox.cs: Use SetBoundsInternalCore instead of SetBounds.
3079 2008-06-09 Jonathan Pobst <monkey@jpobst.com>
3081 * Control.cs: Fill in the defaults for unspecified bounds in SetBounds.
3084 2008-06-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3086 * ComboBox.cs: When snaping height -because of IntegralHeight set to
3087 true- with ComboBoxStyle.Simple, set the height to PreferredHeight
3088 if the requested height leaves the listbox area with *less* than the
3089 required are to see one item. We were setting it to PreferredHeight
3090 even for values matching the height for a single item.
3093 2008-06-06 Jonathan Pobst <monkey@jpobst.com>
3095 * DataGridViewCell.cs: Simplify GetInheritedStyle by using ApplyStyle.
3097 2008-06-06 Jonathan Pobst <monkey@jpobst.com>
3099 * DataGridViewCell.cs: Use property instead of field.
3101 2008-06-06 George Giolfan <georgegiolfan@yahoo.com>
3103 * InternalWindowManager.cs, ThemeWin32Classic.cs: Removed useless Form.Icon
3106 2008-06-06 George Giolfan <georgegiolfan@yahoo.com>
3108 * Theme.cs: Added #region around the managed window code. Made the managed
3109 window methods abstract.
3110 * ThemeWin32Classic.cs: Added #region around the managed window code.
3112 2008-06-06 George Giolfan <georgegiolfan@yahoo.com>
3114 * InternalWindowManager.cs: Now only calls Theme.DrawManagedWindowDecorations
3116 * ThemeWin32Classic.cs: Removed HasBorders checks in
3117 DrawManagedWindowDecorations.
3119 2008-06-06 George Giolfan <georgegiolfan@yahoo.com>
3121 * InternalWindowManager.cs, Theme.cs, ThemeWin32Classic.cs: Refactored:
3122 Extracted ManagedWindowGetTitleBarIconArea.
3124 2008-06-05 Jonathan Pobst <monkey@jpobst.com>
3126 * DataGridViewCellStyle.cs: Don't clone the font.
3128 2008-06-05 Jonathan Pobst <monkey@jpobst.com>
3130 * DataGridViewCell.cs: Ensure we don't pass null to GetConverter.
3132 2008-06-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3134 * XplatUIX1..cs: Use IntPtr size instead of int, as wee need to work
3135 also on 64 bit machinges. Fixes the BadWindow errors while scrolling
3138 2008-06-05 Jonathan Pobst <monkey@jpobst.com>
3140 * DataGridViewCell.cs: Correctly get converters for FormattedValue.
3141 Use Format/FormatProvider before trying converters.
3142 * DataGridViewCellStyle.cs: ApplyStyle should only apply things that
3143 are 'set'. Change constructor to not use ApplyStyle since it wants
3144 everything applied. Clone the Font.
3145 * DataGridViewRowHeaderCell.cs: Start with DefaultCellStyle and
3146 ApplyStyle the rest.
3148 2008-06-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3150 * ListView.cs: We need to calculate the scrollbars even if the handle
3151 hasn't been created - this is needed when methods using scrollbars
3152 info, such EnsureVisible, are called before control has been created.
3155 2008-06-05 George Giolfan <georgegiolfan@yahoo.com>
3157 * ThemeVisualStyles.cs: ScrollBar is now rendered with the VisualStyles API
3158 only if the elements are defined.
3160 2008-06-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3162 * ComboBox.cs: I'm an idiiot - forgot to commit the last ComboBox
3163 section. Also, when setting bounds, snap height as well as save the
3164 requested height if Dock has any value affecting the height: Left,
3165 Right and Bottom - important if using IntegralHeight as true.
3167 2008-06-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3169 * ComboBox.cs: When calling UpdateComboBoxBounds, adjust the height
3170 passed to SetBounds to reflect the new adjusted height (Integral-wise),
3171 instead of doing that only in our SetBoundsCore override, since the
3172 bounds cached can be the same as saved one and we could not get the
3176 2008-06-04 George Giolfan <georgegiolfan@yahoo.com>
3178 * Theme.cs: Made ToolWindowCaptionButtonSize platform dependent.
3179 * XplatUI.cs: Added ToolWindowCaptionButtonSize.
3180 * XplatUIDriver.cs: Changed SmallCaptionButtonSize to 15,15. Added
3181 ToolWindowCaptionButtonSize.
3182 * XplatUIWin32.cs: Added ToolWindowCaptionButtonSize.
3184 2008-06-04 George Giolfan <georgegiolfan@yahoo.com>
3186 * MdiWindowManager.cs: Now uses SystemInformation.DoubleClickTime instead of
3188 * Theme.cs: Made DoubleClickTime plaform dependent.
3190 2008-06-04 George Giolfan <georgegiolfan@yahoo.com>
3192 * Theme.cs: Made ToolWindowCaptionHeight platform dependent.
3193 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added
3194 ToolWindowCaptionHeight.
3196 2008-06-04 George Giolfan <georgegiolfan@yahoo.com>
3198 * InternalWindowManager.cs: The adjustment to ensure positive client area
3199 sizes is now platform dependent (disabled on Windows).
3200 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added
3201 RequiresPositiveClientAreaSize.
3203 2008-06-04 George Giolfan <georgegiolfan@yahoo.com>
3205 * Form.cs: Fixed null handling in Icon (see SettingIconToNull in the tests).
3207 2008-06-04 George Giolfan <georgegiolfan@yahoo.com>
3209 * InternalWindowManager.cs: Changed IconicSize to use
3210 SystemInformation.MinimizedWindowSize.
3211 * XplatUICarbon.cs, XplatUIX11.cs: Removed MinimizedWindowSize.
3212 * XplatUIDriver.cs: Changed MinimizedWindowSize to provide a default value.
3214 2008-06-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3216 * ComboBox.cs: If the combobox is anchored both on top and bottom,
3217 adjust height if IntegralHeight is true when calling SetBoundsCore (as
3218 likely the height was modified even if Height wasn't specified in
3219 BoundsSpecified parameter).
3220 Fixes part of #396297.
3222 2008-06-04 George Giolfan <georgegiolfan@yahoo.com>
3224 * InternalWindowsManager.cs: Changed minimum window size while resizing to
3225 SystemInformation.MinWindowTrackSize.
3226 * XplatUICarbon.cs, XplatUIX11.cs: Removed MinWindowTrackSize.
3227 * XplatUIDriver.cs: Changed MinWindowTrackSize to provide a default value.
3229 2008-06-03 George Giolfan <georgegiolfan@yahoo.com>
3231 * MenuItem.cs: Fixed Dispose.
3233 2008-06-03 George Giolfan <georgegiolfan@yahoo.com>
3235 * ColumnHeader.cs: CalcColumnHeader now uses the theme to get the height.
3236 * DataGridView.cs: * EnableHeadersVisualStyles: Fixed default value.
3237 EnteredHeaderCell, PressedHeaderCell: Added.
3238 * DataGridViewCell.cs: Refactored: Extracted GetBorderPen.
3239 * DataGridViewColumnHeaderCell.cs, DataGridViewRowHeaderCell.cs: Gave the
3240 theme a chance to override default painting.
3241 * ListView.cs: Added EnteredColumnHeader. Refactored: Extracted
3242 GetColumnHeaderInvalidateArea, Invalidate(ColumnHeader).
3243 * Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs: Added members for
3244 ListView and DataGridView header rendering.
3246 2008-06-03 Ivan N. Zlatev <contact@i-nz.net>
3248 * RichTextBox.cs: GetPositionFromCharIndex should return the
3249 visual position of the character relative to the viewport.
3250 [Fixes part of bug #396664]
3252 2008-06-03 Ivan N. Zlatev <contact@i-nz.net>
3254 * GridEntry.cs: Make HasCustomEditor check for EditStyle != None
3255 and not just for the existance of an UITypeEditor. In some cases
3256 there is an editor associated just to do PaintValue, but which
3257 doesn't actually support editing.
3260 2008-05-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3262 * ComboBox.cs: page_size as well as vscrollbar.LargeChange should be 1
3263 if needed, instead of 0 - this should help us in the corner case where
3264 we have more than one item but we are only partially showing 1 item.
3265 Fixes part of #374713.
3267 2008-05-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3269 * XplatUiX11.cs: When scrolling and detecting the obscured areas in a
3270 control, return immediately if the any parent control's handle hasn't
3271 been created or isn't visible, as well as avoiding creating the parent
3272 Form if the handle hasn't been previously created.
3275 2008-06-02 Jonathan Pobst <monkey@jpobst.com>
3277 * TableLayoutPanel.cs: Use border sizes when calculating the
3278 panel's preferred size. [Fixes part of bug #396433]
3280 2008-06-02 Ivan N. Zlatev <contact@i-nz.net>
3282 * SplitContainer.cs:
3283 - Fix SplitterDistance to update only if needed.
3284 - Make it force min and max validation.
3285 - Handle properly mouse moves outside the resizeable area.
3288 2008-06-02 Andreia Gaita <avidigal@novell.com>
3290 * WebBrowserBase.cs: Implement support for ScriptErrorsSuppressed
3291 (which also suppresses all popup dialogs). Throw NotSupported
3292 exceptions for activex getters/setters.
3293 * WebBrowser.cs: Implement DocumentStream, DocumentType, IsBusy,
3294 IsOffline, ReadyState, ScriptErrorsSuppressed, ScrollbarsEnabled,
3295 StatusText, Version, GoSearch
3296 * HtmlDocument.cs: Add DocType support
3298 2008-06-02 Andy Hume <andyhume32@yahoo.co.uk>
3300 * TextBox.cs: Implement TextBoxAutoCompleteSourceConverter.
3303 2008-06-02 Ivan N. Zlatev <contact@i-nz.net>
3305 * GridEntry.cs: Pass the ITypeDescriptorContext everywhere.
3307 2008-06-02 Jonathan Pobst <monkey@jpobst.com>
3309 * TableLayoutPanel.cs: When calculating preferred size, use the
3310 actual number of columns and rows, not what the user set them to.
3313 2008-06-02 George Giolfan <georgegiolfan@yahoo.com>
3315 * Form.cs: Enabled managed handling of tool window MDI children. Fixes bug
3318 2008-06-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3320 * XplatUIX11.cs: When detecting areas obscured in a control by other
3321 toplevel windows while scrolling, return if the control hasn't a
3325 2008-05-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3327 * XplatUIX11.cs: Properly detect the visible area of a control being
3328 scrolled (obscured by other winforms controls and any X toplevel
3329 windows), to mark as invalid the requested area to be scrolled that
3330 isn't visible and thus can't be copied.
3333 2008-05-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3335 * ListBox.cs: Compute the precise amount to vertically scroll when
3336 using DrawMode.OwnerDrawVariable.
3337 Patch by jkeymer (j.keymer@gmx.net).
3339 2008-05-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3341 * ComboBox.cs: Use ListBox-like scrollbar values In ComboListBox
3342 to avoid setting an invalid value for the verticall scrollbar
3343 when navigating items. And, duh, also remove my silly debug messages
3344 from previous commits.
3347 2008-05-30 Ivan N. Zlatev <contact@i-nz.net>
3349 * FlatButtonAppearance.cs: Make FlatButtonAppearanceConverter exandable and
3350 make it MS compatible.
3352 2008-05-30 Ivan N. Zlatev <contact@i-nz.net>
3354 * PropertyGrid.cs, PropertyGridView.cs, GridEntry.cs:
3355 - Allow the editing of entries even if their parent is read-only.
3356 - Do not render expandable properties read-only.
3357 - Refactor expansion checks form PropertyGrid into PropertyGrid.
3359 2008-05-30 George Giolfan <georgegiolfan@yahoo.com>
3361 * ScrollBar.cs, Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs: Added
3362 support for the hover style.
3364 2008-05-29 Andreia Gaita <avidigal@novell.com>
3366 * ContainerControl.cs: Check for null dead-end when traversing the tree
3369 [Fixes #394332, patch by Ernesto Carrea]
3371 2008-05-29 Geoff Norton <gnorton@novell.com>
3373 * XplatUICarbon.cs: Fix a culture-dependent conversion to be the
3374 constant that it is. Fixes #393981
3376 2008-05-29 Jonathan Pobst <monkey@jpobst.com>
3378 * Form.cs: Add a MonoTODO to the AutoScaleBaseSize setter explaining
3379 that the user probably doesn't want to set this.
3381 2008-05-29 Jonathan Pobst <monkey@jpobst.com>
3383 * ThemeWin32Classic.cs: Don't let the text size be bigger than
3384 the control size for CheckBox/RadioBox.
3385 [Fixes part of bug #394645]
3387 2008-05-29 Ivan N. Zlatev <contact@i-nz.net>
3389 * PropertyGrid.cs: Update the state of the sorting buttons in
3390 the toolbar if PropertySort is set programatically.
3392 2008-05-29 Ivan N. Zlatev <contact@i-nz.net>
3394 * GridItemCollection.cs: Add multiple items with conflicting names
3395 support and also preserve name ordering.
3398 2008-05-29 Ivan N. Zlatev <contact@i-nz.net>
3400 * GridItemCollection.cs: Revert my multiple items with same
3403 2008-05-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3405 * ScrollBar.cs: Scrollbars should only react to left-clicks, not right
3407 Fixes part of #393908.
3409 2008-05-28 Jonathan Pobst <monkey@jpobst.com>
3411 * ToolStripDrowDown.cs: When using the Show () methods that have a
3412 Control parameter, set the menu owner to that Control.
3415 2008-05-28 Ivan N. Zlatev <contact@i-nz.net>
3417 * PropertyGridTextBox.cs, PropertyGridView.cs: Implement validation.
3420 2008-05-27 Ivan N. Zlatev <contact@i-nz.net>
3422 * GridItemCollection.cs: Refactor to support multiple items with the
3426 2008-05-27 Jonathan Pobst <monkey@jpobst.com>
3428 * Control.cs: The 2.0 check for illegal cross thread calls in
3429 Control.Handle were throwing an exception when we were getting
3430 the Handle in order to invoke correctly. Created a private
3431 version that does not contain this check.
3434 2008-05-27 Ivan N. Zlatev <contact@i-nz.net>
3436 * PropertyGrid.cs: Respect DefaultTabType.
3438 2008-05-27 Ivan N. Zlatev <contact@i-nz.net>
3440 * ListView.cs: SPACE selects an item.
3443 2008-05-27 Ivan N. Zlatev <contact@i-nz.net>
3445 * ListView.cs: Reset the search string whenever the items are
3449 2008-05-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3451 * ListControl.cs: For the first added item PositionChanged is fired
3452 _before_ ItemChanged, which leave us in a temporary invalid state - so
3453 we need to set the selected index from ItemChanged handler *if* we
3454 know that the first item has just been added *and* the items have been
3455 actually added to the ListControl.
3458 2008-05-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3460 * TabControl.cs: Only clicks with the left button should be
3464 2008-05-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3468 * TextBox.cs: Expose an internal method in TextBox to restore the
3469 original context menu, and call it from ComboBox to re-use it in the
3470 combobox containing the file name in FileDialog.cs.
3471 Fixes part of #393775.
3473 2008-05-24 George Giolfan <georgegiolfan@yahoo.com>
3475 * ThemeVisualStyles.cs: Added support for the hot ComboBox drop down button
3478 2008-05-24 George Giolfan <georgegiolfan@yahoo.com>
3480 * ComboBox.cs, Theme.cs, ThemeWin32Classic.cs: Added support for the hot drop
3483 2008-05-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3485 * ComboBox.cs: Minor correction to previous patch: PageDown should
3486 also *try* to move by one item if the computed offset is negative,
3487 just like the PageUp case.
3489 2008-05-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3491 * ComboBox.cs: When navigating using PageDown/PageUp the navigation
3492 should be done for at least 1 item, and not stay at the same item.
3493 Fixes part of #374713.
3495 2008-05-23 Jonathan Pobst <monkey@jpobst.com>
3497 * FileDialog.cs: Add a FSEntryComparer, and use it to sort the
3498 directories. [Fixes bug #393931]
3500 2008-05-22 Andreia Gaita <avidigal@novell.com>
3502 * WebBrowser.cs: Implement DocumentText. Implement AllowNavigation.
3503 Don't fire events until the initial about:blank page has finished
3504 loading. Clean up events.
3506 2008-05-22 Atsushi Enomoto <atsushi@ximian.com>
3508 * XplatUIX11.cs : when we call WM_SETFOCUS, call X11Keyboard
3509 FocusIn() too. This should fix the issue on switching
3512 2008-05-22 Atsushi Enomoto <atsushi@ximian.com>
3514 * X11Keyboard.cs : set XIM font size to somewhat reasonable
3515 number (ideally the input textbox size, but that could be
3518 2008-05-22 Jonathan Pobst <monkey@jpobst.com>
3520 * ToolStripTextBox.cs: List for the TextBox's TextChanged and fire
3521 the ToolStripItem's TextChanged. [Fixes bug #393597]
3523 2008-05-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3525 * TabControl.cs: When invalidating in SelectedIndex and we need to
3526 inflate to take into account the border of the tabs, make sure that
3527 the invalidated rect doesn't overflow the control bounds, since that
3528 would avoid updating at all.
3530 2008-05-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3532 * TabControl.cs: Don't substract scroller width from the row width,
3533 since we need to take into account the total width of the control when
3534 calculating the position of the tabs. This avoids showing scroller
3535 when it is actually not needed.
3536 Fixes part of #322325.
3538 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
3540 * ThemeVisualStyles.cs: Added support for TextBoxBase.
3542 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
3544 * RichTextBox.cs, TextBoxBase.cs, Theme.cs, ThemeWin32Classic.cs: Refactored:
3545 Extracted TextBoxBase.Draw and Theme.TextBoxBase*.
3547 2008-05-21 Jonathan Pobst <monkey@jpobst.com>
3549 * DataGridView.cs: Only paint the top left header cell if there
3552 2008-05-21 Jonathan Pobst <monkey@jpobst.com>
3554 * DataGridView.cs: When binding to a BindingSource, get the underlying
3555 list to bind to. [Fixes bug #345483]
3557 2008-05-21 Jonathan Pobst <monkey@jpobst.com>
3559 * DataGridView.cs: Do not bind to collection properties.
3562 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
3564 * ThemeVisualStyles.cs: Added support for the hot TrackBar thumb style.
3566 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
3568 * Theme.cs, ThemeWin32Classic.cs, TrackBar.cs: Added support for the hot
3571 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
3573 * ThemeVisualStyles.cs: Added support for ToolTip transparent background.
3575 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
3577 * Theme.cs, ThemeWin32Classic.cs, ToolTip.cs: Added support for transparent
3580 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
3582 * ThemeVisualStyles.cs: Added support for ToolBar hot and hot checked styles.
3584 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
3586 * Theme.cs, ThemeWin32Classic.cs, ToolBar.cs: Added support for hot and hot
3589 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
3591 * TabControl.cs: Extended to handle the hot style.
3593 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
3595 * Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs, UpDownBase.cs:
3596 Extended UpDownBase code to handle hot and disabled styles.
3598 2008-05-20 Jonathan Pobst <monkey@jpobst.com>
3600 * DataGridView.cs: Handle databinding to generic list type things.
3603 2008-05-20 Jonathan Pobst <monkey@jpobst.com>
3605 * DataGridViewCellCollection.cs: Add a method to find the cell
3606 with the given DataPropertyName.
3607 * DataGridViewColumn.cs: Track if the column was autogenerated or not.
3608 * DataGridViewColumnCollection.cs: Add a method to clear all
3609 autogenerated columns.
3610 * DataGridView.cs: If AutoGenerateColumns is false, don't autogenerate
3614 2008-05-20 Jonathan Pobst <monkey@jpobst.com>
3616 * DataGridView.cs: Don't try to update the RowTemplate with
3617 a null CellTemplate.
3619 2008-05-20 Jonathan Pobst <monkey@jpobst.com>
3621 * DataGridViewColumn.cs: Allow IsDataBound to be set internally.
3622 * DataGridViewColumnCollection.cs: Ensure OnColumnAdded is called.
3623 * DataGridView.cs: Lots of fixes/enhancements to databinding to
3626 2008-05-20 Jonathan Pobst <monkey@jpobst.com>
3628 * Control.cs: Remove invalidating implicit child controls when
3629 control is invalidated. It was causing too many redraws on
3630 controls with implicit scrollbars.
3631 * ListView.cs: Listen to the Invalidated event and invalidate
3634 2008-05-20 Andreia Gaita <avidigal@novell.com>
3636 * WebBrowserBase.cs, WebBrowser.cs: Hook up page loading events
3637 * HtmlDocument.cs: Check for nulls
3639 2008-05-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3641 * Control.cs: In ControlCollection.RemoveInternal, remove the
3642 internal control before calling PerformLayout and OnControlRemoved,
3643 which was leaving us in an invalid state and causing a X error (bad
3644 match). Observe that Remove () call has the same order.
3645 Fixes an X error changing ComboBoxStyle.DropDownStyle.
3647 2008-05-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3649 * TabControl.cs: Don't paint by ourselved and instead let OnPaint
3650 being fired if ControlStyles.UserPaint style is activated.
3653 2008-05-19 Ivan N. Zlatev <contact@i-nz.net>
3655 * GridEntry.cs: Don't be so strict when setting the value -
3656 do not check if what we set is what we get.
3659 2008-05-19 Ivan N. Zlatev <contact@i-nz.net>
3661 * XplatUIX11.cs: If there are no timers timeout should be 0
3664 2008-05-19 Jonathan Pobst <monkey@jpobst.com>
3666 * Control.cs: As a followup to invalidating implicit children when
3667 a control is invalidated, only invalidate them if they are in the
3670 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
3672 * ThemeVisualStyles.cs: Implemented partial support for ToolTip.
3674 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
3676 * ThemeWin32Classic.cs: Refactored: Extracted ToolTipDrawBackground.
3678 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
3680 * GroupBoxRenderer.cs: Fixed text area clipping in the Visual Styles case.
3681 * XplatUIWin32.cs: Made Win32DeleteObject public.
3683 2008-05-19 Ivan N. Zlatev <contact@i-nz.net>
3685 * GridEntry.cs: Determine HasDefaultValue more strictly by using
3686 PropertyDescriptor.ShouldSerializeValue.
3689 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
3691 * ThemeVisualStyles.cs: Enabled support for ScrollBar element styles not present
3692 in the classic theme.
3694 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
3696 * ScrollBar.cs: Added FirstButtonEntered, SecondButtonEntered, ThumbEntered,
3698 * Theme.cs, ThemeWin32Classic.cs: Added ScrollBarHasHotElementStyles,
3699 ScrollBarHasPressedThumbStyle.
3701 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
3703 * TextRenderer.cs: Included some methods in the 1.1 profile.
3705 2008-05-19 Jonathan Pobst <monkey@jpobst.com>
3707 * Control.cs: When we make a control visible, it may have been
3708 previously visible and while it wasn't visible, the z-order of
3709 things may have been shuffled, so the control needs to have its
3710 z-order updated just in case. [Fixes bug #391518]
3712 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
3714 * ThemeVisualStyles.cs: Added support for GroupBox.
3716 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
3718 * GroupBoxRenderer.cs: Included in the 1.1 profile.
3720 2008-05-16 Atsushi Enomoto <atsushi@ximian.com>
3722 * XplatUIX11.cs, X11Keyboard.cs : redoing r103060 with fix for
3723 bug #389996; XSelectInput() behaved as mouse handler robber,
3724 so remove extra call to it.
3726 2008-05-15 Jonathan Pobst <monkey@jpobst.com>
3728 * Control.cs: Simplify ControlCollection.Contains method.
3730 2008-05-15 Jonathan Pobst <monkey@jpobst.com>
3732 * DataGridViewRow.cs: Implement GetPreferredSize.
3734 2008-05-15 Jonathan Pobst <monkey@jpobst.com>
3736 * DataGridViewComboBoxCell.cs: Don't declare text twice. Fixes build.
3738 2008-05-15 Jonathan Pobst <monkey@jpobst.com>
3740 * DataGridViewComboBoxCell.cs: Implement some NIEX stuffs, better
3741 painting and edit control fixes.
3743 2008-05-14 Jonathan Pobst <monkey@jpobst.com>
3745 * DataGridView.cs, DataGridViewCell.cs: Work around some external
3746 checks to make sure we are in an actual row/col for top left header cell.
3747 * DataGridViewTopLeftHeaderCell.cs: Implement some NIEX's.
3749 2008-05-14 Jonathan Pobst <monkey@jpobst.com>
3751 * Control.cs: Use long instead of int when handling WParam from
3752 mousewheel scrolling. Int was overflowing on Win64.
3754 2008-05-14 Jonathan Pobst <monkey@jpobst.com>
3756 * FlowLayoutPanel.cs, ScrollableControl.cs: We need to layout the
3757 flow panel without scrolling first, and then calculate the
3758 scrolling based on the new layout. [Fixes bug #390149]
3760 2008-05-14 Jonathan Pobst <monkey@jpobst.com>
3762 * ListBox.cs: Invalidate after scrolling up when selected index
3763 changes. [Fixes bug #390151]
3765 2008-05-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3767 * ComboBox.cs: When setting mode to Simple *and* height hasn't been
3768 set, default height to 150. I tried first with DefaultSize, but this
3769 is not generating a SetBoundsCore call before handle creation time, so
3770 we can take it into account. This is just what .net does.
3772 2008-05-13 Jonathan Pobst <monkey@jpobst.com>
3774 * XplatUIX11.cs, X11Keyboard.cs: Had to revert eno's r103060,
3775 as it broke some stuff. Calberto is filing a bug for eno to
3778 2008-05-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3780 * ComboBox.cs: When handling PageDown pressed event, set SelectedIndex
3781 to 0 is the current value is -1, and if style is not Simple, just
3782 return, like .net does.
3783 Fixes part of #374713.
3785 2008-05-13 Jonathan Pobst <monkey@jpobst.com>
3787 * ThemeWin32Classic.cs, ThemeVisualStyles.cs: When calculating
3788 progress bar stuffs, use doubles instead of ints to prevent
3789 overflow. [Fixes bug #389798]
3791 2008-05-13 Atsushi Enomoto <atsushi@ximian.com>
3793 * XplatUIX11.cs, X11Keyboard.cs :
3794 Significant refactoring on XIM support. Now IM engine UI
3795 should show up, at mostly-correct preedit position.
3796 - Eliminated use of FocusWindow, as it is never mapped
3797 and hence blocks correct preedit position. XIC is now
3798 created per window, and it must be destroyed too when
3799 the window is destroyed.
3800 - WM_QUIT messages should not be filtered even when hwnd
3801 is zombie. Filtering it could cause endless loop.
3802 - Preedit position must move only when the window is alive.
3803 - Make it IDisposable and make sure to release XIM/XICs.
3805 2008-05-13 Atsushi Enomoto <atsushi@ximian.com>
3807 * Timer.cs, Control.cs, Form.cs, ApplicationContext.cs,
3808 XplatUIX11.cs, XplatUIWin32.cs :
3809 fix for bug #325033 and #387693;
3810 - WM_QUIT should not be sent when no running application
3812 - SetTimer/KillTimer (especially on win32) should be
3813 invoked for the window that the timer is/will_be attached.
3814 - There could be unattached timers to a window when it's
3815 started. For those timers, hold pending timers and when
3816 a window is mapped, attach them to it.
3817 - WaitForHwndMessage() could run into loop when
3818 WM_SHOWWINDOW is handled before this method is called.
3819 So, strictly check wm_showwindow state.
3820 - Tick handler should not be invoked while one Tick handler
3821 call is still running (introduced Busy state).
3823 2008-05-13 Andreia Gaita <avidigal@novell.com>
3825 * WebBrowserBase.cs: Override Internal alternative methods for
3826 SetBoundsCore and OnResize instead of the protected ones.
3827 * Control.cs: Move SetBoundsCore and OnResize implementations to
3828 SetBoundsCoreInternal and OnResizeInternal, so they can be
3829 overriden internally (WebBrowserBase needs to catch them but can't
3830 override the protected methods without api compat problems)
3832 2008-05-13 Andreia Gaita <avidigal@novell.com>
3834 * WebBrowserBase.cs: Hiding away non-public overrides for api compat
3836 2009-05-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3839 * ListView.cs: Remove debug messages.
3841 2008-05-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3843 * ComboBox.cs: Don't do any calculation for simple mode if the listbox
3844 area is empty. Also calculate scrollbars in Simple mode based in area
3845 height and total number of items, not in MaxDropDownItems.
3846 Fixes part of #371991.
3848 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
3850 * PictureBox.cs: Always invalidate on resize. Fixes an app for jhill.
3852 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
3854 * BindingSource.cs: GetListSortDescription is not public.
3856 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
3858 * WebBrowser.cs, WebBrowserBase.cs, WebBrowserSiteBase.cs: corcompare.
3860 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
3862 * HtmlElement.cs: Fix parameter names to match MS.
3863 * HtmlWindowCollection.cs: Should not be sealed.
3865 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
3867 * ThemeWin32Classic.cs: Always draw the scrollbar area under the thumb
3868 button, because the thumb button will not get drawn if the scrollbar
3869 is disabled. [Fixes bug #389262]
3871 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
3873 * ListBox.cs: Handle End key for multi-column listboxen.
3876 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
3878 * ListBox.cs: Fix algorithm to determine which column our item is in.
3881 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
3883 * ListBox.cs: Invalidate when the listbox is resized.
3886 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
3888 * ListBox.cs: There is always at least one row in the ListBox (if
3889 we are doing these calculations.) [Fixes bug #389253]
3891 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
3893 * ListBox.cs: There is always at least one column in the ListBox.
3896 2008-05-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3898 * ComboBox.cs: When handle is created call UpdateComboBoxBounds to
3899 ensure in Simple mode that the height is exactly the requested one.
3900 Also add the ComboBoxListControl to the controls collection in Simple
3901 mode even if handle hasn't been created.
3902 Fixes part of #371991.
3904 2008-05-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3906 * ComboBox.cs: For ComboListBox control -specially in Simple mode-, give focus to
3907 our ComboBox owner instead of giving it back to the previous control (
3908 as done in other controls). Also remove the empty override of Select
3909 method, since we want to be selected *and* give focus to our owner.
3910 This should let the user do keys-navigation in Simple mode.
3912 2008-05-10 Geoff Norton <gnorton@novell.com>
3914 * XplatUICarbon.cs: Dont use HIViewScrollRect as it's causing painting
3915 problems with rapid scrolling of treeviews. Fixes #381084
3917 2008-05-10 Geoff Norton <gnorton@novell.com>
3919 * XplatUICarbon.cs: Deactivate the active window before
3920 activating the desired window. Completes fixing #386504
3922 2008-05-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3924 * ListView.cs: When calculating scrollbars, set horizontal scroll bar
3925 SmallChange to the item size width plus the padding, to match .net.
3927 2008-05-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3929 * FileDialog.cs: Apply the custom filter typed by the user in the file
3930 name combobox as much as possible while navigating in the file dialog.
3933 2008-05-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3935 * Binding.cs: Actually use NullValue if the retrieved value of
3936 data source is null or DBNull. Makes a test pass.
3938 2008-05-09 Jonathan Pobst <monkey@jpobst.com>
3940 * ErrorProvider.cs, Form.cs: Get icons from ResourceImageLoader.
3941 * MimeIcon.cs: Provide a way to get icons from resources.
3943 2008-05-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3945 * Binding.cs: When the value retrieved from the control to be assigned
3946 to the data source is null, actually use the 2.0 DataSourceNullValue
3947 value. Make pass a data binding test.
3949 2008-05-08 Jonathan Pobst <monkey@jpobst.com>
3951 * Control.cs: We need to invalidate implicit children even when
3952 invalidate is called with invalidatechildren = false. (Implicit
3953 children are really part of the parent.)
3954 * ListView.cs: Double-buffer internal child controls for less
3956 * ThemeWin32Classic.cs: Remove an extra nested loop in drawing
3957 owner ListView subitems for greatly increased performance.
3960 2008-05-08 Carlos Alberto Cortez <calebrto.cortez@gmail.com>
3962 * FileDialog.cs: When the user types a wildcard character in the
3963 filename combobox, update the contents of the folder using the text as
3965 Fixes part of #385261.
3967 2008-05-08 Jonathan Pobst <monkey@jpobst.com>
3969 * ListBox.cs: Various fixes for MultiColumn listboxen.
3972 2008-05-08 Andreia Gaita <avidigal@novell.com>
3974 * HtmlElement.cs: Implement Style property
3976 2008-05-08 Jonathan Pobst <monkey@jpobst.com>
3978 * ListBox.cs: Respect checkboxes when measuring item size.
3979 * ThemeWin32Classis.cs: When drawing list items, don't draw
3980 text outside of the item's bounds to prevent overlapping.
3981 (.Net actually overlaps, but that's just silly.)
3984 2008-05-08 Everaldo Canuto <ecanuto@novell.com>
3986 * NotifyIcon.cs: Call SetForegroundWindow before show context menu. Thanks
3987 Gert Driesen. Fixes bug #324830.
3989 2008-05-07 Everaldo Canuto <ecanuto@novell.com>
3991 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: SetForegroundWindow
3994 2008-05-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3996 * BindingSource.cs: When calling IsSynchronized, return the value of
3997 the related IList list.
3999 2008-05-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4001 * ListBindingHelper.cs: Fix some bits in GetListItemProperties, to
4004 2008-05-07 Jonathan Pobst <monkey@jpobst.com>
4006 * DataGridView.cs: Implement PageUp/PageDown keys. Extend keyboard
4007 navigation to scroll the grid if the current cell is not visible.
4009 2008-05-07 Andreia Gaita <avidigal@novell.com>
4011 * HtmlElement.cs: Implement TabIndex
4013 2008-05-07 Jonathan Pobst <monkey@jpobst.com>
4015 * ListBox.cs: Respect ScrollAlwaysVisible and HorizontalScrollbar
4016 properties, even when there are no items.
4019 2008-05-07 Ivan N. Zlatev <contact@i-nz.net>
4021 * NativeWindow.cs: Add support for multiple handles per window.
4022 * NativeWindows.cs, LibSupport.cs, Control.cs, XplatUIX11GTK.cs,
4023 XplatUIX11.cs, X11Display.cs: Do not access NativeWindow.windows_collection
4024 directly - use FromHandle instead.
4027 2008-05-07 Andreia Gaita <avidigal@novell.com>
4029 * HtmlElement.cs: Implement InnerHTML setter
4031 2008-05-07 Andreia Gaita <avidigal@novell.com>
4033 * HtmlDocument.cs: Implement Focused
4035 2006-05-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4037 * BindingSource.cs: Minor fixes to the the ApplySort and Remove sort
4038 methods, as well as add messages to the exceptions.
4040 2006-05-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4042 * BindingSource.cs: Setting DataSource should only reset DataMember if
4043 the previous value was null (make pass a not working test).
4045 2006-05-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4047 * BindingSource.cs: When EndInit call is postponed and is called until
4048 DataSource.EndInit is called, remove the handler for data source.
4050 2008-05-06 Jonathan Pobst <monkey@jpobst.com>
4052 * ToolStripManager.cs: Don't use IsAlive, race condition, etc. etc.
4054 2008-05-06 Jonathan Pobst <monkey@jpobst.com>
4056 * ToolStripManager.cs: Store references to toolstrips as
4057 weak references so they do not prevent forms from getting collected.
4060 2008-05-06 Jonathan Pobst <monkey@jpobst.com>
4062 * TrackBar.cs: We can't set ResizeRedraw because it isn't set
4063 on .Net. So do the same thing in WndProc.
4065 2008-05-06 Jonathan Pobst <monkey@jpobst.com>
4067 * TrackBar.cs: Commit patch from Andy Hume that corrects
4068 the clickable areas to better match .Net.
4071 2008-05-06 Jonathan Pobst <monkey@jpobst.com>
4073 * TrackBar.cs: Commit patch from Andy Hume that adds the
4074 ResizeRedraw control flag so the track bar repaints itself
4075 when it is resized. [Fixes bug #387072]
4077 2008-05-06 Jonathan Pobst <monkey@jpobst.com>
4079 * TrackBar.cs: Commit patch from Andy Hume that adds better
4080 support for keyboard navigation when the TrackBar is vertical.
4083 2008-05-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4085 * BindingSource.cs: Implement ISupportInitializeNotification support.
4087 2008-05-06 George Giolfan <georgegiolfan@yahoo.com>
4089 * ThemeVisualStyles.cs: Added support for ToolBar.
4091 2008-05-06 George Giolfan <georgegiolfan@yahoo.com>
4093 * ToolBar.cs: Made the Vertical property internal.
4095 2008-05-05 George Giolfan <georgegiolfan@yahoo.com>
4097 * ThemeVisualStyles.cs: Added support for TrackBar.
4099 2008-05-05 George Giolfan <georgegiolfan@yahoo.com>
4101 * ThemeWin32Classic.cs: Refactored: Extracted TrackBarGetThumbSize,
4102 TrackBarDrawVerticalTrack, TrackBarDrawVerticalThumbRight,
4103 TrackBarDrawVerticalThumbLeft, TrackBarDrawVerticalThumb,
4104 TrackBarGetVerticalTickPainter, TrackBarDrawHorizontalTrack,
4105 TrackBarDrawHorizontalThumbBottom, TrackBarDrawHorizontalThumbTop,
4106 TrackBarDrawHorizontalThumb, TrackBarGetHorizontalTickPainter.
4108 2008-05-05 George Giolfan <georgegiolfan@yahoo.com>
4110 * ThemeVisualStyles.cs: Added support for UpDownBase.
4112 2008-05-05 George Giolfan <georgegiolfan@yahoo.com>
4114 * Theme.cs, ThemeWin32Classic.cs, UpDownBase.cs: Refactored:
4115 Extracted Theme.UpDownBaseDrawButton.
4117 2008-05-05 Jonathan Pobst <monkey@jpobst.com>
4119 * ToolStrip.cs, ToolStripDropDownItem.cs: Make sure toolstrips are
4120 removed from the static toolstrips collection in ToolStripManager
4121 when they are disposed. Provides a workaround for bug #386483.
4123 2008-05-05 Ivan N. Zlatev <contact@i-nz.net>
4125 * GridEntry.cs: Read-only properties with Editor with
4126 UITypeEditorEditStyle.Modal shouldn't be read-only in the PropertyGrid.
4129 2008-05-05 Jonathan Pobst <monkey@jpobst.com>
4131 * MenuStrip.cs, ToolStrip.cs: Guard against an NRE when pressing
4132 the menu key and there are no items on the menu.
4135 2008-05-05 Sebastien Pouliot <sebastien@ximian.com>
4137 * Control.cs: Avoid calling ToString on a string.
4138 * Form.cs: Avoid calling ToString on a string. Found using Gendarme.
4139 * GroupBox.cs: In FlatStyle property throw, not just create, the
4140 exception. Avoid calling ToString on a string.
4141 * ProgressBar.cs: Avoid calling ToString on a string.
4142 * ScrollBar.cs: Avoid calling ToString on a string.
4143 [All issues were found using Gendarme]
4145 2008-05-05 Everaldo Canuto <ecanuto@novell.com>
4147 * NotifyIcon.cs: Prevent click events to be trigger after double click
4148 events. Fixes remaining issues of bug #324832.
4150 2008-05-05 Everaldo Canuto <ecanuto@novell.com>
4152 * NotifyIcon.cs: Trigger click and mouseclick events after mouseup event
4153 to mimic win32 behavior. Partially fixes bug #324832.
4155 2008-05-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4157 * BindingSource.cs: Implement Find methods.
4159 2008-05-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4161 * BindingSource.cs: Implement Sort, ApplySort overloads, and
4164 2008-05-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4166 * ListBindingHelper.cs: When calling GetListItemProperties and the
4167 passed object is ITypedList, return the result of
4168 ITypedList.GetItemProperties instead.
4170 2008-05-04 Everaldo Canuto <ecanuto@novell.com>
4172 * LinkLabel.cs: Set default value of name on constructor of Link class
4173 only for 2.0 profile.
4175 2008-05-04 Everaldo Canuto <ecanuto@novell.com>
4177 * LinkLabel.cs: Fix implementation of LinkCollection.LinksAdded property.
4178 Fixes remaining issues of bug #346154.
4180 2008-05-04 Everaldo Canuto <ecanuto@novell.com>
4182 * LinkLabel.cs: Set a default value for name on internal contructor of
4183 Link class. It fixes assert B5 of LinkCollectionTest.Constructor1.
4185 2008-05-04 Everaldo Canuto <ecanuto@novell.com>
4187 * LinkLabel.cs: Move links collection from LinkCollection to LinkLabel
4188 and refer all instances to owner.links. Partially fixes #346154.
4190 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
4192 * LinkLabel.cs: Fix linkarea values for empty text, must have start and
4193 length equal zero. Also called CreateLinkPieces in constructor. It fixes
4194 the LinkLabel test 'TestLinkArea'.
4196 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
4198 * Form.cs: Remove menu before close form to prevent form to be not gaced.
4201 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
4203 * MenuAPI.cs: Dispose popup window after hide. Thanks to Jesse Jones.
4206 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
4208 * MenuAPI.cs: Implemented keyboard navigation for ContextMenu.
4211 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
4213 * MenuAPI.cs: Remove unused ProcessCmdKey method.
4215 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
4217 * MenuAPI.cs: Prevent NRE in menu deactivation when shortcut is used.
4220 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
4222 * MenuAPI.cs: Enable implicit mnemonics for menus. Fixes remaining issues
4225 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
4227 * MenuAPI.cs: Check if mouse down comes from menu, we need it because
4228 sometimes we open a conext menu on mouse down of some controls and the mouse
4229 up is dispatched to menu and dont need to. It fix remaining issues of
4230 #363711 and other problems related to menu mouse click events.
4232 2008-05-02 Everaldo Canuto <ecanuto@novell.com>
4234 * MonthCalendar.cs: Implemented "Go to today" context menu, also changed
4235 some var names to better fit changes, now we have month_menu and today_menu
4236 vars. Fixes bug #363711.
4238 2008-05-02 Everaldo Canuto <ecanuto@novell.com>
4240 * MonthCalendar.cs: Handle every right mouse click to open context menu,
4241 right now the default month menu but it will be change to have "Go to today"
4244 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
4246 * FileDialog.cs, MaskedTextBox.cs, OpenFileDialog.cs: corcompare.
4248 2008-05-02 Everaldo Canuto <ecanuto@novell.com>
4250 * ThemeWin32Classic.cs: Fix MonthCalendar arrows drawing.
4252 2008-05-02 George Giolfan <georgegiolfan@yahoo.com>
4254 * ThemeVisualStyles.cs: Added support for TreeView.
4256 2008-05-02 George Giolfan <georgegiolfan@yahoo.com>
4258 * Theme.cs, ThemeWin32Classic.cs, TreeView.cs: Refactored:
4259 Moved TreeView.DrawNodePlusMinus to Theme.TreeViewDrawNodePlusMinus.
4261 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
4263 * OpenFileDialog.cs: Implement 2.0 SP1 stuffs.
4265 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
4267 * FileDialogCustomPlace.cs, FileDialogCustomPlacesCollection.cs:
4268 Implement 2.0 SP1 stuffs.
4270 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
4272 * FileDialog.cs: Implement 2.0 SP1 stuffs.
4274 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
4276 * Control.cs, ContainerControl.cs, DataGridView.cs, TextBoxBase.cs:
4277 Implement CanEnableIme property. (2.0 SP1)
4279 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
4281 * BindingManagerBase.cs, PropertyManager.cs: Hide GetItemProperties
4284 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
4286 * Control.cs: Provide an internal way for a control to override
4287 the setting of Height.
4288 * DateTimePicker.cs: Remove SetBoundsCore from 2.0 profile,
4289 set height using new method.
4291 2008-05-02 George Giolfan <georgegiolfan@yahoo.com>
4293 * ThemeVisualStyles.cs: Added support for ControlPaint.DrawMixedCheckBox.
4295 2008-05-02 George Giolfan <georgegiolfan@yahoo.com>
4297 * ControlPaint.cs, Theme.cs, ThemeWin32Classic.cs: Refactored:
4298 ControlPaint.DrawMixedCheckBox now calls Theme.CPDrawMixedCheckBox.
4300 2008-05-02 George Giolfan <georgegiolfan@yahoo.com>
4302 * ThemeVisualStyles.cs: Added support for StatusBar.
4304 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
4306 * DataObject.cs: Add the other IDataObject interface.
4308 2008-05-02 George Giolfan <georgegiolfan@yahoo.com>
4310 * ThemeWin32Classic.cs: Refactored: extracted DrawStatusBarBackground,
4311 DrawStatusBarSizingGrip, DrawStatusBarPanelBackground.
4313 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
4315 * DataGridViewCheckBoxCell.cs, DataGridViewImageCell.cs: Fix parameter names.
4316 * ListView.cs: Hide non-public API.
4317 * MaskedTextBox.cs: Remove extra attribute.
4319 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
4321 * DataGridViewImageCell.cs: Use formatted value instead of value
4322 to calculate preferred size.
4324 2008-05-01 Jonathan Pobst <monkey@jpobst.com>
4326 * ListBox.cs: Move some initialization around so that selected_indices
4327 is not accessed before it is created.
4329 2008-05-01 Jonathan Pobst <monkey@jpobst.com>
4331 * InputLanguageCollection.cs: Implement the collection better.
4334 2008-05-01 Jonathan Pobst <monkey@jpobst.com>
4336 * ToolStripDropDownItem.cs: Get the correct event object for
4337 DropDownItemClicked.
4338 * ToolStripMenuItem.cs: Raise DropDownItemClicked on our owner.
4341 2008-05-01 Jonathan Pobst <monkey@jpobst.com>
4343 * DataGridViewRowCollection.cs: We don't currently support shared
4344 rows. Should fix test failures caused by previous commit.
4346 2008-04-30 Jonathan Pobst <monkey@jpobst.com>
4348 * DataGridViewRow.cs: Fixes for cloning the row, ensure header cell's
4349 datagridview gets set. Only paint cells in visible columns.
4350 * DataGridViewCell.cs: Draw border after cell content.
4351 * DataGridView.cs: Invalidate after setting some properties. Only
4352 use visible columns. Fit hit test bug with areas in the col/row header
4353 area but not in a row or col. Implement UpdateCell/Row methods.
4355 2008-04-30 Jonathan Pobst <monkey@jpobst.com>
4357 * DataGridViewElement.cs: Don't throw NIEX.
4358 * DataGridViewColumnHeaderCell.cs: Draw error icons for top left header cells.
4359 * DataGridViewColumnDesignTimeVisibleAttribute.cs: Don't throw NIEX.
4360 * DataGridViewCheckBoxColumn.cs: Implement ToString.
4361 * DataGridViewCheckBoxCell.cs: Allow DBNull as a value.
4362 * DataGridViewCell.cs: Don't raise CellFormatting for RowHeader cells,
4363 if the user filled in the formatting Value, use it.
4365 2008-04-30 Jonathan Pobst <monkey@jpobst.com>
4367 * DataGridViewTextBoxCell.cs: Fix for objects that cannot be cast
4370 2008-04-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4372 * BindingSource.cs: Some corrections to Filter property, as well as
4373 setting it for our list when resetting it.
4375 2008-04-29 Jonathan Pobst <monkey@jpobst.com>
4377 * ScrollBar.cs: Don't let dragging the thumb grip set the value greater
4378 than the maximum. Fixes reopened bug #384182.
4380 2008-04-28 Everaldo Canuto <ecanuto@novell.com>
4382 * ToolStripDropDown.cs: Fix offscreen position for DropDown itens.
4383 Fixes remaining issues of #367490.
4385 2008-04-28 Everaldo Canuto <ecanuto@novell.com>
4387 * ToolStripDropDown.cs: Screen.Bound dont return right value then use
4388 SystemInformation.WorkingArea to get max_screen value.
4390 2008-04-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4392 * BindingSource.cs: Implement Filter and RemoveFilter.
4394 2008-04-28 Everaldo Canuto <ecanuto@novell.com>
4396 * MenuAPI.cs: Prevent sub-menu positon to be less than zero.
4398 2008-04-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4400 * X11Dnd.cs: When trying to convert data and we know we started the
4401 dnd loop, don't try to use the cached data if the loop is not running,
4402 which means that the data has been resetted.
4405 2008-04-28 Everaldo Canuto <ecanuto@novell.com>
4407 * MenuAPI.cs: Force first menu subitem to show from left to right to mimic
4410 2008-04-28 Everaldo Canuto <ecanuto@novell.com>
4412 * MenuAPI.cs: Check the screen limits before show sub-menus and prevent
4413 it to drawn off screen edge. Fixes bug #367490.
4415 2008-04-28 Everaldo Canuto <ecanuto@novell.com>
4417 * MenuAPI.cs: In PopupWindow.RefreshItems uses a temp point var to store
4418 menu position to have only one assignment of Location var.
4420 2008-04-28 Everaldo Canuto <ecanuto@novell.com>
4422 * MenuAPI.cs: Implement the right key for sub-menus. Thanks Ernesto Carrea
4423 for this patch. Fixes bug #384115.
4425 2008-04-28 Jonathan Pobst <monkey@jpobst.com>
4427 * ScrollBar.cs: If SmallChange is larger than LargeChange, make them
4428 the same. If LargeChange is zero, set a minimum size for the scroll
4429 thumb grip. [Fixes bug #384182]
4431 2008-04-28 Jonathan Pobst <monkey@jpobst.com>
4433 * TextBoxTextRenderer.cs: Don't turn &A into a prefix for textboxen.
4436 2008-04-28 Jonathan Pobst <monkey@jpobst.com>
4438 * ListBox.cs: Math.Min should be Math.Max. [Fixes bug #384183]
4440 2008-04-28 George Giolfan <georgegiolfan@yahoo.com>
4442 * ThemeVisualStyles.cs: Added partial support for ScrollBar (based on the
4443 patch from Ernesto).
4445 2008-04-28 George Giolfan <georgegiolfan@yahoo.com>
4447 * ThemeVisualStyles.cs: Added support for ControlPaint.DrawComboButton.
4449 2008-04-28 George Giolfan <georgegiolfan@yahoo.com>
4451 * ThemeVisualStyles.cs: Added support for ControlPaint.DrawButton.
4453 2008-04-28 George Giolfan <georgegiolfan@yahoo.com>
4455 * ThemeVisualStyles.cs: Added support for ControlPaint.DrawRadioButton.
4457 2008-04-28 George Giolfan <georgegiolfan@yahoo.com>
4459 * ThemeVisualStyles.cs: Added support for ControlPaint.DrawScrollButton.
4461 2008-04-27 George Giolfan <georgegiolfan@yahoo.com>
4463 * ThemeVisualStyles.cs: Added support for ButtonBase.UseVisualStyleBackColor.
4465 2008-04-27 Andreia Gaita <avidigal@novell.com>
4467 * HtmlWindow.cs, HtmlHistory.cs: Throw on DomHistory getter (it's
4468 supposed to return a reference to an mshtml interface, which we
4470 * HtmlElement.cs: Throw on DomElement getter (it's supposed to return a
4471 reference to an mshtml interface, which we don't support). Code
4473 * HtmlDocument.cs: Add DefaultEncoding getter implementation. Throw on
4474 DomDocument getter (it's supposed to return a reference to an
4475 mshtml interface, which we don't support). Code formatting cleanup.
4477 2008-04-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4479 * ListView.cs: Ouch, forgot to commit.
4481 2008-04-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4484 * ThemeWin32Classic.cs: Fire the -until now- forgotten CacheVirtualItems event.
4486 2008-04-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4488 * ListView.cs: When calculating box selection for virtual mode, don't
4489 look for intersection with item's text, but item bounds, since that
4490 would mean read ListViewItem's text for _every_ item, and that's
4491 something we just can't do in virtual mode (items are only requested
4494 2008-04-26 George Giolfan <georgegiolfan@yahoo.com>
4496 * ThemeVisualStyles.cs: Added support for ControlPaint.DrawCaptionButton and
4497 partial support for managed windows (based on the patch from Ernesto).
4499 2008-04-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4501 * ListView.cs: When doing a key search use FindItemWithText method
4502 instead of doing the search by ourselves, this way we avoid
4503 duplicating the code and also we handle the special case for virtual
4504 mode. To achieve that make our private overload of FindItemWithText
4505 internal and also have a 'roundtrip' parameter.
4507 2008-04-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4509 * ListView.cs: When doing the layout don't request the
4510 ListViewItem instance if we are in virtual mode (since we can't request it
4511 until the item is actully drawn).
4513 2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
4515 * ThemeVisualStyles.cs: Added support for ProgressBar (based on the patch
4518 2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
4520 * ThemeVisualStyles.cs: Added support for ControlPaint.DrawCheckBox (based on
4521 the patch from Ernesto).
4523 2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
4525 * ThemeEngine.cs: Added code to select ThemeVisualStyles.
4526 * ThemeVisualStyles.cs: Added.
4528 2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
4530 * IDeviceContext.cs: Added a missing using.
4532 2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
4534 * ButtonBase.cs: Made IsDefault protected internal.
4535 * ButtonRenderer.cs: Made GetPushButtonRenderer(PushButtonState) internal.
4537 2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
4539 * Application.cs: Included VisualStyles-related members in the 1.1 profile.
4540 * ButtonRenderer.cs, CheckBoxRenderer.cs, Padding.cs, PaddingConverter.cs,
4541 RadioButtonRenderer.cs: Included in the 1.1 profile.
4542 * IDeviceContext.cs: Added.
4543 * TextRenderer.cs: Included a member in the 1.1 profile.
4545 2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
4547 * ThemeWin32Classic.cs: Added ShouldPaintFocusRectangle(ButtonBase).
4549 2008-04-24 Jonathan Pobst <monkey@jpobst.com>
4551 * ErrorProvider.cs: Make the error icons come after the control
4552 they refer to. It isn't the way the MS does it, but its better
4553 than what we were doing. See bug #368587.
4555 2008-04-24 Jonathan Pobst <monkey@jpobst.com>
4557 * InputLanguage.cs, InputLanguageCollection.cs: Apply patch
4558 from Eric Albright that lazy loads the input language as ensures
4559 everything gets properly initialized. Fixes bug #373871.
4561 2008-04-24 Jonathan Pobst <monkey@jpobst.com>
4563 * ToolStrip.cs: Don't use ToolStripControlHosts when figuring up
4564 implicit mnemonics. [Fixes bug #383000]
4566 2008-04-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4568 * X11Dnd.cs: When canceling the operation, automatically restore the
4569 default cursor - normally the default cursor is restored when the
4570 mouse buttons are released, but we should be able to restore it even
4571 if the buttons are still pressed (for example, when pressing ESC to
4575 2008-04-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4577 * X11Dnd.cs: When starting a new drad and drop operation, set control
4578 field to null, just as the other fields, to avoid calling any
4579 operation on a previous control. Also, when calling DndLeave on a
4580 control, set it to null, thus we don't fire that event multiple times
4584 2008-04-23 Geoff Norton <gnorton@novell.com>
4586 * XplatUICarbon.cs: Ensure that we have a valid hwnd before accessing
4587 the whole_window object. Fixes #377084.
4589 2008-04-23 Andreia Gaita <avidigal@novell.com>
4591 * HtmlElement.cs: Implement RaiseEvent (event injection into the
4594 2008-04-23 Jonathan Pobst <monkey@jpobst.com>
4596 * DataGridViewColumnHeaderCell.cs: Implement some NIEX stuffs.
4598 2008-04-23 Andreia Gaita <avidigal@novell.com>
4600 * HtmlElement.cs, HtmlDocument.cs: Implement javscript method
4603 2008-04-23 Andreia Gaita <avidigal@novell.com>
4605 * HtmlElement.cs, HtmlDocument.cs: Implement custom event handler
4608 2008-04-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4610 * X11Dnd.cs: When the drop was cancelled, or could just not be
4611 performed, return DragDropEffect.None always (match .net).
4613 2008-04-22 Jonathan Pobst <monkey@jpobst.com>
4615 * DataGridViewRowHeaderCell.cs: Fill in some NIEX stuff.
4617 2008-04-22 Jonathan Pobst <monkey@jpobst.com>
4619 * DataGridViewRowCollection.cs: Revert something I didn't mean to commit.
4621 2008-04-22 Jonathan Pobst <monkey@jpobst.com>
4623 * DataGridView.cs: Add support for error icon tool tips.
4624 * DataGridViewCell.cs: ErrorIconBounds needs to call GetErrorIconBounds.
4625 * DataGridViewRowHeaderCell.cs: Need internal way to get ErrorIconBounds.
4627 2008-04-22 Ivan N. Zlatev <contact@i-nz.net>
4629 * X11Structs.cs: Add mouse button masks enum.
4630 * XplatUIX11.cs, Hwnd.cs: Send WM_ENTERSIZEMOVE and
4631 WM_EXITSIZEMOVE only once at the beginning and at the end of the
4632 form resize/move operation instead of for each step of it.
4633 [Fixes bug #346529 for the x11 backend]
4635 2008-04-21 Jonathan Pobst <monkey@jpobst.com>
4637 * DataGridView*: Implement support for drawing error icons.
4639 2008-04-21 Jonathan Pobst <monkey@jpobst.com>
4641 * TreeView.cs: Make vbar and hbar internal.
4642 * TreeNode.cs: If collapsing the node removes one of the TreeView's
4643 scrollbars, invalidate the whole thing.
4646 2008-04-21 Jonathan Pobst <monkey@jpobst.com>
4648 * TreeView.cs: Calling Sort() sets Sorted = true.
4649 * TreeNodeCollection.cs: Try to find the owner TreeView to determine
4650 if the nodes need to be sorted.
4653 2008-04-21 Ivan N. Zlatev <contact@i-nz.net>
4655 * Form.cs: Fire SizeChanged for both when the form is minimized and
4657 * XplatUIX11.cs: Instead of tracking minimization on UnmapNotify track it
4658 on PropertyNotify of _NET_WM_STATE. Much much cleaner.
4660 2008-04-21 Jonathan Pobst <monkey@jpobst.com>
4662 * ComboBox.cs: If the combobox is disabled, draw a disabled
4663 background before painting anything else.
4666 2008-04-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4668 * X11Dnd.cs: Wehn the drag and drop operation is cancelled don't
4669 forget to send a Leave event to the target window - just as .net does
4670 when cancelling dnd operations.
4672 2008-04-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4674 * X11Dnd.cs: Stop tracking messages as part of the dnd operation as
4675 soon as possible - this happens when we send the drop message to the
4676 target window. This way we avoid firing any DragOver _after_ drop finished.
4679 2008-04-20 Ivan N. Zlatev <contact@i-nz.net>
4681 * XplatUIX11.cs: Send WM_WINDOWPOSCHANGED when a toplevel is minimized.
4682 * Form.cs: Handle form minimization as a special state, where size doesn't
4683 change, but we have to fire SizeChanged.
4684 [Fixes bug #325122 for the win32 and x11 backends]
4686 2008-04-20 Ivan N. Zlatev <contact@i-nz.net>
4688 * XplatUIX11.cs: Win32 doesn't send WM_(KILL|SET)FOCUS
4689 if the handle is disabled.
4692 2008-04-20 Ivan N. Zlatev <contact@i-nz.net>
4694 * XplatUIX11.cs: Enable Maximize/Minimize/Close ability (not decorations)
4695 for forms with FormBorderStyle.None.
4698 2008-04-20 Ivan N. Zlatev <contact@i-nz.net>
4700 * XplatUIX11.cs: Implement support for WM_ENTERSIZEMOVE and
4702 [Fixes bug #346529 for the X11 backend]
4704 2008-04-19 Ivan N. Zlatev <contact@i-nz.net>
4707 - Send a mouse Enter message after say dragging the mouse with a
4708 button down and then release it in another client.
4709 - Reset the cursor to prevent X11 from remembering it and setting it
4710 before the control gets WM_SETCURSOR.
4711 - Qeueue a mouse move after a mouse enter like win32.
4714 2008-04-19 Ivan N. Zlatev <contact@i-nz.net>
4716 * XplatUIX11.cs: Implement limited support for WM_SYSCOMMAND.
4717 It's sent when the form gets moved, resized, closed.
4718 * XplatUIStructs.cs: Add SystemCommands enum for WM_SYSCOMMAND.
4719 [Fixes bug #359193 for X11]
4721 2008-04-19 Ivan N. Zlatev <contact@i-nz.net>
4723 * Form.cs: Add a ValidateChildren for the 1.1 profile. Fixes
4726 2008-04-19 Ivan N. Zlatev <contact@i-nz.net>
4728 * ListView.cs: Move CalculateDetailsGroupItemsCount to the NET_2_0
4729 group. Fixes the 1.1 build.
4731 2008-04-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4733 * ListView.cs: Use display indexes for selection in Details view, as
4734 well as do the proper layout based on display indexes for that view
4737 2008-04-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4739 * ListView.cs: Focused item information is now stored as a display
4740 index, and display indexes are used all over the place for selection,
4741 instead of ListViewItem.Index values, which doesn't give us enough
4742 information to modify the selection in groups mode, and was broken.
4744 2008-04-18 Ivan N. Zlatev <contact@i-nz.net>
4746 * Control.cs: Do not fire MouseDown if validation of the control has
4748 * Form.cs: Validate the form before closing.
4749 [Fixes bugs #330501 and #353310]
4751 2008-04-18 Andreia Gaita <avidigal@novell.com>
4753 * WebBrowserBase.cs: Added WndProc, DrawToBitmap,
4754 CreateWebBrowserSiteBase implementations
4755 * HtmlElement.cs: Add missing OuterHTML, OuterText setters, stubbed
4756 Style and TabIndex setters
4758 2008-04-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4760 * ListViewGroup.cs: When returning the actual item count, return the
4761 proper count for default group.
4764 2008-04-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4767 * ListViewGroup.cs: When calculating groups layout, get the actual
4768 number of items per group, since groups added to the group BUT not
4769 added to the ListView are just ignored, and can cause some nasty
4770 exceptions because of the lack of synchronization. Also for
4771 ListViewGroup don't use lazy initialization for items, since we
4772 the common scenario is to use it always - and it helps us to refactor
4773 and clean the .ctor overloads.
4775 2008-04-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4777 * ListView.cs: When adding an item to a ListViewItemCollection
4778 belonging to a group (ListViewGroup.Items), don't generate a redraw if
4779 the added item hasn't beeen previously added to the ListView instance
4780 refered by the group, since it will be ignored. This should avoid some
4781 really nasty flickering.
4783 2008-04-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4785 * ListView.cs: When accessing an item in a specific display
4786 position, use the helper method GetItemAtDisplayIndex, instead of
4787 direct access to the reordered_items_indices array. When doing layout
4788 for groups set the correct Items index for the display position (since
4789 in groups mode items don't have the same position as in Items
4791 * ListViewGroup.cs: Add a field to store the starting item number,
4792 which is later used when calculating the layout.
4796 2008-04-17 Gert Driesen <drieseng@users.sourceforge.net>
4798 * Application.cs: Fixed ProductVersion to fallback to the assembly
4799 version. Fixes regression for bug #325413.
4801 2008-04-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4803 * ListView.cs: New helper method to retrieve an item in a _specific
4804 display_ position (the items can be displayed in a different order
4805 than one of Items collection).
4806 * ThemeWin32Classic.cs: When drawing, instead of iterating over Items
4807 collection, use ListView.GetItemAtDisplayIndex, to get an item in a
4808 specific display position (again remember that items can be sorted
4809 different than Items).
4811 2008-04-16 Jonathan Pobst <monkey@jpobst.com>
4813 * DataGridViewColumnCollection.cs: Create a cached copy of our sorted
4814 list and update it when the collection changes. We were recreating
4815 this several times per row paint and for every pixel the mouse moved
4817 * DataGridViewColumn.cs: Regenerate cached sorted list when DisplayIndex
4820 2008-04-16 Jonathan Pobst <monkey@jpobst.com>
4822 * DataGridViewColumnCollection.cs: Convert our internal sorted columns
4823 list to use generics.
4824 * DataGridView.cs, DataGridViewRow.cs: Use generic sorted column list
4825 and remove unneccessay casts.
4827 2008-04-16 Jonathan Pobst <monkey@jpobst.com>
4829 * DataGridViewBand.cs: Add internal way to set displayed variable.
4830 * DataGridViewRow.cs: Don't paint cells in non-displayed columns.
4831 * DataGridView.cs: Make sure we always keep track of Displayed
4832 rows and columns, and only draw things that are displayed.
4834 2008-04-16 Atsushi Enomoto <atsushi@ximian.com>
4836 * X11Keyboard.cs, XplatUIX11.cs : manage key state regardless of
4837 whether the key events are filtered or not. Introduced
4838 PreFilter() process for this purpose. This fixes atokx3/iiimx
4841 2008-04-16 Andreia Gaita <avidigal@novell.com>
4843 * HtmlHistory.cs: Implement Length property
4845 2008-04-15 Jonathan Pobst <monkey@jpobst.com>
4847 * DataGridView.cs: Call EndEdit when a sort is performed so we take
4848 away the edit textbox. Refactor to reuse column sort code.
4850 2008-04-12 Everaldo Canuto <ecanuto@novell.com>
4852 * MenuAPI.cs: Remove the code that save and restore capture status of
4853 grab_control, this fixes some Menu and Context menu bugs but maybe it can
4854 cause some others, I cant figure the possible problems of this patch but
4855 right now remove the code looks to be better than keep it. This patch fixes
4856 bugs #357638, #378721 and #379570.
4858 2008-04-12 Andreia Gaita <avidigal@novell.com>
4860 * HtmlDocument.cs, HtmlElement.cs, HtmlHistory.cs, WebBrowser.cs:
4861 Implement OuterHtml, OuterText, Enabled, Scroll*, *Rectangle properties,
4862 add missing properties and event handlers.
4864 2008-04-14 Jonathan Pobst <monkey@jpobst.com>
4866 * ListBox.cs: Make sure the LargeChange we are setting is at least
4867 zero, to prevent an IOORE. [Fixes bug #379531]
4869 2008-04-13 Andy Hume <andyhume32@yahoo.co.uk>
4871 * ComboBox.cs: Support item navigation by entering text. Firstly,
4872 in DropDownList mode, for each key-press select the next item
4873 starting with that letter.
4874 For other modes, when no item selected, on arrow-up/-down and open
4875 drop-down select the first item matching the text in the textbox.
4877 2008-04-14 Atsushi Enomoto <atsushi@ximian.com>
4879 * X11Keyboard.cs : Control.FromHandle() could return null
4880 in MoveCurrentCaretPos().
4882 2008-04-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4884 * ListView.cs: When changing the size in VirtualMode, also Reset the
4886 * ListViewItem.cs: Don't call SelectedIndexCollection.Reset when
4887 changing selection info for VirtualMode.
4890 2008-04-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4892 * ThemeWin32Classic.cs: When drawing ListViewItem instancesin Details
4893 view, don't use LineLimit for the first item - use NoWrap *always*
4894 instead, since ListView.LabelWrap is not used for this view.
4897 2008-04-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4899 * Binding.cs: Call UpdateIsBinding when setting control - probably
4900 Binding is already usable and we don't need to wait to check the
4901 IsBinding state. Also for 1.1 profile use IsHandleCreated instead of
4902 Created, just like 2.0 does.
4903 * CurrencyManager.cs: I'm so lame - the previous check was wrong.
4905 2008-04-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4907 * Binding.cs: Just realized we don't need to have a handler for
4908 BindingContextChanged, since this info should be now consumed directly
4909 in the BindingManagerBase. And also, the manager.IsBindingSuspended
4910 state info is checked directly, instead of caching it.
4912 * CurrencyManager.cs: IsSuspended should return always false if Count
4915 2008-04-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4917 * Binding.cs: When calling PushData, return if manager.Count == 0,
4918 since we just don't have data to be read. Also, when setting the
4919 Control for binding, hook up some events to refresh the IsBinding
4920 state when BindingContext change or control gets created; use
4921 Control.IsHandleCreated instead of Control.Created check to set
4922 IsBinding state - we *actually* need to modify IsBinding when control
4923 is created, but we don't have any Created event, only HandleCreated.
4924 Fixes part of #349364.
4926 2008-04-11 Geoff Norton <gnorton@novell.com>
4928 * XplatUICarbon.cs: Expose Caret to the Carbon layer. Guard against
4929 warping a null Caret.
4931 2008-04-11 Jonathan Pobst <monkey@jpobst.com>
4933 * DataGridView.cs: Implement row/column autosizing methods. Implement
4935 * DataGridViewColumnHeaderCell.cs: Add painting of the sort glyph.
4936 * DataGridViewRowCollection.cs: Add an internal sorting method.
4938 2008-04-11 Jonathan Pobst <monkey@jpobst.com>
4940 * ThemeWin32Classic.cs: Apply patch from Ernesto to cache an expensive
4941 value in ListView drawing code.
4943 2008-04-11 Jonathan Pobst <monkey@jpobst.com>
4945 * FileDialog.cs: Only call FileOk when Ok is clicked, not when Cancel
4946 is clicked. Respect the user setting Cancel in FileOk.
4948 2008-04-11 Geoff Norton <gnorton@novell.com>
4950 * ListView.cs: Avoid setting and resetting control Width/Heights and
4951 calculate the final value and set it once. Prevents a feedback loop
4954 2008-04-10 Jonathan Pobst <monkey@jpobst.com>
4956 * TreeView.cs: Clamp setting the scrollbar value using SafeValueSet.
4959 2008-04-10 Atsushi Enomoto <atsushi@ximian.com>
4961 * X11Keyboard.cs, X11Structs.cs : make over-the-spot mode default.
4962 Add some on-the-spot code, but it seems we don't need it.
4964 2008-04-10 Jonathan Pobst <monkey@jpobst.com>
4966 * Form.cs: Add method for DataGridView to trigger focus cues
4967 even when it handles the tab keypress.
4969 2008-04-10 Jonathan Pobst <monkey@jpobst.com>
4971 * DataGridView.cs: More keyboard handling, tab, esc.
4972 * DataGridViewTextBoxEditingControl.cs: Don't request arrow keys
4973 when at the beginning or end of the text in the text box.
4975 2008-04-09 Jonathan Pobst <monkey@jpobst.com>
4977 * DataGridViewCell.cs: Guard against an NRE causing a test to fail.
4979 2008-04-09 Jonathan Pobst <monkey@jpobst.com>
4981 * DataGridView.cs: Some fixups for showing and adding the edit control.
4982 * DataGridViewButtonColumn.cs: Implement ToString.
4983 * DataGridViewCell.cs: Size and position the control simultaneously.
4984 * DataGridViewTextBoxCell.cs: Use base to position control.
4986 2008-04-09 Jonathan Pobst <monkey@jpobst.com>
4988 * DataGridViewCell.cs: Fix up some formatting and painting code.
4989 * DataGridViewImageCell.cs: Implement some NIEX methods.
4991 2008-04-09 Jonathan Pobst <monkey@jpobst.com>
4993 * ToolStripItemCollection.cs: What moving an item from one owner
4994 to another, remove from source owner before adding to destination.
4997 2008-04-09 Jonathan Pobst <monkey@jpobst.com>
4999 * PictureBox.cs: Call Load when ImageLocation is set.
5002 2008-04-09 Atsushi Enomoto <atsushi@ximian.com>
5004 * X11Keyboard.cs, XplatUIX11.cs :
5005 Implement over-the-spot mode (with some odd offsets).
5006 - set preedit position when caret is set.
5007 - Wrap XMoveResizeWindow() to move preedit position.
5009 2008-04-08 Everaldo Canuto <ecanuto@novell.com>
5011 * X11keyboard.cs: Fix last patch, maxval must be less not greater than
5014 2008-04-08 Everaldo Canuto <ecanuto@novell.com>
5016 * KeyboardLayouts.cs: Uses GENERATING_RESOURCES to make VKeyTableIndex
5017 and ScanTableIndex public, it fix compilations errors when compiling
5018 WinForms to generate keyboard layout resources.
5020 2008-04-08 Everaldo Canuto <ecanuto@novell.com>
5022 * X11keyboard.cs: Prevent keyboard errors when vitual table theres
5023 different element count than scan table. It prevents some errors in non
5026 2008-04-08 Jonathan Pobst <monkey@jpobst.com>
5028 * DataGridViewHeaderCell.cs: Implement some NIEX methods.
5030 2008-04-08 Jonathan Pobst <monkey@jpobst.com>
5032 * DataGridView.cs: Call OnContentClick.
5033 * DataGridViewCell.cs: Do a null check on ValueType instead
5035 * DataGridViewCheckBoxCell.cs: Implement.
5037 2008-04-08 Atsushi Enomoto <atsushi@ximian.com>
5039 * X11Keyboard.cs : Do not cast IntPtr to int. Use long.
5041 2008-04-08 Atsushi Enomoto <atsushi@ximian.com>
5043 * X11Keyboard.cs : Check XGetIMValues() return value in
5044 case it does not return input styles in some environment.
5046 2008-04-08 Atsushi Enomoto <atsushi@ximian.com>
5048 * X11Keyboard.cs : sizeof(IntPtr) != 4 on amd64.
5050 2008-04-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5052 * BindingContext.cs: Stub UpdateBinding method.
5054 2008-04-07 Atsushi Enomoto <atsushi@ximian.com>
5056 * X11Structs.cs : added couple of structs for XIM support.
5058 Release XIM in case it failed to create XIC.
5059 Use consts for XNblah string.
5060 Add support for IM style customization and XIC creation
5061 for preedit-position and preedit-callback.
5062 Right now use MONO_WINFORMS_XIM_STYLE environment variable
5063 (list of: over-the-spot | on-the-spot | root). Only root
5066 (redoing r99172 with fix.)
5068 2008-04-07 Jonathan Pobst <monkey@jpobst.com>
5070 * TreeView.cs: Center the checkbox a little better.
5072 2008-04-07 Jonathan Pobst <monkey@jpobst.com>
5074 * ThemeClearlooks.cs, ThemeGtk.cs, ThemeNice.cs, ThemeWin32Classic.cs:
5075 Apply very nice patch from Ernesto Carrea that simplifies our
5076 scrollbar drawing. [From bug #376146]
5078 2008-04-07 Jonathan Pobst <monkey@jpobst.com>
5080 * TreeView.cs: Correct the location of the root node checkbox when
5081 ShowRootLines = false. Don't draw the root lines for the root node
5082 when ShowRootLines = false. [Fixes bug #377535]
5084 2008-04-06 Gert Driesen <drieseng@users.sourceforge.net>
5086 * WebBrowserBase.cs: Added missing attributes and fixed attributes.
5088 * WebBrowser.cs: Added missing attributes and fixed attributes. Fixed
5090 * MaskedTextBox.cs: Added missing attribute. Code formatting.
5091 * PageSetupDialog.cs: Added missing attribute. Code formatting.
5092 * HtmlWindowCollection.cs: Code formatting. Fixed line endings.
5093 * ImeMode.cs: Added missing field.
5094 * HtmlWindow.cs: Code formatting. Fixed line endings.
5095 * HtmlElement.cs: Code formatting. Fixed line endings. Fixed compiler
5097 * HtmlHistory.cs: Code formatting. Fixed line endings.
5098 * HtmlDocument.cs: Code formatting. Fixed line endings.
5099 * ToolStripPanel.cs: Added missing IList implementation.
5100 * HtmlElementCollection.cs: Code formatting. Fixed line endings.
5102 2008-04-06 Gert Driesen <drieseng@users.sourceforge.net>
5104 * BindingContext.cs: Changed argument names to fix corcompare errors.
5105 * DataGridView.cs: Removed extra explicit interface implementation
5106 of IDropTarget. Code formatting.
5107 * FlowLayoutPanel.cs: Changed argument names to fix corcompare errors.
5108 * ComboBox.cs: Changed argument names to fix corcompare errors.
5109 * DataGridTextBoxColumn.cs: Changed argument names to fix corcompare
5111 * GridColumnStylesCollection.cs: Changed argument names to fix
5112 corcompare errors. Removed extra tabs.
5113 * GridTableStylesCollection.cs: Changed argument names to fix corcompare
5115 * Control.cs: Changed argument names to fix corcompare errors. Code
5116 formatting. Removed extra explicit IList implementation.
5117 * TextBox.cs: Changed argument names to fix corcompare errors. Code
5118 formatting. Use string.Empty instead of "".
5119 * GridItemCollection.cs: Changed argument names to fix corcompare
5120 errors. Code formatting.
5121 * DataGridViewTopLeftHeaderCell.cs: Changed argument names to fix
5122 corcompare errors. Code formatting.
5123 * ImageList.cs: Changed argument names to fix corcompare errors.
5124 * ToolStripItem.cs: Changed argument names to fix corcompare errors.
5125 * DataGridViewRowCollection.cs: Changed argument names to fix
5126 corcompare errors. Code formatting.
5127 * TableLayoutPanel.cs: Changed argument names to fix corcompare errors.
5128 * DataGridViewSelectedCellCollection.cs: Changed argument names to
5129 fix corcompare errors. Code formatting.
5130 * DataGridViewComboBoxCell.cs: Changed argument names to fix
5131 corcompare errors. Code formatting.
5132 * LinkLabel.cs: Changed argument names to fix corcompare errors.
5133 * TreeNode.cs: Changed argument names to fix corcompare errors. Code
5135 * PropertyGrid.cs: Changed argument names to fix corcompare errors.
5137 * BindingSource.cs: Changed argument names to fix corcompare errors.
5138 Removed extra explicit interface implementations.
5139 * DataGridViewSelectedRowCollection.cs: Changed argument names to
5140 fix corcompare errors. Code formatting.
5141 * ToolStripItemCollection.cs: Removed extra explicit interface
5142 implementation of IList.ReadOnly.
5143 * DataGridViewColumnCollection.cs: Changed argument names to fix
5144 corcompare errors. Code formatting.
5145 * DataGridViewRow.cs: Rename converter to match MS. Code formatting.
5146 * ListView.cs: Changed argument names to fix corcompare errors.
5147 * DataGridViewHeaderCell.cs: Changed argument names to fix corcompare
5149 * DataGridBoolColumn.cs: Changed argument names to fix corcompare
5151 * ListBindingHelper.cs: Changed argument names to fix corcompare
5153 * DataGridViewSelectedColumnCollection.cs: Changed argument names to
5154 fix corcompare errors. Code formatting.
5155 * ToolStripPanel.cs: Removed extra explicit implementation of
5156 IDropTarget interface.
5157 * ListBox.cs: Changed argument names to fix corcompare errors. Code
5158 formatting. Removed extra tabs and spaces.
5159 * DataGridViewCellCollection.cs: Changed argument names to fix
5161 * Help.cs: Changed argument names to fix corcompare errors. Code
5163 * TabControl.cs: Changed argument names to fix corcompare errors.
5164 * DataGridColumnStyle.cs: Changed argument names to fix corcompare
5166 * TableLayoutSettings.cs: Changed argument names to fix corcompare
5169 2008-04-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5171 * ListBindingHelper.cs: When returning properties, only return those
5172 that are browsable. Also, don't do a linear search of the properties,
5173 but use the indexer of the PropertyDescriptorCollection class.
5175 2008-04-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5177 * BindingSource.cs: Implement GetRelatedCurrencyManager by adding a
5178 Dictionary containing the related (child) currency managers. Also,
5179 when setting DataSource, add datasource to our List if it is not a list.
5181 2008-04-05 Ivan N. Zlatev <contact@i-nz.net>
5183 * PropertyGridTextBox.cs: Fix background color of the buttons.
5184 * PropertyGridView.cs: Make the entry less jumpy.
5186 2008-04-05 Ivan N. Zlatev <contact@i-nz.net>
5188 * PropertyGrid.cs: Fix unused variable warnings.
5190 2008-04-05 Ivan N. Zlatev <contact@i-nz.net>
5192 * PropertyGridView.cs: Fix expansion via [+] misbehavior on
5193 double-click. It expanded it once in the mouse down and then
5194 again in the double-click handler.
5196 2008-04-04 Ivan N. Zlatev <contact@i-nz.net>
5198 * GridEntry.cs: ICustomTypeDescriptor support for PropertyOwner,
5199 TypeConverter and UITypeEditors.
5201 2008-04-04 Ivan N. Zlatev <contact@i-nz.net>
5203 * Control.cs: Visibility should be set synchronously,
5204 so we must also redraw once it is and not rely on layouting or
5205 other code to repaint.
5208 2008-04-04 Jonathan Pobst <monkey@jpobst.com>
5210 * DataGridViewCell.cs: Respect DataGridView.GridColor.
5212 2008-04-03 Jonathan Pobst <monkey@jpobst.com>
5214 * Control.cs: Invalidate when the alpha channel is less than 255,
5215 not only when control is transparent.
5217 2008-04-03 Jonathan Pobst <monkey@jpobst.com>
5219 * DataGridViewRowPrePaintEventArgs.cs, DataGridViewRowPostPaintEventArgs.cs:
5220 Implement some painting convenience methods that threw NIEX.
5222 2008-04-03 Jonathan Pobst <monkey@jpobst.com>
5224 * DataGridView.cs: Call CellMouse[Enter|Move|Leave] properly.
5225 * DataGridViewLinkCell.cs: Implement.
5227 2008-04-03 Ivan N. Zlatev <contact@i-nz.net>
5229 * GridEntry.cs: Report the conversion exception error description.
5232 2008-04-03 Ivan N. Zlatev <contact@i-nz.net>
5234 * PropertyGridView.cs: Do not scroll to item on resize.
5237 2008-04-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5239 * BindingContext.cs: When retrieving a BindingManagerBase, if the
5240 dataSource parameter is ICurrencyManagerProvider, then return
5241 ICurrencyManagerProvider.CurrencyManager/GetRelatedCurrencyManager
5242 instead of creating a new one.
5244 2008-04-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5246 * BindingSource.cs: Implement support for Type instances as
5249 2008-04-02 Jonathan Pobst <monkey@jpobst.com>
5251 * DataGridView.cs: Minor cleanups and call CellMouseUp.
5252 * DataGridViewCell.cs: Make some painting routines internally virtual.
5253 * DataGridViewButtonCell.cs: Implement.
5255 2008-04-02 Jonathan Pobst <monkey@jpobst.com>
5257 * Control.cs: We always need to invalidate our children with
5258 transparent backgrounds when we are invalidated.
5261 2008-04-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5263 * BindingSource.cs: EndEdit and CancelEdit should call EndCurrentEdit
5264 and CancelCurrentEdit on CurrencyManager respectively. Implement
5265 support for ICancelAddNew too.
5267 2008-04-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5269 * CurrencyManager.cs: When calling EndCurrentEdit/CancelCurrentEdit,
5270 call EndNew/CancelNew if list is ICancelAddNew.
5272 2008-04-01 Jonathan Pobst <monkey@jpobst.com>
5274 * DataGridView.cs: Guard against an exception while painting
5275 if there are no rows.
5277 2008-04-01 Jonathan Pobst <monkey@jpobst.com>
5279 * DataGridView.cs: Implement a bunch of keyboard commands.
5281 2008-03-31 Jonathan Pobst <monkey@jpobst.com>
5283 * ToolBar.cs: Don't do our painting if UserPaint is set. If UserPaint
5284 isn't set, don't call OnPaint. [Fixes bug #375300]
5286 2008-03-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5288 * BindingSource.cs: IsBindingSuspended, ResumeBinding and
5289 SuspendBinding depend on CurrencyManager. Implement RemoveCurrent,
5290 hookup the remaining events related to CurrencyManager, and fire
5291 OnListChanged also for the Clear () method.
5293 2008-03-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5295 * BindingSource.cs: Use Current and Position implementations in
5296 CurrencyManager instead of using our own routines, since we need
5297 to be in synch with it. Count should NEVER return a -1 value, and
5298 also report ListChanged events for both simple IList data
5299 sources (manually) as well for IBindingList ones (by hooking up an
5300 event handler for it).
5302 2008-03-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5304 * BindingSource.cs: Make one .ctor call the another, to avoid
5305 duplicate code. Add the CurrencyManager property, and also for AddNew
5306 throw the proper exceptions and show better error messages.
5308 2008-03-28 Jonathan Pobst <monkey@jpobst.com>
5310 * ComboBox.cs: Only adjust selectedindex if Handle has been
5311 created. Fixes failing test.
5313 2008-03-28 Jonathan Pobst <monkey@jpobst.com>
5315 * ComboBox.cs: Adjust selectedindex if we insert a new item
5316 above the current selectedindex in a sorted ComboBox.
5319 2008-03-28 Jonathan Pobst <monkey@jpobst.com>
5321 * ComboBox.cs: Support PageUp/PageDown when dropdown is closed.
5324 2008-03-28 Jonathan Pobst <monkey@jpobst.com>
5326 * DataGridViewTextBoxCell.cs: Implement stuffs.
5328 2008-03-27 Jonathan Pobst <monkey@jpobst.com>
5330 * TreeView.cs: Create the scrollbars even earlier to be
5331 double dog certain they are created before they are accessed.
5333 2008-03-27 Jonathan Pobst <monkey@jpobst.com>
5335 * XplatUIX11.cs: Remove a no-op line that csc was choking on.
5337 2008-03-27 Jonathan Pobst <monkey@jpobst.com>
5339 * ScrollBar.cs: Create an internal safe Value setter so we
5340 won't crash if we try to set a value outside the min and max.
5341 * TextBoxBase.cs: Use safe value setter to guard against a
5342 potential NRE that is being reported by Reflector.
5344 2008-03-27 Jonathan Pobst <monkey@jpobst.com>
5346 * TreeView.cs: Create the scrollbars earlier in the constructor
5347 to attempt to guard against an NRE in SetTop in Reflector.
5349 2008-03-27 Jonathan Pobst <monkey@jpobst.com>
5351 * DataGridView.cs, DataGridViewCell.cs, DataGridViewCell.cs,
5352 DataGridViewRowCollection.cs: Do not scroll column and row headers,
5353 show messagebox on data format error, use column display index
5354 correctly, make sure HitTest supports new layout stuff,
5355 make sure scrollbars support new layout stuff.
5357 2008-03-27 Atsushi Enomoto <atsushi@ximian.com>
5359 * XplatUIX11.cs : Patch by Doug Rintoul.
5360 For some IM engines, keypress events need to delay call
5361 to XPending() and XNextEvent() in the loop so that it
5362 does not mess the orders in XIM commit callback.
5363 Some KeyRelease events such as shift keys need to be
5364 processed both in the IM engine and winforms driver
5365 itself since winforms holds its own state check.
5367 For details, see: http://lists.ximian.com/pipermail/mono-winforms-list/2008-March/003279.html
5369 2008-03-27 Atsushi Enomoto <atsushi@ximian.com>
5371 * X11Keyboard.cs, XplatUIX11.cs :
5372 add primitive support for XIM input support (preedit-
5373 nothing and status-nothing). It requires precise event
5374 capturing (XSelectInput/"filterEvents") and different
5375 call to XFilterEvent against root window.
5376 Get composed string and send dummy WM_IME_COMPOSITION.
5377 Free XIM and XIC instances in finalizer.
5379 (This first patch does not include suggested changes
5380 by Doug Rintoul. It will follow.)
5382 2008-03-26 Jonathan Pobst <monkey@jpobst.com>
5384 * DataGridView.cs: When binding to a property, if the property
5385 doesn't have a setter, set the column to readonly.
5388 2008-03-26 Jonathan Pobst <monkey@jpobst.com>
5390 * ComboBox.cs: Guard against NRE if an arrow key is hit while
5391 we aren't dropped down. Support Home/End in DropDownList mode.
5394 2008-03-26 Jonathan Pobst <monkey@jpobst.com>
5396 * TreeNodeCollection.cs: Don't increment count until we've
5397 saved our index to return.
5400 2008-03-25 Jonathan Pobst <monkey@jpobst.com>
5402 * Label.cs: Add padding to the label's AutoSize calculation.
5405 2008-03-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5407 * ListBindingHelper.cs: Actually implement GetListName method.
5409 2008-03-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5411 * BindingSource.cs: Throw the propert expceptions for some methods, as
5412 well as detect the list item type for Add method if DataSource is null.
5414 2008-03-25 Jonathan Pobst <monkey@jpobst.com>
5416 * DataGridViewCell.cs: I don't know why I commented this out,
5417 putting it back for now.
5419 2008-03-25 Jonathan Pobst <monkey@jpobst.com>
5421 * DataGridViewCell.cs: Remove storage for owning column, just
5423 * DataGridViewColumn.cs: Make getter for HeaderTextSet.
5424 * DataGridViewColumnHeaderCell.cs: If the header text has been
5425 explicitly set, return it.
5428 2008-03-25 Jonathan Pobst <monkey@jpobst.com>
5430 * DataGridViewRowCollection.cs: Disable row sharing when
5431 using data binding. Its a great feature, but lets work on
5432 getting DGV usable first before we worry about optimizations.
5434 2008-03-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5436 * BindingSource.cs: When resetting our internal list, compute list
5437 item type information to be used for indirect list access. Also
5438 implement/tune some properties and methods related to the list access
5440 * ListBindingHelper.cs: Add a stub for GetListName method, used from
5443 2008-03-24 Jonathan Pobst <monkey@jpobst.com>
5445 * DataGridView.cs: If RowCount is increased while ColumnCount
5446 is zero, add a column. [Fixes bug #331649]
5448 2008-03-24 Jonathan Pobst <monkey@jpobst.com>
5450 * DataGridViewRowCollection.cs: When adding new rows for
5451 databinding, make sure they are place before the add row.
5454 2008-03-24 Jonathan Pobst <monkey@jpobst.com>
5456 * DataGridViewRow.cs: Draw cells in column DisplayIndex order
5457 instead of Index order.
5459 2008-03-24 Jonathan Pobst <monkey@jpobst.com>
5461 * DataGridView.cs: If columns are added by increasing ColumnCount,
5462 they need to be DataGridViewTextBoxColumns, not DataGridViewColumn.
5465 2008-03-24 Jonathan Pobst <monkey@jpobst.com>
5467 * DataGridView.cs: Turn off and on the "new row" when
5468 AllowUserToAddRows is toggled. When the handle is created,
5469 set current cell and selected cell/row/col.
5471 2008-03-24 Jonathan Pobst <monkey@jpobst.com>
5473 * ComboBox.cs: When navigating the drop down by keyboard, we
5474 need to scroll the list box if our selection moves out of the
5475 currently shown items. [Fixes bug #371990]
5477 2008-03-24 Luke Page <luke.a.page@gmail.com>
5479 * RichTextBox.cs: Handles visible rtf tag and no longer shows the text
5480 on the control. Also now handles unicode compatibility characters and
5481 stores the unicode compatibility length on the stack. Fixes Bugs
5482 #355198 and #366436.
5484 2008-03-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5486 * BindingSource..cs: Take into account DataMember when re-creating the
5487 List property, and also create a specific kind of list as needed.
5489 2008-03-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5491 * ListBindingHelper.cs: Add a new case for GetList () method - when we
5492 get an empty IEnumerable, try to detect whether the datamember is
5493 valid or not for that type, if true, return null, and throw exception
5496 2008-03-22 Jonathan Pobst <monkey@jpobst.com>
5498 * ComboBox.cs: Alt-Down should drop down the list, Esc should
5499 retract it. [Fixes bug #371989]
5501 2008-03-22 Ivan N. Zlatev <contact@i-nz.net>
5503 * PropertyGrid.cs: Initialize the sorting button as pushed.
5505 2008-03-22 Ivan N. Zlatev <contact@i-nz.net>
5508 - Visually select the PropertyTab.
5509 - Filter Properties by Attributes properly.
5511 2008-03-21 Jonathan Pobst <monkey@jpobst.com>
5513 * MenuItem.cs: Remove menu item from parent when disposed.
5516 2008-03-21 Jonathan Pobst <monkey@jpobst.com>
5518 * ToolBar.cs: Don't reset layout_type if Dock = None.
5520 2008-03-21 Andreia Gaita <avidigal@novell.com>
5522 * UserControl.cs: Select the first available control when we get focus.
5525 2008-03-21 Jonathan Pobst <monkey@jpobst.com>
5527 * DataGridViewCell.cs, DataGridViewTextBoxCell.cs: Don't paint
5528 the content if we are in edit mode. [Fixes bug #343964]
5530 2008-03-21 Jonathan Pobst <monkey@jpobst.com>
5532 * DataGridViewCell.cs: Fix border painting for column headers.
5534 2008-03-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5536 * BindingSource.cs: When setting or resetting data source,
5537 use ListBindingHelper.GetList () method, since it will get the list in
5538 case datasource is IListSource.
5540 2008-03-20 Jonathan Pobst <monkey@jpobst.com>
5542 * DataGridViewCell.cs: Implement lots more stuffs.
5544 2008-03-20 Ivan N. Zlatev <contact@i-nz.net>
5546 * PropertyGridView.cs, GridEntry.cs: Implement support for
5547 UITypeEditor.IsDropDownResizable.
5549 2008-03-20 Jonathan Pobst <monkey@jpobst.com>
5551 * DataGridViewCell.cs: Remove unused variables, improve how
5552 several of the property getters work.
5553 * DataGridViewRow.cs: Don't call setSize on a cell, cell should
5554 get its size from the parent row/col.
5556 2008-03-20 Ivan N. Zlatev <contact@i-nz.net>
5558 * PropertyGrid.cs: Ensure PropertiesTab is visible even if the
5559 user alters manually the PropertyTabs collection via the
5560 PropertyTabs property.
5562 2008-03-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5564 * ListBindingHelper.cs: Implement -previously- ignored cases. We have
5565 new tests for them to be sure to be compatible with .net.
5567 2008-03-20 Andreia Gaita <avidigal@novell.com>
5569 * WebBrowserBase.cs: Fix attributes, add events
5570 * WebBrowser.cs: Fix Padding signature
5572 2008-03-20 Ivan N. Zlatev <contact@i-nz.net>
5574 * PropertyGrid.cs, PropertyGridView.cs: Implement PropertyTab support.
5576 2008-03-19 Jonathan Pobst <monkey@jpobst.com>
5578 * DataGridView.cs, DataGridViewCell.cs, DataGridViewCellStyle.cs,
5579 DataGridViewLinkCell.cs, DataGridViewRow.cs, DataGridViewRowHeaderCell.cs,
5580 DataGridViewTextBoxCell.cs: Changes so that DataGridViewCell
5581 passes the new suite of tests for it.
5583 2008-03-18 Andreia Gaita <avidigal@novell.com>
5585 * WebBrowser.cs: Add missing attributes, missing Padding and
5586 DefaultSize properties, remove extraneous getters
5588 2008-03-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5590 * ListBindingHelper.cs: Implement a pair of GetListItemProperties
5593 2008-03-16 Jonathan Pobst <monkey@jpobst.com>
5595 * ComboBox.cs: Move resetting the selected index to keypress
5596 instead of textchanged. Changing the text programmatically
5597 should not trigger resetting the selected index. Fixes test.
5599 2008-03-16 Jonathan Pobst <monkey@jpobst.com>
5601 * ComboBox.cs: When the user types into the textbox, reset
5602 the selected index to -1. [Fixes bug #371672]
5604 2008-03-16 Jonathan Pobst <monkey@jpobst.com>
5606 * FileDialog.cs: Support Control-A for selecting everything
5607 in an OpenFileDialog. [Fixes bug #371564]
5609 2008-03-15 Jonathan Pobst <monkey@jpobst.com>
5611 * DataGridView.cs: When row/column visible/height properties
5612 change, invalidate. Take the NIEX out of InvalidateRow/Column
5613 etc. We don't support them yet, but we can just invalidate
5614 everything until we do support them. (Added MonoTODO). Set
5615 proper control styles.
5616 * DataGridViewRow.cs: Don't call PaintHeader if row headers
5619 2008-03-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5621 * ListBindingHelper.cs: Implement 2.0 GetListItemType methods.
5623 2008-03-14 Jonathan Pobst <monkey@jpobst.com>
5625 * DataGridViewRow.cs: Only paint the white background in
5626 cell bounds, the row bounds extends past the cells if the
5627 grid width isn't as wide as the DGV.
5629 2008-03-14 Jonathan Pobst <monkey@jpobst.com>
5631 * DataGridView*: Completely revamp the drawing to match the
5632 public API. Our grids now look better, and call all the
5633 appropriate methods and event to allow users to override
5634 the painting and do their own.
5636 2008-03-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5638 * ListBindingHelper.cs: Implement 2.0 GetList methods.
5640 2008-03-13 Jonathan Pobst <monkey@jpobst.com>
5642 * DataGridView.cs: Implement BorderStyle.
5644 2008-03-13 Jonathan Pobst <monkey@jpobst.com>
5646 * FileDialog.cs: Apply patch from Andy Hume: Any time we
5647 are comparing attributes, make sure we only look at the
5648 one we are interested. These calls were failing if there
5649 were more than one attribute.
5652 2008-03-13 Jonathan Pobst <monkey@jpobst.com>
5654 * DataGridColumnStyle.cs: Hide ctor from 1.1 profile.
5656 2008-03-12 Jonathan Pobst <monkey@jpobst.com>
5658 * PageSetupDialog.cs: Stub EnableMetric.
5659 * PrintControllerWithStatusDialog.cs: Implement IsPreview.
5660 * PrintPreviewDialog.cs: Add ProcessDialogKey,
5663 2008-03-12 Jonathan Pobst <monkey@jpobst.com>
5665 * MonthCalendar.cs: Remove unused variable.
5667 2008-03-12 Jonathan Pobst <monkey@jpobst.com>
5669 * DataGridView*.cs: corcompare stuffs.
5671 2008-03-11 Jonathan Pobst <monkey@jpobst.com>
5673 * MonthCalendar.cs: Remove an incorrect invalidate optimization.
5674 The savings aren't worth the extra code to fix the optimization.
5677 2008-03-11 Jonathan Pobst <monkey@jpobst.com>
5679 * ToolBar.cs: Always call base.Dock in the Dock override so that
5680 Control's layout_type gets reset correctly.
5683 2008-03-11 Ivan N. Zlatev <contact@i-nz.net>
5685 * X11Dnd.cs: End DnD operation also for the middle mouse button.
5687 2008-03-11 Jonathan Pobst <monkey@jpobst.com>
5689 * ContainerControl.cs: We can't do MenuStrip implicit mnemonics
5690 at the same time we do explicit ones, because we have to give all
5691 other controls on the container a chance to handle explicit ones
5692 first. If no one has an explicit mnemonic, then we can let the
5693 MenuStrip have a shot at implicit mnemonics.
5694 * MenuStrip.cs: Create an implicit mnemonic function.
5695 * ToolStrip.cs: When processing explicit mnemonics, don't do implicit
5696 mnemonics for MenuStrips.
5699 2008-03-11 Jonathan Pobst <monkey@jpobst.com>
5701 * AxHost.cs, Binding.cs, DataGridView.cs, DataGridViewCell.cs,
5702 DataGridColumnStyle.cs: corcompare stuffs.
5704 2008-03-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5706 * FileDialog.cs: Don't add any ColumnHeader to Columns if view is not
5707 Details - This is needed after we added the bits to use any available
5708 column also for List and SmallIcon view.
5710 2008-03-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5712 * ListBox.cs: Fire SelectedIndexChanged and SelectedValueChanged events
5713 at the proper place, not only when changing SelectedIndex and changing
5714 the selection using keys/mouse, as .net does.
5716 2008-03-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5718 * ControlBindingsCollection.cs: Implement last 2.0
5719 DefaultDataSourceUpdateMode property. Also fix a wrong instruction
5720 in the new 2.0 Add methods.
5722 2008-03-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5724 * ListBox.cs: When calling SelectedIndexCollection.Clear,
5725 return if no items are previously selected - this is done to avoid
5726 firing OnSelectedIndexChanged without need to do so. Also,
5727 when creating handle ensure that the focused item is visible (as
5730 2008-03-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5732 * ListBox.cs: Rewrote/refactored most of selection code. We require
5733 the following things in selection: a) keep selection sorted (both
5734 indices and items), b) SelectedIndices automatically detect the
5735 selection mode, c) SelectedIndex should be the first selected item
5736 index, d) Need to Focus/adjust scroll bar when selecting a new item,
5737 not only for SelectedIndex, which is specially important in Multi*
5738 selection modes. To achieve this we are moving the selection core to
5739 SelectedIndexCollection and make depend all selection modifications on
5743 2008-03-06 Jonathan Pobst <monkey@jpobst.com>
5745 * ToolStrip.cs: Enable implicit mnemonics for drop down
5746 menu strips. [Fixes part of bug #367692]
5748 2008-03-06 Jonathan Pobst <monkey@jpobst.com>
5750 corcompare - fix parameter names [stragglers].
5751 Binding.cs, BindingsCollection.cs, GridColumnStylesCollection.cs,
5752 HelpEventHandler.cs, Label.cs, ListView.cs, Message.cs,
5755 2008-03-06 Jonathan Pobst <monkey@jpobst.com>
5757 Control.cs: Don't call ProcessMenuKey on WM_SYSKEYUP if there
5758 was a mnemonic pressed as well as Alt. Also, if nothing handles a
5759 mnemonic, let the ToolStripManager have it even if it doesn't
5760 have a matching mnemonic.
5763 2008-03-06 Jonathan Pobst <monkey@jpobst.com>
5765 corcompare - fix warning about implicit implementation
5766 * ToolStrip.cs: Add IToolStripData interface.
5767 * IToolStripData.cs: Add.
5769 2008-03-06 Jonathan Pobst <monkey@jpobst.com>
5771 corcompare - fix warning about implicit implementation
5772 * Control.cs, ToolStripPanelRow.cs: Add IBounds interface.
5775 2008-03-05 Jonathan Pobst <monkey@jpobst.com>
5777 corcompare - fix parameter names [N-Z].
5778 LinkArea.cs, NativeWindow.cs, NotifyIcon.cs, PageSetupDialog.cs,
5779 Panel.cs, PrintDialog.cs, PrintPreviewControl.cs, PropertyGrid.cs,
5780 PropertyManager.cs, RichTextBox.cs,
5781 ScrollBar.cs, SelectionRange.cs, SplitContainer.cs, StatusBar.cs,
5782 StatusBarDrawItemEventArgs.cs, StatusBarPanelClickEventArgs.cs,
5783 StatusStrip.cs, TabControl.cs, TableLayoutColumnStyleCollection.cs,
5784 TableLayoutRowStyleCollection.cs, TableLayoutStyleCollection.cs,
5785 TextBoxBase.cs, ThreadExceptionDialog.cs, ToolStrip.cs,
5786 ToolStripContentPanel.cs, ToolStripDropDown.cs,
5787 ToolStripDropDownMenu.cs, ToolStripItem.cs, ToolStripMenuItem.cs,
5788 ToolStripPanel.cs, ToolStripSeparator.cs,
5789 TreeNode.cs, TreeView.cs, TreeViewHitTestInfo.cs,
5790 UICuesEventHandler.cs, UpDownBase.cs.
5792 2008-03-05 Jonathan Pobst <monkey@jpobst.com>
5794 corcompare - fix parameter names [G-M].
5795 GridColumnStylesCollection.cs, GridItemCollection.cs,
5796 GridTableStylesCollection.cs, GroupBox.cs, Help.cs,
5797 HelpProvider.cs, ImageListStreamer.cs, InputLanguageCollection.cs,
5798 Label.cs, LayoutEngine.cs, LinkClickedEventArgs.cs,
5799 LinkLabel.cs, ListBox.cs, ListView.cs, ListViewGroupCollection.cs,
5800 ListViewItem.cs, Menu.cs, MenuItem.cs, MenuStrip.cs, MouseEventArgs.cs.
5802 2008-03-05 Jonathan Pobst <monkey@jpobst.com>
5804 corcompare - fix parameter names [A-F].
5805 Control.cs, DataGridBoolColumn.cs, DataGridColumnStyle.cs,
5806 DataGridTextBoxColumn.cs, DataGridViewButtonCell.cs,
5807 DataGridViewCellCollection.cs, DataGridViewCellParsingEventArgs.cs,
5808 DataGridViewCheckBoxCell.cs, DataGridViewColumnDesignTimeVisibleAttribute.cs,
5809 DataGridViewComboBoxCell.cs, DataGridViewHeaderCell.cs,
5810 DataGridViewImageCell.cs, DataObject.cs, DomainUpDown.cs,
5811 DrawItemEventArgs.cs, FolderBrowserDialog.cs, FontDialog.cs, Form.cs.
5813 2008-03-03 Ivan N. Zlatev <contact@i-nz.net>
5815 * GridEntry.cs: Do not convert not only if the types match,
5816 but also if the property type is assigneable from the value's
5820 2008-03-03 Ivan N. Zlatev <contact@i-nz.net>
5822 * PropertyGridView.cs:
5823 - Subscribe to the listbox only once and not everytime.
5824 - Update the textbox even if SetValue fails.
5825 - Close the listbox before calling TrySetValue just in case.
5828 2008-03-03 Jonathan Pobst <monkey@jpobst.com>
5830 * Control.cs: Hide ICollection.CopyTo from the 1.1 profile.
5832 2008-03-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5834 * ListView.cs: Implement support for custom column width based on
5835 Columns collection (we were previously using this collection only
5839 2008-03-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5841 * ListViewItem.cs: For Tile view, always set bounds for the first
5842 subitem (which is the main one), and also don't let Width be larger
5843 than ListView.TileSize.Width. Improve code readibility also.
5844 * ThemeWin32Classic.cs: When painting the ListViewItem instances
5845 in Tile view, _always_ use the NoWrap flag.
5848 2008-02-29 Ivan N. Zlatev <contact@i-nz.net>
5850 * PropertyGrid.cs: Check for null PropertyDescriptor.Name just
5852 * GridEntry.cs: For MS compitability make all child properties
5853 readonly if the parent is readonly. Ugh.
5854 [Fixes bug #365945 and #365944]
5856 2008-02-29 Andreia Gaita <avidigal@novell.com>
5858 * HtmlHistory.cs: Fix sigs for Forward and Back to navigate by index
5859 relative to the history
5861 2008-02-29 Andreia Gaita <avidigal@novell.com>
5863 * HtmlElement.cs: More handlers for mouse and key events
5865 2008-02-28 Andreia Gaita <avidigal@novell.com>
5867 * WebBrowserBase.cs: MouseClick sig changed.
5868 * HtmlHistory.cs: Implement history navigation
5869 * HtmlElement.cs: Add event handlers, and connect them.
5871 2008-02-28 Ivan N. Zlatev <contact@i-nz.net>
5874 - Use PropertyDescriptor.DisplayName instead of .Name for Label,
5875 so that DisplayNameAttribute doesn't get ignored.
5876 - Check for ParenthesizeNameAttribute and parenthesize the Label.
5877 - Add support for PasswordPropertyTextAttribute
5878 * PropertyGridView.cs: Check if an entry is a password.
5879 [Fixes bugs #365589, #365586, #365588]
5881 2008-02-28 Andreia Gaita <avidigal@novell.com>
5883 * PropertyGridView.cs: Revert the message filtering change, as we
5884 need it to block after all. Remove block parameter, unnecessary.
5886 2008-02-27 Jonathan Pobst <monkey@jpobst.com>
5888 * UserControl.cs: Better implementation of GetPreferredSize.
5889 First step to fixing bug #361441.
5891 2008-02-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5893 * Binding.cs: Actually implement data binding support for
5894 classes implementing IBindableComponent.
5895 * ControlBindingsCollection.cs: Likewise.
5897 2008-02-26 Andreia Gaita <avidigal@novell.com>
5899 * PropertyGridView.cs: Use a message filter to check when to
5902 2008-02-26 Andreia Gaita <avidigal@novell.com>
5904 * Application.cs: Change the message_filters loop so a filter
5905 can be removed while looping.
5907 2008-02-26 Ivan N. Zlatev <contact@i-nz.net>
5909 * GridEntry.cs: Optimization in ToggleValue so that it caches
5911 * PropertyGridView.cs: An optimization so that the property isn't
5912 re-read twice for each StandardValue added to the drop-down menu.
5913 Patch by Andy Hume <andyhume32@yahoo.co.uk> under the MIT/X11
5917 2008-02-26 Jonathan Pobst <monkey@jpobst.com>
5919 * Application.cs: Apply patch from Justin Cherniak to match
5920 MS better for ProductName, ProductVersion, and CompanyName.
5923 2008-02-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5925 * Binding.cs: Actually implement 2.0 NullValue property. Also
5926 when changing the formatting related properties, only update the state
5927 if formatting_enabled is true (we don't mind otherwise).
5929 2008-02-25 Jonathan Pobst <monkey@jpobst.com>
5931 * ToolStrip.cs: Don't raise ItemClicked for disabled items.
5934 2008-02-25 Ivan N. Zlatev <contact@i-nz.net>
5936 * GridEntry.cs: Use the PropertyDescriptor.PropertyType instead
5937 of GetType on the current value as it uses reflection to
5938 determine the type. This fixes the case where the new value is
5941 2008-02-25 Ivan N. Zlatev <contact@i-nz.net>
5943 * PropertyGridView.cs: Limit mousewheel scrolling to not scroll
5946 2008-02-24 Luke Page <luke.a.page@gmail.com>
5948 * Line.cs, TextControl.cs: Implement offset x and y so that a
5949 document doesn't have to begin at (0,0) on the viewpoint.
5950 * TextBox.cs, TextBoxBase.cs: RightToLeft switches the scroll
5951 bars and switches the text alignment (and therefore is now
5952 implemented for textbox). Fixes #321383.
5954 2008-02-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5956 * Binding.cs: Actually implement 2.0 FormatString and FormatInfo
5957 properties. Also when changing FormattingEnabled update the control
5958 property -as .Net does-.
5960 2008-02-22 Carlos Alberto Cortez <calberto.cortez@Å‹mail.com>
5962 * ControlBindingsCollection.cs: Add the missing 2.0 Add overloads.
5963 * Binding.cs: Add stubs for the overloads of the Add method in
5966 2008-02-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5968 * Binding.cs: PullData () returns a false value if we got an exception.
5969 Also when validating the control and we get an error, instead of
5970 setting the value of the previous one, cancel the event (tested in 1.1
5973 2008-02-22 Jonathan Pobst <monkey@jpobst.com>
5975 * TreeView.cs: Make selected_node and highlighted_node internal.
5976 * TreeNodeCollection.cs: Reset selected_node and highlighted_node
5977 to null when Nodes.Clear is called.
5980 2008-02-21 Jonathan Pobst <monkey@jpobst.com>
5982 * FontDialog.cs: Ensure that when the Font is set in code,
5983 all the gui pieces are updated accordingly.
5986 2008-02-21 Jonathan Pobst <monkey@jpobst.com>
5988 * TextRenderer.cs: Respect proposed size for MeasureString.
5989 * ThemeWin32Classics.cs: If our CheckBox/RadioButton isn't
5990 autosize, use a proposed width to force wrapping for long text.
5993 2008-02-21 Jonathan Pobst <monkey@jpobst.com>
5995 * TreeView.cs: Factor in checkboxes = false and state images in
5996 to HitTest. [Fixes bug #363360]
5998 2008-02-21 Jonathan Pobst <monkey@jpobst.com>
6000 * ThemeWin32Classic.cs: Only look at the Date part of a DateTime
6001 when drawing the selected range.
6004 2008-02-21 Jonathan Pobst <monkey@jpobst.com>
6006 * ToolStripContainer.cs: Add SupportsTransparentBackColor and
6007 ResizeRedraw control styles.
6010 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
6012 * TreeView.cs: StateImages are basically custom checkboxes, so
6013 factor their size the same as real checkboxes when determining
6017 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
6019 * MessageBox.cs: Make the message box wider if the form caption
6020 is longer than the text in the form.
6023 2008-02-20 Ivan N. Zlatev <contact@i-nz.net>
6025 * PropertyGridView.cs: Fix a NRE when closing the drop down form.
6027 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
6029 * TreeNode.cs: Guard against an NRE when the parent's
6030 StateImageList hasn't been set.
6033 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
6035 * SplitContainer.cs: Add SupportsTransparentBackColor and
6036 OptimizedDoubleBuffering control styles.
6039 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
6041 * Application.cs: For the app data paths and the registry key paths,
6042 ensure they are created before returning them to the user.
6045 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
6047 * Application.cs: Guard against an NRE in CompanyName and
6050 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
6052 * Application.cs: For CompanyName, ProductName, and ProductVersion,
6053 make sure we handle all three cases correctly: attribute is present,
6054 attribute is present but is an empty string, and attribute is not
6057 2008-02-20 Ivan N. Zlatev <contact@i-nz.net>
6059 * PropertyGridView.cs:
6060 - Fix a NRE that caused a test failure
6061 - Another performance improvement - cache the standard values
6064 2008-02-19 Jonathan Pobst <monkey@jpobst.com>
6066 * ComboBox.cs: Fix previous change to affect both 1.1 and 2.0
6069 2008-02-19 Ivan N. Zlatev <contact@i-nz.net>
6071 * PropertyGridView.cs: Fix a big performance bug.
6073 2008-02-19 Jonathan Pobst <monkey@jpobst.com>
6075 * SelectionRange.cs: Apply patch from Andy Hume to make
6076 constructor behavior more accurate. [Fixes bug #362117]
6078 2008-02-19 Andreia Gaita <avidigal@novell.com>
6080 * Control.cs: Added a new flag is_disposing to track if the
6081 window is currently in the process of being disposed of.
6082 This is used so that, when firing visibility changes triggered
6083 by unparenting controls during Dispose, the control doesn't
6086 2008-02-19 Jonathan Pobst <monkey@jpobst.com>
6088 * ComboBox.cs: Set height to preferred height when the handle
6089 is created. [Fixes bug #360862]
6091 2008-02-18 Andreia Gaita <avidigal@novell.com>
6093 * XplatUIX11.cs: Create FosterParent with border width at 0.
6094 With the previous value of 4, everytime a control got reparented
6095 from parent = null, it's location would be shifted right and
6096 down by 4, since these coordinates would be offset by the
6097 FosterParent's border width.
6099 2008-02-18 Ivan N. Zlatev <contact@i-nz.net>
6101 * Control.cs: During diposing firstly remove ourselfes from
6102 the parent and *then* destroy our handle, because removing
6103 ourselfes from the parent controls collection causes
6104 VisibilityChange, etc events, which require a handle and end
6105 up recreating the control.
6107 2008-02-17 Ivan N. Zlatev <contact@i-nz.net>
6109 * GridEntry.cs: Set expanded state before notifying that the
6110 expansion has taken place.
6111 * PropertyGridView.cs:
6112 - Set the propertygridtextbox text to the selected
6113 StandardValue before proceeding to setting it.
6114 - Scrolling bugfixes.
6116 2008-02-16 Ivan N. Zlatev <contact@i-nz.net>
6119 - Fix ValueText to not return null.
6120 - Fix conversion error reporting to actually happen.
6121 * PropertyGridView.cs: Set entry only if the text has changed.
6124 2008-02-16 Ivan N. Zlatev <contact@i-nz.net>
6127 - Fix handling of a null current value.
6128 - Swallow editor exceptions.
6131 2008-02-16 Ivan N. Zlatev <contact@i-nz.net>
6133 * PropertyGrid.cs: Clear current items first thing before
6134 repopulating subitems.
6136 - Handle null StandardValuesCollection.
6137 - Mark as not editable if there is no PropertyDescriptor and
6138 if the Converter cannot convert from string.
6139 [Part of fix for bugs #360666 and #358332]
6141 2008-02-15 Luke Page <luke.a.page@gmail.com>
6142 * MaskedTextBox.cs: Now skips non editable characters after a
6143 character has been entered and we are progressing to the next
6144 position in the MaskedTextBox.
6146 2008-02-15 Luke Page <luke.a.page@gmail.com>
6147 * TextBoxBase.cs: Handles MouseDown when shift key is clicked so
6148 that it changes the selection rather than just repositioning the
6149 cursor. Fixes Bug #360873.
6151 2008-02-15 Luke Page <luke.a.page@gmail.com>
6152 * TextBoxBase.cs, TextControl.cs, RichTextBox.cs: TextChanged fires
6153 when Undo/Redo changes the text. Undo/Redo/Undo/Redo now works
6154 correctly. See #359330
6156 2008-02-15 Andreia Gaita <avidigal@novell.com>
6158 * XplatUIX11.cs: If the handle is null when posting a message, use the
6159 current thread queue to post instead. Fixes #332409
6161 * SendKeys.cs: Slight optimization
6163 2008-02-14 Ivan N. Zlatev <contact@i-nz.net>
6165 * PropertyGrid.cs, PropertyGridView.cs:
6166 Fix multiple scrolling and sizing issues.
6169 2008-02-12 Ivan N. Zlatev <contact@i-nz.net>
6171 * PropertyGridView.cs: Ensure that drop down editors are shown
6172 in the WorkingArea of the screen.
6175 2008-02-12 Ivan N. Zlatev <contact@i-nz.net>
6177 * GridEntry.cs: Fail silently when UITypeEditor is missing.
6180 2008-02-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6182 * Binding.cs: Implement 2.0 DataSourceNullValue property.
6184 2008-02-11 Ivan N. Zlatev <contact@i-nz.net>
6186 * PropertyGridView.cs:
6187 - Clear the controls in the drop down form after it is hidden.
6188 - Fix Width sizing of the dropdown editors to match MSFT.
6190 2008-02-11 Ivan N. Zlatev <contact@i-nz.net>
6192 * PropertyGridView.cs:
6193 - Fix height for drawing the grid entry
6194 text value, so that it clips multiline text properly.
6195 - Fix unfocusing to match MSFT.
6197 2008-02-11 Ivan N. Zlatev <contact@i-nz.net>
6199 * PropertyGrid.cs: Do not populate subgriditems unless expandable.
6200 Fixes a bug where on repopulation after value changed items become
6203 2008-02-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6205 * Binding.cs: For the 2.0 profile, look for a
6206 'PropertyChanged' event in the target control, and add checks for
6207 DataSourceUpdateMode property to change -or not- the data source
6208 from validation/control property change.
6210 2008-02-10 Atsushi Enomoto <atsushi@ximian.com>
6212 * Binding.cs : build fix (operator == is not overriden in 1.x. Do
6213 not compare struct with null in 2.0).
6215 2008-02-10 Luke Page <luke.a.page@gmail.com>
6217 * MaskedTextBox.cs: UseSystemPasswordChar updates PasswordChar, PasswordChar
6218 updates the provider and if not using a provider, uses the internal document
6219 class implementation of password char. Also when showing text, uses display string
6220 from the provider, instead of the actual text.
6222 2008-02-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6224 * Binding.cs: Ooooops, forgot to take into account the data_source
6225 and binding_member_info null case (it was breaking the Binding tests).
6227 2008-02-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6229 * Binding.cs: Implement support for data source changes exposed by
6230 'PropertyNameChanged' events, and update the control property as
6233 2008-02-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6235 * Binding.cs: Implement 2.0 WriteValue method.
6237 2008-02-08 Jonathan Pobst <monkey@jpobst.com>
6239 Commit patch from James Purcell for better AutoScale implementation:
6241 * ScaleControl should call GetScaledBounds with the control's total size rather
6242 than client size. GetScaledBounds should handle ignoring the borders in its
6243 calculations. Cleaned up ScaleControl/GetScaledBounds overrides in controls
6244 (for the most part they just call the base code now since that is fixed).
6245 * Added ScaleChildrenInternal to allow controls to disable scaling of children
6246 without having to override ScaleChildren (since none of .NET's controls do).
6247 This is required for most controls in Mono that have scrollbars to prevent the
6248 scrollbars from being moved/resized.
6249 * Nested ContainerControls can have a different scale mode than their parent.
6250 This is briefly mentioned in MSDN but is buggy in MS.NET (the runtime and
6251 designer produce different results both of which look incorrect).
6252 * Default AutoScaleMode for ContainerControl should be Inherit.
6253 * Simplified workaround for ComboBox scaling issue.
6254 * 1.0 style auto-scaling now uses its own methods instead of sharing 2.0's.
6255 1.0 style auto scaling should scale the whole control's size instead of
6256 ignoring the borders (except for Form) and the rounding is done differently to
6257 preserve control alignment.
6258 * ApplyAutoScaling (used for 1.0 style) should use the rounded result of
6260 * Cleaned up fix for "Bug 355703 - Setting AutoScale = true doesn't stick".
6261 * CurrentAutoScaleDimensions should round the estimated character width instead
6263 * ListBox's GetScaledBounds should always use the height it was set to instead
6264 of the height that was passed in. This prevents rounding errors from
6265 accumulating quickly with IntegralHeight.
6268 2008-02-08 Andreia Gaita <avidigal@novell.com>
6270 * Form.cs: Add a null check (darn it).
6272 2008-02-08 Jonathan Pobst <monkey@jpobst.com>
6274 * MdiClient.cs: Make sure the requesting form actually owns the
6275 control menu items before removing them. Also, use
6276 Suspend/ResumeLayout when adding or removing items so we only
6280 2008-02-08 Jonathan Pobst <monkey@jpobst.com>
6282 * Control.cs: Guard against an NRE in ShowFocusCues.
6285 2008-02-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6287 * Binding.cs: Implement 2.0 ReadValue method and ControlUpdateMode
6288 property, as well as stubbing DataSourceUpdateMode.
6290 2008-02-08 Andreia Gaita <avidigal@novell.com>
6292 * Form.cs: When closing forms, get focus back to the active control of the
6293 active form. [Fixes #341314, corner case]
6295 2008-02-07 Jonathan Pobst <monkey@jpobst.com>
6297 * MdiClient.cs: After we move the scrollbars, invalidate the NC
6298 area, so any old scrollbar artifacts are cleaned up.
6301 2008-02-07 Jonathan Pobst <monkey@jpobst.com>
6303 * MdiWindowManager.cs: If we are maximized and using MainMenuStrip
6304 for our menus, display that control box menu instead of the 1.1
6307 2008-02-07 Jonathan Pobst <monkey@jpobst.com>
6309 * MdiControlStrip.cs: Add property to access the mdi form tied to
6311 * MdiClient.cs: Be smarter about removing and adding toolstripitems
6312 to the implicitly merged menu. Every time we clicked the form, items
6313 were getting removed and the re-added, causing the form to jump around
6314 as the menu resized.
6316 2008-02-07 Jonathan Pobst <monkey@jpobst.com>
6318 * MdiClient.cs: Make sure the NormalBounds always gets set. It
6319 was being reset by the implicit menu merge for menustrips.
6322 2008-02-07 Jonathan Pobst <monkey@jpobst.com>
6324 * Form.cs: Don't do the previous change when WindowState = Normal,
6325 or it messes up where the window is placed. Fixes test failure.
6327 2008-02-07 Jonathan Pobst <monkey@jpobst.com>
6329 * Form.cs: When becoming visible, if we are an MDI child, call
6330 SetWindowState with a dummy old_state so that changes will actually
6332 [Fixes the 2nd part of bug #325473]
6334 2008-02-07 Andreia Gaita <avidigal@novell.com>
6336 * Control.cs: Reset properties to their pre parent-change values in case
6337 the new parent == null (in which case we're basically removing the control,
6338 and don't want any events fired due to fake property changes)
6341 2008-02-06 Ivan N. Zlatev <contact@i-nz.net>
6343 * PropertyGridView.cs:
6344 - Refactor SetValue to allow setting the value
6345 when a custom editor is used, but the entry is not editable.
6346 - Remove the custom editor control on CloseDropDown.
6349 2008-02-06 Andreia Gaita <avidigal@novell.com>
6351 * PrintControllerWithStatusDialog.cs: Set PrintFileName value through
6352 reflection only on 1.1, this property is public on system.drawing on 2.0.
6355 2008-02-06 Andreia Gaita <avidigal@novell.com>
6357 * WebBrowser.cs: Do a normal page refresh by default.
6359 2008-02-05 Andreia Gaita <avidigal@novell.com>
6361 * XplatUIWin32.cs, XplatUICarbon.cs: set the hwnd.Mapped flag when we create
6362 the window so that the check on Control.UpdateZOrderOfChild passes on non-X
6363 platforms. Fixes #359036
6365 Note: Control.UpdateZOrderOfChild needs to be rewritten to not rely on
6366 platform-specific flags.
6368 2008-02-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6370 * Binding.cs: Add 2.0 BindableComponent property - just return control
6373 2008-02-05 Everaldo Canuto <ecanuto@novell.com>
6375 * MenuAPI.cs: Check if control is disposable when track popup menu. Thanks
6376 Jonathan for this patch. Fixes #358442.
6378 2008-02-05 Jonathan Pobst <monkey@jpobst.com>
6380 * Form.cs: If we change the active MDI child form, let the others
6381 know they need to repaint their title bar so it will appear inactive.
6382 [Fixes part 1 of bug #325473]
6384 2008-02-05 Ivan N. Zlatev <contact@i-nz.net>
6386 * PropertyGridView.cs: Do not trucate custom editors' width
6387 and align them to the left.
6388 [Fixes #358353 and #358349]
6390 2008-02-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6392 * BindingsCollection.cs: Implement 2.0 CollectionChanging event.
6393 Also fix the arguments passed to CollectionChangeEventArgs in the
6396 2008-02-04 Geoff Norton <gnorton@novell.com>
6398 * Hwnd.cs: The conversion to Quartz coordinates happens in
6399 System.Drawing. Removing this translation from here.
6401 2008-02-04 Ivan N. Zlatev <contact@i-nz.net>
6403 * PropertyGrid.cs, PropertyGridView.cs, GridEntry.cs,
6404 CategoryGridEntry.cs, RootGridEntry.cs, GridItem.cs,
6405 GridItemCollection.cs:
6406 PropertyGrid rewrite part 2. Tons of bugfixes and new features.
6408 2008-02-04 Geoff Norton <gnorton@novell.com>
6410 * X11Keyboard.cs: VK_MENU should send a KEYUP instead of
6411 SYSKEYUP if any other key has been pressed in the mean time.
6414 2008-02-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6416 * ListView.cs: In ItemControl.ItemsMouseMove, only fire ItemDrag event
6417 when the item in current position is different than 0. Also, save the
6418 item index in the beginning of the operation, instead of getting the
6419 index of the item when the event is actually performed. Lastly clean
6420 the related fields in ItemsMouseUp if the ItemDrag operation wasn't
6424 2008-02-03 Jonathan Pobst <monkey@jpobst.com>
6426 * Form.cs: Alt-Minus for MDI children system menu should work
6427 with both the minus keys on the keyboard.
6430 2008-02-03 Jonathan Pobst <monkey@jpobst.com>
6432 * Control.cs: Don't invalidate on region change. The WM should
6433 take care of this automagically. Keeps us out of an infinite
6434 paint loop if someone changes the Region in the OnPaint.
6437 2008-02-04 Ivan N. Zlatev <contact@i-nz.net>
6439 * ImageIndexConverter.cs: ConvertFrom must handle "(none)".
6441 2008-02-03 Jonathan Pobst <monkey@jpobst.com>
6443 * DateTimePicker.cs: Apply patch from Srikanth Madikeri so we drop
6444 down the MonthCalendar only on F4, not Alt+F4.
6445 * MonthCalendar.cs: If we are a popup, close ourselves on Alt+F4.
6448 2008-02-03 Jonathan Pobst <monkey@jpobst.com>
6450 * ThemeWin32Classic.cs: For MonthCalendar, draw a dark border
6451 if its part of a DateTimePicker, else, use the back color.
6454 2008-02-03 Jonathan Pobst <monkey@jpobst.com>
6456 * Hwnd.cs: Use GraphicContext instead of the uninitialized bmp_g.
6459 2008-02-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6461 * CurrencyManager.cs: When we get a ListChanged event from our source,
6462 always fire our own ListChanged event, as .Net does.
6464 2008-02-03 Luke Page <luke.a.page@gmail.com>
6466 * RichTextBox.cs: AutoSize now defaults to false. Fixes Bug
6469 2008-02-03 Luke Page <luke.a.page@gmail.com>
6471 * TextBoxBase.cs, RichTextBox.cs, TextControl.cs: Sets richtext
6472 property. Removed if for richtext property that was always true.
6473 PgUp/PgDn at top/bottom fixed for RTB. Fixes bug #358237.
6475 2008-02-03 Luke Page <luke.a.page@gmail.com>
6477 * TextBoxBase.cs - commited patch from James Purcell that
6478 correctly sets the FixedHeight control style when the MultiLine
6479 property is changed on a TextBox control. Fixes bug 358229.
6481 2008-02-02 Luke Page <luke.a.page@gmail.com>
6483 * Line.cs, LineTag.cs, RichTextBox.cs, TextControl.cs
6484 Fixes bug 351938 - caret is positioned correctly when drawn
6485 and when calculating textual position of caret, no longer
6486 has a NRE in certain situations.
6488 2008-02-01 Geoff Norton <gnorton@novell.com>
6490 * Hwnd.cs: Ensure that windows moved into -'ve coordinate space
6491 get that region removed from the paint event.
6492 * XplatUICarbon.cs: Remove the window mapping after disposing of
6493 window. Prevents a crash with handle reuse. Optimize exposes
6494 only onto visible windows (rare; but possible).
6496 2008-02-01 Jonathan Pobst <monkey@jpobst.com>
6498 * UpDownBase.cs: Make sure the internal textbox calls the base's
6499 OnMouseDown and OnMouseUp so the textbox will function correctly.
6500 There were notes saying it doesn't chain up, but its an internal
6501 class, so our implementation may differ.
6504 2008-02-01 Jonathan Pobst <monkey@jpobst.com>
6506 * ListBox.cs: Fix a logic error and don't process MouseDown
6507 for mouse buttons other than Left.
6509 2008-02-01 Jonathan Pobst <monkey@jpobst.com>
6511 * Control.cs: Remove HeightInternal.
6512 * ListBox.cs: Commit patch from James Purcell that correctly
6513 calculates heights for ListBoxen.
6516 2008-02-01 Jonathan Pobst <monkey@jpobst.com>
6518 * Label.cs: Apply patch from James Purcell that corrects the
6519 signature of the AutoSize property.
6522 2008-02-01 Jonathan Pobst <monkey@jpobst.com>
6524 * ListBox.cs: Don't throw [Mouse]Click events for buttons
6525 other than the left mouse button.
6527 2008-01-31 Jonathan Pobst <monkey@jpobst.com>
6529 * Control.cs: Remove my awesome optimization as it caused some
6530 regressions with control ordering. :(
6533 2008-01-31 Ivan N. Zlatev <contact@i-nz.net>
6535 * PropertyGridView.cs: Fix a NRE on double click when there is no
6538 2008-01-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6540 * BindingManagerBase.cs: Implement IsBindingSuspended 2.0 property.
6542 2008-01-30 Jonathan Pobst <monkey@jpobst.com>
6544 * ListBox.cs: Call MouseClick and MouseDoubleClick.
6547 2008-01-29 Jonathan Pobst <monkey@jpobst.com>
6549 * Hwnd.cs: Make bmp, bmp_g variables threadstatic and private.
6550 * Control.cs, DataGridViewCell.cs, LineTag.cs: Use Hwnd.GraphicsContext
6551 instead of Hwnd.bmp_g.
6553 2008-01-29 Jonathan Pobst <monkey@jpobst.com>
6555 * TextRenderer.cs: Don't maintain private bitmap/graphics contexts.
6556 Use the Hwnd one instead.
6558 2008-01-29 Jonathan Pobst <monkey@jpobst.com>
6560 * Form.cs: Remove duplicated copy of GetAutoScaleSize.
6562 2008-01-29 Jonathan Pobst <monkey@jpobst.com>
6564 * Form.cs: corcompare for RestoreBounds.
6566 2008-01-29 Jonathan Pobst <monkey@jpobst.com>
6568 * Control.cs: Add MarshalAs attribute to Font getter for corcompare.
6570 2008-01-29 Jonathan Pobst <monkey@jpobst.com>
6572 * Form.cs: Handle Alt-Minus for MDI children forms.
6573 * MdiWindowManager.cs: Make ShowPopup internal so Form can call it.
6574 Add mnemonics to the control menu.
6577 2008-01-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6579 * Binding.cs: Initial implementation bits of FormattingEnabled
6580 property and BindingComplete event (2.0).
6581 * BindingCompleteEventArgs.cs: Internal methods for setting error text
6584 2008-01-28 Jonathan Pobst <monkey@jpobst.com>
6586 * TableLayoutPanel.cs: Draw the table border at 0,0 instead of
6587 table.Location. [Fixes bug #354672]
6589 2008-01-28 Jonathan Pobst <monkey@jpobst.com>
6591 * Form.cs: Handle WM_ENTERSIZEMOVE and WM_EXITSIZEMOVE to raise
6592 ResizeBegin and ResizeEnd. [Fixes bug #346529 for win32]
6594 2008-01-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6596 * ComboBox.cs: When OnDisplayMemberChanged method is reached, instead
6597 of doing all the re-bound work, just invalidate and call SetControlText
6598 to set the updated text of selected item to our textbox.
6601 2008-01-28 Andreia Gaita <avidigal@novell.com>
6603 * HtmlWindow.cs: Add event handler support. Add Document, Frames,
6604 IsClosed, Opener, StatusBarText, Url properties, stub out the remaining
6605 missing properties and methods. Add Load, Unload, Error, GotFocus,
6606 LostFocus, Resize, Scroll events (only load and unload are connected)
6608 2008-01-27 Gert Driesen <drieseng@users.sourceforge.net>
6610 * AccessibleObject.cs: Modified argument names to match MS.
6611 * Button.cs: Modified argument names to match MS.
6612 * BindingContext.cs: Modified argument names to match MS.
6613 * BindingMemberInfo.cs: Modified argument names to match MS.
6614 * ButtonBase.cs: Modified argument names to match MS.
6615 * ComboBox.cs: Modified argument names to match MS.
6616 * Control.cs: Modified argument names to match MS.
6617 * CheckedListBox.cs: Modified argument names to match MS.
6618 * CommonDialog.cs: Modified argument names to match MS.
6619 * DataGrid.cs: Modified argument names to match MS.
6620 * CursorConverter.cs: Modified argument names to match MS.
6621 * ControlPaint.cs: Modified argument names to match MS.
6622 * CheckBox.cs: Modified argument names to match MS.
6623 * ControlBindingsCollection.cs: Modified argument names to match MS.
6624 * BindingSource.cs: Modified argument names to match MS.
6625 * DataFormats.cs: Modified argument names to match MS.
6626 * ContainerControl.cs: Modified argument names to match MS.
6627 * CurrencyManager.cs: Modified argument names to match MS.
6628 * Application.cs: Modified argument names to match MS.
6629 * ContextMenuStrip.cs: Modified argument names to match MS.
6630 * ContextMenu.cs: Modified argument names to match MS.
6631 * BindingManagerBase.cs: Modified argument names to match MS.
6632 * WindowsFormsSection.cs: Fixed line ending.
6634 2008-01-27 Andreia Gaita <avidigal@novell.com>
6636 * PropertyGridView.cs: Rearrange the dropdown loop so that it exits when
6637 detecting that the dropdown toolwindow is hidden. EndLoop outside the
6640 2008-01-26 Gert Driesen <drieseng@users.sourceforge.net>
6642 * PropertiesTab.cs: Fixed argument name of GetDefaultProperty to match
6643 MS. Code formatting.
6645 2008-01-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6647 * Binding.cs: Don't avoid the Format event if the control
6648 property type is object. Also, if the value retrieved by
6649 the data source is null _and_ the control proeprty type
6650 is object, return Convert.DBNull (match .Net).
6651 Fixes part of #324286.
6653 2008-01-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6655 * ListControl.cs: Since we are getting two BinginContextChanged events
6656 for the same binding context instance (when the control is added to
6657 form, and when the form is actually shown), take it into account only the
6658 first time for a given binding context instance.
6659 Fixes part of #324286.
6661 2008-01-26 Ivan N. Zlatev <contact@i-nz.net>
6663 * PropertryGridView.cs: Ops.
6665 2008-01-26 Ivan N. Zlatev <contact@i-nz.net>
6667 * PropertyGridView.cs: Close dropdown form if the owner form is
6671 2008-01-25 Ivan N. Zlatev <contact@i-nz.net>
6673 * PropertyGrid.cs, PropertyGridView.cs, GridEntry.cs, GridItem.cs,
6674 RootGridEntry.cs, CategoryGridEntry.cs:
6675 PropertyGrid rewrite.
6676 - Rewrite all of the control logic in PropertyGrid.
6677 - Rewrite all of the ComponentModel logic in GridEntry.
6678 - Rewrite all UI work in PropertyGridView.
6679 - Many bugfixes, etc.
6681 2008-01-24 Jonathan Pobst <monkey@jpobst.com>
6683 * TableLayoutPanel.cs: Enhance GetPreferredSize to take into account
6684 when all contained controls are autosize or dock-fill. Also take into
6685 account when the total percentage of column/row sizes is not 100%.
6688 2008-01-24 Andreia Gaita <avidigal@novell.com>
6691 - Save a reference to the IDocument in the instance and
6692 use that one instead of going to WebHost.Document; the document that the
6693 WebHost returns might not be the right one (in case of frames).
6694 - Use the hashcode returned from the IDocument interface.
6695 - Implemented: ActiveElement, ActiveLinkColor, All, BackColor, Cookie,
6696 Domain (setter is not supported), Encoding, ForeColor, Forms, Images,
6697 LinkColor, Url, VisitedColor, Window
6700 - Implemented: CanHaveChildren, Children, Document, GetAttribute,
6701 set_Attribute, NextSibling, Parent, TagName, AppendChild,
6702 GetElementsByTagName, GetHashCode, HasAttribute, InsertAdjacentElement,
6703 SetAttribute, Equals, equality operators.
6704 - Added stubs for: AttachEventHandler, DetachEventHandler, Focus,
6705 InvokeMember, RaiseEvent, RemoveFocus, ScrollIntoView,
6707 * HtmlElementCollection.cs: Change implementation to use a generic
6708 collection. Implemented Enumerator and CopyTo
6710 * HtmlHistory.cs: Add constructor, no implementation yet.
6712 * HtmlWindow.cs: Initial implementation with: Name, Parent, Alert,
6713 Confirm, Prompt, Navigation, ScrollTo, Open, OpenNew, GetHashCode,
6714 Equals, equality operators.
6716 * HtmlWindowCollection.cs: Implemented.
6718 * WebBrowser.cs: Use the Navigation object to navigate (WebHost.Navigate
6719 has been deprecated).
6721 * WebBrowserBase.cs: Use Completed event to track document loading
6722 (Navigated has been deprecated)
6724 2008-01-24 Jonatham Pobst <monkey@jpobst.com>
6726 * ThemeWin32Classic.cs: Add tab stops and NoWrap to dropdown MenuItems. Top
6727 level MenuItems do not respect tabs.
6730 2008-01-23 Geoff Norton <gnorton@novell.com>
6732 * XplatUICarbon.cs: Ensure that windows are created in their initial
6733 FormWindowState. Finished fixing Fullscreen windows on Carbon
6735 2008-01-23 Everaldo Canuto <ecanuto@novell.com>
6737 * MenuAPI.cs: When FindForm fails uses FindRootParent to find the control to
6738 be used as grab_control. Also save status of capture before show ContextMenu
6739 and restore it after close.
6741 2008-01-23 Everaldo Canuto <ecanuto@novell.com>
6743 * Control.cs: Internal FindRootParent method added to return high control
6746 2008-01-23 Geoff Norton <gnorton@novell.com>
6748 * Hwnd.cs: Refactor Whole/Client pointer to 1 element for Cursors.
6749 * XplatUICarbon.cs: Refactor some dead code out to Cursor.cs and make
6750 it work again. Handle HITTEST events.
6752 2008-01-23 Geoff Norton <gnorton@novell.com>
6754 * XplatUICarbon.cs: Ensure that we always have a host window. Prevents
6755 a crash in certain cases. Support for fullscreen windows in certain cases.
6757 2008-01-23 Jonathan Pobst <monkey@jpobst.com>
6759 * Form.cs: Don't set AutoScaleMode in AutoScale if we don't have to.
6762 2008-01-23 Geoff Norton <gnorton@novell.com>
6764 * XplatUICarbon.cs: Remove some dead code that was causing warnings.
6766 2008-01-23 Geoff Norton <gnorton@novell.com>
6768 * XplatUICarbon.cs: Re-enabled Carets in QuickDraw as a overlay window.
6770 2008-01-23 Everaldo Canuto <ecanuto@novell.com>
6772 * SplitContainer.cs: Remove unused declarations.
6773 * Binding.cs: Remove unused declarations.
6775 2008-01-23 Everaldo Canuto <ecanuto@novell.com>
6777 * Form.cs: Remove unused declaration of 'active' in Activate method.
6778 * Control.cs: Move declaration of nested_layout inside '#if NET_2_0" to
6779 prevent compilation warnings.
6780 * TextControl.cs: Remove unused declaration of selection_pos_on_line.
6781 * Hwnd.cs: Remove unused declaration of clip in GetClippingRectangles.
6782 * Bindings.cs: Remove unused formatting_enabled declaration.
6783 * ToolTip.cs: Put some methods inside '#if NET_2_0" to prevent compilation
6785 * TreeView.cs: Put some methods inside '#if NET_2_0" to prevent compilation
6787 * PropertyGridView.cs: Remove usused 'ex' declaration.
6788 * DataGridView.cs: Remove unused declarations.
6790 2008-01-23 Everaldo Canuto <ecanuto@novell.com>
6792 [Fixes bugs #343966, #338511 and other non reported (context)menu bugs]
6794 * Form.cs: Remove all active_tracker (used by menu) stuff, it is now moved
6795 to Control class, it makes possible to grab menu to controls that can't
6796 reach Form using parent tree. Handle for WmButtonUp, WmButtonDown and
6797 WmMouseMove removed since it was used only to track menu events.
6800 - Moved all active_tracker stuff from Form.
6801 - ProcessActiveTracker added to prevent code duplicity, now mouse events
6802 can call this method instead of reimplement all necessary code handle for
6804 - Call to ProcessActiveTracker for mouse events (WmButtonUp, WmButtonDown
6808 - Remove special handle to ToolStripOverflow, now we can grab menu to
6809 controls that can't reach Form using parent tree.
6810 - Change type of grab_control from Form to Control.
6812 2008-01-22 Geoff Norton <gnorton@novell.com>
6814 * TextBoxBase.cs: Split up the sizing of controls and placing of
6815 controls. Fixes a bug where scrollbars in Reflector could be sized
6816 wrong and have non-working thumbers.
6818 2008-01-23 Geoff Norton <gnorton@novell.com>
6820 * XplatUI.cs: Refactor environment variables to default support to the
6821 Carbon driver on the Mac.
6823 2008-01-23 Everaldo Canuto <ecanuto@novell.com>
6825 * Label.cs: Uses new LabelPainter for drawing operations.
6826 * ThemeWin32Classic.cs: DrawLabel and LabelDefaultSize removed.
6827 * Theme.cs: DrawLabel and LabelDefaultSize removed.
6829 2008-01-22 Geoff Norton <gnorton@novell.com>
6831 * XplatUICarbon.cs: Enable packing scroll delta into the mouse wParam
6833 2008-01-22 Jonathan Pobst <monkey@jpobst.com>
6835 * ThemeWin32Classic.cs: Run Flat, Button appearance, 2.0 CheckBoxes
6836 through the normal flat button code and don't draw the checkbox glyph.
6837 * Theme.cs: Button->ButtonBase signature change.
6840 2008-01-22 Everaldo Canuto <ecanuto@novell.com>
6842 * LinkLabel.cs: Uses new class LinkLabelPainter.
6844 2008-01-22 Everaldo Canuto <ecanuto@novell.com>
6846 * MessageBox.cs: Adjust right border space, we don't need to add
6847 "space_border*2" two times.
6849 2008-01-22 Jonathan Pobst <monkey@jpobst.com>
6851 * ScrollableControl.cs: With the advent of 2.0's Padding, DockPadding
6852 becomes a wrapper around Padding.
6853 [Fixes a part of bug #354676]
6855 2008-01-22 Geoff Norton <gnorton@novell.com>
6857 * Mime.cs: Avoid a needles exception on OSX if we dont have a buffer
6858 acquired. Also ensure the buffer is large enough to grab the header
6859 we need on linux boxes.
6861 2008-01-22 Jonathan Pobst <monkey@jpobst.com>
6863 * Control.cs: Implement a custom enumerator so people can delete
6864 from the Controls collection while in a foreach.
6867 2008-01-22 Ivan N. Zlatev <contact@i-nz.net>
6869 * PropertyGridView.cs: Fix focusing behavior:
6870 - Tab should focus the grid text box.
6871 - Clicking on the labels shouldn't focus the grid text box.
6873 2008-01-22 Ivan N. Zlatev <contact@i-nz.net>
6875 * PropertyGridView.cs: IsValueTypeGridItem should return true
6878 2008-01-22 Ivan N. Zlatev <contact@i-nz.net>
6880 * PropertyGrid.cs, GridEntry.cs, PropertyGridView.cs:
6881 - Renamed GridEntry.SelectedObjects to TargetObjects to better
6882 reflect the property name role.
6883 - PropertyGrid.GetTarget is not required as the target is known
6885 - Setting values will handle value types as a special case now and
6886 populate them up in the chain.
6889 2008-01-21 Jonathan Pobst <monkey@jpobst.com>
6891 * Hwnd.cs: Create a public property for the Graphics we keep around.
6893 2008-01-21 Ivan N. Zlatev <contact@i-nz.net>
6895 * PropertyGridView.cs: Just hide the grid textbox and do nothing more
6896 when the current object selection changes.
6897 Fixes failing test SelectedObject_Null2.B5.
6899 2008-01-21 Ivan N. Zlatev <contact@i-nz.net>
6901 * PropertyGrid.cs: Process Browsable properties with
6902 DesignerSerializationVisibilityAttribute.Content as being expandable.
6903 This seems also what MS does. Without this e.g SplitContainer.Panel1/2
6904 will not be expandable. We should be nested components-friendly now.
6906 2008-01-21 Andreia Gaita <avidigal@novell.com>
6908 * WebBrowserBase.cs: Check if control was loaded properly,
6909 don't bind if it wasn't.
6911 * HtmlDocument.cs: Implement CreateElement, Equals, Focus,
6912 GetElementFromPoint, equality operators, OpenNew, Write.
6913 Remove extra set_Body
6915 2008-01-18 Jonathan Pobst <monkey@jpobst.com>
6917 * ContainerControl.cs, Control.cs: Apply patch from James Purcell
6918 that makes our AutoScale* stuff more tolerant to different orders
6919 of being set. [Fixes bug #354669]
6921 2008-01-18 Ivan N. Zlatev <contact@i-nz.net>
6923 * PropertyGridView.cs, PropertyGridTextBox.cs:
6924 Drop WM_LBUTTONDOWN msg sending and use focusing instead.
6925 [Fixes #339005 and #348209]
6927 2008-01-18 Ivan N. Zlatev <contact@i-nz.net>
6929 * PropertyGridView.cs: Hide the grid text box before adjusting it
6930 for the newly selected GridItem.
6933 2008-01-18 Jonathan Pobst <monkey@jpobst.com>
6935 * Form.cs: Give MDI children the opportunity to cancel the parent form
6936 attempting to close. Ensure that all [Form]Clos[ing,ed] events get called
6937 properly for both the parent and child.
6938 * Application.cs: Signature of internal method changed, pass the previous
6942 2008-01-17 Ivan N. Zlatev <contact@i-nz.net>
6944 * PropertyGridView.cs: Set the property value only if it has changed.
6947 2008-01-17 Jonathan Pobst <monkey@jpobst.com>
6949 * MenuAPI.cs: Windows sends us MOUSEMOVE messages when any key is pressed.
6950 If the mouse hasn't actually moved, ignore these messages so the currently
6951 highlighted menuitem isn't reset to the one under the mouse.
6954 2008-01-17 Ivan N. Zlatev <contact@i-nz.net>
6956 * PropertyGridView.cs: When the property changes Invalidate the GridItem
6957 in order for the properties with UITypeEditor.GetPaintValueSupported == true
6958 to reflect the change visually.
6961 2008-01-17 Jonathan Pobst <monkey@jpobst.com>
6963 * ButtonBase.cs: Add LineLimit to 1.1 button drawing, and TextBoxControl
6964 to 2.0 button drawing.
6965 * ThemeWin32Classic.cs: Ensure that the rectangle we are using to draw
6966 the button text is tall enough for one line. LineLimit says it will
6967 always draw at least one line, but it is a lie.
6970 2008-01-17 Atsushi Enomoto <atsushi@ximian.com>
6972 * XplatUIStructs.cs, X11Keyboard.cs :
6973 added some more VK_* keys to be handled.
6975 2008-01-16 Andreia Gaita <avidigal@novell.com>
6977 * Control.cs: Check if there is a container before setting or getting
6978 the validation flag.
6980 2008-01-16 Andreia Gaita <avidigal@novell.com>
6982 * ContainerControl.cs: Add flag to track if a control cancels validation,
6983 so we don't fire click events.
6986 - (HandleClick) Check if validation was cancelled before firing the click
6987 events (doubleclicks are fired, but not clicks)
6988 - (WmLButtonDown) Reset validation flag. The flag is normally reset on
6989 ContainerControl.set_ActiveControl, but in the case of non-selectable
6990 controls, like a Label, activecontrol is not set.
6992 * ButtonBase.cs: Only fire clicks if validation passes.
6996 2008-01-16 Geoff Norton <gnorton@novell.com>
6998 * XplatUICarbon.cs: Implement GetAutoScaleSize to fix Reflector on
7001 2008-01-16 Jonathan Pobst <monkey@jpobst.com>
7003 * FolderBrowserDialog.cs: If we cannot interpret the user's requested
7004 SelectedPath, just display the default dialog instead of crashing.
7007 2008-01-16 Geoff Norton <gnorton@novell.com>
7009 * XplatUICarbon.cs: Flicker be gone! Generate our messages in
7010 AddExpose instead of trusting apples compositing manager which doesn't
7011 work for our use case. Remove some dead code causing warnings and
7012 redecorate some other code to prevent warnings.
7014 2008-01-16 Geoff Norton <gnorton@novell.com>
7016 * XplatUICarbon.cs: Avoid some unecessary invalidation calls when
7017 carbon signals us to redraw. Fixes another portion of the flickering bug
7019 2008-01-16 Everaldo Canuto <ecanuto@novell.com>
7021 * Form.cs: Prevent the MdiParent property to be set when value is the same
7022 as value already set. Fixes bug #328019.
7024 2008-01-16 Everaldo Canuto <ecanuto@novell.com>
7026 * Form.cs: Don't set mdi_parent as null when mdi window close is prevented,
7027 it prevents NRE when closing mdi child windows. Fixes bug #325211.
7029 2008-01-16 Everaldo Canuto <ecanuto@novell.com>
7031 * InternalWindowManager.cs: Invalidade close button after mouse up when
7032 mdi form is prevented to close.
7034 2008-01-16 Everaldo Canuto <ecanuto@novell.com>
7036 * MdiClient.cs: Fix the minimum bounds on child window sizes when cascade,
7037 thanks to Andy Hume. Fixes bug #325433.
7039 2008-01-16 Andreia Gaita <avidigal@novell.com>
7041 * LinkLabel.cs: Reset focused_index when resellecting the control.
7044 2008-01-15 Geoff Norton <gnorton@novell.com>
7046 * XplatUICarbon.cs: Rework Grab/Ungrab handling to send some needed
7049 2008-01-15 Jonathan Pobst <monkey@jpobst.com>
7051 * Form.cs: Change 2 more AutoScaleBaseSize calculation to round instead
7054 2008-01-15 Jonathan Pobst <monkey@jpobst.com>
7056 * ContainerControl.cs: Setting AutoScaleMode to anything should set
7057 Form.AutoScale to false.
7058 * Form.cs: Setting AutoScale to true should set AutoScaleMode to None.
7059 AutoScaleBaseSize should be changed on Font change unless it has been
7063 2008-01-15 Everaldo Canuto <ecanuto@novell.com>
7065 * MenuAPI.cs: On instance of MenuTracker check if source control is
7066 ToolStripOverflow and use properly method to find form.
7069 2008-01-15 Everaldo Canuto <ecanuto@novell.com>
7071 [Fixes bug #323241 Transparent toolbar support]
7073 * ToolBar.cs: Define ToolBarStyles.TBSTYLE_FLAT in CreateParams when toolbar
7076 * Control.cs: Paint background as transparent in case of TBSTYLE_FLAT is
7077 defined in control style to mimic win32 behavior.
7079 * ThemeWin32Classic.cs: Don't paint background for flat apparence toolbar,
7080 it will be transparent.
7082 2008-01-14 Everaldo Canuto <ecanuto@novell.com>
7084 * XplatUIStructs.cs: Implement ToolBarStyles to use in Style property of
7085 CreateParams for ToolBar controls.
7087 2008-01-14 Jonathan Pobst <monkey@jpobst.com>
7089 * Form.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs: Forms with
7090 FixedToolWindow, SizeableToolWindow, or None for border styles have
7091 different minimum sizes than regular forms. Implemented to fix
7092 regression in PDN with toolbox being too wide.
7094 2008-01-14 Andreia Gaita <avidigal@novell.com>
7096 * HtmlElementCollection.cs: Implemented
7098 * HtmlElement.cs: Implemented:
7106 * HtmlDocument.cs: Implemented GetElementsByTagName.
7108 2008-01-14 Jonathan Pobst <monkey@jpobst.com>
7110 * Screen.cs: Stub BitsPerPixel to always return 32.
7112 2008-01-14 Jonathan Pobst <monkey@jpobst.com>
7114 * Form.cs: Implement RestoreBounds.
7116 2008-01-14 Jonathan Pobst <monkey@jpobst.com>
7118 * RichTextBox.cs, ToolStrip.cs: Fix some typos pointed out by
7119 Sebastien and his fabulous magical problem-finding machine:
7120 Gendarme. Also put a MonoTodo on AutoWordSelect since we don't
7121 respect the value set.
7123 2008-01-14 Everaldo Canuto <ecanuto@novell.com>
7125 * Form.cs: In WmWindowPosChanged call base.WndProc including when state is
7126 minimized. Fixes bug #325122 for Win32. Thanks Srikanth Madikeri.
7128 2008-01-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7130 * X11Dnd.cs: Since we don't propagate the WM_LBUTTONUP/WM_RBUTTONUP
7131 messages (to match .Net), we need to remove the capture ourselves.
7133 2008-01-11 Jonathan Pobst <monkey@jpobst.com>
7135 * MenuAPI.cs: If we get an Alt-F4, release our capture so Windows
7136 will process the message and close our window.
7139 2008-01-10 Geoff Norton <gnorton@novell.com>
7141 * XplatUICarbon.cs: Clip the Graphics context to the invalid area
7142 tracked in the Hwnd. Only invalidate the dirty region to the Carbon
7145 2008-01-10 Jonathan Pobst <monkey@jpobst.com>
7147 * Form.cs: Enforce the Form minimum size in SetBoundsCore. Fixed
7150 2008-01-10 Jonathan Pobst <monkey@jpobst.com>
7152 * XplatUIX11.cs: Set a minimum window size and enforce it. Even though
7153 Linux doesn't care, having a minimum matches MS and keeps the window
7154 from becoming too small to use window decorations.
7157 2008-01-10 Jonathan Pobst <monkey@jpobst.com>
7159 * ThemeWin32Classic.cs: Tie CheckBox/RadioButton focus rectangles to
7160 ShowFocusCues. Make focus rectangles fit the text instead of the whole
7161 control. [Fixes bug #325419]
7163 2008-01-10 Jonathan Pobst <monkey@jpobst.com>
7165 * ComboBox.cs: Guard against an NRE if the user open a new form from a
7166 SelectedIndexChanged event. This closes the combobox dropdown, and we
7167 were trying to dispose it. [Fixes bug #352830]
7169 2008-01-09 Jonathan Pobst <monkey@jpobst.com>
7171 * Control.cs, Form.cs: Implement the necessary semantics for
7172 ShowFocusCues. All paint code will need to check Control.ShowFocusCues
7173 to determine if a focus rectangle should be drawn.
7174 * PropertyGrid.cs: Fix property visibility to match override.
7175 * ThemeWin32Classic.cs: Use ShowFocusCues for Button.
7177 2008-01-09 Jonathan Pobst <monkey@jpobst.com>
7179 * Application.cs: Use GetCommandLineArgs to calculate ExecutablePath.
7182 2008-01-09 Geoff Norton <gnorton@novell.com>
7184 * XplatUICarbon.cs: Scroll windows in the correct direction.
7186 2008-01-09 Geoff Norton <gnorton@novell.com>
7188 * XplatUICarbon.cs: Track all created utility windows so we can hide them
7189 when the app is deactivated or spaces is enabled.
7191 2008-01-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7193 * ListViewItem.cs: Cosmetic fix - When calculating layout for item, don't add an
7194 extra separation pixel for the label rect origin if SmallImageList is
7195 null, and thus we don't need that separation between icon and label
7197 Patch by Ernesto Carrea.
7200 2008-01-08 Jonathan Pobst <monkey@jpobst.com>
7202 * StatusStrip.cs: Invalidate after completing a layout. The base
7203 OnLayout does this, but we don't call the base.
7204 * ToolStripItem.cs: Revert the previous change to invalidate after
7206 [Fixes bug #351341 better.]
7208 2008-01-07 Geoff Norton <gnorton@novell.com>
7210 * XplatUICarbon.cs: WM_DESTROY is a teardown of a single window
7211 not a notification to exit the application. Listen for WM_QUIT
7214 2008-01-07 Andreia Gaita <avidigal@novell.com>
7216 * HtmlDocument.cs: Fix case on GetElementById (interface changed)
7218 2008-01-07 Jonathan Pobst <monkey@jpobst.com>
7220 * ToolStripItem.cs: If the bounds of an item changes, invalidate it
7221 so it can repaint at the correct location.
7224 2008-01-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7226 * ListControl.cs: SelectedValue should return a null value if
7227 SelectedIndex is -1. Also, when setting it, it should throw an
7228 ArgumentNullException if the value is null, as well as taking
7229 into account the String.Empty value, instead of ignoring it (we have
7230 tests for that now).
7231 Fixes part of #324286.
7233 2008-01-06 Jonathan Pobst <monkey@jpobst.com>
7235 * TextBoxBase.cs, TextControl.cs: Patch from Luke Page to ensure
7236 SelectionStart is updated after pressing enter. Fixes bug #351918.
7238 2008-01-05 Jonathan Pobst <monkey@jpobst.com>
7240 * TextControl.cs: Revert a piece r92316 that prevented the fix
7241 from working when there were multiple tags in the text box.
7244 2008-01-05 Jonathan Pobst <monkey@jpobst.com>
7246 * TextControl.cs: Apply patch from Luke Page that prevents an
7247 NRE when determining the beginning of a paragraph.
7250 2008-01-05 Jonathan Pobst <monkey@jpobst.com>
7252 * TextBoxBase.cs: Apply patch from Luke Page that ensures the
7253 caret gets moved with clicking away from a selected block of
7254 text. Fixes bug #351885.
7256 2008-01-05 Jonathan Pobst <monkey@jpobst.com>
7258 * TextControl.cs: Apply patch from Luke Page that takes line
7259 alignment into account for mouse selection, so that center and
7260 right aligned text can be selected.
7263 2008-01-05 Jonathan Pobst <monkey@jpobst.com>
7265 * RichTextBox.cs: Apply patch from Luke Page that fixes some caret
7266 issues after loading an RTF file by using the correct line feeds.
7269 2008-01-05 Jonathan Pobst <monkey@jpobst.com>
7271 * TextControl.cs: When deleting multiple line selections, we need
7272 to invalidate every line beginning at the first line of the selection.
7273 Patch from Luke Page fixes bug #351791.
7275 2008-01-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7277 * ListControl.cs: When getting a CurrencyManager.PositionChanged
7278 event, don't set SelectedIndex if the number of items is 1. This is
7279 because, for the first item, PositionChanged is fired _before_
7280 ItemChanged (the place where we actually populate the items), and
7281 leave us in a temporary invalid state (since items collection is
7285 2008-01-04 Geoff Norton <gnorton@novell.com>
7287 * XplatUICarbon.cs: Create native toolwindows instead of
7288 the managed drawing ones.
7290 2008-01-03 Jonathan Pobst <monkey@jpobst.com>
7292 * LineTag.cs: If the line doesn't have any characters, return
7293 0 for GetCharIndex. Fixes an AOORE exception after certain
7294 caret movements. Fixes bug #351683. Patch by Luke Page.
7296 2008-01-03 Jonathan Pobst <monkey@jpobst.com>
7298 * TextBoxBase.cs: Apply patch from Luke Page so when backspace
7299 is hit when there is selected text, only the selected text gets
7300 deleted, not the character in front of the selection as well.
7303 2008-01-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7305 * ComboBox.cs: When the values are displayed, calculate the
7306 ComboListBox scrollbar's LargeChange based on the visible area's
7307 height and the actuall ItemHeight, instead of calculating it
7308 based on MaxDropItems value, since it's not used by our _current_
7312 2008-01-03 Jonathan Pobst <monkey@jpobst.com>
7314 * Line.cs, LineTag.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs:
7315 Patch from Luke Page that fixes issues with font colors and styles
7316 not showing up in a readonly RichTextBox. Fixes bug #324354.
7318 2008-01-03 Jonathan Pobst <monkey@jpobst.com>
7320 * Line.cs, RichTextBox.cs, TextControl.cs: Another awesome patch
7321 from Luke Page. This one fixes bug #349926.
7323 2007-12-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7325 * CurrencyManager.cs: Actually fire the 2.0 ListChanged event when
7326 an item in the IBindingList source changes with
7327 ListChangedType.ItemAdded. Ignore for now firing the event for other
7328 changes, since we want to have tests for those cases as well.
7330 2007-12-28 Jonathan Pobst <monkey@jpobst.com>
7332 * TextBoxBase.cs: Don't store a 1x1 Bitmap for every TextBox
7335 2007-12-28 Jonathan Pobst <monkey@jpobst.com>
7337 * TextBoxTextRenderer.cs: Implement a cache for measuring each
7338 character. This is effective because the typical usage of a
7339 TextBox is with a limited amount of fonts and characters, and
7340 the current implementation of TextBox measures everything one
7341 character at a time. Another second or two speedup for bug #347238.
7343 2007-12-28 Jonathan Pobst <monkey@jpobst.com>
7345 * Control.cs: Rewrite the Font getter to only query the parent's
7346 Font property once instead of twice. Since this operation is
7347 recursive, the queries were growing exponentially as the control
7348 tree got deeper. Another second or two speedup for bug #347238.
7350 2007-12-28 Jonathan Pobst <monkey@jpobst.com>
7352 * Control.cs: Avoid setting a parent (and more importantly, updating
7353 the zorder of all its children) if the parent is already correct in
7354 WmShowWindow. Decreases the startup time of the test case on bug
7355 #347238 from 35 seconds to 11 seconds.
7357 2007-12-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7359 * X11Dnd.cs: When the dnd operation has started and we are
7360 in the dnd loop, don't dispatch either WM_LBUTTONUP nor WM_RBUTTONUP.
7361 This is done to match .Net, which doesn't send those messages after
7362 dnd operation was completed/cancelled.
7365 2007-12-27 Jonathan Pobst <monkey@jpobst.com>
7367 * ToolStrip.cs: Previous change should be != null, not == null.
7370 2007-12-27 Jonathan Pobst <monkey@jpobst.com>
7372 * ToolStrip.cs: Guard against an NRE after ItemClicked is called, the
7373 user may have moved the mouse off the current item during the event.
7375 2007-12-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7377 * ListView.cs: In ItemControl.ItemsMouseMove, try to avoid
7378 calling GetItemAt for every MouseMove event by also taking into
7379 account whether any mouse button is pressed (probably dragging);
7380 if so, we can call GetItemAt, and if not, try to not call it
7381 (GetItemAt can be quite expensive when used with a large number of items).
7383 2007-12-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7385 * ListView.cs: Implement -finally- support for dnd, by calling
7386 OnItemDrag as needed. Also, remove the dnd TODO, and add myself to the
7388 * ListViewInsertionMark.cs: Implement NearestIndex method, by doing a
7389 simple calculation of distances for all the items in the owner
7392 2007-12-21 Geoff Norton <gnorton@novell.com>
7394 * XplatUICarbon.cs: Ensure that we create WindowMapping handles
7395 for windows that are originally created as invisible. Fixes missing
7396 main window in paint-mono.
7398 2007-12-21 Geoff Norton <gnorton@novell.com>
7400 * XplatUICarbon.cs: Register our D&D handler. Register our custom
7401 subclass handler for com.novell.mwfview subclassing HIView. Implement
7402 Pasteboard and Dnd methods.
7404 2007-12-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7406 * ListBox.cs: When we got focus, give focus to first item if there
7407 wasn't any pervious focused item. Also update navigation to depend on
7408 SelectedIndex rather than FocusedItem, just as .Net does.
7411 2007-12-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7413 * ListBox.cs: Both FindString and FindStringExact methods must do an
7414 case insensitive search, should allow the last valid index to be
7415 passed in the overload taking an initial index, and should also
7416 continue searching from the top back to the specified index when it
7419 2007-12-19 Jonathan Pobst <monkey@jpobst.com>
7421 * TextControl.cs: Apply patch from Luke Page that fixes a scrolling
7422 redraw issue, and allows RichTextBox to draw colored text even while
7423 disabled or readonly.
7425 2007-12-19 Jonathan Pobst <monkey@jpobst.com>
7427 * RichTextBox.cs, TextBoxBase.cs: Apply patch from Luke Page that
7428 disallows cut/paste in a readonly textbox, adds support for Shift-Insert,
7429 and doesn't grey text in a disabled RichTextBox.
7431 2007-12-19 Jonathan Pobst <monkey@jpobst.com>
7433 * RichTextBox.cs: Apply patch from Luke Page that adds better support
7434 for many RTF commands: quad alignment, separate formatting for blocks
7435 inside groups, and ParDef support. Makes the test case from bug #324589
7438 2007-12-19 Jonathan Pobst <monkey@jpobst.com>
7440 * LineTag.cs: Fix an error in the new Draw method that caused
7441 a crash when rendering the document on bug #324589.
7443 2007-12-19 Jonathan Pobst <monkey@jpobst.com>
7445 * Line.cs, LineTag.cs, RichTextBox.cs, TextBoxBase.cs,
7446 TextControl.cs: Apply patch from Luke Page that adds support
7447 for URL links in RichTextBox.
7448 [Fixes enhancement #342516]
7450 2007-12-18 Everaldo Canuto <ecanuto@novell.com>
7452 * MenuItem.cs: When cloning menuitem clone also name and tag properties for
7453 2.0 profile. Thanks Ernesto Carrea and Luke Page. Fixes bug #340289.
7455 2007-12-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7457 * ListBox.cs: When a key gets pressed, try to find a string
7458 if the key is a character or a digit.
7461 2007-12-17 Jonathan Pobst <monkey@jpobst.com>
7463 * TableLayoutPanel.cs: Remove some unused variables.
7465 2007-12-17 Jonathan Pobst <monkey@jpobst.com>
7467 * DateTimePicker.cs: Commit patch from Luke Page that ensures
7468 we don't end up at an invalid date when we click the up/down
7469 spinner to change the month or year. Fixes bug #348682.
7471 2007-12-17 Jonathan Pobst <monkey@jpobst.com>
7473 * Application.cs: Calling Exit in 2.0 should chain to the
7474 Exit (CancelEventArgs) version so it can be cancelled.
7475 * Form.cs: Create a flag to allow raising the Closing
7476 events to be skipped. We raise them once in Application.Exit
7477 and don't want to raise them again when the Form is actually
7478 closed. [Fixes bug #349073]
7480 2007-12-16 Jonathan Pobst <monkey@jpobst.com>
7482 * ToolStripDropDown.cs: Guard against an NRE when there
7483 hasn't been a mainform set in the application context.
7486 2007-12-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7488 * ListBox.cs: When SetBoundsCore gets called, besides
7489 calling UpdateScrollBars, update the value of
7490 last_visible_index, since we could need to show more items
7491 than before, and we need to let the paint routines know that.
7494 2007-12-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7496 * ListView.cs: Add DesignerSerializationVisibility attribute to
7497 InsertionMark property.
7498 * ListViewItem.cs: Add same attribute to Position property.
7500 2007-12-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7502 * ListViewItem.cs: .ctor (SerializationInfo, StreamingContext)
7505 2007-12-14 Jonathan Pobst <monkey@jpobst.com>
7507 * ThemeWin32Classic.cs: Don't draw the background on a
7508 flat button if there is a background image.
7511 2007-12-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7513 * ListBox.cs: If we remove the item currently selected,
7514 remove it not only from SelectedItems, but also
7515 resetting selected_index. Moreover, set focused_item to Items.Count - 1 if
7516 the items count decreased and focused_item has bigger value than that.
7518 2007-12-13 Jonathan Pobst <monkey@jpobst.com>
7520 * Control.cs: Perform our layout after we resize ourselves
7521 if we had to adjust our AutoSize. Missed commit for bug
7524 2007-12-13 Jonathan Pobst <monkey@jpobst.com>
7526 * TableLayoutPanel.cs: Override GetPreferredSizeCore so
7527 we can provide an implementation of AutoSize.
7530 2007-12-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7532 * ListBox.cs: Add the internal overload Sort (bool paint),
7533 to indicate whether we actually need a paint or we will
7534 call Refresh ourselves. This way we don't request a paint
7535 _before_ having an updated and valid layout.
7538 2007-12-12 Andreia Gaita <avidigal@novell.com>
7540 * XPlatUIX11.cs: Send paint messages when updating a systray icon
7541 * NotifyIcon.cs: Invalidate the window before doing a systray change so it is
7542 properly invalidated.
7545 2007-12-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7547 * ListViewItem.cs: When using a .ctor taking a ListViewGroup,
7548 don't simply assign it to our internal group field, but instead
7549 use our Group property, which should do all the neccessary work
7550 required to support groups. Fixes an issue reported to me (mail) by a
7551 guy using this new feature.
7553 2007-12-11 Jonathan Pobst <monkey@jpobst.com>
7555 * Control.cs: Use Scale instead of ScaleControl to ensure the
7556 whole hierarchy gets scaled.
7559 2007-12-10 Jonathan Pobst <monkey@jpobst.com>
7561 * DateTimePicker.cs: Don't set the internal MonthCalendar's
7562 Parent property. Doing this causes the control to be hosted by
7563 the Form instead of being a popup window.
7566 2007-12-10 Jonathan Pobst <monkey@jpobst.com>
7568 * ToolStripItemCollection.cs: If we try to insert a ToolStripItem
7569 at an index higher than Count, just use Add instead of Insert.
7572 2007-12-10 Jonathan Pobst <monkey@jpobst.com>
7574 * ThemeWin32Classic.cs: Don't draw a PictureBox's background in
7575 DrawPictureBox, this is handled by Control.PaintBackground.
7578 2007-12-10 Everaldo Canuto <ecanuto@novell.com>
7580 * MenuAPI.cs: When process menu keys return true by default only if menu is
7581 active. Fixes bug #342892.
7583 2007-12-09 Andreia Gaita <avidigal@novell.com>
7585 * Control.cs: check if windows are actually mapped before
7586 trying to zorder. Fixes #342509, #346955
7588 2007-12-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7591 * ListViewInsertionMark.cs:
7592 * ThemeWin32Classic.cs: Implement the drawing side of the
7593 new 2.0 ListView.InsertionMark property.
7595 2007-12-07 Jonathan Pobst <monkey@jpobst.com>
7597 * CurrencyManager.cs: Silence some debug spew.
7599 2007-12-07 Geoff Norton <gnorton@novell.com>
7601 * Hwnd.cs: Refactor GetClippingRectangles to suppose returning the
7602 masks for our children as well as siblings to avoid having to query
7603 Quartz for this information.
7604 * XplatUICarbon.cs: Implement a delegate based system to pass
7605 information to System.Drawing. Implement Async methods. Remove
7606 the hack for the resize thumb and imlpement a transparent Grow Box.
7607 Rework the messaging system to proplery create window's and messages,
7610 2007-12-06 Andreia Gaita <avidigal@novell.com>
7612 * X11Keyboard.cs: Use Xutf8LookupString to support international
7613 characters under alternate codepages. Patch from #340878
7615 2007-12-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7617 * ListView.cs: When doing layout computations, set position in the
7618 ListView instances (we cache the position just as .Net does).
7619 * ListViewItem.cs: New internal setter method for Position. Also set
7620 position field as also available in 1.1, since we are going to use it
7621 now in the common case.
7623 2007-12-06 Andreia Gaita <avidigal@novell.com>
7625 * Control.cs: When removing controls, get the actual container
7626 to notify about active control changes. Fixes 341314.
7628 2007-12-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7630 * ListViewItem.cs: Forgot to add Font to our serialization stuff.
7632 2007-12-05 Andreia Gaita <avidigal@novell.com>
7634 * Control.cs: When updating the zorder, ignore windows that are not
7635 mapped. Fixes #342509
7637 2007-12-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7639 * ListViewItem.cs: Actually implement serialization on this class.
7641 2007-12-05 Gert Driesen <drieseng@users.sourceforge.net>
7643 * LinkLabel.cs: Fixed paramname of ArgumentNullException in ctor of
7644 LinkCollection. Spaces to tabs, and removed extra tabs.
7646 2007-12-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
7648 * XplatUIX11.cs: Make toolwindows' decorations show up without causing any
7649 tests to fail (hopefully).
7651 2007-12-03 Jonathan Pobst <monkey@jpobst.com>
7653 * ToolStripDropDownMenu.cs: Fill in AffectedBounds when drawing
7654 the image margin so custom renderers can correctly place it.
7656 2007-12-03 Jonathan Pobst <monkey@jpobst.com>
7658 * StatusStrip.cs: Fill in AffectedBounds when drawing the grip
7659 so custom renderers can correctly place it.
7661 2007-12-03 Jonathan Pobst <monkey@jpobst.com>
7663 * Application.cs: Let WM_CHAR messages flow through to controls
7664 hosted in Strips. [Fixes bug #343972]
7666 2007-12-02 Jonathan Pobst <monkey@jpobst.com>
7668 * ToolStripManager.cs: Guard against an NRE I ran into.
7670 2007-12-02 Jonathan Pobst <monkey@jpobst.com>
7672 * LinkLabel.cs: Apply patch from George to fix bug 344012. If
7673 a Link is manually added to the Links collection, we need to set
7674 its owner, so it can invalidate properly.
7677 2007-11-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7679 * ListView.cs: When changing ListViewItem.Position (which calls
7680 ListView.ChangeItemLocation), invalidate not only the area
7681 corresponding to the main item, but also to the area occupied
7682 by the items being moved.
7684 2007-11-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7686 * ListView.cs: When changing the position of a given item,
7687 don't use item bounds, but item areas (which includes the item spacing
7688 between them). Also, use first/last position if the requested
7689 position is outside bounds (as .Net does). Invalidate the previous and
7690 new bounds. Finally, in ItemControl.ItemsMouseDown use the actual item
7691 in a specific position, instead of directly accessing Items collection
7692 (this is done to get the right item - remember an Item can have a
7693 different position in the grid than in the Items collection).
7695 2007-11-23 Everaldo Canuto <ecanuto@novell.com>
7697 * MessageBox.cs: Calculate text area instead of just top left, this rect
7698 area will be used in DrawString. Fixes bug #343364.
7700 2007-11-23 Everaldo Canuto <ecanuto@novell.com>
7702 * MessageBox.cs: Calculate max amount for text area width, it must be 60% of
7703 screen width. Partially fixes bug #343364.
7705 2007-11-23 Everaldo Canuto <ecanuto@novell.com>
7707 * NotifyIcon.cs: Remove duplicated code before call realculate and put this
7708 code inside recalculate, it makes code more simple.
7710 2007-11-22 Everaldo Canuto <ecanuto@novell.com>
7712 * NotifyIcon.cs: When recalculate icon verify if icon is active to decide
7713 between update or add icon. Fixes bug #324344.
7715 2007-11-21 Andreia Gaita <avidigal@novell.com>
7717 * XPlatUIX11.cs: Do not treat tool windows as if they have no
7718 window manager, since that stretches the drawing area to include
7719 the window decorations, and they get hidden. Reverts r84444 and fixes
7720 #335849 and #342790 (mdi and pdn3 regression)
7722 2007-11-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7724 * ListView.cs: When setting focused item, try to give focus to the
7725 previous one _only_ if the previous one remains valid.
7728 2007-11-20 Jonathan Pobst <monkey@jpobst.com>
7730 * Application.cs: Revert r89650, as it broke a common case to fix
7731 an obscure case. Fixes bug #342606.
7733 2007-11-20 Everaldo Canuto <ecanuto@novell.com>
7735 * ThemeWin32Classic.cs: Fix extra space on end of tooltip.
7737 2007-11-20 Everaldo Canuto <ecanuto@novell.com>
7739 * ThemeWin32Classic.cs: Fix tooltip text align removing horizontal
7740 alignment. [Fixes #324228]
7742 2007-11-19 Jonathan Pobst <monkey@jpobst.com>
7744 * ToolStrip.cs: Handle flow layout in GetPreferredSize to fix PDN3.
7747 2007-11-19 Everaldo Canuto <ecanuto@novell.com>
7749 * Form.cs: Check for empty Text before assign to cp.Caption in CreateParams
7750 it prevent problems when empty captions. [Fixes #342141]
7752 2007-11-19 Jonathan Pobst <monkey@jpobst.com>
7754 * Label.cs: Use Size instead of None. Fixes bug #342077.
7756 2007-11-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7758 * ListViewItem.cs: Implement 2.0 FindNearestItem method.
7760 2007-11-17 Jonathan Pobst <monkey@jpobst.com>
7762 * MenuStrip.cs: Guard against a NRE when a MdiWindowItem is set
7763 but there isn't a MdiContainer.
7766 2007-11-17 Jonathan Pobst <monkey@jpobst.com>
7768 * TextControl.cs: Don't recalculate document if the recalc_start and
7769 recalc_end hasn't changed.
7772 2007-11-17 Gert Driesen <drieseng@users.sourceforge.net>
7774 * DataGridViewTextBoxCell.cs: Removed CWL.
7776 2007-11-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7778 * ListView.cs: Implement 2.0 SearchForVirtualItem event support.
7780 2007-11-16 Jonathan Pobst <monkey@jpobst.com>
7782 * TextControl.cs: Missed some code for bug 341534 to trigger a
7783 recalculation when the font changes.
7785 2007-11-16 Andreia Gaita <avidigal@novell.com>
7787 * Control.cs: When updating the zorder, check if the child to update is
7788 the same control that is set to always be on top (i.e., scrollbars), and
7789 just put it on top directly. Fixes BadMatch error on pdn3
7791 2007-11-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7793 * ListView.cs: Throw the needed exceptions for FindNearestItem.
7795 2007-11-16 Jonathan Pobst <monkey@jpobst.com>
7797 * Control.cs: Don't perform a new layout when a label changes its text,
7798 cause label handles its own autosizing.
7801 2007-11-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7803 * ListView.cs: Implement 2.0 FindNearestItem methods.
7805 2007-11-15 Jonathan Pobst <monkey@jpobst.com>
7807 * ToolStripPanel.cs: Make Join at least add the control to the panel,
7808 even if the rest of what Join does isn't supported. Add some more
7809 support for vertical toolbars.
7810 * ToolStripPanelRow.cs: Add some more support for vertical toolbars.
7811 [Fixes the application breaking parts of bug #341998]
7813 2007-11-15 Jonathan Pobst <monkey@jpobst.com>
7815 * ToolStripItem.cs: When determining if we have a check/image margin,
7816 we need to look at ShowCheckMargin as well as ShowImageMargin.
7818 2007-11-15 Geoff Norton <gnorton@novell.com>
7820 * XplatUIOSX.cs: Rename to...
7821 * XplatUICarbon.cs: and refactor all event handling out to the new event handling
7822 system in System.Windows.Forms.CarbonInternal. Lots of code cleanup as well.
7824 2007-11-15 Jonathan Pobst <monkey@jpobst.com>
7826 * KeysConverter.cs: The default values should be an array of Keys, not
7827 strings. Also, the array has more values for 2.0.
7830 2007-11-14 Jonathan Pobst <monkey@jpobst.com>
7832 * Application.cs: Change ExecutablePath to use
7833 Process.GetCurrentProcess ().MainModule.FileName instead of Assembly.GetEntryAssembly.
7836 2007-11-14 Jonathan Pobst <monkey@jpobst.com>
7838 * LineTag.cs: Don't attempt to draw '\r', treat it like it doesn't exist.
7839 When measureing CR or LF, use /u000D instead of /u0013. (Hex, not decimal.)
7840 * TextControl.cs: Fix a case in GetLineEnding where a \n before a \r would
7841 be ignored. Create a new GetLineEnding that can specify which types of
7842 line endings to look for. On Insert, only create new lines for \n and \r\n.
7845 2007-11-14 Jonathan Pobst <monkey@jpobst.com>
7847 * TextBoxBase.cs: As we loop through each line changing the font, tell
7848 the document that the line needs to be recalculated. Fixes bug #341534.
7850 2007-11-13 Jonathan Pobst <monkey@jpobst.com>
7851 [Another round of refactoring]
7852 * Line.cs: Add DeleteCharacters.
7853 * LineTag.cs: Add Delete.
7854 * TextBoxBase.cs: Update to use new methods.
7855 * TextControl.cs: Refactor the Delete* methods.
7857 2007-11-13 Everaldo Canuto <ecanuto@novell.com>
7859 * Win32DnD.cs: Implement Win32 Drop files, thank you Srikanth Madikeri for
7860 the patch. [Fixes #324856]
7862 2007-11-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7865 * ListViewItem.cs: Add an initial implementation of
7866 2.0 ListViewItem.Position getter.
7868 2007-11-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7870 * ListView.cs: Add a reordered_items_indices array, to allow us
7871 to have a different sorting than that of Items (the sorting in Items
7872 could not match the actual sorting in screen). This is needed to
7873 implement a pair of 2.0 features.
7874 * ListViewItem.cs: Add a DisplayIndex property to keep track of the
7875 actual position in the ListView grid, since it could have a position
7876 different than its Index (position in ListViewItemCollection).
7878 2007-11-09 Jonathan Pobst <monkey@jpobst.com>
7880 * Label.cs: Add StringFormatFlags.LineLimit. This tells DrawString to
7881 not draw partial lines.
7882 * LinkLabel.cs: Change FormatFlags setter from = to |= so that the
7883 LineLimit flag from the base is preserved.
7884 Fixes the windows part of bug #338965.
7886 2007-11-09 Jonathan Pobst <monkey@jpobst.com>
7888 * TextBoxBase.cs: Move handling of the enter key from KEYDOWN to CHAR
7889 so that it can be canceled in KeyPress.
7892 2007-11-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7894 * ListView.cs: In ItemControl, reset mouse-handling related
7895 fields even if we dont' have items (we still should reset them when
7896 we had items but then called Items.Clear). Partially based in a patch
7900 2007-11-08 Gert Driesen <drieseng@users.sourceforge.net>
7902 * Application.cs: In ProductVersion first try AssemblyFileVersion
7903 before falling back to assembly version. Fixes bug #339787.
7905 2007-11-08 Andreia Gaita <avidigal@novell.com>
7907 * HtmlElement.cs: Implement InnerText setter.
7908 * WebBrowserBase.cs: Implement Navigated event support.
7909 Add flag to track when the browser "document" is ready to be retrieved.
7910 * WebBrowser.cs: Implement CanGoBack, CanGoForward, Title, Url.
7911 Make sure browser document is ready before retrieving it.
7912 Clean up cached objects (document) when moving to a new page through
7913 any of the navigation methods.
7914 Use the new Mono.WebBrowser.INavigation interface to control navigation.
7915 Implement OnNavigated event.
7917 2007-11-07 Jonathan Pobst <monkey@jpobst.com>
7919 * ThemeWin32Classic.cs: Don't draw the background in DrawLabel or
7920 DrawLinkLabel, this is handled by OnPaintBackground.
7921 Fixes bug #339565, part II.
7923 2007-11-07 Andreia Gaita <avidigal@novell.com>
7925 * Control.cs: Revert r88915. Selecting text on a textbox depends on
7926 getting a Select call on click, so this call needs to be here for now.
7929 2007-11-07 Geoff Norton <gnorton@novell.com>
7931 * OSXStructs.cs: Add the kEventClassApplication constants.
7932 * XplatUIOSX.cs: Send a WM_LBUTTONDOWN to the Grab window when the
7933 application is deactivated otherwise Menu overlays linger on top of
7934 other application windows.
7936 2007-11-07 Geoff Norton <gnorton@novell.com>
7938 * XplatUIOSX.cs: Dont throw an exception on OverrideCursor as we
7939 dont support cursors yet anyways. This allows Reflector to run.
7941 2007-11-07 Geoff Norton <gnorton@novell.com>
7943 * XplatUIOSX.cs: Implement DragSize.
7945 2007-11-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7947 * ListView.cs: When we receive a WM_LBUTTONDOWN message in
7948 ItemControl, request the focus, as .Net does. This is needed after
7949 Control does not request focus anymore when it receives a
7952 2007-11-06 Jonathan Pobst <monkey@Jpobst.com>
7954 * Label.cs: Make DrawImage internal so it can be called from Theme code.
7955 Remove the DrawImage call from OnPaint.
7956 * LinkLabel.cs: Remove the DrawImage call from OnPaint.
7957 * ThemeWin32Classic.cs: Call DrawImage after we paint the background,
7958 but before we draw the text for DrawLabel and DrawLinkLabel.
7961 2007-11-05 Andreia Gaita <avidigal@novell.com>
7963 * Control.cs: Remove select call on click. Fixes #325809
7965 2007-11-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7967 * ListViewItem.cs: Add 2.0 Position property getter.
7969 2007-11-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7971 * ListView.cs: Add 2.0 BackgroundImageTiled property.
7972 Also, to make it work properly, change item's BackColor and
7973 BackgroundImageLayout as needed.
7974 * ThemeWin32Classic.cs: Don't fill any background rectangle
7975 in ListView.ItemControl when drawing items; just let the Control
7976 base implementation fill it.
7978 2007-11-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7980 * ListViewGroup.cs: Adda TypeConverter attribute for this class,
7981 as well as adding a custom 'dummy' Converter, as .net does.
7983 2007-11-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7985 * PropertyGridView.cs: When clicking drop-down button,
7986 select an index in the listbox only if our standard values collection
7987 has one or more items.
7989 2007-11-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7991 * ListViewItem.cs: Add a DefaultValue attribute to 2.0 IndentCount
7994 2007-11-04 Gert Driesen <drieseng@users.sourceforge.net>
7996 * PropertyGrid.cs: In PropertySort, update the toolbar buttons even if
7997 the value is not changed. This ensure a pushed button remains in that
7998 state when clicked again. When switching the value of PropertySort
7999 between Categorized and CategorizedAlphabetical, do not update the
8000 grid items and do not fire a PropertyChangedEvent. When clicking the
8001 sorting buttons, do not modify the PropertySort value when switching
8002 between Categorized and CategorizedAlphabetical but only update the
8005 2007-11-04 Gert Driesen <drieseng@users.sourceforge.net>
8007 * Label.cs: Make AutoEllipsis internal on 1.0 profile. Code
8009 * PropertyGrid.cs: Also put Categorized button in pushed state when
8010 PropertySort is CategorizedAlphabetical. Set AutoEllipsis to true
8011 for help description label.
8013 2007-11-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8015 * ListView.cs: When calculating the biggest item for a given column,
8016 take into account 2.0 LIstViewItem.IndentCount, since it directly affects
8019 2007-11-03 Gert Driesen <drieseng@users.sourceforge.net>
8021 * PropertyGrid.cs: Fixed default value for PropertySort. Allow invalid
8022 value for PropertySort on 1.0 profile. PropertySortChanged event
8023 should only be fired on 2.0 profile. Fixed NullReferenceException
8024 in UpdateSortLayout when PropertyGrid contains no items.
8026 2007-11-02 Jonathan Pobst <monkey@jpobst.com>
8028 * MessageBox.cs: Patch from George to implement MessageBoxDefaultButton.
8031 2007-11-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8033 * ListViewItem.cs: Implement 2.0 IndentCount property.
8035 2007-11-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8037 * X11Dnd.cs: When sending status in a dnd operation, compare current
8038 effect with the 'allowed' field instead of 'drag_data.Allowed', since
8039 the later is only created when a Winforms application is both the
8040 source and the target, but not when we are the target only.
8041 Fixes part of #324251.
8043 2007-11-01 Geoff Norton <gnorton@novell.com>
8045 * XplatUI*.cs: Add GetPreviousWindow utility method to return windows in
8047 * Hwnd.cs: Add initial implementation of GetClippingRectangles to clip sibling
8048 children out of the drawing view on mac.
8049 * XplatUIOSX.cs: Code cleanup. Handle more window grab cases. Fix SetParent
8050 to handle the orphan and invisible case (1/2 fixes TabStrip drawing in FormsTest)
8052 2007-11-01 Jonathan Pobst <monkey@jpobst.com>
8054 * ToolStrip.cs: Don't process MouseUp for a ToolStripControlHost, clicking
8055 on the non-hosted-control part of it shouldn't do anything.
8056 Fixes part of bug #327498.
8058 2007-11-01 Andreia Gaita <avidigal@novell.com>
8060 * WebBrowserBase.cs: revert previous change, resize can be called anytime
8062 2007-11-01 Jonathan Pobst <monkey@jpobst.com>
8064 * Application.cs: When a toolstrip has the keyboard input loop, let messages
8065 it does not use flow through to controls that are hosted in menus.
8066 Same with mouse clicks.
8067 * Form.cs: Don't close all menus on click if the click is on a
8068 control hosted in a menu.
8069 Fixes part of bug #327498, and part of bug #325969.
8071 2007-10-31 Andreia Gaita <avidigal@novell.com>
8073 * WebBrowserBase.cs: Only call resize on gluezilla when it is active
8075 2007-10-31 Jonathan Pobst <monkey@jpobst.com>
8077 * TextBoxBase.cs: Use int.MaxValue for MaxLength instead of magic number.
8078 Addresses an issue raised in bug #336218.
8080 2007-10-30 Jonathan Pobst <monkey@jpobst.com>
8082 * Form.cs: Patch from George that moves the conversion of ClientSize->Size
8083 for PreferredSize from OnLayout to PreferredSize. Fixes bug #325242.
8085 2007-10-30 Andreia Gaita <avidigal@novell.com>
8087 * ContainerControl.cs: Check if the active control is a
8088 child of a removed control and update active_control accordingly.
8091 2007-10-29 Jonathan Pobst <monkey@jpobst.com>
8093 * DateTimePicker.cs: Throw ArgEx if the Value is set outside the MinDate
8094 or the MaxDate. Fixed bug #337693.
8096 2007-10-29 Jonathan Pobst <monkey@jpobst.com>
8098 * XplatUIWin32.cs: Always call SetWindowPos with SWP_FRAMECHANGED flag
8099 after calling SetWindowLong for a form, to force an immediate NC refresh.
8100 Fixes first part of bug #325150.
8102 2007-10-29 Jonathan Pobst <monkey@jpobst.com>
8104 * ComboBox.cs: Don't try to resize the listbox when we are DropDownStyle
8105 simple. Fixes the last part of bug #322668.
8107 2007-10-29 Jonathan Pobst <monkey@jpobst.com>
8109 * MessageBox.cs: If the owner is TopMost, then the MessageBox form
8110 needs to be TopMost as well, or else the MessageBox is under the form.
8111 Patch by George fixes bug #325300.
8113 2007-10-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8115 * X11Dnd.cs: When starting a new drag operation, reset the static
8116 'dropped' field to false (previously the implementation didn't reset
8117 it and got confused after the first drag).
8120 2007-10-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8122 * PropertyGrid.cs: When PropertySort changes, re-organize the grid
8123 items instead of re-creating them all. For this purpose we now cache
8124 both CategoryGridEntry items and the GridEntries for the main object's
8126 * GridItem.cs: Make SetParent method abstract.
8127 * GridEntry.cs: Override the SetParent method (already there, but now
8131 2007-10-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8133 * PropertyGridView.cs: Set the plus/minus bounds of a grid item
8134 depending on its depth (as .Net does). Update the needed values in
8135 MouseDown handler. Also draw the plus/minus rect after the label,
8136 so we don't draw on top of it.
8138 2007-10-24 Everaldo Canuto <ecanuto@novell.com>
8140 * MenuAPI.cs: Return true as default in ProcessKeys to prevent keys to be
8141 processed by forms or controls when menu is active. [Fixes #333548]
8143 2007-10-24 Jonathan Pobst <monkey@jpobst.com>
8145 * ToolStripItem.cs: Don't focus a ToolStripControlHost on Select of the
8146 parent doesn't have focus. This was causing ToolStripTextBoxes to take
8147 focus on mouse over.
8149 2007-10-24 Jonathan Pobst <monkey@jpobst.com>
8151 * TextControl.cs: Code cleaning, simplifying.
8153 2007-10-24 Geoff Norton <gnorton@novell.com>
8155 * XplatUIOSX.cs: Route mouse events to the grab hwnd on mouse down as well.
8156 * XplatUIStructs.cs: Fix the ToString method of POINT and MSG.
8158 2007-10-24 Jonathan Pobst <monkey@jpobst.com>
8160 * TextBoxBase.cs: If the user sets maxlength to 0, it should mean
8161 the cap is maxvalue, not actually 0. [Fixes bug #336218]
8163 2007-10-24 Andreia Gaita <avidigal@novell.com>
8165 * SendKeys.cs: apply jpobst's patch to bug #332409
8167 2007-10-23 Andreia Gaita <avidigal@novell.com>
8169 * TextBoxTextRenderer.cs: Lower bounds max size to Int16.MaxValue, the
8170 Windows 2000 gdi DrawText call doesn't draw if it's higher than that
8173 2007-10-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8175 * PropertyGridView.cs: If a property has an UIEditor available,
8176 make the drop-down/editor button available only if the property
8179 2007-10-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8181 * PropertyGridView.cs: Don't make the grid item textbox
8182 editable when a drop-down control is available, but
8183 CanConvertFrom (typeof (string)) is false or GetStandardValuesExclusive () is
8184 true. The same bur the color of the grid item value's label.
8186 2007-10-22 Geoff Norton <gnorton@novell.com>
8188 * OSXStructs.cs: Add the needed constants for keyboard modifiers.
8189 * OSXKeyboard.cs: Initial support for keyboard and limited modifiers.
8190 * XplatUIOSX.cs: New reversible frame support. Wire in the new keyboard
8191 driver. Padd the bottom of all real windows so the resize thumb doesn't
8192 obscure scroll/status bars.
8194 2007-10-22 Jonathan Pobst <monkey@jpobst.com>
8196 * WindowsFormsSection.cs: Implement.
8198 2007-10-22 Everaldo Canuto <ecanuto@novell.com>
8200 * MdiClient.cs: Maximize new active mdi child when a maximized child is
8201 closed see #325434 patch.
8203 2007-10-22 Everaldo Canuto <ecanuto@novell.com>
8205 * MdiClient.cs: Fix remaining issues from layout vertical and horizontal,
8208 2007-10-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8210 * PropertyGridView.cs: When showing the textbox for a grid item,
8211 have two local variables to store the read-only and non-editable
8212 status of a grid item (we were previously using just one variable
8213 to do this, when actually they are slightly different).
8214 Fixes part of #325023.
8216 2007-10-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8218 * PropertyGridView.cs: When showing a drop-down list, try to get the
8219 values using TypeConverter.ConvertTo (to convert to a string). Fixes
8222 2007-10-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8224 * PropertyGrid.cs: When updating a property and populating sub grid
8225 items, remove the previous ones, and invalidate the specific area.
8226 * PropertyGridView.cs: A new InvalidateBelowGridItem to invalidate the
8227 area behind a grid item.
8228 * GridItemCollection.cs: Add an internal Clear method, to allow us to
8229 clean the items if needed (specially for controls implementing
8230 ICustomTypeDescriptor and returning a variable number of properties).
8233 2007-10-19 Jonathan Pobst <monkey@jpobst.com>
8235 * TextControl.cs: Clean up and document the Insert function.
8237 2007-10-17 Jonathan Pobst <monkey@jpobst.com>
8239 * TextControl.cs: Make sure we know our start point for updating the view
8240 in ReplaceSelection. Fixes an issue where pasting multiline text wouldn't
8243 2007-10-17 Jonathan Pobst <monkey@jpobst.com>
8245 * ListView: Couple of corcompare fixes.
8247 2007-10-17 Geoff Norton <gnorton@novell.com>
8249 * XplatUIOSX.cs: Implement support for window icons in the dock. Set
8250 the title caption of real window.
8252 2007-10-17 Jonathan Pobst <monkey@jpobst.com>
8254 * ErrorProvider.cs: Add the error provider's internal window to a
8255 containercontrol when the parent changes. [Fixes bug #329714]
8257 2007-10-17 Geoff Norton <gnorton@novell.com>
8259 * XplatUIOSX.cs: Implement ScrollWindow. Properly create TOOLWINDOWs.
8260 When we make a new window; restore the old active window - fixes dialogs.
8262 2007-10-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8264 * PropertyGridView.cs: Look for RefreshPropertiesAttribute
8265 when modifying a property, and if found then invalidate as
8267 Fixes part of #324865.
8269 2007-10-17 Geoff Norton <gnorton@novell.com>
8271 * XplatUIOSX.cs: Re-enable the native driver on the Mac. This is still
8272 highly experimental. Fixed coordinate translation. Fixed window locations.
8273 Initial support for clipping. Implemented NC areas and menus. Support for
8274 launching from command line from Will Johansson (wjohansson@atacomm.com).
8275 * OSXStructs.cs: Add ProcessSerialNumer (Patch from Will Johansson
8276 wjohansson@atacomm.com)
8277 * Hwnd.cs: Add some internal structures for tracking Mac cursors.
8278 Hwnds now track the existence of all of their children for Mac clipping.
8279 * XplatUI.cs: Re-enabled the native driver on the Mac.
8281 2007-10-17 Jonathan Pobst <monkey@jpobst.com>
8283 * Line.cs: Move the InsertString function to here.
8284 * TextControl.cs: Cleanup some duplicate code, move some InsertString
8285 functionality to Line.
8287 2007-10-17 Geoff Norton <gnorton@novell.com>
8289 * ComboBox.cs: Destroy the popup after hiding it. Fixes #322582
8291 2007-10-16 Gert Driesen <drieseng@users.sourceforge.net>
8293 * ButtonBase.cs: Fixed IsDefault to use assigned value instead of
8294 always setting value to true.
8295 * Form.cs: When changing AcceptButton, notify new and original button.
8297 2007-10-16 Jonathan Pobst <monkey@jpobst.com>
8299 * Form.cs: Guard against an NRE when the user sets the AcceptButton to
8300 a custom control that implements IButtonControl instead of an actual
8301 button. [Fixes bug #334244]
8303 2007-10-15 Everaldo Canuto <ecanuto@novell.com>
8305 * Form.cs: Change SelectActiveControl to internal, we need to call it in
8308 * MdiWindowManager.cs: In RaiseActivated call SelectActiveControl to select
8309 active control when activate a new mdi window.
8313 2007-10-15 Everaldo Canuto <ecanuto@novell.com>
8315 * ComboBox.cs: Dont implicit add listbox_ctrl on OnHandleCreated because it
8319 2007-10-15 Jonathan Pobst <monkey@jpobst.com>
8321 * TextControl.cs: When SuspendRecalc is first called, reset the recalc_start
8322 to MaxValue and recalc_end to MinValue. Currently, recalc_start is always 1,
8323 so we always recalculate the whole document instead of just the new part.
8326 2007-10-15 Jonathan Pobst <monkey@jpobst.com>
8328 * LineTag.cs: Fix a case where the GetCharIndex would not return 0
8329 when the mouse was to the left of the first character in the line.
8331 2007-10-15 Jonathan Pobst <monkey@jpobst.com>
8333 * TextBox.cs, TextBoxBase.cs: When setting the document's password
8334 character, use the property instead of the variable so that the
8335 UseSystemPasswordChar property is taken into account.
8338 2007-10-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8340 * FolderBrowserDialog.cs: When a node is right clicked and the "New
8341 folder" contex menu appears, actually add the new folder to it, even
8342 if the node is not currently selected. Still use SelectedNode in case
8343 there wasn't found a node under the pointer.
8346 2007-10-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8348 * ListViewItem.cs: When retrieving the focused state, the index check
8349 should be done only when ListView is in virtualmode, as it is an
8350 expensive check for normal mode.
8352 2007-10-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8354 * ListViewItem.cs: Make the focus state information be stored
8355 in the ListView, not in the items. This is done to match the MS
8356 behaviour for items that are not yet part of a ListView control;
8357 besides that, since just one item can be focused at the same time,
8358 we save a little space in our items.
8359 Fixes part of #331643.
8361 2007-10-13 Gert Driesen <drieseng@users.sourceforge.net>
8363 * ComboBox.cs: When focus is lost, deselect the text. When setting
8364 text of control, select all text. Do not hide selection when control
8365 does not have focus. Fixes bug #333663.
8367 2007-10-13 Gert Driesen <drieseng@users.sourceforge.net>
8369 * TextBoxBase.cs: On 2.0 profile, throw ArgumentOutOFRangeException
8370 instead of ArgumentException when SelectionLength is set to negative
8371 value. Added same check to SelectionStart. Code formatting.
8373 2007-10-13 Gert Driesen <drieseng@users.sourceforge.net>
8375 * TextBoxBase.cs: Invalidate selection before changing SelectionLength
8376 or SelectionStart. Code formatting.
8378 2007-10-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8380 * TreeView.cs: drag_begin_x and drag_begin_y are now set to -1,
8381 indicating that there was not a previous drag-and-drop operation going
8383 Fixes part of #325071.
8385 2007-10-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8387 * X11Dnd.cs: When DragEventArgs.Effect is set to a value not part of
8388 AllowedEffect, don't let the drop operation happen.
8391 2007-10-12 Jonathan Pobst <monkey@jpobst.com>
8393 * TextRenderer.cs: Use GDI on Windows in both the 1.1 and 2.0 profiles.
8395 2007-10-12 Jonathan Pobst <monkey@jpobst.com>
8397 * Line.cs, LineTag.cs: Guard against an exception when Document.Clear
8400 2007-10-12 Jonathan Pobst <monkey@jpobst.com>
8402 * Line.cs: Add a method that finds the tag that contains an x-coord.
8403 * LineTag.cs: Add a method that finds the character at an x-coord using
8404 a binary search, the old way was a linear search.
8405 * TextControl.cs: Change FindCursor to use the above new methods.
8407 2007-10-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8409 * DragEventArgs.cs: Allow Effect to have a non allowed value (a
8410 value different than AllowedEffect). This should be possible to
8411 indicate that dragging is not possible in some control/area.
8413 2007-10-11 Jonathan Pobst <monkey@jpobst.com>
8415 * LineTag.cs: Encapsulate all variables with properties. Calculate ascent/
8416 descent internally when font changes instead of outside code being responsible
8418 * Line.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs: Use Tag properties
8419 instead of accessing internal variables.
8421 2007-10-09 Everaldo Canuto <ecanuto@novell.com>
8423 * MdiClient.cs: Always call ArrangeIconicWindows before any arrangement and
8424 remove special treatment for ArrangeIcons since it is already arranged.
8426 2007-10-09 Jonathan Pobst <monkey@jpobst.com>
8428 * TextBoxTextRenderer.cs: Draw takes a Color now instead of a Brush, as
8429 the Win32 backend uses Color.
8430 * Line.cs, LineTag.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs:
8431 Refactor to store a Color instead of a Brush for Color.
8433 2007-10-09 Jonathan Pobst <monkey@jpobst.com>
8435 * Line.cs, LineTag.cs: Override GetHashCode to make a compiler warning go
8436 away. I didn't realize I needed this when I refactored these earlier.
8438 2007-10-09 Jonathan Pobst <monkey@jpobst.com>
8440 * LineTag.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs: Refactor to
8441 store a Color structure and use the ResPool for back color instead of
8442 holding onto brushes.
8444 2007-10-09 Jonathan Pobst <monkey@jpobst.com>
8446 * TextControl.cs: Fix how we calculate the end of the tag we are drawing.
8449 2007-10-08 Jonathan Pobst <monkey@jpobst.com>
8451 * MonthCalendar.cs: When ShowWeekNumbers is changed, force the calendar
8452 to recalculate its size. Fixes a part of bug #331052.
8454 2007-10-08 Jonathan Pobst <monkey@jpobst.com>
8456 * NotifyIcon.cs: Set the correct mouse button when handling right mouse
8457 button. Fixes a part of bug #331052.
8459 2007-10-08 Jonathan Pobst <monkey@jpobst.com>
8461 * Form.cs: Trim NewLine before setting XPlatUI.SetText, and when setting
8463 * ThemeWin32Classic.cs: Trim NewLine before drawing MDI children window
8467 2007-10-08 Jonathan Pobst <monkey@jpobst.com>
8469 * TextBoxTextRenderer.cs: Don't make this a static class, as static
8470 doesn't exist in 1.1. (Thanks jb!)
8472 2007-10-08 Jonathan Pobst <monkey@jpobst.com>
8474 * TextBoxTextRenderer.cs: Abstract text measuring and drawing to this
8475 class to allow us to use different backends on different platforms.
8476 Linux uses the current [Draw|Measure]String backend. Windows uses
8477 the TextRenderer.[Draw|Measure]Text backend, which uses GDI instead
8478 of GDI+. This leads to better looking text and more accurate measurements
8479 on Windows, fixing many of the reported issues.
8480 * Line.cs, LineTag.cs: Update to use TextBoxTextRenderer.
8482 2007-10-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8484 * FolderBrowserDialog.cs: When running on Windows,
8485 try to detect paths such "C:" and add Path.DirectorySeparatorChar,
8486 since we must match both "C:" and "C:\" forms. A little hackish, but
8490 2007-10-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8492 * ListView.cs: When calling EndEdit (after editing an item),
8493 create a new instance of LabelEditEventArgs to keep clean the fields
8494 in case we get a new call to BeginEdit; also do Application.DoEvents
8495 to have focus in synch. This is a fix similar to TreeView's #325244.
8497 2007-10-07 Andreia Gaita <avidigal@novell.com>
8499 * HtmlDocument.cs, HtmlElement.cs, WebBrowser.cs: Added dom support
8500 * WebBrowserBase.cs: Added dialog support, calling the
8501 WebBrowserDialogs classes for each specific dialog type.
8503 2007-10-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8505 * ListView.cs: When the last item is focused and is removed,
8506 move the focus to the previous item (in Items order). This is what MS
8510 2007-10-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8512 * ListView.cs: In ListViewItemCollection, make Remove call RemoveAt,
8513 instead of the opposite (RemoveAt call Remove). This is a better
8514 approach since we don't need to to a pair of traversals when using
8517 2006-10-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8519 * TreeView.cs: When Keys.Left is pressed, before trying to Collapse
8520 check that the node actually has nodes, and if not, move to the
8521 parent node instead.
8524 2006-10-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8526 * TreeView.cs: Move the previous change to the general case (to
8527 call Application.DoEvents in cases where the method was called by
8530 2007_10-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8532 * TreeView.cs: When calling EndEdit and we need to hide the textbox,
8533 call Application.DoEvents. This is neccessary when we get a call to
8534 BeginEdit from an AfterLabelEdit handler, because the focus always
8535 goes to the TreeView, even if we try to give it to our
8536 LabelEditTextBox. The call do Application.DoEvents seems to
8537 synchronize the focus, basically.
8540 2007-10-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8542 * TreeView.cs: When AfterLabelEdit event is fired, TreeNode.IsEditing
8543 should be false. This also removes some nasty recursive paths. Fixes
8546 2007-10-04 Everaldo Canuto <ecanuto@novell.com>
8548 * MdiClient.cs: When cascade (layout) mdi window that is maximized, set the
8549 state to normal. Also resize window when cascading. Fixes #325433.
8551 2007-10-04 Jonathan Pobst <monkey@jpobst.com>
8553 * RichTextBox.cs: When SelectionColor is set to Color.Empty, use
8554 DefaultForeColor, as drawing empty colored lines isn't very useful.
8555 [Fixes the not drawn lines part of bug #324358]
8557 2007-10-04 Jonathan Pobst <monkey@jpobst.com>
8559 * TextControl.cs: Move Line and LineTag classes into separate files to
8560 make things easier to find.
8561 * Line.cs, LineTag.cs: Bring coding standards up to Mono's guidelines.
8562 * RichTextBox.cs: Capitalize LineTag.Length property access.
8563 - This is purely an organizational/formatting change, no logic changed. -
8565 2007-10-03 Everaldo Canuto <ecanuto@novell.com>
8567 * ThemeWin32Classic.cs: Do not show focus rectangle in radio buttons when
8570 2007-10-03 Everaldo Canuto <ecanuto@novell.com>
8572 * ThemeWin32Classic.cs: Do not show focus rectangle in checkboxes when
8575 2007-10-03 Everaldo Canuto <ecanuto@novell.com>
8577 * ComboBox.cs: On contructor use backgound_color instead of BackColor to
8578 prevent calling of OnBackColorChanged. Fixes #325321.
8580 2007-10-03 Everaldo Canuto <ecanuto@novell.com>
8582 * TextBox.cs: When check enabled uses Enabled property instead of is_enabled
8583 because control can be disabled because owner is disabled.
8585 2007-10-02 Jonathan Pobst <monkey@jpobst.com>
8587 * ComboBox.cs: For the 1.1 profile, the default SelectedText is
8588 string.Empty, test failed from previous change.
8590 2007-10-02 Jonathan Pobst <monkey@jpobst.com>
8592 * TextBoxBase.cs: For the 1.1 profile, the default SelectedText
8593 is null, not String.Empty. See bug #323038.
8595 2007-10-01 Jonathan Pobst <monkey@jpobst.com>
8597 * TextControl.cs: Change the margins to match MS a little better.
8598 Still not perfect for X11 due to some DrawString differences, but
8599 is still an improvement over the old stuff.
8600 Partially fixes #324467.
8602 2007-09-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8604 * FolderBrowserDialog.cs: When using MyComputer as
8605 RootFolder, let absolute paths be considered as valid ones. Also, use
8606 Path.DirectorySeparatorChar instead of Path.AltDirectorySeparatorChar,
8607 for Windows compatibility.
8608 Partially fixes #325247.
8610 2007-09-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8612 * FolderBrowserDialog.cs: Fix the recursive FindPathInNodes method.
8613 Also remove the stack.Count > 0 check in FBTreeView.SetSelectedNode
8614 method, since it causes the dialog to not select folders directly
8615 under the root path (when setting SelectedPath property).
8617 2007-09-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8619 * TreeNode.cs: When calling Expand/Collapse and need to call
8620 ExpandBelow/CollapseBelow respectively, take into account
8621 partially visible nodes (previously Expanding/Collapsing
8622 a partially visible node in the bottom was not updating its +- sign).
8624 2007-09-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8626 * TreeView.cs: When calling Expand on a TreeNode, and we need to
8627 expand nodes below (ExpandBelow), scroll the entire Viewport
8628 area if the node is above it and not visible (instead of scrolling
8629 the area from node's Bottom, which applies only when the node is
8633 2007-09-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8635 * TreeView.cs: When calling ExpandAll, set SelectedNode to the top
8636 node in the bottom area (as .Net does). This is done to preserve the
8637 scroll position when ExpandAll is called before handle is created for
8638 the 1.1 profile (bottom area, as opposed to top area in 2.0).
8641 2007-09-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8643 * TreeView.cs: When calling ExpandAll, don't move the scroll to the
8644 bottom area if we are in fact not using the vertical scroll bar.
8647 2007-09-27 Jonathan Pobst <monkey@jpobst.com>
8649 * Control.cs: Comment out a double buffering optimization that doesn't
8650 take into account invalidates created in OnPaint, causing the control
8651 to never be redrawn. It would take quite a bit of work to work around
8652 this, but I left it commented with an explanation for later possible
8656 2007-09-27 Jonathan Pobst <monkey@jpobst.com>
8658 * Control.cs: Ask parent to perform a layout if control is AutoSize and
8660 * RadioButton.cs: Implement GetPreferredSizeCore.
8663 2007-09-26 Jonathan Pobst <monkey@jpobst.com>
8665 * RichTextBox.cs, TextBoxBase.cs, WindowsFormsSynchronizationContext.cs:
8668 2007-09-26 Jonathan Pobst <monkey@jpobst.com>
8670 * Application.cs: Move the sync context stuff to Run instead of RunLoop
8671 so that it doesn't get uninstalled on modal forms.
8672 * Control.cs: Install a sync context when a control is created.
8673 * WindowsFormsSyncronizationContext.cs: Create a private static control
8674 to invoke on. This is easier than trying to find a created control we
8678 2007-09-25 Jonathan Pobst <monkey@jpobst.com>
8680 * Application.cs: Install a WindowsFormsSynchronizationContext in the
8681 run loop, and uninstall it when done.
8682 * WindowsFormsSynchronizationContext.cs: Implement.
8683 [Fixes the common case in bug #327608]
8685 2007-09-23 Gert Driesen <drieseng@users.sourceforge.net>
8687 * DataGridViewCellCollection.cs: Added argument checks for indexers.
8688 Use case-insensitive lookup of column name in indexer. Code
8691 2007-09-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8693 * TreeNode.cs: When collapsing or expanding a node, check whether its
8694 change will affect the visible area (we were previously doing a
8695 IsVisible check, but that check is not enough since children nodes
8696 could be still visible). Fixes part of #325266.
8698 2007-09-21 Jonathan Pobst <monkey@jpobst.com>
8700 * TreeView.cs: Always select the first node when the TreeView gets
8701 focus if there is no currently selected node.
8704 2007-09-21 Jonathan Pobst <monkey@jpobst.com>
8706 * TreeView.cs: Do not raise BeforeSelect or AfterSelect when the
8707 node being selected is null.
8708 [Patch from Yves Bastide fixes bug #326858]
8710 2007-09-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8712 * TreeNode.cs: Add an internal ArePreviousNodesExpanded, to know
8713 whether all the parent nodes are expanded.
8714 * TreeNodeCollection.cs: When adding a new node an calling SetupNode,
8715 call RecalculateVisibleOrder if all previous nodes are expanded.
8716 Before that we were doing a IsVisible check, but sometimes the node
8717 is not in the visible area, but _should_already be ready, because of
8718 all previous nodes are expanded. Fixes #325259.
8720 2007-09-20 Jonathan Pobst <monkey@jpobst.com>
8722 * ToolStripSplitButton.cs: Call the ButtonClick event if the button
8723 portion of the item is clicked.
8725 2007-09-20 Jonathan Pobst <monkey@jpobst.com>
8727 * TextControl.cs: Do not tell the system to move the cursor if the
8728 textbox isn't focused. Fixes part of bug #322668.
8730 2007-09-20 Jonathan Pobst <monkey@jpobst.com>
8732 * ComboBox.cs: When there are no items, do not show the dropdown if
8733 the down arrow is clicked. Fixes part of bug #322668.
8735 2007-09-20 Jonathan Pobst <monkey@jpobst.com>
8737 * ToolStripComboBox.cs: Manually set the size of this control in the
8738 constructor, as it doesn't seem to be the same as DefaultSize.
8739 Fixes a failing monobuild test.
8741 2007-09-19 Jonathan Pobst <monkey@jpobst.com>
8743 * DateTimePicker.cs: If the user sets MinDate to DateTime.MinValue,
8744 change it to DateTimePicker.MinDateTime. [Fixes bug #326609]
8746 2007-09-19 Jonathan Pobst <monkey@jpobst.com>
8748 * Theme.cs: FileDialogs should be using DesktopDirectory instead of
8749 Desktop. This lets it work for people who have moved their desktops
8750 from the default location on windows. For people who have not, both
8751 values are the same, so it shouldn't hurt anything. [Fixes bug #325270]
8753 2007-09-18 Jonathan Pobst <monkey@jpobst.com>
8755 * ToolStripControlHostTest.cs: DefaultSize is based off hosted control,
8756 but when the base constructor sets this, the control is null. Set it
8757 again in the constructor. Fixes a failing monobuild test.
8759 2007-09-18 Jonathan Pobst <monkey@jpobst.com>
8761 * ToolStripDropDownItem.cs: Make sure Click and DropDownOpened events
8763 * ToolStripSplitButton.cs: Make sure MouseDown and MouseUp events get
8766 2007-09-18 Jonathan Pobst <monkey@jpobst.com>
8768 * ToolStrip.cs: Don't show tooltips for ToolStripTextBoxes, they
8769 will handle it themselves.
8770 * ToolStripItem.cs: When deciding what the text of a tooltip should
8771 be, use the Text property instead of the text field.
8772 * ToolStripTextBox.cs: Handle tooltips.
8773 [Fixes bugs #325417 and #325973]
8775 2007-09-18 Jonathan Pobst <monkey@jpobst.com>
8777 * ToolStripDropDownButton.cs: Only drop down overflow menu with a
8778 left click. Fixes the easy part of bug #325969.
8780 2007-09-18 Jonathan Pobst <monkey@jpobst.com>
8782 * ToolStrip.cs: Set AutoSizeMode back to GrowAndShrink to refix
8783 bug #325406, but set a minimum for StatusStrip to 22 to keep
8784 bug #325390 fixed. I think this minimum would have been figured
8785 up automatically if the grip was actually a ToolStripItem, but it
8788 2007-09-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8790 * ListView.cs: max_label_wrapping is now 30 pixels instead of 38,
8791 as this is apparently the actual value used by .Net. Also apply
8792 ItemPadding in Details view only, and decrease the general width padding,
8793 to have only the needed. This should fix #324340 in Windows too.
8795 2007-09-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8797 * ListViewItem.cs: Don't Invalidate item if parent is inside
8798 a BeginUpdate/EndUpdate block. This prevents to have differences
8799 between the ListView and items state, as well as avoid some exceptions
8801 * ListView.cs: Make 'updating' field internal.
8803 2007-09-17 Jonathan Pobst <monkey@jpobst.com>
8805 * ToolStripControlHost.cs: Realign control when ControlAlign changes.
8806 * ToolStripItem.cs: Use ImageScalingSize when calculating preferred
8807 size if appropriate.
8808 Fixes reopened bug #325414.
8810 2007-09-17 Jonathan Pobst <monkey@jpobst.com>
8812 * ToolStrip.cs: Set AutoSizeMode back to GrowOnly.
8813 * ToolStripItem.cs: Invalidate before and after our new autosize when
8815 Fixes reopened bug #325390.
8817 2007-09-17 Jonathan Pobst <monkey@jpobst.com>
8819 * ToolStripMenuItem.cs: Make sure we invalidate when clicked so
8820 mnemonics can be drawn or undrawn correctly. Fixes reopened bug
8823 2007-09-17 Jonathan Pobst <monkey@jpobst.com>
8825 * Control.cs: Do WM_CONTEXTMENU before OnMouseUp. [Fixes bug #325535]
8827 2007-09-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8829 * ColumnHeader.cs: When drawing column text, use EllipsisCharacter
8830 instead of EllipsisWord (by equistango at gmail.com). Fixes part of
8833 2007-09-14 Jonathan Pobst <monkey@jpobst.com>
8835 * ToolStrip.cs: Make ToolStrip selectable when TabStop = true. Find an
8836 item to select when the ToolStrip is selected.
8837 * ToolStripControlHost: Realign the control when the bounds or visibility
8839 * ToolStripItem.cs: When selected, if it's a control host, focus the control.
8840 * ToolStripOverflow.cs: When laying out the drop down, respect the item's
8842 * ToolStripTextBox.cs: OnPaintInternal should call base.OnPaintInternal, not
8843 base.OnPaint. Was causing text not to be drawn.
8845 2007-09-14 Jonathan Pobst <monkey@jpobst.com>
8847 * SplitterPanel.cs: Ignore attempts to set AutoSizeMode.
8849 2007-09-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8851 * TreeView.cs: When creating the label edit text box,
8852 set is initially to Visible = false. This is done to
8853 prevent a confusion in the layout which makes it to lose
8854 focus when shown the first time. Fixes part of #82592.
8856 2007-09-13 Andreia Gaita <avidigal@novell.com>
8858 * WebBrowserBase.cs: add FocusOption enumeration for finer focus control
8860 2007-09-13 Jonathan Pobst <monkey@jpobst.com>
8862 * ToolStrip.cs: Take Margin into account when calculating preferred
8863 size. Also, allow preferred size to get smaller than the explicit
8865 * ToolStripTextBox.cs: Don't change the GetPreferredSize implementation.
8866 First step towards fixing bug #82747.
8868 2007-09-13 Jonathan Pobst <monkey@jpobst.com>
8870 * TreeView.cs: Applied patch from latency@gmx.de to not paint the
8871 full row select background over the plus/minus glyph. Also, turn
8872 off the focus rectangle for full row select since MS doesn't seem
8873 to ever paint it. [Fixes bug #81839]
8875 2007-09-13 Jonathan Pobst <monkey@jpobst.com>
8877 * ToolStrip.cs: Don't FocusInternal if there is no selected item.
8878 This was causing keyboard opened dropdowns to lose focus.
8881 2007-09-13 Jonathan Pobst <monkey@jpobst.com>
8883 * Control.cs: If Rectangle.Empty is passed to Invalidate, use
8884 ClientRectangle instead. [Fixes bug #82838]
8886 2007-09-13 Jonathan Pobst <monkey@jpobst.com>
8888 * SplitContainer.cs: We can't reset Visible on every layout because
8889 someone may have set Visible = false explicitly on a SplitterPanel.
8890 Make sure when we switch orientation the SplitterDistance does not
8891 change. Fixes two failing tests.
8893 2007-09-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8895 * TreeView.cs: Use MeasureTextInternal instead of MeasureText in
8896 TextRenderer, since the latter is only available in 2.0.
8898 2007-09-13 Ivan N. Zlatev <contact@i-nz.net>
8900 * Cursor.cs: Fix Cursor.Current to apply Cursor.Default.
8901 * SplitContainer.cs: Implement FixedPanel layouting.
8903 2007-09-12 Andreia Gaita <avidigal@novell.com>
8905 * WebBrowserBase.cs: setup shutdown routine
8907 2007-09-12 Andreia Gaita <avidigal@novell.com>
8909 * Application.cs: Let keyboard events that are targetted
8910 to non-mwf windows hosted inside mwf (as in, webbrowser),
8911 propagate properly. Fixes keyboard handling on the webbrowser.
8913 2007-09-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8915 * ListView.cs: When handling MouseUp event and we are
8916 highligting a node with the mouse right button, don't trigger
8917 Before/AfterSelecting event, since we are not actually selecting
8920 2007-09-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8922 * TreeView.cs: When editing a node, modify the edit text box
8923 depending on the text length (as you are typing), like MS does.
8925 2007-09-12 Jonathan Pobst <monkey@jpobst.com>
8927 * ToolStrip.cs: Fixup preferred size calculations for vertical toolbars.
8928 Override GetPreferredSizeCore to perform calculations. Remove custom
8929 autosize logic. [Fixes bug #82739]
8931 2007-09-12 Jonathan Pobst <monkey@jpobst.com>
8933 * TextBoxBase.cs: Modified should default to false.
8935 2007-09-11 Jonathan Pobst <monkey@jpobst.com>
8937 * Control.cs: Update the anchoring distances even when layout is supspended.
8938 Patch provided by George fixes bug #82805.
8940 2007-09-11 Jonathan Pobst <monkey@jpobst.com>
8942 * Control.cs: Provide a setter for ExplicitHeight.
8943 * TextBoxBase.cs: Now that we have the implementation for explicit heights,
8944 remove the hacks in here for requested_height.
8947 2007-09-11 Jonathan Pobst <monkey@jpobst.com>
8949 * ScrollBar.cs: Fix an issue reported on the lists where setting a scrollbar's
8950 Maximum to lower that its current Value caused an ArgumentException by setting
8951 the Value to the new Maximum.
8953 2007-09-11 Jonathan Pobst <monkey@jpobst.com>
8955 * ThemeWin32Classic.cs: Math is hard! Fix some math so that the TrackBar
8956 handle moves to the closest tick when it is being dragged.
8959 2007-09-11 Jonathan Pobst <monkey@jpobst.com>
8961 * ToolStripManager.cs: When we have added MDI buttons onto a MenuStrip, we
8962 can't let them count as real items when calculating where to merge in the
8963 user's items. [Fixed bug #82786]
8965 2007-09-10 Jonathan Pobst <monkey@jpobst.com>
8967 * ToolStripMenuItem.cs: Add a parent type check so we don't crash on people
8968 who want to add a menu item directly onto a toolstrip.
8969 [Fixes bug #82775, part II]
8971 2007-09-10 Jonathan Pobst <monkey@jpobst.com>
8973 * StatusStrip.cs: Synchronize SetDisplayedItems with the ToolStrip version.
8974 * ToolStrip.cs: If a ToolStripItem set to not visible is added to a ToolStrip,
8975 don't set it to available.
8976 * ToolStripItem.cs: When Visible is changed, tell the owner to perform a layout.
8977 [Fixes bug #82727, part II]
8979 2007-09-10 Jonathan Pobst <monkey@jpobst.com>
8981 * StatusStrip.cs: Change item placement to None if not visible.
8982 * ToolStripItem.cs: Invalidate when InternalVisible changes.
8983 These should have been committed to fix 82723, but I missed them.
8985 2007-09-10 Jonathan Pobst <monkey@jpobst.com>
8987 * ToolStrip.cs: Make sure ItemClicked is raised before the ToolStripItem's
8988 Click, and that it is only called once.
8989 * ToolStripMenuItem.cs: Call OnClick even when there are dropdown items.
8990 * ToolStripDropDownItem.cs: Override HandleItemClick so dropdowns stay
8994 2007-09-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8996 * ColumnHeaderSample.cs: Use 5 pixels as extra height instead of 8
8998 * ThemeWin32Classic.cs: For the columns text, use 5 pixels as left padding
8999 instead of 8, just like above. Partially fixes #82734.
9001 2007-09-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9003 Patch by Ernesto Carrea <equistango at gmail.com>. Partially
9006 * ListView.cs: Remove extra space between rows in Details view (match
9008 * ThemeWin32Classic.cs: Header text should use ListView.Font, not
9011 2007-09-08 Gert Driesen <drieseng@users.sourceforge.net>
9013 * Application.cs: Modified ProductVersion to return value of
9014 AssemblyInformationVersion if available, and fallback to assembly
9015 version. Fixes bug #82746. Code formatting.
9016 * BindingSource.cs: Remove NIE from Dispose, and mark it MonoTODO
9019 2007-09-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9021 * Control.cs: When updating ZOrder for a child control,
9022 take into account the implicit ones (we need it in our controls
9023 using them). Fixes #82642.
9025 2007-09-07 Jonathan Pobst <monkey@jpobst.com>
9027 * ToolStripItem.cs: Add support for animated images.
9030 2007-09-07 Jonathan Pobst <monkey@jpobst.com>
9032 * ToolStrip.cs: Make sure we aren't drawing anything that isn't
9033 visible. [Fixes bug #82727]
9035 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
9037 * ToolStripItem.cs: If AutoSize changes the size of our item, invalidate
9038 so we repaint using the new size. [Fixes bug #82723]
9040 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
9042 * TreeView.cs: If ShowLines is true, we should ignore the FullRowSelect
9043 option. [Fixes bug #81779]
9045 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
9047 * TreeView.cs: Override HandleClick because the StandardClick style is
9048 set to false. According to MSDN (and testing), the click events should
9049 only be raised when the click occurs on a TreeNode. [Fixes bug #81739]
9051 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
9053 * ToolStripTextBox.cs: Invalidate our textbox when it loses focus, so
9054 the border will disappear. Fixes reopened #82653.
9056 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
9058 * Control.cs: If the control is autosize, and its preferred size changes
9059 when it lays out its children, tell its parent so it can be re-layed out.
9060 Fixing some of the fallout from r85433.
9062 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
9064 * ThemeWin32Classic.cs: Fix a NRE caused by r85427 because RadioButton
9065 and CheckBox share some code.
9067 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
9069 * TrackBar.cs: Only call OnScroll if we actually changed the Value of
9070 the TrackBar, not every mouse move. [Fixed bug #82718]
9072 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
9074 * ThemeWin32Classic.cs: Allow a CheckBox to be rendered like a Button
9075 under 2.0 rendering. [Fixes bug #82657]
9077 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
9079 * TreeView.cs: If we found a TreeNode to display a context menu, but
9080 it doesn't have one to show, let the TreeView display its menu
9081 instead. [Fixes bug #82680]
9083 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
9085 * ToolStripTextBox.cs: TextBox no longer call OnPaint, we need to use
9086 OnPaintInternal instead. Give the internal TextBox a Border property
9087 so it can draw itself more correctly. [Fixes bug #82653]
9089 2007-09-06 Zoltan Varga <vargaz@gmail.com>
9091 * HtmlHistory.cs HtmlWindow.cs HtmlWindowCollection.cs ListBindingHelper.cs WindowsFormsSection.cs WindowsFormsSynchronizationContext.cs: Stubs for missing 2.0 classes.
9093 2007-09-05 Everaldo Canuto <everaldo@simios.org>
9095 * ComboBox.cs: Adjust combobox button state to reflect current state when
9096 back to enabled = true. Fixes first issue of #82654.
9098 2007-09-05 Everaldo Canuto <everaldo@simios.org>
9100 * Control.cs: Fix last patch regression, prevent forms to update zorder when
9101 setting visible property.
9103 2007-09-05 Everaldo Canuto <everaldo@simios.org>
9105 * Control.cs: Update zorder after control creation in SetVisibleCore, it
9106 fix zorder for controls initially created as non visible. Fixes #82667.
9108 2007-09-04 Everaldo Canuto <everaldo@simios.org>
9110 * ThemeWin32Classic.cs: Adjust checkbox light color to ControlLightLight to
9111 mimic win32 look. Fixes #82656.
9113 2007-09-01 Zoltan Varga <vargaz@gmail.com>
9115 * FileDialogCustomPlace.cs FileDialogCustomPlacesCollection.cs:
9116 Stubs for new net 3.5 classes.
9118 2007-08-31 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9120 * ListViewItem.cs: In ListViewItemCollection operations calculate
9121 Layout for owner as well as invalidate it. Fixes part of #82642.
9123 2007-08-31 Jonathan Pobst <monkey@jpobst.com>
9125 * ToolStripItem.cs: Take Parent/Owner's Enabled state in to account
9126 when returning Enabled. [Fixes bug #82651]
9128 2007-08-30 Everaldo Canuto <everaldo@simios.org>
9130 * ToolBar.cs: Fix button size for non flat toolbars. Fixes #82368.
9132 2007-08-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9134 * ListView.cs: Put item padding info in a single place
9135 (Theme.ListViewItemPaddingWidth) to have working AutoResize on
9137 * ThemeWin32Classic.cs:
9138 * Theme.cs: Likewise.
9140 2007-08-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9142 * ListView.cs: When a ListViewSubItem instance is invalidated,
9143 invoke Invalidate on parent ListViewItem, not parent ListView.
9146 2007-08-30 Jonathan Pobst <monkey@jpobst.com>
9148 * ListView.cs, ListViewItem.cs: corcompare stuffs.
9150 2007-08-30 Jonathan Pobst <monkey@jpobst.com>
9152 * BindingMemberInfo.cs: Implement == and != operators.
9154 2007-08-30 Jonathan Pobst <monkey@jpobst.com>
9156 * HtmlElementEventArgs.cs: Implement properties.
9158 2007-08-29 Jonathan Pobst <monkey@jpobst.com>
9160 * HtmlElementErrorEventArgs.cs, HtmlElementErrorEventHandler.cs: Added.
9162 2007-08-29 Jonathan Pobst <monkey@jpobst.com>
9164 * TabControl.cs: I was looking into the MonoTODO on TabPageCollection.
9165 Add (string,string,string) to implement the imagekey. It turns out, we
9166 use the requested imagekey whereas .Net does not. So I broke ours to match
9169 2007-08-29 Jonathan Pobst <monkey@jpobst.com>
9171 * Form.cs, UserControl.cs: Override ValidateChildren, AutoValidate.
9173 2007-08-29 Jonathan Pobst <monkey@jpobst.com>
9175 * ContainerControl.cs: Implement ValidateChildren and new Validate overload.
9177 2007-08-29 Gert Driesen <drieseng@users.sourceforge.net>
9179 * FolderBrowserDialog.cs: Set Tag of newly created node, and keep it
9180 up-to-date. Fixes bug #82618.
9182 2007-08-29 Everaldo Canuto <everaldo@simios.org>
9184 * TextBoxBase.cs: Call CalculateDocument after changes Lines property to
9185 reflect document changes. Fixes #82367.
9187 2007-08-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9189 * ListView.cs: Add/fix some override differences between 1.1 and 2.0,
9190 as well as add new ones. This should make work the BackgroundImage
9191 property for ListView again.
9193 2007-08-28 Jonathan Pobst <monkey@jpobst.com>
9195 * DataGrid.cs, DataGridViewButtonColumn.cs, DataGridViewCheckBoxColumn.cs,
9196 DataGridViewComboBoxColumn.cs, DataGridViewImageColumn.cs, DataGridViewLinkColumn.cs,
9197 DataGridViewTextBoxColumn.cs, ToolTip.cs: corcompare stuffs.
9199 2007-08-28 Jonathan Pobst <monkey@jpobst.com>
9201 * Control.cs, XPlatUI.cs, XPlatUIDriver.cs, XPlatUIWin32.cs: Implement
9204 2007-08-28 Jonathan Pobst <monkey@jpobst.com>
9206 * Cursor.cs: Add HotSpot, hook into XPlatUI.GetCursorInfo.
9207 * XPlatUIWin32.cs: Implement hotspot lookup in GetCursorInfo.
9209 2007-08-28 Jonathan Pobst <monkey@jpobst.com>
9211 * RadioButton.cs: Use 2.0 rendering. Use base implementation of TextAlign.
9212 * Theme.cs, ThemeWin32Classic.cs: Implement 2.0 rendering for RadioButton.
9214 2007-08-27 Ivan N. Zlatev <contact@i-nz.net>
9216 * CursorConverter.cs: Implement conversion to InstanceDescriptor.
9218 2007-08-27 Ivan N. Zlatev <contact@i-nz.net>
9220 * GridEntry.cs: Implement GetService.
9222 2007-08-27 Jonathan Pobst <monkey@jpobst.com>
9224 * LabelEditTextBox.cs, TreeView.cs: After hiding the textbox used
9225 for label editting, make sure we focus back on the TreeView.
9228 2007-08-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9230 * ListView.cs: Add some 2.0 overrides.
9232 2007-08-27 Everaldo Canuto <ecanuto@novell.com>
9234 * Form.cs: Uses opacity var instead of Opacity property in CreateHandle
9235 because getter dont returns right value before handle creation. Thanks
9236 to George. Fixes #82569.
9238 2007-08-27 Everaldo Canuto <ecanuto@novell.com>
9240 * Theme.cs: Revert last patch, it causes error under win32.
9242 2007-08-27 Everaldo Canuto <ecanuto@novell.com>
9244 * Theme.cs: Uses Environment.SpecialFolder.DesktopDirectory instead of
9245 Environment.SpecialFolder.Desktop in Places method, Desktop returns the
9246 logical Desktop rather than the physical file system location. Fixes #82603.
9248 2007-08-26 Everaldo Canuto <ecanuto@novell.com>
9250 * MessageBox.cs: Add clipboard copy (ctrl+c) to messagebox. Thanks Andy Hume
9251 for the patch. Fixes #82568.
9253 2007-08-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9255 * ListView.cs: Add a pair of missing 2.0 ListViewItemCollection.Insert
9258 2007-08-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9260 * ListViewInsertionMark.cs: New stubbed class.
9262 2007-08-25 Gert Driesen <drieseng@users.sourceforge.net>
9264 * FolderBrowserDialog.cs: When adding folder, immediately create the
9265 directory with temporary name and rename the directory when editing
9266 finishes. This matches MS. Ensure the node for the new folder is
9267 selected and LabelEdit is disabled, when editing is either finished
9270 2007-08-25 Gert Driesen <drieseng@users.sourceforge.net>
9272 * TreeView.cs: When editing label of node, ensure node is visible.
9274 2007-08-25 Ivan N. Zlatev <contact@i-nz.net>
9276 * PropertyGridView.cs: Set the value only if it has changed.
9278 2007-08-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9280 * ListView.cs: Some more code refactoring to add support sorting
9281 with groups (now for Details view). Remove unused code also.
9283 2007-08-24 Jonathan Pobst <monkey@jpobst.com>
9285 * NodeLabelEditEventArgs.cs: EndEdit immediately when CancelEdit is called.
9286 Not a big fan of reacting immediately to a field in an EventArg, but that's
9287 the way it's done. (This is part of the previous commit that got left out.)
9289 2007-08-25 Gert Driesen <drieseng@users.sourceforge.net>
9291 * FolderBrowserDialog.cs: Removed need for separate description field.
9292 Replaced "" with string.Empty. Fixed tabindex. Ensure OK button
9293 has focus when dialog box is displayed again, regardless of what
9294 button was pressed the previous time. Set RootFolder and SelectedPath
9295 each time dialog box is displayed. This ensures the treeview is
9296 refreshed, and fixes bug #82579. Do no hide selected node in TreeView
9297 when it does not have focus. Added support for more special folders.
9299 2007-08-24 Jonathan Pobst <monkey@jpobst.com>
9301 * TreeView.cs: Create a CancelEdit method. Clone the edit_args in EndEdit
9302 before calling AfterLabelEdit. If the user calls BeginEdit in that event,
9303 it resets the edit_args.
9304 * TreeNode.cs: Call CancelEdit if the user passes cancel = true to EndEdit.
9307 2007-08-24 Gert Driesen <drieseng@users.sourceforge.net>
9309 * FolderBrowserDialog.cs: Modifies form caption and text of new folder
9310 button to match MS. Provide more meaningful exception message for
9311 invalid RootFolder value. Use zero-length string when SelectedPath
9312 is set to null. Allow non-rooted paths in SelectedPath, but ignore
9313 them in FolderBrowserTreeView. Allow folders to be created in
9314 RootFolder. Fixes bug #82576.
9316 2007-08-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9318 * ListView.cs: Correctly compute the layout_ht (height) when using groups,
9319 since we need to take into account the group headers and the margin
9321 * ListViewGroup.cs: Add a rows field to store the number of rows per
9324 2007-08-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
9326 * DateTimePicker.cs: The MS' MTB has a really stupid year formatting.
9327 Anyways, let's just follow the lead.
9329 2007-08-24 Jonathan Pobst <monkey@jpobst.com>
9331 * CheckBox.cs: Set the AutoSizeMode to GrowAndShrink.
9332 * Form.cs, GroupBox.cs: Don't skip Right or Bottom anchored
9333 controls in GetPreferredSizeCore.
9334 * ThemeWin32Classic.cs: Tweak text drawing of CheckBoxes.
9337 2007-08-24 Jonathan Pobst <monkey@jpobst.com>
9339 * PrintDialog.cs: Need to instantiate the form variable here too.
9341 2007-08-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9343 * ListView.cs: Do some reorganization to support sorting in groups,
9344 by doing the layout sequentially in ListView.Items. Also add support
9345 for the Default Group, which should be available for items with no
9347 * ListViewGroup.cs: Add support for DefaultGroup. Include new members
9348 for storing layout info also.
9349 * ListViewGroupCollection.cs: Add a DefaultGroup as part of the
9350 collection, as well as providing internal members to do a traversal
9351 including the default group (needed when doing layout/drawing).
9352 * ThemeWin32Classic.cs: When drawing group headers use internal
9353 ListViewGroupCollection members to take into account the default
9356 2007-08-23 George Giolfan <georgegiolfan@yahoo.com>
9358 * FlowLayoutPanel.cs: Add GetPreferredSizeCore. [Fixes bug #82537]
9360 2007-08-23 Jonathan Pobst <monkey@jpobst.com>
9362 * TreeView.cs: IsInputKey: don't ask for any keys if the handle hasn't
9363 been created. If handle is created, we want arror keys. If we are editing
9364 a node, we want things like enter, esc, home, end, page up, page down.
9365 Allows Esc to work for FolderBrowserDialog.
9367 2007-08-23 Jonathan Pobst <monkey@jpobst.com>
9369 * ColorDialog.cs, FontDialog.cs: Set the form's CancelButton so that
9370 they close when ESC is pressed. Thanks Andy!
9372 2007-08-23 Jonathan Pobst <monkey@jpobst.com>
9374 * CommonDialog.cs: Do not instantiate form, leave that for derived classes.
9375 This way we can tell if this is a CommonDialog provided with mono, or one
9376 that is being implemented outside by a developer. If it is an external one,
9377 the developer is responsible for showing their own form. We were showing
9378 our blank form after the developer showed his.
9379 * ColorDialog.cs, FileDialog.cs, FolderBrowserDialog.cs, FontDialog.cs,
9380 PageSetupDialog.cs: Instantiate form variable in our constructor.
9383 2007-08-23 Jonathan Pobst <monkey@jpobst.com>
9385 * ListBox.cs, ListView.cs, TreeView.cs: Override IsInputCharInternal
9386 and always return true. [Fixes bug #81616]
9388 2007-08-23 Jonathan Pobst <monkey@jpobst.com>
9390 * TextBoxBase.cs: Allow 2.0 AutoSize to change the height of the
9391 TextBox. [Fixes bug #82549]
9393 2007-08-23 Gert Driesen <drieseng@users.sourceforge.net>
9395 * FileDialog.cs: When Save/Open is clicked and no filename is selected
9396 or entered then do not close the dialog. Fixes bug #82539. Removed
9399 2007-08-22 Everaldo Canuto <ecanuto@novell.com>
9401 * FileDialog.cs: Create UpdateRecentFiles and move the recent files refresh
9402 code to this method. It is calling every time filter changes. This method
9403 will help to fix the bug #80887.
9405 2007-08-22 Jonathan Pobst <monkey@jpobst.com>
9407 * CheckBox.cs: Implement AutoSize calculation.
9409 2007-08-22 Jonathan Pobst <monkey@jpobst.com>
9411 * CheckBox.cs: Use new 2.0 rendering for 2.0.
9412 * Theme.cs: Method declarations for 2.0 rendering path.
9413 * ThemeWin32Classic.cs: 2.0 rendering implementation for CheckBox.
9415 2007-08-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9417 * ListViewGroupCollection.cs: Fix a typo of the previous patch.
9419 2007-08-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9421 * ListViewGroupCollection.cs: Implement AddRange the right way, to
9422 only call Redraw on the parent one time.
9424 2007-08-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
9426 * DataGridViewRowHeaderCell.cs, DataGridViewColumnHeaderCell.cs: Implemented
9427 GetClipboardContent.
9428 * DataGridViewCell.cs: Implemented GetClipboardContent,
9429 GetEditedFormattedValue, GetFormattedValue.
9430 * DataGridView.cs: Implemented GetClipboardContent, TopLeftHeaderCell.
9432 2007-08-21 Jonathan Pobst <monkey@jpobst.com>
9434 * TableLayoutStyleCollection.cs: corcompare fix.
9436 2007-08-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
9438 * DataObject.cs: Implemented retrieval of convertible / not convertible
9441 2007-08-21 Jonathan Pobst <monkey@jpobst.com>
9443 * ToolStripItem.cs: When changing the item's text, invalidate before we resize
9444 ourselves. This ensures the entire old bounds are repainted, in case our new
9445 size is smaller. [Fixes bug #82518]
9447 2007-08-20 Everaldo Canuto <ecanuto@novell.com>
9449 * XplatUIX11.cs: Apply patch from #81588, it makes use of PointerMotionHintMask
9450 flag to make fast handle of mouse events, without this the mouse move is
9451 handled in some manner, whether it is a mouse move or not. Fixes #81588.
9453 2007-08-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9455 * ListView.cs: When doing layout calculations don't use a ref
9456 param to keep the current item; instead use its Index value (this
9457 is specially important when doing the layout with Groups
9458 and Items being sparse). Also don't take into account items added to
9459 the Group but not yet added to the main ListView.Items collection.
9461 2007-08-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9463 * ListViewGroupCollection.cs: Forgot to mimic an issue
9464 in the indexer (don't assign the ListView owner for new values).
9466 2007-08-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9468 * ListViewGroupCollection.cs: Make the string indexer use
9469 the int based indexer to re-use code, instead of duplicate the code.
9470 Also Redraw as needed and take into account null values.
9472 2007-08-20 Jonathan Pobst <monkey@jpobst.com>
9474 * StatusStrip.cs: Make sure the item's parent gets set in SetDisplayedItems.
9477 2007-08-20 Jonathan Pobst <monkey@jpobst.com>
9479 * ToolStrip.cs: Add some logic to un-focus controls in ToolStripControlHosts
9480 when other buttons are clicked or navigated to.
9482 2007-08-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
9484 * XplatUIX11.cs: Treat toolwindows as if they had no window manager, since
9485 it's XplatUIX11 that attaches them.
9487 2007-08-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
9489 * DataGridView.cs: If a column has been added, recreate the editing row.
9492 2007-08-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
9494 * TextControl.cs: Use Math.Max instead of Math.Min when deciding the length
9495 of the tag to draw. Makes disappearing text show up again.
9497 2007-08-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
9499 * StatusBar.cs: Take into account any icons when a panel has AutoSize =
9500 Contents. Fixes #82487.
9502 2007-08-19 Andreia Gaita <avidigal@novell.com>
9504 * Added HtmlElement.cs, HtmlElementCollection.cs,
9505 HtmlElementEventArgs.cs, HtmlElementEventHandler.cs
9507 2007-08-19 Andreia Gaita <avidigal@novell.com>
9509 * BindingSource.cs: Implement this, dispose and getenumerator.
9510 * DataGridViewRowCollection.cs: Move the InvalidOperationException
9511 out of AddInternal, throw it only on public Add calls. The
9512 UsingWebBrowser sample was blowing up with this when setting the
9513 DataSource after adding DataBindings, so it's likely that .net
9514 only throws this exception when Add is called directly.
9516 * ToolStripControlHost.cs: Return the hosted control's text
9517 property, and not the ToolStripItem one (it would always return
9520 * HtmlDocument.cs: Implement GetElementById and All
9521 * WebBrowser.cs: Remove exception on set_DocumentStream.
9523 2007-08-19 Everaldo Canuto <ecanuto@novell.com>
9525 * Form.cs: Fix the max and min value for opacity (0~1).
9527 2007-08-19 Everaldo Canuto <ecanuto@novell.com>
9530 * DataGridTableStyle.cs: Default header font is now null, on getter it
9531 returns datagrid font when is null. On setter permits null.
9534 - When ResetHeaderFont set header font to null.
9535 - On EndInit set grid_style.DataGrid.
9537 2007-08-19 Everaldo Canuto <ecanuto@novell.com>
9539 * TabControl.cs: Fix regression in default padding x.
9541 2007-08-19 Everaldo Canuto <ecanuto@novell.com>
9543 * TabControl.cs: Fix tab page text area removing padding. Fixes #82471.
9545 2007-08-19 Everaldo Canuto <ecanuto@novell.com>
9547 * TabControl.cs: Fix first tab drawing, when selected it must have x = 0
9548 not 2. Fixes #82229.
9550 2007-08-18 Everaldo Canuto <ecanuto@novell.com>
9552 * TabControl.cs: Fix tab size when image height is less than text height.
9553 Partially fixes #81837.
9555 2007-08-18 Everaldo Canuto <ecanuto@novell.com>
9557 * Form.cs: Add WS_EX_CONTROLPARENT to forms to make it selectable using
9558 "alt + tab". It works only for Win32, for X11 theres no way to remove window
9559 from taskbar and keep it on "alt_tab". Fixes #81722.
9561 2007-08-18 Everaldo Canuto <ecanuto@novell.com>
9563 * XplatUIX11.cs: Apply patch from Jurek Bartuszek to fix DrawReversibleFrame
9564 and DrawReversibleLine, also apply same behavior to FillReversibleRectangle.
9565 Fixes #80877 and #79418.
9567 2007-08-18 Everaldo Canuto <ecanuto@novell.com>
9569 * MenuAPI.cs: Fix popup menu position when the size is larger than distance
9570 between position and one of the screen borders. Fixes #82349.
9572 2007-08-18 Everaldo Canuto <ecanuto@novell.com>
9574 * MessageBox.cs: When there is no form that invoked the MessageBox, shows
9575 the MessageBox in the taskbar. Fixes #82457.
9577 2007-08-18 Everaldo Canuto <ecanuto@novell.com>
9579 * MessageBox.cs: Fix form size when icon is set and text height is bigger
9580 than icon. Fixes #82468.
9582 2007-08-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
9584 * ThemeWin32Classic.cs: A FixedToolWindow has border size 3.
9585 * InternalWindowManager.cs: Change HandleCalcSize to return a boolean value
9586 if handled or not. Implement WM_NCCALCSIZE for WParam == 0 as well.
9587 Refactored HandleNCCalcSize somewhat to avoid code duplication.
9588 * Form.cs: Add is_clientsize_set, set in set_ClientSize, used by
9589 FormBorderStyle to decide if we're calculating a new size from the
9590 client size or not. CreateParams: Don't fake tool windows, only the X11
9591 backend manages toolwindows manually.
9593 2007-08-17 Jonathan Pobst <monkey@jpobst.com>
9595 * Form.cs: Only reset is_visible if !IsDisposed to prevent an
9596 ObjectDisposedException.
9598 2007-08-17 Jonathan Pobst <monkey@jpobst.com>
9600 * Form.cs: Reset is_visible back to true after OnLoad. Setting this
9601 in OnLoad should not have any effect. [Fixes bug #82470]
9603 2007-08-17 Jonathan Pobst <monkey@jpobst.com>
9605 * ToolTip.cs: Add a hack to ToolTipWindow so it will still size and
9606 paint for controls that create their own ToolTipWindow instead of
9607 going through ToolTip.
9609 2007-08-17 Jonathan Pobst <monkey@jpobst.com>
9611 * ToolTip.cs: Make Hide internal instead of public to match MS API.
9613 2007-08-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9615 * ListViewGroupCollection.cs: Use generic List instead of an
9616 ArrayList, since this collection is 2.0 only.
9618 2007-08-17 Jeffrey Stedfast <fejj@novell.com>
9620 * ToolTip.cs (Hide): Made public to make the build work (should
9621 this not be public?).
9623 2007-08-17 Jonathan Pobst <monkey@jpobst.com>
9625 * ToolBar.cs, ToolStrip.cs, TreeView.cs: Use a ToolTip instead of a
9627 * ToolTip.cs: Add an internal Visible property to facilitate transition.
9629 2007-08-17 Jonathan Pobst <monkey@jpobst.com>
9631 * DrawToolTipEventArgs.cs, DrawToolTipEventHandler.cs, PopupEventArgs.cs,
9632 PopupEventHandler.cs: Make these internal for 1.1.
9633 * ThemeClearlooks.cs, ThemeWin32Classic.cs: Use TextRenderer, and modify to not
9634 use ToolTipWindow internals.
9635 * ToolTip.cs: Add 2.0 modal Show methods. Had to move a lot of stuff around to
9636 support this. A lot of stuff in the ToolTipWindow got moved to the ToolTip.
9638 2007-08-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
9640 * X11Dnd.cs: Add a null check.
9642 2007-08-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
9644 * X11Dnd.cs: MwfWindow: Try to load the control directly from the handle if
9645 nothing else succeeds. Fixes #82453.
9647 2007-08-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
9649 * XplatUIWin32.cs: PaintEventStart: validate the entire source client
9650 rectangle if we're painting to another window than the one the paint
9651 message was generated on. Simplify the code somewhat, which makes
9652 PaintEventEnd also simpler.
9654 2007-08-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
9656 * Control.cs: When changing parent of a form, let the form decide whether
9657 XplatUI.SetParent should be called or not.
9658 * Form.cs: ChangingParent: only call XplatUI.SetParent if we're not
9659 recreating the handle. If the new parent's handle isn't created, don't
9660 recreate our handle, just destroy it. CreateParams: Check if the
9661 parent's handle is created before fetching it.
9663 2007-08-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
9665 * Control.cs, Form.cs, InternalWindowManager.cs, MainMenu.cs, MdiClient.cs:
9666 Update calls to PaintEventStart/End to take a Message argument.
9667 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Update PaintEventStart/End to
9668 take a Message argument.
9669 * XplatUIWin32.cs, XplatUIX11.cs: Update PaintEventStart/End to take a
9670 Message argument, and handle the case where we don't paint to the window
9671 for which the paint message was generated.
9673 2007-08-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
9675 * XplatUIWin32.cs: Don't call Win32GetLastError directly, use
9676 Marshal.GetLastWin32Error. Plug nasty memory leak in
9677 PaintEventStart/End, we were creating a DC we weren't releasing.
9679 2007-08-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9681 * ListView.cs: Add Groups support in Details view. Also have a small
9682 method to do the layout of the group header. Don't use a separate
9683 method to do the groups calculation in Icons view, since our methods
9684 are now a little simpler.
9685 * ListViewGroup.cs: Use the more accurate `HeaderBounds' name than
9687 * ThemeWin32Classic.cs: Likewise.
9689 2007-08-16 Jonathan Pobst <monkey@jpobst.com>
9691 * Application.cs: Add FilterMessage method and rework our message loop
9694 2007-08-16 Jonathan Pobst <monkey@jpobst.com>
9696 * Application.cs: Add some methods and stub a few methods that are
9697 pretty much never used.
9699 2007-08-15 Jonathan Pobst <monkey@jpobst.com>
9701 * TreeNode.cs: Add some serialization methods.
9703 2007-08-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9705 * ListView.cs: In ListViewItemCollection have a
9706 'is_main_collection' field to not modify ListViewItem.ListView
9707 when using it as ListViewGroup.Items (and not ListView.Items)
9708 and also don't modify selection state (.Net behaviour).
9709 Instead, set group for items contained in a ListViewGroup.Items collection.
9710 * ListViewItem.cs: Simplify some code in Group setter.
9711 * ListViewGroup.cs: use the new .ctor to pass the current instance
9712 to the ItemsCollection.
9713 * ListViewGroup.cs: Set the ListView property for ListViewGroup
9714 instances when adding/removing. Also make Remove use RemoveAt, which
9715 should perform better.
9717 2007-08-14 Jonathan Pobst <monkey@jpobst.com>
9719 * Message.cs, TabControl.cs, TextBox.cs, TextBoxBase.cs: Hide some 2.0 API
9720 that crept into the 1.1 profile.
9722 2007-08-14 Jonathan Pobst <monkey@jpobst.com>
9724 * ToolBarButton.cs: Implement ImageKey.
9726 2007-08-14 Jonathan Pobst <monkey@jpobst.com>
9728 * ToolBar.cs: Implement ScaleControl/ScaleCore.
9730 2007-08-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
9732 * PictureBox.cs: OnAnimateImage/UpdateAnimateImage: Check if handle is still
9733 created, it might have gotten destroyed since we last checked. Fixes
9736 2007-08-11 Jonathan Pobst <monkey@jpobst.com>
9738 * ToolTip.cs: Remove mouse in control check from mouseleave handler so
9739 tooltip will hide when mouse is moved off the control.
9742 2007-08-11 Andreia Gaita <avidigal@novell.com>
9744 * WebBrowserBase.cs, WebBrowser.cs: add implementation
9745 using Mono.Mozilla for loading and navigating webcontrol
9747 The initial implementation was done on
9748 /trunk/mozembed/tests/browser , and copied here.
9750 2007-08-11 Gert Driesen <drieseng@users.sourceforge.net>
9752 * ThemeWin32Classic.cs: On 2.0 profile, use ForeColor and BackColor of
9753 ToolTipWindow for drawing the tooltip. Fixes bug #82408.
9755 2007-08-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
9757 * DataGridView.cs: Add support for an editing row. Fixes #82226.
9758 RowTemplateFull: throw an exception if a column doesn't have a template.
9759 * DataGridViewRowCollection.cs: AddInternal: if there are any editing rows,
9760 add the row just before it.
9761 * DataGridViewTextBoxCell.cs: Don't paint cells which are in edit mode as
9763 * DataGridViewSelectedRowCollection.cs: Don't return the editing row. Add a
9764 DataGridView field to be able to reach the grid's editing row.
9766 2007-08-10 Jonathan Pobst <monkey@jpobst.com>
9768 * ToolTip.cs: If the control's handle hasn't been created when it has a
9769 tooltip set on it, don't check to see if we need to show the tooltip. This
9770 check was causing the control's handle to be created.
9773 2007-08-10 Jonathan Pobst <monkey@jpobst.com>
9775 * TextBoxBase.cs: Fix SelectionLength when no text selected to match MS:
9777 Handle Not Created -1 0
9781 2007-08-10 Jonathan Pobst <monkey@jpobst.com>
9783 * ToolTip.cs: Hide the tooltip if the control is clicked to match MS behavior.
9786 2007-08-09 Jonathan Pobst <monkey@jpobst.com>
9788 * DrawToolTipEventArgs.cs: Don't dispose a brush we got from the respool.
9789 * ToolTip.cs: Implement some properties and owner draw.
9791 2007-08-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
9793 * DataGridView.cs: OnPaint: don't set scrollbar visibility to false then
9794 show them again, since setting visibility causes a paint, causing an
9795 endless loop (instead use a temporary and set it all when it's known if
9796 they should be shown or not). Fixes #79265.
9798 2007-08-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
9800 * DataGridView.cs: Only do a full column/row selection if a header was
9801 clicked and we're in Column/RowHeader selection mode. If shift and ctrl
9802 isn't pressed, deselect everything before selecting something.
9804 2007-08-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
9806 * DataGridView.cs: Fix SelectedRows and SelectedColumns to match MS
9807 behaviour according to bug #81075 - they are returned in the order they
9808 are selected. Fix HitTest to check if the point is within any of the
9809 headers. Allow for row/column selection when in ColumnHeader or
9810 RowHeader selection mode. Add SetSelected[Column|Row]CoreInternal for
9811 the row and column to call when their selected state changes, and
9812 updated selected_[rows|columns] whenever SetSelected* is called.
9813 * DataGridViewBand.cs: Initialize isRow correctly. Call
9814 SetSelected[Row|Column]CoreInternal when the selected state changes, and
9815 add a SelectedInternal to avoid StackOverflows.
9816 * DataGridViewColumn.cs, DataGridViewRow.cs: If DGV is ReadOnly, we're also
9817 ReadOnly no matter what.
9818 * DataGridViewSelectedColumnCollection.cs,
9819 DataGridViewSelectedRowCollection.cs: Add an InternalAddRange that adds
9820 the items in reverse order (just as MS does...)
9822 2007-08-09 Jonathan Pobst <monkey@jpobst.com>
9824 * Application.cs: Only release menustrips if Alt (MenuKey) is pressed by
9825 itself, not part of a mnemonic. [Fixes bug #82378]
9827 2007-08-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
9829 * DataGridView.cs: BeginEdit: don't allow editing of readonly cells.
9830 * DataGridViewCell.cs: Implement ReadOnly better: the cell is ReadOnly if
9831 the DGV, the column, the row, or the cell itself is readonly.
9833 2007-08-09 Gert Driesen <drieseng@users.sourceforge.net>
9835 * ThemeNice.cs: Use XplatUI.RunningOnUnix instead of checking
9837 * FileDialog.cs: Same.
9838 * TextRendered.cs: Same.
9839 * FolderBrowserDialog.cs: Same.
9840 * TextBoxBase.cs: Same.
9841 * Application.cs: Same.
9843 * ThemeClearLooks.cs: Same.
9845 2007-08-09 Gert Driesen <drieseng@users.sourceforge.net>
9847 * XplatUI.cs: Added RunningOnUnix property to be used by controls
9848 instead of duplicating these checks everywhere.
9849 * FileDialog.cs: Use case-insensitive comparison for populating the
9850 DirComboBox when not running on unix. Fixes bug #82385.
9851 * OpenFileDialog.cs: to match MS, change label of DirComboBox to
9854 2007-08-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
9856 * DataGridView.cs: SelectedRows: we need to check if selectionMode is
9857 FullRowSelect (not FullColumnSelect). Fixes #81075. Implemented
9858 BeginEdit, EndEdit, SetSelected<Cell|Row|Column>Core. Implemented row,
9859 cell and column selection with ctrl and shift pressed. Call the correct
9860 BeginEdit/EndEdit whenever we start/end editing. Move painting code to
9861 the corresponding virtual method (PaintBackground to paint background,
9863 * DataGridViewCell.cs: Implement Selected correctly, we're selected if
9864 either the column, row or the cell itself is selected.
9865 * DataGridViewRowCollection.cs: Use DGV.OnRowsAddedInternal instead of
9867 * DataGridViewRow.cs: Moved some of the painting code from DataGridView
9868 here. When the row is selected, don't select all cells. Each cell now
9869 queries the row to see if the row is selected.
9871 2007-08-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
9873 * DataGridViewColumn.cs: Throw if the SortMode conflicts with DataGridView's
9876 2007-08-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9878 * ListView.cs: In ListViewItemsCollection check that owner is
9879 not null before trying to access it (this happens quite often
9880 using Groups). Also don't duplicate calls by calling CollectionChanged
9883 2007-08-08 Jonathan Pobst <monkey@jpobst.com>
9885 * ToolStrip.cs: Record if we were activated by mouse or keyboard. Redraw
9886 when we are dismissed to clear keyboard mnemonics.
9887 * MenuStrip.cs, ToolStripDropDown.cs, ToolStripItem.cs,
9888 ToolStripMenuItem.cs: Record if we were activated by mouse or keyboard.
9889 * ToolStripItemTextRenderEventArgs.cs: Draw mnemonic underlines if menu
9890 was activated by keyboard or the OS tells us to always draw them.
9891 * ToolStripManager.cs: Setup storage for activated by mouse or keyboard.
9892 [Fixes bugs #82376, #82377]
9894 2007-08-08 Jonathan Pobst <monkey@jpobst.com>
9896 * Control.cs: If no one accepts a mnemonic, let the MenuStrip have a
9897 shot at having it because Alt was pressed.
9898 * MenuStrip.cs: When handling Alt, don't select a SystemMenuItem, select
9899 the first real menu item.
9900 * ToolStrip.cs: Don't crash when looking for a ToolStripItem to handle
9901 a mnemonic if Text is null.
9904 2007-08-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9906 * ListView.cs: In ListViewItemCollection.AddItem, don't do a linear
9907 search do check whether the item is already contained in the
9908 collection or not; instead check if the owner of the item is the same
9909 as ours. Also, remove a redundant check in the same method.
9911 2007-08-08 Jonathan Pobst <monkey@jpobst.com>
9913 * Control.cs: Allow the clip region to be set back to null.
9914 * XplatUIWin32.cs: If we are sent a null clip region, use IntPtr.Zero.
9915 [Fixes button still showing up in bug #82370 when Show Through is turned off]
9917 2007-08-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
9919 * GridEntry.cs: Add a null check.
9920 * PropertyGrid.cs: When checking for existing grid entries, ignore category
9921 entries. Fixes #82297.
9923 2007-08-07 Jonathan Pobst <monkey@jpobst.com>
9925 * OwnerDrawPropertyBag.cs: Make the serialization constructor protected
9928 2007-08-07 Jonathan Pobst <monkey@jpobst.com>
9930 * ListBox.cs: Implement ScaleControl.
9932 2007-08-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
9934 * Form.cs: Add a few ActiveMenu null checks. ActiveMenu might be null if we
9936 * MdiWindowManager.cs: Don't create a maximized menu if the child or it's
9937 parent has a menu strip. Fixes #81689.
9939 2007-08-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
9941 * ToolTip.cs: We don't get mouse events on all platforms in the exact same
9942 moments, so apply some fuzzy logic to determine if the mouse is still
9943 inside a control or not. Fixes #82288 (for the third time).
9945 2007-08-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
9947 * Control.cs: CreateControl: create implicit children as well. Fixes #82344.
9948 Don't create the child if it has been disposed already (may happen if
9949 the user closes the form the Load event).
9951 2007-08-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
9953 * ToolTip.cs: If ReshowDelay is 0, show the tooltip immediately. Fixes
9956 2007-08-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
9958 * Control.cs: Add a null check in OnParentBindingContextChanged. The parent
9959 might call us after we've been destroyed, in which case our own private
9960 parent field is null. Fixes #82326.
9962 2007-08-06 Jonathan Pobst <monkey@jpobst.com>
9964 * ToolStripDropDown.cs: Fix a failing test on X11 by adding a null
9965 check for setting the dropdown's owner.
9967 2007-08-06 Jonathan Pobst <monkey@jpobst.com>
9969 * MdiClient.cs: Fix some failing tests on X11 by adding a null check
9970 before removing system menu items.
9972 2007-08-02 Jonathan Pobst <monkey@jpobst.com>
9974 * MdiClient.cs, MdiWindowManager.cs: Support 2.0 Mdi MenuStrip
9976 * MdiControlStrip.cs: Added. These are the menu items used in mdi
9978 * ToolStrip.cs: Add a null check to mnemonics.
9979 * ToolStripDropDownMenu.cs: When using a SystemMenuItem, there is
9981 [Fixes most of bug #81689]
9983 2007-08-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
9985 * PropertyGrid.cs: Add a null-check. Fixes #82289/SVGPad.
9987 2007-08-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
9989 Use InitialDelay if ReshowDelay is zero. Fixes #82288.
9991 2007-08-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
9993 * DataGridViewCell.cs: EditType: returns
9994 DataGridViewTextBoxEditingControl always.
9996 2007-08-01 Jonathan Pobst <monkey@jpobst.com>
9998 * TextRenderer.cs: Remove the LineLimit string format flag from the
9999 DrawString fallback method so that things like buttons that aren't
10000 tall enough to draw a full line will still draw part of the text.
10001 [Fixes part of bug #82272]
10003 2007-08-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
10005 * DataGridView.cs: Implemented AutoResizeColumn(s).
10006 * DataGridViewCellStyle.cs: Added SetAlignment, fills in a StringFormat
10007 according to the Alignment.
10008 * DataGridViewColumnHeaderCell.cs, DataGridViewTextBoxCell.cs:
10009 Implement alignment and padding when painting.
10010 * DataGridViewRow.cs: SetValues: Don't create a cell if it already
10012 * DataGridViewCell.cs: Implement BorderWidths in the most primitive
10014 * DataGridViewColumnCollection.cs: Raise OnColumnAdded on the DGV when
10017 2007-07-31 Jonathan Pobst <monkey@jpobst.com>
10019 * TextBoxBase.cs: Use Control.ExplicitBounds instead of explicit_bounds,
10022 2007-07-31 Jonathan Pobst <monkey@jpobst.com>
10024 * ToolStrip.cs: Stub out drag and drop methods, fix some corcompare stuff,
10025 hide GetPreferredSize from public API.
10026 * ToolStripDropDown.cs: Override AllowItemReorder, fix AccessibleObject.
10027 * ToolStripItem.cs: Stub out drag and drop methods and events.
10028 * ToolStripManager.cs: Stub out Save/LoadSettings.
10029 * ToolStripOverflow.cs: Use renamed ToolStrip.GetPreferredSize.
10030 * ToolStripPanel.cs: Fix corcompare error.
10031 * ToolStripPanelRow.cs: Use renamed ToolStrip.GetPreferredSize.
10032 * ToolStripSplitButton.cs: Fix AccessibleObject stuff.
10033 * ToolStripSplitStackLayout.cs: Use renamed ToolStrip.GetPreferredSize.
10035 2007-07-31 Jonathan Pobst <monkey@jpobst.com>
10037 * TextBoxBase.cs: In our new GetPreferredSizeCore, return the explicit
10038 bounds height instead of PreferredHeight. Puts things back the way
10039 they were for height while still fixing the width. Fixes broken unit
10042 2007-07-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
10044 * Binding.cs: Implement 2.0 constructors and add a null check.
10046 2007-07-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
10048 * DataGridViewRowCollection.cs: Allow a null DGV in the constructor,
10049 and fix row index (off by one).
10051 2007-07-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
10053 * PropertyGridView.cs: Remove debug output.
10055 2007-07-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
10057 * Control.cs: We need to reset the is_created flags when the handle is
10058 destroyed. Fixes #82187.
10059 * XplatUIWin32.cs: In GetWindowRect don't offset screen coordinates to
10060 client coordinates if the window doesn't have a parent.
10061 Win32GetParent returns the parent or the owner, and for top-level
10062 windows with no parent (but with an owner) we were calculating the
10063 location from the location of the owner.
10064 * Form.cs: Remove incorrect fix for #82187. Don't raise OnLoad if the
10065 form has been disposed.
10066 * MdiClient.cs: Add a null-check.
10068 2007-07-30 Jonathan Pobst <monkey@jpobst.com>
10070 * TextBoxBase.cs: TextBoxBase reports itself at AutoSize, but doesn't
10071 actually do auto-sizing. Override the internal GetPreferredSizeCore
10072 so we can provide an implementation that returns the current width
10073 and preferred height. Allows anchor = right to work with TextBox 2.0.
10076 2007-07-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10078 * ListView.cs: Add support for navigating items in Groups mode, by
10079 creating a big matrix containing all rows and cols of all groups. When
10080 are in other mode than Details, pressing Up should have a similar
10081 behaviour as that one of Down (moving to the next available column if
10082 current one doesn't have an item in the requested row). Also, don't
10083 proceed to use groups if ShowGroups is false.
10084 * ListViewGroup.cs: Add an internal int field to store the starting
10085 row of the group (used by the big matrix used for navigating the
10087 * ThemeWin32Classic.cs: Don't draw headers if ListView.ShowGroups is
10090 2007-07-30 Jonathan Pobst <monkey@jpobst.com>
10092 * ToolStripDropDown.cs: When we do Show, start with the
10093 DefaultDropDownDirection, but if our popup menu is going to off-screen,
10094 modify the direction to keep it on screen. [Fixes bug #82210]
10096 2007-07-29 Gert Driesen <drieseng@users.sourceforge.net>
10098 * FileDialog.cs: Accept any FilterIndex value, and store it
10099 unmodified. When FilterIndex is less than 1, or greater than number
10100 of filters, then default to first filter. Only add filter extension to
10101 file if user did not specifiy an extension. When type of dialog is
10102 OpenFileDialog and DefaultExt is set, then only use filter extension
10103 if: CheckFileExists is true and no file wih the default extension
10104 exists, or CheckFileExists is false, and user specified file does not
10105 exist. When CheckFileExists is true, then add first extension of
10106 selected filter that matches existing file. Perform checks for
10107 existing file, overwrite and create after extension has been added to
10108 file name. When CheckFileExists is true and type is SaveFileDialog,
10109 then only consider first filter extension if DefaultExt is set.
10110 When CheckFileExists is true, then ignore DefaultExt if file with that
10111 extension does not exist. Also perform check for existing file when
10112 type is SaveFileDialog. Changed some field to constants.
10114 2007-07-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10116 * ListView.cs: Take into account the region used by header
10117 control when doing the vertical scroll (this way we invalidate
10118 the precise area, and don't get any dirty one).
10120 2007-07-27 Everaldo Canuto <ecanuto@novell.com>
10122 * FileDialog.cs: Check for valid filterIndex on button open/save.
10125 2007-07-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10127 * ListView.cs: Update some layout calculations in details view
10128 and clean the code in a pair of assignations.
10130 2007-07-26 Jonathan Pobst <monkey@jpobst.com>
10132 * ComboBox.cs, ContainerControl.cs, DataGrid.cs, FontDialog.cs, Label.cs,
10133 LinkLabel.cs, ListBox.cs, ListView.cs, ListViewItem.cs, MessageBox.cs,
10134 MonthCalender.cs, StatusBar.cs, ThemeClearlooks.cs, ThemeWin32Class.cs,
10135 ToolBar.cs, TreeView.cs: First pass at using thread-safe string measuring.
10137 2007-07-26 Jonathan Pobst <monkey@jpobst.com>
10139 * TextRenderer.cs: Use [ThreadStatic] instead of locks to improve
10140 performance of thread-safe Graphic methods. (Thanks rolf!)
10142 2007-07-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10144 * ListView.cs: When doing the layout calculations, don't calculate
10145 scroll bars before handle is created. This is unnecessary and also
10146 calculating them before handle creation item causes a number of random
10147 bugs (which begin to appear after Chris' big patch for handle creation
10150 2007-07-26 Jonathan Pobst <monkey@jpobst.com>
10152 * TextRenderer.cs: Create thread-safe versions of Graphics.MeasureString
10153 for things that don't have a Graphics object. Currently, things just use
10154 the static Hwnd.bmp_g which is not thread safe.
10156 2007-07-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
10158 * Form.cs: ShowDialog: don't destroy handles if the dialog is a common
10159 dialog. Fixes #82187.
10161 2007-07-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
10163 * DataGridViewElement.cs: Initialize state.
10164 * DataGridView.cs: Forward a few Mouse events to cells. Add
10165 GetRowInternal and GetCellInternal that doesn't unshare rows.
10166 Implement GetCellDisplayRectangle. HitTest: if the row is shared,
10167 don't use the index, but look it up. Add
10168 DataGridViewControlCollection.RemoveInternal to remove controls
10169 that Remove won't remove (scrollbars, edit control).
10170 * DataGridViewColumn.cs: Initialize State correctly.
10171 * DataGridViewColumnHeaderCell.cs, DataGridViewComboBoxCell.cs,
10172 DataGridViewHeaderCell.cs, DataGridViewRowHeaderCell.cs: Started
10174 * DataGridViewRowCollection.cs: Implemented shared rows.
10175 * DataGridViewRow.cs: Throw exceptions as MS do.
10176 * DataGridViewCell.cs: A few properties are implemented by a
10177 Get<Property> method, so move implementation there and remove the
10178 NIEX in the method. Add a bunch of OnXInternal that DataGridView
10179 calls when necessary.
10180 * DataGridViewComboBoxEditingControl.cs: Remove a few NIEX'es that just
10181 complicates matters.
10182 * DataGridViewCellCollection.cs: Add a GetCellInternal that doesn't
10185 2007-07-25 Jonathan Pobst <monkey@jpobst.com>
10187 * UpDownBase.cs: We cannot override SetBoundsCore for 2.0, which was relayout-ing
10188 the children controls. Instead, we will just set up the proper docking for the
10189 children controls so we don't have to worry about it. [Fixes bug #82188]
10191 2007-07-25 Jonathan Pobst <monkey@jpobst.com>
10193 * TreeView.cs, NodeLabelEditEventArgs.cs, LabelEditTextBox.cs: Support edit
10194 canceling and correct Before/AfterLabelEdit properties as layed out in bug
10195 81847. [Fixes bug #81847]
10197 2007-07-25 Jonathan Pobst <monkey@jpobst.com>
10199 * Label.cs: If AutoSize = true and a width or height is set, ignore it and
10200 redo the autosize. VS2005 defaults to setting the AutoSize, and then setting
10201 an explicit size based on the design-time size of the text. Since our fonts
10202 may not match this explicit size, we tend to cut off the ends of people's labels.
10204 2007-07-24 Jonathan Pobst <monkey@jpobst.com>
10206 * Menu.cs: Add some missing methods to MenuItemCollection.
10208 2007-07-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
10210 * DataGridView.cs: Added RowTemplateFull, creates a row from the templates in the columns.
10211 * DataGridViewBand.cs: DefaultHeaderCellType: initialize correctly. Resizable: if not set, check DGV.
10212 * DataGridViewColumn.cs: InheritedAutoSizeMode: if not set, check DGV. Resizable: delegate to base class. ToolTipText: Never return null. Initialize a few other properties correctly.
10213 * DataGridViewColumnCollection.cs: Add: Default column is a TextBoxColumn.
10214 * DataGridViewComboBoxCell.cs: Started implementing this, lots left still.
10215 * DataGridViewElement.cs: State defaults to Visible.
10216 * DataGridViewRowCollection.cs: Add: creates the new row based on a template.
10217 * DataGridViewTextBoxColumn.cs: SortMode: delegate to base class, but initialize to Automatic. ToString: implement correctly.
10219 2007-07-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
10221 * Control.cs: Minor 1.1 corcompare fix.
10223 2007-07-23 Jonathan Pobst <monkey@jpobst.com>
10225 * LinkLabel.cs, PrintPreviewDialog.cs, TabPage.cs, TextBox.cs,
10226 TextBoxBase.cs, ToolBar.cs: 2.0 corcompare work.
10228 2007-07-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
10230 * DataGridViewLinkColumn.cs, DataGridViewRowCollection.cs,
10231 DataGridViewImageColumn.cs, DataGridViewSelectedCellCollection.cs,
10232 DataGridViewComboBoxCell.cs, DataGridViewLinkCell.cs,
10233 DataGridViewSelectedColumnCollection.cs,
10234 DataGridViewSelectedRowCollection.cs: Corcompare work.
10236 2007-07-23 Jonathan Pobst <monkey@jpobst.com>
10238 * PrintDialog.cs: Stub UseEXDialog. I chose to stub this because
10239 it is autoset by VS2005 designer and the effect is barely noticeable.
10241 2007-07-23 Jonathan Pobst <monkey@jpobst.com>
10243 * TreeView.cs: Implement HitTest.
10245 2007-07-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
10247 * DataGridViewTextBoxCell.cs: Use DGV.EditControlInternal instead of
10248 manually adding and removing the control from the Controls
10250 * DataGridView.cs: Implement DataGridViewControlCollection. Add an
10251 EditingControlInternal property that tracks the editing control.
10252 Always keeping the scrollbars in the Controls collection, as MS
10253 testing confirms is the right behaviour.
10255 2007-07-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
10257 * ScrollableControl.cs: Fix implementation of AutoScrollPosition
10258 according to MSDN and new test.
10260 2007-07-20 Jonathan Pobst <monkey@jpobst.com>
10262 * TreeNode.cs: Implement ToolTipText.
10263 * TreeView.cs: Implement tooltips, NodeMouse* events.
10265 2007-07-20 Jonathan Pobst <monkey@jpobst.com>
10267 * TreeView.cs: Implement OnNodeMouseClick and OnNodeMouseDoubleClick.
10269 2007-07-20 Jonathan Pobst <monkey@jpobst.com>
10271 * TreeNode.cs: Implement ContextMenu, ContextMenuStrip, and Level.
10272 * TreeView.cs: Use the node's contextmenu[strip] if applicable.
10274 2007-07-20 Ivan N. Zlatev <contact@i-nz.net>
10276 * Control.cs, Form.cs, ContainerControl.cs,
10277 ScrollableControl.cs, ButtonBase.cs: Added ShouldSerialize
10278 for misc properties.
10280 2007-07-20 Jonathan Pobst <monkey@jpobst.com>
10282 * TreeNode.cs: Implement StateImageIndex and StateImageKey.
10283 * TreeView.cs: Implement StateImageList.
10285 2007-07-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
10287 * Form.cs: Don't check if the current form is the active form before
10288 activating it. Fixes #81904.
10290 2007-07-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
10292 * Form.cs: Don't check if the current form is the active form before
10293 activating it. Fixes #81904.
10295 2007-07-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
10297 * TreeView.cs: Apply patch from Tyron (tmm@aon.at). Fixes #81847.
10299 2007-07-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
10301 * Form.cs: Don't try to position the form after loading if the form was
10302 disposed. Fixes #81969.
10304 2007-07-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
10306 * PropertyGrid.cs, PropertyGridView.cs: Implemented 2.0 methods and
10307 properties. Had to change ToolBar into ToolStrip, which required a
10310 2007-07-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
10312 * PropertyGrid.cs: PropertyToolBar: Redraw the entire toolbar when it's
10313 resized, fixes part of #79829 (vertical lines in toolbar).
10314 PropertyGrid: Refactored Populate* to something that's easier to
10315 follow at least for me, as well as splitting it up into several new
10316 methods, required to update only subitems when something has
10317 changed by a popup editor or listbox. Don't use events to check
10318 when any values are changed, since the events are unreliable (we're
10319 changing the objects the events are registered with, and if the
10320 event handling requires the objects to be immutable (objects stored
10321 in hashtables for instance), the events will never be raised).
10322 * PropertyGridView.cs: Call PropertyGrid.PropertyValueChangedInternal
10323 everytime we change a value, since events are unreliable.
10324 DropDownButtonClicked: For the same reason don't compare objects to
10325 check if it has changed or not, it would require all objects to
10326 derive Equals. Fix dialog location on windows, MS is doing weird
10327 things when creating parented forms.
10328 * GridEntry.cs: Add a SelectedObject setter.
10330 2007-07-19 Jonathan Pobst <monkey@jpobst.com>
10332 * TreeNode.cs: Add some corcompare attributes.
10333 * TreeNodeCollection.cs: Implement 2.0 stuffs.
10334 * TreeView.cs: Implement some 2.0 stuffs.
10336 2007-07-18 Andreia Gaita <avidigal@novell.com>
10338 * WebBrowser.cs, WebBrowserBase.cs: add some more MonoTODOs now
10341 2007-07-19 Jonathan Pobst <monkey@jpobst.com>
10343 * ListBox.cs: Implement custom tab offsets.
10345 2007-07-18 Jonathan Pobst <monkey@jpobst.com>
10347 * ToolStripContentPanel.cs: Support System renderer.
10348 * ToolStripControlHost.cs: Set RightToLeft to default to No.
10350 2007-07-18 Jonathan Pobst <monkey@jpobst.com>
10352 * ScrollableControl.cs: Don't mess up the user's explicit bounds.
10354 2007-07-18 Jonathan Pobst <monkey@jpobst.com>
10356 * CheckBox.cs: Chain TextAlign to base implementation instead of
10357 maintaining another one.
10359 2007-07-18 Jonathan Pobst <monkey@jpobst.com>
10361 * ButtonBase.cs: Fix an incorrect string constant.
10363 2007-07-18 Jonathan Pobst <monkey@jpobst.com>
10365 * TextRenderer.cs: Use the static Graphics context in Hwnd instead
10366 of creating one for measuring strings.
10368 2007-07-18 Jonathan Pobst <monkey@jpobst.com>
10370 * ToolStrip.cs, ToolStripDropDown.cs, ToolStripDropDownMenu.cs:
10371 Implement MaxItemSize.
10373 2007-07-17 Jonathan Pobst <monkey@jpobst.com>
10375 * Control.cs: Remove per-control 1x1 Bitmap and Graphics context used
10376 for DeviceContext. Instead, use the static one available in Hwnd.
10377 Informal tests show this saves about 500k on formtest.exe.
10379 2007-07-17 Jonathan Pobst <monkey@jpobst.com>
10381 * ContainerControl.cs: Implement 2.0 AutoScaling.
10383 2007-07-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
10385 * ComboBox.cs: Work around bug #82120 (bug in mcs).
10387 2007-07-16 Jonathan Pobst <monkey@jpobst.com>
10389 * ThemeWin32Classic.cs: Allow a Flat button to be Focused and Entered.
10390 Darken the focus color.
10392 2007-07-16 Jonathan Pobst <monkey@jpobst.com>
10394 * ListBox.cs: When measuring items, if it's a CheckedListBox, add room
10396 * ThemeWin32Classic.cs: Make the checkbox bigger in a CheckedListBox and use
10397 X, Y instead of a rect for drawing text.
10398 - For ControlPaint.DrawCheckBox, center the check a little better when the
10399 checkbox is odd width. When drawing a flat checkbox, use a white background
10400 when state != inactive.
10401 [Fixes bugs #82097, 82100]
10403 2007-07-16 Gert Driesen <drieseng@users.sourceforge.net>
10405 * ListControl.cs: When changing CurrencyManager, disconnect event
10406 handlers from previous one. Fixes bug #81771. Code formatting.
10408 2007-07-15 Andreia Gaita <avidigal@novell.com>
10410 * PrintPreviewControl.cs: Remove extraneous Invalidate calls. Separate
10411 full preview invalidation from layout invalidation, and only invalidate
10412 the layout when setting zoom or other properties. Invalidation should
10413 always be done even when resetting properties with the same values as
10414 what is there. Fixes #81744 and #79830.
10416 2007-07-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10418 * ListView.cs: Implement initial support for Groups. Split some of the
10419 LayoutIcons code to render a partial list of the items (needed by
10420 items contained in ListViewGroup instances). Let the
10421 ListViewItemsCollection.ListView property be modifiable (needed when
10422 using Groups, too).
10423 * ListViewGroup.cs: Use a Bounds property rather than a Location
10424 one. Also invalidate the bounds when they get changed.
10425 * ThemeWin32Classic.cs: When drawing items, also draw the group header
10426 if ListView.Groups.Count is bigger than 0. Add a DrawListViewGroupHeader
10429 2007-07-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10431 * ListView.cs: When space gets pressed and CheckBoxes is true,
10432 don't invoke the Begin and EndUpdate methods. We are generating
10433 a redraw of the entire control without need to do so.
10435 2007-07-13 William Holmes <billholmes54@gmail.com>
10437 * Control.cs: Changing logic in FindFlatForward and
10438 FindFlatBackward to handle multiple Controls with
10440 This fixes bug 81687.
10442 2007-07-13 Jonathan Pobst <monkey@jpobst.com>
10444 * OSFeature.cs: Enable IsPresent.
10446 2007-07-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
10448 * Control.cs: Don't do anything in WmShowWindow if the control has been
10449 disposed. We can get WM_SHOWWINDOW after a control is disposed: a
10450 control is created, put on a form, the control is disposed (the
10451 form is never shown), and then we get a MapNotify, triggering a
10453 * Form.cs: Exclude the current form when sending Deactivate to all
10455 * NativeWindow.cs: Set WindowCreating to null as soon as possible,
10456 there was a race condition because assigning the handle raises
10457 events, we can get more messages, therefore trying to assign the
10458 handle again, which would fail if any of those event handlers
10459 closed/disposed the control.
10461 2007-07-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
10463 * Form.cs: Make the fix for #80775 windows-only (fixes #81957).
10465 2007-07-12 Jonathan Pobst <monkey@jpobst.com>
10467 * SystemInformation.cs, Theme.cs, XplatUI.cs, XplatUIDriver.cs,
10468 XplatUIWin32.cs: Implement SystemInformation 2.0 properties.
10470 2007-07-12 Rolf Bjarne Kvinge <RKvinge@novell.com>
10472 * DateTimePicker.cs: If there's no part format specifier, return an
10475 2007-07-12 Jonathan Pobst <monkey@jpobst.com>
10477 * FlatButtonAppearance.cs: Throw NotSupportedException for a
10478 Transparent BorderColor.
10480 2007-07-12 Rolf Bjarne Kvinge <RKvinge@novell.com>
10482 * DataGridView.cs, TextControl.cs, ProgressBar.cs, PrintDialog.cs,
10483 MessageBox.cs, ButtonBase.cs, PageSetupDialog.cs, NumericUpDown.cs,
10484 X11Dnd.cs, Binding.cs, DataGrid.cs, AxHost.cs,
10485 LinkLabelLinkClickedEventArgs.cs, TextRenderer.cs, Label.cs,
10486 LinkLabel.cs, TreeNode.cs, BindingSource.cs, TabPage.cs,
10487 TextBoxBase.cs, BindingNavigator.cs, Application.cs,
10488 ToolStripPanel.cs, TabControl.cs, ThemeClearlooks.cs, TreeView.cs:
10490 * X11Structs.cs: Remove warnings, add ToString implementations.
10492 2007-07-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
10494 * XplatUIX11.cs: Translate min/max size according to the actual min/max
10495 size, and not the current size. Fixes #81798.
10497 2007-07-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
10499 * XplatUIX11.cs: Fix #80822 again (DefWndProc can be reached before
10500 XplatUI.CreateWindow returns, in which case the hwnd isn't assigned
10501 to the control yet).
10503 2007-07-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
10505 * PropertyGridTextBox.cs: Add a method that sends any forwarded
10506 mousedowns to the contained textbox.
10507 * X11Structs.cs: More ToString implementation.
10508 * PropertyGridView.cs: Forward any mousedowns to the textbox, fixes
10511 2007-07-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
10513 * PropertyGridView.cs: Add a null-check, fixes a few tests.
10515 2007-07-10 Jonathan Pobst <monkey@jpobst.com>
10517 * TableLayoutPanelCellPosition.cs: TypeConverter.
10519 2007-07-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
10523 * PropertyGridTextBox.cs: Propagate any color changes to all contained
10525 * PropertyGridView.cs: A few color fixes.
10527 2007-07-10 Jackson Harper <jackson@ximian.com>
10529 * TextControl.cs: Remove some old unused text formatting stuff.
10531 2007-07-10 Jackson Harper <jackson@ximian.com>
10533 * TreeView.cs: Update full row select invalidation to match the
10534 newer DrawSelection... method.
10535 - Make sure to invalidate the entire width when selecting a new
10536 node, if we have full row selection enabled.
10538 2007-07-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
10540 * PropertyGridView.cs: Fix for #81800, makes text show up on initial
10541 display of properties again.
10543 2007-07-10 Jonathan Pobst <monkey@jpobst.com>
10545 * ListBox.cs: Add IntegerCollection and Add, Clear, Remove
10546 to existing collections.
10548 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
10550 * AccessibleObject.cs, RadioButton.cs: Fix some base classes
10551 that changed between 1.1 and 2.0.
10553 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
10555 * PowerStatus.cs: Added. This is just a data class, it is filled
10556 in by SystemInformation.
10558 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
10560 * Message.cs: Add op_Equality and op_Inequality.
10562 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
10564 * MenuStrip.cs: Finish corcompare work.
10566 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
10568 * LinkArea.cs: Add op_Equality and op_Inequality.
10570 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
10572 * Application.cs: Add MessageLoopCallback delegate.
10574 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
10576 * ListBox.cs: First set of 2.0 stuffs.
10578 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
10580 * Control.cs: Make an internal Height property we can override
10581 without messing up the public API.
10582 * ListBox.cs: Override HeightInternal to always return the size
10583 the user set. [Fixes bug #80466]
10585 2007-07-08 Jonathan Pobst <monkey@jpobst.com>
10587 * TableLayoutPanel.cs: Add a null check so we don't NRE trying to
10588 paint cell borders if we haven't calculated where they go yet.
10589 [Fixes bugs #82040 and #82041]
10591 2007-07-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10593 * ListView.cs: In Details view, set the location of item_control
10594 in the (0,0) position (and the header_control is thus on the
10595 item_control). This way the Bounds of the Items are relative to the
10596 ListView control (before this, they had a Bounds value without the
10597 header_control offset, which wasn't matching .Net). Fixes #82004.
10599 2007-07-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10601 * ListControl.cs: When DataSource is set to null, pass an empty
10602 array of object to SetItemsCore. This is done to clean the items
10603 in the ListContol children. Fixes #81788.
10605 2007-07-06 Jonathan Pobst <monkey@jpobst.com>
10607 * ListControl.cs: Add 2.0 stuffs.
10609 2007-07-06 Jonathan Pobst <monkey@jpobst.com>
10611 * Label.cs: Finish up 2.0 stuffs. Replace calls to Refresh with Invalidate,
10612 Refresh is overkill for just about every repaint request.
10614 2007-07-06 Jonathan Pobst <monkey@jpobst.com>
10616 * ToolStripItem.cs: TextDirection getter handles looking up Inherit for us,
10617 so remove my custom Get method and fix the property getter.
10619 2007-07-06 Jonathan Pobst <monkey@jpobst.com>
10621 * Label.cs: DefaultMargin for 2.0.
10623 2007-07-06 Jonathan Pobst <monkey@jpobst.com>
10625 * ComboBox.cs: Override IsInputCharInternal and return true. Fixes
10626 reported issue where other controls with mnemonics would steal strokes
10627 from a selected ComboBox.
10629 2007-07-06 Jonathan Pobst <monkey@jpobst.com>
10631 * ScrollOrientation.cs: Make internal for 1.1.
10632 * ScrollEventArgs.cs: Add 2.0 stuffs.
10634 2007-07-05 Jonathan Pobst <monkey@jpobst.com>
10636 * ToolStrip.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
10637 ToolStripItem.cs, ToolStripItem.cs, ToolStripItemTextRenderEventArgs.cs,
10638 ToolStripRenderer.cs, ToolStripSeparator.cs: Implement TextDirection.
10640 2007-07-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10642 * ListViewItem.cs: Implement the small 2.0 GetSubItemAt method.
10644 2007-07-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10646 * ListView.cs: Implement the so-incredibly broken 2.0
10647 VirtualItemsSelectionRangeChanged event.
10649 2007-07-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10651 * ListView.cs: When enter is pressed and selection is non empty,
10652 an OnItemActivate event must be fired.
10654 2007-07-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10656 * ListView.cs: Store the FocusedItem information as an
10657 int instead of a ListViewItem (needed by VirtualMode).
10658 Update the calls to SetFocusedItem to pass an index instead of
10660 * ListViewItem.cs: Likewise. Also, in VirtualMode retrieve
10661 the Focused state from the owner ListView.
10663 2007-07-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10665 * ListView.cs: Set ListView.focused_item from ListViewItem.Focused
10666 property. Also, invalidate previous focused item in the mentioned
10667 property (match .Net).
10669 2007-07-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10671 * ListView.cs: Implement 2.0 FocusedItem property setter.
10673 2007-07-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10675 * ListView.cs: Implement 2.0 TopItem property setter.
10677 2007-07-03 Jonathan Pobst <monkey@jpobst.com>
10679 * StatusStrip.cs: The default renderer is System.
10680 * ToolStrip.cs, ToolStripManager: Now that we have System renderer, use it
10681 if the user specifies it.
10682 * ToolStripDropDown.cs: Don't reset our Renderer on changing OwnerItem
10683 if we are ManagerRenderMode.
10684 * ToolStripMenuItem.cs: Calculate our text color better.
10685 * ToolStripRenderer.cs, ToolStripProfessionalRenderer.cs: Move some stuff
10686 from Professional to the base class based off working with the System renderer.
10687 * ToolStripSystemRenderer.cs: Added.
10689 2007-07-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10691 * ListView.cs: I'm so lame - the real name is HitTest, not HitInfo.
10693 2007-07-02 Jonathan Pobst <monkey@jpobst.com>
10695 * ToolTip.cs: Implement 2.0 Tag property.
10697 2007-06-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10699 * ListView.cs: Implement 2.0 HitTest methods.
10701 2007-06-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10703 * ListViewItem.cs: Add a 2.0 bool Hot property, to tell whether the
10704 item is under the pointer or not (sugar). Also remove the TODO
10705 regarding to the cursor changes in OneClick activation.
10706 * ThemeWin32Classic.cs: When HotTracking is true and we are drawing
10707 the subitems use the parent's HotFont if UseItemStyleForSubItems is
10708 true; otherwise don't show the underline style.
10710 2007-06-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10712 * ListView.cs: In ItemControl.ItemsMouseMove, refactor
10713 the code to retrieve the item at position only one time. Also
10714 change cursor when Activation is ItemActivation.OneClick as well
10715 as invalidate the item if HotTracking is true (to show/hide the
10716 underline style). Add an internal HotItemIndex property to retrieve
10717 the current hot item's index.
10718 * ListViewItem.cs: Add an internal HotFont property to cache the
10719 font used when HotTracking is true and the pointer moves within the
10721 * ThemeWin32Classic.cs: When drawing the item's text, use Font or
10722 HotFont depending on the hot state of the item.
10724 2007-06-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10726 * ListView.cs: Implement 2.0 HotTracking property.
10728 2007-06-21 Jonathan Pobst <monkey@jpobst.com>
10730 * ToolStripControlHost.cs: If our hosted control never got created,
10731 don't try to dispose it. [Fixes bug #81909]
10733 2007-06-21 Jonathan Pobst <monkey@jpobst.com>
10735 * TableLayoutPanel.cs: Implement ScaleCore, ScaleControl.
10737 2007-06-21 Jonathan Pobst <monkey@jpobst.com>
10739 * TableLayoutPanel.cs: Implement CellBorderStyle. [Fixes bug #81884]
10741 2007-06-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10743 * ThemeWin32Classic.cs: In OwnerDraw mode draw subitems only for
10745 * DrawListViewColumnHeaderEventArgs.cs:
10746 * DrawListViewSubItemEventArgs.cs: Add padding to the bounds when drawing text
10747 using the DrawText () methods.
10749 2007-06-19 Jonathan Pobst <monkey@jpobst.com>
10751 * ToolStripProfessionalRenderer.cs: Put back clearing a ToolStripDropDown's
10752 background which got erased in my changes yesterday.
10754 2007-06-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10756 * ListViewItem.cs: Actually set bounds for subitems in Details view
10758 * ThemeWin32Classic.cs: Refactor the drawing code for subitems, so we
10759 can invoke from the owner draw routines if we need it. Also, add
10760 support for Owner draw in Details view.
10762 2007-06-18 Jonathan Pobst <monkey@jpobst.com>
10764 * ToolStripDropDownMenu.cs, ToolStripItem.cs, ToolStripLabel.cs,
10765 ToolStripMenuItem.cs, ToolStripProfessionalRenderer.cs: Respect the
10766 ShowImageMargin setting, properly align text in a ToolStripLabel
10767 hosted on a ToolStripDropDown.
10769 2007-06-18 Jonathan Pobst <monkey@jpobst.com>
10771 * ToolStrip.cs, ToolStripContentPanel.cs, ToolStripDropDownMenu.cs,
10772 ToolStripProfessionalRenderer.cs: Refactor and clean up some rendering code.
10774 2007-06-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10776 * DrawListViewSubItemEventArgs.cs: Actually implement its methods.
10778 2007-06-18 Jonathan Pobst <monkey@jpobst.com>
10780 * ToolStripLabel.cs: If the label is on a dropdown, adjust the text
10781 location to match ToolStripMenuItems.
10783 2007-06-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10785 * DrawListViewColumnHeaderEventArgs.cs:
10786 * ThemeWin32Classic.cs: Implement 2.0 OwnerDraw support for
10787 column headers in ListView.
10789 2007-06-15 Jonathan Pobst <monkey@jpobst.com>
10791 * UserControl.cs: Implement AutoSize.
10793 2007-06-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10795 * DrawListViewItemEventArgs.cs:
10797 * ThemeWin32Classic.cs: Implement basic support for 2.0 OwnerDraw in
10800 2007-06-15 Jonathan Pobst <monkey@jpobst.com>
10802 * ToolStripDropDownItemAccessibleObject.cs: Added.
10803 * ToolStripDropDownItem.cs, ToolStripItem.cs, ToolStripMenuItem.cs,
10804 ToolStripOverflow.cs, ToolStripOverflowButton.cs, ToolStripPanel.cs,
10805 ToolStripProgressBar.cs, ToolStripSeparator.cs, ToolStripSplitButton.cs,
10806 ToolStripTextBox.cs: corcompare work.
10808 2007-06-14 Jonathan Pobst <monkey@jpobst.com>
10810 * OSFeature.cs, StatusStrip.cs, TabControl.cs, TableLayoutSettings.cs,
10811 TableLayoutStyle.cs, TableLayoutCollection.cs, ToolStripContentPanel.cs,
10812 ToolStripControlHost.cs, ToolStripDropDown.cs, ToolStripDropDownButton.cs:
10815 2007-06-14 Jonathan Pobst <monkey@jpobst.com>
10817 * OSFeature.cs: Add IsPresent.
10818 * PrintPreviewControl.cs: Add RightToLeft.
10819 * SplitContainer.cs: Add AutoScrollOffset, ScaleControl.
10820 * SplitterPanel.cs: Add AutoSizeMode.
10822 2007-06-13 Jonathan Pobst <monkey@jpobst.com>
10824 * LayoutEventArgs.cs: Add 2.0 AffectedComponent.
10825 * MdiClient.cs: Add 2.0 ScaleControl.
10826 * NativeWindow.cs: Implement 2.0 interface IWin32Window.
10827 * NumericUpDownAccelerationCollection.cs: Add [ListBinding].
10829 2007-06-13 Jonathan Pobst <monkey@jpobst.com>
10831 * Form.cs: Implement some scaling methods, stub some RTL methods,
10834 2007-06-13 Jonathan Pobst <monkey@jpobst.com>
10836 * Control.cs: corcompare work.
10837 * FlatButtonAppearance.cs, FolderBrowserDialog.cs: Add TypeConverters.
10839 2007-06-13 Jonathan Pobst <monkey@jpobst.com>
10841 * ControlPaint.cs, Theme.cs, ThemeWin32Classic.cs: Implement
10842 ControlPaint 2.0 stuffs.
10844 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
10846 * ThreadExceptionDialog.cs: Add 2.0 stuffs.
10848 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
10850 * UpDownBase.cs: Add 2.0 stuffs.
10852 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
10854 * NumericUpDown.cs: Add 2.0 stuffs.
10856 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
10858 * NotfiyIcon.cs: Add MouseDoubleClick event, hook up MouseClick event.
10860 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
10862 * ErrorProvider.cs: Implement 2.0 stuffs.
10864 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
10866 * DomainUpDown.cs: Implement 2.0 stuffs.
10868 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
10870 * CheckedListBox.cs: Fix RefreshItems signature.
10872 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
10874 * PictureBox.cs: Implement 2.0 stuffs.
10876 2007-06-12 Andreia Gaita <avidigal@novell.com>
10878 * TabControl.cs: Check if there are tabpages before checking
10879 the selected index - fix #81802 (font changes raise a ResizeTabs
10880 call on controls.add, which blew up nicely with no tabpages)
10882 2007-06-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10885 * ListViewItem.cs: Implement 2.0 ItemSelectionChanged event.
10887 2007-06-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10890 * ListViewItem.cs: In VirtualMode the selection information
10891 resides in the ListView, rather than in the Items. Also, throw
10892 InvalidOperationExceptions when VirtualMode is being used and
10893 CheckedItemCollection is accessed.
10895 2007-06-08 Jonathan Pobst <monkey@jpobst.com>
10897 * ComboBox.cs: Add ScaleControl.
10899 2007-06-08 Jonathan Pobst <monkey@jpobst.com>
10901 * ButtonBase.cs: ButtonBaseAccessibleObject.State should not be visible to 1.1.
10903 2007-06-08 Jonathan Pobst <monkey@jpobst.com>
10905 * GroupBox.cs: Add 2.0 stuffs.
10907 2007-06-08 Jonathan Pobst <monkey@jpobst.com>
10909 * Panel.cs: Add autosize properties/event.
10911 2007-06-07 Jonathan Pobst <monkey@jpobst.com>
10914 - When we remove a control, remove it from the collection before performing the layout.
10915 - Setup an internal property for explicit_bounds.
10916 - Don't let the UpdateBounds in CreateHandle overwrite our explicit bounds.
10917 - Perform a layout when we set a new AutoSizeMode.
10919 2007-06-07 Jonathan Pobst <monkey@jpobst.com>
10921 * ScrollableControl.cs: Add 2.0 stuffs.
10923 2007-06-06 Jonathan Pobst <monkey@jpobst.com>
10925 * ScrollBar.cs: Add 2.0 stuffs.
10927 2007-06-06 Jonathan Pobst <monkey@jpobst.com>
10929 * Splitter.cs: Add 2.0 stuffs.
10931 2007-06-06 Jonathan Pobst <monkey@jpobst.com>
10933 * SplitContainer.cs: Apply patch from Neil Cawse <neilcawse@geotab.com>
10934 to have BindingContext simply use base implementation.
10936 2007-06-06 Jonathan Pobst <monkey@jpobst.com>
10938 * ColumnHeader.cs: corcompare fix.
10940 2007-06-06 Jonathan Pobst <monkey@jpobst.com>
10942 * Button.cs: corcompare fixes.
10943 * ButtonBase.cs: corcompare fixes, add ButtonBaseAccessibleObject.State.
10945 2007-06-06 Jonathan Pobst <monkey@jpobst.com>
10947 * Button.cs: Override GetPreferredSizeCore.
10948 * ButtonBase.cs: PerformLayout after changing properties that can affect
10949 AutoSize. Simplify some mouse/keyboard code.
10950 * Control.cs: PerformLayout after changing Padding if AutoSize = true.
10951 * MouseEventArgs.cs: Make Location internal for 1.1.
10952 * TextRenderer.cs: Make MeasureTextInternal (string, Font, bool) internal for 1.1.
10953 * Theme.cs: Add CalculateButtonAutoSize.
10954 * ThemeWin32Classic.cs: Implement CalculateButtonAutoSize.
10956 2007-06-05 Miguel de Icaza <miguel@novell.com>
10958 * TreeNodeCollection.cs: Applied patch from Neil Cawse <neilcawse@geotab.com>
10960 2007-06-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10962 * ListViewItem.cs: We can't cache Bounds in VirtualMode
10963 since we can get different item instances every time we retrieve it.
10965 2007-06-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10967 * ListView.cs: Work around for #81602, since an unkown an pretty
10968 infrequent condition appears only in some systems (old linux boxes, it
10971 2007-06-04 Jonathan Pobst <monkey@jpobst.com>
10973 * Button.cs: Completely reformat and a little refactor to bring
10974 this closer to Mono circa 2007.
10976 2007-06-04 Jonathan Pobst <monkey@jpobst.com>
10978 * CheckBox.cs, Form.cs, RadioButton.cs: Change call to ButtonBase.Redraw
10979 to be ButtonBase.Invalidate.
10981 2007-06-04 Jonathan Pobst <monkey@jpobst.com>
10983 * ButtonBase.cs: GetPreferredSize is 2.0 only. Fixes build.
10985 2007-06-04 Jonathan Pobst <monkey@jpobst.com>
10987 * ButtonBase.cs: Completely reformat and a little refactor to bring
10988 this closer to Mono circa 2007.
10990 2007-06-01 Everaldo Canuto <ecanuto@novell.com>
10992 * Label.cs: Fixes preferred sizes for 2.0 profile, also adjust some
10993 values for autosize. Fixes #80137.
10995 2007-06-01 Jonathan Pobst <monkey@jpobst.com>
10997 * Control.cs: Don't perform layout when AutoSize changes.
10998 * Form.cs: Perform layout in AutoSize override. Don't set ClientSize
10999 directly when autosizing, use SetBounds with BoundsSpecified.None.
11000 Fixes unit tests my last commit broke.
11002 2007-06-01 Jonathan Pobst <monkey@jpobst.com>
11004 * Control.cs: Perform layout when AutoSize changes.
11005 * Form.cs: Implement AutoSizing.
11007 2007-06-01 Chris Toshok <toshok@ximian.com>
11009 * DataGrid.cs: remove the XXX'ed check at the top of
11010 ProcessGridKey. fixes #80464.
11012 2007-06-01 Chris Toshok <toshok@ximian.com>
11014 * DataGridTextBoxColumn.cs: TextBox.TextChanged event handler
11015 adding idempotent (add/remove in Edit()), and also make sure we
11016 don't add it until after we set the text, so it's not tripped in
11017 Edit(). Fixes unit test regression.
11019 2007-06-01 Jonathan Pobst <monkey@jpobst.com>
11021 * Control.cs: In UpdateBounds, only recalculate anchor distances if the
11022 change is user explicit, not when the layout engine moves stuff. Fixes
11023 anchoring to bottom and right. [Fixes bug #81790]
11025 2007-06-01 Andreia Gaita <avidigal@novell.com>
11027 * PrintDialog.cs: Add collation preview thumbnails. Fixes #80726.
11029 2007-06-01 Andreia Gaita <avidigal@novell.com>
11031 * ContainerControl.cs:
11032 Fire enter event for common ancestor if it is not a ContainerControl.
11033 Send focus to the active_control and not the 'value', the active
11034 control might have been changed in one of the events fired.
11035 Definitely fixes #80159.
11037 2007-06-01 Andreia Gaita <avidigal@novell.com>
11039 * DataGrid.cs: Finish editing when focus leave the datagrid. Fixes #80159.
11041 2007-06-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
11043 * PropertyGrid.cs: Anchor the help description to the bottom of the
11044 help panel and refactor SelectGridItem into a
11045 SelectGridItemInternal that can be set to null (and update it to
11046 clear the help texts when it is set to null). Set root item to null
11047 when there's no SelectedObject. Fixes #80438.
11048 * ScrollableControl.cs: In Recalculate we need to ResumeLayout(true)
11049 when we're recalculating after a resize (only).
11051 2007-05-31 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11053 * ListView.cs: Implement 2.0 RedrawItems method.
11055 2007-05-31 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11057 * ListControl.cs: Disconnect PositionChanged and ItemChanged
11058 handlers from previous data manager when DataSource is set to
11059 null. Fixes #81771.
11061 2007-05-31 Jackson Harper <jackson@ximian.com>
11063 * TextBoxBase.cs: These seem to be the correct values.
11065 2007-05-31 Everaldo Canuto <ecanuto@novell.com>
11067 * FileDialog.cs: When close dialog with ok set filterindex using combobox
11068 value. Fixes #81784.
11070 2007-05-31 Jonathan Pobst <monkey@jpobst.com>
11072 * Control.cs: Implement 2.0 scaling methods.
11074 2007-05-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
11076 * ProgressBar.cs, WebBrowserBase.cs, Control.cs, MaskedTextBox.cs,
11077 MessageBox.cs, PropertyGrid.cs, RichTextBox.cs: Fix warnings and
11080 2007-05-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
11082 * ProgressBar.cs: Implemented missing 2.0 members.
11084 2007-05-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
11086 * Control.cs: Corcompare issues.
11087 * MessageBox.cs: Implemented missing 2.0 functions.
11089 2007-05-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
11091 * CheckedListBox.cs, ListBox.cs, ListControl.cs, ComboBox.cs:
11092 Implemented more 2.0 members.
11094 2007-05-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
11096 * Application.cs: Try to avoid NRE when Assembly.GetEntryAssembly is
11097 null (strange, but it seems to happen when running unit tests).
11099 2007-05-30 Andreia Gaita <avidigal@novell.com>
11101 * ContainerControl.cs: Set active_control even earlier, before
11102 firing any events, and undo it if validation returns false.
11104 2007-05-30 Andreia Gaita <avidigal@novell.com>
11106 * ContainerControl.cs: Raise Validation and Enter/Leave events
11107 even if there is no Form and set active_control earlier, just
11108 before firing Enter events (toshok's patches). Fixes #80647.
11110 2007-05-30 Jackson Harper <jackson@ximian.com>
11112 * TextControl.cs: Redid the pageup/pagedown a little to simplify
11113 things and fix bug #81311.
11115 2007-05-30 Jackson Harper <jackson@ximian.com>
11117 * X11Dnd.cs: Now that we have our own event loop, we need to
11118 cancel when we get a mouseup but it won't be accepted.
11120 2007-05-30 Chris Toshok <toshok@ximian.com>
11122 * DataGrid.cs (set_CurrentCell): guard against negative
11125 * DataGridColumnStyle.cs (CheckValidDataSource): just use the
11126 array index syntax instead of looping over the property names.
11128 * DataGridTextBoxColumn.cs: add a changed handler on the textbox,
11129 and set IsInEditOrNavigateMode to false there.
11131 2007-05-30 Jackson Harper <jackson@ximian.com>
11133 * TreeView.cs: Make sure we don't get a bad visible order when
11134 setting to the top node. Fixes some misc crashing in
11137 2007-05-30 Andreia Gaita <avidigal@novell.com>
11139 * UserControl.cs: Add 2.0 AutoSizeMode
11141 2007-05-29 Everaldo Canuto <ecanuto@novell.com>
11143 * DataGridTextBoxColumn.cs: Fix textbox horizontal offset.
11145 2007-05-29 Everaldo Canuto <ecanuto@novell.com>
11147 * DataGridTextBoxColumn.cs: Fix textbox position to prevent override grid
11148 lines. Fixes #80285.
11150 2007-05-29 Everaldo Canuto <ecanuto@novell.com>
11152 * DataGridColumnStyle.cs: Add char trimming column header text format.
11154 2007-05-29 Everaldo Canuto <ecanuto@novell.com>
11156 * DataGridColumnStyle.cs: Fix grid header arrow drawing over column name.
11159 2007-05-29 Jackson Harper <jackson@ximian.com>
11161 * TreeNode.cs: Fix off by one on calculating whether or not a node
11164 2007-05-29 Jonathan Pobst <monkey@jpobst.com>
11166 * Control.cs: ResumeLayout(false) should recalculate anchor distances.
11167 * ScrollableControl.cs: Force an UpdateDistances when we move the
11171 2007-05-29 Andreia Gaita <avidigal@novell.com>
11173 * PageSetupDialog.cs: Fix #80728 - Changing the printer doesn't
11174 update the page setup screen.
11176 2007-05-29 Andreia Gaita <avidigal@novell.com>
11178 * PageSetupDialog.cs: Fix landscape mode.
11180 2007-05-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11182 * SystemInformation.cs: Add 2.0 IconSizeVerticalSpacing and
11183 IconSizeHorizontalSpacing.
11185 2007-05-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11187 * ListView.cs: The declaration of prev_tooltip_item should be inside
11188 a NET_2_0 conditional (avoid a warning).
11190 2007-05-28 Andreia Gaita <avidigal@novell.com>
11192 * PageSetupDialog.cs: Implement PrintPreview control to display
11193 the preview thumbnail. Change unit conversion to use
11194 PrinterUnitConvert methods.
11196 Note: there is a huge bug in ms.net where the default margins are
11197 interpreted as centimeters (?), when in fact they are set in inches. When
11198 loading the page setup dialog initially (ms.net), the default margins
11199 are set to 1 inch, and the dialog shows them with value 10, when in fact
11200 it should be 25 (properly converted). Our dialog doesn't have this bug.
11202 * Theme.cs, ThemeWin32Classic.cs: Add a CPDrawBorder override for
11204 * ControlPaint.cs: Add a DrawBorder internal method for RectangleF.
11206 2007-05-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11209 * ListViewItem.cs: Implement 2.0 ToolTipText support for listview
11212 2007-05-28 Andreia Gaita <avidigal@novell.com>
11214 * X11Dnd.cs: A direct cast to VirtualKeys is not allowed from
11215 an IntPtr on csc (it builds fine on mcs, could it be a compiler
11216 bug?), convert the ptr to Int32 first.
11218 2007-05-28 Jackson Harper <jackson@ximian.com>
11220 * X11Dnd.cs: Add a timer, so after drop, if a finish is not
11221 recieved, we will exit the dnd tracking loop.
11223 2007-05-28 Jackson Harper <jackson@ximian.com>
11225 * X11Dnd.cs: Keep tracking until the xdnd finished event is
11226 recieved. TODO: I should probably stick a timer on the dropped
11227 event, and finish the drag if the XDND Finished event never shows
11228 (because some apps don't seem to send it).
11230 2007-05-28 Everaldo Canuto <ecanuto@novell.com>
11232 * ToolBar.cs: Fix toolbar default width for button with image. Fixes
11235 2007-05-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
11237 * MonthCalendar.cs: Only mark the keypresses we actually handle as
11240 2007-05-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
11242 * MonthCalendar.cs: Set the size after initializing all the relevant
11243 variables. Fixes #81742.
11245 2007-05-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
11247 * KeyEventArgs.cs: Fix typo.
11249 2007-05-28 Gert Driesen <drieseng@users.sourceforge.net>
11251 * DateTimePicker.cs: Changed exceptions thrown by MinDate and MaxDate
11252 to match MS. Fixed MinDate to only accept value less than or equal
11253 to MaxDate on 2.0 profile and less than MaxDate on 1.0 profile.
11254 Removed TODO's that are now verified by unit tests.
11256 2007-05-27 Gert Driesen <drieseng@users.sourceforge.net>
11258 * TreeNodeCollection.cs: Minor corrections to exceptions to match
11261 2007-05-25 Jackson Harper <jackson@ximian.com>
11263 * X11Dnd.cs: Rework to make StartDrag a blocking call that runs
11264 it's own message loop.
11265 * XplatUIX11.cs: Remove some of the dnd hooks
11267 2007-05-25 Gert Driesen <drieseng@users.sourceforge.net>
11269 * XplatUIX11.cs: Change MinimumWindowSize to {Width=0,Height=0}
11270 instead of MinimizedWindowSize.
11272 2007-05-25 Jackson Harper <jackson@ximian.com>
11274 * TextBoxBase.cs: Raise textchanged when cutting and pasting text.
11276 2007-05-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
11278 * KeyEventArgs.cs: Added SuppressKeyPress.
11279 * Control.cs: Added support for SuppressKeyPress.
11281 2007-05-24 Andreia Gaita <avidigal@novell.com>
11283 * NumericUpDown.cs: Refactor code to fix regressions on #79950 and
11284 problems with PieChart. suppress_validation should not be a counter,
11285 if there are several BeginInit calls, the first EndInit will
11286 activate validation. Fix exceptions thrown by set_Value.
11287 * UpDownBase.cs: ValidateText only if it's the user editing it.
11289 2007-05-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11291 * ListControl.cs: FilterItemOnProperty should return the filtered
11292 item proeprty even if DataSource is null. The same applies for
11293 GetItemText. Fixes #80427.
11295 2007-05-24 Jonathan Pobst <monkey@jpobst.com>
11297 * Control.cs: If a control doesn't have a parent when it's Dock is
11298 set, but it has children, it needs to do a layout. Fixes some nested
11299 controls issues. [Fixes bug #81199]
11301 2007-05-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
11303 * ComboBox.cs: If there are few items in the drop down list, make it
11304 the exact size the items need, no bigger. Fixes #81612.
11306 2007-05-24 Jonathan Pobst <monkey@jpobst.com>
11308 * Application.cs: When we have captured the keyboard for a menu,
11309 check for mouse down events in case we need to close the menu.
11310 * Control.cs, Form.cs: Remove mouse down checks for menus.
11312 2007-05-24 Jackson Harper <jackson@ximian.com>
11314 * TextControl.cs: Handle tabs in non multiline mode a little
11317 2007-05-24 Jackson Harper <jackson@ximian.com>
11319 * TextControl.cs: We need to manually break apart tabbed text and
11320 move the tabs, since the system.drawing tabbing mechanism relies
11322 * TextBoxBase.cs: Move the caret properly when the user enters a
11325 2007-05-24 Jonathan Pobst <monkey@jpobst.com>
11327 * ContainerControl.cs: Don't check CanSelect before calling
11329 * ToolStrip.cs: Only do implicit mnemonics on MenuStrips. Don't
11330 release a KeyboardActive on click if it's not ours.
11332 2007-05-23 Andreia Gaita <avidigal@novell.com>
11334 * ColumnHeader.cs: Add TypeConverter
11336 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
11338 * LinkLabel.cs: Implement LinkCollection.Add with Link parameter (2.0).
11340 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
11342 * LinkLabelLinkClickedEventArgs.cs, LinkLabel.cs: Implement Button property.
11344 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
11346 * LinkLabel.cs: Implement public Padding property.
11348 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
11350 * LinkLabel.cs: Implement public FlatStyle.
11352 2007-05-23 Jonathan Pobst <monkey@jpobst.com>
11354 * Control.cs: Apply patch from George to call parent.PerformLayout
11355 when Visible is changed. [Fixes bugs #81118, 81718]
11357 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
11359 * MainMenu.cs, MenuAPI.cs: Implement Collapse event for MainMenu (2.0).
11361 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
11363 * ContextMenu.cs: Implement ProcessCmdKey with control parameter.
11365 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
11367 * ContextMenu.cs: Implement Collapse.
11369 2007-05-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
11371 * ToolBarButton.cs: Implement Name.
11373 2007-05-22 Everaldo Canuto <ecanuto@novell.com>
11375 * ToolBar.cs: Fix OnButtonDropDown to save item used in dropdown instead of
11376 use current_item, it prevents some NRE. Fixes #81675.
11378 2007-05-22 Andreia Gaita <avidigal@novell.com>
11380 * NumericUpDown.cs: Fix PieChart by not returning from UpdateEditText
11381 without updating the text.
11383 2007-05-22 Jonathan Pobst <monkey@jpobst.com>
11385 * XplatUIWin32.cs: Plug a GDI leak caused by calling Font.ToHfont ()
11386 without calling DeleteObject. [Should fix bug #81709]
11388 2007-05-22 Jackson Harper <jackson@ximian.com>
11390 * RichTextBox.cs: Set the line endings correctly, when flushing
11393 2007-05-22 Gert Driesen <drieseng@users.sourceforge.net>
11395 * XplatUIX11.cs: MinimumWindowSize on X11 is actually
11396 {Width=0,Height=0}.
11398 2007-05-22 Jackson Harper <jackson@ximian.com>
11400 * TreeView.cs: Setting top with a null node should set to the very
11403 2007-05-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
11405 * Form.cs: ShowDialog: destroy the handle when message loop is
11406 finished, matches MS behaviour. Refactor parts of WmClose into
11407 RaiseCloseEvents, that only raises events if they haven't already
11408 been raised. Fixes #81688 and #81521.
11409 * Application.cs: Don't call close on the form when exiting a modal
11410 loop, it will raise all the (Form)Closed/Closing events again if
11411 WM_CLOSE has been sent earlier on, instead call RaiseCloseEvent,
11412 which doesn'r raise any events it they have been raised before.
11414 2007-05-22 Jonathan Pobst <monkey@jpobst.com>
11416 * Control.cs: Add OnPrint.
11417 * ToolStrip.cs: Add GetChildAtPoint.
11418 * ToolStripContainer.cs: Add OnRightToLeftChanged.
11419 * ToolStripRenderer.cs: Make CreateMirrorImage internal.
11421 2007-05-22 Everaldo Canuto <ecanuto@novell.com>
11423 * MenuAPI.cs: Prevent context menu to be typed as MainMenu. Fixes #81509.
11425 2007-05-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
11427 * InternalWindowManager.cs: ToolTipShow: Don't show tooltip if the form
11428 isn't visible anymore. Fixes #81651.
11430 2007-05-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
11432 * Control.cs: WmShowWindow: Update children's z-order after setting
11433 their parent. SetParent may show the window, thereby corrupting
11434 z-order, since the window will be shown on top.
11435 * XplatUIWin32.cs: SetParent: don't call SetVisible on forms. Prevents
11436 multiple (and redundant) WM_SHOWWINDOW messages.
11437 * MdiWindowManager.cs: RaiseDeactivate: only raise after an Activate
11438 event has already been raised.
11439 * Form.cs: Change is_changing_visible_state to a counter, since
11440 SetVisibleCore can be called recursively. CreateHandle: when
11441 creating mdi children, send (De)Activated events.
11442 * MdiClient.cs: Update use of is_changing_visible_state.
11443 * Application.cs: OnThreadException: Surround exception handling with
11444 try/finally to ensure we always reset the error-handling state
11447 2007-05-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
11449 * ThemeWin32Classic.cs: DrawProgressBar: Avoid a DivideByZero exception
11452 2007-05-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11454 * ListView.cs: Use Theme.ListViewHorizontalSpacing for List and
11455 SmallIcon views, now that we have a standarized horizontal spacing.
11457 * ThemeWin32Classic.cs: ListViewHorizontalSpacing now has a value of
11458 4, just like the other views (Match .Net).
11460 2007-05-21 Jonathan Pobst <monkey@jpobst.com>
11462 * Control.cs: Delay calculating anchor distances until we actually layout.
11463 Always query the WM for the actual size and location it put us at instead of
11464 only when we send negative values.
11465 [Fixes bugs #81694, 81695]
11467 2007-05-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
11469 * Application.cs: Avoid a possible stack overflow when trying to exit
11472 2007-05-19 Marek Safar <marek.safar@gmail.com>
11474 * Theme.cs (GetHatchBrush): A key uses internal value instead of formated
11477 2007-05-19 Andreia Gaita <avidigal@novell.com>
11479 * NumericUpDown.cs: Added 2.0 methods (spin acceleration)
11480 * NumericUpDownAcceleration.cs,
11481 NumericUpDownAccelerationCollection.cs: Added 2.0
11484 2007-05-19 Gert Driesen <drieseng@users.sourceforge.net>
11486 * RichTextBox.cs: Recalculate the document after the ScrollBars
11487 property is changed. Fixes bug #81681.
11489 2007-05-18 Jonathan Pobst <monkey@jpobst.com>
11491 * DataObject.cs: Implement 2.0 methods.
11493 2007-05-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11495 * ThemeWin32Classic.cs: Draw the check marks in ListViewItems
11496 in the center of the checkbox, not in the left-top corner.
11499 2007-05-18 Jackson Harper <jackson@ximian.com>
11501 * RichTextBox.cs: Recalculate the document after the scrollbars
11502 property is changed.
11503 * TextBoxBase.cs: ScrollBars is not a flags enum...This fixes
11506 2007-05-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
11508 * CreateParams.cs: Make HasWindowManager marginally faster.
11509 * XplatUIX11.cs, Hwnd.cs: CreateWindow: Move the default location code
11510 into Hwnd so that other drivers can use it as well.
11511 * XplatUIWin32.cs: CreateWindow: If the window has a window manager get
11512 the default location from Hwnd. Fixes MDI client windows always
11513 showing up at (0,0) in Windows (Win32 won't set the default
11514 location since the window styles aren't correct).
11516 2007-05-18 Gert Driesen <drieseng@users.sourceforge.net>
11518 * TreeView.cs: Modified DoubleBuffered to just use the base
11521 2007-05-18 Jackson Harper <jackson@ximian.com>
11523 * TreeView.cs: Set the top node to the last child node when
11525 - When we get focus, if there is no selected node, use the top
11528 2007-05-18 Jonathan Pobst <monkey@jpobst.com>
11530 * KeysConverter.cs: Add CanConvertTo.
11531 * LinkLabel.cs: Add some 2.0 constructors and properties to LinkLabel.Link.
11532 * LinkConverter.cs: Added.
11534 2007-05-18 Everaldo Canuto <ecanuto@novell.com>
11536 * Cursor.cs: Apply Sebastien patch from #81669 to open file in read mode,
11537 it prevents error when file dont have write access. Fixes #81669 and #81667.
11539 2007-05-18 Everaldo Canuto <ecanuto@novell.com>
11541 * ThemeWin32Classic.cs: Check for ShowKeyboardCues true when draw toolbar
11542 button text. Fixes #79640.
11544 2007-05-18 Everaldo Canuto <ecanuto@novell.com>
11546 * Control.cs: According to MSDN controls created in the designer theres
11547 keyboard accelerators visible by default. So included check for design
11548 in ShowKeyboardCuesInternal.
11550 2007-05-18 Everaldo Canuto <ecanuto@novell.com>
11552 * ThemeWin32Classic.cs: Check for ShowKeyboardCues true when draw combobox
11553 text. Fixes #81621.
11555 2007-05-18 Everaldo Canuto <ecanuto@novell.com>
11557 * Control.cs: ShowKeyboardCuesInternal add to expose ShowKeyboardCues
11558 for 1.0, becuse ShowKeyboardCues is protected on 1.0.
11560 2007-05-17 Everaldo Canuto <ecanuto@novell.com>
11562 * Control.cs: Finish implementation of UI State using WmChangeUIState
11563 to send WM_UPDATEUISTATE to all child controls. Some hack will be needed
11564 in some controls to check for show_keyboard_cues to draw accell keys "_".
11566 2007-05-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11568 * ListBox.cs: When calculating the horizontal scrollbar
11569 in single column mode, don't use values less than 0 for
11570 Maximum. Fixes #81474.
11572 2007-05-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11574 * ListBox.cs: Throw the some missing exceptions in
11575 ListBox.ObjectCollection methods.
11577 2007-05-17 Jackson Harper <jackson@ximian.com>
11579 * TextBoxBase.cs: Recalculate the document when the word wrap
11580 value has changed. This fixes 81488.
11582 2007-05-17 Jonathan Pobst <monkey@jpobst.com>
11584 * Clipboard.cs: Implement missing GetText overload.
11586 2007-05-17 Chris Toshok <toshok@ximian.com>
11588 * Control.cs (CheckDataBindings): remove the binding_context arg
11591 * CurrencyManager.cs (OnItemChanged): fix this now that
11592 BindingManagerBase is fixed. also remove the comment telling where
11593 the fix should go. We set transfering_data to true/false around
11594 the call to PushData to keep UpdateIsBinding from being called.
11595 (ListChangedHandler): remove the extra OnMetaDataChanged call for
11596 PropertyDescriptorAdded in the 1.1 case. The extra call is
11597 actually generated by System.Data generating 2 metadata changed
11598 events of its own per column add. The fix should go there. Add a
11599 comment to that affect in our test's Assert.Ignore.
11601 * BindingManagerBase.cs: Rework PullData and PushData slightly.
11602 we keep a boolean flag (transfering_data) that keeps us from
11603 calling UpdateIsBinding multiple times if we re-enter either of
11606 * ControlBindingsCollection.cs (AddCore): remove the
11607 binding_context arg to binding.Check.
11609 * Binding.cs (IsBinding): don't check if we're binding here, just
11610 return our cached value. we update it in UpdateIsBinding.
11611 (Check): don't take the binding_context arg, we'll just use our
11612 control's. Also, for some reason MS doesn't use the data member
11613 field when getting the bindingmanager for this binding. it just
11614 uses the datasource. Make this method callable multiple times,
11615 and only do the is_null_desc stuff if manager.Position != -1 (so
11616 we don't get an exception accessing manager.Current).
11617 (UpdateIsBinding): move the code from IsBinding here.
11618 (PositionChangedHandler): call Check here to we can initialize
11619 things that require a non- -1 position.
11621 2007-05-17 Everaldo Canuto <ecanuto@novell.com>
11623 * Form.cs: When alt keys is pressed send WM_CHANGEUISTATE to top level
11626 2007-05-17 Andreia Gaita <avidigal@novell.com>
11628 * TabControl.cs: Add 2.0 methods and events, including
11629 OnEnter / OnLeave and raises it for tabpages (fixes #79869)
11630 * TabPage.cs: Add 2.0 methods
11632 2007-05-17 Everaldo Canuto <ecanuto@novell.com>
11634 * Control.cs: Implement WmUpdateUIState, show_focus_cues and
11635 keyboard_cues is properly handled by message method.
11637 2007-05-17 Jonathan Pobst <monkey@jpobst.com>
11639 * TreeViewImageIndexConverter.cs: Add 2.0 methods.
11641 2007-05-17 Jonathan Pobst <monkey@jpobst.com>
11643 * ToolStripTextBox.cs: Wire up new 2.0 Textbox methods/properties.
11645 2007-05-16 Everaldo Canuto <ecanuto@novell.com>
11648 - WmUpdateUIState added to handle state changes, it make call to
11649 OnChangeUICues event.
11650 - Fixed ShowKeyboardCues to check for MenuAccessKeysUnderlined in
11653 2007-05-16 Jonathan Pobst <monkey@jpobst.com>
11655 * ImageKeyConverter.cs: Added.
11656 * TreeViewImageKeyConverter.cs: Added.
11658 2007-05-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11660 * ToolTips.cs: Update Text if SetToolTip is called for a control
11661 already showing the tooltip, as well as restarting its timer; show
11662 tooltip if we are inside the control bounds by the time of calling
11663 SetToolTip. Inside ShowTooltip remove the check to not show the
11664 tooltip again for the active control (it is allowed by .Net to
11665 show the tooltip on the same control multiple times).
11667 2007-05-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
11669 * MaskedTextBox.cs: Small fix for Text that fixes a broken test.
11671 2007-05-16 Andreia Gaita <avidigal@novell.com>
11673 * ContainerControl.cs: only process tab key if there are no
11674 modifier keys present, otherwise the control does the
11675 tab processing, if it needs to. Fixes #81622
11676 * TabControl.cs: Fixes calculation for which tab to select on
11679 2007-05-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
11681 * MaskedTextBox.cs: Small fix for Text that fixes a broken test.
11683 2007-05-15 Jonathan Pobst <monkey@jpobst.com>
11685 * Control.cs: Make IsInputCharInternal to allow controls to
11686 override it and still match MS API.
11687 * TextBoxBase.cs: Override IsInputCharInternal and always
11691 2007-05-15 Jackson Harper <jackson@ximian.com>
11693 * TextBox.cs: Disable some of the menu options when using a
11696 2007-05-15 Jackson Harper <jackson@ximian.com>
11700 * RichTextBox.cs: Some new 2.0 methods
11702 2007-05-15 Gert Driesen <drieseng@users.sourceforge.net>
11704 * FileDialog.cs: On 1.0 profile, do not support multidotted
11707 2007-05-14 Jackson Harper <jackson@ximian.com>
11709 * TextBoxBase.cs: Implement some of the new 2.0 methods.
11710 * RichTextBox.cs: We need to override these methods on 2.0.
11711 * MaskedTextBox.cs: These are implemented now
11712 * TextControl.cs: This was off by one.
11714 2007-05-14 Jackson Harper <jackson@ximian.com>
11716 * TextControl.cs: Because the line endings are including in the
11717 text, we don't need to add them in anymore.
11719 2007-05-11 Everaldo Canuto <everaldo@simios.org>
11721 * ToolBar.cs: Fix autosize and get it working only after hadle is created,
11722 also prevent redraw in set_autosize if handle is not created. Fixes #81523.
11724 2007-05-11 Everaldo Canuto <everaldo@simios.org>
11726 * ToolBar.cs: Adjust size to default size when button theres no text and
11727 image, it fixes remaining issues from #81524.
11729 2007-05-11 Everaldo Canuto <everaldo@simios.org>
11732 - When not flat call redraw to recalculate sizes on creare handle to match
11734 - Revert 77220 because it causes some regressions in toobar
11737 2007-05-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
11739 * MaskedTextBox.cs: Update the base text whenever the text changes. MTB
11740 now actually enters a usable state.
11742 2007-05-11 Everaldo Canuto <everaldo@simios.org>
11744 * ToolBar.cs: Check for handle created in redraw to prevent unneeded size
11745 calculations, it reduces the size cauculation from 7 to 3 on a toolbar with
11748 2007-05-11 Everaldo Canuto <everaldo@simios.org>
11750 * ToolBar.cs: Save default_size on create handle to use later for buttons
11751 without text, needed to mimic win32 behavior.
11753 2007-05-11 Everaldo Canuto <everaldo@simios.org>
11755 * ToolBar.cs: Fix button layour to best fit width or height according to
11756 vertical or not. Fixes #81524.
11758 2007-05-10 Everaldo Canuto <everaldo@simios.org>
11760 * ToolBarButton.cs: When change style call ToolBar.Redraw to update
11761 toolbar size info because different styles theres different sizes.
11764 2007-05-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11766 * ThemeWinClassic.cs: For .Net 2.0 don't draw any image
11767 if we are using checkboxes, checked is true, and we have less
11768 than two images in StateImageList; for the 1.1 in the same scenario
11769 draw the first image if we have at least one image in StateImageList.
11770 Fixes part of #81191.
11772 2007-05-10 Jonathan Pobst <monkey@jpobst.com>
11774 * ToolStrip.cs, ToolStripManager.cs: We need to remove items from
11775 the owner's Items collection on merge.
11777 2007-05-10 Jonathan Pobst <monkey@jpobst.com>
11779 * ToolStrip.cs: Use new internal ToolStripItemCollection constructor.
11780 * ToolStripItemCollection.cs: Lots of fixes to when events get called
11781 and parent/owner gets changed based on gert's unit tests.
11783 2007-05-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
11785 * MaskedTextBox.cs: Started implementing parts of it.
11787 2007-05-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11789 * ListView.cs: When clicking the checkbox on the items
11790 take into account the double clicks even if we have only
11791 one image in StateImageList (only for 1.0/1.1). Also
11792 generate an extra change of checked state when we receive
11793 the second click on checkbox (match .Net behaviour).
11794 Fixes part of #81191.
11796 2007-05-10 Everaldo Canuto <everaldo@simios.org>
11798 * ThemeWin32Classic.cs: Fix text rectangles in Tooltips.
11800 2007-05-10 Jonathan Pobst <monkey@jpobst.com>
11802 * Form.cs: Move some of OnLoad to OnLoadInternal so it gets called
11803 even if OnLoad is overriden and base.OnLoad is not called.
11806 2007-05-10 Andreia Gaita <avidigal@novell.com>
11808 * TableLayoutSettings.cs: A big doh! fix and bowing down of head in
11809 shame. (I blame my ever-persisting and annoying cold)
11811 2007-05-09 Jonathan Pobst <monkey@jpobst.com>
11813 * ListView.cs: Don't eat navigation keys. Let them flow through to
11814 KeyDown/KeyPress routines. [Fixes bug #81569]
11816 2007-05-09 Jonathan Pobst <monkey@jpobst.com>
11818 * ListView.cs: When handling keys for selecting the item based off
11819 keyboard input, do not consider keys pressed with Alt or Control. Also,
11820 correctly handle keys when the Shift key is down. [Fixes bug #81578]
11822 2007-05-09 Jonathan Pobst <monkey@jpobst.com>
11824 * Control.cs: When using UseWaitCursor, we have to store the requested
11825 Cursor to use when UseWaitCursor is turned off.
11827 2007-05-09 Jonathan Pobst <monkey@jpobst.com>
11829 * Control.cs: Implement PreProcessControlMessage. Default IsInputChar
11831 * Application.cs: Use PreProcessControlMessage instead of
11833 * PreProcessControlMessage.cs: Make internal for 1.1.
11835 2007-05-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11837 * Control.cs: Add InternalContains focus property, which hast the same
11838 functionality of ContainsFocus, but also including implicit controls.
11839 * ListViewItem.cs: Use InternalContainsFocus instead of ContainsFocus,
11840 since we need to know if the focus is contained in our implicit
11841 ItemControl when calculating Layout. Fixes part of #80888.
11843 2007-05-08 Everaldo Canuto <everaldo@simios.org>
11845 * ToolTip.cs: Remove center form string alignment as it must be align to
11848 2007-05-08 Jonathan Pobst <monkey@jpobst.com>
11850 * ToolStripItemCollection.cs: Set the new item's parent and owner
11851 in Insert like we do in Add. [Fixes bug #81568]
11853 2007-05-08 Jackson Harper <jackson@ximian.com>
11855 * TreeView.cs: GotFocus differences between 1.1 and 2.0.
11856 - Off by one error in SetTop
11857 - Disable DoubeBuffering
11859 2007-05-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
11861 * ScrollableControl.cs: ScrollIControlntoView: we now only move the
11862 control as much as necessary in order to make it entirely visible,
11863 instead of centering the control in the container (matches MS
11864 behaviour). CalculateCanvasSize: we need to take the current scroll
11865 position into account when calculating the maximum canvas,
11866 otherwise the following scenario will fail: resize so that the
11867 scrollbars appear, use the scrollbars to scroll, resize again
11868 smaller, and now the canvas size is too small. Recalculate: when
11869 showing scrollbars make sure they start off at 0, and try to scroll
11870 the active control into view. Fixes #79540. HandleScrollBar: don't
11871 scroll anywhere if the scrollbar isn't visible.
11873 2007-05-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11875 * ListView.cs: When focus changed, call Layout/Invalidate
11876 in the focused item to update the selected state (should show
11877 entire label when ListView is focused, and a part of it if is not).
11878 * ListViewItem.cs: When doing layout for LargeIcon, take into account
11879 for displaying the entire label not only the Focused state of the
11880 item, but also the Focused state of the ListView (match .Net
11883 2007-05-07 Jonathan Pobst <monkey@jpobst.com>
11885 * Control.cs: Stub CanRaiseEvents, IsMirrored, and NotifyClients.
11886 Implement UseWaitCursor.
11888 2007-05-07 Jonathan Pobst <monkey@jpobst.com>
11889 Applying contributed patch from Sergey Volk.
11891 * Clipboard.cs: Implement SetDataObject retry logic and new overload
11893 * XplatUIWin32.cs: Throw an ExternalException if the clipboard set fails.
11895 2007-05-07 Jonathan Pobst <monkey@jpobst.com>
11897 * Control.cs: Implement DrawToBitmap.
11899 2007-05-07 Jonathan Pobst <monkey@jpobst.com>
11900 Applying contributed patch from Stefan Noack.
11902 * Control.cs: Add [Get|Set]AutoSizeMode.
11904 2007-05-07 Jonathan Pobst <monkey@jpobst.com>
11906 * MdiClient.cs: Unmerge menus when the last child is closed.
11908 2007-05-07 Jonathan Pobst <monkey@jpobst.com>
11910 * ToolStrip.cs: Do not call BeginMerge on DropDowns.
11911 * ToolStripManager.cs: Call Merge on DropDowns.
11914 2007-05-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
11916 * XplatUIWin32.cs: Changed Win32CreateWindow to take enums instead of
11918 * Form.cs: CreateParams: don't set WS_VISIBLE if we're changing
11919 visibility. We can't create forms visible, since we have to set the
11920 owner before making the form visible (otherwise Win32 will do
11921 strange things with task bar icons). The problem is that we set the
11922 internal is_visible to true before creating the control, so
11923 is_changing_visible_state is the only way of determining if we're
11924 in the process of creating the form due to setting Visible=true -
11925 this works because SetVisibleCore explicitly makes the form
11926 visibile afterwards anyways. Fixes #80775.
11928 2007-05-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11930 * ThemeWin32Classic.cs: When drawing ListViewItems,
11931 use StringTrimming.EllipsisCharacter if the view is Tile, Details,
11932 or LargeIcon _and_ item is not focused (match .Net behaviour).
11934 2007-05-04 Jonathan Pobst <monkey@jpobst.com>
11936 * Control.cs, Form.cs: Fix some obsolete method warnings.
11938 2007-05-04 Jonathan Pobst <monkey@jpobst.com>
11940 * Control.cs: Implement GetChildAtPoint and OnParentCursorChanged.
11941 * GetChildAtPointSkip.cs: Make internal for 1.1 profile.
11943 2007-05-04 Andreia Gaita <avidigal@novell.com>
11945 * ContainerControl.cs: Fix active_control attribution when going
11946 up the parent chain so that the first parent container gets the control
11947 and the rest of the parent containers get the child containers (skips
11948 non-containers). Fixes #80729
11950 2007-05-04 Randolph Chung <tausq@debian.org>
11952 * FileDialog.cs: Implement the SupportMultiDottedExtensions property.
11955 2007-05-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
11957 * XplatUIX11.cs: Add a TranslateWindowSizeToXWindowSize overload that
11958 takes a size parameter, since the CreateParam's size isn't true for
11959 minimized forms. Fixes #81518,
11961 2007-05-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
11963 * Form.cs: Add OnDeactivateInternal.
11964 * MdiClient.cs: Raise Deactivate event. Fixes #81409.
11966 2007-05-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
11968 * DateTimePicker.cs: CalculateDropDownLocation: do a null check before
11969 accessing the parent. Fixes #81508.
11971 2007-05-03 Chris Toshok <toshok@ximian.com>
11973 * CurrencyManager.cs (CurrencyManager.ListChangeHandler): in the
11974 2.0 block, pass listposition + 1 to ChangeRecordState when a row
11975 was added before the current listposition. Fixes the
11976 TestInsertRowBeforeCurrent unit test.
11978 2007-05-03 Jonathan Pobst <monkey@jpobst.com>
11980 * Application.cs: Add RaiseIdle.
11981 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
11982 XplatUIX11.cs: Implement RaiseIdle.
11984 2007-05-02 Jonathan Pobst <monkey@jpobst.com>
11985 corcompare work: N - Z
11989 * ScrollableControl.cs
11990 * SplitContainer.cs
11993 * SystemInformation.cs
11995 * TableLayoutControlCollection.cs
11996 * TableLayoutPanel.cs
12001 * ToolStripComboBox.cs
12002 * ToolStripContainer.cs
12003 * ToolStripContentPanel.cs
12004 * ToolStripDropDown.cs
12005 * ToolStripDropDownItem.cs
12006 * ToolStripDropDownMenu.cs
12008 * ToolStripItemCollection.cs
12009 * ToolStripMenuItem.cs
12010 * ToolStripPanel.cs
12011 * ToolStripSplitButton.cs
12014 * TreeNodeCollection.cs
12015 * TreeNodeMouseHoverEventArgs.cs
12018 2007-05-01 Everaldo Canuto <everaldo@simios.org>
12020 * ContextMenu.cs: Add public method Show with alignment property to 2.0
12021 stuff. Thanks aatdark for the patch.
12023 2007-05-01 Jonathan Pobst <monkey@jpobst.com>
12025 * GridItem.cs: Implement 2.0 Tag property.
12027 2007-05-01 Frederik Carlier <frederik.carlier@carlier-online.be>
12029 * TreeNodeCollection.cs: Fix ContainsKey and IndexOfKey methods to use
12030 count instead of Nodes.Length. [Fixes bug #81448]
12032 2007-05-01 Jonathan Pobst <monkey@jpobst.com>
12034 * ComboBox.cs: Fix paramName sent to ArgumentOutOfRangeException's.
12037 2007-05-01 Jonathan Pobst <monkey@jpobst.com>
12038 corcompare work: A - M
12039 * BindingNavigator.cs
12044 * FlowLayoutPanel.cs
12050 2007-05-01 Jonathan Pobst <monkey@jpobst.com>
12052 * Application.cs: Give toolstrips a chance to process mnemonics.
12053 * ToolStrip.cs, ToolStripDropDownButton.cs, ToolStripItem.cs,
12054 ToolStripItemTextRenderEventArgs.cs, ToolStripLabel.cs,
12055 ToolStripMenuItem.cs, ToolStripSplitButton.cs: Implement keyboard mnemonics.
12057 2007-05-01 Jackson Harper <jackson@ximian.com>
12059 * TextBoxBase.cs: Better preferred height, FixedSingle gets the
12061 - Don't set the BoundsSpecified
12063 2007-04-30 Jonathan Pobst <monkey@jpobst.com>
12065 * Application.cs: When using the toolstrip shortcut mechanism, allow the
12066 message to pass through to a regular control if it hosted by a toolstrip.
12067 * ToolStrip.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
12068 ToolStripManager.cs: Enable keyboard navigation for ToolStrips.
12070 2007-04-30 Jonathan Pobst <monkey@jpobst.com>
12072 * TextRenderer.cs: Use the flags argument when using the MeasureString
12073 fallback algorithm.
12075 2007-04-30 Jonathan Pobst <monkey@jpobst.com>
12077 * MenuStrip.cs: Don't let multiple ToolStripSeparators get added to
12078 the MDI menu item. [Fixes bug #81483]
12080 2007-04-30 Gert Driesen <drieseng@users.sourceforge.net>
12082 * DataGridViewColumn.cs: Initialize value of headercell to zero-length
12083 string. When setting Name to null, use zero-length string instead.
12085 2007-04-29 Andreia Gaita <avidigal@novell.com>
12087 * TabControl.cs: Implement missing 2.0 methods (SelectTab,
12088 DeselectTab). Implement missing 2.0 TabPageCollection methods
12089 (Add, ContainsKey, RemoveByKey, IndexOfKey)
12091 2007-04-29 Pedro MartĂnez JuliĂ¡ <pedromj@gmail.com>
12093 * DataGridViewColumn.cs: Make HeaderText take preference over Name.
12095 2007-04-29 Gert Driesen <drieseng@users.sourceforge.net>
12097 * RichTextBox.cs: In LoadFile, use StreamReader to read plain text.
12098 Fixes bug #81479. Include details of exception when LoadFile fails.
12100 2007-04-28 Alan McGovern <alan.mcgovern@gmail.com>
12102 * DrawListViewSubItemEventArgs.cs: Added missing setter
12104 2007-04-27 Andreia Gaita <avidigal@novell.com>
12106 * ToolTip.cs: Add missing 2.0 properties. Implement 2.0 Show and
12107 Hide methods (not complete). Implement missing 2.0 OnPopup event.
12109 2007-04-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12111 * ListView.cs: In ItemControl.OnMouseDown restore a pair of braces I
12112 removed in ly last commit (it was breaking the Label edit feature).
12114 * ThemeWin32Classic.cs: When drawing a ListViewItem use
12115 StringAlignment.Near for LineAlignment (match .Net).
12117 2007-04-27 Andreia Gaita <avidigal@novell.com>
12119 * TabControl.cs: Change SetTab so it adds the tabpage to the list
12120 of controls if it isn't already there - was blowing up when doing
12121 tabcontrol.TabPages[i]=new TabPage().
12122 SetTab now does a replace by removing the page at the index.
12123 Add a new InsertTab method that inserts a page in a given index
12124 instead of replacing.
12125 Implements TabPageCollection.Insert(int, TabPage).
12127 2007-04-27 Chris Toshok <toshok@ximian.com>
12129 * BindingManagerBase.cs: fill in CurrentItemChanged (and have an
12130 internal handler that can be invoked from our subclasses.) Also,
12131 add a comment to PushData about how we need to fix it.
12133 * CurrencyManager.cs: tons of changes here. trying to get things
12134 matching the behavior of .net wrt event orders (ItemChanged,
12135 CurrentChanged, PositionChanged.) I've implemented a private .net
12136 symbol (ChangeRecordState) that appears in stack traces because
12137 it's actually easier to do this than to effective inline all its
12138 various behaviors at every call site.
12140 * RelatedPropertyManager.cs: guard against an exception here by
12141 not using parent.Current if the position is set to -1 (if the
12142 parent datasource is cleared, for instance).
12144 * Binding.cs: don't parse data in PushData (this might be wrong,
12145 but it jives with MS's behavior.) Also, don't call PushData when
12146 we get a CurrentChanged event.
12148 2007-04-27 Andreia Gaita <avidigal@novell.com>
12152 WebBrowserSiteBase.cs,
12153 HtmlDocument.cs: Added stubbed out classes, no real implementations
12156 2007-04-27 Everaldo Canuto <everaldo@simios.org>
12158 * MainMenu.cs: In draw method without parameters call draw method with
12159 PaintEvent, another one (just rect) adjust rectangle and we dont need it
12160 as Rect property is already adjusted. Fixes #80694.
12162 2007-04-27 Jonathan Pobst <monkey@jpobst.com>
12164 * Application.cs: Need to handle keyboard menu deselection here.
12165 * Control.cs: Use WM_SYSKEYUP instead of WM_SYSCOMMAND to start menu keyboard
12166 navigation, allowing keyboard to work on X11.
12167 * ToolStrip.cs: Don't worry about handling the Menu key here anymore.
12169 2007-04-27 Everaldo Canuto <everaldo@simios.org>
12171 * MenuAPI.cs: When deactivate menu verify if hotkey (_) is active and redraw
12172 menu bar. It fixes some drawing issues in menu bar.
12174 2007-04-27 Everaldo Canuto <everaldo@simios.org>
12176 * MenuAPI.cs: Remove unneeded "keynav_state = KeyNavState.Idle" before
12177 Deactivate calls, Deactivate method already do it. Also ser ActiveTracker
12178 when <alt> key is pressed.
12180 2007-04-26 Everaldo Canuto <everaldo@simios.org>
12182 * XplatUIX11.cs: Simplify SystrayRemove to be like other libraries, Gtk as
12183 example just set visible to false and make this prevent from other problems.
12184 In SystrayAdd always remove pending expose. Fixes #81072.
12186 2007-04-26 Marek Safar <marek.safar@gmail.com>
12188 * TextBoxBase.cs (CaretMoved): Consider scroll maximum when scroll
12191 2007-04-26 Alan McGovern <alan.mcgovern@gmail.com>
12193 * ListView.cs: Added three missing 2.0 events and corresponding
12194 EventHandlers. Added the OwnerDraw property.
12195 * DrawListViewColumnHeaderEventHandler.cs: fixed typo
12197 2007-04-26 Alan McGovern <alan.mcgovern@gmail.com>
12199 * DrawListViewItemEventArgs.cs
12200 * DrawListViewSubItemEventArgs.cs: Brought classes up to 2.0 status.
12202 2007-04-26 Alan McGovern <alan.mcgovern@gmail.com>
12204 * TextControl.cs: Fixed typo in constructor
12206 2007-04-26 Jonathan Pobst <monkey@jpobst.com>
12208 * Application.cs: Create a shortcut path so that currently selected
12209 MenuStrips can intercept keyboard events without having focus.
12210 * Control.cs: Handle WM_SYSCOMMAND message to activate MenuStrips.
12211 * MenuStrip.cs, ToolStrip.cs, ToolStripDropDown.cs, ToolStripDropDownItem.cs,
12212 ToolStripItem.cs, ToolStripManager.cs, ToolStripMenuItem.cs: Support
12213 keyboard navigation (arrows, tab, enter, esc) on Windows. Still need to
12214 generate WM_SYSCOMMAND message in X11 for other platforms.
12215 * ToolStripProfessionalRenderer.cs: ToolStripMenuItems need to be painted
12216 in OnRenderMenuItemBackground instead of OnRenderButtonBackground.
12217 * ToolStripSplitButton.cs: Add DefaultItem property.
12219 2007-04-26 Everaldo Canuto <everaldo@simios.org>
12221 * MainMenu.cs: In OnMenuChanged pass PaintEventArgs to Draw method, it
12222 fixes some menu draw problem on Windows with border diferent from default
12223 it also fixes #81403.
12225 2007-04-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
12227 * Form.cs: Refactor WndProc into separate methods, just like Control is
12230 2007-04-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
12232 * Control.cs: set_Text: move the call to the driver into a seperate
12233 virtual method so that Form can override it.
12234 * MaskedTextBox.cs: Corcompare fixes.
12235 * Form.cs: Override UpdateWindowText and only update the styles if the
12236 form has been shown (fixes #81405).
12238 2007-04-25 Jonathan Pobst <monkey@jpobst.com>
12240 * Control.cs, Form.cs: Use the better supported WM_?BUTTONDOWN and
12241 WM_ACTIVATE messages instead of WM_MOUSEACTIVATE and
12242 WM_ACTIVATEAPP. This fixes menus not disappearing on X11 when
12243 the form lost focus or another control was clicked.
12245 2007-04-25 Gert Driesen <drieseng@users.sourceforge.net>
12247 * DataGrid.cs: Uncomment MakeTransparent calls since bug #80151 is
12250 2007-04-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
12252 * DrawListViewColumnHeaderEventHandler.cs, DrawToolTipEventArgs.cs,
12253 DrawListViewItemEventHandler.cs,
12254 DrawListViewSubItemEventHandler.cs, DrawToolTipEventHandler.cs:
12256 * X11Structs.cs: More ToString implementation.
12258 2007-04-25 Jonathan Pobst <monkey@jpobst.com>
12260 * ToolStripDropDownItem.cs: Don't lazy create a DropDown in Dispose.
12261 * ToolStripOverflowButton.cs: Don't lazy create a DropDown in HasDropDownItems.
12263 2007-04-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
12265 * Control.cs: Only raise OnVisibleChanged if we're not recreating the
12267 * FormCollection.cs: Don't add a form if it's already in the
12269 * Form.cs: Change ShowDialog () to call ShowDialog (owner) with a null
12270 according to behaviour and MSDN. The ownerWin32 is the active
12271 window at the moment when we call ShowDialog, not the context's
12272 main form (the context's main form may open another form that opens
12273 a form with ShowDialog, the win32 owner is the second form). Add
12274 and remove forms to the Application.OpenForms in other places to
12275 better match MS behaviour. Add an IsActive property that raises
12276 On(de)Activated only if the active state has changed (we were
12277 raising OnDeactivated before OnActivated while creating forms).
12278 * Application.cs: Refactor Enabling/Disabling of windows for modal
12279 dialog loops out to separate methods, and restore the thread
12280 context when we quit the method. Fixes #81407.
12282 2007-04-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12284 * ListView.cs: In ItemControl.HandleClicks, also fire
12285 2.0 MouseClick or MouseDoubleClick events on the parent,
12286 not only the Click/DoubleClick events.
12288 2007-04-24 Andreia Gaita <avidigal@novell.com>
12290 * TableLayoutSettings.cs:
12291 - Added a GetControls method and a support structure to help the
12292 TypeConverter to enumerate the controls for serialization.
12293 - Added a new serialization constructor.
12294 - Added a isSerialized flag initialized to true on the
12295 serialization constructor so that the TableLayoutPanel.LayoutSettings
12296 setter does not throw the designed NotSupportedOperation exception
12297 when the object is built through deserialization.
12298 - Implemented GetObjectData
12300 * TableLayoutPanel.cs: Added check on LayoutSettings.
12302 2007-04-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12304 * ListView.cs: Report Click and DoubleClick events to the parent
12305 from ItemsMouseUp, instead of ItemsMouseDown. This prevents us
12306 from breaking the click count state when using dialog forms (Control
12307 reports the clicks in a similar fashion). In the previous behaviour
12308 the last WM_LBUTTONUP message in a double click was sent to the
12309 ListView's form, instead of the ListView, which was breaking the click
12310 count for it. Fixes #80387.
12312 2007-04-24 Alan McGovern <alan.mcgovern@gmail.com>
12314 * BindingNavigator.cs : fixed bugs revealed by new nunit tests
12316 2007-04-24 Jonathan Pobst <monkey@jpobst.com>
12318 * ToolStripDropDownItem.cs: Lazy initialize the DropDown. This prevents
12319 us from created dropdowns for menu items that do not have subitems.
12320 * ToolStripItem.cs, ToolStripProfessionalRenderer.cs, ToolStripSplitButton.cs:
12321 Check HasDropDownItems before calling DropDown so a dropdown will not be
12322 created if it isn't needed.
12324 2007-04-24 Jackson Harper <jackson@ximian.com>
12326 * TreeView.cs: Set the first node to the selected node when we get
12327 focus if there is no selected node.
12329 2007-04-24 Andreia Gaita <avidigal@novell.com>
12331 * MimeIcon.cs: remove using blocks so that image streams are
12332 not disposed of. Fixes #80151
12334 2007-04-24 Jackson Harper <jackson@ximian.com>
12336 * TextBoxBase.cs: Fixup the height of textboxes when the control
12339 2007-04-24 Jonathan Pobst <monkey@jpobst.com>
12341 * ToolStrip.cs: Fully implement GetNextItem. Call OnParentRightToLeftChanged
12342 for each ToolStripItem when the parent's RightToLeftChanged is called.
12344 2007-04-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
12346 * ComboBox.cs: Forward ContextMenu to the underlying textbox, if any.
12348 * Control.cs: Replace GetContextMenuInternal() with ContextMenuInternal
12349 property, so that the setter can be overriden too.
12350 * TextBox.cs: Change GetContextMenuInternal() to use
12351 ContextMenuInternal.
12353 2007-04-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
12355 * ThemeWin32Classic.cs: Use a black pen to draw checkboxes, fixes
12358 2007-04-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
12360 * ThemeWin32Classic.cs: Use a black pen to draw checkboxes, fixes
12363 2007-04-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
12365 * MaskedTextBox.cs: Commit this so nobody else starts working on it and
12366 avoid duplicate work. Mostily skeleton code, it's not working at
12369 2007-04-20 Leszek Ciesielski <skolima@gmail.com>
12371 * NotifyIcon.cs : stub for MouseClick event
12372 * Application.cs: stub for SetUnhandledExceptionMode
12374 2007-04-24 Alan McGovern <alan.mcgovern@gmail.com>
12376 * BindingNavigator.cs : Initial (partial) implementation
12378 2007-04-23 Jackson Harper <jackson@ximian.com>
12380 * TreeView.cs: Do not create the treeview's handle when setting
12381 the scroll position.
12382 - ExpandAll needs to compute the scrollbars so it knows which
12383 position to set the bar too.
12385 * TreeNodeCollection.cs: Pass new flag to UpdateScrollBars
12387 2007-04-23 Jackson Harper <jackson@ximian.com>
12389 * TextBoxBase.cs: Non multiline textboxes shouldn't take the enter
12392 2007-04-23 Jonathan Pobst <monkey@jpobst.com>
12394 * ToolStripItem.cs: Make GetImageSize internal.
12395 * ToolStripMenuItem.cs: Use GetImageSize to determine the size we
12396 need to draw an item. Fixes a reported issue where images on menus
12397 that were not 16x16 were drawing incorrectly.
12399 2007-04-21 Miguel de Icaza <miguel@novell.com>
12401 * Padding.cs: Use the converter, fixes the resgen2 issue with
12404 2007-04-21 Jackson Harper <jackson@ximian.com>
12406 * TreeView.cs: Dont try to unhighlight the selected node if there
12407 isn't a selected node.
12409 2007-04-21 Jackson Harper <jackson@ximian.com>
12415 * TreeView.cs: Use the InternalBorderStyle property to set the
12416 initial border style, this forces the client rectangle to be sized
12419 2007-04-20 Jackson Harper <jackson@ximian.com>
12421 * TreeView.cs: Simplify scrolling to the last node after expanding
12423 - Fix some off by ones with setting the bottom.
12425 2007-04-20 Jonathan Pobst <monkey@jpobst.com>
12427 * Control.cs: Use DefaultSize for Size, calculate ClientSize from
12428 that. We were incorrectly doing it the other way around. Also,
12429 update ClientSize if we change the BorderStyle before the control
12432 2007-04-20 Gert Driesen <drieseng@users.sourceforge.net>
12434 * XplatUI.cs: Added Border3DSize, BorderSize, CaptionButtonSize,
12435 DoubleClickSize, DoubleClickTime and FixedFrameBorderSize. Renamed
12436 XplatUIDriver.Caption to CaptionHeight. Spaces to tabs.
12437 * XplatUIDriver.cs: Added Border3DSize, BorderSize, CaptionButtonSize,
12438 DoubleClickSize, DoubleClickTime and FixedFrameBorderSize. Renamed
12439 Caption to CaptionHeight.
12440 * XplatUIX11.cs: Renamed Caption to CaptionHeight.
12441 * Theme.cs: Modified Border3DSize, BorderSize, CaptionButtonSize
12442 and FixedFrameBorderSize to return value from current XplatUI driver.
12443 * XplatUIWin32.cs: Implemented Border3DSize, BorderSize,
12444 CaptionButtonSize, DragFullWindows, DoubleClickSize, DoubleClickTime
12445 and FixedFrameBorderSize using win32 API. Renamed Caption to
12447 * XplatUIOSX.cs: Renamed Caption to CaptionHeight.
12448 * SystemInformation.cs: Fixed typo in BorderSize.
12450 2007-04-20 Gert Driesen <drieseng@users.sourceforge.net>
12452 * XplatUI.cs: Added MenuAccessKeysUnderlined.
12453 * XplatUIDriver.cs: Added MenuAccessKeysUnderlined.
12454 * XplatUIX11.cs: Implemented MenuAccessKeysUnderlined by always
12456 * Theme.cs: Modified MenuAccessKeysUnderlined to return corresponding
12457 value from XplatUI driver.
12458 * XplatUIWin32.cs: Implemented MenuAccessKeysUnderlined using
12459 SystemParametersInfo.
12460 * ThemeWin32Classic.cs: Remove obsolete MenuAccessKeysUnderlined
12462 * XplatUIOSX.cs: Implemented MenuAccessKeysUnderlind by always
12465 2007-04-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
12467 * XplatUIX11.cs, Hwnd.cs: Remove warnings.
12469 2007-04-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
12471 * MessageBox.cs, XplatUIX11.cs, Hwnd.cs: Remove warnings.
12473 2007-04-20 Jonathan Pobst <monkey@jpobst.com>
12475 * ToolStripManager.cs: Fix a reported InvalidCastException when unmerging
12476 MenuStrips that contain ToolStripSeparators.
12478 2007-04-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
12480 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Add
12481 DefineStdCursorBitmap.
12482 * Cursor.cs: Add an internal constructor so that the Cursor knows if it
12483 has been created off a standard cursor. This is used to get a
12484 bitmap of the standard cursor when Draw or DrawStretched is called
12485 in order to draw the cursor.
12486 * X11Structs.cs: Added XcursorImage and XcursorImages.
12487 * XplatUIX11.cs, XplatUIWin32.cs: Add and implement
12488 DefineStdCursorBitmap.
12489 * Cursors.cs: Update all relevant creations of Cursor to use the new
12490 internal constructor.
12492 2007-04-19 Jackson Harper <jackson@ximian.com>
12494 * TextBox.cs: Move the has_been_focused into the base control, so
12495 some of the text adding methods can manipulate it (probably time
12496 for a better name for this flag too).
12497 - Call a new version of selectall that doesn't scroll
12498 * TextBoxBase.cs: When we append text, if the document is empty,
12499 don't scroll. If the document has text already, we scroll to the
12500 end of the appended text.
12501 - When the text is changed, we reset the has_been_focused, so the
12502 next time the control gets focused, all the text is selected.
12504 2007-04-19 Jackson Harper <jackson@ximian.com>
12506 * TextControl.cs: Move the margins to the document, add a method
12507 so the margin sizes can be updated.
12508 * TextBoxBase.cs: When the border style is changed, update the
12511 2007-04-19 Jonathan Pobst <monkey@jpobst.com>
12513 * Control.cs: Respect DefaultPadding.
12514 * GroupBox.cs: Implement DefaultPadding, DisplayRectangle takes
12515 padding into account.
12516 * ToolStrip.cs: Remove setting padding to DefaultPadding in constructor.
12518 2007-04-19 Jackson Harper <jackson@ximian.com>
12520 * TextControl.cs: Oops, we need to use the ClientRect not the
12523 2007-04-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12525 * ListView.cs: In ItemControl.ItemsMouseDown, take into
12526 account the double clicks when CheckBoxes are used and
12527 the pointer is inside the checkbox. Fixes part of #81191.
12529 2007-04-18 Jackson Harper <jackson@ximian.com>
12531 * TextControl.cs: Pressing the end key shouldn't move the caret
12532 past the line ending.
12533 * TextBoxBase.cs: We can still delete if we are in the line
12534 ending and the combine will just kill the existing line ending.
12536 2007-04-18 Jackson Harper <jackson@ximian.com>
12538 * TextControl.cs: We can't move lines, then invalidate their
12539 bounds, we need to get the old bounds and combine that with the
12541 * TextBoxBase.cs: Before combining two lines for a delete, we need
12542 to invalidate the area of the old line, since that will be moved
12543 in the combine operation.
12545 2007-04-18 Everaldo Canuto <everaldo@simios.org>
12547 * LinkLabel.cs: In OnPaint invoke draw background to fix problems
12548 with transparent background. Fixes #80482.
12550 2007-04-18 Jonathan Pobst <monkey@jpobst.com>
12552 * PictureBox.cs: Refresh on resize when SizeMode = Zoom.
12553 * ThemeWin32Classic.cs: Implement PictureBox.SizeMode = Zoom.
12556 2007-04-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
12558 * CreateParams.cs: Add a couple of helper methods and do a less string
12559 concatenation in ToString.
12560 * XplatUIX11.cs: Add an TranslateClientRectangleToXClientRectangle
12561 overload that takes a Control parameter, since this method may be
12562 called before a control is assigned to the hwnd (from
12563 CreateWindow), and update CreateWindow to use the new overload. In
12564 GetMenuOrigin subtract the title bar from the y position if the
12565 form has a window manager (since we're painting it and not X).
12566 * XplatUIWin32.cs: If we can get a form in GetMenuOrigin use the form's
12567 CreateParams to calculate the origin (since border sizes may vary).
12568 In ScreenToMenu only subtract the title height if we actually have
12570 * MdiWindowManager.cs: Override MenuHeight to always return 0, since
12571 mdi children never have menus of themselves.
12572 * InternalWindowManager.cs: Implement menu handling like form does.
12573 Added GetMenuOrigin to calculate the menu origin, can't use the
12574 CreateParams from the form like normally since it's lying.
12575 * Hwnd.cs: Implement GetBorderSize better (in the sense more
12576 windows-like) and add Inflate and comparison operators to the
12577 Borders type. When calculating MenuOrigin and it's a form with a
12578 window manager, use the window manager to calculate it.
12580 2007-04-17 Chris Toshok <toshok@ximian.com>
12582 * Control.cs (CreateControl): turns out in 2.0 we don't need this
12583 OnBindingContextChanged thing here. It's only generated from
12584 ContainerControl.OnCreateControl. Fixes a newly written unit test
12585 - BindingTest.BindingContextChangedTest4.
12587 2007-04-17 Jackson Harper <jackson@ximian.com>
12589 * ScrollBar.cs: When setting values, make sure the current
12590 position stays within the new values range.
12592 2007-04-17 Chris Toshok <toshok@ximian.com>
12594 * Control.cs (CreateControl): talk about a bizarre corner case.
12595 Don't emit OnBindingContextChanged here if we're a parentless
12596 control (i.e. if we're a form.). Fixes
12597 BindingTest.BindingContextChangedTest2.
12599 2007-04-17 Everaldo Canuto <everaldo@simios.org>
12601 * ButtonBase.cs: Remove TextFormatFlags.WordBreak to mimic same behavior
12602 from win32. Fixes #81255.
12604 2007-04-17 Everaldo Canuto <everaldo@simios.org>
12606 * ThemeWin32Classic.cs: Remove text offset from DrawButtonText as it is
12607 already present in CalculateButtonTextAndImageLayout.
12609 2007-04-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
12611 * XplatUIX11.cs: When setting min/max size for a window we need to
12612 translate the coordinates to x coordinates. Create an overload of
12613 SetWindowMinMax that takes a CreateParams handling this, and change
12614 SetWMStyles to call this function (can't use Control.FromHandle in
12615 the SetWindowMinMax to get the control/CreateParams from the handle
12616 because the handle might not have been assigned to the control
12617 yet). Fixes #81371.
12619 2007-04-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12621 * ListView.cs: In ItemControl.ItemMouseDown, don't change check state
12622 if StateImageList is non-null and it has less than two items (match MS
12623 behaviour). Also, in HandleNavKeys handle the Space key, calling
12624 the new ToggleItemsCheckState method, which tries to change the
12625 checked state of the selected items. Fixes part of #81191.
12627 2007-04-16 Jackson Harper <jackson@ximian.com>
12629 * RichTextBox.cs: namespace cleanup.
12631 2007-04-16 Everaldo Canuto <everaldo@simios.org>
12633 * XplatUIWin32.cs: Back last parameter to true in SetClipRegion.
12635 2007-04-16 Everaldo Canuto <everaldo@simios.org>
12638 * Control.cs: Call invalidate in set_Region.
12640 * XplatUIX11.cs, XplatUIWin32.cs: Remove invalidate from SetClipRegion as
12641 it dont works here.
12643 2007-04-16 Jackson Harper <jackson@ximian.com>
12645 * TextBoxBase.cs: When enter is pressed, we need to update all
12646 lines below the current.
12648 2007-04-16 Jonathan Pobst <jpobst@monkey.com>
12650 * MdiClient.cs: Implement implicit menu merging for MDI
12651 children. When a child form is active, if it has a menustrip
12652 and the parent form has a MainMenuStrip, automatically merge
12655 2007-04-15 Andreia Gaita <avidigal@novell.com>
12657 * TabControl.cs: Refactored sizing methods to not repeat
12658 code all over the place. Tab bounds are now calculated
12659 as if alignment is top and single line, and only when
12660 setting the bounds are the positions adjusted according
12661 to alignment. Replaced hardcoded positions, spacings and
12662 paddings by getting the values the ThemeEngine.
12665 * Theme.cs: Change TabControl properties and methods so
12666 that all start with TabControl*. Added more properties
12667 to help remove hardcoded values on tabcontrol.
12668 Add CPDrawBorder3D declaration so the Theming classes
12671 * ThemeClearlooks.cs, ThemeNice.cs: Method signature changes from Theme.
12673 * ThemeWin32Classic.cs: Rector TabControl out to the TabControlPainter
12674 on the Theming namespace, and call the appropriate methods here.
12675 Change CPDrawBorder3D to public.
12677 2007-04-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12679 * Control.cs: In WmRButtonUp, send the WM_CONTEXTMENU message to
12680 the control after firing the OnMouseUp event, instead of sending
12681 the message before the mentioned event. This is so we can match the
12682 MS behaviour. Fixes part of #80385.
12684 2007-04-13 Jonathan Pobst <monkey@jpobst.com>
12686 * ToolStripItem.cs: Call the RightToLeftChanged event when setting the
12687 RightToLeft property.
12689 2007-04-13 Jonathan Pobst <monkey@jpobst.com>
12691 * ToolStrip.cs: Add properties and internal methods to support merging.
12692 * ToolStripItem.cs: Add MergeAction and MergeIndex.
12693 * ToolStripItemCollection.cs: Add Insert and Remove methods that do
12694 not trigger reparenting or layouts.
12695 * ToolStripManager.cs: Add Merge and RevertMerge methods.
12696 * ToolStripOverflow.cs: Add a convenience method to find the ToolStrip that
12697 is hosting the overflow menu.
12699 2007-04-13 Jackson Harper <jackson@ximian.com>
12701 * TextControl.cs: Set the line ending correctly for the first
12704 2007-04-13 Sebastien Pouliot <sebastien@ximian.com>
12706 * Theme.cs: Update GetMethod to get the new definition for
12707 KnownColors.Update (and fix theme color updates).
12709 2007-04-12 Everaldo Canuto <everaldo@simios.org>
12711 * MessageBox.cs: Fix some test and button position.
12713 2007-04-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12715 * Form.cs: Consider the implicit controls in
12716 GetRealChildAtPoint. We need it since this method
12717 is called on Form when handling the some messages in
12718 WndProc, and need to consider those implicit ones too.
12721 2007-04-12 Jonathan Pobst <monkey@jpobst.com>
12723 * ToolStripMenuItem.cs: Display the ShortcutKeyDisplayString even
12724 if there are no ShortcutKeys set.
12725 * ToolStripProfessionalRenderer.cs: If an item has had its BackColor
12726 set, use it when painting.
12728 2007-04-12 Jackson Harper <jackson@ximian.com>
12730 * TextControl.cs: Fix some off-by-one issues in line duplication
12731 and insertion in the undo manager. Also, overwrite the first tag
12732 of a line on insert, if it is just a zero lengthed tag. This
12733 prevents us from getting an extra stranded tag at the beginning of
12736 2007-04-11 Everaldo Canuto <everaldo@simios.org>
12738 * Label.cs: Remove check for handle created in CalcAutoSize, we need
12739 to calculated proper size including when handle was not created yet.
12741 2007-04-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
12743 * MdiWindowManager.cs: When moving a form, allow the form to be moved
12744 when the mouse is outside of it's parent's client rectangle. Fixes
12745 #79982 (take 3, part 2).
12747 2007-04-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
12749 * X11Structs.cs: Add a few ToString() overrides.
12750 * XplatUIX11.cs: Added GetTopLevelWindowLocation to try to calculate
12751 the window location in a window-manager independent way. Reworked
12752 FrameExtents, it now actually works. Reworked AddConfigureNotify
12753 and ReparentNotify handling to use GetTopLevelWindowLocation
12754 instead of the earlier, more hacky solution. Reworked SetWMStyles,
12755 hopefully for the better: we now set _NET_WM_WINDOW_TYPE* for all
12756 windows, DIALOG for modal windows, UTILITY for toolboxes and NORMAL
12757 for all other windows (fixes #81281 part 1), a toolwindow is hidden
12758 from the taskbar if it has a parent (fixes #81281 part 2 for kwin),
12759 and generally refactored to do as few calculations as possible
12762 2007-04-09 Sebastien Pouliot <sebastien@ximian.com>
12764 * Theme.cs: Change "reflective-contract" between MWF and SD to
12765 minimize # of calls, avoid Color serialization and avoid updating
12766 every "known colors" each time a single one is updated.
12768 2007-04-09 Gert Driesen <drieseng@users.sourceforge.net>
12770 * DataGridTextBoxColumn.cs: Only set IsInEditOrNavigateMode to false
12771 when not readonly and the text is explicitly set. Code style updates.
12772 * DataGridTableStyle.cs: Removed extra line.
12773 * DataGrid.cs: Code style updates. Removed extra whitespace.
12774 * DataGridColumnStyle.cs: Code style updates. Removed extra
12777 2007-04-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
12779 * XplatUIX11.cs: Added comment that "fixes" #80021.
12781 2007-04-09 Jackson Harper <jackson@ximian.com>
12783 * TextControl.cs: We don't need this -1 on the line count anymore.
12785 2007-04-09 Gert Driesen <drieseng@users.sourceforge.net>
12787 * DataGridTextBoxColumn.cs: In Commit, use TypeConverter to convert
12788 entered value to underlying type, and convert it back to a string to
12789 apply formatting. Modified GetFormattedValue to use TypeConverter
12792 2007-04-08 Gert Driesen <drieseng@users.sourceforge.net>
12794 * ListViewItem.cs: Added null checks. Avoid duplicating code in ctors.
12795 Use SubItems property when we want to ensure there's at least one
12796 subitem. Modified SubItems property to ensure there's always at least
12797 one subitem. Avoid using ListViewSubItemCollection.AddRange to match
12798 the NRE's reported by MS.
12800 2007-04-07 Gert Driesen <drieseng@users.sourceforge.net>
12802 * ProgressBar.cs: On 2.0 profile, default forecolor is Highlight. Added
12803 ResetForeColor override on 2.0. Fixed a few API compatibility issues.
12804 Spaces to tabs. Removed extra tabs.
12806 2007-04-06 Jonathan Pobst <monkey@jpobst.com>
12808 * ToolStripSplitStackLayout.cs: If we run out of things to hide, don't
12809 infinite loop. (Forgot to copy to the horizontal toolstrip case.)
12811 2007-04-06 Jackson Harper <jackson@ximian.com>
12813 * TextBoxBase.cs: When a delete removes a line, recalculate all
12814 lines below that line (they need to get offsets setup correctly)
12817 2007-04-05 Jackson Harper <jackson@ximian.com>
12819 * TextControl.cs: We need to invalidate across the width of the
12820 document when we are invalidating multiple lines.
12821 * TextBoxBase.cs: Don't delete into the line ending.
12823 2007-04-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12825 * ListView.cs: Restore the check for the MouseHover event
12826 in ListView. It looks like the ListView fires more than one MouseHover
12827 event when HoverSelection is true _only_ in weird-corner scenarios, but
12828 in most of the cases it only fires one. Also, add the 2.0 ItemMouseHover
12831 2007-04-05 Mike Kestner <mkestner@novell.com>
12833 * ListView.cs : raise MouseDown before updating selection.
12834 [Fixes #80373 tab 1&3]
12836 2007-04-05 Jonathan Pobst <monkey@jpobst.com>
12838 * ToolStripRenderer.cs: Add static method to mirror image.
12839 * ToolStripProfessionalRenderer.cs: Support ImageTransparentColor
12840 and RightToLeftAutoMirrorImage.
12841 * ToolStripItem.cs: Remove MonoTODO from ImageTransparentColor.
12843 2007-04-05 Jonathan Pobst <monkey@jpobst.com>
12845 * ToolStripSplitStackLayout.cs: Support Alignment property.
12846 * ToolStripItem.cs: Remove MonoTODO from the Alignment property.
12848 2007-04-05 Jackson Harper <jackson@ximian.com>
12850 * TextControl.cs: Move around the line endings when crossing line
12852 - When combining lines, strip the ending text off the first line.
12854 2007-04-05 Jackson Harper <jackson@ximian.com>
12857 * TextBoxBase.cs: Try to never move the cursor into the line
12860 2007-04-04 Jonathan Pobst <monkey@jpobst.com>
12862 * ToolStripItem.cs: Make sure we aren't firing mouse events when
12863 the item is disabled. Also add a few missing methods.
12865 2007-04-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12867 * ListView.cs: We don't need the MouseEnter/MouseLeave check
12868 to fire just one MouseHover event when HoverSelection is true, since
12869 .Net does fire more than one MouseHover event in that scenario. Also,
12870 fix the selection in HoverSelection, by invoking UpdateMultiSelect
12871 if MultiSelect is true, instead of only setting ListViewItem.Selected.
12872 Finally, we need to reset the Hover logic in MouseMove, even when we
12873 don't have a selected item.
12875 2007-04-04 Jonathan Pobst <monkey@jpobst.com>
12877 * ToolStrip.cs: Add several missing methods, properties, and events.
12879 2007-04-04 Chris Toshok <toshok@ximian.com>
12881 * DataGridTextBoxColumn.cs: set the bounds of the text box to
12882 (0,0,0,0) in Commit, as MS does.
12884 * DataGrid.cs: call EndEdit() from Select() as microsoft does, and
12885 make sure we set CurrentRow on a row header click *before* calling
12886 Select. This moves the current cell (and the textbox) to the new
12887 row. The call to Select then hides the textbox, giving us the
12888 correct behavior. Fixes #80362.
12890 * CurrencyManager.cs (UpdateIsBinding): raise ItemChanged (-1).
12891 (ListChangedHandler): reorder the position/current changed events,
12892 and call UpdateIsBinding in the ItemAdded case.
12894 * GridColumnStylesCollection.cs: add some columns events, one of
12895 which raises the CollectionChanged event.
12897 2007-04-04 Jackson Harper <jackson@ximian.com>
12899 * TextControl.cs: When we delete multiple selection lines
12900 invalidate the selection area, don't need to do that for single
12901 lines because the final update view will handle it.
12903 2007-04-04 Jonathan Pobst <monkey@jpobst.com>
12905 * Control.cs: When we CreateControl, we need to also create all of the
12906 control's children. The child's OnLoad must also fire before the parent's
12907 OnLoad. Fixes the toolbox size in PDN.
12909 2007-04-04 Jackson Harper <jackson@ximian.com>
12911 * TextBoxBase.cs: When the user presses enter, insert a line
12912 ending into the text. (Maybe this would be a good spot for
12913 Environment.NewLine).
12914 * TextControl.cs: Remove undo manager hack, line endings get
12915 inserted properly now.
12917 2007-04-04 Everaldo Canuto <everaldo@simios.org>
12920 - Remove unneeded parameters in UpdateCursor.
12921 - Fix UpdateCursor to check if menu is active.
12922 - Call UpdateCursor when menu deactivate my click.
12923 [Fixes remaining issues from #80410]
12925 2007-04-04 Everaldo Canuto <everaldo@simios.org>
12927 * Control.cs: GetRealChildAtPoint method added, it make an
12928 recursive child control search for the point.
12930 * Form.cs: Makes use of GetRealChildAtPoint in mouse event after closes
12933 * MenuAPI.cs: Makes use of GetRealChildAtPoint in UpdateCursor.
12935 2007-04-03 Everaldo Canuto <everaldo@simios.org>
12937 * Form.cs: Fix mouse position when send back mouse event after closes
12940 2007-04-03 Everaldo Canuto <everaldo@simios.org>
12942 * Form.cs: Simplify the BUTTONDOWN for active tracker.
12944 2007-04-03 Jonathan Pobst <monkey@jpobst.com>
12946 * Control.cs: Fix an issue where if a user resized a control inside
12947 a sizing method like OnResize, we would overwrite their explicit
12948 value. Also, only call DefaultSize once in the constructor instead
12949 of 4 times. Also, do not call SetBoundsCore from SetBounds if
12950 nothing actually changed.
12952 2007-04-03 Jackson Harper <jackson@ximian.com>
12954 * TextControl.cs: Don't attempt to copy text for lines with no
12955 text in them (technically this shouldn't happen, but we aren't
12956 always inserting line endings when we should be).
12958 2007-04-03 Jackson Harper <jackson@ximian.com>
12960 * TextBoxBase.cs: Calculate the scrollbars before calculating the
12961 document, because this sets some of the document size properties
12964 2007-04-03 Jackson Harper <jackson@ximian.com>
12966 * TextBoxBase.cs: We need to calculate maximums even if this is
12967 not a multiline control, because the maxs are used for scrolling.
12968 - Display the caret after doing a page up/down, we need to
12969 manually display it because a proper CaretMoved event isn't
12970 triggered (this is because of the way the math is done to
12971 determine how far to scroll).
12973 2007-04-03 Jonathan Pobst <monkey@jpobst.com>
12975 * ToolBar.cs: Fix some breakage caused by the SetBoundsCore change.
12976 (ToolBar was relying on SetBoundsCore to default the values sent
12977 base off of BoundsSpecified.)
12979 2007-04-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
12981 * DateTimePicker.cs: Change Text so that when a null value or empty
12982 string is assigned to the test we always raise ValueChanged and
12983 TextChanged (earlier implementation would only raise ValueChanged
12984 if the current date value was different from DateTime.Now).
12986 2007-04-03 Andreia Gaita <avidigal@novell.com>
12988 * ButtonBase: Call update after invalidation, fixes #80194
12990 2007-04-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
12992 * ThemeWin32Classic.cs: Draw StatusBar using double buffering. Fixes
12995 2007-04-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
12997 * XplatUIX11.cs: SetWMStyles: If the control is a form with
12998 FormBorderStyle = None, don't give the window any decorations.
13001 2007-04-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
13003 * XplatUI.cs, XplatUIDriver.cs: Updated CalculateWindowRect parameters.
13004 * CreateParams.cs: Fix IsSet, wasn't working correctly when the style
13005 to check for is a mix of several styles (such as WS_CAPTION for
13007 * Control.cs: Don't paint an area bigger than the client area when
13008 painting the background colour. Add an internal GetCreateParams.
13009 Update calls to XplatUI.CalculateWindowRect due to API change.
13010 * XplatUIX11.cs: In PerformNCCalc set the initial size to the whole
13011 window's size, and handle WM_NCCALCSIZE in DefWndProc to calculate
13012 the size if it hasn't been handled by any windows. When creating
13013 and moving windows, X wants the location of the entire window, but
13014 the size of the client window, so add
13015 TranslateClientRectangleToXClientRectangle,
13016 TranslateWindowSizeToXWindowSIze and
13017 TranslatedXWindowSizeToWindowSize to cope with this, and call them
13018 before every window creation and move. Update CalculateWIndowRect
13019 to use Hwnd.GetWindowRect (one step towards removing DeriveStyles).
13020 In AddConfigureNotify don't do anything if the hwnd is a zombie
13021 (fixes the BadWindow we were getting while running the tests),
13022 always calculate the offsets when it's a parentless window, not
13023 only when reparented, and translate the window size, since we're
13024 getting the client size of the whole window, excluding entire
13026 * Theme.cs: Added BorderSizableSize.
13027 * XplatUIWin32.cs: Fix RECT Height and Width. Don't fake styles here
13028 anymore. Update calls to XplatUI.CalculateWindowRect due to API
13030 * Form.cs: Update calls to XplatUI.CalculateWindowRect due to API
13031 change. Fake the window styles here instead of in XplatUIWin32 so
13032 that all back-ends get the same window styles (and it's Form that's
13033 deciding when to use wm, not the Win32 backend anyways)
13034 * Hwnd.cs: Completely reworked GetWindowRectangle and
13035 GetClientRectangle - they are now passed a CreateParams and they
13036 only use Style and ExStyle to determine the rectangles (they should
13037 now work just like Win32AdjustWindowRectEx - though quite a few
13038 special cases are probably missing). They should also be 100%
13039 complimentary (i.e. GetWindowRectangle (GetClientRectangle (rect))
13040 == rect), and all numbers (borders, menu sizes) are taken from the
13041 current theme. Added a GetBorders helper function that will return
13042 the borders for any given CreateParams (including captions and
13043 menus), and GetBorderSize that returns the given border size only.
13044 * XplatUIOSX.cs: Update calls to CalculateWindowRect and
13045 Hwnd.GetClientRectangle.
13047 2007-04-02 Chris Toshok <toshok@ximian.com>
13049 * DataGridBoolColumn.cs: rewrite things a bit, and fix up the
13050 logic between the values we present to the user and the values
13051 which are stored in the column's property. Also, don't call
13052 GetPreferredSize - it's virtual. Along the way, fix bug #80965.
13054 2007-04-02 Jackson Harper <jackson@ximian.com>
13056 * TextBoxBase.cs: Scroll faster!
13058 2007-04-02 Jonathan Pobst <monkey@jpobst.com>
13060 * StatusStrip.cs: Layout fixes for PDN.
13061 * ToolStrip.cs: Set item's available to true, and placement to main when
13063 * ToolStripItem.cs: Fix an Available issue, check that Parent is really
13064 changing in setter before doing any work, add InternalVisible.
13065 * ToolStripPanel.cs: Remove unused variable to fix compiler warning.
13066 * ToolStripSplitStackLayout.cs: If we run out of things to hide, don't
13069 2007-04-02 Jackson Harper <jackson@ximian.com>
13071 * TextBox.cs: LBUTTON does not make the textbox select all of it's
13074 2007-04-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
13076 * XplatUIWin32.cs: Use the previous change in SetParent for forms only.
13077 Makes ToolStripComboBoxes show up again.
13079 2007-04-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13081 * ListView.cs: Add a hover_pending field in ListView
13082 to fire just one OnMouseHover event for each MouseEnter/MouseLeave
13083 cycle (we are resetting the MouseHover logic in XplatUI
13084 to handle HoverSelection). Fixes #80429.
13086 2007-04-02 Jackson Harper <jackson@ximian.com>
13088 * TextControl.cs: Make sure the attributes get set on the last
13090 - Still have to do the end tag if we have stepped all the ways to
13093 2007-04-02 Sebastien Pouliot <sebastien@ximian.com>
13095 * XplatUIOSX.cs, XplatUIX11.cs, XplatUIX11GTK.cs: Remove dependency
13096 on an internal libgdiplus call when the information is already
13097 available via the public API.
13099 2007-04-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
13101 * Control.cs: Call ContainerControl.ChildControlRemoved whenever a
13102 control is removed from a control collecftion.
13103 * XplatUIX11.cs: The first location for toplevel form is (22, 22).
13104 Fixes FormPropertyTest (failed on rare occasions).
13105 * XplatUIWin32.cs: Add a workaround in SetParent for strange behaviour
13106 of Win32SetParent (when changing from no parent to a parent it
13107 might add the new parent's location in screen coordinates to this
13108 window's location).
13109 * Form.cs: Rework ChangingParent once again, now the handle is
13110 recreated whenever a FormWindowManager is added or removed (that is
13111 whenever a normal form is parented or abandoned). Also change
13112 CreateParams so that all non-toplevel windows always get the
13113 specified sice (StartupPosition is never considered for
13114 non-TopLevel forms).
13115 * ContainerControl.cs: Add ChildControlRemoved, the container control
13116 needs to be notified when a control is removed from it's
13117 collection, in the case the removed control is the active control.
13119 2007-04-02 Jackson Harper <jackson@ximian.com>
13121 * RichTextBox.cs: Use the new methods for setting the font and
13122 color, these methods set the specified attribute without
13123 overriding the other attributes.
13125 2007-04-02 Jonathan Pobst <monkey@jpobst.com>
13127 * ToolStripPanel.cs: Fixes for better layouts in PDN.
13129 2007-03-31 Gert Driesen <drieseng@users.sourceforge.net>
13131 * TextBox.cs: Added internal ChangeBackColor method to special-case
13132 Color.Empty. Added check for invalid ScrollBars value.
13133 * TextBoxBase.cs: Added internal ChangeBackColor method.
13134 * RichTextBox.cs: Only set backcolor_set on 2.0 profile. Added
13135 internal ChangeBackColor method to special-case Color.Empty. Added
13136 check for invalid ScrollBars value.
13138 2007-03-30 Everaldo Canuto <everaldo@simios.org>
13140 * MenuItem.cs: On invalidate prevent form to create handle. [Fixes #81272]
13142 2007-03-30 Jonathan Pobst <monkey@jpobst.com>
13144 * ScollableControl.cs: Add HorizontalScroll and VerticalScroll properties.
13145 * ScrollProperties.cs, HScrollProperties.cs, VScrollProperties.cs: Added.
13146 [Based on submitted patch from Olivier Duff.]
13148 2007-03-30 Jackson Harper <jackson@ximian.com>
13150 * TextBox.cs: Only select all on initial focus if the user has not
13151 specified a selection area.
13153 2007-03-30 Jonathan Pobst <monkey@jpobst.com>
13155 * UserControl.cs: Override CreateParams.
13157 2007-03-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
13161 * XplatUI.cs, XplatUIDriver.cs: Updated CalculateWindowRect parameters.
13162 * CreateParams.cs: Fix IsSet, wasn't working correctly when the style to
13163 check for is a mix of several styles (such as WS_CAPTION for instance).
13164 * Control.cs: Don't paint an area bigger than the client area when painting
13165 the background colour. Add an internal GetCreateParams. Update calls to
13166 XplatUI.CalculateWindowRect due to API change.
13167 * XplatUIX11.cs: In PerformNCCalc set the initial size to the whole window's
13168 size, and handle WM_NCCALCSIZE in DefWndProc to calculate the size if it
13169 hasn't been handled by any windows. When creating and moving windows, X
13170 wants the location of the entire window, but the size of the client
13171 window, so add TranslateClientRectangleToXClientRectangle,
13172 TranslateWindowSizeToXWindowSIze and TranslatedXWindowSizeToWindowSize
13173 to cope with this, and call them before every window creation and move.
13174 Update CalculateWIndowRect to use Hwnd.GetWindowRect (one step towards
13175 removing DeriveStyles). In AddConfigureNotify don't do anything if the
13176 hwnd is a zombie (fixes the BadWindow we were getting while running the
13177 tests), always calculate the offsets when it's a parentless window, not
13178 only when reparented, and translate the window size, since we're getting
13179 the client size of the whole window, excluding entire window.
13180 * Theme.cs: Added BorderSizableSize.
13181 * XplatUIWin32.cs: Fix RECT Height and Width. Don't fake styles here
13182 anymore. Update calls to XplatUI.CalculateWindowRect due to API change.
13183 * Form.cs: Update calls to XplatUI.CalculateWindowRect due to API change.
13184 Fake the window styles here instead of in XplatUIWin32 so that all
13185 back-ends get the same window styles (and it's Form that's deciding when
13186 to use wm, not the Win32 backend anyways)
13187 * Hwnd.cs: Completely reworked GetWindowRectangle and GetClientRectangle -
13188 they are now passed a CreateParams and they only use Style and ExStyle
13189 to determine the rectangles (they should now work just like
13190 Win32AdjustWindowRectEx - though quite a few special cases are probably
13191 missing). They should also be 100% complimentary (i.e. GetWindowRectangle
13192 (GetClientRectangle (rect)) == rect), and all numbers (borders, menu
13193 sizes) are taken from the current theme. Added a GetBorders helper
13194 function that will return the borders for any given CreateParams
13195 (including captions and menus), and GetBorderSize that returns the given
13197 * XplatUIOSX.cs: Update calls to CalculateWindowRect and
13198 Hwnd.GetClientRectangle.
13200 2007-03-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
13202 * Form.cs: Don't layout mdi children on MdiParent creation, the initial
13203 layout of the mdi children is handled by CreateParams. Fixes
13206 2007-03-29 Everaldo Canuto <everaldo@simios.org>
13208 * MenuAPI.cs: Make OnMouseDown returns a boolean to identify if event is
13211 * Form.cs: When active tracker mouse down is not processed, send event
13212 back to control inside mouse position. [Fixes #81227]
13214 2007-03-29 Jonathan Pobst <monkey@jpobst.com>
13216 * ComboBox.cs: Override the ComboListBox's ActivateOnShow property and
13217 remove WS_VISIBLE from CreateParams to prevent combobox dropdowns from
13218 stealing focus from the active form on Windows. (Control will be made
13219 visible in ShowWindow.)
13221 2007-03-29 Mike Kestner <mkestner@novell.com>
13223 * ImageList.cs : add internal Changed event.
13224 * ListView.cs : hook up to StateImageList.Changed to perform
13225 invalidations when the the state icon list changes. [Fixes #81191]
13227 2007-03-29 Jonathan Pobst <monkey@jpobst.com>
13229 * ToolTip.cs: Override the ToolTipWindow's ActivateOnShow property
13230 to prevent tooltips from stealing focus from the active form on Windows.
13232 2007-03-29 Everaldo Canuto <everaldo@simios.org>
13234 * ThemeWin32Classic.cs: Small stetic fixes in notifyicon balloon.
13236 * ThemeClearlooks.cs: Implement notifyicon balloon for clearlooks theme.
13238 2007-03-29 Everaldo Canuto <everaldo@simios.org>
13240 * NotifyIcon.cs, ThemeWin32Classic.cs: Icon support added to notifyicon
13243 2007-03-29 Jackson Harper <jackson@ximian.com>
13245 * TextControl.cs: When deleting text from non multiline textboxes,
13246 we need to update the entire document, because line offsets will
13249 2007-03-29 Everaldo Canuto <everaldo@simios.org>
13251 * XplatUIX11.cs, ThemeWin32Classic.cs, Theme.cs: ShowBalloonWindow method
13252 added to theme, now we can create themes that uses diferent notify engines
13253 like notification-daemon from galago project or growl for Mac OS.
13255 2007-03-28 Everaldo Canuto <everaldo@simios.org>
13257 * NotifyIcon.cs: Prevent Balloon to show in task bar.
13259 2007-03-28 Everaldo Canuto <everaldo@simios.org>
13261 * XplatUIX11.cs: Prevent system to open more than one balloon.
13263 * NotifyIcon.cs: Prevent system to open more than one balloon and remove
13264 some compiler warning messages.
13266 2007-03-28 Everaldo Canuto <everaldo@simios.org>
13270 * XplatUIX11.cs: Implement SystrayBalloon for X11 systems.
13272 * ThemeWin32Classic.cs, Theme.cs: DrawBalloonWindow and BalloonWindowRect
13273 implemented, this methods is used by NotifyIcon.BalloonWindow class.
13275 * NotifyIcon.cs: BalloonWindow class added to support Balloon in X11
13278 2007-03-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13280 * ListViewItem.cs: Forgot to make Invalidate internal.
13282 2007-03-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13284 * ListView.cs: Add a InvalidateSelection method to
13285 invalidate methods which are currently selected, and call
13286 it when setting FullRowSelect and HideSelection, instead of
13289 2007-03-28 Chris Toshok <toshok@ximian.com>
13291 * XplatUIX11.cs (UnmapWindow): reindent this block.
13293 * DataGrid.cs (UpdateSelectionAfterCursorMove): we need to update
13294 the selection_start if we're moving the selection (that is, not
13295 extending it). Fixes bug #80461.
13297 2007-03-28 Jonathan Pobst <monkey@jpobst.com>
13299 * ProgressBar.cs: Make the default MarqueeAnimationSpeed = 100.
13300 * ToolStripPanel.cs: Fix RowMargin, Renderer, RenderMode, and
13301 create private ControlCollection.
13303 2007-03-28 Jonathan Pobst <monkey@jpobst.com>
13305 * Control.cs: We need to call OnVisibleChanged for our implicit
13306 children as well as our normal children. Fixes scrollbars in
13307 comboboxes not showing up.
13309 2007-03-28 Jonathan Pobst <monkey@jpobst.com>
13311 * Control.cs, Form.cs: Anywhere we call CreateHandle, we need to do
13312 the check for IsHandleCreated first. The check in CreateHandle is not
13313 good enough because CreateHandle can be overriden, and the override
13314 should not be called if the handle is already created.
13316 2007-03-28 Jonathan Pobst <monkey@jpobst.com>
13318 * ToolStrip.cs: Remove MonoTODO for tooltips.
13319 * ToolStripComboBox.cs: Fix MonoTODO for DropDownHeight and events.
13320 * ToolStripContainer.cs: Add custom ControlCollection class.
13321 * ToolStripContentPanel.cs: Fix Renderer setting to match MS behavior.
13322 * ToolStripDropDown.cs: Add some missing properties/methods.
13323 * ToolStripDropDownMenu.cs: Override OnLayout and SetDisplayedItems.
13324 * ToolStripItem.cs: Remove MonoTODO for tooltips.
13325 * ToolStripManager.cs: Add IsShortcutDefined.
13326 * ToolStripOverflow.cs: Override LayoutEngine.
13327 * ToolStripProgressBar.cs: Add MarqueeAnimationSpeed.
13328 * ToolStripSeparator.cs: Add ImageKey.
13330 2007-03-28 Jackson Harper <jackson@ximian.com>
13332 * TextControl.cs: If a char delete removes a line ending, we need
13333 to update the ending style.
13334 - Make sure the line ending calcs get called.
13336 2007-03-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
13338 * XplatUIX11.cs: CreateWindow: Remove old default form location code,
13339 it was making the new code not work. Fixed a typo in the new code
13340 as well. Fixes #79826.
13342 2007-03-27 Everaldo Canuto <everaldo@simios.org>
13345 - NIF_STATE and NIF_INFO added to NotifyIconFlags.
13346 - NOTIFYICONDATA properties sizes fixed, szTip is 128, not 64.
13347 - SystrayBalloon method implemented.
13348 [Add support for notifyicon balloon on win32, #79149]
13350 2007-03-27 Mike Kestner <mkestner@novell.com>
13352 * ThemeWin32Classic.cs : update StateImageList selection to mirror
13353 the ms behavior when only one image is added to the list.
13356 2007-03-27 Jackson Harper <jackson@ximian.com>
13358 * TextControl.cs: Improvements to non multiline line ending
13361 2007-03-27 Everaldo Canuto <everaldo@simios.org>
13363 * XplatUIX11.cs: Fix the time which tooltip is opened for NotifyIcon.
13365 2007-03-27 Everaldo Canuto <everaldo@simios.org>
13368 - Balloon message handling added.
13369 - Call XplatUI.SystrayBalloon in ShowBalloonTip.
13371 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
13372 XplatUIOSX.cs, XplatUIX11-new.cs: ShowBalloonTip method renamed
13373 to SystrayBalloon to me like other Systray method, also a
13374 handle parameter added.
13376 2007-03-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13378 * ListView.cs: Show scrollbars even when items.Count == 0
13379 but the columns Width is bigger than the ListView.Width.
13380 Also, when columns.Count == 0 set layout_wd and layout_ht
13381 to the ClientRectangle values, so we don't show any scrollbar
13384 2007-03-27 Everaldo Canuto <everaldo@simios.org>
13386 * XplatUIStructs.cs: Balloon (NIN_BALLOON*) constants added.
13388 2007-03-27 Jackson Harper <jackson@ximian.com>
13390 * RichTextBox.cs: The RTF library decodes the text properly for us
13393 2007-03-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13395 * ListView.cs: Display HeaderControl even when columns.Count == 0.
13396 * ThemeWin32Classic.cs: Use SystemBrushes.Control to draw the
13397 ListView header (HeaderControl), instead of Control.BackColor.
13399 2007-03-27 Jonathan Pobst <monkey@jpobst.com>
13401 * Control.cs: Call OnVisibleChanged in SetVisibleCore for non-forms.
13402 Fixes tab control issues where controls would not show up because they
13403 never received their OnVisibleChanged call.
13405 2007-03-27 Everaldo Canuto <everaldo@simios.org>
13407 * NotifyIcon.cs: Balloon events added (BalloonTipClicked, BalloonTipClosed,
13410 2007-03-27 Jonathan Pobst <monkey@jpobst.com>
13412 * Control.cs: We won't get a WM_SHOWWINDOW when we create a window that
13413 is maximized or minimized, so move CreateControl to Control.OnVisibleChanged.
13414 * Form.cs: After we set the form visible, send a fake WM_SHOWWINDOW if we
13415 are max or min. Remove WS_VISIBLE from CreateParams unless we are recreating
13416 the handle. Fix WindowState by using the internal variable until we are
13417 sure that we've been shown.
13418 * XplatUIX11.cs: Do not generate a WM_SHOWWINDOW message if new form is
13422 2007-03-27 Rolf Bjarne Kvinge <RKvinge@novell.com>
13424 * XplatUIX11.cs: Windows without WS_CAPTION can still get decorations
13425 (at least borders). Fixes #79386 on Linux (with a small difference
13426 in behaviour: when trying to resize a caption-less window metacity
13427 shows the sysmenu. Resizing is still possible though).
13428 * XplatUIWin32.cs: When setting window styles send request an extra
13429 WM_NCCALCSIZE when it's a form without title (due to no text and no
13430 caption), since Win32 seems to calculate it wrong the first time we
13431 get the message, though the second time things work as they should.
13432 * Form.cs: Reorder a few statements in ChangingParent, otherwise the
13433 newly reparented window might show up unparented. Update
13434 CreateParams to exclude WS_DLGFRAME if ControlBox is false and
13435 there's no title text. Fixes #79386.
13437 2007-03-27 Mike Kestner <mkestner@novell.com>
13439 * ListBox.cs : don't perform invalidations if the handle hasn't been
13440 created. [Fixes #80753]
13442 2007-03-27 Mike Kestner <mkestner@novell.com>
13444 * ListBox.cs : don't adjust top item when SelectedIndex is set to -1.
13447 2007-03-26 Everaldo Canuto <everaldo@simios.org>
13449 * XplatUIWin32.cs: Complete NOTIFYICONDATA structure, additional fields
13450 needed to implement Balloon.
13452 2007-03-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13454 * ListViewItem.cs: In the constructors that take
13455 an array of strings, don't use ListViewSubItemCollection.AddRange
13456 method to add items, since we need to have a different behaviour (in
13457 the constructors we add an item for each null string, opposed to
13458 the behaviour of AddRange, which adds nothing).
13460 2007-03-26 Andreia Gaita <avidigal@novell.com>
13462 * NumericUpDown.cs: Fix broken 1.1 api for ParseEditText
13464 2007-03-26 Jackson Harper <jackson@ximian.com>
13466 * TextControl.cs: Draw and measure line endings when in non
13468 - When searching the text, count the end of the last line as a
13471 2007-03-26 Jackson Harper <jackson@ximian.com>
13473 * RichTextBox.cs: The selection_start and selection_end don't
13474 really track the correct tags for the selection. So we'll manually
13475 compute the correct tag here.
13477 2007-03-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
13479 * ProgressBar.cs, ThemeWin32Classic.cs: Implemented drawing of Marquee
13480 and Continuous styles. Fixes #79469.
13482 2007-03-26 Jonathan Pobst <monkey@jpobst.com>
13484 * ToolStrip.cs: Implement Tooltips.
13485 * ToolStripItem.cs: Create internal method for determining tooltip.
13487 2007-03-26 Jonathan Pobst <monkey@jpobst.com>
13489 * PropertyGrid.cs: Hide a EditorBrowsable attribute from 1.1 API.
13491 2007-03-26 Everaldo Canuto <everaldo@simios.org>
13493 * NotifyIcon.cs: On disposing verify if icon is visible and hide it,
13494 it prevents a problem thak keeps icon visible after application
13497 2007-03-26 Everaldo Canuto <everaldo@simios.org>
13499 * NotifyIcon.cs: Balloon properties and methods created.
13501 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
13502 XplatUIOSX.cs, XplatUIX11-new.cs: Implement ShowBalloonTip method.
13504 2007-03-25 Jonathan Pobst <monkey@jpobst.com>
13506 * ToolStripComboBox.cs: Default the ComboBox's FlatStyle to Popup.
13508 2007-03-24 Jonathan Pobst <monkey@jpobst.com>
13510 * Control.cs: Make SetBoundsCore match MS better. The BoundsSpecified
13511 parameter indicates which aspects were explicit/user-set.
13512 * ComboBox.cs, ListBox.cs: Call SetBoundsCore correctly. (no 0 parameters).
13514 2007-03-24 Jonathan Pobst <monkey@jpobst.com>
13516 * ProgressBar.cs: Throw AOORE instead of AE for property Value (2.0).
13517 * ScrollBar.cs: Throw AOORE instead of AE for properties LargeChange,
13518 SmallChange, and Value (2.0).
13519 * Timer.cs: Throw AOORE instead of AE for property Interval (2.0).
13521 2007-03-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13523 * ListView.cs: Always set item_control.Width in LayoutDetails
13524 if View is Details. Setting it later in CalculateScrollBars
13525 in a not-so-corner scenario (the sum of columns width is
13526 not bigger than the ListView width when handle is created, and then
13527 that sum gets bigger by increasing the width of the columns)
13528 causes a very weird recursion path (which shouldn't be happening,
13529 since header_control sets it in CalculateScrollBars too). This bug
13530 appeared after Chris' fixes for handle created issues, so probably
13531 it's related to some handle-creation time.
13533 2007-03-23 Chris Toshok <toshok@ximian.com>
13535 * DataGrid.cs (GetVisibleRowCount): increase the row count in the
13536 case where there's an add row, just so we don't end up in a case
13537 where it's not displayed (this happens when the row is partially
13538 obscured). Fixes bug #79574.
13540 2007-03-23 Jackson Harper <jackson@ximian.com>
13544 * RichTextBox.cs: Preserve line endings in the lines text buffer,
13545 also added an enum that represents the line ending type.
13547 2007-03-23 Andreia Gaita <avidigal@novell.com>
13549 * NumericUpDown.cs: Fix logic so Text and Value properties are not
13550 messed with in every method call, but only from DownButton,
13551 UpButton, UpdateEditText() and ValidateText. Fixes #80346
13553 2007-03-23 Chris Toshok <toshok@ximian.com>
13555 * DataGridTextBoxColumn.cs (GetFormattedValue): don't try to
13556 format objects if the format spec is "". Fixes bug #80889.
13558 2007-03-22 Miguel de Icaza <miguel@novell.com>
13560 * ToolStripPanel.cs (Join): added stubs to build PDN3
13562 * Control.cs (AutoScrollOffset): Add.
13564 * SystemInformation.cs (MouseWheelScrollDelta): Expose this
13565 property, its only implemented for Win32, on X11 it defaults to
13566 some hardcoded value.
13568 * ToolStripItem.cs (AllowDrop): Add property
13570 2007-03-22 Mike Kestner <mkestner@novell.com>
13572 * ListView.cs : in FullRowSelect Details mode, only enable box
13573 selection if the user clicks over the "item" column outside of the
13574 text area. Mmmmm, compatibility. [Fixes #80374 subpart 7]
13576 2007-03-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
13578 * Control.cs: ChangeParent: Call Form's ChangingParent even if the
13579 handle is not created yet.
13580 * Form.cs: Select: Don't call CreateHandle if the handle is already
13581 created, avoids a stack overflow on Windows when we are recreating
13583 * ScrollableControl.cs: Set the correct z-order for the scrollbars when
13584 they are made visible, and override AfterTopMostControl to keep
13585 them on top when other controls are brought to front.
13586 CalculateCanvas: Scrollbars are only visible if auto_scroll is true
13587 or force_*scroll_visible is true (old implementation always shows
13588 scrollbars when needed, no matter what auto_scroll was set to).
13589 * InternalWindowManager.cs: UpdateWindowDecorations: Add a
13590 IsHandleCreated check.
13592 2007-03-22 Andreia Gaita <avidigal@novell.com>
13594 * DataGrid.cs: Implement Column and Row auto sizing when double-clicking on
13595 row or col separator.
13596 * DataGridTextBoxColumn.cs: Implement GetPreferredHeight and GetPreferredSize
13598 2007-03-22 Everaldo Canuto <everaldo@simios.org>
13600 * MenuAPI.cs: Remove unneeded check for grab_control in UpdateCursor.
13602 2007-03-22 Everaldo Canuto <everaldo@simios.org>
13604 * MenuAPI.cs: UpdateCursor method added, it is calling in OnMotion to update
13605 cursor for child controls. In ShowWindow and HideWindow now call SetCursor
13606 every time. Fixes #80410.
13608 2007-03-22 Chris Toshok <toshok@ximian.com>
13610 * BindingSource.cs (AddNew): partially implement.
13612 remove a couple of NotImplementedException's
13613 to get bug #81148 closed.
13615 2007-03-22 Everaldo Canuto <everaldo@simios.org>
13620 - UpdateCursor method added to update the screen cursor.
13621 - GetAvailableCursor method added to return cursor for enabled tree,
13622 it searches for cursor on control and it's parent's for enabled control.
13623 - Call UpdateCursor method on setter of Cursor property.
13624 - On setter of Enabled call UpdateCursor when it is false, we need to
13625 change cursor to normal (or to this parent cursor) because cursor
13626 setting theres no effect to disabled controls.
13627 - Some minor source changes to follow the coding style guidelines.
13629 * XplatUIX11.cs: In MotionNotify only dispatch SET_CURSOR event for enabled
13632 2007-03-22 Chris Toshok <toshok@ximian.com>
13634 * XplatUIX11.cs: ignore the BadPicture errors cairo+render
13637 2007-03-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
13639 * XplatUIX11.cs: Implement default locations for forms.
13640 * Form.cs: Completely rework startup location for forms. Fixes #79964.
13641 * Hwnd.cs: Add previous_child_startup_location (to track the current
13642 startup location for any child forms of the current form) and
13643 previous_main_startup_location (to track the startup location for
13644 the current toplevel form).
13646 2007-03-21 Jonathan Pobst <monkey@jpobst.com>
13648 * Control.cs: Don't trigger a layout if an implicit control is added
13649 that isn't visible. Also, don't notify the owner when an implicit control
13650 is added. (Owners shouldn't even know about their implicit controls.)
13652 2007-03-21 Jonathan Pobst <monkey@jpobst.com>
13654 * ScrollableControl.cs: Add implicit controls with AddRangeImplicit
13655 to save some re-layouts.
13657 2007-03-21 Everaldo Canuto <everaldo@simios.org>
13659 * MenuAPI.cs: In ProcessKeys returns false when key is not processed.
13662 2007-03-21 Jonathan Pobst <monkey@jpobst.com>
13664 * FlowLayoutSettings.cs, ToolStrip.cs, ToolStripPanel.cs,
13665 ToolStripPanelRow.cs: Lazy instantiate the LayoutEngine.
13667 2007-03-21 Mike Kestner <mkestner@novell.com>
13669 * ListView.cs : disable selection update for non-left button clicks
13670 with mods and over selected items. [Fixes #80524]
13672 2007-03-20 Jackson Harper <jackson@ximian.com>
13675 * TextBoxBase.cs: Allow different types of line endings. \r, \r\n,
13678 2007-03-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
13680 * ComboBox.cs: PreferredHeight seems to be ItemHeight + 6, but there is
13681 very probably a more complicated calculation there. Update the
13682 textbox' ForeColor and BackColor when the ComboBox' colors are
13683 changed. Change the border change in LayoutComboBox to only affect
13684 the textbox, not all the calculations there. Seems to fix most of
13687 2007-03-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
13689 * ComboBox.cs: Handle Home and End keys as well as all combinations of
13690 modifiers + navigation keys as input keys, enables advanced text
13691 selection in the combobox (like Shift+Left Arrow for instance).
13692 ComboTextBox now overrides Focused and returns whatever
13693 ComboBox.Focused returns, since it really should be focused
13694 whenever the ComboBox is. Fixes #80795. Also make the border around
13695 the text box one pixel bigger, as mentioned in #79436.
13697 2007-03-20 Jackson Harper <jackson@ximian.com>
13699 * TreeView.cs: Don't offset the images, this was causing some
13700 artifacts when expanding/collapsing with images that were the
13701 exact height of the treenode.
13703 2007-03-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
13705 * TrackBar.cs: Query the theme for the correct value when the mouse
13706 moves and the thumb is pressed.
13707 * Theme.cs: Added TrackBarValueFromMousePosition
13708 * ThemeWin32Classic.cs: Reworked TrackBar drawing. Earlier
13709 implementation was updating the trackbar value when drawing, now
13710 the drawing methods only draw. Fixes #80900. Refactored the
13711 calculations out to TrackBarValueFromMousePosition and
13712 GetTrackBarDrawingInfo, so that TrackBar can get the correct value
13713 according to the mouse position whenever it wants to. Changed the
13714 light coloured pen when drawing the thumb from ControlLight to
13715 ControlLightLight, because the ControlLight is the same colour as
13716 the background so the 3D effect is lost.
13718 2007-03-20 Everaldo Canuto <everaldo@simios.org>
13720 * Form.cs: In ShowDialog uses MainForm as transient form when no form is
13721 defined. Fixes #80784.
13723 2007-03-20 Marek Habersack <mhabersack@novell.com>
13725 * ContextMenuStrip.cs: align with the change introduced in
13728 2007-03-20 Everaldo Canuto <everaldo@simios.org>
13730 * XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs,
13731 XplatUI.cs, Form.cs, ToolTip.cs: Remove unneeded parameter owner
13734 2007-03-19 Chris Toshok <toshok@ximian.com>
13736 * Control.cs (WmPaint): don't make use of the Handle property
13737 after an event is emitted, as the user could have closed the
13738 form/destroyed the control. Store the Handle in a local variable
13739 and make use of that. Fixes bug #80768.
13741 2007-03-20 Everaldo Canuto <everaldo@simios.org>
13743 * XplatUIX11.cs: Set _NET_WM_STATE_ABOVE on SetTopmost, it fixes Topmost
13744 behavior in X11 environments.
13746 2007-03-20 Everaldo Canuto <everaldo@simios.org>
13748 * Form.cs: Call SetTopmost in CreateHandle when window is topmost, its
13749 because on setter of topmost we dont call SetTopmost when handle is not
13752 2007-03-20 Jackson Harper <jackson@ximian.com>
13754 * TextControl.cs: Need to use SelectionLength () not
13755 selection_length, since that var is reset to -1.
13756 - Draw the caret when we don't have focus.
13757 * TextBox.cs: The selectall actually doesn't occur until the first
13759 * TextBoxBase.cs: Need to update the caret position after a
13762 2007-03-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13764 * ListView.cs: Enable scrolling when using Tile view.
13766 2007-03-20 Everaldo Canuto <everaldo@simios.org>
13770 * XplatUIDriver.cs: Abstract SetOwner method created.
13772 * XplatUIOSX.cs: Override SetOwner to prevent compilation errors method
13773 must be implemented and was masked as todo.
13775 * XplatUIWin32.cs: SetOwner implemented using SetWindowLong with
13778 * XplatUIX11.cs: SetOwner implemented using same code from SetTopmost but
13779 cheking for null owner to remove transient. The SetTopmost will be change
13782 * Form.cs: In set_Owner and CreateHandle uses new SetOwner instead of
13783 SetTopmost. Now owned forms will work properly in win32 and X11.
13785 2007-03-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
13787 * MdiWindowManager.cs: Update function name.
13788 * Form.cs: After closing a form MdiParent is always null.
13789 * MdiClient.cs: Rename CloseChildForm to ChildFormClosed to explain
13790 better what it should do: necessary book-keeping when the form is
13791 closed, it should not close the form itself.
13793 2007-03-19 Andreia Gaita <avidigal@novell.com>
13795 * ListViewItem.cs: Fix back and fore color. The subitems only
13796 use their own colors if they are set, otherwise use the listview's
13797 colors. Don't set default colors on constructor for subitem.
13800 2007-03-19 Mike Kestner <mkestner@novell.com>
13802 * ListView.cs : make box selection for Details views with
13803 FullRowSelect conform to MS behavior when clicking in the "item"
13804 column and clicking outside the defined columns.
13805 [Fixes case 5-6 of #80374]
13807 2007-03-19 Chris Toshok <toshok@ximian.com>
13809 * ScrollableControl.cs: create the controls from within the ctor,
13810 but don't actually add them until our handle is created. this
13811 fixes a NRE possibility jpobst found (if you override OnLayout in
13812 a subclass, it's called before your ctor). Also, add a
13813 IsHandleCreated guard to UpdateSizeGripVisibility as well.
13815 2007-03-19 Jackson Harper <jackson@ximian.com>
13817 * TextBox.cs: Reduce the amount of invalidation we do.
13818 * TextBoxBase.cs: Make shortcuts enabled true by default, at least
13819 some of them are true by default on MS.
13820 - Add some functions to reduce the amount of invalidates we do.
13821 * TextControl.cs: Less invalidation.
13823 2007-03-19 Chris Toshok <toshok@ximian.com>
13825 [ Fixes #81773, and *seems* to fix #81553 as well ]
13827 * XplatUIX11.cs: remove the assignment of hwnd.zombie = true from
13828 AccumulateDestroyedHandles. We need to do it *after* we send
13829 WM_DESTROY, as the user's code can access Control.Handle in
13830 OnHandleDestroyed, and this shouldn't cause a recreation. Also,
13831 move the WM_DESTROY/zombie handling to before the call to
13832 XDestroyWindow. For some reason without this ordering
13833 FormTest.RecreateHandle hangs. This ordering is semantically
13834 equivalent, however, as XDestroyWindow is async anyway.
13836 2007-03-19 Gert Driesen <drieseng@users.sourceforge.net>
13838 * RichTextBox.cs: Reset backcolor_set after setting default.
13840 2007-03-19 Chris Toshok <toshok@ximian.com>
13842 * ScrollableControl.cs: the scroll position should not effect the
13843 canvas size. commit patch from georgegiolfan@yahoo.com, which
13844 fixes some really bizarre behavior on resizing. Fixes bug #80778.
13846 2007-03-19 Chris Toshok <toshok@ximian.com>
13848 * ScrollableControl.cs: clean this up a bit. create the
13849 scrollbars in the ctor and just show/hide them as needed. Also,
13850 make hscroll_visible/vscroll_visible internal to Recalculate, and
13851 just use hscrollbar.VisibleInternal/vscrollbar.VisibleInternal
13852 everywhere else. This seems to fix the scrollbars appearing
13853 beneath the content for me (i have *no* idea why that is,
13856 2007-03-19 Jonathan Pobst <monkey@jpobst.com>
13858 * ToolStrip.cs: Don't call DoAutoSize when we change Dock. Also, remove
13859 some redundacy for stuff in Anchor and Dock that base will take care of.
13862 2007-03-19 Mike Kestner <mkestner@novell.com>
13864 * ListView.cs : make box selection for Details views without
13865 FullRowSelect dependent on the text bounds, not item bounds.
13866 * ListViewItem.cs : add an internal property to obtain the TextBounds
13867 in Details view. [Fixes case 1-4 of #80374]
13869 2007-03-19 Andreia Gaita <avidigal@novell.com>
13871 * PaintEventArgs.cs (Dispose): Only dispose of graphics object if
13872 we're < 2.0. #78448 && #80316
13874 2007-03-19 Jonathan Pobst <monkey@jpobst.com>
13876 * FontDialog.cs: Don't crash when we switch to a new font that doesn't
13877 have the same style available as the previously selected one. Also,
13878 support FixedPitchOnly property. [Fixes bugs #80918, #80947]
13880 2007-03-19 Jackson Harper <jackson@ximian.com>
13882 * TextControl.cs: Add an alignment property that all new lines
13884 - Make sure to use the align shift when calculating the line's X
13886 * TextBox.cs: Set the alignment on the document as well as on all
13887 the document lines.
13889 2007-03-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
13891 * Control.cs: ControlCollection.Add: Remove a couple of duplicated casts and
13892 throw if setting the parent of an mdichild that already has an
13893 mdiparent. Update signature for 2.0 profile. ProductName: If there's no
13894 AssemblyProductAttribute in the assembly, use the type's namespace (as
13895 MS seems to do). CreateControl: don't create the handle if the control
13896 is not visible (according to MS behaviour and spec). SetTopLevel: Only
13897 create handle if the control is not a form. Change FocusInternal to
13898 virtual so that it can be overriden by Form.
13899 * TextBox.cs: Update call to FocusInternal.
13900 * Form.cs: Always create the handle when calling Focus on a MdiChild. The
13901 form is not a toplevel form when it's a mdi child, so update is_toplevel
13902 accordingly. ShowIcon/TransparencyKey: avoid creating the handle if it
13903 hasn't been created. Show (IWin32Window): Don't allow this overload for
13904 toplevel windows. CenterToParent/CenterToScreen/Select: create the
13905 handle as MS does. SetVisibleCore: if called on a MdiChild and the
13906 parent isn't visible yet, save the visibility and restore it when the
13907 parent is made visible.
13908 * ScrollableControl.cs: Refactor out scrollbar visibility code to separate
13909 methods, since the visibility of the scrollbars can be changed from
13910 several places, not only from AutoScroll.
13913 2007-03-19 Jackson Harper <jackson@ximian.com>
13915 * RichTextBox.cs: Enable shortcuts by default.
13916 * TextBoxBase.cs: Add conditional shortcuts.
13918 2007-03-19 Everaldo Canuto <everaldo@simios.org>
13920 * MenuItem.cs: Dont call OnDrawItem when OwnerDraw is false (#81182).
13922 2007-03-19 Chris Toshok <toshok@ximian.com>
13924 [ Fixes bug #80604]
13926 * XplatUIX11.cs (WaitForHwndMessage): change this to actually
13927 swallow the message we're waiting on, instead of delivering it, as
13928 this is only used for the WM_SHOWWINDOW raised from
13929 MapWindow/UnmapWindow, and the message needs to be generated
13930 (MapWindow, UnmapWindow): generate the WM_SHOWWINDOW message
13931 before doing the Map/Unmap. Also make sure that the Hwnd is still
13932 alive after the message has been handled.
13934 *before* the window is shown.
13936 * Control.cs (CreateControl): guard a few more things inside the
13937 if (!is_created) block, as we might end up being called again -
13939 (WmShowWindow): call CreateControl if we're showing the control.
13941 2007-03-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
13943 * Control.cs: Fix 2.0 signature for Invoke. Support invoking on
13944 controls without a handle if they have any parent with a handle. In
13945 Dispose add a check whether the handle is created or not before
13946 calling BeginInvoke, this removes the need of the extra disposing
13947 parameter (which was bogus anyway since it didn't prevent the
13948 invoke from happening, it only skipped the check for an existing
13949 handle, meaning that the invoke would call on an inexistent
13952 2007-03-19 Everaldo Canuto <everaldo@simios.org>
13954 * MessageBox.cs: Remove WS_POPUP from CreateParams style, with it form
13955 appears in taskbar.
13957 2007-03-18 Everaldo Canuto <everaldo@simios.org>
13960 - Fixed a problem that dont show help button for messages with 3 buttons.
13961 - Refactory button size and position calculations, now dont use fixed
13962 values, also fixed button sizes (#80043) and form's border space.
13963 - AddButton method created, now all other AddButton methods call this one.
13964 - Some other source code cosmetic changes.
13966 2007-03-18 Jackson Harper <jackson@ximian.com>
13968 * RichTextBox.cs: Don't do this all fonts must match check if
13969 there is only one char selected.
13971 2007-03-18 Jackson Harper <jackson@ximian.com>
13973 * TreeView.cs: ScrollWindow works properly now, so we don't need
13974 to screw around with the scroll area. This fixes some artifacts
13975 when expanding and collapsing.
13977 2007-03-18 Jackson Harper <jackson@ximian.com>
13979 * TextBoxBase.cs: Allow updating the selection position when the
13980 cursor is outside the textarea, but we have a capture.
13981 * TextControl.cs: A special case for when the cursor is outside
13982 the bounds of the TB.
13984 2007-03-18 Jackson Harper <jackson@ximian.com>
13986 * TextBoxBase.cs: Remove image pasting code for now. There is no
13987 way to get an image on the clipboard right now anyways.
13989 * RichTextBox.cs: Use the new RTF Picture class for pictures.
13991 2007-03-18 Everaldo Canuto <everaldo@simios.org>
13994 - Set window properties in constructor intead of on CreateParams.
13995 - Remove topmost from Window ExStyle.
13996 - Set ShowInTaskbar to false.
13997 - Set form border to FixedDialog.
13998 - Some cosmetic changes and remove unneeded comments.
13999 - It fixes itens 2,3 and 4 of bug #80043.
14001 2007-03-18 Gert Driesen <drieseng@users.sourceforge.net>
14003 * TextBoxBase.cs: In setter for ReadOnly, only chance BackColor if
14004 none was explicitly set. Fixes part of bug #79949.
14006 2007-03-16 George Giolfan <georgegiolfan@yahoo.com>
14008 * ToolStripComboBox.cs: Add AutoComplete*.
14010 2007-03-16 George Giolfan <georgegiolfan@yahoo.com>
14012 * ToolStripComboBox.cs: Add FlatStyle.
14014 2007-03-16 Jonathan Pobst <monkey@jpobst.com>
14016 * ToolStrip.cs, ToolStripProfessionalRenderer.cs,
14017 ToolStripSplitStackLayout.cs: Implement some basic vertical toolbar support.
14019 2007-03-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
14021 * ButtonBase.cs, ToolStrip.cs, SendKeys.cs, TextRenderer.cs,
14022 CheckBox.cs, RadioButton.cs, BindingSource.cs,
14023 DataGridColumnStyle.cs: Remove warnings.
14025 2007-03-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
14027 * Menu.cs: MergeMenu: Check menu argument for null before looping over
14029 * MdiWindowManager.cs: Add IsVisiblePending to track the pending
14030 visibility of mdi child forms. FormSizeChangedHandler: update the
14031 maximized size if size has changed while maximized.
14032 * MdiClient.cs: SizeScrollbars/ArrangeWindows/ActivateChild: Avoid
14033 creating the handle.
14034 * InternalWindowManager.cs: UpdateBorderStyle/FormSizeChangedHandler:
14035 avoid creating the handle if not created.
14036 * XplatUI.cs: Update debug output.
14037 * XplatUIStructs.cs: Added ToString's for a couple of structs.
14039 2007-03-16 Jonathan Pobst <monkey@jpobst.com>
14041 * ContainerControl.cs: Give ToolStripManager the opportunity to handle
14043 * ToolStripDownItem.cs, ToolStripItem.cs, ToolStripItemCollection.cs,
14044 ToolStripItemEventType.cs, ToolStripManager.cs, ToolStripMenuItem.cs:
14045 Implement keyboard shortcuts.
14047 2007-03-15 Everaldo Canuto <everaldo@simios.org>
14049 * CommonDialog.cs: Set StartPosition to CenterScreen on form's constructor.
14050 Fixes #79560 and #80200, it also fix problem in FileDialog, SaveDialog,
14051 ColorDialog and all derived classes.
14053 2007-03-15 Everaldo Canuto <everaldo@simios.org>
14055 [ Fixes bug #79828 ]
14058 - Rename ToolBarButtonInfor to ToolBarItem.
14059 - Add all layout and calculation stuff gtom ToolBarButton to ToolBarItem.
14060 - Maintain an array of ToolBarItem, used instead of ToolBarButton
14061 collection to be able add same button more than one time on a toolbar.
14062 - Refactory all properties and methods to use ToolBarItem.
14064 * ToolBarButton.cs:
14065 - Remove all propeties and methods that is now in ToolBarItem.
14066 - Rectangle propery now gets the rectangle from first ToolBarItem to
14067 mimic win32 behavior.
14068 - Size calculation and layout methods also removed.
14070 * ThemeWin32Classic.cs: Change all ToolBar drawing methods to receive
14071 ToolBarItem instead of ToolBarButton to right drawing buttons when
14072 same button/separator was added more than one time to ToolBar.
14074 * ThemeNice.cs: Same as above.
14076 2007-03-15 Andreia Gaita <avidigal@novell.com>
14078 * XplatUIX11.cs: Fire extra MouseMove events right after
14079 MouseDown and MouseUp, emulating win32's <censored> behaviour
14080 for apps that rely on it.
14082 2007-03-15 Jackson Harper <jackson@ximian.com>
14085 * TextBoxBase.cs: On MS, a fixed single border is not in NC area,
14086 it is drawn on the controls client window and there is no NC
14088 - Set the background color to gray on 2.0 when we are readonly.
14090 2007-03-15 Chris Toshok <toshok@ximian.com>
14092 [ Fixes bug #81144 ]
14094 * XplatUIX11.cs: implement VirtualScreen independently of
14095 WorkingArea, by querying the _NET_DESKTOP_GEOMETRY root window
14098 2007-03-15 Chris Toshok <toshok@ximian.com>
14100 * Hwnd.cs: add an internal field for the cached_window_state.
14102 * XplatUIX11.cs: cache the window state, invalidating the cache
14103 (and thus re-querying the X server) only when we see an update to
14104 the _NET_WM_STATE property.
14106 2007-03-15 Chris Toshok <toshok@ximian.com>
14108 * BindingSource.cs: get a lot of the unit tests working.
14110 2007-03-15 Jonathan Pobst <monkey@jpobst.com>
14112 * Control.cs: Modify UpdateStyles to store distances when bounds >=
14113 0 instead of just bounds > 0. [Fixes bug #80912]
14115 2007-03-15 Jonathan Pobst <monkey@jpobst.com>
14117 * ToolStrip.cs, ToolStripItem.cs: Implement several new properties
14120 2007-03-15 Ivan N. Zlatev <contact@i-nz.net>
14122 * ComboBox.cs, Control.cs, XplatUIStructs.cs, XplatUIX11GTK.cs,
14123 XplatUIX11.cs, XplatUIWin32.cs, InternalWindowManager.cs,
14124 XplatUIOSX.cs, TextControl.cs: Replaces all uses of the custom
14125 WM_MOUSE_LEAVE with the system WM_MOUSELEAVE message.
14127 2007-03-15 Chris Toshok <toshok@ximian.com>
14131 * Control.cs: add Ivan's fix for 81101, with a slight modification
14132 - you can set control.Target to null.
14134 2007-03-14 Jonathan Pobst <monkey@jpobst.com>
14136 * ToolStripItem.cs: If our OwnerItem is null, we can't use
14137 HideDropDown, use Hide instead to prevent an NRE.
14140 2007-03-14 Jackson Harper <jackson@ximian.com>
14142 * TextBoxBase.cs: Mess with the creation stuff a little. We need
14143 to calculate the document before the handle is created, in some
14144 cases. (Actually just one case).
14146 2007-03-14 Jackson Harper <jackson@ximian.com>
14148 * TextBoxBase.cs: Need to display the caret after letting the base
14149 wndproc handle the focus methods, because the caret display
14150 methods check the focus state.
14151 - Try to display the caret after updating it's position with SelectWord.
14152 - Don't need to do an immediate update on this recalc, since there
14153 will be an invalidate anyways.
14155 2007-03-14 Jackson Harper <jackson@ximian.com>
14157 * TreeView.cs: Some workarounds so that we can match event order a
14160 2007-03-14 Gert Driesen <drieseng@users.sourceforge.net>
14162 * ErrorProvider.cs: Invoke default ctor from 2.0-only ctor. Fixes bug
14163 #80803. Avoid NullReferenceException when Control does not have
14164 parent. Fixed different blinkstyle issues. Only subscribe to Tick
14165 event a single time. Only draw error icon when control is created and
14166 visible. Fixes failing unit tests.
14168 2007-03-14 Andreia Gaita <avidigal@novell.com>
14170 * TabControl.cs: Add support for 2.0 Deselecting, Deselected and
14171 Selecting events. Fire Leave and Enter events when changing tabs.
14173 2007-03-14 George Giolfan <georgegiolfan@yahoo.com>
14175 * TreeView.cs: Add TreeViewNodeSorter.
14176 * TreeNodeCollection.cs: Add sorter parameter to Sort method.
14178 2007-03-14 Chris Toshok <toshok@ximian.com>
14180 * Form.cs: go ahead and remove the RecreateHandles that jpobst
14181 removed earlier and I had him add back it. It turns out metacity
14182 *does* in fact handle the MOTIF_WM_HINTS property changing, it
14183 just doesn't redraw the window titlebar until you resize the
14184 window. This also means we aren't recreating the entire window
14185 hierarchy on X when you change this property. And it looks better
14188 2007-03-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
14191 * ListView.cs: Collecting selection information
14192 is now done in SelectedIndexCollection rather than in
14193 SelectedListViewItemCollection. This is done so we can
14194 have the selection information code in one single place
14195 (virtual mode selection information entirely depends on
14196 SelectedIndexCollection).
14198 2007-03-13 Miguel de Icaza <miguel@novell.com>
14200 * ErrorProvider.cs: Add stubs for ISupportInitialize
14202 2007-03-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
14204 * ListViewItem.cs: Trigger the ItemCheck and ItemChecked events
14205 in the right order with the right values, from the Checked property,
14206 just as MS does (instead of triggering them from ListView).
14208 * ListView.cs: Make OnItemCheck and OnItemChecked internal.
14210 2007-03-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
14212 * ListView.cs: Implement ItemChecked 2.0 event. Also cast to
14213 the correct handler in OnItemCheck method (ItemCheckEventHandler
14214 instead of EventHandler). This used to throw an InvalidCastException.
14216 2007-03-13 Jackson Harper <jackson@ximian.com>
14218 * TextBoxBase.cs: Calculate the document before the handle is
14219 created, so there isn't an extra invalidate called.
14221 2007-03-13 Jonathan Pobst <monkey@jpobst.com>
14223 * Form.cs: Don't set owner in ShowDialog until we are sure
14224 that we aren't going to throw an exception. [Fixes bug #80773]
14226 2007-03-12 George Giolfan <georgegiolfan@yahoo.com>
14228 * TreeView.cs: Make it compile.
14230 2007-03-12 Jonathan Pobst <monkey@jpobst.com>
14232 * Control.cs: Another place we don't call SizeFromClientSize.
14233 * Form.cs: Another place we don't call SizeFromClientSize.
14236 2007-03-12 Jackson Harper <jackson@ximian.com>
14238 * TreeView.cs: Basically emulating some strangness here with
14239 exanding nodes and setting node positions when windows aren't
14241 - Also attempting to walk the node tree less than previously, and
14242 just use visible order calculations for determining offsets.
14243 - oops made scrolling backwards.
14244 * TreeNode.cs: We need to start nodes with a zero visible order,
14245 because the order calcs are based on the first nodes order.
14247 2007-03-12 Jonathan Pobst <monkey@jpobst.com>
14249 * Form.cs: Don't exit the program if RecreateHandle is called on
14252 2007-03-12 Chris Toshok <toshok@ximian.com>
14254 * XEventQueue.cs: remove the use of PostQuitState.
14256 * XplatUIX11.cs: remove the use of PostQuitState. If we get a
14257 WM_QUIT message in GetMessage, return false (and if we're in the
14258 nested WaitForHwndMessage, repost the WM_QUIT message).
14260 2007-03-12 Jonathan Pobst <monkey@jpobst.com>
14262 * Form.cs: Don't call RecreateHandle when we change the MinimizeBox
14263 or the MaximizeBox properties. [Part of bug #80640]
14265 2007-03-12 Everaldo Canuto <everaldo@simios.org>
14267 * LinkLabel.cs: When calculate pieces make LinkArea empty if theres
14270 2007-03-12 Jonathan Pobst <monkey@jpobst.com>
14272 * ToolStripItem.cs: Fix some tests I broke by checking Visible
14273 instead of visible.
14275 2007-03-12 Gert Driesen <drieseng@users.sourceforge.net>
14277 * FileDialog.cs: Use text of File name combobox to determine what
14278 files the user selected. Added tokenizer to parse the file names.
14281 2007-03-12 Jonathan Pobst <monkey@jpobst.com>
14283 * Control.cs: We can't call SizeFromClientSize in the constructor,
14284 but we still need to do the same work, so make an internal version.
14287 2007-03-12 Jackson Harper <jackson@ximian.com>
14291 * OpenTreeNodeEnumerator: Match MS better for IsVisible and
14294 2007-03-12 Jackson Harper <jackson@ximian.com>
14296 * TextBoxBase.cs: Now that the handles are being created a little
14297 later, we need to make sure that the document is recalculated when
14298 the handle is created.
14300 2007-03-11 Everaldo Canuto <everaldo@simios.org>
14302 * Theme.cs: GetLinkFont abstract method added.
14305 - Remove CalcTrimRectangle, no longer needed.
14306 - Factor also remove, position issues must be fixed in libgdiplus.
14307 - Move GetPieceColor to ThemeWin32Classic.cs as it is theme related.
14308 - GetPieceFont, CreateLinkFont and link_font removed, theme must be
14309 care about font used to draw links.
14310 - Set TabStop to true when control is "Selectable", control is selectable
14311 when have one or more links. Fixes #80501 (test case is also added).
14312 - Set the LinkArea values after links change, LinkArea values must be
14313 based in first link position and size, a test case was created.
14314 - Fix ControlStyles.Selectable value, now is based on LinkArea value,
14315 the attribute must be true LinkArea.Length > 0. The same was applied to
14318 * ThemeWin32Classic.cs:
14319 - LinkLabelGetPieceColor and LinkLabelGetPieceFont created and used
14321 - Use CPDrawStringDisabled to draw disabled text instead of hard code
14323 - Draw focus rectangle for every parts focused, including parts that
14324 is on another line, its because regions returns various rectangles
14325 and not only one. Needed to mimic W32 look.
14326 - Uses Graphics.Clip to delimite region painted, it mean that now
14327 complete text is passed to DrawString, with this we solve layout
14328 issues without create another text renderer.
14329 - Uses Region.Intersect to fix some flickers problems, now only needed
14330 parts will redrawed.
14331 - This changes fixes #79614 and some other unreported issues, on Linux
14332 some layout problems still remain, the problem is under
14333 MeasureCharacterRanges but it is an libgdiplus bug.
14335 2007-03-10 Gert Driesen <drieseng@users.sourceforge.net>
14337 * TextBox.cs: Set for foreground color.
14338 * TextBoxBase.cs: Remove Invalidate when setting BackColor, since
14339 this is already done in Control.
14341 2007-03-10 Jackson Harper <jackson@ximian.com>
14343 * TextBox.cs: Set the background color, but reset the
14344 backcolor_set flag which is just for the user setting the
14347 2007-03-09 Chris Toshok <toshok@ximian.com>
14349 * Control.cs: really remove the call to XplatUI.SetVisible from
14350 CreateHandle(), like I said I did when I merged the branch.
14352 * BindingSource.cs: implement some more of this stuff.
14354 2007-03-09 Jackson Harper <jackson@ximian.com>
14356 * TextBox.cs: Don't explicitly set our background colors.
14358 * TextBoxBase.cs: Draw readonly text.
14359 - Need to invalidate when backcolor or readonly are changed.
14361 2007-03-09 Jackson Harper <jackson@ximian.com>
14363 * TextBoxBase.cs: Don't set the forecolor until the handle is
14365 - Do not raise OnPaint, and removed some old debug code.
14367 2007-03-09 George Giolfan <georgegiolfan@yahoo.com>
14369 * ScrollableControl.cs: Fix mouse wheel scrolling.
14371 2007-03-09 Jonathan Pobst <monkey@jpobst.com>
14373 * Control.cs: Wire up MouseDoubleClick event.
14375 2007-03-09 Jonathan Pobst <monkey@jpobst.com>
14377 * ToolStrip.cs: Rework AutoSize to adjust height when docked to the
14379 * ToolStripItem.cs: Make Image drawing take ImageScaling into account.
14380 * ToolStripItemCollection.cs: Don't call owner.PerformLayout when a new
14381 item is added. This logic was moved to ToolStrip.OnItemAdded.
14384 2007-03-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
14386 * ListVieItem.cs: SetIndex is only valid for 2.0 profile by now.
14388 2007-03-08 Jackson Harper <jackson@ximian.com>
14390 * TreeView.cs: Show the correct image for selected node (this used
14391 to work, not sure how the code got deleted). Also implemented 2.0 feature
14394 2007-03-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
14397 * ListViewItem.cs: Cache index in items when retrieving them
14400 2007-03-08 Jonathan Pobst <monkey@jpobst.com>
14402 * ToolStripItem.cs: Don't return the explicit_size if we are using
14403 AutoSize. Fixes invalidation issue when user has explicitly set a
14404 size and has AutoSize = true.
14406 2007-03-08 Jonathan Pobst <monkey@jpobst.com>
14408 * XplatUIX11.cs: Hardcode FrameBorderSize value temporarily to fix MWF.
14410 2007-03-07 Pedro MartĂnez JuliĂ¡ <pedromj@gmail.com>
14412 * DataGridView.cs: Remove event handler from DataView when a
14413 DataTable is used as DataSource.
14415 2007-03-08 Jonathan Pobst <monkey@jpobst.com>
14417 * Control.cs: Create internal setter for client_size to allow it to be
14418 set without triggering resizing code.
14419 * Form.cs: Calculate client_size in constructor, only change client_size
14420 in FormBorderStyle property if Handle has been created.
14421 [Fixes #80574, #80791]
14423 2007-03-08 George Giolfan <georgegiolfan@yahoo.com>
14425 * SystemInformation.cs: Add TerminalServerSession.
14427 2007-03-07 Jonathan Pobst <monkey@jpobst.com>
14429 * TreeViewDrawMode.cs: Make internal for 1.1 to allow for consolidated
14432 2007-03-07 Jonathan Pobst <monkey@jpobst.com>
14434 * XplatUIWin32.cs: The no_activate stuff was forcing us to create a
14435 Handle before we were supposed to. Now checks ActivateOnShow property
14437 * Control.cs: Add internal ActivateOnShow property.
14438 * ComboBox.cs, Form.cs, MenuAPI.cs, ToolStripDropDown.cs: Return false
14439 for ActivateOnShow.
14440 * Hwnd.cs Remove no longer needed no_activate field.
14442 2007-03-07 Jackson Harper <jackson@ximian.com>
14444 * TreeView.cs: Implement owner draw tree nodes. And a couple more
14446 * DrawTreeNodeEventHandler.cs: Add
14447 * DrawTreeNodeEventArgs.cs: Correct default value.
14449 2007-03-07 Chris Toshok <toshok@ximian.com>
14451 * XplatUIWin32.cs: create InternalWndProc so that we're guaranteed
14452 to be called before NativeWindow.WndProc. Put the HwndCreating
14453 magic there to hook up our Hwnd's to handles.
14455 2007-03-07 Gert Driesen <drieseng@users.sourceforge.net>
14457 * DataGridView.cs: Comment out debug code.
14459 2007-03-07 Chris Toshok <toshok@ximian.com>
14461 [merge -r72718:73765 from mwf-handle-branch, and include 2 changes
14462 to make the rest of the world happy]
14464 * Control.cs (CreateHandle): there's no need to call
14465 XplatUI.SetVisible here, it's effectively done by
14466 XplatUI.CreateWindow on X now, and always was on windows.
14468 * XplatUIX11.cs (WaitForHwndMessage): only use the PostQuitState
14469 shortcircuit out of the loop if we have a message loop running on
14472 [Changelog from merge]
14474 2007-03-05 Chris Toshok <toshok@ximian.com>
14476 * Control.cs (AccessibilityNotifyClients): turns out in 1.1 this
14477 causes handle creation.
14479 2007-02-28 Chris Toshok <toshok@ximian.com>
14481 * ApplicationContext.cs: Add a flag to make sure we only raise the
14482 ThreadExit event once (ExitThreadCore can be indirectly called
14483 from a few places.) I don't like the additional flag, but it
14484 makes the event ordering/count correct.
14486 * Application.cs (MWFThread.LoopCount): don't use an enumerator
14487 without locking the collection. An enumerator doesn't give us any
14488 protection from modification anyway. Lock the thread hash and
14489 replace the complicated enumerator loop with a foreach.
14490 (Application.CloseForms): make internal so it can be called from
14491 ApplicationContext. This should probably be moved to MWFThread.
14492 (Application.ExitThread): don't call MWFThread.Current.Exit()
14493 here. just call XplatUI.PostQuitMessage. We'll exit the thread
14494 when the runloop exits (in response to WM_QUIT.)
14495 (Application.RunLoop): add a comment (and check) for
14496 context.MainForm being null after setting context.MainForm.Visible
14497 = true. This is because you're perfectly free to dispose of a
14498 form in VisibilityChanged. Chalk this up to another case where we
14499 need to synchronously generate WM_ACTIVATE from Control.Show.
14500 Also, add handling for WM_QUIT here so we'll exit the loop.
14502 * XplatUIX11.cs: clean up MapWindow and UnmapWindow a bit. The
14503 fact that we don't wait if we're only unmapping the whole_window
14504 makes me a bit nervous, but it doesn't seem to cause any problems
14507 also, add a comment about the stupid, broken and wrong resetting
14508 of PostQuitState to false in GetMessage().
14510 In PostQuitMessage, we need to add a WM_QUIT message to the
14511 thread's queue. We use the FosterParent to get the right
14514 Lastly, in SetVisible, we need to unmap both windows, since the
14515 waiting only happens when we're unmapping the client window. So
14516 now, the *only* time we unmap just the whole_window is in the hack
14517 for resizing a control to 0,0.
14519 2007-02-21 Chris Toshok <toshok@ximian.com>
14521 * Application.cs (CloseForms): rewrite this so that we don't
14522 modify the list while we're traversing it.
14524 2007-02-20 Chris Toshok <toshok@ximian.com>
14526 * ListBox.cs (.ctor): move the Control.AddImplicits here instead
14527 of OnHandleCreated.
14528 (HorizontalScrollEvent): only call XplatUI.ScrollWindow if the
14529 handle is created. otherwise we'll create it here.
14530 (VerticalScrollEvent): same here.
14532 * Application.cs (CloseForms): call Form.Dispose, don't post
14535 * Form.cs (WndProc): we don't need to use CLOSE_INTERNAL
14536 here. Application should Dispose() of the Form's.
14538 * XplatUIX11.cs (WaitForHwndMessage): break out of the loop on
14539 WM_DESTROY as well.
14540 (MapWindow,UnmapWindow): only actually do the waiting for
14541 SHOWWINDOW if the control we're dealing with is a Form.
14542 (CreateWindow): if the control isn't a form, SendMessage
14543 WM_SHOWWINDOW here (if the WS_VISIBLE style is set).
14545 * Control.cs (SetVisibleCore): always use is_visible here, not
14546 value. If we use value, we can end up re-setting something
14547 visible if, for instance, you do Control.Hide() in a delegate
14548 attached to VisibleChanged as we do in FormTest.ShowDialogTest.
14550 2007-02-20 Chris Toshok <toshok@ximian.com>
14552 * XplatUIX11.cs (WaitForHwndMessage): we need to loop until we get
14553 the message we need. PeekMessage returning false should not be a
14554 condition under which we exit the loop.
14556 2007-02-15 Chris Toshok <toshok@ximian.com>
14558 * Control.cs (Refresh): only refresh if we've got a handle and are
14560 (CreateAccessibilityInstance): CreateControl() here.
14561 (UpdateChildrenZOrder): complicate the code loop even more by
14562 taking into account controls that haven't had their handle
14563 created, and those that aren't visible. But on the flip side,
14564 simplify the code by splitting it into two loops. one which
14565 builds up the list of child controls we're interested in, and the
14566 other that sets the z order of those children.
14568 2007-02-14 Chris Toshok <toshok@ximian.com>
14570 * Control.cs: Control.AccessibilityObject causes the control to be
14571 created, not just the handle.
14573 2007-02-14 Chris Toshok <toshok@ximian.com>
14575 * Control.cs: rework UpdateChildrenZOrder to correctly handle the
14576 problem on X where a window might have its handle created (and be
14577 visible) while the window is unmapped. calling XConfigureWindow
14578 on an unmapped window is bad, and generates X errors.
14580 2007-02-13 Chris Toshok <toshok@ximian.com>
14582 * Control.cs (CreateHandle): don't loop over our children setting
14583 their parent here. do it when in WndProc when we're shown.
14584 (UpdateChildrenZOrder): make this internal so we can call it from
14586 (WndProc): for WM_SHOWWINDOW, reparent the child control after
14587 creating its handle. Also, remove the calls to PerformLayout from
14588 here. they're done in ScrollableControl.OnVisibleChanged. Also,
14589 OnVisibleChanged only seems to be called directly here for the
14590 toplevel control. It's propagated down the window hierarchy by
14591 calls to child.OnParentVisibleChanged.
14592 (OnVisibleChanged): don't do layout here - it's done (oddly
14593 enough, according to a glance at stack traces on ms.net..) in
14596 * ScrollableControl.cs (OnVisibleChanged): make sure we update the
14597 z order of our children before calling PerformLayout.
14599 2007-02-12 Chris Toshok <toshok@ximian.com>
14601 [big change, fixes #80020]
14603 * AccessibleObject.cs: we need to make owner internal again to fix
14604 some of ControlAccessibleObject.
14606 * Control.cs: lots of changes here. add support for WM_CREATE,
14607 for which we generate OnHandleCreated. Remove the OnHandleCreated
14608 call from CreateHandle. Also add support for WM_SHOWWINDOW where
14609 we create child controls. leave the MonoTODO's for the
14610 accessibility calls, but fix the exceptions so the tests pass.
14612 Add the InvalidOperationExceptions to Invoke methods, and remove a
14613 couple of InvokeInternal methods we aren't using.
14615 Also, add a couple of CreateHandle calls in places where we know
14616 the handles are being created but our code doesn't reference
14619 Make SetVisibleCore call OnVisibleChange if the handle isn't
14620 created. If the handle is created, we rely on XplatUI.SetVisible
14621 generating the event synchronously.
14623 Lastly, make sure we don't use this.Handle inside CreateHandle,
14624 because we can call back into client (and that code can dispose of
14627 * XplatUIStructs.cs: misc/cleanup.
14629 * XplatUIX11.cs: Map/Unmap X events correspond to WM_SHOWWINDOW,
14630 although we don't populate the wParam properly.
14631 (CreateWindow): generate WM_CREATE.
14632 (MapWindow,UnmapWindow): make these calls synchronous, at great
14633 performance expense (particularly in the unmap case), to match
14636 * Form.cs (.ctor): remove the call to UpdateBounds. we don't need
14638 (set_MdiParent): don't recreate the handle unless it's been
14641 * MdiClient.cs (OnResize): don't InvalidateNC Parent.Handle unless
14644 * NativeWindow.cs: this is probably the weirdest part of the
14645 patch. We need a way to link up the window being created to the
14646 WM_CREATE message. Since we can only be creating one window at a
14647 time on a given thread, we keep track of a per-thread reference so
14648 we can dispatch it properly. We also need to keep track of the
14649 Hwnd currently being created so that the win32 backend doesn't
14652 * XplatUIWin32.cs: a similar change to the one we made in
14655 2007-03-07 Jonathan Pobst <monkey@jpobst.com>
14657 * ToolStripItem.cs: Make CalculatePreferredSize virtual.
14658 * ToolStripMenuItem.cs: Modify CalculatePreferredSize and OnPaint
14659 to draw the menu shortcut string.
14661 2007-03-07 Jackson Harper <jackson@ximian.com>
14663 * TreeNode.cs: Add the 2.0 collapse method.
14665 2007-03-07 Pedro MartĂnez JuliĂ¡ <pedromj@gmail.com>
14667 * DataGridViewColumn.cs: Fix HeaderText behaviour (Bug #80746).
14669 2007-03-07 Pedro MartĂnez JuliĂ¡ <pedromj@gmail.com>
14671 * DataGridView.cs: Change DataSource will clear column and row
14672 lists. Call Invalidate() to reflect DataSource change.
14674 2007-03-07 Pedro MartĂnez JuliĂ¡ <pedromj@gmail.com>
14676 * DataGridView.cs: Add rows when DataSource is System.Data.DataView
14677 and a new row is added to it.
14679 2007-03-07 Pedro MartĂnez JuliĂ¡ <pedromj@gmail.com>
14681 * DataGridView.cs: Add columns when DataSource is en empty list but
14682 is a System.Data.DataView (from a System.Data.DataTable).
14684 2007-03-06 Andreia Gaita <avidigal@novell.com>
14686 * Label.cs: Implement AutoEllipsis (2.0)
14688 2007-03-06 Jackson Harper <jackson@ximian.com>
14690 * TreeView.cs: Implement 2.0 TopNode setter property.
14691 - Use a local var instead of the skipped_nodes field for computing
14692 how many nodes to skip. Otherwise we won't scroll because the
14693 valuechanged handler checks if skipped_nodes is equal to the new
14695 - Implement 2.0 Sort method.
14696 - Add useless 2.0 DoubleBuffer property
14697 - Implement 2.0 LineColors property. Lets you change the color of
14698 the lines in the tree. Terribly useful for creating non cohesive
14700 - Implement 2.0 image key feature.
14702 2007-03-06 Jackson Harper <jackson@ximian.com>
14704 * TreeView.cs: We can't get the bounds of the nodes before raising
14705 the AfterSelect event, because that event could change the node's
14706 bounds (scrolling, font change, etc).
14708 2007-03-06 Rolf Bjarne Kvinge <RKvinge@novell.com>
14710 * XplatUIWin32.cs: When faking styles don't remove the WS_VISIBLE flag.
14711 * Form.cs: Don't recreate handle when creating FormWindowManager, just
14712 update window styles. In CreateParams us VisibleInternal instead of
14713 VIsible to get the actual visible flag set for this form.
14714 * FormWindowManager.cs: Activate the form whenever the mouse clicks on
14715 the nc area. Fixes #81042. Also fix HandleTitleBarDoubleClick to
14716 handle the case when the form is already maximized, in which case
14717 it should be restored. Fixes #81043.
14719 2007-03-06 Rolf Bjarne Kvinge <RKvinge@novell.com>
14721 * XplatUIX11.cs: Tool windows still get wm styles. Fixes toolwindows showing up with double decorations.
14723 2007-03-05 Jackson Harper <jackson@ximian.com>
14725 * TreeViewHitTestInfo.cs: implement.
14727 2007-03-05 Jackson Harper <jackson@ximian.com>
14729 * InternalWindowManager.cs: class status fix.
14731 2007-03-05 Rolf Bjarne Kvinge <RKvinge@novell.com>
14733 * InternalWindowManager.cs: All windows that have a parent
14734 are confined to their parent when they're being moved.
14737 2007-03-04 Gert Driesen <drieseng@users.sourceforge.net>
14739 * SystemInformation.cs: Marked KeyboardDelay and KeyboardSpeed public
14740 on 2.0 profile. Fixes bug #81018. Small code formatting fixes.
14742 2007-03-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
14744 * ThemeWin32Classic.cs: ManagedWindowSetButtonLocations: Make all
14745 buttons invisible before deciding which ones should be visible
14746 (fixes minimize/maximize buttons showing up in toolwindows). Remove
14747 an unused variable.
14748 * InternalWindowManager.cs: Remove warning.
14750 2007-03-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
14752 * ListView.cs: Add a check in ListViewItemCollection.RemoveAt
14753 to throw an InvalidOperationException is virtual mode is being used.
14755 2007-03-02 Jonathan Pobst <monkey@jpobst.com>
14757 * SplitContainer.cs, SplitterPanel.cs, StatusStrip.cs, TableLayoutPanel.cs,
14758 ToolStrip.cs, ToolStripContainer.cs, ToolStripContentPanel.cs,
14759 ToolStripControlHost.cs, ToolStripDropDownItems.cs, ToolStripItem.cs,
14760 ToolStripMenuItem.cs, ToolStripOverflowButton.cs, ToolStripPanel.cs,
14761 ToolStripPanelRow.cs, ToolStripProfessionalRenderer.cs, ToolStripSplitButton.cs,
14762 ToolStripStatusLabel.cs, ToolStripTextBox.cs: Corcompare work.
14764 2007-03-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
14766 * XplatUI.cs: Fixed returning driver.KeyboardSpeed instead of
14767 driver.KeyboardDelay from XplatUI.KeyboardDelay
14768 * XplatUIW in32.cs: Implemented KeyboardSpeed/KeyboardDelay properties
14769 (patch by Sergey Volk)
14771 2007-03-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
14773 * ToolWindowManager.cs: Added, contains logic for
14775 * CreateParams.cs: Add a few helper methods and an
14776 internal variable to know which control the CreateParams belongs
14778 * Control.cs: Call Form.ChangingParent when the
14779 parent is about to be changed.
14780 * XplatUIX11.cs: DeriveStyles (): Set
14781 caption_height for all windows that have captions and are children.
14782 Update to use ToolWindowManager instead of InternalWindowManager
14784 * XplatUIWin32.cs: Set fake window styles for all
14785 windows that have window managers.
14786 * MdiWindowManager.cs: Added MaximizedTitleButtons (buttons are
14787 now duplicated for mdi windows when they are
14788 maximized, first for the buttons the window itself has, then for
14789 the buttons that appear in the menu bar. Makes things a little
14790 easier). Updated UpdateWindowDecorations, SetWindowState and the
14791 mouse eventhandlers accordingly.
14792 * Form.cs: Add ChangingParent (), contains the
14793 logic of what should happen when the parent changes. In MdiParent
14794 don't set things that ChangingParent () is doing. When handling
14795 WM_CLOSE, we can close the form if there are any other modal forms
14796 and the current form is a descendent of the modal form.
14797 * InternalWindowManager.cs: A lot of refactoring,
14798 the title buttons are now extracted to a separate container class
14799 that takes care of all button code (clicks, tooltips, etc). Moved
14800 Iconic|Maximized|Normal Bounds properties to this class from
14801 MdiWindowManager, so that the window state logic can succeed for
14802 other than mdi wm's. Implemented general window state change logic.
14803 Moved CreateButtons to ThemeWin32Classic, since the theme might
14804 override which buttons are available when as well as the exact
14806 * FormWindowManager.cs: Added, contains logic for
14808 * ThemeWin32Classic.cs: ManagedWindowSetButtonLocations now decides
14809 which buttons go where (and if they are at all visible).
14810 Removed special handling of maximized windows, since they aren't special.
14811 In DrawManagedWindowDecorations don't try to draw the text if it is
14813 * MdiClient.cs: ArrangeIconicWindows: Don't calculate any sizes,
14814 use whatever the wm gives us.
14816 2007-03-02 Jonathan Pobst <monkey@jpobst.com>
14818 * ButtonBase.cs: Add 2.0 properties.
14819 * Button.cs: Override Draw for 2.0.
14820 * Control.cs: Add Entered and Selected properties.
14821 * FlatButtonAppearance.cs, TextFormatFlags.cs, TextImageRelation.cs,
14822 TextRenderer.cs: Make internal for 1.1 to unify drawing code.
14823 * Theme.cs: New abstract functions for drawing Standard, Flat, Popup
14825 * ThemeWin32Classic.cs: Implement layout calculations for 2.0 buttons.
14827 2007-03-01 Jonathan Pobst <monkey@jpobst.com>
14829 * XplatUIWin32.cs: Don't use 2.0 methods in 1.1 code. :/
14831 2007-03-01 Jonathan Pobst <monkey@jpobst.com>
14833 * XplatUIWin32.cs: Register a new class with Windows each time we get
14834 a new ClassStyle. [Fixes bugs #79432, #80817]
14835 * Controls.cs: Set the correct ClassStyle in CreateParams.
14836 * ToolStripDropDown.cs: Don't request an invalid ClassStyle.
14838 2007-03-01 Gert Driesen <drieseng@users.sourceforge.net>
14840 * ListView.cs: Add fireEvent argument to ReorderColumn since the
14841 ColumnReordered event must not be signaled when modifying DisplayIndex
14842 of a ColumnHeader. Added internal ReorderColumns method which takes
14843 care of drawing, and updating the internal DisplayIndex of the
14844 ColumnHeader. Added AddColumn method which is invoked from
14845 ColumnHeaderCollection when adding or inserting columns, and which
14846 ensures that reorder_columns_indices is kept in sync. Avoid redrawing
14847 after adding each ColumnHeader in ColumnHeaderCollection.AddRange.
14848 Recalculated dispay indices after removing a ColumnHeader.
14849 * ColumnHeader.cs: Save DisplayIndex separately from ListView to
14850 match MS. Allows last display index to be returned after ListView
14851 is disposed. Update actual location of ColumnHeader when DisplayIndex
14854 2007-03-01 Everaldo Canuto <everaldo@simios.org>
14856 * LinkLabel.cs: Improve CalcTrimRectangle.
14858 * ThemeWin32Classic.cs: Fix some compilation problem under VS 2003.
14860 2007-02-28 Everaldo Canuto <everaldo@simios.org>
14862 * LinkLabel.cs: Rename CalcMeasurementFactor as CalcTrimRectangle and
14863 get rectangle as a result value.
14865 2007-02-28 Everaldo Canuto <everaldo@simios.org>
14867 * LinkLabel.cs: Theres some diferences between rectangle return from
14868 MeasureCharacterRanges and the area used for DrawString to fix this
14869 CalcMeasurementFactor method was created, it calcules the diferences
14870 to be use later to adjust rectangle in draw operations. Fixes #80473.
14872 * ThemeWin32Classic.cs: Use factor calculated by CalcMeasurementFactor
14873 to adjust draw rectangle.
14875 2007-02-27 Everaldo Canuto <everaldo@simios.org>
14877 * ThemeWin32Classic.cs: In DrawLinkLabel draw focus rectangle before draw
14878 text and some other changes to reduce and optimize source code.
14880 2007-02-27 Jonathan Pobst <monkey@jpobst.com>
14882 * RadioButton.cs: Implement 2.0 event.
14883 * RelatedImageListAttribute.cs: Implement new class.
14885 2007-02-27 Everaldo Canuto <everaldo@simios.org>
14887 * MenuAPI.cs: Change keynav_state before call SelectItem. Fixes #80901.
14889 2007-02-27 Jonathan Pobst <monkey@jpobst.com>
14891 * CheckBox.cs: Implement 2.0 functionality.
14893 2007-02-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
14895 * ListView.cs: Refactor Add and AddRange methods of
14896 ListViewItemCollection, to not update the ListView
14897 everytime an item is added in AddRange. Also move the update
14898 code to a new CollectionChanged method, and call it
14899 from other methods that need it as well (this should also fix some
14900 bugs when Sorting is used).
14902 2007-02-27 Jackson Harper <jackson@ximian.com>
14904 * TextControl.cs: Try to never let the caret stay in a non-text
14906 * TextBoxBase.cs: Update the caret.
14908 2007-02-26 Jonathan Pobst <monkey@jpobst.com>
14910 * XplatUIStructs.cs: Add some convenience methods for POINT structure.
14911 * XplatUIWin32.cs: Add some convenience methods for RECT structure,
14912 delete POINT structure, duplicate of one in XplatUIStructs.
14913 * TextRenderer.cs: Use XplatUIWin32.RECT instead of UXTheme.RECT.
14915 2007-02-26 Gert Driesen <drieseng@users.sourceforge.net>
14917 * ListView.cs: Initialize LabelEditEventArgs after setting Text of
14918 edit box since otherwise the Label would immediately be set (even if
14919 the user did not modify the label). In OnKeyDown set Handled to true
14920 if Return or Escape was pressed. In ColumnHeaderCollection unlink
14921 columns that are to be removed. In ListViewItemCollection unlink items
14922 that are to be removed.
14924 2007-02-24 Jonathan Pobst <monkey@jpobst.com>
14926 * TextRenderer.cs: If we set a GDI clip region, we need to clear
14927 it when we are done. [Fixes bug #80949]
14929 2007-02-23 Jonathan Pobst <monkey@jpobst.com>
14931 * Form.cs: Wrap checking ShowWithoutActivation in a NET_2_0 block.
14933 2007-02-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
14935 * ListView.cs: I forgot to commit the changes for ListView
14936 in my previous patch.
14938 2007-02-23 Jonathan Pobst <monkey@jpobst.com>
14940 * Clipboard.cs: Partially implement an overload of SetDataObject.
14941 * Form.cs: Implement ShowWithoutActivation.
14942 * XPlatUIWin32.cs: Fix for WM_SHOWNOACTIVATE for forms.
14944 2007-02-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
14946 This is a first set of changes to make the Virtual mode works,
14947 by avoiding the retrieval of ListViewItem instances until
14950 * ListView.cs: Store item position in the ListView instead of the
14951 ListViewItem, this way we don't request the Bounds property of
14952 ListViewItem inside the ListView calculations, as well as cache the item
14953 size in item_size field. Store indexes instead of ListViewItem
14954 instances in the matrix used by icon view. Add a ItemMatrixLocation
14955 struct to hold the row and col info of the matrix info.
14957 * ListViewItem.cs: Don't store the location anymore, and only cache
14958 the rectangles for GetBounds. Use the ListView.GetItemLocation
14959 method to retrieve the actual location.
14961 2007-02-23 Jonathan Pobst <monkey@jpobst.com>
14963 * TextRenderer.cs: Add clipping support, thanks to George.
14966 2007-02-23 Gert Driesen <drieseng@users.sourceforge.net>
14968 * ListViewItem.cs: Cancel label edit when item is removed from
14970 * ListView.cs: Move setting of focus to EndEdit. Fire BeforeLabelEdit
14971 event before the edit textbox is displayed. Added CancelEdit method
14972 which is used end to editing while ignoring the value set by the
14973 user. In EndEdit, set focus to ListView to avoid losing focus to
14974 other controls. In ListViewItemCollection.Clear, cancel editing of
14975 any of the items. In Remove, cancel editing of item being removed.
14976 Avoid udplicate code by modifing RemoveAt to invoke Remove.
14978 2007-02-23 Gert Driesen <drieseng@users.sourceforge.net>
14980 * FileDialog.cs: Update FSEntry when move is successful. Fixes
14983 2007-02-23 Everaldo Canuto <everaldo@simios.org>
14985 * MainMenu.cs: Change Draw method to take care about MenuOrigin to be
14986 compatible with non X11 systems. Fixes #80901.
14988 2007-02-23 Gert Driesen <drieseng@users.sourceforge.net>
14990 * ListView.cs: Added bool argument to UpdateMultiSelection to specify
14991 whether the item should be unselected and reselect. We do no want this
14992 when we're starting to edit the label. Do not fire the
14993 SelectedIndexChanged event from ListView when its already been fired
14994 by modifying ListViewItem.Selected. Fixes bug #80943.
14996 2007-02-23 Jonathan Pobst <monkey@jpobst.com>
14998 * TextRenderer.cs: Previos commit logic was backwards.
15000 2007-02-23 Jonathan Pobst <monkey@jpobst.com>
15002 * TextRenderer.cs: Don't add padding on MeasureText if we were
15003 sent the NoPadding flag.
15005 2007-02-23 Everaldo Canuto <everaldo@simios.org>
15007 * ThemeWin32Classic.cs: Invert order of drawing operation with DrawImage
15008 after DrawButton. To prevent image overlaps button borders SetClip and
15009 ResetClip added before and after draw image. Fixes #79129.
15011 2007-02-23 Everaldo Canuto <everaldo@simios.org>
15013 * FolderBrowserDialog.cs: Use ClientSize instead of Size to specify
15014 window size, it fix problem when you run under win32 that theres
15015 Size diferent than ClientSize. Also fix controls size and positions
15016 to mimic Win32. Fixes #80837.
15018 2007-02-22 Everaldo Canuto <everaldo@simios.org>
15020 * Form.cs: Handle WM_NCHITTEST and return HTMENU when point is on
15021 menu area to fix some problems for non X11 systems. Fixes #80613.
15023 2007-02-22 Jackson Harper <jackson@ximian.com>
15025 * TreeNode.cs: When a node is expanded, set its is_expanded flag
15026 even if it doesn't have any children.
15028 2007-02-22 Jackson Harper <jackson@ximian.com>
15030 * TreeView.cs: Calculate the top node 'on the fly', this
15031 eliminates issues where you need to click on the tree before
15032 scrolling it to get the top node computed correctly.
15033 * TreeNodeCollection.cs: We don't need to mess with the top node
15036 2007-02-22 Jackson Harper <jackson@ximian.com>
15038 * DataGridViewRow.cs: Fix typo so height can actually be set.
15039 Patch by Peter Grimm.
15041 2007-02-22 Gert Driesen <drieseng@users.sourceforge.net>
15043 * FileDialog.cs: Fixed support for renaming files and directories.
15044 * ListView.cs: Do not lose focus when edit is canceled. Process
15045 Escape as regular key (to prevent closing of dialogs).
15047 2007-02-22 Gert Driesen <drieseng@users.sourceforge.net>
15049 * ListView.cs: Removed TODO for LabelEdit. Removed extra tabs and
15050 spaces. Changed spaces to tabs. Removed unnecessary init of bools.
15052 2007-02-22 Gert Driesen <drieseng@users.sourceforge.net>
15054 * FileDialog.cs: LabelEditEventArgs.Label now returns null when user
15055 did not modify label.
15056 * ListView.cs: Only set LabelEditEventArgs.Label if user actually
15057 modified the text. Reset Label when user presses Escape in edit mode.
15058 Move focus to ListView after having cancelled or finished editing the
15061 2007-02-21 Gert Driesen <drieseng@users.sourceforge.net>
15063 * ComboBox.cs: Removed unnecessary initializations. Marked items field
15064 private. Clear textbox when Text is set to null and SelectedIndex is
15066 * FileDialog.cs: Removed unnecessary initializations. Removed
15067 workarounds for ComboBox bugs that are now fixed. Modified
15068 DefaultExt, InitialDirectory and Title property to change null to
15069 zero-length string in getters. Avoid directly accessing fields.
15071 2007-02-20 Jackson Harper <jackson@ximian.com>
15073 * TextControl.cs: Remove RecalAlignments call, that was some
15074 debugging leftovers.
15075 - Don't use the line indent when we shouldn't.
15076 * RichTextBox.cs: Add support for paragraph left indents.
15078 2007-02-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
15080 * Control.cs: Fix BeginInvoke signature for 2.0 profile.
15081 Seems like the class status pages doesn't catch params differences.
15083 2007-02-19 Gert Driesen <drieseng@users.sourceforge.net>
15085 * ComboBox.cs: Removed extra tabs. Changes spaces to tabs.
15087 2007-02-19 Gert Driesen <drieseng@users.sourceforge.net>
15089 * ComboBox.cs: Setting Text should have no effect if item text of
15090 selected item exactly matches value. First lookup text using
15091 case-sensitive comparison, and fallback to case-insensitive comparison.
15092 FindString(Exact) returns -1 if search string is null. On 2.0 profile,
15093 allow startIndex to be last index. Changed ArgumentOutOfRangeException
15094 paramname to match MS. Restart from first item if string is not found
15095 after startIndex. Fixed paramname of ArgumentNullException that is
15096 thrown for null value in ObjectCollection.Contains.
15098 2007-02-19 Everaldo Canuto <everaldo@simios.org>
15100 * XplatUIStructs.cs: WM_XXX UISTATE elements uncommented.
15102 2007-02-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
15104 * ListControl.cs: In SelectedValue use value.Equals to compare for
15105 equality instead of ==, otherwise it will fail for strings.
15108 2007-02-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
15110 * ComboBox.cs: Switch the order to ShowSelection and ActivateCaret,
15111 since the caret won't show up unless ShowSelection is true.
15114 2007-02-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
15116 * Application.cs: When disabling all forms but the main form, do not
15117 disable any descendants of the main form (such as mdi children or
15118 other parented forms). Fixes #80822 on Windows.
15119 * Form.cs: If we have a parent, set the WS_CHILD style.
15120 * Control.cs: Update the window styles if the control whose parent has
15121 changed is a form (the WS_CHILD style has to be switched).
15123 2007-02-19 Everaldo Canuto <everaldo@simios.org>
15125 * XplatUIStructs.cs: MsgUIState structure added.
15127 2007-02-18 Gert Driesen <drieseng@users.sourceforge.net>
15129 * FileDialog.cs: Removed need for separate fileName field. On 2.0
15130 profile, do not check filename(s) for illegal character if filename(s)
15131 were set non-interactively but always check on 1.0 profile. Fixed NRE
15132 in DefaultExt and only strip off first leading dot. Improve exception
15133 message when invalid Filter is set. Do not ignore InitialDirectory if
15134 it does no exist. Store specified Title, and if empty use default
15135 title (depending on type of dialog). Added an internal DialogTitle
15136 property for retrieving dialog title. Fixed logic of displayed dir to
15137 more closely match MS. Avoid setting ComboBox.Text to a zero-length
15138 string as its buggy.
15139 * OpenFileDialog.cs: In OpenFile, throw ArgumentNullException if
15140 FileName is a zero-length string (it can never be null). Override
15141 DialogTitle property to set default title of dialog box.
15142 * SaveFileDialog.cs: Override DialogTitle property to set default
15143 title of dialog box.
15145 2007-02-18 Gert Driesen <drieseng@users.sourceforge.net>
15147 * FileDialog.cs: Modify default text of filename and filetype labels
15148 to match that of MS. Reset do_not_call_OnSelectedIndexChanged...
15149 after we've updated the SelectedIndex. Fixes part of bug #80887.
15150 * SaveFileDialog.cs: Set text of filetype label.
15152 2007-02-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
15154 * LabelEditEventArgs.cs: New internal SetLabel method, to set the
15155 label field. Needed by latest Jackson's fixes for ListView.
15157 2007-02-16 Andreia Gaita <avidigal@novell.com>
15159 * PrintPreviewControl/PrintPreviewDialog: Properly dispose of
15160 print preview images.
15162 2007-02-16 Jackson Harper <jackson@ximian.com>
15164 * ListView.cs: Make AfterLabelEdit work correctly.
15165 * FileDialog.cs: After changing the name of the folder, we have to
15166 make sure that it is created, or that we pop up an error because
15169 2007-02-16 Jackson Harper <jackson@ximian.com>
15171 * X11Dnd.cs: Implement aliases on mime handlers, so things like
15172 System.String are mapped to text.
15173 - Handle dataobjects, getting all the possible formats out of them
15174 - We dont need the drag event args before we give feedback. This
15175 allows feedback cursors to be immediate before selections have
15178 2007-02-16 Jackson Harper <jackson@ximian.com>
15180 * TextBoxBase.cs: Modified the method for inserting images to
15181 taking a line and position instead of tag and position.
15182 * RichTextBox.cs: Handle PngBlip data by inserting the png image
15184 * TextControl.cs: Allow images to be inserted as the first tag of
15186 - Fix some off by one issues when we assume the first tag is a
15187 text tag, not an image tag.
15189 2007-02-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
15191 * ListView.cs: Set focus to ListView when ItemControl gets a
15192 WM_RBUTTONDOWN message, to mimic .Net behaviour.
15193 Fixes part of #80467.
15195 2007-02-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
15197 * DateTimePicker.cs: Call RecreateHandle if the Format changes and
15198 validate Text input (if null or empty string reset Value to default
15199 value). Fixes #80830.
15201 2007-02-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
15203 * ListView.cs: Set owner as null for columns and items when
15204 Dispose is invoked. Fixes #80607.
15206 2007-02-14 Jonathan Pobst <monkey@jpobst.com>
15208 * ToolStrip.cs: Allow LayoutStyle.Flow, make sure to call OnOpening when
15209 showing DropDowns, don't show a Grip when doing Flow layout.
15210 [This fixes the toolbox in PDN 2.72.]
15211 * ToolStripItem.cs: Add Anchor property and some internal properties to
15212 reduces needed changes to FlowLayout.
15213 * ToolStripOverflow.cs: Remove unused variable.
15214 * ToolStripSplitStackLayout.cs: If a ToolStripItem isn't visible, don't
15215 use it in the layout calculations.
15217 2007-02-13 Everaldo Canuto <everaldo@simios.org>
15219 * ToolTip.cs: Add HotkeyPrefix.Hide to MeasureString format, it fix an issue
15220 reported in #79640.
15222 * ThemeWin32Classic.cs: Uses format for MeasureString in ToolTipSize to fiz
15225 2007-02-13 Everaldo Canuto <everaldo@simios.org>
15227 * ToolBar.cs, ToolBarButton.cs: Revert and remove HotkeyPrefix from
15228 MeasureString format, it can make button very large in some cases, it is
15229 strange but is what win32 do.
15231 2007-02-13 Everaldo Canuto <everaldo@simios.org>
15233 * ToolBar.cs, ToolBarButton.cs: Uses format in MeasureString to fix string
15236 * ThemeWin32Classic.cs: Set HotkeyPrefix in toolbar text format to fix text
15237 rendering, the value is based on MenuAccessKeysUnderlined.
15239 2007-02-13 Everaldo Canuto <everaldo@simios.org>
15241 * Theme.cs: Change MenuAccessKeysUnderlined to "true" that is value used
15244 * ThemeWin32Classic.cs: Override MenuAccessKeysUnderlined as false.
15246 * ThemeNice.cs, ThemeGtk.cs, ThemeClearlooks.cs: Remove always_draw_hotkeys
15247 and use MenuAccessKeysUnderlined instead.
15249 2007-02-13 Andreia Gaita <avidigal@novell.com>
15251 * ContainerControl.cs: Focus fix for nunit treeview selection bug.
15252 A selected control would not get a Focus call if:
15253 - the default active control of the container is the same as
15254 the one that was selected
15255 - we are switching from one container to another
15256 Under these conditions, the container being selected already has
15257 an active_control, which is the same as the one being activated,
15258 so set_ActiveControl would always return and not send the Focus
15259 call. Fix to check if the currently active control of the container
15260 is actually focused.
15262 2007-02-13 Jonathan Pobst <monkey@jpobst.com>
15264 * StatusStrip.cs: Implement the spring layout.
15265 * ToolStripControlHost.cs: Make sure the hosted control's visibility
15266 always matches the host.
15267 * ToolStripItem.cs: Write a more accurate layout for TextBeforeImage
15268 and TextAfterImage.
15270 2007-02-13 Andreia Gaita <avidigal@novell.com>
15272 * Control.cs: Code reorganization only.
15273 - Reorganize the WndProc cases so that each case has it's own handling method,
15274 to help with the no-line-numbering stack traces.
15275 - Formatting changes (it's vstudio's fault, really :p)
15277 2007-02-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
15279 * MonthCalendar.cs: Switch to using Thread.CurrentCulture instead of
15280 Thread.CurrentUICulture to match DateTimePicker's (and MS)
15283 2007-02-12 Jackson Harper <jackson@ximian.com>
15286 * TextBox.cs: By default we have a non multiline document
15287 - use the multiline property instead of the internal variable
15288 * TextBoxBase.cs: Treat multiline and non multiline the same in
15290 - Use the documents multiline flag instead of tracking it ourself
15291 * TextControl.cs: Attempt at getting multiline to match MS
15292 behavior. Lines now track an offset, which is either their X or Y
15293 offset depending on whether or not we are in multiline mode.
15294 - Update all the methods to understand that lines have an X value.
15295 - Fix crash in Undo::Duplicate when empty lines are deleted.
15297 2007-02-12 Everaldo Canuto <everaldo@simios.org>
15299 * Label.cs: CalcPreferredHeight and CalcPreferredWidth methods removed and
15300 code moved to properties PreferredHeight and PreferredWidth. It solve the
15301 all problems when preferred sizes must be recalculated. Fixes #80801.
15303 2007-02-12 Everaldo Canuto <everaldo@simios.org>
15305 * Label.cs: Fix CalcPreferredHeight for 2.0 that must return only
15306 font height when compatible_text_rendering is false. Partially fix #80801.
15308 2007-02-09 Gert Driesen <drieseng@users.sourceforge.net>
15310 * Form.cs: Fixed typo in exception message. Fixes bug #80779.
15312 2007-02-09 Gert Driesen <drieseng@users.sourceforge.net>
15314 * Form.cs: Improved exception messages in ShowDialog.
15316 2007-02-09 Gert Driesen <drieseng@users.sourceforge.net>
15318 * PrintDialog.cs: On 1.0 profile, throw ArgumentException in RunDialog if
15319 PrinterSettins has not been set. On 2.0 profile, initialize PrinterSettings
15320 if not set. Fixes bug #80764. Avoid accessing current_settings field
15323 2007-02-08 Everaldo Canuto <everaldo@simios.org>
15325 * Theme.cs: An new property MenuAccessKeysUnderlined added with default value
15328 * SystemInformation.cs: An new property MenuAccessKeysUnderlined added, it is
15329 public in 2.0 and for easy maintenance and dont break compatibility it is
15332 2007-02-08 Jonathan Pobst <monkey@jpobst.com>
15334 * ToolStripItem.cs: Implement using images from ImageList.
15336 2007-02-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
15338 * DateTimePicker.cs: Change default date-formatting culture from
15339 CurrentThread.CurrentUICulture to CurrentThread.CurrentCulture,
15340 seems to be the way MS does it.
15342 2007-02-08 Andreia Gaita <avidigal@novell.com>
15344 * PrintPreviewControl.cs: rewrite toolbar code to fix #80725. Correct 6-up image
15345 (the 6 was cut off on the right side)
15347 2007-02-08 Jonathan Pobst <monkey@jpobst.com>
15349 * Form.cs: Tell MenuStrips to close when the form is clicked.
15350 * MenuStrip.cs, ToolStrip.cs, ToolStripControlHost.cs,
15351 ToolStripDropDown.cs, ToolStripDropDownItem.cs, ToolStripItem.cs,
15352 ToolStripItemCollection.cs, ToolStripMenuItem.cs, ToolStripProfessionalRenderer.cs,
15353 ToolStripSplitButton.cs, ToolStripSplitStackLayout.cs: Add
15354 support for Overflow, where items that do not fit are automatically
15355 reparented to a drop down menu.
15356 * ToolStripOverflow.cs, ToolStripOverflowButton.cs: Added.
15357 Also: fixes bug #80747.
15359 2007-02-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
15361 * ComboBox.cs: Remove warning (unused code).
15362 * ScrollableControl.cs: Remove warning for 1.1 profile.
15364 2007-02-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
15366 * Form.cs: Remove a warning.
15368 2007-02-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
15370 * DateTimePicker.cs: Fixed a NRE if CustomFormat was null. Handles the
15371 'g' specifier, not documented anywhere, but seems to always show up
15372 as a single space (might have something to do with the DateTime 'g'
15373 specifier, which is the era format, but since DateTimePicker can't
15374 go earlier than 1753 it wouldn't matter) . Fixed quote handling,
15375 won't crash if the format has an unmatched quote. Now shows
15376 single-character formats correctly. Fixes #80744.
15378 2007-02-08 Jonathan Pobst <monkey@jpobst.com>
15380 * StatusStrip.cs: Stretch property needs to call base.Stretch,
15381 not this.Stretch to fix stack overflow. [Fixes bug #80760]
15383 2007-02-07 Chris Toshok <toshok@ximian.com>
15385 * ThemeWin32Classic.cs (DrawButtonBase): don't clear to the
15386 background color. it overwrites the background image we've
15387 already painted. Fixes #80599.
15389 2007-02-07 Chris Toshok <toshok@ximian.com>
15391 * DataGrid.cs: return immediately from Edit() when there are no
15392 columns. Fixes #80662.
15394 2007-02-07 Chris Toshok <toshok@ximian.com>
15396 * MessageBox.cs: fix #80625. don't always show the Help button in
15397 2.0. use the displayHelpButton parameter to determine if we
15398 should show it. Also, make the internal show_help field private.
15400 2007-02-07 Chris Toshok <toshok@ximian.com>
15402 * Control.cs (SetVisibleCore): check in the proposed patch for
15403 80604, and set is_visible before calling CreateControl.
15405 2007-02-07 Jonathan Pobst <monkey@jpobst.com>
15407 * ListView.cs: UseCompatibleStateImageBehavior setter changed from NIEX to
15408 MonoInternalNote. This is added automagically by VS2005, so let's not crash
15411 2007-02-06 Everaldo Canuto <everaldo@simios.org>
15413 * MenuAPI.cs: hotkey_active internal field added, it is required because
15414 we need to know when hotkeys must be draw, before this change a keystate
15415 Navigating was used but we can have menu in navigating state without
15416 hotkeys. Fixes #80694.
15418 * ThemeWin32Classic.cs: Only draw hot keys when hotkey_active is true.
15420 2007-02-06 Rolf Bjarne Kvinge <RKvinge@novell.com>
15422 * Control.cs: Handle WM_CAPTURECHANGED in 1.1 code as well, and change
15423 corresponding events and methods to be internal for 1.1 profile and
15424 public for 2.0 profile (required by SizeGrip).
15425 * Form.cs: Use SizeGrip as a virtual SizeGrip (and don't add it to the
15426 implicit control list). Don't set the size nor the location of the
15427 SizeGrip anymore as it's not needed.
15428 * SizeGrip.cs: Rewrote large parts, it now supports a virtual mode to
15429 draw directly on the captured control (fixes #80656). Removed
15430 ShowGrip (it wasn't used anywhere), redraw (always true), added
15431 GetDefaultSize and GetDefaultRectangle to calculate defaults.
15432 * ScrollableControl.cs: Make UpdateSIzeGripVisible internal so it can
15433 be called from SizeGrip.
15435 2007-02-06 Rolf Bjarne Kvinge <RKvinge@novell.com>
15437 * Timer.cs: Throw ArgumentException if Interval <= 0.
15439 2007-02-05 Jackson Harper <jackson@ximian.com>
15441 * TreeView.cs: We need to check scrollbar visibility when window
15442 visibility is updated, because non visible trees don't ever add
15444 * Cursor.cs: We want the override cursor to be reset to NULL when
15445 we set current cursor to the default cursor.
15447 2007-02-05 Jackson Harper <jackson@ximian.com>
15449 * TextControl.cs: Don't have crlfs when we are non multiline.
15450 - Consolidate the line position.
15452 2007-02-05 Jackson Harper <jackson@ximian.com>
15454 * X11Keyboard.cs: BACK+CTRL gets a special char code.
15456 2007-02-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
15458 * XplatUIX11.cs: Implemented WM_CAPTURECHANGED support, we're now
15459 handling LeaveNotify->NotifyUngrab in order to send
15460 WM_CAPTURECHANGED. However sometimes the NotifyUngrab arrives late
15461 after calling XUngrabPointer, so we call WindowUngrabbed directly
15462 from UngrabWindow in order to send WM_CAPTURECHANGED immediately.
15463 * Control.cs: Handle WM_CAPTURECHANGED in order to raise
15464 MouseCaptureChanged correctly. Also create handles if changing
15465 Capture (matches MS behaviour).
15467 2007-02-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
15469 * SizeGrip.cs: Make the last change 2.0 only.
15471 2007-02-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
15473 * SizeGrip.cs: If resizing and the capture is lost, revert any size
15474 changes to initial size (fixes #80597).
15476 2007-02-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
15478 * SizeGrip.cs: Use the normal icon for SizeGrip if it is disabled.
15480 2007-02-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
15482 * SizeGrip.cs: Only draw sizegrip if enabled (but always draw
15483 background) and only allow dragging if enabled. This way the
15484 sizegrip can be used to fill the open square that otherwise would
15485 have been shown in the bottom right corner of ScrollableControl
15486 when ScrollableControl is not suppose to support sizing.
15487 * ScrollableControl.cs: Create UpdateSizeGripVisible to decide when the
15488 sizegrip is shown and enabled, and hook up with necessary events.
15490 2007-02-01 Chris Toshok <toshok@ximian.com>
15492 * DataGridTextBoxColumn.cs: clean up the
15493 GetFormattedString/GetColumnValueAtRow combination of functions.
15494 Also fix UpdateUI, and the initial state of
15495 IsInEditOrNavigateMode.
15497 * DataGridTextBox.cs: don't chain up to base.OnMouseWheel - we
15498 aren't supposed to scroll the textbox here, we're supposed to
15499 scroll the datagrid.
15501 2007-02-01 Chris Toshok <toshok@ximian.com>
15503 * ComboBox.cs: use vscrollbar_ctrl.Dock instead of explicitly
15504 setting the position.
15506 2007-02-01 Chris Toshok <toshok@ximian.com>
15508 * DataGrid.cs (OnLeave): we can now do the CancelCurrentEdit thing
15509 here, since the most recent focus fixes keep us from generating
15510 the Leave event when our textbox gets focus.
15511 (Edit): we should be passing null for the column style's
15512 instantText parameter.
15514 2007-02-01 Jonathan Pobst <monkey@jpobst.com>
15516 * ToolStripDropDownItem.cs: Make sure DropDownOpening event is
15517 raised. Fixes menu text/icons not showing up in PDN.
15519 2007-02-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
15521 * Control.cs: Remove code in constructor that makes every
15522 control with WS_CHILD set have initial location -1, -1.
15524 2007-01-31 Jackson Harper <jackson@ximian.com>
15526 * X11Dnd.cs: Take the keyboard on init to reduce coupling with
15528 * XplatUIX11.cs: Give teh keyboard to teh dnd.
15530 2007-01-31 Jackson Harper <jackson@ximian.com>
15532 * X11Dnd.cs: Use IDataObject instead of the DataObject class.
15533 - Remove some debug code.
15535 2007-01-31 Jackson Harper <jackson@ximian.com>
15537 * XplatUIX11.cs: If you set the override cursor during a grab, it
15538 should actually override the grab cursor. This comes into play
15539 when you are setting custom cursors in a DND feedback method.
15541 2007-01-31 Jackson Harper <jackson@ximian.com>
15543 * X11Dnd.cs: Add support for handling the QueryContinue and
15544 GiveFeedback events.
15545 - Cancel drag and drop actions when the escape key is clicked.
15546 * XplatUIX11.cs: Let the dnd subsystem get key events, so that it
15547 can handle the ESCAPE key.
15548 - Allow dnd to swallow BUTTONUP messages if it needs to. This is
15549 done when dnd events are continued after the button is released.
15550 - Add a new helper method so that dnd can translate key events.
15552 2007-01-31 Alexander Olk <alex.olk@googlemail.com>
15554 * FileDialog.cs: Rewrite of Jacksons OnClickCancelButton patch to
15555 make it more obvious what is happening.
15557 2007-01-30 Jackson Harper <jackson@ximian.com>
15559 * XplatUIX11.cs: Don't break when handling button release in drag
15560 and drop operations. We need that BUTTONUP message to get through
15561 so capture is released.
15562 * X11Dnd.cs: We don't need to manually grab the pointer anymore,
15563 this is handled automatically when the mouse is down.
15565 2007-01-30 Jackson Harper <jackson@ximian.com>
15567 * FileDialog.cs: OnClickCancelButton gets called whenever the dialog
15568 is closed, so we need to make sure that we aren't changing the
15569 dialog result when the OK (Open or Save) button has been clicked
15570 and we are closing the window ourselves. Note we don't need to
15571 worry about the cache being written in this case, because it was
15572 already done in the previous FilOk call.
15574 2007-01-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
15576 * DateTimePicker.cs: Remove a warning.
15577 * ComboBox.cs: Remove a couple of warnings.
15579 2007-01-29 Chris Toshok <toshok@ximian.com>
15581 * XplatUIX11.cs: don't crash, and remove the icon if the user has
15582 set one, if SetIcon is passed a null icon.
15584 2007-01-29 Andreia Gaita <avidigal@novell.com>
15586 * TextBox.cs: Redraw when the password characters changes
15587 * TextControl.cs: Check if textbox has a password char and draw
15588 a line of password chars instead of the text in the line. LineTag gets
15589 an extra Draw() method which allows document.Draw to override the text
15590 that will be drawn. Removes 1024 char limitation on length of passworded
15593 2007-01-29 Jackson Harper <jackson@ximian.com>
15595 * TextBoxBase.cs: Deleting sections of text is undoable. Deleting
15596 single chars is not.
15598 2007-01-28 Jonathan Pobst <monkey@jpobst.com>
15600 * TextRenderer.cs: Fix cutting off the bottom of letters like "j" by
15601 one pixel. Fix a StackOverflowException caused by an overload wrongly
15604 2007-01-26 Everaldo Canuto <everaldo@simios.org>
15606 * MenuAPI.cs: Fixed kerboard grab problem when "enter"key is pressed,
15607 also remove ProcessArrowKey and put the code inside ProcessKeys.
15609 2007-01-26 Jonathan Pobst <monkey@jpobst.com>
15611 * PaddingConverter.cs: Added.
15613 2007-01-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
15615 * ThemeWin32Classic.cs: Only draw the text of a StatusBar if
15616 ShowPanels is false (fixes #80600). Only draw up to 127 characters
15617 of text (fixes #80601). For panels clip the text to draw to the
15618 panel (fixes #80603).
15620 2007-01-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
15622 * ComboBox.cs: Fixed implementation of ResetText.
15624 2007-01-25 Jackson Harper <jackson@ximian.com>
15626 * TextControl.cs: For the last char of a line we need to use the
15627 line size, not that chars width, since it won't actually be
15628 computed since the right side of a char is based on the start of
15629 the left side of the next char, and the next char does not exist.
15631 2007-01-25 Chris Toshok <toshok@ximian.com>
15633 * Splitter.cs: fix the new unit tests, and reindent some switch
15636 2007-01-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
15638 * ComboBox.cs: Implemented 2.0 methods and events.
15639 * TextBoxBase.cs: Added OnTextUpdate, so that
15640 ComboBox.ComboTextBox can inform ComboBox of it.
15642 2007-01-25 Jackson Harper <jackson@ximian.com>
15644 * TextControl.cs: Respect ShowSelection when deciding whether or
15645 not to display the caret, this allows comboboxes to have carets
15646 when the combotextbox does not have focus.
15648 2007-01-25 Jackson Harper <jackson@ximian.com>
15650 * TextControl.cs: Add a Suspend/Resume for updating, basically the
15651 same as the Suspend/Resume for recalc, except this will do actual
15653 - New Undo manager, works much like the MS version.
15655 * TextBoxBase.cs: The Cut operation is undoable.
15657 2007-01-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
15659 * TextBoxBase.cs: Don't antialias text. Makes it look way better
15660 on Windows (no difference on Linux).
15662 2007-01-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
15664 * XplatUIWin32.cs: Set SWP_NOACTIVATE in RequestNCRecalc as well,
15665 we don't want to activate any windows. Fixes #79433.
15667 2007-01-25 Jonathan Pobst <monkey@jpobst.com>
15669 - ButtonBase.cs: Fix capitalization of parameter: disposing.
15672 2007-01-25 Alexander Olk <alex.olk@googlemail.com>
15675 - Move to using System.ComponentModel.EventHandlerList
15676 - Replace Refresh with Invalidate
15677 - Clear the mime filecache on closing
15678 - Some other memory reducing work. After beeing closed FD now uses
15679 only about 300 KB for the fdo mime stuff plus the memory of the
15681 * Mime.cs: Changed coding style and removed unnecessary commented
15682 code. Some more memory memory reducing work.
15684 2007-01-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
15686 * ComboBox.cs: Implemented FlatStyle and DropDownHeight, and added
15687 a few other missing 2.0 properties.
15688 * Theme.cs: Added DrawFlatStyleComboBox.
15689 * ThemeWin32Classic.cs: Implemented DrawFlatStyleComboBox.
15691 2007-01-24 Chris Toshok <toshok@ximian.com>
15693 * XplatUIX11.cs: fix the wake_waiting logic - we always clear the
15694 wake_waiting flag, not just when there's data to be read. if we
15695 don't, then future wakeup's won't reach us and we'll be doomed to
15696 wait for the entire 1 second timeout forever (unless there are X
15699 2007-01-24 Jonathan Pobst <monkey@jpobst.com>
15701 * ComboBox.cs: FindStringExactMaxException doesn't throw AOORE on 2.0
15702 until you pass Items.Count, not Items.Count - 1 like 1.1.
15704 2007-01-24 Gert Driesen <drieseng@users.sourceforge.net>
15706 * ColumnHeader.cs: Fixed ParamName in ArgumentOutOfRangeException.
15708 2007-01-24 Jonathan Pobst <monkey@jpobst.com>
15710 * ToolStripContainer.cs: The recent Dock fix exposed that I was
15711 adding the panels in the wrong order.
15713 2007-01-24 Jackson Harper <jackson@ximian.com>
15715 * TextBoxBase.cs: When we move the caret we also need to move the
15716 selection, this fixes some random crashing after doing select
15717 text, unselect, delete a char, paste.
15719 2007-01-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
15721 * Form.cs: Update SizeGrip's location even if it's not visible (fixes #80592).
15723 2007-01-23 Everaldo Canuto <everaldo@simios.org>
15725 * Control.cs: In OnParentBackgroundImageChanged remove conditions to call
15726 OnBackgroundImageChanged, it mimics win32 behavior. Fixes #80553.
15727 * ToolBar.cs: Force redraw in BackgroundImageChanged.
15729 2007-01-23 Everaldo Canuto <everaldo@simios.org>
15732 - Implement support for vertical toolbars. Fixes #80539;
15733 - Call LayoutToolBar when resize, it fix some other problems in layout.
15734 - Rename requested_height to requested_size, as we can have width on it
15735 when toolbar is vertical.
15736 - Create a private property "Vertical" that uses Dock to verify when
15737 toolbar is vertical or not.
15738 - Set ControlStyles when change Dock property.
15739 - Refactory in LayoutToolBar to have better variables names and to support
15741 - Fixes default value for ButtonSize when button count is equal zero, size
15742 must be (39, 36) test case writed.
15744 2007-01-23 Chris Toshok <toshok@ximian.com>
15746 * Control.cs: fix the checks so that they work correctly for mdi
15749 2007-01-23 Chris Toshok <toshok@ximian.com>
15751 * Control.cs: ControlCollection seems to have super-secret
15752 abstraction breaking knowledge of Mdi containers. allow MdiClient
15753 to add toplevel controls.
15755 2007-01-23 Chris Toshok <toshok@ximian.com>
15757 * Control.cs: throw an ArgumentException if a toplevel control is
15758 added to our control collection from ControlCollection.Add, as
15759 well as from ControlCollection.IList.Add. This fixes the
15760 ControlSetTopLevelTest.TestTopLevelAdd unit test.
15762 Also, in ControlCollection.IList.Add, don't through an
15763 ArgumentNullException, throw an ArgumentException, when value ==
15764 null. This matches MS.
15766 2007-01-23 Chris Toshok <toshok@ximian.com>
15768 * BindingSource.cs: initial, incomplete, implementation of
15771 2007-01-23 Jackson Harper <jackson@ximian.com>
15774 * TextBoxBase.cs: Checking in some pieces of the undo stuff so
15775 that I can fix a broken unit test (TextBoxTest::ClearUndo)
15777 2007-01-23 Everaldo Canuto <everaldo@simios.org>
15779 * ToolBar.cs: Add status fields to ToolBarButtonInfo.
15781 2007-01-23 Andreia Gaita <avidigal@novell.com>
15783 * TreeNode.cs: Add new 2.0 ImageKey and SelectedImageKey properties.
15784 * TreeNodeCollection.cs: New Add() methods, ContainsKey and
15785 IndexOfKey() for 2.0
15787 2007-01-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
15789 * XplatWin32.cs: In RequestNCRecalc call SetWindowPos with SWP_NOZORDER
15790 to prevent it from changing z-order.
15791 * MdiWindowManager.cs: Refactor part of SetWindowState to MdiClient, only
15792 leave UI updates in MdiWindowManager.
15793 * InternalWindowManager.cs: Check for 0 sized nc areas and make them
15794 1 sized (NC handling goes weird on Linux otherwise).
15795 * MdiClient.cs: Add missing ExStyle (WS_EX_CLIENTEDGE), so it's no longer
15796 necessary to handle WM_NCCALCSIZE anymore. This also made it possible to
15797 remove a few NCRequestRecalcs. Changed calculations in IconicBounds
15798 to use ClientSize of MdiClient instead of entire size. Refactored ActivateChild
15799 and SetWindowState(s) to allow for changing the size of an activated child
15800 before activating it (reduces a lot of flicker).
15802 2007-01-22 Jonathan Pobst <monkey@jpobst.com>
15804 * Form.cs: Changing FormBorderStyle has different semantics based
15805 on whether the Form is visible or not. If not visible, don't change
15806 the Size. But InvalidateNC needs to be called to force the window
15807 to pick up the changes and redraw itself. [Fixes bug #80574]
15809 2007-01-22 Jonathan Pobst <monkey@jpobst.com>
15812 * ContainerControl.cs: ProcessCmdKey.
15813 * ErrorProvider.cs: new constructor.
15814 * Form.cs: fix AutoValidateEvent compiler warning.
15815 * Label.cs: fix OnAutoSizeChanged compiler warning.
15816 * MenuStrip.cs: fix CanOverflow compiler warning.
15817 * TabControl.cs: SelectTab, OnSelected methods, Selected event.
15818 * TextBox.cs: Dispose.
15819 * ToolStrip.cs: CanOverflow, re-enable double buffering.
15820 * ToolStripControlHost.cs: fix CausesValidation compiler warning.
15821 * ToolStripDropDown.cs: fix ContextStripMenu compiler warning.
15822 * ToolStripItem.cs: Overflow, RightToLeft properties.
15824 2007-01-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
15826 * Form.cs: Move the layout of the main form to MdiWindowManager.
15827 * MdiWindowManager.cs: If WindowState changes from or to Maximized,
15828 do a layout of the main window to update MdiClient's client area to
15829 the right area. Fixes #80533. Remove the calculation of nc size,
15830 it was just wrong and the correct one is the same as for
15831 InternalWindowManager.
15833 2007-01-20 Jonathan Pobst <monkey@jpobst.com>
15835 * Control.cs: Setting Anchor or Dock needs to reset the other
15836 to its default. [Fixes bug #80556]
15838 2007-01-20 Chris Toshok <toshok@ximian.com>
15840 * CheckedListBox.cs: class status changes.
15842 * ScrollableControl.cs: same.
15844 * RichTextBox.cs: same.
15846 * ContainerControl.cs: same.
15848 * ListView.cs: same.
15850 * NotifyIcon.cs: same.
15852 * MenuStrip.cs: same.
15854 * RadioButton.cs: same.
15856 * CheckBox.cs: same.
15858 * PrintPreviewDialog.cs: same.
15862 2007-01-19 Jonathan Pobst <monkey@jpobst.com>
15864 * TreeNode.cs: Apply Alan's patch for Name property.
15866 2007-01-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
15868 * Form.cs: Implemented SizeGripStyle.
15869 * SizeGrip.cs: Check for minimum and maximum size for the
15870 control being resized and only resize if size has actually
15873 2007-01-19 Chris Toshok <toshok@ximian.com>
15875 * DataGridColumnStyle.cs: stop setting _readonly in the
15876 PropertyDescriptor setter. fixes a unit test failure.
15878 also, rename ParentReadOnly to TableStyleReadOnly, and have it
15879 just consult our table style (if we have one). We don't need to
15880 consult the datagrid readonly attribute because that's passed in
15881 as the _ro arg to Edit. this simplifies things a little.
15883 * DataGrid.cs: use CurrentColumn instead of
15884 current_cell.ColumnNumber just to simplify some of the code.
15886 switch the order of some things in the CurrentCell setter to keep
15887 the previous cell from getting a textbox again -
15888 EnsureCellVisibility causes scrolling to happen, which calls Edit.
15889 So we need to set the new cell before calling it.
15891 call Edit in OnEnter, as does Microsoft.
15893 also, make sure the current table style isn't the one we create
15894 initially when checking to see if it's different than the one
15895 we're setting it to in BindColumns (this fixes #80421).
15897 * GridTableStylesCollection.cs: table styles can have "" for a
15898 mapping name. part of the fix for #80421.
15900 * DataGridTextBoxColumn.cs: simplify the readonly calculation in
15901 Edit significantly.
15903 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
15905 * TextRenderer.cs: Rewrote to be complete-er, more MS-matching-er,
15906 and less GDI object leaky-er.
15908 2007-01-18 Andreia Gaita <avidigal@novell.com>
15910 * LinkLabel.cs: Add opaque control style
15912 2007-01-18 Jackson Harper <jackson@ximian.com>
15914 * TextControl.cs: Calculate width properly.
15915 - Don't store the tag's X offset, this can be figured out very
15917 - When getting the caret tag make sure to get the last empty tag.
15919 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
15921 * Form.cs: Recalculate our size after setting a new FormBorderStyle.
15924 * Control.cs: Color.Empty shouldn't count for previous transparent
15927 2007-01-18 Jackson Harper <jackson@ximian.com>
15931 * TextControl.cs: Starting to merge in some pieces of my older
15932 undo work. Basically just some slight cleanup of the undo API.
15934 2007-01-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
15936 * TrackBar.cs: Fix signature of RightToLeftLayout.
15937 * StatusBar.cs: Implemented missing 2.0 methods and attributes.
15938 * StatusBarPanel.cs: Implemented missing 2.0 methods and attributes.
15939 * Application.cs: Implemented UseWaitCursor.
15941 2007-01-18 Jackson Harper <jackson@ximian.com>
15943 * TextControl.cs: We can't skip tags if any part of the tag is
15946 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
15948 * ContainerControl.cs: Override OnLayout.
15950 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
15952 * NotifyIcon.cs: Add ContextMenuStrip and Tag properties.
15954 * ContextMenuStrip.cs: Make sure context menu is shown on top of
15957 2007-01-18 Chris Toshok <toshok@ximian.com>
15959 * ContainerControl.cs: remove the partial handling of LBUTTONDOWN
15960 (leftover from the container_selected days, I'd wager). fixes bug
15963 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
15965 * Control.cs: Apply patch from George to fix the new testcase on
15966 bug #80451. We can't just check for Color.Transparent, we need
15967 to check if the back color's alpha channel is < 255.
15969 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
15971 * Form.cs: Move setting show_icon = true to before the constructor
15972 so that the base constructor has that information when it calculates
15973 the form's size. Was causing forms to be (6, 6) bigger than they
15974 were supposed to be. Thanks for catching this Rolf!
15976 2007-01-18 Jackson Harper <jackson@ximian.com>
15978 * TextControl.cs: When replacing a selection we need to invalidate
15979 from the initial selection start, because selection start is moved
15980 to the end of the replacement.
15982 2007-01-18 Andreia Gaita <avidigal@novell.com>
15984 * LinkLabel.cs: Missing ControlStyles. Fixes #80482
15986 2007-01-18 Chris Toshok <toshok@ximian.com>
15988 * DataGridTextBoxColumn.cs: fix most of the NotWorking unit tests
15991 2007-01-17 Everaldo Canuto <everaldo@simios.org>
15993 * ToolBar.cs: Add layout methods to ToolBarButtonInfo class, every
15994 layout methods and properties from ToolBarButton must be available
15995 into ToolBarButtonInfo.
15997 2007-01-17 Jonathan Pobst <monkey@jpobst.com>
15999 * Control.cs: If the control has a transparent background, we
16000 need to refresh it when it moves and when it's parent's background
16001 image changes. [Fixes bug #80451]
16003 2007-01-17 Jonathan Pobst <monkey@jpobst.com>
16005 * XplatUIWin32.cs: Don't use 2.0 methods in 1.1 code! Doh!
16007 2007-01-17 Jonathan Pobst <monkey@jpobst.com>
16009 * XplatUIWin32.cs: Implement proper double buffering for Windows.
16010 [Fixes bug #80447, and probably speeds up things as well]
16012 2007-01-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
16014 * XplatUIX11.cs: Caption height for MDI children is 19, not 26.
16015 * XplatUIWin32.cs: We need to recalculate NC size after changing
16016 window style to toolwindow (otherwise the client rectangle will be
16017 3 pixels to small for some reason).
16018 * MdiWindowManager.cs: Revert NC size calculations to match how
16019 they are calculated only based on window styles (to match
16020 Win32AdjustWindowRectEx, since otherwise when setting size or
16021 location, Control will call Win32AdjustWindowRectEx to update client
16022 size, which would provoke a paint, then we'd get a NCCALCSIZE and
16023 calculate a different value of client size causing another paint
16025 * InternalWindowManager.cs: When moving or resizing a window only
16026 update size or location if they actually changed.
16027 * ThemeWin32Classic.cs: ManagedWindowsBorderWidth is now 4 instead of 3
16028 (seems to match Windows behaviour better). Cleaned up
16029 ManagedWindowDecorations to draw what's needed and nothing else
16030 (was drawing borders and lines where they shouldn't be)
16031 * Hwnd.cs: GetWindowRectangle now knows about MDI border sizes
16032 (style = 0xFFFF) and takes into account caption height when
16033 calculating window rectangle.
16035 2007-01-16 Everaldo Canuto <everaldo@simios.org>
16037 * ToolBar.cs: Internal ToolBarButtonInfo class added, Because same button
16038 can be added to toolbar multiple times, we need to maintain a list of
16039 button information for each positions.
16041 2007-01-16 Everaldo Canuto <everaldo@simios.org>
16043 * ToolBar.cs: Some small stetic changes.
16045 2007-01-16 Jackson Harper <jackson@ximian.com>
16047 * TextBoxBase.cs: Use the new SuspendRecalc/ResumeRecalc methods
16048 that allow us to have nested recalc = false blocks.
16049 - Add paste support for images in the RichTextBox
16050 * RichTextBox.cs: flush the text after the color is changed, so
16051 the change takes effect.
16052 - Use SuspendRecalc
16053 - Some extra debugging info
16054 * TextControl.cs: Tags no longer track their length, it is just
16055 computed from the next tags length, this makes things a little
16056 simpler and reduces places that we have to track length changes.
16057 - Refactored the linetag class a little so we could make it
16058 a base class for different kinds of tags
16059 - Created a image tag, a tag that can have a single image inserted
16061 - Replace the norecalc flag with a Suspend/Resume Recalc pair, so
16062 that we can call suspend multiple times.
16063 - Add some debugging methods
16065 2007-01-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
16067 * MdiClient.cs: Add ActivatePreviousChild for
16068 mdi child window navigation.
16069 * Form.cs: Use MdiClient.ActivateNextChild/
16070 ActivatePreviousChild instead of Form.SelectNextControl
16071 to select the next/previous child since
16072 SelectNextControl doesn't do it in the same order
16073 as mdi children should do it.
16075 2007-01-16 Chris Toshok <toshok@ximian.com>
16077 * Control.cs: remove container_selected field.
16079 2007-01-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
16081 * MdiClient.cs: Update main form's ActiveChild when
16082 updating keyboard focus for the mdi child.
16084 2007-01-16 Jonathan Pobst <jpobst@novell.com>
16086 * Control.cs: PreferredSize fix.
16088 * Form.cs: Add several 2.0 events, properties, and methods.
16090 2007-01-16 Gert Driesen <drieseng@users.sourceforge.net>
16092 * Form.cs: Provide meaningful message when MdiParent is assigned a
16093 Form that is not an MdiContainer.
16095 2007-01-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
16097 * MdiClient.cs: Update main form's ActiveChild when
16098 activating a mdi child.
16100 2007-01-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
16102 * MdiWindowManager.cs: Fix NRE when merging menus and main form
16103 doesn't have a menu.
16105 * Form.cs: Request NCRecalc after creating a mdi child window.
16106 Implement mdi key handling (Ctrl+F4, Ctrl+Shift+F4, Ctrl+Tab,
16107 Ctrl+Shift+Tab, Ctrl+F6 and Ctrl+Shift+F6).
16109 * MdiClient.cs: Add new method SendFocusToActiveChild that either
16110 sends keyboard focus to the active child, or to the MdiClient
16111 if there are no child forms.
16113 2007-01-15 Chris Toshok <toshok@ximian.com>
16115 * ListView.cs: drop the *Internal overrides, just do our work in
16116 ItemControl's WndProc instead.
16118 * UpDownBase.cs: a few large changes. Fix up the Selectable state
16119 of the various controls, and forward the events properly (in the
16120 same manner as MS) from the textbox to the UpDown. Also the
16121 ActiveControl of the UpDownBase gets set properly now. Finally,
16122 we don't call UpdateEditText from the ctor. Fixes bug #79957.
16124 * NumericUpDown.cs: set Text in the ctor.
16126 * DomainUpDown.cs: call UpdateEditText in the ctor.
16128 * TextBox.cs: on ms.net, WM_LBUTTONDOWN sets focus on the textbox,
16129 so even a Selectable = false textbox can be focused if you click
16132 * Control.cs: remove On{Got,Lost}FocusInternal. Subclasses can
16133 just add their handling in their respective WndProc's. Also add
16134 an explicit FocusInternal method that doesn't consult CanFocus
16135 before calling Select(this).
16137 * TextBoxBase.cs: deal with removal of the FocusInternal calls -
16138 do our work in WndProc instead.
16140 * TabControl.cs: same.
16142 * ComboBox.cs: same.
16144 2007-01-15 Everaldo Canuto <everaldo@simios.org>
16146 * Menu.cs: implement MergeItems and Replace for MenuMerge method.
16149 2007-01-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
16152 * ThemeWin32Classic.cs: Don't draw the item text outside
16153 item bounds in Details view, as well as use trimming.
16156 2007-01-15 Jonathan Pobst <jpobst@novell.com>
16158 * Form.cs: Implement Form.ShowIcon.
16160 * XplatUIWin32.cs: Allow the SetIcon win32 call to set the icon to
16161 null, which when combined with the DlgModalFrame window style removes
16162 the icon from the title bar.
16164 2007-01-15 Jonathan Pobst <jpobst@novell.com>
16166 * Control.cs: Call OnMouseClick after OnClick. (2.0)
16168 2007-01-15 Everaldo Canuto <everaldo@simios.org>
16170 * MdiWindowManager.cs: In CreateMaximizedMenu fix a position of icon
16171 menu when mdi child windows theres a menu, uses insert to get icon
16172 at first position. Partially fix #80006.
16174 2007-01-15 Jonathan Pobst <jpobst@novell.com>
16176 * Clipboard.cs: Implement 2.0 methods.
16178 2007-01-15 Everaldo Canuto <everaldo@simios.org>
16180 * Menu.cs: Implement Insert method of MenuItemCollection class
16183 2007-01-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
16185 * ListView.cs: Implement 2.0 FindItemWithText method.
16187 2007-01-11 Everaldo Canuto <everaldo@simios.org>
16189 * Form.cs: When process WM_NCCALCSIZE message use ClienSize.Width
16190 to calculate menu bar size. Fixes #80290.
16192 2007-01-11 Everaldo Canuto <everaldo@simios.org>
16194 * ThemeWin32Classic.cs: Fix position of menuitem check mark.
16196 2007-01-11 Chris Toshok <toshok@ximian.com>
16198 * XplatUIX11.cs: don't send duplicate WM_ACTIVATE messages to the
16201 2007-01-11 Chris Toshok <toshok@ximian.com>
16203 * LinkLabel.cs: make sure to call base.Select in our Select method
16204 if it turns out we're going to be selected (i.e. if we have a link
16205 that is going to receive focus). That way our container's
16206 ActiveControl is updated properly.
16208 2007-01-11 Chris Toshok <toshok@ximian.com>
16210 * LinkLabel.cs: turns out that LinkLabels are only Selectable if
16211 they have 1 or more links. this fixes the crash gert reported.
16213 2007-01-11 Andreia Gaita <avidigal@novell.com>
16215 * ContainerControl.cs: Remove ContainerSelected flag, not needed
16218 * Control.cs (Controls.Add): Check if control to be added to the collection
16219 is a top level control, and throw an ArgumentException if it is.
16220 Remove ContainerSelectedFlag, not needed anymore.
16222 * XplaUIWin32.cs (SetTopMost): Add flag SWP_NOACTIVATE so that setting the
16223 top most control doesn't activate the form. This fixes a problem in the
16224 MessageBox, where the default button wouldn't get focus because the form
16225 was activated before being Loaded - when the Owner is set, SetTopMost is
16226 called, and it would activate it.
16228 2007-01-11 Jonathan Pobst <jpobst@novell.com>
16230 * Button.cs: When clicked and setting the parent form's DialogResult,
16231 use FindForm instead of Parent, since parent could be a container
16232 control and not the Form. Fixes bug #80495.
16234 2007-01-10 Chris Toshok <toshok@ximian.com>
16236 * Form.cs: move the call to SendControlFocus into the same
16239 2007-01-10 Chris Toshok <toshok@ximian.com>
16241 * UpDownBase.cs (.ctor): remove the ActiveControl assignment here.
16242 It breaks in the face of the new ActiveControl stuff, and should
16245 * Form.cs (WndProc): in the WM_ACTIVATE case, we need to set the
16246 activecontrol's focus if it's not already set, after we set
16247 ActiveControl, but before we call OnActivated. Re-fixes #79667
16248 after the previous focus/active control fixes regressed it.
16250 * Control.cs: reindent some code.
16252 2007-01-10 Chris Toshok <toshok@ximian.com>
16254 * Splitter.cs: clearing some outstanding changes from my tree.
16255 Replace all accesses (not writes) to the internal dock_style field
16256 with the Dock property.
16258 2007-01-10 Chris Toshok <toshok@ximian.com>
16260 * Control.cs: make FireEnter, FireLeave, FireValidating, and
16261 FireValidated virtual.
16263 * Form.cs: override and don't chain up calls to FireEnter and
16266 2007-01-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
16268 * ListView.cs: Add more text padding space when using
16269 auto resize for columns (the previous value didn't work fine).
16271 * ThemeWin32Classic.cs: Update text position inside columns,
16272 to match the appeareance of .Net.
16274 * ColumnHeader.cs: When using auto resize, only the Width should
16275 depend on the sub items, not the Height. Also, set width after
16276 auto resizing (the value of Width should never remain as -1 or -2).
16278 2007-01-10 Chris Toshok <toshok@ximian.com>
16280 * Application.cs: fix compilation errors when debug is enabled.
16282 2007-01-10 Chris Toshok <toshok@ximian.com>
16284 * ContainerControl.cs (set_ActiveControl): rework this a bit (and
16285 add some nice ascii art pictures and explanation of the process).
16286 (GetMostDeeplyNestedActiveControl): new utility function we need
16287 because our ActiveControl can refer to a child container with its
16290 * Form.cs (OnActivated): remove the call to SelectActiveControl
16291 from here, since you can override this method and not chain up,
16292 and winforms still sets the active control.
16293 (OnCreateControl): also remove the unnecessary SelectActiveControl
16295 (WndProc): it's actually called from the WM_ACTIVATE block, just
16296 before calling OnActivated.
16298 * Control.cs (Select (Control)): move the call to XplatUI.SetFocus
16299 inside the else. the ActiveControl setter will end up setting
16300 focus on @control. This keeps us from setting it again (and
16301 generating an extra LostFocus/GotFocus pair).
16302 (Select (bool, bool)): reindent.
16304 2007-01-10 Jonathan Pobst <jpobst@novell.com>
16306 * FlowLayoutPanel.cs, MenuStrip.cs, SplitContainer.cs, SplitterPanel.cs,
16307 StatusStrip.cs, TableLayoutPanel.cs, TableLayoutStyleCollection.cs,
16308 ToolStrip.cs, ToolStripComboBox.cs, ToolStripContainer.cs,
16309 ToolStripContentPanel.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
16310 ToolStripDropDownButton.cs, ToolStripDropDownItem.cs, ToolStripDropDownMenu.cs,
16311 ToolStripItem.cs, ToolStripMenuItem.cs, ToolStripPanel.cs, ToolStripPanelRow.cs,
16312 ToolStripSeparator.cs, ToolStripSplitButton.cs, ToolStripStatusLabel.cs
16313 ToolStripTextBox.cs: Another wave of corcompare work.
16315 2007-01-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
16317 * ColumnHeader.cs: Implement 2.0 AutoResize method using
16318 the Width property.
16320 * ListView.cs: Implement 2.0 AutoResizeColumn and AutoResizeColumns
16321 methods by callling Column.AutoResize method on columns.
16323 2007-01-09 Jonathan Pobst <monkey@jpobst.com>
16325 * Control.cs: Provide proper implementations of PreferredSize
16326 and GetPreferredSize (2.0).
16328 2007-01-09 Jonathan Pobst <monkey@jpobst.com>
16330 * Form.cs: Remove one character (!) to make my previous OnClosing
16331 stuff work for modal windows like MessageBox.
16333 2007-01-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
16336 * ThemeWin32Classic.cs: Use ListView.GetReorderedColumn instead of
16337 ListView.Columns to get the last displayed column. Fixes #80452.
16339 2007-01-09 Everaldo Canuto <everaldo@simios.org>
16341 * Label.cs, LinkLabel.cs: Source code identation fixes.
16343 2007-01-08 Everaldo Canuto <everaldo@simios.org>
16345 * ToolBarButton.cs: Remove InvalidateBorder and use Invalidate instead,
16346 we dont need to invalidate only borders because when we invalidate four
16347 border lines the invalidate's generates a complete redraw of button,
16348 because it now invalidate a complete rect some other redraws operations
16349 are fixed. Fixes #80196.
16351 * Theme.cs, ThemeNice.cs, ThemeClearLooks.cs, ThemeWin32Classic.cs:
16352 Remove ToolBarInvalidateEntireButton as it is not used.
16354 2007-01-08 Jonathan Pobst <monkey@jpobst.com>
16356 * Form.cs: Make sure that both OnClosing and OnFormClosing are
16357 called for 2.0 profile.
16358 * CloseReason.cs: Make class internal for 1.1.
16360 2007-01-08 Jonathan Pobst <monkey@jpobst.com>
16362 * ToolStripManager.cs: Implement FindToolStrip functionality.
16363 * ToolStrip.cs: Register and unregister with ToolStripManager.
16365 2007-01-07 Jonathan Pobst <monkey@jpobst.com>
16367 * Control.cs: This was messy. 2.0 moves much of ControlCollection
16368 to ArrangedElementCollection. Implemented this with as few #if's as
16369 possible (which is still too many).
16371 2007-01-07 Jonathan Pobst <monkey@jpobst.com>
16373 * Control.cs: Implement SizeFromClientSize() [2.0].
16375 2007-01-07 Everaldo Canuto <everaldo@simios.org>
16377 * Hwnd.cs: On GetClientRectangle add a new parameter border_static,
16378 use Theme.BorderSize to calculate area instead of static value 1,
16379 by the way use new BorderStaticSize instead Border3DSize when
16380 border_static is true. Fixes #79537.
16382 * XplatUIOSX.cs: Fix call to GetClientRectangle.
16384 * ThemeWin32Classic.cs: On CPDrawBorder3D dont draw inner border when
16387 2007-01-06 Everaldo Canuto <everaldo@simios.org>
16389 * Hwnd.cs: Gives more code legibility to GetWindowRectangle.
16391 2007-01-06 Everaldo Canuto <everaldo@simios.org>
16393 * Label.cs: Override CreateParams to use WS_EX_STATICEDGE instead of
16394 WS_EX_CLIENTEDGE in ExStyles when BorderStyle is Fixed3D, it is
16397 - border_static field added, it will used to define when a control
16398 theres 3D border but it must be static (thin).
16399 - In GetWindowRectangle use Theme.BorderSize to calculate area
16400 instead of static value 1, by the way use new BorderStaticSize instead
16401 Border3DSize when border_static is true.
16403 * XplatUIX11.cs, XplatUIOSX.cs:
16404 - When WS_EX_STATICEDGE ExStyle is set define border_static as true.
16406 * Theme.cs: BorderStaticSize field added.
16408 2007-01-05 Everaldo Canuto <everaldo@simios.org>
16410 * XplatUIX11.cs: Removed unused hwnd var in SetBorderStyle.
16412 2007-01-05 Everaldo Canuto <everaldo@simios.org>
16414 * Control.cs: Under InternalBorderStyle call RecreateHangle to
16415 mimic same behavior than win32 that set border only in CreateParams,
16416 it fix problems under CreateParams overrides. Fix #79442 and partial
16419 * XplatUIX11.cs: Dont set hwnd.border_style in SetBorderStyle instead
16420 of thi control you must call recreate handle.
16422 * XplatUIWin32.cs: Remove all SetBorderStyle code, for win32 we dont
16423 need to do anything as RecreateHangle will take care about borders.
16425 2007-01-05 Mike Kestner <mkestner@novell.com>
16427 * ListView.cs: hack to eliminate Lost/Got focus notifications on
16428 cycles between the ItemControl and parent. Fixes #80388.
16430 2007-01-05 Gert Driesen <drieseng@users.sourceforge.net>
16432 * Control.cs: Lazy init layout engine. Do not directly use
16433 layout_engine since LayoutEngine may be overridden (on 2.0 profile).
16435 2007-01-05 Chris Toshok <toshok@ximian.com>
16437 * DataGrid.cs: don't forceably rebind columns in SetDataSource
16438 unless our list manager has changed (i.e. unless we have reason to
16439 believe our columns have changed). Fixes #80422.
16441 also, disable the call do BindColumns in
16442 OnListManagerMetaDataChanged. this breaks this test in 2.0 (in
16443 1.1 the event isn't raised in response to a column addition on a
16446 2007-01-05 Jonathan Pobst <monkey@jpobst.com>
16448 * Control.cs: Move LayoutEngine.Layout to the OnLayout method, so
16449 that inheritors can not call it if they choose. Fixes bug #80456.
16451 2007-01-05 Andreia Gaita <avidigal@novell.com>
16453 * XplatUIWin32.cs: Initialize MSG.refobject at 0 so it
16454 doesn't blow up with a null exception on marshalling.
16456 2007-01-05 Jonathan Pobst <monkey@jpobst.com>
16458 * Control.cs: Implement several 2.0 protected properties and methods.
16459 Ensure that all necessary events are being called when properties
16462 2007-01-05 Mike Kestner <mkestner@novell.com>
16464 * ListView.cs: implement PgUp/PgDn for Details view. Also
16465 fixes First/LastVisibleIndex to use the item_control.ClientRect
16466 instead of the parent control. Fixes #80378.
16468 2006-01-05 Atsushi Enomoto <atsushi@ximian.com>
16470 * PageSetupDialog.cs : cosmetic refactoring; use RegionInfo to
16471 determine whether to use yard-pound or not (bug #78399).
16473 2006-01-04 Alexander Olk <alex.olk@googlemail.com>
16475 * FileDialog.cs: Sebastien fixed the libgdiplus png alpha
16476 problems. So it is time to bring back the old popupbutton colors.
16478 2006-01-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
16481 * ListView.cs: Implement 2.0 ColumnHeader.DisplayIndex
16482 property by using the internal information of the
16483 columns order in ListView.
16485 2007-01-04 Jonathan Pobst <monkey@jpobst.com>
16487 * CommonDialog.cs, Cursor.cs, ErrorProvider.cs, HelpProvider.cs:
16488 Add 2.0 Tag properties.
16490 * LinkArea.cs: Add 2.0 ToString method.
16492 2007-01-03 Chris Toshok <toshok@ximian.com>
16494 * DataGrid.cs: the Alt+0 handling was wrong, it should have been
16495 Ctrl+0. Fixes bug #80367. Also, don't eat the Delete keypress
16496 when we're editing, which fixes #80047.
16498 2007-01-03 Chris Toshok <toshok@ximian.com>
16500 * Form.cs: apply patch contributed by Dominik Seichter. fixes
16503 2007-01-03 Jonathan Pobst <monkey@jpobst.com>
16505 * MenuStrip.cs, ToolStripMenuItem.cs: Add MdiWindowListItem
16506 property and implementation.
16508 * Form.cs, MdiClient.cs, MdiWindowManager.cs: Add needed hooks
16509 for MdiWindowListItem property.
16511 * ToolStripDropDown.cs: Don't consider hidden menu items while
16512 laying out the menu.
16514 2007-01-03 Andreia Gaita <avidigal@novell.com>
16516 * SendKeys.cs: window handle is not needed in win32, so just
16517 get the active window for X after parsing keys and don't use
16518 it when building the message; it is passed by parameter to the
16519 Xplat method and used there to build the message instead. Also,
16520 wait for events to be processed on SendWait, as opposed to Send,
16521 which doesn't wait :) Playing with threads and Send() completely
16522 hangs on ms.net, only SendWait() works.
16525 X11Display.cs: Check for valid window handle.
16527 2007-01-03 Jackson Harper <jackson@ximian.com>
16529 * TextControl.cs: Need to prevent wrap calculations when replacing
16530 text (this was there before i removed it accidently).
16531 - Don't update the cursor during the positioning, just set it to
16532 selection_start at the end of the operaion.
16534 2007-01-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
16537 * NotifyIcon.cs: corcompare work, no more X's in 1.1 class status.
16539 2007-01-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
16541 * MonthCalendar.cs: Added Click and DoubleClick events again,
16542 but this time they only hide Control's Click and DoubleClick.
16544 2007-01-03 Gert Driesen <drieseng@users.sourceforge.net>
16546 * Theme.cs: Re-enabled DefaultFont change. Use const to refer to
16547 System.Drawing assembly. Spaces to tabs. Removed extra tabs.
16549 2007-01-02 Jackson Harper <jackson@ximian.com>
16551 * TextBoxBase.cs: We move the caret with the split now, so we
16552 don't need to explicitly move the caret after splitting. This
16553 fixes the caret bumping down an extra line on Enter.
16555 2007-01-02 Miguel de Icaza <miguel@novell.com>
16557 * ContainerControl.cs: Add AutoValidateChanged event (for PDN
16560 * ScrollableControl.cs: Add Scroll event.
16562 2007-01-02 Mike Kestner <mkestner@novell.com>
16564 * ListView.cs: one more try with help from georgegiolfan@yahoo.com
16565 to fix all hdr height padding codepaths. Fixes #80207.
16567 2007-01-02 Chris Toshok <toshok@ximian.com>
16569 * StatusBar.cs (.ctor): remove the Anchor setting, as it's just
16570 setting it to the Control defaults anyway, and it being after the
16571 Dock set was screwing up layout.
16572 (set_Dock): don't short circuit out of setting base.Dock. Also,
16573 no need to call UpdateStatusBar here, as it'll be re-layed out if
16576 2007-01-02 Mike Kestner <mkestner@novell.com>
16578 * ListView.cs: patch from georgegiolfan@yahoo.com to add padding
16579 to header height for width == -1. Fixes the rest of #80207.
16581 2007-01-02 Mike Kestner <mkestner@novell.com>
16583 * ListView.cs: rework the mouse event forwarding everaldo added
16584 to translate the coordinates to the parent control not
16585 raise the parent events until after we've done our work. Hover
16586 needs more work, in the case where HoverSelection is on, because
16587 the item control receives more than one MouseHover per Enter
16588 event, so we need to ensure only the "first" hover gets forwarded.
16589 Opening a minor bug for that.
16591 2007-01-02 Gert Driesen <drieseng@users.sourceforge.net>
16593 * CheckedListBox.cs: Fixed SelectionMode to match MS.
16594 * ListControl.cs: Implemented AllowSelection property. Removed extra
16596 * ListBox.cs: Implemented AllowSelection property.
16598 2007-01-02 Everaldo Canuto <everaldo@simios.org>
16600 * MenuItem.cs: In MdiWindowClickHandler uses sender instead of
16601 SelectedItem, it prevent for errors when you must disable item
16602 before perform click. Fixes #80409.
16604 2007-01-02 Everaldo Canuto <everaldo@simios.org>
16606 * MenuAPI.cs: Prevent second level and beyond submenus to close
16607 until first level when move out side of popup.
16609 2007-01-02 Everaldo Canuto <everaldo@simios.org>
16612 - Down submenu positin in three pixels.
16613 - Closes sub menu when mouse leaves from menu. Fixes #80402.
16615 2007-01-02 Everaldo Canuto <everaldo@simios.org>
16617 * ThemeWin32Classic.cs:
16618 - Fix popup menu size adding one pixel on the top.
16619 - Down menu item border from two to one to mimic Win32.
16620 - Some source identation fixes.
16622 2007-01-01 Everaldo Canuto <everaldo@simios.org>
16624 * ThemeWin32Classic.cs: Use float numbers to calculate size and
16625 position of menu arrows, it fix wrong arrow size.
16627 2007-01-01 Everaldo Canuto <everaldo@simios.org>
16629 * ThemeWin32Classic.cs: Uses CPDrawBorder3D to draw menu borders
16630 instead of line, it simplify draw operation and fix it using 3D
16631 borders to mimic Win32.
16633 2007-01-01 Jonathan Pobst <monkey@jpobst.com>
16635 * StatusStrip.cs: Add implementation of the sizing grip.
16637 * ToolStripRenderer.cs, ToolStripProfessionalRenderer.cs: Add
16638 StatusStrip rendering.
16640 2006-12-31 Chris Toshok <toshok@ximian.com>
16642 * ToolBar.cs: don't assign to dock_style in the .ctor. it doesn't
16643 override the layout style (anchor/dock) of the control. assign to
16644 Dock instead. Fixes bug #80416.
16646 * ToolStrip.cs: same.
16648 2006-12-31 Andreia Gaita <avidigal@novell.com>
16650 * ContainerControl.cs: Use ContainerSelected flag to check if
16651 a Container is directly selected, or if Select is called on a
16652 non-container. If a container is directly selected, focus events
16653 should not be raised.
16654 Apply #80411 patch to throw exception on set_ActiveControl if
16655 control is the same as the current one.
16657 * Control.cs: Use ContainerSelected flag (see above).
16658 Add invalidation check to raise event but not invalidate if
16660 Apply #80411 patch.
16663 2006-12-31 Everaldo Canuto <everaldo@simios.org>
16665 * MenuAPI.cs: After click, dont close popup menu when menu is
16666 ContextMenu. Fixes #80399.
16668 2006-12-30 Chris Toshok <toshok@ximian.com>
16670 * ContainerControl.cs: make sure we throw the exception if the
16671 container control doesn't contain the control we're setting
16674 2006-12-30 Chris Toshok <toshok@ximian.com>
16676 * Control.cs (SetTopLevel): fix the exception raised by
16677 SetTopLevel for child controls.
16678 (set_Anchor): call UpdateDistances when setting the anchor type.
16679 This fixes bug #80336.
16681 2006-12-29 Gert Driesen <drieseng@users.sourceforge.net>
16683 * Theme.cs: For now, revert back to 8pt font.
16685 2006-12-29 Everaldo Canuto <everaldo@simios.org>
16687 * MenuAPI.cs: Set popup as active when open a ContextMenu.
16690 2006-12-29 Chris Toshok <toshok@ximian.com>
16692 * Control.cs: reorder the code in OnResize to give the same event
16695 2006-12-29 Rolf Bjarne Kvinge <RKvinge@novell.com>
16697 * MdiClient.cs: Implemented MdiLayout for ArrangeIcons,
16698 TileHorizontally and TileVertically.
16700 2006-12-29 Alexander Olk <alex.olk@googlemail.com>
16702 * ColorDialog.cs, FileDialog.cs, FolderBrowserDialog.cs,
16703 FontDialog.cs, Mime.cs, MimeIcon.cs, OpenFileDialog.cs,
16704 SaveFileDialog.cs, ThemeClearlooks.cs, ThemeNics.cs:
16705 Corrected copyright and email adress.
16707 2006-12-29 Gert Driesen <drieseng@users.sourceforge.net>
16709 * TreeNode.cs: On 2.0 profile, throw InvalidOperationException instead
16710 of Exception in FullPath property if no TreeView is associated with
16713 2006-12-29 Gert Driesen <drieseng@users.sourceforge.net>
16715 * Theme.cs: Marked default_font as private, and initialize it in ctor
16716 with MS Sans Sarif 8.25 on 1.0 profile, and SystemFonts.DefaultFont
16718 * ThemeGtk.cs: Removed default_font intialization.
16719 * ThemeWin32Classic.cs: Removed default_font initialization.
16721 2006-12-28 Chris Toshok <toshok@ximian.com>
16723 * Control.cs: fix a couple of place where we were creating handles
16724 more aggressively than we should be. Fixes ControlRefresh unit
16727 2006-12-28 Chris Toshok <toshok@ximian.com>
16729 * Control.cs: contrary to what the comment said, Control.Dock does
16730 not supercede Control.Anchor - the last one you assign to decides
16731 the layout behavior. so we need to keep track of which was the
16732 last set. Also, fix some of the affected property arguments in
16733 PerformLayout calls, and remove an redundant parent.PerformLayout
16736 Add a VisibleInternal property, which returns is_visible. We
16737 can/should get rid of all the usage of this field elsewhere.
16739 2006-12-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
16741 * Control.cs: DoubleBuffered property reflects the OptimizedDoubleBuffer
16742 control style, not DoubleBuffer. Added UseDoubleBuffering property
16743 that indicates whether doublebuffering is enabled and supported.
16744 (comment from and code based on Gert Driesen's patch in #80324).
16747 2006-12-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
16749 * Control.cs: Fixed a NRE.
16751 2006-12-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
16753 * TrackBar.cs: Fix SmallChange and LargeChange exceptions
16756 2006-12-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
16758 * Control.cs: Rewrote double buffering, now a seperate
16759 class handles all the buffering, no Graphics is disposed of
16760 until the painting is finished (earlier implementation
16761 would crash if the control was resized in the OnPaint,
16762 since it would cause the double buffer to be recreated
16763 and the old one disposed), a separate Graphics is
16764 created for every paint (MS behaviour and anyways the state
16765 of the Graphics would have to be saved and restored otherwise)
16767 * XplatUIDriver.cs:
16769 * XplatUI.cs: Added and implemented GetOffscreenGraphics
16770 so that we can get the graphics for the back buffer without
16771 having to create a new one and remove the offscreen_dc parameter
16772 from CreateOffscreenDrawable and DestroyOffscreenDrawable.
16774 2006-12-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
16776 * ListView.cs: Add key-related 2.0 methods for CheckedItemCollection.
16777 Also make virtual all the key-related methods.
16779 * ListViewItem.cs: Make virtual the key related methods for
16780 ListViewSubItemCollection.
16782 2006-12-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
16786 * ThemeWin32Classic.cs:
16787 * Theme.cs: Initial support for Tile view in ListView,
16788 as well as the implementation of the required bits for it (Item
16791 2006-12-27 Gert Driesen <drieseng@users.sourceforge.net>
16793 * MonthCalendar.cs: On 2.0, throw ArgumentOutOfRangeException instead
16794 of ArgumentException in MaxSelectionCount, MaxDate and MinDate.
16795 Provide useful exception messages.
16797 2006-12-27 Rolf Bjarne Kvinge <RKvinge@novell.com>
16799 * TrackBar.cs: Remove a warning.
16800 * MonthCalendar.cs: Moved back to using Capture to hide the calendar
16801 when used by DateTimePicker, fixes #80287. This also requires that
16802 MonthCalendar implements it's own drawing for the yearly updown control,
16803 otherwise the Capture tracking would be too complicated. Removed the Click
16804 and DoubleClick events (according to comments they were hiding the base class
16805 event to prevent them from beeing fired - MSDN only says MonthCalendar doesn't
16806 raise these events, not that they cannot be raised. It is possible to raise
16807 them by calling OnClick and OnDoubleClick). Added two internal fields in
16808 HitTestInfo in order to track give more tracking info needed by MonthCalendar.
16809 * ThemeWin32Classic.cs: Implement drawing of MonthCalendar's updown part.
16810 * DateTimePicker.cs: Removed handling of MonthCalendar's LostFocus
16811 event, no longer needed.
16813 2006-12-27 Gert Driesen <drieseng@users.sourceforge.net>
16815 * ScrollableControl.cs: In AutoScrollMinSize, only set AutoScroll to
16816 true if new value differs from current value.
16818 2006-12-27 Gert Driesen <drieseng@users.sourceforge.net>
16820 * Control.cs: ControlCollection.Count must be public. Fixed build of
16823 2006-12-27 Gert Driesen <drieseng@users.sourceforge.net>
16825 * ListView.cs: Redraw when FullRowSelect is changed. Fixes bug #80379.
16827 2006-12-27 Gert Driesen <drieseng@users.sourceforge.net>
16829 * ComboBox.cs: Mergable=>MergableProperty. Fixes build.
16831 2006-12-26 Everaldo Canuto <everaldo@simios.org>
16833 * Control.cs: Invalidates control including when Width and Height is
16834 equal zero or is not visible, only Paint event must be care about
16835 this. Fixes #79913.
16837 2006-12-26 Chris Toshok <toshok@ximian.com>
16839 * CurrencyManager.cs, PropertyManager.cs, BindingManagerBase.cs:
16840 more corcompare work.
16842 * DataGridView.cs: fix compiler warning.
16844 * ColumnHeader.cs: some corcompare work, and also take the
16845 opportunity to make the internal fields private.
16847 * ListView.cs: fix the fallout from the above field change.
16849 2006-12-26 Jonathan Pobst <monkey@jpobst.com>
16851 * ToolStripButton.cs, ToolStripComboBox.cs, ToolStripControlHost.cs,
16852 ToolStripItem.cs, ToolStripProgressBar.cs, ToolStripSplitButton.cs,
16853 ToolStripTextBox.cs: Fixes to events and corcompare.
16855 2006-12-26 Everaldo Canuto <everaldo@simios.org>
16857 * ListView.cs: Call owner.OnMousexx event to propagate events from
16858 item to ListView. Fixes #80367.
16860 2006-12-26 Gert Driesen <drieseng@users.sourceforge.net>
16862 * ComboBox.cs: On 2.0, DropDownWidth throws ArgumentOutOfRangeException
16863 if value is less than one. ItemHeight should not be set to a value
16864 less than 1, and throw ArgumentOutOfRangeException on 2.0 profile.
16865 Removed extra tabs.
16867 2006-12-26 Jonathan Pobst <monkey@jpobst.com>
16869 * ToolStripMenuItem.cs: Add ShortcutDisplayString for Moma.
16870 * ToolStripStatusLabel.cs: Add Spring for Moma.
16872 2006-12-26 Gert Driesen <drieseng@users.sourceforge.net>
16874 * DataGridView.cs: Fixed several NullReferenceException in On* methods.
16875 Fixed code formatting. Removed debug code.
16876 * DataGridViewTextBoxEditingControl.cs: Removed debug code.
16878 2006-12-26 Gert Driesen <drieseng@users.sourceforge.net>
16880 * DataGridView.cs: Fixed GridColor, DefaultSize, DefaultCellStyle,
16881 RowHeadersDefaultStyle, RowHeadersWidth to match MS. Throw
16882 ArgumentOutOfRangeException if ColumnCount is negative. In
16883 ColumnHeadersHeight, throw ArgumentOutOfRangeException if height is
16884 less than 4 or higher than 32768.
16885 * DataGridViewCellStyle.cs: Fixed default value for NullValue.
16886 Fixed FormatProvider to return CurrentCulture unless explicitly set.
16887 Fixed IsFormatProviderDefault to return true if FormatProvider has
16888 not been explicitly set.
16890 2006-12-25 Chris Toshok <toshok@ximian.com>
16892 * Application.cs: add a couple of 2.0 events.
16894 2006-12-25 Chris Toshok <toshok@ximian.com>
16896 * Control.cs: fix compiler warning.
16898 * AxHost.cs: corcompare fixes.
16900 * ApplicationContext.cs: corcompare fixes.
16902 2006-12-25 Chris Toshok <toshok@ximian.com>
16904 * Control.cs: only update dist_right/dist_bottom if the
16905 width/height is > 0. this fixes anchored controls being resized
16906 smaller until they disappear and then resized larger again.
16908 2006-12-25 Chris Toshok <toshok@ximian.com>
16910 * Control.cs: a couple of changes. Remove dist_left and dist_top,
16911 since they're nothing more than X/Left and Y/Top, respectively.
16913 Also, move back to a per-control Bitmap/Graphics for
16914 DeviceContext, since using the static Hwnd.bmp/bmp_g is bad in the
16915 MT case. Go with a tiny bitmap though, 1x1, instead of Width x
16918 2006-12-25 Miguel de Icaza <miguel@novell.com>
16920 * MessageBox.cs: Implemented overload that takes a new "bool
16921 displayHelpButton" by adding a new internal field "show_help".
16922 When clicked this will raise the HelpRequested on the owner or the
16925 From: 007dbe3ff0ca4729a4f5fcd1d8ab2a2e.txt
16926 From: c935e12b95fe4dc1ae670e7f4dc5fd68.txt
16928 * ListView.cs: Add support ColumnWidthChanged and
16929 ColumnWidthChanging.
16931 Add support for ColumnReordered event.
16932 (ReorderColumn): Add NET_2_0 specific support for cancelling the
16935 Very nice codebase!
16937 * TextBoxBase.cs (GetLineFromCharIndex): Implement this method.
16939 This is used by report f4ae0a88a0a244558aaadf017c9b9efe.
16941 2006-12-24 Chris Toshok <toshok@ximian.com>
16943 * GridTablesFactory.cs: 2.0 corcompare work.
16945 * ToolStripContainer.cs: add "override" to
16946 ContextMenuStripChanged, and remove the local event object.
16948 * ToolStripDropDown.cs: same with a couple properties.
16950 * ToolStripPanel.cs: same with AutoSizeChanged event.
16952 * TextBoxBase.cs: add "override" to AutoSizeChanged.
16954 * Form.cs: add the remaining 2.0 events, and do some corcompare
16957 * DateTimePicker.cs: add "new" to padding.
16959 * ButtonBase.cs: use Control's use_compatible_text_rendering.
16961 * ToolStripContentPanel.cs: use base.AutoSizeChanged.
16963 * DataGridView.cs: PaddingChanged is overridden.
16965 2006-12-24 Chris Toshok <toshok@ximian.com>
16967 * Control.cs: corecompare work here too.
16969 * DataGridViewElement.cs, DataGridView.cs,
16970 DataGridViewButtonCell.cs, DataGridViewRowCollection.cs,
16971 DataGridViewImageColumn.cs, DataGridViewComboBoxColumn.cs,
16972 DataGridViewImageCell.cs, DataGridViewCheckBoxCell.cs,
16973 DataGridViewHeaderCell.cs, DataGridViewCell.cs: more corcompare
16976 2006-12-24 Miguel de Icaza <miguel@novell.com>
16978 * Control.cs: Switched the error message on the console for a
16979 todo. A review of the code will have to cope with this anyways
16980 (since its a large feature, it is in our radar) and it was
16981 producing too much output when running PDN.
16983 * ToolStripComboBox.cs: Set the text when the SelectedIndex
16984 changes. Applications depend on this (PDN 2.72)
16986 2006-12-23 Chris Toshok <toshok@ximian.com>
16988 * TableLayoutSettings.cs: finish up the corcompare work for this
16991 2006-12-23 Chris Toshok <toshok@ximian.com>
16993 * Control.cs: make SetImplicitBounds internal, do some futzing
16994 with LayoutEngine so that it's available in 1.1, and remove the
16995 entire duplicated code mess from PerformLayout. Use
16996 System.Windows.Forms.Layout.DefaultLayout instead.
16998 * LayoutEngine.cs: make this class internal in 1.1, public in 2.0.
17000 2006-12-23 Jonathan Pobst <monkey@jpobst.com>
17002 * Form.cs: Add MainMenuStrip property.
17004 2006-12-23 Jonathan Pobst <monkey@jpobst.com>
17006 * Control.cs: Add ContextMenuStrip property and implementation.
17007 Fix ContextMenu implementation to show menu centered on control when
17008 activated using the keyboard instead of showing at screen (0,0).
17010 * ToolStripDropDown.cs: Fix needed overload of Show ().
17012 2006-12-23 Everaldo Canuto <everaldo@simios.org>
17014 * Menu.cs: Name property added for 2.0 profile.
17016 2006-12-23 Everaldo Canuto <everaldo@simios.org>
17018 * Menu.cs: Update information about FindMenuItem, method to be
17021 2006-12-23 Everaldo Canuto <everaldo@simios.org>
17023 * MenuAPI.cs: When deselect items deselect also selected subitems.
17025 2006-12-23 Everaldo Canuto <everaldo@simios.org>
17027 * MenuAPI.cs: When hides menu set Wnd to null, it prevents
17028 FindSubItemByCoord to found itens that is not active, also an
17029 cheking added to FindSubItemByCoord to search for items only
17030 in visible popup windows. Fixes #80274.
17032 2006-12-22 Everaldo Canuto <everaldo@simios.org>
17034 * UserControl.cs: Remove MonoTodo and use InternalBorderStyle,
17035 internal property, it be care about change ExStyle.
17037 2006-12-22 Andreia Gaita <avidigal@novell.com>
17039 * ContainerControl.cs: set activeControl for parent forms up the
17040 tree when the new activecontrol is a container.
17041 When validating the active control, if it is a container, also
17042 raise up the validation for it's active control. Fixes #80280
17044 * Control.cs: Add internal property flag and check to prevent
17045 Focus events from getting raised when Select() is called for
17046 a ContainerControl. There are still too many focus events being
17047 raised at the moment though.
17048 Cleaned up the code a bit.
17050 2006-12-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
17052 * Control.cs: Added all missing 2.0 events.and
17053 fixed a couple of corcompare issues.
17054 * TrackBar.cs: Implemented missing 2.0 bits.
17055 * MonthCalendar.cs,
17056 * DateTimePicker.cs,
17057 * MdiClient.cs: Fixed some corcompare issues.
17059 2006-12-21 Jonathan Pobst <monkey@jpobst.com>
17061 * ContextMenuStrip.cs, FlowLayoutPanel.cs, SplitContainer.cs,
17062 SplitterPanel.cs: corecompare work.
17064 2006-12-21 Jonathan Pobst <monkey@jpobst.com>
17066 * ToolStripContainer.cs, ToolStripDropDown.cs, StatusStrip.cs:
17067 Clean up warnings for BackgroundImageChanged and PaddingChanged
17068 events now that they are implemented in Control.cs.
17070 2006-12-21 Jonathan Pobst <monkey@jpobst.com>
17072 * Control.cs: Make sure layout_engine isn't null before using it (2.0).
17074 * TableLayoutControlCollection.cs, TableLayoutPanel.cs, TableLayoutCellPosition.cs,
17075 TableLayoutSettings.cs, TableLayoutStyleCollection.cs: Initial implementation
17076 of TableLayoutPanel and supporting cast.
17078 2006-12-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
17081 - GrabWindow now confines the mouse pointer to the confine window.
17082 - Added Win32ClipCursor and Win32GetClipCursor.
17085 - Added CaptureWithConfine to be able to capture and confine
17088 * InternalWindowManager.cs:
17089 - Call CaptureWithConfine instead of Capture if we're an
17090 MdiChild (fixes #79982).
17092 2006-12-21 Chris Toshok <toshok@ximian.com>
17094 * DataGrid.cs: guard against the initial state of selection, where
17095 selection_start == -1. make sure we only select from index >= 0.
17098 2006-12-21 Chris Toshok <toshok@ximian.com>
17100 * Control.cs: we don't need to be so draconian with
17101 UpdateDistances, and we thusly don't need to call it before
17102 calling PerformLayout in ResumeLayout. Fixes bug #80289.
17104 2006-12-21 Daniel Nauck <dna@mono-project.de>
17107 TextBox.cs: Implemented AutoComplete properties.
17109 2006-12-20 Chris Toshok <toshok@ximian.com>
17111 * DataGridView*.cs: some corecompare work.
17113 2006-12-20 Jackson Harper <jackson@ximian.com>
17115 * XplatUIX11.cs: We need to hide the caret when deleting it,
17116 otherwise you get carets left lying around everywhere.
17117 * TextBoxBase.cs: Kill then redraw the caret when scrolling. This
17118 prevents getting some weird half drawn caret tracers when
17120 * TextControl.cs: Attempt to reduce the number of times we need to
17121 recreate the caret.
17123 2006-12-20 Gert Driesen <drieseng@users.sourceforge.net>
17125 * MonthCalendar.cs: Fixed previous month button. Removed extra tabs.
17127 2006-12-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
17129 * DateTimePicker.cs:
17130 - Implemented missing 2.0 bits.
17131 - Changed some default values to match MS.
17133 2006-12-20 Jackson Harper <jackson@ximian.com>
17135 * TextBoxBase.cs: When changing the font across the document we
17136 can't recalculate after changing each line, since that will cahnge
17138 - PreferredHeight is a little different than i thought.
17139 - When backspacing, move the caret before we do the actual char
17140 delete, because when that delete crosses a wrap boundary the
17141 positional information will change.
17143 2006-12-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
17145 * Control.cs: Added some missing 2.0 bits:
17146 BackgroundImageLayout, BackgroundImageLayoutChanged,
17147 OnPaddingChanged, MouseClick, MouseDoubleClick, PaddingChanged and
17148 add IBindableComponent and IDropTarget implementation.
17150 * MonthCalendar.cs:
17151 - Added all missing 2.0 features:
17152 BackgroundImageLayout, RightToLeftLayout,
17153 OnHandleDestroyed, RightToLeftLayoutChanged,
17154 BackgroundImageLayoutChanged, MouseClick, MouseDoubleClick,
17156 - Rewrote all the BoldDate code, it was completely broken.
17157 - Fixed all the tests (the tests can now be re-enabled, the
17158 problems were not with the tests, but with the control, it was
17161 * DateTimePicker.cs: Changed the location where the
17162 MonthCalendar is shown.
17164 2006-12-19 Chris Toshok <toshok@ximian.com>
17166 * DataGridView.cs: add IDropTarget implementation.
17168 * ToolStripPanel.cs: add IDropTarget implementation.
17170 2006-12-19 Jackson Harper <jackson@ximian.com>
17172 * TextControl.cs: soft now means something different than what it
17173 used to mean, we want to move the caret regardless of whether or
17174 not this break was soft (would we really have wanted the caret
17175 to not move with the break in the old context?)
17176 * TreeView.cs: Make sure we factor in the vert scrollbar when
17177 calculating the horizontal scrollbar's maximum.
17179 2006-12-19 Andreia Gaita <avidigal@novell.org>
17181 * SendKeys.cs: Fix Send() behaviour, clear keys after sending,
17182 check for keywords in alternate casing, close bug #80049.
17184 2006-12-19 Chris Toshok <toshok@ximian.com>
17186 * ToolStripItem.cs: add the implementation of the 4 IDropTarget
17187 methods (which all do nothing).
17189 * IDropTarget.cs: add the 4 missing methods.
17191 2006-12-19 Chris Toshok <toshok@ximian.com>
17193 * TableLayoutRowStyleCollection.cs: corcompare work.
17195 * TableLayoutSettings.cs: same.
17197 * TableLayoutStyle.cs: same.
17199 * TableLayoutColumnStyleCollection.cs: same.
17201 2006-12-19 Jonathan Pobst <monkey@jpobst.com>
17203 * ColumnStyle.cs, RowStyle.cs, TableLayoutStyle.cs: Plumbing for
17204 TableLayoutPanel I've had in my local tree for way too long.
17206 2006-12-19 Miguel de Icaza <miguel@novell.com>
17208 * TableLayoutSettings.cs: Finish the public API (still needs all
17209 the logic to update on changes).
17211 * TableLayoutPanelCellPosition.cs: new file.
17213 * TableLayoutRowStyleCollection.cs,
17214 TableLayoutColumnStyleCollection, TableLayoutStyle.cs,
17215 TableLayoutSettings.cs: Track the final 2.0 table api.
17217 2006-12-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
17219 * ColumnHeader.cs: Add Tag, Name, ImageKey, ImageIndex,
17220 and Image List 2.0 members for ColummnHeader.
17221 * ListView.cs: Add key-related 2.0 methods for
17222 ColumnHeaderCollection.
17224 2006-12-19 Gert Driesen <drieseng@users.sourceforge.net>
17226 * ListViewItem.cs: Changed AddRange overloads to match MS: throw
17227 ArgumentNullException if items argument is null. Ignore null item in
17228 arrays. Removed extra tabs.
17230 2006-12-19 Gert Driesen <drieseng@users.sourceforge.net>
17232 * MonthCalendar.cs: Fixed InvalidCastException.
17234 2006-12-19 Jackson Harper <jackson@ximian.com>
17236 * TextControl.cs: Don't increment the position here.
17237 - When calculating char positions only add in the line break size
17238 for hard line breaks.
17240 2006-12-19 Andreia Gaita <avidigal@novell.org>
17242 * SendKeys.cs: Changed some things to match ms.net behaviour
17243 when parsing shifted capital letters.
17245 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32, XplatUIOSX:
17246 Add window handle as parameter to SendInput. X11 needs the
17247 window handle, and the handle being passed to it in the keys
17248 queue is the active control handle (which windows needs), not
17251 XplatUIX11.cs, XplaUIX11-new.cs, X11Display: Implement SendInput
17252 to support SendKeys on X.
17254 * X11Keyboard: Implement helper method to lookup a linux keycode
17255 given the virtual keycode. Added table of keycode-2-virtualkey
17256 values to support this.
17258 2006-12-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
17260 * ListView.cs: Add support for SelectedIndexCollection
17261 and SelectedItemCollection 2.0 methods. Implement support
17263 * ListViewItem.cs: Add support for ListViewSubItemCollection
17264 2.0 methods. Also, fix an incorrect behavior of AddRange method
17265 (it shouldn't call Clear).
17266 * ThemeWin32Classic.cs: Support for ListView.ImageKey 2.0 property.
17268 2006-12-19 Jackson Harper <jackson@ximian.com>
17271 * TextBoxBase.cs: New args for FormatText
17272 * TextControl.cs: Rewrote the main drawing method, this version
17273 feels a little easier to understand and debug to me. Hopefully it
17274 does to others also
17275 - Fix FormatText to OR in the new formating values. Added
17276 FormatSpecified param, basically this works in the same way as
17277 BoundsSpecified in Control.
17278 - Set the caret properties when the caret is positioned.
17279 - When wrapping text make sure that we calculate the width of the
17281 - when calculating alignments we might have wrapped down to the
17282 next line, so don't search for an individual tag, search for the
17284 - We need to invalidate the selection area when we replace the
17287 2006-12-19 Daniel Nauck <dna@mono-project.de>
17289 * Application.cs: add Restart () 2.0 support
17291 2006-12-18 Everaldo Canuto <everaldo@simios.org>
17293 * MenuItem.cs: Invalidate menu item rectangle after change Enable
17294 property. Fixes #80268.
17296 2006-12-18 Everaldo Canuto <everaldo@simios.org>
17298 * MenuAPI.cs: Dont trigger select event when closes top menu
17299 item. Fixes #80270.
17301 2006-12-18 Everaldo Canuto <everaldo@simios.org>
17303 * MenuAPI.cs: When you click on menuitem only trigger onselect
17304 event for top menu itens. Fixes #80271.
17306 2006-12-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
17308 * MdiWindowManager.cs: Make IconicBounds depend on
17309 the bottom of MdiClient, not the top (fixes #80267)
17311 2006-12-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
17313 * MdiClient.cs: Added missing 2.0 attribute
17315 2006-12-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
17317 * ListViewItem.cs: Add Name and Tag 2.0 properties, as well
17318 as IndexOfKey, ContainsKey, RemoveByKey and indexer 2.0.
17320 2006-12-18 Everaldo Canuto <everaldo@simios.org>
17322 * MenuAPI.cs: Fix click when menuitem is not popup,
17323 this regression was caused by last commit (#80272).
17325 2006-12-17 Everaldo Canuto <everaldo@simios.org>
17327 * MenuAPI.cs: When a non-toplevel menuitem is clicked dont
17328 fire click event or close menu. Fixes #80272.
17330 2006-12-17 Daniel Nauck <dna@mono-project.de>
17332 * ListViewHitTestInfo.cs: add
17334 2006-12-17 Daniel Nauck <dna@mono-project.de>
17336 * ButtonBase.cs: Added FlatButtonAppearance 2.0 support.
17337 * FlatButtonAppearance.cs: add
17338 * DockingAttribute.cs: add
17340 2006-12-17 Chris Toshok <toshok@ximian.com>
17342 * DataGrid.cs: hook up MetaDataChanged event on the list manager,
17343 and rebind our columns when it does - this way, if you make
17344 changes to the DataTable (or set the Table attribute on a DataView
17345 after setting it as the DataGrid's DataSource, the changes are
17346 made visible.) Fixes bug #80107.
17348 2006-12-17 Daniel Nauck <dna@mono-project.de>
17350 * ListViewGroup.cs: add internal Location property for layouting.
17351 * Theme.cs: add abstract ListViewGroupHeight function.
17352 * ThemeWin32Classic.cs: implement ListViewGroupHeight function.
17354 2006-12-16 Andreia Gaita <avidigal@novell.com>
17356 * TabControl.cs: Fixed checks for NET_2_0-specific exceptions.
17357 Added reset of selected index to 0 when adding first tab page.
17360 * NumericUpDown.cs: Fix NET_2_0 check
17362 2006-12-16 Daniel Nauck <dna@mono-project.de>
17364 * ListViewGroup.cs: fixed DefaultValueAttribute value
17366 2006-12-16 Daniel Nauck <dna@mono-project.de>
17368 * AutoCompleteStringCollection.cs: add new AutoCompleteStringCollection 2.0 class
17370 2006-12-15 Miguel de Icaza <miguel@novell.com>
17372 * Button.cs, ComboBox.cs, ScrollBar.cs, UserControl.cs,
17373 TextBoxBase.cs, ListView.cs, ContainerControl.cs,
17374 ScrollableControl.cs: Add a handful of methods that are
17377 2006-12-15 Chris Toshok <toshok@ximian.com>
17379 * XplatUIWin32.cs: initial implementation of the Reversible
17380 drawing functions. there are some problems. DrawReversibleFrame
17381 doesn't seem to work at all for Dashed FrameStyle, and in the
17382 Thick case there are drawing errors at the corners (we probably
17383 need to bind Rectangle instead of doing moveto/lineto's.)
17385 2006-12-16 Andreia Gaita <avidigal@novell.com>
17387 * SendKeys.cs: Implemented. SendKeys uses a new method in XPlatUI, SendInput,
17388 to send blocks of key messages. Send accumulates keys to send with Flush,
17389 while SendWait sends all keys immediately.
17391 * XplaUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
17392 XplatUIX11.cs, XplatUIX11-new.cs:
17393 - Define SendInput and stubs for OSX and X11, implements Win32 with a call
17394 to Win32 SendInput.
17395 - Added INPUT support structures to XplatUIWin32 for Win32SendInput
17397 Tests: It seems ms.net is hooking the keyboard to implement this, so doing unit
17398 testing for ms.net on this class is very tricky, as the tests run too fast
17399 to allow the hook to release, essentially freezing the keyboard and the
17400 test. So, barring a win32 miracle, they'll be commited in the ms-notworking
17403 2006-12-16 Daniel Nauck <dna@mono-project.de>
17405 * Padding.cs: fixed serialization compability to MS ("_var" field names),
17406 added missing attributes.
17408 2006-12-15 Daniel Nauck <dna@mono-project.de>
17410 * ListViewGroup.cs: Added missing attributes.
17411 * ListViewGroupCollection.cs: Added missing attributes.
17413 2006-12-15 Daniel Nauck <dna@mono-project.de>
17415 * ListViewItem.cs: fixed ListViewSubItem text property.
17417 2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
17419 * Control.cs: Added missing 2.0 attributes
17421 2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
17423 * MdiClient.cs: Added missing 2.0 attribute.
17424 * MonthCalendar.cs: Added some missing 2.0 attributes
17427 2006-12-15 Daniel Nauck <dna@mono-project.de>
17429 * ListView.cs: implemented ListViewItemCollection Add 2.0 support.
17431 2006-12-15 Jonathan Pobst <monkey@jpobst.com>
17433 * MainMenu.cs: Add the new 2.0 constructor to help out people
17434 using the MainMenu in VS2005.
17436 2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
17438 * MdiChildContext.cs: Removed it, no longer used.
17439 * MdiClient.cs: Added missing 2.0 attributes.
17441 2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
17443 * InternalWindowManager.cs: Fix a NullRef with previous
17444 changes for toolwindows.
17446 2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
17449 - Added AfterTopMostControl to allow for certain controls
17450 to always stay on top when normal controls are brought to
17454 - (DrawInversibleRectangle): Get window rectangle from Win32
17455 in stead of from control, since Win32 doesn't calculate
17456 screen coords correctly from control's Location if it
17457 have docked siblings.
17459 * MdiWindowManager.cs:
17460 - Correct the control menu popup location when clicked on
17461 the maximized form icon. (fixes #80223.1)
17462 - Don't show moving rectangle if mouse hasn't moved from
17463 the original clicked point.
17464 - Removed FormGotFocus handler (not used).
17465 - Calculate the control buttons location from the main
17466 window's size and not client size (fixes #79770).
17467 - Form is now closed when the form icon is double-clicked
17469 - Correct NCCalcSize numbers a little bit (fixes #80223.2)
17471 * InternalWindowManager.cs:
17472 - Moved some MDI-only methods to MdiWindowManager.
17473 - Removed unused properties and methods.
17474 - Unified method naming for methods handling wm messages.
17475 - Moved all message handling to seperate methods for
17478 * ThemeWin32Classic.cs:
17479 - DrawManagedWindowDecorations now draws the title bar
17480 with a gradient brush.
17481 - Add a CPDrawButtonInternal that allows us to specify
17482 light, normal and dark colors for the buttons (control
17483 buttons for MDI children were drawn with the same light
17484 color as the background, therefore loosing the 3D effect).
17487 - Add a CapturedControl property that is used to
17488 determine the control to resize (defaults to parent).
17489 Needed for MdiClient, since its SizeGrip's parent is
17490 MdiClient, but the control to resize is the main form.
17493 - Set SizeGrip's CapturedControl to the main form in order
17494 to resize the main form and not the MdiClient.
17495 - Override AfterTopMostControl to leave the scrollbars
17498 2006-12-15 Daniel Nauck <dna@mono-project.de>
17500 * ListView.cs: fixed ListViewItemCollection AddRange and
17501 implemented ListViewItemCollection AddRange 2.0 support.
17503 2006-12-15 Daniel Nauck <dna@mono-project.de>
17505 * ListViewGroup.cs: Add.
17506 * ListViewGroupCollection.cs: Add
17507 * ListView.cs: Add ListViewGroup (Group) and ShowGroups 2.0 support.
17508 * ListViewItem.cs: Add ListViewgroup (Group), ListViewGroups constructors and
17509 stub for ImageKey 2.0 support.
17511 2006-12-14 Mike Kestner <mkestner@novell.com>
17513 * ListView.cs: add text padding to the autocalculation for columns
17514 of width -2. Fixes #80207.
17516 2006-12-14 Mike Kestner <mkestner@novell.com>
17518 * ListView.cs: add some index guarding for partial row navigation
17519 logic. Fixes #80250.
17521 2006-12-14 Mike Kestner <mkestner@novell.com>
17523 * ListView.cs: throw ArgumentExceptions when parented ListViewItems
17524 are added or inserted to the collection. Fixes #81099.
17526 2006-12-13 Everaldo Canuto <everaldo@simios.org>
17528 * MenuAPI.cs: Closes menu when right click out side of popup
17529 it fix problem in ContextMenu and MainMenu. Fixes #80252.
17531 2006-12-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
17533 * ListViewItem.cs: Fix dumb error.
17535 * ListView.cs: Add Find and ContainsKey methods in
17536 ListViewItemCollection, and also return true for IsReadOnly
17537 and IsFixedSize (changes for 2.0).
17539 2006-12-13 Gert Driesen <drieseng@users.sourceforge.net>
17541 * Control.cs: Allow Region to be set to null.
17543 2006-12-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
17545 * MdiWindowManager.cs: Remove unused (commented out) code.
17546 * Form.cs: When the MdiChild is maximized, the form needs
17547 WM_NCMOUSELEAVE, so request it.
17548 * InternalWindowManager.cs:
17549 - Added tooltips to control buttons.
17550 - Removed duplicated control button handling code.
17551 - Removed unused (commented out) code.
17553 2006-12-12 Everaldo Canuto <everaldo@simios.org>
17555 * MenuAPI.cs: Set cursor to default in popup menus, a XplatUI.SetCursor
17556 was used because we must set cursor without trigger ChangeCursor event
17557 and without change Cursor control property. Fixes #79963.
17559 2006-12-12 Andreia Gaita <avidigal@novell.com>
17561 * Control.cs: Check if Region setter value is null, and ignore
17563 2006-12-12 Jackson Harper <jackson@ximian.com>
17565 * TextControl.cs: We were almost always drawing one more line then
17566 needed, since the GetLineByPixel will return the last line found
17567 at that pixel. In most cases though, we were invalidating up to
17568 the junction between two lines.
17569 - Improve debug code.
17571 2006-12-12 Chris Toshok <toshok@ximian.com>
17573 * XplatUI.cs: add static DrawReversibleFrame, DrawReversibleLine,
17574 and FillReversibleRectangle.
17576 * XplatUIDriver.cs: add abstract DrawReversibleFrame, DrawReversibleLine,
17577 and FillReversibleRectangle.
17579 * XplatUIWin32.cs: add stubs which do nothing for
17580 DrawReversibleFrame, DrawReversibleLine, and
17581 FillReversibleRectangle.
17583 * XplatUIOSX.cs: add stubs which raise NIE for
17584 DrawReversibleFrame, DrawReversibleLine, and
17585 FillReversibleRectangle.
17587 * XplatUIX11.cs: add working implementation for
17588 DrawReversibleFrame, DrawReversibleLine, and
17589 FillReversibleRectangle.
17591 * ControlPaint.cs: implement DrawReversibleFrame,
17592 DrawReversibleLine, and FillReversibleRectangle, by calling into
17593 the appropriate XplatUI method.
17595 2006-12-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
17597 * Form.cs: Make MdiClient have the focus even if it's
17598 not selectable, since it should receive WM_KEY* and WM_MOUSE
17599 messages. Fixes #79907.
17601 2006-12-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
17603 * Hwnd.cs: Save the CreateParams.ExStyle so that it can be
17604 queried after the window is created.
17606 * XplatUIX11.cs: Added SendParentNotify to implement
17607 WM_PARENTNOTIFY logic. Fixes #79965.
17609 * Control.cs: Added MakeParam.
17611 2006-12-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
17613 * MdiClient.cs: Resume Layout before setting window
17614 states (fixes #80201).
17616 2006-12-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
17618 * MenuAPI.cs: Deselect a menu item after performing
17619 the click (fixes #80197).
17621 2006-12-11 Jackson Harper <jackson@ximian.com>
17623 * TextBoxBase.cs: We need to cap this value, since Maximum -
17624 ViewPortHeight can be less than zero.
17625 - Only do selection with the left mouse button.
17626 * TextBox.cs: Don't tell the world that we have a context menu.
17627 * Control.cs: New method so that we can control whether or not the
17628 context menu is visible outside MWF.
17630 2006-12-11 Everaldo Canuto <everaldo@simios.org>
17632 * ToolBarButton.cs: Fix text positon.
17634 2006-12-11 Miguel de Icaza <miguel@novell.com>
17636 * ProgressBar.cs (MarqueeAnimationSpeed): Add stub.
17638 * Control.cs (DoubleBuffered): Add implementation.
17640 * Application.cs (OpenForms): Add.
17642 2006-12-11 Jonathan Pobst <monkey@jpobst.com>
17644 * Form.cs: Use opacity instead of Opactiy to determine if we need
17645 to set the WS_EX_LAYERED bit. [Fixes bug #80185]
17647 2006-12-11 Jonathan Pobst <monkey@jpobst.com>
17649 * Control.cs: Fix NRE if Control.Site was set to null.
17651 2006-12-11 Chris Toshok <toshok@ximian.com>
17653 * Control.cs: ControlCollection.Remove should return if the arg is
17654 null, and ControlCollection.SetChildIndex should raise a ANE.
17656 2006-12-11 Gert Driesen <drieseng@users.sourceforge.net>
17658 * Control.cs: Verify value set for Dock property. Code formatting
17661 2006-12-11 Jackson Harper <jackson@ximian.com>
17663 * TextControl.cs: Draw the caret and the selection when a flag is
17665 * TextBoxBase.cs: We want to draw the caret and the selection for
17666 TextBox but not for TextBoxBase.
17667 - If the window is resized and scrolling is no longer needed (the
17668 whole doc is visible) set the scroll position to zero.
17669 - The default SelectWord (the one TextBox uses) should move the
17670 caret to the end of the word.
17671 - SelectAll moves the caret to the end of the selection.
17672 * TextBox.cs: We don't selectall on focus, we just do it when the
17673 control is created.
17675 2006-12-11 Mike Kestner <mkestner@novell.com>
17677 * ComboBox.cs: stub in a 2.0 override for ProcessKeyEventArgs.
17679 2006-12-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
17681 * ListView.cs: Add Insert, IndexOfKey, RemoveByKey and indexer
17683 * ListViewItem.cs: Add Name 2.0 property.
17685 2006-12-11 Andreia Gaita <avidigal@novell.com>
17687 * TabControl.cs: Set visibility on selected or default tab
17688 when tabcontrol handle is created, so that it's contents
17689 actually show up (duh). Fixes #80193
17690 Don't redraw the control if there is no handle created, as
17691 the selected index might be completely invalid. Added some tests
17694 2006-12-11 Everaldo Canuto <everaldo@simios.org>
17696 * ToolBar.cs: Uses maximun width and height of all buttons as
17697 button rectangle when ButtonSize specified, it looks strange but
17698 is what happens in Win32. Fixes #80189.
17700 2006-12-11 Jackson Harper <jackson@ximian.com>
17702 * TextControl.cs: Need to track undo levels ourself, since
17703 compound actions will mess them up.
17705 2006-12-10 Andreia Gaita <avidigal@novell.com>
17707 * TabControl.cs: Raise SelectedIndexChanged for 1.1 if the
17708 SelectedIndex value is changed (even if it's not valid).
17709 Reset SelectedIndex to 0 when the handle is created and if
17710 the current index is invalid.
17711 Fixes SelectdeIndex unit tests and #80128
17713 2006-12-08 Chris Toshok <toshok@ximian.com>
17715 * DataGrid.cs (set_CurrentCell): because EnsureCellVisibility
17716 calls EndEdit, it needs to be called before we set current_cell to
17717 its new value. Otherwise, we end up committing the value in the
17718 textbox to the new cell as well. Fixes bug #80160.
17720 2006-12-08 Chris Toshok <toshok@ximian.com>
17722 * Form.cs (set_CancelButton): if the button's DialogResult is
17723 None, set it to Cancel. Fixes bug 80180.
17725 2006-12-08 Jackson Harper <jackson@ximian.com>
17727 * TextBoxBase.cs: Ugh, ClientSize can be 0,0 sometimes, so we need
17728 to watch ourselves when setting the canvas size and setting the
17731 2006-12-08 Chris Toshok <toshok@ximian.com>
17733 * DataGrid.cs: comment out the two MakeTransparent calls for the
17734 time being so people using trunk (and not 1.2.2) on windows can
17735 actually use the datagrid. This deals with bug #80151.
17737 2006-12-08 Jonathan Pobst <monkey@jpobst.com>
17739 * ThemeWin32Classic.cs: Change ButtonBase_DrawImage to use the
17740 Graphics.DrawImage (image, int, int, int, int) overload instead
17741 of Graphics.DrawImage (image, int, int). GDI+ can't figure out
17742 the dpi difference and was blurring images it drew.
17745 2006-12-08 Chris Toshok <toshok@ximian.com>
17747 * ThemeWin32Classic.cs (DataGridPaintRows): handle case where
17748 rowcnt is 0 (such as with an empty datasource), and make sure we
17749 initialize not_usedarea.Y to cells.Y, so we don't draw over the
17750 other areas (caption, parent row, etc, etc). Fixes bug #80095.
17752 2006-12-08 Chris Toshok <toshok@ximian.com>
17754 * DataGridColumnStyle.cs (SetDataGrid): don't try to access a null
17757 2006-12-08 Chris Toshok <toshok@ximian.com>
17759 [ Fixes bug #80167 ]
17761 * ThemeWin32Classic.cs: don't draw the image if the button's flat
17762 style is FlatStyle.System.
17764 * ButtonBase, ThemeClearlooks.cs, ThemeGtk.cs, ThemeNice.cs: make
17765 ButtonBase.flat_style private, and switch uses of it to the public
17768 2006-12-08 Chris Toshok <toshok@ximian.com>
17770 [ Fixes bug #80121 ]
17772 * ThemeWin32Classic.cs: center the caption text in the datagrid
17775 * DataGrid.cs: lessen the amount we add to the caption height from
17776 6 to 2. 6 was making it huge.
17778 2006-12-08 Andreia Gaita <avidigal@novell.com>
17780 * UpDownBase: Handle MouseWheel call directly instead of capturing
17781 the inner textbox's OnMouseWheel. Fixes #80166
17783 2006-12-08 Jackson Harper <jackson@ximian.com>
17785 * TextControl.cs: We need to invalidate the textbox when we empty
17786 it (how had this not been discovered before?)
17788 2006-12-08 Jackson Harper <jackson@ximian.com>
17790 * TextBoxBase.cs: Reworked the mouse down code so I could get it
17791 to behave like MS, we now ignore the eventargs.Click and just
17792 track state ourself, which we were already doing anyways.
17793 - Constrain the double click handler to the double click size.
17795 2006-12-08 Chris Toshok <toshok@ximian.com>
17797 * DataGrid.cs: the mousewheel code shouldn't try to scroll in a
17798 direction if that scrollbar isn't shown. fixes bug #80158.
17800 2006-12-08 Andreia Gaita <avidigal@novell.com>
17802 * NumericUpDown.cs: Update value on getter. Fixes #79950
17804 2006-12-08 Chris Toshok <toshok@ximian.com>
17806 * MenuItem.cs: add back in the event cloning code. I didn't know
17807 how to do it in the face of the EventHandlerList work i'd done
17808 last week. Fixes bug #80183.
17810 2006-12-08 Jonathan Pobst <monkey@jpobst.com>
17812 * Control.cs: Add an invalidate to the BackgroundImage setter.
17815 2006-12-07 Jonathan Pobst <monkey@jpobst.com>
17817 * ToolStrip*: Add some small properties reported by MoMA, fix event
17818 firing and default properties based off of unit tests, and add some
17819 attributes based off of the class status page.
17821 2006-12-07 Jackson Harper <jackson@ximian.com>
17823 * TextBoxBase.cs: Take HideSelection into account when determining
17824 whether or not to show the selection.
17825 * RichTextBox.cs: After inserting the RTF into the document move
17826 the cursor to the beginning of the document.
17828 2006-12-07 Jonathan Pobst <monkey@jpobst.com>
17830 * Control.cs: Remove static ArrayList "controls" which maintained
17831 a reference to every control created.
17832 * Application.cs: Create a static FormCollection to maintain a reference
17833 to every form created. Use it in places that formerly enumerated through
17834 the controls one looking for forms.
17835 * Form.cs: Add and remove self from above FormCollection.
17837 2006-12-07 Alexander Olk <alex.olk@googlemail.com>
17839 * MimeIcon.cs: gdk_pixbuf_save_to_buffer is part of libgdk-pixbuf,
17840 not libgdk (though it makes me wonder why I didn't have any
17843 2006-12-07 Chris Toshok <toshok@ximian.com>
17845 [ you had to know this was coming after that last commit...]
17847 * XplatUIX11.cs: implement the 3 Offscreen functions in terms of
17848 XPixmaps (CreateOffscreenDrawable maps to XCreatePixmap,
17849 DestroyOffscreenDrawable to FreePixmap, and BlitFromOffscreen to
17852 2006-12-07 Chris Toshok <toshok@ximian.com>
17854 * XplatUI.cs: add 3 calls (CreateOffscreenDrawable,
17855 DestroyOffscreenDrawable, and BlitFromOffscreen) that encompass
17856 all the behavior we need for double buffering.
17858 * XplatUIDriver.cs: implement the 3 double buffer methods using a
17859 client side Bitmap, just like the old Control-based double buffer
17860 code did. The methods are virtual, so each XplatUI driver
17861 subclass can replace the implementation to use a faster, platform
17864 * Control.cs: make use of the 3 Offscreen XplatUI calls in the
17865 double buffer code, and clean things up a bit in the process.
17867 2006-12-06 Chris Toshok <toshok@ximian.com>
17869 * Control.cs: reindent WndProc.
17871 2006-12-06 Chris Toshok <toshok@ximian.com>
17873 [ I wanna be like BenM when I grow up ]
17875 * Hwnd.cs: create a single static Graphics object on the static
17876 Bitmap we create. use this for our text measurements.
17878 * Control.cs (DeviceContext): stop using the backbuffer's dc_mem.
17879 This was causing us to allocate a backbuffer for every control,
17880 even when it wasn't flagged as double buffered. Instead use the
17881 single graphics instance. This might have implications for
17882 multithreaded applications. If we run into problems we can switch
17883 to creating 1 Graphics per control, on the static Hwnd bitmap.
17885 this change nets us a 7M savings in private dirty mappings when
17886 running FormsTest.exe.
17888 2006-12-06 Chris Toshok <toshok@ximian.com>
17890 * ListView.cs: the BackgroundImage override is just to set
17891 attributes. chain up to base.BackgroundImage.
17893 * RichTextBox.cs: same.
17895 * ToolBar.cs: same, but we need to also redraw the toolbar when it
17896 changes, so instead a handler for BackgroundImageChanged.
17898 * Control.cs: make background_image private.
17900 2006-12-06 Chris Toshok <toshok@ximian.com>
17902 * ScrollBar.cs: change the assignment of cursor to Cursor. not
17903 sure we even need this assignment, but roll with it for now.
17905 * Control.cs: make the cursor field private.
17907 2006-12-06 Chris Toshok <toshok@ximian.com>
17909 * Form.cs: we don't need to explicitly set ImeMode to
17910 ImeMode.NoControl - that's a natural fallout of Control.ImeMode's
17911 behavior in the face of ImeMode.Inherit.
17913 * ButtonBase.cs: change DefaultImeMode to ImeMode.Disable, and
17914 change the ctor's assignment to use ImeMode instead of ime_mode.
17916 * Control.cs (get_ImeMode): don't assume DefaultImeMode ==
17917 ImeModeInherit. Only check for the parent's imemode (and return
17918 NoControl if there is no parent) if ime_Mode == ImeMode.Inherit.
17919 This fixes the button unit test, which sets both ImeMode and
17920 DefaultImeMode to ImeMode.Disable.
17922 also make the ime_mode field private.
17924 2006-12-06 Chris Toshok <toshok@ximian.com>
17926 * Control.cs: make control_style private.
17928 * TextBoxBase.cs: fix the HandleClick override. it was explicitly
17929 setting the styles to true, then setting them to false instead of
17930 reverting to their previous values.
17932 also, call SetStyle on the scrollbars instead of using
17933 control_style directly.
17935 2006-12-06 Jonathan Pobst <monkey@jpobst.com>
17937 * FormCollection.cs: Implement. [2.0]
17939 2006-12-06 Chris Toshok <toshok@ximian.com>
17941 * Control.cs: make tab_stop private.
17943 * Label.cs: set TabStop, not tab_stop. reformat some event
17944 add/remove methods to make them more compact.
17946 2006-12-06 Chris Toshok <toshok@ximian.com>
17948 * RadioButton.cs: fix TabStop handling.
17950 2006-12-06 Chris Toshok <toshok@ximian.com>
17952 * TextBox.cs: remove the explicit assignments to has_focus.
17955 * ButtonBase.cs: remove the assignment to has_focus. Control will
17958 2006-12-06 Chris Toshok <toshok@ximian.com>
17960 * ButtonBase.cs: remove all uses of is_enabled from this code.
17961 it's always true when any of the code containing the checks is
17964 2006-12-06 Chris Toshok <toshok@ximian.com>
17966 * ImageList.cs: reinstate the ShouldSerialize*/Reset* methods,
17967 with different semantics (some are present in both 1.1 and 2.0
17968 profiles) so that we match MS's behavior in our unit tests.
17970 2006-12-06 Jackson Harper <jackson@ximian.com>
17972 * TextControl.cs: Make this operation undoable.
17973 * TextBoxBase.cs: Factor the border width into the preferred
17975 - implement Modified as per the spec.
17977 2006-12-06 Chris Toshok <toshok@ximian.com>
17979 * Timer.cs, Control.cs, Menu.cs: make control_tag private.
17981 2006-12-06 Chris Toshok <toshok@ximian.com>
17983 * Control.cs: make right_to_left and context_menu fields private.
17985 2006-12-06 Chris Toshok <toshok@ximian.com>
17987 * AccessibleObject.cs, Control.cs, XplatUIX11GTK.cs,
17988 XplatUIX11.cs, Form.cs, RadioButton.cs, ScrollableControl.cs: make
17989 Control.child_controls private. switch all uses over to
17992 2006-12-06 Chris Toshok <toshok@ximian.com>
17994 * System.Windows.Forms/GroupBox.cs,
17995 System.Windows.Forms/AccessibleObject.cs,
17996 System.Windows.Forms/ErrorProvider.cs,
17997 System.Windows.Forms/Control.cs,
17998 System.Windows.Forms/UpDownBase.cs,
17999 System.Windows.Forms/ScrollBar.cs,
18000 System.Windows.Forms/DateTimePicker.cs,
18001 System.Windows.Forms/Form.cs, System.Windows.Forms/Label.cs,
18002 System.Windows.Forms/ToolTip.cs,
18003 System.Windows.Forms/RadioButton.cs,
18004 System.Windows.Forms/LinkLabel.cs,
18005 System.Windows.Forms/Splitter.cs,
18006 System.Windows.Forms/TextBoxBase.cs,
18007 System.Windows.Forms/ToolStripTextBox.cs,
18008 System.Windows.Forms/ContainerControl.cs,
18009 System.Windows.Forms/ThemeWin32Classic.cs,
18010 System.Windows.Forms/SizeGrip.cs,
18011 System.Windows.Forms/ToolStripDropDown.cs,
18012 System.Windows.Forms/ScrollableControl.cs: Make Control.parent
18013 private. switch all uses over to Control.Parent.
18015 2006-12-06 Chris Toshok <toshok@ximian.com>
18017 * RichTextBox.cs: don't assign to has_focus in GotFocus/LostFocus.
18018 Control does this before calling emitting these events.
18020 * TabControl.cs: same.
18022 * ThemeWin32Classic.cs: use Control.ClientRectangle instead of
18023 Control.client_rect.
18025 * ButtonBase.cs: use the ClientSize property instead of the
18028 * ScrollableControl.cs: same.
18030 * Control.cs: another pass at making properties private. also,
18031 move the initialization of tab_stop to the ctor.
18033 2006-12-05 Andreia Gaita <avidigal@novell.com>
18035 * TabControl.cs: Let the selected index be set freely if the
18036 control handle is not yet created.
18038 2006-12-05 Jonathan Pobst <monkey@jpobst.com>
18040 * Control.cs: Revert dist_top, dist_right, and dist_bottom to
18041 internal until I can rewrite DefaultLayout.
18042 * ToolStrip.cs: Fix build error and some general cleaning.
18043 * ToolStripControlHost.cs, SplitterPanel.cs, DataGridView.cs:
18044 Fix build errors caused by making some of Control's fields private.
18046 2006-12-05 Jackson Harper <jackson@ximian.com>
18048 * TextControl.cs: Redo Insert a little so that it use IndexOf
18049 instead of Split, this prevents it from messing up on things like
18050 \n\n\n. Also more effecient since the split array doesn't need to
18052 * TextBoxBase.cs: AppendText doesnt handle multiline and non
18053 multiline text differently, this is the first of many fixes that
18054 will make multiline/non-multiline the same thing as far as the
18055 TextBoxBase is concerned.
18056 - Don't split the text and insert lines, this can lose some line
18057 endings (like is the last line a soft or hard break). Instead use
18059 - Fix an off by one when combining all the lines in the Text
18061 - Remove separate multiline handling from the Text getter/setter.
18063 2006-12-05 Chris Toshok <toshok@ximian.com>
18065 * ButtonBase.cs: a few changes:
18067 - don't reinitialize internal Control fields in the ctor when they
18068 have the same values as Control sets them.
18070 - don't set has_focus in OnGotFocus/OnLostFocus. Control does
18071 this before calling those methods.
18073 - we don't need to call Refresh for anything. use Invalidate
18076 - OnEnabledChanged doesn't need to redraw at all - Control.cs
18077 calls Refresh in its OnEnabledChanged.
18079 - several of the events we were registered for in the ctor to
18080 redraw ourselves already include calls to Invalidate in the
18081 property setters that raise the events. remove the extra
18084 - reformat a switch statement that was 83274658 columns wide.
18086 2006-12-05 Mike Kestner <mkestner@novell.com>
18088 * ComboBox.cs: fix a unit test regression from a TextBox
18089 SelectionLength return of -1 when there's no selection.
18091 2006-12-05 Chris Toshok <toshok@ximian.com>
18093 * Control.cs, Button.cs, ThemeGtk.cs, Form.cs, ListView.cs,
18094 ThemeWin32Classic.cs, SizeGrip.cs, ToolBar.cs: first pass at
18095 cleaning up some of the internal Control fields being used by
18098 2006-12-05 Mike Kestner <mkestner@novell.com>
18100 * ComboBox.cs: fix some Simple mode regressions. Set Visible on the
18101 listbox after AddImplicit calls since it defaults to hidden. Add a
18102 hack to preserve requested heights across DropDownStyle changes.
18104 2006-12-05 Jonathan Pobst <monkey@jpobst.com>
18106 * PropertyGrid.cs: Hide FindFirstItem method from public API.
18108 2006-12-05 Chris Toshok <toshok@ximian.com>
18110 * DataGridView.cs: fix compiler warnings.
18112 * PrintControllerWithStatusDialog.cs: same.
18114 * ToolBar.cs: same.
18116 * FolderBrowserDialog.cs: same.
18118 * Splitter.cs: same.
18120 * DataGridViewComboBoxCell.cs: same.
18122 * XplatUIWin32.cs: same.
18124 * PictureBox.cs: same.
18126 * Win32DnD.cs: same.
18128 * PageSetupDialog.cs: same.
18130 * FileDialog.cs: same.
18132 * PrintDialog.cs: same.
18134 * DataGridTextBoxColumn.cs: same.
18136 * DrawTreeNodeEventArgs.cs: same (and fix corcompare)
18138 2006-12-05 Chris Toshok <toshok@ximian.com>
18140 * TextBox.cs, CheckedListBox.cs, MonthCalendar.cs, Menu.cs,
18141 MainMenu.cs, ListView.cs, LabelEditTextBox.cs, ToolBar.cs: more
18142 System.ComponentModel.EventHandlerList work.
18144 2006-12-05 Jonathan Chambers <joncham@gmail.com>
18146 * DrawTreeNodeEventArgs.cs: Added.
18148 2006-12-05 Rolf Bjarne Kvinge <RKvinge@novell.com>
18150 * InternalWindowManager.cs: Remove an unused field.
18152 2006-12-05 Rolf Bjarne Kvinge <RKvinge@novell.com>
18154 * InternalWindowManager.cs:
18155 - Save the point where the title bar is clicked.
18157 * MdiWindowManager.cs:
18158 - Only allow moving of the window as long as the
18159 clicked point on the title bar does not get out of
18160 MdiClient's rectangle. Fixes #79982.
18163 - Added Horizontal/VerticalScrollbarVisible.
18164 - Simplified the scrollbar sizing algorithm.
18165 - Cache the difference in scrolled value in
18166 H/VBarValueChanged and move the calculation out
18169 2006-12-05 Rolf Bjarne Kvinge <RKvinge@novell.com>
18171 * Control.cs: Make the Console.WriteLine in WndProc
18174 2006-12-05 Chris Toshok <toshok@ximian.com>
18176 * ToolStripManager.cs, ToolStripButton.cs,
18177 ToolStripContentPanel.cs, ToolStripComboBox.cs, ToolStrip.cs,
18178 ToolStripMenuItem.cs, ToolStripItem.cs, ToolStripControlHost.cs,
18179 ToolStripSplitButton.cs, ToolStripSeparator.cs,
18180 ToolStripRenderer.cs, ToolStripDropDownItem.cs,
18181 ToolStripProgressBar.cs, ToolStripContainer.cs,
18182 ToolStripTextBox.cs, ToolStripPanel.cs, ToolStripDropDown.cs: move
18183 to using System.ComponentModel.EventHandlerList.
18185 2006-12-04 Chris Toshok <toshok@ximian.com>
18187 * LinkLabel.cs: fix up compiler warnings.
18189 * TableLayoutSettings.cs: same.
18191 * TreeView.cs: same.
18193 * ToolBar.cs: same.
18195 * TabControl.cs: same.
18197 * RichTextBox.cs: same.
18199 * ListViewItem.cs: same.
18201 * PropertyGrid.cs: same.
18203 * DataGridViewRowPostPaintEventArgs.cs: corcompare fix.
18207 * TextRenderer.cs: fix up compiler warnings.
18211 * Form.cs: corcompare fixes.
18213 * PictureBox.cs: fix up compiler warnings.
18215 * ImageListStreamer.cs: same.
18217 * TrackBar.cs: corcompare fix.
18219 * Control.cs: fix up compiler warnings.
18221 * SplitterPanel.cs: same.
18223 * NumericTextBox.cs: same.
18225 * ImageList.cs: same.
18227 * StatusStrip.cs: same.
18229 * ProgressBar.cs: corcompare fix.
18231 * ToolStripButton.cs: fix up compiler warnings.
18233 * ToolStripStatusLabel.cs: same.
18235 * ToolStripSplitButton.cs: same.
18237 * ToolStripSeparator.cs: same.
18239 * ToolStripProgressBar.cs: same.
18241 * ToolStripDropDownMenu.cs: same
18243 * ToolStripDropDown.cs: same.
18245 * ToolStripDropDownButton.cs: same.
18247 * ToolStrip.cs: same.
18249 * ToolStripControlHost.cs: same.
18251 * ToolStripContentPanel.cs: same.
18253 * ToolStripDropDown.cs: same.
18255 * ToolStripContainer.cs: same.
18257 * ToolStripPanel.cs: same, and add "new" where we need it to work
18258 with the new ArrangedElementCollection.
18260 * ToolStripItemCollection.cs: add "new" where we need it to work
18261 with the new ArrangedElementCollection.
18263 2006-12-04 Andreia Gaita <avidigal@novell.com>
18265 * TabControl.cs: Fix default tab selection to after TabControl
18266 gets focus and not before. Fixes #80128
18268 2006-12-04 Chris Toshok <toshok@ximian.com>
18270 * DataGridTableStyle.cs: remove the gross calling of
18271 datagrid.Refresh from here. It's a broken idea and it doesn't
18274 * DataGrid.cs: instead, just register/unregister from the
18275 DataGridTableStyle events in CurrentTableStyle. we play it
18276 conservatively and EndEdit + CalcAreasAndInvalidate on any event,
18277 even though some would most likely not require it. Fixes bug
18278 #80115 (and one portion of #80117 as a side effect).
18280 2006-12-04 Chris Toshok <toshok@ximian.com>
18282 * DataGrid.cs (set_CaptionVisible): EndEdit before doing the work
18283 so the textbox (if any) goes away. Fixes bug #80117.
18285 2006-12-04 Chris Toshok <toshok@ximian.com>
18287 * DataGridColumnStyle.cs: set the column's readonly property
18288 initially based on the property descriptor's IsReadOnly. Fixes
18291 2006-12-04 Chris Toshok <toshok@ximian.com>
18293 * ComboBox.cs: wrap the dropdown style changing work in
18294 SuspendLayout/ResumeLayout. Fixes bug #79968.
18296 2006-12-04 Jackson Harper <jackson@ximian.com>
18298 * TextBoxBase.cs: Fix off by one, since these are one-based.
18299 * TextBox.cs: Select all the text when we get focus. The TextBox
18300 does this but the RTB does not.
18302 2006-12-04 Chris Toshok <toshok@ximian.com>
18304 * DataGridTextBoxColumn.cs: remove some spew.
18306 * DataGridColumnStyle.cs (SetColumnValueAtRow): this seems right
18307 but some part of me is saying "it shouldn't be here.." At any
18308 rate, it fixes bug #80046. Call IEditableObject.EndEdit after
18311 2006-12-04 Chris Toshok <toshok@ximian.com>
18313 * DataGridColumnStyle.cs (SetDataGrid): call CheckValidDataSource
18314 to reassign the propertydescriptor.
18316 2006-12-04 Jackson Harper <jackson@ximian.com>
18319 * TextControl.cs: Remove some unused variables. Maybe this will
18320 patch things up between mike and I.
18321 - don't split lines less then one char wide, if the viewport is
18322 that small text won't be visible anyways.
18324 2006-12-04 Jackson Harper <jackson@ximian.com>
18326 * TextBoxBase.cs: Default selection length is -1, need to do some
18327 more testing on windows to see when this is used for the property.
18328 - Redid the Lines [] property to that we properly remove soft line
18330 - added support for preserving carriage returns
18331 - CanUndo is not a variable like 'is undo enabled' it just returns
18332 true if there is undo operations available.
18333 - AppendText doesn't need to grab the last tag itself anymore,
18334 this happens automatically when we move the cursor.
18335 * TextControl.cs: Add CompoundActions to the undo class. This
18336 allows combining the other operations into one big option. ie a
18337 paste will combine { delete old, insert new, move cursor }
18338 - Add InsertString undo operation
18339 - New method for deleting multiline text
18340 - Add carriage returns to lines. So we can preserve carriage
18341 returns when text is 'roundtripped'
18343 2006-12-04 Chris Toshok <toshok@ximian.com>
18345 * DataGrid.cs (CalcCellsArea): cells_area.Width/Height are at a
18346 minimum 0. Fixes the scrollbar exception in bug #80136.
18348 2006-12-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
18351 * MdiWindowManager: Removed unused fields and methods.
18353 2006-12-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
18355 * StatusBar.cs: Update all panels when a AutoSize=Contents
18356 panel needs updating.
18358 * StatusBarPanel.cs: Remove twidth and only use initialize.
18361 2006-12-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
18363 * Form.cs: When a form's MdiParent is set add it directly
18364 on top of the z-order in stead of relying on MdiClient's
18365 ActivateChild to do it. Fixes #80135.
18368 - Remove original_order, mdi_child_list is already doing
18370 - Create mdi_child_list on construction in
18371 stead of first use (avoids a few null checks).
18373 * MenuItem.cs: Use an already existing list of mdi children
18374 to get the correct order of children and remove the other
18377 2006-12-04 Chris Toshok <toshok@ximian.com>
18379 * PropertyGridView.cs: cached_splitter_location is only used in
18380 !DOUBLEBUFFER code.
18382 * PropertyGrid.cs: implement the ComComponentNameChanged event
18383 using Events, hoping that would fix the warning. Looks like a
18384 compiler bug instead (#80144).
18386 * PropertyManager.cs: remove unused method.
18388 2006-11-04 Everaldo Canuto <everaldo@simios.org>
18390 * ThemeWin32Classic.cs: Dont draw arrow when menuitem on menubar,
18391 include parentesis to fix expression evaluation. Fixes #79634.
18393 2006-11-02 Everaldo Canuto <everaldo@simios.org>
18396 - Changes to fix behavior in Menu control, some reported in #80097
18397 and other detected during behavior refactory like a select event
18399 - Remove unneded "if's" conditions.
18400 - Created an internal to flag when popup is active in control, we need
18401 it because in .NET you can have menu active but without popup active
18402 when you active menu using popup without visible items.
18403 - Mimic win32 behavior for Select and Popup events.
18404 - Dont open popup menu when you dont have visible subitems.
18405 - Do nothing when click on disabled menu item.
18406 - Some small changes to follow the coding style guidelines.
18407 - Unselect menu only when another control gives focus. Fixes #80097.
18408 - Remove unused code.
18410 * MenuItem.cs: internal VisibleItems method to check if menu
18411 theres visible subitems, it will be usefull to fix some
18412 behavior in Menu control.
18414 2006-11-01 Everaldo Canuto <everaldo@simios.org>
18416 * Timer.cs: Tag property for 2.0 profile.
18418 2006-12-01 Chris Toshok <toshok@ximian.com>
18420 [ after removing all warning suppressions, this cleans up over 100 warnings. ]
18422 * Win32DnD.cs: comment out some unused fields.
18424 * XplatUIWin32.cs: comment out some unused pinvokes, and remove
18425 some unused properties/methods.
18427 * XplatUIX11.cs: fix MousePosition so we override the base class's
18428 property instead of conflicting with it.
18430 * PictureBox.cs: comment out some unused fields
18432 * OSXStructs.cs: make some struct fields public.
18434 * XplatUIOSX.cs: comment out some unused pinvokes, and fix
18435 MousePosition so we override the base class's property instead of
18436 conflicting with it.
18438 * X11Dnd.cs: comment out some unused fields
18440 * X11DesktopColors.cs: fix some struct field visibility to quiet
18443 * X11Dnd.cs: remove some debug code.
18445 * ThemeClearlooks.cs: comment out unused field.
18447 * ThemeNice.cs: mark some methods as overriding ThemeWin32Classic as needed.
18449 * ThemeGtk.cs: comment out some unused pinvokes.
18451 * Timer.cs: remove some unused fields.
18453 * ThemeClearlooks.cs: comment out unused field.
18455 * UpDownBase.cs: comment out unused field.
18457 * DataObject.cs: comment out unused field.
18459 * DataGridBoolColumn.cs: reomve unused field.
18461 * DataGrid.cs: remove unused field.
18463 * Cursor.cs: remove old ToBitmap code.
18465 * ControlPaint.cs: remove unused method.
18467 * ScrollBar.cs: remove unused fields.
18469 * ComboBox.cs: remove unused field, and chain up to
18470 AccessibleObject ctor.
18472 * ListBox.cs: remove unused field.
18474 * ButtonBase.cs: wrap a couple fields in NET_2_0.
18476 * GridEntry.cs: remove unused fields.
18478 * Binding.cs: remove unused fields.
18480 * AxHost.cs: remove unused method.
18482 * ContainerControl.cs: remove unused field.
18484 * ScrollableControl.cs: remove unused fields.
18486 2006-12-01 Chris Toshok <toshok@ximian.com>
18488 * XplatUI.cs, XplatUIWin32.cs, XplatUIGTK.cs: nuke
18489 the Where/WhereString stuff. it's easy enough to CWL
18490 Environment.StackTrace.
18492 * XplatUIX11.cs: same, but also fix up a lot of mcs warnings about
18493 unused private fields.
18495 2006-12-01 Jackson Harper <jackson@ximian.com>
18497 * TextControl.cs: Do not update the view while inserting multiline
18498 text. If we update the view we might wrap lines, before entering
18499 the new lines, which causes the new line insertion calculations to
18500 be totally fubared.
18501 - Remove an old TODO
18502 - Make debug output a little nicer
18504 2006-12-01 Chris Toshok <toshok@ximian.com>
18506 * ToolBar.cs: revert the ImeMode fix here and add an XXX comment.
18508 2006-12-01 Chris Toshok <toshok@ximian.com>
18510 [ fix the majority of the CS0108 warnings we've been suppressing ]
18512 * TreeView.cs: mark BackgroundImageChanged as 'new'.
18514 * ToolBar.cs: ImeMode just passes stuff to Control. Rename Layout
18515 to "LayoutToolBar" to quiet mcs.
18517 * TabControl.cs: mark our ControlCollection class as 'new'.
18519 * TextBoxBase.cs: mark some events as 'new'.
18521 * Splitter.cs: TabStop is 'new'.
18523 * ControlBindingsCollection.cs: mark a few methods as new since
18524 they change the visibility from protected to public.
18526 * RadioButton.cs: DoubleClick -> base class, and remove unused
18529 * MonthCalendar.cs: ImeMode property -> base class, and mark many
18532 * NumericUpDown.cs: TextChanged -> base class.
18534 * CheckedListBox.cs: mark our ObjectCollection class as new to
18537 * FolderBrowserDialog.cs: make HelpRequest event new and have it
18538 muck with the base class.
18540 * StatusBar.cs: fix some mcs warnings about Update being the same
18541 name as a base class method.
18543 * RichTextBox.cs: mark some events as new, and make them do things
18544 to the base class impl.
18546 * UserControl.cs: mark TextChanged as new, and have it manipulate
18549 * UpDownBase.cs: mark some things new.
18551 * CheckBox.cs: mark DoubleClick "new", and add some text about
18552 what we need to look at.
18554 * Panel.cs: make the events "new", and manipulate the base
18555 version. these are just here for attributes.
18557 * AccessibleObject.cs: make owner private.
18559 * Control.cs: deal with AccessibleObject.owner being private.
18560 cache our own copy if we need it.
18562 * Button.cs: add "new" to the DoubleClickEvent.
18564 * ListBox.cs: no need to track our own has_focus here. let
18565 Control.has_focus do it for us. Also some other work to clear up
18566 warnings about not overriding base class methods of the same name.
18568 * ComboBox.cs: clear up some warnings about not override base
18569 class methods of the same name.
18571 2006-12-01 Chris Toshok <toshok@ximian.com>
18573 * Form.cs: flag a few things as "new" to quiet some of the mcs
18578 * PrintPreviewDialog.cs: same.
18580 * DataGridView.cs: fix a ton of corcompare warnings. not all, but
18581 now DGV isn't so horrible on the class status page. also, move
18582 all events to using System.ComponentModel.EventHandlerList. my
18585 2006-12-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
18587 * MdiWindowManager.cs:
18588 - Set form to active mdi child if shown,
18589 and update the active mdi child to the next
18590 remaining child in the z-order if the form is hidden.
18593 - Track if the form has been visible and if its
18594 visibility is beeing changed, so that the MdiClient
18595 can properly decide the ActiveMdiChild. The MdiClient
18596 cannot track this since the form can change visibility
18597 before MdiClient is created.
18600 - Don't activate anything of the parent form is changing
18602 - Rework ActiveMdiChild to only return visible mdi
18603 children and take into account several other corner
18606 2006-12-01 Chris Toshok <toshok@ximian.com>
18608 * IBindableComponent.cs: new 2.0 interface.
18610 2006-12-01 Gert Driesen <drieseng@users.sourceforge.net>
18612 * DataGrid.cs: Font for caption area is bold by default.
18614 2006-12-01 Everaldo Canuto <everaldo@simios.org>
18616 * Menu.cs: Tag property for 2.0.
18618 2006-11-01 Everaldo Canuto <everaldo@simios.org>
18620 * ThemeWin32Classic.cs: Adjust menu separator drawing.
18622 2006-12-01 Chris Toshok <toshok@ximian.com>
18624 * TreeView.cs: doh, the Begin* events should be
18625 TreeViewCancelEventHandler.
18627 2006-12-01 Chris Toshok <toshok@ximian.com>
18629 * Form.cs: Form.ControlCollection already stores off the
18630 form_owner field. don't access the base class's internal "owner"
18633 * Control.cs: make all the fields in Control.ControlCollection
18634 private. there's no need for any internal fields here.
18636 2006-12-01 Chris Toshok <toshok@ximian.com>
18638 * DataGrid.cs: call SetDataSource instead of CalcGridAreas in
18639 OnHandleCreated. Fixes bug #80109.
18641 2006-12-01 Chris Toshok <toshok@ximian.com>
18643 * Button.cs, PropertyGridTextBox.cs, ComboBox.cs,
18644 SplitContainer.cs, Control.cs, StatusStrip.cs,
18645 DataGridTableStyle.cs, MenuItem.cs, DomainUpDown.cs, ImageList.cs,
18646 NumericTextBox.cs, NumericUpDown.cs, Panel.cs, CommonDialog.cs,
18647 DataGrid.cs, ScrollBar.cs, TrackBar.cs, PictureBox.cs,
18648 DateTimePicker.cs, StatusBar.cs, Form.cs, PrintPreviewDialog.cs,
18649 Label.cs, UserControl.cs, CheckBox.cs, RadioButton.cs,
18650 LinkLabel.cs, ListControl.cs, PropertyGrid.cs, Splitter.cs,
18651 MenuStrip.cs, FolderBrowserDialog.cs, NotifyIcon.cs,
18652 TextBoxBase.cs, ListView.cs, DataGridBoolColumn.cs,
18653 PrintPreviewControl.cs, RichTextBox.cs, ListBox.cs, TabControl.cs,
18654 DataGridColumnStyle.cs, ContextMenu.cs, TreeView.cs:
18656 do most of the work to convert our code over to use
18657 System.ComponentModel.Component.Events for
18658 adding/removing/dispatching events.
18661 2006-11-30 Jonathan Pobst <monkey@jpobst.com>
18663 * DataGridView.cs: Fix an ArgumentNullException reported
18664 twice today in IRC.
18666 2006-11-30 Mike Kestner <mkestner@novell.com>
18668 * ComboBox.cs: fix the scrollbar mouse event forwarding in the
18669 grabbed listbox. Fixes #80036 and #80101.
18671 2006-11-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
18673 * Message.cs: Changed ToString() to match MS.
18675 2006-11-30 Jackson Harper <jackson@ximian.com>
18677 * TextBoxBase.cs: You can still change the selected text on a read
18679 * TextControl.cs: Lower magic number for wrap calculations. This
18680 lets text get closer to the right (far) edge.
18682 2006-11-30 Jonathan Pobst <monkey@jpobst.com>
18684 * Control.cs: Tweak 2.0 layout properties.
18685 * Form.cs: Switch ToolStripMenuTracker hooks to ToolStripManager.
18686 * TextRenderer.cs: Add a new overload.
18687 * ToolStrip*: Huge amount of changes and new features.
18689 2006-11-30 Mike Kestner <mkestner@novell.com>
18691 * ComboBox.cs: fixes for LargeChange and Maximum to get the
18692 scroll range correct. Fixes #79994.
18694 2006-11-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
18696 * MdiWindowManager.cs: Update main form's text when
18697 a form is closed. (fixes #80038)
18699 2006-11-30 Everaldo Canuto <everaldo@simios.org>
18702 - Fix an regression in ButtonSize.
18703 - Get ImeMode default value change to "Disable".
18704 - Get ShowTooltips default value change to true, default value is
18705 "false" but after make a test in .NET we get "true" result as default.
18707 2006-11-29 Jonathan Pobst <monkey@jpobst.com>
18709 * ToolStripDropDown.cs: Fix for SupportsTransparency change.
18711 2006-11-29 Chris Toshok <toshok@ximian.com>
18713 * XplatUIWin32.cs (GetWindowTransparency): check return value of
18714 GetLayeredWindowAttributes. if it's 0, return 1.0, as
18715 SetWindowTransparency hasn't been called.
18717 2006-11-29 Chris Toshok <toshok@ximian.com>
18719 * Form.cs (set_TransparencyKey): only call SetWindowTransparency
18721 (set_AllowTransparency): reorder things a little so that the
18722 WS_EX_LAYERED style is removed properly.
18724 2006-11-29 Chris Toshok <toshok@ximian.com>
18726 [ totally cosmetic eye-candy feature, fixes bug #80089 ]
18728 * Form.cs: only call the XplatUI transparency method (get/set) if
18729 SupportsTransparency says it's supported. Otherwise fallback to
18730 doing nothing (in the set case) or returning the instance field we
18731 cache (in the get case).
18733 * XplatUIStructs.cs: add TransparencySupport flag enum.
18735 * XplatUIDriver.cs: add abstract GetWindowTransparency, and track
18736 change to SupportsTransparency.
18738 * XplatUIOSX.cs: stub out GetWindowTransparency, and return
18739 TransparencySupport.None from SupportsTransparency.
18741 * XplatUIX11.cs: Stub out GetWindowTransparency, and return
18742 TransparencySupport.Set from SupportsTransparency.
18744 * XplatUIWin32.cs: implement GetWindowTransparency calling
18745 GetLayeredWindowAttributes, and implement SupportsTransparency by
18746 checking whether or not both
18747 GetWindowTransparency/SetWindowTransparency are available
18748 entrypoints. We need to do this since SetWindowTransparency is
18749 available as of win2k, but GetWindowTransparency requires winxp.
18752 * XplatUI.cs: Add GetWindowTransparency, and change
18753 SupportsTransparency to allow for either/both Get/Set.
18755 2006-11-29 Chris Toshok <toshok@ximian.com>
18757 * DataGrid.cs: keep from going into an infinite loop redrawing a
18758 datagrid that has no datasource. Fixes bug #80033.
18760 2006-11-29 Chris Toshok <toshok@ximian.com>
18762 * MenuItem.cs: fix the NRE when we assign text (and therefore call
18763 Invalidate) before the mainmenu has been assigned to a control.
18765 2006-11-29 Chris Toshok <toshok@ximian.com>
18767 * DataGrid.cs: detect when we should be double the double click
18768 row/column autosize stuff, although that codepath has yet to be
18769 written. part of the work for bug #79891.
18771 2006-11-29 Chris Toshok <toshok@ximian.com>
18773 * Binding.cs (SetControl): fix unit test.
18775 2006-11-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
18777 * PageSetupDialog.cs: Validate the margins and set them in
18779 * NumericTextBox.cs: New class to mimic the behavior of the
18780 textboxes used in the printing dialogs.
18782 2006-11-29 Andreia Gaita <avidigal@novell.com>
18784 * Form.cs: Revert previous change (remove call UpdateBounds
18785 from form constructor), because it messes with the handle creation
18786 order, and that one needs lots and lots of love.
18787 * PrintPreviewDialog.cs: Revert change to CreateHandle (add check
18788 for valid printer and throw InvalidPrinterException if document
18789 is set but printer not valid), adding a MonoTODO. Once
18790 handle creation is done properly, we can put this back in.
18792 2006-11-28 Everaldo Canuto <everaldo@simios.org>
18794 * MenuItem.cs: Create a invalidate method for menu item, to be
18795 calling from set text, it make text changes to imadiate update
18796 on screen. Fixes #80013.
18798 2006-11-28 Everaldo Canuto <everaldo@simios.org>
18800 * ToolBar.cs: Fixes and simplify toolbar button layout, it
18801 fixes bug #80070 and some other problem on toolbar buttons
18804 2006-11-28 Everaldo Canuto <everaldo@simios.org>
18806 * ThemeWin32Classic.cs: Paint toolbar toggle button background
18807 with dotted brush. Fixes #79564
18809 2006-11-28 Andreia Gaita <avidigal@novell.com>
18811 * Form.cs: Removed call to UpdateBounds on Form
18812 constructor, it was causing a call to CreateHandle
18813 before it was supposed to.
18814 * PrintControllerWithStatusDialog: Applied patch
18815 by Chris Toshok to hide controller when there are
18816 no printers available.
18817 PrintDialog.cs: initialize printer settings to
18818 null - correct DefaultValues test #5
18819 * PrintPreviewControl.cs: Move PrintController
18820 initialization to GeneratePreview
18821 * PrintPreviewDialog.cs:
18822 - Remove Preview generation from Document_set(). It is
18824 - Throw InvalidPrinterException on CreateHandle if
18825 a Document is set but there are no printers or
18826 printer is not valid.
18827 * ThemeWin32Classic: don't paint PrintPreviewControl
18828 if there is nothing to paint
18830 2006-11-28 Miguel de Icaza <miguel@novell.com>
18832 * Form.cs: Add another popular method.
18834 * TabPage.cs: ditto.
18836 2006-11-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
18838 * MenuItem.cs: Fixed a warning.
18839 * InternalWindowManager: Fixed a warning.
18841 2006-11-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
18844 - When cloning a menu also clone MdiList and clone the
18845 window menu items properly (as the forms and menuitems
18846 are kept in an internal hashtable, these need updating
18848 - Rewrote the window menu code, menu items are added in the
18849 order the forms were added to their parent, and they are
18850 updated every time the window menu is shown (before the
18851 list was only generated once, in the current order of the
18852 forms, and would never be updated). A checkmark is shown
18853 next to the item corresponding to the active mdi child.
18855 2006-11-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
18857 * XplatUIStructs.cs:
18858 - Added WM_NCMOUSEHOVER and WM_NCMOUSELEAVE.
18861 - Added TME_NONCLIENT to TMEFlags.
18862 - Handles WM_NCMOUSEMOVE in GetMessage to
18863 generate WM_NCMOUSEHOVER and WM_NCMOUSELEAVE messages.
18865 * MdiWindowManager:
18866 - Now merges mdi child menu to parent menu when maximized.
18867 - Recalculate NC areas of both mdi child and mdi parent.
18869 on window state and size changes.Fixes #79844 (3).
18870 - Handle WM_NCCALCSIZE to properly calculate borders.
18873 - Add/remove to the mdi containers list of mdi children
18874 in the order they are added.
18875 - Pass on WM_NCLBUTTONUP, WM_NCMOUSEMOVE and WM_NCMOUSELEAVE
18876 to the maximized mdi child.
18878 * InternalWindowManager.cs:
18879 - Only execute a click on the control buttons on the mouse up,
18880 not on the mouse down. Show the state of the button
18881 (was only showing Normal state, never Pressed state). The
18882 pressed button now follows the mouse (if you click the Close
18883 button and move the mouse over the Maximize button, the
18884 Maximize button will be shown as pressed). Since Win32 does
18885 not generate WM_NCLBUTTONUP if you release the button outside
18886 of the nc area, we need to handle WM_NCMOUSELEAVE and treat
18889 * ThemeWin32Classic.cs:
18890 - Draw a missing border around mdi child forms. Fixes #79844 (2).
18893 - Added a list of forms which contains the order the forms are
18894 added to the mdi parent.
18895 - Handle WM_NCPAINT to properly draw a 3D border. Fixes #79844 (2).
18896 - Handle WM_NCCALCSIZE to properly calculate the 3D border.
18897 - If the active form changes set the scrollbars to the top
18898 of the Z order, otherwise the form could hide them.
18899 - Scrollbars are now sized according to ClientSize, not
18900 to Size, and they take into account the other scrollbar
18901 to determine maximum.
18903 2006-11-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
18906 * XplatUIDriver.cs:
18910 - Added RequestAdditionalWM_NCMessages for windows to
18911 opt in for WM_NCMOUSELEAVE and WM_NCMOUSEHOVER.
18912 Currently only implemented in XplatUIWin32.
18914 2006-11-27 Chris Toshok <toshok@ximian.com>
18916 * Hwnd.cs: only add the hwnd to the windows hash in
18917 set_WholeWindow and set_ClientWindow if whole_window/client_window
18918 are not IntPtr.Zero. also, remove the unused SetObjectWindow.
18920 2006-11-27 Mike Kestner <mkestner@novell.com>
18922 * ComboBox.cs: remove redundant OnDropDown call. It is called
18923 from the ComboListBox.ShowWindow code. Fixes #79969.
18925 2006-11-27 Chris Toshok <toshok@ximian.com>
18927 * Hwnd.cs: remove the setters for ExposePending and
18928 NCExposePending - noone uses them.
18930 2006-11-27 Jackson Harper <jackson@ximian.com>
18932 * TextControl.cs: new param for ReplaceSelection which determines
18933 whether we select the new selection, or set the cursor to the end
18934 of the new selection.
18935 * TextBoxBase.cs: Use new param for ReplaceSelection. When
18936 pasting, select the new text.
18937 * RichTextBox.cs: Use new param for ReplaceSelection.
18939 2006-11-27 Jackson Harper <jackson@ximian.com>
18941 * TextBoxBase.cs: Set the selection to the caret after the caret
18942 is moved, otherwise they get out of sync.
18944 2006-11-26 Everaldo Canuto <everaldo@simios.org>
18946 * ToolBar.cs: Fixe size of ToolBar when AutoSize is false,
18949 2006-11-26 Everaldo Canuto <everaldo@simios.org>
18951 * ThemeWin32Classic.cs:
18952 - Fix toolbar drop down arrow position.
18953 - Fix drop down appearance when ToolBar.Appearance is normal,
18956 2006-11-26 Gert Driesen <drieseng@users.sourceforge.net>
18958 * ProgressBar.cs: GetStyle fixes for 2.0 profile.
18959 * Control.cs: Same.
18960 * UpDownBase.cs: Same.
18961 * ButtonBase.cs: Same.
18962 * ScrollBar.cs: Same.
18963 * TrackBar.cs: Same.
18964 * PictureBox.cs: Same.
18965 * UserControl.cs: Same.
18967 * ListControl.cs: Same.
18968 * TextBoxBase.cs: Same.
18969 * ListView.cs: Same.
18970 * RichTextBox.cs: Same.
18971 * TreeView.cs: Same.
18973 2006-11-25 Jordi Mas i Hernandez <jordimash@gmail.com>
18976 - Text label for where
18977 - Text label comment was not shown
18979 2006-11-23 Everaldo Canuto <everaldo@simios.org>
18981 * ThemeWin32Classic.cs: Fix toolbar drop down arrow size.
18983 2006-11-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
18985 * InternalWindowManager.cs:
18986 - Handle WM_PARENTNOTIFY to activate the form
18987 if any child control is clicked.
18988 - The form is only sizable if not minimized.
18990 * MdiWindowManager.cs:
18991 - Save the IconicBounds if the form is moved.
18992 - Rework SetWindowState, now the window bounds
18993 are stored only if the old window state is Normal.
18996 - In SetWindowStates store the old window state if
18997 the window is maximized and restore window state if
18998 the window looses focus.
18999 - Don't handle any scrollbar value changes if
19000 initializing the scroll bars. Fixes #79771.
19001 - Reworked ArrangeIconicWindows. Current algorithm
19002 tests bounds agains all other minimized windows, if
19003 any intersections create new bounds (going left to
19004 right, bottom to top) and then test again. When
19005 successful the bounds are saved and never computed
19006 again. Fixes #79774.
19008 2006-11-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
19010 * InternalWindowManager.cs: Added HandleTitleBarUp.
19012 2006-11-23 Gert Driesen <drieseng@users.sourceforge.net>
19014 * NumericUpDown.cs: In .NET 1.1, user entered text is still
19015 hexadecimal in ParseUserEdit.
19018 2006-11-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
19020 * MdiWindowManager.cs:
19021 - Handle a click on the form's icon to show the
19022 system menu (when maximized). Fixes #79775.
19023 - Change the existing click handler for the form's
19024 icon when not maximized to show on MouseUp.
19027 * Form.cs: In OnResize only layout the mdi child's
19028 parent if it actually has a parent. Might not if
19029 the window is closing.
19032 2006-11-23 Gert Driesen <drieseng@users.sourceforge.net>
19034 * MdiClient.cs: Ignore active MDI client for text of parent, if
19035 child has no text set.
19037 2006-11-23 Gert Driesen <drieseng@users.sourceforge.net>
19039 * ToolBar.cs: Fixed ToString to match MS.
19041 2006-11-22 Andreia Gaita <avidigal@novell.com>
19044 - Fix DecimalPlaces, Hexadecimal and ThousandsSeparator to
19045 update inner values on set. Fixes #79966.
19046 - Override OnLostFocus to update value on NET 2. Fixes #79950.
19047 - Fix hexadecimal parsing.
19049 * UpDownBase: Override OnGotFocus and OnLostFocus to notify
19050 parent. Fixes #79957
19052 2006-11-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
19054 * Control.cs: After calling SetWindowsPos in SetBoundsCore
19055 the actual size has to be queried, since if height /
19056 width is negative Win32 changes it to 0.
19057 Fixes #79999 on Windows.
19059 * XplatUIX11.cs: Set height / width to 0 if negative
19060 in SetWindowPos. Fixes #79999 on Linux.
19062 2006-11-22 Everaldo Canuto <everaldo@simios.org>
19064 * ThemeWin32Classic.cs: Fix text redenring when button is
19067 2006-11-22 Everaldo Canuto <everaldo@simios.org>
19069 * MenuAPI.cs: Fixes behavior when menu is opened by kerboard
19070 and later navigate by mouse. Fixes #79528.
19072 2006-11-21 Everaldo Canuto <everaldo@simios.org>
19074 * ToolBar.cs: Set default value for TabStop to false in
19075 constructor, it fixes remaining behavior of bug #79863.
19077 2006-11-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
19079 * MdiWindowManager.cs:
19080 * InternalWindowManager.cs:
19081 - Moved a few methods specific to Mdi from
19082 InternalWindowManager to MdiWindowManager.
19085 2006-11-21 Chris Toshok <toshok@ximian.com>
19087 * XplatUIOSX.cs: stub out InvalidateNC.
19089 * XplatUIWin32.cs: implement InvalidateNC using the call I found
19090 at http://www.dotnet247.com/247reference/msgs/58/292037.aspx.
19092 * XplatUIX11.cs: rename InvalidateWholeWindow to InvalidateNC.
19094 * XplatUIDriver.cs: add InvalidateNC abstract method.
19096 * XplatUI.cs: add InvalidateNC.
19098 2006-11-21 Everaldo Canuto <everaldo@simios.org>
19100 * ToolBar.cs: Invalidate complete button area when pressed status
19102 * ToolButton.cs: Fix InvalidateBorder for DropDown buttons.
19103 * ThemeWin32Classic.cs: Increase vertical and horizontal position
19104 by 1 when button is pressed.
19106 2006-11-20 Everaldo Canuto <everaldo@simios.org>
19108 * ToolButton.cs: Invalidate middle of DropDown button when
19109 ToolBar theres DropDownArrows.
19110 * ThemeWin32Classic.cs: Change position of DropDown arrow and
19111 fix DropDown drawing operations.
19113 2006-11-20 Chris Toshok <toshok@ximian.com>
19115 * NativeWindow.cs: fix the formatting of functions ('{' on the
19116 following line), and enable the thread exception dialog.
19118 * Application.cs: remove the duplicate exception catching from
19121 2006-11-20 Everaldo Canuto <everaldo@simios.org>
19123 * Toolbar.cs: Triggers button click event when click on icon
19124 of dropdown ToolBarButton. Fixes #79912.
19126 2006-11-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
19129 * ThemeWin32Classic.cs:
19130 - Added a property WindowBorderFont to enable themeing
19131 of mdi child windows' Text.
19133 2006-11-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
19135 * InternalWindowManager.cs:
19138 * MdiWindowManager.cs:
19139 - If mdi child is maximized, set mdi parent's
19140 text to "Parent - [Child]". Fixes #79770.
19141 - If there is any maximized mdi child windows, only the active
19142 window (and any new windows) is maximized, the rest are normal.
19143 - On a WindowState change only save mdi child's window bounds
19144 if the old window state was normal. Fixes #79774.
19145 - The scroll bars are now calculated on hopefully all
19146 necessary events. Fixed #79771 / #79844->6 / #79906.
19147 - MdiClient.SizeScrollBars() now takes into account docked
19148 controls in the parent when calculating available space.
19149 - InternalWindowManager now always repaints the entire title
19150 area. Fixes #79844->1/4/5.
19151 - Added RequestNCRecalc on mdi child windowstate changes.
19154 2006-11-20 Mike Kestner <mkestner@novell.com>
19156 * ComboBox.cs: setup LargeChange on the scrollbar. Invoke FireMouseUp
19157 in the MouseUp handler of the listbox and move the return handling
19158 code to FireMouseUp to avoid scrolling on ups. Fixes #79952.
19160 2006-11-20 Everaldo Canuto <everaldo@simios.org>
19162 * Toolbar.cs: Ignore right mouse clicks in toolbar. Fixes #79855.
19164 2006-11-17 Alexander Olk <alex.olk@googlemail.com>
19166 * MimeIcon.cs: Seems that DllImports that were fine in 1.2 are not
19167 working in 1.2.x anymore. So, updated.
19169 2006-11-19 Gert Driesen <drieseng@users.sourceforge.net>
19171 * NumericUpDown.cs: Use NegativeSign, NumberDecimalSeparator and
19172 NumberGroupSeparator of current culture instead of assuming en-US.
19175 2006-11-17 Mike Kestner <mkestner@novell.com>
19177 * Control.cs: Add the concept of implicit bounds setting so that
19178 dock/undock round trips preserve explicitly set size/locations.
19181 2006-11-17 Alexander Olk <alex.olk@googlemail.com>
19183 * FileDialog.cs: Trim all filters, otherwise DirInfo.GetFiles
19184 can't handle those filters. (Fixes bug #79961)
19186 2006-11-17 Chris Toshok <toshok@ximian.com>
19188 [ fixes the exit/crashes associated with #79835. it's clearly
19189 suboptimal though, we need to figure out a better way to solve
19192 * PrintPreviewControl.cs: deal with the new invalid printer
19195 * PageSetupDialog.cs: if the printer is invalid, pop up a dialog
19196 and return false (so CommonDialog.ShowDialog doesn't actually show
19199 * PrintDialog.cs: enable/disable the Ok button depending on
19200 whether or not the printer is valid.
19202 * CommonDialog.cs (ShowDialog): only actually show the form if
19203 RunDialog returns true.
19205 2006-11-17 Jackson Harper <jackson@ximian.com>
19207 * TextControl.cs: When soft splitting a line, mark it as a soft
19208 split line. Also carry over the current line break to the next
19211 2006-11-17 Chris Toshok <toshok@ximian.com>
19213 * XplatUIX11.cs: when scrolling a window with an invalid area, we
19214 only want to shift the part of the invalid area that overlaps the
19215 area we're scrolling. we also don't want to clear the invalid
19216 area unless the invalid area was entirely contained within the
19219 2006-11-16 Chris Toshok <toshok@ximian.com>
19221 * XplatUIX11.cs: remove the handling of the TimerEvent stuff, and
19222 also make sure to free the memory returned by XGetWindowProperty
19225 * X11Structs.cs: remove the TimerEvent stuff, it's unused.
19227 2006-11-16 Chris Toshok <toshok@ximian.com>
19229 * XplatUI.cs: add a new super secret way to get at the totally
19230 unsupported X11 backend.
19232 2006-11-16 Gert Driesen <drieseng@users.sourceforge.net>
19234 * NumericUpDown.cs: Allow lowercase letters when in hex-mode.
19236 2006-11-16 Jackson Harper <jackson@ximian.com>
19238 * TreeView.cs: Allow more explicit setting of top node position
19239 for scrollbars. Slower algo, but more accurate.
19240 - CollapseAll should maintain the current top node.
19241 * TextBoxBase.cs: When positioning the caret, use the line, pos
19242 method, since the x, y method does not grab the correct tag, and
19243 the caret height never gets set correctly. (Maybe I should just do
19244 away with the caret having its own height, and always use the
19245 carets current tag for height).
19247 2006-11-16 Jonathan Pobst <monkey@jpobst.com
19249 [Fixes 79778, 79923]
19251 * XplatUIWin32.cs: Don't allow a parent to be set to IntPtr.Zero.
19252 Parent to the FosterParent instead.
19254 2006-11-16 Jackson Harper <jackson@ximian.com>
19256 * TreeView.cs: Need to recalc the topnode when we expand or
19257 collapse. The scrolling methods can't handle this on their own,
19258 since they use differences between the last scroll position, and
19259 those difference get completely messed up since we are expanding
19260 nodes. This problem should probably be fixed in the scrolling
19261 methods, so they can figure out exactly where they are, but this
19262 will slow things down a little.
19263 * ThemeWin32Classic.cs: Special case for groupboxes with empty
19264 strings, makes nunit-gui look a lot nicer.
19266 2006-11-16 Chris Toshok <toshok@ximian.com>
19268 * XplatUIX11.cs: nasty, nasty, nasty changes required because of
19269 the broken multithreaded event handling we have in here. File
19270 this entry under "Why we should move to the new X11 backend".
19272 Any thread can make it into UpdateMessageQueue, which gets events
19273 from the X socket - some of which could belong to hwnds being
19274 managed by a different thread. We can also have multiple threads
19275 in UpdateMessageQueue at the same time, with each one reading from
19276 the X socket. This leads to many problems, with the following
19279 We can't use hwnd.Queue.Enqueue anywhere in here and must use
19282 The MotionNotify compression we do can't work across threads
19283 (without locking the entire queue, perhaps) since we call
19284 hwnd.Queue.Peek, so we just punt and don't compress motion events
19285 unless the owning thread is the one which got the X event.
19287 ConfigureNotify is another fun one, since it modifies the hwnd's
19288 bounds and then enqueues the event. We add a lock to Hwnd which
19289 is held when setting configure_pending to true (and enqueuing the
19292 There is a race wrt the wake socket. we need to make sure that
19293 only 1 thread is waiting on that socket, or else a thread could
19294 sleep waiting for data that never comes. It's difficult (but not
19295 impossible) to make happen, because it seems to require something
19296 like the following:
19298 1. Thread 1 polls on wake_receive
19300 2. poll returns saying there's data to be read on
19303 3. Thread 2 polls on wake_receive and immediately returns
19304 saying there's data to be read.
19306 4. Thread 2 reads the wakeup byte from wake_receive
19308 5. Thread 1 attempts to read the wakeup byte from
19311 6. Thread 2 exits (due to a form closing, perhaps).
19313 7. Thread 1 blocks forever.
19317 Fixing the Expose handling isn't done yet, and the races inherent
19318 in that piece of code are responsible for the drawing mistakes you
19319 see when generating expose events in a MT app (like NPlot). This
19320 one is the likely to be the hardest to bandaid, and it doesn't
19321 appear to cause anything but drawing problems. The other issues
19322 caused apps to exit or hang.
19324 * XEventQueue.cs: output some spew when Dequeue/Enqueue/Peek are
19325 called from a different thread than the one that should be calling
19328 * Hwnd.cs: add some locks to be used by the XplatUIX11 code.
19330 2006-11-15 Chris Toshok <toshok@ximian.com>
19332 * Application.cs: null out the context's MainForm when we exit
19333 RunLoop. Fixes a newly checked in unit test as well as the last
19334 ODE from bug #79933.
19336 2006-11-15 Chris Toshok <toshok@ximian.com>
19338 * Form.cs (set_Owner): allow a null value so we can clear the
19340 (Dispose): set all our owned_form's Owner properties to null, and
19341 clear the owned_forms collection.
19342 (WM_CLOSE): clean up this a little bit.. still not right though.
19344 * ApplicationContext.cs: OnMainFormClosed should only call
19345 ExitThreadCore if the main form isn't recreating. Fixes unit
19348 2006-11-15 Jonathan Pobst <monkey@jpobst.com>
19352 * ComboBox.cs: Set the Hwnd.no_activate flag for the ComboListBox.
19354 2006-11-15 Jonathan Pobst <monkey@jpobst.com>
19358 * Hwnd.cs: Add a flag to show a window, but not activate it, to
19359 keep popup window types from stealing focus from the main form
19362 * XPlatUIWin32.cs: Use SW_SHOWNOACTIVATE if above field is true.
19364 * MenuAPI.cs: Set above flag to true.
19366 2006-11-15 Chris Toshok <toshok@ximian.com>
19368 * XplatUIX11.cs: mimic win32 behavior on BUTTONUP events, where
19369 the button being released is not in wParam.
19371 2006-11-15 Jonathan Pobst <monkey@jpobst.com>
19373 * Form.cs: Add the released button to MouseEventArgs.Button
19374 for the OnMouseUp call to the MenuTracker. Fixes menu clicking
19377 2006-11-15 Chris Toshok <toshok@ximian.com>
19379 * XplatUIX11.cs: add (untested) a _NET_WM_NAME implementation of
19380 GetText(). untested because it's unused in our implementation.
19381 Control.Text always caches the text, even if
19382 ControlStyles.CacheText is not set.
19386 2006-11-15 Chris Toshok <toshok@ximian.com>
19390 * Form.cs: in Close() don't do anything after we send the WM_CLOSE
19391 message. no hiding, no disposing.
19393 in the WM_CLOSE handler, hide the form if it's modal.
19395 2006-11-15 Chris Toshok <toshok@ximian.com>
19397 * XplatUIX11.cs: use AddExpose instead of sending a message.
19398 fixes textbox border drawing.
19400 2006-11-15 Chris Toshok <toshok@ximian.com>
19402 * PropertyGridView.cs: keep from crashing on mouse move/down when
19403 the property grid is empty.
19405 2006-11-14 Jackson Harper <jackson@ximian.com>
19407 * TextControl.cs: Make PageUp and PageDown more like the MS
19409 * TextBoxBase.cs: When we set the text property position the
19410 cursor at the beginning of the document.
19412 2006-11-14 Rolf Bjarne Kvinge <RKvinge@novell.com>
19414 * Form.cs: if a mdi child's WindowState has changed
19415 before it's creation, it would display wrong control
19418 2006-11-14 Alexander Olk <alex.olk@googlemail.com>
19420 * TreeView.cs: De-uglify TreeView checkbox checkmarks.
19423 2006-11-14 Rolf Bjarne Kvinge <RKvinge@novell.com>
19425 * XplatUIX11.cs: send a WM_NCPAINT on WM_NCCALCSIZE so that
19426 the window gets to paint its borders even if the window is
19429 * Form.cs: on a WM_NCPAINT invalidate the entire menu,
19430 otherwise the old control buttons would still be painted
19431 if the window gets bigger.
19433 * PaintEventArgs.cs: add an internal method so that the clip
19434 rectangle can be changed.
19436 2006-11-13 Chris Toshok <toshok@ximian.com>
19438 [ fixes bug #79745 ]
19440 * NotifyIcon.cs: lots of cleanup.
19442 * X11Structs.cs: add an enum for XEMBED messages.
19444 * XplatUIX11.cs: reindent one of the giant switch statements, it
19445 was taking up an additional tab stop, and this file is already way
19446 too wide for my laptop's screen.
19448 Also, add handling for the XEmbed EMBEDDED_NOTIFY message. When
19449 we get it, resize the hwnd to the WMNormalHints max_width/height.
19451 2006-11-13 Jackson Harper <jackson@ximian.com>
19453 * TextBoxBase.cs: Compute the value changes for the mouse wheel
19456 2006-11-13 Chris Toshok <toshok@ximian.com>
19458 * XplatUIX11.cs, XplatUIStructs.cs: kind of a gross fix for
19459 #79898. force a reference to the Region to stick around so the
19460 unmanaged object isn't collected (rendering our handle in the MSG
19463 2006-11-13 Chris Toshok <toshok@ximian.com>
19465 * XplatUIX11.cs: fix #79917 for window managers which support
19467 using XStoreName on the raw utf8, and we need to convert to
19468 COMPOUND_TEXT if it's non-latin1.
19470 2006-11-13 Chris Toshok <toshok@ximian.com>
19472 * Form.cs (set_DialogResult): we need to set closing to false if
19473 we're setting our result to None. fixes bug #79908.
19475 2006-11-13 Jackson Harper <jackson@ximian.com>
19477 * TextControl.cs: When formatting text, compute the adjusted tag
19478 lengths correctly, using FindTag for the end tag instead of trying
19479 to figure it out outselves.
19480 * TreeNode.cs: Use ActualItemHeight, which is the actual height of
19481 the item, ItemHeight doesn't work, because trees with large
19482 imagelists use those for their height
19483 * TreeView.cs: ActualItemHeight factors in the image height
19484 - compute left edge of checkboxes correctly
19485 - when expanding/collapsing move the bottom down one pixel, so we
19486 aren't moving part of the node
19488 2006-11-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
19490 * XplatUIX11.cs: The PaintEventArgs is also added to the drawing
19491 stack in PaintEventStart so that it won't get disposed by the gc
19492 before reaching PaintEventEnd.
19494 2006-11-13 Jackson Harper <jackson@ximian.com>
19496 * TextBoxBase.cs: Don't select the word if we are on a line with
19498 - We don't need to position the caret on mouse up, since the mouse
19499 move handler should be doing this
19500 - When double clicking a blank line, the caret is advanced to the
19503 2006-11-13 Gert Driesen <drieseng@users.sourceforge.net>
19505 * TreeNodeCollection.cs: Avoid duplicating indexer code.
19507 2006-11-12 Gert Driesen <drieseng@users.sourceforge.net>
19509 * ColorDialog.cs: Reset size of dialog between calls to ShowDialog.
19510 Fixes part of bug #79910.
19512 2006-11-11 Alexander Olk <alex.olk@googlemail.com>
19514 * ColorDialog.cs: Fix a NRE when adding a color to custom colors
19515 (bug #79903). Some minor string updates to match ms.
19517 2006-11-10 Alexander Olk <alex.olk@googlemail.com>
19519 * FileDialog.cs: Don't add an extension if the filename
19520 already ends with that extension.
19522 2006-11-10 Jackson Harper <jackson@ximian.com>
19524 * TreeView.cs: Use the currently highlighted node for the
19525 BeforeSelect event.
19526 * TextBoxBase.cs: There is no need to expand selection on
19528 - CanUndo means 'is there any undo operations', not 'is undo
19529 allowed on this textcontrol. Fixed ClearUndo unit test.
19531 2006-11-10 Andreia Gaita <shana.ufie@gmail.com>
19533 * Button.cs: only perform click when button is Selectable (so as
19534 not to activate default buttons when they're disabled)
19536 * Control.cs: Rewrite of the SelectNextControl and related
19537 methods. HandleClick now selects next control if the current one
19540 * Form.cs: OnActivated selects next active control only if Load
19541 has already occurred. If Load hasn't run, there's no point in
19542 selecting here, Load might change the state of controls.
19544 * FocusTest.cs: Tests marked as working again for these fixes
19546 2006-11-10 Chris Toshok <toshok@ximian.com>
19548 * XplatUIX11.cs: a couple of fixes.
19550 - use XInternAtoms with almost all the atoms we need to register,
19551 instead of many, many calls to XInternAtom. should help a bit on
19552 startup time, at the expense of making the code look a little
19555 - fall back to setting TransientFor on TOOLWINDOW's if their hwnd
19556 isn't reparented (which seems to be a clue that we're running fon
19557 compiz) and they have an Owner form. This fixes the tool windows
19558 in paint.net when running under compiz.
19560 - when setting the opacity of a window, support both the case
19561 where the window has been reparented and also when it hasn't been.
19562 Since compiz/beryl doesn't seem to reparent windows, and these are
19563 the only window managers which support translucency, I'm not sure
19564 why we need the hwnd.reparented case at all.. but leave it in.
19565 now we get translucent windows in paint.net under compiz/beryl.
19567 2006-11-10 Alexander Olk <alex.olk@googlemail.com>
19569 * FileDialog.cs: Always return the value for FilterIndex that
19570 was set. Internally convert it to values that make sense.
19572 2006-11-10 Everaldo Canuto <everaldo@simios.org>
19574 * ThemeWin32Classic.cs: Fix drowp down arrow borders.
19576 2006-11-10 Everaldo Canuto <everaldo@simios.org>
19578 * Toolbar.cs: Change default value of DropDownArrows to true, the
19579 signature still using false to make it compatible with MS but the
19580 initial value is true. Fixes #79855.
19582 2006-11-10 Alexander Olk <alex.olk@googlemail.com>
19584 * MimeIcon.cs: Don't throw an exception on windows. Mime stuff is
19585 only available on Linux.
19587 2006-11-09 Everaldo Canuto <everaldo@simios.org>
19589 * Toolbar.cs, ToolBarButton.cs: Fix wrong separator size and
19590 reduce number of calls to redraw method during toolbar creation.
19592 2006-11-09 Mike Kestner <mkestner@novell.com>
19594 * ListView.cs : raise SelectedIndexChanged when an item is selected
19595 programmatically via the Item.Selected property. Gert's nice
19596 ListViewSelectedIndexChanged test fixture now runs clean.
19598 2006-11-09 Mike Kestner <mkestner@novell.com>
19600 * ListView.cs : raise SelectedIndexChanged when a selected item is
19601 removed from the item collection using Remove or RemoveAt.
19603 2006-11-09 Mike Kestner <mkestner@novell.com>
19605 * ListView.cs : raise SelectedIndexChanged once per selected item
19606 for compat with MS. Fixes #79849+.
19608 2006-11-09 Chris Toshok <toshok@ximian.com>
19610 * TabControl.cs: initialize row_count to 0, and set it to 1 when
19611 we need to (if we have any tab pages). Fixes unit test.
19613 2006-11-09 Chris Toshok <toshok@ximian.com>
19615 * Label.cs (CalcPreferredWidth): if Text == "", our preferred
19616 width is 0, not 3. Fixes a unit test.
19618 2006-11-09 Mike Kestner <mkestner@novell.com>
19620 * ListView.cs : use Implicit scrollbars so that focus isn't
19621 stolen from the listview when they are clicked. Fixes #79850.
19623 2006-11-09 Chris Toshok <toshok@ximian.com>
19625 * PropertyGridView.cs (OnPaint): only call DrawGridItems if we
19626 have a root item. Fixes #79879.
19628 2006-11-09 Alexander Olk <alex.olk@googlemail.com>
19632 - An ArgumentException is now thrown if a wrong filter
19633 is applied (matches ms). The previous filter doesn't change
19634 anymore if an exception is thrown.
19635 - Changing the FileName property also affects FileNames
19636 * ColorDialog.cs: The length of the CustomColors array is always
19637 16. It doesn't matter if we use a smaller array or null to update
19638 or change the custom colors property.
19639 * FolderBrowserDialog.cs: Throw an InvalidEnumArgumentException if
19640 for RootFolder if we get a undefined value.
19642 2006-11-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
19644 * StatusBarPanel.cs:
19645 - Width is set to MinWidth if Width is smaller than
19646 MinWidth. Fixes #79842.
19647 - MinWidth now always overrides Width (MSDN says MinWidth
19648 is set to Width when AutoSize = None, but they do not
19650 - Style has now the the correct default value.
19652 2006-11-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
19655 - The control is completely invalidated on
19656 Got/LostFocus to draw the focus rectangle correctly.
19657 - When AutoSize then height is always 45 (width for
19658 vertical controls).
19660 * ThemeWin32Classic.cs: The TrackBar thumb is now centered
19661 on the mouse when moved and it doesn't move when grabbed
19662 until the mouse moves as well. Also fixed some wrong
19663 calculations when clicking on the thumb (control thought
19664 click was outside of thumb and didn't grab it).
19665 Fixes some of the issues in #79718.
19667 2006-11-08 Everaldo Canuto <everaldo@simios.org>
19669 * Toolbar.cs: Prevent disabled button to highlight. Fixes #79868.
19671 2006-11-08 Chris Toshok <toshok@ximian.com>
19673 * PropertyGridView.cs: only call ToggleValue if the item is not
19676 2006-11-08 Jackson Harper <jackson@ximian.com>
19678 * TextBoxBase.cs: The RichTextBox and textbox have very different
19679 word selection methods. Implement the textbox's simple word
19680 selection here, and let the RichTextBox override and provide it's
19682 - Don't do extra selection on mouseup
19683 * RichTextBox.cs: Use the documents word selection algorithm, I
19684 think ideally, this function will be pulled into the
19685 RichTextBox.cs code someday.
19687 2006-11-08 Chris Toshok <toshok@ximian.com>
19689 * RootGridEntry.cs: new class to represent GridItemType.Root.
19691 * CategoryGridEntry.cs: reformat, and add boilerplate.
19693 * GridEntry.cs: remove the UIParent stuff - turns out .Parent
19694 returns the UI parent anyway, and we need special handling to
19695 implement the GetTarget method in the face of it. Also, implement
19698 * PropertyGrid.cs, PropertyGridView.cs: a number of fixes. create
19699 a root grid item, and use that instead of PropertyGrid.grid_items.
19700 Also, make use of TypeConverters (and add limitted support for
19701 ICustomTypeDescriptors) when initially populating the grid.
19702 Arrays now show up more or less properly.
19704 2006-11-08 Chris Toshok <toshok@ximian.com>
19706 * Application.cs: set the modal dialog to non modal after we close
19707 it. Fixes bug #79866.
19709 2006-11-08 Jackson Harper <jackson@ximian.com>
19711 * TextControl.cs: When combining lines carry over the line end
19712 style from the end line.
19713 - Invalidate the selected area when setting it, if it is visible.
19714 * TextBoxBase.cs: Only rich text box can do full line selects.
19715 - Make sure to set the cursor position when there is a click,
19716 otherwise two clicks in separate areas could cause a large chunk
19719 2006-11-07 Everaldo Canuto <everaldo@simios.org>
19721 * Toolbar.cs: Release flat button borders when Toolbar lost focus.
19724 2006-11-07 Everaldo Canuto <everaldo@simios.org>
19726 * Toolbar.cs: Prevent toolbar to open more than one tooltip at same
19727 time. Remove tooltips when ToolButton click events. Fixes #79856.
19729 2006-11-07 Everaldo Canuto <everaldo@simios.org>
19731 * MenuAPI.cs: Ignore right click for menu actions and fixes
19732 menu border when clicked. Fixes #79846.
19734 2006-11-07 Everaldo Canuto <everaldo@simios.org>
19736 * XplatUIX11.cs, XplatUIX11.cs: Fix MouseRelease to only release
19737 MouseState after create wParam for message, this fixes mouse button
19738 equal none in mouse up events.
19740 2006-11-07 Andreia Gaita <shana.ufie@gmail.com>
19742 * Control.cs : Focus() now calls Select to set the Container's
19743 Active Control and to give it focus. To avoid infinite recursion
19744 (because ActiveControl also calls Focus at one point), a check
19745 is made in Focus with the help of a new internal variable
19748 2006-11-07 Mike Kestner <mkestner@novell.com>
19750 * ListView.cs : raise OnSelectedIndexChanged in CreateHandle
19751 if there's a selection. Fixes #79849.
19753 2006-11-07 Gert Driesen <drieseng@users.sourceforge.net>
19755 * PropertyGrid.cs: Avoid fixed height of help description label.
19756 Fixes part of bug #79829.
19758 2006-11-07 Chris Toshok <toshok@ximian.com>
19760 * XplatUIX11.cs: fix #79790 again, by using the
19761 _NET_WM_STATE_SKIP_TASKBAR atom to implement Form.ShowInTaskbar.
19763 2006-11-07 Everaldo Canuto <everaldo@simios.org>
19765 * ToolBar.cs: Fix left click checking.
19767 2006-11-07 Chris Toshok <toshok@ximian.com>
19769 * ProgressBar.cs: fix a typo in ToString(). fixes a unit test.
19771 2006-11-07 Chris Toshok <toshok@ximian.com>
19773 * RelatedPropertyManager.cs: set property_name in our ctor. fixes
19774 PropertyManager unit tests.
19776 * PropertyManager.cs: make property_name internal.
19778 2006-11-07 Chris Toshok <toshok@ximian.com>
19780 * ButtonBase.cs: initialize base.ime_mode to ImeMode.Disable to
19781 pass a unit test. Also, don't set image_index to anything in
19782 response to setting the ImageList property.
19784 2006-11-07 Everaldo Canuto <everaldo@simios.org>
19786 * ToolBar.cs: Ignore click events when mouse button is not a
19787 left button, only accepts other button for dropdown menus.
19790 2006-11-07 Chris Toshok <toshok@ximian.com>
19792 * DataGrid.cs: make the back and parent row buttons a little less
19795 2006-11-07 Jackson Harper <jackson@ximian.com>
19797 * TextBoxBase.cs: When converting to Text don't put line breaks in
19798 for soft line breaks.
19799 * TextControl.cs: There is an initial "fake" line in the document,
19800 this is now a soft break line, so that an extra line feed doesn't
19801 get added to the end of documents.
19803 2006-11-07 Chris Toshok <toshok@ximian.com>
19807 * CurrencyManager.cs: if the list is readonly, don't bother
19808 checking if IBindingList.AllowNew is true.
19810 * ThemeWin32Classic.cs (DataGridPaintParentRow): make this work
19811 for non-DataRowView datasources.. or rather, make it not crash.
19812 (DataGridPaintRelationRow): make sure we limit the row painting to
19813 the area not covered by the row header, and make our cell width at
19814 least large enough to cover the relation area. This allows grids
19815 that have relations but no rows to render correctly.
19816 (DataGridPaintRowContents): same type of changes here.
19817 (SetDataSource): move back to always calling
19818 CalcAreasAndInvalidate. this fixes a crash/drawing problem when
19819 navigating back through relations.
19820 (HitTest): handle the case where we have no cells but have
19821 relations. Right now we generate a hit in cell 0 of whatever the
19822 row is, not sure if this is strictly correct, but it works for our
19825 * DataGrid.cs (EndEdit, CancelEdit): if we have no columns, don't
19826 bother doing anything.
19828 2006-11-07 Jonathan Pobst <monkey@jpobst.com>
19830 * StatusStrip.cs, ToolStripStatusLabel.cs: By request, an
19831 early version of StatusStrip. Not responsible for eaten
19832 application or firstborn children.
19834 2006-11-06 Chris Toshok <toshok@ximian.com>
19836 * TabControl.cs: in OnGotFocusInternal/OnLostFocusInternal don't
19837 call GetTabRect with a -1 index. Fixes #79847.
19839 2006-11-06 Jackson Harper <jackson@ximian.com>
19841 * TreeNodeCollection.cs: Update scrollbars after clearing.
19843 2006-11-06 Chris Toshok <toshok@ximian.com>
19845 * NumericUpDown.cs: fix the ToString method for some unit test
19848 2006-11-06 Chris Toshok <toshok@ximian.com>
19851 - set the initial SelectedGridItem if we can.
19853 - Exclude non-mergable properties only if we're merging > 1
19854 object. Merging 1 object isn't really merging, obviously.
19856 - Handle PropertySort.NoSort just like Alphabetical, which is
19857 wrong of course, but at least gets things on the screen.
19859 * PropertyGridView.cs:
19860 - Add method "FindFirstItem" which finds the first property grid
19861 item, so we can select it by default.
19863 - make use of GridEntry.CanResetValue.
19865 - Don't call RedrawBelowItemOnExpansion here anymore, the
19866 individual GridEntry's will do that.
19868 - Remove the ITypeDescriptorContextImpl internal class.
19871 - this class needs to implement ITypeDescriptorContext, as it's
19872 what MS's PropertyDescriptorGridEntry does, which means we can
19873 remove the ITypeDescriptorContextImpl internal class from
19874 PropertyGrid.cs. This fixes the crashing portion of bug #79829.
19876 - keep a reference to our PropertyGridView, and move the call to
19877 RedrawBelowItemOnExpansion here from PGV. This means
19878 programmaticly setting Expanded actually does something visible.
19880 - add a CanResetValue() function which takes into account our
19881 possibly multiple "selected_objects" in the merged case. Shifting
19882 PropertyGridView to use this method fixes another unreported
19883 crasher found running the test for #79829.
19885 - when Top or Bounds is updated, make sure the PropertyGridTextBox
19886 is updated to reflect this.
19888 * CategoryGridEntry.cs: the ctor takes the PGV now.
19890 2006-11-06 Jackson Harper <jackson@ximian.com>
19892 * TextControl.cs: These are 1 based.
19893 * TextBoxBase.cs: When setting the selected text, don't change the
19894 selected text tags, this is done by ReplaceText, just position the
19895 cursor at the end of the new text.
19897 2006-11-06 Alexander Olk <alex.olk@googlemail.com>
19899 * ListView.cs: Allow label edit only when, when LabelEdit is
19902 2006-11-06 Jackson Harper <jackson@ximian.com>
19904 * TextControl.cs: If a suitable wrapping position isn't found,
19905 just wrap right in the middle of a word.
19907 2006-11-06 Alexander Olk <alex.olk@googlemail.com>
19909 * ListView.cs, ListViewItem.cs: Implement LabelEdit. Fixes
19912 2006-11-06 Jackson Harper <jackson@ximian.com>
19914 * TreeView.cs: Can't use the VisibleCount property when setting
19915 scrollbar heights, because this doesn't take into account whether
19916 or not the horz scrollbar just came visible.
19918 2006-11-05 Everaldo Canuto <everaldo@simios.org>
19920 * MenuAPI.cs: Deactivate menu on mouse up when menus it is already
19921 activated. Fixes #79369, #79832.
19923 2006-11-05 Alexander Olk <alex.olk@googlemail.com>
19925 * FileDialog.cs: *sigh* Because of recent runtime changes (r67043) I
19926 had to remove support for links that point to a directory. FileInfo
19927 returns no usefull information (means, the directory they point to)
19928 for such links. Replaced some empty string ("") with String.Empty.
19930 2006-11-04 Gert Driesen <drieseng@users.sourceforge.net>
19932 * TreeNodeCollection.cs: To match MS, in 1.0 profile throw
19933 NullReferenceException when attempting to remove node that is not in
19934 collection. Throw NullReferenceException when null is passed to
19935 Remove. Allow first element of the collection to be removed. Fixes
19936 bug #79831. In GetEnumerator ().Current return null if positioned
19937 before the first element of the collection. In GetEnumerator ().Reset,
19938 position before first element of the collection.
19940 2006-11-04 Gert Driesen <drieseng@users.sourceforge.net>
19942 * PropertyGrid.cs: To match MS, remove default title and description
19943 for panel. Fixed tooltips for Categorized and Alphabetic toolbar
19946 2006-11-04 Chris Toshok <toshok@ximian.com>
19948 * Theme.cs: add a Clamp method, just for kicks.
19950 * ThemeWin32Classic.cs: clamp all color components to [0..255].
19952 2006-11-04 Chris Toshok <toshok@ximian.com>
19954 * Form.cs: if the form isn't visible, Close() does nothing.
19956 2006-11-03 Chris Toshok <toshok@ximian.com>
19958 * Form.cs (Close): if the form is modal, don't Dispose of it, only
19960 (WndProc): don't Dispose after handling the WM_CLOSE message.
19962 * Application.cs (RunLoop): toplevels is a list of Forms, so treat
19963 them as such, instead of using casts from Control to Form. Also,
19964 don't Dispose of the modal dialog when we fall out of the loop -
19965 Close() it instead.
19969 2006-11-03 Chris Toshok <toshok@ximian.com>
19971 * Control.cs (Dispose): only go through the dispose thing if we're
19972 @disposing, and we haven't already been disposed. Fixes bug
19975 * Form.cs: no reason to call "base.Dispose()" here instead of
19978 2006-11-03 Mike Kestner <mkestner@novell.com>
19980 * ComboBox.cs : use ToString instead of casts in AddItem for
19981 sorting functionality. Fixes #79812.
19983 2006-11-03 Chris Toshok <toshok@ximian.com>
19985 * Application.cs: pave the way for actually using the thread
19986 exception dialog. it's ifdefed out at the moment.
19988 2006-11-03 Chris Toshok <toshok@ximian.com>
19990 * ThreadExceptionDialog.cs: until we get a better layout, actually
19991 hide the details textbox and label when we shouldn't see them.
19993 2006-11-03 Jackson Harper <jackson@ximian.com>
19995 * TextBoxBase.cs: Don't bail from the scrollbar calcs for non
19996 multiline textboxes anymore. This method also determines the
19997 width/height of a textboxes canvas area.
19998 - Sorta a revert of the last patch. For multiline just position
19999 the controls, then bail. This way the scrollbar width won't be
20002 2006-11-03 Everaldo Canuto <everaldo@simios.org>
20004 * ThemeWin32Classic.cs: Dont paint inner lines of 3D border when
20005 it dont need. Fixes #79537.
20007 2006-11-02 Jackson Harper <jackson@ximian.com>
20009 * X11Dnd.cs: We always allow copy, since XDND implies Copy. Also
20010 send the status after firing the DndOver event.
20012 2006-11-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
20014 * TrackBar.cs: Now orientation only switches height / width if
20015 the control's handle is created (Win32 does it like this). Also
20016 fixed a typo in ToString() for a test to pass, changed the
20017 exception thrown in set_LargeChange and set_SmallChange to
20018 match Win32 behaviour, and added TrackBar tests to the unit
20021 2006-11-02 Chris Toshok <toshok@ximian.com>
20023 * XplatUIX11.cs: the atom we want is _NET_WM_STATE_SKIP_TASKBAR,
20024 not _NET_WM_STATE_NO_TASKBAR.
20026 2006-11-02 Jackson Harper <jackson@ximian.com>
20028 * TextControl.cs: Increment count by one, since in the update view
20031 2006-11-02 Jackson Harper <jackson@ximian.com>
20033 * TextBoxBase.cs: Use client rectangle not bounds for checking if
20034 the mouse is in the client rectangle (duh).
20036 2006-11-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
20038 * TrackBar.cs: Fixed trackbar jumping around when clicking
20039 on it - the trackbar was not detecting correctly at which
20040 side of the thumb the click was done. (fixes #79718)
20042 2006-11-02 Everaldo Canuto <everaldo@simios.org>
20044 * ListBox.cs: scroll visible area when change SelectedIndex to
20045 a non visible area. Fixes #79481.
20047 2006-11-01 Jackson Harper <jackson@ximian.com>
20049 * TextControl.cs: When replacing the selection move the selection
20050 start/end/anchor to the end of the new text.
20052 2006-11-01 Jackson Harper <jackson@ximian.com>
20054 * XplatUIWin32.cs: When setting the parent change the controls
20055 visibility to it's visibility flag, not to it's old parents
20056 visibility (.Visible walks the parent chain).
20058 2006-11-01 Chris Toshok <toshok@ximian.com>
20060 * XplatUIX11.cs: revert the #79790 fix, as the simple.
20061 XSetTransientForHint fix breaks paint .net's tool windows. more
20062 work needed for that one.
20064 2006-11-01 Chris Toshok <toshok@ximian.com>
20066 * ScrollBar.cs: throw ArgumentException instead of Exception in
20067 LargeChange/SmallChange setters. fixes unit tests.
20069 2006-10-31 Andreia Gaita <shana.ufie@gmail.com>
20071 * ContainerControl.cs: reverted rev.67183 (which was itself
20072 a reversion of rev.66853... eh).
20074 * Control.cs: Fixes Reflector hang by changing Focus() call
20075 to what it was before rev.66643 (calling Select() here sets
20076 ActiveControl, which in some situations calls back Focus and
20077 eventually does a stack overflow). Temp fix.
20078 Changes to GetNextControl() to not look for children to select when
20079 parent cannot be selectable (so it looks for siblings instead)
20081 2006-10-31 Mike Kestner <mkestner@novell.com>
20083 * CheckedListBox.cs : off by one error in returned index from
20084 ObjectCollection.Add. Fixes #79758.
20086 2006-10-31 Chris Toshok <toshok@ximian.com>
20088 * UpDownBase.cs: remove the OnGotFocusInternal/OnLostFocusInternal
20089 calls for the textbox/spinner, to keep from recursing to the point
20090 where we crash. Fixes #79760.
20092 2006-10-31 Chris Toshok <toshok@ximian.com>
20094 * ListControl.cs (set_SelectedValue): don't throw exceptions on
20095 null/"" value, just return. matches ms's behavior and fixes some
20098 2006-10-31 Chris Toshok <toshok@ximian.com>
20100 * Control.cs (set_Capture): make a logic a little easier to
20103 * XplatUIX11.cs (CleanupCachedWindows): zero out the Grab window
20104 if it's being destroyed. A necessary fix surely, but a bandaid
20105 also, to fix the stuck capture problem in bug #78413.
20107 2006-10-31 Chris Toshok <toshok@ximian.com>
20109 * XplatUIX11.cs: fix a couple of compiler warnings, and follow the
20110 convention of clearing hwnd.ClientRect when we set the
20111 width/height (so it'll be recalculated by Hwnd).
20113 2006-10-31 Andreia Gaita <shana.ufie@gmail.com>
20115 * ContainerControl.cs: reversed Contains check from
20116 ActiveControl due to hanging problems. This fix
20117 partly regresses #79667 (button does not have
20118 initial focus), so this might be a symptom for
20119 a larger parenting problem (set_ActiveControl
20120 is being called but the child control does
20121 not have the parent set yet?)
20123 2006-10-31 Mike Kestner <mkestner@novell.com>
20125 * MenuAPI.cs : fix keynav when menu is click activated.
20127 2006-10-31 Jonathan Pobst <monkey@jpobst.com>
20129 * ToolStrip*: Version 0.2.
20131 * MenuStrip.cs: Version 0.1.
20133 * Form.cs: Add a 2.0 MenuStrip tracker like the 1.1 Menu one.
20135 2006-10-30 Chris Toshok <toshok@ximian.com>
20137 [ fixes the oversized notify icon issue in bug #79745 ]
20139 * NotifyIcon.cs: scale the icon down to the size we're given by
20140 the XplatUI layer (this would be faster if we did it once instead
20141 of whenever we paint..) Also, remove the WM_NCPAINT handling,
20142 since it's never invoked.
20144 * XplatUIX11.cs: the gnome and kde systrays use icons that are 24
20145 pixels high by default, so let's hardcode our systray icon to that
20146 size. The SYSTEM_TRAY protocol should really have a way for
20147 client apps to query for the correct icon size.. but oh well. A
20148 couple of patches to deal with the screwy client_window ==
20149 whole_window notifyicon stuff (we don't want to PerformNCCalc, for
20150 instance, and also make sure we don't XSelectInput twice).
20152 2006-10-30 Chris Toshok <toshok@ximian.com>
20154 * Control.cs: ugh, the unit test fix (CH11, yesterday) breaks when
20155 recreating forms. Control recreation is the bane of my existence.
20156 Fix it in a way that keeps everyone happy.
20158 2006-10-30 Chris Toshok <toshok@ximian.com>
20160 * XplatUIX11.cs: use StructureNotifyMask on all whole_windows, not
20161 just non-CHILD ones. otherwise sometimes scrollbars end up with
20162 client_windows not being resized to the proper size (ReportBuilder
20163 shows this extremely well).
20165 2006-10-30 Chris Toshok <toshok@ximian.com>
20167 * XplatUIX11.cs (SetWMStyles): reinstate the XSetTransientForHint
20168 for non-WS_EX_APPWINDOW windows. This is what keeps them from
20169 showing up in the gnome taskbar. Fixes bug #79790.
20171 2006-10-30 Chris Toshok <toshok@ximian.com>
20173 * ApplicationContext.cs: guard against a NRE.
20175 * Application.cs: null out the old MainForm for the context, so we
20176 don't try to use it again once it's disposed. Fixes bug #79783.
20178 2006-10-30 Chris Toshok <toshok@ximian.com>
20180 * DataGrid.cs (set_DataSource, set_DataMember): if we have a
20181 BindingContext, set the data source directly, otherwise do the
20182 lazy approach - the actual ListManager will be created when we get
20183 a BindingContext. Fixes bug #79700.
20185 2006-10-30 Jonathan Pobst <monkey@jpobst.com>
20187 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
20188 XplatUIX11.cs: Remove old 2 parameter SetVisible.
20190 * Control.cs: Use the new 3 parameter SetVisible with activate = true.
20192 2006-10-30 Jonathan Pobst <monkey@jpobst.com>
20194 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Add an overload
20195 of SetVisible that allows a window to be shown, but not activated.
20196 This is needed on Windows for MenuStrip, and can probably be used
20197 with MainMenu and ComboBox to fix the focus stealing issues on
20200 * XplatUIOSX.cs, XplatUIX11.cs: Not needed, call existing SetVisible.
20202 2006-10-30 Alexander Olk <alex.olk@googlemail.com>
20204 * PictureBox.cs: Fix the output of the ToString method.
20206 2006-10-29 Chris Toshok <toshok@ximian.com>
20208 * Control.cs (get_TopLevelControl): fix bug #79781.
20210 2006-10-29 Chris Toshok <toshok@ximian.com>
20212 * ListControl.cs (set_DataSource): throw Exception here, not
20213 ArgumentException, to match MS behavior.
20215 2006-10-29 Chris Toshok <toshok@ximian.com>
20217 * Form.cs: remove the try-catch's around calls to GetWindowState.
20218 We can just check the return value.
20220 * XplatUIX11.cs: don't throw exceptions from GetWindowState.
20223 * XplatUI.cs: Add note about additional return value for
20226 2006-10-29 Chris Toshok <toshok@ximian.com>
20228 * Control.cs (CreateHandle): when we create our handle, we also
20229 create the handles of our child controls. Fixes one of the
20230 Control unit tests (CH11).
20232 2006-10-28 Alexander Olk <alex.olk@googlemail.com>
20234 * MimeIcon.cs: If a gnome icon doesn't exist add a default icon.
20236 2006-10-28 Alexander Olk <alex.olk@googlemail.com>
20238 * ThemeClearlooks.cs: A little speedup.
20240 2006-10-27 Chris Toshok <toshok@ximian.com>
20242 * Control.cs: implement Control.FromChildHandle in a way that
20243 matches the docs (and fixes the failed test.)
20245 2006-10-27 Chris Toshok <toshok@ximian.com>
20247 * DataGridTableStyle.cs: reproduce buggy MS behavior (with
20250 * DataGrid.cs: implement ResetForeColor such that the tests
20253 2006-10-27 Chris Toshok <toshok@ximian.com>
20255 * ToolBarButton.cs: setting text/tooltiptext to null results in it
20256 being set to "". Fixes bug #79759.
20258 2006-10-27 Jackson Harper <jackson@ximian.com>
20260 * TextControl.cs: We need to clear the entire selection area when
20261 setting the start, otherwise multiline selections are still
20264 2006-10-26 Chris Toshok <toshok@ximian.com>
20266 * PropertyGridView.cs:
20268 - ifdef all the code specific to the double
20269 buffer case, and provide some alternatives in the non-doublebuffer
20270 code, which makes heavy use of XplatUI.ScrollWindow to move things
20271 around without having to invalidate (and cause flicker). There
20272 are still some drawing problems in the non-doublebuffered case, so
20273 DOUBLEBUFFER is defined by default.
20275 - Fix the way dropdowns are handled. now we explicitly watch for
20276 the events which might cause the dropdown to close, and break out
20277 of the nested event loop there. This gets rid of all Capture
20278 code, at the expense of the Msg special casing. Seems to work,
20279 though, and fixes bug #79743.
20281 2006-10-27 Rolf Bjarne Kvinge <RKvinge@novell.com>
20282 * Control.cs: SetIsRecreating now recreates implicitly added
20283 child controls as well. Finally fixes #79629. The flag passed to
20284 SetIsRecreating has also been removed since it wasn't used.
20286 2006-10-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
20288 * PageSetupDialog.cs: Clean some code, fix some bits,
20289 add some checks, and add a printer sub-dialog.
20291 2006-10-26 Chris Toshok <toshok@ximian.com>
20293 * PropertyGrid.cs: make set_SelectedObject call
20294 set_SelectedObjects, and move the duplicate logic to the
20295 SelectedObjects setter. Also, raise SelectedObjectsChanged.
20297 * PropertyGridView.cs: hide the textbox when we get a
20298 SelectedObjectsChanged event.
20302 2006-10-26 Chris Toshok <toshok@ximian.com>
20304 * PropertyGridView.cs: deal with the type converter not supporting
20305 GetStandardValues() or GetStandardValues() returning null, which
20306 is does in the default case. Fixes #79742.
20308 2006-10-25 Andreia Gaita <shana.ufie@gmail.com>
20310 * CheckedListBox.cs: nunit no longer crashes when selecting
20311 Project/Edit menu option
20313 2006-10-25 Andreia Gaita <shana.ufie@gmail.com>
20315 * MenuAPI.cs: prevent ExecFocusedItem from blowing up if there
20316 is no menu selected. fixes #79739
20318 2006-10-25 Chris Toshok <toshok@ximian.com>
20320 * PropertyGridView.cs: factor out the splitter invalidation code
20321 into the SplitterPercent setter, and for kicks implement the
20322 Ctrl-Left/Ctrl-Right handling that moves the splitter by a small
20323 amount in either direction.
20325 2006-10-25 Chris Toshok <toshok@ximian.com>
20327 * PropertyGridView.cs: do some cleanup of the brush used to draw
20328 text - read only fields should be grayed out. not sure how to do
20329 this with the textbox, though. but the textbox's should also be
20330 readonly now at least. Also, hide/show the textbox when resizing
20333 * CursorConverter.cs: use System.Reflection when getting the
20334 properties of Cursors, as TypeDescriptor.GetProperties isn't
20335 returning static properties.
20337 2006-10-25 Chris Toshok <toshok@ximian.com>
20339 * PropertyGridView.cs: factor out the up/down handling, and reuse
20340 it for page up/down. also add End/Home support.
20342 2006-10-25 Chris Toshok <toshok@ximian.com>
20344 * PropertyGridView.cs:
20346 - ensure the selected grid item is visible in the scrolled area,
20349 - fix Keys.Down handling when you're on the last item in the
20352 2006-10-25 Mike Kestner <mkestner@novell.com>
20354 * MenuAPI.cs : set the ActiveTracker for MainMenu non-popup
20355 clicks too. Fixes #79725.
20357 2006-10-24 Chris Toshok <toshok@ximian.com>
20359 * PropertyGrid.cs: use property.Converter instead of
20360 TypeDescriptor.GetConverter(property.PropertyType), so we catch
20361 TypeConverters declared on the property as well as on the
20362 PropertyType. Fixes bug #79678.
20364 2006-10-24 Alexander Olk <alex.olk@googlemail.com>
20366 * MimeIcon.cs, Mime.cs:
20367 Fallback to the default platform handler if no shared mime info
20368 stuff exists (fixes #79693).
20370 2006-10-20 Andreia Gaita <shana.ufie@gmail.com>
20371 * ContainerControl.cs: Incorrect contains check in ActiveControl
20372 from previous fix (duh).
20374 2006-10-20 Chris Toshok <toshok@ximian.com>
20376 * PropertyGridView.cs: the dropdown should be MIN(number of items
20377 in list, 15). Fixes #79551.
20379 2006-10-20 Andreia Gaita <shana.ufie@gmail.com>
20380 Fixes #79384, #79394, #79652, #79667
20383 - Modal windows are now destroyed in the proper order for windows
20385 * ContainerControl.cs:
20387 - ActiveControl setter has more conditions on when to return:
20388 - if we're reselecting the active control, but it actually
20389 didn't have focus (window hidden or some such), it runs
20390 - if the active control being selected doesn't actually
20391 exist in the container, it returns
20395 - The ShowDialog now gets the current form as the owner when
20396 invoking without parameters, and correctly activates the owner
20401 - MessageBox now catches the Escape key to exit
20403 2006-10-20 Chris Toshok <toshok@ximian.com>
20405 * PropertyGridView.cs: fix a number of issues (bug #78565, and
20406 most of bug #79676):
20408 - you can navigate around the property grid with the arrow keys.
20410 - the dropdown is sized properly when the pg has a vertical
20413 - fix the indentation for subentries, and properly select the
20416 - fix the gray bar's drawing (only draw it to the last element,
20417 not for the height of the control. Also make sure we draw that
20418 last horizontal grid line.
20420 - use the same mechanism the datagrid uses wrt the editing textbox
20421 when scrolling/resizing/etc. Namely, we hide it first, do the
20422 operation, then show it again (if it's still visible).
20424 - aggressively remove a lot of unnecessary refreshes (and also
20425 calls to Invalidate(). call more limited variants, and only redraw
20430 - when we're populating the merged collection, fill in the UI
20431 parent with either the passed in item, or the category item we
20434 - remove the Refresh call from the BorderHelpControl.OnSizeChanged.
20436 * GridItem.cs: drop some fully qualified names.
20438 * GridEntry.cs: add a "UIParent", which is basically the parent
20441 * GridItemCollection.cs: add an IndexOf method.
20443 2006-10-20 Mike Kestner <mkestner@novell.com>
20445 * MainMenu.cs : go back to Draw in OnMenuChanged. Until we get
20446 a working win32 NC invalidation mechanism, we can't invalidate
20447 menus. [Fixes #79705]
20449 2006-10-20 Mike Kestner <mkestner@novell.com>
20451 * ListBox.cs : don't update the VScrollbar if the list is empty,
20452 just hide it. [Fixes #79692]
20454 2006-10-20 Jackson Harper <jackson@ximian.com>
20456 * RichTextBox.cs: Handle some special chars better, and don't skip
20457 the entire group when we encounter a special char that we don't
20460 2006-10-18 Chris Toshok <toshok@ximian.com>
20462 * PropertyGridView.cs: address a number of issues from bug #79676,
20463 mostly of the cosmetic variety.
20465 - The highlight rectangle for indented items not extends all the
20468 - Indented items aren't indented so much.
20470 - the dropdown is properly sized width-wise if the pg has a
20471 vertical scrollbar.
20473 2006-10-18 Chris Toshok <toshok@ximian.com>
20475 * XplatUIX11.cs (SystrayAdd): a rather convoluted change, but the
20476 systray stuff is rather convoluted to begin with.
20478 systray icons are a single window for some reason (that I haven't
20479 figured out yet), and for them, client_window == whole_window.
20480 Given the way the tests are structured elsewhere to determine
20481 which paints are pending (client vs. nc), that situation will
20482 always yield PAINT, not NCPAINT. So, if we have a pending
20483 nc_expose and no pending expose, remove the hwnd from the paint
20484 queue, and also set nc_expose_pending to false, to keep us from
20485 blocking further expose's adding the hwnd to the paint queue.
20487 phew. like i said, a rather convoluted change. Fixes the
20488 notifyicon repaint issues in bug #79645.
20490 2006-10-18 Chris Toshok <toshok@ximian.com>
20492 * Form.cs: when getting the backcolor of the form, don't get
20493 base.BackColor, as this allows parents to influence the background
20494 color. This breaks mdi forms. Instead, if the background_color
20495 is empty, return the default.
20497 2006-10-18 Chris Toshok <toshok@ximian.com>
20499 * XplatUIX11.cs: change some debug ifdefs, and return XGetParent
20500 to being private instead of internal static.
20502 * Control.cs: remove all the stupid ParentWaitingOnRecreation
20503 crap, it wasn't working for more deeply nested controls anyway,
20504 and we already have the is_recreating flag - use that instead.
20505 Before calling DestroyHandle in RecreateHandle, recurse through
20506 the control tree setting it to true. this returns the recreate
20507 code to much of its original simplicity, while now guaranteeing we
20508 actually recreate everything we're supposed to. This change gets
20509 fyireporting actually showing mdi children.
20511 2006-10-17 Chris Toshok <toshok@ximian.com>
20513 * Form.cs: remove some debug spew, and collapse some duplicate
20514 code at the end of SetClientSizeCore.
20517 - add some more debug spew here too wrt Destroy handling.
20518 - don't call hwnd.Dispose in DestroyWindow, it's effectively done
20519 in Control's handling of WM_DESTROY.
20520 - Remove the handling of zombie window DestroyNotifies from the
20521 event loop - we don't need it. Now the only DestroyNotifies we
20522 actually handle are ones generated by X.
20523 - When sending _NET_ACTIVE_WINDOW, the first param should be 1, to
20524 match gtk's (functioning) handling of this. This keep metacity
20525 from leaving droppings in the form of wm borders with no window
20526 contents all over the place.
20529 - add a bunch of debug spew wrt control recreation.
20530 - fix a bug where we weren't tracking Visible properly on
20532 - fixed the WM_PAINT double buffer handling to support re-entrant
20533 calls (yes, i know it's gross, but it's happening to us).
20535 2006-10-17 Rolf Bjarne Kvinge <rolfkvinge@ya.com>
20536 * ThemeWin32Classic.cs: changed drawing of selected days
20537 to make them look better.
20539 2006-10-16 Chris Toshok <toshok@ximian.com>
20541 * Hwnd.cs: replace the user_data/client_dc/non_client_dc with
20542 drawing_stack. Nuke the ClientDC/NonClientDC properties.
20544 * XplatUIX11.cs: move away from using hwnd.client_dc and
20545 hwnd.non_client_dc and on to a stack of dc's (and in window's
20546 case, PAINTSTRUCT's), so we can deal with nested Paint calls
20547 without puking or not disposing of Graphics objects.
20549 * XplatUIOSX.cs: same.
20551 * XplatUIWin32.cs: same.
20553 2006-10-03 Alexander Olk <alex.olk@googlemail.com>
20555 * FileDialog.cs: Don't call on_directory_changed inside
20556 OnSelectedIndexChanged (it changes the SelectedIndex too).
20557 Instead move it to OnSelectionChangeCommitted.
20559 2006-10-13 Chris Toshok <toshok@ximian.com>
20561 * XplatUIX11.cs: more Destroy work. the current code does the
20562 following things, in order:
20564 1. Enumerates all handles of all controls at or below the one
20565 being destroyed, in pre-order. As it is doing this, it marks the
20566 handles as zombie and clears all references to them.
20568 2. calls XDestroyWindow on the window passed in.
20570 3. SendMessage's WM_DESTROY to all he handles in the accumulated
20573 2006-10-13 Chris Toshok <toshok@ximian.com>
20575 * XplatUIX11.cs: set hwnd.zombie to true before calling
20576 SendMessage (WM_DESTROY). this keeps us from marking the new
20577 window a zombie, and also keeps us from calling sendmessage at
20580 2006-10-13 Jackson Harper <jackson@ximian.com>
20582 * TextControl.cs: Do not show the caret and selection at the same
20583 time. Reduces ugliness by 35%.
20585 2006-10-13 Chris Toshok <toshok@ximian.com>
20587 * XplatUIX11.cs (SendWMDestroyMessages): set the hwnd to be a
20588 zombie after we do the recursive call, so we actually do call
20589 SendMessage on the children controls.
20590 (GetMessage): if we find a pending paint event for a zombie hwnd,
20591 remove the hwnd from the paint queue, or else it will always be
20592 there (and we'll effectively loop infinitely)
20594 2006-10-13 Mike Kestner <mkestner@novell.com>
20596 * MenuItem.cs : add Selected format under keynav too.
20599 2006-10-13 Gert Driesen <drieseng@users.sourceforge.net>
20601 * PropertyGrid.cs: Fixed some NRE's and small difference between our
20602 implementation and that of MS.
20604 2006-10-13 Chris Toshok <toshok@ximian.com>
20606 * Control.cs (OnInvalidated) only futz with the invalid_region if
20607 the control is double buffered. this fixes the apparent hang in
20608 the ListView unit tests. Someone needs to make the
20609 BeginEndUpdateTest not call OnInvalidated 15004 times, though..
20611 2006-10-13 Chris Toshok <toshok@ximian.com>
20613 * PropertyGridView.cs:
20615 - do a little refactoring so that only one place calls
20616 dropdown_form.Hide, and that is CloseDropDown. make everywhere
20617 else call that. Also make it Refresh, since there are redraw bugs
20618 otherwise (we should take a look at that...)
20620 - do a little more refactoring work to share the body of code
20621 involved with the drop down. it was duplicated in the code
20622 dealing with the listbox handling and in the code dealing with the
20625 - add a Capture to the dropdown form's control once it's
20626 displayed, and add a MouseDown handler that checks to make sure
20627 the position is inside the control. If it's not, close the
20628 dropdown. This fixes #78190.
20630 - in SetPropertyValueFromUITypeEditor, only call SetPropertyValue
20631 if the value is different than the initial value.
20633 2006-10-13 Andreia Gaita <shana.ufie@gmail.com>
20635 * Control.cs: see #78650
20636 - Fixed GetNextControl for several cases:
20637 - Changed FindFlatForward to return
20638 correct sibling control when more than one
20639 control has same TabIndex as the currently
20641 - Changed FindFlatBackward to loop children
20642 from last to first and apply same logic as in
20644 - Changed FindControlForward to search for
20645 children when control is not a container
20646 but has children, or search for siblings if
20647 control is a container...
20648 - Changed FindControlBackward to continue
20649 searching for child controls when hitting
20652 - Fixed Focus method to update ActiveControl
20653 (FocusTest.FocusSetsActive failure)
20656 - Focus rectangle now refreshes when gaining
20658 - Removed grab for Tab key on IsInputKey that
20659 was keeping tab navigation from working (#78650)
20661 2006-10-13 Chris Toshok <toshok@ximian.com>
20663 * PropertyGridView.cs:
20664 - Rewrite SetPropertyValue to loop over SelectedGridItem's
20667 - Deal with GridItem.Value == null a few places.
20670 - replace the PopulateGridItemCollection with a pair of methods
20671 which compute the intersection of all the properties in the
20672 SelectedObjects array. Fixes #79615.
20674 - Throw ArgumentException from set_SelectedObjects if there's a
20677 - Add GetTarget method which can be used to traverse up the
20678 GridItem.Parent chain. It depends on the assumption that
20679 selected_objects for different GridEntries are always in the same
20680 order (a safe assumption). Use this method and loop over all the
20681 selected objects in the entry when calling RemoveValueChanged and
20684 * GridEntry.cs: Make this handle multiple selected objects.
20685 .Value returns null if not all the selected objects share the same
20688 2006-10-12 Jonathan Pobst <monkey@jpobst.com>
20689 * ToolStrip.cs, ToolStripButton.cs, ToolStripComboBox.cs,
20690 ToolStripControlHost.cs, ToolStripItem.cs, ToolStripLabel.cs,
20691 ToolStripProfessionalRenderer.cs, ToolStripProgressBar.cs,
20692 ToolStripSeparator.cs, ToolStripSplitStackLayout.cs,
20693 ToolStripTextBox.cs: Add accessibility, fix attributes/API and
20694 add additional functionality.
20696 2006-10-12 Mike Kestner <mkestner@novell.com>
20698 * ErrorProvider.cs : new ToolTipWindow ctor sig.
20699 * HelpProvider.cs : new ToolTipWindow ctor sig.
20700 * ToolTip.cs : remove ToolTip param from Window sig since it is
20702 * ToolBar.cs : add tooltip support. Fixes #79565.
20704 2006-10-12 Rolf Bjarne Kvinge <rolfkvinge@ya.com>
20706 * ComboBox.cs: move the events in set_SelectedIndex to
20707 after the call to HighlightIndex in order to avoid
20708 possible recursion and subsequent problems with the call
20709 to HighlightIndex and include a range check in
20710 set_HighlightIndex. Fixes #79588
20712 2006-10-12 Rolf Bjarne Kvinge <rolfkvinge@ya.com>
20714 * MonthCalendar.cs: When FirstDayOfWeek is default set firstday
20715 to ui thread's settings instead of sunday.
20716 * ThemeWin32Classic.cs: Localize the day string. Fixes #79563
20718 2006-10-12 Rolf Bjarne Kvinge <rolfkvinge@ya.com>
20720 * DateTimePicker.cs
20722 * ThemeWin32Classic.cs: rewrote DateTimePicker to fix bug #78364
20723 and implement missing functionality (selecting different parts
20724 of the date and edit them individually with the keyboard).
20726 2006-10-11 Chris Toshok <toshok@ximian.com>
20728 * Control.cs (OnInvalidated): fix NRE relating to last change.
20730 2006-10-11 Chris Toshok <toshok@ximian.com>
20732 * XplatUIX11.cs (SetWMStyles): make sure we include the MAXIMIZED
20733 atoms in _NET_WM_STATE here if the window is maximized. We need
20734 to do this because we're *replacing* the existing _NET_WM_STATE
20735 property, so those atoms will be lost otherwise, and any further
20736 call to GetWindowState will return Normal for a window which is
20737 actually maximized. Fixes #79338.
20739 2006-10-11 Jackson Harper <jackson@ximian.com>
20741 * TextControl.cs: Special case for setting selection end to
20742 selection start, we basically kill the anchor.
20743 - some todo comments.
20745 2006-10-11 Chris Toshok <toshok@ximian.com>
20747 * Control.cs: switch to using an "invalid_region" to track which
20748 parts of the image buffer need updating. This is more code than
20749 the simple fix from r66532. That version just attempted to always
20750 fill the entire buffer on redraw, which turns out to be
20751 inefficient when invalidating small rectangles. This version
20752 simply adds the invalid rectangle to the invalid region. When we
20753 get any WM_PAINT message we see if it can be filled using the
20754 image buffer, and if it can't (if the paint event's clip rectangle
20755 is visible in the invalid region) we first fill the image buffer.
20756 So, the image buffer is still a cache, we just fill it lazily.
20758 * PaintEventArgs.cs: remove the SetClipRectangle method, we don't
20759 need it any longer.
20761 2006-10-11 Chris Toshok <toshok@ximian.com>
20763 * XplatUIX11.cs (SetWindowPos): we need to update both position as
20764 well as size after calling XMoveResizeWindow. This keeps us from
20765 ignoring future SetWindowPos calls. Fixes the disappearing
20766 DateTimePicker in the ToolBarDockExample from bug #72499.
20768 2006-10-11 Chris Toshok <toshok@ximian.com>
20770 * TextBoxBase.cs: reorder things a bit when it comes to
20771 resizing-causing-recalculation. we were recalculating the
20772 document when our position was changed, which shouldn't happen.
20773 We only care about size changes. Clear up some more redundant
20774 recalculation calls while I'm at it. This makes the toolbar dock
20775 example snappy when you're just dragging toolbars around (since it
20776 causes a relayout whenever you move one.)
20778 2006-10-11 Chris Toshok <toshok@ximian.com>
20780 * ToolBarButton.cs (get_Rectangle): this only returns
20781 Rectangle.Empty if Visible == false, or Parent == null.
20782 Parent.Visible doesn't matter.
20784 2006-10-10 Chris Toshok <toshok@ximian.com>
20786 * Control.cs, PaintEventArgs.cs: "internal set { .. }" isn't loved
20787 by .net 1.1, so switch to an internal method instead.
20789 2006-10-10 Chris Toshok <toshok@ximian.com>
20791 * Control.cs (WM_PAINT): when a control is double buffered we draw
20792 initially to the ImageBuffer and then copy from there. But when a
20793 parent control which has child controls is double buffered, the
20794 initial drawing doesn't encompass the entire ClientRectangle of
20795 the parent control, so we end up with uninitialized bits (this is
20796 easily seen by dragging the top toolbar in
20797 wf-apps/ToolBarDockExample to the right, quickly). The fix is to
20798 manually set the ClipRectangle of the paint_event (only the one we
20799 use to populate the ImageBuffer) to ClientRectangle. Fixes more
20800 of the nastiness in bug #72499.
20802 * PaintEventArgs.cs: Add an internal setter for ClipRectangle,
20803 which we use in Control.cs's WM_PAINT handling.
20805 2006-10-10 Jackson Harper <jackson@ximian.com>
20807 * TextBoxBase.cs: Finish off the autoscrolling stuff.
20809 2006-10-10 Chris Toshok <toshok@ximian.com>
20811 * Cursor.cs: Apply a slightly different patch to the one suggested
20814 2006-10-10 Jackson Harper <jackson@ximian.com>
20816 * MenuItem.cs: Make sure to put the mdi child in the hashtable,
20817 not the parent form.
20818 * TextControl.cs: use difference in old line count vs new count to
20819 calculate how many lines were added, this takes into account soft
20820 line breaks properly.
20822 2006-10-10 Chris Toshok <toshok@ximian.com>
20824 * LinkLabel.cs: don't call MeasureCharacterRanges against a
20825 rectangle located at 0,0 and the size of the text. Use
20826 ClientRectangle instead. This fixes rendering of non-left aligned
20829 2006-10-10 Jackson Harper <jackson@ximian.com>
20831 * TextBoxBase.cs: When we set the selection start position the
20833 * TextControl.cs: Need to update the caret when we decrement it to
20835 - Make sure that the selection_visible flag gets reset to false if
20836 the selection isn't visible. Before this you could get it set to
20837 visible by changing the selection start, then changing the end to
20840 2006-10-09 Jackson Harper <jackson@ximian.com>
20842 * TreeView.cs: Don't update scrollbars when we aren't visible.
20843 * TreeNodeCollection.cs: Only need to update scrollbars if being
20844 added to an expanded visible node or the root node.
20846 2006-10-09 Chris Toshok <toshok@ximian.com>
20848 * XplatUIX11.cs (SendMessage): fix NRE.
20850 2006-10-09 Jackson Harper <jackson@ximian.com>
20852 * TextBoxBase.cs: Implement horizontal autoscrolling.
20853 * TextControl.cs: Add a movement types that allows moving forward
20854 and backwards without wrapping.
20856 2006-10-09 Mike Kestner <mkestner@novell.com>
20858 * ListViewItem.cs : layout changes for wrapped LargeIcon labels
20859 with focus "expansion" of labels. Fixes #79532 and then some.
20860 * ThemeWin32Classic.cs : add LineLimit to ListView label format
20863 2006-10-09 Jackson Harper <jackson@ximian.com>
20865 * TextBoxBase.cs: Set the default max values to MaxValue since
20866 we use the scrollbar for autoscrolling and the default value is
20867 100. If we don't do this the caret won't keep up with typing
20868 after about 18 characters.
20869 * TextControl.cs: Make sure the selection is offset by the
20870 viewport x. This fixes selection when using auto scrolling.
20872 2006-10-07 Andreia Gaita <shana.ufie@gmail.com>
20874 * Form.cs: The active control should be selected after the
20875 OnLoad so that any child control initialization that affects
20876 the selection is done. Fixes #79406
20878 2006-10-06 Chris Toshok <toshok@ximian.com>
20880 * XplatUIX11.cs: This is perhaps a dangerous change, but it seems
20881 to have no evil effects.
20883 - Stop selecting StructureNotifyMask on non-toplevel windows.
20885 The only way children should be resized is by using the SWF api,
20886 and we already send WM_WINDOWPOSCHANGED messages in those cases.
20887 Toplevel windows can be interacted with via the window manager,
20888 and so we keep the input mask there.
20890 The other event StructureNotifyMask gives us (that we care
20891 about) is DestroyNotify. The code is already structured such
20892 that it assumes we won't be getting a DestroyNotify event for
20893 the window we pass to XDestroyWindow (which is what
20894 StructureNotifyMask is supposed to guarantee.) So, that code
20895 shouldn't be affected by this either.
20897 - Stop selecting VisibilityChangeMask altogether.
20899 We weren't doing anything with the resulting events anyway.
20901 This vastly reduces the number of X requests and events we see
20902 when resizing/laying out a large ui.
20904 2006-10-06 Chris Toshok <toshok@ximian.com>
20906 * ScrollableControl.cs (DisplayRectangle): we need to take into
20907 account the DockPadding regardless of whether or not auto_scroll
20908 == true. rework this slightly to this effect, and fix bug #79606,
20909 and part of #72499 (you can now see the drag handles and drag
20912 2006-10-06 Gert Driesen <drieseng@users.souceforge.net>
20914 * ListViewItem.cs: Collections of selected and checked items are now
20915 dynamically rebuilt. Whenever an item is (un)checked or (de)selected
20916 we mark the collection "dirty".
20917 * ListView.cs: Marked collections readonly. Modified UpdateSelection
20918 to only clear SelectedItems when a new item is selected and MultiSelect
20919 is enabled. CheckedItems and SelectedItems now subscribe to Changed
20920 event of ListViewItemCollection, and mark its list dirty whenever
20921 that event is fire. This allows us to return selected/checked items
20922 in the same order as they are in the Items collection. This matches
20925 2006-10-06 Chris Toshok <toshok@ximian.com>
20927 * NotifyIcon.cs (HandleMouseUp): only show the context menu on
20928 right mouse clicks. Fixes bug #79593.
20930 2006-10-06 Chris Toshok <toshok@ximian.com>
20932 * Splitter.cs: doh, fix splitters that don't want to cancel the
20933 movement when you drag them. Also, impose the limits on the
20934 values we send to the SplitterMovingEvent. Fixes #79598.
20936 2006-10-06 Jackson Harper <jackson@ximian.com>
20938 * TextBoxBase.cs: Ignore whether or not the scrollbar is enabled,
20939 since we use this for auto scrolling also.
20941 2006-10-05 Chris Toshok <toshok@ximian.com>
20943 * DataGridBoolColumn.cs: Nuke the code from ConcedeFocus. I'm
20944 beginning to think that most datagrid column types don't need this
20945 method. Fixes bug #79392.
20947 2006-10-05 Chris Toshok <toshok@ximian.com>
20949 * DataGrid.cs: move back to a more lazy scheme for creating the
20950 CurrencyManager, so we aren't updating it every time you set
20951 either DataSource or DataMember. Also, don't call
20952 RecreateDataGridRows if the currency manager hasn't changed.
20954 2006-10-05 Chris Toshok <toshok@ximian.com>
20956 * ComboBox.cs: by the time the OnSelectionChangeCommitted event is
20957 emitted, SelectedIndex should already be updated. Fixes bug
20960 2006-10-05 Jonathan Pobst <monkey@jpobst.com>
20962 * ToolStripComboBox.cs, ToolStripControlHost.cs, ToolStripProgressBar,
20963 ToolStripTextBox.cs: Initial commit.
20964 * ToolStripItem.cs: Fixes for OnLayout, BackColor, Parent.
20966 2006-10-05 Jackson Harper <jackson@ximian.com>
20968 * TabControl.cs: We need to invalidate the tab control area when
20969 new ones are added (duh).
20971 2006-10-03 Chris Toshok <toshok@ximian.com>
20973 * Form.cs (ProcessDialogKey): if the focused control is in this
20974 form and is a button, call its PerformClick method here. Fixes
20977 2006-10-04 Jackson Harper <jackson@ximian.com>
20979 * TabPage.cs: Ignore setting of Visible, and add an internal
20980 method for setting the controls visibility. TabPage's Visible
20981 property is a little strange on MS, this seems to make us
20982 compatible, and fixes cases where people set all the tab pages to
20984 * TabControl.cs: Use the new internal setting on tab pages
20987 2006-10-03 Mike Kestner <mkestner@novell.com>
20989 * ComboBox.cs : raise Click on ComboTextBox clicks. Fixes #79555.
20991 2006-10-03 Mike Kestner <mkestner@novell.com>
20993 * ListView.cs : use is_visible instead of Visible to check if
20994 scrollbars should be placed/sized. Also some max_wrap_width
20995 love for LargeIcon view. [Fixes #79533]
20997 2006-10-03 Atsushi Enomoto <atsushi@ximian.com>
21000 Make set_TextAlign() do actually update the align. Fixed #78403.
21002 2006-10-03 Chris Toshok <toshok@ximian.com>
21004 * DataGrid.cs: fix a crash when switching datasources if the
21005 vertical scrollbar is at someplace other than Value = 0. Also,
21006 reduce the number of recalculation passes we do in SetDataSource
21009 2006-10-03 Jackson Harper <jackson@ximian.com>
21011 * TextBoxBase.cs: Move the if value the same bail check up, we
21012 don't want to empty the document if it is already empty, this
21013 seems to severly mess up the caret. TODO: I should probably fix
21014 the empty statement to update teh caret somehow.
21016 2006-10-03 Chris Toshok <toshok@ximian.com>
21018 * ThemeWin32Classic.cs, DataGrid.cs: some changes so that the
21019 incredibly hacky Windows.Forms FAQ autosize rows entry (it uses
21020 reflection, an internal row type, properties on said type, etc.)
21021 will work with our datagrid. Fixes #79531.
21023 2006-10-03 Alexander Olk <alex.olk@googlemail.com>
21025 * FileDialog.cs: Don't crash if a path is not accessible
21026 (System.UnauthorizedAccessException). Fixes #79569.
21027 * MimeIcon.cs: Workaround for a Uri bug. Unix paths/files can have
21028 a ':' too. Return unknown icon for those paths/files.
21030 2006-10-03 Sebastien Pouliot <sebastien@ximian.com>
21032 * ToolTip.cs: Fix rare, but possible, NRE on MouseEnter when
21033 GetContainerControl returns null.
21035 2006-10-02 Chris Toshok <toshok@ximian.com>
21037 * XplatUIX11.cs (GetWindowState): use hwnd.client_window in the
21038 call to XGetWindowAttributes instead of "handle". fixes an X
21039 error using notifyicon after the NotifyIconWindow to Form base
21042 2006-10-02 Chris Toshok <toshok@ximian.com>
21044 * XplatUIX11.cs (QueryPointer): new function, encapsulating the
21045 server grab and looping we need to do to get down to the most
21046 deeply nested child window.
21047 (SetCursorPos): use QueryPointer instead of GetCursorPos, and call
21048 QueryPointer again after the WarpPointer so we can generate a
21049 proper (fake) MotionNotify event to be enqueued in the destination
21051 (GetCursorPos): call QueryPointer.
21055 2006-10-02 Jackson Harper <jackson@ximian.com>
21057 * NotifyIcon.cs: Derive the notify icon from a form, so things
21058 like FindForm work on it.
21059 - Swallow the WM_CONTEXTMENU message, since that is generated on
21060 mouse down, and context menu is a mouse up kinda guy. I believe
21061 the correct fix here is probably to make the notify icon entirely
21062 NC area, but this seems to work fine for anyone not manipulating
21065 2006-10-02 Jonathan Pobst <monkey@jpobst.com>
21067 * ToolStrip.cs, ToolStripButton.cs, ToolStripItem.cs,
21068 ToolStripItemCollection.cs, ToolStripLabel.cs,
21069 ToolStripProfessionalRenderer.cs, ToolStripRenderer.cs,
21070 ToolStripSeparator.cs, ToolStripSplitStackLayout.cs:
21071 Initial implementation.
21072 * TextRenderer.cs: Provide padding to MeasureText.
21074 2006-10-02 Sebastien Pouliot <sebastien@ximian.com>
21076 * ButtonBase.cs: Fix CreateAccessibilityInstance to return an instance
21077 of ButtonBaseAccessibleObject. Fix bug #79552.
21079 2006-10-02 Jackson Harper <jackson@ximian.com>
21081 * MdiWindowManager.cs: When maximizing use the containers client
21082 rect, not it's bounds, so nc area is accounted correctly.
21083 - Use the parent form's size for the menu position, since the
21084 client isn't always the full form size.
21086 2006-10-01 Chris Toshok <toshok@ximian.com>
21088 * ScrollableControl.cs: make sure neither right_edge or
21089 bottom_edge are < 0, since they're used as LargeChange for the
21090 horiz/vert scrollbars respectively. Fixes #79539.
21092 2006-10-01 Chris Toshok <toshok@ximian.com>
21094 * NotifyIcon.cs: add NotifyIconWindow.InternalRecreateHandle, so
21095 the xplatuix11 code can cause us to destroy/recreate our handle.
21099 - this code can be invoked many times for the same Hwnd. Make
21100 sure we only destroy the client window once (the first time this
21101 method is called). This fixes bug #79544.
21102 - Remove the call to the improperly bound XSync. why we had two
21103 bindings to this, I will never know, but this call resulted in
21104 events being discarded from the queue(!).
21105 - correct a misunderstanding of _XEMBED_INFO - the second atom is
21106 not our current state but the state we wish to be in. So, 0 if
21107 we don't want to be mapped. Change it to 1.
21108 (SystrayRemove): The XEMBED spec makes mention of the fact that
21109 gtk doesn't support the reparent of client windows away from the
21110 embedder. Looking at gtksocket-x11.c seems to agree with this.
21111 The only avenue we have for removing systray icons is to destroy
21112 them. We don't want the handle to go away for good, though, so
21113 call InternalRecreateHandle on the NotifyIconWindow. Fixes
21116 2006-10-01 Chris Toshok <toshok@ximian.com>
21118 * Form.cs (WndProc): inline the native_enabled variable usage into
21119 the cases in which it's used. Fixes #79536.
21121 2006-09-29 Mike Kestner <mkestner@novell.com>
21123 * ListView.cs : toggle the selection state for ctrl clicks in
21124 multiselect mode. [Fixes #79417]
21126 2006-09-29 Mike Kestner <mkestner@novell.com>
21128 * ListView.cs : kill CanMultiSelect and refactor the selection
21129 code to support multiselection in the absence of mod keys. Steal
21130 arrow/home/end keys by overriding InternalPreProcessMessage to
21131 restore regressed keynav behavior.
21134 2006-09-29 Jackson Harper <jackson@ximian.com>
21136 * MdiClient.cs: Repaint the titlebars when the active window is
21139 2006-09-29 Chris Toshok <toshok@ximian.com>
21141 * Application.cs: when entering a runloop with a modal, make sure
21142 the hwnd is enabled. Fixes #79480.
21144 2006-09-29 Chris Toshok <toshok@ximian.com>
21146 * DataGrid.cs (CurrentCell): if we try to navigate to the add row
21147 when ListManager.CanAddRows == false, bump us back one.
21149 * DataGridColumnStyle.cs (ParentReadOnly): remove the
21150 listmanager.CanAddRows check. This makes ArrayLists uneditable
21151 using a datagrid, which is not right.
21152 (SetColumnValueAtRow): call IEditable.BeginEdit if source[rowNum]
21153 is an IEditable, but call property_descriptor.SetValue regardless.
21156 2006-09-29 Chris Toshok <toshok@ximian.com>
21158 * DataGridBoolColumn.cs: we need to test equality in the face of
21159 possible null values (as is the case with the default NullValue).
21160 This patch keeps us from crashing in that case.
21162 2006-09-29 Jackson Harper <jackson@ximian.com>
21164 * TreeNodeCollection.cs: Don't do a recalculate/updatescrollbars
21165 here, since it will get called for every node collection in the
21166 tree. This is now done in the treeview once the sorting is
21168 * TreeView.cs: Recalculate the visible order, and update the
21169 scrollbars after sorting, set the top nope to the root so that the
21170 recalc actually works.
21172 2006-09-29 Chris Toshok <toshok@ximian.com>
21174 * LinkLabel.cs: more handling of the default link collection in
21175 the face of LinkArea manipulation. The default link collection
21176 contains 1 element (start=0,length=-1). If the user sets LinkArea
21177 to anything and the links collection is the default, clear it.
21178 Then only add the link if its nonempty. Fixes #79518.
21180 2006-09-29 Chris Toshok <toshok@ximian.com>
21182 * LinkLabel.cs (CreatePiecesFromText): calculate the length of a
21183 piece correctly when we hit a '\n'. Fixes #79517.
21185 2006-09-29 Chris Toshok <toshok@ximian.com>
21187 * MimeIcon.cs, ThemeGtk.cs, X11DesktopColors.cs, XplatUIX11GTK.cs:
21188 change the binding of gdk_init_check to take two IntPtr's, and
21189 pass IntPtr.Zero for both of them. Fixes #79520.
21191 2006-09-29 Mike Kestner <mkestner@novell.com>
21193 * ComboBox.cs : raise TextChanged on ComboTextBox.TextChanged.
21196 2006-09-28 Jackson Harper <jackson@ximian.com>
21198 * XplatUIX11.cs: When translating NC messages make sure we go from
21199 whole window to screen, not client window to screen.
21200 * MdiClient.cs: Remove the calls to PaintWindowDecorations, this
21201 method doesn't exist
21202 - Skip over controls that aren't forms when arranging.
21204 2006-09-28 Jackson Harper <jackson@ximian.com>
21206 * XplatUIWin32.cs: Clip the rect to the parent window.
21207 * XplatUIStructs.cs: Add clipping modes struct.
21208 * InternalWindowManager.cs: New private method that factors title
21209 bar heights in when calculating the pos of an NC mouse message.
21210 - Use SendMessage to force a paint when the form's size is changed
21211 instead of painting the decorations immediately.
21212 - Don't let the NC button click messages get to DefWndProc,
21213 because they will attempt to handle windowing themself, and this
21214 messes up z-order (it will put them in front of the scrollbars).
21215 * XplatUIX11.cs: Make sure that we don't reset window managers if
21216 we already have one (ie the window is an MDI window).
21218 2006-09-28 Chris Toshok <toshok@ximian.com>
21220 * MainMenu.cs: fix #79405 by way of a disgusting hack. all the
21221 menu code really needs going over.
21223 2006-09-27 Chris Toshok <toshok@ximian.com>
21225 * XplatUIX11.cs (SetWMStyles): more metacity wonderment. turns
21226 out metacity ignores the MAXIMIZE_HORZ/VERT messages unless the
21227 window is maximizable. So, we need to make sure that even if we
21228 clear the border/wm frame of those functions, they're still
21229 available (basically, we remove the decoration without removing
21230 the function). Half the fix for #79338.
21232 2006-09-27 Chris Toshok <toshok@ximian.com>
21234 * DataGrid.cs (ProcessGridKey): implement Shift-Tab handling.
21237 2006-09-27 Chris Toshok <toshok@ximian.com>
21239 * Splitter.cs: reorder things a bit so that we don't actually
21240 draw/move the splitter until after calling OnSplitterMoving. This
21241 lets users cancel/disallow the movement by explicitly setting
21242 event.SplitX/SplitY. Fixes #79372.
21244 2006-09-27 Jackson Harper <jackson@ximian.com>
21246 * XplatUIX11.cs: Don't hide the caret when it is being destroyed,
21247 because it is most likely on a window being destroyed, and that
21248 will give us an X11 error.
21250 2006-09-27 Chris Toshok <toshok@ximian.com>
21252 * PropertyGridView.cs: half of the fix for #78190. Clicking on
21253 the dropdown button now toggles between showing and hiding the
21254 dropdown. Also, get rid of dropdown_form_showing and just use
21255 dropdown_form.Visible. We still don't do a grab, but I'll leave
21256 that part to someone who has handled Capture-fu before.
21258 2006-09-27 Chris Toshok <toshok@ximian.com>
21260 * DataGrid.cs: return false if alt isn't pressed when '0' is
21261 pressed. this keeps the '0' key from being swallowed, and fixes
21264 2006-09-27 Chris Toshok <toshok@ximian.com>
21266 * ComboBox.cs: use Invalidate when scrolling the dropdown list.
21267 Calling Refresh (in response to a scrollbar event) screws up the
21268 scrollbar painting. Fixes bug #78923.
21270 2006-09-27 Chris Toshok <toshok@ximian.com>
21272 * Theme.cs (SystemResPool): make the "if hashtable[key] == null
21273 then insert into hashtable" blocks threadsafe.
21275 2006-09-27 Chris Toshok <toshok@ximian.com>
21277 * MessageBox.cs (CreateParams): the styles should be |'ed with our
21278 baseclass's, since otherwise the
21279 ControlBox/MinimizeBox/MaximizeBox assignments above have no
21280 effect. This gets the close button back in messageboxes.
21282 2006-09-27 Chris Toshok <toshok@ximian.com>
21284 * XplatUIX11.cs: make StyleSet and ExStyleSet check == with the
21285 flag, not just != 0. this makes flags that are actually multiple
21286 bits (like WS_CAPTION) work. fixes bug #79508.
21288 2006-09-27 Jordi Mas i Hernandez <jordimash@gmail.com>
21290 * PageSetupDialog.cs: add support for getting and settings the
21291 paper size, source and orientation.
21293 2006-09-26 Chris Toshok <toshok@ximian.com>
21295 * XplatUIX11.cs (SetWMStyles): turns out when SYSMENU is not set
21296 and caption == "", we need to remove the resize handles as well as
21299 * Control.cs (set_Text): turns out that setting Text on a form
21300 should change the WM styles on the window, since if ControlBox ==
21301 false, the only way to get a window border is to have a non-""
21302 Text property. check winforms/forms/text.cs for an example. so,
21303 call both XplatUI.SetWindowStyle and XplatUI.Text here to properly
21304 update both window styles and title. This fixes a lot of dialogs
21305 (including the preferences dialog in MonoCalendar.)
21307 2006-09-26 Chris Toshok <toshok@ximian.com>
21309 * XplatUIWin32.cs (SetParent): if parent == IntPtr.Zero (and the
21310 control isn't a Form), call Win32ShowWindow to hide the window,
21311 but don't update the control Visible property. When we reparent
21312 back to a parent control, call SetVisible in order for the
21313 window's visibility to be reinstated.
21315 * XplatUIX11.cs (SetParent): if hwnd.parent == null, reparent to
21318 * Control.cs (ControlCollection.Remove): remove that value.Hide()
21319 call for good, since it breaks MonoCalendar (and other things I'm
21320 sure.) Also, set all_controls to null *after* the owner calls,
21321 which end up regenerating it.
21322 (ChangeParent): allow new_parent to be == null, passing
21323 IntPtr.Zero down to XplatUI.
21325 this fixes #79294 the right way.
21327 2006-09-26 Mike Kestner <mkestner@novell.com>
21329 * GridEntry.cs : internal SetParent method.
21330 * PropertyGrid.cs : attach to property changed on the proper
21331 target if we have a hierarchical grid with subobjects. Setup
21332 GridItem.Parent for hierarchical items.
21333 * PropertyGridView.cs : Set value on the correct target for
21334 hierarchical grids. [Fixes #78903]
21336 2006-09-26 Chris Toshok <toshok@ximian.com>
21338 * Control.cs (ChildNeedsRecreating): this should return true if
21339 either we're being recreated and the child is in our list, or our
21340 parent is waiting for our recreation.
21342 2006-09-26 Chris Toshok <toshok@ximian.com>
21344 * Control.cs (ControlCollection.Remove): reinstate the
21345 value.Hide() call as suggested in bug #79294.
21347 2006-09-26 Sebastien Pouliot <sebastien@ximian.com>
21349 * XplatUIX11.cs: Fixed SetCursorPos to move the cursor to screen
21350 coordinates (versus a relative move).
21352 2006-09-26 Chris Toshok <toshok@ximian.com>
21354 * Control.cs: rework child recreation a little bit. It turns out
21355 that we race between the DestroyNotify the WM_DESTROY message. If
21356 the parent gets its DestroyNotify before the child gets the
21357 WM_DESTROY message, the child ends up not recreating (since the
21358 parent finishes its recreation on DestroyNotify, and the child
21359 checks ParentIsRecreating.)
21361 So, instead we store off a list of all the child controls which
21362 need to be recreated when the parent control starts to recreate
21363 itself. Then, when child controls get their WM_DESTROY message we
21364 check to see if they're in the parent's pending recreation list,
21365 and if so, we recreate. This removes all dependency on ordering
21366 from the code and fixes the initial MonoCalendar upgrade dialog.
21368 2006-09-26 Jackson Harper <jackson@ximian.com>
21370 * TextControl.cs: Use the Line to get the length of the line,
21371 since soft line breaks can change the end line.
21373 2006-09-26 Chris Toshok <toshok@ximian.com>
21375 * Control.cs (ControlCollection.AddImplicit): don't add the
21376 control again if it's already in one of our lists. This keeps us
21377 from adding controls over and over again for comboboxes when their
21378 handle gets recreated (as the combobox adds implicit controls in
21379 OnHandleCreated). Fixes the X11 errors in bug #79480.
21381 2006-09-26 Jackson Harper <jackson@ximian.com>
21383 * TextControl.cs: When deleting characters make sure that any
21384 orphaned zero lengthed tags get deleted.
21385 - Fix ToString for zero lengthed tags.
21387 2006-09-25 Jackson Harper <jackson@ximian.com>
21389 * TextControl.cs: When getting a tag at the location there can be
21390 multiple tags at the same spot, these are 0-lengthed tags that
21391 appear when extra formatting has been stuck in a location. We
21392 need to pull out the last of these 0 lengthed tags.
21394 2006-09-25 Jackson Harper <jackson@ximian.com>
21396 * TextControl.cs: Fix print out in debug method.
21397 * TextBoxBase.cs: When text is set bail if we are setting to the
21400 2006-09-24 Alexander Olk <alex.olk@googlemail.com>
21402 * FontDialog.cs: Fixed the up/down arrow keys issue from bug #79478.
21403 It is now possible to change the selected index in a FontXXXListBox
21404 with the up and down arrow keys from the FontXXXTextBoxes.
21405 Also, send the FontXXXTextBox mouse wheel event to the corresponding
21406 FontXXXListBoxes to match ms.
21408 2006-09-22 Sebastien Pouliot <sebastien@ximian.com>
21410 * SystemInformation.cs: Return a clone of the theme's MenuFont because
21411 anyone can dispose it, anytime. All other properties returns enums,
21412 structs or basic types so they don't need such tricks.
21414 2006-09-22 Jackson Harper <jackson@ximian.com>
21421 * XplatUIDriver.cs: Update interface to add a primary selection
21422 flag, so the driver can use the primary selection buffer if
21424 * XplatUIX11.cs: Allow the clipboard to retrieve from PRIMARY.
21426 * RichTextBox.cs: We need to supply the data object to paste now
21427 (so we can choose to supply CLIPBOARD or PRIMARY).
21428 * TextBoxBase.cs: Supply data object to paste (see above).
21429 - Middle click uses the primary selection data object.
21431 2006-09-21 Chris Toshok <toshok@ximian.com>
21433 * XplatUIX11.cs: first little cleanup of the StyleSet (...) block
21434 of SetWMStyles. It's still a rat's nest and is largely
21435 order-dependent which I dislike immensely. This also fixes the X
21436 button disappearing from toplevel forms.
21438 2006-09-21 Mike Kestner <mkestner@novell.com>
21440 * ListBox.cs: move Jordi's click/dblclick raising code to the
21443 2006-09-21 Jordi Mas i Hernandez <jordimash@gmail.com>
21445 * ListBox.cs: Fixes 79450
21447 2006-09-21 Mike Kestner <mkestner@novell.com>
21449 * TreeView.cs: guard against disposed conditions in UpdateScrollbars
21450 to deal with people updating the TreeNodeCollection after the tree
21451 is disposed. "Fixes" 79330.
21453 2006-09-20 Jackson Harper <jackson@ximian.com>
21455 * TextControl.cs: Push the cursor record onto the undo stack
21456 before the delete action. This fixes 78651.
21458 2006-09-20 Jonathan Chambers <joncham@gmail.com>
21460 * PropertyGridView.cs: Remove WindowStyles.WS_VISIBLE from
21461 CreateParams. Fixes 79329.
21463 2006-09-19 Chris Toshok <toshok@ximian.com>
21465 * XplatUIX11.cs: a couple of blanket code massage passes to clean
21466 things up a bit. First, get rid of the NetAtoms array (and the NA
21467 enum), and just embed the atoms as static fields. Also, add a
21468 couple of functions (StyleSet and ExStyleSet) to clean up all the
21469 bitmask testing of styles.
21471 * X11Structs.cs: remove the NA enum, not needed anymore.
21473 2006-09-19 Chris Toshok <toshok@ximian.com>
21475 * XplatUIX11.cs: apply Alexander's tool window fix for bug #79245
21476 (mapping them to _NET_WM_WINDOW_TYPE_UTILITY). and add a little
21477 added cleanup to get MessageBox titles appearing again, which were
21478 broken by my earlier fix for caption-less/ControlBox-less windows.
21480 2006-09-18 Jonathan Pobst <monkey@jpobst.com>
21482 * ToolStripArrowRenderEventArgs.cs, ToolStripArrowRenderEventHandler.cs,
21483 ToolStripContentPanelRenderEventArgs.cs, ToolStripContentPanelRenderEventHandler.cs,
21484 ToolStripGripRenderEventArgs.cs, ToolStripGripRenderEventHandler.cs,
21485 ToolStripItemClickedEventArgs.cs, ToolStripItemClickedEventHandler.cs,
21486 ToolStripItemEventArgs.cs, ToolStripItemEventHandler.cs,
21487 ToolStripItemImageRenderEventArgs.cs, ToolStripItemImageRenderEventHandler.cs,
21488 ToolStripItemRenderEventArgs.cs, ToolStripItemRenderEventHandler.cs,
21489 ToolStripItemTextRenderEventArgs.cs, ToolStripItemTextRenderEventHandler.cs,
21490 ToolStripPanelRenderEventArgs.cs, ToolStripPanelRenderEventHandler.cs,
21491 ToolStripRenderEventArgs.cs, ToolStripRenderEventHandler.cs,
21492 ToolStripSeparatorRenderEventArgs.cs, ToolStripSeparatorRenderEventHandler.cs:
21494 * ToolStripPanel.cs, ToolStripContentPanel.cs, ToolStripSeparator.cs,
21495 ToolStripButton.cs: Stubs needed for above.
21496 * ToolStrip.cs, ToolStripItem.cs: Stub a few variables/properties for above.
21498 2006-09-15 Chris Toshok <toshok@ximian.com>
21501 - make the MessageQueues hashtable Synchronized.
21503 - SendMessage: if the Hwnd is owned by a different thread, use the
21504 AsyncMethod stuff to dispatch the SendMessage on the hwnd's
21505 thread. Fixes bug #79201.
21507 2006-09-15 Chris Toshok <toshok@ximian.com>
21509 * XplatUIX11.cs (SetWMStyles): rework the #79368 fix slightly. If
21510 ControlBox == false, we disallow maximize/minimize/close. If the
21511 form Caption is "" we also disallow move (and get rid of the Title
21512 decoration). Unfortunately, regardless of how things are set,
21513 we're stuck with the Title and WM menu.
21515 2006-09-15 Chris Toshok <toshok@ximian.com>
21517 * Application.cs: add locking around the static message_filters
21518 ArrayList, part of #79196.
21520 2006-09-15 Chris Toshok <toshok@ximian.com>
21522 * XplatUIX11.cs (SetWMStyles): if Form.Text == "" and
21523 Form.ControlBox == false, the window has no titlebar nor resize
21524 handles. fixes bug #79368.
21526 2006-09-15 Chris Toshok <toshok@ximian.com>
21528 * TextBoxBase.cs: in CalculateScrollBars make sure LargeChange is
21529 >= 0. Fixes bug #79370.
21531 2006-09-15 Jonathan Pobst <monkey@jpobst.com>
21532 * FlowLayoutPanel.cs, FlowLayoutSettings.cs: Initial commit.
21534 Add properties: LayoutEngine, Margin, DefaultMargin.
21535 Add method: GetPreferredSize.
21536 Move layout logic from PerformLayout to layout engines.
21538 2006-09-13 Chris Toshok <toshok@ximian.com>
21540 * XplatUIX11.cs: more destroy work. Jackson pointed out that my
21541 fix for #79326 broke #78718, so this change addresses that.
21543 - in SendWMDestroyMessages remove the call to
21544 CleanupCachedWindows, since we might be recreating the control and
21545 need to maintain the references to right Hwnd handles. Also, set
21546 the zombie flag to true for each of the children in the hierarchy
21547 instead of calling hwnd.Dispose. This will cause GetMessage to
21548 ignore all events for the window except for DestroyNotify.
21550 - In GetMessage, ignore messages except for DestroyNotify for
21553 * Control.cs: revert the is_recreating fix from the last
21554 ChangeLog. It's definitely "right", but it breaks switching from
21555 an MDI form to a non-MDI form. Will need to revisit that.
21557 * Hwnd.cs: add a zombie flag, which means "the
21558 client_window/whole_window handles are invalid, but we're waiting
21559 for the DestroyNotify event to come in for them". Set the flag to
21560 false explicitly if setting WholeWindow/ClientWindow, and also
21563 2006-09-13 Chris Toshok <toshok@ximian.com>
21565 * XplatUIX11.cs: rework window destruction slightly.
21567 - when destroying the windows associated with a control, we don't
21568 need 2 separate XDestroyWindow calls. Just the one for the
21569 whole_window (or for client_window if whole_window is somehow
21570 IntPtr.Zero -- can this happen?) is enough.
21572 - reworked SendWMDestroyMessages slightly, so we always dispose
21573 the child control hwnd's after sending the messages.
21575 - refactored out the ActiveWindow/FocusWindow/Caret clearing from
21576 the two places it was used (one was even using hwnd.Handle and the
21577 other hwnd.client_window. ugh), adding another call in
21578 SendWMDestroyMessages. We need this new call because now the
21579 DestroyNotify events in the queue will be ignored for the child
21580 controls (as their hwnd's were disposed, and the window id's
21581 removed from the hashtable in SendWMDestroyMessages.) fun, eh?
21583 - this fixes bug #79326.
21585 2006-09-13 Chris Toshok <toshok@ximian.com>
21587 * Control.cs: don't always set is_recreating to false at the end
21588 of RecreateHandle, since sometimes we're not done (and won't be
21589 until WndProc handles the WM_DESTROY message). Also, set
21590 is_recreating to false in the WM_DESTROY handling code. Part of
21591 the fix for bug #79326.
21593 2006-09-13 Miguel de Icaza <miguel@novell.com>
21595 * X11DesktopColors.cs: Start the droppage of debugging messages.
21597 * FileDialog.cs: Store the configuration file in ~/.mono/mwf_config
21599 2006-09-13 Jonathan Pobst <monkey@jpobst.com>
21601 * SplitContainer.cs, SplitterPanel.cs: Initial implementation [2.0].
21603 2006-09-12 Chris Toshok <toshok@ximian.com>
21605 * DataGrid.cs (get_ListManager): if the list_manager is null, try
21606 to create it using SetDataSource. Fixes bug #79151.
21608 2006-09-11 Chris Toshok <toshok@ximian.com>
21610 * XEventQueue.cs: add a DispatchIdle property.
21612 * XplatUIX11.cs (UpdateMessageQueue): only emit the Idle event if
21613 either the queue is null, or the queue has DispatchIdle set to
21615 (DoEvents): set queue.DispatchIdle to false around the
21616 peek/translate/dispatch message loop in this method. This keeps
21617 Application.Doevents from emitting idle events. Part of the fix
21620 2006-09-11 Chris Toshok <toshok@ximian.com>
21622 * DataGrid.cs (set_DataSource): make this work for both the
21623 winforms/datagrid test and ReportBuilder. It seems as though when
21624 we've created a ListManager (or maybe it's if we have a
21625 BindingContext?), when we set the DataSource it clears the
21626 DataMember to "". otherwise we reuse the datamember. Fixes bug
21629 2006-09-11 Chris Toshok <toshok@ximian.com>
21631 * XplatUIX11.cs: deal with queue being null, which happens in all
21632 the Clipboard functions. Fixes one of the two problems mentioned
21635 2006-09-11 Chris Toshok <toshok@ximian.com>
21637 * MenuAPI.cs: rework OnMouseUp a bit so that releasing the mouse
21638 button on various spots (including outside the menu) works closer
21639 to MS, and doesn't crash. Fixes #79343.
21641 2006-09-11 Gert Driesen <drieseng@users.sourceforge.net>
21643 * ListView.cs: Do not initialize item_sorter in init. To match MS,
21644 return null for ListViewItemSorter if View is SmallIcon or LargeIcon
21645 and the internal comparer is set. When a new ListViewItemSorter is set,
21646 sort the items. Use Enum.IsDefined to verify whether a valid SortOrder
21647 was specified. No further processing is necessary if SortOrder is set
21648 to it's current value. If Sorting is modified to None, and View is
21649 neither SmallIcon nor LargeIcon then: on 2.0 profile set item_sorter
21650 (either custom or our internal ItemComparer) to null, on 1.0 profile
21651 only set item_sorter to null if its our internal IComparer. If Sorting
21652 is modified to Ascending or Descending, then use our internal IComparer
21653 if none is set, and if the current IComparer is our internal one then:
21654 on 2.0 profile always replace it with one for new Sorting, and on 1.0
21655 profile only use new Sorting if view is not SmallIcon or LargeIcon. Use
21656 Enum.IsDefined to verify whether a valid View value is specified in
21657 its setter. Automatically sort listview items when listview is
21658 created. In Sort, do nothing if ListView is not yet created, or if
21659 no item_sorter is set (no Sorting was set, Sorting was explicitly set
21660 to None or ListViewItemSorter was set to null). Added Sort overload
21661 taking a bool to indicate whether the ListView should be redrawn when
21662 items are sorted (we use this in ListViewItemCollection to avoid double
21663 redraws). Modified our internal IComparer to take the sort order into
21664 account. In Add and AddRange methods of ListViewItemCollection, also
21665 call Sort if Sorting is None (necessary for SmallIcon and LargeIcon
21666 view), but use overload with noredraw option to avoid double redraw.
21667 On 2.0 profile, throw NotSupportedException when setting CheckBoxes to
21668 true when View is Tile, and do the same when attempting to set View to
21669 Tile when CheckBoxes is true. Avoid maintaining separate ArrayLists
21670 for selected/checked indices, as it involves overhead when sorting is
21671 done while these collections are not used all that often. Instead
21672 we'll build the indices on demand. Modified IList implementation of
21673 CheckedIndexCollection to use public methods if object is int.
21674 Modified CheckedListViewItemCollection to hide checked items if
21675 ListView.CheckBoxes is false. Removed LAMESPEC remark in
21676 ListViewItemCollection as the .NET SDK docs have been fixed. Modified
21677 IList implementation in SelectedIndexCollection to use public methods
21678 if object is int. Modified SelectedListViewItemCollection to hide
21679 selected items if listview is not yet created.
21680 * ListViewItem.cs: CheckedIndices list no longer needs to be
21681 maintained separately (see ListView changes). Also clone font, fixes
21684 2006-09-11 Mike Kestner <mkestner@novell.com>
21686 * ComboBox.cs: if we are updating the contents of the currently
21687 selected index, refresh the control or the textbox selection.
21690 2006-09-11 Mike Kestner <mkestner@novell.com>
21692 * ComboBox.cs (UpdateBounds): use SetBounds not SetBoundsCore since
21693 the 'specified' logic has been moved there. This seems like a bug
21694 in Control.cs, since our current SetBoundsCore completely ignores
21695 the specified parameter. Peter's commit seems to indicate that is
21696 the way the MS control implementation works. [Fixes #79325]
21698 2006-09-10 Jonathan Chambers <joncham@gmail.com>
21700 * XplatUI.cs: Set default_class_name to be composed
21701 of current domain id. This allows MWF to be loaded in multiple
21704 2006-09-09 Miguel de Icaza <miguel@novell.com>
21706 * X11Keyboard.cs: If we are unable to obtain the input method, do
21707 not call CreateXic to create the input context. Should fix
21710 2006-09-08 Alexander Olk <alex.olk@googlemail.com>
21712 * MimeIcon.cs: Rewrote major parts. Dropped KDE support for now.
21713 Simplified gnome support by adding more pinvokes to get the
21714 icon for a file or mime type.
21716 2006-09-08 Jackson Harper <jackson@ximian.com>
21718 * MenuAPI.cs: Deslect popup context menu items before closing the
21719 window, so that you don't see the previously selected item
21720 selected when you reopen the menu.
21721 * TextControl.cs: Update the cursor position even if we don't have
21722 focus. This fixes typing in things like the ComboBox. I'm not
21723 totally sure we should always set the visibility if we don't have
21724 focus, but couldn't find any corner cases where the cursor showed
21725 up when it shouldn't.
21727 2006-09-08 Chris Toshok <toshok@ximian.com>
21729 * X11Keyboard.cs: In UpdateKeyState vkey can be any integer, but
21730 our arrays are length 256. & 0xff before indexing. Fixes the
21731 crash in bug #78077.
21733 2006-09-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
21735 * ThemeWin32Classic.cs:
21736 * DateTimePicker.cs: Draw check box if DateTimePicker.ShowCheckBox
21737 is true. Handle that check box too.
21739 2006-09-07 Chris Toshok <toshok@ximian.com>
21741 * MenuAPI.cs: move the PerformClick call to OnMouseUp. Fixes bug
21744 2006-09-07 Chris Toshok <toshok@ximian.com>
21746 * Control.cs: in set_BackColor only do the work if
21747 background_color != value.
21749 * XplatUIX11.cs: move the clearing of invalid areas (both client
21750 and nc) to the same block of code where we set (nc_)expose_pending
21751 to false. That is, move it from PaintEventEnd to PaintEventStart,
21752 so things that cause invalidates from within OnPaint will trigger
21753 another call to OnPaint. Fixes bug #79262.
21755 2006-09-07 Alexander Olk <alex.olk@googlemail.com>
21757 * Theme.cs: Use correct icon for UIIcon.PlacesPersonal
21758 * FileDialog.cs: Fix typo
21760 2006-09-07 Jackson Harper <jackson@ximian.com>
21762 * ThemeWin32Classic.cs: oops, forgot to commit. Draw the images
21763 for tab pages if they have any.
21765 2006-09-06 Mike Kestner <mkestner@novell.com>
21767 * Splitter.cs: use the "current" rect when finishing drag handle
21768 to avoid an artifact demonstrated by resedit.exe. [Fixes #79251]
21770 2006-09-06 Mike Kestner <mkestner@novell.com>
21772 * Splitter.cs: draw the drag handle at X or Y instead of 0 to deal
21773 support offset splitters. [Fixes #79298]
21775 2006-09-06 Alexander Olk <alex.olk@googlemail.com>
21777 * Mime.cs: Fixed a bug that could override the global mime type
21780 2006-09-05 Jackson Harper <jackson@ximian.com>
21782 * TabControl.cs: Better calculation method for setting the slider
21783 pos. Prevents crashes on really wide tabs.
21784 - Draw Image on tab pages if an image list is used.
21786 2006-09-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
21788 * MonthCalendar.cs: When Font changes, the Size should be
21789 updated to fit the new font's space requirements.
21791 2006-09-02 Alexander Olk <alex.olk@googlemail.com>
21793 * ListBox.cs: If the items are cleared with Items.Clear set
21796 2006-09-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
21798 * MonthCalendar.cs: Handle arrow keys as input keys. Also
21799 fire DateChanged event instead of DateSelected event when
21800 the date was changed by keyboard interaction.
21802 2006-09-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
21804 * DateTimePicker.cs: Handle DateChanged for the associated
21805 month_calendar control, and set month_calendar.Font from
21806 OnFontChanged method, as well as resize the height of the
21807 control when needed. Make PreferredHeight proportional.
21809 2006-09-01 Chris Toshok <toshok@ximian.com>
21811 * DataGrid.cs: grr, stop overthinking the DataMember/DataSource
21814 * BindingContext.cs (HashKey.GetHashCode): use ^ instead of +.
21816 2006-09-01 Peter Dennis Bartok <pbartok@novell.com>
21818 * FileDialog.cs: Set ClientSize instead of window size, to allow space
21819 for decorations (Fixes #79219)
21821 2006-09-01 Mike Kestner <mkestner@novell.com>
21823 * ComboBox.cs: first stab at sorting plus some selection handling
21824 fixes to bring us more in line with MS behavior. Also switches back
21825 to index based selection. Alternative patches for index-based
21826 selection were provided by Jackson Harper, Carlos Alberto Cortez,
21827 and latency@gmx.de on bug 78848. I assume they were similar to this
21828 code I've had simmering in my tree forever.
21831 2006-09-01 Chris Toshok <toshok@ximian.com>
21833 * CurrencyManager.cs (ListChangedHandler): in the ItemAdded case,
21834 when setting list position guard against ending up with a -1 index
21835 (the other part of the fix for #78812). Should probably make sure
21836 we don't need the analogous fix in the ItemDeleted case.
21839 - in SetDataSource, work around the fact that the way
21840 OnBindingContextChanged is invoked will cause us to re-enter this
21841 method. I'll remove the hack once I investigate
21842 OnBindingContextChanged.
21844 - fix the logic in set_DataSource and set_DataMember (basically
21845 what to do if the other of the two is null.)
21847 - in OnListManagerItemChanged, we need to take into account the
21848 edit row when deciding whether or not to call RecreateDataGridRows
21849 (part of the fix for #78812).
21851 2006-09-01 Jackson Harper <jackson@ximian.com>
21853 * Splitter.cs: Don't do anything if there is no control to affect
21854 (prevents us from crashing in weird tet cases).
21855 * TreeView.cs: Bounding box for the mouse movement reverting
21856 focus/selection back to previously selected node. This matches
21857 MS, and makes the tree a lot more useable.
21858 * GroupBox.cs: Instead of drawing over the lines of the groupbox,
21859 use clipping so they are not drawn. This fixes when the control
21860 is set to have a transparent background, or if it was over an
21863 2006-09-01 Alexander Olk <alex.olk@googlemail.com>
21865 * MimeIcon.cs: Improved handling for reading default icons when
21866 using gnome (2.16 made it necessary). Check and read svg icons
21867 first, then 48x48 and then 32x32 icons.
21869 2006-08-31 Chris Toshok <toshok@ximian.com>
21871 * DataGridTextBoxColumn.cs: only hide the textbox if it's still
21874 * DataGridTextBox.cs: Pass Tab's up to the datagrid by calling
21875 ProcessKeyPreview. Fixes part of #77806.
21877 * DataGrid.cs: big patch.
21879 - revert the queueing up of DataSource/DataMember if inside
21880 BeginInit/EndInit calls. That's not the way the datagrid achieves
21881 its delayed databinding. Instead, call SetDataSource in
21882 OnBindingContextChanged. This mimic's MS's behavior, and fixes
21885 - Also, it wasn't mentioned in #78811, but the test case exhibits
21886 behavior that was lacking in our datagrid implementation - Columns
21887 that have mapping names that don't exist in the datasource's
21888 properties aren't shown. Yuck. To fix this I added the bound
21889 field to the column style, and basically any calculation to figure
21890 out anything about columns uses a loop to find the bound columns.
21891 still need to investigate if I can cache an array of the bound
21892 columns or if the indices must be the same.
21894 - When setting CurrentCell, we no longer abort if the cell being
21895 edited was in the add row. This fixes the other part of #77806.
21897 - The new code also fixes #78807.
21899 * ThemeWin32Classic.cs: perpetrate the same disgusting
21900 column.bound field hack, and only render bound fields.
21902 2006-08-31 Chris Toshok <toshok@ximian.com>
21904 * DataGridColumnStyle.cs: add bound field. this field is true if
21905 the datasource has a property corresponding to the mapping name.
21907 * DataGridTableStyle.cs: set the bound field on the column styles
21908 depending on whether or not we have a column for that property.
21910 2006-08-31 Peter Dennis Bartok <pbartok@novell.com>
21912 * Splitter.cs (SetBoundsCore): Don't ignore width/height of the
21913 splitter control (fixes #79228)
21915 2006-08-31 Chris Toshok <toshok@ximian.com>
21917 * DataGridColumnStyle.cs: we need to delay the assignment of
21918 property descriptor until the last possible moment due to the lazy
21919 databinding stuff in the datagrid. Also, fix the exceptions
21920 thrown by CheckValidDataSource to match MS.
21922 2006-08-31 Jackson Harper <jackson@ximian.com>
21924 * Form.cs: When activated select the active control, if there is
21925 no active control, we select the first control.
21926 * XplatUIX11.cs: If there is no focus control when we get a
21927 FocusIn event, find the toplevel form and activate it. This
21928 occurs when you popup a window, it becomes the focus window, then
21929 you close that window, giving focus back to the main window.
21931 2006-08-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
21933 * MonthCalendar.cs:
21934 * ThemeWin32Classic.cs: Cache Font in bold style, as well
21935 as StringFormat with Center alignments in MonthCalendar,
21936 instead of creating new ones when drawing the control.
21937 Also, draw the month name in bold style.
21939 2006-08-30 Peter Dennis Bartok <pbartok@novell.com>
21942 - PerformLayout(): It would seem MS performs the fill even if the
21943 control is not visible (part of #79218 fix)
21944 - ResetBackColor(): Use the setter to reset the color, to allow
21945 overriders to catch the change.
21947 - .ctor: Call UpdateBounds to adjust client rectangle (part of #79218 fix)
21948 - CreateHandle(): dito (part of $79218 fix)
21949 - Don't set an icon if we have a dialog
21950 * ScrollableControl.cs:
21951 - set_AutoScrollMinSize: Setting the property enables AutoScroll (#79218)
21952 - ScrollIntoView(): No need to scroll if control is already visible
21953 (resolves fixme and fixes #79218)
21955 2006-08-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
21957 * MonthCalendar.cs: Change proportions in SingleMonthSize
21958 to match the aspect of the original control.
21960 2006-08-29 Alexander Olk <alex.olk@googlemail.com>
21962 * XplatUIX11.cs: Fix for a metacity/X problem where windows don't
21963 get updated when they get maximized.
21965 2006-08-29 Peter Dennis Bartok <pbartok@novell.com>
21967 * XplatUIX11.cs: Handle windows with no border (Fixes part of #79160)
21969 2006-08-29 Chris Toshok <toshok@ximian.com>
21971 * XplatUIX11.cs: when destroying the FocusWindow, send KILLFOCUS.
21973 2006-08-29 Jackson Harper <jackson@ximian.com>
21975 * TreeView.cs: Need to track selected node and highlighted node,
21976 they aren't always the same thing, when the mouse is down on a
21977 node it is hilighted, but not selected yet.
21978 - Do the HideSelection stuff right
21979 - Need to focus on rbutton mouse down. And redraw selection when
21980 right click is mouse upped.
21982 2006-08-29 Mike Kestner <mkestner@novell.com>
21984 * ThemeWin32Classic.cs: draw selections for columns in FullRowSelect
21985 when SubItems.Count < Columns.Count. [Fixes #79167]
21987 2006-08-28 Peter Dennis Bartok <pbartok@novell.com>
21989 * TextControl.cs (FindCursor): Fix math error (Fixes #78402)
21991 2006-08-28 Peter Dennis Bartok <pbartok@novell.com>
21993 * XplatUIX11.cs: Preempt the roundtrip for getting the location back
21994 from X. Only send based on ConfigureNotify if we don't have the
21995 correct location in hwnd (if the window manager moved us)
21997 2006-08-28 Mike Kestner <mkestner@novell.com>
21999 * ListView.cs: remove a TODO.
22000 * ThemeWin32Classic.cs: implement HideSelection support for ListView.
22001 [Fixes ListView part of #79166]
22003 2006-08-28 Mike Kestner <mkestner@novell.com>
22005 * ListView.cs: move wheel handler to parent since it is focused
22006 instead of the item_control now. [Fixes #79177]
22008 2006-08-28 Mike Kestner <mkestner@novell.com>
22010 * ThemeWin32Classic.cs: only highlight subitems in fullrowselect
22011 when the control is focused. [Fixes #79171]
22013 2006-08-28 Mike Kestner <mkestner@novell.com>
22015 * ListView.cs: size the item and header controls for empty and
22016 unscrollable views.
22017 * ThemeWin32Classic.cs: draw disabled backgrounds.
22020 2006-08-28 Chris Toshok <toshok@ximian.com>
22022 * Form.cs: remove unused "active_form" static field.
22024 * Hwnd.cs: lock around accesses to static windows collection.
22026 * Application.cs: lock threads in Exit ().
22028 2006-08-28 Chris Toshok <toshok@ximian.com>
22030 * NativeWindow.cs: lock around accesses to window_collection.
22032 2006-08-28 Chris Toshok <toshok@ximian.com>
22034 * Control.cs: err, fix this the right way, by locking on controls
22035 when using it. not by making it synchronized.
22037 2006-08-28 Chris Toshok <toshok@ximian.com>
22039 * Control.cs: make the static "controls" field synchronized, as it
22040 gets updated from multiple threads.
22042 2006-08-27 Peter Dennis Bartok <pbartok@novell.com>
22044 * XplatUIX11.cs: PostQuitMessage is thread-specific not app-specific.
22045 Prevent other threads from exiting when calling thread sets quit state.
22046 * XEventQueue.cs: Added PostQuitState property
22048 2006-08-27 Chris Toshok <toshok@ximian.com>
22050 * AsyncMethodData.cs: add a slot for the window handle.
22052 * XplatUIX11.cs (SendAsyncMethod): send the event to the right
22053 window (the destination control's window, not the foster window).
22055 * Control.cs (BeginInvokeInternal): store the window's handle in
22056 the AsyncMethodData.
22059 2006-08-27 Peter Dennis Bartok <pbartok@novell.com>
22062 - PostQuitMessage: Removed resetting S.D display handle, we might have
22063 another loop started after calling PostQuitMessage (Fixes #79119)
22064 - Created destructor to reset S.D handle
22066 2006-08-27 Peter Dennis Bartok <pbartok@novell.com>
22068 * XplatUIX11.cs (SetCursor): Issue flush after setting the cursor (#79168)
22070 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
22072 * TextControl.cs (Insert): Update the caret position even if we don't
22073 have a handle yet, just don't call the driver in that case.
22074 * TextBoxBase.cs (set_SelectedText): Set the Start and End selection
22075 to the end of the new selection text (Fixes #79184)
22077 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
22079 * Form.cs (Activate): Only activate if the handle is created)
22081 - Mark window as invisible when it's disposed
22082 - Check if window handle is created when setting window visible,
22083 instead of relying just on the is_created variable
22084 - Check if object is disposed when creating the control (Fixes #79155)
22086 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
22088 * ScrollableWindow.cs (ScrollWindow): Don't actually perform layouting
22089 when allowing layout again. Otherwise we re-generate the anchoring
22090 distance to the border again and actually alter what the user wanted
22091 This is ugly, it'd be better if we used DisplayRectangle instead of
22092 ClientRectangle for Control.UpdateDistances, but that causes us to
22093 have other problems (initial anchoring positons would be wrong)
22096 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
22099 - The size and location setters shouldn't go directly to
22100 SetBoundsCore, but to SetBounds, which triggers layout on the
22101 parent, then calls SetBoundsCore. (Related to fix for #78835)
22102 - SetBounds: Moved actual location update code into this function
22103 from SetBoundsCore, to match MS. Added call to PerformLayout if
22104 we have a parent (to trigger resizing of anchored parents if the
22105 child size has changed (see testcase for #78835)
22106 * ListBox.cs, Form.cs: Call SetBounds instead of SetBoundsCore to match
22108 * ScrollableControl.cs (CalculateCanvasSize): Use shortcut variable
22110 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
22112 * XplatUIX11.cs: Don't reset the DisplayHandle that's stored in
22113 System.Drawing when a toplevel window gets closed; there might
22114 be other toplevel windows belonging to the same app (Fixes #78052)
22116 2006-08-26 Alexander Olk <alex.olk@googlemail.com>
22118 * FileDialog.cs: After reading FileDialog settings from mwf_config
22119 use Desktop prefix only if a real folder doesn't exist anymore.
22120 * FontDialog.cs: Added char sets.
22121 It is now possible to select the font, size or style with the
22124 2006-08-25 KornĂ©l PĂ¡l <kornelpal@gmail.com>
22126 * PrintPreviewDialog.cs: Use assembly name constants.
22128 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
22130 * XplatUIWin32.cs (ScrollWindow): Use clipping rectangle arg (prevents
22131 scrollbar from whacking it's buttons)
22133 2006-08-24 Chris Toshok <toshok@ximian.com>
22135 * ScrollableControl.cs: fix #78271. There's a lot of misc stuff
22136 in this patch (aggregating setting Left/Top/Width/Height to
22137 setting Bounds on the scrollbars), but the crux of the fix is in
22138 Recalculate, where we scroll by the remaining scroll_position if
22139 we're hiding a scrollbar. The 2*$5 reward in the comment is
22142 2006-08-24 Jackson Harper <jackson@ximian.com>
22145 * MdiWindowManager.cs: If the form is made a non-mdi window we
22146 need to remove the form closed event so that closing forms works
22149 2006-08-24 Jackson Harper <jackson@ximian.com>
22151 * Control.cs: Make IsRecreating internal so that the driver can
22153 - Temporarily remove the Hide when controls are removed, its
22154 making a whole bunch of things not work because visibility isn't
22155 getting reset elsewhere correctly
22156 * Form.cs: Need to do a full handle recreation when the mdi parent
22158 * XplatUIX11.cs: If we are recreating handles don't dispose the
22159 HWNDs. What was happening is the handles were being recreated in
22160 SendWMDestroyMessages, but then flow continued on in that method
22161 and destroyed the new handles.
22163 2006-08-23 Jackson Harper <jackson@ximian.com>
22165 * Form.cs: MdiClient is always at the back of the bus
22166 * Control.cs: When the order of items in the collection is changed
22167 we need to reset the all_controls array
22168 - do the same sorta setup thats done when adding a control when a
22169 control is set on the collection.
22171 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
22173 * TextBoxBase.cs (get_Text): Return an empty array if our document
22174 is empty (fixes #79052)
22176 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
22178 * Control.cs: We should call IsInputChar on only on WM_CHAR but not
22179 on WM_SYSCHAR messages (fixes #79053)
22181 2006-08-23 Chris Toshok <toshok@ximian.com>
22183 * DataGrid.cs: fix flickering when scrolling vertically.
22185 2006-08-23 Chris Toshok <toshok@ximian.com>
22187 * DataGrid.cs (EndEdit): only invalidate the row header when we
22190 2006-08-23 Chris Toshok <toshok@ximian.com>
22192 * ThemeWin32Classic.cs: fix the clip munging of the datagrid paint
22193 methods. fixes the flicker when scrolling around.
22195 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
22197 * FileDialog.cs: Making sure the control is created before we get a
22198 chance to use it with BeginInvoke (Fixes #79096)
22200 2006-08-23 Chris Toshok <toshok@ximian.com>
22202 * ThemeWin32Classic.cs (DataGridPaintRows): calculate the proper
22203 width to use when painting the rows.
22205 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
22208 - Throw ArgumentException if a negative value is passed to SelectionLength
22209 - Update the selection end if start is moved. end needs to be always
22210 after start. (Fixes #79095)
22211 - Track selection length; MS keeps the selection length even if start
22212 is changed; reset on all other operations affection selection
22214 2006-08-22 Jackson Harper <jackson@ximian.com>
22216 * TreeView.cs: Make sure both scrollbars get displayed and sized
22217 correctly when the other bar is visible.
22218 - Use the original clip rectangle for checking if the area between
22219 the two scrollbars is visible, not the viewport adjusted clipping
22222 2006-08-22 Jackson Harper <jackson@ximian.com>
22224 * Binding.cs: We don't use IsBinding because it requires the
22225 control to be created, which really shouldn't be necessary just to
22226 set a property on the control.
22228 2006-08-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
22230 * ComboBox.cs: Some CB.ObjectCollection methods must throw
22231 ArgumentNullReferenceException when the argument is null.
22233 2006-08-21 Jackson Harper <jackson@ximian.com>
22235 * Timer.cs: Track the thread that the timer is started in (NOT
22236 CREATED), this way messages for it will only be triggered on its
22238 * XEventQueue.cs: Track the timers here, this makes timers per
22240 * XplatUIX11.cs: The timers are moved to the XEventQueue.
22242 2006-08-19 Chris Toshok <toshok@ximian.com>
22244 * XplatUIX11.cs: after further communication with pdb, we get the
22245 best of both worlds. SetZOrder working for un-Mapped windows, and
22246 no X errors for un-mapped windows.
22248 2006-08-19 Chris Toshok <toshok@ximian.com>
22250 * XplatUIX11.cs (SetZOrder): remove the if (!hwnd.mapped) check,
22251 as it was causing pdn toolbars to not have the correct stacking.
22253 2006-08-18 Mike Kestner <mkestner@novell.com>
22255 * ListView.cs : guard against negative ClientArea.Width in scrollbar
22256 calculation. Not sure why control should ever be setting a negative
22257 width though. Fixes #78931.
22259 2006-08-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
22261 * ComboBox.cs: Throw ArgumentNullException when adding/modifyng
22262 null items in ObjectCollection class.
22263 * ListBox.cs.: Likewise.
22265 2006-08-18 Atsushi Enomoto <atsushi@ximian.com>
22267 * ThemeNice.cs, ThemeClearlooks.cs : remove RadioButton_DrawFocus()
22268 as the base method in ThemeWin32Classic should work fine.
22271 2006-08-18 Jackson Harper <jackson@ximian.com>
22273 * Binding.cs: When validating if the value entered doesn't convert
22274 properly reset to the old value.
22275 * RadioButton.cs: Don't fire click when we get focus.
22277 2006-08-18 Jackson Harper <jackson@ximian.com>
22279 * FileDialog.cs: Paint the selection on the directory combobox the
22282 2006-08-17 Jackson Harper <jackson@ximian.com>
22284 * ErrorProvider.cs: Don't allow the error control to be selected.
22285 * Control.cs: Don't send the SetFocus messages, the control
22286 activation will do this, and if we do it blindly here validation
22289 2006-08-17 Jackson Harper <jackson@ximian.com>
22292 * ContainerControl.cs: Make validation events fire in the correct
22293 order. TODO: For some reason the first validation event is not
22296 2006-08-17 Mike Kestner <mkestner@novell.com>
22298 * ComboBox.cs : some null guarding for ComboListBox.Scroll.
22300 2006-08-17 Mike Kestner <mkestner@novell.com>
22302 * ComboBox.cs : implement scroll wheel support for popped-down
22303 state. Fixes #78945.
22305 2006-08-17 Jackson Harper <jackson@ximian.com>
22307 * TreeView.cs: Specify treeview actions (old patch that didn't get
22308 committed for some reason).
22309 - Don't let the mouse wheel scroll us too far. Just want to make
22310 the bottom node visible, not scroll it all the ways to the top.
22312 2006-08-17 Jackson Harper <jackson@ximian.com>
22314 * XplatUIX11.cs: Mouse wheel events go to the focused window.
22316 2006-08-17 Mike Kestner <mkestner@novell.com>
22318 * ComboBox.cs : don't do mouseover selection in simple mode.
22320 2006-08-16 Jackson Harper <jackson@ximian.com>
22322 * Form.cs: Fire the closing events for all the mdi child windows
22323 when a window is closed. If the cancel args are set to true, the
22324 main window still gets the event fired, but it doesn't not close.
22325 * MdiWindowManager.cs: Do this closing cleanup in a Closed
22326 handler, instead of when the button is clicked, so cancelling the
22327 close works correctly.
22328 * ComboBox.cs: Send the mouse down to the scrollbar.
22330 2006-08-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
22332 * ListBox.cs: When passing 'null' to SelectedItem,
22333 set SelectedIndex to -1, to unselect items. This is the
22334 observed behaviour in .Net.
22336 2006-08-16 Peter Dennis Bartok <pbartok@novell.com>
22338 * TextBoxBase.cs: Overriding HandleClick to get clicks in spite of
22339 MS flags saying there won't be any. (fixes #78800)
22340 * Control.cs (HandleClick): Made virtual
22342 2006-08-16 Atsushi Enomoto <atsushi@ximian.com>
22344 * PageSetupDialog.cs : use Yard-Pound units only in en-GB and en-US
22345 cultures. Fixed bug #78399.
22347 2006-08-16 Jackson Harper <jackson@ximian.com>
22349 * Form.cs: Use the MdiClients MdiChildren property to access
22350 MdiChildren instead of creating the array from the child controls.
22351 * MdiClient.cs: Maintain a separate array of the mdi children, so
22352 that insertion order is maintained when the Z-order is changed.
22354 2006-08-16 Mike Kestner <mkestner@novell.com>
22356 * ListView.cs : add an ItemComparer and default to it for sorting.
22357 Fixes #79076, but sorting needs a complete overhaul to be compat with
22360 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
22362 * XplatUIX11.cs (SetZOrder): Fix debugging leftover (fixes #79080)
22364 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
22366 * Hwnd.cs (Mapped): Properly traverse the tree
22368 2006-08-15 Chris Toshok <toshok@ximian.com>
22370 * Binding.cs: fix PullData/SetPropertyValue. We don't want to
22371 pass manager.Current.GetType() to ParseData. It has to be the
22372 property type. So, hold off doing the ParseData until we're in
22373 SetPropertyValue where we know the type. This fixes the crash in
22374 #78821 but the textbox is still empty.
22376 2006-08-15 Chris Toshok <toshok@ximian.com>
22379 - when we're scrolling, only call Edit() again if the
22380 current cell is still unobscured. Fixes bug #78927.
22381 - when handling mousedown on a cell, ensure the cell is visible
22382 before calling Edit.
22383 - remove the properties from DataGridRow, and remove the
22384 DataGridParentRow class altogether.
22387 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
22389 * TextBoxBase.cs (set_Text): Don't use base.Text, instead just
22390 fire OnTextChanged by ourselves. There's no point calling base,
22391 we don't set the base value anywhere else. Fixes #78773.
22393 2006-08-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
22395 * ListBox.cs: Call CollectionChanged when modifying
22396 an item from Items indexer, to update the actual items
22399 2006-08-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
22401 * PrintDialog.cs: Small fixes for focus and a pair of checks,
22402 to match .Net behaviour.
22404 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
22406 * XplatUIX11.cs (SetZOrder): Handle raising toplevel windows
22408 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
22410 * Control.cs: Handle BringToFront for toplevel windows (Fixes #78737)
22412 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
22414 * MessageBox.cs: Prevent potential NRE exception.
22415 * TextBoxBase.cs: AutoSize only applies if MultiLine is false. Fixes #78889
22417 2006-08-14 Peter Dennis Bartok <pbartok@novell.com>
22419 * MessageBox.cs: Calculate the owner of a messagebox, also make
22420 it topmost. Fixes #78753
22422 2006-08-14 Chris Toshok <toshok@ximian.com>
22424 * XplatUIX11.cs: A couple of fixes so that metacity will let us
22425 programmatically move windows. first, set the PPosition hint as
22426 well as the USPosition hint. Second include some code from pdb
22427 that sets the window type to NORMAL when we set the transient for
22428 hint. This is because, in the absence of a window type, metacity
22429 thinks any window with TransientFor set is a dialog, and refuses
22430 to let us move it programmatically. fascists.
22432 2006-08-14 Peter Dennis Bartok <pbartok@novell.com>
22434 * XplatUIX11.cs: When setting normal hints, take into consideration
22435 an different hints previously set so we don't delete them (fixes #78866)
22437 2006-08-12 Chris Toshok <toshok@ximian.com>
22439 * ToolBarButton.cs: make Layout return a boolean, if something to
22440 do with the button's layout changed.
22443 - add another parameter to Redraw, @force, which all existing
22445 - make the Layout function return a boolean which is true if the
22446 layout has actually changed. Redraw now uses this (and @force)
22447 to determine when to invalidate. At present the only place
22448 where @force can be false is the call from OnResize, when
22449 background_image == null. So, resizing a toolbar when the
22450 layout doesn't change results in no drawing.
22452 2006-08-12 Chris Toshok <toshok@ximian.com>
22454 * ThemeWin32Classic.cs: fix the bottom right corner painting. had
22455 the VScrollBar and HScrollbar reversed. oops.
22457 * DataGrid.cs: fix the logic that assigns sizes to the implicit
22458 scrollbars. we were assigning them twice (once in
22459 Calc{Horiz,Vertical}Scrollbar, and once in CalcGridAreas),
22460 therefore causing two scrollbar resizes (and redraws?) to happen
22463 2006-08-12 Chris Toshok <toshok@ximian.com>
22465 * ToolBarButton.cs: redraw the entire button if the theme tells us
22468 * Theme.cs: add ToolBarInvalidateEntireButton.
22470 * ThemeWin32Classic.cs: we don't need to redraw the entire toolbar
22471 buttons, just the border.
22473 * ThemeNice.cs: redraw the entire toolbar button since we need to
22474 draw the highlight image.
22476 * ThemeClearlooks.cs: the rounded corners of toolbar buttons mean
22477 we need to redraw the entire button (not just the border).
22479 2006-08-11 Peter Dennis Bartok <pbartok@novell.com>
22481 * TextBoxBase.cs (CalculateScrollbars): Set the proper thumb size
22482 for vertical bars. Fixes the mismatches shown by #78513
22484 2006-08-11 Alexander Olk <alex.olk@googlemail.com>
22486 * FileDialog.cs: If a saved/remembered path doesn't exist
22487 anymore, fall back to "Desktop".
22489 2006-08-11 Peter Dennis Bartok <pbartok@novell.com>
22491 * Form.cs (CreateParams): Don't use Parent.Handle unless we have a
22492 parent. It's apparently legal to not have one
22494 - SetZOrder: Don't try to set Z-Order on an unmapped window
22495 - CreateWindow: 0,0 are legal coordinates for a window. don't move
22496 it unless the coordinates are negative
22498 2006-08-10 Mike Kestner <mkestner@novell.com>
22500 * ListControl.cs: allow null for DataSource. Clear DisplayMember
22501 when setting to null per msdn docs. Fixes #78854.
22503 2006-08-10 Chris Toshok <toshok@ximian.com>
22505 * Menu.cs, MainMenu.cs, MenuAPI.cs: get rid of most of the
22506 flickering by setting a clip rectangle on the Graphics when we
22507 need to redraw just a particular menuitem. Also, rename "OnClick"
22508 to "OnMouseDown" to reflect what it actually is.
22510 * Form.cs: track the OnMouseDown change.
22512 2006-08-10 Peter Dennis Bartok <pbartok@novell.com>
22514 * CommonDialog.cs: Properly inherit the CreateParams from the form
22515 and only change what we need. Fixes #78865
22517 2006-08-10 Chris Toshok <toshok@ximian.com>
22519 * ToolBar.cs, ToolBarButton.cs: fix the redraw-on-highlight
22520 flickering in flat mode (and most of the flickering in general) by
22521 only invalidating the button border (and not the entire rectangle)
22522 when the state changes. A couple of cases still flicker:
22523 ToggleButtons, and the dropdown arrow case when the user mouse
22526 2006-08-10 Alexander Olk <alex.olk@googlemail.com>
22528 * X11Keyboard.cs: Fixed handling of the Del key on the cursorblock
22529 for german keyboards. Numlock state shouldn't affect the behaviour
22530 of the Del key. Fixes bug #78291.
22532 2006-08-10 Chris Toshok <toshok@ximian.com>
22534 * ListControl.cs: remove the items.Clear line from BindDataItems,
22535 as this is the first thing done by both subclasses in their
22536 SetItemsCore overrides. Also, add a ItemChanged handler, and when
22537 passed -1, refresh the list. This gets databinding working when
22538 the datasource is set on the list before the datasource is
22539 populated (as in wf-apps/ReportBuilder.)
22541 * ComboBox.cs: remove the argument to BindDataItems. This call
22542 should really go away, and be initiated by the ListControl code.
22544 * ListBox.cs: same.
22546 2006-08-09 Peter Dennis Bartok <pbartok@novell.com>
22548 * TextControl.cs (Document.ctor): Initialize caret so we don't crash
22549 if no data is in the document when the control is displayed
22551 2006-08-09 Peter Dennis Bartok <pbartok@novell.com>
22553 * TextBoxBase.cs: Don't try moving the caret if we don't have a window
22556 - PositionCaret: Allow positioning of caret but don't call methods
22557 requiring a handle if the window isn't created yet
22558 - CharIndexToLineTag: Fix ending loop early error. Lines is 1 based
22559 - owner_HandleCreated: Don't position the caret, just update it's
22560 location. User might have already set a different position
22562 2006-08-09 Peter Dennis Bartok <pbartok@novell.com>
22564 * XplatUIWin32.cs: Don't use the desktop as basis for foster-parented
22565 windows. Screws up the returned coordinates for child windows.
22566 Fixes #78825. I'm hoping this doesn't break something, since the
22567 code was explicitly put in 8 months ago, but no bug was attached.
22568 Menus still seem to work properly.
22570 2006-08-08 Chris Toshok <toshok@ximian.com>
22572 * DataGrid.cs: make BeginInit/EndInit actually do what they're
22573 supposed to do - delay data binding until the EndInit call. Also,
22574 make the table style collection's CollectionChangeAction.Refresh
22577 * GridTableStylesCollection.cs: raise a CollectionChangeEvent
22578 (with action = Refresh) when a consituent table's MappingName is
22581 2006-08-08 Chris Toshok <toshok@ximian.com>
22583 * ToolBarButton.cs: in set_Text, call Parent.Redraw, not
22584 Invalidate, since changing the text can change the size of the all
22587 2006-08-08 Peter Dennis Bartok <pbartok@novell.com>
22589 * Form.cs (AddOwnedForm): Still need to add the form to our listif
22590 we don't have it yet
22592 2006-08-08 Chris Toshok <toshok@ximian.com>
22594 * PrintControllerWithStatusDialog.cs: don't .Close() the status
22595 dialog, as this causes X errors later on, since we actually
22596 destroy the window. Instead, .Hide() it.
22598 2006-08-08 Peter Dennis Bartok <pbartok@novell.com>
22600 * ComboBox.cs: Added focus reflection for popup window
22602 - Removed transient setting for non-app windows for now, not sure it
22604 - Fixed logic checking if we have captions when deciding
22605 override_redirect, WS_CAPTION is two bits and a 0 check was not
22607 - Removed the WINDOW_TYPE stuff, it was unneeded and making things
22610 - AddOwnedForm: Don't just add the form to the list, call the property
22611 to ensure the driver is informed about the ownership as well
22612 - CreateHandle: Set the TopMost status in the driver if we have an owner
22613 * XplatUI.cs: Fixed debug statement
22615 2006-08-08 Jonathan Pobst <monkey@jpobst.com>
22616 * ButtonRenderer.cs, CheckBoxRenderer.cs, ComboBoxRenderer.cs
22617 GroupBoxRenderer.cs, ProgressBarRenderer.cs, RadioButtonRenderer.cs,
22618 ScrollBarRenderer.cs, TabRenderer.cs, TextBoxRenderer.cs,
22619 TrackBarRenderer.cs: Make constructor private.
22620 * ProfessionalColors.cs, ProfessionalColorTable.cs: Fix misnamed properties.
22621 * ProfessionalColorTable.cs: Make properties virtual.
22623 2006-08-06 Duncan Mak <duncan@novell.com>
22625 * NumericUpDown.cs (Value): Don't call OnValueChanged if the value
22628 2006-08-04 Jonathan Pobst <monkey@jpobst.com>
22629 * ButtonRenderer.cs, CheckBoxRenderer.cs, ComboBoxRenderer.cs
22630 GroupBoxRenderer.cs, ProfessionalColors.cs, ProfessionalColorTable.cs,
22631 ProgressBarRenderer.cs, RadioButtonRenderer.cs, ScrollBarRenderer.cs,
22632 TabRenderer.cs, TextBoxRenderer.cs, TextRenderer.cs, TrackBarRenderer.cs:
22633 Initial import of new 2.0 classes.
22635 2006-08-04 Jonathan Pobst <monkey@jpobst.com>
22636 * Application.cs: Add 2.0 VisualStyles properties.
22638 2006-08-04 Jonathan Pobst <monkey@jpobst.com>
22639 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
22640 XplatUIX11.cs: Create property to allow access to existing private
22641 variable "themes_enabled"
22643 2006-08-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
22645 * ImageListStreamer.cs: generate the MemoryStreams with the exact BMP
22646 file size, as otherwise our class libraries fail using windows. Fixes
22649 2006-08-04 Jackson Harper <jackson@ximian.com>
22652 * XplatUIX11.cs: Move the toolwindow window manager creation into
22653 the X11 driver, this way on win32 we can let windows create/handle
22656 2006-08-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
22658 * PrintDialog.cs: Remove some redundant checks, add some others,
22659 clean some code, and move the focus to the text boxes when the
22660 values are incorrect.
22662 2006-08-04 Alexander Olk <alex.olk@googlemail.com>
22664 * FontDialog.cs: Remove Form.MinimumSize. It's not needed.
22666 2006-08-03 Alexander Olk <alex.olk@googlemail.com>
22668 * NumericUpDown.cs: Setting the Minimum and Maximum is now
22669 handled correctly. Fixes bug #79001.
22671 2006-08-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
22673 * PrintDialog.cs: The "Copies" numeric up down must have
22674 set the Minimum property to 1; only if the value is bigger
22675 than 1, activate "Collate" check box. This is the behaviour of .Net.
22676 Also modify the Document elements only if it is not null.
22678 2006-08-03 Jackson Harper <jackson@ximian.com>
22680 * TreeNodeCollection.cs: Fix copyto to use the correct nodes
22681 length. (We have a larger array then actual node count).
22683 2006-08-03 Jackson Harper <jackson@ximian.com>
22685 * ComboBox.cs: Don't show selection by default.
22686 - The SelectAll isn't needed here, since the focus code should do
22688 - DDL style lists to manual selection drawing, so when they
22689 get/lose focus they have to invalidate.
22691 2006-08-03 Peter Dennis Bartok <pbartok@novell.com>
22693 * TextBoxBase.cs: Don't always show all selections by default.
22695 2006-08-03 Jonathan Pobst <monkey@jpobst.com>
22696 * ControlUpdateMode.cs, DataSourceUpdateMode.cs,
22697 HelpNavigator.cs, WebBrowserEncryptionLevel.cs:
22698 Fixed various typos.
22700 2006-08-03 Alexander Olk <alex.olk@googlemail.com>
22702 * Control.cs: Removing the controls in a ControlCollection with
22703 Clear now hides the controls as expected. Fixes bug #78804.
22705 2006-08-03 Jackson Harper <jackson@ximian.com>
22707 * Control.cs: Revert previous focus patch, it breaks reflector.
22709 2006-08-03 Jackson Harper <jackson@ximian.com>
22711 * ComboBox.cs: Cleanup selection and focus with the combobox.
22712 This also eliminates some duplicated keyboard code, since now
22713 everything is handled by the main class.
22714 - Make list selection work on mouse up instead of down, to match
22717 2006-08-02 Jackson Harper <jackson@ximian.com>
22719 * Control.cs: Setting focus needs to go through the whole
22720 selection mechanism.
22722 2006-08-02 Chris Toshok <toshok@ximian.com>
22724 * PrintPreviewDialog.cs: change MinimumSize to use
22725 base.MinimumSize so it works.
22727 2006-08-02 Peter Dennis Bartok <pbartok@novell.com>
22730 - UpdateCaret: Added sanity check in case caret isn't defined yet
22731 - Line.Delete: Now updating selection and caret markers if we're
22732 transfering a node (Properly fixes #78323)
22733 - SetSelectionEnd: Added sanity check
22734 * TextBoxBase.cs: Removed broken attempt to fix #78323
22736 2006-08-01 Chris Toshok <toshok@ximian.com>
22738 * PrintPreviewDialog.cs: the CancelEventArgs stuff surrounding the
22739 Close() call is handled in Form, not here.
22741 2006-08-01 Chris Toshok <toshok@ximian.com>
22743 * Theme.cs, ThemeWin32Classic.cs: fix the PrintPreviewControl
22746 * PrintPreviewDialog.cs: add scrollbars, and add an image cache
22747 for sizes < 100% zoom. The code now aggressively attempts to keep
22748 from calling document.Print (), and tries not to use the scaling
22749 g.DrawImage whenever possible (it still does if you scale to >
22750 100%, since usually that involves huge images).
22752 * PrintPreviewControl.cs: hook up the close button.
22754 2006-08-01 Jonathan Pobst <monkey@jpobst.com>
22755 * ColumnClickEventHandler.cs, DrawItemEventHandler.cs,
22756 ItemChangedEventHandler.cs, ItemCheckEventHandler.cs,
22757 ItemDragEventHandler.cs, LabelEditEventHandler.cs,
22758 LinkClickedEventHandler.cs, LinkLabelLinkClickedEventHandler.cs,
22759 MeasureItemEventHandler.cs, MethodInvoker.cs, PaintEventHandler.cs,
22760 PropertyTabChangedEventHandler.cs, PropertyValueChangedEventHandler.cs,
22761 SelectedGridItemChangedEventHandler.cs, ToolBarButtonClickEventHandler.cs:
22762 Removed [Serializable] for 2.0 Event Handlers.
22764 2006-07-31 Jackson Harper <jackson@ximian.com>
22766 * TextBoxBase.cs: Make ShowSelection invalidate when changed.
22767 * TextControl.cs: Uncomment out the body of this method.
22769 2006-07-31 Alexander Olk <alex.olk@googlemail.com>
22771 * XplatUIX11.cs: Use the correct cursor shapes for arrow and default
22774 2006-07-31 Peter Dennis Bartok <pbartok@novell.com>
22776 * TextBoxBase.cs: Added internal property ShowSelection to allow controls
22777 that embed TextBox and need selections visible even if textbox is not
22778 focused to enforce that behaviour.
22779 * TextControl.cs (Draw): Use ShowSelection instead of has_focus to determine
22782 2006-07-31 Peter Dennis Bartok <pbartok@novell.com>
22785 - Added new SetSelectionStart/SetSelectionEnd overloads
22786 - Fixed viewport width assignment to be accurate
22787 - Adjusted alignment line shift calculations to allow cursor on right
22788 aligned lines to be always visible at the right border (like MS)
22790 - SetBoundsCore: Re-adjust caret location after resize (Fixes #78323)
22791 - TextBoxBase_SizeChanged: recalculating canvas on size changes
22792 - CalculateScrollBars: Use ViewPort size instead of window size, to
22793 properly consider space occupied by the border and scrollbars
22795 - hscroll_ValueChanged, vscroll_ValueChanged: Fixed scroll
22796 calculations; no longer leaves artifacts
22797 - CaretMoved: Adjusted window scrolling to match MS and fixed several
22798 calculation bugs (Still missing right/center align calculations)
22800 2006-07-31 Peter Dennis Bartok <pbartok@novell.com>
22802 * XPlatUIWin32.cs: Made ScrollRectEx a bit more flexible, and removed
22803 use of both scroll rect and clip rect, as they do the same.
22805 2006-07-31 Peter Dennis Bartok <pbartok@novell.com>
22807 * Control.cs (WM_CHAR WndProc): 2.0 profile allows changing the key
22808 in the event handler (fixes #78912)
22810 2006-07-31 Chris Toshok <toshok@ximian.com>
22812 * ThemeWin32Classic.cs: use grid.RowsCount here instead of
22813 grid.ListManager.Count, since grid.ListManager might be null.
22814 This of course begs the question "why are we drawing rows for a
22815 grid with no list manager (and therefor no rows)?" Fixes the
22816 crash in bug #78929.
22818 2006-07-31 Chris Toshok <toshok@ximian.com>
22820 * RelatedPropertyManager.cs: Don't always chain up to the parent
22821 ctor. instead, call SetDataSource if the parent's position is !=
22822 -1. Fixes the crash in #78822.
22824 2006-07-31 Chris Toshok <toshok@ximian.com>
22826 * DataGrid.cs (get_ListManager): use field instead of property
22827 accessors for datasource and datamember.
22828 (RowsCount): make internal again.
22829 (OnMouseDown): end edits before resizing columns/rows.
22830 (OnMouseUp): restart edits after resizing columns/rows.
22832 2006-07-30 Peter Dennis Bartok <pbartok@novell.com>
22834 * XplatUIX11.cs: Default cursor cannot be 0 or it will not get set.
22835 This fixes the situation where the last set cursor is displayed
22836 whenever the mouse is over scrollbars.
22838 2006-07-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
22840 * PrintDialog.cs: Fix the behaviour of PrinterSettings and
22841 Document properties, as well as initial values.
22843 2006-07-29 Peter Dennis Bartok <pbartok@novell.com>
22845 * XplatUIWin32.cs (SetBorderStyle): Setting both border
22846 and ClientEdge results in a 3-pixel border, which is
22849 2006-07-28 Jackson Harper <jackson@ximian.com>
22851 * TreeNodeCollection.cs: Fix the clear method.
22852 - Fix the Shrink also
22854 2006-07-27 Jackson Harper <jackson@ximian.com>
22856 * TreeView.cs: Make sure the visible order is computed when we
22857 attempt to size the scrollbars (for trees that mess with the
22858 scrolling when they shouldn't.
22859 - Make sure to give the scrollbars valid values.
22861 2006-07-26 Peter Dennis Bartok <pbartok@novell.com>
22863 * XplatUIX11.cs: Move motion compression code to where it
22864 has less performance impact
22866 2006-07-26 Jackson Harper <jackson@ximian.com>
22868 * UpDownBase.cs: When the control is selected make the child
22869 controls non selectable, so that a click on them won't do a
22870 focus/unfocus cycle.
22871 - Don't give focus to the text box when the spinner is selected.
22872 * XEventQueue.cs: Peek on both the x11 queue and the lock queue.
22874 2006-07-26 Chris Toshok <toshok@ximian.com>
22876 * ThemeWin32Classic.cs: add print preview rendering. I'm not
22877 satisfied with this solution. If the bitmaps are small, we should
22878 just cache them in the PrintPreviewDialog and draw them here.
22879 Also, the layout is broken for the 2-up and 3-up cases.
22881 * Theme.cs: add PrintPReviewControlPaint.
22883 * PrintPreviewDialog.cs: first pass implementation.
22885 * PrintPreviewControl.cs: first pass implementation. No
22888 * PrintDialog.cs: only validate fields if that particular portion
22889 of the UI is enabled. Also, set the document's controller to a
22890 PrintControllerWithStatusDialog wrapping the document's print
22893 * PrintControllerWithStatusDialog.cs: if we're printing to a file,
22894 bring up a SaveFileDialog (i hope we don't want to match the
22895 behavior of the crappy windows file entry) and set the
22896 PrinterSettings.PrintFileName accordingly.
22898 2006-07-26 Jackson Harper <jackson@ximian.com>
22900 * ContainerControl.cs: Add a field that disables auto selecting
22901 the next control in a container when the container is activated.
22902 * UpDownBase.cs: Don't select the text box when the up down is
22905 2006-07-26 Peter Dennis Bartok <pbartok@novell.com>
22907 * XEventQueue.cs: Added methods for peeking (used for compression
22908 of successive events)
22909 * XplatUIX11.cs (GetMessage): We're now compressing consecutive
22910 mouse move events (fixes #78732)
22912 2006-07-25 Jackson Harper <jackson@ximian.com>
22914 * UpDownBase.cs: Use an internal class for the textbox so that we
22915 can control focus. the updown control should always have focus,
22916 if either the text area or the buttons are clicked.
22917 - Send the key messages to the textbox, since it never actually
22919 - Activate and decativate the textbox caret.
22921 2006-07-24 Jackson Harper <jackson@ximian.com>
22923 * Control.cs: Use the directed select when selecting a control,
22924 this way the container controls override will get called and the
22925 whole ActiveControl chain will get triggered. TODO: probably need
22926 to make sure this gets done everywhere instead of the old
22928 * ContainerControl.cs: Implement the directed Select method to
22929 find and activate the correct child control.
22931 2006-07-22 Mike Kestner <mkestner@novell.com>
22933 * Form.cs: use Control.MousePosition for NCLBUTTONDOWN in the menu
22934 menu handling code so that clicks without a grab work too.
22937 2006-07-22 Alexander Olk <alex.olk@googlemail.com>
22939 * FileDialog.cs: Enable the BackButton when dirstack has one element.
22940 Added some small optimizations.
22942 2006-07-21 Matt Hargett <matt@use.net>
22944 * Control.cs: Implemented 2.0 MinimumSize/MaximumSize properties
22946 2006-07-21 Peter Dennis Bartok <pbartok@novell.com>
22948 * Control.cs (GetNextControl): Fixes to make all of Jackson's unit
22949 tests pass and match MS in some strange border cases.
22951 2006-07-21 Chris Toshok <toshok@ximian.com>
22953 * ThemeWin32Classic.cs: handle drawing of the relation links and
22954 parent row buttons.
22956 * Theme.cs: change args to DataGridPaintParentRow.
22958 * DataGrid.cs: Don't use controls for the relation links and
22959 parent buttons, so we have to handle all their interactions in
22960 MouseMove, MouseDown, MouseUp, etc. Also, store a lot more stuff
22961 when we're navigating through child tables, so we can reinstate
22962 selection, expanded state, current cell, etc.
22964 2006-07-20 Chris Toshok <toshok@ximian.com>
22966 * ToolBar.cs: When we redraw a button, for whatever reason,
22967 there's no reason to redraw the entire toolbar. Also, don't call
22968 Control.Refresh from within Redraw, as it's much heavier than
22969 Invalidate (which is really what we want).
22971 2006-07-20 Chris Toshok <toshok@ximian.com>
22973 * DataGrid.cs, CurrencyManager.cs, DataGridColumnStyle.cs,
22974 DataGridTextBoxColumn.cs, DataGridTextBox.cs,
22975 ThemeWin32Classic.cs, ListControl.cs: After staring at stack
22976 traces from within a debug IBindingList datasource
22977 (in mono/winforms/datagrid) for *days*, I've finally gotten things
22978 to work in a similar fashion.
22980 2006-07-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
22982 * ListBox.cs: Don't call Sort () when setting
22983 the Sorted property to false (avoid an unnecessary sort).
22985 2006-07-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
22987 * ListControl.cs: DataSource should throw an ArgumentException
22988 instead of a normal exception when the argument is not of the
22991 2006-07-20 Mike Kestner <mkestner@novell.com>
22993 * Control.cs: add InternalPreProcessMessage to allow us to steal
22994 key events before MWF gets its paws on them. Adapted from a
22996 * ToolBar.cs: add GotLostFocus handing for flat toolbars, with
22997 up/down/left/right navigation. Override the new internal control
22998 method to steal the events since they never make it to WndProc.
22999 * ToolBarButton.cs: don't worry about pushed when setting hilight
23000 since the drawing code prefers pushed to hilight. Invalidate on
23001 Hilight changes. Fixes #78547 and #78525.
23003 2006-07-20 Peter Dennis Bartok <pbartok@novell.com>
23005 * ScrollableControl.cs: Consider AutoScrollMinSize when calculating
23006 the canvas size. Fixes #78868
23008 2006-07-20 Peter Dennis Bartok <pbartok@novell.com>
23010 * Splitter.cs: Track requested split position until first layout
23011 is performed. Fixes #78871
23013 2006-07-20 Peter Dennis Bartok <pbartok@novell.com>
23015 * Application.cs: Removed code that forces 1.x for the version
23016 number if the version started with 0. Not sure why that code was
23017 there and I couldn't find any bugs that indicated we needed it.
23020 2006-07-20 Alexander Olk <alex.olk@googlemail.com>
23022 * ThemeWin32Classic.cs: Don't throw a NotImplementedException in
23023 ResetDefaults(), just write some output to the console until it's
23024 implemented. Fixes bug #78907 for now. Eliminated two warnings.
23026 2006-07-19 Jonathan Chambers <joncham@gmail.com>
23028 * PropertyGridView.cs: set StartPosition of drop down forms
23029 so they appear in correct initial spot. Fixes #78190.
23031 2006-07-19 Mike Kestner <mkestner@novell.com>
23033 * ThemeWin32Classic.cs: use parent background color when drawing
23034 flat toolbars. Restructure the conditionals to make sure non-flat
23035 non-Divider toolbars are filled too. Fixes #78837.
23037 2006-07-19 Mike Kestner <mkestner@novell.com>
23039 * ListBox.cs: Sort on collection changes even if the handle
23040 isn't created yet. Fixes #78813.
23042 2006-07-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
23044 * ListControl.cs: DisplayMember should never be null,
23045 and now we assign String.Empty when null is passed to it (this
23048 2006-07-17 Mike Kestner <mkestner@novell.com>
23050 * ListViewItem.cs: restructure Font and subitem Font handling
23051 to hold a specific font and refer back to owner on null.
23054 2006-07-17 Mike Kestner <mkestner@novell.com>
23056 * ToolBar.cs: bandaid for side-effect of previous patch which was
23057 discarding explicit heights for non-AutoSize toolbars. Need to
23058 extend my format tester to deal with AutoSize=false. Fixes #78864.
23060 2006-07-15 Jackson Harper <jackson@ximian.com>
23062 * LabelEditTextBox.cs:
23063 * TreeView.cs: Use a new LabelEdit class for node editing, this
23064 class automatically 'closes' itself when it gets the enter key or
23066 - Use the client rectangle when setting the trees scrollbars, so
23067 border style is taken into account.
23069 2006-07-14 Jackson Harper <jackson@ximian.com>
23072 * TreeView.cs: Make the editing work similar to MSs, firing the
23073 events correctly and ending edits correctly.
23075 2006-07-14 Mike Kestner <mkestner@novell.com>
23077 * ToolBarButton.cs:
23078 * ToolBar.cs: layout restructuring and redraw enhancements to support
23079 formatting changes gracefully, like setting TextAlign, ImageList,
23080 ButtonSize, and Appearance. Handles explicit button sizing quirks
23081 of the MS controls. Things like flat toolbars ignoring button size
23082 but becoming constant sized at the largest button's size. Normal
23083 toolbars with an image set cannot be shrunk smaller than the image,
23084 but text can be clipped/ignored.
23085 * ThemeWin32Classic.cs: don't draw text if text_rect height or width
23086 is zero. Seems like DrawString should be smart enough to not put
23087 anything on screen though. Also trim labels and ellipsize at the char
23088 boundary, not word.
23089 Fixes #78711 and #78483.
23091 2006-07-14 Alexander Olk <alex.olk@googlemail.com>
23093 * FolderBrowserDialog.cs: Disable "New Folder" button and
23094 "New Folder" contextmenu menuitem if a folder like "My Computer"
23097 2006-07-14 Alexander Olk <alex.olk@googlemail.com>
23099 * FileDialog.cs: Don't create a new folder in "MyComputer" folder.
23100 * FolderBrowserDialog.cs:
23101 - Use MWFConfig to store and read size and position settings
23102 - Added code to create a new folder (button or context menu).
23103 Use TreeView labeledit to change the name of the new folder.
23105 2006-07-14 Jackson Harper <jackson@ximian.com>
23107 * TreeView.cs: Raise the OnAfterLabelEdit event correctly. Also,
23108 when the tree is scrolled we end editing.
23110 2006-07-14 Alexander Olk <alex.olk@googlemail.com>
23112 * ThemeWin32Classic.cs: Fixed position of CPDrawScrollButton Up and
23115 2006-07-14 Jonathan Pobst <monkey@ipobst.com>
23117 WebBrowserProgressChangedEventHandler.cs, BindingCompleteEventArgs.cs,
23118 BindingCompleteEventHandler.cs, BindingManagerDataErrorEventArgs.cs,
23119 BindingManagerDataErrorEventHandler.cs, CacheVirtualItemsEventArgs.cs,
23120 CacheVirtualItemsEventHandler.cs, ColumnReorderedEventArgs.cs,
23121 ColumnReorderedEventHandler.cs, ColumnWidthChangedEventArgs.cs,
23122 ColumnWidthChangedEventHandler.cs, ColumnWidthChangingEventArgs.cs,
23123 ColumnWidthChangingEventHandler.cs, FormClosedEventArgs.cs,
23124 FormClosedEventHandler.cs, FormClosingEventArgs.cs,
23125 FormClosingEventHandler.cs, ItemCheckedEventArgs.cs,
23126 ItemCheckedEventHandler.cs, ListControlConvertEventArgs.cs,
23127 ListControlConvertEventHandler.cs, ListViewItemMouseHoverEventArgs.cs,
23128 ListViewItemMouseHoverEventHandler.cs, ListViewItemSelectionChangedEventArgs.cs,
23129 ListViewItemSelectionChangedEventHandler.cs,
23130 ListViewVirtualItemsSelectionRangeChangedEventArgs.cs,
23131 ListViewVirtualItemsSelectionRangeChangedEventHandler.cs,
23132 MaskInputRejectedEventArgs.cs, MaskInputRejectedEventHandler.cs,
23133 PopupEventArgs.cs, PopupEventHandler.cs, PreviewKeyDownEventArgs.cs,
23134 PreviewKeyDownEventHandler.cs, RetrieveVirtualItemEventArgs.cs,
23135 RetrieveVirtualItemEventHandler.cs, SearchForVirtualItemEventArgs.cs,
23136 SearchForVirtualItemEventHandler.cs, SplitterCancelEventArgs.cs,
23137 SplitterCancelEventHandler.cs, TabControlCancelEventArgs.cs,
23138 TabControlCancelEventHandler.cs, TabControlEventArgs.cs,
23139 TabControlEventHandler.cs, TableLayoutCellPaintEventArgs.cs,
23140 TableLayoutCellPaintEventHandler.cs, ToolStripDropDownClosedEventArgs.cs,
23141 ToolStripDropDownClosedEventHandler.cs, ToolStripDropDownClosingEventArgs.cs,
23142 ToolStripDropDownClosingEventHandler.cs, TreeNodeMouseClickEventArgs.cs,
23143 TreeNodeMouseClickEventHandler.cs, TreeNodeMouseHoverEventArgs.cs,
23144 TreeNodeMouseHoverEventHandler.cs, TypeValidationEventArgs.cs,
23145 TypeValidationEventHandler.cs, WebBrowserDocumentCompletedEventArgs.cs,
23146 WebBrowserDocumentCompletedEventHandler.cs, WebBrowserNavigatedEventArgs.cs,
23147 WebBrowserNavigatedEventHandler.cs, WebBrowserNavigatingEventArgs.cs,
23148 WebBrowserNavigatingEventHandler.cs,
23149 WebBrowserProgressChangedEventArgs.cs: New 2.0 Event Handlers
23151 2006-07-14 Jonathan Pobst <monkey@ipobst.com>
23153 MergeAction.cs, PowerLineStatus.cs, PowerState.cs, PreProcessControlState.cs,
23154 RichTextBoxLanguageOptions.cs, ScreenOrientation.cs, ScrollOrientation.cs,
23155 SearchDirectionHint.cs, SystemParameter.cs, TabControlAction.cs,
23156 TableLayoutPanelCellBorderStyle.cs, TextDataFormat.cs, TextImageRelation.cs,
23157 ToolStripDropDownCloseReason.cs, ToolStripDropDownDirection.cs,
23158 ToolStripGripDisplayStyle.cs, ToolStripGripStyle.cs,
23159 ToolStripItemAlignment.cs, ToolStripItemDisplayStyle.cs,
23160 ToolStripItemImageScaling.cs, ToolStripItemOverflow.cs,
23161 ToolStripItemPlacement.cs, ToolStripLayoutStyle.cs,
23162 ToolStripManagerRenderMode.cs, ToolStripRenderMode.cs,
23163 ToolStripStatusLabelBorderSides.cs, ToolStripTextDirection.cs,
23164 ToolTipIcon.cs, TreeNodeStates.cs, TreeViewDrawMode.cs,
23165 TreeViewHitTestLocations.cs, UnhandledExceptionMode.cs, ValidationConstraints.cs,
23166 WebBrowserEncryptionLevel.cs, WebBrowserReadyState.cs, WebBrowserRefreshOption.cs,
23167 ArrowDirection.cs, AutoCompleteMode.cs, AutoCompleteSource.cs, AutoSizeMode.cs,
23168 AutoValidate.cs, BatteryChargeStatus.cs, BindingCompleteContext.cs,
23169 BindingCompleteState.cs, CloseReason.cs, ColumnHeaderAutoResizeStyle.cs,
23170 ControlUpdateMode.cs, DataSourceUpdateMode.cs, DockingBehavior.cs,
23171 FixedPanel.cs, FlowDirection.cs, GetChildAtPointSkip.cs,
23172 HtmlElementInsertionOrientation.cs, InsertKeyMode.cs, ListViewHitTestLocations.cs,
23173 ListViewItemStates.cs, MaskFormat.cs: Added
23175 2006-07-13 Jonathan Chambers <joncham@gmail.com>
23177 * PropertyGridView.cs: Fix keyboard navigation of drop down.
23178 Patch from eno for bug 78558.
23180 2006-07-13 Jackson Harper <jackson@ximian.com>
23182 * TreeView.cs: When an edit is finished make sure that the
23183 selected node is visible.
23184 - When setting the top/bottom use the scrollbars is_visible, so
23185 everything will be set correctly even if the tree isn't visible
23188 2006-07-13 Jackson Harper <jackson@ximian.com>
23190 * ComboBox.cs: Revert the item->index part of my previous patch.
23191 * TreeView.cs: Use LostFocus instead of Leave for detecting when
23192 the edit box has lost focus (duh).
23193 - Just make the edit box not visible when we get return, that will
23194 take the focus, which will call EndEdit
23195 * TreeNode.cs When we start editing, notify the treeview.
23197 2006-07-12 Jackson Harper <jackson@ximian.com>
23199 * ComboBox.cs: Clear out old items before setting the item list.
23200 This prevents databound controls from having their items added
23202 - Switch the combobox to use indices whereever possible instead of
23203 using Item's. This allows usto navigate through lists that have
23204 more then one item with the same string value (ie a, b, b, a).
23205 - Scroll the listboxes scrollbar when a non visible item is
23207 - Allow keypress to cycle through all the possible values. For
23208 example if you have b1, b2, b3 and hold down the B key all the
23209 values will be cycled through.
23211 2006-07-12 Jackson Harper <jackson@ximian.com>
23214 * ListView.cs: Don't need to override SETFOCUS anymore, we can do
23215 this using the internal methods.
23216 * Control.cs: Add OnGotFocusInternal. A new method that allows
23217 controls to "override" OnGotFocus and change focus behavior if
23219 - Same thing for LostFocus
23220 * ComboBox.cs: Pass off focus to the text control properly.
23222 2006-07-12 Alexander Olk <alex.olk@googlemail.com>
23224 * FileDialog.cs: Added GetFoldersOnly to MWFVFS
23225 * FolderBrowserDialog.cs: Almost a complete rewrite.
23226 - Better support for Environment.Specialfolders
23227 - Added support for MWFVFS
23228 - Made setting SelectedPath work
23230 2006-07-12 Jackson Harper <jackson@ximian.com>
23232 * Control.cs: Optimze getting all the controls.
23234 2006-07-11 Jackson Harper <jackson@ximian.com>
23236 * ContainerControl.cs: Override SETFOCUS in the container control,
23237 so that it is not selected on mouse click.
23239 2006-07-11 Peter Dennis Bartok <pbartok@novell.com>
23241 * LinkLabel.cs: Hack to handle Shift-Tabbing to the linklabel.
23242 Hopefully we will have a better way once all of focus is complete.
23244 2006-07-11 Peter Dennis Bartok <pbartok@novell.com>
23246 * ThemeWin32Classic.cs: Commented out some debug code and fixed
23247 a compile error with csc.
23249 2006-07-11 Jackson Harper <jackson@ximian.com>
23251 * Control.cs: When hiding a control only select the next control
23252 if the current control was focused.
23253 - Don't handle enter/leave when setting/killing focus, this is
23254 done by the container control.
23255 - Remove is_selected, it's not needed anymore.
23256 - Add utility methods for selecting a child control, and for
23257 firing the Enter/Leave events.
23258 * ContainerControl.cs: When a control is activated fire the
23259 enter/leave events.
23260 - Don't wrap when processing the tab key, so that focus can be
23261 moved outside of the container.
23262 - Use the correct active control
23264 2006-07-11 Jackson Harper <jackson@ximian.com>
23266 * ComboBox.cs: Remove some debug code that was blinding me.
23267 * UpDownBase.cs: These controls actually aren't implicit, they are
23268 visible to the user.
23270 2006-07-10 Chris Toshok <toshok@ximian.com>
23272 * DataGrid.cs: move back to the is_adding boolean field. god i
23273 hate this is_editing/is_adding/is_changing stuff.
23275 2006-07-10 Chris Toshok <toshok@ximian.com>
23277 * DataGridTableStyle.cs: just check if the property type is bool.
23278 if it is, use DataGridBoolColumn, otherwise DataGridTextBoxColumn.
23279 Don't use CanRenderType.
23281 * DataGridTextBoxColumn.cs: set the value to DBNull.Value, not "",
23282 if our text == NullText. Remove CanRenderType.
23284 * DataGridBoolColumn.cs: nuke CanRenderType.
23286 * DataGrid.cs: reenable some code to end the current edit inside
23287 of set_CurrentCell. This fixes the other 1.1.16 regression.
23288 Also, remove rowhdrs_maxheight and just use rowhdrs_area.Height.
23289 Also, remove the visible_row_count arg from CalcRowHeaders, since
23290 we don't need to worry about the actual height of the area.
23292 2006-07-10 Chris Toshok <toshok@ximian.com>
23294 * DataGridTextBoxColumn.cs: if when we Commit we're in navigate
23297 * DataGridTextBox.cs: change "isedit" to "isnavigating" to reflect
23298 the real sense of the IsInEditOrNavigateMode property (true =
23299 navigate, false = edit). Also, update OnKeyPress to reflect this.
23301 * DataGridTableStyle.cs (CreateColumnsForTable): even if the
23302 column style exists, we still need to set its property descriptor
23303 to match up with our list manager.
23305 2006-07-10 Chris Toshok <toshok@ximian.com>
23307 * ThemeWin32Classic.cs: implement the new row/header painting
23308 approach. The parent row painting will likely go away and
23309 replaced with label controls, but the rest seems to work ok (and
23312 * Theme.cs: change the way we draw datagrid rows. we don't draw
23313 the row headers as a block now. Instead we draw them in the
23314 normal draw-row loop. Add some calls for drawing parent rows and
23317 * DataGridTableStyle.cs: add tons of ArgumentExceptions if this is
23318 a default table style. Set the defaults from ThemeEngine.Current,
23319 not SystemColors. Fix lots of misc issues with property setters.
23321 * DataGrid.cs: move loads of style information out of this class
23322 as it's being duplicated with DataGridTableStyle. keep track of a
23323 special DataGridTableStyle for the properties we used to mirror
23324 here. Switch all the style properties to access this table style
23325 instead of instance fields of this class. Also add a internal
23326 class to represent parent rows (more needs to be stored here, like
23327 the selection state from the parent table, as well as the
23328 expansion state.) Also, for datasources with relations, do the
23329 right thing for collapse/expand, and add support for the
23330 navigation/parent row buttons.
23332 Lastly, fix the crash in the 1.1.16 build.
23334 * GridTableStylesCollection.cs: make the explicit interface
23335 implementations call the class's methods as opposed to duplicating
23338 * DataGridTextBoxColumn.cs: set the x/y offset of the textfield to
23339 0 so the text doesn't jump around when we move the cursor.
23341 2006-07-10 Jackson Harper <jackson@ximian.com>
23344 * ListBox.cs: Match MS's ToString (this makes debugging focus
23345 stuff infinitely easier).
23347 2006-07-10 Jackson Harper <jackson@ximian.com>
23349 * Control.cs (SelectNextControl): When checking the control's
23350 parent use this instead of ctrl.parent so that null can be passed
23351 to SelectNextControl. (I have unit tests for this).
23352 - Remove unused var.
23354 2006-07-10 Chris Toshok <toshok@ximian.com>
23356 * CurrencyManager.cs: correct one regression, the removal of the
23357 finalType field. Also, add a MonoTODO on CanAddRows, implement
23358 Refresh() correctly, and fix some event emission in
23359 ListChangedHandler.
23361 2006-07-07 Alexander Olk <alex.olk@googlemail.com>
23363 * FileDialog.cs: Don't use brackets for new folders if they exist
23364 under *nix. Instead use -(number of existing folders +1).
23366 2006-07-07 Alexander Olk <alex.olk@googlemail.com>
23369 - Fixed really nasty bug #78771
23370 - Don't block the whole GUI when reading directories with a lot of
23371 entries. Use an other thread instead and call BeginInvoke to
23372 update the ListView in MWFFileView
23374 2006-07-07 Chris Toshok <toshok@ximian.com>
23376 * Control.cs (Dispose): release any Capture when disposing.
23378 2006-07-07 Chris Toshok <toshok@ximian.com>
23380 * LinkLabel.cs (Select): if we chain up to the parent, set
23381 focused_index to -1 so we'll search for the first available link
23382 the next time the user tabs into us. Also, if the direction is
23383 backward and focused_index == -1, start the search from the last
23386 2006-07-07 Chris Toshok <toshok@ximian.com>
23388 * LinkLabel.cs (CreatePiecesFromText): if the link's range piece
23389 is beyond the end of the text, don't do anything.
23390 (CreateLinkPieces): set our ControlStyles.Selectable based on
23391 whether or not we have any links.
23392 (Link.Invalidate): use a loop instead of foreach.
23393 (Link.set_Start): null out owner.sorted_links so it'll be
23394 recreated by CreateLinkPieces.
23396 2006-07-06 Chris Toshok <toshok@ximian.com>
23398 * LinkLabel.cs: revert the SetStyle change.
23400 2006-07-06 Chris Toshok <toshok@ximian.com>
23402 * LinkLabel.cs (.ctor): SetStyle Selectable to true.
23403 (OnEnableChanged): s/Refresh/Invalidate
23404 (OnGotFocus): if we have a focused index already, refocus it (so
23405 if we mouse out/in to the window it'll focus the right link).
23406 (OnKeyDown): move the tab handling out of here.
23407 (OnLostFocus): don't set focused_index to -1, so we can refocus it
23408 when we lose focus.
23409 (OnMouseDown): don't Capture here - Control handles it. Also,
23410 focus the active link.
23411 (OnMouseUp): don't deal with Capture.
23412 (OnPaintBackgroundInternal): remove.
23413 (OnTextAlignChanged): CreateLinkPieces before calling the
23414 superclass's method.
23415 (OnTextChanged): call CreateLinkPieces before calling superclass's
23417 (ProcessDialogKey): handle Tab here, and call Select(bool,bool) to
23419 (Select): implement this, moving the selection between different
23420 links, and call parent.SelectNextControl if we don't have another
23421 link to focus in the given direction.
23422 (CreateLinkPieces): call Invalidate instead of Refresh.
23424 2006-07-06 Chris Toshok <toshok@ximian.com>
23426 * ThemeWin32Classic.cs: DrawLinkLabel changes to accomodate the
23427 new LinkLabel internals.
23429 * LinkLabel.cs: fairly major rewrite. get rid of all the loops
23430 over pieces looking for active/focused/etc links. also, deal with
23431 runs of text (and links) with embedded \n's in them, and use
23432 MeasureCharacterRanges instead of MeasureString to figure out the
23433 regions text occupies. Lastly, do the usual s/Refresh/Invalidate
23436 2006-07-04 Jackson Harper <jackson@ximian.com>
23438 * XplatUIX11.cs: Enable key auto repeat. If the user doesn't have
23439 XKB or key auto repeat, do it manually. Without key auto repeat,
23440 when a key is held down we get key press, key release, key press,
23441 key release, ... with auto repeat we get key press, key press, key
23442 press ..., and then a release when the key is actually released.
23444 2006-07-03 Jackson Harper <jackson@ximian.com>
23447 * ThemeWin32Classic.cs: Tabs do not obey normal background color
23448 rules, they are always control color regardless of the background
23451 2006-07-02 Alexander Olk <alex.olk@googlemail.com>
23453 * FileDialog.cs: Added internal class MWFConfig.
23454 Removed Registry support and replaced it with support for the new
23455 MWFConfig class. See MWFConfig comments for more information.
23457 2006-06-30 Alexander Olk <alex.olk@googlemail.com>
23459 * ThemeWin32Classic.cs: Added RadioButton and CheckBox focus
23460 rectangle. Added some patches from eno from bug #78490 and fixed
23461 the arrow position for small up and down CPDrawScrollButtons.
23463 2006-06-30 Jackson Harper <jackson@ximian.com>
23465 * InternalWindowManager.cs: Remove some debug code.
23466 * Form.cs: When an MdiParent is set to null, the window is
23467 "detatched" and becomes a normal window.
23468 * MdiClient.cs: Don't bring the new child form to the front until
23469 it is activated (setting it as active does this), this makes the
23470 previously active forms titlebar get redrawn as inactive.
23472 2006-06-29 Peter Dennis Bartok <pbartok@novell.com>
23474 * PrintDialog.cs: Labels need a tab index too, otherwise they overlap
23475 with later controls
23477 2006-06-29 Mike Kestner <mkestner@novell.com>
23479 * MenuAPI.cs: handle arrow keys in keynav state. Go active on down
23480 arrow in keynav state. Fixes #78682.
23482 2006-06-28 Atsushi Enomoto <atsushi@ximian.com>
23484 * PrintDialog.cs: Reorder, relayout, remove extra code, set tab
23485 order (fixes #78393)
23487 2006-06-28 Jonathan Pobst <monkey@ipobst.com>
23489 * AccessibleRole.cs, AccessibleStates.cs, AnchorStyles.cs,
23490 ArrangeDirection.cs, ArrangeStartingPosition.cs, ColorDepth.cs,
23491 ControlStyles.cs, DataGridViewImageCellLayout.cs, DrawMode.cs,
23492 FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs,
23493 GridItemType.cs, HelpNavigator.cs, ImeMode.cs, ItemActivation.cs,
23494 ItemBoundsPortion.cs, Keys.cs, ListViewAlignment.cs,
23495 PictureBoxSizeMode.cs, PropertySort.cs, SelectionMode.cs,
23496 Shortcut.cs, SizeGripStyle.cs, SortOrder.cs, StructFormat.cs,
23497 TextFormatFlags.cs, ToolBarAppearance.cs, ToolBarButtonStyle.cs,
23498 ToolBarTextAlign.cs, View.cs: 2.0 Changes to existing 1.x
23499 enumerations (FlagsAttribute, SerializableAttribute, added/removed
23502 2006-06-28 Mike Kestner <mkestner@novell.com>
23504 * ComboBox.cs: implement scroll wheel support. Fixes #78360.
23506 2006-06-28 Atsushi Enomoto <atsushi@ximian.com>
23509 PropertyGridTextBox.cs : explicitly set BackColor to differentiate
23510 item lines from other area (It also makes BackColor consistent and
23511 compatible with .NET). Fixed bug #78564.
23513 2006-06-28 Jonathan Chambers <jonathan.chambers@ansys.com>
23515 * PropertyGrid.cs: refresh toolbar when PropertySort is set.
23516 Patch from Eno for #78555.
23518 2006-06-27 Chris Toshok <toshok@ximian.com>
23520 * ThemeWin32Classic.cs: s/grid.grid_drawing/grid
23522 * DataGridColumnStyle.cs: same.
23524 * DataGrid.cs: Roll DataGridDrawingLogic.cs into this file.
23526 * DataGridDrawingLogic.cs: nuke.
23528 2006-06-27 Chris Toshok <toshok@ximian.com>
23530 * DataGridTableStyle.cs: clean up the constructors, and build the
23531 list of child relations for this table. I have no idea if this is
23532 where we should be doing it (it probably isn't), but since we're
23533 already iterating over the properties..
23535 * DataGrid.cs: add row resizing. for now we add a DataGridRow
23536 struct and array for keeping track of row information, similar to
23537 what's shown in a hack on
23538 http://www.syncfusion.com/FAQ/WindowsForms/FAQ_c44c.aspx.
23540 * Theme.cs: be consistent about the naming of DataGrid methods,
23541 prefering ColumnWidths and RowHeights over columnsWidths and
23544 * ThemeWin32Classic.cs: same, and also add support for variable
23545 sized rows (and the +/- expansion icons for related rows).
23547 2006-06-27 Peter Dennis Bartok <pbartok@novell.com>
23549 * TextBoxBase.cs: Applied Eno's patch from #78660
23551 2006-06-27 Peter Dennis Bartok <pbartok@novell.com>
23553 * Form.cs (ScaleCore): We don't want to scale our form if it's
23554 state is minimized or maximized, but we still need to scale our
23555 child windows. Also, added try/finally block to ensure layout
23556 gets reset (Fixes #78697)
23558 2006-06-27 Peter Dennis Bartok <pbartok@novell.com>
23560 * Control.cs: Added 2.0 Scale(SizeF) method (Fixes 78700)
23562 2006-06-27 Peter Dennis Bartok <pbartok@novell.com>
23564 * Form.cs: Fixed c+p error and added check to resize form if minimum
23565 size is bigger than current size (Fixes #78709)
23567 2006-06-26 Peter Dennis Bartok <pbartok@novell.com>
23569 * ThemeEngine.cs (..ctor): Properly use ToLower() (Fixes #78704)
23571 2006-06-26 Mike Kestner <mkestner@novell.com>
23573 * ComboBox.cs: only do Keypress handling in the combo when there
23574 are items in the collection. Fixes #78710.
23576 2006-06-26 Chris Toshok <toshok@ximian.com>
23578 * Binding.cs: make this work bi-directionally. also, clear up
23579 other mixups between Push/Pull Data (e.g. we're supposed to pull
23580 data when validating).
23582 * BindingManagerBase.cs: trim some fully qualified collection
23585 * PropertyManager.cs (get_IsSuspended): oops, fix this check.
23587 2006-06-23 Chris Toshok <toshok@ximian.com>
23589 * PropertyManager.cs: It appears (according to the unit tests)
23590 that PropertyManager doesn't use
23591 PropertyDescriptor.AddValueChanged to track propery value changes
23592 in its datasource, but uses the same scheme as Binding, where it
23593 looks for a <Property>Changed event and binds to it.
23595 Also, according to the docs, IsSuspended always returns false for
23596 a property manager with a non-null datasource.
23598 2006-06-22 Peter Dennis Bartok <pbartok@novell.com>
23600 * Form.cs: (ShowDialog): If we're returning a forced cancel we still
23601 need to update the actual DialogResult. (Fixes #78613)
23603 2006-06-22 Peter Dennis Bartok <pbartok@novell.com>
23605 * Form.cs (ShowDialog): Release any captures before running the
23606 new message pump (fixes #78680)
23608 2006-06-22 Mike Kestner <mkestner@novell.com>
23610 * ListView.cs: Layout column widths properly in details mode even
23611 if HeaderStyle.None is set. Fixes #78691.
23613 2006-06-21 Peter Dennis Bartok <pbartok@novell.com>
23615 * FileDialog.cs: Fixed taborder to match MS. Fixes #77873 partially.
23617 2006-06-21 Peter Dennis Bartok <pbartok@novell.com>
23619 * Control.cs (ContainsFocus): Using new driver method to get focused
23620 window, instead of trying to use internal tracking var, which can
23621 recursion issues (Fixes #78685)
23622 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
23623 XplatUIWin32.cs: Added GetFocus method to return focused window
23625 2006-06-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
23627 * ColorDialog.cs: when the mouse button is pressed inside the color
23628 matrix, don't let the cursor move out of it until the button is
23629 released, which is the behavior on windows. Changed 'colours' by
23630 'colors' to use the same word consistently.
23632 2006-06-21 Chris Toshok <toshok@ximian.com>
23634 * DataGrid.cs: add in some basic navigation stuff (navigating to a
23635 child relation and back, using a stack). Also, remove
23636 GetDataSource and the code that calls it - it's not needed. Also,
23637 track CurrencyManager.ListName's removal.
23639 2006-06-21 Chris Toshok <toshok@ximian.com>
23641 * CurrencyManager.cs: push some of the original type checking from
23642 BindingContext.CreateBindingManager to here, and remove some of
23643 the finalType stuff. Need more tests to make sure I've got the
23644 ListName part right, and we might need more in SetDataSource.
23646 * PropertyManager.cs: add a ctor that takes just the datasource,
23647 and no property name. Make SetDataSource work with a null
23648 property_name, and make Current return the data_source if the
23649 property descriptor is null. this makes 'string foo = "hi";
23650 BindingContext[foo].Current' return "hi" as it should.
23652 * RelatedCurrencyManager.cs: make this code more generic - there's
23653 no reason the parent manager has to be CurrencyManager, and
23654 there's no reason to pass the DataRelation. It suffices to use a
23655 BindingManagerBase and PropetyDescriptor.
23657 * RelatedPropertyManager.cs: make a similar change here.
23659 * BindingContext.cs: make CreateBindingManager the beautiful, tiny
23660 flower I knew it could be.
23662 2006-06-20 Chris Toshok <toshok@ximian.com>
23664 * PropertyManager.cs: the PropertyChangedHandler is invoked when
23665 data in the source has changed and we need to update the control,
23666 so s/PullData/PushData.
23668 * CurrencyManager.cs: Refresh is meant to update the control from
23669 data in the datasource. So, s/PullData/PushData.
23671 * BindingContext.cs: add more ugliness (we weren't handling the
23672 case where data_source = DataTable and data_member = column_name).
23674 * Binding.cs: fix PushData/PullData mixup. Both are interpreted
23675 from the perspective of the datasource. PullData pulls from the
23676 control, PushData pushes to the control.
23678 2006-06-20 Chris Toshok <toshok@ximian.com>
23680 * BindingContext.cs: rewrite the CreateBindingManager code to
23681 handle navigation paths more or less properly. This could
23682 definitely stand some more work, in particular to push the
23683 recursion up to the toplevel. But that relies on fixes in other
23684 places (System.Data comes to mind).
23686 Also, move to a flat hashtable (and encode the twolevel nature of
23687 the dictionary into the hash key). This lets us implement the
23688 IEnumerable.GetEnumerator method.
23690 * RelatedCurrencyManager.cs: new class. Update our view based on
23691 our relation and our parent CurrencyManager's position.
23693 * CurrencyManager.cs: split out some logic from the ctor into
23694 SetView, so it can be called from the new RelatedCurrencyManager
23697 * RelatedPropertyManager.cs: new class. Update our datasource
23698 based on the position of our parent CurrencyManager.
23700 * PropertyManager.cs: split out some logic from the ctor into
23701 SetDataSource, so it can be called from the new RelatedDataSource
23702 subclass. Also, make the Current getter return the value
23703 of the PropertyDescriptor, not the data_source.
23705 * Binding.cs: no need to duplicate the string splitting code here.
23707 2006-06-19 Peter Dennis Bartok <pbartok@novell.com>
23710 - set_Enabled: OnEnabledChanged is not called if the inherited state
23711 of the control is not altered, even though we might be changing the
23712 internal state of the control (#78458)
23713 - set_Enabled: (Re)Moved the enabling/disabling of the window to
23714 OnEnabledChanged, to allow easy altering of any child window state
23715 - OnEnabledChanged: Added code to enable/disable driver window state
23716 - OnParentEnabledChanged: Instead of firing the event, call
23717 OnEnabledChanged, which will fire the event and also a) set driver
23718 window state and pass the enabled state to any grandchildren (#78458)
23720 2006-06-19 Jackson Harper <jackson@ximian.com>
23722 * InternalWindowManager.cs: We don't set the cursor explicitly
23723 thats done via the response to NCHITTESTs.
23724 - Don't need to adjust for titlebar heights anymore, the
23725 coordinates are coming in the correct coordinates now (see peters
23729 2006-06-19 Peter Dennis Bartok <pbartok@novell.com>
23731 * XplatUIX11.cs (GetMessage): WM_NCxBUTTONx messages were wrongly
23732 being translated relative to whole window, instead of client window.
23733 That caused broken offsets on mouseclick (and caused gas for our
23734 InternalWindowManager)
23736 2006-06-15 Peter Dennis Bartok <pbartok@novell.com>
23739 - MoveCaret: Implemented PgUp, PgDown, CtrlPgUp and CtrlPgDown
23740 - Undo(): Added replay of cursor move on DeleteChars action; added
23741 calling Undo() again if a recorded cursor move is invalid (to
23742 ensure that some action is performed on Undo)
23743 * TextBoxBase.cs (ProcessKey): Added handling of PgUp and PgDown (#78482)
23745 2006-06-16 Jackson Harper <jackson@ximian.com>
23747 * MdiClient.cs: Instead of just sizing maximized windows when
23748 there is a resize we also have to adjust the Y of minimized
23749 windows, so they stay pinned to the bottom of the mdi container.
23750 - Eliminate separate tracking of the active control, we can just
23751 get this from the controls collection.
23752 - Paint the decorations for the newly activated titlebar so we get
23754 * InternalWindowManager.cs:
23755 * ThemeWin32Classic.cs: Minimized windows get all three buttons
23756 even if they are a tool window.
23758 2006-06-15 Peter Dennis Bartok <pbartok@novell.com>
23760 * TextControl.cs (Undo): Handle non-existent cursor locations in the
23761 undo buffer, these can happen when text was deleted and the cursor
23762 was recorded first. Since we will also have a recorded cursor
23763 after the delete this is not an issue. (Fixes #78651)
23765 2006-06-14 Peter Dennis Bartok <pbartok@novell.com>
23767 * AccessibleObject.cs: Remove dependence on Control.is_selected;
23768 instead properly track control states internally (allows us to
23769 remove is_selected from Control)
23771 2006-06-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
23773 * ImageListStreamer.cs: correctly generate the 1bpp mask for images
23774 whose width is not a multiple of 8.
23776 2006-06-13 Jackson Harper <jackson@ximian.com>
23778 * MdiClient.cs: Only maximize the next child if the current one
23781 2006-06-13 Chris Toshok <toshok@ximian.com>
23783 * DataGridColumnStyle.cs: Invalidate the column when HeaderText is
23784 modified. Also, guard against grid or grid_drawing being null in
23787 * DataGrid.cs: Reformat tons of getters/setters. In the
23788 DataMember setter, just call SetNewDataSource instead of
23789 duplicating some of its functionality. In SetNewDataSource, don't
23790 check ListManager for null, since the property getter creates the
23793 * DataGridTableStyle.cs: don't set TableStyle or call
23794 SetDataGridInternal on the column here, it's done in
23795 GridColumnStylesCollection.Add.
23797 * GridColumnStylesCollection.cs: fix all the explicit interface
23798 implementations to just call our methods. Nuke AddInternal() and
23799 move the body of it to Add(). Also, add a call to
23800 column.SetDataGridInternal to Add().
23802 * DataGridTextBoxColumn.cs (.ctors): call this() instead of
23803 base()+duplicate code. Also, use the Format property instead of
23804 format to generate an Invalidate ala MS. Lastly, create the
23805 textbox here, unconditionally.
23806 (set_Format): call Invalidate.
23807 (get_TextBox): no need to call EnsureTextBox.
23808 (Commit): remove the message box.
23809 (Edit) remove the call to EnsureTextBox.
23810 (EndEdit): call HideEditBox instead of ReleaseHostedControl.
23811 (EnterNullValue): no need to check textbox for null.
23812 (HideEditBox): no need to check textbox for null.
23813 (SetDataGridInColumn): add the textbox to the grid's controls.
23814 (EnsureTextBox): nuke.
23816 2006-06-13 Jackson Harper <jackson@ximian.com>
23818 * MdiWindowManager.cs: Hook up to the maximized menus paint event
23819 and redraw the buttons when needed. Unhook when the window is
23821 * MainMenu.cs: Add an internal Paint event, the mdi window manager
23822 needs this so that it can redraw its buttons when the menu is
23824 * InternalWindowManager.cs:
23825 * Form.cs: The method order has changed for DrawMaximizedButtons,
23826 so that it can be a PaintEventHandler.
23828 2006-06-13 Jackson Harper <jackson@ximian.com>
23830 * MdiClient.cs: When we close a maximized mdi window, the next mdi
23831 window is activated and maximized, even if it wasn't before.
23832 - When a new window is activated repaint the decorations of the
23833 old one, so that it no longer has the Active "look" (the blue
23835 * InternalWindowManager.cs: Open up CreateButtons to base classes
23836 so they can recreate the buttons on state changes.
23837 - If a window is maximized give it all three buttons
23838 * MdiWindowManager.cs: Create the titlebar buttons when the state
23839 is changed, this is needed because a toolwindow will not have all
23840 three buttons until it is maximized.
23842 2006-06-13 Atsushi Enomoto <atsushi@ximian.com>
23844 * ProgressBar.cs : PerformStep() shouldn't exceed Maximum.
23847 2006-06-12 Jackson Harper <jackson@ximian.com>
23849 * KeysConverter.cs: Make sure we handle the Ctrl special case
23850 if its the only key.
23852 2006-06-12 Jackson Harper <jackson@ximian.com>
23854 * Theme.cs: Add a method to get the size of a managed window
23856 * InternalWindowManager.cs: Remove the ButtonSize property, this
23857 should be retrieved from the theme.
23858 * MdiWindowManager.cs: Get the button size from the theme
23859 * ThemeWin32Classic.cs: Make the method to get the managed window
23860 titlebar button size public.
23861 - Handle the different button sizes of maximized toolwindows
23862 (should match any maximized window).
23863 - Get the titlebar height from the theme, not the WM (which gets
23864 it from the theme).
23866 2006-06-12 Jackson Harper <jackson@ximian.com>
23868 * InternalWindowManager.cs: Handle NC Double Clicks, passing the
23869 event down to the mdi window manager.
23870 - Expose some extra stuff to base classes
23871 - Make sure to end the Capture on an NC Mouse up, so that we can
23872 get double clicks properly, and the sizing doens't stick.
23873 - When doing PointToClient contain it in the workable desktop
23874 area, this prevents windows from changing size when the cursor is
23875 pulled outside of the working area while sizing.
23876 * MdiWindowManager.cs: When we get a double click maximize the
23878 - Reset the cursor after handling mode changes.
23880 2006-06-12 Peter Dennis Bartok <pbartok@novell.com>
23882 * XplatUIX11.cs (WorkingArea): Read the actual workarea for the
23883 current desktop, instead of just assuming a 0, 0 origin. This
23884 is needed for our internal window manager, to know the top
23885 margin of the desktop
23887 2006-06-12 Chris Toshok <toshok@ximian.com>
23889 * DataGrid.cs (set_CurrentCell): concede focus as we move around.
23890 we need this to get rid of the selected background in the bool
23892 (CancelEditing): move the ConcedeFocus call to above the Abort
23893 call. Also, set is_changing to false and invalidate the row
23894 header if we were changing before.
23895 (ProcessKeyPreviewInternal): remove, since noone outside this
23896 class calls it anymore. Roll the code into ProcessKeyPreview.
23897 (EndEdit): remove the internal version.
23898 (InvalidateCurrentRowHeader): make private.
23900 * DataGridBoolColumn.cs: simplify this class a bunch. remove the
23901 Keys.Escape handling (and with it the last call to
23902 DataGrid.EndEdit from outside the class.)
23905 2006-06-12 Chris Toshok <toshok@ximian.com>
23907 * DataGridTextBox.cs (.ctor): isedit defaults to false.
23908 (OnKeyPress): set isedit to true.
23909 (ProcessKeyMessage): remove Keys.Enter handling from here. it's
23910 already handled by the grid.
23912 * DataGrid.cs (set_CurrentCell): more work here. it's still not
23914 (set_DataSource): SetDataSource always returns true, so stop
23915 putting it in an if statement.
23916 (EndEdit): get rid of some {}'s
23917 (ProcessGridKey): return true in case Keys.Escape.
23918 (ProcessKeyPreviewInternal): only handle KEYDOWN messages.
23919 (ConnectListManagerEvents,DisconnectListManagerEvents): connect to
23920 PositionChanged, stopped connecting to CurrentChanged.
23921 (GetDataSource): simplify this a bunch.
23922 (SetDataSource): change return type from bool to void.
23923 (OnListManagerPositionChanged): rename OnListManagerCurrentChanged
23924 to this, and make sure we don't set ListManager.Position inside
23926 (OnListManagerItemChanged): if we're passed an actual index,
23929 * CurrencyManager.cs (set_Position): don't call PullData here.
23931 2006-06-09 Jackson Harper <jackson@ximian.com>
23933 * TreeNode.cs: Recalculate the visible order before doing the
23934 Expand/Collapse Below calls, because those calls generate an
23936 - Reduce calls to the TreeView property, which is mildly expensive
23937 by using a local var.
23938 * Form.cs: Layout the MDI child windows when creating the parent
23940 - Don't use the internal constructor anymore
23941 * MdiClient.cs: use the parent form width/height (if available)
23942 when laying out the child windows, we do this because the
23943 mdiclient isn't docked yet when the initial layout is done.
23944 - Don't need an internal constructor anymore.
23946 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
23948 * FileDialog.cs: handle access errors when trying to create a folder
23949 or changing to a directory. No need to initialize out parameters.
23951 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
23953 * FileDialog.cs: Append a number when creating a new folder if the
23954 folder already exists (use parenthesis instead of square brackets)
23956 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
23959 - Disabled registry support for windows and added better registry
23960 error checking for other systems (need to investigate why it
23961 works perfectly on my system)
23962 - If a folder already exist show an error MessageBox instead of
23963 trying to create an indexed name.
23964 - Fixed a non intentional typo.
23966 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
23968 * FileDialog.cs: (SetFileName) don't crash if CurrentRealFolder is null.
23970 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
23972 * FileDialog.cs: When creating a new folder don't crash if the
23973 folder already exists.
23975 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
23977 * FileDialog.cs: Allmost a complete rewrite.
23978 - added a "virtual" file system that handles the differences
23979 between unix and windows file systems (especially the directory
23980 structure). Moved most of the directory and file handling code
23982 Added vfs classes: MWFVFS, FileSystem, WinFileSystem,
23983 UnixFileSystem and FSEntry.
23984 - Recently used folder/directory, size, location and used file names
23985 (file name ComboBox) are now stored in the registry and get read
23986 before the dialog shows up (fixes part 6 of bug #78446).
23987 - Creation of new folders/directories is now possible (context menu
23988 or ToolBar). Added TextEntryDialog for this that fills in the gap
23989 until ListView.LabelEdit works.
23990 - Fixed cursor handling (bug #78527) and focus handling for
23992 - Various "Search in" ComboBox enhancements. The content of the
23993 dropdown listbox now almost matches ms.
23994 - Changed the behaviour when the user switches to SpecialFolder
23995 Recent to show the ListView in View.Details.
23996 - Beside using the ToolBar to change the View property of the
23997 file ListView it is now possible to use the context menu too.
23999 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
24001 * ComboBox.cs: Don't create a new ObjectCollection when an item
24002 gets inserted. Just insert the item in the existing object_items
24005 2006-06-08 Jackson Harper <jackson@ximian.com>
24007 * OpenTreeNodeEnumerator.cs: Fix to use the Parent property, so
24008 that the treeview and root node checks are done also, this fixes a
24009 regression i caused in the unit tests.
24011 2006-06-07 Wade Berrier <wberrier@novell.com>
24013 * RichTextBox.cs: More ISO8859-1 -> unicode
24015 2006-06-07 Mike Kestner <mkestner@novell.com>
24017 * ComboBox.cs : use items to hold highlight/selection so that
24018 collection insertions don't require synchronization.
24020 2006-06-07 Jackson Harper <jackson@ximian.com>
24022 * InternalWindowManager.cs: Simplify (and FIX) the window sizing
24023 routine. We now always keep the sized edge at the cursor instead
24024 of computing movement and adjusting rects. There is one buglet
24025 with this method though when the cursor is moved over area that
24026 the window can not expand too (such as the toolbars on the desktop).
24028 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24030 * XplatUIX11.cs: (IsEnabled,IsVisible) the window handler can be null
24031 here. Fixes crash on startup in AlbumSurfer.
24033 2006-06-07 Peter Dennis Bartok <pbartok@novell.com>
24035 * RichTextBox.cs: Replaced embedded ISO8859-1 chars with proper unicode
24038 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24040 * XplatUIX11.cs: call XPending and XNextEvent inside the same lock()
24041 statement to avoid calling XNextEvent which will block if another thread
24042 took the event that we were expecting. Fixes bug #78605.
24044 2006-06-07 Mike Kestner <mkestner@novell.com>
24046 * ListView.cs : isolated checkbox clicking from the selection logic.
24047 Toggle check state on item doubleclicks. Really fixes #78454 part2.
24049 2006-06-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
24051 * Form.cs: Check that the value passed to Form.DialogResult
24052 is a valid enum value.
24054 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24056 * FileDialog.cs: disable the up button when in 'Recently Used' or 'My
24057 Computer'. Clicking it in the network view goes to 'My Computer'.
24058 Added CIFS filesystem type. Display the mount point of filesystems.
24059 Avoid duplicate mount points (happens for me with CIFS);
24061 2006-06-06 Jackson Harper <jackson@ximian.com>
24063 * InternalWindowManager.cs: Draw the maximized windows buttons
24066 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24068 * Form.cs: when running a modal dialog, ignore WM_CLOSE requests for
24069 all other dialogs. Fixes bug #78585.
24071 2006-06-06 Mike Kestner <mkestner@novell.com>
24073 * CheckedListBox.cs : apply CheckOnClick behavior to unchecking too.
24074 Only invalidate checkbox on checkstate changes to avoid flicker.
24075 * ListBox.cs : avoid unselect/select when clicking selected item.
24076 avoid reselection flicker for already multiselected items.
24079 2006-06-06 Jackson Harper <jackson@ximian.com>
24081 * MdiWindowManager.cs: When the window is closed do an NCRecalc on
24082 the parent form so that the menu is removed if needed.
24084 2006-06-06 Mike Kestner <mkestner@novell.com>
24086 * ListBox.cs : add ScrollWindow call to UpdateTopItem. fix
24087 Prev/Next/PrevPage/NextPage/Home/End index calculation. Fixes #78559.
24089 2006-06-06 Mike Kestner <mkestner@novell.com>
24091 * CheckedListBox.cs : rebuild check collection on Add. Fixes #78426.
24094 2006-06-06 Jackson Harper <jackson@ximian.com>
24096 * Control.cs: Use the property (instead of the field) to get the
24097 default cursor so it is instantiated correctly.
24098 * InternalWindowManager.cs: The OS doesn't give us an NCPAINT with
24099 resizes so we need to manually repaint the window decorations here.
24100 - Set the titlebar button locations as soon as they are created,
24101 otherwise they are not set correctly on win32.
24103 2006-06-06 Chris Toshok <toshok@ximian.com>
24105 * CurrencyManager.cs (set_Position): call PullData before
24107 (AddNew): after calling IBindingList.AddNew, update our
24108 listposition, and call OnCurrentChanged/OnPositionChanged (without
24110 (OnCurrentChanged): remove the call to PullData from here.
24111 (OnItemChanged): remove the call to PushData from here.
24112 (OnPositionChanged): change the test from == null to != null to
24113 match the other methods.
24114 (ListChangedHandler): the grossest part of the patch. Implement
24115 this such that it passes the unit tests in CurrencyManagerTest and
24116 the output more or less matches that of MS's implementation.
24118 2006-06-06 Mike Kestner <mkestner@novell.com>
24120 * ListView.cs : only update check state on single click.
24121 * ThemeWin32Classic.cs : fix focus drawing for details view without
24122 fullrowselect. Fixes #78454.
24123 * XplatUIX11.cs : fix for double click emission.
24125 2006-06-05 Jonathan Chambers <jonathan.chambers@ansys.com>
24127 * PropertyGridView.cs : Applied Atsushi's patch to fix
24128 font dialog bug (#78197).
24130 2006-06-05 Jackson Harper <jackson@ximian.com>
24132 * TreeNode.cs: Compute the next node for expanding/collapsing
24133 correctly. We now factor in nodes without a NextNode
24134 correctly. (Fixes somes cases in nunit-gui).
24135 * InternalWindowManager.cs: Set the bounds when updating the
24136 virtual position of a tool window.
24138 2006-06-05 Chris Toshok <toshok@ximian.com>
24140 * DataGrid.cs: rename cached_currencymgr to list_manager.
24141 (set_CurrentCell): move SetCurrentCell code here, and clean it up
24143 (CurrentRow, CurrentColumn): single accessors so we can make the
24144 cursor movement code a lot easier to understand.
24145 (CurrentRowIndex): implement this in terms of CurrentRow.
24146 (BeginEdit): clean this up a bit.
24147 (CancelEditing): sort out the is_editing/is_changing/is_adding
24149 (EndEdit): minor changes.
24150 (OnKeyDown): add a comment about a (most likely) unnecessary
24152 (OnMouseDown): cancel editing when we click on a row header. And
24153 use the CurrentRow setter, not CurrentCell.
24154 (ProcessDialogKey): directly call ProcessGridKey.
24155 (UpdateSelectionAfterCursorMove): factor out this common block of
24156 code (it's used everywhere that we move the cursor by updating row
24158 (ProcessGridKey): pretty substantial overhaul. Use the
24159 CurrentRow/CurrentColumn properties to make the code a lot more
24160 readable. Only use the CurrentCell property when we have to
24161 modify both row and column at once. Tab behavior is still broken,
24162 and Delete is untested.
24163 (Select): if we have no selected rows, set selection_start to
24165 (EditCurrentCell): rename EditCell this. It was only ever invoked
24166 with CurrentCell as the arg, so drop the arg and rename it.
24168 * DataGridColumnStyle.cs: clean up the constructors a little, and
24169 drop CommonConstructor().
24171 * DataGridTextBox.cs (.ctor): set accepts_return to true so we
24172 actually get notified when the user hits it.
24173 (ProcessKeyMessage): *substantially* simplify this method.
24174 There's no reason (that I can see) for the textbox to be making
24175 calls into the datagrid at all. Remove all of them but the ones
24176 for Enter handling. those will take some more work.
24178 * DataGridTextBoxColumn.cs (ConcedeFocus): implement this by
24179 calling HideEditBox.
24180 (HideEditBox): if we have an active textbox, render it invisible
24181 without causing a re-layout of the datagrid.
24183 2006-06-05 Mike Kestner <mkestner@novell.com>
24185 * ListView.cs : fix NRE crasher when focuseditem is cleared by
24186 collection changes by resetting it to Items[0]. Fixes #78587.
24188 2006-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24190 * MessageBox.cs: if the height of the text is larger than the icon_size,
24191 use that. Fixes bug #78575.
24193 2006-06-05 Jackson Harper <jackson@ximian.com>
24195 * TreeView.cs: Fix line drawing when scrolling. To do this each
24196 node is basically responsible for drawing its entire horizontal
24197 area. When drawing a node it draws its parent node lines if
24199 - Adjust the clip area to the viewport rectangle
24200 - Fix Left/Right key handling to match MS. (It expand/collapses
24201 and moves to parents/first child but does not move selection to
24203 - Fix SetTop to work with new bound calculation code
24204 - When scrollbars are no longer needed we need to reset scrolling
24205 vars and recalculate the visible order so the redraw is correct
24206 * TreeNode.cs: We can't expand/collapse nodes with no children.
24208 2006-06-03 John Luke <john.luke@gmail.com>
24210 * X11DesktopColors.cs: dllimport the exact gtk and gdk versions
24211 so the colors work without dev packages
24213 2006-06-02 Peter Dennis Bartok <pbartok@novell.com>
24216 - Select: Implemented to just use activate. Seems to match MS
24217 behaviour closest. Documented to only do actual control walking
24218 based on it's parameters if in a container control so I moved
24220 - Removed selection check logic from our internal Select() method
24221 * ContainerControl.cs:
24222 - Select: Moved selection logic from Control here, since MS documents
24223 that containers obey the bool arguments. No longer calling base
24225 2006-06-02 Jackson Harper <jackson@ximian.com>
24227 * TreeView.cs: If the selected node isn't changed when we get
24228 focus update the previously selected node so that we see the
24231 2006-06-02 Mike Kestner <mkestner@novell.com>
24233 * ComboBox.cs: restructure grab and general mouse event handling.
24234 Make the composite control raise mouse events like it was a single
24235 control for leaves/enters/motion/up/down events. fix dropdown list
24236 coordinate mangling and refactor it into the scrollbar subclass to
24237 reduce code duplication. Fixes #78282 #78361 and #78457.
24239 2006-06-02 Mike Kestner <mkestner@novell.com>
24241 * ScrollBar.cs: remove Capture setting/clearing, as it happens
24242 automatically in the Control.WndProc.
24244 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24246 * FileDialog.cs: fix crash when running SharpChess, which sets the
24247 FilterIndex to 2 with only one Filter.
24249 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24251 * ToolBar.cs: add SizeSpecified property.
24252 * ToolBarButton.cs: when the ButtonSize is calculated by the container,
24253 try to figure out our real size, otherwise fallback to what the
24256 2006-06-01 Peter Dennis Bartok <pbartok@novell.com>
24258 * XplatUIX11.cs (DefWndProc): WM_MOUSEWHEEL needs to be passed up
24259 * Control.cs (WndProc): MS always calls the DefWndProc to pass
24262 2006-06-01 Mike Kestner <mkestner@novell.com>
24264 * ListView.cs: revamp the focus management in ListView. It still
24265 causes churn of LostFocus/GotFocus emissions on clicks, but it's
24266 better than not handling focus at all. Will revisit when pdb feels
24267 the general focus handling is solid. Fixes #78526.
24269 2006-06-01 Jackson Harper <jackson@ximian.com>
24271 * TreeView.cs: Set the default border style in the constructor.
24272 - Move painting to use OnPaintInternal instead of capturing
24273 WM_PAINT, this is the correct way of doing things
24274 - UpdateBelow shouldn't invalidate the scrollbar area
24275 - Cap the top on update below in case the node was above the top
24276 of the viewport rectangle.
24277 - ExpandBelow and Collapse below need to obey Begin/End Update.
24278 * TreeNode.cs: Make is_expanded internal so the treenode
24279 collection can change it without firing the whole event chain.
24280 * TreeNodeCollection.cs: When clearing all the child nodes make
24281 sure to recalc the visible order.
24282 - Improve algo for remove the top node
24284 2006-06-01 Peter Dennis Bartok <pbartok@novell.com>
24286 * XplatUIX11.cs (SetFocus): Make sure we can handle re-entrancy due to
24287 SendMessage directly calling window procedures, which in turn might
24290 2006-06-01 Peter Dennis Bartok <pbartok@novell.com>
24292 * Control.cs: Don't handle WM_SETFOCUS if the same window already
24293 has focus (works around X11 sending a FocusIn after our SetFocus)
24294 * XplatUIX11.cs: Send KILLFOCUS before setting SETFOCUS on new window
24296 2006-06-01 Alexander Olk <alex.olk@googlemail.com>
24298 * Mime.cs: Fix for the NET_2_0 build.
24299 NameValueCollection needs StringComparer now.
24301 2006-05-31 Chris Toshok <toshok@ximian.com>
24303 * DataGridDrawingLogic.cs (FromPixelToColumn): modify this to also
24304 return (via an out parameter) the starting X of the column.
24305 (UpdateVisibleColumn): track change to FromPixelToColumn.
24306 (HitTest): add a ColumnResize case here.
24307 (DrawResizeLine): new function, probably poorly named.
24309 * DataGrid.cs (.ctor): get rid of cached_currencymgr_events. We
24310 only need to keep one reference.
24311 (set_ListManager): same.
24312 (OnMouseDown): call HitTest instead of grid_drawing.HitTest.
24313 Also, add support for HitTestType.ColumnResize.
24314 (OnMouseMove): add column resize behavior here, and change the
24315 cursor to the correct one as we move around the datagrid.
24316 (OnMouseUp): terminate the column resize if we're resizing.
24317 (ProcessGridKey): from the MS docs, Alt-0 enters the null value
24318 for the current cell.
24319 (ConnectListManagerEvents): use cached_currencymgr.
24320 (DisconnectListManagerEvents): fill this in, using
24321 cached_currencymgr.
24322 (SetCurrentCell): remove cached_currencymgr_events handling.
24323 (SetDataMember): only call DisconnectListManagerEvents if
24324 cached_currencymgr is != null.
24325 (SetDataSource): same.
24326 (OnListManagerCurrentChanged): cached_currencymgr_events ->
24327 cached_currencymgr.
24329 2006-05-31 Jackson Harper <jackson@ximian.com>
24331 * BindingManagerBase.cs: Remove somedebug code that creeped into
24333 * TreeNode.cs: We get the indent level dynamically right now, so
24334 don't track it as a member.
24335 * TreeNodeCollection.cs: Make sure all nodes added to the list
24336 have parents, treeviews/topnodes setup properly.
24337 - Don't attempt to track indent level.
24339 2006-05-30 Jackson Harper <jackson@ximian.com>
24341 * BindingContext.cs: Create the currency manager tables here.
24342 This allows us to more easily create null tables (when bad data
24343 members are used), and more easily create related currency
24345 * CurrencyManager.cs: All the table creation stuff is done by the
24346 binding context now.
24347 - Current should throw an exception if listposition is -1.
24348 - CancelCurrentEdit/EndCurrentEdit, do nothing if the list hasn't
24351 2006-05-30 Mike Kestner <mkestner@novell.com>
24353 * ListView.cs: allow reexpansion of zero-width column headers.
24356 2006-05-28 Chris Toshok <toshok@ximian.com>
24358 * CurrencyManager.cs (get_Current): after the late binding
24359 listposition = -1 fix, we need to guard against it here and return
24360 null, otherwise we raise an exception (which is swallowed
24361 elsewhere, and breaks datagrid databinding.)
24363 2006-05-26 Peter Dennis Bartok <pbartok@novell.com>
24365 * MenuAPI.cs (ProcessMenuKey): We can legally get msg types other
24366 than WM_SYSKEY, don't throw if get something unexpected (#78507)
24368 2006-05-26 Jackson Harper <jackson@ximian.com>
24371 * ThemeWin32Classic.cs: For color comparisons just use the ARGB
24372 values, it's faster and it's all we care about (we don't care if
24373 the names aren't equal).
24374 * KeyboardLayouts.cs: Eliminate some dead code.
24376 * X11Keyboard.cs: Lazy init keyboard detection.
24377 - Cleanup access modifiers a little.
24379 2006-05-26 Peter Dennis Bartok <pbartok@novell.com>
24381 * XplatUIX11.cs: Once again, attempting to get layout just right.
24383 2006-05-26 Peter Dennis Bartok <pbartok@novell.com>
24385 * LinkLabel.cs (CreateLinkPieces): Use MeasureString to calculate
24386 the sizes of each link section, that will result in sizes that
24387 match DrawString's layout (Fixes #78391)
24389 2006-05-27 Alexander Olk <alex.olk@googlemail.com>
24391 * FileDialog.cs: If AddExtension property is true autocomplete the
24392 extensions in SaveFileDialog correctly. Fixes bug #78453.
24393 Set MyNetwork and MyComputer to "C:\" for windows. This should
24394 fix part 8 of bug #78446 for now.
24396 2006-05-26 Chris Toshok <toshok@ximian.com>
24398 * DataGrid.cs (ColumnStartedEditing): fill these in. for now just
24399 invalidate the current row header if we need to, but presumably
24400 we'll invalidate the row corrsponding to the bounds or
24402 (GridHScrolled): switch back to this method, as it's part of the
24403 public api. *sigh*.
24404 (GridVScrolled): same.
24405 (OnMouseWheel): hack up something that more or less works. Call
24406 GridHScrolled/GridVScrolled directly, instead of duplicating much
24407 of their code here.
24408 (EnsureCellVisibility): reinstate a bunch of this code, since we
24409 can't just set the scrollbar Value and expect to do all the work
24410 in the ValueChanged handler. Also, Call Update() after scrolling
24411 in one direction so the other XplatX11.ScrollWindow call has the
24412 proper stuff in the proper places.
24413 (EditCell): set is_editing to true before calling .Edit.
24415 * DataGridTextBox.cs (set_IsInEditOrNavigateMode): just set it,
24416 don't bother comparing first.
24417 (OnKeyPress): call grid.ColumnStartedEditing before calling
24418 base.OnKeyPress. this will set is_changing and invalidate the row
24419 header if necessary.
24420 (ProcessKeyMessage): for WM_CHAR messages, call
24421 ProcessKeyEventArgs directly. swallow anything other than WM_CHAR
24424 * DataGridBoolColumn.cs (Edit): don't set is_editing to true here.
24425 it's done in the DataGrid.
24426 (NextState): call grid.ColumnStartedEditing, which takes care of
24427 invalidating the row header (and setting is_changing).
24429 * DataGridTextBoxColumn.cs (Edit): don't set is_editing to true
24430 here. it's done in the DataGrid.
24432 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24434 * Control.cs: allow changing the cursor when the mouse position is
24435 out of bounds but Capture is set.
24436 * LinkLabel.cs: handle the case when the mouse button is pressed on the
24437 linklabel but released somewhere else.
24439 2006-05-25 Jackson Harper <jackson@ximian.com>
24441 * TreeView.cs: When we get focus if there is no selected node make
24443 - Remove some uneeded setup code from Draw.
24444 * TreeNodeCollection.cs: If the tree doesn't have a top node when
24445 a new node is inserted make the new node the top.
24447 * Timer.cs: Use Utc time so that no local time zone stuff needs to
24448 be used (should be faster).
24450 2006-05-25 Chris Toshok <toshok@ximian.com>
24452 * DataGrid.cs (EnsureCellVisibility): remove some code to fix a
24453 problem with the last commit.
24455 2006-05-25 Chris Toshok <toshok@ximian.com>
24457 * DataGridTextBoxColumn.cs (ReleaseHostedControl): turns out we do
24458 need the invalidate call here, while scrolling right-to-left via
24459 the left arrow key (i.e. moving the editing cell while scrolling).
24461 * DataGrid.cs (.ctor): remove the initialization of
24462 ctrl_pressed/shift_pressed. We no longer track them using key
24463 up/down handlers, but by using Control.ModifierKeys. Also, switch
24464 to using ValueChanged handlers on the scrollbars instead of
24465 Scrolled event handlers. This simplifies a bunch of the scrolling
24467 (GridHValueChanged): rename from GridHScrolled, and change it to
24468 work with the new event args.
24469 (GridVValueChanged): same.
24470 (OnMouseDown): initialize ctrl_pressed/shift_pressed here.
24471 (OnMouseWheel): actually scroll the datagrid. Don't change the
24473 (ProcessGridKey): correct all the keyboard navigation stuff I
24474 could find. Ctrl up/down/left/right/home/end work now.
24475 (EnsureCellVisibility): correct method name spelling. Also,
24476 simplify this a touch by not explicitly calling the
24477 ScrollToRow/ScrollToColumnInPixels methods. We just set the
24479 (OnKeyUpDG): no need for this method now.
24481 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24483 * LinkLabel.cs: display the OverrideCursor when hovering the label.
24486 2006-05-25 Chris Toshok <toshok@ximian.com>
24488 * ThemeWin32Classic.cs: fix datagrid clipping problems caused by
24491 2006-05-25 Peter Dennis Bartok <pbartok@novell.com>
24493 * Application.cs: Moved setting of is_modal and closing to before
24494 we create the control, to allow the event handlers called as a
24495 result of creation affect closing. Also removed Gonzalo's previous
24496 change to setting DialogResult, the behaviour has been moved to
24499 - ShowDialog(): Removed explicit creation of the form, let RunLoop
24501 - ShowDialog(): If no dialog result is set, we need to return Cancel
24502 - WM_CLOSE: Fire Closing/Closed events, and reset dialog result if
24503 the close is cancelled
24505 2006-05-25 Jackson Harper <jackson@ximian.com>
24507 * StatusBar.cs: We only need to update the sizes of the other
24508 panels when we have auto size contents. Also we are only updating
24509 the contents of the panel, not the borders, so compensate for the
24510 border width (TODO: get this width from the theme somehow).
24511 * TreeView.cs: Scrollable is true by default
24512 - Use invalidate instead of refresh where needed
24513 - Factor the scrollable value into scrollbar updating
24514 - Update the scrollbars if the Scrollable property is altered
24515 - Update the selected node if its ImageIndex is changed
24516 - Handle null nodes in UpdateNode (mainly so we don't have to
24517 check if selected is null when updating it
24518 - Fix VisibleCount to use the ViewportRectangle so that scrollbars
24519 are factored into the visible count
24520 - Use VisibleCount for clarity in the code
24521 - When the font is changed we need to recurse through all the
24522 nodes and invalidate their sizes
24524 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24526 * Application.cs: set the DialogResult to fixed when the main form is
24527 hidden or destroyed while being modal.
24529 2006-05-25 Miguel de Icaza <miguel@novell.com>
24531 * Theme.cs: Use Tangoified messagebox icons.
24533 (GetSizedResourceImage): Also cope with width = 0 and do not
24534 trigger a warning in that case (0 means "give me your icon from
24535 the resouce, no special size needed).
24537 2006-05-25 Peter Dennis Bartok <pbartok@novell.com>
24539 * Application.cs: Leave runloop if the the main modal form is
24540 hidden (fixes #78484)
24542 2006-05-25 Atsushi Enomoto <atsushi@ximian.com>
24544 * BindingContext.cs : reject null datasource in Contains() and
24546 * CurrencyManager.cs : check data_member validity when data_source
24547 is dataset. When it is late binding, the initial position is -1.
24549 2006-05-24 Jackson Harper <jackson@ximian.com>
24551 * TreeNodeCollection.cs: Dont't recalculate the visible order on
24552 inserted nodes that aren't visible. This changes the
24553 max_visible_order which confuses scrollbar settings.
24554 - Use the enumerator to get the prev node instead of duplicating
24556 * TreeView.cs: Use new method for setting scrollbar values
24557 - Don't set the bounds every time the scrollbar is updated
24558 - When updating below the root node use an invalidate instead of a
24559 refresh to prevent the child controls (scrollbars) from being
24560 refreshed. (UpdateBelow still needs to be reworked anyways).
24561 - Reenable SetBottom now that visible orders are set correctly,
24562 added some debug code incase we ever get bad values there again.
24563 - Set the scrollbar max to 2 less then the max value, this
24564 compensates for the max value being one above the node count, and
24565 for scrollbars adding one extra "notch".
24566 - When drawing image nodes if there is an imagelist we draw the
24567 first image in the list if the supplied image index is out of the
24568 image list's bounds.
24570 2006-05-24 Peter Dennis Bartok <pbartok@novell.com>
24572 * XplatUIX11.cs: Don't blindly cache hwnd.ClientRect, reset it when
24573 we receive a size change from the WM (Fixes #78503)
24575 2006-05-24 Peter Dennis Bartok <pbartok@novell.com>
24577 * XplatUIWin32.cs, XplatUIX11.cs: Refresh when setting the Clip
24578 rectangle (Fixes #78501)
24580 2006-05-24 Peter Dennis Bartok <pbartok@novell.com>
24583 - Fixed MouseUp, MouseDown and MouseMove to treat mouseevent.Button
24585 - Fixed MouseMove to no longer switch pressed state unless the left
24586 mouse button is pressed. Atsushi provided the original patch (#78485)
24588 2006-05-24 Jackson Harper <jackson@ximian.com>
24590 * ScrollBar.cs: New internal methods that allow us to change a
24591 couple values on the scrollbar (the most common case is maximum
24592 and large change) without getting multiple invalidates.
24594 2006-05-24 Chris Toshok <toshok@ximian.com>
24596 * DataGridBoolColumn.cs (Abort): revert back to the saved setting.
24597 (Edit): save off the original state in oldState, and set
24598 grid.is_editing to true.
24599 (OnKeyDown): abort editing if escape is pressed. also, call
24600 NextState if space is pressed.
24601 (OnMouseDown): call NextState.
24602 (NextState): factor out shared code from OnKeyDown and OnMouseDown
24603 here. Also, only invalidate the row header once (on the initial
24604 is_changing switch) to save on redraws.
24606 2006-05-24 Chris Toshok <toshok@ximian.com>
24608 * DataGridTextBoxColumn.cs (Commit): only call SetColumnValueAtRow
24609 if the value in the cell is different than it was before. This
24610 keeps us from triggering a layout when we move around a datarid
24611 with a highlighted cell.
24612 (Edit): suspend layout when creating/positining the text box, and
24613 resume passing false so we don't ever actually re-layout.
24614 (ReleaseHostedControl): same.
24615 (EnsureTextBox): reformat slightly, and set WordWrap to false.
24617 * DataGridTextBox.cs (ProcessKeyMessage): it's not true that all
24618 control-key sequences should go to the datagrid - remove that
24619 lock. Also, modify the conditions under which we move between
24620 cells when moving the cursor within a cell, and remove the "this"
24621 and "base" from field accesses. We weren't even consistent, given
24622 they all were in the base class.
24624 2006-05-24 Atsushi Enomoto <atsushi@ximian.com>
24626 * Binding.cs : (.ctor)
24627 An obvious NRE fix for BindingTest.CtorNullTest().
24629 2006-05-23 Chris Toshok <toshok@ximian.com>
24631 * TextBoxBase.cs (get_Text): don't add a trailing newline, add
24632 them between lines. This fixes some quirks editing cells in the
24635 2006-05-23 Jackson Harper <jackson@ximian.com>
24637 * TreeView.cs: Use begin/end update when doing expand/collapse all
24638 so that we don't get flicker on the scrollbar.
24640 2006-05-23 Jackson Harper <jackson@ximian.com>
24642 * TreeNode.cs: Bounds are computed 'on the fly' now. This allows
24643 treenode calculations to be independant of the painting code. To
24644 do this nodes track a visible order which is calculated by the
24646 - Call new methods for expanding/collapsing nodes. These methods
24647 use scrollwindow so we don't have to update everything below the
24649 * TreeView.cs: Refactored drawing and scrolling code. We don't
24650 need to update nodes when drawing anymore or calculate scrollbar
24652 - Added new methods for expanding/collapsing nodes. These methods
24653 use ScrollWindow so as to not have to redraw all the nodes below.
24654 * TreeNodeCollection.cs: Recalc visible order and scrollbars when
24655 we add/remove nodes or sort.
24656 - Handle removing the selected and the top node properly.
24658 2006-05-23 Chris Toshok <toshok@ximian.com>
24660 * DataGridTextBoxColumn.cs (Edit): set grid.is_editing to true.
24661 maybe this should actually happen in the datagrid code?
24662 (EndEdit): no need to invalidate anything, given that
24663 ReleaseHostedControl causes the datagrid to relayout, which
24664 invalidates everything anyway.
24666 * DataGrid.cs (set_CurrentCell): remove duplicate check (it's also
24667 in SetCurrentCell).
24668 (set_SelectionBackColor): call InvalidateSelection instead of
24670 (set_SelectionForeColor): same.
24671 (BeginEdit): Flesh this out a bit.
24672 (CancelEditing): only do any of this if we're editing/adding.
24674 (OnMouseDown): there's no need to cancel editing here, it's done
24676 (SetCurrentCell): only invalidate the current row header if it's a
24677 different row than the new one.
24678 (ShiftSelection): fix this to work like MS does.
24679 (ResetSelection): factor out the invalidation of selected_rows to
24680 InvalidateSelection.
24681 (SetDataSource): cancel any editing that's going on.
24683 * DataGridColumnStyle.cs
24684 (IDataGridColumnStyleEditingNotificationService.ColumnStartedEditing):
24685 call the non-interface version.
24687 * ThemeWin32Classic.cs (DataGridPaintColumsHdrs): intersect the
24688 header rectangle with the clip rectangle so we don't redraw the
24689 entire header for just a small area. Gets rid of the last flicker
24690 when horizontally scrolling.
24691 (DataGridPaintRow): same.
24693 2006-05-23 Mike Kestner <mkestner@novell.com>
24695 * ListViewItem.cs: remove size for line hack from LargeIcon layout.
24696 * ThemeWin32Classic.cs: don't draw line. it's really the top of a
24697 poorly placed checkbox on the MS control. Fixes Alex's unfiled
24698 Critical bug report.
24700 2006-05-23 Peter Dennis Bartok <pbartok@novell.com>
24702 * PictureBox.cs: Fixed broken ControlStyles. Unit test no longer fails,
24703 and this fixes #78493
24705 2006-05-23 Miguel de Icaza <miguel@novell.com>
24707 * Theme.cs (GetSizedResourceImage): Scale images if the proper
24710 * FileDialog.cs: Do not change the background for the side bar as
24711 it wont work nicely with the theme, and also reduces the artifacts
24712 in rendering the icons (which I want to fix too).
24714 * MimeIcon.cs (ResourceImageLoader): Load images from assembly
24715 resources, not resgen resources.
24717 (PlatformDefaultHandler): Pull images using the new API.
24719 2006-05-23 Peter Dennis Bartok <pbartok@novell.com>
24721 * Hwnd.cs (Dispose): Remove any pending exposures. XEventQueue holds
24722 a reference to the hwnd and will not remove it unless there are
24723 no pending exposures (fixes #78341)
24724 * XplatUI.cs: Improved debug
24726 2006-05-23 Atsushi Enomoto <atsushi@ximian.com>
24728 * MenuAPI.cs : don't handle OnClick event when it was not the left
24729 button. Fixed bug #78487.
24731 2006-05-23 Mike Kestner <mkestner@novell.com>
24733 * MenuAPI.cs: fix placement of submenus for multi-row menu bars, and
24734 prefer submenus to the top menu for item lookup, to avoid popping down
24737 2006-05-23 Alexander Olk <alex.olk@googlemail.com>
24739 * ThemeWin32Classic.cs: Rewrote CPCPDrawScrollButton to drop
24740 Graphics.FillRectangle as the visual results are really bad (even
24741 on win). We now draw perfect arrows (and perfect shadows when the
24742 scrollbar is disabled). Simplified CPDrawGrid. CPDrawGrid now uses
24743 Pen.DashPattern to draw the dots of each line.
24745 2006-05-22 Alexander Olk <alex.olk@googlemail.com>
24747 * FileDialog.cs: Update the filename combobox when navigating through
24748 the ListView with the cursor keys. Fixes part 7 of bug #78446.
24750 2006-05-22 Mike Kestner <mkestner@novell.com>
24752 * ListView.cs: raise SelectedIndexChanged on keyboard selection.
24755 2006-05-22 Mike Kestner <mkestner@novell.com>
24757 * ComboBox.cs: Refresh in EndUpdate to pick up all the dropped Paint
24758 requests. Fix a misspelled parameter and a copy paste exception error
24761 2006-05-22 Peter Dennis Bartok <pbartok@novell.com>
24763 * ThemeWin32Classic.cs: Changed DefaultFont emSize from 8.25 to 8
24764 to get the same width/height (5/13) on X11 as the default font has on
24765 win32. This means that our DefaultFont emSize is smaller than the
24766 the MS SWF equivalent (even thought the width/height stays the same)
24768 2006-05-20 Jackson Harper <jackson@ximian.com>
24771 * MdiWindowManager.cs:
24772 * InternalWindowManager.cs: Make sure to use the border width from
24775 2006-05-20 Jordi Mas i Hernandez <jordimash@gmail.com>
24777 * PrintDialog.cs: Implements printer details
24779 2006-05-19 Alexander Olk <alex.olk@googlemail.com>
24781 * FileDialog.cs: Added focus handling for PopupButtonPanel.
24782 Fixes part 1 and 2 of bug #78446
24784 2006-05-19 Peter Dennis Bartok <pbartok@novell.com>
24786 * XplatUIX11.cs (SetWindowPos): Recalculate client area size on resizes
24787 instead of sticking to the first ever calculated value
24789 2006-05-19 Mike Kestner <mkestner@novell.com>
24791 * ComboBox.cs: fix mouse motion selection to use MousePosition and
24792 PointToClient, since Capture is set. Fixes #78344.
24794 2006-05-19 Mike Kestner <mkestner@novell.com>
24796 * ListView.cs: match MS behavior in Details view where items are not
24797 drawn if Columns.Count == 0.
24798 * ThemeWin32Classic.cs: only highlight ListView selection if focused.
24799 Use a separate pen to draw the check, since changing the width affects
24800 the box as well. Fixes #78454.
24802 2006-05-18 Miguel de Icaza <miguel@novell.com>
24804 * ListView.cs: ArgumentOutOfRangeException, single versions of the
24805 exception should throw the name of the invalid argument.
24807 * FileDialog.cs (OnClickOpenSaveButton): Avoid crash in open if
24808 there are no files listed.
24810 2006-05-18 Jackson Harper <jackson@ximian.com>
24812 * ThemeWin32Classic.cs: Don't use endcaps, they mess the drawing
24815 2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
24817 * Control.cs: Brought back our old UpdateZOrder method as a private
24818 function and switched our calls from UpdateZOrder to the new one.
24819 This fixes the Paint.Net canvas disappearing bug.
24821 2006-05-18 Jackson Harper <jackson@ximian.com>
24824 * ThemeWin32Classic.cs:
24825 * InternalWindowManager.cs: Move the drawing into the theme,
24826 expose everything the theme should need from the window manager.
24828 2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
24830 * XplatUIX11.cs (DefWndProc): WM_SETCURSOR: Assign the return value
24831 from the call to NativeWindow to avoid walking up the parent chain
24832 further than needed (speeds up setting cursors and avoids setting
24833 the wrong cursor if a parent has another cursor defined)
24834 * Cursor.cs: When loading an icon as cursor, MS uses the center of
24835 the icon as hotspot, not what's contained as hotspot in the icon
24836 file. This fixes the perceived drawing offset seen with Paint.Net
24838 2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
24841 - Store the calculated rectangle in Hwnd object and use it when
24842 setting the client size
24843 - Force Toolwindows to always be type Dock, to ensure they're on top
24845 2006-05-18 Mike Kestner <mkestner@novell.com>
24847 * ComboBox.cs: first pass at ComboBox rework. Layout is more
24848 consistent with MS positioning. IntegralHeight, ItemHeight, Sizing.
24849 Correctly initialize textcontrol and ListBox on DropDownStyle changes.
24850 Substantial refactoring to remove confusing nested classes. Coding
24851 standard and Get+Set->property refactorings. Shift to index based
24852 highlighting in ComboListBox instead of constantly using IndexOf and
24853 Items[]. Add invalidations on resize for DropDownList to fix ugliness
24854 in FileDialog growth. Draw borders manually since Simple mode needs
24855 to look like two independent controls. Make listbox border
24856 conditional to DropDownStyle. Improved OwnerDraw support.
24858 2006-05-18 Sebastien Pouliot <sebastien@ximian.com>
24860 * PaintEventArgs.cs: For 2.0, check for a null Graphics in the .ctor.
24861 Don't set the disposed graphics to null, so we can throw the "right"
24862 exception if the graphics is reused later (added a flag to avoid
24863 double disposing). Some behaviours are different under 2.0 and are
24864 filled under bug #78448.
24866 2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
24868 * Control.cs: When double-buffering is enabled, we need to reset
24869 our graphics context between paint calls. Otherwise, any
24870 transformations and other alterations on the context will
24871 become cumulative (#77734)
24873 2006-05-18 Mike Kestner <mkestner@novell.com>
24875 * ListView.cs: do focused item selection like MS on clicks.
24876 Rework focus handling for ItemControl so LostFocus invalidates as
24878 * ThemeWin32Classic.cs: only draw focus rectangle for ListViewItems if
24879 the ListView ItemControl has focus.
24881 2006-05-17 Peter Dennis Bartok <pbartok@novell.com>
24883 * XplatUIX11.cs: If client_window ends up being width or height zero
24884 due to border settings, move it off window inside whole_window (#78433)
24886 2006-05-17 Alexander Olk <alex.olk@googlemail.com>
24888 * Mime.cs: Shrink the mime file cache correctly.
24890 2006-05-17 Alexander Olk <alex.olk@googlemail.com>
24892 * ThemeWin32Classic.cs: Readded button focus drawing code. (#78429)
24894 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
24896 * XplatUIX11.cs (AddExpose): More sanity checks
24898 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
24901 - AddExpose: Don't add expose ranges outside the size of our
24903 - Cast opacity values to Int32 to avoid crashes with certain
24905 - Added disabled code paths that protect against illegal cross-
24906 thread painting (Developers.exe)
24908 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
24910 * ProgressBar.cs: Invalidate the control when it's resized
24911 since block size is based on control size. (#78388)
24913 2006-05-16 Miguel de Icaza <miguel@novell.com>
24915 * DataGrid.cs (SetDataBinding): per the discussion on irc, instead
24916 of setting the incoming argument to the "reset" value, we set the
24917 this.datamember to string.empty (before we were invalidating the
24922 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
24924 * Form.cs: Only apply transparency settings after the form
24925 is created. (Fixes #77800)
24927 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
24929 * ApplicationContext.cs: Grab the HandleDestroyed event so
24930 we know when to fire OnMainFormClosed
24932 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
24934 * Application.cs: Introduced sub-class to allow tracking of
24935 threads and centralized triggering of the event mess for
24936 ThreadExit, AppExit, etc.. (#76156)
24938 2006-05-16 Alexander Olk <alex.olk@googlemail.com>
24941 - Do not return a null icon index value for a mime subclass.
24942 Instead try the main mime type class too.
24943 - Seems that some newer distributions don't have a link to some
24944 gnome default icons anymore. So check the default gnome dir too.
24947 2006-05-16 Jackson Harper <jackson@ximian.com>
24949 * MdiClient.cs: Don't paint the parent background image if we have
24950 our own background image.
24952 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
24955 - PerformLayout: Do not shrink space filled by DockStyle.Fill
24956 controls, all filled controls are supposed to overlap (#78080)
24957 - UpdateZOrder is supposed to update the control's z-order in the
24958 parent's z-order chain. Fixed to behave like that
24959 - BringToFront: Removed obsolete code
24960 - SendToBack: Simplyfied
24961 - SetChildIndex: Trigger layout calculations when Z-order changes
24962 since layout is done by z-order
24964 2006-05-16 Chris Toshok <toshok@ximian.com>
24966 [ fixes bug #78410 ]
24967 * DataGrid.cs (set_AlternatingBackColor): use
24968 grid_drawing.InvalidateCells instead of Refresh().
24969 (set_BackColor): call grid_drawing.InvalidateCells.
24970 (set_BackgroundColor): use Invalidate instead of Refresh.
24972 * DataGridDrawingLogic.cs (InvalidateCells): new function, just
24973 invalidate the cell area.
24975 2006-05-15 Chris Toshok <toshok@ximian.com>
24977 [ fixes bug #78011 ]
24978 * ThemeWin32Classic.cs (DataGridPaintRows): pass the clip argument
24979 on to DataGridPaintRow.
24980 (DataGridPaintRow): take a clip argument, and only draw the cells
24981 which intersect it. same with the not_usedarea.
24983 * Theme.cs (DataGridPaintRow) add @clip parameter.
24985 * DataGrid.cs (ScrollToColumnInPixels): simplify, use
24986 XplatUI.ScrollWindow.
24987 (ScrollToRow): same.
24989 * DataGridDrawingLogic.cs (UpdateVisibleColumn): fix corner case
24990 with last column which was causing a gray swath to appear with the
24991 XplatUI.ScrollWindow code.
24993 2006-05-15 Chris Toshok <toshok@ximian.com>
24995 * ListBox.cs (HorizontalScrollEvent): in the non-multicolumn case,
24996 use XplatUI.ScrollWindow.
24997 (VerticalScrollEvent): use XplatUI.ScrollWindow.
24999 2006-05-15 Peter Dennis Bartok <pbartok@novell.com>
25001 * TextBoxBase.cs: Added handling of middle-button paste for X11. (#78375)
25003 2006-05-15 Peter Dennis Bartok <pbartok@novell.com>
25005 * Cursors.cs: For X11, read NWSE and NESW cursors from our resource
25006 file since there are no equivalent X11 cursors
25008 2006-05-15 Atsushi Enomoto <atsushi@ximian.com>
25010 * MonthCalendar.cs : DateTimePicker should reflect selected date
25011 on mouse*up*, not mouse*down*. Fixed originally reported part of
25014 2006-05-15 Atsushi Enomoto <atsushi@ximian.com>
25016 * TabControl.cs : When argument index is equal or more than tab
25017 count, just ignore. Fixed bug #78395.
25019 2006-05-15 Peter Dennis Bartok <pbartok@novell.com>
25021 * Control.cs: Dispose all child controls when control is diposed (#78394)
25023 2006-05-14 Alexander Olk <alex.olk@googlemail.com>
25025 * ColorDialog.cs: Finally it is possible to select the color with
25028 2006-05-14 Alexander Olk <alex.olk@googlemail.com>
25030 * PrintDialog.cs: Fix typo
25032 2006-05-14 Alexander Olk <alex.olk@googlemail.com>
25034 * PrintDialog.cs: PrintDialog is not resizable
25035 * ThemeWin32Classic.cs: Draw non links in LinkLabel with the correct
25036 color. Made some ToolBar drawing methods protected virtual.
25038 2006-05-13 Jordi Mas i Hernandez <jordimash@gmail.com>
25040 * PrintDialog.cs: Implementation of the PrintDialog
25042 2006-05-12 Chris Toshok <toshok@ximian.com>
25044 * ScrollBar.cs (set_Value): don't use Dirty/Invalidate to move the
25045 thumb, instead use MoveThumb. This has the side effect of making
25046 most of the other thumb moving machinery use MoveThumb as well.
25047 (OnHandleCreated): pass false for @dirty to UpdateThumbPos, as we
25048 need to actually invalidate the rectangle where the new thumb will
25050 (MoveThumb): use XplatUI.ScrollWindow to move the thumb around.
25051 We force an Update() after, so it's not as fast as it could be,
25052 but at least there's zero flicker and no droppings.
25053 (OnMouseMoveSB): in the thumb dragging case, use MoveThumb.
25054 (UpdateThumbPos): add another argument (dirty), which says whether
25055 or not to calculate/add dirty regions which we later invalidate.
25056 For cases where we know we're going to use MoveThumb, we pass
25057 false for this. Otherwise, pass true.
25059 2006-05-12 Jackson Harper <jackson@ximian.com>
25061 * ThemeWin32Class.cs: Fixes for alignment and icon rendering in
25064 2006-05-12 Peter Dennis Bartok <pbartok@novell.com>
25066 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new SetClipRegion
25067 and GetClipRegion methods and UserClipWontExposeParent property.
25068 * XplatUIWin32.cs: Implemented SetClipRegion/GetClipRegion methods,
25069 overriding UserClipWontExposeParent property, setting to false, since
25070 Win32 handles the required expose messages to draw our clipped parent
25072 * XplatUIX11.cs: Implemented SetClipRegion and GetClipRegion; updated
25073 PaintEventStart to set the user clip region if set.
25075 - Now internally tracking the Region for the control since we need to
25076 store it if the handle is not yet created and only set it when it
25077 becomes created. Before setting the region forced handle creation
25078 - Added code to draw the parents underneath a user-clipped region
25079 * Hwnd.cs: Added UserClip property
25081 2006-05-12 Chris Toshok <toshok@ximian.com>
25083 * ScrollBar.cs (set_LargeChange): Refresh() -> InvalidateDirty()
25084 (set_Maximum): same.
25085 (set_Minimum): same.
25086 (set_SmallChange): same.
25087 (OnMouseUpSB): remove the call to refresh when releasing the
25088 thumb. We shouldn't need it.
25090 2006-05-12 Miguel de Icaza <miguel@novell.com>
25092 * StatusBar.cs (UpdatePanel): If the panel being refreshes has the
25093 AutoSize set to None, we do not need to relayout everything, we
25094 just need to invalidate the current region.
25096 (Draw): Do not draw the entire ClientArea, just redraw the
25097 clip area being passed.
25099 * MdiClient.cs: Make MdiClient constructor with the Form argument
25102 2006-05-12 Jackson Harper <jackson@ximian.com>
25104 * ThemeWin32Classic.cs (DrawToolBar): Flat toolbars get their
25105 parents background image, but strangely not their own.
25106 - (DrawStatusBarPanel): Take into account horizontal alignment
25107 when drawing the strings and icons.
25109 2006-05-12 Mike Kestner <mkestner@novell.com>
25111 * ListBox.cs: avoid invalidations for focus when the collection is
25114 2006-05-12 Chris Toshok <toshok@ximian.com>
25116 * ScrollBar.cs (OnMouseMoveSB): when dragging the thumb, don't
25117 invalidate the entire thumb area. Call InvalidateDirty which
25118 limits the redraw to the thumb itself and surrounding pixels.
25120 * XplatUIX11.cs (ScrollWindow): optimize copying.
25122 2006-05-12 Chris Toshok <toshok@ximian.com>
25124 * DataGridDrawingLogic.cs: make CalcGridAreas non-reentrant.
25125 Figure out the positioning/layout in a single pass instead of
25126 multiple recursive invocations. Speeds up the initial display of
25127 the data grid. Also, make many things private that were
25128 originally public but unused outside this class.
25130 2006-05-11 Jackson Harper <jackson@ximian.com>
25132 * MdiClient.cs: Improved layout code.
25134 2006-05-11 Jonathan Chambers <jonathan.chambers@ansys.com>
25136 * PropertyGrid.cs : Only check GetPropertiesSupported for properties,
25137 not SelectedObject.
25139 2006-05-11 Chris Toshok <toshok@ximian.com>
25141 * Hwnd.cs (Invalid): don't start off with Rectangle.Empty, as
25142 union of that will always be {0,0,width,height}.
25144 2006-05-11 Jackson Harper <jackson@ximian.com>
25146 * Form.cs: Match MS's DefaultSize for forms (they must have
25147 changed the size in sp2).
25149 2006-05-11 Atsushi Enomoto <atsushi@ximian.com>
25151 * TextBoxBase.cs : implement CTRL+A (select all). Fixed bug #78368.
25153 2006-05-11 Atsushi Enomoto <atsushi@ximian.com>
25155 * TextControl.cs : Fixed bug #78109. This incorrect position
25156 comparison caused crash on automatic line split.
25157 * TextBoxBase.cs : reduce duplicate code.
25159 2006-05-10 Jackson Harper <jackson@ximian.com>
25161 * MdiClient.cs: Active form is only sent to the back when using
25162 the Next form functionality, when a form is clicked the current
25163 active shouldn't be sent to the back.
25164 - Layout the mdi windows when the container is first made visible.
25165 * Form.cs: Give the MdiClient a ref to the containing form when we
25168 2006-05-10 Atsushi Enomoto <atsushi@ximian.com>
25170 * LinkLabel.cs : link_font could be uninitialized, so populate one
25171 before actual use. Fixed bug #78340.
25173 2006-05-10 Atsushi Enomoto <atsushi@ximian.com>
25175 * XplatUIX11.cs : clipboard format native value is IntPtr.
25178 2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
25181 - Instead of showing context menus directly we send WM_CONTEXTMENU,
25182 which is passed up the parent chain by DefWndProc
25183 - We now handle WM_CONTEXTMENU to display any menu, or pass it
25184 to DefWndProc (#77956)
25185 * XplatUIX11.cs: Added handling of WM_CONTEXTMENU (pass up) to DefWndProc
25187 2006-05-10 Jackson Harper <jackson@ximian.com>
25189 * MdiClient.cs: We need to remove the controls from the mdi
25190 collection, when we close the window.
25191 * MdiWindowManager.cs: Special handling of closing mdi windows.
25192 * InternalWindowManager.cs: Make the close method virtual so the
25193 mdi window manager can handle it specially.
25195 2006-05-10 Jordi Mas i Hernandez <jordimash@gmail.com>
25198 - Recalculate grid when the data source has changed
25199 - Matches styles provided by user from all data sources types
25200 * DataGridTableStyle.cs: For columns that provided by the user set the
25201 with the preferred value is there was unassigned.
25202 * CurrencyManager.cs: throw OnItemChanged event
25204 2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
25206 * PictureBox.cs: Don't animate until handle is created. Start animation
25207 when handle is created.
25209 2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
25211 * XplatUIX11.cs, Hwnd.cs: Adopted Mike's patch from #77979 to match
25213 * XEventQueue.cs: We don't need to provide the extra info
25215 2006-05-10 Jackson Harper <jackson@ximian.com>
25217 * MdiClient.cs: If the mdi clients parent form has a background
25218 image set, we draw that background image for the mdi area's
25221 2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
25223 * TextBoxBase.cs: Set IBeam cursor (#78347)
25225 2006-05-10 Mike Kestner <mkestner@novell.com>
25227 * ToolBar.cs: fix some text padding issues with ButtonSize
25228 calculation. Update the default size to match MS documentation.
25229 * ToolBarButton.cs: use ToolBar.ButtonSize for layout of unspecified
25230 button size. Fixes #78296.
25232 2006-05-10 Mike Kestner <mkestner@novell.com>
25234 * ListBox.cs: use is_visible for scrollbar positioning in case the
25235 control isn't on screen yet. Fix off by one with Right vs Width
25236 usage. Update Scrollbars in SetBoundsCore. Fixes #78188 and #78258.
25238 2006-05-10 Jackson Harper <jackson@ximian.com>
25240 * X11Dnd.cs: Drop to a control with another control on top of it.
25241 * ToolBar.cs: Work on a copy of the buttons list, so that it can
25242 be modified in click handlers. TODO: Look for similar problems in
25245 2006-05-09 Jackson Harper <jackson@ximian.com>
25247 * Form.cs: Window managers need the old window state when setting
25249 * InternalWindowManager.cs: Allow the base mdi window manager to
25250 handle more of the MDI only stuff (like maximize buttons).
25251 * MdiWindowManager.cs: Fix some snafus in changing the window
25252 state. Add all the menu functionality, for both popup and
25254 * MdiClient.cs: When a new form is selected the currently
25255 activated form is sent to the back, this matches MS.
25256 - Implement a new method to activate the next mdi child window.
25258 2006-05-08 Peter Dennis Bartok <pbartok@novell.com>
25261 - Added new InternalCapture method to allow controls to prevent
25262 the capture behaviour on the click handlers
25263 - Switched to use InternalCapture
25265 - Using InternalCapture to prevent mouse captures from being released
25266 on mouse button release (Fixes #78100)
25267 * XplatUIX11.cs (DeriveStyles): Now checks caption state and only
25268 returns Form borders if a caption is present. (Fixes #78310)
25270 2006-05-08 Peter Dennis Bartok <pbartok@novell.com>
25272 * TreeNode.cs: Changed serialization .ctor to not require every field
25273 to be present. (#78265)
25274 * OwnerDrawPropertyBag.cs: Added serialization .ctor
25276 2006-05-05 Alexander Olk <alex.olk@googlemail.com>
25278 * MimeIcon.cs: for is faster than foreach for strings.
25280 2006-05-05 Mike Kestner <mkestner@novell.com>
25282 * CheckedListBox.cs: update check handling code to not use selected.
25283 * ListBox.cs: rewrite of mouse selection handling to correspond to MS
25284 behavior for visual feedback, motion response, shift/ctrl handling,
25285 and properly deal with all 4 selection modes. Updates to bounds
25286 handling logic. Add scroll wheel support. [Fixes #77842]
25288 2006-05-05 Peter Dennis Bartok <pbartok@novell.com>
25291 - Moved adding of Implicit controls into .ctor. That way, subsequent
25292 creation of the controls will not cause them to think they are
25293 toplevel windows (fixes #78200 header problem)
25294 - Added 2.0 ShowGroups and UseCompatibleStateImageBehaviour
25295 - Switched visibility setting of header control to use internal field
25296 to avoid triggering handle creation
25297 - Now checking if handle is created before causing a refresh when items
25298 are added (This makes us now match handle creation time with MS)
25299 * Splitter.cs: Removed loading of private splitter cursor, switched to
25300 Cursors version now that that is loading the right ones
25301 * Cursors.cs: Load proper splitter cursors from resources
25302 * Cursor.cs: Added second method of loading resource cursors for the
25303 VS.Net users amongst us
25305 2006-05-05 Mike Kestner <mkestner@novell.com>
25307 * ListView.cs: give header_control a minimum size based on the
25310 2006-05-05 Peter Dennis Bartok <pbartok@novell.com>
25312 * XplatUIX11.cs: WS_EX_TOPMOST requires window to be on top. A dock
25313 window seems to do that with metacity, so set that type. (#78120)
25315 2006-05-05 Mike Kestner <mkestner@novell.com>
25317 * ListViewItem.cs: fix Details mode checkbox layout bug.
25318 * ThemeWin32Classic.cs: draw a ListView column header for unused space
25319 at the end of the header, if it exists. [Fixes for #78200]
25321 2006-05-04 Jackson Harper <jackson@ximian.com>
25323 * MdiClient.cs: Add a helper property to get the container form.
25324 * MdiWindowManager.cs: We have to make sure to use the menu origin
25325 when drawing the icons and buttons, this fixes maximized window
25326 icons/buttons on win32.
25327 * InternalWindowManager.cs: Reset the restore captions when a
25328 window goes from Maximized to Minimized and vice versa. Move the
25329 DrawMaximizedButtons into the MdiWindowManager source, tool
25330 windows can't be maximized. NOTE: This could use a little
25331 refactoring if time ever permits.
25333 2006-05-03 Jonathan Chambers <jonathan.chambers@ansys.com>
25335 * TextBox.cs: Add MWFCategoryAttributes
25336 * TextBoxBase.cs: Add MWFCategoryAttributes
25337 * Form.cs: Add MWFCategoryAttributes
25339 2006-05-03 Jonathan Chambers <jonathan.chambers@ansys.com>
25341 * Control.cs: Add MWFCategoryAttributes
25342 * ScrollableControl.cs: Add MWFCategoryAttributes
25344 2006-05-03 Alexander Olk <alex.olk@googlemail.com>
25346 * ThemeWin32Classic.cs: Draw the ToolBar top border only if
25347 Divider is true. Fix a little glitch in PropertyToolBar
25350 2006-05-02 Peter Dennis Bartok <pbartok@novell.com>
25353 - Dispose: Call base.Dispose, this causes the disposed event
25354 to be fired (and probably other, more important stuff)
25355 - SetVisibleCore: Set is_visible to true after creating the
25356 window so that the window still gets created invisible (if
25357 WM_VISIBLE isn't set). That will cause the ShowWindow afterwards
25358 to generate a WM_ACTIVE message
25359 * Form.cs: Call Dispose when we want to destroy the window, instead of
25360 just destroying the handle (Dispose will do that for us)
25362 - RootWindow also needs a queue, so we can properly process the
25363 property change events from RootWindow (like Activate)
25364 - Generatic synthetic WM_ACTIVE message when the active window is
25367 2006-05-01 Peter Dennis Bartok <pbartok@novell.com>
25369 * LinkLabel.cs: Trigger a recalc of our label dimensions when
25372 2006-05-01 Peter Dennis Bartok <pbartok@novell.com>
25374 * ThemeWin32Classic.cs (ButtonBase_DrawImage): Use the proper image
25375 for determining width and height (image might not be assigned if
25376 we're drawing an imagelist)
25378 2006-05-01 Peter Dennis Bartok <pbartok@novell.com>
25380 * XplatUI.cs, XplatUIDriver.cs: Added MenuHeight property
25381 * XplatUIWin32.cs: Overriding new MenuHeight property, retrieving
25383 * Theme.cs: No longer returns hardcoded menu height, instead calls
25385 * Form.cs (OnLoad): Scaling happens before triggering Load events
25388 2006-05-01 Mike Kestner <mkestner@novell.com>
25390 * MenuItem.cs: fix NRE for text == null. Fixes #78250.
25392 2006-04-30 Peter Dennis Bartok <pbartok@novell.com>
25394 * TextBoxBase.cs: Removed Fixme
25395 * RichTextBox.cs (set_RTF): Invalidate document after update (#78247)
25397 2006-04-30 Peter Dennis Bartok <pbartok@novell.com>
25400 - ScrollWindow: We were passing hwnd.ClientRectangle which returns
25401 the rectangle relative to the parent, considering borders. We
25402 don't really want that.
25403 - ScrollWindow: Fixed warning to be more understandable
25404 * TextBoxBase.cs: Fixed ScrollWindow calculations to consider our
25405 scrollbars and scroll only the visible area
25406 * RichTextBox.cs: Removed debug output
25408 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
25410 * NumericUpDown.cs (Text): Just use base
25411 * UpDownBase.cs: Ensure txtView is created before using it
25413 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
25415 * XplatUIX11.cs (SetWindowTransparency): Casting opacity to int before
25416 casting to IntPtr to avoid 64bit overflow errors
25418 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
25421 - AllowDrop: Don't force handle creation.
25422 - CreateHandle: Added call to tell driver if we're allowed to drop
25424 2006-04-27 Alexander Olk <alex.olk@googlemail.com>
25426 * FileDialog.cs: Remember the last directory not only for the
25427 current instance but also for new FileDialog instances.
25429 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
25431 * XplatUIX11.cs: Forgot to set the queue on the foster parent. That
25432 broke sending async messages
25434 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
25437 - ScrollWindow: Fixed method. We finally generate expose events again
25438 for scrolled areas. This was causing 'garbage' when scrolling
25439 textbox and other controls that used ScrollWindow
25440 - Switched from using the regular queue for paint events to the MS
25441 model of 'generating' paint events when the queue is empty.
25442 We use the new XQueueEvent.Paint subclass to store which windows
25444 - AddExpose now takes the x/y/width/height of the exposed area
25445 and inserts the window into the paint queue if not already there
25446 - InvalidateWholeWindow: Switched to use new AddExpose method
25447 - UpdateMessageQueue: Added which queue to monitor for paint events
25448 - DefWndProc: Added default handler for WM_PAINT and WM_NCPAINT in
25449 the unlikely case nothing above handles it. We reset the expose
25450 pending states to get them off the queue.
25451 - GetMessage: Now pulls a paint event if no other events are in the
25453 - Invalidate: Switched to new AddExpose method
25454 - PeekMessage: Updated to understand pending paint events
25455 - UpdateWindow: Fixed logic bug. We were only updating if the window
25456 didn't need updating. Also switched to sending WM_PAINT directly,
25458 * XEventQueue.cs: Added Paint queue support. Allows enqueue/dequeue
25459 and random access Remove(). The random access is needed to handle
25460 UpdateWindow() where a WM_PAINT is sent directly without accessing
25462 * ScrollBar.cs: Added Update() calls to cause immediate updates to
25463 allow for better feedback when scrolling. Scrollbars are small and
25464 the immediate update should make it 'feel' more responsive without
25465 slowing things down. ScrollBar still needs it's invaliate logic
25466 updated to not always invalidate the whole bar on certain changes.
25468 2006-04-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25471 (BackColor): if the control does not support a transparent background,
25472 return the default backcolor when the parent backcolor is transparent.
25474 2006-04-28 Peter Dennis Bartok <pbartok@novell.com>
25476 * Application.cs: Updated to new StartLoop/GetMessage API
25477 * RichTextBox.cs: Provide some output on RTF parsing errors
25478 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs: Added
25479 new queue_id argument to GetMessage and PeekMessage to allow faster
25480 handling of per-thread queues in drivers.
25481 * Hwnd.cs: Added Queue tracking and property
25482 * MenuAPI.cs: Updated to new StartLoop/GetMessage API
25483 * XEventQueue.cs: Added thread trackingA
25484 * PropertyGridView.cs: Updated to new StartLoop/GetMessage API
25486 - Implemented new per-thread queue
25487 - GetMessage: Fixed return/break behaviour on several cases. We were
25488 returning stale messages in some cases, instead of just processing
25491 2006-04-27 Jonathan Chambers <jonathan.chambers@ansys.com>
25493 * PropertyGrid.cs: Call GetPropertiesSupported on TypeConverter.
25495 2006-04-27 Peter Dennis Bartok <pbartok@novell.com>
25497 * ThemeWin32Classic.cs (DrawToolBar): Refactored, simplified the logic,
25498 fixed off-by-one comparisons between Width/Height and Right/Bottom.
25500 2006-04-27 Jonathan Chambers <jonathan.chambers@ansys.com>
25502 * PropertyGridView.cs: Fix drop down width.
25504 2006-04-27 Alexander Olk <alex.olk@googlemail.com>
25506 * ThemeWin32Classic.cs: Peter thinks that three additional lines are
25507 a mess in DrawToolBar, so I removed one of them.
25509 2006-04-27 Alexander Olk <alex.olk@googlemail.com>
25511 * ThemeWin32Classic.cs: Draw the ToolBar border lines only if
25512 needed (clip). Otherwise we get artifacts.
25514 2006-04-26 Peter Dennis Bartok <pbartok@novell.com>
25516 * FixedSizeTextBox.cs: Added constructor to allow specifying which
25518 * UpDownBase.cs: Set the spinner control to be fixed height vertical,
25519 and switched FixedSizeTextBox to only be fixed vertical (#78116)
25520 * Form.cs: Not applying the 'MS 0.08 fudge factor' for a given dimension
25521 if it matches the scale base font (avoids unneeded scaling)
25523 2006-04-26 Alexander Olk <alex.olk@googlemail.com>
25525 * X11DesktopColors.cs: One gtk_init_check should be enough
25527 2006-04-26 Peter Dennis Bartok <pbartok@novell.com>
25529 * TextBoxBase.cs: Moved Backspace handling into WM_CHAR block to
25532 2006-04-26 Peter Dennis Bartok <pbartok@novell.com>
25535 - Generate OnTextChanged for Backspace even if we're only deleting
25536 the current selection
25537 - When setting the Text property, only select all text if the
25538 control does not have focus when it is being set. Otherwise
25539 just place the cursor at the beginning of the control
25541 2006-04-26 Alexander Olk <alex.olk@googlemail.com>
25543 * ThemeWin32Classic.cs: ToolBars get drawn with two lines at the top.
25544 Added a little helper to draw PropertyGrid ToolBar with a different
25545 border and a different BackColor.
25546 * PropertyGrid.cs: Some background parts didn't get painted with the
25547 correct background color. Added a class that helps us to draw the
25548 correct border for PropertyGridView and a class that helps us to
25549 draw ToolBars with a different backcolor
25550 * PropertyGridView.cs: Draw PlusMinus with the correct colors.
25552 2006-04-25 Jonathan Chambers <jonathan.chambers@ansys.com>
25554 * PropertyGrid.cs: Bug 78196, font size, and splitter location.
25555 * PropertyGridView.cs: Bug 78196, font size, and splitter location.
25557 2006-04-25 Peter Dennis Bartok <pbartok@novell.com>
25559 * XplatUIWin32.cs (DIBtoImage): ORing instead of ANDing the alpha
25560 into the palette entries. Also, since we're working on a copy
25561 we needed to copy the palette back onto the bitmap.
25562 * Cursor.cs: Same fix as XplatUIWin32.cs.
25564 2006-04-25 Peter Dennis Bartok <pbartok@novell.com>
25566 * ImageListStreamer.cs: Need to read the var (or we're off)
25568 2006-04-25 Peter Dennis Bartok <pbartok@novell.com>
25570 * TextControl.cs, ComboBox.cs, CommonDialog.cs, Theme.cs,
25571 XplatUIWin32.cs, RichTextBox.cs, ImageListStreamer.cs,
25572 TextBoxBase.cs: Unused var fixes
25573 * AxHost.cs: Small 2.0 fix
25574 * XplatUIX11.cs: Switched to IntPtr from int for XA_CARDINAL atoms
25575 as it seems that is what at least Metacity expects. This will make
25576 icons show up on 64bit platforms. We still have some 64bit size
25577 issues, though, since the startup app window size still won't match.
25579 2006-04-25 Mike Kestner <mkestner@novell.com>
25581 * *.cs: cleanup newly reported exception var unused warnings.
25583 2006-04-25 Alexander Olk <alex.olk@googlemail.com>
25585 * ThemeWin32Classic.cs: Button image alignment now matches exactly
25588 2006-04-25 Alexander Olk <alex.olk@googlemail.com>
25590 * ThemeWin32Classic.cs: Fixed drawing code for buttons with an
25591 image. The image position is always the same, no matter if the
25592 button is pressed or not.
25594 2006-04-25 Alexander Olk <alex.olk@googlemail.com>
25596 * FileDialog.cs: SaveFileDialog shouldn't rely on a MWFFileView
25597 selection and set the correct filename for SaveFileDialog.
25598 Patch by Emery Conrad.
25600 2006-04-24 Mike Kestner <mkestner@novell.com>
25602 * ListView.cs (LastVisibleIndex): when in List mode of Alignment.Left,
25603 check for item.X outside the ClientRect instead of item.Y. Fixes
25606 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25608 * ImageListStreamer.cs: some images store a wrong grow factor, so don't
25609 trust that value blindly and do some sanity check. Fixes bug #77814.
25611 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25613 * ImageListStreamer.cs: save the mask as a 1bpp image.
25615 2006-04-21 Mike Kestner <mkestner@novell.com>
25617 * CheckedListBox.cs: maintain CheckStatus here. Use DrawItemState to
25618 pass Checked and Indeterminate to the Theme Engine. Improve
25619 encapsulation with ListBox.
25620 * ListBox.cs: Keep a StringFormat instead of calculating it every item
25621 draw. Kill ListBoxItem. Refactor away the ListBoxInfo and ListBoxItem
25622 nested types. Move all CheckState functionality to CheckedListBox.
25623 Make IntegralHeight work like MS. Rewrite of Layout engine. Fix
25624 OwnerDrawVariable layout/rendering. Fix multicolumn rendering. Fix
25625 ScrollAlwaysVisible handling. Refactor "selected" collections to use a
25626 single base list. Fix scrollbar sizing and placement to mirror MS.
25627 * Theme.cs: remove CheckedListBoxCheckRectangle. It wasn't really
25629 * ThemeWin32Classic.cs: implement Indeterminate CheckState rendering
25630 for CheckedListBox by using new DrawItemState info. Center the
25631 checkboxes on the items. Use new StringFormat property.
25633 2006-04-18 Jackson Harper <jackson@ximian.com>
25635 * Form.cs: MdiChildren don't do default locations the same way as
25636 regular forms. This prevents a crash when trying to position the
25639 2006-04-17 Jonathan Chambers <jonathan.chambers@ansys.com>
25641 * PropertyGridTextBox.cs: Formatting, copyright
25642 * PropertiesTab.cs: Formatting
25643 * PropertyGrid.cs: Formatting
25644 * PropertyGridView.cs: Formatting, fix drop down, enabled double
25645 click toggling of values
25647 2006-04-17 Peter Dennis Bartok <pbartok@novell.com>
25649 * KeyPressEventArgs: Added 2.0 only setter for KeyChar
25650 * Control.cs (.ctor): verify_thread_handle is static, don't reset
25651 every time a control is created
25652 * Application.cs: Removed obsolete EnableRTLMirroring method
25654 2006-04-18 Gert Driesen <drieseng@users.sourceforge.net>
25656 * TabControl.cs: Avoid ArgumentOutOfRangeException when setting
25657 SelectedIndex to -1. Fixes bug #78121.
25659 2006-04-17 Jackson Harper <jackson@ximian.com>
25661 * Binding.cs: Handle null values for Current and BindingContext.
25662 This occurs when binding is a little delayed.
25663 * CurrencyManager.cs: return null for Current when there are no
25665 - Hookup to the listchanged event on the DataView and update
25666 bindings when the list is changed. This fixes late binding of
25669 2006-04-17 Jackson Harper <jackson@ximian.com>
25672 * XplatUIX11.cs: Drops should not create a mousedown. Patch by Tim
25675 2006-04-15 Alexander Olk <alex.olk@googlemail.com>
25677 * ThemeWin32Classic.cs: Draw disabled combo button in the correct
25679 * ComboBox.cs: If the combobox is disabled call CPDrawComboButton
25680 with the correct ButtonState
25682 2006-04-14 Peter Dennis Bartok <pbartok@novell.com>
25684 * XplatUIX11.cs: Improved distinguishing between window types to
25685 tell the WM a type closer to what the app wants (Fixes #78107)
25687 2006-04-14 Alexander Olk <alex.olk@googlemail.com>
25689 * ThemeWin32Classic.cs: Fixed drawing of ContainerGrabHandle and
25692 2006-04-14 Alexander Olk <alex.olk@googlemail.com>
25694 * ThemeWin32Classic.cs: Fixed size grip drawing and updated StatusBar
25695 drawing code to reflect the size grip changes
25697 2006-04-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25699 * ImageListStreamer.cs: fix handling of the mask that follows the main
25700 bitmap when deserializing and serialize it properly. The generated mask
25701 should better be a 1bpp image, but I'll do that later.
25703 2006-04-13 Alexander Olk <alex.olk@googlemail.com>
25705 * FileDialog.cs: Show something in the DirComboBox on *nix if the
25706 path doesn't fit into some of our Current.Places
25708 2006-04-13 Jackson Harper <jackson@ximian.com>
25710 * ComboBox.cs: Use borders instead of drawing our own decorations,
25711 try to obey correct rules for heights.
25714 * ThemeClearLooks.cs:
25715 * ThemeWin32Classic.cs: Remove combobox decoration drawing code,
25716 this is now handled by borders.
25717 - Remove unused DrawListBoxDecorationSize method.
25719 2006-04-13 Mike Kestner <mkestner@novell.com>
25721 * MenuAPI.cs: null guarding for the disbled click check fixes crash
25724 2006-04-13 Alexander Olk <alex.olk@googlemail.com>
25726 * ThemeWin32Classic.cs:
25727 - Fixed CPDrawStringDisabled
25728 - Corrected drawing of disabled menu items
25729 - Fixed drawing of disabled radio buttons (bug #78095)
25730 - Draw check in a disabled CheckBox with color ControlDark
25732 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
25734 * Form.cs: Use the provided width when calculating the menu size;
25735 when being maximized we get WM_NCCALCSIZE before WM_WINDOWPOSCHANGED
25736 and ClientSize.Width won't be updated yet
25737 * Application.cs: Use Visible instead of Show() to make form visible,
25738 this way we create the handle later and menusize is considered
25740 2006-04-12 Mike Kestner <mkestner@novell.com>
25742 * MenuAPI.cs: ignore clicks on disabled menu items. Thanks to Alex for
25745 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
25747 * TextBox.cs: Implemented context menu
25749 2006-04-12 Mike Kestner <mkestner@novell.com>
25751 * ListView.cs: implement box selection. fixes #77838.
25752 * ThemeWin32Classic.cs: draw box select rect, remove a ResetClip.
25754 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
25756 * XplatUIX11.cs: Added setting of window type when transient window
25757 is created (metacity would move it otherwise)
25758 * X11Structs.cs: Added WINDOW_TYPE atoms
25759 * LinkLabel.cs: Override OnPaintBackgroundInternal and draw the
25760 background (the control is Opaque but still wants transparent
25763 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
25765 * Control.cs: Added OnPaintBackgroundInternal to allow controls
25766 that set Opaque but don't mean it (like all ButtonBase-derived
25767 controls) to still draw their background
25768 * ButtonBase.cs: Override OnPaintBackgroundInternal and draw
25771 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
25773 * Control.cs (PaintControlBackground): Set the graphics object
25774 on our PaintEvent to null to prevent it from being disposed
25775 when the PaintEvent gets disposed
25777 2006-04-12 Alexander Olk <alex.olk@googlemail.com>
25779 * ThemeWin32Classic.cs: Use even more SystemBrushes and SystemPens
25780 * ThemeNice.cs, ThemeClearlooks.cs: fix typo
25782 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
25785 - Added transparency check to BackColor property. Transparent
25786 backgrounds are only allowed if the control styles permit it
25787 - Added recursive painting of parent control background and
25788 foreground if a control with a transparent backcolor is drawn
25789 (Thanks to Tim Ringenback for providing his 'hack' as a base
25790 for this patch) Fixes #77985 and #78026.
25791 - Added Opaque style check before calling OnPaintBackground, no
25792 need to draw the background if the control is opaque
25793 - Removed ControlAccessibleObject owner variable (inherited from
25794 base, no need to define again)
25795 - Added some documentation links explaining the drawing events
25798 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
25800 * Splitter.cs (CalculateSplitPosition): Corrected the bad assumption
25801 that the affected control is the located at the left border of our
25802 parent (Fixes #77936)
25804 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
25806 * TextBoxBase.cs: When rendering disabled or readonly controls,
25807 draw the background with 'Control' instead of 'Window' color as
25808 long as the user hasn't specifically set a color
25810 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
25812 * TextBoxBase.cs: Don't try to shortcut by checking against base.Text
25813 since that won't be updated if the user types text (only if it's
25814 programatically set)
25816 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
25818 * ScrollableControl.cs: Calculate DisplayRect dynamically, so that
25819 layout changes do to app-triggered resizes will have the proper
25820 display rectangle for layout
25822 2006-04-11 Alexander Olk <alex.olk@googlemail.com>
25824 * ThemeWin32Classic.cs:
25825 - Make use of the SystemBrushes and SystemPens wherever possible
25826 - Corrected some highlight colors
25827 - Corrected RadioButton and CheckBox FlatStyle.Flat and Popup
25829 * Theme.cs: Added Empty field to CPColor struct
25831 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
25833 * ScrollabeControl.cs: We need to consider whether or not a scrollbar
25834 is displayed when calculating the display rectangle. Thanks to Mike
25835 for teaching me the err of my ways.
25837 2006-04-10 Peter Dennis Bartok <pbartok@novell.com>
25839 * ScrollableControl.cs:
25840 - Rewrote DisplayRectangle code, now returning the proper x/y coords
25841 (instead of 0,0) and we now return the real width/height instead of
25842 just the clientrectangle, adjusted for padding. The rectangle is
25843 now cached and created by the new CalculateDisplayRectangle method.
25844 - Created new CalculateDisplayRectange method, which basically does
25845 what get_DisplayRectangle() did originally, but now using the
25846 right edge instead of DisplayRectangle to determine the size of
25848 - get_Canvas(): Fixed it to properly calculate canvas for
25849 right/bottom controls which seem to be placed to the right/bottom
25850 of any controls that have a fixed location
25851 - Removed TODO that's taken care of
25852 - Removed NotImplementeds and attempted to implement AdjustFormScrollBars
25853 and SetDisplayRectLocation according to new MSDN2 docs
25854 - Added call to PerformLayout in OnVisibleChanged, MS causes a layout
25855 event when that is called, this is added for compatibility
25856 - ScrollControlIntoView(): Implemented.
25857 - Switched scrollbars to be implicit, they shouldn't be selectable
25858 * ContainerControl: Now that ScrollControlIntoView is implemented, we
25859 call it when the active control is set/changed
25860 * ScrollBar.cs: Added support for generating Win32 scrollbar messages
25861 * ImplicitHScrollBar.cs, ImplicitVScrollBar.cs: Now setting new base
25862 implicit_control variable (used for native Win32 message generation)
25863 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added new
25864 HorizontalScrollBarHeight and VerticalScrollBarWidth properties
25865 * ThemeWin32Classic.cs: Now calling the driver for the scrollbar sizes
25866 * XplatUIStructs.cs: Added ScrollBarCommands enum
25868 2006-04-10 Jackson Harper <jackson@ximian.com>
25871 * CheckedListBox.cs:
25878 * PrintPreviewControl.cs:
25884 * UpDownBase.cs: Fixup base event overrides.
25886 2006-04-06 Mike Kestner <mkestner@novell.com>
25888 * ScrollBar.cs: fix "new event" declarations (#76509) and bounds check
25889 all user-initiated value changes to min <= value <= max-thumbsz+1.
25890 (set_Value): check for vert/horiz when calculating new thumb position.
25891 (LargeIncrement): bounds check to stop pos at max - thumb_size + 1
25893 (OnMouseMoveSB): refactor the thumb dragging code and refine
25894 invalidation logic to reduce flicker.
25895 (SetEndPosition): bounds check to stop pos at max - thumb_size + 1
25896 (SmallIncrement): bounds check to stop pos at max - thumb_size + 1
25897 (UpdateThumbPosition): small code readability cleanup
25899 2006-04-10 Alexander Olk <alex.olk@googlemail.com>
25901 * ThemeNice.cs: Small UI polishing. Draw borders a little bit
25904 2006-04-08 Alexander Olk <alex.olk@googlemail.com>
25906 * ThemeNice.cs: Use a better graphics effect when a button is pressed
25908 2006-04-08 Alexander Olk <alex.olk@googlemail.com>
25910 * Theme.cs: Added GetDashPen and GetSizedPen to SystemResPool
25911 * ThemeWin32Classic.cs: Make use of the new SystemResPool methods.
25912 This dramatically reduces the number of Pen.Dispose calls.
25913 Where possible call ResPool methods only once instead of calling it
25914 over and over again (for example for the same color).
25916 2006-04-06 Mike Kestner <mkestner@novell.com>
25918 * TabControl.cs: fix for SelectedIndex updating on TabPage removals.
25919 Also remove an unused private field on the collection. Fixes #77972.
25921 2006-04-06 Alexander Olk <alex.olk@googlemail.com>
25923 * ThemeNice.cs: Added ToolBar drawing code
25925 2006-04-06 Mike Kestner <mkestner@novell.com>
25927 * Form.cs (ShowDialog): MS allows IWin32Window param to be a non-form.
25928 I'm assuming that means we need to look up the toplevel for the
25929 provided control. Fixes the crash trace in #77911 but exposes another
25930 crash in some strange reflection usage in NDocGui.
25932 2006-04-06 Alexander Olk <alex.olk@googlemail.com>
25934 * ThemeNice.cs: Gave it a little silver touch and added Images
25936 * FontDialog.cs: FontDialog is not resizable
25937 * FileDialg.cs: Added SizeGripStyle.Show
25939 2006-04-05 Jackson Harper <jackson@ximian.com>
25941 * KeyboardLayouts.cs: Remove warning.
25943 2006-04-05 Jackson Harper <jackson@ximian.com>
25945 * Control.cs: Enable OnPaintInternal so we can use it for drawing
25946 all of our controls instead of Paint +=.
25961 * ComboBox.cs: Remove handling of WM_PAINT and WM_ERASEBKGND and
25962 use OnPaintInternal. Remove Width/Height and Visible checks in
25963 paint handler, this is done at a higher level now.
25964 * GroupBox.cs: Don't need to handle WM_ERASEBKGND anymore.
25965 * PaintEventArgs.cs: Add a handled flag so controls that don't
25966 want anymore painting after OnPaintInternal can make sure OnPaint
25969 2006-04-05 Mike Kestner <mkestner@novell.com>
25971 * Form.cs: fix the menu WndProc hacks to respect the native enabled
25972 state of the form, so that we don't process events when Modal dialogs
25973 are up. Fixes #77922.
25975 2006-04-05 Alexander Olk <alex.olk@googlemail.com>
25977 * Mime.cs: Default for range length is 1 not 0. If set to 0 no match
25980 2006-04-05 Mike Kestner <mkestner@novell.com>
25982 * XplatUIX11.cs: fix typo in the EX_APPWINDOW transient patch.
25984 2006-04-05 Mike Kestner <mkestner@novell.com>
25986 * ListView.cs (HeaderMouseMove): null guarding for the over column
25987 when setting up the drag_to_index. Fixes #78015.
25989 2006-04-04 Peter Dennis Bartok <pbartok@novell.com>
25991 * XplatUIX11.cs: If WS_EX_APPWINDOW isn't set we don't want to show up
25992 in the taskbar. Transient windows seem to accomplish that.
25994 2006-04-04 Peter Dennis Bartok <pbartok@novell.com>
25997 - Re-enabled CreateParams.X/Y code for FormStartPosition
25998 - Added code for manual placement when creating the Control
25999 - Incomplete patch to treat MDI forms differently when
26000 setting the ClientSizeCore. (Still need to figure out handling
26003 - When we're explicitly setting the X/Y position of a non-Child
26004 window, let the WM know. Metacity really wants this.
26006 2006-04-04 Alexander Olk <alex.olk@googlemail.com>
26008 * ThemeNice.cs: Added CPDrawButton
26010 2006-04-04 Alexander Olk <alex.olk@googlemail.com>
26012 * ThemeNice.cs: Changed the color for focused buttons and activated
26013 the arrows for small scroll buttons.
26015 2006-04-04 Alexander Olk <alex.olk@googlemail.com>
26017 * ThemeWin32Classic.cs: Removed DrawFlatStyleButton, not needed
26018 anymore. Changed some method modifiers to protected (virtual)
26019 * ThemeClearlooks.cs: Updated to reflect the ThemeWin32Classic
26021 * ThemeNice.cs: Updated to reflect the ThemeWin32Classic changes.
26022 Updated drawing of menus, buttons and progressbars; added
26025 2006-04-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
26027 * ImageListStreamer.cs: implemented serialization/deserialization
26030 2006-04-03 Alexander Olk <alex.olk@googlemail.com>
26032 * ThemeWin32Classic.cs:
26033 - Removed all the DrawFrameControl stuff; CPDrawButton,
26034 CPDrawCheckBox and CPDrawRadioButton are now handled directly
26036 - Updated and corrected the drawing code of CPDrawButton,
26037 CPDrawCheckBox and CPDrawRadioButton to better match ms
26038 - Updated theme checkbox and radiobutton code to use the CP*
26041 2006-03-31 Peter Dennis Bartok <pbartok@novell.com>
26043 * XplatUIX11.cs: Enable clipping again now that the libgdiplus
26046 2006-03-31 Jackson Harper <jackson@ximian.com>
26048 * XplatUIX11.cs: Somehow we get SETCURSORS for bad windows
26050 * UpDownBase.cs: Don't CreateGraphics manually, use a
26051 Refresh. Ideally we would invalidate the correct areas here.
26053 2006-03-31 Peter Dennis Bartok <pbartok@novell.com>
26056 - We now track the mapping state of windows. If a window (or
26057 one of it's parents) is not mapped we no longer permit
26058 WM_PAINT messages to be generated since we'd otherwise get
26059 lots of BadMatch X errors. Jackson did all the work figuring
26061 - Destroying the caret if the window it's contained in is
26062 destroyed. Can't use regular DestroyCaret method since it
26063 might fall into a drawing function (trying to remove the
26064 caret) and with that generate new BadMatch errors. Again,
26065 Jackson tracked this down.
26066 - Changed DestroyChildWindows to SendWMDestroyMessages, we now
26067 make sure we send the messages to all windows. (The old code
26068 would send the WM_DESTROY to the window, and then all child
26069 windows would be 'gone' because the WM_DESTROY handle lookup
26070 would no longer find the destroyed window)
26071 * Hwnd.cs: Added Mapping property to track mapping state of hwnd
26072 * X11Structs.cs: Added WindowType enum for MapWindow/UnmapWindow
26074 2006-03-31 Jackson Harper <jackson@ximian.com>
26076 * ScrollableControl.cs: Dont recalc if we are not visible.
26078 2006-03-31 Mike Kestner <mkestner@novell.com>
26080 * Control.cs (SetVisibleCore): move the CreateControl call up ahead of
26081 the visibility branch.
26083 2006-03-31 Jackson Harper <jackson@ximian.com>
26085 * ScrollBar.cs: Cap values when incrementing/decrementing.
26087 2006-03-31 Mike Kestner <mkestner@novell.com>
26089 * MenuAPI.cs: setup menu.tracker for popup/context menus.
26090 * ToolTip.cs: guard against timer expirations with no active control.
26091 Not sure why it happened.
26093 2006-03-31 Mike Kestner <mkestner@novell.com>
26095 * ThemeWin32Classic.cs: add some horizontal padding space for the tip
26097 * ToolTip.cs: Position the tooltip based on where the cursor is at
26098 popup time, not at MouseEnter time. Add a Down state so that we don't
26099 redisplay tips without a Leave. Use faked XplatUI.GetCursorInfo for
26100 positioning offset. Lookup DisplaySize at positioning time, since it
26101 can theoretically change during invocation.
26102 * XplatUIWin32.cs: fake GetCursorInfo until pdb can do it properly.
26103 * XplatUIX11.cs: fake GetCursorInfo until pdb can do it properly.
26105 2006-03-31 Alexander Olk <alex.olk@googlemail.com>
26107 * ThemeWin32Classic.cs: Use CPDrawBorder3D to draw a GroupBox.
26108 Fixes behaviour when the Text property of the box is String.Empty
26110 2006-03-31 Peter Dennis Bartok <pbartok@novell.com>
26112 * XplatUIX11.cs: Only send mouseleave for our client windows, not
26113 for the whole window (otherwise we get WM_MOUSE_LEAVE twice for
26116 2006-03-31 Alexander Olk <alex.olk@googlemail.com>
26118 * FileDialog.cs: Visual enhancement for the popup buttons in
26121 2006-03-31 Alexander Olk <alex.olk@googlemail.com>
26123 * ColorDialog.cs, FontDialog.cs: Make use of the updated 3D border
26126 2006-03-30 Alexander Olk <alex.olk@googlemail.com>
26128 * ThemeWin32Classic.cs: Updated MainMenu drawing of selected and
26129 highlighted menu items to match ms
26131 2006-03-30 Peter Dennis Bartok <pbartok@novell.com>
26133 * XplatUIX11.cs: Don't set a clip rectangle unless it's not empty
26135 2006-03-30 Mike Kestner <mkestner@novell.com>
26137 * Menu.cs (SelectedItem): use new MenuItem.Selected prop.
26138 * MenuAPI.cs: use new MenuItem.Selected prop. redraw MainMenu when we
26139 go active to account for HotLight to Selected transition.
26140 * MenuItem.cs: add internal Selected prop. Fill out the Status
26141 property by calculating it from item info. Add HotLight,
26142 NoAccelerator, Checked, Grayed, and Disabled flags where appropriate.
26144 2006-03-30 Mike Kestner <mkestner@novell.com>
26146 * MenuItem.cs: only emit DrawItem and MeasureItem for OwnerDraw.
26148 2006-03-29 Jackson Harper <jackson@ximian.com>
26150 * Form.cs: Implement TODO.
26152 2006-03-29 Peter Dennis Bartok <pbartok@novell.com>
26154 * PrintPreviewDialog.cs: Implemented missing methods and events; still
26155 missing proper dialog setup in the constructor
26157 2006-03-29 Peter Dennis Bartok <pbartok@novell.com>
26159 * ProgressBar.cs: Added 2.0 Style property that apps seem to use
26161 - Implemented CheckForIllegalCrossThreadCalls, removed TODO
26162 - Fixed ResetBindings and removed TODO
26163 - Added check for cross-thread calls to get_Handle()
26164 - Added Marshaller attribute for set_Font to satisfy class status
26165 * FontDialog.cs: Removed TODOs that seemed implemented
26166 * UpDownBase.cs: Removed unneeded TODO and Fixme
26167 * MessageBox.cs: Implemented support for Default button and removed TODO
26168 * FileDialog.cs: Removed obsolete TODO
26169 * DomainUpDown.cs: Removed obsolete TODO
26170 * ButtonBase.cs: Removed obsolete TODO
26171 * XplatUIWin32.cs: Removed obsolete TODO
26173 - Removed obsolete TODO
26174 - Calling CheckAcceptButton when the acceptbutton is changed to allow
26175 internal status updates
26176 - Making sure the active control is selected when the control is created
26177 * CurrencyManager.cs: Removed obsolete TODO
26179 2006-03-29 Mike Kestner <mkestner@novell.com>
26181 * *.cs: fix remaining corcompare issues for 1.1 API with the exception
26182 of PrintPreviewDialog and RichTextBox.
26184 2006-03-29 Alexander Olk <alex.olk@googlemail.com>
26186 * Theme.cs: Added a little helper to SystemResPool to get the Dark,
26187 DarkDark, Light and LightLight colors for a specific color
26188 * ThemeWin32Classic.cs:
26189 - Use Button drawing code to draw RadioButtons and CheckBoxes with
26190 Appearance = Button
26191 - Make use of the new ResPool helper CPColor
26192 - Draw ProgressBar and StatusBar with correct 3D borders
26194 2006-03-29 Alexander Olk <alex.olk@googlemail.com>
26196 * ColorDialog.cs: Return selected color. Fixes bug #77940.
26198 2006-03-28 Mike Kestner <mkestner@novell.com>
26200 * ListView.cs: fix Icon layout to plan for scrollbar widths when
26201 calculating col/row counts.
26203 2006-03-28 Mike Kestner <mkestner@novell.com>
26209 switch to explicit interface method implementation for some methods
26210 corcompare identifies as inconsistent with MS.
26212 2006-03-28 Mike Kestner <mkestner@novell.com>
26216 add a few missing methods from the class status output.
26218 2006-03-28 Alexander Olk <alex.olk@googlemail.com>
26220 * ControlPaint.cs: Fixed ControlPaint.Light method. Results are now
26223 2006-03-28 Mike Kestner <mkestner@novell.com>
26225 * MenuAPI.cs: Deactivate on MainMenu item click. Fixes #77917.
26227 2006-03-27 Mike Kestner <mkestner@novell.com>
26229 * ThemeWin32Classic.cs: Switch flat toolbars to use RaisedInner for
26230 the Hilight state to adapt to Alex's CPDrawBorder3D changes.
26232 2006-03-27 Alexander Olk <alex.olk@googlemail.com>
26234 * ThemeWin32Classic.cs: Rewrote Button drawing code to match ms.
26236 2006-03-25 Alexander Olk <alex.olk@googlemail.com>
26238 * ThemeWin32Classic.cs:
26239 - GroupBox: Inserted a little gap between the text and the lines
26241 - Made the code in CPDrawBorder3D more readable
26242 - Corrected the drawing location of the up and down arrows in
26245 2006-03-25 Alexander Olk <alex.olk@googlemail.com>
26247 * ControlPaint.cs: Corrected line widths in DrawBorder for
26248 ButtonBorderStyle Inset and Outset
26250 2006-03-25 Alexander Olk <alex.olk@googlemail.com>
26252 * ThemeWin32Classic.cs:
26253 - Rewrote the totally broken CPDrawBorder3D method. That was
26254 one of the main problems for the terrific ThemeWin32Classic
26256 - Updated and corrected Button drawing
26257 - Correct the dimensions of the SizeGrip to match ms ones
26258 - Removed a small drawing glitch in DrawComboBoxEditDecorations
26259 * XplatUIX11.cs: Draw borders with BorderStyle = Fixed3D with
26260 Border3DStyle.Sunken to match ms.
26262 2006-03-25 Alexander Olk <alex.olk@googlemail.com>
26264 * ThemeWin32Classic.cs: First small part of the "de-uglify
26265 ThemeWin32Classic" effort, SizeGrip
26267 2006-03-24 Jackson Harper <jackson@ximian.com>
26269 * XplatUIX11.cs: Give a max idle time of one second, this matches
26270 MS and forces an Idle event every second when there are no other
26271 events in the queue.
26273 2006-03-24 Mike Kestner <mkestner@novell.com>
26275 * ListView.cs: Handle (Large|Small)ImageList == null more robustly.
26276 * ListView.Item.cs: fix layout issues with null image lists and images
26277 smaller than checkbox size.
26278 * ThemeWin32Classic.cs: Draw a 12 pixel line in ListView LargeIcon
26279 mode like MS does. It's weird, but consistent. ;-)
26282 2006-03-24 Mike Kestner <mkestner@novell.com>
26284 * ListView.cs: Scroll wheel support for the item control. Fixes
26287 2006-03-23 Jackson Harper <jackson@ximian.com>
26289 * ScrollableControl.cs: Special case negative sized areas, not
26291 * MonthCalendar.cs: Save the rect of the clicked date so we can
26292 use it for invalidation.
26293 - Try to cut down on the number of invalidates
26294 - Invalidate the rect the mouse is over and was over when moving
26295 the mouse, so we get the focus box following the cursor.
26297 2006-03-23 Mike Kestner <mkestner@novell.com>
26299 * ThemeWin32Classic.cs: fix FullRowSelect selection background and
26300 focus rectangle drawing. Fixes #77835.
26302 2006-03-23 Mike Kestner <mkestner@novell.com>
26304 * XplatUIX11.cs: rework the fix for #77828 by changing the order of
26305 the if and else if and reverting back to the original == check on the
26308 2006-03-23 Alexander Olk <alex.olk@googlemail.com>
26310 * FontDialog.cs: Update the example panel if the selected index of
26311 the fontListBox changes.
26313 2006-03-23 Alexander Olk <alex.olk@googlemail.com>
26315 * FileDialog.cs: Make FileDialog remember which directory it was in
26316 last in the same execution.
26318 2006-03-22 Mike Kestner <mkestner@novell.com>
26320 * FileDialog.cs: make the DropDownMenu on the toolbar display
26321 RadioChecks since they are mutually exclusive and that's what MS does.
26323 2006-03-22 Mike Kestner <mkestner@novell.com>
26325 * Theme.cs: add Color param to CPDrawMenuGlyph.
26326 * ThemeWin32Classic.cs: do color specific menu glyph rendering so that
26327 checks and radio marks and arrows are visible on highlighted items.
26328 * ControlPaint.cs: update to use new Theme signature.
26330 2006-03-22 Mike Kestner <mkestner@novell.com>
26332 * MenuAPI.cs: only process Enter and arrow keypresses if the tracker
26333 is active. Fixes #77870.
26335 2006-03-22 Alexander Olk <alex.olk@googlemail.com>
26337 * FileDialog.cs: Corrected TabIndex order and set fileNameComboBox
26338 to be focused/selected after startup
26340 2006-03-22 Alexander Olk <alex.olk@googlemail.com>
26343 - Corrected behaviour of Color, AllowFullOpen, FullOpen,
26344 CustomColors and ShowHelp properties
26345 - Some internal rewrites to get better results when using the
26348 2006-03-22 Mike Kestner <mkestner@novell.com>
26350 * ListView.cs: hook into Peter's new ResetMouseHover capability to fix
26351 HoverSelection. Fixes #77836.
26353 2006-03-22 Mike Kestner <mkestner@novell.com>
26355 * FileDialog.cs: bugfixes for the toolbar. Use PushButtons instead of
26356 ToggleButtons. (De)Sensitize the Back button around a stack count of
26357 1, not 0. Update ButtonSize based on a pixel count of the win32
26358 control. Adjust the toolbar size/location for new button size.
26360 2006-03-22 Jackson Harper <jackson@ximian.com>
26362 * XplatUIX11.cs: Don't handle configurenotifys if PostQuitState is
26364 * ScrollBar.cs: When doing increments and decrements we need to
26365 set the Value property so that ValueChanged gets raised. A
26366 possible optimization here would be to make an internal SetValue
26367 that doesn't invalidate immediately.
26368 * ToolTip.cs: Tooltips get added to their container (when
26369 supplied) so they get disposed when the container is disposed.
26370 - Don't create tooltips for String.Empty. This prevents all these
26371 little 2-3 pixel windows from showing up when running nunit-gui
26372 and driving me mad.
26373 * Form.cs: Don't set topmost when setting the owner if the handles
26374 haven't been created yet. The topmost set will happen when the
26375 handles are created.
26377 2006-03-22 Peter Dennis Bartok <pbartok@novell.com>
26380 - DeriveWindowStyles: Fixed typo in borderstyle generation (#77828)
26381 - SetVisible: Sending WINDOWPOSCHANGED for all controls when made
26382 visible (to allow them to recalculate their sizes)
26384 2006-03-21 Mike Kestner <mkestner@novell.com>
26386 * ThemeWin32Classic.cs: major refactoring of the ToolBar rendering
26387 methods. Removed a ton of redundant code. Still not really happy with
26388 the border rendering, but I think that's mainly because of the
26389 ControlDarkDark being black instead of a dark grey. Depending on how
26390 close we want to be, we might want to revisit those color choices.
26391 Among the new features added during the refactor were DropDownArrow
26392 pressed rendering, Disabled image rendering. Proper flat appearance
26393 boundary rendering. Removed the Divider and Wrapping dividers since I
26394 can't figure out any combination of themes and conditions to make the
26395 MS control draw a horizontal line on a toolbar despite what the
26396 Divider property docs indicate.
26397 * ToolBar.cs: rewrite the layout engine. Fixes numerous flicker
26398 conditions and incorrect layout. Updated to coding standard.
26399 * ToolBarButton.cs: refactored layout and positioning code from
26400 ToolBar to here. Invalidate wherever possible instead of forcing
26401 redraws of the whole toolbar.
26402 (Known remaining issues: explicit ButtonSize smaller than provided
26405 2006-03-21 Mike Kestner <mkestner@novell.com>
26407 * ContextMenu.cs (Show): use the position parameter instead of just
26408 showing at the MousePosition.
26410 2006-03-21 Jackson Harper <jackson@ximian.com>
26412 * TabControl.cs: Remove the call to ProcessKeyEventArgs and let
26413 control handle this.
26414 * TreeNodeCollection.cs: If we are clearing the root node we need
26415 to reset top_node so calcs can still happen.
26416 * ThemeWin32Classic.cs: This is a Flags so we need to check
26419 2006-03-21 Jackson Harper <jackson@ximian.com>
26421 * DataGrid.cs: Create columns when the binding context has been
26423 * X11Structs.cs: Keysyms are uints.
26424 - Add size to fix build.
26426 2006-03-21 Peter Dennis Bartok <pbartok@novell.com>
26428 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
26430 - Added ResetMouseHover method to allow controls to retrigger
26431 hovering if they need it more than once
26432 - Implemented MouseHoverTime and MouseHoverSize properties
26433 * Timer.cs: Start() must reset the interval
26434 * SystemInformation.cs: Added 2.0 MouseHoverTime and MouseHoverSize
26437 2006-03-21 Jackson Harper <jackson@ximian.com>
26439 * X11Keyboard.cs: improved layout detection. Move the nonchar
26440 tables into this file.
26441 * KeyboardLayouts.cs: Move the tables into resource files.
26443 2006-03-21 Mike Kestner <mkestner@novell.com>
26445 * ListView.cs: use OnItemActivated to raise events. Fixes #77834.
26447 2006-03-21 Alexander Olk <alex.olk@googlemail.com>
26449 * Mime.cs: Various speed optimizations. Looking up mime types
26450 is now 2 times faster than before
26452 2006-03-17 Peter Dennis Bartok <pbartok@novell.com>
26454 * CreateParams.cs: Added internal menu field
26456 - Switched call order for UpdateBounds; now we always call
26457 the one that also takes ClientSize, and we're calculating the
26458 client size via driver method in the others. The previous
26459 method of tracking client size by difference wasn't working
26460 for forms where even the starting client size wouldn't match
26461 the overall form size (due to borders) (Part of fix for #77729)
26462 - CreateParams(): Do not use parent.Handle unless the handle is
26463 already created. Causes havoc with Nexxia and throws off our
26464 creation of controls
26466 - Created new PerformNCCalc method to trigger WM_NCCALCSIZE message
26467 - Switched handling of ConfigureNotify over to new PerformNCCalc
26468 method (consolidates code)
26469 - Changed RequestNCRecalc to use new PerformNCCalc method
26470 - Added calls to RequestNCRecalc when menus and borders are changed
26471 to allow app to set NC size. (Part of fix for #77729) This matches
26472 when MS send a WM_NCRECALC on Win32 windows.
26473 - Now sending WM_WINDOWPOSCHANGED when toplevel for is made visible
26474 (Part of fix for #77729). This matches what MS does, they also
26475 send that message when the form is made visible.
26476 - XException.GetMessage: Improved usability of X errors by including
26477 a translation of the window into Hwnd and Control class
26478 - Improved debug info for window creation, reparenting and destruction
26479 - Created helper method WindowIsMapped() [Currently not used]
26480 * XplatUIWin32.cs: Added ToString() debug helper to RECT structure
26482 - CreateParams: Now setting our menu on the new internal menu field
26483 - SetClientSizeCore: Now passing cp.menu instead of ActiveMenu to
26484 avoid calculating the same property twice
26486 - Improved usability of ToString() for debugging purposes
26487 - GetWindowRectangle(): Now uses proper CalcMenuBarSize method to
26488 determine the height of the menu, instead of just the font. This
26489 required to also create a graphics context and to keep a bmp
26490 around (for performance reasons)
26492 2006-03-17 Peter Dennis Bartok <pbartok@novell.com>
26494 * MenuAPI.cs: Added OnMouseUp method
26496 - Now remembering the requested client size, avoids size errors
26497 - WndProc: Now handling WM_xBUTTONUP and passing it to MenuTracker
26498 instead of base if the menu is active. This is required due to
26499 control now capturing and releasing on down/up and it would
26500 prematurely release our menu capture
26502 2006-03-17 Jackson Harper <jackson@ximian.com>
26504 * KeyboardLayouts.cs: Add the czech layouts.
26506 2006-03-16 Jackson Harper <jackson@ximian.com>
26508 * Control.cs: Use the viewport space when sizing not the controls
26509 client size, so things like ScrollableControl that effect the
26510 viewport size (when scrollbars are added) are computed correctly.
26511 * BindingContext.cs: Cleanup to use the DataSourceEntrys instead
26513 - Handle creating BindingManagers for null data sources.
26514 * DataGrid.cs: Bind the cached_currencymgr_events to the real data
26515 source, otherwise when rows are added they are added to the 'fake'
26516 datasource and we will crash when trying to set the position in
26518 - Use Implicit scrollbars on the datagrid so they arent
26521 2006-03-16 Jackson Harper <jackson@ximian.com>
26524 * InternalWindowManager.cs:
26525 * MdiWindowManager.cs:
26526 * X11Keyboard.cs: I really want Mike to love me again (fix
26527 compiler warnings).
26529 2006-03-16 Peter Dennis Bartok <pbartok@novell.com>
26532 - OnMouseDown: Switch to editing mode when clicking on the cell
26533 even if we're clicking on the cell that's currently
26535 - ProcessGridKey: Left/Right now wrap like MS.Net does
26536 - ProcessGridKey: Tab now knows to add a new row when tab is
26537 pressed in the cell of the last column of the
26539 - ProcessGridKey: Enter now adds another row if pressed in the last
26540 row and selectes the new row, same column cell
26541 - ProcessGridKey: Home/End navigate columns, not rows, like
26542 originally implemented
26543 - Broke ProcessKeyPreview code out into an extra Internal method
26544 so it can be called from the edit code
26545 * DataGridTextBox.cs (ProcessKeyMessage):
26546 - Switched to accept Tab keypresses
26547 - Added F2 handling to allow jumping to the end of the edited cell
26548 - Added logic to allow moving caret left/right inside edited cell
26549 and making the edited cell jump when the caret hits cell borders
26550 - Tab and Enter are now passed to the datagrid after being handled
26552 - Removed capture code now that Control handles it
26553 - set_SelectionStart now ensures caret is visible
26555 2006-03-16 Jackson Harper <jackson@ximian.com>
26557 * TrackBar.cs: Debackwards the increment/decrement for handling
26558 mouse clicks on the bar with vertical trackbars.
26559 * ThemeWin32Classic.cs: Draw vertical trackbars with 0 at the
26560 bottom to match MS.
26562 2006-03-16 Mike Kestner <mkestner@novell.com>
26564 * ListView.cs: make shift/ctrl keyboard and mouse selection
26565 consistent with the MS control. Fix a bug in
26566 SelectedListViewItemCollection.Clear that was pissing me off for the
26567 better part of a day because the collection was being altered
26568 underneath us as we walked the list.
26570 2006-03-16 Peter Dennis Bartok <pbartok@novell.com>
26572 * Control.cs: Not sure how we could miss this so long, but it seems
26573 that MS.Net has Capture set all the way from before calling
26574 OnMouseDown through sending the mouse events until after
26575 OnMouseUp. This will fix DataGrid's selection being set to end
26576 at the location of the MouseUp.
26578 2006-03-15 Jackson Harper <jackson@ximian.com>
26580 * BindingContext.cs: Check the binding after its added so that it
26581 can initialize the binding managers and hookup to events.
26582 * Binding.cs: Data members seem to sometimes include rows/cols in
26583 the format Row.Column we now take this into account.
26584 - Hookup to the position changed event so we can update the
26585 control when the position has changed in the data set.
26586 * CurrencyManager.cs: Take into account the row/col naming
26587 convention when creating dataset tables.
26588 * BindingContext.cs: Using a newer better way of storing
26589 datasource/datamember pairs. Hopefully this better matches MS for
26590 looking up binding managers.
26593 2006-03-15 Jackson Harper <jackson@ximian.com>
26595 * BindingContext.cs: The currency manager needs the data member
26596 name, if the member is a data set we use the name to find the
26598 * CurrencyManager.cs: When creating the list prefer an IList over
26600 - Attempt to create a DataTable from a DataSet (TODO: might need
26601 some better error checking here, although MS doesn't seem to have much)
26602 - If we have a DataTable create a view and use it as our list.
26604 2006-03-15 Mike Kestner <mkestner@novell.com>
26606 * ListView.cs: keep a matrix of the icon mode layout to facilitate
26607 keyboard navigation. Support Up/Down/Left/Right selection correctly
26608 for all 4 View modes.
26609 * ListViewItem.cs: add internal row/col fields for icon layouts.
26611 2006-03-15 Jackson Harper <jackson@ximian.com>
26613 * TabControl.cs: Redraw the tabs when we resize so their newly
26614 calculated sizes are drawn on screen.
26615 * X11Keyboard.cs: Begginnings of XIM support. We also now support
26616 composite characters.
26617 * XplatUIX11.cs: Keyboard driver needs to know about focus changes
26618 - filter events so that composite characters can be created
26620 * X11Structs.cs: Add XIMProperties enum.
26622 2006-03-14 Peter Dennis Bartok <pbartok@novell.com>
26624 * Control.cs (BringToFront, SendToBack): Don't use window or handle
26625 unless it's created
26627 2006-03-14 Peter Dennis Bartok <pbartok@novell.com>
26629 * Control.cs (PerformLayout): We don't need to consider visiblity
26630 for anchoring, only for docking. This fixes 'whacky' alignment
26631 in listbox and other controls that use implicit scrollbars after
26632 the previous PerformLayout patch
26633 * ListBox.cs: Switched to use implicit scrollbars
26635 2006-03-14 Mike Kestner <mkestner@novell.com>
26639 - chain up the "new event" overrides to base and use
26640 OnEvent to raise them. Part of fix for bug #76509.
26642 2006-03-14 Alexander Olk <alex.olk@googlemail.com>
26644 * FileDialog.cs: Do not select an item in the parent directory
26647 2006-03-14 Peter Dennis Bartok <pbartok@novell.com>
26649 * Control.cs (PerformLayout): It would seem that we considered
26650 invisible windows for our layout. Not quite the right thing
26651 to do. Now we don't any longer, thereby fixing bug #76889.
26653 2006-03-14 Peter Dennis Bartok <pbartok@novell.com>
26655 * Control.cs (CanFocus): I goofed. A control can have focus
26656 even though it's not selectable. Made it match MS docs.
26658 2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
26660 * ControlPaint.cs (DrawBorder3D): DrawBorder3D does not fill the
26661 center by default (fixes #76895)
26662 * ThemeWin32Classic.cs, ThemeNice.cs, ThemeClearlooks.cs: Replaced
26663 all uses of Border3DSides.All with the explicit ORd together
26664 Left|Right|Top|Bottom because I assume that nobody was aware
26665 that All also implies a center fill. Most places I checked had
26666 a fill right above.
26667 * ProgressBarStyle.cs: Added
26669 2006-03-13 Mike Kestner <mkestner@novell.com>
26671 * ListView.cs: fix breakage in drag shadow header positioning
26672 from Peter's csc compilation fix.
26674 2006-03-13 Mike Kestner <mkestner@novell.com>
26676 * ListView.cs: fix NRE produced by backspacing twice in a focused
26679 2006-03-13 Mike Kestner <mkestner@novell.com>
26681 * ListView.cs: proxy Key(Down|Up) from ItemControl to ListView.
26683 2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
26685 * Hwnd.cs: Added fixed_size field to track windows whose size cannot
26687 * XplatUIX11.cs: Now setting fixed_size on hwnd and if set, re-setting
26688 the allowed size before making programmatic size changes
26690 2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
26692 * XplatUIX11.cs: Don't call XSetWMNormalHints if no flags are
26693 set, metacity is broken and will still use the emty sizes in
26694 the struct. (Fix for #77089)
26696 2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
26698 * XplatUIStructs.cs: Split WindowStyles into WindowStyles and
26699 WindowExStyles and marked both enums as Flags
26700 * Form.cs, ComboBox.cs, ToolTip.cs, Control.cs, PropertyGridView.cs,
26701 NotifyIcon.cs, MenuAPI.cs, XplatUIOSX.cs, MonthCalendar.cs: Updated
26702 to match WindowStyles split
26704 - SetWMStyles: Added cehck to not apply WM attributes to Child windows
26705 - Updated to match WindowStyles split
26707 - Fixed FosterParent creation, was using ExStyle on the Style field
26708 (This should help with Popup focus issues)
26709 - Updated to match WindowStyles split
26711 2006-03-13 Jackson Harper <jackson@ximian.com>
26713 * MdiWindowManager.cs: Use the system menu height. Fixes some
26714 strange sizing issues.
26716 2006-03-12 Peter Dennis Bartok <pbartok@novell.com>
26718 * RichTextBox.cs: Need to scroll to caret after text is inserted (#77672)
26720 - Scroll to caret after inserting text (#77672)
26721 - Make scroll range one pixel higher, fixes off-by-one error (and
26722 makes underlines visible on the last line)
26724 2006-03-12 Peter Dennis Bartok <pbartok@novell.com>
26726 * XplatUIX11.cs: Added call to new Keyboard.ResetKeyState to prevent
26727 the keyboard state from being stuck with keys in 'pressed' state when
26728 focus is switched away via keyboard
26729 * X11Keyboard.cs: Added new ResetKeyState method to allow drivers to
26730 reset the keyboard if no X11 KeyUp events are expected to come
26731 * X11Structs.cs: Switched type of Visible to bool to match driver
26733 2006-03-12 Peter Dennis Bartok <pbartok@novell.com>
26736 - Switched caret to be just 1 pixel wide, matches MS and looks less
26738 - Moved caret display 1 pixel down from the top of the control
26740 - InsertCharAtCharet: Update the selection start if moving the caret
26741 (fixes bug #77696; based on patch suggested by kazuki@panicode.com)
26742 - No longer always creating the caret when the caret methods are
26743 called. Only the actual ShowCaret/HideCaret will do that now
26744 - Only setting caret visible if the owner control has focus
26745 - UpdateView: Added invalidation-shortcut logic for center and right
26746 aligned text. Previously we'd update all according to the left
26747 logic which caused drawing errors. Also fixed height of invalidated
26748 areas, now properly invalidating the whole area (was off-by-one)
26749 - owner_HandleCreated: Always generate the document when the
26750 handle is created; this ensures that
26752 - Fixed situation where caret would disappear under the right
26753 window border, also improved scrolling behaviour on left-
26755 - Fixed right-aligned textboxes to have a border to the
26756 right instead of the caret being under the right border
26758 - Switched from 'nested' to simple visible/not visible tracking
26759 for caret (part of fix for #77671)
26760 - No longer passing through translated FocusIn/FocusOut messages
26761 since we were notifying too often and the wrong windows. Instead
26762 we just notify our focussed window of receiving or loosing focus
26763 * XplatUIWin32.cs: Switched from 'nested' show/hide
26764 counting for caret to simple visible yes/no behaviour (part of
26767 2006-03-11 Alexander Olk <alex.olk@googlemail.com>
26769 * Mime.cs: Remove debug code...
26771 2006-03-11 Alexander Olk <alex.olk@googlemail.com>
26773 * MimeGenerated.cs: Removed
26774 * Mime.cs: Mime now reads the mime data (magic, globs, aliases
26775 and subclasses) from /usr/(local/)share/mime and
26776 $HOME/.local/share/mime.
26778 2006-03-10 Jackson Harper <jackson@ximian.com>
26780 * MdiWindowManager.cs: Recalc the NC area when a window is
26781 maximized/restored so that the menu area is drawn on forms that
26784 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
26786 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
26787 XplatUIX11.cs: Added RequestNCRecalc method to driver to allow
26788 us to force a WM_NCCALCRESIZE message being sent. This is needed
26789 for MDI maximizing.
26791 2006-03-10 Jackson Harper <jackson@ximian.com>
26793 * Form.cs: We need to use the ActiveMenu when calculating menu
26795 - Fix nullref when the window manager hasn't been created yet.
26796 * Control.cs: Fix nullref when we try to bring a control to the
26797 front that has no parent.
26798 * MdiWindowManager.cs: Use the MaximizedMenu for calculating
26800 - Add a dummy item to the maximized menu so it always has the
26801 correct height. Otherwise when there are no menus we don't get our
26805 2006-03-10 Jackson Harper <jackson@ximian.com>
26807 * MenuAPI.cs: Make this available elsewhere. I need it in some MDI
26809 * Form.cs: Make the window_state internal so the window managers
26811 - When an MDI child is maximized let its window manager create the
26812 main menu (so it can add its icon).
26813 - Notify the window managers of state changes
26814 - Let the window manager paint its buttons and handle button
26815 clicks on the menu when it is maximized.
26816 * InternalWindowManager.cs: Move the prev_bounds into the mdi
26817 window manager, since tool windows don't use it, only mdi windows.
26818 - Tell the main form that we don't want it to handle NCPAINT
26819 itself to avoid extra painting.
26820 - Handle clicks on a maximized windows menu.
26821 - Handle window state changes
26822 - Handle minimize/maximize clicks correctly by setting the window state.
26823 * MdiWindowManager.cs: Add an icon menu that (the menu you get
26824 when clicking on the forms icon).
26825 - New method to create a forms maximized menu. This is its normal
26827 - Handle window state changes.
26828 - Handle sizing of maximized windows. Maximized windows are just
26829 drawn bigger then the parent visible area. All controls are still
26830 there, they are just outside the visible area (this matches windows).
26831 * MdiClient.cs: No scrollbars when a child window is maximized.
26832 - Let the children windows figure out how big they should be when
26833 sizing maximized windows.
26834 - Implement a version of ArrangeIconicWindows somewhat similar to
26835 Windows version. There are some little differences, but I don't
26836 think any app will rely on the layout of minimized mdi windows.
26838 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
26840 * Padding.cs: Several fixes to allow compiling with csc 2.0
26842 2006-03-09 Jackson Harper <jackson@ximian.com>
26845 * MenuItem.cs: Cheap hack so we can add items to the list without
26846 the events being raised. This allows adding mdi items during
26847 drawing. TODO: Should probably find a better time to add the items.
26849 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
26851 * ThemeWin32Classic.cs:
26852 - CheckBox_DrawText: Added logic to not wrap if not enough space
26853 is available (Fix for bug #77727)
26854 - RadioButton_DrawText: Added logic not to wrap if not enough
26855 space is available (Fix for bug #77727). Also removed some
26856 duplicate code, DrawString always drawing the regular text
26857 before hitting the if statement.
26859 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
26861 * XplatUIX11.cs: Handle an unmapped window state in SetWindowState
26863 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
26865 * PictureBox.cs: Implemented ISupportInitialize interface (fixes #77726)
26866 * ContainerControl.cs: Partial implementation of some 2.0 scaling
26867 methods. Moved the new 2.0 properties into alphabetical order with
26868 other properties and added MonoTODO tags
26870 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
26872 * AutoScaleMode.cs: Added. Fix build.
26874 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
26876 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
26877 XplatUIOSX.cs: Removed HWnd argument from CalcuateClientRect, not used
26878 and was requiring premature handle creation for calls from above
26879 * Form.cs, Control.cs: Removed handle arguments from calls to
26880 CalculateClientRect()
26882 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
26884 * ListView.cs (HeaderMouseMove): Fix csc compilation.
26885 drag_column.column_rect is MarshalByRef and can't be used that way
26887 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
26889 * AxHost.cs: Added deserialization constructor for
26890 AxHost+State (fixes 77743)
26892 2006-03-09 Mike Kestner <mkestner@novell.com>
26895 - Added column drag reordering for details view.
26896 - fixed behavior when mouse is dragged off column and
26897 AllowColumnReorder is false.
26898 * ColumnHeader.cs: clone the format too in Clone.
26899 * Theme.cs: add DrawListViewHeaderDragDetails method.
26900 * ThemeWin32Classic.cs:
26901 - impl new method for drawing drag column shadows and targets.
26902 - support column offset for details mode in DrawListViewItem.
26904 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
26906 * TextControl.cs: Reset the char_count when the document is cleared
26907 (Fixes bug reported on mono-winforms mailing list)
26909 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
26911 * TextBoxBase.cs: Honor the Handled state of KeyPress events. Instead
26912 of calling base we simply process the key ourselves, since both
26913 DefWindowProc and the handled method would set m.Result.
26916 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
26918 * Form.cs(ScaleCore): No longer calling base.ScaleCore since that
26919 method also moves the window; instead implemented a copy of
26920 Control.ScaleCore (Part of fix for #77456)
26922 - Created new CreateGraphicsInternal method to allow providing
26923 a graphics context when no handle is created without triggering
26924 handle creation. (Part of fix for #77456)
26925 - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
26927 - Switched Constructor to require TextBoxBase instead of Control (to
26928 allow uncast access to CreateGraphicsInternal)
26929 - Safeguarded use of owner.Handle property. No longer accessing it
26930 unless the handle is already created.
26931 - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
26932 - Now triggering a recalc when owning control becomes visible
26933 * TextBox.cs, RichTextBox.cs: Switched to use new internal
26934 TextBoxBase.CreateGraphicsInternal() method to avoid triggering
26935 premature handle creation (Part of fix for #77456)
26937 - We now only destroy our double-buffering buffers when the
26938 control is resized or disposed, but not when visibility
26939 changes. (The code even re-created them twice every time)
26940 - Now requiring a redraw of the buffer on visibility changes
26941 (fixes bug 77654 part 2)
26942 - Not passing OnParentVisibleChanged up unless the control
26944 - CanFocus: Fixed to match MS documentation
26945 - Focus: Fixed to return actual focus state and to check if
26946 setting focus is legal before setting it
26948 2006-03-08 Peter Dennis Bartok <pbartok@novell.com>
26950 * ThemeWin32Classic.cs: TabPages cannot have focus. Determine
26951 when to draw focus rectangle by looking at parent focus and
26952 selected state instead. This fixes TabPages on Linux sometimes
26953 having none or multiple focus rectangles.
26954 * XplatUIX11.cs (SetFocus):
26955 - Don't set the focus if the same window already has focus
26956 - Use SendMessage instead of PostMessage (like it's Win32
26957 equivalent) and send the WM_SETFOCUS before the WM_KILLFOCUS
26958 to match MS behaviour
26959 * TabControl.cs(SelectedIndex): Don't set Focus on TabPage, TabPages
26960 are not selectable.
26962 2006-03-07 Jackson Harper <jackson@ximian.com>
26964 * PictureBox.cs: Revert line I accidently committed last week.
26966 2006-03-07 Peter Dennis Bartok <pbartok@novell.com>
26969 - Added new IsRecreating and ParentIsRecreating properties to
26970 allow testing if RecreateHandle has been called on ourselves
26971 or one of our parents
26972 - WndProc(WM_DESTROY): If our control handle is being recreated
26973 we immediately need to create the handle when receiving the
26974 destroy, that way our child windows find a valid parent handle
26975 when they themselves are being recreated upon WM_DESTROY receipt
26976 (fix for bug #77654 part 1)
26978 - DestroyWindow: WM_DESTROY must be sent to our own window before
26979 notifying any child windows. MS documents that child windows
26980 are still valid when WM_DESTROY is received. (Control now relies on
26982 - Added some fine-grain debug options
26984 2006-03-06 Jackson Harper <jackson@ximian.com>
26986 * MdiClient.cs: Redid scrolling logic a bit to create a virtual
26987 box and base calculations off this.
26988 * MdiChildContext.cs:
26989 * MdiWindowManager.cs: Don't need to ensure scrollbars here
26992 2006-03-06 Peter Dennis Bartok <pbartok@novell.com>
26994 * Splitter.cs: In situations where the affected control is added
26995 to the parent's control list after the splitter, we would not
26996 populate affected. Now we try populating it on mousedown, if
26997 it's not already set, and force it to be re-set whenever our
27000 2006-03-03 Matt Hargett <matt@use.net>
27002 * Control.cs: implement Control.Padding
27003 * Padding.cs: -Padding.All returns -1 when constructing with the
27004 implicit default ctor
27005 -Padding.ToString() matches MS.NET
27006 * ContainerControl.cs: implement
27007 ContainerControl.AutoScaleDimensions
27008 * ListControl.cs: implement ListControl.FormattingEnabled
27009 * TextBox.cs: Implemented TextBox.UseSystemPasswordChar.
27011 * TabPage.cs: Implement UseVisualStyleBackColor.
27012 * PictureBox.cs: Implement PictureBox.InitialImage.
27014 2006-03-03 Mike Kestner <mkestner@novell.com>
27016 * ListView.cs: Refactor into HeaderControl and ItemControl. Fix new
27017 event declarations to proxy to base event.
27018 * ListViewItem.cs: update to use ItemControl.
27019 * Theme.cs: make DrawListViewHeader. s/DrawListView/DrawListViewItems.
27020 * ThemeWin32Classic.cs: update to new ListView theme API and fix
27021 column header label rendering for 0 width columns.
27023 2006-03-03 Peter Dennis Bartok <pbartok@novell.com>
27025 * Control.cs (ControlCollection.SetChildIndex): Avoid using a call
27026 that causes the control to be created. Fixes #77476.
27028 2006-03-02 Jackson Harper <jackson@ximian.com>
27030 * Hwnd.cs: Clear the nc pending when clearing the NC area, not the
27033 2006-03-02 Peter Dennis Bartok <pbartok@novell.com>
27035 * Control.cs: Implemented 2.0 feature where OnClick has MouseEventArgs
27036 passed in for the EventArgs (fixes #77690)
27038 2006-03-01 Jackson Harper <jackson@ximian.com>
27040 * ScrollBar.cs: Refresh afterbeing resized.
27042 2006-02-28 Mike Kestner <mkestner@novell.com>
27044 * MenuAPI.cs: Call PerformPopup internal method to emit Popup.
27045 Clean up a tracker compile warning.
27046 * MenuItem.cs: add internal PerformPopup method.
27049 2006-02-28 Peter Dennis Bartok <pbartok@novell.com>
27051 * TextBoxBase.cs (set_Text): Recalculate the document (causing an
27052 implicit expose) when the text is set to null
27054 2006-02-28 Peter Dennis Bartok <pbartok@novell.com>
27056 * RichTextBox.cs (FlushText): When newline is true, we always
27057 need to split the line, even if no text is on it and we may
27058 never eat newlines. (Fixes #77669)
27060 2006-02-28 Mike Kestner <mkestner@novell.com>
27062 * ListView.cs: Add UpdateSelection internal method. Remove SelectItem
27063 and set Selected instead.
27064 * ListViewItem.cs: Call owner.UpdateSelection to manipulate the
27067 2006-02-28 Peter Dennis Bartok <pbartok@novell.com>
27069 * ComboBox.cs: Allow setting SelectedIndex to -1. Fixes #77665
27071 2006-02-28 Alexander Olk <alex.olk@googlemail.com>
27074 - Got rid of the panel. All controls are now directly added to
27076 - It is now possible to set a font with the Font property
27077 - MinSize and MaxSize property do now what they should
27078 - ShowApply, ShowHelp, ShowColor, ShowEffects likewise
27079 - Searching and selecting a font with the font textbox works now,
27080 the same applies to the style and size textbox
27081 - Draw the correct 3D border in the example panel
27082 - Fixed a little mem leak (unused fonts didn't get disposed)
27083 - Many other internal updates/rewrites...
27086 2006-02-27 Peter Dennis Bartok <pbartok@novell.com>
27089 - InsertRTFFromStream: Added 'number of characters inserted' argument
27090 - set_SelectedRTF: Now using the number of characters to calculate
27091 the new location for the selection and cursor (x/y cannot be used
27092 due to potentially already wrapped text)
27094 2006-02-27 Peter Dennis Bartok <pbartok@novell.com>
27096 * TextControl.cs: Added property and implemented means to allow
27097 disabling recalculation of a document (can be used to speed up
27098 multiple inserts and is needed to make RTF inserts predictable, see
27100 * RichTextBox.cs: Using the new NoRecalc property of Document to
27101 keep x/y insert locations predictable. Also makes it faster inserting
27102 large chunks of RTF
27104 2006-02-27 Peter Dennis Bartok <pbartok@novell.com>
27106 * Control.cs: Separated special WM_SYSKEYUP keyboard handling. That way
27107 it's easier for a child control to handle the other messages without
27108 having to duplicate the special functionality
27110 - WndProc: Removed calling base handler for WM_KEYDOWN and added
27111 code to handle processing the key ourselves, in order to get
27112 access to the result of KeyEventArgs.Handled. We now only call
27113 ProcessKey if they key hasn't been handled already. Fixes #77526.
27114 - set_Text: If null or empty string is given, just clear the
27115 document. Fixes part of #77526
27117 2006-02-27 Jackson Harper <jackson@ximian.com>
27119 * SizeGrip.cs: Paint the background color before painting the grip
27120 so things look right.
27121 * MdiClient.cs: Add the sizegrip when both scrollbars are used.
27123 2006-02-27 Mike Kestner <mkestner@novell.com>
27126 - Restructure layout and invalidation model to remove a ton of
27127 flicker from the control and speed up performance in general.
27128 - Add manual column resize, flickers like crazy, but I already have
27129 some ideas on how I'll fix that. (#76822)
27130 - Merge the three Icon-based views into a single layout method.
27131 - Move item selection interaction logic from the item since
27132 interaction with the collections is more appropriate to the view.
27133 - Deselection on non-item clicks.
27135 - Encapsulate most of the layout. Add some internal props to trigger
27136 layout. Move to a model where Items invalidate themselves instead
27137 of just invalidating the whole control every time something changes.
27138 - Invalidate on Text/Caption changes.
27139 - switch to an offset based layout model to avoid having to absolute
27140 position every element on item moves.
27141 - correct checkbox layout to conform to MS layout.
27142 * ThemeWin32Classic.cs:
27143 - refactor some column header drawing code.
27144 - fix string justification for column headers (#76821)
27145 - make SmallIcon labels top justified for compat with MS impl.
27146 * ThemeClearlooks.cs:
27147 - adjust to new ListViewItem internal checkbox bounds api.
27149 2006-02-27 Jackson Harper <jackson@ximian.com>
27151 * Control.cs: Change where implicit controls fall in the zorder.
27152 They are now on top of all children.
27153 - Synced AddImplicit code with Add
27154 - Removed unused enumerator.
27155 * SizeGrip.cs: Remove the TODO as its been TODONE.
27157 2006-02-26 Peter Dennis Bartok <pbartok@novell.com>
27159 * TextControl.cs(Insert): Combine the last lines unless the insertion
27160 string ends with \n\n, otherwise we leave one line too many (Fixes
27161 something I noticed with the testapp for #77526; the bug itself was
27162 already fixed in the previous checkin)
27164 2006-02-26 Peter Dennis Bartok <pbartok@novell.com>
27167 - SelectionColor and SelectionFont methods no longer set absolute
27168 styles. Instead, the keep font or color respectively (This
27169 resolves a long-standing FIXME in the code)
27170 - When flushing RTF text, the insert code now considers text trailing
27171 behind the insertion point (Fixes the bug where when replacing
27172 the selected text via SelectedRTF the remainder of the line behind
27173 the selection would stay on the first insertion line)
27175 - AppendText now updates the selection points after inserting text
27176 - AppendText now ensures that the last tag (sometimes 0-length) of
27177 the document is used for the style information (Fixes part of
27180 - Created new FontDefiniton class to allow describing partial style
27182 - StreamLine() now takes a lines argument, to allow it to decide
27183 whether an encountered zero-length tag is the last in the document
27184 (which must be kept to not loose the font/color contained in it,
27186 - Created Combine() and Split() methods for Marker structs, to
27187 support marker updates due to reformatted documents (soft line
27189 - Implemented Document.CaretTag setter
27190 - Fixed MoveCaret(CtrlEnd) handling, now moves to the last character
27191 of the last line (Not the cause, but also exposed by bug #77220)
27192 - Added LineTag argument to InsertString method, to allow callers
27193 to force a certain tag to be used (required to force use of the
27194 trailing zero-length tag of a document)
27195 - Now updating markers in Combine(), to avoid stale tag markers
27196 - Added some method descriptions to aid maintenance
27197 - Implemented new FormatText concept, allowing additive/subtractive
27198 formatting by only specifying the components that are to be
27199 changed. This was needed for resolving the RTB.SelectedColor/
27200 RTB.SelectedFont fixmes
27201 - Added Break() support method to allow breaking up linetags (used
27202 for partial formatting)
27203 - Added GenerateTextFormat() method. It is used for partial
27204 formatting and allows to generate a full font/color from given
27205 attributes and an existing tag.
27207 2006-02-26 Jackson Harper <jackson@ximian.com>
27209 * XplatUIX11.cs: Use the correct caption height.
27210 - Translate hittest coordinates to screen coords to match MS.
27211 * XplatUIWin32.cs: When we create MDI windows we need to reset
27212 some of the style flags, so we get a nice blank window, and can
27213 draw all the decorations ourselves.
27214 - Set a clipping rectangle on the non client paint event, the
27215 window manager drawing code needs one.
27216 * Form.cs: The window manager needs to know when the window state
27218 * Hwnd.cs: The window manager stuff now does a proper NCCALC so we
27219 don't need to factor in border and title sizes in these
27220 methods. TODO: Remove the args and fix the call points.
27221 * InternalWindowManager.cs: Handle NCHITTEST and NCCALCAREA
27223 - Let the driver set the cursors.
27224 - Improve active window handling
27225 - Correct sizes for title bars and buttons.
27226 - Match MS drawing better
27227 * MdiWindowManager.cs: We don't need to handle border style
27228 updates specially anymore.
27229 - Check for scrollbars when windows are done moving
27230 - Handle Active properly.
27231 * MimeIcon.cs: Don't crash when we can't load the GNOME stuff
27232 correctly. I am spewing the exception though, so we don't hide the
27235 2006-02-26 Pedro Martinez Julia <pedromj@gmail.com>
27237 * DataGridViewRowPostPaintEventArgs.cs,
27238 DataGridViewCellPaintingEventArgs.cs,
27239 DataGridViewRowCollection.cs,
27240 DataGridViewRowPrePaintEventArgs.cs,
27241 DataGridViewCell.cs: Clear a few warnings and implement a few
27242 exceptions that should be thrown.
27244 2006-02-22 Peter Dennis Bartok <pbartok@novell.com>
27246 * ScrollBar.cs (ctor): Explicitly set a cursor to avoid
27247 'inheriting' our parent's (non-default) cursor. (Part of
27248 the fix for #77479)
27250 2006-02-22 Peter Dennis Bartok <pbartok@novell.com>
27252 * XplatUIX11.cs: Fixed cast to make csc happy
27254 2006-02-22 Peter Dennis Bartok <pbartok@novell.com>
27256 * Control.cs (WndProc): Only handle WM_SETCURSOR messages if
27257 it's for the client area (part of fix for #77479 and needed
27258 for MDI window cursor handling)
27260 - DefWindowProc: Now handles the WM_SETCURSOR messages, setting
27261 the appropriate default cursors and also passing the message
27262 up the parent chain
27263 - GetMessage: Now generating WM_NCHITTEST and WM_SETCURSOR even
27264 for non-client areas
27266 2006-02-15 Jackson Harper <jackson@ximian.com>
27268 * XplatUIWin32.cs: Since we fake MDI dont tell Windows that this
27269 is a real MDI window
27271 2006-02-14 Alexander Olk <alex.olk@googlemail.com>
27273 * X11DesktopColors.cs: Instead of checking the desktop session
27274 string for "KDE" check if it starts with "KDE"
27276 2006-02-10 Jackson Harper <jackson@ximian.com>
27278 * XplatUIX11.cs: These should be unsigned (fixes crash on 32 bit
27281 2006-02-10 Alexander Olk <alex.olk@googlemail.com>
27283 * FileDialog.cs: Added Refresh to RunDialog to fix some drawing
27286 - Got rid of the panel. All controls are now directly added to
27288 - Changed to mono coding style
27290 2006-02-10 Jackson Harper <jackson@ximian.com>
27292 * InternalWindowManager.cs: We don't need the set visibility to
27293 false hack anymore now that peter has written beautiful shutdown
27296 2006-02-10 Peter Dennis Bartok <pbartok@novell.com>
27298 * XplatUIX11.cs: Ignore DestroyNotify messages for windows that
27299 where already explicitly destroyed
27301 2006-02-10 Jackson Harper <jackson@ximian.com>
27303 * MdiClient.cs: Handle the case where windows are too high or to
27304 the left and we need scrollbars.
27306 2006-02-10 Alexander Olk <alex.olk@googlemail.com>
27308 * MimeIcon.cs: Added some icons
27311 - Got rid of the panel. All controls are now directly added to
27313 - Changed to mono coding style
27314 - On Linux "My Computer" and "My Network" will now show some
27315 more usefull information. A new class, MasterMount, gathers
27316 this information from /proc/mount. Updated MWFFileView to make
27317 use of this information
27318 - Fixed a bug that caused FileDialog to crash when
27319 ".recently_used" file had a zero size
27320 - FilterIndex does now what it should
27322 * OpenFileDialog.cs, SaveFileDialog.cs: Updated to reflect latest
27325 2006-02-09 Jackson Harper <jackson@ximian.com>
27327 * ComboBox.cs: Don't touch if null.
27329 2006-02-09 Peter Dennis Bartok <pbartok@novell.com>
27331 * Cursor.cs: 64bit safeness fix
27332 * XplatUIX11.cs: Removed several unneeded and one moronic cast.
27334 2006-02-09 Jackson Harper <jackson@ximian.com>
27336 * Form.cs: If a form is made into an MDI form update the styles so
27337 all the props can get set correctly.
27338 - Kill the mdi_container when we dont need it anymore.
27339 * InternalWindowManager.cs: Add missing NOT
27341 2006-02-08 Jackson Harper <jackson@ximian.com>
27343 * InternalWindowManager.cs: Respek clipping when drawing MDi
27346 2006-02-08 Jackson Harper <jackson@ximian.com>
27348 * Hwnd.cs: Add bits to track non client expose events.
27349 * XplatUIX11.cs: Track non client expose events on the hwnd. This
27350 gives us a proper invalid rect and will allow for some nice
27351 optimizations with NC client drawing
27352 - MDI windows are children windows, so move their style handling
27353 into the child window block.
27354 * InternalWindowManager.cs: Remove a state reset that was
27355 getting invoked at the wrong time. Fixes managed windows getting
27356 into a 'stuck' captured state.
27358 2006-02-07 Peter Dennis Bartok <pbartok@novell.com>
27360 * TextControl.cs (Document.ctor): Now initializing
27361 selection_anchor. Fixes #77493
27363 2006-02-07 Jackson Harper <jackson@ximian.com>
27365 * TrackBar.cs: The increment/decrements were backwards.
27367 2006-02-07 Mike Kestner <mkestner@novell.com>
27369 * Theme*.cs : remove ThemeEngine.Current usage as it just points back
27370 to the instance itself.
27372 2006-02-07 Peter Dennis Bartok <pbartok@novell.com>
27374 * X11DesktopColors.cs, ThemeGtk.cs: The GObject structure is based
27375 on ulongs and pointers, the size differs between 32bit and 64bit
27378 2006-02-07 Mike Kestner <mkestner@novell.com>
27380 * XplatUIX11.cs : force the WorkingArea away from XGetWindowProperty
27381 for 64 bit platforms to work around a metacity bug.
27383 2006-02-07 Jackson Harper <jackson@ximian.com>
27385 * TrackBar.cs: Process the input keys we need, and hookup to
27386 KeyDown instead of using WndProc, so we get key messages.
27388 2006-02-06 Peter Dennis Bartok <pbartok@novell.com>
27390 * XplatUIX11.cs: Atoms are only 32bit on the wire, no matter what
27392 * X11Dnd.cs(SetAllowDrop): Since atoms are always 32bit on the wire
27393 we need to translate the XdndVersion atoms array before sending it
27395 2006-02-06 Peter Dennis Bartok <pbartok@novell.com>
27398 - The preceeding 64bit fixes had a bug: ChangeProperty expects the
27399 number of bits for the property, not the number of bytes. The
27400 change to provide IntPtr.Size broke 32bit. (64bit was also wrong
27401 but would not crash since it specified 8 bits instead of 4 bits)
27402 - More 64bit fixes: Switched all atoms from int to IntPtr (they are
27403 defined as XID -> long in the C headers)
27404 - Removed 'new IntPtr((int))' and '(IntPtr)' casts from all NetAtoms
27405 references since those are now IntPtr to begin with
27406 - Switched all Atom.XXX 'int' casts to IntPtr casts
27407 - Fixed XGrabPointer DllImport signature to work for 64bit (cursor arg)
27408 - Fixed XInternAtom signature for 64bit, now returns an IntPtr
27409 - Added XChangeActivePointerGrab DllImport (for X11DnD)
27411 - Changed 'int' type for Atoms in XEvent structures to IntPtr
27412 - Changed atom in HoverStruct to be IntPtr
27414 - Removed local DllImports, switched code to use those from XplatUIX11
27415 - Removed/fixed casts related to the switch of Atom to be a IntPtr
27417 2006-02-06 Mike Kestner <mkestner@novell.com>
27419 * XplatUIX11.cs : many more 64 bit pinvoke changes. I've audited all the
27420 method signatures in the import region. There may still be some
27421 lingering struct marshaling issues, as I didn't drill down into those.
27424 2006-02-06 Jackson Harper <jackson@ximian.com>
27426 * ComboBox.cs: Dont manually set the top_item, this is computed
27427 when the scrollbar position is set.
27429 2006-02-06 Mike Kestner <mkestner@novell.com>
27431 * XplatUIX11.cs : 64 bit changes to XGetWindowProperty usage. Fixes
27432 startup crashes on amd64. There's other fixes needed. All pinvoke
27433 usage of Atom needs to be mapped to IntPtr for example. And there are
27434 likely other int/long issues to be addressed.
27436 2006-02-04 Alexander Olk <alex.olk@googlemail.com>
27438 * FileDialog.cs: One more...
27440 2006-02-03 Alexander Olk <alex.olk@googlemail.com>
27442 * FileDialog.cs: Next try
27444 2006-02-03 Alexander Olk <alex.olk@googlemail.com>
27446 * FileDialog.cs: First part of fix for #77464
27448 2006-02-03 Alexander Olk <alex.olk@googlemail.com>
27450 * ButtonBase.cs, ContainerControl.cs, Forms.cs,
27451 ThemeWin32Classic.cs: Fix for #77458. Correct handling of
27452 AcceptButton border drawing.
27454 2006-02-03 Peter Dennis Bartok <pbartok@novell.com>
27456 * Form.cs: Moved positioning of form after auto scaling is applied,
27457 otherwise it would possibly use wrong form size.
27459 2006-02-03 Peter Dennis Bartok <pbartok@novell.com>
27461 * Control.cs (RecreateHandle): No need to re-create any child
27462 controls, the child windows will get destroyed automatically by
27463 the windowing system or driver, and re-created when the handle
27464 is being accessed the first time. Fixes #77456
27465 * Form.cs: No longer setting the form to closing if the handle is
27466 being recreated. This seems like the right thing to do, don't
27467 have a bug or testcase for this, though.
27469 2006-02-02 Peter Dennis Bartok <pbartok@novell.com>
27471 * FileDialog.cs: Suspend/Resume layouting when changing sizes of
27472 controls to avoid unwanted side effects
27474 2006-02-02 Peter Dennis Bartok <pbartok@novell.com>
27477 - ScaleCore needs to scale the bounds, not the ClientSize of the
27478 control. Fixes #77416.
27479 - DefaultSize is 0,0 for control
27481 - DefaultSize is 100, 20
27482 - SetBoundsCore: Now enforcing the height, no matter if the provided
27483 height is more or less than the preferred one, as long as AutoSize
27485 * Form.cs: Apply documented fudge factor. Part of item 3 fix for #77416
27487 2006-02-02 Peter Dennis Bartok <pbartok@novell.com>
27490 - ResumeLayout: Fixed logic when to call PerformLayout, we may not
27491 call unless both performLayout is true *and* we have a pending
27493 - ResumeLayout: MS does not completely nest Suspend and Resume,
27494 they bottom out at 0, fixed our code to match that.
27495 - UpdateBounds/SetBoundsCore: Moved calling of UpdateDistances() to
27496 SetBoundsCore, we were updating even when we shouldn't. This fixes
27497 swf-anchors mis-anchoring when resizing the app fast and lots.
27498 - UpdateDistances: Now only setting the left and top distance if
27499 we have a parent and are not suspended, this is based on
27500 a suggestion by Don Edvaldson in bug #77355.
27501 - OnVisibleChanged: Fixed logic when to create the control. We may
27502 not create the control if we have no parent or if it's not visible;
27503 switched to using Visible property instead of is_visible field
27504 since the property also considers parent states. This fixes a bug
27505 when starting Paint.Net
27507 2006-02-02 Jackson Harper <jackson@ximian.com>
27509 * Form.cs: If the forms handle hasn't been created yet don't call
27510 into xplatui to make it top most, just set the topmost flag on the
27511 form in CreateParams
27512 * XplatUIX11.cs: Handle WS_EX_TOPMOST.
27514 2006-02-01 Jackson Harper <jackson@ximian.com>
27516 * ScrollableControl.cs: Refactored the Recalculate method a
27517 little, this wasn't handling all the variants of bottom and right
27518 bars needed to be added and added/removed based on their
27519 counterparts being added/removed (which changes the drawable
27520 size). Also we special case client widths and heights of 0 and
27521 don't add the scrollbar for those.
27523 2006-02-01 Peter Dennis Bartok <pbartok@novell.com>
27526 - Added method to get AbsoluteGeometry(); currently unused, but might
27527 be used in the future, if we try again to figure out toplevel
27528 coordinates with some more crappy window managers
27529 - Added FrameExtents() method to retrieve the WM set decoration size
27530 - Tried to fix up AddConfigureNotify and handling of ReparentNotify
27531 to deal with at least KDE, FVWM and metacity (Fixes #77092)
27533 - Added whacky_wm tracking var for metacity
27534 - Added logic to have default menu height if the actual menu height
27535 has not yet been calculated (part of fix for #77426)
27536 * Form.cs: Keep track whether client size has been set and re-set
27537 it if a menu is added/removed afterwards (Fixes #77426)
27539 2006-01-31 Jackson Harper <jackson@ximian.com>
27541 * Control.cs: When a new Site is set on the component attempt to
27542 pull the AmbientProperties from it.
27544 2006-01-31 Peter Dennis Bartok <pbartok@novell.com>
27546 * ThemeWin32Classic.cs: Menu background is drawn in ColorMenu, not
27547 in the background of the owning form. Fixes #77332
27549 2006-01-31 Alexander Olk <alex.olk@googlemail.com>
27551 * MimeIcon.cs: Fix for #77409
27553 2006-01-31 Alexander Olk <alex.olk@googlemail.com>
27555 * XplatUIX11GTK.cs: Initial import
27557 2006-01-31 Jordi Mas i Hernandez <jordimash@gmail.com>
27559 * FixedSizeTextBox: fixes class signature
27561 2006-01-30 Jackson Harper <jackson@ximian.com>
27563 * FixedSizeTextBox.cs: New internal class that represents a
27564 textBox that will not be scaled.
27567 * UpDownBase.cs: Use the new FixedSizeTextBox instead of a
27570 2006-01-30 Peter Dennis Bartok <pbartok@novell.com>
27572 * XplatUIX11.cs: Retrieve default screen number instead of
27573 assuming 0. Attempted fix for #77318
27575 2006-01-30 Peter Dennis Bartok <pbartok@novell.com>
27578 - GetWindowPos: When a window is parented by FosterParent, use
27579 the desktop instead of FosterParent as the base to get coordinates
27580 - CreateWindow: Don't make FosterParent the parent window for Popups
27581 if we don't want a taskbar entry, Popups automatically don't get one
27582 * Hwnd.cs: Need to call remove to actually remove the key from the
27585 2006-01-30 Mike Kestner <mkestner@novell.com>
27587 * MenuAPI.cs: adjust MainMenu item popup location to y=0.
27589 2006-01-30 Jackson Harper <jackson@ximian.com>
27592 * TreeNode.cs: Raise events no matter how the treenode is
27593 checked. Patch by Don Edvalson.
27595 2006-01-30 Jackson Harper <jackson@ximian.com>
27597 * TreeNode.cs: Signature fix.
27599 2006-01-29 Alexander Olk <alex.olk@googlemail.com>
27601 * ThemeClearlooks.cs: Fixed a crash in ProgressBar drawing.
27603 2006-01-20 Mike Kestner <mkestner@novell.com>
27605 * Form.cs: Add ActiveTracker property to do Captures and perform mouse
27606 event forwarding when menus are active.
27607 * MenuAPI.cs: kill the GrabControl hack. Use Form.ActiveTracker.
27608 Most of the patch is pdb's with a little rework.
27610 2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
27612 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs:
27613 Removed GetMenuDC and ReleaseMenuDC methods; replaced
27614 by PaintEventStart(handle, false) and PaintEventEnd(handle, false)
27615 * Form.cs: Changed WM_NCPAINT handler to use PaintEventStart and End
27616 * InternalWindowManager.cs: Added use of PaintEventStart/End to
27617 handling of WM_NCPAINT message, now passing the PaintEventArgs to
27618 the PaintWindowDecorations method
27619 * MainMenu.cs: Switched logic from GetMenuDC to PaintEventStart
27620 * MdiChildContext.cs: Switched logic from GetMenuDC to PaintEventStart
27621 * MenuAPI.cs: Made tracker window invisible
27623 - Removed GetMenuDC and ReleaseMenuDC methods
27624 - Implemented the client=false path for PaintEventStart and
27627 2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
27629 * XplatUIWin32.cs(SetBorderStyle): Fixed3D needs a border
27630 * XplatUIX11.cs(DeriveWindowStyles): Updated to match fixed Form
27633 - MaximizeBox, MinimizeBox: Recreate the handle when setting
27635 - CreateParams: Reworked the styles to match MS look'n'feel,
27636 removed automatic setting of MinimizeBox, MaximizeBox, etc. via
27637 the WS_OVERLAPPEDWINDOW style. This fixes #76823.
27639 2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
27641 * XplatUIX11.cs(GetWindowState): Now throwing an exception when the
27642 window is not mapped, since otherwise every form that's being
27643 created is considered minimized, which is wrong.
27644 * Form.cs: Catching the exception and returning our internal value
27647 2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
27649 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new driver method
27650 SetWindowMinMax() to have means to tell the driver about the minimum,
27651 maximum and maximized state window sizes. (Part of the fix for #76485)
27653 - Implemented tracking of minimum and maximum window size, now calling
27654 new SetWindowMinMax() driver method to tell the driver (Part of the
27656 - Finished handling of WM_GETMINMAXINFO method, now setting all values
27657 (Completes fix for #76485)
27658 - Calling new SetWindowMinMax driver method when the handle for a
27659 form is created, to make sure the driver knows about it even if
27660 the values have been set before the window was created
27661 - Now eating the WM_WINDOWPOSCHANGED message if the form is minimized
27662 to avoid messing up our anchoring calculations (partial fix
27664 * XplatUIStructs.cs: Added MINMAXINFO struct (moved from Win32 driver)
27666 - Added _NET_WM_STATE_HIDDEN property for detecting minimized state
27667 - Improved GetWindowState() to detect 'Minimized' state on Metacity
27668 (and presumably other freedesktop.org compliant WMs). Left the
27669 assumption unmapped=minimized, needed for SetVisible to work.
27670 - Now setting the window state when creating windows
27671 - Fixed SetVisible to consider/set the window state when mapping
27672 a Form. We cannot set the state before it's mapped, and we cannot
27673 use Form.WindowState once it's mapped (since it would ask the
27674 driver and get 'normal'. Therefore, we grab the state before
27675 mapping, map, and then set state.
27676 - Implmemented SetWindowMinMax method; Metacity does not seem to
27677 honor the ZoomHints, though.
27679 - Removed MINMAXINFO (moved to XplatUIStructs)
27680 - Added SetWindowMinMax stub (on Win32 the only way to set that
27681 information is in response to the WM_GETMINMAXINFO message, which
27682 is handled in Form.cs)
27683 - Added logic to SetVisible to set the proper window state when a
27684 form is made visible (fixes #75720)
27686 2006-01-26 Jackson Harper <jackson@ximian.com>
27688 * Control.cs (BeginInvoke): Automagically handle EventHandlers the
27689 same way we handle them with Invoke.
27691 2006-01-25 Peter Dennis Bartok <pbartok@novell.com>
27694 - Added tracking of window state so CreateParams can return
27695 the appropriate style
27696 - Moved setting of WS_CAPTION style in CreateParams to allow
27697 styles without caption
27698 * DataGridTextBoxColumn.cs: We are now also creating the TextBox
27699 control if the TextBox property is accessed. Fixes #77345
27701 - get_Created: now uses is_disposed and is_created to determine
27702 return value (suggested by Jackson)
27703 - CreateHandle: No longer exits if the handle is being recreated
27704 - RecreateHandle: If the handle is not yet created call the
27705 appropriate method to create either control or handle. If the
27706 control is already created CreateHandle will simply exit instead
27707 of just creating the handle
27708 * Hwnd.cs: Removed expose_pending tracking, no longer needed since we
27709 now SendMessage WM_DESTROY directly to the control when DestroyWindow
27712 - When DestroyWindow is called, instead of waiting for the
27713 DestroyNotification from X11, we directly post it to the WndProc
27714 and immediately dispose the hwnd object.
27715 Same applies to DestroyChildWindows, and this obsoletes the
27716 expose_pending tracking. Contrary to Win32 behaviour we destroy our
27717 child windows before our own, to avoid X11 errors.
27718 - Removed the direct sending of WM_PAINT on UpdateWindow
27720 - Reworked DoEvents and GetMessage to allow access to internal queue
27721 even when trying non-blocking access to the queue. Fixes #77335.
27722 Based on a patch suggestion by Don Edvalson. The new private
27723 GetMessage can now also be used as a backend for a PeekMessage
27725 * XplatUI.cs: Improved debug output for CreateWindow
27727 2006-01-25 Jackson Harper <jackson@ximian.com>
27729 * Help.cs: Allow param to be null. Patch by Don Edvalson.
27731 2006-01-24 Jackson Harper <jackson@ximian.com>
27733 * ComboBox.cs: Clamp the max value set for the vertical scrollbar
27734 when we have a MaxDropItems lower then the selected index.
27736 2006-01-24 Jackson Harper <jackson@ximian.com>
27738 * Control.cs: Don't allow selection of non visible controls, allow
27739 selection of controls without parents.
27741 2006-01-24 Jordi Mas i Hernandez <jordimash@gmail.com>
27743 * ThemeWin32Classic.cs: Fixes Datagrid drawing issues
27744 * DataGridDrawingLogic.cs: Add editing row only when is necessary
27746 2006-01-23 Jackson Harper <jackson@ximian.com>
27748 * UpDownBase.cs: Make the textbox handle all the selection and
27749 tabbing. This fixes tabing to updown controls.
27751 2006-01-24 Jordi Mas i Hernandez <jordimash@gmail.com>
27753 * TextBoxBase.cs: fixes exception thown the object was null
27755 2006-01-23 Jackson Harper <jackson@ximian.com>
27757 * ButtonBase.cs: Just use the base CreateParams. They set
27758 visibility and enabled correctly.
27761 * MonthCalendar.cs: Lets let the base set as much of the
27762 createparams as possible so we don't have duplicate code all over
27765 2006-01-22 Alexander Olk <alex.olk@googlemail.com>
27767 * ThemeGtk.cs: Added TrackBar and some experimental code to
27768 get double buffering back
27770 2006-01-21 Jordi Mas i Hernandez <jordimash@gmail.com>
27772 * DataGrid.cs: Allows row number set internally higher than the last
27773 when creating a new row. Restores the editing functionality.
27775 2006-01-20 Mike Kestner <mkestner@novell.com>
27777 * MimeIcon.cs: delay Image creation until the icons are accessed
27778 instead of creating 190 scaled images on GnomeHandler startup.
27780 2006-01-19 Peter Dennis Bartok <pbartok@novell.com>
27782 * TextBoxBase.cs (WndProc): When handling WM_KEYDOWN we need to
27783 first call base before processing the event. Fixes #77279
27785 2006-01-19 Peter Dennis Bartok <pbartok@novell.com>
27787 * XplatUIWin32.cs, Cursor.cs: Fixed code that wrongly assumed
27788 that the stride for the GDI bitmap would match the stride of
27791 2006-01-19 Alexander Olk <alex.olk@googlemail.com>
27793 * ThemeGtk.cs: Added ProgressBar, RadioButton, CheckBox
27795 2006-01-19 Jackson Harper <jackson@ximian.com>
27797 * ComboBox.cs: Hookup the text controls keydown event so we get
27798 those when the text control has the focus.
27800 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
27802 * Label.cs: Now using the base events instead of defining new ones;
27803 this allows us to just call the base properties without having to
27804 duplicate all base property logic
27806 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
27808 * Label.cs: A label by default is not a tabstop (Fixes one of our
27809 failing nunit tests)
27811 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
27813 * XplatUIWin32.cs: Fixed wrong DoEvents logic. Fixes #77282
27814 * XplatUIX11.cs: Removed WM_PAINT check from DoEvents. Fixes #77282
27816 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
27818 * Cursor.cs: Reimplemented creating cursor bitmaps without using
27819 the Bitmap(Stream) constructor which is semi-broken on MS GDI+.
27822 - Reimplemented creating Bitmaps from DIBs since the Bitmap(Stream)
27823 constructor creates images that can't be saved. Part of the fix
27825 - Added handling of CF_BITMAP as CF_DIB to clipboard code (Fixes #76103)
27826 - SetWindowState: Switched ShowWindow flags (part of an upcoming
27827 bug fix for handling window state in forms properly)
27829 2006-01-18 Alexander Olk <alex.olk@googlemail.com>
27831 * ThemeGtk.cs: Simplify ScrollBar drawing
27833 2006-01-18 Jackson Harper <jackson@ximian.com>
27835 * Splitter.cs: Set the default dock style for the splitter control
27836 in the constructor.
27838 2006-01-18 Alexander Olk <alex.olk@googlemail.com>
27840 * ThemeGtk.cs: Corrected StateType and ShadowType for
27843 2006-01-18 Alexander Olk <alex.olk@googlemail.com>
27845 * Control.cs: Make use of Theme.DoubleBufferingSupported
27847 - Added drawing for flat style buttons
27848 - Added ScrollBar drawing
27850 2006-01-18 Alexander Olk <alex.olk@googlemail.com>
27852 * ThemeClearlooks.cs: Removed some unneeded code.
27853 * ThemeGtk.cs: First part of ThemeGtk enhancements.
27855 2006-01-17 Peter Dennis Bartok <pbartok@novell.com>
27857 * LinkLabel.cs: We need to update the hover drawing when
27858 leaving the control as well.
27860 2006-01-18 Jordi Mas i Hernandez <jordimash@gmail.com>
27862 * DataGrid.cs: Clicking on non empty areas in the columns
27863 area was giving an exception
27865 2006-01-17 Jackson Harper <jackson@ximian.com>
27867 * ThemeWin32Classic.cs:
27868 * ListView.cs: Do not draw/clip the headers when the header style
27871 2006-01-17 Jordi Mas i Hernandez <jordimash@gmail.com>
27873 * DataGrid.cs: Fixes 77260
27875 2006-01-17 Jordi Mas i Hernandez <jordimash@gmail.com>
27877 * DataGrid.cs: Clicking on a column on a empty grid was giving
27880 2006-01-17 Peter Dennis Bartok <pbartok@novell.com>
27882 * DataGrid.cs (OnKeyDown): Don't use the array if it's empty
27883 or any keypress will crash the grid.
27885 2006-01-17 Mike Kestner <mkestner@novell.com>
27887 * MainMenu.cs (OnMenuChanged): set Height=0 to cause relayout.
27888 * ThemeWin32Classic.cs (CalcItemSize): clear Height/Width for
27889 invisible/previously-visible items.
27892 2006-01-17 Alexander Olk <alex.olk@googlemail.com>
27894 * ThemeClearlooks.cs:
27895 - Added CL_Draw_Button method; now other theme controls that are
27896 not derived from button or do not have a button can draw buttons
27898 - Updated ComboBox drawing
27899 - Beautified RadioButton drawing
27900 - Corrected drawing of bottom and left tabs
27901 - Beautified DateTimePicker and MonthCalendar
27902 - Added CPDrawButton and CPDrawRadioButton
27904 2006-01-16 Jackson Harper <jackson@ximian.com>
27906 * ComboBox.cs: Set the initial value of the scrollbar to the
27907 current index. Reduce the numbers of refreshs and IndexOfs called.
27909 2006-01-14 Alexander Olk <alex.olk@googlemail.com>
27911 * FileDialog.cs: When the file listview is focused hitting the
27912 backspace key moves the fileview to the parent directory
27914 2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
27917 - Added RecreateHandle call when changing taskbar visibility to
27918 trigger reparenting in Win32 driver (Fixes #75719)
27919 - If a window has minimize or maximize buttons, it cannot have
27922 - CreateWindow: When no WS_EX_APPWINDOW style is found we parent
27923 the toplevel form with FosterParent (A toolwindow not on the
27924 taskbar) (Fixes #75719)
27925 - Made FosterParent a toolwindow
27927 2006-01-13 Alexander Olk <alex.olk@googlemail.com>
27929 * FileDialog.cs: Don't crash if InitialDirectory doesn't exist
27931 2006-01-13 Alexander Olk <alex.olk@googlemail.com>
27933 * ToolTip.cs: If SetToolTip is called from a control and the mouse
27934 is currently over that control, make sure that tooltip_window.Text
27937 2006-01-13 Mike Kestner <mkestner@novell.com>
27939 * MimeIcon.cs: size_t on lp64 fix for gdk_pixbuf_save_to_file extern.
27941 2006-01-13 Jackson Harper <jackson@ximian.com>
27943 * TreeView.cs: On MS GetNodeAt never actually factors in the X
27944 value passed. Also redraw the selected node when we recieve
27945 focus, so tabbing between trees works correctly.
27947 2006-01-13 Alexander Olk <alex.olk@googlemail.com>
27949 * MimeIcon.cs: GnomeHandler: older gnome versions don't have
27950 ~/.gconf/%gconf-tree.xml, so use
27951 .gconf/desktop/gnome/interface/%gconf.xml
27953 2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
27955 * TextControl.cs: Draw text in gray if control is disabled
27957 2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
27959 * TreeView.cs: Draw the focus rectangle outside the highlight, to
27960 make sure it's always visible. Fixes #76680.
27962 2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
27964 * TreeView.cs: Implemented Wheel scrolling. Fixes #76531
27966 2006-01-13 Jonathan Chambers <jonathan.chambers@ansys.com>
27968 * PageSetupDialog.cs: Added.
27969 * PrintDialog.cs: Attributes.
27970 * PrintPreviewControl.cs: Updates.
27971 * PrintPreviewDialog.cs: Updates.
27973 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
27975 * Control.cs: Undid my selection check fix, since it's not needed
27977 - Now considering the presence of hscroll/vscroll when sizing
27978 vscroll/hscroll respectively. Fixed bug #77077
27979 - Added Left/Up/Down/Right to IsInputKey list to prevent
27980 ContainerControl from stealing them. This fixes what I broke
27981 with my last checkin.
27983 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
27985 * ScrollableControl.cs: Implemented dockpadding. Fixes #77166. And
27986 I finally understand how the property can be set without a setter :-)
27988 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
27991 - Switched RunLoop to use static Message.Create to create a
27993 - Added PreProcessMessage call in runloop for keyboard events; this
27994 is part of the fix for #77219, I overlooked this originally in the
27995 MSDN doc for PreProcessMessage
27997 - Removed call to PreProcessMessage from handling of keyboard
27998 messages; it's supposed to be done in the message pump
27999 - Moved call to ProcessKeyEventArgs inside ProcessKeyMessage as
28000 per MSDN documentation.
28001 - IsInputChar: All chars are input chars by default; removed the
28002 parent calling chain, MS does not document that
28003 - PreProcessMessage: If IsInputChar is true, we want to return false
28004 to allow dispatching of the message
28005 - When selecting the next control, now also check that we're not
28006 selecting ourselves again and therefore return a false positive.
28008 - Tried to match return values for IsInputKey and ProcessDialogKey
28009 to what MS returns; moved processing of our special keys outside
28010 ProcessDialogKey since MS does not seem to return true on those.
28011 - Moved code that previously was in ProcessDialogKey into new private
28012 ProcessKey method, which gets called upon receipt of WM_KEYDOWN
28013 - Reworked handling of WM_CHAR to not have to duplicate code from
28014 Control.cs anymore, instead we simply call down to base.
28016 2006-01-12 Jackson Harper <jackson@ximian.com>
28018 * ComboBox.cs: We always need to refresh the text area when
28019 EndUpdate is called. Fixes the combobox in the file dialog.
28020 * Control.cs: Don't create the creator_thread until the controls
28021 handle is created. Also in InvokeRequired we check if the
28022 creator_thread is null. This gives the effect of InvokeRequired
28023 returning true if the controls handle is not created yet, and
28026 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
28029 - Added StartLoop() driver method. This is used to allow drivers to
28030 prepare for an upcoming GetMessage/TranslateMessage/DispatchMessage
28031 loop for a particular thread
28032 - Added EndLoop() driver method. This is called once the message
28033 pump for the thread is shut down
28034 - Added SupportsTransparency method to allow the driver to indicate
28035 opacity support for windows
28037 - Removed TODO attribute, completed AllowTransparency property
28038 - Added documented logic to Opacity
28039 * GroupBox.cs, Label.cs, LinkLabel.cs, PropertyGrid.cs, Control.cs,
28040 ButtonBase.cs, CheckedListBox.cs: Combined Jackson's and Miguel's
28041 versions of CompatibleTextRendering
28042 * X11Structs.cs: Added opacity atom to our atom enumeration
28043 * Hwnd.cs: Added opacity tracking (we need to track since the opacity
28044 of a form might be set before it's reparented by the WM, and we need
28045 the opacity value without calling up to Form)
28046 * XplatUIDriver.cs: Added StartLoop(), EndLoop() and
28047 SupportsTransparency() driver methods
28048 * Application.cs: Now calling StartLoop and EndLoop driver methods
28050 - Added opacity atom registration
28051 - Added StartLoop()/EndLoop() methods. They're empty right now but
28052 will need to get implemented when we switch to a per-thread queue
28053 - Implemented SupportsTransparency() method
28054 - Implemented SetWindowTransparency() method
28055 - Added support for setting the opacity value when a window is
28056 reparented (since the opacity needs to be set on the WM frame)
28057 * XplatUIOSX.cs, XplatUIWin32.cs:
28058 - Added SupportsTransparency(), StartLoop() and EndLoop() methods
28060 2006-01-12 Alexander Olk <alex.olk@googlemail.com>
28062 * ThemeClearlooks.cs: Don't crash if TabControl.Parent is null.
28064 2006-01-12 Alexander Olk <alex.olk@googlemail.com>
28066 * FileDialog.cs: Added ToolTip for MWFFileView
28067 * MimeIcon.cs: Rewrote GnomeHandler.
28068 - Get currently used gnome icon theme from
28069 ($HOME)/.gconf/%gconf-tree.xml
28070 - Make use of inherited icon themes
28071 - Support SVG icon themes like Tango via librsvg
28073 2006-01-12 Miguel de Icaza <miguel@novell.com>
28075 Revert's Jackson's revert which broke 2.0 builds. Fix both
28078 * Application.cs: Move the use_compatible_text_rendering outside
28079 the NET_2_0 define. If we ever need to use the
28080 use_compatible_text_rendering on the individual controls they will
28081 access the variable from the common shared code paths.
28083 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
28086 - Added more granular debug options
28087 - Added method to print both window text and id
28088 - Switched debug output to use new Window() debug method
28089 - Added IsEnabled() driver method
28090 - Added EnableWindow() driver method
28092 - Removed end_modal; no longer needed, new loop handles termination
28093 via 'closing' variable
28094 - If form is modal, setting DialogResult will now initiate loop
28095 termination via 'closing' variable
28096 - Added support for is_enabled/WS_DISABLED to CreateParams
28097 - Close() now just send the WM_CLOSE message; the WM_CLOSE handler
28099 - Removed code that's now in RunLoop from ShowDialog()
28100 - Added various documented sanity checks to ShowDialog()
28101 - Added handling of WM_DESTROY message; we set 'closing' on getting
28102 the message to indicate the message pump to terminate
28103 - Added handling of new internal WM_CLOSE_INTERNAL message - it's
28104 send by the Application.ExitThread method. (We send the message
28105 to destroy the window after all other events have been
28106 processed through the queue, instead of destroying the handle
28108 - Moved code from Close() method to WM_CLOSE handler; added logic
28109 to only send close-related events if the form is not displayed
28111 * Splitter.cs (..ctor): Fixed typo in resource name
28113 - DrawBackgroundImage: Explicitly selecting the wrap mode for the
28115 - set_Cursor: Now only setting calling into XplatUI if the handle for
28116 the control is already created; this avoids implict handle creation
28117 or crashes if it's not created
28118 - set_Enabled: Now setting the enabled state via the new driver method
28119 instead of just tracking it
28120 - CreateParams: Added logic to set WS_DISABLED based on enabled state
28121 - CreateControl: Reordered event firing and method calls to more
28122 closely fire events in the order MS does. Now setting the
28123 enabled state in the driver when creating the control.
28124 - SetVisibleCore: Moved when the OnVisibleChanged event is fired to
28126 * FolderBrowserDialog.cs, MessageBox.cs, ButtonBase.cs, TrackBar.cs,
28127 MonthCalendar.cs: get_CreateParams: Added setting of WS_DISABLED
28128 * XplatUIStructs.cs: Added internal WM_CLOSE_INTERNAL mesage id
28130 - Added tracking of window enabled state (get_Enabled/set_Enabled)
28131 - Added EnabledHwnd property to easily allow a driver to find the
28132 handle of the first enabled window in the parent chain (this is
28133 used by drivers to pass up input events of disabled windows)
28134 * XplatUIDriver.cs: Added IsEnabled() method
28136 - Removed crude and obsolete exiting tracking variable
28137 - Removed internal ModalRun(); replaced by RunLoop()
28138 - Implemented private CloseForms() method to allow closing all
28139 windows owned by a particular (or all) threads
28140 - Exit() now properly closes all windows without forcing the message
28142 - Removed obsolete InternalExit() method
28143 - Changed Run() methods to use new RunLoop() message pump
28144 - Implemented new RunLoop() method for both modal and non-modal forms
28146 - get_CreateParams: Added setting of WS_DISABLED
28147 - Simplified ShowDialog(); now all the work is done in RunLoop(),
28148 invoked via Form.ShowDialog()
28149 * NativeWindow.cs: We don't remove the window from the collection when
28150 the handle is destroyed; there might still be messages for it in the
28151 queue (mainly the resulting WM_DESTROY); instead it will be removed
28152 when Control calls InvalidateHandle in the WM_DESTROY handler
28154 - CreateWindow: Added logic to handle the WS_DISABLED window style
28155 - EnableWindow: Implemented based on Hwnd.Enabled
28156 - GetMessage: Reset PostQuitState so the method can be called again
28157 - Implemented support for disabled windows (passing messages to the
28158 first enabled parent) in handling all input messages
28159 - Added optimizations for handling Expose events
28160 - Implemeted new driver method IsEnabled()
28161 - Now always resetting paint pending tracking vars when we start paint
28162 - Re-implemented UpdateWindow via just sending a WM_PAINT message
28163 * XplatUIOSX.cs: Added IsEnabled method stub
28164 * XplatUIWin32.cs: Implemented new IsEnabled() method
28166 2006-01-11 Jackson Harper <jackson@ximian.com>
28168 * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
28169 LinkLabel.cs, PropertyGrid.cs: Unbreak 1.1 build. Consolidate the
28170 variables a little.
28171 * ColorDialog.cs: Clear out the old form before adding the new
28174 2006-01-11 Jackson Harper <jackson@ximian.com>
28176 * X11Dnd.cs: Make sure to add all the text formats when adding
28177 strings to the data object.
28178 * TreeNodeCollection.cs: When adding to a sorted tree we need to
28179 do some redrawing too. Also change the UpdateNode to an
28180 UpdateBelow so the newly added node gets painted.
28182 2006-01-11 Miguel de Icaza <miguel@novell.com>
28184 * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
28185 LinkLabel.cs, PropertyGrid.cs: Implement the
28186 UseCompatibleTextRendering property for 2.x
28188 * Application.cs (SetCompatibleTextRenderingDefault): Add.
28190 2006-01-11 Jackson Harper <jackson@ximian.com>
28192 * TreeView.cs: Use the property for setting the selected node so
28193 the correct events get raised.
28194 * TreeNode.cs: Update the tree when the fore/back colours of a
28197 2006-01-10 Jackson Harper <jackson@ximian.com>
28199 * TreeView.cs: Allow setting SelectedNode to null.
28201 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
28203 * Form.cs: Fix support for Form TransparencyKey and Opacity on Windows.
28205 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
28207 * PrintControllerWithStatusDialog.cs: Update page number in dialog.
28209 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
28211 * PrintDialog.cs: Added attributes and set default property values.
28213 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
28215 * PrintControllerWithStatusDialog.cs:
28216 Added PrintControllerWithStatusDialog.
28218 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
28220 * XplatUI.cs, Form.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
28221 XplatUIWin32.cs: Added support for Form TransparencyKey and Opacity on Windows.
28223 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
28225 * ComboBox.cs: Fix crash when there is no selected item (due to last commit)
28227 2006-01-09 Jonathan Chambers <jonathan.chambers@ansys.com>
28229 * ComboBox.cs: Added KeyDown event handler for processing arrow keys
28230 and PgUp/PgDown. Also, scroll to selected item upon dropdown. Bugs 76857 and 76788.
28232 2006-01-08 Alexander Olk <alex.olk@googlemail.com>
28234 * MimeIcon.cs: Added internal class SVGUtil.
28236 2006-01-08 Alexander Olk <alex.olk@googlemail.com>
28238 * FileDialog.cs: Don't crash if there are two files with the
28239 same name but different locations.
28241 2006-01-08 John BouAntoun <jba-mono@optusnet.com.au>
28243 * MonthCalendar.cs: Fixed annoying rendering bug when selecting
28244 dates across multiple month grids. Used to not highlight entire
28245 month, but does now.
28247 2006-01-06 Jackson Harper <jackson@ximian.com>
28249 * MonthCalendar.cs: Removed DoEvents call to prevent a running
28250 message loop. Change timer intervals to numbers that seem more
28253 2006-01-06 John BouAntoun <jba-mono@optusnet.com.au>
28255 * DateTimePicker.cs: Modified CalculateDropDownLocation to use the screen
28256 object for location info since screen object is now implemented.
28258 2006-01-05 Jackson Harper <jackson@ximian.com>
28260 * AsyncMethodData.cs: Check if the call is complete before doing a WaitOne
28261 * AsyncMethodResult.cs: We no longer use a WeakReference for the
28262 AsyncMethodResult, this is because we ALWAYS want the
28263 ManualResetEvent to get set.
28264 * Control.cs: When disposing use an async invoke to call shutdown
28265 code, so that thigns don't block on the finalizer thread. Also
28266 check if we even have a message loop before trying to send
28267 messages, if we don't then don't bother sending messages.
28268 - No more weak references for async methods
28269 * XplatUIDriver.cs: No more weak references for async methods.
28271 2006-01-04 Alexander Olk <alex.olk@googlemail.com>
28273 * FontDialog.cs: Fix, don't throw an exception if FontFamily.Families
28274 returns two FontFamily with the same name
28276 2006-01-04 Peter Dennis Bartok <pbartok@novell.com>
28278 * ThemeWin32Classic.cs, ThemeClearlooks.cs: Dropped stupid scheme of
28279 drawing disabled text. Instead using the ColorGrayText color
28281 2006-01-04 Jackson Harper <jackson@ximian.com>
28283 * TreeNode.cs: redraw the node when its image index is changed.
28285 2006-01-04 Peter Dennis Bartok <pbartok@novell.com>
28287 * RichTextBox.cs: Same fix as last, just for SelectionColor. This
28288 time I checked there are no others like it.
28290 2006-01-04 Jackson Harper <jackson@ximian.com>
28292 * AsyncMethodResult.cs: Use a ManualResetEvent instead of a mutex,
28293 this gives the behavoir I was looking for.
28294 * Control.cs: Special case Invoking EventHandlers, this matches MS
28295 and fixes part of bug #76326.
28297 2006-01-04 Alexander Olk <alex.olk@googlemail.com>
28299 * ThemeClearlooks.cs, FileDialog.cs:
28300 - Reflect the latest Theme class changes
28301 - Remove Mono.Unix.Syscall.time in FileDialg and replace it
28304 2006-01-04 Alexander Olk <alex.olk@googlemail.com>
28306 * Theme.cs: Cache UI resource images and resize them if needed
28308 2006-01-03 Peter Dennis Bartok <pbartok@novell.com>
28310 * RichTextBox.cs: FormatText is 1-based, make it so when SelectionFont
28311 is called. This fixes the crash in Nexxia when setting the font
28312 attributes in the chat. [However, RTF needs a look-over to make sure
28313 that all SelectionXXX methods handle the special case that selection
28314 is empty and therefore the change must be applied to all text starting
28315 at the cursor/selection start]
28317 2006-01-03 Peter Dennis Bartok <pbartok@novell.com>
28319 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
28320 XplatUIOSX.cs: Added SendMessage and PostMessage methods
28321 * X11Keyboard.cs: Switched to new way of calling PostMessage
28323 2006-01-03 Peter Dennis Bartok <pbartok@novell.com>
28325 * Theme.cs: Added theme interface for images to allow the theme to
28326 control what images are used for things like FileDialog, MessageBox
28328 * MessageBox.cs: Now uses the new Theme icon/image interfaces
28330 2006-01-03 Alexander Olk <alex.olk@googlemail.com>
28333 - Removed some dead code
28334 - Opening a recently used file does work now
28335 - Small UI enhancements
28338 2006-01-02 Alexander Olk <alex.olk@googlemail.com>
28340 * FileDialog.cs: Forgot too add __MonoCS__
28342 2006-01-02 Alexander Olk <alex.olk@googlemail.com>
28344 * FileDialog.cs: We are able to read recently used files now let's
28345 go on and write them.
28347 2006-01-01 Alexander Olk <alex.olk@googlemail.com>
28349 * FileDialog.cs: Breathe some life into "last open"/"recently used"
28351 * MimeIcon.cs: Do a check for the top level media type also
28353 2005-12-31 Alexander Olk <alex.olk@googlemail.com>
28355 * ThemeClearlooks.cs:
28356 - Added CPDrawStringDisabled
28357 - ButtonBase_DrawText: Workaround for a DrawString bug; cut off
28358 some chars if the text doesn't fit into text_rect
28359 - DrawListViewItem: If View = View.LargeIcon center the image;
28360 rewrote the drawing of ListViewItem.Text if View =
28363 2005-12-31 Alexander Olk <alex.olk@googlemail.com>
28365 * MimeIcon.cs: Use default KDE icon theme if there is no
28366 "48x48" directory for the current icon theme, fixes #77114
28367 * Mime.cs: Disable not working and actually not used code.
28368 * ThemeWin32Classic.cs:
28369 - Replace "new SolidBrush" in GetControlBackBrush and
28370 GetControlForeBrush with ResPool.GetSolidBrush
28371 - Changed DrawListViewItem from private to protected virtual
28373 - Added form.MaximizeBox = true
28374 - Don't throw an exception if there is a broken symbolic link
28376 2005-12-23 Jackson Harper <jackson@ximian.com>
28378 * TabControl.cs: Give the panels focus, keyboard navigation is
28379 fixed so this works correctly now.
28380 - We need these key events also.
28381 * ToolBar.cs: Remove some of the poor mans double buffering.
28383 2005-12-24 Alexander Olk <alex.olk@googlemail.com>
28385 * ComboBox.cs: The internal TextBox now returns the focus.
28387 2005-12-23 Jackson Harper <jackson@ximian.com>
28389 * ThemeWin32Classic.cs: Draw the text for all tab appearances.
28391 2005-12-23 Peter Dennis Bartok <pbartok@novell.com>
28393 * Control.cs: Removed debug code
28394 * XplatUIX11.cs: Changed DestroyChildWindows to also consider
28397 2005-12-23 Peter Dennis Bartok <pbartok@novell.com>
28399 * Control.cs: When creating the control, update the Z-order after
28400 all it's children are created, too. (Fixes nexxia not showing
28403 2005-12-23 Peter Dennis Bartok <pbartok@novell.com>
28405 * Control.cs: Do not update the anchoring distances if layout is
28406 suspended, instead do it once layout is resumed
28408 2005-12-22 Peter Dennis Bartok <pbartok@novell.com>
28411 - After many hours of debugging, for both Jackson and
28412 myself, it turns out that it helps to set the parent of a control
28413 if you want to actually see it onscreen. In the spirit of that
28414 discovery, we're now setting the parent of the control and
28415 it's children when the control's handle is created. This fix
28416 will make Lutz Roeder's Reflector run happily.
28417 - now just creating the handle instead of the whole control when
28418 getting a graphics context for the control.
28420 2005-12-22 Peter Dennis Bartok <pbartok@novell.com>
28422 * ScrollableControl.cs: When calculating the canvas, don't consider
28423 the scrollbar widths. Instead, predict if horizontal scrollbar
28424 will affect canvas when deciding on vertical display and vice versa.
28426 2005-12-22 Peter Dennis Bartok <pbartok@novell.com>
28428 * RichTextBox.cs: Set default RTF font for documents that don't
28429 have a font table (Fixes #77076)
28431 2005-12-22 Jackson Harper <jackson@ximian.com>
28433 * TextBoxBase.cs: It's difficult to do, but you can have an empty
28434 clipboard. This prevents a NullRef in that case.
28435 * XplatUIX11.cs: Use CLIPBOARD not PRIMARY for our
28436 clipboard. PRIMARY is for the currently selected text only. (We
28437 should implement PRIMARY at some point.
28439 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
28441 * XplatUIWin32.cs: Fixed the TEXTMETRIC structure, we were calling
28442 a Unicode function with a structure that was defined in Ansi way.
28445 2005-12-21 Jackson Harper <jackson@ximian.com>
28447 * StatusBar.cs: Statusbar handles its fore/back colours on it's
28448 on. Because thats how it rolls. (and this avoids it using ambient
28450 * ThemeWin32Classic.cs: Use the proper back color for filling.
28451 * Menu.cs: Use the system menu bar color for drawing menu
28452 bars. Using the window back color will bring ambient colours into
28455 2005-12-21 Alexander Olk <alex.olk@googlemail.com>
28457 * ColorDialog.cs: Fixed a memory leak that caused a SIGSEV. A lot of
28458 Bitmaps were created and not disposed.
28460 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
28462 * Control.cs (CreateControl): Don't do anything if the control is
28463 already created, otherwise we'd fire the OnCreated event more than
28466 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
28468 * ComboBox.cs (FindStringCaseInsensitive): Don't search for emtpy strings,
28469 will always match. Instead return -1. Fixes #76464.
28471 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
28473 * TextControl.cs (RecalculateLine): Only wrap if the wrap point is
28474 neither the beginning nor the end of the line (Fixes bug #76479)
28476 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
28479 - ControlNativeWindow.ControlFromHandle(): Now handling situation
28480 where handle is invalid
28481 - FromHandle(): Now using hashtable-based ControlFromHandle() lookup
28482 instead of slower linear search
28483 * NativeWindow.cs: Don't remove the window from the hashtable until
28484 after the driver has destroyed it (since the driver might use
28485 Control.FromHandle to lookup the control object
28486 * Hwnd.cs: Added DestroyPending property to track if a window is
28487 already destroyed as far as the driver is concerned and only hasn't
28488 yet notified the control
28490 - Activate(): Check if the window is still valid before using the
28492 - Implemented DestroyChildWindow() method to mark child windows as
28493 destroyed when a window is destroyed. This prevents situations
28494 where we might call an X method based on queued events for a
28495 window that already has been destroyed but we haven't yet pulled
28496 the destroy method from the queue.
28497 - Added a call to the new DestroyChildWindow() method to the drivers
28498 DestroyWindow code. Also now marking the destroyed window itself
28501 2005-12-20 Jackson Harper <jackson@ximian.com>
28504 * StatusBarPanel.cs: Don't calculate panel sizes on draw
28505 anymore. Just do them when needed, also track the rects of panels
28506 so that we can optimize refreshing more in the future.
28508 2005-12-20 Alexander Olk <alex.olk@googlemail.com>
28510 * ColorDialog.cs: Fixed focus drawing in small color controls
28512 2005-12-19 Jackson Harper <jackson@ximian.com>
28514 * InternalWindowManager.cs:
28515 * MdiWindowManager.cs: Cleanup some coordinate system changes so
28516 moving windows works properly.
28518 2005-12-19 Peter Dennis Bartok <pbartok@novell.com>
28521 - Removed call to InitLayout() from SetBoundsCore(); doc says
28522 it's only called when a control is added to a container
28523 - Split InitLayout logic, moved to separate UpdateDistances() method
28524 since we need to perform those calculations more often than just
28525 when adding the control to a container. (Needed to fix #77022)
28526 - Now calling UpdateDistances() from UpdateBounds() (fixes #77022)
28527 - Reduced the OnBindingContextChanged events count, don't send them
28528 unless the control is created, we still aren't totally matching
28529 MS, but I can't quite figure out some of their rules
28531 2005-12-18 Alexander Olk <alex.olk@googlemail.com>
28533 * ThemeClearlooks.cs: Corrected distance between ProgressBar
28536 2005-12-18 Alexander Olk <alex.olk@googlemail.com>
28538 * ThemeClearlooks.cs:
28539 - Updated ProgressBar drawing
28540 - Corrected drawing of ScrollBars and scroll buttons
28541 - Some temporary fixes for minor pixel artefacts
28543 2005-12-18 Peter Dennis Bartok <pbartok@novell.com>
28546 - Reworked Controls.Add(), Controls.Remove() and set_Parent() to
28547 cause events to be sent in the same order as MS does.
28548 - Added ChangeParent() method to trigger various OnXXXChanged events
28549 that need to be fired when a parent changes (This is a reworking
28550 of the patch from r54254, with the X11 errors fixed)
28551 - Removed SuspendLayout()/ResumeLayout() calls from Controls.Clear()
28552 since on MS we get OnLayoutChanged events when calling Clear()
28553 - Changed Enabled property to consider parent state as well, if a
28554 parent is not enabled, the control will not be either
28555 - Changed Parent property to simply call Controls.Add() since that
28556 now does all the work required, this way we avoid code duplication
28557 - Threw in a few OnBindingsContextChanged calls to try and match
28558 when MS sends them. We seem to send a few too many, though.
28559 - Added call to CreateControl when adding the control to a parent.
28560 We were never calling CreateControl. Still needs some work, in
28561 some places we treat HandleCreated and ControlCreated as equal,
28563 - Removed obsolete commented out code from UpdateZOrder()
28565 2005-12-18 Alexander Olk <alex.olk@googlemail.com>
28567 * ThemeClearlooks.cs: Updated TrackBar drawing.
28569 2005-12-17 Alexander Olk <alex.olk@googlemail.com>
28571 * FileDialog.cs: Patch for #76901 by Atsushi Enomoto
28573 2005-12-17 Alexander Olk <alex.olk@googlemail.com>
28575 * FileDialog.cs: Add the Help button and the open readonly
28576 checkbox only if needed
28578 2005-12-16 Jackson Harper <jackson@ximian.com>
28580 * Control.cs: Make sure we have an active menu before trying to
28581 process commands on it. Prevents menu-less forms from crashing
28582 when Alt is pressed.
28583 * TreeNodeCollection.cs: Some fixes to prevent null refs. Patch by
28585 * RichTextBox.cs: Expand statement to help out gmcs and fix the
28588 2005-12-16 Jackson Harper <jackson@ximian.com>
28590 * InternalWindowManager.cs: Don't translate tool windows screen
28591 coordinates. This fixes windows 'bouncing' around when being moved.
28593 2005-12-15 Peter Dennis Bartok <pbartok@novell.com>
28596 - MaxLength now treats 2^31-1 equal to unlimited length (this is
28597 not quite MS compatible, MS uses that number only for single line
28598 and 2^32-1 for multi-line, but I figure it won't hurt keeping
28600 - Now enforcing the MaxLength limit when entering characters
28601 - Added argument to internal Paste() method to track if it's called
28602 from programatically or via keyboard, since keyboard driven pastes
28603 need to enforce max-length
28604 - Added logic to Paste to only paste as many chars as MaxLength
28606 * RichTextBox.cs: Updated to use new obey argument for internal Paste()
28608 - Added Length property to return number of characters in document
28609 - Added private CharCount property which only tracks actual chars
28610 in the document (no linefeeds) and fires event when CharCount
28612 - Added tracking of character count to all methods that alter it
28613 - Added LengthChanged event to allow applications to subscribe
28614 to any changes to the document
28616 2005-12-15 Peter Dennis Bartok <pbartok@novell.com>
28619 - Removed local password_char field (moved to TextBoxBase)
28620 - Now setting the document's password var when password is
28623 - Added password_char field (needed here so MultiLine can
28625 - Added logic to MultiLine property setter to set the document's
28626 variable when password display is allowed
28627 - Removed debug code and made some debug code conditional
28629 - Added RecalculatePasswordLine() method to handle special password
28631 - Added PasswordChar property, also added related tracking vars
28632 - Draw() method now uses local text var for grabbing text to draw,
28633 this var is set to line.text unless we're doing password display,
28634 then it is set to the pre-generated all-password-chars line
28635 - Added calling RecalculatePasswordLine() method for password lines
28637 2005-12-14 Peter Dennis Bartok <pbartok@novell.com>
28640 - Added Reparented property to allow tracking of Window Manager
28641 reparenting actions (which affect X/Y calculations of toplevel
28643 - Made ToString() print window handles in hex
28645 - AddConfigureNotify(): Now uses reparented state off Hwnd to
28646 determine if X/Y needs offsetting
28647 - AddConfigureNotify(): Fixed offset calculations
28648 - Now adds ReparentNotify messages into the queue
28649 - Now processes ReparentNotify messages and causes a
28650 WM_WINDOWPOSCHANGED message to be sent upstream if a window
28651 is reparented (as most likely it's X/Y coordinates are changed
28654 2005-12-14 Jackson Harper <jackson@ximian.com>
28656 * XplatUIX11.cs: Tool windows still need to respek focus.
28658 2005-12-14 Peter Dennis Bartok <pbartok@novell.com>
28660 * Control.cs: Undid 54254 (causing XConfigure errors) so we can
28661 have a working release
28663 2005-12-13 Jackson Harper <jackson@ximian.com>
28665 * Form.cs: Update styles after setting the border style regardless
28666 of whether or not the window is using a window manager.
28668 2005-12-13 Jackson Harper <jackson@ximian.com>
28670 * Form.cs: We now hook into an internal window manager instead of just an
28671 MDI subsystem, this is so we can have properly behaving tool windows.
28672 * MdiClient.cs: Naming change, MdiChildContext is now WindowManager
28673 * InternalWindowManager.cs: New internal class that acts as a
28674 window manager for tool windows and as a base for mdi windows.
28675 * MdiWindowManager.cs: New class that acts as a window manager for
28678 2005-12-12 Jackson Harper <jackson@ximian.com>
28680 * Control.cs: Updates so we match behavoir for for implicit
28681 controls. Fixes explosions in MDI.
28683 2005-12-12 Jackson Harper <jackson@ximian.com>
28685 * Control.cs: Implement Invalidate (Region).
28687 2005-12-12 Peter Dennis Bartok <pbartok@novell.com>
28690 - Changed handling of Controls.Add/Controls.Remove to fire (almost)
28691 the same events as MS does. MS fires events for each property
28692 except, for unknown reasons, Cursor, when the control is reparented.
28693 I can't seem to totally match add/remove since MS also fires some
28694 VisibleChanged events, which makes no sense. Consolidated the
28695 parenting code into a separate method so it can be called from
28696 both Add and Remove. set_Parent no longer needs any special logic
28697 as it calls the parent's add method which implicitly fires
28699 - Removed some obsolete code and debug output
28700 - Enabled state is inherited from parents, if this is enabled
28702 2005-12-08 Peter Dennis Bartok <pbartok@novell.com>
28704 * Form.cs: Removed commented out code
28706 2005-12-08 Peter Dennis Bartok <pbartok@novell.com>
28709 - Added internal version of Invoke, with additional argument
28710 indicating if we're calling it from a Dispose() handler. That
28711 way we can avoid BeginInvoke throwing an exception if we're
28712 calling for an already destroyed window.
28713 - Added a dispose argument to BeginInvokeInternal, and made the
28714 check if a valid window handle chain exists conditional on
28715 it not being a dispose call
28716 - Removed code in DestroyHandle to destroy our children. Since we
28717 now handle the WM_DESTROY message we will catch all our children
28719 - Now calling OnHandleDestroyed from our new WM_DESTROY handler
28721 - Added a field to track the application context of the form.
28722 - No need to set closing variable as response to WM_CLOSE, instead
28723 we destroy the window. We also call PostQuitMessage if the form
28724 has an application context (which makes it the main app form,
28725 which, when closed terminates the app)
28727 - Dropped Exit() method, it's naming was confusing
28728 - Added PostQuitMessage() which causes GetMessage to return false
28729 once the message queue is empty
28730 * XplatUIDriver.cs, XplatUIWin32.cs: Dropped Exit(), added
28732 * XplatUIOSX.cs: Switched signature for Exit method since Exit() is
28733 no longer a valid XplatUI method, but left it in since it's used
28734 internally. Added empty PostQuitMessage() method.
28735 * MenuAPI.cs: Replaced call to Exit() with call to
28736 PostQuitMessage, even though this is probably no longer needed.
28737 * Hwnd.cs: Added 'pretty' ToString() to support debugging.
28738 * X11Structs.cs: Added pretty XEvent.ToString() to support debugging.
28740 - Replaced call to XplatUI.Exit() with PostQuitMessage()
28741 - Removed old debug code that would call XplatUI for exception
28742 display, enabled standard exception handling (Still not enabled
28743 though, until NativeWindow's ExternalExceptionHandler define
28746 - Added internal method to allow control to update NativeWindow
28747 after a window has been destroyed
28748 - Added handling of already destroyed windows when calling i
28750 - Added removal of handle from list on ReleaseHandle
28752 - Dropped GetMessageResult var and related code
28753 - Added PostQuitState to field to track if PostQuitMessage has been
28755 - Dropped Exit() method
28756 - Added PostQuitMessage() method
28757 - GetMessage now will return false if PostQuitState is set and no
28758 more messages are in the queue.
28759 - Expose handler will no longer generate WM_PAINT messages if we are
28760 in PostQuitState since it's very likely any windows have already
28761 been destroyed, and since Hwnd won't get updated until we have
28762 processed the DestroyNotify we'd be causing X errors.
28764 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
28766 * Control.cs(WndProc): Apparently I'm suffering from brain cloud.
28767 Thanks to Mike for pointing out the err of my ways.
28769 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
28771 * Control.cs(PreProcessMessage): Moved menu handling back, but
28772 after all other key handling, to match MS (who handles Menu in
28774 * Menu.cs (WndProc): Removed my brainfart
28776 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
28778 * Control.cs(PreProcessMessage): Removed special menu handling
28779 * Menu.cs (WndProc): Added handling of WM_SYSKEYUP for menu purposes.
28781 2005-12-07 Mike Kestner <mkestner@novell.com>
28783 * Control.cs : special case SYSKEYUP so that we can adjust keynav
28784 state according in tracker.
28785 * Menu.cs : promote tracker field to base class and provide a tracker
28786 lookup capability. Add/Remove shortcuts dynamically if the top menu
28787 has a tracker. Unparent items that are removed from the collection.
28788 * MenuAPI.cs : implement mnemonic, shortcut, and arrow-based keynav.
28789 * Theme*.cs: add always_show_hotkeys field to support configurability
28790 of mnemonic display. win32 doesn't show mnemonics until Alt is
28793 2005-12-07 Jackson Harper <jackson@ximian.com>
28795 * MdiChildContext.cs: Use Control.ResetCursor.
28796 * Control.cs: ResetCursor needs to set the property so that the
28797 correct XplatUI call gets made.
28799 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
28801 * Control.cs: More fixes to make our key events match MS. We
28802 were not setting the modifier state on KeyData, and we were
28803 not generating any events when Alt was pressed with a key
28804 since handling of WM_SYSxxx was missing for the OnKey methods.
28806 2005-12-07 Jackson Harper <jackson@ximian.com>
28808 * MdiChildContext.cs: reenable the sizing code.
28809 - When the mouse leaves a window reset its cursor.
28811 2005-12-07 Alexander Olk <alex.olk@googlemail.com>
28813 * ThemeClearlooks.cs: Reflect latest Hwnd changes
28815 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
28817 * Hwnd.cs: Now using the theme 3d bordersize to calculate
28818 widths of Fixed3D borders
28820 2005-12-07 Jackson Harper <jackson@ximian.com>
28822 * MdiClient.cs: Fix warnings. Earn Mike's love.
28824 2005-12-07 Alexander Olk <alex.olk@googlemail.com>
28826 * ThemeClearlooks.cs:
28827 - Adjusted mouse over button color
28828 - Added first parts of CheckBox drawing
28829 - Added correct color for selected text background
28830 - Fixed ComboBox drawing
28831 - Added CPDrawBorder3D and CPDrawBorder
28833 2005-12-06 Peter Dennis Bartok <pbartok@novell.com>
28835 * XplatUIX11.cs: Added call to XBell for AudibleAlert
28837 2005-12-06 Peter Dennis Bartok <pbartok@novell.com>
28839 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
28840 XplatUIOSX.cs: Added AudibleAlert() method to have a means to
28841 alert users via sound. We could add an enum arg with different
28842 types of alerts in the future
28844 2005-12-06 Peter Dennis Bartok <pbartok@novell.com>
28846 * Control.cs: Fix behaviour problems pointed out by Mike
28848 2005-12-05 Mike Kestner <mkestner@novell.com>
28850 * StatusBarPanel.cs: add Invalidate method and hook it into all the
28851 prop setters. Calls parent.Refresh for now, but could be maybe be
28852 optimized with an internal method on StatusBar at some point.
28855 2005-12-05 Peter Dennis Bartok <pbartok@novell.com>
28857 * RichTextBox.cs: Implemented get_SelectionColor
28859 2005-12-05 Alexander Olk <alex.olk@googlemail.com>
28861 * ThemeClearlooks.cs:
28862 - Removed dead code
28863 - Draw black button border only if button is Form.AcceptButton
28864 - Draw correct button color for pressed RadioButton if the mouse
28865 has entered the button
28866 - Updated ProgressBar drawing!
28867 - Updated CPDrawSizeGrip drawing
28868 - Updated StatusBarPanel drawing
28870 2005-12-05 Mike Kestner <mkestner@novell.com>
28872 * Control.cs (PreProcessMessage): add Keys.Alt based on LParam value.
28873 * X11Keyboard.cs (SendKeyboardInput): formal lParam for alt mod.
28875 2005-12-04 Alexander Olk <alex.olk@googlemail.com>
28877 * ThemeClearlooks.cs: Initial check-in, activate with
28878 export MONO_THEME=clearlooks
28879 * ThemeEngine.cs: Added ThemeClearlooks
28881 2005-12-03 Mike Kestner <mkestner@novell.com>
28883 * MenuAPI.cs: deactivate menus prior to calling item.PerformClick.
28886 2005-12-02 Jackson Harper <jackson@ximian.com>
28888 * Form.cs: If the child form has no menu the default main menu is
28889 used as the active menu.
28891 2005-12-02 Peter Dennis Bartok <pbartok@novell.com>
28893 * ListBox.cs: Check if any items exist before trying to resolve
28894 coordinates into items
28896 2005-12-02 Peter Dennis Bartok <pbartok@novell.com>
28898 * ThemeWin32Classic.cs: Hatchbrush on Win32 seems to always use white
28899 as the second color for the background hatch
28901 2005-12-02 Peter Dennis Bartok <pbartok@novell.com>
28903 * TextBoxBase.cs: Now uses Jackson's new and improved ImplicitScrollbar
28904 * RichTextBox.cs: FormatText position arguments are 1-based, now making
28905 sure that what we pass to FormatText is always 1-based. Fixes #76885
28907 2005-11-29 Miguel de Icaza <miguel@novell.com>
28909 * NumericUpDown.cs (EndInit): When we are done initializing,
28910 reflect any updates on the UI.
28912 2005-12-02 Jackson Harper <jackson@ximian.com>
28914 * ImplicitHScrollBar.cs:
28915 * ImplicitVScrollBar.cs: New scrollbars that don't take focus from
28916 their container controls.
28917 * TreeView.cs: Use the new implicit scrollbars.
28919 2005-12-02 Jackson Harper <jackson@ximian.com>
28921 * TreeView.cs: Make top_node internal so the TreeNodeCollections
28923 * TreeNodeCollection.cs: If we remove the topnode we need to
28924 update topnode to the next node in line.
28925 - When clearing nodes go through the same process as removing
28926 them, so they get depareneted and checked if they are top node.
28928 2005-12-01 Jackson Harper <jackson@ximian.com>
28930 * TreeView.cs: When imagelists are used the image area is
28931 selectable as well as the text.
28932 - If there are no selected nodes select the first one.
28933 * TreeNodeCollection.cs: Getting the TreeView is mildly expensive,
28934 so don't do it more then we need to.
28936 2005-12-01 Jackson Harper <jackson@ximian.com>
28938 * ThemeWin32Classic.cs: Reimplement the scroll arrow drawing so
28939 that arrows can be scaled.
28941 2005-12-01 Jackson Harper <jackson@ximian.com>
28943 * TreeNode.cs : Fixed bugs that caused FullPathTest + Traverse to
28944 fail. Patch by Dieter Bremes
28946 2005-11-30 Jackson Harper <jackson@ximian.com>
28948 * Form.cs: Property is 2.0 only
28949 * PrintDialog.cs: Signature fix.
28951 2005-11-30 Peter Dennis Bartok <pbartok@novell.com>
28954 - No longer artificially moves text 2 pixels down (now that we have
28955 borders this is no longer needed)
28956 - Added calcs for left, hanging and right indent
28958 2005-11-23 Mike Kestner <mkestner@novell.com>
28960 * Menu.cs: mark MenuChanged internal, since it's not exposed by MS.
28962 2005-11-30 Jackson Harper <jackson@ximian.com>
28964 * MdiChildContext.cs: Set the cloned menus forms, as these don't
28965 get cloned as part of CloneMenu ().
28966 * Menu.cs: Make sure the parent of the items get set correctly
28967 when they are added. And the owners are notified of the changes.
28968 * Form.cs: Create an ActiveMenu property, so that when MDI is used
28969 we can change the menu being displayed/handled by the form without
28970 changing the menu assosciated with the form.
28971 - Don't let Mdi children draw/handle menus.
28973 2005-11-30 Jackson Harper <jackson@ximian.com>
28975 * Menu.cs: Switch the MenuChanged method to OnMenuChanged and add
28976 a MenuChanged event. Just to make the API a little more
28979 * MenuItem.cs: Use the new OnMenuChanged
28980 * MdiChildContext.cs: Handle menu merging.
28981 * Form.cs: Implement MergedMenu.
28983 2005-11-30 Jackson Harper <jackson@ximian.com>
28985 * Menu.cs: We were misusing Add. Add goes behind the specified
28986 index according to the docs, and does not replace the specified
28987 index. So I added an Insert method.
28989 2005-11-30 Peter Dennis Bartok <pbartok@novell.com>
28991 * TextBoxBase.cs: Implemented Ctrl-Ins (Copy), Shift-Ins (Paste) and
28992 Shift-Del (Cut), apparently Emacs uses these old Win 2.x keys. This
28994 * RichTextBox.cs: Added calls to base for DnD events
28996 2005-11-28 Peter Dennis Bartok <pbartok@novell.com>
28999 - Fixed drag-selection related crash; style fixes
29000 - Implemented undo class
29001 o Implemented method to capture document state for specified
29002 range in document tree
29003 o Implemented method to restore captured document state
29004 o Implemented cursor tracking
29005 o Implemented basic undo stack
29006 - Added undo cursor tracking to methods altering cursor location
29007 - Added undo tracking to selection deletion (still missing
29008 other text-altering hookups)
29010 - Added SelectionLength property
29011 - Implemented CanPaste()
29012 - Implemented Paste()
29013 - Added missing protected methods
29014 - Fixed RTF->Document conversion; now uses font index 0 and color
29015 index 0 as the default font for the parsed text
29016 - Fixed RTF<->Document font size translation
29017 - Fixed RTF generation, now properly handles cross-tag boundaries
29018 for single line selection
29019 - No longer always appends blank line to generated RTF
29021 - Added missing attributes
29022 - Hooked up undo-related methods
29024 - Implemented Copy()
29025 - Implemented Paste()
29026 - Implemented Cut()
29027 - Fixed caret mis-behaviour on backspace across line-boundaries
29029 2005-11-29 Jackson Harper <jackson@ximian.com>
29031 * MdiClient.cs: Add a method for activating mdi children. Very
29032 basic right now. I imagine someday it might need more girth.
29033 * MenuItem.cs: Implement MDI lists. When mdilist is true the mdi
29034 children windows names are added to the menu item.
29035 * ThemeWin32Classic.cs: Draw the arrow if the item is an
29036 mdilist. This happens regardless of whether or not there are any
29037 mdi windows to see in the list, and according to my tests happens
29038 before the items are even added. Also happens if there isn't even
29039 an mdi client to get windows from.
29041 2005-11-29 Alexander Olk <alex.olk@googlemail.com>
29043 * ThemeWin32Classic.cs: Make DrawFlatStyleRadioButton protected
29044 * ThemeNice.cs: Fix drawing of flatstyle radiobuttons
29046 2005-11-29 Jordi Mas i Hernandez <jordimash@gmail.com>
29048 * DataGridTableStyle.cs:
29049 - Create always the styles for the missing columns even if they are
29050 provided by the user (not default table style)
29053 - Fixes SetDataBinding (always re-attach source)
29054 - Fixes SetNewDataSource (only clear styles if they are not for
29056 - Expands OnTableStylesCollectionChanged to handle style refresh
29057 and remove properly
29059 2005-11-29 Jackson Harper <jackson@ximian.com>
29061 * FileDialog.cs: Implement missing bits, remove some dead
29063 * FontDialog.cs: Implement missing Apply stuff, and ToString. Move
29064 creation of the panel so that the options set on the dialog are
29065 seen when the panel is created.
29066 * TreeView.cs: raise a click when items are clicked.
29068 2005-11-29 Jackson Harper <jackson@ximian.com>
29070 * MdiClient.cs: Pass some signature methods through to base.
29072 2005-11-28 Jackson Harper <jackson@ximian.com>
29074 * ListView.cs: Raise the click event when items are clicked.
29076 2005-11-28 Jackson Harper <jackson@ximian.com>
29078 * MdiClient.cs: Make this algorithm even more beautiful. And fix
29081 2005-11-27 Alexander Olk <alex.olk@googlemail.com>
29083 * ThemeNice.cs: - Removed 1 pixel bitmaps
29084 - Use SmoothingMode.AntiAlias where it makes sense
29085 (ScrollButton arrow for example)
29086 - Enhanced Button focus drawing
29087 - Fixed ComboBox drawing (no artefacts anymore, focus
29088 rectangle is back again, reduced size of ComboButton, etc.)
29089 - Fixed RadioButton focus drawing for Appearence.Button
29090 - Slight ScrollButton redesign
29091 - Some LinearGradientBrush size fixes
29092 - GroupBoxes have now rounded edges
29093 - Fixed StatusBar drawing
29095 2005-11-25 Alexander Olk <alex.olk@googlemail.com>
29097 * ThemeNice.cs: - Remove dead code
29098 - use correct background colors for menus, etc.
29099 - Fake pixel drawing with 1 pixel bitmaps
29101 2005-11-24 Jackson Harper <jackson@ximian.com>
29103 * MdiClient.cs: Size the scrollbars when resizing the window.
29104 - Resize the maximized windows when the client is resized
29105 * Form.cs: Make the child context available
29107 2005-11-23 Jackson Harper <jackson@ximian.com>
29109 * MdiChildContext.cs: Don't size windows if they are maximized.
29111 2005-11-23 Mike Kestner <mkestner@novell.com>
29113 * ContextMenu.cs: use MenuTracker.
29114 * Control.cs: remove menu handle usage.
29115 * Form.cs: remove menu handle usage.
29116 * Hwnd.cs: remove menu handle usage.
29117 * MainMenu.cs: Draw method moved here from MenuAPI.DrawMenuBar. Proxy
29118 motion and clicks to the new Tracker handlers.
29119 * Menu.cs: add sizing accessors, SelectedItem prop, kill CreateItems
29121 * MenuAPI.cs: refactored to combine popup and menubar event handling.
29122 Killed the MENU and MENUITEM data types and associated collections
29123 since we now keep the info on Menu and MenuItem. Expanded TRACKER into
29124 MenuTracker class that exposes the leftovers from the old MenuAPI
29125 static methods. Restructured Capture handling so that only one grab is
29126 done for the entire menu hierarchy instead of handing off grabs to
29127 submenus. Tracker now has an invisible control to Capture when active.
29128 * MenuItem.cs: add sizing accessors, kill Create
29130 * Theme.cs: remove menu handle and MENU(ITEM) usage.
29131 * ThemeWin32Classic.cs: use Menu/MenuItem sizing props instead of
29132 MENU(ITEM). remove menu handle usage, use Menu directly.
29133 * XplatUIDriver.cs: remove menu handle usage.
29134 * XplatUIOSX.cs: remove menu handle usage.
29135 * XplatUIWin32.cs: remove menu handle usage.
29136 * XplatUIX11.cs: remove menu handle usage.
29138 2005-11-22 Jackson Harper <jackson@ximian.com>
29140 * Hwnd.cs: Don't compute the menu size for
29141 DefaultClientRectangle.
29142 - Reenable menu sizes being computed for GetClienRectangle.
29143 * Form.cs: Remove comment of trechery
29145 2005-11-22 Jackson Harper <jackson@ximian.com>
29147 * Hwnd.cs: The adjustments for the menu bar are made when it is
29148 attached to the form.
29150 2005-11-19 Jackson Harper <jackson@ximian.com>
29152 * XplatUIX11.cs: Create an HGRN of the invalid area for WM_NCPAINT
29153 (just like on windows).
29155 2005-11-19 Jackson Harper <jackson@ximian.com>
29157 * MdiChildContext.cs: Handle all the buttons ourselves. We can't
29158 use real buttons anymore because they are in non client area. The
29159 one TODO here is that I need to somehow invalidate a section of
29160 the non client area.
29162 2005-11-18 Jackson Harper <jackson@ximian.com>
29164 * Control.cs: Put the enum check back in now that MDI doesnt have
29165 to use this to set border styles.
29166 * Form.cs: Only set mdi child windows borders if the handle has
29168 * MdiChildContext.cs: Don't set the InternalBorderStyle, just pass
29169 this directly on to the driver.
29170 - Get the move start position before adjusting for the titlebar
29171 height, this fixes the windows "skipping" when they are first
29174 2005-11-18 Jackson Harper <jackson@ximian.com>
29176 * XplatUIX11.cs: Just compute the mdi borders separately as they
29177 don't totally match up with normal form borders.
29179 2005-11-18 Jackson Harper <jackson@ximian.com>
29181 * Control.cs: Set WS_ styles for borders, so that the driver does
29182 not have to retrieve the control instance to figure out what kind
29183 of borders it should have.
29184 * Form.cs: Set the WS_EX_MDICHILD flag on mdi children, so the
29185 driver can know its an mdi child easily.
29186 * XplatUIX11.cs: Get the border styles and whether the window is
29187 MDI from the Styles and ExStyles params instead of having to get a
29188 control. This prevents a chicken and egg problem.
29190 2005-11-18 Jackson Harper <jackson@ximian.com>
29192 * MdiClient.cs: Fix typo so scrollbars show up correctly.
29194 2005-11-18 Jackson Harper <jackson@ximian.com>
29196 * MdiClient.cs: Calculate when to add and remove scrollbars
29198 * MdiChildContext.cs: Adjust the y position to take the titlebar
29200 - No height for FormBorderStyle.None
29202 2005-11-18 Jackson Harper <jackson@ximian.com>
29204 * Control.cs: Allow non enum values to be used for
29205 InternalBorderStyle. MDI does this to set a special border style.
29206 - New utility methods for converting points to/from client coords
29207 - Add the newly created control to the Controls collection before
29208 updating its style. This way UpdateStyle can walk the control
29209 heirarchy to find the control if needed.
29210 so I don't need to create a new Point object all the time.
29211 * Form.cs: Let MDI windows handle their border styles.
29212 - Set styles on MDI windows so the correct title style is derived.
29213 * MdiChildContext.cs: Move all the painting and window handling
29214 into the non client area.
29215 - Use correct sizing and put correct buttons on frames based on
29216 the FormBorderStyle.
29217 - Notify the mdi client about scrolling
29218 - Need to handle the buttons ourselves now, because they are all
29219 in non client areas and we can't add controls there.
29220 * MdiClient.cs: Halfway to scrolling, this implementation is
29221 somewhat broken though, we need to check to make sure other
29222 windows aren't causing scrolling before removing the bars. Also
29223 the bars need to be drawn on top, maybe I can switch implicit
29224 controls to be on top.
29225 * Hwnd.cs: caption_height and tool_caption_height are now
29226 properties of an hwnd, this way they can be set by the driver
29227 based on the type of window they are. In X11 the window manager
29228 handles the decorations so caption_height is zero unless its an
29230 - Add 3 pixel borders for MDI windows (0xFFFF).
29231 - Get rid of some code duplication, have DefaultClientRectanle
29232 just call GetClientRectangle.
29233 * XplatUIX11.cs: Pass caption_height and tool_caption_height to
29235 - Set border styles differently for mdi windows.
29236 * XplatUIOSX.cs: Pass caption_height and tool_caption_height to
29239 2005-11-15 Mike Kestner <mkestner@novell.com>
29241 * Menu.cs: when adding an item to the collection, if item is already
29242 parented, remove it from the parent.
29244 2005-11-13 Alexander Olk <alex.olk@googlemail.com>
29246 * X11DesktopColors.cs: Added KDE support
29248 2005-11-11 Peter Dennis Bartok <pbartok@novell.com>
29251 - Clipboard methods now can translate Rtf format
29252 - No longer removes clipboard contents whenever a new format is added
29253 to allow placing multiple formats on the clipboard
29254 * Clipboard.cs: Clipboard now supports getting a IDataObject and
29255 will place all formats contained in it onto the clipboard. Also
29256 now cleans the clipboard before placing a new object onto it
29258 - Implemented set_Rtf
29259 - Implemented set_SelectedRtf
29260 - Created InsertRTFFromStream() method to allow single code base
29261 for all properties and methods that insert RTF into document
29262 - Removed debug output
29264 - Fixed Delete(int) to fix up line numbers
29265 - Fixed ReplaceSelection to combine start and end line
29266 - Fixed serious DeleteChars bug that would leave the document tree
29268 - Improved DumpTree with several logic checks to detect broken
29270 - Removed debug lines
29271 - Fixed Caret.WordForward/WordBack moving code, now always also
29272 updates caret.tag (fixes crash when word-selecting across tag
29273 boundaries via keyboard)
29274 - Added Insert() method for inserting multiline text into documents
29275 - Fixed DeleteChars() calculation errors that would cause a broken
29276 tag chain with multiple tag lines
29277 - DeleteChars() no longer crashes on multi-tag lines if not all tags
29278 - Split() no longer moves caret if split is at caret location
29279 - ReplaceSelection() now updates the cursor and re-displays it
29280 - ReplaceSelection() now uses new Insert() method to avoid code
29282 - FormatText() can now handle formatting partial lines
29284 - Append now uses new TextControl.Insert() method (this avoids
29286 - Implemented Ctrl-X (Cut) (
29287 - Implemented Ctrl-C (Copy)
29288 - Implemented Ctrl-V (Paste) (Still some bugs related to screen
29289 regeneration when pasting text; roundtripping Copy&Paste within
29290 edit control still fails due to some calculation bugs in GenerateRTF)
29291 - The Delete key will now remove the current selection if it is visible
29292 * TextBox.cs: Removed debug lines
29293 * XplatUI.cs: Trigger initialization of DataFormats (which requires the
29294 driver to be initialized and can't therefore be done via a static ctor)
29296 2005-11-10 Peter Dennis Bartok <pbartok@novell.com>
29298 * TextControl.cs: Added backend code for finding char arrays and strings
29300 - Added mouse wheel scroll support
29301 - Added support for VScroll and HScroll events
29303 - Implemented all seven Find() variants
29304 - Implemented GetCharFromPosition()
29305 - Implemented GetCharIndexFromPosition()
29306 - Implemented GetLineFromIndex()
29307 - Implemented GetPositionFromCharIndex();
29308 - Implemented SaveFile for PlainText and UnicodeText
29309 - Fixed set_Font, now setting a new font applies that font to
29311 - Implemented generic Document to RTF converter
29312 - Implemented SaveFile for RichText format (still missing unicode
29313 conversion for non-ansi chars)
29314 - Implemented get_Rtf
29315 - Implemented get_SelectedRtf
29317 2005-11-09 Peter Dennis Bartok <pbartok@novell.com>
29319 * Control.cs (WndProc): Call HandleClick after having sent OnMouseUp
29320 to allow any captures to be released before triggering OnClick. This
29321 way a click handler may capture the mouse without interference.
29322 * XplatUIX11.cs: Always send mouse messages to grab window if one exists.
29323 This way we send them even though X may not allow a grab (if the window
29324 isn't visible, for example)
29326 2005-11-08 Pedro Martinez Julia <pedromj@gmail.com>
29328 * DataGridViewRowEventArgs.cs: DataGridView implementation
29329 * DataGridViewElement.cs: DataGridView implementation
29330 * DataGridViewComboBoxCell.cs: DataGridView implementation
29331 * DataGridViewDataErrorContexts.cs: DataGridView implementation
29332 * DataGridViewCellErrorTextNeededEventArgs.cs: DataGridView implementation
29333 * DataGridViewColumnHeadersHeightSizeMode.cs: DataGridView implementation
29334 * ImageLayout.cs: DataGridView implementation
29335 * DataGridViewComboBoxColumn.cs: DataGridView implementation
29336 * DataGridViewCellMouseEventHandler.cs: DataGridView implementation
29337 * DataGridViewSelectionMode.cs: DataGridView implementation
29338 * IDataGridViewEditingControl.cs: DataGridView implementation
29339 * DataGridViewSortCompareEventHandler.cs: DataGridView implementation
29340 * DataGridViewCellStyleContentChangedEventHandler.cs: DataGridView implementation
29341 * DataGridViewAutoSizeModeEventHandler.cs: DataGridView implementation
29342 * DataGridViewColumnStateChangedEventHandler.cs: DataGridView implementation
29343 * DataGridViewColumnSortMode.cs: DataGridView implementation
29344 * DataGridView.cs: DataGridView implementation
29345 * DataGridViewRowStateChangedEventHandler.cs: DataGridView implementation
29346 * DataGridViewRowPostPaintEventArgs.cs: DataGridView implementation
29347 * DataGridViewDataErrorEventArgs.cs: DataGridView implementation
29348 * Padding.cs: DataGridView implementation
29349 * DataGridViewCellParsingEventArgs.cs: DataGridView implementation
29350 * DataGridViewCellStateChangedEventHandler.cs: DataGridView implementation
29351 * DataGridViewRowEventHandler.cs: DataGridView implementation
29352 * DataGridViewCellPaintingEventHandler.cs: DataGridView implementation
29353 * DataGridViewCellFormattingEventHandler.cs: DataGridView implementation
29354 * DataGridViewButtonCell.cs: DataGridView implementation
29355 * DataGridViewCellStyleContentChangedEventArgs.cs: DataGridView implementation
29356 * DataGridViewEditMode.cs: DataGridView implementation
29357 * DataGridViewCellValueEventArgs.cs: DataGridView implementation
29358 * DataGridViewRowCancelEventArgs.cs: DataGridView implementation
29359 * DataGridViewRowHeadersWidthSizeMode.cs: DataGridView implementation
29360 * DataGridViewCheckBoxColumn.cs: DataGridView implementation
29361 * DataGridViewCellToolTipTextNeededEventHandler.cs: DataGridView implementation
29362 * DataGridViewAutoSizeColumnsMode.cs: DataGridView implementation
29363 * DataGridViewCellEventHandler.cs: DataGridView implementation
29364 * DataGridViewEditingControlShowingEventHandler.cs: DataGridView implementation
29365 * DataGridViewCellStyleConverter.cs: DataGridView implementation
29366 * DataGridViewSelectedRowCollection.cs: DataGridView implementation
29367 * DataGridViewBindingCompleteEventHandler.cs: DataGridView implementation
29368 * DataGridViewColumnEventArgs.cs: DataGridView implementation
29369 * DataGridViewRowHeightInfoPushedEventHandler.cs: DataGridView implementation
29370 * DataGridViewRowContextMenuStripNeededEventHandler.cs: DataGridView implementation
29371 * QuestionEventArgs.cs: DataGridView implementation
29372 * IDataGridViewEditingCell.cs: DataGridView implementation
29373 * DataGridViewTriState.cs: DataGridView implementation
29374 * DataGridViewColumnDesignTimeVisibleAttribute.cs: DataGridView implementation
29375 * DataGridViewCellStateChangedEventArgs.cs: DataGridView implementation
29376 * DataGridViewColumnCollection.cs: DataGridView implementation
29377 * DataGridViewCellValueEventHandler.cs: DataGridView implementation
29378 * DataGridViewRowDividerDoubleClickEventHandler.cs: DataGridView implementation
29379 * DataGridViewCellFormattingEventArgs.cs: DataGridView implementation
29380 * DataGridViewColumn.cs: DataGridView implementation
29381 * DataGridViewCellBorderStyle.cs: DataGridView implementation
29382 * DataGridViewCellContextMenuStripNeededEventHandler.cs: DataGridView implementation
29383 * DataGridViewCellValidatingEventArgs.cs: DataGridView implementation
29384 * DataGridViewRow.cs: DataGridView implementation
29385 * DataGridViewImageCellLayout.cs: DataGridView implementation
29386 * DataGridViewImageCell.cs: DataGridView implementation
29387 * DataGridViewTopLeftHeaderCell.cs: DataGridView implementation
29388 * DataGridViewCheckBoxCell.cs: DataGridView implementation
29389 * DataGridViewHeaderCell.cs: DataGridView implementation
29390 * DataGridViewCellErrorTextNeededEventHandler.cs: DataGridView implementation
29391 * DataGridViewRowHeightInfoPushedEventArgs.cs: DataGridView implementation
29392 * DataGridViewAutoSizeColumnsModeEventHandler.cs: DataGridView implementation
29393 * DataGridViewTextBoxColumn.cs: DataGridView implementation
29394 * QuestionEventHandler.cs: DataGridView implementation
29395 * DataGridViewCellStyleScopes.cs: DataGridView implementation
29396 * DataGridViewSortCompareEventArgs.cs: DataGridView implementation
29397 * DataGridViewCellContextMenuStripNeededEventArgs.cs: DataGridView implementation
29398 * DataGridViewCell.cs: DataGridView implementation
29399 * DataGridViewCellEventArgs.cs: DataGridView implementation
29400 * DataGridViewClipboardCopyMode.cs: DataGridView implementation
29401 * DataGridViewCellStyle.cs: DataGridView implementation
29402 * DataGridViewColumnHeaderCell.cs: DataGridView implementation
29403 * DataGridViewRowPrePaintEventHandler.cs: DataGridView implementation
29404 * DataGridViewRowCancelEventHandler.cs: DataGridView implementation
29405 * TextFormatFlags.cs: DataGridView implementation
29406 * DataGridViewCellToolTipTextNeededEventArgs.cs: DataGridView implementation
29407 * DataGridViewDataErrorEventHandler.cs: DataGridView implementation
29408 * DataGridViewAdvancedCellBorderStyle.cs: DataGridView implementation
29409 * DataGridViewCellPaintingEventArgs.cs: DataGridView implementation
29410 * DataGridViewButtonColumn.cs: DataGridView implementation
29411 * DataGridViewRowsRemovedEventArgs.cs: DataGridView implementation
29412 * HandledMouseEventArgs.cs: DataGridView implementation
29413 * DataGridViewCellParsingEventHandler.cs: DataGridView implementation
29414 * DataGridViewColumnDividerDoubleClickEventHandler.cs: DataGridView implementation
29415 * DataGridViewCellMouseEventArgs.cs: DataGridView implementation
29416 * DataGridViewAutoSizeRowsMode.cs: DataGridView implementation
29417 * DataGridViewRowCollection.cs: DataGridView implementation
29418 * DataGridViewAdvancedBorderStyle.cs: DataGridView implementation
29419 * DataGridViewCellCancelEventHandler.cs: DataGridView implementation
29420 * DataGridViewHitTestType.cs: DataGridView implementation
29421 * DataGridViewAutoSizeModeEventArgs.cs: DataGridView implementation
29422 * DataGridViewColumnStateChangedEventArgs.cs: DataGridView implementation
29423 * DataGridViewColumnEventHandler.cs: DataGridView implementation
29424 * DataGridViewRowDividerDoubleClickEventArgs.cs: DataGridView implementation
29425 * DataGridViewAutoSizeRowMode.cs: DataGridView implementation
29426 * DataGridViewRowHeightInfoNeededEventArgs.cs: DataGridView implementation
29427 * DataGridViewRowsDeletedEventArgs.cs: DataGridView implementation
29428 * DataGridViewTextBoxEditingControl.cs: DataGridView implementation
29429 * DataGridViewContentAlignment.cs: DataGridView implementation
29430 * DataGridViewRowPostPaintEventHandler.cs: DataGridView implementation
29431 * DataGridViewComboBoxEditingControl.cs: DataGridView implementation
29432 * DataGridViewCellValidatingEventHandler.cs: DataGridView implementation
29433 * DataGridViewSelectedColumnCollection.cs: DataGridView implementation
29434 * DataGridViewPaintParts.cs: DataGridView implementation
29435 * DataGridViewCellCollection.cs: DataGridView implementation
29436 * DataGridViewRowsAddedEventArgs.cs: DataGridView implementation
29437 * DataGridViewImageColumn.cs: DataGridView implementation
29438 * DataGridViewRowsRemovedEventHandler.cs: DataGridView implementation
29439 * DataGridViewElementStates.cs: DataGridView implementation
29440 * DataGridViewRowHeightInfoNeededEventHandler.cs: DataGridView implementation
29441 * DataGridViewColumnDividerDoubleClickEventArgs.cs: DataGridView implementation
29442 * DataGridViewRowPrePaintEventArgs.cs: DataGridView implementation
29443 * DataGridViewRowStateChangedEventArgs.cs: DataGridView implementation
29444 * DataGridViewEditingControlShowingEventArgs.cs: DataGridView implementation
29445 * DataGridViewCellCancelEventArgs.cs: DataGridView implementation
29446 * DataGridViewRowHeaderCell.cs: DataGridView implementation
29447 * DataGridViewBindingCompleteEventArgs.cs: DataGridView implementation
29448 * DataGridViewTextBoxCell.cs: DataGridView implementation
29449 * DataGridViewBand.cs: DataGridView implementation
29450 * DataGridViewAutoSizeColumnModeEventArgs.cs: DataGridView implementation
29451 * DataGridViewHeaderBorderStyle.cs: DataGridView implementation
29452 * DataGridViewRowsAddedEventHandler.cs: DataGridView implementation
29453 * DataGridViewAutoSizeColumnMode.cs: DataGridView implementation
29454 * DataGridViewAutoSizeColumnModeEventHandler.cs: DataGridView implementation
29455 * DataGridViewAutoSizeColumnsModeEventArgs.cs: DataGridView implementation
29456 * DataGridViewRowErrorTextNeededEventHandler.cs: DataGridView implementation
29457 * DataGridViewSelectedCellCollection.cs: DataGridView implementation
29458 * DataGridViewRowContextMenuStripNeededEventArgs.cs: DataGridView implementation
29459 * DataGridViewRowErrorTextNeededEventArgs.cs: DataGridView implementation
29460 * DataGridViewComboBoxDisplayStyle.cs: DataGridView implementation
29462 2005-11-08 Peter Dennis Bartok <pbartok@novell.com>
29464 * ThemeWin32Classic.cs:
29465 - Draw the outside focus rectangle around buttons
29466 - Use CPDrawFocusRectangle to draw focus rectangles until Cairo
29467 doesn't use end caps for every dash of a line anymore. This
29468 workaround ignores the forecolor.
29470 2005-11-08 KornĂ©l PĂ¡l <kornelpal@hotmail.com>
29472 * ImageList.cs: Don't use ArgbColor with LayoutKind.Explicit as it isn't
29475 2005-11-07 Jackson Harper <jackson@ximian.com>
29477 * X11Dnd.cs: Set the X/Y positions on the DragEventArgs correctly.
29479 2005-11-07 Jackson Harper <jackson@ximian.com>
29481 * ScrollableControl.cs: Calculate the maximum and change vars
29482 (more) correctly so that scrollbars appear as a sensible size.
29484 2005-11-04 Jackson Harper <jackson@ximian.com>
29486 * TreeNodeCollection.cs: Refresh when nodes are cleared from the
29488 * TreeView.cs: When the tree is sorted null out the top_node so
29489 that it is recalculated.
29490 - Use dotted lines instead of dashed lines to match MS better.
29492 2005-11-04 Jordi Mas i Hernandez <jordimash@gmail.com>
29495 - Implements key search for items. Useful when browsing files with FileDialog
29496 - When changing view mode or when clear the items reset scrollbar positions
29498 2005-11-04 Jackson Harper <jackson@ximian.com>
29500 * CurrencyManager.cs: Implement the MetaDataChanged event, the
29501 Reset method, and the CheckEmpty. CheckEmpty is just a total guess
29502 as to what the method may do as there is no real way of creating a
29503 derived CurrencyManager and calling the method.
29505 2005-11-03 Jackson Harper <jackson@ximian.com>
29507 * ThemeWin32Classic.cs: Implement ownerdrawing in the tab control
29508 * TabControl.cs: Add Ownerdrawing bits, add the UpdateTabSelection
29509 method which seems to just be used internally to refresh the tabs.
29511 2005-11-03 Jackson Harper <jackson@ximian.com>
29513 * TabControl.cs: Implement the remove method. Fix some broken
29516 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
29518 * DateTimePicker.cs:
29519 - Added missing DateTimePickerAccessibleObject class
29520 - Added missing events
29521 - Added OnFontChanged method
29522 * Form.cs: Added missing attributes
29523 * TreeView.cs: Added missing attributes
29525 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
29527 * GridItemCollection.cs: Fix signatures
29529 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
29531 * XplatUI.cs: Updated build rev/date
29532 * ComboBox.cs, DataGridTextBoxColumn.cs Control.cs,
29533 DataGridTableStyle.cs, DataGrid.cs, DateTimePicker.cs: Signature fixes
29534 * Application.cs: Trigger context-specific ExitThread events
29536 2005-11-03 Jackson Harper <jackson@ximian.com>
29540 * GridTableStylesCollection.cs:
29545 * MonthCalendar.cs: Signature fixes
29547 2005-11-03 Jackson Harper <jackson@ximian.com>
29549 * TreeNodeCollection.cs: Remove should not be virtual.
29550 * TreeView.cs: Implement the last of the missing methods.
29552 2005-11-03 Jackson Harper <jackson@ximian.com>
29554 * TreeNodeConverter.cs: Implement to get off my class-status back.
29556 2005-11-03 Jackson Harper <jackson@ximian.com>
29558 * TreeView.cs: Hookup the bits for drag and drop.
29559 * TreeNode.cs: Don't cache the tree_view or index anymore, now
29560 that nodes can be moved from tree to tree easily this just causes
29561 all sorts of problems.
29562 * TreeNodeCollection: Don't need to give treenodes an index and
29563 treeview anymore when they are added, these are computed on the
29564 fly. Also make sure to remove a node before its added.
29566 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
29569 - Added CaretSelection enum
29570 - Added comparison methods to Marker struct, makes selection code
29572 - Added SelectionStart and SelectionEnd as 'moveable' location for
29573 the CaretDirection enum and handler
29574 - Added selection_prev variable to track optimized invalidation for
29575 word and line selection
29576 - Added SelectionVisible property (returns true if there is a valid
29578 - Switched CaretHasFocus to only display the caret if there is no
29580 - Avoiding StringBuilder.ToString to retrieve a single char, instead
29581 using the direct character index; should be much faster
29582 - Added various conditional debug statements
29583 - Fixed invalidation calculation for selection ranges
29584 - Added ExpandSelection() method to support word and line selection
29585 - Switched SetSelectionToCaret to use new Marker compare overloads
29586 - Added central IsWordSeparator() method to determine word
29587 separators/whitespace and FindWordSeparator() to streamline common
29588 usage of IsWordSeparator()
29590 - Removed unneeded grabbed variable, it was just mirroring
29592 - No longer firing OnTextChanged event when Text setter is called,
29593 since the base will fire the event for us
29594 - Added handling of Ctrl-Up/Down selection
29595 - Added handling of Shift-Cursorkey selection
29596 - Added handling for Ctrl-Delete and Ctrl-Backspace to remove
29598 - Added handling of Shift and Ctrl-Shift-Home/End selection
29599 - Removed some debug output
29600 - Added handling for single/double/tripple-click to place caret/
29601 select word/select line respectively (Fixes bug #76031)
29602 - Added support for drag expansion of word/line selection
29603 * RichTextBox.cs: Handle GotFocus event to trigger redrawing of
29606 2005-11-02 Jackson Harper <jackson@ximian.com>
29608 * X11Dnd.cs: If the drag is going to and from a MWF window just
29609 copy the data instead of sending it out through the X Selection
29612 2005-11-02 Jackson Harper <jackson@ximian.com>
29615 * XplatUIX11.cs: When in a drag we don't want motion notify
29616 messages to get passed on to the other controls. This prevents
29617 mouse move messages from showing up in the drag source.
29619 2005-11-02 Jackson Harper <jackson@ximian.com>
29621 * X11Dnd.cs: Remove unneeded call to XAllowEvents. Make sure that
29622 the correct button is release to end a drag.
29623 * XplatUIX11.cs: Make the button state internal so the drag system
29624 can access it. Dragging needs to know about all button releases,
29625 not just left button.
29627 2005-11-02 Miguel de Icaza <miguel@novell.com>
29629 * Form.cs (Icon): If the icon is null, reset the icon to the
29632 * Cursor.cs: When writing the AND-mask bitmap do not include the
29633 number of colors, but hardcode those to two (black and white),
29634 fixes the loading of color cursors (Paint Dot Net).
29636 * Form.cs: To debug, allow MONO_MWF_SCALING=disable variable to
29637 turn off autoscaling.
29639 * Cursor.cs: Allow resource type to be 1 or 2 (from ImageMagic).
29641 2005-11-02 Jackson Harper <jackson@ximian.com>
29643 * X11Dnd.cs: Make sure to send a status message if the pointer
29644 enters a control that can not accept a drop, otherwise the cursor
29645 isn't updated correctly. Also tried to compress the lines of code
29648 2005-11-02 Jackson Harper <jackson@ximian.com>
29650 * X11Dnd.cs: Change cursors based on drag action. Also attempt to
29651 set actions correctly. This isn't perfect as XDND and win32 have
29652 some differences on how you allow actions. I'll clear this up by
29653 adding a path for drag from MWF to MWF windows.
29654 * XplatUIX11.cs: Hook into the dnd system.
29656 2005-11-02 Jordi Mas i Hernandez <jmas@softcatala.org>
29658 * ListView.cs: Fixes scroll bar visibility. Hide them if they were
29659 previously shown but they are no longer need it. Very obvious when
29660 browsing files with FileDialog.
29662 2005-11-01 Peter Dennis Bartok <pbartok@novell.com>
29664 * Control.cs: We always need to call OnPaintBackground. We pretty much
29665 ignore AllPaintingInWmPaint and always do the painting there, whether
29666 it's set or not, since we always ignore the WM_ERASEBKGND message
29667 (which we don't generate on X11). This fixes #76616.
29668 * Panel.cs: Removed unneeded background painting. This happens properly
29669 in Control.cs already
29671 2005-10-31 Mike Kestner <mkestner@novell.com>
29673 * Menu.cs: Add items to collection before setting their index.
29674 * MenuItem.cs : add range checking with ArgumentException like MS.
29677 2005-10-31 Jackson Harper <jackson@ximian.com>
29679 * ListBox.cs: Invalidate if the area is visible at all not just
29680 contained in the visible rect. Fixes unselection of semi visible
29683 2005-10-31 Jackson Harper <jackson@ximian.com>
29685 * Control.cs: Consistently name the dnd methods. Make them
29686 internal so we can override them to match some MS behavoir
29688 * Win32DnD.cs: Use the new consistent names.
29690 2005-10-31 Jackson Harper <jackson@ximian.com>
29692 * TreeView.cs: Don't draw the selected node when we lose focus.
29694 2005-10-31 Jackson Harper <jackson@ximian.com>
29696 * X11Dnd.cs: We still need to reset the state even though a full
29697 reset isn't being done, otherwise status's still get sent all over
29700 2005-10-31 Jackson Harper <jackson@ximian.com>
29702 * Control.cs: Make the dnd_aware flag internal so the dnd
29703 subsystem can check it. Catch exceptions thrown in dnd handlers to
29705 * Hwnd.cs: Add a flag for whether or not a window is dnd aware.
29706 * X11Dnd.cs: Handle null data in the converters. Set the XDND
29707 version when sending a XdndEnter. Use the control/hwnd dnd_aware
29708 flags to reduce the number of dnd enters/status's sent.
29710 2005-10-31 Jackson Harper <jackson@ximian.com>
29712 * X11Dnd.cs: Don't need the sizeof here. Patch by Jordi Mas.
29714 2005-10-31 Jordi Mas i Hernandez <jordi@ximian.com>
29716 * PictureBox.cs: Fixes 76512
29718 2005-10-28 Jackson Harper <jackson@ximian.com>
29720 * X11Dnd.cs: Early implementation to support winforms being a drag
29721 source for data on X11. Also restructured the converters so they
29722 can go both ways now.
29723 * XplatUIX11.cs: Tie ins to the the Dnd stuff.
29725 2005-10-27 Peter Dennis Bartok <pbartok@novell.com>
29727 * XplatUIX11.cs: Fixed FIXME - implemented ASCII encoding for XA_STRING
29730 2005-10-27 Jackson Harper <jackson@ximian.com>
29732 * TreeNode.cs: Implement serialization so my DnD examples will work.
29734 2005-10-24 KornĂ©l PĂ¡l <kornelpal@hotmail.com>
29736 * ButtonBase.cs, ListView.cs, NotifyIcon.cs, PictureBox.cs, ToolBar.cs,
29737 TreeView.cs: Don't dispose objects that are not owned.
29739 2005-10-24 Peter Dennis Bartok <pbartok@novell.com>
29741 * Cursor.cs: Defaulting the Current cursor to Cursors.Default. We
29742 should retrieve the current cursor and report that, but XplatUI
29743 doesn't (yet) have an interface for that (and I'm not sure I even
29745 * XplatUIWin32.cs: Fixed override behaviour. The override is temporary,
29746 until any message loop processing is done (and the WM_SETCURSOR
29747 replaces the cursor to the proper one)
29749 - Fixed override behaviour, we can't set the cursor globally on X11,
29750 just for our windows.
29751 - Invalidating the System.Drawing X11 display handle when we are
29753 * Control.cs: Fix to make csc happy
29755 2005-10-23 Peter Dennis Bartok <pbartok@novell.com>
29758 - get_Text: Add last line (without trailing newline) to returned
29759 value (Fixes 76212)
29760 - get_TextLength: Count last line in returned length
29761 - ToString: Call Text property instead of duplicating code
29763 2005-10-23 KornĂ©l PĂ¡l <kornelpal@hotmail.com>
29765 * ImageList.cs: Dispose ImageAttributes objects.
29767 2005-10-22 KornĂ©l PĂ¡l <kornelpal@hotmail.com>
29769 * ImageList.cs: Use attribute constructors with less arguments where
29772 2005-10-22 KornĂ©l PĂ¡l <kornelpal@hotmail.com>
29774 * ImageList.cs: Added lastKeyIndex field and use in IndexOfKey.
29775 Use typeof instead of strings when assembly is referenced. Added
29776 some more comments.
29778 2005-10-21 Jackson Harper <jackson@ximian.com>
29780 * ListView.cs: Raise a double click event. Also tried to somewhat
29781 fix when the selectedindexchanged event is raised. Its still
29784 2005-10-21 Jackson Harper <jackson@ximian.com>
29786 * TreeView.cs: New method to invalidate the plus minus area of a
29787 node without invalidating the whole node (maybe this can be used
29788 in some more places).
29789 * TreeNodeCollection.cs: When adding to an empty node we need to
29790 invalidate its plus minus area so the little block shows up.
29792 2005-10-21 Jackson Harper <jackson@ximian.com>
29794 * TreeView.cs: Make sure that when we invalidate a node the bounds
29795 are big enough to cover the selected box and the focus
29796 rectangle. Use a different colour for the lines connecting nodes
29797 so they show up with all themes.
29799 2005-10-21 Peter Dennis Bartok <pbartok@novell.com>
29801 * NativeWindow.cs: Don't call anything that could call into the driver,
29802 we might be on a different thread.
29804 2005-10-21 Peter Dennis Bartok <pbartok@novell.com>
29806 * Control.cs(Dispose): Since Dispose might run on a different thread,
29807 make sure that we call methods that could call into the driver via
29808 invoke, to avoid thread issues
29810 2005-10-21 Peter Dennis Bartok <pbartok@novell.com>
29812 * XplatUI.cs: Removed finalizer
29813 * XplatUIX11.cs: Removed Destructor, was causing crashes due to X11
29814 not allowing to be called on the finalizer thread.
29816 2005-10-21 KornĂ©l PĂ¡l <kornelpal@hotmail.com>
29819 - Reverted r51889 and r51891.
29820 - Added ImageListItem class that stores unmodified image items and image
29821 properties required to create list images until handle is created.
29822 - Added AddItem and moved image creation logic to AddItemInternal.
29823 - Added CreateHandle method that creates images based on unmodified items.
29824 - Added DestroyHandle that changes state to store unmodified items.
29825 - Add and AddStrip methods no more create handle.
29826 - ReduceColorDepth has no return value.
29827 - Dispose destroys handle.
29828 - Modified other methods to reflect the above changes.
29829 - Implemented key support.
29830 - Added profile 2.0 members and attributes.
29831 - Added private Reset and ShouldSerialize methods that provide the same
29832 behavior as MS.NET but the Visual Studio .NET designer seems to ignore
29833 them as they are private.
29834 - Added some more comments about implementation details.
29836 2005-10-21 Jordi Mas i Hernandez <jordi@ximian.com>
29838 * DataGrid.cs: Adds support for vertical scrolling using the mousewheel
29840 2005-10-21 Jordi Mas i Hernandez <jordi@ximian.com>
29842 * Binding.cs: No PushData/PullData if there is no binding (fixes crash)
29844 2005-10-21 Jordi Mas i Hernandez <jordi@ximian.com>
29846 * DataGridDrawingLogic.cs: Fixes column hit calcultation
29847 * DataGridColumnStyle.cs: Remove debug message
29849 2005-10-20 Jackson Harper <jackson@ximian.com>
29851 * TreeView.cs: We can always get input keys regardless of whether
29852 or not editing is enabled. They are used for navigation.
29854 2005-10-20 Jackson Harper <jackson@ximian.com>
29856 * TreeNode.cs: Use the viewport rect for determining if a node
29857 needs to be moved for visibility. Don't use Begin/End edit. This
29858 calls a full refresh when its done.
29859 * TreeView.cs: New SetBottom works correctly. Make the viewport
29860 rect property internal so the treenodes can see it. When clicking
29861 on a node we need to ensure that its visible because it might just
29862 be partly visible when clicked.
29864 2005-10-20 Jackson Harper <jackson@ximian.com>
29866 * TreeNodeCollection.cs: Remove debug code.
29868 2005-10-20 Jordi Mas i Hernandez <jordi@ximian.com>
29870 * Datagrid.cs: Implements column sorting in Datagrid
29871 * DataGridColumnStyle.cs: Implements column sorting in Datagrid
29873 2005-10-20 Jackson Harper <jackson@ximian.com>
29875 * TreeNodeCollection.cs: Remove items properly. Update the correct
29876 area after removing them.
29878 2005-10-20 Jordi Mas i Hernandez <jordi@ximian.com>
29880 * Datagrid.cs: Should not call base.OnPaintBackground
29882 2005-10-20 Peter Dennis Bartok <pbartok@novell.com>
29884 * XplatUIX11.cs (GetMessage):
29885 - Now properly calculates NC_xBUTTONDOWN coordinates off the whole
29886 window instead of client window
29887 - Now properly calculates NC_xBUTTONUP message coordinates
29888 - ScreenToMenu now properly calculates it's coordinates of whole
29889 window, since menus are in the whole window, not in the client
29891 - Added WholeToScreen coordinate translation method
29893 2005-10-20 Peter Dennis Bartok <pbartok@novell.com>
29895 * XplatUIX11.cs (GetMessage): Don't return in situations where we don't
29896 want to return a message, loop back to the beginning of the function
29897 and grab the next real message to process instead.
29899 2005-10-20 Peter Dennis Bartok <pbartok@novell.com>
29901 * Splitter.cs: Properly set limits if no filler control is used
29903 2005-10-19 Jackson Harper <jackson@ximian.com>
29905 * ColorDialog.cs: Don't show the help button if it is not enabled
29906 instead of disabling it (this is what MS does). Don't create the
29907 panel until the dialog is run, otherwise the vars (such as
29908 ShowHelp) are not set yet.
29910 2005-10-19 Jackson Harper <jackson@ximian.com>
29912 * TreeView.cs: Implement Begin/EndEdit more correctly so refreshes
29913 are reduced when adding nodes.
29915 * TreeNodeCollection.cs: Use UpdateNode instead of refreshing the
29918 2005-10-19 Jackson Harper <jackson@ximian.com>
29920 * FolderBrowserDialog.cs: End editing our treeview so the window
29921 actually gets refreshed.
29923 2005-10-18 Peter Dennis Bartok <pbartok@novell.com>
29925 * Control.cs: Fixed logic flip on when to call OnPaintBackground.
29926 Obsoleted handling of WM_ERASEBKGND, now always draws our background
29929 2005-10-18 Jordi Mas i Hernandez <jordi@ximian.com>
29931 * MenuAPI.cs: Returns after Hidding window
29932 * XplatUIX11.cs: Added TODO found while debugging menu issues
29934 2005-10-18 Peter Dennis Bartok <pbartok@novell.com>
29936 * XplatUIX11.cs: Do not re-map the whole window when it's size
29937 becomes non-zero unless it's supposed to be actually visible
29939 2005-10-18 Jackson Harper <jackson@ximian.com>
29941 * TreeView.cs: We don't need to keep a count anymore.
29942 * TreeNodeCollection.cs: Fix off by one in RemoveAt, Insert can
29943 use the Grow method.
29945 2005-10-18 Jackson Harper <jackson@ximian.com>
29947 * TreeNodeCollection.cs: Insert is not supported on arrays, so
29948 implement it manually here.
29950 2005-10-18 Jackson Harper <jackson@ximian.com>
29952 * ImageList.cs: Dont kill the list when the colour depth is
29953 changed, just change the colour depth of all the images.
29954 - Same goes for setting the image size. Just resize them all
29955 instead of killing the list softly.
29957 2005-10-18 Jackson Harper <jackson@ximian.com>
29959 * Control.cs: Don't invalidate empty rectangles.
29961 2005-10-18 Jordi Mas i Hernandez <jordi@ximian.com>
29964 - Adds checked item to the Checked/Item lists (where empty before)
29965 - Do not add items to the Selected lists if they are already present
29967 - Fixes IsFixedSize, SyncRoot, IsReadOnly in many collections
29968 - When deleting items make sure that we delete them for the Selected
29969 and Checked list also.
29971 2005-10-18 Jordi Mas i Hernandez <jordi@ximian.com>
29973 * Label.cs: Dispose objects no longer used
29974 * ThemeWin32Classic.cs: Dispose objects no longer used
29976 2005-10-18 Jackson Harper <jackson@ximian.com>
29978 * TabControl.cs: Don't refresh the whole control when the tabs are
29979 scrolled, we just need to refresh the tab area.
29981 2005-10-17 Jackson Harper <jackson@ximian.com>
29983 * XplatUIX11.cs: Compress code a little bit. Only calculate the
29984 after handle when we need it.
29986 2005-10-17 Peter Dennis Bartok <pbartok@novell.com>
29988 * Control.cs: When the parent size changes, recalculate anchor
29989 positions. Partial fix for #76462
29991 2005-10-17 Peter Dennis Bartok <pbartok@novell.com>
29993 * ThemeWin32Classic.cs: Make sure the picturebox has it's background
29994 drawn. Fixes #76462
29996 2005-10-17 Jackson Harper <jackson@ximian.com>
29998 * MonthCalendar.cs: Don't create the numeric up down until our
29999 handle is created. Otherwise our handle is created in the
30000 constructor and we don't know if we are a WS_CHILD or WS_POPUP
30003 2005-10-17 Jackson Harper <jackson@ximian.com>
30005 * TreeView.cs: Merge in patch by Rafael Teixeira to align strings
30008 2005-10-17 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
30009 * TreeNode.cs : small logical fix (was using local var instead of field)
30011 2005-10-17 Jordi Mas i Hernandez <jordi@ximian.com>
30013 * ThemeWin32Classic.cs: Fixes vert/horz scrollbar colours
30015 2005-10-17 Jordi Mas i Hernandez <jordi@ximian.com>
30017 * ThemeWin32Classic.cs: Fixes focus drawing in for non-flat/popup buttons
30019 2005-10-16 Peter Dennis Bartok <pbartok@novell.com>
30022 - Re-implemented anchoring code. My first version was really broken.
30023 This fixes bug #76033. Unlike the previous implementation we will
30024 no longer have round errors since all numbers are calculated from
30025 scratch every time. Removed various anchor-related obsolete vars.
30026 - InitLayout no longer causes layout event firing and layout to be
30029 2005-10-16 Jackson Harper <jackson@ximian.com>
30031 * Hwnd.cs: Compute invalid area correctly (fixes my last commit
30034 2005-10-16 Jackson Harper <jackson@ximian.com>
30036 * TabControl.cs: Remove debug code.
30038 2005-10-16 Jackson Harper <jackson@ximian.com>
30040 * XEventQueue.cs: Increase the default queue size (very simple
30041 apps needed to grow the queue).
30042 * Hwnd.cs: No finalizer so we don't need to suppress
30043 finalization. Compute the invalid area manually so a new rectangle
30044 does not newto be created.
30045 * ScrollableControl.cs: Don't set any params (otherwise visibility
30046 isn't set correctly).
30047 * MdiChildContext.cs: New constructor takes the mdi parent so it
30048 doesn't have to be computed and avoids a crash on windows. Draw
30049 the window icon properly, and allow the text to be seen.
30050 * Form.cs: Use new MdiChildContext constructor. Make sure the
30051 child context isn't null in wndproc.
30052 * TabControl.cs: Don't set focus, this is muddling keyboard
30053 behavoir. Expand the tab rows when a window size increase will
30054 allow extra tabs to be seen. Don't allow tabs smaller than the
30055 width of a window to be scrolled out of view.
30057 * TreeView.cs: Use measure string to calculate a nodes width, the
30058 width is cached and only updated when the text or the font is
30059 changed. Don't check for expand/collapse clicks on the first level
30060 nodes if root lines are disabled.
30062 2005-10-16 Ritvik Mayank <mritvik@novell.com>
30064 * TextBoxBase.cs: Fixes #76352 (passing tab key in a multiline textbox)
30066 2005-10-16 Jordi Mas i Hernandez <jordi@ximian.com>
30068 * DataGridBoolColumn.cs: fixes warning
30070 2005-10-16 Jordi Mas i Hernandez <jordi@ximian.com>
30072 * ControlPaint.cs: Fixes methods Dark, DarkDark, Light, LightLight
30073 to match more to match more precisely the MS Net behavior
30075 2005-10-13 Peter Dennis Bartok <pbartok@novell.com>
30077 * Hwnd.cs: Added field to track if window is mapped
30079 - Unmap windows if they become 0-size, re-map when
30080 they are >0 again; fixes #76035
30081 - Re-set our error handler after initializing X11Desktop
30082 to override any error handlers Gtk or whatever was called
30085 2005-10-13 Peter Dennis Bartok <pbartok@novell.com>
30087 * CheckedListBox.cs: Removed unused vars
30088 * ListView.cs: Fixed signatures
30089 * RichTextBox.cs: Removed unused vars
30090 * TextBoxBase.cs: Removed unused vars
30091 * XplatUIWin32.cs: Removed unused vars
30092 * XplatUIX11.cs: Removed unused vars
30093 * XplatUI.cs: Updated version and date to latest published
30095 2005-10-13 Peter Dennis Bartok <pbartok@novell.com>
30097 * Cursor.cs: Added private .ctor to work around a bug in
30098 resourceset (Thanks to Geoff Norton for the help on this)
30099 * SplitterEventArgs.cs: Made fields accessible so we don't
30100 waste boatloads of objects and can reuse the same one
30102 * XplatUIWin32.cs(DrawReversibleLine): Now also considers
30103 any captions and borders when generating screen coordinates
30104 * Splitter.cs: Reimplemented control, now fully complete, uses
30105 rubberband drawing, supports and obeys all properties, has
30108 2005-10-13 Miguel de Icaza <miguel@novell.com>
30110 * Form.cs (Form): Setup default values for autoscale and
30111 autoscale_base_size; Make these instance variables, not static
30114 (OnLoad): on the first load, adjust the size of the form.
30116 2005-10-13 Peter Dennis Bartok <pbartok@novell.com>
30118 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added
30119 width argument to DrawReversibleRectangle()
30120 * XplatUIWin32.cs, XplatUIX11.cs:
30121 - Implemented width for DrawReversibleRectangle()
30122 - Added logic to DrawReversibleRectangle that recognizes a zero
30123 width or height and only draws a line in that situation
30125 2005-10-12 Peter Dennis Bartok <pbartok@novell.com>
30127 * XplatUI.cs, XplatUIDriver.cs: Added GetAutoScaleSize()
30128 * XplatUIOSX.cs: Stubbed GetAutoScaleSize() method
30129 * XplatUIWin32.cs, XplatUIX11.cs: Implemented GetAutoScaleSize()
30130 method (it uses our FosterParent window to get a graphics context)
30132 2005-10-12 Peter Dennis Bartok <pbartok@novell.com>
30134 * XplatUI.cs, XplatUIDriver.cs: Removed EraseWindowBackground
30135 and SetWindowBackground methods
30137 - Setting proper ControlStyles
30138 - We no longer call XplatUI.SetWindowBackground and XplatUI.
30139 EraseWindowBackground, instead we draw the window background
30140 ourselves in PaintControlBackground. This behaviour is
30141 required to match MS, where, when OnPaintBackground is not
30142 called, the background is not drawn.
30143 - Removed unneeded Refresh() in set_Text
30144 * Hwnd.cs: Dropped the ErasePending support. No longer needed
30146 - Created DeriveStyles method to translate from CreateParams to
30147 FormBorderStyle and TitleStyle, also handles BorderStyle (which
30148 matches FormBorderStyle enum values)
30149 - Consolidated SetHwndStyles and CalculateWindowRect border/title
30150 style calculations into single DeriveStyles method
30151 - Fixed CreateWindow to (finally) use Gravity. This prevents X11
30152 from redrawing the whole window on any resize or expose.
30153 - Fixed CreateWindow usage of SetWindowValuemask. Before not
30154 all styles were applied to our whole/client window appropriately
30155 - Removed EraseWindowBackground() and SetWindowBackground() methods
30156 - Removed handling of WM_ERASEBKGND message from DefWndProc, we
30157 no longer clear/redraw the background through X
30158 - Removed handling of erase_pending bit, we have no use for it (or
30161 - Removed generation and handling of WM_ERASEBKGND message
30162 - Removed EraseWindowBackground() and SetWindowBackground() methods
30163 - Removed handling of hwnd.ErasePending flag
30165 - Removed EraseWindowBackground() and SetWindowBackground() methods
30166 - We no longer call EraseWindowBackground on PaintEventStart, we
30167 ignore the fErase flag, erasing is handled in Control in the
30169 * Button.cs, GroupBox.cs, Label.cs, CheckBox.cs, ProgressBar.cs,
30170 LinkLabel.cs, ListControl.cs, TabPage.cs, UpDownBase.cs,
30171 TextBoxBase.cs, TextBox.cs, ListView.cs, ButtonBase.cs,
30172 CheckedListBox.cs, MdiClient.cs, Panel.cs, DataGrid.cs,
30173 DataGridTextBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs,
30174 TabControl.cs, ScrollableControl.cs, ToolBar.cs, PictureBox.cs,
30175 DateTimePicker.cs, StatusBar.cs, MonthCalendar.cs: Setting proper ControlStyles
30177 2005-10-12 Jonathan Chambers <jonathan.chambers@ansys.com>
30179 * PropertyGrids.cs: Get sub properties
30180 * PropertyGridView.cs: Fix drawing code
30182 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
30184 * ListBox.cs: Fixes 76383
30186 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
30188 * DataGridTextBoxColumn.cs: Sets location and size before attachment
30189 * ThemeWin32Classic.cs: Fixes border drawing and calculations
30190 * DataGridDrawingLogic.cs: Fixes border drawing and calculations
30193 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
30195 * ComboBox.cs: Fixes border drawing
30197 2005-10-10 Miguel de Icaza <miguel@novell.com>
30199 * MimeIcon.cs: Ignore errors if the file can not be read.
30201 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
30203 * Theme.cs, ThemeWin32Classic.cs, ListBox.cs:
30204 - Fixed border calculations
30205 - Fixed horizontal scrolling in single column listboxes
30206 - Fixed drawing issues
30208 2005-10-10 Peter Dennis Bartok <pbartok@novell.com>
30210 * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched from BorderStyle to
30211 FormBorderStyle enum
30212 * XplatUIX11.cs: Switched BorderStyle to FormBorderStyle, added
30213 code to determine FormBorderStyles from CreateParams
30215 - Fixed bug where we'd set the wrong window styles if we were
30216 not creating an MDI window
30217 - Added call to XplatUI.SetBorderStyle when form borders are set
30218 * Control.cs: Casting BorderStyles to accommodate changed XplatUI APIs
30220 - Removed obsolete edge style
30221 - Switched from BorderStyle to FormBorderStyle
30223 2005-10-10 Jackson Harper <jackson@ximian.com>
30225 * Form.cs: Use the property to get the window handle instead of
30226 accessing it directly. Prevents a null reference exception.
30228 2005-10-10 Jackson Harper <jackson@ximian.com>
30230 * TreeView.cs: Don't adjust the rect given to DrawString now that
30231 our libgdiplus draws correctly.
30233 2005-10-08 Jackson Harper <jackson@ximian.com>
30235 * TreeView.cs: Don't try to find the clicked on node if there are
30236 no nodes in the tree.
30238 2005-10-08 Alexander Olk <alex.olk@googlemail.com>
30244 2005-10-08 Alexander Olk <alex.olk@googlemail.com>
30246 * ImageListStreamer.cs, TreeView.cs, UpDownBase.cs, RichTextBox.cs,
30247 ColorDialog.cs, TextControl.cs, Panel.cs, MdiChildContext.cs,
30249 Use ResPool for brushes and dispose System.Drawing objects that
30250 are not used anymore.
30252 2005-10-07 Jackson Harper <jackson@ximian.com>
30254 * MdiChildContext.cs: Use the new borders instead of drawing them
30257 2005-10-06 Jordi Mas i Hernandez <jordi@ximian.com>
30259 * Calling UpdateBounds after changing the window's BorderStyle
30260 since the style can change the ClientSize
30262 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
30264 * Control.cs: Made PaintControlBackground virtual
30265 * Panel.cs: Overriding PaintControlBackground instead of using paint
30266 event; paint event method was interfering with 'real' users of the
30269 2005-10-06 Jordi Mas i Hernandez <jordi@ximian.com>
30271 * ThemeWin32Classic.cs: remove border drawing since it is handled
30272 by the base control class now and was causing double border drawing.
30274 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
30276 * Panel.cs: Redraw our background on paint. Not a pretty solution,
30277 but it does seem to match MS behaviour. This fixes bug #75324
30279 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
30281 * XplatUIX11.cs: A better DrawReversibleRectangle version, however
30282 somewhat hackish looking
30284 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
30287 - We now accept Enter even if AcceptEnter is false, if the containing
30288 form does not have an AcceptButton configured (fixes bug #76355)
30289 - Calculations are now fixed to no longer use Width/Height, but
30290 ClientSize.Width/Height, since we now support borders (this was
30291 a result of fixing borders and therefore bug #76166)
30292 - We no longer show the horizontal scrollbar if TextBox.WordWrap is
30293 true (fixes bug #76354)
30295 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
30298 - Defaulting BorderStyle and setting it in XplatUI when our window
30300 - Added enum check to InternalBorderStyle setter
30302 - Added drawing of window borders
30303 - Now properly calculates WM decorations offset for toplevel
30304 windows (fixes bug #74763)
30306 - Implemented BorderStyles for windows (we're letting win32 draw
30308 - Fixed the signature for SetWindowLong
30309 * PictureBox.cs, DataGrid.cs, TextBoxBase.cs, ToolBar.cs, Panel.cs,
30310 ListBox.cs, Label.cs: Now uses Control.InternalBorderStyle for
30312 * UpDownBase.cs: Remove drawing of borders, this is handled by
30313 the driver, outside the client area
30314 * ListView.cs: Removed bogus border calculations. The control should
30315 be oblivious to borders, since those are not part of the client
30317 * X11DesktopColors.cs: Commented out (currently) unneeded variables
30318 * ThemeWin32Classic.cs: Removed border calculations from ListView
30321 2005-10-06 Jackson Harper <jackson@ximian.com>
30323 * MdiChildContext.cs: Clear out the old virtual position remove
30324 all the unneeded calls to CreateGraphics.
30326 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
30328 * TextControl.cs: Use proper color for highlighted text; fixes #76350
30330 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
30333 - Added loading and setting of our new default icon
30334 - Only set icon if window is already created
30336 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
30339 - Do not explicitly set the foreground and background colors, to
30340 allow inheriting from parents (fixes #76302)
30341 - Use Control's InternalBorderStyle property to deal with borders
30343 2005-10-06 Jackson Harper <jackson@ximian.com>
30345 * MdiChildContext.cs: Use the new xplatui function to draw a
30348 2005-10-06 Jackson Harper <jackson@ximian.com>
30350 * Form.cs: Add the parent before creating the child context cause
30351 we need the parent when setting up the child.
30353 2005-10-06 Jackson Harper <jackson@ximian.com>
30355 * FolderBrowserDialog.cs: redo the tree population code so a
30356 second thread isn't used. Should be a lot faster and more stable
30359 2005-10-05 Jackson Harper <jackson@ximian.com>
30361 * TreeView.cs: There are no expand/collapse boxes if the node has
30364 2005-10-05 Jackson Harper <jackson@ximian.com>
30366 * X11DesktopColors.cs: Get menu colours for the gtk theme.
30368 2005-10-05 Alexander Olk <alex.olk@googlemail.com>
30370 * FileDialog.cs: Fix InitialDirectory
30372 2005-10-05 Jordi Mas i Hernandez <jordi@ximian.com>
30375 - Fixes changing between styles
30376 - Fixes simple mode
30377 - Fixes last item crashing when navigating with keyboard
30379 2005-10-05 Jordi Mas i Hernandez <jordi@ximian.com>
30381 * LinkLabel.cs: Related to 76045. Stops the LinkLabel been drawn as a Label
30383 2005-10-05 Jackson Harper <jackson@ximian.com>
30385 * TreeView.cs: If updating the root node do a full refresh.
30386 * TreeNode.cs: The root node should be expanded by default. Also
30387 added a utility prop to tell if we are the root node.
30388 * TreeNodeCollection.cs: Only refresh if the node we are being
30389 added to is expanded. Also added a comment on a potential
30392 2005-10-04 Peter Dennis Bartok <pbartok@novell.com>
30394 * Cursor.cs, Hwnd.cs: Added call to GC.SuppressFinalize()
30395 in dispose method. Fixes #76330
30397 2005-10-04 Jordi Mas i Hernandez <jordi@ximian.com>
30399 * ListView.cs, ThemeWin32Classic.cs, ListViewItem.cs:
30401 - Implements vertical and horizontal scrolling using XplatUI
30402 - Fixes keyboard navagation
30403 - Fixes EnsureVisible
30405 - Handles and draws focus properly
30408 2005-10-04 KornĂ©l PĂ¡l <kornelpal@hotmail.com>
30410 * ImageList.cs: Use upper case initials for internal fields. ImageStream:
30411 Create handle. NET_2_0: Destroy handle when value is null.
30413 2005-10-03 Jackson Harper <jackson@ximian.com>
30415 * ScrollBar.cs: My last scrollbar patch was broken. This is a
30416 revert and a new patch to prevent the thumb from refreshing so
30419 2005-10-02 Jackson Harper <jackson@ximian.com>
30421 * ScrollBar.cs: Don't update position if it hasn't actually
30422 changed. This occurs when you hold down the increment/decrement
30423 buttons and the thumb gets to the max/min.
30425 2005-10-01 Jackson Harper <jackson@ximian.com>
30428 * MdiChildContext.cs:
30429 * MdiClient.cs: Implement ActiveMdiChild in Form.
30431 2005-10-01 Jordi Mas i Hernandez <jordi@ximian.com>
30433 * ComboBox.cs: Include ComboBoxEdit flag for the edit item
30435 2005-10-01 Peter Dennis Bartok <pbartok@novell.com>
30437 * X11DesktopColors.cs: Bow out gracefully if the Gtk libs cannot
30440 2005-09-30 Jackson Harper <jackson@ximian.com>
30442 * ListBox.cs: Don't do a full refresh unless some data has
30445 2005-09-30 Jackson Harper <jackson@ximian.com>
30447 * TreeView.cs: Make sure that the checkboxes size is factored in
30448 even when not visible.
30450 2005-09-30 Peter Dennis Bartok <pbartok@novell.com>
30452 * FileDialog.cs: Fix Jordi's build break
30454 2005-09-30 Jordi Mas i Hernandez <jordi@ximian.com>
30457 - Use standard the Windows colours for the combobox as espected
30458 - Dispose objects that use resouces when no longer need them
30460 2005-09-30 Peter Dennis Bartok <pbartok@novell.com>
30462 * X11DesktopColors.cs: Initial incomplete implementation
30463 * XplatUIX11.cs: Added call to initialize X11DesktopColors
30465 2005-09-30 Peter Dennis Bartok <pbartok@novell.com>
30468 - Switched Theme color names to match the names defined in
30469 System.Drawing.KnownColors. Life's hard enough, no need to make
30471 - Added setters to all theme color properties so themes can set
30472 their color schemes. The setters also propagate the color changes
30473 to System.Drawing.KnownColors via reflection
30474 * ControlPaint.cs, Label.cs, TextControl.cs, ToolTip.cs, ThemeNice.cs,
30475 ComboBox.cs, MdiChildContext.cs, TextBoxBase.cs, DateTimePicker.cs
30476 DataGridColumnStyle.cs, MonthCalendar.cs, TreeView.cs: Updated to
30477 use the new, more logical theme color names
30478 * XplatUIWin32.cs: Updated the GetSysColorIndex enum to include new
30480 * ThemeWin32Classic.cs:
30481 - Removed code to set the old classic Windows colors. Instead it
30482 now relies on the colors returned by System.Drawing.KnownColors
30483 which will be either modern static colors (Unix) or colors
30484 read from the user's configuration (Win32)
30485 - Updated to use the new, more logical theme color names
30486 - Switched DataGrid drawing code to use only Theme colors instead of
30487 a mix of System.Drawing.KnownColors and Theme colors
30488 - DrawFrameControl(): Removed code that fills the button area, the
30489 fill would overwrite any previous fill done by a control. This
30491 - Added DrawReversibleRectangle() stub
30492 * ScrollableControl.cs: Set visible state to false when scrollbars
30493 are removed (pdn fix)
30494 * XplatUI.cs, XplatUIOSX.cs, XplatUIDriver.cs: Added
30495 DrawReversibleRectangle() method to allow drawing primitive
30497 * XplatUIX11.cs: Implemented DrawReversibleRectangle()
30499 2005-09-30 KornĂ©l PĂ¡l <kornelpal@hotmail.com>
30501 * ImageList.cs: Add(Icon): Create handle.
30503 2005-09-30 Jordi Mas i Hernandez <jordi@ximian.com>
30506 * ThemeWin32Classic.cs:
30507 - Fixes detail mode
30509 - Issues with drawing
30511 2005-09-30 KornĂ©l PĂ¡l <kornelpal@hotmail.com>
30513 * ImageList.cs: Moved RecreateHandle back to ImageList as event
30514 source has to be the ImageList.
30516 2005-09-30 KornĂ©l PĂ¡l <kornelpal@hotmail.com>
30518 * ImageList.cs: Add(Icon): Use Graphics.DrawIcon instead of Icon.ToBitmap.
30520 2005-09-30 KornĂ©l PĂ¡l <kornelpal@hotmail.com>
30522 * ImageList.cs: ReduceColorDepth: Clean up pointer operations.
30524 2005-09-30 KornĂ©l PĂ¡l <kornelpal@hotmail.com>
30526 * ImageList.cs: ImageCollection: Removed owner field as it is no more used.
30528 2005-09-29 Jonathan Chambers <jonathan.chambers@ansys.com>
30529 * GridItem.cs: Fixed TODOs
30530 * GridItemCollection.cs: Added ICollection interface
30532 2005-09-30 KornĂ©l PĂ¡l <kornelpal@hotmail.com>
30534 * ImageList.cs: Resize icons when needed.
30536 2005-09-29 Jordi Mas i Hernandez <jordi@ximian.com>
30539 - Fixes GetBounds and returns on screen rects
30541 - Fixes vertical and horzintal scrolling of items
30542 * ThemeWin32Classic.cs:
30545 2005-09-29 Raja R Harinath <harinath@gmail.com>
30547 * ImageList.cs (ImageStream) [NET_2_0]: Reflect re-factoring.
30549 2005-09-29 KornĂ©l PĂ¡l <kornelpal@hotmail.com>
30551 * ImageList.cs: Added comments about handle creation. Moved Handle,
30552 HandleCreated and OnRecreateHandle implementations to ImageCollection.
30553 Handle is created in Add methods.
30555 2005-09-28 Jordi Mas i Hernandez <jordi@ximian.com>
30557 * DataGridDrawingLogic.cs:
30558 - Takes rows into account on Colum calculations
30559 - Returns the column when clickig
30561 - Fixes default HitTestInfo values
30562 - Fixes HitTestInfo.ToString
30563 - Fixes ResetBackColor
30565 2005-09-28 Jackson Harper <jackson@ximian.com>
30567 * MdiChildContext.cs: Obey rules for fixed sized windows (no
30568 sizing or cursor changes). Also added some temp code to draw the
30569 titlebars text (Makes dev a little easier).
30571 2005-09-28 KornĂ©l PĂ¡l <kornelpal@hotmail.com>
30573 * ImageList.cs: AddStrip: Throw ArgumentException when Image is not a Bitmap.
30575 2005-09-28 Jordi Mas i Hernandez <jordi@ximian.com>
30577 * ListBox.cs: Fixes bug 76253
30579 2005-09-28 KornĂ©l PĂ¡l <kornelpal@hotmail.com>
30581 * ImageList.cs: Added comments about the current implementation. Added
30582 ReduceColorDepth, IndexedColorDepths and GetNearestColor to can use
30583 Format32bppArgb to preserve transparency and can use Graphics.FromImage
30584 while using the specified ColorDepth. ReduceColorDepth uses unsafe code
30585 with Bitmap.LockBits for better performance. Revised the whole file to
30586 match MS.NET behaviour and provide better performance. Non-public
30587 interface members are calling public members even when they throw
30588 NotSupportedException for better maintainability. Moved ColorDepth,
30589 ImageSize, ImageStream and TransparentColor implementations to
30590 ImageCollection for better performance as these properties are not used
30592 * ImageListStreamer.cs: Added a new internal constructor that takes an
30593 ImageList.ImageCollection and serializes Images based on
30594 ImageCollection.ToArray(). Renamed ImageColorDepth to ColorDepth to
30595 match ImageList property name.
30597 2005-09-28 Kazuki Oikawa <kazuki@panicode.com>
30599 * ListBox.cs: Fixes IndexFromPoint for last item
30601 2005-09-27 Jackson Harper <jackson@ximian.com>
30603 * Form.cs: Set the position of new mdi children correctly.
30605 2005-09-27 Jackson Harper <jackson@ximian.com>
30607 * MdiClient.cs: New mdi children need to be added to the back of
30608 the controls collection so the zorder is set correctly. Also add a
30609 count of all the child windows that have been created.
30611 2005-09-27 Jackson Harper <jackson@ximian.com>
30613 * Form.cs (CreateParams): Setup MDI forms correctly.
30615 2005-09-27 Jackson Harper <jackson@ximian.com>
30617 * MdiChildContext.cs:
30618 * MonthCalendar.cs:
30624 * ScrollableControl.cs:
30625 * ComboBox.cs: Add implicit controls using the new implict control
30626 functionality in ControlCollection. Also try to block multiple
30627 control add in a suspend/resume layout to save some cycles.
30629 2005-09-27 Jackson Harper <jackson@ximian.com>
30631 * Control.cs: Add functionality to the controls collection to add
30632 'implicit controls' these are controls that are created by the
30633 containing control but should not be exposed to the user. Such as
30634 scrollbars in the treeview.
30635 * Form.cs: The list var of the ControlsCollection is no longer
30636 available because of the potential of implicit controls getting
30637 ignored by someone accessing the list directly.
30639 2005-09-26 Peter Dennis Bartok <pbartok@novell.com>
30641 * Control.cs: Fixed SetChildIndex; it no longer causes a child to
30642 loose it's parent. (Fixed bug introduced in r49103 when we added
30643 setting the child parent to null on Remove)
30645 2005-09-26 Gert Driesen <drieseng@users.sourceforge.net>
30647 * DataGridBoolColumn.cs: Marked CheckState private to fix public API.
30648 * Splitter.cs: Added missing attributes for BorderStyle property.
30649 * TextBoxBase.cs: Marked Calculate* methods internal.
30650 * TextBox.cs: Fixed DefaultValue for PasswordChar property to match
30653 2005-09-26 Jordi Mas i Hernandez <jordi@ximian.com>
30655 * ListBox.cs: Fixes navigation to the last item in multicolumn lists
30657 2005-09-25 Jackson Harper <jackson@ximian.com>
30659 * TreeView.cs: Update the node bounds correctly regardless of
30660 whether the node is visible.
30662 2005-09-25 Jackson Harper <jackson@ximian.com>
30664 * ImageList.cs: Don't dispose the image after it is added to the
30665 image list. Only reformat images that need to be resized.
30667 2005-09-25 Jackson Harper <jackson@ximian.com>
30669 * ImageList.cs: Don't set the format when changing the image.
30671 2005-09-25 Jackson Harper <jackson@ximian.com>
30673 * TreeView.cs: We can't just assume the node has a font. Use the
30674 treeviews font if no node font is available.
30676 2005-09-25 Jackson Harper <jackson@ximian.com>
30678 * TreeView.cs: Allow the scrollbars to be reset with negative
30680 - Don't add scrollbars to negative sized windows.
30682 2005-09-23 Jackson Harper <jackson@ximian.com>
30684 * XplatUIX11.cs: Update to use Mono.Posix.Native instead of plain
30685 old Mono.Posix. Also remove some stray code that shouldn't have
30688 2005-09-23 Jackson Harper <jackson@ximian.com>
30690 * TreeView.cs: Attempt at proper sizing of the horizontal
30691 scrollbar. Also don't resize the scrollbars unless they are
30694 2005-09-23 Jackson Harper <jackson@ximian.com>
30696 * TreeView.cs: We don't need to expand the invalid area when the
30697 selection changes, as this is all drawn in the node's bounding
30698 box. The area needs to be expanded (previous typo was contracting
30699 it) when the focus rect moves.
30701 2005-09-23 Jackson Harper <jackson@ximian.com>
30703 * TreeView.cs: Display the selection box under the correct
30704 circumstances. We were rendering white text with no selection box
30707 2005-09-23 Peter Dennis Bartok <pbartok@novell.com>
30709 * TextControl.cs(Split): Now updates selection start/end if it points
30710 into a line that's being split. Fixes a FIXME and bug #75258
30712 2005-09-23 Jackson Harper <jackson@ximian.com>
30715 * ListControl.cs: Don't use the path when retrieving binding
30716 managers from the binding context. My bat sense tells me that the
30717 path is only used on insertion.
30719 2005-09-22 Jackson Harper <jackson@ximian.com>
30721 * Splitter.cs: Set the cursor an easier way. (Thanks peter).
30723 2005-09-22 Jackson Harper <jackson@ximian.com>
30725 * Splitter.cs: There are special cursors used for splitting.
30726 * XplatUIX11.cs: The VSplit and HSplit cursors were backwards.
30728 2005-09-22 Jackson Harper <jackson@ximian.com>
30730 * Splitter.cs: Change the cursor appropriately when the splitter
30731 is moused over, so the user actually knows there is a splitter
30734 2005-09-22 Hisham Mardam Bey <hisham.mardambey@gmail.com>
30736 * Label.cs : Fix ToString method to give same output as MS.NET
30738 2005-09-22 Jackson Harper <jackson@ximian.com>
30740 * TreeView.cs: Create the scrollbars when the handle is created
30741 and add them right away, just make them invisble. Also account for
30742 the window being shrunk vertically to the point that the vert
30743 scrollbar needs to be added.
30744 - Remove some 0.5 adjustments to get around anti aliasing issues.
30746 2005-09-22 Jordi Mas i Hernandez <jordi@ximian.com>
30748 * MainMenu.cs: Fixes default value
30749 * MenuItem.cs: Fixes default value
30751 2005-09-22 Kazuki Oikawa <kazuki@panicode.com>
30753 * AsyncMethodResult.cs: Fixes Control.Invoke is blocked infinitely.
30755 2005-09-21 Jackson Harper <jackson@ximian.com>
30757 * Control.cs: Don't try to set the border style on the window if
30758 it hasn't been created. When the window is created the border
30759 style will be used.
30761 2005-09-21 Peter Dennis Bartok <pbartok@novell.com>
30763 * Control.cs (Update): Don't call XplatUI if we don't have a
30766 2005-09-21 Peter Dennis Bartok <pbartok@novell.com>
30768 * ContainerControl.cs: Instead of throwing an exception, print
30769 a one-time warning about Validate not being implemented
30770 * XplatUIWin32.cs: Removed debug output
30772 2005-09-21 Peter Dennis Bartok <pbartok@novell.com>
30774 * Control.cs: Only set XplatUI background if we expect the windowing
30775 system to handle the background. This stops controls that draw their
30776 own background from flickering
30778 * XplatUIX11.cs: Support custom visuals and colormaps for window
30779 creation. This allows, amongst other things, using MWF X11 windows
30782 2005-09-21 Peter Dennis Bartok <pbartok@novell.com>
30784 * OpenFileDialog.cs, ContentsResizedEventArgs.cs, LibSupport.cs, GridItem.cs,
30785 CursorConverter.cs, SplitterEventHandler.cs, PropertyGridTextBox.cs,
30786 GridTablesFactory.cs, MethodInvoker.cs, AccessibleEvents.cs,
30787 SplitterEventArgs.cs, XplatUI.cs, Mime.cs, PropertySort.cs,
30788 TreeViewCancelEventHandler.cs, Form.cs, PropertyGridCommands.cs,
30789 IDataGridEditingService.cs, DateBoldEventHandler.cs, Label.cs,
30790 KeyboardLayouts.cs, TextControl.cs, ProgressBar.cs, ToolTip.cs,
30791 RadioButton.cs, OSFeature.cs, LinkLabel.cs, ColorDialog.cs,
30792 ThemeNice.cs, ErrorIconAlignment.cs, TreeNode.cs, MimeGenerated.cs,
30793 ComboBox.cs, DataGridTextBoxColumn.cs, ArrangeStartingPosition.cs,
30794 GridColumnStylesCollection.cs,
30795 IDataGridColumnStyleEditingNotificationService.cs,
30796 PropertyGrid.cs, IFeatureSupport.cs, ICommandExecutor.cs,
30797 MdiLayout.cs, GridEntry.cs, ControlBindingsCollection.cs,
30798 GridTableStylesCollection.cs, TreeViewCancelEventArgs.cs,
30799 TreeNodeCollection.cs, AmbientProperties.cs,
30800 RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
30801 DataObject.cs, ErrorProvider.cs, Splitter.cs,
30802 DataGridLineStyle.cs, Shortcut.cs, Control.cs,
30803 FontDialog.cs, SecurityIDType.cs, GridItemType.cs,
30804 BindingMemberInfo.cs, DataGridCell.cs, MdiChildContext.cs,
30805 IRootGridEntry.cs, PropertyGridView.cs, DataGridParentRowsLabelStyle.cs,
30806 FolderBrowserDialog.cs, OpacityConverter.cs, HelpProvider.cs,
30807 IComponentEditorPageSite.cs, DataGridTableStyle.cs, NavigateEventArgs.cs,
30808 NotifyIcon.cs, ContentsResizedEventHandler.cs, MenuItem.cs,
30809 PropertyTabChangedEventHandler.cs, TextBoxBase.cs, OpenTreeNodeEnumerator.cs,
30810 SelectionMode.cs, TextBox.cs, ListBindingConverter.cs,
30811 FileDialog.cs, KeysConverter.cs, DomainUpDown.cs,
30812 DataFormats.cs, SaveFileDialog.cs, GridItemCollection.cs,
30813 ArrangeDirection.cs, FeatureSupport.cs, SelectionRangeConverter.cs,
30814 RichTextBoxScrollBars.cs, NodeLabelEditEventHandler.cs, TreeNodeConverter.cs,
30815 MimeIcon.cs, X11Structs.cs, PropertyGridEntry.cs,
30816 ImageList.cs, ThemeWin32Classic.cs, X11Keyboard.cs,
30817 CheckedListBox.cs, HelpNavigator.cs, DateTimePickerFormat.cs,
30818 MdiClient.cs, DataGridDrawingLogic.cs, DataGridBoolColumn.cs,
30819 NodeLabelEditEventArgs.cs, Screen.cs, PropertyManager.cs,
30820 ComponentModel.cs, PropertiesTab.cs, CurrencyManager.cs,
30821 SizeGrip.cs, DateBoldEventArgs.cs, X11Dnd.cs, Panel.cs,
30822 Hwnd.cs, OSXStructs.cs, DrawMode.cs, XplatUIDriver.cs,
30823 RichTextBox.cs, PropertyTabChangedEventArgs.cs, CommonDialog.cs,
30824 DataGrid.cs, XplatUIX11.cs, RichTextBoxStreamType.cs, Win32DnD.cs,
30825 ErrorBlinkStyle.cs, TreeViewEventHandler.cs,
30826 PropertyValueChangedEventHandler.cs, IFileReaderService.cs,
30827 DataGridTextBox.cs, SelectedGridItemChangedEventArgs.cs, ScrollBar.cs,
30828 ListBox.cs, TreeViewAction.cs, Help.cs, TrackBar.cs,
30829 AxHost.cs, PropertyValueChangedEventArgs.cs, XplatUIOSX.cs,
30830 RichTextBoxFinds.cs, UpDownEventArgs.cs, Cursors.cs,
30831 CategoryGridEntry.cs, RichTextBoxWordPunctuations.cs, DataGridColumnStyle.cs,
30832 SelectedGridItemChangedEventHandler.cs, DateTimePicker.cs, NavigateEventHandler.cs,
30833 Clipboard.cs, UpDownEventHandler.cs, MonthCalendar.cs,
30834 SendKeys.cs, DataGridPreferredColumnWidthTypeConverter.cs, TreeView.cs,
30835 ThreadExceptionDialog.cs, ImageListConverter.cs, XplatUIWin32.cs,
30836 TreeViewEventArgs.cs: Fixed whitespace and set eol-style:native attribute
30838 2005-09-21 Jackson Harper <jackson@ximian.com>
30840 * TreeNode.cs: Call Before/After Expand not Collapse when
30843 2005-09-20 Jackson Harper <jackson@ximian.com>
30845 * XplatUIX11.cs: Use the more hand looking hand (in most themes).
30847 2005-09-16 Jordi Mas i Hernandez <jordi@ximian.com>
30851 - Fixes proper storing of subitems
30852 - Fixes not updated items
30854 2005-09-20 Peter Dennis Bartok <pbartok@novell.com>
30856 * Control.cs, TextBoxBase.cs, TextControl.cs: Don't do certain
30857 things if our window handle isn't created yet. Also disabled
30858 debug for TextBoxBase
30860 2005-09-20 Peter Dennis Bartok <pbartok@novell.com>
30862 * MenuAPI.cs: Remove filtering of events to allow menu usage
30864 2005-09-20 Miguel de Icaza <miguel@novell.com>
30866 * Cursor.cs: Allow null to be passed to Cursor.Current.
30868 2005-09-20 Alexander Olk <alex.olk@googlemail.com>
30870 * ThemeWin32Classic.cs:
30871 - Change some private methods/fields to protected virtual so that
30872 they can be accessed and overriden in derived classes
30873 - First refactoring of some methods. Derived themes now don't
30874 need to duplicate the complete code from ThemeWin32Classic
30876 - Added nice StatusBar
30877 - Derive from ThemeWin32Classic and not Theme
30878 - Removed duplicate ThemeWin32Classic code
30880 2005-09-20 Miguel de Icaza <miguel@novell.com>
30882 * Control.cs (ControlCollection.Add): If the value null is passed
30883 the control is ignored.
30885 Optimize this loop.
30887 2005-09-19 Peter Dennis Bartok <pbartok@novell.com>
30889 * MenuAPI.cs: Replaced Application.Run() with a loop that tracks
30890 PostQuitMessage state.
30891 * XplatUIWin32.cs: Removed bogus PostQuitMessage P/Invoke with HWND arg
30893 2005-09-19 Peter Dennis Bartok <pbartok@novell.com>
30895 * Application.cs: Our constructor will never get called, move
30896 initialization to fields; fixes bug #75933
30898 2005-09-19 Hisham Mardam Bey <hisham.mardambey@gmail.com>
30901 - Allow files to be selected properly using file name
30903 - Add ability to change diretory (absolute / relative)
30904 using file name combo box.
30906 2005-09-16 Jordi Mas i Hernandez <jordi@ximian.com>
30909 - Fixes Multicolumn listboxes item wrong calculations
30910 - Allows to click when only one item is in the listbox
30911 - Fixes crash when no items using keyboard navigation
30913 2005-09-16 Alexander Olk <alex.olk@googlemail.com>
30915 * ComboBox.cs: Reverted almost everything from the latest patch which
30918 2005-09-16 Kazuki Oikawa <kazuki@panicode.com>
30921 - Fixed #Mtd2 of ToolTipTest.RemoveToolTipTest.
30923 - When DropDownStyle is Simple, it does not show scrollbar
30924 to the last item of the list.
30925 - When DropDownStyle is Simple, it crashed when the list was
30926 scrolled down with the down cursor key.
30927 - Fixed a bug that when DropDownStyle is DropDownList, the
30928 selected item was not shown.
30929 - The position of the selected item was not preserved when
30930 the next dropdown happened.
30931 * ThemeWin32Classic.cs:
30932 - Items were wrapped at the right end.
30933 * CheckedListBox.cs:
30936 - Items should be fully shown.
30937 - When resizing and vertical scrollbar disappeared, the item
30938 of index 0 should be on the top of the list.
30939 - GetItemRectangle should consider the size of ver. scrollbar
30941 - SizingGrip area should not be allocated when it is not
30943 - Now it reflects MinWidth of the containing panel and
30944 fixed a crash that happens when its width becomes so small.
30946 2005-09-13 Jordi Mas i Hernandez <jordi@ximian.com>
30948 * CheckedListBox.cs: Fixes bug 76028
30949 * ListBox.cs: Fixes bug 76028
30951 2005-09-13 Jordi Mas i Hernandez <jordi@ximian.com>
30953 * ThemeWin32Classic.cs: Sets clipping on DataGridPaintRowsHeaders
30954 * DataGridDrawingLogic.cs: fixes issues with Datagrid drawing
30956 2005-09-12 Jordi Mas i Hernandez <jordi@ximian.com>
30958 * XplatUIX11.cs: fixes System.NullReferenceException in some situations
30960 2005-09-09 Jonathan Chambers <jonathan.chambers@ansys.com>
30962 * IRootGridEntry.cs: Changed namespace to PropertyGridInternal
30964 2005-09-09 Jonathan Chambers <jonathan.chambers@ansys.com>
30966 * IRootGridEntry.cs: Added
30967 * PropertyGridCommands.cs: Added
30968 * PropertiesTab.cs: Added missing methods and property
30969 * PropertyGridView.cs: Made class internal
30970 * PropertyGridTextBox.cs: Made class internal
30972 2005-09-09 Alexander Olk <alex.olk@googlemail.com>
30974 * MimeIcon.cs: Try to check some other environment variables
30975 if "DESKTOP_SESSION" returns "default"
30977 2005-09-09 Alexander Olk <alex.olk@googlemail.com>
30979 * ThemeNice.cs: Corrected background colors (e.g. menus)
30980 * ColorDialog.cs: Use correct background colors for controls
30982 2005-09-09 Alexander Olk <alex.olk@googlemail.com>
30984 * ThemeNice.cs: Merged r49535 from ThemeWin32Classic
30986 2005-09-08 Peter Dennis Bartok <pbartok@novell.com>
30988 * RichTextBox.cs: Added initial implementation
30989 * lang.cs: Removed. Was accidentally checked in long time ago
30990 * TODO: Removed. Contents were obsolete
30992 2005-09-06 Jonathan Chambers <jonathan.chambers@ansys.com>
30994 * PropertiesTab.cs : Added
30996 2005-09-06 Jonathan Chambers <jonathan.chambers@ansys.com>
30998 * PropertyGrid.cs : Update
30999 * PropertyGridView.cs : Update
31000 * System.Windows.Forms.resx : Added images and strings
31002 2005-09-06 Peter Dennis Bartok <pbartok@novell.com>
31004 * ThemeNice.cs: Do not dispose Pens retrieved from ResPool
31006 2005-09-06 Peter Dennis Bartok <pbartok@novell.com>
31008 * XplatUIX11.cs: Force a flush after Ungrab; if case the app enters
31009 a busy loop right after the Ungrab the X11 display is otherwise
31012 2005-09-06 Jordi Mas i Hernandez <jordi@ximian.com>
31014 * ThemeWin32Classic.cs: Optimise the use of clipping
31016 2005-09-05 Jordi Mas i Hernandez <jordi@ximian.com>
31018 * DataGrid.cs: fixes recursion bug
31020 2005-09-03 Alexander Olk <alex.olk@googlemail.com>
31023 - Draw RadioButton and CheckBox Buttons with DrawButtonBase
31026 2005-09-02 Alexander Olk <alex.olk@googlemail.com>
31028 * ThemeNice.cs: Draw nice ProgressBars
31030 2005-09-01 Miguel de Icaza <miguel@novell.com>
31032 * VScrollBar.cs: Another buglet found by Aaron's tool.
31034 * ProgressBar.cs: Fix three recursive bugs found by Aaron Tomb's
31037 2005-08-30 Alexander Olk <alex.olk@googlemail.com>
31040 - Added nicer menu drawing
31044 2005-08-30 Peter Dennis Bartok <pbartok@novell.com>
31046 * CreateParams.cs (ToString): Made output match MS
31047 * Control.cs (Text): Don't set Text or Focus via XplatUI unless
31048 handle is already created (to avoid forcing window creation)
31049 * XplatUIX11.cs: Set window text to caption after creating window,
31050 in case Text was set before window was created
31051 * Form.cs: Use this.Text instead of a static string as caption
31053 2005-08-30 Peter Dennis Bartok <pbartok@novell.com>
31055 * NotifyIcon.cs: Don't set the window to visible; this screws
31056 up Win32 (causes WM_NCPAINT to be sent on Win32, which calls
31057 OnPaint without a bitmap)
31058 * XplatUIX11.cs: Removed Visible optimization in AddExpose; doesn't
31059 happen very often anyway; we could add the check to the WM_PAINT
31060 event generation code
31062 2005-08-30 Peter Dennis Bartok <pbartok@novell.com>
31064 * NotifyIcon.cs: Fill the icon area with a background color, to
31065 avoid 'residue' when transparent icons are drawn
31067 - Handle whole_window == client_window when destroying windows
31068 - SystrayAdd(): Set client_window to whole_window value to
31069 get mouse and other events passed to NotifyIcon
31071 2005-08-30 Peter Dennis Bartok <pbartok@novell.com>
31073 * Form.cs: Set proper default for Opacity property
31075 - ShowSystray(): Don't bother creating telling the OS
31076 about the systray item if no icon is provided
31077 - Now handles WM_NCPAINT message to deal with whole/client window
31079 - Create window as visible to not get caught by Expose optimization
31080 * Hwnd.cs: Removed debug message
31081 * ComboBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs, TabControl.cs,
31082 StatusBar.cs, TreeView.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched
31083 PaintEventStart/End to use new client argument
31085 - Commented out debug messages
31086 - Switched PaintEventStart/End to use new client argument
31087 * XplatUI.cs: Added client window bool to PaintEventStart()/
31088 PaintEventEnd() calls, to support drawing in non-client areas
31089 * XplatUIDriver.cs:
31090 - Added client window bool to PaintEventStart()/PaintEventEnd()
31091 calls, to support drawing in non-client areas
31092 - Added conditional compile to allow using MWF BeginInvoke
31095 - Added some conditional debug output
31096 - Fixed SystrayAdd() method to support new (for SystrayAdd, anyway)
31097 whole/client window split
31098 - Implemented handling of client argument to PaintEventStart()/End()
31100 - Throw exception if BeginInvoke() is called and the window handle
31101 or one of the window's parent handles is not created
31102 - Added conditional compile to allow using MWF BeginInvoke on
31104 - get_Parent(): Only sets parent if handle is created. This avoids
31105 forcing window handle creation when parent is set.
31106 - Now fires Layout and Parent changed events in proper order
31107 - Switched to use Handle instead of window.Handle for Z-Order setting,
31108 the get_Parent() patch above causes us to possibly get null for 'window'
31109 - Implemented handling of client argument to PaintEventStart()/End()
31110 - Now reports back to windows that WM_SETCURSOR was handled (to avoid
31112 - Now sends a Refresh() to all child windows when Refresh() is called
31114 2005-08-29 Peter Dennis Bartok <pbartok@novell.com>
31116 * Form.cs: Added (non-functional) Opacity property
31117 * XplatUIWin32.cs (SystrayAdd): Removed bogus line of code
31119 2005-08-29 Alexander Olk <xenomorph2@onlinehome.de>
31120 * ThemeNice.cs: New theme for MWF, based on ThemWin32Classic
31121 use export MONO_THEME=nice to activate it.
31122 Currently supported controls:
31126 - TabControl (TabAlignment.Top only, other will follow)
31127 * ThemeEngine.cs: Add theme nice
31128 * ButtonBase.cs: Redraw button on MouseEnter and MouseLeave everytime,
31131 2005-08-25 Jonathan Chambers <jonathan.chambers@ansys.com>
31133 * Splitter.cs: Resize docked control and its neighbor.
31135 2005-08-24 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
31136 -- Making Windows with Menus layout correctly --
31137 * Form.cs : The first leg of the fix
31138 Menu setter - adjust Client Size as needed to make space for the menu
31139 SetClientSizeCore - doesn't call base version to be able to pass the
31140 menu handle to XplatUI.CalculateWindowRect
31141 * Hwnd.cs: Fix for menu_height, now gets from MenuAPI.MENU
31142 * XplatUIX11.cs: The critical second leg of the fix
31143 GetWindowPos needs to use a recalculated client_rect
31144 so that resizing the window doesn't break layout of child controls.
31145 Also a more complete rule to avoid X Server roundtrips in SetWindowPos
31146 Lots of \t\n killed
31148 2005-08-23 Peter Dennis Bartok <pbartok@novell.com>
31150 * Label.cs: Now properly recalculates width and height on Font and Text
31151 changes if AutoSize is set
31153 2005-08-19 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
31154 * TreeView.cs : Revamped drawing logic, and support for FullRowSelect
31156 2005-08-19 Jordi Mas i Hernandez <jordi@ximian.com>
31158 * ImageList.cs: Makes ToString method compatible with MS
31160 2005-08-18 Jordi Mas i Hernandez <jordi@ximian.com>
31162 * MenuAPI.cs: fixes bug 75716
31164 2005-08-11 Umadevi S <sumadevi@novell.com>
31165 * Control.cs: Fixed Remove & RemoveAt to make the parent of the control null.
31167 2005-08-11 Umadevi S <sumadevi@novell.com>
31168 * Contorl.cs: Fixed ResetRightToLeft and ResetImeMode to work correctly
31170 2005-08-10 Umadevi S <sumadevi@novell.com>
31171 * CheckedListBox.cs: Fixed event firing on Adding to the CheckedListBox
31173 2005-08-07 Jordi Mas i Hernandez <jordi@ximian.com>
31175 * Menu.cs: fixes bug 75700
31176 * MenuAPI.cs: fixes navigation issues
31178 2005-08-09 Umadevi S <sumadevi@novell.com>
31179 * CheckedListBox.cs - simple fix for GetItemChecked.
31181 2005-08-08 Jordi Mas i Hernandez <jordi@ximian.com>
31183 * ComboBox.cs: Serveral fixes
31184 * ListBox.cs: Serveral fixes
31186 2005-08-05 Jordi Mas i Hernandez <jordi@ximian.com>
31188 * ComboBox.cs: Fixes FindString methods and GetItemHeight
31189 * ListBox.cs: Fixes FindString methods
31191 2005-08-05 Jordi Mas i Hernandez <jordi@ximian.com>
31193 * DataGrid.cs: fixes bugs exposed by new tests
31195 2005-08-04 Peter Dennis Bartok <pbartok@novell.com>
31197 * Mime.cs: Compile Mono assembly references only if compiling
31198 with Mono (Allows to build with VS.Net again)
31200 2005-07-28 Marek Safar <marek.safar@seznam.cz>
31202 * Control.cs (PaintControlBackground): Draw background image
31204 (CheckForIllegalCrossThreadCalls): Stubbed.
31206 * Form.cs (OnCreateControl): Center when should be centered.
31208 * ThemeWin32Classic.cs (DrawPictureBox): Pass size.
31210 2005-07-19 Jordi Mas i Hernandez <jordi@ximian.com>
31212 * Binding.cs: Binding to properties should be case unsensitive
31214 2005-07-18 vlindos@nucleusys.com
31216 * DataGrid.cs: fixes setmember order
31218 2005-07-07 Alexander Olk <xenomorph2@onlinehome.de>
31220 * MimeIcon.cs: added MimeIcon stuff (MimeIconEngine)
31221 * FileDialog.cs: FileDialog is now resizable and uses the new
31224 2005-07-06 Jordi Mas i Hernandez <jordi@ximian.com>
31226 * DataGridTextBoxColumn.cs: default value
31227 * GridColumnStylesCollection.cs: fixes event firing, checking MappingName
31228 * GridTableStylesCollection.cs: fixes checking MappingName
31229 * DataGridDrawingLogic.cs: fixes drawing logic issues
31230 * DataSourceHelper.cs: rewritten to make compatible with more data sources
31231 * DataGrid.cs: fixes
31233 2005-07-06 Alexander Olk <xenomorph2@onlinehome.de>
31235 * MimeGenerated.cs: Use case sensitive comparer for
31236 NameValueCollections
31238 2005-07-01 Jordi Mas i Hernandez <jordi@ximian.com>
31240 * DataGridTextBoxColumn.cs: bug fixes, code refactoring
31241 * ThemeWin32Classic.cs: bug fixes, code refactoring
31242 * DataGridDrawingLogic.cs: bug fixes, code refactoring
31243 * DataGrid.cs: bug fixes, code refactoring
31244 * DataGridTextBox.cs: bug fixes, code refactoring
31245 * DataGridColumnStyle.cs: bug fixes, code refactoring
31246 * Theme.cs: bug fixes, code refactoring
31248 2005-07-01 Peter Bartok <pbartok@novell.com>
31250 * TextControl.cs: Quick fix for the reported crash on ColorDialog
31251 and other text box usage
31253 2005-07-01 Jackson Harper <jackson@ximian.com>
31255 * TabControl.cs: Make sure the bottom of the tab covers the pages
31258 2005-06-30 Peter Bartok <pbartok@novell.com>
31260 * Form.cs (ShowDialog): Assign owner of the dialog
31261 * TextBoxBase.cs: Always refresh caret size when deleting, caret
31262 might have been moved to a tag with different height
31264 2005-06-30 Jackson Harper <jackson@ximian.com>
31266 * Form.cs: Don't create an infinite loop when setting focus
31267 * MenuItem.cs: Don't dirty the parents if we don't have any
31269 2005-06-29 Ben Maurer <bmaurer@ximian.com>
31271 * LibSupport.cs: Rename
31273 2005-06-29 Peter Bartok <pbartok@novell.com>
31275 * TextBoxBase.cs: Re-align caret after deleting a character
31277 - DeleteChars(): Ensure that tag covers the provided position
31278 - StreamLine(): Drop reference for dropped tag
31280 2005-06-29 Peter Bartok <pbartok@novell.com>
31283 - Selections now work properly, anchoring at the initial location
31284 and properly extending in either direction (SetSelectionToCaret(),
31285 SetSelectionStart() and SetSelectionEnd())
31286 - No longer redraws the whole control on selection change, now
31287 calculates delta between previous and new selection and only
31288 invalidates/redraws that area
31289 - Fixed FindPos() math off-by-one errors
31290 - Changed DeleteChars() to verify the provided tag covers the
31291 provided position, selections may have a tag that doesn't cover
31292 the position if the selection is at a tag border
31293 - Fixed off-by-one errors in DeleteChars()
31294 - Added missing streamlining check in DeleteChars() to remove
31296 - Implemented Invalidate() method, now properly calculates exposures
31297 between two given lines/positions
31298 - Implemented SetSelection()
31299 - Obsoleted and removed FixupSelection()
31300 - Improved RecalculateDocument() logic, removing code duplication
31302 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
31304 * LibSupport.cs: changes to match different input/output arguments.
31306 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
31308 * LibSupport.cs: added libsupport.so init routine.
31310 2005-06-29 Jordi Mas i Hernandez <jordi@ximian.com>
31312 * ControlBindingsCollection.cs
31313 - Throws an exception on null datasource when adding
31314 - Checks for duplicated bindings when adding
31316 2005-06-28 Jackson Harper <jackson@ximian.com>
31318 * TreeView.cs (OnKeyDown): Support left and right properly
31319 (navigates as well as expanding and collapsing.
31320 - Add support for Multiply, this expands all the selected nodes
31322 - Fix some tabbing.
31324 2005-06-28 Jackson Harper <jackson@ximian.com>
31326 * TreeView.cs: Implement keyboard navigation, currently supports,
31327 LEFT, RIGHT, UP, DOWN, PGUP, PGDOWN, HOME, END, ADD, SUBTRACT. Add
31328 support for toggling checkboxes with the space bar.
31330 2005-06-28 Jackson Harper <jackson@ximian.com>
31332 * OpenTreeNodeEnumerator.cs: Don't move past the begining of the
31335 2005-06-28 Jackson Harper <jackson@ximian.com>
31337 * TreeView.cs: Add missing event.
31339 2005-06-27 Peter Bartok <pbartok@novell.com>
31342 - Made line ending size configurable (now allows for counting
31343 lineendings as \n or \r\n)
31344 - Added margin to viewport to keep caret visible on right side
31345 - Fixed translation routines for line/pos to documentpos to consider
31346 cr/lf when counting (Fixes RichTextBox.SelectionFont issues)
31347 - Fixed some line-endings to be unix style
31348 - Fixed Document.FormatText to perform it's calculations 1-based
31349 - Added descriptions for a few methods that might otherwise get
31351 - Added NOTE section with some basic conventions to remember at
31352 the top of the file
31353 - Major fixup for RichTextBox selection drawing:
31354 * Fixed crashes when multiple tags on a single line were selected
31355 * fixed selection box drawing not overlaying text
31356 * fixed bogus offset calculation for tags not starting at index 1
31357 * Switched behaviour from using multiple Substrings of a
31358 StringBuilder.ToString() to using multiple
31359 StringBuilder.ToString(start, length) statements, hoping this is
31360 faster (kept original version commented out in the code, in case
31361 original version was faster)
31362 * TextBox.cs (set_TextAlignment): TextBox always needs to wrap if
31364 * TextBoxBase.cs (CalculateDocument): Made protected so RichTextBox can
31367 2005-06-27 Jackson Harper <jackson@ximian.com>
31369 * TabControl.cs: Move to the left and right with the arrow
31370 keys. These keys don't cycle beyond first and last like
31371 tab. Refresh all the tabs when scrolling them to the left or
31374 2005-06-27 Jackson Harper <jackson@ximian.com>
31377 - ToString: Added method
31378 - CreateParams: Remove TODO and comment
31379 - OnKeyDown: Cycle through bounds properly.
31380 - SelectedIndex: Scroll to the right or left if we need to
31381 display the newly selected tab.
31383 2005-06-23 Jackson Harper <jackson@ximian.com>
31385 * TabControl.cs: Stay in bounds when cycling. Make sure Handled is
31388 2005-06-23 Jackson Harper <jackson@ximian.com>
31390 * TabControl.cs: Keyboard handling. We now support CTRL-TAB,
31391 CTRL-SHIFT-TAB, and HOME, END are there any others?
31393 2005-06-23 Jackson Harper <jackson@ximian.com>
31395 * XplatUIX11.cs: Get the modifier keys from the keyboard driver.
31397 2005-06-22 Jordi Mas i Hernandez <jordi@ximian.com>
31399 * DataGridTextBoxColumn.cs: fixes and enhancements
31400 * ThemeWin32Classic.cs: fixes and enhancements
31401 * DataGridBoolColumn.cs: fixes and enhancements
31402 * DataGridDrawingLogic.cs: fixes and enhancements
31403 * CurrencyManager.cs: fixes and enhancements
31404 * DataGrid.cs: fixes and enhancements
31405 * DataGridColumnStyle.cs: fixes and enhancements
31407 2005-06-22 Jackson Harper <jackson@ximian.com>
31409 * TabControl.cs: Add some missing methods that just call into the
31410 base. Make the TabPageCollection's IList interface behave in the
31411 same manner as the MS implementation.
31413 2005-06-22 Peter Bartok <pbartok@novell.com>
31415 * TextControl.cs: Added sanity check
31417 - Fixed wrapping behaviour, don't set wrap on single line controls
31418 (this fixes the breakage of colordialog introduced in an earlier
31420 - Added rudimentary support for autoscrolling right-aligned controls
31421 (still needs fixing, also, center alignment scroll is missing)
31423 2005-06-22 Jordi Mas i Hernandez <jordi@ximian.com>
31425 * ScrollBar.cs: Fixes thumbpos on Maximum values
31427 2005-06-21 Jonathan Chambers <jonathan.chambers@ansys.com>
31429 * PropertyGridView.cs: Pass context information to UITypeEditors
31431 2005-06-21 Peter Bartok <pbartok@novell.com>
31434 - Now calling PositionCaret with absolute space coordinates
31435 - Enabled vertical scrolling
31436 - Better tracking of scrollbar changes, tied into WidthChange
31438 - Improved cursor tracking
31439 - Removed debug output
31441 - PositionCaret coordinates are now works in absolute space, not
31443 - Improved tracking of document size
31444 - Added events for width and height changes
31446 2005-06-21 Peter Bartok <pbartok@novell.com>
31448 * Form.cs: Set focus to active control when form is activated
31450 - Added word-wrap functionality to RecalculateLine()
31451 - Added some short function descriptions for VS.Net to aid in
31452 writing dependent controls
31453 - Added Caret property, returning the current coords of the caret
31454 - Added ViewPortWidth and ViewPortHeight properties
31455 - Added Wrap property
31456 - Added CaretMoved event
31457 - Removed some old debug code
31458 - Split() can now create soft splits
31459 - Added PreviousTag()/NextTag() to allow walking "tag-lists"
31460 - Added method to format existing text
31461 - Fixed size/alignment calculations to use viewport
31462 - RecalculateDocument now can handle changing line-numbers while
31466 - Added some wrap logic, we don't wrap if alignment is not left
31467 - Added casts for scrollbar var, base class switched types to
31468 also support RichTextBoxA
31469 - Implemented handling of scrollbar visibility flags
31472 - Switched scrollbars type to RichTextBoxScrollBars to support
31474 - Added tracking of canvas width/height
31475 - Switched scrollbars to be not selectable (to keep focus on text)
31476 - Added central CalculateDocument() method to handle all redraw
31478 - Added ReadOnly support
31479 - Added WordWrap support
31480 - Fixed handling of Enter key (we now treat it as a DialogKey)
31481 - Fixed caret positioning when h or v scroll is not zero
31482 - Fixed placing/generation of vertical scrollbar
31483 - Added CalculateScrollBars() method to allow updating scrollbar
31484 limits and visibility
31485 - Fixed handling of horizontal scroll
31486 - Added handling of vertical scroll
31487 - Implemented auto-'jump' when caret moves to close to a left or
31488 right border and there is text to be scrolled into view (currently
31489 there's the potential for a stack overflow, until a bug in
31490 scrollbar is fixed)
31492 2005-06-21 Geoff Norton <gnorton@customerdna.com>
31494 * XplatUIOSX.cs: Initial implementation of WM_ERASEBKGND
31496 2005-06-19 Alexander Olk <xenomorph2@onlinehome.de>
31500 - return application/x-zerosize for files with size zero
31501 (if no extension pattern matches).
31502 - check matches collection for strings too.
31503 - return only the first mime type if the name value
31504 collection has more than one mime type.
31506 2005-06-18 Jonathan Chambers <jonathan.chambers@ansys.com>
31508 * PropertyGrid.cs: Cleaned up some TODOs
31509 * PropertyGridView.cs: Added support for UITypeEditors
31511 2005-06-17 Jordi Mas i Hernandez <jordi@ximian.com>
31513 * DataGrid.cs: clears cached value
31515 2005-06-17 Jordi Mas i Hernandez <jordi@ximian.com>
31517 * DataGridTextBoxColumn.cs: new rows, speed improvements, fixes, readonly prop.
31518 * DataGridDrawingLogic.cs: new rows, speed improvements, fixes, readonly prop.
31519 * DataGrid.cs: new rows, speed improvements, fixes, readonly prop.
31520 * DataGridColumnStyle.cs: new rows, speed improvements, fixes, readonly prop.
31522 2005-06-16 Jordi Mas i Hernandez <jordi@ximian.com>
31524 * ThemeWin32Classic.cs: fixes colour
31526 2005-06-15 Peter Bartok <pbartok@novell.com>
31528 * MWFCategoryAttribute.cs: Added (Needed for PropertyGrid designer support)
31529 * MWFDescriptionAttribute.cs: Added (Needed for PropertyGrid designer support)
31530 * ButtonBase.cs: Added MWFCategory and MWFDescription attributes
31531 * Control.cs: Added some MWFCategory and MWFDescription attributes
31532 * ScrollBar.cs: Added some MWFCategory and MWFDescription attributes
31534 2005-06-15 Alexander Olk <xenomorph2@onlinehome.de>
31536 * Mime.cs, MimeGenerated.cs: First draft of MWF mime stuff, see Mime.cs for
31539 2005-06-14 Jordi Mas i Hernandez <jordi@ximian.com>
31541 * DataGridTextBoxColumn.cs: default datagrid settings for Default Styles, fixes
31542 * DataGridTableStyle.cs: default datagrid settings for Default Styles, fixes
31543 * DataGridDrawingLogic.cs: default datagrid settings for Default Styles, fixes
31544 * DataGridBoolColumn.cs: default datagrid settings for Default Styles, fixes
31545 * DataGrid.cs: default datagrid settings for Default Styles, fixes
31546 * DataGridColumnStyle.cs: default datagrid settings for Default Styles, fixes
31548 2005-06-13 Jackson Harper <jackson@ximian.com>
31550 * XplatUIX11.cs: Override SetAllowDrop on X11 so an error message
31551 isn't printed when the user enables dropping. (X11 does accept
31554 2005-06-13 Jackson Harper <jackson@ximian.com>
31556 * TreeView.cs: Remove some TODOS.
31558 2005-06-13 Jackson Harper <jackson@ximian.com>
31560 * Form.cs: Hook into the mdi framework.
31561 * MdiClient.cs: Use the base control collections add method so
31562 parents get setup correctly. Set the default back colour and dock
31564 * MdiChildContext.cs: New class, this bad actor handles an
31565 instance of an MDI window. Right now there is only basic
31566 support. You can drag, close, and resize windows. Minimize and
31567 Maximize are partially implemented.
31569 2005-06-13 Jackson Harper <jackson@ximian.com>
31571 * XplatUIX11.cs: Mash numbers together properly, otherwise we get
31572 freaky when both vals are negative. NOTE: There are probably other
31573 places in XplatUIX11 that this needs to be done.
31575 2005-06-13 Jordi Mas i Hernandez <jordi@ximian.com>
31577 * DataGrid.cs: implement missing methods, move KeyboardNavigation
31578 * DataGridColumnStyle.cs: fixes signature
31580 2005-06-12 Jackson Harper <jackson@ximian.com>
31582 * XplatUIX11.cs: Use sizing cursors similar to the ones on
31585 2005-06-11 Jackson Harper <jackson@ximian.com>
31587 * StatusBarPanel.cs: Signature cleanups. Implement
31590 2005-06-10 Jordi Mas i Hernandez <jordi@ximian.com>
31592 * DataGridTextBoxColumn.cs: Honors aligment
31593 * GridColumnStylesCollection.cs: Contains is case unsensitive
31594 * GridTableStylesCollection.cs: several fixes
31595 * DataGridTableStyle.cs: default column creation
31596 * DataGridDrawingLogic.cs: fixes
31597 * CurrencyManager.cs: ListName property
31598 * DataGrid.cs: multiple styles support
31599 * DataGridColumnStyle.cs: fixes
31602 2005-06-10 Peter Bartok <pbartok@novell.com>
31604 * Control.cs(Select): Moved SetFocus call to avoid potential
31605 loops if controls change the active control when getting focus
31606 * UpDownBase.cs: Fixes to allow proper keyboard focus after clicking
31607 the up/down buttons
31609 2005-06-10 Matthias Felgner <matthiasf@voelcker.ocm>
31611 * ImageListConverter.cs: Implemented
31613 2005-06-10 John BouAntoun <jba-mono@optusnet.com.au>
31615 * MonthCalendar.cs: Wired in NumericUpDown control for year
31617 2005-06-10 John BouAntoun <jba-mono@optusnet.com.au>
31619 * MonthCalendar.cs: Removed MonoTodo attributes on Click and
31620 DoubleClick events, since they are not meant to be fired.
31622 2005-06-09 Peter Bartok <pbartok@novell.com>
31624 * UpDownBase.cs, NumericUpDown.cs, DomainUpDown.cs: Integrated
31625 Jonathan's standalone controls into MWF, implemented missing
31626 events, attributes and methods; added xxxAccessible classes
31627 * AccessibleObject.cs: Made fields internal so other classes
31628 can change them if needed
31630 2005-06-09 Jonathan Gilbert <2a5gjx302@sneakemail.com>
31632 * UpDownBase.cs: Complete implementation
31633 * NumericUpDown.cs: Complete implementation
31634 * DomainUpDown.cs: Complete implementation
31636 2005-06-09 Jordi Mas i Hernandez <jordi@ximian.com>
31638 * DataGridTextBoxColumn.cs: drawing fixes
31639 * DataGridCell.cs: fixes ToString method to match MSNet
31640 * DataGridTableStyle.cs: fixes
31641 * DataGridBoolColumn.cs: fixes, drawing
31642 * DataGridDrawingLogic.cs: fixes, new methods
31643 * DataGridTextBox.cs: Keyboard and fixes
31645 - Keyboard navigation
31647 - Row selection (single, multiple, deletion, etc)
31650 2005-06-07 Jackson Harper <jackson@ximian.com>
31652 * ThemeWin32Classic.cs: Clear the background area when drawing
31655 2005-06-06 Peter Bartok <pbartok@novell.com>
31657 * ImageListStreamer.cs: Fixed signature for GetData
31658 * CheckBox.cs: Fixed base class for CheckBoxAccessibleObject
31660 - Added missing ChildAccessibleObject class
31661 - Added missing OnXXXFocus overrides, switched to using those
31662 instead of the event handler
31664 - Added Parent property for ControlAccessibleObject
31667 - Added ResetBindings()
31668 * ListBindingConverter.cs: Implemented some methods
31669 * ButtonBase.cs: Added missing ButtonBaseAccessibleObject class
31670 * ImageList.cs: Implemented basic handle scheme, removed TODOs
31671 * ContainerControl.cs: Fixed signature, now subscribing to the
31672 ControlRemoved event instead of overriding the handler, LAMESPEC
31673 * CurrencyManager.cs: Added missing attribute
31674 * MonthCalendar.cs: Added missing properties
31676 2005-06-06 Jordi Mas i Hernandez <jordi@ximian.com>
31678 * DataGridColumnStyle.cs: fixes for DataGridColumnStyle
31680 2005-06-06 Gaurav Vaish and Ankit Jain
31682 * DataSourceHelper.cs: Gaurav Vaish and Ankit Jain patch for databinding
31683 * DataGrid.cs: Gaurav Vaish and Ankit Jain patch for databinding
31685 2005-06-06 Jordi Mas i Hernandez <jordi@ximian.com>
31687 * Control.cs: fixes CreateParams Width / Height.
31689 2005-06-05 Peter Bartok <pbartok@novell.com>
31691 * Win32DnD.cs: Removed compilation warnings
31693 2005-06-05 Peter Bartok <pbartok@novell.com>
31695 * Control.cs (CreateParams): Since we don't know if one of the
31696 properties we use is overridden, lets make sure if we fail accessing
31697 we continue with a backup plan
31699 2005-06-05 Peter Bartok <pbartok@novell.com>
31702 - Removed debug output
31703 - Added MarshalAs attribute to ensure proper marshalling of FORMATETC
31705 - Plugged resource leak
31706 * XplatUIStructs.cs: Changed ClipboardFormats size to ushort, to match
31709 2005-06-05 Peter Bartok <pbartok@novell.com>
31711 * XplatUIWin32.cs: Removed DnD code
31712 * Win32DnD.cs: Implemented drop source and drop target functionality
31714 2005-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
31716 * UpDownBase.cs: remove duplicate addition of event, enable some code
31717 that was commented out.
31718 * NumericUpDown.cs: added missing attributes and Hexadecimal property.
31719 Validate input when a key is pressed. It works fine now for every
31720 combination of Hexadecimal. Only missing some drawing love when sharing
31721 space with other controls.
31723 2005-06-04 Peter Bartok <pbartok@novell.com>
31726 - We need to pass a window for DragDrop, so enable callback events
31727 - Added DnD callback events when being a DragSource
31728 * XplatUI.cs (StartDrag): Added window handle argument
31729 * XplatUIDriver.cs (StartDrag): Added window handle argument
31730 * QueryContinueDragEventArgs: Made fields internally accessible so
31731 drivers can set them
31732 * GiveFeedbackEventArgs: Made fields internally accessible so drivers
31735 2005-06-03 Jordi Mas i Hernandez <jordi@ximian.com>
31737 * DataGridTextBoxColumn.cs: column text editing
31738 * DataGridTableStyle.cs: Respect columns styles created by the user
31739 * DataGridDrawingLogic.cs: lots of drawing fixes and enhanments
31740 * DataGridBoolColumn.cs: bool column editing
31741 * DataGrid.cs: fixes to scrolling, properties, etc
31742 * DataGridTextBox.cs: handle keyboard
31743 * DataGridColumnStyle.cs: fixes
31745 2005-06-02 Jackson Harper <jackson@ximian.com>
31747 * ImageListStreamer.cs: Somewhat broken implementation of
31748 GetObjectData. The RLE needs some work to match MS properly.
31750 2005-06-02 Jackson Harper <jackson@ximian.com>
31752 * X11Dnd.cs: Attempting to keep at least one file in MWF
31755 2005-06-02 Peter Bartok <pbartok@novell.com>
31757 * X11DnD.cs: Use Marshal.SizeOf instead of sizeof, no /unsafe required
31760 2005-06-02 Peter Bartok <pbartok@novell.com>
31762 * Control.cs: Removed MonoTODO from DoDragDrop and added call to Xplat
31763 * XplatUI.cs: Added DoDragDrop() method
31764 * XplatUIDriver.cs: Added DoDragDrop() method
31766 2005-06-02 Jackson Harper <jackson@ximian.com>
31768 * Splitter.cs: Implement BorderStyle.
31770 2005-06-02 Jackson Harper <jackson@ximian.com>
31772 * XplatUIX11.cs: Tie into the X11Dnd subsystem.
31773 * X11Dnd.cs: New file. A subsystem that handles drag and drop on
31776 2005-06-02 Peter Bartok <pbartok@novell.com>
31779 - Added Data setter
31780 - Fixed broken insertion code for SetData, now also
31781 overwrites any existing entry of the same format name
31782 * Hwnd.cs: Added list of pointers that automatically gets
31783 freed when the window is disposed
31784 * XplatUI.cs: Call driver initialization method when loading
31787 - OnDragLeave takes EventArgs, not DragEventArgs
31788 - Added setting of WS_EX_ACCEPTFILES style when dropping is
31790 - Forces style update when drop state changes
31791 * XplatUIWin32.cs: Implemented Drag'n'Drop (as good as possible,
31792 not perfect since we cannot (yet) call the IDataObject.GetData()
31793 method, we keep getting 0x80004005 error, dunno why)
31795 2005-06-02 Peter Bartok <pbartok@novell.com>
31797 * DragEventArgs.cs: Make fields internal so we can cache the
31798 object and re-set the fields from XplatUI
31800 2005-06-02 Jackson Harper <jackson@ximian.com>
31802 * Control.cs: Add some internal methods so the DnD subsystem can
31803 raise DnD events. Also call into the driver when AllowDrop is set.
31805 * XplatUIDriver.cs: New method for setting whether or not a window
31806 is allowed to accept drag and drop messages.
31808 2005-06-01 Jordi Mas i Hernandez <jordi@ximian.com>
31810 * ScrollBar.cs: Make sure that values sent in Scroll events
31811 are always between Maximum and Minimum.
31813 2005-06-01 Marek Safar <marek.safar@seznam.cz>
31815 * Menu.cs: Call MenuChanged when menuitem visibility has been
31817 * MenuItem.cs: Rebuild menu when item is (not) visible.
31818 * MainMenu.cs: MainMenu has special MenuChanged.
31819 * Theme.cs: Caption and FrameBorderSize are not fixed.
31820 * XplatUI.cs: Added CaptionHeight,FrameBorderSize.
31821 * XplatUIDriver.cs: Introduced Caption and FrameBorderSize.
31823 * XplatUIOSX: Caption and FrameBorderSize not implemented yet.
31824 * XplatUIWin32.cs: Get Caption and FrameBorderSize from system.
31826 2005-05-30 Jackson Harper <jackson@ximian.com>
31828 * DataFormat.cs: We can't statically initialize this stuff because
31829 it calls into the xplatui and could create a loop. So we lazy init
31832 2005-05-28 Jackson Harper <jackson@ximian.com>
31834 * Control.cs: Proper implementation of Product(Name/Version).
31836 2005-05-27 Jackson Harper <jackson@ximian.com>
31838 * DataObject.cs: Dont crash if no data is found.
31840 2005-05-26 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
31841 * MdiClient.cs: Add missing Localizable attribute to BackgroundImage property
31842 as per status page, guessing it should be set to true
31844 2005-05-26 Jordi Mas i Hernandez <jordi@ximian.com>
31846 * DataGridTextBoxColumn.cs: Draws text and basic text formatting
31847 * DataGridTableStyle.cs: set proper formatting text, def header text
31848 * ThemeWin32Classic.cs: new themable paramaters
31849 * DataGridBoolColumn.cs: paint check box, get data, fixes
31850 * DataGridDrawingLogic.cs: huge improvements in painting, fixes, new methods
31851 * DataGrid.cs: fixes properties, implements vertical and horizontal scrolling
31852 * DataGridColumnStyle.cs: fixes
31853 * Theme.cs: new themable paramaters
31855 2005-05-26 Peter Bartok <pbartok@novell.com>
31857 * ContainerControl.cs: Pass AdjustFormScrollbars() call on to base
31859 2005-05-24 Jonathan S. Chambers <jonathan.chambers@ansys.com>
31860 * Control.cs: Fixed LowOrder and HighOrder to preserve sign.
31862 2005-05-24 Peter Bartok <pbartok@novell.com>
31864 * OpenFileDialog.cs, Form.cs, Menu.cs, GroupBox.cs, UserControl.cs,
31865 Label.cs, DataGridTextBoxColumn.cs, PropertyGrid.cs, ErrorProvider.cs
31866 Splitter.cs, Control.cs, FontDialog.cs, TabPage.cs,
31867 FolderBrowserDialog.cs, HelpProvider.cs, DataGridTableStyle.cs,
31868 NotifyIcon.cs, FileDialog.cs, ListView.cs, SaveFileDialog.cs,
31869 ToolBarButton.cs, ImageList.cs, DataGridBoolColumn.cs, Panel.cs,
31870 DataGrid.cs, DataGridTextBox.cs, ListBox.cs, TrackBar.cs,
31871 AxHost.cs, TabControl.cs, ScrollableControl.cs, ToolBar.cs,
31872 DataGridColumnStyle.cs, PictureBox.cs, DateTimePicker.cs,
31873 StatusBar.cs, MonthCalendar.cs, TreeView.cs: Added
31874 missing attributes, etc
31875 * DataGridPreferredColumnWidthTypeConverter.cs: Added
31877 2005-05-24 Peter Bartok <pbartok@novell.com>
31879 * Help.cs: Added, implemented trivial functions, throws up MessageBox
31880 when user tries to get help
31881 * DataObject.cs, DataFormats.cs, LinkArea.cs,
31882 SelectionRangeConverter.cs, Clipboard.cs : Removed unused variables
31883 to suppress warnings
31884 * XplatUIWin32.cs, XplatUIOSX.cs, XplatUIX11.cs: Removed unused code to
31885 avoid unreachable code warning
31887 2005-05-20 Peter Bartok <pbartok@novell.com>
31889 * CursorConverter.cs (ConvertTo): Switched to use Cursor.GetObjectData
31891 2005-05-20 Jordi Mas i Hernandez <jordi@ximian.com>
31893 * DataGridTextBoxColumn.cs: Basic painting methods
31894 * DataGridTableStyle.cs: Set table style in the column
31895 * ThemeWin32Classic.cs: Use Theme for colors
31896 * DataGridDrawingLogic.cs: Implement more drawing
31897 * DataGrid.cs: drawing, theming, enhacements, fixes
31898 * DataGridColumnStyle.cs: fixes, drawing
31899 * Theme.cs: theming for Datagrid
31901 2005-05-20 Peter Bartok <pbartok@novell.com>
31903 * Cursor.cs: Implemented GetObjectData() method
31905 2005-05-20 Peter Bartok <pbartok@novell.com>
31907 * Cursors.cs: Added setting of cursor name
31909 - Implemented constructors
31910 - Implemented Draw and DrawStretched
31911 - Implemented Current property
31912 - Implemented == and != operators
31913 - Implemented Dispose()
31914 - Implemented ToString
31915 - Added missing attributes
31917 - Added missing reset for OverrideCursor when DoEvents is called
31918 - Fixed creation of cursor, logic was wrong
31920 - Added missing reset for OverrideCursor when DoEvents is called
31921 - Fixed creation of cursor, bit arrays were swapped
31922 * Clipboard.cs: Removed obsolete MonoTODO attribute
31924 2005-05-20 Jordi Mas i Hernandez <jordi@ximian.com>
31926 * ComboBox.cs: fixes OnSelectedItemChanged
31927 * ControlBindingsCollection.cs: fixes item range check
31929 2005-05-20 Jordi Mas i Hernandez <jordi@ximian.com>
31932 - Calc preferred height properly
31933 - Implement missing properties
31935 * NumericUpDown.cs: Implement missing events
31937 2005-05-19 Jackson Harper <jackson@ximian.com>
31939 * TabControl.cs: New method that resizes the tab pages before
31940 redrawing them. This as needed as the control is double buffered
31941 and sizing will not be recalculated unless ResizeTabPages is
31943 * TabPage.cs: Set base.Text instead of Text in the constructor so
31944 that UpdateOwner does not get called. Use the new Redraw method of
31945 TabControl instead of Refresh so the sizing is recalculated.
31946 * ThemeWin32Classic.cs: Draw the text for button tabs.
31948 2005-05-19 Jackson Harper <jackson@ximian.com>
31950 * Control.cs: Paint control background images. Fix typo where
31951 PaintControlBackground was not getting called correctly.
31953 2005-05-19 Peter Bartok <pbartok@novell.com>
31955 * ScrollableControl.cs (DisplayRectangle): Undid my last change until
31956 I can investigate, apparently I broke FileDialog
31958 2005-05-19 Marek Safar <marek.safar@seznam.cz>
31960 * AxHost.cs: Some simple properties.
31961 * Control.cs: window must be accessible after ctor.
31962 * Form.cs: Added TransparencyKey property.
31963 * TextBoxBase.cs: Implemented Clear. Text property can be null.
31964 * XplatUIWin32.cs: SetBorderStyle implemented.
31966 2005-05-18 Peter Bartok <pbartok@novell.com>
31968 * DataObject.cs: Entries are not global but particular to the
31969 DataObject, now it behaves that way
31970 * XplatUIWin32.cs: Implemented Clipboard methods
31971 * Clipboard.cs: Implemented
31972 * ScrollableControl.cs (DisplayRectangle): Fixed calculation
31973 * XplatUIOSX.cs: Updated to final clipboard prototypes
31974 * XplatUIX11.cs: Implemented Clipboard methods
31975 * XplatUIDriver.cs: Updated to final clipboard prototypes
31976 * XplatUIStructs.cs:
31977 - Added BITMAPINFOHEADER struct
31978 - Added ClipboardFormats enum
31980 - Added ClipboardStruct
31981 - Added Atom enum items for clipboard types
31982 - Fixed atom types for Selection event structures
31984 - Added internal properties and methods for drivers to enumerate
31986 - Switched initialization method to allow drivers to assign their
31987 own IDs even for the MS predefined clipboard IDs
31988 * XplatUI.cs: Updated to final clipboard interface
31990 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
31991 * PropertyGridView.cs: Fixed compiler warnings.
31993 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
31994 * PropertyGrid.cs: Added some event calls
31995 * PropertyGridView.cs: Change drawing code to use double buffering
31996 * PropertyGridTextBox.cs: Changed Text property name
31997 * GridItem.cs: Added Bounds property.
31998 * GridEntry.cs: Added Bounds property.
32000 2005-05-17 Lluis Sanchez Gual <lluis@novell.com>
32002 * Binding.cs: Use IsInstanceOfType instead of IsAssignableFrom
32003 since GetType() may not return the correct type if the object is
32006 2005-05-17 Jordi Mas i Hernandez <jordi@ximian.com>
32008 * TreeNodeCollection.cs: fixes get/set item ranges
32010 2005-05-15 Jordi Mas i Hernandez <jordi@ximian.com>
32012 * ListBox.cs: Kazuki Oikawa's PreferredHeight and ItemHeight fixes
32014 2005-05-15 Jordi Mas i Hernandez <jordi@ximian.com>
32016 * ComboBox.cs: Fix item range comparation
32017 * ListView.cs: Fix item range comparation
32019 2005-05-03 Alexander Olk <xenomorph2@onlinehome.de>
32022 - Clear example panel when OnPaint is called
32023 - Better solution for displaying the example panel text
32024 - Select default indexes in the ListBoxes
32026 2005-05-11 Geoff Norton <gnorton@customerdna.com>
32028 * XplatUIOSX.cs: Avoid painting into invisible views. Fixes #74926
32030 2005-05-11 Peter Bartok <pbartok@novell.com>
32032 * LinkArea.cs: Added and implemented LinkAreaTypeConverter class
32033 * SelectionRangeConverter.cs: Implemented
32034 * PropertyGrid.cs: Fixed attribute value
32036 - Invoke(): Don't call Begin/EndInvoke if it is not neccessary
32037 - Added Sebastien Pouliot's CAS Stack Propagation fixes
32038 * XplatUIDriver.cs: Added new XplatUIDriverSupport class, for code
32039 that's common to all drivers. First methods to go there are
32040 Sebastien Pouliot's CAS Stack Propagation helper methods
32041 * XplatUIWin32.cs, XplatUIX11.cs, AsyncMethodData.cs: Fixes by
32042 Sebastien Pouliot for CAS Stack Propagation
32044 2005-05-11 Geoff Norton <gnorton@customerdna.com>
32047 XplatUIOSX.cs: More cosmetic cleanup courtesy of Artyom Tyazhelov (Artyom.Tyazhelov@helmes.ee)
32049 2005-05-12 Jordi Mas i Hernandez <jordi@ximian.com>
32051 * DataGridTextBoxColumn.cs: fixed some members
32052 * GridColumnStylesCollection.cs: indexed column is case insensitive
32053 * DataGridTableStyle.cs: fixes
32054 * ThemeWin32Classic.cs: add new theme parameter
32055 * Theme.cs: add new theme parameter
32056 * DataGridDrawingLogic.cs: Datagrid's drawing logic
32057 * DataGrid.cs: fixes, new internal properties, etc.
32058 * DataGridColumnStyle.cs: allows to set grid value
32061 2005-05-10 Peter Bartok <pbartok@novell.com>
32063 * AccessibleObject.cs:
32064 - Removed MonoTODO attribute on help, method is correct
32065 - Fixed Bounds property
32066 * AxHost.cs: Moved MonoTODO
32067 * ButtonBase.cs: Now setting AccessibleObject properties
32068 * RadioButton.cs: Setting proper AccessibleObject role
32069 * CheckBox.cs: Setting proper AccessibleObject role
32070 * ControlBindingsCollection.cs: Added properties, methods and attributes
32071 * DataFormats.cs: Fixed awkward internal API, and changed to enable
32072 userdefined DataFormats.Format items as well
32073 * ListControl.cs: Removed data_member from the public eye
32074 * OpenFileDialog.cs:
32075 - Made class sealed
32076 - Added missing attributes
32077 * SaveFileDialog.cs: Added missing attributes
32078 * ImageListStreamer.cs: Fixed code that caused warnings
32079 * LinkLabel.cs: Removed unreachable code
32080 * TreeView.cs: Fixed code that caused warnings
32081 * PropertyGridView.cs: Fixed code that caused warnings
32082 * GridColumnStylesCollection.cs: Added missing attributes
32083 * GridTableStylesCollection: Added missing attribute
32084 * PropertyManager: Added .ctor
32085 * SecurityIDType: Added
32086 * DataObject.cs: Implemented class
32087 * LinkArea.cs: Added missing attribute
32089 2005-05-11 Jordi Mas i Hernandez <jordi@ximian.com>
32091 * RadioButton.cs: call base method to allow to fire OnClick event
32092 * UpDownBase.cs: OnMouseUp call base method
32093 * CheckedListBox.cs: call base method before returning
32094 * TrackBar.cs: call base method before returning
32097 2005-05-10 Peter Bartok <pbartok@novell.com>
32099 * XplatUIX11.cs: Fix for #74902, check pending timers when peeking
32102 2005-05-10 Peter Bartok <pbartok@novell.com>
32104 * DataFormats.cs: Implemented
32105 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs,
32106 XplatUIX11.cs: Added Clipboard APIs
32107 * XplatUIWin32.cs: Implemented Clipboard APIs
32108 * FolderBrowserDialog.cs: Added missing event, attributes
32110 2005-05-10 Jordi Mas i Hernandez <jordi@ximian.com>
32112 * CheckBox.cs: call base method to allow to fire OnClick event
32114 2005-05-09 Sebastien Pouliot <sebastien@ximian.com>
32116 * XplatUI.cs: Use PlatformID.Unix under NET_2_0.
32118 2005-05-06 Peter Bartok <pbartok@novell.com>
32120 * XplatUIX11.cs: Redid Jackson's fix, it was causing a busy loop
32121 * Screen.cs: Implemented
32122 * HelpNavigator.cs: Added
32123 * XplatUIWin32.cs: Added SystemParametersInfo call, fixed WorkArea
32125 * HelpProvider.cs: Implemented all we can do until we have a CHM
32126 help library (which means that "What's This" does work now)
32128 2005-05-06 Jackson Harper <jackson@ximian.com>
32130 * XplatUIX11.cs: Fix waking up the main loop.
32132 2005-05-05 Peter Bartok <pbartok@novell.com>
32134 * XplatUI.cs: Updated revision
32135 * Form.cs: Removed enless loop
32136 * GroupBox.cs (OnPaint): Added call to base.OnPaint()
32137 * Label.cs (OnPaint): Added call to base.OnPaint()
32138 * ToolTip.cs: Made ToolTipWindow reusable for other controls
32139 * LinkLabel.cs (OnPaint): Added call to base.OnPaint()
32140 * UpDownBase.cs (OnPaint): Moved base.OnPaint() call to end of method
32142 * ButtonBase.cs: Moved base.OnPaint() call to end of method
32143 * ThemeWin32Classic.cs: Replaced references to ToolTip with references
32144 to ToolTip.ToolTipWindow for drawing and size methods; this allows
32145 reuse of ToolTipWindow by other controls
32146 * SizeGrip.cs: Moved base.OnPaint() call to end of method
32147 * XplatUIX11.cs: Now clipping drawing area (experimental)
32148 * PictureBox.cs: Moved base.OnPaint() call to end of method
32149 * Theme.cs: Fixed ToolTip abstracts to match new format
32150 * ErrorProvider.cs: Implemented
32152 2005-05-05 Jordi Mas i Hernandez <jordi@ximian.com>
32154 * Label.cs: fire events using OnAutoSizeChanged and OnTextAlignChanged
32158 - Implements LinkBehavior
32159 - Fixes many issues
32161 2005-05-03 Jackson Harper <jackson@ximian.com>
32163 * ListView.cs: Calculate the scrollbar positioning on resize and
32164 paint, so they get put in the correct place.
32166 2005-05-03 Alexander Olk <xenomorph2@onlinehome.de>
32168 * ColorDialogs.cs: The small color panels are now handled by
32169 SmallColorControl. This fixes drawing of the focus rectangle
32170 and adds a 3D border.
32172 2005-05-03 Peter Bartok <pbartok@novell.com>
32174 * Control.cs: Modified version of Jonathan Chamber's fix for
32177 2005-05-03 Jackson Harper <jackson@ximian.com>
32179 * ListView.cs: Remove redraw variable. Control now handles whether
32180 or not a redraw needs to be done, and will only raise the paint
32181 event if redrawing is needed.
32183 2005-05-03 Jackson Harper <jackson@ximian.com>
32185 * Splitter.cs: No decorations for the splitter form. Cache the
32188 2005-05-03 Jackson Harper <jackson@ximian.com>
32190 * TreeView.cs: Use dashed lines to connect nodes. Use the
32191 ControlPaint method for drawing the focus rect instead of doing
32194 2005-05-02 Peter Bartok <pbartok@novell.com>
32196 * LinkLabel.cs: Fixed the fixes from r43566 and 43521
32198 2005-04-29 Jackson Harper <jackson@ximian.com>
32200 * ThemeWin32Classic.cs: Don't clear the GC that will clear the
32201 entire image buffer. Just clear the clipping rectangle.
32203 2005-04-29 Jackson Harper <jackson@ximian.com>
32205 * ThemeWin32Classic.cs: Don't draw list view items that are
32206 outside the clipping rectangle.
32208 2005-04-29 Jordi Mas i Hernandez <jordi@ximian.com>
32210 * ListBox.cs: added horizontal item scroll
32212 2005-04-29 Jackson Harper <jackson@ximian.com>
32214 * ThemeWin32Classic.cs: Remove some old debug code that was
32215 causing flicker with the new double buffering code.
32217 2005-04-29 John BouAntoun <jba-mono@optusnet.com.au>
32219 * MonthCalendar.cs, DateTimePicker.cs: Made monthcalendar dropdwon
32220 behave like combobox and comboboxlist (still not sure if this is
32223 2005-04-28 Jackson Harper <jackson@ximian.com>
32225 * ThemeWin32Classic.cs: Don't fill the middle of progress
32226 bars. This fills areas outside of the clip bounds that don't need
32229 2005-04-28 Jackson Harper <jackson@ximian.com>
32231 * Control.cs: Don't expose functionality to touch the image buffers.
32233 * ListView.cs: We do not need to (and no longer can) manipulate
32234 the image buffers directly. All of this is handled by Control.
32236 2005-04-28 Peter Bartok <pbartok@novell.com>
32238 * RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
32239 RichTextBoxScrollBars.cs, RichTextBoxStreamType.cs,
32240 RichTextBoxFinds.cs, RichTextBoxWordPunctuations.cs: Added
32242 2005-04-28 Jordi Mas i Hernandez <jordi@ximian.com>
32245 - Adjust control's height for non-simple comboboxes (bug fix)
32247 * MenuAPI.cs: remove unused var
32248 * ScrollBar.cs: remove unsed var
32250 * ListBox.cs: unselect items when clearing
32252 2005-04-28 Jordi Mas i Hernandez <jordi@ximian.com>
32254 * ListControl.cs: honors OnPositionChanged and default Selected Item
32255 * ListBox.cs: unselect items when clearing
32257 2005-04-27 Jackson Harper <jackson@ximian.com>
32259 * X11Keyboard.cs: Initialize a default keyboard and give a warning
32260 if a "correct" keyboard is not found. This will make us not crash,
32261 but might give some users bad keyboard layouts...seems to be the
32262 same thing rewind does.
32264 2005-04-27 Jackson Harper <jackson@ximian.com>
32266 * BindingManagerBase.cs: Attach the current/position changed
32267 handlers to their respective events.
32269 2005-04-27 Jackson Harper <jackson@ximian.com>
32271 * Control.cs: Make sure that the first WM_PAINT does a full draw,
32273 * ThemeWin32Classic.cs: Don't fill the background for picture
32274 boxes. This could overright user drawing.
32275 * ComboBox.cs: Just fill the clipping rect not the entire client
32276 rect when drawing the background. This prevents pieces of the
32277 image buffer from getting overwritten and is theoretically faster.
32279 2005-04-26 Jordi Mas i Hernandez <jordi@ximian.com>
32281 * ComboBox.cs: Databinding support fixes, fire missing events
32282 * ListControl.cs: implement missing methods and properties, fixes
32283 * ThemeWin32Classic.cs: Databiding support on Drawing
32284 * CheckedListBox.cs: Databinding support fixes, fire missing events
32285 * ListBox.cs: Databinding support fixes, fire missing events
32287 2005-04-25 Peter Bartok <pbartok@novell.com>
32289 * LinkLabel.cs: Length of LinkArea is not allowed to be negative
32291 2005-04-25 Jackson Harper <jackson@ximian.com>
32293 * TreeView.cs: Use the horizontal scrollbars height not width when
32294 determining how much of the client area is available.
32296 2005-04-25 Jackson Harper <jackson@ximian.com>
32298 * Control.cs: Double buffering is handled differently now. As per
32299 the spec, the extra buffer is created in the WM_PAINT message and
32300 passed down to the control's drawing code.
32308 * PropertyGridView.cs:
32320 * DateTimePicker.cs:
32322 * TreeView.cs: Update to new double buffering system.
32323 * MonthCalendar.cs: Uncomment block, as Capture is now
32324 working. Update to new double buffering
32325 * LinkLabel.cs: Lazy init the link collection. Update to new double buffering
32326 * PaintEventArgs.cs: New internal method allows us to set the
32327 graphics object. This is used for double buffering.
32328 * ThemeWin32Classic.cs: Give the picture box drawing code a clip
32329 rectangle. The internal paint_area var has been removed from
32330 StatusBar. The clipping rect should be used instead.
32331 * Theme.cs: Give the PictureBox drawing method a clipping rect.
32332 * TabPage.cs: The RefreshTabs method was removed, so just call the
32333 tab controls Refresh method now.
32334 * TabControl.cs: Update to new double buffering. Make sure the
32335 handle is created before sizing the tab pages, otherwise we will
32336 get stuck in a loop.
32338 2005-04-24 Borja Sanchez Zamorano <borsanza@gmail.com>
32340 * LinkLabel.cs: Fix typo, bug #74719; patch
32341 from Borja Sanchez Zamorano
32343 2005-04-22 Jackson Harper <jackson@ximian.com>
32345 * TreeNode.cs: Implement Handle stuff.
32346 * TreeView.cs: Utility methods so nodes can get/lookup by handle.
32348 2005-04-22 Jordi Mas i Hernandez <jordi@ximian.com>
32350 * DataGridTextBoxColumn.cs: call base constructors, fixes
32351 * GridColumnStylesCollection.cs: missing events, methods, and functionality
32352 * GridTableStylesCollection.cs: fixes, check duplicate mapping names
32353 * DataGridTableStyle.cs: implements create default column styles
32354 * DataGridBoolColumn.cs: which types can handle
32355 * DataGrid.cs: missing methods, fixes, new functionality
32356 * DataGridColumnStyle.cs: fixes
32358 2005-04-20 Alexander Olk <xenomorph2@onlinehome.de>
32359 * FolderBrowserDialog.cs:
32360 - Use a thread to fill the TreeView
32361 - Adjusted some sizes
32363 2005-04-19 Peter Bartok <pbartok@novell.com>
32365 * LinkLabel.cs: (Re-)create the pieces when setting the Text
32366 property. Fixes #74360.
32368 2005-04-19 Jackson Harper <jackson@ximian.com>
32370 * XEventQueue.cs: Lock when getting the lockqueue size.
32371 * PictureBox.cs: Call base OnPaint
32373 2005-04-19 Peter Bartok <pbartok@novell.com>
32375 * XplatUIX11.cs: Fixed bug introduced with the HWND rewrite, Async
32376 messages were no longer being processed (this broke BeginInvoke)
32379 2005-04-18 Jackson Harper <jackson@ximian.com>
32381 * TreeView.cs: buglet that caused node images to get drawn
32382 regardless of whether or not they were in the clipping rectangle.
32384 2005-04-18 Jackson Harper <jackson@ximian.com>
32386 * CurrencyManager.cs: There are four rules for GetItemProperties:
32387 - If the type is an array use the element type of the array
32388 - If the type is a typed list, use the type
32389 - If the list contains an Item property that is not an object, use
32391 - use the first element of the list if there are any elements in
32394 2005-04-17 Jackson Harper <jackson@ximian.oom>
32396 * TreeView.cs: Calculate plus minus and checkbox bounds when there is a
32397 click. This handles offsets for scrolling properly and reduces
32398 memory. Also fixed GetNode to not offset now that TopNode works
32400 * TreeNode.cs: No longer need to track the plus minus or checkbox bounds.
32402 2005-04-17 Jackson Harper <jackson@ximian.com>
32404 * CursorConverter.cs: Initial implementation.
32406 2005-04-15 Jordi Mas i Hernandez <jordi@ximian.com>
32408 * ListControl.cs: work towards complex data binding support on ListControl
32409 * CurrencyManager.cs: work towards complex data binding support on ListControl
32410 * ListBox.cs: work towards complex data binding support on ListControl
32413 2005-04-15 Jordi Mas i Hernandez <jordi@ximian.com>
32415 * GridTableStylesCollection.cs: fixes name and constructor
32416 * DataGridTableStyle.cs: fixes
32417 * DataGridBoolColumn.cs: fixes names and constructors
32418 * DataGrid.cs: define methods and properties. Some init implementations
32419 * DataGridCell.cs: define methods and properties. Some init implementations
32420 * GridTablesFactory.cs: Define methods and properties
32422 2005-04-15 Geoff Norton <gnorton@customerdna.com>
32424 * XplatUIOSX.cs: Handle proper mouse tracking even if the current
32425 graphics port changes. We still want the coordinates in global screen
32428 2005-04-14 Jackson Harper <jackson@ximian.com>
32430 * TreeView.cs: Handle clicks when plus minus is disabled. Don't
32431 check plus minus or checkbox clicks unless those features are enabled.
32433 2005-04-14 Jackson Harper <jackson@ximian.com>
32435 * TreeView.cs: Add methods for setting the top and bottom visible
32436 nodes. TreeNode::EnsureVisible uses these methods.
32437 * TreeNode.cs: Implement EnsureVisible
32439 2005-04-13 Jordi Mas i Hernandez <jordi@ximian.com>
32441 * Form.cs: Pospone menu assignation if the window has not been created yet
32442 * XplatUIWin32.cs: Fixes Win32SetWindowPos, then does not change window
32445 2005-04-12 Jackson Harper <jackson@ximian.com>
32447 * TreeView.cs: Set the TopNode properly when scrolling
32448 occurs. This has the added benifit of reducing the amount of
32449 walking that needs to be done when drawing. Also removed an old
32451 * OpenTreeNodeEnumerator.cs: Fix moving backwards.
32453 2005-04-11 Jordi Mas i Hernandez <jordi@ximian.com>
32455 * Timer.cs: fixes interval setting when the timer is already enabled
32457 2005-04-10 Alexander Olk <xenomorph2@onlinehome.de>
32459 * FolderBrowserDialog.cs: First approach
32461 2005-04-09 Peter Bartok <pbartok@novell.com>
32463 * FolderBrowserDialog: Added
32465 2005-04-07 Jordi Mas i Hernandez <jordi@ximian.com>
32467 * LinkLabel.cs: move drawing code into the theme
32468 * ThemeWin32Classic.cs: drawing code and painting background bugfix
32469 * Theme.cs: define DrawLinkLabel method
32471 2005-04-05 Jackson Harper <jackson@ximian.com>
32473 * BindingContext.cs: Use weak references so these bad actors don't
32474 stay alive longer then they need to.
32476 2005-04-05 Jackson Harper <jackson@ximian.com>
32478 * ListControl.cs: Basic implementation of complex databinding.
32480 * ListBox.cs: Add calls to ListControl databinding methods.
32482 2005-04-05 Alexander Olk <xenomorph2@onlinehome.de>
32485 - Don't change PopupButtonState to Normal when the
32486 PopupButton gets pressed several times.
32487 - Renamed ButtonPanel to PopupButtonPanel
32489 2005-04-05 Jordi Mas i Hernandez <jordi@ximian.com>
32491 * ColorDialog.cs: Use cached objects instead of creating them
32492 * LinkLabel.cs: Use cached objects instead of creating them
32493 * Splitter.cs: Use cached objects instead of creating them
32494 * FontDialog.cs: Use cached objects instead of creating them
32495 * PropertyGridView.cs: Use cached objects instead of creating them
32496 * MessageBox.cs: Use cached objects instead of creating them
32497 * FileDialog.cs: Use cached objects instead of creating them
32498 * ThemeWin32Classic.cs: Use cached objects instead of creating them
32499 * TreeView.cs: Use cached objects instead of creating them
32501 2005-04-04 Jordi Mas i Hernandez <jordi@ximian.com>
32503 * Control.cs: use Equals to compare the font since no == op
32504 * ScrollBar.cs: use Equals to compare the font since no == op
32506 2005-04-04 Alexander Olk <xenomorph2@onlinehome.de>
32508 * SaveFileDialog.cs: Open stream in OpenFile with FileMode Create
32510 2005-04-01 Jackson Harper <jackson@ximian.com>
32512 * Binding.cs: Implement IsBinding.
32513 * BindingManagerBase.cs:
32514 * PropertyManager.cs:
32515 * CurrencyManager.cs: Add IsSuspended property.
32517 2005-04-01 Jackson Harper <jackson@ximian.com>
32519 * Binding.cs: Had some IsAssignableFrom calls backwards.
32521 2005-04-01 Jackson Harper <jackson@ximian.com>
32523 * Binding.cs: Handle null data members when pulling data.
32524 * PropertyManager.cs: Handle the data member being a property that
32527 2005-04-01 Jordi Mas i Hernandez <jordi@ximian.com>
32529 * DataGridTextBoxColumn.cs: fixes signature
32530 * DataGrid.cs: calls right constructor
32532 2005-04-01 Jordi Mas i Hernandez <jordi@ximian.com>
32534 * DataGridTextBoxColumn.cs: implements DataGridTextBoxColumn class
32535 * GridColumnStylesCollection.cs: implements GridColumnStylesCollection
32536 * GridTableStylesCollection.cs: implements GridTableStylesCollection
32537 * DataGridTableStyle.cs: implements DataGridTableStyle
32538 * DataGridBoolColumn.cs: implements DataGridBoolColumn
32539 * DataGridTextBox.cs: implements DataGridTextBox
32540 * DataGridColumnStyle.cs: implements DataGridColumnStyle
32542 2005-03-31 Alexander Olk <xenomorph2@onlinehome.de>
32544 * FileDialog.cs: Added simple PopupButton class for ButtonPanel
32546 2005-03-29 Peter Bartok <pbartok@novell.com>
32549 - Properly implemented CompanyName property
32550 - Fixed LocalUserAppDataPath and UserAppDataPath, now properly
32551 returns a path that includes CompanyName, ProductName and
32552 Version (fixes bug #70330)
32554 2005-03-29 Stefan Buehler <sbuehler@gmx.ch>
32556 * TabPage.cs: Don't use Owner.DisplayRectangle unless owner is valid,
32559 2005-03-28 Alexander Olk <xenomorph2@onlinehome.de>
32561 * FileDialog.cs, SaveFileDialog.cs OpenFileDialog.cs:
32563 - Added ReadOnly CheckBox
32564 - Further refactoring: moved some code from Open-/SaveFileDialog
32567 2005-03-28 Alexander Olk <xenomorph2@onlinehome.de>
32569 * OpenFileDialog.cs: Fixed CheckFileExists
32571 Moved FileView and DirComboBox outside FileDialog class.
32572 They can now be used outside FileDialog
32574 2005-03-27 Alexander Olk <xenomorph2@onlinehome.de>
32576 * FileDialog.cs: Added a contextmenu to change ShowHiddenFiles
32577 * SaveDialog.cs, OpenFileDialog.cs: Fixes for Reset() method
32579 2005-03-27 Alexander Olk <xenomorph2@onlinehome.de>
32581 * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
32582 - Added missing CreatePrompt property in SaveDialog
32583 - Overall SaveDialog handling should be better now
32584 - Added non standard ShowHiddenFiles property
32585 - Added extension, CreatePrompt and OverwritePrompt support in SaveDialog
32586 - Added InitialDirectory and RestoreDirectory support
32588 2005-03-26 Alexander Olk <xenomorph2@onlinehome.de>
32590 * FileDialog.cs: Made dirComboBox usable
32592 2005-03-24 Alexander Olk <xenomorph2@onlinehome.de>
32594 * FileDialog.cs: Added Filter support (case sensitiv)
32596 2005-03-24 Jackson Harper <jackson@ximian.com>
32598 * TabControl.cs: Need a couple more pixels for the lines.
32600 2005-03-23 Jackson Harper <jackson@ximian.com>
32602 * TabControl.cs: Give the tab page focus when it is selected.
32604 2005-03-23 Jackson Harper <jackson@ximian.com>
32606 * TabControl.cs: Account for the drawing of tabs borders when
32607 invalidating. If the slider was clicked dont do click detection on
32610 2005-03-23 Jackson Harper <jackson@ximian.com>
32612 * TabControl.cs: Fix typo, emilinates an unneeded expose event.
32614 2005-03-22 Jonathan Chambers <jonathan.chambers@ansys.com>
32616 * CategoryGridEntry.cs: Added
32617 * GridItem.cs: Added helper properties
32618 * PropertyGridTextBox.cs: Custom textbox control for PropertyGrid.
32619 * GridEntry.cs: Updated code for collection
32620 * PropertyGrid.cs: Cleaned up some formatting
32621 * PropertyGridView.cs: Added drop down functionality for enums.
32622 * GridItemCollection.cs: Added enumerator logic
32623 * PropertyGridEntry.cs: Added
32625 2005-03-19 Alexander Olk <xenomorph2@onlinehome.de>
32628 - Removed unnecessary commented code
32629 - Fixed handling for entering the filename manually in the combobox
32631 2005-03-19 Alexander Olk <xenomorph2@onlinehome.de>
32633 * FileDialog.cs, OpenFileDialog.cs: OpenFileDialog Multiselect now works
32635 2005-03-18 Peter Bartok <pbartok@novell.com>
32637 * ThemeWin32Classic.cs: Moved listview column headers a bit, to avoid
32638 them being touching the border
32640 2005-03-18 Peter Bartok <pbartok@novell.com>
32642 * TextControl.cs: Quick hack to center text better
32644 2005-03-18 Peter Bartok <pbartok@novell.com>
32647 - Don't throw NotImplemented exceptions, just print a notice once
32648 instead (requested by Miguel). This makes running existing SWF
32651 - Commented out Drag'N'Drop XplatUI call (no driver support yet)
32652 - Added context menu trigger on right click
32653 * Panel.cs: Trigger invalidate on resize
32655 - Removed old double-buffer drawing
32656 - Added ResizeRedraw style to force proper update of statusbar
32658 - Removed debug output
32659 * ThemeWin32Classic.cs:
32660 - Fixed drawing of status bar, now draws Text property if there
32661 are no defined panels
32663 2005-03-18 Jackson Harper <jackson@ximian.com>
32665 * ImageList.cs: When the image stream is set pull all the images
32667 * ImageListStreamer.cs: Implement reading image list streams.
32669 2005-03-18 Peter Bartok <pbartok@novell.com>
32671 * ThemeWin32Classic.cs (DrawPictureBox):
32672 - Fixed calculations for centered drawing
32673 - Fixed drawing for normal mode, not scaling the image on normal
32675 2005-03-18 Peter Bartok <pbartok@novell.com>
32677 * ComboBox.cs: Now also firing the OnKeyPress events for the embedded
32680 - Made Open/Save button the accept button for FileDialog
32681 - Tied the cancel button to the IButtonControl cancel button
32682 - Save/Open now properly builds the pathname
32683 - Now handles user-entered text
32684 - Preventing crash on right-click if no item is selected
32685 - Fixed Text property, now uses contents of textbox
32686 - Fixed SelectedText property, now just returns the text part that
32687 is selected in the text box
32689 2005-03-18 Jackson Harper <jackson@ximian.com>
32691 * ThemeWin32Classic.cs: Use the proper func for drawing the focus
32692 rect, make sure to de-adjust the interior rect after drawing the
32695 2005-03-18 Peter Bartok <pbartok@novell.com>
32697 * MenuAPI.cs: Remove menu *before* executing selected action to
32698 prevent the menu from 'hanging around'
32700 2005-03-17 Geoff Norton <gnorton@customerdna.com>
32702 * XplatUIOSX.cs: Implemented WorkingArea property
32704 2005-03-17 Peter Bartok <pbartok@novell.com>
32706 * XplatUIX11.cs: Fixed menu coord calculations
32707 * MenuAPI.cs: Now using new ScreenToMenu()/MenuToScreen() methods
32708 for calculating offsets
32710 2005-03-17 Peter Bartok <pbartok@novell.com>
32712 * Hwnd.cs: Do not consider menu presence for default client
32713 rectangle location/size
32714 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
32715 XplatUIWin32.cs: Added MenuToScreen() and ScreenToMenu() coord
32716 translation functions
32717 * FileDialog.cs: Fixed (what I presume is a) typo
32719 2005-03-17 Jonathan Gilbert <logic@deltaq.org>
32721 * XplatUIX11.cs: Added call to XInitThreads() to allow multi-threaded
32722 X access (avoids X-Async errors)
32724 2005-03-16 Jackson Harper <jackson@ximian.com>
32726 * TabControl.cs: Raise the SelectedIndexChanged event.
32728 2005-03-16 Alexander Olk <xenomorph2@onlinehome.de>
32730 * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
32731 - Removed vertical ToolBar and replaced it with a custom panel
32732 (desktop and home button already work)
32733 - Added Help button (some controls get resized or relocated then)
32734 - Draw correct text depending on Open or Save.
32735 - Fixed some typos...
32737 2005-03-16 Jordi Mas i Hernandez <jordi@ximian.com>
32740 - Only change Maximum and Minimum when need it (bug fix)
32742 2005-03-15 Peter Bartok <pbartok@novell.com>
32744 * Form.cs: Use Handle for icon, to trigger creation if
32745 the window does not yet exist
32747 - CanSelect: Slight performance improvement
32748 - Focus(): Preventing possible recursion
32749 - Invalidate(): Removed ControlStyle based clear flag setting
32750 - WM_PAINT: fixed logic for calling OnPaintBackground
32751 - WM_ERASEBKGND: Fixed logic, added call to new driver method
32752 EraseWindowBackground if the control doesn't paint background
32754 - Moved EraseWindowBackground() method to internal methods
32755 - Removed unused WM_ERASEBKGND handling in GetMessage; msg never comes;
32756 is sent via SendMessage on BeginPaint call on Win32
32758 - Added EraseWindowBackground() method
32759 - No longer sends WM_ERASEBKGND on .Expose, but on call to
32760 PaintEventStart, which more closely matches Win32 behaviour
32761 - Fixed Invalidate() call, now updates new ErasePending Hwnd property
32762 - Fixed SetFocus() to properly deal with client and whole windows
32763 * Hwnd.cs: Added ErasePending property
32764 * XplatUIOSX.cs: Stubbed EraseWindowBackground() method
32765 * XplatUI.cs, XplatUIDriver.cs: Added EraseWindowBackground() method
32767 2005-03-12 Geoff Norton <gnorton@customerdna.com>
32770 - Fix hard loop when timers exist.
32771 - Fix bugs with middle and right click for 3 button mice.
32773 2005-03-11 Peter Bartok <pbartok@novell.com>
32776 - get_WorkingArea: Need to call X directly, GetWindowPos only
32777 returns cached data now
32778 - Added sanity check to GetWindowPos hwnd usage
32780 2005-03-11 Jackson Harper <jackson@ximian.com>
32782 * BindingManagerBase.cs: This method isn't used anymore as
32783 PullData now updates the data in the control.
32785 2005-03-11 Jordi Mas i Hernandez <jordi@ximian.com>
32787 * Form.cs: fixes menu drawing on X11
32788 * MenuAPI.cs: fixes menu drawing on X11
32790 2005-03-11 Peter Bartok <pbartok@novell.com>
32792 * Control.cs: Changed OnCreateControl behaviour based on a suggestion
32793 from Jonathan Gilbert; should fix bug #73606
32794 * XplatUIX11.cs: Fixed NC Mouse message coordinates, they need to be
32795 in Screen coordinates. Thanks, Jordi.
32796 * Form.cs: Added missing attribute
32798 2005-03-11 Peter Bartok <pbartok@novell.com>
32801 - Rudimentary Mdi support
32802 - Removed outdated FormParent code
32803 - Implemented lots of missing properties and methods, still missing
32804 transparency support
32805 - Added missing attributes
32806 - Implemented support for MaximumBounds
32807 - Added firing of various events
32808 * XplatUI.cs: Added SetIcon() method
32809 * XplatUIDriver.cs: Added SetIcon() abstract
32810 * XplatUIOSX.cs: Stubbed out SetIcon() method
32812 - Implemented SetIcon() support
32813 - Moved SetMenu() and SetBorderStyle() to proper alphabetical pos
32814 - Switched to unix line endings
32816 - Made POINT internal so for can access it as part of MINMAX
32817 - Implemented SetIcon() support
32818 - Implemented support for CLIENTCREATESTRUCT (but might have to drop
32819 native Mdi support again, might have to go managed)
32820 * Control.cs: Now fires the StyleChanged event
32821 * MdiClient.cs: Added; still mostly empty
32823 2005-03-10 Peter Bartok <pbartok@novell.com>
32825 * SaveFileDialog.cs: Added emtpy file
32827 2005-03-08 Peter Bartok <pbartok@novell.com>
32829 * Control.cs: Fixed bug #73190; now invokes CreateControl (which
32830 in turn triggers OnCreateContro) when creating a handle for the
32832 * TextControl.cs: Fixed endless loop in certain cases when
32833 replacing the current selection
32835 2005-03-08 Jordi Mas i Hernandez <jordi@ximian.com>
32838 - Honors NewValue changes in Scroll events allowing apps to change it
32839 - Adds First and Last Scroll events
32840 - Fixes Thumb events
32842 2005-03-07 Peter Bartok <pbartok@novell.com>
32844 * Hwnd.cs: Added DefaultClientRectangle property
32845 * XplatUI.cs: Now using the X11 driver Where() method, which provides
32846 more detailed debug information
32848 - Fixed size-change feedback loop, where we would pull an old size
32849 off the queue and mistakenly change our window's size to an
32851 - Now compressing ConfigureNotify events, to reduce looping and
32853 * TextBoxBase.cs: Preventing crash when no text is set and ToString()
32856 2005-03-07 Jackson Harper <jackson@ximian.com>
32858 * Binding.cs: Push data pushes from data -> property. Check if the
32859 property is readonly when attempting to set it.
32861 2005-03-07 Jackson Harper <jackson@ximian.com>
32863 * Binding.cs: Format and parse data correctly. Use ASsignableFrom
32864 instead of IsSubclassOf. Pulling data now sets the value on the
32866 * PropertyManager.cs:
32867 * CurrencyManager.cs: Just need to pull data when updating now,
32868 because PullData will set the value on the control.
32870 2005-03-04 Jackson Harper <jackson@ximian.com>
32872 * Binding.cs: Implement data type parsing and converting on pulled
32873 data. TODO: Are there more ways the data can be converted?
32875 2005-03-04 Jackson Harper <jackson@ximian.com>
32877 * Binding.cs: Support <Property>IsNull checks. Also bind to the
32878 controls Validating method so we can repull the data when the
32879 control loses focus.
32881 2005-03-03 Jordi Mas i Hernandez <jordi@ximian.com>
32884 - Fixes null string format
32887 - Adds enum type checks
32888 - Fixes redrawing and recalc need after changing some properties
32889 - Fixes on focus_item set after the event
32890 - Fixes adding columns after the control has been created
32892 * ThemeWin32Classic.cs:
32893 - Fixes CheckBox focus rectangle
32894 - Fixes ColumnHeader drawing
32897 2005-03-03 Jackson Harper <jackson@ximian.com>
32899 * Binding.cs: Bind to <Property>Changed events so we can detect
32900 when properties are changed and update the data.
32902 2005-03-02 Jordi Mas i Hernandez <jordi@ximian.com>
32905 - Changes 32-bit pixel format to Format32bppArgb to allow transparency
32906 - Fixes ImageList constructor with ImageList container
32907 - Fixes image scaling (wrong parameters at DrawImage)
32909 2005-02-02 Jackson Harper <jackson@ximian.com>
32911 * Binding.cs: Make property searches case-insensitive. Eliminate
32912 some duplicated code.
32914 2005-03-01 Jordi Mas i Hernandez <jordi@ximian.com>
32917 - Handle focus event
32918 - Fix scrollbar events
32919 - Discard highlighted item if remove it
32920 - Fixes SelectedItem with strings
32922 2005-03-01 Peter Bartok <pbartok@novell.com>
32925 - Fixed Visible property, now follows (once again) parent chain
32926 to return false if any control in the chain is visible=false
32927 - Fixed OnParentVisibleChanged, now just calls OnVisibleChanged event
32928 - Fixed several places where is_visible instead of Visible was used
32929 - Implemented FIXME related to focus selection when setting focused
32930 control to be invisible
32932 * XplatUIWin32.cs: Now using proper method to find out if window is
32933 visible. Thanks to Jordi for pointing it out
32935 2005-02-28 Jordi Mas i Hernandez <jordi@ximian.com>
32937 * ComboBox.cs: show/hide scrollbar instead of creating it
32939 2005-02-27 Jackson Harper <jackson@ximian.com>
32941 * CurrencyManager.cs: Add PositionChanged stuff.
32943 2005-02-27 Peter Bartok <pbartok@novell.com>
32945 * XplatUI.cs, XplatUIDriver.cs: Added new GetMenuOrigin() method
32946 * XplatUIOSX.cs: Added GetMenuOrigin() stub
32947 * XplatUIWin32.cs: Implemented GetMenuOrigin()
32949 - Implemented GetMenuDC()
32950 - Implemented GetMenuOrigin()
32951 - Implemented ReleaseMenuDC()
32952 - Implemented generation of WM_NCPAINT message
32953 - Implemented generation and handling of WM_NCCALCSIZE message
32954 * Form.cs: Added debug helper message for Jordi's menu work
32956 - Modified ClientRect property; added setter, fixed getter to handle
32957 setting of ClientRect
32958 - Added MenuOrigin property
32960 2005-02-26 Peter Bartok <pbartok@novell.com>
32963 - Destroys the caret if a window that's being destroyed contains it
32964 - Ignores expose events coming from the X11 queue for windows that
32965 already are destroyed
32966 - Now uses the proper variable for handling DestroyNotify, before we
32967 marked the wrong window as destroyed
32968 - Improved/added some debug output
32970 2005-02-26 Peter Bartok <pbartok@novell.com>
32972 * X11Keyboard.cs: Fixes to work on 64bit systems
32974 2005-02-26 Peter Bartok <pbartok@novell.com>
32977 - Now calling OnHandleDestroyed from DestroyHandle()
32978 instead of Dispose()
32979 - Removed bogus call to controls.Remove() from DestroyHandle()
32981 2005-02-26 Peter Bartok <pbartok@novell.com>
32983 * Control.cs: Properly destroy child windows when our handle is
32986 2005-02-25 Peter Bartok <pbartok@novell.com>
32989 - Added 'DriverDebug' define to allow tracing XplatUI API calls
32990 - Alphabetized Static Methods and Subclasses
32993 - Added XException class to allow custom handling of X11 exceptions
32994 - Created custom X11 error handler, tied into XException class
32995 - Added support for MONO_XEXCEPTIONS env var to allow the user
32996 to either throw an exception on X errors or continue running
32997 after displaying the error
32998 - Added handling of DestroyNotify message
32999 - Added handler for CreateNotify message (still disabled)
33000 - Improved (tried to at least) Where method to provide file and lineno
33002 - Added XErrorHandler delegate
33003 - Added XRequest enumeration (to suppor translation of errors)
33005 2005-02-25 Jackson Harper <jackson@ximian.com>
33007 * PropertyManager.cs: Implement editing features
33008 * CurrencyManager.cs:
33009 * Binding.cs: First attempt at UpdateIsBinding
33010 * BindingManagerBase.cs: Call UpdateIsBinding before
33011 pushing/pulling data.
33013 2005-02-25 Jordi Mas i Hernandez <jordi@ximian.com>
33015 * MenuAPI.cs: Respect disabled items
33016 * ThemeWin32Classic.cs
33017 - Caches ImageAttributes creation for DrawImageDisabled
33018 - Fixes vertical menu line drawing
33019 - Draws disabled arrows in disable menu items
33021 2005-02-24 Peter Bartok <pbartok@novell.com>
33024 - Added UserData property to allow associating arbitrary objects
33026 - Fixed leak; now removing Hwnd references from static windows array
33028 - Fixed Graphics leak in PaintEventEnd
33029 - Removed usage of HandleData, switched over to Hwnd class
33030 * HandleData.cs: Removed, obsoleted by Hwnd.cs
33032 2005-02-24 Jordi Mas i Hernandez <jordi@ximian.com>
33034 * ThemeWin32Classic.cs: Adds Cliping to TrackBar drawing
33035 * ScrollBar.cs: Fixes bug
33036 * TrackBar.cs: removes death code, clipping, mimize refreshes,
33037 keyboard navigation enhancements
33039 2005-02-24 Jordi Mas i Hernandez <jordi@ximian.com>
33041 * Control.cs: Call DefWndProc at WM_PAINT only if UserPaint not defined
33042 * GroupBox.cs: Add control styles
33043 * Label.cs: Add control styles
33044 * UpDownBase.cs: Add control styles
33045 * ListBox.cs: Add control styles
33046 * XplatUIWin32.cs: Fixes wrong parameter order
33049 2005-02-23 Chris Bacon <chris.bacon@docobo.co.uk>
33051 * ListView.cs: Assign owner for ColumnHeader. Patch by Chris Bacon
33053 2005-02-23 Jackson Harper <jackson@ximian.com>
33055 * PropertyManager.cs: Implement property binding. This doesn't
33056 seem to work yet though as (I think) there are some bugs in
33057 System.ComponentModel.PropertyDescriptor.
33058 * BindingContext.cs: Use new PropertyManager constructor.
33060 2005-02-23 Jordi Mas i Hernandez <jordi@ximian.com>
33062 * ProgressBar.cs: use clip region in ProgressBar
33063 * ThemeWin32Classic.cs: use clip region in ProgressBar
33065 2004-02-22 Jackson Harper <jackson@ximian.com>
33067 * BindingsCollection.cs: Remove some debug code.
33069 2005-02-22 Jackson Harper <jackson@ximian.com>
33071 * BindingContext.cs:
33072 * ControlBindingsCollection.cs:
33073 * CurrencyManager.cs:
33075 * BindingManagerBase.cs: Initial implementation
33076 * BindingsCollection.cs: Add an internal contains method that the
33077 BindingManagerBase uses to ensure bindings aren't added twice to
33079 * PropertyManager.cs: Stubbed out.
33081 * ContainerControl.cs: Hook up databinding
33083 2005-02-22 Geoff Norton <gnorton@customerdna.com>
33086 OSXStructs.cs: Refactored to handle the new Hwnd NC logic area.
33087 Fixed Invalidate/Update chain.
33088 Fixed tons of other minor bugs (this is almost a complete rewrite).
33090 2005-02-22 Jordi Mas i Hernandez <jordi@ximian.com>
33092 * ComboBox.cs: do subcontrol creation when the control is created
33094 2005-02-19 Jordi Mas i Hernandez <jordi@ximian.com>
33096 * Label.cs: fixes image drawing (image and imagelist)
33097 * ThemeWin32Classic.cs: cache brushes
33099 2005-02-19 Jordi Mas i Hernandez <jordi@ximian.com>
33101 * Form.cs: Move menu drawing code to Theme class
33102 * ComboBox.cs: Move ComboBox drawing code to Theme class
33103 * MenuItem.cs: Move menu drawing code to Theme class
33104 * MenuAPI.cs: Move menu drawing code to Theme class
33105 * ThemeWin32Classic.cs: New methods
33106 * CheckedListBox.cs: Move CheckedListbox drawing code to Theme class
33107 * ListBox.cs: Move Listbox drawing code to Theme class
33108 * Theme.cs: New methods
33110 2005-02-20 Peter Bartok <pbartok@novell.com>
33113 - Fixed ProcessKeyEventArgs to also handle WM_SYSKEY messages (and
33114 only process mnemonics on those)
33115 - Fixed event sequence for key handling; first calling
33116 ProcessKeyEventArgs now
33118 - Removed WM_KEYDOWN hook, instead we now use ProcessDialogKey()
33119 for processing non-character keys
33120 - Fixed WM_CHAR to generate proper event sequence before processing
33121 * XplatUIWin32.cs: Added ALT key state to ModifierKeys property
33124 2005-02-19 Peter Bartok <pbartok@novell.com>
33126 * UserControl.cs: Added TextChanged event; added attributes
33127 * SizeGrip.cs: Implemented resizing and optional display of grip
33128 * Form.cs: Fixed attribute
33129 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs:
33130 Changed meaning of ScrollWindow bool argument; instead of the
33131 clear attribute (which will be true usually anyway), it gives the
33132 option of moving child controls as well.
33134 - Changed to match new ScrollWindow argument
33135 - Fixed GetWindowPos/SetWindowPos behaviour for toplevel controls,
33136 now handles the implicit parent window a WM puts around us
33137 * ScrollableControl.cs: Implemented (not the prettiest, but it seems
33139 * TextBoxBase.cs: Adjusted to new ScrollWindow arguments
33140 * TreeView.cs: Adjusted to new ScrollWindow arguments
33142 2005-02-19 Jordi Mas i Hernandez <jordi@ximian.com>
33144 * Form.cs: Menu integration with non-client area
33145 * MenuItem.cs: Menu integration with non-client area
33146 * MenuAPI.cs: Menu integration with non-client area
33148 2005-02-18 Peter Bartok <pbartok@novell.com>
33150 * MethodInvoker.cs: Added
33151 * MdiLayout.cs: Added
33152 * SendKeys.cs: Started implementation
33153 * ErrorIconAlignment.cs: Added
33155 2005-02-18 Peter Bartok <pbartok@novell.com>
33157 * XplatUIWin32.cs: Implemented SetMenu(); fixed GetMenuDC()
33158 * Form.cs: Added handling for Menu-related Non-client messages
33160 2005-02-17 Peter Bartok <pbartok@novell.com>
33162 * UpDownBase.cs: Fixed typo, compilation errors
33163 * DomainUpDown.cs: Fixed attribute value
33165 2005-02-16 Miguel de Icaza <miguel@novell.com>
33167 * UpDownBase.cs: Attach entry events.
33169 Add ForeColor property, Focused, InterceptArrowKeys (interception
33170 does not work yet).
33172 2005-02-17 Jordi Mas i Hernandez <jordi@ximian.com>
33175 - Redraw non client are on Setmenu
33176 - Calc proper menu starting point
33178 2005-02-17 Peter Bartok <pbartok@novell.com>
33180 * Application.cs: Fixed message_filter check
33182 2005-02-17 Peter Bartok <pbartok@novell.com>
33184 * Application.cs: Now calls registered message filters
33185 * DockStyle.cs: Fixed attribute
33186 * Form.cs: Fixed attribute
33187 * Menu.cs: Fixed attribute
33188 * ToolTip.cs: Fixed attribute
33189 * TreeNode.cs: Added missing attributes and arranged in regions
33190 * PropertyGrid.cs: Fixed signatures
33191 * TreeNodeCollection.cs: Added attributes
33192 * Splitter.cs: Added missing attributes; arranged into regions
33193 * TabPage.cs: Added missing attributes; arranged into regions
33194 * TextBoxBase.cs: Added missing attributes
33195 * TextBox.cs: Added missing attributes
33196 * ArrangeDirection.cs: Added missing attributes
33197 * TreeNodeConverter.cs: Added stub (needed for TreeNode)
33198 * ToolBarButton.cs: Fixed attributes
33199 * AnchorStyles.cs: Fixed attribute
33200 * TrackBar.cs: Fixed attributes
33201 * TabControl.cs: Added missing attributes and arranged into regions
33202 * ToolBar.cs: Fixed attribute
33203 * StatusBar.cs: Fixed signature, organized into regions and added
33205 * StatusBarPanel.cs: Fixed attributes
33206 * ContentsResizedEventArgs.cs: Implemented
33207 * ContentsResizedEventHandler.cs: Implemented
33208 * DateBoldEventArgs.cs: Implemented
33209 * DateBoldEventHandler.cs: Implemented
33210 * UpDownEventArgs.cs: Implemented
33211 * UpDownEventHandler.cs: Implemented
33213 2005-02-16 Jordi Mas i Hernandez <jordi@ximian.com>
33215 * Form.cs: first Menu NC refactoring
33216 * MenuAPI.cs: first Menu NC refactoring
33218 2005-02-16 Peter Bartok <pbartok@novell.com>
33220 * ImeMode.cs: Added missing attributes
33221 * Menu.cs: Fixed attribute
33222 * GroupBox.cs: Fixed attribute
33223 * Label.cs: Fixed attribute
33224 * ColorDialog.cs (RunDialog): Removed TODO attribute
33225 * ComboBox.cs: Fixed attributes
33226 * ListControl.cs: Added missing attributes
33227 * PropertyGrid.cs: Fixed attributes
33228 * Control.cs: Fixed attributes
33229 * ListViewItem.cs: Added TypeConverter attribute
33230 * NotifyIcon.cs: Fixed attributes
33231 * ListView.cs: Fixed attributes
33232 * ButtonBase.cs: Fixed attribute
33233 * ImageList.cs: Added missing attributes
33234 * ContainerControl.cs: Fixed signature
33235 * CheckedListBox.cs: Fixed attribute; added missing attributes
33236 * Panel.cs: Fixed attributes
33237 * PropertyTabChangedEventArgs.cs: Added missing attribute
33238 * PropertyValueChangedEventArgs.cs: Added missing attribute
33239 * Binding.cs: Fixed attribute
33240 * ListViewItemConverter: Implemented ListViewSubItemConverter class
33241 * ListBox.cs: Fixed attribute; added missing attributes;
33242 * ScrollableControl.cs: Added missing attributes
33243 * PictureBox.cs: Added missing attributes; implemented missing property
33244 * DateTimePicker.cs: Added missing attributes
33245 * Theme.cs (ToolWindowCaptionHeight): Fixed type
33246 * MonthCalendar.cs: Fixed attributes
33247 * StatusBarPanel.cs: Added missing attributes
33248 * SystemInformation.cs (ToolWindowCaptionHeight): Fixed type
33250 2005-02-16 Peter Bartok <pbartok@novell.com>
33252 * TextBoxBase.cs: The previous method to enforce height yet remember
33253 the requested high was less than ideal, this is an attempt to do
33255 * Control.cs: Added comment about possible problem
33256 * Copyright: Updated format
33257 * GridItemType.cs: Fixed swapped values
33259 2005-02-15 Jackson Harper <jackson@ximian.com>
33261 * BaseCollection.cs: Use property so we never access an
33262 uninitialized list. Also initialize the list in the property.
33264 2005-02-15 Peter Bartok <pbartok@novell.com>
33266 * GroupBox.cs (ProcessMnemonic): Implemented
33267 * Label.cs (ProcessMnemonic): Implemented
33268 * ThemeWin32Classic.cs (DrawGroupBox): Added stringformat to show
33271 2005-02-15 Peter Bartok <pbartok@novell.com>
33273 * RadioButton.cs (ProcessMnemonic): Implemented
33274 * CheckBox.cs (ProcessMnemonic): Implemented
33276 - Added handling of WM_SYSxxx keyboard messages to support mnemonic
33278 - Added internal method to allow calling ProcessMnemonic from other
33280 * ContainerControl.cs:
33281 - Started support for handling validation chain handling
33282 - Implemented ProcessMnemonic support
33283 - Added Select() call to Active, to make sure the active control
33285 * Form.cs: Setting toplevel flag for Forms (this was lost in the
33286 FormParent rewrite)
33287 * ThemeWin32Classic.cs:
33288 - DrawCheckBox(): Fixed stringformat to show hotkeys
33289 - DrawRadioButton(): Fixed stringformat to show hotkeys
33290 * CommonDialog.cs: Removed WndProc override, not needed
33292 2005-02-14 Peter Bartok <pbartok@novell.com>
33294 * XplatUIX11.cs: Fixed NotImplemented exceptions for properties,
33295 missed those in the rewrite
33297 2005-02-14 Miguel de Icaza <miguel@novell.com>
33299 * NumericUpDown.cs (Increment, ToString): Add.
33300 (DecimalPlaces): implement.
33304 * UpDownBase.cs: Add the designer attributes.
33306 2005-02-13 Peter Bartok <pbartok@novell.com>
33308 * Panel.cs: Removed border_style, now in Control
33309 * XplatUIDriver.cs: Added SetBorderStyle, SetMenu, GetMenuDC and
33310 ReleaseMenuDC Methods; renmaed ReleaseWindow to UngrabWindow
33312 2005-02-13 Peter Bartok <pbartok@novell.com>
33314 * MouseButtons.cs: Added missing attributes
33315 * XplatUIStructs.cs: Added enumeration for title styles
33316 * LeftRightAlignment.cs: Added missing attributes
33317 * Hwnd.cs: Switched to use client_window as handle (slower, but makes
33318 it compatible with Graphics.FromHwnd()
33319 * SelectedGridItemChangedEventArgs.cs: Fixed property type
33320 * Keys.cs: Added missing attributes
33321 * SelectionRange.cs: Added missing attributes
33322 * SelectionRangeConverter.cs: Added
33324 - Introduced SetBorderStyle, SetMenu, GetMenuDC and
33325 ReleaseMenuDC methods
33326 - Renamed ReleaseWindow to UngrabWindow
33327 - Added proper startup notice to allow version identification
33329 - Added missing attributes
33330 - Removed FormParent concept
33331 * Label.cs: Removed border_style field, now in Control
33332 * RadioButton.cs: Now properly selects RadioButton when focus is
33334 * ThemeGtk.cs: Fixed SetDisplay call to match new X11 behaviour
33336 - Added missing attributes
33337 - Added borderstyle handling
33338 - Removed FormParent concept support
33339 - Fixed calls to XplatUI to match changed APIs
33340 - Fixed bug that would case us to use disposed Graphics objects
33341 - Removed unneeded internal methods
33342 - PerformLayout(): Fixed to handle DockStyle.Fill properly
33343 - SelectNextControl(): Fixed to properly check common parents
33344 * TextBoxBase.cs: Removed border_style field (now in Control)
33346 - Patch by Robert Thompson (rmt@corporatism.org): Added icon support,
33347 fixed calculations for form size
33348 - Added support for localized strings and icons
33349 - Improved form size calculations, added border
33350 * ListView.cs: Removed border_style field (now in Control)
33351 * X11Structs.cs: Moved several structs from X11 driver here
33352 * X11Keyboard.cs: Changed debug message
33353 * Application.cs: Removed FormParent concept support
33355 - Resetting end_modal flag
33356 - Removed FormParent concept support
33357 * NativeWindow.cs: Removed FormParent concept support
33358 * XplatUIX11.cs: Rewritten, now using the new Hwnd class, implementing
33359 Client area and Non-Client whole window to allow support for WM_NC
33361 * XplatUIOSX.cs: Updated to match latest driver spec; added exception
33362 prevent using it until it supports Hwnd as per Geoff Norton's request
33363 * ToolBar.cs: Fixed drawing, was not doing proper drawing
33364 * PictureBox.cs: Removed border_style field, now in Control
33365 * XplatUIWin32.cs: Added new driver methods
33367 2005-02-12 Peter Bartok <pbartok@novell.com>
33369 * OpacityConverter.cs: Implemented
33370 * Hwnd.cs: Internal class to support drivers that need to emulate
33371 client area/non-client area window behaviour
33373 2005-02-11 Peter Bartok <pbartok@novell.com>
33375 * KeysConverter.cs: Implemented
33377 2005-02-11 Jordi Mas i Hernandez <jordi@ximian.com>
33379 * Menu.cs: fixes methods GetContextMenu, GetMainMenu, ToString
33380 * LinkLabel: Added missing attributes
33381 * MainMenu.cs: fixes ToString
33382 * MenuItem.cs: fixes methods GetContextMenu, GetMainMenu
33383 * ListBox.cs: fixes event position
33384 * TrackBar.cs: adds missing attributes and events
33386 2005-02-10 Jordi Mas i Hernandez <jordi@ximian.com>
33388 * MenuItem.cs: Use SystemInformation and bug fixes
33389 * MenuAPI.cs: Use SystemInformation and bug fixes
33391 2005-02-09 Jackson Harper <jackson@ximian.com>
33393 * X11Keyboard.cs: We ignore some keys, but still need to set/reset
33394 their keystate otherwise things like VK_MENU get stuck "on".
33396 2005-02-09 Kazuki Oikawa <kazuki@panicode.com>
33398 * ListBox.cs: Fixes AddRange bug
33400 2005-02-09 Jordi Mas i Hernandez <jordi@ximian.com>
33403 - Add missing attributes
33404 - Add missing method
33406 * CheckedListBox.cs: Added missing attributes
33407 - Add missing attributes
33408 - Remove extra method
33410 * ComboBox.cs: Added missing attributes
33411 * VScrollBar.cs: Added missing attributes
33412 * ScrollBar.cs: Added missing attributes
33413 * ListBox.cs: Fixes signature, add missing consts
33414 * LinkArea.cs: Added missing attributes
33417 2005-02-08 Peter Bartok <pbartok@novell.com>
33419 * Menu.cs: Added missing attributes
33420 * MainMenu.cs: Added missing attributes
33421 * GroupBox.cs: Added missing attributes
33422 * Label.cs: Added missing attributes
33423 * CheckBox.cs: Implemented CheckBoxAccessibleObject class
33425 - Added Instance and Options properties
33426 - Added missing attributes
33427 * Cursor.cs: Made Serializable
33428 * NotifyIcon: Added missing attributes
33429 * MenuItem.cs: Added missing attributes
33430 * TextBoxBase.cs: Implemented AppendText() and Select() methods
33431 * Panel.cs: Added Missing attributes
33432 * MonthCalendar.cs: Fixed CreateParams
33434 2005-02-08 Jordi Mas i Hernandez <jordi@ximian.com>
33438 - Fixes issues with links
33439 - Adds the class attributes
33441 2005-02-08 Jordi Mas i Hernandez <jordi@ximian.com>
33444 - Fixes button when no items available in dropdown
33445 - Fixes repainting problems
33446 - Adds the class attributes
33448 2005-02-07 Geoff Norton <gnorton@customerdna.com>
33450 * XplatUIOSX.cs: Detect the menu bar and title bar height from
33451 the current theme. Cache these on startup.
33453 2005-02-07 Jackson Harper <jackson@ximian.com>
33455 * ScrollBar.cs: Give the correct clipping rect to the theme. Dirty
33456 the scrollbar buttons when they are depressed.
33458 2005-02-07 Geoff Norton <gnorton@customerdna.com>
33460 * XplatUIOSX.cs: Really fix working at resolutions not 1024x768.
33461 Get the display size from the main displayid. We currently dont
33462 support multiple display configurations.
33464 2005-02-07 Geoff Norton <gnorton@customerdna.com>
33466 * XplatUIOSX.cs: Ensure the window doesn't get stuck behind the statusbar.
33468 2005-02-07 Miguel de Icaza <miguel@novell.com>
33470 * UpDownBase.cs: Add ReadOnly and UpDownAlign properties.
33472 2005-02-05 Jonathan Chambers <jonathan.chambers@ansys.com>
33474 * PropertyGrid.cs: Updated. Patch by Jonathan Chambers
33476 2005-02-04 Jackson Harper <jackson@ximian.com>
33478 * ThemeWin32Classic.cs: Respect the clipping rect when
33479 drawing. Only fill the intersection of clips and rects so there
33480 isn't a lot of large fills.
33481 * ScrollBar.cs: Pass the correct clipping rect to the theme
33482 engine. Remove some debug code.
33484 2005-02-05 John BouAntoun <jba-mono@optusnet.com.au>
33486 * DateTimePicker.cs:
33487 - Fixed crash on DateTime.Parse, use Constructor instead
33489 2005-02-04 Jordi Mas i Hernandez <jordi@ximian.com>
33493 - Owner draw support (MeasureItem and DrawItem)
33495 2005-02-04 Jordi Mas i Hernandez <jordi@ximian.com>
33498 - Implements FindMergePosition and MergeMenu functions (very poor documented)
33499 - Fixes MenuItems.Add range
33501 - MergeMenu and Clone and CloneMenu functions
33503 2005-02-03 Jackson Harper <jackson@ximian.com>
33505 * ScrollBar.cs: Make abstract
33506 * ScrollableControl.cs: Create H/V scrollbars now that scrollbar
33509 2005-02-03 Jackson Harper <jackson@ximian.com>
33511 * ScrollBar.cs: First part of my scrollbar fixups. This removes
33512 all the unneeded refreshes and uses invalidates with properly
33515 2005-02-03 Peter Bartok <pbartok@novell.com>
33517 * ComponentModel.cs: Added
33518 * IDataGridEditingService.cs: Added
33519 * Timer.cs: Added missing attributes
33520 * ToolTip.cs: Added missing attributes
33522 2005-02-03 Jonathan Chambers <jonathan.chambers@ansys.com>
33524 * PropertyGridView.cs: Added. Patch by Jonathan Chambers
33526 2005-02-03 Peter Bartok <pbartok@novell.com>
33528 * ListBox.cs: Added missing attributes
33530 2005-02-03 Jordi Mas i Hernandez <jordi@ximian.com>
33533 - Fixes font height after font change
33534 - Avoid generating unnecesary OnSelectedIndexChanged on clearing
33536 2005-02-02 Peter Bartok <pbartok@novell.com>
33538 * HandleData.cs: Introduced static methods to allow class
33539 to be more self-contained and track it's own HandleData objects
33540 * XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs: Fixed usage of
33541 HandleData to use new static methods
33543 2005-02-02 Jordi Mas i Hernandez <jordi@ximian.com>
33546 - Fixes default size and PreferredHeight
33548 - ObjectCollection.Insert implementation
33554 - ObjectCollection.Insert implementation
33555 - No selection after clean
33558 2005-01-31 John BouAntoun <jba-mono@optusnet.com.au>
33560 * ThemeWin32Classic.cs: quick fix to comboboxbutton pushed painting
33562 2005-02-01 Jordi Mas i Hernandez <jordi@ximian.com>
33565 - Caches ItemHeight calculation for OwnerDrawVariable
33566 - Handles dropdown properly
33567 - Fixes several minor bugs
33569 2005-01-31 Jordi Mas i Hernandez <jordi@ximian.com>
33572 - Fixes 71946 and 71950
33573 - Fixes changing Multicolumn on the fly
33574 - Fixes keyboard navigation on Multicolumn listboxes
33576 2005-01-31 Geoff Norton <gnorton@customerdna.com>
33578 * XplatUIOSX.cs: Call ExitToShell in our teardown to avoid a
33579 crash reporter log.
33581 2005-01-31 Geoff Norton <gnorton@customerdna.com>
33583 * XplatUIOSX.cs: Allow applications to actually exit.
33585 2005-01-31 Geoff Norton <gnorton@customerdna.com>
33587 * XplatUIOSX.cs: SetWindowStyle implemented. Reposition views in
33588 their parent at creation time rather than lazily later. Fixes a major
33589 regression we were experiencing.
33591 2005-01-31 John BouAntoun <jba-mono@optusnet.com.au>
33593 * ThemeWin32Classic.cs: more date time picker painting fixes
33594 * DateTimePicker.cs: more monthcalendar drop down fixes
33595 * MonthCalendar.cs: more CreateParams fixes to ensure correct drop down
33597 2005-01-31 Jordi Mas i Hernandez <jordi@ximian.com>
33600 - When moving the thumb going outside the control should stop the moving
33601 - Adds the firing of missing events
33602 - Fixes no button show if Size is not specified
33603 - End / Home keys for keyboard navigation
33605 2005-01-30 Peter Bartok <pbartok@novell.com>
33607 * NotifyIcon.cs (CalculateIconRect): Removed debug output and added
33608 sanity check to prevent theoretical loop
33609 * XplatUIWin32.cs (SetVisible): Removed debug output
33610 * XplatUIX11.cs (SystrayChange): Added sanity check
33611 * ScrollableControl.cs (OnVisibleChanged): Now calls base method
33612 * Control.cs (OnVisibleChanged): Added workaround for ParentForm
33613 behaviour, valid until the X11 client window rewrite is done
33614 * TextBox.cs (ctor): Setting proper default foreground and background
33617 2005-01-30 John BouAntoun <jba-mono@optusnet.com.au>
33619 * Theme: Added DrawDateTimePicker to interface
33620 * ThemeWin32Classic.cs: Added DrawDateTimePicker (incomplete)
33621 * DateTimePicker.cs: Created (still needs keys and painting code)
33622 * DateTimePickerFormat.cs: added
33623 * MonthCalendar.cs: fixed CreateParams for popup window mode
33625 2005-01-29 Peter Bartok <pbartok@novell.com>
33627 * ControlPaint.cs: Fixed luminace value returned on achromatic colors,
33628 this should also the calculations for ligher/darker
33629 * Theme.cs: Fixed defaults for ScrollBar widths/heights
33631 2005-01-29 Peter Bartok <pbartok@novell.com>
33633 * ArrangeDirection.cs: Added
33634 * ArrangeStartingPositon.cs: Added
33635 * SystemInformation.cs: Implemented
33636 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
33637 XplatUIX11.cs, Theme.cs: Added/implemented new static properties
33638 used by SystemInformation class
33639 * X11Strucs.cs: Added XSizeHints structure
33641 - Fixed CreateParams to make sure the menu window is always visible
33642 - TrackPopupMenu: Added check to make sure we don't draw the
33645 2005-01-29 Peter Bartok <pbartok@novell.com>
33647 * HandleData.cs: Added method for altering invalid area
33648 * TextBoxBase.cs: Implemented TextLength
33650 2005-01-28 Peter Bartok <pbartok@novell.com>
33652 * XplatUIX11.cs: Improvement over last patch, not sending
33653 the WM_PAINT directly anymore, instead we scroll any pending
33654 exposed areas and let the system pick out the WM_PAINT later
33656 2005-01-28 Peter Bartok <pbartok@novell.com>
33658 * SWF.csproj: Deleted, no longer used. Instead,
33659 Managed.Windows.Forms/SWF.csproj should be used
33660 * XplatUIX11.cs: Instead of posting the WM_PAINT, we send it
33661 directly, to avoid a potential race condition with the next
33664 2005-01-28 Peter Bartok <pbartok@novell.com>
33666 * XplatUI.cs: Made class internal
33668 2005-01-28 Jordi Mas i Hernandez <jordi@ximian.com>
33670 * CheckedListBox.cs:
33673 - Missing methods and events
33675 2005-01-27 Peter Bartok <pbartok@novell.com>
33677 * Application.cs (Run): Don't use form if we don't have one
33679 2005-01-27 Peter Bartok <pbartok@novell.com>
33681 * TextBoxBase.cs (get_Lines): Fixed index off by one error
33683 2005-01-27 Peter Bartok <pbartok@novell.com>
33685 * GridEntry.cs: Added; Patch by Jonathan S. Chambers
33686 * GridItem.cs: Added; Patch by Jonathan S. Chambers
33687 * GridItemCollection.cs: Added; Patch by Jonathan S. Chambers
33688 * GridItemType.cs: Added; Patch by Jonathan S. Chambers
33689 * PropertyGrid.cs: Added; Patch by Jonathan S. Chambers
33690 * PropertySort.cs: Added; Patch by Jonathan S. Chambers
33691 * PropertyTabChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
33692 * PropertyTabChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
33693 * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
33694 * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
33695 * SelectedGridItemChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
33696 * SelectedGridItemChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
33698 2005-01-27 Jordi Mas i Hernandez <jordi@ximian.com>
33701 - Draw focus on Simple Combobox
33702 - Fixes drawing issues
33705 2005-01-27 Peter Bartok <pbartok@novell.com>
33708 - Place window in default location, instead of hardcoded 0/0
33709 - Send initial LocationChanged event
33711 - UpdateBounds after creation to find out where the WM placed us
33712 - Make sure that if the ParentForm changes location the Form
33714 * XplatUIX11.cs: XGetGeometry will not return the coords relative
33715 to the root, but to whatever the WM placed around us.
33716 Translate to root coordinates before returning toplevel
33718 * XplatUIWin32.cs: Removed debug output
33719 * XplatUIOSX.cs, XplatUI.cs, XplatUIDriver.cs: Added toplevel
33720 flag to GetWindowPos, to allow translation of coordinates on X11
33722 2005-01-27 Jordi Mas i Hernandez <jordi@ximian.com>
33724 * ListBox.cs: connect LostFocus Event
33726 2005-01-27 Peter Bartok <pbartok@novell.com>
33728 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
33729 XplatUIX11.cs: Extended the Systray API
33730 * Form.cs: Removed debug output
33731 * Application.cs: Fixed focus assignment, always need to call
33732 XplatUI.Activate() since Form.Activate() has rules that may
33734 * NotifyIcon.cs: Should be complete now
33735 * ToolTip.cs: Worked around possible timer bug
33737 2005-01-27 Jackson Harper <jackson@ximian.com>
33740 - Only invalidate the effected tabs when the
33741 selected index changes. This reduces drawing and gets rid of some
33743 - Only refresh if the tabs need to be shifted, otherwise only
33744 invalidate the slider button.
33745 - On windows the tabs are not filled to right if the slider is
33748 2005-01-27 Jackson Harper <jackson@ximian.com>
33750 * TabControl.cs: Only refresh on mouseup if we are showing the
33751 slider. Also only invalidate the button whose state has changed.
33753 2005-01-26 Peter Bartok <pbartok@novell.com>
33755 * XplatUI.cs, XplatUIDriver.cs: Added Systray methods
33756 * XplatUIWin32.cs: Implemented SystrayAdd(), SystrayChange()
33757 and SystrayRemove() methods
33758 * XplatUIOSX.cs: Stubbed Systray methods
33760 - Implemented SystrayAdd(), SystrayChange() and SystrayRemove()
33762 - Fixed broken XChangeProperty calls (marshalling messed up things)
33763 * X11Structs.cs: Added enums and structs required for Size hinting
33764 * NotifyIcon.cs: Added & implemented
33766 2005-01-26 Jackson Harper <jackson@ximian.com>
33768 * TabControl.cs: Space vertically layed out tabs properly.
33770 2005-01-26 Peter Bartok <pbartok@novell.com>
33772 * Form.cs (CreateClientParams): Always set the location to 0,0
33773 since we're a child window.
33775 * Control.cs (SetVisibleCore): Always explicitly setting the location
33776 of a toplevel window, apparently X11 doesn't like to move windows
33777 while they're not mapped.
33779 2005-01-26 Jackson Harper <jackson@ximian.com>
33781 * TabControl.cs: Implement FillToRight size mode with vertically
33784 2005-01-26 Jordi Mas i Hernandez <jordi@ximian.com>
33786 * ControlPaint.cs, ThemeWin32Classic.cs
33787 - Fixes DrawFocusRectangle
33789 2005-01-26 Jordi Mas i Hernandez <jordi@ximian.com>
33792 - MenuBar tracking only starts when item is first clicked
33793 - Fixes menu hidding for multiple subitems
33794 - Unselect item in MenuBar when item Executed
33797 2005-01-25 Jordi Mas i Hernandez <jordi@ximian.com>
33800 - IsInputKey for ListBox
33803 - Shift and Control item selection
33804 - Implement SelectionMode.MultiExtended
33805 - Fixes RightToLeft
33807 - IsInputKey implemented
33808 - Do not generate OnTextChangedEdit on internal txt changes
33810 2005-01-23 Peter Bartok <pbartok@novell.com>
33812 * AccessibleObject.cs: Partially implemented Select()
33813 * MonthCalendar.cs: Added missing attributes and events
33814 * Form.cs: Fixed CreateParams behaviour, now controls derived from
33815 form can properly override CreateParams.
33816 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
33817 XplatUIX11.cs: Dropped RefreshWindow method, not needed if
33818 Control performs Invalidate & Update
33819 * NativeWindow (CreateHandle): Added special handling for Form
33820 and Form.FormParent classes to allow overriding of From.CreateParams
33822 - ControlNativeWindow: Renamed 'control' variable to more intuitive
33824 - ControlNativeWindow: Added Owner property
33825 - Removed usage of Refresh() on property changes, changed into
33826 Invalidate(), we need to wait until the queue is processed for
33827 updates, direct calls might cause problems if not all vars for
33828 Paint are initialized
33829 - Added call to UpdateStyles() when creating the window, to set any
33830 styles that CreateWindow might have ignored.
33831 - Added support for Form CreateParent overrides to UpdateStyles()
33832 * MessageBox.cs: Removed no longer needed FormParent override stuff,
33833 CreateParams are now properly overridable
33834 * CommonDialog.cs: Removed no longer needed FormParent override stuff,
33835 CreateParams are now properly overridable
33837 2005-01-23 Miguel de Icaza <miguel@ximian.com>
33839 * UpDownBase.cs (ctor): Connect TextChanged in the entry to the
33842 Capture LostFocus and OnTextBoxChanged. The later introduces a
33843 recursive invocation that I have not figured out yet.
33845 Reset the timer when not using (it was accumulating).
33848 (OnTextBoxChanged): Set UserEdit to true here to track whether the
33849 user has made changes that require validation.
33851 Reset changing to avoid loops.
33853 2005-01-22 Miguel de Icaza <miguel@ximian.com>
33855 * NumericUpDown.cs: Display value at startup.
33857 * UpDownBase.cs (Text): Do not call UpdateEditText here, only call
33860 * NumericUpDown.cs: Minimum, Maximum, Text, Value properties
33861 filled in. Added some basic parsing of text.
33863 Still missing the OnXXX method overrides, and figuring out the
33864 events that must be emitted.
33866 * UpDownBase.cs: Handle UserEdit on the Text property.
33868 2005-01-22 Jordi Mas i Hernandez <jordi@ximian.com>
33871 - Fixes IntegralHeight
33874 2005-01-21 Jackson Harper <jackson@ximian.com>
33876 * TabControl.cs: Set the SelectedIndex property when SelectedTab
33877 is set so that the page visibility is updated and the tabs are
33880 2005-01-21 Jackson Harper <jackson@ximian.com>
33882 * TabControl.cs: Use cliping rectangle for blitting. Give the
33883 theme the clipping rect so we can do clipping while
33884 drawing. Remove some debug code.
33886 2005-01-21 Jackson Harper <jackson@ximian.com>
33888 * TabPage.cs: Add a new method so tab pages can force the tab
33889 control to recalculate the tab page sizes.
33890 * TabControl.cs: UpdateOwner needs to make the tab control recalc
33893 2005-01-20 Jackson Harper <jackson@ximian.com>
33895 * ThemeWin32Classic.cs: Clip text to the staus bar panels rects.
33897 2005-01-20 Jackson Harper <jackson@ximian.com>
33899 * TreeView.cs: Set the bounds for nodes properly. They were
33900 getting screwed up when checkboxes were not enabled, but images
33903 2005-01-20 Jordi Mas i Hernandez <jordi@ximian.com>
33906 - Owner draw support
33909 2005-01-20 Jackson Harper <jackson@ximian.com>
33911 * XplatUIStructs.cs: More misc keys
33912 * X11Keyboard.cs: Ignore some control keys.
33914 2005-01-20 Jackson Harper <jackson@ximian.com>
33916 * X11Structs.cs: Add the modmaps to the keymask struct and tabify.
33917 * X11Keyboard.cs: Set the AltGr mask when we get a key event.
33919 2005-01-19 Peter Bartok <pbartok@novell.com>
33921 * Control.cs: Un-selecting the control when it is loosing focus
33923 2005-01-19 Jackson Harper <jackson@ximian.com>
33925 * TreeView.cs: Hook up to the text controls leave event so we can
33926 end editing when the users clicks outside the text box.
33928 2005-01-19 Jackson Harper <jackson@ximian.com>
33930 * X11Keyboard.cs: Fix typo that was causing the wrong keycodes to
33931 get set in the conversion array.
33933 2005-01-19 Peter Bartok <pbartok@novell.com>
33935 * Application.cs (ModalRun): Added a call to CreateControl to ensure
33936 focus is properly set
33938 - Added missing attributes
33939 - removed styles, those are already set in the base class
33941 - Added missing attributes
33942 - Added clip window styles
33943 * CheckBox.cs: Added missing attributes
33945 - FormParentWindow.CreateParams: Added required clip styles
33946 * Form.cs (ProcessDialogKey): Fixed handling of Escape key, now
33947 also filters modifier keys
33949 - Added assignment of Accept and Cancel button to enable Enter
33950 and Esc keys in MessageBox dialogs
33951 - FormParentWindow.CreateParams: Added required clip styles
33952 * RadioButton.cs: Added missing attributes
33953 * TextControl.cs: No longer draws selection if control does not
33956 - Now draws simple rectangle around test area to make it obvious
33957 there's a control. This is a hack until we properly support borders
33958 - A few simple fixes to support selections better, now erases selected
33959 text when typing, and resets selection when using movement keys
33961 2005-01-19 Miguel de Icaza <miguel@ximian.com>
33963 * UpDownBase.cs: Added some new properties.
33965 * DomainUpDown.cs: Implement a lot to get my test working.
33967 2005-01-19 Geoff Norton <gnorton@customerdna.com>
33969 * XplatUIOSX.cs: Fix a minor bug to bring the close box back
33971 2005-01-19 Geoff Norton <gnorton@customerdna.com>
33973 * OSXStructs (WindowAttributes): Fixed csc complaints
33975 2005-01-19 Geoff Norton <gnorton@customerdna.com>
33978 OSXStructs.cs: Initial refactor to move enums and consts into
33979 OSXStructs and use them in the driver for greater readability.
33981 2005-01-19 Geoff Norton <gnorton@customerdna.com>
33983 * XplatUIOSX.cs: Initial support for Standard Cursors.
33984 * OSXStructs.cs: Move our structs here; added ThemeCursor enum
33986 2005-01-19 Jordi Mas i Hernandez <jordi@ximian.com>
33988 * ComboBox.cs: ability to change style when the ctrl is already
33989 created, missing methods and events, bug fixes, signature fixes
33991 2005-01-19 Peter Bartok <pbartok@novell.com>
33993 * Cursors.cs (ctor): Added ctor to fix signature
33995 2005-01-18 Peter Bartok <pbartok@novell.com>
33997 * Button.cs: Implemented DoubleClick event
33999 - Fixed keyboard handling to behave like MS, where the press of
34000 Spacebar is equivalent to a mousedown, and the key release is
34001 equivalent to mouseup. Now a spacebar push will give the same
34002 visual feedback like a mouse click.
34003 - Added missing attributes
34004 - Added ImeModeChanged event
34005 - Added support for generating DoubleClick event for derived classes
34007 - Implemented DoubleClick event
34008 - Added missing attributes
34009 * CommonDialog.cs: Added missing attribute
34010 * ContextMenu.cs: Added missing attributes
34012 - AutoChecked buttons do not allow to be unselected when clicked
34013 (otherwise we might end up with no selected buttons in a group)
34014 - Added missing attributes
34015 - Implemented DoubleClickEvent
34016 * ThreadExceptionDialog.cs: Enabled TextBox code
34018 2005-01-18 Peter Bartok <pbartok@novell.com>
34020 * Form.cs: Removed debug output
34021 * Button.cs: Added support for DoubleClick method
34023 2005-01-18 Peter Bartok <pbartok@novell.com>
34026 - Added method to parent window that allows triggering size
34027 calculations when a menu is added/removed
34028 - set_Menu: Cleaned up mess from early days of Form and Control,
34029 now properly triggers a recalc when a menu is added/removed
34030 - Added case to select form itself as focused form if no child
34032 - Added PerformLayout call when showing dialog, to ensure properly
34035 - Select(): Made internal so Form can access it
34036 - Focus(): Only call Xplat layer if required (avoids loop), and sets
34038 * Application.cs (Run): Removed hack and calls PerformLayout instead
34039 to trigger calculation when Form becomes visible
34041 2005-01-18 Jordi Mas i Hernandez <jordi@ximian.com>
34043 * ComboBox.cs: fixes for ownerdraw
34045 2005-01-18 Peter Bartok <pbartok@novell.com>
34048 - Sentinel is no longer static, each Document gets it's own, this
34049 avoids locking or alternatively overwrite problems when more
34050 than one text control is used simultaneously.
34051 - Switched to use Hilight and HilightText brushes for text selection
34053 * TextBoxBase.cs (PaintControl): Disabled AntiAliasing to improve looks
34055 2005-01-18 Peter Bartok <pbartok@novell.com>
34058 - Hooked up the following events:
34066 o SystemColorsChanged
34067 o ParentFontChanged
34069 - Removed debug output
34070 - Added a call to the current theme's ResetDefaults when a color change
34072 * Form.cs: Now setting the proper ImeMode
34073 * Theme.cs: Defined a method to force recreation of cached resources
34074 and rereading of system defaults (ResetDefaults())
34075 * ThemeWin32Classic.cs: Added ResetDefaults() stub
34077 2005-01-17 Peter Bartok <pbartok@novell.com>
34079 * Control.cs: Added missing attributes
34081 2005-01-17 Jackson Harper <jackson@ximian.com>
34083 * TreeNode.cs: Implement editing. Add missing properties selected
34085 * TreeView.cs: Implement node editing. Also some fixes to use
34086 Invalidate (invalid area) instead of Refresh when selecting.
34088 2005-01-17 Peter Bartok <pbartok@novell.com>
34091 - Implemented InvokeGotFocus() method
34092 - Implemented InvokeLostFocus() method
34093 - Implemented InvokePaint() method
34094 - Implemented InvokePaintBackground() method
34095 - Implemented InvokeClick() method
34096 - Implemented FindForm() method
34097 - Implemented RectangleToClient() method
34098 - Implemented ClientToRectangle() method
34099 - Implemented ResetBackColor() method
34100 - Implemented ResetCursor() method
34101 - Implemented ResetFont() method
34102 - Implemented ResteForeColor() method
34103 - Implemented ResetImeMode() method
34104 - Implemented ResetLeftToRight() method
34105 - Implemented ResetText() method
34106 - Implemented Scale() methods
34107 - Implemented ScaleCore() method
34108 - Implemented Update() method
34109 - Removed unused variables
34110 - Stubbed AccessibilityNotifyClients and
34111 ControlAccessibleObject.NotifyClients() methods (dunno what to do
34113 - Now setting proper default for RightToLeft property
34114 - Fixed bug in SetClientSizeCore that would cause windows to get
34116 - Now sending Click/DoubleClick events
34117 - Now selecting controls when left mouse button is clicked on
34119 * AccessibleEvents.cs: Added
34120 * XplatUI.cs, XplatUIDriver.cs: Added UpdateWindow() method
34121 * XplatUIOSX.cs: Stubbed UpdateWindow() method
34122 * XplatUIWin32.cs: Implemented UpdateWindow() method
34123 * XplatUIX11.cs: Implemented UpdateWindow() method
34124 * Form.cs: Removed stray semicolon causing CS0162 warning
34125 * ThemeWin32Classic.cs: Fixed unused variable warnings
34126 * ScrollableControl.cs: Now calls base method for ScaleCore
34127 * ButtonBase.cs: Now disabling StandardClick and StandardDoubleClick
34128 style to avoid interference with internal click handler (which is
34129 different than standard Control click handling)
34131 - Now unchecks all sibling radio buttons when control is
34132 selected (Fixes #68756)
34133 - Removed internal tabstop variable, using the one inherited from
34136 2005-01-17 Jackson Harper <jackson@ximian.com>
34138 * NavigateEventArgs.cs: Fix base type.
34139 * LinkLabel.cs: Sig fix
34141 2005-01-17 Jackson Harper <jackson@ximian.com>
34143 * TreeView.cs: Only invalidate the effected nodes bounds when
34146 2005-01-13 Jordi Mas i Hernandez <jordi@ximian.com>
34148 * XplatUIWin32.cs: fixes Win32 marshaling
34149 * XplatUIX11.cs: fixes method signature
34151 2005-01-17 Peter Bartok <pbartok@novell.com>
34153 * XplatUIX11.cs: Clean up resources when we no longer need them
34155 2005-01-17 Peter Bartok <pbartok@novell.com>
34157 * XplatUI.cs, XplatUIDriver.cs: Added SetCursor(), ShowCursor(),
34158 OverrideCursor(), DefineCursor(), DefineStdCursor(), GetCursorInfo()
34159 and DestroyCursor() methods.
34160 * Cursor.cs: Partially implemented, now supports standard cursors;
34161 still contains some debug code
34162 * Cursors.cs: Implemented class
34164 - WndProc(): Added handling of WM_SETCURSOR message, setting the
34166 - Implemented Cursor property
34167 - Replaced break; with return; more straightforwar and possibly
34169 - Now properly setting the result for WM_HELP
34170 * X11Structs.cs: Added CursorFontShape enum
34171 * XplatUIStructs.cs:
34172 - Added StdCursor enum (to support DefineStdCursor() method)
34173 - Added HitTest enum (to support sending WM_SETCURSOR message)
34175 - Now sends the WM_SETCURSOR message
34176 - Implemented new cursor methods
34177 * XplatUIOSX.cs: Stubbed new cursor methods
34179 - Implemented new cursor methods
34180 - Added GetSystemMetrics function and associated enumeration
34182 2005-01-15 Peter Bartok <pbartok@novell.com>
34185 - WndProc(): Now handles EnableNotifyMessage
34186 - SelectNextControl(): Fixed bug where if no child or sibling
34187 controls exist we looped endlessly
34189 2005-01-14 Jackson Harper <jackson@ximian.com>
34191 * TreeView.cs: Recalculate the tab pages when a new one is added
34192 so that the proper bounding rects are created.
34194 2005-01-14 Jackson Harper <jackson@ximian.com>
34196 * TreeView.cs: Draw a gray box instead of a grip in the lower
34197 right hand corner when there are both horizontal and vertical
34200 2005-01-14 Jackson Harper <jackson@ximian.com>
34202 * Control.cs: When erasing backgrounds use FromHwnd instead of
34203 FromHdc when there is a NULL wparam. This occurs on the X driver.
34204 * XplatUIX11.cs: Set the wparam to NULL.
34206 2005-01-13 Jackson Harper <jackson@ximian.com>
34208 * PictureBox.cs: Implement missing methods (except ToString, need
34209 to test that on windows) and events. When visibility is changed we
34210 need to redraw the image because the buffers are killed. When size
34211 is changed refresh if the sizemode needs it.
34213 2005-01-13 Peter Bartok <pbartok@novell.com>
34215 * Control.cs (SelectNextControl): Was using wrong method to select
34218 2005-01-13 Jordi Mas i Hernandez <jordi@ximian.com>
34220 * ComboBox.cs: fixes dropstyle
34222 2005-01-13 Peter Bartok <pbartok@novell.com>
34225 - Implemented Select() override
34226 - Now handles WM_SETFOCUS/WM_KILLFOCUS messages
34227 - Now sets keyboard focus on startup
34228 * Control.cs (SelectNextControl): Now properly handles directed=true
34230 - WndProc: Now passes tab key on to base if AcceptTabChar=false
34231 - Added (really bad) focus rectangle (mostly for testing)
34232 * TextBox.cs: Added code to handle getting/loosing focus and invalidating
34233 to enforce redraw on focus changes
34234 * ContainerControl.cs:
34235 - Fixed detection of Shift-Tab key presses
34236 - Fixed traversal with arrow keys
34237 * XplatUIX11.cs: Implemented simulated keyboard focus; not sure if we're
34238 gonna keep this or if it's complete yet
34240 2005-01-13 Jordi Mas i Hernandez <jordi@ximian.com>
34242 * ComboBox.cs: missing properties, fixes
34244 2005-01-13 Peter Bartok <pbartok@novell.com>
34246 * Panel.cs (ctor): Setting Selectable window style to off
34247 * Splitter.cs (ctor): Setting Selectable window style to off
34248 * GroupBox.cs (ctor): Setting Selectable window style to off
34249 * Label.cs (ctor): Setting Selectable window style to off
34251 2005-01-12 Miguel de Icaza <miguel@ximian.com>
34253 * UpDownBase.cs (InitTimer): If the timer has been already
34254 created, enable it.
34256 Use a TextBox instead of a Label.
34258 2005-01-12 Jackson Harper <jackson@ximian.com>
34260 * TreeView.cs: Refresh the tree after sorting the nodes. Always
34261 draw the connecting node lines (when ShowLines is true).
34262 * TreeNode.cs: The nodes index can now be updated. This is used
34263 when a node collection is sorted.
34264 * TreeNodeCollection.cs: Implement sorting. Nodes can be sorted on
34265 insert or an existing unsorted node collection can be sorted.
34267 2005-01-12 Peter Bartok <pbartok@novell.com>
34269 * ContainerControl.cs: Implemented ProcessDialogKeys()
34271 2005-01-12 Peter Bartok <pbartok@novell.com>
34274 - Implemented SelectNextControl() method
34275 - Several focus related bug fixes
34276 - Fixed Docking calculations to match MS documentation and
34279 2005-01-12 Jordi Mas i Hernandez <jordi@ximian.com>
34281 * ContainerControl.cs, ListControl.cs, ListBox.cs: keyboard navigation and
34284 2005-01-12 Peter Bartok <pbartok@novell.com>
34287 - Fixed broken Contains() method
34288 - Implemented GetNextControl() method. Finally. This is the pre-
34289 requisite for focus handling.
34291 2005-01-12 Peter Bartok <pbartok@novell.com>
34293 * OSXStrucs.cs: Added
34295 2005-01-12 Peter Bartok <pbartok@novell.com>
34298 - Removed PeekMessageFlags
34299 - Implemented SetWindowStyle() method
34300 * XplatUIStructs.cs: Added PeekMessageFlags
34301 * X11Structs: Added missing border_width field to XWindowChanges struct
34303 - PeekMessage: Now throws exception if flags which are not yet
34304 supported are passed
34305 - Implemented SetWindowStyle() method
34306 - Fixed SetZOrder to handle AfterHwnd properly
34307 * XplatUI.cs: Added SetWindowStyle() method
34308 * XplatUIDriver.cs: Added SetWindowStyle() abstract
34310 - Implemented UpdateStyles() method
34311 - Implemented UpdateZOrder() method
34312 * XplatUIOSX.cs: Added SetWindowStyle() stub
34314 2005-01-12 Geoff Norton <gnorton@customerdna.com>
34316 * XplatUIOSX.cs: Fix SetZOrder (this needs more testing with a 3
34320 2005-01-11 Jackson Harper <jackson@ximian.com>
34322 * TreeView.cs: Still need to draw lines to siblings even if out of
34323 the current node is out of the clip.
34325 2005-01-11 Jackson Harper <jackson@ximian.com>
34327 * TreeView.cs: When setting the hbar/vbar/grip position use
34328 SetBounds so that perform layout is only called once. Also suspend
34329 and resume layout so layout is only done once for all controls.
34330 - Removed some debug fluff
34331 * SizeGrip.cs: Call base implmentation in overriding methods.
34332 - When visibility is changed the drawing buffers are killed so we
34335 2005-01-11 Jackson Harper <jackson@ximian.com>
34337 * TreeView.cs: Calculate the open node count while drawing. This
34338 saves us an entire tree traversal for every paint operation. Use
34339 a member var for the open node count so less vars are passed around.
34341 2005-01-11 John BouAntoun <jba-mono@optusnet.com.au>
34343 * MonthCalendar.cs:
34344 - fixed selection to use mousemove, not mouse polling on timer
34345 * ThemeWin32Classic.cs
34346 - removed redundant unused variable "no_more_content"
34348 2005-01-11 Peter Bartok <pbartok@novell.com>
34350 * XplatUIX11.cs (DoEvents): Needs to return when no more events
34351 are pending, so it now calls PeekMessage instead of GetMessage;
34352 implemented a incomplete version of PeekMessage
34354 2005-01-11 Peter Bartok <pbartok@novell.com>
34356 * XplatUIWin32.cs: Switched P/Invokes to unicode charset to avoid
34358 * TextBoxBase.cs: Added sending of TextChanged event
34360 2005-01-10 Jackson Harper <jackson@ximian.com>
34362 * TreeView.cs: Try not to draw outside the clipping rectangle on
34365 2005-01-10 Jordi Mas i Hernandez <jordi@ximian.com>
34367 * ComboBox.cs: keyboard navigation, item navigation, bug fixes
34369 2005-01-10 Jackson Harper <jackson@ximian.com>
34372 - Implement fast scrolling. Now only the newly
34373 exposed nodes are drawn and the old image is moved using the
34374 XplatUI::ScrollWindow method.
34375 - Factor in height of nodes when calculating whether or not the
34376 node is in the clipping rect.
34378 2005-01-10 Jackson Harper <jackson@ximian.com>
34380 * TreeNodeCollection.cs: Refresh the tree when a new node is added.
34382 2005-01-10 Peter Bartok <pbartok@novell.com>
34384 * Application.cs: Added temporary hack to resolve all our resize
34385 required issues on startup. This will get fixed properly at
34386 some point in the future
34388 2005-01-10 Jackson Harper <jackson@ximian.com>
34390 * SizeGrip.cs: New internal class that is used as a sizing
34391 grip control...hence the name.
34393 2005-01-10 Peter Bartok <pbartok@novell.com>
34395 * Control.cs: Implemented proper TabIndex handling, now assigning
34396 a tabindex when a control is added to a container
34397 * GroupBox.cs (ctor): Now sets the Container style bit, required
34398 for Control.GetNextControl()
34400 2005-01-09 Jackson Harper <jackson@ximian.com>
34402 * TextBoxBase.cs: Clear window when scrolling (fixes build).
34404 2005-01-09 Peter Bartok <pbartok@novell.com>
34406 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
34407 XplatUIX11.cs: Added ability to control ScrollWindow expose and
34408 an overload for ScrollWindow to allow only scrolling a rectangle
34410 2005-01-09 Peter Bartok <pbartok@novell.com>
34413 - Implemented SetDesktopBounds method
34414 - Implemented SetDesktopLocation method
34416 2005-01-08 Jackson Harper <jackson@ximian.com>
34418 * TreeView.cs: Only set the vbar's Maximum and LargeChange when
34419 the node count has changed, this removes to VScroll::Refresh calls
34422 2005-01-08 Geoff Norton <gnorton@customerdna.com>
34424 * XplatUIOSX.cs: Fix GetWindowState & SetWindowState
34426 2005-01-07 Jackson Harper <jackson@ximian.com>
34428 * TreeNode.cs: Just update the single node when it is
34429 checked. Don't refresh after toggling, the Expand/Collapse already
34431 * TreeView.cs: Respect clipping a little more when drawing. Try
34432 not to redraw things that don't need to be redrawn. Just hide the
34433 scrollbars when they are no longer needed instead of removing
34434 them, so they don't have to be created again and again.
34436 2005-01-07 Geoff Norton <gnorton@customerdna.com>
34438 * XplatUIOSX.cs (SetCaretPos): We need to translate the view
34439 coordinates to window space to place the caret properly, FIXED.
34440 Implement GetWindowState & SetWindowState
34442 2005-01-06 Peter Bartok <pbartok@novell.com>
34445 - Implemented ClientSize property
34446 - Implemented DesktopBounds property
34447 - Implemented DesktopLocation property
34448 - Implemented IsRestrictedWindow property
34449 - Implemented Size property
34450 - Implemented TopLevel property
34451 - Implemented FormWindowState property
34453 - Implemented GetTopLevel() method
34454 - Implemented SetTopLevel() method
34455 * X11Structs.cs (Atom):
34456 - Added AnyPropertyType definition
34457 - Added MapState definiton and updated XWindowAttribute struct
34458 * XplatUI.cs: Added GetWindowState() and SetWindowState() methods
34459 * XplatUIDriver.cs: Added GetWindowState() and SetWindowState() methods
34460 * XplatUIOSX.cs: Stubbed GetWindowState() and SetWindowState() methods
34462 - Implemented GetWindowState() and SetWindowState() methods
34463 - Fixed Win32GetWindowLong return type
34465 - Introduced central function for sending NET_WM messages
34466 - Implemented GetWindowState() and SetWindowState() methods
34467 * TextBoxBase.cs (set_Lines):
34468 - Now uses Foreground color for text added via Text property (Duh!)
34469 - Added code to remember programmatically requested size (fixes
34470 behaviour when Multiline is set after Size)
34471 - Added AutoSize logic
34473 2005-01-06 Jackson Harper <jackson@ximian.com>
34475 * TreeView.cs: Draw the image after the checkbox if checkboxes are enabled.
34477 2005-01-06 Jackson Harper <jackson@ximian.com>
34479 * ListBox.cs: Don't allow the horizontal scrollbars maximum to be
34480 set to less then 0.
34482 2005-01-06 Jackson Harper <jackson@ximian.com>
34484 * ScrollableControl.cs: Lazy init the scrollbars.
34486 2005-01-06 Jackson Harper <jackson@ximian.com>
34488 * Theme.cs: Speed up getting pens and solid brushes, by using
34489 their ARGB as a hash instead of tostring and not calling Contains.
34491 2005-01-06 Peter Bartok <pbartok@novell.com>
34494 - Implemented OnActivated and OnDeactivate event trigger
34495 - Implemented Activate() method
34496 - Fixed ShowDialog() to activate the form that was active before
34497 the dialog was shown
34499 - Added global active_window var that tracks the currently active
34501 - Now always grabs Property changes from the root window to always
34502 catch changes on the active window property
34503 - Added code to PropertyNotify handler to send Active/Inactive
34504 messages when state changes. This puts X11 and Win32 en par on
34505 WM_ACTIVATE notifications (except for double notifications when
34506 the user clicks away from our modal window to another one of our
34509 2005-01-05 Jackson Harper <jackson@ximian.com>
34511 * ImageList.cs: Implment ctor
34513 2005-01-05 Geoff Norton <gnorton@customerdna.com>
34515 * XplatUIOSX.cs: Implement Activate/SetTopmost
34517 2005-01-05 Geoff Norton <gnorton@customerdna.com>
34519 * XplatUIOSX.cs: Implement SetZOrder, minor cleanup
34521 2005-01-05 Geoff Norton <gnorton@customerdna.com>
34523 * XplatUIOSX.cs: Implement GetActive/SetFocus.
34525 2005-01-05 Peter Bartok <pbartok@novell.com>
34527 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs,
34528 XplatUIOSX.cs: Added GetActive method to return the currently
34529 active window for the application (or null, if none is active)
34531 - Implemented ActiveForm
34532 - Commented out owner assignment for modal dialogs (causes problems
34533 on Win32, since the owner will be disabled)
34534 - Reworked some Active/Focus handling (still incomplete)
34535 * CommonDialog.cs: Commented out owner assignment for modal dialogs
34536 (causes problems on Win32, since the owner will be disabled)
34537 * IWin32Window: Added ComVisible attribute
34539 2005-01-05 Peter Bartok <pbartok@novell.com>
34541 * ToolTip.cs (WndProc): Enable setting focus now that we have the
34542 required XplatUI functions.
34544 2005-01-05 Peter Bartok <pbartok@novell.com>
34546 * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIDriver.cs,
34547 XplatUIX11.cs, X11Structs.cs, Form.cs: Framework code required
34548 to implement focus and activation handling; still incomplete and
34551 2005-01-04 Peter Bartok <pbartok@novell.com>
34553 * TextBoxBase.cs: Changed access level for Document property to
34554 match switch to internal for TextControl
34556 2005-01-04 Peter Bartok <pbartok@novell.com>
34558 * AccessibleObject: Added ComVisible attribute
34560 2005-01-04 Jackson Harper <jackson@ximian.com>
34562 * X11Keyboard.cs: Remove unneeded var.
34564 2005-01-04 Jackson Harper <jackson@ximian.com>
34566 * XplatUIX11.cs (DoEvents): Implement, Just cast aside all events
34568 * XplatUIX11.cs (GetMessage): Call Exit when we get an unknown
34569 ClientMessage. This makes apps exit cleanly (more often).
34571 2005-01-04 Jackson Harper <jackson@ximian.com>
34573 * TreeNode.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) for
34574 handling focus, return correct colors and fonts,
34575 * TreeView.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) to
34576 handle selection, horizontal scrolling, and mouse interaction.
34578 2005-01-04 Peter Bartok <pbartok@novell.com>
34580 * ICommandExecutor.cs: Added
34581 * IDataGridColumnStyleEditingNotificationService.cs: Added
34582 * IFeatureSupport.cs: Added
34583 * IFileReaderService.cs: Added
34584 * IDataObject.cs: Added ComVisible attribute
34585 * AmbientProperties.cs: Added
34586 * BaseCollection.cs: Added missing attributes
34587 * ListBindingConverter.cs: Added (stubbed, required for certain attributes)
34588 * BaseCollection.cs: Added missing attributes
34589 * Binding.cs: Added TypeConverter attribute
34590 * BindingContext.cs: Added DefaultEvent attribute
34591 * BindingsCollection.cs: Added DefaultEvent attribute
34592 * Button.cs: Added DefaultValue attribute
34593 * DragEventArgs.cs: Added ComVisible attribute
34594 * GiveFeedbackEventArgs.cs: Added ComVisible attribute
34595 * KeyEventArgs.cs: Added ComVisible attribute
34596 * KeyPressEventArgs.cs: Added ComVisible attribute
34597 * MouseEventArgs.cs: Added ComVisible attribute
34598 * NavigateEventArgs.cs: Added
34599 * NavigateEventHandler.cs: Added
34600 * FeatureSupport.cs: Added
34601 * OSFeature.cs: Added
34602 * Theme.cs: Added abstract Version property to support OSFeature
34603 * ThemeWin32Classic.cs: Added Version property to
34604 support OSFeature.Themes
34605 * ProgressBar.cs: Removed OnPaintBackground override, not required since
34606 the proper styles to avoid background drawing are set, also doesn't
34608 * QueryAccessibilityHelpEventArgs.cs: Added ComVisible attribute
34609 * QueryContinueDragEventArgs.cs: Added ComVisible attribute
34610 * ScrollEventArgs.cs: Added ComVisible attribute
34611 * SplitterEventArgs.cs: Added ComVisible attribute
34612 * AccessibleSelection.cs: Added Flags attribute
34613 * Appearance.cs: Added ComVisible attribute
34614 * Border3DSide.cs: Added ComVisible attribute
34615 * Border3DStyle.cs: Added ComVisible attribute
34616 * BorderStyle.cs: Added ComVisible attribute
34617 * DragAction.cs: Added ComVisible attribute
34618 * ErrorBlinkStyle.cs: Added
34619 * ScrollEventType.cs: Added ComVisible attribute
34620 * AnchorStyles.cs: Added Editor attribute
34621 * DockStyle.cs: Added Editor attribute
34622 * HorizontalAlignment.cs: Added ComVisible attribute
34623 * HelpEventArgs.cs: Added ComVisible attribute
34624 * PaintEventArgs.cs: Added IDisposable
34626 2005-01-04 Peter Bartok <pbartok@novell.com>
34628 * TextControl.cs: Switched Line, LineTag and Document classes to
34631 2005-01-04 Jordi Mas i Hernandez <jordi@ximian.com>
34633 * ComboBox.cs, ThemeWin32Classic.cs, ListBox.cs, Theme.cs:
34634 Simple mode, fixes, IntegralHeight, etc.
34636 2005-01-04 Peter Bartok <pbartok@novell.com>
34638 * TextBoxBase.cs: Using proper font variable now
34640 2005-01-04 Peter Bartok <pbartok@novell.com>
34642 * Form.cs (ShowDialog): Set parent to owner, if provided
34643 * GroupBox.cs: Removed unused vars
34645 - Added GetHashCode() for Document and LineTag classes
34646 - Removed unused variables
34647 - Added CharIndexToLineTag() and LineTagToCharIndex() methods
34648 to allow translation between continuous char position and line/pos
34649 * CheckBox.cs: Removed vars that are provided by base class
34650 * RadioButton.cs: Removed vars that are provided by base class, added
34651 new keyword where required
34652 * LinkLabel.cs: Added new keyword where required
34653 * Control.cs (WndProc): Removed unused variable
34655 - Finished SelectionLength property
34656 - Implemented SelectionStart property
34657 - Implemented Text property
34658 - Removed unused vars
34659 * MessageBox.cs: Added new keyword where required
34660 * TextBox.cs: Removed Text property code (now in TextBoxBase), fixed
34662 * MenuAPI.cs: Added new keyword where required
34663 * ButtonBase.cs: Removed vars that are provided by base class, added
34664 new keyword where required
34665 * ThemeWin32Classic.cs (DrawMonthCalendarDate): Now cast Math.Floor
34666 argument to double, to allow compiling with csc 2.0 (Atsushi ran
34668 * Application.cs (Run): Now triggers the ThreadExit event
34669 * CommonDialog.cs: Added new keyword where required; now properly sets
34670 parent (owner) for dialog
34671 * XplatUIX11.cs: Commented out unused vars
34672 * StatusBar.cs: Fixed signature for Text property
34673 * TabPage.cs: Undid Jordi's removal of unused var, now using the var
34675 2005-01-04 Jordi Mas i Hernandez <jordi@ximian.com>
34677 * ComboBox.cs, TabPage.cs, MenuAPI.cs, ThemeWin32Classic.cs,
34678 TrackBar.cs, MonthCalendar.cs: remove unused vars
34680 2005-01-03 Jackson Harper <jackson@ximian.com>
34682 * ThemeWin32Classic.cs:
34683 * X11Keyboard.cs: Remove unused vars.
34685 2005-01-03 Peter Bartok <pbartok@novell.com>
34688 - set_Text: Tied into TextControl
34689 - set_TextAlignment: Tied into TextControl
34691 - Added alignment properties and implemented alignment handling
34692 and drawing (still has a bug, not generating proper expose events)
34693 - Added new Line() constructor to allow passing the line alignment
34694 - Fixed selection setting, properly handling end<start now
34695 - Added aligment considerations to RecalculateDocument()
34697 - Now properly enforces control height for single line controls
34698 - Added support for CharacterCasing
34699 - Added IsInputKey override
34700 - Fixed Keys.Enter logic
34701 - Added SetBoundsCore override
34702 - Fixed mouse selection handling
34704 2005-01-03 Jackson Harper <jackson@ximian.com>
34707 - Collapse and uncheck all nodes when CheckBoxes is disabled.
34708 - Checkboxes are always aligned to the bottom of the node,
34709 regardless of item height.
34710 - Use the node bounds to draw the text so we can center it when
34711 the item height is greater then the font height.
34712 - Node::Bounds are only the text part of the node.
34713 * TreeNode.cs: New method to combine collapsing and unchecking all
34716 2005-01-02 Jackson Harper <jackson@ximian.com>
34718 * TreeView.cs: Draw checkmarks, handle detecting check mark clicks
34719 * TreeNode.cs: Add a bounding box for the checkbox, refresh the
34720 tree when a check is changed. TODO: Only refresh the checked node.
34722 2004-12-30 Jackson Harper <jackson@ximian.com>
34724 * TreeView.cs: Draw checkbox boxes when checkboxes are enabled.
34725 * TreeNode.cs: When collapsing make sure to never collapse the
34728 2004-12-29 Jackson Harper <jackson@ximian.com>
34730 * TreeView.cs: Align lines to the bottom of plus minus boxes properly.
34732 2004-12-28 Zoltan Varga <vargaz@freemail.hu>
34734 * X11Structs.cs X11Keyboard.cs XplatUIX11.cs: Fix 64 bit issues.
34736 2004-12-28 Peter Bartok <pbartok@novell.com>
34738 * MessageBox.cs (get_CreateParams): Don't use owner var if it's
34741 2004-12-28 Peter Bartok <pbartok@novell.com>
34743 * Control.cs (WndProc): Added WM_HELP handler, now generates
34744 HelpRequested event
34745 * Form.cs: Added HelpButton property and required support code
34746 * XplatUIStructs.cs: Added HELPINFO structure for WM_HELP handling
34748 2004-12-28 Peter Bartok <pbartok@novell.com>
34751 - Made DialogForm.owner variable internal
34752 - Added check to ensure owner form is set before setting
34753 owner properties in CreateParams
34755 2004-12-28 Geoff Norton <gnorton@customerdna.com>
34757 * XplatUIOSX.cs: Implement mouse hovering. Fix QDPoint struct to avoid
34758 swizzling. Implement ClientToScreen and ScreenToClient. Implement
34759 GetCursorPos. Fix major visibility issues. Rework the windowing
34760 system to support borderless/titleless windows (implements menus).
34761 Fix GetWindowPos. Implement initial background color support for
34764 2004-12-28 Peter Bartok <pbartok@novell.com>
34766 * Form.cs (get_CreateParams): Make sure we have an owner before using
34767 the owner variable. Implement proper default if no owner exists
34769 2004-12-28 Peter Bartok <pbartok@novell.com>
34771 * In preparation for making Managed.Windows.Forms the default build target
34772 for System.Windows.Forms, the following stubbed files were added.
34773 Dialogs are currently being implemented by contributors and are only
34774 short-term place holders.
34775 * ColorDialog.cs: Initial check-in (minmal stub)
34776 * DataGrid.cs: Initial check-in (minimal stub)
34777 * DataGridLineStyle.cs: Initial check-in (minimal stub)
34778 * DataGridParentRowsLabelStyle.cs: Initial check-in (minimal stub)
34779 * DataGridTableStyle.cs: Initial check-in (minimal stub)
34780 * FontDialog.cs: Initial check-in (minimal stub)
34781 * FileDialog.cs: Initial check-in (minimal stub)
34782 * GridColumnStylesCollection.cs: Initial check-in (minimal stub)
34783 * GridTableStylesCollection.cs: Initial check-in (minimal stub)
34784 * OpenFileDialog: Initial check-in (minimal stub)
34785 * IComponentEditorPageSite.cs: Initial check-in
34786 * Splitter.cs: Initial check-in (for Jackson)
34787 * SplitterEventArgs.cs: Initial check-in (for Jackson)
34788 * SplitterEventHandler.cs: Initial check-in (for Jackson)
34789 * TextBox.cs: Initial check-in; still needs some wiring to
34790 TextControl backend
34791 * Form.cs: Implemented ControlBox property
34792 * MessageBox.cs: Added proper coding for Minimize/Maximize/ControlBox
34793 * CommonDialog.cs: Added proper coding for Minimize/Maximize/ControlBox
34794 * TextControl.cs: Added selection functionality; added todo header
34796 - Implemented Lines property
34797 - Implemented TextHeight property
34798 - Implemented SelectedText property
34799 - Implemented SelectionLength property
34800 - Implemented SelectAll method
34801 - Implemented ToString method
34802 - Removed and cleaned up some debug code
34803 - Implemented (still buggy) mouse text selection
34805 2004-12-27 Jordi Mas i Hernandez <jordi@ximian.com>
34807 * ComboBox.cs: Complete DropDownList implementation, fixes.
34809 2004-12-26 Jordi Mas i Hernandez <jordi@ximian.com>
34811 * ThemeWin32Classic, Theme.cs: ComboBox drawing methods
34812 * ComboBoxStyle.cs: ComboBoxStyle enum
34813 * ComboBox.cs: Initial work on ComboBox control
34815 2004-12-21 Peter Bartok <pbartok@novell.com>
34817 * Control.cs (ctor, CreateParams): Moved setting of is_visible
34818 forward so that anything that creates a window gets the default,
34819 also no longer uses Visible property in CreateParams to avoid
34820 walking up the parent chain and possibly get the wrong visible
34821 status. Fixed IsVisible to no longer walk up to the parent.
34823 2004-12-21 Peter Bartok <pbartok@novell.com>
34825 * Form.cs (ShowDialog): Unset modality for the proper window
34827 2004-12-20 Peter Bartok <pbartok@novell.com>
34829 * CommonDialog.cs: Initial check-in
34831 2004-12-20 Peter Bartok <pbartok@novell.com>
34833 * Control.cs (Visible): Now uses the parent window instead of the
34834 client area window for the property
34837 - ShowDialog(): Now uses the proper window for modality
34838 - The default visibility state for the form parent is now false. This
34839 will prevent the user from seeing all the changes to the form and
34840 its controls before the application hits Application.Run()
34841 - Removed some stale commented out code
34844 - Added FindWindow() method to have a method to check for existence
34846 - Added ability to override default exception handling (for example
34847 when debugging with VS.Net; to do this the ExternalExceptionHandler
34849 - Removed some useless debug output
34852 - Removed r37929 (SetModal patch from Ashwin Bharambe), was
34853 not working as expected
34854 - Implemented modal_window stack and checking for _WM_ACTIVE_WINDOW
34855 property to allow switching back to the modal window if focus is
34856 given to another one of our windows (Application Modal)
34857 - Now only sets override_redirect if we create a window
34859 - Moved EventMask selection before mapping of newly created window
34860 so we can catch the map event as well
34861 - Implemented Activate() method via the _WM_ACTIVE_WINDOW property
34862 - Added various Atom related DllImports
34863 - Implemented Exit() method
34864 - .ctor() : No longer shows window if WS_VISIBLE is not defined
34865 in the CreateParams
34867 * MessageBox.cs: Now properly deals with the FormParent window by
34868 providing an override the FormParent CreateParams property to
34869 set as POPUP instead of OVERLAPPED window.
34871 2004-12-19 Geoff Norton <gnorton@customerdna.com>
34873 * XplatUIOSX.cs: Implement DestroyWindow. Implement ScrollWindow
34874 Minor code cleanup.
34876 2004-12-19 Geoff Norton <gnorton@customerdna.com>
34878 * XplatUIOSX.cs (SetModal): Implement this method on OSX.
34880 2004-12-18 Peter Bartok <pbartok@novell.com>
34882 * XplatUIX11.cs (SetModal): Applied patch from Ashwin Bharambe,
34883 implementing SetModal() method
34885 2004-12-18 Peter Bartok <pbartok@novell.com>
34887 * X11Structs.cs (XGCValues): Fixed type of function element
34888 * XplatUI.cs: Added ScrollWindow() method
34889 * XplatUIDriver.cs: Added ScrollWindow() abstract
34890 * XplatUIWin32.cs: Implemented ScrollWindow() method
34891 * XplatUIX11.cs: Implemented ScrollWindow() method
34892 * XplatUIOSX.cs: Stubbed out ScrollWindow() method
34894 2004-12-17 Geoff Norton <gnorton@customerdna.com>
34896 * XplatUIOSX.cs: Fix cursor to use an Invert instead of drawing it
34897 Some more keyboard support (INCOMPLETE)
34899 2004-12-17 Peter Bartok <pbartok@novell.com>
34902 - Added color attribute to line tags.
34903 - Added color argument to all functions dealing with tags
34904 - Added color argument support to various functions
34905 - Fixed miss-calculation of baseline/shift in certain circumstances
34907 * TextBoxBase.cs: Added new color option to test code
34909 2004-12-17 Jackson Harper <jackson@ximian.com>
34912 * MonthCalendar.cs: Signature fixes
34914 2004-12-17 Geoff Norton <gnorton@customerdna.com>
34916 * XplatUIOSX.cs: Find the missing caret; caret was dissappearing after a
34917 keyboard event moved it. Create a new graphics context for each paint resolves this
34919 2004-12-17 Geoff Norton <gnorton@customerdna.com>
34921 * XplatUIOSX.cs: Fix hard cpu eat on loop with existing timers,
34922 Make caret exist and go blink blink. Initial keyboard support.
34923 Fix exception handler, Add Invalidate support. Change way RefreshWindow
34926 2004-12-17 Jackson Harper <jackson@ximian.com>
34928 * XplatUIStructs.cs: Updated set of virtual keycodes.
34929 * KeyboardLayouts.cs: SCROLL_LOCK is now SCROLL
34931 2004-12-17 Jackson Harper <jackson@ximian.com>
34933 * XplatUIX11.cs: Prune old keyboard code.
34935 2004-12-17 Jackson Harper <jackson@ximian.com>
34937 * XplatUIX11.cs: When generating mouse wparams get the modifier
34938 keys from the ModifierKeys property.
34940 2004-12-17 Jackson Harper <jackson@ximian.com>
34942 * X11Keyboard.cs: Send up/down input when generating
34943 messages. Remove some unused vars.
34945 2004-12-17 Jackson Harper <jackson@ximian.com>
34948 * TreeView.cs: get rid of warnings.
34950 2004-12-17 Jackson Harper <jackson@ximian.com>
34952 * XplatUIStructs.cs: Fix a couple wrong virtual keycodes.
34954 2004-12-17 Jordi Mas i Hernandez <jordi@ximian.com>
34956 * ListBox.cs: bug fixes, changes for CheckedListBox.cs
34957 CheckedListBox.cs: Implementation
34959 2004-12-17 Peter Bartok <pbartok@novell.com>
34961 * TextControl.cs (RecalculateLine): Fixed baseline aligning calcs
34963 2004-12-16 Peter Bartok <pbartok@novell.com>
34966 - InsertCharAtCaret(): Fixed start pos fixup
34967 - CaretLine_get: No longer derives the line from the tag, the tag
34968 could be stale if lines in the document have been added or deleted
34969 - RebalanceAfterDelete(): Fixed bug in balancing code
34970 - RebalanceAfterAdd(): Fixed really stupid bug in balancing code
34971 - Line.Streamline(): Now can also elminate leading empty tags
34972 - DumpTree(): Added a few more tests and prevented exception on
34974 - Added Debug section for Combining lines
34975 - Delete(): Now copies all remaining properties of a line
34978 - Left mousebutton now sets the caret (and middle button still acts
34979 as formatting tester, which must go away soon)
34980 - Added Debug section for Deleting/Combining lines
34981 - Fixed calculations for UpdateView after Combining lines
34983 2004-12-16 Peter Bartok <pbartok@novell.com>
34985 * TextControl.cs: Now properly aligns text on a baseline, using the
34986 new XplatUI.GetFontMetrics() method. Simplified several calculations
34987 * TextBoxBase.cs: Moved #endif to allow compiling if Debug is not
34990 2004-12-16 Peter Bartok <pbartok@novell.com>
34992 * XplatUI.cs: Added GetFontMetrics() method
34993 * XplatUIDriver.cs: Added GetFontMetrics() abstract
34994 * XplatUIX11.cs: Implemented GetFontMetrics() method, now calls
34995 into libgdiplus, our private GetFontMetrics function
34996 * XplatUIOSX.cs: Implemented GetFontMetrics() method, same as X11
34997 * XplatUIWin32.cs: Implemented GetFontMetrics() method
34999 2004-12-16 Jackson Harper <jackson@ximain.com>
35001 * XplatUIStruct.cs: Add enum for dead keys
35002 * X11Keyboard.cs: Map and unmap dead keys.
35004 2004-12-16 Jackson Harper <jackson@ximian.com>
35006 * X11Keyboard.cs: Detect and use the num lock mask.
35008 2004-12-16 Peter Bartok <pbartok@novell.com>
35010 * Control.cs (CreateGraphics): Added check to make sure the
35011 handle of the window exists before calling Graphics.FromHwnd()
35013 2004-12-16 Peter Bartok <pbartok@novell.com>
35015 * TextBoxBase.cs: Initial check-in. DO NOT TRY TO USE THIS YET. It
35016 contains a lot of code that's not supposed to be there for the
35017 real thing, but required for developing/testing the textbox
35020 2004-12-16 Peter Bartok <pbartok@novell.com>
35023 - Fixed Streamline method
35024 - Added FindTag method to Line
35025 - Added DumpTree method for debugging
35026 - Added DecrementLines() method for deleting lines
35027 - Fixed UpdateView to update the cursor to end-of-line on single-line
35029 - Added PositionCaret() method
35030 - Fixed MoveCaret(LineDown) to move into the last line, too
35031 - Added InsertChar overload
35032 - Fixed InsertChar tag offset calculations
35033 - Added DeleteChar() method
35034 - Added Combine() method for folding lines
35035 - Fixed Delete() method, no longer allocates wasted Line object and
35036 now copies all properties when swapping nodes
35037 - Delete() method now updates document line counter
35039 2004-12-15 Jackson Harper <jackson@ximian.com>
35041 * XplatUIX11.cs: Get the modifier keys from the keyboard driver
35042 * X11Keyboard.cs: Expose the currently selected modifier keys
35043 through a property.
35045 2004-12-15 Peter Bartok <pbartok@novell.com>
35047 * TextControl.cs: Initial check-in. Still incomplete
35049 2004-12-15 Jackson Harper <jackson@ximian.com>
35052 * TreeView.cs: Fix build on csc (second time today ;-))
35054 2004-12-15 Jackson Harper <jackson@ximian.com>
35056 * TreeView.cs: Store the treenodes plus/minus box bounds when it
35057 is calculated and use this for click testing.
35058 * TreeNode.cs: Add functionality to store the nodes plus minus box bounds.
35060 2004-12-15 Jackson Harper <jackson@ximian.com>
35062 * TreeView.cs: Pass the nodes image index to the image list when
35063 drawing that image.
35065 2004-12-15 Jackson Harper <jackson@ximian.com>
35067 * X11Keyboard.cs: Set messages hwnd.
35068 * XplatUIX11.cs: Pass proper hwnd wot keyboard driver. Set hwnd on
35069 post_message calls.
35071 2004-12-15 Jackson Harper <jackson@ximian.com>
35073 * X11Keyboard.cs: Fix to compile with csc.
35075 2004-12-15 Jackson Harper <jackson@ximian.com>
35077 * X11Structs.cs: Add key mask values
35078 * XplatUIStruct.cs: Add keyboard event flags, and keyboard definitions
35079 * X11Keyboard.cs: New file - Extrapolates and interpolates key
35080 down/up foo into WM_CHAR foo
35081 * KeyboardLayouts.cs: Common keyboard layouts
35082 * XplatUIX11.cs: Add the keyboard driver. Add functionality to
35083 post messages into the main queue.
35085 2004-12-13 Jordi Mas i Hernandez <jordi@ximian.com>
35087 * Button.cs: implement ProcessMnemonic
35088 * ThemeWin32Classic.cs: use ResPool (caching) instead of creating
35090 * Control.cs: fixes IsMnemonic (support for &&, case insensitive, etc)
35091 * ButtonBase.cs: Show HotkeyPrefix (not the &)
35093 2004-12-12 John BouAntoun <jba-mon@optusnet.com.au>
35095 * MonthCalendar.cs: Implemented click-hold for next/previous month
35098 2004-12-11 Peter Bartok <pbartok@novell.com>
35101 - Added XKeyboardState (moved from XplatUIX11.cs)
35102 - Added XCreateGC related enums and structures
35103 - Added GXFunction for XSetFunction
35105 * XplatUIStructs.cs: Added missing WS_EX_xxx definitions
35107 * XplatUI.cs: Added CreateCaret(), DestroyCaret(), SetCaretPos() and
35108 CaretVisible() calls
35110 * ToolTip.cs: Added code to prevent stealing focus from app windows
35112 * XplatUIDriver.cs: Added abstracts for caret functions (CreateCaret,
35113 DestroyCaret, SetCaretPos and CaretVisible)
35116 - Added implementation for caret functions
35117 - Moved hover variables into a struct, to make it a bit easier
35118 on the eyes and to debug
35119 - Removed XKeyboardState (moved to XplatUIX11.cs)
35120 - Moved Keyboard properties into the properties region
35122 * Control.cs (get_Region): Control.CreateGraphics is the appropriate
35123 call to get a graphics context for our control
35125 * XplatUIOSX.cs: Added empty overrides for the new caret functions
35127 * TreeView.cs: Fixed bug. No matter what color was set it would always
35128 return SystemColors.Window
35130 * XplatUIWin32.cs: Implemented caret overrides
35132 2004-12-10 Jordi Mas i Hernandez <jordi@ximian.com>
35134 * ListBox.cs: fire events, implement missing methods and properties,
35137 2004-12-10 John BouAntoun <jba-mono@optusnet.com.au>
35139 * MonthCalendar.cs: invalidation bug fixing
35140 * ThemeWin32Classic.cs: paint fixing
35142 2004-12-09 Geoff Norton <gnorton@customerdna.com>
35144 * XplatUIOSX.cs: Refactor to pass the real hwnd into Graphics.FromHwnd, we
35145 prepare the CGContextRef there now.
35147 2004-12-09 John BouAntoun <jba-mono@optusnet.com.au>
35149 * MonthCalendar.cs:
35150 - optimisationL only invalidate areas that have changed
35151 * ThemeWin32Classic.cs:
35152 - only paint parts that intersect with clip_area
35154 2004-12-09 Peter Bartok <pbartok@novell.com>
35156 * Application.cs: Undid changes from r37004 which cause problems
35159 2004-12-09 Ravindra <rkumar@novell.com>
35161 * ToolBar.cs: Added support for displaying ContextMenu
35162 attached to a button on ToolBar.
35163 * ToolBarButton.cs: Uncomment/fixed the DropDownMenu
35166 2004-12-09 Jordi Mas i Hernandez <jordi@ximian.com>
35168 * Label.cs: autosize works in text change and removes unnecessary
35171 2004-12-09 Jordi Mas i Hernandez <jordi@ximian.com>
35173 * ThemeWin32Classic.cs, XplatUIOSX.cs, XplatUIWin32.cs:
35176 2004-12-08 Geoff Norton <gnorton@customerdna.com>
35178 * XplatUIOSX.cs: Added mouse move/click/grab support
35179 Remove some debugging WriteLines not needed anymore.
35180 Add window resizing/positioning.
35181 Fix visibility on reparenting.
35183 2004-12-08 Peter Bartok <pbartok@novell.com>
35185 * XplatUIOSX.cs: Added Idle event, now compiles on VS.Net
35187 2004-12-07 Geoff Norton <gnorton@customerdna.com>
35189 * XplatUIOSX.cs: Initial checkin
35190 * XplatUI.cs: Use the Quartz driver if the environment is set to use it
35192 2004-12-03 Ravindra <rkumar@novell.com>
35194 * ListView.cs: Added some keybindings and fixed scrolling.
35195 ScrollBars listen to ValueChanged event instead of Scroll
35196 Event. This would let us take care of all changes being
35197 done in the scrollbars' values programmatically or manually.
35198 * ListView.cs (CanMultiselect): Added a check for shift key.
35199 * ListView.cs (EnsureVisible): Fixed. Do proper scrolling.
35200 * ListViewItem.cs (Clone): Fixed. We need to make a copy
35201 of ListViewSubItemCollection as well.
35203 2004-12-06 Peter Bartok <pbartok@novell.com>
35205 * Control.cs (Parent): Added check and exception to prevent
35208 2004-12-03 Jordi Mas i Hernandez <jordi@ximian.com>
35210 * ListBox.cs: implemented clipping, selection single and multiple,
35213 2004-12-03 Ravindra <rkumar@novell.com>
35215 * ListView.cs (ListView_KeyDown):
35216 * ListView.cs (ListView_KeyUp): Fixed multiple selection handling
35217 when CTRL key is pressed.
35218 * ListViewItem.cs (Selected): Fixed setting the property.
35220 2004-12-03 Marek Safar <marek.safar@seznam.cz>
35222 * Application.cs (OnThreadException): Use ThreadExceptionDialog.
35224 * Form.cs: Add ActiveForm, FormBorderStyle, MaximizeBox,
35225 MinimizeBox, ShowInTaskbar, TopMost properties.
35227 * ThreadExceptionDialog.cs: Implemented (disabled TextBox until
35228 will be implemented).
35230 2004-12-03 Marek Safar <marek.safar@seznam.cz>
35232 * OwnerDrawPropertyBag.cs: New internal parameterless ctor.
35234 * TreeNode.cs: Implemented ICloneable, Fixed to pass my simple
35237 * TreeNodeCollection.cs: Add exception throwing for Add,AddRange.
35239 * TreeView.cs: BackColor is Colors.Window.
35241 2004-12-01 Jackson Harper <jackson@ximian.com>
35243 * TreeView.cs: When resizing the tree if the user is making it
35244 smaller we don't get expose events, so we need to handle adding
35245 the horizontal scrollbar in the size changed handler as well as
35246 the expose handler.
35248 2004-12-02 Jordi Mas i Hernandez <jordi@ximian.com>
35250 * DrawItemState.cs: fixes wrong enum values
35252 2004-12-01 Jackson Harper <jackson@ximian.com>
35254 * TreeView.cs: Resize the hbar as well as the vbar on resize.
35256 2004-12-01 Jackson Harper <jackson@ximian.com>
35258 * NodeLabelEditEventArgs.cs:
35259 * NodeLabelEditEventHandler.cs:
35260 * OpenTreeNodeEnumerator.cs:
35262 * TreeNodeCollection.cs:
35264 * TreeViewAction.cs:
35265 * TreeViewCancelEventArgs.cs:
35266 * TreeViewCancelEventHandler.cs:
35267 * TreeViewEventArgs.cs:
35268 * TreeViewEventHandler.cs: Initial implementation.
35270 2004-12-01 Ravindra <rkumar@novell.com>
35272 * ListView.cs (CalculateListView): Fixed scrolling related
35273 calculations. Also, removed some debug statements from other
35275 * ListViewItem.cs: Changed access to 'selected' instance variable
35276 from private to internal.
35277 * ThemeWin32Classic.cs (DrawListViewItem): Fixed SubItem drawing.
35279 2004-12-01 Jordi Mas i Hernandez <jordi@ximian.com>
35281 * ThemeWin32Classic.cs: remove cache of brush and pens for
35282 specific controls and use the global system, fixes scrollbutton
35283 bugs (for small sizes, disabled, etc)
35285 * ScrollBar.cs: does not show the thumb for very small controls
35286 (as MS) and allow smaller buttons that the regular size
35288 2004-12-01 Miguel de Icaza <miguel@ximian.com>
35290 * UpDownBase.cs: Add abstract methods for the interface.
35291 Add new virtual methods (need to be hooked up to TextEntry when it
35293 Add override methods for most features.
35294 Computes the size, forces the height of the text entry.
35296 * NumericUpDown.cs: Put here the current testing code.
35298 * Set eol-style property on all files that do not have mixed line
35299 endings, to minimize the future problems. There are still a few
35300 files with mixed endings, and someone should choose whether they
35301 want to move it or not.
35303 2004-11-30 Jordi Mas i Hernandez <jordi@ximian.com>
35305 * MonthCalendar.cs, ListView.cs: use Theme colours instead of
35308 2004-11-30 Ravindra <rkumar@novell.com>
35310 * ThemeWin32Classic.cs (DrawListViewItem): Fixed selected item
35311 drawing and replaced use of SystemColors by theme colors.
35312 * ListView.cs (ListView_Paint): Fixed painting done during scrolling.
35313 * ListView.cs (ListViewItemCollection.Add): Throw exception when
35314 same ListViewItem is being added more than once.
35316 2004-11-30 John BouAntoun <jba-mono@optusnet.com.au>
35318 * MonthCalendar.cs:
35319 - ControlStyles love to make the control not flicker
35321 2004-11-30 Peter Bartok <pbartok@novell.com>
35323 * CharacterCasing.cs: Added
35325 2004-11-29 Peter Bartok <pbartok@novell.com>
35327 * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
35328 TreeViewAction.cs, TreeViewEventArgs.cs: Removed new files.
35329 I am removing these files as they conflict with already completed
35330 work. While it is fantastic to get contributions to MWF, I
35331 respectfully ask that everyone please coordinate their contributions
35332 through mono-winforms-list or #mono-winforms at this time. We're
35333 explicitly avoiding stubbing and don't want controls that don't have
35334 their basic functionality implemented in svn. Please also see
35335 http://www.mono-project.com/contributing/winforms.html
35338 2004-11-29 Marek Safar <marek.safar@seznam.cz>
35340 * Application.cs (ModalRun): Don't hang after exit.
35342 * Theme.cs: New TreeViewDefaultSize property.
35344 * ThemeWin32Classic.cs: Replaced hardcoded defaultWindowBackColor
35345 with less hardcoded SystemColors constant.
35346 Implemented TreeViewDefaultSize.
35348 * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
35349 TreeViewAction.cs, TreeViewEventArgs.cs: New files.
35352 2004-11-29 John BouAntoun <jba-mono@optusnet.com.au>
35354 * MonthCalendar.cs:
35355 - Fix NextMonthDate and PrevMonthDate click moving calendar
35357 2004-11-26 John BouAntoun <jba-mono@optusnet.com.au>
35359 * MonthCalendar.cs:
35360 - Fix usage of ScrollChange Property when scrolling months
35362 2004-11-26 Jordi Mas i Hernandez <jordi@ximian.com>
35364 * Menu.cs, MainMenu.cs, MenuItem.cs, MenuAPI.cs
35365 - Fixes menu destroying
35366 - Support adding and removing items on already created menus
35368 2004-11-26 John BouAntoun <jba-mono@optusnet.com.au>
35370 * MonthCalendar.cs:
35371 - Re-worked all bolded dates handling to match win32
35372 * ThemeWin32Classic.cs:
35373 - Fixed rendering with bolded dates
35375 2004-11-25 Jordi Mas i Hernandez <jordi@ximian.com>
35377 * ListBox.cs, Theme.cs, ThemeWin32Classic.cs:
35378 - Horizontal scroolbar
35383 2004-11-25 John BouAntoun <jba-mono@optusnet.com.au>
35385 * MonthCalendar.cs:
35386 - Fix Usage of MaxSelectionCount from SelectionRange
35387 - Fixed Shift + Cursor Selection
35388 - Fixed Shift + (Pg up/Pg dn, Home/End) selection
35389 - Fixed normal cursor selection to be compat with win32
35390 - Fixed Shift + Mouse Click selection
35392 2004-11-24 Peter Bartok <pbartok@novell.com>
35394 * XplatUI.cs (DispatchMessage): Switched to return IntPtr
35395 * XplatUIDriver.cs (DispatchMessage): Switched to return IntPtr
35397 - CreatedKeyBoardMsg now updates keystate with Alt key
35398 - Added workaround for timer crash to CheckTimers, Jackson will
35399 develop a proper fix and check in later
35400 - Implemented DispatchMessage
35401 - Removed calling the native window proc from GetMessage (call
35402 now moved to DispatchMessage)
35404 * KeyEventArgs.cs (Constructor): Now combines modifierkeys into
35405 the keydata (Fixes bug #69831)
35408 - (DispatchMessage): Switched to return IntPtr
35409 - Added DllImport for SetFocus
35411 2004-11-24 Ravindra <rkumar@novell.com>
35413 * ThemeWin32Classic.cs: Fixed ListView border and checkbox
35414 background drawing.
35415 * ListViewItem.cs: Fixed various properties, calculations
35416 and Clone() method. Fixed ListViewSubItemCollection.Clear() method.
35417 * ListView.cs: Fixed calculations, BackColor, ForeColor properties
35418 and some internal properties. Fixed MouseDown handler and Paint
35421 2004-11-24 John BouAntoun <jba-mono@optusnet.com.au>
35423 * MonthCalendar.cs: Add TitleMonth ContextMenu handling
35425 2004-11-24 John BouAntoun <jba-mono@optusnet.com.au>
35427 * ContainerControl.cs: correct accidental check in of local changes
35429 2004-11-24 John BouAntoun <jba-mono@optusnet.com.au>
35431 * ThemeWin32Classic.cs:
35432 - Fixed Drawing Last month in grid (sometimes not showing)
35433 * MonthCalendar.cs:
35434 - Fixed title width calculation bug (makeing title small)
35436 2004-11-23 Peter Bartok <pbartok@novell.com>
35439 - Added generation of WM_MOUSEHOVER event
35440 - Added missing assignment of async_method atom
35441 - Fixed WM_ERASEBKGND; now only redraws the exposed area
35443 2004-11-23 John BouAntoun <jba-mono@optusnet.com.au>
35445 * ThemeWin32Classic.cs:
35446 - Fixed Drawing of today circle when showtodaycircle not set
35447 - fixed drawing of first and last month in the grid (gay dates)
35448 * MonthCalendar.cs:
35449 - Fixed Drawing of today circle
35450 - Fixed drawing of grady dates
35451 - Fixed HitTest for today link when ShowToday set to false
35452 - Fixed DefaultSize to obey ShowToday
35454 2004-11-23 John BouAntoun <jba-mono@optusnet.com.au>
35456 * ThemeWin32Classic.cs: Fixed DrawMonthCalendar and private support methods
35457 * System.Windows.Forms/Theme.cs
35458 * MonthCalendar.cs: added for MonthCalendar
35459 * SelectionRange.cs: added for MonthCalendar
35460 * Day.cs: added for MonthCalendar: added for MonthCalendar
35461 * DateRangeEventArgs.cs: added for MonthCalendar
35462 * DateRangeEventHandler.cs: added for MonthCalendar
35464 2004-11-22 Ravindra <rkumar@novell.com>
35466 * ThemeWin32Classic.cs: Fixed ListViewDrawing with 'UseItemStyleForSubItems'
35469 2004-11-22 Miguel de Icaza <miguel@ximian.com>
35471 * UpDownBase.cs (InitTimer): Use prehistoric C# 1.0 notation for
35474 * NumericUpDown.cs: Added new implementation.
35475 * UpDownBase.cs: Added new implementation.
35477 * XplatUIWin32.cs (KeyboardSpeed, KeyboardDelay): added default
35480 * XplatUIX11.cs (KeyboardSpeed, KeyboardDelay): added default
35483 * XplatUIDriver.cs ((KeyboardSpeed, KeyboardDelay): added new
35486 2004-11-21 Miguel de Icaza <miguel@ximian.com>
35488 * Timer.cs (Dispose): Should call the base dispose when
35491 2004-11-19 Jordi Mas i Hernandez <jordi@ximian.com>
35493 * ScrollBar.cs: updates thumb position when max, min or increment
35496 2004-11-21 Ravindra <rkumar@novell.com>
35498 * ListView.cs: Implemented item selection, activation and
35499 column header style. Fixed properties to do a redraw, if
35500 required. Added support for MouseHover, DoubleClick, KeyDown
35501 and KeyUp event handling and some minor fixes.
35502 * ListViewItem.cs: Fixed constructor.
35503 * ThemeWin32Classic.cs: Improved drawing for ListView.
35505 2004-11-19 Jordi Mas i Hernandez <jordi@ximian.com>
35507 * ThemeWin32Classic.cs: initial listbox drawing code
35508 * DrawMode.cs: new enumerator
35509 * ListControl.cs: stubbed class
35510 * ListBox.cs: initial implementation
35511 * Theme.cs: new methods definitions
35512 * SelectionMode.cs: new enumerator
35514 2004-11-17 Peter Bartok <pbartok@novell.com>
35516 * XplatUIWin32.cs: Added double-click events to the class style
35517 * Control.cs (WndProc):
35518 - Added handling of click-count to MouseDown/ MouseUp events.
35519 - Added handling of middle and right mouse buttons
35520 - Removed old debug code
35522 2004-11-17 Jackson Harper <jackson@ximian.com>
35524 * XplatUIX11.cs: Use the new Mono.Unix namespace.
35526 2004-11-17 Ravindra <rkumar@novell.com>
35528 * ListView.cs: Added event handling for MouseMove/Up/Down.
35529 * ColumnHeader.cs: Added a read-only internal property 'Pressed'.
35530 * ThemeWin32Classic.cs: We need to clear the graphics context and
35531 draw column header in a proper state.
35534 2004-11-17 Jordi Mas i Hernandez <jordi@ximian.com>
35536 * Menu.cs: fixes signature
35538 2004-11-16 Peter Bartok <pbartok@novell.com>
35540 * XplatUIX11.cs (GetMessage): Implemented generation of
35541 double click mouse messages
35543 2004-11-12 Jordi Mas i Hernandez <jordi@ximian.com>
35545 * Form.cs, MainMenu.cs, MenuAPI.cs: tracker should be for tracking session
35548 2004-11-11 Peter Bartok <pbartok@novell.com>
35550 * HandleData.cs: Added Visible property
35551 * XplatUIX11.cs (IsVisible): Now uses Visible property from
35553 * XplatUIX11.cs: Removed old debug leftovers
35554 * XplatUIX11.cs (DefWndProc): Added WM_ERASEBKGND handler
35555 * Control.cs (WndProc): Removed old debug leftovers,
35556 streamlined handling of WM_WINDOWPOSCHANGED, removed un-
35557 needed WM_SIZE handling
35559 2004-11-11 Jackson Harper <jackson@ximian.com>
35561 * OwnerDrawPropertyBag.cs:
35562 * TreeViewImageIndexConverter.cs: Initial implementation
35564 2004-11-10 Jackson Harper <jackson@ximian.com>
35566 * ThemeWin32Classic.cs:
35567 * TabControl.cs: instead of moving tabs by the slider pos just
35568 start drawing at the tab that is offset by the slider. This way
35569 scrolling always moves by exactly one tab.
35571 2004-11-10 Jackson Harper <jackson@ximian.com>
35573 * TabControl.cs: You can only scroll left when the slider has
35574 already ben moved right.
35576 2004-11-10 Jackson Harper <jackson@ximian.com>
35578 * ThemeWin32Classic.cs: Do not draw the selected tab if its not in
35581 2004-11-10 Jackson Harper <jackson@ximian.com>
35583 * ThemeWin32Classic.cs: Don't bother drawing tabs outside of the
35586 2004-11-09 Jackson Harper <jackson@ximian.com>
35588 * TabControl.cs (CalcXPos): New helper method so we can determine
35589 the proper place to start drawing vertical tabs.
35590 * ThemeWin32Classic.cs (DrawTab): Draw right aligned tabs.
35592 2004-11-09 Jackson Harper <jackson@ximian.com>
35594 * TabControl.cs: Calculate sizing and rects for left aligned tabs.
35595 * ThemeWin32Classic.cs (GetTabControl*ScrollRect): Only handle Top
35596 and Bottom, left and right are illegal values for this and
35597 multiline is enabled when the alignment is set to left or right.
35598 (DrawTab): Each alignment block should draw the text itself now
35599 because Left requires special love. Also add rendering for Left
35602 2004-11-09 Jordi Mas i Hernandez <jordi@ximian.com>
35604 * Form.cs, MainMenu.cs, MenuAPI.cs: fixes menu navigation, fixes popups,
35605 does not destroy the windows, removes debugging messages
35607 2004-11-09 jba <jba-mono@optusnet.com.au>
35609 * ThemeWin32Classic.cs
35610 (DrawButtonBase): Fix verticle text rect clipping in windows
35611 (DrawCheckBox): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
35612 rendering and incorrect text rect clipping
35613 (DrawRadioButton): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
35614 rendering and incorrect text rect clipping
35616 2004-11-08 Jackson Harper <jackson@ximian.com>
35618 * ThemeWin32Classic.cs (DrawTabControl): Render tabs from top to
35619 bottom when they are bottom aligned so the bottoms of the tabs get
35621 * TabControl.cs (DropRow): Move rows up instead of down when the
35622 tab control is bottom aligned.
35624 2004-11-08 13:59 pbartok
35627 - Added handling for various window styles
35628 - Added handling for popup windows
35629 - Added SetTopmost handling
35631 2004-11-08 13:55 pbartok
35634 - Added argument to SetTopmost method
35635 - Fixed broken ClientToScreen function
35637 2004-11-08 13:53 pbartok
35639 * XplatUIStructs.cs:
35640 - Added missing WS_EX styles
35642 2004-11-08 13:53 pbartok
35644 * XplatUI.cs, XplatUIDriver.cs:
35645 - Added argument to SetTopmost
35647 2004-11-08 13:52 pbartok
35650 - Added XSetWindowAttributes structure
35651 - Improved XWindowAttributes structure
35652 - Added SetWindowValuemask enum
35653 - Added window creation arguments enum
35654 - Added gravity enum
35655 - Added Motif hints structure
35656 - Added various Motif flags and enums
35657 - Added PropertyMode enum for property functions
35659 2004-11-08 13:50 pbartok
35662 - Fixed arguments for updated SetTopmost method
35664 2004-11-08 13:49 pbartok
35667 - Fixed arguments for updated SetTopmost function
35668 - Fixed usage of PointToClient
35670 2004-11-08 13:44 pbartok
35673 - Added Clipping of children and siblings
35675 2004-11-08 13:41 pbartok
35678 - Removed SetMenuBarWindow call. We do this in Form.cs
35680 2004-11-08 13:40 jackson
35682 * TabControl.cs, Theme.cs, ThemeWin32Classic.cs: Render the little
35683 scrolling jimmi in the correct location with bottom aligned tabs
35685 2004-11-08 13:36 pbartok
35687 * ContainerControl.cs:
35688 - Implemented BindingContext
35689 - Implemented ParentForm
35691 2004-11-08 12:46 jackson
35693 * TabControl.cs: Put bottom rendered tabs in the right location
35695 2004-11-08 07:15 jordi
35697 * ScrollBar.cs, ThemeWin32Classic.cs: fixes vertical scrollbar and
35700 2004-11-05 17:30 jackson
35702 * TabControl.cs: When selected tabs are expanded make sure they
35703 don't go beyond the edges of the tab control
35705 2004-11-05 14:57 jackson
35707 * TabControl.cs: Reset show_slider so if the control is resized to
35708 a size where it is no longer needed it's not displayed anymore
35710 2004-11-05 13:16 jackson
35712 * TabControl.cs: Make tab pages non visible when added to the
35715 2004-11-05 12:42 jackson
35717 * TabControl.cs: Implement SizeMode.FillToRight
35719 2004-11-05 12:16 jackson
35721 * Control.cs: Do not call CreateHandle if the handle is already
35724 2004-11-05 11:46 jackson
35726 * TabControl.cs: Remove superflous call to CalcTabRows
35728 2004-11-05 09:07 jackson
35730 * XplatUIX11.cs: Update for Mono.Posix changes
35732 2004-11-05 07:00 ravindra
35734 * ListView.cs, ListViewItem.cs: Implemented some methods and fixed
35737 2004-11-04 22:47 jba
35739 * ThemeWin32Classic.cs:
35740 - Fix Button rendering for FlatStyle = Flat or Popup
35741 - Fix RadioButton and CheckBox rendering when Appearance = Button
35742 (normal and flatstyle).
35743 - Correct outer rectangle color when drawing focus rectangle
35744 - Adjust button bounds to be 1 px smaller when focused
35745 - Make button not draw sunken 3d border when pushed (windows compat)
35746 - Fix CPDrawBorder3D to not make bottom right hand corner rounded
35747 - Offset the text in RadioButton and Checkbox when being rendered as
35749 - Hover and Click behaviour for Colored FlatStyle.Flat and Popup
35751 - Fixed disabled rendering for colored flatstyle radiobuttons (both)
35752 - Fixed disabled text rendering for normally rendered radiobuttons
35754 2004-11-04 10:26 jackson
35756 * TabControl.cs: Recalculate tab rows when resizing
35758 2004-11-04 07:47 jordi
35760 * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs:
35761 collection completion, drawing issues, missing features
35763 2004-11-04 05:03 ravindra
35766 - We need to recalculate the Thumb area when
35767 LargeChange/maximum/minimum values are changed.
35768 - We set the 'pos' in UpdatePos() method to minimum, if it's less
35769 than minimum. This is required to handle the case if large_change is
35770 more than max, and use LargeChange property instead of large_change
35772 - We return max+1 when large_change is more than max, like MS does.
35774 2004-11-04 04:29 ravindra
35776 * ColumnHeader.cs, ListView.cs, ListViewItem.cs:
35777 - Changed default value signatures (prefixed all with ListView).
35778 - Fixed/implemented layout LargeIcon, SmallIcon and List views for
35780 - Fixed calculations for ListViewItem and implemented Clone()
35783 2004-11-04 04:26 ravindra
35785 * Theme.cs, ThemeWin32Classic.cs:
35786 - Changed default ListView values signatures (prefixed all with
35788 - Fixed default size values for VScrollBar and HScrollBar.
35789 - Fixed DrawListViewItem method.
35791 2004-11-04 04:05 ravindra
35793 * ColumnHeaderStyle.cs: Typo. It should be Nonclickable.
35795 2004-11-04 04:04 ravindra
35797 * ImageList.cs: Implemented the missing overload for Draw method.
35799 2004-11-03 19:29 jackson
35801 * TabControl.cs: Handle dropping rows on selection properly
35803 2004-11-03 11:59 jackson
35805 * TabControl.cs: remove debug code
35807 2004-11-03 11:52 jackson
35809 * TabControl.cs, ThemeWin32Classic.cs: Initial implementation of
35810 the scrolly widgerywoo
35812 2004-11-02 13:52 jackson
35814 * TabControl.cs: Resize the tab pages and tabs when the tab control
35817 2004-11-02 13:40 jackson
35819 * TabControl.cs, ThemeWin32Classic.cs: Move the row with the
35820 selected tab to the bottom
35822 2004-11-02 13:39 jackson
35824 * TabPage.cs: Store the tab pages row
35826 2004-11-02 12:33 jordi
35828 * MenuItem.cs: fixes handle creation
35830 2004-11-02 11:42 jackson
35832 * TabControl.cs: signature fix
35834 2004-11-02 08:56 jackson
35836 * TabControl.cs: Calculate whether the tab is on an edge properly.
35837 Remove top secret debugging code
35839 2004-11-01 19:57 jackson
35841 * TabControl.cs: Add click handling, and proper sizing
35843 2004-11-01 19:47 jackson
35845 * Theme.cs, ThemeWin32Classic.cs: New rendering and sizing code for
35848 2004-11-01 19:39 jackson
35850 * TabPage.cs: add internal property to store the bounds of a tab
35853 2004-10-30 04:23 ravindra
35855 * Theme.cs, ThemeWin32Classic.cs: Drawing ListView and some default
35858 2004-10-30 04:21 ravindra
35860 * ListView.cs, ListViewItem.cs: Added support for scrolling and
35861 fixed calculations.
35863 2004-10-30 03:06 pbartok
35866 - Removed extension of DllImported libs
35868 2004-10-29 09:55 jordi
35870 * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: Menu key
35871 navigation, itemcollection completion, menu fixes
35873 2004-10-27 22:58 pbartok
35876 - Now throws a nice error message when no X display could be opened
35878 2004-10-26 13:51 jordi
35880 * ListView.cs: removes warning
35882 2004-10-26 03:55 ravindra
35884 * ColumnHeader.cs, ListView.cs, ListViewItem.cs,
35885 ThemeWin32Classic.cs: Some formatting for my last checkins.
35887 2004-10-26 03:36 ravindra
35889 * ThemeWin32Classic.cs: Implemented DetailView drawing for ListView
35890 control and default values.
35892 2004-10-26 03:35 ravindra
35894 * Theme.cs: Added some default values for ListView control.
35896 2004-10-26 03:33 ravindra
35898 * ToolBar.cs: ToolBar should use the user specified button size, if
35899 there is any. Added a size_specified flag for the same.
35901 2004-10-26 03:33 ravindra
35903 * ColumnHeader.cs: Added some internal members and calculations for
35906 2004-10-26 03:32 ravindra
35908 * ListViewItem.cs: Calculations for ListViewItem.
35910 2004-10-26 03:31 ravindra
35912 * ListView.cs: Added some internal members and calculations for
35915 2004-10-22 13:31 jordi
35917 * MenuAPI.cs: speedup menus drawing
35919 2004-10-22 13:16 jackson
35921 * XplatUIX11.cs: Make sure to update exposed regions when adding an
35924 2004-10-22 11:49 jackson
35928 2004-10-22 11:41 jackson
35930 * Control.cs: Check to see if the window should have its background
35931 repainted by X when drawing.
35933 2004-10-22 11:31 jackson
35935 * XplatUIX11.cs: When invalidating areas only use XClearArea if
35936 clear is true, this way we do not get flicker from X repainting the
35939 2004-10-22 11:28 jackson
35941 * XEventQueue.cs: Queue properly
35943 2004-10-21 09:38 jackson
35945 * XEventQueue.cs: Fix access modifier
35947 2004-10-21 09:36 jackson
35949 * XEventQueue.cs: Don't loose messages
35951 2004-10-21 09:22 jackson
35953 * XEventQueue.cs: Don't loose messages
35955 2004-10-20 04:15 jordi
35957 * BootMode.cs: enum need it by SystemInfo
35959 2004-10-19 21:58 pbartok
35962 - Small sanity check
35964 2004-10-19 21:56 pbartok
35967 - Added private FormParentWindow class which acts as the container
35968 for our form and as the non-client area where menus are drawn
35969 - Added/Moved required tie-ins to Jordi's menus
35970 - Fixed/Implemented the FormStartPosition functionality
35972 2004-10-19 21:52 pbartok
35975 - Removed unneeded locals
35976 - Added code to all size and location properties to understand and
35977 deal with the parent container of Form
35979 2004-10-19 21:33 pbartok
35982 - Fixed to deal with new Form subclasses for menus
35984 2004-10-19 17:48 jackson
35986 * XEventQueue.cs: commit correct version of file
35988 2004-10-19 16:50 jackson
35990 * XEventQueue.cs, XplatUIX11.cs: New optimized event queue
35992 2004-10-19 16:15 jordi
35994 * MenuAPI.cs: MenuBarCalcSize returns the height
35996 2004-10-19 08:31 pbartok
35999 - Added missing call to PreProcessMessage before calling OnXXXKey
36002 2004-10-19 00:04 ravindra
36004 * ToolTip.cs: Fixed constructor.
36006 2004-10-18 09:31 jordi
36008 * MenuAPI.cs: menuitems in menubars do not have shortcuts
36010 2004-10-18 09:26 jordi
36012 * MenuItem.cs: fixes MenuItem class signature
36014 2004-10-18 08:56 jordi
36016 * MenuAPI.cs: prevents windows from showing in the taskbar
36018 2004-10-18 00:28 ravindra
36020 * ToolTip.cs: Suppressed a warning message.
36022 2004-10-18 00:27 ravindra
36024 * Control.cs: Default value of visible property must be true.
36026 2004-10-17 23:19 pbartok
36029 - Complete implementation
36031 2004-10-17 23:19 pbartok
36034 - Added EnableWindow method
36035 - Added SetModal stub
36036 - Added generation of WM_ACTIVATE message (still needs testing)
36037 - Added SetTopMost stub
36038 - Changes to deal with VirtualKeys being moved to XplatUIStructs.cs
36040 2004-10-17 23:17 pbartok
36043 - Removed VirtualKeys to XplatUIStructs
36044 - Implemented SetTopMost method
36045 - Implemented EnableWindow method
36046 - Bugfix in ScreenToClient()
36047 - Bugfixes in ClientToScreen()
36049 2004-10-17 22:51 pbartok
36051 * XplatUIStructs.cs:
36052 - Added WS_EX styles to WindowStyles enumeration
36054 2004-10-17 22:50 pbartok
36056 * XplatUI.cs, XplatUIDriver.cs:
36057 - Added method for enabling/disabling windows
36058 - Added method for setting window modality
36059 - Added method for setting topmost window
36061 2004-10-17 22:49 pbartok
36063 * ThemeWin32Classic.cs:
36064 - Added ToolTip drawing code
36066 2004-10-17 22:49 pbartok
36069 - Added ToolTip abstracts
36071 2004-10-17 22:47 pbartok
36074 - Fixed Form.ControlCollection to handle owner relations
36075 - Added Owner/OwnedForms handling
36076 - Implemented Z-Ordering for owned forms
36077 - Removed unneeded private overload of ShowDialog
36078 - Fixed ShowDialog, added the X11 incarnation of modal handling (or
36080 - Fixed Close(), had wrong default
36081 - Added firing of OnLoad event
36082 - Added some commented out debug code for Ownership handling
36084 2004-10-17 22:16 pbartok
36087 - Fixed/implemented flat list of controls
36089 2004-10-17 22:14 pbartok
36092 - Added code to simulate modal dialogs on Win32
36094 2004-10-17 16:11 jordi
36096 * ScrollBar.cs: disabled scrollbar should not honor any keyboard or
36099 2004-10-17 13:39 jordi
36101 * MenuAPI.cs: menu drawing fixes
36103 2004-10-15 09:10 ravindra
36105 * StructFormat.cs: General Enum.
36107 2004-10-15 09:09 ravindra
36109 * SizeGripStyle.cs: Enum for Form.
36111 2004-10-15 09:08 ravindra
36113 * Theme.cs, ThemeWin32Classic.cs: Added ColumnHeaderHeight property
36114 in Theme for ListView.
36116 2004-10-15 09:06 ravindra
36118 * ColumnHeader.cs: Flushing some formatting changes.
36120 2004-10-15 09:05 ravindra
36122 * ListViewItem.cs: Implemented GetBounds method and fixed coding
36125 2004-10-15 09:03 ravindra
36127 * ListView.cs: Implemented Paint method and fixed coding style.
36129 2004-10-15 07:34 jordi
36131 * MenuAPI.cs: fix for X11
36133 2004-10-15 07:32 ravindra
36135 * ButtonBase.cs, CheckBox.cs, RadioButton.cs:
36136 - Renamed Paint() method to Draw() for clarity. Also, moved
36137 DrawImage() to OnPaint().
36139 2004-10-15 07:25 ravindra
36141 * CheckBox.cs, RadioButton.cs:
36142 - Removed Redraw (), we get it from ButtonBase.
36143 - Implemented Paint (), to do class specific painting.
36145 2004-10-15 07:16 ravindra
36148 - Redraw () is not virtual now.
36149 - Added an internal virtual method Paint (), so that
36150 derived classes can do their painting on their own.
36151 - Modified OnPaint () to call Paint ().
36153 2004-10-15 06:43 jordi
36155 * ContextMenu.cs, DrawItemEventHandler.cs, Form.cs, MainMenu.cs,
36156 MenuAPI.cs, MenuItem.cs: menu work, mainmenu, subitems, etc
36158 2004-10-15 00:30 ravindra
36161 - MessageBox on windows does not have min/max buttons.
36162 This change in CreateParams fixes this on Windows. We
36163 still need to implement this windowstyle behavior in
36166 2004-10-14 05:14 ravindra
36169 - Changed Redraw () to do a Refresh () always.
36170 - Fixed the MouseMove event handling when mouse is pressed,
36171 ie drag event handling.
36172 - Replaced the usage of ToolBarButton.Pressed property to
36173 ToolBarButton.pressed internal variable.
36175 2004-10-14 05:10 ravindra
36177 * ToolBarButton.cs:
36178 - Added an internal member 'inside' to handle mouse move
36179 with mouse pressed ie mouse drag event.
36180 - Changed 'Pressed' property to return true only when
36181 'inside' and 'pressed' are both true.
36182 - Some coding style love.
36184 2004-10-14 00:17 ravindra
36186 * Form.cs: Fixed class signature. ShowDialog (Control) is not a
36189 2004-10-14 00:15 ravindra
36191 * ButtonBase.cs: Redraw () related improvements.
36193 2004-10-14 00:14 ravindra
36195 * MessageBox.cs: Moved InitFormSize () out of Paint method and
36196 removed unnecessary calls to Button.Show () method.
36198 2004-10-13 17:50 pbartok
36202 - Removed destroying of window until we solve the problem of X
36203 destroying the window before us on shutdown
36205 2004-10-13 16:32 pbartok
36208 - Now Redraws on MouseUp for FlatStyle Flat and Popup
36210 2004-10-13 14:18 pbartok
36213 - Added code to destroy the X window
36215 2004-10-13 14:18 pbartok
36218 - Added code to destroy a window
36220 2004-10-13 14:12 pbartok
36223 - Added the Redraw on Resize that got dropped in the last rev
36225 2004-10-13 09:06 pbartok
36227 * ThemeWin32Classic.cs:
36228 - Path from John BouAntoun:
36229 * Fix check rendering (centre correctly for normal style, offset
36230 correctly for FlatStyle).
36231 * Fix border color usage (use backcolor) for FlatStyle.Popup
36232 * Use checkbox.Capture instead of checkbox.is_pressed when
36233 rendering flatstyle states.
36235 2004-10-12 21:48 pbartok
36237 * ThemeWin32Classic.cs:
36238 - Removed all occurences of SystemColors and replaced them with the
36239 matching theme color
36241 2004-10-12 21:41 pbartok
36243 * ThemeWin32Classic.cs:
36244 - From John BouAntoun: Added an overload to CPDrawBorder3D to allow
36245 him using the function for flatstyle drawing
36246 - Changed functions to use the new version of CPDrawBorder3D
36248 2004-10-12 21:15 pbartok
36251 - Fixed Dark(), DarkDark(), Light() and LightLight() methods to
36252 match MS documentation. They need to return defined colors if the
36253 passed color matches the configured control color. Thanks to John
36254 BouAntoun for pointing this out.
36256 2004-10-12 20:57 pbartok
36259 - Fix from John BouAntoun: Raise ForeColorChanged event when text
36262 2004-10-12 20:46 pbartok
36265 - Fix from John BouAntoun: Now properly sets the Appearance property
36267 2004-10-12 20:45 pbartok
36269 * ThemeWin32Classic.cs:
36270 - Fixes from John BouAntoun: now handles forecolors and backcolors
36271 for flatstyle rendered controls much better; It also fixes normal
36272 checkbox rendering when pushed or disabled.
36274 2004-10-08 02:50 jordi
36276 * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: more menu
36279 2004-10-07 08:56 jordi
36281 * ThemeWin32Classic.cs: Removes deletion of cached brushes
36283 2004-10-06 03:59 jordi
36285 * Control.cs, StatusBar.cs, ThemeWin32Classic.cs, ToolBar.cs,
36286 XplatUIWin32.cs: removes warnings from compilation
36288 2004-10-05 12:23 jackson
36290 * RadioButton.cs: Fix ctor
36292 2004-10-05 11:10 pbartok
36295 - Partial implementation by Benjamin Dasnois
36297 2004-10-05 10:15 jackson
36299 * ThemeWin32Classic.cs: Improve rendering of the radio button patch
36302 2004-10-05 03:07 ravindra
36305 - Removed a private method, Draw ().
36306 - Fixed the ButtonDropDown event handling.
36307 - Fixed MouseMove event handling.
36309 2004-10-05 03:04 ravindra
36311 * ThemeWin32Classic.cs:
36312 - Added DrawListView method and ListViewDefaultSize property.
36313 - Changed ControlPaint method calls to CPDrawXXX wherever possible.
36314 - Changed DOS style CRLF to Unix format (dos2unix).
36316 2004-10-05 03:03 ravindra
36319 - Added DrawListView method and ListViewDefaultSize property.
36321 2004-10-05 02:42 ravindra
36323 * ToolBarButton.cs: Added an internal member dd_pressed to handle
36324 clicks on DropDown arrow.
36326 2004-10-04 22:56 jackson
36328 * ButtonBase.cs, Label.cs, MenuAPI.cs, ProgressBar.cs,
36329 ScrollBar.cs, StatusBar.cs, ToolBar.cs, TrackBar.cs: Let the base
36330 Control handle the buffers, derived classes should not have to
36331 CreateBuffers themselves.
36333 2004-10-04 21:20 jackson
36335 * StatusBar.cs: The control handles resizing the buffers now.
36337 2004-10-04 21:18 jackson
36339 * Control.cs: When resizing the buffers should be invalidated. This
36340 should be handled in Control not in derived classes.
36342 2004-10-04 14:45 jackson
36346 2004-10-04 02:14 pbartok
36348 * LeftRightAlignment.cs:
36351 2004-10-04 01:09 jordi
36353 * ThemeWin32Classic.cs: fixes right button position causing right
36354 button not showing on horizontal scrollbars
36356 2004-10-02 13:12 pbartok
36359 - Simplified the Invalidate method by using an X call instead of
36360 generating the expose ourselves
36361 - Added an expose when the window background is changed
36362 - Implemented ClientToScreen method
36364 2004-10-02 13:08 pbartok
36367 - Added Win32EnableWindow method (test for implementing modal
36369 - Added ClientToScreen method and imports
36371 2004-10-02 13:07 pbartok
36373 * XplatUI.cs, XplatUIDriver.cs:
36374 - Added ClientToScreen coordinate translation method
36376 2004-10-02 13:06 pbartok
36378 * KeyPressEventArgs.cs:
36379 - Fixed access level for constructor
36381 2004-10-02 13:06 pbartok
36384 - Changed access level for the window_collection hash table
36386 2004-10-02 13:05 pbartok
36389 - Added KeyPreview property
36390 - Added Menu property (still incomplete, pending Jordi's menu work)
36391 - Implemented ProcessCmdKey
36392 - Implemented ProcessDialogKey
36393 - Implemented ProcessKeyPreview
36395 2004-10-02 13:02 pbartok
36398 - Added private method to get the Control object from the window
36400 - Implemented ContextMenu property
36401 - Implemented PointToScreen
36402 - Implemented PreProcessMessage
36403 - Implemented IsInputChar
36404 - Implemented IsInputKey
36405 - Implemented ProcessCmdKey
36406 - Completed ProcessKeyEventArgs
36407 - Fixed message loop to call the proper chain of functions on key
36409 - Implemented ProcessDialogChar
36410 - Implemented ProcessDialogKey
36411 - Implemented ProcessKeyMessage
36412 - Implemented ProcessKeyPreview
36413 - Added RaiseDragEvent stub (MS internal method)
36414 - Added RaiseKeyEvent stub (MS internal method)
36415 - Added RaiseMouseEvent stub (MS Internal method)
36416 - Added RaisePaintEvent stub (MS Internal method)
36417 - Added ResetMouseEventArgs stub (MS Internal method)
36418 - Implemented RtlTranslateAlignment
36419 - Implemented RtlTranslateContent
36420 - Implemented RtlTranslateHorizontal
36421 - Implemented RtlTranslateLeftRight
36422 - Added generation of KeyPress event
36424 2004-10-02 05:57 ravindra
36426 * ListViewItem.cs: Added attributes.
36428 2004-10-02 05:32 ravindra
36430 * ListView.cs: Added attributes.
36432 2004-10-01 11:53 jackson
36434 * Form.cs: Implement the Close method so work on MessageBox can
36437 2004-09-30 14:06 pbartok
36442 2004-09-30 11:34 jackson
36444 * RadioButton.cs: Fix typo. Patch by John BouAntoun.
36446 2004-09-30 07:26 ravindra
36448 * ListViewItemConverter.cs: Converter for ListViewItem.
36450 2004-09-30 07:26 ravindra
36452 * SortOrder.cs: Enum for ListView control.
36454 2004-09-30 07:25 ravindra
36456 * ColumnHeader.cs: Supporting class for ListView control.
36458 2004-09-30 07:24 ravindra
36460 * ListView.cs, ListViewItem.cs: Initial implementation.
36462 2004-09-30 07:20 ravindra
36464 * ItemActivation.cs: Enum for ListView Control.
36466 2004-09-29 20:29 pbartok
36469 - Added lookup of pixel value for background color; tries to get a
36470 color 'close' to the requested color, it avoids having to create a
36471 colormap. Depending on the display this could mean the used color
36472 is slightly off the desired color. Might have to change it to a more
36473 resource intensive colormap approach, but it will work as a
36474 workaround to avoid red screens.
36476 2004-09-29 14:27 jackson
36478 * XplatUIX11.cs: Set the X DisplayHandle in System.Drawing
36480 2004-09-28 12:44 pbartok
36482 * ButtonBase.cs, CheckBox.cs, ControlPaint.cs, GroupBox.cs,
36483 HScrollBar.cs, Label.cs, LinkLabel.cs, Panel.cs, PictureBox.cs,
36484 ProgressBar.cs, RadioButton.cs, ScrollBar.cs, StatusBar.cs,
36485 Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs, ToolBar.cs,
36486 TrackBar.cs, VScrollBar.cs:
36487 - Streamlined Theme interfaces:
36488 * Each DrawXXX method for a control now is passed the object for
36489 the control to be drawn in order to allow accessing any state the
36490 theme might require
36492 * ControlPaint methods for the theme now have a CP prefix to avoid
36493 name clashes with the Draw methods for controls
36495 * Every control now retrieves it's DefaultSize from the current
36498 2004-09-28 12:17 jackson
36500 * Button.cs: Do not redraw OnClick MouseUp/Down will handle the
36503 2004-09-24 14:57 jackson
36505 * XplatUIX11.cs: Don't lock/enqueue/dequeue for unhandled messages.
36506 Gives us a nice little performance boost.
36508 2004-09-24 12:02 jackson
36510 * TabAlignment.cs, TabAppearance.cs, TabControl.cs, TabDrawMode.cs,
36511 TabPage.cs, TabSizeMode.cs: Partial implementation of the Tab
36512 Control and supporting classes. Initial checkin
36514 2004-09-23 13:08 jackson
36516 * Form.cs: Temp build fixage
36518 2004-09-23 01:39 ravindra
36520 * ItemChangedEventArgs.cs, ItemChangedEventHandler.cs,
36521 ItemCheckEventArgs.cs, ItemCheckEventHandler.cs,
36522 ItemDragEventArgs.cs, ItemDragEventHandler.cs,
36523 LabelEditEventArgs.cs, LabelEditEventHandler.cs: EventArgs and
36524 EventHandlers needed by ListView Control.
36526 2004-09-22 14:12 pbartok
36528 * ScrollableControl.cs:
36529 - Implemented DockPadding property
36530 - Implemented AutoScroll property
36531 - Implemented AutoScrollMargin property
36532 - Implemented AutoScrollMinSize property
36533 - Implemented AutoScrollPosition property
36534 - Implemented DisplayRectangle property (still incomplete)
36535 - Implemented CreateParams property
36536 - Implemented HScroll property
36537 - Implemented VScroll property
36538 - Implemented OnVisibleChanged property
36540 2004-09-22 14:09 pbartok
36543 - Added Form.ControllCollection class
36544 - Added handling for Form owners: Owner, OwnedForms, AddOwnedForm,
36545 RemoveOwnedForm (still incomplete, missing on-top and common
36546 minimize/maximize behaviour)
36547 - Added StartPosition property (still incomplete, does not use when
36549 - Added ShowDialog() methods (still incomplete, missing forcing the
36552 2004-09-22 14:05 pbartok
36555 - Added message loop for modal dialogs
36557 2004-09-22 14:02 pbartok
36560 - Fixed wrong types for events
36562 2004-09-22 14:00 pbartok
36564 * Shortcut.cs, FormWindowState.cs:
36565 - Fixed wrong values
36567 2004-09-22 12:01 jackson
36569 * Control.cs: Text is never null
36571 2004-09-20 22:14 pbartok
36574 - Fixed accessibility level for Idle handler
36576 2004-09-20 18:54 jackson
36578 * Application.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
36579 XplatUIX11.cs: New message loop that uses poll so we don't get a
36582 2004-09-17 10:43 pbartok
36585 - Fixed behaviour of arrow buttons. Now properly behaves like
36586 Buttons (and like Microsoft's scrollbar arrow buttons)
36588 2004-09-17 10:14 pbartok
36591 - Added missing release of keyboard/mouse capture
36593 2004-09-17 06:18 jordi
36595 * ContextMenu.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs,
36596 Theme.cs: Very early menu support
36598 2004-09-16 17:45 pbartok
36601 - Fixed sending a window to the front
36602 - Added overload for SetWindowPos to avoid casting
36604 2004-09-16 17:44 pbartok
36607 - Added SendToBack and BringToFront methods
36609 2004-09-16 07:00 ravindra
36611 * Copyright: Added Novell URL.
36613 2004-09-16 07:00 ravindra
36615 * ToolBar.cs: Invalidate should be done before redrawing.
36617 2004-09-15 21:19 ravindra
36619 * ColumnHeaderStyle.cs: Enum for ListView Control.
36621 2004-09-15 21:18 ravindra
36623 * ColumnClickEventArgs.cs, ColumnClickEventHandler.cs: Event for
36626 2004-09-13 18:26 jackson
36628 * Timer.cs, XplatUIX11.cs: Remove test code so timers are updated
36631 2004-09-13 18:13 jackson
36633 * Timer.cs, X11Structs.cs, XplatUIX11.cs: Timers are now handled in
36634 a second thread and post messages into the main threads message
36635 queue. This makes timing much more consistent. Both win2K and XP
36636 have a minimum timer value of 15 milliseconds, so we now do this
36639 2004-09-13 15:18 pbartok
36641 * X11Structs.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
36643 - Added Z-Ordering methods
36645 2004-09-13 10:56 pbartok
36648 - Fixed #region names
36649 - Moved properties and methods into their proper #regions
36651 2004-09-13 10:51 pbartok
36654 - Added Accept and CancelButton properties
36655 - Added ProcessDialogKey() method
36657 2004-09-13 08:18 pbartok
36659 * IWindowTarget.cs:
36662 2004-09-10 21:50 pbartok
36665 - Added DoDragDrop() [incomplete]
36666 - Properly implemented 'Visible' handling
36667 - Added SetVisibleCore()
36668 - Implemented FindChildAtPoint()
36669 - Implemented GetContainerControl()
36670 - Implemented Hide()
36672 2004-09-10 19:28 pbartok
36675 - Moved methods into their appropriate #regions
36676 - Reordered methods within regions alphabetically
36678 2004-09-10 18:57 pbartok
36680 * XplatUIX11.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
36681 - Added method to retrieve text from window
36683 2004-09-10 18:56 pbartok
36686 - Moved some internal functions into the internal region
36687 - Implemented FontHeight
36688 - Implemented RenderRightToLeft
36689 - Implemented ResizeRedraw
36690 - Implemented ShowFocusCues
36691 - Implemented ShowKeyboardCues
36692 - Implemented FromChildHandle
36693 - Implemented FromHandle
36694 - Implemented IsMnemonic
36695 - Implemented ReflectMessage
36696 - All public and protected Static Methods are now complete
36698 2004-09-10 16:54 pbartok
36701 - Implemented remaining missing public instance properties
36702 - Alphabetized some out of order properties
36704 2004-09-10 05:51 ravindra
36706 * PictureBox.cs: Added a check for null image.
36708 2004-09-10 00:59 jordi
36710 * GroupBox.cs: remove cvs tag
36712 2004-09-09 05:25 ravindra
36714 * ToolBar.cs: Make redraw accessible from ToolBarButton.
36716 2004-09-09 05:23 ravindra
36718 * ToolBarButton.cs: Changes in ToolBarButton need to make it's
36721 2004-09-09 02:28 pbartok
36723 * ThemeWin32Classic.cs:
36724 - Improve disabled string look
36726 2004-09-09 01:15 jordi
36728 * MeasureItemEventArgs.cs, MeasureItemEventHandler.cs: measureitem
36731 2004-09-08 23:56 ravindra
36733 * ItemBoundsPortion.cs: It's enum, not a class!
36735 2004-09-08 23:47 ravindra
36737 * FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs:
36740 2004-09-08 21:13 ravindra
36742 * ItemBoundsPortion.cs, ListViewAlignment.cs, View.cs: Enums for
36745 2004-09-08 21:03 ravindra
36747 * ThemeWin32Classic.cs: PictureBox would not draw a null image to
36750 2004-09-08 21:01 ravindra
36752 * ScrollableControl.cs: Removed unreachable code.
36754 2004-09-08 06:45 jordi
36756 * MenuMerge.cs, Shortcut.cs: enumerations need it by menus
36758 2004-09-08 01:00 jackson
36760 * XplatUIX11.cs: Only run the timers when updating the message
36761 queue. This effectively gives X messages a higher priority then
36762 timer messages. Timers still need love though
36764 2004-09-07 14:01 jackson
36766 * XplatUIX11.cs: Do not call XDestroyWindow, X has already done
36767 this for us and the handle is no longer valid.
36769 2004-09-07 13:59 jackson
36771 * HandleData.cs, XplatUIX11.cs: First steps towards a new X event
36772 loop that manages to not crash. TODO: Add poll and cleanup timers
36774 2004-09-07 11:12 jordi
36776 * GroupBox.cs, Theme.cs, ThemeWin32Classic.cs: GroupBox control
36778 2004-09-07 03:40 jordi
36780 * Label.cs, LinkLabel.cs, Theme.cs, ThemeWin32Classic.cs: LinkLabel
36781 fixes, methods, multiple links
36783 2004-09-06 06:55 jordi
36785 * Control.cs: Caches ClientRectangle rectangle value
36787 2004-09-05 02:03 jordi
36789 * ScrollBar.cs, ThemeWin32Classic.cs: fixes bugs, adds flashing on
36792 2004-09-04 11:10 jordi
36794 * Label.cs: Refresh when font changed
36796 2004-09-02 16:24 pbartok
36799 - Added sanity check to creation of double buffer bitmap
36801 2004-09-02 16:24 pbartok
36804 - Fixed selection of text color
36805 - Fixed handling of resize event; now properly recreates double
36807 - Added missing assignment of TextAlignment
36808 - Added proper default for TextAlignment
36810 2004-09-02 14:26 pbartok
36813 - Added missing RadioButton.RadioButtonAccessibleObject class
36815 2004-09-02 14:26 pbartok
36818 - Added missing Control.ControlAccessibleObject class
36819 - Started to implement Select()ion mechanisms, still very incomplete
36821 2004-09-02 14:25 pbartok
36823 * AccessibleObject.cs:
36824 - Added missing methods
36826 2004-09-02 14:23 pbartok
36828 * AccessibleNavigation.cs, AccessibleSelection.cs:
36831 2004-09-02 10:32 jordi
36833 * Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: implements resource
36834 pool for pens, brushes, and hatchbruses
36836 2004-09-01 15:30 jackson
36838 * StatusBar.cs: Fix typo
36840 2004-09-01 14:44 pbartok
36845 2004-09-01 14:39 pbartok
36847 * Button.cs, RadioButton.cs:
36848 - Functional initial check-in
36850 2004-09-01 14:01 pbartok
36853 - Added missing default
36854 - Added missing region mark
36856 2004-09-01 09:10 jordi
36858 * Label.cs: fixes method signatures, new methods, events, fixes
36861 2004-09-01 07:19 jordi
36863 * Control.cs: Init string variables with an empty object
36865 2004-09-01 04:20 jordi
36867 * Control.cs: fires OnFontChanged event
36869 2004-08-31 20:07 pbartok
36872 - Enabled display of strings
36874 2004-08-31 20:05 pbartok
36877 - Added (partial) implementation of DialogResult; rest needs to be
36878 implemented when the modal loop code is done
36880 2004-08-31 19:55 pbartok
36883 - Fixed to match the removal of the needs_redraw concept
36885 2004-08-31 19:55 pbartok
36888 - Removed the rather odd split between 'needs redraw' and redrawing
36889 - Now handles the events that require regeneration (ambient
36890 properties and size)
36892 2004-08-31 19:41 pbartok
36895 - Added firing of BackColorChanged event
36896 - Added TopLevelControl property
36897 - Fixed handling of WM_ERASEBKGRND message
36899 2004-08-31 12:49 pbartok
36905 2004-08-31 12:48 pbartok
36908 - Finished (famous last words)
36910 2004-08-31 04:35 jordi
36912 * ScrollBar.cs: adds autorepeat timer, uses a single timer, fixes
36913 scrolling bugs, adds new methods
36915 2004-08-30 14:42 pbartok
36918 - Implemented CheckBox drawing code
36920 2004-08-30 14:42 pbartok
36923 - Made Redraw() and CheckRedraw() virtual
36924 - Improved mouse up/down/move logic to properly track buttons
36926 2004-08-30 09:44 pbartok
36929 - Updated to fix broken build. Not complete yet.
36931 2004-08-30 09:28 pbartok
36936 2004-08-30 09:17 pbartok
36941 2004-08-27 16:12 ravindra
36943 * ToolBarButton.cs: Added TypeConverter attribute.
36945 2004-08-27 16:07 ravindra
36947 * ImageIndexConverter.cs: Implemented.
36949 2004-08-27 14:17 pbartok
36952 - Removed unneeded stack vars
36953 - First attempt to fix sizing issues when layout is suspended
36955 2004-08-25 15:35 jordi
36957 * ScrollBar.cs: more fixes to scrollbar
36959 2004-08-25 14:04 ravindra
36961 * Theme.cs, ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs:
36962 Added the missing divider code and grip for ToolBar Control.
36964 2004-08-25 13:20 pbartok
36967 - Control now properly passes the ambient background color to child
36970 2004-08-25 13:20 jordi
36972 * ScrollBar.cs: small bug fix regarding bar position
36974 2004-08-25 12:33 pbartok
36977 - Now only calls SetTimer or KillTimer if the enabled state has
36980 2004-08-25 12:33 pbartok
36983 - Fixed timer handling, now seems to work
36984 - Improved error message for window creation
36986 2004-08-25 12:32 pbartok
36989 - Fixed generation of MouseUp message
36991 2004-08-25 12:29 jordi
36993 * ProgressBar.cs, ThemeWin32Classic.cs: new methods, properties,
36994 and fixes for progressbar
36996 2004-08-24 18:43 ravindra
36998 * ThemeWin32Classic.cs, ToolBar.cs: Fixed wrapping related issues
36999 in ToolBar control.
37001 2004-08-24 17:15 pbartok
37005 - Added missing events
37008 2004-08-24 17:14 pbartok
37010 * StatusBar.cs, PictureBox.cs:
37011 - Now uses Control's CreateParams
37013 2004-08-24 16:36 pbartok
37016 - Fixed background color handling
37017 - Fixed sending of enter/leave events on a grab
37019 2004-08-24 16:35 pbartok
37022 - Refined definitions for CrossingEvent
37024 2004-08-24 12:37 jordi
37026 * ScrollBar.cs, Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: fixes
37027 formmating, methods signature, and adds missing events
37029 2004-08-24 12:24 jordi
37031 * Control.cs: fire OnEnabledChanged event
37033 2004-08-24 11:17 pbartok
37036 - Implemented SetTimer() and KillTimer()
37038 2004-08-24 11:16 pbartok
37041 - Now uses Remove instead of Add to kill the timer
37043 2004-08-24 10:16 jackson
37045 * PictureBox.cs, Theme.cs, ThemeWin32Classic.cs: Handle drawing
37046 picture boxes in the theme now. Draw picture box borders and obey
37049 2004-08-24 05:49 jackson
37051 * Timer.cs: Remove top secret debugging code
37053 2004-08-24 05:34 jackson
37055 * PictureBox.cs: Temp hack to make picture boxes draw their full
37058 2004-08-24 05:29 jackson
37060 * Timer.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
37061 XplatUIX11.cs: Move timers to the driver level. On X they are
37062 queued by the driver and checked on idle.
37064 2004-08-24 01:07 jackson
37066 * XplatUIX11.cs: Use a queue for async messages instead of passing
37067 them as ClientMessages since that was totally broken. Also simply
37068 check for events and return an idle message if none are found. This
37069 gives us an idle handler, and prevents deadlocking when no messages
37072 2004-08-23 18:19 ravindra
37074 * XplatUIWin32.cs: Removed the unwanted destructor.
37076 2004-08-23 17:27 pbartok
37079 - Finishing touches. Works now, just needs some optimizations.
37081 2004-08-23 16:53 jordi
37083 * ScrollBar.cs: small fix
37085 2004-08-23 16:45 pbartok
37088 - Removed debug output
37091 2004-08-23 16:43 jordi
37093 * ScrollBar.cs: [no log message]
37095 2004-08-23 16:10 pbartok
37098 - Fixed handling of WM_CLOSE message
37099 - Removed debug output
37101 2004-08-23 16:09 pbartok
37104 - Added handling of Idle event
37105 - Added handling of form closing
37106 - Fixed reporting of MessageLoop property
37107 - Removed some unneeded code, should provide a bit of a speedup
37109 2004-08-23 15:22 pbartok
37112 - Added InitLayout() method
37113 - Added code to properly perform layout when Anchor or Dock property
37115 - Changed 'interpretation' of ResumeLayout. MS seems to have a
37116 LAMESPEC, tried to do it in a way that makes sense
37118 2004-08-23 14:10 jordi
37120 * HScrollBar.cs, ScrollBar.cs, TrackBar.cs, VScrollBar.cs: fixes
37121 properties and methods
37123 2004-08-23 13:55 pbartok
37126 - Properly fixed Jordi's last fix
37127 - Now uses Cursor's Position property instead of calling XplatUI
37130 2004-08-23 13:44 jordi
37132 * PaintEventHandler.cs: Adding missing attribute
37134 2004-08-23 13:39 pbartok
37137 - Implemented Position property
37139 2004-08-23 13:39 pbartok
37141 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
37142 - Added method to move mouse cursor
37144 2004-08-23 13:39 pbartok
37147 - Fixed setting of background color
37148 - Added method to move mouse cursor
37150 2004-08-23 13:16 jordi
37152 * Control.cs: avoids null exception
37154 2004-08-22 17:46 jackson
37156 * PictureBox.cs, PictureBoxSizeMode.cs: Initial implementation of
37159 2004-08-22 17:40 jackson
37161 * XplatUIX11.cs: Add some missing locks
37163 2004-08-22 15:10 pbartok
37165 * Control.cs, Form.cs:
37166 - Removed OverlappedWindow style from Control, instead it's default
37168 - Made form windows OverlappedWindow by default
37170 2004-08-22 13:34 jackson
37172 * ScrollBar.cs: Update the position through the Value property so
37173 the OnValueChanged event is raised.
37175 2004-08-22 12:04 pbartok
37178 - Added Cursor.cs and UserControl.cs
37180 2004-08-22 12:03 pbartok
37183 - Started implementation, not usable yet
37185 2004-08-22 12:00 pbartok
37188 - Implemented UserControl (complete)
37190 2004-08-21 19:20 ravindra
37192 * ToolBar.cs: Correcting the formatting mess of VS.NET.
37194 2004-08-21 18:49 ravindra
37196 * ToolBar.cs: Probably this completes the missing attributes in
37199 2004-08-21 18:03 ravindra
37201 * ToolBar.cs, ToolBarButton.cs, ToolBarButtonClickEventArgs.cs:
37202 Fixed toolbar control signatures.
37204 2004-08-21 16:32 pbartok
37209 2004-08-21 16:30 pbartok
37214 2004-08-21 16:19 pbartok
37216 * Control.cs, Label.cs:
37219 2004-08-21 15:57 pbartok
37222 - Added loads of debug output for development
37223 - Fixed typo in method name
37225 2004-08-21 15:52 pbartok
37227 * ToolBarButtonClickEventArgs.cs:
37228 - Added missing base class
37230 2004-08-21 14:53 pbartok
37233 - Updated to match new GrabWindow signature
37235 2004-08-21 14:51 pbartok
37237 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
37238 - Added method to get default display size
37240 2004-08-21 14:23 pbartok
37242 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
37243 - Added method to query current grab state
37244 - Added argument to allow confining a grab to a window
37246 2004-08-21 14:22 pbartok
37249 - Added [Flags] attribute so that modifiers can be used in bitwise
37252 2004-08-21 14:21 pbartok
37254 * TrackBar.cs, ScrollBar.cs:
37255 - Replaced direct XplatUI calls with their Control counterpart
37257 2004-08-21 13:32 pbartok
37260 - Implemented Created property
37262 2004-08-21 13:28 pbartok
37265 - Implemented ContainsFocus
37267 2004-08-21 13:26 pbartok
37270 - Implemented CausesValidation
37272 2004-08-21 13:21 pbartok
37275 - Implemented CanFocus
37276 - Implemented CanSelect
37277 - Implemented Capture
37279 2004-08-21 12:35 pbartok
37282 - Fixed bug with Async message handling
37283 - Implemented getting the ModifierKeys
37285 2004-08-21 12:32 jackson
37287 * AsyncMethodResult.cs: Make sure we have the mutex before we
37288 release it. Fixes BeginInvoke on windows
37290 2004-08-21 11:31 pbartok
37292 * XplatUIWin32.cs, XplatUIX11.cs:
37293 - Drivers now return proper mouse state
37295 2004-08-21 10:54 jackson
37297 * Control.cs: Implement EndInvoke
37299 2004-08-21 10:48 jackson
37301 * Timer.cs: Remove unneeded finalizer
37303 2004-08-20 19:52 ravindra
37305 * ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs: Improvments
37306 in mouse event handling in the ToolBar control.
37308 2004-08-20 19:50 ravindra
37310 * ImageList.cs: Changed draw method to use the arguments passed in
37313 2004-08-20 18:58 pbartok
37315 * XplatUIStructs.cs:
37316 - Added private message for async communication
37318 2004-08-20 17:38 ravindra
37320 * Control.cs: Made RightToLeft property virtual and removed a
37323 2004-08-20 14:39 jordi
37325 * ThemeGtk.cs: use style_attach
37327 2004-08-20 14:39 pbartok
37330 - Added jackson's Async code from X11 to Win32
37332 2004-08-20 14:09 pbartok
37335 - Added all new files
37337 2004-08-20 14:09 pbartok
37340 - Added call to set window background color
37342 2004-08-20 14:03 pbartok
37344 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
37345 - Added method for setting the window background
37347 2004-08-20 14:02 pbartok
37350 - Added method for setting the background color
37351 - Added handling for erasing the window background
37353 2004-08-20 13:45 jordi
37355 * TrackBar.cs: fixes timer, new properties and methods
37357 2004-08-20 13:34 jackson
37359 * ScrollBar.cs: Use the SWF timer so callbacks are run in the
37362 2004-08-20 13:22 jackson
37364 * Timer.cs: Timer Tick events are now handed through Controls Async
37365 mechanism so the callbacks are executed in the same thread as X
37367 2004-08-20 13:19 jackson
37369 * XplatUIDriver.cs: Expose functionality to send async messages
37372 2004-08-20 13:18 jackson
37374 * Control.cs: Implement Begininvoke
37376 2004-08-20 13:14 jackson
37378 * XplatUI.cs, XplatUIWin32.cs: Expose functionality to send async
37379 messages through the driver
37381 2004-08-20 13:12 jackson
37383 * XplatUIX11.cs: Lock before all X operations. Also added Async
37384 method functionality through XSendEvent
37386 2004-08-20 13:11 jackson
37388 * X11Structs.cs: Use IntPtrs for ClientMessage extra data (TODO:
37389 This will screw up on 64 bit systems)
37391 2004-08-20 13:10 jackson
37393 * AsyncMethodData.cs, AsyncMethodResult.cs: Classes for sending
37394 Async messages through X/Win32
37396 2004-08-19 19:39 pbartok
37399 - Updated code to match new HandleData.DeviceContext type
37401 2004-08-19 19:38 pbartok
37404 - Made DeviceContext a generic object to allow usage from various
37406 - Added support for queueing Windows messages
37408 2004-08-19 19:37 pbartok
37411 - Added generation of MouseEnter, MouseLeave and MouseHover events
37412 - Added cleanup on EndPaint
37414 2004-08-19 19:17 pbartok
37417 - Added handling of WM_MOUSEHOVER
37418 - Worked around 'bug' in Win32 WM_MOUSE_ENTER/WM_MOUSE_LEAVE driver
37421 2004-08-19 18:55 jordi
37423 * ThemeGtk.cs: fixes button order
37425 2004-08-19 18:12 jordi
37427 * Theme.cs, ThemeWin32Classic.cs: fixes methods signature
37429 2004-08-19 17:09 pbartok
37432 - Added Right property
37433 - Added RightToLeft property
37435 2004-08-19 16:27 jordi
37437 * ThemeGtk.cs: experimental GTK theme support
37439 2004-08-19 16:26 jordi
37441 * ITheme.cs, Theme.cs: move themes from an interface to a class
37443 2004-08-19 16:25 jordi
37445 * Control.cs, ScrollBar.cs, ThemeEngine.cs, ThemeWin32Classic.cs:
37448 2004-08-19 16:04 pbartok
37451 - Added colormap basics
37452 - Added a way to re-initialize with a different display handle
37453 - Fixed setting of the window background color
37454 - Added various X11 imports related to colors and colormaps
37456 2004-08-19 15:51 pbartok
37459 - Removed packing hints (Paolo suggested this a while back)
37460 - fixed colormap type
37461 - Added default Atom types
37462 - Added Screen and color structs and enums
37464 2004-08-19 15:39 pbartok
37467 - Added missing Draw() method
37468 - Added missing RecreateHandle event
37470 2004-08-19 15:30 pbartok
37473 - Added handling of WM_CLOSE
37475 2004-08-18 13:16 jordi
37477 * ITheme.cs, ThemeWin32Classic.cs, XplatUIWin32.cs: Move colors to
37480 2004-08-18 09:56 jordi
37482 * ScrollBar.cs: fixes to scrollbar: steps and multiple timers
37484 2004-08-17 15:31 ravindra
37486 * SWF.csproj: Updated project.
37488 2004-08-17 15:25 pbartok
37491 - Drawing improvement; don't call UpdateBounds if we are not visible
37492 (or have been minimized)
37494 2004-08-17 15:24 pbartok
37497 - Finished IsVisible
37498 - Added Win32GetWindowPlacement
37500 2004-08-17 15:08 jackson
37502 * Panel.cs: Initial checkin of the Panel
37504 2004-08-17 14:25 pbartok
37507 - Fixed broken handling of default window sizes
37509 2004-08-17 13:29 jackson
37511 * ThemeWin32Classic.cs: Don't use KnownColor to create colours. It
37512 has a large startup time.
37514 2004-08-17 10:25 jackson
37516 * HandleData.cs: union areas properly
37518 2004-08-17 10:12 jackson
37520 * HandleData.cs: union areas properly
37522 2004-08-16 20:00 ravindra
37524 * ToolBar.cs, ToolBarButton.cs: Added attributes.
37526 2004-08-16 18:48 ravindra
37528 * ToolBar.cs: Added attributes.
37530 2004-08-16 17:17 ravindra
37532 * SWF.csproj: Updated project.
37534 2004-08-16 17:16 jackson
37536 * XplatUIX11.cs: Check for more expose events before sending a
37537 WM_PAINT so they can all be grouped together. This makes dragging a
37538 window across another window redraw in a sane way.
37540 2004-08-16 15:47 pbartok
37543 - Added handling of WM_MOUSE_ENTER & WM_MOUSE_LEAVE to
37544 support OnMouseEnter/Leave()
37545 - Added WS_CLIPSIBLINGS and WS_CLIPCHILDREN window styles to improve
37548 2004-08-16 15:46 pbartok
37550 * XplatUIStructs.cs, XplatUIX11.cs:
37551 - Added WM_MOUSE_ENTER & WM_MOUSE_LEAVE to support
37552 OnMouseEnter/Leave()
37554 2004-08-16 15:34 jackson
37556 * XplatUIX11.cs: Group multiple expose events in HandleData, make
37557 sure messages get the message field set to WM_NULL if they are not
37560 2004-08-16 15:24 jackson
37562 * HandleData.cs: HandleData is used for storing message information
37565 2004-08-15 17:23 ravindra
37567 * ColorDepth.cs: Added attribute.
37569 2004-08-15 17:23 ravindra
37571 * SWF.csproj: Updated project for ToolBar Control.
37573 2004-08-15 17:20 ravindra
37575 * ITheme.cs, ThemeWin32Classic.cs: Changes to Theme for ToolBar
37576 control and also dos2unix format.
37578 2004-08-15 17:13 ravindra
37580 * ToolBar.cs, ToolBarAppearance.cs, ToolBarButton.cs,
37581 ToolBarButtonClickEventArgs.cs,
37582 ToolBarButtonClickEventHandler.cs, ToolBarButtonStyle.cs,
37583 ToolBarTextAlign.cs: First Implementation of ToolBar control.
37585 2004-08-15 15:31 pbartok
37588 - First (mostly) working version
37590 2004-08-13 16:15 pbartok
37593 - Fixed Anchor default
37595 2004-08-13 15:43 pbartok
37598 - Changed GetCursorPos signature
37600 2004-08-13 15:42 pbartok
37602 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
37603 - Changed signature for GetCursorPos
37605 2004-08-13 15:25 pbartok
37609 - Fixed resizing/exposure handling
37611 2004-08-13 15:22 jordi
37613 * ThemeWin32Classic.cs: removes redundant code and fixes issues
37616 2004-08-13 14:55 jordi
37618 * TrackBar.cs: change from wndproc to events
37620 2004-08-13 13:00 jordi
37622 * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
37623 XplatUIX11.cs: implements PointToClient (ScreenToClient)
37625 2004-08-13 12:53 pbartok
37628 - Changed GetWindowPos to also provide client area size
37629 - Fixed broken prototypes for several win32 functions
37631 2004-08-13 12:53 pbartok
37633 * XplatUI.cs, XplatUIDriver.cs:
37634 - Changed GetWindowPos to also provide client area size
37636 2004-08-13 12:52 pbartok
37639 - Added generation of WM_POSCHANGED
37640 - Changed GetWindowPos to also provide client area size
37642 2004-08-13 12:52 pbartok
37645 - Added Dispose() and destructor
37646 - Fixed resizing and bounds calculation
37648 - Added memory savings for invisible windows
37650 2004-08-13 12:46 jordi
37652 * TrackBar.cs: adds timer and grap window
37654 2004-08-13 10:25 jackson
37656 * Timer.cs: SWF Timer
37658 2004-08-12 16:59 pbartok
37660 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
37661 - Implemented method to get current mouse position
37663 2004-08-12 14:29 jordi
37665 * ITheme.cs, ThemeWin32Classic.cs, TrackBar.cs: Trackbar
37666 enhancement, fix mouse problems, highli thumb, etc
37668 2004-08-12 13:31 pbartok
37671 - Fixed Anchoring bugs
37673 2004-08-12 13:01 jackson
37675 * StatusBar.cs: Don't forget things
37677 2004-08-12 12:54 jackson
37679 * ThemeWin32Classic.cs: Handle owner draw status bars
37681 2004-08-12 12:54 jackson
37683 * StatusBar.cs: Implement missing properties, events, and methods.
37684 Handle mouse clicking
37686 2004-08-12 10:19 jackson
37688 * StatusBarPanelClickEventArgs.cs,
37689 StatusBarPanelClickEventHandler.cs: Classes for handling status
37690 bar panel click events
37692 2004-08-12 10:10 jackson
37694 * Control.cs: Add missing properties
37696 2004-08-12 09:46 pbartok
37698 * BindingsManagerBase.cs:
37699 - Name changed to BindingManagerBase.cs
37701 2004-08-12 09:25 jordi
37703 * ScrollableControl.cs: calls ctrlbase instead of exeception
37705 2004-08-11 16:28 pbartok
37707 * InputLanguageChangingEventArgs.cs:
37708 - Never check in before compiling. Fixes the last check-in
37710 2004-08-11 16:26 pbartok
37712 * InputLanguageChangingEventArgs.cs:
37713 - More signature fixes
37715 2004-08-11 16:20 pbartok
37717 * BindingManagerBase.cs, BindingMemberInfo.cs, ContainerControl.cs,
37718 Control.cs, ControlEventArgs.cs, ControlPaint.cs, Form.cs,
37719 ImageListStreamer.cs, InputLanguage.cs,
37720 InputLanguageChangedEventArgs.cs,
37721 InputLanguageChangingEventArgs.cs, Keys.cs, LayoutEventArgs.cs,
37722 LinkArea.cs, Message.cs, MouseEventArgs.cs, NativeWindow.cs,
37723 ScrollEventArgs.cs, ScrollableControl.cs, XplatUI.cs,
37724 XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
37727 2004-08-11 16:16 pbartok
37731 - Added .Net 1.1 method
37733 2004-08-11 15:25 pbartok
37736 - Fixed BindingManagerBase.cs filename
37738 2004-08-11 15:22 pbartok
37740 * BindingManagerBase.cs:
37741 - Was checked in with wrong filename
37743 2004-08-11 14:50 pbartok
37748 2004-08-11 13:41 jordi
37750 * XplatUIWin32.cs: Fixes ClientRect
37752 2004-08-11 13:19 pbartok
37754 * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
37756 - We had SetWindowPos and MoveWindow to set window positions and
37757 size, removed MoveWindow. We have GetWindowPos, so it made sense to
37758 keep SetWindowPos as matching counterpart
37759 - Added some X11 sanity checking
37761 2004-08-11 12:59 pbartok
37764 - Major cleanup of my SetBounds/SetBoundsCore/UpdateBounds mess
37765 (It seems that SetBounds is just a front for SetBoundsCore and
37766 SetBoundsCore updates the underlying window system and
37767 UpdateBounds is responsible for updating the variables associated
37768 with the Control and sending the events)
37769 - Major cleanup of Size handling; we now have two sizes, client_size
37770 and bounds. Bounds defines the window with decorations, client_size
37773 2004-08-11 12:55 pbartok
37775 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
37776 - Added method to calculate difference between decorated window and
37779 2004-08-11 12:54 pbartok
37782 - Forcing redraw on resize
37784 2004-08-11 11:43 pbartok
37787 - Removed disposing of the actual images when the list is disposed
37789 2004-08-11 09:13 pbartok
37792 - Now properly reparents windows
37794 2004-08-11 08:37 pbartok
37799 2004-08-11 07:47 pbartok
37802 - Rewrote the collection stuff. Might not be as fast now, not
37803 keeping the number of children around and accessible directly, but
37804 it's more straightforward
37806 2004-08-11 07:44 pbartok
37808 * AccessibleObject.cs:
37809 - Fixed to match ControlCollection rewrite
37811 2004-08-11 07:43 pbartok
37814 - Added missing creation of the collection list
37816 2004-08-10 20:08 jackson
37818 * StatusBar.cs: Get the paint message from WndProc
37820 2004-08-10 19:31 jackson
37822 * ThemeWin32Classic.cs: Create Brushes as little as possible
37824 2004-08-10 19:20 jackson
37826 * UICues.cs: Add Flags attribute
37828 2004-08-10 19:19 jackson
37830 * StatusBarPanel.cs: Signature cleanup
37832 2004-08-10 19:10 jackson
37834 * StatusBarDrawItemEventArgs.cs, StatusBarDrawItemEventHandler.cs:
37835 Initial implementation of status bar item drawing
37837 2004-08-10 17:27 jordi
37839 * TrackBar.cs: add missing methods, properties, and restructure to
37842 2004-08-10 16:24 jackson
37844 * AccessibleStates.cs, Border3DSide.cs, Border3DStyle.cs,
37845 ButtonState.cs, ControlStyles.cs, DragDropEffects.cs: Add flags
37848 2004-08-10 13:21 jordi
37850 * ITheme.cs, ScrollBar.cs, ThemeWin32Classic.cs: scrollbar
37851 enhancements and standarize on win colors defaults
37853 2004-08-10 12:52 jackson
37855 * DrawItemEventArgs.cs, DrawItemState.cs, ITheme.cs,
37856 ThemeWin32Classic.cs: Implement DrawItem functionality
37858 2004-08-10 12:47 jordi
37860 * XplatUIWin32.cs: Calls InvalidateRect before UpdateWindow
37862 2004-08-10 12:32 jordi
37864 * Control.cs: throw ontextchange event
37866 2004-08-10 11:43 pbartok
37869 - Added more to the still unfinished Dock/Anchor layout code
37871 2004-08-10 11:39 pbartok
37873 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
37874 - Added GetWindowPos method
37876 2004-08-10 11:36 pbartok
37879 - Implemented several methods
37881 2004-08-10 09:47 jackson
37883 * TrackBar.cs: Allow control to handle buffering
37885 2004-08-10 09:41 jackson
37887 * ProgressBar.cs, ScrollBar.cs: Allow control to handle buffering
37889 2004-08-10 09:24 jackson
37891 * Label.cs, LinkLabel.cs: Let Control handle buffering.
37893 2004-08-10 09:09 jackson
37895 * StatusBar.cs: Let Control handle all the buffering.
37897 2004-08-10 09:08 jackson
37899 * Control.cs: Control will now handle the buffering code, so each
37900 control does not have to implement this.
37902 2004-08-10 08:34 jackson
37904 * XplatUIDriver.cs: Use default colors from the theme
37906 2004-08-09 17:12 pbartok
37909 - Fixed several bugs Ravindra pointed out
37911 2004-08-09 16:11 pbartok
37914 - Added incomplete dock layout code
37915 - Added support for mouse wheel
37917 2004-08-09 16:09 pbartok
37920 - Added handling for middle and right mousebutton
37921 - Added handling for mouse wheel
37922 - Added handling for key state and mouse state and position
37923 - Now properly generates WM_xBUTTONx messages and WM_MOUSEWHEEL
37926 2004-08-09 15:40 jackson
37928 * StatusBarPanel.cs, StatusBarPanelAutoSize.cs,
37929 StatusBarPanelBorderStyle.cs, StatusBarPanelStyle.cs: Initial
37932 2004-08-09 15:37 jackson
37934 * StatusBar.cs: Initial implementation of StatusBar
37936 2004-08-09 15:36 jackson
37938 * ITheme.cs: Add support for drawing status bar and getting status
37941 2004-08-09 15:35 pbartok
37946 2004-08-09 15:34 jackson
37948 * ThemeWin32Classic.cs: Add support for drawing status bar and get
37949 status bar item sizes
37951 2004-08-09 15:21 jackson
37953 * ThemeWin32Classic.cs: Use known colors for default control
37956 2004-08-09 15:12 jackson
37958 * ThemeWin32Classic.cs: Make the default font static, it is static
37959 in control so this doesn't change functionality and creating fonts
37962 2004-08-09 14:56 pbartok
37965 - Added GrabMode enum
37967 2004-08-09 14:55 pbartok
37969 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
37970 - Removed Run method, was only required for initial development
37972 2004-08-09 14:51 pbartok
37974 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
37975 - Implemented GrabWindow/ReleaseWindow methods to allow pointer
37978 2004-08-09 13:48 pbartok
37981 - Fixed default sizing for child windows
37983 2004-08-09 12:56 pbartok
37986 - Added generation of WM_DESTROY message
37987 - Added handling of window manager induced shutdown
37989 2004-08-09 11:31 jackson
37991 * ThemeWin32Classic.cs: New names for control properties
37993 2004-08-09 11:25 jackson
37995 * Control.cs: Use new color names
37997 2004-08-09 11:02 jackson
37999 * XplatUI.cs: Get default window properties from the theme
38001 2004-08-09 11:01 jackson
38003 * ITheme.cs: The theme engine now controls default window
38006 2004-08-09 11:00 jackson
38008 * ThemeWin32Classic.cs: Add default window color properties
38010 2004-08-09 10:17 jackson
38012 * ThemeWin32Classic.cs: Use correct default back color
38014 2004-08-09 10:05 jackson
38016 * XplatUIWin32.cs, XplatUIX11.cs: These properties are handled by
38019 2004-08-09 09:56 jackson
38021 * XplatUI.cs: Remove defaults, these are handled by the theme now.
38023 2004-08-09 09:54 jackson
38025 * Control.cs: Get default properties from the theme.
38027 2004-08-09 09:53 jackson
38029 * ITheme.cs: Themes now handle default control properties
38031 2004-08-09 09:53 jackson
38033 * ThemeWin32Classic.cs: Themes now handle default control
38034 properties so coloring will be consistent
38036 2004-08-08 16:54 jordi
38038 * ITheme.cs, ThemeWin32Classic.cs: Label BorderStyles
38040 2004-08-08 15:08 jordi
38042 * XplatUIX11.cs: fixes keyboard crash
38044 2004-08-08 13:47 jordi
38046 * Label.cs: add cvs header info
38048 2004-08-08 12:09 jackson
38050 * ThemeWin32Classic.cs: Add pen_buttonface
38052 2004-08-08 11:52 jordi
38054 * Label.cs, LinkLabel.cs: [no log message]
38056 2004-08-08 11:34 jordi
38058 * ThemeWin32Classic.cs: Use Windows Standard Colours
38060 2004-08-07 17:32 jordi
38062 * TrackBar.cs: throw exceptions of invalid enums values
38064 2004-08-07 17:31 jordi
38066 * Label.cs, LinkLabel.cs, ThemeWin32Classic.cs: fixes label bug and
38069 2004-08-07 16:56 jackson
38071 * HorizontalAlignment.cs: Initial checkin
38073 2004-08-07 13:16 jordi
38075 * Label.cs, LinkLabel.cs: throw exceptions, fixes events, missing
38078 2004-08-07 13:05 jordi
38080 * ITheme.cs, ThemeWin32Classic.cs: Theme colour support and
38081 GetSysColor defines
38083 2004-08-06 18:01 pbartok
38085 * ThemeWin32Classic.cs:
38086 - Fixed some rounding issues with float/int
38088 2004-08-06 18:00 jackson
38090 * DockStyle.cs, AnchorStyles.cs:
38092 Add flags and serializable attributes.
38094 2004-08-06 17:46 pbartok
38097 - Implemented GetParent
38099 2004-08-06 17:18 pbartok
38102 - Fixed some rounding issues with float/int
38104 2004-08-06 17:17 pbartok
38106 * X11Structs.cs, XplatUIX11.cs:
38107 - Fixed Refresh and Invalidate
38109 2004-08-06 15:30 pbartok
38111 * Control.cs, X11Structs.cs, XplatUIX11.cs:
38112 - Fixed recursive loop when resizing
38113 - Improved/fixed redrawing on expose messages
38115 2004-08-06 09:53 jordi
38117 * Control.cs, X11Structs.cs, XplatUIWin32.cs, XplatUIX11.cs: X11
38118 keyboard navigation
38120 2004-08-06 08:02 pbartok
38122 * X11Structs.cs, XplatUIX11.cs:
38123 - Fixed reparenting
38124 - Fixed window border creation
38126 2004-08-05 15:38 pbartok
38129 - Attempted fix for reparenting problems
38131 2004-08-04 15:14 pbartok
38134 - Fixed Invalidation bug (calculated wrong client area)
38135 - Added ClientSize setter
38137 2004-08-04 15:13 pbartok
38140 - Added AutoScale properties
38142 2004-08-04 15:13 pbartok
38145 - Added latest files
38147 2004-08-04 14:11 pbartok
38149 * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
38151 - Added Invalidate handling
38153 2004-08-03 17:09 jordi
38155 * XplatUIDriver.cs: fixes spelling mistake
38157 2004-07-27 09:53 jordi
38159 * TrackBar.cs: fixes trackbar events, def classname, methods
38162 2004-07-27 09:29 jordi
38164 * ScrollBar.cs: fixes scrollbar events
38166 2004-07-27 04:38 jordi
38168 * Control.cs: changes to be able to run winforms samples
38170 2004-07-26 11:42 jordi
38172 * ControlPaint.cs, ITheme.cs, ProgressBar.cs, ScrollBar.cs,
38173 ThemeEngine.cs, ThemeWin32Classic.cs, TrackBar.cs: Theme support
38175 2004-07-26 05:41 jordi
38177 * MessageBox.cs, MessageBoxButtons.cs, MessageBoxDefaultButton.cs,
38178 MessageBoxIcon.cs, MessageBoxOptions.cs: initial messagebox
38181 2004-07-22 09:22 jordi
38183 * LinkLabel.cs, LinkLabelLinkClickedEventHandler.cs: link label:
38184 check link overlapping, implement events, and fixes
38186 2004-07-21 10:28 jordi
38188 * DialogResult.cs, IButtonControl.cs: fixes comments filenames
38190 2004-07-21 10:19 jordi
38192 * DialogResult.cs, IButtonControl.cs, Label.cs, LinkArea.cs,
38193 LinkBehavior.cs, LinkClickedEventArgs.cs, LinkLabel.cs,
38194 LinkLabelLinkClickedEventArgs.cs,
38195 LinkLabelLinkClickedEventHandler.cs, LinkState.cs,
38196 XplatUIWin32.cs, LinkClickedEventHandler.cs: LinkLabel control
38199 2004-07-19 13:09 jordi
38201 * Control.cs, Label.cs: label control re-written: added missing
38202 functionlity, events, and properties
38204 2004-07-19 10:49 jordi
38206 * Control.cs: fixes SetBounds logic
38208 2004-07-19 01:29 jordi
38210 * Control.cs: Call RefreshWindow only if the window has created
38212 2004-07-15 14:05 pbartok
38214 * ColorDepth.cs, ImageList.cs, ImageListStreamer.cs, SWF.csproj:
38215 - Implemented ImageList and ImageList.ImageCollection classes
38216 - Added ColorDepth enumeration
38217 - Updated SWF VS.Net project
38219 2004-07-15 11:06 jordi
38221 * XplatUIStructs.cs: added MsgButons enum
38223 2004-07-15 11:03 jordi
38225 * Control.cs: added basic mouse handeling events
38227 2004-07-15 03:38 jordi
38229 * Orientation.cs, TickStyle.cs, TrackBar.cs: Horizontal and
38230 Vertical TrackBar control implementation
38232 2004-07-13 09:33 jordi
38234 * HScrollBar.cs, VScrollBar.cs: vertical and hort. classes commit
38236 2004-07-13 09:31 jordi
38238 * Control.cs, Form.cs: commit: new properties and fixes form size
38241 2004-07-09 14:13 miguel
38243 * ProgressBar.cs: Spelling
38245 2004-07-09 11:25 pbartok
38248 - Removed usage of Rectangle for drawing. Miguel pointed out it's
38251 2004-07-09 11:17 miguel
38253 * ProgressBar.cs: 2004-07-09 Miguel de Icaza <miguel@ximian.com>
38255 * ProgressBar.cs: Fixed spelling for `block'
38257 drawProgressBar: renamed to `DrawProgressBar' to follow the coding
38260 Avoid using the += on rect.X, that exposed a bug in the compiler.
38262 2004-07-08 23:21 pbartok
38264 * AccessibleObject.cs, AccessibleRole.cs, AccessibleStates.cs,
38265 AnchorStyles.cs, Application.cs, ApplicationContext.cs,
38266 BaseCollection.cs, Binding.cs, BindingContext.cs,
38267 BindingMemberInfo.cs, BindingsCollection.cs,
38268 BindingsManagerBase.cs, Border3DSide.cs, Border3DStyle.cs,
38269 BorderStyle.cs, BoundsSpecified.cs, ButtonBorderStyle.cs,
38270 ButtonState.cs, CaptionButton.cs, CheckBox.cs,
38271 ContainerControl.cs, Control.cs, ControlEventArgs.cs,
38272 ControlEventHandler.cs, ControlPaint.cs, ControlStyles.cs,
38273 ConvertEventArgs.cs, ConvertEventHandler.cs, Copyright,
38274 CreateParams.cs, DockStyle.cs, DragAction.cs, DragDropEffects.cs,
38275 DragEventArgs.cs, DragEventHandler.cs, FlatStyle.cs, Form.cs,
38276 FrameStyle.cs, GiveFeedbackEventArgs.cs,
38277 GiveFeedbackEventHandler.cs, HelpEventArgs.cs,
38278 HelpEventHandler.cs, IContainerControl.cs, IDataObject.cs,
38279 IMessageFilter.cs, IWin32Window.cs, ImeMode.cs, InputLanguage.cs,
38280 InputLanguageChangedEventArgs.cs,
38281 InputLanguageChangedEventHandler.cs,
38282 InputLanguageChangingEventArgs.cs,
38283 InputLanguageChangingEventHandler.cs, InputLanguageCollection.cs,
38284 InvalidateEventArgs.cs, InvalidateEventHandler.cs,
38285 KeyEventArgs.cs, KeyEventHandler.cs, KeyPressEventArgs.cs,
38286 KeyPressEventHandler.cs, Keys.cs, Label.cs, LayoutEventArgs.cs,
38287 LayoutEventHandler.cs, MenuGlyph.cs, Message.cs, MouseButtons.cs,
38288 MouseEventArgs.cs, MouseEventHandler.cs, NativeWindow.cs,
38289 PaintEventArgs.cs, PaintEventHandler.cs, ProgressBar.cs,
38290 QueryAccessibilityHelpEventArgs.cs,
38291 QueryAccessibilityHelpEventHandler.cs,
38292 QueryContinueDragEventArgs.cs, QueryContinueDragEventHandler.cs,
38293 RightToLeft.cs, SWF.csproj, SWF.csproj.user, ScrollBar.cs,
38294 ScrollBars.cs, ScrollButton.cs, ScrollEventArgs.cs,
38295 ScrollEventHandler.cs, ScrollEventType.cs, ScrollableControl.cs,
38296 TODO, TODOAttribute.cs, UICues.cs, UICuesEventArgs.cs,
38297 UICuesEventHandler.cs, X11Structs.cs, XplatUI.cs,
38298 XplatUIDriver.cs, XplatUIStructs.cs, XplatUIWin32.cs,
38299 XplatUIX11.cs, lang.cs: