1 2008-12-22 Jonathan Pobst <monkey@jpobst.com>
3 * ToolStripMenuItem.cs: Guard against an NRE.
6 2008-12-22 Mario Carrion <mcarrion@novell.com>
8 * Control.cs: AccessibleXXXX properties don't return
9 AccessibleObject.XXXX, instead a local referece is returned.
11 2008-12-22 Neville Gao <nevillegao@gmail.com>
13 * PrintPreviewControl.cs: Added internal properties to support
17 2008-12-19 Mario Carrion <mcarrion@novell.com>
19 * Control.cs: Reverted r121561.
21 2008-12-19 Andrés G. Aragoneses <aaragoneses@novell.com>
23 * X11DesktopColors.cs: Since r121873 we don't need gtk a11y checks here,
24 it has been moved to the bridge.
26 2008-12-18 Brad Taylor <brad@getcoded.net>
28 * DateTimePicker.cs: Add a few UIA specific events, and a couple
29 internal methods useful for UIA.
31 2008-12-18 Mario Carrion <mcarrion@novell.com>
33 * ListBox.cs: Fixed GetItemRectangle when MultiColumn is true.
36 2008-12-17 Mike Gorse <mgorse@novell.com>
38 * ListView.cs, ListViewItem.cs: Send OnUIAFocusedItemChanged if an
39 item's Focused property is set.
41 2008-12-17 Sandy Armstrong <sanfordarmstrong@gmail.com>
45 * TreeNodeCollection.cs: Add events for UIA support:
46 UIACheckBoxesChanged, UIALabelEditChanged, UIANodeTextChanged, and
49 2008-12-17 Bill Holmes <billholmes54@gmail.com>
51 * ListViewItem.cs (ListViewSubItem.ctor): Initalizing the
52 SubItemStyle member field.
54 Contributed under MIT/X11 license.
56 2008-12-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
58 * ListBox.cs: In MultiColumn mode don't use top_index to calculate the
59 y coord, since it's useless in this case, and we need to rely only on
60 the number of rows and ItemHeight to compute this value.
61 Fixes part of #257471.
63 2008-12-15 Mike Gorse <mgorse@novell.com>
65 * StatusBar.cs: Send OnUIACollectionChanged in Remove().
67 2008-12-15 Mario Carrion <mcarrion@novell.com>
69 * Control.cs: Accessibility properties instantiate AccessibilityObject when
73 2008-12-15 Brad Taylor <brad@getcoded.net>
75 * ToolStripItem.cs: Add a UIA specific event for listening for when a
76 ToolStripItem becomes selected or deselected.
78 2008-12-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
80 * MonthCalendar.cs: Select the date in MouseDown, not in MouseUp, as
81 .net does. Use the date in the point of the mouse move coords as the
82 new range as well, if the left button of the mouse is being pressed.
85 2008-12-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
87 * MonthCalendar.cs: When modifying either AnnuallyBoldedDates,
88 MonthlyBoldedDates or BoldedDates call UpdateBoldedDates, to
89 effectively repaint the control.
90 Fixes the remaining bits of #417961.
92 2008-12-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
94 * MonthCalendar.cs: When setting MaxDate/MinDate, adjust the selected
95 range to contain only dates within the new possible range.
96 Fixes part of #417961.
98 2008-12-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
100 * MaskedTextBox.cs: MaskedTextService.Replace doesn't expect the
101 length of the text, but the end position, so we need to substract 1 to
102 have a valid value. Also, in the same InputText method, don't use
103 SelectionLength as the length of the text, since the selected text
104 could actually be empty, but we need to set the value anyway.
107 2008-12-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
109 * TextBox.cs: Don't do any auto complete task if the custom source is
110 null or empty. Also avoid duplication of code.
113 2008-12-09 Ivan N. Zlatev <contact@i-nz.net>
115 * DataGridView.cs: Refresh column sizes when new rows are added.
118 2008-12-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
119 * RichTextBox.cs: When parsing the contents of a rtf file, don't call
120 Split to create a line - we are already doing this, by _adding_ a new
121 one when rtf_cursor_x is 0 (this field gets this value just after we
122 receive the newline param as true). This avoids having a proportional number
123 of empty lines in the end of the rich text box.
126 2008-12-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
128 * RichTextBox.cs: When saving the contents as a plain text, don't add
129 a new line for every Line structure, since the data in Document
130 already contains the new line characters. This avoids duplicated new
131 lines using the Save methods.
134 2008-12-09 Sandy Armstrong <sanfordarmstrong@gmail.com>
136 * TreeView.cs: Expose ScrollBars as internal properties, for use by UIA
137 framework. Fixes bug #457678.
139 2008-12-08 Ivan N. Zlatev <contact@i-nz.net>
141 * DataGridViewRow.cs: Prevent an exception on a not yet databound grid,
142 where datasource is null.
143 [Fixes exception reported in bug 441240]
145 2008-12-08 Ivan N. Zlatev <contact@i-nz.net>
147 * DataGridView.cs: EndEdit validation fixes.
149 2008-12-08 Ivan N. Zlatev <contact@i-nz.net>
151 * DataGridView.cs: This is the cool patch that adds support for
152 actually updating the data in the databinding backend after editing.
153 With bonus firing and handling the DataError event.
155 2008-12-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
157 * Line.cs: When calculating the text tags's Shift value, store it as
158 pixels instead of points. This way we can actually handle different
159 fonts in the same RichTextBox, as well as the right size of the caret.
160 Fixes part of #351938.
162 2008-12-08 Ivan N. Zlatev <contact@i-nz.net>
164 * DataGridViewCheckBoxCell.cs: Fix to make it work. Wrong value was
165 casted to CheckState causing InvalidCastExceptions.
167 2008-12-08 Ivan N. Zlatev <contact@i-nz.net>
169 * DataGridView.cs: Fix the DataGridViewEditMode.EditOnEnter behavior
170 to not depend on the item being clicked.
172 2008-12-08 Ivan N. Zlatev <contact@i-nz.net>
174 * DataGridView.cs: Implement NotifyCurrentCellDirty, so that it no
175 longer throws a NotImplementedException.
177 2008-12-08 Ivan N. Zlatev <contact@i-nz.net>
179 * DataGridView.cs: Set EditingControlFormattedValue when preparing an
180 IDataGridViewEditingControl for editing.
182 2008-12-08 Ivan N. Zlatev <contact@i-nz.net>
184 * DataGridViewComboBoxCell.cs: Implement data binding support.
186 2008-12-08 Ivan N. Zlatev <contact@i-nz.net>
188 * DataGridView.cs: Use the CurrencyManager to update the data source
189 binding position instead of casting the data sourcde to BindingSource.
190 This enables position updating for other type of data sources.
192 2008-12-08 Ivan N. Zlatev <contact@i-nz.net>
194 * ComboBox.cs: Update the SelectedIndex before updating the Text
195 in OnDisplayMemberChanged.
197 2008-12-07 Ivan N. Zlatev <contact@i-nz.net>
199 * DataGridView.cs: Fix our support for IDataGridViewEditingControl.
202 2008-12-06 Ivan N. Zlatev <contact@i-nz.net>
204 * DataGridView.cs: Sorting fixes:
205 - Be strict when sorting is enabled.
206 - If there is a data source delegate the sorting request.
208 2008-12-06 Ivan N. Zlatev <contact@i-nz.net>
210 * Binding.cs: When converting the data also try with the destination
211 type typeconverter. This indirectly adds support for Nullable types
212 in our databinding layer.
214 2008-12-06 Ivan N. Zlatev <contact@i-nz.net>
216 * DataGridView.cs: When cell editing is finished focus back the
217 DataGridView. Fixes keyboard navigation post-editing.
219 2008-12-06 Ivan N. Zlatev <contact@i-nz.net>
221 * DataGridView.cs: Fix the cell editing by delaying the currentCell
222 setting to after EndEdit is called for the old cell.
224 2008-12-06 Ivan N. Zlatev <contact@i-nz.net>
226 * BindingSource.cs: Reset the bindings. Fixes a NotWorking test.
228 2008-12-06 Ivan N. Zlatev <contact@i-nz.net>
230 * XplatUIX11.cs: Send WM_HELP only to the focused window.
232 2008-12-05 Ivan N. Zlatev <contact@i-nz.net>
234 * CurrencyManager.cs: Fix exceptions when resetting the data source
235 for the same time (e.g. in ComboBox):
236 - Do not set the list position if we are still transferring data
237 - When resetting the list firstly push the data then update the
239 * Binding.cs: Check BindingManager.Position == -1 instead of
240 BindingManager.Current == null in order to avoid unexpected
243 2008-12-05 Brad Taylor <brad@getcoded.net>
245 * MonthCalendar.cs: Add UIA specific events so that we can know when
246 the selection changes, and when MaxSelectedCount changes.
248 2008-12-05 Ivan N. Zlatev <contact@i-nz.net>
250 * DataGridView.cs: Cleanup rows_displayed out of OnPaint. It's not
253 2008-12-05 Ivan N. Zlatev <contact@i-nz.net>
255 * DataGridView.cs: Fix scrolling and selection of cells/rows prior
256 to the control being drawn for the first time by:
257 - Implement DisplayedRowsCount to not rely on the control being
258 already painted. Also added support for the partial row flag.
259 - Fix scrolling to take into account partial rows and scroll to
263 2008-12-05 Ivan N. Zlatev <contact@i-nz.net>
265 * DataGridView.cs: Do not reset the CurrentCell when the handle is
266 created if the user has already set it.
268 2008-12-05 Ivan N. Zlatev <contact@i-nz.net>
270 * DataGridView.cs: Fix CurrentCell to actually select the cell.
272 2008-12-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
274 * XplatUIX11.cs: Add support to RichTextFormat by reading it as ascii
275 text and then let the underneath users of IDataObject interpret and
279 2008-12-01 Ivan N. Zlatev <contact@i-nz.net>
281 * DataGridView.cs: Fix my previous commit to actually update what it
284 2008-12-01 Ivan N. Zlatev <contact@i-nz.net>
286 * DataGridView.cs: Ensure that when a row is removed the all the
287 current row/column/cell get updated. Fixes multiple exceptions.
289 2008-12-01 Ivan N. Zlatev <contact@i-nz.net>
291 * DataGridView.cs: Fix scrolling to the current cell when key navigation
295 2008-12-01 Ivan N. Zlatev <contact@i-nz.net>
297 * DataGridView.cs, DataGridViewCell.cs: Fire CellStateChanged events.
298 * DataGridViewCell.cs: Set the cell as selected prior to setting the
300 [Fixes issue 1 in bug #443560]
302 2008-12-01 Ivan N. Zlatev <contact@i-nz.net>
304 * DataGridView.cs: Invalidate after the current row/column seletion
308 2008-12-01 Ivan N. Zlatev <contact@i-nz.net>
310 * DataGridView.cs: Refresh the data if the data list is reset, etc.
312 2008-12-01 Ivan N. Zlatev <contact@i-nz.net>
314 * DataGridView.cs: Handle datasource state changes:
315 - IBindingList - list changes
316 - BindingSource - list changed and datasource changes
318 2008-11-30 Ivan N. Zlatev <contact@i-nz.net>
320 * DataGridView.cs: Select the first cell when databound.
321 Visually select when CurrentCell is set.
323 2008-11-30 Ivan N. Zlatev <contact@i-nz.net>
325 * DataGridView.cs: Set the current cell before raising CellClick.
327 2008-11-30 Ivan N. Zlatev <contact@i-nz.net>
329 * DataGridView.cs: Cleanup MoveCurrentCell to not fire any CellEnter,
330 CellLeave events as this is already done in SetCurrentCellAddressCore.
332 2008-11-30 Ivan N. Zlatev <contact@i-nz.net>
334 * DataGridView.cs: Set the minimum size for the columns to be the
335 width of their header, so that the columns don't get squashed
338 2008-11-30 Ivan N. Zlatev <contact@i-nz.net>
340 * DataGridView.cs: After the data is bound PerformLayout, so that
341 the columns get autosized.
343 2008-11-30 Ivan N. Zlatev <contact@i-nz.net>
345 * DataGridView.cs: Move all currentCell setting code into
346 one central place - SetCurrentCellAddressCore. That way the
347 current cell is properly updated when programatically set.
348 Fire RowEnter/Leave events.
350 2008-11-30 Ivan N. Zlatev <contact@i-nz.net>
352 * DataGridView.cs: Update the CurrencyManager.Position, so that
353 when a BindingSource is used BindingSource.Current will be correct.
355 2008-11-30 Ivan N. Zlatev <contact@i-nz.net>
357 * GroupBoxRenderer.cs: Fix when VisualStyles disabled:
358 - No caption text is drawn because Color.Empty is used.
359 - Fix top and height off by 1.
361 2008-11-30 Ivan N. Zlatev <contact@i-nz.net>
363 * DataGridViewRow.cs: Implement DataBoundItem.
365 2008-11-30 Ivan N. Zlatev <contact@i-nz.net>
367 * BindingSource.cs: Return null for Current if there is no data present.
369 2008-11-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
371 * MenuAPI.cs: Add a Menu.SelectedItem null check when navigating the
372 menus using the arrow keys. Also when handling the left arrow key, don't
373 assign the current menu to the parent one, if the parent is null.
376 2008-11-24 Everaldo Canuto <ecanuto@novell.com>
378 * PrintPreviewDialog.cs: Fix toolbar size, height must be 26. Fixes bug
381 2008-11-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
384 * ScrollableControl.cs: Simplify the code to manually set the size of
385 the thum area, avoiding duplication of code, and also preserving the
386 right value for different code paths - this can happen when size
387 changes are made to the scrollbar after setting LargeChange, Maximum
388 or related properties for the ScrollBar.
390 2008-11-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
392 * ScrollableControl.cs: When scrolling, don't invalidate the entire
393 area, and call to XplatUIX11.ScrollWindow instead. This is exactly
394 what .Net does: copy the visible area, and only invalidate the part of
395 the area that wasn't visible before scrolling.
398 2008-11-24 Jonathan Pobst <monkey@jpobst.com>
400 * DataGridView.cs: Listen for a DataTable's TableCleared event so we
401 can clear ourselves when it is raised, we don't have a newrowindex
402 if we don't have any columns.
403 * DataGridViewRowCollection.cs: Ensure we always delete all the rows,
404 re-index after each delete so the NewRow will have the correct index.
407 2008-11-24 Jonathan Pobst <monkey@jpobst.com>
409 * Form.cs: Don't change min/max size if it is empty.
412 2008-11-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
415 * ScrollableControl.cs: When the manual thumb size is used, the
416 maximum allowed value should depend on that thumb size, instead of
417 LargeChange (using the maximum - LargeChange + 1 value). But
418 LargeChange should be used normally when incrementing/decrementing.
419 Fixes the remaining part of #441546.
421 2008-11-23 Andreia Gaita <avidigal@novell.com>
423 * WebBrowser.cs, WebBrowserBase.cs: Delay loading of DocumentStream
424 until an about:blank has been loaded (according to spec). Fix
425 ScrollbarsEnabled to set when a document is loaded (since we use js
426 for it). Fix url so it reflects the current loading document and not
427 the previous one. Send StatusChanged events.
429 2008-11-23 Andreia Gaita <avidigal@novell.com>
431 * Application.cs: If a message comes in for an embedded control
432 (like webbrowser) when we're capturing the keyboard, release the
433 capture and continue.
436 2008-11-22 Andreia Gaita <avidigal@novell.com>
438 * XplatUI.cs: Only use PlatformID.MacOSX enum when not building on VS
440 2008-11-21 Andreia Gaita <avidigal@novell.com>
442 * WebBrowser.cs, HtmlDocument.cs: Fixes for #428172
444 2008-11-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
447 * ScrollableControl.cs: Set manually the thumb size for the
448 ScrollableControl scrollbars, so any further changes to the underneath
449 scrollbars respect the original size.
450 Fixes part of #441546.
452 2008-11-21 Geoff Norton <gnorton@novell.com>
454 * XplatUI.cs: Ensure that we can run on .net 2.0 with mono 2.2 where
455 PlatformID.MacOSX now exists.
457 2008-11-20 Jonathan Pobst <monkey@jpobst.com>
459 * TextBoxBase.cs: Provide a default implementation for ChangeBackColor.
460 Having something internal abstract isn't very nice for people who want
461 to inherit from this class.
463 2008-11-20 Jonathan Pobst <monkey@jpobst.com>
465 * ToolStripItem.cs: Don't crash if ImageIndex or ImageKey is set to an
466 invalid value. Just return null for the Image, and use the ImageList's
467 ImageSize for calculations.
469 2008-11-20 Jonathan Pobst <monkey@jpobst.com>
471 * ComboBox.cs: Call HideWindow instead of Hide when closing the dropdown
472 through DroppedDown so the proper events get called and state gets reset.
475 2008-11-18 Jonathan Pobst <monkey@jpobst.com>
477 * DataGridViewColumnCollection.cs: Make sure we re-index the columns after
478 the collection is modified.
480 2008-11-17 Jonathan Pobst <monkey@jpobst.com>
482 * DomainUpDown.cs: Remove string cache and reflection optimizations. They
483 aren't always correct, and fixing them for every case is not worth the
484 negligible benefit they provide.
487 2008-11-17 Jonathan Pobst <monkey@jpobst.com>
489 * DataGridView.cs: We should never add actual cells to the RowTemplate.
490 Internally, use RowTemplateFull to give us a new row with cells.
491 * DataGridViewColumnCollection.cs: Clear Rows when we clear Columns.
492 * DataGridViewRowCollection.cs: Use RowTemplateFull.
494 2008-11-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
496 * XplatUIX11.cs: Forms without borders should be able to change its
497 size - specially they should be able to be maximized, adding the
498 respective MotifFunctions.Resize bit when setting window properties as
499 well as *not* marking the Hwnd as size fixed.
502 2008-11-12 Jonathan Pobst <monkey@jpobst.com>
504 * DataGridViewCellStyle.cs: Allow SelectionBackColor to have
508 2008-11-11 Jonathan Pobst <monkey@jpobst.com>
510 * DataGridView.cs: Add internal to OnAutoSizeColumnModeChanged.
511 * DataGridViewColumn.cs: Recalculate columns when AutoSizeMode changes. Raise
512 AutoSizeColumnModeChanged.
515 2008-11-11 Jonathan Pobst <monkey@jpobst.com>
517 * DataGridViewRowCollection.cs: Guard against the user deleting the
518 NewRow. Add an internal delete so we can still delete it.
519 * DataGridView.cs: Use the new internal delete when deleting the NewRow.
522 2008-11-10 Jonathan Pobst <monkey@jpobst.com>
524 * TextControl.cs: Add some order of operation to our math so
525 we don't end up with a negative height for our invalidate rect.
528 2008-11-10 Jonathan Pobst <monkey@jpobst.com>
530 * Control.cs: When our enabled changes, notify our implicit children
531 controls as well as our regular controls.
534 2008-11-08 Andreia Gaita <shana@jitted.com>
536 * HtmlElement.cs: Small code cleanup
538 2008-11-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
540 * BindingNavigator.cs: MoveFirstItem should be enabled only if
541 position is larger than 0, not only different than 0. Also Position
542 and Count items should be enabled if the BindingSource is non null and
546 2008-11-05 Jonathan Pobst <monkey@jpobst.com>
548 * TabControl.cs: Don't raise SelectedIndexChanged until we have
549 actually modified the tab collection, so TabCount will be correct.
552 2008-11-05 Sandy Armstrong <sanfordarmstrong@gmail.com>
554 * ListViewItem.cs: Mark ListViewSubItem.UIATextChanged event as
555 NonSerialized to fix serialization of ListViewItem.
557 2008-11-04 Mike Gorse <mgorse@novell.com>
559 * ListView.cs: Call OnUIAFocusedItemChanged after completing the
560 focus change, and always call in SetFocusedItem.
561 * ListBox.cs: Add UIAFocusedItemChanged as in ListView.
563 2008-11-04 Jonathan Pobst <monkey@jpobst.com>
565 * ComboBox.cs: Only call OnDrawItem when we are using an OwnerDraw
566 mode. Based on a patch by John Mortlock.
569 2008-11-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
571 * ListView.cs: Use the UsingGroups property where needed, instead of
572 duplicating the check in other places.
574 2008-11-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
576 * ListView.cs: When calculating layout, refresh the count of items
577 belonging to the default item, insteas of doing it only one time. This
578 was already working fine for icon views, not not for details.
581 2008-11-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
585 * ThemeWin32Classic.cs: Don't render Tile view if there wasn't a call
586 to Applicatin.EnableVisualStyles, and use LargeIcon view, as .net
590 2008-11-03 Sandy Armstrong <sanfordarmstrong@gmail.com>
592 * ListView.cs: Wrap call to OnUIAFocusedItemChanged with #if NET_2_0.
594 2008-11-03 Sandy Armstrong <sanfordarmstrong@gmail.com>
596 * ListView.cs: Add internal UIAFocusedItemChanged event. Fixes bug
597 #441280, patch by Mike Gorse <mgorse@novell.com>.
599 2008-11-03 Jonathan Pobst <monkey@jpobst.com>
601 * TreeView.cs: When doing ExpandAll, don't scroll to the bottom
602 if there is no scrollbar.
605 2008-11-03 Jonathan Pobst <monkey@jpobst.com>
607 * ProgressBar.cs, ThemeWin32Classic.cs, ThemeVisualStyles.cs: Commit
608 patch from Andy Hume that fixes many issues with ProgressBar.
611 2008-11-03 Jonathan Pobst <monkey@jpobst.com>
613 * Form.cs: Don't allow MinimumSize and MaximumSize to conflict.
616 2008-11-03 Sandy Armstrong <sanfordarmstrong@gmail.com>
620 * NumericUpDown.cs: Internal events added to UpDownBase:
621 UIAUpButtonClick and UIADownButtonClick. Patch by Neville Gao
624 2008-11-03 Sandy Armstrong <sanfordarmstrong@gmail.com>
626 * ToolStripLabel.cs: Internal event added: UIAIsLinkChanged.
628 2008-11-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
631 * ThemeWin32Classic.cs: Don't use groups nor insertion mark in
632 Application.EnableVisualStyles hasn't been called.
633 Fixes part of #437933.
635 2008-10-31 Andreia Gaita <shana@jitted.com>
637 * Form.cs (SetVisibleCore): since set_ActiveControl no longer calls focus
638 if the container is not focused already, we need to specifically set
639 focus to the first available control, or to the form itself if there
642 2008-10-31 Andreia Gaita <shana@jitted.com>
644 activate message fix: a call to .Show now waits until both WM_SHOWWINDOW and
645 WM_ACTIVATE have been processed before returning, so it is guaranteed that
646 once it returns and the form is visible, it is actually on the screen on X11
648 * ContainerControl.cs: Only send focus to the control if the top container
649 is already focused. This is so that, when a form is first shown, all
650 the enter/leave events are done first before any focus stuff comes in.
651 If a control has no top container, there's an extra check on Control.Focus
652 to make sure it gets focused in this particular case.
654 * Control.cs: Force focus if the control is active but did not receive
655 focus after being set as active.
657 * MdiClient.cs: Dispose the form when closing
659 * XplatUIX11.cs: When mapping and unmapping windows, make sure the call
660 doesn't return until both WM_SHOWWINDOW and WM_ACTIVATE have come in
661 if the window is a top Form.
662 Reset all hwnd properties when the window has been destroyed so that
663 we don't land in any codepaths that might try to do something with it.
664 Added a bunch of debugging messages. If TRACE is defined, all X calls
665 are logged through DebugHelper. Set a few missing EntryPoint attributes.
667 2008-10-29 Mario Carrion <mcarrion@novell.com>
669 * ListViewItem.cs: Control enabled to support Accessibility:
670 - Internal events: UIATextChanged, UIASubItemTextChanged.
671 - Internal event UIATextChanged in ListViewSubItem that triggers
672 UIASubItemTextChanged.
673 * ListView.cs: Control enabled to support Accessibility:
674 - Internal events: UIACheckBoxesChanged, UIAMultiSelectChanged,
675 UIAShowGroupsChanged, UIAViewChanged and UIALabelEditChanged.
676 - Internal event UIACollectionChanged in ColumnHeaderCollection.
677 - Internal event UIACollectionChanged in ListViewItemCollection.
678 - Internal properties: UIAHeaderControl, UIAColumns, UIARows,
679 UIADefaultListViewGroup, UIAHScrollBar and UIAVScrollBar.
680 - Internal methods: UIAGetHeaderBounds.
682 2008-10-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
684 * ScrollableControl.cs: Actually fire the 2.0 Scroll event when we get
685 the event from the respective scrollbars.
688 2008-10-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
690 * ComboBox.cs: Use the new CanNavigateAutoCompleteList property of the
691 textbox to know whether any navigation key will be handled or not. If
692 not, don't pass the message to the textbox, and use it here instead.
693 * TextBox.cs: Define a new CanNavigateAutoCompleteList property -which
694 is more precise- than the previous AutoCompleteMatches one.
695 This should the keyboard navigation in ComboBox when using auto
698 2008-10-24 Jonathan Pobst <monkey@jpobst.com>
700 * ComboBox.cs: Fix item height calculation based off Font to match .Net.
703 2008-10-24 Jonathan Pobst <monkey@jpobst.com>
705 * ToolStripDropDownItem.cs: Call OnClick instead of base.OnClick so
706 overridden methods will get called.
707 * ToolStripItem.cs: Raise Click before MouseUp.
708 * ToolStripSplitButton.cs: Fix up some bounding rectangles to take
709 the item's location into account.
712 2008-10-24 Neville Gao <nevillegao@gmail.com>
714 * NumericUpDown.cs: Control enabled to support accessibility.
717 2008-10-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
719 * TextBox.cs: Check that we actually have items no navigate, select
720 text when pressing enter, as well as handle direction keys only if
721 mode is different to Suggest or the suggest listbox is visible.
723 2008-10-23 Andreia Gaita <shana@jitted.com>
725 * WebBrowser.cs: Use the new ContentStream property to retrieve
726 a stream encoded from the document content
728 2008-10-23 Andreia Gaita <shana@jitted.com>
732 HtmlWindow.cs: Fix GetHashcode for null objects
734 2008-10-22 Andreia Gaita <shana@jitted.com>
738 HtmlWindow.cs: Fix equality operators (fixes #428173)
740 2008-10-21 Jonathan Pobst <monkey@jpobst.com>
742 * XplatUIWin32.cs: Apply patch from John Mortlock that ensures
743 mouse_state gets set during WM_MOUSEMOVE and WM_NCMOUSEMOVE.
746 2008-10-21 Jonathan Pobst <monkey@jpobst.com>
748 * ComboBox.cs: Fire SelectedIndexChanged when the user selects the
749 same item with the mouse as was already selected.
752 2008-10-21 Brad Taylor <brad@getcoded.net>
754 * TextControl.cs: Break out code to get the visible range into
755 GetVisibleLineIndexes to be used in UIA code.
759 * TextBoxBase.cs: Add comments indicating that the method or property
760 is used via reflection from UIA code.
762 2008-10-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
764 * ListViewItem.cs: Match .net serialization.
765 Fixes remaining part of #417520.
767 2008-10-20 Jonathan Pobst <monkey@jpobst.com>
769 * ToolStripProfessionalRenderer.cs: Don't paint over a set BackgroundImage.
771 2008-10-20 Mario Carrion <mcarrion@novell.com>
773 * ErrorProvider.cs, ToolTip.cs, HelpProvider.cs: UIA internal property
774 added: UIAToolTipRectangle.
776 2008-10-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
778 * ListViewItem.cs: When deserializing enumerate over the data, instead
779 of accessing the data directly. This way we handle much better the
780 cases were we lack information.
783 2008-10-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
785 * ListView.cs: When removing an item from a main ListView.Items
786 collection (and not a ListViewGroupCollection.Items one), remove it
787 also from the group, as .net does. Patch by Mario Carrion (mario at
791 2008-10-19 Andreia Gaita <avidigal@novell.com>
793 * Form.cs: Forms that get closed without a handle being created are
794 disposed in 2.0. Fixes failing FormTest.FormClose and
795 FormTest.FormClose2 on windows.
797 2008-10-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
799 * ListView.cs: If both scrollbars are visible, the vertical one
800 shouldn't extend too far down.
803 2008-10-17 Jonathan Pobst <monkey@jpobst.com>
805 * DataGridView.cs: Add the ability to resize columns and rows with
806 the mouse. Also support double-clicking to autoresize.
807 * DataGridViewColumn.cs: Invalidate the grid if a column's width changes.
808 * DataGridViewRow.cs: Invalidate the grid if a row's height changes.
809 * DataGridViewTextBoxCell.cs: Add 1 to preferred width so ellipsis
810 isn't shown on autoresize.
813 2008-10-17 Mario Carrion <mcarrion@novell.com>
815 * ComboBox.cs: Remove UIAListbox.
817 2008-10-17 Mario Carrion <mcarrion@novell.com>
819 * ComboBox.cs, ListBox.cs: Using added/removed item in
820 OnUIACollectionChangedEvent instead of index.
822 2008-10-17 Jonathan Pobst <monkey@jpobst.com>
824 * ComboBox.cs: When we are sorting the items, if the item's type
825 doesn't support IComparer, use a default one that compares based
826 off the item's visible text.
829 2008-10-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
831 * ColumnHeader.cs: Invalidate ListView.header_control when setting
833 * ThemeWin32Classic.cs: When drawing the column header, draw a image
834 for the column if available, and make the required adjustments to the
838 2008-10-17 Neville Gao <nevillegao@gmail.com>
840 * StatusBarPanel.cs: Control enabled to support accessibility.
843 2008-10-16 Jonathan Pobst <monkey@jpobst.com>
845 * DataGridView.cs: When a user begins an edit in the 'new row',
846 make that a real row, and add a new 'new row'. If the user
847 cancels the edit, remove the new 'new row' and reset everything.
848 Also, ensure UserAddedRow and UserRemovedRow events are raised.
851 2008-10-16 Ivan N. Zlatev <contact@i-nz.net>
853 * TableLayoutSettings.cs: Fix NREs when deserializing and
854 panel is not yet set.
857 2008-10-16 Jonathan Pobst <monkey@jpobst.com>
859 * DataGridView.cs: Invalidate after deleting a row.
861 2008-10-16 Jonathan Pobst <monkey@jpobst.com>
863 * DataGridView.cs: Handle Enter and Escape keys.
864 - Move call to EndEdit to MoveCurrentCell.
865 - Remove call to EndEdit from navigation key routines.
866 - Fire CellLeave and CellEnter.
868 2008-10-16 Jonathan Pobst <monkey@jpobst.com>
870 * DataGridViewCell.cs: Some fixes to the new cell border
873 2008-10-16 Jonathan Pobst <monkey@jpobst.com>
875 * ThemeEngine.cs: Enable visualstyles rendering by default
876 (on platforms that support it).
878 2008-10-15 Ivan N. Zlatev <contact@i-nz.net>
880 * XplatUIX11.cs, XplatUICarbon.cs: Do not Timer.Tick before
881 MainForm.OnLoad has completed unless DoEvents is forced.
884 2008-10-15 Jonathan Pobst <monkey@jpobst.com>
886 * ToolTip.cs: Ensure that Timer.Internal cannot be set to 0.
888 2008-10-15 Jonathan Pobst <monkey@jpobst.com>
890 * Control.cs: Make our implementation of DrawToBitmap better
891 match WmPaint. [Fixes bug #435579]
893 2008-10-14 Andreia Gaita <avidigal@novell.com>
895 * WebBrowser.cs: Use DocumentElement as the document's root for the
896 whole content. Should fix DocumentText and DocumentStream problems.
898 2008-10-14 Jonathan Pobst <monkey@jpobst.com>
900 * DataGridViewColumnCollection.cs: Remove calls to OnColumnAddedInternal,
901 these will get called in DGV.OnCollectionChanged. Make sure
902 OnCollectionChanged always gets called.
903 * DataGridView.cs: Make a OnColumnRemovedInternal that removes the cells
904 from every row. Call this in OnCollectionChanged.
907 2008-10-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
909 * ComboBox.cs: WM_KEYDOWN and WM_KEYUP messages should be sent to the
910 textbox if auto complete is used, since we need to navigate over it.
911 And in this case don't pass this messages to the base impl. Also hide
912 the auto complete list box when displaying the drop down listbox.
913 * TextBox.cs: new internal members to expose some of the auto complete
914 functionality to combobox.
916 2008-10-13 Ivan N. Zlatev <contact@i-nz.net>
918 * XplatUIX11.cs, XplatUICarbon.cs, Form.cs: Do not Timer.Tick before
919 MainForm.OnLoad has completed.
922 2008-10-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
924 * TextBox.cs: Apply an old-approved patch that adds autocomplete's
925 Append support to this controls. We need it to apply new patches.
927 2008-10-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
929 * Control.cs: When updating z order in child controls, send to back
930 the implicit controls. Also, do it explicitly, instead of making
931 GetAllControls return the implicit controls in a specific order, and
932 thus avoid depending on that, which could change in the future.
935 2008-10-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
937 * X11Dnd.cs: Try to call Application.DoEvents before returning in a
938 call to StartDrag, since we must fire DragDrop/DragLeave *before*
939 that, as .net does - instead of firing DragDrop/DragLeave *after* the
940 call to Control.DoDragDrop has completed. This is needed since at the
941 point of returning, we have sent related dnd ClientMessages, but we
942 need to wait for them to fire the wmf respective ones.
945 2008-10-09 Everaldo Canuto <ecanuto@novell.com>
947 * LinkLabel.cs: Recreate link pieces when change Padding.
949 2008-10-09 Everaldo Canuto <ecanuto@novell.com>
951 * LinkLabel.cs: Take Padding into account when recreate link pieces.
954 2008-10-08 Everaldo Canuto <ecanuto@novell.com>
956 * Control.cs: Implement internal property PaddingClientRectangle, it will be
957 useful for drawing controls that must take care about Padding property.
959 2008-10-08 Jonathan Pobst <monkey@jpobst.com>
961 * BindingSource.cs: Make item_type internal so we can access it in DGV.
962 * DataGridView.cs: Add support for autogenerating columns from a
965 2008-10-07 Jonathan Pobst <monkey@jpobst.com>
967 * DataGridView.cs: Comment out an exception that is getting thrown
970 2008-10-07 Jonathan Pobst <monkey@jpobst.com>
972 * DataGridView.cs: Always rebind to the datasource, as things may
973 have changed in it that we aren't capturing yet.
975 2008-10-07 Jonathan Pobst <monkey@jpobst.com>
977 * DataGridViewTextBoxCell.cs: Don't default to VerticalCenter font
978 drawing mode. If we are top aligned, give ourselves some top padding.
980 2008-10-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
982 * X11Dnd.cs: When firing the default dnd enter/leave events, fire the
983 events on the control under the mouse pointer, instead of firing them
984 on the window generating the dnd operation. To achieve this re-use the
985 code used to get the window under the pointer when getting MouseMove
989 2008-10-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
991 * X11Dnd.cs: Don't check that that the window sending the dnd events
992 is the owner of the selection. Although Gtk+ sets it that way, it's
993 not a requirement of the XDnd protocol, and Qt doesn't seem to do it.
994 So, just as Gtk+ does, we set our window sending the dnd events as the
995 owner of the selection, but don't check it when receiving them. This
996 should fix interoperability with Qt/Kde.
999 2008-10-06 Jonathan Pobst <monkey@jpobst.com>
1001 * DataGridView.cs: Make sure we take the vertical scrollbar into
1002 account when autosizing columns.
1004 2008-10-06 Jonathan Pobst <monkey@jpobst.com>
1006 * DataGridView.cs: Handle sorting datetimes.
1008 2008-10-04 Ivan N. Zlatev <contact@i-nz.net>
1010 * ButtonBase.cs, Control.cs, Label.cs, PictureBox.cs, TabControl.cs,
1011 TextBoxBase.cs, ToolBar.cs, TrackBar.cs, TreeView.cs: Cleanup
1012 compilation warnings.
1014 2008-10-03 Ivan N. Zlatev <contact@i-nz.net>
1016 * RTF.cs, Application.cs, BindingContext.cs, BindingSource.cs,
1017 ContextMenuStrip.cs, Control.cs, Hwnd.cs, Line.cs, MaskedTextBox.cs,
1018 ProgressBar.cs, SaveFileDialog.cs, TextControl.cs, Theme.cs,
1019 ToolBar.cs, ToolStripItemCollection.cs, TrackBar.cs: Cleanup
1020 compilation warnings.
1022 2008-10-03 Ivan N. Zlatev <contact@i-nz.net>
1024 * DataGridView.cs, DataGridViewCell.cs,
1025 DataGridViewCellValidatingEventArgs.cs,
1026 DataGridViewComboBoxEditingControl.cs, DataGridViewHeaderCell.cs,
1027 DataGridViewRow.cs, DataGridViewRowHeaderCell.cs,
1028 DataGridViewTextBoxEditingControl.cs: Cleanup compilation warnings.
1030 2008-10-03 Ivan N. Zlatev <contact@i-nz.net>
1032 * HtmlElementEventArgs.cs, HtmlWindowCollection.cs:
1033 Cleanup compilation warnings.
1035 2008-10-03 Ivan N. Zlatev <contact@i-nz.net>
1037 * XplatUIWin32.cs: Cleanup compilation warnings.
1039 2008-10-03 Ivan N. Zlatev <contact@i-nz.net>
1041 * PropertyGrid.cs: Cleanup compilation warnings.
1043 2008-10-02 Jonathan Pobst <monkey@jpobst.com>
1045 * DataGridViewRow.cs: Only clear the row background if we
1046 are going to paint a new background.
1048 2008-10-02 Jonathan Pobst <monkey@jpobst.com>
1050 * DataGridViewCell.cs, DataGridViewColumnHeaderCell.cs,
1051 DataGridViewRowHeaderCell.cs: Remove PaintPartBorder and
1052 use PaintBorder instead.
1054 2008-10-02 Jonathan Pobst <monkey@jpobst.com>
1056 * DataGridView.cs: When CellBorderStyle is set, update the
1057 AdvancedCellBorderStyle to match.
1059 2008-10-02 Jonathan Pobst <monkey@jpobst.com>
1061 * DataGridViewCell.cs: Add helper methods to convert Alignment
1062 to TextFormatFlags and align rectangles.
1063 * DataGridViewTextBoxCell.cs: Use Alignment when painting text.
1064 * DataGridViewImageCell.cs: Use Alignment when painting the image.
1066 2008-10-02 Ivan N. Zlatev <contact@i-nz.net>
1068 * ToolTip.cs: Display tooltips only for controls on the active form.
1071 2008-10-02 Jonathan Pobst <monkey@jpobst.com>
1073 * DataGridView.cs: Make OnCellValueNeeded internal.
1074 * DataGridViewCell.cs: Raise the CellValueNeeded event so the
1075 user can supply their own value if they choose.
1077 2008-10-02 Jonathan Pobst <monkey@jpobst.com>
1079 * DataGridViewColumnHeaderCell.cs: Create a new style object
1080 so the DefaultCellStyle doesn't get changed.
1082 2008-10-02 Jonathan Pobst <monkey@jpobst.com>
1084 * ToolStripItem.cs: Check to make sure the owner is actually
1085 changing in InternalOwner before doing any work. Fixes some
1088 2008-10-01 Jonathan Pobst <monkey@jpobst.com>
1090 * DataGridViewColumnHeaderCell.cs: Correctly calculate style.
1091 * DataGridView.cs: Use a column header's inherited style instead
1092 of just using the default.
1094 2008-10-01 Jonathan Pobst <monkey@jpobst.com>
1096 * SplitContainer.cs: Raise SplitterMoved when the splitter is
1099 2008-10-01 Mario Carrion <mcarrion@novell.com>
1101 * ScrollBar.cs: Internal property added: UIAThumbPosition.
1103 2008-10-01 Jonathan Pobst <monkey@jpobst.com>
1105 * ToolStripOverflowButton.cs: Use InternalOwner instead of Owner.
1107 2008-10-01 Jonathan Pobst <monkey@jpobst.com>
1109 * ToolStripItem.cs: When the user sets Owner, we need to remove
1110 it from its previous owner and then add it to the new owner's
1111 item collection. Also, create InternalOwner, so we can set the owner
1112 that doesn't do this new stuff.
1113 * ToolStripItemCollection.cs: Use InternalOwner instead of Owner.
1115 2008-10-01 Jonathan Pobst <monkey@jpobst.com>
1117 * ToolStripItem.cs: When our parent changes, recalculate our text
1118 size, since we may be getting our Font from our parent. When our
1119 owner's Font changes, recalculate ourselves as we may be using
1122 2008-10-01 Everaldo Canuto <ecanuto@novell.com>
1124 * MenuAPI.cs: Select the first option of a popup when opening the popup via
1125 return key. [Fixes bug #413792].
1127 2008-10-01 Jonathan Pobst <monkey@jpobst.com>
1129 * ToolStripItem.cs: Make Font, BackColor, and ForeColor be
1130 ambient properties. (Get their value from their parents if
1131 values haven't been set.)
1133 2008-10-01 Jonathan Pobst <monkey@jpobst.com>
1135 * ToolStripSystemRenderer.cs: Call overridden methods' bases
1136 after our logic, so users can do painting by handling the events.
1137 Currently, we draw over any user painting.
1139 2008-10-01 Jonathan Pobst <monkey@jpobst.com>
1141 * ToolStripProfessionalRenderer.cs: Call overridden methods' bases
1142 after our logic, so users can do painting by handling the events.
1143 Currently, we draw over any user painting.
1145 2008-09-30 Everaldo Canuto <ecanuto@novell.com>
1147 * MenuAPI.cs: Prevent NRE when deactivate menu. Fixes #413636.
1149 2008-09-30 Jonathan Pobst <monkey@jpobst.com>
1151 * TreeNode.cs, TreeView.cs: Move logic that determines the node
1152 image to draw to TreeNode. Give Index/Keys put on the node
1153 precedence over the global one for the TreeView.
1155 2008-09-30 Jonathan Pobst <monkey@jpobst.com>
1157 * TreeNode.cs: Setting ImageIndex or ImageKey should reset the other.
1159 2008-09-29 Mario Carrion <mcarrion@novell.com>
1161 * ListBox.cs: Index fixed.
1163 2008-09-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1165 * TabControl.cs: When expanding the tab -because it's selected now-,
1166 using Right alignment, instead of adding some selected delta value to
1167 the X origin, substract it, so it gets a location adjacent to the panel,
1168 instead of be more separated.
1171 2008-09-29 Jonathan Pobst <monkey@jpobst.com>
1173 * MessageBox.cs: Use SystemIcons for graphics instead of keeping our
1176 2008-09-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1178 * X11Dnd.cs: source and related fields should be set to IntPtr.Zero,
1179 as well as the other static fields, to avoid using their previous
1180 values my mistake when handling the dnd events. This should avoid
1181 handling any status event after the drop has been finalized/cancelled.
1183 2008-09-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1185 * X11Dnd.cs: We have to send a dnd enter event as soon as we start the
1186 operation, instead of waiting until we get any movement - this will
1187 help us to have the data available in case no movement was detected
1188 and _still_ we have to fire DragEnter and DragLeave/DragDrop events.
1189 Finally add a windows.forms-only fallback to fire the mentioned events
1190 if no movement at all was detected, just like .net does.
1193 2008-09-27 Jonathan Pobst <monkey@jpobst.com>
1195 * ThemeWin32Classic.cs: When drawing a status bar panel, don't
1196 return early if the text is empty because the icon doesn't get
1197 drawn then. [Fixes bug #428113]
1199 2008-09-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1201 * FileDialog.cs: Implement basic support for sorting by columns in
1202 Details view. Patch by Eric Petit.
1205 2008-09-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1207 * ThemeWin32Classis.cs: When drawing gridlines take into account the
1208 case where ListView.ItemSize hasn't been computed, and provide a
1209 fallback as well. This prevents a division by 0.
1211 2008-09-24 Jonathan Pobst <monkey@jpobst.com>
1213 * ThemeVisualStyles.cs: Use ClientRectangle instead of Bounds to
1214 correctly draw tooltip backgrounds.
1216 2008-09-24 Jonathan Pobst <monkey@jpobst.com>
1218 * ImageList.cs: Change CopyTo implementation to ensure clones are
1219 created of our images.
1222 2008-09-24 Jonathan Pobst <monkey@jpobst.com>
1224 * Control.cs: When setting fonts, we need to ensure we change our
1225 reference to the new font object, even if it represents the same
1226 font as before. If we don't, the original font can get disposed
1227 and we will still try to use it.
1230 2008-09-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1232 * FileDialog.cs: Take into account Tile view when selecting the view
1235 2008-09-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1237 * ThemeWin32Classic.cs: When drawing gridlines for ListView don't use
1238 the item bounds, since we can't iterate over them in virtual mode.
1239 Also fix wrong calculation of the gridlines when using scrolling.
1242 2008-09-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1244 * XplatUIX11.cs: When handling EnterNotify events, take into account
1245 both the public and implicit controls when trying to detect the
1246 grab/ungrab process. This should fix ListView selection in Details
1249 2008-09-23 Jonathan Pobst <monkey@jpobst.com>
1251 * TreeView.cs: Redraw the whole node area when the selected node changes.
1252 Things like state images were not getting redrawn because the invalid
1253 rectangle was too small.
1256 2008-09-23 Mario Carrion <mcarrion@novell.com>
1258 * ListBox.cs: UIA Selection Pattern fully supported in ListBox control.
1261 2008-09-23 Jonathan Pobst <monkey@jpobst.com>
1263 * Form.cs: Do not set the Form's icon in the backend if showicon = false.
1266 2008-09-23 Jonathan Pobst <monkey@jpobst.com>
1268 * ThemeWin32Classic.cs: Allow tooltips to be multiline.
1271 2008-09-23 Jonathan Pobst <monkey@jpobst.com>
1273 * StatusBar.cs: Add tooltip support.
1276 2008-09-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1278 * ThemeWin32Classic.cs: Use StringAlignment.Center for the vertical
1279 alignments of sub items in Details view. Patch by John Mortlock (johnm at
1280 hlaustralia.com.au).
1283 2008-09-23 Neville Gao <nevillegao@gmail.com>
1285 * StatusBar.cs: Add UIA event in AddInternal () to support accessibility.
1288 2008-09-22 Jonathan Pobst <monkey@jpobst.com>
1290 * TextBoxBase.cs: Set Text to "" instead of null in Clear().
1293 2008-09-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1295 * ListView.cs: Don't do anything when EnsureVisible is called inside a
1296 BeginUpdate/EndUpdate block.
1299 2008-09-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1301 * ListViewItem.cs: The semantics for the public .ctor of
1302 ListViewSubItemCollection need us to already have a Text value for the
1303 item, which in our implementation have as available *after* adding the
1304 first sub item. So create an internal .ctor that satisfies our needs
1305 and let the public .ctor have the same semantics as .net.
1308 2008-09-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1310 * ListControl.cs: Changes in Formatting related values should call
1311 RefreshItems, as .net does.
1313 * ListBox.cs: In the respective overrides of RefreshItems calculate
1314 layout as well as refreshing - again, this is what .net does.
1317 2008-09-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1319 * ListBox.cs: In UpdateTopItem, don' call to XplatUI.ScrollWindow,
1320 since we are already doing that when we change the value of the
1321 scrollbar or force the call to ScrollWindow in the same method. This
1322 way we don't cause a Invalidate call for all the listbox bounds for
1323 methods calling UpdateTopItem with an already updated top item. This
1324 was happening specially calling EnsureVisible with already visible
1327 2008-09-18 Mike Gorse <mgorse@novell.com>
1329 * Application.cs, IKeyFilter.cs, X11Keyboard.cs, XplatUI.cs,
1330 XplatUIStructs.cs: Added KeyFilter
1333 2008-09-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1335 * RelatedPropertyManager.cs: The properties returned by
1336 GetItemProperties should be that ones of the *actual* object returned
1337 by the property, not the property type - this is very special when the
1338 property exposes a type, but the returned object actually is a child
1339 class and implements more functionality and properties.
1341 2008-09-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1343 * Binding.cs: Don't look for the property in the data source if the
1344 passed string is empty.
1346 2008-09-18 Ivan N. Zlatev <contact@i-nz.net>
1348 * XplatUIX11.cs: Comment out _NET_WM_WINDOW_TYPE_DIALOG in order to
1349 fix unused variable warnings.
1351 2008-09-18 Ivan N. Zlatev <contact@i-nz.net>
1353 * XplatUIX11.cs: Send WM_HELP when F1 is pressed.
1356 2008-09-18 Ivan N. Zlatev <contact@i-nz.net>
1359 - Do not set _NET_WM_WINDOW_TYPE_DIALOG for modal forms, because this
1360 leads to the window manager overriding our border style and zorder.
1361 - Allow the activation of non-modal forms, which are children of a
1365 2008-09-17 Ivan N. Zlatev <contact@i-nz.net>
1367 * XplatUIX11.cs, X11Structs.cs: For mapped windows SetTopMost should
1368 ask the window manager to do the work instead of changing the property
1372 2008-09-17 Everaldo Canuto <ecanuto@novell.com>
1374 * CurrencyManager.cs: Check for positon before call ChangeRecordState in
1375 AddNew to fix some navigation for empty datasets. [Fixes #323053]
1377 2008-09-17 Everaldo Canuto <ecanuto@novell.com>
1379 * FileDialog.cs: Remove OnPaint method on PopupButtonPanel and set
1380 InternalBorderStyle to BorderStyle.Fixed3D. It is the best way to get 3d
1381 border and fixes some drawing issues when resize form.
1383 2008-09-17 Everaldo Canuto <ecanuto@novell.com>
1385 * FileDialog.cs: Lots of layout fixes to mimic Win32. [Fixes #408752]
1387 * ThemeWin32Classic.cs: We don't need to reduce button size when it is
1390 2008-09-17 Ivan N. Zlatev <contact@i-nz.net>
1392 * TextBoxBase.cs: For standard textbox the scrollbars are always
1393 visible if Multiline is true.
1396 2008-05-12 Everaldo Canuto <ecanuto@novell.com>
1398 * DataGridTextBoxColumn.cs: Uncomment code accidentally commited in last
1401 2008-05-12 Everaldo Canuto <ecanuto@novell.com>
1403 [Fixes most od DBNull and HeadersVisible problems]
1406 - ShowingColumnHeaders removed because we dont need it, ColumnHeadersVisible
1407 returns the value that we need.
1408 - Fixed FromPixelToColumn method that return zero for first column and for
1409 row header cell, now it returns -1 for row header cell.
1410 - Fixed HitTest to check row header cell in column header area, it now
1411 returns HitTestType.None. [Fixes #322864]
1412 - Fixed the calculation of visible columns in UpdateVisibleColumn, now it
1413 checks for RowHeadersVisible and other things.
1414 - If an exception occurs when setting CurrentCell and user type 'yes' in
1415 message dialog, invalidade current and new cell and set setting_current_cell
1416 to false to prevent future errors. [Partially fixes #323050]
1418 * DataGridColumnStyle.cs: Don't call EndEdit after set property_descriptor
1419 value (SetColumnValueAtRow), it must be done by grid to properly show
1420 messages. [Fixes #323050]
1422 * ThemeWin32Classic.cs: Lots of fixes in DataGridPaintColumnHeaders to
1423 better draw column and row header. Also dont draw anything when column
1424 headers is not visible.
1426 2008-09-16 Jonathan Pobst <monkey@jpobst.com>
1428 * ThemeWin32Classic.cs: Hook ListViewItems into the ShowFocusCues
1431 2008-09-16 Jonathan Pobst <monkey@jpobst.com>
1433 * TreeView.cs: Don't start editing a node on right click, only
1436 2008-09-16 Jonathan Pobst <monkey@jpobst.com>
1438 * NativeWindow.cs: Reenable the ThreadExceptionDialog I accidentally
1439 disabled over a year ago.
1440 * Form.cs: Wrap calling Load in a try/catch because it can happen
1441 before the catch-all one in NativeWindow.
1444 2008-09-16 Jonathan Pobst <monkey@jpobst.com>
1446 * ToolStripDropDownMenu.cs: Calculate the connected area better
1447 to take into account when the drop down is not directly under the
1449 * ToolStripProfessionalRenderer.cs: Draw the whole unconnected area.
1451 2008-09-16 Mario Carrion <mcarrion@novell.com>
1453 * ScrollBar.cs: New event added: UIAValueChanged, generated when
1454 LargeChange, SmallChange, Maximum or Minimum values are changed.
1457 2008-09-16 Mario Carrion <mcarrion@novell.com>
1459 * ErrorProvider.cs: Component enabled to support accessibility.
1460 * Application.cs: Updated to Initialize UIA in ErrorProvider.
1463 2008-09-16 Jonathan Pobst <monkey@jpobst.com>
1465 * TextBoxBase.cs: Flag has_been_focused when SelectionStart is set
1466 so we don't highlight on first focus.
1469 2008-09-16 Jonathan Pobst <monkey@jpobst.com>
1471 * TextControl.cs: Correctly calculate the height of the area we
1472 need to invalidate when we have started scrolling and viewport_y
1473 is used. [Fixes bug #387608]
1475 2008-09-16 Jonathan Pobst <monkey@jpobst.com>
1477 * TextControl.cs: When getting the SelectedText, don't add in
1478 NewLine characters, as they are already contained in the lines.
1481 2008-09-16 Jonathan Pobst <monkey@jpobst.com>
1483 * TextBoxBase.cs: Replace the buggy Lines setter with one that
1484 simply concats the lines and send it to the Text setter.
1485 [Fixes issue #2 and #3 of 388115]
1487 2008-09-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1489 * Binding.cs: The default value of DataSourceNullValue should be
1490 Convert.DBNull actually. Also, the NullValue should only be used *if*
1491 itself is not null, and use the null/Convert.DBNull value instead.
1493 2008-09-15 Jonathan Pobst <monkey@jpobst.com>
1495 * TextControl.cs: Add a method to convert a string newline to the
1497 * TextBoxBase.cs: When the user hits enter, insert a native newline.
1498 [Fixes part 1 of bug #388115]
1500 2008-09-15 Mario Carrion <mcarrion@novell.com>
1502 * ToolTip.cs: UnPopup event set to internal to match public API.
1504 2008-09-15 Jonathan Pobst <monkey@jpobst.com>
1506 * TextBoxBase.cs: If the user is using Ctrl-Tab to move focus, we
1507 have to remove the Ctrl in order for the focus moving code to kick in.
1510 2008-09-15 Jonathan Pobst <monkey@jpobst.com>
1512 * CheckedListBox.cs: Return the real item index from Add. It may not be
1513 the last item if the list is sorted. The user can change the NewValue in
1514 the ItemCheck event, we need to use that value if so.
1515 * ListBox.cs: Return the real item index from a sorted Add.
1518 2008-09-15 Ivan N. Zlatev <contact@i-nz.net>
1520 * MimeIcon.cs: Add null checks in the GnomeHandler, because it might
1521 happen that the icons from the theme is missing or the particular size
1525 2008-09-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1527 * Binding.cs: When assigning null or DBNull depending on value/ref type,
1528 use IsValueType instead to get the precise desired value.
1531 2008-09-12 Jonathan Pobst <monkey@jpobst.com>
1533 * TreeNodeCollection.cs: When adding a new node to an opened node,
1534 we have to invalidate everything below the parent node because
1535 every node scoots down and we have to repaint them.
1538 2008-09-12 Jonathan Pobst <monkey@jpobst.com>
1540 * ThemeWin32Classic.cs: Take CheckBox and RadioButton's CheckAlign
1541 property into account when drawing.
1544 2008-09-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1546 * ListBox.cs: When calling Items.Clear(), call
1547 SelectedIndexCollection.ClearCore instead of normal Clear method, to
1548 not fire any Selected*Changed event - this is done to match .net and
1549 don't have invalid values when changing the DataSourceProperty.
1552 2008-09-12 Mario Carrion <mcarrion@novell.com>
1554 * HelpProvider.cs: Control enabled to support accessibility.
1555 * Application.cs: Updated to Initialize UIA in HelpProvider.
1558 2008-09-12 Jonathan Pobst <monkey@jpobst.com>
1560 * Form.cs: When we are showing a dialog box, if its owner is TopMost,
1561 make the dialog TopMost as well.
1564 2008-09-12 Jonathan Pobst <monkey@jpobst.com>
1566 * Win32DnD.cs, XplatUIWin32.cs: Applied patch from Andy Hume that handles
1567 clipboard data better.
1570 2008-09-12 Jonathan Pobst <monkey@jpobst.com>
1572 * TextBoxBase.cs: Applied patch from John Mortlock that ensures
1573 TextChanged and SelectionChanged events fire in the same order as .Net.
1576 2008-09-12 Jonathan Pobst <monkey@jpobst.com>
1578 * DataGridView.cs: When sorting a column, if it only contains numbers,
1579 do a numeric sort instead of a string sort.
1582 2008-09-12 Jonathan Pobst <monkey@jpobst.com>
1584 * TableLayoutSettings.cs, TableLayoutStyleCollection.cs: Guard
1585 against NRE's when the settings have a null panel.
1586 * TableLayoutPanel.cs: When setting the TableLayoutSettings, ensure
1590 2008-09-11 Mario Carrion <mcarrion@novell.com>
1592 * ToolTip.cs: Control enabled to support accessibility.
1593 * Application.cs: Updated to Initialize UIA in ToolTip.
1596 2008-09-11 Jonathan Pobst <monkey@jpobst.com>
1598 * Control.cs: Make the custom Enumerator internal to fix build.
1600 2008-09-11 Jonathan Pobst <monkey@jpobst.com>
1602 * DataGridViewCheckBoxCell.cs: If our content is clicked and we aren't
1603 already in edit mode, begin edit mode. Generally edit mode isn't
1604 started until the second click, but CheckBoxes are special.
1606 2008-09-11 Jonathan Pobst <monkey@jpobst.com>
1608 * ErrorProvider.cs: Never try to add our icons to ContainerControl,
1609 since that can be set to anything. Always add them to the Control's
1610 parent. [Fixes bug #416058]
1612 2008-09-11 Jonathan Pobst <monkey@jpobst.com>
1614 * ListView.cs: Use a custom enumerator for ListViewItemCollection
1615 so items can be deleted in a foreach.
1618 2008-09-11 Jonathan Pobst <monkey@jpobst.com>
1620 * DataGridViewRow.cs: Better implementation of GetPreferredHeight.
1621 Store the user set explicit height so that the row can be AutoSized
1622 and then when AutoSize is turned off, it can get its original size back.
1623 * DataGridView.cs: Use the Row's GetPreferredHeight instead of
1624 duplicating the logic. When setting AutoSizeRowsMode to None, reset
1625 rows' heights back to their explicit values.
1628 2008-09-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1630 * DateTimePicker.cs: When getting focus, select the checkbox if we are
1631 already showing it. Also, don't change its value when pressing space
1632 if the checkbox is not visible (ShowCheckBox as false). Finally, the
1633 checkbox should remain selected as long as Checked is false, and the
1634 other parts are disabled.
1637 2008-09-11 Jonathan Pobst <monkey@jpobst.com>
1639 * MessageBox.cs: Handle shortcut keys to dialog buttons.
1642 2008-09-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1644 * Binding.cs: When the value retrieved from the control property is
1645 null, don't return Convert.DBNull for Nullable instances, since they
1646 can *actually* get a null value.
1649 2008-09-10 Jonathan Pobst <monkey@jpobst.com>
1651 * Control.cs: Add an internal field to force doublebuffering regardless
1652 of what the public mechanisms are set to. This is because MS's native
1653 controls are doublebuffered even though their .Net bits are set to false.
1654 * ProgressBar.cs: Set force_double_buffer to true.
1657 2008-09-10 Jonathan Pobst <monkey@jpobst.com>
1659 * DataGridViewCheckBoxColumn.cs: Use the threestate constructor for
1661 * DataGridViewCheckBoxCell.cs: Add proper support for threestate.
1662 * DataGridViewCell.cs: Implement GetEditedFormattedValue for types
1663 without EditingControls, paint background selection for types without
1664 EditingControls, reset the EditingCellValueChanged flag when the
1665 cell's value is committed.
1666 * DataGridView.cs: Make BeginEdit and EndEdit work with cells that don't
1667 have EditingControls, remove a double call to a cell's OnContentClickInternal,
1668 don't do cell changing logic in OnMouseDown if the cell didn't change.
1671 2008-09-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1673 * DateTimePicker.cs: Fix the edition of am/pm specifier.
1675 2008-09-09 Jonathan Pobst <monkey@jpobst.com>
1677 * TextControl.cs: Add "&" to the list of valid characters in a URL.
1679 2008-09-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1681 * DateTimePicker.cs: Before incrementing or decrementing any part in
1682 the textbox, end any current edit. Also when ending the current edit
1683 use the editing_part_index field instead of the current selected
1684 value, since they can be out of synch, and we really need to work on
1685 the *real* current edit part. Finally when PartData.Selected changes,
1686 always try to end any ongoing edit.
1687 This should fix some small errors handling mouse navigation and
1688 increase/decrease operations.
1690 2008-09-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1692 * DateTimePicker.cs: 'hh' and 'HH' formats (12 and 24 hour formats
1693 respectively) should handled different, since the 12 hours format
1694 needs the value typed by the user to be adjusted depending on the
1695 a.m/p.m value, so it is preserved, and only changed when the value
1696 reaches the 12 value (when it changes from a.m to p.m).
1697 Fixes part of #416555.
1699 2008-09-08 Jonathan Pobst <monkey@jpobst.com>
1701 * ToolStrip.cs: Ensure MouseDown gets called for MenuStrip items.
1702 * ToolStripDropDownItem.cs: Don't fire events and such again if
1703 ShowDropDown is called on an already dropped down item.
1704 * ToolStripMenuItem.cs: Call ShowDropDown even if there aren't any
1705 subitems, the user may add some in the DropDownOpening event.
1708 2008-09-08 Jonathan Pobst <monkey@jpobst.com>
1710 * ComboBox.cs: Fix IOORE when setting SelectedItem to null.
1713 2008-09-08 Jonathan Pobst <monkey@jpobst.com>
1715 * MdiClient.cs: When looking for menustrips on a child form to merge,
1716 look inside ToolStripContainers.
1719 2008-09-08 Ivan N. Zlatev <contact@i-nz.net>
1721 * ErrorProvider.cs: Unbreak my previous commit.
1723 2008-09-08 Ivan N. Zlatev <contact@i-nz.net>
1725 * ErrorProvider.cs: Icon should always be 16x16.
1728 2008-09-07 Ivan N. Zlatev <contact@i-nz.net>
1730 * GridEntry.cs: Invalidate the child items cache when the property
1733 2008-09-07 Ivan N. Zlatev <contact@i-nz.net>
1735 * GridEntry.cs, PropertyGridView.cs:
1736 - Update the ReadOnly detection and rendering to finally hopefully
1737 match the one of MSFT.
1738 - Niceify and move the debug CWLS.
1741 2008-09-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1743 * ListView.cs: Don't call Invalidate at all from SetItemLocation,
1744 since we are already calling Invalidate for the entire control when
1745 needed - and call Redraw() when size changes, since we need to paint
1746 there by ourselved and not anymore from the mentioned method.
1747 This should improve the layout process. Also clean some not needed calls
1750 2008-09-05 Jonathan Pobst <monkey@jpobst.com>
1752 * MenuAPI.cs: Add a null check to the Alt-F4 code.
1755 2008-09-05 Jonathan Pobst <monkey@jpobst.com>
1757 * ThreadExceptionDialog.cs: Disable AutoScaling for this dialog.
1760 2008-09-04 Ivan N. Zlatev <contact@i-nz.net>
1762 * GridEntry.cs, CategoryGridEntry.cs, RootGridEntry.cs, PropertyGrid.cs,
1763 PropertyGridView.sc: Implement lazy/delayed propertygrid population
1764 on item expansion. Improves performance and fixes bug #417955.
1767 2008-09-05 Stephane Delcroix <sdelcroix@novell.com>
1769 * Control.cs: only check for OptimizedDoubleBuffer in NET_2_0.
1772 2008-09-04 Jonathan Pobst <monkey@jpobst.com>
1774 * TextControl.cs: Add "_" to the list of valid characters in a URL.
1777 2008-09-04 Jonathan Pobst <monkey@jpobst.com>
1779 * Control.cs: If using OptimizedDoubleBuffer, ensure the clip
1783 2008-09-04 Jonathan Pobst <monkey@jpobst.com>
1785 * FontDialog.cs: When storing our font size from the starting font,
1786 use SizeInPoints instead of Size in case Size is a different unit
1790 2008-09-04 Jonathan Pobst <monkey@jpobst.com>
1792 * FileDialog.cs: When enter is pressed on a SaveFileDialog and we
1793 don't use it for anything else, check if a directory is highlighted.
1794 If it is, navigate into it.
1797 2008-09-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1799 * Binding.cs: When acquiring a BindingManagerBase for the first time,
1800 check that the specified property actually exists in the data source,
1801 and throw an ArgumentException if that's not the case - this is only
1802 done for this scenario, since for later cases (such Position changes)
1803 we throw different exceptions (match .Net).
1805 2008-09-03 Ivan N. Zlatev <contact@i-nz.net>
1807 * ButtonBase.cs CheckBox.cs, Control.cs, FlowLayoutPanel.cs,
1808 FlowLayoutSettings.cs, GroupBox.cs, Label.cs, ListBox.cs,
1809 PropertyGrid.cs, RadioButton.cs, TableLayoutPanel.cs,
1810 TableLayoutSettings.cs, ToolStrip.cs, ToolStripDropDownButton.cs,
1811 ToolStripDropDownMenu.cs, ToolStripItem.cs, ToolStripSplitButton.cs,
1812 ToolStripStatusLabel.cs: Add missing PerformLayout calls to various
1816 2008-09-03 Neville Gao <nevillegao@gmail.com>
1818 * StatusBar.cs: Control enabled to support accessibility.
1821 2008-09-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1823 * Binding.cs: When connecting the event handler for the "Changed"
1824 event for the property, only do it for PropertyManager, and not for
1825 CurrencyManager - this is exactly what does .Net, totally ignoring any
1826 change in the property of the elements of a list.
1829 2008-09-02 Jonathan Pobst <monkey@jpobst.com>
1831 * XplatUIWin32.cs: Ensure we never send the WS_EX_MDICHILD flag
1832 to Windows when creating a window, as we fake MDI stuffs.
1835 2008-09-01 Ivan N. Zlatev <contact@i-nz.net>
1837 * TextBox.cs: Invalidate after UseSystemPasswordChar, so that the
1838 change takes effect.
1840 2008-08-24 Ivan N. Zlatev <contact@i-nz.net>
1842 * XplatUIX11.cs: Provide MouseButtons/State information to the XPlatUI.
1845 2008-08-27 Jonathan Pobst <monkey@jpobst.com>
1847 * DataGridView.cs: Raise CellContentClick event.
1848 [Fixes part of bug #420351]
1850 2008-08-27 Mario Carrion <mcarrion@novell.com>
1852 * ScrollBar.cs: Control enabled to support accessibility.
1855 2008-08-27 Mario Carrion <mcarrion@novell.com>
1857 * ComboBox.cs: Control enabled to support accessibility.
1860 2008-08-27 Mario Carrion <mcarrion@novell.com>
1862 * ListBox.cs: Control enabled to support accessibility.
1865 2008-08-27 Jonathan Pobst <monkey@jpobst.com>
1867 * ComboBox.cs: Don't suppress the TextChanged event when changing
1869 * ToolStripComboBox.cs: Listen to the ComboBox's TextChanged event
1873 2008-08-26 Jonathan Pobst <monkey@jpobst.com>
1875 * ErrorProvider.cs: Fix a regression NRE when setting properties
1876 for a control before it has a parent.
1879 2008-08-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1881 * Binding.cs: Use the BindingManagerBase.Current value to obtain
1882 connect the property "Changed" event, instead of using the data
1883 sources - this is useful when the property specifies actually a
1884 multiple objects path.
1885 Fixes part of #417973.
1887 2008-08-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1889 * RelatedPropertyManager.cs: PropertyManager instances associated to a
1890 nested properties should return not the properties of the data source
1891 itself, but the properties of the type of a specific property in the
1892 data source - match .net.
1894 2008-08-24 Gert Driesen <drieseng@users.sourceforge.net>
1896 * ListBox.cs (IntegerCollection): To avoid duplication, moved code for
1897 AddRange overloads into AddItems method, and added missing NULL check.
1898 Added extra argument check to RemoveAt for compatibility with MS.
1899 Modified IList implementation of Add, Contains, IndexOf and Remove to
1900 throw an ArgumentException if item is not an int. Modified IList.Insert
1901 to throw a NotSupportException instead of an Exception. Implemented
1903 (ObjectCollection): To avoid duplication, use AddItems method from
1904 AddRange overloads. On 1.0 profile, first perform NULL check on items
1907 2008-08-23 Gert Driesen <drieseng@users.sourceforge.net>
1909 * Control.cs: Do not modify bounds directly in .ctor's. Fixes bug
1912 2008-08-22 Atsushi Enomoto <atsushi@ximian.com>
1914 * X11Keyboard.cs : comment out some Console.WriteLine().
1916 2008-08-22 Atsushi Enomoto <atsushi@ximian.com>
1918 * X11Keyboard.cs : fixed wrong call to XOpenIM() which happened
1919 even if premises are not filled. Also XLookupString() was not
1920 receiving correct input, which blocked precise input handling
1923 2008-08-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1925 * ListView.cs: When calling OnCacheVirtualItems, cast to the right
1926 type of delegate, instead of EventHandler - this was causing a type
1927 cast exception in all apps handling this event.
1930 2008-08-20 Jonathan Pobst <monkey@jpobst.com>
1932 * ToolStripDropDownItem.cs: Always raise DropDownOpening in
1933 ShowDropDown to give the user a chance to dynamically add
1934 drop down items. [Step 1 of fixing bug #417877]
1936 2008-08-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1938 * X11Dnd.cs: Don't fire pseudo motion DragOver events if we haven't
1939 had any mouse motion since the call to StartDrag, to match the dnd
1941 Fixes part of #381876.
1943 2008-08-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1945 * XplatUIX11.cs: Only do the children control bounds check for EnterNotify
1946 if mode is NotifyUngrab, and let it flow if mode is NotifyNormal.
1947 Also, if we are actually moving into a different window after
1948 grabbing, generate a LeaveNotify event for the previous window, since
1949 we need to fire the leave events until the grab ends, not when
1950 actually moving outside of the control.
1952 2008-08-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1954 * XplatUIX11.cs: The check inside EnterNotify case to fire MouseEnter
1955 events only for client windows was wrong - we need to compare the
1956 client window against the window receiving the EnterNotify event, not
1957 against zero (since client window is never Zero, btw).
1958 This prevents having unnecessary handling of EnterNotify events for
1959 non-client windows when a gran begins.
1961 2008-08-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1963 * XplatUIX11.cs: Handling X ButtonPress events, we must *not* generate
1964 MouseMove/MotionNotify events at all (which should only happen after
1965 MouseUp/ButtonRelease, as .Net does).
1966 This avoids firing an extra and unnecessary MouseMove event just after
1967 every MouseDown event.
1969 2008-08-19 Jonathan Pobst <monkey@jpobst.com>
1971 * LinkLabel.cs: Always clear any previous links when LinkArea
1972 is set. [Fixes bug #410709]
1974 2008-08-19 Jonathan Pobst <monkey@jpobst.com>
1976 * ToolStripProfessionalRenderer.cs: Revert last change.
1977 * ProfessionalColorTable.cs: For Classic, use SystemColors.Window
1978 for ToolStripDropDownBackground.
1980 2008-08-19 Jonathan Pobst <monkey@jpobst.com>
1982 * ToolStripProfessionalRenderer.cs: Use Window color for the
1983 background of dropdowns to match .Net when the user is not
1984 using the default white. [Fixes bug #418108]
1986 2008-08-19 Atsushi Enomoto <atsushi@ximian.com>
1988 * XplatUIWin32.cs : SetTimer() used to set wrong window handle and
1989 it caused timer registration twice. Fixed bug #418107.
1991 2008-08-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1993 [Correction: This is the actual change to X11Dnd issue, not the
1994 previous one, which was actually a different issue.]
1996 * X11Dnd.cs: Increase the interval for the Timer, to not fire our
1997 pseudo motion HandleMouseOver method so aggresive. Also, don't call it
1998 when the pointer is actually in motion, but only when the pointer
1999 seems to stop (as .net does).
2000 Fixes part of #381876.
2003 2008-08-18 Jonathan Pobst <monkey@jpobst.com>
2005 * ListBox.cs: Fix CopyTo implementation.
2008 2008-08-18 Jonathan Pobst <monkey@jpobst.com>
2010 * ThemeWin32Classic.cs: Use ClientRectangle instead of Bounds when
2011 drawing a ComboBox's background. Fixes bad disabled rendering when
2012 the control is not at 0,0.
2015 2008-08-16 Ivan N. Zlatev <contact@i-nz.net>
2017 * GridEntry.cs: Leave the ICustomTypeDescriptor handling up to the
2018 ComponentModel layer, which will properly prioritize the attributes.
2019 Avoids wrong prioritization of duplicate attributes when retrieving
2020 the converter and editor.
2023 2008-08-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2025 * XplatUIX11.cs: Increase the interval for the Timer, to not fire our
2026 pseudo motion HandleMouseOver method so aggresive. Also, don't call it
2027 when the pointer is actually in motion, but only when the pointer
2028 seems to stop (as .net does).
2029 Fixes part of #381876.
2031 2008-08-15 Ivan N. Zlatev <contact@i-nz.net>
2033 * GridEntry.cs: Perform stricter check for the ParentEntry's
2034 PropertyDescriptor/PropertyOwner for the ICustomTypeDescriptor
2038 2008-08-14 Geoff Norton <gnorton@novell.com>
2040 * XplatUICarbon.cs: Properly implement PeekMessage and DoEvents.
2041 Fixes #396983. Properly fix ActiveWindow trackin and do not
2042 prematurely show POPUP windows.
2044 2008-08-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2046 * XplatUIX11.cs: Handle the obscured regions while scrolling using
2047 GraphicsExpose event, processing it just after we copy the scrolled
2048 area. This ensures that the next calls to ScrollWindow will copy
2049 regions already updated, and the scrolling will be smooth. Also remove
2050 the code that was trying to detect the obscured regions, since we are
2051 not using it anymore (too slow).
2053 2008-08-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2055 * ListBox.cs: Fix the -temporary- broken selection in ListBox for
2056 MultiExtended mode, by separating some logic between the ctrl/shift
2057 handling. Also ignore any MouseMove events generated together with
2058 MouseDown events - we are only interested in the real motion event.
2059 Fixes part of #414963.
2061 2008-08-08 Jonathan Pobst <monkey@jpobst.com>
2063 * DataGridViewCell.cs: Guard against an AOORE when checking if a cell
2064 is selected. [Fixes bug #414143]
2066 2008-08-07 Ivan N. Zlatev <contact@i-nz.net>
2068 * GridEntry.cs: Check if current property is a ICustomTypeDescriptor
2069 and not the parent one (the propertyowner). Fixes the behavior of
2070 GetConverter/GetEditor.
2073 2008-08-07 Ivan N. Zlatev <contact@i-nz.net>
2075 * PropertyGrid.cs: Refresh should also repopulate the PropertyGrid.
2076 [Fixes part of bug #415452]
2078 2008-08-05 Ivan N. Zlatev <contact@i-nz.net>
2080 * GridEntry.cs: ITypeDescriptorContext should be relative to the parent
2081 GridEntry, not the current.
2084 2008-08-04 Ivan N. Zlatev <contact@i-nz.net>
2086 * TextBoxBase.cs: De-internalize max_length field.
2087 * RichTextBox.cs: Use base.MaxLength - both TextBoxBase and RichTextBox
2088 share the same logic.
2091 2008-08-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2093 * ListBox.cs: Selection changes made in the MouseDown handler should
2094 use the *Core versions of selection in SelectedIndices collection,
2095 since the SelectedIndexChanged/SelectedValueChanged events are fired
2096 until we get a MouseUp event, and thus we need to separate the logic
2097 from the events, as done in the keyboard navigation. Also, fire those
2098 selection events from keyboard navigation in SelectionMode.None, even
2099 if we don't have a selection, as .Net does.
2101 2008-08-01 Jonathan Pobst <monkey@jpobst.com>
2103 * ToolStripButton.cs, ToolStripMenuItem.cs: Guard against a NRE my
2104 last change introduced when an item is clicked but isn't on a toolstrip.
2106 2008-07-31 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2108 * ListBindingHelper.cs: When looking for an object's properties, check
2109 if it implements ICustomTypeDescriptor, in which case we should
2110 resolve the propertu based on its GetProperties method, not in its
2111 actual properties. This is what .Net seems to do.
2112 Fixes a UsingWebBrowser problem during initialization.
2114 2008-07-31 Jonathan Pobst <monkey@jpobst.com>
2116 * ToolStrip.cs: Fix an NRE caused by clicking on a ToolStripButton
2117 sitting on a MenuStrip.
2119 2008-07-31 Jonathan Pobst <monkey@jpobst.com>
2121 * ToolStripButton.cs: If we "click" a top button on a menustrip that has
2122 no children with the keyboard, we need to release the keyboard capture.
2125 2008-07-31 Jonathan Pobst <monkey@jpobst.com>
2127 * ToolStripMenuItem.cs: If we "click" a top level menu item that has
2128 no children with the keyboard, we need to release the keyboard capture.
2131 2008-07-31 George Giolfan <georgegiolfan@yahoo.com>
2133 * ThemeVisualStyles.cs: Made ScrollBar rendering less strict so it supports
2134 the GTK+-based implementation of VisualStyles.
2135 * ThemeWin32Classic.cs: Exposed various layout values for use in the
2136 GTK+-based implementation of VisualStyles: ListViewGetHeaderHeight(Font),
2137 ListViewGetHeaderHeight(), ProgressBarChunkSpacing, ProgressBarGetChunkSize(),
2138 ProgressBarGetChunkSize(int), ProgressBarDefaultHeight,
2139 TrackBarGetThumbSize(), TrackBarVerticalTrackWidth,
2140 TrackBarHorizontalTrackHeight.
2142 2008-07-31 George Giolfan <georgegiolfan@yahoo.com>
2144 * TabControl.cs: Added hot style handling for the scroll buttons.
2145 right_slider_state, left_slider_state are now of type PushButtonState to
2146 allow for a hot state. Added tracking of the mouse button being held down
2147 on a tab page. Extracted HasHotElementStyles, RightScrollButtonArea,
2148 LeftScrollButtonArea.
2149 * Theme.cs, ThemeWin32Classic.cs: Removed TabControlGetLeftScrollRect,
2150 TabControlGetRightScrollRect.
2152 2008-07-30 Everaldo Canuto <ecanuto@novell.com>
2154 * MenuAPI.cs: Check for null GrabControl on ProcessMnemonic to prevent
2157 2008-07-30 Ivan N. Zlatev <contact@i-nz.net>
2159 * Form.cs: Ensure that we reset the shown_raised flag after
2160 the form is closed, so that we raise the show events the next
2161 time the form is shown.
2164 2008-07-30 Ivan N. Zlatev <contact@i-nz.net>
2166 * Form.cs: Ensure closing events are raised only once.
2169 2008-07-30 Ivan N. Zlatev <contact@i-nz.net>
2171 * X11Keyboard.cs: Refactor SendKeyboardInput to accept the keycode,
2172 so that we can successfully generate the LParam in-place instead of
2173 in KeyEvent, which isn't called for e.g. MainMenu. Fixes keyboard
2174 navigation for menus.
2176 2008-07-30 Everaldo Canuto <ecanuto@novell.com>
2178 * MenuAPI.cs: When montion don't set the keyboard navigation state to
2179 'navigating'. Fixes bug #411356.
2181 2008-07-30 Everaldo Canuto <ecanuto@novell.com>
2183 [Fixed remaining issues of #406773 (#1)]
2184 * MenuItem.cs: UpdateMenuItem added to track the shotcut changes.
2186 * MenuAPI.cs: Don't create tracker on TrackPopupMenu, it will be created in
2187 MainMenu (already done) and ContextMenu creation.
2189 * ContextMenu.cs: Create tracker on construction.
2191 2008-07-30 Everaldo Canuto <ecanuto@novell.com>
2193 * MenuAPI.cs: For ContextMenu set GrabControl on TrackPopupMenu, it make
2194 possible to instantiate MenuTracker without GrabControl.
2196 2008-07-30 Everaldo Canuto <ecanuto@novell.com>
2198 * MenuAPI.cs: On constructor dont set the GrabControl for non ContextMenu.
2200 * MainMenu.cs: Set GrabControl on SetForm using current form.
2202 2008-07-30 Everaldo Canuto <ecanuto@novell.com>
2204 * MenuAPI.cs: Chage grab_control to GrabControl and make it public.
2206 2008-07-30 Everaldo Canuto <ecanuto@novell.com>
2208 * MenuAPI.cs: Check if menu is activated before deactivate it in
2211 2008-07-30 Ivan N. Zlatev <contact@i-nz.net>
2213 * TableLayoutStyleCollection, TableLayoutStyle.cs, RowStyle.cs,
2215 Make the TableLayoutStyle owned by the the TableLayoutPanel, so that:
2216 - One style instance can only participate in a single style collection.
2217 - Styles can request their owner to layout whenever their properties
2219 [Fixes bugs #412583 and #412582]
2221 2008-07-29 Ivan N. Zlatev <contact@i-nz.net>
2223 * X11Keyboard.cs: Implement the generation of the LParam for
2224 all keyboard messages.
2227 2008-07-29 Jonathan Pobst <monkey@jpobst.com>
2229 * ListBox.cs: Don't let the user set TopIndex so high that it
2230 scrolls up far enough to show empty items.
2233 2008-07-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2235 * ThemeWin32Classic.cs: Actually commit the changes to fix #410880
2236 (I'm an idiot and forgot to commit the actual changes, as well as
2237 specify the right file, which is this one, not ListView.cs).
2239 2008-07-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2241 * ListView.cs: Don't draw ListViewSubItem instances from
2242 DrawListViewItem - we need to reuse the main item's drawing for the
2243 first sub item in case owner draw is true, but wants the system to
2244 do the default draw for the first sub item, without incurring in a
2248 2008-07-28 Jonathan Pobst <monkey@jpobst.com>
2250 * ToolStripButton.cs: Update Checked for CheckOnClick before
2251 raising the Click event. [Fixes bug #412505]
2253 2008-07-28 Ivan N. Zlatev <contact@i-nz.net>
2255 * Form.cs: Remove some seems leftover code for non-TopLevel's
2256 CreateParams, which is breaking ClientSize sizing, because it
2257 removes the border window styles.
2259 2008-07-27 Ivan N. Zlatev <contact@i-nz.net>
2261 * PropertyGrid.cs: Invalidate the View when the PropertyTab
2264 2008-07-25 Gert Driesen <drieseng@users.sourceforge.net>
2266 * WebBrowser.cs: Removed debug output.
2268 2008-07-25 Jonathan Pobst <monkey@jpobst.com>
2270 * FileDialog.cs: Apply patch from Ernesto to clean up some
2273 2008-07-25 Ivan N. Zlatev <contact@i-nz.net>
2275 * TableLayoutPanel.cs: Perform layout on GrowStyle change, so
2276 that the change has an immediate effect.
2278 2008-07-25 Ivan N. Zlatev <contact@i-nz.net>
2280 * ScrollableControl.cs: Update PerformLayout calls to include
2281 provide the name of the property that changed.
2283 2008-07-25 Ivan N. Zlatev <contact@i-nz.net>
2285 * TableLayoutPanel.cs: Draw relative to the DisplayRectangle
2286 location. Fixes drawing of border and cell borders if scrollable.
2288 2008-07-25 Ivan N. Zlatev <contact@i-nz.net>
2290 * ScrollableControl.cs: Perform layouting after the AutoScroll
2291 properties have changed, so that the changes have immediate
2295 2008-07-25 Ivan N. Zlatev <contact@i-nz.net>
2297 * XplatUIX11.cs: Non Client area is actually Client such in the
2298 case of NotifyIcon, so double check WholeWindow == ClientWindow
2299 when adding an expose.
2300 [Fixes bugs #324237 and #357022]
2302 2008-07-25 Ivan N. Zlatev <contact@i-nz.net>
2304 * TableLayoutPanel.cs: Invalidate after layouting, so that we
2305 repaint the cell borders.
2307 2008-07-25 Ivan N. Zlatev <contact@i-nz.net>
2309 * PropertyGridTextBox.cs: Stop filtering messages prior to our
2310 disposal to avoid unexpected ObjectDisposedExceptions.
2312 2008-07-24 Ivan N. Zlatev <contact@i-nz.net>
2314 * TableLayoutPanel.cs: Layout on Row/Column count change.
2316 2008-07-22 Gert Driesen <drieseng@users.sourceforge.net>
2318 * ListViewItem.cs: Changed binary serialization to match MS. Fixes
2320 * PictureBox.cs: When ImageLocation is set to null or an empty string,
2321 only set image to null if it was previously initialized from an url
2322 (or using ImageLocation). In ImageLocation, load specified image
2323 asynchronously if WaitOnLoad is false. Added support for local file
2324 paths to LoadAsync, and added missing argument check.
2326 2008-07-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2328 * DateTimePicker.cs:
2329 * ThemeWin32Classic.cs: Add a editing capability to DateTimePicker, in
2330 order to set the value as required (which means: when selection
2331 changes for a part being edited, and not before that if not needed).
2332 Also use an enum to describe which part are we using, and use the
2333 selection as a property in PartData, in order to notify the
2334 DateTimePicker owner that we need to end the current edit.
2337 2008-07-17 Ivan N. Zlatev <contact@i-nz.net>
2339 * PropertyGridTextBox.cs: Validation should be performed only if we
2340 are focused. We can lose focus for example if the Return key is used
2341 to set the entry and there is an error. When the message box is
2342 displayed we would have validate on click in the message box.
2344 2008-07-16 Ivan N. Zlatev <contact@i-nz.net>
2346 * GridEntry.cs: Checking for DesignerSerializaitonVisibility.Content
2347 in order to determine that we are expandable is wrong. There was a bug,
2348 now fixed, in TypeDescriptor that was causing the wrong converter to be
2349 returned which caused GetPropertiesSupported == false in most cases.
2352 2008-07-15 Jonathan Pobst <monkey@jpobst.com>
2354 * ImageList.cs: Fix ICollection.CopyTo implementation for
2355 ImageListCollection. [Fixes bug #409169]
2357 2008-07-14 Jonathan Pobst <monkey@jpobst.com>
2359 * MenuAPI.cs, ToolStripDropDown.cs: Use VirtualScreen instead of
2360 WorkingArea so that menus can appear on the second monitor
2361 when one has dual monitors.
2363 2008-07-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2365 * TextBox.cs: Auto complete stuff in WndProc should be 2.0 only.
2368 2008-07-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2370 * TextBox.cs: Implement navigation support for auto complete in
2371 TextBox, as well as refactor the code to show the auto complete window
2372 when receiving a WM_CHAR message, instead of TextChanged, since
2373 autocomplete itself should be able to set the Text a lot of times and
2374 finally only typing should show it, not changes from code.
2376 2008-07-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2378 * TabControl.cs: When expanding the selected tab, don't adjust the
2379 width if alignment is Right, since it has a different offset than 0,
2380 as opposed to the other alignments.
2381 Fixes the selected tab not being painted at all with alignment = Right
2382 and using FillToRight size mode.
2384 2008-07-14 Jonathan Pobst <monkey@jpobst.com>
2386 * TreeView.cs: Fix ToString to match MS. [Fixes bug #409029]
2388 2008-07-14 Jonathan Pobst <monkey@jpobst.com>
2390 * NumericUpDown.cs: Apply patch from Andy Hume to clamp out of range
2391 values from the textbox to the boundary values. [Fixes bug #409026]
2393 2008-07-14 Jonathan Pobst <monkey@jpobst.com>
2395 * TreeNodeCollection.cs: We were copying one too many elements when
2396 doing our array copy. Fixes a crash when RemoveAt is called.
2399 2008-07-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2401 * TabControl.cs: When doing the layout and need to call FillRow -using
2402 FillToRight size mode-, use the overload receiving a bool param
2403 indicating whether we need to do a vertical or horizontal calculation.
2404 Fixes part of #399583.
2406 2008-07-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2408 * TextBox.cs: When painting, use the value returned by
2409 GetLastVisibleItem instead of using the cached last_item field, since
2410 there could be a desynchronization between the layout and the
2411 painting. Fixes a AOOR exception in auto complete mode.
2413 2008-07-12 George Giolfan <georgegiolfan@yahoo.com>
2415 * ThemeVisualStyles.cs: Disabled when Application.VisualStyleState is
2416 NonClientAreaEnabled until our VisualStyles is modified to allow it.
2418 2008-07-12 Gert Driesen <drieseng@users.sourceforge.net>
2420 * TextBox.cs: Fixed NRE in LostFocus. Avoid unnecessary initialization.
2422 2008-07-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2424 * TextBox.cs: When focus is lost, if the auto complete listbox is
2427 2008-07-11 George Giolfan <georgegiolfan@yahoo.com>
2429 * InternalWindowManager.cs: HandleSizing: Implemented a better minimum
2430 tracking size for tool windows.
2431 * Theme.cs, ThemeWin32Classic.cs : Extracted
2432 ManagedWindowSpacingAfterLastTitleButton.
2434 2008-07-11 Jonathan Pobst <monkey@jpobst.com>
2436 * ThemeEngine.cs: Remove the clearlooks, nice, and old gtk themes.
2437 They are bit-rotted and have always been listed as "unsupported".
2439 2008-07-11 Jonathan Pobst <monkey@jpobst.com>
2441 * PictureBox.cs: Don't crash if ImageLocation is set to "" or null.
2443 2008-07-11 George Giolfan <georgegiolfan@yahoo.com>
2445 * ThemeVisualStyles.cs: Fixed minimized window height adjustment.
2447 2008-07-10 Jonathan Pobst <monkey@jpobst.com>
2449 * ListBox.cs: Make sure last_item_visible gets reset before we try
2450 to do a layout due to scrollbars appearing or disappearing.
2453 2008-07-10 Jonathan Pobst <monkey@jpobst.com>
2455 * XPlatUIWin32.cs: Change GetMenuOrigin to calculate borders better
2456 for different window themes. [Fixes bug #339140]
2458 2008-07-10 George Giolfan <georgegiolfan@yahoo.com>
2460 * ThemeWin32Classic.cs: Implemented minimized window border width properly,
2461 in ManagedWindowBorderWidth.
2463 2008-07-10 Jonathan Pobst <monkey@jpobst.com>
2465 * InternalWindowManager.cs: Change MouseMove to take a point, so
2466 we can use the same point later on.
2467 * MdiWindowManager.cs: Store point sent to MouseMove so we can
2468 later reset to it. On Windows, the Cursor.Position had already
2469 changed by the time we were resetting to it.
2472 2008-07-10 Jonathan Pobst <monkey@jpobst.com>
2474 * InternalWindowManager.cs: Ignore mouse actions on TitleButtons that
2476 * ThemeWin32Classic.cs: Disable or hide MinimizeBox/MaximizeBox if
2480 2008-07-10 Jonathan Pobst <monkey@jpobst.com>
2482 * MdiWindowManager.cs: Double-clicking on the title bar should not
2483 maximize a MDI form if MaximizeBox = false.
2485 2008-07-10 George Giolfan <georgegiolfan@yahoo.com>
2487 * ThemeVisualStyles.cs: Fixed a warning.
2489 2008-07-10 George Giolfan <georgegiolfan@yahoo.com>
2491 * ThemeVisualStyles.cs: Fixed warnings and formatted.
2493 2008-07-10 George Giolfan <georgegiolfan@yahoo.com>
2495 * ThemeVisualStyles.cs: Removed ManagedWindowGetMenuButtonSize. The base
2496 implementation produces a better result.
2498 2008-07-10 George Giolfan <georgegiolfan@yahoo.com>
2500 * ThemeVisualStyles.cs: Adjusted height and border rendering for minimized
2503 2008-07-10 George Giolfan <georgegiolfan@yahoo.com>
2505 * Application.cs: Added VisualStylesEnabled because XplatUI.ThemesEnabled
2506 cannot be used from the ThemeEngine constructor.
2507 * ThemeEngine.cs: Changed the XplatUI.ThemesEnabled check to
2508 Application.VisualStylesEnabled because it does not work on X11.
2510 2008-07-09 Jonathan Pobst <monkey@jpobst.com>
2512 * StatusBar.cs: Apply patch from Andy Hume to remove lazy instantiation
2513 that we did not always check for, as well as fixes to the IList
2514 implementations. [Fixes bug #402703]
2516 2008-07-09 George Giolfan <georgegiolfan@yahoo.com>
2518 * IDeviceContext.cs: Added Dispose.
2520 2008-07-09 George Giolfan <georgegiolfan@yahoo.com>
2522 * Control.cs: Added OnSizeInitializedOrChanged.
2523 * Form.cs: OnLoadInternal: Added a call to
2524 Control.OnSizeInitializedOrChanged.
2525 * InternalWindowManager.cs:
2526 * HandleTitleBarMouseMove: No longer invalidates the parent window.
2527 * DrawTitleButton: Extracted Theme.ManagedWindowDrawMenuButton.
2528 * TitleButton: Added Entered.
2529 * TitleButtons.MouseMove: Added handling of TitleButton.Entered.
2530 * MdiWindowManager.cs:
2531 * HandleTitleBarMouseMove: Now invalidates the parent window when a mouse
2532 move over the maximized title buttons causes a change.
2533 * IsActive: Can now be called before the window is added to a MDI parent.
2534 * Theme.cs: Added ManagedWindowTitleButtonHasHotElementStyle,
2535 ManagedWindowDrawMenuButton, ManagedWindowOnSizeInitializedOrChanged.
2536 * ThemeVisualStyles.cs: Implemented proper managed window rendering.
2537 * ThemeWin32Classic.cs:
2538 * Extracted ManagedWindowDrawTitleBarAndBorders, ManagedWindowDrawTitleButton.
2539 * DrawTitleButton takes a new form parameter.
2540 * Added ManagedWindowTitleButtonHasHotElementStyle,
2541 ManagedWindowDrawMenuButton, ManagedWindowOnSizeInitializedOrChanged.
2543 2008-07-09 George Giolfan <georgegiolfan@yahoo.com>
2545 * ThemeEngine.cs: ThemeVisualStyles is now selected if
2546 Application.EnableVisualStyles has been called, even if the current system
2547 configuration does not support rendering with Visual Styles.
2548 * ThemeVisualStyles.cs: Now falls back to ThemeWin32Classic when Visual
2549 Styles should not be used.
2551 2008-07-08 Jonathan Pobst <monkey@jpobst.com>
2553 * ComboBox.cs: PreferredHeight is not tied to ItemHeight. Fixes 3rd
2554 ComboBox in FormsTest.
2556 2008-07-08 Ivan N. Zlatev <contact@i-nz.net>
2558 * ThemeWin32Classic.cs: (ManagedWindowBorderWidth): width 3 is only
2559 for fixed toolwindows.
2561 2008-07-08 George Giolfan <georgegiolfan@yahoo.com>
2563 * Form.cs: SetBoundsCore: Added minimum size for minimized windows.
2565 2008-07-07 Ivan N. Zlatev <contact@i-nz.net>
2567 * Control.cs: CreateControl just returns if the Control is diposed
2568 and doesn't throw ObjectDisposedException.
2571 2008-07-07 Ivan N. Zlatev <contact@i-nz.net>
2573 * Control.cs: Do not create the control if the parent isn't created
2574 yet, e.g in the case of a parented form on which .Show is called.
2575 It will be created when the parent is made visible/created.
2578 2008-07-07 Ivan N. Zlatev <contact@i-nz.net>
2580 * Form.cs: Avoid recursively calling OnSizeChanged due to recursive
2581 WM_WINDOWPOSCHANGED caused by the layouting code on win32.
2584 2008-07-07 Ivan N. Zlatev <contact@i-nz.net>
2586 * Form.cs: When disposed set owner to null. Improves #402446.
2588 2008-07-07 Ivan N. Zlatev <contact@i-nz.net>
2590 * Form.cs, FlowLayoutPanel.cs: When calculating the PreferredSize
2591 use children's PreferredSize if in AutoSize mode and ExplicitBounds
2593 * Form.cs: Take the Padding into account for the PreferredSize.
2596 2008-07-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2598 * TabControl.cs: Since we don't support more than one direction in
2599 TabControl rows alignment (this is, the row becomes the
2600 bottom row when selected), make Direction return always 1. This way
2601 the layout doesn't get confused about a bad calculation.
2604 2008-07-07 Ivan N. Zlatev <contact@i-nz.net>
2606 * XplatUIX11.cs: Implement NC hit-testing for mouse down/up messages,
2607 so that the wparam is properly set.
2608 Fixes form moving in the test case in bug 402446.
2610 2008-07-07 Jonathan Pobst <monkey@jpobst.com>
2612 * FolderBrowserDialog.cs: If we can't find the SelectedPath, display
2613 the full tree instead of nothing. [Improves bug #406584]
2615 2008-07-07 George Giolfan <georgegiolfan@yahoo.com>
2617 * ThemeWin32Classic.cs: Adjusted minimized window painting.
2619 2008-07-07 George Giolfan <georgegiolfan@yahoo.com>
2621 * InternalWindowManager.cs: No longer draws decorations for maximized MDI
2624 2008-07-04 Jonathan Pobst <monkey@jpobst.com>
2626 * TreeView.cs: Add a null check when using CollapseAll on an
2627 empty tree. [Fixes bug #406449]
2629 2008-07-03 Jonathan Pobst <monkey@jpobst.com>
2631 * Form.cs: Make OnMenuComplete internal so we can call it.
2632 * MenuAPI.cs: Raise Form.MenuComplete when a menu item is clicked.
2635 2008-07-03 Jonathan Pobst <monkey@jpobst.com>
2637 * TabControl.cs: Handle Up and Down keys when TabControl is in
2641 2008-07-03 Jonathan Pobst <monkey@jpobst.com>
2643 * TabControl.cs: Invalidate when we remove a tab. Guard against
2644 an AOORE when trying to remove a tabpage that is not owned by the
2648 2008-07-03 Jonathan Pobst <monkey@jpobst.com>
2650 * ScrollBar.cs: Change the LargeChange calculation to be correct.
2651 Ensure we are using LargeChange instead of large_change so we our
2652 calculations are correct.
2655 2008-07-03 Jonathan Pobst <monkey@jpobst.com>
2657 * TableLayoutPanel.cs: When we change to a serialized TableLayoutSettings,
2658 we need to ensure the ColumnCount/RowCount gets set.
2661 2008-07-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2663 * ListBox.cs: When handling item navigation, if selection mode is
2664 None, call EnsureVisible, since scrolling is normally handled by
2665 selection, that we are not calling in this case.
2668 2008-07-02 Jonathan Pobst <monkey@jpobst.com>
2670 * ContainerControl.cs: Apply a patch from Ernesto Carrea that adds
2671 a null check to our focus walking code. [Fixes bug #394332]
2673 2008-07-02 Andy Hume <andyhume32 at yahoo dot co dot uk>
2675 * ComboBox.cs: Case missed in bug 379596 "Support item
2676 navigation by entering text": On _close_ drop-down select
2677 the first item matching the text in the textbox. [Fixes bug #397265]
2679 2008-07-02 Jonathan Pobst <monkey@jpobst.com>
2681 * DataGridView.cs: Fix a crash when sorting by column headers,
2682 mentioned in bug #404841. Remove some dead switch cases.
2684 2008-07-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2687 * TextBox.cs: Implement AutoComplete support for ComboBox, which just
2688 uses the AutoComplete support in the internal TextBox. Also TextBox
2689 can store a reference to ComboBox, in case AutoCompleteSource is set
2690 to ListItems (this is, ComboBox's items, and we don't want to pass an
2691 additional collection).
2693 2008-07-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2695 * ListViewItem.cs: Restore the initial value of bounds rect to
2696 Rectangle.Empty, and is this value for Layout detection in virtual
2697 mode. Fixes the tests.
2699 2008-06-30 Jonathan Pobst <monkey@jpobst.com>
2701 * XPlatUI.cs: Remove references to "new" X11 backend.
2703 2008-06-28 Ivan N. Zlatev <contact@i-nz.net>
2705 * Control.cs: Add an internal virtual OnDragDropEnd method
2706 to allow controls such as ListBox, which depend on a sequence
2707 of MouseDown+Move+End events, to handle the lack of a MouseUp
2708 when a DnD operation is started in MouseDown.
2709 * ListBox.cs: If a DnD operation is started in MouseDown we won't
2710 get a MouseUp, so reset our state whenever a DnD operation ends.
2712 2008-06-28 Ivan N. Zlatev <contact@i-nz.net>
2714 * PropertyGrid.cs: Clear the root griditem first thing when
2715 new object/s is/are selected. Fixes some rare cases where
2716 the View will get a paint request and won't know that the
2717 grid is in the process of repopulating.
2719 2008-06-27 Ivan N. Zlatev <contact@i-nz.net>
2721 * XplatUIX11.cs, InternalWindowManager.cs:
2722 If WS_EX_TOOLWINDOW is set in the CreateParams for a form MS
2723 doesn't automagically update the FormBorderStyle, so we must
2724 double check the CreateParams explicitly to determine if the
2725 window is a toolwindow.
2726 * ThemeWin32Classic.cs: Use InternalWindowManager.IsToolWindow
2727 instead of doing custom checks.
2729 Fixes toolwindows for the test case in bug #402446
2731 2008-06-27 Ivan N. Zlatev <contact@i-nz.net>
2733 * Control.cs: Visibility of the control should be false
2734 when the handle is destroyed in WmDestroy and not immediately
2735 in Dispose(). This is effectively where the disposing process
2736 ends even though the control is marked as Disposed immediately
2737 after calling Dispose().
2740 2008-06-27 Ivan N. Zlatev <contact@i-nz.net>
2742 * PropertyGridTextBox.cs: Start monitoring the mouse clicks
2743 when the textbox gets focus.
2746 2008-06-27 Ivan N. Zlatev <contact@i-nz.net>
2748 * PropertyGridTextBox.cs, PropertyGridView.cs:
2749 - Alt + Down should show the drop down editor.
2750 - Focus the editor when showing it
2753 2008-06-25 Jonathan Pobst <monkey@jpobst.com>
2755 * ThemeWin32Classic.cs: Fix from Andy for panel text for panels
2756 that are not the first panel.
2757 * StatusBar.cs: Ensure that the X coordinate of panels is always
2758 stored. Fix IList implementation of StatusBarPanelCollection to
2759 call the regular methods.
2760 [Fixes bug #403599, #402165]
2762 2008-06-23 Jonathan Pobst <monkey@jpobst.com>
2764 * ThemeWin32Classic.cs: Fix position calculation for centered
2765 text on status bar panels. [Fixes bug #402165]
2767 2008-06-22 Ivan N. Zlatev <contact@i-nz.net>
2769 * Splitter.cs: Fix Splitter to:
2770 - Work for arbitrary splitter size
2771 - Handle MinSize and MinExtra properly
2772 - Get rid of absolute positioning during drag and use relative
2773 - Multiple other fixes
2776 2008-06-22 Ivan N. Zlatev <contact@i-nz.net>
2778 * Cursor.cs: Show shouldn't hide the cursor.
2780 2008-06-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2782 * ListViewItem.cs: When invalidating, add some extra space to bounds,
2783 since focus rectangle and selection can add some space and need to
2784 take into account those small offsets - specially in Details view.
2785 * ListView.cs: Instead of invalidate using item Bounds directly, call
2786 item.Invalidate, to have the code centralized.
2787 Fixes focused/selection garbage when selecting and deselecting items
2790 2008-06-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2792 * ListViewItem.cs: Set bounds initially to -1 values - thus in virtual
2793 mode we can check whether we have to force a Layout or not, and can
2794 cache based on this, instead of avoiding caching all the the time. Do
2795 this check in GetBounds and TextBounds.
2796 Fixes selection in Details view.
2798 2008-06-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2800 * ListView.cs: Make HeaderControl internal, thus the theme engine can
2801 get its *real* height instead of trying to infere it.
2802 * ThemeWin32Classic.cs: When drawing gridlines, don't iterate over the items to
2803 get the position of them, since it's in general a bad idea in general,
2804 and because we can't do that in virtual mode. Instead get the first
2805 visible item as well as item height, and draw them.
2808 2008-06-20 Jonathan Pobst <monkey@jpobst.com>
2810 * ToolStripSplitButton.cs: We can't add in extra width if
2811 the button is not AutoSize. [Fixes bug #401279]
2813 2008-06-20 Ivan N. Zlatev <contact@i-nz.net>
2815 * PaddingConverter.cs:
2816 - Implement conversion to InstanceDescriptor
2817 - Handle "All" in CreateInstance by using the supplied
2818 ITypeDescriptorContext.
2819 [Fixes bugs #396076 and #396078]
2821 Patch by Andy Hume <andyhume32@yahoo.co.uk>
2822 Code contributed under MIT/X11 license.
2824 2008-06-19 Andy Hume <andyhume32 at yahoo dot co dot uk>
2826 * ComboBox.cs, ListControl.cs, Control.cs, Button.cs,
2828 Add Category attributes.
2829 Code is contributed under the MIT/X11 license.
2831 2008-06-18 Ivan N. Zlatev <contact@i-nz.net>
2834 - Fix a NRE when unparenting a form.
2835 - Do not recreate or destroy a parented form when
2838 2008-06-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2840 * TextBox.cs: Implement basic support for AutComplete with custom
2843 2008-06-18 Jonathan Pobst <monkey@jpobst.com>
2845 * ToolStripSplitButton.cs: Left and Top of ButtonBounds, SplitterBounds,
2846 DropDownButtonBounds should be from the origin of the button, not the
2847 ToolStrip. [Fixes bug #401279]
2849 2008-06-16 Sandy Armstrong <sanfordarmstrong@gmail.com>
2851 * X11DesktopColors.cs: Clear GTK_MODULES environment variable before
2852 running gtk_init_check. This prevents GAIL from loading
2853 unnecessarily, which was breaking UIA support. Initial fix for bug
2855 * Application.cs: Add UIA support to Winforms. New static constructor
2856 uses reflection to initialize UIAutomationWinforms assembly. Added
2857 PreRun event so UIA can initialize before the mainloop starts, and
2858 FormAdded event so UIA can provide a11y support for new Forms in an
2861 2008-06-16 Jonathan Pobst <monkey@jpobst.com>
2863 * DataGridView.cs: When binding to a dataset, subscribe to table
2864 and column change events. Unsubscribe to these when we clear bindings.
2867 2008-06-14 Everaldo Canuto <ecanuto@novell.com>
2869 [DataGrid drawing refactory]
2871 * DataGrid.cs: Fix the caption size, we need one pixel more for divider.
2873 * DataGridColumnStyle.cs: Removing PaintHeader code, the draw operations
2874 must be handle by Theme, now it call DataGridPaintColumnHeader.
2876 * DataGridTextBoxColumn.cs: Fix the textbox size. It must be one pixel less,
2877 test cases must be also fixed because it checks for wrong size.
2879 * ThemeWin32Classic.cs:
2880 - Draw the bottom line of grid caption.
2881 - Prevent to draw caption text when it is empty.
2882 - Use CPDrawBorder3D for 3D efects to simplify code.
2883 - Uses 3D (when not flat) to paint corner shared between row and column
2885 - Fix header drawing issues on win32, now borders are drawing.
2886 - Fix column header paint issues to mimic win32.
2887 - Adjust header drawing for last column, like first one it must be draw
2889 - Added DataGridPaintRowHeaderStar to draw star like .net does, it is
2891 - DataGridPaintColumnHeader created to draw column headers, it also
2892 paint stuff right on Win32.
2893 - Use DataGridPaintColumnHeader method instead of DataGridColumnStyle
2897 - DataGridPaintRowHeaderStar method added.
2898 - DataGridPaintColumnHeader method added.
2900 2008-06-13 Jonathan Pobst <monkey@jpobst.com>
2902 * Control.cs: Don't reset to Dock style layout if DockStyle is
2903 set to none. [Fixes bug #399316]
2905 2008-06-12 Everaldo Canuto <ecanuto@novell.com>
2907 * Win32DnD.cs: Fix the check for control not equal null.
2908 Fixes bug #341420 and #381886.
2910 2008-06-12 Jonathan Pobst <monkey@jpobst.com>
2912 * DataGridViewRowCollection.cs: Update the indexes of rows after
2913 one has been removed.
2914 * DataGridViewSelectedRowCollection.cs: Add internal clear method.
2915 * DataGridViewSelectedColumnCollection.cs: Add internal clear method.
2916 * DataGridView.cs: Add support for deleting rows via Delete key, deleting
2917 rows for the Rows collection, or deleting rows from the bound DataSet.
2919 2008-06-12 Jonathan Pobst <monkey@jpobst.com>
2921 * DataGridView.cs: Listen to a DataSet's changed event even
2922 when autogeneratecolumns is false. Refactor the changed event's
2923 add row code to use the same as the existing add row code.
2926 2008-06-11 Jonathan Pobst <monkey@jpobst.com>
2928 * TextBoxBase.cs: We need to call RaiseSelectionChanged pretty
2929 much any time the caret moves and there is text, not just when
2930 the selection changes as one would think.
2931 * RichTextBox.cs: Override RaiseSelectionChanged and fire
2935 2008-06-11 Jonathan Pobst <monkey@jpobst.com>
2937 * FontDialog.cs: Forward ListBox keyboard events to the ListBox
2938 instead of trying to duplicate the code.
2939 * ListBox.cs: Make method internal so we can send keyboard events.
2942 2008-06-11 Jonathan Pobst <monkey@jpobst.com>
2944 * TextBoxBase.cs: When pasting and checking the max length,
2945 subtract the selected text length (the text we will be replacing) from
2946 the document length.
2947 * TextControl.cs: Ensure every character insertion is reflected in
2948 charcount, so max length will work properly.
2951 2008-06-11 Jonathan Pobst <monkey@jpobst.com>
2953 * ListBox.cs: Ensure scrollbars are updated when a single
2954 column listbox with an already set top-index is created.
2957 2008-06-11 Jonathan Pobst <monkey@jpobst.com>
2959 * FontDialog.cs: Typing in the font/style textboxes should search
2960 the list boxes case-insensitively. [Fixes bug #398343]
2962 2008-06-11 George Giolfan <georgegiolfan@yahoo.com>
2964 * ThemeWin32Classic.cs: Managed window title bar layout now uses actual
2965 widths of icon and buttons instead of hard coded values.
2967 2008-06-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2969 * ListBox.cs: When SelectionMode is None, clicking an item should move focus
2970 as well as generating a SelectedIndexChanged event, just like .Net does
2974 2008-06-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2976 * ListBox.cs: When navigating items visually, use FocusedItem as the
2977 reference point instead of SelectedIndex, since even in
2978 SelectionMode.None we need to support navigation, and in that case we
2979 just can't use SelectedIndex.
2980 Fixes part of #398345.
2982 2008-06-10 Jonathan Pobst <monkey@jpobst.com>
2984 * Control.cs: Make a SetBoundsInternal that avoids the new
2986 * ComboBox.cs, Form.cs, ListBox.cs, ScrollableControl.cs: Use
2987 SetBoundsInternal instead of SetBoundsCoreInternal.
2989 2008-06-10 Ivan N. Zlatev <contact@i-nz.net>
2991 * ScrollableControl.cs: Use SetBoundsCoreInternal instead of
2992 SetBounds for the scrollbars.
2994 2008-06-10 Andreia Gaita <avidigal@novell.com>
2996 * HtmlDocument.cs: Implement RightToLeft, ContextMenuShowing,
2997 FocusingEvent, LosingFocusEvent, OnMouseDown, OnMouseLeave,
2998 OnMouseMove, OnMouseOver, OnMouseUp
2999 * HtmlElement.cs: Optimize InsertBefore. Implement RemoveFocus,
3000 ScrollIntoView, Focusing, GotFocus, LosingFocus, LostFocus.
3001 * HtmlElementCollection.cs, HtmlWindowCollection.cs: Keep a reference
3002 to the WebControl object to pass to new collection objects
3003 * HtmlHistory.cs: Implement support for individual window histories.
3004 * HtmlWindow.cs: Implement History, Position, Size, WindowFrameElement,
3005 AttachEventHandler, DetachEventHandler, RemoveFocus, Error,
3006 GotFocus, LostFocus, OnLoad, OnUnload
3007 * WebBrowser.cs: Implement EncryptionLevel, ScrollBarsEnabled,
3009 * WebBrowserBase.cs: Implement Cursor, Enabled, UseWaitCursor, Add
3010 security level changes and context menu event support.
3012 2008-06-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3014 * ComboBox.cs: Pressing Enter should close the dropdown listbox, just
3015 as happens with Esc, patch my Andy Hume.
3018 2008-06-10 George Giolfan <georgegiolfan@yahoo.com>
3020 * MdiWindowManager.cs: DrawMaximizedButtons now uses
3021 ManagedWindowGetMenuButtonSize instead of ManagedWindowButtonSize.
3022 * Theme.cs: Made MenuButtonSize platform dependent. Added
3023 ManagedWindowButtonSize.
3024 * ThemeWin32Classic.cs: Added ManagedWindowGetMenuButtonSize.
3025 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added MenuButtonSize.
3027 2008-06-10 George Giolfan <georgegiolfan@yahoo.com>
3029 * DateTimePicker.cs, Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs:
3030 Added support for rendering with VisualStyles.
3032 2008-06-10 George Giolfan <georgegiolfan@yahoo.com>
3034 * ComboBox.cs, Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs: Added
3035 support for rendering the border with VisualStyles.
3037 2008-06-10 George Giolfan <georgegiolfan@yahoo.com>
3039 * InternalWindowManager.cs: Added ShowIcon. Fixed IconRectangleContains when
3040 the icon is not shown.
3041 * ThemeWin32Classic.cs: Now uses InternalWindowManager.ShowIcon instead of
3044 2008-06-10 George Giolfan <georgegiolfan@yahoo.com>
3046 * InternalWindowManager.cs: Draw minimized windows even if they don't have
3049 2008-06-09 Jonathan Pobst <monkey@jpobst.com>
3051 * ComboBox.cs, ListBox.cs: Use SetBoundsInternalCore instead of SetBounds.
3053 2008-06-09 Jonathan Pobst <monkey@jpobst.com>
3055 * Control.cs: Fill in the defaults for unspecified bounds in SetBounds.
3058 2008-06-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3060 * ComboBox.cs: When snaping height -because of IntegralHeight set to
3061 true- with ComboBoxStyle.Simple, set the height to PreferredHeight
3062 if the requested height leaves the listbox area with *less* than the
3063 required are to see one item. We were setting it to PreferredHeight
3064 even for values matching the height for a single item.
3067 2008-06-06 Jonathan Pobst <monkey@jpobst.com>
3069 * DataGridViewCell.cs: Simplify GetInheritedStyle by using ApplyStyle.
3071 2008-06-06 Jonathan Pobst <monkey@jpobst.com>
3073 * DataGridViewCell.cs: Use property instead of field.
3075 2008-06-06 George Giolfan <georgegiolfan@yahoo.com>
3077 * InternalWindowManager.cs, ThemeWin32Classic.cs: Removed useless Form.Icon
3080 2008-06-06 George Giolfan <georgegiolfan@yahoo.com>
3082 * Theme.cs: Added #region around the managed window code. Made the managed
3083 window methods abstract.
3084 * ThemeWin32Classic.cs: Added #region around the managed window code.
3086 2008-06-06 George Giolfan <georgegiolfan@yahoo.com>
3088 * InternalWindowManager.cs: Now only calls Theme.DrawManagedWindowDecorations
3090 * ThemeWin32Classic.cs: Removed HasBorders checks in
3091 DrawManagedWindowDecorations.
3093 2008-06-06 George Giolfan <georgegiolfan@yahoo.com>
3095 * InternalWindowManager.cs, Theme.cs, ThemeWin32Classic.cs: Refactored:
3096 Extracted ManagedWindowGetTitleBarIconArea.
3098 2008-06-05 Jonathan Pobst <monkey@jpobst.com>
3100 * DataGridViewCellStyle.cs: Don't clone the font.
3102 2008-06-05 Jonathan Pobst <monkey@jpobst.com>
3104 * DataGridViewCell.cs: Ensure we don't pass null to GetConverter.
3106 2008-06-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3108 * XplatUIX1..cs: Use IntPtr size instead of int, as wee need to work
3109 also on 64 bit machinges. Fixes the BadWindow errors while scrolling
3112 2008-06-05 Jonathan Pobst <monkey@jpobst.com>
3114 * DataGridViewCell.cs: Correctly get converters for FormattedValue.
3115 Use Format/FormatProvider before trying converters.
3116 * DataGridViewCellStyle.cs: ApplyStyle should only apply things that
3117 are 'set'. Change constructor to not use ApplyStyle since it wants
3118 everything applied. Clone the Font.
3119 * DataGridViewRowHeaderCell.cs: Start with DefaultCellStyle and
3120 ApplyStyle the rest.
3122 2008-06-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3124 * ListView.cs: We need to calculate the scrollbars even if the handle
3125 hasn't been created - this is needed when methods using scrollbars
3126 info, such EnsureVisible, are called before control has been created.
3129 2008-06-05 George Giolfan <georgegiolfan@yahoo.com>
3131 * ThemeVisualStyles.cs: ScrollBar is now rendered with the VisualStyles API
3132 only if the elements are defined.
3134 2008-06-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3136 * ComboBox.cs: I'm an idiiot - forgot to commit the last ComboBox
3137 section. Also, when setting bounds, snap height as well as save the
3138 requested height if Dock has any value affecting the height: Left,
3139 Right and Bottom - important if using IntegralHeight as true.
3141 2008-06-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3143 * ComboBox.cs: When calling UpdateComboBoxBounds, adjust the height
3144 passed to SetBounds to reflect the new adjusted height (Integral-wise),
3145 instead of doing that only in our SetBoundsCore override, since the
3146 bounds cached can be the same as saved one and we could not get the
3150 2008-06-04 George Giolfan <georgegiolfan@yahoo.com>
3152 * Theme.cs: Made ToolWindowCaptionButtonSize platform dependent.
3153 * XplatUI.cs: Added ToolWindowCaptionButtonSize.
3154 * XplatUIDriver.cs: Changed SmallCaptionButtonSize to 15,15. Added
3155 ToolWindowCaptionButtonSize.
3156 * XplatUIWin32.cs: Added ToolWindowCaptionButtonSize.
3158 2008-06-04 George Giolfan <georgegiolfan@yahoo.com>
3160 * MdiWindowManager.cs: Now uses SystemInformation.DoubleClickTime instead of
3162 * Theme.cs: Made DoubleClickTime plaform dependent.
3164 2008-06-04 George Giolfan <georgegiolfan@yahoo.com>
3166 * Theme.cs: Made ToolWindowCaptionHeight platform dependent.
3167 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added
3168 ToolWindowCaptionHeight.
3170 2008-06-04 George Giolfan <georgegiolfan@yahoo.com>
3172 * InternalWindowManager.cs: The adjustment to ensure positive client area
3173 sizes is now platform dependent (disabled on Windows).
3174 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added
3175 RequiresPositiveClientAreaSize.
3177 2008-06-04 George Giolfan <georgegiolfan@yahoo.com>
3179 * Form.cs: Fixed null handling in Icon (see SettingIconToNull in the tests).
3181 2008-06-04 George Giolfan <georgegiolfan@yahoo.com>
3183 * InternalWindowManager.cs: Changed IconicSize to use
3184 SystemInformation.MinimizedWindowSize.
3185 * XplatUICarbon.cs, XplatUIX11.cs: Removed MinimizedWindowSize.
3186 * XplatUIDriver.cs: Changed MinimizedWindowSize to provide a default value.
3188 2008-06-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3190 * ComboBox.cs: If the combobox is anchored both on top and bottom,
3191 adjust height if IntegralHeight is true when calling SetBoundsCore (as
3192 likely the height was modified even if Height wasn't specified in
3193 BoundsSpecified parameter).
3194 Fixes part of #396297.
3196 2008-06-04 George Giolfan <georgegiolfan@yahoo.com>
3198 * InternalWindowsManager.cs: Changed minimum window size while resizing to
3199 SystemInformation.MinWindowTrackSize.
3200 * XplatUICarbon.cs, XplatUIX11.cs: Removed MinWindowTrackSize.
3201 * XplatUIDriver.cs: Changed MinWindowTrackSize to provide a default value.
3203 2008-06-03 George Giolfan <georgegiolfan@yahoo.com>
3205 * MenuItem.cs: Fixed Dispose.
3207 2008-06-03 George Giolfan <georgegiolfan@yahoo.com>
3209 * ColumnHeader.cs: CalcColumnHeader now uses the theme to get the height.
3210 * DataGridView.cs: * EnableHeadersVisualStyles: Fixed default value.
3211 EnteredHeaderCell, PressedHeaderCell: Added.
3212 * DataGridViewCell.cs: Refactored: Extracted GetBorderPen.
3213 * DataGridViewColumnHeaderCell.cs, DataGridViewRowHeaderCell.cs: Gave the
3214 theme a chance to override default painting.
3215 * ListView.cs: Added EnteredColumnHeader. Refactored: Extracted
3216 GetColumnHeaderInvalidateArea, Invalidate(ColumnHeader).
3217 * Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs: Added members for
3218 ListView and DataGridView header rendering.
3220 2008-06-03 Ivan N. Zlatev <contact@i-nz.net>
3222 * RichTextBox.cs: GetPositionFromCharIndex should return the
3223 visual position of the character relative to the viewport.
3224 [Fixes part of bug #396664]
3226 2008-06-03 Ivan N. Zlatev <contact@i-nz.net>
3228 * GridEntry.cs: Make HasCustomEditor check for EditStyle != None
3229 and not just for the existance of an UITypeEditor. In some cases
3230 there is an editor associated just to do PaintValue, but which
3231 doesn't actually support editing.
3234 2008-05-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3236 * ComboBox.cs: page_size as well as vscrollbar.LargeChange should be 1
3237 if needed, instead of 0 - this should help us in the corner case where
3238 we have more than one item but we are only partially showing 1 item.
3239 Fixes part of #374713.
3241 2008-05-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3243 * XplatUiX11.cs: When scrolling and detecting the obscured areas in a
3244 control, return immediately if the any parent control's handle hasn't
3245 been created or isn't visible, as well as avoiding creating the parent
3246 Form if the handle hasn't been previously created.
3249 2008-06-02 Jonathan Pobst <monkey@jpobst.com>
3251 * TableLayoutPanel.cs: Use border sizes when calculating the
3252 panel's preferred size. [Fixes part of bug #396433]
3254 2008-06-02 Ivan N. Zlatev <contact@i-nz.net>
3256 * SplitContainer.cs:
3257 - Fix SplitterDistance to update only if needed.
3258 - Make it force min and max validation.
3259 - Handle properly mouse moves outside the resizeable area.
3262 2008-06-02 Andreia Gaita <avidigal@novell.com>
3264 * WebBrowserBase.cs: Implement support for ScriptErrorsSuppressed
3265 (which also suppresses all popup dialogs). Throw NotSupported
3266 exceptions for activex getters/setters.
3267 * WebBrowser.cs: Implement DocumentStream, DocumentType, IsBusy,
3268 IsOffline, ReadyState, ScriptErrorsSuppressed, ScrollbarsEnabled,
3269 StatusText, Version, GoSearch
3270 * HtmlDocument.cs: Add DocType support
3272 2008-06-02 Andy Hume <andyhume32@yahoo.co.uk>
3274 * TextBox.cs: Implement TextBoxAutoCompleteSourceConverter.
3277 2008-06-02 Ivan N. Zlatev <contact@i-nz.net>
3279 * GridEntry.cs: Pass the ITypeDescriptorContext everywhere.
3281 2008-06-02 Jonathan Pobst <monkey@jpobst.com>
3283 * TableLayoutPanel.cs: When calculating preferred size, use the
3284 actual number of columns and rows, not what the user set them to.
3287 2008-06-02 George Giolfan <georgegiolfan@yahoo.com>
3289 * Form.cs: Enabled managed handling of tool window MDI children. Fixes bug
3292 2008-06-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3294 * XplatUIX11.cs: When detecting areas obscured in a control by other
3295 toplevel windows while scrolling, return if the control hasn't a
3299 2008-05-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3301 * XplatUIX11.cs: Properly detect the visible area of a control being
3302 scrolled (obscured by other winforms controls and any X toplevel
3303 windows), to mark as invalid the requested area to be scrolled that
3304 isn't visible and thus can't be copied.
3307 2008-05-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3309 * ListBox.cs: Compute the precise amount to vertically scroll when
3310 using DrawMode.OwnerDrawVariable.
3311 Patch by jkeymer (j.keymer@gmx.net).
3313 2008-05-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3315 * ComboBox.cs: Use ListBox-like scrollbar values In ComboListBox
3316 to avoid setting an invalid value for the verticall scrollbar
3317 when navigating items. And, duh, also remove my silly debug messages
3318 from previous commits.
3321 2008-05-30 Ivan N. Zlatev <contact@i-nz.net>
3323 * FlatButtonAppearance.cs: Make FlatButtonAppearanceConverter exandable and
3324 make it MS compatible.
3326 2008-05-30 Ivan N. Zlatev <contact@i-nz.net>
3328 * PropertyGrid.cs, PropertyGridView.cs, GridEntry.cs:
3329 - Allow the editing of entries even if their parent is read-only.
3330 - Do not render expandable properties read-only.
3331 - Refactor expansion checks form PropertyGrid into PropertyGrid.
3333 2008-05-30 George Giolfan <georgegiolfan@yahoo.com>
3335 * ScrollBar.cs, Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs: Added
3336 support for the hover style.
3338 2008-05-29 Andreia Gaita <avidigal@novell.com>
3340 * ContainerControl.cs: Check for null dead-end when traversing the tree
3343 [Fixes #394332, patch by Ernesto Carrea]
3345 2008-05-29 Geoff Norton <gnorton@novell.com>
3347 * XplatUICarbon.cs: Fix a culture-dependent conversion to be the
3348 constant that it is. Fixes #393981
3350 2008-05-29 Jonathan Pobst <monkey@jpobst.com>
3352 * Form.cs: Add a MonoTODO to the AutoScaleBaseSize setter explaining
3353 that the user probably doesn't want to set this.
3355 2008-05-29 Jonathan Pobst <monkey@jpobst.com>
3357 * ThemeWin32Classic.cs: Don't let the text size be bigger than
3358 the control size for CheckBox/RadioBox.
3359 [Fixes part of bug #394645]
3361 2008-05-29 Ivan N. Zlatev <contact@i-nz.net>
3363 * PropertyGrid.cs: Update the state of the sorting buttons in
3364 the toolbar if PropertySort is set programatically.
3366 2008-05-29 Ivan N. Zlatev <contact@i-nz.net>
3368 * GridItemCollection.cs: Add multiple items with conflicting names
3369 support and also preserve name ordering.
3372 2008-05-29 Ivan N. Zlatev <contact@i-nz.net>
3374 * GridItemCollection.cs: Revert my multiple items with same
3377 2008-05-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3379 * ScrollBar.cs: Scrollbars should only react to left-clicks, not right
3381 Fixes part of #393908.
3383 2008-05-28 Jonathan Pobst <monkey@jpobst.com>
3385 * ToolStripDrowDown.cs: When using the Show () methods that have a
3386 Control parameter, set the menu owner to that Control.
3389 2008-05-28 Ivan N. Zlatev <contact@i-nz.net>
3391 * PropertyGridTextBox.cs, PropertyGridView.cs: Implement validation.
3394 2008-05-27 Ivan N. Zlatev <contact@i-nz.net>
3396 * GridItemCollection.cs: Refactor to support multiple items with the
3400 2008-05-27 Jonathan Pobst <monkey@jpobst.com>
3402 * Control.cs: The 2.0 check for illegal cross thread calls in
3403 Control.Handle were throwing an exception when we were getting
3404 the Handle in order to invoke correctly. Created a private
3405 version that does not contain this check.
3408 2008-05-27 Ivan N. Zlatev <contact@i-nz.net>
3410 * PropertyGrid.cs: Respect DefaultTabType.
3412 2008-05-27 Ivan N. Zlatev <contact@i-nz.net>
3414 * ListView.cs: SPACE selects an item.
3417 2008-05-27 Ivan N. Zlatev <contact@i-nz.net>
3419 * ListView.cs: Reset the search string whenever the items are
3423 2008-05-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3425 * ListControl.cs: For the first added item PositionChanged is fired
3426 _before_ ItemChanged, which leave us in a temporary invalid state - so
3427 we need to set the selected index from ItemChanged handler *if* we
3428 know that the first item has just been added *and* the items have been
3429 actually added to the ListControl.
3432 2008-05-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3434 * TabControl.cs: Only clicks with the left button should be
3438 2008-05-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3442 * TextBox.cs: Expose an internal method in TextBox to restore the
3443 original context menu, and call it from ComboBox to re-use it in the
3444 combobox containing the file name in FileDialog.cs.
3445 Fixes part of #393775.
3447 2008-05-24 George Giolfan <georgegiolfan@yahoo.com>
3449 * ThemeVisualStyles.cs: Added support for the hot ComboBox drop down button
3452 2008-05-24 George Giolfan <georgegiolfan@yahoo.com>
3454 * ComboBox.cs, Theme.cs, ThemeWin32Classic.cs: Added support for the hot drop
3457 2008-05-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3459 * ComboBox.cs: Minor correction to previous patch: PageDown should
3460 also *try* to move by one item if the computed offset is negative,
3461 just like the PageUp case.
3463 2008-05-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3465 * ComboBox.cs: When navigating using PageDown/PageUp the navigation
3466 should be done for at least 1 item, and not stay at the same item.
3467 Fixes part of #374713.
3469 2008-05-23 Jonathan Pobst <monkey@jpobst.com>
3471 * FileDialog.cs: Add a FSEntryComparer, and use it to sort the
3472 directories. [Fixes bug #393931]
3474 2008-05-22 Andreia Gaita <avidigal@novell.com>
3476 * WebBrowser.cs: Implement DocumentText. Implement AllowNavigation.
3477 Don't fire events until the initial about:blank page has finished
3478 loading. Clean up events.
3480 2008-05-22 Atsushi Enomoto <atsushi@ximian.com>
3482 * XplatUIX11.cs : when we call WM_SETFOCUS, call X11Keyboard
3483 FocusIn() too. This should fix the issue on switching
3486 2008-05-22 Atsushi Enomoto <atsushi@ximian.com>
3488 * X11Keyboard.cs : set XIM font size to somewhat reasonable
3489 number (ideally the input textbox size, but that could be
3492 2008-05-22 Jonathan Pobst <monkey@jpobst.com>
3494 * ToolStripTextBox.cs: List for the TextBox's TextChanged and fire
3495 the ToolStripItem's TextChanged. [Fixes bug #393597]
3497 2008-05-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3499 * TabControl.cs: When invalidating in SelectedIndex and we need to
3500 inflate to take into account the border of the tabs, make sure that
3501 the invalidated rect doesn't overflow the control bounds, since that
3502 would avoid updating at all.
3504 2008-05-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3506 * TabControl.cs: Don't substract scroller width from the row width,
3507 since we need to take into account the total width of the control when
3508 calculating the position of the tabs. This avoids showing scroller
3509 when it is actually not needed.
3510 Fixes part of #322325.
3512 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
3514 * ThemeVisualStyles.cs: Added support for TextBoxBase.
3516 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
3518 * RichTextBox.cs, TextBoxBase.cs, Theme.cs, ThemeWin32Classic.cs: Refactored:
3519 Extracted TextBoxBase.Draw and Theme.TextBoxBase*.
3521 2008-05-21 Jonathan Pobst <monkey@jpobst.com>
3523 * DataGridView.cs: Only paint the top left header cell if there
3526 2008-05-21 Jonathan Pobst <monkey@jpobst.com>
3528 * DataGridView.cs: When binding to a BindingSource, get the underlying
3529 list to bind to. [Fixes bug #345483]
3531 2008-05-21 Jonathan Pobst <monkey@jpobst.com>
3533 * DataGridView.cs: Do not bind to collection properties.
3536 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
3538 * ThemeVisualStyles.cs: Added support for the hot TrackBar thumb style.
3540 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
3542 * Theme.cs, ThemeWin32Classic.cs, TrackBar.cs: Added support for the hot
3545 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
3547 * ThemeVisualStyles.cs: Added support for ToolTip transparent background.
3549 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
3551 * Theme.cs, ThemeWin32Classic.cs, ToolTip.cs: Added support for transparent
3554 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
3556 * ThemeVisualStyles.cs: Added support for ToolBar hot and hot checked styles.
3558 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
3560 * Theme.cs, ThemeWin32Classic.cs, ToolBar.cs: Added support for hot and hot
3563 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
3565 * TabControl.cs: Extended to handle the hot style.
3567 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
3569 * Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs, UpDownBase.cs:
3570 Extended UpDownBase code to handle hot and disabled styles.
3572 2008-05-20 Jonathan Pobst <monkey@jpobst.com>
3574 * DataGridView.cs: Handle databinding to generic list type things.
3577 2008-05-20 Jonathan Pobst <monkey@jpobst.com>
3579 * DataGridViewCellCollection.cs: Add a method to find the cell
3580 with the given DataPropertyName.
3581 * DataGridViewColumn.cs: Track if the column was autogenerated or not.
3582 * DataGridViewColumnCollection.cs: Add a method to clear all
3583 autogenerated columns.
3584 * DataGridView.cs: If AutoGenerateColumns is false, don't autogenerate
3588 2008-05-20 Jonathan Pobst <monkey@jpobst.com>
3590 * DataGridView.cs: Don't try to update the RowTemplate with
3591 a null CellTemplate.
3593 2008-05-20 Jonathan Pobst <monkey@jpobst.com>
3595 * DataGridViewColumn.cs: Allow IsDataBound to be set internally.
3596 * DataGridViewColumnCollection.cs: Ensure OnColumnAdded is called.
3597 * DataGridView.cs: Lots of fixes/enhancements to databinding to
3600 2008-05-20 Jonathan Pobst <monkey@jpobst.com>
3602 * Control.cs: Remove invalidating implicit child controls when
3603 control is invalidated. It was causing too many redraws on
3604 controls with implicit scrollbars.
3605 * ListView.cs: Listen to the Invalidated event and invalidate
3608 2008-05-20 Andreia Gaita <avidigal@novell.com>
3610 * WebBrowserBase.cs, WebBrowser.cs: Hook up page loading events
3611 * HtmlDocument.cs: Check for nulls
3613 2008-05-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3615 * Control.cs: In ControlCollection.RemoveInternal, remove the
3616 internal control before calling PerformLayout and OnControlRemoved,
3617 which was leaving us in an invalid state and causing a X error (bad
3618 match). Observe that Remove () call has the same order.
3619 Fixes an X error changing ComboBoxStyle.DropDownStyle.
3621 2008-05-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3623 * TabControl.cs: Don't paint by ourselved and instead let OnPaint
3624 being fired if ControlStyles.UserPaint style is activated.
3627 2008-05-19 Ivan N. Zlatev <contact@i-nz.net>
3629 * GridEntry.cs: Don't be so strict when setting the value -
3630 do not check if what we set is what we get.
3633 2008-05-19 Ivan N. Zlatev <contact@i-nz.net>
3635 * XplatUIX11.cs: If there are no timers timeout should be 0
3638 2008-05-19 Jonathan Pobst <monkey@jpobst.com>
3640 * Control.cs: As a followup to invalidating implicit children when
3641 a control is invalidated, only invalidate them if they are in the
3644 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
3646 * ThemeVisualStyles.cs: Implemented partial support for ToolTip.
3648 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
3650 * ThemeWin32Classic.cs: Refactored: Extracted ToolTipDrawBackground.
3652 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
3654 * GroupBoxRenderer.cs: Fixed text area clipping in the Visual Styles case.
3655 * XplatUIWin32.cs: Made Win32DeleteObject public.
3657 2008-05-19 Ivan N. Zlatev <contact@i-nz.net>
3659 * GridEntry.cs: Determine HasDefaultValue more strictly by using
3660 PropertyDescriptor.ShouldSerializeValue.
3663 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
3665 * ThemeVisualStyles.cs: Enabled support for ScrollBar element styles not present
3666 in the classic theme.
3668 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
3670 * ScrollBar.cs: Added FirstButtonEntered, SecondButtonEntered, ThumbEntered,
3672 * Theme.cs, ThemeWin32Classic.cs: Added ScrollBarHasHotElementStyles,
3673 ScrollBarHasPressedThumbStyle.
3675 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
3677 * TextRenderer.cs: Included some methods in the 1.1 profile.
3679 2008-05-19 Jonathan Pobst <monkey@jpobst.com>
3681 * Control.cs: When we make a control visible, it may have been
3682 previously visible and while it wasn't visible, the z-order of
3683 things may have been shuffled, so the control needs to have its
3684 z-order updated just in case. [Fixes bug #391518]
3686 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
3688 * ThemeVisualStyles.cs: Added support for GroupBox.
3690 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
3692 * GroupBoxRenderer.cs: Included in the 1.1 profile.
3694 2008-05-16 Atsushi Enomoto <atsushi@ximian.com>
3696 * XplatUIX11.cs, X11Keyboard.cs : redoing r103060 with fix for
3697 bug #389996; XSelectInput() behaved as mouse handler robber,
3698 so remove extra call to it.
3700 2008-05-15 Jonathan Pobst <monkey@jpobst.com>
3702 * Control.cs: Simplify ControlCollection.Contains method.
3704 2008-05-15 Jonathan Pobst <monkey@jpobst.com>
3706 * DataGridViewRow.cs: Implement GetPreferredSize.
3708 2008-05-15 Jonathan Pobst <monkey@jpobst.com>
3710 * DataGridViewComboBoxCell.cs: Don't declare text twice. Fixes build.
3712 2008-05-15 Jonathan Pobst <monkey@jpobst.com>
3714 * DataGridViewComboBoxCell.cs: Implement some NIEX stuffs, better
3715 painting and edit control fixes.
3717 2008-05-14 Jonathan Pobst <monkey@jpobst.com>
3719 * DataGridView.cs, DataGridViewCell.cs: Work around some external
3720 checks to make sure we are in an actual row/col for top left header cell.
3721 * DataGridViewTopLeftHeaderCell.cs: Implement some NIEX's.
3723 2008-05-14 Jonathan Pobst <monkey@jpobst.com>
3725 * Control.cs: Use long instead of int when handling WParam from
3726 mousewheel scrolling. Int was overflowing on Win64.
3728 2008-05-14 Jonathan Pobst <monkey@jpobst.com>
3730 * FlowLayoutPanel.cs, ScrollableControl.cs: We need to layout the
3731 flow panel without scrolling first, and then calculate the
3732 scrolling based on the new layout. [Fixes bug #390149]
3734 2008-05-14 Jonathan Pobst <monkey@jpobst.com>
3736 * ListBox.cs: Invalidate after scrolling up when selected index
3737 changes. [Fixes bug #390151]
3739 2008-05-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3741 * ComboBox.cs: When setting mode to Simple *and* height hasn't been
3742 set, default height to 150. I tried first with DefaultSize, but this
3743 is not generating a SetBoundsCore call before handle creation time, so
3744 we can take it into account. This is just what .net does.
3746 2008-05-13 Jonathan Pobst <monkey@jpobst.com>
3748 * XplatUIX11.cs, X11Keyboard.cs: Had to revert eno's r103060,
3749 as it broke some stuff. Calberto is filing a bug for eno to
3752 2008-05-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3754 * ComboBox.cs: When handling PageDown pressed event, set SelectedIndex
3755 to 0 is the current value is -1, and if style is not Simple, just
3756 return, like .net does.
3757 Fixes part of #374713.
3759 2008-05-13 Jonathan Pobst <monkey@jpobst.com>
3761 * ThemeWin32Classic.cs, ThemeVisualStyles.cs: When calculating
3762 progress bar stuffs, use doubles instead of ints to prevent
3763 overflow. [Fixes bug #389798]
3765 2008-05-13 Atsushi Enomoto <atsushi@ximian.com>
3767 * XplatUIX11.cs, X11Keyboard.cs :
3768 Significant refactoring on XIM support. Now IM engine UI
3769 should show up, at mostly-correct preedit position.
3770 - Eliminated use of FocusWindow, as it is never mapped
3771 and hence blocks correct preedit position. XIC is now
3772 created per window, and it must be destroyed too when
3773 the window is destroyed.
3774 - WM_QUIT messages should not be filtered even when hwnd
3775 is zombie. Filtering it could cause endless loop.
3776 - Preedit position must move only when the window is alive.
3777 - Make it IDisposable and make sure to release XIM/XICs.
3779 2008-05-13 Atsushi Enomoto <atsushi@ximian.com>
3781 * Timer.cs, Control.cs, Form.cs, ApplicationContext.cs,
3782 XplatUIX11.cs, XplatUIWin32.cs :
3783 fix for bug #325033 and #387693;
3784 - WM_QUIT should not be sent when no running application
3786 - SetTimer/KillTimer (especially on win32) should be
3787 invoked for the window that the timer is/will_be attached.
3788 - There could be unattached timers to a window when it's
3789 started. For those timers, hold pending timers and when
3790 a window is mapped, attach them to it.
3791 - WaitForHwndMessage() could run into loop when
3792 WM_SHOWWINDOW is handled before this method is called.
3793 So, strictly check wm_showwindow state.
3794 - Tick handler should not be invoked while one Tick handler
3795 call is still running (introduced Busy state).
3797 2008-05-13 Andreia Gaita <avidigal@novell.com>
3799 * WebBrowserBase.cs: Override Internal alternative methods for
3800 SetBoundsCore and OnResize instead of the protected ones.
3801 * Control.cs: Move SetBoundsCore and OnResize implementations to
3802 SetBoundsCoreInternal and OnResizeInternal, so they can be
3803 overriden internally (WebBrowserBase needs to catch them but can't
3804 override the protected methods without api compat problems)
3806 2008-05-13 Andreia Gaita <avidigal@novell.com>
3808 * WebBrowserBase.cs: Hiding away non-public overrides for api compat
3810 2009-05-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3813 * ListView.cs: Remove debug messages.
3815 2008-05-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3817 * ComboBox.cs: Don't do any calculation for simple mode if the listbox
3818 area is empty. Also calculate scrollbars in Simple mode based in area
3819 height and total number of items, not in MaxDropDownItems.
3820 Fixes part of #371991.
3822 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
3824 * PictureBox.cs: Always invalidate on resize. Fixes an app for jhill.
3826 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
3828 * BindingSource.cs: GetListSortDescription is not public.
3830 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
3832 * WebBrowser.cs, WebBrowserBase.cs, WebBrowserSiteBase.cs: corcompare.
3834 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
3836 * HtmlElement.cs: Fix parameter names to match MS.
3837 * HtmlWindowCollection.cs: Should not be sealed.
3839 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
3841 * ThemeWin32Classic.cs: Always draw the scrollbar area under the thumb
3842 button, because the thumb button will not get drawn if the scrollbar
3843 is disabled. [Fixes bug #389262]
3845 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
3847 * ListBox.cs: Handle End key for multi-column listboxen.
3850 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
3852 * ListBox.cs: Fix algorithm to determine which column our item is in.
3855 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
3857 * ListBox.cs: Invalidate when the listbox is resized.
3860 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
3862 * ListBox.cs: There is always at least one row in the ListBox (if
3863 we are doing these calculations.) [Fixes bug #389253]
3865 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
3867 * ListBox.cs: There is always at least one column in the ListBox.
3870 2008-05-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3872 * ComboBox.cs: When handle is created call UpdateComboBoxBounds to
3873 ensure in Simple mode that the height is exactly the requested one.
3874 Also add the ComboBoxListControl to the controls collection in Simple
3875 mode even if handle hasn't been created.
3876 Fixes part of #371991.
3878 2008-05-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3880 * ComboBox.cs: For ComboListBox control -specially in Simple mode-, give focus to
3881 our ComboBox owner instead of giving it back to the previous control (
3882 as done in other controls). Also remove the empty override of Select
3883 method, since we want to be selected *and* give focus to our owner.
3884 This should let the user do keys-navigation in Simple mode.
3886 2008-05-10 Geoff Norton <gnorton@novell.com>
3888 * XplatUICarbon.cs: Dont use HIViewScrollRect as it's causing painting
3889 problems with rapid scrolling of treeviews. Fixes #381084
3891 2008-05-10 Geoff Norton <gnorton@novell.com>
3893 * XplatUICarbon.cs: Deactivate the active window before
3894 activating the desired window. Completes fixing #386504
3896 2008-05-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3898 * ListView.cs: When calculating scrollbars, set horizontal scroll bar
3899 SmallChange to the item size width plus the padding, to match .net.
3901 2008-05-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3903 * FileDialog.cs: Apply the custom filter typed by the user in the file
3904 name combobox as much as possible while navigating in the file dialog.
3907 2008-05-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3909 * Binding.cs: Actually use NullValue if the retrieved value of
3910 data source is null or DBNull. Makes a test pass.
3912 2008-05-09 Jonathan Pobst <monkey@jpobst.com>
3914 * ErrorProvider.cs, Form.cs: Get icons from ResourceImageLoader.
3915 * MimeIcon.cs: Provide a way to get icons from resources.
3917 2008-05-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3919 * Binding.cs: When the value retrieved from the control to be assigned
3920 to the data source is null, actually use the 2.0 DataSourceNullValue
3921 value. Make pass a data binding test.
3923 2008-05-08 Jonathan Pobst <monkey@jpobst.com>
3925 * Control.cs: We need to invalidate implicit children even when
3926 invalidate is called with invalidatechildren = false. (Implicit
3927 children are really part of the parent.)
3928 * ListView.cs: Double-buffer internal child controls for less
3930 * ThemeWin32Classic.cs: Remove an extra nested loop in drawing
3931 owner ListView subitems for greatly increased performance.
3934 2008-05-08 Carlos Alberto Cortez <calebrto.cortez@gmail.com>
3936 * FileDialog.cs: When the user types a wildcard character in the
3937 filename combobox, update the contents of the folder using the text as
3939 Fixes part of #385261.
3941 2008-05-08 Jonathan Pobst <monkey@jpobst.com>
3943 * ListBox.cs: Various fixes for MultiColumn listboxen.
3946 2008-05-08 Andreia Gaita <avidigal@novell.com>
3948 * HtmlElement.cs: Implement Style property
3950 2008-05-08 Jonathan Pobst <monkey@jpobst.com>
3952 * ListBox.cs: Respect checkboxes when measuring item size.
3953 * ThemeWin32Classis.cs: When drawing list items, don't draw
3954 text outside of the item's bounds to prevent overlapping.
3955 (.Net actually overlaps, but that's just silly.)
3958 2008-05-08 Everaldo Canuto <ecanuto@novell.com>
3960 * NotifyIcon.cs: Call SetForegroundWindow before show context menu. Thanks
3961 Gert Driesen. Fixes bug #324830.
3963 2008-05-07 Everaldo Canuto <ecanuto@novell.com>
3965 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: SetForegroundWindow
3968 2008-05-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3970 * BindingSource.cs: When calling IsSynchronized, return the value of
3971 the related IList list.
3973 2008-05-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3975 * ListBindingHelper.cs: Fix some bits in GetListItemProperties, to
3978 2008-05-07 Jonathan Pobst <monkey@jpobst.com>
3980 * DataGridView.cs: Implement PageUp/PageDown keys. Extend keyboard
3981 navigation to scroll the grid if the current cell is not visible.
3983 2008-05-07 Andreia Gaita <avidigal@novell.com>
3985 * HtmlElement.cs: Implement TabIndex
3987 2008-05-07 Jonathan Pobst <monkey@jpobst.com>
3989 * ListBox.cs: Respect ScrollAlwaysVisible and HorizontalScrollbar
3990 properties, even when there are no items.
3993 2008-05-07 Ivan N. Zlatev <contact@i-nz.net>
3995 * NativeWindow.cs: Add support for multiple handles per window.
3996 * NativeWindows.cs, LibSupport.cs, Control.cs, XplatUIX11GTK.cs,
3997 XplatUIX11.cs, X11Display.cs: Do not access NativeWindow.windows_collection
3998 directly - use FromHandle instead.
4001 2008-05-07 Andreia Gaita <avidigal@novell.com>
4003 * HtmlElement.cs: Implement InnerHTML setter
4005 2008-05-07 Andreia Gaita <avidigal@novell.com>
4007 * HtmlDocument.cs: Implement Focused
4009 2006-05-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4011 * BindingSource.cs: Minor fixes to the the ApplySort and Remove sort
4012 methods, as well as add messages to the exceptions.
4014 2006-05-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4016 * BindingSource.cs: Setting DataSource should only reset DataMember if
4017 the previous value was null (make pass a not working test).
4019 2006-05-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4021 * BindingSource.cs: When EndInit call is postponed and is called until
4022 DataSource.EndInit is called, remove the handler for data source.
4024 2008-05-06 Jonathan Pobst <monkey@jpobst.com>
4026 * ToolStripManager.cs: Don't use IsAlive, race condition, etc. etc.
4028 2008-05-06 Jonathan Pobst <monkey@jpobst.com>
4030 * ToolStripManager.cs: Store references to toolstrips as
4031 weak references so they do not prevent forms from getting collected.
4034 2008-05-06 Jonathan Pobst <monkey@jpobst.com>
4036 * TrackBar.cs: We can't set ResizeRedraw because it isn't set
4037 on .Net. So do the same thing in WndProc.
4039 2008-05-06 Jonathan Pobst <monkey@jpobst.com>
4041 * TrackBar.cs: Commit patch from Andy Hume that corrects
4042 the clickable areas to better match .Net.
4045 2008-05-06 Jonathan Pobst <monkey@jpobst.com>
4047 * TrackBar.cs: Commit patch from Andy Hume that adds the
4048 ResizeRedraw control flag so the track bar repaints itself
4049 when it is resized. [Fixes bug #387072]
4051 2008-05-06 Jonathan Pobst <monkey@jpobst.com>
4053 * TrackBar.cs: Commit patch from Andy Hume that adds better
4054 support for keyboard navigation when the TrackBar is vertical.
4057 2008-05-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4059 * BindingSource.cs: Implement ISupportInitializeNotification support.
4061 2008-05-06 George Giolfan <georgegiolfan@yahoo.com>
4063 * ThemeVisualStyles.cs: Added support for ToolBar.
4065 2008-05-06 George Giolfan <georgegiolfan@yahoo.com>
4067 * ToolBar.cs: Made the Vertical property internal.
4069 2008-05-05 George Giolfan <georgegiolfan@yahoo.com>
4071 * ThemeVisualStyles.cs: Added support for TrackBar.
4073 2008-05-05 George Giolfan <georgegiolfan@yahoo.com>
4075 * ThemeWin32Classic.cs: Refactored: Extracted TrackBarGetThumbSize,
4076 TrackBarDrawVerticalTrack, TrackBarDrawVerticalThumbRight,
4077 TrackBarDrawVerticalThumbLeft, TrackBarDrawVerticalThumb,
4078 TrackBarGetVerticalTickPainter, TrackBarDrawHorizontalTrack,
4079 TrackBarDrawHorizontalThumbBottom, TrackBarDrawHorizontalThumbTop,
4080 TrackBarDrawHorizontalThumb, TrackBarGetHorizontalTickPainter.
4082 2008-05-05 George Giolfan <georgegiolfan@yahoo.com>
4084 * ThemeVisualStyles.cs: Added support for UpDownBase.
4086 2008-05-05 George Giolfan <georgegiolfan@yahoo.com>
4088 * Theme.cs, ThemeWin32Classic.cs, UpDownBase.cs: Refactored:
4089 Extracted Theme.UpDownBaseDrawButton.
4091 2008-05-05 Jonathan Pobst <monkey@jpobst.com>
4093 * ToolStrip.cs, ToolStripDropDownItem.cs: Make sure toolstrips are
4094 removed from the static toolstrips collection in ToolStripManager
4095 when they are disposed. Provides a workaround for bug #386483.
4097 2008-05-05 Ivan N. Zlatev <contact@i-nz.net>
4099 * GridEntry.cs: Read-only properties with Editor with
4100 UITypeEditorEditStyle.Modal shouldn't be read-only in the PropertyGrid.
4103 2008-05-05 Jonathan Pobst <monkey@jpobst.com>
4105 * MenuStrip.cs, ToolStrip.cs: Guard against an NRE when pressing
4106 the menu key and there are no items on the menu.
4109 2008-05-05 Sebastien Pouliot <sebastien@ximian.com>
4111 * Control.cs: Avoid calling ToString on a string.
4112 * Form.cs: Avoid calling ToString on a string. Found using Gendarme.
4113 * GroupBox.cs: In FlatStyle property throw, not just create, the
4114 exception. Avoid calling ToString on a string.
4115 * ProgressBar.cs: Avoid calling ToString on a string.
4116 * ScrollBar.cs: Avoid calling ToString on a string.
4117 [All issues were found using Gendarme]
4119 2008-05-05 Everaldo Canuto <ecanuto@novell.com>
4121 * NotifyIcon.cs: Prevent click events to be trigger after double click
4122 events. Fixes remaining issues of bug #324832.
4124 2008-05-05 Everaldo Canuto <ecanuto@novell.com>
4126 * NotifyIcon.cs: Trigger click and mouseclick events after mouseup event
4127 to mimic win32 behavior. Partially fixes bug #324832.
4129 2008-05-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4131 * BindingSource.cs: Implement Find methods.
4133 2008-05-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4135 * BindingSource.cs: Implement Sort, ApplySort overloads, and
4138 2008-05-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4140 * ListBindingHelper.cs: When calling GetListItemProperties and the
4141 passed object is ITypedList, return the result of
4142 ITypedList.GetItemProperties instead.
4144 2008-05-04 Everaldo Canuto <ecanuto@novell.com>
4146 * LinkLabel.cs: Set default value of name on constructor of Link class
4147 only for 2.0 profile.
4149 2008-05-04 Everaldo Canuto <ecanuto@novell.com>
4151 * LinkLabel.cs: Fix implementation of LinkCollection.LinksAdded property.
4152 Fixes remaining issues of bug #346154.
4154 2008-05-04 Everaldo Canuto <ecanuto@novell.com>
4156 * LinkLabel.cs: Set a default value for name on internal contructor of
4157 Link class. It fixes assert B5 of LinkCollectionTest.Constructor1.
4159 2008-05-04 Everaldo Canuto <ecanuto@novell.com>
4161 * LinkLabel.cs: Move links collection from LinkCollection to LinkLabel
4162 and refer all instances to owner.links. Partially fixes #346154.
4164 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
4166 * LinkLabel.cs: Fix linkarea values for empty text, must have start and
4167 length equal zero. Also called CreateLinkPieces in constructor. It fixes
4168 the LinkLabel test 'TestLinkArea'.
4170 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
4172 * Form.cs: Remove menu before close form to prevent form to be not gaced.
4175 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
4177 * MenuAPI.cs: Dispose popup window after hide. Thanks to Jesse Jones.
4180 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
4182 * MenuAPI.cs: Implemented keyboard navigation for ContextMenu.
4185 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
4187 * MenuAPI.cs: Remove unused ProcessCmdKey method.
4189 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
4191 * MenuAPI.cs: Prevent NRE in menu deactivation when shortcut is used.
4194 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
4196 * MenuAPI.cs: Enable implicit mnemonics for menus. Fixes remaining issues
4199 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
4201 * MenuAPI.cs: Check if mouse down comes from menu, we need it because
4202 sometimes we open a conext menu on mouse down of some controls and the mouse
4203 up is dispatched to menu and dont need to. It fix remaining issues of
4204 #363711 and other problems related to menu mouse click events.
4206 2008-05-02 Everaldo Canuto <ecanuto@novell.com>
4208 * MonthCalendar.cs: Implemented "Go to today" context menu, also changed
4209 some var names to better fit changes, now we have month_menu and today_menu
4210 vars. Fixes bug #363711.
4212 2008-05-02 Everaldo Canuto <ecanuto@novell.com>
4214 * MonthCalendar.cs: Handle every right mouse click to open context menu,
4215 right now the default month menu but it will be change to have "Go to today"
4218 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
4220 * FileDialog.cs, MaskedTextBox.cs, OpenFileDialog.cs: corcompare.
4222 2008-05-02 Everaldo Canuto <ecanuto@novell.com>
4224 * ThemeWin32Classic.cs: Fix MonthCalendar arrows drawing.
4226 2008-05-02 George Giolfan <georgegiolfan@yahoo.com>
4228 * ThemeVisualStyles.cs: Added support for TreeView.
4230 2008-05-02 George Giolfan <georgegiolfan@yahoo.com>
4232 * Theme.cs, ThemeWin32Classic.cs, TreeView.cs: Refactored:
4233 Moved TreeView.DrawNodePlusMinus to Theme.TreeViewDrawNodePlusMinus.
4235 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
4237 * OpenFileDialog.cs: Implement 2.0 SP1 stuffs.
4239 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
4241 * FileDialogCustomPlace.cs, FileDialogCustomPlacesCollection.cs:
4242 Implement 2.0 SP1 stuffs.
4244 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
4246 * FileDialog.cs: Implement 2.0 SP1 stuffs.
4248 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
4250 * Control.cs, ContainerControl.cs, DataGridView.cs, TextBoxBase.cs:
4251 Implement CanEnableIme property. (2.0 SP1)
4253 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
4255 * BindingManagerBase.cs, PropertyManager.cs: Hide GetItemProperties
4258 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
4260 * Control.cs: Provide an internal way for a control to override
4261 the setting of Height.
4262 * DateTimePicker.cs: Remove SetBoundsCore from 2.0 profile,
4263 set height using new method.
4265 2008-05-02 George Giolfan <georgegiolfan@yahoo.com>
4267 * ThemeVisualStyles.cs: Added support for ControlPaint.DrawMixedCheckBox.
4269 2008-05-02 George Giolfan <georgegiolfan@yahoo.com>
4271 * ControlPaint.cs, Theme.cs, ThemeWin32Classic.cs: Refactored:
4272 ControlPaint.DrawMixedCheckBox now calls Theme.CPDrawMixedCheckBox.
4274 2008-05-02 George Giolfan <georgegiolfan@yahoo.com>
4276 * ThemeVisualStyles.cs: Added support for StatusBar.
4278 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
4280 * DataObject.cs: Add the other IDataObject interface.
4282 2008-05-02 George Giolfan <georgegiolfan@yahoo.com>
4284 * ThemeWin32Classic.cs: Refactored: extracted DrawStatusBarBackground,
4285 DrawStatusBarSizingGrip, DrawStatusBarPanelBackground.
4287 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
4289 * DataGridViewCheckBoxCell.cs, DataGridViewImageCell.cs: Fix parameter names.
4290 * ListView.cs: Hide non-public API.
4291 * MaskedTextBox.cs: Remove extra attribute.
4293 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
4295 * DataGridViewImageCell.cs: Use formatted value instead of value
4296 to calculate preferred size.
4298 2008-05-01 Jonathan Pobst <monkey@jpobst.com>
4300 * ListBox.cs: Move some initialization around so that selected_indices
4301 is not accessed before it is created.
4303 2008-05-01 Jonathan Pobst <monkey@jpobst.com>
4305 * InputLanguageCollection.cs: Implement the collection better.
4308 2008-05-01 Jonathan Pobst <monkey@jpobst.com>
4310 * ToolStripDropDownItem.cs: Get the correct event object for
4311 DropDownItemClicked.
4312 * ToolStripMenuItem.cs: Raise DropDownItemClicked on our owner.
4315 2008-05-01 Jonathan Pobst <monkey@jpobst.com>
4317 * DataGridViewRowCollection.cs: We don't currently support shared
4318 rows. Should fix test failures caused by previous commit.
4320 2008-04-30 Jonathan Pobst <monkey@jpobst.com>
4322 * DataGridViewRow.cs: Fixes for cloning the row, ensure header cell's
4323 datagridview gets set. Only paint cells in visible columns.
4324 * DataGridViewCell.cs: Draw border after cell content.
4325 * DataGridView.cs: Invalidate after setting some properties. Only
4326 use visible columns. Fit hit test bug with areas in the col/row header
4327 area but not in a row or col. Implement UpdateCell/Row methods.
4329 2008-04-30 Jonathan Pobst <monkey@jpobst.com>
4331 * DataGridViewElement.cs: Don't throw NIEX.
4332 * DataGridViewColumnHeaderCell.cs: Draw error icons for top left header cells.
4333 * DataGridViewColumnDesignTimeVisibleAttribute.cs: Don't throw NIEX.
4334 * DataGridViewCheckBoxColumn.cs: Implement ToString.
4335 * DataGridViewCheckBoxCell.cs: Allow DBNull as a value.
4336 * DataGridViewCell.cs: Don't raise CellFormatting for RowHeader cells,
4337 if the user filled in the formatting Value, use it.
4339 2008-04-30 Jonathan Pobst <monkey@jpobst.com>
4341 * DataGridViewTextBoxCell.cs: Fix for objects that cannot be cast
4344 2008-04-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4346 * BindingSource.cs: Some corrections to Filter property, as well as
4347 setting it for our list when resetting it.
4349 2008-04-29 Jonathan Pobst <monkey@jpobst.com>
4351 * ScrollBar.cs: Don't let dragging the thumb grip set the value greater
4352 than the maximum. Fixes reopened bug #384182.
4354 2008-04-28 Everaldo Canuto <ecanuto@novell.com>
4356 * ToolStripDropDown.cs: Fix offscreen position for DropDown itens.
4357 Fixes remaining issues of #367490.
4359 2008-04-28 Everaldo Canuto <ecanuto@novell.com>
4361 * ToolStripDropDown.cs: Screen.Bound dont return right value then use
4362 SystemInformation.WorkingArea to get max_screen value.
4364 2008-04-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4366 * BindingSource.cs: Implement Filter and RemoveFilter.
4368 2008-04-28 Everaldo Canuto <ecanuto@novell.com>
4370 * MenuAPI.cs: Prevent sub-menu positon to be less than zero.
4372 2008-04-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4374 * X11Dnd.cs: When trying to convert data and we know we started the
4375 dnd loop, don't try to use the cached data if the loop is not running,
4376 which means that the data has been resetted.
4379 2008-04-28 Everaldo Canuto <ecanuto@novell.com>
4381 * MenuAPI.cs: Force first menu subitem to show from left to right to mimic
4384 2008-04-28 Everaldo Canuto <ecanuto@novell.com>
4386 * MenuAPI.cs: Check the screen limits before show sub-menus and prevent
4387 it to drawn off screen edge. Fixes bug #367490.
4389 2008-04-28 Everaldo Canuto <ecanuto@novell.com>
4391 * MenuAPI.cs: In PopupWindow.RefreshItems uses a temp point var to store
4392 menu position to have only one assignment of Location var.
4394 2008-04-28 Everaldo Canuto <ecanuto@novell.com>
4396 * MenuAPI.cs: Implement the right key for sub-menus. Thanks Ernesto Carrea
4397 for this patch. Fixes bug #384115.
4399 2008-04-28 Jonathan Pobst <monkey@jpobst.com>
4401 * ScrollBar.cs: If SmallChange is larger than LargeChange, make them
4402 the same. If LargeChange is zero, set a minimum size for the scroll
4403 thumb grip. [Fixes bug #384182]
4405 2008-04-28 Jonathan Pobst <monkey@jpobst.com>
4407 * TextBoxTextRenderer.cs: Don't turn &A into a prefix for textboxen.
4410 2008-04-28 Jonathan Pobst <monkey@jpobst.com>
4412 * ListBox.cs: Math.Min should be Math.Max. [Fixes bug #384183]
4414 2008-04-28 George Giolfan <georgegiolfan@yahoo.com>
4416 * ThemeVisualStyles.cs: Added partial support for ScrollBar (based on the
4417 patch from Ernesto).
4419 2008-04-28 George Giolfan <georgegiolfan@yahoo.com>
4421 * ThemeVisualStyles.cs: Added support for ControlPaint.DrawComboButton.
4423 2008-04-28 George Giolfan <georgegiolfan@yahoo.com>
4425 * ThemeVisualStyles.cs: Added support for ControlPaint.DrawButton.
4427 2008-04-28 George Giolfan <georgegiolfan@yahoo.com>
4429 * ThemeVisualStyles.cs: Added support for ControlPaint.DrawRadioButton.
4431 2008-04-28 George Giolfan <georgegiolfan@yahoo.com>
4433 * ThemeVisualStyles.cs: Added support for ControlPaint.DrawScrollButton.
4435 2008-04-27 George Giolfan <georgegiolfan@yahoo.com>
4437 * ThemeVisualStyles.cs: Added support for ButtonBase.UseVisualStyleBackColor.
4439 2008-04-27 Andreia Gaita <avidigal@novell.com>
4441 * HtmlWindow.cs, HtmlHistory.cs: Throw on DomHistory getter (it's
4442 supposed to return a reference to an mshtml interface, which we
4444 * HtmlElement.cs: Throw on DomElement getter (it's supposed to return a
4445 reference to an mshtml interface, which we don't support). Code
4447 * HtmlDocument.cs: Add DefaultEncoding getter implementation. Throw on
4448 DomDocument getter (it's supposed to return a reference to an
4449 mshtml interface, which we don't support). Code formatting cleanup.
4451 2008-04-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4453 * ListView.cs: Ouch, forgot to commit.
4455 2008-04-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4458 * ThemeWin32Classic.cs: Fire the -until now- forgotten CacheVirtualItems event.
4460 2008-04-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4462 * ListView.cs: When calculating box selection for virtual mode, don't
4463 look for intersection with item's text, but item bounds, since that
4464 would mean read ListViewItem's text for _every_ item, and that's
4465 something we just can't do in virtual mode (items are only requested
4468 2008-04-26 George Giolfan <georgegiolfan@yahoo.com>
4470 * ThemeVisualStyles.cs: Added support for ControlPaint.DrawCaptionButton and
4471 partial support for managed windows (based on the patch from Ernesto).
4473 2008-04-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4475 * ListView.cs: When doing a key search use FindItemWithText method
4476 instead of doing the search by ourselves, this way we avoid
4477 duplicating the code and also we handle the special case for virtual
4478 mode. To achieve that make our private overload of FindItemWithText
4479 internal and also have a 'roundtrip' parameter.
4481 2008-04-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4483 * ListView.cs: When doing the layout don't request the
4484 ListViewItem instance if we are in virtual mode (since we can't request it
4485 until the item is actully drawn).
4487 2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
4489 * ThemeVisualStyles.cs: Added support for ProgressBar (based on the patch
4492 2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
4494 * ThemeVisualStyles.cs: Added support for ControlPaint.DrawCheckBox (based on
4495 the patch from Ernesto).
4497 2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
4499 * ThemeEngine.cs: Added code to select ThemeVisualStyles.
4500 * ThemeVisualStyles.cs: Added.
4502 2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
4504 * IDeviceContext.cs: Added a missing using.
4506 2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
4508 * ButtonBase.cs: Made IsDefault protected internal.
4509 * ButtonRenderer.cs: Made GetPushButtonRenderer(PushButtonState) internal.
4511 2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
4513 * Application.cs: Included VisualStyles-related members in the 1.1 profile.
4514 * ButtonRenderer.cs, CheckBoxRenderer.cs, Padding.cs, PaddingConverter.cs,
4515 RadioButtonRenderer.cs: Included in the 1.1 profile.
4516 * IDeviceContext.cs: Added.
4517 * TextRenderer.cs: Included a member in the 1.1 profile.
4519 2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
4521 * ThemeWin32Classic.cs: Added ShouldPaintFocusRectangle(ButtonBase).
4523 2008-04-24 Jonathan Pobst <monkey@jpobst.com>
4525 * ErrorProvider.cs: Make the error icons come after the control
4526 they refer to. It isn't the way the MS does it, but its better
4527 than what we were doing. See bug #368587.
4529 2008-04-24 Jonathan Pobst <monkey@jpobst.com>
4531 * InputLanguage.cs, InputLanguageCollection.cs: Apply patch
4532 from Eric Albright that lazy loads the input language as ensures
4533 everything gets properly initialized. Fixes bug #373871.
4535 2008-04-24 Jonathan Pobst <monkey@jpobst.com>
4537 * ToolStrip.cs: Don't use ToolStripControlHosts when figuring up
4538 implicit mnemonics. [Fixes bug #383000]
4540 2008-04-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4542 * X11Dnd.cs: When canceling the operation, automatically restore the
4543 default cursor - normally the default cursor is restored when the
4544 mouse buttons are released, but we should be able to restore it even
4545 if the buttons are still pressed (for example, when pressing ESC to
4549 2008-04-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4551 * X11Dnd.cs: When starting a new drad and drop operation, set control
4552 field to null, just as the other fields, to avoid calling any
4553 operation on a previous control. Also, when calling DndLeave on a
4554 control, set it to null, thus we don't fire that event multiple times
4558 2008-04-23 Geoff Norton <gnorton@novell.com>
4560 * XplatUICarbon.cs: Ensure that we have a valid hwnd before accessing
4561 the whole_window object. Fixes #377084.
4563 2008-04-23 Andreia Gaita <avidigal@novell.com>
4565 * HtmlElement.cs: Implement RaiseEvent (event injection into the
4568 2008-04-23 Jonathan Pobst <monkey@jpobst.com>
4570 * DataGridViewColumnHeaderCell.cs: Implement some NIEX stuffs.
4572 2008-04-23 Andreia Gaita <avidigal@novell.com>
4574 * HtmlElement.cs, HtmlDocument.cs: Implement javscript method
4577 2008-04-23 Andreia Gaita <avidigal@novell.com>
4579 * HtmlElement.cs, HtmlDocument.cs: Implement custom event handler
4582 2008-04-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4584 * X11Dnd.cs: When the drop was cancelled, or could just not be
4585 performed, return DragDropEffect.None always (match .net).
4587 2008-04-22 Jonathan Pobst <monkey@jpobst.com>
4589 * DataGridViewRowHeaderCell.cs: Fill in some NIEX stuff.
4591 2008-04-22 Jonathan Pobst <monkey@jpobst.com>
4593 * DataGridViewRowCollection.cs: Revert something I didn't mean to commit.
4595 2008-04-22 Jonathan Pobst <monkey@jpobst.com>
4597 * DataGridView.cs: Add support for error icon tool tips.
4598 * DataGridViewCell.cs: ErrorIconBounds needs to call GetErrorIconBounds.
4599 * DataGridViewRowHeaderCell.cs: Need internal way to get ErrorIconBounds.
4601 2008-04-22 Ivan N. Zlatev <contact@i-nz.net>
4603 * X11Structs.cs: Add mouse button masks enum.
4604 * XplatUIX11.cs, Hwnd.cs: Send WM_ENTERSIZEMOVE and
4605 WM_EXITSIZEMOVE only once at the beginning and at the end of the
4606 form resize/move operation instead of for each step of it.
4607 [Fixes bug #346529 for the x11 backend]
4609 2008-04-21 Jonathan Pobst <monkey@jpobst.com>
4611 * DataGridView*: Implement support for drawing error icons.
4613 2008-04-21 Jonathan Pobst <monkey@jpobst.com>
4615 * TreeView.cs: Make vbar and hbar internal.
4616 * TreeNode.cs: If collapsing the node removes one of the TreeView's
4617 scrollbars, invalidate the whole thing.
4620 2008-04-21 Jonathan Pobst <monkey@jpobst.com>
4622 * TreeView.cs: Calling Sort() sets Sorted = true.
4623 * TreeNodeCollection.cs: Try to find the owner TreeView to determine
4624 if the nodes need to be sorted.
4627 2008-04-21 Ivan N. Zlatev <contact@i-nz.net>
4629 * Form.cs: Fire SizeChanged for both when the form is minimized and
4631 * XplatUIX11.cs: Instead of tracking minimization on UnmapNotify track it
4632 on PropertyNotify of _NET_WM_STATE. Much much cleaner.
4634 2008-04-21 Jonathan Pobst <monkey@jpobst.com>
4636 * ComboBox.cs: If the combobox is disabled, draw a disabled
4637 background before painting anything else.
4640 2008-04-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4642 * X11Dnd.cs: Wehn the drag and drop operation is cancelled don't
4643 forget to send a Leave event to the target window - just as .net does
4644 when cancelling dnd operations.
4646 2008-04-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4648 * X11Dnd.cs: Stop tracking messages as part of the dnd operation as
4649 soon as possible - this happens when we send the drop message to the
4650 target window. This way we avoid firing any DragOver _after_ drop finished.
4653 2008-04-20 Ivan N. Zlatev <contact@i-nz.net>
4655 * XplatUIX11.cs: Send WM_WINDOWPOSCHANGED when a toplevel is minimized.
4656 * Form.cs: Handle form minimization as a special state, where size doesn't
4657 change, but we have to fire SizeChanged.
4658 [Fixes bug #325122 for the win32 and x11 backends]
4660 2008-04-20 Ivan N. Zlatev <contact@i-nz.net>
4662 * XplatUIX11.cs: Win32 doesn't send WM_(KILL|SET)FOCUS
4663 if the handle is disabled.
4666 2008-04-20 Ivan N. Zlatev <contact@i-nz.net>
4668 * XplatUIX11.cs: Enable Maximize/Minimize/Close ability (not decorations)
4669 for forms with FormBorderStyle.None.
4672 2008-04-20 Ivan N. Zlatev <contact@i-nz.net>
4674 * XplatUIX11.cs: Implement support for WM_ENTERSIZEMOVE and
4676 [Fixes bug #346529 for the X11 backend]
4678 2008-04-19 Ivan N. Zlatev <contact@i-nz.net>
4681 - Send a mouse Enter message after say dragging the mouse with a
4682 button down and then release it in another client.
4683 - Reset the cursor to prevent X11 from remembering it and setting it
4684 before the control gets WM_SETCURSOR.
4685 - Qeueue a mouse move after a mouse enter like win32.
4688 2008-04-19 Ivan N. Zlatev <contact@i-nz.net>
4690 * XplatUIX11.cs: Implement limited support for WM_SYSCOMMAND.
4691 It's sent when the form gets moved, resized, closed.
4692 * XplatUIStructs.cs: Add SystemCommands enum for WM_SYSCOMMAND.
4693 [Fixes bug #359193 for X11]
4695 2008-04-19 Ivan N. Zlatev <contact@i-nz.net>
4697 * Form.cs: Add a ValidateChildren for the 1.1 profile. Fixes
4700 2008-04-19 Ivan N. Zlatev <contact@i-nz.net>
4702 * ListView.cs: Move CalculateDetailsGroupItemsCount to the NET_2_0
4703 group. Fixes the 1.1 build.
4705 2008-04-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4707 * ListView.cs: Use display indexes for selection in Details view, as
4708 well as do the proper layout based on display indexes for that view
4711 2008-04-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4713 * ListView.cs: Focused item information is now stored as a display
4714 index, and display indexes are used all over the place for selection,
4715 instead of ListViewItem.Index values, which doesn't give us enough
4716 information to modify the selection in groups mode, and was broken.
4718 2008-04-18 Ivan N. Zlatev <contact@i-nz.net>
4720 * Control.cs: Do not fire MouseDown if validation of the control has
4722 * Form.cs: Validate the form before closing.
4723 [Fixes bugs #330501 and #353310]
4725 2008-04-18 Andreia Gaita <avidigal@novell.com>
4727 * WebBrowserBase.cs: Added WndProc, DrawToBitmap,
4728 CreateWebBrowserSiteBase implementations
4729 * HtmlElement.cs: Add missing OuterHTML, OuterText setters, stubbed
4730 Style and TabIndex setters
4732 2008-04-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4734 * ListViewGroup.cs: When returning the actual item count, return the
4735 proper count for default group.
4738 2008-04-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4741 * ListViewGroup.cs: When calculating groups layout, get the actual
4742 number of items per group, since groups added to the group BUT not
4743 added to the ListView are just ignored, and can cause some nasty
4744 exceptions because of the lack of synchronization. Also for
4745 ListViewGroup don't use lazy initialization for items, since we
4746 the common scenario is to use it always - and it helps us to refactor
4747 and clean the .ctor overloads.
4749 2008-04-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4751 * ListView.cs: When adding an item to a ListViewItemCollection
4752 belonging to a group (ListViewGroup.Items), don't generate a redraw if
4753 the added item hasn't beeen previously added to the ListView instance
4754 refered by the group, since it will be ignored. This should avoid some
4755 really nasty flickering.
4757 2008-04-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4759 * ListView.cs: When accessing an item in a specific display
4760 position, use the helper method GetItemAtDisplayIndex, instead of
4761 direct access to the reordered_items_indices array. When doing layout
4762 for groups set the correct Items index for the display position (since
4763 in groups mode items don't have the same position as in Items
4765 * ListViewGroup.cs: Add a field to store the starting item number,
4766 which is later used when calculating the layout.
4770 2008-04-17 Gert Driesen <drieseng@users.sourceforge.net>
4772 * Application.cs: Fixed ProductVersion to fallback to the assembly
4773 version. Fixes regression for bug #325413.
4775 2008-04-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4777 * ListView.cs: New helper method to retrieve an item in a _specific
4778 display_ position (the items can be displayed in a different order
4779 than one of Items collection).
4780 * ThemeWin32Classic.cs: When drawing, instead of iterating over Items
4781 collection, use ListView.GetItemAtDisplayIndex, to get an item in a
4782 specific display position (again remember that items can be sorted
4783 different than Items).
4785 2008-04-16 Jonathan Pobst <monkey@jpobst.com>
4787 * DataGridViewColumnCollection.cs: Create a cached copy of our sorted
4788 list and update it when the collection changes. We were recreating
4789 this several times per row paint and for every pixel the mouse moved
4791 * DataGridViewColumn.cs: Regenerate cached sorted list when DisplayIndex
4794 2008-04-16 Jonathan Pobst <monkey@jpobst.com>
4796 * DataGridViewColumnCollection.cs: Convert our internal sorted columns
4797 list to use generics.
4798 * DataGridView.cs, DataGridViewRow.cs: Use generic sorted column list
4799 and remove unneccessay casts.
4801 2008-04-16 Jonathan Pobst <monkey@jpobst.com>
4803 * DataGridViewBand.cs: Add internal way to set displayed variable.
4804 * DataGridViewRow.cs: Don't paint cells in non-displayed columns.
4805 * DataGridView.cs: Make sure we always keep track of Displayed
4806 rows and columns, and only draw things that are displayed.
4808 2008-04-16 Atsushi Enomoto <atsushi@ximian.com>
4810 * X11Keyboard.cs, XplatUIX11.cs : manage key state regardless of
4811 whether the key events are filtered or not. Introduced
4812 PreFilter() process for this purpose. This fixes atokx3/iiimx
4815 2008-04-16 Andreia Gaita <avidigal@novell.com>
4817 * HtmlHistory.cs: Implement Length property
4819 2008-04-15 Jonathan Pobst <monkey@jpobst.com>
4821 * DataGridView.cs: Call EndEdit when a sort is performed so we take
4822 away the edit textbox. Refactor to reuse column sort code.
4824 2008-04-12 Everaldo Canuto <ecanuto@novell.com>
4826 * MenuAPI.cs: Remove the code that save and restore capture status of
4827 grab_control, this fixes some Menu and Context menu bugs but maybe it can
4828 cause some others, I cant figure the possible problems of this patch but
4829 right now remove the code looks to be better than keep it. This patch fixes
4830 bugs #357638, #378721 and #379570.
4832 2008-04-12 Andreia Gaita <avidigal@novell.com>
4834 * HtmlDocument.cs, HtmlElement.cs, HtmlHistory.cs, WebBrowser.cs:
4835 Implement OuterHtml, OuterText, Enabled, Scroll*, *Rectangle properties,
4836 add missing properties and event handlers.
4838 2008-04-14 Jonathan Pobst <monkey@jpobst.com>
4840 * ListBox.cs: Make sure the LargeChange we are setting is at least
4841 zero, to prevent an IOORE. [Fixes bug #379531]
4843 2008-04-13 Andy Hume <andyhume32@yahoo.co.uk>
4845 * ComboBox.cs: Support item navigation by entering text. Firstly,
4846 in DropDownList mode, for each key-press select the next item
4847 starting with that letter.
4848 For other modes, when no item selected, on arrow-up/-down and open
4849 drop-down select the first item matching the text in the textbox.
4851 2008-04-14 Atsushi Enomoto <atsushi@ximian.com>
4853 * X11Keyboard.cs : Control.FromHandle() could return null
4854 in MoveCurrentCaretPos().
4856 2008-04-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4858 * ListView.cs: When changing the size in VirtualMode, also Reset the
4860 * ListViewItem.cs: Don't call SelectedIndexCollection.Reset when
4861 changing selection info for VirtualMode.
4864 2008-04-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4866 * ThemeWin32Classic.cs: When drawing ListViewItem instancesin Details
4867 view, don't use LineLimit for the first item - use NoWrap *always*
4868 instead, since ListView.LabelWrap is not used for this view.
4871 2008-04-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4873 * Binding.cs: Call UpdateIsBinding when setting control - probably
4874 Binding is already usable and we don't need to wait to check the
4875 IsBinding state. Also for 1.1 profile use IsHandleCreated instead of
4876 Created, just like 2.0 does.
4877 * CurrencyManager.cs: I'm so lame - the previous check was wrong.
4879 2008-04-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4881 * Binding.cs: Just realized we don't need to have a handler for
4882 BindingContextChanged, since this info should be now consumed directly
4883 in the BindingManagerBase. And also, the manager.IsBindingSuspended
4884 state info is checked directly, instead of caching it.
4886 * CurrencyManager.cs: IsSuspended should return always false if Count
4889 2008-04-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4891 * Binding.cs: When calling PushData, return if manager.Count == 0,
4892 since we just don't have data to be read. Also, when setting the
4893 Control for binding, hook up some events to refresh the IsBinding
4894 state when BindingContext change or control gets created; use
4895 Control.IsHandleCreated instead of Control.Created check to set
4896 IsBinding state - we *actually* need to modify IsBinding when control
4897 is created, but we don't have any Created event, only HandleCreated.
4898 Fixes part of #349364.
4900 2008-04-11 Geoff Norton <gnorton@novell.com>
4902 * XplatUICarbon.cs: Expose Caret to the Carbon layer. Guard against
4903 warping a null Caret.
4905 2008-04-11 Jonathan Pobst <monkey@jpobst.com>
4907 * DataGridView.cs: Implement row/column autosizing methods. Implement
4909 * DataGridViewColumnHeaderCell.cs: Add painting of the sort glyph.
4910 * DataGridViewRowCollection.cs: Add an internal sorting method.
4912 2008-04-11 Jonathan Pobst <monkey@jpobst.com>
4914 * ThemeWin32Classic.cs: Apply patch from Ernesto to cache an expensive
4915 value in ListView drawing code.
4917 2008-04-11 Jonathan Pobst <monkey@jpobst.com>
4919 * FileDialog.cs: Only call FileOk when Ok is clicked, not when Cancel
4920 is clicked. Respect the user setting Cancel in FileOk.
4922 2008-04-11 Geoff Norton <gnorton@novell.com>
4924 * ListView.cs: Avoid setting and resetting control Width/Heights and
4925 calculate the final value and set it once. Prevents a feedback loop
4928 2008-04-10 Jonathan Pobst <monkey@jpobst.com>
4930 * TreeView.cs: Clamp setting the scrollbar value using SafeValueSet.
4933 2008-04-10 Atsushi Enomoto <atsushi@ximian.com>
4935 * X11Keyboard.cs, X11Structs.cs : make over-the-spot mode default.
4936 Add some on-the-spot code, but it seems we don't need it.
4938 2008-04-10 Jonathan Pobst <monkey@jpobst.com>
4940 * Form.cs: Add method for DataGridView to trigger focus cues
4941 even when it handles the tab keypress.
4943 2008-04-10 Jonathan Pobst <monkey@jpobst.com>
4945 * DataGridView.cs: More keyboard handling, tab, esc.
4946 * DataGridViewTextBoxEditingControl.cs: Don't request arrow keys
4947 when at the beginning or end of the text in the text box.
4949 2008-04-09 Jonathan Pobst <monkey@jpobst.com>
4951 * DataGridViewCell.cs: Guard against an NRE causing a test to fail.
4953 2008-04-09 Jonathan Pobst <monkey@jpobst.com>
4955 * DataGridView.cs: Some fixups for showing and adding the edit control.
4956 * DataGridViewButtonColumn.cs: Implement ToString.
4957 * DataGridViewCell.cs: Size and position the control simultaneously.
4958 * DataGridViewTextBoxCell.cs: Use base to position control.
4960 2008-04-09 Jonathan Pobst <monkey@jpobst.com>
4962 * DataGridViewCell.cs: Fix up some formatting and painting code.
4963 * DataGridViewImageCell.cs: Implement some NIEX methods.
4965 2008-04-09 Jonathan Pobst <monkey@jpobst.com>
4967 * ToolStripItemCollection.cs: What moving an item from one owner
4968 to another, remove from source owner before adding to destination.
4971 2008-04-09 Jonathan Pobst <monkey@jpobst.com>
4973 * PictureBox.cs: Call Load when ImageLocation is set.
4976 2008-04-09 Atsushi Enomoto <atsushi@ximian.com>
4978 * X11Keyboard.cs, XplatUIX11.cs :
4979 Implement over-the-spot mode (with some odd offsets).
4980 - set preedit position when caret is set.
4981 - Wrap XMoveResizeWindow() to move preedit position.
4983 2008-04-08 Everaldo Canuto <ecanuto@novell.com>
4985 * X11keyboard.cs: Fix last patch, maxval must be less not greater than
4988 2008-04-08 Everaldo Canuto <ecanuto@novell.com>
4990 * KeyboardLayouts.cs: Uses GENERATING_RESOURCES to make VKeyTableIndex
4991 and ScanTableIndex public, it fix compilations errors when compiling
4992 WinForms to generate keyboard layout resources.
4994 2008-04-08 Everaldo Canuto <ecanuto@novell.com>
4996 * X11keyboard.cs: Prevent keyboard errors when vitual table theres
4997 different element count than scan table. It prevents some errors in non
5000 2008-04-08 Jonathan Pobst <monkey@jpobst.com>
5002 * DataGridViewHeaderCell.cs: Implement some NIEX methods.
5004 2008-04-08 Jonathan Pobst <monkey@jpobst.com>
5006 * DataGridView.cs: Call OnContentClick.
5007 * DataGridViewCell.cs: Do a null check on ValueType instead
5009 * DataGridViewCheckBoxCell.cs: Implement.
5011 2008-04-08 Atsushi Enomoto <atsushi@ximian.com>
5013 * X11Keyboard.cs : Do not cast IntPtr to int. Use long.
5015 2008-04-08 Atsushi Enomoto <atsushi@ximian.com>
5017 * X11Keyboard.cs : Check XGetIMValues() return value in
5018 case it does not return input styles in some environment.
5020 2008-04-08 Atsushi Enomoto <atsushi@ximian.com>
5022 * X11Keyboard.cs : sizeof(IntPtr) != 4 on amd64.
5024 2008-04-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5026 * BindingContext.cs: Stub UpdateBinding method.
5028 2008-04-07 Atsushi Enomoto <atsushi@ximian.com>
5030 * X11Structs.cs : added couple of structs for XIM support.
5032 Release XIM in case it failed to create XIC.
5033 Use consts for XNblah string.
5034 Add support for IM style customization and XIC creation
5035 for preedit-position and preedit-callback.
5036 Right now use MONO_WINFORMS_XIM_STYLE environment variable
5037 (list of: over-the-spot | on-the-spot | root). Only root
5040 (redoing r99172 with fix.)
5042 2008-04-07 Jonathan Pobst <monkey@jpobst.com>
5044 * TreeView.cs: Center the checkbox a little better.
5046 2008-04-07 Jonathan Pobst <monkey@jpobst.com>
5048 * ThemeClearlooks.cs, ThemeGtk.cs, ThemeNice.cs, ThemeWin32Classic.cs:
5049 Apply very nice patch from Ernesto Carrea that simplifies our
5050 scrollbar drawing. [From bug #376146]
5052 2008-04-07 Jonathan Pobst <monkey@jpobst.com>
5054 * TreeView.cs: Correct the location of the root node checkbox when
5055 ShowRootLines = false. Don't draw the root lines for the root node
5056 when ShowRootLines = false. [Fixes bug #377535]
5058 2008-04-06 Gert Driesen <drieseng@users.sourceforge.net>
5060 * WebBrowserBase.cs: Added missing attributes and fixed attributes.
5062 * WebBrowser.cs: Added missing attributes and fixed attributes. Fixed
5064 * MaskedTextBox.cs: Added missing attribute. Code formatting.
5065 * PageSetupDialog.cs: Added missing attribute. Code formatting.
5066 * HtmlWindowCollection.cs: Code formatting. Fixed line endings.
5067 * ImeMode.cs: Added missing field.
5068 * HtmlWindow.cs: Code formatting. Fixed line endings.
5069 * HtmlElement.cs: Code formatting. Fixed line endings. Fixed compiler
5071 * HtmlHistory.cs: Code formatting. Fixed line endings.
5072 * HtmlDocument.cs: Code formatting. Fixed line endings.
5073 * ToolStripPanel.cs: Added missing IList implementation.
5074 * HtmlElementCollection.cs: Code formatting. Fixed line endings.
5076 2008-04-06 Gert Driesen <drieseng@users.sourceforge.net>
5078 * BindingContext.cs: Changed argument names to fix corcompare errors.
5079 * DataGridView.cs: Removed extra explicit interface implementation
5080 of IDropTarget. Code formatting.
5081 * FlowLayoutPanel.cs: Changed argument names to fix corcompare errors.
5082 * ComboBox.cs: Changed argument names to fix corcompare errors.
5083 * DataGridTextBoxColumn.cs: Changed argument names to fix corcompare
5085 * GridColumnStylesCollection.cs: Changed argument names to fix
5086 corcompare errors. Removed extra tabs.
5087 * GridTableStylesCollection.cs: Changed argument names to fix corcompare
5089 * Control.cs: Changed argument names to fix corcompare errors. Code
5090 formatting. Removed extra explicit IList implementation.
5091 * TextBox.cs: Changed argument names to fix corcompare errors. Code
5092 formatting. Use string.Empty instead of "".
5093 * GridItemCollection.cs: Changed argument names to fix corcompare
5094 errors. Code formatting.
5095 * DataGridViewTopLeftHeaderCell.cs: Changed argument names to fix
5096 corcompare errors. Code formatting.
5097 * ImageList.cs: Changed argument names to fix corcompare errors.
5098 * ToolStripItem.cs: Changed argument names to fix corcompare errors.
5099 * DataGridViewRowCollection.cs: Changed argument names to fix
5100 corcompare errors. Code formatting.
5101 * TableLayoutPanel.cs: Changed argument names to fix corcompare errors.
5102 * DataGridViewSelectedCellCollection.cs: Changed argument names to
5103 fix corcompare errors. Code formatting.
5104 * DataGridViewComboBoxCell.cs: Changed argument names to fix
5105 corcompare errors. Code formatting.
5106 * LinkLabel.cs: Changed argument names to fix corcompare errors.
5107 * TreeNode.cs: Changed argument names to fix corcompare errors. Code
5109 * PropertyGrid.cs: Changed argument names to fix corcompare errors.
5111 * BindingSource.cs: Changed argument names to fix corcompare errors.
5112 Removed extra explicit interface implementations.
5113 * DataGridViewSelectedRowCollection.cs: Changed argument names to
5114 fix corcompare errors. Code formatting.
5115 * ToolStripItemCollection.cs: Removed extra explicit interface
5116 implementation of IList.ReadOnly.
5117 * DataGridViewColumnCollection.cs: Changed argument names to fix
5118 corcompare errors. Code formatting.
5119 * DataGridViewRow.cs: Rename converter to match MS. Code formatting.
5120 * ListView.cs: Changed argument names to fix corcompare errors.
5121 * DataGridViewHeaderCell.cs: Changed argument names to fix corcompare
5123 * DataGridBoolColumn.cs: Changed argument names to fix corcompare
5125 * ListBindingHelper.cs: Changed argument names to fix corcompare
5127 * DataGridViewSelectedColumnCollection.cs: Changed argument names to
5128 fix corcompare errors. Code formatting.
5129 * ToolStripPanel.cs: Removed extra explicit implementation of
5130 IDropTarget interface.
5131 * ListBox.cs: Changed argument names to fix corcompare errors. Code
5132 formatting. Removed extra tabs and spaces.
5133 * DataGridViewCellCollection.cs: Changed argument names to fix
5135 * Help.cs: Changed argument names to fix corcompare errors. Code
5137 * TabControl.cs: Changed argument names to fix corcompare errors.
5138 * DataGridColumnStyle.cs: Changed argument names to fix corcompare
5140 * TableLayoutSettings.cs: Changed argument names to fix corcompare
5143 2008-04-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5145 * ListBindingHelper.cs: When returning properties, only return those
5146 that are browsable. Also, don't do a linear search of the properties,
5147 but use the indexer of the PropertyDescriptorCollection class.
5149 2008-04-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5151 * BindingSource.cs: Implement GetRelatedCurrencyManager by adding a
5152 Dictionary containing the related (child) currency managers. Also,
5153 when setting DataSource, add datasource to our List if it is not a list.
5155 2008-04-05 Ivan N. Zlatev <contact@i-nz.net>
5157 * PropertyGridTextBox.cs: Fix background color of the buttons.
5158 * PropertyGridView.cs: Make the entry less jumpy.
5160 2008-04-05 Ivan N. Zlatev <contact@i-nz.net>
5162 * PropertyGrid.cs: Fix unused variable warnings.
5164 2008-04-05 Ivan N. Zlatev <contact@i-nz.net>
5166 * PropertyGridView.cs: Fix expansion via [+] misbehavior on
5167 double-click. It expanded it once in the mouse down and then
5168 again in the double-click handler.
5170 2008-04-04 Ivan N. Zlatev <contact@i-nz.net>
5172 * GridEntry.cs: ICustomTypeDescriptor support for PropertyOwner,
5173 TypeConverter and UITypeEditors.
5175 2008-04-04 Ivan N. Zlatev <contact@i-nz.net>
5177 * Control.cs: Visibility should be set synchronously,
5178 so we must also redraw once it is and not rely on layouting or
5179 other code to repaint.
5182 2008-04-04 Jonathan Pobst <monkey@jpobst.com>
5184 * DataGridViewCell.cs: Respect DataGridView.GridColor.
5186 2008-04-03 Jonathan Pobst <monkey@jpobst.com>
5188 * Control.cs: Invalidate when the alpha channel is less than 255,
5189 not only when control is transparent.
5191 2008-04-03 Jonathan Pobst <monkey@jpobst.com>
5193 * DataGridViewRowPrePaintEventArgs.cs, DataGridViewRowPostPaintEventArgs.cs:
5194 Implement some painting convenience methods that threw NIEX.
5196 2008-04-03 Jonathan Pobst <monkey@jpobst.com>
5198 * DataGridView.cs: Call CellMouse[Enter|Move|Leave] properly.
5199 * DataGridViewLinkCell.cs: Implement.
5201 2008-04-03 Ivan N. Zlatev <contact@i-nz.net>
5203 * GridEntry.cs: Report the conversion exception error description.
5206 2008-04-03 Ivan N. Zlatev <contact@i-nz.net>
5208 * PropertyGridView.cs: Do not scroll to item on resize.
5211 2008-04-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5213 * BindingContext.cs: When retrieving a BindingManagerBase, if the
5214 dataSource parameter is ICurrencyManagerProvider, then return
5215 ICurrencyManagerProvider.CurrencyManager/GetRelatedCurrencyManager
5216 instead of creating a new one.
5218 2008-04-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5220 * BindingSource.cs: Implement support for Type instances as
5223 2008-04-02 Jonathan Pobst <monkey@jpobst.com>
5225 * DataGridView.cs: Minor cleanups and call CellMouseUp.
5226 * DataGridViewCell.cs: Make some painting routines internally virtual.
5227 * DataGridViewButtonCell.cs: Implement.
5229 2008-04-02 Jonathan Pobst <monkey@jpobst.com>
5231 * Control.cs: We always need to invalidate our children with
5232 transparent backgrounds when we are invalidated.
5235 2008-04-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5237 * BindingSource.cs: EndEdit and CancelEdit should call EndCurrentEdit
5238 and CancelCurrentEdit on CurrencyManager respectively. Implement
5239 support for ICancelAddNew too.
5241 2008-04-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5243 * CurrencyManager.cs: When calling EndCurrentEdit/CancelCurrentEdit,
5244 call EndNew/CancelNew if list is ICancelAddNew.
5246 2008-04-01 Jonathan Pobst <monkey@jpobst.com>
5248 * DataGridView.cs: Guard against an exception while painting
5249 if there are no rows.
5251 2008-04-01 Jonathan Pobst <monkey@jpobst.com>
5253 * DataGridView.cs: Implement a bunch of keyboard commands.
5255 2008-03-31 Jonathan Pobst <monkey@jpobst.com>
5257 * ToolBar.cs: Don't do our painting if UserPaint is set. If UserPaint
5258 isn't set, don't call OnPaint. [Fixes bug #375300]
5260 2008-03-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5262 * BindingSource.cs: IsBindingSuspended, ResumeBinding and
5263 SuspendBinding depend on CurrencyManager. Implement RemoveCurrent,
5264 hookup the remaining events related to CurrencyManager, and fire
5265 OnListChanged also for the Clear () method.
5267 2008-03-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5269 * BindingSource.cs: Use Current and Position implementations in
5270 CurrencyManager instead of using our own routines, since we need
5271 to be in synch with it. Count should NEVER return a -1 value, and
5272 also report ListChanged events for both simple IList data
5273 sources (manually) as well for IBindingList ones (by hooking up an
5274 event handler for it).
5276 2008-03-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5278 * BindingSource.cs: Make one .ctor call the another, to avoid
5279 duplicate code. Add the CurrencyManager property, and also for AddNew
5280 throw the proper exceptions and show better error messages.
5282 2008-03-28 Jonathan Pobst <monkey@jpobst.com>
5284 * ComboBox.cs: Only adjust selectedindex if Handle has been
5285 created. Fixes failing test.
5287 2008-03-28 Jonathan Pobst <monkey@jpobst.com>
5289 * ComboBox.cs: Adjust selectedindex if we insert a new item
5290 above the current selectedindex in a sorted ComboBox.
5293 2008-03-28 Jonathan Pobst <monkey@jpobst.com>
5295 * ComboBox.cs: Support PageUp/PageDown when dropdown is closed.
5298 2008-03-28 Jonathan Pobst <monkey@jpobst.com>
5300 * DataGridViewTextBoxCell.cs: Implement stuffs.
5302 2008-03-27 Jonathan Pobst <monkey@jpobst.com>
5304 * TreeView.cs: Create the scrollbars even earlier to be
5305 double dog certain they are created before they are accessed.
5307 2008-03-27 Jonathan Pobst <monkey@jpobst.com>
5309 * XplatUIX11.cs: Remove a no-op line that csc was choking on.
5311 2008-03-27 Jonathan Pobst <monkey@jpobst.com>
5313 * ScrollBar.cs: Create an internal safe Value setter so we
5314 won't crash if we try to set a value outside the min and max.
5315 * TextBoxBase.cs: Use safe value setter to guard against a
5316 potential NRE that is being reported by Reflector.
5318 2008-03-27 Jonathan Pobst <monkey@jpobst.com>
5320 * TreeView.cs: Create the scrollbars earlier in the constructor
5321 to attempt to guard against an NRE in SetTop in Reflector.
5323 2008-03-27 Jonathan Pobst <monkey@jpobst.com>
5325 * DataGridView.cs, DataGridViewCell.cs, DataGridViewCell.cs,
5326 DataGridViewRowCollection.cs: Do not scroll column and row headers,
5327 show messagebox on data format error, use column display index
5328 correctly, make sure HitTest supports new layout stuff,
5329 make sure scrollbars support new layout stuff.
5331 2008-03-27 Atsushi Enomoto <atsushi@ximian.com>
5333 * XplatUIX11.cs : Patch by Doug Rintoul.
5334 For some IM engines, keypress events need to delay call
5335 to XPending() and XNextEvent() in the loop so that it
5336 does not mess the orders in XIM commit callback.
5337 Some KeyRelease events such as shift keys need to be
5338 processed both in the IM engine and winforms driver
5339 itself since winforms holds its own state check.
5341 For details, see: http://lists.ximian.com/pipermail/mono-winforms-list/2008-March/003279.html
5343 2008-03-27 Atsushi Enomoto <atsushi@ximian.com>
5345 * X11Keyboard.cs, XplatUIX11.cs :
5346 add primitive support for XIM input support (preedit-
5347 nothing and status-nothing). It requires precise event
5348 capturing (XSelectInput/"filterEvents") and different
5349 call to XFilterEvent against root window.
5350 Get composed string and send dummy WM_IME_COMPOSITION.
5351 Free XIM and XIC instances in finalizer.
5353 (This first patch does not include suggested changes
5354 by Doug Rintoul. It will follow.)
5356 2008-03-26 Jonathan Pobst <monkey@jpobst.com>
5358 * DataGridView.cs: When binding to a property, if the property
5359 doesn't have a setter, set the column to readonly.
5362 2008-03-26 Jonathan Pobst <monkey@jpobst.com>
5364 * ComboBox.cs: Guard against NRE if an arrow key is hit while
5365 we aren't dropped down. Support Home/End in DropDownList mode.
5368 2008-03-26 Jonathan Pobst <monkey@jpobst.com>
5370 * TreeNodeCollection.cs: Don't increment count until we've
5371 saved our index to return.
5374 2008-03-25 Jonathan Pobst <monkey@jpobst.com>
5376 * Label.cs: Add padding to the label's AutoSize calculation.
5379 2008-03-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5381 * ListBindingHelper.cs: Actually implement GetListName method.
5383 2008-03-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5385 * BindingSource.cs: Throw the propert expceptions for some methods, as
5386 well as detect the list item type for Add method if DataSource is null.
5388 2008-03-25 Jonathan Pobst <monkey@jpobst.com>
5390 * DataGridViewCell.cs: I don't know why I commented this out,
5391 putting it back for now.
5393 2008-03-25 Jonathan Pobst <monkey@jpobst.com>
5395 * DataGridViewCell.cs: Remove storage for owning column, just
5397 * DataGridViewColumn.cs: Make getter for HeaderTextSet.
5398 * DataGridViewColumnHeaderCell.cs: If the header text has been
5399 explicitly set, return it.
5402 2008-03-25 Jonathan Pobst <monkey@jpobst.com>
5404 * DataGridViewRowCollection.cs: Disable row sharing when
5405 using data binding. Its a great feature, but lets work on
5406 getting DGV usable first before we worry about optimizations.
5408 2008-03-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5410 * BindingSource.cs: When resetting our internal list, compute list
5411 item type information to be used for indirect list access. Also
5412 implement/tune some properties and methods related to the list access
5414 * ListBindingHelper.cs: Add a stub for GetListName method, used from
5417 2008-03-24 Jonathan Pobst <monkey@jpobst.com>
5419 * DataGridView.cs: If RowCount is increased while ColumnCount
5420 is zero, add a column. [Fixes bug #331649]
5422 2008-03-24 Jonathan Pobst <monkey@jpobst.com>
5424 * DataGridViewRowCollection.cs: When adding new rows for
5425 databinding, make sure they are place before the add row.
5428 2008-03-24 Jonathan Pobst <monkey@jpobst.com>
5430 * DataGridViewRow.cs: Draw cells in column DisplayIndex order
5431 instead of Index order.
5433 2008-03-24 Jonathan Pobst <monkey@jpobst.com>
5435 * DataGridView.cs: If columns are added by increasing ColumnCount,
5436 they need to be DataGridViewTextBoxColumns, not DataGridViewColumn.
5439 2008-03-24 Jonathan Pobst <monkey@jpobst.com>
5441 * DataGridView.cs: Turn off and on the "new row" when
5442 AllowUserToAddRows is toggled. When the handle is created,
5443 set current cell and selected cell/row/col.
5445 2008-03-24 Jonathan Pobst <monkey@jpobst.com>
5447 * ComboBox.cs: When navigating the drop down by keyboard, we
5448 need to scroll the list box if our selection moves out of the
5449 currently shown items. [Fixes bug #371990]
5451 2008-03-24 Luke Page <luke.a.page@gmail.com>
5453 * RichTextBox.cs: Handles visible rtf tag and no longer shows the text
5454 on the control. Also now handles unicode compatibility characters and
5455 stores the unicode compatibility length on the stack. Fixes Bugs
5456 #355198 and #366436.
5458 2008-03-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5460 * BindingSource..cs: Take into account DataMember when re-creating the
5461 List property, and also create a specific kind of list as needed.
5463 2008-03-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5465 * ListBindingHelper.cs: Add a new case for GetList () method - when we
5466 get an empty IEnumerable, try to detect whether the datamember is
5467 valid or not for that type, if true, return null, and throw exception
5470 2008-03-22 Jonathan Pobst <monkey@jpobst.com>
5472 * ComboBox.cs: Alt-Down should drop down the list, Esc should
5473 retract it. [Fixes bug #371989]
5475 2008-03-22 Ivan N. Zlatev <contact@i-nz.net>
5477 * PropertyGrid.cs: Initialize the sorting button as pushed.
5479 2008-03-22 Ivan N. Zlatev <contact@i-nz.net>
5482 - Visually select the PropertyTab.
5483 - Filter Properties by Attributes properly.
5485 2008-03-21 Jonathan Pobst <monkey@jpobst.com>
5487 * MenuItem.cs: Remove menu item from parent when disposed.
5490 2008-03-21 Jonathan Pobst <monkey@jpobst.com>
5492 * ToolBar.cs: Don't reset layout_type if Dock = None.
5494 2008-03-21 Andreia Gaita <avidigal@novell.com>
5496 * UserControl.cs: Select the first available control when we get focus.
5499 2008-03-21 Jonathan Pobst <monkey@jpobst.com>
5501 * DataGridViewCell.cs, DataGridViewTextBoxCell.cs: Don't paint
5502 the content if we are in edit mode. [Fixes bug #343964]
5504 2008-03-21 Jonathan Pobst <monkey@jpobst.com>
5506 * DataGridViewCell.cs: Fix border painting for column headers.
5508 2008-03-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5510 * BindingSource.cs: When setting or resetting data source,
5511 use ListBindingHelper.GetList () method, since it will get the list in
5512 case datasource is IListSource.
5514 2008-03-20 Jonathan Pobst <monkey@jpobst.com>
5516 * DataGridViewCell.cs: Implement lots more stuffs.
5518 2008-03-20 Ivan N. Zlatev <contact@i-nz.net>
5520 * PropertyGridView.cs, GridEntry.cs: Implement support for
5521 UITypeEditor.IsDropDownResizable.
5523 2008-03-20 Jonathan Pobst <monkey@jpobst.com>
5525 * DataGridViewCell.cs: Remove unused variables, improve how
5526 several of the property getters work.
5527 * DataGridViewRow.cs: Don't call setSize on a cell, cell should
5528 get its size from the parent row/col.
5530 2008-03-20 Ivan N. Zlatev <contact@i-nz.net>
5532 * PropertyGrid.cs: Ensure PropertiesTab is visible even if the
5533 user alters manually the PropertyTabs collection via the
5534 PropertyTabs property.
5536 2008-03-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5538 * ListBindingHelper.cs: Implement -previously- ignored cases. We have
5539 new tests for them to be sure to be compatible with .net.
5541 2008-03-20 Andreia Gaita <avidigal@novell.com>
5543 * WebBrowserBase.cs: Fix attributes, add events
5544 * WebBrowser.cs: Fix Padding signature
5546 2008-03-20 Ivan N. Zlatev <contact@i-nz.net>
5548 * PropertyGrid.cs, PropertyGridView.cs: Implement PropertyTab support.
5550 2008-03-19 Jonathan Pobst <monkey@jpobst.com>
5552 * DataGridView.cs, DataGridViewCell.cs, DataGridViewCellStyle.cs,
5553 DataGridViewLinkCell.cs, DataGridViewRow.cs, DataGridViewRowHeaderCell.cs,
5554 DataGridViewTextBoxCell.cs: Changes so that DataGridViewCell
5555 passes the new suite of tests for it.
5557 2008-03-18 Andreia Gaita <avidigal@novell.com>
5559 * WebBrowser.cs: Add missing attributes, missing Padding and
5560 DefaultSize properties, remove extraneous getters
5562 2008-03-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5564 * ListBindingHelper.cs: Implement a pair of GetListItemProperties
5567 2008-03-16 Jonathan Pobst <monkey@jpobst.com>
5569 * ComboBox.cs: Move resetting the selected index to keypress
5570 instead of textchanged. Changing the text programmatically
5571 should not trigger resetting the selected index. Fixes test.
5573 2008-03-16 Jonathan Pobst <monkey@jpobst.com>
5575 * ComboBox.cs: When the user types into the textbox, reset
5576 the selected index to -1. [Fixes bug #371672]
5578 2008-03-16 Jonathan Pobst <monkey@jpobst.com>
5580 * FileDialog.cs: Support Control-A for selecting everything
5581 in an OpenFileDialog. [Fixes bug #371564]
5583 2008-03-15 Jonathan Pobst <monkey@jpobst.com>
5585 * DataGridView.cs: When row/column visible/height properties
5586 change, invalidate. Take the NIEX out of InvalidateRow/Column
5587 etc. We don't support them yet, but we can just invalidate
5588 everything until we do support them. (Added MonoTODO). Set
5589 proper control styles.
5590 * DataGridViewRow.cs: Don't call PaintHeader if row headers
5593 2008-03-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5595 * ListBindingHelper.cs: Implement 2.0 GetListItemType methods.
5597 2008-03-14 Jonathan Pobst <monkey@jpobst.com>
5599 * DataGridViewRow.cs: Only paint the white background in
5600 cell bounds, the row bounds extends past the cells if the
5601 grid width isn't as wide as the DGV.
5603 2008-03-14 Jonathan Pobst <monkey@jpobst.com>
5605 * DataGridView*: Completely revamp the drawing to match the
5606 public API. Our grids now look better, and call all the
5607 appropriate methods and event to allow users to override
5608 the painting and do their own.
5610 2008-03-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5612 * ListBindingHelper.cs: Implement 2.0 GetList methods.
5614 2008-03-13 Jonathan Pobst <monkey@jpobst.com>
5616 * DataGridView.cs: Implement BorderStyle.
5618 2008-03-13 Jonathan Pobst <monkey@jpobst.com>
5620 * FileDialog.cs: Apply patch from Andy Hume: Any time we
5621 are comparing attributes, make sure we only look at the
5622 one we are interested. These calls were failing if there
5623 were more than one attribute.
5626 2008-03-13 Jonathan Pobst <monkey@jpobst.com>
5628 * DataGridColumnStyle.cs: Hide ctor from 1.1 profile.
5630 2008-03-12 Jonathan Pobst <monkey@jpobst.com>
5632 * PageSetupDialog.cs: Stub EnableMetric.
5633 * PrintControllerWithStatusDialog.cs: Implement IsPreview.
5634 * PrintPreviewDialog.cs: Add ProcessDialogKey,
5637 2008-03-12 Jonathan Pobst <monkey@jpobst.com>
5639 * MonthCalendar.cs: Remove unused variable.
5641 2008-03-12 Jonathan Pobst <monkey@jpobst.com>
5643 * DataGridView*.cs: corcompare stuffs.
5645 2008-03-11 Jonathan Pobst <monkey@jpobst.com>
5647 * MonthCalendar.cs: Remove an incorrect invalidate optimization.
5648 The savings aren't worth the extra code to fix the optimization.
5651 2008-03-11 Jonathan Pobst <monkey@jpobst.com>
5653 * ToolBar.cs: Always call base.Dock in the Dock override so that
5654 Control's layout_type gets reset correctly.
5657 2008-03-11 Ivan N. Zlatev <contact@i-nz.net>
5659 * X11Dnd.cs: End DnD operation also for the middle mouse button.
5661 2008-03-11 Jonathan Pobst <monkey@jpobst.com>
5663 * ContainerControl.cs: We can't do MenuStrip implicit mnemonics
5664 at the same time we do explicit ones, because we have to give all
5665 other controls on the container a chance to handle explicit ones
5666 first. If no one has an explicit mnemonic, then we can let the
5667 MenuStrip have a shot at implicit mnemonics.
5668 * MenuStrip.cs: Create an implicit mnemonic function.
5669 * ToolStrip.cs: When processing explicit mnemonics, don't do implicit
5670 mnemonics for MenuStrips.
5673 2008-03-11 Jonathan Pobst <monkey@jpobst.com>
5675 * AxHost.cs, Binding.cs, DataGridView.cs, DataGridViewCell.cs,
5676 DataGridColumnStyle.cs: corcompare stuffs.
5678 2008-03-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5680 * FileDialog.cs: Don't add any ColumnHeader to Columns if view is not
5681 Details - This is needed after we added the bits to use any available
5682 column also for List and SmallIcon view.
5684 2008-03-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5686 * ListBox.cs: Fire SelectedIndexChanged and SelectedValueChanged events
5687 at the proper place, not only when changing SelectedIndex and changing
5688 the selection using keys/mouse, as .net does.
5690 2008-03-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5692 * ControlBindingsCollection.cs: Implement last 2.0
5693 DefaultDataSourceUpdateMode property. Also fix a wrong instruction
5694 in the new 2.0 Add methods.
5696 2008-03-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5698 * ListBox.cs: When calling SelectedIndexCollection.Clear,
5699 return if no items are previously selected - this is done to avoid
5700 firing OnSelectedIndexChanged without need to do so. Also,
5701 when creating handle ensure that the focused item is visible (as
5704 2008-03-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5706 * ListBox.cs: Rewrote/refactored most of selection code. We require
5707 the following things in selection: a) keep selection sorted (both
5708 indices and items), b) SelectedIndices automatically detect the
5709 selection mode, c) SelectedIndex should be the first selected item
5710 index, d) Need to Focus/adjust scroll bar when selecting a new item,
5711 not only for SelectedIndex, which is specially important in Multi*
5712 selection modes. To achieve this we are moving the selection core to
5713 SelectedIndexCollection and make depend all selection modifications on
5717 2008-03-06 Jonathan Pobst <monkey@jpobst.com>
5719 * ToolStrip.cs: Enable implicit mnemonics for drop down
5720 menu strips. [Fixes part of bug #367692]
5722 2008-03-06 Jonathan Pobst <monkey@jpobst.com>
5724 corcompare - fix parameter names [stragglers].
5725 Binding.cs, BindingsCollection.cs, GridColumnStylesCollection.cs,
5726 HelpEventHandler.cs, Label.cs, ListView.cs, Message.cs,
5729 2008-03-06 Jonathan Pobst <monkey@jpobst.com>
5731 Control.cs: Don't call ProcessMenuKey on WM_SYSKEYUP if there
5732 was a mnemonic pressed as well as Alt. Also, if nothing handles a
5733 mnemonic, let the ToolStripManager have it even if it doesn't
5734 have a matching mnemonic.
5737 2008-03-06 Jonathan Pobst <monkey@jpobst.com>
5739 corcompare - fix warning about implicit implementation
5740 * ToolStrip.cs: Add IToolStripData interface.
5741 * IToolStripData.cs: Add.
5743 2008-03-06 Jonathan Pobst <monkey@jpobst.com>
5745 corcompare - fix warning about implicit implementation
5746 * Control.cs, ToolStripPanelRow.cs: Add IBounds interface.
5749 2008-03-05 Jonathan Pobst <monkey@jpobst.com>
5751 corcompare - fix parameter names [N-Z].
5752 LinkArea.cs, NativeWindow.cs, NotifyIcon.cs, PageSetupDialog.cs,
5753 Panel.cs, PrintDialog.cs, PrintPreviewControl.cs, PropertyGrid.cs,
5754 PropertyManager.cs, RichTextBox.cs,
5755 ScrollBar.cs, SelectionRange.cs, SplitContainer.cs, StatusBar.cs,
5756 StatusBarDrawItemEventArgs.cs, StatusBarPanelClickEventArgs.cs,
5757 StatusStrip.cs, TabControl.cs, TableLayoutColumnStyleCollection.cs,
5758 TableLayoutRowStyleCollection.cs, TableLayoutStyleCollection.cs,
5759 TextBoxBase.cs, ThreadExceptionDialog.cs, ToolStrip.cs,
5760 ToolStripContentPanel.cs, ToolStripDropDown.cs,
5761 ToolStripDropDownMenu.cs, ToolStripItem.cs, ToolStripMenuItem.cs,
5762 ToolStripPanel.cs, ToolStripSeparator.cs,
5763 TreeNode.cs, TreeView.cs, TreeViewHitTestInfo.cs,
5764 UICuesEventHandler.cs, UpDownBase.cs.
5766 2008-03-05 Jonathan Pobst <monkey@jpobst.com>
5768 corcompare - fix parameter names [G-M].
5769 GridColumnStylesCollection.cs, GridItemCollection.cs,
5770 GridTableStylesCollection.cs, GroupBox.cs, Help.cs,
5771 HelpProvider.cs, ImageListStreamer.cs, InputLanguageCollection.cs,
5772 Label.cs, LayoutEngine.cs, LinkClickedEventArgs.cs,
5773 LinkLabel.cs, ListBox.cs, ListView.cs, ListViewGroupCollection.cs,
5774 ListViewItem.cs, Menu.cs, MenuItem.cs, MenuStrip.cs, MouseEventArgs.cs.
5776 2008-03-05 Jonathan Pobst <monkey@jpobst.com>
5778 corcompare - fix parameter names [A-F].
5779 Control.cs, DataGridBoolColumn.cs, DataGridColumnStyle.cs,
5780 DataGridTextBoxColumn.cs, DataGridViewButtonCell.cs,
5781 DataGridViewCellCollection.cs, DataGridViewCellParsingEventArgs.cs,
5782 DataGridViewCheckBoxCell.cs, DataGridViewColumnDesignTimeVisibleAttribute.cs,
5783 DataGridViewComboBoxCell.cs, DataGridViewHeaderCell.cs,
5784 DataGridViewImageCell.cs, DataObject.cs, DomainUpDown.cs,
5785 DrawItemEventArgs.cs, FolderBrowserDialog.cs, FontDialog.cs, Form.cs.
5787 2008-03-03 Ivan N. Zlatev <contact@i-nz.net>
5789 * GridEntry.cs: Do not convert not only if the types match,
5790 but also if the property type is assigneable from the value's
5794 2008-03-03 Ivan N. Zlatev <contact@i-nz.net>
5796 * PropertyGridView.cs:
5797 - Subscribe to the listbox only once and not everytime.
5798 - Update the textbox even if SetValue fails.
5799 - Close the listbox before calling TrySetValue just in case.
5802 2008-03-03 Jonathan Pobst <monkey@jpobst.com>
5804 * Control.cs: Hide ICollection.CopyTo from the 1.1 profile.
5806 2008-03-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5808 * ListView.cs: Implement support for custom column width based on
5809 Columns collection (we were previously using this collection only
5813 2008-03-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5815 * ListViewItem.cs: For Tile view, always set bounds for the first
5816 subitem (which is the main one), and also don't let Width be larger
5817 than ListView.TileSize.Width. Improve code readibility also.
5818 * ThemeWin32Classic.cs: When painting the ListViewItem instances
5819 in Tile view, _always_ use the NoWrap flag.
5822 2008-02-29 Ivan N. Zlatev <contact@i-nz.net>
5824 * PropertyGrid.cs: Check for null PropertyDescriptor.Name just
5826 * GridEntry.cs: For MS compitability make all child properties
5827 readonly if the parent is readonly. Ugh.
5828 [Fixes bug #365945 and #365944]
5830 2008-02-29 Andreia Gaita <avidigal@novell.com>
5832 * HtmlHistory.cs: Fix sigs for Forward and Back to navigate by index
5833 relative to the history
5835 2008-02-29 Andreia Gaita <avidigal@novell.com>
5837 * HtmlElement.cs: More handlers for mouse and key events
5839 2008-02-28 Andreia Gaita <avidigal@novell.com>
5841 * WebBrowserBase.cs: MouseClick sig changed.
5842 * HtmlHistory.cs: Implement history navigation
5843 * HtmlElement.cs: Add event handlers, and connect them.
5845 2008-02-28 Ivan N. Zlatev <contact@i-nz.net>
5848 - Use PropertyDescriptor.DisplayName instead of .Name for Label,
5849 so that DisplayNameAttribute doesn't get ignored.
5850 - Check for ParenthesizeNameAttribute and parenthesize the Label.
5851 - Add support for PasswordPropertyTextAttribute
5852 * PropertyGridView.cs: Check if an entry is a password.
5853 [Fixes bugs #365589, #365586, #365588]
5855 2008-02-28 Andreia Gaita <avidigal@novell.com>
5857 * PropertyGridView.cs: Revert the message filtering change, as we
5858 need it to block after all. Remove block parameter, unnecessary.
5860 2008-02-27 Jonathan Pobst <monkey@jpobst.com>
5862 * UserControl.cs: Better implementation of GetPreferredSize.
5863 First step to fixing bug #361441.
5865 2008-02-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5867 * Binding.cs: Actually implement data binding support for
5868 classes implementing IBindableComponent.
5869 * ControlBindingsCollection.cs: Likewise.
5871 2008-02-26 Andreia Gaita <avidigal@novell.com>
5873 * PropertyGridView.cs: Use a message filter to check when to
5876 2008-02-26 Andreia Gaita <avidigal@novell.com>
5878 * Application.cs: Change the message_filters loop so a filter
5879 can be removed while looping.
5881 2008-02-26 Ivan N. Zlatev <contact@i-nz.net>
5883 * GridEntry.cs: Optimization in ToggleValue so that it caches
5885 * PropertyGridView.cs: An optimization so that the property isn't
5886 re-read twice for each StandardValue added to the drop-down menu.
5887 Patch by Andy Hume <andyhume32@yahoo.co.uk> under the MIT/X11
5891 2008-02-26 Jonathan Pobst <monkey@jpobst.com>
5893 * Application.cs: Apply patch from Justin Cherniak to match
5894 MS better for ProductName, ProductVersion, and CompanyName.
5897 2008-02-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5899 * Binding.cs: Actually implement 2.0 NullValue property. Also
5900 when changing the formatting related properties, only update the state
5901 if formatting_enabled is true (we don't mind otherwise).
5903 2008-02-25 Jonathan Pobst <monkey@jpobst.com>
5905 * ToolStrip.cs: Don't raise ItemClicked for disabled items.
5908 2008-02-25 Ivan N. Zlatev <contact@i-nz.net>
5910 * GridEntry.cs: Use the PropertyDescriptor.PropertyType instead
5911 of GetType on the current value as it uses reflection to
5912 determine the type. This fixes the case where the new value is
5915 2008-02-25 Ivan N. Zlatev <contact@i-nz.net>
5917 * PropertyGridView.cs: Limit mousewheel scrolling to not scroll
5920 2008-02-24 Luke Page <luke.a.page@gmail.com>
5922 * Line.cs, TextControl.cs: Implement offset x and y so that a
5923 document doesn't have to begin at (0,0) on the viewpoint.
5924 * TextBox.cs, TextBoxBase.cs: RightToLeft switches the scroll
5925 bars and switches the text alignment (and therefore is now
5926 implemented for textbox). Fixes #321383.
5928 2008-02-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5930 * Binding.cs: Actually implement 2.0 FormatString and FormatInfo
5931 properties. Also when changing FormattingEnabled update the control
5932 property -as .Net does-.
5934 2008-02-22 Carlos Alberto Cortez <calberto.cortez@Å‹mail.com>
5936 * ControlBindingsCollection.cs: Add the missing 2.0 Add overloads.
5937 * Binding.cs: Add stubs for the overloads of the Add method in
5940 2008-02-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5942 * Binding.cs: PullData () returns a false value if we got an exception.
5943 Also when validating the control and we get an error, instead of
5944 setting the value of the previous one, cancel the event (tested in 1.1
5947 2008-02-22 Jonathan Pobst <monkey@jpobst.com>
5949 * TreeView.cs: Make selected_node and highlighted_node internal.
5950 * TreeNodeCollection.cs: Reset selected_node and highlighted_node
5951 to null when Nodes.Clear is called.
5954 2008-02-21 Jonathan Pobst <monkey@jpobst.com>
5956 * FontDialog.cs: Ensure that when the Font is set in code,
5957 all the gui pieces are updated accordingly.
5960 2008-02-21 Jonathan Pobst <monkey@jpobst.com>
5962 * TextRenderer.cs: Respect proposed size for MeasureString.
5963 * ThemeWin32Classics.cs: If our CheckBox/RadioButton isn't
5964 autosize, use a proposed width to force wrapping for long text.
5967 2008-02-21 Jonathan Pobst <monkey@jpobst.com>
5969 * TreeView.cs: Factor in checkboxes = false and state images in
5970 to HitTest. [Fixes bug #363360]
5972 2008-02-21 Jonathan Pobst <monkey@jpobst.com>
5974 * ThemeWin32Classic.cs: Only look at the Date part of a DateTime
5975 when drawing the selected range.
5978 2008-02-21 Jonathan Pobst <monkey@jpobst.com>
5980 * ToolStripContainer.cs: Add SupportsTransparentBackColor and
5981 ResizeRedraw control styles.
5984 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
5986 * TreeView.cs: StateImages are basically custom checkboxes, so
5987 factor their size the same as real checkboxes when determining
5991 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
5993 * MessageBox.cs: Make the message box wider if the form caption
5994 is longer than the text in the form.
5997 2008-02-20 Ivan N. Zlatev <contact@i-nz.net>
5999 * PropertyGridView.cs: Fix a NRE when closing the drop down form.
6001 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
6003 * TreeNode.cs: Guard against an NRE when the parent's
6004 StateImageList hasn't been set.
6007 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
6009 * SplitContainer.cs: Add SupportsTransparentBackColor and
6010 OptimizedDoubleBuffering control styles.
6013 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
6015 * Application.cs: For the app data paths and the registry key paths,
6016 ensure they are created before returning them to the user.
6019 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
6021 * Application.cs: Guard against an NRE in CompanyName and
6024 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
6026 * Application.cs: For CompanyName, ProductName, and ProductVersion,
6027 make sure we handle all three cases correctly: attribute is present,
6028 attribute is present but is an empty string, and attribute is not
6031 2008-02-20 Ivan N. Zlatev <contact@i-nz.net>
6033 * PropertyGridView.cs:
6034 - Fix a NRE that caused a test failure
6035 - Another performance improvement - cache the standard values
6038 2008-02-19 Jonathan Pobst <monkey@jpobst.com>
6040 * ComboBox.cs: Fix previous change to affect both 1.1 and 2.0
6043 2008-02-19 Ivan N. Zlatev <contact@i-nz.net>
6045 * PropertyGridView.cs: Fix a big performance bug.
6047 2008-02-19 Jonathan Pobst <monkey@jpobst.com>
6049 * SelectionRange.cs: Apply patch from Andy Hume to make
6050 constructor behavior more accurate. [Fixes bug #362117]
6052 2008-02-19 Andreia Gaita <avidigal@novell.com>
6054 * Control.cs: Added a new flag is_disposing to track if the
6055 window is currently in the process of being disposed of.
6056 This is used so that, when firing visibility changes triggered
6057 by unparenting controls during Dispose, the control doesn't
6060 2008-02-19 Jonathan Pobst <monkey@jpobst.com>
6062 * ComboBox.cs: Set height to preferred height when the handle
6063 is created. [Fixes bug #360862]
6065 2008-02-18 Andreia Gaita <avidigal@novell.com>
6067 * XplatUIX11.cs: Create FosterParent with border width at 0.
6068 With the previous value of 4, everytime a control got reparented
6069 from parent = null, it's location would be shifted right and
6070 down by 4, since these coordinates would be offset by the
6071 FosterParent's border width.
6073 2008-02-18 Ivan N. Zlatev <contact@i-nz.net>
6075 * Control.cs: During diposing firstly remove ourselfes from
6076 the parent and *then* destroy our handle, because removing
6077 ourselfes from the parent controls collection causes
6078 VisibilityChange, etc events, which require a handle and end
6079 up recreating the control.
6081 2008-02-17 Ivan N. Zlatev <contact@i-nz.net>
6083 * GridEntry.cs: Set expanded state before notifying that the
6084 expansion has taken place.
6085 * PropertyGridView.cs:
6086 - Set the propertygridtextbox text to the selected
6087 StandardValue before proceeding to setting it.
6088 - Scrolling bugfixes.
6090 2008-02-16 Ivan N. Zlatev <contact@i-nz.net>
6093 - Fix ValueText to not return null.
6094 - Fix conversion error reporting to actually happen.
6095 * PropertyGridView.cs: Set entry only if the text has changed.
6098 2008-02-16 Ivan N. Zlatev <contact@i-nz.net>
6101 - Fix handling of a null current value.
6102 - Swallow editor exceptions.
6105 2008-02-16 Ivan N. Zlatev <contact@i-nz.net>
6107 * PropertyGrid.cs: Clear current items first thing before
6108 repopulating subitems.
6110 - Handle null StandardValuesCollection.
6111 - Mark as not editable if there is no PropertyDescriptor and
6112 if the Converter cannot convert from string.
6113 [Part of fix for bugs #360666 and #358332]
6115 2008-02-15 Luke Page <luke.a.page@gmail.com>
6116 * MaskedTextBox.cs: Now skips non editable characters after a
6117 character has been entered and we are progressing to the next
6118 position in the MaskedTextBox.
6120 2008-02-15 Luke Page <luke.a.page@gmail.com>
6121 * TextBoxBase.cs: Handles MouseDown when shift key is clicked so
6122 that it changes the selection rather than just repositioning the
6123 cursor. Fixes Bug #360873.
6125 2008-02-15 Luke Page <luke.a.page@gmail.com>
6126 * TextBoxBase.cs, TextControl.cs, RichTextBox.cs: TextChanged fires
6127 when Undo/Redo changes the text. Undo/Redo/Undo/Redo now works
6128 correctly. See #359330
6130 2008-02-15 Andreia Gaita <avidigal@novell.com>
6132 * XplatUIX11.cs: If the handle is null when posting a message, use the
6133 current thread queue to post instead. Fixes #332409
6135 * SendKeys.cs: Slight optimization
6137 2008-02-14 Ivan N. Zlatev <contact@i-nz.net>
6139 * PropertyGrid.cs, PropertyGridView.cs:
6140 Fix multiple scrolling and sizing issues.
6143 2008-02-12 Ivan N. Zlatev <contact@i-nz.net>
6145 * PropertyGridView.cs: Ensure that drop down editors are shown
6146 in the WorkingArea of the screen.
6149 2008-02-12 Ivan N. Zlatev <contact@i-nz.net>
6151 * GridEntry.cs: Fail silently when UITypeEditor is missing.
6154 2008-02-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6156 * Binding.cs: Implement 2.0 DataSourceNullValue property.
6158 2008-02-11 Ivan N. Zlatev <contact@i-nz.net>
6160 * PropertyGridView.cs:
6161 - Clear the controls in the drop down form after it is hidden.
6162 - Fix Width sizing of the dropdown editors to match MSFT.
6164 2008-02-11 Ivan N. Zlatev <contact@i-nz.net>
6166 * PropertyGridView.cs:
6167 - Fix height for drawing the grid entry
6168 text value, so that it clips multiline text properly.
6169 - Fix unfocusing to match MSFT.
6171 2008-02-11 Ivan N. Zlatev <contact@i-nz.net>
6173 * PropertyGrid.cs: Do not populate subgriditems unless expandable.
6174 Fixes a bug where on repopulation after value changed items become
6177 2008-02-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6179 * Binding.cs: For the 2.0 profile, look for a
6180 'PropertyChanged' event in the target control, and add checks for
6181 DataSourceUpdateMode property to change -or not- the data source
6182 from validation/control property change.
6184 2008-02-10 Atsushi Enomoto <atsushi@ximian.com>
6186 * Binding.cs : build fix (operator == is not overriden in 1.x. Do
6187 not compare struct with null in 2.0).
6189 2008-02-10 Luke Page <luke.a.page@gmail.com>
6191 * MaskedTextBox.cs: UseSystemPasswordChar updates PasswordChar, PasswordChar
6192 updates the provider and if not using a provider, uses the internal document
6193 class implementation of password char. Also when showing text, uses display string
6194 from the provider, instead of the actual text.
6196 2008-02-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6198 * Binding.cs: Ooooops, forgot to take into account the data_source
6199 and binding_member_info null case (it was breaking the Binding tests).
6201 2008-02-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6203 * Binding.cs: Implement support for data source changes exposed by
6204 'PropertyNameChanged' events, and update the control property as
6207 2008-02-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6209 * Binding.cs: Implement 2.0 WriteValue method.
6211 2008-02-08 Jonathan Pobst <monkey@jpobst.com>
6213 Commit patch from James Purcell for better AutoScale implementation:
6215 * ScaleControl should call GetScaledBounds with the control's total size rather
6216 than client size. GetScaledBounds should handle ignoring the borders in its
6217 calculations. Cleaned up ScaleControl/GetScaledBounds overrides in controls
6218 (for the most part they just call the base code now since that is fixed).
6219 * Added ScaleChildrenInternal to allow controls to disable scaling of children
6220 without having to override ScaleChildren (since none of .NET's controls do).
6221 This is required for most controls in Mono that have scrollbars to prevent the
6222 scrollbars from being moved/resized.
6223 * Nested ContainerControls can have a different scale mode than their parent.
6224 This is briefly mentioned in MSDN but is buggy in MS.NET (the runtime and
6225 designer produce different results both of which look incorrect).
6226 * Default AutoScaleMode for ContainerControl should be Inherit.
6227 * Simplified workaround for ComboBox scaling issue.
6228 * 1.0 style auto-scaling now uses its own methods instead of sharing 2.0's.
6229 1.0 style auto scaling should scale the whole control's size instead of
6230 ignoring the borders (except for Form) and the rounding is done differently to
6231 preserve control alignment.
6232 * ApplyAutoScaling (used for 1.0 style) should use the rounded result of
6234 * Cleaned up fix for "Bug 355703 - Setting AutoScale = true doesn't stick".
6235 * CurrentAutoScaleDimensions should round the estimated character width instead
6237 * ListBox's GetScaledBounds should always use the height it was set to instead
6238 of the height that was passed in. This prevents rounding errors from
6239 accumulating quickly with IntegralHeight.
6242 2008-02-08 Andreia Gaita <avidigal@novell.com>
6244 * Form.cs: Add a null check (darn it).
6246 2008-02-08 Jonathan Pobst <monkey@jpobst.com>
6248 * MdiClient.cs: Make sure the requesting form actually owns the
6249 control menu items before removing them. Also, use
6250 Suspend/ResumeLayout when adding or removing items so we only
6254 2008-02-08 Jonathan Pobst <monkey@jpobst.com>
6256 * Control.cs: Guard against an NRE in ShowFocusCues.
6259 2008-02-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6261 * Binding.cs: Implement 2.0 ReadValue method and ControlUpdateMode
6262 property, as well as stubbing DataSourceUpdateMode.
6264 2008-02-08 Andreia Gaita <avidigal@novell.com>
6266 * Form.cs: When closing forms, get focus back to the active control of the
6267 active form. [Fixes #341314, corner case]
6269 2008-02-07 Jonathan Pobst <monkey@jpobst.com>
6271 * MdiClient.cs: After we move the scrollbars, invalidate the NC
6272 area, so any old scrollbar artifacts are cleaned up.
6275 2008-02-07 Jonathan Pobst <monkey@jpobst.com>
6277 * MdiWindowManager.cs: If we are maximized and using MainMenuStrip
6278 for our menus, display that control box menu instead of the 1.1
6281 2008-02-07 Jonathan Pobst <monkey@jpobst.com>
6283 * MdiControlStrip.cs: Add property to access the mdi form tied to
6285 * MdiClient.cs: Be smarter about removing and adding toolstripitems
6286 to the implicitly merged menu. Every time we clicked the form, items
6287 were getting removed and the re-added, causing the form to jump around
6288 as the menu resized.
6290 2008-02-07 Jonathan Pobst <monkey@jpobst.com>
6292 * MdiClient.cs: Make sure the NormalBounds always gets set. It
6293 was being reset by the implicit menu merge for menustrips.
6296 2008-02-07 Jonathan Pobst <monkey@jpobst.com>
6298 * Form.cs: Don't do the previous change when WindowState = Normal,
6299 or it messes up where the window is placed. Fixes test failure.
6301 2008-02-07 Jonathan Pobst <monkey@jpobst.com>
6303 * Form.cs: When becoming visible, if we are an MDI child, call
6304 SetWindowState with a dummy old_state so that changes will actually
6306 [Fixes the 2nd part of bug #325473]
6308 2008-02-07 Andreia Gaita <avidigal@novell.com>
6310 * Control.cs: Reset properties to their pre parent-change values in case
6311 the new parent == null (in which case we're basically removing the control,
6312 and don't want any events fired due to fake property changes)
6315 2008-02-06 Ivan N. Zlatev <contact@i-nz.net>
6317 * PropertyGridView.cs:
6318 - Refactor SetValue to allow setting the value
6319 when a custom editor is used, but the entry is not editable.
6320 - Remove the custom editor control on CloseDropDown.
6323 2008-02-06 Andreia Gaita <avidigal@novell.com>
6325 * PrintControllerWithStatusDialog.cs: Set PrintFileName value through
6326 reflection only on 1.1, this property is public on system.drawing on 2.0.
6329 2008-02-06 Andreia Gaita <avidigal@novell.com>
6331 * WebBrowser.cs: Do a normal page refresh by default.
6333 2008-02-05 Andreia Gaita <avidigal@novell.com>
6335 * XplatUIWin32.cs, XplatUICarbon.cs: set the hwnd.Mapped flag when we create
6336 the window so that the check on Control.UpdateZOrderOfChild passes on non-X
6337 platforms. Fixes #359036
6339 Note: Control.UpdateZOrderOfChild needs to be rewritten to not rely on
6340 platform-specific flags.
6342 2008-02-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6344 * Binding.cs: Add 2.0 BindableComponent property - just return control
6347 2008-02-05 Everaldo Canuto <ecanuto@novell.com>
6349 * MenuAPI.cs: Check if control is disposable when track popup menu. Thanks
6350 Jonathan for this patch. Fixes #358442.
6352 2008-02-05 Jonathan Pobst <monkey@jpobst.com>
6354 * Form.cs: If we change the active MDI child form, let the others
6355 know they need to repaint their title bar so it will appear inactive.
6356 [Fixes part 1 of bug #325473]
6358 2008-02-05 Ivan N. Zlatev <contact@i-nz.net>
6360 * PropertyGridView.cs: Do not trucate custom editors' width
6361 and align them to the left.
6362 [Fixes #358353 and #358349]
6364 2008-02-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6366 * BindingsCollection.cs: Implement 2.0 CollectionChanging event.
6367 Also fix the arguments passed to CollectionChangeEventArgs in the
6370 2008-02-04 Geoff Norton <gnorton@novell.com>
6372 * Hwnd.cs: The conversion to Quartz coordinates happens in
6373 System.Drawing. Removing this translation from here.
6375 2008-02-04 Ivan N. Zlatev <contact@i-nz.net>
6377 * PropertyGrid.cs, PropertyGridView.cs, GridEntry.cs,
6378 CategoryGridEntry.cs, RootGridEntry.cs, GridItem.cs,
6379 GridItemCollection.cs:
6380 PropertyGrid rewrite part 2. Tons of bugfixes and new features.
6382 2008-02-04 Geoff Norton <gnorton@novell.com>
6384 * X11Keyboard.cs: VK_MENU should send a KEYUP instead of
6385 SYSKEYUP if any other key has been pressed in the mean time.
6388 2008-02-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6390 * ListView.cs: In ItemControl.ItemsMouseMove, only fire ItemDrag event
6391 when the item in current position is different than 0. Also, save the
6392 item index in the beginning of the operation, instead of getting the
6393 index of the item when the event is actually performed. Lastly clean
6394 the related fields in ItemsMouseUp if the ItemDrag operation wasn't
6398 2008-02-03 Jonathan Pobst <monkey@jpobst.com>
6400 * Form.cs: Alt-Minus for MDI children system menu should work
6401 with both the minus keys on the keyboard.
6404 2008-02-03 Jonathan Pobst <monkey@jpobst.com>
6406 * Control.cs: Don't invalidate on region change. The WM should
6407 take care of this automagically. Keeps us out of an infinite
6408 paint loop if someone changes the Region in the OnPaint.
6411 2008-02-04 Ivan N. Zlatev <contact@i-nz.net>
6413 * ImageIndexConverter.cs: ConvertFrom must handle "(none)".
6415 2008-02-03 Jonathan Pobst <monkey@jpobst.com>
6417 * DateTimePicker.cs: Apply patch from Srikanth Madikeri so we drop
6418 down the MonthCalendar only on F4, not Alt+F4.
6419 * MonthCalendar.cs: If we are a popup, close ourselves on Alt+F4.
6422 2008-02-03 Jonathan Pobst <monkey@jpobst.com>
6424 * ThemeWin32Classic.cs: For MonthCalendar, draw a dark border
6425 if its part of a DateTimePicker, else, use the back color.
6428 2008-02-03 Jonathan Pobst <monkey@jpobst.com>
6430 * Hwnd.cs: Use GraphicContext instead of the uninitialized bmp_g.
6433 2008-02-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6435 * CurrencyManager.cs: When we get a ListChanged event from our source,
6436 always fire our own ListChanged event, as .Net does.
6438 2008-02-03 Luke Page <luke.a.page@gmail.com>
6440 * RichTextBox.cs: AutoSize now defaults to false. Fixes Bug
6443 2008-02-03 Luke Page <luke.a.page@gmail.com>
6445 * TextBoxBase.cs, RichTextBox.cs, TextControl.cs: Sets richtext
6446 property. Removed if for richtext property that was always true.
6447 PgUp/PgDn at top/bottom fixed for RTB. Fixes bug #358237.
6449 2008-02-03 Luke Page <luke.a.page@gmail.com>
6451 * TextBoxBase.cs - commited patch from James Purcell that
6452 correctly sets the FixedHeight control style when the MultiLine
6453 property is changed on a TextBox control. Fixes bug 358229.
6455 2008-02-02 Luke Page <luke.a.page@gmail.com>
6457 * Line.cs, LineTag.cs, RichTextBox.cs, TextControl.cs
6458 Fixes bug 351938 - caret is positioned correctly when drawn
6459 and when calculating textual position of caret, no longer
6460 has a NRE in certain situations.
6462 2008-02-01 Geoff Norton <gnorton@novell.com>
6464 * Hwnd.cs: Ensure that windows moved into -'ve coordinate space
6465 get that region removed from the paint event.
6466 * XplatUICarbon.cs: Remove the window mapping after disposing of
6467 window. Prevents a crash with handle reuse. Optimize exposes
6468 only onto visible windows (rare; but possible).
6470 2008-02-01 Jonathan Pobst <monkey@jpobst.com>
6472 * UpDownBase.cs: Make sure the internal textbox calls the base's
6473 OnMouseDown and OnMouseUp so the textbox will function correctly.
6474 There were notes saying it doesn't chain up, but its an internal
6475 class, so our implementation may differ.
6478 2008-02-01 Jonathan Pobst <monkey@jpobst.com>
6480 * ListBox.cs: Fix a logic error and don't process MouseDown
6481 for mouse buttons other than Left.
6483 2008-02-01 Jonathan Pobst <monkey@jpobst.com>
6485 * Control.cs: Remove HeightInternal.
6486 * ListBox.cs: Commit patch from James Purcell that correctly
6487 calculates heights for ListBoxen.
6490 2008-02-01 Jonathan Pobst <monkey@jpobst.com>
6492 * Label.cs: Apply patch from James Purcell that corrects the
6493 signature of the AutoSize property.
6496 2008-02-01 Jonathan Pobst <monkey@jpobst.com>
6498 * ListBox.cs: Don't throw [Mouse]Click events for buttons
6499 other than the left mouse button.
6501 2008-01-31 Jonathan Pobst <monkey@jpobst.com>
6503 * Control.cs: Remove my awesome optimization as it caused some
6504 regressions with control ordering. :(
6507 2008-01-31 Ivan N. Zlatev <contact@i-nz.net>
6509 * PropertyGridView.cs: Fix a NRE on double click when there is no
6512 2008-01-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6514 * BindingManagerBase.cs: Implement IsBindingSuspended 2.0 property.
6516 2008-01-30 Jonathan Pobst <monkey@jpobst.com>
6518 * ListBox.cs: Call MouseClick and MouseDoubleClick.
6521 2008-01-29 Jonathan Pobst <monkey@jpobst.com>
6523 * Hwnd.cs: Make bmp, bmp_g variables threadstatic and private.
6524 * Control.cs, DataGridViewCell.cs, LineTag.cs: Use Hwnd.GraphicsContext
6525 instead of Hwnd.bmp_g.
6527 2008-01-29 Jonathan Pobst <monkey@jpobst.com>
6529 * TextRenderer.cs: Don't maintain private bitmap/graphics contexts.
6530 Use the Hwnd one instead.
6532 2008-01-29 Jonathan Pobst <monkey@jpobst.com>
6534 * Form.cs: Remove duplicated copy of GetAutoScaleSize.
6536 2008-01-29 Jonathan Pobst <monkey@jpobst.com>
6538 * Form.cs: corcompare for RestoreBounds.
6540 2008-01-29 Jonathan Pobst <monkey@jpobst.com>
6542 * Control.cs: Add MarshalAs attribute to Font getter for corcompare.
6544 2008-01-29 Jonathan Pobst <monkey@jpobst.com>
6546 * Form.cs: Handle Alt-Minus for MDI children forms.
6547 * MdiWindowManager.cs: Make ShowPopup internal so Form can call it.
6548 Add mnemonics to the control menu.
6551 2008-01-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6553 * Binding.cs: Initial implementation bits of FormattingEnabled
6554 property and BindingComplete event (2.0).
6555 * BindingCompleteEventArgs.cs: Internal methods for setting error text
6558 2008-01-28 Jonathan Pobst <monkey@jpobst.com>
6560 * TableLayoutPanel.cs: Draw the table border at 0,0 instead of
6561 table.Location. [Fixes bug #354672]
6563 2008-01-28 Jonathan Pobst <monkey@jpobst.com>
6565 * Form.cs: Handle WM_ENTERSIZEMOVE and WM_EXITSIZEMOVE to raise
6566 ResizeBegin and ResizeEnd. [Fixes bug #346529 for win32]
6568 2008-01-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6570 * ComboBox.cs: When OnDisplayMemberChanged method is reached, instead
6571 of doing all the re-bound work, just invalidate and call SetControlText
6572 to set the updated text of selected item to our textbox.
6575 2008-01-28 Andreia Gaita <avidigal@novell.com>
6577 * HtmlWindow.cs: Add event handler support. Add Document, Frames,
6578 IsClosed, Opener, StatusBarText, Url properties, stub out the remaining
6579 missing properties and methods. Add Load, Unload, Error, GotFocus,
6580 LostFocus, Resize, Scroll events (only load and unload are connected)
6582 2008-01-27 Gert Driesen <drieseng@users.sourceforge.net>
6584 * AccessibleObject.cs: Modified argument names to match MS.
6585 * Button.cs: Modified argument names to match MS.
6586 * BindingContext.cs: Modified argument names to match MS.
6587 * BindingMemberInfo.cs: Modified argument names to match MS.
6588 * ButtonBase.cs: Modified argument names to match MS.
6589 * ComboBox.cs: Modified argument names to match MS.
6590 * Control.cs: Modified argument names to match MS.
6591 * CheckedListBox.cs: Modified argument names to match MS.
6592 * CommonDialog.cs: Modified argument names to match MS.
6593 * DataGrid.cs: Modified argument names to match MS.
6594 * CursorConverter.cs: Modified argument names to match MS.
6595 * ControlPaint.cs: Modified argument names to match MS.
6596 * CheckBox.cs: Modified argument names to match MS.
6597 * ControlBindingsCollection.cs: Modified argument names to match MS.
6598 * BindingSource.cs: Modified argument names to match MS.
6599 * DataFormats.cs: Modified argument names to match MS.
6600 * ContainerControl.cs: Modified argument names to match MS.
6601 * CurrencyManager.cs: Modified argument names to match MS.
6602 * Application.cs: Modified argument names to match MS.
6603 * ContextMenuStrip.cs: Modified argument names to match MS.
6604 * ContextMenu.cs: Modified argument names to match MS.
6605 * BindingManagerBase.cs: Modified argument names to match MS.
6606 * WindowsFormsSection.cs: Fixed line ending.
6608 2008-01-27 Andreia Gaita <avidigal@novell.com>
6610 * PropertyGridView.cs: Rearrange the dropdown loop so that it exits when
6611 detecting that the dropdown toolwindow is hidden. EndLoop outside the
6614 2008-01-26 Gert Driesen <drieseng@users.sourceforge.net>
6616 * PropertiesTab.cs: Fixed argument name of GetDefaultProperty to match
6617 MS. Code formatting.
6619 2008-01-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6621 * Binding.cs: Don't avoid the Format event if the control
6622 property type is object. Also, if the value retrieved by
6623 the data source is null _and_ the control proeprty type
6624 is object, return Convert.DBNull (match .Net).
6625 Fixes part of #324286.
6627 2008-01-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6629 * ListControl.cs: Since we are getting two BinginContextChanged events
6630 for the same binding context instance (when the control is added to
6631 form, and when the form is actually shown), take it into account only the
6632 first time for a given binding context instance.
6633 Fixes part of #324286.
6635 2008-01-26 Ivan N. Zlatev <contact@i-nz.net>
6637 * PropertryGridView.cs: Ops.
6639 2008-01-26 Ivan N. Zlatev <contact@i-nz.net>
6641 * PropertyGridView.cs: Close dropdown form if the owner form is
6645 2008-01-25 Ivan N. Zlatev <contact@i-nz.net>
6647 * PropertyGrid.cs, PropertyGridView.cs, GridEntry.cs, GridItem.cs,
6648 RootGridEntry.cs, CategoryGridEntry.cs:
6649 PropertyGrid rewrite.
6650 - Rewrite all of the control logic in PropertyGrid.
6651 - Rewrite all of the ComponentModel logic in GridEntry.
6652 - Rewrite all UI work in PropertyGridView.
6653 - Many bugfixes, etc.
6655 2008-01-24 Jonathan Pobst <monkey@jpobst.com>
6657 * TableLayoutPanel.cs: Enhance GetPreferredSize to take into account
6658 when all contained controls are autosize or dock-fill. Also take into
6659 account when the total percentage of column/row sizes is not 100%.
6662 2008-01-24 Andreia Gaita <avidigal@novell.com>
6665 - Save a reference to the IDocument in the instance and
6666 use that one instead of going to WebHost.Document; the document that the
6667 WebHost returns might not be the right one (in case of frames).
6668 - Use the hashcode returned from the IDocument interface.
6669 - Implemented: ActiveElement, ActiveLinkColor, All, BackColor, Cookie,
6670 Domain (setter is not supported), Encoding, ForeColor, Forms, Images,
6671 LinkColor, Url, VisitedColor, Window
6674 - Implemented: CanHaveChildren, Children, Document, GetAttribute,
6675 set_Attribute, NextSibling, Parent, TagName, AppendChild,
6676 GetElementsByTagName, GetHashCode, HasAttribute, InsertAdjacentElement,
6677 SetAttribute, Equals, equality operators.
6678 - Added stubs for: AttachEventHandler, DetachEventHandler, Focus,
6679 InvokeMember, RaiseEvent, RemoveFocus, ScrollIntoView,
6681 * HtmlElementCollection.cs: Change implementation to use a generic
6682 collection. Implemented Enumerator and CopyTo
6684 * HtmlHistory.cs: Add constructor, no implementation yet.
6686 * HtmlWindow.cs: Initial implementation with: Name, Parent, Alert,
6687 Confirm, Prompt, Navigation, ScrollTo, Open, OpenNew, GetHashCode,
6688 Equals, equality operators.
6690 * HtmlWindowCollection.cs: Implemented.
6692 * WebBrowser.cs: Use the Navigation object to navigate (WebHost.Navigate
6693 has been deprecated).
6695 * WebBrowserBase.cs: Use Completed event to track document loading
6696 (Navigated has been deprecated)
6698 2008-01-24 Jonatham Pobst <monkey@jpobst.com>
6700 * ThemeWin32Classic.cs: Add tab stops and NoWrap to dropdown MenuItems. Top
6701 level MenuItems do not respect tabs.
6704 2008-01-23 Geoff Norton <gnorton@novell.com>
6706 * XplatUICarbon.cs: Ensure that windows are created in their initial
6707 FormWindowState. Finished fixing Fullscreen windows on Carbon
6709 2008-01-23 Everaldo Canuto <ecanuto@novell.com>
6711 * MenuAPI.cs: When FindForm fails uses FindRootParent to find the control to
6712 be used as grab_control. Also save status of capture before show ContextMenu
6713 and restore it after close.
6715 2008-01-23 Everaldo Canuto <ecanuto@novell.com>
6717 * Control.cs: Internal FindRootParent method added to return high control
6720 2008-01-23 Geoff Norton <gnorton@novell.com>
6722 * Hwnd.cs: Refactor Whole/Client pointer to 1 element for Cursors.
6723 * XplatUICarbon.cs: Refactor some dead code out to Cursor.cs and make
6724 it work again. Handle HITTEST events.
6726 2008-01-23 Geoff Norton <gnorton@novell.com>
6728 * XplatUICarbon.cs: Ensure that we always have a host window. Prevents
6729 a crash in certain cases. Support for fullscreen windows in certain cases.
6731 2008-01-23 Jonathan Pobst <monkey@jpobst.com>
6733 * Form.cs: Don't set AutoScaleMode in AutoScale if we don't have to.
6736 2008-01-23 Geoff Norton <gnorton@novell.com>
6738 * XplatUICarbon.cs: Remove some dead code that was causing warnings.
6740 2008-01-23 Geoff Norton <gnorton@novell.com>
6742 * XplatUICarbon.cs: Re-enabled Carets in QuickDraw as a overlay window.
6744 2008-01-23 Everaldo Canuto <ecanuto@novell.com>
6746 * SplitContainer.cs: Remove unused declarations.
6747 * Binding.cs: Remove unused declarations.
6749 2008-01-23 Everaldo Canuto <ecanuto@novell.com>
6751 * Form.cs: Remove unused declaration of 'active' in Activate method.
6752 * Control.cs: Move declaration of nested_layout inside '#if NET_2_0" to
6753 prevent compilation warnings.
6754 * TextControl.cs: Remove unused declaration of selection_pos_on_line.
6755 * Hwnd.cs: Remove unused declaration of clip in GetClippingRectangles.
6756 * Bindings.cs: Remove unused formatting_enabled declaration.
6757 * ToolTip.cs: Put some methods inside '#if NET_2_0" to prevent compilation
6759 * TreeView.cs: Put some methods inside '#if NET_2_0" to prevent compilation
6761 * PropertyGridView.cs: Remove usused 'ex' declaration.
6762 * DataGridView.cs: Remove unused declarations.
6764 2008-01-23 Everaldo Canuto <ecanuto@novell.com>
6766 [Fixes bugs #343966, #338511 and other non reported (context)menu bugs]
6768 * Form.cs: Remove all active_tracker (used by menu) stuff, it is now moved
6769 to Control class, it makes possible to grab menu to controls that can't
6770 reach Form using parent tree. Handle for WmButtonUp, WmButtonDown and
6771 WmMouseMove removed since it was used only to track menu events.
6774 - Moved all active_tracker stuff from Form.
6775 - ProcessActiveTracker added to prevent code duplicity, now mouse events
6776 can call this method instead of reimplement all necessary code handle for
6778 - Call to ProcessActiveTracker for mouse events (WmButtonUp, WmButtonDown
6782 - Remove special handle to ToolStripOverflow, now we can grab menu to
6783 controls that can't reach Form using parent tree.
6784 - Change type of grab_control from Form to Control.
6786 2008-01-22 Geoff Norton <gnorton@novell.com>
6788 * TextBoxBase.cs: Split up the sizing of controls and placing of
6789 controls. Fixes a bug where scrollbars in Reflector could be sized
6790 wrong and have non-working thumbers.
6792 2008-01-23 Geoff Norton <gnorton@novell.com>
6794 * XplatUI.cs: Refactor environment variables to default support to the
6795 Carbon driver on the Mac.
6797 2008-01-23 Everaldo Canuto <ecanuto@novell.com>
6799 * Label.cs: Uses new LabelPainter for drawing operations.
6800 * ThemeWin32Classic.cs: DrawLabel and LabelDefaultSize removed.
6801 * Theme.cs: DrawLabel and LabelDefaultSize removed.
6803 2008-01-22 Geoff Norton <gnorton@novell.com>
6805 * XplatUICarbon.cs: Enable packing scroll delta into the mouse wParam
6807 2008-01-22 Jonathan Pobst <monkey@jpobst.com>
6809 * ThemeWin32Classic.cs: Run Flat, Button appearance, 2.0 CheckBoxes
6810 through the normal flat button code and don't draw the checkbox glyph.
6811 * Theme.cs: Button->ButtonBase signature change.
6814 2008-01-22 Everaldo Canuto <ecanuto@novell.com>
6816 * LinkLabel.cs: Uses new class LinkLabelPainter.
6818 2008-01-22 Everaldo Canuto <ecanuto@novell.com>
6820 * MessageBox.cs: Adjust right border space, we don't need to add
6821 "space_border*2" two times.
6823 2008-01-22 Jonathan Pobst <monkey@jpobst.com>
6825 * ScrollableControl.cs: With the advent of 2.0's Padding, DockPadding
6826 becomes a wrapper around Padding.
6827 [Fixes a part of bug #354676]
6829 2008-01-22 Geoff Norton <gnorton@novell.com>
6831 * Mime.cs: Avoid a needles exception on OSX if we dont have a buffer
6832 acquired. Also ensure the buffer is large enough to grab the header
6833 we need on linux boxes.
6835 2008-01-22 Jonathan Pobst <monkey@jpobst.com>
6837 * Control.cs: Implement a custom enumerator so people can delete
6838 from the Controls collection while in a foreach.
6841 2008-01-22 Ivan N. Zlatev <contact@i-nz.net>
6843 * PropertyGridView.cs: Fix focusing behavior:
6844 - Tab should focus the grid text box.
6845 - Clicking on the labels shouldn't focus the grid text box.
6847 2008-01-22 Ivan N. Zlatev <contact@i-nz.net>
6849 * PropertyGridView.cs: IsValueTypeGridItem should return true
6852 2008-01-22 Ivan N. Zlatev <contact@i-nz.net>
6854 * PropertyGrid.cs, GridEntry.cs, PropertyGridView.cs:
6855 - Renamed GridEntry.SelectedObjects to TargetObjects to better
6856 reflect the property name role.
6857 - PropertyGrid.GetTarget is not required as the target is known
6859 - Setting values will handle value types as a special case now and
6860 populate them up in the chain.
6863 2008-01-21 Jonathan Pobst <monkey@jpobst.com>
6865 * Hwnd.cs: Create a public property for the Graphics we keep around.
6867 2008-01-21 Ivan N. Zlatev <contact@i-nz.net>
6869 * PropertyGridView.cs: Just hide the grid textbox and do nothing more
6870 when the current object selection changes.
6871 Fixes failing test SelectedObject_Null2.B5.
6873 2008-01-21 Ivan N. Zlatev <contact@i-nz.net>
6875 * PropertyGrid.cs: Process Browsable properties with
6876 DesignerSerializationVisibilityAttribute.Content as being expandable.
6877 This seems also what MS does. Without this e.g SplitContainer.Panel1/2
6878 will not be expandable. We should be nested components-friendly now.
6880 2008-01-21 Andreia Gaita <avidigal@novell.com>
6882 * WebBrowserBase.cs: Check if control was loaded properly,
6883 don't bind if it wasn't.
6885 * HtmlDocument.cs: Implement CreateElement, Equals, Focus,
6886 GetElementFromPoint, equality operators, OpenNew, Write.
6887 Remove extra set_Body
6889 2008-01-18 Jonathan Pobst <monkey@jpobst.com>
6891 * ContainerControl.cs, Control.cs: Apply patch from James Purcell
6892 that makes our AutoScale* stuff more tolerant to different orders
6893 of being set. [Fixes bug #354669]
6895 2008-01-18 Ivan N. Zlatev <contact@i-nz.net>
6897 * PropertyGridView.cs, PropertyGridTextBox.cs:
6898 Drop WM_LBUTTONDOWN msg sending and use focusing instead.
6899 [Fixes #339005 and #348209]
6901 2008-01-18 Ivan N. Zlatev <contact@i-nz.net>
6903 * PropertyGridView.cs: Hide the grid text box before adjusting it
6904 for the newly selected GridItem.
6907 2008-01-18 Jonathan Pobst <monkey@jpobst.com>
6909 * Form.cs: Give MDI children the opportunity to cancel the parent form
6910 attempting to close. Ensure that all [Form]Clos[ing,ed] events get called
6911 properly for both the parent and child.
6912 * Application.cs: Signature of internal method changed, pass the previous
6916 2008-01-17 Ivan N. Zlatev <contact@i-nz.net>
6918 * PropertyGridView.cs: Set the property value only if it has changed.
6921 2008-01-17 Jonathan Pobst <monkey@jpobst.com>
6923 * MenuAPI.cs: Windows sends us MOUSEMOVE messages when any key is pressed.
6924 If the mouse hasn't actually moved, ignore these messages so the currently
6925 highlighted menuitem isn't reset to the one under the mouse.
6928 2008-01-17 Ivan N. Zlatev <contact@i-nz.net>
6930 * PropertyGridView.cs: When the property changes Invalidate the GridItem
6931 in order for the properties with UITypeEditor.GetPaintValueSupported == true
6932 to reflect the change visually.
6935 2008-01-17 Jonathan Pobst <monkey@jpobst.com>
6937 * ButtonBase.cs: Add LineLimit to 1.1 button drawing, and TextBoxControl
6938 to 2.0 button drawing.
6939 * ThemeWin32Classic.cs: Ensure that the rectangle we are using to draw
6940 the button text is tall enough for one line. LineLimit says it will
6941 always draw at least one line, but it is a lie.
6944 2008-01-17 Atsushi Enomoto <atsushi@ximian.com>
6946 * XplatUIStructs.cs, X11Keyboard.cs :
6947 added some more VK_* keys to be handled.
6949 2008-01-16 Andreia Gaita <avidigal@novell.com>
6951 * Control.cs: Check if there is a container before setting or getting
6952 the validation flag.
6954 2008-01-16 Andreia Gaita <avidigal@novell.com>
6956 * ContainerControl.cs: Add flag to track if a control cancels validation,
6957 so we don't fire click events.
6960 - (HandleClick) Check if validation was cancelled before firing the click
6961 events (doubleclicks are fired, but not clicks)
6962 - (WmLButtonDown) Reset validation flag. The flag is normally reset on
6963 ContainerControl.set_ActiveControl, but in the case of non-selectable
6964 controls, like a Label, activecontrol is not set.
6966 * ButtonBase.cs: Only fire clicks if validation passes.
6970 2008-01-16 Geoff Norton <gnorton@novell.com>
6972 * XplatUICarbon.cs: Implement GetAutoScaleSize to fix Reflector on
6975 2008-01-16 Jonathan Pobst <monkey@jpobst.com>
6977 * FolderBrowserDialog.cs: If we cannot interpret the user's requested
6978 SelectedPath, just display the default dialog instead of crashing.
6981 2008-01-16 Geoff Norton <gnorton@novell.com>
6983 * XplatUICarbon.cs: Flicker be gone! Generate our messages in
6984 AddExpose instead of trusting apples compositing manager which doesn't
6985 work for our use case. Remove some dead code causing warnings and
6986 redecorate some other code to prevent warnings.
6988 2008-01-16 Geoff Norton <gnorton@novell.com>
6990 * XplatUICarbon.cs: Avoid some unecessary invalidation calls when
6991 carbon signals us to redraw. Fixes another portion of the flickering bug
6993 2008-01-16 Everaldo Canuto <ecanuto@novell.com>
6995 * Form.cs: Prevent the MdiParent property to be set when value is the same
6996 as value already set. Fixes bug #328019.
6998 2008-01-16 Everaldo Canuto <ecanuto@novell.com>
7000 * Form.cs: Don't set mdi_parent as null when mdi window close is prevented,
7001 it prevents NRE when closing mdi child windows. Fixes bug #325211.
7003 2008-01-16 Everaldo Canuto <ecanuto@novell.com>
7005 * InternalWindowManager.cs: Invalidade close button after mouse up when
7006 mdi form is prevented to close.
7008 2008-01-16 Everaldo Canuto <ecanuto@novell.com>
7010 * MdiClient.cs: Fix the minimum bounds on child window sizes when cascade,
7011 thanks to Andy Hume. Fixes bug #325433.
7013 2008-01-16 Andreia Gaita <avidigal@novell.com>
7015 * LinkLabel.cs: Reset focused_index when resellecting the control.
7018 2008-01-15 Geoff Norton <gnorton@novell.com>
7020 * XplatUICarbon.cs: Rework Grab/Ungrab handling to send some needed
7023 2008-01-15 Jonathan Pobst <monkey@jpobst.com>
7025 * Form.cs: Change 2 more AutoScaleBaseSize calculation to round instead
7028 2008-01-15 Jonathan Pobst <monkey@jpobst.com>
7030 * ContainerControl.cs: Setting AutoScaleMode to anything should set
7031 Form.AutoScale to false.
7032 * Form.cs: Setting AutoScale to true should set AutoScaleMode to None.
7033 AutoScaleBaseSize should be changed on Font change unless it has been
7037 2008-01-15 Everaldo Canuto <ecanuto@novell.com>
7039 * MenuAPI.cs: On instance of MenuTracker check if source control is
7040 ToolStripOverflow and use properly method to find form.
7043 2008-01-15 Everaldo Canuto <ecanuto@novell.com>
7045 [Fixes bug #323241 Transparent toolbar support]
7047 * ToolBar.cs: Define ToolBarStyles.TBSTYLE_FLAT in CreateParams when toolbar
7050 * Control.cs: Paint background as transparent in case of TBSTYLE_FLAT is
7051 defined in control style to mimic win32 behavior.
7053 * ThemeWin32Classic.cs: Don't paint background for flat apparence toolbar,
7054 it will be transparent.
7056 2008-01-14 Everaldo Canuto <ecanuto@novell.com>
7058 * XplatUIStructs.cs: Implement ToolBarStyles to use in Style property of
7059 CreateParams for ToolBar controls.
7061 2008-01-14 Jonathan Pobst <monkey@jpobst.com>
7063 * Form.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs: Forms with
7064 FixedToolWindow, SizeableToolWindow, or None for border styles have
7065 different minimum sizes than regular forms. Implemented to fix
7066 regression in PDN with toolbox being too wide.
7068 2008-01-14 Andreia Gaita <avidigal@novell.com>
7070 * HtmlElementCollection.cs: Implemented
7072 * HtmlElement.cs: Implemented:
7080 * HtmlDocument.cs: Implemented GetElementsByTagName.
7082 2008-01-14 Jonathan Pobst <monkey@jpobst.com>
7084 * Screen.cs: Stub BitsPerPixel to always return 32.
7086 2008-01-14 Jonathan Pobst <monkey@jpobst.com>
7088 * Form.cs: Implement RestoreBounds.
7090 2008-01-14 Jonathan Pobst <monkey@jpobst.com>
7092 * RichTextBox.cs, ToolStrip.cs: Fix some typos pointed out by
7093 Sebastien and his fabulous magical problem-finding machine:
7094 Gendarme. Also put a MonoTodo on AutoWordSelect since we don't
7095 respect the value set.
7097 2008-01-14 Everaldo Canuto <ecanuto@novell.com>
7099 * Form.cs: In WmWindowPosChanged call base.WndProc including when state is
7100 minimized. Fixes bug #325122 for Win32. Thanks Srikanth Madikeri.
7102 2008-01-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7104 * X11Dnd.cs: Since we don't propagate the WM_LBUTTONUP/WM_RBUTTONUP
7105 messages (to match .Net), we need to remove the capture ourselves.
7107 2008-01-11 Jonathan Pobst <monkey@jpobst.com>
7109 * MenuAPI.cs: If we get an Alt-F4, release our capture so Windows
7110 will process the message and close our window.
7113 2008-01-10 Geoff Norton <gnorton@novell.com>
7115 * XplatUICarbon.cs: Clip the Graphics context to the invalid area
7116 tracked in the Hwnd. Only invalidate the dirty region to the Carbon
7119 2008-01-10 Jonathan Pobst <monkey@jpobst.com>
7121 * Form.cs: Enforce the Form minimum size in SetBoundsCore. Fixed
7124 2008-01-10 Jonathan Pobst <monkey@jpobst.com>
7126 * XplatUIX11.cs: Set a minimum window size and enforce it. Even though
7127 Linux doesn't care, having a minimum matches MS and keeps the window
7128 from becoming too small to use window decorations.
7131 2008-01-10 Jonathan Pobst <monkey@jpobst.com>
7133 * ThemeWin32Classic.cs: Tie CheckBox/RadioButton focus rectangles to
7134 ShowFocusCues. Make focus rectangles fit the text instead of the whole
7135 control. [Fixes bug #325419]
7137 2008-01-10 Jonathan Pobst <monkey@jpobst.com>
7139 * ComboBox.cs: Guard against an NRE if the user open a new form from a
7140 SelectedIndexChanged event. This closes the combobox dropdown, and we
7141 were trying to dispose it. [Fixes bug #352830]
7143 2008-01-09 Jonathan Pobst <monkey@jpobst.com>
7145 * Control.cs, Form.cs: Implement the necessary semantics for
7146 ShowFocusCues. All paint code will need to check Control.ShowFocusCues
7147 to determine if a focus rectangle should be drawn.
7148 * PropertyGrid.cs: Fix property visibility to match override.
7149 * ThemeWin32Classic.cs: Use ShowFocusCues for Button.
7151 2008-01-09 Jonathan Pobst <monkey@jpobst.com>
7153 * Application.cs: Use GetCommandLineArgs to calculate ExecutablePath.
7156 2008-01-09 Geoff Norton <gnorton@novell.com>
7158 * XplatUICarbon.cs: Scroll windows in the correct direction.
7160 2008-01-09 Geoff Norton <gnorton@novell.com>
7162 * XplatUICarbon.cs: Track all created utility windows so we can hide them
7163 when the app is deactivated or spaces is enabled.
7165 2008-01-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7167 * ListViewItem.cs: Cosmetic fix - When calculating layout for item, don't add an
7168 extra separation pixel for the label rect origin if SmallImageList is
7169 null, and thus we don't need that separation between icon and label
7171 Patch by Ernesto Carrea.
7174 2008-01-08 Jonathan Pobst <monkey@jpobst.com>
7176 * StatusStrip.cs: Invalidate after completing a layout. The base
7177 OnLayout does this, but we don't call the base.
7178 * ToolStripItem.cs: Revert the previous change to invalidate after
7180 [Fixes bug #351341 better.]
7182 2008-01-07 Geoff Norton <gnorton@novell.com>
7184 * XplatUICarbon.cs: WM_DESTROY is a teardown of a single window
7185 not a notification to exit the application. Listen for WM_QUIT
7188 2008-01-07 Andreia Gaita <avidigal@novell.com>
7190 * HtmlDocument.cs: Fix case on GetElementById (interface changed)
7192 2008-01-07 Jonathan Pobst <monkey@jpobst.com>
7194 * ToolStripItem.cs: If the bounds of an item changes, invalidate it
7195 so it can repaint at the correct location.
7198 2008-01-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7200 * ListControl.cs: SelectedValue should return a null value if
7201 SelectedIndex is -1. Also, when setting it, it should throw an
7202 ArgumentNullException if the value is null, as well as taking
7203 into account the String.Empty value, instead of ignoring it (we have
7204 tests for that now).
7205 Fixes part of #324286.
7207 2008-01-06 Jonathan Pobst <monkey@jpobst.com>
7209 * TextBoxBase.cs, TextControl.cs: Patch from Luke Page to ensure
7210 SelectionStart is updated after pressing enter. Fixes bug #351918.
7212 2008-01-05 Jonathan Pobst <monkey@jpobst.com>
7214 * TextControl.cs: Revert a piece r92316 that prevented the fix
7215 from working when there were multiple tags in the text box.
7218 2008-01-05 Jonathan Pobst <monkey@jpobst.com>
7220 * TextControl.cs: Apply patch from Luke Page that prevents an
7221 NRE when determining the beginning of a paragraph.
7224 2008-01-05 Jonathan Pobst <monkey@jpobst.com>
7226 * TextBoxBase.cs: Apply patch from Luke Page that ensures the
7227 caret gets moved with clicking away from a selected block of
7228 text. Fixes bug #351885.
7230 2008-01-05 Jonathan Pobst <monkey@jpobst.com>
7232 * TextControl.cs: Apply patch from Luke Page that takes line
7233 alignment into account for mouse selection, so that center and
7234 right aligned text can be selected.
7237 2008-01-05 Jonathan Pobst <monkey@jpobst.com>
7239 * RichTextBox.cs: Apply patch from Luke Page that fixes some caret
7240 issues after loading an RTF file by using the correct line feeds.
7243 2008-01-05 Jonathan Pobst <monkey@jpobst.com>
7245 * TextControl.cs: When deleting multiple line selections, we need
7246 to invalidate every line beginning at the first line of the selection.
7247 Patch from Luke Page fixes bug #351791.
7249 2008-01-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7251 * ListControl.cs: When getting a CurrencyManager.PositionChanged
7252 event, don't set SelectedIndex if the number of items is 1. This is
7253 because, for the first item, PositionChanged is fired _before_
7254 ItemChanged (the place where we actually populate the items), and
7255 leave us in a temporary invalid state (since items collection is
7259 2008-01-04 Geoff Norton <gnorton@novell.com>
7261 * XplatUICarbon.cs: Create native toolwindows instead of
7262 the managed drawing ones.
7264 2008-01-03 Jonathan Pobst <monkey@jpobst.com>
7266 * LineTag.cs: If the line doesn't have any characters, return
7267 0 for GetCharIndex. Fixes an AOORE exception after certain
7268 caret movements. Fixes bug #351683. Patch by Luke Page.
7270 2008-01-03 Jonathan Pobst <monkey@jpobst.com>
7272 * TextBoxBase.cs: Apply patch from Luke Page so when backspace
7273 is hit when there is selected text, only the selected text gets
7274 deleted, not the character in front of the selection as well.
7277 2008-01-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7279 * ComboBox.cs: When the values are displayed, calculate the
7280 ComboListBox scrollbar's LargeChange based on the visible area's
7281 height and the actuall ItemHeight, instead of calculating it
7282 based on MaxDropItems value, since it's not used by our _current_
7286 2008-01-03 Jonathan Pobst <monkey@jpobst.com>
7288 * Line.cs, LineTag.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs:
7289 Patch from Luke Page that fixes issues with font colors and styles
7290 not showing up in a readonly RichTextBox. Fixes bug #324354.
7292 2008-01-03 Jonathan Pobst <monkey@jpobst.com>
7294 * Line.cs, RichTextBox.cs, TextControl.cs: Another awesome patch
7295 from Luke Page. This one fixes bug #349926.
7297 2007-12-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7299 * CurrencyManager.cs: Actually fire the 2.0 ListChanged event when
7300 an item in the IBindingList source changes with
7301 ListChangedType.ItemAdded. Ignore for now firing the event for other
7302 changes, since we want to have tests for those cases as well.
7304 2007-12-28 Jonathan Pobst <monkey@jpobst.com>
7306 * TextBoxBase.cs: Don't store a 1x1 Bitmap for every TextBox
7309 2007-12-28 Jonathan Pobst <monkey@jpobst.com>
7311 * TextBoxTextRenderer.cs: Implement a cache for measuring each
7312 character. This is effective because the typical usage of a
7313 TextBox is with a limited amount of fonts and characters, and
7314 the current implementation of TextBox measures everything one
7315 character at a time. Another second or two speedup for bug #347238.
7317 2007-12-28 Jonathan Pobst <monkey@jpobst.com>
7319 * Control.cs: Rewrite the Font getter to only query the parent's
7320 Font property once instead of twice. Since this operation is
7321 recursive, the queries were growing exponentially as the control
7322 tree got deeper. Another second or two speedup for bug #347238.
7324 2007-12-28 Jonathan Pobst <monkey@jpobst.com>
7326 * Control.cs: Avoid setting a parent (and more importantly, updating
7327 the zorder of all its children) if the parent is already correct in
7328 WmShowWindow. Decreases the startup time of the test case on bug
7329 #347238 from 35 seconds to 11 seconds.
7331 2007-12-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7333 * X11Dnd.cs: When the dnd operation has started and we are
7334 in the dnd loop, don't dispatch either WM_LBUTTONUP nor WM_RBUTTONUP.
7335 This is done to match .Net, which doesn't send those messages after
7336 dnd operation was completed/cancelled.
7339 2007-12-27 Jonathan Pobst <monkey@jpobst.com>
7341 * ToolStrip.cs: Previous change should be != null, not == null.
7344 2007-12-27 Jonathan Pobst <monkey@jpobst.com>
7346 * ToolStrip.cs: Guard against an NRE after ItemClicked is called, the
7347 user may have moved the mouse off the current item during the event.
7349 2007-12-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7351 * ListView.cs: In ItemControl.ItemsMouseMove, try to avoid
7352 calling GetItemAt for every MouseMove event by also taking into
7353 account whether any mouse button is pressed (probably dragging);
7354 if so, we can call GetItemAt, and if not, try to not call it
7355 (GetItemAt can be quite expensive when used with a large number of items).
7357 2007-12-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7359 * ListView.cs: Implement -finally- support for dnd, by calling
7360 OnItemDrag as needed. Also, remove the dnd TODO, and add myself to the
7362 * ListViewInsertionMark.cs: Implement NearestIndex method, by doing a
7363 simple calculation of distances for all the items in the owner
7366 2007-12-21 Geoff Norton <gnorton@novell.com>
7368 * XplatUICarbon.cs: Ensure that we create WindowMapping handles
7369 for windows that are originally created as invisible. Fixes missing
7370 main window in paint-mono.
7372 2007-12-21 Geoff Norton <gnorton@novell.com>
7374 * XplatUICarbon.cs: Register our D&D handler. Register our custom
7375 subclass handler for com.novell.mwfview subclassing HIView. Implement
7376 Pasteboard and Dnd methods.
7378 2007-12-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7380 * ListBox.cs: When we got focus, give focus to first item if there
7381 wasn't any pervious focused item. Also update navigation to depend on
7382 SelectedIndex rather than FocusedItem, just as .Net does.
7385 2007-12-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7387 * ListBox.cs: Both FindString and FindStringExact methods must do an
7388 case insensitive search, should allow the last valid index to be
7389 passed in the overload taking an initial index, and should also
7390 continue searching from the top back to the specified index when it
7393 2007-12-19 Jonathan Pobst <monkey@jpobst.com>
7395 * TextControl.cs: Apply patch from Luke Page that fixes a scrolling
7396 redraw issue, and allows RichTextBox to draw colored text even while
7397 disabled or readonly.
7399 2007-12-19 Jonathan Pobst <monkey@jpobst.com>
7401 * RichTextBox.cs, TextBoxBase.cs: Apply patch from Luke Page that
7402 disallows cut/paste in a readonly textbox, adds support for Shift-Insert,
7403 and doesn't grey text in a disabled RichTextBox.
7405 2007-12-19 Jonathan Pobst <monkey@jpobst.com>
7407 * RichTextBox.cs: Apply patch from Luke Page that adds better support
7408 for many RTF commands: quad alignment, separate formatting for blocks
7409 inside groups, and ParDef support. Makes the test case from bug #324589
7412 2007-12-19 Jonathan Pobst <monkey@jpobst.com>
7414 * LineTag.cs: Fix an error in the new Draw method that caused
7415 a crash when rendering the document on bug #324589.
7417 2007-12-19 Jonathan Pobst <monkey@jpobst.com>
7419 * Line.cs, LineTag.cs, RichTextBox.cs, TextBoxBase.cs,
7420 TextControl.cs: Apply patch from Luke Page that adds support
7421 for URL links in RichTextBox.
7422 [Fixes enhancement #342516]
7424 2007-12-18 Everaldo Canuto <ecanuto@novell.com>
7426 * MenuItem.cs: When cloning menuitem clone also name and tag properties for
7427 2.0 profile. Thanks Ernesto Carrea and Luke Page. Fixes bug #340289.
7429 2007-12-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7431 * ListBox.cs: When a key gets pressed, try to find a string
7432 if the key is a character or a digit.
7435 2007-12-17 Jonathan Pobst <monkey@jpobst.com>
7437 * TableLayoutPanel.cs: Remove some unused variables.
7439 2007-12-17 Jonathan Pobst <monkey@jpobst.com>
7441 * DateTimePicker.cs: Commit patch from Luke Page that ensures
7442 we don't end up at an invalid date when we click the up/down
7443 spinner to change the month or year. Fixes bug #348682.
7445 2007-12-17 Jonathan Pobst <monkey@jpobst.com>
7447 * Application.cs: Calling Exit in 2.0 should chain to the
7448 Exit (CancelEventArgs) version so it can be cancelled.
7449 * Form.cs: Create a flag to allow raising the Closing
7450 events to be skipped. We raise them once in Application.Exit
7451 and don't want to raise them again when the Form is actually
7452 closed. [Fixes bug #349073]
7454 2007-12-16 Jonathan Pobst <monkey@jpobst.com>
7456 * ToolStripDropDown.cs: Guard against an NRE when there
7457 hasn't been a mainform set in the application context.
7460 2007-12-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7462 * ListBox.cs: When SetBoundsCore gets called, besides
7463 calling UpdateScrollBars, update the value of
7464 last_visible_index, since we could need to show more items
7465 than before, and we need to let the paint routines know that.
7468 2007-12-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7470 * ListView.cs: Add DesignerSerializationVisibility attribute to
7471 InsertionMark property.
7472 * ListViewItem.cs: Add same attribute to Position property.
7474 2007-12-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7476 * ListViewItem.cs: .ctor (SerializationInfo, StreamingContext)
7479 2007-12-14 Jonathan Pobst <monkey@jpobst.com>
7481 * ThemeWin32Classic.cs: Don't draw the background on a
7482 flat button if there is a background image.
7485 2007-12-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7487 * ListBox.cs: If we remove the item currently selected,
7488 remove it not only from SelectedItems, but also
7489 resetting selected_index. Moreover, set focused_item to Items.Count - 1 if
7490 the items count decreased and focused_item has bigger value than that.
7492 2007-12-13 Jonathan Pobst <monkey@jpobst.com>
7494 * Control.cs: Perform our layout after we resize ourselves
7495 if we had to adjust our AutoSize. Missed commit for bug
7498 2007-12-13 Jonathan Pobst <monkey@jpobst.com>
7500 * TableLayoutPanel.cs: Override GetPreferredSizeCore so
7501 we can provide an implementation of AutoSize.
7504 2007-12-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7506 * ListBox.cs: Add the internal overload Sort (bool paint),
7507 to indicate whether we actually need a paint or we will
7508 call Refresh ourselves. This way we don't request a paint
7509 _before_ having an updated and valid layout.
7512 2007-12-12 Andreia Gaita <avidigal@novell.com>
7514 * XPlatUIX11.cs: Send paint messages when updating a systray icon
7515 * NotifyIcon.cs: Invalidate the window before doing a systray change so it is
7516 properly invalidated.
7519 2007-12-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7521 * ListViewItem.cs: When using a .ctor taking a ListViewGroup,
7522 don't simply assign it to our internal group field, but instead
7523 use our Group property, which should do all the neccessary work
7524 required to support groups. Fixes an issue reported to me (mail) by a
7525 guy using this new feature.
7527 2007-12-11 Jonathan Pobst <monkey@jpobst.com>
7529 * Control.cs: Use Scale instead of ScaleControl to ensure the
7530 whole hierarchy gets scaled.
7533 2007-12-10 Jonathan Pobst <monkey@jpobst.com>
7535 * DateTimePicker.cs: Don't set the internal MonthCalendar's
7536 Parent property. Doing this causes the control to be hosted by
7537 the Form instead of being a popup window.
7540 2007-12-10 Jonathan Pobst <monkey@jpobst.com>
7542 * ToolStripItemCollection.cs: If we try to insert a ToolStripItem
7543 at an index higher than Count, just use Add instead of Insert.
7546 2007-12-10 Jonathan Pobst <monkey@jpobst.com>
7548 * ThemeWin32Classic.cs: Don't draw a PictureBox's background in
7549 DrawPictureBox, this is handled by Control.PaintBackground.
7552 2007-12-10 Everaldo Canuto <ecanuto@novell.com>
7554 * MenuAPI.cs: When process menu keys return true by default only if menu is
7555 active. Fixes bug #342892.
7557 2007-12-09 Andreia Gaita <avidigal@novell.com>
7559 * Control.cs: check if windows are actually mapped before
7560 trying to zorder. Fixes #342509, #346955
7562 2007-12-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7565 * ListViewInsertionMark.cs:
7566 * ThemeWin32Classic.cs: Implement the drawing side of the
7567 new 2.0 ListView.InsertionMark property.
7569 2007-12-07 Jonathan Pobst <monkey@jpobst.com>
7571 * CurrencyManager.cs: Silence some debug spew.
7573 2007-12-07 Geoff Norton <gnorton@novell.com>
7575 * Hwnd.cs: Refactor GetClippingRectangles to suppose returning the
7576 masks for our children as well as siblings to avoid having to query
7577 Quartz for this information.
7578 * XplatUICarbon.cs: Implement a delegate based system to pass
7579 information to System.Drawing. Implement Async methods. Remove
7580 the hack for the resize thumb and imlpement a transparent Grow Box.
7581 Rework the messaging system to proplery create window's and messages,
7584 2007-12-06 Andreia Gaita <avidigal@novell.com>
7586 * X11Keyboard.cs: Use Xutf8LookupString to support international
7587 characters under alternate codepages. Patch from #340878
7589 2007-12-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7591 * ListView.cs: When doing layout computations, set position in the
7592 ListView instances (we cache the position just as .Net does).
7593 * ListViewItem.cs: New internal setter method for Position. Also set
7594 position field as also available in 1.1, since we are going to use it
7595 now in the common case.
7597 2007-12-06 Andreia Gaita <avidigal@novell.com>
7599 * Control.cs: When removing controls, get the actual container
7600 to notify about active control changes. Fixes 341314.
7602 2007-12-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7604 * ListViewItem.cs: Forgot to add Font to our serialization stuff.
7606 2007-12-05 Andreia Gaita <avidigal@novell.com>
7608 * Control.cs: When updating the zorder, ignore windows that are not
7609 mapped. Fixes #342509
7611 2007-12-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7613 * ListViewItem.cs: Actually implement serialization on this class.
7615 2007-12-05 Gert Driesen <drieseng@users.sourceforge.net>
7617 * LinkLabel.cs: Fixed paramname of ArgumentNullException in ctor of
7618 LinkCollection. Spaces to tabs, and removed extra tabs.
7620 2007-12-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
7622 * XplatUIX11.cs: Make toolwindows' decorations show up without causing any
7623 tests to fail (hopefully).
7625 2007-12-03 Jonathan Pobst <monkey@jpobst.com>
7627 * ToolStripDropDownMenu.cs: Fill in AffectedBounds when drawing
7628 the image margin so custom renderers can correctly place it.
7630 2007-12-03 Jonathan Pobst <monkey@jpobst.com>
7632 * StatusStrip.cs: Fill in AffectedBounds when drawing the grip
7633 so custom renderers can correctly place it.
7635 2007-12-03 Jonathan Pobst <monkey@jpobst.com>
7637 * Application.cs: Let WM_CHAR messages flow through to controls
7638 hosted in Strips. [Fixes bug #343972]
7640 2007-12-02 Jonathan Pobst <monkey@jpobst.com>
7642 * ToolStripManager.cs: Guard against an NRE I ran into.
7644 2007-12-02 Jonathan Pobst <monkey@jpobst.com>
7646 * LinkLabel.cs: Apply patch from George to fix bug 344012. If
7647 a Link is manually added to the Links collection, we need to set
7648 its owner, so it can invalidate properly.
7651 2007-11-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7653 * ListView.cs: When changing ListViewItem.Position (which calls
7654 ListView.ChangeItemLocation), invalidate not only the area
7655 corresponding to the main item, but also to the area occupied
7656 by the items being moved.
7658 2007-11-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7660 * ListView.cs: When changing the position of a given item,
7661 don't use item bounds, but item areas (which includes the item spacing
7662 between them). Also, use first/last position if the requested
7663 position is outside bounds (as .Net does). Invalidate the previous and
7664 new bounds. Finally, in ItemControl.ItemsMouseDown use the actual item
7665 in a specific position, instead of directly accessing Items collection
7666 (this is done to get the right item - remember an Item can have a
7667 different position in the grid than in the Items collection).
7669 2007-11-23 Everaldo Canuto <ecanuto@novell.com>
7671 * MessageBox.cs: Calculate text area instead of just top left, this rect
7672 area will be used in DrawString. Fixes bug #343364.
7674 2007-11-23 Everaldo Canuto <ecanuto@novell.com>
7676 * MessageBox.cs: Calculate max amount for text area width, it must be 60% of
7677 screen width. Partially fixes bug #343364.
7679 2007-11-23 Everaldo Canuto <ecanuto@novell.com>
7681 * NotifyIcon.cs: Remove duplicated code before call realculate and put this
7682 code inside recalculate, it makes code more simple.
7684 2007-11-22 Everaldo Canuto <ecanuto@novell.com>
7686 * NotifyIcon.cs: When recalculate icon verify if icon is active to decide
7687 between update or add icon. Fixes bug #324344.
7689 2007-11-21 Andreia Gaita <avidigal@novell.com>
7691 * XPlatUIX11.cs: Do not treat tool windows as if they have no
7692 window manager, since that stretches the drawing area to include
7693 the window decorations, and they get hidden. Reverts r84444 and fixes
7694 #335849 and #342790 (mdi and pdn3 regression)
7696 2007-11-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7698 * ListView.cs: When setting focused item, try to give focus to the
7699 previous one _only_ if the previous one remains valid.
7702 2007-11-20 Jonathan Pobst <monkey@jpobst.com>
7704 * Application.cs: Revert r89650, as it broke a common case to fix
7705 an obscure case. Fixes bug #342606.
7707 2007-11-20 Everaldo Canuto <ecanuto@novell.com>
7709 * ThemeWin32Classic.cs: Fix extra space on end of tooltip.
7711 2007-11-20 Everaldo Canuto <ecanuto@novell.com>
7713 * ThemeWin32Classic.cs: Fix tooltip text align removing horizontal
7714 alignment. [Fixes #324228]
7716 2007-11-19 Jonathan Pobst <monkey@jpobst.com>
7718 * ToolStrip.cs: Handle flow layout in GetPreferredSize to fix PDN3.
7721 2007-11-19 Everaldo Canuto <ecanuto@novell.com>
7723 * Form.cs: Check for empty Text before assign to cp.Caption in CreateParams
7724 it prevent problems when empty captions. [Fixes #342141]
7726 2007-11-19 Jonathan Pobst <monkey@jpobst.com>
7728 * Label.cs: Use Size instead of None. Fixes bug #342077.
7730 2007-11-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7732 * ListViewItem.cs: Implement 2.0 FindNearestItem method.
7734 2007-11-17 Jonathan Pobst <monkey@jpobst.com>
7736 * MenuStrip.cs: Guard against a NRE when a MdiWindowItem is set
7737 but there isn't a MdiContainer.
7740 2007-11-17 Jonathan Pobst <monkey@jpobst.com>
7742 * TextControl.cs: Don't recalculate document if the recalc_start and
7743 recalc_end hasn't changed.
7746 2007-11-17 Gert Driesen <drieseng@users.sourceforge.net>
7748 * DataGridViewTextBoxCell.cs: Removed CWL.
7750 2007-11-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7752 * ListView.cs: Implement 2.0 SearchForVirtualItem event support.
7754 2007-11-16 Jonathan Pobst <monkey@jpobst.com>
7756 * TextControl.cs: Missed some code for bug 341534 to trigger a
7757 recalculation when the font changes.
7759 2007-11-16 Andreia Gaita <avidigal@novell.com>
7761 * Control.cs: When updating the zorder, check if the child to update is
7762 the same control that is set to always be on top (i.e., scrollbars), and
7763 just put it on top directly. Fixes BadMatch error on pdn3
7765 2007-11-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7767 * ListView.cs: Throw the needed exceptions for FindNearestItem.
7769 2007-11-16 Jonathan Pobst <monkey@jpobst.com>
7771 * Control.cs: Don't perform a new layout when a label changes its text,
7772 cause label handles its own autosizing.
7775 2007-11-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7777 * ListView.cs: Implement 2.0 FindNearestItem methods.
7779 2007-11-15 Jonathan Pobst <monkey@jpobst.com>
7781 * ToolStripPanel.cs: Make Join at least add the control to the panel,
7782 even if the rest of what Join does isn't supported. Add some more
7783 support for vertical toolbars.
7784 * ToolStripPanelRow.cs: Add some more support for vertical toolbars.
7785 [Fixes the application breaking parts of bug #341998]
7787 2007-11-15 Jonathan Pobst <monkey@jpobst.com>
7789 * ToolStripItem.cs: When determining if we have a check/image margin,
7790 we need to look at ShowCheckMargin as well as ShowImageMargin.
7792 2007-11-15 Geoff Norton <gnorton@novell.com>
7794 * XplatUIOSX.cs: Rename to...
7795 * XplatUICarbon.cs: and refactor all event handling out to the new event handling
7796 system in System.Windows.Forms.CarbonInternal. Lots of code cleanup as well.
7798 2007-11-15 Jonathan Pobst <monkey@jpobst.com>
7800 * KeysConverter.cs: The default values should be an array of Keys, not
7801 strings. Also, the array has more values for 2.0.
7804 2007-11-14 Jonathan Pobst <monkey@jpobst.com>
7806 * Application.cs: Change ExecutablePath to use
7807 Process.GetCurrentProcess ().MainModule.FileName instead of Assembly.GetEntryAssembly.
7810 2007-11-14 Jonathan Pobst <monkey@jpobst.com>
7812 * LineTag.cs: Don't attempt to draw '\r', treat it like it doesn't exist.
7813 When measureing CR or LF, use /u000D instead of /u0013. (Hex, not decimal.)
7814 * TextControl.cs: Fix a case in GetLineEnding where a \n before a \r would
7815 be ignored. Create a new GetLineEnding that can specify which types of
7816 line endings to look for. On Insert, only create new lines for \n and \r\n.
7819 2007-11-14 Jonathan Pobst <monkey@jpobst.com>
7821 * TextBoxBase.cs: As we loop through each line changing the font, tell
7822 the document that the line needs to be recalculated. Fixes bug #341534.
7824 2007-11-13 Jonathan Pobst <monkey@jpobst.com>
7825 [Another round of refactoring]
7826 * Line.cs: Add DeleteCharacters.
7827 * LineTag.cs: Add Delete.
7828 * TextBoxBase.cs: Update to use new methods.
7829 * TextControl.cs: Refactor the Delete* methods.
7831 2007-11-13 Everaldo Canuto <ecanuto@novell.com>
7833 * Win32DnD.cs: Implement Win32 Drop files, thank you Srikanth Madikeri for
7834 the patch. [Fixes #324856]
7836 2007-11-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7839 * ListViewItem.cs: Add an initial implementation of
7840 2.0 ListViewItem.Position getter.
7842 2007-11-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7844 * ListView.cs: Add a reordered_items_indices array, to allow us
7845 to have a different sorting than that of Items (the sorting in Items
7846 could not match the actual sorting in screen). This is needed to
7847 implement a pair of 2.0 features.
7848 * ListViewItem.cs: Add a DisplayIndex property to keep track of the
7849 actual position in the ListView grid, since it could have a position
7850 different than its Index (position in ListViewItemCollection).
7852 2007-11-09 Jonathan Pobst <monkey@jpobst.com>
7854 * Label.cs: Add StringFormatFlags.LineLimit. This tells DrawString to
7855 not draw partial lines.
7856 * LinkLabel.cs: Change FormatFlags setter from = to |= so that the
7857 LineLimit flag from the base is preserved.
7858 Fixes the windows part of bug #338965.
7860 2007-11-09 Jonathan Pobst <monkey@jpobst.com>
7862 * TextBoxBase.cs: Move handling of the enter key from KEYDOWN to CHAR
7863 so that it can be canceled in KeyPress.
7866 2007-11-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7868 * ListView.cs: In ItemControl, reset mouse-handling related
7869 fields even if we dont' have items (we still should reset them when
7870 we had items but then called Items.Clear). Partially based in a patch
7874 2007-11-08 Gert Driesen <drieseng@users.sourceforge.net>
7876 * Application.cs: In ProductVersion first try AssemblyFileVersion
7877 before falling back to assembly version. Fixes bug #339787.
7879 2007-11-08 Andreia Gaita <avidigal@novell.com>
7881 * HtmlElement.cs: Implement InnerText setter.
7882 * WebBrowserBase.cs: Implement Navigated event support.
7883 Add flag to track when the browser "document" is ready to be retrieved.
7884 * WebBrowser.cs: Implement CanGoBack, CanGoForward, Title, Url.
7885 Make sure browser document is ready before retrieving it.
7886 Clean up cached objects (document) when moving to a new page through
7887 any of the navigation methods.
7888 Use the new Mono.WebBrowser.INavigation interface to control navigation.
7889 Implement OnNavigated event.
7891 2007-11-07 Jonathan Pobst <monkey@jpobst.com>
7893 * ThemeWin32Classic.cs: Don't draw the background in DrawLabel or
7894 DrawLinkLabel, this is handled by OnPaintBackground.
7895 Fixes bug #339565, part II.
7897 2007-11-07 Andreia Gaita <avidigal@novell.com>
7899 * Control.cs: Revert r88915. Selecting text on a textbox depends on
7900 getting a Select call on click, so this call needs to be here for now.
7903 2007-11-07 Geoff Norton <gnorton@novell.com>
7905 * OSXStructs.cs: Add the kEventClassApplication constants.
7906 * XplatUIOSX.cs: Send a WM_LBUTTONDOWN to the Grab window when the
7907 application is deactivated otherwise Menu overlays linger on top of
7908 other application windows.
7910 2007-11-07 Geoff Norton <gnorton@novell.com>
7912 * XplatUIOSX.cs: Dont throw an exception on OverrideCursor as we
7913 dont support cursors yet anyways. This allows Reflector to run.
7915 2007-11-07 Geoff Norton <gnorton@novell.com>
7917 * XplatUIOSX.cs: Implement DragSize.
7919 2007-11-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7921 * ListView.cs: When we receive a WM_LBUTTONDOWN message in
7922 ItemControl, request the focus, as .Net does. This is needed after
7923 Control does not request focus anymore when it receives a
7926 2007-11-06 Jonathan Pobst <monkey@Jpobst.com>
7928 * Label.cs: Make DrawImage internal so it can be called from Theme code.
7929 Remove the DrawImage call from OnPaint.
7930 * LinkLabel.cs: Remove the DrawImage call from OnPaint.
7931 * ThemeWin32Classic.cs: Call DrawImage after we paint the background,
7932 but before we draw the text for DrawLabel and DrawLinkLabel.
7935 2007-11-05 Andreia Gaita <avidigal@novell.com>
7937 * Control.cs: Remove select call on click. Fixes #325809
7939 2007-11-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7941 * ListViewItem.cs: Add 2.0 Position property getter.
7943 2007-11-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7945 * ListView.cs: Add 2.0 BackgroundImageTiled property.
7946 Also, to make it work properly, change item's BackColor and
7947 BackgroundImageLayout as needed.
7948 * ThemeWin32Classic.cs: Don't fill any background rectangle
7949 in ListView.ItemControl when drawing items; just let the Control
7950 base implementation fill it.
7952 2007-11-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7954 * ListViewGroup.cs: Adda TypeConverter attribute for this class,
7955 as well as adding a custom 'dummy' Converter, as .net does.
7957 2007-11-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7959 * PropertyGridView.cs: When clicking drop-down button,
7960 select an index in the listbox only if our standard values collection
7961 has one or more items.
7963 2007-11-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7965 * ListViewItem.cs: Add a DefaultValue attribute to 2.0 IndentCount
7968 2007-11-04 Gert Driesen <drieseng@users.sourceforge.net>
7970 * PropertyGrid.cs: In PropertySort, update the toolbar buttons even if
7971 the value is not changed. This ensure a pushed button remains in that
7972 state when clicked again. When switching the value of PropertySort
7973 between Categorized and CategorizedAlphabetical, do not update the
7974 grid items and do not fire a PropertyChangedEvent. When clicking the
7975 sorting buttons, do not modify the PropertySort value when switching
7976 between Categorized and CategorizedAlphabetical but only update the
7979 2007-11-04 Gert Driesen <drieseng@users.sourceforge.net>
7981 * Label.cs: Make AutoEllipsis internal on 1.0 profile. Code
7983 * PropertyGrid.cs: Also put Categorized button in pushed state when
7984 PropertySort is CategorizedAlphabetical. Set AutoEllipsis to true
7985 for help description label.
7987 2007-11-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7989 * ListView.cs: When calculating the biggest item for a given column,
7990 take into account 2.0 LIstViewItem.IndentCount, since it directly affects
7993 2007-11-03 Gert Driesen <drieseng@users.sourceforge.net>
7995 * PropertyGrid.cs: Fixed default value for PropertySort. Allow invalid
7996 value for PropertySort on 1.0 profile. PropertySortChanged event
7997 should only be fired on 2.0 profile. Fixed NullReferenceException
7998 in UpdateSortLayout when PropertyGrid contains no items.
8000 2007-11-02 Jonathan Pobst <monkey@jpobst.com>
8002 * MessageBox.cs: Patch from George to implement MessageBoxDefaultButton.
8005 2007-11-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8007 * ListViewItem.cs: Implement 2.0 IndentCount property.
8009 2007-11-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8011 * X11Dnd.cs: When sending status in a dnd operation, compare current
8012 effect with the 'allowed' field instead of 'drag_data.Allowed', since
8013 the later is only created when a Winforms application is both the
8014 source and the target, but not when we are the target only.
8015 Fixes part of #324251.
8017 2007-11-01 Geoff Norton <gnorton@novell.com>
8019 * XplatUI*.cs: Add GetPreviousWindow utility method to return windows in
8021 * Hwnd.cs: Add initial implementation of GetClippingRectangles to clip sibling
8022 children out of the drawing view on mac.
8023 * XplatUIOSX.cs: Code cleanup. Handle more window grab cases. Fix SetParent
8024 to handle the orphan and invisible case (1/2 fixes TabStrip drawing in FormsTest)
8026 2007-11-01 Jonathan Pobst <monkey@jpobst.com>
8028 * ToolStrip.cs: Don't process MouseUp for a ToolStripControlHost, clicking
8029 on the non-hosted-control part of it shouldn't do anything.
8030 Fixes part of bug #327498.
8032 2007-11-01 Andreia Gaita <avidigal@novell.com>
8034 * WebBrowserBase.cs: revert previous change, resize can be called anytime
8036 2007-11-01 Jonathan Pobst <monkey@jpobst.com>
8038 * Application.cs: When a toolstrip has the keyboard input loop, let messages
8039 it does not use flow through to controls that are hosted in menus.
8040 Same with mouse clicks.
8041 * Form.cs: Don't close all menus on click if the click is on a
8042 control hosted in a menu.
8043 Fixes part of bug #327498, and part of bug #325969.
8045 2007-10-31 Andreia Gaita <avidigal@novell.com>
8047 * WebBrowserBase.cs: Only call resize on gluezilla when it is active
8049 2007-10-31 Jonathan Pobst <monkey@jpobst.com>
8051 * TextBoxBase.cs: Use int.MaxValue for MaxLength instead of magic number.
8052 Addresses an issue raised in bug #336218.
8054 2007-10-30 Jonathan Pobst <monkey@jpobst.com>
8056 * Form.cs: Patch from George that moves the conversion of ClientSize->Size
8057 for PreferredSize from OnLayout to PreferredSize. Fixes bug #325242.
8059 2007-10-30 Andreia Gaita <avidigal@novell.com>
8061 * ContainerControl.cs: Check if the active control is a
8062 child of a removed control and update active_control accordingly.
8065 2007-10-29 Jonathan Pobst <monkey@jpobst.com>
8067 * DateTimePicker.cs: Throw ArgEx if the Value is set outside the MinDate
8068 or the MaxDate. Fixed bug #337693.
8070 2007-10-29 Jonathan Pobst <monkey@jpobst.com>
8072 * XplatUIWin32.cs: Always call SetWindowPos with SWP_FRAMECHANGED flag
8073 after calling SetWindowLong for a form, to force an immediate NC refresh.
8074 Fixes first part of bug #325150.
8076 2007-10-29 Jonathan Pobst <monkey@jpobst.com>
8078 * ComboBox.cs: Don't try to resize the listbox when we are DropDownStyle
8079 simple. Fixes the last part of bug #322668.
8081 2007-10-29 Jonathan Pobst <monkey@jpobst.com>
8083 * MessageBox.cs: If the owner is TopMost, then the MessageBox form
8084 needs to be TopMost as well, or else the MessageBox is under the form.
8085 Patch by George fixes bug #325300.
8087 2007-10-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8089 * X11Dnd.cs: When starting a new drag operation, reset the static
8090 'dropped' field to false (previously the implementation didn't reset
8091 it and got confused after the first drag).
8094 2007-10-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8096 * PropertyGrid.cs: When PropertySort changes, re-organize the grid
8097 items instead of re-creating them all. For this purpose we now cache
8098 both CategoryGridEntry items and the GridEntries for the main object's
8100 * GridItem.cs: Make SetParent method abstract.
8101 * GridEntry.cs: Override the SetParent method (already there, but now
8105 2007-10-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8107 * PropertyGridView.cs: Set the plus/minus bounds of a grid item
8108 depending on its depth (as .Net does). Update the needed values in
8109 MouseDown handler. Also draw the plus/minus rect after the label,
8110 so we don't draw on top of it.
8112 2007-10-24 Everaldo Canuto <ecanuto@novell.com>
8114 * MenuAPI.cs: Return true as default in ProcessKeys to prevent keys to be
8115 processed by forms or controls when menu is active. [Fixes #333548]
8117 2007-10-24 Jonathan Pobst <monkey@jpobst.com>
8119 * ToolStripItem.cs: Don't focus a ToolStripControlHost on Select of the
8120 parent doesn't have focus. This was causing ToolStripTextBoxes to take
8121 focus on mouse over.
8123 2007-10-24 Jonathan Pobst <monkey@jpobst.com>
8125 * TextControl.cs: Code cleaning, simplifying.
8127 2007-10-24 Geoff Norton <gnorton@novell.com>
8129 * XplatUIOSX.cs: Route mouse events to the grab hwnd on mouse down as well.
8130 * XplatUIStructs.cs: Fix the ToString method of POINT and MSG.
8132 2007-10-24 Jonathan Pobst <monkey@jpobst.com>
8134 * TextBoxBase.cs: If the user sets maxlength to 0, it should mean
8135 the cap is maxvalue, not actually 0. [Fixes bug #336218]
8137 2007-10-24 Andreia Gaita <avidigal@novell.com>
8139 * SendKeys.cs: apply jpobst's patch to bug #332409
8141 2007-10-23 Andreia Gaita <avidigal@novell.com>
8143 * TextBoxTextRenderer.cs: Lower bounds max size to Int16.MaxValue, the
8144 Windows 2000 gdi DrawText call doesn't draw if it's higher than that
8147 2007-10-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8149 * PropertyGridView.cs: If a property has an UIEditor available,
8150 make the drop-down/editor button available only if the property
8153 2007-10-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8155 * PropertyGridView.cs: Don't make the grid item textbox
8156 editable when a drop-down control is available, but
8157 CanConvertFrom (typeof (string)) is false or GetStandardValuesExclusive () is
8158 true. The same bur the color of the grid item value's label.
8160 2007-10-22 Geoff Norton <gnorton@novell.com>
8162 * OSXStructs.cs: Add the needed constants for keyboard modifiers.
8163 * OSXKeyboard.cs: Initial support for keyboard and limited modifiers.
8164 * XplatUIOSX.cs: New reversible frame support. Wire in the new keyboard
8165 driver. Padd the bottom of all real windows so the resize thumb doesn't
8166 obscure scroll/status bars.
8168 2007-10-22 Jonathan Pobst <monkey@jpobst.com>
8170 * WindowsFormsSection.cs: Implement.
8172 2007-10-22 Everaldo Canuto <ecanuto@novell.com>
8174 * MdiClient.cs: Maximize new active mdi child when a maximized child is
8175 closed see #325434 patch.
8177 2007-10-22 Everaldo Canuto <ecanuto@novell.com>
8179 * MdiClient.cs: Fix remaining issues from layout vertical and horizontal,
8182 2007-10-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8184 * PropertyGridView.cs: When showing the textbox for a grid item,
8185 have two local variables to store the read-only and non-editable
8186 status of a grid item (we were previously using just one variable
8187 to do this, when actually they are slightly different).
8188 Fixes part of #325023.
8190 2007-10-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8192 * PropertyGridView.cs: When showing a drop-down list, try to get the
8193 values using TypeConverter.ConvertTo (to convert to a string). Fixes
8196 2007-10-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8198 * PropertyGrid.cs: When updating a property and populating sub grid
8199 items, remove the previous ones, and invalidate the specific area.
8200 * PropertyGridView.cs: A new InvalidateBelowGridItem to invalidate the
8201 area behind a grid item.
8202 * GridItemCollection.cs: Add an internal Clear method, to allow us to
8203 clean the items if needed (specially for controls implementing
8204 ICustomTypeDescriptor and returning a variable number of properties).
8207 2007-10-19 Jonathan Pobst <monkey@jpobst.com>
8209 * TextControl.cs: Clean up and document the Insert function.
8211 2007-10-17 Jonathan Pobst <monkey@jpobst.com>
8213 * TextControl.cs: Make sure we know our start point for updating the view
8214 in ReplaceSelection. Fixes an issue where pasting multiline text wouldn't
8217 2007-10-17 Jonathan Pobst <monkey@jpobst.com>
8219 * ListView: Couple of corcompare fixes.
8221 2007-10-17 Geoff Norton <gnorton@novell.com>
8223 * XplatUIOSX.cs: Implement support for window icons in the dock. Set
8224 the title caption of real window.
8226 2007-10-17 Jonathan Pobst <monkey@jpobst.com>
8228 * ErrorProvider.cs: Add the error provider's internal window to a
8229 containercontrol when the parent changes. [Fixes bug #329714]
8231 2007-10-17 Geoff Norton <gnorton@novell.com>
8233 * XplatUIOSX.cs: Implement ScrollWindow. Properly create TOOLWINDOWs.
8234 When we make a new window; restore the old active window - fixes dialogs.
8236 2007-10-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8238 * PropertyGridView.cs: Look for RefreshPropertiesAttribute
8239 when modifying a property, and if found then invalidate as
8241 Fixes part of #324865.
8243 2007-10-17 Geoff Norton <gnorton@novell.com>
8245 * XplatUIOSX.cs: Re-enable the native driver on the Mac. This is still
8246 highly experimental. Fixed coordinate translation. Fixed window locations.
8247 Initial support for clipping. Implemented NC areas and menus. Support for
8248 launching from command line from Will Johansson (wjohansson@atacomm.com).
8249 * OSXStructs.cs: Add ProcessSerialNumer (Patch from Will Johansson
8250 wjohansson@atacomm.com)
8251 * Hwnd.cs: Add some internal structures for tracking Mac cursors.
8252 Hwnds now track the existence of all of their children for Mac clipping.
8253 * XplatUI.cs: Re-enabled the native driver on the Mac.
8255 2007-10-17 Jonathan Pobst <monkey@jpobst.com>
8257 * Line.cs: Move the InsertString function to here.
8258 * TextControl.cs: Cleanup some duplicate code, move some InsertString
8259 functionality to Line.
8261 2007-10-17 Geoff Norton <gnorton@novell.com>
8263 * ComboBox.cs: Destroy the popup after hiding it. Fixes #322582
8265 2007-10-16 Gert Driesen <drieseng@users.sourceforge.net>
8267 * ButtonBase.cs: Fixed IsDefault to use assigned value instead of
8268 always setting value to true.
8269 * Form.cs: When changing AcceptButton, notify new and original button.
8271 2007-10-16 Jonathan Pobst <monkey@jpobst.com>
8273 * Form.cs: Guard against an NRE when the user sets the AcceptButton to
8274 a custom control that implements IButtonControl instead of an actual
8275 button. [Fixes bug #334244]
8277 2007-10-15 Everaldo Canuto <ecanuto@novell.com>
8279 * Form.cs: Change SelectActiveControl to internal, we need to call it in
8282 * MdiWindowManager.cs: In RaiseActivated call SelectActiveControl to select
8283 active control when activate a new mdi window.
8287 2007-10-15 Everaldo Canuto <ecanuto@novell.com>
8289 * ComboBox.cs: Dont implicit add listbox_ctrl on OnHandleCreated because it
8293 2007-10-15 Jonathan Pobst <monkey@jpobst.com>
8295 * TextControl.cs: When SuspendRecalc is first called, reset the recalc_start
8296 to MaxValue and recalc_end to MinValue. Currently, recalc_start is always 1,
8297 so we always recalculate the whole document instead of just the new part.
8300 2007-10-15 Jonathan Pobst <monkey@jpobst.com>
8302 * LineTag.cs: Fix a case where the GetCharIndex would not return 0
8303 when the mouse was to the left of the first character in the line.
8305 2007-10-15 Jonathan Pobst <monkey@jpobst.com>
8307 * TextBox.cs, TextBoxBase.cs: When setting the document's password
8308 character, use the property instead of the variable so that the
8309 UseSystemPasswordChar property is taken into account.
8312 2007-10-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8314 * FolderBrowserDialog.cs: When a node is right clicked and the "New
8315 folder" contex menu appears, actually add the new folder to it, even
8316 if the node is not currently selected. Still use SelectedNode in case
8317 there wasn't found a node under the pointer.
8320 2007-10-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8322 * ListViewItem.cs: When retrieving the focused state, the index check
8323 should be done only when ListView is in virtualmode, as it is an
8324 expensive check for normal mode.
8326 2007-10-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8328 * ListViewItem.cs: Make the focus state information be stored
8329 in the ListView, not in the items. This is done to match the MS
8330 behaviour for items that are not yet part of a ListView control;
8331 besides that, since just one item can be focused at the same time,
8332 we save a little space in our items.
8333 Fixes part of #331643.
8335 2007-10-13 Gert Driesen <drieseng@users.sourceforge.net>
8337 * ComboBox.cs: When focus is lost, deselect the text. When setting
8338 text of control, select all text. Do not hide selection when control
8339 does not have focus. Fixes bug #333663.
8341 2007-10-13 Gert Driesen <drieseng@users.sourceforge.net>
8343 * TextBoxBase.cs: On 2.0 profile, throw ArgumentOutOFRangeException
8344 instead of ArgumentException when SelectionLength is set to negative
8345 value. Added same check to SelectionStart. Code formatting.
8347 2007-10-13 Gert Driesen <drieseng@users.sourceforge.net>
8349 * TextBoxBase.cs: Invalidate selection before changing SelectionLength
8350 or SelectionStart. Code formatting.
8352 2007-10-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8354 * TreeView.cs: drag_begin_x and drag_begin_y are now set to -1,
8355 indicating that there was not a previous drag-and-drop operation going
8357 Fixes part of #325071.
8359 2007-10-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8361 * X11Dnd.cs: When DragEventArgs.Effect is set to a value not part of
8362 AllowedEffect, don't let the drop operation happen.
8365 2007-10-12 Jonathan Pobst <monkey@jpobst.com>
8367 * TextRenderer.cs: Use GDI on Windows in both the 1.1 and 2.0 profiles.
8369 2007-10-12 Jonathan Pobst <monkey@jpobst.com>
8371 * Line.cs, LineTag.cs: Guard against an exception when Document.Clear
8374 2007-10-12 Jonathan Pobst <monkey@jpobst.com>
8376 * Line.cs: Add a method that finds the tag that contains an x-coord.
8377 * LineTag.cs: Add a method that finds the character at an x-coord using
8378 a binary search, the old way was a linear search.
8379 * TextControl.cs: Change FindCursor to use the above new methods.
8381 2007-10-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8383 * DragEventArgs.cs: Allow Effect to have a non allowed value (a
8384 value different than AllowedEffect). This should be possible to
8385 indicate that dragging is not possible in some control/area.
8387 2007-10-11 Jonathan Pobst <monkey@jpobst.com>
8389 * LineTag.cs: Encapsulate all variables with properties. Calculate ascent/
8390 descent internally when font changes instead of outside code being responsible
8392 * Line.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs: Use Tag properties
8393 instead of accessing internal variables.
8395 2007-10-09 Everaldo Canuto <ecanuto@novell.com>
8397 * MdiClient.cs: Always call ArrangeIconicWindows before any arrangement and
8398 remove special treatment for ArrangeIcons since it is already arranged.
8400 2007-10-09 Jonathan Pobst <monkey@jpobst.com>
8402 * TextBoxTextRenderer.cs: Draw takes a Color now instead of a Brush, as
8403 the Win32 backend uses Color.
8404 * Line.cs, LineTag.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs:
8405 Refactor to store a Color instead of a Brush for Color.
8407 2007-10-09 Jonathan Pobst <monkey@jpobst.com>
8409 * Line.cs, LineTag.cs: Override GetHashCode to make a compiler warning go
8410 away. I didn't realize I needed this when I refactored these earlier.
8412 2007-10-09 Jonathan Pobst <monkey@jpobst.com>
8414 * LineTag.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs: Refactor to
8415 store a Color structure and use the ResPool for back color instead of
8416 holding onto brushes.
8418 2007-10-09 Jonathan Pobst <monkey@jpobst.com>
8420 * TextControl.cs: Fix how we calculate the end of the tag we are drawing.
8423 2007-10-08 Jonathan Pobst <monkey@jpobst.com>
8425 * MonthCalendar.cs: When ShowWeekNumbers is changed, force the calendar
8426 to recalculate its size. Fixes a part of bug #331052.
8428 2007-10-08 Jonathan Pobst <monkey@jpobst.com>
8430 * NotifyIcon.cs: Set the correct mouse button when handling right mouse
8431 button. Fixes a part of bug #331052.
8433 2007-10-08 Jonathan Pobst <monkey@jpobst.com>
8435 * Form.cs: Trim NewLine before setting XPlatUI.SetText, and when setting
8437 * ThemeWin32Classic.cs: Trim NewLine before drawing MDI children window
8441 2007-10-08 Jonathan Pobst <monkey@jpobst.com>
8443 * TextBoxTextRenderer.cs: Don't make this a static class, as static
8444 doesn't exist in 1.1. (Thanks jb!)
8446 2007-10-08 Jonathan Pobst <monkey@jpobst.com>
8448 * TextBoxTextRenderer.cs: Abstract text measuring and drawing to this
8449 class to allow us to use different backends on different platforms.
8450 Linux uses the current [Draw|Measure]String backend. Windows uses
8451 the TextRenderer.[Draw|Measure]Text backend, which uses GDI instead
8452 of GDI+. This leads to better looking text and more accurate measurements
8453 on Windows, fixing many of the reported issues.
8454 * Line.cs, LineTag.cs: Update to use TextBoxTextRenderer.
8456 2007-10-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8458 * FolderBrowserDialog.cs: When running on Windows,
8459 try to detect paths such "C:" and add Path.DirectorySeparatorChar,
8460 since we must match both "C:" and "C:\" forms. A little hackish, but
8464 2007-10-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8466 * ListView.cs: When calling EndEdit (after editing an item),
8467 create a new instance of LabelEditEventArgs to keep clean the fields
8468 in case we get a new call to BeginEdit; also do Application.DoEvents
8469 to have focus in synch. This is a fix similar to TreeView's #325244.
8471 2007-10-07 Andreia Gaita <avidigal@novell.com>
8473 * HtmlDocument.cs, HtmlElement.cs, WebBrowser.cs: Added dom support
8474 * WebBrowserBase.cs: Added dialog support, calling the
8475 WebBrowserDialogs classes for each specific dialog type.
8477 2007-10-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8479 * ListView.cs: When the last item is focused and is removed,
8480 move the focus to the previous item (in Items order). This is what MS
8484 2007-10-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8486 * ListView.cs: In ListViewItemCollection, make Remove call RemoveAt,
8487 instead of the opposite (RemoveAt call Remove). This is a better
8488 approach since we don't need to to a pair of traversals when using
8491 2006-10-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8493 * TreeView.cs: When Keys.Left is pressed, before trying to Collapse
8494 check that the node actually has nodes, and if not, move to the
8495 parent node instead.
8498 2006-10-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8500 * TreeView.cs: Move the previous change to the general case (to
8501 call Application.DoEvents in cases where the method was called by
8504 2007_10-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8506 * TreeView.cs: When calling EndEdit and we need to hide the textbox,
8507 call Application.DoEvents. This is neccessary when we get a call to
8508 BeginEdit from an AfterLabelEdit handler, because the focus always
8509 goes to the TreeView, even if we try to give it to our
8510 LabelEditTextBox. The call do Application.DoEvents seems to
8511 synchronize the focus, basically.
8514 2007-10-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8516 * TreeView.cs: When AfterLabelEdit event is fired, TreeNode.IsEditing
8517 should be false. This also removes some nasty recursive paths. Fixes
8520 2007-10-04 Everaldo Canuto <ecanuto@novell.com>
8522 * MdiClient.cs: When cascade (layout) mdi window that is maximized, set the
8523 state to normal. Also resize window when cascading. Fixes #325433.
8525 2007-10-04 Jonathan Pobst <monkey@jpobst.com>
8527 * RichTextBox.cs: When SelectionColor is set to Color.Empty, use
8528 DefaultForeColor, as drawing empty colored lines isn't very useful.
8529 [Fixes the not drawn lines part of bug #324358]
8531 2007-10-04 Jonathan Pobst <monkey@jpobst.com>
8533 * TextControl.cs: Move Line and LineTag classes into separate files to
8534 make things easier to find.
8535 * Line.cs, LineTag.cs: Bring coding standards up to Mono's guidelines.
8536 * RichTextBox.cs: Capitalize LineTag.Length property access.
8537 - This is purely an organizational/formatting change, no logic changed. -
8539 2007-10-03 Everaldo Canuto <ecanuto@novell.com>
8541 * ThemeWin32Classic.cs: Do not show focus rectangle in radio buttons when
8544 2007-10-03 Everaldo Canuto <ecanuto@novell.com>
8546 * ThemeWin32Classic.cs: Do not show focus rectangle in checkboxes when
8549 2007-10-03 Everaldo Canuto <ecanuto@novell.com>
8551 * ComboBox.cs: On contructor use backgound_color instead of BackColor to
8552 prevent calling of OnBackColorChanged. Fixes #325321.
8554 2007-10-03 Everaldo Canuto <ecanuto@novell.com>
8556 * TextBox.cs: When check enabled uses Enabled property instead of is_enabled
8557 because control can be disabled because owner is disabled.
8559 2007-10-02 Jonathan Pobst <monkey@jpobst.com>
8561 * ComboBox.cs: For the 1.1 profile, the default SelectedText is
8562 string.Empty, test failed from previous change.
8564 2007-10-02 Jonathan Pobst <monkey@jpobst.com>
8566 * TextBoxBase.cs: For the 1.1 profile, the default SelectedText
8567 is null, not String.Empty. See bug #323038.
8569 2007-10-01 Jonathan Pobst <monkey@jpobst.com>
8571 * TextControl.cs: Change the margins to match MS a little better.
8572 Still not perfect for X11 due to some DrawString differences, but
8573 is still an improvement over the old stuff.
8574 Partially fixes #324467.
8576 2007-09-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8578 * FolderBrowserDialog.cs: When using MyComputer as
8579 RootFolder, let absolute paths be considered as valid ones. Also, use
8580 Path.DirectorySeparatorChar instead of Path.AltDirectorySeparatorChar,
8581 for Windows compatibility.
8582 Partially fixes #325247.
8584 2007-09-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8586 * FolderBrowserDialog.cs: Fix the recursive FindPathInNodes method.
8587 Also remove the stack.Count > 0 check in FBTreeView.SetSelectedNode
8588 method, since it causes the dialog to not select folders directly
8589 under the root path (when setting SelectedPath property).
8591 2007-09-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8593 * TreeNode.cs: When calling Expand/Collapse and need to call
8594 ExpandBelow/CollapseBelow respectively, take into account
8595 partially visible nodes (previously Expanding/Collapsing
8596 a partially visible node in the bottom was not updating its +- sign).
8598 2007-09-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8600 * TreeView.cs: When calling Expand on a TreeNode, and we need to
8601 expand nodes below (ExpandBelow), scroll the entire Viewport
8602 area if the node is above it and not visible (instead of scrolling
8603 the area from node's Bottom, which applies only when the node is
8607 2007-09-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8609 * TreeView.cs: When calling ExpandAll, set SelectedNode to the top
8610 node in the bottom area (as .Net does). This is done to preserve the
8611 scroll position when ExpandAll is called before handle is created for
8612 the 1.1 profile (bottom area, as opposed to top area in 2.0).
8615 2007-09-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8617 * TreeView.cs: When calling ExpandAll, don't move the scroll to the
8618 bottom area if we are in fact not using the vertical scroll bar.
8621 2007-09-27 Jonathan Pobst <monkey@jpobst.com>
8623 * Control.cs: Comment out a double buffering optimization that doesn't
8624 take into account invalidates created in OnPaint, causing the control
8625 to never be redrawn. It would take quite a bit of work to work around
8626 this, but I left it commented with an explanation for later possible
8630 2007-09-27 Jonathan Pobst <monkey@jpobst.com>
8632 * Control.cs: Ask parent to perform a layout if control is AutoSize and
8634 * RadioButton.cs: Implement GetPreferredSizeCore.
8637 2007-09-26 Jonathan Pobst <monkey@jpobst.com>
8639 * RichTextBox.cs, TextBoxBase.cs, WindowsFormsSynchronizationContext.cs:
8642 2007-09-26 Jonathan Pobst <monkey@jpobst.com>
8644 * Application.cs: Move the sync context stuff to Run instead of RunLoop
8645 so that it doesn't get uninstalled on modal forms.
8646 * Control.cs: Install a sync context when a control is created.
8647 * WindowsFormsSyncronizationContext.cs: Create a private static control
8648 to invoke on. This is easier than trying to find a created control we
8652 2007-09-25 Jonathan Pobst <monkey@jpobst.com>
8654 * Application.cs: Install a WindowsFormsSynchronizationContext in the
8655 run loop, and uninstall it when done.
8656 * WindowsFormsSynchronizationContext.cs: Implement.
8657 [Fixes the common case in bug #327608]
8659 2007-09-23 Gert Driesen <drieseng@users.sourceforge.net>
8661 * DataGridViewCellCollection.cs: Added argument checks for indexers.
8662 Use case-insensitive lookup of column name in indexer. Code
8665 2007-09-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8667 * TreeNode.cs: When collapsing or expanding a node, check whether its
8668 change will affect the visible area (we were previously doing a
8669 IsVisible check, but that check is not enough since children nodes
8670 could be still visible). Fixes part of #325266.
8672 2007-09-21 Jonathan Pobst <monkey@jpobst.com>
8674 * TreeView.cs: Always select the first node when the TreeView gets
8675 focus if there is no currently selected node.
8678 2007-09-21 Jonathan Pobst <monkey@jpobst.com>
8680 * TreeView.cs: Do not raise BeforeSelect or AfterSelect when the
8681 node being selected is null.
8682 [Patch from Yves Bastide fixes bug #326858]
8684 2007-09-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8686 * TreeNode.cs: Add an internal ArePreviousNodesExpanded, to know
8687 whether all the parent nodes are expanded.
8688 * TreeNodeCollection.cs: When adding a new node an calling SetupNode,
8689 call RecalculateVisibleOrder if all previous nodes are expanded.
8690 Before that we were doing a IsVisible check, but sometimes the node
8691 is not in the visible area, but _should_already be ready, because of
8692 all previous nodes are expanded. Fixes #325259.
8694 2007-09-20 Jonathan Pobst <monkey@jpobst.com>
8696 * ToolStripSplitButton.cs: Call the ButtonClick event if the button
8697 portion of the item is clicked.
8699 2007-09-20 Jonathan Pobst <monkey@jpobst.com>
8701 * TextControl.cs: Do not tell the system to move the cursor if the
8702 textbox isn't focused. Fixes part of bug #322668.
8704 2007-09-20 Jonathan Pobst <monkey@jpobst.com>
8706 * ComboBox.cs: When there are no items, do not show the dropdown if
8707 the down arrow is clicked. Fixes part of bug #322668.
8709 2007-09-20 Jonathan Pobst <monkey@jpobst.com>
8711 * ToolStripComboBox.cs: Manually set the size of this control in the
8712 constructor, as it doesn't seem to be the same as DefaultSize.
8713 Fixes a failing monobuild test.
8715 2007-09-19 Jonathan Pobst <monkey@jpobst.com>
8717 * DateTimePicker.cs: If the user sets MinDate to DateTime.MinValue,
8718 change it to DateTimePicker.MinDateTime. [Fixes bug #326609]
8720 2007-09-19 Jonathan Pobst <monkey@jpobst.com>
8722 * Theme.cs: FileDialogs should be using DesktopDirectory instead of
8723 Desktop. This lets it work for people who have moved their desktops
8724 from the default location on windows. For people who have not, both
8725 values are the same, so it shouldn't hurt anything. [Fixes bug #325270]
8727 2007-09-18 Jonathan Pobst <monkey@jpobst.com>
8729 * ToolStripControlHostTest.cs: DefaultSize is based off hosted control,
8730 but when the base constructor sets this, the control is null. Set it
8731 again in the constructor. Fixes a failing monobuild test.
8733 2007-09-18 Jonathan Pobst <monkey@jpobst.com>
8735 * ToolStripDropDownItem.cs: Make sure Click and DropDownOpened events
8737 * ToolStripSplitButton.cs: Make sure MouseDown and MouseUp events get
8740 2007-09-18 Jonathan Pobst <monkey@jpobst.com>
8742 * ToolStrip.cs: Don't show tooltips for ToolStripTextBoxes, they
8743 will handle it themselves.
8744 * ToolStripItem.cs: When deciding what the text of a tooltip should
8745 be, use the Text property instead of the text field.
8746 * ToolStripTextBox.cs: Handle tooltips.
8747 [Fixes bugs #325417 and #325973]
8749 2007-09-18 Jonathan Pobst <monkey@jpobst.com>
8751 * ToolStripDropDownButton.cs: Only drop down overflow menu with a
8752 left click. Fixes the easy part of bug #325969.
8754 2007-09-18 Jonathan Pobst <monkey@jpobst.com>
8756 * ToolStrip.cs: Set AutoSizeMode back to GrowAndShrink to refix
8757 bug #325406, but set a minimum for StatusStrip to 22 to keep
8758 bug #325390 fixed. I think this minimum would have been figured
8759 up automatically if the grip was actually a ToolStripItem, but it
8762 2007-09-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8764 * ListView.cs: max_label_wrapping is now 30 pixels instead of 38,
8765 as this is apparently the actual value used by .Net. Also apply
8766 ItemPadding in Details view only, and decrease the general width padding,
8767 to have only the needed. This should fix #324340 in Windows too.
8769 2007-09-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8771 * ListViewItem.cs: Don't Invalidate item if parent is inside
8772 a BeginUpdate/EndUpdate block. This prevents to have differences
8773 between the ListView and items state, as well as avoid some exceptions
8775 * ListView.cs: Make 'updating' field internal.
8777 2007-09-17 Jonathan Pobst <monkey@jpobst.com>
8779 * ToolStripControlHost.cs: Realign control when ControlAlign changes.
8780 * ToolStripItem.cs: Use ImageScalingSize when calculating preferred
8781 size if appropriate.
8782 Fixes reopened bug #325414.
8784 2007-09-17 Jonathan Pobst <monkey@jpobst.com>
8786 * ToolStrip.cs: Set AutoSizeMode back to GrowOnly.
8787 * ToolStripItem.cs: Invalidate before and after our new autosize when
8789 Fixes reopened bug #325390.
8791 2007-09-17 Jonathan Pobst <monkey@jpobst.com>
8793 * ToolStripMenuItem.cs: Make sure we invalidate when clicked so
8794 mnemonics can be drawn or undrawn correctly. Fixes reopened bug
8797 2007-09-17 Jonathan Pobst <monkey@jpobst.com>
8799 * Control.cs: Do WM_CONTEXTMENU before OnMouseUp. [Fixes bug #325535]
8801 2007-09-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8803 * ColumnHeader.cs: When drawing column text, use EllipsisCharacter
8804 instead of EllipsisWord (by equistango at gmail.com). Fixes part of
8807 2007-09-14 Jonathan Pobst <monkey@jpobst.com>
8809 * ToolStrip.cs: Make ToolStrip selectable when TabStop = true. Find an
8810 item to select when the ToolStrip is selected.
8811 * ToolStripControlHost: Realign the control when the bounds or visibility
8813 * ToolStripItem.cs: When selected, if it's a control host, focus the control.
8814 * ToolStripOverflow.cs: When laying out the drop down, respect the item's
8816 * ToolStripTextBox.cs: OnPaintInternal should call base.OnPaintInternal, not
8817 base.OnPaint. Was causing text not to be drawn.
8819 2007-09-14 Jonathan Pobst <monkey@jpobst.com>
8821 * SplitterPanel.cs: Ignore attempts to set AutoSizeMode.
8823 2007-09-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8825 * TreeView.cs: When creating the label edit text box,
8826 set is initially to Visible = false. This is done to
8827 prevent a confusion in the layout which makes it to lose
8828 focus when shown the first time. Fixes part of #82592.
8830 2007-09-13 Andreia Gaita <avidigal@novell.com>
8832 * WebBrowserBase.cs: add FocusOption enumeration for finer focus control
8834 2007-09-13 Jonathan Pobst <monkey@jpobst.com>
8836 * ToolStrip.cs: Take Margin into account when calculating preferred
8837 size. Also, allow preferred size to get smaller than the explicit
8839 * ToolStripTextBox.cs: Don't change the GetPreferredSize implementation.
8840 First step towards fixing bug #82747.
8842 2007-09-13 Jonathan Pobst <monkey@jpobst.com>
8844 * TreeView.cs: Applied patch from latency@gmx.de to not paint the
8845 full row select background over the plus/minus glyph. Also, turn
8846 off the focus rectangle for full row select since MS doesn't seem
8847 to ever paint it. [Fixes bug #81839]
8849 2007-09-13 Jonathan Pobst <monkey@jpobst.com>
8851 * ToolStrip.cs: Don't FocusInternal if there is no selected item.
8852 This was causing keyboard opened dropdowns to lose focus.
8855 2007-09-13 Jonathan Pobst <monkey@jpobst.com>
8857 * Control.cs: If Rectangle.Empty is passed to Invalidate, use
8858 ClientRectangle instead. [Fixes bug #82838]
8860 2007-09-13 Jonathan Pobst <monkey@jpobst.com>
8862 * SplitContainer.cs: We can't reset Visible on every layout because
8863 someone may have set Visible = false explicitly on a SplitterPanel.
8864 Make sure when we switch orientation the SplitterDistance does not
8865 change. Fixes two failing tests.
8867 2007-09-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8869 * TreeView.cs: Use MeasureTextInternal instead of MeasureText in
8870 TextRenderer, since the latter is only available in 2.0.
8872 2007-09-13 Ivan N. Zlatev <contact@i-nz.net>
8874 * Cursor.cs: Fix Cursor.Current to apply Cursor.Default.
8875 * SplitContainer.cs: Implement FixedPanel layouting.
8877 2007-09-12 Andreia Gaita <avidigal@novell.com>
8879 * WebBrowserBase.cs: setup shutdown routine
8881 2007-09-12 Andreia Gaita <avidigal@novell.com>
8883 * Application.cs: Let keyboard events that are targetted
8884 to non-mwf windows hosted inside mwf (as in, webbrowser),
8885 propagate properly. Fixes keyboard handling on the webbrowser.
8887 2007-09-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8889 * ListView.cs: When handling MouseUp event and we are
8890 highligting a node with the mouse right button, don't trigger
8891 Before/AfterSelecting event, since we are not actually selecting
8894 2007-09-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8896 * TreeView.cs: When editing a node, modify the edit text box
8897 depending on the text length (as you are typing), like MS does.
8899 2007-09-12 Jonathan Pobst <monkey@jpobst.com>
8901 * ToolStrip.cs: Fixup preferred size calculations for vertical toolbars.
8902 Override GetPreferredSizeCore to perform calculations. Remove custom
8903 autosize logic. [Fixes bug #82739]
8905 2007-09-12 Jonathan Pobst <monkey@jpobst.com>
8907 * TextBoxBase.cs: Modified should default to false.
8909 2007-09-11 Jonathan Pobst <monkey@jpobst.com>
8911 * Control.cs: Update the anchoring distances even when layout is supspended.
8912 Patch provided by George fixes bug #82805.
8914 2007-09-11 Jonathan Pobst <monkey@jpobst.com>
8916 * Control.cs: Provide a setter for ExplicitHeight.
8917 * TextBoxBase.cs: Now that we have the implementation for explicit heights,
8918 remove the hacks in here for requested_height.
8921 2007-09-11 Jonathan Pobst <monkey@jpobst.com>
8923 * ScrollBar.cs: Fix an issue reported on the lists where setting a scrollbar's
8924 Maximum to lower that its current Value caused an ArgumentException by setting
8925 the Value to the new Maximum.
8927 2007-09-11 Jonathan Pobst <monkey@jpobst.com>
8929 * ThemeWin32Classic.cs: Math is hard! Fix some math so that the TrackBar
8930 handle moves to the closest tick when it is being dragged.
8933 2007-09-11 Jonathan Pobst <monkey@jpobst.com>
8935 * ToolStripManager.cs: When we have added MDI buttons onto a MenuStrip, we
8936 can't let them count as real items when calculating where to merge in the
8937 user's items. [Fixed bug #82786]
8939 2007-09-10 Jonathan Pobst <monkey@jpobst.com>
8941 * ToolStripMenuItem.cs: Add a parent type check so we don't crash on people
8942 who want to add a menu item directly onto a toolstrip.
8943 [Fixes bug #82775, part II]
8945 2007-09-10 Jonathan Pobst <monkey@jpobst.com>
8947 * StatusStrip.cs: Synchronize SetDisplayedItems with the ToolStrip version.
8948 * ToolStrip.cs: If a ToolStripItem set to not visible is added to a ToolStrip,
8949 don't set it to available.
8950 * ToolStripItem.cs: When Visible is changed, tell the owner to perform a layout.
8951 [Fixes bug #82727, part II]
8953 2007-09-10 Jonathan Pobst <monkey@jpobst.com>
8955 * StatusStrip.cs: Change item placement to None if not visible.
8956 * ToolStripItem.cs: Invalidate when InternalVisible changes.
8957 These should have been committed to fix 82723, but I missed them.
8959 2007-09-10 Jonathan Pobst <monkey@jpobst.com>
8961 * ToolStrip.cs: Make sure ItemClicked is raised before the ToolStripItem's
8962 Click, and that it is only called once.
8963 * ToolStripMenuItem.cs: Call OnClick even when there are dropdown items.
8964 * ToolStripDropDownItem.cs: Override HandleItemClick so dropdowns stay
8968 2007-09-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8970 * ColumnHeaderSample.cs: Use 5 pixels as extra height instead of 8
8972 * ThemeWin32Classic.cs: For the columns text, use 5 pixels as left padding
8973 instead of 8, just like above. Partially fixes #82734.
8975 2007-09-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8977 Patch by Ernesto Carrea <equistango at gmail.com>. Partially
8980 * ListView.cs: Remove extra space between rows in Details view (match
8982 * ThemeWin32Classic.cs: Header text should use ListView.Font, not
8985 2007-09-08 Gert Driesen <drieseng@users.sourceforge.net>
8987 * Application.cs: Modified ProductVersion to return value of
8988 AssemblyInformationVersion if available, and fallback to assembly
8989 version. Fixes bug #82746. Code formatting.
8990 * BindingSource.cs: Remove NIE from Dispose, and mark it MonoTODO
8993 2007-09-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8995 * Control.cs: When updating ZOrder for a child control,
8996 take into account the implicit ones (we need it in our controls
8997 using them). Fixes #82642.
8999 2007-09-07 Jonathan Pobst <monkey@jpobst.com>
9001 * ToolStripItem.cs: Add support for animated images.
9004 2007-09-07 Jonathan Pobst <monkey@jpobst.com>
9006 * ToolStrip.cs: Make sure we aren't drawing anything that isn't
9007 visible. [Fixes bug #82727]
9009 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
9011 * ToolStripItem.cs: If AutoSize changes the size of our item, invalidate
9012 so we repaint using the new size. [Fixes bug #82723]
9014 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
9016 * TreeView.cs: If ShowLines is true, we should ignore the FullRowSelect
9017 option. [Fixes bug #81779]
9019 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
9021 * TreeView.cs: Override HandleClick because the StandardClick style is
9022 set to false. According to MSDN (and testing), the click events should
9023 only be raised when the click occurs on a TreeNode. [Fixes bug #81739]
9025 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
9027 * ToolStripTextBox.cs: Invalidate our textbox when it loses focus, so
9028 the border will disappear. Fixes reopened #82653.
9030 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
9032 * Control.cs: If the control is autosize, and its preferred size changes
9033 when it lays out its children, tell its parent so it can be re-layed out.
9034 Fixing some of the fallout from r85433.
9036 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
9038 * ThemeWin32Classic.cs: Fix a NRE caused by r85427 because RadioButton
9039 and CheckBox share some code.
9041 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
9043 * TrackBar.cs: Only call OnScroll if we actually changed the Value of
9044 the TrackBar, not every mouse move. [Fixed bug #82718]
9046 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
9048 * ThemeWin32Classic.cs: Allow a CheckBox to be rendered like a Button
9049 under 2.0 rendering. [Fixes bug #82657]
9051 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
9053 * TreeView.cs: If we found a TreeNode to display a context menu, but
9054 it doesn't have one to show, let the TreeView display its menu
9055 instead. [Fixes bug #82680]
9057 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
9059 * ToolStripTextBox.cs: TextBox no longer call OnPaint, we need to use
9060 OnPaintInternal instead. Give the internal TextBox a Border property
9061 so it can draw itself more correctly. [Fixes bug #82653]
9063 2007-09-06 Zoltan Varga <vargaz@gmail.com>
9065 * HtmlHistory.cs HtmlWindow.cs HtmlWindowCollection.cs ListBindingHelper.cs WindowsFormsSection.cs WindowsFormsSynchronizationContext.cs: Stubs for missing 2.0 classes.
9067 2007-09-05 Everaldo Canuto <everaldo@simios.org>
9069 * ComboBox.cs: Adjust combobox button state to reflect current state when
9070 back to enabled = true. Fixes first issue of #82654.
9072 2007-09-05 Everaldo Canuto <everaldo@simios.org>
9074 * Control.cs: Fix last patch regression, prevent forms to update zorder when
9075 setting visible property.
9077 2007-09-05 Everaldo Canuto <everaldo@simios.org>
9079 * Control.cs: Update zorder after control creation in SetVisibleCore, it
9080 fix zorder for controls initially created as non visible. Fixes #82667.
9082 2007-09-04 Everaldo Canuto <everaldo@simios.org>
9084 * ThemeWin32Classic.cs: Adjust checkbox light color to ControlLightLight to
9085 mimic win32 look. Fixes #82656.
9087 2007-09-01 Zoltan Varga <vargaz@gmail.com>
9089 * FileDialogCustomPlace.cs FileDialogCustomPlacesCollection.cs:
9090 Stubs for new net 3.5 classes.
9092 2007-08-31 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9094 * ListViewItem.cs: In ListViewItemCollection operations calculate
9095 Layout for owner as well as invalidate it. Fixes part of #82642.
9097 2007-08-31 Jonathan Pobst <monkey@jpobst.com>
9099 * ToolStripItem.cs: Take Parent/Owner's Enabled state in to account
9100 when returning Enabled. [Fixes bug #82651]
9102 2007-08-30 Everaldo Canuto <everaldo@simios.org>
9104 * ToolBar.cs: Fix button size for non flat toolbars. Fixes #82368.
9106 2007-08-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9108 * ListView.cs: Put item padding info in a single place
9109 (Theme.ListViewItemPaddingWidth) to have working AutoResize on
9111 * ThemeWin32Classic.cs:
9112 * Theme.cs: Likewise.
9114 2007-08-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9116 * ListView.cs: When a ListViewSubItem instance is invalidated,
9117 invoke Invalidate on parent ListViewItem, not parent ListView.
9120 2007-08-30 Jonathan Pobst <monkey@jpobst.com>
9122 * ListView.cs, ListViewItem.cs: corcompare stuffs.
9124 2007-08-30 Jonathan Pobst <monkey@jpobst.com>
9126 * BindingMemberInfo.cs: Implement == and != operators.
9128 2007-08-30 Jonathan Pobst <monkey@jpobst.com>
9130 * HtmlElementEventArgs.cs: Implement properties.
9132 2007-08-29 Jonathan Pobst <monkey@jpobst.com>
9134 * HtmlElementErrorEventArgs.cs, HtmlElementErrorEventHandler.cs: Added.
9136 2007-08-29 Jonathan Pobst <monkey@jpobst.com>
9138 * TabControl.cs: I was looking into the MonoTODO on TabPageCollection.
9139 Add (string,string,string) to implement the imagekey. It turns out, we
9140 use the requested imagekey whereas .Net does not. So I broke ours to match
9143 2007-08-29 Jonathan Pobst <monkey@jpobst.com>
9145 * Form.cs, UserControl.cs: Override ValidateChildren, AutoValidate.
9147 2007-08-29 Jonathan Pobst <monkey@jpobst.com>
9149 * ContainerControl.cs: Implement ValidateChildren and new Validate overload.
9151 2007-08-29 Gert Driesen <drieseng@users.sourceforge.net>
9153 * FolderBrowserDialog.cs: Set Tag of newly created node, and keep it
9154 up-to-date. Fixes bug #82618.
9156 2007-08-29 Everaldo Canuto <everaldo@simios.org>
9158 * TextBoxBase.cs: Call CalculateDocument after changes Lines property to
9159 reflect document changes. Fixes #82367.
9161 2007-08-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9163 * ListView.cs: Add/fix some override differences between 1.1 and 2.0,
9164 as well as add new ones. This should make work the BackgroundImage
9165 property for ListView again.
9167 2007-08-28 Jonathan Pobst <monkey@jpobst.com>
9169 * DataGrid.cs, DataGridViewButtonColumn.cs, DataGridViewCheckBoxColumn.cs,
9170 DataGridViewComboBoxColumn.cs, DataGridViewImageColumn.cs, DataGridViewLinkColumn.cs,
9171 DataGridViewTextBoxColumn.cs, ToolTip.cs: corcompare stuffs.
9173 2007-08-28 Jonathan Pobst <monkey@jpobst.com>
9175 * Control.cs, XPlatUI.cs, XPlatUIDriver.cs, XPlatUIWin32.cs: Implement
9178 2007-08-28 Jonathan Pobst <monkey@jpobst.com>
9180 * Cursor.cs: Add HotSpot, hook into XPlatUI.GetCursorInfo.
9181 * XPlatUIWin32.cs: Implement hotspot lookup in GetCursorInfo.
9183 2007-08-28 Jonathan Pobst <monkey@jpobst.com>
9185 * RadioButton.cs: Use 2.0 rendering. Use base implementation of TextAlign.
9186 * Theme.cs, ThemeWin32Classic.cs: Implement 2.0 rendering for RadioButton.
9188 2007-08-27 Ivan N. Zlatev <contact@i-nz.net>
9190 * CursorConverter.cs: Implement conversion to InstanceDescriptor.
9192 2007-08-27 Ivan N. Zlatev <contact@i-nz.net>
9194 * GridEntry.cs: Implement GetService.
9196 2007-08-27 Jonathan Pobst <monkey@jpobst.com>
9198 * LabelEditTextBox.cs, TreeView.cs: After hiding the textbox used
9199 for label editting, make sure we focus back on the TreeView.
9202 2007-08-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9204 * ListView.cs: Add some 2.0 overrides.
9206 2007-08-27 Everaldo Canuto <ecanuto@novell.com>
9208 * Form.cs: Uses opacity var instead of Opacity property in CreateHandle
9209 because getter dont returns right value before handle creation. Thanks
9210 to George. Fixes #82569.
9212 2007-08-27 Everaldo Canuto <ecanuto@novell.com>
9214 * Theme.cs: Revert last patch, it causes error under win32.
9216 2007-08-27 Everaldo Canuto <ecanuto@novell.com>
9218 * Theme.cs: Uses Environment.SpecialFolder.DesktopDirectory instead of
9219 Environment.SpecialFolder.Desktop in Places method, Desktop returns the
9220 logical Desktop rather than the physical file system location. Fixes #82603.
9222 2007-08-26 Everaldo Canuto <ecanuto@novell.com>
9224 * MessageBox.cs: Add clipboard copy (ctrl+c) to messagebox. Thanks Andy Hume
9225 for the patch. Fixes #82568.
9227 2007-08-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9229 * ListView.cs: Add a pair of missing 2.0 ListViewItemCollection.Insert
9232 2007-08-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9234 * ListViewInsertionMark.cs: New stubbed class.
9236 2007-08-25 Gert Driesen <drieseng@users.sourceforge.net>
9238 * FolderBrowserDialog.cs: When adding folder, immediately create the
9239 directory with temporary name and rename the directory when editing
9240 finishes. This matches MS. Ensure the node for the new folder is
9241 selected and LabelEdit is disabled, when editing is either finished
9244 2007-08-25 Gert Driesen <drieseng@users.sourceforge.net>
9246 * TreeView.cs: When editing label of node, ensure node is visible.
9248 2007-08-25 Ivan N. Zlatev <contact@i-nz.net>
9250 * PropertyGridView.cs: Set the value only if it has changed.
9252 2007-08-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9254 * ListView.cs: Some more code refactoring to add support sorting
9255 with groups (now for Details view). Remove unused code also.
9257 2007-08-24 Jonathan Pobst <monkey@jpobst.com>
9259 * NodeLabelEditEventArgs.cs: EndEdit immediately when CancelEdit is called.
9260 Not a big fan of reacting immediately to a field in an EventArg, but that's
9261 the way it's done. (This is part of the previous commit that got left out.)
9263 2007-08-25 Gert Driesen <drieseng@users.sourceforge.net>
9265 * FolderBrowserDialog.cs: Removed need for separate description field.
9266 Replaced "" with string.Empty. Fixed tabindex. Ensure OK button
9267 has focus when dialog box is displayed again, regardless of what
9268 button was pressed the previous time. Set RootFolder and SelectedPath
9269 each time dialog box is displayed. This ensures the treeview is
9270 refreshed, and fixes bug #82579. Do no hide selected node in TreeView
9271 when it does not have focus. Added support for more special folders.
9273 2007-08-24 Jonathan Pobst <monkey@jpobst.com>
9275 * TreeView.cs: Create a CancelEdit method. Clone the edit_args in EndEdit
9276 before calling AfterLabelEdit. If the user calls BeginEdit in that event,
9277 it resets the edit_args.
9278 * TreeNode.cs: Call CancelEdit if the user passes cancel = true to EndEdit.
9281 2007-08-24 Gert Driesen <drieseng@users.sourceforge.net>
9283 * FolderBrowserDialog.cs: Modifies form caption and text of new folder
9284 button to match MS. Provide more meaningful exception message for
9285 invalid RootFolder value. Use zero-length string when SelectedPath
9286 is set to null. Allow non-rooted paths in SelectedPath, but ignore
9287 them in FolderBrowserTreeView. Allow folders to be created in
9288 RootFolder. Fixes bug #82576.
9290 2007-08-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9292 * ListView.cs: Correctly compute the layout_ht (height) when using groups,
9293 since we need to take into account the group headers and the margin
9295 * ListViewGroup.cs: Add a rows field to store the number of rows per
9298 2007-08-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
9300 * DateTimePicker.cs: The MS' MTB has a really stupid year formatting.
9301 Anyways, let's just follow the lead.
9303 2007-08-24 Jonathan Pobst <monkey@jpobst.com>
9305 * CheckBox.cs: Set the AutoSizeMode to GrowAndShrink.
9306 * Form.cs, GroupBox.cs: Don't skip Right or Bottom anchored
9307 controls in GetPreferredSizeCore.
9308 * ThemeWin32Classic.cs: Tweak text drawing of CheckBoxes.
9311 2007-08-24 Jonathan Pobst <monkey@jpobst.com>
9313 * PrintDialog.cs: Need to instantiate the form variable here too.
9315 2007-08-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9317 * ListView.cs: Do some reorganization to support sorting in groups,
9318 by doing the layout sequentially in ListView.Items. Also add support
9319 for the Default Group, which should be available for items with no
9321 * ListViewGroup.cs: Add support for DefaultGroup. Include new members
9322 for storing layout info also.
9323 * ListViewGroupCollection.cs: Add a DefaultGroup as part of the
9324 collection, as well as providing internal members to do a traversal
9325 including the default group (needed when doing layout/drawing).
9326 * ThemeWin32Classic.cs: When drawing group headers use internal
9327 ListViewGroupCollection members to take into account the default
9330 2007-08-23 George Giolfan <georgegiolfan@yahoo.com>
9332 * FlowLayoutPanel.cs: Add GetPreferredSizeCore. [Fixes bug #82537]
9334 2007-08-23 Jonathan Pobst <monkey@jpobst.com>
9336 * TreeView.cs: IsInputKey: don't ask for any keys if the handle hasn't
9337 been created. If handle is created, we want arror keys. If we are editing
9338 a node, we want things like enter, esc, home, end, page up, page down.
9339 Allows Esc to work for FolderBrowserDialog.
9341 2007-08-23 Jonathan Pobst <monkey@jpobst.com>
9343 * ColorDialog.cs, FontDialog.cs: Set the form's CancelButton so that
9344 they close when ESC is pressed. Thanks Andy!
9346 2007-08-23 Jonathan Pobst <monkey@jpobst.com>
9348 * CommonDialog.cs: Do not instantiate form, leave that for derived classes.
9349 This way we can tell if this is a CommonDialog provided with mono, or one
9350 that is being implemented outside by a developer. If it is an external one,
9351 the developer is responsible for showing their own form. We were showing
9352 our blank form after the developer showed his.
9353 * ColorDialog.cs, FileDialog.cs, FolderBrowserDialog.cs, FontDialog.cs,
9354 PageSetupDialog.cs: Instantiate form variable in our constructor.
9357 2007-08-23 Jonathan Pobst <monkey@jpobst.com>
9359 * ListBox.cs, ListView.cs, TreeView.cs: Override IsInputCharInternal
9360 and always return true. [Fixes bug #81616]
9362 2007-08-23 Jonathan Pobst <monkey@jpobst.com>
9364 * TextBoxBase.cs: Allow 2.0 AutoSize to change the height of the
9365 TextBox. [Fixes bug #82549]
9367 2007-08-23 Gert Driesen <drieseng@users.sourceforge.net>
9369 * FileDialog.cs: When Save/Open is clicked and no filename is selected
9370 or entered then do not close the dialog. Fixes bug #82539. Removed
9373 2007-08-22 Everaldo Canuto <ecanuto@novell.com>
9375 * FileDialog.cs: Create UpdateRecentFiles and move the recent files refresh
9376 code to this method. It is calling every time filter changes. This method
9377 will help to fix the bug #80887.
9379 2007-08-22 Jonathan Pobst <monkey@jpobst.com>
9381 * CheckBox.cs: Implement AutoSize calculation.
9383 2007-08-22 Jonathan Pobst <monkey@jpobst.com>
9385 * CheckBox.cs: Use new 2.0 rendering for 2.0.
9386 * Theme.cs: Method declarations for 2.0 rendering path.
9387 * ThemeWin32Classic.cs: 2.0 rendering implementation for CheckBox.
9389 2007-08-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9391 * ListViewGroupCollection.cs: Fix a typo of the previous patch.
9393 2007-08-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9395 * ListViewGroupCollection.cs: Implement AddRange the right way, to
9396 only call Redraw on the parent one time.
9398 2007-08-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
9400 * DataGridViewRowHeaderCell.cs, DataGridViewColumnHeaderCell.cs: Implemented
9401 GetClipboardContent.
9402 * DataGridViewCell.cs: Implemented GetClipboardContent,
9403 GetEditedFormattedValue, GetFormattedValue.
9404 * DataGridView.cs: Implemented GetClipboardContent, TopLeftHeaderCell.
9406 2007-08-21 Jonathan Pobst <monkey@jpobst.com>
9408 * TableLayoutStyleCollection.cs: corcompare fix.
9410 2007-08-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
9412 * DataObject.cs: Implemented retrieval of convertible / not convertible
9415 2007-08-21 Jonathan Pobst <monkey@jpobst.com>
9417 * ToolStripItem.cs: When changing the item's text, invalidate before we resize
9418 ourselves. This ensures the entire old bounds are repainted, in case our new
9419 size is smaller. [Fixes bug #82518]
9421 2007-08-20 Everaldo Canuto <ecanuto@novell.com>
9423 * XplatUIX11.cs: Apply patch from #81588, it makes use of PointerMotionHintMask
9424 flag to make fast handle of mouse events, without this the mouse move is
9425 handled in some manner, whether it is a mouse move or not. Fixes #81588.
9427 2007-08-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9429 * ListView.cs: When doing layout calculations don't use a ref
9430 param to keep the current item; instead use its Index value (this
9431 is specially important when doing the layout with Groups
9432 and Items being sparse). Also don't take into account items added to
9433 the Group but not yet added to the main ListView.Items collection.
9435 2007-08-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9437 * ListViewGroupCollection.cs: Forgot to mimic an issue
9438 in the indexer (don't assign the ListView owner for new values).
9440 2007-08-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9442 * ListViewGroupCollection.cs: Make the string indexer use
9443 the int based indexer to re-use code, instead of duplicate the code.
9444 Also Redraw as needed and take into account null values.
9446 2007-08-20 Jonathan Pobst <monkey@jpobst.com>
9448 * StatusStrip.cs: Make sure the item's parent gets set in SetDisplayedItems.
9451 2007-08-20 Jonathan Pobst <monkey@jpobst.com>
9453 * ToolStrip.cs: Add some logic to un-focus controls in ToolStripControlHosts
9454 when other buttons are clicked or navigated to.
9456 2007-08-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
9458 * XplatUIX11.cs: Treat toolwindows as if they had no window manager, since
9459 it's XplatUIX11 that attaches them.
9461 2007-08-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
9463 * DataGridView.cs: If a column has been added, recreate the editing row.
9466 2007-08-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
9468 * TextControl.cs: Use Math.Max instead of Math.Min when deciding the length
9469 of the tag to draw. Makes disappearing text show up again.
9471 2007-08-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
9473 * StatusBar.cs: Take into account any icons when a panel has AutoSize =
9474 Contents. Fixes #82487.
9476 2007-08-19 Andreia Gaita <avidigal@novell.com>
9478 * Added HtmlElement.cs, HtmlElementCollection.cs,
9479 HtmlElementEventArgs.cs, HtmlElementEventHandler.cs
9481 2007-08-19 Andreia Gaita <avidigal@novell.com>
9483 * BindingSource.cs: Implement this, dispose and getenumerator.
9484 * DataGridViewRowCollection.cs: Move the InvalidOperationException
9485 out of AddInternal, throw it only on public Add calls. The
9486 UsingWebBrowser sample was blowing up with this when setting the
9487 DataSource after adding DataBindings, so it's likely that .net
9488 only throws this exception when Add is called directly.
9490 * ToolStripControlHost.cs: Return the hosted control's text
9491 property, and not the ToolStripItem one (it would always return
9494 * HtmlDocument.cs: Implement GetElementById and All
9495 * WebBrowser.cs: Remove exception on set_DocumentStream.
9497 2007-08-19 Everaldo Canuto <ecanuto@novell.com>
9499 * Form.cs: Fix the max and min value for opacity (0~1).
9501 2007-08-19 Everaldo Canuto <ecanuto@novell.com>
9504 * DataGridTableStyle.cs: Default header font is now null, on getter it
9505 returns datagrid font when is null. On setter permits null.
9508 - When ResetHeaderFont set header font to null.
9509 - On EndInit set grid_style.DataGrid.
9511 2007-08-19 Everaldo Canuto <ecanuto@novell.com>
9513 * TabControl.cs: Fix regression in default padding x.
9515 2007-08-19 Everaldo Canuto <ecanuto@novell.com>
9517 * TabControl.cs: Fix tab page text area removing padding. Fixes #82471.
9519 2007-08-19 Everaldo Canuto <ecanuto@novell.com>
9521 * TabControl.cs: Fix first tab drawing, when selected it must have x = 0
9522 not 2. Fixes #82229.
9524 2007-08-18 Everaldo Canuto <ecanuto@novell.com>
9526 * TabControl.cs: Fix tab size when image height is less than text height.
9527 Partially fixes #81837.
9529 2007-08-18 Everaldo Canuto <ecanuto@novell.com>
9531 * Form.cs: Add WS_EX_CONTROLPARENT to forms to make it selectable using
9532 "alt + tab". It works only for Win32, for X11 theres no way to remove window
9533 from taskbar and keep it on "alt_tab". Fixes #81722.
9535 2007-08-18 Everaldo Canuto <ecanuto@novell.com>
9537 * XplatUIX11.cs: Apply patch from Jurek Bartuszek to fix DrawReversibleFrame
9538 and DrawReversibleLine, also apply same behavior to FillReversibleRectangle.
9539 Fixes #80877 and #79418.
9541 2007-08-18 Everaldo Canuto <ecanuto@novell.com>
9543 * MenuAPI.cs: Fix popup menu position when the size is larger than distance
9544 between position and one of the screen borders. Fixes #82349.
9546 2007-08-18 Everaldo Canuto <ecanuto@novell.com>
9548 * MessageBox.cs: When there is no form that invoked the MessageBox, shows
9549 the MessageBox in the taskbar. Fixes #82457.
9551 2007-08-18 Everaldo Canuto <ecanuto@novell.com>
9553 * MessageBox.cs: Fix form size when icon is set and text height is bigger
9554 than icon. Fixes #82468.
9556 2007-08-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
9558 * ThemeWin32Classic.cs: A FixedToolWindow has border size 3.
9559 * InternalWindowManager.cs: Change HandleCalcSize to return a boolean value
9560 if handled or not. Implement WM_NCCALCSIZE for WParam == 0 as well.
9561 Refactored HandleNCCalcSize somewhat to avoid code duplication.
9562 * Form.cs: Add is_clientsize_set, set in set_ClientSize, used by
9563 FormBorderStyle to decide if we're calculating a new size from the
9564 client size or not. CreateParams: Don't fake tool windows, only the X11
9565 backend manages toolwindows manually.
9567 2007-08-17 Jonathan Pobst <monkey@jpobst.com>
9569 * Form.cs: Only reset is_visible if !IsDisposed to prevent an
9570 ObjectDisposedException.
9572 2007-08-17 Jonathan Pobst <monkey@jpobst.com>
9574 * Form.cs: Reset is_visible back to true after OnLoad. Setting this
9575 in OnLoad should not have any effect. [Fixes bug #82470]
9577 2007-08-17 Jonathan Pobst <monkey@jpobst.com>
9579 * ToolTip.cs: Add a hack to ToolTipWindow so it will still size and
9580 paint for controls that create their own ToolTipWindow instead of
9581 going through ToolTip.
9583 2007-08-17 Jonathan Pobst <monkey@jpobst.com>
9585 * ToolTip.cs: Make Hide internal instead of public to match MS API.
9587 2007-08-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9589 * ListViewGroupCollection.cs: Use generic List instead of an
9590 ArrayList, since this collection is 2.0 only.
9592 2007-08-17 Jeffrey Stedfast <fejj@novell.com>
9594 * ToolTip.cs (Hide): Made public to make the build work (should
9595 this not be public?).
9597 2007-08-17 Jonathan Pobst <monkey@jpobst.com>
9599 * ToolBar.cs, ToolStrip.cs, TreeView.cs: Use a ToolTip instead of a
9601 * ToolTip.cs: Add an internal Visible property to facilitate transition.
9603 2007-08-17 Jonathan Pobst <monkey@jpobst.com>
9605 * DrawToolTipEventArgs.cs, DrawToolTipEventHandler.cs, PopupEventArgs.cs,
9606 PopupEventHandler.cs: Make these internal for 1.1.
9607 * ThemeClearlooks.cs, ThemeWin32Classic.cs: Use TextRenderer, and modify to not
9608 use ToolTipWindow internals.
9609 * ToolTip.cs: Add 2.0 modal Show methods. Had to move a lot of stuff around to
9610 support this. A lot of stuff in the ToolTipWindow got moved to the ToolTip.
9612 2007-08-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
9614 * X11Dnd.cs: Add a null check.
9616 2007-08-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
9618 * X11Dnd.cs: MwfWindow: Try to load the control directly from the handle if
9619 nothing else succeeds. Fixes #82453.
9621 2007-08-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
9623 * XplatUIWin32.cs: PaintEventStart: validate the entire source client
9624 rectangle if we're painting to another window than the one the paint
9625 message was generated on. Simplify the code somewhat, which makes
9626 PaintEventEnd also simpler.
9628 2007-08-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
9630 * Control.cs: When changing parent of a form, let the form decide whether
9631 XplatUI.SetParent should be called or not.
9632 * Form.cs: ChangingParent: only call XplatUI.SetParent if we're not
9633 recreating the handle. If the new parent's handle isn't created, don't
9634 recreate our handle, just destroy it. CreateParams: Check if the
9635 parent's handle is created before fetching it.
9637 2007-08-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
9639 * Control.cs, Form.cs, InternalWindowManager.cs, MainMenu.cs, MdiClient.cs:
9640 Update calls to PaintEventStart/End to take a Message argument.
9641 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Update PaintEventStart/End to
9642 take a Message argument.
9643 * XplatUIWin32.cs, XplatUIX11.cs: Update PaintEventStart/End to take a
9644 Message argument, and handle the case where we don't paint to the window
9645 for which the paint message was generated.
9647 2007-08-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
9649 * XplatUIWin32.cs: Don't call Win32GetLastError directly, use
9650 Marshal.GetLastWin32Error. Plug nasty memory leak in
9651 PaintEventStart/End, we were creating a DC we weren't releasing.
9653 2007-08-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9655 * ListView.cs: Add Groups support in Details view. Also have a small
9656 method to do the layout of the group header. Don't use a separate
9657 method to do the groups calculation in Icons view, since our methods
9658 are now a little simpler.
9659 * ListViewGroup.cs: Use the more accurate `HeaderBounds' name than
9661 * ThemeWin32Classic.cs: Likewise.
9663 2007-08-16 Jonathan Pobst <monkey@jpobst.com>
9665 * Application.cs: Add FilterMessage method and rework our message loop
9668 2007-08-16 Jonathan Pobst <monkey@jpobst.com>
9670 * Application.cs: Add some methods and stub a few methods that are
9671 pretty much never used.
9673 2007-08-15 Jonathan Pobst <monkey@jpobst.com>
9675 * TreeNode.cs: Add some serialization methods.
9677 2007-08-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9679 * ListView.cs: In ListViewItemCollection have a
9680 'is_main_collection' field to not modify ListViewItem.ListView
9681 when using it as ListViewGroup.Items (and not ListView.Items)
9682 and also don't modify selection state (.Net behaviour).
9683 Instead, set group for items contained in a ListViewGroup.Items collection.
9684 * ListViewItem.cs: Simplify some code in Group setter.
9685 * ListViewGroup.cs: use the new .ctor to pass the current instance
9686 to the ItemsCollection.
9687 * ListViewGroup.cs: Set the ListView property for ListViewGroup
9688 instances when adding/removing. Also make Remove use RemoveAt, which
9689 should perform better.
9691 2007-08-14 Jonathan Pobst <monkey@jpobst.com>
9693 * Message.cs, TabControl.cs, TextBox.cs, TextBoxBase.cs: Hide some 2.0 API
9694 that crept into the 1.1 profile.
9696 2007-08-14 Jonathan Pobst <monkey@jpobst.com>
9698 * ToolBarButton.cs: Implement ImageKey.
9700 2007-08-14 Jonathan Pobst <monkey@jpobst.com>
9702 * ToolBar.cs: Implement ScaleControl/ScaleCore.
9704 2007-08-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
9706 * PictureBox.cs: OnAnimateImage/UpdateAnimateImage: Check if handle is still
9707 created, it might have gotten destroyed since we last checked. Fixes
9710 2007-08-11 Jonathan Pobst <monkey@jpobst.com>
9712 * ToolTip.cs: Remove mouse in control check from mouseleave handler so
9713 tooltip will hide when mouse is moved off the control.
9716 2007-08-11 Andreia Gaita <avidigal@novell.com>
9718 * WebBrowserBase.cs, WebBrowser.cs: add implementation
9719 using Mono.Mozilla for loading and navigating webcontrol
9721 The initial implementation was done on
9722 /trunk/mozembed/tests/browser , and copied here.
9724 2007-08-11 Gert Driesen <drieseng@users.sourceforge.net>
9726 * ThemeWin32Classic.cs: On 2.0 profile, use ForeColor and BackColor of
9727 ToolTipWindow for drawing the tooltip. Fixes bug #82408.
9729 2007-08-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
9731 * DataGridView.cs: Add support for an editing row. Fixes #82226.
9732 RowTemplateFull: throw an exception if a column doesn't have a template.
9733 * DataGridViewRowCollection.cs: AddInternal: if there are any editing rows,
9734 add the row just before it.
9735 * DataGridViewTextBoxCell.cs: Don't paint cells which are in edit mode as
9737 * DataGridViewSelectedRowCollection.cs: Don't return the editing row. Add a
9738 DataGridView field to be able to reach the grid's editing row.
9740 2007-08-10 Jonathan Pobst <monkey@jpobst.com>
9742 * ToolTip.cs: If the control's handle hasn't been created when it has a
9743 tooltip set on it, don't check to see if we need to show the tooltip. This
9744 check was causing the control's handle to be created.
9747 2007-08-10 Jonathan Pobst <monkey@jpobst.com>
9749 * TextBoxBase.cs: Fix SelectionLength when no text selected to match MS:
9751 Handle Not Created -1 0
9755 2007-08-10 Jonathan Pobst <monkey@jpobst.com>
9757 * ToolTip.cs: Hide the tooltip if the control is clicked to match MS behavior.
9760 2007-08-09 Jonathan Pobst <monkey@jpobst.com>
9762 * DrawToolTipEventArgs.cs: Don't dispose a brush we got from the respool.
9763 * ToolTip.cs: Implement some properties and owner draw.
9765 2007-08-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
9767 * DataGridView.cs: OnPaint: don't set scrollbar visibility to false then
9768 show them again, since setting visibility causes a paint, causing an
9769 endless loop (instead use a temporary and set it all when it's known if
9770 they should be shown or not). Fixes #79265.
9772 2007-08-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
9774 * DataGridView.cs: Only do a full column/row selection if a header was
9775 clicked and we're in Column/RowHeader selection mode. If shift and ctrl
9776 isn't pressed, deselect everything before selecting something.
9778 2007-08-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
9780 * DataGridView.cs: Fix SelectedRows and SelectedColumns to match MS
9781 behaviour according to bug #81075 - they are returned in the order they
9782 are selected. Fix HitTest to check if the point is within any of the
9783 headers. Allow for row/column selection when in ColumnHeader or
9784 RowHeader selection mode. Add SetSelected[Column|Row]CoreInternal for
9785 the row and column to call when their selected state changes, and
9786 updated selected_[rows|columns] whenever SetSelected* is called.
9787 * DataGridViewBand.cs: Initialize isRow correctly. Call
9788 SetSelected[Row|Column]CoreInternal when the selected state changes, and
9789 add a SelectedInternal to avoid StackOverflows.
9790 * DataGridViewColumn.cs, DataGridViewRow.cs: If DGV is ReadOnly, we're also
9791 ReadOnly no matter what.
9792 * DataGridViewSelectedColumnCollection.cs,
9793 DataGridViewSelectedRowCollection.cs: Add an InternalAddRange that adds
9794 the items in reverse order (just as MS does...)
9796 2007-08-09 Jonathan Pobst <monkey@jpobst.com>
9798 * Application.cs: Only release menustrips if Alt (MenuKey) is pressed by
9799 itself, not part of a mnemonic. [Fixes bug #82378]
9801 2007-08-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
9803 * DataGridView.cs: BeginEdit: don't allow editing of readonly cells.
9804 * DataGridViewCell.cs: Implement ReadOnly better: the cell is ReadOnly if
9805 the DGV, the column, the row, or the cell itself is readonly.
9807 2007-08-09 Gert Driesen <drieseng@users.sourceforge.net>
9809 * ThemeNice.cs: Use XplatUI.RunningOnUnix instead of checking
9811 * FileDialog.cs: Same.
9812 * TextRendered.cs: Same.
9813 * FolderBrowserDialog.cs: Same.
9814 * TextBoxBase.cs: Same.
9815 * Application.cs: Same.
9817 * ThemeClearLooks.cs: Same.
9819 2007-08-09 Gert Driesen <drieseng@users.sourceforge.net>
9821 * XplatUI.cs: Added RunningOnUnix property to be used by controls
9822 instead of duplicating these checks everywhere.
9823 * FileDialog.cs: Use case-insensitive comparison for populating the
9824 DirComboBox when not running on unix. Fixes bug #82385.
9825 * OpenFileDialog.cs: to match MS, change label of DirComboBox to
9828 2007-08-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
9830 * DataGridView.cs: SelectedRows: we need to check if selectionMode is
9831 FullRowSelect (not FullColumnSelect). Fixes #81075. Implemented
9832 BeginEdit, EndEdit, SetSelected<Cell|Row|Column>Core. Implemented row,
9833 cell and column selection with ctrl and shift pressed. Call the correct
9834 BeginEdit/EndEdit whenever we start/end editing. Move painting code to
9835 the corresponding virtual method (PaintBackground to paint background,
9837 * DataGridViewCell.cs: Implement Selected correctly, we're selected if
9838 either the column, row or the cell itself is selected.
9839 * DataGridViewRowCollection.cs: Use DGV.OnRowsAddedInternal instead of
9841 * DataGridViewRow.cs: Moved some of the painting code from DataGridView
9842 here. When the row is selected, don't select all cells. Each cell now
9843 queries the row to see if the row is selected.
9845 2007-08-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
9847 * DataGridViewColumn.cs: Throw if the SortMode conflicts with DataGridView's
9850 2007-08-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9852 * ListView.cs: In ListViewItemsCollection check that owner is
9853 not null before trying to access it (this happens quite often
9854 using Groups). Also don't duplicate calls by calling CollectionChanged
9857 2007-08-08 Jonathan Pobst <monkey@jpobst.com>
9859 * ToolStrip.cs: Record if we were activated by mouse or keyboard. Redraw
9860 when we are dismissed to clear keyboard mnemonics.
9861 * MenuStrip.cs, ToolStripDropDown.cs, ToolStripItem.cs,
9862 ToolStripMenuItem.cs: Record if we were activated by mouse or keyboard.
9863 * ToolStripItemTextRenderEventArgs.cs: Draw mnemonic underlines if menu
9864 was activated by keyboard or the OS tells us to always draw them.
9865 * ToolStripManager.cs: Setup storage for activated by mouse or keyboard.
9866 [Fixes bugs #82376, #82377]
9868 2007-08-08 Jonathan Pobst <monkey@jpobst.com>
9870 * Control.cs: If no one accepts a mnemonic, let the MenuStrip have a
9871 shot at having it because Alt was pressed.
9872 * MenuStrip.cs: When handling Alt, don't select a SystemMenuItem, select
9873 the first real menu item.
9874 * ToolStrip.cs: Don't crash when looking for a ToolStripItem to handle
9875 a mnemonic if Text is null.
9878 2007-08-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9880 * ListView.cs: In ListViewItemCollection.AddItem, don't do a linear
9881 search do check whether the item is already contained in the
9882 collection or not; instead check if the owner of the item is the same
9883 as ours. Also, remove a redundant check in the same method.
9885 2007-08-08 Jonathan Pobst <monkey@jpobst.com>
9887 * Control.cs: Allow the clip region to be set back to null.
9888 * XplatUIWin32.cs: If we are sent a null clip region, use IntPtr.Zero.
9889 [Fixes button still showing up in bug #82370 when Show Through is turned off]
9891 2007-08-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
9893 * GridEntry.cs: Add a null check.
9894 * PropertyGrid.cs: When checking for existing grid entries, ignore category
9895 entries. Fixes #82297.
9897 2007-08-07 Jonathan Pobst <monkey@jpobst.com>
9899 * OwnerDrawPropertyBag.cs: Make the serialization constructor protected
9902 2007-08-07 Jonathan Pobst <monkey@jpobst.com>
9904 * ListBox.cs: Implement ScaleControl.
9906 2007-08-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
9908 * Form.cs: Add a few ActiveMenu null checks. ActiveMenu might be null if we
9910 * MdiWindowManager.cs: Don't create a maximized menu if the child or it's
9911 parent has a menu strip. Fixes #81689.
9913 2007-08-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
9915 * ToolTip.cs: We don't get mouse events on all platforms in the exact same
9916 moments, so apply some fuzzy logic to determine if the mouse is still
9917 inside a control or not. Fixes #82288 (for the third time).
9919 2007-08-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
9921 * Control.cs: CreateControl: create implicit children as well. Fixes #82344.
9922 Don't create the child if it has been disposed already (may happen if
9923 the user closes the form the Load event).
9925 2007-08-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
9927 * ToolTip.cs: If ReshowDelay is 0, show the tooltip immediately. Fixes
9930 2007-08-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
9932 * Control.cs: Add a null check in OnParentBindingContextChanged. The parent
9933 might call us after we've been destroyed, in which case our own private
9934 parent field is null. Fixes #82326.
9936 2007-08-06 Jonathan Pobst <monkey@jpobst.com>
9938 * ToolStripDropDown.cs: Fix a failing test on X11 by adding a null
9939 check for setting the dropdown's owner.
9941 2007-08-06 Jonathan Pobst <monkey@jpobst.com>
9943 * MdiClient.cs: Fix some failing tests on X11 by adding a null check
9944 before removing system menu items.
9946 2007-08-02 Jonathan Pobst <monkey@jpobst.com>
9948 * MdiClient.cs, MdiWindowManager.cs: Support 2.0 Mdi MenuStrip
9950 * MdiControlStrip.cs: Added. These are the menu items used in mdi
9952 * ToolStrip.cs: Add a null check to mnemonics.
9953 * ToolStripDropDownMenu.cs: When using a SystemMenuItem, there is
9955 [Fixes most of bug #81689]
9957 2007-08-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
9959 * PropertyGrid.cs: Add a null-check. Fixes #82289/SVGPad.
9961 2007-08-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
9963 Use InitialDelay if ReshowDelay is zero. Fixes #82288.
9965 2007-08-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
9967 * DataGridViewCell.cs: EditType: returns
9968 DataGridViewTextBoxEditingControl always.
9970 2007-08-01 Jonathan Pobst <monkey@jpobst.com>
9972 * TextRenderer.cs: Remove the LineLimit string format flag from the
9973 DrawString fallback method so that things like buttons that aren't
9974 tall enough to draw a full line will still draw part of the text.
9975 [Fixes part of bug #82272]
9977 2007-08-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
9979 * DataGridView.cs: Implemented AutoResizeColumn(s).
9980 * DataGridViewCellStyle.cs: Added SetAlignment, fills in a StringFormat
9981 according to the Alignment.
9982 * DataGridViewColumnHeaderCell.cs, DataGridViewTextBoxCell.cs:
9983 Implement alignment and padding when painting.
9984 * DataGridViewRow.cs: SetValues: Don't create a cell if it already
9986 * DataGridViewCell.cs: Implement BorderWidths in the most primitive
9988 * DataGridViewColumnCollection.cs: Raise OnColumnAdded on the DGV when
9991 2007-07-31 Jonathan Pobst <monkey@jpobst.com>
9993 * TextBoxBase.cs: Use Control.ExplicitBounds instead of explicit_bounds,
9996 2007-07-31 Jonathan Pobst <monkey@jpobst.com>
9998 * ToolStrip.cs: Stub out drag and drop methods, fix some corcompare stuff,
9999 hide GetPreferredSize from public API.
10000 * ToolStripDropDown.cs: Override AllowItemReorder, fix AccessibleObject.
10001 * ToolStripItem.cs: Stub out drag and drop methods and events.
10002 * ToolStripManager.cs: Stub out Save/LoadSettings.
10003 * ToolStripOverflow.cs: Use renamed ToolStrip.GetPreferredSize.
10004 * ToolStripPanel.cs: Fix corcompare error.
10005 * ToolStripPanelRow.cs: Use renamed ToolStrip.GetPreferredSize.
10006 * ToolStripSplitButton.cs: Fix AccessibleObject stuff.
10007 * ToolStripSplitStackLayout.cs: Use renamed ToolStrip.GetPreferredSize.
10009 2007-07-31 Jonathan Pobst <monkey@jpobst.com>
10011 * TextBoxBase.cs: In our new GetPreferredSizeCore, return the explicit
10012 bounds height instead of PreferredHeight. Puts things back the way
10013 they were for height while still fixing the width. Fixes broken unit
10016 2007-07-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
10018 * Binding.cs: Implement 2.0 constructors and add a null check.
10020 2007-07-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
10022 * DataGridViewRowCollection.cs: Allow a null DGV in the constructor,
10023 and fix row index (off by one).
10025 2007-07-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
10027 * PropertyGridView.cs: Remove debug output.
10029 2007-07-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
10031 * Control.cs: We need to reset the is_created flags when the handle is
10032 destroyed. Fixes #82187.
10033 * XplatUIWin32.cs: In GetWindowRect don't offset screen coordinates to
10034 client coordinates if the window doesn't have a parent.
10035 Win32GetParent returns the parent or the owner, and for top-level
10036 windows with no parent (but with an owner) we were calculating the
10037 location from the location of the owner.
10038 * Form.cs: Remove incorrect fix for #82187. Don't raise OnLoad if the
10039 form has been disposed.
10040 * MdiClient.cs: Add a null-check.
10042 2007-07-30 Jonathan Pobst <monkey@jpobst.com>
10044 * TextBoxBase.cs: TextBoxBase reports itself at AutoSize, but doesn't
10045 actually do auto-sizing. Override the internal GetPreferredSizeCore
10046 so we can provide an implementation that returns the current width
10047 and preferred height. Allows anchor = right to work with TextBox 2.0.
10050 2007-07-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10052 * ListView.cs: Add support for navigating items in Groups mode, by
10053 creating a big matrix containing all rows and cols of all groups. When
10054 are in other mode than Details, pressing Up should have a similar
10055 behaviour as that one of Down (moving to the next available column if
10056 current one doesn't have an item in the requested row). Also, don't
10057 proceed to use groups if ShowGroups is false.
10058 * ListViewGroup.cs: Add an internal int field to store the starting
10059 row of the group (used by the big matrix used for navigating the
10061 * ThemeWin32Classic.cs: Don't draw headers if ListView.ShowGroups is
10064 2007-07-30 Jonathan Pobst <monkey@jpobst.com>
10066 * ToolStripDropDown.cs: When we do Show, start with the
10067 DefaultDropDownDirection, but if our popup menu is going to off-screen,
10068 modify the direction to keep it on screen. [Fixes bug #82210]
10070 2007-07-29 Gert Driesen <drieseng@users.sourceforge.net>
10072 * FileDialog.cs: Accept any FilterIndex value, and store it
10073 unmodified. When FilterIndex is less than 1, or greater than number
10074 of filters, then default to first filter. Only add filter extension to
10075 file if user did not specifiy an extension. When type of dialog is
10076 OpenFileDialog and DefaultExt is set, then only use filter extension
10077 if: CheckFileExists is true and no file wih the default extension
10078 exists, or CheckFileExists is false, and user specified file does not
10079 exist. When CheckFileExists is true, then add first extension of
10080 selected filter that matches existing file. Perform checks for
10081 existing file, overwrite and create after extension has been added to
10082 file name. When CheckFileExists is true and type is SaveFileDialog,
10083 then only consider first filter extension if DefaultExt is set.
10084 When CheckFileExists is true, then ignore DefaultExt if file with that
10085 extension does not exist. Also perform check for existing file when
10086 type is SaveFileDialog. Changed some field to constants.
10088 2007-07-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10090 * ListView.cs: Take into account the region used by header
10091 control when doing the vertical scroll (this way we invalidate
10092 the precise area, and don't get any dirty one).
10094 2007-07-27 Everaldo Canuto <ecanuto@novell.com>
10096 * FileDialog.cs: Check for valid filterIndex on button open/save.
10099 2007-07-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10101 * ListView.cs: Update some layout calculations in details view
10102 and clean the code in a pair of assignations.
10104 2007-07-26 Jonathan Pobst <monkey@jpobst.com>
10106 * ComboBox.cs, ContainerControl.cs, DataGrid.cs, FontDialog.cs, Label.cs,
10107 LinkLabel.cs, ListBox.cs, ListView.cs, ListViewItem.cs, MessageBox.cs,
10108 MonthCalender.cs, StatusBar.cs, ThemeClearlooks.cs, ThemeWin32Class.cs,
10109 ToolBar.cs, TreeView.cs: First pass at using thread-safe string measuring.
10111 2007-07-26 Jonathan Pobst <monkey@jpobst.com>
10113 * TextRenderer.cs: Use [ThreadStatic] instead of locks to improve
10114 performance of thread-safe Graphic methods. (Thanks rolf!)
10116 2007-07-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10118 * ListView.cs: When doing the layout calculations, don't calculate
10119 scroll bars before handle is created. This is unnecessary and also
10120 calculating them before handle creation item causes a number of random
10121 bugs (which begin to appear after Chris' big patch for handle creation
10124 2007-07-26 Jonathan Pobst <monkey@jpobst.com>
10126 * TextRenderer.cs: Create thread-safe versions of Graphics.MeasureString
10127 for things that don't have a Graphics object. Currently, things just use
10128 the static Hwnd.bmp_g which is not thread safe.
10130 2007-07-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
10132 * Form.cs: ShowDialog: don't destroy handles if the dialog is a common
10133 dialog. Fixes #82187.
10135 2007-07-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
10137 * DataGridViewElement.cs: Initialize state.
10138 * DataGridView.cs: Forward a few Mouse events to cells. Add
10139 GetRowInternal and GetCellInternal that doesn't unshare rows.
10140 Implement GetCellDisplayRectangle. HitTest: if the row is shared,
10141 don't use the index, but look it up. Add
10142 DataGridViewControlCollection.RemoveInternal to remove controls
10143 that Remove won't remove (scrollbars, edit control).
10144 * DataGridViewColumn.cs: Initialize State correctly.
10145 * DataGridViewColumnHeaderCell.cs, DataGridViewComboBoxCell.cs,
10146 DataGridViewHeaderCell.cs, DataGridViewRowHeaderCell.cs: Started
10148 * DataGridViewRowCollection.cs: Implemented shared rows.
10149 * DataGridViewRow.cs: Throw exceptions as MS do.
10150 * DataGridViewCell.cs: A few properties are implemented by a
10151 Get<Property> method, so move implementation there and remove the
10152 NIEX in the method. Add a bunch of OnXInternal that DataGridView
10153 calls when necessary.
10154 * DataGridViewComboBoxEditingControl.cs: Remove a few NIEX'es that just
10155 complicates matters.
10156 * DataGridViewCellCollection.cs: Add a GetCellInternal that doesn't
10159 2007-07-25 Jonathan Pobst <monkey@jpobst.com>
10161 * UpDownBase.cs: We cannot override SetBoundsCore for 2.0, which was relayout-ing
10162 the children controls. Instead, we will just set up the proper docking for the
10163 children controls so we don't have to worry about it. [Fixes bug #82188]
10165 2007-07-25 Jonathan Pobst <monkey@jpobst.com>
10167 * TreeView.cs, NodeLabelEditEventArgs.cs, LabelEditTextBox.cs: Support edit
10168 canceling and correct Before/AfterLabelEdit properties as layed out in bug
10169 81847. [Fixes bug #81847]
10171 2007-07-25 Jonathan Pobst <monkey@jpobst.com>
10173 * Label.cs: If AutoSize = true and a width or height is set, ignore it and
10174 redo the autosize. VS2005 defaults to setting the AutoSize, and then setting
10175 an explicit size based on the design-time size of the text. Since our fonts
10176 may not match this explicit size, we tend to cut off the ends of people's labels.
10178 2007-07-24 Jonathan Pobst <monkey@jpobst.com>
10180 * Menu.cs: Add some missing methods to MenuItemCollection.
10182 2007-07-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
10184 * DataGridView.cs: Added RowTemplateFull, creates a row from the templates in the columns.
10185 * DataGridViewBand.cs: DefaultHeaderCellType: initialize correctly. Resizable: if not set, check DGV.
10186 * DataGridViewColumn.cs: InheritedAutoSizeMode: if not set, check DGV. Resizable: delegate to base class. ToolTipText: Never return null. Initialize a few other properties correctly.
10187 * DataGridViewColumnCollection.cs: Add: Default column is a TextBoxColumn.
10188 * DataGridViewComboBoxCell.cs: Started implementing this, lots left still.
10189 * DataGridViewElement.cs: State defaults to Visible.
10190 * DataGridViewRowCollection.cs: Add: creates the new row based on a template.
10191 * DataGridViewTextBoxColumn.cs: SortMode: delegate to base class, but initialize to Automatic. ToString: implement correctly.
10193 2007-07-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
10195 * Control.cs: Minor 1.1 corcompare fix.
10197 2007-07-23 Jonathan Pobst <monkey@jpobst.com>
10199 * LinkLabel.cs, PrintPreviewDialog.cs, TabPage.cs, TextBox.cs,
10200 TextBoxBase.cs, ToolBar.cs: 2.0 corcompare work.
10202 2007-07-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
10204 * DataGridViewLinkColumn.cs, DataGridViewRowCollection.cs,
10205 DataGridViewImageColumn.cs, DataGridViewSelectedCellCollection.cs,
10206 DataGridViewComboBoxCell.cs, DataGridViewLinkCell.cs,
10207 DataGridViewSelectedColumnCollection.cs,
10208 DataGridViewSelectedRowCollection.cs: Corcompare work.
10210 2007-07-23 Jonathan Pobst <monkey@jpobst.com>
10212 * PrintDialog.cs: Stub UseEXDialog. I chose to stub this because
10213 it is autoset by VS2005 designer and the effect is barely noticeable.
10215 2007-07-23 Jonathan Pobst <monkey@jpobst.com>
10217 * TreeView.cs: Implement HitTest.
10219 2007-07-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
10221 * DataGridViewTextBoxCell.cs: Use DGV.EditControlInternal instead of
10222 manually adding and removing the control from the Controls
10224 * DataGridView.cs: Implement DataGridViewControlCollection. Add an
10225 EditingControlInternal property that tracks the editing control.
10226 Always keeping the scrollbars in the Controls collection, as MS
10227 testing confirms is the right behaviour.
10229 2007-07-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
10231 * ScrollableControl.cs: Fix implementation of AutoScrollPosition
10232 according to MSDN and new test.
10234 2007-07-20 Jonathan Pobst <monkey@jpobst.com>
10236 * TreeNode.cs: Implement ToolTipText.
10237 * TreeView.cs: Implement tooltips, NodeMouse* events.
10239 2007-07-20 Jonathan Pobst <monkey@jpobst.com>
10241 * TreeView.cs: Implement OnNodeMouseClick and OnNodeMouseDoubleClick.
10243 2007-07-20 Jonathan Pobst <monkey@jpobst.com>
10245 * TreeNode.cs: Implement ContextMenu, ContextMenuStrip, and Level.
10246 * TreeView.cs: Use the node's contextmenu[strip] if applicable.
10248 2007-07-20 Ivan N. Zlatev <contact@i-nz.net>
10250 * Control.cs, Form.cs, ContainerControl.cs,
10251 ScrollableControl.cs, ButtonBase.cs: Added ShouldSerialize
10252 for misc properties.
10254 2007-07-20 Jonathan Pobst <monkey@jpobst.com>
10256 * TreeNode.cs: Implement StateImageIndex and StateImageKey.
10257 * TreeView.cs: Implement StateImageList.
10259 2007-07-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
10261 * Form.cs: Don't check if the current form is the active form before
10262 activating it. Fixes #81904.
10264 2007-07-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
10266 * Form.cs: Don't check if the current form is the active form before
10267 activating it. Fixes #81904.
10269 2007-07-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
10271 * TreeView.cs: Apply patch from Tyron (tmm@aon.at). Fixes #81847.
10273 2007-07-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
10275 * Form.cs: Don't try to position the form after loading if the form was
10276 disposed. Fixes #81969.
10278 2007-07-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
10280 * PropertyGrid.cs, PropertyGridView.cs: Implemented 2.0 methods and
10281 properties. Had to change ToolBar into ToolStrip, which required a
10284 2007-07-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
10286 * PropertyGrid.cs: PropertyToolBar: Redraw the entire toolbar when it's
10287 resized, fixes part of #79829 (vertical lines in toolbar).
10288 PropertyGrid: Refactored Populate* to something that's easier to
10289 follow at least for me, as well as splitting it up into several new
10290 methods, required to update only subitems when something has
10291 changed by a popup editor or listbox. Don't use events to check
10292 when any values are changed, since the events are unreliable (we're
10293 changing the objects the events are registered with, and if the
10294 event handling requires the objects to be immutable (objects stored
10295 in hashtables for instance), the events will never be raised).
10296 * PropertyGridView.cs: Call PropertyGrid.PropertyValueChangedInternal
10297 everytime we change a value, since events are unreliable.
10298 DropDownButtonClicked: For the same reason don't compare objects to
10299 check if it has changed or not, it would require all objects to
10300 derive Equals. Fix dialog location on windows, MS is doing weird
10301 things when creating parented forms.
10302 * GridEntry.cs: Add a SelectedObject setter.
10304 2007-07-19 Jonathan Pobst <monkey@jpobst.com>
10306 * TreeNode.cs: Add some corcompare attributes.
10307 * TreeNodeCollection.cs: Implement 2.0 stuffs.
10308 * TreeView.cs: Implement some 2.0 stuffs.
10310 2007-07-18 Andreia Gaita <avidigal@novell.com>
10312 * WebBrowser.cs, WebBrowserBase.cs: add some more MonoTODOs now
10315 2007-07-19 Jonathan Pobst <monkey@jpobst.com>
10317 * ListBox.cs: Implement custom tab offsets.
10319 2007-07-18 Jonathan Pobst <monkey@jpobst.com>
10321 * ToolStripContentPanel.cs: Support System renderer.
10322 * ToolStripControlHost.cs: Set RightToLeft to default to No.
10324 2007-07-18 Jonathan Pobst <monkey@jpobst.com>
10326 * ScrollableControl.cs: Don't mess up the user's explicit bounds.
10328 2007-07-18 Jonathan Pobst <monkey@jpobst.com>
10330 * CheckBox.cs: Chain TextAlign to base implementation instead of
10331 maintaining another one.
10333 2007-07-18 Jonathan Pobst <monkey@jpobst.com>
10335 * ButtonBase.cs: Fix an incorrect string constant.
10337 2007-07-18 Jonathan Pobst <monkey@jpobst.com>
10339 * TextRenderer.cs: Use the static Graphics context in Hwnd instead
10340 of creating one for measuring strings.
10342 2007-07-18 Jonathan Pobst <monkey@jpobst.com>
10344 * ToolStrip.cs, ToolStripDropDown.cs, ToolStripDropDownMenu.cs:
10345 Implement MaxItemSize.
10347 2007-07-17 Jonathan Pobst <monkey@jpobst.com>
10349 * Control.cs: Remove per-control 1x1 Bitmap and Graphics context used
10350 for DeviceContext. Instead, use the static one available in Hwnd.
10351 Informal tests show this saves about 500k on formtest.exe.
10353 2007-07-17 Jonathan Pobst <monkey@jpobst.com>
10355 * ContainerControl.cs: Implement 2.0 AutoScaling.
10357 2007-07-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
10359 * ComboBox.cs: Work around bug #82120 (bug in mcs).
10361 2007-07-16 Jonathan Pobst <monkey@jpobst.com>
10363 * ThemeWin32Classic.cs: Allow a Flat button to be Focused and Entered.
10364 Darken the focus color.
10366 2007-07-16 Jonathan Pobst <monkey@jpobst.com>
10368 * ListBox.cs: When measuring items, if it's a CheckedListBox, add room
10370 * ThemeWin32Classic.cs: Make the checkbox bigger in a CheckedListBox and use
10371 X, Y instead of a rect for drawing text.
10372 - For ControlPaint.DrawCheckBox, center the check a little better when the
10373 checkbox is odd width. When drawing a flat checkbox, use a white background
10374 when state != inactive.
10375 [Fixes bugs #82097, 82100]
10377 2007-07-16 Gert Driesen <drieseng@users.sourceforge.net>
10379 * ListControl.cs: When changing CurrencyManager, disconnect event
10380 handlers from previous one. Fixes bug #81771. Code formatting.
10382 2007-07-15 Andreia Gaita <avidigal@novell.com>
10384 * PrintPreviewControl.cs: Remove extraneous Invalidate calls. Separate
10385 full preview invalidation from layout invalidation, and only invalidate
10386 the layout when setting zoom or other properties. Invalidation should
10387 always be done even when resetting properties with the same values as
10388 what is there. Fixes #81744 and #79830.
10390 2007-07-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10392 * ListView.cs: Implement initial support for Groups. Split some of the
10393 LayoutIcons code to render a partial list of the items (needed by
10394 items contained in ListViewGroup instances). Let the
10395 ListViewItemsCollection.ListView property be modifiable (needed when
10396 using Groups, too).
10397 * ListViewGroup.cs: Use a Bounds property rather than a Location
10398 one. Also invalidate the bounds when they get changed.
10399 * ThemeWin32Classic.cs: When drawing items, also draw the group header
10400 if ListView.Groups.Count is bigger than 0. Add a DrawListViewGroupHeader
10403 2007-07-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10405 * ListView.cs: When space gets pressed and CheckBoxes is true,
10406 don't invoke the Begin and EndUpdate methods. We are generating
10407 a redraw of the entire control without need to do so.
10409 2007-07-13 William Holmes <billholmes54@gmail.com>
10411 * Control.cs: Changing logic in FindFlatForward and
10412 FindFlatBackward to handle multiple Controls with
10414 This fixes bug 81687.
10416 2007-07-13 Jonathan Pobst <monkey@jpobst.com>
10418 * OSFeature.cs: Enable IsPresent.
10420 2007-07-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
10422 * Control.cs: Don't do anything in WmShowWindow if the control has been
10423 disposed. We can get WM_SHOWWINDOW after a control is disposed: a
10424 control is created, put on a form, the control is disposed (the
10425 form is never shown), and then we get a MapNotify, triggering a
10427 * Form.cs: Exclude the current form when sending Deactivate to all
10429 * NativeWindow.cs: Set WindowCreating to null as soon as possible,
10430 there was a race condition because assigning the handle raises
10431 events, we can get more messages, therefore trying to assign the
10432 handle again, which would fail if any of those event handlers
10433 closed/disposed the control.
10435 2007-07-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
10437 * Form.cs: Make the fix for #80775 windows-only (fixes #81957).
10439 2007-07-12 Jonathan Pobst <monkey@jpobst.com>
10441 * SystemInformation.cs, Theme.cs, XplatUI.cs, XplatUIDriver.cs,
10442 XplatUIWin32.cs: Implement SystemInformation 2.0 properties.
10444 2007-07-12 Rolf Bjarne Kvinge <RKvinge@novell.com>
10446 * DateTimePicker.cs: If there's no part format specifier, return an
10449 2007-07-12 Jonathan Pobst <monkey@jpobst.com>
10451 * FlatButtonAppearance.cs: Throw NotSupportedException for a
10452 Transparent BorderColor.
10454 2007-07-12 Rolf Bjarne Kvinge <RKvinge@novell.com>
10456 * DataGridView.cs, TextControl.cs, ProgressBar.cs, PrintDialog.cs,
10457 MessageBox.cs, ButtonBase.cs, PageSetupDialog.cs, NumericUpDown.cs,
10458 X11Dnd.cs, Binding.cs, DataGrid.cs, AxHost.cs,
10459 LinkLabelLinkClickedEventArgs.cs, TextRenderer.cs, Label.cs,
10460 LinkLabel.cs, TreeNode.cs, BindingSource.cs, TabPage.cs,
10461 TextBoxBase.cs, BindingNavigator.cs, Application.cs,
10462 ToolStripPanel.cs, TabControl.cs, ThemeClearlooks.cs, TreeView.cs:
10464 * X11Structs.cs: Remove warnings, add ToString implementations.
10466 2007-07-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
10468 * XplatUIX11.cs: Translate min/max size according to the actual min/max
10469 size, and not the current size. Fixes #81798.
10471 2007-07-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
10473 * XplatUIX11.cs: Fix #80822 again (DefWndProc can be reached before
10474 XplatUI.CreateWindow returns, in which case the hwnd isn't assigned
10475 to the control yet).
10477 2007-07-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
10479 * PropertyGridTextBox.cs: Add a method that sends any forwarded
10480 mousedowns to the contained textbox.
10481 * X11Structs.cs: More ToString implementation.
10482 * PropertyGridView.cs: Forward any mousedowns to the textbox, fixes
10485 2007-07-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
10487 * PropertyGridView.cs: Add a null-check, fixes a few tests.
10489 2007-07-10 Jonathan Pobst <monkey@jpobst.com>
10491 * TableLayoutPanelCellPosition.cs: TypeConverter.
10493 2007-07-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
10497 * PropertyGridTextBox.cs: Propagate any color changes to all contained
10499 * PropertyGridView.cs: A few color fixes.
10501 2007-07-10 Jackson Harper <jackson@ximian.com>
10503 * TextControl.cs: Remove some old unused text formatting stuff.
10505 2007-07-10 Jackson Harper <jackson@ximian.com>
10507 * TreeView.cs: Update full row select invalidation to match the
10508 newer DrawSelection... method.
10509 - Make sure to invalidate the entire width when selecting a new
10510 node, if we have full row selection enabled.
10512 2007-07-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
10514 * PropertyGridView.cs: Fix for #81800, makes text show up on initial
10515 display of properties again.
10517 2007-07-10 Jonathan Pobst <monkey@jpobst.com>
10519 * ListBox.cs: Add IntegerCollection and Add, Clear, Remove
10520 to existing collections.
10522 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
10524 * AccessibleObject.cs, RadioButton.cs: Fix some base classes
10525 that changed between 1.1 and 2.0.
10527 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
10529 * PowerStatus.cs: Added. This is just a data class, it is filled
10530 in by SystemInformation.
10532 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
10534 * Message.cs: Add op_Equality and op_Inequality.
10536 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
10538 * MenuStrip.cs: Finish corcompare work.
10540 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
10542 * LinkArea.cs: Add op_Equality and op_Inequality.
10544 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
10546 * Application.cs: Add MessageLoopCallback delegate.
10548 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
10550 * ListBox.cs: First set of 2.0 stuffs.
10552 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
10554 * Control.cs: Make an internal Height property we can override
10555 without messing up the public API.
10556 * ListBox.cs: Override HeightInternal to always return the size
10557 the user set. [Fixes bug #80466]
10559 2007-07-08 Jonathan Pobst <monkey@jpobst.com>
10561 * TableLayoutPanel.cs: Add a null check so we don't NRE trying to
10562 paint cell borders if we haven't calculated where they go yet.
10563 [Fixes bugs #82040 and #82041]
10565 2007-07-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10567 * ListView.cs: In Details view, set the location of item_control
10568 in the (0,0) position (and the header_control is thus on the
10569 item_control). This way the Bounds of the Items are relative to the
10570 ListView control (before this, they had a Bounds value without the
10571 header_control offset, which wasn't matching .Net). Fixes #82004.
10573 2007-07-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10575 * ListControl.cs: When DataSource is set to null, pass an empty
10576 array of object to SetItemsCore. This is done to clean the items
10577 in the ListContol children. Fixes #81788.
10579 2007-07-06 Jonathan Pobst <monkey@jpobst.com>
10581 * ListControl.cs: Add 2.0 stuffs.
10583 2007-07-06 Jonathan Pobst <monkey@jpobst.com>
10585 * Label.cs: Finish up 2.0 stuffs. Replace calls to Refresh with Invalidate,
10586 Refresh is overkill for just about every repaint request.
10588 2007-07-06 Jonathan Pobst <monkey@jpobst.com>
10590 * ToolStripItem.cs: TextDirection getter handles looking up Inherit for us,
10591 so remove my custom Get method and fix the property getter.
10593 2007-07-06 Jonathan Pobst <monkey@jpobst.com>
10595 * Label.cs: DefaultMargin for 2.0.
10597 2007-07-06 Jonathan Pobst <monkey@jpobst.com>
10599 * ComboBox.cs: Override IsInputCharInternal and return true. Fixes
10600 reported issue where other controls with mnemonics would steal strokes
10601 from a selected ComboBox.
10603 2007-07-06 Jonathan Pobst <monkey@jpobst.com>
10605 * ScrollOrientation.cs: Make internal for 1.1.
10606 * ScrollEventArgs.cs: Add 2.0 stuffs.
10608 2007-07-05 Jonathan Pobst <monkey@jpobst.com>
10610 * ToolStrip.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
10611 ToolStripItem.cs, ToolStripItem.cs, ToolStripItemTextRenderEventArgs.cs,
10612 ToolStripRenderer.cs, ToolStripSeparator.cs: Implement TextDirection.
10614 2007-07-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10616 * ListViewItem.cs: Implement the small 2.0 GetSubItemAt method.
10618 2007-07-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10620 * ListView.cs: Implement the so-incredibly broken 2.0
10621 VirtualItemsSelectionRangeChanged event.
10623 2007-07-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10625 * ListView.cs: When enter is pressed and selection is non empty,
10626 an OnItemActivate event must be fired.
10628 2007-07-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10630 * ListView.cs: Store the FocusedItem information as an
10631 int instead of a ListViewItem (needed by VirtualMode).
10632 Update the calls to SetFocusedItem to pass an index instead of
10634 * ListViewItem.cs: Likewise. Also, in VirtualMode retrieve
10635 the Focused state from the owner ListView.
10637 2007-07-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10639 * ListView.cs: Set ListView.focused_item from ListViewItem.Focused
10640 property. Also, invalidate previous focused item in the mentioned
10641 property (match .Net).
10643 2007-07-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10645 * ListView.cs: Implement 2.0 FocusedItem property setter.
10647 2007-07-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10649 * ListView.cs: Implement 2.0 TopItem property setter.
10651 2007-07-03 Jonathan Pobst <monkey@jpobst.com>
10653 * StatusStrip.cs: The default renderer is System.
10654 * ToolStrip.cs, ToolStripManager: Now that we have System renderer, use it
10655 if the user specifies it.
10656 * ToolStripDropDown.cs: Don't reset our Renderer on changing OwnerItem
10657 if we are ManagerRenderMode.
10658 * ToolStripMenuItem.cs: Calculate our text color better.
10659 * ToolStripRenderer.cs, ToolStripProfessionalRenderer.cs: Move some stuff
10660 from Professional to the base class based off working with the System renderer.
10661 * ToolStripSystemRenderer.cs: Added.
10663 2007-07-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10665 * ListView.cs: I'm so lame - the real name is HitTest, not HitInfo.
10667 2007-07-02 Jonathan Pobst <monkey@jpobst.com>
10669 * ToolTip.cs: Implement 2.0 Tag property.
10671 2007-06-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10673 * ListView.cs: Implement 2.0 HitTest methods.
10675 2007-06-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10677 * ListViewItem.cs: Add a 2.0 bool Hot property, to tell whether the
10678 item is under the pointer or not (sugar). Also remove the TODO
10679 regarding to the cursor changes in OneClick activation.
10680 * ThemeWin32Classic.cs: When HotTracking is true and we are drawing
10681 the subitems use the parent's HotFont if UseItemStyleForSubItems is
10682 true; otherwise don't show the underline style.
10684 2007-06-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10686 * ListView.cs: In ItemControl.ItemsMouseMove, refactor
10687 the code to retrieve the item at position only one time. Also
10688 change cursor when Activation is ItemActivation.OneClick as well
10689 as invalidate the item if HotTracking is true (to show/hide the
10690 underline style). Add an internal HotItemIndex property to retrieve
10691 the current hot item's index.
10692 * ListViewItem.cs: Add an internal HotFont property to cache the
10693 font used when HotTracking is true and the pointer moves within the
10695 * ThemeWin32Classic.cs: When drawing the item's text, use Font or
10696 HotFont depending on the hot state of the item.
10698 2007-06-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10700 * ListView.cs: Implement 2.0 HotTracking property.
10702 2007-06-21 Jonathan Pobst <monkey@jpobst.com>
10704 * ToolStripControlHost.cs: If our hosted control never got created,
10705 don't try to dispose it. [Fixes bug #81909]
10707 2007-06-21 Jonathan Pobst <monkey@jpobst.com>
10709 * TableLayoutPanel.cs: Implement ScaleCore, ScaleControl.
10711 2007-06-21 Jonathan Pobst <monkey@jpobst.com>
10713 * TableLayoutPanel.cs: Implement CellBorderStyle. [Fixes bug #81884]
10715 2007-06-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10717 * ThemeWin32Classic.cs: In OwnerDraw mode draw subitems only for
10719 * DrawListViewColumnHeaderEventArgs.cs:
10720 * DrawListViewSubItemEventArgs.cs: Add padding to the bounds when drawing text
10721 using the DrawText () methods.
10723 2007-06-19 Jonathan Pobst <monkey@jpobst.com>
10725 * ToolStripProfessionalRenderer.cs: Put back clearing a ToolStripDropDown's
10726 background which got erased in my changes yesterday.
10728 2007-06-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10730 * ListViewItem.cs: Actually set bounds for subitems in Details view
10732 * ThemeWin32Classic.cs: Refactor the drawing code for subitems, so we
10733 can invoke from the owner draw routines if we need it. Also, add
10734 support for Owner draw in Details view.
10736 2007-06-18 Jonathan Pobst <monkey@jpobst.com>
10738 * ToolStripDropDownMenu.cs, ToolStripItem.cs, ToolStripLabel.cs,
10739 ToolStripMenuItem.cs, ToolStripProfessionalRenderer.cs: Respect the
10740 ShowImageMargin setting, properly align text in a ToolStripLabel
10741 hosted on a ToolStripDropDown.
10743 2007-06-18 Jonathan Pobst <monkey@jpobst.com>
10745 * ToolStrip.cs, ToolStripContentPanel.cs, ToolStripDropDownMenu.cs,
10746 ToolStripProfessionalRenderer.cs: Refactor and clean up some rendering code.
10748 2007-06-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10750 * DrawListViewSubItemEventArgs.cs: Actually implement its methods.
10752 2007-06-18 Jonathan Pobst <monkey@jpobst.com>
10754 * ToolStripLabel.cs: If the label is on a dropdown, adjust the text
10755 location to match ToolStripMenuItems.
10757 2007-06-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10759 * DrawListViewColumnHeaderEventArgs.cs:
10760 * ThemeWin32Classic.cs: Implement 2.0 OwnerDraw support for
10761 column headers in ListView.
10763 2007-06-15 Jonathan Pobst <monkey@jpobst.com>
10765 * UserControl.cs: Implement AutoSize.
10767 2007-06-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10769 * DrawListViewItemEventArgs.cs:
10771 * ThemeWin32Classic.cs: Implement basic support for 2.0 OwnerDraw in
10774 2007-06-15 Jonathan Pobst <monkey@jpobst.com>
10776 * ToolStripDropDownItemAccessibleObject.cs: Added.
10777 * ToolStripDropDownItem.cs, ToolStripItem.cs, ToolStripMenuItem.cs,
10778 ToolStripOverflow.cs, ToolStripOverflowButton.cs, ToolStripPanel.cs,
10779 ToolStripProgressBar.cs, ToolStripSeparator.cs, ToolStripSplitButton.cs,
10780 ToolStripTextBox.cs: corcompare work.
10782 2007-06-14 Jonathan Pobst <monkey@jpobst.com>
10784 * OSFeature.cs, StatusStrip.cs, TabControl.cs, TableLayoutSettings.cs,
10785 TableLayoutStyle.cs, TableLayoutCollection.cs, ToolStripContentPanel.cs,
10786 ToolStripControlHost.cs, ToolStripDropDown.cs, ToolStripDropDownButton.cs:
10789 2007-06-14 Jonathan Pobst <monkey@jpobst.com>
10791 * OSFeature.cs: Add IsPresent.
10792 * PrintPreviewControl.cs: Add RightToLeft.
10793 * SplitContainer.cs: Add AutoScrollOffset, ScaleControl.
10794 * SplitterPanel.cs: Add AutoSizeMode.
10796 2007-06-13 Jonathan Pobst <monkey@jpobst.com>
10798 * LayoutEventArgs.cs: Add 2.0 AffectedComponent.
10799 * MdiClient.cs: Add 2.0 ScaleControl.
10800 * NativeWindow.cs: Implement 2.0 interface IWin32Window.
10801 * NumericUpDownAccelerationCollection.cs: Add [ListBinding].
10803 2007-06-13 Jonathan Pobst <monkey@jpobst.com>
10805 * Form.cs: Implement some scaling methods, stub some RTL methods,
10808 2007-06-13 Jonathan Pobst <monkey@jpobst.com>
10810 * Control.cs: corcompare work.
10811 * FlatButtonAppearance.cs, FolderBrowserDialog.cs: Add TypeConverters.
10813 2007-06-13 Jonathan Pobst <monkey@jpobst.com>
10815 * ControlPaint.cs, Theme.cs, ThemeWin32Classic.cs: Implement
10816 ControlPaint 2.0 stuffs.
10818 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
10820 * ThreadExceptionDialog.cs: Add 2.0 stuffs.
10822 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
10824 * UpDownBase.cs: Add 2.0 stuffs.
10826 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
10828 * NumericUpDown.cs: Add 2.0 stuffs.
10830 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
10832 * NotfiyIcon.cs: Add MouseDoubleClick event, hook up MouseClick event.
10834 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
10836 * ErrorProvider.cs: Implement 2.0 stuffs.
10838 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
10840 * DomainUpDown.cs: Implement 2.0 stuffs.
10842 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
10844 * CheckedListBox.cs: Fix RefreshItems signature.
10846 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
10848 * PictureBox.cs: Implement 2.0 stuffs.
10850 2007-06-12 Andreia Gaita <avidigal@novell.com>
10852 * TabControl.cs: Check if there are tabpages before checking
10853 the selected index - fix #81802 (font changes raise a ResizeTabs
10854 call on controls.add, which blew up nicely with no tabpages)
10856 2007-06-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10859 * ListViewItem.cs: Implement 2.0 ItemSelectionChanged event.
10861 2007-06-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10864 * ListViewItem.cs: In VirtualMode the selection information
10865 resides in the ListView, rather than in the Items. Also, throw
10866 InvalidOperationExceptions when VirtualMode is being used and
10867 CheckedItemCollection is accessed.
10869 2007-06-08 Jonathan Pobst <monkey@jpobst.com>
10871 * ComboBox.cs: Add ScaleControl.
10873 2007-06-08 Jonathan Pobst <monkey@jpobst.com>
10875 * ButtonBase.cs: ButtonBaseAccessibleObject.State should not be visible to 1.1.
10877 2007-06-08 Jonathan Pobst <monkey@jpobst.com>
10879 * GroupBox.cs: Add 2.0 stuffs.
10881 2007-06-08 Jonathan Pobst <monkey@jpobst.com>
10883 * Panel.cs: Add autosize properties/event.
10885 2007-06-07 Jonathan Pobst <monkey@jpobst.com>
10888 - When we remove a control, remove it from the collection before performing the layout.
10889 - Setup an internal property for explicit_bounds.
10890 - Don't let the UpdateBounds in CreateHandle overwrite our explicit bounds.
10891 - Perform a layout when we set a new AutoSizeMode.
10893 2007-06-07 Jonathan Pobst <monkey@jpobst.com>
10895 * ScrollableControl.cs: Add 2.0 stuffs.
10897 2007-06-06 Jonathan Pobst <monkey@jpobst.com>
10899 * ScrollBar.cs: Add 2.0 stuffs.
10901 2007-06-06 Jonathan Pobst <monkey@jpobst.com>
10903 * Splitter.cs: Add 2.0 stuffs.
10905 2007-06-06 Jonathan Pobst <monkey@jpobst.com>
10907 * SplitContainer.cs: Apply patch from Neil Cawse <neilcawse@geotab.com>
10908 to have BindingContext simply use base implementation.
10910 2007-06-06 Jonathan Pobst <monkey@jpobst.com>
10912 * ColumnHeader.cs: corcompare fix.
10914 2007-06-06 Jonathan Pobst <monkey@jpobst.com>
10916 * Button.cs: corcompare fixes.
10917 * ButtonBase.cs: corcompare fixes, add ButtonBaseAccessibleObject.State.
10919 2007-06-06 Jonathan Pobst <monkey@jpobst.com>
10921 * Button.cs: Override GetPreferredSizeCore.
10922 * ButtonBase.cs: PerformLayout after changing properties that can affect
10923 AutoSize. Simplify some mouse/keyboard code.
10924 * Control.cs: PerformLayout after changing Padding if AutoSize = true.
10925 * MouseEventArgs.cs: Make Location internal for 1.1.
10926 * TextRenderer.cs: Make MeasureTextInternal (string, Font, bool) internal for 1.1.
10927 * Theme.cs: Add CalculateButtonAutoSize.
10928 * ThemeWin32Classic.cs: Implement CalculateButtonAutoSize.
10930 2007-06-05 Miguel de Icaza <miguel@novell.com>
10932 * TreeNodeCollection.cs: Applied patch from Neil Cawse <neilcawse@geotab.com>
10934 2007-06-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10936 * ListViewItem.cs: We can't cache Bounds in VirtualMode
10937 since we can get different item instances every time we retrieve it.
10939 2007-06-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10941 * ListView.cs: Work around for #81602, since an unkown an pretty
10942 infrequent condition appears only in some systems (old linux boxes, it
10945 2007-06-04 Jonathan Pobst <monkey@jpobst.com>
10947 * Button.cs: Completely reformat and a little refactor to bring
10948 this closer to Mono circa 2007.
10950 2007-06-04 Jonathan Pobst <monkey@jpobst.com>
10952 * CheckBox.cs, Form.cs, RadioButton.cs: Change call to ButtonBase.Redraw
10953 to be ButtonBase.Invalidate.
10955 2007-06-04 Jonathan Pobst <monkey@jpobst.com>
10957 * ButtonBase.cs: GetPreferredSize is 2.0 only. Fixes build.
10959 2007-06-04 Jonathan Pobst <monkey@jpobst.com>
10961 * ButtonBase.cs: Completely reformat and a little refactor to bring
10962 this closer to Mono circa 2007.
10964 2007-06-01 Everaldo Canuto <ecanuto@novell.com>
10966 * Label.cs: Fixes preferred sizes for 2.0 profile, also adjust some
10967 values for autosize. Fixes #80137.
10969 2007-06-01 Jonathan Pobst <monkey@jpobst.com>
10971 * Control.cs: Don't perform layout when AutoSize changes.
10972 * Form.cs: Perform layout in AutoSize override. Don't set ClientSize
10973 directly when autosizing, use SetBounds with BoundsSpecified.None.
10974 Fixes unit tests my last commit broke.
10976 2007-06-01 Jonathan Pobst <monkey@jpobst.com>
10978 * Control.cs: Perform layout when AutoSize changes.
10979 * Form.cs: Implement AutoSizing.
10981 2007-06-01 Chris Toshok <toshok@ximian.com>
10983 * DataGrid.cs: remove the XXX'ed check at the top of
10984 ProcessGridKey. fixes #80464.
10986 2007-06-01 Chris Toshok <toshok@ximian.com>
10988 * DataGridTextBoxColumn.cs: TextBox.TextChanged event handler
10989 adding idempotent (add/remove in Edit()), and also make sure we
10990 don't add it until after we set the text, so it's not tripped in
10991 Edit(). Fixes unit test regression.
10993 2007-06-01 Jonathan Pobst <monkey@jpobst.com>
10995 * Control.cs: In UpdateBounds, only recalculate anchor distances if the
10996 change is user explicit, not when the layout engine moves stuff. Fixes
10997 anchoring to bottom and right. [Fixes bug #81790]
10999 2007-06-01 Andreia Gaita <avidigal@novell.com>
11001 * PrintDialog.cs: Add collation preview thumbnails. Fixes #80726.
11003 2007-06-01 Andreia Gaita <avidigal@novell.com>
11005 * ContainerControl.cs:
11006 Fire enter event for common ancestor if it is not a ContainerControl.
11007 Send focus to the active_control and not the 'value', the active
11008 control might have been changed in one of the events fired.
11009 Definitely fixes #80159.
11011 2007-06-01 Andreia Gaita <avidigal@novell.com>
11013 * DataGrid.cs: Finish editing when focus leave the datagrid. Fixes #80159.
11015 2007-06-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
11017 * PropertyGrid.cs: Anchor the help description to the bottom of the
11018 help panel and refactor SelectGridItem into a
11019 SelectGridItemInternal that can be set to null (and update it to
11020 clear the help texts when it is set to null). Set root item to null
11021 when there's no SelectedObject. Fixes #80438.
11022 * ScrollableControl.cs: In Recalculate we need to ResumeLayout(true)
11023 when we're recalculating after a resize (only).
11025 2007-05-31 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11027 * ListView.cs: Implement 2.0 RedrawItems method.
11029 2007-05-31 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11031 * ListControl.cs: Disconnect PositionChanged and ItemChanged
11032 handlers from previous data manager when DataSource is set to
11033 null. Fixes #81771.
11035 2007-05-31 Jackson Harper <jackson@ximian.com>
11037 * TextBoxBase.cs: These seem to be the correct values.
11039 2007-05-31 Everaldo Canuto <ecanuto@novell.com>
11041 * FileDialog.cs: When close dialog with ok set filterindex using combobox
11042 value. Fixes #81784.
11044 2007-05-31 Jonathan Pobst <monkey@jpobst.com>
11046 * Control.cs: Implement 2.0 scaling methods.
11048 2007-05-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
11050 * ProgressBar.cs, WebBrowserBase.cs, Control.cs, MaskedTextBox.cs,
11051 MessageBox.cs, PropertyGrid.cs, RichTextBox.cs: Fix warnings and
11054 2007-05-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
11056 * ProgressBar.cs: Implemented missing 2.0 members.
11058 2007-05-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
11060 * Control.cs: Corcompare issues.
11061 * MessageBox.cs: Implemented missing 2.0 functions.
11063 2007-05-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
11065 * CheckedListBox.cs, ListBox.cs, ListControl.cs, ComboBox.cs:
11066 Implemented more 2.0 members.
11068 2007-05-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
11070 * Application.cs: Try to avoid NRE when Assembly.GetEntryAssembly is
11071 null (strange, but it seems to happen when running unit tests).
11073 2007-05-30 Andreia Gaita <avidigal@novell.com>
11075 * ContainerControl.cs: Set active_control even earlier, before
11076 firing any events, and undo it if validation returns false.
11078 2007-05-30 Andreia Gaita <avidigal@novell.com>
11080 * ContainerControl.cs: Raise Validation and Enter/Leave events
11081 even if there is no Form and set active_control earlier, just
11082 before firing Enter events (toshok's patches). Fixes #80647.
11084 2007-05-30 Jackson Harper <jackson@ximian.com>
11086 * TextControl.cs: Redid the pageup/pagedown a little to simplify
11087 things and fix bug #81311.
11089 2007-05-30 Jackson Harper <jackson@ximian.com>
11091 * X11Dnd.cs: Now that we have our own event loop, we need to
11092 cancel when we get a mouseup but it won't be accepted.
11094 2007-05-30 Chris Toshok <toshok@ximian.com>
11096 * DataGrid.cs (set_CurrentCell): guard against negative
11099 * DataGridColumnStyle.cs (CheckValidDataSource): just use the
11100 array index syntax instead of looping over the property names.
11102 * DataGridTextBoxColumn.cs: add a changed handler on the textbox,
11103 and set IsInEditOrNavigateMode to false there.
11105 2007-05-30 Jackson Harper <jackson@ximian.com>
11107 * TreeView.cs: Make sure we don't get a bad visible order when
11108 setting to the top node. Fixes some misc crashing in
11111 2007-05-30 Andreia Gaita <avidigal@novell.com>
11113 * UserControl.cs: Add 2.0 AutoSizeMode
11115 2007-05-29 Everaldo Canuto <ecanuto@novell.com>
11117 * DataGridTextBoxColumn.cs: Fix textbox horizontal offset.
11119 2007-05-29 Everaldo Canuto <ecanuto@novell.com>
11121 * DataGridTextBoxColumn.cs: Fix textbox position to prevent override grid
11122 lines. Fixes #80285.
11124 2007-05-29 Everaldo Canuto <ecanuto@novell.com>
11126 * DataGridColumnStyle.cs: Add char trimming column header text format.
11128 2007-05-29 Everaldo Canuto <ecanuto@novell.com>
11130 * DataGridColumnStyle.cs: Fix grid header arrow drawing over column name.
11133 2007-05-29 Jackson Harper <jackson@ximian.com>
11135 * TreeNode.cs: Fix off by one on calculating whether or not a node
11138 2007-05-29 Jonathan Pobst <monkey@jpobst.com>
11140 * Control.cs: ResumeLayout(false) should recalculate anchor distances.
11141 * ScrollableControl.cs: Force an UpdateDistances when we move the
11145 2007-05-29 Andreia Gaita <avidigal@novell.com>
11147 * PageSetupDialog.cs: Fix #80728 - Changing the printer doesn't
11148 update the page setup screen.
11150 2007-05-29 Andreia Gaita <avidigal@novell.com>
11152 * PageSetupDialog.cs: Fix landscape mode.
11154 2007-05-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11156 * SystemInformation.cs: Add 2.0 IconSizeVerticalSpacing and
11157 IconSizeHorizontalSpacing.
11159 2007-05-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11161 * ListView.cs: The declaration of prev_tooltip_item should be inside
11162 a NET_2_0 conditional (avoid a warning).
11164 2007-05-28 Andreia Gaita <avidigal@novell.com>
11166 * PageSetupDialog.cs: Implement PrintPreview control to display
11167 the preview thumbnail. Change unit conversion to use
11168 PrinterUnitConvert methods.
11170 Note: there is a huge bug in ms.net where the default margins are
11171 interpreted as centimeters (?), when in fact they are set in inches. When
11172 loading the page setup dialog initially (ms.net), the default margins
11173 are set to 1 inch, and the dialog shows them with value 10, when in fact
11174 it should be 25 (properly converted). Our dialog doesn't have this bug.
11176 * Theme.cs, ThemeWin32Classic.cs: Add a CPDrawBorder override for
11178 * ControlPaint.cs: Add a DrawBorder internal method for RectangleF.
11180 2007-05-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11183 * ListViewItem.cs: Implement 2.0 ToolTipText support for listview
11186 2007-05-28 Andreia Gaita <avidigal@novell.com>
11188 * X11Dnd.cs: A direct cast to VirtualKeys is not allowed from
11189 an IntPtr on csc (it builds fine on mcs, could it be a compiler
11190 bug?), convert the ptr to Int32 first.
11192 2007-05-28 Jackson Harper <jackson@ximian.com>
11194 * X11Dnd.cs: Add a timer, so after drop, if a finish is not
11195 recieved, we will exit the dnd tracking loop.
11197 2007-05-28 Jackson Harper <jackson@ximian.com>
11199 * X11Dnd.cs: Keep tracking until the xdnd finished event is
11200 recieved. TODO: I should probably stick a timer on the dropped
11201 event, and finish the drag if the XDND Finished event never shows
11202 (because some apps don't seem to send it).
11204 2007-05-28 Everaldo Canuto <ecanuto@novell.com>
11206 * ToolBar.cs: Fix toolbar default width for button with image. Fixes
11209 2007-05-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
11211 * MonthCalendar.cs: Only mark the keypresses we actually handle as
11214 2007-05-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
11216 * MonthCalendar.cs: Set the size after initializing all the relevant
11217 variables. Fixes #81742.
11219 2007-05-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
11221 * KeyEventArgs.cs: Fix typo.
11223 2007-05-28 Gert Driesen <drieseng@users.sourceforge.net>
11225 * DateTimePicker.cs: Changed exceptions thrown by MinDate and MaxDate
11226 to match MS. Fixed MinDate to only accept value less than or equal
11227 to MaxDate on 2.0 profile and less than MaxDate on 1.0 profile.
11228 Removed TODO's that are now verified by unit tests.
11230 2007-05-27 Gert Driesen <drieseng@users.sourceforge.net>
11232 * TreeNodeCollection.cs: Minor corrections to exceptions to match
11235 2007-05-25 Jackson Harper <jackson@ximian.com>
11237 * X11Dnd.cs: Rework to make StartDrag a blocking call that runs
11238 it's own message loop.
11239 * XplatUIX11.cs: Remove some of the dnd hooks
11241 2007-05-25 Gert Driesen <drieseng@users.sourceforge.net>
11243 * XplatUIX11.cs: Change MinimumWindowSize to {Width=0,Height=0}
11244 instead of MinimizedWindowSize.
11246 2007-05-25 Jackson Harper <jackson@ximian.com>
11248 * TextBoxBase.cs: Raise textchanged when cutting and pasting text.
11250 2007-05-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
11252 * KeyEventArgs.cs: Added SuppressKeyPress.
11253 * Control.cs: Added support for SuppressKeyPress.
11255 2007-05-24 Andreia Gaita <avidigal@novell.com>
11257 * NumericUpDown.cs: Refactor code to fix regressions on #79950 and
11258 problems with PieChart. suppress_validation should not be a counter,
11259 if there are several BeginInit calls, the first EndInit will
11260 activate validation. Fix exceptions thrown by set_Value.
11261 * UpDownBase.cs: ValidateText only if it's the user editing it.
11263 2007-05-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11265 * ListControl.cs: FilterItemOnProperty should return the filtered
11266 item proeprty even if DataSource is null. The same applies for
11267 GetItemText. Fixes #80427.
11269 2007-05-24 Jonathan Pobst <monkey@jpobst.com>
11271 * Control.cs: If a control doesn't have a parent when it's Dock is
11272 set, but it has children, it needs to do a layout. Fixes some nested
11273 controls issues. [Fixes bug #81199]
11275 2007-05-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
11277 * ComboBox.cs: If there are few items in the drop down list, make it
11278 the exact size the items need, no bigger. Fixes #81612.
11280 2007-05-24 Jonathan Pobst <monkey@jpobst.com>
11282 * Application.cs: When we have captured the keyboard for a menu,
11283 check for mouse down events in case we need to close the menu.
11284 * Control.cs, Form.cs: Remove mouse down checks for menus.
11286 2007-05-24 Jackson Harper <jackson@ximian.com>
11288 * TextControl.cs: Handle tabs in non multiline mode a little
11291 2007-05-24 Jackson Harper <jackson@ximian.com>
11293 * TextControl.cs: We need to manually break apart tabbed text and
11294 move the tabs, since the system.drawing tabbing mechanism relies
11296 * TextBoxBase.cs: Move the caret properly when the user enters a
11299 2007-05-24 Jonathan Pobst <monkey@jpobst.com>
11301 * ContainerControl.cs: Don't check CanSelect before calling
11303 * ToolStrip.cs: Only do implicit mnemonics on MenuStrips. Don't
11304 release a KeyboardActive on click if it's not ours.
11306 2007-05-23 Andreia Gaita <avidigal@novell.com>
11308 * ColumnHeader.cs: Add TypeConverter
11310 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
11312 * LinkLabel.cs: Implement LinkCollection.Add with Link parameter (2.0).
11314 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
11316 * LinkLabelLinkClickedEventArgs.cs, LinkLabel.cs: Implement Button property.
11318 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
11320 * LinkLabel.cs: Implement public Padding property.
11322 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
11324 * LinkLabel.cs: Implement public FlatStyle.
11326 2007-05-23 Jonathan Pobst <monkey@jpobst.com>
11328 * Control.cs: Apply patch from George to call parent.PerformLayout
11329 when Visible is changed. [Fixes bugs #81118, 81718]
11331 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
11333 * MainMenu.cs, MenuAPI.cs: Implement Collapse event for MainMenu (2.0).
11335 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
11337 * ContextMenu.cs: Implement ProcessCmdKey with control parameter.
11339 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
11341 * ContextMenu.cs: Implement Collapse.
11343 2007-05-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
11345 * ToolBarButton.cs: Implement Name.
11347 2007-05-22 Everaldo Canuto <ecanuto@novell.com>
11349 * ToolBar.cs: Fix OnButtonDropDown to save item used in dropdown instead of
11350 use current_item, it prevents some NRE. Fixes #81675.
11352 2007-05-22 Andreia Gaita <avidigal@novell.com>
11354 * NumericUpDown.cs: Fix PieChart by not returning from UpdateEditText
11355 without updating the text.
11357 2007-05-22 Jonathan Pobst <monkey@jpobst.com>
11359 * XplatUIWin32.cs: Plug a GDI leak caused by calling Font.ToHfont ()
11360 without calling DeleteObject. [Should fix bug #81709]
11362 2007-05-22 Jackson Harper <jackson@ximian.com>
11364 * RichTextBox.cs: Set the line endings correctly, when flushing
11367 2007-05-22 Gert Driesen <drieseng@users.sourceforge.net>
11369 * XplatUIX11.cs: MinimumWindowSize on X11 is actually
11370 {Width=0,Height=0}.
11372 2007-05-22 Jackson Harper <jackson@ximian.com>
11374 * TreeView.cs: Setting top with a null node should set to the very
11377 2007-05-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
11379 * Form.cs: ShowDialog: destroy the handle when message loop is
11380 finished, matches MS behaviour. Refactor parts of WmClose into
11381 RaiseCloseEvents, that only raises events if they haven't already
11382 been raised. Fixes #81688 and #81521.
11383 * Application.cs: Don't call close on the form when exiting a modal
11384 loop, it will raise all the (Form)Closed/Closing events again if
11385 WM_CLOSE has been sent earlier on, instead call RaiseCloseEvent,
11386 which doesn'r raise any events it they have been raised before.
11388 2007-05-22 Jonathan Pobst <monkey@jpobst.com>
11390 * Control.cs: Add OnPrint.
11391 * ToolStrip.cs: Add GetChildAtPoint.
11392 * ToolStripContainer.cs: Add OnRightToLeftChanged.
11393 * ToolStripRenderer.cs: Make CreateMirrorImage internal.
11395 2007-05-22 Everaldo Canuto <ecanuto@novell.com>
11397 * MenuAPI.cs: Prevent context menu to be typed as MainMenu. Fixes #81509.
11399 2007-05-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
11401 * InternalWindowManager.cs: ToolTipShow: Don't show tooltip if the form
11402 isn't visible anymore. Fixes #81651.
11404 2007-05-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
11406 * Control.cs: WmShowWindow: Update children's z-order after setting
11407 their parent. SetParent may show the window, thereby corrupting
11408 z-order, since the window will be shown on top.
11409 * XplatUIWin32.cs: SetParent: don't call SetVisible on forms. Prevents
11410 multiple (and redundant) WM_SHOWWINDOW messages.
11411 * MdiWindowManager.cs: RaiseDeactivate: only raise after an Activate
11412 event has already been raised.
11413 * Form.cs: Change is_changing_visible_state to a counter, since
11414 SetVisibleCore can be called recursively. CreateHandle: when
11415 creating mdi children, send (De)Activated events.
11416 * MdiClient.cs: Update use of is_changing_visible_state.
11417 * Application.cs: OnThreadException: Surround exception handling with
11418 try/finally to ensure we always reset the error-handling state
11421 2007-05-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
11423 * ThemeWin32Classic.cs: DrawProgressBar: Avoid a DivideByZero exception
11426 2007-05-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11428 * ListView.cs: Use Theme.ListViewHorizontalSpacing for List and
11429 SmallIcon views, now that we have a standarized horizontal spacing.
11431 * ThemeWin32Classic.cs: ListViewHorizontalSpacing now has a value of
11432 4, just like the other views (Match .Net).
11434 2007-05-21 Jonathan Pobst <monkey@jpobst.com>
11436 * Control.cs: Delay calculating anchor distances until we actually layout.
11437 Always query the WM for the actual size and location it put us at instead of
11438 only when we send negative values.
11439 [Fixes bugs #81694, 81695]
11441 2007-05-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
11443 * Application.cs: Avoid a possible stack overflow when trying to exit
11446 2007-05-19 Marek Safar <marek.safar@gmail.com>
11448 * Theme.cs (GetHatchBrush): A key uses internal value instead of formated
11451 2007-05-19 Andreia Gaita <avidigal@novell.com>
11453 * NumericUpDown.cs: Added 2.0 methods (spin acceleration)
11454 * NumericUpDownAcceleration.cs,
11455 NumericUpDownAccelerationCollection.cs: Added 2.0
11458 2007-05-19 Gert Driesen <drieseng@users.sourceforge.net>
11460 * RichTextBox.cs: Recalculate the document after the ScrollBars
11461 property is changed. Fixes bug #81681.
11463 2007-05-18 Jonathan Pobst <monkey@jpobst.com>
11465 * DataObject.cs: Implement 2.0 methods.
11467 2007-05-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11469 * ThemeWin32Classic.cs: Draw the check marks in ListViewItems
11470 in the center of the checkbox, not in the left-top corner.
11473 2007-05-18 Jackson Harper <jackson@ximian.com>
11475 * RichTextBox.cs: Recalculate the document after the scrollbars
11476 property is changed.
11477 * TextBoxBase.cs: ScrollBars is not a flags enum...This fixes
11480 2007-05-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
11482 * CreateParams.cs: Make HasWindowManager marginally faster.
11483 * XplatUIX11.cs, Hwnd.cs: CreateWindow: Move the default location code
11484 into Hwnd so that other drivers can use it as well.
11485 * XplatUIWin32.cs: CreateWindow: If the window has a window manager get
11486 the default location from Hwnd. Fixes MDI client windows always
11487 showing up at (0,0) in Windows (Win32 won't set the default
11488 location since the window styles aren't correct).
11490 2007-05-18 Gert Driesen <drieseng@users.sourceforge.net>
11492 * TreeView.cs: Modified DoubleBuffered to just use the base
11495 2007-05-18 Jackson Harper <jackson@ximian.com>
11497 * TreeView.cs: Set the top node to the last child node when
11499 - When we get focus, if there is no selected node, use the top
11502 2007-05-18 Jonathan Pobst <monkey@jpobst.com>
11504 * KeysConverter.cs: Add CanConvertTo.
11505 * LinkLabel.cs: Add some 2.0 constructors and properties to LinkLabel.Link.
11506 * LinkConverter.cs: Added.
11508 2007-05-18 Everaldo Canuto <ecanuto@novell.com>
11510 * Cursor.cs: Apply Sebastien patch from #81669 to open file in read mode,
11511 it prevents error when file dont have write access. Fixes #81669 and #81667.
11513 2007-05-18 Everaldo Canuto <ecanuto@novell.com>
11515 * ThemeWin32Classic.cs: Check for ShowKeyboardCues true when draw toolbar
11516 button text. Fixes #79640.
11518 2007-05-18 Everaldo Canuto <ecanuto@novell.com>
11520 * Control.cs: According to MSDN controls created in the designer theres
11521 keyboard accelerators visible by default. So included check for design
11522 in ShowKeyboardCuesInternal.
11524 2007-05-18 Everaldo Canuto <ecanuto@novell.com>
11526 * ThemeWin32Classic.cs: Check for ShowKeyboardCues true when draw combobox
11527 text. Fixes #81621.
11529 2007-05-18 Everaldo Canuto <ecanuto@novell.com>
11531 * Control.cs: ShowKeyboardCuesInternal add to expose ShowKeyboardCues
11532 for 1.0, becuse ShowKeyboardCues is protected on 1.0.
11534 2007-05-17 Everaldo Canuto <ecanuto@novell.com>
11536 * Control.cs: Finish implementation of UI State using WmChangeUIState
11537 to send WM_UPDATEUISTATE to all child controls. Some hack will be needed
11538 in some controls to check for show_keyboard_cues to draw accell keys "_".
11540 2007-05-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11542 * ListBox.cs: When calculating the horizontal scrollbar
11543 in single column mode, don't use values less than 0 for
11544 Maximum. Fixes #81474.
11546 2007-05-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11548 * ListBox.cs: Throw the some missing exceptions in
11549 ListBox.ObjectCollection methods.
11551 2007-05-17 Jackson Harper <jackson@ximian.com>
11553 * TextBoxBase.cs: Recalculate the document when the word wrap
11554 value has changed. This fixes 81488.
11556 2007-05-17 Jonathan Pobst <monkey@jpobst.com>
11558 * Clipboard.cs: Implement missing GetText overload.
11560 2007-05-17 Chris Toshok <toshok@ximian.com>
11562 * Control.cs (CheckDataBindings): remove the binding_context arg
11565 * CurrencyManager.cs (OnItemChanged): fix this now that
11566 BindingManagerBase is fixed. also remove the comment telling where
11567 the fix should go. We set transfering_data to true/false around
11568 the call to PushData to keep UpdateIsBinding from being called.
11569 (ListChangedHandler): remove the extra OnMetaDataChanged call for
11570 PropertyDescriptorAdded in the 1.1 case. The extra call is
11571 actually generated by System.Data generating 2 metadata changed
11572 events of its own per column add. The fix should go there. Add a
11573 comment to that affect in our test's Assert.Ignore.
11575 * BindingManagerBase.cs: Rework PullData and PushData slightly.
11576 we keep a boolean flag (transfering_data) that keeps us from
11577 calling UpdateIsBinding multiple times if we re-enter either of
11580 * ControlBindingsCollection.cs (AddCore): remove the
11581 binding_context arg to binding.Check.
11583 * Binding.cs (IsBinding): don't check if we're binding here, just
11584 return our cached value. we update it in UpdateIsBinding.
11585 (Check): don't take the binding_context arg, we'll just use our
11586 control's. Also, for some reason MS doesn't use the data member
11587 field when getting the bindingmanager for this binding. it just
11588 uses the datasource. Make this method callable multiple times,
11589 and only do the is_null_desc stuff if manager.Position != -1 (so
11590 we don't get an exception accessing manager.Current).
11591 (UpdateIsBinding): move the code from IsBinding here.
11592 (PositionChangedHandler): call Check here to we can initialize
11593 things that require a non- -1 position.
11595 2007-05-17 Everaldo Canuto <ecanuto@novell.com>
11597 * Form.cs: When alt keys is pressed send WM_CHANGEUISTATE to top level
11600 2007-05-17 Andreia Gaita <avidigal@novell.com>
11602 * TabControl.cs: Add 2.0 methods and events, including
11603 OnEnter / OnLeave and raises it for tabpages (fixes #79869)
11604 * TabPage.cs: Add 2.0 methods
11606 2007-05-17 Everaldo Canuto <ecanuto@novell.com>
11608 * Control.cs: Implement WmUpdateUIState, show_focus_cues and
11609 keyboard_cues is properly handled by message method.
11611 2007-05-17 Jonathan Pobst <monkey@jpobst.com>
11613 * TreeViewImageIndexConverter.cs: Add 2.0 methods.
11615 2007-05-17 Jonathan Pobst <monkey@jpobst.com>
11617 * ToolStripTextBox.cs: Wire up new 2.0 Textbox methods/properties.
11619 2007-05-16 Everaldo Canuto <ecanuto@novell.com>
11622 - WmUpdateUIState added to handle state changes, it make call to
11623 OnChangeUICues event.
11624 - Fixed ShowKeyboardCues to check for MenuAccessKeysUnderlined in
11627 2007-05-16 Jonathan Pobst <monkey@jpobst.com>
11629 * ImageKeyConverter.cs: Added.
11630 * TreeViewImageKeyConverter.cs: Added.
11632 2007-05-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11634 * ToolTips.cs: Update Text if SetToolTip is called for a control
11635 already showing the tooltip, as well as restarting its timer; show
11636 tooltip if we are inside the control bounds by the time of calling
11637 SetToolTip. Inside ShowTooltip remove the check to not show the
11638 tooltip again for the active control (it is allowed by .Net to
11639 show the tooltip on the same control multiple times).
11641 2007-05-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
11643 * MaskedTextBox.cs: Small fix for Text that fixes a broken test.
11645 2007-05-16 Andreia Gaita <avidigal@novell.com>
11647 * ContainerControl.cs: only process tab key if there are no
11648 modifier keys present, otherwise the control does the
11649 tab processing, if it needs to. Fixes #81622
11650 * TabControl.cs: Fixes calculation for which tab to select on
11653 2007-05-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
11655 * MaskedTextBox.cs: Small fix for Text that fixes a broken test.
11657 2007-05-15 Jonathan Pobst <monkey@jpobst.com>
11659 * Control.cs: Make IsInputCharInternal to allow controls to
11660 override it and still match MS API.
11661 * TextBoxBase.cs: Override IsInputCharInternal and always
11665 2007-05-15 Jackson Harper <jackson@ximian.com>
11667 * TextBox.cs: Disable some of the menu options when using a
11670 2007-05-15 Jackson Harper <jackson@ximian.com>
11674 * RichTextBox.cs: Some new 2.0 methods
11676 2007-05-15 Gert Driesen <drieseng@users.sourceforge.net>
11678 * FileDialog.cs: On 1.0 profile, do not support multidotted
11681 2007-05-14 Jackson Harper <jackson@ximian.com>
11683 * TextBoxBase.cs: Implement some of the new 2.0 methods.
11684 * RichTextBox.cs: We need to override these methods on 2.0.
11685 * MaskedTextBox.cs: These are implemented now
11686 * TextControl.cs: This was off by one.
11688 2007-05-14 Jackson Harper <jackson@ximian.com>
11690 * TextControl.cs: Because the line endings are including in the
11691 text, we don't need to add them in anymore.
11693 2007-05-11 Everaldo Canuto <everaldo@simios.org>
11695 * ToolBar.cs: Fix autosize and get it working only after hadle is created,
11696 also prevent redraw in set_autosize if handle is not created. Fixes #81523.
11698 2007-05-11 Everaldo Canuto <everaldo@simios.org>
11700 * ToolBar.cs: Adjust size to default size when button theres no text and
11701 image, it fixes remaining issues from #81524.
11703 2007-05-11 Everaldo Canuto <everaldo@simios.org>
11706 - When not flat call redraw to recalculate sizes on creare handle to match
11708 - Revert 77220 because it causes some regressions in toobar
11711 2007-05-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
11713 * MaskedTextBox.cs: Update the base text whenever the text changes. MTB
11714 now actually enters a usable state.
11716 2007-05-11 Everaldo Canuto <everaldo@simios.org>
11718 * ToolBar.cs: Check for handle created in redraw to prevent unneeded size
11719 calculations, it reduces the size cauculation from 7 to 3 on a toolbar with
11722 2007-05-11 Everaldo Canuto <everaldo@simios.org>
11724 * ToolBar.cs: Save default_size on create handle to use later for buttons
11725 without text, needed to mimic win32 behavior.
11727 2007-05-11 Everaldo Canuto <everaldo@simios.org>
11729 * ToolBar.cs: Fix button layour to best fit width or height according to
11730 vertical or not. Fixes #81524.
11732 2007-05-10 Everaldo Canuto <everaldo@simios.org>
11734 * ToolBarButton.cs: When change style call ToolBar.Redraw to update
11735 toolbar size info because different styles theres different sizes.
11738 2007-05-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11740 * ThemeWinClassic.cs: For .Net 2.0 don't draw any image
11741 if we are using checkboxes, checked is true, and we have less
11742 than two images in StateImageList; for the 1.1 in the same scenario
11743 draw the first image if we have at least one image in StateImageList.
11744 Fixes part of #81191.
11746 2007-05-10 Jonathan Pobst <monkey@jpobst.com>
11748 * ToolStrip.cs, ToolStripManager.cs: We need to remove items from
11749 the owner's Items collection on merge.
11751 2007-05-10 Jonathan Pobst <monkey@jpobst.com>
11753 * ToolStrip.cs: Use new internal ToolStripItemCollection constructor.
11754 * ToolStripItemCollection.cs: Lots of fixes to when events get called
11755 and parent/owner gets changed based on gert's unit tests.
11757 2007-05-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
11759 * MaskedTextBox.cs: Started implementing parts of it.
11761 2007-05-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11763 * ListView.cs: When clicking the checkbox on the items
11764 take into account the double clicks even if we have only
11765 one image in StateImageList (only for 1.0/1.1). Also
11766 generate an extra change of checked state when we receive
11767 the second click on checkbox (match .Net behaviour).
11768 Fixes part of #81191.
11770 2007-05-10 Everaldo Canuto <everaldo@simios.org>
11772 * ThemeWin32Classic.cs: Fix text rectangles in Tooltips.
11774 2007-05-10 Jonathan Pobst <monkey@jpobst.com>
11776 * Form.cs: Move some of OnLoad to OnLoadInternal so it gets called
11777 even if OnLoad is overriden and base.OnLoad is not called.
11780 2007-05-10 Andreia Gaita <avidigal@novell.com>
11782 * TableLayoutSettings.cs: A big doh! fix and bowing down of head in
11783 shame. (I blame my ever-persisting and annoying cold)
11785 2007-05-09 Jonathan Pobst <monkey@jpobst.com>
11787 * ListView.cs: Don't eat navigation keys. Let them flow through to
11788 KeyDown/KeyPress routines. [Fixes bug #81569]
11790 2007-05-09 Jonathan Pobst <monkey@jpobst.com>
11792 * ListView.cs: When handling keys for selecting the item based off
11793 keyboard input, do not consider keys pressed with Alt or Control. Also,
11794 correctly handle keys when the Shift key is down. [Fixes bug #81578]
11796 2007-05-09 Jonathan Pobst <monkey@jpobst.com>
11798 * Control.cs: When using UseWaitCursor, we have to store the requested
11799 Cursor to use when UseWaitCursor is turned off.
11801 2007-05-09 Jonathan Pobst <monkey@jpobst.com>
11803 * Control.cs: Implement PreProcessControlMessage. Default IsInputChar
11805 * Application.cs: Use PreProcessControlMessage instead of
11807 * PreProcessControlMessage.cs: Make internal for 1.1.
11809 2007-05-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11811 * Control.cs: Add InternalContains focus property, which hast the same
11812 functionality of ContainsFocus, but also including implicit controls.
11813 * ListViewItem.cs: Use InternalContainsFocus instead of ContainsFocus,
11814 since we need to know if the focus is contained in our implicit
11815 ItemControl when calculating Layout. Fixes part of #80888.
11817 2007-05-08 Everaldo Canuto <everaldo@simios.org>
11819 * ToolTip.cs: Remove center form string alignment as it must be align to
11822 2007-05-08 Jonathan Pobst <monkey@jpobst.com>
11824 * ToolStripItemCollection.cs: Set the new item's parent and owner
11825 in Insert like we do in Add. [Fixes bug #81568]
11827 2007-05-08 Jackson Harper <jackson@ximian.com>
11829 * TreeView.cs: GotFocus differences between 1.1 and 2.0.
11830 - Off by one error in SetTop
11831 - Disable DoubeBuffering
11833 2007-05-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
11835 * ScrollableControl.cs: ScrollIControlntoView: we now only move the
11836 control as much as necessary in order to make it entirely visible,
11837 instead of centering the control in the container (matches MS
11838 behaviour). CalculateCanvasSize: we need to take the current scroll
11839 position into account when calculating the maximum canvas,
11840 otherwise the following scenario will fail: resize so that the
11841 scrollbars appear, use the scrollbars to scroll, resize again
11842 smaller, and now the canvas size is too small. Recalculate: when
11843 showing scrollbars make sure they start off at 0, and try to scroll
11844 the active control into view. Fixes #79540. HandleScrollBar: don't
11845 scroll anywhere if the scrollbar isn't visible.
11847 2007-05-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11849 * ListView.cs: When focus changed, call Layout/Invalidate
11850 in the focused item to update the selected state (should show
11851 entire label when ListView is focused, and a part of it if is not).
11852 * ListViewItem.cs: When doing layout for LargeIcon, take into account
11853 for displaying the entire label not only the Focused state of the
11854 item, but also the Focused state of the ListView (match .Net
11857 2007-05-07 Jonathan Pobst <monkey@jpobst.com>
11859 * Control.cs: Stub CanRaiseEvents, IsMirrored, and NotifyClients.
11860 Implement UseWaitCursor.
11862 2007-05-07 Jonathan Pobst <monkey@jpobst.com>
11863 Applying contributed patch from Sergey Volk.
11865 * Clipboard.cs: Implement SetDataObject retry logic and new overload
11867 * XplatUIWin32.cs: Throw an ExternalException if the clipboard set fails.
11869 2007-05-07 Jonathan Pobst <monkey@jpobst.com>
11871 * Control.cs: Implement DrawToBitmap.
11873 2007-05-07 Jonathan Pobst <monkey@jpobst.com>
11874 Applying contributed patch from Stefan Noack.
11876 * Control.cs: Add [Get|Set]AutoSizeMode.
11878 2007-05-07 Jonathan Pobst <monkey@jpobst.com>
11880 * MdiClient.cs: Unmerge menus when the last child is closed.
11882 2007-05-07 Jonathan Pobst <monkey@jpobst.com>
11884 * ToolStrip.cs: Do not call BeginMerge on DropDowns.
11885 * ToolStripManager.cs: Call Merge on DropDowns.
11888 2007-05-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
11890 * XplatUIWin32.cs: Changed Win32CreateWindow to take enums instead of
11892 * Form.cs: CreateParams: don't set WS_VISIBLE if we're changing
11893 visibility. We can't create forms visible, since we have to set the
11894 owner before making the form visible (otherwise Win32 will do
11895 strange things with task bar icons). The problem is that we set the
11896 internal is_visible to true before creating the control, so
11897 is_changing_visible_state is the only way of determining if we're
11898 in the process of creating the form due to setting Visible=true -
11899 this works because SetVisibleCore explicitly makes the form
11900 visibile afterwards anyways. Fixes #80775.
11902 2007-05-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11904 * ThemeWin32Classic.cs: When drawing ListViewItems,
11905 use StringTrimming.EllipsisCharacter if the view is Tile, Details,
11906 or LargeIcon _and_ item is not focused (match .Net behaviour).
11908 2007-05-04 Jonathan Pobst <monkey@jpobst.com>
11910 * Control.cs, Form.cs: Fix some obsolete method warnings.
11912 2007-05-04 Jonathan Pobst <monkey@jpobst.com>
11914 * Control.cs: Implement GetChildAtPoint and OnParentCursorChanged.
11915 * GetChildAtPointSkip.cs: Make internal for 1.1 profile.
11917 2007-05-04 Andreia Gaita <avidigal@novell.com>
11919 * ContainerControl.cs: Fix active_control attribution when going
11920 up the parent chain so that the first parent container gets the control
11921 and the rest of the parent containers get the child containers (skips
11922 non-containers). Fixes #80729
11924 2007-05-04 Randolph Chung <tausq@debian.org>
11926 * FileDialog.cs: Implement the SupportMultiDottedExtensions property.
11929 2007-05-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
11931 * XplatUIX11.cs: Add a TranslateWindowSizeToXWindowSize overload that
11932 takes a size parameter, since the CreateParam's size isn't true for
11933 minimized forms. Fixes #81518,
11935 2007-05-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
11937 * Form.cs: Add OnDeactivateInternal.
11938 * MdiClient.cs: Raise Deactivate event. Fixes #81409.
11940 2007-05-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
11942 * DateTimePicker.cs: CalculateDropDownLocation: do a null check before
11943 accessing the parent. Fixes #81508.
11945 2007-05-03 Chris Toshok <toshok@ximian.com>
11947 * CurrencyManager.cs (CurrencyManager.ListChangeHandler): in the
11948 2.0 block, pass listposition + 1 to ChangeRecordState when a row
11949 was added before the current listposition. Fixes the
11950 TestInsertRowBeforeCurrent unit test.
11952 2007-05-03 Jonathan Pobst <monkey@jpobst.com>
11954 * Application.cs: Add RaiseIdle.
11955 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
11956 XplatUIX11.cs: Implement RaiseIdle.
11958 2007-05-02 Jonathan Pobst <monkey@jpobst.com>
11959 corcompare work: N - Z
11963 * ScrollableControl.cs
11964 * SplitContainer.cs
11967 * SystemInformation.cs
11969 * TableLayoutControlCollection.cs
11970 * TableLayoutPanel.cs
11975 * ToolStripComboBox.cs
11976 * ToolStripContainer.cs
11977 * ToolStripContentPanel.cs
11978 * ToolStripDropDown.cs
11979 * ToolStripDropDownItem.cs
11980 * ToolStripDropDownMenu.cs
11982 * ToolStripItemCollection.cs
11983 * ToolStripMenuItem.cs
11984 * ToolStripPanel.cs
11985 * ToolStripSplitButton.cs
11988 * TreeNodeCollection.cs
11989 * TreeNodeMouseHoverEventArgs.cs
11992 2007-05-01 Everaldo Canuto <everaldo@simios.org>
11994 * ContextMenu.cs: Add public method Show with alignment property to 2.0
11995 stuff. Thanks aatdark for the patch.
11997 2007-05-01 Jonathan Pobst <monkey@jpobst.com>
11999 * GridItem.cs: Implement 2.0 Tag property.
12001 2007-05-01 Frederik Carlier <frederik.carlier@carlier-online.be>
12003 * TreeNodeCollection.cs: Fix ContainsKey and IndexOfKey methods to use
12004 count instead of Nodes.Length. [Fixes bug #81448]
12006 2007-05-01 Jonathan Pobst <monkey@jpobst.com>
12008 * ComboBox.cs: Fix paramName sent to ArgumentOutOfRangeException's.
12011 2007-05-01 Jonathan Pobst <monkey@jpobst.com>
12012 corcompare work: A - M
12013 * BindingNavigator.cs
12018 * FlowLayoutPanel.cs
12024 2007-05-01 Jonathan Pobst <monkey@jpobst.com>
12026 * Application.cs: Give toolstrips a chance to process mnemonics.
12027 * ToolStrip.cs, ToolStripDropDownButton.cs, ToolStripItem.cs,
12028 ToolStripItemTextRenderEventArgs.cs, ToolStripLabel.cs,
12029 ToolStripMenuItem.cs, ToolStripSplitButton.cs: Implement keyboard mnemonics.
12031 2007-05-01 Jackson Harper <jackson@ximian.com>
12033 * TextBoxBase.cs: Better preferred height, FixedSingle gets the
12035 - Don't set the BoundsSpecified
12037 2007-04-30 Jonathan Pobst <monkey@jpobst.com>
12039 * Application.cs: When using the toolstrip shortcut mechanism, allow the
12040 message to pass through to a regular control if it hosted by a toolstrip.
12041 * ToolStrip.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
12042 ToolStripManager.cs: Enable keyboard navigation for ToolStrips.
12044 2007-04-30 Jonathan Pobst <monkey@jpobst.com>
12046 * TextRenderer.cs: Use the flags argument when using the MeasureString
12047 fallback algorithm.
12049 2007-04-30 Jonathan Pobst <monkey@jpobst.com>
12051 * MenuStrip.cs: Don't let multiple ToolStripSeparators get added to
12052 the MDI menu item. [Fixes bug #81483]
12054 2007-04-30 Gert Driesen <drieseng@users.sourceforge.net>
12056 * DataGridViewColumn.cs: Initialize value of headercell to zero-length
12057 string. When setting Name to null, use zero-length string instead.
12059 2007-04-29 Andreia Gaita <avidigal@novell.com>
12061 * TabControl.cs: Implement missing 2.0 methods (SelectTab,
12062 DeselectTab). Implement missing 2.0 TabPageCollection methods
12063 (Add, ContainsKey, RemoveByKey, IndexOfKey)
12065 2007-04-29 Pedro MartĂnez JuliĂ¡ <pedromj@gmail.com>
12067 * DataGridViewColumn.cs: Make HeaderText take preference over Name.
12069 2007-04-29 Gert Driesen <drieseng@users.sourceforge.net>
12071 * RichTextBox.cs: In LoadFile, use StreamReader to read plain text.
12072 Fixes bug #81479. Include details of exception when LoadFile fails.
12074 2007-04-28 Alan McGovern <alan.mcgovern@gmail.com>
12076 * DrawListViewSubItemEventArgs.cs: Added missing setter
12078 2007-04-27 Andreia Gaita <avidigal@novell.com>
12080 * ToolTip.cs: Add missing 2.0 properties. Implement 2.0 Show and
12081 Hide methods (not complete). Implement missing 2.0 OnPopup event.
12083 2007-04-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12085 * ListView.cs: In ItemControl.OnMouseDown restore a pair of braces I
12086 removed in ly last commit (it was breaking the Label edit feature).
12088 * ThemeWin32Classic.cs: When drawing a ListViewItem use
12089 StringAlignment.Near for LineAlignment (match .Net).
12091 2007-04-27 Andreia Gaita <avidigal@novell.com>
12093 * TabControl.cs: Change SetTab so it adds the tabpage to the list
12094 of controls if it isn't already there - was blowing up when doing
12095 tabcontrol.TabPages[i]=new TabPage().
12096 SetTab now does a replace by removing the page at the index.
12097 Add a new InsertTab method that inserts a page in a given index
12098 instead of replacing.
12099 Implements TabPageCollection.Insert(int, TabPage).
12101 2007-04-27 Chris Toshok <toshok@ximian.com>
12103 * BindingManagerBase.cs: fill in CurrentItemChanged (and have an
12104 internal handler that can be invoked from our subclasses.) Also,
12105 add a comment to PushData about how we need to fix it.
12107 * CurrencyManager.cs: tons of changes here. trying to get things
12108 matching the behavior of .net wrt event orders (ItemChanged,
12109 CurrentChanged, PositionChanged.) I've implemented a private .net
12110 symbol (ChangeRecordState) that appears in stack traces because
12111 it's actually easier to do this than to effective inline all its
12112 various behaviors at every call site.
12114 * RelatedPropertyManager.cs: guard against an exception here by
12115 not using parent.Current if the position is set to -1 (if the
12116 parent datasource is cleared, for instance).
12118 * Binding.cs: don't parse data in PushData (this might be wrong,
12119 but it jives with MS's behavior.) Also, don't call PushData when
12120 we get a CurrentChanged event.
12122 2007-04-27 Andreia Gaita <avidigal@novell.com>
12126 WebBrowserSiteBase.cs,
12127 HtmlDocument.cs: Added stubbed out classes, no real implementations
12130 2007-04-27 Everaldo Canuto <everaldo@simios.org>
12132 * MainMenu.cs: In draw method without parameters call draw method with
12133 PaintEvent, another one (just rect) adjust rectangle and we dont need it
12134 as Rect property is already adjusted. Fixes #80694.
12136 2007-04-27 Jonathan Pobst <monkey@jpobst.com>
12138 * Application.cs: Need to handle keyboard menu deselection here.
12139 * Control.cs: Use WM_SYSKEYUP instead of WM_SYSCOMMAND to start menu keyboard
12140 navigation, allowing keyboard to work on X11.
12141 * ToolStrip.cs: Don't worry about handling the Menu key here anymore.
12143 2007-04-27 Everaldo Canuto <everaldo@simios.org>
12145 * MenuAPI.cs: When deactivate menu verify if hotkey (_) is active and redraw
12146 menu bar. It fixes some drawing issues in menu bar.
12148 2007-04-27 Everaldo Canuto <everaldo@simios.org>
12150 * MenuAPI.cs: Remove unneeded "keynav_state = KeyNavState.Idle" before
12151 Deactivate calls, Deactivate method already do it. Also ser ActiveTracker
12152 when <alt> key is pressed.
12154 2007-04-26 Everaldo Canuto <everaldo@simios.org>
12156 * XplatUIX11.cs: Simplify SystrayRemove to be like other libraries, Gtk as
12157 example just set visible to false and make this prevent from other problems.
12158 In SystrayAdd always remove pending expose. Fixes #81072.
12160 2007-04-26 Marek Safar <marek.safar@gmail.com>
12162 * TextBoxBase.cs (CaretMoved): Consider scroll maximum when scroll
12165 2007-04-26 Alan McGovern <alan.mcgovern@gmail.com>
12167 * ListView.cs: Added three missing 2.0 events and corresponding
12168 EventHandlers. Added the OwnerDraw property.
12169 * DrawListViewColumnHeaderEventHandler.cs: fixed typo
12171 2007-04-26 Alan McGovern <alan.mcgovern@gmail.com>
12173 * DrawListViewItemEventArgs.cs
12174 * DrawListViewSubItemEventArgs.cs: Brought classes up to 2.0 status.
12176 2007-04-26 Alan McGovern <alan.mcgovern@gmail.com>
12178 * TextControl.cs: Fixed typo in constructor
12180 2007-04-26 Jonathan Pobst <monkey@jpobst.com>
12182 * Application.cs: Create a shortcut path so that currently selected
12183 MenuStrips can intercept keyboard events without having focus.
12184 * Control.cs: Handle WM_SYSCOMMAND message to activate MenuStrips.
12185 * MenuStrip.cs, ToolStrip.cs, ToolStripDropDown.cs, ToolStripDropDownItem.cs,
12186 ToolStripItem.cs, ToolStripManager.cs, ToolStripMenuItem.cs: Support
12187 keyboard navigation (arrows, tab, enter, esc) on Windows. Still need to
12188 generate WM_SYSCOMMAND message in X11 for other platforms.
12189 * ToolStripProfessionalRenderer.cs: ToolStripMenuItems need to be painted
12190 in OnRenderMenuItemBackground instead of OnRenderButtonBackground.
12191 * ToolStripSplitButton.cs: Add DefaultItem property.
12193 2007-04-26 Everaldo Canuto <everaldo@simios.org>
12195 * MainMenu.cs: In OnMenuChanged pass PaintEventArgs to Draw method, it
12196 fixes some menu draw problem on Windows with border diferent from default
12197 it also fixes #81403.
12199 2007-04-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
12201 * Form.cs: Refactor WndProc into separate methods, just like Control is
12204 2007-04-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
12206 * Control.cs: set_Text: move the call to the driver into a seperate
12207 virtual method so that Form can override it.
12208 * MaskedTextBox.cs: Corcompare fixes.
12209 * Form.cs: Override UpdateWindowText and only update the styles if the
12210 form has been shown (fixes #81405).
12212 2007-04-25 Jonathan Pobst <monkey@jpobst.com>
12214 * Control.cs, Form.cs: Use the better supported WM_?BUTTONDOWN and
12215 WM_ACTIVATE messages instead of WM_MOUSEACTIVATE and
12216 WM_ACTIVATEAPP. This fixes menus not disappearing on X11 when
12217 the form lost focus or another control was clicked.
12219 2007-04-25 Gert Driesen <drieseng@users.sourceforge.net>
12221 * DataGrid.cs: Uncomment MakeTransparent calls since bug #80151 is
12224 2007-04-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
12226 * DrawListViewColumnHeaderEventHandler.cs, DrawToolTipEventArgs.cs,
12227 DrawListViewItemEventHandler.cs,
12228 DrawListViewSubItemEventHandler.cs, DrawToolTipEventHandler.cs:
12230 * X11Structs.cs: More ToString implementation.
12232 2007-04-25 Jonathan Pobst <monkey@jpobst.com>
12234 * ToolStripDropDownItem.cs: Don't lazy create a DropDown in Dispose.
12235 * ToolStripOverflowButton.cs: Don't lazy create a DropDown in HasDropDownItems.
12237 2007-04-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
12239 * Control.cs: Only raise OnVisibleChanged if we're not recreating the
12241 * FormCollection.cs: Don't add a form if it's already in the
12243 * Form.cs: Change ShowDialog () to call ShowDialog (owner) with a null
12244 according to behaviour and MSDN. The ownerWin32 is the active
12245 window at the moment when we call ShowDialog, not the context's
12246 main form (the context's main form may open another form that opens
12247 a form with ShowDialog, the win32 owner is the second form). Add
12248 and remove forms to the Application.OpenForms in other places to
12249 better match MS behaviour. Add an IsActive property that raises
12250 On(de)Activated only if the active state has changed (we were
12251 raising OnDeactivated before OnActivated while creating forms).
12252 * Application.cs: Refactor Enabling/Disabling of windows for modal
12253 dialog loops out to separate methods, and restore the thread
12254 context when we quit the method. Fixes #81407.
12256 2007-04-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12258 * ListView.cs: In ItemControl.HandleClicks, also fire
12259 2.0 MouseClick or MouseDoubleClick events on the parent,
12260 not only the Click/DoubleClick events.
12262 2007-04-24 Andreia Gaita <avidigal@novell.com>
12264 * TableLayoutSettings.cs:
12265 - Added a GetControls method and a support structure to help the
12266 TypeConverter to enumerate the controls for serialization.
12267 - Added a new serialization constructor.
12268 - Added a isSerialized flag initialized to true on the
12269 serialization constructor so that the TableLayoutPanel.LayoutSettings
12270 setter does not throw the designed NotSupportedOperation exception
12271 when the object is built through deserialization.
12272 - Implemented GetObjectData
12274 * TableLayoutPanel.cs: Added check on LayoutSettings.
12276 2007-04-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12278 * ListView.cs: Report Click and DoubleClick events to the parent
12279 from ItemsMouseUp, instead of ItemsMouseDown. This prevents us
12280 from breaking the click count state when using dialog forms (Control
12281 reports the clicks in a similar fashion). In the previous behaviour
12282 the last WM_LBUTTONUP message in a double click was sent to the
12283 ListView's form, instead of the ListView, which was breaking the click
12284 count for it. Fixes #80387.
12286 2007-04-24 Alan McGovern <alan.mcgovern@gmail.com>
12288 * BindingNavigator.cs : fixed bugs revealed by new nunit tests
12290 2007-04-24 Jonathan Pobst <monkey@jpobst.com>
12292 * ToolStripDropDownItem.cs: Lazy initialize the DropDown. This prevents
12293 us from created dropdowns for menu items that do not have subitems.
12294 * ToolStripItem.cs, ToolStripProfessionalRenderer.cs, ToolStripSplitButton.cs:
12295 Check HasDropDownItems before calling DropDown so a dropdown will not be
12296 created if it isn't needed.
12298 2007-04-24 Jackson Harper <jackson@ximian.com>
12300 * TreeView.cs: Set the first node to the selected node when we get
12301 focus if there is no selected node.
12303 2007-04-24 Andreia Gaita <avidigal@novell.com>
12305 * MimeIcon.cs: remove using blocks so that image streams are
12306 not disposed of. Fixes #80151
12308 2007-04-24 Jackson Harper <jackson@ximian.com>
12310 * TextBoxBase.cs: Fixup the height of textboxes when the control
12313 2007-04-24 Jonathan Pobst <monkey@jpobst.com>
12315 * ToolStrip.cs: Fully implement GetNextItem. Call OnParentRightToLeftChanged
12316 for each ToolStripItem when the parent's RightToLeftChanged is called.
12318 2007-04-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
12320 * ComboBox.cs: Forward ContextMenu to the underlying textbox, if any.
12322 * Control.cs: Replace GetContextMenuInternal() with ContextMenuInternal
12323 property, so that the setter can be overriden too.
12324 * TextBox.cs: Change GetContextMenuInternal() to use
12325 ContextMenuInternal.
12327 2007-04-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
12329 * ThemeWin32Classic.cs: Use a black pen to draw checkboxes, fixes
12332 2007-04-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
12334 * ThemeWin32Classic.cs: Use a black pen to draw checkboxes, fixes
12337 2007-04-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
12339 * MaskedTextBox.cs: Commit this so nobody else starts working on it and
12340 avoid duplicate work. Mostily skeleton code, it's not working at
12343 2007-04-20 Leszek Ciesielski <skolima@gmail.com>
12345 * NotifyIcon.cs : stub for MouseClick event
12346 * Application.cs: stub for SetUnhandledExceptionMode
12348 2007-04-24 Alan McGovern <alan.mcgovern@gmail.com>
12350 * BindingNavigator.cs : Initial (partial) implementation
12352 2007-04-23 Jackson Harper <jackson@ximian.com>
12354 * TreeView.cs: Do not create the treeview's handle when setting
12355 the scroll position.
12356 - ExpandAll needs to compute the scrollbars so it knows which
12357 position to set the bar too.
12359 * TreeNodeCollection.cs: Pass new flag to UpdateScrollBars
12361 2007-04-23 Jackson Harper <jackson@ximian.com>
12363 * TextBoxBase.cs: Non multiline textboxes shouldn't take the enter
12366 2007-04-23 Jonathan Pobst <monkey@jpobst.com>
12368 * ToolStripItem.cs: Make GetImageSize internal.
12369 * ToolStripMenuItem.cs: Use GetImageSize to determine the size we
12370 need to draw an item. Fixes a reported issue where images on menus
12371 that were not 16x16 were drawing incorrectly.
12373 2007-04-21 Miguel de Icaza <miguel@novell.com>
12375 * Padding.cs: Use the converter, fixes the resgen2 issue with
12378 2007-04-21 Jackson Harper <jackson@ximian.com>
12380 * TreeView.cs: Dont try to unhighlight the selected node if there
12381 isn't a selected node.
12383 2007-04-21 Jackson Harper <jackson@ximian.com>
12389 * TreeView.cs: Use the InternalBorderStyle property to set the
12390 initial border style, this forces the client rectangle to be sized
12393 2007-04-20 Jackson Harper <jackson@ximian.com>
12395 * TreeView.cs: Simplify scrolling to the last node after expanding
12397 - Fix some off by ones with setting the bottom.
12399 2007-04-20 Jonathan Pobst <monkey@jpobst.com>
12401 * Control.cs: Use DefaultSize for Size, calculate ClientSize from
12402 that. We were incorrectly doing it the other way around. Also,
12403 update ClientSize if we change the BorderStyle before the control
12406 2007-04-20 Gert Driesen <drieseng@users.sourceforge.net>
12408 * XplatUI.cs: Added Border3DSize, BorderSize, CaptionButtonSize,
12409 DoubleClickSize, DoubleClickTime and FixedFrameBorderSize. Renamed
12410 XplatUIDriver.Caption to CaptionHeight. Spaces to tabs.
12411 * XplatUIDriver.cs: Added Border3DSize, BorderSize, CaptionButtonSize,
12412 DoubleClickSize, DoubleClickTime and FixedFrameBorderSize. Renamed
12413 Caption to CaptionHeight.
12414 * XplatUIX11.cs: Renamed Caption to CaptionHeight.
12415 * Theme.cs: Modified Border3DSize, BorderSize, CaptionButtonSize
12416 and FixedFrameBorderSize to return value from current XplatUI driver.
12417 * XplatUIWin32.cs: Implemented Border3DSize, BorderSize,
12418 CaptionButtonSize, DragFullWindows, DoubleClickSize, DoubleClickTime
12419 and FixedFrameBorderSize using win32 API. Renamed Caption to
12421 * XplatUIOSX.cs: Renamed Caption to CaptionHeight.
12422 * SystemInformation.cs: Fixed typo in BorderSize.
12424 2007-04-20 Gert Driesen <drieseng@users.sourceforge.net>
12426 * XplatUI.cs: Added MenuAccessKeysUnderlined.
12427 * XplatUIDriver.cs: Added MenuAccessKeysUnderlined.
12428 * XplatUIX11.cs: Implemented MenuAccessKeysUnderlined by always
12430 * Theme.cs: Modified MenuAccessKeysUnderlined to return corresponding
12431 value from XplatUI driver.
12432 * XplatUIWin32.cs: Implemented MenuAccessKeysUnderlined using
12433 SystemParametersInfo.
12434 * ThemeWin32Classic.cs: Remove obsolete MenuAccessKeysUnderlined
12436 * XplatUIOSX.cs: Implemented MenuAccessKeysUnderlind by always
12439 2007-04-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
12441 * XplatUIX11.cs, Hwnd.cs: Remove warnings.
12443 2007-04-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
12445 * MessageBox.cs, XplatUIX11.cs, Hwnd.cs: Remove warnings.
12447 2007-04-20 Jonathan Pobst <monkey@jpobst.com>
12449 * ToolStripManager.cs: Fix a reported InvalidCastException when unmerging
12450 MenuStrips that contain ToolStripSeparators.
12452 2007-04-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
12454 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Add
12455 DefineStdCursorBitmap.
12456 * Cursor.cs: Add an internal constructor so that the Cursor knows if it
12457 has been created off a standard cursor. This is used to get a
12458 bitmap of the standard cursor when Draw or DrawStretched is called
12459 in order to draw the cursor.
12460 * X11Structs.cs: Added XcursorImage and XcursorImages.
12461 * XplatUIX11.cs, XplatUIWin32.cs: Add and implement
12462 DefineStdCursorBitmap.
12463 * Cursors.cs: Update all relevant creations of Cursor to use the new
12464 internal constructor.
12466 2007-04-19 Jackson Harper <jackson@ximian.com>
12468 * TextBox.cs: Move the has_been_focused into the base control, so
12469 some of the text adding methods can manipulate it (probably time
12470 for a better name for this flag too).
12471 - Call a new version of selectall that doesn't scroll
12472 * TextBoxBase.cs: When we append text, if the document is empty,
12473 don't scroll. If the document has text already, we scroll to the
12474 end of the appended text.
12475 - When the text is changed, we reset the has_been_focused, so the
12476 next time the control gets focused, all the text is selected.
12478 2007-04-19 Jackson Harper <jackson@ximian.com>
12480 * TextControl.cs: Move the margins to the document, add a method
12481 so the margin sizes can be updated.
12482 * TextBoxBase.cs: When the border style is changed, update the
12485 2007-04-19 Jonathan Pobst <monkey@jpobst.com>
12487 * Control.cs: Respect DefaultPadding.
12488 * GroupBox.cs: Implement DefaultPadding, DisplayRectangle takes
12489 padding into account.
12490 * ToolStrip.cs: Remove setting padding to DefaultPadding in constructor.
12492 2007-04-19 Jackson Harper <jackson@ximian.com>
12494 * TextControl.cs: Oops, we need to use the ClientRect not the
12497 2007-04-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12499 * ListView.cs: In ItemControl.ItemsMouseDown, take into
12500 account the double clicks when CheckBoxes are used and
12501 the pointer is inside the checkbox. Fixes part of #81191.
12503 2007-04-18 Jackson Harper <jackson@ximian.com>
12505 * TextControl.cs: Pressing the end key shouldn't move the caret
12506 past the line ending.
12507 * TextBoxBase.cs: We can still delete if we are in the line
12508 ending and the combine will just kill the existing line ending.
12510 2007-04-18 Jackson Harper <jackson@ximian.com>
12512 * TextControl.cs: We can't move lines, then invalidate their
12513 bounds, we need to get the old bounds and combine that with the
12515 * TextBoxBase.cs: Before combining two lines for a delete, we need
12516 to invalidate the area of the old line, since that will be moved
12517 in the combine operation.
12519 2007-04-18 Everaldo Canuto <everaldo@simios.org>
12521 * LinkLabel.cs: In OnPaint invoke draw background to fix problems
12522 with transparent background. Fixes #80482.
12524 2007-04-18 Jonathan Pobst <monkey@jpobst.com>
12526 * PictureBox.cs: Refresh on resize when SizeMode = Zoom.
12527 * ThemeWin32Classic.cs: Implement PictureBox.SizeMode = Zoom.
12530 2007-04-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
12532 * CreateParams.cs: Add a couple of helper methods and do a less string
12533 concatenation in ToString.
12534 * XplatUIX11.cs: Add an TranslateClientRectangleToXClientRectangle
12535 overload that takes a Control parameter, since this method may be
12536 called before a control is assigned to the hwnd (from
12537 CreateWindow), and update CreateWindow to use the new overload. In
12538 GetMenuOrigin subtract the title bar from the y position if the
12539 form has a window manager (since we're painting it and not X).
12540 * XplatUIWin32.cs: If we can get a form in GetMenuOrigin use the form's
12541 CreateParams to calculate the origin (since border sizes may vary).
12542 In ScreenToMenu only subtract the title height if we actually have
12544 * MdiWindowManager.cs: Override MenuHeight to always return 0, since
12545 mdi children never have menus of themselves.
12546 * InternalWindowManager.cs: Implement menu handling like form does.
12547 Added GetMenuOrigin to calculate the menu origin, can't use the
12548 CreateParams from the form like normally since it's lying.
12549 * Hwnd.cs: Implement GetBorderSize better (in the sense more
12550 windows-like) and add Inflate and comparison operators to the
12551 Borders type. When calculating MenuOrigin and it's a form with a
12552 window manager, use the window manager to calculate it.
12554 2007-04-17 Chris Toshok <toshok@ximian.com>
12556 * Control.cs (CreateControl): turns out in 2.0 we don't need this
12557 OnBindingContextChanged thing here. It's only generated from
12558 ContainerControl.OnCreateControl. Fixes a newly written unit test
12559 - BindingTest.BindingContextChangedTest4.
12561 2007-04-17 Jackson Harper <jackson@ximian.com>
12563 * ScrollBar.cs: When setting values, make sure the current
12564 position stays within the new values range.
12566 2007-04-17 Chris Toshok <toshok@ximian.com>
12568 * Control.cs (CreateControl): talk about a bizarre corner case.
12569 Don't emit OnBindingContextChanged here if we're a parentless
12570 control (i.e. if we're a form.). Fixes
12571 BindingTest.BindingContextChangedTest2.
12573 2007-04-17 Everaldo Canuto <everaldo@simios.org>
12575 * ButtonBase.cs: Remove TextFormatFlags.WordBreak to mimic same behavior
12576 from win32. Fixes #81255.
12578 2007-04-17 Everaldo Canuto <everaldo@simios.org>
12580 * ThemeWin32Classic.cs: Remove text offset from DrawButtonText as it is
12581 already present in CalculateButtonTextAndImageLayout.
12583 2007-04-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
12585 * XplatUIX11.cs: When setting min/max size for a window we need to
12586 translate the coordinates to x coordinates. Create an overload of
12587 SetWindowMinMax that takes a CreateParams handling this, and change
12588 SetWMStyles to call this function (can't use Control.FromHandle in
12589 the SetWindowMinMax to get the control/CreateParams from the handle
12590 because the handle might not have been assigned to the control
12591 yet). Fixes #81371.
12593 2007-04-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12595 * ListView.cs: In ItemControl.ItemMouseDown, don't change check state
12596 if StateImageList is non-null and it has less than two items (match MS
12597 behaviour). Also, in HandleNavKeys handle the Space key, calling
12598 the new ToggleItemsCheckState method, which tries to change the
12599 checked state of the selected items. Fixes part of #81191.
12601 2007-04-16 Jackson Harper <jackson@ximian.com>
12603 * RichTextBox.cs: namespace cleanup.
12605 2007-04-16 Everaldo Canuto <everaldo@simios.org>
12607 * XplatUIWin32.cs: Back last parameter to true in SetClipRegion.
12609 2007-04-16 Everaldo Canuto <everaldo@simios.org>
12612 * Control.cs: Call invalidate in set_Region.
12614 * XplatUIX11.cs, XplatUIWin32.cs: Remove invalidate from SetClipRegion as
12615 it dont works here.
12617 2007-04-16 Jackson Harper <jackson@ximian.com>
12619 * TextBoxBase.cs: When enter is pressed, we need to update all
12620 lines below the current.
12622 2007-04-16 Jonathan Pobst <jpobst@monkey.com>
12624 * MdiClient.cs: Implement implicit menu merging for MDI
12625 children. When a child form is active, if it has a menustrip
12626 and the parent form has a MainMenuStrip, automatically merge
12629 2007-04-15 Andreia Gaita <avidigal@novell.com>
12631 * TabControl.cs: Refactored sizing methods to not repeat
12632 code all over the place. Tab bounds are now calculated
12633 as if alignment is top and single line, and only when
12634 setting the bounds are the positions adjusted according
12635 to alignment. Replaced hardcoded positions, spacings and
12636 paddings by getting the values the ThemeEngine.
12639 * Theme.cs: Change TabControl properties and methods so
12640 that all start with TabControl*. Added more properties
12641 to help remove hardcoded values on tabcontrol.
12642 Add CPDrawBorder3D declaration so the Theming classes
12645 * ThemeClearlooks.cs, ThemeNice.cs: Method signature changes from Theme.
12647 * ThemeWin32Classic.cs: Rector TabControl out to the TabControlPainter
12648 on the Theming namespace, and call the appropriate methods here.
12649 Change CPDrawBorder3D to public.
12651 2007-04-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12653 * Control.cs: In WmRButtonUp, send the WM_CONTEXTMENU message to
12654 the control after firing the OnMouseUp event, instead of sending
12655 the message before the mentioned event. This is so we can match the
12656 MS behaviour. Fixes part of #80385.
12658 2007-04-13 Jonathan Pobst <monkey@jpobst.com>
12660 * ToolStripItem.cs: Call the RightToLeftChanged event when setting the
12661 RightToLeft property.
12663 2007-04-13 Jonathan Pobst <monkey@jpobst.com>
12665 * ToolStrip.cs: Add properties and internal methods to support merging.
12666 * ToolStripItem.cs: Add MergeAction and MergeIndex.
12667 * ToolStripItemCollection.cs: Add Insert and Remove methods that do
12668 not trigger reparenting or layouts.
12669 * ToolStripManager.cs: Add Merge and RevertMerge methods.
12670 * ToolStripOverflow.cs: Add a convenience method to find the ToolStrip that
12671 is hosting the overflow menu.
12673 2007-04-13 Jackson Harper <jackson@ximian.com>
12675 * TextControl.cs: Set the line ending correctly for the first
12678 2007-04-13 Sebastien Pouliot <sebastien@ximian.com>
12680 * Theme.cs: Update GetMethod to get the new definition for
12681 KnownColors.Update (and fix theme color updates).
12683 2007-04-12 Everaldo Canuto <everaldo@simios.org>
12685 * MessageBox.cs: Fix some test and button position.
12687 2007-04-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12689 * Form.cs: Consider the implicit controls in
12690 GetRealChildAtPoint. We need it since this method
12691 is called on Form when handling the some messages in
12692 WndProc, and need to consider those implicit ones too.
12695 2007-04-12 Jonathan Pobst <monkey@jpobst.com>
12697 * ToolStripMenuItem.cs: Display the ShortcutKeyDisplayString even
12698 if there are no ShortcutKeys set.
12699 * ToolStripProfessionalRenderer.cs: If an item has had its BackColor
12700 set, use it when painting.
12702 2007-04-12 Jackson Harper <jackson@ximian.com>
12704 * TextControl.cs: Fix some off-by-one issues in line duplication
12705 and insertion in the undo manager. Also, overwrite the first tag
12706 of a line on insert, if it is just a zero lengthed tag. This
12707 prevents us from getting an extra stranded tag at the beginning of
12710 2007-04-11 Everaldo Canuto <everaldo@simios.org>
12712 * Label.cs: Remove check for handle created in CalcAutoSize, we need
12713 to calculated proper size including when handle was not created yet.
12715 2007-04-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
12717 * MdiWindowManager.cs: When moving a form, allow the form to be moved
12718 when the mouse is outside of it's parent's client rectangle. Fixes
12719 #79982 (take 3, part 2).
12721 2007-04-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
12723 * X11Structs.cs: Add a few ToString() overrides.
12724 * XplatUIX11.cs: Added GetTopLevelWindowLocation to try to calculate
12725 the window location in a window-manager independent way. Reworked
12726 FrameExtents, it now actually works. Reworked AddConfigureNotify
12727 and ReparentNotify handling to use GetTopLevelWindowLocation
12728 instead of the earlier, more hacky solution. Reworked SetWMStyles,
12729 hopefully for the better: we now set _NET_WM_WINDOW_TYPE* for all
12730 windows, DIALOG for modal windows, UTILITY for toolboxes and NORMAL
12731 for all other windows (fixes #81281 part 1), a toolwindow is hidden
12732 from the taskbar if it has a parent (fixes #81281 part 2 for kwin),
12733 and generally refactored to do as few calculations as possible
12736 2007-04-09 Sebastien Pouliot <sebastien@ximian.com>
12738 * Theme.cs: Change "reflective-contract" between MWF and SD to
12739 minimize # of calls, avoid Color serialization and avoid updating
12740 every "known colors" each time a single one is updated.
12742 2007-04-09 Gert Driesen <drieseng@users.sourceforge.net>
12744 * DataGridTextBoxColumn.cs: Only set IsInEditOrNavigateMode to false
12745 when not readonly and the text is explicitly set. Code style updates.
12746 * DataGridTableStyle.cs: Removed extra line.
12747 * DataGrid.cs: Code style updates. Removed extra whitespace.
12748 * DataGridColumnStyle.cs: Code style updates. Removed extra
12751 2007-04-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
12753 * XplatUIX11.cs: Added comment that "fixes" #80021.
12755 2007-04-09 Jackson Harper <jackson@ximian.com>
12757 * TextControl.cs: We don't need this -1 on the line count anymore.
12759 2007-04-09 Gert Driesen <drieseng@users.sourceforge.net>
12761 * DataGridTextBoxColumn.cs: In Commit, use TypeConverter to convert
12762 entered value to underlying type, and convert it back to a string to
12763 apply formatting. Modified GetFormattedValue to use TypeConverter
12766 2007-04-08 Gert Driesen <drieseng@users.sourceforge.net>
12768 * ListViewItem.cs: Added null checks. Avoid duplicating code in ctors.
12769 Use SubItems property when we want to ensure there's at least one
12770 subitem. Modified SubItems property to ensure there's always at least
12771 one subitem. Avoid using ListViewSubItemCollection.AddRange to match
12772 the NRE's reported by MS.
12774 2007-04-07 Gert Driesen <drieseng@users.sourceforge.net>
12776 * ProgressBar.cs: On 2.0 profile, default forecolor is Highlight. Added
12777 ResetForeColor override on 2.0. Fixed a few API compatibility issues.
12778 Spaces to tabs. Removed extra tabs.
12780 2007-04-06 Jonathan Pobst <monkey@jpobst.com>
12782 * ToolStripSplitStackLayout.cs: If we run out of things to hide, don't
12783 infinite loop. (Forgot to copy to the horizontal toolstrip case.)
12785 2007-04-06 Jackson Harper <jackson@ximian.com>
12787 * TextBoxBase.cs: When a delete removes a line, recalculate all
12788 lines below that line (they need to get offsets setup correctly)
12791 2007-04-05 Jackson Harper <jackson@ximian.com>
12793 * TextControl.cs: We need to invalidate across the width of the
12794 document when we are invalidating multiple lines.
12795 * TextBoxBase.cs: Don't delete into the line ending.
12797 2007-04-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12799 * ListView.cs: Restore the check for the MouseHover event
12800 in ListView. It looks like the ListView fires more than one MouseHover
12801 event when HoverSelection is true _only_ in weird-corner scenarios, but
12802 in most of the cases it only fires one. Also, add the 2.0 ItemMouseHover
12805 2007-04-05 Mike Kestner <mkestner@novell.com>
12807 * ListView.cs : raise MouseDown before updating selection.
12808 [Fixes #80373 tab 1&3]
12810 2007-04-05 Jonathan Pobst <monkey@jpobst.com>
12812 * ToolStripRenderer.cs: Add static method to mirror image.
12813 * ToolStripProfessionalRenderer.cs: Support ImageTransparentColor
12814 and RightToLeftAutoMirrorImage.
12815 * ToolStripItem.cs: Remove MonoTODO from ImageTransparentColor.
12817 2007-04-05 Jonathan Pobst <monkey@jpobst.com>
12819 * ToolStripSplitStackLayout.cs: Support Alignment property.
12820 * ToolStripItem.cs: Remove MonoTODO from the Alignment property.
12822 2007-04-05 Jackson Harper <jackson@ximian.com>
12824 * TextControl.cs: Move around the line endings when crossing line
12826 - When combining lines, strip the ending text off the first line.
12828 2007-04-05 Jackson Harper <jackson@ximian.com>
12831 * TextBoxBase.cs: Try to never move the cursor into the line
12834 2007-04-04 Jonathan Pobst <monkey@jpobst.com>
12836 * ToolStripItem.cs: Make sure we aren't firing mouse events when
12837 the item is disabled. Also add a few missing methods.
12839 2007-04-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12841 * ListView.cs: We don't need the MouseEnter/MouseLeave check
12842 to fire just one MouseHover event when HoverSelection is true, since
12843 .Net does fire more than one MouseHover event in that scenario. Also,
12844 fix the selection in HoverSelection, by invoking UpdateMultiSelect
12845 if MultiSelect is true, instead of only setting ListViewItem.Selected.
12846 Finally, we need to reset the Hover logic in MouseMove, even when we
12847 don't have a selected item.
12849 2007-04-04 Jonathan Pobst <monkey@jpobst.com>
12851 * ToolStrip.cs: Add several missing methods, properties, and events.
12853 2007-04-04 Chris Toshok <toshok@ximian.com>
12855 * DataGridTextBoxColumn.cs: set the bounds of the text box to
12856 (0,0,0,0) in Commit, as MS does.
12858 * DataGrid.cs: call EndEdit() from Select() as microsoft does, and
12859 make sure we set CurrentRow on a row header click *before* calling
12860 Select. This moves the current cell (and the textbox) to the new
12861 row. The call to Select then hides the textbox, giving us the
12862 correct behavior. Fixes #80362.
12864 * CurrencyManager.cs (UpdateIsBinding): raise ItemChanged (-1).
12865 (ListChangedHandler): reorder the position/current changed events,
12866 and call UpdateIsBinding in the ItemAdded case.
12868 * GridColumnStylesCollection.cs: add some columns events, one of
12869 which raises the CollectionChanged event.
12871 2007-04-04 Jackson Harper <jackson@ximian.com>
12873 * TextControl.cs: When we delete multiple selection lines
12874 invalidate the selection area, don't need to do that for single
12875 lines because the final update view will handle it.
12877 2007-04-04 Jonathan Pobst <monkey@jpobst.com>
12879 * Control.cs: When we CreateControl, we need to also create all of the
12880 control's children. The child's OnLoad must also fire before the parent's
12881 OnLoad. Fixes the toolbox size in PDN.
12883 2007-04-04 Jackson Harper <jackson@ximian.com>
12885 * TextBoxBase.cs: When the user presses enter, insert a line
12886 ending into the text. (Maybe this would be a good spot for
12887 Environment.NewLine).
12888 * TextControl.cs: Remove undo manager hack, line endings get
12889 inserted properly now.
12891 2007-04-04 Everaldo Canuto <everaldo@simios.org>
12894 - Remove unneeded parameters in UpdateCursor.
12895 - Fix UpdateCursor to check if menu is active.
12896 - Call UpdateCursor when menu deactivate my click.
12897 [Fixes remaining issues from #80410]
12899 2007-04-04 Everaldo Canuto <everaldo@simios.org>
12901 * Control.cs: GetRealChildAtPoint method added, it make an
12902 recursive child control search for the point.
12904 * Form.cs: Makes use of GetRealChildAtPoint in mouse event after closes
12907 * MenuAPI.cs: Makes use of GetRealChildAtPoint in UpdateCursor.
12909 2007-04-03 Everaldo Canuto <everaldo@simios.org>
12911 * Form.cs: Fix mouse position when send back mouse event after closes
12914 2007-04-03 Everaldo Canuto <everaldo@simios.org>
12916 * Form.cs: Simplify the BUTTONDOWN for active tracker.
12918 2007-04-03 Jonathan Pobst <monkey@jpobst.com>
12920 * Control.cs: Fix an issue where if a user resized a control inside
12921 a sizing method like OnResize, we would overwrite their explicit
12922 value. Also, only call DefaultSize once in the constructor instead
12923 of 4 times. Also, do not call SetBoundsCore from SetBounds if
12924 nothing actually changed.
12926 2007-04-03 Jackson Harper <jackson@ximian.com>
12928 * TextControl.cs: Don't attempt to copy text for lines with no
12929 text in them (technically this shouldn't happen, but we aren't
12930 always inserting line endings when we should be).
12932 2007-04-03 Jackson Harper <jackson@ximian.com>
12934 * TextBoxBase.cs: Calculate the scrollbars before calculating the
12935 document, because this sets some of the document size properties
12938 2007-04-03 Jackson Harper <jackson@ximian.com>
12940 * TextBoxBase.cs: We need to calculate maximums even if this is
12941 not a multiline control, because the maxs are used for scrolling.
12942 - Display the caret after doing a page up/down, we need to
12943 manually display it because a proper CaretMoved event isn't
12944 triggered (this is because of the way the math is done to
12945 determine how far to scroll).
12947 2007-04-03 Jonathan Pobst <monkey@jpobst.com>
12949 * ToolBar.cs: Fix some breakage caused by the SetBoundsCore change.
12950 (ToolBar was relying on SetBoundsCore to default the values sent
12951 base off of BoundsSpecified.)
12953 2007-04-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
12955 * DateTimePicker.cs: Change Text so that when a null value or empty
12956 string is assigned to the test we always raise ValueChanged and
12957 TextChanged (earlier implementation would only raise ValueChanged
12958 if the current date value was different from DateTime.Now).
12960 2007-04-03 Andreia Gaita <avidigal@novell.com>
12962 * ButtonBase: Call update after invalidation, fixes #80194
12964 2007-04-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
12966 * ThemeWin32Classic.cs: Draw StatusBar using double buffering. Fixes
12969 2007-04-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
12971 * XplatUIX11.cs: SetWMStyles: If the control is a form with
12972 FormBorderStyle = None, don't give the window any decorations.
12975 2007-04-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
12977 * XplatUI.cs, XplatUIDriver.cs: Updated CalculateWindowRect parameters.
12978 * CreateParams.cs: Fix IsSet, wasn't working correctly when the style
12979 to check for is a mix of several styles (such as WS_CAPTION for
12981 * Control.cs: Don't paint an area bigger than the client area when
12982 painting the background colour. Add an internal GetCreateParams.
12983 Update calls to XplatUI.CalculateWindowRect due to API change.
12984 * XplatUIX11.cs: In PerformNCCalc set the initial size to the whole
12985 window's size, and handle WM_NCCALCSIZE in DefWndProc to calculate
12986 the size if it hasn't been handled by any windows. When creating
12987 and moving windows, X wants the location of the entire window, but
12988 the size of the client window, so add
12989 TranslateClientRectangleToXClientRectangle,
12990 TranslateWindowSizeToXWindowSIze and
12991 TranslatedXWindowSizeToWindowSize to cope with this, and call them
12992 before every window creation and move. Update CalculateWIndowRect
12993 to use Hwnd.GetWindowRect (one step towards removing DeriveStyles).
12994 In AddConfigureNotify don't do anything if the hwnd is a zombie
12995 (fixes the BadWindow we were getting while running the tests),
12996 always calculate the offsets when it's a parentless window, not
12997 only when reparented, and translate the window size, since we're
12998 getting the client size of the whole window, excluding entire
13000 * Theme.cs: Added BorderSizableSize.
13001 * XplatUIWin32.cs: Fix RECT Height and Width. Don't fake styles here
13002 anymore. Update calls to XplatUI.CalculateWindowRect due to API
13004 * Form.cs: Update calls to XplatUI.CalculateWindowRect due to API
13005 change. Fake the window styles here instead of in XplatUIWin32 so
13006 that all back-ends get the same window styles (and it's Form that's
13007 deciding when to use wm, not the Win32 backend anyways)
13008 * Hwnd.cs: Completely reworked GetWindowRectangle and
13009 GetClientRectangle - they are now passed a CreateParams and they
13010 only use Style and ExStyle to determine the rectangles (they should
13011 now work just like Win32AdjustWindowRectEx - though quite a few
13012 special cases are probably missing). They should also be 100%
13013 complimentary (i.e. GetWindowRectangle (GetClientRectangle (rect))
13014 == rect), and all numbers (borders, menu sizes) are taken from the
13015 current theme. Added a GetBorders helper function that will return
13016 the borders for any given CreateParams (including captions and
13017 menus), and GetBorderSize that returns the given border size only.
13018 * XplatUIOSX.cs: Update calls to CalculateWindowRect and
13019 Hwnd.GetClientRectangle.
13021 2007-04-02 Chris Toshok <toshok@ximian.com>
13023 * DataGridBoolColumn.cs: rewrite things a bit, and fix up the
13024 logic between the values we present to the user and the values
13025 which are stored in the column's property. Also, don't call
13026 GetPreferredSize - it's virtual. Along the way, fix bug #80965.
13028 2007-04-02 Jackson Harper <jackson@ximian.com>
13030 * TextBoxBase.cs: Scroll faster!
13032 2007-04-02 Jonathan Pobst <monkey@jpobst.com>
13034 * StatusStrip.cs: Layout fixes for PDN.
13035 * ToolStrip.cs: Set item's available to true, and placement to main when
13037 * ToolStripItem.cs: Fix an Available issue, check that Parent is really
13038 changing in setter before doing any work, add InternalVisible.
13039 * ToolStripPanel.cs: Remove unused variable to fix compiler warning.
13040 * ToolStripSplitStackLayout.cs: If we run out of things to hide, don't
13043 2007-04-02 Jackson Harper <jackson@ximian.com>
13045 * TextBox.cs: LBUTTON does not make the textbox select all of it's
13048 2007-04-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
13050 * XplatUIWin32.cs: Use the previous change in SetParent for forms only.
13051 Makes ToolStripComboBoxes show up again.
13053 2007-04-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13055 * ListView.cs: Add a hover_pending field in ListView
13056 to fire just one OnMouseHover event for each MouseEnter/MouseLeave
13057 cycle (we are resetting the MouseHover logic in XplatUI
13058 to handle HoverSelection). Fixes #80429.
13060 2007-04-02 Jackson Harper <jackson@ximian.com>
13062 * TextControl.cs: Make sure the attributes get set on the last
13064 - Still have to do the end tag if we have stepped all the ways to
13067 2007-04-02 Sebastien Pouliot <sebastien@ximian.com>
13069 * XplatUIOSX.cs, XplatUIX11.cs, XplatUIX11GTK.cs: Remove dependency
13070 on an internal libgdiplus call when the information is already
13071 available via the public API.
13073 2007-04-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
13075 * Control.cs: Call ContainerControl.ChildControlRemoved whenever a
13076 control is removed from a control collecftion.
13077 * XplatUIX11.cs: The first location for toplevel form is (22, 22).
13078 Fixes FormPropertyTest (failed on rare occasions).
13079 * XplatUIWin32.cs: Add a workaround in SetParent for strange behaviour
13080 of Win32SetParent (when changing from no parent to a parent it
13081 might add the new parent's location in screen coordinates to this
13082 window's location).
13083 * Form.cs: Rework ChangingParent once again, now the handle is
13084 recreated whenever a FormWindowManager is added or removed (that is
13085 whenever a normal form is parented or abandoned). Also change
13086 CreateParams so that all non-toplevel windows always get the
13087 specified sice (StartupPosition is never considered for
13088 non-TopLevel forms).
13089 * ContainerControl.cs: Add ChildControlRemoved, the container control
13090 needs to be notified when a control is removed from it's
13091 collection, in the case the removed control is the active control.
13093 2007-04-02 Jackson Harper <jackson@ximian.com>
13095 * RichTextBox.cs: Use the new methods for setting the font and
13096 color, these methods set the specified attribute without
13097 overriding the other attributes.
13099 2007-04-02 Jonathan Pobst <monkey@jpobst.com>
13101 * ToolStripPanel.cs: Fixes for better layouts in PDN.
13103 2007-03-31 Gert Driesen <drieseng@users.sourceforge.net>
13105 * TextBox.cs: Added internal ChangeBackColor method to special-case
13106 Color.Empty. Added check for invalid ScrollBars value.
13107 * TextBoxBase.cs: Added internal ChangeBackColor method.
13108 * RichTextBox.cs: Only set backcolor_set on 2.0 profile. Added
13109 internal ChangeBackColor method to special-case Color.Empty. Added
13110 check for invalid ScrollBars value.
13112 2007-03-30 Everaldo Canuto <everaldo@simios.org>
13114 * MenuItem.cs: On invalidate prevent form to create handle. [Fixes #81272]
13116 2007-03-30 Jonathan Pobst <monkey@jpobst.com>
13118 * ScollableControl.cs: Add HorizontalScroll and VerticalScroll properties.
13119 * ScrollProperties.cs, HScrollProperties.cs, VScrollProperties.cs: Added.
13120 [Based on submitted patch from Olivier Duff.]
13122 2007-03-30 Jackson Harper <jackson@ximian.com>
13124 * TextBox.cs: Only select all on initial focus if the user has not
13125 specified a selection area.
13127 2007-03-30 Jonathan Pobst <monkey@jpobst.com>
13129 * UserControl.cs: Override CreateParams.
13131 2007-03-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
13135 * XplatUI.cs, XplatUIDriver.cs: Updated CalculateWindowRect parameters.
13136 * CreateParams.cs: Fix IsSet, wasn't working correctly when the style to
13137 check for is a mix of several styles (such as WS_CAPTION for instance).
13138 * Control.cs: Don't paint an area bigger than the client area when painting
13139 the background colour. Add an internal GetCreateParams. Update calls to
13140 XplatUI.CalculateWindowRect due to API change.
13141 * XplatUIX11.cs: In PerformNCCalc set the initial size to the whole window's
13142 size, and handle WM_NCCALCSIZE in DefWndProc to calculate the size if it
13143 hasn't been handled by any windows. When creating and moving windows, X
13144 wants the location of the entire window, but the size of the client
13145 window, so add TranslateClientRectangleToXClientRectangle,
13146 TranslateWindowSizeToXWindowSIze and TranslatedXWindowSizeToWindowSize
13147 to cope with this, and call them before every window creation and move.
13148 Update CalculateWIndowRect to use Hwnd.GetWindowRect (one step towards
13149 removing DeriveStyles). In AddConfigureNotify don't do anything if the
13150 hwnd is a zombie (fixes the BadWindow we were getting while running the
13151 tests), always calculate the offsets when it's a parentless window, not
13152 only when reparented, and translate the window size, since we're getting
13153 the client size of the whole window, excluding entire window.
13154 * Theme.cs: Added BorderSizableSize.
13155 * XplatUIWin32.cs: Fix RECT Height and Width. Don't fake styles here
13156 anymore. Update calls to XplatUI.CalculateWindowRect due to API change.
13157 * Form.cs: Update calls to XplatUI.CalculateWindowRect due to API change.
13158 Fake the window styles here instead of in XplatUIWin32 so that all
13159 back-ends get the same window styles (and it's Form that's deciding when
13160 to use wm, not the Win32 backend anyways)
13161 * Hwnd.cs: Completely reworked GetWindowRectangle and GetClientRectangle -
13162 they are now passed a CreateParams and they only use Style and ExStyle
13163 to determine the rectangles (they should now work just like
13164 Win32AdjustWindowRectEx - though quite a few special cases are probably
13165 missing). They should also be 100% complimentary (i.e. GetWindowRectangle
13166 (GetClientRectangle (rect)) == rect), and all numbers (borders, menu
13167 sizes) are taken from the current theme. Added a GetBorders helper
13168 function that will return the borders for any given CreateParams
13169 (including captions and menus), and GetBorderSize that returns the given
13171 * XplatUIOSX.cs: Update calls to CalculateWindowRect and
13172 Hwnd.GetClientRectangle.
13174 2007-03-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
13176 * Form.cs: Don't layout mdi children on MdiParent creation, the initial
13177 layout of the mdi children is handled by CreateParams. Fixes
13180 2007-03-29 Everaldo Canuto <everaldo@simios.org>
13182 * MenuAPI.cs: Make OnMouseDown returns a boolean to identify if event is
13185 * Form.cs: When active tracker mouse down is not processed, send event
13186 back to control inside mouse position. [Fixes #81227]
13188 2007-03-29 Jonathan Pobst <monkey@jpobst.com>
13190 * ComboBox.cs: Override the ComboListBox's ActivateOnShow property and
13191 remove WS_VISIBLE from CreateParams to prevent combobox dropdowns from
13192 stealing focus from the active form on Windows. (Control will be made
13193 visible in ShowWindow.)
13195 2007-03-29 Mike Kestner <mkestner@novell.com>
13197 * ImageList.cs : add internal Changed event.
13198 * ListView.cs : hook up to StateImageList.Changed to perform
13199 invalidations when the the state icon list changes. [Fixes #81191]
13201 2007-03-29 Jonathan Pobst <monkey@jpobst.com>
13203 * ToolTip.cs: Override the ToolTipWindow's ActivateOnShow property
13204 to prevent tooltips from stealing focus from the active form on Windows.
13206 2007-03-29 Everaldo Canuto <everaldo@simios.org>
13208 * ThemeWin32Classic.cs: Small stetic fixes in notifyicon balloon.
13210 * ThemeClearlooks.cs: Implement notifyicon balloon for clearlooks theme.
13212 2007-03-29 Everaldo Canuto <everaldo@simios.org>
13214 * NotifyIcon.cs, ThemeWin32Classic.cs: Icon support added to notifyicon
13217 2007-03-29 Jackson Harper <jackson@ximian.com>
13219 * TextControl.cs: When deleting text from non multiline textboxes,
13220 we need to update the entire document, because line offsets will
13223 2007-03-29 Everaldo Canuto <everaldo@simios.org>
13225 * XplatUIX11.cs, ThemeWin32Classic.cs, Theme.cs: ShowBalloonWindow method
13226 added to theme, now we can create themes that uses diferent notify engines
13227 like notification-daemon from galago project or growl for Mac OS.
13229 2007-03-28 Everaldo Canuto <everaldo@simios.org>
13231 * NotifyIcon.cs: Prevent Balloon to show in task bar.
13233 2007-03-28 Everaldo Canuto <everaldo@simios.org>
13235 * XplatUIX11.cs: Prevent system to open more than one balloon.
13237 * NotifyIcon.cs: Prevent system to open more than one balloon and remove
13238 some compiler warning messages.
13240 2007-03-28 Everaldo Canuto <everaldo@simios.org>
13244 * XplatUIX11.cs: Implement SystrayBalloon for X11 systems.
13246 * ThemeWin32Classic.cs, Theme.cs: DrawBalloonWindow and BalloonWindowRect
13247 implemented, this methods is used by NotifyIcon.BalloonWindow class.
13249 * NotifyIcon.cs: BalloonWindow class added to support Balloon in X11
13252 2007-03-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13254 * ListViewItem.cs: Forgot to make Invalidate internal.
13256 2007-03-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13258 * ListView.cs: Add a InvalidateSelection method to
13259 invalidate methods which are currently selected, and call
13260 it when setting FullRowSelect and HideSelection, instead of
13263 2007-03-28 Chris Toshok <toshok@ximian.com>
13265 * XplatUIX11.cs (UnmapWindow): reindent this block.
13267 * DataGrid.cs (UpdateSelectionAfterCursorMove): we need to update
13268 the selection_start if we're moving the selection (that is, not
13269 extending it). Fixes bug #80461.
13271 2007-03-28 Jonathan Pobst <monkey@jpobst.com>
13273 * ProgressBar.cs: Make the default MarqueeAnimationSpeed = 100.
13274 * ToolStripPanel.cs: Fix RowMargin, Renderer, RenderMode, and
13275 create private ControlCollection.
13277 2007-03-28 Jonathan Pobst <monkey@jpobst.com>
13279 * Control.cs: We need to call OnVisibleChanged for our implicit
13280 children as well as our normal children. Fixes scrollbars in
13281 comboboxes not showing up.
13283 2007-03-28 Jonathan Pobst <monkey@jpobst.com>
13285 * Control.cs, Form.cs: Anywhere we call CreateHandle, we need to do
13286 the check for IsHandleCreated first. The check in CreateHandle is not
13287 good enough because CreateHandle can be overriden, and the override
13288 should not be called if the handle is already created.
13290 2007-03-28 Jonathan Pobst <monkey@jpobst.com>
13292 * ToolStrip.cs: Remove MonoTODO for tooltips.
13293 * ToolStripComboBox.cs: Fix MonoTODO for DropDownHeight and events.
13294 * ToolStripContainer.cs: Add custom ControlCollection class.
13295 * ToolStripContentPanel.cs: Fix Renderer setting to match MS behavior.
13296 * ToolStripDropDown.cs: Add some missing properties/methods.
13297 * ToolStripDropDownMenu.cs: Override OnLayout and SetDisplayedItems.
13298 * ToolStripItem.cs: Remove MonoTODO for tooltips.
13299 * ToolStripManager.cs: Add IsShortcutDefined.
13300 * ToolStripOverflow.cs: Override LayoutEngine.
13301 * ToolStripProgressBar.cs: Add MarqueeAnimationSpeed.
13302 * ToolStripSeparator.cs: Add ImageKey.
13304 2007-03-28 Jackson Harper <jackson@ximian.com>
13306 * TextControl.cs: If a char delete removes a line ending, we need
13307 to update the ending style.
13308 - Make sure the line ending calcs get called.
13310 2007-03-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
13312 * XplatUIX11.cs: CreateWindow: Remove old default form location code,
13313 it was making the new code not work. Fixed a typo in the new code
13314 as well. Fixes #79826.
13316 2007-03-27 Everaldo Canuto <everaldo@simios.org>
13319 - NIF_STATE and NIF_INFO added to NotifyIconFlags.
13320 - NOTIFYICONDATA properties sizes fixed, szTip is 128, not 64.
13321 - SystrayBalloon method implemented.
13322 [Add support for notifyicon balloon on win32, #79149]
13324 2007-03-27 Mike Kestner <mkestner@novell.com>
13326 * ThemeWin32Classic.cs : update StateImageList selection to mirror
13327 the ms behavior when only one image is added to the list.
13330 2007-03-27 Jackson Harper <jackson@ximian.com>
13332 * TextControl.cs: Improvements to non multiline line ending
13335 2007-03-27 Everaldo Canuto <everaldo@simios.org>
13337 * XplatUIX11.cs: Fix the time which tooltip is opened for NotifyIcon.
13339 2007-03-27 Everaldo Canuto <everaldo@simios.org>
13342 - Balloon message handling added.
13343 - Call XplatUI.SystrayBalloon in ShowBalloonTip.
13345 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
13346 XplatUIOSX.cs, XplatUIX11-new.cs: ShowBalloonTip method renamed
13347 to SystrayBalloon to me like other Systray method, also a
13348 handle parameter added.
13350 2007-03-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13352 * ListView.cs: Show scrollbars even when items.Count == 0
13353 but the columns Width is bigger than the ListView.Width.
13354 Also, when columns.Count == 0 set layout_wd and layout_ht
13355 to the ClientRectangle values, so we don't show any scrollbar
13358 2007-03-27 Everaldo Canuto <everaldo@simios.org>
13360 * XplatUIStructs.cs: Balloon (NIN_BALLOON*) constants added.
13362 2007-03-27 Jackson Harper <jackson@ximian.com>
13364 * RichTextBox.cs: The RTF library decodes the text properly for us
13367 2007-03-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13369 * ListView.cs: Display HeaderControl even when columns.Count == 0.
13370 * ThemeWin32Classic.cs: Use SystemBrushes.Control to draw the
13371 ListView header (HeaderControl), instead of Control.BackColor.
13373 2007-03-27 Jonathan Pobst <monkey@jpobst.com>
13375 * Control.cs: Call OnVisibleChanged in SetVisibleCore for non-forms.
13376 Fixes tab control issues where controls would not show up because they
13377 never received their OnVisibleChanged call.
13379 2007-03-27 Everaldo Canuto <everaldo@simios.org>
13381 * NotifyIcon.cs: Balloon events added (BalloonTipClicked, BalloonTipClosed,
13384 2007-03-27 Jonathan Pobst <monkey@jpobst.com>
13386 * Control.cs: We won't get a WM_SHOWWINDOW when we create a window that
13387 is maximized or minimized, so move CreateControl to Control.OnVisibleChanged.
13388 * Form.cs: After we set the form visible, send a fake WM_SHOWWINDOW if we
13389 are max or min. Remove WS_VISIBLE from CreateParams unless we are recreating
13390 the handle. Fix WindowState by using the internal variable until we are
13391 sure that we've been shown.
13392 * XplatUIX11.cs: Do not generate a WM_SHOWWINDOW message if new form is
13396 2007-03-27 Rolf Bjarne Kvinge <RKvinge@novell.com>
13398 * XplatUIX11.cs: Windows without WS_CAPTION can still get decorations
13399 (at least borders). Fixes #79386 on Linux (with a small difference
13400 in behaviour: when trying to resize a caption-less window metacity
13401 shows the sysmenu. Resizing is still possible though).
13402 * XplatUIWin32.cs: When setting window styles send request an extra
13403 WM_NCCALCSIZE when it's a form without title (due to no text and no
13404 caption), since Win32 seems to calculate it wrong the first time we
13405 get the message, though the second time things work as they should.
13406 * Form.cs: Reorder a few statements in ChangingParent, otherwise the
13407 newly reparented window might show up unparented. Update
13408 CreateParams to exclude WS_DLGFRAME if ControlBox is false and
13409 there's no title text. Fixes #79386.
13411 2007-03-27 Mike Kestner <mkestner@novell.com>
13413 * ListBox.cs : don't perform invalidations if the handle hasn't been
13414 created. [Fixes #80753]
13416 2007-03-27 Mike Kestner <mkestner@novell.com>
13418 * ListBox.cs : don't adjust top item when SelectedIndex is set to -1.
13421 2007-03-26 Everaldo Canuto <everaldo@simios.org>
13423 * XplatUIWin32.cs: Complete NOTIFYICONDATA structure, additional fields
13424 needed to implement Balloon.
13426 2007-03-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13428 * ListViewItem.cs: In the constructors that take
13429 an array of strings, don't use ListViewSubItemCollection.AddRange
13430 method to add items, since we need to have a different behaviour (in
13431 the constructors we add an item for each null string, opposed to
13432 the behaviour of AddRange, which adds nothing).
13434 2007-03-26 Andreia Gaita <avidigal@novell.com>
13436 * NumericUpDown.cs: Fix broken 1.1 api for ParseEditText
13438 2007-03-26 Jackson Harper <jackson@ximian.com>
13440 * TextControl.cs: Draw and measure line endings when in non
13442 - When searching the text, count the end of the last line as a
13445 2007-03-26 Jackson Harper <jackson@ximian.com>
13447 * RichTextBox.cs: The selection_start and selection_end don't
13448 really track the correct tags for the selection. So we'll manually
13449 compute the correct tag here.
13451 2007-03-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
13453 * ProgressBar.cs, ThemeWin32Classic.cs: Implemented drawing of Marquee
13454 and Continuous styles. Fixes #79469.
13456 2007-03-26 Jonathan Pobst <monkey@jpobst.com>
13458 * ToolStrip.cs: Implement Tooltips.
13459 * ToolStripItem.cs: Create internal method for determining tooltip.
13461 2007-03-26 Jonathan Pobst <monkey@jpobst.com>
13463 * PropertyGrid.cs: Hide a EditorBrowsable attribute from 1.1 API.
13465 2007-03-26 Everaldo Canuto <everaldo@simios.org>
13467 * NotifyIcon.cs: On disposing verify if icon is visible and hide it,
13468 it prevents a problem thak keeps icon visible after application
13471 2007-03-26 Everaldo Canuto <everaldo@simios.org>
13473 * NotifyIcon.cs: Balloon properties and methods created.
13475 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
13476 XplatUIOSX.cs, XplatUIX11-new.cs: Implement ShowBalloonTip method.
13478 2007-03-25 Jonathan Pobst <monkey@jpobst.com>
13480 * ToolStripComboBox.cs: Default the ComboBox's FlatStyle to Popup.
13482 2007-03-24 Jonathan Pobst <monkey@jpobst.com>
13484 * Control.cs: Make SetBoundsCore match MS better. The BoundsSpecified
13485 parameter indicates which aspects were explicit/user-set.
13486 * ComboBox.cs, ListBox.cs: Call SetBoundsCore correctly. (no 0 parameters).
13488 2007-03-24 Jonathan Pobst <monkey@jpobst.com>
13490 * ProgressBar.cs: Throw AOORE instead of AE for property Value (2.0).
13491 * ScrollBar.cs: Throw AOORE instead of AE for properties LargeChange,
13492 SmallChange, and Value (2.0).
13493 * Timer.cs: Throw AOORE instead of AE for property Interval (2.0).
13495 2007-03-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13497 * ListView.cs: Always set item_control.Width in LayoutDetails
13498 if View is Details. Setting it later in CalculateScrollBars
13499 in a not-so-corner scenario (the sum of columns width is
13500 not bigger than the ListView width when handle is created, and then
13501 that sum gets bigger by increasing the width of the columns)
13502 causes a very weird recursion path (which shouldn't be happening,
13503 since header_control sets it in CalculateScrollBars too). This bug
13504 appeared after Chris' fixes for handle created issues, so probably
13505 it's related to some handle-creation time.
13507 2007-03-23 Chris Toshok <toshok@ximian.com>
13509 * DataGrid.cs (GetVisibleRowCount): increase the row count in the
13510 case where there's an add row, just so we don't end up in a case
13511 where it's not displayed (this happens when the row is partially
13512 obscured). Fixes bug #79574.
13514 2007-03-23 Jackson Harper <jackson@ximian.com>
13518 * RichTextBox.cs: Preserve line endings in the lines text buffer,
13519 also added an enum that represents the line ending type.
13521 2007-03-23 Andreia Gaita <avidigal@novell.com>
13523 * NumericUpDown.cs: Fix logic so Text and Value properties are not
13524 messed with in every method call, but only from DownButton,
13525 UpButton, UpdateEditText() and ValidateText. Fixes #80346
13527 2007-03-23 Chris Toshok <toshok@ximian.com>
13529 * DataGridTextBoxColumn.cs (GetFormattedValue): don't try to
13530 format objects if the format spec is "". Fixes bug #80889.
13532 2007-03-22 Miguel de Icaza <miguel@novell.com>
13534 * ToolStripPanel.cs (Join): added stubs to build PDN3
13536 * Control.cs (AutoScrollOffset): Add.
13538 * SystemInformation.cs (MouseWheelScrollDelta): Expose this
13539 property, its only implemented for Win32, on X11 it defaults to
13540 some hardcoded value.
13542 * ToolStripItem.cs (AllowDrop): Add property
13544 2007-03-22 Mike Kestner <mkestner@novell.com>
13546 * ListView.cs : in FullRowSelect Details mode, only enable box
13547 selection if the user clicks over the "item" column outside of the
13548 text area. Mmmmm, compatibility. [Fixes #80374 subpart 7]
13550 2007-03-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
13552 * Control.cs: ChangeParent: Call Form's ChangingParent even if the
13553 handle is not created yet.
13554 * Form.cs: Select: Don't call CreateHandle if the handle is already
13555 created, avoids a stack overflow on Windows when we are recreating
13557 * ScrollableControl.cs: Set the correct z-order for the scrollbars when
13558 they are made visible, and override AfterTopMostControl to keep
13559 them on top when other controls are brought to front.
13560 CalculateCanvas: Scrollbars are only visible if auto_scroll is true
13561 or force_*scroll_visible is true (old implementation always shows
13562 scrollbars when needed, no matter what auto_scroll was set to).
13563 * InternalWindowManager.cs: UpdateWindowDecorations: Add a
13564 IsHandleCreated check.
13566 2007-03-22 Andreia Gaita <avidigal@novell.com>
13568 * DataGrid.cs: Implement Column and Row auto sizing when double-clicking on
13569 row or col separator.
13570 * DataGridTextBoxColumn.cs: Implement GetPreferredHeight and GetPreferredSize
13572 2007-03-22 Everaldo Canuto <everaldo@simios.org>
13574 * MenuAPI.cs: Remove unneeded check for grab_control in UpdateCursor.
13576 2007-03-22 Everaldo Canuto <everaldo@simios.org>
13578 * MenuAPI.cs: UpdateCursor method added, it is calling in OnMotion to update
13579 cursor for child controls. In ShowWindow and HideWindow now call SetCursor
13580 every time. Fixes #80410.
13582 2007-03-22 Chris Toshok <toshok@ximian.com>
13584 * BindingSource.cs (AddNew): partially implement.
13586 remove a couple of NotImplementedException's
13587 to get bug #81148 closed.
13589 2007-03-22 Everaldo Canuto <everaldo@simios.org>
13594 - UpdateCursor method added to update the screen cursor.
13595 - GetAvailableCursor method added to return cursor for enabled tree,
13596 it searches for cursor on control and it's parent's for enabled control.
13597 - Call UpdateCursor method on setter of Cursor property.
13598 - On setter of Enabled call UpdateCursor when it is false, we need to
13599 change cursor to normal (or to this parent cursor) because cursor
13600 setting theres no effect to disabled controls.
13601 - Some minor source changes to follow the coding style guidelines.
13603 * XplatUIX11.cs: In MotionNotify only dispatch SET_CURSOR event for enabled
13606 2007-03-22 Chris Toshok <toshok@ximian.com>
13608 * XplatUIX11.cs: ignore the BadPicture errors cairo+render
13611 2007-03-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
13613 * XplatUIX11.cs: Implement default locations for forms.
13614 * Form.cs: Completely rework startup location for forms. Fixes #79964.
13615 * Hwnd.cs: Add previous_child_startup_location (to track the current
13616 startup location for any child forms of the current form) and
13617 previous_main_startup_location (to track the startup location for
13618 the current toplevel form).
13620 2007-03-21 Jonathan Pobst <monkey@jpobst.com>
13622 * Control.cs: Don't trigger a layout if an implicit control is added
13623 that isn't visible. Also, don't notify the owner when an implicit control
13624 is added. (Owners shouldn't even know about their implicit controls.)
13626 2007-03-21 Jonathan Pobst <monkey@jpobst.com>
13628 * ScrollableControl.cs: Add implicit controls with AddRangeImplicit
13629 to save some re-layouts.
13631 2007-03-21 Everaldo Canuto <everaldo@simios.org>
13633 * MenuAPI.cs: In ProcessKeys returns false when key is not processed.
13636 2007-03-21 Jonathan Pobst <monkey@jpobst.com>
13638 * FlowLayoutSettings.cs, ToolStrip.cs, ToolStripPanel.cs,
13639 ToolStripPanelRow.cs: Lazy instantiate the LayoutEngine.
13641 2007-03-21 Mike Kestner <mkestner@novell.com>
13643 * ListView.cs : disable selection update for non-left button clicks
13644 with mods and over selected items. [Fixes #80524]
13646 2007-03-20 Jackson Harper <jackson@ximian.com>
13649 * TextBoxBase.cs: Allow different types of line endings. \r, \r\n,
13652 2007-03-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
13654 * ComboBox.cs: PreferredHeight seems to be ItemHeight + 6, but there is
13655 very probably a more complicated calculation there. Update the
13656 textbox' ForeColor and BackColor when the ComboBox' colors are
13657 changed. Change the border change in LayoutComboBox to only affect
13658 the textbox, not all the calculations there. Seems to fix most of
13661 2007-03-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
13663 * ComboBox.cs: Handle Home and End keys as well as all combinations of
13664 modifiers + navigation keys as input keys, enables advanced text
13665 selection in the combobox (like Shift+Left Arrow for instance).
13666 ComboTextBox now overrides Focused and returns whatever
13667 ComboBox.Focused returns, since it really should be focused
13668 whenever the ComboBox is. Fixes #80795. Also make the border around
13669 the text box one pixel bigger, as mentioned in #79436.
13671 2007-03-20 Jackson Harper <jackson@ximian.com>
13673 * TreeView.cs: Don't offset the images, this was causing some
13674 artifacts when expanding/collapsing with images that were the
13675 exact height of the treenode.
13677 2007-03-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
13679 * TrackBar.cs: Query the theme for the correct value when the mouse
13680 moves and the thumb is pressed.
13681 * Theme.cs: Added TrackBarValueFromMousePosition
13682 * ThemeWin32Classic.cs: Reworked TrackBar drawing. Earlier
13683 implementation was updating the trackbar value when drawing, now
13684 the drawing methods only draw. Fixes #80900. Refactored the
13685 calculations out to TrackBarValueFromMousePosition and
13686 GetTrackBarDrawingInfo, so that TrackBar can get the correct value
13687 according to the mouse position whenever it wants to. Changed the
13688 light coloured pen when drawing the thumb from ControlLight to
13689 ControlLightLight, because the ControlLight is the same colour as
13690 the background so the 3D effect is lost.
13692 2007-03-20 Everaldo Canuto <everaldo@simios.org>
13694 * Form.cs: In ShowDialog uses MainForm as transient form when no form is
13695 defined. Fixes #80784.
13697 2007-03-20 Marek Habersack <mhabersack@novell.com>
13699 * ContextMenuStrip.cs: align with the change introduced in
13702 2007-03-20 Everaldo Canuto <everaldo@simios.org>
13704 * XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs,
13705 XplatUI.cs, Form.cs, ToolTip.cs: Remove unneeded parameter owner
13708 2007-03-19 Chris Toshok <toshok@ximian.com>
13710 * Control.cs (WmPaint): don't make use of the Handle property
13711 after an event is emitted, as the user could have closed the
13712 form/destroyed the control. Store the Handle in a local variable
13713 and make use of that. Fixes bug #80768.
13715 2007-03-20 Everaldo Canuto <everaldo@simios.org>
13717 * XplatUIX11.cs: Set _NET_WM_STATE_ABOVE on SetTopmost, it fixes Topmost
13718 behavior in X11 environments.
13720 2007-03-20 Everaldo Canuto <everaldo@simios.org>
13722 * Form.cs: Call SetTopmost in CreateHandle when window is topmost, its
13723 because on setter of topmost we dont call SetTopmost when handle is not
13726 2007-03-20 Jackson Harper <jackson@ximian.com>
13728 * TextControl.cs: Need to use SelectionLength () not
13729 selection_length, since that var is reset to -1.
13730 - Draw the caret when we don't have focus.
13731 * TextBox.cs: The selectall actually doesn't occur until the first
13733 * TextBoxBase.cs: Need to update the caret position after a
13736 2007-03-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13738 * ListView.cs: Enable scrolling when using Tile view.
13740 2007-03-20 Everaldo Canuto <everaldo@simios.org>
13744 * XplatUIDriver.cs: Abstract SetOwner method created.
13746 * XplatUIOSX.cs: Override SetOwner to prevent compilation errors method
13747 must be implemented and was masked as todo.
13749 * XplatUIWin32.cs: SetOwner implemented using SetWindowLong with
13752 * XplatUIX11.cs: SetOwner implemented using same code from SetTopmost but
13753 cheking for null owner to remove transient. The SetTopmost will be change
13756 * Form.cs: In set_Owner and CreateHandle uses new SetOwner instead of
13757 SetTopmost. Now owned forms will work properly in win32 and X11.
13759 2007-03-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
13761 * MdiWindowManager.cs: Update function name.
13762 * Form.cs: After closing a form MdiParent is always null.
13763 * MdiClient.cs: Rename CloseChildForm to ChildFormClosed to explain
13764 better what it should do: necessary book-keeping when the form is
13765 closed, it should not close the form itself.
13767 2007-03-19 Andreia Gaita <avidigal@novell.com>
13769 * ListViewItem.cs: Fix back and fore color. The subitems only
13770 use their own colors if they are set, otherwise use the listview's
13771 colors. Don't set default colors on constructor for subitem.
13774 2007-03-19 Mike Kestner <mkestner@novell.com>
13776 * ListView.cs : make box selection for Details views with
13777 FullRowSelect conform to MS behavior when clicking in the "item"
13778 column and clicking outside the defined columns.
13779 [Fixes case 5-6 of #80374]
13781 2007-03-19 Chris Toshok <toshok@ximian.com>
13783 * ScrollableControl.cs: create the controls from within the ctor,
13784 but don't actually add them until our handle is created. this
13785 fixes a NRE possibility jpobst found (if you override OnLayout in
13786 a subclass, it's called before your ctor). Also, add a
13787 IsHandleCreated guard to UpdateSizeGripVisibility as well.
13789 2007-03-19 Jackson Harper <jackson@ximian.com>
13791 * TextBox.cs: Reduce the amount of invalidation we do.
13792 * TextBoxBase.cs: Make shortcuts enabled true by default, at least
13793 some of them are true by default on MS.
13794 - Add some functions to reduce the amount of invalidates we do.
13795 * TextControl.cs: Less invalidation.
13797 2007-03-19 Chris Toshok <toshok@ximian.com>
13799 [ Fixes #81773, and *seems* to fix #81553 as well ]
13801 * XplatUIX11.cs: remove the assignment of hwnd.zombie = true from
13802 AccumulateDestroyedHandles. We need to do it *after* we send
13803 WM_DESTROY, as the user's code can access Control.Handle in
13804 OnHandleDestroyed, and this shouldn't cause a recreation. Also,
13805 move the WM_DESTROY/zombie handling to before the call to
13806 XDestroyWindow. For some reason without this ordering
13807 FormTest.RecreateHandle hangs. This ordering is semantically
13808 equivalent, however, as XDestroyWindow is async anyway.
13810 2007-03-19 Gert Driesen <drieseng@users.sourceforge.net>
13812 * RichTextBox.cs: Reset backcolor_set after setting default.
13814 2007-03-19 Chris Toshok <toshok@ximian.com>
13816 * ScrollableControl.cs: the scroll position should not effect the
13817 canvas size. commit patch from georgegiolfan@yahoo.com, which
13818 fixes some really bizarre behavior on resizing. Fixes bug #80778.
13820 2007-03-19 Chris Toshok <toshok@ximian.com>
13822 * ScrollableControl.cs: clean this up a bit. create the
13823 scrollbars in the ctor and just show/hide them as needed. Also,
13824 make hscroll_visible/vscroll_visible internal to Recalculate, and
13825 just use hscrollbar.VisibleInternal/vscrollbar.VisibleInternal
13826 everywhere else. This seems to fix the scrollbars appearing
13827 beneath the content for me (i have *no* idea why that is,
13830 2007-03-19 Jonathan Pobst <monkey@jpobst.com>
13832 * ToolStrip.cs: Don't call DoAutoSize when we change Dock. Also, remove
13833 some redundacy for stuff in Anchor and Dock that base will take care of.
13836 2007-03-19 Mike Kestner <mkestner@novell.com>
13838 * ListView.cs : make box selection for Details views without
13839 FullRowSelect dependent on the text bounds, not item bounds.
13840 * ListViewItem.cs : add an internal property to obtain the TextBounds
13841 in Details view. [Fixes case 1-4 of #80374]
13843 2007-03-19 Andreia Gaita <avidigal@novell.com>
13845 * PaintEventArgs.cs (Dispose): Only dispose of graphics object if
13846 we're < 2.0. #78448 && #80316
13848 2007-03-19 Jonathan Pobst <monkey@jpobst.com>
13850 * FontDialog.cs: Don't crash when we switch to a new font that doesn't
13851 have the same style available as the previously selected one. Also,
13852 support FixedPitchOnly property. [Fixes bugs #80918, #80947]
13854 2007-03-19 Jackson Harper <jackson@ximian.com>
13856 * TextControl.cs: Add an alignment property that all new lines
13858 - Make sure to use the align shift when calculating the line's X
13860 * TextBox.cs: Set the alignment on the document as well as on all
13861 the document lines.
13863 2007-03-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
13865 * Control.cs: ControlCollection.Add: Remove a couple of duplicated casts and
13866 throw if setting the parent of an mdichild that already has an
13867 mdiparent. Update signature for 2.0 profile. ProductName: If there's no
13868 AssemblyProductAttribute in the assembly, use the type's namespace (as
13869 MS seems to do). CreateControl: don't create the handle if the control
13870 is not visible (according to MS behaviour and spec). SetTopLevel: Only
13871 create handle if the control is not a form. Change FocusInternal to
13872 virtual so that it can be overriden by Form.
13873 * TextBox.cs: Update call to FocusInternal.
13874 * Form.cs: Always create the handle when calling Focus on a MdiChild. The
13875 form is not a toplevel form when it's a mdi child, so update is_toplevel
13876 accordingly. ShowIcon/TransparencyKey: avoid creating the handle if it
13877 hasn't been created. Show (IWin32Window): Don't allow this overload for
13878 toplevel windows. CenterToParent/CenterToScreen/Select: create the
13879 handle as MS does. SetVisibleCore: if called on a MdiChild and the
13880 parent isn't visible yet, save the visibility and restore it when the
13881 parent is made visible.
13882 * ScrollableControl.cs: Refactor out scrollbar visibility code to separate
13883 methods, since the visibility of the scrollbars can be changed from
13884 several places, not only from AutoScroll.
13887 2007-03-19 Jackson Harper <jackson@ximian.com>
13889 * RichTextBox.cs: Enable shortcuts by default.
13890 * TextBoxBase.cs: Add conditional shortcuts.
13892 2007-03-19 Everaldo Canuto <everaldo@simios.org>
13894 * MenuItem.cs: Dont call OnDrawItem when OwnerDraw is false (#81182).
13896 2007-03-19 Chris Toshok <toshok@ximian.com>
13898 [ Fixes bug #80604]
13900 * XplatUIX11.cs (WaitForHwndMessage): change this to actually
13901 swallow the message we're waiting on, instead of delivering it, as
13902 this is only used for the WM_SHOWWINDOW raised from
13903 MapWindow/UnmapWindow, and the message needs to be generated
13904 (MapWindow, UnmapWindow): generate the WM_SHOWWINDOW message
13905 before doing the Map/Unmap. Also make sure that the Hwnd is still
13906 alive after the message has been handled.
13908 *before* the window is shown.
13910 * Control.cs (CreateControl): guard a few more things inside the
13911 if (!is_created) block, as we might end up being called again -
13913 (WmShowWindow): call CreateControl if we're showing the control.
13915 2007-03-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
13917 * Control.cs: Fix 2.0 signature for Invoke. Support invoking on
13918 controls without a handle if they have any parent with a handle. In
13919 Dispose add a check whether the handle is created or not before
13920 calling BeginInvoke, this removes the need of the extra disposing
13921 parameter (which was bogus anyway since it didn't prevent the
13922 invoke from happening, it only skipped the check for an existing
13923 handle, meaning that the invoke would call on an inexistent
13926 2007-03-19 Everaldo Canuto <everaldo@simios.org>
13928 * MessageBox.cs: Remove WS_POPUP from CreateParams style, with it form
13929 appears in taskbar.
13931 2007-03-18 Everaldo Canuto <everaldo@simios.org>
13934 - Fixed a problem that dont show help button for messages with 3 buttons.
13935 - Refactory button size and position calculations, now dont use fixed
13936 values, also fixed button sizes (#80043) and form's border space.
13937 - AddButton method created, now all other AddButton methods call this one.
13938 - Some other source code cosmetic changes.
13940 2007-03-18 Jackson Harper <jackson@ximian.com>
13942 * RichTextBox.cs: Don't do this all fonts must match check if
13943 there is only one char selected.
13945 2007-03-18 Jackson Harper <jackson@ximian.com>
13947 * TreeView.cs: ScrollWindow works properly now, so we don't need
13948 to screw around with the scroll area. This fixes some artifacts
13949 when expanding and collapsing.
13951 2007-03-18 Jackson Harper <jackson@ximian.com>
13953 * TextBoxBase.cs: Allow updating the selection position when the
13954 cursor is outside the textarea, but we have a capture.
13955 * TextControl.cs: A special case for when the cursor is outside
13956 the bounds of the TB.
13958 2007-03-18 Jackson Harper <jackson@ximian.com>
13960 * TextBoxBase.cs: Remove image pasting code for now. There is no
13961 way to get an image on the clipboard right now anyways.
13963 * RichTextBox.cs: Use the new RTF Picture class for pictures.
13965 2007-03-18 Everaldo Canuto <everaldo@simios.org>
13968 - Set window properties in constructor intead of on CreateParams.
13969 - Remove topmost from Window ExStyle.
13970 - Set ShowInTaskbar to false.
13971 - Set form border to FixedDialog.
13972 - Some cosmetic changes and remove unneeded comments.
13973 - It fixes itens 2,3 and 4 of bug #80043.
13975 2007-03-18 Gert Driesen <drieseng@users.sourceforge.net>
13977 * TextBoxBase.cs: In setter for ReadOnly, only chance BackColor if
13978 none was explicitly set. Fixes part of bug #79949.
13980 2007-03-16 George Giolfan <georgegiolfan@yahoo.com>
13982 * ToolStripComboBox.cs: Add AutoComplete*.
13984 2007-03-16 George Giolfan <georgegiolfan@yahoo.com>
13986 * ToolStripComboBox.cs: Add FlatStyle.
13988 2007-03-16 Jonathan Pobst <monkey@jpobst.com>
13990 * ToolStrip.cs, ToolStripProfessionalRenderer.cs,
13991 ToolStripSplitStackLayout.cs: Implement some basic vertical toolbar support.
13993 2007-03-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
13995 * ButtonBase.cs, ToolStrip.cs, SendKeys.cs, TextRenderer.cs,
13996 CheckBox.cs, RadioButton.cs, BindingSource.cs,
13997 DataGridColumnStyle.cs: Remove warnings.
13999 2007-03-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
14001 * Menu.cs: MergeMenu: Check menu argument for null before looping over
14003 * MdiWindowManager.cs: Add IsVisiblePending to track the pending
14004 visibility of mdi child forms. FormSizeChangedHandler: update the
14005 maximized size if size has changed while maximized.
14006 * MdiClient.cs: SizeScrollbars/ArrangeWindows/ActivateChild: Avoid
14007 creating the handle.
14008 * InternalWindowManager.cs: UpdateBorderStyle/FormSizeChangedHandler:
14009 avoid creating the handle if not created.
14010 * XplatUI.cs: Update debug output.
14011 * XplatUIStructs.cs: Added ToString's for a couple of structs.
14013 2007-03-16 Jonathan Pobst <monkey@jpobst.com>
14015 * ContainerControl.cs: Give ToolStripManager the opportunity to handle
14017 * ToolStripDownItem.cs, ToolStripItem.cs, ToolStripItemCollection.cs,
14018 ToolStripItemEventType.cs, ToolStripManager.cs, ToolStripMenuItem.cs:
14019 Implement keyboard shortcuts.
14021 2007-03-15 Everaldo Canuto <everaldo@simios.org>
14023 * CommonDialog.cs: Set StartPosition to CenterScreen on form's constructor.
14024 Fixes #79560 and #80200, it also fix problem in FileDialog, SaveDialog,
14025 ColorDialog and all derived classes.
14027 2007-03-15 Everaldo Canuto <everaldo@simios.org>
14029 [ Fixes bug #79828 ]
14032 - Rename ToolBarButtonInfor to ToolBarItem.
14033 - Add all layout and calculation stuff gtom ToolBarButton to ToolBarItem.
14034 - Maintain an array of ToolBarItem, used instead of ToolBarButton
14035 collection to be able add same button more than one time on a toolbar.
14036 - Refactory all properties and methods to use ToolBarItem.
14038 * ToolBarButton.cs:
14039 - Remove all propeties and methods that is now in ToolBarItem.
14040 - Rectangle propery now gets the rectangle from first ToolBarItem to
14041 mimic win32 behavior.
14042 - Size calculation and layout methods also removed.
14044 * ThemeWin32Classic.cs: Change all ToolBar drawing methods to receive
14045 ToolBarItem instead of ToolBarButton to right drawing buttons when
14046 same button/separator was added more than one time to ToolBar.
14048 * ThemeNice.cs: Same as above.
14050 2007-03-15 Andreia Gaita <avidigal@novell.com>
14052 * XplatUIX11.cs: Fire extra MouseMove events right after
14053 MouseDown and MouseUp, emulating win32's <censored> behaviour
14054 for apps that rely on it.
14056 2007-03-15 Jackson Harper <jackson@ximian.com>
14059 * TextBoxBase.cs: On MS, a fixed single border is not in NC area,
14060 it is drawn on the controls client window and there is no NC
14062 - Set the background color to gray on 2.0 when we are readonly.
14064 2007-03-15 Chris Toshok <toshok@ximian.com>
14066 [ Fixes bug #81144 ]
14068 * XplatUIX11.cs: implement VirtualScreen independently of
14069 WorkingArea, by querying the _NET_DESKTOP_GEOMETRY root window
14072 2007-03-15 Chris Toshok <toshok@ximian.com>
14074 * Hwnd.cs: add an internal field for the cached_window_state.
14076 * XplatUIX11.cs: cache the window state, invalidating the cache
14077 (and thus re-querying the X server) only when we see an update to
14078 the _NET_WM_STATE property.
14080 2007-03-15 Chris Toshok <toshok@ximian.com>
14082 * BindingSource.cs: get a lot of the unit tests working.
14084 2007-03-15 Jonathan Pobst <monkey@jpobst.com>
14086 * Control.cs: Modify UpdateStyles to store distances when bounds >=
14087 0 instead of just bounds > 0. [Fixes bug #80912]
14089 2007-03-15 Jonathan Pobst <monkey@jpobst.com>
14091 * ToolStrip.cs, ToolStripItem.cs: Implement several new properties
14094 2007-03-15 Ivan N. Zlatev <contact@i-nz.net>
14096 * ComboBox.cs, Control.cs, XplatUIStructs.cs, XplatUIX11GTK.cs,
14097 XplatUIX11.cs, XplatUIWin32.cs, InternalWindowManager.cs,
14098 XplatUIOSX.cs, TextControl.cs: Replaces all uses of the custom
14099 WM_MOUSE_LEAVE with the system WM_MOUSELEAVE message.
14101 2007-03-15 Chris Toshok <toshok@ximian.com>
14105 * Control.cs: add Ivan's fix for 81101, with a slight modification
14106 - you can set control.Target to null.
14108 2007-03-14 Jonathan Pobst <monkey@jpobst.com>
14110 * ToolStripItem.cs: If our OwnerItem is null, we can't use
14111 HideDropDown, use Hide instead to prevent an NRE.
14114 2007-03-14 Jackson Harper <jackson@ximian.com>
14116 * TextBoxBase.cs: Mess with the creation stuff a little. We need
14117 to calculate the document before the handle is created, in some
14118 cases. (Actually just one case).
14120 2007-03-14 Jackson Harper <jackson@ximian.com>
14122 * TextBoxBase.cs: Need to display the caret after letting the base
14123 wndproc handle the focus methods, because the caret display
14124 methods check the focus state.
14125 - Try to display the caret after updating it's position with SelectWord.
14126 - Don't need to do an immediate update on this recalc, since there
14127 will be an invalidate anyways.
14129 2007-03-14 Jackson Harper <jackson@ximian.com>
14131 * TreeView.cs: Some workarounds so that we can match event order a
14134 2007-03-14 Gert Driesen <drieseng@users.sourceforge.net>
14136 * ErrorProvider.cs: Invoke default ctor from 2.0-only ctor. Fixes bug
14137 #80803. Avoid NullReferenceException when Control does not have
14138 parent. Fixed different blinkstyle issues. Only subscribe to Tick
14139 event a single time. Only draw error icon when control is created and
14140 visible. Fixes failing unit tests.
14142 2007-03-14 Andreia Gaita <avidigal@novell.com>
14144 * TabControl.cs: Add support for 2.0 Deselecting, Deselected and
14145 Selecting events. Fire Leave and Enter events when changing tabs.
14147 2007-03-14 George Giolfan <georgegiolfan@yahoo.com>
14149 * TreeView.cs: Add TreeViewNodeSorter.
14150 * TreeNodeCollection.cs: Add sorter parameter to Sort method.
14152 2007-03-14 Chris Toshok <toshok@ximian.com>
14154 * Form.cs: go ahead and remove the RecreateHandles that jpobst
14155 removed earlier and I had him add back it. It turns out metacity
14156 *does* in fact handle the MOTIF_WM_HINTS property changing, it
14157 just doesn't redraw the window titlebar until you resize the
14158 window. This also means we aren't recreating the entire window
14159 hierarchy on X when you change this property. And it looks better
14162 2007-03-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
14165 * ListView.cs: Collecting selection information
14166 is now done in SelectedIndexCollection rather than in
14167 SelectedListViewItemCollection. This is done so we can
14168 have the selection information code in one single place
14169 (virtual mode selection information entirely depends on
14170 SelectedIndexCollection).
14172 2007-03-13 Miguel de Icaza <miguel@novell.com>
14174 * ErrorProvider.cs: Add stubs for ISupportInitialize
14176 2007-03-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
14178 * ListViewItem.cs: Trigger the ItemCheck and ItemChecked events
14179 in the right order with the right values, from the Checked property,
14180 just as MS does (instead of triggering them from ListView).
14182 * ListView.cs: Make OnItemCheck and OnItemChecked internal.
14184 2007-03-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
14186 * ListView.cs: Implement ItemChecked 2.0 event. Also cast to
14187 the correct handler in OnItemCheck method (ItemCheckEventHandler
14188 instead of EventHandler). This used to throw an InvalidCastException.
14190 2007-03-13 Jackson Harper <jackson@ximian.com>
14192 * TextBoxBase.cs: Calculate the document before the handle is
14193 created, so there isn't an extra invalidate called.
14195 2007-03-13 Jonathan Pobst <monkey@jpobst.com>
14197 * Form.cs: Don't set owner in ShowDialog until we are sure
14198 that we aren't going to throw an exception. [Fixes bug #80773]
14200 2007-03-12 George Giolfan <georgegiolfan@yahoo.com>
14202 * TreeView.cs: Make it compile.
14204 2007-03-12 Jonathan Pobst <monkey@jpobst.com>
14206 * Control.cs: Another place we don't call SizeFromClientSize.
14207 * Form.cs: Another place we don't call SizeFromClientSize.
14210 2007-03-12 Jackson Harper <jackson@ximian.com>
14212 * TreeView.cs: Basically emulating some strangness here with
14213 exanding nodes and setting node positions when windows aren't
14215 - Also attempting to walk the node tree less than previously, and
14216 just use visible order calculations for determining offsets.
14217 - oops made scrolling backwards.
14218 * TreeNode.cs: We need to start nodes with a zero visible order,
14219 because the order calcs are based on the first nodes order.
14221 2007-03-12 Jonathan Pobst <monkey@jpobst.com>
14223 * Form.cs: Don't exit the program if RecreateHandle is called on
14226 2007-03-12 Chris Toshok <toshok@ximian.com>
14228 * XEventQueue.cs: remove the use of PostQuitState.
14230 * XplatUIX11.cs: remove the use of PostQuitState. If we get a
14231 WM_QUIT message in GetMessage, return false (and if we're in the
14232 nested WaitForHwndMessage, repost the WM_QUIT message).
14234 2007-03-12 Jonathan Pobst <monkey@jpobst.com>
14236 * Form.cs: Don't call RecreateHandle when we change the MinimizeBox
14237 or the MaximizeBox properties. [Part of bug #80640]
14239 2007-03-12 Everaldo Canuto <everaldo@simios.org>
14241 * LinkLabel.cs: When calculate pieces make LinkArea empty if theres
14244 2007-03-12 Jonathan Pobst <monkey@jpobst.com>
14246 * ToolStripItem.cs: Fix some tests I broke by checking Visible
14247 instead of visible.
14249 2007-03-12 Gert Driesen <drieseng@users.sourceforge.net>
14251 * FileDialog.cs: Use text of File name combobox to determine what
14252 files the user selected. Added tokenizer to parse the file names.
14255 2007-03-12 Jonathan Pobst <monkey@jpobst.com>
14257 * Control.cs: We can't call SizeFromClientSize in the constructor,
14258 but we still need to do the same work, so make an internal version.
14261 2007-03-12 Jackson Harper <jackson@ximian.com>
14265 * OpenTreeNodeEnumerator: Match MS better for IsVisible and
14268 2007-03-12 Jackson Harper <jackson@ximian.com>
14270 * TextBoxBase.cs: Now that the handles are being created a little
14271 later, we need to make sure that the document is recalculated when
14272 the handle is created.
14274 2007-03-11 Everaldo Canuto <everaldo@simios.org>
14276 * Theme.cs: GetLinkFont abstract method added.
14279 - Remove CalcTrimRectangle, no longer needed.
14280 - Factor also remove, position issues must be fixed in libgdiplus.
14281 - Move GetPieceColor to ThemeWin32Classic.cs as it is theme related.
14282 - GetPieceFont, CreateLinkFont and link_font removed, theme must be
14283 care about font used to draw links.
14284 - Set TabStop to true when control is "Selectable", control is selectable
14285 when have one or more links. Fixes #80501 (test case is also added).
14286 - Set the LinkArea values after links change, LinkArea values must be
14287 based in first link position and size, a test case was created.
14288 - Fix ControlStyles.Selectable value, now is based on LinkArea value,
14289 the attribute must be true LinkArea.Length > 0. The same was applied to
14292 * ThemeWin32Classic.cs:
14293 - LinkLabelGetPieceColor and LinkLabelGetPieceFont created and used
14295 - Use CPDrawStringDisabled to draw disabled text instead of hard code
14297 - Draw focus rectangle for every parts focused, including parts that
14298 is on another line, its because regions returns various rectangles
14299 and not only one. Needed to mimic W32 look.
14300 - Uses Graphics.Clip to delimite region painted, it mean that now
14301 complete text is passed to DrawString, with this we solve layout
14302 issues without create another text renderer.
14303 - Uses Region.Intersect to fix some flickers problems, now only needed
14304 parts will redrawed.
14305 - This changes fixes #79614 and some other unreported issues, on Linux
14306 some layout problems still remain, the problem is under
14307 MeasureCharacterRanges but it is an libgdiplus bug.
14309 2007-03-10 Gert Driesen <drieseng@users.sourceforge.net>
14311 * TextBox.cs: Set for foreground color.
14312 * TextBoxBase.cs: Remove Invalidate when setting BackColor, since
14313 this is already done in Control.
14315 2007-03-10 Jackson Harper <jackson@ximian.com>
14317 * TextBox.cs: Set the background color, but reset the
14318 backcolor_set flag which is just for the user setting the
14321 2007-03-09 Chris Toshok <toshok@ximian.com>
14323 * Control.cs: really remove the call to XplatUI.SetVisible from
14324 CreateHandle(), like I said I did when I merged the branch.
14326 * BindingSource.cs: implement some more of this stuff.
14328 2007-03-09 Jackson Harper <jackson@ximian.com>
14330 * TextBox.cs: Don't explicitly set our background colors.
14332 * TextBoxBase.cs: Draw readonly text.
14333 - Need to invalidate when backcolor or readonly are changed.
14335 2007-03-09 Jackson Harper <jackson@ximian.com>
14337 * TextBoxBase.cs: Don't set the forecolor until the handle is
14339 - Do not raise OnPaint, and removed some old debug code.
14341 2007-03-09 George Giolfan <georgegiolfan@yahoo.com>
14343 * ScrollableControl.cs: Fix mouse wheel scrolling.
14345 2007-03-09 Jonathan Pobst <monkey@jpobst.com>
14347 * Control.cs: Wire up MouseDoubleClick event.
14349 2007-03-09 Jonathan Pobst <monkey@jpobst.com>
14351 * ToolStrip.cs: Rework AutoSize to adjust height when docked to the
14353 * ToolStripItem.cs: Make Image drawing take ImageScaling into account.
14354 * ToolStripItemCollection.cs: Don't call owner.PerformLayout when a new
14355 item is added. This logic was moved to ToolStrip.OnItemAdded.
14358 2007-03-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
14360 * ListVieItem.cs: SetIndex is only valid for 2.0 profile by now.
14362 2007-03-08 Jackson Harper <jackson@ximian.com>
14364 * TreeView.cs: Show the correct image for selected node (this used
14365 to work, not sure how the code got deleted). Also implemented 2.0 feature
14368 2007-03-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
14371 * ListViewItem.cs: Cache index in items when retrieving them
14374 2007-03-08 Jonathan Pobst <monkey@jpobst.com>
14376 * ToolStripItem.cs: Don't return the explicit_size if we are using
14377 AutoSize. Fixes invalidation issue when user has explicitly set a
14378 size and has AutoSize = true.
14380 2007-03-08 Jonathan Pobst <monkey@jpobst.com>
14382 * XplatUIX11.cs: Hardcode FrameBorderSize value temporarily to fix MWF.
14384 2007-03-07 Pedro MartĂnez JuliĂ¡ <pedromj@gmail.com>
14386 * DataGridView.cs: Remove event handler from DataView when a
14387 DataTable is used as DataSource.
14389 2007-03-08 Jonathan Pobst <monkey@jpobst.com>
14391 * Control.cs: Create internal setter for client_size to allow it to be
14392 set without triggering resizing code.
14393 * Form.cs: Calculate client_size in constructor, only change client_size
14394 in FormBorderStyle property if Handle has been created.
14395 [Fixes #80574, #80791]
14397 2007-03-08 George Giolfan <georgegiolfan@yahoo.com>
14399 * SystemInformation.cs: Add TerminalServerSession.
14401 2007-03-07 Jonathan Pobst <monkey@jpobst.com>
14403 * TreeViewDrawMode.cs: Make internal for 1.1 to allow for consolidated
14406 2007-03-07 Jonathan Pobst <monkey@jpobst.com>
14408 * XplatUIWin32.cs: The no_activate stuff was forcing us to create a
14409 Handle before we were supposed to. Now checks ActivateOnShow property
14411 * Control.cs: Add internal ActivateOnShow property.
14412 * ComboBox.cs, Form.cs, MenuAPI.cs, ToolStripDropDown.cs: Return false
14413 for ActivateOnShow.
14414 * Hwnd.cs Remove no longer needed no_activate field.
14416 2007-03-07 Jackson Harper <jackson@ximian.com>
14418 * TreeView.cs: Implement owner draw tree nodes. And a couple more
14420 * DrawTreeNodeEventHandler.cs: Add
14421 * DrawTreeNodeEventArgs.cs: Correct default value.
14423 2007-03-07 Chris Toshok <toshok@ximian.com>
14425 * XplatUIWin32.cs: create InternalWndProc so that we're guaranteed
14426 to be called before NativeWindow.WndProc. Put the HwndCreating
14427 magic there to hook up our Hwnd's to handles.
14429 2007-03-07 Gert Driesen <drieseng@users.sourceforge.net>
14431 * DataGridView.cs: Comment out debug code.
14433 2007-03-07 Chris Toshok <toshok@ximian.com>
14435 [merge -r72718:73765 from mwf-handle-branch, and include 2 changes
14436 to make the rest of the world happy]
14438 * Control.cs (CreateHandle): there's no need to call
14439 XplatUI.SetVisible here, it's effectively done by
14440 XplatUI.CreateWindow on X now, and always was on windows.
14442 * XplatUIX11.cs (WaitForHwndMessage): only use the PostQuitState
14443 shortcircuit out of the loop if we have a message loop running on
14446 [Changelog from merge]
14448 2007-03-05 Chris Toshok <toshok@ximian.com>
14450 * Control.cs (AccessibilityNotifyClients): turns out in 1.1 this
14451 causes handle creation.
14453 2007-02-28 Chris Toshok <toshok@ximian.com>
14455 * ApplicationContext.cs: Add a flag to make sure we only raise the
14456 ThreadExit event once (ExitThreadCore can be indirectly called
14457 from a few places.) I don't like the additional flag, but it
14458 makes the event ordering/count correct.
14460 * Application.cs (MWFThread.LoopCount): don't use an enumerator
14461 without locking the collection. An enumerator doesn't give us any
14462 protection from modification anyway. Lock the thread hash and
14463 replace the complicated enumerator loop with a foreach.
14464 (Application.CloseForms): make internal so it can be called from
14465 ApplicationContext. This should probably be moved to MWFThread.
14466 (Application.ExitThread): don't call MWFThread.Current.Exit()
14467 here. just call XplatUI.PostQuitMessage. We'll exit the thread
14468 when the runloop exits (in response to WM_QUIT.)
14469 (Application.RunLoop): add a comment (and check) for
14470 context.MainForm being null after setting context.MainForm.Visible
14471 = true. This is because you're perfectly free to dispose of a
14472 form in VisibilityChanged. Chalk this up to another case where we
14473 need to synchronously generate WM_ACTIVATE from Control.Show.
14474 Also, add handling for WM_QUIT here so we'll exit the loop.
14476 * XplatUIX11.cs: clean up MapWindow and UnmapWindow a bit. The
14477 fact that we don't wait if we're only unmapping the whole_window
14478 makes me a bit nervous, but it doesn't seem to cause any problems
14481 also, add a comment about the stupid, broken and wrong resetting
14482 of PostQuitState to false in GetMessage().
14484 In PostQuitMessage, we need to add a WM_QUIT message to the
14485 thread's queue. We use the FosterParent to get the right
14488 Lastly, in SetVisible, we need to unmap both windows, since the
14489 waiting only happens when we're unmapping the client window. So
14490 now, the *only* time we unmap just the whole_window is in the hack
14491 for resizing a control to 0,0.
14493 2007-02-21 Chris Toshok <toshok@ximian.com>
14495 * Application.cs (CloseForms): rewrite this so that we don't
14496 modify the list while we're traversing it.
14498 2007-02-20 Chris Toshok <toshok@ximian.com>
14500 * ListBox.cs (.ctor): move the Control.AddImplicits here instead
14501 of OnHandleCreated.
14502 (HorizontalScrollEvent): only call XplatUI.ScrollWindow if the
14503 handle is created. otherwise we'll create it here.
14504 (VerticalScrollEvent): same here.
14506 * Application.cs (CloseForms): call Form.Dispose, don't post
14509 * Form.cs (WndProc): we don't need to use CLOSE_INTERNAL
14510 here. Application should Dispose() of the Form's.
14512 * XplatUIX11.cs (WaitForHwndMessage): break out of the loop on
14513 WM_DESTROY as well.
14514 (MapWindow,UnmapWindow): only actually do the waiting for
14515 SHOWWINDOW if the control we're dealing with is a Form.
14516 (CreateWindow): if the control isn't a form, SendMessage
14517 WM_SHOWWINDOW here (if the WS_VISIBLE style is set).
14519 * Control.cs (SetVisibleCore): always use is_visible here, not
14520 value. If we use value, we can end up re-setting something
14521 visible if, for instance, you do Control.Hide() in a delegate
14522 attached to VisibleChanged as we do in FormTest.ShowDialogTest.
14524 2007-02-20 Chris Toshok <toshok@ximian.com>
14526 * XplatUIX11.cs (WaitForHwndMessage): we need to loop until we get
14527 the message we need. PeekMessage returning false should not be a
14528 condition under which we exit the loop.
14530 2007-02-15 Chris Toshok <toshok@ximian.com>
14532 * Control.cs (Refresh): only refresh if we've got a handle and are
14534 (CreateAccessibilityInstance): CreateControl() here.
14535 (UpdateChildrenZOrder): complicate the code loop even more by
14536 taking into account controls that haven't had their handle
14537 created, and those that aren't visible. But on the flip side,
14538 simplify the code by splitting it into two loops. one which
14539 builds up the list of child controls we're interested in, and the
14540 other that sets the z order of those children.
14542 2007-02-14 Chris Toshok <toshok@ximian.com>
14544 * Control.cs: Control.AccessibilityObject causes the control to be
14545 created, not just the handle.
14547 2007-02-14 Chris Toshok <toshok@ximian.com>
14549 * Control.cs: rework UpdateChildrenZOrder to correctly handle the
14550 problem on X where a window might have its handle created (and be
14551 visible) while the window is unmapped. calling XConfigureWindow
14552 on an unmapped window is bad, and generates X errors.
14554 2007-02-13 Chris Toshok <toshok@ximian.com>
14556 * Control.cs (CreateHandle): don't loop over our children setting
14557 their parent here. do it when in WndProc when we're shown.
14558 (UpdateChildrenZOrder): make this internal so we can call it from
14560 (WndProc): for WM_SHOWWINDOW, reparent the child control after
14561 creating its handle. Also, remove the calls to PerformLayout from
14562 here. they're done in ScrollableControl.OnVisibleChanged. Also,
14563 OnVisibleChanged only seems to be called directly here for the
14564 toplevel control. It's propagated down the window hierarchy by
14565 calls to child.OnParentVisibleChanged.
14566 (OnVisibleChanged): don't do layout here - it's done (oddly
14567 enough, according to a glance at stack traces on ms.net..) in
14570 * ScrollableControl.cs (OnVisibleChanged): make sure we update the
14571 z order of our children before calling PerformLayout.
14573 2007-02-12 Chris Toshok <toshok@ximian.com>
14575 [big change, fixes #80020]
14577 * AccessibleObject.cs: we need to make owner internal again to fix
14578 some of ControlAccessibleObject.
14580 * Control.cs: lots of changes here. add support for WM_CREATE,
14581 for which we generate OnHandleCreated. Remove the OnHandleCreated
14582 call from CreateHandle. Also add support for WM_SHOWWINDOW where
14583 we create child controls. leave the MonoTODO's for the
14584 accessibility calls, but fix the exceptions so the tests pass.
14586 Add the InvalidOperationExceptions to Invoke methods, and remove a
14587 couple of InvokeInternal methods we aren't using.
14589 Also, add a couple of CreateHandle calls in places where we know
14590 the handles are being created but our code doesn't reference
14593 Make SetVisibleCore call OnVisibleChange if the handle isn't
14594 created. If the handle is created, we rely on XplatUI.SetVisible
14595 generating the event synchronously.
14597 Lastly, make sure we don't use this.Handle inside CreateHandle,
14598 because we can call back into client (and that code can dispose of
14601 * XplatUIStructs.cs: misc/cleanup.
14603 * XplatUIX11.cs: Map/Unmap X events correspond to WM_SHOWWINDOW,
14604 although we don't populate the wParam properly.
14605 (CreateWindow): generate WM_CREATE.
14606 (MapWindow,UnmapWindow): make these calls synchronous, at great
14607 performance expense (particularly in the unmap case), to match
14610 * Form.cs (.ctor): remove the call to UpdateBounds. we don't need
14612 (set_MdiParent): don't recreate the handle unless it's been
14615 * MdiClient.cs (OnResize): don't InvalidateNC Parent.Handle unless
14618 * NativeWindow.cs: this is probably the weirdest part of the
14619 patch. We need a way to link up the window being created to the
14620 WM_CREATE message. Since we can only be creating one window at a
14621 time on a given thread, we keep track of a per-thread reference so
14622 we can dispatch it properly. We also need to keep track of the
14623 Hwnd currently being created so that the win32 backend doesn't
14626 * XplatUIWin32.cs: a similar change to the one we made in
14629 2007-03-07 Jonathan Pobst <monkey@jpobst.com>
14631 * ToolStripItem.cs: Make CalculatePreferredSize virtual.
14632 * ToolStripMenuItem.cs: Modify CalculatePreferredSize and OnPaint
14633 to draw the menu shortcut string.
14635 2007-03-07 Jackson Harper <jackson@ximian.com>
14637 * TreeNode.cs: Add the 2.0 collapse method.
14639 2007-03-07 Pedro MartĂnez JuliĂ¡ <pedromj@gmail.com>
14641 * DataGridViewColumn.cs: Fix HeaderText behaviour (Bug #80746).
14643 2007-03-07 Pedro MartĂnez JuliĂ¡ <pedromj@gmail.com>
14645 * DataGridView.cs: Change DataSource will clear column and row
14646 lists. Call Invalidate() to reflect DataSource change.
14648 2007-03-07 Pedro MartĂnez JuliĂ¡ <pedromj@gmail.com>
14650 * DataGridView.cs: Add rows when DataSource is System.Data.DataView
14651 and a new row is added to it.
14653 2007-03-07 Pedro MartĂnez JuliĂ¡ <pedromj@gmail.com>
14655 * DataGridView.cs: Add columns when DataSource is en empty list but
14656 is a System.Data.DataView (from a System.Data.DataTable).
14658 2007-03-06 Andreia Gaita <avidigal@novell.com>
14660 * Label.cs: Implement AutoEllipsis (2.0)
14662 2007-03-06 Jackson Harper <jackson@ximian.com>
14664 * TreeView.cs: Implement 2.0 TopNode setter property.
14665 - Use a local var instead of the skipped_nodes field for computing
14666 how many nodes to skip. Otherwise we won't scroll because the
14667 valuechanged handler checks if skipped_nodes is equal to the new
14669 - Implement 2.0 Sort method.
14670 - Add useless 2.0 DoubleBuffer property
14671 - Implement 2.0 LineColors property. Lets you change the color of
14672 the lines in the tree. Terribly useful for creating non cohesive
14674 - Implement 2.0 image key feature.
14676 2007-03-06 Jackson Harper <jackson@ximian.com>
14678 * TreeView.cs: We can't get the bounds of the nodes before raising
14679 the AfterSelect event, because that event could change the node's
14680 bounds (scrolling, font change, etc).
14682 2007-03-06 Rolf Bjarne Kvinge <RKvinge@novell.com>
14684 * XplatUIWin32.cs: When faking styles don't remove the WS_VISIBLE flag.
14685 * Form.cs: Don't recreate handle when creating FormWindowManager, just
14686 update window styles. In CreateParams us VisibleInternal instead of
14687 VIsible to get the actual visible flag set for this form.
14688 * FormWindowManager.cs: Activate the form whenever the mouse clicks on
14689 the nc area. Fixes #81042. Also fix HandleTitleBarDoubleClick to
14690 handle the case when the form is already maximized, in which case
14691 it should be restored. Fixes #81043.
14693 2007-03-06 Rolf Bjarne Kvinge <RKvinge@novell.com>
14695 * XplatUIX11.cs: Tool windows still get wm styles. Fixes toolwindows showing up with double decorations.
14697 2007-03-05 Jackson Harper <jackson@ximian.com>
14699 * TreeViewHitTestInfo.cs: implement.
14701 2007-03-05 Jackson Harper <jackson@ximian.com>
14703 * InternalWindowManager.cs: class status fix.
14705 2007-03-05 Rolf Bjarne Kvinge <RKvinge@novell.com>
14707 * InternalWindowManager.cs: All windows that have a parent
14708 are confined to their parent when they're being moved.
14711 2007-03-04 Gert Driesen <drieseng@users.sourceforge.net>
14713 * SystemInformation.cs: Marked KeyboardDelay and KeyboardSpeed public
14714 on 2.0 profile. Fixes bug #81018. Small code formatting fixes.
14716 2007-03-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
14718 * ThemeWin32Classic.cs: ManagedWindowSetButtonLocations: Make all
14719 buttons invisible before deciding which ones should be visible
14720 (fixes minimize/maximize buttons showing up in toolwindows). Remove
14721 an unused variable.
14722 * InternalWindowManager.cs: Remove warning.
14724 2007-03-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
14726 * ListView.cs: Add a check in ListViewItemCollection.RemoveAt
14727 to throw an InvalidOperationException is virtual mode is being used.
14729 2007-03-02 Jonathan Pobst <monkey@jpobst.com>
14731 * SplitContainer.cs, SplitterPanel.cs, StatusStrip.cs, TableLayoutPanel.cs,
14732 ToolStrip.cs, ToolStripContainer.cs, ToolStripContentPanel.cs,
14733 ToolStripControlHost.cs, ToolStripDropDownItems.cs, ToolStripItem.cs,
14734 ToolStripMenuItem.cs, ToolStripOverflowButton.cs, ToolStripPanel.cs,
14735 ToolStripPanelRow.cs, ToolStripProfessionalRenderer.cs, ToolStripSplitButton.cs,
14736 ToolStripStatusLabel.cs, ToolStripTextBox.cs: Corcompare work.
14738 2007-03-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
14740 * XplatUI.cs: Fixed returning driver.KeyboardSpeed instead of
14741 driver.KeyboardDelay from XplatUI.KeyboardDelay
14742 * XplatUIW in32.cs: Implemented KeyboardSpeed/KeyboardDelay properties
14743 (patch by Sergey Volk)
14745 2007-03-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
14747 * ToolWindowManager.cs: Added, contains logic for
14749 * CreateParams.cs: Add a few helper methods and an
14750 internal variable to know which control the CreateParams belongs
14752 * Control.cs: Call Form.ChangingParent when the
14753 parent is about to be changed.
14754 * XplatUIX11.cs: DeriveStyles (): Set
14755 caption_height for all windows that have captions and are children.
14756 Update to use ToolWindowManager instead of InternalWindowManager
14758 * XplatUIWin32.cs: Set fake window styles for all
14759 windows that have window managers.
14760 * MdiWindowManager.cs: Added MaximizedTitleButtons (buttons are
14761 now duplicated for mdi windows when they are
14762 maximized, first for the buttons the window itself has, then for
14763 the buttons that appear in the menu bar. Makes things a little
14764 easier). Updated UpdateWindowDecorations, SetWindowState and the
14765 mouse eventhandlers accordingly.
14766 * Form.cs: Add ChangingParent (), contains the
14767 logic of what should happen when the parent changes. In MdiParent
14768 don't set things that ChangingParent () is doing. When handling
14769 WM_CLOSE, we can close the form if there are any other modal forms
14770 and the current form is a descendent of the modal form.
14771 * InternalWindowManager.cs: A lot of refactoring,
14772 the title buttons are now extracted to a separate container class
14773 that takes care of all button code (clicks, tooltips, etc). Moved
14774 Iconic|Maximized|Normal Bounds properties to this class from
14775 MdiWindowManager, so that the window state logic can succeed for
14776 other than mdi wm's. Implemented general window state change logic.
14777 Moved CreateButtons to ThemeWin32Classic, since the theme might
14778 override which buttons are available when as well as the exact
14780 * FormWindowManager.cs: Added, contains logic for
14782 * ThemeWin32Classic.cs: ManagedWindowSetButtonLocations now decides
14783 which buttons go where (and if they are at all visible).
14784 Removed special handling of maximized windows, since they aren't special.
14785 In DrawManagedWindowDecorations don't try to draw the text if it is
14787 * MdiClient.cs: ArrangeIconicWindows: Don't calculate any sizes,
14788 use whatever the wm gives us.
14790 2007-03-02 Jonathan Pobst <monkey@jpobst.com>
14792 * ButtonBase.cs: Add 2.0 properties.
14793 * Button.cs: Override Draw for 2.0.
14794 * Control.cs: Add Entered and Selected properties.
14795 * FlatButtonAppearance.cs, TextFormatFlags.cs, TextImageRelation.cs,
14796 TextRenderer.cs: Make internal for 1.1 to unify drawing code.
14797 * Theme.cs: New abstract functions for drawing Standard, Flat, Popup
14799 * ThemeWin32Classic.cs: Implement layout calculations for 2.0 buttons.
14801 2007-03-01 Jonathan Pobst <monkey@jpobst.com>
14803 * XplatUIWin32.cs: Don't use 2.0 methods in 1.1 code. :/
14805 2007-03-01 Jonathan Pobst <monkey@jpobst.com>
14807 * XplatUIWin32.cs: Register a new class with Windows each time we get
14808 a new ClassStyle. [Fixes bugs #79432, #80817]
14809 * Controls.cs: Set the correct ClassStyle in CreateParams.
14810 * ToolStripDropDown.cs: Don't request an invalid ClassStyle.
14812 2007-03-01 Gert Driesen <drieseng@users.sourceforge.net>
14814 * ListView.cs: Add fireEvent argument to ReorderColumn since the
14815 ColumnReordered event must not be signaled when modifying DisplayIndex
14816 of a ColumnHeader. Added internal ReorderColumns method which takes
14817 care of drawing, and updating the internal DisplayIndex of the
14818 ColumnHeader. Added AddColumn method which is invoked from
14819 ColumnHeaderCollection when adding or inserting columns, and which
14820 ensures that reorder_columns_indices is kept in sync. Avoid redrawing
14821 after adding each ColumnHeader in ColumnHeaderCollection.AddRange.
14822 Recalculated dispay indices after removing a ColumnHeader.
14823 * ColumnHeader.cs: Save DisplayIndex separately from ListView to
14824 match MS. Allows last display index to be returned after ListView
14825 is disposed. Update actual location of ColumnHeader when DisplayIndex
14828 2007-03-01 Everaldo Canuto <everaldo@simios.org>
14830 * LinkLabel.cs: Improve CalcTrimRectangle.
14832 * ThemeWin32Classic.cs: Fix some compilation problem under VS 2003.
14834 2007-02-28 Everaldo Canuto <everaldo@simios.org>
14836 * LinkLabel.cs: Rename CalcMeasurementFactor as CalcTrimRectangle and
14837 get rectangle as a result value.
14839 2007-02-28 Everaldo Canuto <everaldo@simios.org>
14841 * LinkLabel.cs: Theres some diferences between rectangle return from
14842 MeasureCharacterRanges and the area used for DrawString to fix this
14843 CalcMeasurementFactor method was created, it calcules the diferences
14844 to be use later to adjust rectangle in draw operations. Fixes #80473.
14846 * ThemeWin32Classic.cs: Use factor calculated by CalcMeasurementFactor
14847 to adjust draw rectangle.
14849 2007-02-27 Everaldo Canuto <everaldo@simios.org>
14851 * ThemeWin32Classic.cs: In DrawLinkLabel draw focus rectangle before draw
14852 text and some other changes to reduce and optimize source code.
14854 2007-02-27 Jonathan Pobst <monkey@jpobst.com>
14856 * RadioButton.cs: Implement 2.0 event.
14857 * RelatedImageListAttribute.cs: Implement new class.
14859 2007-02-27 Everaldo Canuto <everaldo@simios.org>
14861 * MenuAPI.cs: Change keynav_state before call SelectItem. Fixes #80901.
14863 2007-02-27 Jonathan Pobst <monkey@jpobst.com>
14865 * CheckBox.cs: Implement 2.0 functionality.
14867 2007-02-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
14869 * ListView.cs: Refactor Add and AddRange methods of
14870 ListViewItemCollection, to not update the ListView
14871 everytime an item is added in AddRange. Also move the update
14872 code to a new CollectionChanged method, and call it
14873 from other methods that need it as well (this should also fix some
14874 bugs when Sorting is used).
14876 2007-02-27 Jackson Harper <jackson@ximian.com>
14878 * TextControl.cs: Try to never let the caret stay in a non-text
14880 * TextBoxBase.cs: Update the caret.
14882 2007-02-26 Jonathan Pobst <monkey@jpobst.com>
14884 * XplatUIStructs.cs: Add some convenience methods for POINT structure.
14885 * XplatUIWin32.cs: Add some convenience methods for RECT structure,
14886 delete POINT structure, duplicate of one in XplatUIStructs.
14887 * TextRenderer.cs: Use XplatUIWin32.RECT instead of UXTheme.RECT.
14889 2007-02-26 Gert Driesen <drieseng@users.sourceforge.net>
14891 * ListView.cs: Initialize LabelEditEventArgs after setting Text of
14892 edit box since otherwise the Label would immediately be set (even if
14893 the user did not modify the label). In OnKeyDown set Handled to true
14894 if Return or Escape was pressed. In ColumnHeaderCollection unlink
14895 columns that are to be removed. In ListViewItemCollection unlink items
14896 that are to be removed.
14898 2007-02-24 Jonathan Pobst <monkey@jpobst.com>
14900 * TextRenderer.cs: If we set a GDI clip region, we need to clear
14901 it when we are done. [Fixes bug #80949]
14903 2007-02-23 Jonathan Pobst <monkey@jpobst.com>
14905 * Form.cs: Wrap checking ShowWithoutActivation in a NET_2_0 block.
14907 2007-02-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
14909 * ListView.cs: I forgot to commit the changes for ListView
14910 in my previous patch.
14912 2007-02-23 Jonathan Pobst <monkey@jpobst.com>
14914 * Clipboard.cs: Partially implement an overload of SetDataObject.
14915 * Form.cs: Implement ShowWithoutActivation.
14916 * XPlatUIWin32.cs: Fix for WM_SHOWNOACTIVATE for forms.
14918 2007-02-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
14920 This is a first set of changes to make the Virtual mode works,
14921 by avoiding the retrieval of ListViewItem instances until
14924 * ListView.cs: Store item position in the ListView instead of the
14925 ListViewItem, this way we don't request the Bounds property of
14926 ListViewItem inside the ListView calculations, as well as cache the item
14927 size in item_size field. Store indexes instead of ListViewItem
14928 instances in the matrix used by icon view. Add a ItemMatrixLocation
14929 struct to hold the row and col info of the matrix info.
14931 * ListViewItem.cs: Don't store the location anymore, and only cache
14932 the rectangles for GetBounds. Use the ListView.GetItemLocation
14933 method to retrieve the actual location.
14935 2007-02-23 Jonathan Pobst <monkey@jpobst.com>
14937 * TextRenderer.cs: Add clipping support, thanks to George.
14940 2007-02-23 Gert Driesen <drieseng@users.sourceforge.net>
14942 * ListViewItem.cs: Cancel label edit when item is removed from
14944 * ListView.cs: Move setting of focus to EndEdit. Fire BeforeLabelEdit
14945 event before the edit textbox is displayed. Added CancelEdit method
14946 which is used end to editing while ignoring the value set by the
14947 user. In EndEdit, set focus to ListView to avoid losing focus to
14948 other controls. In ListViewItemCollection.Clear, cancel editing of
14949 any of the items. In Remove, cancel editing of item being removed.
14950 Avoid udplicate code by modifing RemoveAt to invoke Remove.
14952 2007-02-23 Gert Driesen <drieseng@users.sourceforge.net>
14954 * FileDialog.cs: Update FSEntry when move is successful. Fixes
14957 2007-02-23 Everaldo Canuto <everaldo@simios.org>
14959 * MainMenu.cs: Change Draw method to take care about MenuOrigin to be
14960 compatible with non X11 systems. Fixes #80901.
14962 2007-02-23 Gert Driesen <drieseng@users.sourceforge.net>
14964 * ListView.cs: Added bool argument to UpdateMultiSelection to specify
14965 whether the item should be unselected and reselect. We do no want this
14966 when we're starting to edit the label. Do not fire the
14967 SelectedIndexChanged event from ListView when its already been fired
14968 by modifying ListViewItem.Selected. Fixes bug #80943.
14970 2007-02-23 Jonathan Pobst <monkey@jpobst.com>
14972 * TextRenderer.cs: Previos commit logic was backwards.
14974 2007-02-23 Jonathan Pobst <monkey@jpobst.com>
14976 * TextRenderer.cs: Don't add padding on MeasureText if we were
14977 sent the NoPadding flag.
14979 2007-02-23 Everaldo Canuto <everaldo@simios.org>
14981 * ThemeWin32Classic.cs: Invert order of drawing operation with DrawImage
14982 after DrawButton. To prevent image overlaps button borders SetClip and
14983 ResetClip added before and after draw image. Fixes #79129.
14985 2007-02-23 Everaldo Canuto <everaldo@simios.org>
14987 * FolderBrowserDialog.cs: Use ClientSize instead of Size to specify
14988 window size, it fix problem when you run under win32 that theres
14989 Size diferent than ClientSize. Also fix controls size and positions
14990 to mimic Win32. Fixes #80837.
14992 2007-02-22 Everaldo Canuto <everaldo@simios.org>
14994 * Form.cs: Handle WM_NCHITTEST and return HTMENU when point is on
14995 menu area to fix some problems for non X11 systems. Fixes #80613.
14997 2007-02-22 Jackson Harper <jackson@ximian.com>
14999 * TreeNode.cs: When a node is expanded, set its is_expanded flag
15000 even if it doesn't have any children.
15002 2007-02-22 Jackson Harper <jackson@ximian.com>
15004 * TreeView.cs: Calculate the top node 'on the fly', this
15005 eliminates issues where you need to click on the tree before
15006 scrolling it to get the top node computed correctly.
15007 * TreeNodeCollection.cs: We don't need to mess with the top node
15010 2007-02-22 Jackson Harper <jackson@ximian.com>
15012 * DataGridViewRow.cs: Fix typo so height can actually be set.
15013 Patch by Peter Grimm.
15015 2007-02-22 Gert Driesen <drieseng@users.sourceforge.net>
15017 * FileDialog.cs: Fixed support for renaming files and directories.
15018 * ListView.cs: Do not lose focus when edit is canceled. Process
15019 Escape as regular key (to prevent closing of dialogs).
15021 2007-02-22 Gert Driesen <drieseng@users.sourceforge.net>
15023 * ListView.cs: Removed TODO for LabelEdit. Removed extra tabs and
15024 spaces. Changed spaces to tabs. Removed unnecessary init of bools.
15026 2007-02-22 Gert Driesen <drieseng@users.sourceforge.net>
15028 * FileDialog.cs: LabelEditEventArgs.Label now returns null when user
15029 did not modify label.
15030 * ListView.cs: Only set LabelEditEventArgs.Label if user actually
15031 modified the text. Reset Label when user presses Escape in edit mode.
15032 Move focus to ListView after having cancelled or finished editing the
15035 2007-02-21 Gert Driesen <drieseng@users.sourceforge.net>
15037 * ComboBox.cs: Removed unnecessary initializations. Marked items field
15038 private. Clear textbox when Text is set to null and SelectedIndex is
15040 * FileDialog.cs: Removed unnecessary initializations. Removed
15041 workarounds for ComboBox bugs that are now fixed. Modified
15042 DefaultExt, InitialDirectory and Title property to change null to
15043 zero-length string in getters. Avoid directly accessing fields.
15045 2007-02-20 Jackson Harper <jackson@ximian.com>
15047 * TextControl.cs: Remove RecalAlignments call, that was some
15048 debugging leftovers.
15049 - Don't use the line indent when we shouldn't.
15050 * RichTextBox.cs: Add support for paragraph left indents.
15052 2007-02-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
15054 * Control.cs: Fix BeginInvoke signature for 2.0 profile.
15055 Seems like the class status pages doesn't catch params differences.
15057 2007-02-19 Gert Driesen <drieseng@users.sourceforge.net>
15059 * ComboBox.cs: Removed extra tabs. Changes spaces to tabs.
15061 2007-02-19 Gert Driesen <drieseng@users.sourceforge.net>
15063 * ComboBox.cs: Setting Text should have no effect if item text of
15064 selected item exactly matches value. First lookup text using
15065 case-sensitive comparison, and fallback to case-insensitive comparison.
15066 FindString(Exact) returns -1 if search string is null. On 2.0 profile,
15067 allow startIndex to be last index. Changed ArgumentOutOfRangeException
15068 paramname to match MS. Restart from first item if string is not found
15069 after startIndex. Fixed paramname of ArgumentNullException that is
15070 thrown for null value in ObjectCollection.Contains.
15072 2007-02-19 Everaldo Canuto <everaldo@simios.org>
15074 * XplatUIStructs.cs: WM_XXX UISTATE elements uncommented.
15076 2007-02-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
15078 * ListControl.cs: In SelectedValue use value.Equals to compare for
15079 equality instead of ==, otherwise it will fail for strings.
15082 2007-02-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
15084 * ComboBox.cs: Switch the order to ShowSelection and ActivateCaret,
15085 since the caret won't show up unless ShowSelection is true.
15088 2007-02-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
15090 * Application.cs: When disabling all forms but the main form, do not
15091 disable any descendants of the main form (such as mdi children or
15092 other parented forms). Fixes #80822 on Windows.
15093 * Form.cs: If we have a parent, set the WS_CHILD style.
15094 * Control.cs: Update the window styles if the control whose parent has
15095 changed is a form (the WS_CHILD style has to be switched).
15097 2007-02-19 Everaldo Canuto <everaldo@simios.org>
15099 * XplatUIStructs.cs: MsgUIState structure added.
15101 2007-02-18 Gert Driesen <drieseng@users.sourceforge.net>
15103 * FileDialog.cs: Removed need for separate fileName field. On 2.0
15104 profile, do not check filename(s) for illegal character if filename(s)
15105 were set non-interactively but always check on 1.0 profile. Fixed NRE
15106 in DefaultExt and only strip off first leading dot. Improve exception
15107 message when invalid Filter is set. Do not ignore InitialDirectory if
15108 it does no exist. Store specified Title, and if empty use default
15109 title (depending on type of dialog). Added an internal DialogTitle
15110 property for retrieving dialog title. Fixed logic of displayed dir to
15111 more closely match MS. Avoid setting ComboBox.Text to a zero-length
15112 string as its buggy.
15113 * OpenFileDialog.cs: In OpenFile, throw ArgumentNullException if
15114 FileName is a zero-length string (it can never be null). Override
15115 DialogTitle property to set default title of dialog box.
15116 * SaveFileDialog.cs: Override DialogTitle property to set default
15117 title of dialog box.
15119 2007-02-18 Gert Driesen <drieseng@users.sourceforge.net>
15121 * FileDialog.cs: Modify default text of filename and filetype labels
15122 to match that of MS. Reset do_not_call_OnSelectedIndexChanged...
15123 after we've updated the SelectedIndex. Fixes part of bug #80887.
15124 * SaveFileDialog.cs: Set text of filetype label.
15126 2007-02-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
15128 * LabelEditEventArgs.cs: New internal SetLabel method, to set the
15129 label field. Needed by latest Jackson's fixes for ListView.
15131 2007-02-16 Andreia Gaita <avidigal@novell.com>
15133 * PrintPreviewControl/PrintPreviewDialog: Properly dispose of
15134 print preview images.
15136 2007-02-16 Jackson Harper <jackson@ximian.com>
15138 * ListView.cs: Make AfterLabelEdit work correctly.
15139 * FileDialog.cs: After changing the name of the folder, we have to
15140 make sure that it is created, or that we pop up an error because
15143 2007-02-16 Jackson Harper <jackson@ximian.com>
15145 * X11Dnd.cs: Implement aliases on mime handlers, so things like
15146 System.String are mapped to text.
15147 - Handle dataobjects, getting all the possible formats out of them
15148 - We dont need the drag event args before we give feedback. This
15149 allows feedback cursors to be immediate before selections have
15152 2007-02-16 Jackson Harper <jackson@ximian.com>
15154 * TextBoxBase.cs: Modified the method for inserting images to
15155 taking a line and position instead of tag and position.
15156 * RichTextBox.cs: Handle PngBlip data by inserting the png image
15158 * TextControl.cs: Allow images to be inserted as the first tag of
15160 - Fix some off by one issues when we assume the first tag is a
15161 text tag, not an image tag.
15163 2007-02-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
15165 * ListView.cs: Set focus to ListView when ItemControl gets a
15166 WM_RBUTTONDOWN message, to mimic .Net behaviour.
15167 Fixes part of #80467.
15169 2007-02-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
15171 * DateTimePicker.cs: Call RecreateHandle if the Format changes and
15172 validate Text input (if null or empty string reset Value to default
15173 value). Fixes #80830.
15175 2007-02-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
15177 * ListView.cs: Set owner as null for columns and items when
15178 Dispose is invoked. Fixes #80607.
15180 2007-02-14 Jonathan Pobst <monkey@jpobst.com>
15182 * ToolStrip.cs: Allow LayoutStyle.Flow, make sure to call OnOpening when
15183 showing DropDowns, don't show a Grip when doing Flow layout.
15184 [This fixes the toolbox in PDN 2.72.]
15185 * ToolStripItem.cs: Add Anchor property and some internal properties to
15186 reduces needed changes to FlowLayout.
15187 * ToolStripOverflow.cs: Remove unused variable.
15188 * ToolStripSplitStackLayout.cs: If a ToolStripItem isn't visible, don't
15189 use it in the layout calculations.
15191 2007-02-13 Everaldo Canuto <everaldo@simios.org>
15193 * ToolTip.cs: Add HotkeyPrefix.Hide to MeasureString format, it fix an issue
15194 reported in #79640.
15196 * ThemeWin32Classic.cs: Uses format for MeasureString in ToolTipSize to fiz
15199 2007-02-13 Everaldo Canuto <everaldo@simios.org>
15201 * ToolBar.cs, ToolBarButton.cs: Revert and remove HotkeyPrefix from
15202 MeasureString format, it can make button very large in some cases, it is
15203 strange but is what win32 do.
15205 2007-02-13 Everaldo Canuto <everaldo@simios.org>
15207 * ToolBar.cs, ToolBarButton.cs: Uses format in MeasureString to fix string
15210 * ThemeWin32Classic.cs: Set HotkeyPrefix in toolbar text format to fix text
15211 rendering, the value is based on MenuAccessKeysUnderlined.
15213 2007-02-13 Everaldo Canuto <everaldo@simios.org>
15215 * Theme.cs: Change MenuAccessKeysUnderlined to "true" that is value used
15218 * ThemeWin32Classic.cs: Override MenuAccessKeysUnderlined as false.
15220 * ThemeNice.cs, ThemeGtk.cs, ThemeClearlooks.cs: Remove always_draw_hotkeys
15221 and use MenuAccessKeysUnderlined instead.
15223 2007-02-13 Andreia Gaita <avidigal@novell.com>
15225 * ContainerControl.cs: Focus fix for nunit treeview selection bug.
15226 A selected control would not get a Focus call if:
15227 - the default active control of the container is the same as
15228 the one that was selected
15229 - we are switching from one container to another
15230 Under these conditions, the container being selected already has
15231 an active_control, which is the same as the one being activated,
15232 so set_ActiveControl would always return and not send the Focus
15233 call. Fix to check if the currently active control of the container
15234 is actually focused.
15236 2007-02-13 Jonathan Pobst <monkey@jpobst.com>
15238 * StatusStrip.cs: Implement the spring layout.
15239 * ToolStripControlHost.cs: Make sure the hosted control's visibility
15240 always matches the host.
15241 * ToolStripItem.cs: Write a more accurate layout for TextBeforeImage
15242 and TextAfterImage.
15244 2007-02-13 Andreia Gaita <avidigal@novell.com>
15246 * Control.cs: Code reorganization only.
15247 - Reorganize the WndProc cases so that each case has it's own handling method,
15248 to help with the no-line-numbering stack traces.
15249 - Formatting changes (it's vstudio's fault, really :p)
15251 2007-02-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
15253 * MonthCalendar.cs: Switch to using Thread.CurrentCulture instead of
15254 Thread.CurrentUICulture to match DateTimePicker's (and MS)
15257 2007-02-12 Jackson Harper <jackson@ximian.com>
15260 * TextBox.cs: By default we have a non multiline document
15261 - use the multiline property instead of the internal variable
15262 * TextBoxBase.cs: Treat multiline and non multiline the same in
15264 - Use the documents multiline flag instead of tracking it ourself
15265 * TextControl.cs: Attempt at getting multiline to match MS
15266 behavior. Lines now track an offset, which is either their X or Y
15267 offset depending on whether or not we are in multiline mode.
15268 - Update all the methods to understand that lines have an X value.
15269 - Fix crash in Undo::Duplicate when empty lines are deleted.
15271 2007-02-12 Everaldo Canuto <everaldo@simios.org>
15273 * Label.cs: CalcPreferredHeight and CalcPreferredWidth methods removed and
15274 code moved to properties PreferredHeight and PreferredWidth. It solve the
15275 all problems when preferred sizes must be recalculated. Fixes #80801.
15277 2007-02-12 Everaldo Canuto <everaldo@simios.org>
15279 * Label.cs: Fix CalcPreferredHeight for 2.0 that must return only
15280 font height when compatible_text_rendering is false. Partially fix #80801.
15282 2007-02-09 Gert Driesen <drieseng@users.sourceforge.net>
15284 * Form.cs: Fixed typo in exception message. Fixes bug #80779.
15286 2007-02-09 Gert Driesen <drieseng@users.sourceforge.net>
15288 * Form.cs: Improved exception messages in ShowDialog.
15290 2007-02-09 Gert Driesen <drieseng@users.sourceforge.net>
15292 * PrintDialog.cs: On 1.0 profile, throw ArgumentException in RunDialog if
15293 PrinterSettins has not been set. On 2.0 profile, initialize PrinterSettings
15294 if not set. Fixes bug #80764. Avoid accessing current_settings field
15297 2007-02-08 Everaldo Canuto <everaldo@simios.org>
15299 * Theme.cs: An new property MenuAccessKeysUnderlined added with default value
15302 * SystemInformation.cs: An new property MenuAccessKeysUnderlined added, it is
15303 public in 2.0 and for easy maintenance and dont break compatibility it is
15306 2007-02-08 Jonathan Pobst <monkey@jpobst.com>
15308 * ToolStripItem.cs: Implement using images from ImageList.
15310 2007-02-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
15312 * DateTimePicker.cs: Change default date-formatting culture from
15313 CurrentThread.CurrentUICulture to CurrentThread.CurrentCulture,
15314 seems to be the way MS does it.
15316 2007-02-08 Andreia Gaita <avidigal@novell.com>
15318 * PrintPreviewControl.cs: rewrite toolbar code to fix #80725. Correct 6-up image
15319 (the 6 was cut off on the right side)
15321 2007-02-08 Jonathan Pobst <monkey@jpobst.com>
15323 * Form.cs: Tell MenuStrips to close when the form is clicked.
15324 * MenuStrip.cs, ToolStrip.cs, ToolStripControlHost.cs,
15325 ToolStripDropDown.cs, ToolStripDropDownItem.cs, ToolStripItem.cs,
15326 ToolStripItemCollection.cs, ToolStripMenuItem.cs, ToolStripProfessionalRenderer.cs,
15327 ToolStripSplitButton.cs, ToolStripSplitStackLayout.cs: Add
15328 support for Overflow, where items that do not fit are automatically
15329 reparented to a drop down menu.
15330 * ToolStripOverflow.cs, ToolStripOverflowButton.cs: Added.
15331 Also: fixes bug #80747.
15333 2007-02-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
15335 * ComboBox.cs: Remove warning (unused code).
15336 * ScrollableControl.cs: Remove warning for 1.1 profile.
15338 2007-02-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
15340 * Form.cs: Remove a warning.
15342 2007-02-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
15344 * DateTimePicker.cs: Fixed a NRE if CustomFormat was null. Handles the
15345 'g' specifier, not documented anywhere, but seems to always show up
15346 as a single space (might have something to do with the DateTime 'g'
15347 specifier, which is the era format, but since DateTimePicker can't
15348 go earlier than 1753 it wouldn't matter) . Fixed quote handling,
15349 won't crash if the format has an unmatched quote. Now shows
15350 single-character formats correctly. Fixes #80744.
15352 2007-02-08 Jonathan Pobst <monkey@jpobst.com>
15354 * StatusStrip.cs: Stretch property needs to call base.Stretch,
15355 not this.Stretch to fix stack overflow. [Fixes bug #80760]
15357 2007-02-07 Chris Toshok <toshok@ximian.com>
15359 * ThemeWin32Classic.cs (DrawButtonBase): don't clear to the
15360 background color. it overwrites the background image we've
15361 already painted. Fixes #80599.
15363 2007-02-07 Chris Toshok <toshok@ximian.com>
15365 * DataGrid.cs: return immediately from Edit() when there are no
15366 columns. Fixes #80662.
15368 2007-02-07 Chris Toshok <toshok@ximian.com>
15370 * MessageBox.cs: fix #80625. don't always show the Help button in
15371 2.0. use the displayHelpButton parameter to determine if we
15372 should show it. Also, make the internal show_help field private.
15374 2007-02-07 Chris Toshok <toshok@ximian.com>
15376 * Control.cs (SetVisibleCore): check in the proposed patch for
15377 80604, and set is_visible before calling CreateControl.
15379 2007-02-07 Jonathan Pobst <monkey@jpobst.com>
15381 * ListView.cs: UseCompatibleStateImageBehavior setter changed from NIEX to
15382 MonoInternalNote. This is added automagically by VS2005, so let's not crash
15385 2007-02-06 Everaldo Canuto <everaldo@simios.org>
15387 * MenuAPI.cs: hotkey_active internal field added, it is required because
15388 we need to know when hotkeys must be draw, before this change a keystate
15389 Navigating was used but we can have menu in navigating state without
15390 hotkeys. Fixes #80694.
15392 * ThemeWin32Classic.cs: Only draw hot keys when hotkey_active is true.
15394 2007-02-06 Rolf Bjarne Kvinge <RKvinge@novell.com>
15396 * Control.cs: Handle WM_CAPTURECHANGED in 1.1 code as well, and change
15397 corresponding events and methods to be internal for 1.1 profile and
15398 public for 2.0 profile (required by SizeGrip).
15399 * Form.cs: Use SizeGrip as a virtual SizeGrip (and don't add it to the
15400 implicit control list). Don't set the size nor the location of the
15401 SizeGrip anymore as it's not needed.
15402 * SizeGrip.cs: Rewrote large parts, it now supports a virtual mode to
15403 draw directly on the captured control (fixes #80656). Removed
15404 ShowGrip (it wasn't used anywhere), redraw (always true), added
15405 GetDefaultSize and GetDefaultRectangle to calculate defaults.
15406 * ScrollableControl.cs: Make UpdateSIzeGripVisible internal so it can
15407 be called from SizeGrip.
15409 2007-02-06 Rolf Bjarne Kvinge <RKvinge@novell.com>
15411 * Timer.cs: Throw ArgumentException if Interval <= 0.
15413 2007-02-05 Jackson Harper <jackson@ximian.com>
15415 * TreeView.cs: We need to check scrollbar visibility when window
15416 visibility is updated, because non visible trees don't ever add
15418 * Cursor.cs: We want the override cursor to be reset to NULL when
15419 we set current cursor to the default cursor.
15421 2007-02-05 Jackson Harper <jackson@ximian.com>
15423 * TextControl.cs: Don't have crlfs when we are non multiline.
15424 - Consolidate the line position.
15426 2007-02-05 Jackson Harper <jackson@ximian.com>
15428 * X11Keyboard.cs: BACK+CTRL gets a special char code.
15430 2007-02-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
15432 * XplatUIX11.cs: Implemented WM_CAPTURECHANGED support, we're now
15433 handling LeaveNotify->NotifyUngrab in order to send
15434 WM_CAPTURECHANGED. However sometimes the NotifyUngrab arrives late
15435 after calling XUngrabPointer, so we call WindowUngrabbed directly
15436 from UngrabWindow in order to send WM_CAPTURECHANGED immediately.
15437 * Control.cs: Handle WM_CAPTURECHANGED in order to raise
15438 MouseCaptureChanged correctly. Also create handles if changing
15439 Capture (matches MS behaviour).
15441 2007-02-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
15443 * SizeGrip.cs: Make the last change 2.0 only.
15445 2007-02-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
15447 * SizeGrip.cs: If resizing and the capture is lost, revert any size
15448 changes to initial size (fixes #80597).
15450 2007-02-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
15452 * SizeGrip.cs: Use the normal icon for SizeGrip if it is disabled.
15454 2007-02-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
15456 * SizeGrip.cs: Only draw sizegrip if enabled (but always draw
15457 background) and only allow dragging if enabled. This way the
15458 sizegrip can be used to fill the open square that otherwise would
15459 have been shown in the bottom right corner of ScrollableControl
15460 when ScrollableControl is not suppose to support sizing.
15461 * ScrollableControl.cs: Create UpdateSizeGripVisible to decide when the
15462 sizegrip is shown and enabled, and hook up with necessary events.
15464 2007-02-01 Chris Toshok <toshok@ximian.com>
15466 * DataGridTextBoxColumn.cs: clean up the
15467 GetFormattedString/GetColumnValueAtRow combination of functions.
15468 Also fix UpdateUI, and the initial state of
15469 IsInEditOrNavigateMode.
15471 * DataGridTextBox.cs: don't chain up to base.OnMouseWheel - we
15472 aren't supposed to scroll the textbox here, we're supposed to
15473 scroll the datagrid.
15475 2007-02-01 Chris Toshok <toshok@ximian.com>
15477 * ComboBox.cs: use vscrollbar_ctrl.Dock instead of explicitly
15478 setting the position.
15480 2007-02-01 Chris Toshok <toshok@ximian.com>
15482 * DataGrid.cs (OnLeave): we can now do the CancelCurrentEdit thing
15483 here, since the most recent focus fixes keep us from generating
15484 the Leave event when our textbox gets focus.
15485 (Edit): we should be passing null for the column style's
15486 instantText parameter.
15488 2007-02-01 Jonathan Pobst <monkey@jpobst.com>
15490 * ToolStripDropDownItem.cs: Make sure DropDownOpening event is
15491 raised. Fixes menu text/icons not showing up in PDN.
15493 2007-02-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
15495 * Control.cs: Remove code in constructor that makes every
15496 control with WS_CHILD set have initial location -1, -1.
15498 2007-01-31 Jackson Harper <jackson@ximian.com>
15500 * X11Dnd.cs: Take the keyboard on init to reduce coupling with
15502 * XplatUIX11.cs: Give teh keyboard to teh dnd.
15504 2007-01-31 Jackson Harper <jackson@ximian.com>
15506 * X11Dnd.cs: Use IDataObject instead of the DataObject class.
15507 - Remove some debug code.
15509 2007-01-31 Jackson Harper <jackson@ximian.com>
15511 * XplatUIX11.cs: If you set the override cursor during a grab, it
15512 should actually override the grab cursor. This comes into play
15513 when you are setting custom cursors in a DND feedback method.
15515 2007-01-31 Jackson Harper <jackson@ximian.com>
15517 * X11Dnd.cs: Add support for handling the QueryContinue and
15518 GiveFeedback events.
15519 - Cancel drag and drop actions when the escape key is clicked.
15520 * XplatUIX11.cs: Let the dnd subsystem get key events, so that it
15521 can handle the ESCAPE key.
15522 - Allow dnd to swallow BUTTONUP messages if it needs to. This is
15523 done when dnd events are continued after the button is released.
15524 - Add a new helper method so that dnd can translate key events.
15526 2007-01-31 Alexander Olk <alex.olk@googlemail.com>
15528 * FileDialog.cs: Rewrite of Jacksons OnClickCancelButton patch to
15529 make it more obvious what is happening.
15531 2007-01-30 Jackson Harper <jackson@ximian.com>
15533 * XplatUIX11.cs: Don't break when handling button release in drag
15534 and drop operations. We need that BUTTONUP message to get through
15535 so capture is released.
15536 * X11Dnd.cs: We don't need to manually grab the pointer anymore,
15537 this is handled automatically when the mouse is down.
15539 2007-01-30 Jackson Harper <jackson@ximian.com>
15541 * FileDialog.cs: OnClickCancelButton gets called whenever the dialog
15542 is closed, so we need to make sure that we aren't changing the
15543 dialog result when the OK (Open or Save) button has been clicked
15544 and we are closing the window ourselves. Note we don't need to
15545 worry about the cache being written in this case, because it was
15546 already done in the previous FilOk call.
15548 2007-01-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
15550 * DateTimePicker.cs: Remove a warning.
15551 * ComboBox.cs: Remove a couple of warnings.
15553 2007-01-29 Chris Toshok <toshok@ximian.com>
15555 * XplatUIX11.cs: don't crash, and remove the icon if the user has
15556 set one, if SetIcon is passed a null icon.
15558 2007-01-29 Andreia Gaita <avidigal@novell.com>
15560 * TextBox.cs: Redraw when the password characters changes
15561 * TextControl.cs: Check if textbox has a password char and draw
15562 a line of password chars instead of the text in the line. LineTag gets
15563 an extra Draw() method which allows document.Draw to override the text
15564 that will be drawn. Removes 1024 char limitation on length of passworded
15567 2007-01-29 Jackson Harper <jackson@ximian.com>
15569 * TextBoxBase.cs: Deleting sections of text is undoable. Deleting
15570 single chars is not.
15572 2007-01-28 Jonathan Pobst <monkey@jpobst.com>
15574 * TextRenderer.cs: Fix cutting off the bottom of letters like "j" by
15575 one pixel. Fix a StackOverflowException caused by an overload wrongly
15578 2007-01-26 Everaldo Canuto <everaldo@simios.org>
15580 * MenuAPI.cs: Fixed kerboard grab problem when "enter"key is pressed,
15581 also remove ProcessArrowKey and put the code inside ProcessKeys.
15583 2007-01-26 Jonathan Pobst <monkey@jpobst.com>
15585 * PaddingConverter.cs: Added.
15587 2007-01-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
15589 * ThemeWin32Classic.cs: Only draw the text of a StatusBar if
15590 ShowPanels is false (fixes #80600). Only draw up to 127 characters
15591 of text (fixes #80601). For panels clip the text to draw to the
15592 panel (fixes #80603).
15594 2007-01-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
15596 * ComboBox.cs: Fixed implementation of ResetText.
15598 2007-01-25 Jackson Harper <jackson@ximian.com>
15600 * TextControl.cs: For the last char of a line we need to use the
15601 line size, not that chars width, since it won't actually be
15602 computed since the right side of a char is based on the start of
15603 the left side of the next char, and the next char does not exist.
15605 2007-01-25 Chris Toshok <toshok@ximian.com>
15607 * Splitter.cs: fix the new unit tests, and reindent some switch
15610 2007-01-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
15612 * ComboBox.cs: Implemented 2.0 methods and events.
15613 * TextBoxBase.cs: Added OnTextUpdate, so that
15614 ComboBox.ComboTextBox can inform ComboBox of it.
15616 2007-01-25 Jackson Harper <jackson@ximian.com>
15618 * TextControl.cs: Respect ShowSelection when deciding whether or
15619 not to display the caret, this allows comboboxes to have carets
15620 when the combotextbox does not have focus.
15622 2007-01-25 Jackson Harper <jackson@ximian.com>
15624 * TextControl.cs: Add a Suspend/Resume for updating, basically the
15625 same as the Suspend/Resume for recalc, except this will do actual
15627 - New Undo manager, works much like the MS version.
15629 * TextBoxBase.cs: The Cut operation is undoable.
15631 2007-01-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
15633 * TextBoxBase.cs: Don't antialias text. Makes it look way better
15634 on Windows (no difference on Linux).
15636 2007-01-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
15638 * XplatUIWin32.cs: Set SWP_NOACTIVATE in RequestNCRecalc as well,
15639 we don't want to activate any windows. Fixes #79433.
15641 2007-01-25 Jonathan Pobst <monkey@jpobst.com>
15643 - ButtonBase.cs: Fix capitalization of parameter: disposing.
15646 2007-01-25 Alexander Olk <alex.olk@googlemail.com>
15649 - Move to using System.ComponentModel.EventHandlerList
15650 - Replace Refresh with Invalidate
15651 - Clear the mime filecache on closing
15652 - Some other memory reducing work. After beeing closed FD now uses
15653 only about 300 KB for the fdo mime stuff plus the memory of the
15655 * Mime.cs: Changed coding style and removed unnecessary commented
15656 code. Some more memory memory reducing work.
15658 2007-01-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
15660 * ComboBox.cs: Implemented FlatStyle and DropDownHeight, and added
15661 a few other missing 2.0 properties.
15662 * Theme.cs: Added DrawFlatStyleComboBox.
15663 * ThemeWin32Classic.cs: Implemented DrawFlatStyleComboBox.
15665 2007-01-24 Chris Toshok <toshok@ximian.com>
15667 * XplatUIX11.cs: fix the wake_waiting logic - we always clear the
15668 wake_waiting flag, not just when there's data to be read. if we
15669 don't, then future wakeup's won't reach us and we'll be doomed to
15670 wait for the entire 1 second timeout forever (unless there are X
15673 2007-01-24 Jonathan Pobst <monkey@jpobst.com>
15675 * ComboBox.cs: FindStringExactMaxException doesn't throw AOORE on 2.0
15676 until you pass Items.Count, not Items.Count - 1 like 1.1.
15678 2007-01-24 Gert Driesen <drieseng@users.sourceforge.net>
15680 * ColumnHeader.cs: Fixed ParamName in ArgumentOutOfRangeException.
15682 2007-01-24 Jonathan Pobst <monkey@jpobst.com>
15684 * ToolStripContainer.cs: The recent Dock fix exposed that I was
15685 adding the panels in the wrong order.
15687 2007-01-24 Jackson Harper <jackson@ximian.com>
15689 * TextBoxBase.cs: When we move the caret we also need to move the
15690 selection, this fixes some random crashing after doing select
15691 text, unselect, delete a char, paste.
15693 2007-01-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
15695 * Form.cs: Update SizeGrip's location even if it's not visible (fixes #80592).
15697 2007-01-23 Everaldo Canuto <everaldo@simios.org>
15699 * Control.cs: In OnParentBackgroundImageChanged remove conditions to call
15700 OnBackgroundImageChanged, it mimics win32 behavior. Fixes #80553.
15701 * ToolBar.cs: Force redraw in BackgroundImageChanged.
15703 2007-01-23 Everaldo Canuto <everaldo@simios.org>
15706 - Implement support for vertical toolbars. Fixes #80539;
15707 - Call LayoutToolBar when resize, it fix some other problems in layout.
15708 - Rename requested_height to requested_size, as we can have width on it
15709 when toolbar is vertical.
15710 - Create a private property "Vertical" that uses Dock to verify when
15711 toolbar is vertical or not.
15712 - Set ControlStyles when change Dock property.
15713 - Refactory in LayoutToolBar to have better variables names and to support
15715 - Fixes default value for ButtonSize when button count is equal zero, size
15716 must be (39, 36) test case writed.
15718 2007-01-23 Chris Toshok <toshok@ximian.com>
15720 * Control.cs: fix the checks so that they work correctly for mdi
15723 2007-01-23 Chris Toshok <toshok@ximian.com>
15725 * Control.cs: ControlCollection seems to have super-secret
15726 abstraction breaking knowledge of Mdi containers. allow MdiClient
15727 to add toplevel controls.
15729 2007-01-23 Chris Toshok <toshok@ximian.com>
15731 * Control.cs: throw an ArgumentException if a toplevel control is
15732 added to our control collection from ControlCollection.Add, as
15733 well as from ControlCollection.IList.Add. This fixes the
15734 ControlSetTopLevelTest.TestTopLevelAdd unit test.
15736 Also, in ControlCollection.IList.Add, don't through an
15737 ArgumentNullException, throw an ArgumentException, when value ==
15738 null. This matches MS.
15740 2007-01-23 Chris Toshok <toshok@ximian.com>
15742 * BindingSource.cs: initial, incomplete, implementation of
15745 2007-01-23 Jackson Harper <jackson@ximian.com>
15748 * TextBoxBase.cs: Checking in some pieces of the undo stuff so
15749 that I can fix a broken unit test (TextBoxTest::ClearUndo)
15751 2007-01-23 Everaldo Canuto <everaldo@simios.org>
15753 * ToolBar.cs: Add status fields to ToolBarButtonInfo.
15755 2007-01-23 Andreia Gaita <avidigal@novell.com>
15757 * TreeNode.cs: Add new 2.0 ImageKey and SelectedImageKey properties.
15758 * TreeNodeCollection.cs: New Add() methods, ContainsKey and
15759 IndexOfKey() for 2.0
15761 2007-01-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
15763 * XplatWin32.cs: In RequestNCRecalc call SetWindowPos with SWP_NOZORDER
15764 to prevent it from changing z-order.
15765 * MdiWindowManager.cs: Refactor part of SetWindowState to MdiClient, only
15766 leave UI updates in MdiWindowManager.
15767 * InternalWindowManager.cs: Check for 0 sized nc areas and make them
15768 1 sized (NC handling goes weird on Linux otherwise).
15769 * MdiClient.cs: Add missing ExStyle (WS_EX_CLIENTEDGE), so it's no longer
15770 necessary to handle WM_NCCALCSIZE anymore. This also made it possible to
15771 remove a few NCRequestRecalcs. Changed calculations in IconicBounds
15772 to use ClientSize of MdiClient instead of entire size. Refactored ActivateChild
15773 and SetWindowState(s) to allow for changing the size of an activated child
15774 before activating it (reduces a lot of flicker).
15776 2007-01-22 Jonathan Pobst <monkey@jpobst.com>
15778 * Form.cs: Changing FormBorderStyle has different semantics based
15779 on whether the Form is visible or not. If not visible, don't change
15780 the Size. But InvalidateNC needs to be called to force the window
15781 to pick up the changes and redraw itself. [Fixes bug #80574]
15783 2007-01-22 Jonathan Pobst <monkey@jpobst.com>
15786 * ContainerControl.cs: ProcessCmdKey.
15787 * ErrorProvider.cs: new constructor.
15788 * Form.cs: fix AutoValidateEvent compiler warning.
15789 * Label.cs: fix OnAutoSizeChanged compiler warning.
15790 * MenuStrip.cs: fix CanOverflow compiler warning.
15791 * TabControl.cs: SelectTab, OnSelected methods, Selected event.
15792 * TextBox.cs: Dispose.
15793 * ToolStrip.cs: CanOverflow, re-enable double buffering.
15794 * ToolStripControlHost.cs: fix CausesValidation compiler warning.
15795 * ToolStripDropDown.cs: fix ContextStripMenu compiler warning.
15796 * ToolStripItem.cs: Overflow, RightToLeft properties.
15798 2007-01-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
15800 * Form.cs: Move the layout of the main form to MdiWindowManager.
15801 * MdiWindowManager.cs: If WindowState changes from or to Maximized,
15802 do a layout of the main window to update MdiClient's client area to
15803 the right area. Fixes #80533. Remove the calculation of nc size,
15804 it was just wrong and the correct one is the same as for
15805 InternalWindowManager.
15807 2007-01-20 Jonathan Pobst <monkey@jpobst.com>
15809 * Control.cs: Setting Anchor or Dock needs to reset the other
15810 to its default. [Fixes bug #80556]
15812 2007-01-20 Chris Toshok <toshok@ximian.com>
15814 * CheckedListBox.cs: class status changes.
15816 * ScrollableControl.cs: same.
15818 * RichTextBox.cs: same.
15820 * ContainerControl.cs: same.
15822 * ListView.cs: same.
15824 * NotifyIcon.cs: same.
15826 * MenuStrip.cs: same.
15828 * RadioButton.cs: same.
15830 * CheckBox.cs: same.
15832 * PrintPreviewDialog.cs: same.
15836 2007-01-19 Jonathan Pobst <monkey@jpobst.com>
15838 * TreeNode.cs: Apply Alan's patch for Name property.
15840 2007-01-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
15842 * Form.cs: Implemented SizeGripStyle.
15843 * SizeGrip.cs: Check for minimum and maximum size for the
15844 control being resized and only resize if size has actually
15847 2007-01-19 Chris Toshok <toshok@ximian.com>
15849 * DataGridColumnStyle.cs: stop setting _readonly in the
15850 PropertyDescriptor setter. fixes a unit test failure.
15852 also, rename ParentReadOnly to TableStyleReadOnly, and have it
15853 just consult our table style (if we have one). We don't need to
15854 consult the datagrid readonly attribute because that's passed in
15855 as the _ro arg to Edit. this simplifies things a little.
15857 * DataGrid.cs: use CurrentColumn instead of
15858 current_cell.ColumnNumber just to simplify some of the code.
15860 switch the order of some things in the CurrentCell setter to keep
15861 the previous cell from getting a textbox again -
15862 EnsureCellVisibility causes scrolling to happen, which calls Edit.
15863 So we need to set the new cell before calling it.
15865 call Edit in OnEnter, as does Microsoft.
15867 also, make sure the current table style isn't the one we create
15868 initially when checking to see if it's different than the one
15869 we're setting it to in BindColumns (this fixes #80421).
15871 * GridTableStylesCollection.cs: table styles can have "" for a
15872 mapping name. part of the fix for #80421.
15874 * DataGridTextBoxColumn.cs: simplify the readonly calculation in
15875 Edit significantly.
15877 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
15879 * TextRenderer.cs: Rewrote to be complete-er, more MS-matching-er,
15880 and less GDI object leaky-er.
15882 2007-01-18 Andreia Gaita <avidigal@novell.com>
15884 * LinkLabel.cs: Add opaque control style
15886 2007-01-18 Jackson Harper <jackson@ximian.com>
15888 * TextControl.cs: Calculate width properly.
15889 - Don't store the tag's X offset, this can be figured out very
15891 - When getting the caret tag make sure to get the last empty tag.
15893 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
15895 * Form.cs: Recalculate our size after setting a new FormBorderStyle.
15898 * Control.cs: Color.Empty shouldn't count for previous transparent
15901 2007-01-18 Jackson Harper <jackson@ximian.com>
15905 * TextControl.cs: Starting to merge in some pieces of my older
15906 undo work. Basically just some slight cleanup of the undo API.
15908 2007-01-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
15910 * TrackBar.cs: Fix signature of RightToLeftLayout.
15911 * StatusBar.cs: Implemented missing 2.0 methods and attributes.
15912 * StatusBarPanel.cs: Implemented missing 2.0 methods and attributes.
15913 * Application.cs: Implemented UseWaitCursor.
15915 2007-01-18 Jackson Harper <jackson@ximian.com>
15917 * TextControl.cs: We can't skip tags if any part of the tag is
15920 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
15922 * ContainerControl.cs: Override OnLayout.
15924 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
15926 * NotifyIcon.cs: Add ContextMenuStrip and Tag properties.
15928 * ContextMenuStrip.cs: Make sure context menu is shown on top of
15931 2007-01-18 Chris Toshok <toshok@ximian.com>
15933 * ContainerControl.cs: remove the partial handling of LBUTTONDOWN
15934 (leftover from the container_selected days, I'd wager). fixes bug
15937 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
15939 * Control.cs: Apply patch from George to fix the new testcase on
15940 bug #80451. We can't just check for Color.Transparent, we need
15941 to check if the back color's alpha channel is < 255.
15943 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
15945 * Form.cs: Move setting show_icon = true to before the constructor
15946 so that the base constructor has that information when it calculates
15947 the form's size. Was causing forms to be (6, 6) bigger than they
15948 were supposed to be. Thanks for catching this Rolf!
15950 2007-01-18 Jackson Harper <jackson@ximian.com>
15952 * TextControl.cs: When replacing a selection we need to invalidate
15953 from the initial selection start, because selection start is moved
15954 to the end of the replacement.
15956 2007-01-18 Andreia Gaita <avidigal@novell.com>
15958 * LinkLabel.cs: Missing ControlStyles. Fixes #80482
15960 2007-01-18 Chris Toshok <toshok@ximian.com>
15962 * DataGridTextBoxColumn.cs: fix most of the NotWorking unit tests
15965 2007-01-17 Everaldo Canuto <everaldo@simios.org>
15967 * ToolBar.cs: Add layout methods to ToolBarButtonInfo class, every
15968 layout methods and properties from ToolBarButton must be available
15969 into ToolBarButtonInfo.
15971 2007-01-17 Jonathan Pobst <monkey@jpobst.com>
15973 * Control.cs: If the control has a transparent background, we
15974 need to refresh it when it moves and when it's parent's background
15975 image changes. [Fixes bug #80451]
15977 2007-01-17 Jonathan Pobst <monkey@jpobst.com>
15979 * XplatUIWin32.cs: Don't use 2.0 methods in 1.1 code! Doh!
15981 2007-01-17 Jonathan Pobst <monkey@jpobst.com>
15983 * XplatUIWin32.cs: Implement proper double buffering for Windows.
15984 [Fixes bug #80447, and probably speeds up things as well]
15986 2007-01-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
15988 * XplatUIX11.cs: Caption height for MDI children is 19, not 26.
15989 * XplatUIWin32.cs: We need to recalculate NC size after changing
15990 window style to toolwindow (otherwise the client rectangle will be
15991 3 pixels to small for some reason).
15992 * MdiWindowManager.cs: Revert NC size calculations to match how
15993 they are calculated only based on window styles (to match
15994 Win32AdjustWindowRectEx, since otherwise when setting size or
15995 location, Control will call Win32AdjustWindowRectEx to update client
15996 size, which would provoke a paint, then we'd get a NCCALCSIZE and
15997 calculate a different value of client size causing another paint
15999 * InternalWindowManager.cs: When moving or resizing a window only
16000 update size or location if they actually changed.
16001 * ThemeWin32Classic.cs: ManagedWindowsBorderWidth is now 4 instead of 3
16002 (seems to match Windows behaviour better). Cleaned up
16003 ManagedWindowDecorations to draw what's needed and nothing else
16004 (was drawing borders and lines where they shouldn't be)
16005 * Hwnd.cs: GetWindowRectangle now knows about MDI border sizes
16006 (style = 0xFFFF) and takes into account caption height when
16007 calculating window rectangle.
16009 2007-01-16 Everaldo Canuto <everaldo@simios.org>
16011 * ToolBar.cs: Internal ToolBarButtonInfo class added, Because same button
16012 can be added to toolbar multiple times, we need to maintain a list of
16013 button information for each positions.
16015 2007-01-16 Everaldo Canuto <everaldo@simios.org>
16017 * ToolBar.cs: Some small stetic changes.
16019 2007-01-16 Jackson Harper <jackson@ximian.com>
16021 * TextBoxBase.cs: Use the new SuspendRecalc/ResumeRecalc methods
16022 that allow us to have nested recalc = false blocks.
16023 - Add paste support for images in the RichTextBox
16024 * RichTextBox.cs: flush the text after the color is changed, so
16025 the change takes effect.
16026 - Use SuspendRecalc
16027 - Some extra debugging info
16028 * TextControl.cs: Tags no longer track their length, it is just
16029 computed from the next tags length, this makes things a little
16030 simpler and reduces places that we have to track length changes.
16031 - Refactored the linetag class a little so we could make it
16032 a base class for different kinds of tags
16033 - Created a image tag, a tag that can have a single image inserted
16035 - Replace the norecalc flag with a Suspend/Resume Recalc pair, so
16036 that we can call suspend multiple times.
16037 - Add some debugging methods
16039 2007-01-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
16041 * MdiClient.cs: Add ActivatePreviousChild for
16042 mdi child window navigation.
16043 * Form.cs: Use MdiClient.ActivateNextChild/
16044 ActivatePreviousChild instead of Form.SelectNextControl
16045 to select the next/previous child since
16046 SelectNextControl doesn't do it in the same order
16047 as mdi children should do it.
16049 2007-01-16 Chris Toshok <toshok@ximian.com>
16051 * Control.cs: remove container_selected field.
16053 2007-01-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
16055 * MdiClient.cs: Update main form's ActiveChild when
16056 updating keyboard focus for the mdi child.
16058 2007-01-16 Jonathan Pobst <jpobst@novell.com>
16060 * Control.cs: PreferredSize fix.
16062 * Form.cs: Add several 2.0 events, properties, and methods.
16064 2007-01-16 Gert Driesen <drieseng@users.sourceforge.net>
16066 * Form.cs: Provide meaningful message when MdiParent is assigned a
16067 Form that is not an MdiContainer.
16069 2007-01-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
16071 * MdiClient.cs: Update main form's ActiveChild when
16072 activating a mdi child.
16074 2007-01-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
16076 * MdiWindowManager.cs: Fix NRE when merging menus and main form
16077 doesn't have a menu.
16079 * Form.cs: Request NCRecalc after creating a mdi child window.
16080 Implement mdi key handling (Ctrl+F4, Ctrl+Shift+F4, Ctrl+Tab,
16081 Ctrl+Shift+Tab, Ctrl+F6 and Ctrl+Shift+F6).
16083 * MdiClient.cs: Add new method SendFocusToActiveChild that either
16084 sends keyboard focus to the active child, or to the MdiClient
16085 if there are no child forms.
16087 2007-01-15 Chris Toshok <toshok@ximian.com>
16089 * ListView.cs: drop the *Internal overrides, just do our work in
16090 ItemControl's WndProc instead.
16092 * UpDownBase.cs: a few large changes. Fix up the Selectable state
16093 of the various controls, and forward the events properly (in the
16094 same manner as MS) from the textbox to the UpDown. Also the
16095 ActiveControl of the UpDownBase gets set properly now. Finally,
16096 we don't call UpdateEditText from the ctor. Fixes bug #79957.
16098 * NumericUpDown.cs: set Text in the ctor.
16100 * DomainUpDown.cs: call UpdateEditText in the ctor.
16102 * TextBox.cs: on ms.net, WM_LBUTTONDOWN sets focus on the textbox,
16103 so even a Selectable = false textbox can be focused if you click
16106 * Control.cs: remove On{Got,Lost}FocusInternal. Subclasses can
16107 just add their handling in their respective WndProc's. Also add
16108 an explicit FocusInternal method that doesn't consult CanFocus
16109 before calling Select(this).
16111 * TextBoxBase.cs: deal with removal of the FocusInternal calls -
16112 do our work in WndProc instead.
16114 * TabControl.cs: same.
16116 * ComboBox.cs: same.
16118 2007-01-15 Everaldo Canuto <everaldo@simios.org>
16120 * Menu.cs: implement MergeItems and Replace for MenuMerge method.
16123 2007-01-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
16126 * ThemeWin32Classic.cs: Don't draw the item text outside
16127 item bounds in Details view, as well as use trimming.
16130 2007-01-15 Jonathan Pobst <jpobst@novell.com>
16132 * Form.cs: Implement Form.ShowIcon.
16134 * XplatUIWin32.cs: Allow the SetIcon win32 call to set the icon to
16135 null, which when combined with the DlgModalFrame window style removes
16136 the icon from the title bar.
16138 2007-01-15 Jonathan Pobst <jpobst@novell.com>
16140 * Control.cs: Call OnMouseClick after OnClick. (2.0)
16142 2007-01-15 Everaldo Canuto <everaldo@simios.org>
16144 * MdiWindowManager.cs: In CreateMaximizedMenu fix a position of icon
16145 menu when mdi child windows theres a menu, uses insert to get icon
16146 at first position. Partially fix #80006.
16148 2007-01-15 Jonathan Pobst <jpobst@novell.com>
16150 * Clipboard.cs: Implement 2.0 methods.
16152 2007-01-15 Everaldo Canuto <everaldo@simios.org>
16154 * Menu.cs: Implement Insert method of MenuItemCollection class
16157 2007-01-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
16159 * ListView.cs: Implement 2.0 FindItemWithText method.
16161 2007-01-11 Everaldo Canuto <everaldo@simios.org>
16163 * Form.cs: When process WM_NCCALCSIZE message use ClienSize.Width
16164 to calculate menu bar size. Fixes #80290.
16166 2007-01-11 Everaldo Canuto <everaldo@simios.org>
16168 * ThemeWin32Classic.cs: Fix position of menuitem check mark.
16170 2007-01-11 Chris Toshok <toshok@ximian.com>
16172 * XplatUIX11.cs: don't send duplicate WM_ACTIVATE messages to the
16175 2007-01-11 Chris Toshok <toshok@ximian.com>
16177 * LinkLabel.cs: make sure to call base.Select in our Select method
16178 if it turns out we're going to be selected (i.e. if we have a link
16179 that is going to receive focus). That way our container's
16180 ActiveControl is updated properly.
16182 2007-01-11 Chris Toshok <toshok@ximian.com>
16184 * LinkLabel.cs: turns out that LinkLabels are only Selectable if
16185 they have 1 or more links. this fixes the crash gert reported.
16187 2007-01-11 Andreia Gaita <avidigal@novell.com>
16189 * ContainerControl.cs: Remove ContainerSelected flag, not needed
16192 * Control.cs (Controls.Add): Check if control to be added to the collection
16193 is a top level control, and throw an ArgumentException if it is.
16194 Remove ContainerSelectedFlag, not needed anymore.
16196 * XplaUIWin32.cs (SetTopMost): Add flag SWP_NOACTIVATE so that setting the
16197 top most control doesn't activate the form. This fixes a problem in the
16198 MessageBox, where the default button wouldn't get focus because the form
16199 was activated before being Loaded - when the Owner is set, SetTopMost is
16200 called, and it would activate it.
16202 2007-01-11 Jonathan Pobst <jpobst@novell.com>
16204 * Button.cs: When clicked and setting the parent form's DialogResult,
16205 use FindForm instead of Parent, since parent could be a container
16206 control and not the Form. Fixes bug #80495.
16208 2007-01-10 Chris Toshok <toshok@ximian.com>
16210 * Form.cs: move the call to SendControlFocus into the same
16213 2007-01-10 Chris Toshok <toshok@ximian.com>
16215 * UpDownBase.cs (.ctor): remove the ActiveControl assignment here.
16216 It breaks in the face of the new ActiveControl stuff, and should
16219 * Form.cs (WndProc): in the WM_ACTIVATE case, we need to set the
16220 activecontrol's focus if it's not already set, after we set
16221 ActiveControl, but before we call OnActivated. Re-fixes #79667
16222 after the previous focus/active control fixes regressed it.
16224 * Control.cs: reindent some code.
16226 2007-01-10 Chris Toshok <toshok@ximian.com>
16228 * Splitter.cs: clearing some outstanding changes from my tree.
16229 Replace all accesses (not writes) to the internal dock_style field
16230 with the Dock property.
16232 2007-01-10 Chris Toshok <toshok@ximian.com>
16234 * Control.cs: make FireEnter, FireLeave, FireValidating, and
16235 FireValidated virtual.
16237 * Form.cs: override and don't chain up calls to FireEnter and
16240 2007-01-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
16242 * ListView.cs: Add more text padding space when using
16243 auto resize for columns (the previous value didn't work fine).
16245 * ThemeWin32Classic.cs: Update text position inside columns,
16246 to match the appeareance of .Net.
16248 * ColumnHeader.cs: When using auto resize, only the Width should
16249 depend on the sub items, not the Height. Also, set width after
16250 auto resizing (the value of Width should never remain as -1 or -2).
16252 2007-01-10 Chris Toshok <toshok@ximian.com>
16254 * Application.cs: fix compilation errors when debug is enabled.
16256 2007-01-10 Chris Toshok <toshok@ximian.com>
16258 * ContainerControl.cs (set_ActiveControl): rework this a bit (and
16259 add some nice ascii art pictures and explanation of the process).
16260 (GetMostDeeplyNestedActiveControl): new utility function we need
16261 because our ActiveControl can refer to a child container with its
16264 * Form.cs (OnActivated): remove the call to SelectActiveControl
16265 from here, since you can override this method and not chain up,
16266 and winforms still sets the active control.
16267 (OnCreateControl): also remove the unnecessary SelectActiveControl
16269 (WndProc): it's actually called from the WM_ACTIVATE block, just
16270 before calling OnActivated.
16272 * Control.cs (Select (Control)): move the call to XplatUI.SetFocus
16273 inside the else. the ActiveControl setter will end up setting
16274 focus on @control. This keeps us from setting it again (and
16275 generating an extra LostFocus/GotFocus pair).
16276 (Select (bool, bool)): reindent.
16278 2007-01-10 Jonathan Pobst <jpobst@novell.com>
16280 * FlowLayoutPanel.cs, MenuStrip.cs, SplitContainer.cs, SplitterPanel.cs,
16281 StatusStrip.cs, TableLayoutPanel.cs, TableLayoutStyleCollection.cs,
16282 ToolStrip.cs, ToolStripComboBox.cs, ToolStripContainer.cs,
16283 ToolStripContentPanel.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
16284 ToolStripDropDownButton.cs, ToolStripDropDownItem.cs, ToolStripDropDownMenu.cs,
16285 ToolStripItem.cs, ToolStripMenuItem.cs, ToolStripPanel.cs, ToolStripPanelRow.cs,
16286 ToolStripSeparator.cs, ToolStripSplitButton.cs, ToolStripStatusLabel.cs
16287 ToolStripTextBox.cs: Another wave of corcompare work.
16289 2007-01-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
16291 * ColumnHeader.cs: Implement 2.0 AutoResize method using
16292 the Width property.
16294 * ListView.cs: Implement 2.0 AutoResizeColumn and AutoResizeColumns
16295 methods by callling Column.AutoResize method on columns.
16297 2007-01-09 Jonathan Pobst <monkey@jpobst.com>
16299 * Control.cs: Provide proper implementations of PreferredSize
16300 and GetPreferredSize (2.0).
16302 2007-01-09 Jonathan Pobst <monkey@jpobst.com>
16304 * Form.cs: Remove one character (!) to make my previous OnClosing
16305 stuff work for modal windows like MessageBox.
16307 2007-01-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
16310 * ThemeWin32Classic.cs: Use ListView.GetReorderedColumn instead of
16311 ListView.Columns to get the last displayed column. Fixes #80452.
16313 2007-01-09 Everaldo Canuto <everaldo@simios.org>
16315 * Label.cs, LinkLabel.cs: Source code identation fixes.
16317 2007-01-08 Everaldo Canuto <everaldo@simios.org>
16319 * ToolBarButton.cs: Remove InvalidateBorder and use Invalidate instead,
16320 we dont need to invalidate only borders because when we invalidate four
16321 border lines the invalidate's generates a complete redraw of button,
16322 because it now invalidate a complete rect some other redraws operations
16323 are fixed. Fixes #80196.
16325 * Theme.cs, ThemeNice.cs, ThemeClearLooks.cs, ThemeWin32Classic.cs:
16326 Remove ToolBarInvalidateEntireButton as it is not used.
16328 2007-01-08 Jonathan Pobst <monkey@jpobst.com>
16330 * Form.cs: Make sure that both OnClosing and OnFormClosing are
16331 called for 2.0 profile.
16332 * CloseReason.cs: Make class internal for 1.1.
16334 2007-01-08 Jonathan Pobst <monkey@jpobst.com>
16336 * ToolStripManager.cs: Implement FindToolStrip functionality.
16337 * ToolStrip.cs: Register and unregister with ToolStripManager.
16339 2007-01-07 Jonathan Pobst <monkey@jpobst.com>
16341 * Control.cs: This was messy. 2.0 moves much of ControlCollection
16342 to ArrangedElementCollection. Implemented this with as few #if's as
16343 possible (which is still too many).
16345 2007-01-07 Jonathan Pobst <monkey@jpobst.com>
16347 * Control.cs: Implement SizeFromClientSize() [2.0].
16349 2007-01-07 Everaldo Canuto <everaldo@simios.org>
16351 * Hwnd.cs: On GetClientRectangle add a new parameter border_static,
16352 use Theme.BorderSize to calculate area instead of static value 1,
16353 by the way use new BorderStaticSize instead Border3DSize when
16354 border_static is true. Fixes #79537.
16356 * XplatUIOSX.cs: Fix call to GetClientRectangle.
16358 * ThemeWin32Classic.cs: On CPDrawBorder3D dont draw inner border when
16361 2007-01-06 Everaldo Canuto <everaldo@simios.org>
16363 * Hwnd.cs: Gives more code legibility to GetWindowRectangle.
16365 2007-01-06 Everaldo Canuto <everaldo@simios.org>
16367 * Label.cs: Override CreateParams to use WS_EX_STATICEDGE instead of
16368 WS_EX_CLIENTEDGE in ExStyles when BorderStyle is Fixed3D, it is
16371 - border_static field added, it will used to define when a control
16372 theres 3D border but it must be static (thin).
16373 - In GetWindowRectangle use Theme.BorderSize to calculate area
16374 instead of static value 1, by the way use new BorderStaticSize instead
16375 Border3DSize when border_static is true.
16377 * XplatUIX11.cs, XplatUIOSX.cs:
16378 - When WS_EX_STATICEDGE ExStyle is set define border_static as true.
16380 * Theme.cs: BorderStaticSize field added.
16382 2007-01-05 Everaldo Canuto <everaldo@simios.org>
16384 * XplatUIX11.cs: Removed unused hwnd var in SetBorderStyle.
16386 2007-01-05 Everaldo Canuto <everaldo@simios.org>
16388 * Control.cs: Under InternalBorderStyle call RecreateHangle to
16389 mimic same behavior than win32 that set border only in CreateParams,
16390 it fix problems under CreateParams overrides. Fix #79442 and partial
16393 * XplatUIX11.cs: Dont set hwnd.border_style in SetBorderStyle instead
16394 of thi control you must call recreate handle.
16396 * XplatUIWin32.cs: Remove all SetBorderStyle code, for win32 we dont
16397 need to do anything as RecreateHangle will take care about borders.
16399 2007-01-05 Mike Kestner <mkestner@novell.com>
16401 * ListView.cs: hack to eliminate Lost/Got focus notifications on
16402 cycles between the ItemControl and parent. Fixes #80388.
16404 2007-01-05 Gert Driesen <drieseng@users.sourceforge.net>
16406 * Control.cs: Lazy init layout engine. Do not directly use
16407 layout_engine since LayoutEngine may be overridden (on 2.0 profile).
16409 2007-01-05 Chris Toshok <toshok@ximian.com>
16411 * DataGrid.cs: don't forceably rebind columns in SetDataSource
16412 unless our list manager has changed (i.e. unless we have reason to
16413 believe our columns have changed). Fixes #80422.
16415 also, disable the call do BindColumns in
16416 OnListManagerMetaDataChanged. this breaks this test in 2.0 (in
16417 1.1 the event isn't raised in response to a column addition on a
16420 2007-01-05 Jonathan Pobst <monkey@jpobst.com>
16422 * Control.cs: Move LayoutEngine.Layout to the OnLayout method, so
16423 that inheritors can not call it if they choose. Fixes bug #80456.
16425 2007-01-05 Andreia Gaita <avidigal@novell.com>
16427 * XplatUIWin32.cs: Initialize MSG.refobject at 0 so it
16428 doesn't blow up with a null exception on marshalling.
16430 2007-01-05 Jonathan Pobst <monkey@jpobst.com>
16432 * Control.cs: Implement several 2.0 protected properties and methods.
16433 Ensure that all necessary events are being called when properties
16436 2007-01-05 Mike Kestner <mkestner@novell.com>
16438 * ListView.cs: implement PgUp/PgDn for Details view. Also
16439 fixes First/LastVisibleIndex to use the item_control.ClientRect
16440 instead of the parent control. Fixes #80378.
16442 2006-01-05 Atsushi Enomoto <atsushi@ximian.com>
16444 * PageSetupDialog.cs : cosmetic refactoring; use RegionInfo to
16445 determine whether to use yard-pound or not (bug #78399).
16447 2006-01-04 Alexander Olk <alex.olk@googlemail.com>
16449 * FileDialog.cs: Sebastien fixed the libgdiplus png alpha
16450 problems. So it is time to bring back the old popupbutton colors.
16452 2006-01-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
16455 * ListView.cs: Implement 2.0 ColumnHeader.DisplayIndex
16456 property by using the internal information of the
16457 columns order in ListView.
16459 2007-01-04 Jonathan Pobst <monkey@jpobst.com>
16461 * CommonDialog.cs, Cursor.cs, ErrorProvider.cs, HelpProvider.cs:
16462 Add 2.0 Tag properties.
16464 * LinkArea.cs: Add 2.0 ToString method.
16466 2007-01-03 Chris Toshok <toshok@ximian.com>
16468 * DataGrid.cs: the Alt+0 handling was wrong, it should have been
16469 Ctrl+0. Fixes bug #80367. Also, don't eat the Delete keypress
16470 when we're editing, which fixes #80047.
16472 2007-01-03 Chris Toshok <toshok@ximian.com>
16474 * Form.cs: apply patch contributed by Dominik Seichter. fixes
16477 2007-01-03 Jonathan Pobst <monkey@jpobst.com>
16479 * MenuStrip.cs, ToolStripMenuItem.cs: Add MdiWindowListItem
16480 property and implementation.
16482 * Form.cs, MdiClient.cs, MdiWindowManager.cs: Add needed hooks
16483 for MdiWindowListItem property.
16485 * ToolStripDropDown.cs: Don't consider hidden menu items while
16486 laying out the menu.
16488 2007-01-03 Andreia Gaita <avidigal@novell.com>
16490 * SendKeys.cs: window handle is not needed in win32, so just
16491 get the active window for X after parsing keys and don't use
16492 it when building the message; it is passed by parameter to the
16493 Xplat method and used there to build the message instead. Also,
16494 wait for events to be processed on SendWait, as opposed to Send,
16495 which doesn't wait :) Playing with threads and Send() completely
16496 hangs on ms.net, only SendWait() works.
16499 X11Display.cs: Check for valid window handle.
16501 2007-01-03 Jackson Harper <jackson@ximian.com>
16503 * TextControl.cs: Need to prevent wrap calculations when replacing
16504 text (this was there before i removed it accidently).
16505 - Don't update the cursor during the positioning, just set it to
16506 selection_start at the end of the operaion.
16508 2007-01-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
16511 * NotifyIcon.cs: corcompare work, no more X's in 1.1 class status.
16513 2007-01-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
16515 * MonthCalendar.cs: Added Click and DoubleClick events again,
16516 but this time they only hide Control's Click and DoubleClick.
16518 2007-01-03 Gert Driesen <drieseng@users.sourceforge.net>
16520 * Theme.cs: Re-enabled DefaultFont change. Use const to refer to
16521 System.Drawing assembly. Spaces to tabs. Removed extra tabs.
16523 2007-01-02 Jackson Harper <jackson@ximian.com>
16525 * TextBoxBase.cs: We move the caret with the split now, so we
16526 don't need to explicitly move the caret after splitting. This
16527 fixes the caret bumping down an extra line on Enter.
16529 2007-01-02 Miguel de Icaza <miguel@novell.com>
16531 * ContainerControl.cs: Add AutoValidateChanged event (for PDN
16534 * ScrollableControl.cs: Add Scroll event.
16536 2007-01-02 Mike Kestner <mkestner@novell.com>
16538 * ListView.cs: one more try with help from georgegiolfan@yahoo.com
16539 to fix all hdr height padding codepaths. Fixes #80207.
16541 2007-01-02 Chris Toshok <toshok@ximian.com>
16543 * StatusBar.cs (.ctor): remove the Anchor setting, as it's just
16544 setting it to the Control defaults anyway, and it being after the
16545 Dock set was screwing up layout.
16546 (set_Dock): don't short circuit out of setting base.Dock. Also,
16547 no need to call UpdateStatusBar here, as it'll be re-layed out if
16550 2007-01-02 Mike Kestner <mkestner@novell.com>
16552 * ListView.cs: patch from georgegiolfan@yahoo.com to add padding
16553 to header height for width == -1. Fixes the rest of #80207.
16555 2007-01-02 Mike Kestner <mkestner@novell.com>
16557 * ListView.cs: rework the mouse event forwarding everaldo added
16558 to translate the coordinates to the parent control not
16559 raise the parent events until after we've done our work. Hover
16560 needs more work, in the case where HoverSelection is on, because
16561 the item control receives more than one MouseHover per Enter
16562 event, so we need to ensure only the "first" hover gets forwarded.
16563 Opening a minor bug for that.
16565 2007-01-02 Gert Driesen <drieseng@users.sourceforge.net>
16567 * CheckedListBox.cs: Fixed SelectionMode to match MS.
16568 * ListControl.cs: Implemented AllowSelection property. Removed extra
16570 * ListBox.cs: Implemented AllowSelection property.
16572 2007-01-02 Everaldo Canuto <everaldo@simios.org>
16574 * MenuItem.cs: In MdiWindowClickHandler uses sender instead of
16575 SelectedItem, it prevent for errors when you must disable item
16576 before perform click. Fixes #80409.
16578 2007-01-02 Everaldo Canuto <everaldo@simios.org>
16580 * MenuAPI.cs: Prevent second level and beyond submenus to close
16581 until first level when move out side of popup.
16583 2007-01-02 Everaldo Canuto <everaldo@simios.org>
16586 - Down submenu positin in three pixels.
16587 - Closes sub menu when mouse leaves from menu. Fixes #80402.
16589 2007-01-02 Everaldo Canuto <everaldo@simios.org>
16591 * ThemeWin32Classic.cs:
16592 - Fix popup menu size adding one pixel on the top.
16593 - Down menu item border from two to one to mimic Win32.
16594 - Some source identation fixes.
16596 2007-01-01 Everaldo Canuto <everaldo@simios.org>
16598 * ThemeWin32Classic.cs: Use float numbers to calculate size and
16599 position of menu arrows, it fix wrong arrow size.
16601 2007-01-01 Everaldo Canuto <everaldo@simios.org>
16603 * ThemeWin32Classic.cs: Uses CPDrawBorder3D to draw menu borders
16604 instead of line, it simplify draw operation and fix it using 3D
16605 borders to mimic Win32.
16607 2007-01-01 Jonathan Pobst <monkey@jpobst.com>
16609 * StatusStrip.cs: Add implementation of the sizing grip.
16611 * ToolStripRenderer.cs, ToolStripProfessionalRenderer.cs: Add
16612 StatusStrip rendering.
16614 2006-12-31 Chris Toshok <toshok@ximian.com>
16616 * ToolBar.cs: don't assign to dock_style in the .ctor. it doesn't
16617 override the layout style (anchor/dock) of the control. assign to
16618 Dock instead. Fixes bug #80416.
16620 * ToolStrip.cs: same.
16622 2006-12-31 Andreia Gaita <avidigal@novell.com>
16624 * ContainerControl.cs: Use ContainerSelected flag to check if
16625 a Container is directly selected, or if Select is called on a
16626 non-container. If a container is directly selected, focus events
16627 should not be raised.
16628 Apply #80411 patch to throw exception on set_ActiveControl if
16629 control is the same as the current one.
16631 * Control.cs: Use ContainerSelected flag (see above).
16632 Add invalidation check to raise event but not invalidate if
16634 Apply #80411 patch.
16637 2006-12-31 Everaldo Canuto <everaldo@simios.org>
16639 * MenuAPI.cs: After click, dont close popup menu when menu is
16640 ContextMenu. Fixes #80399.
16642 2006-12-30 Chris Toshok <toshok@ximian.com>
16644 * ContainerControl.cs: make sure we throw the exception if the
16645 container control doesn't contain the control we're setting
16648 2006-12-30 Chris Toshok <toshok@ximian.com>
16650 * Control.cs (SetTopLevel): fix the exception raised by
16651 SetTopLevel for child controls.
16652 (set_Anchor): call UpdateDistances when setting the anchor type.
16653 This fixes bug #80336.
16655 2006-12-29 Gert Driesen <drieseng@users.sourceforge.net>
16657 * Theme.cs: For now, revert back to 8pt font.
16659 2006-12-29 Everaldo Canuto <everaldo@simios.org>
16661 * MenuAPI.cs: Set popup as active when open a ContextMenu.
16664 2006-12-29 Chris Toshok <toshok@ximian.com>
16666 * Control.cs: reorder the code in OnResize to give the same event
16669 2006-12-29 Rolf Bjarne Kvinge <RKvinge@novell.com>
16671 * MdiClient.cs: Implemented MdiLayout for ArrangeIcons,
16672 TileHorizontally and TileVertically.
16674 2006-12-29 Alexander Olk <alex.olk@googlemail.com>
16676 * ColorDialog.cs, FileDialog.cs, FolderBrowserDialog.cs,
16677 FontDialog.cs, Mime.cs, MimeIcon.cs, OpenFileDialog.cs,
16678 SaveFileDialog.cs, ThemeClearlooks.cs, ThemeNics.cs:
16679 Corrected copyright and email adress.
16681 2006-12-29 Gert Driesen <drieseng@users.sourceforge.net>
16683 * TreeNode.cs: On 2.0 profile, throw InvalidOperationException instead
16684 of Exception in FullPath property if no TreeView is associated with
16687 2006-12-29 Gert Driesen <drieseng@users.sourceforge.net>
16689 * Theme.cs: Marked default_font as private, and initialize it in ctor
16690 with MS Sans Sarif 8.25 on 1.0 profile, and SystemFonts.DefaultFont
16692 * ThemeGtk.cs: Removed default_font intialization.
16693 * ThemeWin32Classic.cs: Removed default_font initialization.
16695 2006-12-28 Chris Toshok <toshok@ximian.com>
16697 * Control.cs: fix a couple of place where we were creating handles
16698 more aggressively than we should be. Fixes ControlRefresh unit
16701 2006-12-28 Chris Toshok <toshok@ximian.com>
16703 * Control.cs: contrary to what the comment said, Control.Dock does
16704 not supercede Control.Anchor - the last one you assign to decides
16705 the layout behavior. so we need to keep track of which was the
16706 last set. Also, fix some of the affected property arguments in
16707 PerformLayout calls, and remove an redundant parent.PerformLayout
16710 Add a VisibleInternal property, which returns is_visible. We
16711 can/should get rid of all the usage of this field elsewhere.
16713 2006-12-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
16715 * Control.cs: DoubleBuffered property reflects the OptimizedDoubleBuffer
16716 control style, not DoubleBuffer. Added UseDoubleBuffering property
16717 that indicates whether doublebuffering is enabled and supported.
16718 (comment from and code based on Gert Driesen's patch in #80324).
16721 2006-12-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
16723 * Control.cs: Fixed a NRE.
16725 2006-12-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
16727 * TrackBar.cs: Fix SmallChange and LargeChange exceptions
16730 2006-12-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
16732 * Control.cs: Rewrote double buffering, now a seperate
16733 class handles all the buffering, no Graphics is disposed of
16734 until the painting is finished (earlier implementation
16735 would crash if the control was resized in the OnPaint,
16736 since it would cause the double buffer to be recreated
16737 and the old one disposed), a separate Graphics is
16738 created for every paint (MS behaviour and anyways the state
16739 of the Graphics would have to be saved and restored otherwise)
16741 * XplatUIDriver.cs:
16743 * XplatUI.cs: Added and implemented GetOffscreenGraphics
16744 so that we can get the graphics for the back buffer without
16745 having to create a new one and remove the offscreen_dc parameter
16746 from CreateOffscreenDrawable and DestroyOffscreenDrawable.
16748 2006-12-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
16750 * ListView.cs: Add key-related 2.0 methods for CheckedItemCollection.
16751 Also make virtual all the key-related methods.
16753 * ListViewItem.cs: Make virtual the key related methods for
16754 ListViewSubItemCollection.
16756 2006-12-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
16760 * ThemeWin32Classic.cs:
16761 * Theme.cs: Initial support for Tile view in ListView,
16762 as well as the implementation of the required bits for it (Item
16765 2006-12-27 Gert Driesen <drieseng@users.sourceforge.net>
16767 * MonthCalendar.cs: On 2.0, throw ArgumentOutOfRangeException instead
16768 of ArgumentException in MaxSelectionCount, MaxDate and MinDate.
16769 Provide useful exception messages.
16771 2006-12-27 Rolf Bjarne Kvinge <RKvinge@novell.com>
16773 * TrackBar.cs: Remove a warning.
16774 * MonthCalendar.cs: Moved back to using Capture to hide the calendar
16775 when used by DateTimePicker, fixes #80287. This also requires that
16776 MonthCalendar implements it's own drawing for the yearly updown control,
16777 otherwise the Capture tracking would be too complicated. Removed the Click
16778 and DoubleClick events (according to comments they were hiding the base class
16779 event to prevent them from beeing fired - MSDN only says MonthCalendar doesn't
16780 raise these events, not that they cannot be raised. It is possible to raise
16781 them by calling OnClick and OnDoubleClick). Added two internal fields in
16782 HitTestInfo in order to track give more tracking info needed by MonthCalendar.
16783 * ThemeWin32Classic.cs: Implement drawing of MonthCalendar's updown part.
16784 * DateTimePicker.cs: Removed handling of MonthCalendar's LostFocus
16785 event, no longer needed.
16787 2006-12-27 Gert Driesen <drieseng@users.sourceforge.net>
16789 * ScrollableControl.cs: In AutoScrollMinSize, only set AutoScroll to
16790 true if new value differs from current value.
16792 2006-12-27 Gert Driesen <drieseng@users.sourceforge.net>
16794 * Control.cs: ControlCollection.Count must be public. Fixed build of
16797 2006-12-27 Gert Driesen <drieseng@users.sourceforge.net>
16799 * ListView.cs: Redraw when FullRowSelect is changed. Fixes bug #80379.
16801 2006-12-27 Gert Driesen <drieseng@users.sourceforge.net>
16803 * ComboBox.cs: Mergable=>MergableProperty. Fixes build.
16805 2006-12-26 Everaldo Canuto <everaldo@simios.org>
16807 * Control.cs: Invalidates control including when Width and Height is
16808 equal zero or is not visible, only Paint event must be care about
16809 this. Fixes #79913.
16811 2006-12-26 Chris Toshok <toshok@ximian.com>
16813 * CurrencyManager.cs, PropertyManager.cs, BindingManagerBase.cs:
16814 more corcompare work.
16816 * DataGridView.cs: fix compiler warning.
16818 * ColumnHeader.cs: some corcompare work, and also take the
16819 opportunity to make the internal fields private.
16821 * ListView.cs: fix the fallout from the above field change.
16823 2006-12-26 Jonathan Pobst <monkey@jpobst.com>
16825 * ToolStripButton.cs, ToolStripComboBox.cs, ToolStripControlHost.cs,
16826 ToolStripItem.cs, ToolStripProgressBar.cs, ToolStripSplitButton.cs,
16827 ToolStripTextBox.cs: Fixes to events and corcompare.
16829 2006-12-26 Everaldo Canuto <everaldo@simios.org>
16831 * ListView.cs: Call owner.OnMousexx event to propagate events from
16832 item to ListView. Fixes #80367.
16834 2006-12-26 Gert Driesen <drieseng@users.sourceforge.net>
16836 * ComboBox.cs: On 2.0, DropDownWidth throws ArgumentOutOfRangeException
16837 if value is less than one. ItemHeight should not be set to a value
16838 less than 1, and throw ArgumentOutOfRangeException on 2.0 profile.
16839 Removed extra tabs.
16841 2006-12-26 Jonathan Pobst <monkey@jpobst.com>
16843 * ToolStripMenuItem.cs: Add ShortcutDisplayString for Moma.
16844 * ToolStripStatusLabel.cs: Add Spring for Moma.
16846 2006-12-26 Gert Driesen <drieseng@users.sourceforge.net>
16848 * DataGridView.cs: Fixed several NullReferenceException in On* methods.
16849 Fixed code formatting. Removed debug code.
16850 * DataGridViewTextBoxEditingControl.cs: Removed debug code.
16852 2006-12-26 Gert Driesen <drieseng@users.sourceforge.net>
16854 * DataGridView.cs: Fixed GridColor, DefaultSize, DefaultCellStyle,
16855 RowHeadersDefaultStyle, RowHeadersWidth to match MS. Throw
16856 ArgumentOutOfRangeException if ColumnCount is negative. In
16857 ColumnHeadersHeight, throw ArgumentOutOfRangeException if height is
16858 less than 4 or higher than 32768.
16859 * DataGridViewCellStyle.cs: Fixed default value for NullValue.
16860 Fixed FormatProvider to return CurrentCulture unless explicitly set.
16861 Fixed IsFormatProviderDefault to return true if FormatProvider has
16862 not been explicitly set.
16864 2006-12-25 Chris Toshok <toshok@ximian.com>
16866 * Application.cs: add a couple of 2.0 events.
16868 2006-12-25 Chris Toshok <toshok@ximian.com>
16870 * Control.cs: fix compiler warning.
16872 * AxHost.cs: corcompare fixes.
16874 * ApplicationContext.cs: corcompare fixes.
16876 2006-12-25 Chris Toshok <toshok@ximian.com>
16878 * Control.cs: only update dist_right/dist_bottom if the
16879 width/height is > 0. this fixes anchored controls being resized
16880 smaller until they disappear and then resized larger again.
16882 2006-12-25 Chris Toshok <toshok@ximian.com>
16884 * Control.cs: a couple of changes. Remove dist_left and dist_top,
16885 since they're nothing more than X/Left and Y/Top, respectively.
16887 Also, move back to a per-control Bitmap/Graphics for
16888 DeviceContext, since using the static Hwnd.bmp/bmp_g is bad in the
16889 MT case. Go with a tiny bitmap though, 1x1, instead of Width x
16892 2006-12-25 Miguel de Icaza <miguel@novell.com>
16894 * MessageBox.cs: Implemented overload that takes a new "bool
16895 displayHelpButton" by adding a new internal field "show_help".
16896 When clicked this will raise the HelpRequested on the owner or the
16899 From: 007dbe3ff0ca4729a4f5fcd1d8ab2a2e.txt
16900 From: c935e12b95fe4dc1ae670e7f4dc5fd68.txt
16902 * ListView.cs: Add support ColumnWidthChanged and
16903 ColumnWidthChanging.
16905 Add support for ColumnReordered event.
16906 (ReorderColumn): Add NET_2_0 specific support for cancelling the
16909 Very nice codebase!
16911 * TextBoxBase.cs (GetLineFromCharIndex): Implement this method.
16913 This is used by report f4ae0a88a0a244558aaadf017c9b9efe.
16915 2006-12-24 Chris Toshok <toshok@ximian.com>
16917 * GridTablesFactory.cs: 2.0 corcompare work.
16919 * ToolStripContainer.cs: add "override" to
16920 ContextMenuStripChanged, and remove the local event object.
16922 * ToolStripDropDown.cs: same with a couple properties.
16924 * ToolStripPanel.cs: same with AutoSizeChanged event.
16926 * TextBoxBase.cs: add "override" to AutoSizeChanged.
16928 * Form.cs: add the remaining 2.0 events, and do some corcompare
16931 * DateTimePicker.cs: add "new" to padding.
16933 * ButtonBase.cs: use Control's use_compatible_text_rendering.
16935 * ToolStripContentPanel.cs: use base.AutoSizeChanged.
16937 * DataGridView.cs: PaddingChanged is overridden.
16939 2006-12-24 Chris Toshok <toshok@ximian.com>
16941 * Control.cs: corecompare work here too.
16943 * DataGridViewElement.cs, DataGridView.cs,
16944 DataGridViewButtonCell.cs, DataGridViewRowCollection.cs,
16945 DataGridViewImageColumn.cs, DataGridViewComboBoxColumn.cs,
16946 DataGridViewImageCell.cs, DataGridViewCheckBoxCell.cs,
16947 DataGridViewHeaderCell.cs, DataGridViewCell.cs: more corcompare
16950 2006-12-24 Miguel de Icaza <miguel@novell.com>
16952 * Control.cs: Switched the error message on the console for a
16953 todo. A review of the code will have to cope with this anyways
16954 (since its a large feature, it is in our radar) and it was
16955 producing too much output when running PDN.
16957 * ToolStripComboBox.cs: Set the text when the SelectedIndex
16958 changes. Applications depend on this (PDN 2.72)
16960 2006-12-23 Chris Toshok <toshok@ximian.com>
16962 * TableLayoutSettings.cs: finish up the corcompare work for this
16965 2006-12-23 Chris Toshok <toshok@ximian.com>
16967 * Control.cs: make SetImplicitBounds internal, do some futzing
16968 with LayoutEngine so that it's available in 1.1, and remove the
16969 entire duplicated code mess from PerformLayout. Use
16970 System.Windows.Forms.Layout.DefaultLayout instead.
16972 * LayoutEngine.cs: make this class internal in 1.1, public in 2.0.
16974 2006-12-23 Jonathan Pobst <monkey@jpobst.com>
16976 * Form.cs: Add MainMenuStrip property.
16978 2006-12-23 Jonathan Pobst <monkey@jpobst.com>
16980 * Control.cs: Add ContextMenuStrip property and implementation.
16981 Fix ContextMenu implementation to show menu centered on control when
16982 activated using the keyboard instead of showing at screen (0,0).
16984 * ToolStripDropDown.cs: Fix needed overload of Show ().
16986 2006-12-23 Everaldo Canuto <everaldo@simios.org>
16988 * Menu.cs: Name property added for 2.0 profile.
16990 2006-12-23 Everaldo Canuto <everaldo@simios.org>
16992 * Menu.cs: Update information about FindMenuItem, method to be
16995 2006-12-23 Everaldo Canuto <everaldo@simios.org>
16997 * MenuAPI.cs: When deselect items deselect also selected subitems.
16999 2006-12-23 Everaldo Canuto <everaldo@simios.org>
17001 * MenuAPI.cs: When hides menu set Wnd to null, it prevents
17002 FindSubItemByCoord to found itens that is not active, also an
17003 cheking added to FindSubItemByCoord to search for items only
17004 in visible popup windows. Fixes #80274.
17006 2006-12-22 Everaldo Canuto <everaldo@simios.org>
17008 * UserControl.cs: Remove MonoTodo and use InternalBorderStyle,
17009 internal property, it be care about change ExStyle.
17011 2006-12-22 Andreia Gaita <avidigal@novell.com>
17013 * ContainerControl.cs: set activeControl for parent forms up the
17014 tree when the new activecontrol is a container.
17015 When validating the active control, if it is a container, also
17016 raise up the validation for it's active control. Fixes #80280
17018 * Control.cs: Add internal property flag and check to prevent
17019 Focus events from getting raised when Select() is called for
17020 a ContainerControl. There are still too many focus events being
17021 raised at the moment though.
17022 Cleaned up the code a bit.
17024 2006-12-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
17026 * Control.cs: Added all missing 2.0 events.and
17027 fixed a couple of corcompare issues.
17028 * TrackBar.cs: Implemented missing 2.0 bits.
17029 * MonthCalendar.cs,
17030 * DateTimePicker.cs,
17031 * MdiClient.cs: Fixed some corcompare issues.
17033 2006-12-21 Jonathan Pobst <monkey@jpobst.com>
17035 * ContextMenuStrip.cs, FlowLayoutPanel.cs, SplitContainer.cs,
17036 SplitterPanel.cs: corecompare work.
17038 2006-12-21 Jonathan Pobst <monkey@jpobst.com>
17040 * ToolStripContainer.cs, ToolStripDropDown.cs, StatusStrip.cs:
17041 Clean up warnings for BackgroundImageChanged and PaddingChanged
17042 events now that they are implemented in Control.cs.
17044 2006-12-21 Jonathan Pobst <monkey@jpobst.com>
17046 * Control.cs: Make sure layout_engine isn't null before using it (2.0).
17048 * TableLayoutControlCollection.cs, TableLayoutPanel.cs, TableLayoutCellPosition.cs,
17049 TableLayoutSettings.cs, TableLayoutStyleCollection.cs: Initial implementation
17050 of TableLayoutPanel and supporting cast.
17052 2006-12-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
17055 - GrabWindow now confines the mouse pointer to the confine window.
17056 - Added Win32ClipCursor and Win32GetClipCursor.
17059 - Added CaptureWithConfine to be able to capture and confine
17062 * InternalWindowManager.cs:
17063 - Call CaptureWithConfine instead of Capture if we're an
17064 MdiChild (fixes #79982).
17066 2006-12-21 Chris Toshok <toshok@ximian.com>
17068 * DataGrid.cs: guard against the initial state of selection, where
17069 selection_start == -1. make sure we only select from index >= 0.
17072 2006-12-21 Chris Toshok <toshok@ximian.com>
17074 * Control.cs: we don't need to be so draconian with
17075 UpdateDistances, and we thusly don't need to call it before
17076 calling PerformLayout in ResumeLayout. Fixes bug #80289.
17078 2006-12-21 Daniel Nauck <dna@mono-project.de>
17081 TextBox.cs: Implemented AutoComplete properties.
17083 2006-12-20 Chris Toshok <toshok@ximian.com>
17085 * DataGridView*.cs: some corecompare work.
17087 2006-12-20 Jackson Harper <jackson@ximian.com>
17089 * XplatUIX11.cs: We need to hide the caret when deleting it,
17090 otherwise you get carets left lying around everywhere.
17091 * TextBoxBase.cs: Kill then redraw the caret when scrolling. This
17092 prevents getting some weird half drawn caret tracers when
17094 * TextControl.cs: Attempt to reduce the number of times we need to
17095 recreate the caret.
17097 2006-12-20 Gert Driesen <drieseng@users.sourceforge.net>
17099 * MonthCalendar.cs: Fixed previous month button. Removed extra tabs.
17101 2006-12-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
17103 * DateTimePicker.cs:
17104 - Implemented missing 2.0 bits.
17105 - Changed some default values to match MS.
17107 2006-12-20 Jackson Harper <jackson@ximian.com>
17109 * TextBoxBase.cs: When changing the font across the document we
17110 can't recalculate after changing each line, since that will cahnge
17112 - PreferredHeight is a little different than i thought.
17113 - When backspacing, move the caret before we do the actual char
17114 delete, because when that delete crosses a wrap boundary the
17115 positional information will change.
17117 2006-12-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
17119 * Control.cs: Added some missing 2.0 bits:
17120 BackgroundImageLayout, BackgroundImageLayoutChanged,
17121 OnPaddingChanged, MouseClick, MouseDoubleClick, PaddingChanged and
17122 add IBindableComponent and IDropTarget implementation.
17124 * MonthCalendar.cs:
17125 - Added all missing 2.0 features:
17126 BackgroundImageLayout, RightToLeftLayout,
17127 OnHandleDestroyed, RightToLeftLayoutChanged,
17128 BackgroundImageLayoutChanged, MouseClick, MouseDoubleClick,
17130 - Rewrote all the BoldDate code, it was completely broken.
17131 - Fixed all the tests (the tests can now be re-enabled, the
17132 problems were not with the tests, but with the control, it was
17135 * DateTimePicker.cs: Changed the location where the
17136 MonthCalendar is shown.
17138 2006-12-19 Chris Toshok <toshok@ximian.com>
17140 * DataGridView.cs: add IDropTarget implementation.
17142 * ToolStripPanel.cs: add IDropTarget implementation.
17144 2006-12-19 Jackson Harper <jackson@ximian.com>
17146 * TextControl.cs: soft now means something different than what it
17147 used to mean, we want to move the caret regardless of whether or
17148 not this break was soft (would we really have wanted the caret
17149 to not move with the break in the old context?)
17150 * TreeView.cs: Make sure we factor in the vert scrollbar when
17151 calculating the horizontal scrollbar's maximum.
17153 2006-12-19 Andreia Gaita <avidigal@novell.org>
17155 * SendKeys.cs: Fix Send() behaviour, clear keys after sending,
17156 check for keywords in alternate casing, close bug #80049.
17158 2006-12-19 Chris Toshok <toshok@ximian.com>
17160 * ToolStripItem.cs: add the implementation of the 4 IDropTarget
17161 methods (which all do nothing).
17163 * IDropTarget.cs: add the 4 missing methods.
17165 2006-12-19 Chris Toshok <toshok@ximian.com>
17167 * TableLayoutRowStyleCollection.cs: corcompare work.
17169 * TableLayoutSettings.cs: same.
17171 * TableLayoutStyle.cs: same.
17173 * TableLayoutColumnStyleCollection.cs: same.
17175 2006-12-19 Jonathan Pobst <monkey@jpobst.com>
17177 * ColumnStyle.cs, RowStyle.cs, TableLayoutStyle.cs: Plumbing for
17178 TableLayoutPanel I've had in my local tree for way too long.
17180 2006-12-19 Miguel de Icaza <miguel@novell.com>
17182 * TableLayoutSettings.cs: Finish the public API (still needs all
17183 the logic to update on changes).
17185 * TableLayoutPanelCellPosition.cs: new file.
17187 * TableLayoutRowStyleCollection.cs,
17188 TableLayoutColumnStyleCollection, TableLayoutStyle.cs,
17189 TableLayoutSettings.cs: Track the final 2.0 table api.
17191 2006-12-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
17193 * ColumnHeader.cs: Add Tag, Name, ImageKey, ImageIndex,
17194 and Image List 2.0 members for ColummnHeader.
17195 * ListView.cs: Add key-related 2.0 methods for
17196 ColumnHeaderCollection.
17198 2006-12-19 Gert Driesen <drieseng@users.sourceforge.net>
17200 * ListViewItem.cs: Changed AddRange overloads to match MS: throw
17201 ArgumentNullException if items argument is null. Ignore null item in
17202 arrays. Removed extra tabs.
17204 2006-12-19 Gert Driesen <drieseng@users.sourceforge.net>
17206 * MonthCalendar.cs: Fixed InvalidCastException.
17208 2006-12-19 Jackson Harper <jackson@ximian.com>
17210 * TextControl.cs: Don't increment the position here.
17211 - When calculating char positions only add in the line break size
17212 for hard line breaks.
17214 2006-12-19 Andreia Gaita <avidigal@novell.org>
17216 * SendKeys.cs: Changed some things to match ms.net behaviour
17217 when parsing shifted capital letters.
17219 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32, XplatUIOSX:
17220 Add window handle as parameter to SendInput. X11 needs the
17221 window handle, and the handle being passed to it in the keys
17222 queue is the active control handle (which windows needs), not
17225 XplatUIX11.cs, XplaUIX11-new.cs, X11Display: Implement SendInput
17226 to support SendKeys on X.
17228 * X11Keyboard: Implement helper method to lookup a linux keycode
17229 given the virtual keycode. Added table of keycode-2-virtualkey
17230 values to support this.
17232 2006-12-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
17234 * ListView.cs: Add support for SelectedIndexCollection
17235 and SelectedItemCollection 2.0 methods. Implement support
17237 * ListViewItem.cs: Add support for ListViewSubItemCollection
17238 2.0 methods. Also, fix an incorrect behavior of AddRange method
17239 (it shouldn't call Clear).
17240 * ThemeWin32Classic.cs: Support for ListView.ImageKey 2.0 property.
17242 2006-12-19 Jackson Harper <jackson@ximian.com>
17245 * TextBoxBase.cs: New args for FormatText
17246 * TextControl.cs: Rewrote the main drawing method, this version
17247 feels a little easier to understand and debug to me. Hopefully it
17248 does to others also
17249 - Fix FormatText to OR in the new formating values. Added
17250 FormatSpecified param, basically this works in the same way as
17251 BoundsSpecified in Control.
17252 - Set the caret properties when the caret is positioned.
17253 - When wrapping text make sure that we calculate the width of the
17255 - when calculating alignments we might have wrapped down to the
17256 next line, so don't search for an individual tag, search for the
17258 - We need to invalidate the selection area when we replace the
17261 2006-12-19 Daniel Nauck <dna@mono-project.de>
17263 * Application.cs: add Restart () 2.0 support
17265 2006-12-18 Everaldo Canuto <everaldo@simios.org>
17267 * MenuItem.cs: Invalidate menu item rectangle after change Enable
17268 property. Fixes #80268.
17270 2006-12-18 Everaldo Canuto <everaldo@simios.org>
17272 * MenuAPI.cs: Dont trigger select event when closes top menu
17273 item. Fixes #80270.
17275 2006-12-18 Everaldo Canuto <everaldo@simios.org>
17277 * MenuAPI.cs: When you click on menuitem only trigger onselect
17278 event for top menu itens. Fixes #80271.
17280 2006-12-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
17282 * MdiWindowManager.cs: Make IconicBounds depend on
17283 the bottom of MdiClient, not the top (fixes #80267)
17285 2006-12-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
17287 * MdiClient.cs: Added missing 2.0 attribute
17289 2006-12-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
17291 * ListViewItem.cs: Add Name and Tag 2.0 properties, as well
17292 as IndexOfKey, ContainsKey, RemoveByKey and indexer 2.0.
17294 2006-12-18 Everaldo Canuto <everaldo@simios.org>
17296 * MenuAPI.cs: Fix click when menuitem is not popup,
17297 this regression was caused by last commit (#80272).
17299 2006-12-17 Everaldo Canuto <everaldo@simios.org>
17301 * MenuAPI.cs: When a non-toplevel menuitem is clicked dont
17302 fire click event or close menu. Fixes #80272.
17304 2006-12-17 Daniel Nauck <dna@mono-project.de>
17306 * ListViewHitTestInfo.cs: add
17308 2006-12-17 Daniel Nauck <dna@mono-project.de>
17310 * ButtonBase.cs: Added FlatButtonAppearance 2.0 support.
17311 * FlatButtonAppearance.cs: add
17312 * DockingAttribute.cs: add
17314 2006-12-17 Chris Toshok <toshok@ximian.com>
17316 * DataGrid.cs: hook up MetaDataChanged event on the list manager,
17317 and rebind our columns when it does - this way, if you make
17318 changes to the DataTable (or set the Table attribute on a DataView
17319 after setting it as the DataGrid's DataSource, the changes are
17320 made visible.) Fixes bug #80107.
17322 2006-12-17 Daniel Nauck <dna@mono-project.de>
17324 * ListViewGroup.cs: add internal Location property for layouting.
17325 * Theme.cs: add abstract ListViewGroupHeight function.
17326 * ThemeWin32Classic.cs: implement ListViewGroupHeight function.
17328 2006-12-16 Andreia Gaita <avidigal@novell.com>
17330 * TabControl.cs: Fixed checks for NET_2_0-specific exceptions.
17331 Added reset of selected index to 0 when adding first tab page.
17334 * NumericUpDown.cs: Fix NET_2_0 check
17336 2006-12-16 Daniel Nauck <dna@mono-project.de>
17338 * ListViewGroup.cs: fixed DefaultValueAttribute value
17340 2006-12-16 Daniel Nauck <dna@mono-project.de>
17342 * AutoCompleteStringCollection.cs: add new AutoCompleteStringCollection 2.0 class
17344 2006-12-15 Miguel de Icaza <miguel@novell.com>
17346 * Button.cs, ComboBox.cs, ScrollBar.cs, UserControl.cs,
17347 TextBoxBase.cs, ListView.cs, ContainerControl.cs,
17348 ScrollableControl.cs: Add a handful of methods that are
17351 2006-12-15 Chris Toshok <toshok@ximian.com>
17353 * XplatUIWin32.cs: initial implementation of the Reversible
17354 drawing functions. there are some problems. DrawReversibleFrame
17355 doesn't seem to work at all for Dashed FrameStyle, and in the
17356 Thick case there are drawing errors at the corners (we probably
17357 need to bind Rectangle instead of doing moveto/lineto's.)
17359 2006-12-16 Andreia Gaita <avidigal@novell.com>
17361 * SendKeys.cs: Implemented. SendKeys uses a new method in XPlatUI, SendInput,
17362 to send blocks of key messages. Send accumulates keys to send with Flush,
17363 while SendWait sends all keys immediately.
17365 * XplaUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
17366 XplatUIX11.cs, XplatUIX11-new.cs:
17367 - Define SendInput and stubs for OSX and X11, implements Win32 with a call
17368 to Win32 SendInput.
17369 - Added INPUT support structures to XplatUIWin32 for Win32SendInput
17371 Tests: It seems ms.net is hooking the keyboard to implement this, so doing unit
17372 testing for ms.net on this class is very tricky, as the tests run too fast
17373 to allow the hook to release, essentially freezing the keyboard and the
17374 test. So, barring a win32 miracle, they'll be commited in the ms-notworking
17377 2006-12-16 Daniel Nauck <dna@mono-project.de>
17379 * Padding.cs: fixed serialization compability to MS ("_var" field names),
17380 added missing attributes.
17382 2006-12-15 Daniel Nauck <dna@mono-project.de>
17384 * ListViewGroup.cs: Added missing attributes.
17385 * ListViewGroupCollection.cs: Added missing attributes.
17387 2006-12-15 Daniel Nauck <dna@mono-project.de>
17389 * ListViewItem.cs: fixed ListViewSubItem text property.
17391 2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
17393 * Control.cs: Added missing 2.0 attributes
17395 2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
17397 * MdiClient.cs: Added missing 2.0 attribute.
17398 * MonthCalendar.cs: Added some missing 2.0 attributes
17401 2006-12-15 Daniel Nauck <dna@mono-project.de>
17403 * ListView.cs: implemented ListViewItemCollection Add 2.0 support.
17405 2006-12-15 Jonathan Pobst <monkey@jpobst.com>
17407 * MainMenu.cs: Add the new 2.0 constructor to help out people
17408 using the MainMenu in VS2005.
17410 2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
17412 * MdiChildContext.cs: Removed it, no longer used.
17413 * MdiClient.cs: Added missing 2.0 attributes.
17415 2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
17417 * InternalWindowManager.cs: Fix a NullRef with previous
17418 changes for toolwindows.
17420 2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
17423 - Added AfterTopMostControl to allow for certain controls
17424 to always stay on top when normal controls are brought to
17428 - (DrawInversibleRectangle): Get window rectangle from Win32
17429 in stead of from control, since Win32 doesn't calculate
17430 screen coords correctly from control's Location if it
17431 have docked siblings.
17433 * MdiWindowManager.cs:
17434 - Correct the control menu popup location when clicked on
17435 the maximized form icon. (fixes #80223.1)
17436 - Don't show moving rectangle if mouse hasn't moved from
17437 the original clicked point.
17438 - Removed FormGotFocus handler (not used).
17439 - Calculate the control buttons location from the main
17440 window's size and not client size (fixes #79770).
17441 - Form is now closed when the form icon is double-clicked
17443 - Correct NCCalcSize numbers a little bit (fixes #80223.2)
17445 * InternalWindowManager.cs:
17446 - Moved some MDI-only methods to MdiWindowManager.
17447 - Removed unused properties and methods.
17448 - Unified method naming for methods handling wm messages.
17449 - Moved all message handling to seperate methods for
17452 * ThemeWin32Classic.cs:
17453 - DrawManagedWindowDecorations now draws the title bar
17454 with a gradient brush.
17455 - Add a CPDrawButtonInternal that allows us to specify
17456 light, normal and dark colors for the buttons (control
17457 buttons for MDI children were drawn with the same light
17458 color as the background, therefore loosing the 3D effect).
17461 - Add a CapturedControl property that is used to
17462 determine the control to resize (defaults to parent).
17463 Needed for MdiClient, since its SizeGrip's parent is
17464 MdiClient, but the control to resize is the main form.
17467 - Set SizeGrip's CapturedControl to the main form in order
17468 to resize the main form and not the MdiClient.
17469 - Override AfterTopMostControl to leave the scrollbars
17472 2006-12-15 Daniel Nauck <dna@mono-project.de>
17474 * ListView.cs: fixed ListViewItemCollection AddRange and
17475 implemented ListViewItemCollection AddRange 2.0 support.
17477 2006-12-15 Daniel Nauck <dna@mono-project.de>
17479 * ListViewGroup.cs: Add.
17480 * ListViewGroupCollection.cs: Add
17481 * ListView.cs: Add ListViewGroup (Group) and ShowGroups 2.0 support.
17482 * ListViewItem.cs: Add ListViewgroup (Group), ListViewGroups constructors and
17483 stub for ImageKey 2.0 support.
17485 2006-12-14 Mike Kestner <mkestner@novell.com>
17487 * ListView.cs: add text padding to the autocalculation for columns
17488 of width -2. Fixes #80207.
17490 2006-12-14 Mike Kestner <mkestner@novell.com>
17492 * ListView.cs: add some index guarding for partial row navigation
17493 logic. Fixes #80250.
17495 2006-12-14 Mike Kestner <mkestner@novell.com>
17497 * ListView.cs: throw ArgumentExceptions when parented ListViewItems
17498 are added or inserted to the collection. Fixes #81099.
17500 2006-12-13 Everaldo Canuto <everaldo@simios.org>
17502 * MenuAPI.cs: Closes menu when right click out side of popup
17503 it fix problem in ContextMenu and MainMenu. Fixes #80252.
17505 2006-12-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
17507 * ListViewItem.cs: Fix dumb error.
17509 * ListView.cs: Add Find and ContainsKey methods in
17510 ListViewItemCollection, and also return true for IsReadOnly
17511 and IsFixedSize (changes for 2.0).
17513 2006-12-13 Gert Driesen <drieseng@users.sourceforge.net>
17515 * Control.cs: Allow Region to be set to null.
17517 2006-12-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
17519 * MdiWindowManager.cs: Remove unused (commented out) code.
17520 * Form.cs: When the MdiChild is maximized, the form needs
17521 WM_NCMOUSELEAVE, so request it.
17522 * InternalWindowManager.cs:
17523 - Added tooltips to control buttons.
17524 - Removed duplicated control button handling code.
17525 - Removed unused (commented out) code.
17527 2006-12-12 Everaldo Canuto <everaldo@simios.org>
17529 * MenuAPI.cs: Set cursor to default in popup menus, a XplatUI.SetCursor
17530 was used because we must set cursor without trigger ChangeCursor event
17531 and without change Cursor control property. Fixes #79963.
17533 2006-12-12 Andreia Gaita <avidigal@novell.com>
17535 * Control.cs: Check if Region setter value is null, and ignore
17537 2006-12-12 Jackson Harper <jackson@ximian.com>
17539 * TextControl.cs: We were almost always drawing one more line then
17540 needed, since the GetLineByPixel will return the last line found
17541 at that pixel. In most cases though, we were invalidating up to
17542 the junction between two lines.
17543 - Improve debug code.
17545 2006-12-12 Chris Toshok <toshok@ximian.com>
17547 * XplatUI.cs: add static DrawReversibleFrame, DrawReversibleLine,
17548 and FillReversibleRectangle.
17550 * XplatUIDriver.cs: add abstract DrawReversibleFrame, DrawReversibleLine,
17551 and FillReversibleRectangle.
17553 * XplatUIWin32.cs: add stubs which do nothing for
17554 DrawReversibleFrame, DrawReversibleLine, and
17555 FillReversibleRectangle.
17557 * XplatUIOSX.cs: add stubs which raise NIE for
17558 DrawReversibleFrame, DrawReversibleLine, and
17559 FillReversibleRectangle.
17561 * XplatUIX11.cs: add working implementation for
17562 DrawReversibleFrame, DrawReversibleLine, and
17563 FillReversibleRectangle.
17565 * ControlPaint.cs: implement DrawReversibleFrame,
17566 DrawReversibleLine, and FillReversibleRectangle, by calling into
17567 the appropriate XplatUI method.
17569 2006-12-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
17571 * Form.cs: Make MdiClient have the focus even if it's
17572 not selectable, since it should receive WM_KEY* and WM_MOUSE
17573 messages. Fixes #79907.
17575 2006-12-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
17577 * Hwnd.cs: Save the CreateParams.ExStyle so that it can be
17578 queried after the window is created.
17580 * XplatUIX11.cs: Added SendParentNotify to implement
17581 WM_PARENTNOTIFY logic. Fixes #79965.
17583 * Control.cs: Added MakeParam.
17585 2006-12-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
17587 * MdiClient.cs: Resume Layout before setting window
17588 states (fixes #80201).
17590 2006-12-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
17592 * MenuAPI.cs: Deselect a menu item after performing
17593 the click (fixes #80197).
17595 2006-12-11 Jackson Harper <jackson@ximian.com>
17597 * TextBoxBase.cs: We need to cap this value, since Maximum -
17598 ViewPortHeight can be less than zero.
17599 - Only do selection with the left mouse button.
17600 * TextBox.cs: Don't tell the world that we have a context menu.
17601 * Control.cs: New method so that we can control whether or not the
17602 context menu is visible outside MWF.
17604 2006-12-11 Everaldo Canuto <everaldo@simios.org>
17606 * ToolBarButton.cs: Fix text positon.
17608 2006-12-11 Miguel de Icaza <miguel@novell.com>
17610 * ProgressBar.cs (MarqueeAnimationSpeed): Add stub.
17612 * Control.cs (DoubleBuffered): Add implementation.
17614 * Application.cs (OpenForms): Add.
17616 2006-12-11 Jonathan Pobst <monkey@jpobst.com>
17618 * Form.cs: Use opacity instead of Opactiy to determine if we need
17619 to set the WS_EX_LAYERED bit. [Fixes bug #80185]
17621 2006-12-11 Jonathan Pobst <monkey@jpobst.com>
17623 * Control.cs: Fix NRE if Control.Site was set to null.
17625 2006-12-11 Chris Toshok <toshok@ximian.com>
17627 * Control.cs: ControlCollection.Remove should return if the arg is
17628 null, and ControlCollection.SetChildIndex should raise a ANE.
17630 2006-12-11 Gert Driesen <drieseng@users.sourceforge.net>
17632 * Control.cs: Verify value set for Dock property. Code formatting
17635 2006-12-11 Jackson Harper <jackson@ximian.com>
17637 * TextControl.cs: Draw the caret and the selection when a flag is
17639 * TextBoxBase.cs: We want to draw the caret and the selection for
17640 TextBox but not for TextBoxBase.
17641 - If the window is resized and scrolling is no longer needed (the
17642 whole doc is visible) set the scroll position to zero.
17643 - The default SelectWord (the one TextBox uses) should move the
17644 caret to the end of the word.
17645 - SelectAll moves the caret to the end of the selection.
17646 * TextBox.cs: We don't selectall on focus, we just do it when the
17647 control is created.
17649 2006-12-11 Mike Kestner <mkestner@novell.com>
17651 * ComboBox.cs: stub in a 2.0 override for ProcessKeyEventArgs.
17653 2006-12-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
17655 * ListView.cs: Add Insert, IndexOfKey, RemoveByKey and indexer
17657 * ListViewItem.cs: Add Name 2.0 property.
17659 2006-12-11 Andreia Gaita <avidigal@novell.com>
17661 * TabControl.cs: Set visibility on selected or default tab
17662 when tabcontrol handle is created, so that it's contents
17663 actually show up (duh). Fixes #80193
17664 Don't redraw the control if there is no handle created, as
17665 the selected index might be completely invalid. Added some tests
17668 2006-12-11 Everaldo Canuto <everaldo@simios.org>
17670 * ToolBar.cs: Uses maximun width and height of all buttons as
17671 button rectangle when ButtonSize specified, it looks strange but
17672 is what happens in Win32. Fixes #80189.
17674 2006-12-11 Jackson Harper <jackson@ximian.com>
17676 * TextControl.cs: Need to track undo levels ourself, since
17677 compound actions will mess them up.
17679 2006-12-10 Andreia Gaita <avidigal@novell.com>
17681 * TabControl.cs: Raise SelectedIndexChanged for 1.1 if the
17682 SelectedIndex value is changed (even if it's not valid).
17683 Reset SelectedIndex to 0 when the handle is created and if
17684 the current index is invalid.
17685 Fixes SelectdeIndex unit tests and #80128
17687 2006-12-08 Chris Toshok <toshok@ximian.com>
17689 * DataGrid.cs (set_CurrentCell): because EnsureCellVisibility
17690 calls EndEdit, it needs to be called before we set current_cell to
17691 its new value. Otherwise, we end up committing the value in the
17692 textbox to the new cell as well. Fixes bug #80160.
17694 2006-12-08 Chris Toshok <toshok@ximian.com>
17696 * Form.cs (set_CancelButton): if the button's DialogResult is
17697 None, set it to Cancel. Fixes bug 80180.
17699 2006-12-08 Jackson Harper <jackson@ximian.com>
17701 * TextBoxBase.cs: Ugh, ClientSize can be 0,0 sometimes, so we need
17702 to watch ourselves when setting the canvas size and setting the
17705 2006-12-08 Chris Toshok <toshok@ximian.com>
17707 * DataGrid.cs: comment out the two MakeTransparent calls for the
17708 time being so people using trunk (and not 1.2.2) on windows can
17709 actually use the datagrid. This deals with bug #80151.
17711 2006-12-08 Jonathan Pobst <monkey@jpobst.com>
17713 * ThemeWin32Classic.cs: Change ButtonBase_DrawImage to use the
17714 Graphics.DrawImage (image, int, int, int, int) overload instead
17715 of Graphics.DrawImage (image, int, int). GDI+ can't figure out
17716 the dpi difference and was blurring images it drew.
17719 2006-12-08 Chris Toshok <toshok@ximian.com>
17721 * ThemeWin32Classic.cs (DataGridPaintRows): handle case where
17722 rowcnt is 0 (such as with an empty datasource), and make sure we
17723 initialize not_usedarea.Y to cells.Y, so we don't draw over the
17724 other areas (caption, parent row, etc, etc). Fixes bug #80095.
17726 2006-12-08 Chris Toshok <toshok@ximian.com>
17728 * DataGridColumnStyle.cs (SetDataGrid): don't try to access a null
17731 2006-12-08 Chris Toshok <toshok@ximian.com>
17733 [ Fixes bug #80167 ]
17735 * ThemeWin32Classic.cs: don't draw the image if the button's flat
17736 style is FlatStyle.System.
17738 * ButtonBase, ThemeClearlooks.cs, ThemeGtk.cs, ThemeNice.cs: make
17739 ButtonBase.flat_style private, and switch uses of it to the public
17742 2006-12-08 Chris Toshok <toshok@ximian.com>
17744 [ Fixes bug #80121 ]
17746 * ThemeWin32Classic.cs: center the caption text in the datagrid
17749 * DataGrid.cs: lessen the amount we add to the caption height from
17750 6 to 2. 6 was making it huge.
17752 2006-12-08 Andreia Gaita <avidigal@novell.com>
17754 * UpDownBase: Handle MouseWheel call directly instead of capturing
17755 the inner textbox's OnMouseWheel. Fixes #80166
17757 2006-12-08 Jackson Harper <jackson@ximian.com>
17759 * TextControl.cs: We need to invalidate the textbox when we empty
17760 it (how had this not been discovered before?)
17762 2006-12-08 Jackson Harper <jackson@ximian.com>
17764 * TextBoxBase.cs: Reworked the mouse down code so I could get it
17765 to behave like MS, we now ignore the eventargs.Click and just
17766 track state ourself, which we were already doing anyways.
17767 - Constrain the double click handler to the double click size.
17769 2006-12-08 Chris Toshok <toshok@ximian.com>
17771 * DataGrid.cs: the mousewheel code shouldn't try to scroll in a
17772 direction if that scrollbar isn't shown. fixes bug #80158.
17774 2006-12-08 Andreia Gaita <avidigal@novell.com>
17776 * NumericUpDown.cs: Update value on getter. Fixes #79950
17778 2006-12-08 Chris Toshok <toshok@ximian.com>
17780 * MenuItem.cs: add back in the event cloning code. I didn't know
17781 how to do it in the face of the EventHandlerList work i'd done
17782 last week. Fixes bug #80183.
17784 2006-12-08 Jonathan Pobst <monkey@jpobst.com>
17786 * Control.cs: Add an invalidate to the BackgroundImage setter.
17789 2006-12-07 Jonathan Pobst <monkey@jpobst.com>
17791 * ToolStrip*: Add some small properties reported by MoMA, fix event
17792 firing and default properties based off of unit tests, and add some
17793 attributes based off of the class status page.
17795 2006-12-07 Jackson Harper <jackson@ximian.com>
17797 * TextBoxBase.cs: Take HideSelection into account when determining
17798 whether or not to show the selection.
17799 * RichTextBox.cs: After inserting the RTF into the document move
17800 the cursor to the beginning of the document.
17802 2006-12-07 Jonathan Pobst <monkey@jpobst.com>
17804 * Control.cs: Remove static ArrayList "controls" which maintained
17805 a reference to every control created.
17806 * Application.cs: Create a static FormCollection to maintain a reference
17807 to every form created. Use it in places that formerly enumerated through
17808 the controls one looking for forms.
17809 * Form.cs: Add and remove self from above FormCollection.
17811 2006-12-07 Alexander Olk <alex.olk@googlemail.com>
17813 * MimeIcon.cs: gdk_pixbuf_save_to_buffer is part of libgdk-pixbuf,
17814 not libgdk (though it makes me wonder why I didn't have any
17817 2006-12-07 Chris Toshok <toshok@ximian.com>
17819 [ you had to know this was coming after that last commit...]
17821 * XplatUIX11.cs: implement the 3 Offscreen functions in terms of
17822 XPixmaps (CreateOffscreenDrawable maps to XCreatePixmap,
17823 DestroyOffscreenDrawable to FreePixmap, and BlitFromOffscreen to
17826 2006-12-07 Chris Toshok <toshok@ximian.com>
17828 * XplatUI.cs: add 3 calls (CreateOffscreenDrawable,
17829 DestroyOffscreenDrawable, and BlitFromOffscreen) that encompass
17830 all the behavior we need for double buffering.
17832 * XplatUIDriver.cs: implement the 3 double buffer methods using a
17833 client side Bitmap, just like the old Control-based double buffer
17834 code did. The methods are virtual, so each XplatUI driver
17835 subclass can replace the implementation to use a faster, platform
17838 * Control.cs: make use of the 3 Offscreen XplatUI calls in the
17839 double buffer code, and clean things up a bit in the process.
17841 2006-12-06 Chris Toshok <toshok@ximian.com>
17843 * Control.cs: reindent WndProc.
17845 2006-12-06 Chris Toshok <toshok@ximian.com>
17847 [ I wanna be like BenM when I grow up ]
17849 * Hwnd.cs: create a single static Graphics object on the static
17850 Bitmap we create. use this for our text measurements.
17852 * Control.cs (DeviceContext): stop using the backbuffer's dc_mem.
17853 This was causing us to allocate a backbuffer for every control,
17854 even when it wasn't flagged as double buffered. Instead use the
17855 single graphics instance. This might have implications for
17856 multithreaded applications. If we run into problems we can switch
17857 to creating 1 Graphics per control, on the static Hwnd bitmap.
17859 this change nets us a 7M savings in private dirty mappings when
17860 running FormsTest.exe.
17862 2006-12-06 Chris Toshok <toshok@ximian.com>
17864 * ListView.cs: the BackgroundImage override is just to set
17865 attributes. chain up to base.BackgroundImage.
17867 * RichTextBox.cs: same.
17869 * ToolBar.cs: same, but we need to also redraw the toolbar when it
17870 changes, so instead a handler for BackgroundImageChanged.
17872 * Control.cs: make background_image private.
17874 2006-12-06 Chris Toshok <toshok@ximian.com>
17876 * ScrollBar.cs: change the assignment of cursor to Cursor. not
17877 sure we even need this assignment, but roll with it for now.
17879 * Control.cs: make the cursor field private.
17881 2006-12-06 Chris Toshok <toshok@ximian.com>
17883 * Form.cs: we don't need to explicitly set ImeMode to
17884 ImeMode.NoControl - that's a natural fallout of Control.ImeMode's
17885 behavior in the face of ImeMode.Inherit.
17887 * ButtonBase.cs: change DefaultImeMode to ImeMode.Disable, and
17888 change the ctor's assignment to use ImeMode instead of ime_mode.
17890 * Control.cs (get_ImeMode): don't assume DefaultImeMode ==
17891 ImeModeInherit. Only check for the parent's imemode (and return
17892 NoControl if there is no parent) if ime_Mode == ImeMode.Inherit.
17893 This fixes the button unit test, which sets both ImeMode and
17894 DefaultImeMode to ImeMode.Disable.
17896 also make the ime_mode field private.
17898 2006-12-06 Chris Toshok <toshok@ximian.com>
17900 * Control.cs: make control_style private.
17902 * TextBoxBase.cs: fix the HandleClick override. it was explicitly
17903 setting the styles to true, then setting them to false instead of
17904 reverting to their previous values.
17906 also, call SetStyle on the scrollbars instead of using
17907 control_style directly.
17909 2006-12-06 Jonathan Pobst <monkey@jpobst.com>
17911 * FormCollection.cs: Implement. [2.0]
17913 2006-12-06 Chris Toshok <toshok@ximian.com>
17915 * Control.cs: make tab_stop private.
17917 * Label.cs: set TabStop, not tab_stop. reformat some event
17918 add/remove methods to make them more compact.
17920 2006-12-06 Chris Toshok <toshok@ximian.com>
17922 * RadioButton.cs: fix TabStop handling.
17924 2006-12-06 Chris Toshok <toshok@ximian.com>
17926 * TextBox.cs: remove the explicit assignments to has_focus.
17929 * ButtonBase.cs: remove the assignment to has_focus. Control will
17932 2006-12-06 Chris Toshok <toshok@ximian.com>
17934 * ButtonBase.cs: remove all uses of is_enabled from this code.
17935 it's always true when any of the code containing the checks is
17938 2006-12-06 Chris Toshok <toshok@ximian.com>
17940 * ImageList.cs: reinstate the ShouldSerialize*/Reset* methods,
17941 with different semantics (some are present in both 1.1 and 2.0
17942 profiles) so that we match MS's behavior in our unit tests.
17944 2006-12-06 Jackson Harper <jackson@ximian.com>
17946 * TextControl.cs: Make this operation undoable.
17947 * TextBoxBase.cs: Factor the border width into the preferred
17949 - implement Modified as per the spec.
17951 2006-12-06 Chris Toshok <toshok@ximian.com>
17953 * Timer.cs, Control.cs, Menu.cs: make control_tag private.
17955 2006-12-06 Chris Toshok <toshok@ximian.com>
17957 * Control.cs: make right_to_left and context_menu fields private.
17959 2006-12-06 Chris Toshok <toshok@ximian.com>
17961 * AccessibleObject.cs, Control.cs, XplatUIX11GTK.cs,
17962 XplatUIX11.cs, Form.cs, RadioButton.cs, ScrollableControl.cs: make
17963 Control.child_controls private. switch all uses over to
17966 2006-12-06 Chris Toshok <toshok@ximian.com>
17968 * System.Windows.Forms/GroupBox.cs,
17969 System.Windows.Forms/AccessibleObject.cs,
17970 System.Windows.Forms/ErrorProvider.cs,
17971 System.Windows.Forms/Control.cs,
17972 System.Windows.Forms/UpDownBase.cs,
17973 System.Windows.Forms/ScrollBar.cs,
17974 System.Windows.Forms/DateTimePicker.cs,
17975 System.Windows.Forms/Form.cs, System.Windows.Forms/Label.cs,
17976 System.Windows.Forms/ToolTip.cs,
17977 System.Windows.Forms/RadioButton.cs,
17978 System.Windows.Forms/LinkLabel.cs,
17979 System.Windows.Forms/Splitter.cs,
17980 System.Windows.Forms/TextBoxBase.cs,
17981 System.Windows.Forms/ToolStripTextBox.cs,
17982 System.Windows.Forms/ContainerControl.cs,
17983 System.Windows.Forms/ThemeWin32Classic.cs,
17984 System.Windows.Forms/SizeGrip.cs,
17985 System.Windows.Forms/ToolStripDropDown.cs,
17986 System.Windows.Forms/ScrollableControl.cs: Make Control.parent
17987 private. switch all uses over to Control.Parent.
17989 2006-12-06 Chris Toshok <toshok@ximian.com>
17991 * RichTextBox.cs: don't assign to has_focus in GotFocus/LostFocus.
17992 Control does this before calling emitting these events.
17994 * TabControl.cs: same.
17996 * ThemeWin32Classic.cs: use Control.ClientRectangle instead of
17997 Control.client_rect.
17999 * ButtonBase.cs: use the ClientSize property instead of the
18002 * ScrollableControl.cs: same.
18004 * Control.cs: another pass at making properties private. also,
18005 move the initialization of tab_stop to the ctor.
18007 2006-12-05 Andreia Gaita <avidigal@novell.com>
18009 * TabControl.cs: Let the selected index be set freely if the
18010 control handle is not yet created.
18012 2006-12-05 Jonathan Pobst <monkey@jpobst.com>
18014 * Control.cs: Revert dist_top, dist_right, and dist_bottom to
18015 internal until I can rewrite DefaultLayout.
18016 * ToolStrip.cs: Fix build error and some general cleaning.
18017 * ToolStripControlHost.cs, SplitterPanel.cs, DataGridView.cs:
18018 Fix build errors caused by making some of Control's fields private.
18020 2006-12-05 Jackson Harper <jackson@ximian.com>
18022 * TextControl.cs: Redo Insert a little so that it use IndexOf
18023 instead of Split, this prevents it from messing up on things like
18024 \n\n\n. Also more effecient since the split array doesn't need to
18026 * TextBoxBase.cs: AppendText doesnt handle multiline and non
18027 multiline text differently, this is the first of many fixes that
18028 will make multiline/non-multiline the same thing as far as the
18029 TextBoxBase is concerned.
18030 - Don't split the text and insert lines, this can lose some line
18031 endings (like is the last line a soft or hard break). Instead use
18033 - Fix an off by one when combining all the lines in the Text
18035 - Remove separate multiline handling from the Text getter/setter.
18037 2006-12-05 Chris Toshok <toshok@ximian.com>
18039 * ButtonBase.cs: a few changes:
18041 - don't reinitialize internal Control fields in the ctor when they
18042 have the same values as Control sets them.
18044 - don't set has_focus in OnGotFocus/OnLostFocus. Control does
18045 this before calling those methods.
18047 - we don't need to call Refresh for anything. use Invalidate
18050 - OnEnabledChanged doesn't need to redraw at all - Control.cs
18051 calls Refresh in its OnEnabledChanged.
18053 - several of the events we were registered for in the ctor to
18054 redraw ourselves already include calls to Invalidate in the
18055 property setters that raise the events. remove the extra
18058 - reformat a switch statement that was 83274658 columns wide.
18060 2006-12-05 Mike Kestner <mkestner@novell.com>
18062 * ComboBox.cs: fix a unit test regression from a TextBox
18063 SelectionLength return of -1 when there's no selection.
18065 2006-12-05 Chris Toshok <toshok@ximian.com>
18067 * Control.cs, Button.cs, ThemeGtk.cs, Form.cs, ListView.cs,
18068 ThemeWin32Classic.cs, SizeGrip.cs, ToolBar.cs: first pass at
18069 cleaning up some of the internal Control fields being used by
18072 2006-12-05 Mike Kestner <mkestner@novell.com>
18074 * ComboBox.cs: fix some Simple mode regressions. Set Visible on the
18075 listbox after AddImplicit calls since it defaults to hidden. Add a
18076 hack to preserve requested heights across DropDownStyle changes.
18078 2006-12-05 Jonathan Pobst <monkey@jpobst.com>
18080 * PropertyGrid.cs: Hide FindFirstItem method from public API.
18082 2006-12-05 Chris Toshok <toshok@ximian.com>
18084 * DataGridView.cs: fix compiler warnings.
18086 * PrintControllerWithStatusDialog.cs: same.
18088 * ToolBar.cs: same.
18090 * FolderBrowserDialog.cs: same.
18092 * Splitter.cs: same.
18094 * DataGridViewComboBoxCell.cs: same.
18096 * XplatUIWin32.cs: same.
18098 * PictureBox.cs: same.
18100 * Win32DnD.cs: same.
18102 * PageSetupDialog.cs: same.
18104 * FileDialog.cs: same.
18106 * PrintDialog.cs: same.
18108 * DataGridTextBoxColumn.cs: same.
18110 * DrawTreeNodeEventArgs.cs: same (and fix corcompare)
18112 2006-12-05 Chris Toshok <toshok@ximian.com>
18114 * TextBox.cs, CheckedListBox.cs, MonthCalendar.cs, Menu.cs,
18115 MainMenu.cs, ListView.cs, LabelEditTextBox.cs, ToolBar.cs: more
18116 System.ComponentModel.EventHandlerList work.
18118 2006-12-05 Jonathan Chambers <joncham@gmail.com>
18120 * DrawTreeNodeEventArgs.cs: Added.
18122 2006-12-05 Rolf Bjarne Kvinge <RKvinge@novell.com>
18124 * InternalWindowManager.cs: Remove an unused field.
18126 2006-12-05 Rolf Bjarne Kvinge <RKvinge@novell.com>
18128 * InternalWindowManager.cs:
18129 - Save the point where the title bar is clicked.
18131 * MdiWindowManager.cs:
18132 - Only allow moving of the window as long as the
18133 clicked point on the title bar does not get out of
18134 MdiClient's rectangle. Fixes #79982.
18137 - Added Horizontal/VerticalScrollbarVisible.
18138 - Simplified the scrollbar sizing algorithm.
18139 - Cache the difference in scrolled value in
18140 H/VBarValueChanged and move the calculation out
18143 2006-12-05 Rolf Bjarne Kvinge <RKvinge@novell.com>
18145 * Control.cs: Make the Console.WriteLine in WndProc
18148 2006-12-05 Chris Toshok <toshok@ximian.com>
18150 * ToolStripManager.cs, ToolStripButton.cs,
18151 ToolStripContentPanel.cs, ToolStripComboBox.cs, ToolStrip.cs,
18152 ToolStripMenuItem.cs, ToolStripItem.cs, ToolStripControlHost.cs,
18153 ToolStripSplitButton.cs, ToolStripSeparator.cs,
18154 ToolStripRenderer.cs, ToolStripDropDownItem.cs,
18155 ToolStripProgressBar.cs, ToolStripContainer.cs,
18156 ToolStripTextBox.cs, ToolStripPanel.cs, ToolStripDropDown.cs: move
18157 to using System.ComponentModel.EventHandlerList.
18159 2006-12-04 Chris Toshok <toshok@ximian.com>
18161 * LinkLabel.cs: fix up compiler warnings.
18163 * TableLayoutSettings.cs: same.
18165 * TreeView.cs: same.
18167 * ToolBar.cs: same.
18169 * TabControl.cs: same.
18171 * RichTextBox.cs: same.
18173 * ListViewItem.cs: same.
18175 * PropertyGrid.cs: same.
18177 * DataGridViewRowPostPaintEventArgs.cs: corcompare fix.
18181 * TextRenderer.cs: fix up compiler warnings.
18185 * Form.cs: corcompare fixes.
18187 * PictureBox.cs: fix up compiler warnings.
18189 * ImageListStreamer.cs: same.
18191 * TrackBar.cs: corcompare fix.
18193 * Control.cs: fix up compiler warnings.
18195 * SplitterPanel.cs: same.
18197 * NumericTextBox.cs: same.
18199 * ImageList.cs: same.
18201 * StatusStrip.cs: same.
18203 * ProgressBar.cs: corcompare fix.
18205 * ToolStripButton.cs: fix up compiler warnings.
18207 * ToolStripStatusLabel.cs: same.
18209 * ToolStripSplitButton.cs: same.
18211 * ToolStripSeparator.cs: same.
18213 * ToolStripProgressBar.cs: same.
18215 * ToolStripDropDownMenu.cs: same
18217 * ToolStripDropDown.cs: same.
18219 * ToolStripDropDownButton.cs: same.
18221 * ToolStrip.cs: same.
18223 * ToolStripControlHost.cs: same.
18225 * ToolStripContentPanel.cs: same.
18227 * ToolStripDropDown.cs: same.
18229 * ToolStripContainer.cs: same.
18231 * ToolStripPanel.cs: same, and add "new" where we need it to work
18232 with the new ArrangedElementCollection.
18234 * ToolStripItemCollection.cs: add "new" where we need it to work
18235 with the new ArrangedElementCollection.
18237 2006-12-04 Andreia Gaita <avidigal@novell.com>
18239 * TabControl.cs: Fix default tab selection to after TabControl
18240 gets focus and not before. Fixes #80128
18242 2006-12-04 Chris Toshok <toshok@ximian.com>
18244 * DataGridTableStyle.cs: remove the gross calling of
18245 datagrid.Refresh from here. It's a broken idea and it doesn't
18248 * DataGrid.cs: instead, just register/unregister from the
18249 DataGridTableStyle events in CurrentTableStyle. we play it
18250 conservatively and EndEdit + CalcAreasAndInvalidate on any event,
18251 even though some would most likely not require it. Fixes bug
18252 #80115 (and one portion of #80117 as a side effect).
18254 2006-12-04 Chris Toshok <toshok@ximian.com>
18256 * DataGrid.cs (set_CaptionVisible): EndEdit before doing the work
18257 so the textbox (if any) goes away. Fixes bug #80117.
18259 2006-12-04 Chris Toshok <toshok@ximian.com>
18261 * DataGridColumnStyle.cs: set the column's readonly property
18262 initially based on the property descriptor's IsReadOnly. Fixes
18265 2006-12-04 Chris Toshok <toshok@ximian.com>
18267 * ComboBox.cs: wrap the dropdown style changing work in
18268 SuspendLayout/ResumeLayout. Fixes bug #79968.
18270 2006-12-04 Jackson Harper <jackson@ximian.com>
18272 * TextBoxBase.cs: Fix off by one, since these are one-based.
18273 * TextBox.cs: Select all the text when we get focus. The TextBox
18274 does this but the RTB does not.
18276 2006-12-04 Chris Toshok <toshok@ximian.com>
18278 * DataGridTextBoxColumn.cs: remove some spew.
18280 * DataGridColumnStyle.cs (SetColumnValueAtRow): this seems right
18281 but some part of me is saying "it shouldn't be here.." At any
18282 rate, it fixes bug #80046. Call IEditableObject.EndEdit after
18285 2006-12-04 Chris Toshok <toshok@ximian.com>
18287 * DataGridColumnStyle.cs (SetDataGrid): call CheckValidDataSource
18288 to reassign the propertydescriptor.
18290 2006-12-04 Jackson Harper <jackson@ximian.com>
18293 * TextControl.cs: Remove some unused variables. Maybe this will
18294 patch things up between mike and I.
18295 - don't split lines less then one char wide, if the viewport is
18296 that small text won't be visible anyways.
18298 2006-12-04 Jackson Harper <jackson@ximian.com>
18300 * TextBoxBase.cs: Default selection length is -1, need to do some
18301 more testing on windows to see when this is used for the property.
18302 - Redid the Lines [] property to that we properly remove soft line
18304 - added support for preserving carriage returns
18305 - CanUndo is not a variable like 'is undo enabled' it just returns
18306 true if there is undo operations available.
18307 - AppendText doesn't need to grab the last tag itself anymore,
18308 this happens automatically when we move the cursor.
18309 * TextControl.cs: Add CompoundActions to the undo class. This
18310 allows combining the other operations into one big option. ie a
18311 paste will combine { delete old, insert new, move cursor }
18312 - Add InsertString undo operation
18313 - New method for deleting multiline text
18314 - Add carriage returns to lines. So we can preserve carriage
18315 returns when text is 'roundtripped'
18317 2006-12-04 Chris Toshok <toshok@ximian.com>
18319 * DataGrid.cs (CalcCellsArea): cells_area.Width/Height are at a
18320 minimum 0. Fixes the scrollbar exception in bug #80136.
18322 2006-12-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
18325 * MdiWindowManager: Removed unused fields and methods.
18327 2006-12-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
18329 * StatusBar.cs: Update all panels when a AutoSize=Contents
18330 panel needs updating.
18332 * StatusBarPanel.cs: Remove twidth and only use initialize.
18335 2006-12-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
18337 * Form.cs: When a form's MdiParent is set add it directly
18338 on top of the z-order in stead of relying on MdiClient's
18339 ActivateChild to do it. Fixes #80135.
18342 - Remove original_order, mdi_child_list is already doing
18344 - Create mdi_child_list on construction in
18345 stead of first use (avoids a few null checks).
18347 * MenuItem.cs: Use an already existing list of mdi children
18348 to get the correct order of children and remove the other
18351 2006-12-04 Chris Toshok <toshok@ximian.com>
18353 * PropertyGridView.cs: cached_splitter_location is only used in
18354 !DOUBLEBUFFER code.
18356 * PropertyGrid.cs: implement the ComComponentNameChanged event
18357 using Events, hoping that would fix the warning. Looks like a
18358 compiler bug instead (#80144).
18360 * PropertyManager.cs: remove unused method.
18362 2006-11-04 Everaldo Canuto <everaldo@simios.org>
18364 * ThemeWin32Classic.cs: Dont draw arrow when menuitem on menubar,
18365 include parentesis to fix expression evaluation. Fixes #79634.
18367 2006-11-02 Everaldo Canuto <everaldo@simios.org>
18370 - Changes to fix behavior in Menu control, some reported in #80097
18371 and other detected during behavior refactory like a select event
18373 - Remove unneded "if's" conditions.
18374 - Created an internal to flag when popup is active in control, we need
18375 it because in .NET you can have menu active but without popup active
18376 when you active menu using popup without visible items.
18377 - Mimic win32 behavior for Select and Popup events.
18378 - Dont open popup menu when you dont have visible subitems.
18379 - Do nothing when click on disabled menu item.
18380 - Some small changes to follow the coding style guidelines.
18381 - Unselect menu only when another control gives focus. Fixes #80097.
18382 - Remove unused code.
18384 * MenuItem.cs: internal VisibleItems method to check if menu
18385 theres visible subitems, it will be usefull to fix some
18386 behavior in Menu control.
18388 2006-11-01 Everaldo Canuto <everaldo@simios.org>
18390 * Timer.cs: Tag property for 2.0 profile.
18392 2006-12-01 Chris Toshok <toshok@ximian.com>
18394 [ after removing all warning suppressions, this cleans up over 100 warnings. ]
18396 * Win32DnD.cs: comment out some unused fields.
18398 * XplatUIWin32.cs: comment out some unused pinvokes, and remove
18399 some unused properties/methods.
18401 * XplatUIX11.cs: fix MousePosition so we override the base class's
18402 property instead of conflicting with it.
18404 * PictureBox.cs: comment out some unused fields
18406 * OSXStructs.cs: make some struct fields public.
18408 * XplatUIOSX.cs: comment out some unused pinvokes, and fix
18409 MousePosition so we override the base class's property instead of
18410 conflicting with it.
18412 * X11Dnd.cs: comment out some unused fields
18414 * X11DesktopColors.cs: fix some struct field visibility to quiet
18417 * X11Dnd.cs: remove some debug code.
18419 * ThemeClearlooks.cs: comment out unused field.
18421 * ThemeNice.cs: mark some methods as overriding ThemeWin32Classic as needed.
18423 * ThemeGtk.cs: comment out some unused pinvokes.
18425 * Timer.cs: remove some unused fields.
18427 * ThemeClearlooks.cs: comment out unused field.
18429 * UpDownBase.cs: comment out unused field.
18431 * DataObject.cs: comment out unused field.
18433 * DataGridBoolColumn.cs: reomve unused field.
18435 * DataGrid.cs: remove unused field.
18437 * Cursor.cs: remove old ToBitmap code.
18439 * ControlPaint.cs: remove unused method.
18441 * ScrollBar.cs: remove unused fields.
18443 * ComboBox.cs: remove unused field, and chain up to
18444 AccessibleObject ctor.
18446 * ListBox.cs: remove unused field.
18448 * ButtonBase.cs: wrap a couple fields in NET_2_0.
18450 * GridEntry.cs: remove unused fields.
18452 * Binding.cs: remove unused fields.
18454 * AxHost.cs: remove unused method.
18456 * ContainerControl.cs: remove unused field.
18458 * ScrollableControl.cs: remove unused fields.
18460 2006-12-01 Chris Toshok <toshok@ximian.com>
18462 * XplatUI.cs, XplatUIWin32.cs, XplatUIGTK.cs: nuke
18463 the Where/WhereString stuff. it's easy enough to CWL
18464 Environment.StackTrace.
18466 * XplatUIX11.cs: same, but also fix up a lot of mcs warnings about
18467 unused private fields.
18469 2006-12-01 Jackson Harper <jackson@ximian.com>
18471 * TextControl.cs: Do not update the view while inserting multiline
18472 text. If we update the view we might wrap lines, before entering
18473 the new lines, which causes the new line insertion calculations to
18474 be totally fubared.
18475 - Remove an old TODO
18476 - Make debug output a little nicer
18478 2006-12-01 Chris Toshok <toshok@ximian.com>
18480 * ToolBar.cs: revert the ImeMode fix here and add an XXX comment.
18482 2006-12-01 Chris Toshok <toshok@ximian.com>
18484 [ fix the majority of the CS0108 warnings we've been suppressing ]
18486 * TreeView.cs: mark BackgroundImageChanged as 'new'.
18488 * ToolBar.cs: ImeMode just passes stuff to Control. Rename Layout
18489 to "LayoutToolBar" to quiet mcs.
18491 * TabControl.cs: mark our ControlCollection class as 'new'.
18493 * TextBoxBase.cs: mark some events as 'new'.
18495 * Splitter.cs: TabStop is 'new'.
18497 * ControlBindingsCollection.cs: mark a few methods as new since
18498 they change the visibility from protected to public.
18500 * RadioButton.cs: DoubleClick -> base class, and remove unused
18503 * MonthCalendar.cs: ImeMode property -> base class, and mark many
18506 * NumericUpDown.cs: TextChanged -> base class.
18508 * CheckedListBox.cs: mark our ObjectCollection class as new to
18511 * FolderBrowserDialog.cs: make HelpRequest event new and have it
18512 muck with the base class.
18514 * StatusBar.cs: fix some mcs warnings about Update being the same
18515 name as a base class method.
18517 * RichTextBox.cs: mark some events as new, and make them do things
18518 to the base class impl.
18520 * UserControl.cs: mark TextChanged as new, and have it manipulate
18523 * UpDownBase.cs: mark some things new.
18525 * CheckBox.cs: mark DoubleClick "new", and add some text about
18526 what we need to look at.
18528 * Panel.cs: make the events "new", and manipulate the base
18529 version. these are just here for attributes.
18531 * AccessibleObject.cs: make owner private.
18533 * Control.cs: deal with AccessibleObject.owner being private.
18534 cache our own copy if we need it.
18536 * Button.cs: add "new" to the DoubleClickEvent.
18538 * ListBox.cs: no need to track our own has_focus here. let
18539 Control.has_focus do it for us. Also some other work to clear up
18540 warnings about not overriding base class methods of the same name.
18542 * ComboBox.cs: clear up some warnings about not override base
18543 class methods of the same name.
18545 2006-12-01 Chris Toshok <toshok@ximian.com>
18547 * Form.cs: flag a few things as "new" to quiet some of the mcs
18552 * PrintPreviewDialog.cs: same.
18554 * DataGridView.cs: fix a ton of corcompare warnings. not all, but
18555 now DGV isn't so horrible on the class status page. also, move
18556 all events to using System.ComponentModel.EventHandlerList. my
18559 2006-12-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
18561 * MdiWindowManager.cs:
18562 - Set form to active mdi child if shown,
18563 and update the active mdi child to the next
18564 remaining child in the z-order if the form is hidden.
18567 - Track if the form has been visible and if its
18568 visibility is beeing changed, so that the MdiClient
18569 can properly decide the ActiveMdiChild. The MdiClient
18570 cannot track this since the form can change visibility
18571 before MdiClient is created.
18574 - Don't activate anything of the parent form is changing
18576 - Rework ActiveMdiChild to only return visible mdi
18577 children and take into account several other corner
18580 2006-12-01 Chris Toshok <toshok@ximian.com>
18582 * IBindableComponent.cs: new 2.0 interface.
18584 2006-12-01 Gert Driesen <drieseng@users.sourceforge.net>
18586 * DataGrid.cs: Font for caption area is bold by default.
18588 2006-12-01 Everaldo Canuto <everaldo@simios.org>
18590 * Menu.cs: Tag property for 2.0.
18592 2006-11-01 Everaldo Canuto <everaldo@simios.org>
18594 * ThemeWin32Classic.cs: Adjust menu separator drawing.
18596 2006-12-01 Chris Toshok <toshok@ximian.com>
18598 * TreeView.cs: doh, the Begin* events should be
18599 TreeViewCancelEventHandler.
18601 2006-12-01 Chris Toshok <toshok@ximian.com>
18603 * Form.cs: Form.ControlCollection already stores off the
18604 form_owner field. don't access the base class's internal "owner"
18607 * Control.cs: make all the fields in Control.ControlCollection
18608 private. there's no need for any internal fields here.
18610 2006-12-01 Chris Toshok <toshok@ximian.com>
18612 * DataGrid.cs: call SetDataSource instead of CalcGridAreas in
18613 OnHandleCreated. Fixes bug #80109.
18615 2006-12-01 Chris Toshok <toshok@ximian.com>
18617 * Button.cs, PropertyGridTextBox.cs, ComboBox.cs,
18618 SplitContainer.cs, Control.cs, StatusStrip.cs,
18619 DataGridTableStyle.cs, MenuItem.cs, DomainUpDown.cs, ImageList.cs,
18620 NumericTextBox.cs, NumericUpDown.cs, Panel.cs, CommonDialog.cs,
18621 DataGrid.cs, ScrollBar.cs, TrackBar.cs, PictureBox.cs,
18622 DateTimePicker.cs, StatusBar.cs, Form.cs, PrintPreviewDialog.cs,
18623 Label.cs, UserControl.cs, CheckBox.cs, RadioButton.cs,
18624 LinkLabel.cs, ListControl.cs, PropertyGrid.cs, Splitter.cs,
18625 MenuStrip.cs, FolderBrowserDialog.cs, NotifyIcon.cs,
18626 TextBoxBase.cs, ListView.cs, DataGridBoolColumn.cs,
18627 PrintPreviewControl.cs, RichTextBox.cs, ListBox.cs, TabControl.cs,
18628 DataGridColumnStyle.cs, ContextMenu.cs, TreeView.cs:
18630 do most of the work to convert our code over to use
18631 System.ComponentModel.Component.Events for
18632 adding/removing/dispatching events.
18635 2006-11-30 Jonathan Pobst <monkey@jpobst.com>
18637 * DataGridView.cs: Fix an ArgumentNullException reported
18638 twice today in IRC.
18640 2006-11-30 Mike Kestner <mkestner@novell.com>
18642 * ComboBox.cs: fix the scrollbar mouse event forwarding in the
18643 grabbed listbox. Fixes #80036 and #80101.
18645 2006-11-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
18647 * Message.cs: Changed ToString() to match MS.
18649 2006-11-30 Jackson Harper <jackson@ximian.com>
18651 * TextBoxBase.cs: You can still change the selected text on a read
18653 * TextControl.cs: Lower magic number for wrap calculations. This
18654 lets text get closer to the right (far) edge.
18656 2006-11-30 Jonathan Pobst <monkey@jpobst.com>
18658 * Control.cs: Tweak 2.0 layout properties.
18659 * Form.cs: Switch ToolStripMenuTracker hooks to ToolStripManager.
18660 * TextRenderer.cs: Add a new overload.
18661 * ToolStrip*: Huge amount of changes and new features.
18663 2006-11-30 Mike Kestner <mkestner@novell.com>
18665 * ComboBox.cs: fixes for LargeChange and Maximum to get the
18666 scroll range correct. Fixes #79994.
18668 2006-11-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
18670 * MdiWindowManager.cs: Update main form's text when
18671 a form is closed. (fixes #80038)
18673 2006-11-30 Everaldo Canuto <everaldo@simios.org>
18676 - Fix an regression in ButtonSize.
18677 - Get ImeMode default value change to "Disable".
18678 - Get ShowTooltips default value change to true, default value is
18679 "false" but after make a test in .NET we get "true" result as default.
18681 2006-11-29 Jonathan Pobst <monkey@jpobst.com>
18683 * ToolStripDropDown.cs: Fix for SupportsTransparency change.
18685 2006-11-29 Chris Toshok <toshok@ximian.com>
18687 * XplatUIWin32.cs (GetWindowTransparency): check return value of
18688 GetLayeredWindowAttributes. if it's 0, return 1.0, as
18689 SetWindowTransparency hasn't been called.
18691 2006-11-29 Chris Toshok <toshok@ximian.com>
18693 * Form.cs (set_TransparencyKey): only call SetWindowTransparency
18695 (set_AllowTransparency): reorder things a little so that the
18696 WS_EX_LAYERED style is removed properly.
18698 2006-11-29 Chris Toshok <toshok@ximian.com>
18700 [ totally cosmetic eye-candy feature, fixes bug #80089 ]
18702 * Form.cs: only call the XplatUI transparency method (get/set) if
18703 SupportsTransparency says it's supported. Otherwise fallback to
18704 doing nothing (in the set case) or returning the instance field we
18705 cache (in the get case).
18707 * XplatUIStructs.cs: add TransparencySupport flag enum.
18709 * XplatUIDriver.cs: add abstract GetWindowTransparency, and track
18710 change to SupportsTransparency.
18712 * XplatUIOSX.cs: stub out GetWindowTransparency, and return
18713 TransparencySupport.None from SupportsTransparency.
18715 * XplatUIX11.cs: Stub out GetWindowTransparency, and return
18716 TransparencySupport.Set from SupportsTransparency.
18718 * XplatUIWin32.cs: implement GetWindowTransparency calling
18719 GetLayeredWindowAttributes, and implement SupportsTransparency by
18720 checking whether or not both
18721 GetWindowTransparency/SetWindowTransparency are available
18722 entrypoints. We need to do this since SetWindowTransparency is
18723 available as of win2k, but GetWindowTransparency requires winxp.
18726 * XplatUI.cs: Add GetWindowTransparency, and change
18727 SupportsTransparency to allow for either/both Get/Set.
18729 2006-11-29 Chris Toshok <toshok@ximian.com>
18731 * DataGrid.cs: keep from going into an infinite loop redrawing a
18732 datagrid that has no datasource. Fixes bug #80033.
18734 2006-11-29 Chris Toshok <toshok@ximian.com>
18736 * MenuItem.cs: fix the NRE when we assign text (and therefore call
18737 Invalidate) before the mainmenu has been assigned to a control.
18739 2006-11-29 Chris Toshok <toshok@ximian.com>
18741 * DataGrid.cs: detect when we should be double the double click
18742 row/column autosize stuff, although that codepath has yet to be
18743 written. part of the work for bug #79891.
18745 2006-11-29 Chris Toshok <toshok@ximian.com>
18747 * Binding.cs (SetControl): fix unit test.
18749 2006-11-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
18751 * PageSetupDialog.cs: Validate the margins and set them in
18753 * NumericTextBox.cs: New class to mimic the behavior of the
18754 textboxes used in the printing dialogs.
18756 2006-11-29 Andreia Gaita <avidigal@novell.com>
18758 * Form.cs: Revert previous change (remove call UpdateBounds
18759 from form constructor), because it messes with the handle creation
18760 order, and that one needs lots and lots of love.
18761 * PrintPreviewDialog.cs: Revert change to CreateHandle (add check
18762 for valid printer and throw InvalidPrinterException if document
18763 is set but printer not valid), adding a MonoTODO. Once
18764 handle creation is done properly, we can put this back in.
18766 2006-11-28 Everaldo Canuto <everaldo@simios.org>
18768 * MenuItem.cs: Create a invalidate method for menu item, to be
18769 calling from set text, it make text changes to imadiate update
18770 on screen. Fixes #80013.
18772 2006-11-28 Everaldo Canuto <everaldo@simios.org>
18774 * ToolBar.cs: Fixes and simplify toolbar button layout, it
18775 fixes bug #80070 and some other problem on toolbar buttons
18778 2006-11-28 Everaldo Canuto <everaldo@simios.org>
18780 * ThemeWin32Classic.cs: Paint toolbar toggle button background
18781 with dotted brush. Fixes #79564
18783 2006-11-28 Andreia Gaita <avidigal@novell.com>
18785 * Form.cs: Removed call to UpdateBounds on Form
18786 constructor, it was causing a call to CreateHandle
18787 before it was supposed to.
18788 * PrintControllerWithStatusDialog: Applied patch
18789 by Chris Toshok to hide controller when there are
18790 no printers available.
18791 PrintDialog.cs: initialize printer settings to
18792 null - correct DefaultValues test #5
18793 * PrintPreviewControl.cs: Move PrintController
18794 initialization to GeneratePreview
18795 * PrintPreviewDialog.cs:
18796 - Remove Preview generation from Document_set(). It is
18798 - Throw InvalidPrinterException on CreateHandle if
18799 a Document is set but there are no printers or
18800 printer is not valid.
18801 * ThemeWin32Classic: don't paint PrintPreviewControl
18802 if there is nothing to paint
18804 2006-11-28 Miguel de Icaza <miguel@novell.com>
18806 * Form.cs: Add another popular method.
18808 * TabPage.cs: ditto.
18810 2006-11-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
18812 * MenuItem.cs: Fixed a warning.
18813 * InternalWindowManager: Fixed a warning.
18815 2006-11-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
18818 - When cloning a menu also clone MdiList and clone the
18819 window menu items properly (as the forms and menuitems
18820 are kept in an internal hashtable, these need updating
18822 - Rewrote the window menu code, menu items are added in the
18823 order the forms were added to their parent, and they are
18824 updated every time the window menu is shown (before the
18825 list was only generated once, in the current order of the
18826 forms, and would never be updated). A checkmark is shown
18827 next to the item corresponding to the active mdi child.
18829 2006-11-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
18831 * XplatUIStructs.cs:
18832 - Added WM_NCMOUSEHOVER and WM_NCMOUSELEAVE.
18835 - Added TME_NONCLIENT to TMEFlags.
18836 - Handles WM_NCMOUSEMOVE in GetMessage to
18837 generate WM_NCMOUSEHOVER and WM_NCMOUSELEAVE messages.
18839 * MdiWindowManager:
18840 - Now merges mdi child menu to parent menu when maximized.
18841 - Recalculate NC areas of both mdi child and mdi parent.
18843 on window state and size changes.Fixes #79844 (3).
18844 - Handle WM_NCCALCSIZE to properly calculate borders.
18847 - Add/remove to the mdi containers list of mdi children
18848 in the order they are added.
18849 - Pass on WM_NCLBUTTONUP, WM_NCMOUSEMOVE and WM_NCMOUSELEAVE
18850 to the maximized mdi child.
18852 * InternalWindowManager.cs:
18853 - Only execute a click on the control buttons on the mouse up,
18854 not on the mouse down. Show the state of the button
18855 (was only showing Normal state, never Pressed state). The
18856 pressed button now follows the mouse (if you click the Close
18857 button and move the mouse over the Maximize button, the
18858 Maximize button will be shown as pressed). Since Win32 does
18859 not generate WM_NCLBUTTONUP if you release the button outside
18860 of the nc area, we need to handle WM_NCMOUSELEAVE and treat
18863 * ThemeWin32Classic.cs:
18864 - Draw a missing border around mdi child forms. Fixes #79844 (2).
18867 - Added a list of forms which contains the order the forms are
18868 added to the mdi parent.
18869 - Handle WM_NCPAINT to properly draw a 3D border. Fixes #79844 (2).
18870 - Handle WM_NCCALCSIZE to properly calculate the 3D border.
18871 - If the active form changes set the scrollbars to the top
18872 of the Z order, otherwise the form could hide them.
18873 - Scrollbars are now sized according to ClientSize, not
18874 to Size, and they take into account the other scrollbar
18875 to determine maximum.
18877 2006-11-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
18880 * XplatUIDriver.cs:
18884 - Added RequestAdditionalWM_NCMessages for windows to
18885 opt in for WM_NCMOUSELEAVE and WM_NCMOUSEHOVER.
18886 Currently only implemented in XplatUIWin32.
18888 2006-11-27 Chris Toshok <toshok@ximian.com>
18890 * Hwnd.cs: only add the hwnd to the windows hash in
18891 set_WholeWindow and set_ClientWindow if whole_window/client_window
18892 are not IntPtr.Zero. also, remove the unused SetObjectWindow.
18894 2006-11-27 Mike Kestner <mkestner@novell.com>
18896 * ComboBox.cs: remove redundant OnDropDown call. It is called
18897 from the ComboListBox.ShowWindow code. Fixes #79969.
18899 2006-11-27 Chris Toshok <toshok@ximian.com>
18901 * Hwnd.cs: remove the setters for ExposePending and
18902 NCExposePending - noone uses them.
18904 2006-11-27 Jackson Harper <jackson@ximian.com>
18906 * TextControl.cs: new param for ReplaceSelection which determines
18907 whether we select the new selection, or set the cursor to the end
18908 of the new selection.
18909 * TextBoxBase.cs: Use new param for ReplaceSelection. When
18910 pasting, select the new text.
18911 * RichTextBox.cs: Use new param for ReplaceSelection.
18913 2006-11-27 Jackson Harper <jackson@ximian.com>
18915 * TextBoxBase.cs: Set the selection to the caret after the caret
18916 is moved, otherwise they get out of sync.
18918 2006-11-26 Everaldo Canuto <everaldo@simios.org>
18920 * ToolBar.cs: Fixe size of ToolBar when AutoSize is false,
18923 2006-11-26 Everaldo Canuto <everaldo@simios.org>
18925 * ThemeWin32Classic.cs:
18926 - Fix toolbar drop down arrow position.
18927 - Fix drop down appearance when ToolBar.Appearance is normal,
18930 2006-11-26 Gert Driesen <drieseng@users.sourceforge.net>
18932 * ProgressBar.cs: GetStyle fixes for 2.0 profile.
18933 * Control.cs: Same.
18934 * UpDownBase.cs: Same.
18935 * ButtonBase.cs: Same.
18936 * ScrollBar.cs: Same.
18937 * TrackBar.cs: Same.
18938 * PictureBox.cs: Same.
18939 * UserControl.cs: Same.
18941 * ListControl.cs: Same.
18942 * TextBoxBase.cs: Same.
18943 * ListView.cs: Same.
18944 * RichTextBox.cs: Same.
18945 * TreeView.cs: Same.
18947 2006-11-25 Jordi Mas i Hernandez <jordimash@gmail.com>
18950 - Text label for where
18951 - Text label comment was not shown
18953 2006-11-23 Everaldo Canuto <everaldo@simios.org>
18955 * ThemeWin32Classic.cs: Fix toolbar drop down arrow size.
18957 2006-11-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
18959 * InternalWindowManager.cs:
18960 - Handle WM_PARENTNOTIFY to activate the form
18961 if any child control is clicked.
18962 - The form is only sizable if not minimized.
18964 * MdiWindowManager.cs:
18965 - Save the IconicBounds if the form is moved.
18966 - Rework SetWindowState, now the window bounds
18967 are stored only if the old window state is Normal.
18970 - In SetWindowStates store the old window state if
18971 the window is maximized and restore window state if
18972 the window looses focus.
18973 - Don't handle any scrollbar value changes if
18974 initializing the scroll bars. Fixes #79771.
18975 - Reworked ArrangeIconicWindows. Current algorithm
18976 tests bounds agains all other minimized windows, if
18977 any intersections create new bounds (going left to
18978 right, bottom to top) and then test again. When
18979 successful the bounds are saved and never computed
18980 again. Fixes #79774.
18982 2006-11-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
18984 * InternalWindowManager.cs: Added HandleTitleBarUp.
18986 2006-11-23 Gert Driesen <drieseng@users.sourceforge.net>
18988 * NumericUpDown.cs: In .NET 1.1, user entered text is still
18989 hexadecimal in ParseUserEdit.
18992 2006-11-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
18994 * MdiWindowManager.cs:
18995 - Handle a click on the form's icon to show the
18996 system menu (when maximized). Fixes #79775.
18997 - Change the existing click handler for the form's
18998 icon when not maximized to show on MouseUp.
19001 * Form.cs: In OnResize only layout the mdi child's
19002 parent if it actually has a parent. Might not if
19003 the window is closing.
19006 2006-11-23 Gert Driesen <drieseng@users.sourceforge.net>
19008 * MdiClient.cs: Ignore active MDI client for text of parent, if
19009 child has no text set.
19011 2006-11-23 Gert Driesen <drieseng@users.sourceforge.net>
19013 * ToolBar.cs: Fixed ToString to match MS.
19015 2006-11-22 Andreia Gaita <avidigal@novell.com>
19018 - Fix DecimalPlaces, Hexadecimal and ThousandsSeparator to
19019 update inner values on set. Fixes #79966.
19020 - Override OnLostFocus to update value on NET 2. Fixes #79950.
19021 - Fix hexadecimal parsing.
19023 * UpDownBase: Override OnGotFocus and OnLostFocus to notify
19024 parent. Fixes #79957
19026 2006-11-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
19028 * Control.cs: After calling SetWindowsPos in SetBoundsCore
19029 the actual size has to be queried, since if height /
19030 width is negative Win32 changes it to 0.
19031 Fixes #79999 on Windows.
19033 * XplatUIX11.cs: Set height / width to 0 if negative
19034 in SetWindowPos. Fixes #79999 on Linux.
19036 2006-11-22 Everaldo Canuto <everaldo@simios.org>
19038 * ThemeWin32Classic.cs: Fix text redenring when button is
19041 2006-11-22 Everaldo Canuto <everaldo@simios.org>
19043 * MenuAPI.cs: Fixes behavior when menu is opened by kerboard
19044 and later navigate by mouse. Fixes #79528.
19046 2006-11-21 Everaldo Canuto <everaldo@simios.org>
19048 * ToolBar.cs: Set default value for TabStop to false in
19049 constructor, it fixes remaining behavior of bug #79863.
19051 2006-11-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
19053 * MdiWindowManager.cs:
19054 * InternalWindowManager.cs:
19055 - Moved a few methods specific to Mdi from
19056 InternalWindowManager to MdiWindowManager.
19059 2006-11-21 Chris Toshok <toshok@ximian.com>
19061 * XplatUIOSX.cs: stub out InvalidateNC.
19063 * XplatUIWin32.cs: implement InvalidateNC using the call I found
19064 at http://www.dotnet247.com/247reference/msgs/58/292037.aspx.
19066 * XplatUIX11.cs: rename InvalidateWholeWindow to InvalidateNC.
19068 * XplatUIDriver.cs: add InvalidateNC abstract method.
19070 * XplatUI.cs: add InvalidateNC.
19072 2006-11-21 Everaldo Canuto <everaldo@simios.org>
19074 * ToolBar.cs: Invalidate complete button area when pressed status
19076 * ToolButton.cs: Fix InvalidateBorder for DropDown buttons.
19077 * ThemeWin32Classic.cs: Increase vertical and horizontal position
19078 by 1 when button is pressed.
19080 2006-11-20 Everaldo Canuto <everaldo@simios.org>
19082 * ToolButton.cs: Invalidate middle of DropDown button when
19083 ToolBar theres DropDownArrows.
19084 * ThemeWin32Classic.cs: Change position of DropDown arrow and
19085 fix DropDown drawing operations.
19087 2006-11-20 Chris Toshok <toshok@ximian.com>
19089 * NativeWindow.cs: fix the formatting of functions ('{' on the
19090 following line), and enable the thread exception dialog.
19092 * Application.cs: remove the duplicate exception catching from
19095 2006-11-20 Everaldo Canuto <everaldo@simios.org>
19097 * Toolbar.cs: Triggers button click event when click on icon
19098 of dropdown ToolBarButton. Fixes #79912.
19100 2006-11-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
19103 * ThemeWin32Classic.cs:
19104 - Added a property WindowBorderFont to enable themeing
19105 of mdi child windows' Text.
19107 2006-11-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
19109 * InternalWindowManager.cs:
19112 * MdiWindowManager.cs:
19113 - If mdi child is maximized, set mdi parent's
19114 text to "Parent - [Child]". Fixes #79770.
19115 - If there is any maximized mdi child windows, only the active
19116 window (and any new windows) is maximized, the rest are normal.
19117 - On a WindowState change only save mdi child's window bounds
19118 if the old window state was normal. Fixes #79774.
19119 - The scroll bars are now calculated on hopefully all
19120 necessary events. Fixed #79771 / #79844->6 / #79906.
19121 - MdiClient.SizeScrollBars() now takes into account docked
19122 controls in the parent when calculating available space.
19123 - InternalWindowManager now always repaints the entire title
19124 area. Fixes #79844->1/4/5.
19125 - Added RequestNCRecalc on mdi child windowstate changes.
19128 2006-11-20 Mike Kestner <mkestner@novell.com>
19130 * ComboBox.cs: setup LargeChange on the scrollbar. Invoke FireMouseUp
19131 in the MouseUp handler of the listbox and move the return handling
19132 code to FireMouseUp to avoid scrolling on ups. Fixes #79952.
19134 2006-11-20 Everaldo Canuto <everaldo@simios.org>
19136 * Toolbar.cs: Ignore right mouse clicks in toolbar. Fixes #79855.
19138 2006-11-17 Alexander Olk <alex.olk@googlemail.com>
19140 * MimeIcon.cs: Seems that DllImports that were fine in 1.2 are not
19141 working in 1.2.x anymore. So, updated.
19143 2006-11-19 Gert Driesen <drieseng@users.sourceforge.net>
19145 * NumericUpDown.cs: Use NegativeSign, NumberDecimalSeparator and
19146 NumberGroupSeparator of current culture instead of assuming en-US.
19149 2006-11-17 Mike Kestner <mkestner@novell.com>
19151 * Control.cs: Add the concept of implicit bounds setting so that
19152 dock/undock round trips preserve explicitly set size/locations.
19155 2006-11-17 Alexander Olk <alex.olk@googlemail.com>
19157 * FileDialog.cs: Trim all filters, otherwise DirInfo.GetFiles
19158 can't handle those filters. (Fixes bug #79961)
19160 2006-11-17 Chris Toshok <toshok@ximian.com>
19162 [ fixes the exit/crashes associated with #79835. it's clearly
19163 suboptimal though, we need to figure out a better way to solve
19166 * PrintPreviewControl.cs: deal with the new invalid printer
19169 * PageSetupDialog.cs: if the printer is invalid, pop up a dialog
19170 and return false (so CommonDialog.ShowDialog doesn't actually show
19173 * PrintDialog.cs: enable/disable the Ok button depending on
19174 whether or not the printer is valid.
19176 * CommonDialog.cs (ShowDialog): only actually show the form if
19177 RunDialog returns true.
19179 2006-11-17 Jackson Harper <jackson@ximian.com>
19181 * TextControl.cs: When soft splitting a line, mark it as a soft
19182 split line. Also carry over the current line break to the next
19185 2006-11-17 Chris Toshok <toshok@ximian.com>
19187 * XplatUIX11.cs: when scrolling a window with an invalid area, we
19188 only want to shift the part of the invalid area that overlaps the
19189 area we're scrolling. we also don't want to clear the invalid
19190 area unless the invalid area was entirely contained within the
19193 2006-11-16 Chris Toshok <toshok@ximian.com>
19195 * XplatUIX11.cs: remove the handling of the TimerEvent stuff, and
19196 also make sure to free the memory returned by XGetWindowProperty
19199 * X11Structs.cs: remove the TimerEvent stuff, it's unused.
19201 2006-11-16 Chris Toshok <toshok@ximian.com>
19203 * XplatUI.cs: add a new super secret way to get at the totally
19204 unsupported X11 backend.
19206 2006-11-16 Gert Driesen <drieseng@users.sourceforge.net>
19208 * NumericUpDown.cs: Allow lowercase letters when in hex-mode.
19210 2006-11-16 Jackson Harper <jackson@ximian.com>
19212 * TreeView.cs: Allow more explicit setting of top node position
19213 for scrollbars. Slower algo, but more accurate.
19214 - CollapseAll should maintain the current top node.
19215 * TextBoxBase.cs: When positioning the caret, use the line, pos
19216 method, since the x, y method does not grab the correct tag, and
19217 the caret height never gets set correctly. (Maybe I should just do
19218 away with the caret having its own height, and always use the
19219 carets current tag for height).
19221 2006-11-16 Jonathan Pobst <monkey@jpobst.com
19223 [Fixes 79778, 79923]
19225 * XplatUIWin32.cs: Don't allow a parent to be set to IntPtr.Zero.
19226 Parent to the FosterParent instead.
19228 2006-11-16 Jackson Harper <jackson@ximian.com>
19230 * TreeView.cs: Need to recalc the topnode when we expand or
19231 collapse. The scrolling methods can't handle this on their own,
19232 since they use differences between the last scroll position, and
19233 those difference get completely messed up since we are expanding
19234 nodes. This problem should probably be fixed in the scrolling
19235 methods, so they can figure out exactly where they are, but this
19236 will slow things down a little.
19237 * ThemeWin32Classic.cs: Special case for groupboxes with empty
19238 strings, makes nunit-gui look a lot nicer.
19240 2006-11-16 Chris Toshok <toshok@ximian.com>
19242 * XplatUIX11.cs: nasty, nasty, nasty changes required because of
19243 the broken multithreaded event handling we have in here. File
19244 this entry under "Why we should move to the new X11 backend".
19246 Any thread can make it into UpdateMessageQueue, which gets events
19247 from the X socket - some of which could belong to hwnds being
19248 managed by a different thread. We can also have multiple threads
19249 in UpdateMessageQueue at the same time, with each one reading from
19250 the X socket. This leads to many problems, with the following
19253 We can't use hwnd.Queue.Enqueue anywhere in here and must use
19256 The MotionNotify compression we do can't work across threads
19257 (without locking the entire queue, perhaps) since we call
19258 hwnd.Queue.Peek, so we just punt and don't compress motion events
19259 unless the owning thread is the one which got the X event.
19261 ConfigureNotify is another fun one, since it modifies the hwnd's
19262 bounds and then enqueues the event. We add a lock to Hwnd which
19263 is held when setting configure_pending to true (and enqueuing the
19266 There is a race wrt the wake socket. we need to make sure that
19267 only 1 thread is waiting on that socket, or else a thread could
19268 sleep waiting for data that never comes. It's difficult (but not
19269 impossible) to make happen, because it seems to require something
19270 like the following:
19272 1. Thread 1 polls on wake_receive
19274 2. poll returns saying there's data to be read on
19277 3. Thread 2 polls on wake_receive and immediately returns
19278 saying there's data to be read.
19280 4. Thread 2 reads the wakeup byte from wake_receive
19282 5. Thread 1 attempts to read the wakeup byte from
19285 6. Thread 2 exits (due to a form closing, perhaps).
19287 7. Thread 1 blocks forever.
19291 Fixing the Expose handling isn't done yet, and the races inherent
19292 in that piece of code are responsible for the drawing mistakes you
19293 see when generating expose events in a MT app (like NPlot). This
19294 one is the likely to be the hardest to bandaid, and it doesn't
19295 appear to cause anything but drawing problems. The other issues
19296 caused apps to exit or hang.
19298 * XEventQueue.cs: output some spew when Dequeue/Enqueue/Peek are
19299 called from a different thread than the one that should be calling
19302 * Hwnd.cs: add some locks to be used by the XplatUIX11 code.
19304 2006-11-15 Chris Toshok <toshok@ximian.com>
19306 * Application.cs: null out the context's MainForm when we exit
19307 RunLoop. Fixes a newly checked in unit test as well as the last
19308 ODE from bug #79933.
19310 2006-11-15 Chris Toshok <toshok@ximian.com>
19312 * Form.cs (set_Owner): allow a null value so we can clear the
19314 (Dispose): set all our owned_form's Owner properties to null, and
19315 clear the owned_forms collection.
19316 (WM_CLOSE): clean up this a little bit.. still not right though.
19318 * ApplicationContext.cs: OnMainFormClosed should only call
19319 ExitThreadCore if the main form isn't recreating. Fixes unit
19322 2006-11-15 Jonathan Pobst <monkey@jpobst.com>
19326 * ComboBox.cs: Set the Hwnd.no_activate flag for the ComboListBox.
19328 2006-11-15 Jonathan Pobst <monkey@jpobst.com>
19332 * Hwnd.cs: Add a flag to show a window, but not activate it, to
19333 keep popup window types from stealing focus from the main form
19336 * XPlatUIWin32.cs: Use SW_SHOWNOACTIVATE if above field is true.
19338 * MenuAPI.cs: Set above flag to true.
19340 2006-11-15 Chris Toshok <toshok@ximian.com>
19342 * XplatUIX11.cs: mimic win32 behavior on BUTTONUP events, where
19343 the button being released is not in wParam.
19345 2006-11-15 Jonathan Pobst <monkey@jpobst.com>
19347 * Form.cs: Add the released button to MouseEventArgs.Button
19348 for the OnMouseUp call to the MenuTracker. Fixes menu clicking
19351 2006-11-15 Chris Toshok <toshok@ximian.com>
19353 * XplatUIX11.cs: add (untested) a _NET_WM_NAME implementation of
19354 GetText(). untested because it's unused in our implementation.
19355 Control.Text always caches the text, even if
19356 ControlStyles.CacheText is not set.
19360 2006-11-15 Chris Toshok <toshok@ximian.com>
19364 * Form.cs: in Close() don't do anything after we send the WM_CLOSE
19365 message. no hiding, no disposing.
19367 in the WM_CLOSE handler, hide the form if it's modal.
19369 2006-11-15 Chris Toshok <toshok@ximian.com>
19371 * XplatUIX11.cs: use AddExpose instead of sending a message.
19372 fixes textbox border drawing.
19374 2006-11-15 Chris Toshok <toshok@ximian.com>
19376 * PropertyGridView.cs: keep from crashing on mouse move/down when
19377 the property grid is empty.
19379 2006-11-14 Jackson Harper <jackson@ximian.com>
19381 * TextControl.cs: Make PageUp and PageDown more like the MS
19383 * TextBoxBase.cs: When we set the text property position the
19384 cursor at the beginning of the document.
19386 2006-11-14 Rolf Bjarne Kvinge <RKvinge@novell.com>
19388 * Form.cs: if a mdi child's WindowState has changed
19389 before it's creation, it would display wrong control
19392 2006-11-14 Alexander Olk <alex.olk@googlemail.com>
19394 * TreeView.cs: De-uglify TreeView checkbox checkmarks.
19397 2006-11-14 Rolf Bjarne Kvinge <RKvinge@novell.com>
19399 * XplatUIX11.cs: send a WM_NCPAINT on WM_NCCALCSIZE so that
19400 the window gets to paint its borders even if the window is
19403 * Form.cs: on a WM_NCPAINT invalidate the entire menu,
19404 otherwise the old control buttons would still be painted
19405 if the window gets bigger.
19407 * PaintEventArgs.cs: add an internal method so that the clip
19408 rectangle can be changed.
19410 2006-11-13 Chris Toshok <toshok@ximian.com>
19412 [ fixes bug #79745 ]
19414 * NotifyIcon.cs: lots of cleanup.
19416 * X11Structs.cs: add an enum for XEMBED messages.
19418 * XplatUIX11.cs: reindent one of the giant switch statements, it
19419 was taking up an additional tab stop, and this file is already way
19420 too wide for my laptop's screen.
19422 Also, add handling for the XEmbed EMBEDDED_NOTIFY message. When
19423 we get it, resize the hwnd to the WMNormalHints max_width/height.
19425 2006-11-13 Jackson Harper <jackson@ximian.com>
19427 * TextBoxBase.cs: Compute the value changes for the mouse wheel
19430 2006-11-13 Chris Toshok <toshok@ximian.com>
19432 * XplatUIX11.cs, XplatUIStructs.cs: kind of a gross fix for
19433 #79898. force a reference to the Region to stick around so the
19434 unmanaged object isn't collected (rendering our handle in the MSG
19437 2006-11-13 Chris Toshok <toshok@ximian.com>
19439 * XplatUIX11.cs: fix #79917 for window managers which support
19441 using XStoreName on the raw utf8, and we need to convert to
19442 COMPOUND_TEXT if it's non-latin1.
19444 2006-11-13 Chris Toshok <toshok@ximian.com>
19446 * Form.cs (set_DialogResult): we need to set closing to false if
19447 we're setting our result to None. fixes bug #79908.
19449 2006-11-13 Jackson Harper <jackson@ximian.com>
19451 * TextControl.cs: When formatting text, compute the adjusted tag
19452 lengths correctly, using FindTag for the end tag instead of trying
19453 to figure it out outselves.
19454 * TreeNode.cs: Use ActualItemHeight, which is the actual height of
19455 the item, ItemHeight doesn't work, because trees with large
19456 imagelists use those for their height
19457 * TreeView.cs: ActualItemHeight factors in the image height
19458 - compute left edge of checkboxes correctly
19459 - when expanding/collapsing move the bottom down one pixel, so we
19460 aren't moving part of the node
19462 2006-11-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
19464 * XplatUIX11.cs: The PaintEventArgs is also added to the drawing
19465 stack in PaintEventStart so that it won't get disposed by the gc
19466 before reaching PaintEventEnd.
19468 2006-11-13 Jackson Harper <jackson@ximian.com>
19470 * TextBoxBase.cs: Don't select the word if we are on a line with
19472 - We don't need to position the caret on mouse up, since the mouse
19473 move handler should be doing this
19474 - When double clicking a blank line, the caret is advanced to the
19477 2006-11-13 Gert Driesen <drieseng@users.sourceforge.net>
19479 * TreeNodeCollection.cs: Avoid duplicating indexer code.
19481 2006-11-12 Gert Driesen <drieseng@users.sourceforge.net>
19483 * ColorDialog.cs: Reset size of dialog between calls to ShowDialog.
19484 Fixes part of bug #79910.
19486 2006-11-11 Alexander Olk <alex.olk@googlemail.com>
19488 * ColorDialog.cs: Fix a NRE when adding a color to custom colors
19489 (bug #79903). Some minor string updates to match ms.
19491 2006-11-10 Alexander Olk <alex.olk@googlemail.com>
19493 * FileDialog.cs: Don't add an extension if the filename
19494 already ends with that extension.
19496 2006-11-10 Jackson Harper <jackson@ximian.com>
19498 * TreeView.cs: Use the currently highlighted node for the
19499 BeforeSelect event.
19500 * TextBoxBase.cs: There is no need to expand selection on
19502 - CanUndo means 'is there any undo operations', not 'is undo
19503 allowed on this textcontrol. Fixed ClearUndo unit test.
19505 2006-11-10 Andreia Gaita <shana.ufie@gmail.com>
19507 * Button.cs: only perform click when button is Selectable (so as
19508 not to activate default buttons when they're disabled)
19510 * Control.cs: Rewrite of the SelectNextControl and related
19511 methods. HandleClick now selects next control if the current one
19514 * Form.cs: OnActivated selects next active control only if Load
19515 has already occurred. If Load hasn't run, there's no point in
19516 selecting here, Load might change the state of controls.
19518 * FocusTest.cs: Tests marked as working again for these fixes
19520 2006-11-10 Chris Toshok <toshok@ximian.com>
19522 * XplatUIX11.cs: a couple of fixes.
19524 - use XInternAtoms with almost all the atoms we need to register,
19525 instead of many, many calls to XInternAtom. should help a bit on
19526 startup time, at the expense of making the code look a little
19529 - fall back to setting TransientFor on TOOLWINDOW's if their hwnd
19530 isn't reparented (which seems to be a clue that we're running fon
19531 compiz) and they have an Owner form. This fixes the tool windows
19532 in paint.net when running under compiz.
19534 - when setting the opacity of a window, support both the case
19535 where the window has been reparented and also when it hasn't been.
19536 Since compiz/beryl doesn't seem to reparent windows, and these are
19537 the only window managers which support translucency, I'm not sure
19538 why we need the hwnd.reparented case at all.. but leave it in.
19539 now we get translucent windows in paint.net under compiz/beryl.
19541 2006-11-10 Alexander Olk <alex.olk@googlemail.com>
19543 * FileDialog.cs: Always return the value for FilterIndex that
19544 was set. Internally convert it to values that make sense.
19546 2006-11-10 Everaldo Canuto <everaldo@simios.org>
19548 * ThemeWin32Classic.cs: Fix drowp down arrow borders.
19550 2006-11-10 Everaldo Canuto <everaldo@simios.org>
19552 * Toolbar.cs: Change default value of DropDownArrows to true, the
19553 signature still using false to make it compatible with MS but the
19554 initial value is true. Fixes #79855.
19556 2006-11-10 Alexander Olk <alex.olk@googlemail.com>
19558 * MimeIcon.cs: Don't throw an exception on windows. Mime stuff is
19559 only available on Linux.
19561 2006-11-09 Everaldo Canuto <everaldo@simios.org>
19563 * Toolbar.cs, ToolBarButton.cs: Fix wrong separator size and
19564 reduce number of calls to redraw method during toolbar creation.
19566 2006-11-09 Mike Kestner <mkestner@novell.com>
19568 * ListView.cs : raise SelectedIndexChanged when an item is selected
19569 programmatically via the Item.Selected property. Gert's nice
19570 ListViewSelectedIndexChanged test fixture now runs clean.
19572 2006-11-09 Mike Kestner <mkestner@novell.com>
19574 * ListView.cs : raise SelectedIndexChanged when a selected item is
19575 removed from the item collection using Remove or RemoveAt.
19577 2006-11-09 Mike Kestner <mkestner@novell.com>
19579 * ListView.cs : raise SelectedIndexChanged once per selected item
19580 for compat with MS. Fixes #79849+.
19582 2006-11-09 Chris Toshok <toshok@ximian.com>
19584 * TabControl.cs: initialize row_count to 0, and set it to 1 when
19585 we need to (if we have any tab pages). Fixes unit test.
19587 2006-11-09 Chris Toshok <toshok@ximian.com>
19589 * Label.cs (CalcPreferredWidth): if Text == "", our preferred
19590 width is 0, not 3. Fixes a unit test.
19592 2006-11-09 Mike Kestner <mkestner@novell.com>
19594 * ListView.cs : use Implicit scrollbars so that focus isn't
19595 stolen from the listview when they are clicked. Fixes #79850.
19597 2006-11-09 Chris Toshok <toshok@ximian.com>
19599 * PropertyGridView.cs (OnPaint): only call DrawGridItems if we
19600 have a root item. Fixes #79879.
19602 2006-11-09 Alexander Olk <alex.olk@googlemail.com>
19606 - An ArgumentException is now thrown if a wrong filter
19607 is applied (matches ms). The previous filter doesn't change
19608 anymore if an exception is thrown.
19609 - Changing the FileName property also affects FileNames
19610 * ColorDialog.cs: The length of the CustomColors array is always
19611 16. It doesn't matter if we use a smaller array or null to update
19612 or change the custom colors property.
19613 * FolderBrowserDialog.cs: Throw an InvalidEnumArgumentException if
19614 for RootFolder if we get a undefined value.
19616 2006-11-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
19618 * StatusBarPanel.cs:
19619 - Width is set to MinWidth if Width is smaller than
19620 MinWidth. Fixes #79842.
19621 - MinWidth now always overrides Width (MSDN says MinWidth
19622 is set to Width when AutoSize = None, but they do not
19624 - Style has now the the correct default value.
19626 2006-11-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
19629 - The control is completely invalidated on
19630 Got/LostFocus to draw the focus rectangle correctly.
19631 - When AutoSize then height is always 45 (width for
19632 vertical controls).
19634 * ThemeWin32Classic.cs: The TrackBar thumb is now centered
19635 on the mouse when moved and it doesn't move when grabbed
19636 until the mouse moves as well. Also fixed some wrong
19637 calculations when clicking on the thumb (control thought
19638 click was outside of thumb and didn't grab it).
19639 Fixes some of the issues in #79718.
19641 2006-11-08 Everaldo Canuto <everaldo@simios.org>
19643 * Toolbar.cs: Prevent disabled button to highlight. Fixes #79868.
19645 2006-11-08 Chris Toshok <toshok@ximian.com>
19647 * PropertyGridView.cs: only call ToggleValue if the item is not
19650 2006-11-08 Jackson Harper <jackson@ximian.com>
19652 * TextBoxBase.cs: The RichTextBox and textbox have very different
19653 word selection methods. Implement the textbox's simple word
19654 selection here, and let the RichTextBox override and provide it's
19656 - Don't do extra selection on mouseup
19657 * RichTextBox.cs: Use the documents word selection algorithm, I
19658 think ideally, this function will be pulled into the
19659 RichTextBox.cs code someday.
19661 2006-11-08 Chris Toshok <toshok@ximian.com>
19663 * RootGridEntry.cs: new class to represent GridItemType.Root.
19665 * CategoryGridEntry.cs: reformat, and add boilerplate.
19667 * GridEntry.cs: remove the UIParent stuff - turns out .Parent
19668 returns the UI parent anyway, and we need special handling to
19669 implement the GetTarget method in the face of it. Also, implement
19672 * PropertyGrid.cs, PropertyGridView.cs: a number of fixes. create
19673 a root grid item, and use that instead of PropertyGrid.grid_items.
19674 Also, make use of TypeConverters (and add limitted support for
19675 ICustomTypeDescriptors) when initially populating the grid.
19676 Arrays now show up more or less properly.
19678 2006-11-08 Chris Toshok <toshok@ximian.com>
19680 * Application.cs: set the modal dialog to non modal after we close
19681 it. Fixes bug #79866.
19683 2006-11-08 Jackson Harper <jackson@ximian.com>
19685 * TextControl.cs: When combining lines carry over the line end
19686 style from the end line.
19687 - Invalidate the selected area when setting it, if it is visible.
19688 * TextBoxBase.cs: Only rich text box can do full line selects.
19689 - Make sure to set the cursor position when there is a click,
19690 otherwise two clicks in separate areas could cause a large chunk
19693 2006-11-07 Everaldo Canuto <everaldo@simios.org>
19695 * Toolbar.cs: Release flat button borders when Toolbar lost focus.
19698 2006-11-07 Everaldo Canuto <everaldo@simios.org>
19700 * Toolbar.cs: Prevent toolbar to open more than one tooltip at same
19701 time. Remove tooltips when ToolButton click events. Fixes #79856.
19703 2006-11-07 Everaldo Canuto <everaldo@simios.org>
19705 * MenuAPI.cs: Ignore right click for menu actions and fixes
19706 menu border when clicked. Fixes #79846.
19708 2006-11-07 Everaldo Canuto <everaldo@simios.org>
19710 * XplatUIX11.cs, XplatUIX11.cs: Fix MouseRelease to only release
19711 MouseState after create wParam for message, this fixes mouse button
19712 equal none in mouse up events.
19714 2006-11-07 Andreia Gaita <shana.ufie@gmail.com>
19716 * Control.cs : Focus() now calls Select to set the Container's
19717 Active Control and to give it focus. To avoid infinite recursion
19718 (because ActiveControl also calls Focus at one point), a check
19719 is made in Focus with the help of a new internal variable
19722 2006-11-07 Mike Kestner <mkestner@novell.com>
19724 * ListView.cs : raise OnSelectedIndexChanged in CreateHandle
19725 if there's a selection. Fixes #79849.
19727 2006-11-07 Gert Driesen <drieseng@users.sourceforge.net>
19729 * PropertyGrid.cs: Avoid fixed height of help description label.
19730 Fixes part of bug #79829.
19732 2006-11-07 Chris Toshok <toshok@ximian.com>
19734 * XplatUIX11.cs: fix #79790 again, by using the
19735 _NET_WM_STATE_SKIP_TASKBAR atom to implement Form.ShowInTaskbar.
19737 2006-11-07 Everaldo Canuto <everaldo@simios.org>
19739 * ToolBar.cs: Fix left click checking.
19741 2006-11-07 Chris Toshok <toshok@ximian.com>
19743 * ProgressBar.cs: fix a typo in ToString(). fixes a unit test.
19745 2006-11-07 Chris Toshok <toshok@ximian.com>
19747 * RelatedPropertyManager.cs: set property_name in our ctor. fixes
19748 PropertyManager unit tests.
19750 * PropertyManager.cs: make property_name internal.
19752 2006-11-07 Chris Toshok <toshok@ximian.com>
19754 * ButtonBase.cs: initialize base.ime_mode to ImeMode.Disable to
19755 pass a unit test. Also, don't set image_index to anything in
19756 response to setting the ImageList property.
19758 2006-11-07 Everaldo Canuto <everaldo@simios.org>
19760 * ToolBar.cs: Ignore click events when mouse button is not a
19761 left button, only accepts other button for dropdown menus.
19764 2006-11-07 Chris Toshok <toshok@ximian.com>
19766 * DataGrid.cs: make the back and parent row buttons a little less
19769 2006-11-07 Jackson Harper <jackson@ximian.com>
19771 * TextBoxBase.cs: When converting to Text don't put line breaks in
19772 for soft line breaks.
19773 * TextControl.cs: There is an initial "fake" line in the document,
19774 this is now a soft break line, so that an extra line feed doesn't
19775 get added to the end of documents.
19777 2006-11-07 Chris Toshok <toshok@ximian.com>
19781 * CurrencyManager.cs: if the list is readonly, don't bother
19782 checking if IBindingList.AllowNew is true.
19784 * ThemeWin32Classic.cs (DataGridPaintParentRow): make this work
19785 for non-DataRowView datasources.. or rather, make it not crash.
19786 (DataGridPaintRelationRow): make sure we limit the row painting to
19787 the area not covered by the row header, and make our cell width at
19788 least large enough to cover the relation area. This allows grids
19789 that have relations but no rows to render correctly.
19790 (DataGridPaintRowContents): same type of changes here.
19791 (SetDataSource): move back to always calling
19792 CalcAreasAndInvalidate. this fixes a crash/drawing problem when
19793 navigating back through relations.
19794 (HitTest): handle the case where we have no cells but have
19795 relations. Right now we generate a hit in cell 0 of whatever the
19796 row is, not sure if this is strictly correct, but it works for our
19799 * DataGrid.cs (EndEdit, CancelEdit): if we have no columns, don't
19800 bother doing anything.
19802 2006-11-07 Jonathan Pobst <monkey@jpobst.com>
19804 * StatusStrip.cs, ToolStripStatusLabel.cs: By request, an
19805 early version of StatusStrip. Not responsible for eaten
19806 application or firstborn children.
19808 2006-11-06 Chris Toshok <toshok@ximian.com>
19810 * TabControl.cs: in OnGotFocusInternal/OnLostFocusInternal don't
19811 call GetTabRect with a -1 index. Fixes #79847.
19813 2006-11-06 Jackson Harper <jackson@ximian.com>
19815 * TreeNodeCollection.cs: Update scrollbars after clearing.
19817 2006-11-06 Chris Toshok <toshok@ximian.com>
19819 * NumericUpDown.cs: fix the ToString method for some unit test
19822 2006-11-06 Chris Toshok <toshok@ximian.com>
19825 - set the initial SelectedGridItem if we can.
19827 - Exclude non-mergable properties only if we're merging > 1
19828 object. Merging 1 object isn't really merging, obviously.
19830 - Handle PropertySort.NoSort just like Alphabetical, which is
19831 wrong of course, but at least gets things on the screen.
19833 * PropertyGridView.cs:
19834 - Add method "FindFirstItem" which finds the first property grid
19835 item, so we can select it by default.
19837 - make use of GridEntry.CanResetValue.
19839 - Don't call RedrawBelowItemOnExpansion here anymore, the
19840 individual GridEntry's will do that.
19842 - Remove the ITypeDescriptorContextImpl internal class.
19845 - this class needs to implement ITypeDescriptorContext, as it's
19846 what MS's PropertyDescriptorGridEntry does, which means we can
19847 remove the ITypeDescriptorContextImpl internal class from
19848 PropertyGrid.cs. This fixes the crashing portion of bug #79829.
19850 - keep a reference to our PropertyGridView, and move the call to
19851 RedrawBelowItemOnExpansion here from PGV. This means
19852 programmaticly setting Expanded actually does something visible.
19854 - add a CanResetValue() function which takes into account our
19855 possibly multiple "selected_objects" in the merged case. Shifting
19856 PropertyGridView to use this method fixes another unreported
19857 crasher found running the test for #79829.
19859 - when Top or Bounds is updated, make sure the PropertyGridTextBox
19860 is updated to reflect this.
19862 * CategoryGridEntry.cs: the ctor takes the PGV now.
19864 2006-11-06 Jackson Harper <jackson@ximian.com>
19866 * TextControl.cs: These are 1 based.
19867 * TextBoxBase.cs: When setting the selected text, don't change the
19868 selected text tags, this is done by ReplaceText, just position the
19869 cursor at the end of the new text.
19871 2006-11-06 Alexander Olk <alex.olk@googlemail.com>
19873 * ListView.cs: Allow label edit only when, when LabelEdit is
19876 2006-11-06 Jackson Harper <jackson@ximian.com>
19878 * TextControl.cs: If a suitable wrapping position isn't found,
19879 just wrap right in the middle of a word.
19881 2006-11-06 Alexander Olk <alex.olk@googlemail.com>
19883 * ListView.cs, ListViewItem.cs: Implement LabelEdit. Fixes
19886 2006-11-06 Jackson Harper <jackson@ximian.com>
19888 * TreeView.cs: Can't use the VisibleCount property when setting
19889 scrollbar heights, because this doesn't take into account whether
19890 or not the horz scrollbar just came visible.
19892 2006-11-05 Everaldo Canuto <everaldo@simios.org>
19894 * MenuAPI.cs: Deactivate menu on mouse up when menus it is already
19895 activated. Fixes #79369, #79832.
19897 2006-11-05 Alexander Olk <alex.olk@googlemail.com>
19899 * FileDialog.cs: *sigh* Because of recent runtime changes (r67043) I
19900 had to remove support for links that point to a directory. FileInfo
19901 returns no usefull information (means, the directory they point to)
19902 for such links. Replaced some empty string ("") with String.Empty.
19904 2006-11-04 Gert Driesen <drieseng@users.sourceforge.net>
19906 * TreeNodeCollection.cs: To match MS, in 1.0 profile throw
19907 NullReferenceException when attempting to remove node that is not in
19908 collection. Throw NullReferenceException when null is passed to
19909 Remove. Allow first element of the collection to be removed. Fixes
19910 bug #79831. In GetEnumerator ().Current return null if positioned
19911 before the first element of the collection. In GetEnumerator ().Reset,
19912 position before first element of the collection.
19914 2006-11-04 Gert Driesen <drieseng@users.sourceforge.net>
19916 * PropertyGrid.cs: To match MS, remove default title and description
19917 for panel. Fixed tooltips for Categorized and Alphabetic toolbar
19920 2006-11-04 Chris Toshok <toshok@ximian.com>
19922 * Theme.cs: add a Clamp method, just for kicks.
19924 * ThemeWin32Classic.cs: clamp all color components to [0..255].
19926 2006-11-04 Chris Toshok <toshok@ximian.com>
19928 * Form.cs: if the form isn't visible, Close() does nothing.
19930 2006-11-03 Chris Toshok <toshok@ximian.com>
19932 * Form.cs (Close): if the form is modal, don't Dispose of it, only
19934 (WndProc): don't Dispose after handling the WM_CLOSE message.
19936 * Application.cs (RunLoop): toplevels is a list of Forms, so treat
19937 them as such, instead of using casts from Control to Form. Also,
19938 don't Dispose of the modal dialog when we fall out of the loop -
19939 Close() it instead.
19943 2006-11-03 Chris Toshok <toshok@ximian.com>
19945 * Control.cs (Dispose): only go through the dispose thing if we're
19946 @disposing, and we haven't already been disposed. Fixes bug
19949 * Form.cs: no reason to call "base.Dispose()" here instead of
19952 2006-11-03 Mike Kestner <mkestner@novell.com>
19954 * ComboBox.cs : use ToString instead of casts in AddItem for
19955 sorting functionality. Fixes #79812.
19957 2006-11-03 Chris Toshok <toshok@ximian.com>
19959 * Application.cs: pave the way for actually using the thread
19960 exception dialog. it's ifdefed out at the moment.
19962 2006-11-03 Chris Toshok <toshok@ximian.com>
19964 * ThreadExceptionDialog.cs: until we get a better layout, actually
19965 hide the details textbox and label when we shouldn't see them.
19967 2006-11-03 Jackson Harper <jackson@ximian.com>
19969 * TextBoxBase.cs: Don't bail from the scrollbar calcs for non
19970 multiline textboxes anymore. This method also determines the
19971 width/height of a textboxes canvas area.
19972 - Sorta a revert of the last patch. For multiline just position
19973 the controls, then bail. This way the scrollbar width won't be
19976 2006-11-03 Everaldo Canuto <everaldo@simios.org>
19978 * ThemeWin32Classic.cs: Dont paint inner lines of 3D border when
19979 it dont need. Fixes #79537.
19981 2006-11-02 Jackson Harper <jackson@ximian.com>
19983 * X11Dnd.cs: We always allow copy, since XDND implies Copy. Also
19984 send the status after firing the DndOver event.
19986 2006-11-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
19988 * TrackBar.cs: Now orientation only switches height / width if
19989 the control's handle is created (Win32 does it like this). Also
19990 fixed a typo in ToString() for a test to pass, changed the
19991 exception thrown in set_LargeChange and set_SmallChange to
19992 match Win32 behaviour, and added TrackBar tests to the unit
19995 2006-11-02 Chris Toshok <toshok@ximian.com>
19997 * XplatUIX11.cs: the atom we want is _NET_WM_STATE_SKIP_TASKBAR,
19998 not _NET_WM_STATE_NO_TASKBAR.
20000 2006-11-02 Jackson Harper <jackson@ximian.com>
20002 * TextControl.cs: Increment count by one, since in the update view
20005 2006-11-02 Jackson Harper <jackson@ximian.com>
20007 * TextBoxBase.cs: Use client rectangle not bounds for checking if
20008 the mouse is in the client rectangle (duh).
20010 2006-11-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
20012 * TrackBar.cs: Fixed trackbar jumping around when clicking
20013 on it - the trackbar was not detecting correctly at which
20014 side of the thumb the click was done. (fixes #79718)
20016 2006-11-02 Everaldo Canuto <everaldo@simios.org>
20018 * ListBox.cs: scroll visible area when change SelectedIndex to
20019 a non visible area. Fixes #79481.
20021 2006-11-01 Jackson Harper <jackson@ximian.com>
20023 * TextControl.cs: When replacing the selection move the selection
20024 start/end/anchor to the end of the new text.
20026 2006-11-01 Jackson Harper <jackson@ximian.com>
20028 * XplatUIWin32.cs: When setting the parent change the controls
20029 visibility to it's visibility flag, not to it's old parents
20030 visibility (.Visible walks the parent chain).
20032 2006-11-01 Chris Toshok <toshok@ximian.com>
20034 * XplatUIX11.cs: revert the #79790 fix, as the simple.
20035 XSetTransientForHint fix breaks paint .net's tool windows. more
20036 work needed for that one.
20038 2006-11-01 Chris Toshok <toshok@ximian.com>
20040 * ScrollBar.cs: throw ArgumentException instead of Exception in
20041 LargeChange/SmallChange setters. fixes unit tests.
20043 2006-10-31 Andreia Gaita <shana.ufie@gmail.com>
20045 * ContainerControl.cs: reverted rev.67183 (which was itself
20046 a reversion of rev.66853... eh).
20048 * Control.cs: Fixes Reflector hang by changing Focus() call
20049 to what it was before rev.66643 (calling Select() here sets
20050 ActiveControl, which in some situations calls back Focus and
20051 eventually does a stack overflow). Temp fix.
20052 Changes to GetNextControl() to not look for children to select when
20053 parent cannot be selectable (so it looks for siblings instead)
20055 2006-10-31 Mike Kestner <mkestner@novell.com>
20057 * CheckedListBox.cs : off by one error in returned index from
20058 ObjectCollection.Add. Fixes #79758.
20060 2006-10-31 Chris Toshok <toshok@ximian.com>
20062 * UpDownBase.cs: remove the OnGotFocusInternal/OnLostFocusInternal
20063 calls for the textbox/spinner, to keep from recursing to the point
20064 where we crash. Fixes #79760.
20066 2006-10-31 Chris Toshok <toshok@ximian.com>
20068 * ListControl.cs (set_SelectedValue): don't throw exceptions on
20069 null/"" value, just return. matches ms's behavior and fixes some
20072 2006-10-31 Chris Toshok <toshok@ximian.com>
20074 * Control.cs (set_Capture): make a logic a little easier to
20077 * XplatUIX11.cs (CleanupCachedWindows): zero out the Grab window
20078 if it's being destroyed. A necessary fix surely, but a bandaid
20079 also, to fix the stuck capture problem in bug #78413.
20081 2006-10-31 Chris Toshok <toshok@ximian.com>
20083 * XplatUIX11.cs: fix a couple of compiler warnings, and follow the
20084 convention of clearing hwnd.ClientRect when we set the
20085 width/height (so it'll be recalculated by Hwnd).
20087 2006-10-31 Andreia Gaita <shana.ufie@gmail.com>
20089 * ContainerControl.cs: reversed Contains check from
20090 ActiveControl due to hanging problems. This fix
20091 partly regresses #79667 (button does not have
20092 initial focus), so this might be a symptom for
20093 a larger parenting problem (set_ActiveControl
20094 is being called but the child control does
20095 not have the parent set yet?)
20097 2006-10-31 Mike Kestner <mkestner@novell.com>
20099 * MenuAPI.cs : fix keynav when menu is click activated.
20101 2006-10-31 Jonathan Pobst <monkey@jpobst.com>
20103 * ToolStrip*: Version 0.2.
20105 * MenuStrip.cs: Version 0.1.
20107 * Form.cs: Add a 2.0 MenuStrip tracker like the 1.1 Menu one.
20109 2006-10-30 Chris Toshok <toshok@ximian.com>
20111 [ fixes the oversized notify icon issue in bug #79745 ]
20113 * NotifyIcon.cs: scale the icon down to the size we're given by
20114 the XplatUI layer (this would be faster if we did it once instead
20115 of whenever we paint..) Also, remove the WM_NCPAINT handling,
20116 since it's never invoked.
20118 * XplatUIX11.cs: the gnome and kde systrays use icons that are 24
20119 pixels high by default, so let's hardcode our systray icon to that
20120 size. The SYSTEM_TRAY protocol should really have a way for
20121 client apps to query for the correct icon size.. but oh well. A
20122 couple of patches to deal with the screwy client_window ==
20123 whole_window notifyicon stuff (we don't want to PerformNCCalc, for
20124 instance, and also make sure we don't XSelectInput twice).
20126 2006-10-30 Chris Toshok <toshok@ximian.com>
20128 * Control.cs: ugh, the unit test fix (CH11, yesterday) breaks when
20129 recreating forms. Control recreation is the bane of my existence.
20130 Fix it in a way that keeps everyone happy.
20132 2006-10-30 Chris Toshok <toshok@ximian.com>
20134 * XplatUIX11.cs: use StructureNotifyMask on all whole_windows, not
20135 just non-CHILD ones. otherwise sometimes scrollbars end up with
20136 client_windows not being resized to the proper size (ReportBuilder
20137 shows this extremely well).
20139 2006-10-30 Chris Toshok <toshok@ximian.com>
20141 * XplatUIX11.cs (SetWMStyles): reinstate the XSetTransientForHint
20142 for non-WS_EX_APPWINDOW windows. This is what keeps them from
20143 showing up in the gnome taskbar. Fixes bug #79790.
20145 2006-10-30 Chris Toshok <toshok@ximian.com>
20147 * ApplicationContext.cs: guard against a NRE.
20149 * Application.cs: null out the old MainForm for the context, so we
20150 don't try to use it again once it's disposed. Fixes bug #79783.
20152 2006-10-30 Chris Toshok <toshok@ximian.com>
20154 * DataGrid.cs (set_DataSource, set_DataMember): if we have a
20155 BindingContext, set the data source directly, otherwise do the
20156 lazy approach - the actual ListManager will be created when we get
20157 a BindingContext. Fixes bug #79700.
20159 2006-10-30 Jonathan Pobst <monkey@jpobst.com>
20161 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
20162 XplatUIX11.cs: Remove old 2 parameter SetVisible.
20164 * Control.cs: Use the new 3 parameter SetVisible with activate = true.
20166 2006-10-30 Jonathan Pobst <monkey@jpobst.com>
20168 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Add an overload
20169 of SetVisible that allows a window to be shown, but not activated.
20170 This is needed on Windows for MenuStrip, and can probably be used
20171 with MainMenu and ComboBox to fix the focus stealing issues on
20174 * XplatUIOSX.cs, XplatUIX11.cs: Not needed, call existing SetVisible.
20176 2006-10-30 Alexander Olk <alex.olk@googlemail.com>
20178 * PictureBox.cs: Fix the output of the ToString method.
20180 2006-10-29 Chris Toshok <toshok@ximian.com>
20182 * Control.cs (get_TopLevelControl): fix bug #79781.
20184 2006-10-29 Chris Toshok <toshok@ximian.com>
20186 * ListControl.cs (set_DataSource): throw Exception here, not
20187 ArgumentException, to match MS behavior.
20189 2006-10-29 Chris Toshok <toshok@ximian.com>
20191 * Form.cs: remove the try-catch's around calls to GetWindowState.
20192 We can just check the return value.
20194 * XplatUIX11.cs: don't throw exceptions from GetWindowState.
20197 * XplatUI.cs: Add note about additional return value for
20200 2006-10-29 Chris Toshok <toshok@ximian.com>
20202 * Control.cs (CreateHandle): when we create our handle, we also
20203 create the handles of our child controls. Fixes one of the
20204 Control unit tests (CH11).
20206 2006-10-28 Alexander Olk <alex.olk@googlemail.com>
20208 * MimeIcon.cs: If a gnome icon doesn't exist add a default icon.
20210 2006-10-28 Alexander Olk <alex.olk@googlemail.com>
20212 * ThemeClearlooks.cs: A little speedup.
20214 2006-10-27 Chris Toshok <toshok@ximian.com>
20216 * Control.cs: implement Control.FromChildHandle in a way that
20217 matches the docs (and fixes the failed test.)
20219 2006-10-27 Chris Toshok <toshok@ximian.com>
20221 * DataGridTableStyle.cs: reproduce buggy MS behavior (with
20224 * DataGrid.cs: implement ResetForeColor such that the tests
20227 2006-10-27 Chris Toshok <toshok@ximian.com>
20229 * ToolBarButton.cs: setting text/tooltiptext to null results in it
20230 being set to "". Fixes bug #79759.
20232 2006-10-27 Jackson Harper <jackson@ximian.com>
20234 * TextControl.cs: We need to clear the entire selection area when
20235 setting the start, otherwise multiline selections are still
20238 2006-10-26 Chris Toshok <toshok@ximian.com>
20240 * PropertyGridView.cs:
20242 - ifdef all the code specific to the double
20243 buffer case, and provide some alternatives in the non-doublebuffer
20244 code, which makes heavy use of XplatUI.ScrollWindow to move things
20245 around without having to invalidate (and cause flicker). There
20246 are still some drawing problems in the non-doublebuffered case, so
20247 DOUBLEBUFFER is defined by default.
20249 - Fix the way dropdowns are handled. now we explicitly watch for
20250 the events which might cause the dropdown to close, and break out
20251 of the nested event loop there. This gets rid of all Capture
20252 code, at the expense of the Msg special casing. Seems to work,
20253 though, and fixes bug #79743.
20255 2006-10-27 Rolf Bjarne Kvinge <RKvinge@novell.com>
20256 * Control.cs: SetIsRecreating now recreates implicitly added
20257 child controls as well. Finally fixes #79629. The flag passed to
20258 SetIsRecreating has also been removed since it wasn't used.
20260 2006-10-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
20262 * PageSetupDialog.cs: Clean some code, fix some bits,
20263 add some checks, and add a printer sub-dialog.
20265 2006-10-26 Chris Toshok <toshok@ximian.com>
20267 * PropertyGrid.cs: make set_SelectedObject call
20268 set_SelectedObjects, and move the duplicate logic to the
20269 SelectedObjects setter. Also, raise SelectedObjectsChanged.
20271 * PropertyGridView.cs: hide the textbox when we get a
20272 SelectedObjectsChanged event.
20276 2006-10-26 Chris Toshok <toshok@ximian.com>
20278 * PropertyGridView.cs: deal with the type converter not supporting
20279 GetStandardValues() or GetStandardValues() returning null, which
20280 is does in the default case. Fixes #79742.
20282 2006-10-25 Andreia Gaita <shana.ufie@gmail.com>
20284 * CheckedListBox.cs: nunit no longer crashes when selecting
20285 Project/Edit menu option
20287 2006-10-25 Andreia Gaita <shana.ufie@gmail.com>
20289 * MenuAPI.cs: prevent ExecFocusedItem from blowing up if there
20290 is no menu selected. fixes #79739
20292 2006-10-25 Chris Toshok <toshok@ximian.com>
20294 * PropertyGridView.cs: factor out the splitter invalidation code
20295 into the SplitterPercent setter, and for kicks implement the
20296 Ctrl-Left/Ctrl-Right handling that moves the splitter by a small
20297 amount in either direction.
20299 2006-10-25 Chris Toshok <toshok@ximian.com>
20301 * PropertyGridView.cs: do some cleanup of the brush used to draw
20302 text - read only fields should be grayed out. not sure how to do
20303 this with the textbox, though. but the textbox's should also be
20304 readonly now at least. Also, hide/show the textbox when resizing
20307 * CursorConverter.cs: use System.Reflection when getting the
20308 properties of Cursors, as TypeDescriptor.GetProperties isn't
20309 returning static properties.
20311 2006-10-25 Chris Toshok <toshok@ximian.com>
20313 * PropertyGridView.cs: factor out the up/down handling, and reuse
20314 it for page up/down. also add End/Home support.
20316 2006-10-25 Chris Toshok <toshok@ximian.com>
20318 * PropertyGridView.cs:
20320 - ensure the selected grid item is visible in the scrolled area,
20323 - fix Keys.Down handling when you're on the last item in the
20326 2006-10-25 Mike Kestner <mkestner@novell.com>
20328 * MenuAPI.cs : set the ActiveTracker for MainMenu non-popup
20329 clicks too. Fixes #79725.
20331 2006-10-24 Chris Toshok <toshok@ximian.com>
20333 * PropertyGrid.cs: use property.Converter instead of
20334 TypeDescriptor.GetConverter(property.PropertyType), so we catch
20335 TypeConverters declared on the property as well as on the
20336 PropertyType. Fixes bug #79678.
20338 2006-10-24 Alexander Olk <alex.olk@googlemail.com>
20340 * MimeIcon.cs, Mime.cs:
20341 Fallback to the default platform handler if no shared mime info
20342 stuff exists (fixes #79693).
20344 2006-10-20 Andreia Gaita <shana.ufie@gmail.com>
20345 * ContainerControl.cs: Incorrect contains check in ActiveControl
20346 from previous fix (duh).
20348 2006-10-20 Chris Toshok <toshok@ximian.com>
20350 * PropertyGridView.cs: the dropdown should be MIN(number of items
20351 in list, 15). Fixes #79551.
20353 2006-10-20 Andreia Gaita <shana.ufie@gmail.com>
20354 Fixes #79384, #79394, #79652, #79667
20357 - Modal windows are now destroyed in the proper order for windows
20359 * ContainerControl.cs:
20361 - ActiveControl setter has more conditions on when to return:
20362 - if we're reselecting the active control, but it actually
20363 didn't have focus (window hidden or some such), it runs
20364 - if the active control being selected doesn't actually
20365 exist in the container, it returns
20369 - The ShowDialog now gets the current form as the owner when
20370 invoking without parameters, and correctly activates the owner
20375 - MessageBox now catches the Escape key to exit
20377 2006-10-20 Chris Toshok <toshok@ximian.com>
20379 * PropertyGridView.cs: fix a number of issues (bug #78565, and
20380 most of bug #79676):
20382 - you can navigate around the property grid with the arrow keys.
20384 - the dropdown is sized properly when the pg has a vertical
20387 - fix the indentation for subentries, and properly select the
20390 - fix the gray bar's drawing (only draw it to the last element,
20391 not for the height of the control. Also make sure we draw that
20392 last horizontal grid line.
20394 - use the same mechanism the datagrid uses wrt the editing textbox
20395 when scrolling/resizing/etc. Namely, we hide it first, do the
20396 operation, then show it again (if it's still visible).
20398 - aggressively remove a lot of unnecessary refreshes (and also
20399 calls to Invalidate(). call more limited variants, and only redraw
20404 - when we're populating the merged collection, fill in the UI
20405 parent with either the passed in item, or the category item we
20408 - remove the Refresh call from the BorderHelpControl.OnSizeChanged.
20410 * GridItem.cs: drop some fully qualified names.
20412 * GridEntry.cs: add a "UIParent", which is basically the parent
20415 * GridItemCollection.cs: add an IndexOf method.
20417 2006-10-20 Mike Kestner <mkestner@novell.com>
20419 * MainMenu.cs : go back to Draw in OnMenuChanged. Until we get
20420 a working win32 NC invalidation mechanism, we can't invalidate
20421 menus. [Fixes #79705]
20423 2006-10-20 Mike Kestner <mkestner@novell.com>
20425 * ListBox.cs : don't update the VScrollbar if the list is empty,
20426 just hide it. [Fixes #79692]
20428 2006-10-20 Jackson Harper <jackson@ximian.com>
20430 * RichTextBox.cs: Handle some special chars better, and don't skip
20431 the entire group when we encounter a special char that we don't
20434 2006-10-18 Chris Toshok <toshok@ximian.com>
20436 * PropertyGridView.cs: address a number of issues from bug #79676,
20437 mostly of the cosmetic variety.
20439 - The highlight rectangle for indented items not extends all the
20442 - Indented items aren't indented so much.
20444 - the dropdown is properly sized width-wise if the pg has a
20445 vertical scrollbar.
20447 2006-10-18 Chris Toshok <toshok@ximian.com>
20449 * XplatUIX11.cs (SystrayAdd): a rather convoluted change, but the
20450 systray stuff is rather convoluted to begin with.
20452 systray icons are a single window for some reason (that I haven't
20453 figured out yet), and for them, client_window == whole_window.
20454 Given the way the tests are structured elsewhere to determine
20455 which paints are pending (client vs. nc), that situation will
20456 always yield PAINT, not NCPAINT. So, if we have a pending
20457 nc_expose and no pending expose, remove the hwnd from the paint
20458 queue, and also set nc_expose_pending to false, to keep us from
20459 blocking further expose's adding the hwnd to the paint queue.
20461 phew. like i said, a rather convoluted change. Fixes the
20462 notifyicon repaint issues in bug #79645.
20464 2006-10-18 Chris Toshok <toshok@ximian.com>
20466 * Form.cs: when getting the backcolor of the form, don't get
20467 base.BackColor, as this allows parents to influence the background
20468 color. This breaks mdi forms. Instead, if the background_color
20469 is empty, return the default.
20471 2006-10-18 Chris Toshok <toshok@ximian.com>
20473 * XplatUIX11.cs: change some debug ifdefs, and return XGetParent
20474 to being private instead of internal static.
20476 * Control.cs: remove all the stupid ParentWaitingOnRecreation
20477 crap, it wasn't working for more deeply nested controls anyway,
20478 and we already have the is_recreating flag - use that instead.
20479 Before calling DestroyHandle in RecreateHandle, recurse through
20480 the control tree setting it to true. this returns the recreate
20481 code to much of its original simplicity, while now guaranteeing we
20482 actually recreate everything we're supposed to. This change gets
20483 fyireporting actually showing mdi children.
20485 2006-10-17 Chris Toshok <toshok@ximian.com>
20487 * Form.cs: remove some debug spew, and collapse some duplicate
20488 code at the end of SetClientSizeCore.
20491 - add some more debug spew here too wrt Destroy handling.
20492 - don't call hwnd.Dispose in DestroyWindow, it's effectively done
20493 in Control's handling of WM_DESTROY.
20494 - Remove the handling of zombie window DestroyNotifies from the
20495 event loop - we don't need it. Now the only DestroyNotifies we
20496 actually handle are ones generated by X.
20497 - When sending _NET_ACTIVE_WINDOW, the first param should be 1, to
20498 match gtk's (functioning) handling of this. This keep metacity
20499 from leaving droppings in the form of wm borders with no window
20500 contents all over the place.
20503 - add a bunch of debug spew wrt control recreation.
20504 - fix a bug where we weren't tracking Visible properly on
20506 - fixed the WM_PAINT double buffer handling to support re-entrant
20507 calls (yes, i know it's gross, but it's happening to us).
20509 2006-10-17 Rolf Bjarne Kvinge <rolfkvinge@ya.com>
20510 * ThemeWin32Classic.cs: changed drawing of selected days
20511 to make them look better.
20513 2006-10-16 Chris Toshok <toshok@ximian.com>
20515 * Hwnd.cs: replace the user_data/client_dc/non_client_dc with
20516 drawing_stack. Nuke the ClientDC/NonClientDC properties.
20518 * XplatUIX11.cs: move away from using hwnd.client_dc and
20519 hwnd.non_client_dc and on to a stack of dc's (and in window's
20520 case, PAINTSTRUCT's), so we can deal with nested Paint calls
20521 without puking or not disposing of Graphics objects.
20523 * XplatUIOSX.cs: same.
20525 * XplatUIWin32.cs: same.
20527 2006-10-03 Alexander Olk <alex.olk@googlemail.com>
20529 * FileDialog.cs: Don't call on_directory_changed inside
20530 OnSelectedIndexChanged (it changes the SelectedIndex too).
20531 Instead move it to OnSelectionChangeCommitted.
20533 2006-10-13 Chris Toshok <toshok@ximian.com>
20535 * XplatUIX11.cs: more Destroy work. the current code does the
20536 following things, in order:
20538 1. Enumerates all handles of all controls at or below the one
20539 being destroyed, in pre-order. As it is doing this, it marks the
20540 handles as zombie and clears all references to them.
20542 2. calls XDestroyWindow on the window passed in.
20544 3. SendMessage's WM_DESTROY to all he handles in the accumulated
20547 2006-10-13 Chris Toshok <toshok@ximian.com>
20549 * XplatUIX11.cs: set hwnd.zombie to true before calling
20550 SendMessage (WM_DESTROY). this keeps us from marking the new
20551 window a zombie, and also keeps us from calling sendmessage at
20554 2006-10-13 Jackson Harper <jackson@ximian.com>
20556 * TextControl.cs: Do not show the caret and selection at the same
20557 time. Reduces ugliness by 35%.
20559 2006-10-13 Chris Toshok <toshok@ximian.com>
20561 * XplatUIX11.cs (SendWMDestroyMessages): set the hwnd to be a
20562 zombie after we do the recursive call, so we actually do call
20563 SendMessage on the children controls.
20564 (GetMessage): if we find a pending paint event for a zombie hwnd,
20565 remove the hwnd from the paint queue, or else it will always be
20566 there (and we'll effectively loop infinitely)
20568 2006-10-13 Mike Kestner <mkestner@novell.com>
20570 * MenuItem.cs : add Selected format under keynav too.
20573 2006-10-13 Gert Driesen <drieseng@users.sourceforge.net>
20575 * PropertyGrid.cs: Fixed some NRE's and small difference between our
20576 implementation and that of MS.
20578 2006-10-13 Chris Toshok <toshok@ximian.com>
20580 * Control.cs (OnInvalidated) only futz with the invalid_region if
20581 the control is double buffered. this fixes the apparent hang in
20582 the ListView unit tests. Someone needs to make the
20583 BeginEndUpdateTest not call OnInvalidated 15004 times, though..
20585 2006-10-13 Chris Toshok <toshok@ximian.com>
20587 * PropertyGridView.cs:
20589 - do a little refactoring so that only one place calls
20590 dropdown_form.Hide, and that is CloseDropDown. make everywhere
20591 else call that. Also make it Refresh, since there are redraw bugs
20592 otherwise (we should take a look at that...)
20594 - do a little more refactoring work to share the body of code
20595 involved with the drop down. it was duplicated in the code
20596 dealing with the listbox handling and in the code dealing with the
20599 - add a Capture to the dropdown form's control once it's
20600 displayed, and add a MouseDown handler that checks to make sure
20601 the position is inside the control. If it's not, close the
20602 dropdown. This fixes #78190.
20604 - in SetPropertyValueFromUITypeEditor, only call SetPropertyValue
20605 if the value is different than the initial value.
20607 2006-10-13 Andreia Gaita <shana.ufie@gmail.com>
20609 * Control.cs: see #78650
20610 - Fixed GetNextControl for several cases:
20611 - Changed FindFlatForward to return
20612 correct sibling control when more than one
20613 control has same TabIndex as the currently
20615 - Changed FindFlatBackward to loop children
20616 from last to first and apply same logic as in
20618 - Changed FindControlForward to search for
20619 children when control is not a container
20620 but has children, or search for siblings if
20621 control is a container...
20622 - Changed FindControlBackward to continue
20623 searching for child controls when hitting
20626 - Fixed Focus method to update ActiveControl
20627 (FocusTest.FocusSetsActive failure)
20630 - Focus rectangle now refreshes when gaining
20632 - Removed grab for Tab key on IsInputKey that
20633 was keeping tab navigation from working (#78650)
20635 2006-10-13 Chris Toshok <toshok@ximian.com>
20637 * PropertyGridView.cs:
20638 - Rewrite SetPropertyValue to loop over SelectedGridItem's
20641 - Deal with GridItem.Value == null a few places.
20644 - replace the PopulateGridItemCollection with a pair of methods
20645 which compute the intersection of all the properties in the
20646 SelectedObjects array. Fixes #79615.
20648 - Throw ArgumentException from set_SelectedObjects if there's a
20651 - Add GetTarget method which can be used to traverse up the
20652 GridItem.Parent chain. It depends on the assumption that
20653 selected_objects for different GridEntries are always in the same
20654 order (a safe assumption). Use this method and loop over all the
20655 selected objects in the entry when calling RemoveValueChanged and
20658 * GridEntry.cs: Make this handle multiple selected objects.
20659 .Value returns null if not all the selected objects share the same
20662 2006-10-12 Jonathan Pobst <monkey@jpobst.com>
20663 * ToolStrip.cs, ToolStripButton.cs, ToolStripComboBox.cs,
20664 ToolStripControlHost.cs, ToolStripItem.cs, ToolStripLabel.cs,
20665 ToolStripProfessionalRenderer.cs, ToolStripProgressBar.cs,
20666 ToolStripSeparator.cs, ToolStripSplitStackLayout.cs,
20667 ToolStripTextBox.cs: Add accessibility, fix attributes/API and
20668 add additional functionality.
20670 2006-10-12 Mike Kestner <mkestner@novell.com>
20672 * ErrorProvider.cs : new ToolTipWindow ctor sig.
20673 * HelpProvider.cs : new ToolTipWindow ctor sig.
20674 * ToolTip.cs : remove ToolTip param from Window sig since it is
20676 * ToolBar.cs : add tooltip support. Fixes #79565.
20678 2006-10-12 Rolf Bjarne Kvinge <rolfkvinge@ya.com>
20680 * ComboBox.cs: move the events in set_SelectedIndex to
20681 after the call to HighlightIndex in order to avoid
20682 possible recursion and subsequent problems with the call
20683 to HighlightIndex and include a range check in
20684 set_HighlightIndex. Fixes #79588
20686 2006-10-12 Rolf Bjarne Kvinge <rolfkvinge@ya.com>
20688 * MonthCalendar.cs: When FirstDayOfWeek is default set firstday
20689 to ui thread's settings instead of sunday.
20690 * ThemeWin32Classic.cs: Localize the day string. Fixes #79563
20692 2006-10-12 Rolf Bjarne Kvinge <rolfkvinge@ya.com>
20694 * DateTimePicker.cs
20696 * ThemeWin32Classic.cs: rewrote DateTimePicker to fix bug #78364
20697 and implement missing functionality (selecting different parts
20698 of the date and edit them individually with the keyboard).
20700 2006-10-11 Chris Toshok <toshok@ximian.com>
20702 * Control.cs (OnInvalidated): fix NRE relating to last change.
20704 2006-10-11 Chris Toshok <toshok@ximian.com>
20706 * XplatUIX11.cs (SetWMStyles): make sure we include the MAXIMIZED
20707 atoms in _NET_WM_STATE here if the window is maximized. We need
20708 to do this because we're *replacing* the existing _NET_WM_STATE
20709 property, so those atoms will be lost otherwise, and any further
20710 call to GetWindowState will return Normal for a window which is
20711 actually maximized. Fixes #79338.
20713 2006-10-11 Jackson Harper <jackson@ximian.com>
20715 * TextControl.cs: Special case for setting selection end to
20716 selection start, we basically kill the anchor.
20717 - some todo comments.
20719 2006-10-11 Chris Toshok <toshok@ximian.com>
20721 * Control.cs: switch to using an "invalid_region" to track which
20722 parts of the image buffer need updating. This is more code than
20723 the simple fix from r66532. That version just attempted to always
20724 fill the entire buffer on redraw, which turns out to be
20725 inefficient when invalidating small rectangles. This version
20726 simply adds the invalid rectangle to the invalid region. When we
20727 get any WM_PAINT message we see if it can be filled using the
20728 image buffer, and if it can't (if the paint event's clip rectangle
20729 is visible in the invalid region) we first fill the image buffer.
20730 So, the image buffer is still a cache, we just fill it lazily.
20732 * PaintEventArgs.cs: remove the SetClipRectangle method, we don't
20733 need it any longer.
20735 2006-10-11 Chris Toshok <toshok@ximian.com>
20737 * XplatUIX11.cs (SetWindowPos): we need to update both position as
20738 well as size after calling XMoveResizeWindow. This keeps us from
20739 ignoring future SetWindowPos calls. Fixes the disappearing
20740 DateTimePicker in the ToolBarDockExample from bug #72499.
20742 2006-10-11 Chris Toshok <toshok@ximian.com>
20744 * TextBoxBase.cs: reorder things a bit when it comes to
20745 resizing-causing-recalculation. we were recalculating the
20746 document when our position was changed, which shouldn't happen.
20747 We only care about size changes. Clear up some more redundant
20748 recalculation calls while I'm at it. This makes the toolbar dock
20749 example snappy when you're just dragging toolbars around (since it
20750 causes a relayout whenever you move one.)
20752 2006-10-11 Chris Toshok <toshok@ximian.com>
20754 * ToolBarButton.cs (get_Rectangle): this only returns
20755 Rectangle.Empty if Visible == false, or Parent == null.
20756 Parent.Visible doesn't matter.
20758 2006-10-10 Chris Toshok <toshok@ximian.com>
20760 * Control.cs, PaintEventArgs.cs: "internal set { .. }" isn't loved
20761 by .net 1.1, so switch to an internal method instead.
20763 2006-10-10 Chris Toshok <toshok@ximian.com>
20765 * Control.cs (WM_PAINT): when a control is double buffered we draw
20766 initially to the ImageBuffer and then copy from there. But when a
20767 parent control which has child controls is double buffered, the
20768 initial drawing doesn't encompass the entire ClientRectangle of
20769 the parent control, so we end up with uninitialized bits (this is
20770 easily seen by dragging the top toolbar in
20771 wf-apps/ToolBarDockExample to the right, quickly). The fix is to
20772 manually set the ClipRectangle of the paint_event (only the one we
20773 use to populate the ImageBuffer) to ClientRectangle. Fixes more
20774 of the nastiness in bug #72499.
20776 * PaintEventArgs.cs: Add an internal setter for ClipRectangle,
20777 which we use in Control.cs's WM_PAINT handling.
20779 2006-10-10 Jackson Harper <jackson@ximian.com>
20781 * TextBoxBase.cs: Finish off the autoscrolling stuff.
20783 2006-10-10 Chris Toshok <toshok@ximian.com>
20785 * Cursor.cs: Apply a slightly different patch to the one suggested
20788 2006-10-10 Jackson Harper <jackson@ximian.com>
20790 * MenuItem.cs: Make sure to put the mdi child in the hashtable,
20791 not the parent form.
20792 * TextControl.cs: use difference in old line count vs new count to
20793 calculate how many lines were added, this takes into account soft
20794 line breaks properly.
20796 2006-10-10 Chris Toshok <toshok@ximian.com>
20798 * LinkLabel.cs: don't call MeasureCharacterRanges against a
20799 rectangle located at 0,0 and the size of the text. Use
20800 ClientRectangle instead. This fixes rendering of non-left aligned
20803 2006-10-10 Jackson Harper <jackson@ximian.com>
20805 * TextBoxBase.cs: When we set the selection start position the
20807 * TextControl.cs: Need to update the caret when we decrement it to
20809 - Make sure that the selection_visible flag gets reset to false if
20810 the selection isn't visible. Before this you could get it set to
20811 visible by changing the selection start, then changing the end to
20814 2006-10-09 Jackson Harper <jackson@ximian.com>
20816 * TreeView.cs: Don't update scrollbars when we aren't visible.
20817 * TreeNodeCollection.cs: Only need to update scrollbars if being
20818 added to an expanded visible node or the root node.
20820 2006-10-09 Chris Toshok <toshok@ximian.com>
20822 * XplatUIX11.cs (SendMessage): fix NRE.
20824 2006-10-09 Jackson Harper <jackson@ximian.com>
20826 * TextBoxBase.cs: Implement horizontal autoscrolling.
20827 * TextControl.cs: Add a movement types that allows moving forward
20828 and backwards without wrapping.
20830 2006-10-09 Mike Kestner <mkestner@novell.com>
20832 * ListViewItem.cs : layout changes for wrapped LargeIcon labels
20833 with focus "expansion" of labels. Fixes #79532 and then some.
20834 * ThemeWin32Classic.cs : add LineLimit to ListView label format
20837 2006-10-09 Jackson Harper <jackson@ximian.com>
20839 * TextBoxBase.cs: Set the default max values to MaxValue since
20840 we use the scrollbar for autoscrolling and the default value is
20841 100. If we don't do this the caret won't keep up with typing
20842 after about 18 characters.
20843 * TextControl.cs: Make sure the selection is offset by the
20844 viewport x. This fixes selection when using auto scrolling.
20846 2006-10-07 Andreia Gaita <shana.ufie@gmail.com>
20848 * Form.cs: The active control should be selected after the
20849 OnLoad so that any child control initialization that affects
20850 the selection is done. Fixes #79406
20852 2006-10-06 Chris Toshok <toshok@ximian.com>
20854 * XplatUIX11.cs: This is perhaps a dangerous change, but it seems
20855 to have no evil effects.
20857 - Stop selecting StructureNotifyMask on non-toplevel windows.
20859 The only way children should be resized is by using the SWF api,
20860 and we already send WM_WINDOWPOSCHANGED messages in those cases.
20861 Toplevel windows can be interacted with via the window manager,
20862 and so we keep the input mask there.
20864 The other event StructureNotifyMask gives us (that we care
20865 about) is DestroyNotify. The code is already structured such
20866 that it assumes we won't be getting a DestroyNotify event for
20867 the window we pass to XDestroyWindow (which is what
20868 StructureNotifyMask is supposed to guarantee.) So, that code
20869 shouldn't be affected by this either.
20871 - Stop selecting VisibilityChangeMask altogether.
20873 We weren't doing anything with the resulting events anyway.
20875 This vastly reduces the number of X requests and events we see
20876 when resizing/laying out a large ui.
20878 2006-10-06 Chris Toshok <toshok@ximian.com>
20880 * ScrollableControl.cs (DisplayRectangle): we need to take into
20881 account the DockPadding regardless of whether or not auto_scroll
20882 == true. rework this slightly to this effect, and fix bug #79606,
20883 and part of #72499 (you can now see the drag handles and drag
20886 2006-10-06 Gert Driesen <drieseng@users.souceforge.net>
20888 * ListViewItem.cs: Collections of selected and checked items are now
20889 dynamically rebuilt. Whenever an item is (un)checked or (de)selected
20890 we mark the collection "dirty".
20891 * ListView.cs: Marked collections readonly. Modified UpdateSelection
20892 to only clear SelectedItems when a new item is selected and MultiSelect
20893 is enabled. CheckedItems and SelectedItems now subscribe to Changed
20894 event of ListViewItemCollection, and mark its list dirty whenever
20895 that event is fire. This allows us to return selected/checked items
20896 in the same order as they are in the Items collection. This matches
20899 2006-10-06 Chris Toshok <toshok@ximian.com>
20901 * NotifyIcon.cs (HandleMouseUp): only show the context menu on
20902 right mouse clicks. Fixes bug #79593.
20904 2006-10-06 Chris Toshok <toshok@ximian.com>
20906 * Splitter.cs: doh, fix splitters that don't want to cancel the
20907 movement when you drag them. Also, impose the limits on the
20908 values we send to the SplitterMovingEvent. Fixes #79598.
20910 2006-10-06 Jackson Harper <jackson@ximian.com>
20912 * TextBoxBase.cs: Ignore whether or not the scrollbar is enabled,
20913 since we use this for auto scrolling also.
20915 2006-10-05 Chris Toshok <toshok@ximian.com>
20917 * DataGridBoolColumn.cs: Nuke the code from ConcedeFocus. I'm
20918 beginning to think that most datagrid column types don't need this
20919 method. Fixes bug #79392.
20921 2006-10-05 Chris Toshok <toshok@ximian.com>
20923 * DataGrid.cs: move back to a more lazy scheme for creating the
20924 CurrencyManager, so we aren't updating it every time you set
20925 either DataSource or DataMember. Also, don't call
20926 RecreateDataGridRows if the currency manager hasn't changed.
20928 2006-10-05 Chris Toshok <toshok@ximian.com>
20930 * ComboBox.cs: by the time the OnSelectionChangeCommitted event is
20931 emitted, SelectedIndex should already be updated. Fixes bug
20934 2006-10-05 Jonathan Pobst <monkey@jpobst.com>
20936 * ToolStripComboBox.cs, ToolStripControlHost.cs, ToolStripProgressBar,
20937 ToolStripTextBox.cs: Initial commit.
20938 * ToolStripItem.cs: Fixes for OnLayout, BackColor, Parent.
20940 2006-10-05 Jackson Harper <jackson@ximian.com>
20942 * TabControl.cs: We need to invalidate the tab control area when
20943 new ones are added (duh).
20945 2006-10-03 Chris Toshok <toshok@ximian.com>
20947 * Form.cs (ProcessDialogKey): if the focused control is in this
20948 form and is a button, call its PerformClick method here. Fixes
20951 2006-10-04 Jackson Harper <jackson@ximian.com>
20953 * TabPage.cs: Ignore setting of Visible, and add an internal
20954 method for setting the controls visibility. TabPage's Visible
20955 property is a little strange on MS, this seems to make us
20956 compatible, and fixes cases where people set all the tab pages to
20958 * TabControl.cs: Use the new internal setting on tab pages
20961 2006-10-03 Mike Kestner <mkestner@novell.com>
20963 * ComboBox.cs : raise Click on ComboTextBox clicks. Fixes #79555.
20965 2006-10-03 Mike Kestner <mkestner@novell.com>
20967 * ListView.cs : use is_visible instead of Visible to check if
20968 scrollbars should be placed/sized. Also some max_wrap_width
20969 love for LargeIcon view. [Fixes #79533]
20971 2006-10-03 Atsushi Enomoto <atsushi@ximian.com>
20974 Make set_TextAlign() do actually update the align. Fixed #78403.
20976 2006-10-03 Chris Toshok <toshok@ximian.com>
20978 * DataGrid.cs: fix a crash when switching datasources if the
20979 vertical scrollbar is at someplace other than Value = 0. Also,
20980 reduce the number of recalculation passes we do in SetDataSource
20983 2006-10-03 Jackson Harper <jackson@ximian.com>
20985 * TextBoxBase.cs: Move the if value the same bail check up, we
20986 don't want to empty the document if it is already empty, this
20987 seems to severly mess up the caret. TODO: I should probably fix
20988 the empty statement to update teh caret somehow.
20990 2006-10-03 Chris Toshok <toshok@ximian.com>
20992 * ThemeWin32Classic.cs, DataGrid.cs: some changes so that the
20993 incredibly hacky Windows.Forms FAQ autosize rows entry (it uses
20994 reflection, an internal row type, properties on said type, etc.)
20995 will work with our datagrid. Fixes #79531.
20997 2006-10-03 Alexander Olk <alex.olk@googlemail.com>
20999 * FileDialog.cs: Don't crash if a path is not accessible
21000 (System.UnauthorizedAccessException). Fixes #79569.
21001 * MimeIcon.cs: Workaround for a Uri bug. Unix paths/files can have
21002 a ':' too. Return unknown icon for those paths/files.
21004 2006-10-03 Sebastien Pouliot <sebastien@ximian.com>
21006 * ToolTip.cs: Fix rare, but possible, NRE on MouseEnter when
21007 GetContainerControl returns null.
21009 2006-10-02 Chris Toshok <toshok@ximian.com>
21011 * XplatUIX11.cs (GetWindowState): use hwnd.client_window in the
21012 call to XGetWindowAttributes instead of "handle". fixes an X
21013 error using notifyicon after the NotifyIconWindow to Form base
21016 2006-10-02 Chris Toshok <toshok@ximian.com>
21018 * XplatUIX11.cs (QueryPointer): new function, encapsulating the
21019 server grab and looping we need to do to get down to the most
21020 deeply nested child window.
21021 (SetCursorPos): use QueryPointer instead of GetCursorPos, and call
21022 QueryPointer again after the WarpPointer so we can generate a
21023 proper (fake) MotionNotify event to be enqueued in the destination
21025 (GetCursorPos): call QueryPointer.
21029 2006-10-02 Jackson Harper <jackson@ximian.com>
21031 * NotifyIcon.cs: Derive the notify icon from a form, so things
21032 like FindForm work on it.
21033 - Swallow the WM_CONTEXTMENU message, since that is generated on
21034 mouse down, and context menu is a mouse up kinda guy. I believe
21035 the correct fix here is probably to make the notify icon entirely
21036 NC area, but this seems to work fine for anyone not manipulating
21039 2006-10-02 Jonathan Pobst <monkey@jpobst.com>
21041 * ToolStrip.cs, ToolStripButton.cs, ToolStripItem.cs,
21042 ToolStripItemCollection.cs, ToolStripLabel.cs,
21043 ToolStripProfessionalRenderer.cs, ToolStripRenderer.cs,
21044 ToolStripSeparator.cs, ToolStripSplitStackLayout.cs:
21045 Initial implementation.
21046 * TextRenderer.cs: Provide padding to MeasureText.
21048 2006-10-02 Sebastien Pouliot <sebastien@ximian.com>
21050 * ButtonBase.cs: Fix CreateAccessibilityInstance to return an instance
21051 of ButtonBaseAccessibleObject. Fix bug #79552.
21053 2006-10-02 Jackson Harper <jackson@ximian.com>
21055 * MdiWindowManager.cs: When maximizing use the containers client
21056 rect, not it's bounds, so nc area is accounted correctly.
21057 - Use the parent form's size for the menu position, since the
21058 client isn't always the full form size.
21060 2006-10-01 Chris Toshok <toshok@ximian.com>
21062 * ScrollableControl.cs: make sure neither right_edge or
21063 bottom_edge are < 0, since they're used as LargeChange for the
21064 horiz/vert scrollbars respectively. Fixes #79539.
21066 2006-10-01 Chris Toshok <toshok@ximian.com>
21068 * NotifyIcon.cs: add NotifyIconWindow.InternalRecreateHandle, so
21069 the xplatuix11 code can cause us to destroy/recreate our handle.
21073 - this code can be invoked many times for the same Hwnd. Make
21074 sure we only destroy the client window once (the first time this
21075 method is called). This fixes bug #79544.
21076 - Remove the call to the improperly bound XSync. why we had two
21077 bindings to this, I will never know, but this call resulted in
21078 events being discarded from the queue(!).
21079 - correct a misunderstanding of _XEMBED_INFO - the second atom is
21080 not our current state but the state we wish to be in. So, 0 if
21081 we don't want to be mapped. Change it to 1.
21082 (SystrayRemove): The XEMBED spec makes mention of the fact that
21083 gtk doesn't support the reparent of client windows away from the
21084 embedder. Looking at gtksocket-x11.c seems to agree with this.
21085 The only avenue we have for removing systray icons is to destroy
21086 them. We don't want the handle to go away for good, though, so
21087 call InternalRecreateHandle on the NotifyIconWindow. Fixes
21090 2006-10-01 Chris Toshok <toshok@ximian.com>
21092 * Form.cs (WndProc): inline the native_enabled variable usage into
21093 the cases in which it's used. Fixes #79536.
21095 2006-09-29 Mike Kestner <mkestner@novell.com>
21097 * ListView.cs : toggle the selection state for ctrl clicks in
21098 multiselect mode. [Fixes #79417]
21100 2006-09-29 Mike Kestner <mkestner@novell.com>
21102 * ListView.cs : kill CanMultiSelect and refactor the selection
21103 code to support multiselection in the absence of mod keys. Steal
21104 arrow/home/end keys by overriding InternalPreProcessMessage to
21105 restore regressed keynav behavior.
21108 2006-09-29 Jackson Harper <jackson@ximian.com>
21110 * MdiClient.cs: Repaint the titlebars when the active window is
21113 2006-09-29 Chris Toshok <toshok@ximian.com>
21115 * Application.cs: when entering a runloop with a modal, make sure
21116 the hwnd is enabled. Fixes #79480.
21118 2006-09-29 Chris Toshok <toshok@ximian.com>
21120 * DataGrid.cs (CurrentCell): if we try to navigate to the add row
21121 when ListManager.CanAddRows == false, bump us back one.
21123 * DataGridColumnStyle.cs (ParentReadOnly): remove the
21124 listmanager.CanAddRows check. This makes ArrayLists uneditable
21125 using a datagrid, which is not right.
21126 (SetColumnValueAtRow): call IEditable.BeginEdit if source[rowNum]
21127 is an IEditable, but call property_descriptor.SetValue regardless.
21130 2006-09-29 Chris Toshok <toshok@ximian.com>
21132 * DataGridBoolColumn.cs: we need to test equality in the face of
21133 possible null values (as is the case with the default NullValue).
21134 This patch keeps us from crashing in that case.
21136 2006-09-29 Jackson Harper <jackson@ximian.com>
21138 * TreeNodeCollection.cs: Don't do a recalculate/updatescrollbars
21139 here, since it will get called for every node collection in the
21140 tree. This is now done in the treeview once the sorting is
21142 * TreeView.cs: Recalculate the visible order, and update the
21143 scrollbars after sorting, set the top nope to the root so that the
21144 recalc actually works.
21146 2006-09-29 Chris Toshok <toshok@ximian.com>
21148 * LinkLabel.cs: more handling of the default link collection in
21149 the face of LinkArea manipulation. The default link collection
21150 contains 1 element (start=0,length=-1). If the user sets LinkArea
21151 to anything and the links collection is the default, clear it.
21152 Then only add the link if its nonempty. Fixes #79518.
21154 2006-09-29 Chris Toshok <toshok@ximian.com>
21156 * LinkLabel.cs (CreatePiecesFromText): calculate the length of a
21157 piece correctly when we hit a '\n'. Fixes #79517.
21159 2006-09-29 Chris Toshok <toshok@ximian.com>
21161 * MimeIcon.cs, ThemeGtk.cs, X11DesktopColors.cs, XplatUIX11GTK.cs:
21162 change the binding of gdk_init_check to take two IntPtr's, and
21163 pass IntPtr.Zero for both of them. Fixes #79520.
21165 2006-09-29 Mike Kestner <mkestner@novell.com>
21167 * ComboBox.cs : raise TextChanged on ComboTextBox.TextChanged.
21170 2006-09-28 Jackson Harper <jackson@ximian.com>
21172 * XplatUIX11.cs: When translating NC messages make sure we go from
21173 whole window to screen, not client window to screen.
21174 * MdiClient.cs: Remove the calls to PaintWindowDecorations, this
21175 method doesn't exist
21176 - Skip over controls that aren't forms when arranging.
21178 2006-09-28 Jackson Harper <jackson@ximian.com>
21180 * XplatUIWin32.cs: Clip the rect to the parent window.
21181 * XplatUIStructs.cs: Add clipping modes struct.
21182 * InternalWindowManager.cs: New private method that factors title
21183 bar heights in when calculating the pos of an NC mouse message.
21184 - Use SendMessage to force a paint when the form's size is changed
21185 instead of painting the decorations immediately.
21186 - Don't let the NC button click messages get to DefWndProc,
21187 because they will attempt to handle windowing themself, and this
21188 messes up z-order (it will put them in front of the scrollbars).
21189 * XplatUIX11.cs: Make sure that we don't reset window managers if
21190 we already have one (ie the window is an MDI window).
21192 2006-09-28 Chris Toshok <toshok@ximian.com>
21194 * MainMenu.cs: fix #79405 by way of a disgusting hack. all the
21195 menu code really needs going over.
21197 2006-09-27 Chris Toshok <toshok@ximian.com>
21199 * XplatUIX11.cs (SetWMStyles): more metacity wonderment. turns
21200 out metacity ignores the MAXIMIZE_HORZ/VERT messages unless the
21201 window is maximizable. So, we need to make sure that even if we
21202 clear the border/wm frame of those functions, they're still
21203 available (basically, we remove the decoration without removing
21204 the function). Half the fix for #79338.
21206 2006-09-27 Chris Toshok <toshok@ximian.com>
21208 * DataGrid.cs (ProcessGridKey): implement Shift-Tab handling.
21211 2006-09-27 Chris Toshok <toshok@ximian.com>
21213 * Splitter.cs: reorder things a bit so that we don't actually
21214 draw/move the splitter until after calling OnSplitterMoving. This
21215 lets users cancel/disallow the movement by explicitly setting
21216 event.SplitX/SplitY. Fixes #79372.
21218 2006-09-27 Jackson Harper <jackson@ximian.com>
21220 * XplatUIX11.cs: Don't hide the caret when it is being destroyed,
21221 because it is most likely on a window being destroyed, and that
21222 will give us an X11 error.
21224 2006-09-27 Chris Toshok <toshok@ximian.com>
21226 * PropertyGridView.cs: half of the fix for #78190. Clicking on
21227 the dropdown button now toggles between showing and hiding the
21228 dropdown. Also, get rid of dropdown_form_showing and just use
21229 dropdown_form.Visible. We still don't do a grab, but I'll leave
21230 that part to someone who has handled Capture-fu before.
21232 2006-09-27 Chris Toshok <toshok@ximian.com>
21234 * DataGrid.cs: return false if alt isn't pressed when '0' is
21235 pressed. this keeps the '0' key from being swallowed, and fixes
21238 2006-09-27 Chris Toshok <toshok@ximian.com>
21240 * ComboBox.cs: use Invalidate when scrolling the dropdown list.
21241 Calling Refresh (in response to a scrollbar event) screws up the
21242 scrollbar painting. Fixes bug #78923.
21244 2006-09-27 Chris Toshok <toshok@ximian.com>
21246 * Theme.cs (SystemResPool): make the "if hashtable[key] == null
21247 then insert into hashtable" blocks threadsafe.
21249 2006-09-27 Chris Toshok <toshok@ximian.com>
21251 * MessageBox.cs (CreateParams): the styles should be |'ed with our
21252 baseclass's, since otherwise the
21253 ControlBox/MinimizeBox/MaximizeBox assignments above have no
21254 effect. This gets the close button back in messageboxes.
21256 2006-09-27 Chris Toshok <toshok@ximian.com>
21258 * XplatUIX11.cs: make StyleSet and ExStyleSet check == with the
21259 flag, not just != 0. this makes flags that are actually multiple
21260 bits (like WS_CAPTION) work. fixes bug #79508.
21262 2006-09-27 Jordi Mas i Hernandez <jordimash@gmail.com>
21264 * PageSetupDialog.cs: add support for getting and settings the
21265 paper size, source and orientation.
21267 2006-09-26 Chris Toshok <toshok@ximian.com>
21269 * XplatUIX11.cs (SetWMStyles): turns out when SYSMENU is not set
21270 and caption == "", we need to remove the resize handles as well as
21273 * Control.cs (set_Text): turns out that setting Text on a form
21274 should change the WM styles on the window, since if ControlBox ==
21275 false, the only way to get a window border is to have a non-""
21276 Text property. check winforms/forms/text.cs for an example. so,
21277 call both XplatUI.SetWindowStyle and XplatUI.Text here to properly
21278 update both window styles and title. This fixes a lot of dialogs
21279 (including the preferences dialog in MonoCalendar.)
21281 2006-09-26 Chris Toshok <toshok@ximian.com>
21283 * XplatUIWin32.cs (SetParent): if parent == IntPtr.Zero (and the
21284 control isn't a Form), call Win32ShowWindow to hide the window,
21285 but don't update the control Visible property. When we reparent
21286 back to a parent control, call SetVisible in order for the
21287 window's visibility to be reinstated.
21289 * XplatUIX11.cs (SetParent): if hwnd.parent == null, reparent to
21292 * Control.cs (ControlCollection.Remove): remove that value.Hide()
21293 call for good, since it breaks MonoCalendar (and other things I'm
21294 sure.) Also, set all_controls to null *after* the owner calls,
21295 which end up regenerating it.
21296 (ChangeParent): allow new_parent to be == null, passing
21297 IntPtr.Zero down to XplatUI.
21299 this fixes #79294 the right way.
21301 2006-09-26 Mike Kestner <mkestner@novell.com>
21303 * GridEntry.cs : internal SetParent method.
21304 * PropertyGrid.cs : attach to property changed on the proper
21305 target if we have a hierarchical grid with subobjects. Setup
21306 GridItem.Parent for hierarchical items.
21307 * PropertyGridView.cs : Set value on the correct target for
21308 hierarchical grids. [Fixes #78903]
21310 2006-09-26 Chris Toshok <toshok@ximian.com>
21312 * Control.cs (ChildNeedsRecreating): this should return true if
21313 either we're being recreated and the child is in our list, or our
21314 parent is waiting for our recreation.
21316 2006-09-26 Chris Toshok <toshok@ximian.com>
21318 * Control.cs (ControlCollection.Remove): reinstate the
21319 value.Hide() call as suggested in bug #79294.
21321 2006-09-26 Sebastien Pouliot <sebastien@ximian.com>
21323 * XplatUIX11.cs: Fixed SetCursorPos to move the cursor to screen
21324 coordinates (versus a relative move).
21326 2006-09-26 Chris Toshok <toshok@ximian.com>
21328 * Control.cs: rework child recreation a little bit. It turns out
21329 that we race between the DestroyNotify the WM_DESTROY message. If
21330 the parent gets its DestroyNotify before the child gets the
21331 WM_DESTROY message, the child ends up not recreating (since the
21332 parent finishes its recreation on DestroyNotify, and the child
21333 checks ParentIsRecreating.)
21335 So, instead we store off a list of all the child controls which
21336 need to be recreated when the parent control starts to recreate
21337 itself. Then, when child controls get their WM_DESTROY message we
21338 check to see if they're in the parent's pending recreation list,
21339 and if so, we recreate. This removes all dependency on ordering
21340 from the code and fixes the initial MonoCalendar upgrade dialog.
21342 2006-09-26 Jackson Harper <jackson@ximian.com>
21344 * TextControl.cs: Use the Line to get the length of the line,
21345 since soft line breaks can change the end line.
21347 2006-09-26 Chris Toshok <toshok@ximian.com>
21349 * Control.cs (ControlCollection.AddImplicit): don't add the
21350 control again if it's already in one of our lists. This keeps us
21351 from adding controls over and over again for comboboxes when their
21352 handle gets recreated (as the combobox adds implicit controls in
21353 OnHandleCreated). Fixes the X11 errors in bug #79480.
21355 2006-09-26 Jackson Harper <jackson@ximian.com>
21357 * TextControl.cs: When deleting characters make sure that any
21358 orphaned zero lengthed tags get deleted.
21359 - Fix ToString for zero lengthed tags.
21361 2006-09-25 Jackson Harper <jackson@ximian.com>
21363 * TextControl.cs: When getting a tag at the location there can be
21364 multiple tags at the same spot, these are 0-lengthed tags that
21365 appear when extra formatting has been stuck in a location. We
21366 need to pull out the last of these 0 lengthed tags.
21368 2006-09-25 Jackson Harper <jackson@ximian.com>
21370 * TextControl.cs: Fix print out in debug method.
21371 * TextBoxBase.cs: When text is set bail if we are setting to the
21374 2006-09-24 Alexander Olk <alex.olk@googlemail.com>
21376 * FontDialog.cs: Fixed the up/down arrow keys issue from bug #79478.
21377 It is now possible to change the selected index in a FontXXXListBox
21378 with the up and down arrow keys from the FontXXXTextBoxes.
21379 Also, send the FontXXXTextBox mouse wheel event to the corresponding
21380 FontXXXListBoxes to match ms.
21382 2006-09-22 Sebastien Pouliot <sebastien@ximian.com>
21384 * SystemInformation.cs: Return a clone of the theme's MenuFont because
21385 anyone can dispose it, anytime. All other properties returns enums,
21386 structs or basic types so they don't need such tricks.
21388 2006-09-22 Jackson Harper <jackson@ximian.com>
21395 * XplatUIDriver.cs: Update interface to add a primary selection
21396 flag, so the driver can use the primary selection buffer if
21398 * XplatUIX11.cs: Allow the clipboard to retrieve from PRIMARY.
21400 * RichTextBox.cs: We need to supply the data object to paste now
21401 (so we can choose to supply CLIPBOARD or PRIMARY).
21402 * TextBoxBase.cs: Supply data object to paste (see above).
21403 - Middle click uses the primary selection data object.
21405 2006-09-21 Chris Toshok <toshok@ximian.com>
21407 * XplatUIX11.cs: first little cleanup of the StyleSet (...) block
21408 of SetWMStyles. It's still a rat's nest and is largely
21409 order-dependent which I dislike immensely. This also fixes the X
21410 button disappearing from toplevel forms.
21412 2006-09-21 Mike Kestner <mkestner@novell.com>
21414 * ListBox.cs: move Jordi's click/dblclick raising code to the
21417 2006-09-21 Jordi Mas i Hernandez <jordimash@gmail.com>
21419 * ListBox.cs: Fixes 79450
21421 2006-09-21 Mike Kestner <mkestner@novell.com>
21423 * TreeView.cs: guard against disposed conditions in UpdateScrollbars
21424 to deal with people updating the TreeNodeCollection after the tree
21425 is disposed. "Fixes" 79330.
21427 2006-09-20 Jackson Harper <jackson@ximian.com>
21429 * TextControl.cs: Push the cursor record onto the undo stack
21430 before the delete action. This fixes 78651.
21432 2006-09-20 Jonathan Chambers <joncham@gmail.com>
21434 * PropertyGridView.cs: Remove WindowStyles.WS_VISIBLE from
21435 CreateParams. Fixes 79329.
21437 2006-09-19 Chris Toshok <toshok@ximian.com>
21439 * XplatUIX11.cs: a couple of blanket code massage passes to clean
21440 things up a bit. First, get rid of the NetAtoms array (and the NA
21441 enum), and just embed the atoms as static fields. Also, add a
21442 couple of functions (StyleSet and ExStyleSet) to clean up all the
21443 bitmask testing of styles.
21445 * X11Structs.cs: remove the NA enum, not needed anymore.
21447 2006-09-19 Chris Toshok <toshok@ximian.com>
21449 * XplatUIX11.cs: apply Alexander's tool window fix for bug #79245
21450 (mapping them to _NET_WM_WINDOW_TYPE_UTILITY). and add a little
21451 added cleanup to get MessageBox titles appearing again, which were
21452 broken by my earlier fix for caption-less/ControlBox-less windows.
21454 2006-09-18 Jonathan Pobst <monkey@jpobst.com>
21456 * ToolStripArrowRenderEventArgs.cs, ToolStripArrowRenderEventHandler.cs,
21457 ToolStripContentPanelRenderEventArgs.cs, ToolStripContentPanelRenderEventHandler.cs,
21458 ToolStripGripRenderEventArgs.cs, ToolStripGripRenderEventHandler.cs,
21459 ToolStripItemClickedEventArgs.cs, ToolStripItemClickedEventHandler.cs,
21460 ToolStripItemEventArgs.cs, ToolStripItemEventHandler.cs,
21461 ToolStripItemImageRenderEventArgs.cs, ToolStripItemImageRenderEventHandler.cs,
21462 ToolStripItemRenderEventArgs.cs, ToolStripItemRenderEventHandler.cs,
21463 ToolStripItemTextRenderEventArgs.cs, ToolStripItemTextRenderEventHandler.cs,
21464 ToolStripPanelRenderEventArgs.cs, ToolStripPanelRenderEventHandler.cs,
21465 ToolStripRenderEventArgs.cs, ToolStripRenderEventHandler.cs,
21466 ToolStripSeparatorRenderEventArgs.cs, ToolStripSeparatorRenderEventHandler.cs:
21468 * ToolStripPanel.cs, ToolStripContentPanel.cs, ToolStripSeparator.cs,
21469 ToolStripButton.cs: Stubs needed for above.
21470 * ToolStrip.cs, ToolStripItem.cs: Stub a few variables/properties for above.
21472 2006-09-15 Chris Toshok <toshok@ximian.com>
21475 - make the MessageQueues hashtable Synchronized.
21477 - SendMessage: if the Hwnd is owned by a different thread, use the
21478 AsyncMethod stuff to dispatch the SendMessage on the hwnd's
21479 thread. Fixes bug #79201.
21481 2006-09-15 Chris Toshok <toshok@ximian.com>
21483 * XplatUIX11.cs (SetWMStyles): rework the #79368 fix slightly. If
21484 ControlBox == false, we disallow maximize/minimize/close. If the
21485 form Caption is "" we also disallow move (and get rid of the Title
21486 decoration). Unfortunately, regardless of how things are set,
21487 we're stuck with the Title and WM menu.
21489 2006-09-15 Chris Toshok <toshok@ximian.com>
21491 * Application.cs: add locking around the static message_filters
21492 ArrayList, part of #79196.
21494 2006-09-15 Chris Toshok <toshok@ximian.com>
21496 * XplatUIX11.cs (SetWMStyles): if Form.Text == "" and
21497 Form.ControlBox == false, the window has no titlebar nor resize
21498 handles. fixes bug #79368.
21500 2006-09-15 Chris Toshok <toshok@ximian.com>
21502 * TextBoxBase.cs: in CalculateScrollBars make sure LargeChange is
21503 >= 0. Fixes bug #79370.
21505 2006-09-15 Jonathan Pobst <monkey@jpobst.com>
21506 * FlowLayoutPanel.cs, FlowLayoutSettings.cs: Initial commit.
21508 Add properties: LayoutEngine, Margin, DefaultMargin.
21509 Add method: GetPreferredSize.
21510 Move layout logic from PerformLayout to layout engines.
21512 2006-09-13 Chris Toshok <toshok@ximian.com>
21514 * XplatUIX11.cs: more destroy work. Jackson pointed out that my
21515 fix for #79326 broke #78718, so this change addresses that.
21517 - in SendWMDestroyMessages remove the call to
21518 CleanupCachedWindows, since we might be recreating the control and
21519 need to maintain the references to right Hwnd handles. Also, set
21520 the zombie flag to true for each of the children in the hierarchy
21521 instead of calling hwnd.Dispose. This will cause GetMessage to
21522 ignore all events for the window except for DestroyNotify.
21524 - In GetMessage, ignore messages except for DestroyNotify for
21527 * Control.cs: revert the is_recreating fix from the last
21528 ChangeLog. It's definitely "right", but it breaks switching from
21529 an MDI form to a non-MDI form. Will need to revisit that.
21531 * Hwnd.cs: add a zombie flag, which means "the
21532 client_window/whole_window handles are invalid, but we're waiting
21533 for the DestroyNotify event to come in for them". Set the flag to
21534 false explicitly if setting WholeWindow/ClientWindow, and also
21537 2006-09-13 Chris Toshok <toshok@ximian.com>
21539 * XplatUIX11.cs: rework window destruction slightly.
21541 - when destroying the windows associated with a control, we don't
21542 need 2 separate XDestroyWindow calls. Just the one for the
21543 whole_window (or for client_window if whole_window is somehow
21544 IntPtr.Zero -- can this happen?) is enough.
21546 - reworked SendWMDestroyMessages slightly, so we always dispose
21547 the child control hwnd's after sending the messages.
21549 - refactored out the ActiveWindow/FocusWindow/Caret clearing from
21550 the two places it was used (one was even using hwnd.Handle and the
21551 other hwnd.client_window. ugh), adding another call in
21552 SendWMDestroyMessages. We need this new call because now the
21553 DestroyNotify events in the queue will be ignored for the child
21554 controls (as their hwnd's were disposed, and the window id's
21555 removed from the hashtable in SendWMDestroyMessages.) fun, eh?
21557 - this fixes bug #79326.
21559 2006-09-13 Chris Toshok <toshok@ximian.com>
21561 * Control.cs: don't always set is_recreating to false at the end
21562 of RecreateHandle, since sometimes we're not done (and won't be
21563 until WndProc handles the WM_DESTROY message). Also, set
21564 is_recreating to false in the WM_DESTROY handling code. Part of
21565 the fix for bug #79326.
21567 2006-09-13 Miguel de Icaza <miguel@novell.com>
21569 * X11DesktopColors.cs: Start the droppage of debugging messages.
21571 * FileDialog.cs: Store the configuration file in ~/.mono/mwf_config
21573 2006-09-13 Jonathan Pobst <monkey@jpobst.com>
21575 * SplitContainer.cs, SplitterPanel.cs: Initial implementation [2.0].
21577 2006-09-12 Chris Toshok <toshok@ximian.com>
21579 * DataGrid.cs (get_ListManager): if the list_manager is null, try
21580 to create it using SetDataSource. Fixes bug #79151.
21582 2006-09-11 Chris Toshok <toshok@ximian.com>
21584 * XEventQueue.cs: add a DispatchIdle property.
21586 * XplatUIX11.cs (UpdateMessageQueue): only emit the Idle event if
21587 either the queue is null, or the queue has DispatchIdle set to
21589 (DoEvents): set queue.DispatchIdle to false around the
21590 peek/translate/dispatch message loop in this method. This keeps
21591 Application.Doevents from emitting idle events. Part of the fix
21594 2006-09-11 Chris Toshok <toshok@ximian.com>
21596 * DataGrid.cs (set_DataSource): make this work for both the
21597 winforms/datagrid test and ReportBuilder. It seems as though when
21598 we've created a ListManager (or maybe it's if we have a
21599 BindingContext?), when we set the DataSource it clears the
21600 DataMember to "". otherwise we reuse the datamember. Fixes bug
21603 2006-09-11 Chris Toshok <toshok@ximian.com>
21605 * XplatUIX11.cs: deal with queue being null, which happens in all
21606 the Clipboard functions. Fixes one of the two problems mentioned
21609 2006-09-11 Chris Toshok <toshok@ximian.com>
21611 * MenuAPI.cs: rework OnMouseUp a bit so that releasing the mouse
21612 button on various spots (including outside the menu) works closer
21613 to MS, and doesn't crash. Fixes #79343.
21615 2006-09-11 Gert Driesen <drieseng@users.sourceforge.net>
21617 * ListView.cs: Do not initialize item_sorter in init. To match MS,
21618 return null for ListViewItemSorter if View is SmallIcon or LargeIcon
21619 and the internal comparer is set. When a new ListViewItemSorter is set,
21620 sort the items. Use Enum.IsDefined to verify whether a valid SortOrder
21621 was specified. No further processing is necessary if SortOrder is set
21622 to it's current value. If Sorting is modified to None, and View is
21623 neither SmallIcon nor LargeIcon then: on 2.0 profile set item_sorter
21624 (either custom or our internal ItemComparer) to null, on 1.0 profile
21625 only set item_sorter to null if its our internal IComparer. If Sorting
21626 is modified to Ascending or Descending, then use our internal IComparer
21627 if none is set, and if the current IComparer is our internal one then:
21628 on 2.0 profile always replace it with one for new Sorting, and on 1.0
21629 profile only use new Sorting if view is not SmallIcon or LargeIcon. Use
21630 Enum.IsDefined to verify whether a valid View value is specified in
21631 its setter. Automatically sort listview items when listview is
21632 created. In Sort, do nothing if ListView is not yet created, or if
21633 no item_sorter is set (no Sorting was set, Sorting was explicitly set
21634 to None or ListViewItemSorter was set to null). Added Sort overload
21635 taking a bool to indicate whether the ListView should be redrawn when
21636 items are sorted (we use this in ListViewItemCollection to avoid double
21637 redraws). Modified our internal IComparer to take the sort order into
21638 account. In Add and AddRange methods of ListViewItemCollection, also
21639 call Sort if Sorting is None (necessary for SmallIcon and LargeIcon
21640 view), but use overload with noredraw option to avoid double redraw.
21641 On 2.0 profile, throw NotSupportedException when setting CheckBoxes to
21642 true when View is Tile, and do the same when attempting to set View to
21643 Tile when CheckBoxes is true. Avoid maintaining separate ArrayLists
21644 for selected/checked indices, as it involves overhead when sorting is
21645 done while these collections are not used all that often. Instead
21646 we'll build the indices on demand. Modified IList implementation of
21647 CheckedIndexCollection to use public methods if object is int.
21648 Modified CheckedListViewItemCollection to hide checked items if
21649 ListView.CheckBoxes is false. Removed LAMESPEC remark in
21650 ListViewItemCollection as the .NET SDK docs have been fixed. Modified
21651 IList implementation in SelectedIndexCollection to use public methods
21652 if object is int. Modified SelectedListViewItemCollection to hide
21653 selected items if listview is not yet created.
21654 * ListViewItem.cs: CheckedIndices list no longer needs to be
21655 maintained separately (see ListView changes). Also clone font, fixes
21658 2006-09-11 Mike Kestner <mkestner@novell.com>
21660 * ComboBox.cs: if we are updating the contents of the currently
21661 selected index, refresh the control or the textbox selection.
21664 2006-09-11 Mike Kestner <mkestner@novell.com>
21666 * ComboBox.cs (UpdateBounds): use SetBounds not SetBoundsCore since
21667 the 'specified' logic has been moved there. This seems like a bug
21668 in Control.cs, since our current SetBoundsCore completely ignores
21669 the specified parameter. Peter's commit seems to indicate that is
21670 the way the MS control implementation works. [Fixes #79325]
21672 2006-09-10 Jonathan Chambers <joncham@gmail.com>
21674 * XplatUI.cs: Set default_class_name to be composed
21675 of current domain id. This allows MWF to be loaded in multiple
21678 2006-09-09 Miguel de Icaza <miguel@novell.com>
21680 * X11Keyboard.cs: If we are unable to obtain the input method, do
21681 not call CreateXic to create the input context. Should fix
21684 2006-09-08 Alexander Olk <alex.olk@googlemail.com>
21686 * MimeIcon.cs: Rewrote major parts. Dropped KDE support for now.
21687 Simplified gnome support by adding more pinvokes to get the
21688 icon for a file or mime type.
21690 2006-09-08 Jackson Harper <jackson@ximian.com>
21692 * MenuAPI.cs: Deslect popup context menu items before closing the
21693 window, so that you don't see the previously selected item
21694 selected when you reopen the menu.
21695 * TextControl.cs: Update the cursor position even if we don't have
21696 focus. This fixes typing in things like the ComboBox. I'm not
21697 totally sure we should always set the visibility if we don't have
21698 focus, but couldn't find any corner cases where the cursor showed
21699 up when it shouldn't.
21701 2006-09-08 Chris Toshok <toshok@ximian.com>
21703 * X11Keyboard.cs: In UpdateKeyState vkey can be any integer, but
21704 our arrays are length 256. & 0xff before indexing. Fixes the
21705 crash in bug #78077.
21707 2006-09-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
21709 * ThemeWin32Classic.cs:
21710 * DateTimePicker.cs: Draw check box if DateTimePicker.ShowCheckBox
21711 is true. Handle that check box too.
21713 2006-09-07 Chris Toshok <toshok@ximian.com>
21715 * MenuAPI.cs: move the PerformClick call to OnMouseUp. Fixes bug
21718 2006-09-07 Chris Toshok <toshok@ximian.com>
21720 * Control.cs: in set_BackColor only do the work if
21721 background_color != value.
21723 * XplatUIX11.cs: move the clearing of invalid areas (both client
21724 and nc) to the same block of code where we set (nc_)expose_pending
21725 to false. That is, move it from PaintEventEnd to PaintEventStart,
21726 so things that cause invalidates from within OnPaint will trigger
21727 another call to OnPaint. Fixes bug #79262.
21729 2006-09-07 Alexander Olk <alex.olk@googlemail.com>
21731 * Theme.cs: Use correct icon for UIIcon.PlacesPersonal
21732 * FileDialog.cs: Fix typo
21734 2006-09-07 Jackson Harper <jackson@ximian.com>
21736 * ThemeWin32Classic.cs: oops, forgot to commit. Draw the images
21737 for tab pages if they have any.
21739 2006-09-06 Mike Kestner <mkestner@novell.com>
21741 * Splitter.cs: use the "current" rect when finishing drag handle
21742 to avoid an artifact demonstrated by resedit.exe. [Fixes #79251]
21744 2006-09-06 Mike Kestner <mkestner@novell.com>
21746 * Splitter.cs: draw the drag handle at X or Y instead of 0 to deal
21747 support offset splitters. [Fixes #79298]
21749 2006-09-06 Alexander Olk <alex.olk@googlemail.com>
21751 * Mime.cs: Fixed a bug that could override the global mime type
21754 2006-09-05 Jackson Harper <jackson@ximian.com>
21756 * TabControl.cs: Better calculation method for setting the slider
21757 pos. Prevents crashes on really wide tabs.
21758 - Draw Image on tab pages if an image list is used.
21760 2006-09-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
21762 * MonthCalendar.cs: When Font changes, the Size should be
21763 updated to fit the new font's space requirements.
21765 2006-09-02 Alexander Olk <alex.olk@googlemail.com>
21767 * ListBox.cs: If the items are cleared with Items.Clear set
21770 2006-09-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
21772 * MonthCalendar.cs: Handle arrow keys as input keys. Also
21773 fire DateChanged event instead of DateSelected event when
21774 the date was changed by keyboard interaction.
21776 2006-09-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
21778 * DateTimePicker.cs: Handle DateChanged for the associated
21779 month_calendar control, and set month_calendar.Font from
21780 OnFontChanged method, as well as resize the height of the
21781 control when needed. Make PreferredHeight proportional.
21783 2006-09-01 Chris Toshok <toshok@ximian.com>
21785 * DataGrid.cs: grr, stop overthinking the DataMember/DataSource
21788 * BindingContext.cs (HashKey.GetHashCode): use ^ instead of +.
21790 2006-09-01 Peter Dennis Bartok <pbartok@novell.com>
21792 * FileDialog.cs: Set ClientSize instead of window size, to allow space
21793 for decorations (Fixes #79219)
21795 2006-09-01 Mike Kestner <mkestner@novell.com>
21797 * ComboBox.cs: first stab at sorting plus some selection handling
21798 fixes to bring us more in line with MS behavior. Also switches back
21799 to index based selection. Alternative patches for index-based
21800 selection were provided by Jackson Harper, Carlos Alberto Cortez,
21801 and latency@gmx.de on bug 78848. I assume they were similar to this
21802 code I've had simmering in my tree forever.
21805 2006-09-01 Chris Toshok <toshok@ximian.com>
21807 * CurrencyManager.cs (ListChangedHandler): in the ItemAdded case,
21808 when setting list position guard against ending up with a -1 index
21809 (the other part of the fix for #78812). Should probably make sure
21810 we don't need the analogous fix in the ItemDeleted case.
21813 - in SetDataSource, work around the fact that the way
21814 OnBindingContextChanged is invoked will cause us to re-enter this
21815 method. I'll remove the hack once I investigate
21816 OnBindingContextChanged.
21818 - fix the logic in set_DataSource and set_DataMember (basically
21819 what to do if the other of the two is null.)
21821 - in OnListManagerItemChanged, we need to take into account the
21822 edit row when deciding whether or not to call RecreateDataGridRows
21823 (part of the fix for #78812).
21825 2006-09-01 Jackson Harper <jackson@ximian.com>
21827 * Splitter.cs: Don't do anything if there is no control to affect
21828 (prevents us from crashing in weird tet cases).
21829 * TreeView.cs: Bounding box for the mouse movement reverting
21830 focus/selection back to previously selected node. This matches
21831 MS, and makes the tree a lot more useable.
21832 * GroupBox.cs: Instead of drawing over the lines of the groupbox,
21833 use clipping so they are not drawn. This fixes when the control
21834 is set to have a transparent background, or if it was over an
21837 2006-09-01 Alexander Olk <alex.olk@googlemail.com>
21839 * MimeIcon.cs: Improved handling for reading default icons when
21840 using gnome (2.16 made it necessary). Check and read svg icons
21841 first, then 48x48 and then 32x32 icons.
21843 2006-08-31 Chris Toshok <toshok@ximian.com>
21845 * DataGridTextBoxColumn.cs: only hide the textbox if it's still
21848 * DataGridTextBox.cs: Pass Tab's up to the datagrid by calling
21849 ProcessKeyPreview. Fixes part of #77806.
21851 * DataGrid.cs: big patch.
21853 - revert the queueing up of DataSource/DataMember if inside
21854 BeginInit/EndInit calls. That's not the way the datagrid achieves
21855 its delayed databinding. Instead, call SetDataSource in
21856 OnBindingContextChanged. This mimic's MS's behavior, and fixes
21859 - Also, it wasn't mentioned in #78811, but the test case exhibits
21860 behavior that was lacking in our datagrid implementation - Columns
21861 that have mapping names that don't exist in the datasource's
21862 properties aren't shown. Yuck. To fix this I added the bound
21863 field to the column style, and basically any calculation to figure
21864 out anything about columns uses a loop to find the bound columns.
21865 still need to investigate if I can cache an array of the bound
21866 columns or if the indices must be the same.
21868 - When setting CurrentCell, we no longer abort if the cell being
21869 edited was in the add row. This fixes the other part of #77806.
21871 - The new code also fixes #78807.
21873 * ThemeWin32Classic.cs: perpetrate the same disgusting
21874 column.bound field hack, and only render bound fields.
21876 2006-08-31 Chris Toshok <toshok@ximian.com>
21878 * DataGridColumnStyle.cs: add bound field. this field is true if
21879 the datasource has a property corresponding to the mapping name.
21881 * DataGridTableStyle.cs: set the bound field on the column styles
21882 depending on whether or not we have a column for that property.
21884 2006-08-31 Peter Dennis Bartok <pbartok@novell.com>
21886 * Splitter.cs (SetBoundsCore): Don't ignore width/height of the
21887 splitter control (fixes #79228)
21889 2006-08-31 Chris Toshok <toshok@ximian.com>
21891 * DataGridColumnStyle.cs: we need to delay the assignment of
21892 property descriptor until the last possible moment due to the lazy
21893 databinding stuff in the datagrid. Also, fix the exceptions
21894 thrown by CheckValidDataSource to match MS.
21896 2006-08-31 Jackson Harper <jackson@ximian.com>
21898 * Form.cs: When activated select the active control, if there is
21899 no active control, we select the first control.
21900 * XplatUIX11.cs: If there is no focus control when we get a
21901 FocusIn event, find the toplevel form and activate it. This
21902 occurs when you popup a window, it becomes the focus window, then
21903 you close that window, giving focus back to the main window.
21905 2006-08-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
21907 * MonthCalendar.cs:
21908 * ThemeWin32Classic.cs: Cache Font in bold style, as well
21909 as StringFormat with Center alignments in MonthCalendar,
21910 instead of creating new ones when drawing the control.
21911 Also, draw the month name in bold style.
21913 2006-08-30 Peter Dennis Bartok <pbartok@novell.com>
21916 - PerformLayout(): It would seem MS performs the fill even if the
21917 control is not visible (part of #79218 fix)
21918 - ResetBackColor(): Use the setter to reset the color, to allow
21919 overriders to catch the change.
21921 - .ctor: Call UpdateBounds to adjust client rectangle (part of #79218 fix)
21922 - CreateHandle(): dito (part of $79218 fix)
21923 - Don't set an icon if we have a dialog
21924 * ScrollableControl.cs:
21925 - set_AutoScrollMinSize: Setting the property enables AutoScroll (#79218)
21926 - ScrollIntoView(): No need to scroll if control is already visible
21927 (resolves fixme and fixes #79218)
21929 2006-08-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
21931 * MonthCalendar.cs: Change proportions in SingleMonthSize
21932 to match the aspect of the original control.
21934 2006-08-29 Alexander Olk <alex.olk@googlemail.com>
21936 * XplatUIX11.cs: Fix for a metacity/X problem where windows don't
21937 get updated when they get maximized.
21939 2006-08-29 Peter Dennis Bartok <pbartok@novell.com>
21941 * XplatUIX11.cs: Handle windows with no border (Fixes part of #79160)
21943 2006-08-29 Chris Toshok <toshok@ximian.com>
21945 * XplatUIX11.cs: when destroying the FocusWindow, send KILLFOCUS.
21947 2006-08-29 Jackson Harper <jackson@ximian.com>
21949 * TreeView.cs: Need to track selected node and highlighted node,
21950 they aren't always the same thing, when the mouse is down on a
21951 node it is hilighted, but not selected yet.
21952 - Do the HideSelection stuff right
21953 - Need to focus on rbutton mouse down. And redraw selection when
21954 right click is mouse upped.
21956 2006-08-29 Mike Kestner <mkestner@novell.com>
21958 * ThemeWin32Classic.cs: draw selections for columns in FullRowSelect
21959 when SubItems.Count < Columns.Count. [Fixes #79167]
21961 2006-08-28 Peter Dennis Bartok <pbartok@novell.com>
21963 * TextControl.cs (FindCursor): Fix math error (Fixes #78402)
21965 2006-08-28 Peter Dennis Bartok <pbartok@novell.com>
21967 * XplatUIX11.cs: Preempt the roundtrip for getting the location back
21968 from X. Only send based on ConfigureNotify if we don't have the
21969 correct location in hwnd (if the window manager moved us)
21971 2006-08-28 Mike Kestner <mkestner@novell.com>
21973 * ListView.cs: remove a TODO.
21974 * ThemeWin32Classic.cs: implement HideSelection support for ListView.
21975 [Fixes ListView part of #79166]
21977 2006-08-28 Mike Kestner <mkestner@novell.com>
21979 * ListView.cs: move wheel handler to parent since it is focused
21980 instead of the item_control now. [Fixes #79177]
21982 2006-08-28 Mike Kestner <mkestner@novell.com>
21984 * ThemeWin32Classic.cs: only highlight subitems in fullrowselect
21985 when the control is focused. [Fixes #79171]
21987 2006-08-28 Mike Kestner <mkestner@novell.com>
21989 * ListView.cs: size the item and header controls for empty and
21990 unscrollable views.
21991 * ThemeWin32Classic.cs: draw disabled backgrounds.
21994 2006-08-28 Chris Toshok <toshok@ximian.com>
21996 * Form.cs: remove unused "active_form" static field.
21998 * Hwnd.cs: lock around accesses to static windows collection.
22000 * Application.cs: lock threads in Exit ().
22002 2006-08-28 Chris Toshok <toshok@ximian.com>
22004 * NativeWindow.cs: lock around accesses to window_collection.
22006 2006-08-28 Chris Toshok <toshok@ximian.com>
22008 * Control.cs: err, fix this the right way, by locking on controls
22009 when using it. not by making it synchronized.
22011 2006-08-28 Chris Toshok <toshok@ximian.com>
22013 * Control.cs: make the static "controls" field synchronized, as it
22014 gets updated from multiple threads.
22016 2006-08-27 Peter Dennis Bartok <pbartok@novell.com>
22018 * XplatUIX11.cs: PostQuitMessage is thread-specific not app-specific.
22019 Prevent other threads from exiting when calling thread sets quit state.
22020 * XEventQueue.cs: Added PostQuitState property
22022 2006-08-27 Chris Toshok <toshok@ximian.com>
22024 * AsyncMethodData.cs: add a slot for the window handle.
22026 * XplatUIX11.cs (SendAsyncMethod): send the event to the right
22027 window (the destination control's window, not the foster window).
22029 * Control.cs (BeginInvokeInternal): store the window's handle in
22030 the AsyncMethodData.
22033 2006-08-27 Peter Dennis Bartok <pbartok@novell.com>
22036 - PostQuitMessage: Removed resetting S.D display handle, we might have
22037 another loop started after calling PostQuitMessage (Fixes #79119)
22038 - Created destructor to reset S.D handle
22040 2006-08-27 Peter Dennis Bartok <pbartok@novell.com>
22042 * XplatUIX11.cs (SetCursor): Issue flush after setting the cursor (#79168)
22044 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
22046 * TextControl.cs (Insert): Update the caret position even if we don't
22047 have a handle yet, just don't call the driver in that case.
22048 * TextBoxBase.cs (set_SelectedText): Set the Start and End selection
22049 to the end of the new selection text (Fixes #79184)
22051 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
22053 * Form.cs (Activate): Only activate if the handle is created)
22055 - Mark window as invisible when it's disposed
22056 - Check if window handle is created when setting window visible,
22057 instead of relying just on the is_created variable
22058 - Check if object is disposed when creating the control (Fixes #79155)
22060 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
22062 * ScrollableWindow.cs (ScrollWindow): Don't actually perform layouting
22063 when allowing layout again. Otherwise we re-generate the anchoring
22064 distance to the border again and actually alter what the user wanted
22065 This is ugly, it'd be better if we used DisplayRectangle instead of
22066 ClientRectangle for Control.UpdateDistances, but that causes us to
22067 have other problems (initial anchoring positons would be wrong)
22070 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
22073 - The size and location setters shouldn't go directly to
22074 SetBoundsCore, but to SetBounds, which triggers layout on the
22075 parent, then calls SetBoundsCore. (Related to fix for #78835)
22076 - SetBounds: Moved actual location update code into this function
22077 from SetBoundsCore, to match MS. Added call to PerformLayout if
22078 we have a parent (to trigger resizing of anchored parents if the
22079 child size has changed (see testcase for #78835)
22080 * ListBox.cs, Form.cs: Call SetBounds instead of SetBoundsCore to match
22082 * ScrollableControl.cs (CalculateCanvasSize): Use shortcut variable
22084 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
22086 * XplatUIX11.cs: Don't reset the DisplayHandle that's stored in
22087 System.Drawing when a toplevel window gets closed; there might
22088 be other toplevel windows belonging to the same app (Fixes #78052)
22090 2006-08-26 Alexander Olk <alex.olk@googlemail.com>
22092 * FileDialog.cs: After reading FileDialog settings from mwf_config
22093 use Desktop prefix only if a real folder doesn't exist anymore.
22094 * FontDialog.cs: Added char sets.
22095 It is now possible to select the font, size or style with the
22098 2006-08-25 KornĂ©l PĂ¡l <kornelpal@gmail.com>
22100 * PrintPreviewDialog.cs: Use assembly name constants.
22102 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
22104 * XplatUIWin32.cs (ScrollWindow): Use clipping rectangle arg (prevents
22105 scrollbar from whacking it's buttons)
22107 2006-08-24 Chris Toshok <toshok@ximian.com>
22109 * ScrollableControl.cs: fix #78271. There's a lot of misc stuff
22110 in this patch (aggregating setting Left/Top/Width/Height to
22111 setting Bounds on the scrollbars), but the crux of the fix is in
22112 Recalculate, where we scroll by the remaining scroll_position if
22113 we're hiding a scrollbar. The 2*$5 reward in the comment is
22116 2006-08-24 Jackson Harper <jackson@ximian.com>
22119 * MdiWindowManager.cs: If the form is made a non-mdi window we
22120 need to remove the form closed event so that closing forms works
22123 2006-08-24 Jackson Harper <jackson@ximian.com>
22125 * Control.cs: Make IsRecreating internal so that the driver can
22127 - Temporarily remove the Hide when controls are removed, its
22128 making a whole bunch of things not work because visibility isn't
22129 getting reset elsewhere correctly
22130 * Form.cs: Need to do a full handle recreation when the mdi parent
22132 * XplatUIX11.cs: If we are recreating handles don't dispose the
22133 HWNDs. What was happening is the handles were being recreated in
22134 SendWMDestroyMessages, but then flow continued on in that method
22135 and destroyed the new handles.
22137 2006-08-23 Jackson Harper <jackson@ximian.com>
22139 * Form.cs: MdiClient is always at the back of the bus
22140 * Control.cs: When the order of items in the collection is changed
22141 we need to reset the all_controls array
22142 - do the same sorta setup thats done when adding a control when a
22143 control is set on the collection.
22145 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
22147 * TextBoxBase.cs (get_Text): Return an empty array if our document
22148 is empty (fixes #79052)
22150 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
22152 * Control.cs: We should call IsInputChar on only on WM_CHAR but not
22153 on WM_SYSCHAR messages (fixes #79053)
22155 2006-08-23 Chris Toshok <toshok@ximian.com>
22157 * DataGrid.cs: fix flickering when scrolling vertically.
22159 2006-08-23 Chris Toshok <toshok@ximian.com>
22161 * DataGrid.cs (EndEdit): only invalidate the row header when we
22164 2006-08-23 Chris Toshok <toshok@ximian.com>
22166 * ThemeWin32Classic.cs: fix the clip munging of the datagrid paint
22167 methods. fixes the flicker when scrolling around.
22169 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
22171 * FileDialog.cs: Making sure the control is created before we get a
22172 chance to use it with BeginInvoke (Fixes #79096)
22174 2006-08-23 Chris Toshok <toshok@ximian.com>
22176 * ThemeWin32Classic.cs (DataGridPaintRows): calculate the proper
22177 width to use when painting the rows.
22179 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
22182 - Throw ArgumentException if a negative value is passed to SelectionLength
22183 - Update the selection end if start is moved. end needs to be always
22184 after start. (Fixes #79095)
22185 - Track selection length; MS keeps the selection length even if start
22186 is changed; reset on all other operations affection selection
22188 2006-08-22 Jackson Harper <jackson@ximian.com>
22190 * TreeView.cs: Make sure both scrollbars get displayed and sized
22191 correctly when the other bar is visible.
22192 - Use the original clip rectangle for checking if the area between
22193 the two scrollbars is visible, not the viewport adjusted clipping
22196 2006-08-22 Jackson Harper <jackson@ximian.com>
22198 * Binding.cs: We don't use IsBinding because it requires the
22199 control to be created, which really shouldn't be necessary just to
22200 set a property on the control.
22202 2006-08-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
22204 * ComboBox.cs: Some CB.ObjectCollection methods must throw
22205 ArgumentNullReferenceException when the argument is null.
22207 2006-08-21 Jackson Harper <jackson@ximian.com>
22209 * Timer.cs: Track the thread that the timer is started in (NOT
22210 CREATED), this way messages for it will only be triggered on its
22212 * XEventQueue.cs: Track the timers here, this makes timers per
22214 * XplatUIX11.cs: The timers are moved to the XEventQueue.
22216 2006-08-19 Chris Toshok <toshok@ximian.com>
22218 * XplatUIX11.cs: after further communication with pdb, we get the
22219 best of both worlds. SetZOrder working for un-Mapped windows, and
22220 no X errors for un-mapped windows.
22222 2006-08-19 Chris Toshok <toshok@ximian.com>
22224 * XplatUIX11.cs (SetZOrder): remove the if (!hwnd.mapped) check,
22225 as it was causing pdn toolbars to not have the correct stacking.
22227 2006-08-18 Mike Kestner <mkestner@novell.com>
22229 * ListView.cs : guard against negative ClientArea.Width in scrollbar
22230 calculation. Not sure why control should ever be setting a negative
22231 width though. Fixes #78931.
22233 2006-08-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
22235 * ComboBox.cs: Throw ArgumentNullException when adding/modifyng
22236 null items in ObjectCollection class.
22237 * ListBox.cs.: Likewise.
22239 2006-08-18 Atsushi Enomoto <atsushi@ximian.com>
22241 * ThemeNice.cs, ThemeClearlooks.cs : remove RadioButton_DrawFocus()
22242 as the base method in ThemeWin32Classic should work fine.
22245 2006-08-18 Jackson Harper <jackson@ximian.com>
22247 * Binding.cs: When validating if the value entered doesn't convert
22248 properly reset to the old value.
22249 * RadioButton.cs: Don't fire click when we get focus.
22251 2006-08-18 Jackson Harper <jackson@ximian.com>
22253 * FileDialog.cs: Paint the selection on the directory combobox the
22256 2006-08-17 Jackson Harper <jackson@ximian.com>
22258 * ErrorProvider.cs: Don't allow the error control to be selected.
22259 * Control.cs: Don't send the SetFocus messages, the control
22260 activation will do this, and if we do it blindly here validation
22263 2006-08-17 Jackson Harper <jackson@ximian.com>
22266 * ContainerControl.cs: Make validation events fire in the correct
22267 order. TODO: For some reason the first validation event is not
22270 2006-08-17 Mike Kestner <mkestner@novell.com>
22272 * ComboBox.cs : some null guarding for ComboListBox.Scroll.
22274 2006-08-17 Mike Kestner <mkestner@novell.com>
22276 * ComboBox.cs : implement scroll wheel support for popped-down
22277 state. Fixes #78945.
22279 2006-08-17 Jackson Harper <jackson@ximian.com>
22281 * TreeView.cs: Specify treeview actions (old patch that didn't get
22282 committed for some reason).
22283 - Don't let the mouse wheel scroll us too far. Just want to make
22284 the bottom node visible, not scroll it all the ways to the top.
22286 2006-08-17 Jackson Harper <jackson@ximian.com>
22288 * XplatUIX11.cs: Mouse wheel events go to the focused window.
22290 2006-08-17 Mike Kestner <mkestner@novell.com>
22292 * ComboBox.cs : don't do mouseover selection in simple mode.
22294 2006-08-16 Jackson Harper <jackson@ximian.com>
22296 * Form.cs: Fire the closing events for all the mdi child windows
22297 when a window is closed. If the cancel args are set to true, the
22298 main window still gets the event fired, but it doesn't not close.
22299 * MdiWindowManager.cs: Do this closing cleanup in a Closed
22300 handler, instead of when the button is clicked, so cancelling the
22301 close works correctly.
22302 * ComboBox.cs: Send the mouse down to the scrollbar.
22304 2006-08-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
22306 * ListBox.cs: When passing 'null' to SelectedItem,
22307 set SelectedIndex to -1, to unselect items. This is the
22308 observed behaviour in .Net.
22310 2006-08-16 Peter Dennis Bartok <pbartok@novell.com>
22312 * TextBoxBase.cs: Overriding HandleClick to get clicks in spite of
22313 MS flags saying there won't be any. (fixes #78800)
22314 * Control.cs (HandleClick): Made virtual
22316 2006-08-16 Atsushi Enomoto <atsushi@ximian.com>
22318 * PageSetupDialog.cs : use Yard-Pound units only in en-GB and en-US
22319 cultures. Fixed bug #78399.
22321 2006-08-16 Jackson Harper <jackson@ximian.com>
22323 * Form.cs: Use the MdiClients MdiChildren property to access
22324 MdiChildren instead of creating the array from the child controls.
22325 * MdiClient.cs: Maintain a separate array of the mdi children, so
22326 that insertion order is maintained when the Z-order is changed.
22328 2006-08-16 Mike Kestner <mkestner@novell.com>
22330 * ListView.cs : add an ItemComparer and default to it for sorting.
22331 Fixes #79076, but sorting needs a complete overhaul to be compat with
22334 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
22336 * XplatUIX11.cs (SetZOrder): Fix debugging leftover (fixes #79080)
22338 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
22340 * Hwnd.cs (Mapped): Properly traverse the tree
22342 2006-08-15 Chris Toshok <toshok@ximian.com>
22344 * Binding.cs: fix PullData/SetPropertyValue. We don't want to
22345 pass manager.Current.GetType() to ParseData. It has to be the
22346 property type. So, hold off doing the ParseData until we're in
22347 SetPropertyValue where we know the type. This fixes the crash in
22348 #78821 but the textbox is still empty.
22350 2006-08-15 Chris Toshok <toshok@ximian.com>
22353 - when we're scrolling, only call Edit() again if the
22354 current cell is still unobscured. Fixes bug #78927.
22355 - when handling mousedown on a cell, ensure the cell is visible
22356 before calling Edit.
22357 - remove the properties from DataGridRow, and remove the
22358 DataGridParentRow class altogether.
22361 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
22363 * TextBoxBase.cs (set_Text): Don't use base.Text, instead just
22364 fire OnTextChanged by ourselves. There's no point calling base,
22365 we don't set the base value anywhere else. Fixes #78773.
22367 2006-08-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
22369 * ListBox.cs: Call CollectionChanged when modifying
22370 an item from Items indexer, to update the actual items
22373 2006-08-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
22375 * PrintDialog.cs: Small fixes for focus and a pair of checks,
22376 to match .Net behaviour.
22378 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
22380 * XplatUIX11.cs (SetZOrder): Handle raising toplevel windows
22382 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
22384 * Control.cs: Handle BringToFront for toplevel windows (Fixes #78737)
22386 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
22388 * MessageBox.cs: Prevent potential NRE exception.
22389 * TextBoxBase.cs: AutoSize only applies if MultiLine is false. Fixes #78889
22391 2006-08-14 Peter Dennis Bartok <pbartok@novell.com>
22393 * MessageBox.cs: Calculate the owner of a messagebox, also make
22394 it topmost. Fixes #78753
22396 2006-08-14 Chris Toshok <toshok@ximian.com>
22398 * XplatUIX11.cs: A couple of fixes so that metacity will let us
22399 programmatically move windows. first, set the PPosition hint as
22400 well as the USPosition hint. Second include some code from pdb
22401 that sets the window type to NORMAL when we set the transient for
22402 hint. This is because, in the absence of a window type, metacity
22403 thinks any window with TransientFor set is a dialog, and refuses
22404 to let us move it programmatically. fascists.
22406 2006-08-14 Peter Dennis Bartok <pbartok@novell.com>
22408 * XplatUIX11.cs: When setting normal hints, take into consideration
22409 an different hints previously set so we don't delete them (fixes #78866)
22411 2006-08-12 Chris Toshok <toshok@ximian.com>
22413 * ToolBarButton.cs: make Layout return a boolean, if something to
22414 do with the button's layout changed.
22417 - add another parameter to Redraw, @force, which all existing
22419 - make the Layout function return a boolean which is true if the
22420 layout has actually changed. Redraw now uses this (and @force)
22421 to determine when to invalidate. At present the only place
22422 where @force can be false is the call from OnResize, when
22423 background_image == null. So, resizing a toolbar when the
22424 layout doesn't change results in no drawing.
22426 2006-08-12 Chris Toshok <toshok@ximian.com>
22428 * ThemeWin32Classic.cs: fix the bottom right corner painting. had
22429 the VScrollBar and HScrollbar reversed. oops.
22431 * DataGrid.cs: fix the logic that assigns sizes to the implicit
22432 scrollbars. we were assigning them twice (once in
22433 Calc{Horiz,Vertical}Scrollbar, and once in CalcGridAreas),
22434 therefore causing two scrollbar resizes (and redraws?) to happen
22437 2006-08-12 Chris Toshok <toshok@ximian.com>
22439 * ToolBarButton.cs: redraw the entire button if the theme tells us
22442 * Theme.cs: add ToolBarInvalidateEntireButton.
22444 * ThemeWin32Classic.cs: we don't need to redraw the entire toolbar
22445 buttons, just the border.
22447 * ThemeNice.cs: redraw the entire toolbar button since we need to
22448 draw the highlight image.
22450 * ThemeClearlooks.cs: the rounded corners of toolbar buttons mean
22451 we need to redraw the entire button (not just the border).
22453 2006-08-11 Peter Dennis Bartok <pbartok@novell.com>
22455 * TextBoxBase.cs (CalculateScrollbars): Set the proper thumb size
22456 for vertical bars. Fixes the mismatches shown by #78513
22458 2006-08-11 Alexander Olk <alex.olk@googlemail.com>
22460 * FileDialog.cs: If a saved/remembered path doesn't exist
22461 anymore, fall back to "Desktop".
22463 2006-08-11 Peter Dennis Bartok <pbartok@novell.com>
22465 * Form.cs (CreateParams): Don't use Parent.Handle unless we have a
22466 parent. It's apparently legal to not have one
22468 - SetZOrder: Don't try to set Z-Order on an unmapped window
22469 - CreateWindow: 0,0 are legal coordinates for a window. don't move
22470 it unless the coordinates are negative
22472 2006-08-10 Mike Kestner <mkestner@novell.com>
22474 * ListControl.cs: allow null for DataSource. Clear DisplayMember
22475 when setting to null per msdn docs. Fixes #78854.
22477 2006-08-10 Chris Toshok <toshok@ximian.com>
22479 * Menu.cs, MainMenu.cs, MenuAPI.cs: get rid of most of the
22480 flickering by setting a clip rectangle on the Graphics when we
22481 need to redraw just a particular menuitem. Also, rename "OnClick"
22482 to "OnMouseDown" to reflect what it actually is.
22484 * Form.cs: track the OnMouseDown change.
22486 2006-08-10 Peter Dennis Bartok <pbartok@novell.com>
22488 * CommonDialog.cs: Properly inherit the CreateParams from the form
22489 and only change what we need. Fixes #78865
22491 2006-08-10 Chris Toshok <toshok@ximian.com>
22493 * ToolBar.cs, ToolBarButton.cs: fix the redraw-on-highlight
22494 flickering in flat mode (and most of the flickering in general) by
22495 only invalidating the button border (and not the entire rectangle)
22496 when the state changes. A couple of cases still flicker:
22497 ToggleButtons, and the dropdown arrow case when the user mouse
22500 2006-08-10 Alexander Olk <alex.olk@googlemail.com>
22502 * X11Keyboard.cs: Fixed handling of the Del key on the cursorblock
22503 for german keyboards. Numlock state shouldn't affect the behaviour
22504 of the Del key. Fixes bug #78291.
22506 2006-08-10 Chris Toshok <toshok@ximian.com>
22508 * ListControl.cs: remove the items.Clear line from BindDataItems,
22509 as this is the first thing done by both subclasses in their
22510 SetItemsCore overrides. Also, add a ItemChanged handler, and when
22511 passed -1, refresh the list. This gets databinding working when
22512 the datasource is set on the list before the datasource is
22513 populated (as in wf-apps/ReportBuilder.)
22515 * ComboBox.cs: remove the argument to BindDataItems. This call
22516 should really go away, and be initiated by the ListControl code.
22518 * ListBox.cs: same.
22520 2006-08-09 Peter Dennis Bartok <pbartok@novell.com>
22522 * TextControl.cs (Document.ctor): Initialize caret so we don't crash
22523 if no data is in the document when the control is displayed
22525 2006-08-09 Peter Dennis Bartok <pbartok@novell.com>
22527 * TextBoxBase.cs: Don't try moving the caret if we don't have a window
22530 - PositionCaret: Allow positioning of caret but don't call methods
22531 requiring a handle if the window isn't created yet
22532 - CharIndexToLineTag: Fix ending loop early error. Lines is 1 based
22533 - owner_HandleCreated: Don't position the caret, just update it's
22534 location. User might have already set a different position
22536 2006-08-09 Peter Dennis Bartok <pbartok@novell.com>
22538 * XplatUIWin32.cs: Don't use the desktop as basis for foster-parented
22539 windows. Screws up the returned coordinates for child windows.
22540 Fixes #78825. I'm hoping this doesn't break something, since the
22541 code was explicitly put in 8 months ago, but no bug was attached.
22542 Menus still seem to work properly.
22544 2006-08-08 Chris Toshok <toshok@ximian.com>
22546 * DataGrid.cs: make BeginInit/EndInit actually do what they're
22547 supposed to do - delay data binding until the EndInit call. Also,
22548 make the table style collection's CollectionChangeAction.Refresh
22551 * GridTableStylesCollection.cs: raise a CollectionChangeEvent
22552 (with action = Refresh) when a consituent table's MappingName is
22555 2006-08-08 Chris Toshok <toshok@ximian.com>
22557 * ToolBarButton.cs: in set_Text, call Parent.Redraw, not
22558 Invalidate, since changing the text can change the size of the all
22561 2006-08-08 Peter Dennis Bartok <pbartok@novell.com>
22563 * Form.cs (AddOwnedForm): Still need to add the form to our listif
22564 we don't have it yet
22566 2006-08-08 Chris Toshok <toshok@ximian.com>
22568 * PrintControllerWithStatusDialog.cs: don't .Close() the status
22569 dialog, as this causes X errors later on, since we actually
22570 destroy the window. Instead, .Hide() it.
22572 2006-08-08 Peter Dennis Bartok <pbartok@novell.com>
22574 * ComboBox.cs: Added focus reflection for popup window
22576 - Removed transient setting for non-app windows for now, not sure it
22578 - Fixed logic checking if we have captions when deciding
22579 override_redirect, WS_CAPTION is two bits and a 0 check was not
22581 - Removed the WINDOW_TYPE stuff, it was unneeded and making things
22584 - AddOwnedForm: Don't just add the form to the list, call the property
22585 to ensure the driver is informed about the ownership as well
22586 - CreateHandle: Set the TopMost status in the driver if we have an owner
22587 * XplatUI.cs: Fixed debug statement
22589 2006-08-08 Jonathan Pobst <monkey@jpobst.com>
22590 * ButtonRenderer.cs, CheckBoxRenderer.cs, ComboBoxRenderer.cs
22591 GroupBoxRenderer.cs, ProgressBarRenderer.cs, RadioButtonRenderer.cs,
22592 ScrollBarRenderer.cs, TabRenderer.cs, TextBoxRenderer.cs,
22593 TrackBarRenderer.cs: Make constructor private.
22594 * ProfessionalColors.cs, ProfessionalColorTable.cs: Fix misnamed properties.
22595 * ProfessionalColorTable.cs: Make properties virtual.
22597 2006-08-06 Duncan Mak <duncan@novell.com>
22599 * NumericUpDown.cs (Value): Don't call OnValueChanged if the value
22602 2006-08-04 Jonathan Pobst <monkey@jpobst.com>
22603 * ButtonRenderer.cs, CheckBoxRenderer.cs, ComboBoxRenderer.cs
22604 GroupBoxRenderer.cs, ProfessionalColors.cs, ProfessionalColorTable.cs,
22605 ProgressBarRenderer.cs, RadioButtonRenderer.cs, ScrollBarRenderer.cs,
22606 TabRenderer.cs, TextBoxRenderer.cs, TextRenderer.cs, TrackBarRenderer.cs:
22607 Initial import of new 2.0 classes.
22609 2006-08-04 Jonathan Pobst <monkey@jpobst.com>
22610 * Application.cs: Add 2.0 VisualStyles properties.
22612 2006-08-04 Jonathan Pobst <monkey@jpobst.com>
22613 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
22614 XplatUIX11.cs: Create property to allow access to existing private
22615 variable "themes_enabled"
22617 2006-08-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
22619 * ImageListStreamer.cs: generate the MemoryStreams with the exact BMP
22620 file size, as otherwise our class libraries fail using windows. Fixes
22623 2006-08-04 Jackson Harper <jackson@ximian.com>
22626 * XplatUIX11.cs: Move the toolwindow window manager creation into
22627 the X11 driver, this way on win32 we can let windows create/handle
22630 2006-08-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
22632 * PrintDialog.cs: Remove some redundant checks, add some others,
22633 clean some code, and move the focus to the text boxes when the
22634 values are incorrect.
22636 2006-08-04 Alexander Olk <alex.olk@googlemail.com>
22638 * FontDialog.cs: Remove Form.MinimumSize. It's not needed.
22640 2006-08-03 Alexander Olk <alex.olk@googlemail.com>
22642 * NumericUpDown.cs: Setting the Minimum and Maximum is now
22643 handled correctly. Fixes bug #79001.
22645 2006-08-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
22647 * PrintDialog.cs: The "Copies" numeric up down must have
22648 set the Minimum property to 1; only if the value is bigger
22649 than 1, activate "Collate" check box. This is the behaviour of .Net.
22650 Also modify the Document elements only if it is not null.
22652 2006-08-03 Jackson Harper <jackson@ximian.com>
22654 * TreeNodeCollection.cs: Fix copyto to use the correct nodes
22655 length. (We have a larger array then actual node count).
22657 2006-08-03 Jackson Harper <jackson@ximian.com>
22659 * ComboBox.cs: Don't show selection by default.
22660 - The SelectAll isn't needed here, since the focus code should do
22662 - DDL style lists to manual selection drawing, so when they
22663 get/lose focus they have to invalidate.
22665 2006-08-03 Peter Dennis Bartok <pbartok@novell.com>
22667 * TextBoxBase.cs: Don't always show all selections by default.
22669 2006-08-03 Jonathan Pobst <monkey@jpobst.com>
22670 * ControlUpdateMode.cs, DataSourceUpdateMode.cs,
22671 HelpNavigator.cs, WebBrowserEncryptionLevel.cs:
22672 Fixed various typos.
22674 2006-08-03 Alexander Olk <alex.olk@googlemail.com>
22676 * Control.cs: Removing the controls in a ControlCollection with
22677 Clear now hides the controls as expected. Fixes bug #78804.
22679 2006-08-03 Jackson Harper <jackson@ximian.com>
22681 * Control.cs: Revert previous focus patch, it breaks reflector.
22683 2006-08-03 Jackson Harper <jackson@ximian.com>
22685 * ComboBox.cs: Cleanup selection and focus with the combobox.
22686 This also eliminates some duplicated keyboard code, since now
22687 everything is handled by the main class.
22688 - Make list selection work on mouse up instead of down, to match
22691 2006-08-02 Jackson Harper <jackson@ximian.com>
22693 * Control.cs: Setting focus needs to go through the whole
22694 selection mechanism.
22696 2006-08-02 Chris Toshok <toshok@ximian.com>
22698 * PrintPreviewDialog.cs: change MinimumSize to use
22699 base.MinimumSize so it works.
22701 2006-08-02 Peter Dennis Bartok <pbartok@novell.com>
22704 - UpdateCaret: Added sanity check in case caret isn't defined yet
22705 - Line.Delete: Now updating selection and caret markers if we're
22706 transfering a node (Properly fixes #78323)
22707 - SetSelectionEnd: Added sanity check
22708 * TextBoxBase.cs: Removed broken attempt to fix #78323
22710 2006-08-01 Chris Toshok <toshok@ximian.com>
22712 * PrintPreviewDialog.cs: the CancelEventArgs stuff surrounding the
22713 Close() call is handled in Form, not here.
22715 2006-08-01 Chris Toshok <toshok@ximian.com>
22717 * Theme.cs, ThemeWin32Classic.cs: fix the PrintPreviewControl
22720 * PrintPreviewDialog.cs: add scrollbars, and add an image cache
22721 for sizes < 100% zoom. The code now aggressively attempts to keep
22722 from calling document.Print (), and tries not to use the scaling
22723 g.DrawImage whenever possible (it still does if you scale to >
22724 100%, since usually that involves huge images).
22726 * PrintPreviewControl.cs: hook up the close button.
22728 2006-08-01 Jonathan Pobst <monkey@jpobst.com>
22729 * ColumnClickEventHandler.cs, DrawItemEventHandler.cs,
22730 ItemChangedEventHandler.cs, ItemCheckEventHandler.cs,
22731 ItemDragEventHandler.cs, LabelEditEventHandler.cs,
22732 LinkClickedEventHandler.cs, LinkLabelLinkClickedEventHandler.cs,
22733 MeasureItemEventHandler.cs, MethodInvoker.cs, PaintEventHandler.cs,
22734 PropertyTabChangedEventHandler.cs, PropertyValueChangedEventHandler.cs,
22735 SelectedGridItemChangedEventHandler.cs, ToolBarButtonClickEventHandler.cs:
22736 Removed [Serializable] for 2.0 Event Handlers.
22738 2006-07-31 Jackson Harper <jackson@ximian.com>
22740 * TextBoxBase.cs: Make ShowSelection invalidate when changed.
22741 * TextControl.cs: Uncomment out the body of this method.
22743 2006-07-31 Alexander Olk <alex.olk@googlemail.com>
22745 * XplatUIX11.cs: Use the correct cursor shapes for arrow and default
22748 2006-07-31 Peter Dennis Bartok <pbartok@novell.com>
22750 * TextBoxBase.cs: Added internal property ShowSelection to allow controls
22751 that embed TextBox and need selections visible even if textbox is not
22752 focused to enforce that behaviour.
22753 * TextControl.cs (Draw): Use ShowSelection instead of has_focus to determine
22756 2006-07-31 Peter Dennis Bartok <pbartok@novell.com>
22759 - Added new SetSelectionStart/SetSelectionEnd overloads
22760 - Fixed viewport width assignment to be accurate
22761 - Adjusted alignment line shift calculations to allow cursor on right
22762 aligned lines to be always visible at the right border (like MS)
22764 - SetBoundsCore: Re-adjust caret location after resize (Fixes #78323)
22765 - TextBoxBase_SizeChanged: recalculating canvas on size changes
22766 - CalculateScrollBars: Use ViewPort size instead of window size, to
22767 properly consider space occupied by the border and scrollbars
22769 - hscroll_ValueChanged, vscroll_ValueChanged: Fixed scroll
22770 calculations; no longer leaves artifacts
22771 - CaretMoved: Adjusted window scrolling to match MS and fixed several
22772 calculation bugs (Still missing right/center align calculations)
22774 2006-07-31 Peter Dennis Bartok <pbartok@novell.com>
22776 * XPlatUIWin32.cs: Made ScrollRectEx a bit more flexible, and removed
22777 use of both scroll rect and clip rect, as they do the same.
22779 2006-07-31 Peter Dennis Bartok <pbartok@novell.com>
22781 * Control.cs (WM_CHAR WndProc): 2.0 profile allows changing the key
22782 in the event handler (fixes #78912)
22784 2006-07-31 Chris Toshok <toshok@ximian.com>
22786 * ThemeWin32Classic.cs: use grid.RowsCount here instead of
22787 grid.ListManager.Count, since grid.ListManager might be null.
22788 This of course begs the question "why are we drawing rows for a
22789 grid with no list manager (and therefor no rows)?" Fixes the
22790 crash in bug #78929.
22792 2006-07-31 Chris Toshok <toshok@ximian.com>
22794 * RelatedPropertyManager.cs: Don't always chain up to the parent
22795 ctor. instead, call SetDataSource if the parent's position is !=
22796 -1. Fixes the crash in #78822.
22798 2006-07-31 Chris Toshok <toshok@ximian.com>
22800 * DataGrid.cs (get_ListManager): use field instead of property
22801 accessors for datasource and datamember.
22802 (RowsCount): make internal again.
22803 (OnMouseDown): end edits before resizing columns/rows.
22804 (OnMouseUp): restart edits after resizing columns/rows.
22806 2006-07-30 Peter Dennis Bartok <pbartok@novell.com>
22808 * XplatUIX11.cs: Default cursor cannot be 0 or it will not get set.
22809 This fixes the situation where the last set cursor is displayed
22810 whenever the mouse is over scrollbars.
22812 2006-07-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
22814 * PrintDialog.cs: Fix the behaviour of PrinterSettings and
22815 Document properties, as well as initial values.
22817 2006-07-29 Peter Dennis Bartok <pbartok@novell.com>
22819 * XplatUIWin32.cs (SetBorderStyle): Setting both border
22820 and ClientEdge results in a 3-pixel border, which is
22823 2006-07-28 Jackson Harper <jackson@ximian.com>
22825 * TreeNodeCollection.cs: Fix the clear method.
22826 - Fix the Shrink also
22828 2006-07-27 Jackson Harper <jackson@ximian.com>
22830 * TreeView.cs: Make sure the visible order is computed when we
22831 attempt to size the scrollbars (for trees that mess with the
22832 scrolling when they shouldn't.
22833 - Make sure to give the scrollbars valid values.
22835 2006-07-26 Peter Dennis Bartok <pbartok@novell.com>
22837 * XplatUIX11.cs: Move motion compression code to where it
22838 has less performance impact
22840 2006-07-26 Jackson Harper <jackson@ximian.com>
22842 * UpDownBase.cs: When the control is selected make the child
22843 controls non selectable, so that a click on them won't do a
22844 focus/unfocus cycle.
22845 - Don't give focus to the text box when the spinner is selected.
22846 * XEventQueue.cs: Peek on both the x11 queue and the lock queue.
22848 2006-07-26 Chris Toshok <toshok@ximian.com>
22850 * ThemeWin32Classic.cs: add print preview rendering. I'm not
22851 satisfied with this solution. If the bitmaps are small, we should
22852 just cache them in the PrintPreviewDialog and draw them here.
22853 Also, the layout is broken for the 2-up and 3-up cases.
22855 * Theme.cs: add PrintPReviewControlPaint.
22857 * PrintPreviewDialog.cs: first pass implementation.
22859 * PrintPreviewControl.cs: first pass implementation. No
22862 * PrintDialog.cs: only validate fields if that particular portion
22863 of the UI is enabled. Also, set the document's controller to a
22864 PrintControllerWithStatusDialog wrapping the document's print
22867 * PrintControllerWithStatusDialog.cs: if we're printing to a file,
22868 bring up a SaveFileDialog (i hope we don't want to match the
22869 behavior of the crappy windows file entry) and set the
22870 PrinterSettings.PrintFileName accordingly.
22872 2006-07-26 Jackson Harper <jackson@ximian.com>
22874 * ContainerControl.cs: Add a field that disables auto selecting
22875 the next control in a container when the container is activated.
22876 * UpDownBase.cs: Don't select the text box when the up down is
22879 2006-07-26 Peter Dennis Bartok <pbartok@novell.com>
22881 * XEventQueue.cs: Added methods for peeking (used for compression
22882 of successive events)
22883 * XplatUIX11.cs (GetMessage): We're now compressing consecutive
22884 mouse move events (fixes #78732)
22886 2006-07-25 Jackson Harper <jackson@ximian.com>
22888 * UpDownBase.cs: Use an internal class for the textbox so that we
22889 can control focus. the updown control should always have focus,
22890 if either the text area or the buttons are clicked.
22891 - Send the key messages to the textbox, since it never actually
22893 - Activate and decativate the textbox caret.
22895 2006-07-24 Jackson Harper <jackson@ximian.com>
22897 * Control.cs: Use the directed select when selecting a control,
22898 this way the container controls override will get called and the
22899 whole ActiveControl chain will get triggered. TODO: probably need
22900 to make sure this gets done everywhere instead of the old
22902 * ContainerControl.cs: Implement the directed Select method to
22903 find and activate the correct child control.
22905 2006-07-22 Mike Kestner <mkestner@novell.com>
22907 * Form.cs: use Control.MousePosition for NCLBUTTONDOWN in the menu
22908 menu handling code so that clicks without a grab work too.
22911 2006-07-22 Alexander Olk <alex.olk@googlemail.com>
22913 * FileDialog.cs: Enable the BackButton when dirstack has one element.
22914 Added some small optimizations.
22916 2006-07-21 Matt Hargett <matt@use.net>
22918 * Control.cs: Implemented 2.0 MinimumSize/MaximumSize properties
22920 2006-07-21 Peter Dennis Bartok <pbartok@novell.com>
22922 * Control.cs (GetNextControl): Fixes to make all of Jackson's unit
22923 tests pass and match MS in some strange border cases.
22925 2006-07-21 Chris Toshok <toshok@ximian.com>
22927 * ThemeWin32Classic.cs: handle drawing of the relation links and
22928 parent row buttons.
22930 * Theme.cs: change args to DataGridPaintParentRow.
22932 * DataGrid.cs: Don't use controls for the relation links and
22933 parent buttons, so we have to handle all their interactions in
22934 MouseMove, MouseDown, MouseUp, etc. Also, store a lot more stuff
22935 when we're navigating through child tables, so we can reinstate
22936 selection, expanded state, current cell, etc.
22938 2006-07-20 Chris Toshok <toshok@ximian.com>
22940 * ToolBar.cs: When we redraw a button, for whatever reason,
22941 there's no reason to redraw the entire toolbar. Also, don't call
22942 Control.Refresh from within Redraw, as it's much heavier than
22943 Invalidate (which is really what we want).
22945 2006-07-20 Chris Toshok <toshok@ximian.com>
22947 * DataGrid.cs, CurrencyManager.cs, DataGridColumnStyle.cs,
22948 DataGridTextBoxColumn.cs, DataGridTextBox.cs,
22949 ThemeWin32Classic.cs, ListControl.cs: After staring at stack
22950 traces from within a debug IBindingList datasource
22951 (in mono/winforms/datagrid) for *days*, I've finally gotten things
22952 to work in a similar fashion.
22954 2006-07-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
22956 * ListBox.cs: Don't call Sort () when setting
22957 the Sorted property to false (avoid an unnecessary sort).
22959 2006-07-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
22961 * ListControl.cs: DataSource should throw an ArgumentException
22962 instead of a normal exception when the argument is not of the
22965 2006-07-20 Mike Kestner <mkestner@novell.com>
22967 * Control.cs: add InternalPreProcessMessage to allow us to steal
22968 key events before MWF gets its paws on them. Adapted from a
22970 * ToolBar.cs: add GotLostFocus handing for flat toolbars, with
22971 up/down/left/right navigation. Override the new internal control
22972 method to steal the events since they never make it to WndProc.
22973 * ToolBarButton.cs: don't worry about pushed when setting hilight
22974 since the drawing code prefers pushed to hilight. Invalidate on
22975 Hilight changes. Fixes #78547 and #78525.
22977 2006-07-20 Peter Dennis Bartok <pbartok@novell.com>
22979 * ScrollableControl.cs: Consider AutoScrollMinSize when calculating
22980 the canvas size. Fixes #78868
22982 2006-07-20 Peter Dennis Bartok <pbartok@novell.com>
22984 * Splitter.cs: Track requested split position until first layout
22985 is performed. Fixes #78871
22987 2006-07-20 Peter Dennis Bartok <pbartok@novell.com>
22989 * Application.cs: Removed code that forces 1.x for the version
22990 number if the version started with 0. Not sure why that code was
22991 there and I couldn't find any bugs that indicated we needed it.
22994 2006-07-20 Alexander Olk <alex.olk@googlemail.com>
22996 * ThemeWin32Classic.cs: Don't throw a NotImplementedException in
22997 ResetDefaults(), just write some output to the console until it's
22998 implemented. Fixes bug #78907 for now. Eliminated two warnings.
23000 2006-07-19 Jonathan Chambers <joncham@gmail.com>
23002 * PropertyGridView.cs: set StartPosition of drop down forms
23003 so they appear in correct initial spot. Fixes #78190.
23005 2006-07-19 Mike Kestner <mkestner@novell.com>
23007 * ThemeWin32Classic.cs: use parent background color when drawing
23008 flat toolbars. Restructure the conditionals to make sure non-flat
23009 non-Divider toolbars are filled too. Fixes #78837.
23011 2006-07-19 Mike Kestner <mkestner@novell.com>
23013 * ListBox.cs: Sort on collection changes even if the handle
23014 isn't created yet. Fixes #78813.
23016 2006-07-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
23018 * ListControl.cs: DisplayMember should never be null,
23019 and now we assign String.Empty when null is passed to it (this
23022 2006-07-17 Mike Kestner <mkestner@novell.com>
23024 * ListViewItem.cs: restructure Font and subitem Font handling
23025 to hold a specific font and refer back to owner on null.
23028 2006-07-17 Mike Kestner <mkestner@novell.com>
23030 * ToolBar.cs: bandaid for side-effect of previous patch which was
23031 discarding explicit heights for non-AutoSize toolbars. Need to
23032 extend my format tester to deal with AutoSize=false. Fixes #78864.
23034 2006-07-15 Jackson Harper <jackson@ximian.com>
23036 * LabelEditTextBox.cs:
23037 * TreeView.cs: Use a new LabelEdit class for node editing, this
23038 class automatically 'closes' itself when it gets the enter key or
23040 - Use the client rectangle when setting the trees scrollbars, so
23041 border style is taken into account.
23043 2006-07-14 Jackson Harper <jackson@ximian.com>
23046 * TreeView.cs: Make the editing work similar to MSs, firing the
23047 events correctly and ending edits correctly.
23049 2006-07-14 Mike Kestner <mkestner@novell.com>
23051 * ToolBarButton.cs:
23052 * ToolBar.cs: layout restructuring and redraw enhancements to support
23053 formatting changes gracefully, like setting TextAlign, ImageList,
23054 ButtonSize, and Appearance. Handles explicit button sizing quirks
23055 of the MS controls. Things like flat toolbars ignoring button size
23056 but becoming constant sized at the largest button's size. Normal
23057 toolbars with an image set cannot be shrunk smaller than the image,
23058 but text can be clipped/ignored.
23059 * ThemeWin32Classic.cs: don't draw text if text_rect height or width
23060 is zero. Seems like DrawString should be smart enough to not put
23061 anything on screen though. Also trim labels and ellipsize at the char
23062 boundary, not word.
23063 Fixes #78711 and #78483.
23065 2006-07-14 Alexander Olk <alex.olk@googlemail.com>
23067 * FolderBrowserDialog.cs: Disable "New Folder" button and
23068 "New Folder" contextmenu menuitem if a folder like "My Computer"
23071 2006-07-14 Alexander Olk <alex.olk@googlemail.com>
23073 * FileDialog.cs: Don't create a new folder in "MyComputer" folder.
23074 * FolderBrowserDialog.cs:
23075 - Use MWFConfig to store and read size and position settings
23076 - Added code to create a new folder (button or context menu).
23077 Use TreeView labeledit to change the name of the new folder.
23079 2006-07-14 Jackson Harper <jackson@ximian.com>
23081 * TreeView.cs: Raise the OnAfterLabelEdit event correctly. Also,
23082 when the tree is scrolled we end editing.
23084 2006-07-14 Alexander Olk <alex.olk@googlemail.com>
23086 * ThemeWin32Classic.cs: Fixed position of CPDrawScrollButton Up and
23089 2006-07-14 Jonathan Pobst <monkey@ipobst.com>
23091 WebBrowserProgressChangedEventHandler.cs, BindingCompleteEventArgs.cs,
23092 BindingCompleteEventHandler.cs, BindingManagerDataErrorEventArgs.cs,
23093 BindingManagerDataErrorEventHandler.cs, CacheVirtualItemsEventArgs.cs,
23094 CacheVirtualItemsEventHandler.cs, ColumnReorderedEventArgs.cs,
23095 ColumnReorderedEventHandler.cs, ColumnWidthChangedEventArgs.cs,
23096 ColumnWidthChangedEventHandler.cs, ColumnWidthChangingEventArgs.cs,
23097 ColumnWidthChangingEventHandler.cs, FormClosedEventArgs.cs,
23098 FormClosedEventHandler.cs, FormClosingEventArgs.cs,
23099 FormClosingEventHandler.cs, ItemCheckedEventArgs.cs,
23100 ItemCheckedEventHandler.cs, ListControlConvertEventArgs.cs,
23101 ListControlConvertEventHandler.cs, ListViewItemMouseHoverEventArgs.cs,
23102 ListViewItemMouseHoverEventHandler.cs, ListViewItemSelectionChangedEventArgs.cs,
23103 ListViewItemSelectionChangedEventHandler.cs,
23104 ListViewVirtualItemsSelectionRangeChangedEventArgs.cs,
23105 ListViewVirtualItemsSelectionRangeChangedEventHandler.cs,
23106 MaskInputRejectedEventArgs.cs, MaskInputRejectedEventHandler.cs,
23107 PopupEventArgs.cs, PopupEventHandler.cs, PreviewKeyDownEventArgs.cs,
23108 PreviewKeyDownEventHandler.cs, RetrieveVirtualItemEventArgs.cs,
23109 RetrieveVirtualItemEventHandler.cs, SearchForVirtualItemEventArgs.cs,
23110 SearchForVirtualItemEventHandler.cs, SplitterCancelEventArgs.cs,
23111 SplitterCancelEventHandler.cs, TabControlCancelEventArgs.cs,
23112 TabControlCancelEventHandler.cs, TabControlEventArgs.cs,
23113 TabControlEventHandler.cs, TableLayoutCellPaintEventArgs.cs,
23114 TableLayoutCellPaintEventHandler.cs, ToolStripDropDownClosedEventArgs.cs,
23115 ToolStripDropDownClosedEventHandler.cs, ToolStripDropDownClosingEventArgs.cs,
23116 ToolStripDropDownClosingEventHandler.cs, TreeNodeMouseClickEventArgs.cs,
23117 TreeNodeMouseClickEventHandler.cs, TreeNodeMouseHoverEventArgs.cs,
23118 TreeNodeMouseHoverEventHandler.cs, TypeValidationEventArgs.cs,
23119 TypeValidationEventHandler.cs, WebBrowserDocumentCompletedEventArgs.cs,
23120 WebBrowserDocumentCompletedEventHandler.cs, WebBrowserNavigatedEventArgs.cs,
23121 WebBrowserNavigatedEventHandler.cs, WebBrowserNavigatingEventArgs.cs,
23122 WebBrowserNavigatingEventHandler.cs,
23123 WebBrowserProgressChangedEventArgs.cs: New 2.0 Event Handlers
23125 2006-07-14 Jonathan Pobst <monkey@ipobst.com>
23127 MergeAction.cs, PowerLineStatus.cs, PowerState.cs, PreProcessControlState.cs,
23128 RichTextBoxLanguageOptions.cs, ScreenOrientation.cs, ScrollOrientation.cs,
23129 SearchDirectionHint.cs, SystemParameter.cs, TabControlAction.cs,
23130 TableLayoutPanelCellBorderStyle.cs, TextDataFormat.cs, TextImageRelation.cs,
23131 ToolStripDropDownCloseReason.cs, ToolStripDropDownDirection.cs,
23132 ToolStripGripDisplayStyle.cs, ToolStripGripStyle.cs,
23133 ToolStripItemAlignment.cs, ToolStripItemDisplayStyle.cs,
23134 ToolStripItemImageScaling.cs, ToolStripItemOverflow.cs,
23135 ToolStripItemPlacement.cs, ToolStripLayoutStyle.cs,
23136 ToolStripManagerRenderMode.cs, ToolStripRenderMode.cs,
23137 ToolStripStatusLabelBorderSides.cs, ToolStripTextDirection.cs,
23138 ToolTipIcon.cs, TreeNodeStates.cs, TreeViewDrawMode.cs,
23139 TreeViewHitTestLocations.cs, UnhandledExceptionMode.cs, ValidationConstraints.cs,
23140 WebBrowserEncryptionLevel.cs, WebBrowserReadyState.cs, WebBrowserRefreshOption.cs,
23141 ArrowDirection.cs, AutoCompleteMode.cs, AutoCompleteSource.cs, AutoSizeMode.cs,
23142 AutoValidate.cs, BatteryChargeStatus.cs, BindingCompleteContext.cs,
23143 BindingCompleteState.cs, CloseReason.cs, ColumnHeaderAutoResizeStyle.cs,
23144 ControlUpdateMode.cs, DataSourceUpdateMode.cs, DockingBehavior.cs,
23145 FixedPanel.cs, FlowDirection.cs, GetChildAtPointSkip.cs,
23146 HtmlElementInsertionOrientation.cs, InsertKeyMode.cs, ListViewHitTestLocations.cs,
23147 ListViewItemStates.cs, MaskFormat.cs: Added
23149 2006-07-13 Jonathan Chambers <joncham@gmail.com>
23151 * PropertyGridView.cs: Fix keyboard navigation of drop down.
23152 Patch from eno for bug 78558.
23154 2006-07-13 Jackson Harper <jackson@ximian.com>
23156 * TreeView.cs: When an edit is finished make sure that the
23157 selected node is visible.
23158 - When setting the top/bottom use the scrollbars is_visible, so
23159 everything will be set correctly even if the tree isn't visible
23162 2006-07-13 Jackson Harper <jackson@ximian.com>
23164 * ComboBox.cs: Revert the item->index part of my previous patch.
23165 * TreeView.cs: Use LostFocus instead of Leave for detecting when
23166 the edit box has lost focus (duh).
23167 - Just make the edit box not visible when we get return, that will
23168 take the focus, which will call EndEdit
23169 * TreeNode.cs When we start editing, notify the treeview.
23171 2006-07-12 Jackson Harper <jackson@ximian.com>
23173 * ComboBox.cs: Clear out old items before setting the item list.
23174 This prevents databound controls from having their items added
23176 - Switch the combobox to use indices whereever possible instead of
23177 using Item's. This allows usto navigate through lists that have
23178 more then one item with the same string value (ie a, b, b, a).
23179 - Scroll the listboxes scrollbar when a non visible item is
23181 - Allow keypress to cycle through all the possible values. For
23182 example if you have b1, b2, b3 and hold down the B key all the
23183 values will be cycled through.
23185 2006-07-12 Jackson Harper <jackson@ximian.com>
23188 * ListView.cs: Don't need to override SETFOCUS anymore, we can do
23189 this using the internal methods.
23190 * Control.cs: Add OnGotFocusInternal. A new method that allows
23191 controls to "override" OnGotFocus and change focus behavior if
23193 - Same thing for LostFocus
23194 * ComboBox.cs: Pass off focus to the text control properly.
23196 2006-07-12 Alexander Olk <alex.olk@googlemail.com>
23198 * FileDialog.cs: Added GetFoldersOnly to MWFVFS
23199 * FolderBrowserDialog.cs: Almost a complete rewrite.
23200 - Better support for Environment.Specialfolders
23201 - Added support for MWFVFS
23202 - Made setting SelectedPath work
23204 2006-07-12 Jackson Harper <jackson@ximian.com>
23206 * Control.cs: Optimze getting all the controls.
23208 2006-07-11 Jackson Harper <jackson@ximian.com>
23210 * ContainerControl.cs: Override SETFOCUS in the container control,
23211 so that it is not selected on mouse click.
23213 2006-07-11 Peter Dennis Bartok <pbartok@novell.com>
23215 * LinkLabel.cs: Hack to handle Shift-Tabbing to the linklabel.
23216 Hopefully we will have a better way once all of focus is complete.
23218 2006-07-11 Peter Dennis Bartok <pbartok@novell.com>
23220 * ThemeWin32Classic.cs: Commented out some debug code and fixed
23221 a compile error with csc.
23223 2006-07-11 Jackson Harper <jackson@ximian.com>
23225 * Control.cs: When hiding a control only select the next control
23226 if the current control was focused.
23227 - Don't handle enter/leave when setting/killing focus, this is
23228 done by the container control.
23229 - Remove is_selected, it's not needed anymore.
23230 - Add utility methods for selecting a child control, and for
23231 firing the Enter/Leave events.
23232 * ContainerControl.cs: When a control is activated fire the
23233 enter/leave events.
23234 - Don't wrap when processing the tab key, so that focus can be
23235 moved outside of the container.
23236 - Use the correct active control
23238 2006-07-11 Jackson Harper <jackson@ximian.com>
23240 * ComboBox.cs: Remove some debug code that was blinding me.
23241 * UpDownBase.cs: These controls actually aren't implicit, they are
23242 visible to the user.
23244 2006-07-10 Chris Toshok <toshok@ximian.com>
23246 * DataGrid.cs: move back to the is_adding boolean field. god i
23247 hate this is_editing/is_adding/is_changing stuff.
23249 2006-07-10 Chris Toshok <toshok@ximian.com>
23251 * DataGridTableStyle.cs: just check if the property type is bool.
23252 if it is, use DataGridBoolColumn, otherwise DataGridTextBoxColumn.
23253 Don't use CanRenderType.
23255 * DataGridTextBoxColumn.cs: set the value to DBNull.Value, not "",
23256 if our text == NullText. Remove CanRenderType.
23258 * DataGridBoolColumn.cs: nuke CanRenderType.
23260 * DataGrid.cs: reenable some code to end the current edit inside
23261 of set_CurrentCell. This fixes the other 1.1.16 regression.
23262 Also, remove rowhdrs_maxheight and just use rowhdrs_area.Height.
23263 Also, remove the visible_row_count arg from CalcRowHeaders, since
23264 we don't need to worry about the actual height of the area.
23266 2006-07-10 Chris Toshok <toshok@ximian.com>
23268 * DataGridTextBoxColumn.cs: if when we Commit we're in navigate
23271 * DataGridTextBox.cs: change "isedit" to "isnavigating" to reflect
23272 the real sense of the IsInEditOrNavigateMode property (true =
23273 navigate, false = edit). Also, update OnKeyPress to reflect this.
23275 * DataGridTableStyle.cs (CreateColumnsForTable): even if the
23276 column style exists, we still need to set its property descriptor
23277 to match up with our list manager.
23279 2006-07-10 Chris Toshok <toshok@ximian.com>
23281 * ThemeWin32Classic.cs: implement the new row/header painting
23282 approach. The parent row painting will likely go away and
23283 replaced with label controls, but the rest seems to work ok (and
23286 * Theme.cs: change the way we draw datagrid rows. we don't draw
23287 the row headers as a block now. Instead we draw them in the
23288 normal draw-row loop. Add some calls for drawing parent rows and
23291 * DataGridTableStyle.cs: add tons of ArgumentExceptions if this is
23292 a default table style. Set the defaults from ThemeEngine.Current,
23293 not SystemColors. Fix lots of misc issues with property setters.
23295 * DataGrid.cs: move loads of style information out of this class
23296 as it's being duplicated with DataGridTableStyle. keep track of a
23297 special DataGridTableStyle for the properties we used to mirror
23298 here. Switch all the style properties to access this table style
23299 instead of instance fields of this class. Also add a internal
23300 class to represent parent rows (more needs to be stored here, like
23301 the selection state from the parent table, as well as the
23302 expansion state.) Also, for datasources with relations, do the
23303 right thing for collapse/expand, and add support for the
23304 navigation/parent row buttons.
23306 Lastly, fix the crash in the 1.1.16 build.
23308 * GridTableStylesCollection.cs: make the explicit interface
23309 implementations call the class's methods as opposed to duplicating
23312 * DataGridTextBoxColumn.cs: set the x/y offset of the textfield to
23313 0 so the text doesn't jump around when we move the cursor.
23315 2006-07-10 Jackson Harper <jackson@ximian.com>
23318 * ListBox.cs: Match MS's ToString (this makes debugging focus
23319 stuff infinitely easier).
23321 2006-07-10 Jackson Harper <jackson@ximian.com>
23323 * Control.cs (SelectNextControl): When checking the control's
23324 parent use this instead of ctrl.parent so that null can be passed
23325 to SelectNextControl. (I have unit tests for this).
23326 - Remove unused var.
23328 2006-07-10 Chris Toshok <toshok@ximian.com>
23330 * CurrencyManager.cs: correct one regression, the removal of the
23331 finalType field. Also, add a MonoTODO on CanAddRows, implement
23332 Refresh() correctly, and fix some event emission in
23333 ListChangedHandler.
23335 2006-07-07 Alexander Olk <alex.olk@googlemail.com>
23337 * FileDialog.cs: Don't use brackets for new folders if they exist
23338 under *nix. Instead use -(number of existing folders +1).
23340 2006-07-07 Alexander Olk <alex.olk@googlemail.com>
23343 - Fixed really nasty bug #78771
23344 - Don't block the whole GUI when reading directories with a lot of
23345 entries. Use an other thread instead and call BeginInvoke to
23346 update the ListView in MWFFileView
23348 2006-07-07 Chris Toshok <toshok@ximian.com>
23350 * Control.cs (Dispose): release any Capture when disposing.
23352 2006-07-07 Chris Toshok <toshok@ximian.com>
23354 * LinkLabel.cs (Select): if we chain up to the parent, set
23355 focused_index to -1 so we'll search for the first available link
23356 the next time the user tabs into us. Also, if the direction is
23357 backward and focused_index == -1, start the search from the last
23360 2006-07-07 Chris Toshok <toshok@ximian.com>
23362 * LinkLabel.cs (CreatePiecesFromText): if the link's range piece
23363 is beyond the end of the text, don't do anything.
23364 (CreateLinkPieces): set our ControlStyles.Selectable based on
23365 whether or not we have any links.
23366 (Link.Invalidate): use a loop instead of foreach.
23367 (Link.set_Start): null out owner.sorted_links so it'll be
23368 recreated by CreateLinkPieces.
23370 2006-07-06 Chris Toshok <toshok@ximian.com>
23372 * LinkLabel.cs: revert the SetStyle change.
23374 2006-07-06 Chris Toshok <toshok@ximian.com>
23376 * LinkLabel.cs (.ctor): SetStyle Selectable to true.
23377 (OnEnableChanged): s/Refresh/Invalidate
23378 (OnGotFocus): if we have a focused index already, refocus it (so
23379 if we mouse out/in to the window it'll focus the right link).
23380 (OnKeyDown): move the tab handling out of here.
23381 (OnLostFocus): don't set focused_index to -1, so we can refocus it
23382 when we lose focus.
23383 (OnMouseDown): don't Capture here - Control handles it. Also,
23384 focus the active link.
23385 (OnMouseUp): don't deal with Capture.
23386 (OnPaintBackgroundInternal): remove.
23387 (OnTextAlignChanged): CreateLinkPieces before calling the
23388 superclass's method.
23389 (OnTextChanged): call CreateLinkPieces before calling superclass's
23391 (ProcessDialogKey): handle Tab here, and call Select(bool,bool) to
23393 (Select): implement this, moving the selection between different
23394 links, and call parent.SelectNextControl if we don't have another
23395 link to focus in the given direction.
23396 (CreateLinkPieces): call Invalidate instead of Refresh.
23398 2006-07-06 Chris Toshok <toshok@ximian.com>
23400 * ThemeWin32Classic.cs: DrawLinkLabel changes to accomodate the
23401 new LinkLabel internals.
23403 * LinkLabel.cs: fairly major rewrite. get rid of all the loops
23404 over pieces looking for active/focused/etc links. also, deal with
23405 runs of text (and links) with embedded \n's in them, and use
23406 MeasureCharacterRanges instead of MeasureString to figure out the
23407 regions text occupies. Lastly, do the usual s/Refresh/Invalidate
23410 2006-07-04 Jackson Harper <jackson@ximian.com>
23412 * XplatUIX11.cs: Enable key auto repeat. If the user doesn't have
23413 XKB or key auto repeat, do it manually. Without key auto repeat,
23414 when a key is held down we get key press, key release, key press,
23415 key release, ... with auto repeat we get key press, key press, key
23416 press ..., and then a release when the key is actually released.
23418 2006-07-03 Jackson Harper <jackson@ximian.com>
23421 * ThemeWin32Classic.cs: Tabs do not obey normal background color
23422 rules, they are always control color regardless of the background
23425 2006-07-02 Alexander Olk <alex.olk@googlemail.com>
23427 * FileDialog.cs: Added internal class MWFConfig.
23428 Removed Registry support and replaced it with support for the new
23429 MWFConfig class. See MWFConfig comments for more information.
23431 2006-06-30 Alexander Olk <alex.olk@googlemail.com>
23433 * ThemeWin32Classic.cs: Added RadioButton and CheckBox focus
23434 rectangle. Added some patches from eno from bug #78490 and fixed
23435 the arrow position for small up and down CPDrawScrollButtons.
23437 2006-06-30 Jackson Harper <jackson@ximian.com>
23439 * InternalWindowManager.cs: Remove some debug code.
23440 * Form.cs: When an MdiParent is set to null, the window is
23441 "detatched" and becomes a normal window.
23442 * MdiClient.cs: Don't bring the new child form to the front until
23443 it is activated (setting it as active does this), this makes the
23444 previously active forms titlebar get redrawn as inactive.
23446 2006-06-29 Peter Dennis Bartok <pbartok@novell.com>
23448 * PrintDialog.cs: Labels need a tab index too, otherwise they overlap
23449 with later controls
23451 2006-06-29 Mike Kestner <mkestner@novell.com>
23453 * MenuAPI.cs: handle arrow keys in keynav state. Go active on down
23454 arrow in keynav state. Fixes #78682.
23456 2006-06-28 Atsushi Enomoto <atsushi@ximian.com>
23458 * PrintDialog.cs: Reorder, relayout, remove extra code, set tab
23459 order (fixes #78393)
23461 2006-06-28 Jonathan Pobst <monkey@ipobst.com>
23463 * AccessibleRole.cs, AccessibleStates.cs, AnchorStyles.cs,
23464 ArrangeDirection.cs, ArrangeStartingPosition.cs, ColorDepth.cs,
23465 ControlStyles.cs, DataGridViewImageCellLayout.cs, DrawMode.cs,
23466 FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs,
23467 GridItemType.cs, HelpNavigator.cs, ImeMode.cs, ItemActivation.cs,
23468 ItemBoundsPortion.cs, Keys.cs, ListViewAlignment.cs,
23469 PictureBoxSizeMode.cs, PropertySort.cs, SelectionMode.cs,
23470 Shortcut.cs, SizeGripStyle.cs, SortOrder.cs, StructFormat.cs,
23471 TextFormatFlags.cs, ToolBarAppearance.cs, ToolBarButtonStyle.cs,
23472 ToolBarTextAlign.cs, View.cs: 2.0 Changes to existing 1.x
23473 enumerations (FlagsAttribute, SerializableAttribute, added/removed
23476 2006-06-28 Mike Kestner <mkestner@novell.com>
23478 * ComboBox.cs: implement scroll wheel support. Fixes #78360.
23480 2006-06-28 Atsushi Enomoto <atsushi@ximian.com>
23483 PropertyGridTextBox.cs : explicitly set BackColor to differentiate
23484 item lines from other area (It also makes BackColor consistent and
23485 compatible with .NET). Fixed bug #78564.
23487 2006-06-28 Jonathan Chambers <jonathan.chambers@ansys.com>
23489 * PropertyGrid.cs: refresh toolbar when PropertySort is set.
23490 Patch from Eno for #78555.
23492 2006-06-27 Chris Toshok <toshok@ximian.com>
23494 * ThemeWin32Classic.cs: s/grid.grid_drawing/grid
23496 * DataGridColumnStyle.cs: same.
23498 * DataGrid.cs: Roll DataGridDrawingLogic.cs into this file.
23500 * DataGridDrawingLogic.cs: nuke.
23502 2006-06-27 Chris Toshok <toshok@ximian.com>
23504 * DataGridTableStyle.cs: clean up the constructors, and build the
23505 list of child relations for this table. I have no idea if this is
23506 where we should be doing it (it probably isn't), but since we're
23507 already iterating over the properties..
23509 * DataGrid.cs: add row resizing. for now we add a DataGridRow
23510 struct and array for keeping track of row information, similar to
23511 what's shown in a hack on
23512 http://www.syncfusion.com/FAQ/WindowsForms/FAQ_c44c.aspx.
23514 * Theme.cs: be consistent about the naming of DataGrid methods,
23515 prefering ColumnWidths and RowHeights over columnsWidths and
23518 * ThemeWin32Classic.cs: same, and also add support for variable
23519 sized rows (and the +/- expansion icons for related rows).
23521 2006-06-27 Peter Dennis Bartok <pbartok@novell.com>
23523 * TextBoxBase.cs: Applied Eno's patch from #78660
23525 2006-06-27 Peter Dennis Bartok <pbartok@novell.com>
23527 * Form.cs (ScaleCore): We don't want to scale our form if it's
23528 state is minimized or maximized, but we still need to scale our
23529 child windows. Also, added try/finally block to ensure layout
23530 gets reset (Fixes #78697)
23532 2006-06-27 Peter Dennis Bartok <pbartok@novell.com>
23534 * Control.cs: Added 2.0 Scale(SizeF) method (Fixes 78700)
23536 2006-06-27 Peter Dennis Bartok <pbartok@novell.com>
23538 * Form.cs: Fixed c+p error and added check to resize form if minimum
23539 size is bigger than current size (Fixes #78709)
23541 2006-06-26 Peter Dennis Bartok <pbartok@novell.com>
23543 * ThemeEngine.cs (..ctor): Properly use ToLower() (Fixes #78704)
23545 2006-06-26 Mike Kestner <mkestner@novell.com>
23547 * ComboBox.cs: only do Keypress handling in the combo when there
23548 are items in the collection. Fixes #78710.
23550 2006-06-26 Chris Toshok <toshok@ximian.com>
23552 * Binding.cs: make this work bi-directionally. also, clear up
23553 other mixups between Push/Pull Data (e.g. we're supposed to pull
23554 data when validating).
23556 * BindingManagerBase.cs: trim some fully qualified collection
23559 * PropertyManager.cs (get_IsSuspended): oops, fix this check.
23561 2006-06-23 Chris Toshok <toshok@ximian.com>
23563 * PropertyManager.cs: It appears (according to the unit tests)
23564 that PropertyManager doesn't use
23565 PropertyDescriptor.AddValueChanged to track propery value changes
23566 in its datasource, but uses the same scheme as Binding, where it
23567 looks for a <Property>Changed event and binds to it.
23569 Also, according to the docs, IsSuspended always returns false for
23570 a property manager with a non-null datasource.
23572 2006-06-22 Peter Dennis Bartok <pbartok@novell.com>
23574 * Form.cs: (ShowDialog): If we're returning a forced cancel we still
23575 need to update the actual DialogResult. (Fixes #78613)
23577 2006-06-22 Peter Dennis Bartok <pbartok@novell.com>
23579 * Form.cs (ShowDialog): Release any captures before running the
23580 new message pump (fixes #78680)
23582 2006-06-22 Mike Kestner <mkestner@novell.com>
23584 * ListView.cs: Layout column widths properly in details mode even
23585 if HeaderStyle.None is set. Fixes #78691.
23587 2006-06-21 Peter Dennis Bartok <pbartok@novell.com>
23589 * FileDialog.cs: Fixed taborder to match MS. Fixes #77873 partially.
23591 2006-06-21 Peter Dennis Bartok <pbartok@novell.com>
23593 * Control.cs (ContainsFocus): Using new driver method to get focused
23594 window, instead of trying to use internal tracking var, which can
23595 recursion issues (Fixes #78685)
23596 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
23597 XplatUIWin32.cs: Added GetFocus method to return focused window
23599 2006-06-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
23601 * ColorDialog.cs: when the mouse button is pressed inside the color
23602 matrix, don't let the cursor move out of it until the button is
23603 released, which is the behavior on windows. Changed 'colours' by
23604 'colors' to use the same word consistently.
23606 2006-06-21 Chris Toshok <toshok@ximian.com>
23608 * DataGrid.cs: add in some basic navigation stuff (navigating to a
23609 child relation and back, using a stack). Also, remove
23610 GetDataSource and the code that calls it - it's not needed. Also,
23611 track CurrencyManager.ListName's removal.
23613 2006-06-21 Chris Toshok <toshok@ximian.com>
23615 * CurrencyManager.cs: push some of the original type checking from
23616 BindingContext.CreateBindingManager to here, and remove some of
23617 the finalType stuff. Need more tests to make sure I've got the
23618 ListName part right, and we might need more in SetDataSource.
23620 * PropertyManager.cs: add a ctor that takes just the datasource,
23621 and no property name. Make SetDataSource work with a null
23622 property_name, and make Current return the data_source if the
23623 property descriptor is null. this makes 'string foo = "hi";
23624 BindingContext[foo].Current' return "hi" as it should.
23626 * RelatedCurrencyManager.cs: make this code more generic - there's
23627 no reason the parent manager has to be CurrencyManager, and
23628 there's no reason to pass the DataRelation. It suffices to use a
23629 BindingManagerBase and PropetyDescriptor.
23631 * RelatedPropertyManager.cs: make a similar change here.
23633 * BindingContext.cs: make CreateBindingManager the beautiful, tiny
23634 flower I knew it could be.
23636 2006-06-20 Chris Toshok <toshok@ximian.com>
23638 * PropertyManager.cs: the PropertyChangedHandler is invoked when
23639 data in the source has changed and we need to update the control,
23640 so s/PullData/PushData.
23642 * CurrencyManager.cs: Refresh is meant to update the control from
23643 data in the datasource. So, s/PullData/PushData.
23645 * BindingContext.cs: add more ugliness (we weren't handling the
23646 case where data_source = DataTable and data_member = column_name).
23648 * Binding.cs: fix PushData/PullData mixup. Both are interpreted
23649 from the perspective of the datasource. PullData pulls from the
23650 control, PushData pushes to the control.
23652 2006-06-20 Chris Toshok <toshok@ximian.com>
23654 * BindingContext.cs: rewrite the CreateBindingManager code to
23655 handle navigation paths more or less properly. This could
23656 definitely stand some more work, in particular to push the
23657 recursion up to the toplevel. But that relies on fixes in other
23658 places (System.Data comes to mind).
23660 Also, move to a flat hashtable (and encode the twolevel nature of
23661 the dictionary into the hash key). This lets us implement the
23662 IEnumerable.GetEnumerator method.
23664 * RelatedCurrencyManager.cs: new class. Update our view based on
23665 our relation and our parent CurrencyManager's position.
23667 * CurrencyManager.cs: split out some logic from the ctor into
23668 SetView, so it can be called from the new RelatedCurrencyManager
23671 * RelatedPropertyManager.cs: new class. Update our datasource
23672 based on the position of our parent CurrencyManager.
23674 * PropertyManager.cs: split out some logic from the ctor into
23675 SetDataSource, so it can be called from the new RelatedDataSource
23676 subclass. Also, make the Current getter return the value
23677 of the PropertyDescriptor, not the data_source.
23679 * Binding.cs: no need to duplicate the string splitting code here.
23681 2006-06-19 Peter Dennis Bartok <pbartok@novell.com>
23684 - set_Enabled: OnEnabledChanged is not called if the inherited state
23685 of the control is not altered, even though we might be changing the
23686 internal state of the control (#78458)
23687 - set_Enabled: (Re)Moved the enabling/disabling of the window to
23688 OnEnabledChanged, to allow easy altering of any child window state
23689 - OnEnabledChanged: Added code to enable/disable driver window state
23690 - OnParentEnabledChanged: Instead of firing the event, call
23691 OnEnabledChanged, which will fire the event and also a) set driver
23692 window state and pass the enabled state to any grandchildren (#78458)
23694 2006-06-19 Jackson Harper <jackson@ximian.com>
23696 * InternalWindowManager.cs: We don't set the cursor explicitly
23697 thats done via the response to NCHITTESTs.
23698 - Don't need to adjust for titlebar heights anymore, the
23699 coordinates are coming in the correct coordinates now (see peters
23703 2006-06-19 Peter Dennis Bartok <pbartok@novell.com>
23705 * XplatUIX11.cs (GetMessage): WM_NCxBUTTONx messages were wrongly
23706 being translated relative to whole window, instead of client window.
23707 That caused broken offsets on mouseclick (and caused gas for our
23708 InternalWindowManager)
23710 2006-06-15 Peter Dennis Bartok <pbartok@novell.com>
23713 - MoveCaret: Implemented PgUp, PgDown, CtrlPgUp and CtrlPgDown
23714 - Undo(): Added replay of cursor move on DeleteChars action; added
23715 calling Undo() again if a recorded cursor move is invalid (to
23716 ensure that some action is performed on Undo)
23717 * TextBoxBase.cs (ProcessKey): Added handling of PgUp and PgDown (#78482)
23719 2006-06-16 Jackson Harper <jackson@ximian.com>
23721 * MdiClient.cs: Instead of just sizing maximized windows when
23722 there is a resize we also have to adjust the Y of minimized
23723 windows, so they stay pinned to the bottom of the mdi container.
23724 - Eliminate separate tracking of the active control, we can just
23725 get this from the controls collection.
23726 - Paint the decorations for the newly activated titlebar so we get
23728 * InternalWindowManager.cs:
23729 * ThemeWin32Classic.cs: Minimized windows get all three buttons
23730 even if they are a tool window.
23732 2006-06-15 Peter Dennis Bartok <pbartok@novell.com>
23734 * TextControl.cs (Undo): Handle non-existent cursor locations in the
23735 undo buffer, these can happen when text was deleted and the cursor
23736 was recorded first. Since we will also have a recorded cursor
23737 after the delete this is not an issue. (Fixes #78651)
23739 2006-06-14 Peter Dennis Bartok <pbartok@novell.com>
23741 * AccessibleObject.cs: Remove dependence on Control.is_selected;
23742 instead properly track control states internally (allows us to
23743 remove is_selected from Control)
23745 2006-06-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
23747 * ImageListStreamer.cs: correctly generate the 1bpp mask for images
23748 whose width is not a multiple of 8.
23750 2006-06-13 Jackson Harper <jackson@ximian.com>
23752 * MdiClient.cs: Only maximize the next child if the current one
23755 2006-06-13 Chris Toshok <toshok@ximian.com>
23757 * DataGridColumnStyle.cs: Invalidate the column when HeaderText is
23758 modified. Also, guard against grid or grid_drawing being null in
23761 * DataGrid.cs: Reformat tons of getters/setters. In the
23762 DataMember setter, just call SetNewDataSource instead of
23763 duplicating some of its functionality. In SetNewDataSource, don't
23764 check ListManager for null, since the property getter creates the
23767 * DataGridTableStyle.cs: don't set TableStyle or call
23768 SetDataGridInternal on the column here, it's done in
23769 GridColumnStylesCollection.Add.
23771 * GridColumnStylesCollection.cs: fix all the explicit interface
23772 implementations to just call our methods. Nuke AddInternal() and
23773 move the body of it to Add(). Also, add a call to
23774 column.SetDataGridInternal to Add().
23776 * DataGridTextBoxColumn.cs (.ctors): call this() instead of
23777 base()+duplicate code. Also, use the Format property instead of
23778 format to generate an Invalidate ala MS. Lastly, create the
23779 textbox here, unconditionally.
23780 (set_Format): call Invalidate.
23781 (get_TextBox): no need to call EnsureTextBox.
23782 (Commit): remove the message box.
23783 (Edit) remove the call to EnsureTextBox.
23784 (EndEdit): call HideEditBox instead of ReleaseHostedControl.
23785 (EnterNullValue): no need to check textbox for null.
23786 (HideEditBox): no need to check textbox for null.
23787 (SetDataGridInColumn): add the textbox to the grid's controls.
23788 (EnsureTextBox): nuke.
23790 2006-06-13 Jackson Harper <jackson@ximian.com>
23792 * MdiWindowManager.cs: Hook up to the maximized menus paint event
23793 and redraw the buttons when needed. Unhook when the window is
23795 * MainMenu.cs: Add an internal Paint event, the mdi window manager
23796 needs this so that it can redraw its buttons when the menu is
23798 * InternalWindowManager.cs:
23799 * Form.cs: The method order has changed for DrawMaximizedButtons,
23800 so that it can be a PaintEventHandler.
23802 2006-06-13 Jackson Harper <jackson@ximian.com>
23804 * MdiClient.cs: When we close a maximized mdi window, the next mdi
23805 window is activated and maximized, even if it wasn't before.
23806 - When a new window is activated repaint the decorations of the
23807 old one, so that it no longer has the Active "look" (the blue
23809 * InternalWindowManager.cs: Open up CreateButtons to base classes
23810 so they can recreate the buttons on state changes.
23811 - If a window is maximized give it all three buttons
23812 * MdiWindowManager.cs: Create the titlebar buttons when the state
23813 is changed, this is needed because a toolwindow will not have all
23814 three buttons until it is maximized.
23816 2006-06-13 Atsushi Enomoto <atsushi@ximian.com>
23818 * ProgressBar.cs : PerformStep() shouldn't exceed Maximum.
23821 2006-06-12 Jackson Harper <jackson@ximian.com>
23823 * KeysConverter.cs: Make sure we handle the Ctrl special case
23824 if its the only key.
23826 2006-06-12 Jackson Harper <jackson@ximian.com>
23828 * Theme.cs: Add a method to get the size of a managed window
23830 * InternalWindowManager.cs: Remove the ButtonSize property, this
23831 should be retrieved from the theme.
23832 * MdiWindowManager.cs: Get the button size from the theme
23833 * ThemeWin32Classic.cs: Make the method to get the managed window
23834 titlebar button size public.
23835 - Handle the different button sizes of maximized toolwindows
23836 (should match any maximized window).
23837 - Get the titlebar height from the theme, not the WM (which gets
23838 it from the theme).
23840 2006-06-12 Jackson Harper <jackson@ximian.com>
23842 * InternalWindowManager.cs: Handle NC Double Clicks, passing the
23843 event down to the mdi window manager.
23844 - Expose some extra stuff to base classes
23845 - Make sure to end the Capture on an NC Mouse up, so that we can
23846 get double clicks properly, and the sizing doens't stick.
23847 - When doing PointToClient contain it in the workable desktop
23848 area, this prevents windows from changing size when the cursor is
23849 pulled outside of the working area while sizing.
23850 * MdiWindowManager.cs: When we get a double click maximize the
23852 - Reset the cursor after handling mode changes.
23854 2006-06-12 Peter Dennis Bartok <pbartok@novell.com>
23856 * XplatUIX11.cs (WorkingArea): Read the actual workarea for the
23857 current desktop, instead of just assuming a 0, 0 origin. This
23858 is needed for our internal window manager, to know the top
23859 margin of the desktop
23861 2006-06-12 Chris Toshok <toshok@ximian.com>
23863 * DataGrid.cs (set_CurrentCell): concede focus as we move around.
23864 we need this to get rid of the selected background in the bool
23866 (CancelEditing): move the ConcedeFocus call to above the Abort
23867 call. Also, set is_changing to false and invalidate the row
23868 header if we were changing before.
23869 (ProcessKeyPreviewInternal): remove, since noone outside this
23870 class calls it anymore. Roll the code into ProcessKeyPreview.
23871 (EndEdit): remove the internal version.
23872 (InvalidateCurrentRowHeader): make private.
23874 * DataGridBoolColumn.cs: simplify this class a bunch. remove the
23875 Keys.Escape handling (and with it the last call to
23876 DataGrid.EndEdit from outside the class.)
23879 2006-06-12 Chris Toshok <toshok@ximian.com>
23881 * DataGridTextBox.cs (.ctor): isedit defaults to false.
23882 (OnKeyPress): set isedit to true.
23883 (ProcessKeyMessage): remove Keys.Enter handling from here. it's
23884 already handled by the grid.
23886 * DataGrid.cs (set_CurrentCell): more work here. it's still not
23888 (set_DataSource): SetDataSource always returns true, so stop
23889 putting it in an if statement.
23890 (EndEdit): get rid of some {}'s
23891 (ProcessGridKey): return true in case Keys.Escape.
23892 (ProcessKeyPreviewInternal): only handle KEYDOWN messages.
23893 (ConnectListManagerEvents,DisconnectListManagerEvents): connect to
23894 PositionChanged, stopped connecting to CurrentChanged.
23895 (GetDataSource): simplify this a bunch.
23896 (SetDataSource): change return type from bool to void.
23897 (OnListManagerPositionChanged): rename OnListManagerCurrentChanged
23898 to this, and make sure we don't set ListManager.Position inside
23900 (OnListManagerItemChanged): if we're passed an actual index,
23903 * CurrencyManager.cs (set_Position): don't call PullData here.
23905 2006-06-09 Jackson Harper <jackson@ximian.com>
23907 * TreeNode.cs: Recalculate the visible order before doing the
23908 Expand/Collapse Below calls, because those calls generate an
23910 - Reduce calls to the TreeView property, which is mildly expensive
23911 by using a local var.
23912 * Form.cs: Layout the MDI child windows when creating the parent
23914 - Don't use the internal constructor anymore
23915 * MdiClient.cs: use the parent form width/height (if available)
23916 when laying out the child windows, we do this because the
23917 mdiclient isn't docked yet when the initial layout is done.
23918 - Don't need an internal constructor anymore.
23920 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
23922 * FileDialog.cs: handle access errors when trying to create a folder
23923 or changing to a directory. No need to initialize out parameters.
23925 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
23927 * FileDialog.cs: Append a number when creating a new folder if the
23928 folder already exists (use parenthesis instead of square brackets)
23930 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
23933 - Disabled registry support for windows and added better registry
23934 error checking for other systems (need to investigate why it
23935 works perfectly on my system)
23936 - If a folder already exist show an error MessageBox instead of
23937 trying to create an indexed name.
23938 - Fixed a non intentional typo.
23940 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
23942 * FileDialog.cs: (SetFileName) don't crash if CurrentRealFolder is null.
23944 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
23946 * FileDialog.cs: When creating a new folder don't crash if the
23947 folder already exists.
23949 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
23951 * FileDialog.cs: Allmost a complete rewrite.
23952 - added a "virtual" file system that handles the differences
23953 between unix and windows file systems (especially the directory
23954 structure). Moved most of the directory and file handling code
23956 Added vfs classes: MWFVFS, FileSystem, WinFileSystem,
23957 UnixFileSystem and FSEntry.
23958 - Recently used folder/directory, size, location and used file names
23959 (file name ComboBox) are now stored in the registry and get read
23960 before the dialog shows up (fixes part 6 of bug #78446).
23961 - Creation of new folders/directories is now possible (context menu
23962 or ToolBar). Added TextEntryDialog for this that fills in the gap
23963 until ListView.LabelEdit works.
23964 - Fixed cursor handling (bug #78527) and focus handling for
23966 - Various "Search in" ComboBox enhancements. The content of the
23967 dropdown listbox now almost matches ms.
23968 - Changed the behaviour when the user switches to SpecialFolder
23969 Recent to show the ListView in View.Details.
23970 - Beside using the ToolBar to change the View property of the
23971 file ListView it is now possible to use the context menu too.
23973 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
23975 * ComboBox.cs: Don't create a new ObjectCollection when an item
23976 gets inserted. Just insert the item in the existing object_items
23979 2006-06-08 Jackson Harper <jackson@ximian.com>
23981 * OpenTreeNodeEnumerator.cs: Fix to use the Parent property, so
23982 that the treeview and root node checks are done also, this fixes a
23983 regression i caused in the unit tests.
23985 2006-06-07 Wade Berrier <wberrier@novell.com>
23987 * RichTextBox.cs: More ISO8859-1 -> unicode
23989 2006-06-07 Mike Kestner <mkestner@novell.com>
23991 * ComboBox.cs : use items to hold highlight/selection so that
23992 collection insertions don't require synchronization.
23994 2006-06-07 Jackson Harper <jackson@ximian.com>
23996 * InternalWindowManager.cs: Simplify (and FIX) the window sizing
23997 routine. We now always keep the sized edge at the cursor instead
23998 of computing movement and adjusting rects. There is one buglet
23999 with this method though when the cursor is moved over area that
24000 the window can not expand too (such as the toolbars on the desktop).
24002 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24004 * XplatUIX11.cs: (IsEnabled,IsVisible) the window handler can be null
24005 here. Fixes crash on startup in AlbumSurfer.
24007 2006-06-07 Peter Dennis Bartok <pbartok@novell.com>
24009 * RichTextBox.cs: Replaced embedded ISO8859-1 chars with proper unicode
24012 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24014 * XplatUIX11.cs: call XPending and XNextEvent inside the same lock()
24015 statement to avoid calling XNextEvent which will block if another thread
24016 took the event that we were expecting. Fixes bug #78605.
24018 2006-06-07 Mike Kestner <mkestner@novell.com>
24020 * ListView.cs : isolated checkbox clicking from the selection logic.
24021 Toggle check state on item doubleclicks. Really fixes #78454 part2.
24023 2006-06-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
24025 * Form.cs: Check that the value passed to Form.DialogResult
24026 is a valid enum value.
24028 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24030 * FileDialog.cs: disable the up button when in 'Recently Used' or 'My
24031 Computer'. Clicking it in the network view goes to 'My Computer'.
24032 Added CIFS filesystem type. Display the mount point of filesystems.
24033 Avoid duplicate mount points (happens for me with CIFS);
24035 2006-06-06 Jackson Harper <jackson@ximian.com>
24037 * InternalWindowManager.cs: Draw the maximized windows buttons
24040 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24042 * Form.cs: when running a modal dialog, ignore WM_CLOSE requests for
24043 all other dialogs. Fixes bug #78585.
24045 2006-06-06 Mike Kestner <mkestner@novell.com>
24047 * CheckedListBox.cs : apply CheckOnClick behavior to unchecking too.
24048 Only invalidate checkbox on checkstate changes to avoid flicker.
24049 * ListBox.cs : avoid unselect/select when clicking selected item.
24050 avoid reselection flicker for already multiselected items.
24053 2006-06-06 Jackson Harper <jackson@ximian.com>
24055 * MdiWindowManager.cs: When the window is closed do an NCRecalc on
24056 the parent form so that the menu is removed if needed.
24058 2006-06-06 Mike Kestner <mkestner@novell.com>
24060 * ListBox.cs : add ScrollWindow call to UpdateTopItem. fix
24061 Prev/Next/PrevPage/NextPage/Home/End index calculation. Fixes #78559.
24063 2006-06-06 Mike Kestner <mkestner@novell.com>
24065 * CheckedListBox.cs : rebuild check collection on Add. Fixes #78426.
24068 2006-06-06 Jackson Harper <jackson@ximian.com>
24070 * Control.cs: Use the property (instead of the field) to get the
24071 default cursor so it is instantiated correctly.
24072 * InternalWindowManager.cs: The OS doesn't give us an NCPAINT with
24073 resizes so we need to manually repaint the window decorations here.
24074 - Set the titlebar button locations as soon as they are created,
24075 otherwise they are not set correctly on win32.
24077 2006-06-06 Chris Toshok <toshok@ximian.com>
24079 * CurrencyManager.cs (set_Position): call PullData before
24081 (AddNew): after calling IBindingList.AddNew, update our
24082 listposition, and call OnCurrentChanged/OnPositionChanged (without
24084 (OnCurrentChanged): remove the call to PullData from here.
24085 (OnItemChanged): remove the call to PushData from here.
24086 (OnPositionChanged): change the test from == null to != null to
24087 match the other methods.
24088 (ListChangedHandler): the grossest part of the patch. Implement
24089 this such that it passes the unit tests in CurrencyManagerTest and
24090 the output more or less matches that of MS's implementation.
24092 2006-06-06 Mike Kestner <mkestner@novell.com>
24094 * ListView.cs : only update check state on single click.
24095 * ThemeWin32Classic.cs : fix focus drawing for details view without
24096 fullrowselect. Fixes #78454.
24097 * XplatUIX11.cs : fix for double click emission.
24099 2006-06-05 Jonathan Chambers <jonathan.chambers@ansys.com>
24101 * PropertyGridView.cs : Applied Atsushi's patch to fix
24102 font dialog bug (#78197).
24104 2006-06-05 Jackson Harper <jackson@ximian.com>
24106 * TreeNode.cs: Compute the next node for expanding/collapsing
24107 correctly. We now factor in nodes without a NextNode
24108 correctly. (Fixes somes cases in nunit-gui).
24109 * InternalWindowManager.cs: Set the bounds when updating the
24110 virtual position of a tool window.
24112 2006-06-05 Chris Toshok <toshok@ximian.com>
24114 * DataGrid.cs: rename cached_currencymgr to list_manager.
24115 (set_CurrentCell): move SetCurrentCell code here, and clean it up
24117 (CurrentRow, CurrentColumn): single accessors so we can make the
24118 cursor movement code a lot easier to understand.
24119 (CurrentRowIndex): implement this in terms of CurrentRow.
24120 (BeginEdit): clean this up a bit.
24121 (CancelEditing): sort out the is_editing/is_changing/is_adding
24123 (EndEdit): minor changes.
24124 (OnKeyDown): add a comment about a (most likely) unnecessary
24126 (OnMouseDown): cancel editing when we click on a row header. And
24127 use the CurrentRow setter, not CurrentCell.
24128 (ProcessDialogKey): directly call ProcessGridKey.
24129 (UpdateSelectionAfterCursorMove): factor out this common block of
24130 code (it's used everywhere that we move the cursor by updating row
24132 (ProcessGridKey): pretty substantial overhaul. Use the
24133 CurrentRow/CurrentColumn properties to make the code a lot more
24134 readable. Only use the CurrentCell property when we have to
24135 modify both row and column at once. Tab behavior is still broken,
24136 and Delete is untested.
24137 (Select): if we have no selected rows, set selection_start to
24139 (EditCurrentCell): rename EditCell this. It was only ever invoked
24140 with CurrentCell as the arg, so drop the arg and rename it.
24142 * DataGridColumnStyle.cs: clean up the constructors a little, and
24143 drop CommonConstructor().
24145 * DataGridTextBox.cs (.ctor): set accepts_return to true so we
24146 actually get notified when the user hits it.
24147 (ProcessKeyMessage): *substantially* simplify this method.
24148 There's no reason (that I can see) for the textbox to be making
24149 calls into the datagrid at all. Remove all of them but the ones
24150 for Enter handling. those will take some more work.
24152 * DataGridTextBoxColumn.cs (ConcedeFocus): implement this by
24153 calling HideEditBox.
24154 (HideEditBox): if we have an active textbox, render it invisible
24155 without causing a re-layout of the datagrid.
24157 2006-06-05 Mike Kestner <mkestner@novell.com>
24159 * ListView.cs : fix NRE crasher when focuseditem is cleared by
24160 collection changes by resetting it to Items[0]. Fixes #78587.
24162 2006-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24164 * MessageBox.cs: if the height of the text is larger than the icon_size,
24165 use that. Fixes bug #78575.
24167 2006-06-05 Jackson Harper <jackson@ximian.com>
24169 * TreeView.cs: Fix line drawing when scrolling. To do this each
24170 node is basically responsible for drawing its entire horizontal
24171 area. When drawing a node it draws its parent node lines if
24173 - Adjust the clip area to the viewport rectangle
24174 - Fix Left/Right key handling to match MS. (It expand/collapses
24175 and moves to parents/first child but does not move selection to
24177 - Fix SetTop to work with new bound calculation code
24178 - When scrollbars are no longer needed we need to reset scrolling
24179 vars and recalculate the visible order so the redraw is correct
24180 * TreeNode.cs: We can't expand/collapse nodes with no children.
24182 2006-06-03 John Luke <john.luke@gmail.com>
24184 * X11DesktopColors.cs: dllimport the exact gtk and gdk versions
24185 so the colors work without dev packages
24187 2006-06-02 Peter Dennis Bartok <pbartok@novell.com>
24190 - Select: Implemented to just use activate. Seems to match MS
24191 behaviour closest. Documented to only do actual control walking
24192 based on it's parameters if in a container control so I moved
24194 - Removed selection check logic from our internal Select() method
24195 * ContainerControl.cs:
24196 - Select: Moved selection logic from Control here, since MS documents
24197 that containers obey the bool arguments. No longer calling base
24199 2006-06-02 Jackson Harper <jackson@ximian.com>
24201 * TreeView.cs: If the selected node isn't changed when we get
24202 focus update the previously selected node so that we see the
24205 2006-06-02 Mike Kestner <mkestner@novell.com>
24207 * ComboBox.cs: restructure grab and general mouse event handling.
24208 Make the composite control raise mouse events like it was a single
24209 control for leaves/enters/motion/up/down events. fix dropdown list
24210 coordinate mangling and refactor it into the scrollbar subclass to
24211 reduce code duplication. Fixes #78282 #78361 and #78457.
24213 2006-06-02 Mike Kestner <mkestner@novell.com>
24215 * ScrollBar.cs: remove Capture setting/clearing, as it happens
24216 automatically in the Control.WndProc.
24218 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24220 * FileDialog.cs: fix crash when running SharpChess, which sets the
24221 FilterIndex to 2 with only one Filter.
24223 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24225 * ToolBar.cs: add SizeSpecified property.
24226 * ToolBarButton.cs: when the ButtonSize is calculated by the container,
24227 try to figure out our real size, otherwise fallback to what the
24230 2006-06-01 Peter Dennis Bartok <pbartok@novell.com>
24232 * XplatUIX11.cs (DefWndProc): WM_MOUSEWHEEL needs to be passed up
24233 * Control.cs (WndProc): MS always calls the DefWndProc to pass
24236 2006-06-01 Mike Kestner <mkestner@novell.com>
24238 * ListView.cs: revamp the focus management in ListView. It still
24239 causes churn of LostFocus/GotFocus emissions on clicks, but it's
24240 better than not handling focus at all. Will revisit when pdb feels
24241 the general focus handling is solid. Fixes #78526.
24243 2006-06-01 Jackson Harper <jackson@ximian.com>
24245 * TreeView.cs: Set the default border style in the constructor.
24246 - Move painting to use OnPaintInternal instead of capturing
24247 WM_PAINT, this is the correct way of doing things
24248 - UpdateBelow shouldn't invalidate the scrollbar area
24249 - Cap the top on update below in case the node was above the top
24250 of the viewport rectangle.
24251 - ExpandBelow and Collapse below need to obey Begin/End Update.
24252 * TreeNode.cs: Make is_expanded internal so the treenode
24253 collection can change it without firing the whole event chain.
24254 * TreeNodeCollection.cs: When clearing all the child nodes make
24255 sure to recalc the visible order.
24256 - Improve algo for remove the top node
24258 2006-06-01 Peter Dennis Bartok <pbartok@novell.com>
24260 * XplatUIX11.cs (SetFocus): Make sure we can handle re-entrancy due to
24261 SendMessage directly calling window procedures, which in turn might
24264 2006-06-01 Peter Dennis Bartok <pbartok@novell.com>
24266 * Control.cs: Don't handle WM_SETFOCUS if the same window already
24267 has focus (works around X11 sending a FocusIn after our SetFocus)
24268 * XplatUIX11.cs: Send KILLFOCUS before setting SETFOCUS on new window
24270 2006-06-01 Alexander Olk <alex.olk@googlemail.com>
24272 * Mime.cs: Fix for the NET_2_0 build.
24273 NameValueCollection needs StringComparer now.
24275 2006-05-31 Chris Toshok <toshok@ximian.com>
24277 * DataGridDrawingLogic.cs (FromPixelToColumn): modify this to also
24278 return (via an out parameter) the starting X of the column.
24279 (UpdateVisibleColumn): track change to FromPixelToColumn.
24280 (HitTest): add a ColumnResize case here.
24281 (DrawResizeLine): new function, probably poorly named.
24283 * DataGrid.cs (.ctor): get rid of cached_currencymgr_events. We
24284 only need to keep one reference.
24285 (set_ListManager): same.
24286 (OnMouseDown): call HitTest instead of grid_drawing.HitTest.
24287 Also, add support for HitTestType.ColumnResize.
24288 (OnMouseMove): add column resize behavior here, and change the
24289 cursor to the correct one as we move around the datagrid.
24290 (OnMouseUp): terminate the column resize if we're resizing.
24291 (ProcessGridKey): from the MS docs, Alt-0 enters the null value
24292 for the current cell.
24293 (ConnectListManagerEvents): use cached_currencymgr.
24294 (DisconnectListManagerEvents): fill this in, using
24295 cached_currencymgr.
24296 (SetCurrentCell): remove cached_currencymgr_events handling.
24297 (SetDataMember): only call DisconnectListManagerEvents if
24298 cached_currencymgr is != null.
24299 (SetDataSource): same.
24300 (OnListManagerCurrentChanged): cached_currencymgr_events ->
24301 cached_currencymgr.
24303 2006-05-31 Jackson Harper <jackson@ximian.com>
24305 * BindingManagerBase.cs: Remove somedebug code that creeped into
24307 * TreeNode.cs: We get the indent level dynamically right now, so
24308 don't track it as a member.
24309 * TreeNodeCollection.cs: Make sure all nodes added to the list
24310 have parents, treeviews/topnodes setup properly.
24311 - Don't attempt to track indent level.
24313 2006-05-30 Jackson Harper <jackson@ximian.com>
24315 * BindingContext.cs: Create the currency manager tables here.
24316 This allows us to more easily create null tables (when bad data
24317 members are used), and more easily create related currency
24319 * CurrencyManager.cs: All the table creation stuff is done by the
24320 binding context now.
24321 - Current should throw an exception if listposition is -1.
24322 - CancelCurrentEdit/EndCurrentEdit, do nothing if the list hasn't
24325 2006-05-30 Mike Kestner <mkestner@novell.com>
24327 * ListView.cs: allow reexpansion of zero-width column headers.
24330 2006-05-28 Chris Toshok <toshok@ximian.com>
24332 * CurrencyManager.cs (get_Current): after the late binding
24333 listposition = -1 fix, we need to guard against it here and return
24334 null, otherwise we raise an exception (which is swallowed
24335 elsewhere, and breaks datagrid databinding.)
24337 2006-05-26 Peter Dennis Bartok <pbartok@novell.com>
24339 * MenuAPI.cs (ProcessMenuKey): We can legally get msg types other
24340 than WM_SYSKEY, don't throw if get something unexpected (#78507)
24342 2006-05-26 Jackson Harper <jackson@ximian.com>
24345 * ThemeWin32Classic.cs: For color comparisons just use the ARGB
24346 values, it's faster and it's all we care about (we don't care if
24347 the names aren't equal).
24348 * KeyboardLayouts.cs: Eliminate some dead code.
24350 * X11Keyboard.cs: Lazy init keyboard detection.
24351 - Cleanup access modifiers a little.
24353 2006-05-26 Peter Dennis Bartok <pbartok@novell.com>
24355 * XplatUIX11.cs: Once again, attempting to get layout just right.
24357 2006-05-26 Peter Dennis Bartok <pbartok@novell.com>
24359 * LinkLabel.cs (CreateLinkPieces): Use MeasureString to calculate
24360 the sizes of each link section, that will result in sizes that
24361 match DrawString's layout (Fixes #78391)
24363 2006-05-27 Alexander Olk <alex.olk@googlemail.com>
24365 * FileDialog.cs: If AddExtension property is true autocomplete the
24366 extensions in SaveFileDialog correctly. Fixes bug #78453.
24367 Set MyNetwork and MyComputer to "C:\" for windows. This should
24368 fix part 8 of bug #78446 for now.
24370 2006-05-26 Chris Toshok <toshok@ximian.com>
24372 * DataGrid.cs (ColumnStartedEditing): fill these in. for now just
24373 invalidate the current row header if we need to, but presumably
24374 we'll invalidate the row corrsponding to the bounds or
24376 (GridHScrolled): switch back to this method, as it's part of the
24377 public api. *sigh*.
24378 (GridVScrolled): same.
24379 (OnMouseWheel): hack up something that more or less works. Call
24380 GridHScrolled/GridVScrolled directly, instead of duplicating much
24381 of their code here.
24382 (EnsureCellVisibility): reinstate a bunch of this code, since we
24383 can't just set the scrollbar Value and expect to do all the work
24384 in the ValueChanged handler. Also, Call Update() after scrolling
24385 in one direction so the other XplatX11.ScrollWindow call has the
24386 proper stuff in the proper places.
24387 (EditCell): set is_editing to true before calling .Edit.
24389 * DataGridTextBox.cs (set_IsInEditOrNavigateMode): just set it,
24390 don't bother comparing first.
24391 (OnKeyPress): call grid.ColumnStartedEditing before calling
24392 base.OnKeyPress. this will set is_changing and invalidate the row
24393 header if necessary.
24394 (ProcessKeyMessage): for WM_CHAR messages, call
24395 ProcessKeyEventArgs directly. swallow anything other than WM_CHAR
24398 * DataGridBoolColumn.cs (Edit): don't set is_editing to true here.
24399 it's done in the DataGrid.
24400 (NextState): call grid.ColumnStartedEditing, which takes care of
24401 invalidating the row header (and setting is_changing).
24403 * DataGridTextBoxColumn.cs (Edit): don't set is_editing to true
24404 here. it's done in the DataGrid.
24406 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24408 * Control.cs: allow changing the cursor when the mouse position is
24409 out of bounds but Capture is set.
24410 * LinkLabel.cs: handle the case when the mouse button is pressed on the
24411 linklabel but released somewhere else.
24413 2006-05-25 Jackson Harper <jackson@ximian.com>
24415 * TreeView.cs: When we get focus if there is no selected node make
24417 - Remove some uneeded setup code from Draw.
24418 * TreeNodeCollection.cs: If the tree doesn't have a top node when
24419 a new node is inserted make the new node the top.
24421 * Timer.cs: Use Utc time so that no local time zone stuff needs to
24422 be used (should be faster).
24424 2006-05-25 Chris Toshok <toshok@ximian.com>
24426 * DataGrid.cs (EnsureCellVisibility): remove some code to fix a
24427 problem with the last commit.
24429 2006-05-25 Chris Toshok <toshok@ximian.com>
24431 * DataGridTextBoxColumn.cs (ReleaseHostedControl): turns out we do
24432 need the invalidate call here, while scrolling right-to-left via
24433 the left arrow key (i.e. moving the editing cell while scrolling).
24435 * DataGrid.cs (.ctor): remove the initialization of
24436 ctrl_pressed/shift_pressed. We no longer track them using key
24437 up/down handlers, but by using Control.ModifierKeys. Also, switch
24438 to using ValueChanged handlers on the scrollbars instead of
24439 Scrolled event handlers. This simplifies a bunch of the scrolling
24441 (GridHValueChanged): rename from GridHScrolled, and change it to
24442 work with the new event args.
24443 (GridVValueChanged): same.
24444 (OnMouseDown): initialize ctrl_pressed/shift_pressed here.
24445 (OnMouseWheel): actually scroll the datagrid. Don't change the
24447 (ProcessGridKey): correct all the keyboard navigation stuff I
24448 could find. Ctrl up/down/left/right/home/end work now.
24449 (EnsureCellVisibility): correct method name spelling. Also,
24450 simplify this a touch by not explicitly calling the
24451 ScrollToRow/ScrollToColumnInPixels methods. We just set the
24453 (OnKeyUpDG): no need for this method now.
24455 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24457 * LinkLabel.cs: display the OverrideCursor when hovering the label.
24460 2006-05-25 Chris Toshok <toshok@ximian.com>
24462 * ThemeWin32Classic.cs: fix datagrid clipping problems caused by
24465 2006-05-25 Peter Dennis Bartok <pbartok@novell.com>
24467 * Application.cs: Moved setting of is_modal and closing to before
24468 we create the control, to allow the event handlers called as a
24469 result of creation affect closing. Also removed Gonzalo's previous
24470 change to setting DialogResult, the behaviour has been moved to
24473 - ShowDialog(): Removed explicit creation of the form, let RunLoop
24475 - ShowDialog(): If no dialog result is set, we need to return Cancel
24476 - WM_CLOSE: Fire Closing/Closed events, and reset dialog result if
24477 the close is cancelled
24479 2006-05-25 Jackson Harper <jackson@ximian.com>
24481 * StatusBar.cs: We only need to update the sizes of the other
24482 panels when we have auto size contents. Also we are only updating
24483 the contents of the panel, not the borders, so compensate for the
24484 border width (TODO: get this width from the theme somehow).
24485 * TreeView.cs: Scrollable is true by default
24486 - Use invalidate instead of refresh where needed
24487 - Factor the scrollable value into scrollbar updating
24488 - Update the scrollbars if the Scrollable property is altered
24489 - Update the selected node if its ImageIndex is changed
24490 - Handle null nodes in UpdateNode (mainly so we don't have to
24491 check if selected is null when updating it
24492 - Fix VisibleCount to use the ViewportRectangle so that scrollbars
24493 are factored into the visible count
24494 - Use VisibleCount for clarity in the code
24495 - When the font is changed we need to recurse through all the
24496 nodes and invalidate their sizes
24498 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24500 * Application.cs: set the DialogResult to fixed when the main form is
24501 hidden or destroyed while being modal.
24503 2006-05-25 Miguel de Icaza <miguel@novell.com>
24505 * Theme.cs: Use Tangoified messagebox icons.
24507 (GetSizedResourceImage): Also cope with width = 0 and do not
24508 trigger a warning in that case (0 means "give me your icon from
24509 the resouce, no special size needed).
24511 2006-05-25 Peter Dennis Bartok <pbartok@novell.com>
24513 * Application.cs: Leave runloop if the the main modal form is
24514 hidden (fixes #78484)
24516 2006-05-25 Atsushi Enomoto <atsushi@ximian.com>
24518 * BindingContext.cs : reject null datasource in Contains() and
24520 * CurrencyManager.cs : check data_member validity when data_source
24521 is dataset. When it is late binding, the initial position is -1.
24523 2006-05-24 Jackson Harper <jackson@ximian.com>
24525 * TreeNodeCollection.cs: Dont't recalculate the visible order on
24526 inserted nodes that aren't visible. This changes the
24527 max_visible_order which confuses scrollbar settings.
24528 - Use the enumerator to get the prev node instead of duplicating
24530 * TreeView.cs: Use new method for setting scrollbar values
24531 - Don't set the bounds every time the scrollbar is updated
24532 - When updating below the root node use an invalidate instead of a
24533 refresh to prevent the child controls (scrollbars) from being
24534 refreshed. (UpdateBelow still needs to be reworked anyways).
24535 - Reenable SetBottom now that visible orders are set correctly,
24536 added some debug code incase we ever get bad values there again.
24537 - Set the scrollbar max to 2 less then the max value, this
24538 compensates for the max value being one above the node count, and
24539 for scrollbars adding one extra "notch".
24540 - When drawing image nodes if there is an imagelist we draw the
24541 first image in the list if the supplied image index is out of the
24542 image list's bounds.
24544 2006-05-24 Peter Dennis Bartok <pbartok@novell.com>
24546 * XplatUIX11.cs: Don't blindly cache hwnd.ClientRect, reset it when
24547 we receive a size change from the WM (Fixes #78503)
24549 2006-05-24 Peter Dennis Bartok <pbartok@novell.com>
24551 * XplatUIWin32.cs, XplatUIX11.cs: Refresh when setting the Clip
24552 rectangle (Fixes #78501)
24554 2006-05-24 Peter Dennis Bartok <pbartok@novell.com>
24557 - Fixed MouseUp, MouseDown and MouseMove to treat mouseevent.Button
24559 - Fixed MouseMove to no longer switch pressed state unless the left
24560 mouse button is pressed. Atsushi provided the original patch (#78485)
24562 2006-05-24 Jackson Harper <jackson@ximian.com>
24564 * ScrollBar.cs: New internal methods that allow us to change a
24565 couple values on the scrollbar (the most common case is maximum
24566 and large change) without getting multiple invalidates.
24568 2006-05-24 Chris Toshok <toshok@ximian.com>
24570 * DataGridBoolColumn.cs (Abort): revert back to the saved setting.
24571 (Edit): save off the original state in oldState, and set
24572 grid.is_editing to true.
24573 (OnKeyDown): abort editing if escape is pressed. also, call
24574 NextState if space is pressed.
24575 (OnMouseDown): call NextState.
24576 (NextState): factor out shared code from OnKeyDown and OnMouseDown
24577 here. Also, only invalidate the row header once (on the initial
24578 is_changing switch) to save on redraws.
24580 2006-05-24 Chris Toshok <toshok@ximian.com>
24582 * DataGridTextBoxColumn.cs (Commit): only call SetColumnValueAtRow
24583 if the value in the cell is different than it was before. This
24584 keeps us from triggering a layout when we move around a datarid
24585 with a highlighted cell.
24586 (Edit): suspend layout when creating/positining the text box, and
24587 resume passing false so we don't ever actually re-layout.
24588 (ReleaseHostedControl): same.
24589 (EnsureTextBox): reformat slightly, and set WordWrap to false.
24591 * DataGridTextBox.cs (ProcessKeyMessage): it's not true that all
24592 control-key sequences should go to the datagrid - remove that
24593 lock. Also, modify the conditions under which we move between
24594 cells when moving the cursor within a cell, and remove the "this"
24595 and "base" from field accesses. We weren't even consistent, given
24596 they all were in the base class.
24598 2006-05-24 Atsushi Enomoto <atsushi@ximian.com>
24600 * Binding.cs : (.ctor)
24601 An obvious NRE fix for BindingTest.CtorNullTest().
24603 2006-05-23 Chris Toshok <toshok@ximian.com>
24605 * TextBoxBase.cs (get_Text): don't add a trailing newline, add
24606 them between lines. This fixes some quirks editing cells in the
24609 2006-05-23 Jackson Harper <jackson@ximian.com>
24611 * TreeView.cs: Use begin/end update when doing expand/collapse all
24612 so that we don't get flicker on the scrollbar.
24614 2006-05-23 Jackson Harper <jackson@ximian.com>
24616 * TreeNode.cs: Bounds are computed 'on the fly' now. This allows
24617 treenode calculations to be independant of the painting code. To
24618 do this nodes track a visible order which is calculated by the
24620 - Call new methods for expanding/collapsing nodes. These methods
24621 use scrollwindow so we don't have to update everything below the
24623 * TreeView.cs: Refactored drawing and scrolling code. We don't
24624 need to update nodes when drawing anymore or calculate scrollbar
24626 - Added new methods for expanding/collapsing nodes. These methods
24627 use ScrollWindow so as to not have to redraw all the nodes below.
24628 * TreeNodeCollection.cs: Recalc visible order and scrollbars when
24629 we add/remove nodes or sort.
24630 - Handle removing the selected and the top node properly.
24632 2006-05-23 Chris Toshok <toshok@ximian.com>
24634 * DataGridTextBoxColumn.cs (Edit): set grid.is_editing to true.
24635 maybe this should actually happen in the datagrid code?
24636 (EndEdit): no need to invalidate anything, given that
24637 ReleaseHostedControl causes the datagrid to relayout, which
24638 invalidates everything anyway.
24640 * DataGrid.cs (set_CurrentCell): remove duplicate check (it's also
24641 in SetCurrentCell).
24642 (set_SelectionBackColor): call InvalidateSelection instead of
24644 (set_SelectionForeColor): same.
24645 (BeginEdit): Flesh this out a bit.
24646 (CancelEditing): only do any of this if we're editing/adding.
24648 (OnMouseDown): there's no need to cancel editing here, it's done
24650 (SetCurrentCell): only invalidate the current row header if it's a
24651 different row than the new one.
24652 (ShiftSelection): fix this to work like MS does.
24653 (ResetSelection): factor out the invalidation of selected_rows to
24654 InvalidateSelection.
24655 (SetDataSource): cancel any editing that's going on.
24657 * DataGridColumnStyle.cs
24658 (IDataGridColumnStyleEditingNotificationService.ColumnStartedEditing):
24659 call the non-interface version.
24661 * ThemeWin32Classic.cs (DataGridPaintColumsHdrs): intersect the
24662 header rectangle with the clip rectangle so we don't redraw the
24663 entire header for just a small area. Gets rid of the last flicker
24664 when horizontally scrolling.
24665 (DataGridPaintRow): same.
24667 2006-05-23 Mike Kestner <mkestner@novell.com>
24669 * ListViewItem.cs: remove size for line hack from LargeIcon layout.
24670 * ThemeWin32Classic.cs: don't draw line. it's really the top of a
24671 poorly placed checkbox on the MS control. Fixes Alex's unfiled
24672 Critical bug report.
24674 2006-05-23 Peter Dennis Bartok <pbartok@novell.com>
24676 * PictureBox.cs: Fixed broken ControlStyles. Unit test no longer fails,
24677 and this fixes #78493
24679 2006-05-23 Miguel de Icaza <miguel@novell.com>
24681 * Theme.cs (GetSizedResourceImage): Scale images if the proper
24684 * FileDialog.cs: Do not change the background for the side bar as
24685 it wont work nicely with the theme, and also reduces the artifacts
24686 in rendering the icons (which I want to fix too).
24688 * MimeIcon.cs (ResourceImageLoader): Load images from assembly
24689 resources, not resgen resources.
24691 (PlatformDefaultHandler): Pull images using the new API.
24693 2006-05-23 Peter Dennis Bartok <pbartok@novell.com>
24695 * Hwnd.cs (Dispose): Remove any pending exposures. XEventQueue holds
24696 a reference to the hwnd and will not remove it unless there are
24697 no pending exposures (fixes #78341)
24698 * XplatUI.cs: Improved debug
24700 2006-05-23 Atsushi Enomoto <atsushi@ximian.com>
24702 * MenuAPI.cs : don't handle OnClick event when it was not the left
24703 button. Fixed bug #78487.
24705 2006-05-23 Mike Kestner <mkestner@novell.com>
24707 * MenuAPI.cs: fix placement of submenus for multi-row menu bars, and
24708 prefer submenus to the top menu for item lookup, to avoid popping down
24711 2006-05-23 Alexander Olk <alex.olk@googlemail.com>
24713 * ThemeWin32Classic.cs: Rewrote CPCPDrawScrollButton to drop
24714 Graphics.FillRectangle as the visual results are really bad (even
24715 on win). We now draw perfect arrows (and perfect shadows when the
24716 scrollbar is disabled). Simplified CPDrawGrid. CPDrawGrid now uses
24717 Pen.DashPattern to draw the dots of each line.
24719 2006-05-22 Alexander Olk <alex.olk@googlemail.com>
24721 * FileDialog.cs: Update the filename combobox when navigating through
24722 the ListView with the cursor keys. Fixes part 7 of bug #78446.
24724 2006-05-22 Mike Kestner <mkestner@novell.com>
24726 * ListView.cs: raise SelectedIndexChanged on keyboard selection.
24729 2006-05-22 Mike Kestner <mkestner@novell.com>
24731 * ComboBox.cs: Refresh in EndUpdate to pick up all the dropped Paint
24732 requests. Fix a misspelled parameter and a copy paste exception error
24735 2006-05-22 Peter Dennis Bartok <pbartok@novell.com>
24737 * ThemeWin32Classic.cs: Changed DefaultFont emSize from 8.25 to 8
24738 to get the same width/height (5/13) on X11 as the default font has on
24739 win32. This means that our DefaultFont emSize is smaller than the
24740 the MS SWF equivalent (even thought the width/height stays the same)
24742 2006-05-20 Jackson Harper <jackson@ximian.com>
24745 * MdiWindowManager.cs:
24746 * InternalWindowManager.cs: Make sure to use the border width from
24749 2006-05-20 Jordi Mas i Hernandez <jordimash@gmail.com>
24751 * PrintDialog.cs: Implements printer details
24753 2006-05-19 Alexander Olk <alex.olk@googlemail.com>
24755 * FileDialog.cs: Added focus handling for PopupButtonPanel.
24756 Fixes part 1 and 2 of bug #78446
24758 2006-05-19 Peter Dennis Bartok <pbartok@novell.com>
24760 * XplatUIX11.cs (SetWindowPos): Recalculate client area size on resizes
24761 instead of sticking to the first ever calculated value
24763 2006-05-19 Mike Kestner <mkestner@novell.com>
24765 * ComboBox.cs: fix mouse motion selection to use MousePosition and
24766 PointToClient, since Capture is set. Fixes #78344.
24768 2006-05-19 Mike Kestner <mkestner@novell.com>
24770 * ListView.cs: match MS behavior in Details view where items are not
24771 drawn if Columns.Count == 0.
24772 * ThemeWin32Classic.cs: only highlight ListView selection if focused.
24773 Use a separate pen to draw the check, since changing the width affects
24774 the box as well. Fixes #78454.
24776 2006-05-18 Miguel de Icaza <miguel@novell.com>
24778 * ListView.cs: ArgumentOutOfRangeException, single versions of the
24779 exception should throw the name of the invalid argument.
24781 * FileDialog.cs (OnClickOpenSaveButton): Avoid crash in open if
24782 there are no files listed.
24784 2006-05-18 Jackson Harper <jackson@ximian.com>
24786 * ThemeWin32Classic.cs: Don't use endcaps, they mess the drawing
24789 2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
24791 * Control.cs: Brought back our old UpdateZOrder method as a private
24792 function and switched our calls from UpdateZOrder to the new one.
24793 This fixes the Paint.Net canvas disappearing bug.
24795 2006-05-18 Jackson Harper <jackson@ximian.com>
24798 * ThemeWin32Classic.cs:
24799 * InternalWindowManager.cs: Move the drawing into the theme,
24800 expose everything the theme should need from the window manager.
24802 2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
24804 * XplatUIX11.cs (DefWndProc): WM_SETCURSOR: Assign the return value
24805 from the call to NativeWindow to avoid walking up the parent chain
24806 further than needed (speeds up setting cursors and avoids setting
24807 the wrong cursor if a parent has another cursor defined)
24808 * Cursor.cs: When loading an icon as cursor, MS uses the center of
24809 the icon as hotspot, not what's contained as hotspot in the icon
24810 file. This fixes the perceived drawing offset seen with Paint.Net
24812 2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
24815 - Store the calculated rectangle in Hwnd object and use it when
24816 setting the client size
24817 - Force Toolwindows to always be type Dock, to ensure they're on top
24819 2006-05-18 Mike Kestner <mkestner@novell.com>
24821 * ComboBox.cs: first pass at ComboBox rework. Layout is more
24822 consistent with MS positioning. IntegralHeight, ItemHeight, Sizing.
24823 Correctly initialize textcontrol and ListBox on DropDownStyle changes.
24824 Substantial refactoring to remove confusing nested classes. Coding
24825 standard and Get+Set->property refactorings. Shift to index based
24826 highlighting in ComboListBox instead of constantly using IndexOf and
24827 Items[]. Add invalidations on resize for DropDownList to fix ugliness
24828 in FileDialog growth. Draw borders manually since Simple mode needs
24829 to look like two independent controls. Make listbox border
24830 conditional to DropDownStyle. Improved OwnerDraw support.
24832 2006-05-18 Sebastien Pouliot <sebastien@ximian.com>
24834 * PaintEventArgs.cs: For 2.0, check for a null Graphics in the .ctor.
24835 Don't set the disposed graphics to null, so we can throw the "right"
24836 exception if the graphics is reused later (added a flag to avoid
24837 double disposing). Some behaviours are different under 2.0 and are
24838 filled under bug #78448.
24840 2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
24842 * Control.cs: When double-buffering is enabled, we need to reset
24843 our graphics context between paint calls. Otherwise, any
24844 transformations and other alterations on the context will
24845 become cumulative (#77734)
24847 2006-05-18 Mike Kestner <mkestner@novell.com>
24849 * ListView.cs: do focused item selection like MS on clicks.
24850 Rework focus handling for ItemControl so LostFocus invalidates as
24852 * ThemeWin32Classic.cs: only draw focus rectangle for ListViewItems if
24853 the ListView ItemControl has focus.
24855 2006-05-17 Peter Dennis Bartok <pbartok@novell.com>
24857 * XplatUIX11.cs: If client_window ends up being width or height zero
24858 due to border settings, move it off window inside whole_window (#78433)
24860 2006-05-17 Alexander Olk <alex.olk@googlemail.com>
24862 * Mime.cs: Shrink the mime file cache correctly.
24864 2006-05-17 Alexander Olk <alex.olk@googlemail.com>
24866 * ThemeWin32Classic.cs: Readded button focus drawing code. (#78429)
24868 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
24870 * XplatUIX11.cs (AddExpose): More sanity checks
24872 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
24875 - AddExpose: Don't add expose ranges outside the size of our
24877 - Cast opacity values to Int32 to avoid crashes with certain
24879 - Added disabled code paths that protect against illegal cross-
24880 thread painting (Developers.exe)
24882 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
24884 * ProgressBar.cs: Invalidate the control when it's resized
24885 since block size is based on control size. (#78388)
24887 2006-05-16 Miguel de Icaza <miguel@novell.com>
24889 * DataGrid.cs (SetDataBinding): per the discussion on irc, instead
24890 of setting the incoming argument to the "reset" value, we set the
24891 this.datamember to string.empty (before we were invalidating the
24896 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
24898 * Form.cs: Only apply transparency settings after the form
24899 is created. (Fixes #77800)
24901 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
24903 * ApplicationContext.cs: Grab the HandleDestroyed event so
24904 we know when to fire OnMainFormClosed
24906 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
24908 * Application.cs: Introduced sub-class to allow tracking of
24909 threads and centralized triggering of the event mess for
24910 ThreadExit, AppExit, etc.. (#76156)
24912 2006-05-16 Alexander Olk <alex.olk@googlemail.com>
24915 - Do not return a null icon index value for a mime subclass.
24916 Instead try the main mime type class too.
24917 - Seems that some newer distributions don't have a link to some
24918 gnome default icons anymore. So check the default gnome dir too.
24921 2006-05-16 Jackson Harper <jackson@ximian.com>
24923 * MdiClient.cs: Don't paint the parent background image if we have
24924 our own background image.
24926 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
24929 - PerformLayout: Do not shrink space filled by DockStyle.Fill
24930 controls, all filled controls are supposed to overlap (#78080)
24931 - UpdateZOrder is supposed to update the control's z-order in the
24932 parent's z-order chain. Fixed to behave like that
24933 - BringToFront: Removed obsolete code
24934 - SendToBack: Simplyfied
24935 - SetChildIndex: Trigger layout calculations when Z-order changes
24936 since layout is done by z-order
24938 2006-05-16 Chris Toshok <toshok@ximian.com>
24940 [ fixes bug #78410 ]
24941 * DataGrid.cs (set_AlternatingBackColor): use
24942 grid_drawing.InvalidateCells instead of Refresh().
24943 (set_BackColor): call grid_drawing.InvalidateCells.
24944 (set_BackgroundColor): use Invalidate instead of Refresh.
24946 * DataGridDrawingLogic.cs (InvalidateCells): new function, just
24947 invalidate the cell area.
24949 2006-05-15 Chris Toshok <toshok@ximian.com>
24951 [ fixes bug #78011 ]
24952 * ThemeWin32Classic.cs (DataGridPaintRows): pass the clip argument
24953 on to DataGridPaintRow.
24954 (DataGridPaintRow): take a clip argument, and only draw the cells
24955 which intersect it. same with the not_usedarea.
24957 * Theme.cs (DataGridPaintRow) add @clip parameter.
24959 * DataGrid.cs (ScrollToColumnInPixels): simplify, use
24960 XplatUI.ScrollWindow.
24961 (ScrollToRow): same.
24963 * DataGridDrawingLogic.cs (UpdateVisibleColumn): fix corner case
24964 with last column which was causing a gray swath to appear with the
24965 XplatUI.ScrollWindow code.
24967 2006-05-15 Chris Toshok <toshok@ximian.com>
24969 * ListBox.cs (HorizontalScrollEvent): in the non-multicolumn case,
24970 use XplatUI.ScrollWindow.
24971 (VerticalScrollEvent): use XplatUI.ScrollWindow.
24973 2006-05-15 Peter Dennis Bartok <pbartok@novell.com>
24975 * TextBoxBase.cs: Added handling of middle-button paste for X11. (#78375)
24977 2006-05-15 Peter Dennis Bartok <pbartok@novell.com>
24979 * Cursors.cs: For X11, read NWSE and NESW cursors from our resource
24980 file since there are no equivalent X11 cursors
24982 2006-05-15 Atsushi Enomoto <atsushi@ximian.com>
24984 * MonthCalendar.cs : DateTimePicker should reflect selected date
24985 on mouse*up*, not mouse*down*. Fixed originally reported part of
24988 2006-05-15 Atsushi Enomoto <atsushi@ximian.com>
24990 * TabControl.cs : When argument index is equal or more than tab
24991 count, just ignore. Fixed bug #78395.
24993 2006-05-15 Peter Dennis Bartok <pbartok@novell.com>
24995 * Control.cs: Dispose all child controls when control is diposed (#78394)
24997 2006-05-14 Alexander Olk <alex.olk@googlemail.com>
24999 * ColorDialog.cs: Finally it is possible to select the color with
25002 2006-05-14 Alexander Olk <alex.olk@googlemail.com>
25004 * PrintDialog.cs: Fix typo
25006 2006-05-14 Alexander Olk <alex.olk@googlemail.com>
25008 * PrintDialog.cs: PrintDialog is not resizable
25009 * ThemeWin32Classic.cs: Draw non links in LinkLabel with the correct
25010 color. Made some ToolBar drawing methods protected virtual.
25012 2006-05-13 Jordi Mas i Hernandez <jordimash@gmail.com>
25014 * PrintDialog.cs: Implementation of the PrintDialog
25016 2006-05-12 Chris Toshok <toshok@ximian.com>
25018 * ScrollBar.cs (set_Value): don't use Dirty/Invalidate to move the
25019 thumb, instead use MoveThumb. This has the side effect of making
25020 most of the other thumb moving machinery use MoveThumb as well.
25021 (OnHandleCreated): pass false for @dirty to UpdateThumbPos, as we
25022 need to actually invalidate the rectangle where the new thumb will
25024 (MoveThumb): use XplatUI.ScrollWindow to move the thumb around.
25025 We force an Update() after, so it's not as fast as it could be,
25026 but at least there's zero flicker and no droppings.
25027 (OnMouseMoveSB): in the thumb dragging case, use MoveThumb.
25028 (UpdateThumbPos): add another argument (dirty), which says whether
25029 or not to calculate/add dirty regions which we later invalidate.
25030 For cases where we know we're going to use MoveThumb, we pass
25031 false for this. Otherwise, pass true.
25033 2006-05-12 Jackson Harper <jackson@ximian.com>
25035 * ThemeWin32Class.cs: Fixes for alignment and icon rendering in
25038 2006-05-12 Peter Dennis Bartok <pbartok@novell.com>
25040 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new SetClipRegion
25041 and GetClipRegion methods and UserClipWontExposeParent property.
25042 * XplatUIWin32.cs: Implemented SetClipRegion/GetClipRegion methods,
25043 overriding UserClipWontExposeParent property, setting to false, since
25044 Win32 handles the required expose messages to draw our clipped parent
25046 * XplatUIX11.cs: Implemented SetClipRegion and GetClipRegion; updated
25047 PaintEventStart to set the user clip region if set.
25049 - Now internally tracking the Region for the control since we need to
25050 store it if the handle is not yet created and only set it when it
25051 becomes created. Before setting the region forced handle creation
25052 - Added code to draw the parents underneath a user-clipped region
25053 * Hwnd.cs: Added UserClip property
25055 2006-05-12 Chris Toshok <toshok@ximian.com>
25057 * ScrollBar.cs (set_LargeChange): Refresh() -> InvalidateDirty()
25058 (set_Maximum): same.
25059 (set_Minimum): same.
25060 (set_SmallChange): same.
25061 (OnMouseUpSB): remove the call to refresh when releasing the
25062 thumb. We shouldn't need it.
25064 2006-05-12 Miguel de Icaza <miguel@novell.com>
25066 * StatusBar.cs (UpdatePanel): If the panel being refreshes has the
25067 AutoSize set to None, we do not need to relayout everything, we
25068 just need to invalidate the current region.
25070 (Draw): Do not draw the entire ClientArea, just redraw the
25071 clip area being passed.
25073 * MdiClient.cs: Make MdiClient constructor with the Form argument
25076 2006-05-12 Jackson Harper <jackson@ximian.com>
25078 * ThemeWin32Classic.cs (DrawToolBar): Flat toolbars get their
25079 parents background image, but strangely not their own.
25080 - (DrawStatusBarPanel): Take into account horizontal alignment
25081 when drawing the strings and icons.
25083 2006-05-12 Mike Kestner <mkestner@novell.com>
25085 * ListBox.cs: avoid invalidations for focus when the collection is
25088 2006-05-12 Chris Toshok <toshok@ximian.com>
25090 * ScrollBar.cs (OnMouseMoveSB): when dragging the thumb, don't
25091 invalidate the entire thumb area. Call InvalidateDirty which
25092 limits the redraw to the thumb itself and surrounding pixels.
25094 * XplatUIX11.cs (ScrollWindow): optimize copying.
25096 2006-05-12 Chris Toshok <toshok@ximian.com>
25098 * DataGridDrawingLogic.cs: make CalcGridAreas non-reentrant.
25099 Figure out the positioning/layout in a single pass instead of
25100 multiple recursive invocations. Speeds up the initial display of
25101 the data grid. Also, make many things private that were
25102 originally public but unused outside this class.
25104 2006-05-11 Jackson Harper <jackson@ximian.com>
25106 * MdiClient.cs: Improved layout code.
25108 2006-05-11 Jonathan Chambers <jonathan.chambers@ansys.com>
25110 * PropertyGrid.cs : Only check GetPropertiesSupported for properties,
25111 not SelectedObject.
25113 2006-05-11 Chris Toshok <toshok@ximian.com>
25115 * Hwnd.cs (Invalid): don't start off with Rectangle.Empty, as
25116 union of that will always be {0,0,width,height}.
25118 2006-05-11 Jackson Harper <jackson@ximian.com>
25120 * Form.cs: Match MS's DefaultSize for forms (they must have
25121 changed the size in sp2).
25123 2006-05-11 Atsushi Enomoto <atsushi@ximian.com>
25125 * TextBoxBase.cs : implement CTRL+A (select all). Fixed bug #78368.
25127 2006-05-11 Atsushi Enomoto <atsushi@ximian.com>
25129 * TextControl.cs : Fixed bug #78109. This incorrect position
25130 comparison caused crash on automatic line split.
25131 * TextBoxBase.cs : reduce duplicate code.
25133 2006-05-10 Jackson Harper <jackson@ximian.com>
25135 * MdiClient.cs: Active form is only sent to the back when using
25136 the Next form functionality, when a form is clicked the current
25137 active shouldn't be sent to the back.
25138 - Layout the mdi windows when the container is first made visible.
25139 * Form.cs: Give the MdiClient a ref to the containing form when we
25142 2006-05-10 Atsushi Enomoto <atsushi@ximian.com>
25144 * LinkLabel.cs : link_font could be uninitialized, so populate one
25145 before actual use. Fixed bug #78340.
25147 2006-05-10 Atsushi Enomoto <atsushi@ximian.com>
25149 * XplatUIX11.cs : clipboard format native value is IntPtr.
25152 2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
25155 - Instead of showing context menus directly we send WM_CONTEXTMENU,
25156 which is passed up the parent chain by DefWndProc
25157 - We now handle WM_CONTEXTMENU to display any menu, or pass it
25158 to DefWndProc (#77956)
25159 * XplatUIX11.cs: Added handling of WM_CONTEXTMENU (pass up) to DefWndProc
25161 2006-05-10 Jackson Harper <jackson@ximian.com>
25163 * MdiClient.cs: We need to remove the controls from the mdi
25164 collection, when we close the window.
25165 * MdiWindowManager.cs: Special handling of closing mdi windows.
25166 * InternalWindowManager.cs: Make the close method virtual so the
25167 mdi window manager can handle it specially.
25169 2006-05-10 Jordi Mas i Hernandez <jordimash@gmail.com>
25172 - Recalculate grid when the data source has changed
25173 - Matches styles provided by user from all data sources types
25174 * DataGridTableStyle.cs: For columns that provided by the user set the
25175 with the preferred value is there was unassigned.
25176 * CurrencyManager.cs: throw OnItemChanged event
25178 2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
25180 * PictureBox.cs: Don't animate until handle is created. Start animation
25181 when handle is created.
25183 2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
25185 * XplatUIX11.cs, Hwnd.cs: Adopted Mike's patch from #77979 to match
25187 * XEventQueue.cs: We don't need to provide the extra info
25189 2006-05-10 Jackson Harper <jackson@ximian.com>
25191 * MdiClient.cs: If the mdi clients parent form has a background
25192 image set, we draw that background image for the mdi area's
25195 2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
25197 * TextBoxBase.cs: Set IBeam cursor (#78347)
25199 2006-05-10 Mike Kestner <mkestner@novell.com>
25201 * ToolBar.cs: fix some text padding issues with ButtonSize
25202 calculation. Update the default size to match MS documentation.
25203 * ToolBarButton.cs: use ToolBar.ButtonSize for layout of unspecified
25204 button size. Fixes #78296.
25206 2006-05-10 Mike Kestner <mkestner@novell.com>
25208 * ListBox.cs: use is_visible for scrollbar positioning in case the
25209 control isn't on screen yet. Fix off by one with Right vs Width
25210 usage. Update Scrollbars in SetBoundsCore. Fixes #78188 and #78258.
25212 2006-05-10 Jackson Harper <jackson@ximian.com>
25214 * X11Dnd.cs: Drop to a control with another control on top of it.
25215 * ToolBar.cs: Work on a copy of the buttons list, so that it can
25216 be modified in click handlers. TODO: Look for similar problems in
25219 2006-05-09 Jackson Harper <jackson@ximian.com>
25221 * Form.cs: Window managers need the old window state when setting
25223 * InternalWindowManager.cs: Allow the base mdi window manager to
25224 handle more of the MDI only stuff (like maximize buttons).
25225 * MdiWindowManager.cs: Fix some snafus in changing the window
25226 state. Add all the menu functionality, for both popup and
25228 * MdiClient.cs: When a new form is selected the currently
25229 activated form is sent to the back, this matches MS.
25230 - Implement a new method to activate the next mdi child window.
25232 2006-05-08 Peter Dennis Bartok <pbartok@novell.com>
25235 - Added new InternalCapture method to allow controls to prevent
25236 the capture behaviour on the click handlers
25237 - Switched to use InternalCapture
25239 - Using InternalCapture to prevent mouse captures from being released
25240 on mouse button release (Fixes #78100)
25241 * XplatUIX11.cs (DeriveStyles): Now checks caption state and only
25242 returns Form borders if a caption is present. (Fixes #78310)
25244 2006-05-08 Peter Dennis Bartok <pbartok@novell.com>
25246 * TreeNode.cs: Changed serialization .ctor to not require every field
25247 to be present. (#78265)
25248 * OwnerDrawPropertyBag.cs: Added serialization .ctor
25250 2006-05-05 Alexander Olk <alex.olk@googlemail.com>
25252 * MimeIcon.cs: for is faster than foreach for strings.
25254 2006-05-05 Mike Kestner <mkestner@novell.com>
25256 * CheckedListBox.cs: update check handling code to not use selected.
25257 * ListBox.cs: rewrite of mouse selection handling to correspond to MS
25258 behavior for visual feedback, motion response, shift/ctrl handling,
25259 and properly deal with all 4 selection modes. Updates to bounds
25260 handling logic. Add scroll wheel support. [Fixes #77842]
25262 2006-05-05 Peter Dennis Bartok <pbartok@novell.com>
25265 - Moved adding of Implicit controls into .ctor. That way, subsequent
25266 creation of the controls will not cause them to think they are
25267 toplevel windows (fixes #78200 header problem)
25268 - Added 2.0 ShowGroups and UseCompatibleStateImageBehaviour
25269 - Switched visibility setting of header control to use internal field
25270 to avoid triggering handle creation
25271 - Now checking if handle is created before causing a refresh when items
25272 are added (This makes us now match handle creation time with MS)
25273 * Splitter.cs: Removed loading of private splitter cursor, switched to
25274 Cursors version now that that is loading the right ones
25275 * Cursors.cs: Load proper splitter cursors from resources
25276 * Cursor.cs: Added second method of loading resource cursors for the
25277 VS.Net users amongst us
25279 2006-05-05 Mike Kestner <mkestner@novell.com>
25281 * ListView.cs: give header_control a minimum size based on the
25284 2006-05-05 Peter Dennis Bartok <pbartok@novell.com>
25286 * XplatUIX11.cs: WS_EX_TOPMOST requires window to be on top. A dock
25287 window seems to do that with metacity, so set that type. (#78120)
25289 2006-05-05 Mike Kestner <mkestner@novell.com>
25291 * ListViewItem.cs: fix Details mode checkbox layout bug.
25292 * ThemeWin32Classic.cs: draw a ListView column header for unused space
25293 at the end of the header, if it exists. [Fixes for #78200]
25295 2006-05-04 Jackson Harper <jackson@ximian.com>
25297 * MdiClient.cs: Add a helper property to get the container form.
25298 * MdiWindowManager.cs: We have to make sure to use the menu origin
25299 when drawing the icons and buttons, this fixes maximized window
25300 icons/buttons on win32.
25301 * InternalWindowManager.cs: Reset the restore captions when a
25302 window goes from Maximized to Minimized and vice versa. Move the
25303 DrawMaximizedButtons into the MdiWindowManager source, tool
25304 windows can't be maximized. NOTE: This could use a little
25305 refactoring if time ever permits.
25307 2006-05-03 Jonathan Chambers <jonathan.chambers@ansys.com>
25309 * TextBox.cs: Add MWFCategoryAttributes
25310 * TextBoxBase.cs: Add MWFCategoryAttributes
25311 * Form.cs: Add MWFCategoryAttributes
25313 2006-05-03 Jonathan Chambers <jonathan.chambers@ansys.com>
25315 * Control.cs: Add MWFCategoryAttributes
25316 * ScrollableControl.cs: Add MWFCategoryAttributes
25318 2006-05-03 Alexander Olk <alex.olk@googlemail.com>
25320 * ThemeWin32Classic.cs: Draw the ToolBar top border only if
25321 Divider is true. Fix a little glitch in PropertyToolBar
25324 2006-05-02 Peter Dennis Bartok <pbartok@novell.com>
25327 - Dispose: Call base.Dispose, this causes the disposed event
25328 to be fired (and probably other, more important stuff)
25329 - SetVisibleCore: Set is_visible to true after creating the
25330 window so that the window still gets created invisible (if
25331 WM_VISIBLE isn't set). That will cause the ShowWindow afterwards
25332 to generate a WM_ACTIVE message
25333 * Form.cs: Call Dispose when we want to destroy the window, instead of
25334 just destroying the handle (Dispose will do that for us)
25336 - RootWindow also needs a queue, so we can properly process the
25337 property change events from RootWindow (like Activate)
25338 - Generatic synthetic WM_ACTIVE message when the active window is
25341 2006-05-01 Peter Dennis Bartok <pbartok@novell.com>
25343 * LinkLabel.cs: Trigger a recalc of our label dimensions when
25346 2006-05-01 Peter Dennis Bartok <pbartok@novell.com>
25348 * ThemeWin32Classic.cs (ButtonBase_DrawImage): Use the proper image
25349 for determining width and height (image might not be assigned if
25350 we're drawing an imagelist)
25352 2006-05-01 Peter Dennis Bartok <pbartok@novell.com>
25354 * XplatUI.cs, XplatUIDriver.cs: Added MenuHeight property
25355 * XplatUIWin32.cs: Overriding new MenuHeight property, retrieving
25357 * Theme.cs: No longer returns hardcoded menu height, instead calls
25359 * Form.cs (OnLoad): Scaling happens before triggering Load events
25362 2006-05-01 Mike Kestner <mkestner@novell.com>
25364 * MenuItem.cs: fix NRE for text == null. Fixes #78250.
25366 2006-04-30 Peter Dennis Bartok <pbartok@novell.com>
25368 * TextBoxBase.cs: Removed Fixme
25369 * RichTextBox.cs (set_RTF): Invalidate document after update (#78247)
25371 2006-04-30 Peter Dennis Bartok <pbartok@novell.com>
25374 - ScrollWindow: We were passing hwnd.ClientRectangle which returns
25375 the rectangle relative to the parent, considering borders. We
25376 don't really want that.
25377 - ScrollWindow: Fixed warning to be more understandable
25378 * TextBoxBase.cs: Fixed ScrollWindow calculations to consider our
25379 scrollbars and scroll only the visible area
25380 * RichTextBox.cs: Removed debug output
25382 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
25384 * NumericUpDown.cs (Text): Just use base
25385 * UpDownBase.cs: Ensure txtView is created before using it
25387 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
25389 * XplatUIX11.cs (SetWindowTransparency): Casting opacity to int before
25390 casting to IntPtr to avoid 64bit overflow errors
25392 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
25395 - AllowDrop: Don't force handle creation.
25396 - CreateHandle: Added call to tell driver if we're allowed to drop
25398 2006-04-27 Alexander Olk <alex.olk@googlemail.com>
25400 * FileDialog.cs: Remember the last directory not only for the
25401 current instance but also for new FileDialog instances.
25403 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
25405 * XplatUIX11.cs: Forgot to set the queue on the foster parent. That
25406 broke sending async messages
25408 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
25411 - ScrollWindow: Fixed method. We finally generate expose events again
25412 for scrolled areas. This was causing 'garbage' when scrolling
25413 textbox and other controls that used ScrollWindow
25414 - Switched from using the regular queue for paint events to the MS
25415 model of 'generating' paint events when the queue is empty.
25416 We use the new XQueueEvent.Paint subclass to store which windows
25418 - AddExpose now takes the x/y/width/height of the exposed area
25419 and inserts the window into the paint queue if not already there
25420 - InvalidateWholeWindow: Switched to use new AddExpose method
25421 - UpdateMessageQueue: Added which queue to monitor for paint events
25422 - DefWndProc: Added default handler for WM_PAINT and WM_NCPAINT in
25423 the unlikely case nothing above handles it. We reset the expose
25424 pending states to get them off the queue.
25425 - GetMessage: Now pulls a paint event if no other events are in the
25427 - Invalidate: Switched to new AddExpose method
25428 - PeekMessage: Updated to understand pending paint events
25429 - UpdateWindow: Fixed logic bug. We were only updating if the window
25430 didn't need updating. Also switched to sending WM_PAINT directly,
25432 * XEventQueue.cs: Added Paint queue support. Allows enqueue/dequeue
25433 and random access Remove(). The random access is needed to handle
25434 UpdateWindow() where a WM_PAINT is sent directly without accessing
25436 * ScrollBar.cs: Added Update() calls to cause immediate updates to
25437 allow for better feedback when scrolling. Scrollbars are small and
25438 the immediate update should make it 'feel' more responsive without
25439 slowing things down. ScrollBar still needs it's invaliate logic
25440 updated to not always invalidate the whole bar on certain changes.
25442 2006-04-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25445 (BackColor): if the control does not support a transparent background,
25446 return the default backcolor when the parent backcolor is transparent.
25448 2006-04-28 Peter Dennis Bartok <pbartok@novell.com>
25450 * Application.cs: Updated to new StartLoop/GetMessage API
25451 * RichTextBox.cs: Provide some output on RTF parsing errors
25452 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs: Added
25453 new queue_id argument to GetMessage and PeekMessage to allow faster
25454 handling of per-thread queues in drivers.
25455 * Hwnd.cs: Added Queue tracking and property
25456 * MenuAPI.cs: Updated to new StartLoop/GetMessage API
25457 * XEventQueue.cs: Added thread trackingA
25458 * PropertyGridView.cs: Updated to new StartLoop/GetMessage API
25460 - Implemented new per-thread queue
25461 - GetMessage: Fixed return/break behaviour on several cases. We were
25462 returning stale messages in some cases, instead of just processing
25465 2006-04-27 Jonathan Chambers <jonathan.chambers@ansys.com>
25467 * PropertyGrid.cs: Call GetPropertiesSupported on TypeConverter.
25469 2006-04-27 Peter Dennis Bartok <pbartok@novell.com>
25471 * ThemeWin32Classic.cs (DrawToolBar): Refactored, simplified the logic,
25472 fixed off-by-one comparisons between Width/Height and Right/Bottom.
25474 2006-04-27 Jonathan Chambers <jonathan.chambers@ansys.com>
25476 * PropertyGridView.cs: Fix drop down width.
25478 2006-04-27 Alexander Olk <alex.olk@googlemail.com>
25480 * ThemeWin32Classic.cs: Peter thinks that three additional lines are
25481 a mess in DrawToolBar, so I removed one of them.
25483 2006-04-27 Alexander Olk <alex.olk@googlemail.com>
25485 * ThemeWin32Classic.cs: Draw the ToolBar border lines only if
25486 needed (clip). Otherwise we get artifacts.
25488 2006-04-26 Peter Dennis Bartok <pbartok@novell.com>
25490 * FixedSizeTextBox.cs: Added constructor to allow specifying which
25492 * UpDownBase.cs: Set the spinner control to be fixed height vertical,
25493 and switched FixedSizeTextBox to only be fixed vertical (#78116)
25494 * Form.cs: Not applying the 'MS 0.08 fudge factor' for a given dimension
25495 if it matches the scale base font (avoids unneeded scaling)
25497 2006-04-26 Alexander Olk <alex.olk@googlemail.com>
25499 * X11DesktopColors.cs: One gtk_init_check should be enough
25501 2006-04-26 Peter Dennis Bartok <pbartok@novell.com>
25503 * TextBoxBase.cs: Moved Backspace handling into WM_CHAR block to
25506 2006-04-26 Peter Dennis Bartok <pbartok@novell.com>
25509 - Generate OnTextChanged for Backspace even if we're only deleting
25510 the current selection
25511 - When setting the Text property, only select all text if the
25512 control does not have focus when it is being set. Otherwise
25513 just place the cursor at the beginning of the control
25515 2006-04-26 Alexander Olk <alex.olk@googlemail.com>
25517 * ThemeWin32Classic.cs: ToolBars get drawn with two lines at the top.
25518 Added a little helper to draw PropertyGrid ToolBar with a different
25519 border and a different BackColor.
25520 * PropertyGrid.cs: Some background parts didn't get painted with the
25521 correct background color. Added a class that helps us to draw the
25522 correct border for PropertyGridView and a class that helps us to
25523 draw ToolBars with a different backcolor
25524 * PropertyGridView.cs: Draw PlusMinus with the correct colors.
25526 2006-04-25 Jonathan Chambers <jonathan.chambers@ansys.com>
25528 * PropertyGrid.cs: Bug 78196, font size, and splitter location.
25529 * PropertyGridView.cs: Bug 78196, font size, and splitter location.
25531 2006-04-25 Peter Dennis Bartok <pbartok@novell.com>
25533 * XplatUIWin32.cs (DIBtoImage): ORing instead of ANDing the alpha
25534 into the palette entries. Also, since we're working on a copy
25535 we needed to copy the palette back onto the bitmap.
25536 * Cursor.cs: Same fix as XplatUIWin32.cs.
25538 2006-04-25 Peter Dennis Bartok <pbartok@novell.com>
25540 * ImageListStreamer.cs: Need to read the var (or we're off)
25542 2006-04-25 Peter Dennis Bartok <pbartok@novell.com>
25544 * TextControl.cs, ComboBox.cs, CommonDialog.cs, Theme.cs,
25545 XplatUIWin32.cs, RichTextBox.cs, ImageListStreamer.cs,
25546 TextBoxBase.cs: Unused var fixes
25547 * AxHost.cs: Small 2.0 fix
25548 * XplatUIX11.cs: Switched to IntPtr from int for XA_CARDINAL atoms
25549 as it seems that is what at least Metacity expects. This will make
25550 icons show up on 64bit platforms. We still have some 64bit size
25551 issues, though, since the startup app window size still won't match.
25553 2006-04-25 Mike Kestner <mkestner@novell.com>
25555 * *.cs: cleanup newly reported exception var unused warnings.
25557 2006-04-25 Alexander Olk <alex.olk@googlemail.com>
25559 * ThemeWin32Classic.cs: Button image alignment now matches exactly
25562 2006-04-25 Alexander Olk <alex.olk@googlemail.com>
25564 * ThemeWin32Classic.cs: Fixed drawing code for buttons with an
25565 image. The image position is always the same, no matter if the
25566 button is pressed or not.
25568 2006-04-25 Alexander Olk <alex.olk@googlemail.com>
25570 * FileDialog.cs: SaveFileDialog shouldn't rely on a MWFFileView
25571 selection and set the correct filename for SaveFileDialog.
25572 Patch by Emery Conrad.
25574 2006-04-24 Mike Kestner <mkestner@novell.com>
25576 * ListView.cs (LastVisibleIndex): when in List mode of Alignment.Left,
25577 check for item.X outside the ClientRect instead of item.Y. Fixes
25580 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25582 * ImageListStreamer.cs: some images store a wrong grow factor, so don't
25583 trust that value blindly and do some sanity check. Fixes bug #77814.
25585 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25587 * ImageListStreamer.cs: save the mask as a 1bpp image.
25589 2006-04-21 Mike Kestner <mkestner@novell.com>
25591 * CheckedListBox.cs: maintain CheckStatus here. Use DrawItemState to
25592 pass Checked and Indeterminate to the Theme Engine. Improve
25593 encapsulation with ListBox.
25594 * ListBox.cs: Keep a StringFormat instead of calculating it every item
25595 draw. Kill ListBoxItem. Refactor away the ListBoxInfo and ListBoxItem
25596 nested types. Move all CheckState functionality to CheckedListBox.
25597 Make IntegralHeight work like MS. Rewrite of Layout engine. Fix
25598 OwnerDrawVariable layout/rendering. Fix multicolumn rendering. Fix
25599 ScrollAlwaysVisible handling. Refactor "selected" collections to use a
25600 single base list. Fix scrollbar sizing and placement to mirror MS.
25601 * Theme.cs: remove CheckedListBoxCheckRectangle. It wasn't really
25603 * ThemeWin32Classic.cs: implement Indeterminate CheckState rendering
25604 for CheckedListBox by using new DrawItemState info. Center the
25605 checkboxes on the items. Use new StringFormat property.
25607 2006-04-18 Jackson Harper <jackson@ximian.com>
25609 * Form.cs: MdiChildren don't do default locations the same way as
25610 regular forms. This prevents a crash when trying to position the
25613 2006-04-17 Jonathan Chambers <jonathan.chambers@ansys.com>
25615 * PropertyGridTextBox.cs: Formatting, copyright
25616 * PropertiesTab.cs: Formatting
25617 * PropertyGrid.cs: Formatting
25618 * PropertyGridView.cs: Formatting, fix drop down, enabled double
25619 click toggling of values
25621 2006-04-17 Peter Dennis Bartok <pbartok@novell.com>
25623 * KeyPressEventArgs: Added 2.0 only setter for KeyChar
25624 * Control.cs (.ctor): verify_thread_handle is static, don't reset
25625 every time a control is created
25626 * Application.cs: Removed obsolete EnableRTLMirroring method
25628 2006-04-18 Gert Driesen <drieseng@users.sourceforge.net>
25630 * TabControl.cs: Avoid ArgumentOutOfRangeException when setting
25631 SelectedIndex to -1. Fixes bug #78121.
25633 2006-04-17 Jackson Harper <jackson@ximian.com>
25635 * Binding.cs: Handle null values for Current and BindingContext.
25636 This occurs when binding is a little delayed.
25637 * CurrencyManager.cs: return null for Current when there are no
25639 - Hookup to the listchanged event on the DataView and update
25640 bindings when the list is changed. This fixes late binding of
25643 2006-04-17 Jackson Harper <jackson@ximian.com>
25646 * XplatUIX11.cs: Drops should not create a mousedown. Patch by Tim
25649 2006-04-15 Alexander Olk <alex.olk@googlemail.com>
25651 * ThemeWin32Classic.cs: Draw disabled combo button in the correct
25653 * ComboBox.cs: If the combobox is disabled call CPDrawComboButton
25654 with the correct ButtonState
25656 2006-04-14 Peter Dennis Bartok <pbartok@novell.com>
25658 * XplatUIX11.cs: Improved distinguishing between window types to
25659 tell the WM a type closer to what the app wants (Fixes #78107)
25661 2006-04-14 Alexander Olk <alex.olk@googlemail.com>
25663 * ThemeWin32Classic.cs: Fixed drawing of ContainerGrabHandle and
25666 2006-04-14 Alexander Olk <alex.olk@googlemail.com>
25668 * ThemeWin32Classic.cs: Fixed size grip drawing and updated StatusBar
25669 drawing code to reflect the size grip changes
25671 2006-04-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25673 * ImageListStreamer.cs: fix handling of the mask that follows the main
25674 bitmap when deserializing and serialize it properly. The generated mask
25675 should better be a 1bpp image, but I'll do that later.
25677 2006-04-13 Alexander Olk <alex.olk@googlemail.com>
25679 * FileDialog.cs: Show something in the DirComboBox on *nix if the
25680 path doesn't fit into some of our Current.Places
25682 2006-04-13 Jackson Harper <jackson@ximian.com>
25684 * ComboBox.cs: Use borders instead of drawing our own decorations,
25685 try to obey correct rules for heights.
25688 * ThemeClearLooks.cs:
25689 * ThemeWin32Classic.cs: Remove combobox decoration drawing code,
25690 this is now handled by borders.
25691 - Remove unused DrawListBoxDecorationSize method.
25693 2006-04-13 Mike Kestner <mkestner@novell.com>
25695 * MenuAPI.cs: null guarding for the disbled click check fixes crash
25698 2006-04-13 Alexander Olk <alex.olk@googlemail.com>
25700 * ThemeWin32Classic.cs:
25701 - Fixed CPDrawStringDisabled
25702 - Corrected drawing of disabled menu items
25703 - Fixed drawing of disabled radio buttons (bug #78095)
25704 - Draw check in a disabled CheckBox with color ControlDark
25706 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
25708 * Form.cs: Use the provided width when calculating the menu size;
25709 when being maximized we get WM_NCCALCSIZE before WM_WINDOWPOSCHANGED
25710 and ClientSize.Width won't be updated yet
25711 * Application.cs: Use Visible instead of Show() to make form visible,
25712 this way we create the handle later and menusize is considered
25714 2006-04-12 Mike Kestner <mkestner@novell.com>
25716 * MenuAPI.cs: ignore clicks on disabled menu items. Thanks to Alex for
25719 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
25721 * TextBox.cs: Implemented context menu
25723 2006-04-12 Mike Kestner <mkestner@novell.com>
25725 * ListView.cs: implement box selection. fixes #77838.
25726 * ThemeWin32Classic.cs: draw box select rect, remove a ResetClip.
25728 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
25730 * XplatUIX11.cs: Added setting of window type when transient window
25731 is created (metacity would move it otherwise)
25732 * X11Structs.cs: Added WINDOW_TYPE atoms
25733 * LinkLabel.cs: Override OnPaintBackgroundInternal and draw the
25734 background (the control is Opaque but still wants transparent
25737 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
25739 * Control.cs: Added OnPaintBackgroundInternal to allow controls
25740 that set Opaque but don't mean it (like all ButtonBase-derived
25741 controls) to still draw their background
25742 * ButtonBase.cs: Override OnPaintBackgroundInternal and draw
25745 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
25747 * Control.cs (PaintControlBackground): Set the graphics object
25748 on our PaintEvent to null to prevent it from being disposed
25749 when the PaintEvent gets disposed
25751 2006-04-12 Alexander Olk <alex.olk@googlemail.com>
25753 * ThemeWin32Classic.cs: Use even more SystemBrushes and SystemPens
25754 * ThemeNice.cs, ThemeClearlooks.cs: fix typo
25756 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
25759 - Added transparency check to BackColor property. Transparent
25760 backgrounds are only allowed if the control styles permit it
25761 - Added recursive painting of parent control background and
25762 foreground if a control with a transparent backcolor is drawn
25763 (Thanks to Tim Ringenback for providing his 'hack' as a base
25764 for this patch) Fixes #77985 and #78026.
25765 - Added Opaque style check before calling OnPaintBackground, no
25766 need to draw the background if the control is opaque
25767 - Removed ControlAccessibleObject owner variable (inherited from
25768 base, no need to define again)
25769 - Added some documentation links explaining the drawing events
25772 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
25774 * Splitter.cs (CalculateSplitPosition): Corrected the bad assumption
25775 that the affected control is the located at the left border of our
25776 parent (Fixes #77936)
25778 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
25780 * TextBoxBase.cs: When rendering disabled or readonly controls,
25781 draw the background with 'Control' instead of 'Window' color as
25782 long as the user hasn't specifically set a color
25784 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
25786 * TextBoxBase.cs: Don't try to shortcut by checking against base.Text
25787 since that won't be updated if the user types text (only if it's
25788 programatically set)
25790 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
25792 * ScrollableControl.cs: Calculate DisplayRect dynamically, so that
25793 layout changes do to app-triggered resizes will have the proper
25794 display rectangle for layout
25796 2006-04-11 Alexander Olk <alex.olk@googlemail.com>
25798 * ThemeWin32Classic.cs:
25799 - Make use of the SystemBrushes and SystemPens wherever possible
25800 - Corrected some highlight colors
25801 - Corrected RadioButton and CheckBox FlatStyle.Flat and Popup
25803 * Theme.cs: Added Empty field to CPColor struct
25805 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
25807 * ScrollabeControl.cs: We need to consider whether or not a scrollbar
25808 is displayed when calculating the display rectangle. Thanks to Mike
25809 for teaching me the err of my ways.
25811 2006-04-10 Peter Dennis Bartok <pbartok@novell.com>
25813 * ScrollableControl.cs:
25814 - Rewrote DisplayRectangle code, now returning the proper x/y coords
25815 (instead of 0,0) and we now return the real width/height instead of
25816 just the clientrectangle, adjusted for padding. The rectangle is
25817 now cached and created by the new CalculateDisplayRectangle method.
25818 - Created new CalculateDisplayRectange method, which basically does
25819 what get_DisplayRectangle() did originally, but now using the
25820 right edge instead of DisplayRectangle to determine the size of
25822 - get_Canvas(): Fixed it to properly calculate canvas for
25823 right/bottom controls which seem to be placed to the right/bottom
25824 of any controls that have a fixed location
25825 - Removed TODO that's taken care of
25826 - Removed NotImplementeds and attempted to implement AdjustFormScrollBars
25827 and SetDisplayRectLocation according to new MSDN2 docs
25828 - Added call to PerformLayout in OnVisibleChanged, MS causes a layout
25829 event when that is called, this is added for compatibility
25830 - ScrollControlIntoView(): Implemented.
25831 - Switched scrollbars to be implicit, they shouldn't be selectable
25832 * ContainerControl: Now that ScrollControlIntoView is implemented, we
25833 call it when the active control is set/changed
25834 * ScrollBar.cs: Added support for generating Win32 scrollbar messages
25835 * ImplicitHScrollBar.cs, ImplicitVScrollBar.cs: Now setting new base
25836 implicit_control variable (used for native Win32 message generation)
25837 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added new
25838 HorizontalScrollBarHeight and VerticalScrollBarWidth properties
25839 * ThemeWin32Classic.cs: Now calling the driver for the scrollbar sizes
25840 * XplatUIStructs.cs: Added ScrollBarCommands enum
25842 2006-04-10 Jackson Harper <jackson@ximian.com>
25845 * CheckedListBox.cs:
25852 * PrintPreviewControl.cs:
25858 * UpDownBase.cs: Fixup base event overrides.
25860 2006-04-06 Mike Kestner <mkestner@novell.com>
25862 * ScrollBar.cs: fix "new event" declarations (#76509) and bounds check
25863 all user-initiated value changes to min <= value <= max-thumbsz+1.
25864 (set_Value): check for vert/horiz when calculating new thumb position.
25865 (LargeIncrement): bounds check to stop pos at max - thumb_size + 1
25867 (OnMouseMoveSB): refactor the thumb dragging code and refine
25868 invalidation logic to reduce flicker.
25869 (SetEndPosition): bounds check to stop pos at max - thumb_size + 1
25870 (SmallIncrement): bounds check to stop pos at max - thumb_size + 1
25871 (UpdateThumbPosition): small code readability cleanup
25873 2006-04-10 Alexander Olk <alex.olk@googlemail.com>
25875 * ThemeNice.cs: Small UI polishing. Draw borders a little bit
25878 2006-04-08 Alexander Olk <alex.olk@googlemail.com>
25880 * ThemeNice.cs: Use a better graphics effect when a button is pressed
25882 2006-04-08 Alexander Olk <alex.olk@googlemail.com>
25884 * Theme.cs: Added GetDashPen and GetSizedPen to SystemResPool
25885 * ThemeWin32Classic.cs: Make use of the new SystemResPool methods.
25886 This dramatically reduces the number of Pen.Dispose calls.
25887 Where possible call ResPool methods only once instead of calling it
25888 over and over again (for example for the same color).
25890 2006-04-06 Mike Kestner <mkestner@novell.com>
25892 * TabControl.cs: fix for SelectedIndex updating on TabPage removals.
25893 Also remove an unused private field on the collection. Fixes #77972.
25895 2006-04-06 Alexander Olk <alex.olk@googlemail.com>
25897 * ThemeNice.cs: Added ToolBar drawing code
25899 2006-04-06 Mike Kestner <mkestner@novell.com>
25901 * Form.cs (ShowDialog): MS allows IWin32Window param to be a non-form.
25902 I'm assuming that means we need to look up the toplevel for the
25903 provided control. Fixes the crash trace in #77911 but exposes another
25904 crash in some strange reflection usage in NDocGui.
25906 2006-04-06 Alexander Olk <alex.olk@googlemail.com>
25908 * ThemeNice.cs: Gave it a little silver touch and added Images
25910 * FontDialog.cs: FontDialog is not resizable
25911 * FileDialg.cs: Added SizeGripStyle.Show
25913 2006-04-05 Jackson Harper <jackson@ximian.com>
25915 * KeyboardLayouts.cs: Remove warning.
25917 2006-04-05 Jackson Harper <jackson@ximian.com>
25919 * Control.cs: Enable OnPaintInternal so we can use it for drawing
25920 all of our controls instead of Paint +=.
25935 * ComboBox.cs: Remove handling of WM_PAINT and WM_ERASEBKGND and
25936 use OnPaintInternal. Remove Width/Height and Visible checks in
25937 paint handler, this is done at a higher level now.
25938 * GroupBox.cs: Don't need to handle WM_ERASEBKGND anymore.
25939 * PaintEventArgs.cs: Add a handled flag so controls that don't
25940 want anymore painting after OnPaintInternal can make sure OnPaint
25943 2006-04-05 Mike Kestner <mkestner@novell.com>
25945 * Form.cs: fix the menu WndProc hacks to respect the native enabled
25946 state of the form, so that we don't process events when Modal dialogs
25947 are up. Fixes #77922.
25949 2006-04-05 Alexander Olk <alex.olk@googlemail.com>
25951 * Mime.cs: Default for range length is 1 not 0. If set to 0 no match
25954 2006-04-05 Mike Kestner <mkestner@novell.com>
25956 * XplatUIX11.cs: fix typo in the EX_APPWINDOW transient patch.
25958 2006-04-05 Mike Kestner <mkestner@novell.com>
25960 * ListView.cs (HeaderMouseMove): null guarding for the over column
25961 when setting up the drag_to_index. Fixes #78015.
25963 2006-04-04 Peter Dennis Bartok <pbartok@novell.com>
25965 * XplatUIX11.cs: If WS_EX_APPWINDOW isn't set we don't want to show up
25966 in the taskbar. Transient windows seem to accomplish that.
25968 2006-04-04 Peter Dennis Bartok <pbartok@novell.com>
25971 - Re-enabled CreateParams.X/Y code for FormStartPosition
25972 - Added code for manual placement when creating the Control
25973 - Incomplete patch to treat MDI forms differently when
25974 setting the ClientSizeCore. (Still need to figure out handling
25977 - When we're explicitly setting the X/Y position of a non-Child
25978 window, let the WM know. Metacity really wants this.
25980 2006-04-04 Alexander Olk <alex.olk@googlemail.com>
25982 * ThemeNice.cs: Added CPDrawButton
25984 2006-04-04 Alexander Olk <alex.olk@googlemail.com>
25986 * ThemeNice.cs: Changed the color for focused buttons and activated
25987 the arrows for small scroll buttons.
25989 2006-04-04 Alexander Olk <alex.olk@googlemail.com>
25991 * ThemeWin32Classic.cs: Removed DrawFlatStyleButton, not needed
25992 anymore. Changed some method modifiers to protected (virtual)
25993 * ThemeClearlooks.cs: Updated to reflect the ThemeWin32Classic
25995 * ThemeNice.cs: Updated to reflect the ThemeWin32Classic changes.
25996 Updated drawing of menus, buttons and progressbars; added
25999 2006-04-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
26001 * ImageListStreamer.cs: implemented serialization/deserialization
26004 2006-04-03 Alexander Olk <alex.olk@googlemail.com>
26006 * ThemeWin32Classic.cs:
26007 - Removed all the DrawFrameControl stuff; CPDrawButton,
26008 CPDrawCheckBox and CPDrawRadioButton are now handled directly
26010 - Updated and corrected the drawing code of CPDrawButton,
26011 CPDrawCheckBox and CPDrawRadioButton to better match ms
26012 - Updated theme checkbox and radiobutton code to use the CP*
26015 2006-03-31 Peter Dennis Bartok <pbartok@novell.com>
26017 * XplatUIX11.cs: Enable clipping again now that the libgdiplus
26020 2006-03-31 Jackson Harper <jackson@ximian.com>
26022 * XplatUIX11.cs: Somehow we get SETCURSORS for bad windows
26024 * UpDownBase.cs: Don't CreateGraphics manually, use a
26025 Refresh. Ideally we would invalidate the correct areas here.
26027 2006-03-31 Peter Dennis Bartok <pbartok@novell.com>
26030 - We now track the mapping state of windows. If a window (or
26031 one of it's parents) is not mapped we no longer permit
26032 WM_PAINT messages to be generated since we'd otherwise get
26033 lots of BadMatch X errors. Jackson did all the work figuring
26035 - Destroying the caret if the window it's contained in is
26036 destroyed. Can't use regular DestroyCaret method since it
26037 might fall into a drawing function (trying to remove the
26038 caret) and with that generate new BadMatch errors. Again,
26039 Jackson tracked this down.
26040 - Changed DestroyChildWindows to SendWMDestroyMessages, we now
26041 make sure we send the messages to all windows. (The old code
26042 would send the WM_DESTROY to the window, and then all child
26043 windows would be 'gone' because the WM_DESTROY handle lookup
26044 would no longer find the destroyed window)
26045 * Hwnd.cs: Added Mapping property to track mapping state of hwnd
26046 * X11Structs.cs: Added WindowType enum for MapWindow/UnmapWindow
26048 2006-03-31 Jackson Harper <jackson@ximian.com>
26050 * ScrollableControl.cs: Dont recalc if we are not visible.
26052 2006-03-31 Mike Kestner <mkestner@novell.com>
26054 * Control.cs (SetVisibleCore): move the CreateControl call up ahead of
26055 the visibility branch.
26057 2006-03-31 Jackson Harper <jackson@ximian.com>
26059 * ScrollBar.cs: Cap values when incrementing/decrementing.
26061 2006-03-31 Mike Kestner <mkestner@novell.com>
26063 * MenuAPI.cs: setup menu.tracker for popup/context menus.
26064 * ToolTip.cs: guard against timer expirations with no active control.
26065 Not sure why it happened.
26067 2006-03-31 Mike Kestner <mkestner@novell.com>
26069 * ThemeWin32Classic.cs: add some horizontal padding space for the tip
26071 * ToolTip.cs: Position the tooltip based on where the cursor is at
26072 popup time, not at MouseEnter time. Add a Down state so that we don't
26073 redisplay tips without a Leave. Use faked XplatUI.GetCursorInfo for
26074 positioning offset. Lookup DisplaySize at positioning time, since it
26075 can theoretically change during invocation.
26076 * XplatUIWin32.cs: fake GetCursorInfo until pdb can do it properly.
26077 * XplatUIX11.cs: fake GetCursorInfo until pdb can do it properly.
26079 2006-03-31 Alexander Olk <alex.olk@googlemail.com>
26081 * ThemeWin32Classic.cs: Use CPDrawBorder3D to draw a GroupBox.
26082 Fixes behaviour when the Text property of the box is String.Empty
26084 2006-03-31 Peter Dennis Bartok <pbartok@novell.com>
26086 * XplatUIX11.cs: Only send mouseleave for our client windows, not
26087 for the whole window (otherwise we get WM_MOUSE_LEAVE twice for
26090 2006-03-31 Alexander Olk <alex.olk@googlemail.com>
26092 * FileDialog.cs: Visual enhancement for the popup buttons in
26095 2006-03-31 Alexander Olk <alex.olk@googlemail.com>
26097 * ColorDialog.cs, FontDialog.cs: Make use of the updated 3D border
26100 2006-03-30 Alexander Olk <alex.olk@googlemail.com>
26102 * ThemeWin32Classic.cs: Updated MainMenu drawing of selected and
26103 highlighted menu items to match ms
26105 2006-03-30 Peter Dennis Bartok <pbartok@novell.com>
26107 * XplatUIX11.cs: Don't set a clip rectangle unless it's not empty
26109 2006-03-30 Mike Kestner <mkestner@novell.com>
26111 * Menu.cs (SelectedItem): use new MenuItem.Selected prop.
26112 * MenuAPI.cs: use new MenuItem.Selected prop. redraw MainMenu when we
26113 go active to account for HotLight to Selected transition.
26114 * MenuItem.cs: add internal Selected prop. Fill out the Status
26115 property by calculating it from item info. Add HotLight,
26116 NoAccelerator, Checked, Grayed, and Disabled flags where appropriate.
26118 2006-03-30 Mike Kestner <mkestner@novell.com>
26120 * MenuItem.cs: only emit DrawItem and MeasureItem for OwnerDraw.
26122 2006-03-29 Jackson Harper <jackson@ximian.com>
26124 * Form.cs: Implement TODO.
26126 2006-03-29 Peter Dennis Bartok <pbartok@novell.com>
26128 * PrintPreviewDialog.cs: Implemented missing methods and events; still
26129 missing proper dialog setup in the constructor
26131 2006-03-29 Peter Dennis Bartok <pbartok@novell.com>
26133 * ProgressBar.cs: Added 2.0 Style property that apps seem to use
26135 - Implemented CheckForIllegalCrossThreadCalls, removed TODO
26136 - Fixed ResetBindings and removed TODO
26137 - Added check for cross-thread calls to get_Handle()
26138 - Added Marshaller attribute for set_Font to satisfy class status
26139 * FontDialog.cs: Removed TODOs that seemed implemented
26140 * UpDownBase.cs: Removed unneeded TODO and Fixme
26141 * MessageBox.cs: Implemented support for Default button and removed TODO
26142 * FileDialog.cs: Removed obsolete TODO
26143 * DomainUpDown.cs: Removed obsolete TODO
26144 * ButtonBase.cs: Removed obsolete TODO
26145 * XplatUIWin32.cs: Removed obsolete TODO
26147 - Removed obsolete TODO
26148 - Calling CheckAcceptButton when the acceptbutton is changed to allow
26149 internal status updates
26150 - Making sure the active control is selected when the control is created
26151 * CurrencyManager.cs: Removed obsolete TODO
26153 2006-03-29 Mike Kestner <mkestner@novell.com>
26155 * *.cs: fix remaining corcompare issues for 1.1 API with the exception
26156 of PrintPreviewDialog and RichTextBox.
26158 2006-03-29 Alexander Olk <alex.olk@googlemail.com>
26160 * Theme.cs: Added a little helper to SystemResPool to get the Dark,
26161 DarkDark, Light and LightLight colors for a specific color
26162 * ThemeWin32Classic.cs:
26163 - Use Button drawing code to draw RadioButtons and CheckBoxes with
26164 Appearance = Button
26165 - Make use of the new ResPool helper CPColor
26166 - Draw ProgressBar and StatusBar with correct 3D borders
26168 2006-03-29 Alexander Olk <alex.olk@googlemail.com>
26170 * ColorDialog.cs: Return selected color. Fixes bug #77940.
26172 2006-03-28 Mike Kestner <mkestner@novell.com>
26174 * ListView.cs: fix Icon layout to plan for scrollbar widths when
26175 calculating col/row counts.
26177 2006-03-28 Mike Kestner <mkestner@novell.com>
26183 switch to explicit interface method implementation for some methods
26184 corcompare identifies as inconsistent with MS.
26186 2006-03-28 Mike Kestner <mkestner@novell.com>
26190 add a few missing methods from the class status output.
26192 2006-03-28 Alexander Olk <alex.olk@googlemail.com>
26194 * ControlPaint.cs: Fixed ControlPaint.Light method. Results are now
26197 2006-03-28 Mike Kestner <mkestner@novell.com>
26199 * MenuAPI.cs: Deactivate on MainMenu item click. Fixes #77917.
26201 2006-03-27 Mike Kestner <mkestner@novell.com>
26203 * ThemeWin32Classic.cs: Switch flat toolbars to use RaisedInner for
26204 the Hilight state to adapt to Alex's CPDrawBorder3D changes.
26206 2006-03-27 Alexander Olk <alex.olk@googlemail.com>
26208 * ThemeWin32Classic.cs: Rewrote Button drawing code to match ms.
26210 2006-03-25 Alexander Olk <alex.olk@googlemail.com>
26212 * ThemeWin32Classic.cs:
26213 - GroupBox: Inserted a little gap between the text and the lines
26215 - Made the code in CPDrawBorder3D more readable
26216 - Corrected the drawing location of the up and down arrows in
26219 2006-03-25 Alexander Olk <alex.olk@googlemail.com>
26221 * ControlPaint.cs: Corrected line widths in DrawBorder for
26222 ButtonBorderStyle Inset and Outset
26224 2006-03-25 Alexander Olk <alex.olk@googlemail.com>
26226 * ThemeWin32Classic.cs:
26227 - Rewrote the totally broken CPDrawBorder3D method. That was
26228 one of the main problems for the terrific ThemeWin32Classic
26230 - Updated and corrected Button drawing
26231 - Correct the dimensions of the SizeGrip to match ms ones
26232 - Removed a small drawing glitch in DrawComboBoxEditDecorations
26233 * XplatUIX11.cs: Draw borders with BorderStyle = Fixed3D with
26234 Border3DStyle.Sunken to match ms.
26236 2006-03-25 Alexander Olk <alex.olk@googlemail.com>
26238 * ThemeWin32Classic.cs: First small part of the "de-uglify
26239 ThemeWin32Classic" effort, SizeGrip
26241 2006-03-24 Jackson Harper <jackson@ximian.com>
26243 * XplatUIX11.cs: Give a max idle time of one second, this matches
26244 MS and forces an Idle event every second when there are no other
26245 events in the queue.
26247 2006-03-24 Mike Kestner <mkestner@novell.com>
26249 * ListView.cs: Handle (Large|Small)ImageList == null more robustly.
26250 * ListView.Item.cs: fix layout issues with null image lists and images
26251 smaller than checkbox size.
26252 * ThemeWin32Classic.cs: Draw a 12 pixel line in ListView LargeIcon
26253 mode like MS does. It's weird, but consistent. ;-)
26256 2006-03-24 Mike Kestner <mkestner@novell.com>
26258 * ListView.cs: Scroll wheel support for the item control. Fixes
26261 2006-03-23 Jackson Harper <jackson@ximian.com>
26263 * ScrollableControl.cs: Special case negative sized areas, not
26265 * MonthCalendar.cs: Save the rect of the clicked date so we can
26266 use it for invalidation.
26267 - Try to cut down on the number of invalidates
26268 - Invalidate the rect the mouse is over and was over when moving
26269 the mouse, so we get the focus box following the cursor.
26271 2006-03-23 Mike Kestner <mkestner@novell.com>
26273 * ThemeWin32Classic.cs: fix FullRowSelect selection background and
26274 focus rectangle drawing. Fixes #77835.
26276 2006-03-23 Mike Kestner <mkestner@novell.com>
26278 * XplatUIX11.cs: rework the fix for #77828 by changing the order of
26279 the if and else if and reverting back to the original == check on the
26282 2006-03-23 Alexander Olk <alex.olk@googlemail.com>
26284 * FontDialog.cs: Update the example panel if the selected index of
26285 the fontListBox changes.
26287 2006-03-23 Alexander Olk <alex.olk@googlemail.com>
26289 * FileDialog.cs: Make FileDialog remember which directory it was in
26290 last in the same execution.
26292 2006-03-22 Mike Kestner <mkestner@novell.com>
26294 * FileDialog.cs: make the DropDownMenu on the toolbar display
26295 RadioChecks since they are mutually exclusive and that's what MS does.
26297 2006-03-22 Mike Kestner <mkestner@novell.com>
26299 * Theme.cs: add Color param to CPDrawMenuGlyph.
26300 * ThemeWin32Classic.cs: do color specific menu glyph rendering so that
26301 checks and radio marks and arrows are visible on highlighted items.
26302 * ControlPaint.cs: update to use new Theme signature.
26304 2006-03-22 Mike Kestner <mkestner@novell.com>
26306 * MenuAPI.cs: only process Enter and arrow keypresses if the tracker
26307 is active. Fixes #77870.
26309 2006-03-22 Alexander Olk <alex.olk@googlemail.com>
26311 * FileDialog.cs: Corrected TabIndex order and set fileNameComboBox
26312 to be focused/selected after startup
26314 2006-03-22 Alexander Olk <alex.olk@googlemail.com>
26317 - Corrected behaviour of Color, AllowFullOpen, FullOpen,
26318 CustomColors and ShowHelp properties
26319 - Some internal rewrites to get better results when using the
26322 2006-03-22 Mike Kestner <mkestner@novell.com>
26324 * ListView.cs: hook into Peter's new ResetMouseHover capability to fix
26325 HoverSelection. Fixes #77836.
26327 2006-03-22 Mike Kestner <mkestner@novell.com>
26329 * FileDialog.cs: bugfixes for the toolbar. Use PushButtons instead of
26330 ToggleButtons. (De)Sensitize the Back button around a stack count of
26331 1, not 0. Update ButtonSize based on a pixel count of the win32
26332 control. Adjust the toolbar size/location for new button size.
26334 2006-03-22 Jackson Harper <jackson@ximian.com>
26336 * XplatUIX11.cs: Don't handle configurenotifys if PostQuitState is
26338 * ScrollBar.cs: When doing increments and decrements we need to
26339 set the Value property so that ValueChanged gets raised. A
26340 possible optimization here would be to make an internal SetValue
26341 that doesn't invalidate immediately.
26342 * ToolTip.cs: Tooltips get added to their container (when
26343 supplied) so they get disposed when the container is disposed.
26344 - Don't create tooltips for String.Empty. This prevents all these
26345 little 2-3 pixel windows from showing up when running nunit-gui
26346 and driving me mad.
26347 * Form.cs: Don't set topmost when setting the owner if the handles
26348 haven't been created yet. The topmost set will happen when the
26349 handles are created.
26351 2006-03-22 Peter Dennis Bartok <pbartok@novell.com>
26354 - DeriveWindowStyles: Fixed typo in borderstyle generation (#77828)
26355 - SetVisible: Sending WINDOWPOSCHANGED for all controls when made
26356 visible (to allow them to recalculate their sizes)
26358 2006-03-21 Mike Kestner <mkestner@novell.com>
26360 * ThemeWin32Classic.cs: major refactoring of the ToolBar rendering
26361 methods. Removed a ton of redundant code. Still not really happy with
26362 the border rendering, but I think that's mainly because of the
26363 ControlDarkDark being black instead of a dark grey. Depending on how
26364 close we want to be, we might want to revisit those color choices.
26365 Among the new features added during the refactor were DropDownArrow
26366 pressed rendering, Disabled image rendering. Proper flat appearance
26367 boundary rendering. Removed the Divider and Wrapping dividers since I
26368 can't figure out any combination of themes and conditions to make the
26369 MS control draw a horizontal line on a toolbar despite what the
26370 Divider property docs indicate.
26371 * ToolBar.cs: rewrite the layout engine. Fixes numerous flicker
26372 conditions and incorrect layout. Updated to coding standard.
26373 * ToolBarButton.cs: refactored layout and positioning code from
26374 ToolBar to here. Invalidate wherever possible instead of forcing
26375 redraws of the whole toolbar.
26376 (Known remaining issues: explicit ButtonSize smaller than provided
26379 2006-03-21 Mike Kestner <mkestner@novell.com>
26381 * ContextMenu.cs (Show): use the position parameter instead of just
26382 showing at the MousePosition.
26384 2006-03-21 Jackson Harper <jackson@ximian.com>
26386 * TabControl.cs: Remove the call to ProcessKeyEventArgs and let
26387 control handle this.
26388 * TreeNodeCollection.cs: If we are clearing the root node we need
26389 to reset top_node so calcs can still happen.
26390 * ThemeWin32Classic.cs: This is a Flags so we need to check
26393 2006-03-21 Jackson Harper <jackson@ximian.com>
26395 * DataGrid.cs: Create columns when the binding context has been
26397 * X11Structs.cs: Keysyms are uints.
26398 - Add size to fix build.
26400 2006-03-21 Peter Dennis Bartok <pbartok@novell.com>
26402 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
26404 - Added ResetMouseHover method to allow controls to retrigger
26405 hovering if they need it more than once
26406 - Implemented MouseHoverTime and MouseHoverSize properties
26407 * Timer.cs: Start() must reset the interval
26408 * SystemInformation.cs: Added 2.0 MouseHoverTime and MouseHoverSize
26411 2006-03-21 Jackson Harper <jackson@ximian.com>
26413 * X11Keyboard.cs: improved layout detection. Move the nonchar
26414 tables into this file.
26415 * KeyboardLayouts.cs: Move the tables into resource files.
26417 2006-03-21 Mike Kestner <mkestner@novell.com>
26419 * ListView.cs: use OnItemActivated to raise events. Fixes #77834.
26421 2006-03-21 Alexander Olk <alex.olk@googlemail.com>
26423 * Mime.cs: Various speed optimizations. Looking up mime types
26424 is now 2 times faster than before
26426 2006-03-17 Peter Dennis Bartok <pbartok@novell.com>
26428 * CreateParams.cs: Added internal menu field
26430 - Switched call order for UpdateBounds; now we always call
26431 the one that also takes ClientSize, and we're calculating the
26432 client size via driver method in the others. The previous
26433 method of tracking client size by difference wasn't working
26434 for forms where even the starting client size wouldn't match
26435 the overall form size (due to borders) (Part of fix for #77729)
26436 - CreateParams(): Do not use parent.Handle unless the handle is
26437 already created. Causes havoc with Nexxia and throws off our
26438 creation of controls
26440 - Created new PerformNCCalc method to trigger WM_NCCALCSIZE message
26441 - Switched handling of ConfigureNotify over to new PerformNCCalc
26442 method (consolidates code)
26443 - Changed RequestNCRecalc to use new PerformNCCalc method
26444 - Added calls to RequestNCRecalc when menus and borders are changed
26445 to allow app to set NC size. (Part of fix for #77729) This matches
26446 when MS send a WM_NCRECALC on Win32 windows.
26447 - Now sending WM_WINDOWPOSCHANGED when toplevel for is made visible
26448 (Part of fix for #77729). This matches what MS does, they also
26449 send that message when the form is made visible.
26450 - XException.GetMessage: Improved usability of X errors by including
26451 a translation of the window into Hwnd and Control class
26452 - Improved debug info for window creation, reparenting and destruction
26453 - Created helper method WindowIsMapped() [Currently not used]
26454 * XplatUIWin32.cs: Added ToString() debug helper to RECT structure
26456 - CreateParams: Now setting our menu on the new internal menu field
26457 - SetClientSizeCore: Now passing cp.menu instead of ActiveMenu to
26458 avoid calculating the same property twice
26460 - Improved usability of ToString() for debugging purposes
26461 - GetWindowRectangle(): Now uses proper CalcMenuBarSize method to
26462 determine the height of the menu, instead of just the font. This
26463 required to also create a graphics context and to keep a bmp
26464 around (for performance reasons)
26466 2006-03-17 Peter Dennis Bartok <pbartok@novell.com>
26468 * MenuAPI.cs: Added OnMouseUp method
26470 - Now remembering the requested client size, avoids size errors
26471 - WndProc: Now handling WM_xBUTTONUP and passing it to MenuTracker
26472 instead of base if the menu is active. This is required due to
26473 control now capturing and releasing on down/up and it would
26474 prematurely release our menu capture
26476 2006-03-17 Jackson Harper <jackson@ximian.com>
26478 * KeyboardLayouts.cs: Add the czech layouts.
26480 2006-03-16 Jackson Harper <jackson@ximian.com>
26482 * Control.cs: Use the viewport space when sizing not the controls
26483 client size, so things like ScrollableControl that effect the
26484 viewport size (when scrollbars are added) are computed correctly.
26485 * BindingContext.cs: Cleanup to use the DataSourceEntrys instead
26487 - Handle creating BindingManagers for null data sources.
26488 * DataGrid.cs: Bind the cached_currencymgr_events to the real data
26489 source, otherwise when rows are added they are added to the 'fake'
26490 datasource and we will crash when trying to set the position in
26492 - Use Implicit scrollbars on the datagrid so they arent
26495 2006-03-16 Jackson Harper <jackson@ximian.com>
26498 * InternalWindowManager.cs:
26499 * MdiWindowManager.cs:
26500 * X11Keyboard.cs: I really want Mike to love me again (fix
26501 compiler warnings).
26503 2006-03-16 Peter Dennis Bartok <pbartok@novell.com>
26506 - OnMouseDown: Switch to editing mode when clicking on the cell
26507 even if we're clicking on the cell that's currently
26509 - ProcessGridKey: Left/Right now wrap like MS.Net does
26510 - ProcessGridKey: Tab now knows to add a new row when tab is
26511 pressed in the cell of the last column of the
26513 - ProcessGridKey: Enter now adds another row if pressed in the last
26514 row and selectes the new row, same column cell
26515 - ProcessGridKey: Home/End navigate columns, not rows, like
26516 originally implemented
26517 - Broke ProcessKeyPreview code out into an extra Internal method
26518 so it can be called from the edit code
26519 * DataGridTextBox.cs (ProcessKeyMessage):
26520 - Switched to accept Tab keypresses
26521 - Added F2 handling to allow jumping to the end of the edited cell
26522 - Added logic to allow moving caret left/right inside edited cell
26523 and making the edited cell jump when the caret hits cell borders
26524 - Tab and Enter are now passed to the datagrid after being handled
26526 - Removed capture code now that Control handles it
26527 - set_SelectionStart now ensures caret is visible
26529 2006-03-16 Jackson Harper <jackson@ximian.com>
26531 * TrackBar.cs: Debackwards the increment/decrement for handling
26532 mouse clicks on the bar with vertical trackbars.
26533 * ThemeWin32Classic.cs: Draw vertical trackbars with 0 at the
26534 bottom to match MS.
26536 2006-03-16 Mike Kestner <mkestner@novell.com>
26538 * ListView.cs: make shift/ctrl keyboard and mouse selection
26539 consistent with the MS control. Fix a bug in
26540 SelectedListViewItemCollection.Clear that was pissing me off for the
26541 better part of a day because the collection was being altered
26542 underneath us as we walked the list.
26544 2006-03-16 Peter Dennis Bartok <pbartok@novell.com>
26546 * Control.cs: Not sure how we could miss this so long, but it seems
26547 that MS.Net has Capture set all the way from before calling
26548 OnMouseDown through sending the mouse events until after
26549 OnMouseUp. This will fix DataGrid's selection being set to end
26550 at the location of the MouseUp.
26552 2006-03-15 Jackson Harper <jackson@ximian.com>
26554 * BindingContext.cs: Check the binding after its added so that it
26555 can initialize the binding managers and hookup to events.
26556 * Binding.cs: Data members seem to sometimes include rows/cols in
26557 the format Row.Column we now take this into account.
26558 - Hookup to the position changed event so we can update the
26559 control when the position has changed in the data set.
26560 * CurrencyManager.cs: Take into account the row/col naming
26561 convention when creating dataset tables.
26562 * BindingContext.cs: Using a newer better way of storing
26563 datasource/datamember pairs. Hopefully this better matches MS for
26564 looking up binding managers.
26567 2006-03-15 Jackson Harper <jackson@ximian.com>
26569 * BindingContext.cs: The currency manager needs the data member
26570 name, if the member is a data set we use the name to find the
26572 * CurrencyManager.cs: When creating the list prefer an IList over
26574 - Attempt to create a DataTable from a DataSet (TODO: might need
26575 some better error checking here, although MS doesn't seem to have much)
26576 - If we have a DataTable create a view and use it as our list.
26578 2006-03-15 Mike Kestner <mkestner@novell.com>
26580 * ListView.cs: keep a matrix of the icon mode layout to facilitate
26581 keyboard navigation. Support Up/Down/Left/Right selection correctly
26582 for all 4 View modes.
26583 * ListViewItem.cs: add internal row/col fields for icon layouts.
26585 2006-03-15 Jackson Harper <jackson@ximian.com>
26587 * TabControl.cs: Redraw the tabs when we resize so their newly
26588 calculated sizes are drawn on screen.
26589 * X11Keyboard.cs: Begginnings of XIM support. We also now support
26590 composite characters.
26591 * XplatUIX11.cs: Keyboard driver needs to know about focus changes
26592 - filter events so that composite characters can be created
26594 * X11Structs.cs: Add XIMProperties enum.
26596 2006-03-14 Peter Dennis Bartok <pbartok@novell.com>
26598 * Control.cs (BringToFront, SendToBack): Don't use window or handle
26599 unless it's created
26601 2006-03-14 Peter Dennis Bartok <pbartok@novell.com>
26603 * Control.cs (PerformLayout): We don't need to consider visiblity
26604 for anchoring, only for docking. This fixes 'whacky' alignment
26605 in listbox and other controls that use implicit scrollbars after
26606 the previous PerformLayout patch
26607 * ListBox.cs: Switched to use implicit scrollbars
26609 2006-03-14 Mike Kestner <mkestner@novell.com>
26613 - chain up the "new event" overrides to base and use
26614 OnEvent to raise them. Part of fix for bug #76509.
26616 2006-03-14 Alexander Olk <alex.olk@googlemail.com>
26618 * FileDialog.cs: Do not select an item in the parent directory
26621 2006-03-14 Peter Dennis Bartok <pbartok@novell.com>
26623 * Control.cs (PerformLayout): It would seem that we considered
26624 invisible windows for our layout. Not quite the right thing
26625 to do. Now we don't any longer, thereby fixing bug #76889.
26627 2006-03-14 Peter Dennis Bartok <pbartok@novell.com>
26629 * Control.cs (CanFocus): I goofed. A control can have focus
26630 even though it's not selectable. Made it match MS docs.
26632 2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
26634 * ControlPaint.cs (DrawBorder3D): DrawBorder3D does not fill the
26635 center by default (fixes #76895)
26636 * ThemeWin32Classic.cs, ThemeNice.cs, ThemeClearlooks.cs: Replaced
26637 all uses of Border3DSides.All with the explicit ORd together
26638 Left|Right|Top|Bottom because I assume that nobody was aware
26639 that All also implies a center fill. Most places I checked had
26640 a fill right above.
26641 * ProgressBarStyle.cs: Added
26643 2006-03-13 Mike Kestner <mkestner@novell.com>
26645 * ListView.cs: fix breakage in drag shadow header positioning
26646 from Peter's csc compilation fix.
26648 2006-03-13 Mike Kestner <mkestner@novell.com>
26650 * ListView.cs: fix NRE produced by backspacing twice in a focused
26653 2006-03-13 Mike Kestner <mkestner@novell.com>
26655 * ListView.cs: proxy Key(Down|Up) from ItemControl to ListView.
26657 2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
26659 * Hwnd.cs: Added fixed_size field to track windows whose size cannot
26661 * XplatUIX11.cs: Now setting fixed_size on hwnd and if set, re-setting
26662 the allowed size before making programmatic size changes
26664 2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
26666 * XplatUIX11.cs: Don't call XSetWMNormalHints if no flags are
26667 set, metacity is broken and will still use the emty sizes in
26668 the struct. (Fix for #77089)
26670 2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
26672 * XplatUIStructs.cs: Split WindowStyles into WindowStyles and
26673 WindowExStyles and marked both enums as Flags
26674 * Form.cs, ComboBox.cs, ToolTip.cs, Control.cs, PropertyGridView.cs,
26675 NotifyIcon.cs, MenuAPI.cs, XplatUIOSX.cs, MonthCalendar.cs: Updated
26676 to match WindowStyles split
26678 - SetWMStyles: Added cehck to not apply WM attributes to Child windows
26679 - Updated to match WindowStyles split
26681 - Fixed FosterParent creation, was using ExStyle on the Style field
26682 (This should help with Popup focus issues)
26683 - Updated to match WindowStyles split
26685 2006-03-13 Jackson Harper <jackson@ximian.com>
26687 * MdiWindowManager.cs: Use the system menu height. Fixes some
26688 strange sizing issues.
26690 2006-03-12 Peter Dennis Bartok <pbartok@novell.com>
26692 * RichTextBox.cs: Need to scroll to caret after text is inserted (#77672)
26694 - Scroll to caret after inserting text (#77672)
26695 - Make scroll range one pixel higher, fixes off-by-one error (and
26696 makes underlines visible on the last line)
26698 2006-03-12 Peter Dennis Bartok <pbartok@novell.com>
26700 * XplatUIX11.cs: Added call to new Keyboard.ResetKeyState to prevent
26701 the keyboard state from being stuck with keys in 'pressed' state when
26702 focus is switched away via keyboard
26703 * X11Keyboard.cs: Added new ResetKeyState method to allow drivers to
26704 reset the keyboard if no X11 KeyUp events are expected to come
26705 * X11Structs.cs: Switched type of Visible to bool to match driver
26707 2006-03-12 Peter Dennis Bartok <pbartok@novell.com>
26710 - Switched caret to be just 1 pixel wide, matches MS and looks less
26712 - Moved caret display 1 pixel down from the top of the control
26714 - InsertCharAtCharet: Update the selection start if moving the caret
26715 (fixes bug #77696; based on patch suggested by kazuki@panicode.com)
26716 - No longer always creating the caret when the caret methods are
26717 called. Only the actual ShowCaret/HideCaret will do that now
26718 - Only setting caret visible if the owner control has focus
26719 - UpdateView: Added invalidation-shortcut logic for center and right
26720 aligned text. Previously we'd update all according to the left
26721 logic which caused drawing errors. Also fixed height of invalidated
26722 areas, now properly invalidating the whole area (was off-by-one)
26723 - owner_HandleCreated: Always generate the document when the
26724 handle is created; this ensures that
26726 - Fixed situation where caret would disappear under the right
26727 window border, also improved scrolling behaviour on left-
26729 - Fixed right-aligned textboxes to have a border to the
26730 right instead of the caret being under the right border
26732 - Switched from 'nested' to simple visible/not visible tracking
26733 for caret (part of fix for #77671)
26734 - No longer passing through translated FocusIn/FocusOut messages
26735 since we were notifying too often and the wrong windows. Instead
26736 we just notify our focussed window of receiving or loosing focus
26737 * XplatUIWin32.cs: Switched from 'nested' show/hide
26738 counting for caret to simple visible yes/no behaviour (part of
26741 2006-03-11 Alexander Olk <alex.olk@googlemail.com>
26743 * Mime.cs: Remove debug code...
26745 2006-03-11 Alexander Olk <alex.olk@googlemail.com>
26747 * MimeGenerated.cs: Removed
26748 * Mime.cs: Mime now reads the mime data (magic, globs, aliases
26749 and subclasses) from /usr/(local/)share/mime and
26750 $HOME/.local/share/mime.
26752 2006-03-10 Jackson Harper <jackson@ximian.com>
26754 * MdiWindowManager.cs: Recalc the NC area when a window is
26755 maximized/restored so that the menu area is drawn on forms that
26758 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
26760 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
26761 XplatUIX11.cs: Added RequestNCRecalc method to driver to allow
26762 us to force a WM_NCCALCRESIZE message being sent. This is needed
26763 for MDI maximizing.
26765 2006-03-10 Jackson Harper <jackson@ximian.com>
26767 * Form.cs: We need to use the ActiveMenu when calculating menu
26769 - Fix nullref when the window manager hasn't been created yet.
26770 * Control.cs: Fix nullref when we try to bring a control to the
26771 front that has no parent.
26772 * MdiWindowManager.cs: Use the MaximizedMenu for calculating
26774 - Add a dummy item to the maximized menu so it always has the
26775 correct height. Otherwise when there are no menus we don't get our
26779 2006-03-10 Jackson Harper <jackson@ximian.com>
26781 * MenuAPI.cs: Make this available elsewhere. I need it in some MDI
26783 * Form.cs: Make the window_state internal so the window managers
26785 - When an MDI child is maximized let its window manager create the
26786 main menu (so it can add its icon).
26787 - Notify the window managers of state changes
26788 - Let the window manager paint its buttons and handle button
26789 clicks on the menu when it is maximized.
26790 * InternalWindowManager.cs: Move the prev_bounds into the mdi
26791 window manager, since tool windows don't use it, only mdi windows.
26792 - Tell the main form that we don't want it to handle NCPAINT
26793 itself to avoid extra painting.
26794 - Handle clicks on a maximized windows menu.
26795 - Handle window state changes
26796 - Handle minimize/maximize clicks correctly by setting the window state.
26797 * MdiWindowManager.cs: Add an icon menu that (the menu you get
26798 when clicking on the forms icon).
26799 - New method to create a forms maximized menu. This is its normal
26801 - Handle window state changes.
26802 - Handle sizing of maximized windows. Maximized windows are just
26803 drawn bigger then the parent visible area. All controls are still
26804 there, they are just outside the visible area (this matches windows).
26805 * MdiClient.cs: No scrollbars when a child window is maximized.
26806 - Let the children windows figure out how big they should be when
26807 sizing maximized windows.
26808 - Implement a version of ArrangeIconicWindows somewhat similar to
26809 Windows version. There are some little differences, but I don't
26810 think any app will rely on the layout of minimized mdi windows.
26812 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
26814 * Padding.cs: Several fixes to allow compiling with csc 2.0
26816 2006-03-09 Jackson Harper <jackson@ximian.com>
26819 * MenuItem.cs: Cheap hack so we can add items to the list without
26820 the events being raised. This allows adding mdi items during
26821 drawing. TODO: Should probably find a better time to add the items.
26823 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
26825 * ThemeWin32Classic.cs:
26826 - CheckBox_DrawText: Added logic to not wrap if not enough space
26827 is available (Fix for bug #77727)
26828 - RadioButton_DrawText: Added logic not to wrap if not enough
26829 space is available (Fix for bug #77727). Also removed some
26830 duplicate code, DrawString always drawing the regular text
26831 before hitting the if statement.
26833 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
26835 * XplatUIX11.cs: Handle an unmapped window state in SetWindowState
26837 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
26839 * PictureBox.cs: Implemented ISupportInitialize interface (fixes #77726)
26840 * ContainerControl.cs: Partial implementation of some 2.0 scaling
26841 methods. Moved the new 2.0 properties into alphabetical order with
26842 other properties and added MonoTODO tags
26844 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
26846 * AutoScaleMode.cs: Added. Fix build.
26848 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
26850 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
26851 XplatUIOSX.cs: Removed HWnd argument from CalcuateClientRect, not used
26852 and was requiring premature handle creation for calls from above
26853 * Form.cs, Control.cs: Removed handle arguments from calls to
26854 CalculateClientRect()
26856 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
26858 * ListView.cs (HeaderMouseMove): Fix csc compilation.
26859 drag_column.column_rect is MarshalByRef and can't be used that way
26861 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
26863 * AxHost.cs: Added deserialization constructor for
26864 AxHost+State (fixes 77743)
26866 2006-03-09 Mike Kestner <mkestner@novell.com>
26869 - Added column drag reordering for details view.
26870 - fixed behavior when mouse is dragged off column and
26871 AllowColumnReorder is false.
26872 * ColumnHeader.cs: clone the format too in Clone.
26873 * Theme.cs: add DrawListViewHeaderDragDetails method.
26874 * ThemeWin32Classic.cs:
26875 - impl new method for drawing drag column shadows and targets.
26876 - support column offset for details mode in DrawListViewItem.
26878 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
26880 * TextControl.cs: Reset the char_count when the document is cleared
26881 (Fixes bug reported on mono-winforms mailing list)
26883 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
26885 * TextBoxBase.cs: Honor the Handled state of KeyPress events. Instead
26886 of calling base we simply process the key ourselves, since both
26887 DefWindowProc and the handled method would set m.Result.
26890 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
26892 * Form.cs(ScaleCore): No longer calling base.ScaleCore since that
26893 method also moves the window; instead implemented a copy of
26894 Control.ScaleCore (Part of fix for #77456)
26896 - Created new CreateGraphicsInternal method to allow providing
26897 a graphics context when no handle is created without triggering
26898 handle creation. (Part of fix for #77456)
26899 - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
26901 - Switched Constructor to require TextBoxBase instead of Control (to
26902 allow uncast access to CreateGraphicsInternal)
26903 - Safeguarded use of owner.Handle property. No longer accessing it
26904 unless the handle is already created.
26905 - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
26906 - Now triggering a recalc when owning control becomes visible
26907 * TextBox.cs, RichTextBox.cs: Switched to use new internal
26908 TextBoxBase.CreateGraphicsInternal() method to avoid triggering
26909 premature handle creation (Part of fix for #77456)
26911 - We now only destroy our double-buffering buffers when the
26912 control is resized or disposed, but not when visibility
26913 changes. (The code even re-created them twice every time)
26914 - Now requiring a redraw of the buffer on visibility changes
26915 (fixes bug 77654 part 2)
26916 - Not passing OnParentVisibleChanged up unless the control
26918 - CanFocus: Fixed to match MS documentation
26919 - Focus: Fixed to return actual focus state and to check if
26920 setting focus is legal before setting it
26922 2006-03-08 Peter Dennis Bartok <pbartok@novell.com>
26924 * ThemeWin32Classic.cs: TabPages cannot have focus. Determine
26925 when to draw focus rectangle by looking at parent focus and
26926 selected state instead. This fixes TabPages on Linux sometimes
26927 having none or multiple focus rectangles.
26928 * XplatUIX11.cs (SetFocus):
26929 - Don't set the focus if the same window already has focus
26930 - Use SendMessage instead of PostMessage (like it's Win32
26931 equivalent) and send the WM_SETFOCUS before the WM_KILLFOCUS
26932 to match MS behaviour
26933 * TabControl.cs(SelectedIndex): Don't set Focus on TabPage, TabPages
26934 are not selectable.
26936 2006-03-07 Jackson Harper <jackson@ximian.com>
26938 * PictureBox.cs: Revert line I accidently committed last week.
26940 2006-03-07 Peter Dennis Bartok <pbartok@novell.com>
26943 - Added new IsRecreating and ParentIsRecreating properties to
26944 allow testing if RecreateHandle has been called on ourselves
26945 or one of our parents
26946 - WndProc(WM_DESTROY): If our control handle is being recreated
26947 we immediately need to create the handle when receiving the
26948 destroy, that way our child windows find a valid parent handle
26949 when they themselves are being recreated upon WM_DESTROY receipt
26950 (fix for bug #77654 part 1)
26952 - DestroyWindow: WM_DESTROY must be sent to our own window before
26953 notifying any child windows. MS documents that child windows
26954 are still valid when WM_DESTROY is received. (Control now relies on
26956 - Added some fine-grain debug options
26958 2006-03-06 Jackson Harper <jackson@ximian.com>
26960 * MdiClient.cs: Redid scrolling logic a bit to create a virtual
26961 box and base calculations off this.
26962 * MdiChildContext.cs:
26963 * MdiWindowManager.cs: Don't need to ensure scrollbars here
26966 2006-03-06 Peter Dennis Bartok <pbartok@novell.com>
26968 * Splitter.cs: In situations where the affected control is added
26969 to the parent's control list after the splitter, we would not
26970 populate affected. Now we try populating it on mousedown, if
26971 it's not already set, and force it to be re-set whenever our
26974 2006-03-03 Matt Hargett <matt@use.net>
26976 * Control.cs: implement Control.Padding
26977 * Padding.cs: -Padding.All returns -1 when constructing with the
26978 implicit default ctor
26979 -Padding.ToString() matches MS.NET
26980 * ContainerControl.cs: implement
26981 ContainerControl.AutoScaleDimensions
26982 * ListControl.cs: implement ListControl.FormattingEnabled
26983 * TextBox.cs: Implemented TextBox.UseSystemPasswordChar.
26985 * TabPage.cs: Implement UseVisualStyleBackColor.
26986 * PictureBox.cs: Implement PictureBox.InitialImage.
26988 2006-03-03 Mike Kestner <mkestner@novell.com>
26990 * ListView.cs: Refactor into HeaderControl and ItemControl. Fix new
26991 event declarations to proxy to base event.
26992 * ListViewItem.cs: update to use ItemControl.
26993 * Theme.cs: make DrawListViewHeader. s/DrawListView/DrawListViewItems.
26994 * ThemeWin32Classic.cs: update to new ListView theme API and fix
26995 column header label rendering for 0 width columns.
26997 2006-03-03 Peter Dennis Bartok <pbartok@novell.com>
26999 * Control.cs (ControlCollection.SetChildIndex): Avoid using a call
27000 that causes the control to be created. Fixes #77476.
27002 2006-03-02 Jackson Harper <jackson@ximian.com>
27004 * Hwnd.cs: Clear the nc pending when clearing the NC area, not the
27007 2006-03-02 Peter Dennis Bartok <pbartok@novell.com>
27009 * Control.cs: Implemented 2.0 feature where OnClick has MouseEventArgs
27010 passed in for the EventArgs (fixes #77690)
27012 2006-03-01 Jackson Harper <jackson@ximian.com>
27014 * ScrollBar.cs: Refresh afterbeing resized.
27016 2006-02-28 Mike Kestner <mkestner@novell.com>
27018 * MenuAPI.cs: Call PerformPopup internal method to emit Popup.
27019 Clean up a tracker compile warning.
27020 * MenuItem.cs: add internal PerformPopup method.
27023 2006-02-28 Peter Dennis Bartok <pbartok@novell.com>
27025 * TextBoxBase.cs (set_Text): Recalculate the document (causing an
27026 implicit expose) when the text is set to null
27028 2006-02-28 Peter Dennis Bartok <pbartok@novell.com>
27030 * RichTextBox.cs (FlushText): When newline is true, we always
27031 need to split the line, even if no text is on it and we may
27032 never eat newlines. (Fixes #77669)
27034 2006-02-28 Mike Kestner <mkestner@novell.com>
27036 * ListView.cs: Add UpdateSelection internal method. Remove SelectItem
27037 and set Selected instead.
27038 * ListViewItem.cs: Call owner.UpdateSelection to manipulate the
27041 2006-02-28 Peter Dennis Bartok <pbartok@novell.com>
27043 * ComboBox.cs: Allow setting SelectedIndex to -1. Fixes #77665
27045 2006-02-28 Alexander Olk <alex.olk@googlemail.com>
27048 - Got rid of the panel. All controls are now directly added to
27050 - It is now possible to set a font with the Font property
27051 - MinSize and MaxSize property do now what they should
27052 - ShowApply, ShowHelp, ShowColor, ShowEffects likewise
27053 - Searching and selecting a font with the font textbox works now,
27054 the same applies to the style and size textbox
27055 - Draw the correct 3D border in the example panel
27056 - Fixed a little mem leak (unused fonts didn't get disposed)
27057 - Many other internal updates/rewrites...
27060 2006-02-27 Peter Dennis Bartok <pbartok@novell.com>
27063 - InsertRTFFromStream: Added 'number of characters inserted' argument
27064 - set_SelectedRTF: Now using the number of characters to calculate
27065 the new location for the selection and cursor (x/y cannot be used
27066 due to potentially already wrapped text)
27068 2006-02-27 Peter Dennis Bartok <pbartok@novell.com>
27070 * TextControl.cs: Added property and implemented means to allow
27071 disabling recalculation of a document (can be used to speed up
27072 multiple inserts and is needed to make RTF inserts predictable, see
27074 * RichTextBox.cs: Using the new NoRecalc property of Document to
27075 keep x/y insert locations predictable. Also makes it faster inserting
27076 large chunks of RTF
27078 2006-02-27 Peter Dennis Bartok <pbartok@novell.com>
27080 * Control.cs: Separated special WM_SYSKEYUP keyboard handling. That way
27081 it's easier for a child control to handle the other messages without
27082 having to duplicate the special functionality
27084 - WndProc: Removed calling base handler for WM_KEYDOWN and added
27085 code to handle processing the key ourselves, in order to get
27086 access to the result of KeyEventArgs.Handled. We now only call
27087 ProcessKey if they key hasn't been handled already. Fixes #77526.
27088 - set_Text: If null or empty string is given, just clear the
27089 document. Fixes part of #77526
27091 2006-02-27 Jackson Harper <jackson@ximian.com>
27093 * SizeGrip.cs: Paint the background color before painting the grip
27094 so things look right.
27095 * MdiClient.cs: Add the sizegrip when both scrollbars are used.
27097 2006-02-27 Mike Kestner <mkestner@novell.com>
27100 - Restructure layout and invalidation model to remove a ton of
27101 flicker from the control and speed up performance in general.
27102 - Add manual column resize, flickers like crazy, but I already have
27103 some ideas on how I'll fix that. (#76822)
27104 - Merge the three Icon-based views into a single layout method.
27105 - Move item selection interaction logic from the item since
27106 interaction with the collections is more appropriate to the view.
27107 - Deselection on non-item clicks.
27109 - Encapsulate most of the layout. Add some internal props to trigger
27110 layout. Move to a model where Items invalidate themselves instead
27111 of just invalidating the whole control every time something changes.
27112 - Invalidate on Text/Caption changes.
27113 - switch to an offset based layout model to avoid having to absolute
27114 position every element on item moves.
27115 - correct checkbox layout to conform to MS layout.
27116 * ThemeWin32Classic.cs:
27117 - refactor some column header drawing code.
27118 - fix string justification for column headers (#76821)
27119 - make SmallIcon labels top justified for compat with MS impl.
27120 * ThemeClearlooks.cs:
27121 - adjust to new ListViewItem internal checkbox bounds api.
27123 2006-02-27 Jackson Harper <jackson@ximian.com>
27125 * Control.cs: Change where implicit controls fall in the zorder.
27126 They are now on top of all children.
27127 - Synced AddImplicit code with Add
27128 - Removed unused enumerator.
27129 * SizeGrip.cs: Remove the TODO as its been TODONE.
27131 2006-02-26 Peter Dennis Bartok <pbartok@novell.com>
27133 * TextControl.cs(Insert): Combine the last lines unless the insertion
27134 string ends with \n\n, otherwise we leave one line too many (Fixes
27135 something I noticed with the testapp for #77526; the bug itself was
27136 already fixed in the previous checkin)
27138 2006-02-26 Peter Dennis Bartok <pbartok@novell.com>
27141 - SelectionColor and SelectionFont methods no longer set absolute
27142 styles. Instead, the keep font or color respectively (This
27143 resolves a long-standing FIXME in the code)
27144 - When flushing RTF text, the insert code now considers text trailing
27145 behind the insertion point (Fixes the bug where when replacing
27146 the selected text via SelectedRTF the remainder of the line behind
27147 the selection would stay on the first insertion line)
27149 - AppendText now updates the selection points after inserting text
27150 - AppendText now ensures that the last tag (sometimes 0-length) of
27151 the document is used for the style information (Fixes part of
27154 - Created new FontDefiniton class to allow describing partial style
27156 - StreamLine() now takes a lines argument, to allow it to decide
27157 whether an encountered zero-length tag is the last in the document
27158 (which must be kept to not loose the font/color contained in it,
27160 - Created Combine() and Split() methods for Marker structs, to
27161 support marker updates due to reformatted documents (soft line
27163 - Implemented Document.CaretTag setter
27164 - Fixed MoveCaret(CtrlEnd) handling, now moves to the last character
27165 of the last line (Not the cause, but also exposed by bug #77220)
27166 - Added LineTag argument to InsertString method, to allow callers
27167 to force a certain tag to be used (required to force use of the
27168 trailing zero-length tag of a document)
27169 - Now updating markers in Combine(), to avoid stale tag markers
27170 - Added some method descriptions to aid maintenance
27171 - Implemented new FormatText concept, allowing additive/subtractive
27172 formatting by only specifying the components that are to be
27173 changed. This was needed for resolving the RTB.SelectedColor/
27174 RTB.SelectedFont fixmes
27175 - Added Break() support method to allow breaking up linetags (used
27176 for partial formatting)
27177 - Added GenerateTextFormat() method. It is used for partial
27178 formatting and allows to generate a full font/color from given
27179 attributes and an existing tag.
27181 2006-02-26 Jackson Harper <jackson@ximian.com>
27183 * XplatUIX11.cs: Use the correct caption height.
27184 - Translate hittest coordinates to screen coords to match MS.
27185 * XplatUIWin32.cs: When we create MDI windows we need to reset
27186 some of the style flags, so we get a nice blank window, and can
27187 draw all the decorations ourselves.
27188 - Set a clipping rectangle on the non client paint event, the
27189 window manager drawing code needs one.
27190 * Form.cs: The window manager needs to know when the window state
27192 * Hwnd.cs: The window manager stuff now does a proper NCCALC so we
27193 don't need to factor in border and title sizes in these
27194 methods. TODO: Remove the args and fix the call points.
27195 * InternalWindowManager.cs: Handle NCHITTEST and NCCALCAREA
27197 - Let the driver set the cursors.
27198 - Improve active window handling
27199 - Correct sizes for title bars and buttons.
27200 - Match MS drawing better
27201 * MdiWindowManager.cs: We don't need to handle border style
27202 updates specially anymore.
27203 - Check for scrollbars when windows are done moving
27204 - Handle Active properly.
27205 * MimeIcon.cs: Don't crash when we can't load the GNOME stuff
27206 correctly. I am spewing the exception though, so we don't hide the
27209 2006-02-26 Pedro Martinez Julia <pedromj@gmail.com>
27211 * DataGridViewRowPostPaintEventArgs.cs,
27212 DataGridViewCellPaintingEventArgs.cs,
27213 DataGridViewRowCollection.cs,
27214 DataGridViewRowPrePaintEventArgs.cs,
27215 DataGridViewCell.cs: Clear a few warnings and implement a few
27216 exceptions that should be thrown.
27218 2006-02-22 Peter Dennis Bartok <pbartok@novell.com>
27220 * ScrollBar.cs (ctor): Explicitly set a cursor to avoid
27221 'inheriting' our parent's (non-default) cursor. (Part of
27222 the fix for #77479)
27224 2006-02-22 Peter Dennis Bartok <pbartok@novell.com>
27226 * XplatUIX11.cs: Fixed cast to make csc happy
27228 2006-02-22 Peter Dennis Bartok <pbartok@novell.com>
27230 * Control.cs (WndProc): Only handle WM_SETCURSOR messages if
27231 it's for the client area (part of fix for #77479 and needed
27232 for MDI window cursor handling)
27234 - DefWindowProc: Now handles the WM_SETCURSOR messages, setting
27235 the appropriate default cursors and also passing the message
27236 up the parent chain
27237 - GetMessage: Now generating WM_NCHITTEST and WM_SETCURSOR even
27238 for non-client areas
27240 2006-02-15 Jackson Harper <jackson@ximian.com>
27242 * XplatUIWin32.cs: Since we fake MDI dont tell Windows that this
27243 is a real MDI window
27245 2006-02-14 Alexander Olk <alex.olk@googlemail.com>
27247 * X11DesktopColors.cs: Instead of checking the desktop session
27248 string for "KDE" check if it starts with "KDE"
27250 2006-02-10 Jackson Harper <jackson@ximian.com>
27252 * XplatUIX11.cs: These should be unsigned (fixes crash on 32 bit
27255 2006-02-10 Alexander Olk <alex.olk@googlemail.com>
27257 * FileDialog.cs: Added Refresh to RunDialog to fix some drawing
27260 - Got rid of the panel. All controls are now directly added to
27262 - Changed to mono coding style
27264 2006-02-10 Jackson Harper <jackson@ximian.com>
27266 * InternalWindowManager.cs: We don't need the set visibility to
27267 false hack anymore now that peter has written beautiful shutdown
27270 2006-02-10 Peter Dennis Bartok <pbartok@novell.com>
27272 * XplatUIX11.cs: Ignore DestroyNotify messages for windows that
27273 where already explicitly destroyed
27275 2006-02-10 Jackson Harper <jackson@ximian.com>
27277 * MdiClient.cs: Handle the case where windows are too high or to
27278 the left and we need scrollbars.
27280 2006-02-10 Alexander Olk <alex.olk@googlemail.com>
27282 * MimeIcon.cs: Added some icons
27285 - Got rid of the panel. All controls are now directly added to
27287 - Changed to mono coding style
27288 - On Linux "My Computer" and "My Network" will now show some
27289 more usefull information. A new class, MasterMount, gathers
27290 this information from /proc/mount. Updated MWFFileView to make
27291 use of this information
27292 - Fixed a bug that caused FileDialog to crash when
27293 ".recently_used" file had a zero size
27294 - FilterIndex does now what it should
27296 * OpenFileDialog.cs, SaveFileDialog.cs: Updated to reflect latest
27299 2006-02-09 Jackson Harper <jackson@ximian.com>
27301 * ComboBox.cs: Don't touch if null.
27303 2006-02-09 Peter Dennis Bartok <pbartok@novell.com>
27305 * Cursor.cs: 64bit safeness fix
27306 * XplatUIX11.cs: Removed several unneeded and one moronic cast.
27308 2006-02-09 Jackson Harper <jackson@ximian.com>
27310 * Form.cs: If a form is made into an MDI form update the styles so
27311 all the props can get set correctly.
27312 - Kill the mdi_container when we dont need it anymore.
27313 * InternalWindowManager.cs: Add missing NOT
27315 2006-02-08 Jackson Harper <jackson@ximian.com>
27317 * InternalWindowManager.cs: Respek clipping when drawing MDi
27320 2006-02-08 Jackson Harper <jackson@ximian.com>
27322 * Hwnd.cs: Add bits to track non client expose events.
27323 * XplatUIX11.cs: Track non client expose events on the hwnd. This
27324 gives us a proper invalid rect and will allow for some nice
27325 optimizations with NC client drawing
27326 - MDI windows are children windows, so move their style handling
27327 into the child window block.
27328 * InternalWindowManager.cs: Remove a state reset that was
27329 getting invoked at the wrong time. Fixes managed windows getting
27330 into a 'stuck' captured state.
27332 2006-02-07 Peter Dennis Bartok <pbartok@novell.com>
27334 * TextControl.cs (Document.ctor): Now initializing
27335 selection_anchor. Fixes #77493
27337 2006-02-07 Jackson Harper <jackson@ximian.com>
27339 * TrackBar.cs: The increment/decrements were backwards.
27341 2006-02-07 Mike Kestner <mkestner@novell.com>
27343 * Theme*.cs : remove ThemeEngine.Current usage as it just points back
27344 to the instance itself.
27346 2006-02-07 Peter Dennis Bartok <pbartok@novell.com>
27348 * X11DesktopColors.cs, ThemeGtk.cs: The GObject structure is based
27349 on ulongs and pointers, the size differs between 32bit and 64bit
27352 2006-02-07 Mike Kestner <mkestner@novell.com>
27354 * XplatUIX11.cs : force the WorkingArea away from XGetWindowProperty
27355 for 64 bit platforms to work around a metacity bug.
27357 2006-02-07 Jackson Harper <jackson@ximian.com>
27359 * TrackBar.cs: Process the input keys we need, and hookup to
27360 KeyDown instead of using WndProc, so we get key messages.
27362 2006-02-06 Peter Dennis Bartok <pbartok@novell.com>
27364 * XplatUIX11.cs: Atoms are only 32bit on the wire, no matter what
27366 * X11Dnd.cs(SetAllowDrop): Since atoms are always 32bit on the wire
27367 we need to translate the XdndVersion atoms array before sending it
27369 2006-02-06 Peter Dennis Bartok <pbartok@novell.com>
27372 - The preceeding 64bit fixes had a bug: ChangeProperty expects the
27373 number of bits for the property, not the number of bytes. The
27374 change to provide IntPtr.Size broke 32bit. (64bit was also wrong
27375 but would not crash since it specified 8 bits instead of 4 bits)
27376 - More 64bit fixes: Switched all atoms from int to IntPtr (they are
27377 defined as XID -> long in the C headers)
27378 - Removed 'new IntPtr((int))' and '(IntPtr)' casts from all NetAtoms
27379 references since those are now IntPtr to begin with
27380 - Switched all Atom.XXX 'int' casts to IntPtr casts
27381 - Fixed XGrabPointer DllImport signature to work for 64bit (cursor arg)
27382 - Fixed XInternAtom signature for 64bit, now returns an IntPtr
27383 - Added XChangeActivePointerGrab DllImport (for X11DnD)
27385 - Changed 'int' type for Atoms in XEvent structures to IntPtr
27386 - Changed atom in HoverStruct to be IntPtr
27388 - Removed local DllImports, switched code to use those from XplatUIX11
27389 - Removed/fixed casts related to the switch of Atom to be a IntPtr
27391 2006-02-06 Mike Kestner <mkestner@novell.com>
27393 * XplatUIX11.cs : many more 64 bit pinvoke changes. I've audited all the
27394 method signatures in the import region. There may still be some
27395 lingering struct marshaling issues, as I didn't drill down into those.
27398 2006-02-06 Jackson Harper <jackson@ximian.com>
27400 * ComboBox.cs: Dont manually set the top_item, this is computed
27401 when the scrollbar position is set.
27403 2006-02-06 Mike Kestner <mkestner@novell.com>
27405 * XplatUIX11.cs : 64 bit changes to XGetWindowProperty usage. Fixes
27406 startup crashes on amd64. There's other fixes needed. All pinvoke
27407 usage of Atom needs to be mapped to IntPtr for example. And there are
27408 likely other int/long issues to be addressed.
27410 2006-02-04 Alexander Olk <alex.olk@googlemail.com>
27412 * FileDialog.cs: One more...
27414 2006-02-03 Alexander Olk <alex.olk@googlemail.com>
27416 * FileDialog.cs: Next try
27418 2006-02-03 Alexander Olk <alex.olk@googlemail.com>
27420 * FileDialog.cs: First part of fix for #77464
27422 2006-02-03 Alexander Olk <alex.olk@googlemail.com>
27424 * ButtonBase.cs, ContainerControl.cs, Forms.cs,
27425 ThemeWin32Classic.cs: Fix for #77458. Correct handling of
27426 AcceptButton border drawing.
27428 2006-02-03 Peter Dennis Bartok <pbartok@novell.com>
27430 * Form.cs: Moved positioning of form after auto scaling is applied,
27431 otherwise it would possibly use wrong form size.
27433 2006-02-03 Peter Dennis Bartok <pbartok@novell.com>
27435 * Control.cs (RecreateHandle): No need to re-create any child
27436 controls, the child windows will get destroyed automatically by
27437 the windowing system or driver, and re-created when the handle
27438 is being accessed the first time. Fixes #77456
27439 * Form.cs: No longer setting the form to closing if the handle is
27440 being recreated. This seems like the right thing to do, don't
27441 have a bug or testcase for this, though.
27443 2006-02-02 Peter Dennis Bartok <pbartok@novell.com>
27445 * FileDialog.cs: Suspend/Resume layouting when changing sizes of
27446 controls to avoid unwanted side effects
27448 2006-02-02 Peter Dennis Bartok <pbartok@novell.com>
27451 - ScaleCore needs to scale the bounds, not the ClientSize of the
27452 control. Fixes #77416.
27453 - DefaultSize is 0,0 for control
27455 - DefaultSize is 100, 20
27456 - SetBoundsCore: Now enforcing the height, no matter if the provided
27457 height is more or less than the preferred one, as long as AutoSize
27459 * Form.cs: Apply documented fudge factor. Part of item 3 fix for #77416
27461 2006-02-02 Peter Dennis Bartok <pbartok@novell.com>
27464 - ResumeLayout: Fixed logic when to call PerformLayout, we may not
27465 call unless both performLayout is true *and* we have a pending
27467 - ResumeLayout: MS does not completely nest Suspend and Resume,
27468 they bottom out at 0, fixed our code to match that.
27469 - UpdateBounds/SetBoundsCore: Moved calling of UpdateDistances() to
27470 SetBoundsCore, we were updating even when we shouldn't. This fixes
27471 swf-anchors mis-anchoring when resizing the app fast and lots.
27472 - UpdateDistances: Now only setting the left and top distance if
27473 we have a parent and are not suspended, this is based on
27474 a suggestion by Don Edvaldson in bug #77355.
27475 - OnVisibleChanged: Fixed logic when to create the control. We may
27476 not create the control if we have no parent or if it's not visible;
27477 switched to using Visible property instead of is_visible field
27478 since the property also considers parent states. This fixes a bug
27479 when starting Paint.Net
27481 2006-02-02 Jackson Harper <jackson@ximian.com>
27483 * Form.cs: If the forms handle hasn't been created yet don't call
27484 into xplatui to make it top most, just set the topmost flag on the
27485 form in CreateParams
27486 * XplatUIX11.cs: Handle WS_EX_TOPMOST.
27488 2006-02-01 Jackson Harper <jackson@ximian.com>
27490 * ScrollableControl.cs: Refactored the Recalculate method a
27491 little, this wasn't handling all the variants of bottom and right
27492 bars needed to be added and added/removed based on their
27493 counterparts being added/removed (which changes the drawable
27494 size). Also we special case client widths and heights of 0 and
27495 don't add the scrollbar for those.
27497 2006-02-01 Peter Dennis Bartok <pbartok@novell.com>
27500 - Added method to get AbsoluteGeometry(); currently unused, but might
27501 be used in the future, if we try again to figure out toplevel
27502 coordinates with some more crappy window managers
27503 - Added FrameExtents() method to retrieve the WM set decoration size
27504 - Tried to fix up AddConfigureNotify and handling of ReparentNotify
27505 to deal with at least KDE, FVWM and metacity (Fixes #77092)
27507 - Added whacky_wm tracking var for metacity
27508 - Added logic to have default menu height if the actual menu height
27509 has not yet been calculated (part of fix for #77426)
27510 * Form.cs: Keep track whether client size has been set and re-set
27511 it if a menu is added/removed afterwards (Fixes #77426)
27513 2006-01-31 Jackson Harper <jackson@ximian.com>
27515 * Control.cs: When a new Site is set on the component attempt to
27516 pull the AmbientProperties from it.
27518 2006-01-31 Peter Dennis Bartok <pbartok@novell.com>
27520 * ThemeWin32Classic.cs: Menu background is drawn in ColorMenu, not
27521 in the background of the owning form. Fixes #77332
27523 2006-01-31 Alexander Olk <alex.olk@googlemail.com>
27525 * MimeIcon.cs: Fix for #77409
27527 2006-01-31 Alexander Olk <alex.olk@googlemail.com>
27529 * XplatUIX11GTK.cs: Initial import
27531 2006-01-31 Jordi Mas i Hernandez <jordimash@gmail.com>
27533 * FixedSizeTextBox: fixes class signature
27535 2006-01-30 Jackson Harper <jackson@ximian.com>
27537 * FixedSizeTextBox.cs: New internal class that represents a
27538 textBox that will not be scaled.
27541 * UpDownBase.cs: Use the new FixedSizeTextBox instead of a
27544 2006-01-30 Peter Dennis Bartok <pbartok@novell.com>
27546 * XplatUIX11.cs: Retrieve default screen number instead of
27547 assuming 0. Attempted fix for #77318
27549 2006-01-30 Peter Dennis Bartok <pbartok@novell.com>
27552 - GetWindowPos: When a window is parented by FosterParent, use
27553 the desktop instead of FosterParent as the base to get coordinates
27554 - CreateWindow: Don't make FosterParent the parent window for Popups
27555 if we don't want a taskbar entry, Popups automatically don't get one
27556 * Hwnd.cs: Need to call remove to actually remove the key from the
27559 2006-01-30 Mike Kestner <mkestner@novell.com>
27561 * MenuAPI.cs: adjust MainMenu item popup location to y=0.
27563 2006-01-30 Jackson Harper <jackson@ximian.com>
27566 * TreeNode.cs: Raise events no matter how the treenode is
27567 checked. Patch by Don Edvalson.
27569 2006-01-30 Jackson Harper <jackson@ximian.com>
27571 * TreeNode.cs: Signature fix.
27573 2006-01-29 Alexander Olk <alex.olk@googlemail.com>
27575 * ThemeClearlooks.cs: Fixed a crash in ProgressBar drawing.
27577 2006-01-20 Mike Kestner <mkestner@novell.com>
27579 * Form.cs: Add ActiveTracker property to do Captures and perform mouse
27580 event forwarding when menus are active.
27581 * MenuAPI.cs: kill the GrabControl hack. Use Form.ActiveTracker.
27582 Most of the patch is pdb's with a little rework.
27584 2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
27586 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs:
27587 Removed GetMenuDC and ReleaseMenuDC methods; replaced
27588 by PaintEventStart(handle, false) and PaintEventEnd(handle, false)
27589 * Form.cs: Changed WM_NCPAINT handler to use PaintEventStart and End
27590 * InternalWindowManager.cs: Added use of PaintEventStart/End to
27591 handling of WM_NCPAINT message, now passing the PaintEventArgs to
27592 the PaintWindowDecorations method
27593 * MainMenu.cs: Switched logic from GetMenuDC to PaintEventStart
27594 * MdiChildContext.cs: Switched logic from GetMenuDC to PaintEventStart
27595 * MenuAPI.cs: Made tracker window invisible
27597 - Removed GetMenuDC and ReleaseMenuDC methods
27598 - Implemented the client=false path for PaintEventStart and
27601 2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
27603 * XplatUIWin32.cs(SetBorderStyle): Fixed3D needs a border
27604 * XplatUIX11.cs(DeriveWindowStyles): Updated to match fixed Form
27607 - MaximizeBox, MinimizeBox: Recreate the handle when setting
27609 - CreateParams: Reworked the styles to match MS look'n'feel,
27610 removed automatic setting of MinimizeBox, MaximizeBox, etc. via
27611 the WS_OVERLAPPEDWINDOW style. This fixes #76823.
27613 2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
27615 * XplatUIX11.cs(GetWindowState): Now throwing an exception when the
27616 window is not mapped, since otherwise every form that's being
27617 created is considered minimized, which is wrong.
27618 * Form.cs: Catching the exception and returning our internal value
27621 2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
27623 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new driver method
27624 SetWindowMinMax() to have means to tell the driver about the minimum,
27625 maximum and maximized state window sizes. (Part of the fix for #76485)
27627 - Implemented tracking of minimum and maximum window size, now calling
27628 new SetWindowMinMax() driver method to tell the driver (Part of the
27630 - Finished handling of WM_GETMINMAXINFO method, now setting all values
27631 (Completes fix for #76485)
27632 - Calling new SetWindowMinMax driver method when the handle for a
27633 form is created, to make sure the driver knows about it even if
27634 the values have been set before the window was created
27635 - Now eating the WM_WINDOWPOSCHANGED message if the form is minimized
27636 to avoid messing up our anchoring calculations (partial fix
27638 * XplatUIStructs.cs: Added MINMAXINFO struct (moved from Win32 driver)
27640 - Added _NET_WM_STATE_HIDDEN property for detecting minimized state
27641 - Improved GetWindowState() to detect 'Minimized' state on Metacity
27642 (and presumably other freedesktop.org compliant WMs). Left the
27643 assumption unmapped=minimized, needed for SetVisible to work.
27644 - Now setting the window state when creating windows
27645 - Fixed SetVisible to consider/set the window state when mapping
27646 a Form. We cannot set the state before it's mapped, and we cannot
27647 use Form.WindowState once it's mapped (since it would ask the
27648 driver and get 'normal'. Therefore, we grab the state before
27649 mapping, map, and then set state.
27650 - Implmemented SetWindowMinMax method; Metacity does not seem to
27651 honor the ZoomHints, though.
27653 - Removed MINMAXINFO (moved to XplatUIStructs)
27654 - Added SetWindowMinMax stub (on Win32 the only way to set that
27655 information is in response to the WM_GETMINMAXINFO message, which
27656 is handled in Form.cs)
27657 - Added logic to SetVisible to set the proper window state when a
27658 form is made visible (fixes #75720)
27660 2006-01-26 Jackson Harper <jackson@ximian.com>
27662 * Control.cs (BeginInvoke): Automagically handle EventHandlers the
27663 same way we handle them with Invoke.
27665 2006-01-25 Peter Dennis Bartok <pbartok@novell.com>
27668 - Added tracking of window state so CreateParams can return
27669 the appropriate style
27670 - Moved setting of WS_CAPTION style in CreateParams to allow
27671 styles without caption
27672 * DataGridTextBoxColumn.cs: We are now also creating the TextBox
27673 control if the TextBox property is accessed. Fixes #77345
27675 - get_Created: now uses is_disposed and is_created to determine
27676 return value (suggested by Jackson)
27677 - CreateHandle: No longer exits if the handle is being recreated
27678 - RecreateHandle: If the handle is not yet created call the
27679 appropriate method to create either control or handle. If the
27680 control is already created CreateHandle will simply exit instead
27681 of just creating the handle
27682 * Hwnd.cs: Removed expose_pending tracking, no longer needed since we
27683 now SendMessage WM_DESTROY directly to the control when DestroyWindow
27686 - When DestroyWindow is called, instead of waiting for the
27687 DestroyNotification from X11, we directly post it to the WndProc
27688 and immediately dispose the hwnd object.
27689 Same applies to DestroyChildWindows, and this obsoletes the
27690 expose_pending tracking. Contrary to Win32 behaviour we destroy our
27691 child windows before our own, to avoid X11 errors.
27692 - Removed the direct sending of WM_PAINT on UpdateWindow
27694 - Reworked DoEvents and GetMessage to allow access to internal queue
27695 even when trying non-blocking access to the queue. Fixes #77335.
27696 Based on a patch suggestion by Don Edvalson. The new private
27697 GetMessage can now also be used as a backend for a PeekMessage
27699 * XplatUI.cs: Improved debug output for CreateWindow
27701 2006-01-25 Jackson Harper <jackson@ximian.com>
27703 * Help.cs: Allow param to be null. Patch by Don Edvalson.
27705 2006-01-24 Jackson Harper <jackson@ximian.com>
27707 * ComboBox.cs: Clamp the max value set for the vertical scrollbar
27708 when we have a MaxDropItems lower then the selected index.
27710 2006-01-24 Jackson Harper <jackson@ximian.com>
27712 * Control.cs: Don't allow selection of non visible controls, allow
27713 selection of controls without parents.
27715 2006-01-24 Jordi Mas i Hernandez <jordimash@gmail.com>
27717 * ThemeWin32Classic.cs: Fixes Datagrid drawing issues
27718 * DataGridDrawingLogic.cs: Add editing row only when is necessary
27720 2006-01-23 Jackson Harper <jackson@ximian.com>
27722 * UpDownBase.cs: Make the textbox handle all the selection and
27723 tabbing. This fixes tabing to updown controls.
27725 2006-01-24 Jordi Mas i Hernandez <jordimash@gmail.com>
27727 * TextBoxBase.cs: fixes exception thown the object was null
27729 2006-01-23 Jackson Harper <jackson@ximian.com>
27731 * ButtonBase.cs: Just use the base CreateParams. They set
27732 visibility and enabled correctly.
27735 * MonthCalendar.cs: Lets let the base set as much of the
27736 createparams as possible so we don't have duplicate code all over
27739 2006-01-22 Alexander Olk <alex.olk@googlemail.com>
27741 * ThemeGtk.cs: Added TrackBar and some experimental code to
27742 get double buffering back
27744 2006-01-21 Jordi Mas i Hernandez <jordimash@gmail.com>
27746 * DataGrid.cs: Allows row number set internally higher than the last
27747 when creating a new row. Restores the editing functionality.
27749 2006-01-20 Mike Kestner <mkestner@novell.com>
27751 * MimeIcon.cs: delay Image creation until the icons are accessed
27752 instead of creating 190 scaled images on GnomeHandler startup.
27754 2006-01-19 Peter Dennis Bartok <pbartok@novell.com>
27756 * TextBoxBase.cs (WndProc): When handling WM_KEYDOWN we need to
27757 first call base before processing the event. Fixes #77279
27759 2006-01-19 Peter Dennis Bartok <pbartok@novell.com>
27761 * XplatUIWin32.cs, Cursor.cs: Fixed code that wrongly assumed
27762 that the stride for the GDI bitmap would match the stride of
27765 2006-01-19 Alexander Olk <alex.olk@googlemail.com>
27767 * ThemeGtk.cs: Added ProgressBar, RadioButton, CheckBox
27769 2006-01-19 Jackson Harper <jackson@ximian.com>
27771 * ComboBox.cs: Hookup the text controls keydown event so we get
27772 those when the text control has the focus.
27774 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
27776 * Label.cs: Now using the base events instead of defining new ones;
27777 this allows us to just call the base properties without having to
27778 duplicate all base property logic
27780 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
27782 * Label.cs: A label by default is not a tabstop (Fixes one of our
27783 failing nunit tests)
27785 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
27787 * XplatUIWin32.cs: Fixed wrong DoEvents logic. Fixes #77282
27788 * XplatUIX11.cs: Removed WM_PAINT check from DoEvents. Fixes #77282
27790 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
27792 * Cursor.cs: Reimplemented creating cursor bitmaps without using
27793 the Bitmap(Stream) constructor which is semi-broken on MS GDI+.
27796 - Reimplemented creating Bitmaps from DIBs since the Bitmap(Stream)
27797 constructor creates images that can't be saved. Part of the fix
27799 - Added handling of CF_BITMAP as CF_DIB to clipboard code (Fixes #76103)
27800 - SetWindowState: Switched ShowWindow flags (part of an upcoming
27801 bug fix for handling window state in forms properly)
27803 2006-01-18 Alexander Olk <alex.olk@googlemail.com>
27805 * ThemeGtk.cs: Simplify ScrollBar drawing
27807 2006-01-18 Jackson Harper <jackson@ximian.com>
27809 * Splitter.cs: Set the default dock style for the splitter control
27810 in the constructor.
27812 2006-01-18 Alexander Olk <alex.olk@googlemail.com>
27814 * ThemeGtk.cs: Corrected StateType and ShadowType for
27817 2006-01-18 Alexander Olk <alex.olk@googlemail.com>
27819 * Control.cs: Make use of Theme.DoubleBufferingSupported
27821 - Added drawing for flat style buttons
27822 - Added ScrollBar drawing
27824 2006-01-18 Alexander Olk <alex.olk@googlemail.com>
27826 * ThemeClearlooks.cs: Removed some unneeded code.
27827 * ThemeGtk.cs: First part of ThemeGtk enhancements.
27829 2006-01-17 Peter Dennis Bartok <pbartok@novell.com>
27831 * LinkLabel.cs: We need to update the hover drawing when
27832 leaving the control as well.
27834 2006-01-18 Jordi Mas i Hernandez <jordimash@gmail.com>
27836 * DataGrid.cs: Clicking on non empty areas in the columns
27837 area was giving an exception
27839 2006-01-17 Jackson Harper <jackson@ximian.com>
27841 * ThemeWin32Classic.cs:
27842 * ListView.cs: Do not draw/clip the headers when the header style
27845 2006-01-17 Jordi Mas i Hernandez <jordimash@gmail.com>
27847 * DataGrid.cs: Fixes 77260
27849 2006-01-17 Jordi Mas i Hernandez <jordimash@gmail.com>
27851 * DataGrid.cs: Clicking on a column on a empty grid was giving
27854 2006-01-17 Peter Dennis Bartok <pbartok@novell.com>
27856 * DataGrid.cs (OnKeyDown): Don't use the array if it's empty
27857 or any keypress will crash the grid.
27859 2006-01-17 Mike Kestner <mkestner@novell.com>
27861 * MainMenu.cs (OnMenuChanged): set Height=0 to cause relayout.
27862 * ThemeWin32Classic.cs (CalcItemSize): clear Height/Width for
27863 invisible/previously-visible items.
27866 2006-01-17 Alexander Olk <alex.olk@googlemail.com>
27868 * ThemeClearlooks.cs:
27869 - Added CL_Draw_Button method; now other theme controls that are
27870 not derived from button or do not have a button can draw buttons
27872 - Updated ComboBox drawing
27873 - Beautified RadioButton drawing
27874 - Corrected drawing of bottom and left tabs
27875 - Beautified DateTimePicker and MonthCalendar
27876 - Added CPDrawButton and CPDrawRadioButton
27878 2006-01-16 Jackson Harper <jackson@ximian.com>
27880 * ComboBox.cs: Set the initial value of the scrollbar to the
27881 current index. Reduce the numbers of refreshs and IndexOfs called.
27883 2006-01-14 Alexander Olk <alex.olk@googlemail.com>
27885 * FileDialog.cs: When the file listview is focused hitting the
27886 backspace key moves the fileview to the parent directory
27888 2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
27891 - Added RecreateHandle call when changing taskbar visibility to
27892 trigger reparenting in Win32 driver (Fixes #75719)
27893 - If a window has minimize or maximize buttons, it cannot have
27896 - CreateWindow: When no WS_EX_APPWINDOW style is found we parent
27897 the toplevel form with FosterParent (A toolwindow not on the
27898 taskbar) (Fixes #75719)
27899 - Made FosterParent a toolwindow
27901 2006-01-13 Alexander Olk <alex.olk@googlemail.com>
27903 * FileDialog.cs: Don't crash if InitialDirectory doesn't exist
27905 2006-01-13 Alexander Olk <alex.olk@googlemail.com>
27907 * ToolTip.cs: If SetToolTip is called from a control and the mouse
27908 is currently over that control, make sure that tooltip_window.Text
27911 2006-01-13 Mike Kestner <mkestner@novell.com>
27913 * MimeIcon.cs: size_t on lp64 fix for gdk_pixbuf_save_to_file extern.
27915 2006-01-13 Jackson Harper <jackson@ximian.com>
27917 * TreeView.cs: On MS GetNodeAt never actually factors in the X
27918 value passed. Also redraw the selected node when we recieve
27919 focus, so tabbing between trees works correctly.
27921 2006-01-13 Alexander Olk <alex.olk@googlemail.com>
27923 * MimeIcon.cs: GnomeHandler: older gnome versions don't have
27924 ~/.gconf/%gconf-tree.xml, so use
27925 .gconf/desktop/gnome/interface/%gconf.xml
27927 2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
27929 * TextControl.cs: Draw text in gray if control is disabled
27931 2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
27933 * TreeView.cs: Draw the focus rectangle outside the highlight, to
27934 make sure it's always visible. Fixes #76680.
27936 2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
27938 * TreeView.cs: Implemented Wheel scrolling. Fixes #76531
27940 2006-01-13 Jonathan Chambers <jonathan.chambers@ansys.com>
27942 * PageSetupDialog.cs: Added.
27943 * PrintDialog.cs: Attributes.
27944 * PrintPreviewControl.cs: Updates.
27945 * PrintPreviewDialog.cs: Updates.
27947 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
27949 * Control.cs: Undid my selection check fix, since it's not needed
27951 - Now considering the presence of hscroll/vscroll when sizing
27952 vscroll/hscroll respectively. Fixed bug #77077
27953 - Added Left/Up/Down/Right to IsInputKey list to prevent
27954 ContainerControl from stealing them. This fixes what I broke
27955 with my last checkin.
27957 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
27959 * ScrollableControl.cs: Implemented dockpadding. Fixes #77166. And
27960 I finally understand how the property can be set without a setter :-)
27962 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
27965 - Switched RunLoop to use static Message.Create to create a
27967 - Added PreProcessMessage call in runloop for keyboard events; this
27968 is part of the fix for #77219, I overlooked this originally in the
27969 MSDN doc for PreProcessMessage
27971 - Removed call to PreProcessMessage from handling of keyboard
27972 messages; it's supposed to be done in the message pump
27973 - Moved call to ProcessKeyEventArgs inside ProcessKeyMessage as
27974 per MSDN documentation.
27975 - IsInputChar: All chars are input chars by default; removed the
27976 parent calling chain, MS does not document that
27977 - PreProcessMessage: If IsInputChar is true, we want to return false
27978 to allow dispatching of the message
27979 - When selecting the next control, now also check that we're not
27980 selecting ourselves again and therefore return a false positive.
27982 - Tried to match return values for IsInputKey and ProcessDialogKey
27983 to what MS returns; moved processing of our special keys outside
27984 ProcessDialogKey since MS does not seem to return true on those.
27985 - Moved code that previously was in ProcessDialogKey into new private
27986 ProcessKey method, which gets called upon receipt of WM_KEYDOWN
27987 - Reworked handling of WM_CHAR to not have to duplicate code from
27988 Control.cs anymore, instead we simply call down to base.
27990 2006-01-12 Jackson Harper <jackson@ximian.com>
27992 * ComboBox.cs: We always need to refresh the text area when
27993 EndUpdate is called. Fixes the combobox in the file dialog.
27994 * Control.cs: Don't create the creator_thread until the controls
27995 handle is created. Also in InvokeRequired we check if the
27996 creator_thread is null. This gives the effect of InvokeRequired
27997 returning true if the controls handle is not created yet, and
28000 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
28003 - Added StartLoop() driver method. This is used to allow drivers to
28004 prepare for an upcoming GetMessage/TranslateMessage/DispatchMessage
28005 loop for a particular thread
28006 - Added EndLoop() driver method. This is called once the message
28007 pump for the thread is shut down
28008 - Added SupportsTransparency method to allow the driver to indicate
28009 opacity support for windows
28011 - Removed TODO attribute, completed AllowTransparency property
28012 - Added documented logic to Opacity
28013 * GroupBox.cs, Label.cs, LinkLabel.cs, PropertyGrid.cs, Control.cs,
28014 ButtonBase.cs, CheckedListBox.cs: Combined Jackson's and Miguel's
28015 versions of CompatibleTextRendering
28016 * X11Structs.cs: Added opacity atom to our atom enumeration
28017 * Hwnd.cs: Added opacity tracking (we need to track since the opacity
28018 of a form might be set before it's reparented by the WM, and we need
28019 the opacity value without calling up to Form)
28020 * XplatUIDriver.cs: Added StartLoop(), EndLoop() and
28021 SupportsTransparency() driver methods
28022 * Application.cs: Now calling StartLoop and EndLoop driver methods
28024 - Added opacity atom registration
28025 - Added StartLoop()/EndLoop() methods. They're empty right now but
28026 will need to get implemented when we switch to a per-thread queue
28027 - Implemented SupportsTransparency() method
28028 - Implemented SetWindowTransparency() method
28029 - Added support for setting the opacity value when a window is
28030 reparented (since the opacity needs to be set on the WM frame)
28031 * XplatUIOSX.cs, XplatUIWin32.cs:
28032 - Added SupportsTransparency(), StartLoop() and EndLoop() methods
28034 2006-01-12 Alexander Olk <alex.olk@googlemail.com>
28036 * ThemeClearlooks.cs: Don't crash if TabControl.Parent is null.
28038 2006-01-12 Alexander Olk <alex.olk@googlemail.com>
28040 * FileDialog.cs: Added ToolTip for MWFFileView
28041 * MimeIcon.cs: Rewrote GnomeHandler.
28042 - Get currently used gnome icon theme from
28043 ($HOME)/.gconf/%gconf-tree.xml
28044 - Make use of inherited icon themes
28045 - Support SVG icon themes like Tango via librsvg
28047 2006-01-12 Miguel de Icaza <miguel@novell.com>
28049 Revert's Jackson's revert which broke 2.0 builds. Fix both
28052 * Application.cs: Move the use_compatible_text_rendering outside
28053 the NET_2_0 define. If we ever need to use the
28054 use_compatible_text_rendering on the individual controls they will
28055 access the variable from the common shared code paths.
28057 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
28060 - Added more granular debug options
28061 - Added method to print both window text and id
28062 - Switched debug output to use new Window() debug method
28063 - Added IsEnabled() driver method
28064 - Added EnableWindow() driver method
28066 - Removed end_modal; no longer needed, new loop handles termination
28067 via 'closing' variable
28068 - If form is modal, setting DialogResult will now initiate loop
28069 termination via 'closing' variable
28070 - Added support for is_enabled/WS_DISABLED to CreateParams
28071 - Close() now just send the WM_CLOSE message; the WM_CLOSE handler
28073 - Removed code that's now in RunLoop from ShowDialog()
28074 - Added various documented sanity checks to ShowDialog()
28075 - Added handling of WM_DESTROY message; we set 'closing' on getting
28076 the message to indicate the message pump to terminate
28077 - Added handling of new internal WM_CLOSE_INTERNAL message - it's
28078 send by the Application.ExitThread method. (We send the message
28079 to destroy the window after all other events have been
28080 processed through the queue, instead of destroying the handle
28082 - Moved code from Close() method to WM_CLOSE handler; added logic
28083 to only send close-related events if the form is not displayed
28085 * Splitter.cs (..ctor): Fixed typo in resource name
28087 - DrawBackgroundImage: Explicitly selecting the wrap mode for the
28089 - set_Cursor: Now only setting calling into XplatUI if the handle for
28090 the control is already created; this avoids implict handle creation
28091 or crashes if it's not created
28092 - set_Enabled: Now setting the enabled state via the new driver method
28093 instead of just tracking it
28094 - CreateParams: Added logic to set WS_DISABLED based on enabled state
28095 - CreateControl: Reordered event firing and method calls to more
28096 closely fire events in the order MS does. Now setting the
28097 enabled state in the driver when creating the control.
28098 - SetVisibleCore: Moved when the OnVisibleChanged event is fired to
28100 * FolderBrowserDialog.cs, MessageBox.cs, ButtonBase.cs, TrackBar.cs,
28101 MonthCalendar.cs: get_CreateParams: Added setting of WS_DISABLED
28102 * XplatUIStructs.cs: Added internal WM_CLOSE_INTERNAL mesage id
28104 - Added tracking of window enabled state (get_Enabled/set_Enabled)
28105 - Added EnabledHwnd property to easily allow a driver to find the
28106 handle of the first enabled window in the parent chain (this is
28107 used by drivers to pass up input events of disabled windows)
28108 * XplatUIDriver.cs: Added IsEnabled() method
28110 - Removed crude and obsolete exiting tracking variable
28111 - Removed internal ModalRun(); replaced by RunLoop()
28112 - Implemented private CloseForms() method to allow closing all
28113 windows owned by a particular (or all) threads
28114 - Exit() now properly closes all windows without forcing the message
28116 - Removed obsolete InternalExit() method
28117 - Changed Run() methods to use new RunLoop() message pump
28118 - Implemented new RunLoop() method for both modal and non-modal forms
28120 - get_CreateParams: Added setting of WS_DISABLED
28121 - Simplified ShowDialog(); now all the work is done in RunLoop(),
28122 invoked via Form.ShowDialog()
28123 * NativeWindow.cs: We don't remove the window from the collection when
28124 the handle is destroyed; there might still be messages for it in the
28125 queue (mainly the resulting WM_DESTROY); instead it will be removed
28126 when Control calls InvalidateHandle in the WM_DESTROY handler
28128 - CreateWindow: Added logic to handle the WS_DISABLED window style
28129 - EnableWindow: Implemented based on Hwnd.Enabled
28130 - GetMessage: Reset PostQuitState so the method can be called again
28131 - Implemented support for disabled windows (passing messages to the
28132 first enabled parent) in handling all input messages
28133 - Added optimizations for handling Expose events
28134 - Implemeted new driver method IsEnabled()
28135 - Now always resetting paint pending tracking vars when we start paint
28136 - Re-implemented UpdateWindow via just sending a WM_PAINT message
28137 * XplatUIOSX.cs: Added IsEnabled method stub
28138 * XplatUIWin32.cs: Implemented new IsEnabled() method
28140 2006-01-11 Jackson Harper <jackson@ximian.com>
28142 * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
28143 LinkLabel.cs, PropertyGrid.cs: Unbreak 1.1 build. Consolidate the
28144 variables a little.
28145 * ColorDialog.cs: Clear out the old form before adding the new
28148 2006-01-11 Jackson Harper <jackson@ximian.com>
28150 * X11Dnd.cs: Make sure to add all the text formats when adding
28151 strings to the data object.
28152 * TreeNodeCollection.cs: When adding to a sorted tree we need to
28153 do some redrawing too. Also change the UpdateNode to an
28154 UpdateBelow so the newly added node gets painted.
28156 2006-01-11 Miguel de Icaza <miguel@novell.com>
28158 * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
28159 LinkLabel.cs, PropertyGrid.cs: Implement the
28160 UseCompatibleTextRendering property for 2.x
28162 * Application.cs (SetCompatibleTextRenderingDefault): Add.
28164 2006-01-11 Jackson Harper <jackson@ximian.com>
28166 * TreeView.cs: Use the property for setting the selected node so
28167 the correct events get raised.
28168 * TreeNode.cs: Update the tree when the fore/back colours of a
28171 2006-01-10 Jackson Harper <jackson@ximian.com>
28173 * TreeView.cs: Allow setting SelectedNode to null.
28175 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
28177 * Form.cs: Fix support for Form TransparencyKey and Opacity on Windows.
28179 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
28181 * PrintControllerWithStatusDialog.cs: Update page number in dialog.
28183 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
28185 * PrintDialog.cs: Added attributes and set default property values.
28187 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
28189 * PrintControllerWithStatusDialog.cs:
28190 Added PrintControllerWithStatusDialog.
28192 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
28194 * XplatUI.cs, Form.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
28195 XplatUIWin32.cs: Added support for Form TransparencyKey and Opacity on Windows.
28197 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
28199 * ComboBox.cs: Fix crash when there is no selected item (due to last commit)
28201 2006-01-09 Jonathan Chambers <jonathan.chambers@ansys.com>
28203 * ComboBox.cs: Added KeyDown event handler for processing arrow keys
28204 and PgUp/PgDown. Also, scroll to selected item upon dropdown. Bugs 76857 and 76788.
28206 2006-01-08 Alexander Olk <alex.olk@googlemail.com>
28208 * MimeIcon.cs: Added internal class SVGUtil.
28210 2006-01-08 Alexander Olk <alex.olk@googlemail.com>
28212 * FileDialog.cs: Don't crash if there are two files with the
28213 same name but different locations.
28215 2006-01-08 John BouAntoun <jba-mono@optusnet.com.au>
28217 * MonthCalendar.cs: Fixed annoying rendering bug when selecting
28218 dates across multiple month grids. Used to not highlight entire
28219 month, but does now.
28221 2006-01-06 Jackson Harper <jackson@ximian.com>
28223 * MonthCalendar.cs: Removed DoEvents call to prevent a running
28224 message loop. Change timer intervals to numbers that seem more
28227 2006-01-06 John BouAntoun <jba-mono@optusnet.com.au>
28229 * DateTimePicker.cs: Modified CalculateDropDownLocation to use the screen
28230 object for location info since screen object is now implemented.
28232 2006-01-05 Jackson Harper <jackson@ximian.com>
28234 * AsyncMethodData.cs: Check if the call is complete before doing a WaitOne
28235 * AsyncMethodResult.cs: We no longer use a WeakReference for the
28236 AsyncMethodResult, this is because we ALWAYS want the
28237 ManualResetEvent to get set.
28238 * Control.cs: When disposing use an async invoke to call shutdown
28239 code, so that thigns don't block on the finalizer thread. Also
28240 check if we even have a message loop before trying to send
28241 messages, if we don't then don't bother sending messages.
28242 - No more weak references for async methods
28243 * XplatUIDriver.cs: No more weak references for async methods.
28245 2006-01-04 Alexander Olk <alex.olk@googlemail.com>
28247 * FontDialog.cs: Fix, don't throw an exception if FontFamily.Families
28248 returns two FontFamily with the same name
28250 2006-01-04 Peter Dennis Bartok <pbartok@novell.com>
28252 * ThemeWin32Classic.cs, ThemeClearlooks.cs: Dropped stupid scheme of
28253 drawing disabled text. Instead using the ColorGrayText color
28255 2006-01-04 Jackson Harper <jackson@ximian.com>
28257 * TreeNode.cs: redraw the node when its image index is changed.
28259 2006-01-04 Peter Dennis Bartok <pbartok@novell.com>
28261 * RichTextBox.cs: Same fix as last, just for SelectionColor. This
28262 time I checked there are no others like it.
28264 2006-01-04 Jackson Harper <jackson@ximian.com>
28266 * AsyncMethodResult.cs: Use a ManualResetEvent instead of a mutex,
28267 this gives the behavoir I was looking for.
28268 * Control.cs: Special case Invoking EventHandlers, this matches MS
28269 and fixes part of bug #76326.
28271 2006-01-04 Alexander Olk <alex.olk@googlemail.com>
28273 * ThemeClearlooks.cs, FileDialog.cs:
28274 - Reflect the latest Theme class changes
28275 - Remove Mono.Unix.Syscall.time in FileDialg and replace it
28278 2006-01-04 Alexander Olk <alex.olk@googlemail.com>
28280 * Theme.cs: Cache UI resource images and resize them if needed
28282 2006-01-03 Peter Dennis Bartok <pbartok@novell.com>
28284 * RichTextBox.cs: FormatText is 1-based, make it so when SelectionFont
28285 is called. This fixes the crash in Nexxia when setting the font
28286 attributes in the chat. [However, RTF needs a look-over to make sure
28287 that all SelectionXXX methods handle the special case that selection
28288 is empty and therefore the change must be applied to all text starting
28289 at the cursor/selection start]
28291 2006-01-03 Peter Dennis Bartok <pbartok@novell.com>
28293 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
28294 XplatUIOSX.cs: Added SendMessage and PostMessage methods
28295 * X11Keyboard.cs: Switched to new way of calling PostMessage
28297 2006-01-03 Peter Dennis Bartok <pbartok@novell.com>
28299 * Theme.cs: Added theme interface for images to allow the theme to
28300 control what images are used for things like FileDialog, MessageBox
28302 * MessageBox.cs: Now uses the new Theme icon/image interfaces
28304 2006-01-03 Alexander Olk <alex.olk@googlemail.com>
28307 - Removed some dead code
28308 - Opening a recently used file does work now
28309 - Small UI enhancements
28312 2006-01-02 Alexander Olk <alex.olk@googlemail.com>
28314 * FileDialog.cs: Forgot too add __MonoCS__
28316 2006-01-02 Alexander Olk <alex.olk@googlemail.com>
28318 * FileDialog.cs: We are able to read recently used files now let's
28319 go on and write them.
28321 2006-01-01 Alexander Olk <alex.olk@googlemail.com>
28323 * FileDialog.cs: Breathe some life into "last open"/"recently used"
28325 * MimeIcon.cs: Do a check for the top level media type also
28327 2005-12-31 Alexander Olk <alex.olk@googlemail.com>
28329 * ThemeClearlooks.cs:
28330 - Added CPDrawStringDisabled
28331 - ButtonBase_DrawText: Workaround for a DrawString bug; cut off
28332 some chars if the text doesn't fit into text_rect
28333 - DrawListViewItem: If View = View.LargeIcon center the image;
28334 rewrote the drawing of ListViewItem.Text if View =
28337 2005-12-31 Alexander Olk <alex.olk@googlemail.com>
28339 * MimeIcon.cs: Use default KDE icon theme if there is no
28340 "48x48" directory for the current icon theme, fixes #77114
28341 * Mime.cs: Disable not working and actually not used code.
28342 * ThemeWin32Classic.cs:
28343 - Replace "new SolidBrush" in GetControlBackBrush and
28344 GetControlForeBrush with ResPool.GetSolidBrush
28345 - Changed DrawListViewItem from private to protected virtual
28347 - Added form.MaximizeBox = true
28348 - Don't throw an exception if there is a broken symbolic link
28350 2005-12-23 Jackson Harper <jackson@ximian.com>
28352 * TabControl.cs: Give the panels focus, keyboard navigation is
28353 fixed so this works correctly now.
28354 - We need these key events also.
28355 * ToolBar.cs: Remove some of the poor mans double buffering.
28357 2005-12-24 Alexander Olk <alex.olk@googlemail.com>
28359 * ComboBox.cs: The internal TextBox now returns the focus.
28361 2005-12-23 Jackson Harper <jackson@ximian.com>
28363 * ThemeWin32Classic.cs: Draw the text for all tab appearances.
28365 2005-12-23 Peter Dennis Bartok <pbartok@novell.com>
28367 * Control.cs: Removed debug code
28368 * XplatUIX11.cs: Changed DestroyChildWindows to also consider
28371 2005-12-23 Peter Dennis Bartok <pbartok@novell.com>
28373 * Control.cs: When creating the control, update the Z-order after
28374 all it's children are created, too. (Fixes nexxia not showing
28377 2005-12-23 Peter Dennis Bartok <pbartok@novell.com>
28379 * Control.cs: Do not update the anchoring distances if layout is
28380 suspended, instead do it once layout is resumed
28382 2005-12-22 Peter Dennis Bartok <pbartok@novell.com>
28385 - After many hours of debugging, for both Jackson and
28386 myself, it turns out that it helps to set the parent of a control
28387 if you want to actually see it onscreen. In the spirit of that
28388 discovery, we're now setting the parent of the control and
28389 it's children when the control's handle is created. This fix
28390 will make Lutz Roeder's Reflector run happily.
28391 - now just creating the handle instead of the whole control when
28392 getting a graphics context for the control.
28394 2005-12-22 Peter Dennis Bartok <pbartok@novell.com>
28396 * ScrollableControl.cs: When calculating the canvas, don't consider
28397 the scrollbar widths. Instead, predict if horizontal scrollbar
28398 will affect canvas when deciding on vertical display and vice versa.
28400 2005-12-22 Peter Dennis Bartok <pbartok@novell.com>
28402 * RichTextBox.cs: Set default RTF font for documents that don't
28403 have a font table (Fixes #77076)
28405 2005-12-22 Jackson Harper <jackson@ximian.com>
28407 * TextBoxBase.cs: It's difficult to do, but you can have an empty
28408 clipboard. This prevents a NullRef in that case.
28409 * XplatUIX11.cs: Use CLIPBOARD not PRIMARY for our
28410 clipboard. PRIMARY is for the currently selected text only. (We
28411 should implement PRIMARY at some point.
28413 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
28415 * XplatUIWin32.cs: Fixed the TEXTMETRIC structure, we were calling
28416 a Unicode function with a structure that was defined in Ansi way.
28419 2005-12-21 Jackson Harper <jackson@ximian.com>
28421 * StatusBar.cs: Statusbar handles its fore/back colours on it's
28422 on. Because thats how it rolls. (and this avoids it using ambient
28424 * ThemeWin32Classic.cs: Use the proper back color for filling.
28425 * Menu.cs: Use the system menu bar color for drawing menu
28426 bars. Using the window back color will bring ambient colours into
28429 2005-12-21 Alexander Olk <alex.olk@googlemail.com>
28431 * ColorDialog.cs: Fixed a memory leak that caused a SIGSEV. A lot of
28432 Bitmaps were created and not disposed.
28434 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
28436 * Control.cs (CreateControl): Don't do anything if the control is
28437 already created, otherwise we'd fire the OnCreated event more than
28440 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
28442 * ComboBox.cs (FindStringCaseInsensitive): Don't search for emtpy strings,
28443 will always match. Instead return -1. Fixes #76464.
28445 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
28447 * TextControl.cs (RecalculateLine): Only wrap if the wrap point is
28448 neither the beginning nor the end of the line (Fixes bug #76479)
28450 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
28453 - ControlNativeWindow.ControlFromHandle(): Now handling situation
28454 where handle is invalid
28455 - FromHandle(): Now using hashtable-based ControlFromHandle() lookup
28456 instead of slower linear search
28457 * NativeWindow.cs: Don't remove the window from the hashtable until
28458 after the driver has destroyed it (since the driver might use
28459 Control.FromHandle to lookup the control object
28460 * Hwnd.cs: Added DestroyPending property to track if a window is
28461 already destroyed as far as the driver is concerned and only hasn't
28462 yet notified the control
28464 - Activate(): Check if the window is still valid before using the
28466 - Implemented DestroyChildWindow() method to mark child windows as
28467 destroyed when a window is destroyed. This prevents situations
28468 where we might call an X method based on queued events for a
28469 window that already has been destroyed but we haven't yet pulled
28470 the destroy method from the queue.
28471 - Added a call to the new DestroyChildWindow() method to the drivers
28472 DestroyWindow code. Also now marking the destroyed window itself
28475 2005-12-20 Jackson Harper <jackson@ximian.com>
28478 * StatusBarPanel.cs: Don't calculate panel sizes on draw
28479 anymore. Just do them when needed, also track the rects of panels
28480 so that we can optimize refreshing more in the future.
28482 2005-12-20 Alexander Olk <alex.olk@googlemail.com>
28484 * ColorDialog.cs: Fixed focus drawing in small color controls
28486 2005-12-19 Jackson Harper <jackson@ximian.com>
28488 * InternalWindowManager.cs:
28489 * MdiWindowManager.cs: Cleanup some coordinate system changes so
28490 moving windows works properly.
28492 2005-12-19 Peter Dennis Bartok <pbartok@novell.com>
28495 - Removed call to InitLayout() from SetBoundsCore(); doc says
28496 it's only called when a control is added to a container
28497 - Split InitLayout logic, moved to separate UpdateDistances() method
28498 since we need to perform those calculations more often than just
28499 when adding the control to a container. (Needed to fix #77022)
28500 - Now calling UpdateDistances() from UpdateBounds() (fixes #77022)
28501 - Reduced the OnBindingContextChanged events count, don't send them
28502 unless the control is created, we still aren't totally matching
28503 MS, but I can't quite figure out some of their rules
28505 2005-12-18 Alexander Olk <alex.olk@googlemail.com>
28507 * ThemeClearlooks.cs: Corrected distance between ProgressBar
28510 2005-12-18 Alexander Olk <alex.olk@googlemail.com>
28512 * ThemeClearlooks.cs:
28513 - Updated ProgressBar drawing
28514 - Corrected drawing of ScrollBars and scroll buttons
28515 - Some temporary fixes for minor pixel artefacts
28517 2005-12-18 Peter Dennis Bartok <pbartok@novell.com>
28520 - Reworked Controls.Add(), Controls.Remove() and set_Parent() to
28521 cause events to be sent in the same order as MS does.
28522 - Added ChangeParent() method to trigger various OnXXXChanged events
28523 that need to be fired when a parent changes (This is a reworking
28524 of the patch from r54254, with the X11 errors fixed)
28525 - Removed SuspendLayout()/ResumeLayout() calls from Controls.Clear()
28526 since on MS we get OnLayoutChanged events when calling Clear()
28527 - Changed Enabled property to consider parent state as well, if a
28528 parent is not enabled, the control will not be either
28529 - Changed Parent property to simply call Controls.Add() since that
28530 now does all the work required, this way we avoid code duplication
28531 - Threw in a few OnBindingsContextChanged calls to try and match
28532 when MS sends them. We seem to send a few too many, though.
28533 - Added call to CreateControl when adding the control to a parent.
28534 We were never calling CreateControl. Still needs some work, in
28535 some places we treat HandleCreated and ControlCreated as equal,
28537 - Removed obsolete commented out code from UpdateZOrder()
28539 2005-12-18 Alexander Olk <alex.olk@googlemail.com>
28541 * ThemeClearlooks.cs: Updated TrackBar drawing.
28543 2005-12-17 Alexander Olk <alex.olk@googlemail.com>
28545 * FileDialog.cs: Patch for #76901 by Atsushi Enomoto
28547 2005-12-17 Alexander Olk <alex.olk@googlemail.com>
28549 * FileDialog.cs: Add the Help button and the open readonly
28550 checkbox only if needed
28552 2005-12-16 Jackson Harper <jackson@ximian.com>
28554 * Control.cs: Make sure we have an active menu before trying to
28555 process commands on it. Prevents menu-less forms from crashing
28556 when Alt is pressed.
28557 * TreeNodeCollection.cs: Some fixes to prevent null refs. Patch by
28559 * RichTextBox.cs: Expand statement to help out gmcs and fix the
28562 2005-12-16 Jackson Harper <jackson@ximian.com>
28564 * InternalWindowManager.cs: Don't translate tool windows screen
28565 coordinates. This fixes windows 'bouncing' around when being moved.
28567 2005-12-15 Peter Dennis Bartok <pbartok@novell.com>
28570 - MaxLength now treats 2^31-1 equal to unlimited length (this is
28571 not quite MS compatible, MS uses that number only for single line
28572 and 2^32-1 for multi-line, but I figure it won't hurt keeping
28574 - Now enforcing the MaxLength limit when entering characters
28575 - Added argument to internal Paste() method to track if it's called
28576 from programatically or via keyboard, since keyboard driven pastes
28577 need to enforce max-length
28578 - Added logic to Paste to only paste as many chars as MaxLength
28580 * RichTextBox.cs: Updated to use new obey argument for internal Paste()
28582 - Added Length property to return number of characters in document
28583 - Added private CharCount property which only tracks actual chars
28584 in the document (no linefeeds) and fires event when CharCount
28586 - Added tracking of character count to all methods that alter it
28587 - Added LengthChanged event to allow applications to subscribe
28588 to any changes to the document
28590 2005-12-15 Peter Dennis Bartok <pbartok@novell.com>
28593 - Removed local password_char field (moved to TextBoxBase)
28594 - Now setting the document's password var when password is
28597 - Added password_char field (needed here so MultiLine can
28599 - Added logic to MultiLine property setter to set the document's
28600 variable when password display is allowed
28601 - Removed debug code and made some debug code conditional
28603 - Added RecalculatePasswordLine() method to handle special password
28605 - Added PasswordChar property, also added related tracking vars
28606 - Draw() method now uses local text var for grabbing text to draw,
28607 this var is set to line.text unless we're doing password display,
28608 then it is set to the pre-generated all-password-chars line
28609 - Added calling RecalculatePasswordLine() method for password lines
28611 2005-12-14 Peter Dennis Bartok <pbartok@novell.com>
28614 - Added Reparented property to allow tracking of Window Manager
28615 reparenting actions (which affect X/Y calculations of toplevel
28617 - Made ToString() print window handles in hex
28619 - AddConfigureNotify(): Now uses reparented state off Hwnd to
28620 determine if X/Y needs offsetting
28621 - AddConfigureNotify(): Fixed offset calculations
28622 - Now adds ReparentNotify messages into the queue
28623 - Now processes ReparentNotify messages and causes a
28624 WM_WINDOWPOSCHANGED message to be sent upstream if a window
28625 is reparented (as most likely it's X/Y coordinates are changed
28628 2005-12-14 Jackson Harper <jackson@ximian.com>
28630 * XplatUIX11.cs: Tool windows still need to respek focus.
28632 2005-12-14 Peter Dennis Bartok <pbartok@novell.com>
28634 * Control.cs: Undid 54254 (causing XConfigure errors) so we can
28635 have a working release
28637 2005-12-13 Jackson Harper <jackson@ximian.com>
28639 * Form.cs: Update styles after setting the border style regardless
28640 of whether or not the window is using a window manager.
28642 2005-12-13 Jackson Harper <jackson@ximian.com>
28644 * Form.cs: We now hook into an internal window manager instead of just an
28645 MDI subsystem, this is so we can have properly behaving tool windows.
28646 * MdiClient.cs: Naming change, MdiChildContext is now WindowManager
28647 * InternalWindowManager.cs: New internal class that acts as a
28648 window manager for tool windows and as a base for mdi windows.
28649 * MdiWindowManager.cs: New class that acts as a window manager for
28652 2005-12-12 Jackson Harper <jackson@ximian.com>
28654 * Control.cs: Updates so we match behavoir for for implicit
28655 controls. Fixes explosions in MDI.
28657 2005-12-12 Jackson Harper <jackson@ximian.com>
28659 * Control.cs: Implement Invalidate (Region).
28661 2005-12-12 Peter Dennis Bartok <pbartok@novell.com>
28664 - Changed handling of Controls.Add/Controls.Remove to fire (almost)
28665 the same events as MS does. MS fires events for each property
28666 except, for unknown reasons, Cursor, when the control is reparented.
28667 I can't seem to totally match add/remove since MS also fires some
28668 VisibleChanged events, which makes no sense. Consolidated the
28669 parenting code into a separate method so it can be called from
28670 both Add and Remove. set_Parent no longer needs any special logic
28671 as it calls the parent's add method which implicitly fires
28673 - Removed some obsolete code and debug output
28674 - Enabled state is inherited from parents, if this is enabled
28676 2005-12-08 Peter Dennis Bartok <pbartok@novell.com>
28678 * Form.cs: Removed commented out code
28680 2005-12-08 Peter Dennis Bartok <pbartok@novell.com>
28683 - Added internal version of Invoke, with additional argument
28684 indicating if we're calling it from a Dispose() handler. That
28685 way we can avoid BeginInvoke throwing an exception if we're
28686 calling for an already destroyed window.
28687 - Added a dispose argument to BeginInvokeInternal, and made the
28688 check if a valid window handle chain exists conditional on
28689 it not being a dispose call
28690 - Removed code in DestroyHandle to destroy our children. Since we
28691 now handle the WM_DESTROY message we will catch all our children
28693 - Now calling OnHandleDestroyed from our new WM_DESTROY handler
28695 - Added a field to track the application context of the form.
28696 - No need to set closing variable as response to WM_CLOSE, instead
28697 we destroy the window. We also call PostQuitMessage if the form
28698 has an application context (which makes it the main app form,
28699 which, when closed terminates the app)
28701 - Dropped Exit() method, it's naming was confusing
28702 - Added PostQuitMessage() which causes GetMessage to return false
28703 once the message queue is empty
28704 * XplatUIDriver.cs, XplatUIWin32.cs: Dropped Exit(), added
28706 * XplatUIOSX.cs: Switched signature for Exit method since Exit() is
28707 no longer a valid XplatUI method, but left it in since it's used
28708 internally. Added empty PostQuitMessage() method.
28709 * MenuAPI.cs: Replaced call to Exit() with call to
28710 PostQuitMessage, even though this is probably no longer needed.
28711 * Hwnd.cs: Added 'pretty' ToString() to support debugging.
28712 * X11Structs.cs: Added pretty XEvent.ToString() to support debugging.
28714 - Replaced call to XplatUI.Exit() with PostQuitMessage()
28715 - Removed old debug code that would call XplatUI for exception
28716 display, enabled standard exception handling (Still not enabled
28717 though, until NativeWindow's ExternalExceptionHandler define
28720 - Added internal method to allow control to update NativeWindow
28721 after a window has been destroyed
28722 - Added handling of already destroyed windows when calling i
28724 - Added removal of handle from list on ReleaseHandle
28726 - Dropped GetMessageResult var and related code
28727 - Added PostQuitState to field to track if PostQuitMessage has been
28729 - Dropped Exit() method
28730 - Added PostQuitMessage() method
28731 - GetMessage now will return false if PostQuitState is set and no
28732 more messages are in the queue.
28733 - Expose handler will no longer generate WM_PAINT messages if we are
28734 in PostQuitState since it's very likely any windows have already
28735 been destroyed, and since Hwnd won't get updated until we have
28736 processed the DestroyNotify we'd be causing X errors.
28738 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
28740 * Control.cs(WndProc): Apparently I'm suffering from brain cloud.
28741 Thanks to Mike for pointing out the err of my ways.
28743 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
28745 * Control.cs(PreProcessMessage): Moved menu handling back, but
28746 after all other key handling, to match MS (who handles Menu in
28748 * Menu.cs (WndProc): Removed my brainfart
28750 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
28752 * Control.cs(PreProcessMessage): Removed special menu handling
28753 * Menu.cs (WndProc): Added handling of WM_SYSKEYUP for menu purposes.
28755 2005-12-07 Mike Kestner <mkestner@novell.com>
28757 * Control.cs : special case SYSKEYUP so that we can adjust keynav
28758 state according in tracker.
28759 * Menu.cs : promote tracker field to base class and provide a tracker
28760 lookup capability. Add/Remove shortcuts dynamically if the top menu
28761 has a tracker. Unparent items that are removed from the collection.
28762 * MenuAPI.cs : implement mnemonic, shortcut, and arrow-based keynav.
28763 * Theme*.cs: add always_show_hotkeys field to support configurability
28764 of mnemonic display. win32 doesn't show mnemonics until Alt is
28767 2005-12-07 Jackson Harper <jackson@ximian.com>
28769 * MdiChildContext.cs: Use Control.ResetCursor.
28770 * Control.cs: ResetCursor needs to set the property so that the
28771 correct XplatUI call gets made.
28773 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
28775 * Control.cs: More fixes to make our key events match MS. We
28776 were not setting the modifier state on KeyData, and we were
28777 not generating any events when Alt was pressed with a key
28778 since handling of WM_SYSxxx was missing for the OnKey methods.
28780 2005-12-07 Jackson Harper <jackson@ximian.com>
28782 * MdiChildContext.cs: reenable the sizing code.
28783 - When the mouse leaves a window reset its cursor.
28785 2005-12-07 Alexander Olk <alex.olk@googlemail.com>
28787 * ThemeClearlooks.cs: Reflect latest Hwnd changes
28789 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
28791 * Hwnd.cs: Now using the theme 3d bordersize to calculate
28792 widths of Fixed3D borders
28794 2005-12-07 Jackson Harper <jackson@ximian.com>
28796 * MdiClient.cs: Fix warnings. Earn Mike's love.
28798 2005-12-07 Alexander Olk <alex.olk@googlemail.com>
28800 * ThemeClearlooks.cs:
28801 - Adjusted mouse over button color
28802 - Added first parts of CheckBox drawing
28803 - Added correct color for selected text background
28804 - Fixed ComboBox drawing
28805 - Added CPDrawBorder3D and CPDrawBorder
28807 2005-12-06 Peter Dennis Bartok <pbartok@novell.com>
28809 * XplatUIX11.cs: Added call to XBell for AudibleAlert
28811 2005-12-06 Peter Dennis Bartok <pbartok@novell.com>
28813 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
28814 XplatUIOSX.cs: Added AudibleAlert() method to have a means to
28815 alert users via sound. We could add an enum arg with different
28816 types of alerts in the future
28818 2005-12-06 Peter Dennis Bartok <pbartok@novell.com>
28820 * Control.cs: Fix behaviour problems pointed out by Mike
28822 2005-12-05 Mike Kestner <mkestner@novell.com>
28824 * StatusBarPanel.cs: add Invalidate method and hook it into all the
28825 prop setters. Calls parent.Refresh for now, but could be maybe be
28826 optimized with an internal method on StatusBar at some point.
28829 2005-12-05 Peter Dennis Bartok <pbartok@novell.com>
28831 * RichTextBox.cs: Implemented get_SelectionColor
28833 2005-12-05 Alexander Olk <alex.olk@googlemail.com>
28835 * ThemeClearlooks.cs:
28836 - Removed dead code
28837 - Draw black button border only if button is Form.AcceptButton
28838 - Draw correct button color for pressed RadioButton if the mouse
28839 has entered the button
28840 - Updated ProgressBar drawing!
28841 - Updated CPDrawSizeGrip drawing
28842 - Updated StatusBarPanel drawing
28844 2005-12-05 Mike Kestner <mkestner@novell.com>
28846 * Control.cs (PreProcessMessage): add Keys.Alt based on LParam value.
28847 * X11Keyboard.cs (SendKeyboardInput): formal lParam for alt mod.
28849 2005-12-04 Alexander Olk <alex.olk@googlemail.com>
28851 * ThemeClearlooks.cs: Initial check-in, activate with
28852 export MONO_THEME=clearlooks
28853 * ThemeEngine.cs: Added ThemeClearlooks
28855 2005-12-03 Mike Kestner <mkestner@novell.com>
28857 * MenuAPI.cs: deactivate menus prior to calling item.PerformClick.
28860 2005-12-02 Jackson Harper <jackson@ximian.com>
28862 * Form.cs: If the child form has no menu the default main menu is
28863 used as the active menu.
28865 2005-12-02 Peter Dennis Bartok <pbartok@novell.com>
28867 * ListBox.cs: Check if any items exist before trying to resolve
28868 coordinates into items
28870 2005-12-02 Peter Dennis Bartok <pbartok@novell.com>
28872 * ThemeWin32Classic.cs: Hatchbrush on Win32 seems to always use white
28873 as the second color for the background hatch
28875 2005-12-02 Peter Dennis Bartok <pbartok@novell.com>
28877 * TextBoxBase.cs: Now uses Jackson's new and improved ImplicitScrollbar
28878 * RichTextBox.cs: FormatText position arguments are 1-based, now making
28879 sure that what we pass to FormatText is always 1-based. Fixes #76885
28881 2005-11-29 Miguel de Icaza <miguel@novell.com>
28883 * NumericUpDown.cs (EndInit): When we are done initializing,
28884 reflect any updates on the UI.
28886 2005-12-02 Jackson Harper <jackson@ximian.com>
28888 * ImplicitHScrollBar.cs:
28889 * ImplicitVScrollBar.cs: New scrollbars that don't take focus from
28890 their container controls.
28891 * TreeView.cs: Use the new implicit scrollbars.
28893 2005-12-02 Jackson Harper <jackson@ximian.com>
28895 * TreeView.cs: Make top_node internal so the TreeNodeCollections
28897 * TreeNodeCollection.cs: If we remove the topnode we need to
28898 update topnode to the next node in line.
28899 - When clearing nodes go through the same process as removing
28900 them, so they get depareneted and checked if they are top node.
28902 2005-12-01 Jackson Harper <jackson@ximian.com>
28904 * TreeView.cs: When imagelists are used the image area is
28905 selectable as well as the text.
28906 - If there are no selected nodes select the first one.
28907 * TreeNodeCollection.cs: Getting the TreeView is mildly expensive,
28908 so don't do it more then we need to.
28910 2005-12-01 Jackson Harper <jackson@ximian.com>
28912 * ThemeWin32Classic.cs: Reimplement the scroll arrow drawing so
28913 that arrows can be scaled.
28915 2005-12-01 Jackson Harper <jackson@ximian.com>
28917 * TreeNode.cs : Fixed bugs that caused FullPathTest + Traverse to
28918 fail. Patch by Dieter Bremes
28920 2005-11-30 Jackson Harper <jackson@ximian.com>
28922 * Form.cs: Property is 2.0 only
28923 * PrintDialog.cs: Signature fix.
28925 2005-11-30 Peter Dennis Bartok <pbartok@novell.com>
28928 - No longer artificially moves text 2 pixels down (now that we have
28929 borders this is no longer needed)
28930 - Added calcs for left, hanging and right indent
28932 2005-11-23 Mike Kestner <mkestner@novell.com>
28934 * Menu.cs: mark MenuChanged internal, since it's not exposed by MS.
28936 2005-11-30 Jackson Harper <jackson@ximian.com>
28938 * MdiChildContext.cs: Set the cloned menus forms, as these don't
28939 get cloned as part of CloneMenu ().
28940 * Menu.cs: Make sure the parent of the items get set correctly
28941 when they are added. And the owners are notified of the changes.
28942 * Form.cs: Create an ActiveMenu property, so that when MDI is used
28943 we can change the menu being displayed/handled by the form without
28944 changing the menu assosciated with the form.
28945 - Don't let Mdi children draw/handle menus.
28947 2005-11-30 Jackson Harper <jackson@ximian.com>
28949 * Menu.cs: Switch the MenuChanged method to OnMenuChanged and add
28950 a MenuChanged event. Just to make the API a little more
28953 * MenuItem.cs: Use the new OnMenuChanged
28954 * MdiChildContext.cs: Handle menu merging.
28955 * Form.cs: Implement MergedMenu.
28957 2005-11-30 Jackson Harper <jackson@ximian.com>
28959 * Menu.cs: We were misusing Add. Add goes behind the specified
28960 index according to the docs, and does not replace the specified
28961 index. So I added an Insert method.
28963 2005-11-30 Peter Dennis Bartok <pbartok@novell.com>
28965 * TextBoxBase.cs: Implemented Ctrl-Ins (Copy), Shift-Ins (Paste) and
28966 Shift-Del (Cut), apparently Emacs uses these old Win 2.x keys. This
28968 * RichTextBox.cs: Added calls to base for DnD events
28970 2005-11-28 Peter Dennis Bartok <pbartok@novell.com>
28973 - Fixed drag-selection related crash; style fixes
28974 - Implemented undo class
28975 o Implemented method to capture document state for specified
28976 range in document tree
28977 o Implemented method to restore captured document state
28978 o Implemented cursor tracking
28979 o Implemented basic undo stack
28980 - Added undo cursor tracking to methods altering cursor location
28981 - Added undo tracking to selection deletion (still missing
28982 other text-altering hookups)
28984 - Added SelectionLength property
28985 - Implemented CanPaste()
28986 - Implemented Paste()
28987 - Added missing protected methods
28988 - Fixed RTF->Document conversion; now uses font index 0 and color
28989 index 0 as the default font for the parsed text
28990 - Fixed RTF<->Document font size translation
28991 - Fixed RTF generation, now properly handles cross-tag boundaries
28992 for single line selection
28993 - No longer always appends blank line to generated RTF
28995 - Added missing attributes
28996 - Hooked up undo-related methods
28998 - Implemented Copy()
28999 - Implemented Paste()
29000 - Implemented Cut()
29001 - Fixed caret mis-behaviour on backspace across line-boundaries
29003 2005-11-29 Jackson Harper <jackson@ximian.com>
29005 * MdiClient.cs: Add a method for activating mdi children. Very
29006 basic right now. I imagine someday it might need more girth.
29007 * MenuItem.cs: Implement MDI lists. When mdilist is true the mdi
29008 children windows names are added to the menu item.
29009 * ThemeWin32Classic.cs: Draw the arrow if the item is an
29010 mdilist. This happens regardless of whether or not there are any
29011 mdi windows to see in the list, and according to my tests happens
29012 before the items are even added. Also happens if there isn't even
29013 an mdi client to get windows from.
29015 2005-11-29 Alexander Olk <alex.olk@googlemail.com>
29017 * ThemeWin32Classic.cs: Make DrawFlatStyleRadioButton protected
29018 * ThemeNice.cs: Fix drawing of flatstyle radiobuttons
29020 2005-11-29 Jordi Mas i Hernandez <jordimash@gmail.com>
29022 * DataGridTableStyle.cs:
29023 - Create always the styles for the missing columns even if they are
29024 provided by the user (not default table style)
29027 - Fixes SetDataBinding (always re-attach source)
29028 - Fixes SetNewDataSource (only clear styles if they are not for
29030 - Expands OnTableStylesCollectionChanged to handle style refresh
29031 and remove properly
29033 2005-11-29 Jackson Harper <jackson@ximian.com>
29035 * FileDialog.cs: Implement missing bits, remove some dead
29037 * FontDialog.cs: Implement missing Apply stuff, and ToString. Move
29038 creation of the panel so that the options set on the dialog are
29039 seen when the panel is created.
29040 * TreeView.cs: raise a click when items are clicked.
29042 2005-11-29 Jackson Harper <jackson@ximian.com>
29044 * MdiClient.cs: Pass some signature methods through to base.
29046 2005-11-28 Jackson Harper <jackson@ximian.com>
29048 * ListView.cs: Raise the click event when items are clicked.
29050 2005-11-28 Jackson Harper <jackson@ximian.com>
29052 * MdiClient.cs: Make this algorithm even more beautiful. And fix
29055 2005-11-27 Alexander Olk <alex.olk@googlemail.com>
29057 * ThemeNice.cs: - Removed 1 pixel bitmaps
29058 - Use SmoothingMode.AntiAlias where it makes sense
29059 (ScrollButton arrow for example)
29060 - Enhanced Button focus drawing
29061 - Fixed ComboBox drawing (no artefacts anymore, focus
29062 rectangle is back again, reduced size of ComboButton, etc.)
29063 - Fixed RadioButton focus drawing for Appearence.Button
29064 - Slight ScrollButton redesign
29065 - Some LinearGradientBrush size fixes
29066 - GroupBoxes have now rounded edges
29067 - Fixed StatusBar drawing
29069 2005-11-25 Alexander Olk <alex.olk@googlemail.com>
29071 * ThemeNice.cs: - Remove dead code
29072 - use correct background colors for menus, etc.
29073 - Fake pixel drawing with 1 pixel bitmaps
29075 2005-11-24 Jackson Harper <jackson@ximian.com>
29077 * MdiClient.cs: Size the scrollbars when resizing the window.
29078 - Resize the maximized windows when the client is resized
29079 * Form.cs: Make the child context available
29081 2005-11-23 Jackson Harper <jackson@ximian.com>
29083 * MdiChildContext.cs: Don't size windows if they are maximized.
29085 2005-11-23 Mike Kestner <mkestner@novell.com>
29087 * ContextMenu.cs: use MenuTracker.
29088 * Control.cs: remove menu handle usage.
29089 * Form.cs: remove menu handle usage.
29090 * Hwnd.cs: remove menu handle usage.
29091 * MainMenu.cs: Draw method moved here from MenuAPI.DrawMenuBar. Proxy
29092 motion and clicks to the new Tracker handlers.
29093 * Menu.cs: add sizing accessors, SelectedItem prop, kill CreateItems
29095 * MenuAPI.cs: refactored to combine popup and menubar event handling.
29096 Killed the MENU and MENUITEM data types and associated collections
29097 since we now keep the info on Menu and MenuItem. Expanded TRACKER into
29098 MenuTracker class that exposes the leftovers from the old MenuAPI
29099 static methods. Restructured Capture handling so that only one grab is
29100 done for the entire menu hierarchy instead of handing off grabs to
29101 submenus. Tracker now has an invisible control to Capture when active.
29102 * MenuItem.cs: add sizing accessors, kill Create
29104 * Theme.cs: remove menu handle and MENU(ITEM) usage.
29105 * ThemeWin32Classic.cs: use Menu/MenuItem sizing props instead of
29106 MENU(ITEM). remove menu handle usage, use Menu directly.
29107 * XplatUIDriver.cs: remove menu handle usage.
29108 * XplatUIOSX.cs: remove menu handle usage.
29109 * XplatUIWin32.cs: remove menu handle usage.
29110 * XplatUIX11.cs: remove menu handle usage.
29112 2005-11-22 Jackson Harper <jackson@ximian.com>
29114 * Hwnd.cs: Don't compute the menu size for
29115 DefaultClientRectangle.
29116 - Reenable menu sizes being computed for GetClienRectangle.
29117 * Form.cs: Remove comment of trechery
29119 2005-11-22 Jackson Harper <jackson@ximian.com>
29121 * Hwnd.cs: The adjustments for the menu bar are made when it is
29122 attached to the form.
29124 2005-11-19 Jackson Harper <jackson@ximian.com>
29126 * XplatUIX11.cs: Create an HGRN of the invalid area for WM_NCPAINT
29127 (just like on windows).
29129 2005-11-19 Jackson Harper <jackson@ximian.com>
29131 * MdiChildContext.cs: Handle all the buttons ourselves. We can't
29132 use real buttons anymore because they are in non client area. The
29133 one TODO here is that I need to somehow invalidate a section of
29134 the non client area.
29136 2005-11-18 Jackson Harper <jackson@ximian.com>
29138 * Control.cs: Put the enum check back in now that MDI doesnt have
29139 to use this to set border styles.
29140 * Form.cs: Only set mdi child windows borders if the handle has
29142 * MdiChildContext.cs: Don't set the InternalBorderStyle, just pass
29143 this directly on to the driver.
29144 - Get the move start position before adjusting for the titlebar
29145 height, this fixes the windows "skipping" when they are first
29148 2005-11-18 Jackson Harper <jackson@ximian.com>
29150 * XplatUIX11.cs: Just compute the mdi borders separately as they
29151 don't totally match up with normal form borders.
29153 2005-11-18 Jackson Harper <jackson@ximian.com>
29155 * Control.cs: Set WS_ styles for borders, so that the driver does
29156 not have to retrieve the control instance to figure out what kind
29157 of borders it should have.
29158 * Form.cs: Set the WS_EX_MDICHILD flag on mdi children, so the
29159 driver can know its an mdi child easily.
29160 * XplatUIX11.cs: Get the border styles and whether the window is
29161 MDI from the Styles and ExStyles params instead of having to get a
29162 control. This prevents a chicken and egg problem.
29164 2005-11-18 Jackson Harper <jackson@ximian.com>
29166 * MdiClient.cs: Fix typo so scrollbars show up correctly.
29168 2005-11-18 Jackson Harper <jackson@ximian.com>
29170 * MdiClient.cs: Calculate when to add and remove scrollbars
29172 * MdiChildContext.cs: Adjust the y position to take the titlebar
29174 - No height for FormBorderStyle.None
29176 2005-11-18 Jackson Harper <jackson@ximian.com>
29178 * Control.cs: Allow non enum values to be used for
29179 InternalBorderStyle. MDI does this to set a special border style.
29180 - New utility methods for converting points to/from client coords
29181 - Add the newly created control to the Controls collection before
29182 updating its style. This way UpdateStyle can walk the control
29183 heirarchy to find the control if needed.
29184 so I don't need to create a new Point object all the time.
29185 * Form.cs: Let MDI windows handle their border styles.
29186 - Set styles on MDI windows so the correct title style is derived.
29187 * MdiChildContext.cs: Move all the painting and window handling
29188 into the non client area.
29189 - Use correct sizing and put correct buttons on frames based on
29190 the FormBorderStyle.
29191 - Notify the mdi client about scrolling
29192 - Need to handle the buttons ourselves now, because they are all
29193 in non client areas and we can't add controls there.
29194 * MdiClient.cs: Halfway to scrolling, this implementation is
29195 somewhat broken though, we need to check to make sure other
29196 windows aren't causing scrolling before removing the bars. Also
29197 the bars need to be drawn on top, maybe I can switch implicit
29198 controls to be on top.
29199 * Hwnd.cs: caption_height and tool_caption_height are now
29200 properties of an hwnd, this way they can be set by the driver
29201 based on the type of window they are. In X11 the window manager
29202 handles the decorations so caption_height is zero unless its an
29204 - Add 3 pixel borders for MDI windows (0xFFFF).
29205 - Get rid of some code duplication, have DefaultClientRectanle
29206 just call GetClientRectangle.
29207 * XplatUIX11.cs: Pass caption_height and tool_caption_height to
29209 - Set border styles differently for mdi windows.
29210 * XplatUIOSX.cs: Pass caption_height and tool_caption_height to
29213 2005-11-15 Mike Kestner <mkestner@novell.com>
29215 * Menu.cs: when adding an item to the collection, if item is already
29216 parented, remove it from the parent.
29218 2005-11-13 Alexander Olk <alex.olk@googlemail.com>
29220 * X11DesktopColors.cs: Added KDE support
29222 2005-11-11 Peter Dennis Bartok <pbartok@novell.com>
29225 - Clipboard methods now can translate Rtf format
29226 - No longer removes clipboard contents whenever a new format is added
29227 to allow placing multiple formats on the clipboard
29228 * Clipboard.cs: Clipboard now supports getting a IDataObject and
29229 will place all formats contained in it onto the clipboard. Also
29230 now cleans the clipboard before placing a new object onto it
29232 - Implemented set_Rtf
29233 - Implemented set_SelectedRtf
29234 - Created InsertRTFFromStream() method to allow single code base
29235 for all properties and methods that insert RTF into document
29236 - Removed debug output
29238 - Fixed Delete(int) to fix up line numbers
29239 - Fixed ReplaceSelection to combine start and end line
29240 - Fixed serious DeleteChars bug that would leave the document tree
29242 - Improved DumpTree with several logic checks to detect broken
29244 - Removed debug lines
29245 - Fixed Caret.WordForward/WordBack moving code, now always also
29246 updates caret.tag (fixes crash when word-selecting across tag
29247 boundaries via keyboard)
29248 - Added Insert() method for inserting multiline text into documents
29249 - Fixed DeleteChars() calculation errors that would cause a broken
29250 tag chain with multiple tag lines
29251 - DeleteChars() no longer crashes on multi-tag lines if not all tags
29252 - Split() no longer moves caret if split is at caret location
29253 - ReplaceSelection() now updates the cursor and re-displays it
29254 - ReplaceSelection() now uses new Insert() method to avoid code
29256 - FormatText() can now handle formatting partial lines
29258 - Append now uses new TextControl.Insert() method (this avoids
29260 - Implemented Ctrl-X (Cut) (
29261 - Implemented Ctrl-C (Copy)
29262 - Implemented Ctrl-V (Paste) (Still some bugs related to screen
29263 regeneration when pasting text; roundtripping Copy&Paste within
29264 edit control still fails due to some calculation bugs in GenerateRTF)
29265 - The Delete key will now remove the current selection if it is visible
29266 * TextBox.cs: Removed debug lines
29267 * XplatUI.cs: Trigger initialization of DataFormats (which requires the
29268 driver to be initialized and can't therefore be done via a static ctor)
29270 2005-11-10 Peter Dennis Bartok <pbartok@novell.com>
29272 * TextControl.cs: Added backend code for finding char arrays and strings
29274 - Added mouse wheel scroll support
29275 - Added support for VScroll and HScroll events
29277 - Implemented all seven Find() variants
29278 - Implemented GetCharFromPosition()
29279 - Implemented GetCharIndexFromPosition()
29280 - Implemented GetLineFromIndex()
29281 - Implemented GetPositionFromCharIndex();
29282 - Implemented SaveFile for PlainText and UnicodeText
29283 - Fixed set_Font, now setting a new font applies that font to
29285 - Implemented generic Document to RTF converter
29286 - Implemented SaveFile for RichText format (still missing unicode
29287 conversion for non-ansi chars)
29288 - Implemented get_Rtf
29289 - Implemented get_SelectedRtf
29291 2005-11-09 Peter Dennis Bartok <pbartok@novell.com>
29293 * Control.cs (WndProc): Call HandleClick after having sent OnMouseUp
29294 to allow any captures to be released before triggering OnClick. This
29295 way a click handler may capture the mouse without interference.
29296 * XplatUIX11.cs: Always send mouse messages to grab window if one exists.
29297 This way we send them even though X may not allow a grab (if the window
29298 isn't visible, for example)
29300 2005-11-08 Pedro Martinez Julia <pedromj@gmail.com>
29302 * DataGridViewRowEventArgs.cs: DataGridView implementation
29303 * DataGridViewElement.cs: DataGridView implementation
29304 * DataGridViewComboBoxCell.cs: DataGridView implementation
29305 * DataGridViewDataErrorContexts.cs: DataGridView implementation
29306 * DataGridViewCellErrorTextNeededEventArgs.cs: DataGridView implementation
29307 * DataGridViewColumnHeadersHeightSizeMode.cs: DataGridView implementation
29308 * ImageLayout.cs: DataGridView implementation
29309 * DataGridViewComboBoxColumn.cs: DataGridView implementation
29310 * DataGridViewCellMouseEventHandler.cs: DataGridView implementation
29311 * DataGridViewSelectionMode.cs: DataGridView implementation
29312 * IDataGridViewEditingControl.cs: DataGridView implementation
29313 * DataGridViewSortCompareEventHandler.cs: DataGridView implementation
29314 * DataGridViewCellStyleContentChangedEventHandler.cs: DataGridView implementation
29315 * DataGridViewAutoSizeModeEventHandler.cs: DataGridView implementation
29316 * DataGridViewColumnStateChangedEventHandler.cs: DataGridView implementation
29317 * DataGridViewColumnSortMode.cs: DataGridView implementation
29318 * DataGridView.cs: DataGridView implementation
29319 * DataGridViewRowStateChangedEventHandler.cs: DataGridView implementation
29320 * DataGridViewRowPostPaintEventArgs.cs: DataGridView implementation
29321 * DataGridViewDataErrorEventArgs.cs: DataGridView implementation
29322 * Padding.cs: DataGridView implementation
29323 * DataGridViewCellParsingEventArgs.cs: DataGridView implementation
29324 * DataGridViewCellStateChangedEventHandler.cs: DataGridView implementation
29325 * DataGridViewRowEventHandler.cs: DataGridView implementation
29326 * DataGridViewCellPaintingEventHandler.cs: DataGridView implementation
29327 * DataGridViewCellFormattingEventHandler.cs: DataGridView implementation
29328 * DataGridViewButtonCell.cs: DataGridView implementation
29329 * DataGridViewCellStyleContentChangedEventArgs.cs: DataGridView implementation
29330 * DataGridViewEditMode.cs: DataGridView implementation
29331 * DataGridViewCellValueEventArgs.cs: DataGridView implementation
29332 * DataGridViewRowCancelEventArgs.cs: DataGridView implementation
29333 * DataGridViewRowHeadersWidthSizeMode.cs: DataGridView implementation
29334 * DataGridViewCheckBoxColumn.cs: DataGridView implementation
29335 * DataGridViewCellToolTipTextNeededEventHandler.cs: DataGridView implementation
29336 * DataGridViewAutoSizeColumnsMode.cs: DataGridView implementation
29337 * DataGridViewCellEventHandler.cs: DataGridView implementation
29338 * DataGridViewEditingControlShowingEventHandler.cs: DataGridView implementation
29339 * DataGridViewCellStyleConverter.cs: DataGridView implementation
29340 * DataGridViewSelectedRowCollection.cs: DataGridView implementation
29341 * DataGridViewBindingCompleteEventHandler.cs: DataGridView implementation
29342 * DataGridViewColumnEventArgs.cs: DataGridView implementation
29343 * DataGridViewRowHeightInfoPushedEventHandler.cs: DataGridView implementation
29344 * DataGridViewRowContextMenuStripNeededEventHandler.cs: DataGridView implementation
29345 * QuestionEventArgs.cs: DataGridView implementation
29346 * IDataGridViewEditingCell.cs: DataGridView implementation
29347 * DataGridViewTriState.cs: DataGridView implementation
29348 * DataGridViewColumnDesignTimeVisibleAttribute.cs: DataGridView implementation
29349 * DataGridViewCellStateChangedEventArgs.cs: DataGridView implementation
29350 * DataGridViewColumnCollection.cs: DataGridView implementation
29351 * DataGridViewCellValueEventHandler.cs: DataGridView implementation
29352 * DataGridViewRowDividerDoubleClickEventHandler.cs: DataGridView implementation
29353 * DataGridViewCellFormattingEventArgs.cs: DataGridView implementation
29354 * DataGridViewColumn.cs: DataGridView implementation
29355 * DataGridViewCellBorderStyle.cs: DataGridView implementation
29356 * DataGridViewCellContextMenuStripNeededEventHandler.cs: DataGridView implementation
29357 * DataGridViewCellValidatingEventArgs.cs: DataGridView implementation
29358 * DataGridViewRow.cs: DataGridView implementation
29359 * DataGridViewImageCellLayout.cs: DataGridView implementation
29360 * DataGridViewImageCell.cs: DataGridView implementation
29361 * DataGridViewTopLeftHeaderCell.cs: DataGridView implementation
29362 * DataGridViewCheckBoxCell.cs: DataGridView implementation
29363 * DataGridViewHeaderCell.cs: DataGridView implementation
29364 * DataGridViewCellErrorTextNeededEventHandler.cs: DataGridView implementation
29365 * DataGridViewRowHeightInfoPushedEventArgs.cs: DataGridView implementation
29366 * DataGridViewAutoSizeColumnsModeEventHandler.cs: DataGridView implementation
29367 * DataGridViewTextBoxColumn.cs: DataGridView implementation
29368 * QuestionEventHandler.cs: DataGridView implementation
29369 * DataGridViewCellStyleScopes.cs: DataGridView implementation
29370 * DataGridViewSortCompareEventArgs.cs: DataGridView implementation
29371 * DataGridViewCellContextMenuStripNeededEventArgs.cs: DataGridView implementation
29372 * DataGridViewCell.cs: DataGridView implementation
29373 * DataGridViewCellEventArgs.cs: DataGridView implementation
29374 * DataGridViewClipboardCopyMode.cs: DataGridView implementation
29375 * DataGridViewCellStyle.cs: DataGridView implementation
29376 * DataGridViewColumnHeaderCell.cs: DataGridView implementation
29377 * DataGridViewRowPrePaintEventHandler.cs: DataGridView implementation
29378 * DataGridViewRowCancelEventHandler.cs: DataGridView implementation
29379 * TextFormatFlags.cs: DataGridView implementation
29380 * DataGridViewCellToolTipTextNeededEventArgs.cs: DataGridView implementation
29381 * DataGridViewDataErrorEventHandler.cs: DataGridView implementation
29382 * DataGridViewAdvancedCellBorderStyle.cs: DataGridView implementation
29383 * DataGridViewCellPaintingEventArgs.cs: DataGridView implementation
29384 * DataGridViewButtonColumn.cs: DataGridView implementation
29385 * DataGridViewRowsRemovedEventArgs.cs: DataGridView implementation
29386 * HandledMouseEventArgs.cs: DataGridView implementation
29387 * DataGridViewCellParsingEventHandler.cs: DataGridView implementation
29388 * DataGridViewColumnDividerDoubleClickEventHandler.cs: DataGridView implementation
29389 * DataGridViewCellMouseEventArgs.cs: DataGridView implementation
29390 * DataGridViewAutoSizeRowsMode.cs: DataGridView implementation
29391 * DataGridViewRowCollection.cs: DataGridView implementation
29392 * DataGridViewAdvancedBorderStyle.cs: DataGridView implementation
29393 * DataGridViewCellCancelEventHandler.cs: DataGridView implementation
29394 * DataGridViewHitTestType.cs: DataGridView implementation
29395 * DataGridViewAutoSizeModeEventArgs.cs: DataGridView implementation
29396 * DataGridViewColumnStateChangedEventArgs.cs: DataGridView implementation
29397 * DataGridViewColumnEventHandler.cs: DataGridView implementation
29398 * DataGridViewRowDividerDoubleClickEventArgs.cs: DataGridView implementation
29399 * DataGridViewAutoSizeRowMode.cs: DataGridView implementation
29400 * DataGridViewRowHeightInfoNeededEventArgs.cs: DataGridView implementation
29401 * DataGridViewRowsDeletedEventArgs.cs: DataGridView implementation
29402 * DataGridViewTextBoxEditingControl.cs: DataGridView implementation
29403 * DataGridViewContentAlignment.cs: DataGridView implementation
29404 * DataGridViewRowPostPaintEventHandler.cs: DataGridView implementation
29405 * DataGridViewComboBoxEditingControl.cs: DataGridView implementation
29406 * DataGridViewCellValidatingEventHandler.cs: DataGridView implementation
29407 * DataGridViewSelectedColumnCollection.cs: DataGridView implementation
29408 * DataGridViewPaintParts.cs: DataGridView implementation
29409 * DataGridViewCellCollection.cs: DataGridView implementation
29410 * DataGridViewRowsAddedEventArgs.cs: DataGridView implementation
29411 * DataGridViewImageColumn.cs: DataGridView implementation
29412 * DataGridViewRowsRemovedEventHandler.cs: DataGridView implementation
29413 * DataGridViewElementStates.cs: DataGridView implementation
29414 * DataGridViewRowHeightInfoNeededEventHandler.cs: DataGridView implementation
29415 * DataGridViewColumnDividerDoubleClickEventArgs.cs: DataGridView implementation
29416 * DataGridViewRowPrePaintEventArgs.cs: DataGridView implementation
29417 * DataGridViewRowStateChangedEventArgs.cs: DataGridView implementation
29418 * DataGridViewEditingControlShowingEventArgs.cs: DataGridView implementation
29419 * DataGridViewCellCancelEventArgs.cs: DataGridView implementation
29420 * DataGridViewRowHeaderCell.cs: DataGridView implementation
29421 * DataGridViewBindingCompleteEventArgs.cs: DataGridView implementation
29422 * DataGridViewTextBoxCell.cs: DataGridView implementation
29423 * DataGridViewBand.cs: DataGridView implementation
29424 * DataGridViewAutoSizeColumnModeEventArgs.cs: DataGridView implementation
29425 * DataGridViewHeaderBorderStyle.cs: DataGridView implementation
29426 * DataGridViewRowsAddedEventHandler.cs: DataGridView implementation
29427 * DataGridViewAutoSizeColumnMode.cs: DataGridView implementation
29428 * DataGridViewAutoSizeColumnModeEventHandler.cs: DataGridView implementation
29429 * DataGridViewAutoSizeColumnsModeEventArgs.cs: DataGridView implementation
29430 * DataGridViewRowErrorTextNeededEventHandler.cs: DataGridView implementation
29431 * DataGridViewSelectedCellCollection.cs: DataGridView implementation
29432 * DataGridViewRowContextMenuStripNeededEventArgs.cs: DataGridView implementation
29433 * DataGridViewRowErrorTextNeededEventArgs.cs: DataGridView implementation
29434 * DataGridViewComboBoxDisplayStyle.cs: DataGridView implementation
29436 2005-11-08 Peter Dennis Bartok <pbartok@novell.com>
29438 * ThemeWin32Classic.cs:
29439 - Draw the outside focus rectangle around buttons
29440 - Use CPDrawFocusRectangle to draw focus rectangles until Cairo
29441 doesn't use end caps for every dash of a line anymore. This
29442 workaround ignores the forecolor.
29444 2005-11-08 KornĂ©l PĂ¡l <kornelpal@hotmail.com>
29446 * ImageList.cs: Don't use ArgbColor with LayoutKind.Explicit as it isn't
29449 2005-11-07 Jackson Harper <jackson@ximian.com>
29451 * X11Dnd.cs: Set the X/Y positions on the DragEventArgs correctly.
29453 2005-11-07 Jackson Harper <jackson@ximian.com>
29455 * ScrollableControl.cs: Calculate the maximum and change vars
29456 (more) correctly so that scrollbars appear as a sensible size.
29458 2005-11-04 Jackson Harper <jackson@ximian.com>
29460 * TreeNodeCollection.cs: Refresh when nodes are cleared from the
29462 * TreeView.cs: When the tree is sorted null out the top_node so
29463 that it is recalculated.
29464 - Use dotted lines instead of dashed lines to match MS better.
29466 2005-11-04 Jordi Mas i Hernandez <jordimash@gmail.com>
29469 - Implements key search for items. Useful when browsing files with FileDialog
29470 - When changing view mode or when clear the items reset scrollbar positions
29472 2005-11-04 Jackson Harper <jackson@ximian.com>
29474 * CurrencyManager.cs: Implement the MetaDataChanged event, the
29475 Reset method, and the CheckEmpty. CheckEmpty is just a total guess
29476 as to what the method may do as there is no real way of creating a
29477 derived CurrencyManager and calling the method.
29479 2005-11-03 Jackson Harper <jackson@ximian.com>
29481 * ThemeWin32Classic.cs: Implement ownerdrawing in the tab control
29482 * TabControl.cs: Add Ownerdrawing bits, add the UpdateTabSelection
29483 method which seems to just be used internally to refresh the tabs.
29485 2005-11-03 Jackson Harper <jackson@ximian.com>
29487 * TabControl.cs: Implement the remove method. Fix some broken
29490 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
29492 * DateTimePicker.cs:
29493 - Added missing DateTimePickerAccessibleObject class
29494 - Added missing events
29495 - Added OnFontChanged method
29496 * Form.cs: Added missing attributes
29497 * TreeView.cs: Added missing attributes
29499 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
29501 * GridItemCollection.cs: Fix signatures
29503 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
29505 * XplatUI.cs: Updated build rev/date
29506 * ComboBox.cs, DataGridTextBoxColumn.cs Control.cs,
29507 DataGridTableStyle.cs, DataGrid.cs, DateTimePicker.cs: Signature fixes
29508 * Application.cs: Trigger context-specific ExitThread events
29510 2005-11-03 Jackson Harper <jackson@ximian.com>
29514 * GridTableStylesCollection.cs:
29519 * MonthCalendar.cs: Signature fixes
29521 2005-11-03 Jackson Harper <jackson@ximian.com>
29523 * TreeNodeCollection.cs: Remove should not be virtual.
29524 * TreeView.cs: Implement the last of the missing methods.
29526 2005-11-03 Jackson Harper <jackson@ximian.com>
29528 * TreeNodeConverter.cs: Implement to get off my class-status back.
29530 2005-11-03 Jackson Harper <jackson@ximian.com>
29532 * TreeView.cs: Hookup the bits for drag and drop.
29533 * TreeNode.cs: Don't cache the tree_view or index anymore, now
29534 that nodes can be moved from tree to tree easily this just causes
29535 all sorts of problems.
29536 * TreeNodeCollection: Don't need to give treenodes an index and
29537 treeview anymore when they are added, these are computed on the
29538 fly. Also make sure to remove a node before its added.
29540 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
29543 - Added CaretSelection enum
29544 - Added comparison methods to Marker struct, makes selection code
29546 - Added SelectionStart and SelectionEnd as 'moveable' location for
29547 the CaretDirection enum and handler
29548 - Added selection_prev variable to track optimized invalidation for
29549 word and line selection
29550 - Added SelectionVisible property (returns true if there is a valid
29552 - Switched CaretHasFocus to only display the caret if there is no
29554 - Avoiding StringBuilder.ToString to retrieve a single char, instead
29555 using the direct character index; should be much faster
29556 - Added various conditional debug statements
29557 - Fixed invalidation calculation for selection ranges
29558 - Added ExpandSelection() method to support word and line selection
29559 - Switched SetSelectionToCaret to use new Marker compare overloads
29560 - Added central IsWordSeparator() method to determine word
29561 separators/whitespace and FindWordSeparator() to streamline common
29562 usage of IsWordSeparator()
29564 - Removed unneeded grabbed variable, it was just mirroring
29566 - No longer firing OnTextChanged event when Text setter is called,
29567 since the base will fire the event for us
29568 - Added handling of Ctrl-Up/Down selection
29569 - Added handling of Shift-Cursorkey selection
29570 - Added handling for Ctrl-Delete and Ctrl-Backspace to remove
29572 - Added handling of Shift and Ctrl-Shift-Home/End selection
29573 - Removed some debug output
29574 - Added handling for single/double/tripple-click to place caret/
29575 select word/select line respectively (Fixes bug #76031)
29576 - Added support for drag expansion of word/line selection
29577 * RichTextBox.cs: Handle GotFocus event to trigger redrawing of
29580 2005-11-02 Jackson Harper <jackson@ximian.com>
29582 * X11Dnd.cs: If the drag is going to and from a MWF window just
29583 copy the data instead of sending it out through the X Selection
29586 2005-11-02 Jackson Harper <jackson@ximian.com>
29589 * XplatUIX11.cs: When in a drag we don't want motion notify
29590 messages to get passed on to the other controls. This prevents
29591 mouse move messages from showing up in the drag source.
29593 2005-11-02 Jackson Harper <jackson@ximian.com>
29595 * X11Dnd.cs: Remove unneeded call to XAllowEvents. Make sure that
29596 the correct button is release to end a drag.
29597 * XplatUIX11.cs: Make the button state internal so the drag system
29598 can access it. Dragging needs to know about all button releases,
29599 not just left button.
29601 2005-11-02 Miguel de Icaza <miguel@novell.com>
29603 * Form.cs (Icon): If the icon is null, reset the icon to the
29606 * Cursor.cs: When writing the AND-mask bitmap do not include the
29607 number of colors, but hardcode those to two (black and white),
29608 fixes the loading of color cursors (Paint Dot Net).
29610 * Form.cs: To debug, allow MONO_MWF_SCALING=disable variable to
29611 turn off autoscaling.
29613 * Cursor.cs: Allow resource type to be 1 or 2 (from ImageMagic).
29615 2005-11-02 Jackson Harper <jackson@ximian.com>
29617 * X11Dnd.cs: Make sure to send a status message if the pointer
29618 enters a control that can not accept a drop, otherwise the cursor
29619 isn't updated correctly. Also tried to compress the lines of code
29622 2005-11-02 Jackson Harper <jackson@ximian.com>
29624 * X11Dnd.cs: Change cursors based on drag action. Also attempt to
29625 set actions correctly. This isn't perfect as XDND and win32 have
29626 some differences on how you allow actions. I'll clear this up by
29627 adding a path for drag from MWF to MWF windows.
29628 * XplatUIX11.cs: Hook into the dnd system.
29630 2005-11-02 Jordi Mas i Hernandez <jmas@softcatala.org>
29632 * ListView.cs: Fixes scroll bar visibility. Hide them if they were
29633 previously shown but they are no longer need it. Very obvious when
29634 browsing files with FileDialog.
29636 2005-11-01 Peter Dennis Bartok <pbartok@novell.com>
29638 * Control.cs: We always need to call OnPaintBackground. We pretty much
29639 ignore AllPaintingInWmPaint and always do the painting there, whether
29640 it's set or not, since we always ignore the WM_ERASEBKGND message
29641 (which we don't generate on X11). This fixes #76616.
29642 * Panel.cs: Removed unneeded background painting. This happens properly
29643 in Control.cs already
29645 2005-10-31 Mike Kestner <mkestner@novell.com>
29647 * Menu.cs: Add items to collection before setting their index.
29648 * MenuItem.cs : add range checking with ArgumentException like MS.
29651 2005-10-31 Jackson Harper <jackson@ximian.com>
29653 * ListBox.cs: Invalidate if the area is visible at all not just
29654 contained in the visible rect. Fixes unselection of semi visible
29657 2005-10-31 Jackson Harper <jackson@ximian.com>
29659 * Control.cs: Consistently name the dnd methods. Make them
29660 internal so we can override them to match some MS behavoir
29662 * Win32DnD.cs: Use the new consistent names.
29664 2005-10-31 Jackson Harper <jackson@ximian.com>
29666 * TreeView.cs: Don't draw the selected node when we lose focus.
29668 2005-10-31 Jackson Harper <jackson@ximian.com>
29670 * X11Dnd.cs: We still need to reset the state even though a full
29671 reset isn't being done, otherwise status's still get sent all over
29674 2005-10-31 Jackson Harper <jackson@ximian.com>
29676 * Control.cs: Make the dnd_aware flag internal so the dnd
29677 subsystem can check it. Catch exceptions thrown in dnd handlers to
29679 * Hwnd.cs: Add a flag for whether or not a window is dnd aware.
29680 * X11Dnd.cs: Handle null data in the converters. Set the XDND
29681 version when sending a XdndEnter. Use the control/hwnd dnd_aware
29682 flags to reduce the number of dnd enters/status's sent.
29684 2005-10-31 Jackson Harper <jackson@ximian.com>
29686 * X11Dnd.cs: Don't need the sizeof here. Patch by Jordi Mas.
29688 2005-10-31 Jordi Mas i Hernandez <jordi@ximian.com>
29690 * PictureBox.cs: Fixes 76512
29692 2005-10-28 Jackson Harper <jackson@ximian.com>
29694 * X11Dnd.cs: Early implementation to support winforms being a drag
29695 source for data on X11. Also restructured the converters so they
29696 can go both ways now.
29697 * XplatUIX11.cs: Tie ins to the the Dnd stuff.
29699 2005-10-27 Peter Dennis Bartok <pbartok@novell.com>
29701 * XplatUIX11.cs: Fixed FIXME - implemented ASCII encoding for XA_STRING
29704 2005-10-27 Jackson Harper <jackson@ximian.com>
29706 * TreeNode.cs: Implement serialization so my DnD examples will work.
29708 2005-10-24 KornĂ©l PĂ¡l <kornelpal@hotmail.com>
29710 * ButtonBase.cs, ListView.cs, NotifyIcon.cs, PictureBox.cs, ToolBar.cs,
29711 TreeView.cs: Don't dispose objects that are not owned.
29713 2005-10-24 Peter Dennis Bartok <pbartok@novell.com>
29715 * Cursor.cs: Defaulting the Current cursor to Cursors.Default. We
29716 should retrieve the current cursor and report that, but XplatUI
29717 doesn't (yet) have an interface for that (and I'm not sure I even
29719 * XplatUIWin32.cs: Fixed override behaviour. The override is temporary,
29720 until any message loop processing is done (and the WM_SETCURSOR
29721 replaces the cursor to the proper one)
29723 - Fixed override behaviour, we can't set the cursor globally on X11,
29724 just for our windows.
29725 - Invalidating the System.Drawing X11 display handle when we are
29727 * Control.cs: Fix to make csc happy
29729 2005-10-23 Peter Dennis Bartok <pbartok@novell.com>
29732 - get_Text: Add last line (without trailing newline) to returned
29733 value (Fixes 76212)
29734 - get_TextLength: Count last line in returned length
29735 - ToString: Call Text property instead of duplicating code
29737 2005-10-23 KornĂ©l PĂ¡l <kornelpal@hotmail.com>
29739 * ImageList.cs: Dispose ImageAttributes objects.
29741 2005-10-22 KornĂ©l PĂ¡l <kornelpal@hotmail.com>
29743 * ImageList.cs: Use attribute constructors with less arguments where
29746 2005-10-22 KornĂ©l PĂ¡l <kornelpal@hotmail.com>
29748 * ImageList.cs: Added lastKeyIndex field and use in IndexOfKey.
29749 Use typeof instead of strings when assembly is referenced. Added
29750 some more comments.
29752 2005-10-21 Jackson Harper <jackson@ximian.com>
29754 * ListView.cs: Raise a double click event. Also tried to somewhat
29755 fix when the selectedindexchanged event is raised. Its still
29758 2005-10-21 Jackson Harper <jackson@ximian.com>
29760 * TreeView.cs: New method to invalidate the plus minus area of a
29761 node without invalidating the whole node (maybe this can be used
29762 in some more places).
29763 * TreeNodeCollection.cs: When adding to an empty node we need to
29764 invalidate its plus minus area so the little block shows up.
29766 2005-10-21 Jackson Harper <jackson@ximian.com>
29768 * TreeView.cs: Make sure that when we invalidate a node the bounds
29769 are big enough to cover the selected box and the focus
29770 rectangle. Use a different colour for the lines connecting nodes
29771 so they show up with all themes.
29773 2005-10-21 Peter Dennis Bartok <pbartok@novell.com>
29775 * NativeWindow.cs: Don't call anything that could call into the driver,
29776 we might be on a different thread.
29778 2005-10-21 Peter Dennis Bartok <pbartok@novell.com>
29780 * Control.cs(Dispose): Since Dispose might run on a different thread,
29781 make sure that we call methods that could call into the driver via
29782 invoke, to avoid thread issues
29784 2005-10-21 Peter Dennis Bartok <pbartok@novell.com>
29786 * XplatUI.cs: Removed finalizer
29787 * XplatUIX11.cs: Removed Destructor, was causing crashes due to X11
29788 not allowing to be called on the finalizer thread.
29790 2005-10-21 KornĂ©l PĂ¡l <kornelpal@hotmail.com>
29793 - Reverted r51889 and r51891.
29794 - Added ImageListItem class that stores unmodified image items and image
29795 properties required to create list images until handle is created.
29796 - Added AddItem and moved image creation logic to AddItemInternal.
29797 - Added CreateHandle method that creates images based on unmodified items.
29798 - Added DestroyHandle that changes state to store unmodified items.
29799 - Add and AddStrip methods no more create handle.
29800 - ReduceColorDepth has no return value.
29801 - Dispose destroys handle.
29802 - Modified other methods to reflect the above changes.
29803 - Implemented key support.
29804 - Added profile 2.0 members and attributes.
29805 - Added private Reset and ShouldSerialize methods that provide the same
29806 behavior as MS.NET but the Visual Studio .NET designer seems to ignore
29807 them as they are private.
29808 - Added some more comments about implementation details.
29810 2005-10-21 Jordi Mas i Hernandez <jordi@ximian.com>
29812 * DataGrid.cs: Adds support for vertical scrolling using the mousewheel
29814 2005-10-21 Jordi Mas i Hernandez <jordi@ximian.com>
29816 * Binding.cs: No PushData/PullData if there is no binding (fixes crash)
29818 2005-10-21 Jordi Mas i Hernandez <jordi@ximian.com>
29820 * DataGridDrawingLogic.cs: Fixes column hit calcultation
29821 * DataGridColumnStyle.cs: Remove debug message
29823 2005-10-20 Jackson Harper <jackson@ximian.com>
29825 * TreeView.cs: We can always get input keys regardless of whether
29826 or not editing is enabled. They are used for navigation.
29828 2005-10-20 Jackson Harper <jackson@ximian.com>
29830 * TreeNode.cs: Use the viewport rect for determining if a node
29831 needs to be moved for visibility. Don't use Begin/End edit. This
29832 calls a full refresh when its done.
29833 * TreeView.cs: New SetBottom works correctly. Make the viewport
29834 rect property internal so the treenodes can see it. When clicking
29835 on a node we need to ensure that its visible because it might just
29836 be partly visible when clicked.
29838 2005-10-20 Jackson Harper <jackson@ximian.com>
29840 * TreeNodeCollection.cs: Remove debug code.
29842 2005-10-20 Jordi Mas i Hernandez <jordi@ximian.com>
29844 * Datagrid.cs: Implements column sorting in Datagrid
29845 * DataGridColumnStyle.cs: Implements column sorting in Datagrid
29847 2005-10-20 Jackson Harper <jackson@ximian.com>
29849 * TreeNodeCollection.cs: Remove items properly. Update the correct
29850 area after removing them.
29852 2005-10-20 Jordi Mas i Hernandez <jordi@ximian.com>
29854 * Datagrid.cs: Should not call base.OnPaintBackground
29856 2005-10-20 Peter Dennis Bartok <pbartok@novell.com>
29858 * XplatUIX11.cs (GetMessage):
29859 - Now properly calculates NC_xBUTTONDOWN coordinates off the whole
29860 window instead of client window
29861 - Now properly calculates NC_xBUTTONUP message coordinates
29862 - ScreenToMenu now properly calculates it's coordinates of whole
29863 window, since menus are in the whole window, not in the client
29865 - Added WholeToScreen coordinate translation method
29867 2005-10-20 Peter Dennis Bartok <pbartok@novell.com>
29869 * XplatUIX11.cs (GetMessage): Don't return in situations where we don't
29870 want to return a message, loop back to the beginning of the function
29871 and grab the next real message to process instead.
29873 2005-10-20 Peter Dennis Bartok <pbartok@novell.com>
29875 * Splitter.cs: Properly set limits if no filler control is used
29877 2005-10-19 Jackson Harper <jackson@ximian.com>
29879 * ColorDialog.cs: Don't show the help button if it is not enabled
29880 instead of disabling it (this is what MS does). Don't create the
29881 panel until the dialog is run, otherwise the vars (such as
29882 ShowHelp) are not set yet.
29884 2005-10-19 Jackson Harper <jackson@ximian.com>
29886 * TreeView.cs: Implement Begin/EndEdit more correctly so refreshes
29887 are reduced when adding nodes.
29889 * TreeNodeCollection.cs: Use UpdateNode instead of refreshing the
29892 2005-10-19 Jackson Harper <jackson@ximian.com>
29894 * FolderBrowserDialog.cs: End editing our treeview so the window
29895 actually gets refreshed.
29897 2005-10-18 Peter Dennis Bartok <pbartok@novell.com>
29899 * Control.cs: Fixed logic flip on when to call OnPaintBackground.
29900 Obsoleted handling of WM_ERASEBKGND, now always draws our background
29903 2005-10-18 Jordi Mas i Hernandez <jordi@ximian.com>
29905 * MenuAPI.cs: Returns after Hidding window
29906 * XplatUIX11.cs: Added TODO found while debugging menu issues
29908 2005-10-18 Peter Dennis Bartok <pbartok@novell.com>
29910 * XplatUIX11.cs: Do not re-map the whole window when it's size
29911 becomes non-zero unless it's supposed to be actually visible
29913 2005-10-18 Jackson Harper <jackson@ximian.com>
29915 * TreeView.cs: We don't need to keep a count anymore.
29916 * TreeNodeCollection.cs: Fix off by one in RemoveAt, Insert can
29917 use the Grow method.
29919 2005-10-18 Jackson Harper <jackson@ximian.com>
29921 * TreeNodeCollection.cs: Insert is not supported on arrays, so
29922 implement it manually here.
29924 2005-10-18 Jackson Harper <jackson@ximian.com>
29926 * ImageList.cs: Dont kill the list when the colour depth is
29927 changed, just change the colour depth of all the images.
29928 - Same goes for setting the image size. Just resize them all
29929 instead of killing the list softly.
29931 2005-10-18 Jackson Harper <jackson@ximian.com>
29933 * Control.cs: Don't invalidate empty rectangles.
29935 2005-10-18 Jordi Mas i Hernandez <jordi@ximian.com>
29938 - Adds checked item to the Checked/Item lists (where empty before)
29939 - Do not add items to the Selected lists if they are already present
29941 - Fixes IsFixedSize, SyncRoot, IsReadOnly in many collections
29942 - When deleting items make sure that we delete them for the Selected
29943 and Checked list also.
29945 2005-10-18 Jordi Mas i Hernandez <jordi@ximian.com>
29947 * Label.cs: Dispose objects no longer used
29948 * ThemeWin32Classic.cs: Dispose objects no longer used
29950 2005-10-18 Jackson Harper <jackson@ximian.com>
29952 * TabControl.cs: Don't refresh the whole control when the tabs are
29953 scrolled, we just need to refresh the tab area.
29955 2005-10-17 Jackson Harper <jackson@ximian.com>
29957 * XplatUIX11.cs: Compress code a little bit. Only calculate the
29958 after handle when we need it.
29960 2005-10-17 Peter Dennis Bartok <pbartok@novell.com>
29962 * Control.cs: When the parent size changes, recalculate anchor
29963 positions. Partial fix for #76462
29965 2005-10-17 Peter Dennis Bartok <pbartok@novell.com>
29967 * ThemeWin32Classic.cs: Make sure the picturebox has it's background
29968 drawn. Fixes #76462
29970 2005-10-17 Jackson Harper <jackson@ximian.com>
29972 * MonthCalendar.cs: Don't create the numeric up down until our
29973 handle is created. Otherwise our handle is created in the
29974 constructor and we don't know if we are a WS_CHILD or WS_POPUP
29977 2005-10-17 Jackson Harper <jackson@ximian.com>
29979 * TreeView.cs: Merge in patch by Rafael Teixeira to align strings
29982 2005-10-17 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
29983 * TreeNode.cs : small logical fix (was using local var instead of field)
29985 2005-10-17 Jordi Mas i Hernandez <jordi@ximian.com>
29987 * ThemeWin32Classic.cs: Fixes vert/horz scrollbar colours
29989 2005-10-17 Jordi Mas i Hernandez <jordi@ximian.com>
29991 * ThemeWin32Classic.cs: Fixes focus drawing in for non-flat/popup buttons
29993 2005-10-16 Peter Dennis Bartok <pbartok@novell.com>
29996 - Re-implemented anchoring code. My first version was really broken.
29997 This fixes bug #76033. Unlike the previous implementation we will
29998 no longer have round errors since all numbers are calculated from
29999 scratch every time. Removed various anchor-related obsolete vars.
30000 - InitLayout no longer causes layout event firing and layout to be
30003 2005-10-16 Jackson Harper <jackson@ximian.com>
30005 * Hwnd.cs: Compute invalid area correctly (fixes my last commit
30008 2005-10-16 Jackson Harper <jackson@ximian.com>
30010 * TabControl.cs: Remove debug code.
30012 2005-10-16 Jackson Harper <jackson@ximian.com>
30014 * XEventQueue.cs: Increase the default queue size (very simple
30015 apps needed to grow the queue).
30016 * Hwnd.cs: No finalizer so we don't need to suppress
30017 finalization. Compute the invalid area manually so a new rectangle
30018 does not newto be created.
30019 * ScrollableControl.cs: Don't set any params (otherwise visibility
30020 isn't set correctly).
30021 * MdiChildContext.cs: New constructor takes the mdi parent so it
30022 doesn't have to be computed and avoids a crash on windows. Draw
30023 the window icon properly, and allow the text to be seen.
30024 * Form.cs: Use new MdiChildContext constructor. Make sure the
30025 child context isn't null in wndproc.
30026 * TabControl.cs: Don't set focus, this is muddling keyboard
30027 behavoir. Expand the tab rows when a window size increase will
30028 allow extra tabs to be seen. Don't allow tabs smaller than the
30029 width of a window to be scrolled out of view.
30031 * TreeView.cs: Use measure string to calculate a nodes width, the
30032 width is cached and only updated when the text or the font is
30033 changed. Don't check for expand/collapse clicks on the first level
30034 nodes if root lines are disabled.
30036 2005-10-16 Ritvik Mayank <mritvik@novell.com>
30038 * TextBoxBase.cs: Fixes #76352 (passing tab key in a multiline textbox)
30040 2005-10-16 Jordi Mas i Hernandez <jordi@ximian.com>
30042 * DataGridBoolColumn.cs: fixes warning
30044 2005-10-16 Jordi Mas i Hernandez <jordi@ximian.com>
30046 * ControlPaint.cs: Fixes methods Dark, DarkDark, Light, LightLight
30047 to match more to match more precisely the MS Net behavior
30049 2005-10-13 Peter Dennis Bartok <pbartok@novell.com>
30051 * Hwnd.cs: Added field to track if window is mapped
30053 - Unmap windows if they become 0-size, re-map when
30054 they are >0 again; fixes #76035
30055 - Re-set our error handler after initializing X11Desktop
30056 to override any error handlers Gtk or whatever was called
30059 2005-10-13 Peter Dennis Bartok <pbartok@novell.com>
30061 * CheckedListBox.cs: Removed unused vars
30062 * ListView.cs: Fixed signatures
30063 * RichTextBox.cs: Removed unused vars
30064 * TextBoxBase.cs: Removed unused vars
30065 * XplatUIWin32.cs: Removed unused vars
30066 * XplatUIX11.cs: Removed unused vars
30067 * XplatUI.cs: Updated version and date to latest published
30069 2005-10-13 Peter Dennis Bartok <pbartok@novell.com>
30071 * Cursor.cs: Added private .ctor to work around a bug in
30072 resourceset (Thanks to Geoff Norton for the help on this)
30073 * SplitterEventArgs.cs: Made fields accessible so we don't
30074 waste boatloads of objects and can reuse the same one
30076 * XplatUIWin32.cs(DrawReversibleLine): Now also considers
30077 any captions and borders when generating screen coordinates
30078 * Splitter.cs: Reimplemented control, now fully complete, uses
30079 rubberband drawing, supports and obeys all properties, has
30082 2005-10-13 Miguel de Icaza <miguel@novell.com>
30084 * Form.cs (Form): Setup default values for autoscale and
30085 autoscale_base_size; Make these instance variables, not static
30088 (OnLoad): on the first load, adjust the size of the form.
30090 2005-10-13 Peter Dennis Bartok <pbartok@novell.com>
30092 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added
30093 width argument to DrawReversibleRectangle()
30094 * XplatUIWin32.cs, XplatUIX11.cs:
30095 - Implemented width for DrawReversibleRectangle()
30096 - Added logic to DrawReversibleRectangle that recognizes a zero
30097 width or height and only draws a line in that situation
30099 2005-10-12 Peter Dennis Bartok <pbartok@novell.com>
30101 * XplatUI.cs, XplatUIDriver.cs: Added GetAutoScaleSize()
30102 * XplatUIOSX.cs: Stubbed GetAutoScaleSize() method
30103 * XplatUIWin32.cs, XplatUIX11.cs: Implemented GetAutoScaleSize()
30104 method (it uses our FosterParent window to get a graphics context)
30106 2005-10-12 Peter Dennis Bartok <pbartok@novell.com>
30108 * XplatUI.cs, XplatUIDriver.cs: Removed EraseWindowBackground
30109 and SetWindowBackground methods
30111 - Setting proper ControlStyles
30112 - We no longer call XplatUI.SetWindowBackground and XplatUI.
30113 EraseWindowBackground, instead we draw the window background
30114 ourselves in PaintControlBackground. This behaviour is
30115 required to match MS, where, when OnPaintBackground is not
30116 called, the background is not drawn.
30117 - Removed unneeded Refresh() in set_Text
30118 * Hwnd.cs: Dropped the ErasePending support. No longer needed
30120 - Created DeriveStyles method to translate from CreateParams to
30121 FormBorderStyle and TitleStyle, also handles BorderStyle (which
30122 matches FormBorderStyle enum values)
30123 - Consolidated SetHwndStyles and CalculateWindowRect border/title
30124 style calculations into single DeriveStyles method
30125 - Fixed CreateWindow to (finally) use Gravity. This prevents X11
30126 from redrawing the whole window on any resize or expose.
30127 - Fixed CreateWindow usage of SetWindowValuemask. Before not
30128 all styles were applied to our whole/client window appropriately
30129 - Removed EraseWindowBackground() and SetWindowBackground() methods
30130 - Removed handling of WM_ERASEBKGND message from DefWndProc, we
30131 no longer clear/redraw the background through X
30132 - Removed handling of erase_pending bit, we have no use for it (or
30135 - Removed generation and handling of WM_ERASEBKGND message
30136 - Removed EraseWindowBackground() and SetWindowBackground() methods
30137 - Removed handling of hwnd.ErasePending flag
30139 - Removed EraseWindowBackground() and SetWindowBackground() methods
30140 - We no longer call EraseWindowBackground on PaintEventStart, we
30141 ignore the fErase flag, erasing is handled in Control in the
30143 * Button.cs, GroupBox.cs, Label.cs, CheckBox.cs, ProgressBar.cs,
30144 LinkLabel.cs, ListControl.cs, TabPage.cs, UpDownBase.cs,
30145 TextBoxBase.cs, TextBox.cs, ListView.cs, ButtonBase.cs,
30146 CheckedListBox.cs, MdiClient.cs, Panel.cs, DataGrid.cs,
30147 DataGridTextBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs,
30148 TabControl.cs, ScrollableControl.cs, ToolBar.cs, PictureBox.cs,
30149 DateTimePicker.cs, StatusBar.cs, MonthCalendar.cs: Setting proper ControlStyles
30151 2005-10-12 Jonathan Chambers <jonathan.chambers@ansys.com>
30153 * PropertyGrids.cs: Get sub properties
30154 * PropertyGridView.cs: Fix drawing code
30156 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
30158 * ListBox.cs: Fixes 76383
30160 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
30162 * DataGridTextBoxColumn.cs: Sets location and size before attachment
30163 * ThemeWin32Classic.cs: Fixes border drawing and calculations
30164 * DataGridDrawingLogic.cs: Fixes border drawing and calculations
30167 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
30169 * ComboBox.cs: Fixes border drawing
30171 2005-10-10 Miguel de Icaza <miguel@novell.com>
30173 * MimeIcon.cs: Ignore errors if the file can not be read.
30175 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
30177 * Theme.cs, ThemeWin32Classic.cs, ListBox.cs:
30178 - Fixed border calculations
30179 - Fixed horizontal scrolling in single column listboxes
30180 - Fixed drawing issues
30182 2005-10-10 Peter Dennis Bartok <pbartok@novell.com>
30184 * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched from BorderStyle to
30185 FormBorderStyle enum
30186 * XplatUIX11.cs: Switched BorderStyle to FormBorderStyle, added
30187 code to determine FormBorderStyles from CreateParams
30189 - Fixed bug where we'd set the wrong window styles if we were
30190 not creating an MDI window
30191 - Added call to XplatUI.SetBorderStyle when form borders are set
30192 * Control.cs: Casting BorderStyles to accommodate changed XplatUI APIs
30194 - Removed obsolete edge style
30195 - Switched from BorderStyle to FormBorderStyle
30197 2005-10-10 Jackson Harper <jackson@ximian.com>
30199 * Form.cs: Use the property to get the window handle instead of
30200 accessing it directly. Prevents a null reference exception.
30202 2005-10-10 Jackson Harper <jackson@ximian.com>
30204 * TreeView.cs: Don't adjust the rect given to DrawString now that
30205 our libgdiplus draws correctly.
30207 2005-10-08 Jackson Harper <jackson@ximian.com>
30209 * TreeView.cs: Don't try to find the clicked on node if there are
30210 no nodes in the tree.
30212 2005-10-08 Alexander Olk <alex.olk@googlemail.com>
30218 2005-10-08 Alexander Olk <alex.olk@googlemail.com>
30220 * ImageListStreamer.cs, TreeView.cs, UpDownBase.cs, RichTextBox.cs,
30221 ColorDialog.cs, TextControl.cs, Panel.cs, MdiChildContext.cs,
30223 Use ResPool for brushes and dispose System.Drawing objects that
30224 are not used anymore.
30226 2005-10-07 Jackson Harper <jackson@ximian.com>
30228 * MdiChildContext.cs: Use the new borders instead of drawing them
30231 2005-10-06 Jordi Mas i Hernandez <jordi@ximian.com>
30233 * Calling UpdateBounds after changing the window's BorderStyle
30234 since the style can change the ClientSize
30236 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
30238 * Control.cs: Made PaintControlBackground virtual
30239 * Panel.cs: Overriding PaintControlBackground instead of using paint
30240 event; paint event method was interfering with 'real' users of the
30243 2005-10-06 Jordi Mas i Hernandez <jordi@ximian.com>
30245 * ThemeWin32Classic.cs: remove border drawing since it is handled
30246 by the base control class now and was causing double border drawing.
30248 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
30250 * Panel.cs: Redraw our background on paint. Not a pretty solution,
30251 but it does seem to match MS behaviour. This fixes bug #75324
30253 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
30255 * XplatUIX11.cs: A better DrawReversibleRectangle version, however
30256 somewhat hackish looking
30258 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
30261 - We now accept Enter even if AcceptEnter is false, if the containing
30262 form does not have an AcceptButton configured (fixes bug #76355)
30263 - Calculations are now fixed to no longer use Width/Height, but
30264 ClientSize.Width/Height, since we now support borders (this was
30265 a result of fixing borders and therefore bug #76166)
30266 - We no longer show the horizontal scrollbar if TextBox.WordWrap is
30267 true (fixes bug #76354)
30269 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
30272 - Defaulting BorderStyle and setting it in XplatUI when our window
30274 - Added enum check to InternalBorderStyle setter
30276 - Added drawing of window borders
30277 - Now properly calculates WM decorations offset for toplevel
30278 windows (fixes bug #74763)
30280 - Implemented BorderStyles for windows (we're letting win32 draw
30282 - Fixed the signature for SetWindowLong
30283 * PictureBox.cs, DataGrid.cs, TextBoxBase.cs, ToolBar.cs, Panel.cs,
30284 ListBox.cs, Label.cs: Now uses Control.InternalBorderStyle for
30286 * UpDownBase.cs: Remove drawing of borders, this is handled by
30287 the driver, outside the client area
30288 * ListView.cs: Removed bogus border calculations. The control should
30289 be oblivious to borders, since those are not part of the client
30291 * X11DesktopColors.cs: Commented out (currently) unneeded variables
30292 * ThemeWin32Classic.cs: Removed border calculations from ListView
30295 2005-10-06 Jackson Harper <jackson@ximian.com>
30297 * MdiChildContext.cs: Clear out the old virtual position remove
30298 all the unneeded calls to CreateGraphics.
30300 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
30302 * TextControl.cs: Use proper color for highlighted text; fixes #76350
30304 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
30307 - Added loading and setting of our new default icon
30308 - Only set icon if window is already created
30310 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
30313 - Do not explicitly set the foreground and background colors, to
30314 allow inheriting from parents (fixes #76302)
30315 - Use Control's InternalBorderStyle property to deal with borders
30317 2005-10-06 Jackson Harper <jackson@ximian.com>
30319 * MdiChildContext.cs: Use the new xplatui function to draw a
30322 2005-10-06 Jackson Harper <jackson@ximian.com>
30324 * Form.cs: Add the parent before creating the child context cause
30325 we need the parent when setting up the child.
30327 2005-10-06 Jackson Harper <jackson@ximian.com>
30329 * FolderBrowserDialog.cs: redo the tree population code so a
30330 second thread isn't used. Should be a lot faster and more stable
30333 2005-10-05 Jackson Harper <jackson@ximian.com>
30335 * TreeView.cs: There are no expand/collapse boxes if the node has
30338 2005-10-05 Jackson Harper <jackson@ximian.com>
30340 * X11DesktopColors.cs: Get menu colours for the gtk theme.
30342 2005-10-05 Alexander Olk <alex.olk@googlemail.com>
30344 * FileDialog.cs: Fix InitialDirectory
30346 2005-10-05 Jordi Mas i Hernandez <jordi@ximian.com>
30349 - Fixes changing between styles
30350 - Fixes simple mode
30351 - Fixes last item crashing when navigating with keyboard
30353 2005-10-05 Jordi Mas i Hernandez <jordi@ximian.com>
30355 * LinkLabel.cs: Related to 76045. Stops the LinkLabel been drawn as a Label
30357 2005-10-05 Jackson Harper <jackson@ximian.com>
30359 * TreeView.cs: If updating the root node do a full refresh.
30360 * TreeNode.cs: The root node should be expanded by default. Also
30361 added a utility prop to tell if we are the root node.
30362 * TreeNodeCollection.cs: Only refresh if the node we are being
30363 added to is expanded. Also added a comment on a potential
30366 2005-10-04 Peter Dennis Bartok <pbartok@novell.com>
30368 * Cursor.cs, Hwnd.cs: Added call to GC.SuppressFinalize()
30369 in dispose method. Fixes #76330
30371 2005-10-04 Jordi Mas i Hernandez <jordi@ximian.com>
30373 * ListView.cs, ThemeWin32Classic.cs, ListViewItem.cs:
30375 - Implements vertical and horizontal scrolling using XplatUI
30376 - Fixes keyboard navagation
30377 - Fixes EnsureVisible
30379 - Handles and draws focus properly
30382 2005-10-04 KornĂ©l PĂ¡l <kornelpal@hotmail.com>
30384 * ImageList.cs: Use upper case initials for internal fields. ImageStream:
30385 Create handle. NET_2_0: Destroy handle when value is null.
30387 2005-10-03 Jackson Harper <jackson@ximian.com>
30389 * ScrollBar.cs: My last scrollbar patch was broken. This is a
30390 revert and a new patch to prevent the thumb from refreshing so
30393 2005-10-02 Jackson Harper <jackson@ximian.com>
30395 * ScrollBar.cs: Don't update position if it hasn't actually
30396 changed. This occurs when you hold down the increment/decrement
30397 buttons and the thumb gets to the max/min.
30399 2005-10-01 Jackson Harper <jackson@ximian.com>
30402 * MdiChildContext.cs:
30403 * MdiClient.cs: Implement ActiveMdiChild in Form.
30405 2005-10-01 Jordi Mas i Hernandez <jordi@ximian.com>
30407 * ComboBox.cs: Include ComboBoxEdit flag for the edit item
30409 2005-10-01 Peter Dennis Bartok <pbartok@novell.com>
30411 * X11DesktopColors.cs: Bow out gracefully if the Gtk libs cannot
30414 2005-09-30 Jackson Harper <jackson@ximian.com>
30416 * ListBox.cs: Don't do a full refresh unless some data has
30419 2005-09-30 Jackson Harper <jackson@ximian.com>
30421 * TreeView.cs: Make sure that the checkboxes size is factored in
30422 even when not visible.
30424 2005-09-30 Peter Dennis Bartok <pbartok@novell.com>
30426 * FileDialog.cs: Fix Jordi's build break
30428 2005-09-30 Jordi Mas i Hernandez <jordi@ximian.com>
30431 - Use standard the Windows colours for the combobox as espected
30432 - Dispose objects that use resouces when no longer need them
30434 2005-09-30 Peter Dennis Bartok <pbartok@novell.com>
30436 * X11DesktopColors.cs: Initial incomplete implementation
30437 * XplatUIX11.cs: Added call to initialize X11DesktopColors
30439 2005-09-30 Peter Dennis Bartok <pbartok@novell.com>
30442 - Switched Theme color names to match the names defined in
30443 System.Drawing.KnownColors. Life's hard enough, no need to make
30445 - Added setters to all theme color properties so themes can set
30446 their color schemes. The setters also propagate the color changes
30447 to System.Drawing.KnownColors via reflection
30448 * ControlPaint.cs, Label.cs, TextControl.cs, ToolTip.cs, ThemeNice.cs,
30449 ComboBox.cs, MdiChildContext.cs, TextBoxBase.cs, DateTimePicker.cs
30450 DataGridColumnStyle.cs, MonthCalendar.cs, TreeView.cs: Updated to
30451 use the new, more logical theme color names
30452 * XplatUIWin32.cs: Updated the GetSysColorIndex enum to include new
30454 * ThemeWin32Classic.cs:
30455 - Removed code to set the old classic Windows colors. Instead it
30456 now relies on the colors returned by System.Drawing.KnownColors
30457 which will be either modern static colors (Unix) or colors
30458 read from the user's configuration (Win32)
30459 - Updated to use the new, more logical theme color names
30460 - Switched DataGrid drawing code to use only Theme colors instead of
30461 a mix of System.Drawing.KnownColors and Theme colors
30462 - DrawFrameControl(): Removed code that fills the button area, the
30463 fill would overwrite any previous fill done by a control. This
30465 - Added DrawReversibleRectangle() stub
30466 * ScrollableControl.cs: Set visible state to false when scrollbars
30467 are removed (pdn fix)
30468 * XplatUI.cs, XplatUIOSX.cs, XplatUIDriver.cs: Added
30469 DrawReversibleRectangle() method to allow drawing primitive
30471 * XplatUIX11.cs: Implemented DrawReversibleRectangle()
30473 2005-09-30 KornĂ©l PĂ¡l <kornelpal@hotmail.com>
30475 * ImageList.cs: Add(Icon): Create handle.
30477 2005-09-30 Jordi Mas i Hernandez <jordi@ximian.com>
30480 * ThemeWin32Classic.cs:
30481 - Fixes detail mode
30483 - Issues with drawing
30485 2005-09-30 KornĂ©l PĂ¡l <kornelpal@hotmail.com>
30487 * ImageList.cs: Moved RecreateHandle back to ImageList as event
30488 source has to be the ImageList.
30490 2005-09-30 KornĂ©l PĂ¡l <kornelpal@hotmail.com>
30492 * ImageList.cs: Add(Icon): Use Graphics.DrawIcon instead of Icon.ToBitmap.
30494 2005-09-30 KornĂ©l PĂ¡l <kornelpal@hotmail.com>
30496 * ImageList.cs: ReduceColorDepth: Clean up pointer operations.
30498 2005-09-30 KornĂ©l PĂ¡l <kornelpal@hotmail.com>
30500 * ImageList.cs: ImageCollection: Removed owner field as it is no more used.
30502 2005-09-29 Jonathan Chambers <jonathan.chambers@ansys.com>
30503 * GridItem.cs: Fixed TODOs
30504 * GridItemCollection.cs: Added ICollection interface
30506 2005-09-30 KornĂ©l PĂ¡l <kornelpal@hotmail.com>
30508 * ImageList.cs: Resize icons when needed.
30510 2005-09-29 Jordi Mas i Hernandez <jordi@ximian.com>
30513 - Fixes GetBounds and returns on screen rects
30515 - Fixes vertical and horzintal scrolling of items
30516 * ThemeWin32Classic.cs:
30519 2005-09-29 Raja R Harinath <harinath@gmail.com>
30521 * ImageList.cs (ImageStream) [NET_2_0]: Reflect re-factoring.
30523 2005-09-29 KornĂ©l PĂ¡l <kornelpal@hotmail.com>
30525 * ImageList.cs: Added comments about handle creation. Moved Handle,
30526 HandleCreated and OnRecreateHandle implementations to ImageCollection.
30527 Handle is created in Add methods.
30529 2005-09-28 Jordi Mas i Hernandez <jordi@ximian.com>
30531 * DataGridDrawingLogic.cs:
30532 - Takes rows into account on Colum calculations
30533 - Returns the column when clickig
30535 - Fixes default HitTestInfo values
30536 - Fixes HitTestInfo.ToString
30537 - Fixes ResetBackColor
30539 2005-09-28 Jackson Harper <jackson@ximian.com>
30541 * MdiChildContext.cs: Obey rules for fixed sized windows (no
30542 sizing or cursor changes). Also added some temp code to draw the
30543 titlebars text (Makes dev a little easier).
30545 2005-09-28 KornĂ©l PĂ¡l <kornelpal@hotmail.com>
30547 * ImageList.cs: AddStrip: Throw ArgumentException when Image is not a Bitmap.
30549 2005-09-28 Jordi Mas i Hernandez <jordi@ximian.com>
30551 * ListBox.cs: Fixes bug 76253
30553 2005-09-28 KornĂ©l PĂ¡l <kornelpal@hotmail.com>
30555 * ImageList.cs: Added comments about the current implementation. Added
30556 ReduceColorDepth, IndexedColorDepths and GetNearestColor to can use
30557 Format32bppArgb to preserve transparency and can use Graphics.FromImage
30558 while using the specified ColorDepth. ReduceColorDepth uses unsafe code
30559 with Bitmap.LockBits for better performance. Revised the whole file to
30560 match MS.NET behaviour and provide better performance. Non-public
30561 interface members are calling public members even when they throw
30562 NotSupportedException for better maintainability. Moved ColorDepth,
30563 ImageSize, ImageStream and TransparentColor implementations to
30564 ImageCollection for better performance as these properties are not used
30566 * ImageListStreamer.cs: Added a new internal constructor that takes an
30567 ImageList.ImageCollection and serializes Images based on
30568 ImageCollection.ToArray(). Renamed ImageColorDepth to ColorDepth to
30569 match ImageList property name.
30571 2005-09-28 Kazuki Oikawa <kazuki@panicode.com>
30573 * ListBox.cs: Fixes IndexFromPoint for last item
30575 2005-09-27 Jackson Harper <jackson@ximian.com>
30577 * Form.cs: Set the position of new mdi children correctly.
30579 2005-09-27 Jackson Harper <jackson@ximian.com>
30581 * MdiClient.cs: New mdi children need to be added to the back of
30582 the controls collection so the zorder is set correctly. Also add a
30583 count of all the child windows that have been created.
30585 2005-09-27 Jackson Harper <jackson@ximian.com>
30587 * Form.cs (CreateParams): Setup MDI forms correctly.
30589 2005-09-27 Jackson Harper <jackson@ximian.com>
30591 * MdiChildContext.cs:
30592 * MonthCalendar.cs:
30598 * ScrollableControl.cs:
30599 * ComboBox.cs: Add implicit controls using the new implict control
30600 functionality in ControlCollection. Also try to block multiple
30601 control add in a suspend/resume layout to save some cycles.
30603 2005-09-27 Jackson Harper <jackson@ximian.com>
30605 * Control.cs: Add functionality to the controls collection to add
30606 'implicit controls' these are controls that are created by the
30607 containing control but should not be exposed to the user. Such as
30608 scrollbars in the treeview.
30609 * Form.cs: The list var of the ControlsCollection is no longer
30610 available because of the potential of implicit controls getting
30611 ignored by someone accessing the list directly.
30613 2005-09-26 Peter Dennis Bartok <pbartok@novell.com>
30615 * Control.cs: Fixed SetChildIndex; it no longer causes a child to
30616 loose it's parent. (Fixed bug introduced in r49103 when we added
30617 setting the child parent to null on Remove)
30619 2005-09-26 Gert Driesen <drieseng@users.sourceforge.net>
30621 * DataGridBoolColumn.cs: Marked CheckState private to fix public API.
30622 * Splitter.cs: Added missing attributes for BorderStyle property.
30623 * TextBoxBase.cs: Marked Calculate* methods internal.
30624 * TextBox.cs: Fixed DefaultValue for PasswordChar property to match
30627 2005-09-26 Jordi Mas i Hernandez <jordi@ximian.com>
30629 * ListBox.cs: Fixes navigation to the last item in multicolumn lists
30631 2005-09-25 Jackson Harper <jackson@ximian.com>
30633 * TreeView.cs: Update the node bounds correctly regardless of
30634 whether the node is visible.
30636 2005-09-25 Jackson Harper <jackson@ximian.com>
30638 * ImageList.cs: Don't dispose the image after it is added to the
30639 image list. Only reformat images that need to be resized.
30641 2005-09-25 Jackson Harper <jackson@ximian.com>
30643 * ImageList.cs: Don't set the format when changing the image.
30645 2005-09-25 Jackson Harper <jackson@ximian.com>
30647 * TreeView.cs: We can't just assume the node has a font. Use the
30648 treeviews font if no node font is available.
30650 2005-09-25 Jackson Harper <jackson@ximian.com>
30652 * TreeView.cs: Allow the scrollbars to be reset with negative
30654 - Don't add scrollbars to negative sized windows.
30656 2005-09-23 Jackson Harper <jackson@ximian.com>
30658 * XplatUIX11.cs: Update to use Mono.Posix.Native instead of plain
30659 old Mono.Posix. Also remove some stray code that shouldn't have
30662 2005-09-23 Jackson Harper <jackson@ximian.com>
30664 * TreeView.cs: Attempt at proper sizing of the horizontal
30665 scrollbar. Also don't resize the scrollbars unless they are
30668 2005-09-23 Jackson Harper <jackson@ximian.com>
30670 * TreeView.cs: We don't need to expand the invalid area when the
30671 selection changes, as this is all drawn in the node's bounding
30672 box. The area needs to be expanded (previous typo was contracting
30673 it) when the focus rect moves.
30675 2005-09-23 Jackson Harper <jackson@ximian.com>
30677 * TreeView.cs: Display the selection box under the correct
30678 circumstances. We were rendering white text with no selection box
30681 2005-09-23 Peter Dennis Bartok <pbartok@novell.com>
30683 * TextControl.cs(Split): Now updates selection start/end if it points
30684 into a line that's being split. Fixes a FIXME and bug #75258
30686 2005-09-23 Jackson Harper <jackson@ximian.com>
30689 * ListControl.cs: Don't use the path when retrieving binding
30690 managers from the binding context. My bat sense tells me that the
30691 path is only used on insertion.
30693 2005-09-22 Jackson Harper <jackson@ximian.com>
30695 * Splitter.cs: Set the cursor an easier way. (Thanks peter).
30697 2005-09-22 Jackson Harper <jackson@ximian.com>
30699 * Splitter.cs: There are special cursors used for splitting.
30700 * XplatUIX11.cs: The VSplit and HSplit cursors were backwards.
30702 2005-09-22 Jackson Harper <jackson@ximian.com>
30704 * Splitter.cs: Change the cursor appropriately when the splitter
30705 is moused over, so the user actually knows there is a splitter
30708 2005-09-22 Hisham Mardam Bey <hisham.mardambey@gmail.com>
30710 * Label.cs : Fix ToString method to give same output as MS.NET
30712 2005-09-22 Jackson Harper <jackson@ximian.com>
30714 * TreeView.cs: Create the scrollbars when the handle is created
30715 and add them right away, just make them invisble. Also account for
30716 the window being shrunk vertically to the point that the vert
30717 scrollbar needs to be added.
30718 - Remove some 0.5 adjustments to get around anti aliasing issues.
30720 2005-09-22 Jordi Mas i Hernandez <jordi@ximian.com>
30722 * MainMenu.cs: Fixes default value
30723 * MenuItem.cs: Fixes default value
30725 2005-09-22 Kazuki Oikawa <kazuki@panicode.com>
30727 * AsyncMethodResult.cs: Fixes Control.Invoke is blocked infinitely.
30729 2005-09-21 Jackson Harper <jackson@ximian.com>
30731 * Control.cs: Don't try to set the border style on the window if
30732 it hasn't been created. When the window is created the border
30733 style will be used.
30735 2005-09-21 Peter Dennis Bartok <pbartok@novell.com>
30737 * Control.cs (Update): Don't call XplatUI if we don't have a
30740 2005-09-21 Peter Dennis Bartok <pbartok@novell.com>
30742 * ContainerControl.cs: Instead of throwing an exception, print
30743 a one-time warning about Validate not being implemented
30744 * XplatUIWin32.cs: Removed debug output
30746 2005-09-21 Peter Dennis Bartok <pbartok@novell.com>
30748 * Control.cs: Only set XplatUI background if we expect the windowing
30749 system to handle the background. This stops controls that draw their
30750 own background from flickering
30752 * XplatUIX11.cs: Support custom visuals and colormaps for window
30753 creation. This allows, amongst other things, using MWF X11 windows
30756 2005-09-21 Peter Dennis Bartok <pbartok@novell.com>
30758 * OpenFileDialog.cs, ContentsResizedEventArgs.cs, LibSupport.cs, GridItem.cs,
30759 CursorConverter.cs, SplitterEventHandler.cs, PropertyGridTextBox.cs,
30760 GridTablesFactory.cs, MethodInvoker.cs, AccessibleEvents.cs,
30761 SplitterEventArgs.cs, XplatUI.cs, Mime.cs, PropertySort.cs,
30762 TreeViewCancelEventHandler.cs, Form.cs, PropertyGridCommands.cs,
30763 IDataGridEditingService.cs, DateBoldEventHandler.cs, Label.cs,
30764 KeyboardLayouts.cs, TextControl.cs, ProgressBar.cs, ToolTip.cs,
30765 RadioButton.cs, OSFeature.cs, LinkLabel.cs, ColorDialog.cs,
30766 ThemeNice.cs, ErrorIconAlignment.cs, TreeNode.cs, MimeGenerated.cs,
30767 ComboBox.cs, DataGridTextBoxColumn.cs, ArrangeStartingPosition.cs,
30768 GridColumnStylesCollection.cs,
30769 IDataGridColumnStyleEditingNotificationService.cs,
30770 PropertyGrid.cs, IFeatureSupport.cs, ICommandExecutor.cs,
30771 MdiLayout.cs, GridEntry.cs, ControlBindingsCollection.cs,
30772 GridTableStylesCollection.cs, TreeViewCancelEventArgs.cs,
30773 TreeNodeCollection.cs, AmbientProperties.cs,
30774 RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
30775 DataObject.cs, ErrorProvider.cs, Splitter.cs,
30776 DataGridLineStyle.cs, Shortcut.cs, Control.cs,
30777 FontDialog.cs, SecurityIDType.cs, GridItemType.cs,
30778 BindingMemberInfo.cs, DataGridCell.cs, MdiChildContext.cs,
30779 IRootGridEntry.cs, PropertyGridView.cs, DataGridParentRowsLabelStyle.cs,
30780 FolderBrowserDialog.cs, OpacityConverter.cs, HelpProvider.cs,
30781 IComponentEditorPageSite.cs, DataGridTableStyle.cs, NavigateEventArgs.cs,
30782 NotifyIcon.cs, ContentsResizedEventHandler.cs, MenuItem.cs,
30783 PropertyTabChangedEventHandler.cs, TextBoxBase.cs, OpenTreeNodeEnumerator.cs,
30784 SelectionMode.cs, TextBox.cs, ListBindingConverter.cs,
30785 FileDialog.cs, KeysConverter.cs, DomainUpDown.cs,
30786 DataFormats.cs, SaveFileDialog.cs, GridItemCollection.cs,
30787 ArrangeDirection.cs, FeatureSupport.cs, SelectionRangeConverter.cs,
30788 RichTextBoxScrollBars.cs, NodeLabelEditEventHandler.cs, TreeNodeConverter.cs,
30789 MimeIcon.cs, X11Structs.cs, PropertyGridEntry.cs,
30790 ImageList.cs, ThemeWin32Classic.cs, X11Keyboard.cs,
30791 CheckedListBox.cs, HelpNavigator.cs, DateTimePickerFormat.cs,
30792 MdiClient.cs, DataGridDrawingLogic.cs, DataGridBoolColumn.cs,
30793 NodeLabelEditEventArgs.cs, Screen.cs, PropertyManager.cs,
30794 ComponentModel.cs, PropertiesTab.cs, CurrencyManager.cs,
30795 SizeGrip.cs, DateBoldEventArgs.cs, X11Dnd.cs, Panel.cs,
30796 Hwnd.cs, OSXStructs.cs, DrawMode.cs, XplatUIDriver.cs,
30797 RichTextBox.cs, PropertyTabChangedEventArgs.cs, CommonDialog.cs,
30798 DataGrid.cs, XplatUIX11.cs, RichTextBoxStreamType.cs, Win32DnD.cs,
30799 ErrorBlinkStyle.cs, TreeViewEventHandler.cs,
30800 PropertyValueChangedEventHandler.cs, IFileReaderService.cs,
30801 DataGridTextBox.cs, SelectedGridItemChangedEventArgs.cs, ScrollBar.cs,
30802 ListBox.cs, TreeViewAction.cs, Help.cs, TrackBar.cs,
30803 AxHost.cs, PropertyValueChangedEventArgs.cs, XplatUIOSX.cs,
30804 RichTextBoxFinds.cs, UpDownEventArgs.cs, Cursors.cs,
30805 CategoryGridEntry.cs, RichTextBoxWordPunctuations.cs, DataGridColumnStyle.cs,
30806 SelectedGridItemChangedEventHandler.cs, DateTimePicker.cs, NavigateEventHandler.cs,
30807 Clipboard.cs, UpDownEventHandler.cs, MonthCalendar.cs,
30808 SendKeys.cs, DataGridPreferredColumnWidthTypeConverter.cs, TreeView.cs,
30809 ThreadExceptionDialog.cs, ImageListConverter.cs, XplatUIWin32.cs,
30810 TreeViewEventArgs.cs: Fixed whitespace and set eol-style:native attribute
30812 2005-09-21 Jackson Harper <jackson@ximian.com>
30814 * TreeNode.cs: Call Before/After Expand not Collapse when
30817 2005-09-20 Jackson Harper <jackson@ximian.com>
30819 * XplatUIX11.cs: Use the more hand looking hand (in most themes).
30821 2005-09-16 Jordi Mas i Hernandez <jordi@ximian.com>
30825 - Fixes proper storing of subitems
30826 - Fixes not updated items
30828 2005-09-20 Peter Dennis Bartok <pbartok@novell.com>
30830 * Control.cs, TextBoxBase.cs, TextControl.cs: Don't do certain
30831 things if our window handle isn't created yet. Also disabled
30832 debug for TextBoxBase
30834 2005-09-20 Peter Dennis Bartok <pbartok@novell.com>
30836 * MenuAPI.cs: Remove filtering of events to allow menu usage
30838 2005-09-20 Miguel de Icaza <miguel@novell.com>
30840 * Cursor.cs: Allow null to be passed to Cursor.Current.
30842 2005-09-20 Alexander Olk <alex.olk@googlemail.com>
30844 * ThemeWin32Classic.cs:
30845 - Change some private methods/fields to protected virtual so that
30846 they can be accessed and overriden in derived classes
30847 - First refactoring of some methods. Derived themes now don't
30848 need to duplicate the complete code from ThemeWin32Classic
30850 - Added nice StatusBar
30851 - Derive from ThemeWin32Classic and not Theme
30852 - Removed duplicate ThemeWin32Classic code
30854 2005-09-20 Miguel de Icaza <miguel@novell.com>
30856 * Control.cs (ControlCollection.Add): If the value null is passed
30857 the control is ignored.
30859 Optimize this loop.
30861 2005-09-19 Peter Dennis Bartok <pbartok@novell.com>
30863 * MenuAPI.cs: Replaced Application.Run() with a loop that tracks
30864 PostQuitMessage state.
30865 * XplatUIWin32.cs: Removed bogus PostQuitMessage P/Invoke with HWND arg
30867 2005-09-19 Peter Dennis Bartok <pbartok@novell.com>
30869 * Application.cs: Our constructor will never get called, move
30870 initialization to fields; fixes bug #75933
30872 2005-09-19 Hisham Mardam Bey <hisham.mardambey@gmail.com>
30875 - Allow files to be selected properly using file name
30877 - Add ability to change diretory (absolute / relative)
30878 using file name combo box.
30880 2005-09-16 Jordi Mas i Hernandez <jordi@ximian.com>
30883 - Fixes Multicolumn listboxes item wrong calculations
30884 - Allows to click when only one item is in the listbox
30885 - Fixes crash when no items using keyboard navigation
30887 2005-09-16 Alexander Olk <alex.olk@googlemail.com>
30889 * ComboBox.cs: Reverted almost everything from the latest patch which
30892 2005-09-16 Kazuki Oikawa <kazuki@panicode.com>
30895 - Fixed #Mtd2 of ToolTipTest.RemoveToolTipTest.
30897 - When DropDownStyle is Simple, it does not show scrollbar
30898 to the last item of the list.
30899 - When DropDownStyle is Simple, it crashed when the list was
30900 scrolled down with the down cursor key.
30901 - Fixed a bug that when DropDownStyle is DropDownList, the
30902 selected item was not shown.
30903 - The position of the selected item was not preserved when
30904 the next dropdown happened.
30905 * ThemeWin32Classic.cs:
30906 - Items were wrapped at the right end.
30907 * CheckedListBox.cs:
30910 - Items should be fully shown.
30911 - When resizing and vertical scrollbar disappeared, the item
30912 of index 0 should be on the top of the list.
30913 - GetItemRectangle should consider the size of ver. scrollbar
30915 - SizingGrip area should not be allocated when it is not
30917 - Now it reflects MinWidth of the containing panel and
30918 fixed a crash that happens when its width becomes so small.
30920 2005-09-13 Jordi Mas i Hernandez <jordi@ximian.com>
30922 * CheckedListBox.cs: Fixes bug 76028
30923 * ListBox.cs: Fixes bug 76028
30925 2005-09-13 Jordi Mas i Hernandez <jordi@ximian.com>
30927 * ThemeWin32Classic.cs: Sets clipping on DataGridPaintRowsHeaders
30928 * DataGridDrawingLogic.cs: fixes issues with Datagrid drawing
30930 2005-09-12 Jordi Mas i Hernandez <jordi@ximian.com>
30932 * XplatUIX11.cs: fixes System.NullReferenceException in some situations
30934 2005-09-09 Jonathan Chambers <jonathan.chambers@ansys.com>
30936 * IRootGridEntry.cs: Changed namespace to PropertyGridInternal
30938 2005-09-09 Jonathan Chambers <jonathan.chambers@ansys.com>
30940 * IRootGridEntry.cs: Added
30941 * PropertyGridCommands.cs: Added
30942 * PropertiesTab.cs: Added missing methods and property
30943 * PropertyGridView.cs: Made class internal
30944 * PropertyGridTextBox.cs: Made class internal
30946 2005-09-09 Alexander Olk <alex.olk@googlemail.com>
30948 * MimeIcon.cs: Try to check some other environment variables
30949 if "DESKTOP_SESSION" returns "default"
30951 2005-09-09 Alexander Olk <alex.olk@googlemail.com>
30953 * ThemeNice.cs: Corrected background colors (e.g. menus)
30954 * ColorDialog.cs: Use correct background colors for controls
30956 2005-09-09 Alexander Olk <alex.olk@googlemail.com>
30958 * ThemeNice.cs: Merged r49535 from ThemeWin32Classic
30960 2005-09-08 Peter Dennis Bartok <pbartok@novell.com>
30962 * RichTextBox.cs: Added initial implementation
30963 * lang.cs: Removed. Was accidentally checked in long time ago
30964 * TODO: Removed. Contents were obsolete
30966 2005-09-06 Jonathan Chambers <jonathan.chambers@ansys.com>
30968 * PropertiesTab.cs : Added
30970 2005-09-06 Jonathan Chambers <jonathan.chambers@ansys.com>
30972 * PropertyGrid.cs : Update
30973 * PropertyGridView.cs : Update
30974 * System.Windows.Forms.resx : Added images and strings
30976 2005-09-06 Peter Dennis Bartok <pbartok@novell.com>
30978 * ThemeNice.cs: Do not dispose Pens retrieved from ResPool
30980 2005-09-06 Peter Dennis Bartok <pbartok@novell.com>
30982 * XplatUIX11.cs: Force a flush after Ungrab; if case the app enters
30983 a busy loop right after the Ungrab the X11 display is otherwise
30986 2005-09-06 Jordi Mas i Hernandez <jordi@ximian.com>
30988 * ThemeWin32Classic.cs: Optimise the use of clipping
30990 2005-09-05 Jordi Mas i Hernandez <jordi@ximian.com>
30992 * DataGrid.cs: fixes recursion bug
30994 2005-09-03 Alexander Olk <alex.olk@googlemail.com>
30997 - Draw RadioButton and CheckBox Buttons with DrawButtonBase
31000 2005-09-02 Alexander Olk <alex.olk@googlemail.com>
31002 * ThemeNice.cs: Draw nice ProgressBars
31004 2005-09-01 Miguel de Icaza <miguel@novell.com>
31006 * VScrollBar.cs: Another buglet found by Aaron's tool.
31008 * ProgressBar.cs: Fix three recursive bugs found by Aaron Tomb's
31011 2005-08-30 Alexander Olk <alex.olk@googlemail.com>
31014 - Added nicer menu drawing
31018 2005-08-30 Peter Dennis Bartok <pbartok@novell.com>
31020 * CreateParams.cs (ToString): Made output match MS
31021 * Control.cs (Text): Don't set Text or Focus via XplatUI unless
31022 handle is already created (to avoid forcing window creation)
31023 * XplatUIX11.cs: Set window text to caption after creating window,
31024 in case Text was set before window was created
31025 * Form.cs: Use this.Text instead of a static string as caption
31027 2005-08-30 Peter Dennis Bartok <pbartok@novell.com>
31029 * NotifyIcon.cs: Don't set the window to visible; this screws
31030 up Win32 (causes WM_NCPAINT to be sent on Win32, which calls
31031 OnPaint without a bitmap)
31032 * XplatUIX11.cs: Removed Visible optimization in AddExpose; doesn't
31033 happen very often anyway; we could add the check to the WM_PAINT
31034 event generation code
31036 2005-08-30 Peter Dennis Bartok <pbartok@novell.com>
31038 * NotifyIcon.cs: Fill the icon area with a background color, to
31039 avoid 'residue' when transparent icons are drawn
31041 - Handle whole_window == client_window when destroying windows
31042 - SystrayAdd(): Set client_window to whole_window value to
31043 get mouse and other events passed to NotifyIcon
31045 2005-08-30 Peter Dennis Bartok <pbartok@novell.com>
31047 * Form.cs: Set proper default for Opacity property
31049 - ShowSystray(): Don't bother creating telling the OS
31050 about the systray item if no icon is provided
31051 - Now handles WM_NCPAINT message to deal with whole/client window
31053 - Create window as visible to not get caught by Expose optimization
31054 * Hwnd.cs: Removed debug message
31055 * ComboBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs, TabControl.cs,
31056 StatusBar.cs, TreeView.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched
31057 PaintEventStart/End to use new client argument
31059 - Commented out debug messages
31060 - Switched PaintEventStart/End to use new client argument
31061 * XplatUI.cs: Added client window bool to PaintEventStart()/
31062 PaintEventEnd() calls, to support drawing in non-client areas
31063 * XplatUIDriver.cs:
31064 - Added client window bool to PaintEventStart()/PaintEventEnd()
31065 calls, to support drawing in non-client areas
31066 - Added conditional compile to allow using MWF BeginInvoke
31069 - Added some conditional debug output
31070 - Fixed SystrayAdd() method to support new (for SystrayAdd, anyway)
31071 whole/client window split
31072 - Implemented handling of client argument to PaintEventStart()/End()
31074 - Throw exception if BeginInvoke() is called and the window handle
31075 or one of the window's parent handles is not created
31076 - Added conditional compile to allow using MWF BeginInvoke on
31078 - get_Parent(): Only sets parent if handle is created. This avoids
31079 forcing window handle creation when parent is set.
31080 - Now fires Layout and Parent changed events in proper order
31081 - Switched to use Handle instead of window.Handle for Z-Order setting,
31082 the get_Parent() patch above causes us to possibly get null for 'window'
31083 - Implemented handling of client argument to PaintEventStart()/End()
31084 - Now reports back to windows that WM_SETCURSOR was handled (to avoid
31086 - Now sends a Refresh() to all child windows when Refresh() is called
31088 2005-08-29 Peter Dennis Bartok <pbartok@novell.com>
31090 * Form.cs: Added (non-functional) Opacity property
31091 * XplatUIWin32.cs (SystrayAdd): Removed bogus line of code
31093 2005-08-29 Alexander Olk <xenomorph2@onlinehome.de>
31094 * ThemeNice.cs: New theme for MWF, based on ThemWin32Classic
31095 use export MONO_THEME=nice to activate it.
31096 Currently supported controls:
31100 - TabControl (TabAlignment.Top only, other will follow)
31101 * ThemeEngine.cs: Add theme nice
31102 * ButtonBase.cs: Redraw button on MouseEnter and MouseLeave everytime,
31105 2005-08-25 Jonathan Chambers <jonathan.chambers@ansys.com>
31107 * Splitter.cs: Resize docked control and its neighbor.
31109 2005-08-24 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
31110 -- Making Windows with Menus layout correctly --
31111 * Form.cs : The first leg of the fix
31112 Menu setter - adjust Client Size as needed to make space for the menu
31113 SetClientSizeCore - doesn't call base version to be able to pass the
31114 menu handle to XplatUI.CalculateWindowRect
31115 * Hwnd.cs: Fix for menu_height, now gets from MenuAPI.MENU
31116 * XplatUIX11.cs: The critical second leg of the fix
31117 GetWindowPos needs to use a recalculated client_rect
31118 so that resizing the window doesn't break layout of child controls.
31119 Also a more complete rule to avoid X Server roundtrips in SetWindowPos
31120 Lots of \t\n killed
31122 2005-08-23 Peter Dennis Bartok <pbartok@novell.com>
31124 * Label.cs: Now properly recalculates width and height on Font and Text
31125 changes if AutoSize is set
31127 2005-08-19 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
31128 * TreeView.cs : Revamped drawing logic, and support for FullRowSelect
31130 2005-08-19 Jordi Mas i Hernandez <jordi@ximian.com>
31132 * ImageList.cs: Makes ToString method compatible with MS
31134 2005-08-18 Jordi Mas i Hernandez <jordi@ximian.com>
31136 * MenuAPI.cs: fixes bug 75716
31138 2005-08-11 Umadevi S <sumadevi@novell.com>
31139 * Control.cs: Fixed Remove & RemoveAt to make the parent of the control null.
31141 2005-08-11 Umadevi S <sumadevi@novell.com>
31142 * Contorl.cs: Fixed ResetRightToLeft and ResetImeMode to work correctly
31144 2005-08-10 Umadevi S <sumadevi@novell.com>
31145 * CheckedListBox.cs: Fixed event firing on Adding to the CheckedListBox
31147 2005-08-07 Jordi Mas i Hernandez <jordi@ximian.com>
31149 * Menu.cs: fixes bug 75700
31150 * MenuAPI.cs: fixes navigation issues
31152 2005-08-09 Umadevi S <sumadevi@novell.com>
31153 * CheckedListBox.cs - simple fix for GetItemChecked.
31155 2005-08-08 Jordi Mas i Hernandez <jordi@ximian.com>
31157 * ComboBox.cs: Serveral fixes
31158 * ListBox.cs: Serveral fixes
31160 2005-08-05 Jordi Mas i Hernandez <jordi@ximian.com>
31162 * ComboBox.cs: Fixes FindString methods and GetItemHeight
31163 * ListBox.cs: Fixes FindString methods
31165 2005-08-05 Jordi Mas i Hernandez <jordi@ximian.com>
31167 * DataGrid.cs: fixes bugs exposed by new tests
31169 2005-08-04 Peter Dennis Bartok <pbartok@novell.com>
31171 * Mime.cs: Compile Mono assembly references only if compiling
31172 with Mono (Allows to build with VS.Net again)
31174 2005-07-28 Marek Safar <marek.safar@seznam.cz>
31176 * Control.cs (PaintControlBackground): Draw background image
31178 (CheckForIllegalCrossThreadCalls): Stubbed.
31180 * Form.cs (OnCreateControl): Center when should be centered.
31182 * ThemeWin32Classic.cs (DrawPictureBox): Pass size.
31184 2005-07-19 Jordi Mas i Hernandez <jordi@ximian.com>
31186 * Binding.cs: Binding to properties should be case unsensitive
31188 2005-07-18 vlindos@nucleusys.com
31190 * DataGrid.cs: fixes setmember order
31192 2005-07-07 Alexander Olk <xenomorph2@onlinehome.de>
31194 * MimeIcon.cs: added MimeIcon stuff (MimeIconEngine)
31195 * FileDialog.cs: FileDialog is now resizable and uses the new
31198 2005-07-06 Jordi Mas i Hernandez <jordi@ximian.com>
31200 * DataGridTextBoxColumn.cs: default value
31201 * GridColumnStylesCollection.cs: fixes event firing, checking MappingName
31202 * GridTableStylesCollection.cs: fixes checking MappingName
31203 * DataGridDrawingLogic.cs: fixes drawing logic issues
31204 * DataSourceHelper.cs: rewritten to make compatible with more data sources
31205 * DataGrid.cs: fixes
31207 2005-07-06 Alexander Olk <xenomorph2@onlinehome.de>
31209 * MimeGenerated.cs: Use case sensitive comparer for
31210 NameValueCollections
31212 2005-07-01 Jordi Mas i Hernandez <jordi@ximian.com>
31214 * DataGridTextBoxColumn.cs: bug fixes, code refactoring
31215 * ThemeWin32Classic.cs: bug fixes, code refactoring
31216 * DataGridDrawingLogic.cs: bug fixes, code refactoring
31217 * DataGrid.cs: bug fixes, code refactoring
31218 * DataGridTextBox.cs: bug fixes, code refactoring
31219 * DataGridColumnStyle.cs: bug fixes, code refactoring
31220 * Theme.cs: bug fixes, code refactoring
31222 2005-07-01 Peter Bartok <pbartok@novell.com>
31224 * TextControl.cs: Quick fix for the reported crash on ColorDialog
31225 and other text box usage
31227 2005-07-01 Jackson Harper <jackson@ximian.com>
31229 * TabControl.cs: Make sure the bottom of the tab covers the pages
31232 2005-06-30 Peter Bartok <pbartok@novell.com>
31234 * Form.cs (ShowDialog): Assign owner of the dialog
31235 * TextBoxBase.cs: Always refresh caret size when deleting, caret
31236 might have been moved to a tag with different height
31238 2005-06-30 Jackson Harper <jackson@ximian.com>
31240 * Form.cs: Don't create an infinite loop when setting focus
31241 * MenuItem.cs: Don't dirty the parents if we don't have any
31243 2005-06-29 Ben Maurer <bmaurer@ximian.com>
31245 * LibSupport.cs: Rename
31247 2005-06-29 Peter Bartok <pbartok@novell.com>
31249 * TextBoxBase.cs: Re-align caret after deleting a character
31251 - DeleteChars(): Ensure that tag covers the provided position
31252 - StreamLine(): Drop reference for dropped tag
31254 2005-06-29 Peter Bartok <pbartok@novell.com>
31257 - Selections now work properly, anchoring at the initial location
31258 and properly extending in either direction (SetSelectionToCaret(),
31259 SetSelectionStart() and SetSelectionEnd())
31260 - No longer redraws the whole control on selection change, now
31261 calculates delta between previous and new selection and only
31262 invalidates/redraws that area
31263 - Fixed FindPos() math off-by-one errors
31264 - Changed DeleteChars() to verify the provided tag covers the
31265 provided position, selections may have a tag that doesn't cover
31266 the position if the selection is at a tag border
31267 - Fixed off-by-one errors in DeleteChars()
31268 - Added missing streamlining check in DeleteChars() to remove
31270 - Implemented Invalidate() method, now properly calculates exposures
31271 between two given lines/positions
31272 - Implemented SetSelection()
31273 - Obsoleted and removed FixupSelection()
31274 - Improved RecalculateDocument() logic, removing code duplication
31276 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
31278 * LibSupport.cs: changes to match different input/output arguments.
31280 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
31282 * LibSupport.cs: added libsupport.so init routine.
31284 2005-06-29 Jordi Mas i Hernandez <jordi@ximian.com>
31286 * ControlBindingsCollection.cs
31287 - Throws an exception on null datasource when adding
31288 - Checks for duplicated bindings when adding
31290 2005-06-28 Jackson Harper <jackson@ximian.com>
31292 * TreeView.cs (OnKeyDown): Support left and right properly
31293 (navigates as well as expanding and collapsing.
31294 - Add support for Multiply, this expands all the selected nodes
31296 - Fix some tabbing.
31298 2005-06-28 Jackson Harper <jackson@ximian.com>
31300 * TreeView.cs: Implement keyboard navigation, currently supports,
31301 LEFT, RIGHT, UP, DOWN, PGUP, PGDOWN, HOME, END, ADD, SUBTRACT. Add
31302 support for toggling checkboxes with the space bar.
31304 2005-06-28 Jackson Harper <jackson@ximian.com>
31306 * OpenTreeNodeEnumerator.cs: Don't move past the begining of the
31309 2005-06-28 Jackson Harper <jackson@ximian.com>
31311 * TreeView.cs: Add missing event.
31313 2005-06-27 Peter Bartok <pbartok@novell.com>
31316 - Made line ending size configurable (now allows for counting
31317 lineendings as \n or \r\n)
31318 - Added margin to viewport to keep caret visible on right side
31319 - Fixed translation routines for line/pos to documentpos to consider
31320 cr/lf when counting (Fixes RichTextBox.SelectionFont issues)
31321 - Fixed some line-endings to be unix style
31322 - Fixed Document.FormatText to perform it's calculations 1-based
31323 - Added descriptions for a few methods that might otherwise get
31325 - Added NOTE section with some basic conventions to remember at
31326 the top of the file
31327 - Major fixup for RichTextBox selection drawing:
31328 * Fixed crashes when multiple tags on a single line were selected
31329 * fixed selection box drawing not overlaying text
31330 * fixed bogus offset calculation for tags not starting at index 1
31331 * Switched behaviour from using multiple Substrings of a
31332 StringBuilder.ToString() to using multiple
31333 StringBuilder.ToString(start, length) statements, hoping this is
31334 faster (kept original version commented out in the code, in case
31335 original version was faster)
31336 * TextBox.cs (set_TextAlignment): TextBox always needs to wrap if
31338 * TextBoxBase.cs (CalculateDocument): Made protected so RichTextBox can
31341 2005-06-27 Jackson Harper <jackson@ximian.com>
31343 * TabControl.cs: Move to the left and right with the arrow
31344 keys. These keys don't cycle beyond first and last like
31345 tab. Refresh all the tabs when scrolling them to the left or
31348 2005-06-27 Jackson Harper <jackson@ximian.com>
31351 - ToString: Added method
31352 - CreateParams: Remove TODO and comment
31353 - OnKeyDown: Cycle through bounds properly.
31354 - SelectedIndex: Scroll to the right or left if we need to
31355 display the newly selected tab.
31357 2005-06-23 Jackson Harper <jackson@ximian.com>
31359 * TabControl.cs: Stay in bounds when cycling. Make sure Handled is
31362 2005-06-23 Jackson Harper <jackson@ximian.com>
31364 * TabControl.cs: Keyboard handling. We now support CTRL-TAB,
31365 CTRL-SHIFT-TAB, and HOME, END are there any others?
31367 2005-06-23 Jackson Harper <jackson@ximian.com>
31369 * XplatUIX11.cs: Get the modifier keys from the keyboard driver.
31371 2005-06-22 Jordi Mas i Hernandez <jordi@ximian.com>
31373 * DataGridTextBoxColumn.cs: fixes and enhancements
31374 * ThemeWin32Classic.cs: fixes and enhancements
31375 * DataGridBoolColumn.cs: fixes and enhancements
31376 * DataGridDrawingLogic.cs: fixes and enhancements
31377 * CurrencyManager.cs: fixes and enhancements
31378 * DataGrid.cs: fixes and enhancements
31379 * DataGridColumnStyle.cs: fixes and enhancements
31381 2005-06-22 Jackson Harper <jackson@ximian.com>
31383 * TabControl.cs: Add some missing methods that just call into the
31384 base. Make the TabPageCollection's IList interface behave in the
31385 same manner as the MS implementation.
31387 2005-06-22 Peter Bartok <pbartok@novell.com>
31389 * TextControl.cs: Added sanity check
31391 - Fixed wrapping behaviour, don't set wrap on single line controls
31392 (this fixes the breakage of colordialog introduced in an earlier
31394 - Added rudimentary support for autoscrolling right-aligned controls
31395 (still needs fixing, also, center alignment scroll is missing)
31397 2005-06-22 Jordi Mas i Hernandez <jordi@ximian.com>
31399 * ScrollBar.cs: Fixes thumbpos on Maximum values
31401 2005-06-21 Jonathan Chambers <jonathan.chambers@ansys.com>
31403 * PropertyGridView.cs: Pass context information to UITypeEditors
31405 2005-06-21 Peter Bartok <pbartok@novell.com>
31408 - Now calling PositionCaret with absolute space coordinates
31409 - Enabled vertical scrolling
31410 - Better tracking of scrollbar changes, tied into WidthChange
31412 - Improved cursor tracking
31413 - Removed debug output
31415 - PositionCaret coordinates are now works in absolute space, not
31417 - Improved tracking of document size
31418 - Added events for width and height changes
31420 2005-06-21 Peter Bartok <pbartok@novell.com>
31422 * Form.cs: Set focus to active control when form is activated
31424 - Added word-wrap functionality to RecalculateLine()
31425 - Added some short function descriptions for VS.Net to aid in
31426 writing dependent controls
31427 - Added Caret property, returning the current coords of the caret
31428 - Added ViewPortWidth and ViewPortHeight properties
31429 - Added Wrap property
31430 - Added CaretMoved event
31431 - Removed some old debug code
31432 - Split() can now create soft splits
31433 - Added PreviousTag()/NextTag() to allow walking "tag-lists"
31434 - Added method to format existing text
31435 - Fixed size/alignment calculations to use viewport
31436 - RecalculateDocument now can handle changing line-numbers while
31440 - Added some wrap logic, we don't wrap if alignment is not left
31441 - Added casts for scrollbar var, base class switched types to
31442 also support RichTextBoxA
31443 - Implemented handling of scrollbar visibility flags
31446 - Switched scrollbars type to RichTextBoxScrollBars to support
31448 - Added tracking of canvas width/height
31449 - Switched scrollbars to be not selectable (to keep focus on text)
31450 - Added central CalculateDocument() method to handle all redraw
31452 - Added ReadOnly support
31453 - Added WordWrap support
31454 - Fixed handling of Enter key (we now treat it as a DialogKey)
31455 - Fixed caret positioning when h or v scroll is not zero
31456 - Fixed placing/generation of vertical scrollbar
31457 - Added CalculateScrollBars() method to allow updating scrollbar
31458 limits and visibility
31459 - Fixed handling of horizontal scroll
31460 - Added handling of vertical scroll
31461 - Implemented auto-'jump' when caret moves to close to a left or
31462 right border and there is text to be scrolled into view (currently
31463 there's the potential for a stack overflow, until a bug in
31464 scrollbar is fixed)
31466 2005-06-21 Geoff Norton <gnorton@customerdna.com>
31468 * XplatUIOSX.cs: Initial implementation of WM_ERASEBKGND
31470 2005-06-19 Alexander Olk <xenomorph2@onlinehome.de>
31474 - return application/x-zerosize for files with size zero
31475 (if no extension pattern matches).
31476 - check matches collection for strings too.
31477 - return only the first mime type if the name value
31478 collection has more than one mime type.
31480 2005-06-18 Jonathan Chambers <jonathan.chambers@ansys.com>
31482 * PropertyGrid.cs: Cleaned up some TODOs
31483 * PropertyGridView.cs: Added support for UITypeEditors
31485 2005-06-17 Jordi Mas i Hernandez <jordi@ximian.com>
31487 * DataGrid.cs: clears cached value
31489 2005-06-17 Jordi Mas i Hernandez <jordi@ximian.com>
31491 * DataGridTextBoxColumn.cs: new rows, speed improvements, fixes, readonly prop.
31492 * DataGridDrawingLogic.cs: new rows, speed improvements, fixes, readonly prop.
31493 * DataGrid.cs: new rows, speed improvements, fixes, readonly prop.
31494 * DataGridColumnStyle.cs: new rows, speed improvements, fixes, readonly prop.
31496 2005-06-16 Jordi Mas i Hernandez <jordi@ximian.com>
31498 * ThemeWin32Classic.cs: fixes colour
31500 2005-06-15 Peter Bartok <pbartok@novell.com>
31502 * MWFCategoryAttribute.cs: Added (Needed for PropertyGrid designer support)
31503 * MWFDescriptionAttribute.cs: Added (Needed for PropertyGrid designer support)
31504 * ButtonBase.cs: Added MWFCategory and MWFDescription attributes
31505 * Control.cs: Added some MWFCategory and MWFDescription attributes
31506 * ScrollBar.cs: Added some MWFCategory and MWFDescription attributes
31508 2005-06-15 Alexander Olk <xenomorph2@onlinehome.de>
31510 * Mime.cs, MimeGenerated.cs: First draft of MWF mime stuff, see Mime.cs for
31513 2005-06-14 Jordi Mas i Hernandez <jordi@ximian.com>
31515 * DataGridTextBoxColumn.cs: default datagrid settings for Default Styles, fixes
31516 * DataGridTableStyle.cs: default datagrid settings for Default Styles, fixes
31517 * DataGridDrawingLogic.cs: default datagrid settings for Default Styles, fixes
31518 * DataGridBoolColumn.cs: default datagrid settings for Default Styles, fixes
31519 * DataGrid.cs: default datagrid settings for Default Styles, fixes
31520 * DataGridColumnStyle.cs: default datagrid settings for Default Styles, fixes
31522 2005-06-13 Jackson Harper <jackson@ximian.com>
31524 * XplatUIX11.cs: Override SetAllowDrop on X11 so an error message
31525 isn't printed when the user enables dropping. (X11 does accept
31528 2005-06-13 Jackson Harper <jackson@ximian.com>
31530 * TreeView.cs: Remove some TODOS.
31532 2005-06-13 Jackson Harper <jackson@ximian.com>
31534 * Form.cs: Hook into the mdi framework.
31535 * MdiClient.cs: Use the base control collections add method so
31536 parents get setup correctly. Set the default back colour and dock
31538 * MdiChildContext.cs: New class, this bad actor handles an
31539 instance of an MDI window. Right now there is only basic
31540 support. You can drag, close, and resize windows. Minimize and
31541 Maximize are partially implemented.
31543 2005-06-13 Jackson Harper <jackson@ximian.com>
31545 * XplatUIX11.cs: Mash numbers together properly, otherwise we get
31546 freaky when both vals are negative. NOTE: There are probably other
31547 places in XplatUIX11 that this needs to be done.
31549 2005-06-13 Jordi Mas i Hernandez <jordi@ximian.com>
31551 * DataGrid.cs: implement missing methods, move KeyboardNavigation
31552 * DataGridColumnStyle.cs: fixes signature
31554 2005-06-12 Jackson Harper <jackson@ximian.com>
31556 * XplatUIX11.cs: Use sizing cursors similar to the ones on
31559 2005-06-11 Jackson Harper <jackson@ximian.com>
31561 * StatusBarPanel.cs: Signature cleanups. Implement
31564 2005-06-10 Jordi Mas i Hernandez <jordi@ximian.com>
31566 * DataGridTextBoxColumn.cs: Honors aligment
31567 * GridColumnStylesCollection.cs: Contains is case unsensitive
31568 * GridTableStylesCollection.cs: several fixes
31569 * DataGridTableStyle.cs: default column creation
31570 * DataGridDrawingLogic.cs: fixes
31571 * CurrencyManager.cs: ListName property
31572 * DataGrid.cs: multiple styles support
31573 * DataGridColumnStyle.cs: fixes
31576 2005-06-10 Peter Bartok <pbartok@novell.com>
31578 * Control.cs(Select): Moved SetFocus call to avoid potential
31579 loops if controls change the active control when getting focus
31580 * UpDownBase.cs: Fixes to allow proper keyboard focus after clicking
31581 the up/down buttons
31583 2005-06-10 Matthias Felgner <matthiasf@voelcker.ocm>
31585 * ImageListConverter.cs: Implemented
31587 2005-06-10 John BouAntoun <jba-mono@optusnet.com.au>
31589 * MonthCalendar.cs: Wired in NumericUpDown control for year
31591 2005-06-10 John BouAntoun <jba-mono@optusnet.com.au>
31593 * MonthCalendar.cs: Removed MonoTodo attributes on Click and
31594 DoubleClick events, since they are not meant to be fired.
31596 2005-06-09 Peter Bartok <pbartok@novell.com>
31598 * UpDownBase.cs, NumericUpDown.cs, DomainUpDown.cs: Integrated
31599 Jonathan's standalone controls into MWF, implemented missing
31600 events, attributes and methods; added xxxAccessible classes
31601 * AccessibleObject.cs: Made fields internal so other classes
31602 can change them if needed
31604 2005-06-09 Jonathan Gilbert <2a5gjx302@sneakemail.com>
31606 * UpDownBase.cs: Complete implementation
31607 * NumericUpDown.cs: Complete implementation
31608 * DomainUpDown.cs: Complete implementation
31610 2005-06-09 Jordi Mas i Hernandez <jordi@ximian.com>
31612 * DataGridTextBoxColumn.cs: drawing fixes
31613 * DataGridCell.cs: fixes ToString method to match MSNet
31614 * DataGridTableStyle.cs: fixes
31615 * DataGridBoolColumn.cs: fixes, drawing
31616 * DataGridDrawingLogic.cs: fixes, new methods
31617 * DataGridTextBox.cs: Keyboard and fixes
31619 - Keyboard navigation
31621 - Row selection (single, multiple, deletion, etc)
31624 2005-06-07 Jackson Harper <jackson@ximian.com>
31626 * ThemeWin32Classic.cs: Clear the background area when drawing
31629 2005-06-06 Peter Bartok <pbartok@novell.com>
31631 * ImageListStreamer.cs: Fixed signature for GetData
31632 * CheckBox.cs: Fixed base class for CheckBoxAccessibleObject
31634 - Added missing ChildAccessibleObject class
31635 - Added missing OnXXXFocus overrides, switched to using those
31636 instead of the event handler
31638 - Added Parent property for ControlAccessibleObject
31641 - Added ResetBindings()
31642 * ListBindingConverter.cs: Implemented some methods
31643 * ButtonBase.cs: Added missing ButtonBaseAccessibleObject class
31644 * ImageList.cs: Implemented basic handle scheme, removed TODOs
31645 * ContainerControl.cs: Fixed signature, now subscribing to the
31646 ControlRemoved event instead of overriding the handler, LAMESPEC
31647 * CurrencyManager.cs: Added missing attribute
31648 * MonthCalendar.cs: Added missing properties
31650 2005-06-06 Jordi Mas i Hernandez <jordi@ximian.com>
31652 * DataGridColumnStyle.cs: fixes for DataGridColumnStyle
31654 2005-06-06 Gaurav Vaish and Ankit Jain
31656 * DataSourceHelper.cs: Gaurav Vaish and Ankit Jain patch for databinding
31657 * DataGrid.cs: Gaurav Vaish and Ankit Jain patch for databinding
31659 2005-06-06 Jordi Mas i Hernandez <jordi@ximian.com>
31661 * Control.cs: fixes CreateParams Width / Height.
31663 2005-06-05 Peter Bartok <pbartok@novell.com>
31665 * Win32DnD.cs: Removed compilation warnings
31667 2005-06-05 Peter Bartok <pbartok@novell.com>
31669 * Control.cs (CreateParams): Since we don't know if one of the
31670 properties we use is overridden, lets make sure if we fail accessing
31671 we continue with a backup plan
31673 2005-06-05 Peter Bartok <pbartok@novell.com>
31676 - Removed debug output
31677 - Added MarshalAs attribute to ensure proper marshalling of FORMATETC
31679 - Plugged resource leak
31680 * XplatUIStructs.cs: Changed ClipboardFormats size to ushort, to match
31683 2005-06-05 Peter Bartok <pbartok@novell.com>
31685 * XplatUIWin32.cs: Removed DnD code
31686 * Win32DnD.cs: Implemented drop source and drop target functionality
31688 2005-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
31690 * UpDownBase.cs: remove duplicate addition of event, enable some code
31691 that was commented out.
31692 * NumericUpDown.cs: added missing attributes and Hexadecimal property.
31693 Validate input when a key is pressed. It works fine now for every
31694 combination of Hexadecimal. Only missing some drawing love when sharing
31695 space with other controls.
31697 2005-06-04 Peter Bartok <pbartok@novell.com>
31700 - We need to pass a window for DragDrop, so enable callback events
31701 - Added DnD callback events when being a DragSource
31702 * XplatUI.cs (StartDrag): Added window handle argument
31703 * XplatUIDriver.cs (StartDrag): Added window handle argument
31704 * QueryContinueDragEventArgs: Made fields internally accessible so
31705 drivers can set them
31706 * GiveFeedbackEventArgs: Made fields internally accessible so drivers
31709 2005-06-03 Jordi Mas i Hernandez <jordi@ximian.com>
31711 * DataGridTextBoxColumn.cs: column text editing
31712 * DataGridTableStyle.cs: Respect columns styles created by the user
31713 * DataGridDrawingLogic.cs: lots of drawing fixes and enhanments
31714 * DataGridBoolColumn.cs: bool column editing
31715 * DataGrid.cs: fixes to scrolling, properties, etc
31716 * DataGridTextBox.cs: handle keyboard
31717 * DataGridColumnStyle.cs: fixes
31719 2005-06-02 Jackson Harper <jackson@ximian.com>
31721 * ImageListStreamer.cs: Somewhat broken implementation of
31722 GetObjectData. The RLE needs some work to match MS properly.
31724 2005-06-02 Jackson Harper <jackson@ximian.com>
31726 * X11Dnd.cs: Attempting to keep at least one file in MWF
31729 2005-06-02 Peter Bartok <pbartok@novell.com>
31731 * X11DnD.cs: Use Marshal.SizeOf instead of sizeof, no /unsafe required
31734 2005-06-02 Peter Bartok <pbartok@novell.com>
31736 * Control.cs: Removed MonoTODO from DoDragDrop and added call to Xplat
31737 * XplatUI.cs: Added DoDragDrop() method
31738 * XplatUIDriver.cs: Added DoDragDrop() method
31740 2005-06-02 Jackson Harper <jackson@ximian.com>
31742 * Splitter.cs: Implement BorderStyle.
31744 2005-06-02 Jackson Harper <jackson@ximian.com>
31746 * XplatUIX11.cs: Tie into the X11Dnd subsystem.
31747 * X11Dnd.cs: New file. A subsystem that handles drag and drop on
31750 2005-06-02 Peter Bartok <pbartok@novell.com>
31753 - Added Data setter
31754 - Fixed broken insertion code for SetData, now also
31755 overwrites any existing entry of the same format name
31756 * Hwnd.cs: Added list of pointers that automatically gets
31757 freed when the window is disposed
31758 * XplatUI.cs: Call driver initialization method when loading
31761 - OnDragLeave takes EventArgs, not DragEventArgs
31762 - Added setting of WS_EX_ACCEPTFILES style when dropping is
31764 - Forces style update when drop state changes
31765 * XplatUIWin32.cs: Implemented Drag'n'Drop (as good as possible,
31766 not perfect since we cannot (yet) call the IDataObject.GetData()
31767 method, we keep getting 0x80004005 error, dunno why)
31769 2005-06-02 Peter Bartok <pbartok@novell.com>
31771 * DragEventArgs.cs: Make fields internal so we can cache the
31772 object and re-set the fields from XplatUI
31774 2005-06-02 Jackson Harper <jackson@ximian.com>
31776 * Control.cs: Add some internal methods so the DnD subsystem can
31777 raise DnD events. Also call into the driver when AllowDrop is set.
31779 * XplatUIDriver.cs: New method for setting whether or not a window
31780 is allowed to accept drag and drop messages.
31782 2005-06-01 Jordi Mas i Hernandez <jordi@ximian.com>
31784 * ScrollBar.cs: Make sure that values sent in Scroll events
31785 are always between Maximum and Minimum.
31787 2005-06-01 Marek Safar <marek.safar@seznam.cz>
31789 * Menu.cs: Call MenuChanged when menuitem visibility has been
31791 * MenuItem.cs: Rebuild menu when item is (not) visible.
31792 * MainMenu.cs: MainMenu has special MenuChanged.
31793 * Theme.cs: Caption and FrameBorderSize are not fixed.
31794 * XplatUI.cs: Added CaptionHeight,FrameBorderSize.
31795 * XplatUIDriver.cs: Introduced Caption and FrameBorderSize.
31797 * XplatUIOSX: Caption and FrameBorderSize not implemented yet.
31798 * XplatUIWin32.cs: Get Caption and FrameBorderSize from system.
31800 2005-05-30 Jackson Harper <jackson@ximian.com>
31802 * DataFormat.cs: We can't statically initialize this stuff because
31803 it calls into the xplatui and could create a loop. So we lazy init
31806 2005-05-28 Jackson Harper <jackson@ximian.com>
31808 * Control.cs: Proper implementation of Product(Name/Version).
31810 2005-05-27 Jackson Harper <jackson@ximian.com>
31812 * DataObject.cs: Dont crash if no data is found.
31814 2005-05-26 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
31815 * MdiClient.cs: Add missing Localizable attribute to BackgroundImage property
31816 as per status page, guessing it should be set to true
31818 2005-05-26 Jordi Mas i Hernandez <jordi@ximian.com>
31820 * DataGridTextBoxColumn.cs: Draws text and basic text formatting
31821 * DataGridTableStyle.cs: set proper formatting text, def header text
31822 * ThemeWin32Classic.cs: new themable paramaters
31823 * DataGridBoolColumn.cs: paint check box, get data, fixes
31824 * DataGridDrawingLogic.cs: huge improvements in painting, fixes, new methods
31825 * DataGrid.cs: fixes properties, implements vertical and horizontal scrolling
31826 * DataGridColumnStyle.cs: fixes
31827 * Theme.cs: new themable paramaters
31829 2005-05-26 Peter Bartok <pbartok@novell.com>
31831 * ContainerControl.cs: Pass AdjustFormScrollbars() call on to base
31833 2005-05-24 Jonathan S. Chambers <jonathan.chambers@ansys.com>
31834 * Control.cs: Fixed LowOrder and HighOrder to preserve sign.
31836 2005-05-24 Peter Bartok <pbartok@novell.com>
31838 * OpenFileDialog.cs, Form.cs, Menu.cs, GroupBox.cs, UserControl.cs,
31839 Label.cs, DataGridTextBoxColumn.cs, PropertyGrid.cs, ErrorProvider.cs
31840 Splitter.cs, Control.cs, FontDialog.cs, TabPage.cs,
31841 FolderBrowserDialog.cs, HelpProvider.cs, DataGridTableStyle.cs,
31842 NotifyIcon.cs, FileDialog.cs, ListView.cs, SaveFileDialog.cs,
31843 ToolBarButton.cs, ImageList.cs, DataGridBoolColumn.cs, Panel.cs,
31844 DataGrid.cs, DataGridTextBox.cs, ListBox.cs, TrackBar.cs,
31845 AxHost.cs, TabControl.cs, ScrollableControl.cs, ToolBar.cs,
31846 DataGridColumnStyle.cs, PictureBox.cs, DateTimePicker.cs,
31847 StatusBar.cs, MonthCalendar.cs, TreeView.cs: Added
31848 missing attributes, etc
31849 * DataGridPreferredColumnWidthTypeConverter.cs: Added
31851 2005-05-24 Peter Bartok <pbartok@novell.com>
31853 * Help.cs: Added, implemented trivial functions, throws up MessageBox
31854 when user tries to get help
31855 * DataObject.cs, DataFormats.cs, LinkArea.cs,
31856 SelectionRangeConverter.cs, Clipboard.cs : Removed unused variables
31857 to suppress warnings
31858 * XplatUIWin32.cs, XplatUIOSX.cs, XplatUIX11.cs: Removed unused code to
31859 avoid unreachable code warning
31861 2005-05-20 Peter Bartok <pbartok@novell.com>
31863 * CursorConverter.cs (ConvertTo): Switched to use Cursor.GetObjectData
31865 2005-05-20 Jordi Mas i Hernandez <jordi@ximian.com>
31867 * DataGridTextBoxColumn.cs: Basic painting methods
31868 * DataGridTableStyle.cs: Set table style in the column
31869 * ThemeWin32Classic.cs: Use Theme for colors
31870 * DataGridDrawingLogic.cs: Implement more drawing
31871 * DataGrid.cs: drawing, theming, enhacements, fixes
31872 * DataGridColumnStyle.cs: fixes, drawing
31873 * Theme.cs: theming for Datagrid
31875 2005-05-20 Peter Bartok <pbartok@novell.com>
31877 * Cursor.cs: Implemented GetObjectData() method
31879 2005-05-20 Peter Bartok <pbartok@novell.com>
31881 * Cursors.cs: Added setting of cursor name
31883 - Implemented constructors
31884 - Implemented Draw and DrawStretched
31885 - Implemented Current property
31886 - Implemented == and != operators
31887 - Implemented Dispose()
31888 - Implemented ToString
31889 - Added missing attributes
31891 - Added missing reset for OverrideCursor when DoEvents is called
31892 - Fixed creation of cursor, logic was wrong
31894 - Added missing reset for OverrideCursor when DoEvents is called
31895 - Fixed creation of cursor, bit arrays were swapped
31896 * Clipboard.cs: Removed obsolete MonoTODO attribute
31898 2005-05-20 Jordi Mas i Hernandez <jordi@ximian.com>
31900 * ComboBox.cs: fixes OnSelectedItemChanged
31901 * ControlBindingsCollection.cs: fixes item range check
31903 2005-05-20 Jordi Mas i Hernandez <jordi@ximian.com>
31906 - Calc preferred height properly
31907 - Implement missing properties
31909 * NumericUpDown.cs: Implement missing events
31911 2005-05-19 Jackson Harper <jackson@ximian.com>
31913 * TabControl.cs: New method that resizes the tab pages before
31914 redrawing them. This as needed as the control is double buffered
31915 and sizing will not be recalculated unless ResizeTabPages is
31917 * TabPage.cs: Set base.Text instead of Text in the constructor so
31918 that UpdateOwner does not get called. Use the new Redraw method of
31919 TabControl instead of Refresh so the sizing is recalculated.
31920 * ThemeWin32Classic.cs: Draw the text for button tabs.
31922 2005-05-19 Jackson Harper <jackson@ximian.com>
31924 * Control.cs: Paint control background images. Fix typo where
31925 PaintControlBackground was not getting called correctly.
31927 2005-05-19 Peter Bartok <pbartok@novell.com>
31929 * ScrollableControl.cs (DisplayRectangle): Undid my last change until
31930 I can investigate, apparently I broke FileDialog
31932 2005-05-19 Marek Safar <marek.safar@seznam.cz>
31934 * AxHost.cs: Some simple properties.
31935 * Control.cs: window must be accessible after ctor.
31936 * Form.cs: Added TransparencyKey property.
31937 * TextBoxBase.cs: Implemented Clear. Text property can be null.
31938 * XplatUIWin32.cs: SetBorderStyle implemented.
31940 2005-05-18 Peter Bartok <pbartok@novell.com>
31942 * DataObject.cs: Entries are not global but particular to the
31943 DataObject, now it behaves that way
31944 * XplatUIWin32.cs: Implemented Clipboard methods
31945 * Clipboard.cs: Implemented
31946 * ScrollableControl.cs (DisplayRectangle): Fixed calculation
31947 * XplatUIOSX.cs: Updated to final clipboard prototypes
31948 * XplatUIX11.cs: Implemented Clipboard methods
31949 * XplatUIDriver.cs: Updated to final clipboard prototypes
31950 * XplatUIStructs.cs:
31951 - Added BITMAPINFOHEADER struct
31952 - Added ClipboardFormats enum
31954 - Added ClipboardStruct
31955 - Added Atom enum items for clipboard types
31956 - Fixed atom types for Selection event structures
31958 - Added internal properties and methods for drivers to enumerate
31960 - Switched initialization method to allow drivers to assign their
31961 own IDs even for the MS predefined clipboard IDs
31962 * XplatUI.cs: Updated to final clipboard interface
31964 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
31965 * PropertyGridView.cs: Fixed compiler warnings.
31967 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
31968 * PropertyGrid.cs: Added some event calls
31969 * PropertyGridView.cs: Change drawing code to use double buffering
31970 * PropertyGridTextBox.cs: Changed Text property name
31971 * GridItem.cs: Added Bounds property.
31972 * GridEntry.cs: Added Bounds property.
31974 2005-05-17 Lluis Sanchez Gual <lluis@novell.com>
31976 * Binding.cs: Use IsInstanceOfType instead of IsAssignableFrom
31977 since GetType() may not return the correct type if the object is
31980 2005-05-17 Jordi Mas i Hernandez <jordi@ximian.com>
31982 * TreeNodeCollection.cs: fixes get/set item ranges
31984 2005-05-15 Jordi Mas i Hernandez <jordi@ximian.com>
31986 * ListBox.cs: Kazuki Oikawa's PreferredHeight and ItemHeight fixes
31988 2005-05-15 Jordi Mas i Hernandez <jordi@ximian.com>
31990 * ComboBox.cs: Fix item range comparation
31991 * ListView.cs: Fix item range comparation
31993 2005-05-03 Alexander Olk <xenomorph2@onlinehome.de>
31996 - Clear example panel when OnPaint is called
31997 - Better solution for displaying the example panel text
31998 - Select default indexes in the ListBoxes
32000 2005-05-11 Geoff Norton <gnorton@customerdna.com>
32002 * XplatUIOSX.cs: Avoid painting into invisible views. Fixes #74926
32004 2005-05-11 Peter Bartok <pbartok@novell.com>
32006 * LinkArea.cs: Added and implemented LinkAreaTypeConverter class
32007 * SelectionRangeConverter.cs: Implemented
32008 * PropertyGrid.cs: Fixed attribute value
32010 - Invoke(): Don't call Begin/EndInvoke if it is not neccessary
32011 - Added Sebastien Pouliot's CAS Stack Propagation fixes
32012 * XplatUIDriver.cs: Added new XplatUIDriverSupport class, for code
32013 that's common to all drivers. First methods to go there are
32014 Sebastien Pouliot's CAS Stack Propagation helper methods
32015 * XplatUIWin32.cs, XplatUIX11.cs, AsyncMethodData.cs: Fixes by
32016 Sebastien Pouliot for CAS Stack Propagation
32018 2005-05-11 Geoff Norton <gnorton@customerdna.com>
32021 XplatUIOSX.cs: More cosmetic cleanup courtesy of Artyom Tyazhelov (Artyom.Tyazhelov@helmes.ee)
32023 2005-05-12 Jordi Mas i Hernandez <jordi@ximian.com>
32025 * DataGridTextBoxColumn.cs: fixed some members
32026 * GridColumnStylesCollection.cs: indexed column is case insensitive
32027 * DataGridTableStyle.cs: fixes
32028 * ThemeWin32Classic.cs: add new theme parameter
32029 * Theme.cs: add new theme parameter
32030 * DataGridDrawingLogic.cs: Datagrid's drawing logic
32031 * DataGrid.cs: fixes, new internal properties, etc.
32032 * DataGridColumnStyle.cs: allows to set grid value
32035 2005-05-10 Peter Bartok <pbartok@novell.com>
32037 * AccessibleObject.cs:
32038 - Removed MonoTODO attribute on help, method is correct
32039 - Fixed Bounds property
32040 * AxHost.cs: Moved MonoTODO
32041 * ButtonBase.cs: Now setting AccessibleObject properties
32042 * RadioButton.cs: Setting proper AccessibleObject role
32043 * CheckBox.cs: Setting proper AccessibleObject role
32044 * ControlBindingsCollection.cs: Added properties, methods and attributes
32045 * DataFormats.cs: Fixed awkward internal API, and changed to enable
32046 userdefined DataFormats.Format items as well
32047 * ListControl.cs: Removed data_member from the public eye
32048 * OpenFileDialog.cs:
32049 - Made class sealed
32050 - Added missing attributes
32051 * SaveFileDialog.cs: Added missing attributes
32052 * ImageListStreamer.cs: Fixed code that caused warnings
32053 * LinkLabel.cs: Removed unreachable code
32054 * TreeView.cs: Fixed code that caused warnings
32055 * PropertyGridView.cs: Fixed code that caused warnings
32056 * GridColumnStylesCollection.cs: Added missing attributes
32057 * GridTableStylesCollection: Added missing attribute
32058 * PropertyManager: Added .ctor
32059 * SecurityIDType: Added
32060 * DataObject.cs: Implemented class
32061 * LinkArea.cs: Added missing attribute
32063 2005-05-11 Jordi Mas i Hernandez <jordi@ximian.com>
32065 * RadioButton.cs: call base method to allow to fire OnClick event
32066 * UpDownBase.cs: OnMouseUp call base method
32067 * CheckedListBox.cs: call base method before returning
32068 * TrackBar.cs: call base method before returning
32071 2005-05-10 Peter Bartok <pbartok@novell.com>
32073 * XplatUIX11.cs: Fix for #74902, check pending timers when peeking
32076 2005-05-10 Peter Bartok <pbartok@novell.com>
32078 * DataFormats.cs: Implemented
32079 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs,
32080 XplatUIX11.cs: Added Clipboard APIs
32081 * XplatUIWin32.cs: Implemented Clipboard APIs
32082 * FolderBrowserDialog.cs: Added missing event, attributes
32084 2005-05-10 Jordi Mas i Hernandez <jordi@ximian.com>
32086 * CheckBox.cs: call base method to allow to fire OnClick event
32088 2005-05-09 Sebastien Pouliot <sebastien@ximian.com>
32090 * XplatUI.cs: Use PlatformID.Unix under NET_2_0.
32092 2005-05-06 Peter Bartok <pbartok@novell.com>
32094 * XplatUIX11.cs: Redid Jackson's fix, it was causing a busy loop
32095 * Screen.cs: Implemented
32096 * HelpNavigator.cs: Added
32097 * XplatUIWin32.cs: Added SystemParametersInfo call, fixed WorkArea
32099 * HelpProvider.cs: Implemented all we can do until we have a CHM
32100 help library (which means that "What's This" does work now)
32102 2005-05-06 Jackson Harper <jackson@ximian.com>
32104 * XplatUIX11.cs: Fix waking up the main loop.
32106 2005-05-05 Peter Bartok <pbartok@novell.com>
32108 * XplatUI.cs: Updated revision
32109 * Form.cs: Removed enless loop
32110 * GroupBox.cs (OnPaint): Added call to base.OnPaint()
32111 * Label.cs (OnPaint): Added call to base.OnPaint()
32112 * ToolTip.cs: Made ToolTipWindow reusable for other controls
32113 * LinkLabel.cs (OnPaint): Added call to base.OnPaint()
32114 * UpDownBase.cs (OnPaint): Moved base.OnPaint() call to end of method
32116 * ButtonBase.cs: Moved base.OnPaint() call to end of method
32117 * ThemeWin32Classic.cs: Replaced references to ToolTip with references
32118 to ToolTip.ToolTipWindow for drawing and size methods; this allows
32119 reuse of ToolTipWindow by other controls
32120 * SizeGrip.cs: Moved base.OnPaint() call to end of method
32121 * XplatUIX11.cs: Now clipping drawing area (experimental)
32122 * PictureBox.cs: Moved base.OnPaint() call to end of method
32123 * Theme.cs: Fixed ToolTip abstracts to match new format
32124 * ErrorProvider.cs: Implemented
32126 2005-05-05 Jordi Mas i Hernandez <jordi@ximian.com>
32128 * Label.cs: fire events using OnAutoSizeChanged and OnTextAlignChanged
32132 - Implements LinkBehavior
32133 - Fixes many issues
32135 2005-05-03 Jackson Harper <jackson@ximian.com>
32137 * ListView.cs: Calculate the scrollbar positioning on resize and
32138 paint, so they get put in the correct place.
32140 2005-05-03 Alexander Olk <xenomorph2@onlinehome.de>
32142 * ColorDialogs.cs: The small color panels are now handled by
32143 SmallColorControl. This fixes drawing of the focus rectangle
32144 and adds a 3D border.
32146 2005-05-03 Peter Bartok <pbartok@novell.com>
32148 * Control.cs: Modified version of Jonathan Chamber's fix for
32151 2005-05-03 Jackson Harper <jackson@ximian.com>
32153 * ListView.cs: Remove redraw variable. Control now handles whether
32154 or not a redraw needs to be done, and will only raise the paint
32155 event if redrawing is needed.
32157 2005-05-03 Jackson Harper <jackson@ximian.com>
32159 * Splitter.cs: No decorations for the splitter form. Cache the
32162 2005-05-03 Jackson Harper <jackson@ximian.com>
32164 * TreeView.cs: Use dashed lines to connect nodes. Use the
32165 ControlPaint method for drawing the focus rect instead of doing
32168 2005-05-02 Peter Bartok <pbartok@novell.com>
32170 * LinkLabel.cs: Fixed the fixes from r43566 and 43521
32172 2005-04-29 Jackson Harper <jackson@ximian.com>
32174 * ThemeWin32Classic.cs: Don't clear the GC that will clear the
32175 entire image buffer. Just clear the clipping rectangle.
32177 2005-04-29 Jackson Harper <jackson@ximian.com>
32179 * ThemeWin32Classic.cs: Don't draw list view items that are
32180 outside the clipping rectangle.
32182 2005-04-29 Jordi Mas i Hernandez <jordi@ximian.com>
32184 * ListBox.cs: added horizontal item scroll
32186 2005-04-29 Jackson Harper <jackson@ximian.com>
32188 * ThemeWin32Classic.cs: Remove some old debug code that was
32189 causing flicker with the new double buffering code.
32191 2005-04-29 John BouAntoun <jba-mono@optusnet.com.au>
32193 * MonthCalendar.cs, DateTimePicker.cs: Made monthcalendar dropdwon
32194 behave like combobox and comboboxlist (still not sure if this is
32197 2005-04-28 Jackson Harper <jackson@ximian.com>
32199 * ThemeWin32Classic.cs: Don't fill the middle of progress
32200 bars. This fills areas outside of the clip bounds that don't need
32203 2005-04-28 Jackson Harper <jackson@ximian.com>
32205 * Control.cs: Don't expose functionality to touch the image buffers.
32207 * ListView.cs: We do not need to (and no longer can) manipulate
32208 the image buffers directly. All of this is handled by Control.
32210 2005-04-28 Peter Bartok <pbartok@novell.com>
32212 * RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
32213 RichTextBoxScrollBars.cs, RichTextBoxStreamType.cs,
32214 RichTextBoxFinds.cs, RichTextBoxWordPunctuations.cs: Added
32216 2005-04-28 Jordi Mas i Hernandez <jordi@ximian.com>
32219 - Adjust control's height for non-simple comboboxes (bug fix)
32221 * MenuAPI.cs: remove unused var
32222 * ScrollBar.cs: remove unsed var
32224 * ListBox.cs: unselect items when clearing
32226 2005-04-28 Jordi Mas i Hernandez <jordi@ximian.com>
32228 * ListControl.cs: honors OnPositionChanged and default Selected Item
32229 * ListBox.cs: unselect items when clearing
32231 2005-04-27 Jackson Harper <jackson@ximian.com>
32233 * X11Keyboard.cs: Initialize a default keyboard and give a warning
32234 if a "correct" keyboard is not found. This will make us not crash,
32235 but might give some users bad keyboard layouts...seems to be the
32236 same thing rewind does.
32238 2005-04-27 Jackson Harper <jackson@ximian.com>
32240 * BindingManagerBase.cs: Attach the current/position changed
32241 handlers to their respective events.
32243 2005-04-27 Jackson Harper <jackson@ximian.com>
32245 * Control.cs: Make sure that the first WM_PAINT does a full draw,
32247 * ThemeWin32Classic.cs: Don't fill the background for picture
32248 boxes. This could overright user drawing.
32249 * ComboBox.cs: Just fill the clipping rect not the entire client
32250 rect when drawing the background. This prevents pieces of the
32251 image buffer from getting overwritten and is theoretically faster.
32253 2005-04-26 Jordi Mas i Hernandez <jordi@ximian.com>
32255 * ComboBox.cs: Databinding support fixes, fire missing events
32256 * ListControl.cs: implement missing methods and properties, fixes
32257 * ThemeWin32Classic.cs: Databiding support on Drawing
32258 * CheckedListBox.cs: Databinding support fixes, fire missing events
32259 * ListBox.cs: Databinding support fixes, fire missing events
32261 2005-04-25 Peter Bartok <pbartok@novell.com>
32263 * LinkLabel.cs: Length of LinkArea is not allowed to be negative
32265 2005-04-25 Jackson Harper <jackson@ximian.com>
32267 * TreeView.cs: Use the horizontal scrollbars height not width when
32268 determining how much of the client area is available.
32270 2005-04-25 Jackson Harper <jackson@ximian.com>
32272 * Control.cs: Double buffering is handled differently now. As per
32273 the spec, the extra buffer is created in the WM_PAINT message and
32274 passed down to the control's drawing code.
32282 * PropertyGridView.cs:
32294 * DateTimePicker.cs:
32296 * TreeView.cs: Update to new double buffering system.
32297 * MonthCalendar.cs: Uncomment block, as Capture is now
32298 working. Update to new double buffering
32299 * LinkLabel.cs: Lazy init the link collection. Update to new double buffering
32300 * PaintEventArgs.cs: New internal method allows us to set the
32301 graphics object. This is used for double buffering.
32302 * ThemeWin32Classic.cs: Give the picture box drawing code a clip
32303 rectangle. The internal paint_area var has been removed from
32304 StatusBar. The clipping rect should be used instead.
32305 * Theme.cs: Give the PictureBox drawing method a clipping rect.
32306 * TabPage.cs: The RefreshTabs method was removed, so just call the
32307 tab controls Refresh method now.
32308 * TabControl.cs: Update to new double buffering. Make sure the
32309 handle is created before sizing the tab pages, otherwise we will
32310 get stuck in a loop.
32312 2005-04-24 Borja Sanchez Zamorano <borsanza@gmail.com>
32314 * LinkLabel.cs: Fix typo, bug #74719; patch
32315 from Borja Sanchez Zamorano
32317 2005-04-22 Jackson Harper <jackson@ximian.com>
32319 * TreeNode.cs: Implement Handle stuff.
32320 * TreeView.cs: Utility methods so nodes can get/lookup by handle.
32322 2005-04-22 Jordi Mas i Hernandez <jordi@ximian.com>
32324 * DataGridTextBoxColumn.cs: call base constructors, fixes
32325 * GridColumnStylesCollection.cs: missing events, methods, and functionality
32326 * GridTableStylesCollection.cs: fixes, check duplicate mapping names
32327 * DataGridTableStyle.cs: implements create default column styles
32328 * DataGridBoolColumn.cs: which types can handle
32329 * DataGrid.cs: missing methods, fixes, new functionality
32330 * DataGridColumnStyle.cs: fixes
32332 2005-04-20 Alexander Olk <xenomorph2@onlinehome.de>
32333 * FolderBrowserDialog.cs:
32334 - Use a thread to fill the TreeView
32335 - Adjusted some sizes
32337 2005-04-19 Peter Bartok <pbartok@novell.com>
32339 * LinkLabel.cs: (Re-)create the pieces when setting the Text
32340 property. Fixes #74360.
32342 2005-04-19 Jackson Harper <jackson@ximian.com>
32344 * XEventQueue.cs: Lock when getting the lockqueue size.
32345 * PictureBox.cs: Call base OnPaint
32347 2005-04-19 Peter Bartok <pbartok@novell.com>
32349 * XplatUIX11.cs: Fixed bug introduced with the HWND rewrite, Async
32350 messages were no longer being processed (this broke BeginInvoke)
32353 2005-04-18 Jackson Harper <jackson@ximian.com>
32355 * TreeView.cs: buglet that caused node images to get drawn
32356 regardless of whether or not they were in the clipping rectangle.
32358 2005-04-18 Jackson Harper <jackson@ximian.com>
32360 * CurrencyManager.cs: There are four rules for GetItemProperties:
32361 - If the type is an array use the element type of the array
32362 - If the type is a typed list, use the type
32363 - If the list contains an Item property that is not an object, use
32365 - use the first element of the list if there are any elements in
32368 2005-04-17 Jackson Harper <jackson@ximian.oom>
32370 * TreeView.cs: Calculate plus minus and checkbox bounds when there is a
32371 click. This handles offsets for scrolling properly and reduces
32372 memory. Also fixed GetNode to not offset now that TopNode works
32374 * TreeNode.cs: No longer need to track the plus minus or checkbox bounds.
32376 2005-04-17 Jackson Harper <jackson@ximian.com>
32378 * CursorConverter.cs: Initial implementation.
32380 2005-04-15 Jordi Mas i Hernandez <jordi@ximian.com>
32382 * ListControl.cs: work towards complex data binding support on ListControl
32383 * CurrencyManager.cs: work towards complex data binding support on ListControl
32384 * ListBox.cs: work towards complex data binding support on ListControl
32387 2005-04-15 Jordi Mas i Hernandez <jordi@ximian.com>
32389 * GridTableStylesCollection.cs: fixes name and constructor
32390 * DataGridTableStyle.cs: fixes
32391 * DataGridBoolColumn.cs: fixes names and constructors
32392 * DataGrid.cs: define methods and properties. Some init implementations
32393 * DataGridCell.cs: define methods and properties. Some init implementations
32394 * GridTablesFactory.cs: Define methods and properties
32396 2005-04-15 Geoff Norton <gnorton@customerdna.com>
32398 * XplatUIOSX.cs: Handle proper mouse tracking even if the current
32399 graphics port changes. We still want the coordinates in global screen
32402 2005-04-14 Jackson Harper <jackson@ximian.com>
32404 * TreeView.cs: Handle clicks when plus minus is disabled. Don't
32405 check plus minus or checkbox clicks unless those features are enabled.
32407 2005-04-14 Jackson Harper <jackson@ximian.com>
32409 * TreeView.cs: Add methods for setting the top and bottom visible
32410 nodes. TreeNode::EnsureVisible uses these methods.
32411 * TreeNode.cs: Implement EnsureVisible
32413 2005-04-13 Jordi Mas i Hernandez <jordi@ximian.com>
32415 * Form.cs: Pospone menu assignation if the window has not been created yet
32416 * XplatUIWin32.cs: Fixes Win32SetWindowPos, then does not change window
32419 2005-04-12 Jackson Harper <jackson@ximian.com>
32421 * TreeView.cs: Set the TopNode properly when scrolling
32422 occurs. This has the added benifit of reducing the amount of
32423 walking that needs to be done when drawing. Also removed an old
32425 * OpenTreeNodeEnumerator.cs: Fix moving backwards.
32427 2005-04-11 Jordi Mas i Hernandez <jordi@ximian.com>
32429 * Timer.cs: fixes interval setting when the timer is already enabled
32431 2005-04-10 Alexander Olk <xenomorph2@onlinehome.de>
32433 * FolderBrowserDialog.cs: First approach
32435 2005-04-09 Peter Bartok <pbartok@novell.com>
32437 * FolderBrowserDialog: Added
32439 2005-04-07 Jordi Mas i Hernandez <jordi@ximian.com>
32441 * LinkLabel.cs: move drawing code into the theme
32442 * ThemeWin32Classic.cs: drawing code and painting background bugfix
32443 * Theme.cs: define DrawLinkLabel method
32445 2005-04-05 Jackson Harper <jackson@ximian.com>
32447 * BindingContext.cs: Use weak references so these bad actors don't
32448 stay alive longer then they need to.
32450 2005-04-05 Jackson Harper <jackson@ximian.com>
32452 * ListControl.cs: Basic implementation of complex databinding.
32454 * ListBox.cs: Add calls to ListControl databinding methods.
32456 2005-04-05 Alexander Olk <xenomorph2@onlinehome.de>
32459 - Don't change PopupButtonState to Normal when the
32460 PopupButton gets pressed several times.
32461 - Renamed ButtonPanel to PopupButtonPanel
32463 2005-04-05 Jordi Mas i Hernandez <jordi@ximian.com>
32465 * ColorDialog.cs: Use cached objects instead of creating them
32466 * LinkLabel.cs: Use cached objects instead of creating them
32467 * Splitter.cs: Use cached objects instead of creating them
32468 * FontDialog.cs: Use cached objects instead of creating them
32469 * PropertyGridView.cs: Use cached objects instead of creating them
32470 * MessageBox.cs: Use cached objects instead of creating them
32471 * FileDialog.cs: Use cached objects instead of creating them
32472 * ThemeWin32Classic.cs: Use cached objects instead of creating them
32473 * TreeView.cs: Use cached objects instead of creating them
32475 2005-04-04 Jordi Mas i Hernandez <jordi@ximian.com>
32477 * Control.cs: use Equals to compare the font since no == op
32478 * ScrollBar.cs: use Equals to compare the font since no == op
32480 2005-04-04 Alexander Olk <xenomorph2@onlinehome.de>
32482 * SaveFileDialog.cs: Open stream in OpenFile with FileMode Create
32484 2005-04-01 Jackson Harper <jackson@ximian.com>
32486 * Binding.cs: Implement IsBinding.
32487 * BindingManagerBase.cs:
32488 * PropertyManager.cs:
32489 * CurrencyManager.cs: Add IsSuspended property.
32491 2005-04-01 Jackson Harper <jackson@ximian.com>
32493 * Binding.cs: Had some IsAssignableFrom calls backwards.
32495 2005-04-01 Jackson Harper <jackson@ximian.com>
32497 * Binding.cs: Handle null data members when pulling data.
32498 * PropertyManager.cs: Handle the data member being a property that
32501 2005-04-01 Jordi Mas i Hernandez <jordi@ximian.com>
32503 * DataGridTextBoxColumn.cs: fixes signature
32504 * DataGrid.cs: calls right constructor
32506 2005-04-01 Jordi Mas i Hernandez <jordi@ximian.com>
32508 * DataGridTextBoxColumn.cs: implements DataGridTextBoxColumn class
32509 * GridColumnStylesCollection.cs: implements GridColumnStylesCollection
32510 * GridTableStylesCollection.cs: implements GridTableStylesCollection
32511 * DataGridTableStyle.cs: implements DataGridTableStyle
32512 * DataGridBoolColumn.cs: implements DataGridBoolColumn
32513 * DataGridTextBox.cs: implements DataGridTextBox
32514 * DataGridColumnStyle.cs: implements DataGridColumnStyle
32516 2005-03-31 Alexander Olk <xenomorph2@onlinehome.de>
32518 * FileDialog.cs: Added simple PopupButton class for ButtonPanel
32520 2005-03-29 Peter Bartok <pbartok@novell.com>
32523 - Properly implemented CompanyName property
32524 - Fixed LocalUserAppDataPath and UserAppDataPath, now properly
32525 returns a path that includes CompanyName, ProductName and
32526 Version (fixes bug #70330)
32528 2005-03-29 Stefan Buehler <sbuehler@gmx.ch>
32530 * TabPage.cs: Don't use Owner.DisplayRectangle unless owner is valid,
32533 2005-03-28 Alexander Olk <xenomorph2@onlinehome.de>
32535 * FileDialog.cs, SaveFileDialog.cs OpenFileDialog.cs:
32537 - Added ReadOnly CheckBox
32538 - Further refactoring: moved some code from Open-/SaveFileDialog
32541 2005-03-28 Alexander Olk <xenomorph2@onlinehome.de>
32543 * OpenFileDialog.cs: Fixed CheckFileExists
32545 Moved FileView and DirComboBox outside FileDialog class.
32546 They can now be used outside FileDialog
32548 2005-03-27 Alexander Olk <xenomorph2@onlinehome.de>
32550 * FileDialog.cs: Added a contextmenu to change ShowHiddenFiles
32551 * SaveDialog.cs, OpenFileDialog.cs: Fixes for Reset() method
32553 2005-03-27 Alexander Olk <xenomorph2@onlinehome.de>
32555 * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
32556 - Added missing CreatePrompt property in SaveDialog
32557 - Overall SaveDialog handling should be better now
32558 - Added non standard ShowHiddenFiles property
32559 - Added extension, CreatePrompt and OverwritePrompt support in SaveDialog
32560 - Added InitialDirectory and RestoreDirectory support
32562 2005-03-26 Alexander Olk <xenomorph2@onlinehome.de>
32564 * FileDialog.cs: Made dirComboBox usable
32566 2005-03-24 Alexander Olk <xenomorph2@onlinehome.de>
32568 * FileDialog.cs: Added Filter support (case sensitiv)
32570 2005-03-24 Jackson Harper <jackson@ximian.com>
32572 * TabControl.cs: Need a couple more pixels for the lines.
32574 2005-03-23 Jackson Harper <jackson@ximian.com>
32576 * TabControl.cs: Give the tab page focus when it is selected.
32578 2005-03-23 Jackson Harper <jackson@ximian.com>
32580 * TabControl.cs: Account for the drawing of tabs borders when
32581 invalidating. If the slider was clicked dont do click detection on
32584 2005-03-23 Jackson Harper <jackson@ximian.com>
32586 * TabControl.cs: Fix typo, emilinates an unneeded expose event.
32588 2005-03-22 Jonathan Chambers <jonathan.chambers@ansys.com>
32590 * CategoryGridEntry.cs: Added
32591 * GridItem.cs: Added helper properties
32592 * PropertyGridTextBox.cs: Custom textbox control for PropertyGrid.
32593 * GridEntry.cs: Updated code for collection
32594 * PropertyGrid.cs: Cleaned up some formatting
32595 * PropertyGridView.cs: Added drop down functionality for enums.
32596 * GridItemCollection.cs: Added enumerator logic
32597 * PropertyGridEntry.cs: Added
32599 2005-03-19 Alexander Olk <xenomorph2@onlinehome.de>
32602 - Removed unnecessary commented code
32603 - Fixed handling for entering the filename manually in the combobox
32605 2005-03-19 Alexander Olk <xenomorph2@onlinehome.de>
32607 * FileDialog.cs, OpenFileDialog.cs: OpenFileDialog Multiselect now works
32609 2005-03-18 Peter Bartok <pbartok@novell.com>
32611 * ThemeWin32Classic.cs: Moved listview column headers a bit, to avoid
32612 them being touching the border
32614 2005-03-18 Peter Bartok <pbartok@novell.com>
32616 * TextControl.cs: Quick hack to center text better
32618 2005-03-18 Peter Bartok <pbartok@novell.com>
32621 - Don't throw NotImplemented exceptions, just print a notice once
32622 instead (requested by Miguel). This makes running existing SWF
32625 - Commented out Drag'N'Drop XplatUI call (no driver support yet)
32626 - Added context menu trigger on right click
32627 * Panel.cs: Trigger invalidate on resize
32629 - Removed old double-buffer drawing
32630 - Added ResizeRedraw style to force proper update of statusbar
32632 - Removed debug output
32633 * ThemeWin32Classic.cs:
32634 - Fixed drawing of status bar, now draws Text property if there
32635 are no defined panels
32637 2005-03-18 Jackson Harper <jackson@ximian.com>
32639 * ImageList.cs: When the image stream is set pull all the images
32641 * ImageListStreamer.cs: Implement reading image list streams.
32643 2005-03-18 Peter Bartok <pbartok@novell.com>
32645 * ThemeWin32Classic.cs (DrawPictureBox):
32646 - Fixed calculations for centered drawing
32647 - Fixed drawing for normal mode, not scaling the image on normal
32649 2005-03-18 Peter Bartok <pbartok@novell.com>
32651 * ComboBox.cs: Now also firing the OnKeyPress events for the embedded
32654 - Made Open/Save button the accept button for FileDialog
32655 - Tied the cancel button to the IButtonControl cancel button
32656 - Save/Open now properly builds the pathname
32657 - Now handles user-entered text
32658 - Preventing crash on right-click if no item is selected
32659 - Fixed Text property, now uses contents of textbox
32660 - Fixed SelectedText property, now just returns the text part that
32661 is selected in the text box
32663 2005-03-18 Jackson Harper <jackson@ximian.com>
32665 * ThemeWin32Classic.cs: Use the proper func for drawing the focus
32666 rect, make sure to de-adjust the interior rect after drawing the
32669 2005-03-18 Peter Bartok <pbartok@novell.com>
32671 * MenuAPI.cs: Remove menu *before* executing selected action to
32672 prevent the menu from 'hanging around'
32674 2005-03-17 Geoff Norton <gnorton@customerdna.com>
32676 * XplatUIOSX.cs: Implemented WorkingArea property
32678 2005-03-17 Peter Bartok <pbartok@novell.com>
32680 * XplatUIX11.cs: Fixed menu coord calculations
32681 * MenuAPI.cs: Now using new ScreenToMenu()/MenuToScreen() methods
32682 for calculating offsets
32684 2005-03-17 Peter Bartok <pbartok@novell.com>
32686 * Hwnd.cs: Do not consider menu presence for default client
32687 rectangle location/size
32688 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
32689 XplatUIWin32.cs: Added MenuToScreen() and ScreenToMenu() coord
32690 translation functions
32691 * FileDialog.cs: Fixed (what I presume is a) typo
32693 2005-03-17 Jonathan Gilbert <logic@deltaq.org>
32695 * XplatUIX11.cs: Added call to XInitThreads() to allow multi-threaded
32696 X access (avoids X-Async errors)
32698 2005-03-16 Jackson Harper <jackson@ximian.com>
32700 * TabControl.cs: Raise the SelectedIndexChanged event.
32702 2005-03-16 Alexander Olk <xenomorph2@onlinehome.de>
32704 * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
32705 - Removed vertical ToolBar and replaced it with a custom panel
32706 (desktop and home button already work)
32707 - Added Help button (some controls get resized or relocated then)
32708 - Draw correct text depending on Open or Save.
32709 - Fixed some typos...
32711 2005-03-16 Jordi Mas i Hernandez <jordi@ximian.com>
32714 - Only change Maximum and Minimum when need it (bug fix)
32716 2005-03-15 Peter Bartok <pbartok@novell.com>
32718 * Form.cs: Use Handle for icon, to trigger creation if
32719 the window does not yet exist
32721 - CanSelect: Slight performance improvement
32722 - Focus(): Preventing possible recursion
32723 - Invalidate(): Removed ControlStyle based clear flag setting
32724 - WM_PAINT: fixed logic for calling OnPaintBackground
32725 - WM_ERASEBKGND: Fixed logic, added call to new driver method
32726 EraseWindowBackground if the control doesn't paint background
32728 - Moved EraseWindowBackground() method to internal methods
32729 - Removed unused WM_ERASEBKGND handling in GetMessage; msg never comes;
32730 is sent via SendMessage on BeginPaint call on Win32
32732 - Added EraseWindowBackground() method
32733 - No longer sends WM_ERASEBKGND on .Expose, but on call to
32734 PaintEventStart, which more closely matches Win32 behaviour
32735 - Fixed Invalidate() call, now updates new ErasePending Hwnd property
32736 - Fixed SetFocus() to properly deal with client and whole windows
32737 * Hwnd.cs: Added ErasePending property
32738 * XplatUIOSX.cs: Stubbed EraseWindowBackground() method
32739 * XplatUI.cs, XplatUIDriver.cs: Added EraseWindowBackground() method
32741 2005-03-12 Geoff Norton <gnorton@customerdna.com>
32744 - Fix hard loop when timers exist.
32745 - Fix bugs with middle and right click for 3 button mice.
32747 2005-03-11 Peter Bartok <pbartok@novell.com>
32750 - get_WorkingArea: Need to call X directly, GetWindowPos only
32751 returns cached data now
32752 - Added sanity check to GetWindowPos hwnd usage
32754 2005-03-11 Jackson Harper <jackson@ximian.com>
32756 * BindingManagerBase.cs: This method isn't used anymore as
32757 PullData now updates the data in the control.
32759 2005-03-11 Jordi Mas i Hernandez <jordi@ximian.com>
32761 * Form.cs: fixes menu drawing on X11
32762 * MenuAPI.cs: fixes menu drawing on X11
32764 2005-03-11 Peter Bartok <pbartok@novell.com>
32766 * Control.cs: Changed OnCreateControl behaviour based on a suggestion
32767 from Jonathan Gilbert; should fix bug #73606
32768 * XplatUIX11.cs: Fixed NC Mouse message coordinates, they need to be
32769 in Screen coordinates. Thanks, Jordi.
32770 * Form.cs: Added missing attribute
32772 2005-03-11 Peter Bartok <pbartok@novell.com>
32775 - Rudimentary Mdi support
32776 - Removed outdated FormParent code
32777 - Implemented lots of missing properties and methods, still missing
32778 transparency support
32779 - Added missing attributes
32780 - Implemented support for MaximumBounds
32781 - Added firing of various events
32782 * XplatUI.cs: Added SetIcon() method
32783 * XplatUIDriver.cs: Added SetIcon() abstract
32784 * XplatUIOSX.cs: Stubbed out SetIcon() method
32786 - Implemented SetIcon() support
32787 - Moved SetMenu() and SetBorderStyle() to proper alphabetical pos
32788 - Switched to unix line endings
32790 - Made POINT internal so for can access it as part of MINMAX
32791 - Implemented SetIcon() support
32792 - Implemented support for CLIENTCREATESTRUCT (but might have to drop
32793 native Mdi support again, might have to go managed)
32794 * Control.cs: Now fires the StyleChanged event
32795 * MdiClient.cs: Added; still mostly empty
32797 2005-03-10 Peter Bartok <pbartok@novell.com>
32799 * SaveFileDialog.cs: Added emtpy file
32801 2005-03-08 Peter Bartok <pbartok@novell.com>
32803 * Control.cs: Fixed bug #73190; now invokes CreateControl (which
32804 in turn triggers OnCreateContro) when creating a handle for the
32806 * TextControl.cs: Fixed endless loop in certain cases when
32807 replacing the current selection
32809 2005-03-08 Jordi Mas i Hernandez <jordi@ximian.com>
32812 - Honors NewValue changes in Scroll events allowing apps to change it
32813 - Adds First and Last Scroll events
32814 - Fixes Thumb events
32816 2005-03-07 Peter Bartok <pbartok@novell.com>
32818 * Hwnd.cs: Added DefaultClientRectangle property
32819 * XplatUI.cs: Now using the X11 driver Where() method, which provides
32820 more detailed debug information
32822 - Fixed size-change feedback loop, where we would pull an old size
32823 off the queue and mistakenly change our window's size to an
32825 - Now compressing ConfigureNotify events, to reduce looping and
32827 * TextBoxBase.cs: Preventing crash when no text is set and ToString()
32830 2005-03-07 Jackson Harper <jackson@ximian.com>
32832 * Binding.cs: Push data pushes from data -> property. Check if the
32833 property is readonly when attempting to set it.
32835 2005-03-07 Jackson Harper <jackson@ximian.com>
32837 * Binding.cs: Format and parse data correctly. Use ASsignableFrom
32838 instead of IsSubclassOf. Pulling data now sets the value on the
32840 * PropertyManager.cs:
32841 * CurrencyManager.cs: Just need to pull data when updating now,
32842 because PullData will set the value on the control.
32844 2005-03-04 Jackson Harper <jackson@ximian.com>
32846 * Binding.cs: Implement data type parsing and converting on pulled
32847 data. TODO: Are there more ways the data can be converted?
32849 2005-03-04 Jackson Harper <jackson@ximian.com>
32851 * Binding.cs: Support <Property>IsNull checks. Also bind to the
32852 controls Validating method so we can repull the data when the
32853 control loses focus.
32855 2005-03-03 Jordi Mas i Hernandez <jordi@ximian.com>
32858 - Fixes null string format
32861 - Adds enum type checks
32862 - Fixes redrawing and recalc need after changing some properties
32863 - Fixes on focus_item set after the event
32864 - Fixes adding columns after the control has been created
32866 * ThemeWin32Classic.cs:
32867 - Fixes CheckBox focus rectangle
32868 - Fixes ColumnHeader drawing
32871 2005-03-03 Jackson Harper <jackson@ximian.com>
32873 * Binding.cs: Bind to <Property>Changed events so we can detect
32874 when properties are changed and update the data.
32876 2005-03-02 Jordi Mas i Hernandez <jordi@ximian.com>
32879 - Changes 32-bit pixel format to Format32bppArgb to allow transparency
32880 - Fixes ImageList constructor with ImageList container
32881 - Fixes image scaling (wrong parameters at DrawImage)
32883 2005-02-02 Jackson Harper <jackson@ximian.com>
32885 * Binding.cs: Make property searches case-insensitive. Eliminate
32886 some duplicated code.
32888 2005-03-01 Jordi Mas i Hernandez <jordi@ximian.com>
32891 - Handle focus event
32892 - Fix scrollbar events
32893 - Discard highlighted item if remove it
32894 - Fixes SelectedItem with strings
32896 2005-03-01 Peter Bartok <pbartok@novell.com>
32899 - Fixed Visible property, now follows (once again) parent chain
32900 to return false if any control in the chain is visible=false
32901 - Fixed OnParentVisibleChanged, now just calls OnVisibleChanged event
32902 - Fixed several places where is_visible instead of Visible was used
32903 - Implemented FIXME related to focus selection when setting focused
32904 control to be invisible
32906 * XplatUIWin32.cs: Now using proper method to find out if window is
32907 visible. Thanks to Jordi for pointing it out
32909 2005-02-28 Jordi Mas i Hernandez <jordi@ximian.com>
32911 * ComboBox.cs: show/hide scrollbar instead of creating it
32913 2005-02-27 Jackson Harper <jackson@ximian.com>
32915 * CurrencyManager.cs: Add PositionChanged stuff.
32917 2005-02-27 Peter Bartok <pbartok@novell.com>
32919 * XplatUI.cs, XplatUIDriver.cs: Added new GetMenuOrigin() method
32920 * XplatUIOSX.cs: Added GetMenuOrigin() stub
32921 * XplatUIWin32.cs: Implemented GetMenuOrigin()
32923 - Implemented GetMenuDC()
32924 - Implemented GetMenuOrigin()
32925 - Implemented ReleaseMenuDC()
32926 - Implemented generation of WM_NCPAINT message
32927 - Implemented generation and handling of WM_NCCALCSIZE message
32928 * Form.cs: Added debug helper message for Jordi's menu work
32930 - Modified ClientRect property; added setter, fixed getter to handle
32931 setting of ClientRect
32932 - Added MenuOrigin property
32934 2005-02-26 Peter Bartok <pbartok@novell.com>
32937 - Destroys the caret if a window that's being destroyed contains it
32938 - Ignores expose events coming from the X11 queue for windows that
32939 already are destroyed
32940 - Now uses the proper variable for handling DestroyNotify, before we
32941 marked the wrong window as destroyed
32942 - Improved/added some debug output
32944 2005-02-26 Peter Bartok <pbartok@novell.com>
32946 * X11Keyboard.cs: Fixes to work on 64bit systems
32948 2005-02-26 Peter Bartok <pbartok@novell.com>
32951 - Now calling OnHandleDestroyed from DestroyHandle()
32952 instead of Dispose()
32953 - Removed bogus call to controls.Remove() from DestroyHandle()
32955 2005-02-26 Peter Bartok <pbartok@novell.com>
32957 * Control.cs: Properly destroy child windows when our handle is
32960 2005-02-25 Peter Bartok <pbartok@novell.com>
32963 - Added 'DriverDebug' define to allow tracing XplatUI API calls
32964 - Alphabetized Static Methods and Subclasses
32967 - Added XException class to allow custom handling of X11 exceptions
32968 - Created custom X11 error handler, tied into XException class
32969 - Added support for MONO_XEXCEPTIONS env var to allow the user
32970 to either throw an exception on X errors or continue running
32971 after displaying the error
32972 - Added handling of DestroyNotify message
32973 - Added handler for CreateNotify message (still disabled)
32974 - Improved (tried to at least) Where method to provide file and lineno
32976 - Added XErrorHandler delegate
32977 - Added XRequest enumeration (to suppor translation of errors)
32979 2005-02-25 Jackson Harper <jackson@ximian.com>
32981 * PropertyManager.cs: Implement editing features
32982 * CurrencyManager.cs:
32983 * Binding.cs: First attempt at UpdateIsBinding
32984 * BindingManagerBase.cs: Call UpdateIsBinding before
32985 pushing/pulling data.
32987 2005-02-25 Jordi Mas i Hernandez <jordi@ximian.com>
32989 * MenuAPI.cs: Respect disabled items
32990 * ThemeWin32Classic.cs
32991 - Caches ImageAttributes creation for DrawImageDisabled
32992 - Fixes vertical menu line drawing
32993 - Draws disabled arrows in disable menu items
32995 2005-02-24 Peter Bartok <pbartok@novell.com>
32998 - Added UserData property to allow associating arbitrary objects
33000 - Fixed leak; now removing Hwnd references from static windows array
33002 - Fixed Graphics leak in PaintEventEnd
33003 - Removed usage of HandleData, switched over to Hwnd class
33004 * HandleData.cs: Removed, obsoleted by Hwnd.cs
33006 2005-02-24 Jordi Mas i Hernandez <jordi@ximian.com>
33008 * ThemeWin32Classic.cs: Adds Cliping to TrackBar drawing
33009 * ScrollBar.cs: Fixes bug
33010 * TrackBar.cs: removes death code, clipping, mimize refreshes,
33011 keyboard navigation enhancements
33013 2005-02-24 Jordi Mas i Hernandez <jordi@ximian.com>
33015 * Control.cs: Call DefWndProc at WM_PAINT only if UserPaint not defined
33016 * GroupBox.cs: Add control styles
33017 * Label.cs: Add control styles
33018 * UpDownBase.cs: Add control styles
33019 * ListBox.cs: Add control styles
33020 * XplatUIWin32.cs: Fixes wrong parameter order
33023 2005-02-23 Chris Bacon <chris.bacon@docobo.co.uk>
33025 * ListView.cs: Assign owner for ColumnHeader. Patch by Chris Bacon
33027 2005-02-23 Jackson Harper <jackson@ximian.com>
33029 * PropertyManager.cs: Implement property binding. This doesn't
33030 seem to work yet though as (I think) there are some bugs in
33031 System.ComponentModel.PropertyDescriptor.
33032 * BindingContext.cs: Use new PropertyManager constructor.
33034 2005-02-23 Jordi Mas i Hernandez <jordi@ximian.com>
33036 * ProgressBar.cs: use clip region in ProgressBar
33037 * ThemeWin32Classic.cs: use clip region in ProgressBar
33039 2004-02-22 Jackson Harper <jackson@ximian.com>
33041 * BindingsCollection.cs: Remove some debug code.
33043 2005-02-22 Jackson Harper <jackson@ximian.com>
33045 * BindingContext.cs:
33046 * ControlBindingsCollection.cs:
33047 * CurrencyManager.cs:
33049 * BindingManagerBase.cs: Initial implementation
33050 * BindingsCollection.cs: Add an internal contains method that the
33051 BindingManagerBase uses to ensure bindings aren't added twice to
33053 * PropertyManager.cs: Stubbed out.
33055 * ContainerControl.cs: Hook up databinding
33057 2005-02-22 Geoff Norton <gnorton@customerdna.com>
33060 OSXStructs.cs: Refactored to handle the new Hwnd NC logic area.
33061 Fixed Invalidate/Update chain.
33062 Fixed tons of other minor bugs (this is almost a complete rewrite).
33064 2005-02-22 Jordi Mas i Hernandez <jordi@ximian.com>
33066 * ComboBox.cs: do subcontrol creation when the control is created
33068 2005-02-19 Jordi Mas i Hernandez <jordi@ximian.com>
33070 * Label.cs: fixes image drawing (image and imagelist)
33071 * ThemeWin32Classic.cs: cache brushes
33073 2005-02-19 Jordi Mas i Hernandez <jordi@ximian.com>
33075 * Form.cs: Move menu drawing code to Theme class
33076 * ComboBox.cs: Move ComboBox drawing code to Theme class
33077 * MenuItem.cs: Move menu drawing code to Theme class
33078 * MenuAPI.cs: Move menu drawing code to Theme class
33079 * ThemeWin32Classic.cs: New methods
33080 * CheckedListBox.cs: Move CheckedListbox drawing code to Theme class
33081 * ListBox.cs: Move Listbox drawing code to Theme class
33082 * Theme.cs: New methods
33084 2005-02-20 Peter Bartok <pbartok@novell.com>
33087 - Fixed ProcessKeyEventArgs to also handle WM_SYSKEY messages (and
33088 only process mnemonics on those)
33089 - Fixed event sequence for key handling; first calling
33090 ProcessKeyEventArgs now
33092 - Removed WM_KEYDOWN hook, instead we now use ProcessDialogKey()
33093 for processing non-character keys
33094 - Fixed WM_CHAR to generate proper event sequence before processing
33095 * XplatUIWin32.cs: Added ALT key state to ModifierKeys property
33098 2005-02-19 Peter Bartok <pbartok@novell.com>
33100 * UserControl.cs: Added TextChanged event; added attributes
33101 * SizeGrip.cs: Implemented resizing and optional display of grip
33102 * Form.cs: Fixed attribute
33103 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs:
33104 Changed meaning of ScrollWindow bool argument; instead of the
33105 clear attribute (which will be true usually anyway), it gives the
33106 option of moving child controls as well.
33108 - Changed to match new ScrollWindow argument
33109 - Fixed GetWindowPos/SetWindowPos behaviour for toplevel controls,
33110 now handles the implicit parent window a WM puts around us
33111 * ScrollableControl.cs: Implemented (not the prettiest, but it seems
33113 * TextBoxBase.cs: Adjusted to new ScrollWindow arguments
33114 * TreeView.cs: Adjusted to new ScrollWindow arguments
33116 2005-02-19 Jordi Mas i Hernandez <jordi@ximian.com>
33118 * Form.cs: Menu integration with non-client area
33119 * MenuItem.cs: Menu integration with non-client area
33120 * MenuAPI.cs: Menu integration with non-client area
33122 2005-02-18 Peter Bartok <pbartok@novell.com>
33124 * MethodInvoker.cs: Added
33125 * MdiLayout.cs: Added
33126 * SendKeys.cs: Started implementation
33127 * ErrorIconAlignment.cs: Added
33129 2005-02-18 Peter Bartok <pbartok@novell.com>
33131 * XplatUIWin32.cs: Implemented SetMenu(); fixed GetMenuDC()
33132 * Form.cs: Added handling for Menu-related Non-client messages
33134 2005-02-17 Peter Bartok <pbartok@novell.com>
33136 * UpDownBase.cs: Fixed typo, compilation errors
33137 * DomainUpDown.cs: Fixed attribute value
33139 2005-02-16 Miguel de Icaza <miguel@novell.com>
33141 * UpDownBase.cs: Attach entry events.
33143 Add ForeColor property, Focused, InterceptArrowKeys (interception
33144 does not work yet).
33146 2005-02-17 Jordi Mas i Hernandez <jordi@ximian.com>
33149 - Redraw non client are on Setmenu
33150 - Calc proper menu starting point
33152 2005-02-17 Peter Bartok <pbartok@novell.com>
33154 * Application.cs: Fixed message_filter check
33156 2005-02-17 Peter Bartok <pbartok@novell.com>
33158 * Application.cs: Now calls registered message filters
33159 * DockStyle.cs: Fixed attribute
33160 * Form.cs: Fixed attribute
33161 * Menu.cs: Fixed attribute
33162 * ToolTip.cs: Fixed attribute
33163 * TreeNode.cs: Added missing attributes and arranged in regions
33164 * PropertyGrid.cs: Fixed signatures
33165 * TreeNodeCollection.cs: Added attributes
33166 * Splitter.cs: Added missing attributes; arranged into regions
33167 * TabPage.cs: Added missing attributes; arranged into regions
33168 * TextBoxBase.cs: Added missing attributes
33169 * TextBox.cs: Added missing attributes
33170 * ArrangeDirection.cs: Added missing attributes
33171 * TreeNodeConverter.cs: Added stub (needed for TreeNode)
33172 * ToolBarButton.cs: Fixed attributes
33173 * AnchorStyles.cs: Fixed attribute
33174 * TrackBar.cs: Fixed attributes
33175 * TabControl.cs: Added missing attributes and arranged into regions
33176 * ToolBar.cs: Fixed attribute
33177 * StatusBar.cs: Fixed signature, organized into regions and added
33179 * StatusBarPanel.cs: Fixed attributes
33180 * ContentsResizedEventArgs.cs: Implemented
33181 * ContentsResizedEventHandler.cs: Implemented
33182 * DateBoldEventArgs.cs: Implemented
33183 * DateBoldEventHandler.cs: Implemented
33184 * UpDownEventArgs.cs: Implemented
33185 * UpDownEventHandler.cs: Implemented
33187 2005-02-16 Jordi Mas i Hernandez <jordi@ximian.com>
33189 * Form.cs: first Menu NC refactoring
33190 * MenuAPI.cs: first Menu NC refactoring
33192 2005-02-16 Peter Bartok <pbartok@novell.com>
33194 * ImeMode.cs: Added missing attributes
33195 * Menu.cs: Fixed attribute
33196 * GroupBox.cs: Fixed attribute
33197 * Label.cs: Fixed attribute
33198 * ColorDialog.cs (RunDialog): Removed TODO attribute
33199 * ComboBox.cs: Fixed attributes
33200 * ListControl.cs: Added missing attributes
33201 * PropertyGrid.cs: Fixed attributes
33202 * Control.cs: Fixed attributes
33203 * ListViewItem.cs: Added TypeConverter attribute
33204 * NotifyIcon.cs: Fixed attributes
33205 * ListView.cs: Fixed attributes
33206 * ButtonBase.cs: Fixed attribute
33207 * ImageList.cs: Added missing attributes
33208 * ContainerControl.cs: Fixed signature
33209 * CheckedListBox.cs: Fixed attribute; added missing attributes
33210 * Panel.cs: Fixed attributes
33211 * PropertyTabChangedEventArgs.cs: Added missing attribute
33212 * PropertyValueChangedEventArgs.cs: Added missing attribute
33213 * Binding.cs: Fixed attribute
33214 * ListViewItemConverter: Implemented ListViewSubItemConverter class
33215 * ListBox.cs: Fixed attribute; added missing attributes;
33216 * ScrollableControl.cs: Added missing attributes
33217 * PictureBox.cs: Added missing attributes; implemented missing property
33218 * DateTimePicker.cs: Added missing attributes
33219 * Theme.cs (ToolWindowCaptionHeight): Fixed type
33220 * MonthCalendar.cs: Fixed attributes
33221 * StatusBarPanel.cs: Added missing attributes
33222 * SystemInformation.cs (ToolWindowCaptionHeight): Fixed type
33224 2005-02-16 Peter Bartok <pbartok@novell.com>
33226 * TextBoxBase.cs: The previous method to enforce height yet remember
33227 the requested high was less than ideal, this is an attempt to do
33229 * Control.cs: Added comment about possible problem
33230 * Copyright: Updated format
33231 * GridItemType.cs: Fixed swapped values
33233 2005-02-15 Jackson Harper <jackson@ximian.com>
33235 * BaseCollection.cs: Use property so we never access an
33236 uninitialized list. Also initialize the list in the property.
33238 2005-02-15 Peter Bartok <pbartok@novell.com>
33240 * GroupBox.cs (ProcessMnemonic): Implemented
33241 * Label.cs (ProcessMnemonic): Implemented
33242 * ThemeWin32Classic.cs (DrawGroupBox): Added stringformat to show
33245 2005-02-15 Peter Bartok <pbartok@novell.com>
33247 * RadioButton.cs (ProcessMnemonic): Implemented
33248 * CheckBox.cs (ProcessMnemonic): Implemented
33250 - Added handling of WM_SYSxxx keyboard messages to support mnemonic
33252 - Added internal method to allow calling ProcessMnemonic from other
33254 * ContainerControl.cs:
33255 - Started support for handling validation chain handling
33256 - Implemented ProcessMnemonic support
33257 - Added Select() call to Active, to make sure the active control
33259 * Form.cs: Setting toplevel flag for Forms (this was lost in the
33260 FormParent rewrite)
33261 * ThemeWin32Classic.cs:
33262 - DrawCheckBox(): Fixed stringformat to show hotkeys
33263 - DrawRadioButton(): Fixed stringformat to show hotkeys
33264 * CommonDialog.cs: Removed WndProc override, not needed
33266 2005-02-14 Peter Bartok <pbartok@novell.com>
33268 * XplatUIX11.cs: Fixed NotImplemented exceptions for properties,
33269 missed those in the rewrite
33271 2005-02-14 Miguel de Icaza <miguel@novell.com>
33273 * NumericUpDown.cs (Increment, ToString): Add.
33274 (DecimalPlaces): implement.
33278 * UpDownBase.cs: Add the designer attributes.
33280 2005-02-13 Peter Bartok <pbartok@novell.com>
33282 * Panel.cs: Removed border_style, now in Control
33283 * XplatUIDriver.cs: Added SetBorderStyle, SetMenu, GetMenuDC and
33284 ReleaseMenuDC Methods; renmaed ReleaseWindow to UngrabWindow
33286 2005-02-13 Peter Bartok <pbartok@novell.com>
33288 * MouseButtons.cs: Added missing attributes
33289 * XplatUIStructs.cs: Added enumeration for title styles
33290 * LeftRightAlignment.cs: Added missing attributes
33291 * Hwnd.cs: Switched to use client_window as handle (slower, but makes
33292 it compatible with Graphics.FromHwnd()
33293 * SelectedGridItemChangedEventArgs.cs: Fixed property type
33294 * Keys.cs: Added missing attributes
33295 * SelectionRange.cs: Added missing attributes
33296 * SelectionRangeConverter.cs: Added
33298 - Introduced SetBorderStyle, SetMenu, GetMenuDC and
33299 ReleaseMenuDC methods
33300 - Renamed ReleaseWindow to UngrabWindow
33301 - Added proper startup notice to allow version identification
33303 - Added missing attributes
33304 - Removed FormParent concept
33305 * Label.cs: Removed border_style field, now in Control
33306 * RadioButton.cs: Now properly selects RadioButton when focus is
33308 * ThemeGtk.cs: Fixed SetDisplay call to match new X11 behaviour
33310 - Added missing attributes
33311 - Added borderstyle handling
33312 - Removed FormParent concept support
33313 - Fixed calls to XplatUI to match changed APIs
33314 - Fixed bug that would case us to use disposed Graphics objects
33315 - Removed unneeded internal methods
33316 - PerformLayout(): Fixed to handle DockStyle.Fill properly
33317 - SelectNextControl(): Fixed to properly check common parents
33318 * TextBoxBase.cs: Removed border_style field (now in Control)
33320 - Patch by Robert Thompson (rmt@corporatism.org): Added icon support,
33321 fixed calculations for form size
33322 - Added support for localized strings and icons
33323 - Improved form size calculations, added border
33324 * ListView.cs: Removed border_style field (now in Control)
33325 * X11Structs.cs: Moved several structs from X11 driver here
33326 * X11Keyboard.cs: Changed debug message
33327 * Application.cs: Removed FormParent concept support
33329 - Resetting end_modal flag
33330 - Removed FormParent concept support
33331 * NativeWindow.cs: Removed FormParent concept support
33332 * XplatUIX11.cs: Rewritten, now using the new Hwnd class, implementing
33333 Client area and Non-Client whole window to allow support for WM_NC
33335 * XplatUIOSX.cs: Updated to match latest driver spec; added exception
33336 prevent using it until it supports Hwnd as per Geoff Norton's request
33337 * ToolBar.cs: Fixed drawing, was not doing proper drawing
33338 * PictureBox.cs: Removed border_style field, now in Control
33339 * XplatUIWin32.cs: Added new driver methods
33341 2005-02-12 Peter Bartok <pbartok@novell.com>
33343 * OpacityConverter.cs: Implemented
33344 * Hwnd.cs: Internal class to support drivers that need to emulate
33345 client area/non-client area window behaviour
33347 2005-02-11 Peter Bartok <pbartok@novell.com>
33349 * KeysConverter.cs: Implemented
33351 2005-02-11 Jordi Mas i Hernandez <jordi@ximian.com>
33353 * Menu.cs: fixes methods GetContextMenu, GetMainMenu, ToString
33354 * LinkLabel: Added missing attributes
33355 * MainMenu.cs: fixes ToString
33356 * MenuItem.cs: fixes methods GetContextMenu, GetMainMenu
33357 * ListBox.cs: fixes event position
33358 * TrackBar.cs: adds missing attributes and events
33360 2005-02-10 Jordi Mas i Hernandez <jordi@ximian.com>
33362 * MenuItem.cs: Use SystemInformation and bug fixes
33363 * MenuAPI.cs: Use SystemInformation and bug fixes
33365 2005-02-09 Jackson Harper <jackson@ximian.com>
33367 * X11Keyboard.cs: We ignore some keys, but still need to set/reset
33368 their keystate otherwise things like VK_MENU get stuck "on".
33370 2005-02-09 Kazuki Oikawa <kazuki@panicode.com>
33372 * ListBox.cs: Fixes AddRange bug
33374 2005-02-09 Jordi Mas i Hernandez <jordi@ximian.com>
33377 - Add missing attributes
33378 - Add missing method
33380 * CheckedListBox.cs: Added missing attributes
33381 - Add missing attributes
33382 - Remove extra method
33384 * ComboBox.cs: Added missing attributes
33385 * VScrollBar.cs: Added missing attributes
33386 * ScrollBar.cs: Added missing attributes
33387 * ListBox.cs: Fixes signature, add missing consts
33388 * LinkArea.cs: Added missing attributes
33391 2005-02-08 Peter Bartok <pbartok@novell.com>
33393 * Menu.cs: Added missing attributes
33394 * MainMenu.cs: Added missing attributes
33395 * GroupBox.cs: Added missing attributes
33396 * Label.cs: Added missing attributes
33397 * CheckBox.cs: Implemented CheckBoxAccessibleObject class
33399 - Added Instance and Options properties
33400 - Added missing attributes
33401 * Cursor.cs: Made Serializable
33402 * NotifyIcon: Added missing attributes
33403 * MenuItem.cs: Added missing attributes
33404 * TextBoxBase.cs: Implemented AppendText() and Select() methods
33405 * Panel.cs: Added Missing attributes
33406 * MonthCalendar.cs: Fixed CreateParams
33408 2005-02-08 Jordi Mas i Hernandez <jordi@ximian.com>
33412 - Fixes issues with links
33413 - Adds the class attributes
33415 2005-02-08 Jordi Mas i Hernandez <jordi@ximian.com>
33418 - Fixes button when no items available in dropdown
33419 - Fixes repainting problems
33420 - Adds the class attributes
33422 2005-02-07 Geoff Norton <gnorton@customerdna.com>
33424 * XplatUIOSX.cs: Detect the menu bar and title bar height from
33425 the current theme. Cache these on startup.
33427 2005-02-07 Jackson Harper <jackson@ximian.com>
33429 * ScrollBar.cs: Give the correct clipping rect to the theme. Dirty
33430 the scrollbar buttons when they are depressed.
33432 2005-02-07 Geoff Norton <gnorton@customerdna.com>
33434 * XplatUIOSX.cs: Really fix working at resolutions not 1024x768.
33435 Get the display size from the main displayid. We currently dont
33436 support multiple display configurations.
33438 2005-02-07 Geoff Norton <gnorton@customerdna.com>
33440 * XplatUIOSX.cs: Ensure the window doesn't get stuck behind the statusbar.
33442 2005-02-07 Miguel de Icaza <miguel@novell.com>
33444 * UpDownBase.cs: Add ReadOnly and UpDownAlign properties.
33446 2005-02-05 Jonathan Chambers <jonathan.chambers@ansys.com>
33448 * PropertyGrid.cs: Updated. Patch by Jonathan Chambers
33450 2005-02-04 Jackson Harper <jackson@ximian.com>
33452 * ThemeWin32Classic.cs: Respect the clipping rect when
33453 drawing. Only fill the intersection of clips and rects so there
33454 isn't a lot of large fills.
33455 * ScrollBar.cs: Pass the correct clipping rect to the theme
33456 engine. Remove some debug code.
33458 2005-02-05 John BouAntoun <jba-mono@optusnet.com.au>
33460 * DateTimePicker.cs:
33461 - Fixed crash on DateTime.Parse, use Constructor instead
33463 2005-02-04 Jordi Mas i Hernandez <jordi@ximian.com>
33467 - Owner draw support (MeasureItem and DrawItem)
33469 2005-02-04 Jordi Mas i Hernandez <jordi@ximian.com>
33472 - Implements FindMergePosition and MergeMenu functions (very poor documented)
33473 - Fixes MenuItems.Add range
33475 - MergeMenu and Clone and CloneMenu functions
33477 2005-02-03 Jackson Harper <jackson@ximian.com>
33479 * ScrollBar.cs: Make abstract
33480 * ScrollableControl.cs: Create H/V scrollbars now that scrollbar
33483 2005-02-03 Jackson Harper <jackson@ximian.com>
33485 * ScrollBar.cs: First part of my scrollbar fixups. This removes
33486 all the unneeded refreshes and uses invalidates with properly
33489 2005-02-03 Peter Bartok <pbartok@novell.com>
33491 * ComponentModel.cs: Added
33492 * IDataGridEditingService.cs: Added
33493 * Timer.cs: Added missing attributes
33494 * ToolTip.cs: Added missing attributes
33496 2005-02-03 Jonathan Chambers <jonathan.chambers@ansys.com>
33498 * PropertyGridView.cs: Added. Patch by Jonathan Chambers
33500 2005-02-03 Peter Bartok <pbartok@novell.com>
33502 * ListBox.cs: Added missing attributes
33504 2005-02-03 Jordi Mas i Hernandez <jordi@ximian.com>
33507 - Fixes font height after font change
33508 - Avoid generating unnecesary OnSelectedIndexChanged on clearing
33510 2005-02-02 Peter Bartok <pbartok@novell.com>
33512 * HandleData.cs: Introduced static methods to allow class
33513 to be more self-contained and track it's own HandleData objects
33514 * XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs: Fixed usage of
33515 HandleData to use new static methods
33517 2005-02-02 Jordi Mas i Hernandez <jordi@ximian.com>
33520 - Fixes default size and PreferredHeight
33522 - ObjectCollection.Insert implementation
33528 - ObjectCollection.Insert implementation
33529 - No selection after clean
33532 2005-01-31 John BouAntoun <jba-mono@optusnet.com.au>
33534 * ThemeWin32Classic.cs: quick fix to comboboxbutton pushed painting
33536 2005-02-01 Jordi Mas i Hernandez <jordi@ximian.com>
33539 - Caches ItemHeight calculation for OwnerDrawVariable
33540 - Handles dropdown properly
33541 - Fixes several minor bugs
33543 2005-01-31 Jordi Mas i Hernandez <jordi@ximian.com>
33546 - Fixes 71946 and 71950
33547 - Fixes changing Multicolumn on the fly
33548 - Fixes keyboard navigation on Multicolumn listboxes
33550 2005-01-31 Geoff Norton <gnorton@customerdna.com>
33552 * XplatUIOSX.cs: Call ExitToShell in our teardown to avoid a
33553 crash reporter log.
33555 2005-01-31 Geoff Norton <gnorton@customerdna.com>
33557 * XplatUIOSX.cs: Allow applications to actually exit.
33559 2005-01-31 Geoff Norton <gnorton@customerdna.com>
33561 * XplatUIOSX.cs: SetWindowStyle implemented. Reposition views in
33562 their parent at creation time rather than lazily later. Fixes a major
33563 regression we were experiencing.
33565 2005-01-31 John BouAntoun <jba-mono@optusnet.com.au>
33567 * ThemeWin32Classic.cs: more date time picker painting fixes
33568 * DateTimePicker.cs: more monthcalendar drop down fixes
33569 * MonthCalendar.cs: more CreateParams fixes to ensure correct drop down
33571 2005-01-31 Jordi Mas i Hernandez <jordi@ximian.com>
33574 - When moving the thumb going outside the control should stop the moving
33575 - Adds the firing of missing events
33576 - Fixes no button show if Size is not specified
33577 - End / Home keys for keyboard navigation
33579 2005-01-30 Peter Bartok <pbartok@novell.com>
33581 * NotifyIcon.cs (CalculateIconRect): Removed debug output and added
33582 sanity check to prevent theoretical loop
33583 * XplatUIWin32.cs (SetVisible): Removed debug output
33584 * XplatUIX11.cs (SystrayChange): Added sanity check
33585 * ScrollableControl.cs (OnVisibleChanged): Now calls base method
33586 * Control.cs (OnVisibleChanged): Added workaround for ParentForm
33587 behaviour, valid until the X11 client window rewrite is done
33588 * TextBox.cs (ctor): Setting proper default foreground and background
33591 2005-01-30 John BouAntoun <jba-mono@optusnet.com.au>
33593 * Theme: Added DrawDateTimePicker to interface
33594 * ThemeWin32Classic.cs: Added DrawDateTimePicker (incomplete)
33595 * DateTimePicker.cs: Created (still needs keys and painting code)
33596 * DateTimePickerFormat.cs: added
33597 * MonthCalendar.cs: fixed CreateParams for popup window mode
33599 2005-01-29 Peter Bartok <pbartok@novell.com>
33601 * ControlPaint.cs: Fixed luminace value returned on achromatic colors,
33602 this should also the calculations for ligher/darker
33603 * Theme.cs: Fixed defaults for ScrollBar widths/heights
33605 2005-01-29 Peter Bartok <pbartok@novell.com>
33607 * ArrangeDirection.cs: Added
33608 * ArrangeStartingPositon.cs: Added
33609 * SystemInformation.cs: Implemented
33610 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
33611 XplatUIX11.cs, Theme.cs: Added/implemented new static properties
33612 used by SystemInformation class
33613 * X11Strucs.cs: Added XSizeHints structure
33615 - Fixed CreateParams to make sure the menu window is always visible
33616 - TrackPopupMenu: Added check to make sure we don't draw the
33619 2005-01-29 Peter Bartok <pbartok@novell.com>
33621 * HandleData.cs: Added method for altering invalid area
33622 * TextBoxBase.cs: Implemented TextLength
33624 2005-01-28 Peter Bartok <pbartok@novell.com>
33626 * XplatUIX11.cs: Improvement over last patch, not sending
33627 the WM_PAINT directly anymore, instead we scroll any pending
33628 exposed areas and let the system pick out the WM_PAINT later
33630 2005-01-28 Peter Bartok <pbartok@novell.com>
33632 * SWF.csproj: Deleted, no longer used. Instead,
33633 Managed.Windows.Forms/SWF.csproj should be used
33634 * XplatUIX11.cs: Instead of posting the WM_PAINT, we send it
33635 directly, to avoid a potential race condition with the next
33638 2005-01-28 Peter Bartok <pbartok@novell.com>
33640 * XplatUI.cs: Made class internal
33642 2005-01-28 Jordi Mas i Hernandez <jordi@ximian.com>
33644 * CheckedListBox.cs:
33647 - Missing methods and events
33649 2005-01-27 Peter Bartok <pbartok@novell.com>
33651 * Application.cs (Run): Don't use form if we don't have one
33653 2005-01-27 Peter Bartok <pbartok@novell.com>
33655 * TextBoxBase.cs (get_Lines): Fixed index off by one error
33657 2005-01-27 Peter Bartok <pbartok@novell.com>
33659 * GridEntry.cs: Added; Patch by Jonathan S. Chambers
33660 * GridItem.cs: Added; Patch by Jonathan S. Chambers
33661 * GridItemCollection.cs: Added; Patch by Jonathan S. Chambers
33662 * GridItemType.cs: Added; Patch by Jonathan S. Chambers
33663 * PropertyGrid.cs: Added; Patch by Jonathan S. Chambers
33664 * PropertySort.cs: Added; Patch by Jonathan S. Chambers
33665 * PropertyTabChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
33666 * PropertyTabChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
33667 * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
33668 * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
33669 * SelectedGridItemChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
33670 * SelectedGridItemChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
33672 2005-01-27 Jordi Mas i Hernandez <jordi@ximian.com>
33675 - Draw focus on Simple Combobox
33676 - Fixes drawing issues
33679 2005-01-27 Peter Bartok <pbartok@novell.com>
33682 - Place window in default location, instead of hardcoded 0/0
33683 - Send initial LocationChanged event
33685 - UpdateBounds after creation to find out where the WM placed us
33686 - Make sure that if the ParentForm changes location the Form
33688 * XplatUIX11.cs: XGetGeometry will not return the coords relative
33689 to the root, but to whatever the WM placed around us.
33690 Translate to root coordinates before returning toplevel
33692 * XplatUIWin32.cs: Removed debug output
33693 * XplatUIOSX.cs, XplatUI.cs, XplatUIDriver.cs: Added toplevel
33694 flag to GetWindowPos, to allow translation of coordinates on X11
33696 2005-01-27 Jordi Mas i Hernandez <jordi@ximian.com>
33698 * ListBox.cs: connect LostFocus Event
33700 2005-01-27 Peter Bartok <pbartok@novell.com>
33702 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
33703 XplatUIX11.cs: Extended the Systray API
33704 * Form.cs: Removed debug output
33705 * Application.cs: Fixed focus assignment, always need to call
33706 XplatUI.Activate() since Form.Activate() has rules that may
33708 * NotifyIcon.cs: Should be complete now
33709 * ToolTip.cs: Worked around possible timer bug
33711 2005-01-27 Jackson Harper <jackson@ximian.com>
33714 - Only invalidate the effected tabs when the
33715 selected index changes. This reduces drawing and gets rid of some
33717 - Only refresh if the tabs need to be shifted, otherwise only
33718 invalidate the slider button.
33719 - On windows the tabs are not filled to right if the slider is
33722 2005-01-27 Jackson Harper <jackson@ximian.com>
33724 * TabControl.cs: Only refresh on mouseup if we are showing the
33725 slider. Also only invalidate the button whose state has changed.
33727 2005-01-26 Peter Bartok <pbartok@novell.com>
33729 * XplatUI.cs, XplatUIDriver.cs: Added Systray methods
33730 * XplatUIWin32.cs: Implemented SystrayAdd(), SystrayChange()
33731 and SystrayRemove() methods
33732 * XplatUIOSX.cs: Stubbed Systray methods
33734 - Implemented SystrayAdd(), SystrayChange() and SystrayRemove()
33736 - Fixed broken XChangeProperty calls (marshalling messed up things)
33737 * X11Structs.cs: Added enums and structs required for Size hinting
33738 * NotifyIcon.cs: Added & implemented
33740 2005-01-26 Jackson Harper <jackson@ximian.com>
33742 * TabControl.cs: Space vertically layed out tabs properly.
33744 2005-01-26 Peter Bartok <pbartok@novell.com>
33746 * Form.cs (CreateClientParams): Always set the location to 0,0
33747 since we're a child window.
33749 * Control.cs (SetVisibleCore): Always explicitly setting the location
33750 of a toplevel window, apparently X11 doesn't like to move windows
33751 while they're not mapped.
33753 2005-01-26 Jackson Harper <jackson@ximian.com>
33755 * TabControl.cs: Implement FillToRight size mode with vertically
33758 2005-01-26 Jordi Mas i Hernandez <jordi@ximian.com>
33760 * ControlPaint.cs, ThemeWin32Classic.cs
33761 - Fixes DrawFocusRectangle
33763 2005-01-26 Jordi Mas i Hernandez <jordi@ximian.com>
33766 - MenuBar tracking only starts when item is first clicked
33767 - Fixes menu hidding for multiple subitems
33768 - Unselect item in MenuBar when item Executed
33771 2005-01-25 Jordi Mas i Hernandez <jordi@ximian.com>
33774 - IsInputKey for ListBox
33777 - Shift and Control item selection
33778 - Implement SelectionMode.MultiExtended
33779 - Fixes RightToLeft
33781 - IsInputKey implemented
33782 - Do not generate OnTextChangedEdit on internal txt changes
33784 2005-01-23 Peter Bartok <pbartok@novell.com>
33786 * AccessibleObject.cs: Partially implemented Select()
33787 * MonthCalendar.cs: Added missing attributes and events
33788 * Form.cs: Fixed CreateParams behaviour, now controls derived from
33789 form can properly override CreateParams.
33790 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
33791 XplatUIX11.cs: Dropped RefreshWindow method, not needed if
33792 Control performs Invalidate & Update
33793 * NativeWindow (CreateHandle): Added special handling for Form
33794 and Form.FormParent classes to allow overriding of From.CreateParams
33796 - ControlNativeWindow: Renamed 'control' variable to more intuitive
33798 - ControlNativeWindow: Added Owner property
33799 - Removed usage of Refresh() on property changes, changed into
33800 Invalidate(), we need to wait until the queue is processed for
33801 updates, direct calls might cause problems if not all vars for
33802 Paint are initialized
33803 - Added call to UpdateStyles() when creating the window, to set any
33804 styles that CreateWindow might have ignored.
33805 - Added support for Form CreateParent overrides to UpdateStyles()
33806 * MessageBox.cs: Removed no longer needed FormParent override stuff,
33807 CreateParams are now properly overridable
33808 * CommonDialog.cs: Removed no longer needed FormParent override stuff,
33809 CreateParams are now properly overridable
33811 2005-01-23 Miguel de Icaza <miguel@ximian.com>
33813 * UpDownBase.cs (ctor): Connect TextChanged in the entry to the
33816 Capture LostFocus and OnTextBoxChanged. The later introduces a
33817 recursive invocation that I have not figured out yet.
33819 Reset the timer when not using (it was accumulating).
33822 (OnTextBoxChanged): Set UserEdit to true here to track whether the
33823 user has made changes that require validation.
33825 Reset changing to avoid loops.
33827 2005-01-22 Miguel de Icaza <miguel@ximian.com>
33829 * NumericUpDown.cs: Display value at startup.
33831 * UpDownBase.cs (Text): Do not call UpdateEditText here, only call
33834 * NumericUpDown.cs: Minimum, Maximum, Text, Value properties
33835 filled in. Added some basic parsing of text.
33837 Still missing the OnXXX method overrides, and figuring out the
33838 events that must be emitted.
33840 * UpDownBase.cs: Handle UserEdit on the Text property.
33842 2005-01-22 Jordi Mas i Hernandez <jordi@ximian.com>
33845 - Fixes IntegralHeight
33848 2005-01-21 Jackson Harper <jackson@ximian.com>
33850 * TabControl.cs: Set the SelectedIndex property when SelectedTab
33851 is set so that the page visibility is updated and the tabs are
33854 2005-01-21 Jackson Harper <jackson@ximian.com>
33856 * TabControl.cs: Use cliping rectangle for blitting. Give the
33857 theme the clipping rect so we can do clipping while
33858 drawing. Remove some debug code.
33860 2005-01-21 Jackson Harper <jackson@ximian.com>
33862 * TabPage.cs: Add a new method so tab pages can force the tab
33863 control to recalculate the tab page sizes.
33864 * TabControl.cs: UpdateOwner needs to make the tab control recalc
33867 2005-01-20 Jackson Harper <jackson@ximian.com>
33869 * ThemeWin32Classic.cs: Clip text to the staus bar panels rects.
33871 2005-01-20 Jackson Harper <jackson@ximian.com>
33873 * TreeView.cs: Set the bounds for nodes properly. They were
33874 getting screwed up when checkboxes were not enabled, but images
33877 2005-01-20 Jordi Mas i Hernandez <jordi@ximian.com>
33880 - Owner draw support
33883 2005-01-20 Jackson Harper <jackson@ximian.com>
33885 * XplatUIStructs.cs: More misc keys
33886 * X11Keyboard.cs: Ignore some control keys.
33888 2005-01-20 Jackson Harper <jackson@ximian.com>
33890 * X11Structs.cs: Add the modmaps to the keymask struct and tabify.
33891 * X11Keyboard.cs: Set the AltGr mask when we get a key event.
33893 2005-01-19 Peter Bartok <pbartok@novell.com>
33895 * Control.cs: Un-selecting the control when it is loosing focus
33897 2005-01-19 Jackson Harper <jackson@ximian.com>
33899 * TreeView.cs: Hook up to the text controls leave event so we can
33900 end editing when the users clicks outside the text box.
33902 2005-01-19 Jackson Harper <jackson@ximian.com>
33904 * X11Keyboard.cs: Fix typo that was causing the wrong keycodes to
33905 get set in the conversion array.
33907 2005-01-19 Peter Bartok <pbartok@novell.com>
33909 * Application.cs (ModalRun): Added a call to CreateControl to ensure
33910 focus is properly set
33912 - Added missing attributes
33913 - removed styles, those are already set in the base class
33915 - Added missing attributes
33916 - Added clip window styles
33917 * CheckBox.cs: Added missing attributes
33919 - FormParentWindow.CreateParams: Added required clip styles
33920 * Form.cs (ProcessDialogKey): Fixed handling of Escape key, now
33921 also filters modifier keys
33923 - Added assignment of Accept and Cancel button to enable Enter
33924 and Esc keys in MessageBox dialogs
33925 - FormParentWindow.CreateParams: Added required clip styles
33926 * RadioButton.cs: Added missing attributes
33927 * TextControl.cs: No longer draws selection if control does not
33930 - Now draws simple rectangle around test area to make it obvious
33931 there's a control. This is a hack until we properly support borders
33932 - A few simple fixes to support selections better, now erases selected
33933 text when typing, and resets selection when using movement keys
33935 2005-01-19 Miguel de Icaza <miguel@ximian.com>
33937 * UpDownBase.cs: Added some new properties.
33939 * DomainUpDown.cs: Implement a lot to get my test working.
33941 2005-01-19 Geoff Norton <gnorton@customerdna.com>
33943 * XplatUIOSX.cs: Fix a minor bug to bring the close box back
33945 2005-01-19 Geoff Norton <gnorton@customerdna.com>
33947 * OSXStructs (WindowAttributes): Fixed csc complaints
33949 2005-01-19 Geoff Norton <gnorton@customerdna.com>
33952 OSXStructs.cs: Initial refactor to move enums and consts into
33953 OSXStructs and use them in the driver for greater readability.
33955 2005-01-19 Geoff Norton <gnorton@customerdna.com>
33957 * XplatUIOSX.cs: Initial support for Standard Cursors.
33958 * OSXStructs.cs: Move our structs here; added ThemeCursor enum
33960 2005-01-19 Jordi Mas i Hernandez <jordi@ximian.com>
33962 * ComboBox.cs: ability to change style when the ctrl is already
33963 created, missing methods and events, bug fixes, signature fixes
33965 2005-01-19 Peter Bartok <pbartok@novell.com>
33967 * Cursors.cs (ctor): Added ctor to fix signature
33969 2005-01-18 Peter Bartok <pbartok@novell.com>
33971 * Button.cs: Implemented DoubleClick event
33973 - Fixed keyboard handling to behave like MS, where the press of
33974 Spacebar is equivalent to a mousedown, and the key release is
33975 equivalent to mouseup. Now a spacebar push will give the same
33976 visual feedback like a mouse click.
33977 - Added missing attributes
33978 - Added ImeModeChanged event
33979 - Added support for generating DoubleClick event for derived classes
33981 - Implemented DoubleClick event
33982 - Added missing attributes
33983 * CommonDialog.cs: Added missing attribute
33984 * ContextMenu.cs: Added missing attributes
33986 - AutoChecked buttons do not allow to be unselected when clicked
33987 (otherwise we might end up with no selected buttons in a group)
33988 - Added missing attributes
33989 - Implemented DoubleClickEvent
33990 * ThreadExceptionDialog.cs: Enabled TextBox code
33992 2005-01-18 Peter Bartok <pbartok@novell.com>
33994 * Form.cs: Removed debug output
33995 * Button.cs: Added support for DoubleClick method
33997 2005-01-18 Peter Bartok <pbartok@novell.com>
34000 - Added method to parent window that allows triggering size
34001 calculations when a menu is added/removed
34002 - set_Menu: Cleaned up mess from early days of Form and Control,
34003 now properly triggers a recalc when a menu is added/removed
34004 - Added case to select form itself as focused form if no child
34006 - Added PerformLayout call when showing dialog, to ensure properly
34009 - Select(): Made internal so Form can access it
34010 - Focus(): Only call Xplat layer if required (avoids loop), and sets
34012 * Application.cs (Run): Removed hack and calls PerformLayout instead
34013 to trigger calculation when Form becomes visible
34015 2005-01-18 Jordi Mas i Hernandez <jordi@ximian.com>
34017 * ComboBox.cs: fixes for ownerdraw
34019 2005-01-18 Peter Bartok <pbartok@novell.com>
34022 - Sentinel is no longer static, each Document gets it's own, this
34023 avoids locking or alternatively overwrite problems when more
34024 than one text control is used simultaneously.
34025 - Switched to use Hilight and HilightText brushes for text selection
34027 * TextBoxBase.cs (PaintControl): Disabled AntiAliasing to improve looks
34029 2005-01-18 Peter Bartok <pbartok@novell.com>
34032 - Hooked up the following events:
34040 o SystemColorsChanged
34041 o ParentFontChanged
34043 - Removed debug output
34044 - Added a call to the current theme's ResetDefaults when a color change
34046 * Form.cs: Now setting the proper ImeMode
34047 * Theme.cs: Defined a method to force recreation of cached resources
34048 and rereading of system defaults (ResetDefaults())
34049 * ThemeWin32Classic.cs: Added ResetDefaults() stub
34051 2005-01-17 Peter Bartok <pbartok@novell.com>
34053 * Control.cs: Added missing attributes
34055 2005-01-17 Jackson Harper <jackson@ximian.com>
34057 * TreeNode.cs: Implement editing. Add missing properties selected
34059 * TreeView.cs: Implement node editing. Also some fixes to use
34060 Invalidate (invalid area) instead of Refresh when selecting.
34062 2005-01-17 Peter Bartok <pbartok@novell.com>
34065 - Implemented InvokeGotFocus() method
34066 - Implemented InvokeLostFocus() method
34067 - Implemented InvokePaint() method
34068 - Implemented InvokePaintBackground() method
34069 - Implemented InvokeClick() method
34070 - Implemented FindForm() method
34071 - Implemented RectangleToClient() method
34072 - Implemented ClientToRectangle() method
34073 - Implemented ResetBackColor() method
34074 - Implemented ResetCursor() method
34075 - Implemented ResetFont() method
34076 - Implemented ResteForeColor() method
34077 - Implemented ResetImeMode() method
34078 - Implemented ResetLeftToRight() method
34079 - Implemented ResetText() method
34080 - Implemented Scale() methods
34081 - Implemented ScaleCore() method
34082 - Implemented Update() method
34083 - Removed unused variables
34084 - Stubbed AccessibilityNotifyClients and
34085 ControlAccessibleObject.NotifyClients() methods (dunno what to do
34087 - Now setting proper default for RightToLeft property
34088 - Fixed bug in SetClientSizeCore that would cause windows to get
34090 - Now sending Click/DoubleClick events
34091 - Now selecting controls when left mouse button is clicked on
34093 * AccessibleEvents.cs: Added
34094 * XplatUI.cs, XplatUIDriver.cs: Added UpdateWindow() method
34095 * XplatUIOSX.cs: Stubbed UpdateWindow() method
34096 * XplatUIWin32.cs: Implemented UpdateWindow() method
34097 * XplatUIX11.cs: Implemented UpdateWindow() method
34098 * Form.cs: Removed stray semicolon causing CS0162 warning
34099 * ThemeWin32Classic.cs: Fixed unused variable warnings
34100 * ScrollableControl.cs: Now calls base method for ScaleCore
34101 * ButtonBase.cs: Now disabling StandardClick and StandardDoubleClick
34102 style to avoid interference with internal click handler (which is
34103 different than standard Control click handling)
34105 - Now unchecks all sibling radio buttons when control is
34106 selected (Fixes #68756)
34107 - Removed internal tabstop variable, using the one inherited from
34110 2005-01-17 Jackson Harper <jackson@ximian.com>
34112 * NavigateEventArgs.cs: Fix base type.
34113 * LinkLabel.cs: Sig fix
34115 2005-01-17 Jackson Harper <jackson@ximian.com>
34117 * TreeView.cs: Only invalidate the effected nodes bounds when
34120 2005-01-13 Jordi Mas i Hernandez <jordi@ximian.com>
34122 * XplatUIWin32.cs: fixes Win32 marshaling
34123 * XplatUIX11.cs: fixes method signature
34125 2005-01-17 Peter Bartok <pbartok@novell.com>
34127 * XplatUIX11.cs: Clean up resources when we no longer need them
34129 2005-01-17 Peter Bartok <pbartok@novell.com>
34131 * XplatUI.cs, XplatUIDriver.cs: Added SetCursor(), ShowCursor(),
34132 OverrideCursor(), DefineCursor(), DefineStdCursor(), GetCursorInfo()
34133 and DestroyCursor() methods.
34134 * Cursor.cs: Partially implemented, now supports standard cursors;
34135 still contains some debug code
34136 * Cursors.cs: Implemented class
34138 - WndProc(): Added handling of WM_SETCURSOR message, setting the
34140 - Implemented Cursor property
34141 - Replaced break; with return; more straightforwar and possibly
34143 - Now properly setting the result for WM_HELP
34144 * X11Structs.cs: Added CursorFontShape enum
34145 * XplatUIStructs.cs:
34146 - Added StdCursor enum (to support DefineStdCursor() method)
34147 - Added HitTest enum (to support sending WM_SETCURSOR message)
34149 - Now sends the WM_SETCURSOR message
34150 - Implemented new cursor methods
34151 * XplatUIOSX.cs: Stubbed new cursor methods
34153 - Implemented new cursor methods
34154 - Added GetSystemMetrics function and associated enumeration
34156 2005-01-15 Peter Bartok <pbartok@novell.com>
34159 - WndProc(): Now handles EnableNotifyMessage
34160 - SelectNextControl(): Fixed bug where if no child or sibling
34161 controls exist we looped endlessly
34163 2005-01-14 Jackson Harper <jackson@ximian.com>
34165 * TreeView.cs: Recalculate the tab pages when a new one is added
34166 so that the proper bounding rects are created.
34168 2005-01-14 Jackson Harper <jackson@ximian.com>
34170 * TreeView.cs: Draw a gray box instead of a grip in the lower
34171 right hand corner when there are both horizontal and vertical
34174 2005-01-14 Jackson Harper <jackson@ximian.com>
34176 * Control.cs: When erasing backgrounds use FromHwnd instead of
34177 FromHdc when there is a NULL wparam. This occurs on the X driver.
34178 * XplatUIX11.cs: Set the wparam to NULL.
34180 2005-01-13 Jackson Harper <jackson@ximian.com>
34182 * PictureBox.cs: Implement missing methods (except ToString, need
34183 to test that on windows) and events. When visibility is changed we
34184 need to redraw the image because the buffers are killed. When size
34185 is changed refresh if the sizemode needs it.
34187 2005-01-13 Peter Bartok <pbartok@novell.com>
34189 * Control.cs (SelectNextControl): Was using wrong method to select
34192 2005-01-13 Jordi Mas i Hernandez <jordi@ximian.com>
34194 * ComboBox.cs: fixes dropstyle
34196 2005-01-13 Peter Bartok <pbartok@novell.com>
34199 - Implemented Select() override
34200 - Now handles WM_SETFOCUS/WM_KILLFOCUS messages
34201 - Now sets keyboard focus on startup
34202 * Control.cs (SelectNextControl): Now properly handles directed=true
34204 - WndProc: Now passes tab key on to base if AcceptTabChar=false
34205 - Added (really bad) focus rectangle (mostly for testing)
34206 * TextBox.cs: Added code to handle getting/loosing focus and invalidating
34207 to enforce redraw on focus changes
34208 * ContainerControl.cs:
34209 - Fixed detection of Shift-Tab key presses
34210 - Fixed traversal with arrow keys
34211 * XplatUIX11.cs: Implemented simulated keyboard focus; not sure if we're
34212 gonna keep this or if it's complete yet
34214 2005-01-13 Jordi Mas i Hernandez <jordi@ximian.com>
34216 * ComboBox.cs: missing properties, fixes
34218 2005-01-13 Peter Bartok <pbartok@novell.com>
34220 * Panel.cs (ctor): Setting Selectable window style to off
34221 * Splitter.cs (ctor): Setting Selectable window style to off
34222 * GroupBox.cs (ctor): Setting Selectable window style to off
34223 * Label.cs (ctor): Setting Selectable window style to off
34225 2005-01-12 Miguel de Icaza <miguel@ximian.com>
34227 * UpDownBase.cs (InitTimer): If the timer has been already
34228 created, enable it.
34230 Use a TextBox instead of a Label.
34232 2005-01-12 Jackson Harper <jackson@ximian.com>
34234 * TreeView.cs: Refresh the tree after sorting the nodes. Always
34235 draw the connecting node lines (when ShowLines is true).
34236 * TreeNode.cs: The nodes index can now be updated. This is used
34237 when a node collection is sorted.
34238 * TreeNodeCollection.cs: Implement sorting. Nodes can be sorted on
34239 insert or an existing unsorted node collection can be sorted.
34241 2005-01-12 Peter Bartok <pbartok@novell.com>
34243 * ContainerControl.cs: Implemented ProcessDialogKeys()
34245 2005-01-12 Peter Bartok <pbartok@novell.com>
34248 - Implemented SelectNextControl() method
34249 - Several focus related bug fixes
34250 - Fixed Docking calculations to match MS documentation and
34253 2005-01-12 Jordi Mas i Hernandez <jordi@ximian.com>
34255 * ContainerControl.cs, ListControl.cs, ListBox.cs: keyboard navigation and
34258 2005-01-12 Peter Bartok <pbartok@novell.com>
34261 - Fixed broken Contains() method
34262 - Implemented GetNextControl() method. Finally. This is the pre-
34263 requisite for focus handling.
34265 2005-01-12 Peter Bartok <pbartok@novell.com>
34267 * OSXStrucs.cs: Added
34269 2005-01-12 Peter Bartok <pbartok@novell.com>
34272 - Removed PeekMessageFlags
34273 - Implemented SetWindowStyle() method
34274 * XplatUIStructs.cs: Added PeekMessageFlags
34275 * X11Structs: Added missing border_width field to XWindowChanges struct
34277 - PeekMessage: Now throws exception if flags which are not yet
34278 supported are passed
34279 - Implemented SetWindowStyle() method
34280 - Fixed SetZOrder to handle AfterHwnd properly
34281 * XplatUI.cs: Added SetWindowStyle() method
34282 * XplatUIDriver.cs: Added SetWindowStyle() abstract
34284 - Implemented UpdateStyles() method
34285 - Implemented UpdateZOrder() method
34286 * XplatUIOSX.cs: Added SetWindowStyle() stub
34288 2005-01-12 Geoff Norton <gnorton@customerdna.com>
34290 * XplatUIOSX.cs: Fix SetZOrder (this needs more testing with a 3
34294 2005-01-11 Jackson Harper <jackson@ximian.com>
34296 * TreeView.cs: Still need to draw lines to siblings even if out of
34297 the current node is out of the clip.
34299 2005-01-11 Jackson Harper <jackson@ximian.com>
34301 * TreeView.cs: When setting the hbar/vbar/grip position use
34302 SetBounds so that perform layout is only called once. Also suspend
34303 and resume layout so layout is only done once for all controls.
34304 - Removed some debug fluff
34305 * SizeGrip.cs: Call base implmentation in overriding methods.
34306 - When visibility is changed the drawing buffers are killed so we
34309 2005-01-11 Jackson Harper <jackson@ximian.com>
34311 * TreeView.cs: Calculate the open node count while drawing. This
34312 saves us an entire tree traversal for every paint operation. Use
34313 a member var for the open node count so less vars are passed around.
34315 2005-01-11 John BouAntoun <jba-mono@optusnet.com.au>
34317 * MonthCalendar.cs:
34318 - fixed selection to use mousemove, not mouse polling on timer
34319 * ThemeWin32Classic.cs
34320 - removed redundant unused variable "no_more_content"
34322 2005-01-11 Peter Bartok <pbartok@novell.com>
34324 * XplatUIX11.cs (DoEvents): Needs to return when no more events
34325 are pending, so it now calls PeekMessage instead of GetMessage;
34326 implemented a incomplete version of PeekMessage
34328 2005-01-11 Peter Bartok <pbartok@novell.com>
34330 * XplatUIWin32.cs: Switched P/Invokes to unicode charset to avoid
34332 * TextBoxBase.cs: Added sending of TextChanged event
34334 2005-01-10 Jackson Harper <jackson@ximian.com>
34336 * TreeView.cs: Try not to draw outside the clipping rectangle on
34339 2005-01-10 Jordi Mas i Hernandez <jordi@ximian.com>
34341 * ComboBox.cs: keyboard navigation, item navigation, bug fixes
34343 2005-01-10 Jackson Harper <jackson@ximian.com>
34346 - Implement fast scrolling. Now only the newly
34347 exposed nodes are drawn and the old image is moved using the
34348 XplatUI::ScrollWindow method.
34349 - Factor in height of nodes when calculating whether or not the
34350 node is in the clipping rect.
34352 2005-01-10 Jackson Harper <jackson@ximian.com>
34354 * TreeNodeCollection.cs: Refresh the tree when a new node is added.
34356 2005-01-10 Peter Bartok <pbartok@novell.com>
34358 * Application.cs: Added temporary hack to resolve all our resize
34359 required issues on startup. This will get fixed properly at
34360 some point in the future
34362 2005-01-10 Jackson Harper <jackson@ximian.com>
34364 * SizeGrip.cs: New internal class that is used as a sizing
34365 grip control...hence the name.
34367 2005-01-10 Peter Bartok <pbartok@novell.com>
34369 * Control.cs: Implemented proper TabIndex handling, now assigning
34370 a tabindex when a control is added to a container
34371 * GroupBox.cs (ctor): Now sets the Container style bit, required
34372 for Control.GetNextControl()
34374 2005-01-09 Jackson Harper <jackson@ximian.com>
34376 * TextBoxBase.cs: Clear window when scrolling (fixes build).
34378 2005-01-09 Peter Bartok <pbartok@novell.com>
34380 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
34381 XplatUIX11.cs: Added ability to control ScrollWindow expose and
34382 an overload for ScrollWindow to allow only scrolling a rectangle
34384 2005-01-09 Peter Bartok <pbartok@novell.com>
34387 - Implemented SetDesktopBounds method
34388 - Implemented SetDesktopLocation method
34390 2005-01-08 Jackson Harper <jackson@ximian.com>
34392 * TreeView.cs: Only set the vbar's Maximum and LargeChange when
34393 the node count has changed, this removes to VScroll::Refresh calls
34396 2005-01-08 Geoff Norton <gnorton@customerdna.com>
34398 * XplatUIOSX.cs: Fix GetWindowState & SetWindowState
34400 2005-01-07 Jackson Harper <jackson@ximian.com>
34402 * TreeNode.cs: Just update the single node when it is
34403 checked. Don't refresh after toggling, the Expand/Collapse already
34405 * TreeView.cs: Respect clipping a little more when drawing. Try
34406 not to redraw things that don't need to be redrawn. Just hide the
34407 scrollbars when they are no longer needed instead of removing
34408 them, so they don't have to be created again and again.
34410 2005-01-07 Geoff Norton <gnorton@customerdna.com>
34412 * XplatUIOSX.cs (SetCaretPos): We need to translate the view
34413 coordinates to window space to place the caret properly, FIXED.
34414 Implement GetWindowState & SetWindowState
34416 2005-01-06 Peter Bartok <pbartok@novell.com>
34419 - Implemented ClientSize property
34420 - Implemented DesktopBounds property
34421 - Implemented DesktopLocation property
34422 - Implemented IsRestrictedWindow property
34423 - Implemented Size property
34424 - Implemented TopLevel property
34425 - Implemented FormWindowState property
34427 - Implemented GetTopLevel() method
34428 - Implemented SetTopLevel() method
34429 * X11Structs.cs (Atom):
34430 - Added AnyPropertyType definition
34431 - Added MapState definiton and updated XWindowAttribute struct
34432 * XplatUI.cs: Added GetWindowState() and SetWindowState() methods
34433 * XplatUIDriver.cs: Added GetWindowState() and SetWindowState() methods
34434 * XplatUIOSX.cs: Stubbed GetWindowState() and SetWindowState() methods
34436 - Implemented GetWindowState() and SetWindowState() methods
34437 - Fixed Win32GetWindowLong return type
34439 - Introduced central function for sending NET_WM messages
34440 - Implemented GetWindowState() and SetWindowState() methods
34441 * TextBoxBase.cs (set_Lines):
34442 - Now uses Foreground color for text added via Text property (Duh!)
34443 - Added code to remember programmatically requested size (fixes
34444 behaviour when Multiline is set after Size)
34445 - Added AutoSize logic
34447 2005-01-06 Jackson Harper <jackson@ximian.com>
34449 * TreeView.cs: Draw the image after the checkbox if checkboxes are enabled.
34451 2005-01-06 Jackson Harper <jackson@ximian.com>
34453 * ListBox.cs: Don't allow the horizontal scrollbars maximum to be
34454 set to less then 0.
34456 2005-01-06 Jackson Harper <jackson@ximian.com>
34458 * ScrollableControl.cs: Lazy init the scrollbars.
34460 2005-01-06 Jackson Harper <jackson@ximian.com>
34462 * Theme.cs: Speed up getting pens and solid brushes, by using
34463 their ARGB as a hash instead of tostring and not calling Contains.
34465 2005-01-06 Peter Bartok <pbartok@novell.com>
34468 - Implemented OnActivated and OnDeactivate event trigger
34469 - Implemented Activate() method
34470 - Fixed ShowDialog() to activate the form that was active before
34471 the dialog was shown
34473 - Added global active_window var that tracks the currently active
34475 - Now always grabs Property changes from the root window to always
34476 catch changes on the active window property
34477 - Added code to PropertyNotify handler to send Active/Inactive
34478 messages when state changes. This puts X11 and Win32 en par on
34479 WM_ACTIVATE notifications (except for double notifications when
34480 the user clicks away from our modal window to another one of our
34483 2005-01-05 Jackson Harper <jackson@ximian.com>
34485 * ImageList.cs: Implment ctor
34487 2005-01-05 Geoff Norton <gnorton@customerdna.com>
34489 * XplatUIOSX.cs: Implement Activate/SetTopmost
34491 2005-01-05 Geoff Norton <gnorton@customerdna.com>
34493 * XplatUIOSX.cs: Implement SetZOrder, minor cleanup
34495 2005-01-05 Geoff Norton <gnorton@customerdna.com>
34497 * XplatUIOSX.cs: Implement GetActive/SetFocus.
34499 2005-01-05 Peter Bartok <pbartok@novell.com>
34501 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs,
34502 XplatUIOSX.cs: Added GetActive method to return the currently
34503 active window for the application (or null, if none is active)
34505 - Implemented ActiveForm
34506 - Commented out owner assignment for modal dialogs (causes problems
34507 on Win32, since the owner will be disabled)
34508 - Reworked some Active/Focus handling (still incomplete)
34509 * CommonDialog.cs: Commented out owner assignment for modal dialogs
34510 (causes problems on Win32, since the owner will be disabled)
34511 * IWin32Window: Added ComVisible attribute
34513 2005-01-05 Peter Bartok <pbartok@novell.com>
34515 * ToolTip.cs (WndProc): Enable setting focus now that we have the
34516 required XplatUI functions.
34518 2005-01-05 Peter Bartok <pbartok@novell.com>
34520 * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIDriver.cs,
34521 XplatUIX11.cs, X11Structs.cs, Form.cs: Framework code required
34522 to implement focus and activation handling; still incomplete and
34525 2005-01-04 Peter Bartok <pbartok@novell.com>
34527 * TextBoxBase.cs: Changed access level for Document property to
34528 match switch to internal for TextControl
34530 2005-01-04 Peter Bartok <pbartok@novell.com>
34532 * AccessibleObject: Added ComVisible attribute
34534 2005-01-04 Jackson Harper <jackson@ximian.com>
34536 * X11Keyboard.cs: Remove unneeded var.
34538 2005-01-04 Jackson Harper <jackson@ximian.com>
34540 * XplatUIX11.cs (DoEvents): Implement, Just cast aside all events
34542 * XplatUIX11.cs (GetMessage): Call Exit when we get an unknown
34543 ClientMessage. This makes apps exit cleanly (more often).
34545 2005-01-04 Jackson Harper <jackson@ximian.com>
34547 * TreeNode.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) for
34548 handling focus, return correct colors and fonts,
34549 * TreeView.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) to
34550 handle selection, horizontal scrolling, and mouse interaction.
34552 2005-01-04 Peter Bartok <pbartok@novell.com>
34554 * ICommandExecutor.cs: Added
34555 * IDataGridColumnStyleEditingNotificationService.cs: Added
34556 * IFeatureSupport.cs: Added
34557 * IFileReaderService.cs: Added
34558 * IDataObject.cs: Added ComVisible attribute
34559 * AmbientProperties.cs: Added
34560 * BaseCollection.cs: Added missing attributes
34561 * ListBindingConverter.cs: Added (stubbed, required for certain attributes)
34562 * BaseCollection.cs: Added missing attributes
34563 * Binding.cs: Added TypeConverter attribute
34564 * BindingContext.cs: Added DefaultEvent attribute
34565 * BindingsCollection.cs: Added DefaultEvent attribute
34566 * Button.cs: Added DefaultValue attribute
34567 * DragEventArgs.cs: Added ComVisible attribute
34568 * GiveFeedbackEventArgs.cs: Added ComVisible attribute
34569 * KeyEventArgs.cs: Added ComVisible attribute
34570 * KeyPressEventArgs.cs: Added ComVisible attribute
34571 * MouseEventArgs.cs: Added ComVisible attribute
34572 * NavigateEventArgs.cs: Added
34573 * NavigateEventHandler.cs: Added
34574 * FeatureSupport.cs: Added
34575 * OSFeature.cs: Added
34576 * Theme.cs: Added abstract Version property to support OSFeature
34577 * ThemeWin32Classic.cs: Added Version property to
34578 support OSFeature.Themes
34579 * ProgressBar.cs: Removed OnPaintBackground override, not required since
34580 the proper styles to avoid background drawing are set, also doesn't
34582 * QueryAccessibilityHelpEventArgs.cs: Added ComVisible attribute
34583 * QueryContinueDragEventArgs.cs: Added ComVisible attribute
34584 * ScrollEventArgs.cs: Added ComVisible attribute
34585 * SplitterEventArgs.cs: Added ComVisible attribute
34586 * AccessibleSelection.cs: Added Flags attribute
34587 * Appearance.cs: Added ComVisible attribute
34588 * Border3DSide.cs: Added ComVisible attribute
34589 * Border3DStyle.cs: Added ComVisible attribute
34590 * BorderStyle.cs: Added ComVisible attribute
34591 * DragAction.cs: Added ComVisible attribute
34592 * ErrorBlinkStyle.cs: Added
34593 * ScrollEventType.cs: Added ComVisible attribute
34594 * AnchorStyles.cs: Added Editor attribute
34595 * DockStyle.cs: Added Editor attribute
34596 * HorizontalAlignment.cs: Added ComVisible attribute
34597 * HelpEventArgs.cs: Added ComVisible attribute
34598 * PaintEventArgs.cs: Added IDisposable
34600 2005-01-04 Peter Bartok <pbartok@novell.com>
34602 * TextControl.cs: Switched Line, LineTag and Document classes to
34605 2005-01-04 Jordi Mas i Hernandez <jordi@ximian.com>
34607 * ComboBox.cs, ThemeWin32Classic.cs, ListBox.cs, Theme.cs:
34608 Simple mode, fixes, IntegralHeight, etc.
34610 2005-01-04 Peter Bartok <pbartok@novell.com>
34612 * TextBoxBase.cs: Using proper font variable now
34614 2005-01-04 Peter Bartok <pbartok@novell.com>
34616 * Form.cs (ShowDialog): Set parent to owner, if provided
34617 * GroupBox.cs: Removed unused vars
34619 - Added GetHashCode() for Document and LineTag classes
34620 - Removed unused variables
34621 - Added CharIndexToLineTag() and LineTagToCharIndex() methods
34622 to allow translation between continuous char position and line/pos
34623 * CheckBox.cs: Removed vars that are provided by base class
34624 * RadioButton.cs: Removed vars that are provided by base class, added
34625 new keyword where required
34626 * LinkLabel.cs: Added new keyword where required
34627 * Control.cs (WndProc): Removed unused variable
34629 - Finished SelectionLength property
34630 - Implemented SelectionStart property
34631 - Implemented Text property
34632 - Removed unused vars
34633 * MessageBox.cs: Added new keyword where required
34634 * TextBox.cs: Removed Text property code (now in TextBoxBase), fixed
34636 * MenuAPI.cs: Added new keyword where required
34637 * ButtonBase.cs: Removed vars that are provided by base class, added
34638 new keyword where required
34639 * ThemeWin32Classic.cs (DrawMonthCalendarDate): Now cast Math.Floor
34640 argument to double, to allow compiling with csc 2.0 (Atsushi ran
34642 * Application.cs (Run): Now triggers the ThreadExit event
34643 * CommonDialog.cs: Added new keyword where required; now properly sets
34644 parent (owner) for dialog
34645 * XplatUIX11.cs: Commented out unused vars
34646 * StatusBar.cs: Fixed signature for Text property
34647 * TabPage.cs: Undid Jordi's removal of unused var, now using the var
34649 2005-01-04 Jordi Mas i Hernandez <jordi@ximian.com>
34651 * ComboBox.cs, TabPage.cs, MenuAPI.cs, ThemeWin32Classic.cs,
34652 TrackBar.cs, MonthCalendar.cs: remove unused vars
34654 2005-01-03 Jackson Harper <jackson@ximian.com>
34656 * ThemeWin32Classic.cs:
34657 * X11Keyboard.cs: Remove unused vars.
34659 2005-01-03 Peter Bartok <pbartok@novell.com>
34662 - set_Text: Tied into TextControl
34663 - set_TextAlignment: Tied into TextControl
34665 - Added alignment properties and implemented alignment handling
34666 and drawing (still has a bug, not generating proper expose events)
34667 - Added new Line() constructor to allow passing the line alignment
34668 - Fixed selection setting, properly handling end<start now
34669 - Added aligment considerations to RecalculateDocument()
34671 - Now properly enforces control height for single line controls
34672 - Added support for CharacterCasing
34673 - Added IsInputKey override
34674 - Fixed Keys.Enter logic
34675 - Added SetBoundsCore override
34676 - Fixed mouse selection handling
34678 2005-01-03 Jackson Harper <jackson@ximian.com>
34681 - Collapse and uncheck all nodes when CheckBoxes is disabled.
34682 - Checkboxes are always aligned to the bottom of the node,
34683 regardless of item height.
34684 - Use the node bounds to draw the text so we can center it when
34685 the item height is greater then the font height.
34686 - Node::Bounds are only the text part of the node.
34687 * TreeNode.cs: New method to combine collapsing and unchecking all
34690 2005-01-02 Jackson Harper <jackson@ximian.com>
34692 * TreeView.cs: Draw checkmarks, handle detecting check mark clicks
34693 * TreeNode.cs: Add a bounding box for the checkbox, refresh the
34694 tree when a check is changed. TODO: Only refresh the checked node.
34696 2004-12-30 Jackson Harper <jackson@ximian.com>
34698 * TreeView.cs: Draw checkbox boxes when checkboxes are enabled.
34699 * TreeNode.cs: When collapsing make sure to never collapse the
34702 2004-12-29 Jackson Harper <jackson@ximian.com>
34704 * TreeView.cs: Align lines to the bottom of plus minus boxes properly.
34706 2004-12-28 Zoltan Varga <vargaz@freemail.hu>
34708 * X11Structs.cs X11Keyboard.cs XplatUIX11.cs: Fix 64 bit issues.
34710 2004-12-28 Peter Bartok <pbartok@novell.com>
34712 * MessageBox.cs (get_CreateParams): Don't use owner var if it's
34715 2004-12-28 Peter Bartok <pbartok@novell.com>
34717 * Control.cs (WndProc): Added WM_HELP handler, now generates
34718 HelpRequested event
34719 * Form.cs: Added HelpButton property and required support code
34720 * XplatUIStructs.cs: Added HELPINFO structure for WM_HELP handling
34722 2004-12-28 Peter Bartok <pbartok@novell.com>
34725 - Made DialogForm.owner variable internal
34726 - Added check to ensure owner form is set before setting
34727 owner properties in CreateParams
34729 2004-12-28 Geoff Norton <gnorton@customerdna.com>
34731 * XplatUIOSX.cs: Implement mouse hovering. Fix QDPoint struct to avoid
34732 swizzling. Implement ClientToScreen and ScreenToClient. Implement
34733 GetCursorPos. Fix major visibility issues. Rework the windowing
34734 system to support borderless/titleless windows (implements menus).
34735 Fix GetWindowPos. Implement initial background color support for
34738 2004-12-28 Peter Bartok <pbartok@novell.com>
34740 * Form.cs (get_CreateParams): Make sure we have an owner before using
34741 the owner variable. Implement proper default if no owner exists
34743 2004-12-28 Peter Bartok <pbartok@novell.com>
34745 * In preparation for making Managed.Windows.Forms the default build target
34746 for System.Windows.Forms, the following stubbed files were added.
34747 Dialogs are currently being implemented by contributors and are only
34748 short-term place holders.
34749 * ColorDialog.cs: Initial check-in (minmal stub)
34750 * DataGrid.cs: Initial check-in (minimal stub)
34751 * DataGridLineStyle.cs: Initial check-in (minimal stub)
34752 * DataGridParentRowsLabelStyle.cs: Initial check-in (minimal stub)
34753 * DataGridTableStyle.cs: Initial check-in (minimal stub)
34754 * FontDialog.cs: Initial check-in (minimal stub)
34755 * FileDialog.cs: Initial check-in (minimal stub)
34756 * GridColumnStylesCollection.cs: Initial check-in (minimal stub)
34757 * GridTableStylesCollection.cs: Initial check-in (minimal stub)
34758 * OpenFileDialog: Initial check-in (minimal stub)
34759 * IComponentEditorPageSite.cs: Initial check-in
34760 * Splitter.cs: Initial check-in (for Jackson)
34761 * SplitterEventArgs.cs: Initial check-in (for Jackson)
34762 * SplitterEventHandler.cs: Initial check-in (for Jackson)
34763 * TextBox.cs: Initial check-in; still needs some wiring to
34764 TextControl backend
34765 * Form.cs: Implemented ControlBox property
34766 * MessageBox.cs: Added proper coding for Minimize/Maximize/ControlBox
34767 * CommonDialog.cs: Added proper coding for Minimize/Maximize/ControlBox
34768 * TextControl.cs: Added selection functionality; added todo header
34770 - Implemented Lines property
34771 - Implemented TextHeight property
34772 - Implemented SelectedText property
34773 - Implemented SelectionLength property
34774 - Implemented SelectAll method
34775 - Implemented ToString method
34776 - Removed and cleaned up some debug code
34777 - Implemented (still buggy) mouse text selection
34779 2004-12-27 Jordi Mas i Hernandez <jordi@ximian.com>
34781 * ComboBox.cs: Complete DropDownList implementation, fixes.
34783 2004-12-26 Jordi Mas i Hernandez <jordi@ximian.com>
34785 * ThemeWin32Classic, Theme.cs: ComboBox drawing methods
34786 * ComboBoxStyle.cs: ComboBoxStyle enum
34787 * ComboBox.cs: Initial work on ComboBox control
34789 2004-12-21 Peter Bartok <pbartok@novell.com>
34791 * Control.cs (ctor, CreateParams): Moved setting of is_visible
34792 forward so that anything that creates a window gets the default,
34793 also no longer uses Visible property in CreateParams to avoid
34794 walking up the parent chain and possibly get the wrong visible
34795 status. Fixed IsVisible to no longer walk up to the parent.
34797 2004-12-21 Peter Bartok <pbartok@novell.com>
34799 * Form.cs (ShowDialog): Unset modality for the proper window
34801 2004-12-20 Peter Bartok <pbartok@novell.com>
34803 * CommonDialog.cs: Initial check-in
34805 2004-12-20 Peter Bartok <pbartok@novell.com>
34807 * Control.cs (Visible): Now uses the parent window instead of the
34808 client area window for the property
34811 - ShowDialog(): Now uses the proper window for modality
34812 - The default visibility state for the form parent is now false. This
34813 will prevent the user from seeing all the changes to the form and
34814 its controls before the application hits Application.Run()
34815 - Removed some stale commented out code
34818 - Added FindWindow() method to have a method to check for existence
34820 - Added ability to override default exception handling (for example
34821 when debugging with VS.Net; to do this the ExternalExceptionHandler
34823 - Removed some useless debug output
34826 - Removed r37929 (SetModal patch from Ashwin Bharambe), was
34827 not working as expected
34828 - Implemented modal_window stack and checking for _WM_ACTIVE_WINDOW
34829 property to allow switching back to the modal window if focus is
34830 given to another one of our windows (Application Modal)
34831 - Now only sets override_redirect if we create a window
34833 - Moved EventMask selection before mapping of newly created window
34834 so we can catch the map event as well
34835 - Implemented Activate() method via the _WM_ACTIVE_WINDOW property
34836 - Added various Atom related DllImports
34837 - Implemented Exit() method
34838 - .ctor() : No longer shows window if WS_VISIBLE is not defined
34839 in the CreateParams
34841 * MessageBox.cs: Now properly deals with the FormParent window by
34842 providing an override the FormParent CreateParams property to
34843 set as POPUP instead of OVERLAPPED window.
34845 2004-12-19 Geoff Norton <gnorton@customerdna.com>
34847 * XplatUIOSX.cs: Implement DestroyWindow. Implement ScrollWindow
34848 Minor code cleanup.
34850 2004-12-19 Geoff Norton <gnorton@customerdna.com>
34852 * XplatUIOSX.cs (SetModal): Implement this method on OSX.
34854 2004-12-18 Peter Bartok <pbartok@novell.com>
34856 * XplatUIX11.cs (SetModal): Applied patch from Ashwin Bharambe,
34857 implementing SetModal() method
34859 2004-12-18 Peter Bartok <pbartok@novell.com>
34861 * X11Structs.cs (XGCValues): Fixed type of function element
34862 * XplatUI.cs: Added ScrollWindow() method
34863 * XplatUIDriver.cs: Added ScrollWindow() abstract
34864 * XplatUIWin32.cs: Implemented ScrollWindow() method
34865 * XplatUIX11.cs: Implemented ScrollWindow() method
34866 * XplatUIOSX.cs: Stubbed out ScrollWindow() method
34868 2004-12-17 Geoff Norton <gnorton@customerdna.com>
34870 * XplatUIOSX.cs: Fix cursor to use an Invert instead of drawing it
34871 Some more keyboard support (INCOMPLETE)
34873 2004-12-17 Peter Bartok <pbartok@novell.com>
34876 - Added color attribute to line tags.
34877 - Added color argument to all functions dealing with tags
34878 - Added color argument support to various functions
34879 - Fixed miss-calculation of baseline/shift in certain circumstances
34881 * TextBoxBase.cs: Added new color option to test code
34883 2004-12-17 Jackson Harper <jackson@ximian.com>
34886 * MonthCalendar.cs: Signature fixes
34888 2004-12-17 Geoff Norton <gnorton@customerdna.com>
34890 * XplatUIOSX.cs: Find the missing caret; caret was dissappearing after a
34891 keyboard event moved it. Create a new graphics context for each paint resolves this
34893 2004-12-17 Geoff Norton <gnorton@customerdna.com>
34895 * XplatUIOSX.cs: Fix hard cpu eat on loop with existing timers,
34896 Make caret exist and go blink blink. Initial keyboard support.
34897 Fix exception handler, Add Invalidate support. Change way RefreshWindow
34900 2004-12-17 Jackson Harper <jackson@ximian.com>
34902 * XplatUIStructs.cs: Updated set of virtual keycodes.
34903 * KeyboardLayouts.cs: SCROLL_LOCK is now SCROLL
34905 2004-12-17 Jackson Harper <jackson@ximian.com>
34907 * XplatUIX11.cs: Prune old keyboard code.
34909 2004-12-17 Jackson Harper <jackson@ximian.com>
34911 * XplatUIX11.cs: When generating mouse wparams get the modifier
34912 keys from the ModifierKeys property.
34914 2004-12-17 Jackson Harper <jackson@ximian.com>
34916 * X11Keyboard.cs: Send up/down input when generating
34917 messages. Remove some unused vars.
34919 2004-12-17 Jackson Harper <jackson@ximian.com>
34922 * TreeView.cs: get rid of warnings.
34924 2004-12-17 Jackson Harper <jackson@ximian.com>
34926 * XplatUIStructs.cs: Fix a couple wrong virtual keycodes.
34928 2004-12-17 Jordi Mas i Hernandez <jordi@ximian.com>
34930 * ListBox.cs: bug fixes, changes for CheckedListBox.cs
34931 CheckedListBox.cs: Implementation
34933 2004-12-17 Peter Bartok <pbartok@novell.com>
34935 * TextControl.cs (RecalculateLine): Fixed baseline aligning calcs
34937 2004-12-16 Peter Bartok <pbartok@novell.com>
34940 - InsertCharAtCaret(): Fixed start pos fixup
34941 - CaretLine_get: No longer derives the line from the tag, the tag
34942 could be stale if lines in the document have been added or deleted
34943 - RebalanceAfterDelete(): Fixed bug in balancing code
34944 - RebalanceAfterAdd(): Fixed really stupid bug in balancing code
34945 - Line.Streamline(): Now can also elminate leading empty tags
34946 - DumpTree(): Added a few more tests and prevented exception on
34948 - Added Debug section for Combining lines
34949 - Delete(): Now copies all remaining properties of a line
34952 - Left mousebutton now sets the caret (and middle button still acts
34953 as formatting tester, which must go away soon)
34954 - Added Debug section for Deleting/Combining lines
34955 - Fixed calculations for UpdateView after Combining lines
34957 2004-12-16 Peter Bartok <pbartok@novell.com>
34959 * TextControl.cs: Now properly aligns text on a baseline, using the
34960 new XplatUI.GetFontMetrics() method. Simplified several calculations
34961 * TextBoxBase.cs: Moved #endif to allow compiling if Debug is not
34964 2004-12-16 Peter Bartok <pbartok@novell.com>
34966 * XplatUI.cs: Added GetFontMetrics() method
34967 * XplatUIDriver.cs: Added GetFontMetrics() abstract
34968 * XplatUIX11.cs: Implemented GetFontMetrics() method, now calls
34969 into libgdiplus, our private GetFontMetrics function
34970 * XplatUIOSX.cs: Implemented GetFontMetrics() method, same as X11
34971 * XplatUIWin32.cs: Implemented GetFontMetrics() method
34973 2004-12-16 Jackson Harper <jackson@ximain.com>
34975 * XplatUIStruct.cs: Add enum for dead keys
34976 * X11Keyboard.cs: Map and unmap dead keys.
34978 2004-12-16 Jackson Harper <jackson@ximian.com>
34980 * X11Keyboard.cs: Detect and use the num lock mask.
34982 2004-12-16 Peter Bartok <pbartok@novell.com>
34984 * Control.cs (CreateGraphics): Added check to make sure the
34985 handle of the window exists before calling Graphics.FromHwnd()
34987 2004-12-16 Peter Bartok <pbartok@novell.com>
34989 * TextBoxBase.cs: Initial check-in. DO NOT TRY TO USE THIS YET. It
34990 contains a lot of code that's not supposed to be there for the
34991 real thing, but required for developing/testing the textbox
34994 2004-12-16 Peter Bartok <pbartok@novell.com>
34997 - Fixed Streamline method
34998 - Added FindTag method to Line
34999 - Added DumpTree method for debugging
35000 - Added DecrementLines() method for deleting lines
35001 - Fixed UpdateView to update the cursor to end-of-line on single-line
35003 - Added PositionCaret() method
35004 - Fixed MoveCaret(LineDown) to move into the last line, too
35005 - Added InsertChar overload
35006 - Fixed InsertChar tag offset calculations
35007 - Added DeleteChar() method
35008 - Added Combine() method for folding lines
35009 - Fixed Delete() method, no longer allocates wasted Line object and
35010 now copies all properties when swapping nodes
35011 - Delete() method now updates document line counter
35013 2004-12-15 Jackson Harper <jackson@ximian.com>
35015 * XplatUIX11.cs: Get the modifier keys from the keyboard driver
35016 * X11Keyboard.cs: Expose the currently selected modifier keys
35017 through a property.
35019 2004-12-15 Peter Bartok <pbartok@novell.com>
35021 * TextControl.cs: Initial check-in. Still incomplete
35023 2004-12-15 Jackson Harper <jackson@ximian.com>
35026 * TreeView.cs: Fix build on csc (second time today ;-))
35028 2004-12-15 Jackson Harper <jackson@ximian.com>
35030 * TreeView.cs: Store the treenodes plus/minus box bounds when it
35031 is calculated and use this for click testing.
35032 * TreeNode.cs: Add functionality to store the nodes plus minus box bounds.
35034 2004-12-15 Jackson Harper <jackson@ximian.com>
35036 * TreeView.cs: Pass the nodes image index to the image list when
35037 drawing that image.
35039 2004-12-15 Jackson Harper <jackson@ximian.com>
35041 * X11Keyboard.cs: Set messages hwnd.
35042 * XplatUIX11.cs: Pass proper hwnd wot keyboard driver. Set hwnd on
35043 post_message calls.
35045 2004-12-15 Jackson Harper <jackson@ximian.com>
35047 * X11Keyboard.cs: Fix to compile with csc.
35049 2004-12-15 Jackson Harper <jackson@ximian.com>
35051 * X11Structs.cs: Add key mask values
35052 * XplatUIStruct.cs: Add keyboard event flags, and keyboard definitions
35053 * X11Keyboard.cs: New file - Extrapolates and interpolates key
35054 down/up foo into WM_CHAR foo
35055 * KeyboardLayouts.cs: Common keyboard layouts
35056 * XplatUIX11.cs: Add the keyboard driver. Add functionality to
35057 post messages into the main queue.
35059 2004-12-13 Jordi Mas i Hernandez <jordi@ximian.com>
35061 * Button.cs: implement ProcessMnemonic
35062 * ThemeWin32Classic.cs: use ResPool (caching) instead of creating
35064 * Control.cs: fixes IsMnemonic (support for &&, case insensitive, etc)
35065 * ButtonBase.cs: Show HotkeyPrefix (not the &)
35067 2004-12-12 John BouAntoun <jba-mon@optusnet.com.au>
35069 * MonthCalendar.cs: Implemented click-hold for next/previous month
35072 2004-12-11 Peter Bartok <pbartok@novell.com>
35075 - Added XKeyboardState (moved from XplatUIX11.cs)
35076 - Added XCreateGC related enums and structures
35077 - Added GXFunction for XSetFunction
35079 * XplatUIStructs.cs: Added missing WS_EX_xxx definitions
35081 * XplatUI.cs: Added CreateCaret(), DestroyCaret(), SetCaretPos() and
35082 CaretVisible() calls
35084 * ToolTip.cs: Added code to prevent stealing focus from app windows
35086 * XplatUIDriver.cs: Added abstracts for caret functions (CreateCaret,
35087 DestroyCaret, SetCaretPos and CaretVisible)
35090 - Added implementation for caret functions
35091 - Moved hover variables into a struct, to make it a bit easier
35092 on the eyes and to debug
35093 - Removed XKeyboardState (moved to XplatUIX11.cs)
35094 - Moved Keyboard properties into the properties region
35096 * Control.cs (get_Region): Control.CreateGraphics is the appropriate
35097 call to get a graphics context for our control
35099 * XplatUIOSX.cs: Added empty overrides for the new caret functions
35101 * TreeView.cs: Fixed bug. No matter what color was set it would always
35102 return SystemColors.Window
35104 * XplatUIWin32.cs: Implemented caret overrides
35106 2004-12-10 Jordi Mas i Hernandez <jordi@ximian.com>
35108 * ListBox.cs: fire events, implement missing methods and properties,
35111 2004-12-10 John BouAntoun <jba-mono@optusnet.com.au>
35113 * MonthCalendar.cs: invalidation bug fixing
35114 * ThemeWin32Classic.cs: paint fixing
35116 2004-12-09 Geoff Norton <gnorton@customerdna.com>
35118 * XplatUIOSX.cs: Refactor to pass the real hwnd into Graphics.FromHwnd, we
35119 prepare the CGContextRef there now.
35121 2004-12-09 John BouAntoun <jba-mono@optusnet.com.au>
35123 * MonthCalendar.cs:
35124 - optimisationL only invalidate areas that have changed
35125 * ThemeWin32Classic.cs:
35126 - only paint parts that intersect with clip_area
35128 2004-12-09 Peter Bartok <pbartok@novell.com>
35130 * Application.cs: Undid changes from r37004 which cause problems
35133 2004-12-09 Ravindra <rkumar@novell.com>
35135 * ToolBar.cs: Added support for displaying ContextMenu
35136 attached to a button on ToolBar.
35137 * ToolBarButton.cs: Uncomment/fixed the DropDownMenu
35140 2004-12-09 Jordi Mas i Hernandez <jordi@ximian.com>
35142 * Label.cs: autosize works in text change and removes unnecessary
35145 2004-12-09 Jordi Mas i Hernandez <jordi@ximian.com>
35147 * ThemeWin32Classic.cs, XplatUIOSX.cs, XplatUIWin32.cs:
35150 2004-12-08 Geoff Norton <gnorton@customerdna.com>
35152 * XplatUIOSX.cs: Added mouse move/click/grab support
35153 Remove some debugging WriteLines not needed anymore.
35154 Add window resizing/positioning.
35155 Fix visibility on reparenting.
35157 2004-12-08 Peter Bartok <pbartok@novell.com>
35159 * XplatUIOSX.cs: Added Idle event, now compiles on VS.Net
35161 2004-12-07 Geoff Norton <gnorton@customerdna.com>
35163 * XplatUIOSX.cs: Initial checkin
35164 * XplatUI.cs: Use the Quartz driver if the environment is set to use it
35166 2004-12-03 Ravindra <rkumar@novell.com>
35168 * ListView.cs: Added some keybindings and fixed scrolling.
35169 ScrollBars listen to ValueChanged event instead of Scroll
35170 Event. This would let us take care of all changes being
35171 done in the scrollbars' values programmatically or manually.
35172 * ListView.cs (CanMultiselect): Added a check for shift key.
35173 * ListView.cs (EnsureVisible): Fixed. Do proper scrolling.
35174 * ListViewItem.cs (Clone): Fixed. We need to make a copy
35175 of ListViewSubItemCollection as well.
35177 2004-12-06 Peter Bartok <pbartok@novell.com>
35179 * Control.cs (Parent): Added check and exception to prevent
35182 2004-12-03 Jordi Mas i Hernandez <jordi@ximian.com>
35184 * ListBox.cs: implemented clipping, selection single and multiple,
35187 2004-12-03 Ravindra <rkumar@novell.com>
35189 * ListView.cs (ListView_KeyDown):
35190 * ListView.cs (ListView_KeyUp): Fixed multiple selection handling
35191 when CTRL key is pressed.
35192 * ListViewItem.cs (Selected): Fixed setting the property.
35194 2004-12-03 Marek Safar <marek.safar@seznam.cz>
35196 * Application.cs (OnThreadException): Use ThreadExceptionDialog.
35198 * Form.cs: Add ActiveForm, FormBorderStyle, MaximizeBox,
35199 MinimizeBox, ShowInTaskbar, TopMost properties.
35201 * ThreadExceptionDialog.cs: Implemented (disabled TextBox until
35202 will be implemented).
35204 2004-12-03 Marek Safar <marek.safar@seznam.cz>
35206 * OwnerDrawPropertyBag.cs: New internal parameterless ctor.
35208 * TreeNode.cs: Implemented ICloneable, Fixed to pass my simple
35211 * TreeNodeCollection.cs: Add exception throwing for Add,AddRange.
35213 * TreeView.cs: BackColor is Colors.Window.
35215 2004-12-01 Jackson Harper <jackson@ximian.com>
35217 * TreeView.cs: When resizing the tree if the user is making it
35218 smaller we don't get expose events, so we need to handle adding
35219 the horizontal scrollbar in the size changed handler as well as
35220 the expose handler.
35222 2004-12-02 Jordi Mas i Hernandez <jordi@ximian.com>
35224 * DrawItemState.cs: fixes wrong enum values
35226 2004-12-01 Jackson Harper <jackson@ximian.com>
35228 * TreeView.cs: Resize the hbar as well as the vbar on resize.
35230 2004-12-01 Jackson Harper <jackson@ximian.com>
35232 * NodeLabelEditEventArgs.cs:
35233 * NodeLabelEditEventHandler.cs:
35234 * OpenTreeNodeEnumerator.cs:
35236 * TreeNodeCollection.cs:
35238 * TreeViewAction.cs:
35239 * TreeViewCancelEventArgs.cs:
35240 * TreeViewCancelEventHandler.cs:
35241 * TreeViewEventArgs.cs:
35242 * TreeViewEventHandler.cs: Initial implementation.
35244 2004-12-01 Ravindra <rkumar@novell.com>
35246 * ListView.cs (CalculateListView): Fixed scrolling related
35247 calculations. Also, removed some debug statements from other
35249 * ListViewItem.cs: Changed access to 'selected' instance variable
35250 from private to internal.
35251 * ThemeWin32Classic.cs (DrawListViewItem): Fixed SubItem drawing.
35253 2004-12-01 Jordi Mas i Hernandez <jordi@ximian.com>
35255 * ThemeWin32Classic.cs: remove cache of brush and pens for
35256 specific controls and use the global system, fixes scrollbutton
35257 bugs (for small sizes, disabled, etc)
35259 * ScrollBar.cs: does not show the thumb for very small controls
35260 (as MS) and allow smaller buttons that the regular size
35262 2004-12-01 Miguel de Icaza <miguel@ximian.com>
35264 * UpDownBase.cs: Add abstract methods for the interface.
35265 Add new virtual methods (need to be hooked up to TextEntry when it
35267 Add override methods for most features.
35268 Computes the size, forces the height of the text entry.
35270 * NumericUpDown.cs: Put here the current testing code.
35272 * Set eol-style property on all files that do not have mixed line
35273 endings, to minimize the future problems. There are still a few
35274 files with mixed endings, and someone should choose whether they
35275 want to move it or not.
35277 2004-11-30 Jordi Mas i Hernandez <jordi@ximian.com>
35279 * MonthCalendar.cs, ListView.cs: use Theme colours instead of
35282 2004-11-30 Ravindra <rkumar@novell.com>
35284 * ThemeWin32Classic.cs (DrawListViewItem): Fixed selected item
35285 drawing and replaced use of SystemColors by theme colors.
35286 * ListView.cs (ListView_Paint): Fixed painting done during scrolling.
35287 * ListView.cs (ListViewItemCollection.Add): Throw exception when
35288 same ListViewItem is being added more than once.
35290 2004-11-30 John BouAntoun <jba-mono@optusnet.com.au>
35292 * MonthCalendar.cs:
35293 - ControlStyles love to make the control not flicker
35295 2004-11-30 Peter Bartok <pbartok@novell.com>
35297 * CharacterCasing.cs: Added
35299 2004-11-29 Peter Bartok <pbartok@novell.com>
35301 * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
35302 TreeViewAction.cs, TreeViewEventArgs.cs: Removed new files.
35303 I am removing these files as they conflict with already completed
35304 work. While it is fantastic to get contributions to MWF, I
35305 respectfully ask that everyone please coordinate their contributions
35306 through mono-winforms-list or #mono-winforms at this time. We're
35307 explicitly avoiding stubbing and don't want controls that don't have
35308 their basic functionality implemented in svn. Please also see
35309 http://www.mono-project.com/contributing/winforms.html
35312 2004-11-29 Marek Safar <marek.safar@seznam.cz>
35314 * Application.cs (ModalRun): Don't hang after exit.
35316 * Theme.cs: New TreeViewDefaultSize property.
35318 * ThemeWin32Classic.cs: Replaced hardcoded defaultWindowBackColor
35319 with less hardcoded SystemColors constant.
35320 Implemented TreeViewDefaultSize.
35322 * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
35323 TreeViewAction.cs, TreeViewEventArgs.cs: New files.
35326 2004-11-29 John BouAntoun <jba-mono@optusnet.com.au>
35328 * MonthCalendar.cs:
35329 - Fix NextMonthDate and PrevMonthDate click moving calendar
35331 2004-11-26 John BouAntoun <jba-mono@optusnet.com.au>
35333 * MonthCalendar.cs:
35334 - Fix usage of ScrollChange Property when scrolling months
35336 2004-11-26 Jordi Mas i Hernandez <jordi@ximian.com>
35338 * Menu.cs, MainMenu.cs, MenuItem.cs, MenuAPI.cs
35339 - Fixes menu destroying
35340 - Support adding and removing items on already created menus
35342 2004-11-26 John BouAntoun <jba-mono@optusnet.com.au>
35344 * MonthCalendar.cs:
35345 - Re-worked all bolded dates handling to match win32
35346 * ThemeWin32Classic.cs:
35347 - Fixed rendering with bolded dates
35349 2004-11-25 Jordi Mas i Hernandez <jordi@ximian.com>
35351 * ListBox.cs, Theme.cs, ThemeWin32Classic.cs:
35352 - Horizontal scroolbar
35357 2004-11-25 John BouAntoun <jba-mono@optusnet.com.au>
35359 * MonthCalendar.cs:
35360 - Fix Usage of MaxSelectionCount from SelectionRange
35361 - Fixed Shift + Cursor Selection
35362 - Fixed Shift + (Pg up/Pg dn, Home/End) selection
35363 - Fixed normal cursor selection to be compat with win32
35364 - Fixed Shift + Mouse Click selection
35366 2004-11-24 Peter Bartok <pbartok@novell.com>
35368 * XplatUI.cs (DispatchMessage): Switched to return IntPtr
35369 * XplatUIDriver.cs (DispatchMessage): Switched to return IntPtr
35371 - CreatedKeyBoardMsg now updates keystate with Alt key
35372 - Added workaround for timer crash to CheckTimers, Jackson will
35373 develop a proper fix and check in later
35374 - Implemented DispatchMessage
35375 - Removed calling the native window proc from GetMessage (call
35376 now moved to DispatchMessage)
35378 * KeyEventArgs.cs (Constructor): Now combines modifierkeys into
35379 the keydata (Fixes bug #69831)
35382 - (DispatchMessage): Switched to return IntPtr
35383 - Added DllImport for SetFocus
35385 2004-11-24 Ravindra <rkumar@novell.com>
35387 * ThemeWin32Classic.cs: Fixed ListView border and checkbox
35388 background drawing.
35389 * ListViewItem.cs: Fixed various properties, calculations
35390 and Clone() method. Fixed ListViewSubItemCollection.Clear() method.
35391 * ListView.cs: Fixed calculations, BackColor, ForeColor properties
35392 and some internal properties. Fixed MouseDown handler and Paint
35395 2004-11-24 John BouAntoun <jba-mono@optusnet.com.au>
35397 * MonthCalendar.cs: Add TitleMonth ContextMenu handling
35399 2004-11-24 John BouAntoun <jba-mono@optusnet.com.au>
35401 * ContainerControl.cs: correct accidental check in of local changes
35403 2004-11-24 John BouAntoun <jba-mono@optusnet.com.au>
35405 * ThemeWin32Classic.cs:
35406 - Fixed Drawing Last month in grid (sometimes not showing)
35407 * MonthCalendar.cs:
35408 - Fixed title width calculation bug (makeing title small)
35410 2004-11-23 Peter Bartok <pbartok@novell.com>
35413 - Added generation of WM_MOUSEHOVER event
35414 - Added missing assignment of async_method atom
35415 - Fixed WM_ERASEBKGND; now only redraws the exposed area
35417 2004-11-23 John BouAntoun <jba-mono@optusnet.com.au>
35419 * ThemeWin32Classic.cs:
35420 - Fixed Drawing of today circle when showtodaycircle not set
35421 - fixed drawing of first and last month in the grid (gay dates)
35422 * MonthCalendar.cs:
35423 - Fixed Drawing of today circle
35424 - Fixed drawing of grady dates
35425 - Fixed HitTest for today link when ShowToday set to false
35426 - Fixed DefaultSize to obey ShowToday
35428 2004-11-23 John BouAntoun <jba-mono@optusnet.com.au>
35430 * ThemeWin32Classic.cs: Fixed DrawMonthCalendar and private support methods
35431 * System.Windows.Forms/Theme.cs
35432 * MonthCalendar.cs: added for MonthCalendar
35433 * SelectionRange.cs: added for MonthCalendar
35434 * Day.cs: added for MonthCalendar: added for MonthCalendar
35435 * DateRangeEventArgs.cs: added for MonthCalendar
35436 * DateRangeEventHandler.cs: added for MonthCalendar
35438 2004-11-22 Ravindra <rkumar@novell.com>
35440 * ThemeWin32Classic.cs: Fixed ListViewDrawing with 'UseItemStyleForSubItems'
35443 2004-11-22 Miguel de Icaza <miguel@ximian.com>
35445 * UpDownBase.cs (InitTimer): Use prehistoric C# 1.0 notation for
35448 * NumericUpDown.cs: Added new implementation.
35449 * UpDownBase.cs: Added new implementation.
35451 * XplatUIWin32.cs (KeyboardSpeed, KeyboardDelay): added default
35454 * XplatUIX11.cs (KeyboardSpeed, KeyboardDelay): added default
35457 * XplatUIDriver.cs ((KeyboardSpeed, KeyboardDelay): added new
35460 2004-11-21 Miguel de Icaza <miguel@ximian.com>
35462 * Timer.cs (Dispose): Should call the base dispose when
35465 2004-11-19 Jordi Mas i Hernandez <jordi@ximian.com>
35467 * ScrollBar.cs: updates thumb position when max, min or increment
35470 2004-11-21 Ravindra <rkumar@novell.com>
35472 * ListView.cs: Implemented item selection, activation and
35473 column header style. Fixed properties to do a redraw, if
35474 required. Added support for MouseHover, DoubleClick, KeyDown
35475 and KeyUp event handling and some minor fixes.
35476 * ListViewItem.cs: Fixed constructor.
35477 * ThemeWin32Classic.cs: Improved drawing for ListView.
35479 2004-11-19 Jordi Mas i Hernandez <jordi@ximian.com>
35481 * ThemeWin32Classic.cs: initial listbox drawing code
35482 * DrawMode.cs: new enumerator
35483 * ListControl.cs: stubbed class
35484 * ListBox.cs: initial implementation
35485 * Theme.cs: new methods definitions
35486 * SelectionMode.cs: new enumerator
35488 2004-11-17 Peter Bartok <pbartok@novell.com>
35490 * XplatUIWin32.cs: Added double-click events to the class style
35491 * Control.cs (WndProc):
35492 - Added handling of click-count to MouseDown/ MouseUp events.
35493 - Added handling of middle and right mouse buttons
35494 - Removed old debug code
35496 2004-11-17 Jackson Harper <jackson@ximian.com>
35498 * XplatUIX11.cs: Use the new Mono.Unix namespace.
35500 2004-11-17 Ravindra <rkumar@novell.com>
35502 * ListView.cs: Added event handling for MouseMove/Up/Down.
35503 * ColumnHeader.cs: Added a read-only internal property 'Pressed'.
35504 * ThemeWin32Classic.cs: We need to clear the graphics context and
35505 draw column header in a proper state.
35508 2004-11-17 Jordi Mas i Hernandez <jordi@ximian.com>
35510 * Menu.cs: fixes signature
35512 2004-11-16 Peter Bartok <pbartok@novell.com>
35514 * XplatUIX11.cs (GetMessage): Implemented generation of
35515 double click mouse messages
35517 2004-11-12 Jordi Mas i Hernandez <jordi@ximian.com>
35519 * Form.cs, MainMenu.cs, MenuAPI.cs: tracker should be for tracking session
35522 2004-11-11 Peter Bartok <pbartok@novell.com>
35524 * HandleData.cs: Added Visible property
35525 * XplatUIX11.cs (IsVisible): Now uses Visible property from
35527 * XplatUIX11.cs: Removed old debug leftovers
35528 * XplatUIX11.cs (DefWndProc): Added WM_ERASEBKGND handler
35529 * Control.cs (WndProc): Removed old debug leftovers,
35530 streamlined handling of WM_WINDOWPOSCHANGED, removed un-
35531 needed WM_SIZE handling
35533 2004-11-11 Jackson Harper <jackson@ximian.com>
35535 * OwnerDrawPropertyBag.cs:
35536 * TreeViewImageIndexConverter.cs: Initial implementation
35538 2004-11-10 Jackson Harper <jackson@ximian.com>
35540 * ThemeWin32Classic.cs:
35541 * TabControl.cs: instead of moving tabs by the slider pos just
35542 start drawing at the tab that is offset by the slider. This way
35543 scrolling always moves by exactly one tab.
35545 2004-11-10 Jackson Harper <jackson@ximian.com>
35547 * TabControl.cs: You can only scroll left when the slider has
35548 already ben moved right.
35550 2004-11-10 Jackson Harper <jackson@ximian.com>
35552 * ThemeWin32Classic.cs: Do not draw the selected tab if its not in
35555 2004-11-10 Jackson Harper <jackson@ximian.com>
35557 * ThemeWin32Classic.cs: Don't bother drawing tabs outside of the
35560 2004-11-09 Jackson Harper <jackson@ximian.com>
35562 * TabControl.cs (CalcXPos): New helper method so we can determine
35563 the proper place to start drawing vertical tabs.
35564 * ThemeWin32Classic.cs (DrawTab): Draw right aligned tabs.
35566 2004-11-09 Jackson Harper <jackson@ximian.com>
35568 * TabControl.cs: Calculate sizing and rects for left aligned tabs.
35569 * ThemeWin32Classic.cs (GetTabControl*ScrollRect): Only handle Top
35570 and Bottom, left and right are illegal values for this and
35571 multiline is enabled when the alignment is set to left or right.
35572 (DrawTab): Each alignment block should draw the text itself now
35573 because Left requires special love. Also add rendering for Left
35576 2004-11-09 Jordi Mas i Hernandez <jordi@ximian.com>
35578 * Form.cs, MainMenu.cs, MenuAPI.cs: fixes menu navigation, fixes popups,
35579 does not destroy the windows, removes debugging messages
35581 2004-11-09 jba <jba-mono@optusnet.com.au>
35583 * ThemeWin32Classic.cs
35584 (DrawButtonBase): Fix verticle text rect clipping in windows
35585 (DrawCheckBox): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
35586 rendering and incorrect text rect clipping
35587 (DrawRadioButton): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
35588 rendering and incorrect text rect clipping
35590 2004-11-08 Jackson Harper <jackson@ximian.com>
35592 * ThemeWin32Classic.cs (DrawTabControl): Render tabs from top to
35593 bottom when they are bottom aligned so the bottoms of the tabs get
35595 * TabControl.cs (DropRow): Move rows up instead of down when the
35596 tab control is bottom aligned.
35598 2004-11-08 13:59 pbartok
35601 - Added handling for various window styles
35602 - Added handling for popup windows
35603 - Added SetTopmost handling
35605 2004-11-08 13:55 pbartok
35608 - Added argument to SetTopmost method
35609 - Fixed broken ClientToScreen function
35611 2004-11-08 13:53 pbartok
35613 * XplatUIStructs.cs:
35614 - Added missing WS_EX styles
35616 2004-11-08 13:53 pbartok
35618 * XplatUI.cs, XplatUIDriver.cs:
35619 - Added argument to SetTopmost
35621 2004-11-08 13:52 pbartok
35624 - Added XSetWindowAttributes structure
35625 - Improved XWindowAttributes structure
35626 - Added SetWindowValuemask enum
35627 - Added window creation arguments enum
35628 - Added gravity enum
35629 - Added Motif hints structure
35630 - Added various Motif flags and enums
35631 - Added PropertyMode enum for property functions
35633 2004-11-08 13:50 pbartok
35636 - Fixed arguments for updated SetTopmost method
35638 2004-11-08 13:49 pbartok
35641 - Fixed arguments for updated SetTopmost function
35642 - Fixed usage of PointToClient
35644 2004-11-08 13:44 pbartok
35647 - Added Clipping of children and siblings
35649 2004-11-08 13:41 pbartok
35652 - Removed SetMenuBarWindow call. We do this in Form.cs
35654 2004-11-08 13:40 jackson
35656 * TabControl.cs, Theme.cs, ThemeWin32Classic.cs: Render the little
35657 scrolling jimmi in the correct location with bottom aligned tabs
35659 2004-11-08 13:36 pbartok
35661 * ContainerControl.cs:
35662 - Implemented BindingContext
35663 - Implemented ParentForm
35665 2004-11-08 12:46 jackson
35667 * TabControl.cs: Put bottom rendered tabs in the right location
35669 2004-11-08 07:15 jordi
35671 * ScrollBar.cs, ThemeWin32Classic.cs: fixes vertical scrollbar and
35674 2004-11-05 17:30 jackson
35676 * TabControl.cs: When selected tabs are expanded make sure they
35677 don't go beyond the edges of the tab control
35679 2004-11-05 14:57 jackson
35681 * TabControl.cs: Reset show_slider so if the control is resized to
35682 a size where it is no longer needed it's not displayed anymore
35684 2004-11-05 13:16 jackson
35686 * TabControl.cs: Make tab pages non visible when added to the
35689 2004-11-05 12:42 jackson
35691 * TabControl.cs: Implement SizeMode.FillToRight
35693 2004-11-05 12:16 jackson
35695 * Control.cs: Do not call CreateHandle if the handle is already
35698 2004-11-05 11:46 jackson
35700 * TabControl.cs: Remove superflous call to CalcTabRows
35702 2004-11-05 09:07 jackson
35704 * XplatUIX11.cs: Update for Mono.Posix changes
35706 2004-11-05 07:00 ravindra
35708 * ListView.cs, ListViewItem.cs: Implemented some methods and fixed
35711 2004-11-04 22:47 jba
35713 * ThemeWin32Classic.cs:
35714 - Fix Button rendering for FlatStyle = Flat or Popup
35715 - Fix RadioButton and CheckBox rendering when Appearance = Button
35716 (normal and flatstyle).
35717 - Correct outer rectangle color when drawing focus rectangle
35718 - Adjust button bounds to be 1 px smaller when focused
35719 - Make button not draw sunken 3d border when pushed (windows compat)
35720 - Fix CPDrawBorder3D to not make bottom right hand corner rounded
35721 - Offset the text in RadioButton and Checkbox when being rendered as
35723 - Hover and Click behaviour for Colored FlatStyle.Flat and Popup
35725 - Fixed disabled rendering for colored flatstyle radiobuttons (both)
35726 - Fixed disabled text rendering for normally rendered radiobuttons
35728 2004-11-04 10:26 jackson
35730 * TabControl.cs: Recalculate tab rows when resizing
35732 2004-11-04 07:47 jordi
35734 * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs:
35735 collection completion, drawing issues, missing features
35737 2004-11-04 05:03 ravindra
35740 - We need to recalculate the Thumb area when
35741 LargeChange/maximum/minimum values are changed.
35742 - We set the 'pos' in UpdatePos() method to minimum, if it's less
35743 than minimum. This is required to handle the case if large_change is
35744 more than max, and use LargeChange property instead of large_change
35746 - We return max+1 when large_change is more than max, like MS does.
35748 2004-11-04 04:29 ravindra
35750 * ColumnHeader.cs, ListView.cs, ListViewItem.cs:
35751 - Changed default value signatures (prefixed all with ListView).
35752 - Fixed/implemented layout LargeIcon, SmallIcon and List views for
35754 - Fixed calculations for ListViewItem and implemented Clone()
35757 2004-11-04 04:26 ravindra
35759 * Theme.cs, ThemeWin32Classic.cs:
35760 - Changed default ListView values signatures (prefixed all with
35762 - Fixed default size values for VScrollBar and HScrollBar.
35763 - Fixed DrawListViewItem method.
35765 2004-11-04 04:05 ravindra
35767 * ColumnHeaderStyle.cs: Typo. It should be Nonclickable.
35769 2004-11-04 04:04 ravindra
35771 * ImageList.cs: Implemented the missing overload for Draw method.
35773 2004-11-03 19:29 jackson
35775 * TabControl.cs: Handle dropping rows on selection properly
35777 2004-11-03 11:59 jackson
35779 * TabControl.cs: remove debug code
35781 2004-11-03 11:52 jackson
35783 * TabControl.cs, ThemeWin32Classic.cs: Initial implementation of
35784 the scrolly widgerywoo
35786 2004-11-02 13:52 jackson
35788 * TabControl.cs: Resize the tab pages and tabs when the tab control
35791 2004-11-02 13:40 jackson
35793 * TabControl.cs, ThemeWin32Classic.cs: Move the row with the
35794 selected tab to the bottom
35796 2004-11-02 13:39 jackson
35798 * TabPage.cs: Store the tab pages row
35800 2004-11-02 12:33 jordi
35802 * MenuItem.cs: fixes handle creation
35804 2004-11-02 11:42 jackson
35806 * TabControl.cs: signature fix
35808 2004-11-02 08:56 jackson
35810 * TabControl.cs: Calculate whether the tab is on an edge properly.
35811 Remove top secret debugging code
35813 2004-11-01 19:57 jackson
35815 * TabControl.cs: Add click handling, and proper sizing
35817 2004-11-01 19:47 jackson
35819 * Theme.cs, ThemeWin32Classic.cs: New rendering and sizing code for
35822 2004-11-01 19:39 jackson
35824 * TabPage.cs: add internal property to store the bounds of a tab
35827 2004-10-30 04:23 ravindra
35829 * Theme.cs, ThemeWin32Classic.cs: Drawing ListView and some default
35832 2004-10-30 04:21 ravindra
35834 * ListView.cs, ListViewItem.cs: Added support for scrolling and
35835 fixed calculations.
35837 2004-10-30 03:06 pbartok
35840 - Removed extension of DllImported libs
35842 2004-10-29 09:55 jordi
35844 * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: Menu key
35845 navigation, itemcollection completion, menu fixes
35847 2004-10-27 22:58 pbartok
35850 - Now throws a nice error message when no X display could be opened
35852 2004-10-26 13:51 jordi
35854 * ListView.cs: removes warning
35856 2004-10-26 03:55 ravindra
35858 * ColumnHeader.cs, ListView.cs, ListViewItem.cs,
35859 ThemeWin32Classic.cs: Some formatting for my last checkins.
35861 2004-10-26 03:36 ravindra
35863 * ThemeWin32Classic.cs: Implemented DetailView drawing for ListView
35864 control and default values.
35866 2004-10-26 03:35 ravindra
35868 * Theme.cs: Added some default values for ListView control.
35870 2004-10-26 03:33 ravindra
35872 * ToolBar.cs: ToolBar should use the user specified button size, if
35873 there is any. Added a size_specified flag for the same.
35875 2004-10-26 03:33 ravindra
35877 * ColumnHeader.cs: Added some internal members and calculations for
35880 2004-10-26 03:32 ravindra
35882 * ListViewItem.cs: Calculations for ListViewItem.
35884 2004-10-26 03:31 ravindra
35886 * ListView.cs: Added some internal members and calculations for
35889 2004-10-22 13:31 jordi
35891 * MenuAPI.cs: speedup menus drawing
35893 2004-10-22 13:16 jackson
35895 * XplatUIX11.cs: Make sure to update exposed regions when adding an
35898 2004-10-22 11:49 jackson
35902 2004-10-22 11:41 jackson
35904 * Control.cs: Check to see if the window should have its background
35905 repainted by X when drawing.
35907 2004-10-22 11:31 jackson
35909 * XplatUIX11.cs: When invalidating areas only use XClearArea if
35910 clear is true, this way we do not get flicker from X repainting the
35913 2004-10-22 11:28 jackson
35915 * XEventQueue.cs: Queue properly
35917 2004-10-21 09:38 jackson
35919 * XEventQueue.cs: Fix access modifier
35921 2004-10-21 09:36 jackson
35923 * XEventQueue.cs: Don't loose messages
35925 2004-10-21 09:22 jackson
35927 * XEventQueue.cs: Don't loose messages
35929 2004-10-20 04:15 jordi
35931 * BootMode.cs: enum need it by SystemInfo
35933 2004-10-19 21:58 pbartok
35936 - Small sanity check
35938 2004-10-19 21:56 pbartok
35941 - Added private FormParentWindow class which acts as the container
35942 for our form and as the non-client area where menus are drawn
35943 - Added/Moved required tie-ins to Jordi's menus
35944 - Fixed/Implemented the FormStartPosition functionality
35946 2004-10-19 21:52 pbartok
35949 - Removed unneeded locals
35950 - Added code to all size and location properties to understand and
35951 deal with the parent container of Form
35953 2004-10-19 21:33 pbartok
35956 - Fixed to deal with new Form subclasses for menus
35958 2004-10-19 17:48 jackson
35960 * XEventQueue.cs: commit correct version of file
35962 2004-10-19 16:50 jackson
35964 * XEventQueue.cs, XplatUIX11.cs: New optimized event queue
35966 2004-10-19 16:15 jordi
35968 * MenuAPI.cs: MenuBarCalcSize returns the height
35970 2004-10-19 08:31 pbartok
35973 - Added missing call to PreProcessMessage before calling OnXXXKey
35976 2004-10-19 00:04 ravindra
35978 * ToolTip.cs: Fixed constructor.
35980 2004-10-18 09:31 jordi
35982 * MenuAPI.cs: menuitems in menubars do not have shortcuts
35984 2004-10-18 09:26 jordi
35986 * MenuItem.cs: fixes MenuItem class signature
35988 2004-10-18 08:56 jordi
35990 * MenuAPI.cs: prevents windows from showing in the taskbar
35992 2004-10-18 00:28 ravindra
35994 * ToolTip.cs: Suppressed a warning message.
35996 2004-10-18 00:27 ravindra
35998 * Control.cs: Default value of visible property must be true.
36000 2004-10-17 23:19 pbartok
36003 - Complete implementation
36005 2004-10-17 23:19 pbartok
36008 - Added EnableWindow method
36009 - Added SetModal stub
36010 - Added generation of WM_ACTIVATE message (still needs testing)
36011 - Added SetTopMost stub
36012 - Changes to deal with VirtualKeys being moved to XplatUIStructs.cs
36014 2004-10-17 23:17 pbartok
36017 - Removed VirtualKeys to XplatUIStructs
36018 - Implemented SetTopMost method
36019 - Implemented EnableWindow method
36020 - Bugfix in ScreenToClient()
36021 - Bugfixes in ClientToScreen()
36023 2004-10-17 22:51 pbartok
36025 * XplatUIStructs.cs:
36026 - Added WS_EX styles to WindowStyles enumeration
36028 2004-10-17 22:50 pbartok
36030 * XplatUI.cs, XplatUIDriver.cs:
36031 - Added method for enabling/disabling windows
36032 - Added method for setting window modality
36033 - Added method for setting topmost window
36035 2004-10-17 22:49 pbartok
36037 * ThemeWin32Classic.cs:
36038 - Added ToolTip drawing code
36040 2004-10-17 22:49 pbartok
36043 - Added ToolTip abstracts
36045 2004-10-17 22:47 pbartok
36048 - Fixed Form.ControlCollection to handle owner relations
36049 - Added Owner/OwnedForms handling
36050 - Implemented Z-Ordering for owned forms
36051 - Removed unneeded private overload of ShowDialog
36052 - Fixed ShowDialog, added the X11 incarnation of modal handling (or
36054 - Fixed Close(), had wrong default
36055 - Added firing of OnLoad event
36056 - Added some commented out debug code for Ownership handling
36058 2004-10-17 22:16 pbartok
36061 - Fixed/implemented flat list of controls
36063 2004-10-17 22:14 pbartok
36066 - Added code to simulate modal dialogs on Win32
36068 2004-10-17 16:11 jordi
36070 * ScrollBar.cs: disabled scrollbar should not honor any keyboard or
36073 2004-10-17 13:39 jordi
36075 * MenuAPI.cs: menu drawing fixes
36077 2004-10-15 09:10 ravindra
36079 * StructFormat.cs: General Enum.
36081 2004-10-15 09:09 ravindra
36083 * SizeGripStyle.cs: Enum for Form.
36085 2004-10-15 09:08 ravindra
36087 * Theme.cs, ThemeWin32Classic.cs: Added ColumnHeaderHeight property
36088 in Theme for ListView.
36090 2004-10-15 09:06 ravindra
36092 * ColumnHeader.cs: Flushing some formatting changes.
36094 2004-10-15 09:05 ravindra
36096 * ListViewItem.cs: Implemented GetBounds method and fixed coding
36099 2004-10-15 09:03 ravindra
36101 * ListView.cs: Implemented Paint method and fixed coding style.
36103 2004-10-15 07:34 jordi
36105 * MenuAPI.cs: fix for X11
36107 2004-10-15 07:32 ravindra
36109 * ButtonBase.cs, CheckBox.cs, RadioButton.cs:
36110 - Renamed Paint() method to Draw() for clarity. Also, moved
36111 DrawImage() to OnPaint().
36113 2004-10-15 07:25 ravindra
36115 * CheckBox.cs, RadioButton.cs:
36116 - Removed Redraw (), we get it from ButtonBase.
36117 - Implemented Paint (), to do class specific painting.
36119 2004-10-15 07:16 ravindra
36122 - Redraw () is not virtual now.
36123 - Added an internal virtual method Paint (), so that
36124 derived classes can do their painting on their own.
36125 - Modified OnPaint () to call Paint ().
36127 2004-10-15 06:43 jordi
36129 * ContextMenu.cs, DrawItemEventHandler.cs, Form.cs, MainMenu.cs,
36130 MenuAPI.cs, MenuItem.cs: menu work, mainmenu, subitems, etc
36132 2004-10-15 00:30 ravindra
36135 - MessageBox on windows does not have min/max buttons.
36136 This change in CreateParams fixes this on Windows. We
36137 still need to implement this windowstyle behavior in
36140 2004-10-14 05:14 ravindra
36143 - Changed Redraw () to do a Refresh () always.
36144 - Fixed the MouseMove event handling when mouse is pressed,
36145 ie drag event handling.
36146 - Replaced the usage of ToolBarButton.Pressed property to
36147 ToolBarButton.pressed internal variable.
36149 2004-10-14 05:10 ravindra
36151 * ToolBarButton.cs:
36152 - Added an internal member 'inside' to handle mouse move
36153 with mouse pressed ie mouse drag event.
36154 - Changed 'Pressed' property to return true only when
36155 'inside' and 'pressed' are both true.
36156 - Some coding style love.
36158 2004-10-14 00:17 ravindra
36160 * Form.cs: Fixed class signature. ShowDialog (Control) is not a
36163 2004-10-14 00:15 ravindra
36165 * ButtonBase.cs: Redraw () related improvements.
36167 2004-10-14 00:14 ravindra
36169 * MessageBox.cs: Moved InitFormSize () out of Paint method and
36170 removed unnecessary calls to Button.Show () method.
36172 2004-10-13 17:50 pbartok
36176 - Removed destroying of window until we solve the problem of X
36177 destroying the window before us on shutdown
36179 2004-10-13 16:32 pbartok
36182 - Now Redraws on MouseUp for FlatStyle Flat and Popup
36184 2004-10-13 14:18 pbartok
36187 - Added code to destroy the X window
36189 2004-10-13 14:18 pbartok
36192 - Added code to destroy a window
36194 2004-10-13 14:12 pbartok
36197 - Added the Redraw on Resize that got dropped in the last rev
36199 2004-10-13 09:06 pbartok
36201 * ThemeWin32Classic.cs:
36202 - Path from John BouAntoun:
36203 * Fix check rendering (centre correctly for normal style, offset
36204 correctly for FlatStyle).
36205 * Fix border color usage (use backcolor) for FlatStyle.Popup
36206 * Use checkbox.Capture instead of checkbox.is_pressed when
36207 rendering flatstyle states.
36209 2004-10-12 21:48 pbartok
36211 * ThemeWin32Classic.cs:
36212 - Removed all occurences of SystemColors and replaced them with the
36213 matching theme color
36215 2004-10-12 21:41 pbartok
36217 * ThemeWin32Classic.cs:
36218 - From John BouAntoun: Added an overload to CPDrawBorder3D to allow
36219 him using the function for flatstyle drawing
36220 - Changed functions to use the new version of CPDrawBorder3D
36222 2004-10-12 21:15 pbartok
36225 - Fixed Dark(), DarkDark(), Light() and LightLight() methods to
36226 match MS documentation. They need to return defined colors if the
36227 passed color matches the configured control color. Thanks to John
36228 BouAntoun for pointing this out.
36230 2004-10-12 20:57 pbartok
36233 - Fix from John BouAntoun: Raise ForeColorChanged event when text
36236 2004-10-12 20:46 pbartok
36239 - Fix from John BouAntoun: Now properly sets the Appearance property
36241 2004-10-12 20:45 pbartok
36243 * ThemeWin32Classic.cs:
36244 - Fixes from John BouAntoun: now handles forecolors and backcolors
36245 for flatstyle rendered controls much better; It also fixes normal
36246 checkbox rendering when pushed or disabled.
36248 2004-10-08 02:50 jordi
36250 * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: more menu
36253 2004-10-07 08:56 jordi
36255 * ThemeWin32Classic.cs: Removes deletion of cached brushes
36257 2004-10-06 03:59 jordi
36259 * Control.cs, StatusBar.cs, ThemeWin32Classic.cs, ToolBar.cs,
36260 XplatUIWin32.cs: removes warnings from compilation
36262 2004-10-05 12:23 jackson
36264 * RadioButton.cs: Fix ctor
36266 2004-10-05 11:10 pbartok
36269 - Partial implementation by Benjamin Dasnois
36271 2004-10-05 10:15 jackson
36273 * ThemeWin32Classic.cs: Improve rendering of the radio button patch
36276 2004-10-05 03:07 ravindra
36279 - Removed a private method, Draw ().
36280 - Fixed the ButtonDropDown event handling.
36281 - Fixed MouseMove event handling.
36283 2004-10-05 03:04 ravindra
36285 * ThemeWin32Classic.cs:
36286 - Added DrawListView method and ListViewDefaultSize property.
36287 - Changed ControlPaint method calls to CPDrawXXX wherever possible.
36288 - Changed DOS style CRLF to Unix format (dos2unix).
36290 2004-10-05 03:03 ravindra
36293 - Added DrawListView method and ListViewDefaultSize property.
36295 2004-10-05 02:42 ravindra
36297 * ToolBarButton.cs: Added an internal member dd_pressed to handle
36298 clicks on DropDown arrow.
36300 2004-10-04 22:56 jackson
36302 * ButtonBase.cs, Label.cs, MenuAPI.cs, ProgressBar.cs,
36303 ScrollBar.cs, StatusBar.cs, ToolBar.cs, TrackBar.cs: Let the base
36304 Control handle the buffers, derived classes should not have to
36305 CreateBuffers themselves.
36307 2004-10-04 21:20 jackson
36309 * StatusBar.cs: The control handles resizing the buffers now.
36311 2004-10-04 21:18 jackson
36313 * Control.cs: When resizing the buffers should be invalidated. This
36314 should be handled in Control not in derived classes.
36316 2004-10-04 14:45 jackson
36320 2004-10-04 02:14 pbartok
36322 * LeftRightAlignment.cs:
36325 2004-10-04 01:09 jordi
36327 * ThemeWin32Classic.cs: fixes right button position causing right
36328 button not showing on horizontal scrollbars
36330 2004-10-02 13:12 pbartok
36333 - Simplified the Invalidate method by using an X call instead of
36334 generating the expose ourselves
36335 - Added an expose when the window background is changed
36336 - Implemented ClientToScreen method
36338 2004-10-02 13:08 pbartok
36341 - Added Win32EnableWindow method (test for implementing modal
36343 - Added ClientToScreen method and imports
36345 2004-10-02 13:07 pbartok
36347 * XplatUI.cs, XplatUIDriver.cs:
36348 - Added ClientToScreen coordinate translation method
36350 2004-10-02 13:06 pbartok
36352 * KeyPressEventArgs.cs:
36353 - Fixed access level for constructor
36355 2004-10-02 13:06 pbartok
36358 - Changed access level for the window_collection hash table
36360 2004-10-02 13:05 pbartok
36363 - Added KeyPreview property
36364 - Added Menu property (still incomplete, pending Jordi's menu work)
36365 - Implemented ProcessCmdKey
36366 - Implemented ProcessDialogKey
36367 - Implemented ProcessKeyPreview
36369 2004-10-02 13:02 pbartok
36372 - Added private method to get the Control object from the window
36374 - Implemented ContextMenu property
36375 - Implemented PointToScreen
36376 - Implemented PreProcessMessage
36377 - Implemented IsInputChar
36378 - Implemented IsInputKey
36379 - Implemented ProcessCmdKey
36380 - Completed ProcessKeyEventArgs
36381 - Fixed message loop to call the proper chain of functions on key
36383 - Implemented ProcessDialogChar
36384 - Implemented ProcessDialogKey
36385 - Implemented ProcessKeyMessage
36386 - Implemented ProcessKeyPreview
36387 - Added RaiseDragEvent stub (MS internal method)
36388 - Added RaiseKeyEvent stub (MS internal method)
36389 - Added RaiseMouseEvent stub (MS Internal method)
36390 - Added RaisePaintEvent stub (MS Internal method)
36391 - Added ResetMouseEventArgs stub (MS Internal method)
36392 - Implemented RtlTranslateAlignment
36393 - Implemented RtlTranslateContent
36394 - Implemented RtlTranslateHorizontal
36395 - Implemented RtlTranslateLeftRight
36396 - Added generation of KeyPress event
36398 2004-10-02 05:57 ravindra
36400 * ListViewItem.cs: Added attributes.
36402 2004-10-02 05:32 ravindra
36404 * ListView.cs: Added attributes.
36406 2004-10-01 11:53 jackson
36408 * Form.cs: Implement the Close method so work on MessageBox can
36411 2004-09-30 14:06 pbartok
36416 2004-09-30 11:34 jackson
36418 * RadioButton.cs: Fix typo. Patch by John BouAntoun.
36420 2004-09-30 07:26 ravindra
36422 * ListViewItemConverter.cs: Converter for ListViewItem.
36424 2004-09-30 07:26 ravindra
36426 * SortOrder.cs: Enum for ListView control.
36428 2004-09-30 07:25 ravindra
36430 * ColumnHeader.cs: Supporting class for ListView control.
36432 2004-09-30 07:24 ravindra
36434 * ListView.cs, ListViewItem.cs: Initial implementation.
36436 2004-09-30 07:20 ravindra
36438 * ItemActivation.cs: Enum for ListView Control.
36440 2004-09-29 20:29 pbartok
36443 - Added lookup of pixel value for background color; tries to get a
36444 color 'close' to the requested color, it avoids having to create a
36445 colormap. Depending on the display this could mean the used color
36446 is slightly off the desired color. Might have to change it to a more
36447 resource intensive colormap approach, but it will work as a
36448 workaround to avoid red screens.
36450 2004-09-29 14:27 jackson
36452 * XplatUIX11.cs: Set the X DisplayHandle in System.Drawing
36454 2004-09-28 12:44 pbartok
36456 * ButtonBase.cs, CheckBox.cs, ControlPaint.cs, GroupBox.cs,
36457 HScrollBar.cs, Label.cs, LinkLabel.cs, Panel.cs, PictureBox.cs,
36458 ProgressBar.cs, RadioButton.cs, ScrollBar.cs, StatusBar.cs,
36459 Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs, ToolBar.cs,
36460 TrackBar.cs, VScrollBar.cs:
36461 - Streamlined Theme interfaces:
36462 * Each DrawXXX method for a control now is passed the object for
36463 the control to be drawn in order to allow accessing any state the
36464 theme might require
36466 * ControlPaint methods for the theme now have a CP prefix to avoid
36467 name clashes with the Draw methods for controls
36469 * Every control now retrieves it's DefaultSize from the current
36472 2004-09-28 12:17 jackson
36474 * Button.cs: Do not redraw OnClick MouseUp/Down will handle the
36477 2004-09-24 14:57 jackson
36479 * XplatUIX11.cs: Don't lock/enqueue/dequeue for unhandled messages.
36480 Gives us a nice little performance boost.
36482 2004-09-24 12:02 jackson
36484 * TabAlignment.cs, TabAppearance.cs, TabControl.cs, TabDrawMode.cs,
36485 TabPage.cs, TabSizeMode.cs: Partial implementation of the Tab
36486 Control and supporting classes. Initial checkin
36488 2004-09-23 13:08 jackson
36490 * Form.cs: Temp build fixage
36492 2004-09-23 01:39 ravindra
36494 * ItemChangedEventArgs.cs, ItemChangedEventHandler.cs,
36495 ItemCheckEventArgs.cs, ItemCheckEventHandler.cs,
36496 ItemDragEventArgs.cs, ItemDragEventHandler.cs,
36497 LabelEditEventArgs.cs, LabelEditEventHandler.cs: EventArgs and
36498 EventHandlers needed by ListView Control.
36500 2004-09-22 14:12 pbartok
36502 * ScrollableControl.cs:
36503 - Implemented DockPadding property
36504 - Implemented AutoScroll property
36505 - Implemented AutoScrollMargin property
36506 - Implemented AutoScrollMinSize property
36507 - Implemented AutoScrollPosition property
36508 - Implemented DisplayRectangle property (still incomplete)
36509 - Implemented CreateParams property
36510 - Implemented HScroll property
36511 - Implemented VScroll property
36512 - Implemented OnVisibleChanged property
36514 2004-09-22 14:09 pbartok
36517 - Added Form.ControllCollection class
36518 - Added handling for Form owners: Owner, OwnedForms, AddOwnedForm,
36519 RemoveOwnedForm (still incomplete, missing on-top and common
36520 minimize/maximize behaviour)
36521 - Added StartPosition property (still incomplete, does not use when
36523 - Added ShowDialog() methods (still incomplete, missing forcing the
36526 2004-09-22 14:05 pbartok
36529 - Added message loop for modal dialogs
36531 2004-09-22 14:02 pbartok
36534 - Fixed wrong types for events
36536 2004-09-22 14:00 pbartok
36538 * Shortcut.cs, FormWindowState.cs:
36539 - Fixed wrong values
36541 2004-09-22 12:01 jackson
36543 * Control.cs: Text is never null
36545 2004-09-20 22:14 pbartok
36548 - Fixed accessibility level for Idle handler
36550 2004-09-20 18:54 jackson
36552 * Application.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
36553 XplatUIX11.cs: New message loop that uses poll so we don't get a
36556 2004-09-17 10:43 pbartok
36559 - Fixed behaviour of arrow buttons. Now properly behaves like
36560 Buttons (and like Microsoft's scrollbar arrow buttons)
36562 2004-09-17 10:14 pbartok
36565 - Added missing release of keyboard/mouse capture
36567 2004-09-17 06:18 jordi
36569 * ContextMenu.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs,
36570 Theme.cs: Very early menu support
36572 2004-09-16 17:45 pbartok
36575 - Fixed sending a window to the front
36576 - Added overload for SetWindowPos to avoid casting
36578 2004-09-16 17:44 pbartok
36581 - Added SendToBack and BringToFront methods
36583 2004-09-16 07:00 ravindra
36585 * Copyright: Added Novell URL.
36587 2004-09-16 07:00 ravindra
36589 * ToolBar.cs: Invalidate should be done before redrawing.
36591 2004-09-15 21:19 ravindra
36593 * ColumnHeaderStyle.cs: Enum for ListView Control.
36595 2004-09-15 21:18 ravindra
36597 * ColumnClickEventArgs.cs, ColumnClickEventHandler.cs: Event for
36600 2004-09-13 18:26 jackson
36602 * Timer.cs, XplatUIX11.cs: Remove test code so timers are updated
36605 2004-09-13 18:13 jackson
36607 * Timer.cs, X11Structs.cs, XplatUIX11.cs: Timers are now handled in
36608 a second thread and post messages into the main threads message
36609 queue. This makes timing much more consistent. Both win2K and XP
36610 have a minimum timer value of 15 milliseconds, so we now do this
36613 2004-09-13 15:18 pbartok
36615 * X11Structs.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
36617 - Added Z-Ordering methods
36619 2004-09-13 10:56 pbartok
36622 - Fixed #region names
36623 - Moved properties and methods into their proper #regions
36625 2004-09-13 10:51 pbartok
36628 - Added Accept and CancelButton properties
36629 - Added ProcessDialogKey() method
36631 2004-09-13 08:18 pbartok
36633 * IWindowTarget.cs:
36636 2004-09-10 21:50 pbartok
36639 - Added DoDragDrop() [incomplete]
36640 - Properly implemented 'Visible' handling
36641 - Added SetVisibleCore()
36642 - Implemented FindChildAtPoint()
36643 - Implemented GetContainerControl()
36644 - Implemented Hide()
36646 2004-09-10 19:28 pbartok
36649 - Moved methods into their appropriate #regions
36650 - Reordered methods within regions alphabetically
36652 2004-09-10 18:57 pbartok
36654 * XplatUIX11.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
36655 - Added method to retrieve text from window
36657 2004-09-10 18:56 pbartok
36660 - Moved some internal functions into the internal region
36661 - Implemented FontHeight
36662 - Implemented RenderRightToLeft
36663 - Implemented ResizeRedraw
36664 - Implemented ShowFocusCues
36665 - Implemented ShowKeyboardCues
36666 - Implemented FromChildHandle
36667 - Implemented FromHandle
36668 - Implemented IsMnemonic
36669 - Implemented ReflectMessage
36670 - All public and protected Static Methods are now complete
36672 2004-09-10 16:54 pbartok
36675 - Implemented remaining missing public instance properties
36676 - Alphabetized some out of order properties
36678 2004-09-10 05:51 ravindra
36680 * PictureBox.cs: Added a check for null image.
36682 2004-09-10 00:59 jordi
36684 * GroupBox.cs: remove cvs tag
36686 2004-09-09 05:25 ravindra
36688 * ToolBar.cs: Make redraw accessible from ToolBarButton.
36690 2004-09-09 05:23 ravindra
36692 * ToolBarButton.cs: Changes in ToolBarButton need to make it's
36695 2004-09-09 02:28 pbartok
36697 * ThemeWin32Classic.cs:
36698 - Improve disabled string look
36700 2004-09-09 01:15 jordi
36702 * MeasureItemEventArgs.cs, MeasureItemEventHandler.cs: measureitem
36705 2004-09-08 23:56 ravindra
36707 * ItemBoundsPortion.cs: It's enum, not a class!
36709 2004-09-08 23:47 ravindra
36711 * FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs:
36714 2004-09-08 21:13 ravindra
36716 * ItemBoundsPortion.cs, ListViewAlignment.cs, View.cs: Enums for
36719 2004-09-08 21:03 ravindra
36721 * ThemeWin32Classic.cs: PictureBox would not draw a null image to
36724 2004-09-08 21:01 ravindra
36726 * ScrollableControl.cs: Removed unreachable code.
36728 2004-09-08 06:45 jordi
36730 * MenuMerge.cs, Shortcut.cs: enumerations need it by menus
36732 2004-09-08 01:00 jackson
36734 * XplatUIX11.cs: Only run the timers when updating the message
36735 queue. This effectively gives X messages a higher priority then
36736 timer messages. Timers still need love though
36738 2004-09-07 14:01 jackson
36740 * XplatUIX11.cs: Do not call XDestroyWindow, X has already done
36741 this for us and the handle is no longer valid.
36743 2004-09-07 13:59 jackson
36745 * HandleData.cs, XplatUIX11.cs: First steps towards a new X event
36746 loop that manages to not crash. TODO: Add poll and cleanup timers
36748 2004-09-07 11:12 jordi
36750 * GroupBox.cs, Theme.cs, ThemeWin32Classic.cs: GroupBox control
36752 2004-09-07 03:40 jordi
36754 * Label.cs, LinkLabel.cs, Theme.cs, ThemeWin32Classic.cs: LinkLabel
36755 fixes, methods, multiple links
36757 2004-09-06 06:55 jordi
36759 * Control.cs: Caches ClientRectangle rectangle value
36761 2004-09-05 02:03 jordi
36763 * ScrollBar.cs, ThemeWin32Classic.cs: fixes bugs, adds flashing on
36766 2004-09-04 11:10 jordi
36768 * Label.cs: Refresh when font changed
36770 2004-09-02 16:24 pbartok
36773 - Added sanity check to creation of double buffer bitmap
36775 2004-09-02 16:24 pbartok
36778 - Fixed selection of text color
36779 - Fixed handling of resize event; now properly recreates double
36781 - Added missing assignment of TextAlignment
36782 - Added proper default for TextAlignment
36784 2004-09-02 14:26 pbartok
36787 - Added missing RadioButton.RadioButtonAccessibleObject class
36789 2004-09-02 14:26 pbartok
36792 - Added missing Control.ControlAccessibleObject class
36793 - Started to implement Select()ion mechanisms, still very incomplete
36795 2004-09-02 14:25 pbartok
36797 * AccessibleObject.cs:
36798 - Added missing methods
36800 2004-09-02 14:23 pbartok
36802 * AccessibleNavigation.cs, AccessibleSelection.cs:
36805 2004-09-02 10:32 jordi
36807 * Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: implements resource
36808 pool for pens, brushes, and hatchbruses
36810 2004-09-01 15:30 jackson
36812 * StatusBar.cs: Fix typo
36814 2004-09-01 14:44 pbartok
36819 2004-09-01 14:39 pbartok
36821 * Button.cs, RadioButton.cs:
36822 - Functional initial check-in
36824 2004-09-01 14:01 pbartok
36827 - Added missing default
36828 - Added missing region mark
36830 2004-09-01 09:10 jordi
36832 * Label.cs: fixes method signatures, new methods, events, fixes
36835 2004-09-01 07:19 jordi
36837 * Control.cs: Init string variables with an empty object
36839 2004-09-01 04:20 jordi
36841 * Control.cs: fires OnFontChanged event
36843 2004-08-31 20:07 pbartok
36846 - Enabled display of strings
36848 2004-08-31 20:05 pbartok
36851 - Added (partial) implementation of DialogResult; rest needs to be
36852 implemented when the modal loop code is done
36854 2004-08-31 19:55 pbartok
36857 - Fixed to match the removal of the needs_redraw concept
36859 2004-08-31 19:55 pbartok
36862 - Removed the rather odd split between 'needs redraw' and redrawing
36863 - Now handles the events that require regeneration (ambient
36864 properties and size)
36866 2004-08-31 19:41 pbartok
36869 - Added firing of BackColorChanged event
36870 - Added TopLevelControl property
36871 - Fixed handling of WM_ERASEBKGRND message
36873 2004-08-31 12:49 pbartok
36879 2004-08-31 12:48 pbartok
36882 - Finished (famous last words)
36884 2004-08-31 04:35 jordi
36886 * ScrollBar.cs: adds autorepeat timer, uses a single timer, fixes
36887 scrolling bugs, adds new methods
36889 2004-08-30 14:42 pbartok
36892 - Implemented CheckBox drawing code
36894 2004-08-30 14:42 pbartok
36897 - Made Redraw() and CheckRedraw() virtual
36898 - Improved mouse up/down/move logic to properly track buttons
36900 2004-08-30 09:44 pbartok
36903 - Updated to fix broken build. Not complete yet.
36905 2004-08-30 09:28 pbartok
36910 2004-08-30 09:17 pbartok
36915 2004-08-27 16:12 ravindra
36917 * ToolBarButton.cs: Added TypeConverter attribute.
36919 2004-08-27 16:07 ravindra
36921 * ImageIndexConverter.cs: Implemented.
36923 2004-08-27 14:17 pbartok
36926 - Removed unneeded stack vars
36927 - First attempt to fix sizing issues when layout is suspended
36929 2004-08-25 15:35 jordi
36931 * ScrollBar.cs: more fixes to scrollbar
36933 2004-08-25 14:04 ravindra
36935 * Theme.cs, ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs:
36936 Added the missing divider code and grip for ToolBar Control.
36938 2004-08-25 13:20 pbartok
36941 - Control now properly passes the ambient background color to child
36944 2004-08-25 13:20 jordi
36946 * ScrollBar.cs: small bug fix regarding bar position
36948 2004-08-25 12:33 pbartok
36951 - Now only calls SetTimer or KillTimer if the enabled state has
36954 2004-08-25 12:33 pbartok
36957 - Fixed timer handling, now seems to work
36958 - Improved error message for window creation
36960 2004-08-25 12:32 pbartok
36963 - Fixed generation of MouseUp message
36965 2004-08-25 12:29 jordi
36967 * ProgressBar.cs, ThemeWin32Classic.cs: new methods, properties,
36968 and fixes for progressbar
36970 2004-08-24 18:43 ravindra
36972 * ThemeWin32Classic.cs, ToolBar.cs: Fixed wrapping related issues
36973 in ToolBar control.
36975 2004-08-24 17:15 pbartok
36979 - Added missing events
36982 2004-08-24 17:14 pbartok
36984 * StatusBar.cs, PictureBox.cs:
36985 - Now uses Control's CreateParams
36987 2004-08-24 16:36 pbartok
36990 - Fixed background color handling
36991 - Fixed sending of enter/leave events on a grab
36993 2004-08-24 16:35 pbartok
36996 - Refined definitions for CrossingEvent
36998 2004-08-24 12:37 jordi
37000 * ScrollBar.cs, Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: fixes
37001 formmating, methods signature, and adds missing events
37003 2004-08-24 12:24 jordi
37005 * Control.cs: fire OnEnabledChanged event
37007 2004-08-24 11:17 pbartok
37010 - Implemented SetTimer() and KillTimer()
37012 2004-08-24 11:16 pbartok
37015 - Now uses Remove instead of Add to kill the timer
37017 2004-08-24 10:16 jackson
37019 * PictureBox.cs, Theme.cs, ThemeWin32Classic.cs: Handle drawing
37020 picture boxes in the theme now. Draw picture box borders and obey
37023 2004-08-24 05:49 jackson
37025 * Timer.cs: Remove top secret debugging code
37027 2004-08-24 05:34 jackson
37029 * PictureBox.cs: Temp hack to make picture boxes draw their full
37032 2004-08-24 05:29 jackson
37034 * Timer.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
37035 XplatUIX11.cs: Move timers to the driver level. On X they are
37036 queued by the driver and checked on idle.
37038 2004-08-24 01:07 jackson
37040 * XplatUIX11.cs: Use a queue for async messages instead of passing
37041 them as ClientMessages since that was totally broken. Also simply
37042 check for events and return an idle message if none are found. This
37043 gives us an idle handler, and prevents deadlocking when no messages
37046 2004-08-23 18:19 ravindra
37048 * XplatUIWin32.cs: Removed the unwanted destructor.
37050 2004-08-23 17:27 pbartok
37053 - Finishing touches. Works now, just needs some optimizations.
37055 2004-08-23 16:53 jordi
37057 * ScrollBar.cs: small fix
37059 2004-08-23 16:45 pbartok
37062 - Removed debug output
37065 2004-08-23 16:43 jordi
37067 * ScrollBar.cs: [no log message]
37069 2004-08-23 16:10 pbartok
37072 - Fixed handling of WM_CLOSE message
37073 - Removed debug output
37075 2004-08-23 16:09 pbartok
37078 - Added handling of Idle event
37079 - Added handling of form closing
37080 - Fixed reporting of MessageLoop property
37081 - Removed some unneeded code, should provide a bit of a speedup
37083 2004-08-23 15:22 pbartok
37086 - Added InitLayout() method
37087 - Added code to properly perform layout when Anchor or Dock property
37089 - Changed 'interpretation' of ResumeLayout. MS seems to have a
37090 LAMESPEC, tried to do it in a way that makes sense
37092 2004-08-23 14:10 jordi
37094 * HScrollBar.cs, ScrollBar.cs, TrackBar.cs, VScrollBar.cs: fixes
37095 properties and methods
37097 2004-08-23 13:55 pbartok
37100 - Properly fixed Jordi's last fix
37101 - Now uses Cursor's Position property instead of calling XplatUI
37104 2004-08-23 13:44 jordi
37106 * PaintEventHandler.cs: Adding missing attribute
37108 2004-08-23 13:39 pbartok
37111 - Implemented Position property
37113 2004-08-23 13:39 pbartok
37115 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
37116 - Added method to move mouse cursor
37118 2004-08-23 13:39 pbartok
37121 - Fixed setting of background color
37122 - Added method to move mouse cursor
37124 2004-08-23 13:16 jordi
37126 * Control.cs: avoids null exception
37128 2004-08-22 17:46 jackson
37130 * PictureBox.cs, PictureBoxSizeMode.cs: Initial implementation of
37133 2004-08-22 17:40 jackson
37135 * XplatUIX11.cs: Add some missing locks
37137 2004-08-22 15:10 pbartok
37139 * Control.cs, Form.cs:
37140 - Removed OverlappedWindow style from Control, instead it's default
37142 - Made form windows OverlappedWindow by default
37144 2004-08-22 13:34 jackson
37146 * ScrollBar.cs: Update the position through the Value property so
37147 the OnValueChanged event is raised.
37149 2004-08-22 12:04 pbartok
37152 - Added Cursor.cs and UserControl.cs
37154 2004-08-22 12:03 pbartok
37157 - Started implementation, not usable yet
37159 2004-08-22 12:00 pbartok
37162 - Implemented UserControl (complete)
37164 2004-08-21 19:20 ravindra
37166 * ToolBar.cs: Correcting the formatting mess of VS.NET.
37168 2004-08-21 18:49 ravindra
37170 * ToolBar.cs: Probably this completes the missing attributes in
37173 2004-08-21 18:03 ravindra
37175 * ToolBar.cs, ToolBarButton.cs, ToolBarButtonClickEventArgs.cs:
37176 Fixed toolbar control signatures.
37178 2004-08-21 16:32 pbartok
37183 2004-08-21 16:30 pbartok
37188 2004-08-21 16:19 pbartok
37190 * Control.cs, Label.cs:
37193 2004-08-21 15:57 pbartok
37196 - Added loads of debug output for development
37197 - Fixed typo in method name
37199 2004-08-21 15:52 pbartok
37201 * ToolBarButtonClickEventArgs.cs:
37202 - Added missing base class
37204 2004-08-21 14:53 pbartok
37207 - Updated to match new GrabWindow signature
37209 2004-08-21 14:51 pbartok
37211 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
37212 - Added method to get default display size
37214 2004-08-21 14:23 pbartok
37216 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
37217 - Added method to query current grab state
37218 - Added argument to allow confining a grab to a window
37220 2004-08-21 14:22 pbartok
37223 - Added [Flags] attribute so that modifiers can be used in bitwise
37226 2004-08-21 14:21 pbartok
37228 * TrackBar.cs, ScrollBar.cs:
37229 - Replaced direct XplatUI calls with their Control counterpart
37231 2004-08-21 13:32 pbartok
37234 - Implemented Created property
37236 2004-08-21 13:28 pbartok
37239 - Implemented ContainsFocus
37241 2004-08-21 13:26 pbartok
37244 - Implemented CausesValidation
37246 2004-08-21 13:21 pbartok
37249 - Implemented CanFocus
37250 - Implemented CanSelect
37251 - Implemented Capture
37253 2004-08-21 12:35 pbartok
37256 - Fixed bug with Async message handling
37257 - Implemented getting the ModifierKeys
37259 2004-08-21 12:32 jackson
37261 * AsyncMethodResult.cs: Make sure we have the mutex before we
37262 release it. Fixes BeginInvoke on windows
37264 2004-08-21 11:31 pbartok
37266 * XplatUIWin32.cs, XplatUIX11.cs:
37267 - Drivers now return proper mouse state
37269 2004-08-21 10:54 jackson
37271 * Control.cs: Implement EndInvoke
37273 2004-08-21 10:48 jackson
37275 * Timer.cs: Remove unneeded finalizer
37277 2004-08-20 19:52 ravindra
37279 * ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs: Improvments
37280 in mouse event handling in the ToolBar control.
37282 2004-08-20 19:50 ravindra
37284 * ImageList.cs: Changed draw method to use the arguments passed in
37287 2004-08-20 18:58 pbartok
37289 * XplatUIStructs.cs:
37290 - Added private message for async communication
37292 2004-08-20 17:38 ravindra
37294 * Control.cs: Made RightToLeft property virtual and removed a
37297 2004-08-20 14:39 jordi
37299 * ThemeGtk.cs: use style_attach
37301 2004-08-20 14:39 pbartok
37304 - Added jackson's Async code from X11 to Win32
37306 2004-08-20 14:09 pbartok
37309 - Added all new files
37311 2004-08-20 14:09 pbartok
37314 - Added call to set window background color
37316 2004-08-20 14:03 pbartok
37318 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
37319 - Added method for setting the window background
37321 2004-08-20 14:02 pbartok
37324 - Added method for setting the background color
37325 - Added handling for erasing the window background
37327 2004-08-20 13:45 jordi
37329 * TrackBar.cs: fixes timer, new properties and methods
37331 2004-08-20 13:34 jackson
37333 * ScrollBar.cs: Use the SWF timer so callbacks are run in the
37336 2004-08-20 13:22 jackson
37338 * Timer.cs: Timer Tick events are now handed through Controls Async
37339 mechanism so the callbacks are executed in the same thread as X
37341 2004-08-20 13:19 jackson
37343 * XplatUIDriver.cs: Expose functionality to send async messages
37346 2004-08-20 13:18 jackson
37348 * Control.cs: Implement Begininvoke
37350 2004-08-20 13:14 jackson
37352 * XplatUI.cs, XplatUIWin32.cs: Expose functionality to send async
37353 messages through the driver
37355 2004-08-20 13:12 jackson
37357 * XplatUIX11.cs: Lock before all X operations. Also added Async
37358 method functionality through XSendEvent
37360 2004-08-20 13:11 jackson
37362 * X11Structs.cs: Use IntPtrs for ClientMessage extra data (TODO:
37363 This will screw up on 64 bit systems)
37365 2004-08-20 13:10 jackson
37367 * AsyncMethodData.cs, AsyncMethodResult.cs: Classes for sending
37368 Async messages through X/Win32
37370 2004-08-19 19:39 pbartok
37373 - Updated code to match new HandleData.DeviceContext type
37375 2004-08-19 19:38 pbartok
37378 - Made DeviceContext a generic object to allow usage from various
37380 - Added support for queueing Windows messages
37382 2004-08-19 19:37 pbartok
37385 - Added generation of MouseEnter, MouseLeave and MouseHover events
37386 - Added cleanup on EndPaint
37388 2004-08-19 19:17 pbartok
37391 - Added handling of WM_MOUSEHOVER
37392 - Worked around 'bug' in Win32 WM_MOUSE_ENTER/WM_MOUSE_LEAVE driver
37395 2004-08-19 18:55 jordi
37397 * ThemeGtk.cs: fixes button order
37399 2004-08-19 18:12 jordi
37401 * Theme.cs, ThemeWin32Classic.cs: fixes methods signature
37403 2004-08-19 17:09 pbartok
37406 - Added Right property
37407 - Added RightToLeft property
37409 2004-08-19 16:27 jordi
37411 * ThemeGtk.cs: experimental GTK theme support
37413 2004-08-19 16:26 jordi
37415 * ITheme.cs, Theme.cs: move themes from an interface to a class
37417 2004-08-19 16:25 jordi
37419 * Control.cs, ScrollBar.cs, ThemeEngine.cs, ThemeWin32Classic.cs:
37422 2004-08-19 16:04 pbartok
37425 - Added colormap basics
37426 - Added a way to re-initialize with a different display handle
37427 - Fixed setting of the window background color
37428 - Added various X11 imports related to colors and colormaps
37430 2004-08-19 15:51 pbartok
37433 - Removed packing hints (Paolo suggested this a while back)
37434 - fixed colormap type
37435 - Added default Atom types
37436 - Added Screen and color structs and enums
37438 2004-08-19 15:39 pbartok
37441 - Added missing Draw() method
37442 - Added missing RecreateHandle event
37444 2004-08-19 15:30 pbartok
37447 - Added handling of WM_CLOSE
37449 2004-08-18 13:16 jordi
37451 * ITheme.cs, ThemeWin32Classic.cs, XplatUIWin32.cs: Move colors to
37454 2004-08-18 09:56 jordi
37456 * ScrollBar.cs: fixes to scrollbar: steps and multiple timers
37458 2004-08-17 15:31 ravindra
37460 * SWF.csproj: Updated project.
37462 2004-08-17 15:25 pbartok
37465 - Drawing improvement; don't call UpdateBounds if we are not visible
37466 (or have been minimized)
37468 2004-08-17 15:24 pbartok
37471 - Finished IsVisible
37472 - Added Win32GetWindowPlacement
37474 2004-08-17 15:08 jackson
37476 * Panel.cs: Initial checkin of the Panel
37478 2004-08-17 14:25 pbartok
37481 - Fixed broken handling of default window sizes
37483 2004-08-17 13:29 jackson
37485 * ThemeWin32Classic.cs: Don't use KnownColor to create colours. It
37486 has a large startup time.
37488 2004-08-17 10:25 jackson
37490 * HandleData.cs: union areas properly
37492 2004-08-17 10:12 jackson
37494 * HandleData.cs: union areas properly
37496 2004-08-16 20:00 ravindra
37498 * ToolBar.cs, ToolBarButton.cs: Added attributes.
37500 2004-08-16 18:48 ravindra
37502 * ToolBar.cs: Added attributes.
37504 2004-08-16 17:17 ravindra
37506 * SWF.csproj: Updated project.
37508 2004-08-16 17:16 jackson
37510 * XplatUIX11.cs: Check for more expose events before sending a
37511 WM_PAINT so they can all be grouped together. This makes dragging a
37512 window across another window redraw in a sane way.
37514 2004-08-16 15:47 pbartok
37517 - Added handling of WM_MOUSE_ENTER & WM_MOUSE_LEAVE to
37518 support OnMouseEnter/Leave()
37519 - Added WS_CLIPSIBLINGS and WS_CLIPCHILDREN window styles to improve
37522 2004-08-16 15:46 pbartok
37524 * XplatUIStructs.cs, XplatUIX11.cs:
37525 - Added WM_MOUSE_ENTER & WM_MOUSE_LEAVE to support
37526 OnMouseEnter/Leave()
37528 2004-08-16 15:34 jackson
37530 * XplatUIX11.cs: Group multiple expose events in HandleData, make
37531 sure messages get the message field set to WM_NULL if they are not
37534 2004-08-16 15:24 jackson
37536 * HandleData.cs: HandleData is used for storing message information
37539 2004-08-15 17:23 ravindra
37541 * ColorDepth.cs: Added attribute.
37543 2004-08-15 17:23 ravindra
37545 * SWF.csproj: Updated project for ToolBar Control.
37547 2004-08-15 17:20 ravindra
37549 * ITheme.cs, ThemeWin32Classic.cs: Changes to Theme for ToolBar
37550 control and also dos2unix format.
37552 2004-08-15 17:13 ravindra
37554 * ToolBar.cs, ToolBarAppearance.cs, ToolBarButton.cs,
37555 ToolBarButtonClickEventArgs.cs,
37556 ToolBarButtonClickEventHandler.cs, ToolBarButtonStyle.cs,
37557 ToolBarTextAlign.cs: First Implementation of ToolBar control.
37559 2004-08-15 15:31 pbartok
37562 - First (mostly) working version
37564 2004-08-13 16:15 pbartok
37567 - Fixed Anchor default
37569 2004-08-13 15:43 pbartok
37572 - Changed GetCursorPos signature
37574 2004-08-13 15:42 pbartok
37576 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
37577 - Changed signature for GetCursorPos
37579 2004-08-13 15:25 pbartok
37583 - Fixed resizing/exposure handling
37585 2004-08-13 15:22 jordi
37587 * ThemeWin32Classic.cs: removes redundant code and fixes issues
37590 2004-08-13 14:55 jordi
37592 * TrackBar.cs: change from wndproc to events
37594 2004-08-13 13:00 jordi
37596 * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
37597 XplatUIX11.cs: implements PointToClient (ScreenToClient)
37599 2004-08-13 12:53 pbartok
37602 - Changed GetWindowPos to also provide client area size
37603 - Fixed broken prototypes for several win32 functions
37605 2004-08-13 12:53 pbartok
37607 * XplatUI.cs, XplatUIDriver.cs:
37608 - Changed GetWindowPos to also provide client area size
37610 2004-08-13 12:52 pbartok
37613 - Added generation of WM_POSCHANGED
37614 - Changed GetWindowPos to also provide client area size
37616 2004-08-13 12:52 pbartok
37619 - Added Dispose() and destructor
37620 - Fixed resizing and bounds calculation
37622 - Added memory savings for invisible windows
37624 2004-08-13 12:46 jordi
37626 * TrackBar.cs: adds timer and grap window
37628 2004-08-13 10:25 jackson
37630 * Timer.cs: SWF Timer
37632 2004-08-12 16:59 pbartok
37634 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
37635 - Implemented method to get current mouse position
37637 2004-08-12 14:29 jordi
37639 * ITheme.cs, ThemeWin32Classic.cs, TrackBar.cs: Trackbar
37640 enhancement, fix mouse problems, highli thumb, etc
37642 2004-08-12 13:31 pbartok
37645 - Fixed Anchoring bugs
37647 2004-08-12 13:01 jackson
37649 * StatusBar.cs: Don't forget things
37651 2004-08-12 12:54 jackson
37653 * ThemeWin32Classic.cs: Handle owner draw status bars
37655 2004-08-12 12:54 jackson
37657 * StatusBar.cs: Implement missing properties, events, and methods.
37658 Handle mouse clicking
37660 2004-08-12 10:19 jackson
37662 * StatusBarPanelClickEventArgs.cs,
37663 StatusBarPanelClickEventHandler.cs: Classes for handling status
37664 bar panel click events
37666 2004-08-12 10:10 jackson
37668 * Control.cs: Add missing properties
37670 2004-08-12 09:46 pbartok
37672 * BindingsManagerBase.cs:
37673 - Name changed to BindingManagerBase.cs
37675 2004-08-12 09:25 jordi
37677 * ScrollableControl.cs: calls ctrlbase instead of exeception
37679 2004-08-11 16:28 pbartok
37681 * InputLanguageChangingEventArgs.cs:
37682 - Never check in before compiling. Fixes the last check-in
37684 2004-08-11 16:26 pbartok
37686 * InputLanguageChangingEventArgs.cs:
37687 - More signature fixes
37689 2004-08-11 16:20 pbartok
37691 * BindingManagerBase.cs, BindingMemberInfo.cs, ContainerControl.cs,
37692 Control.cs, ControlEventArgs.cs, ControlPaint.cs, Form.cs,
37693 ImageListStreamer.cs, InputLanguage.cs,
37694 InputLanguageChangedEventArgs.cs,
37695 InputLanguageChangingEventArgs.cs, Keys.cs, LayoutEventArgs.cs,
37696 LinkArea.cs, Message.cs, MouseEventArgs.cs, NativeWindow.cs,
37697 ScrollEventArgs.cs, ScrollableControl.cs, XplatUI.cs,
37698 XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
37701 2004-08-11 16:16 pbartok
37705 - Added .Net 1.1 method
37707 2004-08-11 15:25 pbartok
37710 - Fixed BindingManagerBase.cs filename
37712 2004-08-11 15:22 pbartok
37714 * BindingManagerBase.cs:
37715 - Was checked in with wrong filename
37717 2004-08-11 14:50 pbartok
37722 2004-08-11 13:41 jordi
37724 * XplatUIWin32.cs: Fixes ClientRect
37726 2004-08-11 13:19 pbartok
37728 * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
37730 - We had SetWindowPos and MoveWindow to set window positions and
37731 size, removed MoveWindow. We have GetWindowPos, so it made sense to
37732 keep SetWindowPos as matching counterpart
37733 - Added some X11 sanity checking
37735 2004-08-11 12:59 pbartok
37738 - Major cleanup of my SetBounds/SetBoundsCore/UpdateBounds mess
37739 (It seems that SetBounds is just a front for SetBoundsCore and
37740 SetBoundsCore updates the underlying window system and
37741 UpdateBounds is responsible for updating the variables associated
37742 with the Control and sending the events)
37743 - Major cleanup of Size handling; we now have two sizes, client_size
37744 and bounds. Bounds defines the window with decorations, client_size
37747 2004-08-11 12:55 pbartok
37749 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
37750 - Added method to calculate difference between decorated window and
37753 2004-08-11 12:54 pbartok
37756 - Forcing redraw on resize
37758 2004-08-11 11:43 pbartok
37761 - Removed disposing of the actual images when the list is disposed
37763 2004-08-11 09:13 pbartok
37766 - Now properly reparents windows
37768 2004-08-11 08:37 pbartok
37773 2004-08-11 07:47 pbartok
37776 - Rewrote the collection stuff. Might not be as fast now, not
37777 keeping the number of children around and accessible directly, but
37778 it's more straightforward
37780 2004-08-11 07:44 pbartok
37782 * AccessibleObject.cs:
37783 - Fixed to match ControlCollection rewrite
37785 2004-08-11 07:43 pbartok
37788 - Added missing creation of the collection list
37790 2004-08-10 20:08 jackson
37792 * StatusBar.cs: Get the paint message from WndProc
37794 2004-08-10 19:31 jackson
37796 * ThemeWin32Classic.cs: Create Brushes as little as possible
37798 2004-08-10 19:20 jackson
37800 * UICues.cs: Add Flags attribute
37802 2004-08-10 19:19 jackson
37804 * StatusBarPanel.cs: Signature cleanup
37806 2004-08-10 19:10 jackson
37808 * StatusBarDrawItemEventArgs.cs, StatusBarDrawItemEventHandler.cs:
37809 Initial implementation of status bar item drawing
37811 2004-08-10 17:27 jordi
37813 * TrackBar.cs: add missing methods, properties, and restructure to
37816 2004-08-10 16:24 jackson
37818 * AccessibleStates.cs, Border3DSide.cs, Border3DStyle.cs,
37819 ButtonState.cs, ControlStyles.cs, DragDropEffects.cs: Add flags
37822 2004-08-10 13:21 jordi
37824 * ITheme.cs, ScrollBar.cs, ThemeWin32Classic.cs: scrollbar
37825 enhancements and standarize on win colors defaults
37827 2004-08-10 12:52 jackson
37829 * DrawItemEventArgs.cs, DrawItemState.cs, ITheme.cs,
37830 ThemeWin32Classic.cs: Implement DrawItem functionality
37832 2004-08-10 12:47 jordi
37834 * XplatUIWin32.cs: Calls InvalidateRect before UpdateWindow
37836 2004-08-10 12:32 jordi
37838 * Control.cs: throw ontextchange event
37840 2004-08-10 11:43 pbartok
37843 - Added more to the still unfinished Dock/Anchor layout code
37845 2004-08-10 11:39 pbartok
37847 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
37848 - Added GetWindowPos method
37850 2004-08-10 11:36 pbartok
37853 - Implemented several methods
37855 2004-08-10 09:47 jackson
37857 * TrackBar.cs: Allow control to handle buffering
37859 2004-08-10 09:41 jackson
37861 * ProgressBar.cs, ScrollBar.cs: Allow control to handle buffering
37863 2004-08-10 09:24 jackson
37865 * Label.cs, LinkLabel.cs: Let Control handle buffering.
37867 2004-08-10 09:09 jackson
37869 * StatusBar.cs: Let Control handle all the buffering.
37871 2004-08-10 09:08 jackson
37873 * Control.cs: Control will now handle the buffering code, so each
37874 control does not have to implement this.
37876 2004-08-10 08:34 jackson
37878 * XplatUIDriver.cs: Use default colors from the theme
37880 2004-08-09 17:12 pbartok
37883 - Fixed several bugs Ravindra pointed out
37885 2004-08-09 16:11 pbartok
37888 - Added incomplete dock layout code
37889 - Added support for mouse wheel
37891 2004-08-09 16:09 pbartok
37894 - Added handling for middle and right mousebutton
37895 - Added handling for mouse wheel
37896 - Added handling for key state and mouse state and position
37897 - Now properly generates WM_xBUTTONx messages and WM_MOUSEWHEEL
37900 2004-08-09 15:40 jackson
37902 * StatusBarPanel.cs, StatusBarPanelAutoSize.cs,
37903 StatusBarPanelBorderStyle.cs, StatusBarPanelStyle.cs: Initial
37906 2004-08-09 15:37 jackson
37908 * StatusBar.cs: Initial implementation of StatusBar
37910 2004-08-09 15:36 jackson
37912 * ITheme.cs: Add support for drawing status bar and getting status
37915 2004-08-09 15:35 pbartok
37920 2004-08-09 15:34 jackson
37922 * ThemeWin32Classic.cs: Add support for drawing status bar and get
37923 status bar item sizes
37925 2004-08-09 15:21 jackson
37927 * ThemeWin32Classic.cs: Use known colors for default control
37930 2004-08-09 15:12 jackson
37932 * ThemeWin32Classic.cs: Make the default font static, it is static
37933 in control so this doesn't change functionality and creating fonts
37936 2004-08-09 14:56 pbartok
37939 - Added GrabMode enum
37941 2004-08-09 14:55 pbartok
37943 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
37944 - Removed Run method, was only required for initial development
37946 2004-08-09 14:51 pbartok
37948 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
37949 - Implemented GrabWindow/ReleaseWindow methods to allow pointer
37952 2004-08-09 13:48 pbartok
37955 - Fixed default sizing for child windows
37957 2004-08-09 12:56 pbartok
37960 - Added generation of WM_DESTROY message
37961 - Added handling of window manager induced shutdown
37963 2004-08-09 11:31 jackson
37965 * ThemeWin32Classic.cs: New names for control properties
37967 2004-08-09 11:25 jackson
37969 * Control.cs: Use new color names
37971 2004-08-09 11:02 jackson
37973 * XplatUI.cs: Get default window properties from the theme
37975 2004-08-09 11:01 jackson
37977 * ITheme.cs: The theme engine now controls default window
37980 2004-08-09 11:00 jackson
37982 * ThemeWin32Classic.cs: Add default window color properties
37984 2004-08-09 10:17 jackson
37986 * ThemeWin32Classic.cs: Use correct default back color
37988 2004-08-09 10:05 jackson
37990 * XplatUIWin32.cs, XplatUIX11.cs: These properties are handled by
37993 2004-08-09 09:56 jackson
37995 * XplatUI.cs: Remove defaults, these are handled by the theme now.
37997 2004-08-09 09:54 jackson
37999 * Control.cs: Get default properties from the theme.
38001 2004-08-09 09:53 jackson
38003 * ITheme.cs: Themes now handle default control properties
38005 2004-08-09 09:53 jackson
38007 * ThemeWin32Classic.cs: Themes now handle default control
38008 properties so coloring will be consistent
38010 2004-08-08 16:54 jordi
38012 * ITheme.cs, ThemeWin32Classic.cs: Label BorderStyles
38014 2004-08-08 15:08 jordi
38016 * XplatUIX11.cs: fixes keyboard crash
38018 2004-08-08 13:47 jordi
38020 * Label.cs: add cvs header info
38022 2004-08-08 12:09 jackson
38024 * ThemeWin32Classic.cs: Add pen_buttonface
38026 2004-08-08 11:52 jordi
38028 * Label.cs, LinkLabel.cs: [no log message]
38030 2004-08-08 11:34 jordi
38032 * ThemeWin32Classic.cs: Use Windows Standard Colours
38034 2004-08-07 17:32 jordi
38036 * TrackBar.cs: throw exceptions of invalid enums values
38038 2004-08-07 17:31 jordi
38040 * Label.cs, LinkLabel.cs, ThemeWin32Classic.cs: fixes label bug and
38043 2004-08-07 16:56 jackson
38045 * HorizontalAlignment.cs: Initial checkin
38047 2004-08-07 13:16 jordi
38049 * Label.cs, LinkLabel.cs: throw exceptions, fixes events, missing
38052 2004-08-07 13:05 jordi
38054 * ITheme.cs, ThemeWin32Classic.cs: Theme colour support and
38055 GetSysColor defines
38057 2004-08-06 18:01 pbartok
38059 * ThemeWin32Classic.cs:
38060 - Fixed some rounding issues with float/int
38062 2004-08-06 18:00 jackson
38064 * DockStyle.cs, AnchorStyles.cs:
38066 Add flags and serializable attributes.
38068 2004-08-06 17:46 pbartok
38071 - Implemented GetParent
38073 2004-08-06 17:18 pbartok
38076 - Fixed some rounding issues with float/int
38078 2004-08-06 17:17 pbartok
38080 * X11Structs.cs, XplatUIX11.cs:
38081 - Fixed Refresh and Invalidate
38083 2004-08-06 15:30 pbartok
38085 * Control.cs, X11Structs.cs, XplatUIX11.cs:
38086 - Fixed recursive loop when resizing
38087 - Improved/fixed redrawing on expose messages
38089 2004-08-06 09:53 jordi
38091 * Control.cs, X11Structs.cs, XplatUIWin32.cs, XplatUIX11.cs: X11
38092 keyboard navigation
38094 2004-08-06 08:02 pbartok
38096 * X11Structs.cs, XplatUIX11.cs:
38097 - Fixed reparenting
38098 - Fixed window border creation
38100 2004-08-05 15:38 pbartok
38103 - Attempted fix for reparenting problems
38105 2004-08-04 15:14 pbartok
38108 - Fixed Invalidation bug (calculated wrong client area)
38109 - Added ClientSize setter
38111 2004-08-04 15:13 pbartok
38114 - Added AutoScale properties
38116 2004-08-04 15:13 pbartok
38119 - Added latest files
38121 2004-08-04 14:11 pbartok
38123 * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
38125 - Added Invalidate handling
38127 2004-08-03 17:09 jordi
38129 * XplatUIDriver.cs: fixes spelling mistake
38131 2004-07-27 09:53 jordi
38133 * TrackBar.cs: fixes trackbar events, def classname, methods
38136 2004-07-27 09:29 jordi
38138 * ScrollBar.cs: fixes scrollbar events
38140 2004-07-27 04:38 jordi
38142 * Control.cs: changes to be able to run winforms samples
38144 2004-07-26 11:42 jordi
38146 * ControlPaint.cs, ITheme.cs, ProgressBar.cs, ScrollBar.cs,
38147 ThemeEngine.cs, ThemeWin32Classic.cs, TrackBar.cs: Theme support
38149 2004-07-26 05:41 jordi
38151 * MessageBox.cs, MessageBoxButtons.cs, MessageBoxDefaultButton.cs,
38152 MessageBoxIcon.cs, MessageBoxOptions.cs: initial messagebox
38155 2004-07-22 09:22 jordi
38157 * LinkLabel.cs, LinkLabelLinkClickedEventHandler.cs: link label:
38158 check link overlapping, implement events, and fixes
38160 2004-07-21 10:28 jordi
38162 * DialogResult.cs, IButtonControl.cs: fixes comments filenames
38164 2004-07-21 10:19 jordi
38166 * DialogResult.cs, IButtonControl.cs, Label.cs, LinkArea.cs,
38167 LinkBehavior.cs, LinkClickedEventArgs.cs, LinkLabel.cs,
38168 LinkLabelLinkClickedEventArgs.cs,
38169 LinkLabelLinkClickedEventHandler.cs, LinkState.cs,
38170 XplatUIWin32.cs, LinkClickedEventHandler.cs: LinkLabel control
38173 2004-07-19 13:09 jordi
38175 * Control.cs, Label.cs: label control re-written: added missing
38176 functionlity, events, and properties
38178 2004-07-19 10:49 jordi
38180 * Control.cs: fixes SetBounds logic
38182 2004-07-19 01:29 jordi
38184 * Control.cs: Call RefreshWindow only if the window has created
38186 2004-07-15 14:05 pbartok
38188 * ColorDepth.cs, ImageList.cs, ImageListStreamer.cs, SWF.csproj:
38189 - Implemented ImageList and ImageList.ImageCollection classes
38190 - Added ColorDepth enumeration
38191 - Updated SWF VS.Net project
38193 2004-07-15 11:06 jordi
38195 * XplatUIStructs.cs: added MsgButons enum
38197 2004-07-15 11:03 jordi
38199 * Control.cs: added basic mouse handeling events
38201 2004-07-15 03:38 jordi
38203 * Orientation.cs, TickStyle.cs, TrackBar.cs: Horizontal and
38204 Vertical TrackBar control implementation
38206 2004-07-13 09:33 jordi
38208 * HScrollBar.cs, VScrollBar.cs: vertical and hort. classes commit
38210 2004-07-13 09:31 jordi
38212 * Control.cs, Form.cs: commit: new properties and fixes form size
38215 2004-07-09 14:13 miguel
38217 * ProgressBar.cs: Spelling
38219 2004-07-09 11:25 pbartok
38222 - Removed usage of Rectangle for drawing. Miguel pointed out it's
38225 2004-07-09 11:17 miguel
38227 * ProgressBar.cs: 2004-07-09 Miguel de Icaza <miguel@ximian.com>
38229 * ProgressBar.cs: Fixed spelling for `block'
38231 drawProgressBar: renamed to `DrawProgressBar' to follow the coding
38234 Avoid using the += on rect.X, that exposed a bug in the compiler.
38236 2004-07-08 23:21 pbartok
38238 * AccessibleObject.cs, AccessibleRole.cs, AccessibleStates.cs,
38239 AnchorStyles.cs, Application.cs, ApplicationContext.cs,
38240 BaseCollection.cs, Binding.cs, BindingContext.cs,
38241 BindingMemberInfo.cs, BindingsCollection.cs,
38242 BindingsManagerBase.cs, Border3DSide.cs, Border3DStyle.cs,
38243 BorderStyle.cs, BoundsSpecified.cs, ButtonBorderStyle.cs,
38244 ButtonState.cs, CaptionButton.cs, CheckBox.cs,
38245 ContainerControl.cs, Control.cs, ControlEventArgs.cs,
38246 ControlEventHandler.cs, ControlPaint.cs, ControlStyles.cs,
38247 ConvertEventArgs.cs, ConvertEventHandler.cs, Copyright,
38248 CreateParams.cs, DockStyle.cs, DragAction.cs, DragDropEffects.cs,
38249 DragEventArgs.cs, DragEventHandler.cs, FlatStyle.cs, Form.cs,
38250 FrameStyle.cs, GiveFeedbackEventArgs.cs,
38251 GiveFeedbackEventHandler.cs, HelpEventArgs.cs,
38252 HelpEventHandler.cs, IContainerControl.cs, IDataObject.cs,
38253 IMessageFilter.cs, IWin32Window.cs, ImeMode.cs, InputLanguage.cs,
38254 InputLanguageChangedEventArgs.cs,
38255 InputLanguageChangedEventHandler.cs,
38256 InputLanguageChangingEventArgs.cs,
38257 InputLanguageChangingEventHandler.cs, InputLanguageCollection.cs,
38258 InvalidateEventArgs.cs, InvalidateEventHandler.cs,
38259 KeyEventArgs.cs, KeyEventHandler.cs, KeyPressEventArgs.cs,
38260 KeyPressEventHandler.cs, Keys.cs, Label.cs, LayoutEventArgs.cs,
38261 LayoutEventHandler.cs, MenuGlyph.cs, Message.cs, MouseButtons.cs,
38262 MouseEventArgs.cs, MouseEventHandler.cs, NativeWindow.cs,
38263 PaintEventArgs.cs, PaintEventHandler.cs, ProgressBar.cs,
38264 QueryAccessibilityHelpEventArgs.cs,
38265 QueryAccessibilityHelpEventHandler.cs,
38266 QueryContinueDragEventArgs.cs, QueryContinueDragEventHandler.cs,
38267 RightToLeft.cs, SWF.csproj, SWF.csproj.user, ScrollBar.cs,
38268 ScrollBars.cs, ScrollButton.cs, ScrollEventArgs.cs,
38269 ScrollEventHandler.cs, ScrollEventType.cs, ScrollableControl.cs,
38270 TODO, TODOAttribute.cs, UICues.cs, UICuesEventArgs.cs,
38271 UICuesEventHandler.cs, X11Structs.cs, XplatUI.cs,
38272 XplatUIDriver.cs, XplatUIStructs.cs, XplatUIWin32.cs,
38273 XplatUIX11.cs, lang.cs: