1 2008-12-31 Ivan N. Zlatev <contact@i-nz.net>
3 * DataGridView.cs, DataGridViewRow.cs: Add a new internal property
4 DataManager to fetch the CurrencyManager for the DataGridView and to
5 spare this logic for the other components to follow.
7 2008-12-31 Mario Carrion <mcarrion@novell.com>
9 * MessageBox.cs: UIA support: new properties: UIAMessage,
10 UIAMessageRectangle and UIAIconRectangle.
12 2008-12-31 Sandy Armstrong <sanfordarmstrong@gmail.com>
14 * FileDialog.cs: Add PopupButtonPanel.PopupButton.PerformClick method
15 and DirComboBox.DirComboBoxItem.ToString override for UIA support.
17 2008-12-31 Ivan N. Zlatev <contact@i-nz.net>
19 * DataGridView.cs: Do not autogenerate duplicate column for a
20 data member that has already problematically been assigned one.
23 2008-12-30 Jonathan Pobst <monkey@jpobst.com>
25 * ProfessionalColorTable.cs: Better detection of user's theme.
28 2008-12-30 Ivan N. Zlatev <contact@i-nz.net>
30 * DataGridView.cs: In the case where there are no autogenerated
31 columns and the user adds columns problematically we must generate
32 the rows after the very first column is added.
34 2008-12-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
36 * DateTimePicker.cs: When increasing/decreasing the value of month
37 with ShowUpDown set to true, moving from december to january, and
38 moving from january to december should adjust the year to the next and
39 the previous year, respectively.
40 Fixes the remaining bits of #459674.
42 2008-12-30 Ivan N. Zlatev <contact@i-nz.net>
44 * DataGridView.cs: If a new cell is selected edit mode should be
45 immediately enabled only if EditOnEnter is set. Whether the mouse
46 or not was used to select the cell is irrelevant.
48 2008-12-29 Ivan N. Zlatev <contact@i-nz.net>
50 * DataGridView.cs: Remove a bogus ReBind call, which was causing
53 2008-12-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
55 * DateTimePicker.cs: Handle the "MMMM" month format.
58 2008-12-23 Ivan N. Zlatev <contact@i-nz.net>
61 - Make ReBind private and refactor various calls to call ReBind
62 instead of ClearBinding/DoBinding
63 - Rebind when the column collection changes
64 * DataGridViewColumnCollection.cs:
65 - Leave the rebinding on change to be handled by the DataGridView.
67 2008-12-23 Jonathan Pobst <monkey@jpobst.com>
69 * DataGridView.cs: Add a ReBind convenience method.
70 * DataGridViewColumnCollection.cs: Rebind when a column is added.
73 2008-12-23 Neville Gao <nevillegao@gmail.com>
75 * StatusBar.cs: Modified argument variable.
76 * SplitContainer.cs: Control enabled to support accessibility.
79 2008-12-22 Jonathan Pobst <monkey@jpobst.com>
81 * ToolStripMenuItem.cs: Guard against an NRE.
84 2008-12-22 Mario Carrion <mcarrion@novell.com>
86 * Control.cs: AccessibleXXXX properties don't return
87 AccessibleObject.XXXX, instead a local referece is returned.
89 2008-12-22 Neville Gao <nevillegao@gmail.com>
91 * PrintPreviewControl.cs: Added internal properties to support
95 2008-12-19 Mario Carrion <mcarrion@novell.com>
97 * Control.cs: Reverted r121561.
99 2008-12-19 Andrés G. Aragoneses <aaragoneses@novell.com>
101 * X11DesktopColors.cs: Since r121873 we don't need gtk a11y checks here,
102 it has been moved to the bridge.
104 2008-12-18 Brad Taylor <brad@getcoded.net>
106 * DateTimePicker.cs: Add a few UIA specific events, and a couple
107 internal methods useful for UIA.
109 2008-12-18 Mario Carrion <mcarrion@novell.com>
111 * ListBox.cs: Fixed GetItemRectangle when MultiColumn is true.
114 2008-12-17 Mike Gorse <mgorse@novell.com>
116 * ListView.cs, ListViewItem.cs: Send OnUIAFocusedItemChanged if an
117 item's Focused property is set.
119 2008-12-17 Sandy Armstrong <sanfordarmstrong@gmail.com>
123 * TreeNodeCollection.cs: Add events for UIA support:
124 UIACheckBoxesChanged, UIALabelEditChanged, UIANodeTextChanged, and
125 UIACollectionChanged.
127 2008-12-17 Bill Holmes <billholmes54@gmail.com>
129 * ListViewItem.cs (ListViewSubItem.ctor): Initalizing the
130 SubItemStyle member field.
132 Contributed under MIT/X11 license.
134 2008-12-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
136 * ListBox.cs: In MultiColumn mode don't use top_index to calculate the
137 y coord, since it's useless in this case, and we need to rely only on
138 the number of rows and ItemHeight to compute this value.
139 Fixes part of #257471.
141 2008-12-15 Mike Gorse <mgorse@novell.com>
143 * StatusBar.cs: Send OnUIACollectionChanged in Remove().
145 2008-12-15 Mario Carrion <mcarrion@novell.com>
147 * Control.cs: Accessibility properties instantiate AccessibilityObject when
151 2008-12-15 Brad Taylor <brad@getcoded.net>
153 * ToolStripItem.cs: Add a UIA specific event for listening for when a
154 ToolStripItem becomes selected or deselected.
156 2008-12-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
158 * MonthCalendar.cs: Select the date in MouseDown, not in MouseUp, as
159 .net does. Use the date in the point of the mouse move coords as the
160 new range as well, if the left button of the mouse is being pressed.
163 2008-12-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
165 * MonthCalendar.cs: When modifying either AnnuallyBoldedDates,
166 MonthlyBoldedDates or BoldedDates call UpdateBoldedDates, to
167 effectively repaint the control.
168 Fixes the remaining bits of #417961.
170 2008-12-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
172 * MonthCalendar.cs: When setting MaxDate/MinDate, adjust the selected
173 range to contain only dates within the new possible range.
174 Fixes part of #417961.
176 2008-12-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
178 * MaskedTextBox.cs: MaskedTextService.Replace doesn't expect the
179 length of the text, but the end position, so we need to substract 1 to
180 have a valid value. Also, in the same InputText method, don't use
181 SelectionLength as the length of the text, since the selected text
182 could actually be empty, but we need to set the value anyway.
185 2008-12-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
187 * TextBox.cs: Don't do any auto complete task if the custom source is
188 null or empty. Also avoid duplication of code.
191 2008-12-09 Ivan N. Zlatev <contact@i-nz.net>
193 * DataGridView.cs: Refresh column sizes when new rows are added.
196 2008-12-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
197 * RichTextBox.cs: When parsing the contents of a rtf file, don't call
198 Split to create a line - we are already doing this, by _adding_ a new
199 one when rtf_cursor_x is 0 (this field gets this value just after we
200 receive the newline param as true). This avoids having a proportional number
201 of empty lines in the end of the rich text box.
204 2008-12-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
206 * RichTextBox.cs: When saving the contents as a plain text, don't add
207 a new line for every Line structure, since the data in Document
208 already contains the new line characters. This avoids duplicated new
209 lines using the Save methods.
212 2008-12-09 Sandy Armstrong <sanfordarmstrong@gmail.com>
214 * TreeView.cs: Expose ScrollBars as internal properties, for use by UIA
215 framework. Fixes bug #457678.
217 2008-12-08 Ivan N. Zlatev <contact@i-nz.net>
219 * DataGridViewRow.cs: Prevent an exception on a not yet databound grid,
220 where datasource is null.
221 [Fixes exception reported in bug 441240]
223 2008-12-08 Ivan N. Zlatev <contact@i-nz.net>
225 * DataGridView.cs: EndEdit validation fixes.
227 2008-12-08 Ivan N. Zlatev <contact@i-nz.net>
229 * DataGridView.cs: This is the cool patch that adds support for
230 actually updating the data in the databinding backend after editing.
231 With bonus firing and handling the DataError event.
233 2008-12-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
235 * Line.cs: When calculating the text tags's Shift value, store it as
236 pixels instead of points. This way we can actually handle different
237 fonts in the same RichTextBox, as well as the right size of the caret.
238 Fixes part of #351938.
240 2008-12-08 Ivan N. Zlatev <contact@i-nz.net>
242 * DataGridViewCheckBoxCell.cs: Fix to make it work. Wrong value was
243 casted to CheckState causing InvalidCastExceptions.
245 2008-12-08 Ivan N. Zlatev <contact@i-nz.net>
247 * DataGridView.cs: Fix the DataGridViewEditMode.EditOnEnter behavior
248 to not depend on the item being clicked.
250 2008-12-08 Ivan N. Zlatev <contact@i-nz.net>
252 * DataGridView.cs: Implement NotifyCurrentCellDirty, so that it no
253 longer throws a NotImplementedException.
255 2008-12-08 Ivan N. Zlatev <contact@i-nz.net>
257 * DataGridView.cs: Set EditingControlFormattedValue when preparing an
258 IDataGridViewEditingControl for editing.
260 2008-12-08 Ivan N. Zlatev <contact@i-nz.net>
262 * DataGridViewComboBoxCell.cs: Implement data binding support.
264 2008-12-08 Ivan N. Zlatev <contact@i-nz.net>
266 * DataGridView.cs: Use the CurrencyManager to update the data source
267 binding position instead of casting the data sourcde to BindingSource.
268 This enables position updating for other type of data sources.
270 2008-12-08 Ivan N. Zlatev <contact@i-nz.net>
272 * ComboBox.cs: Update the SelectedIndex before updating the Text
273 in OnDisplayMemberChanged.
275 2008-12-07 Ivan N. Zlatev <contact@i-nz.net>
277 * DataGridView.cs: Fix our support for IDataGridViewEditingControl.
280 2008-12-06 Ivan N. Zlatev <contact@i-nz.net>
282 * DataGridView.cs: Sorting fixes:
283 - Be strict when sorting is enabled.
284 - If there is a data source delegate the sorting request.
286 2008-12-06 Ivan N. Zlatev <contact@i-nz.net>
288 * Binding.cs: When converting the data also try with the destination
289 type typeconverter. This indirectly adds support for Nullable types
290 in our databinding layer.
292 2008-12-06 Ivan N. Zlatev <contact@i-nz.net>
294 * DataGridView.cs: When cell editing is finished focus back the
295 DataGridView. Fixes keyboard navigation post-editing.
297 2008-12-06 Ivan N. Zlatev <contact@i-nz.net>
299 * DataGridView.cs: Fix the cell editing by delaying the currentCell
300 setting to after EndEdit is called for the old cell.
302 2008-12-06 Ivan N. Zlatev <contact@i-nz.net>
304 * BindingSource.cs: Reset the bindings. Fixes a NotWorking test.
306 2008-12-06 Ivan N. Zlatev <contact@i-nz.net>
308 * XplatUIX11.cs: Send WM_HELP only to the focused window.
310 2008-12-05 Ivan N. Zlatev <contact@i-nz.net>
312 * CurrencyManager.cs: Fix exceptions when resetting the data source
313 for the same time (e.g. in ComboBox):
314 - Do not set the list position if we are still transferring data
315 - When resetting the list firstly push the data then update the
317 * Binding.cs: Check BindingManager.Position == -1 instead of
318 BindingManager.Current == null in order to avoid unexpected
321 2008-12-05 Brad Taylor <brad@getcoded.net>
323 * MonthCalendar.cs: Add UIA specific events so that we can know when
324 the selection changes, and when MaxSelectedCount changes.
326 2008-12-05 Ivan N. Zlatev <contact@i-nz.net>
328 * DataGridView.cs: Cleanup rows_displayed out of OnPaint. It's not
331 2008-12-05 Ivan N. Zlatev <contact@i-nz.net>
333 * DataGridView.cs: Fix scrolling and selection of cells/rows prior
334 to the control being drawn for the first time by:
335 - Implement DisplayedRowsCount to not rely on the control being
336 already painted. Also added support for the partial row flag.
337 - Fix scrolling to take into account partial rows and scroll to
341 2008-12-05 Ivan N. Zlatev <contact@i-nz.net>
343 * DataGridView.cs: Do not reset the CurrentCell when the handle is
344 created if the user has already set it.
346 2008-12-05 Ivan N. Zlatev <contact@i-nz.net>
348 * DataGridView.cs: Fix CurrentCell to actually select the cell.
350 2008-12-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
352 * XplatUIX11.cs: Add support to RichTextFormat by reading it as ascii
353 text and then let the underneath users of IDataObject interpret and
357 2008-12-01 Ivan N. Zlatev <contact@i-nz.net>
359 * DataGridView.cs: Fix my previous commit to actually update what it
362 2008-12-01 Ivan N. Zlatev <contact@i-nz.net>
364 * DataGridView.cs: Ensure that when a row is removed the all the
365 current row/column/cell get updated. Fixes multiple exceptions.
367 2008-12-01 Ivan N. Zlatev <contact@i-nz.net>
369 * DataGridView.cs: Fix scrolling to the current cell when key navigation
373 2008-12-01 Ivan N. Zlatev <contact@i-nz.net>
375 * DataGridView.cs, DataGridViewCell.cs: Fire CellStateChanged events.
376 * DataGridViewCell.cs: Set the cell as selected prior to setting the
378 [Fixes issue 1 in bug #443560]
380 2008-12-01 Ivan N. Zlatev <contact@i-nz.net>
382 * DataGridView.cs: Invalidate after the current row/column seletion
386 2008-12-01 Ivan N. Zlatev <contact@i-nz.net>
388 * DataGridView.cs: Refresh the data if the data list is reset, etc.
390 2008-12-01 Ivan N. Zlatev <contact@i-nz.net>
392 * DataGridView.cs: Handle datasource state changes:
393 - IBindingList - list changes
394 - BindingSource - list changed and datasource changes
396 2008-11-30 Ivan N. Zlatev <contact@i-nz.net>
398 * DataGridView.cs: Select the first cell when databound.
399 Visually select when CurrentCell is set.
401 2008-11-30 Ivan N. Zlatev <contact@i-nz.net>
403 * DataGridView.cs: Set the current cell before raising CellClick.
405 2008-11-30 Ivan N. Zlatev <contact@i-nz.net>
407 * DataGridView.cs: Cleanup MoveCurrentCell to not fire any CellEnter,
408 CellLeave events as this is already done in SetCurrentCellAddressCore.
410 2008-11-30 Ivan N. Zlatev <contact@i-nz.net>
412 * DataGridView.cs: Set the minimum size for the columns to be the
413 width of their header, so that the columns don't get squashed
416 2008-11-30 Ivan N. Zlatev <contact@i-nz.net>
418 * DataGridView.cs: After the data is bound PerformLayout, so that
419 the columns get autosized.
421 2008-11-30 Ivan N. Zlatev <contact@i-nz.net>
423 * DataGridView.cs: Move all currentCell setting code into
424 one central place - SetCurrentCellAddressCore. That way the
425 current cell is properly updated when programatically set.
426 Fire RowEnter/Leave events.
428 2008-11-30 Ivan N. Zlatev <contact@i-nz.net>
430 * DataGridView.cs: Update the CurrencyManager.Position, so that
431 when a BindingSource is used BindingSource.Current will be correct.
433 2008-11-30 Ivan N. Zlatev <contact@i-nz.net>
435 * GroupBoxRenderer.cs: Fix when VisualStyles disabled:
436 - No caption text is drawn because Color.Empty is used.
437 - Fix top and height off by 1.
439 2008-11-30 Ivan N. Zlatev <contact@i-nz.net>
441 * DataGridViewRow.cs: Implement DataBoundItem.
443 2008-11-30 Ivan N. Zlatev <contact@i-nz.net>
445 * BindingSource.cs: Return null for Current if there is no data present.
447 2008-11-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
449 * MenuAPI.cs: Add a Menu.SelectedItem null check when navigating the
450 menus using the arrow keys. Also when handling the left arrow key, don't
451 assign the current menu to the parent one, if the parent is null.
454 2008-11-24 Everaldo Canuto <ecanuto@novell.com>
456 * PrintPreviewDialog.cs: Fix toolbar size, height must be 26. Fixes bug
459 2008-11-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
462 * ScrollableControl.cs: Simplify the code to manually set the size of
463 the thum area, avoiding duplication of code, and also preserving the
464 right value for different code paths - this can happen when size
465 changes are made to the scrollbar after setting LargeChange, Maximum
466 or related properties for the ScrollBar.
468 2008-11-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
470 * ScrollableControl.cs: When scrolling, don't invalidate the entire
471 area, and call to XplatUIX11.ScrollWindow instead. This is exactly
472 what .Net does: copy the visible area, and only invalidate the part of
473 the area that wasn't visible before scrolling.
476 2008-11-24 Jonathan Pobst <monkey@jpobst.com>
478 * DataGridView.cs: Listen for a DataTable's TableCleared event so we
479 can clear ourselves when it is raised, we don't have a newrowindex
480 if we don't have any columns.
481 * DataGridViewRowCollection.cs: Ensure we always delete all the rows,
482 re-index after each delete so the NewRow will have the correct index.
485 2008-11-24 Jonathan Pobst <monkey@jpobst.com>
487 * Form.cs: Don't change min/max size if it is empty.
490 2008-11-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
493 * ScrollableControl.cs: When the manual thumb size is used, the
494 maximum allowed value should depend on that thumb size, instead of
495 LargeChange (using the maximum - LargeChange + 1 value). But
496 LargeChange should be used normally when incrementing/decrementing.
497 Fixes the remaining part of #441546.
499 2008-11-23 Andreia Gaita <avidigal@novell.com>
501 * WebBrowser.cs, WebBrowserBase.cs: Delay loading of DocumentStream
502 until an about:blank has been loaded (according to spec). Fix
503 ScrollbarsEnabled to set when a document is loaded (since we use js
504 for it). Fix url so it reflects the current loading document and not
505 the previous one. Send StatusChanged events.
507 2008-11-23 Andreia Gaita <avidigal@novell.com>
509 * Application.cs: If a message comes in for an embedded control
510 (like webbrowser) when we're capturing the keyboard, release the
511 capture and continue.
514 2008-11-22 Andreia Gaita <avidigal@novell.com>
516 * XplatUI.cs: Only use PlatformID.MacOSX enum when not building on VS
518 2008-11-21 Andreia Gaita <avidigal@novell.com>
520 * WebBrowser.cs, HtmlDocument.cs: Fixes for #428172
522 2008-11-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
525 * ScrollableControl.cs: Set manually the thumb size for the
526 ScrollableControl scrollbars, so any further changes to the underneath
527 scrollbars respect the original size.
528 Fixes part of #441546.
530 2008-11-21 Geoff Norton <gnorton@novell.com>
532 * XplatUI.cs: Ensure that we can run on .net 2.0 with mono 2.2 where
533 PlatformID.MacOSX now exists.
535 2008-11-20 Jonathan Pobst <monkey@jpobst.com>
537 * TextBoxBase.cs: Provide a default implementation for ChangeBackColor.
538 Having something internal abstract isn't very nice for people who want
539 to inherit from this class.
541 2008-11-20 Jonathan Pobst <monkey@jpobst.com>
543 * ToolStripItem.cs: Don't crash if ImageIndex or ImageKey is set to an
544 invalid value. Just return null for the Image, and use the ImageList's
545 ImageSize for calculations.
547 2008-11-20 Jonathan Pobst <monkey@jpobst.com>
549 * ComboBox.cs: Call HideWindow instead of Hide when closing the dropdown
550 through DroppedDown so the proper events get called and state gets reset.
553 2008-11-18 Jonathan Pobst <monkey@jpobst.com>
555 * DataGridViewColumnCollection.cs: Make sure we re-index the columns after
556 the collection is modified.
558 2008-11-17 Jonathan Pobst <monkey@jpobst.com>
560 * DomainUpDown.cs: Remove string cache and reflection optimizations. They
561 aren't always correct, and fixing them for every case is not worth the
562 negligible benefit they provide.
565 2008-11-17 Jonathan Pobst <monkey@jpobst.com>
567 * DataGridView.cs: We should never add actual cells to the RowTemplate.
568 Internally, use RowTemplateFull to give us a new row with cells.
569 * DataGridViewColumnCollection.cs: Clear Rows when we clear Columns.
570 * DataGridViewRowCollection.cs: Use RowTemplateFull.
572 2008-11-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
574 * XplatUIX11.cs: Forms without borders should be able to change its
575 size - specially they should be able to be maximized, adding the
576 respective MotifFunctions.Resize bit when setting window properties as
577 well as *not* marking the Hwnd as size fixed.
580 2008-11-12 Jonathan Pobst <monkey@jpobst.com>
582 * DataGridViewCellStyle.cs: Allow SelectionBackColor to have
586 2008-11-11 Jonathan Pobst <monkey@jpobst.com>
588 * DataGridView.cs: Add internal to OnAutoSizeColumnModeChanged.
589 * DataGridViewColumn.cs: Recalculate columns when AutoSizeMode changes. Raise
590 AutoSizeColumnModeChanged.
593 2008-11-11 Jonathan Pobst <monkey@jpobst.com>
595 * DataGridViewRowCollection.cs: Guard against the user deleting the
596 NewRow. Add an internal delete so we can still delete it.
597 * DataGridView.cs: Use the new internal delete when deleting the NewRow.
600 2008-11-10 Jonathan Pobst <monkey@jpobst.com>
602 * TextControl.cs: Add some order of operation to our math so
603 we don't end up with a negative height for our invalidate rect.
606 2008-11-10 Jonathan Pobst <monkey@jpobst.com>
608 * Control.cs: When our enabled changes, notify our implicit children
609 controls as well as our regular controls.
612 2008-11-08 Andreia Gaita <shana@jitted.com>
614 * HtmlElement.cs: Small code cleanup
616 2008-11-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
618 * BindingNavigator.cs: MoveFirstItem should be enabled only if
619 position is larger than 0, not only different than 0. Also Position
620 and Count items should be enabled if the BindingSource is non null and
624 2008-11-05 Jonathan Pobst <monkey@jpobst.com>
626 * TabControl.cs: Don't raise SelectedIndexChanged until we have
627 actually modified the tab collection, so TabCount will be correct.
630 2008-11-05 Sandy Armstrong <sanfordarmstrong@gmail.com>
632 * ListViewItem.cs: Mark ListViewSubItem.UIATextChanged event as
633 NonSerialized to fix serialization of ListViewItem.
635 2008-11-04 Mike Gorse <mgorse@novell.com>
637 * ListView.cs: Call OnUIAFocusedItemChanged after completing the
638 focus change, and always call in SetFocusedItem.
639 * ListBox.cs: Add UIAFocusedItemChanged as in ListView.
641 2008-11-04 Jonathan Pobst <monkey@jpobst.com>
643 * ComboBox.cs: Only call OnDrawItem when we are using an OwnerDraw
644 mode. Based on a patch by John Mortlock.
647 2008-11-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
649 * ListView.cs: Use the UsingGroups property where needed, instead of
650 duplicating the check in other places.
652 2008-11-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
654 * ListView.cs: When calculating layout, refresh the count of items
655 belonging to the default item, insteas of doing it only one time. This
656 was already working fine for icon views, not not for details.
659 2008-11-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
663 * ThemeWin32Classic.cs: Don't render Tile view if there wasn't a call
664 to Applicatin.EnableVisualStyles, and use LargeIcon view, as .net
668 2008-11-03 Sandy Armstrong <sanfordarmstrong@gmail.com>
670 * ListView.cs: Wrap call to OnUIAFocusedItemChanged with #if NET_2_0.
672 2008-11-03 Sandy Armstrong <sanfordarmstrong@gmail.com>
674 * ListView.cs: Add internal UIAFocusedItemChanged event. Fixes bug
675 #441280, patch by Mike Gorse <mgorse@novell.com>.
677 2008-11-03 Jonathan Pobst <monkey@jpobst.com>
679 * TreeView.cs: When doing ExpandAll, don't scroll to the bottom
680 if there is no scrollbar.
683 2008-11-03 Jonathan Pobst <monkey@jpobst.com>
685 * ProgressBar.cs, ThemeWin32Classic.cs, ThemeVisualStyles.cs: Commit
686 patch from Andy Hume that fixes many issues with ProgressBar.
689 2008-11-03 Jonathan Pobst <monkey@jpobst.com>
691 * Form.cs: Don't allow MinimumSize and MaximumSize to conflict.
694 2008-11-03 Sandy Armstrong <sanfordarmstrong@gmail.com>
698 * NumericUpDown.cs: Internal events added to UpDownBase:
699 UIAUpButtonClick and UIADownButtonClick. Patch by Neville Gao
702 2008-11-03 Sandy Armstrong <sanfordarmstrong@gmail.com>
704 * ToolStripLabel.cs: Internal event added: UIAIsLinkChanged.
706 2008-11-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
709 * ThemeWin32Classic.cs: Don't use groups nor insertion mark in
710 Application.EnableVisualStyles hasn't been called.
711 Fixes part of #437933.
713 2008-10-31 Andreia Gaita <shana@jitted.com>
715 * Form.cs (SetVisibleCore): since set_ActiveControl no longer calls focus
716 if the container is not focused already, we need to specifically set
717 focus to the first available control, or to the form itself if there
720 2008-10-31 Andreia Gaita <shana@jitted.com>
722 activate message fix: a call to .Show now waits until both WM_SHOWWINDOW and
723 WM_ACTIVATE have been processed before returning, so it is guaranteed that
724 once it returns and the form is visible, it is actually on the screen on X11
726 * ContainerControl.cs: Only send focus to the control if the top container
727 is already focused. This is so that, when a form is first shown, all
728 the enter/leave events are done first before any focus stuff comes in.
729 If a control has no top container, there's an extra check on Control.Focus
730 to make sure it gets focused in this particular case.
732 * Control.cs: Force focus if the control is active but did not receive
733 focus after being set as active.
735 * MdiClient.cs: Dispose the form when closing
737 * XplatUIX11.cs: When mapping and unmapping windows, make sure the call
738 doesn't return until both WM_SHOWWINDOW and WM_ACTIVATE have come in
739 if the window is a top Form.
740 Reset all hwnd properties when the window has been destroyed so that
741 we don't land in any codepaths that might try to do something with it.
742 Added a bunch of debugging messages. If TRACE is defined, all X calls
743 are logged through DebugHelper. Set a few missing EntryPoint attributes.
745 2008-10-29 Mario Carrion <mcarrion@novell.com>
747 * ListViewItem.cs: Control enabled to support Accessibility:
748 - Internal events: UIATextChanged, UIASubItemTextChanged.
749 - Internal event UIATextChanged in ListViewSubItem that triggers
750 UIASubItemTextChanged.
751 * ListView.cs: Control enabled to support Accessibility:
752 - Internal events: UIACheckBoxesChanged, UIAMultiSelectChanged,
753 UIAShowGroupsChanged, UIAViewChanged and UIALabelEditChanged.
754 - Internal event UIACollectionChanged in ColumnHeaderCollection.
755 - Internal event UIACollectionChanged in ListViewItemCollection.
756 - Internal properties: UIAHeaderControl, UIAColumns, UIARows,
757 UIADefaultListViewGroup, UIAHScrollBar and UIAVScrollBar.
758 - Internal methods: UIAGetHeaderBounds.
760 2008-10-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
762 * ScrollableControl.cs: Actually fire the 2.0 Scroll event when we get
763 the event from the respective scrollbars.
766 2008-10-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
768 * ComboBox.cs: Use the new CanNavigateAutoCompleteList property of the
769 textbox to know whether any navigation key will be handled or not. If
770 not, don't pass the message to the textbox, and use it here instead.
771 * TextBox.cs: Define a new CanNavigateAutoCompleteList property -which
772 is more precise- than the previous AutoCompleteMatches one.
773 This should the keyboard navigation in ComboBox when using auto
776 2008-10-24 Jonathan Pobst <monkey@jpobst.com>
778 * ComboBox.cs: Fix item height calculation based off Font to match .Net.
781 2008-10-24 Jonathan Pobst <monkey@jpobst.com>
783 * ToolStripDropDownItem.cs: Call OnClick instead of base.OnClick so
784 overridden methods will get called.
785 * ToolStripItem.cs: Raise Click before MouseUp.
786 * ToolStripSplitButton.cs: Fix up some bounding rectangles to take
787 the item's location into account.
790 2008-10-24 Neville Gao <nevillegao@gmail.com>
792 * NumericUpDown.cs: Control enabled to support accessibility.
795 2008-10-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
797 * TextBox.cs: Check that we actually have items no navigate, select
798 text when pressing enter, as well as handle direction keys only if
799 mode is different to Suggest or the suggest listbox is visible.
801 2008-10-23 Andreia Gaita <shana@jitted.com>
803 * WebBrowser.cs: Use the new ContentStream property to retrieve
804 a stream encoded from the document content
806 2008-10-23 Andreia Gaita <shana@jitted.com>
810 HtmlWindow.cs: Fix GetHashcode for null objects
812 2008-10-22 Andreia Gaita <shana@jitted.com>
816 HtmlWindow.cs: Fix equality operators (fixes #428173)
818 2008-10-21 Jonathan Pobst <monkey@jpobst.com>
820 * XplatUIWin32.cs: Apply patch from John Mortlock that ensures
821 mouse_state gets set during WM_MOUSEMOVE and WM_NCMOUSEMOVE.
824 2008-10-21 Jonathan Pobst <monkey@jpobst.com>
826 * ComboBox.cs: Fire SelectedIndexChanged when the user selects the
827 same item with the mouse as was already selected.
830 2008-10-21 Brad Taylor <brad@getcoded.net>
832 * TextControl.cs: Break out code to get the visible range into
833 GetVisibleLineIndexes to be used in UIA code.
837 * TextBoxBase.cs: Add comments indicating that the method or property
838 is used via reflection from UIA code.
840 2008-10-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
842 * ListViewItem.cs: Match .net serialization.
843 Fixes remaining part of #417520.
845 2008-10-20 Jonathan Pobst <monkey@jpobst.com>
847 * ToolStripProfessionalRenderer.cs: Don't paint over a set BackgroundImage.
849 2008-10-20 Mario Carrion <mcarrion@novell.com>
851 * ErrorProvider.cs, ToolTip.cs, HelpProvider.cs: UIA internal property
852 added: UIAToolTipRectangle.
854 2008-10-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
856 * ListViewItem.cs: When deserializing enumerate over the data, instead
857 of accessing the data directly. This way we handle much better the
858 cases were we lack information.
861 2008-10-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
863 * ListView.cs: When removing an item from a main ListView.Items
864 collection (and not a ListViewGroupCollection.Items one), remove it
865 also from the group, as .net does. Patch by Mario Carrion (mario at
869 2008-10-19 Andreia Gaita <avidigal@novell.com>
871 * Form.cs: Forms that get closed without a handle being created are
872 disposed in 2.0. Fixes failing FormTest.FormClose and
873 FormTest.FormClose2 on windows.
875 2008-10-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
877 * ListView.cs: If both scrollbars are visible, the vertical one
878 shouldn't extend too far down.
881 2008-10-17 Jonathan Pobst <monkey@jpobst.com>
883 * DataGridView.cs: Add the ability to resize columns and rows with
884 the mouse. Also support double-clicking to autoresize.
885 * DataGridViewColumn.cs: Invalidate the grid if a column's width changes.
886 * DataGridViewRow.cs: Invalidate the grid if a row's height changes.
887 * DataGridViewTextBoxCell.cs: Add 1 to preferred width so ellipsis
888 isn't shown on autoresize.
891 2008-10-17 Mario Carrion <mcarrion@novell.com>
893 * ComboBox.cs: Remove UIAListbox.
895 2008-10-17 Mario Carrion <mcarrion@novell.com>
897 * ComboBox.cs, ListBox.cs: Using added/removed item in
898 OnUIACollectionChangedEvent instead of index.
900 2008-10-17 Jonathan Pobst <monkey@jpobst.com>
902 * ComboBox.cs: When we are sorting the items, if the item's type
903 doesn't support IComparer, use a default one that compares based
904 off the item's visible text.
907 2008-10-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
909 * ColumnHeader.cs: Invalidate ListView.header_control when setting
911 * ThemeWin32Classic.cs: When drawing the column header, draw a image
912 for the column if available, and make the required adjustments to the
916 2008-10-17 Neville Gao <nevillegao@gmail.com>
918 * StatusBarPanel.cs: Control enabled to support accessibility.
921 2008-10-16 Jonathan Pobst <monkey@jpobst.com>
923 * DataGridView.cs: When a user begins an edit in the 'new row',
924 make that a real row, and add a new 'new row'. If the user
925 cancels the edit, remove the new 'new row' and reset everything.
926 Also, ensure UserAddedRow and UserRemovedRow events are raised.
929 2008-10-16 Ivan N. Zlatev <contact@i-nz.net>
931 * TableLayoutSettings.cs: Fix NREs when deserializing and
932 panel is not yet set.
935 2008-10-16 Jonathan Pobst <monkey@jpobst.com>
937 * DataGridView.cs: Invalidate after deleting a row.
939 2008-10-16 Jonathan Pobst <monkey@jpobst.com>
941 * DataGridView.cs: Handle Enter and Escape keys.
942 - Move call to EndEdit to MoveCurrentCell.
943 - Remove call to EndEdit from navigation key routines.
944 - Fire CellLeave and CellEnter.
946 2008-10-16 Jonathan Pobst <monkey@jpobst.com>
948 * DataGridViewCell.cs: Some fixes to the new cell border
951 2008-10-16 Jonathan Pobst <monkey@jpobst.com>
953 * ThemeEngine.cs: Enable visualstyles rendering by default
954 (on platforms that support it).
956 2008-10-15 Ivan N. Zlatev <contact@i-nz.net>
958 * XplatUIX11.cs, XplatUICarbon.cs: Do not Timer.Tick before
959 MainForm.OnLoad has completed unless DoEvents is forced.
962 2008-10-15 Jonathan Pobst <monkey@jpobst.com>
964 * ToolTip.cs: Ensure that Timer.Internal cannot be set to 0.
966 2008-10-15 Jonathan Pobst <monkey@jpobst.com>
968 * Control.cs: Make our implementation of DrawToBitmap better
969 match WmPaint. [Fixes bug #435579]
971 2008-10-14 Andreia Gaita <avidigal@novell.com>
973 * WebBrowser.cs: Use DocumentElement as the document's root for the
974 whole content. Should fix DocumentText and DocumentStream problems.
976 2008-10-14 Jonathan Pobst <monkey@jpobst.com>
978 * DataGridViewColumnCollection.cs: Remove calls to OnColumnAddedInternal,
979 these will get called in DGV.OnCollectionChanged. Make sure
980 OnCollectionChanged always gets called.
981 * DataGridView.cs: Make a OnColumnRemovedInternal that removes the cells
982 from every row. Call this in OnCollectionChanged.
985 2008-10-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
987 * ComboBox.cs: WM_KEYDOWN and WM_KEYUP messages should be sent to the
988 textbox if auto complete is used, since we need to navigate over it.
989 And in this case don't pass this messages to the base impl. Also hide
990 the auto complete list box when displaying the drop down listbox.
991 * TextBox.cs: new internal members to expose some of the auto complete
992 functionality to combobox.
994 2008-10-13 Ivan N. Zlatev <contact@i-nz.net>
996 * XplatUIX11.cs, XplatUICarbon.cs, Form.cs: Do not Timer.Tick before
997 MainForm.OnLoad has completed.
1000 2008-10-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1002 * TextBox.cs: Apply an old-approved patch that adds autocomplete's
1003 Append support to this controls. We need it to apply new patches.
1005 2008-10-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1007 * Control.cs: When updating z order in child controls, send to back
1008 the implicit controls. Also, do it explicitly, instead of making
1009 GetAllControls return the implicit controls in a specific order, and
1010 thus avoid depending on that, which could change in the future.
1013 2008-10-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1015 * X11Dnd.cs: Try to call Application.DoEvents before returning in a
1016 call to StartDrag, since we must fire DragDrop/DragLeave *before*
1017 that, as .net does - instead of firing DragDrop/DragLeave *after* the
1018 call to Control.DoDragDrop has completed. This is needed since at the
1019 point of returning, we have sent related dnd ClientMessages, but we
1020 need to wait for them to fire the wmf respective ones.
1023 2008-10-09 Everaldo Canuto <ecanuto@novell.com>
1025 * LinkLabel.cs: Recreate link pieces when change Padding.
1027 2008-10-09 Everaldo Canuto <ecanuto@novell.com>
1029 * LinkLabel.cs: Take Padding into account when recreate link pieces.
1032 2008-10-08 Everaldo Canuto <ecanuto@novell.com>
1034 * Control.cs: Implement internal property PaddingClientRectangle, it will be
1035 useful for drawing controls that must take care about Padding property.
1037 2008-10-08 Jonathan Pobst <monkey@jpobst.com>
1039 * BindingSource.cs: Make item_type internal so we can access it in DGV.
1040 * DataGridView.cs: Add support for autogenerating columns from a
1043 2008-10-07 Jonathan Pobst <monkey@jpobst.com>
1045 * DataGridView.cs: Comment out an exception that is getting thrown
1046 too often currently.
1048 2008-10-07 Jonathan Pobst <monkey@jpobst.com>
1050 * DataGridView.cs: Always rebind to the datasource, as things may
1051 have changed in it that we aren't capturing yet.
1053 2008-10-07 Jonathan Pobst <monkey@jpobst.com>
1055 * DataGridViewTextBoxCell.cs: Don't default to VerticalCenter font
1056 drawing mode. If we are top aligned, give ourselves some top padding.
1058 2008-10-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1060 * X11Dnd.cs: When firing the default dnd enter/leave events, fire the
1061 events on the control under the mouse pointer, instead of firing them
1062 on the window generating the dnd operation. To achieve this re-use the
1063 code used to get the window under the pointer when getting MouseMove
1067 2008-10-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1069 * X11Dnd.cs: Don't check that that the window sending the dnd events
1070 is the owner of the selection. Although Gtk+ sets it that way, it's
1071 not a requirement of the XDnd protocol, and Qt doesn't seem to do it.
1072 So, just as Gtk+ does, we set our window sending the dnd events as the
1073 owner of the selection, but don't check it when receiving them. This
1074 should fix interoperability with Qt/Kde.
1077 2008-10-06 Jonathan Pobst <monkey@jpobst.com>
1079 * DataGridView.cs: Make sure we take the vertical scrollbar into
1080 account when autosizing columns.
1082 2008-10-06 Jonathan Pobst <monkey@jpobst.com>
1084 * DataGridView.cs: Handle sorting datetimes.
1086 2008-10-04 Ivan N. Zlatev <contact@i-nz.net>
1088 * ButtonBase.cs, Control.cs, Label.cs, PictureBox.cs, TabControl.cs,
1089 TextBoxBase.cs, ToolBar.cs, TrackBar.cs, TreeView.cs: Cleanup
1090 compilation warnings.
1092 2008-10-03 Ivan N. Zlatev <contact@i-nz.net>
1094 * RTF.cs, Application.cs, BindingContext.cs, BindingSource.cs,
1095 ContextMenuStrip.cs, Control.cs, Hwnd.cs, Line.cs, MaskedTextBox.cs,
1096 ProgressBar.cs, SaveFileDialog.cs, TextControl.cs, Theme.cs,
1097 ToolBar.cs, ToolStripItemCollection.cs, TrackBar.cs: Cleanup
1098 compilation warnings.
1100 2008-10-03 Ivan N. Zlatev <contact@i-nz.net>
1102 * DataGridView.cs, DataGridViewCell.cs,
1103 DataGridViewCellValidatingEventArgs.cs,
1104 DataGridViewComboBoxEditingControl.cs, DataGridViewHeaderCell.cs,
1105 DataGridViewRow.cs, DataGridViewRowHeaderCell.cs,
1106 DataGridViewTextBoxEditingControl.cs: Cleanup compilation warnings.
1108 2008-10-03 Ivan N. Zlatev <contact@i-nz.net>
1110 * HtmlElementEventArgs.cs, HtmlWindowCollection.cs:
1111 Cleanup compilation warnings.
1113 2008-10-03 Ivan N. Zlatev <contact@i-nz.net>
1115 * XplatUIWin32.cs: Cleanup compilation warnings.
1117 2008-10-03 Ivan N. Zlatev <contact@i-nz.net>
1119 * PropertyGrid.cs: Cleanup compilation warnings.
1121 2008-10-02 Jonathan Pobst <monkey@jpobst.com>
1123 * DataGridViewRow.cs: Only clear the row background if we
1124 are going to paint a new background.
1126 2008-10-02 Jonathan Pobst <monkey@jpobst.com>
1128 * DataGridViewCell.cs, DataGridViewColumnHeaderCell.cs,
1129 DataGridViewRowHeaderCell.cs: Remove PaintPartBorder and
1130 use PaintBorder instead.
1132 2008-10-02 Jonathan Pobst <monkey@jpobst.com>
1134 * DataGridView.cs: When CellBorderStyle is set, update the
1135 AdvancedCellBorderStyle to match.
1137 2008-10-02 Jonathan Pobst <monkey@jpobst.com>
1139 * DataGridViewCell.cs: Add helper methods to convert Alignment
1140 to TextFormatFlags and align rectangles.
1141 * DataGridViewTextBoxCell.cs: Use Alignment when painting text.
1142 * DataGridViewImageCell.cs: Use Alignment when painting the image.
1144 2008-10-02 Ivan N. Zlatev <contact@i-nz.net>
1146 * ToolTip.cs: Display tooltips only for controls on the active form.
1149 2008-10-02 Jonathan Pobst <monkey@jpobst.com>
1151 * DataGridView.cs: Make OnCellValueNeeded internal.
1152 * DataGridViewCell.cs: Raise the CellValueNeeded event so the
1153 user can supply their own value if they choose.
1155 2008-10-02 Jonathan Pobst <monkey@jpobst.com>
1157 * DataGridViewColumnHeaderCell.cs: Create a new style object
1158 so the DefaultCellStyle doesn't get changed.
1160 2008-10-02 Jonathan Pobst <monkey@jpobst.com>
1162 * ToolStripItem.cs: Check to make sure the owner is actually
1163 changing in InternalOwner before doing any work. Fixes some
1166 2008-10-01 Jonathan Pobst <monkey@jpobst.com>
1168 * DataGridViewColumnHeaderCell.cs: Correctly calculate style.
1169 * DataGridView.cs: Use a column header's inherited style instead
1170 of just using the default.
1172 2008-10-01 Jonathan Pobst <monkey@jpobst.com>
1174 * SplitContainer.cs: Raise SplitterMoved when the splitter is
1177 2008-10-01 Mario Carrion <mcarrion@novell.com>
1179 * ScrollBar.cs: Internal property added: UIAThumbPosition.
1181 2008-10-01 Jonathan Pobst <monkey@jpobst.com>
1183 * ToolStripOverflowButton.cs: Use InternalOwner instead of Owner.
1185 2008-10-01 Jonathan Pobst <monkey@jpobst.com>
1187 * ToolStripItem.cs: When the user sets Owner, we need to remove
1188 it from its previous owner and then add it to the new owner's
1189 item collection. Also, create InternalOwner, so we can set the owner
1190 that doesn't do this new stuff.
1191 * ToolStripItemCollection.cs: Use InternalOwner instead of Owner.
1193 2008-10-01 Jonathan Pobst <monkey@jpobst.com>
1195 * ToolStripItem.cs: When our parent changes, recalculate our text
1196 size, since we may be getting our Font from our parent. When our
1197 owner's Font changes, recalculate ourselves as we may be using
1200 2008-10-01 Everaldo Canuto <ecanuto@novell.com>
1202 * MenuAPI.cs: Select the first option of a popup when opening the popup via
1203 return key. [Fixes bug #413792].
1205 2008-10-01 Jonathan Pobst <monkey@jpobst.com>
1207 * ToolStripItem.cs: Make Font, BackColor, and ForeColor be
1208 ambient properties. (Get their value from their parents if
1209 values haven't been set.)
1211 2008-10-01 Jonathan Pobst <monkey@jpobst.com>
1213 * ToolStripSystemRenderer.cs: Call overridden methods' bases
1214 after our logic, so users can do painting by handling the events.
1215 Currently, we draw over any user painting.
1217 2008-10-01 Jonathan Pobst <monkey@jpobst.com>
1219 * ToolStripProfessionalRenderer.cs: Call overridden methods' bases
1220 after our logic, so users can do painting by handling the events.
1221 Currently, we draw over any user painting.
1223 2008-09-30 Everaldo Canuto <ecanuto@novell.com>
1225 * MenuAPI.cs: Prevent NRE when deactivate menu. Fixes #413636.
1227 2008-09-30 Jonathan Pobst <monkey@jpobst.com>
1229 * TreeNode.cs, TreeView.cs: Move logic that determines the node
1230 image to draw to TreeNode. Give Index/Keys put on the node
1231 precedence over the global one for the TreeView.
1233 2008-09-30 Jonathan Pobst <monkey@jpobst.com>
1235 * TreeNode.cs: Setting ImageIndex or ImageKey should reset the other.
1237 2008-09-29 Mario Carrion <mcarrion@novell.com>
1239 * ListBox.cs: Index fixed.
1241 2008-09-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1243 * TabControl.cs: When expanding the tab -because it's selected now-,
1244 using Right alignment, instead of adding some selected delta value to
1245 the X origin, substract it, so it gets a location adjacent to the panel,
1246 instead of be more separated.
1249 2008-09-29 Jonathan Pobst <monkey@jpobst.com>
1251 * MessageBox.cs: Use SystemIcons for graphics instead of keeping our
1254 2008-09-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1256 * X11Dnd.cs: source and related fields should be set to IntPtr.Zero,
1257 as well as the other static fields, to avoid using their previous
1258 values my mistake when handling the dnd events. This should avoid
1259 handling any status event after the drop has been finalized/cancelled.
1261 2008-09-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1263 * X11Dnd.cs: We have to send a dnd enter event as soon as we start the
1264 operation, instead of waiting until we get any movement - this will
1265 help us to have the data available in case no movement was detected
1266 and _still_ we have to fire DragEnter and DragLeave/DragDrop events.
1267 Finally add a windows.forms-only fallback to fire the mentioned events
1268 if no movement at all was detected, just like .net does.
1271 2008-09-27 Jonathan Pobst <monkey@jpobst.com>
1273 * ThemeWin32Classic.cs: When drawing a status bar panel, don't
1274 return early if the text is empty because the icon doesn't get
1275 drawn then. [Fixes bug #428113]
1277 2008-09-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1279 * FileDialog.cs: Implement basic support for sorting by columns in
1280 Details view. Patch by Eric Petit.
1283 2008-09-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1285 * ThemeWin32Classis.cs: When drawing gridlines take into account the
1286 case where ListView.ItemSize hasn't been computed, and provide a
1287 fallback as well. This prevents a division by 0.
1289 2008-09-24 Jonathan Pobst <monkey@jpobst.com>
1291 * ThemeVisualStyles.cs: Use ClientRectangle instead of Bounds to
1292 correctly draw tooltip backgrounds.
1294 2008-09-24 Jonathan Pobst <monkey@jpobst.com>
1296 * ImageList.cs: Change CopyTo implementation to ensure clones are
1297 created of our images.
1300 2008-09-24 Jonathan Pobst <monkey@jpobst.com>
1302 * Control.cs: When setting fonts, we need to ensure we change our
1303 reference to the new font object, even if it represents the same
1304 font as before. If we don't, the original font can get disposed
1305 and we will still try to use it.
1308 2008-09-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1310 * FileDialog.cs: Take into account Tile view when selecting the view
1313 2008-09-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1315 * ThemeWin32Classic.cs: When drawing gridlines for ListView don't use
1316 the item bounds, since we can't iterate over them in virtual mode.
1317 Also fix wrong calculation of the gridlines when using scrolling.
1320 2008-09-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1322 * XplatUIX11.cs: When handling EnterNotify events, take into account
1323 both the public and implicit controls when trying to detect the
1324 grab/ungrab process. This should fix ListView selection in Details
1327 2008-09-23 Jonathan Pobst <monkey@jpobst.com>
1329 * TreeView.cs: Redraw the whole node area when the selected node changes.
1330 Things like state images were not getting redrawn because the invalid
1331 rectangle was too small.
1334 2008-09-23 Mario Carrion <mcarrion@novell.com>
1336 * ListBox.cs: UIA Selection Pattern fully supported in ListBox control.
1339 2008-09-23 Jonathan Pobst <monkey@jpobst.com>
1341 * Form.cs: Do not set the Form's icon in the backend if showicon = false.
1344 2008-09-23 Jonathan Pobst <monkey@jpobst.com>
1346 * ThemeWin32Classic.cs: Allow tooltips to be multiline.
1349 2008-09-23 Jonathan Pobst <monkey@jpobst.com>
1351 * StatusBar.cs: Add tooltip support.
1354 2008-09-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1356 * ThemeWin32Classic.cs: Use StringAlignment.Center for the vertical
1357 alignments of sub items in Details view. Patch by John Mortlock (johnm at
1358 hlaustralia.com.au).
1361 2008-09-23 Neville Gao <nevillegao@gmail.com>
1363 * StatusBar.cs: Add UIA event in AddInternal () to support accessibility.
1366 2008-09-22 Jonathan Pobst <monkey@jpobst.com>
1368 * TextBoxBase.cs: Set Text to "" instead of null in Clear().
1371 2008-09-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1373 * ListView.cs: Don't do anything when EnsureVisible is called inside a
1374 BeginUpdate/EndUpdate block.
1377 2008-09-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1379 * ListViewItem.cs: The semantics for the public .ctor of
1380 ListViewSubItemCollection need us to already have a Text value for the
1381 item, which in our implementation have as available *after* adding the
1382 first sub item. So create an internal .ctor that satisfies our needs
1383 and let the public .ctor have the same semantics as .net.
1386 2008-09-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1388 * ListControl.cs: Changes in Formatting related values should call
1389 RefreshItems, as .net does.
1391 * ListBox.cs: In the respective overrides of RefreshItems calculate
1392 layout as well as refreshing - again, this is what .net does.
1395 2008-09-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1397 * ListBox.cs: In UpdateTopItem, don' call to XplatUI.ScrollWindow,
1398 since we are already doing that when we change the value of the
1399 scrollbar or force the call to ScrollWindow in the same method. This
1400 way we don't cause a Invalidate call for all the listbox bounds for
1401 methods calling UpdateTopItem with an already updated top item. This
1402 was happening specially calling EnsureVisible with already visible
1405 2008-09-18 Mike Gorse <mgorse@novell.com>
1407 * Application.cs, IKeyFilter.cs, X11Keyboard.cs, XplatUI.cs,
1408 XplatUIStructs.cs: Added KeyFilter
1411 2008-09-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1413 * RelatedPropertyManager.cs: The properties returned by
1414 GetItemProperties should be that ones of the *actual* object returned
1415 by the property, not the property type - this is very special when the
1416 property exposes a type, but the returned object actually is a child
1417 class and implements more functionality and properties.
1419 2008-09-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1421 * Binding.cs: Don't look for the property in the data source if the
1422 passed string is empty.
1424 2008-09-18 Ivan N. Zlatev <contact@i-nz.net>
1426 * XplatUIX11.cs: Comment out _NET_WM_WINDOW_TYPE_DIALOG in order to
1427 fix unused variable warnings.
1429 2008-09-18 Ivan N. Zlatev <contact@i-nz.net>
1431 * XplatUIX11.cs: Send WM_HELP when F1 is pressed.
1434 2008-09-18 Ivan N. Zlatev <contact@i-nz.net>
1437 - Do not set _NET_WM_WINDOW_TYPE_DIALOG for modal forms, because this
1438 leads to the window manager overriding our border style and zorder.
1439 - Allow the activation of non-modal forms, which are children of a
1443 2008-09-17 Ivan N. Zlatev <contact@i-nz.net>
1445 * XplatUIX11.cs, X11Structs.cs: For mapped windows SetTopMost should
1446 ask the window manager to do the work instead of changing the property
1450 2008-09-17 Everaldo Canuto <ecanuto@novell.com>
1452 * CurrencyManager.cs: Check for positon before call ChangeRecordState in
1453 AddNew to fix some navigation for empty datasets. [Fixes #323053]
1455 2008-09-17 Everaldo Canuto <ecanuto@novell.com>
1457 * FileDialog.cs: Remove OnPaint method on PopupButtonPanel and set
1458 InternalBorderStyle to BorderStyle.Fixed3D. It is the best way to get 3d
1459 border and fixes some drawing issues when resize form.
1461 2008-09-17 Everaldo Canuto <ecanuto@novell.com>
1463 * FileDialog.cs: Lots of layout fixes to mimic Win32. [Fixes #408752]
1465 * ThemeWin32Classic.cs: We don't need to reduce button size when it is
1468 2008-09-17 Ivan N. Zlatev <contact@i-nz.net>
1470 * TextBoxBase.cs: For standard textbox the scrollbars are always
1471 visible if Multiline is true.
1474 2008-05-12 Everaldo Canuto <ecanuto@novell.com>
1476 * DataGridTextBoxColumn.cs: Uncomment code accidentally commited in last
1479 2008-05-12 Everaldo Canuto <ecanuto@novell.com>
1481 [Fixes most od DBNull and HeadersVisible problems]
1484 - ShowingColumnHeaders removed because we dont need it, ColumnHeadersVisible
1485 returns the value that we need.
1486 - Fixed FromPixelToColumn method that return zero for first column and for
1487 row header cell, now it returns -1 for row header cell.
1488 - Fixed HitTest to check row header cell in column header area, it now
1489 returns HitTestType.None. [Fixes #322864]
1490 - Fixed the calculation of visible columns in UpdateVisibleColumn, now it
1491 checks for RowHeadersVisible and other things.
1492 - If an exception occurs when setting CurrentCell and user type 'yes' in
1493 message dialog, invalidade current and new cell and set setting_current_cell
1494 to false to prevent future errors. [Partially fixes #323050]
1496 * DataGridColumnStyle.cs: Don't call EndEdit after set property_descriptor
1497 value (SetColumnValueAtRow), it must be done by grid to properly show
1498 messages. [Fixes #323050]
1500 * ThemeWin32Classic.cs: Lots of fixes in DataGridPaintColumnHeaders to
1501 better draw column and row header. Also dont draw anything when column
1502 headers is not visible.
1504 2008-09-16 Jonathan Pobst <monkey@jpobst.com>
1506 * ThemeWin32Classic.cs: Hook ListViewItems into the ShowFocusCues
1509 2008-09-16 Jonathan Pobst <monkey@jpobst.com>
1511 * TreeView.cs: Don't start editing a node on right click, only
1514 2008-09-16 Jonathan Pobst <monkey@jpobst.com>
1516 * NativeWindow.cs: Reenable the ThreadExceptionDialog I accidentally
1517 disabled over a year ago.
1518 * Form.cs: Wrap calling Load in a try/catch because it can happen
1519 before the catch-all one in NativeWindow.
1522 2008-09-16 Jonathan Pobst <monkey@jpobst.com>
1524 * ToolStripDropDownMenu.cs: Calculate the connected area better
1525 to take into account when the drop down is not directly under the
1527 * ToolStripProfessionalRenderer.cs: Draw the whole unconnected area.
1529 2008-09-16 Mario Carrion <mcarrion@novell.com>
1531 * ScrollBar.cs: New event added: UIAValueChanged, generated when
1532 LargeChange, SmallChange, Maximum or Minimum values are changed.
1535 2008-09-16 Mario Carrion <mcarrion@novell.com>
1537 * ErrorProvider.cs: Component enabled to support accessibility.
1538 * Application.cs: Updated to Initialize UIA in ErrorProvider.
1541 2008-09-16 Jonathan Pobst <monkey@jpobst.com>
1543 * TextBoxBase.cs: Flag has_been_focused when SelectionStart is set
1544 so we don't highlight on first focus.
1547 2008-09-16 Jonathan Pobst <monkey@jpobst.com>
1549 * TextControl.cs: Correctly calculate the height of the area we
1550 need to invalidate when we have started scrolling and viewport_y
1551 is used. [Fixes bug #387608]
1553 2008-09-16 Jonathan Pobst <monkey@jpobst.com>
1555 * TextControl.cs: When getting the SelectedText, don't add in
1556 NewLine characters, as they are already contained in the lines.
1559 2008-09-16 Jonathan Pobst <monkey@jpobst.com>
1561 * TextBoxBase.cs: Replace the buggy Lines setter with one that
1562 simply concats the lines and send it to the Text setter.
1563 [Fixes issue #2 and #3 of 388115]
1565 2008-09-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1567 * Binding.cs: The default value of DataSourceNullValue should be
1568 Convert.DBNull actually. Also, the NullValue should only be used *if*
1569 itself is not null, and use the null/Convert.DBNull value instead.
1571 2008-09-15 Jonathan Pobst <monkey@jpobst.com>
1573 * TextControl.cs: Add a method to convert a string newline to the
1575 * TextBoxBase.cs: When the user hits enter, insert a native newline.
1576 [Fixes part 1 of bug #388115]
1578 2008-09-15 Mario Carrion <mcarrion@novell.com>
1580 * ToolTip.cs: UnPopup event set to internal to match public API.
1582 2008-09-15 Jonathan Pobst <monkey@jpobst.com>
1584 * TextBoxBase.cs: If the user is using Ctrl-Tab to move focus, we
1585 have to remove the Ctrl in order for the focus moving code to kick in.
1588 2008-09-15 Jonathan Pobst <monkey@jpobst.com>
1590 * CheckedListBox.cs: Return the real item index from Add. It may not be
1591 the last item if the list is sorted. The user can change the NewValue in
1592 the ItemCheck event, we need to use that value if so.
1593 * ListBox.cs: Return the real item index from a sorted Add.
1596 2008-09-15 Ivan N. Zlatev <contact@i-nz.net>
1598 * MimeIcon.cs: Add null checks in the GnomeHandler, because it might
1599 happen that the icons from the theme is missing or the particular size
1603 2008-09-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1605 * Binding.cs: When assigning null or DBNull depending on value/ref type,
1606 use IsValueType instead to get the precise desired value.
1609 2008-09-12 Jonathan Pobst <monkey@jpobst.com>
1611 * TreeNodeCollection.cs: When adding a new node to an opened node,
1612 we have to invalidate everything below the parent node because
1613 every node scoots down and we have to repaint them.
1616 2008-09-12 Jonathan Pobst <monkey@jpobst.com>
1618 * ThemeWin32Classic.cs: Take CheckBox and RadioButton's CheckAlign
1619 property into account when drawing.
1622 2008-09-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1624 * ListBox.cs: When calling Items.Clear(), call
1625 SelectedIndexCollection.ClearCore instead of normal Clear method, to
1626 not fire any Selected*Changed event - this is done to match .net and
1627 don't have invalid values when changing the DataSourceProperty.
1630 2008-09-12 Mario Carrion <mcarrion@novell.com>
1632 * HelpProvider.cs: Control enabled to support accessibility.
1633 * Application.cs: Updated to Initialize UIA in HelpProvider.
1636 2008-09-12 Jonathan Pobst <monkey@jpobst.com>
1638 * Form.cs: When we are showing a dialog box, if its owner is TopMost,
1639 make the dialog TopMost as well.
1642 2008-09-12 Jonathan Pobst <monkey@jpobst.com>
1644 * Win32DnD.cs, XplatUIWin32.cs: Applied patch from Andy Hume that handles
1645 clipboard data better.
1648 2008-09-12 Jonathan Pobst <monkey@jpobst.com>
1650 * TextBoxBase.cs: Applied patch from John Mortlock that ensures
1651 TextChanged and SelectionChanged events fire in the same order as .Net.
1654 2008-09-12 Jonathan Pobst <monkey@jpobst.com>
1656 * DataGridView.cs: When sorting a column, if it only contains numbers,
1657 do a numeric sort instead of a string sort.
1660 2008-09-12 Jonathan Pobst <monkey@jpobst.com>
1662 * TableLayoutSettings.cs, TableLayoutStyleCollection.cs: Guard
1663 against NRE's when the settings have a null panel.
1664 * TableLayoutPanel.cs: When setting the TableLayoutSettings, ensure
1668 2008-09-11 Mario Carrion <mcarrion@novell.com>
1670 * ToolTip.cs: Control enabled to support accessibility.
1671 * Application.cs: Updated to Initialize UIA in ToolTip.
1674 2008-09-11 Jonathan Pobst <monkey@jpobst.com>
1676 * Control.cs: Make the custom Enumerator internal to fix build.
1678 2008-09-11 Jonathan Pobst <monkey@jpobst.com>
1680 * DataGridViewCheckBoxCell.cs: If our content is clicked and we aren't
1681 already in edit mode, begin edit mode. Generally edit mode isn't
1682 started until the second click, but CheckBoxes are special.
1684 2008-09-11 Jonathan Pobst <monkey@jpobst.com>
1686 * ErrorProvider.cs: Never try to add our icons to ContainerControl,
1687 since that can be set to anything. Always add them to the Control's
1688 parent. [Fixes bug #416058]
1690 2008-09-11 Jonathan Pobst <monkey@jpobst.com>
1692 * ListView.cs: Use a custom enumerator for ListViewItemCollection
1693 so items can be deleted in a foreach.
1696 2008-09-11 Jonathan Pobst <monkey@jpobst.com>
1698 * DataGridViewRow.cs: Better implementation of GetPreferredHeight.
1699 Store the user set explicit height so that the row can be AutoSized
1700 and then when AutoSize is turned off, it can get its original size back.
1701 * DataGridView.cs: Use the Row's GetPreferredHeight instead of
1702 duplicating the logic. When setting AutoSizeRowsMode to None, reset
1703 rows' heights back to their explicit values.
1706 2008-09-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1708 * DateTimePicker.cs: When getting focus, select the checkbox if we are
1709 already showing it. Also, don't change its value when pressing space
1710 if the checkbox is not visible (ShowCheckBox as false). Finally, the
1711 checkbox should remain selected as long as Checked is false, and the
1712 other parts are disabled.
1715 2008-09-11 Jonathan Pobst <monkey@jpobst.com>
1717 * MessageBox.cs: Handle shortcut keys to dialog buttons.
1720 2008-09-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1722 * Binding.cs: When the value retrieved from the control property is
1723 null, don't return Convert.DBNull for Nullable instances, since they
1724 can *actually* get a null value.
1727 2008-09-10 Jonathan Pobst <monkey@jpobst.com>
1729 * Control.cs: Add an internal field to force doublebuffering regardless
1730 of what the public mechanisms are set to. This is because MS's native
1731 controls are doublebuffered even though their .Net bits are set to false.
1732 * ProgressBar.cs: Set force_double_buffer to true.
1735 2008-09-10 Jonathan Pobst <monkey@jpobst.com>
1737 * DataGridViewCheckBoxColumn.cs: Use the threestate constructor for
1739 * DataGridViewCheckBoxCell.cs: Add proper support for threestate.
1740 * DataGridViewCell.cs: Implement GetEditedFormattedValue for types
1741 without EditingControls, paint background selection for types without
1742 EditingControls, reset the EditingCellValueChanged flag when the
1743 cell's value is committed.
1744 * DataGridView.cs: Make BeginEdit and EndEdit work with cells that don't
1745 have EditingControls, remove a double call to a cell's OnContentClickInternal,
1746 don't do cell changing logic in OnMouseDown if the cell didn't change.
1749 2008-09-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1751 * DateTimePicker.cs: Fix the edition of am/pm specifier.
1753 2008-09-09 Jonathan Pobst <monkey@jpobst.com>
1755 * TextControl.cs: Add "&" to the list of valid characters in a URL.
1757 2008-09-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1759 * DateTimePicker.cs: Before incrementing or decrementing any part in
1760 the textbox, end any current edit. Also when ending the current edit
1761 use the editing_part_index field instead of the current selected
1762 value, since they can be out of synch, and we really need to work on
1763 the *real* current edit part. Finally when PartData.Selected changes,
1764 always try to end any ongoing edit.
1765 This should fix some small errors handling mouse navigation and
1766 increase/decrease operations.
1768 2008-09-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1770 * DateTimePicker.cs: 'hh' and 'HH' formats (12 and 24 hour formats
1771 respectively) should handled different, since the 12 hours format
1772 needs the value typed by the user to be adjusted depending on the
1773 a.m/p.m value, so it is preserved, and only changed when the value
1774 reaches the 12 value (when it changes from a.m to p.m).
1775 Fixes part of #416555.
1777 2008-09-08 Jonathan Pobst <monkey@jpobst.com>
1779 * ToolStrip.cs: Ensure MouseDown gets called for MenuStrip items.
1780 * ToolStripDropDownItem.cs: Don't fire events and such again if
1781 ShowDropDown is called on an already dropped down item.
1782 * ToolStripMenuItem.cs: Call ShowDropDown even if there aren't any
1783 subitems, the user may add some in the DropDownOpening event.
1786 2008-09-08 Jonathan Pobst <monkey@jpobst.com>
1788 * ComboBox.cs: Fix IOORE when setting SelectedItem to null.
1791 2008-09-08 Jonathan Pobst <monkey@jpobst.com>
1793 * MdiClient.cs: When looking for menustrips on a child form to merge,
1794 look inside ToolStripContainers.
1797 2008-09-08 Ivan N. Zlatev <contact@i-nz.net>
1799 * ErrorProvider.cs: Unbreak my previous commit.
1801 2008-09-08 Ivan N. Zlatev <contact@i-nz.net>
1803 * ErrorProvider.cs: Icon should always be 16x16.
1806 2008-09-07 Ivan N. Zlatev <contact@i-nz.net>
1808 * GridEntry.cs: Invalidate the child items cache when the property
1811 2008-09-07 Ivan N. Zlatev <contact@i-nz.net>
1813 * GridEntry.cs, PropertyGridView.cs:
1814 - Update the ReadOnly detection and rendering to finally hopefully
1815 match the one of MSFT.
1816 - Niceify and move the debug CWLS.
1819 2008-09-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1821 * ListView.cs: Don't call Invalidate at all from SetItemLocation,
1822 since we are already calling Invalidate for the entire control when
1823 needed - and call Redraw() when size changes, since we need to paint
1824 there by ourselved and not anymore from the mentioned method.
1825 This should improve the layout process. Also clean some not needed calls
1828 2008-09-05 Jonathan Pobst <monkey@jpobst.com>
1830 * MenuAPI.cs: Add a null check to the Alt-F4 code.
1833 2008-09-05 Jonathan Pobst <monkey@jpobst.com>
1835 * ThreadExceptionDialog.cs: Disable AutoScaling for this dialog.
1838 2008-09-04 Ivan N. Zlatev <contact@i-nz.net>
1840 * GridEntry.cs, CategoryGridEntry.cs, RootGridEntry.cs, PropertyGrid.cs,
1841 PropertyGridView.sc: Implement lazy/delayed propertygrid population
1842 on item expansion. Improves performance and fixes bug #417955.
1845 2008-09-05 Stephane Delcroix <sdelcroix@novell.com>
1847 * Control.cs: only check for OptimizedDoubleBuffer in NET_2_0.
1850 2008-09-04 Jonathan Pobst <monkey@jpobst.com>
1852 * TextControl.cs: Add "_" to the list of valid characters in a URL.
1855 2008-09-04 Jonathan Pobst <monkey@jpobst.com>
1857 * Control.cs: If using OptimizedDoubleBuffer, ensure the clip
1861 2008-09-04 Jonathan Pobst <monkey@jpobst.com>
1863 * FontDialog.cs: When storing our font size from the starting font,
1864 use SizeInPoints instead of Size in case Size is a different unit
1868 2008-09-04 Jonathan Pobst <monkey@jpobst.com>
1870 * FileDialog.cs: When enter is pressed on a SaveFileDialog and we
1871 don't use it for anything else, check if a directory is highlighted.
1872 If it is, navigate into it.
1875 2008-09-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1877 * Binding.cs: When acquiring a BindingManagerBase for the first time,
1878 check that the specified property actually exists in the data source,
1879 and throw an ArgumentException if that's not the case - this is only
1880 done for this scenario, since for later cases (such Position changes)
1881 we throw different exceptions (match .Net).
1883 2008-09-03 Ivan N. Zlatev <contact@i-nz.net>
1885 * ButtonBase.cs CheckBox.cs, Control.cs, FlowLayoutPanel.cs,
1886 FlowLayoutSettings.cs, GroupBox.cs, Label.cs, ListBox.cs,
1887 PropertyGrid.cs, RadioButton.cs, TableLayoutPanel.cs,
1888 TableLayoutSettings.cs, ToolStrip.cs, ToolStripDropDownButton.cs,
1889 ToolStripDropDownMenu.cs, ToolStripItem.cs, ToolStripSplitButton.cs,
1890 ToolStripStatusLabel.cs: Add missing PerformLayout calls to various
1894 2008-09-03 Neville Gao <nevillegao@gmail.com>
1896 * StatusBar.cs: Control enabled to support accessibility.
1899 2008-09-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1901 * Binding.cs: When connecting the event handler for the "Changed"
1902 event for the property, only do it for PropertyManager, and not for
1903 CurrencyManager - this is exactly what does .Net, totally ignoring any
1904 change in the property of the elements of a list.
1907 2008-09-02 Jonathan Pobst <monkey@jpobst.com>
1909 * XplatUIWin32.cs: Ensure we never send the WS_EX_MDICHILD flag
1910 to Windows when creating a window, as we fake MDI stuffs.
1913 2008-09-01 Ivan N. Zlatev <contact@i-nz.net>
1915 * TextBox.cs: Invalidate after UseSystemPasswordChar, so that the
1916 change takes effect.
1918 2008-08-24 Ivan N. Zlatev <contact@i-nz.net>
1920 * XplatUIX11.cs: Provide MouseButtons/State information to the XPlatUI.
1923 2008-08-27 Jonathan Pobst <monkey@jpobst.com>
1925 * DataGridView.cs: Raise CellContentClick event.
1926 [Fixes part of bug #420351]
1928 2008-08-27 Mario Carrion <mcarrion@novell.com>
1930 * ScrollBar.cs: Control enabled to support accessibility.
1933 2008-08-27 Mario Carrion <mcarrion@novell.com>
1935 * ComboBox.cs: Control enabled to support accessibility.
1938 2008-08-27 Mario Carrion <mcarrion@novell.com>
1940 * ListBox.cs: Control enabled to support accessibility.
1943 2008-08-27 Jonathan Pobst <monkey@jpobst.com>
1945 * ComboBox.cs: Don't suppress the TextChanged event when changing
1947 * ToolStripComboBox.cs: Listen to the ComboBox's TextChanged event
1951 2008-08-26 Jonathan Pobst <monkey@jpobst.com>
1953 * ErrorProvider.cs: Fix a regression NRE when setting properties
1954 for a control before it has a parent.
1957 2008-08-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1959 * Binding.cs: Use the BindingManagerBase.Current value to obtain
1960 connect the property "Changed" event, instead of using the data
1961 sources - this is useful when the property specifies actually a
1962 multiple objects path.
1963 Fixes part of #417973.
1965 2008-08-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1967 * RelatedPropertyManager.cs: PropertyManager instances associated to a
1968 nested properties should return not the properties of the data source
1969 itself, but the properties of the type of a specific property in the
1970 data source - match .net.
1972 2008-08-24 Gert Driesen <drieseng@users.sourceforge.net>
1974 * ListBox.cs (IntegerCollection): To avoid duplication, moved code for
1975 AddRange overloads into AddItems method, and added missing NULL check.
1976 Added extra argument check to RemoveAt for compatibility with MS.
1977 Modified IList implementation of Add, Contains, IndexOf and Remove to
1978 throw an ArgumentException if item is not an int. Modified IList.Insert
1979 to throw a NotSupportException instead of an Exception. Implemented
1981 (ObjectCollection): To avoid duplication, use AddItems method from
1982 AddRange overloads. On 1.0 profile, first perform NULL check on items
1985 2008-08-23 Gert Driesen <drieseng@users.sourceforge.net>
1987 * Control.cs: Do not modify bounds directly in .ctor's. Fixes bug
1990 2008-08-22 Atsushi Enomoto <atsushi@ximian.com>
1992 * X11Keyboard.cs : comment out some Console.WriteLine().
1994 2008-08-22 Atsushi Enomoto <atsushi@ximian.com>
1996 * X11Keyboard.cs : fixed wrong call to XOpenIM() which happened
1997 even if premises are not filled. Also XLookupString() was not
1998 receiving correct input, which blocked precise input handling
2001 2008-08-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2003 * ListView.cs: When calling OnCacheVirtualItems, cast to the right
2004 type of delegate, instead of EventHandler - this was causing a type
2005 cast exception in all apps handling this event.
2008 2008-08-20 Jonathan Pobst <monkey@jpobst.com>
2010 * ToolStripDropDownItem.cs: Always raise DropDownOpening in
2011 ShowDropDown to give the user a chance to dynamically add
2012 drop down items. [Step 1 of fixing bug #417877]
2014 2008-08-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2016 * X11Dnd.cs: Don't fire pseudo motion DragOver events if we haven't
2017 had any mouse motion since the call to StartDrag, to match the dnd
2019 Fixes part of #381876.
2021 2008-08-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2023 * XplatUIX11.cs: Only do the children control bounds check for EnterNotify
2024 if mode is NotifyUngrab, and let it flow if mode is NotifyNormal.
2025 Also, if we are actually moving into a different window after
2026 grabbing, generate a LeaveNotify event for the previous window, since
2027 we need to fire the leave events until the grab ends, not when
2028 actually moving outside of the control.
2030 2008-08-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2032 * XplatUIX11.cs: The check inside EnterNotify case to fire MouseEnter
2033 events only for client windows was wrong - we need to compare the
2034 client window against the window receiving the EnterNotify event, not
2035 against zero (since client window is never Zero, btw).
2036 This prevents having unnecessary handling of EnterNotify events for
2037 non-client windows when a gran begins.
2039 2008-08-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2041 * XplatUIX11.cs: Handling X ButtonPress events, we must *not* generate
2042 MouseMove/MotionNotify events at all (which should only happen after
2043 MouseUp/ButtonRelease, as .Net does).
2044 This avoids firing an extra and unnecessary MouseMove event just after
2045 every MouseDown event.
2047 2008-08-19 Jonathan Pobst <monkey@jpobst.com>
2049 * LinkLabel.cs: Always clear any previous links when LinkArea
2050 is set. [Fixes bug #410709]
2052 2008-08-19 Jonathan Pobst <monkey@jpobst.com>
2054 * ToolStripProfessionalRenderer.cs: Revert last change.
2055 * ProfessionalColorTable.cs: For Classic, use SystemColors.Window
2056 for ToolStripDropDownBackground.
2058 2008-08-19 Jonathan Pobst <monkey@jpobst.com>
2060 * ToolStripProfessionalRenderer.cs: Use Window color for the
2061 background of dropdowns to match .Net when the user is not
2062 using the default white. [Fixes bug #418108]
2064 2008-08-19 Atsushi Enomoto <atsushi@ximian.com>
2066 * XplatUIWin32.cs : SetTimer() used to set wrong window handle and
2067 it caused timer registration twice. Fixed bug #418107.
2069 2008-08-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2071 [Correction: This is the actual change to X11Dnd issue, not the
2072 previous one, which was actually a different issue.]
2074 * X11Dnd.cs: Increase the interval for the Timer, to not fire our
2075 pseudo motion HandleMouseOver method so aggresive. Also, don't call it
2076 when the pointer is actually in motion, but only when the pointer
2077 seems to stop (as .net does).
2078 Fixes part of #381876.
2081 2008-08-18 Jonathan Pobst <monkey@jpobst.com>
2083 * ListBox.cs: Fix CopyTo implementation.
2086 2008-08-18 Jonathan Pobst <monkey@jpobst.com>
2088 * ThemeWin32Classic.cs: Use ClientRectangle instead of Bounds when
2089 drawing a ComboBox's background. Fixes bad disabled rendering when
2090 the control is not at 0,0.
2093 2008-08-16 Ivan N. Zlatev <contact@i-nz.net>
2095 * GridEntry.cs: Leave the ICustomTypeDescriptor handling up to the
2096 ComponentModel layer, which will properly prioritize the attributes.
2097 Avoids wrong prioritization of duplicate attributes when retrieving
2098 the converter and editor.
2101 2008-08-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2103 * XplatUIX11.cs: Increase the interval for the Timer, to not fire our
2104 pseudo motion HandleMouseOver method so aggresive. Also, don't call it
2105 when the pointer is actually in motion, but only when the pointer
2106 seems to stop (as .net does).
2107 Fixes part of #381876.
2109 2008-08-15 Ivan N. Zlatev <contact@i-nz.net>
2111 * GridEntry.cs: Perform stricter check for the ParentEntry's
2112 PropertyDescriptor/PropertyOwner for the ICustomTypeDescriptor
2116 2008-08-14 Geoff Norton <gnorton@novell.com>
2118 * XplatUICarbon.cs: Properly implement PeekMessage and DoEvents.
2119 Fixes #396983. Properly fix ActiveWindow trackin and do not
2120 prematurely show POPUP windows.
2122 2008-08-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2124 * XplatUIX11.cs: Handle the obscured regions while scrolling using
2125 GraphicsExpose event, processing it just after we copy the scrolled
2126 area. This ensures that the next calls to ScrollWindow will copy
2127 regions already updated, and the scrolling will be smooth. Also remove
2128 the code that was trying to detect the obscured regions, since we are
2129 not using it anymore (too slow).
2131 2008-08-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2133 * ListBox.cs: Fix the -temporary- broken selection in ListBox for
2134 MultiExtended mode, by separating some logic between the ctrl/shift
2135 handling. Also ignore any MouseMove events generated together with
2136 MouseDown events - we are only interested in the real motion event.
2137 Fixes part of #414963.
2139 2008-08-08 Jonathan Pobst <monkey@jpobst.com>
2141 * DataGridViewCell.cs: Guard against an AOORE when checking if a cell
2142 is selected. [Fixes bug #414143]
2144 2008-08-07 Ivan N. Zlatev <contact@i-nz.net>
2146 * GridEntry.cs: Check if current property is a ICustomTypeDescriptor
2147 and not the parent one (the propertyowner). Fixes the behavior of
2148 GetConverter/GetEditor.
2151 2008-08-07 Ivan N. Zlatev <contact@i-nz.net>
2153 * PropertyGrid.cs: Refresh should also repopulate the PropertyGrid.
2154 [Fixes part of bug #415452]
2156 2008-08-05 Ivan N. Zlatev <contact@i-nz.net>
2158 * GridEntry.cs: ITypeDescriptorContext should be relative to the parent
2159 GridEntry, not the current.
2162 2008-08-04 Ivan N. Zlatev <contact@i-nz.net>
2164 * TextBoxBase.cs: De-internalize max_length field.
2165 * RichTextBox.cs: Use base.MaxLength - both TextBoxBase and RichTextBox
2166 share the same logic.
2169 2008-08-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2171 * ListBox.cs: Selection changes made in the MouseDown handler should
2172 use the *Core versions of selection in SelectedIndices collection,
2173 since the SelectedIndexChanged/SelectedValueChanged events are fired
2174 until we get a MouseUp event, and thus we need to separate the logic
2175 from the events, as done in the keyboard navigation. Also, fire those
2176 selection events from keyboard navigation in SelectionMode.None, even
2177 if we don't have a selection, as .Net does.
2179 2008-08-01 Jonathan Pobst <monkey@jpobst.com>
2181 * ToolStripButton.cs, ToolStripMenuItem.cs: Guard against a NRE my
2182 last change introduced when an item is clicked but isn't on a toolstrip.
2184 2008-07-31 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2186 * ListBindingHelper.cs: When looking for an object's properties, check
2187 if it implements ICustomTypeDescriptor, in which case we should
2188 resolve the propertu based on its GetProperties method, not in its
2189 actual properties. This is what .Net seems to do.
2190 Fixes a UsingWebBrowser problem during initialization.
2192 2008-07-31 Jonathan Pobst <monkey@jpobst.com>
2194 * ToolStrip.cs: Fix an NRE caused by clicking on a ToolStripButton
2195 sitting on a MenuStrip.
2197 2008-07-31 Jonathan Pobst <monkey@jpobst.com>
2199 * ToolStripButton.cs: If we "click" a top button on a menustrip that has
2200 no children with the keyboard, we need to release the keyboard capture.
2203 2008-07-31 Jonathan Pobst <monkey@jpobst.com>
2205 * ToolStripMenuItem.cs: If we "click" a top level menu item that has
2206 no children with the keyboard, we need to release the keyboard capture.
2209 2008-07-31 George Giolfan <georgegiolfan@yahoo.com>
2211 * ThemeVisualStyles.cs: Made ScrollBar rendering less strict so it supports
2212 the GTK+-based implementation of VisualStyles.
2213 * ThemeWin32Classic.cs: Exposed various layout values for use in the
2214 GTK+-based implementation of VisualStyles: ListViewGetHeaderHeight(Font),
2215 ListViewGetHeaderHeight(), ProgressBarChunkSpacing, ProgressBarGetChunkSize(),
2216 ProgressBarGetChunkSize(int), ProgressBarDefaultHeight,
2217 TrackBarGetThumbSize(), TrackBarVerticalTrackWidth,
2218 TrackBarHorizontalTrackHeight.
2220 2008-07-31 George Giolfan <georgegiolfan@yahoo.com>
2222 * TabControl.cs: Added hot style handling for the scroll buttons.
2223 right_slider_state, left_slider_state are now of type PushButtonState to
2224 allow for a hot state. Added tracking of the mouse button being held down
2225 on a tab page. Extracted HasHotElementStyles, RightScrollButtonArea,
2226 LeftScrollButtonArea.
2227 * Theme.cs, ThemeWin32Classic.cs: Removed TabControlGetLeftScrollRect,
2228 TabControlGetRightScrollRect.
2230 2008-07-30 Everaldo Canuto <ecanuto@novell.com>
2232 * MenuAPI.cs: Check for null GrabControl on ProcessMnemonic to prevent
2235 2008-07-30 Ivan N. Zlatev <contact@i-nz.net>
2237 * Form.cs: Ensure that we reset the shown_raised flag after
2238 the form is closed, so that we raise the show events the next
2239 time the form is shown.
2242 2008-07-30 Ivan N. Zlatev <contact@i-nz.net>
2244 * Form.cs: Ensure closing events are raised only once.
2247 2008-07-30 Ivan N. Zlatev <contact@i-nz.net>
2249 * X11Keyboard.cs: Refactor SendKeyboardInput to accept the keycode,
2250 so that we can successfully generate the LParam in-place instead of
2251 in KeyEvent, which isn't called for e.g. MainMenu. Fixes keyboard
2252 navigation for menus.
2254 2008-07-30 Everaldo Canuto <ecanuto@novell.com>
2256 * MenuAPI.cs: When montion don't set the keyboard navigation state to
2257 'navigating'. Fixes bug #411356.
2259 2008-07-30 Everaldo Canuto <ecanuto@novell.com>
2261 [Fixed remaining issues of #406773 (#1)]
2262 * MenuItem.cs: UpdateMenuItem added to track the shotcut changes.
2264 * MenuAPI.cs: Don't create tracker on TrackPopupMenu, it will be created in
2265 MainMenu (already done) and ContextMenu creation.
2267 * ContextMenu.cs: Create tracker on construction.
2269 2008-07-30 Everaldo Canuto <ecanuto@novell.com>
2271 * MenuAPI.cs: For ContextMenu set GrabControl on TrackPopupMenu, it make
2272 possible to instantiate MenuTracker without GrabControl.
2274 2008-07-30 Everaldo Canuto <ecanuto@novell.com>
2276 * MenuAPI.cs: On constructor dont set the GrabControl for non ContextMenu.
2278 * MainMenu.cs: Set GrabControl on SetForm using current form.
2280 2008-07-30 Everaldo Canuto <ecanuto@novell.com>
2282 * MenuAPI.cs: Chage grab_control to GrabControl and make it public.
2284 2008-07-30 Everaldo Canuto <ecanuto@novell.com>
2286 * MenuAPI.cs: Check if menu is activated before deactivate it in
2289 2008-07-30 Ivan N. Zlatev <contact@i-nz.net>
2291 * TableLayoutStyleCollection, TableLayoutStyle.cs, RowStyle.cs,
2293 Make the TableLayoutStyle owned by the the TableLayoutPanel, so that:
2294 - One style instance can only participate in a single style collection.
2295 - Styles can request their owner to layout whenever their properties
2297 [Fixes bugs #412583 and #412582]
2299 2008-07-29 Ivan N. Zlatev <contact@i-nz.net>
2301 * X11Keyboard.cs: Implement the generation of the LParam for
2302 all keyboard messages.
2305 2008-07-29 Jonathan Pobst <monkey@jpobst.com>
2307 * ListBox.cs: Don't let the user set TopIndex so high that it
2308 scrolls up far enough to show empty items.
2311 2008-07-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2313 * ThemeWin32Classic.cs: Actually commit the changes to fix #410880
2314 (I'm an idiot and forgot to commit the actual changes, as well as
2315 specify the right file, which is this one, not ListView.cs).
2317 2008-07-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2319 * ListView.cs: Don't draw ListViewSubItem instances from
2320 DrawListViewItem - we need to reuse the main item's drawing for the
2321 first sub item in case owner draw is true, but wants the system to
2322 do the default draw for the first sub item, without incurring in a
2326 2008-07-28 Jonathan Pobst <monkey@jpobst.com>
2328 * ToolStripButton.cs: Update Checked for CheckOnClick before
2329 raising the Click event. [Fixes bug #412505]
2331 2008-07-28 Ivan N. Zlatev <contact@i-nz.net>
2333 * Form.cs: Remove some seems leftover code for non-TopLevel's
2334 CreateParams, which is breaking ClientSize sizing, because it
2335 removes the border window styles.
2337 2008-07-27 Ivan N. Zlatev <contact@i-nz.net>
2339 * PropertyGrid.cs: Invalidate the View when the PropertyTab
2342 2008-07-25 Gert Driesen <drieseng@users.sourceforge.net>
2344 * WebBrowser.cs: Removed debug output.
2346 2008-07-25 Jonathan Pobst <monkey@jpobst.com>
2348 * FileDialog.cs: Apply patch from Ernesto to clean up some
2351 2008-07-25 Ivan N. Zlatev <contact@i-nz.net>
2353 * TableLayoutPanel.cs: Perform layout on GrowStyle change, so
2354 that the change has an immediate effect.
2356 2008-07-25 Ivan N. Zlatev <contact@i-nz.net>
2358 * ScrollableControl.cs: Update PerformLayout calls to include
2359 provide the name of the property that changed.
2361 2008-07-25 Ivan N. Zlatev <contact@i-nz.net>
2363 * TableLayoutPanel.cs: Draw relative to the DisplayRectangle
2364 location. Fixes drawing of border and cell borders if scrollable.
2366 2008-07-25 Ivan N. Zlatev <contact@i-nz.net>
2368 * ScrollableControl.cs: Perform layouting after the AutoScroll
2369 properties have changed, so that the changes have immediate
2373 2008-07-25 Ivan N. Zlatev <contact@i-nz.net>
2375 * XplatUIX11.cs: Non Client area is actually Client such in the
2376 case of NotifyIcon, so double check WholeWindow == ClientWindow
2377 when adding an expose.
2378 [Fixes bugs #324237 and #357022]
2380 2008-07-25 Ivan N. Zlatev <contact@i-nz.net>
2382 * TableLayoutPanel.cs: Invalidate after layouting, so that we
2383 repaint the cell borders.
2385 2008-07-25 Ivan N. Zlatev <contact@i-nz.net>
2387 * PropertyGridTextBox.cs: Stop filtering messages prior to our
2388 disposal to avoid unexpected ObjectDisposedExceptions.
2390 2008-07-24 Ivan N. Zlatev <contact@i-nz.net>
2392 * TableLayoutPanel.cs: Layout on Row/Column count change.
2394 2008-07-22 Gert Driesen <drieseng@users.sourceforge.net>
2396 * ListViewItem.cs: Changed binary serialization to match MS. Fixes
2398 * PictureBox.cs: When ImageLocation is set to null or an empty string,
2399 only set image to null if it was previously initialized from an url
2400 (or using ImageLocation). In ImageLocation, load specified image
2401 asynchronously if WaitOnLoad is false. Added support for local file
2402 paths to LoadAsync, and added missing argument check.
2404 2008-07-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2406 * DateTimePicker.cs:
2407 * ThemeWin32Classic.cs: Add a editing capability to DateTimePicker, in
2408 order to set the value as required (which means: when selection
2409 changes for a part being edited, and not before that if not needed).
2410 Also use an enum to describe which part are we using, and use the
2411 selection as a property in PartData, in order to notify the
2412 DateTimePicker owner that we need to end the current edit.
2415 2008-07-17 Ivan N. Zlatev <contact@i-nz.net>
2417 * PropertyGridTextBox.cs: Validation should be performed only if we
2418 are focused. We can lose focus for example if the Return key is used
2419 to set the entry and there is an error. When the message box is
2420 displayed we would have validate on click in the message box.
2422 2008-07-16 Ivan N. Zlatev <contact@i-nz.net>
2424 * GridEntry.cs: Checking for DesignerSerializaitonVisibility.Content
2425 in order to determine that we are expandable is wrong. There was a bug,
2426 now fixed, in TypeDescriptor that was causing the wrong converter to be
2427 returned which caused GetPropertiesSupported == false in most cases.
2430 2008-07-15 Jonathan Pobst <monkey@jpobst.com>
2432 * ImageList.cs: Fix ICollection.CopyTo implementation for
2433 ImageListCollection. [Fixes bug #409169]
2435 2008-07-14 Jonathan Pobst <monkey@jpobst.com>
2437 * MenuAPI.cs, ToolStripDropDown.cs: Use VirtualScreen instead of
2438 WorkingArea so that menus can appear on the second monitor
2439 when one has dual monitors.
2441 2008-07-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2443 * TextBox.cs: Auto complete stuff in WndProc should be 2.0 only.
2446 2008-07-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2448 * TextBox.cs: Implement navigation support for auto complete in
2449 TextBox, as well as refactor the code to show the auto complete window
2450 when receiving a WM_CHAR message, instead of TextChanged, since
2451 autocomplete itself should be able to set the Text a lot of times and
2452 finally only typing should show it, not changes from code.
2454 2008-07-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2456 * TabControl.cs: When expanding the selected tab, don't adjust the
2457 width if alignment is Right, since it has a different offset than 0,
2458 as opposed to the other alignments.
2459 Fixes the selected tab not being painted at all with alignment = Right
2460 and using FillToRight size mode.
2462 2008-07-14 Jonathan Pobst <monkey@jpobst.com>
2464 * TreeView.cs: Fix ToString to match MS. [Fixes bug #409029]
2466 2008-07-14 Jonathan Pobst <monkey@jpobst.com>
2468 * NumericUpDown.cs: Apply patch from Andy Hume to clamp out of range
2469 values from the textbox to the boundary values. [Fixes bug #409026]
2471 2008-07-14 Jonathan Pobst <monkey@jpobst.com>
2473 * TreeNodeCollection.cs: We were copying one too many elements when
2474 doing our array copy. Fixes a crash when RemoveAt is called.
2477 2008-07-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2479 * TabControl.cs: When doing the layout and need to call FillRow -using
2480 FillToRight size mode-, use the overload receiving a bool param
2481 indicating whether we need to do a vertical or horizontal calculation.
2482 Fixes part of #399583.
2484 2008-07-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2486 * TextBox.cs: When painting, use the value returned by
2487 GetLastVisibleItem instead of using the cached last_item field, since
2488 there could be a desynchronization between the layout and the
2489 painting. Fixes a AOOR exception in auto complete mode.
2491 2008-07-12 George Giolfan <georgegiolfan@yahoo.com>
2493 * ThemeVisualStyles.cs: Disabled when Application.VisualStyleState is
2494 NonClientAreaEnabled until our VisualStyles is modified to allow it.
2496 2008-07-12 Gert Driesen <drieseng@users.sourceforge.net>
2498 * TextBox.cs: Fixed NRE in LostFocus. Avoid unnecessary initialization.
2500 2008-07-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2502 * TextBox.cs: When focus is lost, if the auto complete listbox is
2505 2008-07-11 George Giolfan <georgegiolfan@yahoo.com>
2507 * InternalWindowManager.cs: HandleSizing: Implemented a better minimum
2508 tracking size for tool windows.
2509 * Theme.cs, ThemeWin32Classic.cs : Extracted
2510 ManagedWindowSpacingAfterLastTitleButton.
2512 2008-07-11 Jonathan Pobst <monkey@jpobst.com>
2514 * ThemeEngine.cs: Remove the clearlooks, nice, and old gtk themes.
2515 They are bit-rotted and have always been listed as "unsupported".
2517 2008-07-11 Jonathan Pobst <monkey@jpobst.com>
2519 * PictureBox.cs: Don't crash if ImageLocation is set to "" or null.
2521 2008-07-11 George Giolfan <georgegiolfan@yahoo.com>
2523 * ThemeVisualStyles.cs: Fixed minimized window height adjustment.
2525 2008-07-10 Jonathan Pobst <monkey@jpobst.com>
2527 * ListBox.cs: Make sure last_item_visible gets reset before we try
2528 to do a layout due to scrollbars appearing or disappearing.
2531 2008-07-10 Jonathan Pobst <monkey@jpobst.com>
2533 * XPlatUIWin32.cs: Change GetMenuOrigin to calculate borders better
2534 for different window themes. [Fixes bug #339140]
2536 2008-07-10 George Giolfan <georgegiolfan@yahoo.com>
2538 * ThemeWin32Classic.cs: Implemented minimized window border width properly,
2539 in ManagedWindowBorderWidth.
2541 2008-07-10 Jonathan Pobst <monkey@jpobst.com>
2543 * InternalWindowManager.cs: Change MouseMove to take a point, so
2544 we can use the same point later on.
2545 * MdiWindowManager.cs: Store point sent to MouseMove so we can
2546 later reset to it. On Windows, the Cursor.Position had already
2547 changed by the time we were resetting to it.
2550 2008-07-10 Jonathan Pobst <monkey@jpobst.com>
2552 * InternalWindowManager.cs: Ignore mouse actions on TitleButtons that
2554 * ThemeWin32Classic.cs: Disable or hide MinimizeBox/MaximizeBox if
2558 2008-07-10 Jonathan Pobst <monkey@jpobst.com>
2560 * MdiWindowManager.cs: Double-clicking on the title bar should not
2561 maximize a MDI form if MaximizeBox = false.
2563 2008-07-10 George Giolfan <georgegiolfan@yahoo.com>
2565 * ThemeVisualStyles.cs: Fixed a warning.
2567 2008-07-10 George Giolfan <georgegiolfan@yahoo.com>
2569 * ThemeVisualStyles.cs: Fixed warnings and formatted.
2571 2008-07-10 George Giolfan <georgegiolfan@yahoo.com>
2573 * ThemeVisualStyles.cs: Removed ManagedWindowGetMenuButtonSize. The base
2574 implementation produces a better result.
2576 2008-07-10 George Giolfan <georgegiolfan@yahoo.com>
2578 * ThemeVisualStyles.cs: Adjusted height and border rendering for minimized
2581 2008-07-10 George Giolfan <georgegiolfan@yahoo.com>
2583 * Application.cs: Added VisualStylesEnabled because XplatUI.ThemesEnabled
2584 cannot be used from the ThemeEngine constructor.
2585 * ThemeEngine.cs: Changed the XplatUI.ThemesEnabled check to
2586 Application.VisualStylesEnabled because it does not work on X11.
2588 2008-07-09 Jonathan Pobst <monkey@jpobst.com>
2590 * StatusBar.cs: Apply patch from Andy Hume to remove lazy instantiation
2591 that we did not always check for, as well as fixes to the IList
2592 implementations. [Fixes bug #402703]
2594 2008-07-09 George Giolfan <georgegiolfan@yahoo.com>
2596 * IDeviceContext.cs: Added Dispose.
2598 2008-07-09 George Giolfan <georgegiolfan@yahoo.com>
2600 * Control.cs: Added OnSizeInitializedOrChanged.
2601 * Form.cs: OnLoadInternal: Added a call to
2602 Control.OnSizeInitializedOrChanged.
2603 * InternalWindowManager.cs:
2604 * HandleTitleBarMouseMove: No longer invalidates the parent window.
2605 * DrawTitleButton: Extracted Theme.ManagedWindowDrawMenuButton.
2606 * TitleButton: Added Entered.
2607 * TitleButtons.MouseMove: Added handling of TitleButton.Entered.
2608 * MdiWindowManager.cs:
2609 * HandleTitleBarMouseMove: Now invalidates the parent window when a mouse
2610 move over the maximized title buttons causes a change.
2611 * IsActive: Can now be called before the window is added to a MDI parent.
2612 * Theme.cs: Added ManagedWindowTitleButtonHasHotElementStyle,
2613 ManagedWindowDrawMenuButton, ManagedWindowOnSizeInitializedOrChanged.
2614 * ThemeVisualStyles.cs: Implemented proper managed window rendering.
2615 * ThemeWin32Classic.cs:
2616 * Extracted ManagedWindowDrawTitleBarAndBorders, ManagedWindowDrawTitleButton.
2617 * DrawTitleButton takes a new form parameter.
2618 * Added ManagedWindowTitleButtonHasHotElementStyle,
2619 ManagedWindowDrawMenuButton, ManagedWindowOnSizeInitializedOrChanged.
2621 2008-07-09 George Giolfan <georgegiolfan@yahoo.com>
2623 * ThemeEngine.cs: ThemeVisualStyles is now selected if
2624 Application.EnableVisualStyles has been called, even if the current system
2625 configuration does not support rendering with Visual Styles.
2626 * ThemeVisualStyles.cs: Now falls back to ThemeWin32Classic when Visual
2627 Styles should not be used.
2629 2008-07-08 Jonathan Pobst <monkey@jpobst.com>
2631 * ComboBox.cs: PreferredHeight is not tied to ItemHeight. Fixes 3rd
2632 ComboBox in FormsTest.
2634 2008-07-08 Ivan N. Zlatev <contact@i-nz.net>
2636 * ThemeWin32Classic.cs: (ManagedWindowBorderWidth): width 3 is only
2637 for fixed toolwindows.
2639 2008-07-08 George Giolfan <georgegiolfan@yahoo.com>
2641 * Form.cs: SetBoundsCore: Added minimum size for minimized windows.
2643 2008-07-07 Ivan N. Zlatev <contact@i-nz.net>
2645 * Control.cs: CreateControl just returns if the Control is diposed
2646 and doesn't throw ObjectDisposedException.
2649 2008-07-07 Ivan N. Zlatev <contact@i-nz.net>
2651 * Control.cs: Do not create the control if the parent isn't created
2652 yet, e.g in the case of a parented form on which .Show is called.
2653 It will be created when the parent is made visible/created.
2656 2008-07-07 Ivan N. Zlatev <contact@i-nz.net>
2658 * Form.cs: Avoid recursively calling OnSizeChanged due to recursive
2659 WM_WINDOWPOSCHANGED caused by the layouting code on win32.
2662 2008-07-07 Ivan N. Zlatev <contact@i-nz.net>
2664 * Form.cs: When disposed set owner to null. Improves #402446.
2666 2008-07-07 Ivan N. Zlatev <contact@i-nz.net>
2668 * Form.cs, FlowLayoutPanel.cs: When calculating the PreferredSize
2669 use children's PreferredSize if in AutoSize mode and ExplicitBounds
2671 * Form.cs: Take the Padding into account for the PreferredSize.
2674 2008-07-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2676 * TabControl.cs: Since we don't support more than one direction in
2677 TabControl rows alignment (this is, the row becomes the
2678 bottom row when selected), make Direction return always 1. This way
2679 the layout doesn't get confused about a bad calculation.
2682 2008-07-07 Ivan N. Zlatev <contact@i-nz.net>
2684 * XplatUIX11.cs: Implement NC hit-testing for mouse down/up messages,
2685 so that the wparam is properly set.
2686 Fixes form moving in the test case in bug 402446.
2688 2008-07-07 Jonathan Pobst <monkey@jpobst.com>
2690 * FolderBrowserDialog.cs: If we can't find the SelectedPath, display
2691 the full tree instead of nothing. [Improves bug #406584]
2693 2008-07-07 George Giolfan <georgegiolfan@yahoo.com>
2695 * ThemeWin32Classic.cs: Adjusted minimized window painting.
2697 2008-07-07 George Giolfan <georgegiolfan@yahoo.com>
2699 * InternalWindowManager.cs: No longer draws decorations for maximized MDI
2702 2008-07-04 Jonathan Pobst <monkey@jpobst.com>
2704 * TreeView.cs: Add a null check when using CollapseAll on an
2705 empty tree. [Fixes bug #406449]
2707 2008-07-03 Jonathan Pobst <monkey@jpobst.com>
2709 * Form.cs: Make OnMenuComplete internal so we can call it.
2710 * MenuAPI.cs: Raise Form.MenuComplete when a menu item is clicked.
2713 2008-07-03 Jonathan Pobst <monkey@jpobst.com>
2715 * TabControl.cs: Handle Up and Down keys when TabControl is in
2719 2008-07-03 Jonathan Pobst <monkey@jpobst.com>
2721 * TabControl.cs: Invalidate when we remove a tab. Guard against
2722 an AOORE when trying to remove a tabpage that is not owned by the
2726 2008-07-03 Jonathan Pobst <monkey@jpobst.com>
2728 * ScrollBar.cs: Change the LargeChange calculation to be correct.
2729 Ensure we are using LargeChange instead of large_change so we our
2730 calculations are correct.
2733 2008-07-03 Jonathan Pobst <monkey@jpobst.com>
2735 * TableLayoutPanel.cs: When we change to a serialized TableLayoutSettings,
2736 we need to ensure the ColumnCount/RowCount gets set.
2739 2008-07-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2741 * ListBox.cs: When handling item navigation, if selection mode is
2742 None, call EnsureVisible, since scrolling is normally handled by
2743 selection, that we are not calling in this case.
2746 2008-07-02 Jonathan Pobst <monkey@jpobst.com>
2748 * ContainerControl.cs: Apply a patch from Ernesto Carrea that adds
2749 a null check to our focus walking code. [Fixes bug #394332]
2751 2008-07-02 Andy Hume <andyhume32 at yahoo dot co dot uk>
2753 * ComboBox.cs: Case missed in bug 379596 "Support item
2754 navigation by entering text": On _close_ drop-down select
2755 the first item matching the text in the textbox. [Fixes bug #397265]
2757 2008-07-02 Jonathan Pobst <monkey@jpobst.com>
2759 * DataGridView.cs: Fix a crash when sorting by column headers,
2760 mentioned in bug #404841. Remove some dead switch cases.
2762 2008-07-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2765 * TextBox.cs: Implement AutoComplete support for ComboBox, which just
2766 uses the AutoComplete support in the internal TextBox. Also TextBox
2767 can store a reference to ComboBox, in case AutoCompleteSource is set
2768 to ListItems (this is, ComboBox's items, and we don't want to pass an
2769 additional collection).
2771 2008-07-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2773 * ListViewItem.cs: Restore the initial value of bounds rect to
2774 Rectangle.Empty, and is this value for Layout detection in virtual
2775 mode. Fixes the tests.
2777 2008-06-30 Jonathan Pobst <monkey@jpobst.com>
2779 * XPlatUI.cs: Remove references to "new" X11 backend.
2781 2008-06-28 Ivan N. Zlatev <contact@i-nz.net>
2783 * Control.cs: Add an internal virtual OnDragDropEnd method
2784 to allow controls such as ListBox, which depend on a sequence
2785 of MouseDown+Move+End events, to handle the lack of a MouseUp
2786 when a DnD operation is started in MouseDown.
2787 * ListBox.cs: If a DnD operation is started in MouseDown we won't
2788 get a MouseUp, so reset our state whenever a DnD operation ends.
2790 2008-06-28 Ivan N. Zlatev <contact@i-nz.net>
2792 * PropertyGrid.cs: Clear the root griditem first thing when
2793 new object/s is/are selected. Fixes some rare cases where
2794 the View will get a paint request and won't know that the
2795 grid is in the process of repopulating.
2797 2008-06-27 Ivan N. Zlatev <contact@i-nz.net>
2799 * XplatUIX11.cs, InternalWindowManager.cs:
2800 If WS_EX_TOOLWINDOW is set in the CreateParams for a form MS
2801 doesn't automagically update the FormBorderStyle, so we must
2802 double check the CreateParams explicitly to determine if the
2803 window is a toolwindow.
2804 * ThemeWin32Classic.cs: Use InternalWindowManager.IsToolWindow
2805 instead of doing custom checks.
2807 Fixes toolwindows for the test case in bug #402446
2809 2008-06-27 Ivan N. Zlatev <contact@i-nz.net>
2811 * Control.cs: Visibility of the control should be false
2812 when the handle is destroyed in WmDestroy and not immediately
2813 in Dispose(). This is effectively where the disposing process
2814 ends even though the control is marked as Disposed immediately
2815 after calling Dispose().
2818 2008-06-27 Ivan N. Zlatev <contact@i-nz.net>
2820 * PropertyGridTextBox.cs: Start monitoring the mouse clicks
2821 when the textbox gets focus.
2824 2008-06-27 Ivan N. Zlatev <contact@i-nz.net>
2826 * PropertyGridTextBox.cs, PropertyGridView.cs:
2827 - Alt + Down should show the drop down editor.
2828 - Focus the editor when showing it
2831 2008-06-25 Jonathan Pobst <monkey@jpobst.com>
2833 * ThemeWin32Classic.cs: Fix from Andy for panel text for panels
2834 that are not the first panel.
2835 * StatusBar.cs: Ensure that the X coordinate of panels is always
2836 stored. Fix IList implementation of StatusBarPanelCollection to
2837 call the regular methods.
2838 [Fixes bug #403599, #402165]
2840 2008-06-23 Jonathan Pobst <monkey@jpobst.com>
2842 * ThemeWin32Classic.cs: Fix position calculation for centered
2843 text on status bar panels. [Fixes bug #402165]
2845 2008-06-22 Ivan N. Zlatev <contact@i-nz.net>
2847 * Splitter.cs: Fix Splitter to:
2848 - Work for arbitrary splitter size
2849 - Handle MinSize and MinExtra properly
2850 - Get rid of absolute positioning during drag and use relative
2851 - Multiple other fixes
2854 2008-06-22 Ivan N. Zlatev <contact@i-nz.net>
2856 * Cursor.cs: Show shouldn't hide the cursor.
2858 2008-06-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2860 * ListViewItem.cs: When invalidating, add some extra space to bounds,
2861 since focus rectangle and selection can add some space and need to
2862 take into account those small offsets - specially in Details view.
2863 * ListView.cs: Instead of invalidate using item Bounds directly, call
2864 item.Invalidate, to have the code centralized.
2865 Fixes focused/selection garbage when selecting and deselecting items
2868 2008-06-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2870 * ListViewItem.cs: Set bounds initially to -1 values - thus in virtual
2871 mode we can check whether we have to force a Layout or not, and can
2872 cache based on this, instead of avoiding caching all the the time. Do
2873 this check in GetBounds and TextBounds.
2874 Fixes selection in Details view.
2876 2008-06-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2878 * ListView.cs: Make HeaderControl internal, thus the theme engine can
2879 get its *real* height instead of trying to infere it.
2880 * ThemeWin32Classic.cs: When drawing gridlines, don't iterate over the items to
2881 get the position of them, since it's in general a bad idea in general,
2882 and because we can't do that in virtual mode. Instead get the first
2883 visible item as well as item height, and draw them.
2886 2008-06-20 Jonathan Pobst <monkey@jpobst.com>
2888 * ToolStripSplitButton.cs: We can't add in extra width if
2889 the button is not AutoSize. [Fixes bug #401279]
2891 2008-06-20 Ivan N. Zlatev <contact@i-nz.net>
2893 * PaddingConverter.cs:
2894 - Implement conversion to InstanceDescriptor
2895 - Handle "All" in CreateInstance by using the supplied
2896 ITypeDescriptorContext.
2897 [Fixes bugs #396076 and #396078]
2899 Patch by Andy Hume <andyhume32@yahoo.co.uk>
2900 Code contributed under MIT/X11 license.
2902 2008-06-19 Andy Hume <andyhume32 at yahoo dot co dot uk>
2904 * ComboBox.cs, ListControl.cs, Control.cs, Button.cs,
2906 Add Category attributes.
2907 Code is contributed under the MIT/X11 license.
2909 2008-06-18 Ivan N. Zlatev <contact@i-nz.net>
2912 - Fix a NRE when unparenting a form.
2913 - Do not recreate or destroy a parented form when
2916 2008-06-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2918 * TextBox.cs: Implement basic support for AutComplete with custom
2921 2008-06-18 Jonathan Pobst <monkey@jpobst.com>
2923 * ToolStripSplitButton.cs: Left and Top of ButtonBounds, SplitterBounds,
2924 DropDownButtonBounds should be from the origin of the button, not the
2925 ToolStrip. [Fixes bug #401279]
2927 2008-06-16 Sandy Armstrong <sanfordarmstrong@gmail.com>
2929 * X11DesktopColors.cs: Clear GTK_MODULES environment variable before
2930 running gtk_init_check. This prevents GAIL from loading
2931 unnecessarily, which was breaking UIA support. Initial fix for bug
2933 * Application.cs: Add UIA support to Winforms. New static constructor
2934 uses reflection to initialize UIAutomationWinforms assembly. Added
2935 PreRun event so UIA can initialize before the mainloop starts, and
2936 FormAdded event so UIA can provide a11y support for new Forms in an
2939 2008-06-16 Jonathan Pobst <monkey@jpobst.com>
2941 * DataGridView.cs: When binding to a dataset, subscribe to table
2942 and column change events. Unsubscribe to these when we clear bindings.
2945 2008-06-14 Everaldo Canuto <ecanuto@novell.com>
2947 [DataGrid drawing refactory]
2949 * DataGrid.cs: Fix the caption size, we need one pixel more for divider.
2951 * DataGridColumnStyle.cs: Removing PaintHeader code, the draw operations
2952 must be handle by Theme, now it call DataGridPaintColumnHeader.
2954 * DataGridTextBoxColumn.cs: Fix the textbox size. It must be one pixel less,
2955 test cases must be also fixed because it checks for wrong size.
2957 * ThemeWin32Classic.cs:
2958 - Draw the bottom line of grid caption.
2959 - Prevent to draw caption text when it is empty.
2960 - Use CPDrawBorder3D for 3D efects to simplify code.
2961 - Uses 3D (when not flat) to paint corner shared between row and column
2963 - Fix header drawing issues on win32, now borders are drawing.
2964 - Fix column header paint issues to mimic win32.
2965 - Adjust header drawing for last column, like first one it must be draw
2967 - Added DataGridPaintRowHeaderStar to draw star like .net does, it is
2969 - DataGridPaintColumnHeader created to draw column headers, it also
2970 paint stuff right on Win32.
2971 - Use DataGridPaintColumnHeader method instead of DataGridColumnStyle
2975 - DataGridPaintRowHeaderStar method added.
2976 - DataGridPaintColumnHeader method added.
2978 2008-06-13 Jonathan Pobst <monkey@jpobst.com>
2980 * Control.cs: Don't reset to Dock style layout if DockStyle is
2981 set to none. [Fixes bug #399316]
2983 2008-06-12 Everaldo Canuto <ecanuto@novell.com>
2985 * Win32DnD.cs: Fix the check for control not equal null.
2986 Fixes bug #341420 and #381886.
2988 2008-06-12 Jonathan Pobst <monkey@jpobst.com>
2990 * DataGridViewRowCollection.cs: Update the indexes of rows after
2991 one has been removed.
2992 * DataGridViewSelectedRowCollection.cs: Add internal clear method.
2993 * DataGridViewSelectedColumnCollection.cs: Add internal clear method.
2994 * DataGridView.cs: Add support for deleting rows via Delete key, deleting
2995 rows for the Rows collection, or deleting rows from the bound DataSet.
2997 2008-06-12 Jonathan Pobst <monkey@jpobst.com>
2999 * DataGridView.cs: Listen to a DataSet's changed event even
3000 when autogeneratecolumns is false. Refactor the changed event's
3001 add row code to use the same as the existing add row code.
3004 2008-06-11 Jonathan Pobst <monkey@jpobst.com>
3006 * TextBoxBase.cs: We need to call RaiseSelectionChanged pretty
3007 much any time the caret moves and there is text, not just when
3008 the selection changes as one would think.
3009 * RichTextBox.cs: Override RaiseSelectionChanged and fire
3013 2008-06-11 Jonathan Pobst <monkey@jpobst.com>
3015 * FontDialog.cs: Forward ListBox keyboard events to the ListBox
3016 instead of trying to duplicate the code.
3017 * ListBox.cs: Make method internal so we can send keyboard events.
3020 2008-06-11 Jonathan Pobst <monkey@jpobst.com>
3022 * TextBoxBase.cs: When pasting and checking the max length,
3023 subtract the selected text length (the text we will be replacing) from
3024 the document length.
3025 * TextControl.cs: Ensure every character insertion is reflected in
3026 charcount, so max length will work properly.
3029 2008-06-11 Jonathan Pobst <monkey@jpobst.com>
3031 * ListBox.cs: Ensure scrollbars are updated when a single
3032 column listbox with an already set top-index is created.
3035 2008-06-11 Jonathan Pobst <monkey@jpobst.com>
3037 * FontDialog.cs: Typing in the font/style textboxes should search
3038 the list boxes case-insensitively. [Fixes bug #398343]
3040 2008-06-11 George Giolfan <georgegiolfan@yahoo.com>
3042 * ThemeWin32Classic.cs: Managed window title bar layout now uses actual
3043 widths of icon and buttons instead of hard coded values.
3045 2008-06-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3047 * ListBox.cs: When SelectionMode is None, clicking an item should move focus
3048 as well as generating a SelectedIndexChanged event, just like .Net does
3052 2008-06-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3054 * ListBox.cs: When navigating items visually, use FocusedItem as the
3055 reference point instead of SelectedIndex, since even in
3056 SelectionMode.None we need to support navigation, and in that case we
3057 just can't use SelectedIndex.
3058 Fixes part of #398345.
3060 2008-06-10 Jonathan Pobst <monkey@jpobst.com>
3062 * Control.cs: Make a SetBoundsInternal that avoids the new
3064 * ComboBox.cs, Form.cs, ListBox.cs, ScrollableControl.cs: Use
3065 SetBoundsInternal instead of SetBoundsCoreInternal.
3067 2008-06-10 Ivan N. Zlatev <contact@i-nz.net>
3069 * ScrollableControl.cs: Use SetBoundsCoreInternal instead of
3070 SetBounds for the scrollbars.
3072 2008-06-10 Andreia Gaita <avidigal@novell.com>
3074 * HtmlDocument.cs: Implement RightToLeft, ContextMenuShowing,
3075 FocusingEvent, LosingFocusEvent, OnMouseDown, OnMouseLeave,
3076 OnMouseMove, OnMouseOver, OnMouseUp
3077 * HtmlElement.cs: Optimize InsertBefore. Implement RemoveFocus,
3078 ScrollIntoView, Focusing, GotFocus, LosingFocus, LostFocus.
3079 * HtmlElementCollection.cs, HtmlWindowCollection.cs: Keep a reference
3080 to the WebControl object to pass to new collection objects
3081 * HtmlHistory.cs: Implement support for individual window histories.
3082 * HtmlWindow.cs: Implement History, Position, Size, WindowFrameElement,
3083 AttachEventHandler, DetachEventHandler, RemoveFocus, Error,
3084 GotFocus, LostFocus, OnLoad, OnUnload
3085 * WebBrowser.cs: Implement EncryptionLevel, ScrollBarsEnabled,
3087 * WebBrowserBase.cs: Implement Cursor, Enabled, UseWaitCursor, Add
3088 security level changes and context menu event support.
3090 2008-06-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3092 * ComboBox.cs: Pressing Enter should close the dropdown listbox, just
3093 as happens with Esc, patch my Andy Hume.
3096 2008-06-10 George Giolfan <georgegiolfan@yahoo.com>
3098 * MdiWindowManager.cs: DrawMaximizedButtons now uses
3099 ManagedWindowGetMenuButtonSize instead of ManagedWindowButtonSize.
3100 * Theme.cs: Made MenuButtonSize platform dependent. Added
3101 ManagedWindowButtonSize.
3102 * ThemeWin32Classic.cs: Added ManagedWindowGetMenuButtonSize.
3103 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added MenuButtonSize.
3105 2008-06-10 George Giolfan <georgegiolfan@yahoo.com>
3107 * DateTimePicker.cs, Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs:
3108 Added support for rendering with VisualStyles.
3110 2008-06-10 George Giolfan <georgegiolfan@yahoo.com>
3112 * ComboBox.cs, Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs: Added
3113 support for rendering the border with VisualStyles.
3115 2008-06-10 George Giolfan <georgegiolfan@yahoo.com>
3117 * InternalWindowManager.cs: Added ShowIcon. Fixed IconRectangleContains when
3118 the icon is not shown.
3119 * ThemeWin32Classic.cs: Now uses InternalWindowManager.ShowIcon instead of
3122 2008-06-10 George Giolfan <georgegiolfan@yahoo.com>
3124 * InternalWindowManager.cs: Draw minimized windows even if they don't have
3127 2008-06-09 Jonathan Pobst <monkey@jpobst.com>
3129 * ComboBox.cs, ListBox.cs: Use SetBoundsInternalCore instead of SetBounds.
3131 2008-06-09 Jonathan Pobst <monkey@jpobst.com>
3133 * Control.cs: Fill in the defaults for unspecified bounds in SetBounds.
3136 2008-06-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3138 * ComboBox.cs: When snaping height -because of IntegralHeight set to
3139 true- with ComboBoxStyle.Simple, set the height to PreferredHeight
3140 if the requested height leaves the listbox area with *less* than the
3141 required are to see one item. We were setting it to PreferredHeight
3142 even for values matching the height for a single item.
3145 2008-06-06 Jonathan Pobst <monkey@jpobst.com>
3147 * DataGridViewCell.cs: Simplify GetInheritedStyle by using ApplyStyle.
3149 2008-06-06 Jonathan Pobst <monkey@jpobst.com>
3151 * DataGridViewCell.cs: Use property instead of field.
3153 2008-06-06 George Giolfan <georgegiolfan@yahoo.com>
3155 * InternalWindowManager.cs, ThemeWin32Classic.cs: Removed useless Form.Icon
3158 2008-06-06 George Giolfan <georgegiolfan@yahoo.com>
3160 * Theme.cs: Added #region around the managed window code. Made the managed
3161 window methods abstract.
3162 * ThemeWin32Classic.cs: Added #region around the managed window code.
3164 2008-06-06 George Giolfan <georgegiolfan@yahoo.com>
3166 * InternalWindowManager.cs: Now only calls Theme.DrawManagedWindowDecorations
3168 * ThemeWin32Classic.cs: Removed HasBorders checks in
3169 DrawManagedWindowDecorations.
3171 2008-06-06 George Giolfan <georgegiolfan@yahoo.com>
3173 * InternalWindowManager.cs, Theme.cs, ThemeWin32Classic.cs: Refactored:
3174 Extracted ManagedWindowGetTitleBarIconArea.
3176 2008-06-05 Jonathan Pobst <monkey@jpobst.com>
3178 * DataGridViewCellStyle.cs: Don't clone the font.
3180 2008-06-05 Jonathan Pobst <monkey@jpobst.com>
3182 * DataGridViewCell.cs: Ensure we don't pass null to GetConverter.
3184 2008-06-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3186 * XplatUIX1..cs: Use IntPtr size instead of int, as wee need to work
3187 also on 64 bit machinges. Fixes the BadWindow errors while scrolling
3190 2008-06-05 Jonathan Pobst <monkey@jpobst.com>
3192 * DataGridViewCell.cs: Correctly get converters for FormattedValue.
3193 Use Format/FormatProvider before trying converters.
3194 * DataGridViewCellStyle.cs: ApplyStyle should only apply things that
3195 are 'set'. Change constructor to not use ApplyStyle since it wants
3196 everything applied. Clone the Font.
3197 * DataGridViewRowHeaderCell.cs: Start with DefaultCellStyle and
3198 ApplyStyle the rest.
3200 2008-06-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3202 * ListView.cs: We need to calculate the scrollbars even if the handle
3203 hasn't been created - this is needed when methods using scrollbars
3204 info, such EnsureVisible, are called before control has been created.
3207 2008-06-05 George Giolfan <georgegiolfan@yahoo.com>
3209 * ThemeVisualStyles.cs: ScrollBar is now rendered with the VisualStyles API
3210 only if the elements are defined.
3212 2008-06-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3214 * ComboBox.cs: I'm an idiiot - forgot to commit the last ComboBox
3215 section. Also, when setting bounds, snap height as well as save the
3216 requested height if Dock has any value affecting the height: Left,
3217 Right and Bottom - important if using IntegralHeight as true.
3219 2008-06-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3221 * ComboBox.cs: When calling UpdateComboBoxBounds, adjust the height
3222 passed to SetBounds to reflect the new adjusted height (Integral-wise),
3223 instead of doing that only in our SetBoundsCore override, since the
3224 bounds cached can be the same as saved one and we could not get the
3228 2008-06-04 George Giolfan <georgegiolfan@yahoo.com>
3230 * Theme.cs: Made ToolWindowCaptionButtonSize platform dependent.
3231 * XplatUI.cs: Added ToolWindowCaptionButtonSize.
3232 * XplatUIDriver.cs: Changed SmallCaptionButtonSize to 15,15. Added
3233 ToolWindowCaptionButtonSize.
3234 * XplatUIWin32.cs: Added ToolWindowCaptionButtonSize.
3236 2008-06-04 George Giolfan <georgegiolfan@yahoo.com>
3238 * MdiWindowManager.cs: Now uses SystemInformation.DoubleClickTime instead of
3240 * Theme.cs: Made DoubleClickTime plaform dependent.
3242 2008-06-04 George Giolfan <georgegiolfan@yahoo.com>
3244 * Theme.cs: Made ToolWindowCaptionHeight platform dependent.
3245 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added
3246 ToolWindowCaptionHeight.
3248 2008-06-04 George Giolfan <georgegiolfan@yahoo.com>
3250 * InternalWindowManager.cs: The adjustment to ensure positive client area
3251 sizes is now platform dependent (disabled on Windows).
3252 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added
3253 RequiresPositiveClientAreaSize.
3255 2008-06-04 George Giolfan <georgegiolfan@yahoo.com>
3257 * Form.cs: Fixed null handling in Icon (see SettingIconToNull in the tests).
3259 2008-06-04 George Giolfan <georgegiolfan@yahoo.com>
3261 * InternalWindowManager.cs: Changed IconicSize to use
3262 SystemInformation.MinimizedWindowSize.
3263 * XplatUICarbon.cs, XplatUIX11.cs: Removed MinimizedWindowSize.
3264 * XplatUIDriver.cs: Changed MinimizedWindowSize to provide a default value.
3266 2008-06-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3268 * ComboBox.cs: If the combobox is anchored both on top and bottom,
3269 adjust height if IntegralHeight is true when calling SetBoundsCore (as
3270 likely the height was modified even if Height wasn't specified in
3271 BoundsSpecified parameter).
3272 Fixes part of #396297.
3274 2008-06-04 George Giolfan <georgegiolfan@yahoo.com>
3276 * InternalWindowsManager.cs: Changed minimum window size while resizing to
3277 SystemInformation.MinWindowTrackSize.
3278 * XplatUICarbon.cs, XplatUIX11.cs: Removed MinWindowTrackSize.
3279 * XplatUIDriver.cs: Changed MinWindowTrackSize to provide a default value.
3281 2008-06-03 George Giolfan <georgegiolfan@yahoo.com>
3283 * MenuItem.cs: Fixed Dispose.
3285 2008-06-03 George Giolfan <georgegiolfan@yahoo.com>
3287 * ColumnHeader.cs: CalcColumnHeader now uses the theme to get the height.
3288 * DataGridView.cs: * EnableHeadersVisualStyles: Fixed default value.
3289 EnteredHeaderCell, PressedHeaderCell: Added.
3290 * DataGridViewCell.cs: Refactored: Extracted GetBorderPen.
3291 * DataGridViewColumnHeaderCell.cs, DataGridViewRowHeaderCell.cs: Gave the
3292 theme a chance to override default painting.
3293 * ListView.cs: Added EnteredColumnHeader. Refactored: Extracted
3294 GetColumnHeaderInvalidateArea, Invalidate(ColumnHeader).
3295 * Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs: Added members for
3296 ListView and DataGridView header rendering.
3298 2008-06-03 Ivan N. Zlatev <contact@i-nz.net>
3300 * RichTextBox.cs: GetPositionFromCharIndex should return the
3301 visual position of the character relative to the viewport.
3302 [Fixes part of bug #396664]
3304 2008-06-03 Ivan N. Zlatev <contact@i-nz.net>
3306 * GridEntry.cs: Make HasCustomEditor check for EditStyle != None
3307 and not just for the existance of an UITypeEditor. In some cases
3308 there is an editor associated just to do PaintValue, but which
3309 doesn't actually support editing.
3312 2008-05-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3314 * ComboBox.cs: page_size as well as vscrollbar.LargeChange should be 1
3315 if needed, instead of 0 - this should help us in the corner case where
3316 we have more than one item but we are only partially showing 1 item.
3317 Fixes part of #374713.
3319 2008-05-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3321 * XplatUiX11.cs: When scrolling and detecting the obscured areas in a
3322 control, return immediately if the any parent control's handle hasn't
3323 been created or isn't visible, as well as avoiding creating the parent
3324 Form if the handle hasn't been previously created.
3327 2008-06-02 Jonathan Pobst <monkey@jpobst.com>
3329 * TableLayoutPanel.cs: Use border sizes when calculating the
3330 panel's preferred size. [Fixes part of bug #396433]
3332 2008-06-02 Ivan N. Zlatev <contact@i-nz.net>
3334 * SplitContainer.cs:
3335 - Fix SplitterDistance to update only if needed.
3336 - Make it force min and max validation.
3337 - Handle properly mouse moves outside the resizeable area.
3340 2008-06-02 Andreia Gaita <avidigal@novell.com>
3342 * WebBrowserBase.cs: Implement support for ScriptErrorsSuppressed
3343 (which also suppresses all popup dialogs). Throw NotSupported
3344 exceptions for activex getters/setters.
3345 * WebBrowser.cs: Implement DocumentStream, DocumentType, IsBusy,
3346 IsOffline, ReadyState, ScriptErrorsSuppressed, ScrollbarsEnabled,
3347 StatusText, Version, GoSearch
3348 * HtmlDocument.cs: Add DocType support
3350 2008-06-02 Andy Hume <andyhume32@yahoo.co.uk>
3352 * TextBox.cs: Implement TextBoxAutoCompleteSourceConverter.
3355 2008-06-02 Ivan N. Zlatev <contact@i-nz.net>
3357 * GridEntry.cs: Pass the ITypeDescriptorContext everywhere.
3359 2008-06-02 Jonathan Pobst <monkey@jpobst.com>
3361 * TableLayoutPanel.cs: When calculating preferred size, use the
3362 actual number of columns and rows, not what the user set them to.
3365 2008-06-02 George Giolfan <georgegiolfan@yahoo.com>
3367 * Form.cs: Enabled managed handling of tool window MDI children. Fixes bug
3370 2008-06-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3372 * XplatUIX11.cs: When detecting areas obscured in a control by other
3373 toplevel windows while scrolling, return if the control hasn't a
3377 2008-05-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3379 * XplatUIX11.cs: Properly detect the visible area of a control being
3380 scrolled (obscured by other winforms controls and any X toplevel
3381 windows), to mark as invalid the requested area to be scrolled that
3382 isn't visible and thus can't be copied.
3385 2008-05-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3387 * ListBox.cs: Compute the precise amount to vertically scroll when
3388 using DrawMode.OwnerDrawVariable.
3389 Patch by jkeymer (j.keymer@gmx.net).
3391 2008-05-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3393 * ComboBox.cs: Use ListBox-like scrollbar values In ComboListBox
3394 to avoid setting an invalid value for the verticall scrollbar
3395 when navigating items. And, duh, also remove my silly debug messages
3396 from previous commits.
3399 2008-05-30 Ivan N. Zlatev <contact@i-nz.net>
3401 * FlatButtonAppearance.cs: Make FlatButtonAppearanceConverter exandable and
3402 make it MS compatible.
3404 2008-05-30 Ivan N. Zlatev <contact@i-nz.net>
3406 * PropertyGrid.cs, PropertyGridView.cs, GridEntry.cs:
3407 - Allow the editing of entries even if their parent is read-only.
3408 - Do not render expandable properties read-only.
3409 - Refactor expansion checks form PropertyGrid into PropertyGrid.
3411 2008-05-30 George Giolfan <georgegiolfan@yahoo.com>
3413 * ScrollBar.cs, Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs: Added
3414 support for the hover style.
3416 2008-05-29 Andreia Gaita <avidigal@novell.com>
3418 * ContainerControl.cs: Check for null dead-end when traversing the tree
3421 [Fixes #394332, patch by Ernesto Carrea]
3423 2008-05-29 Geoff Norton <gnorton@novell.com>
3425 * XplatUICarbon.cs: Fix a culture-dependent conversion to be the
3426 constant that it is. Fixes #393981
3428 2008-05-29 Jonathan Pobst <monkey@jpobst.com>
3430 * Form.cs: Add a MonoTODO to the AutoScaleBaseSize setter explaining
3431 that the user probably doesn't want to set this.
3433 2008-05-29 Jonathan Pobst <monkey@jpobst.com>
3435 * ThemeWin32Classic.cs: Don't let the text size be bigger than
3436 the control size for CheckBox/RadioBox.
3437 [Fixes part of bug #394645]
3439 2008-05-29 Ivan N. Zlatev <contact@i-nz.net>
3441 * PropertyGrid.cs: Update the state of the sorting buttons in
3442 the toolbar if PropertySort is set programatically.
3444 2008-05-29 Ivan N. Zlatev <contact@i-nz.net>
3446 * GridItemCollection.cs: Add multiple items with conflicting names
3447 support and also preserve name ordering.
3450 2008-05-29 Ivan N. Zlatev <contact@i-nz.net>
3452 * GridItemCollection.cs: Revert my multiple items with same
3455 2008-05-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3457 * ScrollBar.cs: Scrollbars should only react to left-clicks, not right
3459 Fixes part of #393908.
3461 2008-05-28 Jonathan Pobst <monkey@jpobst.com>
3463 * ToolStripDrowDown.cs: When using the Show () methods that have a
3464 Control parameter, set the menu owner to that Control.
3467 2008-05-28 Ivan N. Zlatev <contact@i-nz.net>
3469 * PropertyGridTextBox.cs, PropertyGridView.cs: Implement validation.
3472 2008-05-27 Ivan N. Zlatev <contact@i-nz.net>
3474 * GridItemCollection.cs: Refactor to support multiple items with the
3478 2008-05-27 Jonathan Pobst <monkey@jpobst.com>
3480 * Control.cs: The 2.0 check for illegal cross thread calls in
3481 Control.Handle were throwing an exception when we were getting
3482 the Handle in order to invoke correctly. Created a private
3483 version that does not contain this check.
3486 2008-05-27 Ivan N. Zlatev <contact@i-nz.net>
3488 * PropertyGrid.cs: Respect DefaultTabType.
3490 2008-05-27 Ivan N. Zlatev <contact@i-nz.net>
3492 * ListView.cs: SPACE selects an item.
3495 2008-05-27 Ivan N. Zlatev <contact@i-nz.net>
3497 * ListView.cs: Reset the search string whenever the items are
3501 2008-05-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3503 * ListControl.cs: For the first added item PositionChanged is fired
3504 _before_ ItemChanged, which leave us in a temporary invalid state - so
3505 we need to set the selected index from ItemChanged handler *if* we
3506 know that the first item has just been added *and* the items have been
3507 actually added to the ListControl.
3510 2008-05-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3512 * TabControl.cs: Only clicks with the left button should be
3516 2008-05-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3520 * TextBox.cs: Expose an internal method in TextBox to restore the
3521 original context menu, and call it from ComboBox to re-use it in the
3522 combobox containing the file name in FileDialog.cs.
3523 Fixes part of #393775.
3525 2008-05-24 George Giolfan <georgegiolfan@yahoo.com>
3527 * ThemeVisualStyles.cs: Added support for the hot ComboBox drop down button
3530 2008-05-24 George Giolfan <georgegiolfan@yahoo.com>
3532 * ComboBox.cs, Theme.cs, ThemeWin32Classic.cs: Added support for the hot drop
3535 2008-05-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3537 * ComboBox.cs: Minor correction to previous patch: PageDown should
3538 also *try* to move by one item if the computed offset is negative,
3539 just like the PageUp case.
3541 2008-05-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3543 * ComboBox.cs: When navigating using PageDown/PageUp the navigation
3544 should be done for at least 1 item, and not stay at the same item.
3545 Fixes part of #374713.
3547 2008-05-23 Jonathan Pobst <monkey@jpobst.com>
3549 * FileDialog.cs: Add a FSEntryComparer, and use it to sort the
3550 directories. [Fixes bug #393931]
3552 2008-05-22 Andreia Gaita <avidigal@novell.com>
3554 * WebBrowser.cs: Implement DocumentText. Implement AllowNavigation.
3555 Don't fire events until the initial about:blank page has finished
3556 loading. Clean up events.
3558 2008-05-22 Atsushi Enomoto <atsushi@ximian.com>
3560 * XplatUIX11.cs : when we call WM_SETFOCUS, call X11Keyboard
3561 FocusIn() too. This should fix the issue on switching
3564 2008-05-22 Atsushi Enomoto <atsushi@ximian.com>
3566 * X11Keyboard.cs : set XIM font size to somewhat reasonable
3567 number (ideally the input textbox size, but that could be
3570 2008-05-22 Jonathan Pobst <monkey@jpobst.com>
3572 * ToolStripTextBox.cs: List for the TextBox's TextChanged and fire
3573 the ToolStripItem's TextChanged. [Fixes bug #393597]
3575 2008-05-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3577 * TabControl.cs: When invalidating in SelectedIndex and we need to
3578 inflate to take into account the border of the tabs, make sure that
3579 the invalidated rect doesn't overflow the control bounds, since that
3580 would avoid updating at all.
3582 2008-05-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3584 * TabControl.cs: Don't substract scroller width from the row width,
3585 since we need to take into account the total width of the control when
3586 calculating the position of the tabs. This avoids showing scroller
3587 when it is actually not needed.
3588 Fixes part of #322325.
3590 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
3592 * ThemeVisualStyles.cs: Added support for TextBoxBase.
3594 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
3596 * RichTextBox.cs, TextBoxBase.cs, Theme.cs, ThemeWin32Classic.cs: Refactored:
3597 Extracted TextBoxBase.Draw and Theme.TextBoxBase*.
3599 2008-05-21 Jonathan Pobst <monkey@jpobst.com>
3601 * DataGridView.cs: Only paint the top left header cell if there
3604 2008-05-21 Jonathan Pobst <monkey@jpobst.com>
3606 * DataGridView.cs: When binding to a BindingSource, get the underlying
3607 list to bind to. [Fixes bug #345483]
3609 2008-05-21 Jonathan Pobst <monkey@jpobst.com>
3611 * DataGridView.cs: Do not bind to collection properties.
3614 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
3616 * ThemeVisualStyles.cs: Added support for the hot TrackBar thumb style.
3618 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
3620 * Theme.cs, ThemeWin32Classic.cs, TrackBar.cs: Added support for the hot
3623 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
3625 * ThemeVisualStyles.cs: Added support for ToolTip transparent background.
3627 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
3629 * Theme.cs, ThemeWin32Classic.cs, ToolTip.cs: Added support for transparent
3632 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
3634 * ThemeVisualStyles.cs: Added support for ToolBar hot and hot checked styles.
3636 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
3638 * Theme.cs, ThemeWin32Classic.cs, ToolBar.cs: Added support for hot and hot
3641 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
3643 * TabControl.cs: Extended to handle the hot style.
3645 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
3647 * Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs, UpDownBase.cs:
3648 Extended UpDownBase code to handle hot and disabled styles.
3650 2008-05-20 Jonathan Pobst <monkey@jpobst.com>
3652 * DataGridView.cs: Handle databinding to generic list type things.
3655 2008-05-20 Jonathan Pobst <monkey@jpobst.com>
3657 * DataGridViewCellCollection.cs: Add a method to find the cell
3658 with the given DataPropertyName.
3659 * DataGridViewColumn.cs: Track if the column was autogenerated or not.
3660 * DataGridViewColumnCollection.cs: Add a method to clear all
3661 autogenerated columns.
3662 * DataGridView.cs: If AutoGenerateColumns is false, don't autogenerate
3666 2008-05-20 Jonathan Pobst <monkey@jpobst.com>
3668 * DataGridView.cs: Don't try to update the RowTemplate with
3669 a null CellTemplate.
3671 2008-05-20 Jonathan Pobst <monkey@jpobst.com>
3673 * DataGridViewColumn.cs: Allow IsDataBound to be set internally.
3674 * DataGridViewColumnCollection.cs: Ensure OnColumnAdded is called.
3675 * DataGridView.cs: Lots of fixes/enhancements to databinding to
3678 2008-05-20 Jonathan Pobst <monkey@jpobst.com>
3680 * Control.cs: Remove invalidating implicit child controls when
3681 control is invalidated. It was causing too many redraws on
3682 controls with implicit scrollbars.
3683 * ListView.cs: Listen to the Invalidated event and invalidate
3686 2008-05-20 Andreia Gaita <avidigal@novell.com>
3688 * WebBrowserBase.cs, WebBrowser.cs: Hook up page loading events
3689 * HtmlDocument.cs: Check for nulls
3691 2008-05-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3693 * Control.cs: In ControlCollection.RemoveInternal, remove the
3694 internal control before calling PerformLayout and OnControlRemoved,
3695 which was leaving us in an invalid state and causing a X error (bad
3696 match). Observe that Remove () call has the same order.
3697 Fixes an X error changing ComboBoxStyle.DropDownStyle.
3699 2008-05-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3701 * TabControl.cs: Don't paint by ourselved and instead let OnPaint
3702 being fired if ControlStyles.UserPaint style is activated.
3705 2008-05-19 Ivan N. Zlatev <contact@i-nz.net>
3707 * GridEntry.cs: Don't be so strict when setting the value -
3708 do not check if what we set is what we get.
3711 2008-05-19 Ivan N. Zlatev <contact@i-nz.net>
3713 * XplatUIX11.cs: If there are no timers timeout should be 0
3716 2008-05-19 Jonathan Pobst <monkey@jpobst.com>
3718 * Control.cs: As a followup to invalidating implicit children when
3719 a control is invalidated, only invalidate them if they are in the
3722 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
3724 * ThemeVisualStyles.cs: Implemented partial support for ToolTip.
3726 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
3728 * ThemeWin32Classic.cs: Refactored: Extracted ToolTipDrawBackground.
3730 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
3732 * GroupBoxRenderer.cs: Fixed text area clipping in the Visual Styles case.
3733 * XplatUIWin32.cs: Made Win32DeleteObject public.
3735 2008-05-19 Ivan N. Zlatev <contact@i-nz.net>
3737 * GridEntry.cs: Determine HasDefaultValue more strictly by using
3738 PropertyDescriptor.ShouldSerializeValue.
3741 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
3743 * ThemeVisualStyles.cs: Enabled support for ScrollBar element styles not present
3744 in the classic theme.
3746 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
3748 * ScrollBar.cs: Added FirstButtonEntered, SecondButtonEntered, ThumbEntered,
3750 * Theme.cs, ThemeWin32Classic.cs: Added ScrollBarHasHotElementStyles,
3751 ScrollBarHasPressedThumbStyle.
3753 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
3755 * TextRenderer.cs: Included some methods in the 1.1 profile.
3757 2008-05-19 Jonathan Pobst <monkey@jpobst.com>
3759 * Control.cs: When we make a control visible, it may have been
3760 previously visible and while it wasn't visible, the z-order of
3761 things may have been shuffled, so the control needs to have its
3762 z-order updated just in case. [Fixes bug #391518]
3764 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
3766 * ThemeVisualStyles.cs: Added support for GroupBox.
3768 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
3770 * GroupBoxRenderer.cs: Included in the 1.1 profile.
3772 2008-05-16 Atsushi Enomoto <atsushi@ximian.com>
3774 * XplatUIX11.cs, X11Keyboard.cs : redoing r103060 with fix for
3775 bug #389996; XSelectInput() behaved as mouse handler robber,
3776 so remove extra call to it.
3778 2008-05-15 Jonathan Pobst <monkey@jpobst.com>
3780 * Control.cs: Simplify ControlCollection.Contains method.
3782 2008-05-15 Jonathan Pobst <monkey@jpobst.com>
3784 * DataGridViewRow.cs: Implement GetPreferredSize.
3786 2008-05-15 Jonathan Pobst <monkey@jpobst.com>
3788 * DataGridViewComboBoxCell.cs: Don't declare text twice. Fixes build.
3790 2008-05-15 Jonathan Pobst <monkey@jpobst.com>
3792 * DataGridViewComboBoxCell.cs: Implement some NIEX stuffs, better
3793 painting and edit control fixes.
3795 2008-05-14 Jonathan Pobst <monkey@jpobst.com>
3797 * DataGridView.cs, DataGridViewCell.cs: Work around some external
3798 checks to make sure we are in an actual row/col for top left header cell.
3799 * DataGridViewTopLeftHeaderCell.cs: Implement some NIEX's.
3801 2008-05-14 Jonathan Pobst <monkey@jpobst.com>
3803 * Control.cs: Use long instead of int when handling WParam from
3804 mousewheel scrolling. Int was overflowing on Win64.
3806 2008-05-14 Jonathan Pobst <monkey@jpobst.com>
3808 * FlowLayoutPanel.cs, ScrollableControl.cs: We need to layout the
3809 flow panel without scrolling first, and then calculate the
3810 scrolling based on the new layout. [Fixes bug #390149]
3812 2008-05-14 Jonathan Pobst <monkey@jpobst.com>
3814 * ListBox.cs: Invalidate after scrolling up when selected index
3815 changes. [Fixes bug #390151]
3817 2008-05-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3819 * ComboBox.cs: When setting mode to Simple *and* height hasn't been
3820 set, default height to 150. I tried first with DefaultSize, but this
3821 is not generating a SetBoundsCore call before handle creation time, so
3822 we can take it into account. This is just what .net does.
3824 2008-05-13 Jonathan Pobst <monkey@jpobst.com>
3826 * XplatUIX11.cs, X11Keyboard.cs: Had to revert eno's r103060,
3827 as it broke some stuff. Calberto is filing a bug for eno to
3830 2008-05-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3832 * ComboBox.cs: When handling PageDown pressed event, set SelectedIndex
3833 to 0 is the current value is -1, and if style is not Simple, just
3834 return, like .net does.
3835 Fixes part of #374713.
3837 2008-05-13 Jonathan Pobst <monkey@jpobst.com>
3839 * ThemeWin32Classic.cs, ThemeVisualStyles.cs: When calculating
3840 progress bar stuffs, use doubles instead of ints to prevent
3841 overflow. [Fixes bug #389798]
3843 2008-05-13 Atsushi Enomoto <atsushi@ximian.com>
3845 * XplatUIX11.cs, X11Keyboard.cs :
3846 Significant refactoring on XIM support. Now IM engine UI
3847 should show up, at mostly-correct preedit position.
3848 - Eliminated use of FocusWindow, as it is never mapped
3849 and hence blocks correct preedit position. XIC is now
3850 created per window, and it must be destroyed too when
3851 the window is destroyed.
3852 - WM_QUIT messages should not be filtered even when hwnd
3853 is zombie. Filtering it could cause endless loop.
3854 - Preedit position must move only when the window is alive.
3855 - Make it IDisposable and make sure to release XIM/XICs.
3857 2008-05-13 Atsushi Enomoto <atsushi@ximian.com>
3859 * Timer.cs, Control.cs, Form.cs, ApplicationContext.cs,
3860 XplatUIX11.cs, XplatUIWin32.cs :
3861 fix for bug #325033 and #387693;
3862 - WM_QUIT should not be sent when no running application
3864 - SetTimer/KillTimer (especially on win32) should be
3865 invoked for the window that the timer is/will_be attached.
3866 - There could be unattached timers to a window when it's
3867 started. For those timers, hold pending timers and when
3868 a window is mapped, attach them to it.
3869 - WaitForHwndMessage() could run into loop when
3870 WM_SHOWWINDOW is handled before this method is called.
3871 So, strictly check wm_showwindow state.
3872 - Tick handler should not be invoked while one Tick handler
3873 call is still running (introduced Busy state).
3875 2008-05-13 Andreia Gaita <avidigal@novell.com>
3877 * WebBrowserBase.cs: Override Internal alternative methods for
3878 SetBoundsCore and OnResize instead of the protected ones.
3879 * Control.cs: Move SetBoundsCore and OnResize implementations to
3880 SetBoundsCoreInternal and OnResizeInternal, so they can be
3881 overriden internally (WebBrowserBase needs to catch them but can't
3882 override the protected methods without api compat problems)
3884 2008-05-13 Andreia Gaita <avidigal@novell.com>
3886 * WebBrowserBase.cs: Hiding away non-public overrides for api compat
3888 2009-05-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3891 * ListView.cs: Remove debug messages.
3893 2008-05-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3895 * ComboBox.cs: Don't do any calculation for simple mode if the listbox
3896 area is empty. Also calculate scrollbars in Simple mode based in area
3897 height and total number of items, not in MaxDropDownItems.
3898 Fixes part of #371991.
3900 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
3902 * PictureBox.cs: Always invalidate on resize. Fixes an app for jhill.
3904 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
3906 * BindingSource.cs: GetListSortDescription is not public.
3908 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
3910 * WebBrowser.cs, WebBrowserBase.cs, WebBrowserSiteBase.cs: corcompare.
3912 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
3914 * HtmlElement.cs: Fix parameter names to match MS.
3915 * HtmlWindowCollection.cs: Should not be sealed.
3917 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
3919 * ThemeWin32Classic.cs: Always draw the scrollbar area under the thumb
3920 button, because the thumb button will not get drawn if the scrollbar
3921 is disabled. [Fixes bug #389262]
3923 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
3925 * ListBox.cs: Handle End key for multi-column listboxen.
3928 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
3930 * ListBox.cs: Fix algorithm to determine which column our item is in.
3933 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
3935 * ListBox.cs: Invalidate when the listbox is resized.
3938 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
3940 * ListBox.cs: There is always at least one row in the ListBox (if
3941 we are doing these calculations.) [Fixes bug #389253]
3943 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
3945 * ListBox.cs: There is always at least one column in the ListBox.
3948 2008-05-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3950 * ComboBox.cs: When handle is created call UpdateComboBoxBounds to
3951 ensure in Simple mode that the height is exactly the requested one.
3952 Also add the ComboBoxListControl to the controls collection in Simple
3953 mode even if handle hasn't been created.
3954 Fixes part of #371991.
3956 2008-05-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3958 * ComboBox.cs: For ComboListBox control -specially in Simple mode-, give focus to
3959 our ComboBox owner instead of giving it back to the previous control (
3960 as done in other controls). Also remove the empty override of Select
3961 method, since we want to be selected *and* give focus to our owner.
3962 This should let the user do keys-navigation in Simple mode.
3964 2008-05-10 Geoff Norton <gnorton@novell.com>
3966 * XplatUICarbon.cs: Dont use HIViewScrollRect as it's causing painting
3967 problems with rapid scrolling of treeviews. Fixes #381084
3969 2008-05-10 Geoff Norton <gnorton@novell.com>
3971 * XplatUICarbon.cs: Deactivate the active window before
3972 activating the desired window. Completes fixing #386504
3974 2008-05-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3976 * ListView.cs: When calculating scrollbars, set horizontal scroll bar
3977 SmallChange to the item size width plus the padding, to match .net.
3979 2008-05-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3981 * FileDialog.cs: Apply the custom filter typed by the user in the file
3982 name combobox as much as possible while navigating in the file dialog.
3985 2008-05-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3987 * Binding.cs: Actually use NullValue if the retrieved value of
3988 data source is null or DBNull. Makes a test pass.
3990 2008-05-09 Jonathan Pobst <monkey@jpobst.com>
3992 * ErrorProvider.cs, Form.cs: Get icons from ResourceImageLoader.
3993 * MimeIcon.cs: Provide a way to get icons from resources.
3995 2008-05-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3997 * Binding.cs: When the value retrieved from the control to be assigned
3998 to the data source is null, actually use the 2.0 DataSourceNullValue
3999 value. Make pass a data binding test.
4001 2008-05-08 Jonathan Pobst <monkey@jpobst.com>
4003 * Control.cs: We need to invalidate implicit children even when
4004 invalidate is called with invalidatechildren = false. (Implicit
4005 children are really part of the parent.)
4006 * ListView.cs: Double-buffer internal child controls for less
4008 * ThemeWin32Classic.cs: Remove an extra nested loop in drawing
4009 owner ListView subitems for greatly increased performance.
4012 2008-05-08 Carlos Alberto Cortez <calebrto.cortez@gmail.com>
4014 * FileDialog.cs: When the user types a wildcard character in the
4015 filename combobox, update the contents of the folder using the text as
4017 Fixes part of #385261.
4019 2008-05-08 Jonathan Pobst <monkey@jpobst.com>
4021 * ListBox.cs: Various fixes for MultiColumn listboxen.
4024 2008-05-08 Andreia Gaita <avidigal@novell.com>
4026 * HtmlElement.cs: Implement Style property
4028 2008-05-08 Jonathan Pobst <monkey@jpobst.com>
4030 * ListBox.cs: Respect checkboxes when measuring item size.
4031 * ThemeWin32Classis.cs: When drawing list items, don't draw
4032 text outside of the item's bounds to prevent overlapping.
4033 (.Net actually overlaps, but that's just silly.)
4036 2008-05-08 Everaldo Canuto <ecanuto@novell.com>
4038 * NotifyIcon.cs: Call SetForegroundWindow before show context menu. Thanks
4039 Gert Driesen. Fixes bug #324830.
4041 2008-05-07 Everaldo Canuto <ecanuto@novell.com>
4043 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: SetForegroundWindow
4046 2008-05-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4048 * BindingSource.cs: When calling IsSynchronized, return the value of
4049 the related IList list.
4051 2008-05-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4053 * ListBindingHelper.cs: Fix some bits in GetListItemProperties, to
4056 2008-05-07 Jonathan Pobst <monkey@jpobst.com>
4058 * DataGridView.cs: Implement PageUp/PageDown keys. Extend keyboard
4059 navigation to scroll the grid if the current cell is not visible.
4061 2008-05-07 Andreia Gaita <avidigal@novell.com>
4063 * HtmlElement.cs: Implement TabIndex
4065 2008-05-07 Jonathan Pobst <monkey@jpobst.com>
4067 * ListBox.cs: Respect ScrollAlwaysVisible and HorizontalScrollbar
4068 properties, even when there are no items.
4071 2008-05-07 Ivan N. Zlatev <contact@i-nz.net>
4073 * NativeWindow.cs: Add support for multiple handles per window.
4074 * NativeWindows.cs, LibSupport.cs, Control.cs, XplatUIX11GTK.cs,
4075 XplatUIX11.cs, X11Display.cs: Do not access NativeWindow.windows_collection
4076 directly - use FromHandle instead.
4079 2008-05-07 Andreia Gaita <avidigal@novell.com>
4081 * HtmlElement.cs: Implement InnerHTML setter
4083 2008-05-07 Andreia Gaita <avidigal@novell.com>
4085 * HtmlDocument.cs: Implement Focused
4087 2006-05-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4089 * BindingSource.cs: Minor fixes to the the ApplySort and Remove sort
4090 methods, as well as add messages to the exceptions.
4092 2006-05-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4094 * BindingSource.cs: Setting DataSource should only reset DataMember if
4095 the previous value was null (make pass a not working test).
4097 2006-05-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4099 * BindingSource.cs: When EndInit call is postponed and is called until
4100 DataSource.EndInit is called, remove the handler for data source.
4102 2008-05-06 Jonathan Pobst <monkey@jpobst.com>
4104 * ToolStripManager.cs: Don't use IsAlive, race condition, etc. etc.
4106 2008-05-06 Jonathan Pobst <monkey@jpobst.com>
4108 * ToolStripManager.cs: Store references to toolstrips as
4109 weak references so they do not prevent forms from getting collected.
4112 2008-05-06 Jonathan Pobst <monkey@jpobst.com>
4114 * TrackBar.cs: We can't set ResizeRedraw because it isn't set
4115 on .Net. So do the same thing in WndProc.
4117 2008-05-06 Jonathan Pobst <monkey@jpobst.com>
4119 * TrackBar.cs: Commit patch from Andy Hume that corrects
4120 the clickable areas to better match .Net.
4123 2008-05-06 Jonathan Pobst <monkey@jpobst.com>
4125 * TrackBar.cs: Commit patch from Andy Hume that adds the
4126 ResizeRedraw control flag so the track bar repaints itself
4127 when it is resized. [Fixes bug #387072]
4129 2008-05-06 Jonathan Pobst <monkey@jpobst.com>
4131 * TrackBar.cs: Commit patch from Andy Hume that adds better
4132 support for keyboard navigation when the TrackBar is vertical.
4135 2008-05-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4137 * BindingSource.cs: Implement ISupportInitializeNotification support.
4139 2008-05-06 George Giolfan <georgegiolfan@yahoo.com>
4141 * ThemeVisualStyles.cs: Added support for ToolBar.
4143 2008-05-06 George Giolfan <georgegiolfan@yahoo.com>
4145 * ToolBar.cs: Made the Vertical property internal.
4147 2008-05-05 George Giolfan <georgegiolfan@yahoo.com>
4149 * ThemeVisualStyles.cs: Added support for TrackBar.
4151 2008-05-05 George Giolfan <georgegiolfan@yahoo.com>
4153 * ThemeWin32Classic.cs: Refactored: Extracted TrackBarGetThumbSize,
4154 TrackBarDrawVerticalTrack, TrackBarDrawVerticalThumbRight,
4155 TrackBarDrawVerticalThumbLeft, TrackBarDrawVerticalThumb,
4156 TrackBarGetVerticalTickPainter, TrackBarDrawHorizontalTrack,
4157 TrackBarDrawHorizontalThumbBottom, TrackBarDrawHorizontalThumbTop,
4158 TrackBarDrawHorizontalThumb, TrackBarGetHorizontalTickPainter.
4160 2008-05-05 George Giolfan <georgegiolfan@yahoo.com>
4162 * ThemeVisualStyles.cs: Added support for UpDownBase.
4164 2008-05-05 George Giolfan <georgegiolfan@yahoo.com>
4166 * Theme.cs, ThemeWin32Classic.cs, UpDownBase.cs: Refactored:
4167 Extracted Theme.UpDownBaseDrawButton.
4169 2008-05-05 Jonathan Pobst <monkey@jpobst.com>
4171 * ToolStrip.cs, ToolStripDropDownItem.cs: Make sure toolstrips are
4172 removed from the static toolstrips collection in ToolStripManager
4173 when they are disposed. Provides a workaround for bug #386483.
4175 2008-05-05 Ivan N. Zlatev <contact@i-nz.net>
4177 * GridEntry.cs: Read-only properties with Editor with
4178 UITypeEditorEditStyle.Modal shouldn't be read-only in the PropertyGrid.
4181 2008-05-05 Jonathan Pobst <monkey@jpobst.com>
4183 * MenuStrip.cs, ToolStrip.cs: Guard against an NRE when pressing
4184 the menu key and there are no items on the menu.
4187 2008-05-05 Sebastien Pouliot <sebastien@ximian.com>
4189 * Control.cs: Avoid calling ToString on a string.
4190 * Form.cs: Avoid calling ToString on a string. Found using Gendarme.
4191 * GroupBox.cs: In FlatStyle property throw, not just create, the
4192 exception. Avoid calling ToString on a string.
4193 * ProgressBar.cs: Avoid calling ToString on a string.
4194 * ScrollBar.cs: Avoid calling ToString on a string.
4195 [All issues were found using Gendarme]
4197 2008-05-05 Everaldo Canuto <ecanuto@novell.com>
4199 * NotifyIcon.cs: Prevent click events to be trigger after double click
4200 events. Fixes remaining issues of bug #324832.
4202 2008-05-05 Everaldo Canuto <ecanuto@novell.com>
4204 * NotifyIcon.cs: Trigger click and mouseclick events after mouseup event
4205 to mimic win32 behavior. Partially fixes bug #324832.
4207 2008-05-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4209 * BindingSource.cs: Implement Find methods.
4211 2008-05-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4213 * BindingSource.cs: Implement Sort, ApplySort overloads, and
4216 2008-05-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4218 * ListBindingHelper.cs: When calling GetListItemProperties and the
4219 passed object is ITypedList, return the result of
4220 ITypedList.GetItemProperties instead.
4222 2008-05-04 Everaldo Canuto <ecanuto@novell.com>
4224 * LinkLabel.cs: Set default value of name on constructor of Link class
4225 only for 2.0 profile.
4227 2008-05-04 Everaldo Canuto <ecanuto@novell.com>
4229 * LinkLabel.cs: Fix implementation of LinkCollection.LinksAdded property.
4230 Fixes remaining issues of bug #346154.
4232 2008-05-04 Everaldo Canuto <ecanuto@novell.com>
4234 * LinkLabel.cs: Set a default value for name on internal contructor of
4235 Link class. It fixes assert B5 of LinkCollectionTest.Constructor1.
4237 2008-05-04 Everaldo Canuto <ecanuto@novell.com>
4239 * LinkLabel.cs: Move links collection from LinkCollection to LinkLabel
4240 and refer all instances to owner.links. Partially fixes #346154.
4242 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
4244 * LinkLabel.cs: Fix linkarea values for empty text, must have start and
4245 length equal zero. Also called CreateLinkPieces in constructor. It fixes
4246 the LinkLabel test 'TestLinkArea'.
4248 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
4250 * Form.cs: Remove menu before close form to prevent form to be not gaced.
4253 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
4255 * MenuAPI.cs: Dispose popup window after hide. Thanks to Jesse Jones.
4258 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
4260 * MenuAPI.cs: Implemented keyboard navigation for ContextMenu.
4263 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
4265 * MenuAPI.cs: Remove unused ProcessCmdKey method.
4267 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
4269 * MenuAPI.cs: Prevent NRE in menu deactivation when shortcut is used.
4272 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
4274 * MenuAPI.cs: Enable implicit mnemonics for menus. Fixes remaining issues
4277 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
4279 * MenuAPI.cs: Check if mouse down comes from menu, we need it because
4280 sometimes we open a conext menu on mouse down of some controls and the mouse
4281 up is dispatched to menu and dont need to. It fix remaining issues of
4282 #363711 and other problems related to menu mouse click events.
4284 2008-05-02 Everaldo Canuto <ecanuto@novell.com>
4286 * MonthCalendar.cs: Implemented "Go to today" context menu, also changed
4287 some var names to better fit changes, now we have month_menu and today_menu
4288 vars. Fixes bug #363711.
4290 2008-05-02 Everaldo Canuto <ecanuto@novell.com>
4292 * MonthCalendar.cs: Handle every right mouse click to open context menu,
4293 right now the default month menu but it will be change to have "Go to today"
4296 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
4298 * FileDialog.cs, MaskedTextBox.cs, OpenFileDialog.cs: corcompare.
4300 2008-05-02 Everaldo Canuto <ecanuto@novell.com>
4302 * ThemeWin32Classic.cs: Fix MonthCalendar arrows drawing.
4304 2008-05-02 George Giolfan <georgegiolfan@yahoo.com>
4306 * ThemeVisualStyles.cs: Added support for TreeView.
4308 2008-05-02 George Giolfan <georgegiolfan@yahoo.com>
4310 * Theme.cs, ThemeWin32Classic.cs, TreeView.cs: Refactored:
4311 Moved TreeView.DrawNodePlusMinus to Theme.TreeViewDrawNodePlusMinus.
4313 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
4315 * OpenFileDialog.cs: Implement 2.0 SP1 stuffs.
4317 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
4319 * FileDialogCustomPlace.cs, FileDialogCustomPlacesCollection.cs:
4320 Implement 2.0 SP1 stuffs.
4322 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
4324 * FileDialog.cs: Implement 2.0 SP1 stuffs.
4326 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
4328 * Control.cs, ContainerControl.cs, DataGridView.cs, TextBoxBase.cs:
4329 Implement CanEnableIme property. (2.0 SP1)
4331 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
4333 * BindingManagerBase.cs, PropertyManager.cs: Hide GetItemProperties
4336 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
4338 * Control.cs: Provide an internal way for a control to override
4339 the setting of Height.
4340 * DateTimePicker.cs: Remove SetBoundsCore from 2.0 profile,
4341 set height using new method.
4343 2008-05-02 George Giolfan <georgegiolfan@yahoo.com>
4345 * ThemeVisualStyles.cs: Added support for ControlPaint.DrawMixedCheckBox.
4347 2008-05-02 George Giolfan <georgegiolfan@yahoo.com>
4349 * ControlPaint.cs, Theme.cs, ThemeWin32Classic.cs: Refactored:
4350 ControlPaint.DrawMixedCheckBox now calls Theme.CPDrawMixedCheckBox.
4352 2008-05-02 George Giolfan <georgegiolfan@yahoo.com>
4354 * ThemeVisualStyles.cs: Added support for StatusBar.
4356 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
4358 * DataObject.cs: Add the other IDataObject interface.
4360 2008-05-02 George Giolfan <georgegiolfan@yahoo.com>
4362 * ThemeWin32Classic.cs: Refactored: extracted DrawStatusBarBackground,
4363 DrawStatusBarSizingGrip, DrawStatusBarPanelBackground.
4365 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
4367 * DataGridViewCheckBoxCell.cs, DataGridViewImageCell.cs: Fix parameter names.
4368 * ListView.cs: Hide non-public API.
4369 * MaskedTextBox.cs: Remove extra attribute.
4371 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
4373 * DataGridViewImageCell.cs: Use formatted value instead of value
4374 to calculate preferred size.
4376 2008-05-01 Jonathan Pobst <monkey@jpobst.com>
4378 * ListBox.cs: Move some initialization around so that selected_indices
4379 is not accessed before it is created.
4381 2008-05-01 Jonathan Pobst <monkey@jpobst.com>
4383 * InputLanguageCollection.cs: Implement the collection better.
4386 2008-05-01 Jonathan Pobst <monkey@jpobst.com>
4388 * ToolStripDropDownItem.cs: Get the correct event object for
4389 DropDownItemClicked.
4390 * ToolStripMenuItem.cs: Raise DropDownItemClicked on our owner.
4393 2008-05-01 Jonathan Pobst <monkey@jpobst.com>
4395 * DataGridViewRowCollection.cs: We don't currently support shared
4396 rows. Should fix test failures caused by previous commit.
4398 2008-04-30 Jonathan Pobst <monkey@jpobst.com>
4400 * DataGridViewRow.cs: Fixes for cloning the row, ensure header cell's
4401 datagridview gets set. Only paint cells in visible columns.
4402 * DataGridViewCell.cs: Draw border after cell content.
4403 * DataGridView.cs: Invalidate after setting some properties. Only
4404 use visible columns. Fit hit test bug with areas in the col/row header
4405 area but not in a row or col. Implement UpdateCell/Row methods.
4407 2008-04-30 Jonathan Pobst <monkey@jpobst.com>
4409 * DataGridViewElement.cs: Don't throw NIEX.
4410 * DataGridViewColumnHeaderCell.cs: Draw error icons for top left header cells.
4411 * DataGridViewColumnDesignTimeVisibleAttribute.cs: Don't throw NIEX.
4412 * DataGridViewCheckBoxColumn.cs: Implement ToString.
4413 * DataGridViewCheckBoxCell.cs: Allow DBNull as a value.
4414 * DataGridViewCell.cs: Don't raise CellFormatting for RowHeader cells,
4415 if the user filled in the formatting Value, use it.
4417 2008-04-30 Jonathan Pobst <monkey@jpobst.com>
4419 * DataGridViewTextBoxCell.cs: Fix for objects that cannot be cast
4422 2008-04-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4424 * BindingSource.cs: Some corrections to Filter property, as well as
4425 setting it for our list when resetting it.
4427 2008-04-29 Jonathan Pobst <monkey@jpobst.com>
4429 * ScrollBar.cs: Don't let dragging the thumb grip set the value greater
4430 than the maximum. Fixes reopened bug #384182.
4432 2008-04-28 Everaldo Canuto <ecanuto@novell.com>
4434 * ToolStripDropDown.cs: Fix offscreen position for DropDown itens.
4435 Fixes remaining issues of #367490.
4437 2008-04-28 Everaldo Canuto <ecanuto@novell.com>
4439 * ToolStripDropDown.cs: Screen.Bound dont return right value then use
4440 SystemInformation.WorkingArea to get max_screen value.
4442 2008-04-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4444 * BindingSource.cs: Implement Filter and RemoveFilter.
4446 2008-04-28 Everaldo Canuto <ecanuto@novell.com>
4448 * MenuAPI.cs: Prevent sub-menu positon to be less than zero.
4450 2008-04-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4452 * X11Dnd.cs: When trying to convert data and we know we started the
4453 dnd loop, don't try to use the cached data if the loop is not running,
4454 which means that the data has been resetted.
4457 2008-04-28 Everaldo Canuto <ecanuto@novell.com>
4459 * MenuAPI.cs: Force first menu subitem to show from left to right to mimic
4462 2008-04-28 Everaldo Canuto <ecanuto@novell.com>
4464 * MenuAPI.cs: Check the screen limits before show sub-menus and prevent
4465 it to drawn off screen edge. Fixes bug #367490.
4467 2008-04-28 Everaldo Canuto <ecanuto@novell.com>
4469 * MenuAPI.cs: In PopupWindow.RefreshItems uses a temp point var to store
4470 menu position to have only one assignment of Location var.
4472 2008-04-28 Everaldo Canuto <ecanuto@novell.com>
4474 * MenuAPI.cs: Implement the right key for sub-menus. Thanks Ernesto Carrea
4475 for this patch. Fixes bug #384115.
4477 2008-04-28 Jonathan Pobst <monkey@jpobst.com>
4479 * ScrollBar.cs: If SmallChange is larger than LargeChange, make them
4480 the same. If LargeChange is zero, set a minimum size for the scroll
4481 thumb grip. [Fixes bug #384182]
4483 2008-04-28 Jonathan Pobst <monkey@jpobst.com>
4485 * TextBoxTextRenderer.cs: Don't turn &A into a prefix for textboxen.
4488 2008-04-28 Jonathan Pobst <monkey@jpobst.com>
4490 * ListBox.cs: Math.Min should be Math.Max. [Fixes bug #384183]
4492 2008-04-28 George Giolfan <georgegiolfan@yahoo.com>
4494 * ThemeVisualStyles.cs: Added partial support for ScrollBar (based on the
4495 patch from Ernesto).
4497 2008-04-28 George Giolfan <georgegiolfan@yahoo.com>
4499 * ThemeVisualStyles.cs: Added support for ControlPaint.DrawComboButton.
4501 2008-04-28 George Giolfan <georgegiolfan@yahoo.com>
4503 * ThemeVisualStyles.cs: Added support for ControlPaint.DrawButton.
4505 2008-04-28 George Giolfan <georgegiolfan@yahoo.com>
4507 * ThemeVisualStyles.cs: Added support for ControlPaint.DrawRadioButton.
4509 2008-04-28 George Giolfan <georgegiolfan@yahoo.com>
4511 * ThemeVisualStyles.cs: Added support for ControlPaint.DrawScrollButton.
4513 2008-04-27 George Giolfan <georgegiolfan@yahoo.com>
4515 * ThemeVisualStyles.cs: Added support for ButtonBase.UseVisualStyleBackColor.
4517 2008-04-27 Andreia Gaita <avidigal@novell.com>
4519 * HtmlWindow.cs, HtmlHistory.cs: Throw on DomHistory getter (it's
4520 supposed to return a reference to an mshtml interface, which we
4522 * HtmlElement.cs: Throw on DomElement getter (it's supposed to return a
4523 reference to an mshtml interface, which we don't support). Code
4525 * HtmlDocument.cs: Add DefaultEncoding getter implementation. Throw on
4526 DomDocument getter (it's supposed to return a reference to an
4527 mshtml interface, which we don't support). Code formatting cleanup.
4529 2008-04-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4531 * ListView.cs: Ouch, forgot to commit.
4533 2008-04-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4536 * ThemeWin32Classic.cs: Fire the -until now- forgotten CacheVirtualItems event.
4538 2008-04-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4540 * ListView.cs: When calculating box selection for virtual mode, don't
4541 look for intersection with item's text, but item bounds, since that
4542 would mean read ListViewItem's text for _every_ item, and that's
4543 something we just can't do in virtual mode (items are only requested
4546 2008-04-26 George Giolfan <georgegiolfan@yahoo.com>
4548 * ThemeVisualStyles.cs: Added support for ControlPaint.DrawCaptionButton and
4549 partial support for managed windows (based on the patch from Ernesto).
4551 2008-04-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4553 * ListView.cs: When doing a key search use FindItemWithText method
4554 instead of doing the search by ourselves, this way we avoid
4555 duplicating the code and also we handle the special case for virtual
4556 mode. To achieve that make our private overload of FindItemWithText
4557 internal and also have a 'roundtrip' parameter.
4559 2008-04-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4561 * ListView.cs: When doing the layout don't request the
4562 ListViewItem instance if we are in virtual mode (since we can't request it
4563 until the item is actully drawn).
4565 2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
4567 * ThemeVisualStyles.cs: Added support for ProgressBar (based on the patch
4570 2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
4572 * ThemeVisualStyles.cs: Added support for ControlPaint.DrawCheckBox (based on
4573 the patch from Ernesto).
4575 2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
4577 * ThemeEngine.cs: Added code to select ThemeVisualStyles.
4578 * ThemeVisualStyles.cs: Added.
4580 2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
4582 * IDeviceContext.cs: Added a missing using.
4584 2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
4586 * ButtonBase.cs: Made IsDefault protected internal.
4587 * ButtonRenderer.cs: Made GetPushButtonRenderer(PushButtonState) internal.
4589 2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
4591 * Application.cs: Included VisualStyles-related members in the 1.1 profile.
4592 * ButtonRenderer.cs, CheckBoxRenderer.cs, Padding.cs, PaddingConverter.cs,
4593 RadioButtonRenderer.cs: Included in the 1.1 profile.
4594 * IDeviceContext.cs: Added.
4595 * TextRenderer.cs: Included a member in the 1.1 profile.
4597 2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
4599 * ThemeWin32Classic.cs: Added ShouldPaintFocusRectangle(ButtonBase).
4601 2008-04-24 Jonathan Pobst <monkey@jpobst.com>
4603 * ErrorProvider.cs: Make the error icons come after the control
4604 they refer to. It isn't the way the MS does it, but its better
4605 than what we were doing. See bug #368587.
4607 2008-04-24 Jonathan Pobst <monkey@jpobst.com>
4609 * InputLanguage.cs, InputLanguageCollection.cs: Apply patch
4610 from Eric Albright that lazy loads the input language as ensures
4611 everything gets properly initialized. Fixes bug #373871.
4613 2008-04-24 Jonathan Pobst <monkey@jpobst.com>
4615 * ToolStrip.cs: Don't use ToolStripControlHosts when figuring up
4616 implicit mnemonics. [Fixes bug #383000]
4618 2008-04-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4620 * X11Dnd.cs: When canceling the operation, automatically restore the
4621 default cursor - normally the default cursor is restored when the
4622 mouse buttons are released, but we should be able to restore it even
4623 if the buttons are still pressed (for example, when pressing ESC to
4627 2008-04-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4629 * X11Dnd.cs: When starting a new drad and drop operation, set control
4630 field to null, just as the other fields, to avoid calling any
4631 operation on a previous control. Also, when calling DndLeave on a
4632 control, set it to null, thus we don't fire that event multiple times
4636 2008-04-23 Geoff Norton <gnorton@novell.com>
4638 * XplatUICarbon.cs: Ensure that we have a valid hwnd before accessing
4639 the whole_window object. Fixes #377084.
4641 2008-04-23 Andreia Gaita <avidigal@novell.com>
4643 * HtmlElement.cs: Implement RaiseEvent (event injection into the
4646 2008-04-23 Jonathan Pobst <monkey@jpobst.com>
4648 * DataGridViewColumnHeaderCell.cs: Implement some NIEX stuffs.
4650 2008-04-23 Andreia Gaita <avidigal@novell.com>
4652 * HtmlElement.cs, HtmlDocument.cs: Implement javscript method
4655 2008-04-23 Andreia Gaita <avidigal@novell.com>
4657 * HtmlElement.cs, HtmlDocument.cs: Implement custom event handler
4660 2008-04-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4662 * X11Dnd.cs: When the drop was cancelled, or could just not be
4663 performed, return DragDropEffect.None always (match .net).
4665 2008-04-22 Jonathan Pobst <monkey@jpobst.com>
4667 * DataGridViewRowHeaderCell.cs: Fill in some NIEX stuff.
4669 2008-04-22 Jonathan Pobst <monkey@jpobst.com>
4671 * DataGridViewRowCollection.cs: Revert something I didn't mean to commit.
4673 2008-04-22 Jonathan Pobst <monkey@jpobst.com>
4675 * DataGridView.cs: Add support for error icon tool tips.
4676 * DataGridViewCell.cs: ErrorIconBounds needs to call GetErrorIconBounds.
4677 * DataGridViewRowHeaderCell.cs: Need internal way to get ErrorIconBounds.
4679 2008-04-22 Ivan N. Zlatev <contact@i-nz.net>
4681 * X11Structs.cs: Add mouse button masks enum.
4682 * XplatUIX11.cs, Hwnd.cs: Send WM_ENTERSIZEMOVE and
4683 WM_EXITSIZEMOVE only once at the beginning and at the end of the
4684 form resize/move operation instead of for each step of it.
4685 [Fixes bug #346529 for the x11 backend]
4687 2008-04-21 Jonathan Pobst <monkey@jpobst.com>
4689 * DataGridView*: Implement support for drawing error icons.
4691 2008-04-21 Jonathan Pobst <monkey@jpobst.com>
4693 * TreeView.cs: Make vbar and hbar internal.
4694 * TreeNode.cs: If collapsing the node removes one of the TreeView's
4695 scrollbars, invalidate the whole thing.
4698 2008-04-21 Jonathan Pobst <monkey@jpobst.com>
4700 * TreeView.cs: Calling Sort() sets Sorted = true.
4701 * TreeNodeCollection.cs: Try to find the owner TreeView to determine
4702 if the nodes need to be sorted.
4705 2008-04-21 Ivan N. Zlatev <contact@i-nz.net>
4707 * Form.cs: Fire SizeChanged for both when the form is minimized and
4709 * XplatUIX11.cs: Instead of tracking minimization on UnmapNotify track it
4710 on PropertyNotify of _NET_WM_STATE. Much much cleaner.
4712 2008-04-21 Jonathan Pobst <monkey@jpobst.com>
4714 * ComboBox.cs: If the combobox is disabled, draw a disabled
4715 background before painting anything else.
4718 2008-04-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4720 * X11Dnd.cs: Wehn the drag and drop operation is cancelled don't
4721 forget to send a Leave event to the target window - just as .net does
4722 when cancelling dnd operations.
4724 2008-04-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4726 * X11Dnd.cs: Stop tracking messages as part of the dnd operation as
4727 soon as possible - this happens when we send the drop message to the
4728 target window. This way we avoid firing any DragOver _after_ drop finished.
4731 2008-04-20 Ivan N. Zlatev <contact@i-nz.net>
4733 * XplatUIX11.cs: Send WM_WINDOWPOSCHANGED when a toplevel is minimized.
4734 * Form.cs: Handle form minimization as a special state, where size doesn't
4735 change, but we have to fire SizeChanged.
4736 [Fixes bug #325122 for the win32 and x11 backends]
4738 2008-04-20 Ivan N. Zlatev <contact@i-nz.net>
4740 * XplatUIX11.cs: Win32 doesn't send WM_(KILL|SET)FOCUS
4741 if the handle is disabled.
4744 2008-04-20 Ivan N. Zlatev <contact@i-nz.net>
4746 * XplatUIX11.cs: Enable Maximize/Minimize/Close ability (not decorations)
4747 for forms with FormBorderStyle.None.
4750 2008-04-20 Ivan N. Zlatev <contact@i-nz.net>
4752 * XplatUIX11.cs: Implement support for WM_ENTERSIZEMOVE and
4754 [Fixes bug #346529 for the X11 backend]
4756 2008-04-19 Ivan N. Zlatev <contact@i-nz.net>
4759 - Send a mouse Enter message after say dragging the mouse with a
4760 button down and then release it in another client.
4761 - Reset the cursor to prevent X11 from remembering it and setting it
4762 before the control gets WM_SETCURSOR.
4763 - Qeueue a mouse move after a mouse enter like win32.
4766 2008-04-19 Ivan N. Zlatev <contact@i-nz.net>
4768 * XplatUIX11.cs: Implement limited support for WM_SYSCOMMAND.
4769 It's sent when the form gets moved, resized, closed.
4770 * XplatUIStructs.cs: Add SystemCommands enum for WM_SYSCOMMAND.
4771 [Fixes bug #359193 for X11]
4773 2008-04-19 Ivan N. Zlatev <contact@i-nz.net>
4775 * Form.cs: Add a ValidateChildren for the 1.1 profile. Fixes
4778 2008-04-19 Ivan N. Zlatev <contact@i-nz.net>
4780 * ListView.cs: Move CalculateDetailsGroupItemsCount to the NET_2_0
4781 group. Fixes the 1.1 build.
4783 2008-04-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4785 * ListView.cs: Use display indexes for selection in Details view, as
4786 well as do the proper layout based on display indexes for that view
4789 2008-04-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4791 * ListView.cs: Focused item information is now stored as a display
4792 index, and display indexes are used all over the place for selection,
4793 instead of ListViewItem.Index values, which doesn't give us enough
4794 information to modify the selection in groups mode, and was broken.
4796 2008-04-18 Ivan N. Zlatev <contact@i-nz.net>
4798 * Control.cs: Do not fire MouseDown if validation of the control has
4800 * Form.cs: Validate the form before closing.
4801 [Fixes bugs #330501 and #353310]
4803 2008-04-18 Andreia Gaita <avidigal@novell.com>
4805 * WebBrowserBase.cs: Added WndProc, DrawToBitmap,
4806 CreateWebBrowserSiteBase implementations
4807 * HtmlElement.cs: Add missing OuterHTML, OuterText setters, stubbed
4808 Style and TabIndex setters
4810 2008-04-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4812 * ListViewGroup.cs: When returning the actual item count, return the
4813 proper count for default group.
4816 2008-04-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4819 * ListViewGroup.cs: When calculating groups layout, get the actual
4820 number of items per group, since groups added to the group BUT not
4821 added to the ListView are just ignored, and can cause some nasty
4822 exceptions because of the lack of synchronization. Also for
4823 ListViewGroup don't use lazy initialization for items, since we
4824 the common scenario is to use it always - and it helps us to refactor
4825 and clean the .ctor overloads.
4827 2008-04-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4829 * ListView.cs: When adding an item to a ListViewItemCollection
4830 belonging to a group (ListViewGroup.Items), don't generate a redraw if
4831 the added item hasn't beeen previously added to the ListView instance
4832 refered by the group, since it will be ignored. This should avoid some
4833 really nasty flickering.
4835 2008-04-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4837 * ListView.cs: When accessing an item in a specific display
4838 position, use the helper method GetItemAtDisplayIndex, instead of
4839 direct access to the reordered_items_indices array. When doing layout
4840 for groups set the correct Items index for the display position (since
4841 in groups mode items don't have the same position as in Items
4843 * ListViewGroup.cs: Add a field to store the starting item number,
4844 which is later used when calculating the layout.
4848 2008-04-17 Gert Driesen <drieseng@users.sourceforge.net>
4850 * Application.cs: Fixed ProductVersion to fallback to the assembly
4851 version. Fixes regression for bug #325413.
4853 2008-04-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4855 * ListView.cs: New helper method to retrieve an item in a _specific
4856 display_ position (the items can be displayed in a different order
4857 than one of Items collection).
4858 * ThemeWin32Classic.cs: When drawing, instead of iterating over Items
4859 collection, use ListView.GetItemAtDisplayIndex, to get an item in a
4860 specific display position (again remember that items can be sorted
4861 different than Items).
4863 2008-04-16 Jonathan Pobst <monkey@jpobst.com>
4865 * DataGridViewColumnCollection.cs: Create a cached copy of our sorted
4866 list and update it when the collection changes. We were recreating
4867 this several times per row paint and for every pixel the mouse moved
4869 * DataGridViewColumn.cs: Regenerate cached sorted list when DisplayIndex
4872 2008-04-16 Jonathan Pobst <monkey@jpobst.com>
4874 * DataGridViewColumnCollection.cs: Convert our internal sorted columns
4875 list to use generics.
4876 * DataGridView.cs, DataGridViewRow.cs: Use generic sorted column list
4877 and remove unneccessay casts.
4879 2008-04-16 Jonathan Pobst <monkey@jpobst.com>
4881 * DataGridViewBand.cs: Add internal way to set displayed variable.
4882 * DataGridViewRow.cs: Don't paint cells in non-displayed columns.
4883 * DataGridView.cs: Make sure we always keep track of Displayed
4884 rows and columns, and only draw things that are displayed.
4886 2008-04-16 Atsushi Enomoto <atsushi@ximian.com>
4888 * X11Keyboard.cs, XplatUIX11.cs : manage key state regardless of
4889 whether the key events are filtered or not. Introduced
4890 PreFilter() process for this purpose. This fixes atokx3/iiimx
4893 2008-04-16 Andreia Gaita <avidigal@novell.com>
4895 * HtmlHistory.cs: Implement Length property
4897 2008-04-15 Jonathan Pobst <monkey@jpobst.com>
4899 * DataGridView.cs: Call EndEdit when a sort is performed so we take
4900 away the edit textbox. Refactor to reuse column sort code.
4902 2008-04-12 Everaldo Canuto <ecanuto@novell.com>
4904 * MenuAPI.cs: Remove the code that save and restore capture status of
4905 grab_control, this fixes some Menu and Context menu bugs but maybe it can
4906 cause some others, I cant figure the possible problems of this patch but
4907 right now remove the code looks to be better than keep it. This patch fixes
4908 bugs #357638, #378721 and #379570.
4910 2008-04-12 Andreia Gaita <avidigal@novell.com>
4912 * HtmlDocument.cs, HtmlElement.cs, HtmlHistory.cs, WebBrowser.cs:
4913 Implement OuterHtml, OuterText, Enabled, Scroll*, *Rectangle properties,
4914 add missing properties and event handlers.
4916 2008-04-14 Jonathan Pobst <monkey@jpobst.com>
4918 * ListBox.cs: Make sure the LargeChange we are setting is at least
4919 zero, to prevent an IOORE. [Fixes bug #379531]
4921 2008-04-13 Andy Hume <andyhume32@yahoo.co.uk>
4923 * ComboBox.cs: Support item navigation by entering text. Firstly,
4924 in DropDownList mode, for each key-press select the next item
4925 starting with that letter.
4926 For other modes, when no item selected, on arrow-up/-down and open
4927 drop-down select the first item matching the text in the textbox.
4929 2008-04-14 Atsushi Enomoto <atsushi@ximian.com>
4931 * X11Keyboard.cs : Control.FromHandle() could return null
4932 in MoveCurrentCaretPos().
4934 2008-04-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4936 * ListView.cs: When changing the size in VirtualMode, also Reset the
4938 * ListViewItem.cs: Don't call SelectedIndexCollection.Reset when
4939 changing selection info for VirtualMode.
4942 2008-04-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4944 * ThemeWin32Classic.cs: When drawing ListViewItem instancesin Details
4945 view, don't use LineLimit for the first item - use NoWrap *always*
4946 instead, since ListView.LabelWrap is not used for this view.
4949 2008-04-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4951 * Binding.cs: Call UpdateIsBinding when setting control - probably
4952 Binding is already usable and we don't need to wait to check the
4953 IsBinding state. Also for 1.1 profile use IsHandleCreated instead of
4954 Created, just like 2.0 does.
4955 * CurrencyManager.cs: I'm so lame - the previous check was wrong.
4957 2008-04-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4959 * Binding.cs: Just realized we don't need to have a handler for
4960 BindingContextChanged, since this info should be now consumed directly
4961 in the BindingManagerBase. And also, the manager.IsBindingSuspended
4962 state info is checked directly, instead of caching it.
4964 * CurrencyManager.cs: IsSuspended should return always false if Count
4967 2008-04-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4969 * Binding.cs: When calling PushData, return if manager.Count == 0,
4970 since we just don't have data to be read. Also, when setting the
4971 Control for binding, hook up some events to refresh the IsBinding
4972 state when BindingContext change or control gets created; use
4973 Control.IsHandleCreated instead of Control.Created check to set
4974 IsBinding state - we *actually* need to modify IsBinding when control
4975 is created, but we don't have any Created event, only HandleCreated.
4976 Fixes part of #349364.
4978 2008-04-11 Geoff Norton <gnorton@novell.com>
4980 * XplatUICarbon.cs: Expose Caret to the Carbon layer. Guard against
4981 warping a null Caret.
4983 2008-04-11 Jonathan Pobst <monkey@jpobst.com>
4985 * DataGridView.cs: Implement row/column autosizing methods. Implement
4987 * DataGridViewColumnHeaderCell.cs: Add painting of the sort glyph.
4988 * DataGridViewRowCollection.cs: Add an internal sorting method.
4990 2008-04-11 Jonathan Pobst <monkey@jpobst.com>
4992 * ThemeWin32Classic.cs: Apply patch from Ernesto to cache an expensive
4993 value in ListView drawing code.
4995 2008-04-11 Jonathan Pobst <monkey@jpobst.com>
4997 * FileDialog.cs: Only call FileOk when Ok is clicked, not when Cancel
4998 is clicked. Respect the user setting Cancel in FileOk.
5000 2008-04-11 Geoff Norton <gnorton@novell.com>
5002 * ListView.cs: Avoid setting and resetting control Width/Heights and
5003 calculate the final value and set it once. Prevents a feedback loop
5006 2008-04-10 Jonathan Pobst <monkey@jpobst.com>
5008 * TreeView.cs: Clamp setting the scrollbar value using SafeValueSet.
5011 2008-04-10 Atsushi Enomoto <atsushi@ximian.com>
5013 * X11Keyboard.cs, X11Structs.cs : make over-the-spot mode default.
5014 Add some on-the-spot code, but it seems we don't need it.
5016 2008-04-10 Jonathan Pobst <monkey@jpobst.com>
5018 * Form.cs: Add method for DataGridView to trigger focus cues
5019 even when it handles the tab keypress.
5021 2008-04-10 Jonathan Pobst <monkey@jpobst.com>
5023 * DataGridView.cs: More keyboard handling, tab, esc.
5024 * DataGridViewTextBoxEditingControl.cs: Don't request arrow keys
5025 when at the beginning or end of the text in the text box.
5027 2008-04-09 Jonathan Pobst <monkey@jpobst.com>
5029 * DataGridViewCell.cs: Guard against an NRE causing a test to fail.
5031 2008-04-09 Jonathan Pobst <monkey@jpobst.com>
5033 * DataGridView.cs: Some fixups for showing and adding the edit control.
5034 * DataGridViewButtonColumn.cs: Implement ToString.
5035 * DataGridViewCell.cs: Size and position the control simultaneously.
5036 * DataGridViewTextBoxCell.cs: Use base to position control.
5038 2008-04-09 Jonathan Pobst <monkey@jpobst.com>
5040 * DataGridViewCell.cs: Fix up some formatting and painting code.
5041 * DataGridViewImageCell.cs: Implement some NIEX methods.
5043 2008-04-09 Jonathan Pobst <monkey@jpobst.com>
5045 * ToolStripItemCollection.cs: What moving an item from one owner
5046 to another, remove from source owner before adding to destination.
5049 2008-04-09 Jonathan Pobst <monkey@jpobst.com>
5051 * PictureBox.cs: Call Load when ImageLocation is set.
5054 2008-04-09 Atsushi Enomoto <atsushi@ximian.com>
5056 * X11Keyboard.cs, XplatUIX11.cs :
5057 Implement over-the-spot mode (with some odd offsets).
5058 - set preedit position when caret is set.
5059 - Wrap XMoveResizeWindow() to move preedit position.
5061 2008-04-08 Everaldo Canuto <ecanuto@novell.com>
5063 * X11keyboard.cs: Fix last patch, maxval must be less not greater than
5066 2008-04-08 Everaldo Canuto <ecanuto@novell.com>
5068 * KeyboardLayouts.cs: Uses GENERATING_RESOURCES to make VKeyTableIndex
5069 and ScanTableIndex public, it fix compilations errors when compiling
5070 WinForms to generate keyboard layout resources.
5072 2008-04-08 Everaldo Canuto <ecanuto@novell.com>
5074 * X11keyboard.cs: Prevent keyboard errors when vitual table theres
5075 different element count than scan table. It prevents some errors in non
5078 2008-04-08 Jonathan Pobst <monkey@jpobst.com>
5080 * DataGridViewHeaderCell.cs: Implement some NIEX methods.
5082 2008-04-08 Jonathan Pobst <monkey@jpobst.com>
5084 * DataGridView.cs: Call OnContentClick.
5085 * DataGridViewCell.cs: Do a null check on ValueType instead
5087 * DataGridViewCheckBoxCell.cs: Implement.
5089 2008-04-08 Atsushi Enomoto <atsushi@ximian.com>
5091 * X11Keyboard.cs : Do not cast IntPtr to int. Use long.
5093 2008-04-08 Atsushi Enomoto <atsushi@ximian.com>
5095 * X11Keyboard.cs : Check XGetIMValues() return value in
5096 case it does not return input styles in some environment.
5098 2008-04-08 Atsushi Enomoto <atsushi@ximian.com>
5100 * X11Keyboard.cs : sizeof(IntPtr) != 4 on amd64.
5102 2008-04-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5104 * BindingContext.cs: Stub UpdateBinding method.
5106 2008-04-07 Atsushi Enomoto <atsushi@ximian.com>
5108 * X11Structs.cs : added couple of structs for XIM support.
5110 Release XIM in case it failed to create XIC.
5111 Use consts for XNblah string.
5112 Add support for IM style customization and XIC creation
5113 for preedit-position and preedit-callback.
5114 Right now use MONO_WINFORMS_XIM_STYLE environment variable
5115 (list of: over-the-spot | on-the-spot | root). Only root
5118 (redoing r99172 with fix.)
5120 2008-04-07 Jonathan Pobst <monkey@jpobst.com>
5122 * TreeView.cs: Center the checkbox a little better.
5124 2008-04-07 Jonathan Pobst <monkey@jpobst.com>
5126 * ThemeClearlooks.cs, ThemeGtk.cs, ThemeNice.cs, ThemeWin32Classic.cs:
5127 Apply very nice patch from Ernesto Carrea that simplifies our
5128 scrollbar drawing. [From bug #376146]
5130 2008-04-07 Jonathan Pobst <monkey@jpobst.com>
5132 * TreeView.cs: Correct the location of the root node checkbox when
5133 ShowRootLines = false. Don't draw the root lines for the root node
5134 when ShowRootLines = false. [Fixes bug #377535]
5136 2008-04-06 Gert Driesen <drieseng@users.sourceforge.net>
5138 * WebBrowserBase.cs: Added missing attributes and fixed attributes.
5140 * WebBrowser.cs: Added missing attributes and fixed attributes. Fixed
5142 * MaskedTextBox.cs: Added missing attribute. Code formatting.
5143 * PageSetupDialog.cs: Added missing attribute. Code formatting.
5144 * HtmlWindowCollection.cs: Code formatting. Fixed line endings.
5145 * ImeMode.cs: Added missing field.
5146 * HtmlWindow.cs: Code formatting. Fixed line endings.
5147 * HtmlElement.cs: Code formatting. Fixed line endings. Fixed compiler
5149 * HtmlHistory.cs: Code formatting. Fixed line endings.
5150 * HtmlDocument.cs: Code formatting. Fixed line endings.
5151 * ToolStripPanel.cs: Added missing IList implementation.
5152 * HtmlElementCollection.cs: Code formatting. Fixed line endings.
5154 2008-04-06 Gert Driesen <drieseng@users.sourceforge.net>
5156 * BindingContext.cs: Changed argument names to fix corcompare errors.
5157 * DataGridView.cs: Removed extra explicit interface implementation
5158 of IDropTarget. Code formatting.
5159 * FlowLayoutPanel.cs: Changed argument names to fix corcompare errors.
5160 * ComboBox.cs: Changed argument names to fix corcompare errors.
5161 * DataGridTextBoxColumn.cs: Changed argument names to fix corcompare
5163 * GridColumnStylesCollection.cs: Changed argument names to fix
5164 corcompare errors. Removed extra tabs.
5165 * GridTableStylesCollection.cs: Changed argument names to fix corcompare
5167 * Control.cs: Changed argument names to fix corcompare errors. Code
5168 formatting. Removed extra explicit IList implementation.
5169 * TextBox.cs: Changed argument names to fix corcompare errors. Code
5170 formatting. Use string.Empty instead of "".
5171 * GridItemCollection.cs: Changed argument names to fix corcompare
5172 errors. Code formatting.
5173 * DataGridViewTopLeftHeaderCell.cs: Changed argument names to fix
5174 corcompare errors. Code formatting.
5175 * ImageList.cs: Changed argument names to fix corcompare errors.
5176 * ToolStripItem.cs: Changed argument names to fix corcompare errors.
5177 * DataGridViewRowCollection.cs: Changed argument names to fix
5178 corcompare errors. Code formatting.
5179 * TableLayoutPanel.cs: Changed argument names to fix corcompare errors.
5180 * DataGridViewSelectedCellCollection.cs: Changed argument names to
5181 fix corcompare errors. Code formatting.
5182 * DataGridViewComboBoxCell.cs: Changed argument names to fix
5183 corcompare errors. Code formatting.
5184 * LinkLabel.cs: Changed argument names to fix corcompare errors.
5185 * TreeNode.cs: Changed argument names to fix corcompare errors. Code
5187 * PropertyGrid.cs: Changed argument names to fix corcompare errors.
5189 * BindingSource.cs: Changed argument names to fix corcompare errors.
5190 Removed extra explicit interface implementations.
5191 * DataGridViewSelectedRowCollection.cs: Changed argument names to
5192 fix corcompare errors. Code formatting.
5193 * ToolStripItemCollection.cs: Removed extra explicit interface
5194 implementation of IList.ReadOnly.
5195 * DataGridViewColumnCollection.cs: Changed argument names to fix
5196 corcompare errors. Code formatting.
5197 * DataGridViewRow.cs: Rename converter to match MS. Code formatting.
5198 * ListView.cs: Changed argument names to fix corcompare errors.
5199 * DataGridViewHeaderCell.cs: Changed argument names to fix corcompare
5201 * DataGridBoolColumn.cs: Changed argument names to fix corcompare
5203 * ListBindingHelper.cs: Changed argument names to fix corcompare
5205 * DataGridViewSelectedColumnCollection.cs: Changed argument names to
5206 fix corcompare errors. Code formatting.
5207 * ToolStripPanel.cs: Removed extra explicit implementation of
5208 IDropTarget interface.
5209 * ListBox.cs: Changed argument names to fix corcompare errors. Code
5210 formatting. Removed extra tabs and spaces.
5211 * DataGridViewCellCollection.cs: Changed argument names to fix
5213 * Help.cs: Changed argument names to fix corcompare errors. Code
5215 * TabControl.cs: Changed argument names to fix corcompare errors.
5216 * DataGridColumnStyle.cs: Changed argument names to fix corcompare
5218 * TableLayoutSettings.cs: Changed argument names to fix corcompare
5221 2008-04-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5223 * ListBindingHelper.cs: When returning properties, only return those
5224 that are browsable. Also, don't do a linear search of the properties,
5225 but use the indexer of the PropertyDescriptorCollection class.
5227 2008-04-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5229 * BindingSource.cs: Implement GetRelatedCurrencyManager by adding a
5230 Dictionary containing the related (child) currency managers. Also,
5231 when setting DataSource, add datasource to our List if it is not a list.
5233 2008-04-05 Ivan N. Zlatev <contact@i-nz.net>
5235 * PropertyGridTextBox.cs: Fix background color of the buttons.
5236 * PropertyGridView.cs: Make the entry less jumpy.
5238 2008-04-05 Ivan N. Zlatev <contact@i-nz.net>
5240 * PropertyGrid.cs: Fix unused variable warnings.
5242 2008-04-05 Ivan N. Zlatev <contact@i-nz.net>
5244 * PropertyGridView.cs: Fix expansion via [+] misbehavior on
5245 double-click. It expanded it once in the mouse down and then
5246 again in the double-click handler.
5248 2008-04-04 Ivan N. Zlatev <contact@i-nz.net>
5250 * GridEntry.cs: ICustomTypeDescriptor support for PropertyOwner,
5251 TypeConverter and UITypeEditors.
5253 2008-04-04 Ivan N. Zlatev <contact@i-nz.net>
5255 * Control.cs: Visibility should be set synchronously,
5256 so we must also redraw once it is and not rely on layouting or
5257 other code to repaint.
5260 2008-04-04 Jonathan Pobst <monkey@jpobst.com>
5262 * DataGridViewCell.cs: Respect DataGridView.GridColor.
5264 2008-04-03 Jonathan Pobst <monkey@jpobst.com>
5266 * Control.cs: Invalidate when the alpha channel is less than 255,
5267 not only when control is transparent.
5269 2008-04-03 Jonathan Pobst <monkey@jpobst.com>
5271 * DataGridViewRowPrePaintEventArgs.cs, DataGridViewRowPostPaintEventArgs.cs:
5272 Implement some painting convenience methods that threw NIEX.
5274 2008-04-03 Jonathan Pobst <monkey@jpobst.com>
5276 * DataGridView.cs: Call CellMouse[Enter|Move|Leave] properly.
5277 * DataGridViewLinkCell.cs: Implement.
5279 2008-04-03 Ivan N. Zlatev <contact@i-nz.net>
5281 * GridEntry.cs: Report the conversion exception error description.
5284 2008-04-03 Ivan N. Zlatev <contact@i-nz.net>
5286 * PropertyGridView.cs: Do not scroll to item on resize.
5289 2008-04-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5291 * BindingContext.cs: When retrieving a BindingManagerBase, if the
5292 dataSource parameter is ICurrencyManagerProvider, then return
5293 ICurrencyManagerProvider.CurrencyManager/GetRelatedCurrencyManager
5294 instead of creating a new one.
5296 2008-04-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5298 * BindingSource.cs: Implement support for Type instances as
5301 2008-04-02 Jonathan Pobst <monkey@jpobst.com>
5303 * DataGridView.cs: Minor cleanups and call CellMouseUp.
5304 * DataGridViewCell.cs: Make some painting routines internally virtual.
5305 * DataGridViewButtonCell.cs: Implement.
5307 2008-04-02 Jonathan Pobst <monkey@jpobst.com>
5309 * Control.cs: We always need to invalidate our children with
5310 transparent backgrounds when we are invalidated.
5313 2008-04-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5315 * BindingSource.cs: EndEdit and CancelEdit should call EndCurrentEdit
5316 and CancelCurrentEdit on CurrencyManager respectively. Implement
5317 support for ICancelAddNew too.
5319 2008-04-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5321 * CurrencyManager.cs: When calling EndCurrentEdit/CancelCurrentEdit,
5322 call EndNew/CancelNew if list is ICancelAddNew.
5324 2008-04-01 Jonathan Pobst <monkey@jpobst.com>
5326 * DataGridView.cs: Guard against an exception while painting
5327 if there are no rows.
5329 2008-04-01 Jonathan Pobst <monkey@jpobst.com>
5331 * DataGridView.cs: Implement a bunch of keyboard commands.
5333 2008-03-31 Jonathan Pobst <monkey@jpobst.com>
5335 * ToolBar.cs: Don't do our painting if UserPaint is set. If UserPaint
5336 isn't set, don't call OnPaint. [Fixes bug #375300]
5338 2008-03-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5340 * BindingSource.cs: IsBindingSuspended, ResumeBinding and
5341 SuspendBinding depend on CurrencyManager. Implement RemoveCurrent,
5342 hookup the remaining events related to CurrencyManager, and fire
5343 OnListChanged also for the Clear () method.
5345 2008-03-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5347 * BindingSource.cs: Use Current and Position implementations in
5348 CurrencyManager instead of using our own routines, since we need
5349 to be in synch with it. Count should NEVER return a -1 value, and
5350 also report ListChanged events for both simple IList data
5351 sources (manually) as well for IBindingList ones (by hooking up an
5352 event handler for it).
5354 2008-03-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5356 * BindingSource.cs: Make one .ctor call the another, to avoid
5357 duplicate code. Add the CurrencyManager property, and also for AddNew
5358 throw the proper exceptions and show better error messages.
5360 2008-03-28 Jonathan Pobst <monkey@jpobst.com>
5362 * ComboBox.cs: Only adjust selectedindex if Handle has been
5363 created. Fixes failing test.
5365 2008-03-28 Jonathan Pobst <monkey@jpobst.com>
5367 * ComboBox.cs: Adjust selectedindex if we insert a new item
5368 above the current selectedindex in a sorted ComboBox.
5371 2008-03-28 Jonathan Pobst <monkey@jpobst.com>
5373 * ComboBox.cs: Support PageUp/PageDown when dropdown is closed.
5376 2008-03-28 Jonathan Pobst <monkey@jpobst.com>
5378 * DataGridViewTextBoxCell.cs: Implement stuffs.
5380 2008-03-27 Jonathan Pobst <monkey@jpobst.com>
5382 * TreeView.cs: Create the scrollbars even earlier to be
5383 double dog certain they are created before they are accessed.
5385 2008-03-27 Jonathan Pobst <monkey@jpobst.com>
5387 * XplatUIX11.cs: Remove a no-op line that csc was choking on.
5389 2008-03-27 Jonathan Pobst <monkey@jpobst.com>
5391 * ScrollBar.cs: Create an internal safe Value setter so we
5392 won't crash if we try to set a value outside the min and max.
5393 * TextBoxBase.cs: Use safe value setter to guard against a
5394 potential NRE that is being reported by Reflector.
5396 2008-03-27 Jonathan Pobst <monkey@jpobst.com>
5398 * TreeView.cs: Create the scrollbars earlier in the constructor
5399 to attempt to guard against an NRE in SetTop in Reflector.
5401 2008-03-27 Jonathan Pobst <monkey@jpobst.com>
5403 * DataGridView.cs, DataGridViewCell.cs, DataGridViewCell.cs,
5404 DataGridViewRowCollection.cs: Do not scroll column and row headers,
5405 show messagebox on data format error, use column display index
5406 correctly, make sure HitTest supports new layout stuff,
5407 make sure scrollbars support new layout stuff.
5409 2008-03-27 Atsushi Enomoto <atsushi@ximian.com>
5411 * XplatUIX11.cs : Patch by Doug Rintoul.
5412 For some IM engines, keypress events need to delay call
5413 to XPending() and XNextEvent() in the loop so that it
5414 does not mess the orders in XIM commit callback.
5415 Some KeyRelease events such as shift keys need to be
5416 processed both in the IM engine and winforms driver
5417 itself since winforms holds its own state check.
5419 For details, see: http://lists.ximian.com/pipermail/mono-winforms-list/2008-March/003279.html
5421 2008-03-27 Atsushi Enomoto <atsushi@ximian.com>
5423 * X11Keyboard.cs, XplatUIX11.cs :
5424 add primitive support for XIM input support (preedit-
5425 nothing and status-nothing). It requires precise event
5426 capturing (XSelectInput/"filterEvents") and different
5427 call to XFilterEvent against root window.
5428 Get composed string and send dummy WM_IME_COMPOSITION.
5429 Free XIM and XIC instances in finalizer.
5431 (This first patch does not include suggested changes
5432 by Doug Rintoul. It will follow.)
5434 2008-03-26 Jonathan Pobst <monkey@jpobst.com>
5436 * DataGridView.cs: When binding to a property, if the property
5437 doesn't have a setter, set the column to readonly.
5440 2008-03-26 Jonathan Pobst <monkey@jpobst.com>
5442 * ComboBox.cs: Guard against NRE if an arrow key is hit while
5443 we aren't dropped down. Support Home/End in DropDownList mode.
5446 2008-03-26 Jonathan Pobst <monkey@jpobst.com>
5448 * TreeNodeCollection.cs: Don't increment count until we've
5449 saved our index to return.
5452 2008-03-25 Jonathan Pobst <monkey@jpobst.com>
5454 * Label.cs: Add padding to the label's AutoSize calculation.
5457 2008-03-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5459 * ListBindingHelper.cs: Actually implement GetListName method.
5461 2008-03-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5463 * BindingSource.cs: Throw the propert expceptions for some methods, as
5464 well as detect the list item type for Add method if DataSource is null.
5466 2008-03-25 Jonathan Pobst <monkey@jpobst.com>
5468 * DataGridViewCell.cs: I don't know why I commented this out,
5469 putting it back for now.
5471 2008-03-25 Jonathan Pobst <monkey@jpobst.com>
5473 * DataGridViewCell.cs: Remove storage for owning column, just
5475 * DataGridViewColumn.cs: Make getter for HeaderTextSet.
5476 * DataGridViewColumnHeaderCell.cs: If the header text has been
5477 explicitly set, return it.
5480 2008-03-25 Jonathan Pobst <monkey@jpobst.com>
5482 * DataGridViewRowCollection.cs: Disable row sharing when
5483 using data binding. Its a great feature, but lets work on
5484 getting DGV usable first before we worry about optimizations.
5486 2008-03-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5488 * BindingSource.cs: When resetting our internal list, compute list
5489 item type information to be used for indirect list access. Also
5490 implement/tune some properties and methods related to the list access
5492 * ListBindingHelper.cs: Add a stub for GetListName method, used from
5495 2008-03-24 Jonathan Pobst <monkey@jpobst.com>
5497 * DataGridView.cs: If RowCount is increased while ColumnCount
5498 is zero, add a column. [Fixes bug #331649]
5500 2008-03-24 Jonathan Pobst <monkey@jpobst.com>
5502 * DataGridViewRowCollection.cs: When adding new rows for
5503 databinding, make sure they are place before the add row.
5506 2008-03-24 Jonathan Pobst <monkey@jpobst.com>
5508 * DataGridViewRow.cs: Draw cells in column DisplayIndex order
5509 instead of Index order.
5511 2008-03-24 Jonathan Pobst <monkey@jpobst.com>
5513 * DataGridView.cs: If columns are added by increasing ColumnCount,
5514 they need to be DataGridViewTextBoxColumns, not DataGridViewColumn.
5517 2008-03-24 Jonathan Pobst <monkey@jpobst.com>
5519 * DataGridView.cs: Turn off and on the "new row" when
5520 AllowUserToAddRows is toggled. When the handle is created,
5521 set current cell and selected cell/row/col.
5523 2008-03-24 Jonathan Pobst <monkey@jpobst.com>
5525 * ComboBox.cs: When navigating the drop down by keyboard, we
5526 need to scroll the list box if our selection moves out of the
5527 currently shown items. [Fixes bug #371990]
5529 2008-03-24 Luke Page <luke.a.page@gmail.com>
5531 * RichTextBox.cs: Handles visible rtf tag and no longer shows the text
5532 on the control. Also now handles unicode compatibility characters and
5533 stores the unicode compatibility length on the stack. Fixes Bugs
5534 #355198 and #366436.
5536 2008-03-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5538 * BindingSource..cs: Take into account DataMember when re-creating the
5539 List property, and also create a specific kind of list as needed.
5541 2008-03-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5543 * ListBindingHelper.cs: Add a new case for GetList () method - when we
5544 get an empty IEnumerable, try to detect whether the datamember is
5545 valid or not for that type, if true, return null, and throw exception
5548 2008-03-22 Jonathan Pobst <monkey@jpobst.com>
5550 * ComboBox.cs: Alt-Down should drop down the list, Esc should
5551 retract it. [Fixes bug #371989]
5553 2008-03-22 Ivan N. Zlatev <contact@i-nz.net>
5555 * PropertyGrid.cs: Initialize the sorting button as pushed.
5557 2008-03-22 Ivan N. Zlatev <contact@i-nz.net>
5560 - Visually select the PropertyTab.
5561 - Filter Properties by Attributes properly.
5563 2008-03-21 Jonathan Pobst <monkey@jpobst.com>
5565 * MenuItem.cs: Remove menu item from parent when disposed.
5568 2008-03-21 Jonathan Pobst <monkey@jpobst.com>
5570 * ToolBar.cs: Don't reset layout_type if Dock = None.
5572 2008-03-21 Andreia Gaita <avidigal@novell.com>
5574 * UserControl.cs: Select the first available control when we get focus.
5577 2008-03-21 Jonathan Pobst <monkey@jpobst.com>
5579 * DataGridViewCell.cs, DataGridViewTextBoxCell.cs: Don't paint
5580 the content if we are in edit mode. [Fixes bug #343964]
5582 2008-03-21 Jonathan Pobst <monkey@jpobst.com>
5584 * DataGridViewCell.cs: Fix border painting for column headers.
5586 2008-03-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5588 * BindingSource.cs: When setting or resetting data source,
5589 use ListBindingHelper.GetList () method, since it will get the list in
5590 case datasource is IListSource.
5592 2008-03-20 Jonathan Pobst <monkey@jpobst.com>
5594 * DataGridViewCell.cs: Implement lots more stuffs.
5596 2008-03-20 Ivan N. Zlatev <contact@i-nz.net>
5598 * PropertyGridView.cs, GridEntry.cs: Implement support for
5599 UITypeEditor.IsDropDownResizable.
5601 2008-03-20 Jonathan Pobst <monkey@jpobst.com>
5603 * DataGridViewCell.cs: Remove unused variables, improve how
5604 several of the property getters work.
5605 * DataGridViewRow.cs: Don't call setSize on a cell, cell should
5606 get its size from the parent row/col.
5608 2008-03-20 Ivan N. Zlatev <contact@i-nz.net>
5610 * PropertyGrid.cs: Ensure PropertiesTab is visible even if the
5611 user alters manually the PropertyTabs collection via the
5612 PropertyTabs property.
5614 2008-03-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5616 * ListBindingHelper.cs: Implement -previously- ignored cases. We have
5617 new tests for them to be sure to be compatible with .net.
5619 2008-03-20 Andreia Gaita <avidigal@novell.com>
5621 * WebBrowserBase.cs: Fix attributes, add events
5622 * WebBrowser.cs: Fix Padding signature
5624 2008-03-20 Ivan N. Zlatev <contact@i-nz.net>
5626 * PropertyGrid.cs, PropertyGridView.cs: Implement PropertyTab support.
5628 2008-03-19 Jonathan Pobst <monkey@jpobst.com>
5630 * DataGridView.cs, DataGridViewCell.cs, DataGridViewCellStyle.cs,
5631 DataGridViewLinkCell.cs, DataGridViewRow.cs, DataGridViewRowHeaderCell.cs,
5632 DataGridViewTextBoxCell.cs: Changes so that DataGridViewCell
5633 passes the new suite of tests for it.
5635 2008-03-18 Andreia Gaita <avidigal@novell.com>
5637 * WebBrowser.cs: Add missing attributes, missing Padding and
5638 DefaultSize properties, remove extraneous getters
5640 2008-03-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5642 * ListBindingHelper.cs: Implement a pair of GetListItemProperties
5645 2008-03-16 Jonathan Pobst <monkey@jpobst.com>
5647 * ComboBox.cs: Move resetting the selected index to keypress
5648 instead of textchanged. Changing the text programmatically
5649 should not trigger resetting the selected index. Fixes test.
5651 2008-03-16 Jonathan Pobst <monkey@jpobst.com>
5653 * ComboBox.cs: When the user types into the textbox, reset
5654 the selected index to -1. [Fixes bug #371672]
5656 2008-03-16 Jonathan Pobst <monkey@jpobst.com>
5658 * FileDialog.cs: Support Control-A for selecting everything
5659 in an OpenFileDialog. [Fixes bug #371564]
5661 2008-03-15 Jonathan Pobst <monkey@jpobst.com>
5663 * DataGridView.cs: When row/column visible/height properties
5664 change, invalidate. Take the NIEX out of InvalidateRow/Column
5665 etc. We don't support them yet, but we can just invalidate
5666 everything until we do support them. (Added MonoTODO). Set
5667 proper control styles.
5668 * DataGridViewRow.cs: Don't call PaintHeader if row headers
5671 2008-03-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5673 * ListBindingHelper.cs: Implement 2.0 GetListItemType methods.
5675 2008-03-14 Jonathan Pobst <monkey@jpobst.com>
5677 * DataGridViewRow.cs: Only paint the white background in
5678 cell bounds, the row bounds extends past the cells if the
5679 grid width isn't as wide as the DGV.
5681 2008-03-14 Jonathan Pobst <monkey@jpobst.com>
5683 * DataGridView*: Completely revamp the drawing to match the
5684 public API. Our grids now look better, and call all the
5685 appropriate methods and event to allow users to override
5686 the painting and do their own.
5688 2008-03-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5690 * ListBindingHelper.cs: Implement 2.0 GetList methods.
5692 2008-03-13 Jonathan Pobst <monkey@jpobst.com>
5694 * DataGridView.cs: Implement BorderStyle.
5696 2008-03-13 Jonathan Pobst <monkey@jpobst.com>
5698 * FileDialog.cs: Apply patch from Andy Hume: Any time we
5699 are comparing attributes, make sure we only look at the
5700 one we are interested. These calls were failing if there
5701 were more than one attribute.
5704 2008-03-13 Jonathan Pobst <monkey@jpobst.com>
5706 * DataGridColumnStyle.cs: Hide ctor from 1.1 profile.
5708 2008-03-12 Jonathan Pobst <monkey@jpobst.com>
5710 * PageSetupDialog.cs: Stub EnableMetric.
5711 * PrintControllerWithStatusDialog.cs: Implement IsPreview.
5712 * PrintPreviewDialog.cs: Add ProcessDialogKey,
5715 2008-03-12 Jonathan Pobst <monkey@jpobst.com>
5717 * MonthCalendar.cs: Remove unused variable.
5719 2008-03-12 Jonathan Pobst <monkey@jpobst.com>
5721 * DataGridView*.cs: corcompare stuffs.
5723 2008-03-11 Jonathan Pobst <monkey@jpobst.com>
5725 * MonthCalendar.cs: Remove an incorrect invalidate optimization.
5726 The savings aren't worth the extra code to fix the optimization.
5729 2008-03-11 Jonathan Pobst <monkey@jpobst.com>
5731 * ToolBar.cs: Always call base.Dock in the Dock override so that
5732 Control's layout_type gets reset correctly.
5735 2008-03-11 Ivan N. Zlatev <contact@i-nz.net>
5737 * X11Dnd.cs: End DnD operation also for the middle mouse button.
5739 2008-03-11 Jonathan Pobst <monkey@jpobst.com>
5741 * ContainerControl.cs: We can't do MenuStrip implicit mnemonics
5742 at the same time we do explicit ones, because we have to give all
5743 other controls on the container a chance to handle explicit ones
5744 first. If no one has an explicit mnemonic, then we can let the
5745 MenuStrip have a shot at implicit mnemonics.
5746 * MenuStrip.cs: Create an implicit mnemonic function.
5747 * ToolStrip.cs: When processing explicit mnemonics, don't do implicit
5748 mnemonics for MenuStrips.
5751 2008-03-11 Jonathan Pobst <monkey@jpobst.com>
5753 * AxHost.cs, Binding.cs, DataGridView.cs, DataGridViewCell.cs,
5754 DataGridColumnStyle.cs: corcompare stuffs.
5756 2008-03-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5758 * FileDialog.cs: Don't add any ColumnHeader to Columns if view is not
5759 Details - This is needed after we added the bits to use any available
5760 column also for List and SmallIcon view.
5762 2008-03-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5764 * ListBox.cs: Fire SelectedIndexChanged and SelectedValueChanged events
5765 at the proper place, not only when changing SelectedIndex and changing
5766 the selection using keys/mouse, as .net does.
5768 2008-03-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5770 * ControlBindingsCollection.cs: Implement last 2.0
5771 DefaultDataSourceUpdateMode property. Also fix a wrong instruction
5772 in the new 2.0 Add methods.
5774 2008-03-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5776 * ListBox.cs: When calling SelectedIndexCollection.Clear,
5777 return if no items are previously selected - this is done to avoid
5778 firing OnSelectedIndexChanged without need to do so. Also,
5779 when creating handle ensure that the focused item is visible (as
5782 2008-03-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5784 * ListBox.cs: Rewrote/refactored most of selection code. We require
5785 the following things in selection: a) keep selection sorted (both
5786 indices and items), b) SelectedIndices automatically detect the
5787 selection mode, c) SelectedIndex should be the first selected item
5788 index, d) Need to Focus/adjust scroll bar when selecting a new item,
5789 not only for SelectedIndex, which is specially important in Multi*
5790 selection modes. To achieve this we are moving the selection core to
5791 SelectedIndexCollection and make depend all selection modifications on
5795 2008-03-06 Jonathan Pobst <monkey@jpobst.com>
5797 * ToolStrip.cs: Enable implicit mnemonics for drop down
5798 menu strips. [Fixes part of bug #367692]
5800 2008-03-06 Jonathan Pobst <monkey@jpobst.com>
5802 corcompare - fix parameter names [stragglers].
5803 Binding.cs, BindingsCollection.cs, GridColumnStylesCollection.cs,
5804 HelpEventHandler.cs, Label.cs, ListView.cs, Message.cs,
5807 2008-03-06 Jonathan Pobst <monkey@jpobst.com>
5809 Control.cs: Don't call ProcessMenuKey on WM_SYSKEYUP if there
5810 was a mnemonic pressed as well as Alt. Also, if nothing handles a
5811 mnemonic, let the ToolStripManager have it even if it doesn't
5812 have a matching mnemonic.
5815 2008-03-06 Jonathan Pobst <monkey@jpobst.com>
5817 corcompare - fix warning about implicit implementation
5818 * ToolStrip.cs: Add IToolStripData interface.
5819 * IToolStripData.cs: Add.
5821 2008-03-06 Jonathan Pobst <monkey@jpobst.com>
5823 corcompare - fix warning about implicit implementation
5824 * Control.cs, ToolStripPanelRow.cs: Add IBounds interface.
5827 2008-03-05 Jonathan Pobst <monkey@jpobst.com>
5829 corcompare - fix parameter names [N-Z].
5830 LinkArea.cs, NativeWindow.cs, NotifyIcon.cs, PageSetupDialog.cs,
5831 Panel.cs, PrintDialog.cs, PrintPreviewControl.cs, PropertyGrid.cs,
5832 PropertyManager.cs, RichTextBox.cs,
5833 ScrollBar.cs, SelectionRange.cs, SplitContainer.cs, StatusBar.cs,
5834 StatusBarDrawItemEventArgs.cs, StatusBarPanelClickEventArgs.cs,
5835 StatusStrip.cs, TabControl.cs, TableLayoutColumnStyleCollection.cs,
5836 TableLayoutRowStyleCollection.cs, TableLayoutStyleCollection.cs,
5837 TextBoxBase.cs, ThreadExceptionDialog.cs, ToolStrip.cs,
5838 ToolStripContentPanel.cs, ToolStripDropDown.cs,
5839 ToolStripDropDownMenu.cs, ToolStripItem.cs, ToolStripMenuItem.cs,
5840 ToolStripPanel.cs, ToolStripSeparator.cs,
5841 TreeNode.cs, TreeView.cs, TreeViewHitTestInfo.cs,
5842 UICuesEventHandler.cs, UpDownBase.cs.
5844 2008-03-05 Jonathan Pobst <monkey@jpobst.com>
5846 corcompare - fix parameter names [G-M].
5847 GridColumnStylesCollection.cs, GridItemCollection.cs,
5848 GridTableStylesCollection.cs, GroupBox.cs, Help.cs,
5849 HelpProvider.cs, ImageListStreamer.cs, InputLanguageCollection.cs,
5850 Label.cs, LayoutEngine.cs, LinkClickedEventArgs.cs,
5851 LinkLabel.cs, ListBox.cs, ListView.cs, ListViewGroupCollection.cs,
5852 ListViewItem.cs, Menu.cs, MenuItem.cs, MenuStrip.cs, MouseEventArgs.cs.
5854 2008-03-05 Jonathan Pobst <monkey@jpobst.com>
5856 corcompare - fix parameter names [A-F].
5857 Control.cs, DataGridBoolColumn.cs, DataGridColumnStyle.cs,
5858 DataGridTextBoxColumn.cs, DataGridViewButtonCell.cs,
5859 DataGridViewCellCollection.cs, DataGridViewCellParsingEventArgs.cs,
5860 DataGridViewCheckBoxCell.cs, DataGridViewColumnDesignTimeVisibleAttribute.cs,
5861 DataGridViewComboBoxCell.cs, DataGridViewHeaderCell.cs,
5862 DataGridViewImageCell.cs, DataObject.cs, DomainUpDown.cs,
5863 DrawItemEventArgs.cs, FolderBrowserDialog.cs, FontDialog.cs, Form.cs.
5865 2008-03-03 Ivan N. Zlatev <contact@i-nz.net>
5867 * GridEntry.cs: Do not convert not only if the types match,
5868 but also if the property type is assigneable from the value's
5872 2008-03-03 Ivan N. Zlatev <contact@i-nz.net>
5874 * PropertyGridView.cs:
5875 - Subscribe to the listbox only once and not everytime.
5876 - Update the textbox even if SetValue fails.
5877 - Close the listbox before calling TrySetValue just in case.
5880 2008-03-03 Jonathan Pobst <monkey@jpobst.com>
5882 * Control.cs: Hide ICollection.CopyTo from the 1.1 profile.
5884 2008-03-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5886 * ListView.cs: Implement support for custom column width based on
5887 Columns collection (we were previously using this collection only
5891 2008-03-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5893 * ListViewItem.cs: For Tile view, always set bounds for the first
5894 subitem (which is the main one), and also don't let Width be larger
5895 than ListView.TileSize.Width. Improve code readibility also.
5896 * ThemeWin32Classic.cs: When painting the ListViewItem instances
5897 in Tile view, _always_ use the NoWrap flag.
5900 2008-02-29 Ivan N. Zlatev <contact@i-nz.net>
5902 * PropertyGrid.cs: Check for null PropertyDescriptor.Name just
5904 * GridEntry.cs: For MS compitability make all child properties
5905 readonly if the parent is readonly. Ugh.
5906 [Fixes bug #365945 and #365944]
5908 2008-02-29 Andreia Gaita <avidigal@novell.com>
5910 * HtmlHistory.cs: Fix sigs for Forward and Back to navigate by index
5911 relative to the history
5913 2008-02-29 Andreia Gaita <avidigal@novell.com>
5915 * HtmlElement.cs: More handlers for mouse and key events
5917 2008-02-28 Andreia Gaita <avidigal@novell.com>
5919 * WebBrowserBase.cs: MouseClick sig changed.
5920 * HtmlHistory.cs: Implement history navigation
5921 * HtmlElement.cs: Add event handlers, and connect them.
5923 2008-02-28 Ivan N. Zlatev <contact@i-nz.net>
5926 - Use PropertyDescriptor.DisplayName instead of .Name for Label,
5927 so that DisplayNameAttribute doesn't get ignored.
5928 - Check for ParenthesizeNameAttribute and parenthesize the Label.
5929 - Add support for PasswordPropertyTextAttribute
5930 * PropertyGridView.cs: Check if an entry is a password.
5931 [Fixes bugs #365589, #365586, #365588]
5933 2008-02-28 Andreia Gaita <avidigal@novell.com>
5935 * PropertyGridView.cs: Revert the message filtering change, as we
5936 need it to block after all. Remove block parameter, unnecessary.
5938 2008-02-27 Jonathan Pobst <monkey@jpobst.com>
5940 * UserControl.cs: Better implementation of GetPreferredSize.
5941 First step to fixing bug #361441.
5943 2008-02-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5945 * Binding.cs: Actually implement data binding support for
5946 classes implementing IBindableComponent.
5947 * ControlBindingsCollection.cs: Likewise.
5949 2008-02-26 Andreia Gaita <avidigal@novell.com>
5951 * PropertyGridView.cs: Use a message filter to check when to
5954 2008-02-26 Andreia Gaita <avidigal@novell.com>
5956 * Application.cs: Change the message_filters loop so a filter
5957 can be removed while looping.
5959 2008-02-26 Ivan N. Zlatev <contact@i-nz.net>
5961 * GridEntry.cs: Optimization in ToggleValue so that it caches
5963 * PropertyGridView.cs: An optimization so that the property isn't
5964 re-read twice for each StandardValue added to the drop-down menu.
5965 Patch by Andy Hume <andyhume32@yahoo.co.uk> under the MIT/X11
5969 2008-02-26 Jonathan Pobst <monkey@jpobst.com>
5971 * Application.cs: Apply patch from Justin Cherniak to match
5972 MS better for ProductName, ProductVersion, and CompanyName.
5975 2008-02-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5977 * Binding.cs: Actually implement 2.0 NullValue property. Also
5978 when changing the formatting related properties, only update the state
5979 if formatting_enabled is true (we don't mind otherwise).
5981 2008-02-25 Jonathan Pobst <monkey@jpobst.com>
5983 * ToolStrip.cs: Don't raise ItemClicked for disabled items.
5986 2008-02-25 Ivan N. Zlatev <contact@i-nz.net>
5988 * GridEntry.cs: Use the PropertyDescriptor.PropertyType instead
5989 of GetType on the current value as it uses reflection to
5990 determine the type. This fixes the case where the new value is
5993 2008-02-25 Ivan N. Zlatev <contact@i-nz.net>
5995 * PropertyGridView.cs: Limit mousewheel scrolling to not scroll
5998 2008-02-24 Luke Page <luke.a.page@gmail.com>
6000 * Line.cs, TextControl.cs: Implement offset x and y so that a
6001 document doesn't have to begin at (0,0) on the viewpoint.
6002 * TextBox.cs, TextBoxBase.cs: RightToLeft switches the scroll
6003 bars and switches the text alignment (and therefore is now
6004 implemented for textbox). Fixes #321383.
6006 2008-02-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6008 * Binding.cs: Actually implement 2.0 FormatString and FormatInfo
6009 properties. Also when changing FormattingEnabled update the control
6010 property -as .Net does-.
6012 2008-02-22 Carlos Alberto Cortez <calberto.cortez@Å‹mail.com>
6014 * ControlBindingsCollection.cs: Add the missing 2.0 Add overloads.
6015 * Binding.cs: Add stubs for the overloads of the Add method in
6018 2008-02-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6020 * Binding.cs: PullData () returns a false value if we got an exception.
6021 Also when validating the control and we get an error, instead of
6022 setting the value of the previous one, cancel the event (tested in 1.1
6025 2008-02-22 Jonathan Pobst <monkey@jpobst.com>
6027 * TreeView.cs: Make selected_node and highlighted_node internal.
6028 * TreeNodeCollection.cs: Reset selected_node and highlighted_node
6029 to null when Nodes.Clear is called.
6032 2008-02-21 Jonathan Pobst <monkey@jpobst.com>
6034 * FontDialog.cs: Ensure that when the Font is set in code,
6035 all the gui pieces are updated accordingly.
6038 2008-02-21 Jonathan Pobst <monkey@jpobst.com>
6040 * TextRenderer.cs: Respect proposed size for MeasureString.
6041 * ThemeWin32Classics.cs: If our CheckBox/RadioButton isn't
6042 autosize, use a proposed width to force wrapping for long text.
6045 2008-02-21 Jonathan Pobst <monkey@jpobst.com>
6047 * TreeView.cs: Factor in checkboxes = false and state images in
6048 to HitTest. [Fixes bug #363360]
6050 2008-02-21 Jonathan Pobst <monkey@jpobst.com>
6052 * ThemeWin32Classic.cs: Only look at the Date part of a DateTime
6053 when drawing the selected range.
6056 2008-02-21 Jonathan Pobst <monkey@jpobst.com>
6058 * ToolStripContainer.cs: Add SupportsTransparentBackColor and
6059 ResizeRedraw control styles.
6062 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
6064 * TreeView.cs: StateImages are basically custom checkboxes, so
6065 factor their size the same as real checkboxes when determining
6069 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
6071 * MessageBox.cs: Make the message box wider if the form caption
6072 is longer than the text in the form.
6075 2008-02-20 Ivan N. Zlatev <contact@i-nz.net>
6077 * PropertyGridView.cs: Fix a NRE when closing the drop down form.
6079 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
6081 * TreeNode.cs: Guard against an NRE when the parent's
6082 StateImageList hasn't been set.
6085 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
6087 * SplitContainer.cs: Add SupportsTransparentBackColor and
6088 OptimizedDoubleBuffering control styles.
6091 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
6093 * Application.cs: For the app data paths and the registry key paths,
6094 ensure they are created before returning them to the user.
6097 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
6099 * Application.cs: Guard against an NRE in CompanyName and
6102 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
6104 * Application.cs: For CompanyName, ProductName, and ProductVersion,
6105 make sure we handle all three cases correctly: attribute is present,
6106 attribute is present but is an empty string, and attribute is not
6109 2008-02-20 Ivan N. Zlatev <contact@i-nz.net>
6111 * PropertyGridView.cs:
6112 - Fix a NRE that caused a test failure
6113 - Another performance improvement - cache the standard values
6116 2008-02-19 Jonathan Pobst <monkey@jpobst.com>
6118 * ComboBox.cs: Fix previous change to affect both 1.1 and 2.0
6121 2008-02-19 Ivan N. Zlatev <contact@i-nz.net>
6123 * PropertyGridView.cs: Fix a big performance bug.
6125 2008-02-19 Jonathan Pobst <monkey@jpobst.com>
6127 * SelectionRange.cs: Apply patch from Andy Hume to make
6128 constructor behavior more accurate. [Fixes bug #362117]
6130 2008-02-19 Andreia Gaita <avidigal@novell.com>
6132 * Control.cs: Added a new flag is_disposing to track if the
6133 window is currently in the process of being disposed of.
6134 This is used so that, when firing visibility changes triggered
6135 by unparenting controls during Dispose, the control doesn't
6138 2008-02-19 Jonathan Pobst <monkey@jpobst.com>
6140 * ComboBox.cs: Set height to preferred height when the handle
6141 is created. [Fixes bug #360862]
6143 2008-02-18 Andreia Gaita <avidigal@novell.com>
6145 * XplatUIX11.cs: Create FosterParent with border width at 0.
6146 With the previous value of 4, everytime a control got reparented
6147 from parent = null, it's location would be shifted right and
6148 down by 4, since these coordinates would be offset by the
6149 FosterParent's border width.
6151 2008-02-18 Ivan N. Zlatev <contact@i-nz.net>
6153 * Control.cs: During diposing firstly remove ourselfes from
6154 the parent and *then* destroy our handle, because removing
6155 ourselfes from the parent controls collection causes
6156 VisibilityChange, etc events, which require a handle and end
6157 up recreating the control.
6159 2008-02-17 Ivan N. Zlatev <contact@i-nz.net>
6161 * GridEntry.cs: Set expanded state before notifying that the
6162 expansion has taken place.
6163 * PropertyGridView.cs:
6164 - Set the propertygridtextbox text to the selected
6165 StandardValue before proceeding to setting it.
6166 - Scrolling bugfixes.
6168 2008-02-16 Ivan N. Zlatev <contact@i-nz.net>
6171 - Fix ValueText to not return null.
6172 - Fix conversion error reporting to actually happen.
6173 * PropertyGridView.cs: Set entry only if the text has changed.
6176 2008-02-16 Ivan N. Zlatev <contact@i-nz.net>
6179 - Fix handling of a null current value.
6180 - Swallow editor exceptions.
6183 2008-02-16 Ivan N. Zlatev <contact@i-nz.net>
6185 * PropertyGrid.cs: Clear current items first thing before
6186 repopulating subitems.
6188 - Handle null StandardValuesCollection.
6189 - Mark as not editable if there is no PropertyDescriptor and
6190 if the Converter cannot convert from string.
6191 [Part of fix for bugs #360666 and #358332]
6193 2008-02-15 Luke Page <luke.a.page@gmail.com>
6194 * MaskedTextBox.cs: Now skips non editable characters after a
6195 character has been entered and we are progressing to the next
6196 position in the MaskedTextBox.
6198 2008-02-15 Luke Page <luke.a.page@gmail.com>
6199 * TextBoxBase.cs: Handles MouseDown when shift key is clicked so
6200 that it changes the selection rather than just repositioning the
6201 cursor. Fixes Bug #360873.
6203 2008-02-15 Luke Page <luke.a.page@gmail.com>
6204 * TextBoxBase.cs, TextControl.cs, RichTextBox.cs: TextChanged fires
6205 when Undo/Redo changes the text. Undo/Redo/Undo/Redo now works
6206 correctly. See #359330
6208 2008-02-15 Andreia Gaita <avidigal@novell.com>
6210 * XplatUIX11.cs: If the handle is null when posting a message, use the
6211 current thread queue to post instead. Fixes #332409
6213 * SendKeys.cs: Slight optimization
6215 2008-02-14 Ivan N. Zlatev <contact@i-nz.net>
6217 * PropertyGrid.cs, PropertyGridView.cs:
6218 Fix multiple scrolling and sizing issues.
6221 2008-02-12 Ivan N. Zlatev <contact@i-nz.net>
6223 * PropertyGridView.cs: Ensure that drop down editors are shown
6224 in the WorkingArea of the screen.
6227 2008-02-12 Ivan N. Zlatev <contact@i-nz.net>
6229 * GridEntry.cs: Fail silently when UITypeEditor is missing.
6232 2008-02-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6234 * Binding.cs: Implement 2.0 DataSourceNullValue property.
6236 2008-02-11 Ivan N. Zlatev <contact@i-nz.net>
6238 * PropertyGridView.cs:
6239 - Clear the controls in the drop down form after it is hidden.
6240 - Fix Width sizing of the dropdown editors to match MSFT.
6242 2008-02-11 Ivan N. Zlatev <contact@i-nz.net>
6244 * PropertyGridView.cs:
6245 - Fix height for drawing the grid entry
6246 text value, so that it clips multiline text properly.
6247 - Fix unfocusing to match MSFT.
6249 2008-02-11 Ivan N. Zlatev <contact@i-nz.net>
6251 * PropertyGrid.cs: Do not populate subgriditems unless expandable.
6252 Fixes a bug where on repopulation after value changed items become
6255 2008-02-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6257 * Binding.cs: For the 2.0 profile, look for a
6258 'PropertyChanged' event in the target control, and add checks for
6259 DataSourceUpdateMode property to change -or not- the data source
6260 from validation/control property change.
6262 2008-02-10 Atsushi Enomoto <atsushi@ximian.com>
6264 * Binding.cs : build fix (operator == is not overriden in 1.x. Do
6265 not compare struct with null in 2.0).
6267 2008-02-10 Luke Page <luke.a.page@gmail.com>
6269 * MaskedTextBox.cs: UseSystemPasswordChar updates PasswordChar, PasswordChar
6270 updates the provider and if not using a provider, uses the internal document
6271 class implementation of password char. Also when showing text, uses display string
6272 from the provider, instead of the actual text.
6274 2008-02-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6276 * Binding.cs: Ooooops, forgot to take into account the data_source
6277 and binding_member_info null case (it was breaking the Binding tests).
6279 2008-02-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6281 * Binding.cs: Implement support for data source changes exposed by
6282 'PropertyNameChanged' events, and update the control property as
6285 2008-02-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6287 * Binding.cs: Implement 2.0 WriteValue method.
6289 2008-02-08 Jonathan Pobst <monkey@jpobst.com>
6291 Commit patch from James Purcell for better AutoScale implementation:
6293 * ScaleControl should call GetScaledBounds with the control's total size rather
6294 than client size. GetScaledBounds should handle ignoring the borders in its
6295 calculations. Cleaned up ScaleControl/GetScaledBounds overrides in controls
6296 (for the most part they just call the base code now since that is fixed).
6297 * Added ScaleChildrenInternal to allow controls to disable scaling of children
6298 without having to override ScaleChildren (since none of .NET's controls do).
6299 This is required for most controls in Mono that have scrollbars to prevent the
6300 scrollbars from being moved/resized.
6301 * Nested ContainerControls can have a different scale mode than their parent.
6302 This is briefly mentioned in MSDN but is buggy in MS.NET (the runtime and
6303 designer produce different results both of which look incorrect).
6304 * Default AutoScaleMode for ContainerControl should be Inherit.
6305 * Simplified workaround for ComboBox scaling issue.
6306 * 1.0 style auto-scaling now uses its own methods instead of sharing 2.0's.
6307 1.0 style auto scaling should scale the whole control's size instead of
6308 ignoring the borders (except for Form) and the rounding is done differently to
6309 preserve control alignment.
6310 * ApplyAutoScaling (used for 1.0 style) should use the rounded result of
6312 * Cleaned up fix for "Bug 355703 - Setting AutoScale = true doesn't stick".
6313 * CurrentAutoScaleDimensions should round the estimated character width instead
6315 * ListBox's GetScaledBounds should always use the height it was set to instead
6316 of the height that was passed in. This prevents rounding errors from
6317 accumulating quickly with IntegralHeight.
6320 2008-02-08 Andreia Gaita <avidigal@novell.com>
6322 * Form.cs: Add a null check (darn it).
6324 2008-02-08 Jonathan Pobst <monkey@jpobst.com>
6326 * MdiClient.cs: Make sure the requesting form actually owns the
6327 control menu items before removing them. Also, use
6328 Suspend/ResumeLayout when adding or removing items so we only
6332 2008-02-08 Jonathan Pobst <monkey@jpobst.com>
6334 * Control.cs: Guard against an NRE in ShowFocusCues.
6337 2008-02-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6339 * Binding.cs: Implement 2.0 ReadValue method and ControlUpdateMode
6340 property, as well as stubbing DataSourceUpdateMode.
6342 2008-02-08 Andreia Gaita <avidigal@novell.com>
6344 * Form.cs: When closing forms, get focus back to the active control of the
6345 active form. [Fixes #341314, corner case]
6347 2008-02-07 Jonathan Pobst <monkey@jpobst.com>
6349 * MdiClient.cs: After we move the scrollbars, invalidate the NC
6350 area, so any old scrollbar artifacts are cleaned up.
6353 2008-02-07 Jonathan Pobst <monkey@jpobst.com>
6355 * MdiWindowManager.cs: If we are maximized and using MainMenuStrip
6356 for our menus, display that control box menu instead of the 1.1
6359 2008-02-07 Jonathan Pobst <monkey@jpobst.com>
6361 * MdiControlStrip.cs: Add property to access the mdi form tied to
6363 * MdiClient.cs: Be smarter about removing and adding toolstripitems
6364 to the implicitly merged menu. Every time we clicked the form, items
6365 were getting removed and the re-added, causing the form to jump around
6366 as the menu resized.
6368 2008-02-07 Jonathan Pobst <monkey@jpobst.com>
6370 * MdiClient.cs: Make sure the NormalBounds always gets set. It
6371 was being reset by the implicit menu merge for menustrips.
6374 2008-02-07 Jonathan Pobst <monkey@jpobst.com>
6376 * Form.cs: Don't do the previous change when WindowState = Normal,
6377 or it messes up where the window is placed. Fixes test failure.
6379 2008-02-07 Jonathan Pobst <monkey@jpobst.com>
6381 * Form.cs: When becoming visible, if we are an MDI child, call
6382 SetWindowState with a dummy old_state so that changes will actually
6384 [Fixes the 2nd part of bug #325473]
6386 2008-02-07 Andreia Gaita <avidigal@novell.com>
6388 * Control.cs: Reset properties to their pre parent-change values in case
6389 the new parent == null (in which case we're basically removing the control,
6390 and don't want any events fired due to fake property changes)
6393 2008-02-06 Ivan N. Zlatev <contact@i-nz.net>
6395 * PropertyGridView.cs:
6396 - Refactor SetValue to allow setting the value
6397 when a custom editor is used, but the entry is not editable.
6398 - Remove the custom editor control on CloseDropDown.
6401 2008-02-06 Andreia Gaita <avidigal@novell.com>
6403 * PrintControllerWithStatusDialog.cs: Set PrintFileName value through
6404 reflection only on 1.1, this property is public on system.drawing on 2.0.
6407 2008-02-06 Andreia Gaita <avidigal@novell.com>
6409 * WebBrowser.cs: Do a normal page refresh by default.
6411 2008-02-05 Andreia Gaita <avidigal@novell.com>
6413 * XplatUIWin32.cs, XplatUICarbon.cs: set the hwnd.Mapped flag when we create
6414 the window so that the check on Control.UpdateZOrderOfChild passes on non-X
6415 platforms. Fixes #359036
6417 Note: Control.UpdateZOrderOfChild needs to be rewritten to not rely on
6418 platform-specific flags.
6420 2008-02-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6422 * Binding.cs: Add 2.0 BindableComponent property - just return control
6425 2008-02-05 Everaldo Canuto <ecanuto@novell.com>
6427 * MenuAPI.cs: Check if control is disposable when track popup menu. Thanks
6428 Jonathan for this patch. Fixes #358442.
6430 2008-02-05 Jonathan Pobst <monkey@jpobst.com>
6432 * Form.cs: If we change the active MDI child form, let the others
6433 know they need to repaint their title bar so it will appear inactive.
6434 [Fixes part 1 of bug #325473]
6436 2008-02-05 Ivan N. Zlatev <contact@i-nz.net>
6438 * PropertyGridView.cs: Do not trucate custom editors' width
6439 and align them to the left.
6440 [Fixes #358353 and #358349]
6442 2008-02-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6444 * BindingsCollection.cs: Implement 2.0 CollectionChanging event.
6445 Also fix the arguments passed to CollectionChangeEventArgs in the
6448 2008-02-04 Geoff Norton <gnorton@novell.com>
6450 * Hwnd.cs: The conversion to Quartz coordinates happens in
6451 System.Drawing. Removing this translation from here.
6453 2008-02-04 Ivan N. Zlatev <contact@i-nz.net>
6455 * PropertyGrid.cs, PropertyGridView.cs, GridEntry.cs,
6456 CategoryGridEntry.cs, RootGridEntry.cs, GridItem.cs,
6457 GridItemCollection.cs:
6458 PropertyGrid rewrite part 2. Tons of bugfixes and new features.
6460 2008-02-04 Geoff Norton <gnorton@novell.com>
6462 * X11Keyboard.cs: VK_MENU should send a KEYUP instead of
6463 SYSKEYUP if any other key has been pressed in the mean time.
6466 2008-02-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6468 * ListView.cs: In ItemControl.ItemsMouseMove, only fire ItemDrag event
6469 when the item in current position is different than 0. Also, save the
6470 item index in the beginning of the operation, instead of getting the
6471 index of the item when the event is actually performed. Lastly clean
6472 the related fields in ItemsMouseUp if the ItemDrag operation wasn't
6476 2008-02-03 Jonathan Pobst <monkey@jpobst.com>
6478 * Form.cs: Alt-Minus for MDI children system menu should work
6479 with both the minus keys on the keyboard.
6482 2008-02-03 Jonathan Pobst <monkey@jpobst.com>
6484 * Control.cs: Don't invalidate on region change. The WM should
6485 take care of this automagically. Keeps us out of an infinite
6486 paint loop if someone changes the Region in the OnPaint.
6489 2008-02-04 Ivan N. Zlatev <contact@i-nz.net>
6491 * ImageIndexConverter.cs: ConvertFrom must handle "(none)".
6493 2008-02-03 Jonathan Pobst <monkey@jpobst.com>
6495 * DateTimePicker.cs: Apply patch from Srikanth Madikeri so we drop
6496 down the MonthCalendar only on F4, not Alt+F4.
6497 * MonthCalendar.cs: If we are a popup, close ourselves on Alt+F4.
6500 2008-02-03 Jonathan Pobst <monkey@jpobst.com>
6502 * ThemeWin32Classic.cs: For MonthCalendar, draw a dark border
6503 if its part of a DateTimePicker, else, use the back color.
6506 2008-02-03 Jonathan Pobst <monkey@jpobst.com>
6508 * Hwnd.cs: Use GraphicContext instead of the uninitialized bmp_g.
6511 2008-02-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6513 * CurrencyManager.cs: When we get a ListChanged event from our source,
6514 always fire our own ListChanged event, as .Net does.
6516 2008-02-03 Luke Page <luke.a.page@gmail.com>
6518 * RichTextBox.cs: AutoSize now defaults to false. Fixes Bug
6521 2008-02-03 Luke Page <luke.a.page@gmail.com>
6523 * TextBoxBase.cs, RichTextBox.cs, TextControl.cs: Sets richtext
6524 property. Removed if for richtext property that was always true.
6525 PgUp/PgDn at top/bottom fixed for RTB. Fixes bug #358237.
6527 2008-02-03 Luke Page <luke.a.page@gmail.com>
6529 * TextBoxBase.cs - commited patch from James Purcell that
6530 correctly sets the FixedHeight control style when the MultiLine
6531 property is changed on a TextBox control. Fixes bug 358229.
6533 2008-02-02 Luke Page <luke.a.page@gmail.com>
6535 * Line.cs, LineTag.cs, RichTextBox.cs, TextControl.cs
6536 Fixes bug 351938 - caret is positioned correctly when drawn
6537 and when calculating textual position of caret, no longer
6538 has a NRE in certain situations.
6540 2008-02-01 Geoff Norton <gnorton@novell.com>
6542 * Hwnd.cs: Ensure that windows moved into -'ve coordinate space
6543 get that region removed from the paint event.
6544 * XplatUICarbon.cs: Remove the window mapping after disposing of
6545 window. Prevents a crash with handle reuse. Optimize exposes
6546 only onto visible windows (rare; but possible).
6548 2008-02-01 Jonathan Pobst <monkey@jpobst.com>
6550 * UpDownBase.cs: Make sure the internal textbox calls the base's
6551 OnMouseDown and OnMouseUp so the textbox will function correctly.
6552 There were notes saying it doesn't chain up, but its an internal
6553 class, so our implementation may differ.
6556 2008-02-01 Jonathan Pobst <monkey@jpobst.com>
6558 * ListBox.cs: Fix a logic error and don't process MouseDown
6559 for mouse buttons other than Left.
6561 2008-02-01 Jonathan Pobst <monkey@jpobst.com>
6563 * Control.cs: Remove HeightInternal.
6564 * ListBox.cs: Commit patch from James Purcell that correctly
6565 calculates heights for ListBoxen.
6568 2008-02-01 Jonathan Pobst <monkey@jpobst.com>
6570 * Label.cs: Apply patch from James Purcell that corrects the
6571 signature of the AutoSize property.
6574 2008-02-01 Jonathan Pobst <monkey@jpobst.com>
6576 * ListBox.cs: Don't throw [Mouse]Click events for buttons
6577 other than the left mouse button.
6579 2008-01-31 Jonathan Pobst <monkey@jpobst.com>
6581 * Control.cs: Remove my awesome optimization as it caused some
6582 regressions with control ordering. :(
6585 2008-01-31 Ivan N. Zlatev <contact@i-nz.net>
6587 * PropertyGridView.cs: Fix a NRE on double click when there is no
6590 2008-01-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6592 * BindingManagerBase.cs: Implement IsBindingSuspended 2.0 property.
6594 2008-01-30 Jonathan Pobst <monkey@jpobst.com>
6596 * ListBox.cs: Call MouseClick and MouseDoubleClick.
6599 2008-01-29 Jonathan Pobst <monkey@jpobst.com>
6601 * Hwnd.cs: Make bmp, bmp_g variables threadstatic and private.
6602 * Control.cs, DataGridViewCell.cs, LineTag.cs: Use Hwnd.GraphicsContext
6603 instead of Hwnd.bmp_g.
6605 2008-01-29 Jonathan Pobst <monkey@jpobst.com>
6607 * TextRenderer.cs: Don't maintain private bitmap/graphics contexts.
6608 Use the Hwnd one instead.
6610 2008-01-29 Jonathan Pobst <monkey@jpobst.com>
6612 * Form.cs: Remove duplicated copy of GetAutoScaleSize.
6614 2008-01-29 Jonathan Pobst <monkey@jpobst.com>
6616 * Form.cs: corcompare for RestoreBounds.
6618 2008-01-29 Jonathan Pobst <monkey@jpobst.com>
6620 * Control.cs: Add MarshalAs attribute to Font getter for corcompare.
6622 2008-01-29 Jonathan Pobst <monkey@jpobst.com>
6624 * Form.cs: Handle Alt-Minus for MDI children forms.
6625 * MdiWindowManager.cs: Make ShowPopup internal so Form can call it.
6626 Add mnemonics to the control menu.
6629 2008-01-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6631 * Binding.cs: Initial implementation bits of FormattingEnabled
6632 property and BindingComplete event (2.0).
6633 * BindingCompleteEventArgs.cs: Internal methods for setting error text
6636 2008-01-28 Jonathan Pobst <monkey@jpobst.com>
6638 * TableLayoutPanel.cs: Draw the table border at 0,0 instead of
6639 table.Location. [Fixes bug #354672]
6641 2008-01-28 Jonathan Pobst <monkey@jpobst.com>
6643 * Form.cs: Handle WM_ENTERSIZEMOVE and WM_EXITSIZEMOVE to raise
6644 ResizeBegin and ResizeEnd. [Fixes bug #346529 for win32]
6646 2008-01-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6648 * ComboBox.cs: When OnDisplayMemberChanged method is reached, instead
6649 of doing all the re-bound work, just invalidate and call SetControlText
6650 to set the updated text of selected item to our textbox.
6653 2008-01-28 Andreia Gaita <avidigal@novell.com>
6655 * HtmlWindow.cs: Add event handler support. Add Document, Frames,
6656 IsClosed, Opener, StatusBarText, Url properties, stub out the remaining
6657 missing properties and methods. Add Load, Unload, Error, GotFocus,
6658 LostFocus, Resize, Scroll events (only load and unload are connected)
6660 2008-01-27 Gert Driesen <drieseng@users.sourceforge.net>
6662 * AccessibleObject.cs: Modified argument names to match MS.
6663 * Button.cs: Modified argument names to match MS.
6664 * BindingContext.cs: Modified argument names to match MS.
6665 * BindingMemberInfo.cs: Modified argument names to match MS.
6666 * ButtonBase.cs: Modified argument names to match MS.
6667 * ComboBox.cs: Modified argument names to match MS.
6668 * Control.cs: Modified argument names to match MS.
6669 * CheckedListBox.cs: Modified argument names to match MS.
6670 * CommonDialog.cs: Modified argument names to match MS.
6671 * DataGrid.cs: Modified argument names to match MS.
6672 * CursorConverter.cs: Modified argument names to match MS.
6673 * ControlPaint.cs: Modified argument names to match MS.
6674 * CheckBox.cs: Modified argument names to match MS.
6675 * ControlBindingsCollection.cs: Modified argument names to match MS.
6676 * BindingSource.cs: Modified argument names to match MS.
6677 * DataFormats.cs: Modified argument names to match MS.
6678 * ContainerControl.cs: Modified argument names to match MS.
6679 * CurrencyManager.cs: Modified argument names to match MS.
6680 * Application.cs: Modified argument names to match MS.
6681 * ContextMenuStrip.cs: Modified argument names to match MS.
6682 * ContextMenu.cs: Modified argument names to match MS.
6683 * BindingManagerBase.cs: Modified argument names to match MS.
6684 * WindowsFormsSection.cs: Fixed line ending.
6686 2008-01-27 Andreia Gaita <avidigal@novell.com>
6688 * PropertyGridView.cs: Rearrange the dropdown loop so that it exits when
6689 detecting that the dropdown toolwindow is hidden. EndLoop outside the
6692 2008-01-26 Gert Driesen <drieseng@users.sourceforge.net>
6694 * PropertiesTab.cs: Fixed argument name of GetDefaultProperty to match
6695 MS. Code formatting.
6697 2008-01-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6699 * Binding.cs: Don't avoid the Format event if the control
6700 property type is object. Also, if the value retrieved by
6701 the data source is null _and_ the control proeprty type
6702 is object, return Convert.DBNull (match .Net).
6703 Fixes part of #324286.
6705 2008-01-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6707 * ListControl.cs: Since we are getting two BinginContextChanged events
6708 for the same binding context instance (when the control is added to
6709 form, and when the form is actually shown), take it into account only the
6710 first time for a given binding context instance.
6711 Fixes part of #324286.
6713 2008-01-26 Ivan N. Zlatev <contact@i-nz.net>
6715 * PropertryGridView.cs: Ops.
6717 2008-01-26 Ivan N. Zlatev <contact@i-nz.net>
6719 * PropertyGridView.cs: Close dropdown form if the owner form is
6723 2008-01-25 Ivan N. Zlatev <contact@i-nz.net>
6725 * PropertyGrid.cs, PropertyGridView.cs, GridEntry.cs, GridItem.cs,
6726 RootGridEntry.cs, CategoryGridEntry.cs:
6727 PropertyGrid rewrite.
6728 - Rewrite all of the control logic in PropertyGrid.
6729 - Rewrite all of the ComponentModel logic in GridEntry.
6730 - Rewrite all UI work in PropertyGridView.
6731 - Many bugfixes, etc.
6733 2008-01-24 Jonathan Pobst <monkey@jpobst.com>
6735 * TableLayoutPanel.cs: Enhance GetPreferredSize to take into account
6736 when all contained controls are autosize or dock-fill. Also take into
6737 account when the total percentage of column/row sizes is not 100%.
6740 2008-01-24 Andreia Gaita <avidigal@novell.com>
6743 - Save a reference to the IDocument in the instance and
6744 use that one instead of going to WebHost.Document; the document that the
6745 WebHost returns might not be the right one (in case of frames).
6746 - Use the hashcode returned from the IDocument interface.
6747 - Implemented: ActiveElement, ActiveLinkColor, All, BackColor, Cookie,
6748 Domain (setter is not supported), Encoding, ForeColor, Forms, Images,
6749 LinkColor, Url, VisitedColor, Window
6752 - Implemented: CanHaveChildren, Children, Document, GetAttribute,
6753 set_Attribute, NextSibling, Parent, TagName, AppendChild,
6754 GetElementsByTagName, GetHashCode, HasAttribute, InsertAdjacentElement,
6755 SetAttribute, Equals, equality operators.
6756 - Added stubs for: AttachEventHandler, DetachEventHandler, Focus,
6757 InvokeMember, RaiseEvent, RemoveFocus, ScrollIntoView,
6759 * HtmlElementCollection.cs: Change implementation to use a generic
6760 collection. Implemented Enumerator and CopyTo
6762 * HtmlHistory.cs: Add constructor, no implementation yet.
6764 * HtmlWindow.cs: Initial implementation with: Name, Parent, Alert,
6765 Confirm, Prompt, Navigation, ScrollTo, Open, OpenNew, GetHashCode,
6766 Equals, equality operators.
6768 * HtmlWindowCollection.cs: Implemented.
6770 * WebBrowser.cs: Use the Navigation object to navigate (WebHost.Navigate
6771 has been deprecated).
6773 * WebBrowserBase.cs: Use Completed event to track document loading
6774 (Navigated has been deprecated)
6776 2008-01-24 Jonatham Pobst <monkey@jpobst.com>
6778 * ThemeWin32Classic.cs: Add tab stops and NoWrap to dropdown MenuItems. Top
6779 level MenuItems do not respect tabs.
6782 2008-01-23 Geoff Norton <gnorton@novell.com>
6784 * XplatUICarbon.cs: Ensure that windows are created in their initial
6785 FormWindowState. Finished fixing Fullscreen windows on Carbon
6787 2008-01-23 Everaldo Canuto <ecanuto@novell.com>
6789 * MenuAPI.cs: When FindForm fails uses FindRootParent to find the control to
6790 be used as grab_control. Also save status of capture before show ContextMenu
6791 and restore it after close.
6793 2008-01-23 Everaldo Canuto <ecanuto@novell.com>
6795 * Control.cs: Internal FindRootParent method added to return high control
6798 2008-01-23 Geoff Norton <gnorton@novell.com>
6800 * Hwnd.cs: Refactor Whole/Client pointer to 1 element for Cursors.
6801 * XplatUICarbon.cs: Refactor some dead code out to Cursor.cs and make
6802 it work again. Handle HITTEST events.
6804 2008-01-23 Geoff Norton <gnorton@novell.com>
6806 * XplatUICarbon.cs: Ensure that we always have a host window. Prevents
6807 a crash in certain cases. Support for fullscreen windows in certain cases.
6809 2008-01-23 Jonathan Pobst <monkey@jpobst.com>
6811 * Form.cs: Don't set AutoScaleMode in AutoScale if we don't have to.
6814 2008-01-23 Geoff Norton <gnorton@novell.com>
6816 * XplatUICarbon.cs: Remove some dead code that was causing warnings.
6818 2008-01-23 Geoff Norton <gnorton@novell.com>
6820 * XplatUICarbon.cs: Re-enabled Carets in QuickDraw as a overlay window.
6822 2008-01-23 Everaldo Canuto <ecanuto@novell.com>
6824 * SplitContainer.cs: Remove unused declarations.
6825 * Binding.cs: Remove unused declarations.
6827 2008-01-23 Everaldo Canuto <ecanuto@novell.com>
6829 * Form.cs: Remove unused declaration of 'active' in Activate method.
6830 * Control.cs: Move declaration of nested_layout inside '#if NET_2_0" to
6831 prevent compilation warnings.
6832 * TextControl.cs: Remove unused declaration of selection_pos_on_line.
6833 * Hwnd.cs: Remove unused declaration of clip in GetClippingRectangles.
6834 * Bindings.cs: Remove unused formatting_enabled declaration.
6835 * ToolTip.cs: Put some methods inside '#if NET_2_0" to prevent compilation
6837 * TreeView.cs: Put some methods inside '#if NET_2_0" to prevent compilation
6839 * PropertyGridView.cs: Remove usused 'ex' declaration.
6840 * DataGridView.cs: Remove unused declarations.
6842 2008-01-23 Everaldo Canuto <ecanuto@novell.com>
6844 [Fixes bugs #343966, #338511 and other non reported (context)menu bugs]
6846 * Form.cs: Remove all active_tracker (used by menu) stuff, it is now moved
6847 to Control class, it makes possible to grab menu to controls that can't
6848 reach Form using parent tree. Handle for WmButtonUp, WmButtonDown and
6849 WmMouseMove removed since it was used only to track menu events.
6852 - Moved all active_tracker stuff from Form.
6853 - ProcessActiveTracker added to prevent code duplicity, now mouse events
6854 can call this method instead of reimplement all necessary code handle for
6856 - Call to ProcessActiveTracker for mouse events (WmButtonUp, WmButtonDown
6860 - Remove special handle to ToolStripOverflow, now we can grab menu to
6861 controls that can't reach Form using parent tree.
6862 - Change type of grab_control from Form to Control.
6864 2008-01-22 Geoff Norton <gnorton@novell.com>
6866 * TextBoxBase.cs: Split up the sizing of controls and placing of
6867 controls. Fixes a bug where scrollbars in Reflector could be sized
6868 wrong and have non-working thumbers.
6870 2008-01-23 Geoff Norton <gnorton@novell.com>
6872 * XplatUI.cs: Refactor environment variables to default support to the
6873 Carbon driver on the Mac.
6875 2008-01-23 Everaldo Canuto <ecanuto@novell.com>
6877 * Label.cs: Uses new LabelPainter for drawing operations.
6878 * ThemeWin32Classic.cs: DrawLabel and LabelDefaultSize removed.
6879 * Theme.cs: DrawLabel and LabelDefaultSize removed.
6881 2008-01-22 Geoff Norton <gnorton@novell.com>
6883 * XplatUICarbon.cs: Enable packing scroll delta into the mouse wParam
6885 2008-01-22 Jonathan Pobst <monkey@jpobst.com>
6887 * ThemeWin32Classic.cs: Run Flat, Button appearance, 2.0 CheckBoxes
6888 through the normal flat button code and don't draw the checkbox glyph.
6889 * Theme.cs: Button->ButtonBase signature change.
6892 2008-01-22 Everaldo Canuto <ecanuto@novell.com>
6894 * LinkLabel.cs: Uses new class LinkLabelPainter.
6896 2008-01-22 Everaldo Canuto <ecanuto@novell.com>
6898 * MessageBox.cs: Adjust right border space, we don't need to add
6899 "space_border*2" two times.
6901 2008-01-22 Jonathan Pobst <monkey@jpobst.com>
6903 * ScrollableControl.cs: With the advent of 2.0's Padding, DockPadding
6904 becomes a wrapper around Padding.
6905 [Fixes a part of bug #354676]
6907 2008-01-22 Geoff Norton <gnorton@novell.com>
6909 * Mime.cs: Avoid a needles exception on OSX if we dont have a buffer
6910 acquired. Also ensure the buffer is large enough to grab the header
6911 we need on linux boxes.
6913 2008-01-22 Jonathan Pobst <monkey@jpobst.com>
6915 * Control.cs: Implement a custom enumerator so people can delete
6916 from the Controls collection while in a foreach.
6919 2008-01-22 Ivan N. Zlatev <contact@i-nz.net>
6921 * PropertyGridView.cs: Fix focusing behavior:
6922 - Tab should focus the grid text box.
6923 - Clicking on the labels shouldn't focus the grid text box.
6925 2008-01-22 Ivan N. Zlatev <contact@i-nz.net>
6927 * PropertyGridView.cs: IsValueTypeGridItem should return true
6930 2008-01-22 Ivan N. Zlatev <contact@i-nz.net>
6932 * PropertyGrid.cs, GridEntry.cs, PropertyGridView.cs:
6933 - Renamed GridEntry.SelectedObjects to TargetObjects to better
6934 reflect the property name role.
6935 - PropertyGrid.GetTarget is not required as the target is known
6937 - Setting values will handle value types as a special case now and
6938 populate them up in the chain.
6941 2008-01-21 Jonathan Pobst <monkey@jpobst.com>
6943 * Hwnd.cs: Create a public property for the Graphics we keep around.
6945 2008-01-21 Ivan N. Zlatev <contact@i-nz.net>
6947 * PropertyGridView.cs: Just hide the grid textbox and do nothing more
6948 when the current object selection changes.
6949 Fixes failing test SelectedObject_Null2.B5.
6951 2008-01-21 Ivan N. Zlatev <contact@i-nz.net>
6953 * PropertyGrid.cs: Process Browsable properties with
6954 DesignerSerializationVisibilityAttribute.Content as being expandable.
6955 This seems also what MS does. Without this e.g SplitContainer.Panel1/2
6956 will not be expandable. We should be nested components-friendly now.
6958 2008-01-21 Andreia Gaita <avidigal@novell.com>
6960 * WebBrowserBase.cs: Check if control was loaded properly,
6961 don't bind if it wasn't.
6963 * HtmlDocument.cs: Implement CreateElement, Equals, Focus,
6964 GetElementFromPoint, equality operators, OpenNew, Write.
6965 Remove extra set_Body
6967 2008-01-18 Jonathan Pobst <monkey@jpobst.com>
6969 * ContainerControl.cs, Control.cs: Apply patch from James Purcell
6970 that makes our AutoScale* stuff more tolerant to different orders
6971 of being set. [Fixes bug #354669]
6973 2008-01-18 Ivan N. Zlatev <contact@i-nz.net>
6975 * PropertyGridView.cs, PropertyGridTextBox.cs:
6976 Drop WM_LBUTTONDOWN msg sending and use focusing instead.
6977 [Fixes #339005 and #348209]
6979 2008-01-18 Ivan N. Zlatev <contact@i-nz.net>
6981 * PropertyGridView.cs: Hide the grid text box before adjusting it
6982 for the newly selected GridItem.
6985 2008-01-18 Jonathan Pobst <monkey@jpobst.com>
6987 * Form.cs: Give MDI children the opportunity to cancel the parent form
6988 attempting to close. Ensure that all [Form]Clos[ing,ed] events get called
6989 properly for both the parent and child.
6990 * Application.cs: Signature of internal method changed, pass the previous
6994 2008-01-17 Ivan N. Zlatev <contact@i-nz.net>
6996 * PropertyGridView.cs: Set the property value only if it has changed.
6999 2008-01-17 Jonathan Pobst <monkey@jpobst.com>
7001 * MenuAPI.cs: Windows sends us MOUSEMOVE messages when any key is pressed.
7002 If the mouse hasn't actually moved, ignore these messages so the currently
7003 highlighted menuitem isn't reset to the one under the mouse.
7006 2008-01-17 Ivan N. Zlatev <contact@i-nz.net>
7008 * PropertyGridView.cs: When the property changes Invalidate the GridItem
7009 in order for the properties with UITypeEditor.GetPaintValueSupported == true
7010 to reflect the change visually.
7013 2008-01-17 Jonathan Pobst <monkey@jpobst.com>
7015 * ButtonBase.cs: Add LineLimit to 1.1 button drawing, and TextBoxControl
7016 to 2.0 button drawing.
7017 * ThemeWin32Classic.cs: Ensure that the rectangle we are using to draw
7018 the button text is tall enough for one line. LineLimit says it will
7019 always draw at least one line, but it is a lie.
7022 2008-01-17 Atsushi Enomoto <atsushi@ximian.com>
7024 * XplatUIStructs.cs, X11Keyboard.cs :
7025 added some more VK_* keys to be handled.
7027 2008-01-16 Andreia Gaita <avidigal@novell.com>
7029 * Control.cs: Check if there is a container before setting or getting
7030 the validation flag.
7032 2008-01-16 Andreia Gaita <avidigal@novell.com>
7034 * ContainerControl.cs: Add flag to track if a control cancels validation,
7035 so we don't fire click events.
7038 - (HandleClick) Check if validation was cancelled before firing the click
7039 events (doubleclicks are fired, but not clicks)
7040 - (WmLButtonDown) Reset validation flag. The flag is normally reset on
7041 ContainerControl.set_ActiveControl, but in the case of non-selectable
7042 controls, like a Label, activecontrol is not set.
7044 * ButtonBase.cs: Only fire clicks if validation passes.
7048 2008-01-16 Geoff Norton <gnorton@novell.com>
7050 * XplatUICarbon.cs: Implement GetAutoScaleSize to fix Reflector on
7053 2008-01-16 Jonathan Pobst <monkey@jpobst.com>
7055 * FolderBrowserDialog.cs: If we cannot interpret the user's requested
7056 SelectedPath, just display the default dialog instead of crashing.
7059 2008-01-16 Geoff Norton <gnorton@novell.com>
7061 * XplatUICarbon.cs: Flicker be gone! Generate our messages in
7062 AddExpose instead of trusting apples compositing manager which doesn't
7063 work for our use case. Remove some dead code causing warnings and
7064 redecorate some other code to prevent warnings.
7066 2008-01-16 Geoff Norton <gnorton@novell.com>
7068 * XplatUICarbon.cs: Avoid some unecessary invalidation calls when
7069 carbon signals us to redraw. Fixes another portion of the flickering bug
7071 2008-01-16 Everaldo Canuto <ecanuto@novell.com>
7073 * Form.cs: Prevent the MdiParent property to be set when value is the same
7074 as value already set. Fixes bug #328019.
7076 2008-01-16 Everaldo Canuto <ecanuto@novell.com>
7078 * Form.cs: Don't set mdi_parent as null when mdi window close is prevented,
7079 it prevents NRE when closing mdi child windows. Fixes bug #325211.
7081 2008-01-16 Everaldo Canuto <ecanuto@novell.com>
7083 * InternalWindowManager.cs: Invalidade close button after mouse up when
7084 mdi form is prevented to close.
7086 2008-01-16 Everaldo Canuto <ecanuto@novell.com>
7088 * MdiClient.cs: Fix the minimum bounds on child window sizes when cascade,
7089 thanks to Andy Hume. Fixes bug #325433.
7091 2008-01-16 Andreia Gaita <avidigal@novell.com>
7093 * LinkLabel.cs: Reset focused_index when resellecting the control.
7096 2008-01-15 Geoff Norton <gnorton@novell.com>
7098 * XplatUICarbon.cs: Rework Grab/Ungrab handling to send some needed
7101 2008-01-15 Jonathan Pobst <monkey@jpobst.com>
7103 * Form.cs: Change 2 more AutoScaleBaseSize calculation to round instead
7106 2008-01-15 Jonathan Pobst <monkey@jpobst.com>
7108 * ContainerControl.cs: Setting AutoScaleMode to anything should set
7109 Form.AutoScale to false.
7110 * Form.cs: Setting AutoScale to true should set AutoScaleMode to None.
7111 AutoScaleBaseSize should be changed on Font change unless it has been
7115 2008-01-15 Everaldo Canuto <ecanuto@novell.com>
7117 * MenuAPI.cs: On instance of MenuTracker check if source control is
7118 ToolStripOverflow and use properly method to find form.
7121 2008-01-15 Everaldo Canuto <ecanuto@novell.com>
7123 [Fixes bug #323241 Transparent toolbar support]
7125 * ToolBar.cs: Define ToolBarStyles.TBSTYLE_FLAT in CreateParams when toolbar
7128 * Control.cs: Paint background as transparent in case of TBSTYLE_FLAT is
7129 defined in control style to mimic win32 behavior.
7131 * ThemeWin32Classic.cs: Don't paint background for flat apparence toolbar,
7132 it will be transparent.
7134 2008-01-14 Everaldo Canuto <ecanuto@novell.com>
7136 * XplatUIStructs.cs: Implement ToolBarStyles to use in Style property of
7137 CreateParams for ToolBar controls.
7139 2008-01-14 Jonathan Pobst <monkey@jpobst.com>
7141 * Form.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs: Forms with
7142 FixedToolWindow, SizeableToolWindow, or None for border styles have
7143 different minimum sizes than regular forms. Implemented to fix
7144 regression in PDN with toolbox being too wide.
7146 2008-01-14 Andreia Gaita <avidigal@novell.com>
7148 * HtmlElementCollection.cs: Implemented
7150 * HtmlElement.cs: Implemented:
7158 * HtmlDocument.cs: Implemented GetElementsByTagName.
7160 2008-01-14 Jonathan Pobst <monkey@jpobst.com>
7162 * Screen.cs: Stub BitsPerPixel to always return 32.
7164 2008-01-14 Jonathan Pobst <monkey@jpobst.com>
7166 * Form.cs: Implement RestoreBounds.
7168 2008-01-14 Jonathan Pobst <monkey@jpobst.com>
7170 * RichTextBox.cs, ToolStrip.cs: Fix some typos pointed out by
7171 Sebastien and his fabulous magical problem-finding machine:
7172 Gendarme. Also put a MonoTodo on AutoWordSelect since we don't
7173 respect the value set.
7175 2008-01-14 Everaldo Canuto <ecanuto@novell.com>
7177 * Form.cs: In WmWindowPosChanged call base.WndProc including when state is
7178 minimized. Fixes bug #325122 for Win32. Thanks Srikanth Madikeri.
7180 2008-01-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7182 * X11Dnd.cs: Since we don't propagate the WM_LBUTTONUP/WM_RBUTTONUP
7183 messages (to match .Net), we need to remove the capture ourselves.
7185 2008-01-11 Jonathan Pobst <monkey@jpobst.com>
7187 * MenuAPI.cs: If we get an Alt-F4, release our capture so Windows
7188 will process the message and close our window.
7191 2008-01-10 Geoff Norton <gnorton@novell.com>
7193 * XplatUICarbon.cs: Clip the Graphics context to the invalid area
7194 tracked in the Hwnd. Only invalidate the dirty region to the Carbon
7197 2008-01-10 Jonathan Pobst <monkey@jpobst.com>
7199 * Form.cs: Enforce the Form minimum size in SetBoundsCore. Fixed
7202 2008-01-10 Jonathan Pobst <monkey@jpobst.com>
7204 * XplatUIX11.cs: Set a minimum window size and enforce it. Even though
7205 Linux doesn't care, having a minimum matches MS and keeps the window
7206 from becoming too small to use window decorations.
7209 2008-01-10 Jonathan Pobst <monkey@jpobst.com>
7211 * ThemeWin32Classic.cs: Tie CheckBox/RadioButton focus rectangles to
7212 ShowFocusCues. Make focus rectangles fit the text instead of the whole
7213 control. [Fixes bug #325419]
7215 2008-01-10 Jonathan Pobst <monkey@jpobst.com>
7217 * ComboBox.cs: Guard against an NRE if the user open a new form from a
7218 SelectedIndexChanged event. This closes the combobox dropdown, and we
7219 were trying to dispose it. [Fixes bug #352830]
7221 2008-01-09 Jonathan Pobst <monkey@jpobst.com>
7223 * Control.cs, Form.cs: Implement the necessary semantics for
7224 ShowFocusCues. All paint code will need to check Control.ShowFocusCues
7225 to determine if a focus rectangle should be drawn.
7226 * PropertyGrid.cs: Fix property visibility to match override.
7227 * ThemeWin32Classic.cs: Use ShowFocusCues for Button.
7229 2008-01-09 Jonathan Pobst <monkey@jpobst.com>
7231 * Application.cs: Use GetCommandLineArgs to calculate ExecutablePath.
7234 2008-01-09 Geoff Norton <gnorton@novell.com>
7236 * XplatUICarbon.cs: Scroll windows in the correct direction.
7238 2008-01-09 Geoff Norton <gnorton@novell.com>
7240 * XplatUICarbon.cs: Track all created utility windows so we can hide them
7241 when the app is deactivated or spaces is enabled.
7243 2008-01-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7245 * ListViewItem.cs: Cosmetic fix - When calculating layout for item, don't add an
7246 extra separation pixel for the label rect origin if SmallImageList is
7247 null, and thus we don't need that separation between icon and label
7249 Patch by Ernesto Carrea.
7252 2008-01-08 Jonathan Pobst <monkey@jpobst.com>
7254 * StatusStrip.cs: Invalidate after completing a layout. The base
7255 OnLayout does this, but we don't call the base.
7256 * ToolStripItem.cs: Revert the previous change to invalidate after
7258 [Fixes bug #351341 better.]
7260 2008-01-07 Geoff Norton <gnorton@novell.com>
7262 * XplatUICarbon.cs: WM_DESTROY is a teardown of a single window
7263 not a notification to exit the application. Listen for WM_QUIT
7266 2008-01-07 Andreia Gaita <avidigal@novell.com>
7268 * HtmlDocument.cs: Fix case on GetElementById (interface changed)
7270 2008-01-07 Jonathan Pobst <monkey@jpobst.com>
7272 * ToolStripItem.cs: If the bounds of an item changes, invalidate it
7273 so it can repaint at the correct location.
7276 2008-01-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7278 * ListControl.cs: SelectedValue should return a null value if
7279 SelectedIndex is -1. Also, when setting it, it should throw an
7280 ArgumentNullException if the value is null, as well as taking
7281 into account the String.Empty value, instead of ignoring it (we have
7282 tests for that now).
7283 Fixes part of #324286.
7285 2008-01-06 Jonathan Pobst <monkey@jpobst.com>
7287 * TextBoxBase.cs, TextControl.cs: Patch from Luke Page to ensure
7288 SelectionStart is updated after pressing enter. Fixes bug #351918.
7290 2008-01-05 Jonathan Pobst <monkey@jpobst.com>
7292 * TextControl.cs: Revert a piece r92316 that prevented the fix
7293 from working when there were multiple tags in the text box.
7296 2008-01-05 Jonathan Pobst <monkey@jpobst.com>
7298 * TextControl.cs: Apply patch from Luke Page that prevents an
7299 NRE when determining the beginning of a paragraph.
7302 2008-01-05 Jonathan Pobst <monkey@jpobst.com>
7304 * TextBoxBase.cs: Apply patch from Luke Page that ensures the
7305 caret gets moved with clicking away from a selected block of
7306 text. Fixes bug #351885.
7308 2008-01-05 Jonathan Pobst <monkey@jpobst.com>
7310 * TextControl.cs: Apply patch from Luke Page that takes line
7311 alignment into account for mouse selection, so that center and
7312 right aligned text can be selected.
7315 2008-01-05 Jonathan Pobst <monkey@jpobst.com>
7317 * RichTextBox.cs: Apply patch from Luke Page that fixes some caret
7318 issues after loading an RTF file by using the correct line feeds.
7321 2008-01-05 Jonathan Pobst <monkey@jpobst.com>
7323 * TextControl.cs: When deleting multiple line selections, we need
7324 to invalidate every line beginning at the first line of the selection.
7325 Patch from Luke Page fixes bug #351791.
7327 2008-01-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7329 * ListControl.cs: When getting a CurrencyManager.PositionChanged
7330 event, don't set SelectedIndex if the number of items is 1. This is
7331 because, for the first item, PositionChanged is fired _before_
7332 ItemChanged (the place where we actually populate the items), and
7333 leave us in a temporary invalid state (since items collection is
7337 2008-01-04 Geoff Norton <gnorton@novell.com>
7339 * XplatUICarbon.cs: Create native toolwindows instead of
7340 the managed drawing ones.
7342 2008-01-03 Jonathan Pobst <monkey@jpobst.com>
7344 * LineTag.cs: If the line doesn't have any characters, return
7345 0 for GetCharIndex. Fixes an AOORE exception after certain
7346 caret movements. Fixes bug #351683. Patch by Luke Page.
7348 2008-01-03 Jonathan Pobst <monkey@jpobst.com>
7350 * TextBoxBase.cs: Apply patch from Luke Page so when backspace
7351 is hit when there is selected text, only the selected text gets
7352 deleted, not the character in front of the selection as well.
7355 2008-01-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7357 * ComboBox.cs: When the values are displayed, calculate the
7358 ComboListBox scrollbar's LargeChange based on the visible area's
7359 height and the actuall ItemHeight, instead of calculating it
7360 based on MaxDropItems value, since it's not used by our _current_
7364 2008-01-03 Jonathan Pobst <monkey@jpobst.com>
7366 * Line.cs, LineTag.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs:
7367 Patch from Luke Page that fixes issues with font colors and styles
7368 not showing up in a readonly RichTextBox. Fixes bug #324354.
7370 2008-01-03 Jonathan Pobst <monkey@jpobst.com>
7372 * Line.cs, RichTextBox.cs, TextControl.cs: Another awesome patch
7373 from Luke Page. This one fixes bug #349926.
7375 2007-12-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7377 * CurrencyManager.cs: Actually fire the 2.0 ListChanged event when
7378 an item in the IBindingList source changes with
7379 ListChangedType.ItemAdded. Ignore for now firing the event for other
7380 changes, since we want to have tests for those cases as well.
7382 2007-12-28 Jonathan Pobst <monkey@jpobst.com>
7384 * TextBoxBase.cs: Don't store a 1x1 Bitmap for every TextBox
7387 2007-12-28 Jonathan Pobst <monkey@jpobst.com>
7389 * TextBoxTextRenderer.cs: Implement a cache for measuring each
7390 character. This is effective because the typical usage of a
7391 TextBox is with a limited amount of fonts and characters, and
7392 the current implementation of TextBox measures everything one
7393 character at a time. Another second or two speedup for bug #347238.
7395 2007-12-28 Jonathan Pobst <monkey@jpobst.com>
7397 * Control.cs: Rewrite the Font getter to only query the parent's
7398 Font property once instead of twice. Since this operation is
7399 recursive, the queries were growing exponentially as the control
7400 tree got deeper. Another second or two speedup for bug #347238.
7402 2007-12-28 Jonathan Pobst <monkey@jpobst.com>
7404 * Control.cs: Avoid setting a parent (and more importantly, updating
7405 the zorder of all its children) if the parent is already correct in
7406 WmShowWindow. Decreases the startup time of the test case on bug
7407 #347238 from 35 seconds to 11 seconds.
7409 2007-12-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7411 * X11Dnd.cs: When the dnd operation has started and we are
7412 in the dnd loop, don't dispatch either WM_LBUTTONUP nor WM_RBUTTONUP.
7413 This is done to match .Net, which doesn't send those messages after
7414 dnd operation was completed/cancelled.
7417 2007-12-27 Jonathan Pobst <monkey@jpobst.com>
7419 * ToolStrip.cs: Previous change should be != null, not == null.
7422 2007-12-27 Jonathan Pobst <monkey@jpobst.com>
7424 * ToolStrip.cs: Guard against an NRE after ItemClicked is called, the
7425 user may have moved the mouse off the current item during the event.
7427 2007-12-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7429 * ListView.cs: In ItemControl.ItemsMouseMove, try to avoid
7430 calling GetItemAt for every MouseMove event by also taking into
7431 account whether any mouse button is pressed (probably dragging);
7432 if so, we can call GetItemAt, and if not, try to not call it
7433 (GetItemAt can be quite expensive when used with a large number of items).
7435 2007-12-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7437 * ListView.cs: Implement -finally- support for dnd, by calling
7438 OnItemDrag as needed. Also, remove the dnd TODO, and add myself to the
7440 * ListViewInsertionMark.cs: Implement NearestIndex method, by doing a
7441 simple calculation of distances for all the items in the owner
7444 2007-12-21 Geoff Norton <gnorton@novell.com>
7446 * XplatUICarbon.cs: Ensure that we create WindowMapping handles
7447 for windows that are originally created as invisible. Fixes missing
7448 main window in paint-mono.
7450 2007-12-21 Geoff Norton <gnorton@novell.com>
7452 * XplatUICarbon.cs: Register our D&D handler. Register our custom
7453 subclass handler for com.novell.mwfview subclassing HIView. Implement
7454 Pasteboard and Dnd methods.
7456 2007-12-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7458 * ListBox.cs: When we got focus, give focus to first item if there
7459 wasn't any pervious focused item. Also update navigation to depend on
7460 SelectedIndex rather than FocusedItem, just as .Net does.
7463 2007-12-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7465 * ListBox.cs: Both FindString and FindStringExact methods must do an
7466 case insensitive search, should allow the last valid index to be
7467 passed in the overload taking an initial index, and should also
7468 continue searching from the top back to the specified index when it
7471 2007-12-19 Jonathan Pobst <monkey@jpobst.com>
7473 * TextControl.cs: Apply patch from Luke Page that fixes a scrolling
7474 redraw issue, and allows RichTextBox to draw colored text even while
7475 disabled or readonly.
7477 2007-12-19 Jonathan Pobst <monkey@jpobst.com>
7479 * RichTextBox.cs, TextBoxBase.cs: Apply patch from Luke Page that
7480 disallows cut/paste in a readonly textbox, adds support for Shift-Insert,
7481 and doesn't grey text in a disabled RichTextBox.
7483 2007-12-19 Jonathan Pobst <monkey@jpobst.com>
7485 * RichTextBox.cs: Apply patch from Luke Page that adds better support
7486 for many RTF commands: quad alignment, separate formatting for blocks
7487 inside groups, and ParDef support. Makes the test case from bug #324589
7490 2007-12-19 Jonathan Pobst <monkey@jpobst.com>
7492 * LineTag.cs: Fix an error in the new Draw method that caused
7493 a crash when rendering the document on bug #324589.
7495 2007-12-19 Jonathan Pobst <monkey@jpobst.com>
7497 * Line.cs, LineTag.cs, RichTextBox.cs, TextBoxBase.cs,
7498 TextControl.cs: Apply patch from Luke Page that adds support
7499 for URL links in RichTextBox.
7500 [Fixes enhancement #342516]
7502 2007-12-18 Everaldo Canuto <ecanuto@novell.com>
7504 * MenuItem.cs: When cloning menuitem clone also name and tag properties for
7505 2.0 profile. Thanks Ernesto Carrea and Luke Page. Fixes bug #340289.
7507 2007-12-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7509 * ListBox.cs: When a key gets pressed, try to find a string
7510 if the key is a character or a digit.
7513 2007-12-17 Jonathan Pobst <monkey@jpobst.com>
7515 * TableLayoutPanel.cs: Remove some unused variables.
7517 2007-12-17 Jonathan Pobst <monkey@jpobst.com>
7519 * DateTimePicker.cs: Commit patch from Luke Page that ensures
7520 we don't end up at an invalid date when we click the up/down
7521 spinner to change the month or year. Fixes bug #348682.
7523 2007-12-17 Jonathan Pobst <monkey@jpobst.com>
7525 * Application.cs: Calling Exit in 2.0 should chain to the
7526 Exit (CancelEventArgs) version so it can be cancelled.
7527 * Form.cs: Create a flag to allow raising the Closing
7528 events to be skipped. We raise them once in Application.Exit
7529 and don't want to raise them again when the Form is actually
7530 closed. [Fixes bug #349073]
7532 2007-12-16 Jonathan Pobst <monkey@jpobst.com>
7534 * ToolStripDropDown.cs: Guard against an NRE when there
7535 hasn't been a mainform set in the application context.
7538 2007-12-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7540 * ListBox.cs: When SetBoundsCore gets called, besides
7541 calling UpdateScrollBars, update the value of
7542 last_visible_index, since we could need to show more items
7543 than before, and we need to let the paint routines know that.
7546 2007-12-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7548 * ListView.cs: Add DesignerSerializationVisibility attribute to
7549 InsertionMark property.
7550 * ListViewItem.cs: Add same attribute to Position property.
7552 2007-12-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7554 * ListViewItem.cs: .ctor (SerializationInfo, StreamingContext)
7557 2007-12-14 Jonathan Pobst <monkey@jpobst.com>
7559 * ThemeWin32Classic.cs: Don't draw the background on a
7560 flat button if there is a background image.
7563 2007-12-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7565 * ListBox.cs: If we remove the item currently selected,
7566 remove it not only from SelectedItems, but also
7567 resetting selected_index. Moreover, set focused_item to Items.Count - 1 if
7568 the items count decreased and focused_item has bigger value than that.
7570 2007-12-13 Jonathan Pobst <monkey@jpobst.com>
7572 * Control.cs: Perform our layout after we resize ourselves
7573 if we had to adjust our AutoSize. Missed commit for bug
7576 2007-12-13 Jonathan Pobst <monkey@jpobst.com>
7578 * TableLayoutPanel.cs: Override GetPreferredSizeCore so
7579 we can provide an implementation of AutoSize.
7582 2007-12-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7584 * ListBox.cs: Add the internal overload Sort (bool paint),
7585 to indicate whether we actually need a paint or we will
7586 call Refresh ourselves. This way we don't request a paint
7587 _before_ having an updated and valid layout.
7590 2007-12-12 Andreia Gaita <avidigal@novell.com>
7592 * XPlatUIX11.cs: Send paint messages when updating a systray icon
7593 * NotifyIcon.cs: Invalidate the window before doing a systray change so it is
7594 properly invalidated.
7597 2007-12-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7599 * ListViewItem.cs: When using a .ctor taking a ListViewGroup,
7600 don't simply assign it to our internal group field, but instead
7601 use our Group property, which should do all the neccessary work
7602 required to support groups. Fixes an issue reported to me (mail) by a
7603 guy using this new feature.
7605 2007-12-11 Jonathan Pobst <monkey@jpobst.com>
7607 * Control.cs: Use Scale instead of ScaleControl to ensure the
7608 whole hierarchy gets scaled.
7611 2007-12-10 Jonathan Pobst <monkey@jpobst.com>
7613 * DateTimePicker.cs: Don't set the internal MonthCalendar's
7614 Parent property. Doing this causes the control to be hosted by
7615 the Form instead of being a popup window.
7618 2007-12-10 Jonathan Pobst <monkey@jpobst.com>
7620 * ToolStripItemCollection.cs: If we try to insert a ToolStripItem
7621 at an index higher than Count, just use Add instead of Insert.
7624 2007-12-10 Jonathan Pobst <monkey@jpobst.com>
7626 * ThemeWin32Classic.cs: Don't draw a PictureBox's background in
7627 DrawPictureBox, this is handled by Control.PaintBackground.
7630 2007-12-10 Everaldo Canuto <ecanuto@novell.com>
7632 * MenuAPI.cs: When process menu keys return true by default only if menu is
7633 active. Fixes bug #342892.
7635 2007-12-09 Andreia Gaita <avidigal@novell.com>
7637 * Control.cs: check if windows are actually mapped before
7638 trying to zorder. Fixes #342509, #346955
7640 2007-12-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7643 * ListViewInsertionMark.cs:
7644 * ThemeWin32Classic.cs: Implement the drawing side of the
7645 new 2.0 ListView.InsertionMark property.
7647 2007-12-07 Jonathan Pobst <monkey@jpobst.com>
7649 * CurrencyManager.cs: Silence some debug spew.
7651 2007-12-07 Geoff Norton <gnorton@novell.com>
7653 * Hwnd.cs: Refactor GetClippingRectangles to suppose returning the
7654 masks for our children as well as siblings to avoid having to query
7655 Quartz for this information.
7656 * XplatUICarbon.cs: Implement a delegate based system to pass
7657 information to System.Drawing. Implement Async methods. Remove
7658 the hack for the resize thumb and imlpement a transparent Grow Box.
7659 Rework the messaging system to proplery create window's and messages,
7662 2007-12-06 Andreia Gaita <avidigal@novell.com>
7664 * X11Keyboard.cs: Use Xutf8LookupString to support international
7665 characters under alternate codepages. Patch from #340878
7667 2007-12-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7669 * ListView.cs: When doing layout computations, set position in the
7670 ListView instances (we cache the position just as .Net does).
7671 * ListViewItem.cs: New internal setter method for Position. Also set
7672 position field as also available in 1.1, since we are going to use it
7673 now in the common case.
7675 2007-12-06 Andreia Gaita <avidigal@novell.com>
7677 * Control.cs: When removing controls, get the actual container
7678 to notify about active control changes. Fixes 341314.
7680 2007-12-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7682 * ListViewItem.cs: Forgot to add Font to our serialization stuff.
7684 2007-12-05 Andreia Gaita <avidigal@novell.com>
7686 * Control.cs: When updating the zorder, ignore windows that are not
7687 mapped. Fixes #342509
7689 2007-12-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7691 * ListViewItem.cs: Actually implement serialization on this class.
7693 2007-12-05 Gert Driesen <drieseng@users.sourceforge.net>
7695 * LinkLabel.cs: Fixed paramname of ArgumentNullException in ctor of
7696 LinkCollection. Spaces to tabs, and removed extra tabs.
7698 2007-12-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
7700 * XplatUIX11.cs: Make toolwindows' decorations show up without causing any
7701 tests to fail (hopefully).
7703 2007-12-03 Jonathan Pobst <monkey@jpobst.com>
7705 * ToolStripDropDownMenu.cs: Fill in AffectedBounds when drawing
7706 the image margin so custom renderers can correctly place it.
7708 2007-12-03 Jonathan Pobst <monkey@jpobst.com>
7710 * StatusStrip.cs: Fill in AffectedBounds when drawing the grip
7711 so custom renderers can correctly place it.
7713 2007-12-03 Jonathan Pobst <monkey@jpobst.com>
7715 * Application.cs: Let WM_CHAR messages flow through to controls
7716 hosted in Strips. [Fixes bug #343972]
7718 2007-12-02 Jonathan Pobst <monkey@jpobst.com>
7720 * ToolStripManager.cs: Guard against an NRE I ran into.
7722 2007-12-02 Jonathan Pobst <monkey@jpobst.com>
7724 * LinkLabel.cs: Apply patch from George to fix bug 344012. If
7725 a Link is manually added to the Links collection, we need to set
7726 its owner, so it can invalidate properly.
7729 2007-11-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7731 * ListView.cs: When changing ListViewItem.Position (which calls
7732 ListView.ChangeItemLocation), invalidate not only the area
7733 corresponding to the main item, but also to the area occupied
7734 by the items being moved.
7736 2007-11-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7738 * ListView.cs: When changing the position of a given item,
7739 don't use item bounds, but item areas (which includes the item spacing
7740 between them). Also, use first/last position if the requested
7741 position is outside bounds (as .Net does). Invalidate the previous and
7742 new bounds. Finally, in ItemControl.ItemsMouseDown use the actual item
7743 in a specific position, instead of directly accessing Items collection
7744 (this is done to get the right item - remember an Item can have a
7745 different position in the grid than in the Items collection).
7747 2007-11-23 Everaldo Canuto <ecanuto@novell.com>
7749 * MessageBox.cs: Calculate text area instead of just top left, this rect
7750 area will be used in DrawString. Fixes bug #343364.
7752 2007-11-23 Everaldo Canuto <ecanuto@novell.com>
7754 * MessageBox.cs: Calculate max amount for text area width, it must be 60% of
7755 screen width. Partially fixes bug #343364.
7757 2007-11-23 Everaldo Canuto <ecanuto@novell.com>
7759 * NotifyIcon.cs: Remove duplicated code before call realculate and put this
7760 code inside recalculate, it makes code more simple.
7762 2007-11-22 Everaldo Canuto <ecanuto@novell.com>
7764 * NotifyIcon.cs: When recalculate icon verify if icon is active to decide
7765 between update or add icon. Fixes bug #324344.
7767 2007-11-21 Andreia Gaita <avidigal@novell.com>
7769 * XPlatUIX11.cs: Do not treat tool windows as if they have no
7770 window manager, since that stretches the drawing area to include
7771 the window decorations, and they get hidden. Reverts r84444 and fixes
7772 #335849 and #342790 (mdi and pdn3 regression)
7774 2007-11-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7776 * ListView.cs: When setting focused item, try to give focus to the
7777 previous one _only_ if the previous one remains valid.
7780 2007-11-20 Jonathan Pobst <monkey@jpobst.com>
7782 * Application.cs: Revert r89650, as it broke a common case to fix
7783 an obscure case. Fixes bug #342606.
7785 2007-11-20 Everaldo Canuto <ecanuto@novell.com>
7787 * ThemeWin32Classic.cs: Fix extra space on end of tooltip.
7789 2007-11-20 Everaldo Canuto <ecanuto@novell.com>
7791 * ThemeWin32Classic.cs: Fix tooltip text align removing horizontal
7792 alignment. [Fixes #324228]
7794 2007-11-19 Jonathan Pobst <monkey@jpobst.com>
7796 * ToolStrip.cs: Handle flow layout in GetPreferredSize to fix PDN3.
7799 2007-11-19 Everaldo Canuto <ecanuto@novell.com>
7801 * Form.cs: Check for empty Text before assign to cp.Caption in CreateParams
7802 it prevent problems when empty captions. [Fixes #342141]
7804 2007-11-19 Jonathan Pobst <monkey@jpobst.com>
7806 * Label.cs: Use Size instead of None. Fixes bug #342077.
7808 2007-11-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7810 * ListViewItem.cs: Implement 2.0 FindNearestItem method.
7812 2007-11-17 Jonathan Pobst <monkey@jpobst.com>
7814 * MenuStrip.cs: Guard against a NRE when a MdiWindowItem is set
7815 but there isn't a MdiContainer.
7818 2007-11-17 Jonathan Pobst <monkey@jpobst.com>
7820 * TextControl.cs: Don't recalculate document if the recalc_start and
7821 recalc_end hasn't changed.
7824 2007-11-17 Gert Driesen <drieseng@users.sourceforge.net>
7826 * DataGridViewTextBoxCell.cs: Removed CWL.
7828 2007-11-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7830 * ListView.cs: Implement 2.0 SearchForVirtualItem event support.
7832 2007-11-16 Jonathan Pobst <monkey@jpobst.com>
7834 * TextControl.cs: Missed some code for bug 341534 to trigger a
7835 recalculation when the font changes.
7837 2007-11-16 Andreia Gaita <avidigal@novell.com>
7839 * Control.cs: When updating the zorder, check if the child to update is
7840 the same control that is set to always be on top (i.e., scrollbars), and
7841 just put it on top directly. Fixes BadMatch error on pdn3
7843 2007-11-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7845 * ListView.cs: Throw the needed exceptions for FindNearestItem.
7847 2007-11-16 Jonathan Pobst <monkey@jpobst.com>
7849 * Control.cs: Don't perform a new layout when a label changes its text,
7850 cause label handles its own autosizing.
7853 2007-11-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7855 * ListView.cs: Implement 2.0 FindNearestItem methods.
7857 2007-11-15 Jonathan Pobst <monkey@jpobst.com>
7859 * ToolStripPanel.cs: Make Join at least add the control to the panel,
7860 even if the rest of what Join does isn't supported. Add some more
7861 support for vertical toolbars.
7862 * ToolStripPanelRow.cs: Add some more support for vertical toolbars.
7863 [Fixes the application breaking parts of bug #341998]
7865 2007-11-15 Jonathan Pobst <monkey@jpobst.com>
7867 * ToolStripItem.cs: When determining if we have a check/image margin,
7868 we need to look at ShowCheckMargin as well as ShowImageMargin.
7870 2007-11-15 Geoff Norton <gnorton@novell.com>
7872 * XplatUIOSX.cs: Rename to...
7873 * XplatUICarbon.cs: and refactor all event handling out to the new event handling
7874 system in System.Windows.Forms.CarbonInternal. Lots of code cleanup as well.
7876 2007-11-15 Jonathan Pobst <monkey@jpobst.com>
7878 * KeysConverter.cs: The default values should be an array of Keys, not
7879 strings. Also, the array has more values for 2.0.
7882 2007-11-14 Jonathan Pobst <monkey@jpobst.com>
7884 * Application.cs: Change ExecutablePath to use
7885 Process.GetCurrentProcess ().MainModule.FileName instead of Assembly.GetEntryAssembly.
7888 2007-11-14 Jonathan Pobst <monkey@jpobst.com>
7890 * LineTag.cs: Don't attempt to draw '\r', treat it like it doesn't exist.
7891 When measureing CR or LF, use /u000D instead of /u0013. (Hex, not decimal.)
7892 * TextControl.cs: Fix a case in GetLineEnding where a \n before a \r would
7893 be ignored. Create a new GetLineEnding that can specify which types of
7894 line endings to look for. On Insert, only create new lines for \n and \r\n.
7897 2007-11-14 Jonathan Pobst <monkey@jpobst.com>
7899 * TextBoxBase.cs: As we loop through each line changing the font, tell
7900 the document that the line needs to be recalculated. Fixes bug #341534.
7902 2007-11-13 Jonathan Pobst <monkey@jpobst.com>
7903 [Another round of refactoring]
7904 * Line.cs: Add DeleteCharacters.
7905 * LineTag.cs: Add Delete.
7906 * TextBoxBase.cs: Update to use new methods.
7907 * TextControl.cs: Refactor the Delete* methods.
7909 2007-11-13 Everaldo Canuto <ecanuto@novell.com>
7911 * Win32DnD.cs: Implement Win32 Drop files, thank you Srikanth Madikeri for
7912 the patch. [Fixes #324856]
7914 2007-11-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7917 * ListViewItem.cs: Add an initial implementation of
7918 2.0 ListViewItem.Position getter.
7920 2007-11-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7922 * ListView.cs: Add a reordered_items_indices array, to allow us
7923 to have a different sorting than that of Items (the sorting in Items
7924 could not match the actual sorting in screen). This is needed to
7925 implement a pair of 2.0 features.
7926 * ListViewItem.cs: Add a DisplayIndex property to keep track of the
7927 actual position in the ListView grid, since it could have a position
7928 different than its Index (position in ListViewItemCollection).
7930 2007-11-09 Jonathan Pobst <monkey@jpobst.com>
7932 * Label.cs: Add StringFormatFlags.LineLimit. This tells DrawString to
7933 not draw partial lines.
7934 * LinkLabel.cs: Change FormatFlags setter from = to |= so that the
7935 LineLimit flag from the base is preserved.
7936 Fixes the windows part of bug #338965.
7938 2007-11-09 Jonathan Pobst <monkey@jpobst.com>
7940 * TextBoxBase.cs: Move handling of the enter key from KEYDOWN to CHAR
7941 so that it can be canceled in KeyPress.
7944 2007-11-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7946 * ListView.cs: In ItemControl, reset mouse-handling related
7947 fields even if we dont' have items (we still should reset them when
7948 we had items but then called Items.Clear). Partially based in a patch
7952 2007-11-08 Gert Driesen <drieseng@users.sourceforge.net>
7954 * Application.cs: In ProductVersion first try AssemblyFileVersion
7955 before falling back to assembly version. Fixes bug #339787.
7957 2007-11-08 Andreia Gaita <avidigal@novell.com>
7959 * HtmlElement.cs: Implement InnerText setter.
7960 * WebBrowserBase.cs: Implement Navigated event support.
7961 Add flag to track when the browser "document" is ready to be retrieved.
7962 * WebBrowser.cs: Implement CanGoBack, CanGoForward, Title, Url.
7963 Make sure browser document is ready before retrieving it.
7964 Clean up cached objects (document) when moving to a new page through
7965 any of the navigation methods.
7966 Use the new Mono.WebBrowser.INavigation interface to control navigation.
7967 Implement OnNavigated event.
7969 2007-11-07 Jonathan Pobst <monkey@jpobst.com>
7971 * ThemeWin32Classic.cs: Don't draw the background in DrawLabel or
7972 DrawLinkLabel, this is handled by OnPaintBackground.
7973 Fixes bug #339565, part II.
7975 2007-11-07 Andreia Gaita <avidigal@novell.com>
7977 * Control.cs: Revert r88915. Selecting text on a textbox depends on
7978 getting a Select call on click, so this call needs to be here for now.
7981 2007-11-07 Geoff Norton <gnorton@novell.com>
7983 * OSXStructs.cs: Add the kEventClassApplication constants.
7984 * XplatUIOSX.cs: Send a WM_LBUTTONDOWN to the Grab window when the
7985 application is deactivated otherwise Menu overlays linger on top of
7986 other application windows.
7988 2007-11-07 Geoff Norton <gnorton@novell.com>
7990 * XplatUIOSX.cs: Dont throw an exception on OverrideCursor as we
7991 dont support cursors yet anyways. This allows Reflector to run.
7993 2007-11-07 Geoff Norton <gnorton@novell.com>
7995 * XplatUIOSX.cs: Implement DragSize.
7997 2007-11-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7999 * ListView.cs: When we receive a WM_LBUTTONDOWN message in
8000 ItemControl, request the focus, as .Net does. This is needed after
8001 Control does not request focus anymore when it receives a
8004 2007-11-06 Jonathan Pobst <monkey@Jpobst.com>
8006 * Label.cs: Make DrawImage internal so it can be called from Theme code.
8007 Remove the DrawImage call from OnPaint.
8008 * LinkLabel.cs: Remove the DrawImage call from OnPaint.
8009 * ThemeWin32Classic.cs: Call DrawImage after we paint the background,
8010 but before we draw the text for DrawLabel and DrawLinkLabel.
8013 2007-11-05 Andreia Gaita <avidigal@novell.com>
8015 * Control.cs: Remove select call on click. Fixes #325809
8017 2007-11-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8019 * ListViewItem.cs: Add 2.0 Position property getter.
8021 2007-11-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8023 * ListView.cs: Add 2.0 BackgroundImageTiled property.
8024 Also, to make it work properly, change item's BackColor and
8025 BackgroundImageLayout as needed.
8026 * ThemeWin32Classic.cs: Don't fill any background rectangle
8027 in ListView.ItemControl when drawing items; just let the Control
8028 base implementation fill it.
8030 2007-11-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8032 * ListViewGroup.cs: Adda TypeConverter attribute for this class,
8033 as well as adding a custom 'dummy' Converter, as .net does.
8035 2007-11-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8037 * PropertyGridView.cs: When clicking drop-down button,
8038 select an index in the listbox only if our standard values collection
8039 has one or more items.
8041 2007-11-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8043 * ListViewItem.cs: Add a DefaultValue attribute to 2.0 IndentCount
8046 2007-11-04 Gert Driesen <drieseng@users.sourceforge.net>
8048 * PropertyGrid.cs: In PropertySort, update the toolbar buttons even if
8049 the value is not changed. This ensure a pushed button remains in that
8050 state when clicked again. When switching the value of PropertySort
8051 between Categorized and CategorizedAlphabetical, do not update the
8052 grid items and do not fire a PropertyChangedEvent. When clicking the
8053 sorting buttons, do not modify the PropertySort value when switching
8054 between Categorized and CategorizedAlphabetical but only update the
8057 2007-11-04 Gert Driesen <drieseng@users.sourceforge.net>
8059 * Label.cs: Make AutoEllipsis internal on 1.0 profile. Code
8061 * PropertyGrid.cs: Also put Categorized button in pushed state when
8062 PropertySort is CategorizedAlphabetical. Set AutoEllipsis to true
8063 for help description label.
8065 2007-11-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8067 * ListView.cs: When calculating the biggest item for a given column,
8068 take into account 2.0 LIstViewItem.IndentCount, since it directly affects
8071 2007-11-03 Gert Driesen <drieseng@users.sourceforge.net>
8073 * PropertyGrid.cs: Fixed default value for PropertySort. Allow invalid
8074 value for PropertySort on 1.0 profile. PropertySortChanged event
8075 should only be fired on 2.0 profile. Fixed NullReferenceException
8076 in UpdateSortLayout when PropertyGrid contains no items.
8078 2007-11-02 Jonathan Pobst <monkey@jpobst.com>
8080 * MessageBox.cs: Patch from George to implement MessageBoxDefaultButton.
8083 2007-11-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8085 * ListViewItem.cs: Implement 2.0 IndentCount property.
8087 2007-11-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8089 * X11Dnd.cs: When sending status in a dnd operation, compare current
8090 effect with the 'allowed' field instead of 'drag_data.Allowed', since
8091 the later is only created when a Winforms application is both the
8092 source and the target, but not when we are the target only.
8093 Fixes part of #324251.
8095 2007-11-01 Geoff Norton <gnorton@novell.com>
8097 * XplatUI*.cs: Add GetPreviousWindow utility method to return windows in
8099 * Hwnd.cs: Add initial implementation of GetClippingRectangles to clip sibling
8100 children out of the drawing view on mac.
8101 * XplatUIOSX.cs: Code cleanup. Handle more window grab cases. Fix SetParent
8102 to handle the orphan and invisible case (1/2 fixes TabStrip drawing in FormsTest)
8104 2007-11-01 Jonathan Pobst <monkey@jpobst.com>
8106 * ToolStrip.cs: Don't process MouseUp for a ToolStripControlHost, clicking
8107 on the non-hosted-control part of it shouldn't do anything.
8108 Fixes part of bug #327498.
8110 2007-11-01 Andreia Gaita <avidigal@novell.com>
8112 * WebBrowserBase.cs: revert previous change, resize can be called anytime
8114 2007-11-01 Jonathan Pobst <monkey@jpobst.com>
8116 * Application.cs: When a toolstrip has the keyboard input loop, let messages
8117 it does not use flow through to controls that are hosted in menus.
8118 Same with mouse clicks.
8119 * Form.cs: Don't close all menus on click if the click is on a
8120 control hosted in a menu.
8121 Fixes part of bug #327498, and part of bug #325969.
8123 2007-10-31 Andreia Gaita <avidigal@novell.com>
8125 * WebBrowserBase.cs: Only call resize on gluezilla when it is active
8127 2007-10-31 Jonathan Pobst <monkey@jpobst.com>
8129 * TextBoxBase.cs: Use int.MaxValue for MaxLength instead of magic number.
8130 Addresses an issue raised in bug #336218.
8132 2007-10-30 Jonathan Pobst <monkey@jpobst.com>
8134 * Form.cs: Patch from George that moves the conversion of ClientSize->Size
8135 for PreferredSize from OnLayout to PreferredSize. Fixes bug #325242.
8137 2007-10-30 Andreia Gaita <avidigal@novell.com>
8139 * ContainerControl.cs: Check if the active control is a
8140 child of a removed control and update active_control accordingly.
8143 2007-10-29 Jonathan Pobst <monkey@jpobst.com>
8145 * DateTimePicker.cs: Throw ArgEx if the Value is set outside the MinDate
8146 or the MaxDate. Fixed bug #337693.
8148 2007-10-29 Jonathan Pobst <monkey@jpobst.com>
8150 * XplatUIWin32.cs: Always call SetWindowPos with SWP_FRAMECHANGED flag
8151 after calling SetWindowLong for a form, to force an immediate NC refresh.
8152 Fixes first part of bug #325150.
8154 2007-10-29 Jonathan Pobst <monkey@jpobst.com>
8156 * ComboBox.cs: Don't try to resize the listbox when we are DropDownStyle
8157 simple. Fixes the last part of bug #322668.
8159 2007-10-29 Jonathan Pobst <monkey@jpobst.com>
8161 * MessageBox.cs: If the owner is TopMost, then the MessageBox form
8162 needs to be TopMost as well, or else the MessageBox is under the form.
8163 Patch by George fixes bug #325300.
8165 2007-10-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8167 * X11Dnd.cs: When starting a new drag operation, reset the static
8168 'dropped' field to false (previously the implementation didn't reset
8169 it and got confused after the first drag).
8172 2007-10-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8174 * PropertyGrid.cs: When PropertySort changes, re-organize the grid
8175 items instead of re-creating them all. For this purpose we now cache
8176 both CategoryGridEntry items and the GridEntries for the main object's
8178 * GridItem.cs: Make SetParent method abstract.
8179 * GridEntry.cs: Override the SetParent method (already there, but now
8183 2007-10-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8185 * PropertyGridView.cs: Set the plus/minus bounds of a grid item
8186 depending on its depth (as .Net does). Update the needed values in
8187 MouseDown handler. Also draw the plus/minus rect after the label,
8188 so we don't draw on top of it.
8190 2007-10-24 Everaldo Canuto <ecanuto@novell.com>
8192 * MenuAPI.cs: Return true as default in ProcessKeys to prevent keys to be
8193 processed by forms or controls when menu is active. [Fixes #333548]
8195 2007-10-24 Jonathan Pobst <monkey@jpobst.com>
8197 * ToolStripItem.cs: Don't focus a ToolStripControlHost on Select of the
8198 parent doesn't have focus. This was causing ToolStripTextBoxes to take
8199 focus on mouse over.
8201 2007-10-24 Jonathan Pobst <monkey@jpobst.com>
8203 * TextControl.cs: Code cleaning, simplifying.
8205 2007-10-24 Geoff Norton <gnorton@novell.com>
8207 * XplatUIOSX.cs: Route mouse events to the grab hwnd on mouse down as well.
8208 * XplatUIStructs.cs: Fix the ToString method of POINT and MSG.
8210 2007-10-24 Jonathan Pobst <monkey@jpobst.com>
8212 * TextBoxBase.cs: If the user sets maxlength to 0, it should mean
8213 the cap is maxvalue, not actually 0. [Fixes bug #336218]
8215 2007-10-24 Andreia Gaita <avidigal@novell.com>
8217 * SendKeys.cs: apply jpobst's patch to bug #332409
8219 2007-10-23 Andreia Gaita <avidigal@novell.com>
8221 * TextBoxTextRenderer.cs: Lower bounds max size to Int16.MaxValue, the
8222 Windows 2000 gdi DrawText call doesn't draw if it's higher than that
8225 2007-10-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8227 * PropertyGridView.cs: If a property has an UIEditor available,
8228 make the drop-down/editor button available only if the property
8231 2007-10-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8233 * PropertyGridView.cs: Don't make the grid item textbox
8234 editable when a drop-down control is available, but
8235 CanConvertFrom (typeof (string)) is false or GetStandardValuesExclusive () is
8236 true. The same bur the color of the grid item value's label.
8238 2007-10-22 Geoff Norton <gnorton@novell.com>
8240 * OSXStructs.cs: Add the needed constants for keyboard modifiers.
8241 * OSXKeyboard.cs: Initial support for keyboard and limited modifiers.
8242 * XplatUIOSX.cs: New reversible frame support. Wire in the new keyboard
8243 driver. Padd the bottom of all real windows so the resize thumb doesn't
8244 obscure scroll/status bars.
8246 2007-10-22 Jonathan Pobst <monkey@jpobst.com>
8248 * WindowsFormsSection.cs: Implement.
8250 2007-10-22 Everaldo Canuto <ecanuto@novell.com>
8252 * MdiClient.cs: Maximize new active mdi child when a maximized child is
8253 closed see #325434 patch.
8255 2007-10-22 Everaldo Canuto <ecanuto@novell.com>
8257 * MdiClient.cs: Fix remaining issues from layout vertical and horizontal,
8260 2007-10-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8262 * PropertyGridView.cs: When showing the textbox for a grid item,
8263 have two local variables to store the read-only and non-editable
8264 status of a grid item (we were previously using just one variable
8265 to do this, when actually they are slightly different).
8266 Fixes part of #325023.
8268 2007-10-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8270 * PropertyGridView.cs: When showing a drop-down list, try to get the
8271 values using TypeConverter.ConvertTo (to convert to a string). Fixes
8274 2007-10-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8276 * PropertyGrid.cs: When updating a property and populating sub grid
8277 items, remove the previous ones, and invalidate the specific area.
8278 * PropertyGridView.cs: A new InvalidateBelowGridItem to invalidate the
8279 area behind a grid item.
8280 * GridItemCollection.cs: Add an internal Clear method, to allow us to
8281 clean the items if needed (specially for controls implementing
8282 ICustomTypeDescriptor and returning a variable number of properties).
8285 2007-10-19 Jonathan Pobst <monkey@jpobst.com>
8287 * TextControl.cs: Clean up and document the Insert function.
8289 2007-10-17 Jonathan Pobst <monkey@jpobst.com>
8291 * TextControl.cs: Make sure we know our start point for updating the view
8292 in ReplaceSelection. Fixes an issue where pasting multiline text wouldn't
8295 2007-10-17 Jonathan Pobst <monkey@jpobst.com>
8297 * ListView: Couple of corcompare fixes.
8299 2007-10-17 Geoff Norton <gnorton@novell.com>
8301 * XplatUIOSX.cs: Implement support for window icons in the dock. Set
8302 the title caption of real window.
8304 2007-10-17 Jonathan Pobst <monkey@jpobst.com>
8306 * ErrorProvider.cs: Add the error provider's internal window to a
8307 containercontrol when the parent changes. [Fixes bug #329714]
8309 2007-10-17 Geoff Norton <gnorton@novell.com>
8311 * XplatUIOSX.cs: Implement ScrollWindow. Properly create TOOLWINDOWs.
8312 When we make a new window; restore the old active window - fixes dialogs.
8314 2007-10-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8316 * PropertyGridView.cs: Look for RefreshPropertiesAttribute
8317 when modifying a property, and if found then invalidate as
8319 Fixes part of #324865.
8321 2007-10-17 Geoff Norton <gnorton@novell.com>
8323 * XplatUIOSX.cs: Re-enable the native driver on the Mac. This is still
8324 highly experimental. Fixed coordinate translation. Fixed window locations.
8325 Initial support for clipping. Implemented NC areas and menus. Support for
8326 launching from command line from Will Johansson (wjohansson@atacomm.com).
8327 * OSXStructs.cs: Add ProcessSerialNumer (Patch from Will Johansson
8328 wjohansson@atacomm.com)
8329 * Hwnd.cs: Add some internal structures for tracking Mac cursors.
8330 Hwnds now track the existence of all of their children for Mac clipping.
8331 * XplatUI.cs: Re-enabled the native driver on the Mac.
8333 2007-10-17 Jonathan Pobst <monkey@jpobst.com>
8335 * Line.cs: Move the InsertString function to here.
8336 * TextControl.cs: Cleanup some duplicate code, move some InsertString
8337 functionality to Line.
8339 2007-10-17 Geoff Norton <gnorton@novell.com>
8341 * ComboBox.cs: Destroy the popup after hiding it. Fixes #322582
8343 2007-10-16 Gert Driesen <drieseng@users.sourceforge.net>
8345 * ButtonBase.cs: Fixed IsDefault to use assigned value instead of
8346 always setting value to true.
8347 * Form.cs: When changing AcceptButton, notify new and original button.
8349 2007-10-16 Jonathan Pobst <monkey@jpobst.com>
8351 * Form.cs: Guard against an NRE when the user sets the AcceptButton to
8352 a custom control that implements IButtonControl instead of an actual
8353 button. [Fixes bug #334244]
8355 2007-10-15 Everaldo Canuto <ecanuto@novell.com>
8357 * Form.cs: Change SelectActiveControl to internal, we need to call it in
8360 * MdiWindowManager.cs: In RaiseActivated call SelectActiveControl to select
8361 active control when activate a new mdi window.
8365 2007-10-15 Everaldo Canuto <ecanuto@novell.com>
8367 * ComboBox.cs: Dont implicit add listbox_ctrl on OnHandleCreated because it
8371 2007-10-15 Jonathan Pobst <monkey@jpobst.com>
8373 * TextControl.cs: When SuspendRecalc is first called, reset the recalc_start
8374 to MaxValue and recalc_end to MinValue. Currently, recalc_start is always 1,
8375 so we always recalculate the whole document instead of just the new part.
8378 2007-10-15 Jonathan Pobst <monkey@jpobst.com>
8380 * LineTag.cs: Fix a case where the GetCharIndex would not return 0
8381 when the mouse was to the left of the first character in the line.
8383 2007-10-15 Jonathan Pobst <monkey@jpobst.com>
8385 * TextBox.cs, TextBoxBase.cs: When setting the document's password
8386 character, use the property instead of the variable so that the
8387 UseSystemPasswordChar property is taken into account.
8390 2007-10-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8392 * FolderBrowserDialog.cs: When a node is right clicked and the "New
8393 folder" contex menu appears, actually add the new folder to it, even
8394 if the node is not currently selected. Still use SelectedNode in case
8395 there wasn't found a node under the pointer.
8398 2007-10-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8400 * ListViewItem.cs: When retrieving the focused state, the index check
8401 should be done only when ListView is in virtualmode, as it is an
8402 expensive check for normal mode.
8404 2007-10-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8406 * ListViewItem.cs: Make the focus state information be stored
8407 in the ListView, not in the items. This is done to match the MS
8408 behaviour for items that are not yet part of a ListView control;
8409 besides that, since just one item can be focused at the same time,
8410 we save a little space in our items.
8411 Fixes part of #331643.
8413 2007-10-13 Gert Driesen <drieseng@users.sourceforge.net>
8415 * ComboBox.cs: When focus is lost, deselect the text. When setting
8416 text of control, select all text. Do not hide selection when control
8417 does not have focus. Fixes bug #333663.
8419 2007-10-13 Gert Driesen <drieseng@users.sourceforge.net>
8421 * TextBoxBase.cs: On 2.0 profile, throw ArgumentOutOFRangeException
8422 instead of ArgumentException when SelectionLength is set to negative
8423 value. Added same check to SelectionStart. Code formatting.
8425 2007-10-13 Gert Driesen <drieseng@users.sourceforge.net>
8427 * TextBoxBase.cs: Invalidate selection before changing SelectionLength
8428 or SelectionStart. Code formatting.
8430 2007-10-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8432 * TreeView.cs: drag_begin_x and drag_begin_y are now set to -1,
8433 indicating that there was not a previous drag-and-drop operation going
8435 Fixes part of #325071.
8437 2007-10-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8439 * X11Dnd.cs: When DragEventArgs.Effect is set to a value not part of
8440 AllowedEffect, don't let the drop operation happen.
8443 2007-10-12 Jonathan Pobst <monkey@jpobst.com>
8445 * TextRenderer.cs: Use GDI on Windows in both the 1.1 and 2.0 profiles.
8447 2007-10-12 Jonathan Pobst <monkey@jpobst.com>
8449 * Line.cs, LineTag.cs: Guard against an exception when Document.Clear
8452 2007-10-12 Jonathan Pobst <monkey@jpobst.com>
8454 * Line.cs: Add a method that finds the tag that contains an x-coord.
8455 * LineTag.cs: Add a method that finds the character at an x-coord using
8456 a binary search, the old way was a linear search.
8457 * TextControl.cs: Change FindCursor to use the above new methods.
8459 2007-10-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8461 * DragEventArgs.cs: Allow Effect to have a non allowed value (a
8462 value different than AllowedEffect). This should be possible to
8463 indicate that dragging is not possible in some control/area.
8465 2007-10-11 Jonathan Pobst <monkey@jpobst.com>
8467 * LineTag.cs: Encapsulate all variables with properties. Calculate ascent/
8468 descent internally when font changes instead of outside code being responsible
8470 * Line.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs: Use Tag properties
8471 instead of accessing internal variables.
8473 2007-10-09 Everaldo Canuto <ecanuto@novell.com>
8475 * MdiClient.cs: Always call ArrangeIconicWindows before any arrangement and
8476 remove special treatment for ArrangeIcons since it is already arranged.
8478 2007-10-09 Jonathan Pobst <monkey@jpobst.com>
8480 * TextBoxTextRenderer.cs: Draw takes a Color now instead of a Brush, as
8481 the Win32 backend uses Color.
8482 * Line.cs, LineTag.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs:
8483 Refactor to store a Color instead of a Brush for Color.
8485 2007-10-09 Jonathan Pobst <monkey@jpobst.com>
8487 * Line.cs, LineTag.cs: Override GetHashCode to make a compiler warning go
8488 away. I didn't realize I needed this when I refactored these earlier.
8490 2007-10-09 Jonathan Pobst <monkey@jpobst.com>
8492 * LineTag.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs: Refactor to
8493 store a Color structure and use the ResPool for back color instead of
8494 holding onto brushes.
8496 2007-10-09 Jonathan Pobst <monkey@jpobst.com>
8498 * TextControl.cs: Fix how we calculate the end of the tag we are drawing.
8501 2007-10-08 Jonathan Pobst <monkey@jpobst.com>
8503 * MonthCalendar.cs: When ShowWeekNumbers is changed, force the calendar
8504 to recalculate its size. Fixes a part of bug #331052.
8506 2007-10-08 Jonathan Pobst <monkey@jpobst.com>
8508 * NotifyIcon.cs: Set the correct mouse button when handling right mouse
8509 button. Fixes a part of bug #331052.
8511 2007-10-08 Jonathan Pobst <monkey@jpobst.com>
8513 * Form.cs: Trim NewLine before setting XPlatUI.SetText, and when setting
8515 * ThemeWin32Classic.cs: Trim NewLine before drawing MDI children window
8519 2007-10-08 Jonathan Pobst <monkey@jpobst.com>
8521 * TextBoxTextRenderer.cs: Don't make this a static class, as static
8522 doesn't exist in 1.1. (Thanks jb!)
8524 2007-10-08 Jonathan Pobst <monkey@jpobst.com>
8526 * TextBoxTextRenderer.cs: Abstract text measuring and drawing to this
8527 class to allow us to use different backends on different platforms.
8528 Linux uses the current [Draw|Measure]String backend. Windows uses
8529 the TextRenderer.[Draw|Measure]Text backend, which uses GDI instead
8530 of GDI+. This leads to better looking text and more accurate measurements
8531 on Windows, fixing many of the reported issues.
8532 * Line.cs, LineTag.cs: Update to use TextBoxTextRenderer.
8534 2007-10-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8536 * FolderBrowserDialog.cs: When running on Windows,
8537 try to detect paths such "C:" and add Path.DirectorySeparatorChar,
8538 since we must match both "C:" and "C:\" forms. A little hackish, but
8542 2007-10-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8544 * ListView.cs: When calling EndEdit (after editing an item),
8545 create a new instance of LabelEditEventArgs to keep clean the fields
8546 in case we get a new call to BeginEdit; also do Application.DoEvents
8547 to have focus in synch. This is a fix similar to TreeView's #325244.
8549 2007-10-07 Andreia Gaita <avidigal@novell.com>
8551 * HtmlDocument.cs, HtmlElement.cs, WebBrowser.cs: Added dom support
8552 * WebBrowserBase.cs: Added dialog support, calling the
8553 WebBrowserDialogs classes for each specific dialog type.
8555 2007-10-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8557 * ListView.cs: When the last item is focused and is removed,
8558 move the focus to the previous item (in Items order). This is what MS
8562 2007-10-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8564 * ListView.cs: In ListViewItemCollection, make Remove call RemoveAt,
8565 instead of the opposite (RemoveAt call Remove). This is a better
8566 approach since we don't need to to a pair of traversals when using
8569 2006-10-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8571 * TreeView.cs: When Keys.Left is pressed, before trying to Collapse
8572 check that the node actually has nodes, and if not, move to the
8573 parent node instead.
8576 2006-10-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8578 * TreeView.cs: Move the previous change to the general case (to
8579 call Application.DoEvents in cases where the method was called by
8582 2007_10-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8584 * TreeView.cs: When calling EndEdit and we need to hide the textbox,
8585 call Application.DoEvents. This is neccessary when we get a call to
8586 BeginEdit from an AfterLabelEdit handler, because the focus always
8587 goes to the TreeView, even if we try to give it to our
8588 LabelEditTextBox. The call do Application.DoEvents seems to
8589 synchronize the focus, basically.
8592 2007-10-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8594 * TreeView.cs: When AfterLabelEdit event is fired, TreeNode.IsEditing
8595 should be false. This also removes some nasty recursive paths. Fixes
8598 2007-10-04 Everaldo Canuto <ecanuto@novell.com>
8600 * MdiClient.cs: When cascade (layout) mdi window that is maximized, set the
8601 state to normal. Also resize window when cascading. Fixes #325433.
8603 2007-10-04 Jonathan Pobst <monkey@jpobst.com>
8605 * RichTextBox.cs: When SelectionColor is set to Color.Empty, use
8606 DefaultForeColor, as drawing empty colored lines isn't very useful.
8607 [Fixes the not drawn lines part of bug #324358]
8609 2007-10-04 Jonathan Pobst <monkey@jpobst.com>
8611 * TextControl.cs: Move Line and LineTag classes into separate files to
8612 make things easier to find.
8613 * Line.cs, LineTag.cs: Bring coding standards up to Mono's guidelines.
8614 * RichTextBox.cs: Capitalize LineTag.Length property access.
8615 - This is purely an organizational/formatting change, no logic changed. -
8617 2007-10-03 Everaldo Canuto <ecanuto@novell.com>
8619 * ThemeWin32Classic.cs: Do not show focus rectangle in radio buttons when
8622 2007-10-03 Everaldo Canuto <ecanuto@novell.com>
8624 * ThemeWin32Classic.cs: Do not show focus rectangle in checkboxes when
8627 2007-10-03 Everaldo Canuto <ecanuto@novell.com>
8629 * ComboBox.cs: On contructor use backgound_color instead of BackColor to
8630 prevent calling of OnBackColorChanged. Fixes #325321.
8632 2007-10-03 Everaldo Canuto <ecanuto@novell.com>
8634 * TextBox.cs: When check enabled uses Enabled property instead of is_enabled
8635 because control can be disabled because owner is disabled.
8637 2007-10-02 Jonathan Pobst <monkey@jpobst.com>
8639 * ComboBox.cs: For the 1.1 profile, the default SelectedText is
8640 string.Empty, test failed from previous change.
8642 2007-10-02 Jonathan Pobst <monkey@jpobst.com>
8644 * TextBoxBase.cs: For the 1.1 profile, the default SelectedText
8645 is null, not String.Empty. See bug #323038.
8647 2007-10-01 Jonathan Pobst <monkey@jpobst.com>
8649 * TextControl.cs: Change the margins to match MS a little better.
8650 Still not perfect for X11 due to some DrawString differences, but
8651 is still an improvement over the old stuff.
8652 Partially fixes #324467.
8654 2007-09-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8656 * FolderBrowserDialog.cs: When using MyComputer as
8657 RootFolder, let absolute paths be considered as valid ones. Also, use
8658 Path.DirectorySeparatorChar instead of Path.AltDirectorySeparatorChar,
8659 for Windows compatibility.
8660 Partially fixes #325247.
8662 2007-09-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8664 * FolderBrowserDialog.cs: Fix the recursive FindPathInNodes method.
8665 Also remove the stack.Count > 0 check in FBTreeView.SetSelectedNode
8666 method, since it causes the dialog to not select folders directly
8667 under the root path (when setting SelectedPath property).
8669 2007-09-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8671 * TreeNode.cs: When calling Expand/Collapse and need to call
8672 ExpandBelow/CollapseBelow respectively, take into account
8673 partially visible nodes (previously Expanding/Collapsing
8674 a partially visible node in the bottom was not updating its +- sign).
8676 2007-09-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8678 * TreeView.cs: When calling Expand on a TreeNode, and we need to
8679 expand nodes below (ExpandBelow), scroll the entire Viewport
8680 area if the node is above it and not visible (instead of scrolling
8681 the area from node's Bottom, which applies only when the node is
8685 2007-09-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8687 * TreeView.cs: When calling ExpandAll, set SelectedNode to the top
8688 node in the bottom area (as .Net does). This is done to preserve the
8689 scroll position when ExpandAll is called before handle is created for
8690 the 1.1 profile (bottom area, as opposed to top area in 2.0).
8693 2007-09-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8695 * TreeView.cs: When calling ExpandAll, don't move the scroll to the
8696 bottom area if we are in fact not using the vertical scroll bar.
8699 2007-09-27 Jonathan Pobst <monkey@jpobst.com>
8701 * Control.cs: Comment out a double buffering optimization that doesn't
8702 take into account invalidates created in OnPaint, causing the control
8703 to never be redrawn. It would take quite a bit of work to work around
8704 this, but I left it commented with an explanation for later possible
8708 2007-09-27 Jonathan Pobst <monkey@jpobst.com>
8710 * Control.cs: Ask parent to perform a layout if control is AutoSize and
8712 * RadioButton.cs: Implement GetPreferredSizeCore.
8715 2007-09-26 Jonathan Pobst <monkey@jpobst.com>
8717 * RichTextBox.cs, TextBoxBase.cs, WindowsFormsSynchronizationContext.cs:
8720 2007-09-26 Jonathan Pobst <monkey@jpobst.com>
8722 * Application.cs: Move the sync context stuff to Run instead of RunLoop
8723 so that it doesn't get uninstalled on modal forms.
8724 * Control.cs: Install a sync context when a control is created.
8725 * WindowsFormsSyncronizationContext.cs: Create a private static control
8726 to invoke on. This is easier than trying to find a created control we
8730 2007-09-25 Jonathan Pobst <monkey@jpobst.com>
8732 * Application.cs: Install a WindowsFormsSynchronizationContext in the
8733 run loop, and uninstall it when done.
8734 * WindowsFormsSynchronizationContext.cs: Implement.
8735 [Fixes the common case in bug #327608]
8737 2007-09-23 Gert Driesen <drieseng@users.sourceforge.net>
8739 * DataGridViewCellCollection.cs: Added argument checks for indexers.
8740 Use case-insensitive lookup of column name in indexer. Code
8743 2007-09-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8745 * TreeNode.cs: When collapsing or expanding a node, check whether its
8746 change will affect the visible area (we were previously doing a
8747 IsVisible check, but that check is not enough since children nodes
8748 could be still visible). Fixes part of #325266.
8750 2007-09-21 Jonathan Pobst <monkey@jpobst.com>
8752 * TreeView.cs: Always select the first node when the TreeView gets
8753 focus if there is no currently selected node.
8756 2007-09-21 Jonathan Pobst <monkey@jpobst.com>
8758 * TreeView.cs: Do not raise BeforeSelect or AfterSelect when the
8759 node being selected is null.
8760 [Patch from Yves Bastide fixes bug #326858]
8762 2007-09-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8764 * TreeNode.cs: Add an internal ArePreviousNodesExpanded, to know
8765 whether all the parent nodes are expanded.
8766 * TreeNodeCollection.cs: When adding a new node an calling SetupNode,
8767 call RecalculateVisibleOrder if all previous nodes are expanded.
8768 Before that we were doing a IsVisible check, but sometimes the node
8769 is not in the visible area, but _should_already be ready, because of
8770 all previous nodes are expanded. Fixes #325259.
8772 2007-09-20 Jonathan Pobst <monkey@jpobst.com>
8774 * ToolStripSplitButton.cs: Call the ButtonClick event if the button
8775 portion of the item is clicked.
8777 2007-09-20 Jonathan Pobst <monkey@jpobst.com>
8779 * TextControl.cs: Do not tell the system to move the cursor if the
8780 textbox isn't focused. Fixes part of bug #322668.
8782 2007-09-20 Jonathan Pobst <monkey@jpobst.com>
8784 * ComboBox.cs: When there are no items, do not show the dropdown if
8785 the down arrow is clicked. Fixes part of bug #322668.
8787 2007-09-20 Jonathan Pobst <monkey@jpobst.com>
8789 * ToolStripComboBox.cs: Manually set the size of this control in the
8790 constructor, as it doesn't seem to be the same as DefaultSize.
8791 Fixes a failing monobuild test.
8793 2007-09-19 Jonathan Pobst <monkey@jpobst.com>
8795 * DateTimePicker.cs: If the user sets MinDate to DateTime.MinValue,
8796 change it to DateTimePicker.MinDateTime. [Fixes bug #326609]
8798 2007-09-19 Jonathan Pobst <monkey@jpobst.com>
8800 * Theme.cs: FileDialogs should be using DesktopDirectory instead of
8801 Desktop. This lets it work for people who have moved their desktops
8802 from the default location on windows. For people who have not, both
8803 values are the same, so it shouldn't hurt anything. [Fixes bug #325270]
8805 2007-09-18 Jonathan Pobst <monkey@jpobst.com>
8807 * ToolStripControlHostTest.cs: DefaultSize is based off hosted control,
8808 but when the base constructor sets this, the control is null. Set it
8809 again in the constructor. Fixes a failing monobuild test.
8811 2007-09-18 Jonathan Pobst <monkey@jpobst.com>
8813 * ToolStripDropDownItem.cs: Make sure Click and DropDownOpened events
8815 * ToolStripSplitButton.cs: Make sure MouseDown and MouseUp events get
8818 2007-09-18 Jonathan Pobst <monkey@jpobst.com>
8820 * ToolStrip.cs: Don't show tooltips for ToolStripTextBoxes, they
8821 will handle it themselves.
8822 * ToolStripItem.cs: When deciding what the text of a tooltip should
8823 be, use the Text property instead of the text field.
8824 * ToolStripTextBox.cs: Handle tooltips.
8825 [Fixes bugs #325417 and #325973]
8827 2007-09-18 Jonathan Pobst <monkey@jpobst.com>
8829 * ToolStripDropDownButton.cs: Only drop down overflow menu with a
8830 left click. Fixes the easy part of bug #325969.
8832 2007-09-18 Jonathan Pobst <monkey@jpobst.com>
8834 * ToolStrip.cs: Set AutoSizeMode back to GrowAndShrink to refix
8835 bug #325406, but set a minimum for StatusStrip to 22 to keep
8836 bug #325390 fixed. I think this minimum would have been figured
8837 up automatically if the grip was actually a ToolStripItem, but it
8840 2007-09-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8842 * ListView.cs: max_label_wrapping is now 30 pixels instead of 38,
8843 as this is apparently the actual value used by .Net. Also apply
8844 ItemPadding in Details view only, and decrease the general width padding,
8845 to have only the needed. This should fix #324340 in Windows too.
8847 2007-09-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8849 * ListViewItem.cs: Don't Invalidate item if parent is inside
8850 a BeginUpdate/EndUpdate block. This prevents to have differences
8851 between the ListView and items state, as well as avoid some exceptions
8853 * ListView.cs: Make 'updating' field internal.
8855 2007-09-17 Jonathan Pobst <monkey@jpobst.com>
8857 * ToolStripControlHost.cs: Realign control when ControlAlign changes.
8858 * ToolStripItem.cs: Use ImageScalingSize when calculating preferred
8859 size if appropriate.
8860 Fixes reopened bug #325414.
8862 2007-09-17 Jonathan Pobst <monkey@jpobst.com>
8864 * ToolStrip.cs: Set AutoSizeMode back to GrowOnly.
8865 * ToolStripItem.cs: Invalidate before and after our new autosize when
8867 Fixes reopened bug #325390.
8869 2007-09-17 Jonathan Pobst <monkey@jpobst.com>
8871 * ToolStripMenuItem.cs: Make sure we invalidate when clicked so
8872 mnemonics can be drawn or undrawn correctly. Fixes reopened bug
8875 2007-09-17 Jonathan Pobst <monkey@jpobst.com>
8877 * Control.cs: Do WM_CONTEXTMENU before OnMouseUp. [Fixes bug #325535]
8879 2007-09-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8881 * ColumnHeader.cs: When drawing column text, use EllipsisCharacter
8882 instead of EllipsisWord (by equistango at gmail.com). Fixes part of
8885 2007-09-14 Jonathan Pobst <monkey@jpobst.com>
8887 * ToolStrip.cs: Make ToolStrip selectable when TabStop = true. Find an
8888 item to select when the ToolStrip is selected.
8889 * ToolStripControlHost: Realign the control when the bounds or visibility
8891 * ToolStripItem.cs: When selected, if it's a control host, focus the control.
8892 * ToolStripOverflow.cs: When laying out the drop down, respect the item's
8894 * ToolStripTextBox.cs: OnPaintInternal should call base.OnPaintInternal, not
8895 base.OnPaint. Was causing text not to be drawn.
8897 2007-09-14 Jonathan Pobst <monkey@jpobst.com>
8899 * SplitterPanel.cs: Ignore attempts to set AutoSizeMode.
8901 2007-09-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8903 * TreeView.cs: When creating the label edit text box,
8904 set is initially to Visible = false. This is done to
8905 prevent a confusion in the layout which makes it to lose
8906 focus when shown the first time. Fixes part of #82592.
8908 2007-09-13 Andreia Gaita <avidigal@novell.com>
8910 * WebBrowserBase.cs: add FocusOption enumeration for finer focus control
8912 2007-09-13 Jonathan Pobst <monkey@jpobst.com>
8914 * ToolStrip.cs: Take Margin into account when calculating preferred
8915 size. Also, allow preferred size to get smaller than the explicit
8917 * ToolStripTextBox.cs: Don't change the GetPreferredSize implementation.
8918 First step towards fixing bug #82747.
8920 2007-09-13 Jonathan Pobst <monkey@jpobst.com>
8922 * TreeView.cs: Applied patch from latency@gmx.de to not paint the
8923 full row select background over the plus/minus glyph. Also, turn
8924 off the focus rectangle for full row select since MS doesn't seem
8925 to ever paint it. [Fixes bug #81839]
8927 2007-09-13 Jonathan Pobst <monkey@jpobst.com>
8929 * ToolStrip.cs: Don't FocusInternal if there is no selected item.
8930 This was causing keyboard opened dropdowns to lose focus.
8933 2007-09-13 Jonathan Pobst <monkey@jpobst.com>
8935 * Control.cs: If Rectangle.Empty is passed to Invalidate, use
8936 ClientRectangle instead. [Fixes bug #82838]
8938 2007-09-13 Jonathan Pobst <monkey@jpobst.com>
8940 * SplitContainer.cs: We can't reset Visible on every layout because
8941 someone may have set Visible = false explicitly on a SplitterPanel.
8942 Make sure when we switch orientation the SplitterDistance does not
8943 change. Fixes two failing tests.
8945 2007-09-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8947 * TreeView.cs: Use MeasureTextInternal instead of MeasureText in
8948 TextRenderer, since the latter is only available in 2.0.
8950 2007-09-13 Ivan N. Zlatev <contact@i-nz.net>
8952 * Cursor.cs: Fix Cursor.Current to apply Cursor.Default.
8953 * SplitContainer.cs: Implement FixedPanel layouting.
8955 2007-09-12 Andreia Gaita <avidigal@novell.com>
8957 * WebBrowserBase.cs: setup shutdown routine
8959 2007-09-12 Andreia Gaita <avidigal@novell.com>
8961 * Application.cs: Let keyboard events that are targetted
8962 to non-mwf windows hosted inside mwf (as in, webbrowser),
8963 propagate properly. Fixes keyboard handling on the webbrowser.
8965 2007-09-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8967 * ListView.cs: When handling MouseUp event and we are
8968 highligting a node with the mouse right button, don't trigger
8969 Before/AfterSelecting event, since we are not actually selecting
8972 2007-09-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8974 * TreeView.cs: When editing a node, modify the edit text box
8975 depending on the text length (as you are typing), like MS does.
8977 2007-09-12 Jonathan Pobst <monkey@jpobst.com>
8979 * ToolStrip.cs: Fixup preferred size calculations for vertical toolbars.
8980 Override GetPreferredSizeCore to perform calculations. Remove custom
8981 autosize logic. [Fixes bug #82739]
8983 2007-09-12 Jonathan Pobst <monkey@jpobst.com>
8985 * TextBoxBase.cs: Modified should default to false.
8987 2007-09-11 Jonathan Pobst <monkey@jpobst.com>
8989 * Control.cs: Update the anchoring distances even when layout is supspended.
8990 Patch provided by George fixes bug #82805.
8992 2007-09-11 Jonathan Pobst <monkey@jpobst.com>
8994 * Control.cs: Provide a setter for ExplicitHeight.
8995 * TextBoxBase.cs: Now that we have the implementation for explicit heights,
8996 remove the hacks in here for requested_height.
8999 2007-09-11 Jonathan Pobst <monkey@jpobst.com>
9001 * ScrollBar.cs: Fix an issue reported on the lists where setting a scrollbar's
9002 Maximum to lower that its current Value caused an ArgumentException by setting
9003 the Value to the new Maximum.
9005 2007-09-11 Jonathan Pobst <monkey@jpobst.com>
9007 * ThemeWin32Classic.cs: Math is hard! Fix some math so that the TrackBar
9008 handle moves to the closest tick when it is being dragged.
9011 2007-09-11 Jonathan Pobst <monkey@jpobst.com>
9013 * ToolStripManager.cs: When we have added MDI buttons onto a MenuStrip, we
9014 can't let them count as real items when calculating where to merge in the
9015 user's items. [Fixed bug #82786]
9017 2007-09-10 Jonathan Pobst <monkey@jpobst.com>
9019 * ToolStripMenuItem.cs: Add a parent type check so we don't crash on people
9020 who want to add a menu item directly onto a toolstrip.
9021 [Fixes bug #82775, part II]
9023 2007-09-10 Jonathan Pobst <monkey@jpobst.com>
9025 * StatusStrip.cs: Synchronize SetDisplayedItems with the ToolStrip version.
9026 * ToolStrip.cs: If a ToolStripItem set to not visible is added to a ToolStrip,
9027 don't set it to available.
9028 * ToolStripItem.cs: When Visible is changed, tell the owner to perform a layout.
9029 [Fixes bug #82727, part II]
9031 2007-09-10 Jonathan Pobst <monkey@jpobst.com>
9033 * StatusStrip.cs: Change item placement to None if not visible.
9034 * ToolStripItem.cs: Invalidate when InternalVisible changes.
9035 These should have been committed to fix 82723, but I missed them.
9037 2007-09-10 Jonathan Pobst <monkey@jpobst.com>
9039 * ToolStrip.cs: Make sure ItemClicked is raised before the ToolStripItem's
9040 Click, and that it is only called once.
9041 * ToolStripMenuItem.cs: Call OnClick even when there are dropdown items.
9042 * ToolStripDropDownItem.cs: Override HandleItemClick so dropdowns stay
9046 2007-09-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9048 * ColumnHeaderSample.cs: Use 5 pixels as extra height instead of 8
9050 * ThemeWin32Classic.cs: For the columns text, use 5 pixels as left padding
9051 instead of 8, just like above. Partially fixes #82734.
9053 2007-09-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9055 Patch by Ernesto Carrea <equistango at gmail.com>. Partially
9058 * ListView.cs: Remove extra space between rows in Details view (match
9060 * ThemeWin32Classic.cs: Header text should use ListView.Font, not
9063 2007-09-08 Gert Driesen <drieseng@users.sourceforge.net>
9065 * Application.cs: Modified ProductVersion to return value of
9066 AssemblyInformationVersion if available, and fallback to assembly
9067 version. Fixes bug #82746. Code formatting.
9068 * BindingSource.cs: Remove NIE from Dispose, and mark it MonoTODO
9071 2007-09-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9073 * Control.cs: When updating ZOrder for a child control,
9074 take into account the implicit ones (we need it in our controls
9075 using them). Fixes #82642.
9077 2007-09-07 Jonathan Pobst <monkey@jpobst.com>
9079 * ToolStripItem.cs: Add support for animated images.
9082 2007-09-07 Jonathan Pobst <monkey@jpobst.com>
9084 * ToolStrip.cs: Make sure we aren't drawing anything that isn't
9085 visible. [Fixes bug #82727]
9087 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
9089 * ToolStripItem.cs: If AutoSize changes the size of our item, invalidate
9090 so we repaint using the new size. [Fixes bug #82723]
9092 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
9094 * TreeView.cs: If ShowLines is true, we should ignore the FullRowSelect
9095 option. [Fixes bug #81779]
9097 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
9099 * TreeView.cs: Override HandleClick because the StandardClick style is
9100 set to false. According to MSDN (and testing), the click events should
9101 only be raised when the click occurs on a TreeNode. [Fixes bug #81739]
9103 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
9105 * ToolStripTextBox.cs: Invalidate our textbox when it loses focus, so
9106 the border will disappear. Fixes reopened #82653.
9108 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
9110 * Control.cs: If the control is autosize, and its preferred size changes
9111 when it lays out its children, tell its parent so it can be re-layed out.
9112 Fixing some of the fallout from r85433.
9114 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
9116 * ThemeWin32Classic.cs: Fix a NRE caused by r85427 because RadioButton
9117 and CheckBox share some code.
9119 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
9121 * TrackBar.cs: Only call OnScroll if we actually changed the Value of
9122 the TrackBar, not every mouse move. [Fixed bug #82718]
9124 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
9126 * ThemeWin32Classic.cs: Allow a CheckBox to be rendered like a Button
9127 under 2.0 rendering. [Fixes bug #82657]
9129 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
9131 * TreeView.cs: If we found a TreeNode to display a context menu, but
9132 it doesn't have one to show, let the TreeView display its menu
9133 instead. [Fixes bug #82680]
9135 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
9137 * ToolStripTextBox.cs: TextBox no longer call OnPaint, we need to use
9138 OnPaintInternal instead. Give the internal TextBox a Border property
9139 so it can draw itself more correctly. [Fixes bug #82653]
9141 2007-09-06 Zoltan Varga <vargaz@gmail.com>
9143 * HtmlHistory.cs HtmlWindow.cs HtmlWindowCollection.cs ListBindingHelper.cs WindowsFormsSection.cs WindowsFormsSynchronizationContext.cs: Stubs for missing 2.0 classes.
9145 2007-09-05 Everaldo Canuto <everaldo@simios.org>
9147 * ComboBox.cs: Adjust combobox button state to reflect current state when
9148 back to enabled = true. Fixes first issue of #82654.
9150 2007-09-05 Everaldo Canuto <everaldo@simios.org>
9152 * Control.cs: Fix last patch regression, prevent forms to update zorder when
9153 setting visible property.
9155 2007-09-05 Everaldo Canuto <everaldo@simios.org>
9157 * Control.cs: Update zorder after control creation in SetVisibleCore, it
9158 fix zorder for controls initially created as non visible. Fixes #82667.
9160 2007-09-04 Everaldo Canuto <everaldo@simios.org>
9162 * ThemeWin32Classic.cs: Adjust checkbox light color to ControlLightLight to
9163 mimic win32 look. Fixes #82656.
9165 2007-09-01 Zoltan Varga <vargaz@gmail.com>
9167 * FileDialogCustomPlace.cs FileDialogCustomPlacesCollection.cs:
9168 Stubs for new net 3.5 classes.
9170 2007-08-31 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9172 * ListViewItem.cs: In ListViewItemCollection operations calculate
9173 Layout for owner as well as invalidate it. Fixes part of #82642.
9175 2007-08-31 Jonathan Pobst <monkey@jpobst.com>
9177 * ToolStripItem.cs: Take Parent/Owner's Enabled state in to account
9178 when returning Enabled. [Fixes bug #82651]
9180 2007-08-30 Everaldo Canuto <everaldo@simios.org>
9182 * ToolBar.cs: Fix button size for non flat toolbars. Fixes #82368.
9184 2007-08-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9186 * ListView.cs: Put item padding info in a single place
9187 (Theme.ListViewItemPaddingWidth) to have working AutoResize on
9189 * ThemeWin32Classic.cs:
9190 * Theme.cs: Likewise.
9192 2007-08-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9194 * ListView.cs: When a ListViewSubItem instance is invalidated,
9195 invoke Invalidate on parent ListViewItem, not parent ListView.
9198 2007-08-30 Jonathan Pobst <monkey@jpobst.com>
9200 * ListView.cs, ListViewItem.cs: corcompare stuffs.
9202 2007-08-30 Jonathan Pobst <monkey@jpobst.com>
9204 * BindingMemberInfo.cs: Implement == and != operators.
9206 2007-08-30 Jonathan Pobst <monkey@jpobst.com>
9208 * HtmlElementEventArgs.cs: Implement properties.
9210 2007-08-29 Jonathan Pobst <monkey@jpobst.com>
9212 * HtmlElementErrorEventArgs.cs, HtmlElementErrorEventHandler.cs: Added.
9214 2007-08-29 Jonathan Pobst <monkey@jpobst.com>
9216 * TabControl.cs: I was looking into the MonoTODO on TabPageCollection.
9217 Add (string,string,string) to implement the imagekey. It turns out, we
9218 use the requested imagekey whereas .Net does not. So I broke ours to match
9221 2007-08-29 Jonathan Pobst <monkey@jpobst.com>
9223 * Form.cs, UserControl.cs: Override ValidateChildren, AutoValidate.
9225 2007-08-29 Jonathan Pobst <monkey@jpobst.com>
9227 * ContainerControl.cs: Implement ValidateChildren and new Validate overload.
9229 2007-08-29 Gert Driesen <drieseng@users.sourceforge.net>
9231 * FolderBrowserDialog.cs: Set Tag of newly created node, and keep it
9232 up-to-date. Fixes bug #82618.
9234 2007-08-29 Everaldo Canuto <everaldo@simios.org>
9236 * TextBoxBase.cs: Call CalculateDocument after changes Lines property to
9237 reflect document changes. Fixes #82367.
9239 2007-08-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9241 * ListView.cs: Add/fix some override differences between 1.1 and 2.0,
9242 as well as add new ones. This should make work the BackgroundImage
9243 property for ListView again.
9245 2007-08-28 Jonathan Pobst <monkey@jpobst.com>
9247 * DataGrid.cs, DataGridViewButtonColumn.cs, DataGridViewCheckBoxColumn.cs,
9248 DataGridViewComboBoxColumn.cs, DataGridViewImageColumn.cs, DataGridViewLinkColumn.cs,
9249 DataGridViewTextBoxColumn.cs, ToolTip.cs: corcompare stuffs.
9251 2007-08-28 Jonathan Pobst <monkey@jpobst.com>
9253 * Control.cs, XPlatUI.cs, XPlatUIDriver.cs, XPlatUIWin32.cs: Implement
9256 2007-08-28 Jonathan Pobst <monkey@jpobst.com>
9258 * Cursor.cs: Add HotSpot, hook into XPlatUI.GetCursorInfo.
9259 * XPlatUIWin32.cs: Implement hotspot lookup in GetCursorInfo.
9261 2007-08-28 Jonathan Pobst <monkey@jpobst.com>
9263 * RadioButton.cs: Use 2.0 rendering. Use base implementation of TextAlign.
9264 * Theme.cs, ThemeWin32Classic.cs: Implement 2.0 rendering for RadioButton.
9266 2007-08-27 Ivan N. Zlatev <contact@i-nz.net>
9268 * CursorConverter.cs: Implement conversion to InstanceDescriptor.
9270 2007-08-27 Ivan N. Zlatev <contact@i-nz.net>
9272 * GridEntry.cs: Implement GetService.
9274 2007-08-27 Jonathan Pobst <monkey@jpobst.com>
9276 * LabelEditTextBox.cs, TreeView.cs: After hiding the textbox used
9277 for label editting, make sure we focus back on the TreeView.
9280 2007-08-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9282 * ListView.cs: Add some 2.0 overrides.
9284 2007-08-27 Everaldo Canuto <ecanuto@novell.com>
9286 * Form.cs: Uses opacity var instead of Opacity property in CreateHandle
9287 because getter dont returns right value before handle creation. Thanks
9288 to George. Fixes #82569.
9290 2007-08-27 Everaldo Canuto <ecanuto@novell.com>
9292 * Theme.cs: Revert last patch, it causes error under win32.
9294 2007-08-27 Everaldo Canuto <ecanuto@novell.com>
9296 * Theme.cs: Uses Environment.SpecialFolder.DesktopDirectory instead of
9297 Environment.SpecialFolder.Desktop in Places method, Desktop returns the
9298 logical Desktop rather than the physical file system location. Fixes #82603.
9300 2007-08-26 Everaldo Canuto <ecanuto@novell.com>
9302 * MessageBox.cs: Add clipboard copy (ctrl+c) to messagebox. Thanks Andy Hume
9303 for the patch. Fixes #82568.
9305 2007-08-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9307 * ListView.cs: Add a pair of missing 2.0 ListViewItemCollection.Insert
9310 2007-08-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9312 * ListViewInsertionMark.cs: New stubbed class.
9314 2007-08-25 Gert Driesen <drieseng@users.sourceforge.net>
9316 * FolderBrowserDialog.cs: When adding folder, immediately create the
9317 directory with temporary name and rename the directory when editing
9318 finishes. This matches MS. Ensure the node for the new folder is
9319 selected and LabelEdit is disabled, when editing is either finished
9322 2007-08-25 Gert Driesen <drieseng@users.sourceforge.net>
9324 * TreeView.cs: When editing label of node, ensure node is visible.
9326 2007-08-25 Ivan N. Zlatev <contact@i-nz.net>
9328 * PropertyGridView.cs: Set the value only if it has changed.
9330 2007-08-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9332 * ListView.cs: Some more code refactoring to add support sorting
9333 with groups (now for Details view). Remove unused code also.
9335 2007-08-24 Jonathan Pobst <monkey@jpobst.com>
9337 * NodeLabelEditEventArgs.cs: EndEdit immediately when CancelEdit is called.
9338 Not a big fan of reacting immediately to a field in an EventArg, but that's
9339 the way it's done. (This is part of the previous commit that got left out.)
9341 2007-08-25 Gert Driesen <drieseng@users.sourceforge.net>
9343 * FolderBrowserDialog.cs: Removed need for separate description field.
9344 Replaced "" with string.Empty. Fixed tabindex. Ensure OK button
9345 has focus when dialog box is displayed again, regardless of what
9346 button was pressed the previous time. Set RootFolder and SelectedPath
9347 each time dialog box is displayed. This ensures the treeview is
9348 refreshed, and fixes bug #82579. Do no hide selected node in TreeView
9349 when it does not have focus. Added support for more special folders.
9351 2007-08-24 Jonathan Pobst <monkey@jpobst.com>
9353 * TreeView.cs: Create a CancelEdit method. Clone the edit_args in EndEdit
9354 before calling AfterLabelEdit. If the user calls BeginEdit in that event,
9355 it resets the edit_args.
9356 * TreeNode.cs: Call CancelEdit if the user passes cancel = true to EndEdit.
9359 2007-08-24 Gert Driesen <drieseng@users.sourceforge.net>
9361 * FolderBrowserDialog.cs: Modifies form caption and text of new folder
9362 button to match MS. Provide more meaningful exception message for
9363 invalid RootFolder value. Use zero-length string when SelectedPath
9364 is set to null. Allow non-rooted paths in SelectedPath, but ignore
9365 them in FolderBrowserTreeView. Allow folders to be created in
9366 RootFolder. Fixes bug #82576.
9368 2007-08-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9370 * ListView.cs: Correctly compute the layout_ht (height) when using groups,
9371 since we need to take into account the group headers and the margin
9373 * ListViewGroup.cs: Add a rows field to store the number of rows per
9376 2007-08-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
9378 * DateTimePicker.cs: The MS' MTB has a really stupid year formatting.
9379 Anyways, let's just follow the lead.
9381 2007-08-24 Jonathan Pobst <monkey@jpobst.com>
9383 * CheckBox.cs: Set the AutoSizeMode to GrowAndShrink.
9384 * Form.cs, GroupBox.cs: Don't skip Right or Bottom anchored
9385 controls in GetPreferredSizeCore.
9386 * ThemeWin32Classic.cs: Tweak text drawing of CheckBoxes.
9389 2007-08-24 Jonathan Pobst <monkey@jpobst.com>
9391 * PrintDialog.cs: Need to instantiate the form variable here too.
9393 2007-08-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9395 * ListView.cs: Do some reorganization to support sorting in groups,
9396 by doing the layout sequentially in ListView.Items. Also add support
9397 for the Default Group, which should be available for items with no
9399 * ListViewGroup.cs: Add support for DefaultGroup. Include new members
9400 for storing layout info also.
9401 * ListViewGroupCollection.cs: Add a DefaultGroup as part of the
9402 collection, as well as providing internal members to do a traversal
9403 including the default group (needed when doing layout/drawing).
9404 * ThemeWin32Classic.cs: When drawing group headers use internal
9405 ListViewGroupCollection members to take into account the default
9408 2007-08-23 George Giolfan <georgegiolfan@yahoo.com>
9410 * FlowLayoutPanel.cs: Add GetPreferredSizeCore. [Fixes bug #82537]
9412 2007-08-23 Jonathan Pobst <monkey@jpobst.com>
9414 * TreeView.cs: IsInputKey: don't ask for any keys if the handle hasn't
9415 been created. If handle is created, we want arror keys. If we are editing
9416 a node, we want things like enter, esc, home, end, page up, page down.
9417 Allows Esc to work for FolderBrowserDialog.
9419 2007-08-23 Jonathan Pobst <monkey@jpobst.com>
9421 * ColorDialog.cs, FontDialog.cs: Set the form's CancelButton so that
9422 they close when ESC is pressed. Thanks Andy!
9424 2007-08-23 Jonathan Pobst <monkey@jpobst.com>
9426 * CommonDialog.cs: Do not instantiate form, leave that for derived classes.
9427 This way we can tell if this is a CommonDialog provided with mono, or one
9428 that is being implemented outside by a developer. If it is an external one,
9429 the developer is responsible for showing their own form. We were showing
9430 our blank form after the developer showed his.
9431 * ColorDialog.cs, FileDialog.cs, FolderBrowserDialog.cs, FontDialog.cs,
9432 PageSetupDialog.cs: Instantiate form variable in our constructor.
9435 2007-08-23 Jonathan Pobst <monkey@jpobst.com>
9437 * ListBox.cs, ListView.cs, TreeView.cs: Override IsInputCharInternal
9438 and always return true. [Fixes bug #81616]
9440 2007-08-23 Jonathan Pobst <monkey@jpobst.com>
9442 * TextBoxBase.cs: Allow 2.0 AutoSize to change the height of the
9443 TextBox. [Fixes bug #82549]
9445 2007-08-23 Gert Driesen <drieseng@users.sourceforge.net>
9447 * FileDialog.cs: When Save/Open is clicked and no filename is selected
9448 or entered then do not close the dialog. Fixes bug #82539. Removed
9451 2007-08-22 Everaldo Canuto <ecanuto@novell.com>
9453 * FileDialog.cs: Create UpdateRecentFiles and move the recent files refresh
9454 code to this method. It is calling every time filter changes. This method
9455 will help to fix the bug #80887.
9457 2007-08-22 Jonathan Pobst <monkey@jpobst.com>
9459 * CheckBox.cs: Implement AutoSize calculation.
9461 2007-08-22 Jonathan Pobst <monkey@jpobst.com>
9463 * CheckBox.cs: Use new 2.0 rendering for 2.0.
9464 * Theme.cs: Method declarations for 2.0 rendering path.
9465 * ThemeWin32Classic.cs: 2.0 rendering implementation for CheckBox.
9467 2007-08-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9469 * ListViewGroupCollection.cs: Fix a typo of the previous patch.
9471 2007-08-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9473 * ListViewGroupCollection.cs: Implement AddRange the right way, to
9474 only call Redraw on the parent one time.
9476 2007-08-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
9478 * DataGridViewRowHeaderCell.cs, DataGridViewColumnHeaderCell.cs: Implemented
9479 GetClipboardContent.
9480 * DataGridViewCell.cs: Implemented GetClipboardContent,
9481 GetEditedFormattedValue, GetFormattedValue.
9482 * DataGridView.cs: Implemented GetClipboardContent, TopLeftHeaderCell.
9484 2007-08-21 Jonathan Pobst <monkey@jpobst.com>
9486 * TableLayoutStyleCollection.cs: corcompare fix.
9488 2007-08-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
9490 * DataObject.cs: Implemented retrieval of convertible / not convertible
9493 2007-08-21 Jonathan Pobst <monkey@jpobst.com>
9495 * ToolStripItem.cs: When changing the item's text, invalidate before we resize
9496 ourselves. This ensures the entire old bounds are repainted, in case our new
9497 size is smaller. [Fixes bug #82518]
9499 2007-08-20 Everaldo Canuto <ecanuto@novell.com>
9501 * XplatUIX11.cs: Apply patch from #81588, it makes use of PointerMotionHintMask
9502 flag to make fast handle of mouse events, without this the mouse move is
9503 handled in some manner, whether it is a mouse move or not. Fixes #81588.
9505 2007-08-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9507 * ListView.cs: When doing layout calculations don't use a ref
9508 param to keep the current item; instead use its Index value (this
9509 is specially important when doing the layout with Groups
9510 and Items being sparse). Also don't take into account items added to
9511 the Group but not yet added to the main ListView.Items collection.
9513 2007-08-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9515 * ListViewGroupCollection.cs: Forgot to mimic an issue
9516 in the indexer (don't assign the ListView owner for new values).
9518 2007-08-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9520 * ListViewGroupCollection.cs: Make the string indexer use
9521 the int based indexer to re-use code, instead of duplicate the code.
9522 Also Redraw as needed and take into account null values.
9524 2007-08-20 Jonathan Pobst <monkey@jpobst.com>
9526 * StatusStrip.cs: Make sure the item's parent gets set in SetDisplayedItems.
9529 2007-08-20 Jonathan Pobst <monkey@jpobst.com>
9531 * ToolStrip.cs: Add some logic to un-focus controls in ToolStripControlHosts
9532 when other buttons are clicked or navigated to.
9534 2007-08-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
9536 * XplatUIX11.cs: Treat toolwindows as if they had no window manager, since
9537 it's XplatUIX11 that attaches them.
9539 2007-08-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
9541 * DataGridView.cs: If a column has been added, recreate the editing row.
9544 2007-08-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
9546 * TextControl.cs: Use Math.Max instead of Math.Min when deciding the length
9547 of the tag to draw. Makes disappearing text show up again.
9549 2007-08-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
9551 * StatusBar.cs: Take into account any icons when a panel has AutoSize =
9552 Contents. Fixes #82487.
9554 2007-08-19 Andreia Gaita <avidigal@novell.com>
9556 * Added HtmlElement.cs, HtmlElementCollection.cs,
9557 HtmlElementEventArgs.cs, HtmlElementEventHandler.cs
9559 2007-08-19 Andreia Gaita <avidigal@novell.com>
9561 * BindingSource.cs: Implement this, dispose and getenumerator.
9562 * DataGridViewRowCollection.cs: Move the InvalidOperationException
9563 out of AddInternal, throw it only on public Add calls. The
9564 UsingWebBrowser sample was blowing up with this when setting the
9565 DataSource after adding DataBindings, so it's likely that .net
9566 only throws this exception when Add is called directly.
9568 * ToolStripControlHost.cs: Return the hosted control's text
9569 property, and not the ToolStripItem one (it would always return
9572 * HtmlDocument.cs: Implement GetElementById and All
9573 * WebBrowser.cs: Remove exception on set_DocumentStream.
9575 2007-08-19 Everaldo Canuto <ecanuto@novell.com>
9577 * Form.cs: Fix the max and min value for opacity (0~1).
9579 2007-08-19 Everaldo Canuto <ecanuto@novell.com>
9582 * DataGridTableStyle.cs: Default header font is now null, on getter it
9583 returns datagrid font when is null. On setter permits null.
9586 - When ResetHeaderFont set header font to null.
9587 - On EndInit set grid_style.DataGrid.
9589 2007-08-19 Everaldo Canuto <ecanuto@novell.com>
9591 * TabControl.cs: Fix regression in default padding x.
9593 2007-08-19 Everaldo Canuto <ecanuto@novell.com>
9595 * TabControl.cs: Fix tab page text area removing padding. Fixes #82471.
9597 2007-08-19 Everaldo Canuto <ecanuto@novell.com>
9599 * TabControl.cs: Fix first tab drawing, when selected it must have x = 0
9600 not 2. Fixes #82229.
9602 2007-08-18 Everaldo Canuto <ecanuto@novell.com>
9604 * TabControl.cs: Fix tab size when image height is less than text height.
9605 Partially fixes #81837.
9607 2007-08-18 Everaldo Canuto <ecanuto@novell.com>
9609 * Form.cs: Add WS_EX_CONTROLPARENT to forms to make it selectable using
9610 "alt + tab". It works only for Win32, for X11 theres no way to remove window
9611 from taskbar and keep it on "alt_tab". Fixes #81722.
9613 2007-08-18 Everaldo Canuto <ecanuto@novell.com>
9615 * XplatUIX11.cs: Apply patch from Jurek Bartuszek to fix DrawReversibleFrame
9616 and DrawReversibleLine, also apply same behavior to FillReversibleRectangle.
9617 Fixes #80877 and #79418.
9619 2007-08-18 Everaldo Canuto <ecanuto@novell.com>
9621 * MenuAPI.cs: Fix popup menu position when the size is larger than distance
9622 between position and one of the screen borders. Fixes #82349.
9624 2007-08-18 Everaldo Canuto <ecanuto@novell.com>
9626 * MessageBox.cs: When there is no form that invoked the MessageBox, shows
9627 the MessageBox in the taskbar. Fixes #82457.
9629 2007-08-18 Everaldo Canuto <ecanuto@novell.com>
9631 * MessageBox.cs: Fix form size when icon is set and text height is bigger
9632 than icon. Fixes #82468.
9634 2007-08-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
9636 * ThemeWin32Classic.cs: A FixedToolWindow has border size 3.
9637 * InternalWindowManager.cs: Change HandleCalcSize to return a boolean value
9638 if handled or not. Implement WM_NCCALCSIZE for WParam == 0 as well.
9639 Refactored HandleNCCalcSize somewhat to avoid code duplication.
9640 * Form.cs: Add is_clientsize_set, set in set_ClientSize, used by
9641 FormBorderStyle to decide if we're calculating a new size from the
9642 client size or not. CreateParams: Don't fake tool windows, only the X11
9643 backend manages toolwindows manually.
9645 2007-08-17 Jonathan Pobst <monkey@jpobst.com>
9647 * Form.cs: Only reset is_visible if !IsDisposed to prevent an
9648 ObjectDisposedException.
9650 2007-08-17 Jonathan Pobst <monkey@jpobst.com>
9652 * Form.cs: Reset is_visible back to true after OnLoad. Setting this
9653 in OnLoad should not have any effect. [Fixes bug #82470]
9655 2007-08-17 Jonathan Pobst <monkey@jpobst.com>
9657 * ToolTip.cs: Add a hack to ToolTipWindow so it will still size and
9658 paint for controls that create their own ToolTipWindow instead of
9659 going through ToolTip.
9661 2007-08-17 Jonathan Pobst <monkey@jpobst.com>
9663 * ToolTip.cs: Make Hide internal instead of public to match MS API.
9665 2007-08-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9667 * ListViewGroupCollection.cs: Use generic List instead of an
9668 ArrayList, since this collection is 2.0 only.
9670 2007-08-17 Jeffrey Stedfast <fejj@novell.com>
9672 * ToolTip.cs (Hide): Made public to make the build work (should
9673 this not be public?).
9675 2007-08-17 Jonathan Pobst <monkey@jpobst.com>
9677 * ToolBar.cs, ToolStrip.cs, TreeView.cs: Use a ToolTip instead of a
9679 * ToolTip.cs: Add an internal Visible property to facilitate transition.
9681 2007-08-17 Jonathan Pobst <monkey@jpobst.com>
9683 * DrawToolTipEventArgs.cs, DrawToolTipEventHandler.cs, PopupEventArgs.cs,
9684 PopupEventHandler.cs: Make these internal for 1.1.
9685 * ThemeClearlooks.cs, ThemeWin32Classic.cs: Use TextRenderer, and modify to not
9686 use ToolTipWindow internals.
9687 * ToolTip.cs: Add 2.0 modal Show methods. Had to move a lot of stuff around to
9688 support this. A lot of stuff in the ToolTipWindow got moved to the ToolTip.
9690 2007-08-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
9692 * X11Dnd.cs: Add a null check.
9694 2007-08-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
9696 * X11Dnd.cs: MwfWindow: Try to load the control directly from the handle if
9697 nothing else succeeds. Fixes #82453.
9699 2007-08-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
9701 * XplatUIWin32.cs: PaintEventStart: validate the entire source client
9702 rectangle if we're painting to another window than the one the paint
9703 message was generated on. Simplify the code somewhat, which makes
9704 PaintEventEnd also simpler.
9706 2007-08-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
9708 * Control.cs: When changing parent of a form, let the form decide whether
9709 XplatUI.SetParent should be called or not.
9710 * Form.cs: ChangingParent: only call XplatUI.SetParent if we're not
9711 recreating the handle. If the new parent's handle isn't created, don't
9712 recreate our handle, just destroy it. CreateParams: Check if the
9713 parent's handle is created before fetching it.
9715 2007-08-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
9717 * Control.cs, Form.cs, InternalWindowManager.cs, MainMenu.cs, MdiClient.cs:
9718 Update calls to PaintEventStart/End to take a Message argument.
9719 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Update PaintEventStart/End to
9720 take a Message argument.
9721 * XplatUIWin32.cs, XplatUIX11.cs: Update PaintEventStart/End to take a
9722 Message argument, and handle the case where we don't paint to the window
9723 for which the paint message was generated.
9725 2007-08-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
9727 * XplatUIWin32.cs: Don't call Win32GetLastError directly, use
9728 Marshal.GetLastWin32Error. Plug nasty memory leak in
9729 PaintEventStart/End, we were creating a DC we weren't releasing.
9731 2007-08-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9733 * ListView.cs: Add Groups support in Details view. Also have a small
9734 method to do the layout of the group header. Don't use a separate
9735 method to do the groups calculation in Icons view, since our methods
9736 are now a little simpler.
9737 * ListViewGroup.cs: Use the more accurate `HeaderBounds' name than
9739 * ThemeWin32Classic.cs: Likewise.
9741 2007-08-16 Jonathan Pobst <monkey@jpobst.com>
9743 * Application.cs: Add FilterMessage method and rework our message loop
9746 2007-08-16 Jonathan Pobst <monkey@jpobst.com>
9748 * Application.cs: Add some methods and stub a few methods that are
9749 pretty much never used.
9751 2007-08-15 Jonathan Pobst <monkey@jpobst.com>
9753 * TreeNode.cs: Add some serialization methods.
9755 2007-08-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9757 * ListView.cs: In ListViewItemCollection have a
9758 'is_main_collection' field to not modify ListViewItem.ListView
9759 when using it as ListViewGroup.Items (and not ListView.Items)
9760 and also don't modify selection state (.Net behaviour).
9761 Instead, set group for items contained in a ListViewGroup.Items collection.
9762 * ListViewItem.cs: Simplify some code in Group setter.
9763 * ListViewGroup.cs: use the new .ctor to pass the current instance
9764 to the ItemsCollection.
9765 * ListViewGroup.cs: Set the ListView property for ListViewGroup
9766 instances when adding/removing. Also make Remove use RemoveAt, which
9767 should perform better.
9769 2007-08-14 Jonathan Pobst <monkey@jpobst.com>
9771 * Message.cs, TabControl.cs, TextBox.cs, TextBoxBase.cs: Hide some 2.0 API
9772 that crept into the 1.1 profile.
9774 2007-08-14 Jonathan Pobst <monkey@jpobst.com>
9776 * ToolBarButton.cs: Implement ImageKey.
9778 2007-08-14 Jonathan Pobst <monkey@jpobst.com>
9780 * ToolBar.cs: Implement ScaleControl/ScaleCore.
9782 2007-08-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
9784 * PictureBox.cs: OnAnimateImage/UpdateAnimateImage: Check if handle is still
9785 created, it might have gotten destroyed since we last checked. Fixes
9788 2007-08-11 Jonathan Pobst <monkey@jpobst.com>
9790 * ToolTip.cs: Remove mouse in control check from mouseleave handler so
9791 tooltip will hide when mouse is moved off the control.
9794 2007-08-11 Andreia Gaita <avidigal@novell.com>
9796 * WebBrowserBase.cs, WebBrowser.cs: add implementation
9797 using Mono.Mozilla for loading and navigating webcontrol
9799 The initial implementation was done on
9800 /trunk/mozembed/tests/browser , and copied here.
9802 2007-08-11 Gert Driesen <drieseng@users.sourceforge.net>
9804 * ThemeWin32Classic.cs: On 2.0 profile, use ForeColor and BackColor of
9805 ToolTipWindow for drawing the tooltip. Fixes bug #82408.
9807 2007-08-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
9809 * DataGridView.cs: Add support for an editing row. Fixes #82226.
9810 RowTemplateFull: throw an exception if a column doesn't have a template.
9811 * DataGridViewRowCollection.cs: AddInternal: if there are any editing rows,
9812 add the row just before it.
9813 * DataGridViewTextBoxCell.cs: Don't paint cells which are in edit mode as
9815 * DataGridViewSelectedRowCollection.cs: Don't return the editing row. Add a
9816 DataGridView field to be able to reach the grid's editing row.
9818 2007-08-10 Jonathan Pobst <monkey@jpobst.com>
9820 * ToolTip.cs: If the control's handle hasn't been created when it has a
9821 tooltip set on it, don't check to see if we need to show the tooltip. This
9822 check was causing the control's handle to be created.
9825 2007-08-10 Jonathan Pobst <monkey@jpobst.com>
9827 * TextBoxBase.cs: Fix SelectionLength when no text selected to match MS:
9829 Handle Not Created -1 0
9833 2007-08-10 Jonathan Pobst <monkey@jpobst.com>
9835 * ToolTip.cs: Hide the tooltip if the control is clicked to match MS behavior.
9838 2007-08-09 Jonathan Pobst <monkey@jpobst.com>
9840 * DrawToolTipEventArgs.cs: Don't dispose a brush we got from the respool.
9841 * ToolTip.cs: Implement some properties and owner draw.
9843 2007-08-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
9845 * DataGridView.cs: OnPaint: don't set scrollbar visibility to false then
9846 show them again, since setting visibility causes a paint, causing an
9847 endless loop (instead use a temporary and set it all when it's known if
9848 they should be shown or not). Fixes #79265.
9850 2007-08-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
9852 * DataGridView.cs: Only do a full column/row selection if a header was
9853 clicked and we're in Column/RowHeader selection mode. If shift and ctrl
9854 isn't pressed, deselect everything before selecting something.
9856 2007-08-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
9858 * DataGridView.cs: Fix SelectedRows and SelectedColumns to match MS
9859 behaviour according to bug #81075 - they are returned in the order they
9860 are selected. Fix HitTest to check if the point is within any of the
9861 headers. Allow for row/column selection when in ColumnHeader or
9862 RowHeader selection mode. Add SetSelected[Column|Row]CoreInternal for
9863 the row and column to call when their selected state changes, and
9864 updated selected_[rows|columns] whenever SetSelected* is called.
9865 * DataGridViewBand.cs: Initialize isRow correctly. Call
9866 SetSelected[Row|Column]CoreInternal when the selected state changes, and
9867 add a SelectedInternal to avoid StackOverflows.
9868 * DataGridViewColumn.cs, DataGridViewRow.cs: If DGV is ReadOnly, we're also
9869 ReadOnly no matter what.
9870 * DataGridViewSelectedColumnCollection.cs,
9871 DataGridViewSelectedRowCollection.cs: Add an InternalAddRange that adds
9872 the items in reverse order (just as MS does...)
9874 2007-08-09 Jonathan Pobst <monkey@jpobst.com>
9876 * Application.cs: Only release menustrips if Alt (MenuKey) is pressed by
9877 itself, not part of a mnemonic. [Fixes bug #82378]
9879 2007-08-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
9881 * DataGridView.cs: BeginEdit: don't allow editing of readonly cells.
9882 * DataGridViewCell.cs: Implement ReadOnly better: the cell is ReadOnly if
9883 the DGV, the column, the row, or the cell itself is readonly.
9885 2007-08-09 Gert Driesen <drieseng@users.sourceforge.net>
9887 * ThemeNice.cs: Use XplatUI.RunningOnUnix instead of checking
9889 * FileDialog.cs: Same.
9890 * TextRendered.cs: Same.
9891 * FolderBrowserDialog.cs: Same.
9892 * TextBoxBase.cs: Same.
9893 * Application.cs: Same.
9895 * ThemeClearLooks.cs: Same.
9897 2007-08-09 Gert Driesen <drieseng@users.sourceforge.net>
9899 * XplatUI.cs: Added RunningOnUnix property to be used by controls
9900 instead of duplicating these checks everywhere.
9901 * FileDialog.cs: Use case-insensitive comparison for populating the
9902 DirComboBox when not running on unix. Fixes bug #82385.
9903 * OpenFileDialog.cs: to match MS, change label of DirComboBox to
9906 2007-08-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
9908 * DataGridView.cs: SelectedRows: we need to check if selectionMode is
9909 FullRowSelect (not FullColumnSelect). Fixes #81075. Implemented
9910 BeginEdit, EndEdit, SetSelected<Cell|Row|Column>Core. Implemented row,
9911 cell and column selection with ctrl and shift pressed. Call the correct
9912 BeginEdit/EndEdit whenever we start/end editing. Move painting code to
9913 the corresponding virtual method (PaintBackground to paint background,
9915 * DataGridViewCell.cs: Implement Selected correctly, we're selected if
9916 either the column, row or the cell itself is selected.
9917 * DataGridViewRowCollection.cs: Use DGV.OnRowsAddedInternal instead of
9919 * DataGridViewRow.cs: Moved some of the painting code from DataGridView
9920 here. When the row is selected, don't select all cells. Each cell now
9921 queries the row to see if the row is selected.
9923 2007-08-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
9925 * DataGridViewColumn.cs: Throw if the SortMode conflicts with DataGridView's
9928 2007-08-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9930 * ListView.cs: In ListViewItemsCollection check that owner is
9931 not null before trying to access it (this happens quite often
9932 using Groups). Also don't duplicate calls by calling CollectionChanged
9935 2007-08-08 Jonathan Pobst <monkey@jpobst.com>
9937 * ToolStrip.cs: Record if we were activated by mouse or keyboard. Redraw
9938 when we are dismissed to clear keyboard mnemonics.
9939 * MenuStrip.cs, ToolStripDropDown.cs, ToolStripItem.cs,
9940 ToolStripMenuItem.cs: Record if we were activated by mouse or keyboard.
9941 * ToolStripItemTextRenderEventArgs.cs: Draw mnemonic underlines if menu
9942 was activated by keyboard or the OS tells us to always draw them.
9943 * ToolStripManager.cs: Setup storage for activated by mouse or keyboard.
9944 [Fixes bugs #82376, #82377]
9946 2007-08-08 Jonathan Pobst <monkey@jpobst.com>
9948 * Control.cs: If no one accepts a mnemonic, let the MenuStrip have a
9949 shot at having it because Alt was pressed.
9950 * MenuStrip.cs: When handling Alt, don't select a SystemMenuItem, select
9951 the first real menu item.
9952 * ToolStrip.cs: Don't crash when looking for a ToolStripItem to handle
9953 a mnemonic if Text is null.
9956 2007-08-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9958 * ListView.cs: In ListViewItemCollection.AddItem, don't do a linear
9959 search do check whether the item is already contained in the
9960 collection or not; instead check if the owner of the item is the same
9961 as ours. Also, remove a redundant check in the same method.
9963 2007-08-08 Jonathan Pobst <monkey@jpobst.com>
9965 * Control.cs: Allow the clip region to be set back to null.
9966 * XplatUIWin32.cs: If we are sent a null clip region, use IntPtr.Zero.
9967 [Fixes button still showing up in bug #82370 when Show Through is turned off]
9969 2007-08-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
9971 * GridEntry.cs: Add a null check.
9972 * PropertyGrid.cs: When checking for existing grid entries, ignore category
9973 entries. Fixes #82297.
9975 2007-08-07 Jonathan Pobst <monkey@jpobst.com>
9977 * OwnerDrawPropertyBag.cs: Make the serialization constructor protected
9980 2007-08-07 Jonathan Pobst <monkey@jpobst.com>
9982 * ListBox.cs: Implement ScaleControl.
9984 2007-08-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
9986 * Form.cs: Add a few ActiveMenu null checks. ActiveMenu might be null if we
9988 * MdiWindowManager.cs: Don't create a maximized menu if the child or it's
9989 parent has a menu strip. Fixes #81689.
9991 2007-08-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
9993 * ToolTip.cs: We don't get mouse events on all platforms in the exact same
9994 moments, so apply some fuzzy logic to determine if the mouse is still
9995 inside a control or not. Fixes #82288 (for the third time).
9997 2007-08-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
9999 * Control.cs: CreateControl: create implicit children as well. Fixes #82344.
10000 Don't create the child if it has been disposed already (may happen if
10001 the user closes the form the Load event).
10003 2007-08-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
10005 * ToolTip.cs: If ReshowDelay is 0, show the tooltip immediately. Fixes
10008 2007-08-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
10010 * Control.cs: Add a null check in OnParentBindingContextChanged. The parent
10011 might call us after we've been destroyed, in which case our own private
10012 parent field is null. Fixes #82326.
10014 2007-08-06 Jonathan Pobst <monkey@jpobst.com>
10016 * ToolStripDropDown.cs: Fix a failing test on X11 by adding a null
10017 check for setting the dropdown's owner.
10019 2007-08-06 Jonathan Pobst <monkey@jpobst.com>
10021 * MdiClient.cs: Fix some failing tests on X11 by adding a null check
10022 before removing system menu items.
10024 2007-08-02 Jonathan Pobst <monkey@jpobst.com>
10026 * MdiClient.cs, MdiWindowManager.cs: Support 2.0 Mdi MenuStrip
10028 * MdiControlStrip.cs: Added. These are the menu items used in mdi
10030 * ToolStrip.cs: Add a null check to mnemonics.
10031 * ToolStripDropDownMenu.cs: When using a SystemMenuItem, there is
10033 [Fixes most of bug #81689]
10035 2007-08-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
10037 * PropertyGrid.cs: Add a null-check. Fixes #82289/SVGPad.
10039 2007-08-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
10041 Use InitialDelay if ReshowDelay is zero. Fixes #82288.
10043 2007-08-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
10045 * DataGridViewCell.cs: EditType: returns
10046 DataGridViewTextBoxEditingControl always.
10048 2007-08-01 Jonathan Pobst <monkey@jpobst.com>
10050 * TextRenderer.cs: Remove the LineLimit string format flag from the
10051 DrawString fallback method so that things like buttons that aren't
10052 tall enough to draw a full line will still draw part of the text.
10053 [Fixes part of bug #82272]
10055 2007-08-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
10057 * DataGridView.cs: Implemented AutoResizeColumn(s).
10058 * DataGridViewCellStyle.cs: Added SetAlignment, fills in a StringFormat
10059 according to the Alignment.
10060 * DataGridViewColumnHeaderCell.cs, DataGridViewTextBoxCell.cs:
10061 Implement alignment and padding when painting.
10062 * DataGridViewRow.cs: SetValues: Don't create a cell if it already
10064 * DataGridViewCell.cs: Implement BorderWidths in the most primitive
10066 * DataGridViewColumnCollection.cs: Raise OnColumnAdded on the DGV when
10069 2007-07-31 Jonathan Pobst <monkey@jpobst.com>
10071 * TextBoxBase.cs: Use Control.ExplicitBounds instead of explicit_bounds,
10074 2007-07-31 Jonathan Pobst <monkey@jpobst.com>
10076 * ToolStrip.cs: Stub out drag and drop methods, fix some corcompare stuff,
10077 hide GetPreferredSize from public API.
10078 * ToolStripDropDown.cs: Override AllowItemReorder, fix AccessibleObject.
10079 * ToolStripItem.cs: Stub out drag and drop methods and events.
10080 * ToolStripManager.cs: Stub out Save/LoadSettings.
10081 * ToolStripOverflow.cs: Use renamed ToolStrip.GetPreferredSize.
10082 * ToolStripPanel.cs: Fix corcompare error.
10083 * ToolStripPanelRow.cs: Use renamed ToolStrip.GetPreferredSize.
10084 * ToolStripSplitButton.cs: Fix AccessibleObject stuff.
10085 * ToolStripSplitStackLayout.cs: Use renamed ToolStrip.GetPreferredSize.
10087 2007-07-31 Jonathan Pobst <monkey@jpobst.com>
10089 * TextBoxBase.cs: In our new GetPreferredSizeCore, return the explicit
10090 bounds height instead of PreferredHeight. Puts things back the way
10091 they were for height while still fixing the width. Fixes broken unit
10094 2007-07-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
10096 * Binding.cs: Implement 2.0 constructors and add a null check.
10098 2007-07-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
10100 * DataGridViewRowCollection.cs: Allow a null DGV in the constructor,
10101 and fix row index (off by one).
10103 2007-07-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
10105 * PropertyGridView.cs: Remove debug output.
10107 2007-07-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
10109 * Control.cs: We need to reset the is_created flags when the handle is
10110 destroyed. Fixes #82187.
10111 * XplatUIWin32.cs: In GetWindowRect don't offset screen coordinates to
10112 client coordinates if the window doesn't have a parent.
10113 Win32GetParent returns the parent or the owner, and for top-level
10114 windows with no parent (but with an owner) we were calculating the
10115 location from the location of the owner.
10116 * Form.cs: Remove incorrect fix for #82187. Don't raise OnLoad if the
10117 form has been disposed.
10118 * MdiClient.cs: Add a null-check.
10120 2007-07-30 Jonathan Pobst <monkey@jpobst.com>
10122 * TextBoxBase.cs: TextBoxBase reports itself at AutoSize, but doesn't
10123 actually do auto-sizing. Override the internal GetPreferredSizeCore
10124 so we can provide an implementation that returns the current width
10125 and preferred height. Allows anchor = right to work with TextBox 2.0.
10128 2007-07-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10130 * ListView.cs: Add support for navigating items in Groups mode, by
10131 creating a big matrix containing all rows and cols of all groups. When
10132 are in other mode than Details, pressing Up should have a similar
10133 behaviour as that one of Down (moving to the next available column if
10134 current one doesn't have an item in the requested row). Also, don't
10135 proceed to use groups if ShowGroups is false.
10136 * ListViewGroup.cs: Add an internal int field to store the starting
10137 row of the group (used by the big matrix used for navigating the
10139 * ThemeWin32Classic.cs: Don't draw headers if ListView.ShowGroups is
10142 2007-07-30 Jonathan Pobst <monkey@jpobst.com>
10144 * ToolStripDropDown.cs: When we do Show, start with the
10145 DefaultDropDownDirection, but if our popup menu is going to off-screen,
10146 modify the direction to keep it on screen. [Fixes bug #82210]
10148 2007-07-29 Gert Driesen <drieseng@users.sourceforge.net>
10150 * FileDialog.cs: Accept any FilterIndex value, and store it
10151 unmodified. When FilterIndex is less than 1, or greater than number
10152 of filters, then default to first filter. Only add filter extension to
10153 file if user did not specifiy an extension. When type of dialog is
10154 OpenFileDialog and DefaultExt is set, then only use filter extension
10155 if: CheckFileExists is true and no file wih the default extension
10156 exists, or CheckFileExists is false, and user specified file does not
10157 exist. When CheckFileExists is true, then add first extension of
10158 selected filter that matches existing file. Perform checks for
10159 existing file, overwrite and create after extension has been added to
10160 file name. When CheckFileExists is true and type is SaveFileDialog,
10161 then only consider first filter extension if DefaultExt is set.
10162 When CheckFileExists is true, then ignore DefaultExt if file with that
10163 extension does not exist. Also perform check for existing file when
10164 type is SaveFileDialog. Changed some field to constants.
10166 2007-07-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10168 * ListView.cs: Take into account the region used by header
10169 control when doing the vertical scroll (this way we invalidate
10170 the precise area, and don't get any dirty one).
10172 2007-07-27 Everaldo Canuto <ecanuto@novell.com>
10174 * FileDialog.cs: Check for valid filterIndex on button open/save.
10177 2007-07-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10179 * ListView.cs: Update some layout calculations in details view
10180 and clean the code in a pair of assignations.
10182 2007-07-26 Jonathan Pobst <monkey@jpobst.com>
10184 * ComboBox.cs, ContainerControl.cs, DataGrid.cs, FontDialog.cs, Label.cs,
10185 LinkLabel.cs, ListBox.cs, ListView.cs, ListViewItem.cs, MessageBox.cs,
10186 MonthCalender.cs, StatusBar.cs, ThemeClearlooks.cs, ThemeWin32Class.cs,
10187 ToolBar.cs, TreeView.cs: First pass at using thread-safe string measuring.
10189 2007-07-26 Jonathan Pobst <monkey@jpobst.com>
10191 * TextRenderer.cs: Use [ThreadStatic] instead of locks to improve
10192 performance of thread-safe Graphic methods. (Thanks rolf!)
10194 2007-07-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10196 * ListView.cs: When doing the layout calculations, don't calculate
10197 scroll bars before handle is created. This is unnecessary and also
10198 calculating them before handle creation item causes a number of random
10199 bugs (which begin to appear after Chris' big patch for handle creation
10202 2007-07-26 Jonathan Pobst <monkey@jpobst.com>
10204 * TextRenderer.cs: Create thread-safe versions of Graphics.MeasureString
10205 for things that don't have a Graphics object. Currently, things just use
10206 the static Hwnd.bmp_g which is not thread safe.
10208 2007-07-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
10210 * Form.cs: ShowDialog: don't destroy handles if the dialog is a common
10211 dialog. Fixes #82187.
10213 2007-07-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
10215 * DataGridViewElement.cs: Initialize state.
10216 * DataGridView.cs: Forward a few Mouse events to cells. Add
10217 GetRowInternal and GetCellInternal that doesn't unshare rows.
10218 Implement GetCellDisplayRectangle. HitTest: if the row is shared,
10219 don't use the index, but look it up. Add
10220 DataGridViewControlCollection.RemoveInternal to remove controls
10221 that Remove won't remove (scrollbars, edit control).
10222 * DataGridViewColumn.cs: Initialize State correctly.
10223 * DataGridViewColumnHeaderCell.cs, DataGridViewComboBoxCell.cs,
10224 DataGridViewHeaderCell.cs, DataGridViewRowHeaderCell.cs: Started
10226 * DataGridViewRowCollection.cs: Implemented shared rows.
10227 * DataGridViewRow.cs: Throw exceptions as MS do.
10228 * DataGridViewCell.cs: A few properties are implemented by a
10229 Get<Property> method, so move implementation there and remove the
10230 NIEX in the method. Add a bunch of OnXInternal that DataGridView
10231 calls when necessary.
10232 * DataGridViewComboBoxEditingControl.cs: Remove a few NIEX'es that just
10233 complicates matters.
10234 * DataGridViewCellCollection.cs: Add a GetCellInternal that doesn't
10237 2007-07-25 Jonathan Pobst <monkey@jpobst.com>
10239 * UpDownBase.cs: We cannot override SetBoundsCore for 2.0, which was relayout-ing
10240 the children controls. Instead, we will just set up the proper docking for the
10241 children controls so we don't have to worry about it. [Fixes bug #82188]
10243 2007-07-25 Jonathan Pobst <monkey@jpobst.com>
10245 * TreeView.cs, NodeLabelEditEventArgs.cs, LabelEditTextBox.cs: Support edit
10246 canceling and correct Before/AfterLabelEdit properties as layed out in bug
10247 81847. [Fixes bug #81847]
10249 2007-07-25 Jonathan Pobst <monkey@jpobst.com>
10251 * Label.cs: If AutoSize = true and a width or height is set, ignore it and
10252 redo the autosize. VS2005 defaults to setting the AutoSize, and then setting
10253 an explicit size based on the design-time size of the text. Since our fonts
10254 may not match this explicit size, we tend to cut off the ends of people's labels.
10256 2007-07-24 Jonathan Pobst <monkey@jpobst.com>
10258 * Menu.cs: Add some missing methods to MenuItemCollection.
10260 2007-07-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
10262 * DataGridView.cs: Added RowTemplateFull, creates a row from the templates in the columns.
10263 * DataGridViewBand.cs: DefaultHeaderCellType: initialize correctly. Resizable: if not set, check DGV.
10264 * DataGridViewColumn.cs: InheritedAutoSizeMode: if not set, check DGV. Resizable: delegate to base class. ToolTipText: Never return null. Initialize a few other properties correctly.
10265 * DataGridViewColumnCollection.cs: Add: Default column is a TextBoxColumn.
10266 * DataGridViewComboBoxCell.cs: Started implementing this, lots left still.
10267 * DataGridViewElement.cs: State defaults to Visible.
10268 * DataGridViewRowCollection.cs: Add: creates the new row based on a template.
10269 * DataGridViewTextBoxColumn.cs: SortMode: delegate to base class, but initialize to Automatic. ToString: implement correctly.
10271 2007-07-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
10273 * Control.cs: Minor 1.1 corcompare fix.
10275 2007-07-23 Jonathan Pobst <monkey@jpobst.com>
10277 * LinkLabel.cs, PrintPreviewDialog.cs, TabPage.cs, TextBox.cs,
10278 TextBoxBase.cs, ToolBar.cs: 2.0 corcompare work.
10280 2007-07-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
10282 * DataGridViewLinkColumn.cs, DataGridViewRowCollection.cs,
10283 DataGridViewImageColumn.cs, DataGridViewSelectedCellCollection.cs,
10284 DataGridViewComboBoxCell.cs, DataGridViewLinkCell.cs,
10285 DataGridViewSelectedColumnCollection.cs,
10286 DataGridViewSelectedRowCollection.cs: Corcompare work.
10288 2007-07-23 Jonathan Pobst <monkey@jpobst.com>
10290 * PrintDialog.cs: Stub UseEXDialog. I chose to stub this because
10291 it is autoset by VS2005 designer and the effect is barely noticeable.
10293 2007-07-23 Jonathan Pobst <monkey@jpobst.com>
10295 * TreeView.cs: Implement HitTest.
10297 2007-07-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
10299 * DataGridViewTextBoxCell.cs: Use DGV.EditControlInternal instead of
10300 manually adding and removing the control from the Controls
10302 * DataGridView.cs: Implement DataGridViewControlCollection. Add an
10303 EditingControlInternal property that tracks the editing control.
10304 Always keeping the scrollbars in the Controls collection, as MS
10305 testing confirms is the right behaviour.
10307 2007-07-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
10309 * ScrollableControl.cs: Fix implementation of AutoScrollPosition
10310 according to MSDN and new test.
10312 2007-07-20 Jonathan Pobst <monkey@jpobst.com>
10314 * TreeNode.cs: Implement ToolTipText.
10315 * TreeView.cs: Implement tooltips, NodeMouse* events.
10317 2007-07-20 Jonathan Pobst <monkey@jpobst.com>
10319 * TreeView.cs: Implement OnNodeMouseClick and OnNodeMouseDoubleClick.
10321 2007-07-20 Jonathan Pobst <monkey@jpobst.com>
10323 * TreeNode.cs: Implement ContextMenu, ContextMenuStrip, and Level.
10324 * TreeView.cs: Use the node's contextmenu[strip] if applicable.
10326 2007-07-20 Ivan N. Zlatev <contact@i-nz.net>
10328 * Control.cs, Form.cs, ContainerControl.cs,
10329 ScrollableControl.cs, ButtonBase.cs: Added ShouldSerialize
10330 for misc properties.
10332 2007-07-20 Jonathan Pobst <monkey@jpobst.com>
10334 * TreeNode.cs: Implement StateImageIndex and StateImageKey.
10335 * TreeView.cs: Implement StateImageList.
10337 2007-07-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
10339 * Form.cs: Don't check if the current form is the active form before
10340 activating it. Fixes #81904.
10342 2007-07-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
10344 * Form.cs: Don't check if the current form is the active form before
10345 activating it. Fixes #81904.
10347 2007-07-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
10349 * TreeView.cs: Apply patch from Tyron (tmm@aon.at). Fixes #81847.
10351 2007-07-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
10353 * Form.cs: Don't try to position the form after loading if the form was
10354 disposed. Fixes #81969.
10356 2007-07-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
10358 * PropertyGrid.cs, PropertyGridView.cs: Implemented 2.0 methods and
10359 properties. Had to change ToolBar into ToolStrip, which required a
10362 2007-07-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
10364 * PropertyGrid.cs: PropertyToolBar: Redraw the entire toolbar when it's
10365 resized, fixes part of #79829 (vertical lines in toolbar).
10366 PropertyGrid: Refactored Populate* to something that's easier to
10367 follow at least for me, as well as splitting it up into several new
10368 methods, required to update only subitems when something has
10369 changed by a popup editor or listbox. Don't use events to check
10370 when any values are changed, since the events are unreliable (we're
10371 changing the objects the events are registered with, and if the
10372 event handling requires the objects to be immutable (objects stored
10373 in hashtables for instance), the events will never be raised).
10374 * PropertyGridView.cs: Call PropertyGrid.PropertyValueChangedInternal
10375 everytime we change a value, since events are unreliable.
10376 DropDownButtonClicked: For the same reason don't compare objects to
10377 check if it has changed or not, it would require all objects to
10378 derive Equals. Fix dialog location on windows, MS is doing weird
10379 things when creating parented forms.
10380 * GridEntry.cs: Add a SelectedObject setter.
10382 2007-07-19 Jonathan Pobst <monkey@jpobst.com>
10384 * TreeNode.cs: Add some corcompare attributes.
10385 * TreeNodeCollection.cs: Implement 2.0 stuffs.
10386 * TreeView.cs: Implement some 2.0 stuffs.
10388 2007-07-18 Andreia Gaita <avidigal@novell.com>
10390 * WebBrowser.cs, WebBrowserBase.cs: add some more MonoTODOs now
10393 2007-07-19 Jonathan Pobst <monkey@jpobst.com>
10395 * ListBox.cs: Implement custom tab offsets.
10397 2007-07-18 Jonathan Pobst <monkey@jpobst.com>
10399 * ToolStripContentPanel.cs: Support System renderer.
10400 * ToolStripControlHost.cs: Set RightToLeft to default to No.
10402 2007-07-18 Jonathan Pobst <monkey@jpobst.com>
10404 * ScrollableControl.cs: Don't mess up the user's explicit bounds.
10406 2007-07-18 Jonathan Pobst <monkey@jpobst.com>
10408 * CheckBox.cs: Chain TextAlign to base implementation instead of
10409 maintaining another one.
10411 2007-07-18 Jonathan Pobst <monkey@jpobst.com>
10413 * ButtonBase.cs: Fix an incorrect string constant.
10415 2007-07-18 Jonathan Pobst <monkey@jpobst.com>
10417 * TextRenderer.cs: Use the static Graphics context in Hwnd instead
10418 of creating one for measuring strings.
10420 2007-07-18 Jonathan Pobst <monkey@jpobst.com>
10422 * ToolStrip.cs, ToolStripDropDown.cs, ToolStripDropDownMenu.cs:
10423 Implement MaxItemSize.
10425 2007-07-17 Jonathan Pobst <monkey@jpobst.com>
10427 * Control.cs: Remove per-control 1x1 Bitmap and Graphics context used
10428 for DeviceContext. Instead, use the static one available in Hwnd.
10429 Informal tests show this saves about 500k on formtest.exe.
10431 2007-07-17 Jonathan Pobst <monkey@jpobst.com>
10433 * ContainerControl.cs: Implement 2.0 AutoScaling.
10435 2007-07-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
10437 * ComboBox.cs: Work around bug #82120 (bug in mcs).
10439 2007-07-16 Jonathan Pobst <monkey@jpobst.com>
10441 * ThemeWin32Classic.cs: Allow a Flat button to be Focused and Entered.
10442 Darken the focus color.
10444 2007-07-16 Jonathan Pobst <monkey@jpobst.com>
10446 * ListBox.cs: When measuring items, if it's a CheckedListBox, add room
10448 * ThemeWin32Classic.cs: Make the checkbox bigger in a CheckedListBox and use
10449 X, Y instead of a rect for drawing text.
10450 - For ControlPaint.DrawCheckBox, center the check a little better when the
10451 checkbox is odd width. When drawing a flat checkbox, use a white background
10452 when state != inactive.
10453 [Fixes bugs #82097, 82100]
10455 2007-07-16 Gert Driesen <drieseng@users.sourceforge.net>
10457 * ListControl.cs: When changing CurrencyManager, disconnect event
10458 handlers from previous one. Fixes bug #81771. Code formatting.
10460 2007-07-15 Andreia Gaita <avidigal@novell.com>
10462 * PrintPreviewControl.cs: Remove extraneous Invalidate calls. Separate
10463 full preview invalidation from layout invalidation, and only invalidate
10464 the layout when setting zoom or other properties. Invalidation should
10465 always be done even when resetting properties with the same values as
10466 what is there. Fixes #81744 and #79830.
10468 2007-07-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10470 * ListView.cs: Implement initial support for Groups. Split some of the
10471 LayoutIcons code to render a partial list of the items (needed by
10472 items contained in ListViewGroup instances). Let the
10473 ListViewItemsCollection.ListView property be modifiable (needed when
10474 using Groups, too).
10475 * ListViewGroup.cs: Use a Bounds property rather than a Location
10476 one. Also invalidate the bounds when they get changed.
10477 * ThemeWin32Classic.cs: When drawing items, also draw the group header
10478 if ListView.Groups.Count is bigger than 0. Add a DrawListViewGroupHeader
10481 2007-07-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10483 * ListView.cs: When space gets pressed and CheckBoxes is true,
10484 don't invoke the Begin and EndUpdate methods. We are generating
10485 a redraw of the entire control without need to do so.
10487 2007-07-13 William Holmes <billholmes54@gmail.com>
10489 * Control.cs: Changing logic in FindFlatForward and
10490 FindFlatBackward to handle multiple Controls with
10492 This fixes bug 81687.
10494 2007-07-13 Jonathan Pobst <monkey@jpobst.com>
10496 * OSFeature.cs: Enable IsPresent.
10498 2007-07-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
10500 * Control.cs: Don't do anything in WmShowWindow if the control has been
10501 disposed. We can get WM_SHOWWINDOW after a control is disposed: a
10502 control is created, put on a form, the control is disposed (the
10503 form is never shown), and then we get a MapNotify, triggering a
10505 * Form.cs: Exclude the current form when sending Deactivate to all
10507 * NativeWindow.cs: Set WindowCreating to null as soon as possible,
10508 there was a race condition because assigning the handle raises
10509 events, we can get more messages, therefore trying to assign the
10510 handle again, which would fail if any of those event handlers
10511 closed/disposed the control.
10513 2007-07-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
10515 * Form.cs: Make the fix for #80775 windows-only (fixes #81957).
10517 2007-07-12 Jonathan Pobst <monkey@jpobst.com>
10519 * SystemInformation.cs, Theme.cs, XplatUI.cs, XplatUIDriver.cs,
10520 XplatUIWin32.cs: Implement SystemInformation 2.0 properties.
10522 2007-07-12 Rolf Bjarne Kvinge <RKvinge@novell.com>
10524 * DateTimePicker.cs: If there's no part format specifier, return an
10527 2007-07-12 Jonathan Pobst <monkey@jpobst.com>
10529 * FlatButtonAppearance.cs: Throw NotSupportedException for a
10530 Transparent BorderColor.
10532 2007-07-12 Rolf Bjarne Kvinge <RKvinge@novell.com>
10534 * DataGridView.cs, TextControl.cs, ProgressBar.cs, PrintDialog.cs,
10535 MessageBox.cs, ButtonBase.cs, PageSetupDialog.cs, NumericUpDown.cs,
10536 X11Dnd.cs, Binding.cs, DataGrid.cs, AxHost.cs,
10537 LinkLabelLinkClickedEventArgs.cs, TextRenderer.cs, Label.cs,
10538 LinkLabel.cs, TreeNode.cs, BindingSource.cs, TabPage.cs,
10539 TextBoxBase.cs, BindingNavigator.cs, Application.cs,
10540 ToolStripPanel.cs, TabControl.cs, ThemeClearlooks.cs, TreeView.cs:
10542 * X11Structs.cs: Remove warnings, add ToString implementations.
10544 2007-07-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
10546 * XplatUIX11.cs: Translate min/max size according to the actual min/max
10547 size, and not the current size. Fixes #81798.
10549 2007-07-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
10551 * XplatUIX11.cs: Fix #80822 again (DefWndProc can be reached before
10552 XplatUI.CreateWindow returns, in which case the hwnd isn't assigned
10553 to the control yet).
10555 2007-07-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
10557 * PropertyGridTextBox.cs: Add a method that sends any forwarded
10558 mousedowns to the contained textbox.
10559 * X11Structs.cs: More ToString implementation.
10560 * PropertyGridView.cs: Forward any mousedowns to the textbox, fixes
10563 2007-07-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
10565 * PropertyGridView.cs: Add a null-check, fixes a few tests.
10567 2007-07-10 Jonathan Pobst <monkey@jpobst.com>
10569 * TableLayoutPanelCellPosition.cs: TypeConverter.
10571 2007-07-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
10575 * PropertyGridTextBox.cs: Propagate any color changes to all contained
10577 * PropertyGridView.cs: A few color fixes.
10579 2007-07-10 Jackson Harper <jackson@ximian.com>
10581 * TextControl.cs: Remove some old unused text formatting stuff.
10583 2007-07-10 Jackson Harper <jackson@ximian.com>
10585 * TreeView.cs: Update full row select invalidation to match the
10586 newer DrawSelection... method.
10587 - Make sure to invalidate the entire width when selecting a new
10588 node, if we have full row selection enabled.
10590 2007-07-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
10592 * PropertyGridView.cs: Fix for #81800, makes text show up on initial
10593 display of properties again.
10595 2007-07-10 Jonathan Pobst <monkey@jpobst.com>
10597 * ListBox.cs: Add IntegerCollection and Add, Clear, Remove
10598 to existing collections.
10600 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
10602 * AccessibleObject.cs, RadioButton.cs: Fix some base classes
10603 that changed between 1.1 and 2.0.
10605 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
10607 * PowerStatus.cs: Added. This is just a data class, it is filled
10608 in by SystemInformation.
10610 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
10612 * Message.cs: Add op_Equality and op_Inequality.
10614 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
10616 * MenuStrip.cs: Finish corcompare work.
10618 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
10620 * LinkArea.cs: Add op_Equality and op_Inequality.
10622 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
10624 * Application.cs: Add MessageLoopCallback delegate.
10626 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
10628 * ListBox.cs: First set of 2.0 stuffs.
10630 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
10632 * Control.cs: Make an internal Height property we can override
10633 without messing up the public API.
10634 * ListBox.cs: Override HeightInternal to always return the size
10635 the user set. [Fixes bug #80466]
10637 2007-07-08 Jonathan Pobst <monkey@jpobst.com>
10639 * TableLayoutPanel.cs: Add a null check so we don't NRE trying to
10640 paint cell borders if we haven't calculated where they go yet.
10641 [Fixes bugs #82040 and #82041]
10643 2007-07-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10645 * ListView.cs: In Details view, set the location of item_control
10646 in the (0,0) position (and the header_control is thus on the
10647 item_control). This way the Bounds of the Items are relative to the
10648 ListView control (before this, they had a Bounds value without the
10649 header_control offset, which wasn't matching .Net). Fixes #82004.
10651 2007-07-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10653 * ListControl.cs: When DataSource is set to null, pass an empty
10654 array of object to SetItemsCore. This is done to clean the items
10655 in the ListContol children. Fixes #81788.
10657 2007-07-06 Jonathan Pobst <monkey@jpobst.com>
10659 * ListControl.cs: Add 2.0 stuffs.
10661 2007-07-06 Jonathan Pobst <monkey@jpobst.com>
10663 * Label.cs: Finish up 2.0 stuffs. Replace calls to Refresh with Invalidate,
10664 Refresh is overkill for just about every repaint request.
10666 2007-07-06 Jonathan Pobst <monkey@jpobst.com>
10668 * ToolStripItem.cs: TextDirection getter handles looking up Inherit for us,
10669 so remove my custom Get method and fix the property getter.
10671 2007-07-06 Jonathan Pobst <monkey@jpobst.com>
10673 * Label.cs: DefaultMargin for 2.0.
10675 2007-07-06 Jonathan Pobst <monkey@jpobst.com>
10677 * ComboBox.cs: Override IsInputCharInternal and return true. Fixes
10678 reported issue where other controls with mnemonics would steal strokes
10679 from a selected ComboBox.
10681 2007-07-06 Jonathan Pobst <monkey@jpobst.com>
10683 * ScrollOrientation.cs: Make internal for 1.1.
10684 * ScrollEventArgs.cs: Add 2.0 stuffs.
10686 2007-07-05 Jonathan Pobst <monkey@jpobst.com>
10688 * ToolStrip.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
10689 ToolStripItem.cs, ToolStripItem.cs, ToolStripItemTextRenderEventArgs.cs,
10690 ToolStripRenderer.cs, ToolStripSeparator.cs: Implement TextDirection.
10692 2007-07-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10694 * ListViewItem.cs: Implement the small 2.0 GetSubItemAt method.
10696 2007-07-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10698 * ListView.cs: Implement the so-incredibly broken 2.0
10699 VirtualItemsSelectionRangeChanged event.
10701 2007-07-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10703 * ListView.cs: When enter is pressed and selection is non empty,
10704 an OnItemActivate event must be fired.
10706 2007-07-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10708 * ListView.cs: Store the FocusedItem information as an
10709 int instead of a ListViewItem (needed by VirtualMode).
10710 Update the calls to SetFocusedItem to pass an index instead of
10712 * ListViewItem.cs: Likewise. Also, in VirtualMode retrieve
10713 the Focused state from the owner ListView.
10715 2007-07-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10717 * ListView.cs: Set ListView.focused_item from ListViewItem.Focused
10718 property. Also, invalidate previous focused item in the mentioned
10719 property (match .Net).
10721 2007-07-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10723 * ListView.cs: Implement 2.0 FocusedItem property setter.
10725 2007-07-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10727 * ListView.cs: Implement 2.0 TopItem property setter.
10729 2007-07-03 Jonathan Pobst <monkey@jpobst.com>
10731 * StatusStrip.cs: The default renderer is System.
10732 * ToolStrip.cs, ToolStripManager: Now that we have System renderer, use it
10733 if the user specifies it.
10734 * ToolStripDropDown.cs: Don't reset our Renderer on changing OwnerItem
10735 if we are ManagerRenderMode.
10736 * ToolStripMenuItem.cs: Calculate our text color better.
10737 * ToolStripRenderer.cs, ToolStripProfessionalRenderer.cs: Move some stuff
10738 from Professional to the base class based off working with the System renderer.
10739 * ToolStripSystemRenderer.cs: Added.
10741 2007-07-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10743 * ListView.cs: I'm so lame - the real name is HitTest, not HitInfo.
10745 2007-07-02 Jonathan Pobst <monkey@jpobst.com>
10747 * ToolTip.cs: Implement 2.0 Tag property.
10749 2007-06-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10751 * ListView.cs: Implement 2.0 HitTest methods.
10753 2007-06-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10755 * ListViewItem.cs: Add a 2.0 bool Hot property, to tell whether the
10756 item is under the pointer or not (sugar). Also remove the TODO
10757 regarding to the cursor changes in OneClick activation.
10758 * ThemeWin32Classic.cs: When HotTracking is true and we are drawing
10759 the subitems use the parent's HotFont if UseItemStyleForSubItems is
10760 true; otherwise don't show the underline style.
10762 2007-06-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10764 * ListView.cs: In ItemControl.ItemsMouseMove, refactor
10765 the code to retrieve the item at position only one time. Also
10766 change cursor when Activation is ItemActivation.OneClick as well
10767 as invalidate the item if HotTracking is true (to show/hide the
10768 underline style). Add an internal HotItemIndex property to retrieve
10769 the current hot item's index.
10770 * ListViewItem.cs: Add an internal HotFont property to cache the
10771 font used when HotTracking is true and the pointer moves within the
10773 * ThemeWin32Classic.cs: When drawing the item's text, use Font or
10774 HotFont depending on the hot state of the item.
10776 2007-06-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10778 * ListView.cs: Implement 2.0 HotTracking property.
10780 2007-06-21 Jonathan Pobst <monkey@jpobst.com>
10782 * ToolStripControlHost.cs: If our hosted control never got created,
10783 don't try to dispose it. [Fixes bug #81909]
10785 2007-06-21 Jonathan Pobst <monkey@jpobst.com>
10787 * TableLayoutPanel.cs: Implement ScaleCore, ScaleControl.
10789 2007-06-21 Jonathan Pobst <monkey@jpobst.com>
10791 * TableLayoutPanel.cs: Implement CellBorderStyle. [Fixes bug #81884]
10793 2007-06-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10795 * ThemeWin32Classic.cs: In OwnerDraw mode draw subitems only for
10797 * DrawListViewColumnHeaderEventArgs.cs:
10798 * DrawListViewSubItemEventArgs.cs: Add padding to the bounds when drawing text
10799 using the DrawText () methods.
10801 2007-06-19 Jonathan Pobst <monkey@jpobst.com>
10803 * ToolStripProfessionalRenderer.cs: Put back clearing a ToolStripDropDown's
10804 background which got erased in my changes yesterday.
10806 2007-06-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10808 * ListViewItem.cs: Actually set bounds for subitems in Details view
10810 * ThemeWin32Classic.cs: Refactor the drawing code for subitems, so we
10811 can invoke from the owner draw routines if we need it. Also, add
10812 support for Owner draw in Details view.
10814 2007-06-18 Jonathan Pobst <monkey@jpobst.com>
10816 * ToolStripDropDownMenu.cs, ToolStripItem.cs, ToolStripLabel.cs,
10817 ToolStripMenuItem.cs, ToolStripProfessionalRenderer.cs: Respect the
10818 ShowImageMargin setting, properly align text in a ToolStripLabel
10819 hosted on a ToolStripDropDown.
10821 2007-06-18 Jonathan Pobst <monkey@jpobst.com>
10823 * ToolStrip.cs, ToolStripContentPanel.cs, ToolStripDropDownMenu.cs,
10824 ToolStripProfessionalRenderer.cs: Refactor and clean up some rendering code.
10826 2007-06-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10828 * DrawListViewSubItemEventArgs.cs: Actually implement its methods.
10830 2007-06-18 Jonathan Pobst <monkey@jpobst.com>
10832 * ToolStripLabel.cs: If the label is on a dropdown, adjust the text
10833 location to match ToolStripMenuItems.
10835 2007-06-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10837 * DrawListViewColumnHeaderEventArgs.cs:
10838 * ThemeWin32Classic.cs: Implement 2.0 OwnerDraw support for
10839 column headers in ListView.
10841 2007-06-15 Jonathan Pobst <monkey@jpobst.com>
10843 * UserControl.cs: Implement AutoSize.
10845 2007-06-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10847 * DrawListViewItemEventArgs.cs:
10849 * ThemeWin32Classic.cs: Implement basic support for 2.0 OwnerDraw in
10852 2007-06-15 Jonathan Pobst <monkey@jpobst.com>
10854 * ToolStripDropDownItemAccessibleObject.cs: Added.
10855 * ToolStripDropDownItem.cs, ToolStripItem.cs, ToolStripMenuItem.cs,
10856 ToolStripOverflow.cs, ToolStripOverflowButton.cs, ToolStripPanel.cs,
10857 ToolStripProgressBar.cs, ToolStripSeparator.cs, ToolStripSplitButton.cs,
10858 ToolStripTextBox.cs: corcompare work.
10860 2007-06-14 Jonathan Pobst <monkey@jpobst.com>
10862 * OSFeature.cs, StatusStrip.cs, TabControl.cs, TableLayoutSettings.cs,
10863 TableLayoutStyle.cs, TableLayoutCollection.cs, ToolStripContentPanel.cs,
10864 ToolStripControlHost.cs, ToolStripDropDown.cs, ToolStripDropDownButton.cs:
10867 2007-06-14 Jonathan Pobst <monkey@jpobst.com>
10869 * OSFeature.cs: Add IsPresent.
10870 * PrintPreviewControl.cs: Add RightToLeft.
10871 * SplitContainer.cs: Add AutoScrollOffset, ScaleControl.
10872 * SplitterPanel.cs: Add AutoSizeMode.
10874 2007-06-13 Jonathan Pobst <monkey@jpobst.com>
10876 * LayoutEventArgs.cs: Add 2.0 AffectedComponent.
10877 * MdiClient.cs: Add 2.0 ScaleControl.
10878 * NativeWindow.cs: Implement 2.0 interface IWin32Window.
10879 * NumericUpDownAccelerationCollection.cs: Add [ListBinding].
10881 2007-06-13 Jonathan Pobst <monkey@jpobst.com>
10883 * Form.cs: Implement some scaling methods, stub some RTL methods,
10886 2007-06-13 Jonathan Pobst <monkey@jpobst.com>
10888 * Control.cs: corcompare work.
10889 * FlatButtonAppearance.cs, FolderBrowserDialog.cs: Add TypeConverters.
10891 2007-06-13 Jonathan Pobst <monkey@jpobst.com>
10893 * ControlPaint.cs, Theme.cs, ThemeWin32Classic.cs: Implement
10894 ControlPaint 2.0 stuffs.
10896 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
10898 * ThreadExceptionDialog.cs: Add 2.0 stuffs.
10900 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
10902 * UpDownBase.cs: Add 2.0 stuffs.
10904 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
10906 * NumericUpDown.cs: Add 2.0 stuffs.
10908 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
10910 * NotfiyIcon.cs: Add MouseDoubleClick event, hook up MouseClick event.
10912 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
10914 * ErrorProvider.cs: Implement 2.0 stuffs.
10916 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
10918 * DomainUpDown.cs: Implement 2.0 stuffs.
10920 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
10922 * CheckedListBox.cs: Fix RefreshItems signature.
10924 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
10926 * PictureBox.cs: Implement 2.0 stuffs.
10928 2007-06-12 Andreia Gaita <avidigal@novell.com>
10930 * TabControl.cs: Check if there are tabpages before checking
10931 the selected index - fix #81802 (font changes raise a ResizeTabs
10932 call on controls.add, which blew up nicely with no tabpages)
10934 2007-06-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10937 * ListViewItem.cs: Implement 2.0 ItemSelectionChanged event.
10939 2007-06-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10942 * ListViewItem.cs: In VirtualMode the selection information
10943 resides in the ListView, rather than in the Items. Also, throw
10944 InvalidOperationExceptions when VirtualMode is being used and
10945 CheckedItemCollection is accessed.
10947 2007-06-08 Jonathan Pobst <monkey@jpobst.com>
10949 * ComboBox.cs: Add ScaleControl.
10951 2007-06-08 Jonathan Pobst <monkey@jpobst.com>
10953 * ButtonBase.cs: ButtonBaseAccessibleObject.State should not be visible to 1.1.
10955 2007-06-08 Jonathan Pobst <monkey@jpobst.com>
10957 * GroupBox.cs: Add 2.0 stuffs.
10959 2007-06-08 Jonathan Pobst <monkey@jpobst.com>
10961 * Panel.cs: Add autosize properties/event.
10963 2007-06-07 Jonathan Pobst <monkey@jpobst.com>
10966 - When we remove a control, remove it from the collection before performing the layout.
10967 - Setup an internal property for explicit_bounds.
10968 - Don't let the UpdateBounds in CreateHandle overwrite our explicit bounds.
10969 - Perform a layout when we set a new AutoSizeMode.
10971 2007-06-07 Jonathan Pobst <monkey@jpobst.com>
10973 * ScrollableControl.cs: Add 2.0 stuffs.
10975 2007-06-06 Jonathan Pobst <monkey@jpobst.com>
10977 * ScrollBar.cs: Add 2.0 stuffs.
10979 2007-06-06 Jonathan Pobst <monkey@jpobst.com>
10981 * Splitter.cs: Add 2.0 stuffs.
10983 2007-06-06 Jonathan Pobst <monkey@jpobst.com>
10985 * SplitContainer.cs: Apply patch from Neil Cawse <neilcawse@geotab.com>
10986 to have BindingContext simply use base implementation.
10988 2007-06-06 Jonathan Pobst <monkey@jpobst.com>
10990 * ColumnHeader.cs: corcompare fix.
10992 2007-06-06 Jonathan Pobst <monkey@jpobst.com>
10994 * Button.cs: corcompare fixes.
10995 * ButtonBase.cs: corcompare fixes, add ButtonBaseAccessibleObject.State.
10997 2007-06-06 Jonathan Pobst <monkey@jpobst.com>
10999 * Button.cs: Override GetPreferredSizeCore.
11000 * ButtonBase.cs: PerformLayout after changing properties that can affect
11001 AutoSize. Simplify some mouse/keyboard code.
11002 * Control.cs: PerformLayout after changing Padding if AutoSize = true.
11003 * MouseEventArgs.cs: Make Location internal for 1.1.
11004 * TextRenderer.cs: Make MeasureTextInternal (string, Font, bool) internal for 1.1.
11005 * Theme.cs: Add CalculateButtonAutoSize.
11006 * ThemeWin32Classic.cs: Implement CalculateButtonAutoSize.
11008 2007-06-05 Miguel de Icaza <miguel@novell.com>
11010 * TreeNodeCollection.cs: Applied patch from Neil Cawse <neilcawse@geotab.com>
11012 2007-06-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11014 * ListViewItem.cs: We can't cache Bounds in VirtualMode
11015 since we can get different item instances every time we retrieve it.
11017 2007-06-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11019 * ListView.cs: Work around for #81602, since an unkown an pretty
11020 infrequent condition appears only in some systems (old linux boxes, it
11023 2007-06-04 Jonathan Pobst <monkey@jpobst.com>
11025 * Button.cs: Completely reformat and a little refactor to bring
11026 this closer to Mono circa 2007.
11028 2007-06-04 Jonathan Pobst <monkey@jpobst.com>
11030 * CheckBox.cs, Form.cs, RadioButton.cs: Change call to ButtonBase.Redraw
11031 to be ButtonBase.Invalidate.
11033 2007-06-04 Jonathan Pobst <monkey@jpobst.com>
11035 * ButtonBase.cs: GetPreferredSize is 2.0 only. Fixes build.
11037 2007-06-04 Jonathan Pobst <monkey@jpobst.com>
11039 * ButtonBase.cs: Completely reformat and a little refactor to bring
11040 this closer to Mono circa 2007.
11042 2007-06-01 Everaldo Canuto <ecanuto@novell.com>
11044 * Label.cs: Fixes preferred sizes for 2.0 profile, also adjust some
11045 values for autosize. Fixes #80137.
11047 2007-06-01 Jonathan Pobst <monkey@jpobst.com>
11049 * Control.cs: Don't perform layout when AutoSize changes.
11050 * Form.cs: Perform layout in AutoSize override. Don't set ClientSize
11051 directly when autosizing, use SetBounds with BoundsSpecified.None.
11052 Fixes unit tests my last commit broke.
11054 2007-06-01 Jonathan Pobst <monkey@jpobst.com>
11056 * Control.cs: Perform layout when AutoSize changes.
11057 * Form.cs: Implement AutoSizing.
11059 2007-06-01 Chris Toshok <toshok@ximian.com>
11061 * DataGrid.cs: remove the XXX'ed check at the top of
11062 ProcessGridKey. fixes #80464.
11064 2007-06-01 Chris Toshok <toshok@ximian.com>
11066 * DataGridTextBoxColumn.cs: TextBox.TextChanged event handler
11067 adding idempotent (add/remove in Edit()), and also make sure we
11068 don't add it until after we set the text, so it's not tripped in
11069 Edit(). Fixes unit test regression.
11071 2007-06-01 Jonathan Pobst <monkey@jpobst.com>
11073 * Control.cs: In UpdateBounds, only recalculate anchor distances if the
11074 change is user explicit, not when the layout engine moves stuff. Fixes
11075 anchoring to bottom and right. [Fixes bug #81790]
11077 2007-06-01 Andreia Gaita <avidigal@novell.com>
11079 * PrintDialog.cs: Add collation preview thumbnails. Fixes #80726.
11081 2007-06-01 Andreia Gaita <avidigal@novell.com>
11083 * ContainerControl.cs:
11084 Fire enter event for common ancestor if it is not a ContainerControl.
11085 Send focus to the active_control and not the 'value', the active
11086 control might have been changed in one of the events fired.
11087 Definitely fixes #80159.
11089 2007-06-01 Andreia Gaita <avidigal@novell.com>
11091 * DataGrid.cs: Finish editing when focus leave the datagrid. Fixes #80159.
11093 2007-06-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
11095 * PropertyGrid.cs: Anchor the help description to the bottom of the
11096 help panel and refactor SelectGridItem into a
11097 SelectGridItemInternal that can be set to null (and update it to
11098 clear the help texts when it is set to null). Set root item to null
11099 when there's no SelectedObject. Fixes #80438.
11100 * ScrollableControl.cs: In Recalculate we need to ResumeLayout(true)
11101 when we're recalculating after a resize (only).
11103 2007-05-31 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11105 * ListView.cs: Implement 2.0 RedrawItems method.
11107 2007-05-31 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11109 * ListControl.cs: Disconnect PositionChanged and ItemChanged
11110 handlers from previous data manager when DataSource is set to
11111 null. Fixes #81771.
11113 2007-05-31 Jackson Harper <jackson@ximian.com>
11115 * TextBoxBase.cs: These seem to be the correct values.
11117 2007-05-31 Everaldo Canuto <ecanuto@novell.com>
11119 * FileDialog.cs: When close dialog with ok set filterindex using combobox
11120 value. Fixes #81784.
11122 2007-05-31 Jonathan Pobst <monkey@jpobst.com>
11124 * Control.cs: Implement 2.0 scaling methods.
11126 2007-05-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
11128 * ProgressBar.cs, WebBrowserBase.cs, Control.cs, MaskedTextBox.cs,
11129 MessageBox.cs, PropertyGrid.cs, RichTextBox.cs: Fix warnings and
11132 2007-05-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
11134 * ProgressBar.cs: Implemented missing 2.0 members.
11136 2007-05-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
11138 * Control.cs: Corcompare issues.
11139 * MessageBox.cs: Implemented missing 2.0 functions.
11141 2007-05-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
11143 * CheckedListBox.cs, ListBox.cs, ListControl.cs, ComboBox.cs:
11144 Implemented more 2.0 members.
11146 2007-05-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
11148 * Application.cs: Try to avoid NRE when Assembly.GetEntryAssembly is
11149 null (strange, but it seems to happen when running unit tests).
11151 2007-05-30 Andreia Gaita <avidigal@novell.com>
11153 * ContainerControl.cs: Set active_control even earlier, before
11154 firing any events, and undo it if validation returns false.
11156 2007-05-30 Andreia Gaita <avidigal@novell.com>
11158 * ContainerControl.cs: Raise Validation and Enter/Leave events
11159 even if there is no Form and set active_control earlier, just
11160 before firing Enter events (toshok's patches). Fixes #80647.
11162 2007-05-30 Jackson Harper <jackson@ximian.com>
11164 * TextControl.cs: Redid the pageup/pagedown a little to simplify
11165 things and fix bug #81311.
11167 2007-05-30 Jackson Harper <jackson@ximian.com>
11169 * X11Dnd.cs: Now that we have our own event loop, we need to
11170 cancel when we get a mouseup but it won't be accepted.
11172 2007-05-30 Chris Toshok <toshok@ximian.com>
11174 * DataGrid.cs (set_CurrentCell): guard against negative
11177 * DataGridColumnStyle.cs (CheckValidDataSource): just use the
11178 array index syntax instead of looping over the property names.
11180 * DataGridTextBoxColumn.cs: add a changed handler on the textbox,
11181 and set IsInEditOrNavigateMode to false there.
11183 2007-05-30 Jackson Harper <jackson@ximian.com>
11185 * TreeView.cs: Make sure we don't get a bad visible order when
11186 setting to the top node. Fixes some misc crashing in
11189 2007-05-30 Andreia Gaita <avidigal@novell.com>
11191 * UserControl.cs: Add 2.0 AutoSizeMode
11193 2007-05-29 Everaldo Canuto <ecanuto@novell.com>
11195 * DataGridTextBoxColumn.cs: Fix textbox horizontal offset.
11197 2007-05-29 Everaldo Canuto <ecanuto@novell.com>
11199 * DataGridTextBoxColumn.cs: Fix textbox position to prevent override grid
11200 lines. Fixes #80285.
11202 2007-05-29 Everaldo Canuto <ecanuto@novell.com>
11204 * DataGridColumnStyle.cs: Add char trimming column header text format.
11206 2007-05-29 Everaldo Canuto <ecanuto@novell.com>
11208 * DataGridColumnStyle.cs: Fix grid header arrow drawing over column name.
11211 2007-05-29 Jackson Harper <jackson@ximian.com>
11213 * TreeNode.cs: Fix off by one on calculating whether or not a node
11216 2007-05-29 Jonathan Pobst <monkey@jpobst.com>
11218 * Control.cs: ResumeLayout(false) should recalculate anchor distances.
11219 * ScrollableControl.cs: Force an UpdateDistances when we move the
11223 2007-05-29 Andreia Gaita <avidigal@novell.com>
11225 * PageSetupDialog.cs: Fix #80728 - Changing the printer doesn't
11226 update the page setup screen.
11228 2007-05-29 Andreia Gaita <avidigal@novell.com>
11230 * PageSetupDialog.cs: Fix landscape mode.
11232 2007-05-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11234 * SystemInformation.cs: Add 2.0 IconSizeVerticalSpacing and
11235 IconSizeHorizontalSpacing.
11237 2007-05-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11239 * ListView.cs: The declaration of prev_tooltip_item should be inside
11240 a NET_2_0 conditional (avoid a warning).
11242 2007-05-28 Andreia Gaita <avidigal@novell.com>
11244 * PageSetupDialog.cs: Implement PrintPreview control to display
11245 the preview thumbnail. Change unit conversion to use
11246 PrinterUnitConvert methods.
11248 Note: there is a huge bug in ms.net where the default margins are
11249 interpreted as centimeters (?), when in fact they are set in inches. When
11250 loading the page setup dialog initially (ms.net), the default margins
11251 are set to 1 inch, and the dialog shows them with value 10, when in fact
11252 it should be 25 (properly converted). Our dialog doesn't have this bug.
11254 * Theme.cs, ThemeWin32Classic.cs: Add a CPDrawBorder override for
11256 * ControlPaint.cs: Add a DrawBorder internal method for RectangleF.
11258 2007-05-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11261 * ListViewItem.cs: Implement 2.0 ToolTipText support for listview
11264 2007-05-28 Andreia Gaita <avidigal@novell.com>
11266 * X11Dnd.cs: A direct cast to VirtualKeys is not allowed from
11267 an IntPtr on csc (it builds fine on mcs, could it be a compiler
11268 bug?), convert the ptr to Int32 first.
11270 2007-05-28 Jackson Harper <jackson@ximian.com>
11272 * X11Dnd.cs: Add a timer, so after drop, if a finish is not
11273 recieved, we will exit the dnd tracking loop.
11275 2007-05-28 Jackson Harper <jackson@ximian.com>
11277 * X11Dnd.cs: Keep tracking until the xdnd finished event is
11278 recieved. TODO: I should probably stick a timer on the dropped
11279 event, and finish the drag if the XDND Finished event never shows
11280 (because some apps don't seem to send it).
11282 2007-05-28 Everaldo Canuto <ecanuto@novell.com>
11284 * ToolBar.cs: Fix toolbar default width for button with image. Fixes
11287 2007-05-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
11289 * MonthCalendar.cs: Only mark the keypresses we actually handle as
11292 2007-05-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
11294 * MonthCalendar.cs: Set the size after initializing all the relevant
11295 variables. Fixes #81742.
11297 2007-05-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
11299 * KeyEventArgs.cs: Fix typo.
11301 2007-05-28 Gert Driesen <drieseng@users.sourceforge.net>
11303 * DateTimePicker.cs: Changed exceptions thrown by MinDate and MaxDate
11304 to match MS. Fixed MinDate to only accept value less than or equal
11305 to MaxDate on 2.0 profile and less than MaxDate on 1.0 profile.
11306 Removed TODO's that are now verified by unit tests.
11308 2007-05-27 Gert Driesen <drieseng@users.sourceforge.net>
11310 * TreeNodeCollection.cs: Minor corrections to exceptions to match
11313 2007-05-25 Jackson Harper <jackson@ximian.com>
11315 * X11Dnd.cs: Rework to make StartDrag a blocking call that runs
11316 it's own message loop.
11317 * XplatUIX11.cs: Remove some of the dnd hooks
11319 2007-05-25 Gert Driesen <drieseng@users.sourceforge.net>
11321 * XplatUIX11.cs: Change MinimumWindowSize to {Width=0,Height=0}
11322 instead of MinimizedWindowSize.
11324 2007-05-25 Jackson Harper <jackson@ximian.com>
11326 * TextBoxBase.cs: Raise textchanged when cutting and pasting text.
11328 2007-05-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
11330 * KeyEventArgs.cs: Added SuppressKeyPress.
11331 * Control.cs: Added support for SuppressKeyPress.
11333 2007-05-24 Andreia Gaita <avidigal@novell.com>
11335 * NumericUpDown.cs: Refactor code to fix regressions on #79950 and
11336 problems with PieChart. suppress_validation should not be a counter,
11337 if there are several BeginInit calls, the first EndInit will
11338 activate validation. Fix exceptions thrown by set_Value.
11339 * UpDownBase.cs: ValidateText only if it's the user editing it.
11341 2007-05-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11343 * ListControl.cs: FilterItemOnProperty should return the filtered
11344 item proeprty even if DataSource is null. The same applies for
11345 GetItemText. Fixes #80427.
11347 2007-05-24 Jonathan Pobst <monkey@jpobst.com>
11349 * Control.cs: If a control doesn't have a parent when it's Dock is
11350 set, but it has children, it needs to do a layout. Fixes some nested
11351 controls issues. [Fixes bug #81199]
11353 2007-05-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
11355 * ComboBox.cs: If there are few items in the drop down list, make it
11356 the exact size the items need, no bigger. Fixes #81612.
11358 2007-05-24 Jonathan Pobst <monkey@jpobst.com>
11360 * Application.cs: When we have captured the keyboard for a menu,
11361 check for mouse down events in case we need to close the menu.
11362 * Control.cs, Form.cs: Remove mouse down checks for menus.
11364 2007-05-24 Jackson Harper <jackson@ximian.com>
11366 * TextControl.cs: Handle tabs in non multiline mode a little
11369 2007-05-24 Jackson Harper <jackson@ximian.com>
11371 * TextControl.cs: We need to manually break apart tabbed text and
11372 move the tabs, since the system.drawing tabbing mechanism relies
11374 * TextBoxBase.cs: Move the caret properly when the user enters a
11377 2007-05-24 Jonathan Pobst <monkey@jpobst.com>
11379 * ContainerControl.cs: Don't check CanSelect before calling
11381 * ToolStrip.cs: Only do implicit mnemonics on MenuStrips. Don't
11382 release a KeyboardActive on click if it's not ours.
11384 2007-05-23 Andreia Gaita <avidigal@novell.com>
11386 * ColumnHeader.cs: Add TypeConverter
11388 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
11390 * LinkLabel.cs: Implement LinkCollection.Add with Link parameter (2.0).
11392 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
11394 * LinkLabelLinkClickedEventArgs.cs, LinkLabel.cs: Implement Button property.
11396 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
11398 * LinkLabel.cs: Implement public Padding property.
11400 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
11402 * LinkLabel.cs: Implement public FlatStyle.
11404 2007-05-23 Jonathan Pobst <monkey@jpobst.com>
11406 * Control.cs: Apply patch from George to call parent.PerformLayout
11407 when Visible is changed. [Fixes bugs #81118, 81718]
11409 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
11411 * MainMenu.cs, MenuAPI.cs: Implement Collapse event for MainMenu (2.0).
11413 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
11415 * ContextMenu.cs: Implement ProcessCmdKey with control parameter.
11417 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
11419 * ContextMenu.cs: Implement Collapse.
11421 2007-05-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
11423 * ToolBarButton.cs: Implement Name.
11425 2007-05-22 Everaldo Canuto <ecanuto@novell.com>
11427 * ToolBar.cs: Fix OnButtonDropDown to save item used in dropdown instead of
11428 use current_item, it prevents some NRE. Fixes #81675.
11430 2007-05-22 Andreia Gaita <avidigal@novell.com>
11432 * NumericUpDown.cs: Fix PieChart by not returning from UpdateEditText
11433 without updating the text.
11435 2007-05-22 Jonathan Pobst <monkey@jpobst.com>
11437 * XplatUIWin32.cs: Plug a GDI leak caused by calling Font.ToHfont ()
11438 without calling DeleteObject. [Should fix bug #81709]
11440 2007-05-22 Jackson Harper <jackson@ximian.com>
11442 * RichTextBox.cs: Set the line endings correctly, when flushing
11445 2007-05-22 Gert Driesen <drieseng@users.sourceforge.net>
11447 * XplatUIX11.cs: MinimumWindowSize on X11 is actually
11448 {Width=0,Height=0}.
11450 2007-05-22 Jackson Harper <jackson@ximian.com>
11452 * TreeView.cs: Setting top with a null node should set to the very
11455 2007-05-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
11457 * Form.cs: ShowDialog: destroy the handle when message loop is
11458 finished, matches MS behaviour. Refactor parts of WmClose into
11459 RaiseCloseEvents, that only raises events if they haven't already
11460 been raised. Fixes #81688 and #81521.
11461 * Application.cs: Don't call close on the form when exiting a modal
11462 loop, it will raise all the (Form)Closed/Closing events again if
11463 WM_CLOSE has been sent earlier on, instead call RaiseCloseEvent,
11464 which doesn'r raise any events it they have been raised before.
11466 2007-05-22 Jonathan Pobst <monkey@jpobst.com>
11468 * Control.cs: Add OnPrint.
11469 * ToolStrip.cs: Add GetChildAtPoint.
11470 * ToolStripContainer.cs: Add OnRightToLeftChanged.
11471 * ToolStripRenderer.cs: Make CreateMirrorImage internal.
11473 2007-05-22 Everaldo Canuto <ecanuto@novell.com>
11475 * MenuAPI.cs: Prevent context menu to be typed as MainMenu. Fixes #81509.
11477 2007-05-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
11479 * InternalWindowManager.cs: ToolTipShow: Don't show tooltip if the form
11480 isn't visible anymore. Fixes #81651.
11482 2007-05-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
11484 * Control.cs: WmShowWindow: Update children's z-order after setting
11485 their parent. SetParent may show the window, thereby corrupting
11486 z-order, since the window will be shown on top.
11487 * XplatUIWin32.cs: SetParent: don't call SetVisible on forms. Prevents
11488 multiple (and redundant) WM_SHOWWINDOW messages.
11489 * MdiWindowManager.cs: RaiseDeactivate: only raise after an Activate
11490 event has already been raised.
11491 * Form.cs: Change is_changing_visible_state to a counter, since
11492 SetVisibleCore can be called recursively. CreateHandle: when
11493 creating mdi children, send (De)Activated events.
11494 * MdiClient.cs: Update use of is_changing_visible_state.
11495 * Application.cs: OnThreadException: Surround exception handling with
11496 try/finally to ensure we always reset the error-handling state
11499 2007-05-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
11501 * ThemeWin32Classic.cs: DrawProgressBar: Avoid a DivideByZero exception
11504 2007-05-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11506 * ListView.cs: Use Theme.ListViewHorizontalSpacing for List and
11507 SmallIcon views, now that we have a standarized horizontal spacing.
11509 * ThemeWin32Classic.cs: ListViewHorizontalSpacing now has a value of
11510 4, just like the other views (Match .Net).
11512 2007-05-21 Jonathan Pobst <monkey@jpobst.com>
11514 * Control.cs: Delay calculating anchor distances until we actually layout.
11515 Always query the WM for the actual size and location it put us at instead of
11516 only when we send negative values.
11517 [Fixes bugs #81694, 81695]
11519 2007-05-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
11521 * Application.cs: Avoid a possible stack overflow when trying to exit
11524 2007-05-19 Marek Safar <marek.safar@gmail.com>
11526 * Theme.cs (GetHatchBrush): A key uses internal value instead of formated
11529 2007-05-19 Andreia Gaita <avidigal@novell.com>
11531 * NumericUpDown.cs: Added 2.0 methods (spin acceleration)
11532 * NumericUpDownAcceleration.cs,
11533 NumericUpDownAccelerationCollection.cs: Added 2.0
11536 2007-05-19 Gert Driesen <drieseng@users.sourceforge.net>
11538 * RichTextBox.cs: Recalculate the document after the ScrollBars
11539 property is changed. Fixes bug #81681.
11541 2007-05-18 Jonathan Pobst <monkey@jpobst.com>
11543 * DataObject.cs: Implement 2.0 methods.
11545 2007-05-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11547 * ThemeWin32Classic.cs: Draw the check marks in ListViewItems
11548 in the center of the checkbox, not in the left-top corner.
11551 2007-05-18 Jackson Harper <jackson@ximian.com>
11553 * RichTextBox.cs: Recalculate the document after the scrollbars
11554 property is changed.
11555 * TextBoxBase.cs: ScrollBars is not a flags enum...This fixes
11558 2007-05-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
11560 * CreateParams.cs: Make HasWindowManager marginally faster.
11561 * XplatUIX11.cs, Hwnd.cs: CreateWindow: Move the default location code
11562 into Hwnd so that other drivers can use it as well.
11563 * XplatUIWin32.cs: CreateWindow: If the window has a window manager get
11564 the default location from Hwnd. Fixes MDI client windows always
11565 showing up at (0,0) in Windows (Win32 won't set the default
11566 location since the window styles aren't correct).
11568 2007-05-18 Gert Driesen <drieseng@users.sourceforge.net>
11570 * TreeView.cs: Modified DoubleBuffered to just use the base
11573 2007-05-18 Jackson Harper <jackson@ximian.com>
11575 * TreeView.cs: Set the top node to the last child node when
11577 - When we get focus, if there is no selected node, use the top
11580 2007-05-18 Jonathan Pobst <monkey@jpobst.com>
11582 * KeysConverter.cs: Add CanConvertTo.
11583 * LinkLabel.cs: Add some 2.0 constructors and properties to LinkLabel.Link.
11584 * LinkConverter.cs: Added.
11586 2007-05-18 Everaldo Canuto <ecanuto@novell.com>
11588 * Cursor.cs: Apply Sebastien patch from #81669 to open file in read mode,
11589 it prevents error when file dont have write access. Fixes #81669 and #81667.
11591 2007-05-18 Everaldo Canuto <ecanuto@novell.com>
11593 * ThemeWin32Classic.cs: Check for ShowKeyboardCues true when draw toolbar
11594 button text. Fixes #79640.
11596 2007-05-18 Everaldo Canuto <ecanuto@novell.com>
11598 * Control.cs: According to MSDN controls created in the designer theres
11599 keyboard accelerators visible by default. So included check for design
11600 in ShowKeyboardCuesInternal.
11602 2007-05-18 Everaldo Canuto <ecanuto@novell.com>
11604 * ThemeWin32Classic.cs: Check for ShowKeyboardCues true when draw combobox
11605 text. Fixes #81621.
11607 2007-05-18 Everaldo Canuto <ecanuto@novell.com>
11609 * Control.cs: ShowKeyboardCuesInternal add to expose ShowKeyboardCues
11610 for 1.0, becuse ShowKeyboardCues is protected on 1.0.
11612 2007-05-17 Everaldo Canuto <ecanuto@novell.com>
11614 * Control.cs: Finish implementation of UI State using WmChangeUIState
11615 to send WM_UPDATEUISTATE to all child controls. Some hack will be needed
11616 in some controls to check for show_keyboard_cues to draw accell keys "_".
11618 2007-05-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11620 * ListBox.cs: When calculating the horizontal scrollbar
11621 in single column mode, don't use values less than 0 for
11622 Maximum. Fixes #81474.
11624 2007-05-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11626 * ListBox.cs: Throw the some missing exceptions in
11627 ListBox.ObjectCollection methods.
11629 2007-05-17 Jackson Harper <jackson@ximian.com>
11631 * TextBoxBase.cs: Recalculate the document when the word wrap
11632 value has changed. This fixes 81488.
11634 2007-05-17 Jonathan Pobst <monkey@jpobst.com>
11636 * Clipboard.cs: Implement missing GetText overload.
11638 2007-05-17 Chris Toshok <toshok@ximian.com>
11640 * Control.cs (CheckDataBindings): remove the binding_context arg
11643 * CurrencyManager.cs (OnItemChanged): fix this now that
11644 BindingManagerBase is fixed. also remove the comment telling where
11645 the fix should go. We set transfering_data to true/false around
11646 the call to PushData to keep UpdateIsBinding from being called.
11647 (ListChangedHandler): remove the extra OnMetaDataChanged call for
11648 PropertyDescriptorAdded in the 1.1 case. The extra call is
11649 actually generated by System.Data generating 2 metadata changed
11650 events of its own per column add. The fix should go there. Add a
11651 comment to that affect in our test's Assert.Ignore.
11653 * BindingManagerBase.cs: Rework PullData and PushData slightly.
11654 we keep a boolean flag (transfering_data) that keeps us from
11655 calling UpdateIsBinding multiple times if we re-enter either of
11658 * ControlBindingsCollection.cs (AddCore): remove the
11659 binding_context arg to binding.Check.
11661 * Binding.cs (IsBinding): don't check if we're binding here, just
11662 return our cached value. we update it in UpdateIsBinding.
11663 (Check): don't take the binding_context arg, we'll just use our
11664 control's. Also, for some reason MS doesn't use the data member
11665 field when getting the bindingmanager for this binding. it just
11666 uses the datasource. Make this method callable multiple times,
11667 and only do the is_null_desc stuff if manager.Position != -1 (so
11668 we don't get an exception accessing manager.Current).
11669 (UpdateIsBinding): move the code from IsBinding here.
11670 (PositionChangedHandler): call Check here to we can initialize
11671 things that require a non- -1 position.
11673 2007-05-17 Everaldo Canuto <ecanuto@novell.com>
11675 * Form.cs: When alt keys is pressed send WM_CHANGEUISTATE to top level
11678 2007-05-17 Andreia Gaita <avidigal@novell.com>
11680 * TabControl.cs: Add 2.0 methods and events, including
11681 OnEnter / OnLeave and raises it for tabpages (fixes #79869)
11682 * TabPage.cs: Add 2.0 methods
11684 2007-05-17 Everaldo Canuto <ecanuto@novell.com>
11686 * Control.cs: Implement WmUpdateUIState, show_focus_cues and
11687 keyboard_cues is properly handled by message method.
11689 2007-05-17 Jonathan Pobst <monkey@jpobst.com>
11691 * TreeViewImageIndexConverter.cs: Add 2.0 methods.
11693 2007-05-17 Jonathan Pobst <monkey@jpobst.com>
11695 * ToolStripTextBox.cs: Wire up new 2.0 Textbox methods/properties.
11697 2007-05-16 Everaldo Canuto <ecanuto@novell.com>
11700 - WmUpdateUIState added to handle state changes, it make call to
11701 OnChangeUICues event.
11702 - Fixed ShowKeyboardCues to check for MenuAccessKeysUnderlined in
11705 2007-05-16 Jonathan Pobst <monkey@jpobst.com>
11707 * ImageKeyConverter.cs: Added.
11708 * TreeViewImageKeyConverter.cs: Added.
11710 2007-05-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11712 * ToolTips.cs: Update Text if SetToolTip is called for a control
11713 already showing the tooltip, as well as restarting its timer; show
11714 tooltip if we are inside the control bounds by the time of calling
11715 SetToolTip. Inside ShowTooltip remove the check to not show the
11716 tooltip again for the active control (it is allowed by .Net to
11717 show the tooltip on the same control multiple times).
11719 2007-05-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
11721 * MaskedTextBox.cs: Small fix for Text that fixes a broken test.
11723 2007-05-16 Andreia Gaita <avidigal@novell.com>
11725 * ContainerControl.cs: only process tab key if there are no
11726 modifier keys present, otherwise the control does the
11727 tab processing, if it needs to. Fixes #81622
11728 * TabControl.cs: Fixes calculation for which tab to select on
11731 2007-05-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
11733 * MaskedTextBox.cs: Small fix for Text that fixes a broken test.
11735 2007-05-15 Jonathan Pobst <monkey@jpobst.com>
11737 * Control.cs: Make IsInputCharInternal to allow controls to
11738 override it and still match MS API.
11739 * TextBoxBase.cs: Override IsInputCharInternal and always
11743 2007-05-15 Jackson Harper <jackson@ximian.com>
11745 * TextBox.cs: Disable some of the menu options when using a
11748 2007-05-15 Jackson Harper <jackson@ximian.com>
11752 * RichTextBox.cs: Some new 2.0 methods
11754 2007-05-15 Gert Driesen <drieseng@users.sourceforge.net>
11756 * FileDialog.cs: On 1.0 profile, do not support multidotted
11759 2007-05-14 Jackson Harper <jackson@ximian.com>
11761 * TextBoxBase.cs: Implement some of the new 2.0 methods.
11762 * RichTextBox.cs: We need to override these methods on 2.0.
11763 * MaskedTextBox.cs: These are implemented now
11764 * TextControl.cs: This was off by one.
11766 2007-05-14 Jackson Harper <jackson@ximian.com>
11768 * TextControl.cs: Because the line endings are including in the
11769 text, we don't need to add them in anymore.
11771 2007-05-11 Everaldo Canuto <everaldo@simios.org>
11773 * ToolBar.cs: Fix autosize and get it working only after hadle is created,
11774 also prevent redraw in set_autosize if handle is not created. Fixes #81523.
11776 2007-05-11 Everaldo Canuto <everaldo@simios.org>
11778 * ToolBar.cs: Adjust size to default size when button theres no text and
11779 image, it fixes remaining issues from #81524.
11781 2007-05-11 Everaldo Canuto <everaldo@simios.org>
11784 - When not flat call redraw to recalculate sizes on creare handle to match
11786 - Revert 77220 because it causes some regressions in toobar
11789 2007-05-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
11791 * MaskedTextBox.cs: Update the base text whenever the text changes. MTB
11792 now actually enters a usable state.
11794 2007-05-11 Everaldo Canuto <everaldo@simios.org>
11796 * ToolBar.cs: Check for handle created in redraw to prevent unneeded size
11797 calculations, it reduces the size cauculation from 7 to 3 on a toolbar with
11800 2007-05-11 Everaldo Canuto <everaldo@simios.org>
11802 * ToolBar.cs: Save default_size on create handle to use later for buttons
11803 without text, needed to mimic win32 behavior.
11805 2007-05-11 Everaldo Canuto <everaldo@simios.org>
11807 * ToolBar.cs: Fix button layour to best fit width or height according to
11808 vertical or not. Fixes #81524.
11810 2007-05-10 Everaldo Canuto <everaldo@simios.org>
11812 * ToolBarButton.cs: When change style call ToolBar.Redraw to update
11813 toolbar size info because different styles theres different sizes.
11816 2007-05-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11818 * ThemeWinClassic.cs: For .Net 2.0 don't draw any image
11819 if we are using checkboxes, checked is true, and we have less
11820 than two images in StateImageList; for the 1.1 in the same scenario
11821 draw the first image if we have at least one image in StateImageList.
11822 Fixes part of #81191.
11824 2007-05-10 Jonathan Pobst <monkey@jpobst.com>
11826 * ToolStrip.cs, ToolStripManager.cs: We need to remove items from
11827 the owner's Items collection on merge.
11829 2007-05-10 Jonathan Pobst <monkey@jpobst.com>
11831 * ToolStrip.cs: Use new internal ToolStripItemCollection constructor.
11832 * ToolStripItemCollection.cs: Lots of fixes to when events get called
11833 and parent/owner gets changed based on gert's unit tests.
11835 2007-05-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
11837 * MaskedTextBox.cs: Started implementing parts of it.
11839 2007-05-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11841 * ListView.cs: When clicking the checkbox on the items
11842 take into account the double clicks even if we have only
11843 one image in StateImageList (only for 1.0/1.1). Also
11844 generate an extra change of checked state when we receive
11845 the second click on checkbox (match .Net behaviour).
11846 Fixes part of #81191.
11848 2007-05-10 Everaldo Canuto <everaldo@simios.org>
11850 * ThemeWin32Classic.cs: Fix text rectangles in Tooltips.
11852 2007-05-10 Jonathan Pobst <monkey@jpobst.com>
11854 * Form.cs: Move some of OnLoad to OnLoadInternal so it gets called
11855 even if OnLoad is overriden and base.OnLoad is not called.
11858 2007-05-10 Andreia Gaita <avidigal@novell.com>
11860 * TableLayoutSettings.cs: A big doh! fix and bowing down of head in
11861 shame. (I blame my ever-persisting and annoying cold)
11863 2007-05-09 Jonathan Pobst <monkey@jpobst.com>
11865 * ListView.cs: Don't eat navigation keys. Let them flow through to
11866 KeyDown/KeyPress routines. [Fixes bug #81569]
11868 2007-05-09 Jonathan Pobst <monkey@jpobst.com>
11870 * ListView.cs: When handling keys for selecting the item based off
11871 keyboard input, do not consider keys pressed with Alt or Control. Also,
11872 correctly handle keys when the Shift key is down. [Fixes bug #81578]
11874 2007-05-09 Jonathan Pobst <monkey@jpobst.com>
11876 * Control.cs: When using UseWaitCursor, we have to store the requested
11877 Cursor to use when UseWaitCursor is turned off.
11879 2007-05-09 Jonathan Pobst <monkey@jpobst.com>
11881 * Control.cs: Implement PreProcessControlMessage. Default IsInputChar
11883 * Application.cs: Use PreProcessControlMessage instead of
11885 * PreProcessControlMessage.cs: Make internal for 1.1.
11887 2007-05-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11889 * Control.cs: Add InternalContains focus property, which hast the same
11890 functionality of ContainsFocus, but also including implicit controls.
11891 * ListViewItem.cs: Use InternalContainsFocus instead of ContainsFocus,
11892 since we need to know if the focus is contained in our implicit
11893 ItemControl when calculating Layout. Fixes part of #80888.
11895 2007-05-08 Everaldo Canuto <everaldo@simios.org>
11897 * ToolTip.cs: Remove center form string alignment as it must be align to
11900 2007-05-08 Jonathan Pobst <monkey@jpobst.com>
11902 * ToolStripItemCollection.cs: Set the new item's parent and owner
11903 in Insert like we do in Add. [Fixes bug #81568]
11905 2007-05-08 Jackson Harper <jackson@ximian.com>
11907 * TreeView.cs: GotFocus differences between 1.1 and 2.0.
11908 - Off by one error in SetTop
11909 - Disable DoubeBuffering
11911 2007-05-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
11913 * ScrollableControl.cs: ScrollIControlntoView: we now only move the
11914 control as much as necessary in order to make it entirely visible,
11915 instead of centering the control in the container (matches MS
11916 behaviour). CalculateCanvasSize: we need to take the current scroll
11917 position into account when calculating the maximum canvas,
11918 otherwise the following scenario will fail: resize so that the
11919 scrollbars appear, use the scrollbars to scroll, resize again
11920 smaller, and now the canvas size is too small. Recalculate: when
11921 showing scrollbars make sure they start off at 0, and try to scroll
11922 the active control into view. Fixes #79540. HandleScrollBar: don't
11923 scroll anywhere if the scrollbar isn't visible.
11925 2007-05-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11927 * ListView.cs: When focus changed, call Layout/Invalidate
11928 in the focused item to update the selected state (should show
11929 entire label when ListView is focused, and a part of it if is not).
11930 * ListViewItem.cs: When doing layout for LargeIcon, take into account
11931 for displaying the entire label not only the Focused state of the
11932 item, but also the Focused state of the ListView (match .Net
11935 2007-05-07 Jonathan Pobst <monkey@jpobst.com>
11937 * Control.cs: Stub CanRaiseEvents, IsMirrored, and NotifyClients.
11938 Implement UseWaitCursor.
11940 2007-05-07 Jonathan Pobst <monkey@jpobst.com>
11941 Applying contributed patch from Sergey Volk.
11943 * Clipboard.cs: Implement SetDataObject retry logic and new overload
11945 * XplatUIWin32.cs: Throw an ExternalException if the clipboard set fails.
11947 2007-05-07 Jonathan Pobst <monkey@jpobst.com>
11949 * Control.cs: Implement DrawToBitmap.
11951 2007-05-07 Jonathan Pobst <monkey@jpobst.com>
11952 Applying contributed patch from Stefan Noack.
11954 * Control.cs: Add [Get|Set]AutoSizeMode.
11956 2007-05-07 Jonathan Pobst <monkey@jpobst.com>
11958 * MdiClient.cs: Unmerge menus when the last child is closed.
11960 2007-05-07 Jonathan Pobst <monkey@jpobst.com>
11962 * ToolStrip.cs: Do not call BeginMerge on DropDowns.
11963 * ToolStripManager.cs: Call Merge on DropDowns.
11966 2007-05-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
11968 * XplatUIWin32.cs: Changed Win32CreateWindow to take enums instead of
11970 * Form.cs: CreateParams: don't set WS_VISIBLE if we're changing
11971 visibility. We can't create forms visible, since we have to set the
11972 owner before making the form visible (otherwise Win32 will do
11973 strange things with task bar icons). The problem is that we set the
11974 internal is_visible to true before creating the control, so
11975 is_changing_visible_state is the only way of determining if we're
11976 in the process of creating the form due to setting Visible=true -
11977 this works because SetVisibleCore explicitly makes the form
11978 visibile afterwards anyways. Fixes #80775.
11980 2007-05-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11982 * ThemeWin32Classic.cs: When drawing ListViewItems,
11983 use StringTrimming.EllipsisCharacter if the view is Tile, Details,
11984 or LargeIcon _and_ item is not focused (match .Net behaviour).
11986 2007-05-04 Jonathan Pobst <monkey@jpobst.com>
11988 * Control.cs, Form.cs: Fix some obsolete method warnings.
11990 2007-05-04 Jonathan Pobst <monkey@jpobst.com>
11992 * Control.cs: Implement GetChildAtPoint and OnParentCursorChanged.
11993 * GetChildAtPointSkip.cs: Make internal for 1.1 profile.
11995 2007-05-04 Andreia Gaita <avidigal@novell.com>
11997 * ContainerControl.cs: Fix active_control attribution when going
11998 up the parent chain so that the first parent container gets the control
11999 and the rest of the parent containers get the child containers (skips
12000 non-containers). Fixes #80729
12002 2007-05-04 Randolph Chung <tausq@debian.org>
12004 * FileDialog.cs: Implement the SupportMultiDottedExtensions property.
12007 2007-05-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
12009 * XplatUIX11.cs: Add a TranslateWindowSizeToXWindowSize overload that
12010 takes a size parameter, since the CreateParam's size isn't true for
12011 minimized forms. Fixes #81518,
12013 2007-05-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
12015 * Form.cs: Add OnDeactivateInternal.
12016 * MdiClient.cs: Raise Deactivate event. Fixes #81409.
12018 2007-05-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
12020 * DateTimePicker.cs: CalculateDropDownLocation: do a null check before
12021 accessing the parent. Fixes #81508.
12023 2007-05-03 Chris Toshok <toshok@ximian.com>
12025 * CurrencyManager.cs (CurrencyManager.ListChangeHandler): in the
12026 2.0 block, pass listposition + 1 to ChangeRecordState when a row
12027 was added before the current listposition. Fixes the
12028 TestInsertRowBeforeCurrent unit test.
12030 2007-05-03 Jonathan Pobst <monkey@jpobst.com>
12032 * Application.cs: Add RaiseIdle.
12033 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
12034 XplatUIX11.cs: Implement RaiseIdle.
12036 2007-05-02 Jonathan Pobst <monkey@jpobst.com>
12037 corcompare work: N - Z
12041 * ScrollableControl.cs
12042 * SplitContainer.cs
12045 * SystemInformation.cs
12047 * TableLayoutControlCollection.cs
12048 * TableLayoutPanel.cs
12053 * ToolStripComboBox.cs
12054 * ToolStripContainer.cs
12055 * ToolStripContentPanel.cs
12056 * ToolStripDropDown.cs
12057 * ToolStripDropDownItem.cs
12058 * ToolStripDropDownMenu.cs
12060 * ToolStripItemCollection.cs
12061 * ToolStripMenuItem.cs
12062 * ToolStripPanel.cs
12063 * ToolStripSplitButton.cs
12066 * TreeNodeCollection.cs
12067 * TreeNodeMouseHoverEventArgs.cs
12070 2007-05-01 Everaldo Canuto <everaldo@simios.org>
12072 * ContextMenu.cs: Add public method Show with alignment property to 2.0
12073 stuff. Thanks aatdark for the patch.
12075 2007-05-01 Jonathan Pobst <monkey@jpobst.com>
12077 * GridItem.cs: Implement 2.0 Tag property.
12079 2007-05-01 Frederik Carlier <frederik.carlier@carlier-online.be>
12081 * TreeNodeCollection.cs: Fix ContainsKey and IndexOfKey methods to use
12082 count instead of Nodes.Length. [Fixes bug #81448]
12084 2007-05-01 Jonathan Pobst <monkey@jpobst.com>
12086 * ComboBox.cs: Fix paramName sent to ArgumentOutOfRangeException's.
12089 2007-05-01 Jonathan Pobst <monkey@jpobst.com>
12090 corcompare work: A - M
12091 * BindingNavigator.cs
12096 * FlowLayoutPanel.cs
12102 2007-05-01 Jonathan Pobst <monkey@jpobst.com>
12104 * Application.cs: Give toolstrips a chance to process mnemonics.
12105 * ToolStrip.cs, ToolStripDropDownButton.cs, ToolStripItem.cs,
12106 ToolStripItemTextRenderEventArgs.cs, ToolStripLabel.cs,
12107 ToolStripMenuItem.cs, ToolStripSplitButton.cs: Implement keyboard mnemonics.
12109 2007-05-01 Jackson Harper <jackson@ximian.com>
12111 * TextBoxBase.cs: Better preferred height, FixedSingle gets the
12113 - Don't set the BoundsSpecified
12115 2007-04-30 Jonathan Pobst <monkey@jpobst.com>
12117 * Application.cs: When using the toolstrip shortcut mechanism, allow the
12118 message to pass through to a regular control if it hosted by a toolstrip.
12119 * ToolStrip.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
12120 ToolStripManager.cs: Enable keyboard navigation for ToolStrips.
12122 2007-04-30 Jonathan Pobst <monkey@jpobst.com>
12124 * TextRenderer.cs: Use the flags argument when using the MeasureString
12125 fallback algorithm.
12127 2007-04-30 Jonathan Pobst <monkey@jpobst.com>
12129 * MenuStrip.cs: Don't let multiple ToolStripSeparators get added to
12130 the MDI menu item. [Fixes bug #81483]
12132 2007-04-30 Gert Driesen <drieseng@users.sourceforge.net>
12134 * DataGridViewColumn.cs: Initialize value of headercell to zero-length
12135 string. When setting Name to null, use zero-length string instead.
12137 2007-04-29 Andreia Gaita <avidigal@novell.com>
12139 * TabControl.cs: Implement missing 2.0 methods (SelectTab,
12140 DeselectTab). Implement missing 2.0 TabPageCollection methods
12141 (Add, ContainsKey, RemoveByKey, IndexOfKey)
12143 2007-04-29 Pedro MartĂnez JuliĂ¡ <pedromj@gmail.com>
12145 * DataGridViewColumn.cs: Make HeaderText take preference over Name.
12147 2007-04-29 Gert Driesen <drieseng@users.sourceforge.net>
12149 * RichTextBox.cs: In LoadFile, use StreamReader to read plain text.
12150 Fixes bug #81479. Include details of exception when LoadFile fails.
12152 2007-04-28 Alan McGovern <alan.mcgovern@gmail.com>
12154 * DrawListViewSubItemEventArgs.cs: Added missing setter
12156 2007-04-27 Andreia Gaita <avidigal@novell.com>
12158 * ToolTip.cs: Add missing 2.0 properties. Implement 2.0 Show and
12159 Hide methods (not complete). Implement missing 2.0 OnPopup event.
12161 2007-04-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12163 * ListView.cs: In ItemControl.OnMouseDown restore a pair of braces I
12164 removed in ly last commit (it was breaking the Label edit feature).
12166 * ThemeWin32Classic.cs: When drawing a ListViewItem use
12167 StringAlignment.Near for LineAlignment (match .Net).
12169 2007-04-27 Andreia Gaita <avidigal@novell.com>
12171 * TabControl.cs: Change SetTab so it adds the tabpage to the list
12172 of controls if it isn't already there - was blowing up when doing
12173 tabcontrol.TabPages[i]=new TabPage().
12174 SetTab now does a replace by removing the page at the index.
12175 Add a new InsertTab method that inserts a page in a given index
12176 instead of replacing.
12177 Implements TabPageCollection.Insert(int, TabPage).
12179 2007-04-27 Chris Toshok <toshok@ximian.com>
12181 * BindingManagerBase.cs: fill in CurrentItemChanged (and have an
12182 internal handler that can be invoked from our subclasses.) Also,
12183 add a comment to PushData about how we need to fix it.
12185 * CurrencyManager.cs: tons of changes here. trying to get things
12186 matching the behavior of .net wrt event orders (ItemChanged,
12187 CurrentChanged, PositionChanged.) I've implemented a private .net
12188 symbol (ChangeRecordState) that appears in stack traces because
12189 it's actually easier to do this than to effective inline all its
12190 various behaviors at every call site.
12192 * RelatedPropertyManager.cs: guard against an exception here by
12193 not using parent.Current if the position is set to -1 (if the
12194 parent datasource is cleared, for instance).
12196 * Binding.cs: don't parse data in PushData (this might be wrong,
12197 but it jives with MS's behavior.) Also, don't call PushData when
12198 we get a CurrentChanged event.
12200 2007-04-27 Andreia Gaita <avidigal@novell.com>
12204 WebBrowserSiteBase.cs,
12205 HtmlDocument.cs: Added stubbed out classes, no real implementations
12208 2007-04-27 Everaldo Canuto <everaldo@simios.org>
12210 * MainMenu.cs: In draw method without parameters call draw method with
12211 PaintEvent, another one (just rect) adjust rectangle and we dont need it
12212 as Rect property is already adjusted. Fixes #80694.
12214 2007-04-27 Jonathan Pobst <monkey@jpobst.com>
12216 * Application.cs: Need to handle keyboard menu deselection here.
12217 * Control.cs: Use WM_SYSKEYUP instead of WM_SYSCOMMAND to start menu keyboard
12218 navigation, allowing keyboard to work on X11.
12219 * ToolStrip.cs: Don't worry about handling the Menu key here anymore.
12221 2007-04-27 Everaldo Canuto <everaldo@simios.org>
12223 * MenuAPI.cs: When deactivate menu verify if hotkey (_) is active and redraw
12224 menu bar. It fixes some drawing issues in menu bar.
12226 2007-04-27 Everaldo Canuto <everaldo@simios.org>
12228 * MenuAPI.cs: Remove unneeded "keynav_state = KeyNavState.Idle" before
12229 Deactivate calls, Deactivate method already do it. Also ser ActiveTracker
12230 when <alt> key is pressed.
12232 2007-04-26 Everaldo Canuto <everaldo@simios.org>
12234 * XplatUIX11.cs: Simplify SystrayRemove to be like other libraries, Gtk as
12235 example just set visible to false and make this prevent from other problems.
12236 In SystrayAdd always remove pending expose. Fixes #81072.
12238 2007-04-26 Marek Safar <marek.safar@gmail.com>
12240 * TextBoxBase.cs (CaretMoved): Consider scroll maximum when scroll
12243 2007-04-26 Alan McGovern <alan.mcgovern@gmail.com>
12245 * ListView.cs: Added three missing 2.0 events and corresponding
12246 EventHandlers. Added the OwnerDraw property.
12247 * DrawListViewColumnHeaderEventHandler.cs: fixed typo
12249 2007-04-26 Alan McGovern <alan.mcgovern@gmail.com>
12251 * DrawListViewItemEventArgs.cs
12252 * DrawListViewSubItemEventArgs.cs: Brought classes up to 2.0 status.
12254 2007-04-26 Alan McGovern <alan.mcgovern@gmail.com>
12256 * TextControl.cs: Fixed typo in constructor
12258 2007-04-26 Jonathan Pobst <monkey@jpobst.com>
12260 * Application.cs: Create a shortcut path so that currently selected
12261 MenuStrips can intercept keyboard events without having focus.
12262 * Control.cs: Handle WM_SYSCOMMAND message to activate MenuStrips.
12263 * MenuStrip.cs, ToolStrip.cs, ToolStripDropDown.cs, ToolStripDropDownItem.cs,
12264 ToolStripItem.cs, ToolStripManager.cs, ToolStripMenuItem.cs: Support
12265 keyboard navigation (arrows, tab, enter, esc) on Windows. Still need to
12266 generate WM_SYSCOMMAND message in X11 for other platforms.
12267 * ToolStripProfessionalRenderer.cs: ToolStripMenuItems need to be painted
12268 in OnRenderMenuItemBackground instead of OnRenderButtonBackground.
12269 * ToolStripSplitButton.cs: Add DefaultItem property.
12271 2007-04-26 Everaldo Canuto <everaldo@simios.org>
12273 * MainMenu.cs: In OnMenuChanged pass PaintEventArgs to Draw method, it
12274 fixes some menu draw problem on Windows with border diferent from default
12275 it also fixes #81403.
12277 2007-04-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
12279 * Form.cs: Refactor WndProc into separate methods, just like Control is
12282 2007-04-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
12284 * Control.cs: set_Text: move the call to the driver into a seperate
12285 virtual method so that Form can override it.
12286 * MaskedTextBox.cs: Corcompare fixes.
12287 * Form.cs: Override UpdateWindowText and only update the styles if the
12288 form has been shown (fixes #81405).
12290 2007-04-25 Jonathan Pobst <monkey@jpobst.com>
12292 * Control.cs, Form.cs: Use the better supported WM_?BUTTONDOWN and
12293 WM_ACTIVATE messages instead of WM_MOUSEACTIVATE and
12294 WM_ACTIVATEAPP. This fixes menus not disappearing on X11 when
12295 the form lost focus or another control was clicked.
12297 2007-04-25 Gert Driesen <drieseng@users.sourceforge.net>
12299 * DataGrid.cs: Uncomment MakeTransparent calls since bug #80151 is
12302 2007-04-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
12304 * DrawListViewColumnHeaderEventHandler.cs, DrawToolTipEventArgs.cs,
12305 DrawListViewItemEventHandler.cs,
12306 DrawListViewSubItemEventHandler.cs, DrawToolTipEventHandler.cs:
12308 * X11Structs.cs: More ToString implementation.
12310 2007-04-25 Jonathan Pobst <monkey@jpobst.com>
12312 * ToolStripDropDownItem.cs: Don't lazy create a DropDown in Dispose.
12313 * ToolStripOverflowButton.cs: Don't lazy create a DropDown in HasDropDownItems.
12315 2007-04-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
12317 * Control.cs: Only raise OnVisibleChanged if we're not recreating the
12319 * FormCollection.cs: Don't add a form if it's already in the
12321 * Form.cs: Change ShowDialog () to call ShowDialog (owner) with a null
12322 according to behaviour and MSDN. The ownerWin32 is the active
12323 window at the moment when we call ShowDialog, not the context's
12324 main form (the context's main form may open another form that opens
12325 a form with ShowDialog, the win32 owner is the second form). Add
12326 and remove forms to the Application.OpenForms in other places to
12327 better match MS behaviour. Add an IsActive property that raises
12328 On(de)Activated only if the active state has changed (we were
12329 raising OnDeactivated before OnActivated while creating forms).
12330 * Application.cs: Refactor Enabling/Disabling of windows for modal
12331 dialog loops out to separate methods, and restore the thread
12332 context when we quit the method. Fixes #81407.
12334 2007-04-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12336 * ListView.cs: In ItemControl.HandleClicks, also fire
12337 2.0 MouseClick or MouseDoubleClick events on the parent,
12338 not only the Click/DoubleClick events.
12340 2007-04-24 Andreia Gaita <avidigal@novell.com>
12342 * TableLayoutSettings.cs:
12343 - Added a GetControls method and a support structure to help the
12344 TypeConverter to enumerate the controls for serialization.
12345 - Added a new serialization constructor.
12346 - Added a isSerialized flag initialized to true on the
12347 serialization constructor so that the TableLayoutPanel.LayoutSettings
12348 setter does not throw the designed NotSupportedOperation exception
12349 when the object is built through deserialization.
12350 - Implemented GetObjectData
12352 * TableLayoutPanel.cs: Added check on LayoutSettings.
12354 2007-04-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12356 * ListView.cs: Report Click and DoubleClick events to the parent
12357 from ItemsMouseUp, instead of ItemsMouseDown. This prevents us
12358 from breaking the click count state when using dialog forms (Control
12359 reports the clicks in a similar fashion). In the previous behaviour
12360 the last WM_LBUTTONUP message in a double click was sent to the
12361 ListView's form, instead of the ListView, which was breaking the click
12362 count for it. Fixes #80387.
12364 2007-04-24 Alan McGovern <alan.mcgovern@gmail.com>
12366 * BindingNavigator.cs : fixed bugs revealed by new nunit tests
12368 2007-04-24 Jonathan Pobst <monkey@jpobst.com>
12370 * ToolStripDropDownItem.cs: Lazy initialize the DropDown. This prevents
12371 us from created dropdowns for menu items that do not have subitems.
12372 * ToolStripItem.cs, ToolStripProfessionalRenderer.cs, ToolStripSplitButton.cs:
12373 Check HasDropDownItems before calling DropDown so a dropdown will not be
12374 created if it isn't needed.
12376 2007-04-24 Jackson Harper <jackson@ximian.com>
12378 * TreeView.cs: Set the first node to the selected node when we get
12379 focus if there is no selected node.
12381 2007-04-24 Andreia Gaita <avidigal@novell.com>
12383 * MimeIcon.cs: remove using blocks so that image streams are
12384 not disposed of. Fixes #80151
12386 2007-04-24 Jackson Harper <jackson@ximian.com>
12388 * TextBoxBase.cs: Fixup the height of textboxes when the control
12391 2007-04-24 Jonathan Pobst <monkey@jpobst.com>
12393 * ToolStrip.cs: Fully implement GetNextItem. Call OnParentRightToLeftChanged
12394 for each ToolStripItem when the parent's RightToLeftChanged is called.
12396 2007-04-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
12398 * ComboBox.cs: Forward ContextMenu to the underlying textbox, if any.
12400 * Control.cs: Replace GetContextMenuInternal() with ContextMenuInternal
12401 property, so that the setter can be overriden too.
12402 * TextBox.cs: Change GetContextMenuInternal() to use
12403 ContextMenuInternal.
12405 2007-04-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
12407 * ThemeWin32Classic.cs: Use a black pen to draw checkboxes, fixes
12410 2007-04-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
12412 * ThemeWin32Classic.cs: Use a black pen to draw checkboxes, fixes
12415 2007-04-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
12417 * MaskedTextBox.cs: Commit this so nobody else starts working on it and
12418 avoid duplicate work. Mostily skeleton code, it's not working at
12421 2007-04-20 Leszek Ciesielski <skolima@gmail.com>
12423 * NotifyIcon.cs : stub for MouseClick event
12424 * Application.cs: stub for SetUnhandledExceptionMode
12426 2007-04-24 Alan McGovern <alan.mcgovern@gmail.com>
12428 * BindingNavigator.cs : Initial (partial) implementation
12430 2007-04-23 Jackson Harper <jackson@ximian.com>
12432 * TreeView.cs: Do not create the treeview's handle when setting
12433 the scroll position.
12434 - ExpandAll needs to compute the scrollbars so it knows which
12435 position to set the bar too.
12437 * TreeNodeCollection.cs: Pass new flag to UpdateScrollBars
12439 2007-04-23 Jackson Harper <jackson@ximian.com>
12441 * TextBoxBase.cs: Non multiline textboxes shouldn't take the enter
12444 2007-04-23 Jonathan Pobst <monkey@jpobst.com>
12446 * ToolStripItem.cs: Make GetImageSize internal.
12447 * ToolStripMenuItem.cs: Use GetImageSize to determine the size we
12448 need to draw an item. Fixes a reported issue where images on menus
12449 that were not 16x16 were drawing incorrectly.
12451 2007-04-21 Miguel de Icaza <miguel@novell.com>
12453 * Padding.cs: Use the converter, fixes the resgen2 issue with
12456 2007-04-21 Jackson Harper <jackson@ximian.com>
12458 * TreeView.cs: Dont try to unhighlight the selected node if there
12459 isn't a selected node.
12461 2007-04-21 Jackson Harper <jackson@ximian.com>
12467 * TreeView.cs: Use the InternalBorderStyle property to set the
12468 initial border style, this forces the client rectangle to be sized
12471 2007-04-20 Jackson Harper <jackson@ximian.com>
12473 * TreeView.cs: Simplify scrolling to the last node after expanding
12475 - Fix some off by ones with setting the bottom.
12477 2007-04-20 Jonathan Pobst <monkey@jpobst.com>
12479 * Control.cs: Use DefaultSize for Size, calculate ClientSize from
12480 that. We were incorrectly doing it the other way around. Also,
12481 update ClientSize if we change the BorderStyle before the control
12484 2007-04-20 Gert Driesen <drieseng@users.sourceforge.net>
12486 * XplatUI.cs: Added Border3DSize, BorderSize, CaptionButtonSize,
12487 DoubleClickSize, DoubleClickTime and FixedFrameBorderSize. Renamed
12488 XplatUIDriver.Caption to CaptionHeight. Spaces to tabs.
12489 * XplatUIDriver.cs: Added Border3DSize, BorderSize, CaptionButtonSize,
12490 DoubleClickSize, DoubleClickTime and FixedFrameBorderSize. Renamed
12491 Caption to CaptionHeight.
12492 * XplatUIX11.cs: Renamed Caption to CaptionHeight.
12493 * Theme.cs: Modified Border3DSize, BorderSize, CaptionButtonSize
12494 and FixedFrameBorderSize to return value from current XplatUI driver.
12495 * XplatUIWin32.cs: Implemented Border3DSize, BorderSize,
12496 CaptionButtonSize, DragFullWindows, DoubleClickSize, DoubleClickTime
12497 and FixedFrameBorderSize using win32 API. Renamed Caption to
12499 * XplatUIOSX.cs: Renamed Caption to CaptionHeight.
12500 * SystemInformation.cs: Fixed typo in BorderSize.
12502 2007-04-20 Gert Driesen <drieseng@users.sourceforge.net>
12504 * XplatUI.cs: Added MenuAccessKeysUnderlined.
12505 * XplatUIDriver.cs: Added MenuAccessKeysUnderlined.
12506 * XplatUIX11.cs: Implemented MenuAccessKeysUnderlined by always
12508 * Theme.cs: Modified MenuAccessKeysUnderlined to return corresponding
12509 value from XplatUI driver.
12510 * XplatUIWin32.cs: Implemented MenuAccessKeysUnderlined using
12511 SystemParametersInfo.
12512 * ThemeWin32Classic.cs: Remove obsolete MenuAccessKeysUnderlined
12514 * XplatUIOSX.cs: Implemented MenuAccessKeysUnderlind by always
12517 2007-04-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
12519 * XplatUIX11.cs, Hwnd.cs: Remove warnings.
12521 2007-04-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
12523 * MessageBox.cs, XplatUIX11.cs, Hwnd.cs: Remove warnings.
12525 2007-04-20 Jonathan Pobst <monkey@jpobst.com>
12527 * ToolStripManager.cs: Fix a reported InvalidCastException when unmerging
12528 MenuStrips that contain ToolStripSeparators.
12530 2007-04-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
12532 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Add
12533 DefineStdCursorBitmap.
12534 * Cursor.cs: Add an internal constructor so that the Cursor knows if it
12535 has been created off a standard cursor. This is used to get a
12536 bitmap of the standard cursor when Draw or DrawStretched is called
12537 in order to draw the cursor.
12538 * X11Structs.cs: Added XcursorImage and XcursorImages.
12539 * XplatUIX11.cs, XplatUIWin32.cs: Add and implement
12540 DefineStdCursorBitmap.
12541 * Cursors.cs: Update all relevant creations of Cursor to use the new
12542 internal constructor.
12544 2007-04-19 Jackson Harper <jackson@ximian.com>
12546 * TextBox.cs: Move the has_been_focused into the base control, so
12547 some of the text adding methods can manipulate it (probably time
12548 for a better name for this flag too).
12549 - Call a new version of selectall that doesn't scroll
12550 * TextBoxBase.cs: When we append text, if the document is empty,
12551 don't scroll. If the document has text already, we scroll to the
12552 end of the appended text.
12553 - When the text is changed, we reset the has_been_focused, so the
12554 next time the control gets focused, all the text is selected.
12556 2007-04-19 Jackson Harper <jackson@ximian.com>
12558 * TextControl.cs: Move the margins to the document, add a method
12559 so the margin sizes can be updated.
12560 * TextBoxBase.cs: When the border style is changed, update the
12563 2007-04-19 Jonathan Pobst <monkey@jpobst.com>
12565 * Control.cs: Respect DefaultPadding.
12566 * GroupBox.cs: Implement DefaultPadding, DisplayRectangle takes
12567 padding into account.
12568 * ToolStrip.cs: Remove setting padding to DefaultPadding in constructor.
12570 2007-04-19 Jackson Harper <jackson@ximian.com>
12572 * TextControl.cs: Oops, we need to use the ClientRect not the
12575 2007-04-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12577 * ListView.cs: In ItemControl.ItemsMouseDown, take into
12578 account the double clicks when CheckBoxes are used and
12579 the pointer is inside the checkbox. Fixes part of #81191.
12581 2007-04-18 Jackson Harper <jackson@ximian.com>
12583 * TextControl.cs: Pressing the end key shouldn't move the caret
12584 past the line ending.
12585 * TextBoxBase.cs: We can still delete if we are in the line
12586 ending and the combine will just kill the existing line ending.
12588 2007-04-18 Jackson Harper <jackson@ximian.com>
12590 * TextControl.cs: We can't move lines, then invalidate their
12591 bounds, we need to get the old bounds and combine that with the
12593 * TextBoxBase.cs: Before combining two lines for a delete, we need
12594 to invalidate the area of the old line, since that will be moved
12595 in the combine operation.
12597 2007-04-18 Everaldo Canuto <everaldo@simios.org>
12599 * LinkLabel.cs: In OnPaint invoke draw background to fix problems
12600 with transparent background. Fixes #80482.
12602 2007-04-18 Jonathan Pobst <monkey@jpobst.com>
12604 * PictureBox.cs: Refresh on resize when SizeMode = Zoom.
12605 * ThemeWin32Classic.cs: Implement PictureBox.SizeMode = Zoom.
12608 2007-04-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
12610 * CreateParams.cs: Add a couple of helper methods and do a less string
12611 concatenation in ToString.
12612 * XplatUIX11.cs: Add an TranslateClientRectangleToXClientRectangle
12613 overload that takes a Control parameter, since this method may be
12614 called before a control is assigned to the hwnd (from
12615 CreateWindow), and update CreateWindow to use the new overload. In
12616 GetMenuOrigin subtract the title bar from the y position if the
12617 form has a window manager (since we're painting it and not X).
12618 * XplatUIWin32.cs: If we can get a form in GetMenuOrigin use the form's
12619 CreateParams to calculate the origin (since border sizes may vary).
12620 In ScreenToMenu only subtract the title height if we actually have
12622 * MdiWindowManager.cs: Override MenuHeight to always return 0, since
12623 mdi children never have menus of themselves.
12624 * InternalWindowManager.cs: Implement menu handling like form does.
12625 Added GetMenuOrigin to calculate the menu origin, can't use the
12626 CreateParams from the form like normally since it's lying.
12627 * Hwnd.cs: Implement GetBorderSize better (in the sense more
12628 windows-like) and add Inflate and comparison operators to the
12629 Borders type. When calculating MenuOrigin and it's a form with a
12630 window manager, use the window manager to calculate it.
12632 2007-04-17 Chris Toshok <toshok@ximian.com>
12634 * Control.cs (CreateControl): turns out in 2.0 we don't need this
12635 OnBindingContextChanged thing here. It's only generated from
12636 ContainerControl.OnCreateControl. Fixes a newly written unit test
12637 - BindingTest.BindingContextChangedTest4.
12639 2007-04-17 Jackson Harper <jackson@ximian.com>
12641 * ScrollBar.cs: When setting values, make sure the current
12642 position stays within the new values range.
12644 2007-04-17 Chris Toshok <toshok@ximian.com>
12646 * Control.cs (CreateControl): talk about a bizarre corner case.
12647 Don't emit OnBindingContextChanged here if we're a parentless
12648 control (i.e. if we're a form.). Fixes
12649 BindingTest.BindingContextChangedTest2.
12651 2007-04-17 Everaldo Canuto <everaldo@simios.org>
12653 * ButtonBase.cs: Remove TextFormatFlags.WordBreak to mimic same behavior
12654 from win32. Fixes #81255.
12656 2007-04-17 Everaldo Canuto <everaldo@simios.org>
12658 * ThemeWin32Classic.cs: Remove text offset from DrawButtonText as it is
12659 already present in CalculateButtonTextAndImageLayout.
12661 2007-04-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
12663 * XplatUIX11.cs: When setting min/max size for a window we need to
12664 translate the coordinates to x coordinates. Create an overload of
12665 SetWindowMinMax that takes a CreateParams handling this, and change
12666 SetWMStyles to call this function (can't use Control.FromHandle in
12667 the SetWindowMinMax to get the control/CreateParams from the handle
12668 because the handle might not have been assigned to the control
12669 yet). Fixes #81371.
12671 2007-04-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12673 * ListView.cs: In ItemControl.ItemMouseDown, don't change check state
12674 if StateImageList is non-null and it has less than two items (match MS
12675 behaviour). Also, in HandleNavKeys handle the Space key, calling
12676 the new ToggleItemsCheckState method, which tries to change the
12677 checked state of the selected items. Fixes part of #81191.
12679 2007-04-16 Jackson Harper <jackson@ximian.com>
12681 * RichTextBox.cs: namespace cleanup.
12683 2007-04-16 Everaldo Canuto <everaldo@simios.org>
12685 * XplatUIWin32.cs: Back last parameter to true in SetClipRegion.
12687 2007-04-16 Everaldo Canuto <everaldo@simios.org>
12690 * Control.cs: Call invalidate in set_Region.
12692 * XplatUIX11.cs, XplatUIWin32.cs: Remove invalidate from SetClipRegion as
12693 it dont works here.
12695 2007-04-16 Jackson Harper <jackson@ximian.com>
12697 * TextBoxBase.cs: When enter is pressed, we need to update all
12698 lines below the current.
12700 2007-04-16 Jonathan Pobst <jpobst@monkey.com>
12702 * MdiClient.cs: Implement implicit menu merging for MDI
12703 children. When a child form is active, if it has a menustrip
12704 and the parent form has a MainMenuStrip, automatically merge
12707 2007-04-15 Andreia Gaita <avidigal@novell.com>
12709 * TabControl.cs: Refactored sizing methods to not repeat
12710 code all over the place. Tab bounds are now calculated
12711 as if alignment is top and single line, and only when
12712 setting the bounds are the positions adjusted according
12713 to alignment. Replaced hardcoded positions, spacings and
12714 paddings by getting the values the ThemeEngine.
12717 * Theme.cs: Change TabControl properties and methods so
12718 that all start with TabControl*. Added more properties
12719 to help remove hardcoded values on tabcontrol.
12720 Add CPDrawBorder3D declaration so the Theming classes
12723 * ThemeClearlooks.cs, ThemeNice.cs: Method signature changes from Theme.
12725 * ThemeWin32Classic.cs: Rector TabControl out to the TabControlPainter
12726 on the Theming namespace, and call the appropriate methods here.
12727 Change CPDrawBorder3D to public.
12729 2007-04-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12731 * Control.cs: In WmRButtonUp, send the WM_CONTEXTMENU message to
12732 the control after firing the OnMouseUp event, instead of sending
12733 the message before the mentioned event. This is so we can match the
12734 MS behaviour. Fixes part of #80385.
12736 2007-04-13 Jonathan Pobst <monkey@jpobst.com>
12738 * ToolStripItem.cs: Call the RightToLeftChanged event when setting the
12739 RightToLeft property.
12741 2007-04-13 Jonathan Pobst <monkey@jpobst.com>
12743 * ToolStrip.cs: Add properties and internal methods to support merging.
12744 * ToolStripItem.cs: Add MergeAction and MergeIndex.
12745 * ToolStripItemCollection.cs: Add Insert and Remove methods that do
12746 not trigger reparenting or layouts.
12747 * ToolStripManager.cs: Add Merge and RevertMerge methods.
12748 * ToolStripOverflow.cs: Add a convenience method to find the ToolStrip that
12749 is hosting the overflow menu.
12751 2007-04-13 Jackson Harper <jackson@ximian.com>
12753 * TextControl.cs: Set the line ending correctly for the first
12756 2007-04-13 Sebastien Pouliot <sebastien@ximian.com>
12758 * Theme.cs: Update GetMethod to get the new definition for
12759 KnownColors.Update (and fix theme color updates).
12761 2007-04-12 Everaldo Canuto <everaldo@simios.org>
12763 * MessageBox.cs: Fix some test and button position.
12765 2007-04-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12767 * Form.cs: Consider the implicit controls in
12768 GetRealChildAtPoint. We need it since this method
12769 is called on Form when handling the some messages in
12770 WndProc, and need to consider those implicit ones too.
12773 2007-04-12 Jonathan Pobst <monkey@jpobst.com>
12775 * ToolStripMenuItem.cs: Display the ShortcutKeyDisplayString even
12776 if there are no ShortcutKeys set.
12777 * ToolStripProfessionalRenderer.cs: If an item has had its BackColor
12778 set, use it when painting.
12780 2007-04-12 Jackson Harper <jackson@ximian.com>
12782 * TextControl.cs: Fix some off-by-one issues in line duplication
12783 and insertion in the undo manager. Also, overwrite the first tag
12784 of a line on insert, if it is just a zero lengthed tag. This
12785 prevents us from getting an extra stranded tag at the beginning of
12788 2007-04-11 Everaldo Canuto <everaldo@simios.org>
12790 * Label.cs: Remove check for handle created in CalcAutoSize, we need
12791 to calculated proper size including when handle was not created yet.
12793 2007-04-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
12795 * MdiWindowManager.cs: When moving a form, allow the form to be moved
12796 when the mouse is outside of it's parent's client rectangle. Fixes
12797 #79982 (take 3, part 2).
12799 2007-04-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
12801 * X11Structs.cs: Add a few ToString() overrides.
12802 * XplatUIX11.cs: Added GetTopLevelWindowLocation to try to calculate
12803 the window location in a window-manager independent way. Reworked
12804 FrameExtents, it now actually works. Reworked AddConfigureNotify
12805 and ReparentNotify handling to use GetTopLevelWindowLocation
12806 instead of the earlier, more hacky solution. Reworked SetWMStyles,
12807 hopefully for the better: we now set _NET_WM_WINDOW_TYPE* for all
12808 windows, DIALOG for modal windows, UTILITY for toolboxes and NORMAL
12809 for all other windows (fixes #81281 part 1), a toolwindow is hidden
12810 from the taskbar if it has a parent (fixes #81281 part 2 for kwin),
12811 and generally refactored to do as few calculations as possible
12814 2007-04-09 Sebastien Pouliot <sebastien@ximian.com>
12816 * Theme.cs: Change "reflective-contract" between MWF and SD to
12817 minimize # of calls, avoid Color serialization and avoid updating
12818 every "known colors" each time a single one is updated.
12820 2007-04-09 Gert Driesen <drieseng@users.sourceforge.net>
12822 * DataGridTextBoxColumn.cs: Only set IsInEditOrNavigateMode to false
12823 when not readonly and the text is explicitly set. Code style updates.
12824 * DataGridTableStyle.cs: Removed extra line.
12825 * DataGrid.cs: Code style updates. Removed extra whitespace.
12826 * DataGridColumnStyle.cs: Code style updates. Removed extra
12829 2007-04-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
12831 * XplatUIX11.cs: Added comment that "fixes" #80021.
12833 2007-04-09 Jackson Harper <jackson@ximian.com>
12835 * TextControl.cs: We don't need this -1 on the line count anymore.
12837 2007-04-09 Gert Driesen <drieseng@users.sourceforge.net>
12839 * DataGridTextBoxColumn.cs: In Commit, use TypeConverter to convert
12840 entered value to underlying type, and convert it back to a string to
12841 apply formatting. Modified GetFormattedValue to use TypeConverter
12844 2007-04-08 Gert Driesen <drieseng@users.sourceforge.net>
12846 * ListViewItem.cs: Added null checks. Avoid duplicating code in ctors.
12847 Use SubItems property when we want to ensure there's at least one
12848 subitem. Modified SubItems property to ensure there's always at least
12849 one subitem. Avoid using ListViewSubItemCollection.AddRange to match
12850 the NRE's reported by MS.
12852 2007-04-07 Gert Driesen <drieseng@users.sourceforge.net>
12854 * ProgressBar.cs: On 2.0 profile, default forecolor is Highlight. Added
12855 ResetForeColor override on 2.0. Fixed a few API compatibility issues.
12856 Spaces to tabs. Removed extra tabs.
12858 2007-04-06 Jonathan Pobst <monkey@jpobst.com>
12860 * ToolStripSplitStackLayout.cs: If we run out of things to hide, don't
12861 infinite loop. (Forgot to copy to the horizontal toolstrip case.)
12863 2007-04-06 Jackson Harper <jackson@ximian.com>
12865 * TextBoxBase.cs: When a delete removes a line, recalculate all
12866 lines below that line (they need to get offsets setup correctly)
12869 2007-04-05 Jackson Harper <jackson@ximian.com>
12871 * TextControl.cs: We need to invalidate across the width of the
12872 document when we are invalidating multiple lines.
12873 * TextBoxBase.cs: Don't delete into the line ending.
12875 2007-04-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12877 * ListView.cs: Restore the check for the MouseHover event
12878 in ListView. It looks like the ListView fires more than one MouseHover
12879 event when HoverSelection is true _only_ in weird-corner scenarios, but
12880 in most of the cases it only fires one. Also, add the 2.0 ItemMouseHover
12883 2007-04-05 Mike Kestner <mkestner@novell.com>
12885 * ListView.cs : raise MouseDown before updating selection.
12886 [Fixes #80373 tab 1&3]
12888 2007-04-05 Jonathan Pobst <monkey@jpobst.com>
12890 * ToolStripRenderer.cs: Add static method to mirror image.
12891 * ToolStripProfessionalRenderer.cs: Support ImageTransparentColor
12892 and RightToLeftAutoMirrorImage.
12893 * ToolStripItem.cs: Remove MonoTODO from ImageTransparentColor.
12895 2007-04-05 Jonathan Pobst <monkey@jpobst.com>
12897 * ToolStripSplitStackLayout.cs: Support Alignment property.
12898 * ToolStripItem.cs: Remove MonoTODO from the Alignment property.
12900 2007-04-05 Jackson Harper <jackson@ximian.com>
12902 * TextControl.cs: Move around the line endings when crossing line
12904 - When combining lines, strip the ending text off the first line.
12906 2007-04-05 Jackson Harper <jackson@ximian.com>
12909 * TextBoxBase.cs: Try to never move the cursor into the line
12912 2007-04-04 Jonathan Pobst <monkey@jpobst.com>
12914 * ToolStripItem.cs: Make sure we aren't firing mouse events when
12915 the item is disabled. Also add a few missing methods.
12917 2007-04-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12919 * ListView.cs: We don't need the MouseEnter/MouseLeave check
12920 to fire just one MouseHover event when HoverSelection is true, since
12921 .Net does fire more than one MouseHover event in that scenario. Also,
12922 fix the selection in HoverSelection, by invoking UpdateMultiSelect
12923 if MultiSelect is true, instead of only setting ListViewItem.Selected.
12924 Finally, we need to reset the Hover logic in MouseMove, even when we
12925 don't have a selected item.
12927 2007-04-04 Jonathan Pobst <monkey@jpobst.com>
12929 * ToolStrip.cs: Add several missing methods, properties, and events.
12931 2007-04-04 Chris Toshok <toshok@ximian.com>
12933 * DataGridTextBoxColumn.cs: set the bounds of the text box to
12934 (0,0,0,0) in Commit, as MS does.
12936 * DataGrid.cs: call EndEdit() from Select() as microsoft does, and
12937 make sure we set CurrentRow on a row header click *before* calling
12938 Select. This moves the current cell (and the textbox) to the new
12939 row. The call to Select then hides the textbox, giving us the
12940 correct behavior. Fixes #80362.
12942 * CurrencyManager.cs (UpdateIsBinding): raise ItemChanged (-1).
12943 (ListChangedHandler): reorder the position/current changed events,
12944 and call UpdateIsBinding in the ItemAdded case.
12946 * GridColumnStylesCollection.cs: add some columns events, one of
12947 which raises the CollectionChanged event.
12949 2007-04-04 Jackson Harper <jackson@ximian.com>
12951 * TextControl.cs: When we delete multiple selection lines
12952 invalidate the selection area, don't need to do that for single
12953 lines because the final update view will handle it.
12955 2007-04-04 Jonathan Pobst <monkey@jpobst.com>
12957 * Control.cs: When we CreateControl, we need to also create all of the
12958 control's children. The child's OnLoad must also fire before the parent's
12959 OnLoad. Fixes the toolbox size in PDN.
12961 2007-04-04 Jackson Harper <jackson@ximian.com>
12963 * TextBoxBase.cs: When the user presses enter, insert a line
12964 ending into the text. (Maybe this would be a good spot for
12965 Environment.NewLine).
12966 * TextControl.cs: Remove undo manager hack, line endings get
12967 inserted properly now.
12969 2007-04-04 Everaldo Canuto <everaldo@simios.org>
12972 - Remove unneeded parameters in UpdateCursor.
12973 - Fix UpdateCursor to check if menu is active.
12974 - Call UpdateCursor when menu deactivate my click.
12975 [Fixes remaining issues from #80410]
12977 2007-04-04 Everaldo Canuto <everaldo@simios.org>
12979 * Control.cs: GetRealChildAtPoint method added, it make an
12980 recursive child control search for the point.
12982 * Form.cs: Makes use of GetRealChildAtPoint in mouse event after closes
12985 * MenuAPI.cs: Makes use of GetRealChildAtPoint in UpdateCursor.
12987 2007-04-03 Everaldo Canuto <everaldo@simios.org>
12989 * Form.cs: Fix mouse position when send back mouse event after closes
12992 2007-04-03 Everaldo Canuto <everaldo@simios.org>
12994 * Form.cs: Simplify the BUTTONDOWN for active tracker.
12996 2007-04-03 Jonathan Pobst <monkey@jpobst.com>
12998 * Control.cs: Fix an issue where if a user resized a control inside
12999 a sizing method like OnResize, we would overwrite their explicit
13000 value. Also, only call DefaultSize once in the constructor instead
13001 of 4 times. Also, do not call SetBoundsCore from SetBounds if
13002 nothing actually changed.
13004 2007-04-03 Jackson Harper <jackson@ximian.com>
13006 * TextControl.cs: Don't attempt to copy text for lines with no
13007 text in them (technically this shouldn't happen, but we aren't
13008 always inserting line endings when we should be).
13010 2007-04-03 Jackson Harper <jackson@ximian.com>
13012 * TextBoxBase.cs: Calculate the scrollbars before calculating the
13013 document, because this sets some of the document size properties
13016 2007-04-03 Jackson Harper <jackson@ximian.com>
13018 * TextBoxBase.cs: We need to calculate maximums even if this is
13019 not a multiline control, because the maxs are used for scrolling.
13020 - Display the caret after doing a page up/down, we need to
13021 manually display it because a proper CaretMoved event isn't
13022 triggered (this is because of the way the math is done to
13023 determine how far to scroll).
13025 2007-04-03 Jonathan Pobst <monkey@jpobst.com>
13027 * ToolBar.cs: Fix some breakage caused by the SetBoundsCore change.
13028 (ToolBar was relying on SetBoundsCore to default the values sent
13029 base off of BoundsSpecified.)
13031 2007-04-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
13033 * DateTimePicker.cs: Change Text so that when a null value or empty
13034 string is assigned to the test we always raise ValueChanged and
13035 TextChanged (earlier implementation would only raise ValueChanged
13036 if the current date value was different from DateTime.Now).
13038 2007-04-03 Andreia Gaita <avidigal@novell.com>
13040 * ButtonBase: Call update after invalidation, fixes #80194
13042 2007-04-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
13044 * ThemeWin32Classic.cs: Draw StatusBar using double buffering. Fixes
13047 2007-04-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
13049 * XplatUIX11.cs: SetWMStyles: If the control is a form with
13050 FormBorderStyle = None, don't give the window any decorations.
13053 2007-04-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
13055 * XplatUI.cs, XplatUIDriver.cs: Updated CalculateWindowRect parameters.
13056 * CreateParams.cs: Fix IsSet, wasn't working correctly when the style
13057 to check for is a mix of several styles (such as WS_CAPTION for
13059 * Control.cs: Don't paint an area bigger than the client area when
13060 painting the background colour. Add an internal GetCreateParams.
13061 Update calls to XplatUI.CalculateWindowRect due to API change.
13062 * XplatUIX11.cs: In PerformNCCalc set the initial size to the whole
13063 window's size, and handle WM_NCCALCSIZE in DefWndProc to calculate
13064 the size if it hasn't been handled by any windows. When creating
13065 and moving windows, X wants the location of the entire window, but
13066 the size of the client window, so add
13067 TranslateClientRectangleToXClientRectangle,
13068 TranslateWindowSizeToXWindowSIze and
13069 TranslatedXWindowSizeToWindowSize to cope with this, and call them
13070 before every window creation and move. Update CalculateWIndowRect
13071 to use Hwnd.GetWindowRect (one step towards removing DeriveStyles).
13072 In AddConfigureNotify don't do anything if the hwnd is a zombie
13073 (fixes the BadWindow we were getting while running the tests),
13074 always calculate the offsets when it's a parentless window, not
13075 only when reparented, and translate the window size, since we're
13076 getting the client size of the whole window, excluding entire
13078 * Theme.cs: Added BorderSizableSize.
13079 * XplatUIWin32.cs: Fix RECT Height and Width. Don't fake styles here
13080 anymore. Update calls to XplatUI.CalculateWindowRect due to API
13082 * Form.cs: Update calls to XplatUI.CalculateWindowRect due to API
13083 change. Fake the window styles here instead of in XplatUIWin32 so
13084 that all back-ends get the same window styles (and it's Form that's
13085 deciding when to use wm, not the Win32 backend anyways)
13086 * Hwnd.cs: Completely reworked GetWindowRectangle and
13087 GetClientRectangle - they are now passed a CreateParams and they
13088 only use Style and ExStyle to determine the rectangles (they should
13089 now work just like Win32AdjustWindowRectEx - though quite a few
13090 special cases are probably missing). They should also be 100%
13091 complimentary (i.e. GetWindowRectangle (GetClientRectangle (rect))
13092 == rect), and all numbers (borders, menu sizes) are taken from the
13093 current theme. Added a GetBorders helper function that will return
13094 the borders for any given CreateParams (including captions and
13095 menus), and GetBorderSize that returns the given border size only.
13096 * XplatUIOSX.cs: Update calls to CalculateWindowRect and
13097 Hwnd.GetClientRectangle.
13099 2007-04-02 Chris Toshok <toshok@ximian.com>
13101 * DataGridBoolColumn.cs: rewrite things a bit, and fix up the
13102 logic between the values we present to the user and the values
13103 which are stored in the column's property. Also, don't call
13104 GetPreferredSize - it's virtual. Along the way, fix bug #80965.
13106 2007-04-02 Jackson Harper <jackson@ximian.com>
13108 * TextBoxBase.cs: Scroll faster!
13110 2007-04-02 Jonathan Pobst <monkey@jpobst.com>
13112 * StatusStrip.cs: Layout fixes for PDN.
13113 * ToolStrip.cs: Set item's available to true, and placement to main when
13115 * ToolStripItem.cs: Fix an Available issue, check that Parent is really
13116 changing in setter before doing any work, add InternalVisible.
13117 * ToolStripPanel.cs: Remove unused variable to fix compiler warning.
13118 * ToolStripSplitStackLayout.cs: If we run out of things to hide, don't
13121 2007-04-02 Jackson Harper <jackson@ximian.com>
13123 * TextBox.cs: LBUTTON does not make the textbox select all of it's
13126 2007-04-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
13128 * XplatUIWin32.cs: Use the previous change in SetParent for forms only.
13129 Makes ToolStripComboBoxes show up again.
13131 2007-04-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13133 * ListView.cs: Add a hover_pending field in ListView
13134 to fire just one OnMouseHover event for each MouseEnter/MouseLeave
13135 cycle (we are resetting the MouseHover logic in XplatUI
13136 to handle HoverSelection). Fixes #80429.
13138 2007-04-02 Jackson Harper <jackson@ximian.com>
13140 * TextControl.cs: Make sure the attributes get set on the last
13142 - Still have to do the end tag if we have stepped all the ways to
13145 2007-04-02 Sebastien Pouliot <sebastien@ximian.com>
13147 * XplatUIOSX.cs, XplatUIX11.cs, XplatUIX11GTK.cs: Remove dependency
13148 on an internal libgdiplus call when the information is already
13149 available via the public API.
13151 2007-04-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
13153 * Control.cs: Call ContainerControl.ChildControlRemoved whenever a
13154 control is removed from a control collecftion.
13155 * XplatUIX11.cs: The first location for toplevel form is (22, 22).
13156 Fixes FormPropertyTest (failed on rare occasions).
13157 * XplatUIWin32.cs: Add a workaround in SetParent for strange behaviour
13158 of Win32SetParent (when changing from no parent to a parent it
13159 might add the new parent's location in screen coordinates to this
13160 window's location).
13161 * Form.cs: Rework ChangingParent once again, now the handle is
13162 recreated whenever a FormWindowManager is added or removed (that is
13163 whenever a normal form is parented or abandoned). Also change
13164 CreateParams so that all non-toplevel windows always get the
13165 specified sice (StartupPosition is never considered for
13166 non-TopLevel forms).
13167 * ContainerControl.cs: Add ChildControlRemoved, the container control
13168 needs to be notified when a control is removed from it's
13169 collection, in the case the removed control is the active control.
13171 2007-04-02 Jackson Harper <jackson@ximian.com>
13173 * RichTextBox.cs: Use the new methods for setting the font and
13174 color, these methods set the specified attribute without
13175 overriding the other attributes.
13177 2007-04-02 Jonathan Pobst <monkey@jpobst.com>
13179 * ToolStripPanel.cs: Fixes for better layouts in PDN.
13181 2007-03-31 Gert Driesen <drieseng@users.sourceforge.net>
13183 * TextBox.cs: Added internal ChangeBackColor method to special-case
13184 Color.Empty. Added check for invalid ScrollBars value.
13185 * TextBoxBase.cs: Added internal ChangeBackColor method.
13186 * RichTextBox.cs: Only set backcolor_set on 2.0 profile. Added
13187 internal ChangeBackColor method to special-case Color.Empty. Added
13188 check for invalid ScrollBars value.
13190 2007-03-30 Everaldo Canuto <everaldo@simios.org>
13192 * MenuItem.cs: On invalidate prevent form to create handle. [Fixes #81272]
13194 2007-03-30 Jonathan Pobst <monkey@jpobst.com>
13196 * ScollableControl.cs: Add HorizontalScroll and VerticalScroll properties.
13197 * ScrollProperties.cs, HScrollProperties.cs, VScrollProperties.cs: Added.
13198 [Based on submitted patch from Olivier Duff.]
13200 2007-03-30 Jackson Harper <jackson@ximian.com>
13202 * TextBox.cs: Only select all on initial focus if the user has not
13203 specified a selection area.
13205 2007-03-30 Jonathan Pobst <monkey@jpobst.com>
13207 * UserControl.cs: Override CreateParams.
13209 2007-03-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
13213 * XplatUI.cs, XplatUIDriver.cs: Updated CalculateWindowRect parameters.
13214 * CreateParams.cs: Fix IsSet, wasn't working correctly when the style to
13215 check for is a mix of several styles (such as WS_CAPTION for instance).
13216 * Control.cs: Don't paint an area bigger than the client area when painting
13217 the background colour. Add an internal GetCreateParams. Update calls to
13218 XplatUI.CalculateWindowRect due to API change.
13219 * XplatUIX11.cs: In PerformNCCalc set the initial size to the whole window's
13220 size, and handle WM_NCCALCSIZE in DefWndProc to calculate the size if it
13221 hasn't been handled by any windows. When creating and moving windows, X
13222 wants the location of the entire window, but the size of the client
13223 window, so add TranslateClientRectangleToXClientRectangle,
13224 TranslateWindowSizeToXWindowSIze and TranslatedXWindowSizeToWindowSize
13225 to cope with this, and call them before every window creation and move.
13226 Update CalculateWIndowRect to use Hwnd.GetWindowRect (one step towards
13227 removing DeriveStyles). In AddConfigureNotify don't do anything if the
13228 hwnd is a zombie (fixes the BadWindow we were getting while running the
13229 tests), always calculate the offsets when it's a parentless window, not
13230 only when reparented, and translate the window size, since we're getting
13231 the client size of the whole window, excluding entire window.
13232 * Theme.cs: Added BorderSizableSize.
13233 * XplatUIWin32.cs: Fix RECT Height and Width. Don't fake styles here
13234 anymore. Update calls to XplatUI.CalculateWindowRect due to API change.
13235 * Form.cs: Update calls to XplatUI.CalculateWindowRect due to API change.
13236 Fake the window styles here instead of in XplatUIWin32 so that all
13237 back-ends get the same window styles (and it's Form that's deciding when
13238 to use wm, not the Win32 backend anyways)
13239 * Hwnd.cs: Completely reworked GetWindowRectangle and GetClientRectangle -
13240 they are now passed a CreateParams and they only use Style and ExStyle
13241 to determine the rectangles (they should now work just like
13242 Win32AdjustWindowRectEx - though quite a few special cases are probably
13243 missing). They should also be 100% complimentary (i.e. GetWindowRectangle
13244 (GetClientRectangle (rect)) == rect), and all numbers (borders, menu
13245 sizes) are taken from the current theme. Added a GetBorders helper
13246 function that will return the borders for any given CreateParams
13247 (including captions and menus), and GetBorderSize that returns the given
13249 * XplatUIOSX.cs: Update calls to CalculateWindowRect and
13250 Hwnd.GetClientRectangle.
13252 2007-03-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
13254 * Form.cs: Don't layout mdi children on MdiParent creation, the initial
13255 layout of the mdi children is handled by CreateParams. Fixes
13258 2007-03-29 Everaldo Canuto <everaldo@simios.org>
13260 * MenuAPI.cs: Make OnMouseDown returns a boolean to identify if event is
13263 * Form.cs: When active tracker mouse down is not processed, send event
13264 back to control inside mouse position. [Fixes #81227]
13266 2007-03-29 Jonathan Pobst <monkey@jpobst.com>
13268 * ComboBox.cs: Override the ComboListBox's ActivateOnShow property and
13269 remove WS_VISIBLE from CreateParams to prevent combobox dropdowns from
13270 stealing focus from the active form on Windows. (Control will be made
13271 visible in ShowWindow.)
13273 2007-03-29 Mike Kestner <mkestner@novell.com>
13275 * ImageList.cs : add internal Changed event.
13276 * ListView.cs : hook up to StateImageList.Changed to perform
13277 invalidations when the the state icon list changes. [Fixes #81191]
13279 2007-03-29 Jonathan Pobst <monkey@jpobst.com>
13281 * ToolTip.cs: Override the ToolTipWindow's ActivateOnShow property
13282 to prevent tooltips from stealing focus from the active form on Windows.
13284 2007-03-29 Everaldo Canuto <everaldo@simios.org>
13286 * ThemeWin32Classic.cs: Small stetic fixes in notifyicon balloon.
13288 * ThemeClearlooks.cs: Implement notifyicon balloon for clearlooks theme.
13290 2007-03-29 Everaldo Canuto <everaldo@simios.org>
13292 * NotifyIcon.cs, ThemeWin32Classic.cs: Icon support added to notifyicon
13295 2007-03-29 Jackson Harper <jackson@ximian.com>
13297 * TextControl.cs: When deleting text from non multiline textboxes,
13298 we need to update the entire document, because line offsets will
13301 2007-03-29 Everaldo Canuto <everaldo@simios.org>
13303 * XplatUIX11.cs, ThemeWin32Classic.cs, Theme.cs: ShowBalloonWindow method
13304 added to theme, now we can create themes that uses diferent notify engines
13305 like notification-daemon from galago project or growl for Mac OS.
13307 2007-03-28 Everaldo Canuto <everaldo@simios.org>
13309 * NotifyIcon.cs: Prevent Balloon to show in task bar.
13311 2007-03-28 Everaldo Canuto <everaldo@simios.org>
13313 * XplatUIX11.cs: Prevent system to open more than one balloon.
13315 * NotifyIcon.cs: Prevent system to open more than one balloon and remove
13316 some compiler warning messages.
13318 2007-03-28 Everaldo Canuto <everaldo@simios.org>
13322 * XplatUIX11.cs: Implement SystrayBalloon for X11 systems.
13324 * ThemeWin32Classic.cs, Theme.cs: DrawBalloonWindow and BalloonWindowRect
13325 implemented, this methods is used by NotifyIcon.BalloonWindow class.
13327 * NotifyIcon.cs: BalloonWindow class added to support Balloon in X11
13330 2007-03-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13332 * ListViewItem.cs: Forgot to make Invalidate internal.
13334 2007-03-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13336 * ListView.cs: Add a InvalidateSelection method to
13337 invalidate methods which are currently selected, and call
13338 it when setting FullRowSelect and HideSelection, instead of
13341 2007-03-28 Chris Toshok <toshok@ximian.com>
13343 * XplatUIX11.cs (UnmapWindow): reindent this block.
13345 * DataGrid.cs (UpdateSelectionAfterCursorMove): we need to update
13346 the selection_start if we're moving the selection (that is, not
13347 extending it). Fixes bug #80461.
13349 2007-03-28 Jonathan Pobst <monkey@jpobst.com>
13351 * ProgressBar.cs: Make the default MarqueeAnimationSpeed = 100.
13352 * ToolStripPanel.cs: Fix RowMargin, Renderer, RenderMode, and
13353 create private ControlCollection.
13355 2007-03-28 Jonathan Pobst <monkey@jpobst.com>
13357 * Control.cs: We need to call OnVisibleChanged for our implicit
13358 children as well as our normal children. Fixes scrollbars in
13359 comboboxes not showing up.
13361 2007-03-28 Jonathan Pobst <monkey@jpobst.com>
13363 * Control.cs, Form.cs: Anywhere we call CreateHandle, we need to do
13364 the check for IsHandleCreated first. The check in CreateHandle is not
13365 good enough because CreateHandle can be overriden, and the override
13366 should not be called if the handle is already created.
13368 2007-03-28 Jonathan Pobst <monkey@jpobst.com>
13370 * ToolStrip.cs: Remove MonoTODO for tooltips.
13371 * ToolStripComboBox.cs: Fix MonoTODO for DropDownHeight and events.
13372 * ToolStripContainer.cs: Add custom ControlCollection class.
13373 * ToolStripContentPanel.cs: Fix Renderer setting to match MS behavior.
13374 * ToolStripDropDown.cs: Add some missing properties/methods.
13375 * ToolStripDropDownMenu.cs: Override OnLayout and SetDisplayedItems.
13376 * ToolStripItem.cs: Remove MonoTODO for tooltips.
13377 * ToolStripManager.cs: Add IsShortcutDefined.
13378 * ToolStripOverflow.cs: Override LayoutEngine.
13379 * ToolStripProgressBar.cs: Add MarqueeAnimationSpeed.
13380 * ToolStripSeparator.cs: Add ImageKey.
13382 2007-03-28 Jackson Harper <jackson@ximian.com>
13384 * TextControl.cs: If a char delete removes a line ending, we need
13385 to update the ending style.
13386 - Make sure the line ending calcs get called.
13388 2007-03-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
13390 * XplatUIX11.cs: CreateWindow: Remove old default form location code,
13391 it was making the new code not work. Fixed a typo in the new code
13392 as well. Fixes #79826.
13394 2007-03-27 Everaldo Canuto <everaldo@simios.org>
13397 - NIF_STATE and NIF_INFO added to NotifyIconFlags.
13398 - NOTIFYICONDATA properties sizes fixed, szTip is 128, not 64.
13399 - SystrayBalloon method implemented.
13400 [Add support for notifyicon balloon on win32, #79149]
13402 2007-03-27 Mike Kestner <mkestner@novell.com>
13404 * ThemeWin32Classic.cs : update StateImageList selection to mirror
13405 the ms behavior when only one image is added to the list.
13408 2007-03-27 Jackson Harper <jackson@ximian.com>
13410 * TextControl.cs: Improvements to non multiline line ending
13413 2007-03-27 Everaldo Canuto <everaldo@simios.org>
13415 * XplatUIX11.cs: Fix the time which tooltip is opened for NotifyIcon.
13417 2007-03-27 Everaldo Canuto <everaldo@simios.org>
13420 - Balloon message handling added.
13421 - Call XplatUI.SystrayBalloon in ShowBalloonTip.
13423 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
13424 XplatUIOSX.cs, XplatUIX11-new.cs: ShowBalloonTip method renamed
13425 to SystrayBalloon to me like other Systray method, also a
13426 handle parameter added.
13428 2007-03-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13430 * ListView.cs: Show scrollbars even when items.Count == 0
13431 but the columns Width is bigger than the ListView.Width.
13432 Also, when columns.Count == 0 set layout_wd and layout_ht
13433 to the ClientRectangle values, so we don't show any scrollbar
13436 2007-03-27 Everaldo Canuto <everaldo@simios.org>
13438 * XplatUIStructs.cs: Balloon (NIN_BALLOON*) constants added.
13440 2007-03-27 Jackson Harper <jackson@ximian.com>
13442 * RichTextBox.cs: The RTF library decodes the text properly for us
13445 2007-03-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13447 * ListView.cs: Display HeaderControl even when columns.Count == 0.
13448 * ThemeWin32Classic.cs: Use SystemBrushes.Control to draw the
13449 ListView header (HeaderControl), instead of Control.BackColor.
13451 2007-03-27 Jonathan Pobst <monkey@jpobst.com>
13453 * Control.cs: Call OnVisibleChanged in SetVisibleCore for non-forms.
13454 Fixes tab control issues where controls would not show up because they
13455 never received their OnVisibleChanged call.
13457 2007-03-27 Everaldo Canuto <everaldo@simios.org>
13459 * NotifyIcon.cs: Balloon events added (BalloonTipClicked, BalloonTipClosed,
13462 2007-03-27 Jonathan Pobst <monkey@jpobst.com>
13464 * Control.cs: We won't get a WM_SHOWWINDOW when we create a window that
13465 is maximized or minimized, so move CreateControl to Control.OnVisibleChanged.
13466 * Form.cs: After we set the form visible, send a fake WM_SHOWWINDOW if we
13467 are max or min. Remove WS_VISIBLE from CreateParams unless we are recreating
13468 the handle. Fix WindowState by using the internal variable until we are
13469 sure that we've been shown.
13470 * XplatUIX11.cs: Do not generate a WM_SHOWWINDOW message if new form is
13474 2007-03-27 Rolf Bjarne Kvinge <RKvinge@novell.com>
13476 * XplatUIX11.cs: Windows without WS_CAPTION can still get decorations
13477 (at least borders). Fixes #79386 on Linux (with a small difference
13478 in behaviour: when trying to resize a caption-less window metacity
13479 shows the sysmenu. Resizing is still possible though).
13480 * XplatUIWin32.cs: When setting window styles send request an extra
13481 WM_NCCALCSIZE when it's a form without title (due to no text and no
13482 caption), since Win32 seems to calculate it wrong the first time we
13483 get the message, though the second time things work as they should.
13484 * Form.cs: Reorder a few statements in ChangingParent, otherwise the
13485 newly reparented window might show up unparented. Update
13486 CreateParams to exclude WS_DLGFRAME if ControlBox is false and
13487 there's no title text. Fixes #79386.
13489 2007-03-27 Mike Kestner <mkestner@novell.com>
13491 * ListBox.cs : don't perform invalidations if the handle hasn't been
13492 created. [Fixes #80753]
13494 2007-03-27 Mike Kestner <mkestner@novell.com>
13496 * ListBox.cs : don't adjust top item when SelectedIndex is set to -1.
13499 2007-03-26 Everaldo Canuto <everaldo@simios.org>
13501 * XplatUIWin32.cs: Complete NOTIFYICONDATA structure, additional fields
13502 needed to implement Balloon.
13504 2007-03-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13506 * ListViewItem.cs: In the constructors that take
13507 an array of strings, don't use ListViewSubItemCollection.AddRange
13508 method to add items, since we need to have a different behaviour (in
13509 the constructors we add an item for each null string, opposed to
13510 the behaviour of AddRange, which adds nothing).
13512 2007-03-26 Andreia Gaita <avidigal@novell.com>
13514 * NumericUpDown.cs: Fix broken 1.1 api for ParseEditText
13516 2007-03-26 Jackson Harper <jackson@ximian.com>
13518 * TextControl.cs: Draw and measure line endings when in non
13520 - When searching the text, count the end of the last line as a
13523 2007-03-26 Jackson Harper <jackson@ximian.com>
13525 * RichTextBox.cs: The selection_start and selection_end don't
13526 really track the correct tags for the selection. So we'll manually
13527 compute the correct tag here.
13529 2007-03-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
13531 * ProgressBar.cs, ThemeWin32Classic.cs: Implemented drawing of Marquee
13532 and Continuous styles. Fixes #79469.
13534 2007-03-26 Jonathan Pobst <monkey@jpobst.com>
13536 * ToolStrip.cs: Implement Tooltips.
13537 * ToolStripItem.cs: Create internal method for determining tooltip.
13539 2007-03-26 Jonathan Pobst <monkey@jpobst.com>
13541 * PropertyGrid.cs: Hide a EditorBrowsable attribute from 1.1 API.
13543 2007-03-26 Everaldo Canuto <everaldo@simios.org>
13545 * NotifyIcon.cs: On disposing verify if icon is visible and hide it,
13546 it prevents a problem thak keeps icon visible after application
13549 2007-03-26 Everaldo Canuto <everaldo@simios.org>
13551 * NotifyIcon.cs: Balloon properties and methods created.
13553 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
13554 XplatUIOSX.cs, XplatUIX11-new.cs: Implement ShowBalloonTip method.
13556 2007-03-25 Jonathan Pobst <monkey@jpobst.com>
13558 * ToolStripComboBox.cs: Default the ComboBox's FlatStyle to Popup.
13560 2007-03-24 Jonathan Pobst <monkey@jpobst.com>
13562 * Control.cs: Make SetBoundsCore match MS better. The BoundsSpecified
13563 parameter indicates which aspects were explicit/user-set.
13564 * ComboBox.cs, ListBox.cs: Call SetBoundsCore correctly. (no 0 parameters).
13566 2007-03-24 Jonathan Pobst <monkey@jpobst.com>
13568 * ProgressBar.cs: Throw AOORE instead of AE for property Value (2.0).
13569 * ScrollBar.cs: Throw AOORE instead of AE for properties LargeChange,
13570 SmallChange, and Value (2.0).
13571 * Timer.cs: Throw AOORE instead of AE for property Interval (2.0).
13573 2007-03-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13575 * ListView.cs: Always set item_control.Width in LayoutDetails
13576 if View is Details. Setting it later in CalculateScrollBars
13577 in a not-so-corner scenario (the sum of columns width is
13578 not bigger than the ListView width when handle is created, and then
13579 that sum gets bigger by increasing the width of the columns)
13580 causes a very weird recursion path (which shouldn't be happening,
13581 since header_control sets it in CalculateScrollBars too). This bug
13582 appeared after Chris' fixes for handle created issues, so probably
13583 it's related to some handle-creation time.
13585 2007-03-23 Chris Toshok <toshok@ximian.com>
13587 * DataGrid.cs (GetVisibleRowCount): increase the row count in the
13588 case where there's an add row, just so we don't end up in a case
13589 where it's not displayed (this happens when the row is partially
13590 obscured). Fixes bug #79574.
13592 2007-03-23 Jackson Harper <jackson@ximian.com>
13596 * RichTextBox.cs: Preserve line endings in the lines text buffer,
13597 also added an enum that represents the line ending type.
13599 2007-03-23 Andreia Gaita <avidigal@novell.com>
13601 * NumericUpDown.cs: Fix logic so Text and Value properties are not
13602 messed with in every method call, but only from DownButton,
13603 UpButton, UpdateEditText() and ValidateText. Fixes #80346
13605 2007-03-23 Chris Toshok <toshok@ximian.com>
13607 * DataGridTextBoxColumn.cs (GetFormattedValue): don't try to
13608 format objects if the format spec is "". Fixes bug #80889.
13610 2007-03-22 Miguel de Icaza <miguel@novell.com>
13612 * ToolStripPanel.cs (Join): added stubs to build PDN3
13614 * Control.cs (AutoScrollOffset): Add.
13616 * SystemInformation.cs (MouseWheelScrollDelta): Expose this
13617 property, its only implemented for Win32, on X11 it defaults to
13618 some hardcoded value.
13620 * ToolStripItem.cs (AllowDrop): Add property
13622 2007-03-22 Mike Kestner <mkestner@novell.com>
13624 * ListView.cs : in FullRowSelect Details mode, only enable box
13625 selection if the user clicks over the "item" column outside of the
13626 text area. Mmmmm, compatibility. [Fixes #80374 subpart 7]
13628 2007-03-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
13630 * Control.cs: ChangeParent: Call Form's ChangingParent even if the
13631 handle is not created yet.
13632 * Form.cs: Select: Don't call CreateHandle if the handle is already
13633 created, avoids a stack overflow on Windows when we are recreating
13635 * ScrollableControl.cs: Set the correct z-order for the scrollbars when
13636 they are made visible, and override AfterTopMostControl to keep
13637 them on top when other controls are brought to front.
13638 CalculateCanvas: Scrollbars are only visible if auto_scroll is true
13639 or force_*scroll_visible is true (old implementation always shows
13640 scrollbars when needed, no matter what auto_scroll was set to).
13641 * InternalWindowManager.cs: UpdateWindowDecorations: Add a
13642 IsHandleCreated check.
13644 2007-03-22 Andreia Gaita <avidigal@novell.com>
13646 * DataGrid.cs: Implement Column and Row auto sizing when double-clicking on
13647 row or col separator.
13648 * DataGridTextBoxColumn.cs: Implement GetPreferredHeight and GetPreferredSize
13650 2007-03-22 Everaldo Canuto <everaldo@simios.org>
13652 * MenuAPI.cs: Remove unneeded check for grab_control in UpdateCursor.
13654 2007-03-22 Everaldo Canuto <everaldo@simios.org>
13656 * MenuAPI.cs: UpdateCursor method added, it is calling in OnMotion to update
13657 cursor for child controls. In ShowWindow and HideWindow now call SetCursor
13658 every time. Fixes #80410.
13660 2007-03-22 Chris Toshok <toshok@ximian.com>
13662 * BindingSource.cs (AddNew): partially implement.
13664 remove a couple of NotImplementedException's
13665 to get bug #81148 closed.
13667 2007-03-22 Everaldo Canuto <everaldo@simios.org>
13672 - UpdateCursor method added to update the screen cursor.
13673 - GetAvailableCursor method added to return cursor for enabled tree,
13674 it searches for cursor on control and it's parent's for enabled control.
13675 - Call UpdateCursor method on setter of Cursor property.
13676 - On setter of Enabled call UpdateCursor when it is false, we need to
13677 change cursor to normal (or to this parent cursor) because cursor
13678 setting theres no effect to disabled controls.
13679 - Some minor source changes to follow the coding style guidelines.
13681 * XplatUIX11.cs: In MotionNotify only dispatch SET_CURSOR event for enabled
13684 2007-03-22 Chris Toshok <toshok@ximian.com>
13686 * XplatUIX11.cs: ignore the BadPicture errors cairo+render
13689 2007-03-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
13691 * XplatUIX11.cs: Implement default locations for forms.
13692 * Form.cs: Completely rework startup location for forms. Fixes #79964.
13693 * Hwnd.cs: Add previous_child_startup_location (to track the current
13694 startup location for any child forms of the current form) and
13695 previous_main_startup_location (to track the startup location for
13696 the current toplevel form).
13698 2007-03-21 Jonathan Pobst <monkey@jpobst.com>
13700 * Control.cs: Don't trigger a layout if an implicit control is added
13701 that isn't visible. Also, don't notify the owner when an implicit control
13702 is added. (Owners shouldn't even know about their implicit controls.)
13704 2007-03-21 Jonathan Pobst <monkey@jpobst.com>
13706 * ScrollableControl.cs: Add implicit controls with AddRangeImplicit
13707 to save some re-layouts.
13709 2007-03-21 Everaldo Canuto <everaldo@simios.org>
13711 * MenuAPI.cs: In ProcessKeys returns false when key is not processed.
13714 2007-03-21 Jonathan Pobst <monkey@jpobst.com>
13716 * FlowLayoutSettings.cs, ToolStrip.cs, ToolStripPanel.cs,
13717 ToolStripPanelRow.cs: Lazy instantiate the LayoutEngine.
13719 2007-03-21 Mike Kestner <mkestner@novell.com>
13721 * ListView.cs : disable selection update for non-left button clicks
13722 with mods and over selected items. [Fixes #80524]
13724 2007-03-20 Jackson Harper <jackson@ximian.com>
13727 * TextBoxBase.cs: Allow different types of line endings. \r, \r\n,
13730 2007-03-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
13732 * ComboBox.cs: PreferredHeight seems to be ItemHeight + 6, but there is
13733 very probably a more complicated calculation there. Update the
13734 textbox' ForeColor and BackColor when the ComboBox' colors are
13735 changed. Change the border change in LayoutComboBox to only affect
13736 the textbox, not all the calculations there. Seems to fix most of
13739 2007-03-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
13741 * ComboBox.cs: Handle Home and End keys as well as all combinations of
13742 modifiers + navigation keys as input keys, enables advanced text
13743 selection in the combobox (like Shift+Left Arrow for instance).
13744 ComboTextBox now overrides Focused and returns whatever
13745 ComboBox.Focused returns, since it really should be focused
13746 whenever the ComboBox is. Fixes #80795. Also make the border around
13747 the text box one pixel bigger, as mentioned in #79436.
13749 2007-03-20 Jackson Harper <jackson@ximian.com>
13751 * TreeView.cs: Don't offset the images, this was causing some
13752 artifacts when expanding/collapsing with images that were the
13753 exact height of the treenode.
13755 2007-03-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
13757 * TrackBar.cs: Query the theme for the correct value when the mouse
13758 moves and the thumb is pressed.
13759 * Theme.cs: Added TrackBarValueFromMousePosition
13760 * ThemeWin32Classic.cs: Reworked TrackBar drawing. Earlier
13761 implementation was updating the trackbar value when drawing, now
13762 the drawing methods only draw. Fixes #80900. Refactored the
13763 calculations out to TrackBarValueFromMousePosition and
13764 GetTrackBarDrawingInfo, so that TrackBar can get the correct value
13765 according to the mouse position whenever it wants to. Changed the
13766 light coloured pen when drawing the thumb from ControlLight to
13767 ControlLightLight, because the ControlLight is the same colour as
13768 the background so the 3D effect is lost.
13770 2007-03-20 Everaldo Canuto <everaldo@simios.org>
13772 * Form.cs: In ShowDialog uses MainForm as transient form when no form is
13773 defined. Fixes #80784.
13775 2007-03-20 Marek Habersack <mhabersack@novell.com>
13777 * ContextMenuStrip.cs: align with the change introduced in
13780 2007-03-20 Everaldo Canuto <everaldo@simios.org>
13782 * XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs,
13783 XplatUI.cs, Form.cs, ToolTip.cs: Remove unneeded parameter owner
13786 2007-03-19 Chris Toshok <toshok@ximian.com>
13788 * Control.cs (WmPaint): don't make use of the Handle property
13789 after an event is emitted, as the user could have closed the
13790 form/destroyed the control. Store the Handle in a local variable
13791 and make use of that. Fixes bug #80768.
13793 2007-03-20 Everaldo Canuto <everaldo@simios.org>
13795 * XplatUIX11.cs: Set _NET_WM_STATE_ABOVE on SetTopmost, it fixes Topmost
13796 behavior in X11 environments.
13798 2007-03-20 Everaldo Canuto <everaldo@simios.org>
13800 * Form.cs: Call SetTopmost in CreateHandle when window is topmost, its
13801 because on setter of topmost we dont call SetTopmost when handle is not
13804 2007-03-20 Jackson Harper <jackson@ximian.com>
13806 * TextControl.cs: Need to use SelectionLength () not
13807 selection_length, since that var is reset to -1.
13808 - Draw the caret when we don't have focus.
13809 * TextBox.cs: The selectall actually doesn't occur until the first
13811 * TextBoxBase.cs: Need to update the caret position after a
13814 2007-03-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13816 * ListView.cs: Enable scrolling when using Tile view.
13818 2007-03-20 Everaldo Canuto <everaldo@simios.org>
13822 * XplatUIDriver.cs: Abstract SetOwner method created.
13824 * XplatUIOSX.cs: Override SetOwner to prevent compilation errors method
13825 must be implemented and was masked as todo.
13827 * XplatUIWin32.cs: SetOwner implemented using SetWindowLong with
13830 * XplatUIX11.cs: SetOwner implemented using same code from SetTopmost but
13831 cheking for null owner to remove transient. The SetTopmost will be change
13834 * Form.cs: In set_Owner and CreateHandle uses new SetOwner instead of
13835 SetTopmost. Now owned forms will work properly in win32 and X11.
13837 2007-03-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
13839 * MdiWindowManager.cs: Update function name.
13840 * Form.cs: After closing a form MdiParent is always null.
13841 * MdiClient.cs: Rename CloseChildForm to ChildFormClosed to explain
13842 better what it should do: necessary book-keeping when the form is
13843 closed, it should not close the form itself.
13845 2007-03-19 Andreia Gaita <avidigal@novell.com>
13847 * ListViewItem.cs: Fix back and fore color. The subitems only
13848 use their own colors if they are set, otherwise use the listview's
13849 colors. Don't set default colors on constructor for subitem.
13852 2007-03-19 Mike Kestner <mkestner@novell.com>
13854 * ListView.cs : make box selection for Details views with
13855 FullRowSelect conform to MS behavior when clicking in the "item"
13856 column and clicking outside the defined columns.
13857 [Fixes case 5-6 of #80374]
13859 2007-03-19 Chris Toshok <toshok@ximian.com>
13861 * ScrollableControl.cs: create the controls from within the ctor,
13862 but don't actually add them until our handle is created. this
13863 fixes a NRE possibility jpobst found (if you override OnLayout in
13864 a subclass, it's called before your ctor). Also, add a
13865 IsHandleCreated guard to UpdateSizeGripVisibility as well.
13867 2007-03-19 Jackson Harper <jackson@ximian.com>
13869 * TextBox.cs: Reduce the amount of invalidation we do.
13870 * TextBoxBase.cs: Make shortcuts enabled true by default, at least
13871 some of them are true by default on MS.
13872 - Add some functions to reduce the amount of invalidates we do.
13873 * TextControl.cs: Less invalidation.
13875 2007-03-19 Chris Toshok <toshok@ximian.com>
13877 [ Fixes #81773, and *seems* to fix #81553 as well ]
13879 * XplatUIX11.cs: remove the assignment of hwnd.zombie = true from
13880 AccumulateDestroyedHandles. We need to do it *after* we send
13881 WM_DESTROY, as the user's code can access Control.Handle in
13882 OnHandleDestroyed, and this shouldn't cause a recreation. Also,
13883 move the WM_DESTROY/zombie handling to before the call to
13884 XDestroyWindow. For some reason without this ordering
13885 FormTest.RecreateHandle hangs. This ordering is semantically
13886 equivalent, however, as XDestroyWindow is async anyway.
13888 2007-03-19 Gert Driesen <drieseng@users.sourceforge.net>
13890 * RichTextBox.cs: Reset backcolor_set after setting default.
13892 2007-03-19 Chris Toshok <toshok@ximian.com>
13894 * ScrollableControl.cs: the scroll position should not effect the
13895 canvas size. commit patch from georgegiolfan@yahoo.com, which
13896 fixes some really bizarre behavior on resizing. Fixes bug #80778.
13898 2007-03-19 Chris Toshok <toshok@ximian.com>
13900 * ScrollableControl.cs: clean this up a bit. create the
13901 scrollbars in the ctor and just show/hide them as needed. Also,
13902 make hscroll_visible/vscroll_visible internal to Recalculate, and
13903 just use hscrollbar.VisibleInternal/vscrollbar.VisibleInternal
13904 everywhere else. This seems to fix the scrollbars appearing
13905 beneath the content for me (i have *no* idea why that is,
13908 2007-03-19 Jonathan Pobst <monkey@jpobst.com>
13910 * ToolStrip.cs: Don't call DoAutoSize when we change Dock. Also, remove
13911 some redundacy for stuff in Anchor and Dock that base will take care of.
13914 2007-03-19 Mike Kestner <mkestner@novell.com>
13916 * ListView.cs : make box selection for Details views without
13917 FullRowSelect dependent on the text bounds, not item bounds.
13918 * ListViewItem.cs : add an internal property to obtain the TextBounds
13919 in Details view. [Fixes case 1-4 of #80374]
13921 2007-03-19 Andreia Gaita <avidigal@novell.com>
13923 * PaintEventArgs.cs (Dispose): Only dispose of graphics object if
13924 we're < 2.0. #78448 && #80316
13926 2007-03-19 Jonathan Pobst <monkey@jpobst.com>
13928 * FontDialog.cs: Don't crash when we switch to a new font that doesn't
13929 have the same style available as the previously selected one. Also,
13930 support FixedPitchOnly property. [Fixes bugs #80918, #80947]
13932 2007-03-19 Jackson Harper <jackson@ximian.com>
13934 * TextControl.cs: Add an alignment property that all new lines
13936 - Make sure to use the align shift when calculating the line's X
13938 * TextBox.cs: Set the alignment on the document as well as on all
13939 the document lines.
13941 2007-03-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
13943 * Control.cs: ControlCollection.Add: Remove a couple of duplicated casts and
13944 throw if setting the parent of an mdichild that already has an
13945 mdiparent. Update signature for 2.0 profile. ProductName: If there's no
13946 AssemblyProductAttribute in the assembly, use the type's namespace (as
13947 MS seems to do). CreateControl: don't create the handle if the control
13948 is not visible (according to MS behaviour and spec). SetTopLevel: Only
13949 create handle if the control is not a form. Change FocusInternal to
13950 virtual so that it can be overriden by Form.
13951 * TextBox.cs: Update call to FocusInternal.
13952 * Form.cs: Always create the handle when calling Focus on a MdiChild. The
13953 form is not a toplevel form when it's a mdi child, so update is_toplevel
13954 accordingly. ShowIcon/TransparencyKey: avoid creating the handle if it
13955 hasn't been created. Show (IWin32Window): Don't allow this overload for
13956 toplevel windows. CenterToParent/CenterToScreen/Select: create the
13957 handle as MS does. SetVisibleCore: if called on a MdiChild and the
13958 parent isn't visible yet, save the visibility and restore it when the
13959 parent is made visible.
13960 * ScrollableControl.cs: Refactor out scrollbar visibility code to separate
13961 methods, since the visibility of the scrollbars can be changed from
13962 several places, not only from AutoScroll.
13965 2007-03-19 Jackson Harper <jackson@ximian.com>
13967 * RichTextBox.cs: Enable shortcuts by default.
13968 * TextBoxBase.cs: Add conditional shortcuts.
13970 2007-03-19 Everaldo Canuto <everaldo@simios.org>
13972 * MenuItem.cs: Dont call OnDrawItem when OwnerDraw is false (#81182).
13974 2007-03-19 Chris Toshok <toshok@ximian.com>
13976 [ Fixes bug #80604]
13978 * XplatUIX11.cs (WaitForHwndMessage): change this to actually
13979 swallow the message we're waiting on, instead of delivering it, as
13980 this is only used for the WM_SHOWWINDOW raised from
13981 MapWindow/UnmapWindow, and the message needs to be generated
13982 (MapWindow, UnmapWindow): generate the WM_SHOWWINDOW message
13983 before doing the Map/Unmap. Also make sure that the Hwnd is still
13984 alive after the message has been handled.
13986 *before* the window is shown.
13988 * Control.cs (CreateControl): guard a few more things inside the
13989 if (!is_created) block, as we might end up being called again -
13991 (WmShowWindow): call CreateControl if we're showing the control.
13993 2007-03-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
13995 * Control.cs: Fix 2.0 signature for Invoke. Support invoking on
13996 controls without a handle if they have any parent with a handle. In
13997 Dispose add a check whether the handle is created or not before
13998 calling BeginInvoke, this removes the need of the extra disposing
13999 parameter (which was bogus anyway since it didn't prevent the
14000 invoke from happening, it only skipped the check for an existing
14001 handle, meaning that the invoke would call on an inexistent
14004 2007-03-19 Everaldo Canuto <everaldo@simios.org>
14006 * MessageBox.cs: Remove WS_POPUP from CreateParams style, with it form
14007 appears in taskbar.
14009 2007-03-18 Everaldo Canuto <everaldo@simios.org>
14012 - Fixed a problem that dont show help button for messages with 3 buttons.
14013 - Refactory button size and position calculations, now dont use fixed
14014 values, also fixed button sizes (#80043) and form's border space.
14015 - AddButton method created, now all other AddButton methods call this one.
14016 - Some other source code cosmetic changes.
14018 2007-03-18 Jackson Harper <jackson@ximian.com>
14020 * RichTextBox.cs: Don't do this all fonts must match check if
14021 there is only one char selected.
14023 2007-03-18 Jackson Harper <jackson@ximian.com>
14025 * TreeView.cs: ScrollWindow works properly now, so we don't need
14026 to screw around with the scroll area. This fixes some artifacts
14027 when expanding and collapsing.
14029 2007-03-18 Jackson Harper <jackson@ximian.com>
14031 * TextBoxBase.cs: Allow updating the selection position when the
14032 cursor is outside the textarea, but we have a capture.
14033 * TextControl.cs: A special case for when the cursor is outside
14034 the bounds of the TB.
14036 2007-03-18 Jackson Harper <jackson@ximian.com>
14038 * TextBoxBase.cs: Remove image pasting code for now. There is no
14039 way to get an image on the clipboard right now anyways.
14041 * RichTextBox.cs: Use the new RTF Picture class for pictures.
14043 2007-03-18 Everaldo Canuto <everaldo@simios.org>
14046 - Set window properties in constructor intead of on CreateParams.
14047 - Remove topmost from Window ExStyle.
14048 - Set ShowInTaskbar to false.
14049 - Set form border to FixedDialog.
14050 - Some cosmetic changes and remove unneeded comments.
14051 - It fixes itens 2,3 and 4 of bug #80043.
14053 2007-03-18 Gert Driesen <drieseng@users.sourceforge.net>
14055 * TextBoxBase.cs: In setter for ReadOnly, only chance BackColor if
14056 none was explicitly set. Fixes part of bug #79949.
14058 2007-03-16 George Giolfan <georgegiolfan@yahoo.com>
14060 * ToolStripComboBox.cs: Add AutoComplete*.
14062 2007-03-16 George Giolfan <georgegiolfan@yahoo.com>
14064 * ToolStripComboBox.cs: Add FlatStyle.
14066 2007-03-16 Jonathan Pobst <monkey@jpobst.com>
14068 * ToolStrip.cs, ToolStripProfessionalRenderer.cs,
14069 ToolStripSplitStackLayout.cs: Implement some basic vertical toolbar support.
14071 2007-03-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
14073 * ButtonBase.cs, ToolStrip.cs, SendKeys.cs, TextRenderer.cs,
14074 CheckBox.cs, RadioButton.cs, BindingSource.cs,
14075 DataGridColumnStyle.cs: Remove warnings.
14077 2007-03-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
14079 * Menu.cs: MergeMenu: Check menu argument for null before looping over
14081 * MdiWindowManager.cs: Add IsVisiblePending to track the pending
14082 visibility of mdi child forms. FormSizeChangedHandler: update the
14083 maximized size if size has changed while maximized.
14084 * MdiClient.cs: SizeScrollbars/ArrangeWindows/ActivateChild: Avoid
14085 creating the handle.
14086 * InternalWindowManager.cs: UpdateBorderStyle/FormSizeChangedHandler:
14087 avoid creating the handle if not created.
14088 * XplatUI.cs: Update debug output.
14089 * XplatUIStructs.cs: Added ToString's for a couple of structs.
14091 2007-03-16 Jonathan Pobst <monkey@jpobst.com>
14093 * ContainerControl.cs: Give ToolStripManager the opportunity to handle
14095 * ToolStripDownItem.cs, ToolStripItem.cs, ToolStripItemCollection.cs,
14096 ToolStripItemEventType.cs, ToolStripManager.cs, ToolStripMenuItem.cs:
14097 Implement keyboard shortcuts.
14099 2007-03-15 Everaldo Canuto <everaldo@simios.org>
14101 * CommonDialog.cs: Set StartPosition to CenterScreen on form's constructor.
14102 Fixes #79560 and #80200, it also fix problem in FileDialog, SaveDialog,
14103 ColorDialog and all derived classes.
14105 2007-03-15 Everaldo Canuto <everaldo@simios.org>
14107 [ Fixes bug #79828 ]
14110 - Rename ToolBarButtonInfor to ToolBarItem.
14111 - Add all layout and calculation stuff gtom ToolBarButton to ToolBarItem.
14112 - Maintain an array of ToolBarItem, used instead of ToolBarButton
14113 collection to be able add same button more than one time on a toolbar.
14114 - Refactory all properties and methods to use ToolBarItem.
14116 * ToolBarButton.cs:
14117 - Remove all propeties and methods that is now in ToolBarItem.
14118 - Rectangle propery now gets the rectangle from first ToolBarItem to
14119 mimic win32 behavior.
14120 - Size calculation and layout methods also removed.
14122 * ThemeWin32Classic.cs: Change all ToolBar drawing methods to receive
14123 ToolBarItem instead of ToolBarButton to right drawing buttons when
14124 same button/separator was added more than one time to ToolBar.
14126 * ThemeNice.cs: Same as above.
14128 2007-03-15 Andreia Gaita <avidigal@novell.com>
14130 * XplatUIX11.cs: Fire extra MouseMove events right after
14131 MouseDown and MouseUp, emulating win32's <censored> behaviour
14132 for apps that rely on it.
14134 2007-03-15 Jackson Harper <jackson@ximian.com>
14137 * TextBoxBase.cs: On MS, a fixed single border is not in NC area,
14138 it is drawn on the controls client window and there is no NC
14140 - Set the background color to gray on 2.0 when we are readonly.
14142 2007-03-15 Chris Toshok <toshok@ximian.com>
14144 [ Fixes bug #81144 ]
14146 * XplatUIX11.cs: implement VirtualScreen independently of
14147 WorkingArea, by querying the _NET_DESKTOP_GEOMETRY root window
14150 2007-03-15 Chris Toshok <toshok@ximian.com>
14152 * Hwnd.cs: add an internal field for the cached_window_state.
14154 * XplatUIX11.cs: cache the window state, invalidating the cache
14155 (and thus re-querying the X server) only when we see an update to
14156 the _NET_WM_STATE property.
14158 2007-03-15 Chris Toshok <toshok@ximian.com>
14160 * BindingSource.cs: get a lot of the unit tests working.
14162 2007-03-15 Jonathan Pobst <monkey@jpobst.com>
14164 * Control.cs: Modify UpdateStyles to store distances when bounds >=
14165 0 instead of just bounds > 0. [Fixes bug #80912]
14167 2007-03-15 Jonathan Pobst <monkey@jpobst.com>
14169 * ToolStrip.cs, ToolStripItem.cs: Implement several new properties
14172 2007-03-15 Ivan N. Zlatev <contact@i-nz.net>
14174 * ComboBox.cs, Control.cs, XplatUIStructs.cs, XplatUIX11GTK.cs,
14175 XplatUIX11.cs, XplatUIWin32.cs, InternalWindowManager.cs,
14176 XplatUIOSX.cs, TextControl.cs: Replaces all uses of the custom
14177 WM_MOUSE_LEAVE with the system WM_MOUSELEAVE message.
14179 2007-03-15 Chris Toshok <toshok@ximian.com>
14183 * Control.cs: add Ivan's fix for 81101, with a slight modification
14184 - you can set control.Target to null.
14186 2007-03-14 Jonathan Pobst <monkey@jpobst.com>
14188 * ToolStripItem.cs: If our OwnerItem is null, we can't use
14189 HideDropDown, use Hide instead to prevent an NRE.
14192 2007-03-14 Jackson Harper <jackson@ximian.com>
14194 * TextBoxBase.cs: Mess with the creation stuff a little. We need
14195 to calculate the document before the handle is created, in some
14196 cases. (Actually just one case).
14198 2007-03-14 Jackson Harper <jackson@ximian.com>
14200 * TextBoxBase.cs: Need to display the caret after letting the base
14201 wndproc handle the focus methods, because the caret display
14202 methods check the focus state.
14203 - Try to display the caret after updating it's position with SelectWord.
14204 - Don't need to do an immediate update on this recalc, since there
14205 will be an invalidate anyways.
14207 2007-03-14 Jackson Harper <jackson@ximian.com>
14209 * TreeView.cs: Some workarounds so that we can match event order a
14212 2007-03-14 Gert Driesen <drieseng@users.sourceforge.net>
14214 * ErrorProvider.cs: Invoke default ctor from 2.0-only ctor. Fixes bug
14215 #80803. Avoid NullReferenceException when Control does not have
14216 parent. Fixed different blinkstyle issues. Only subscribe to Tick
14217 event a single time. Only draw error icon when control is created and
14218 visible. Fixes failing unit tests.
14220 2007-03-14 Andreia Gaita <avidigal@novell.com>
14222 * TabControl.cs: Add support for 2.0 Deselecting, Deselected and
14223 Selecting events. Fire Leave and Enter events when changing tabs.
14225 2007-03-14 George Giolfan <georgegiolfan@yahoo.com>
14227 * TreeView.cs: Add TreeViewNodeSorter.
14228 * TreeNodeCollection.cs: Add sorter parameter to Sort method.
14230 2007-03-14 Chris Toshok <toshok@ximian.com>
14232 * Form.cs: go ahead and remove the RecreateHandles that jpobst
14233 removed earlier and I had him add back it. It turns out metacity
14234 *does* in fact handle the MOTIF_WM_HINTS property changing, it
14235 just doesn't redraw the window titlebar until you resize the
14236 window. This also means we aren't recreating the entire window
14237 hierarchy on X when you change this property. And it looks better
14240 2007-03-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
14243 * ListView.cs: Collecting selection information
14244 is now done in SelectedIndexCollection rather than in
14245 SelectedListViewItemCollection. This is done so we can
14246 have the selection information code in one single place
14247 (virtual mode selection information entirely depends on
14248 SelectedIndexCollection).
14250 2007-03-13 Miguel de Icaza <miguel@novell.com>
14252 * ErrorProvider.cs: Add stubs for ISupportInitialize
14254 2007-03-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
14256 * ListViewItem.cs: Trigger the ItemCheck and ItemChecked events
14257 in the right order with the right values, from the Checked property,
14258 just as MS does (instead of triggering them from ListView).
14260 * ListView.cs: Make OnItemCheck and OnItemChecked internal.
14262 2007-03-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
14264 * ListView.cs: Implement ItemChecked 2.0 event. Also cast to
14265 the correct handler in OnItemCheck method (ItemCheckEventHandler
14266 instead of EventHandler). This used to throw an InvalidCastException.
14268 2007-03-13 Jackson Harper <jackson@ximian.com>
14270 * TextBoxBase.cs: Calculate the document before the handle is
14271 created, so there isn't an extra invalidate called.
14273 2007-03-13 Jonathan Pobst <monkey@jpobst.com>
14275 * Form.cs: Don't set owner in ShowDialog until we are sure
14276 that we aren't going to throw an exception. [Fixes bug #80773]
14278 2007-03-12 George Giolfan <georgegiolfan@yahoo.com>
14280 * TreeView.cs: Make it compile.
14282 2007-03-12 Jonathan Pobst <monkey@jpobst.com>
14284 * Control.cs: Another place we don't call SizeFromClientSize.
14285 * Form.cs: Another place we don't call SizeFromClientSize.
14288 2007-03-12 Jackson Harper <jackson@ximian.com>
14290 * TreeView.cs: Basically emulating some strangness here with
14291 exanding nodes and setting node positions when windows aren't
14293 - Also attempting to walk the node tree less than previously, and
14294 just use visible order calculations for determining offsets.
14295 - oops made scrolling backwards.
14296 * TreeNode.cs: We need to start nodes with a zero visible order,
14297 because the order calcs are based on the first nodes order.
14299 2007-03-12 Jonathan Pobst <monkey@jpobst.com>
14301 * Form.cs: Don't exit the program if RecreateHandle is called on
14304 2007-03-12 Chris Toshok <toshok@ximian.com>
14306 * XEventQueue.cs: remove the use of PostQuitState.
14308 * XplatUIX11.cs: remove the use of PostQuitState. If we get a
14309 WM_QUIT message in GetMessage, return false (and if we're in the
14310 nested WaitForHwndMessage, repost the WM_QUIT message).
14312 2007-03-12 Jonathan Pobst <monkey@jpobst.com>
14314 * Form.cs: Don't call RecreateHandle when we change the MinimizeBox
14315 or the MaximizeBox properties. [Part of bug #80640]
14317 2007-03-12 Everaldo Canuto <everaldo@simios.org>
14319 * LinkLabel.cs: When calculate pieces make LinkArea empty if theres
14322 2007-03-12 Jonathan Pobst <monkey@jpobst.com>
14324 * ToolStripItem.cs: Fix some tests I broke by checking Visible
14325 instead of visible.
14327 2007-03-12 Gert Driesen <drieseng@users.sourceforge.net>
14329 * FileDialog.cs: Use text of File name combobox to determine what
14330 files the user selected. Added tokenizer to parse the file names.
14333 2007-03-12 Jonathan Pobst <monkey@jpobst.com>
14335 * Control.cs: We can't call SizeFromClientSize in the constructor,
14336 but we still need to do the same work, so make an internal version.
14339 2007-03-12 Jackson Harper <jackson@ximian.com>
14343 * OpenTreeNodeEnumerator: Match MS better for IsVisible and
14346 2007-03-12 Jackson Harper <jackson@ximian.com>
14348 * TextBoxBase.cs: Now that the handles are being created a little
14349 later, we need to make sure that the document is recalculated when
14350 the handle is created.
14352 2007-03-11 Everaldo Canuto <everaldo@simios.org>
14354 * Theme.cs: GetLinkFont abstract method added.
14357 - Remove CalcTrimRectangle, no longer needed.
14358 - Factor also remove, position issues must be fixed in libgdiplus.
14359 - Move GetPieceColor to ThemeWin32Classic.cs as it is theme related.
14360 - GetPieceFont, CreateLinkFont and link_font removed, theme must be
14361 care about font used to draw links.
14362 - Set TabStop to true when control is "Selectable", control is selectable
14363 when have one or more links. Fixes #80501 (test case is also added).
14364 - Set the LinkArea values after links change, LinkArea values must be
14365 based in first link position and size, a test case was created.
14366 - Fix ControlStyles.Selectable value, now is based on LinkArea value,
14367 the attribute must be true LinkArea.Length > 0. The same was applied to
14370 * ThemeWin32Classic.cs:
14371 - LinkLabelGetPieceColor and LinkLabelGetPieceFont created and used
14373 - Use CPDrawStringDisabled to draw disabled text instead of hard code
14375 - Draw focus rectangle for every parts focused, including parts that
14376 is on another line, its because regions returns various rectangles
14377 and not only one. Needed to mimic W32 look.
14378 - Uses Graphics.Clip to delimite region painted, it mean that now
14379 complete text is passed to DrawString, with this we solve layout
14380 issues without create another text renderer.
14381 - Uses Region.Intersect to fix some flickers problems, now only needed
14382 parts will redrawed.
14383 - This changes fixes #79614 and some other unreported issues, on Linux
14384 some layout problems still remain, the problem is under
14385 MeasureCharacterRanges but it is an libgdiplus bug.
14387 2007-03-10 Gert Driesen <drieseng@users.sourceforge.net>
14389 * TextBox.cs: Set for foreground color.
14390 * TextBoxBase.cs: Remove Invalidate when setting BackColor, since
14391 this is already done in Control.
14393 2007-03-10 Jackson Harper <jackson@ximian.com>
14395 * TextBox.cs: Set the background color, but reset the
14396 backcolor_set flag which is just for the user setting the
14399 2007-03-09 Chris Toshok <toshok@ximian.com>
14401 * Control.cs: really remove the call to XplatUI.SetVisible from
14402 CreateHandle(), like I said I did when I merged the branch.
14404 * BindingSource.cs: implement some more of this stuff.
14406 2007-03-09 Jackson Harper <jackson@ximian.com>
14408 * TextBox.cs: Don't explicitly set our background colors.
14410 * TextBoxBase.cs: Draw readonly text.
14411 - Need to invalidate when backcolor or readonly are changed.
14413 2007-03-09 Jackson Harper <jackson@ximian.com>
14415 * TextBoxBase.cs: Don't set the forecolor until the handle is
14417 - Do not raise OnPaint, and removed some old debug code.
14419 2007-03-09 George Giolfan <georgegiolfan@yahoo.com>
14421 * ScrollableControl.cs: Fix mouse wheel scrolling.
14423 2007-03-09 Jonathan Pobst <monkey@jpobst.com>
14425 * Control.cs: Wire up MouseDoubleClick event.
14427 2007-03-09 Jonathan Pobst <monkey@jpobst.com>
14429 * ToolStrip.cs: Rework AutoSize to adjust height when docked to the
14431 * ToolStripItem.cs: Make Image drawing take ImageScaling into account.
14432 * ToolStripItemCollection.cs: Don't call owner.PerformLayout when a new
14433 item is added. This logic was moved to ToolStrip.OnItemAdded.
14436 2007-03-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
14438 * ListVieItem.cs: SetIndex is only valid for 2.0 profile by now.
14440 2007-03-08 Jackson Harper <jackson@ximian.com>
14442 * TreeView.cs: Show the correct image for selected node (this used
14443 to work, not sure how the code got deleted). Also implemented 2.0 feature
14446 2007-03-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
14449 * ListViewItem.cs: Cache index in items when retrieving them
14452 2007-03-08 Jonathan Pobst <monkey@jpobst.com>
14454 * ToolStripItem.cs: Don't return the explicit_size if we are using
14455 AutoSize. Fixes invalidation issue when user has explicitly set a
14456 size and has AutoSize = true.
14458 2007-03-08 Jonathan Pobst <monkey@jpobst.com>
14460 * XplatUIX11.cs: Hardcode FrameBorderSize value temporarily to fix MWF.
14462 2007-03-07 Pedro MartĂnez JuliĂ¡ <pedromj@gmail.com>
14464 * DataGridView.cs: Remove event handler from DataView when a
14465 DataTable is used as DataSource.
14467 2007-03-08 Jonathan Pobst <monkey@jpobst.com>
14469 * Control.cs: Create internal setter for client_size to allow it to be
14470 set without triggering resizing code.
14471 * Form.cs: Calculate client_size in constructor, only change client_size
14472 in FormBorderStyle property if Handle has been created.
14473 [Fixes #80574, #80791]
14475 2007-03-08 George Giolfan <georgegiolfan@yahoo.com>
14477 * SystemInformation.cs: Add TerminalServerSession.
14479 2007-03-07 Jonathan Pobst <monkey@jpobst.com>
14481 * TreeViewDrawMode.cs: Make internal for 1.1 to allow for consolidated
14484 2007-03-07 Jonathan Pobst <monkey@jpobst.com>
14486 * XplatUIWin32.cs: The no_activate stuff was forcing us to create a
14487 Handle before we were supposed to. Now checks ActivateOnShow property
14489 * Control.cs: Add internal ActivateOnShow property.
14490 * ComboBox.cs, Form.cs, MenuAPI.cs, ToolStripDropDown.cs: Return false
14491 for ActivateOnShow.
14492 * Hwnd.cs Remove no longer needed no_activate field.
14494 2007-03-07 Jackson Harper <jackson@ximian.com>
14496 * TreeView.cs: Implement owner draw tree nodes. And a couple more
14498 * DrawTreeNodeEventHandler.cs: Add
14499 * DrawTreeNodeEventArgs.cs: Correct default value.
14501 2007-03-07 Chris Toshok <toshok@ximian.com>
14503 * XplatUIWin32.cs: create InternalWndProc so that we're guaranteed
14504 to be called before NativeWindow.WndProc. Put the HwndCreating
14505 magic there to hook up our Hwnd's to handles.
14507 2007-03-07 Gert Driesen <drieseng@users.sourceforge.net>
14509 * DataGridView.cs: Comment out debug code.
14511 2007-03-07 Chris Toshok <toshok@ximian.com>
14513 [merge -r72718:73765 from mwf-handle-branch, and include 2 changes
14514 to make the rest of the world happy]
14516 * Control.cs (CreateHandle): there's no need to call
14517 XplatUI.SetVisible here, it's effectively done by
14518 XplatUI.CreateWindow on X now, and always was on windows.
14520 * XplatUIX11.cs (WaitForHwndMessage): only use the PostQuitState
14521 shortcircuit out of the loop if we have a message loop running on
14524 [Changelog from merge]
14526 2007-03-05 Chris Toshok <toshok@ximian.com>
14528 * Control.cs (AccessibilityNotifyClients): turns out in 1.1 this
14529 causes handle creation.
14531 2007-02-28 Chris Toshok <toshok@ximian.com>
14533 * ApplicationContext.cs: Add a flag to make sure we only raise the
14534 ThreadExit event once (ExitThreadCore can be indirectly called
14535 from a few places.) I don't like the additional flag, but it
14536 makes the event ordering/count correct.
14538 * Application.cs (MWFThread.LoopCount): don't use an enumerator
14539 without locking the collection. An enumerator doesn't give us any
14540 protection from modification anyway. Lock the thread hash and
14541 replace the complicated enumerator loop with a foreach.
14542 (Application.CloseForms): make internal so it can be called from
14543 ApplicationContext. This should probably be moved to MWFThread.
14544 (Application.ExitThread): don't call MWFThread.Current.Exit()
14545 here. just call XplatUI.PostQuitMessage. We'll exit the thread
14546 when the runloop exits (in response to WM_QUIT.)
14547 (Application.RunLoop): add a comment (and check) for
14548 context.MainForm being null after setting context.MainForm.Visible
14549 = true. This is because you're perfectly free to dispose of a
14550 form in VisibilityChanged. Chalk this up to another case where we
14551 need to synchronously generate WM_ACTIVATE from Control.Show.
14552 Also, add handling for WM_QUIT here so we'll exit the loop.
14554 * XplatUIX11.cs: clean up MapWindow and UnmapWindow a bit. The
14555 fact that we don't wait if we're only unmapping the whole_window
14556 makes me a bit nervous, but it doesn't seem to cause any problems
14559 also, add a comment about the stupid, broken and wrong resetting
14560 of PostQuitState to false in GetMessage().
14562 In PostQuitMessage, we need to add a WM_QUIT message to the
14563 thread's queue. We use the FosterParent to get the right
14566 Lastly, in SetVisible, we need to unmap both windows, since the
14567 waiting only happens when we're unmapping the client window. So
14568 now, the *only* time we unmap just the whole_window is in the hack
14569 for resizing a control to 0,0.
14571 2007-02-21 Chris Toshok <toshok@ximian.com>
14573 * Application.cs (CloseForms): rewrite this so that we don't
14574 modify the list while we're traversing it.
14576 2007-02-20 Chris Toshok <toshok@ximian.com>
14578 * ListBox.cs (.ctor): move the Control.AddImplicits here instead
14579 of OnHandleCreated.
14580 (HorizontalScrollEvent): only call XplatUI.ScrollWindow if the
14581 handle is created. otherwise we'll create it here.
14582 (VerticalScrollEvent): same here.
14584 * Application.cs (CloseForms): call Form.Dispose, don't post
14587 * Form.cs (WndProc): we don't need to use CLOSE_INTERNAL
14588 here. Application should Dispose() of the Form's.
14590 * XplatUIX11.cs (WaitForHwndMessage): break out of the loop on
14591 WM_DESTROY as well.
14592 (MapWindow,UnmapWindow): only actually do the waiting for
14593 SHOWWINDOW if the control we're dealing with is a Form.
14594 (CreateWindow): if the control isn't a form, SendMessage
14595 WM_SHOWWINDOW here (if the WS_VISIBLE style is set).
14597 * Control.cs (SetVisibleCore): always use is_visible here, not
14598 value. If we use value, we can end up re-setting something
14599 visible if, for instance, you do Control.Hide() in a delegate
14600 attached to VisibleChanged as we do in FormTest.ShowDialogTest.
14602 2007-02-20 Chris Toshok <toshok@ximian.com>
14604 * XplatUIX11.cs (WaitForHwndMessage): we need to loop until we get
14605 the message we need. PeekMessage returning false should not be a
14606 condition under which we exit the loop.
14608 2007-02-15 Chris Toshok <toshok@ximian.com>
14610 * Control.cs (Refresh): only refresh if we've got a handle and are
14612 (CreateAccessibilityInstance): CreateControl() here.
14613 (UpdateChildrenZOrder): complicate the code loop even more by
14614 taking into account controls that haven't had their handle
14615 created, and those that aren't visible. But on the flip side,
14616 simplify the code by splitting it into two loops. one which
14617 builds up the list of child controls we're interested in, and the
14618 other that sets the z order of those children.
14620 2007-02-14 Chris Toshok <toshok@ximian.com>
14622 * Control.cs: Control.AccessibilityObject causes the control to be
14623 created, not just the handle.
14625 2007-02-14 Chris Toshok <toshok@ximian.com>
14627 * Control.cs: rework UpdateChildrenZOrder to correctly handle the
14628 problem on X where a window might have its handle created (and be
14629 visible) while the window is unmapped. calling XConfigureWindow
14630 on an unmapped window is bad, and generates X errors.
14632 2007-02-13 Chris Toshok <toshok@ximian.com>
14634 * Control.cs (CreateHandle): don't loop over our children setting
14635 their parent here. do it when in WndProc when we're shown.
14636 (UpdateChildrenZOrder): make this internal so we can call it from
14638 (WndProc): for WM_SHOWWINDOW, reparent the child control after
14639 creating its handle. Also, remove the calls to PerformLayout from
14640 here. they're done in ScrollableControl.OnVisibleChanged. Also,
14641 OnVisibleChanged only seems to be called directly here for the
14642 toplevel control. It's propagated down the window hierarchy by
14643 calls to child.OnParentVisibleChanged.
14644 (OnVisibleChanged): don't do layout here - it's done (oddly
14645 enough, according to a glance at stack traces on ms.net..) in
14648 * ScrollableControl.cs (OnVisibleChanged): make sure we update the
14649 z order of our children before calling PerformLayout.
14651 2007-02-12 Chris Toshok <toshok@ximian.com>
14653 [big change, fixes #80020]
14655 * AccessibleObject.cs: we need to make owner internal again to fix
14656 some of ControlAccessibleObject.
14658 * Control.cs: lots of changes here. add support for WM_CREATE,
14659 for which we generate OnHandleCreated. Remove the OnHandleCreated
14660 call from CreateHandle. Also add support for WM_SHOWWINDOW where
14661 we create child controls. leave the MonoTODO's for the
14662 accessibility calls, but fix the exceptions so the tests pass.
14664 Add the InvalidOperationExceptions to Invoke methods, and remove a
14665 couple of InvokeInternal methods we aren't using.
14667 Also, add a couple of CreateHandle calls in places where we know
14668 the handles are being created but our code doesn't reference
14671 Make SetVisibleCore call OnVisibleChange if the handle isn't
14672 created. If the handle is created, we rely on XplatUI.SetVisible
14673 generating the event synchronously.
14675 Lastly, make sure we don't use this.Handle inside CreateHandle,
14676 because we can call back into client (and that code can dispose of
14679 * XplatUIStructs.cs: misc/cleanup.
14681 * XplatUIX11.cs: Map/Unmap X events correspond to WM_SHOWWINDOW,
14682 although we don't populate the wParam properly.
14683 (CreateWindow): generate WM_CREATE.
14684 (MapWindow,UnmapWindow): make these calls synchronous, at great
14685 performance expense (particularly in the unmap case), to match
14688 * Form.cs (.ctor): remove the call to UpdateBounds. we don't need
14690 (set_MdiParent): don't recreate the handle unless it's been
14693 * MdiClient.cs (OnResize): don't InvalidateNC Parent.Handle unless
14696 * NativeWindow.cs: this is probably the weirdest part of the
14697 patch. We need a way to link up the window being created to the
14698 WM_CREATE message. Since we can only be creating one window at a
14699 time on a given thread, we keep track of a per-thread reference so
14700 we can dispatch it properly. We also need to keep track of the
14701 Hwnd currently being created so that the win32 backend doesn't
14704 * XplatUIWin32.cs: a similar change to the one we made in
14707 2007-03-07 Jonathan Pobst <monkey@jpobst.com>
14709 * ToolStripItem.cs: Make CalculatePreferredSize virtual.
14710 * ToolStripMenuItem.cs: Modify CalculatePreferredSize and OnPaint
14711 to draw the menu shortcut string.
14713 2007-03-07 Jackson Harper <jackson@ximian.com>
14715 * TreeNode.cs: Add the 2.0 collapse method.
14717 2007-03-07 Pedro MartĂnez JuliĂ¡ <pedromj@gmail.com>
14719 * DataGridViewColumn.cs: Fix HeaderText behaviour (Bug #80746).
14721 2007-03-07 Pedro MartĂnez JuliĂ¡ <pedromj@gmail.com>
14723 * DataGridView.cs: Change DataSource will clear column and row
14724 lists. Call Invalidate() to reflect DataSource change.
14726 2007-03-07 Pedro MartĂnez JuliĂ¡ <pedromj@gmail.com>
14728 * DataGridView.cs: Add rows when DataSource is System.Data.DataView
14729 and a new row is added to it.
14731 2007-03-07 Pedro MartĂnez JuliĂ¡ <pedromj@gmail.com>
14733 * DataGridView.cs: Add columns when DataSource is en empty list but
14734 is a System.Data.DataView (from a System.Data.DataTable).
14736 2007-03-06 Andreia Gaita <avidigal@novell.com>
14738 * Label.cs: Implement AutoEllipsis (2.0)
14740 2007-03-06 Jackson Harper <jackson@ximian.com>
14742 * TreeView.cs: Implement 2.0 TopNode setter property.
14743 - Use a local var instead of the skipped_nodes field for computing
14744 how many nodes to skip. Otherwise we won't scroll because the
14745 valuechanged handler checks if skipped_nodes is equal to the new
14747 - Implement 2.0 Sort method.
14748 - Add useless 2.0 DoubleBuffer property
14749 - Implement 2.0 LineColors property. Lets you change the color of
14750 the lines in the tree. Terribly useful for creating non cohesive
14752 - Implement 2.0 image key feature.
14754 2007-03-06 Jackson Harper <jackson@ximian.com>
14756 * TreeView.cs: We can't get the bounds of the nodes before raising
14757 the AfterSelect event, because that event could change the node's
14758 bounds (scrolling, font change, etc).
14760 2007-03-06 Rolf Bjarne Kvinge <RKvinge@novell.com>
14762 * XplatUIWin32.cs: When faking styles don't remove the WS_VISIBLE flag.
14763 * Form.cs: Don't recreate handle when creating FormWindowManager, just
14764 update window styles. In CreateParams us VisibleInternal instead of
14765 VIsible to get the actual visible flag set for this form.
14766 * FormWindowManager.cs: Activate the form whenever the mouse clicks on
14767 the nc area. Fixes #81042. Also fix HandleTitleBarDoubleClick to
14768 handle the case when the form is already maximized, in which case
14769 it should be restored. Fixes #81043.
14771 2007-03-06 Rolf Bjarne Kvinge <RKvinge@novell.com>
14773 * XplatUIX11.cs: Tool windows still get wm styles. Fixes toolwindows showing up with double decorations.
14775 2007-03-05 Jackson Harper <jackson@ximian.com>
14777 * TreeViewHitTestInfo.cs: implement.
14779 2007-03-05 Jackson Harper <jackson@ximian.com>
14781 * InternalWindowManager.cs: class status fix.
14783 2007-03-05 Rolf Bjarne Kvinge <RKvinge@novell.com>
14785 * InternalWindowManager.cs: All windows that have a parent
14786 are confined to their parent when they're being moved.
14789 2007-03-04 Gert Driesen <drieseng@users.sourceforge.net>
14791 * SystemInformation.cs: Marked KeyboardDelay and KeyboardSpeed public
14792 on 2.0 profile. Fixes bug #81018. Small code formatting fixes.
14794 2007-03-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
14796 * ThemeWin32Classic.cs: ManagedWindowSetButtonLocations: Make all
14797 buttons invisible before deciding which ones should be visible
14798 (fixes minimize/maximize buttons showing up in toolwindows). Remove
14799 an unused variable.
14800 * InternalWindowManager.cs: Remove warning.
14802 2007-03-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
14804 * ListView.cs: Add a check in ListViewItemCollection.RemoveAt
14805 to throw an InvalidOperationException is virtual mode is being used.
14807 2007-03-02 Jonathan Pobst <monkey@jpobst.com>
14809 * SplitContainer.cs, SplitterPanel.cs, StatusStrip.cs, TableLayoutPanel.cs,
14810 ToolStrip.cs, ToolStripContainer.cs, ToolStripContentPanel.cs,
14811 ToolStripControlHost.cs, ToolStripDropDownItems.cs, ToolStripItem.cs,
14812 ToolStripMenuItem.cs, ToolStripOverflowButton.cs, ToolStripPanel.cs,
14813 ToolStripPanelRow.cs, ToolStripProfessionalRenderer.cs, ToolStripSplitButton.cs,
14814 ToolStripStatusLabel.cs, ToolStripTextBox.cs: Corcompare work.
14816 2007-03-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
14818 * XplatUI.cs: Fixed returning driver.KeyboardSpeed instead of
14819 driver.KeyboardDelay from XplatUI.KeyboardDelay
14820 * XplatUIW in32.cs: Implemented KeyboardSpeed/KeyboardDelay properties
14821 (patch by Sergey Volk)
14823 2007-03-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
14825 * ToolWindowManager.cs: Added, contains logic for
14827 * CreateParams.cs: Add a few helper methods and an
14828 internal variable to know which control the CreateParams belongs
14830 * Control.cs: Call Form.ChangingParent when the
14831 parent is about to be changed.
14832 * XplatUIX11.cs: DeriveStyles (): Set
14833 caption_height for all windows that have captions and are children.
14834 Update to use ToolWindowManager instead of InternalWindowManager
14836 * XplatUIWin32.cs: Set fake window styles for all
14837 windows that have window managers.
14838 * MdiWindowManager.cs: Added MaximizedTitleButtons (buttons are
14839 now duplicated for mdi windows when they are
14840 maximized, first for the buttons the window itself has, then for
14841 the buttons that appear in the menu bar. Makes things a little
14842 easier). Updated UpdateWindowDecorations, SetWindowState and the
14843 mouse eventhandlers accordingly.
14844 * Form.cs: Add ChangingParent (), contains the
14845 logic of what should happen when the parent changes. In MdiParent
14846 don't set things that ChangingParent () is doing. When handling
14847 WM_CLOSE, we can close the form if there are any other modal forms
14848 and the current form is a descendent of the modal form.
14849 * InternalWindowManager.cs: A lot of refactoring,
14850 the title buttons are now extracted to a separate container class
14851 that takes care of all button code (clicks, tooltips, etc). Moved
14852 Iconic|Maximized|Normal Bounds properties to this class from
14853 MdiWindowManager, so that the window state logic can succeed for
14854 other than mdi wm's. Implemented general window state change logic.
14855 Moved CreateButtons to ThemeWin32Classic, since the theme might
14856 override which buttons are available when as well as the exact
14858 * FormWindowManager.cs: Added, contains logic for
14860 * ThemeWin32Classic.cs: ManagedWindowSetButtonLocations now decides
14861 which buttons go where (and if they are at all visible).
14862 Removed special handling of maximized windows, since they aren't special.
14863 In DrawManagedWindowDecorations don't try to draw the text if it is
14865 * MdiClient.cs: ArrangeIconicWindows: Don't calculate any sizes,
14866 use whatever the wm gives us.
14868 2007-03-02 Jonathan Pobst <monkey@jpobst.com>
14870 * ButtonBase.cs: Add 2.0 properties.
14871 * Button.cs: Override Draw for 2.0.
14872 * Control.cs: Add Entered and Selected properties.
14873 * FlatButtonAppearance.cs, TextFormatFlags.cs, TextImageRelation.cs,
14874 TextRenderer.cs: Make internal for 1.1 to unify drawing code.
14875 * Theme.cs: New abstract functions for drawing Standard, Flat, Popup
14877 * ThemeWin32Classic.cs: Implement layout calculations for 2.0 buttons.
14879 2007-03-01 Jonathan Pobst <monkey@jpobst.com>
14881 * XplatUIWin32.cs: Don't use 2.0 methods in 1.1 code. :/
14883 2007-03-01 Jonathan Pobst <monkey@jpobst.com>
14885 * XplatUIWin32.cs: Register a new class with Windows each time we get
14886 a new ClassStyle. [Fixes bugs #79432, #80817]
14887 * Controls.cs: Set the correct ClassStyle in CreateParams.
14888 * ToolStripDropDown.cs: Don't request an invalid ClassStyle.
14890 2007-03-01 Gert Driesen <drieseng@users.sourceforge.net>
14892 * ListView.cs: Add fireEvent argument to ReorderColumn since the
14893 ColumnReordered event must not be signaled when modifying DisplayIndex
14894 of a ColumnHeader. Added internal ReorderColumns method which takes
14895 care of drawing, and updating the internal DisplayIndex of the
14896 ColumnHeader. Added AddColumn method which is invoked from
14897 ColumnHeaderCollection when adding or inserting columns, and which
14898 ensures that reorder_columns_indices is kept in sync. Avoid redrawing
14899 after adding each ColumnHeader in ColumnHeaderCollection.AddRange.
14900 Recalculated dispay indices after removing a ColumnHeader.
14901 * ColumnHeader.cs: Save DisplayIndex separately from ListView to
14902 match MS. Allows last display index to be returned after ListView
14903 is disposed. Update actual location of ColumnHeader when DisplayIndex
14906 2007-03-01 Everaldo Canuto <everaldo@simios.org>
14908 * LinkLabel.cs: Improve CalcTrimRectangle.
14910 * ThemeWin32Classic.cs: Fix some compilation problem under VS 2003.
14912 2007-02-28 Everaldo Canuto <everaldo@simios.org>
14914 * LinkLabel.cs: Rename CalcMeasurementFactor as CalcTrimRectangle and
14915 get rectangle as a result value.
14917 2007-02-28 Everaldo Canuto <everaldo@simios.org>
14919 * LinkLabel.cs: Theres some diferences between rectangle return from
14920 MeasureCharacterRanges and the area used for DrawString to fix this
14921 CalcMeasurementFactor method was created, it calcules the diferences
14922 to be use later to adjust rectangle in draw operations. Fixes #80473.
14924 * ThemeWin32Classic.cs: Use factor calculated by CalcMeasurementFactor
14925 to adjust draw rectangle.
14927 2007-02-27 Everaldo Canuto <everaldo@simios.org>
14929 * ThemeWin32Classic.cs: In DrawLinkLabel draw focus rectangle before draw
14930 text and some other changes to reduce and optimize source code.
14932 2007-02-27 Jonathan Pobst <monkey@jpobst.com>
14934 * RadioButton.cs: Implement 2.0 event.
14935 * RelatedImageListAttribute.cs: Implement new class.
14937 2007-02-27 Everaldo Canuto <everaldo@simios.org>
14939 * MenuAPI.cs: Change keynav_state before call SelectItem. Fixes #80901.
14941 2007-02-27 Jonathan Pobst <monkey@jpobst.com>
14943 * CheckBox.cs: Implement 2.0 functionality.
14945 2007-02-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
14947 * ListView.cs: Refactor Add and AddRange methods of
14948 ListViewItemCollection, to not update the ListView
14949 everytime an item is added in AddRange. Also move the update
14950 code to a new CollectionChanged method, and call it
14951 from other methods that need it as well (this should also fix some
14952 bugs when Sorting is used).
14954 2007-02-27 Jackson Harper <jackson@ximian.com>
14956 * TextControl.cs: Try to never let the caret stay in a non-text
14958 * TextBoxBase.cs: Update the caret.
14960 2007-02-26 Jonathan Pobst <monkey@jpobst.com>
14962 * XplatUIStructs.cs: Add some convenience methods for POINT structure.
14963 * XplatUIWin32.cs: Add some convenience methods for RECT structure,
14964 delete POINT structure, duplicate of one in XplatUIStructs.
14965 * TextRenderer.cs: Use XplatUIWin32.RECT instead of UXTheme.RECT.
14967 2007-02-26 Gert Driesen <drieseng@users.sourceforge.net>
14969 * ListView.cs: Initialize LabelEditEventArgs after setting Text of
14970 edit box since otherwise the Label would immediately be set (even if
14971 the user did not modify the label). In OnKeyDown set Handled to true
14972 if Return or Escape was pressed. In ColumnHeaderCollection unlink
14973 columns that are to be removed. In ListViewItemCollection unlink items
14974 that are to be removed.
14976 2007-02-24 Jonathan Pobst <monkey@jpobst.com>
14978 * TextRenderer.cs: If we set a GDI clip region, we need to clear
14979 it when we are done. [Fixes bug #80949]
14981 2007-02-23 Jonathan Pobst <monkey@jpobst.com>
14983 * Form.cs: Wrap checking ShowWithoutActivation in a NET_2_0 block.
14985 2007-02-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
14987 * ListView.cs: I forgot to commit the changes for ListView
14988 in my previous patch.
14990 2007-02-23 Jonathan Pobst <monkey@jpobst.com>
14992 * Clipboard.cs: Partially implement an overload of SetDataObject.
14993 * Form.cs: Implement ShowWithoutActivation.
14994 * XPlatUIWin32.cs: Fix for WM_SHOWNOACTIVATE for forms.
14996 2007-02-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
14998 This is a first set of changes to make the Virtual mode works,
14999 by avoiding the retrieval of ListViewItem instances until
15002 * ListView.cs: Store item position in the ListView instead of the
15003 ListViewItem, this way we don't request the Bounds property of
15004 ListViewItem inside the ListView calculations, as well as cache the item
15005 size in item_size field. Store indexes instead of ListViewItem
15006 instances in the matrix used by icon view. Add a ItemMatrixLocation
15007 struct to hold the row and col info of the matrix info.
15009 * ListViewItem.cs: Don't store the location anymore, and only cache
15010 the rectangles for GetBounds. Use the ListView.GetItemLocation
15011 method to retrieve the actual location.
15013 2007-02-23 Jonathan Pobst <monkey@jpobst.com>
15015 * TextRenderer.cs: Add clipping support, thanks to George.
15018 2007-02-23 Gert Driesen <drieseng@users.sourceforge.net>
15020 * ListViewItem.cs: Cancel label edit when item is removed from
15022 * ListView.cs: Move setting of focus to EndEdit. Fire BeforeLabelEdit
15023 event before the edit textbox is displayed. Added CancelEdit method
15024 which is used end to editing while ignoring the value set by the
15025 user. In EndEdit, set focus to ListView to avoid losing focus to
15026 other controls. In ListViewItemCollection.Clear, cancel editing of
15027 any of the items. In Remove, cancel editing of item being removed.
15028 Avoid udplicate code by modifing RemoveAt to invoke Remove.
15030 2007-02-23 Gert Driesen <drieseng@users.sourceforge.net>
15032 * FileDialog.cs: Update FSEntry when move is successful. Fixes
15035 2007-02-23 Everaldo Canuto <everaldo@simios.org>
15037 * MainMenu.cs: Change Draw method to take care about MenuOrigin to be
15038 compatible with non X11 systems. Fixes #80901.
15040 2007-02-23 Gert Driesen <drieseng@users.sourceforge.net>
15042 * ListView.cs: Added bool argument to UpdateMultiSelection to specify
15043 whether the item should be unselected and reselect. We do no want this
15044 when we're starting to edit the label. Do not fire the
15045 SelectedIndexChanged event from ListView when its already been fired
15046 by modifying ListViewItem.Selected. Fixes bug #80943.
15048 2007-02-23 Jonathan Pobst <monkey@jpobst.com>
15050 * TextRenderer.cs: Previos commit logic was backwards.
15052 2007-02-23 Jonathan Pobst <monkey@jpobst.com>
15054 * TextRenderer.cs: Don't add padding on MeasureText if we were
15055 sent the NoPadding flag.
15057 2007-02-23 Everaldo Canuto <everaldo@simios.org>
15059 * ThemeWin32Classic.cs: Invert order of drawing operation with DrawImage
15060 after DrawButton. To prevent image overlaps button borders SetClip and
15061 ResetClip added before and after draw image. Fixes #79129.
15063 2007-02-23 Everaldo Canuto <everaldo@simios.org>
15065 * FolderBrowserDialog.cs: Use ClientSize instead of Size to specify
15066 window size, it fix problem when you run under win32 that theres
15067 Size diferent than ClientSize. Also fix controls size and positions
15068 to mimic Win32. Fixes #80837.
15070 2007-02-22 Everaldo Canuto <everaldo@simios.org>
15072 * Form.cs: Handle WM_NCHITTEST and return HTMENU when point is on
15073 menu area to fix some problems for non X11 systems. Fixes #80613.
15075 2007-02-22 Jackson Harper <jackson@ximian.com>
15077 * TreeNode.cs: When a node is expanded, set its is_expanded flag
15078 even if it doesn't have any children.
15080 2007-02-22 Jackson Harper <jackson@ximian.com>
15082 * TreeView.cs: Calculate the top node 'on the fly', this
15083 eliminates issues where you need to click on the tree before
15084 scrolling it to get the top node computed correctly.
15085 * TreeNodeCollection.cs: We don't need to mess with the top node
15088 2007-02-22 Jackson Harper <jackson@ximian.com>
15090 * DataGridViewRow.cs: Fix typo so height can actually be set.
15091 Patch by Peter Grimm.
15093 2007-02-22 Gert Driesen <drieseng@users.sourceforge.net>
15095 * FileDialog.cs: Fixed support for renaming files and directories.
15096 * ListView.cs: Do not lose focus when edit is canceled. Process
15097 Escape as regular key (to prevent closing of dialogs).
15099 2007-02-22 Gert Driesen <drieseng@users.sourceforge.net>
15101 * ListView.cs: Removed TODO for LabelEdit. Removed extra tabs and
15102 spaces. Changed spaces to tabs. Removed unnecessary init of bools.
15104 2007-02-22 Gert Driesen <drieseng@users.sourceforge.net>
15106 * FileDialog.cs: LabelEditEventArgs.Label now returns null when user
15107 did not modify label.
15108 * ListView.cs: Only set LabelEditEventArgs.Label if user actually
15109 modified the text. Reset Label when user presses Escape in edit mode.
15110 Move focus to ListView after having cancelled or finished editing the
15113 2007-02-21 Gert Driesen <drieseng@users.sourceforge.net>
15115 * ComboBox.cs: Removed unnecessary initializations. Marked items field
15116 private. Clear textbox when Text is set to null and SelectedIndex is
15118 * FileDialog.cs: Removed unnecessary initializations. Removed
15119 workarounds for ComboBox bugs that are now fixed. Modified
15120 DefaultExt, InitialDirectory and Title property to change null to
15121 zero-length string in getters. Avoid directly accessing fields.
15123 2007-02-20 Jackson Harper <jackson@ximian.com>
15125 * TextControl.cs: Remove RecalAlignments call, that was some
15126 debugging leftovers.
15127 - Don't use the line indent when we shouldn't.
15128 * RichTextBox.cs: Add support for paragraph left indents.
15130 2007-02-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
15132 * Control.cs: Fix BeginInvoke signature for 2.0 profile.
15133 Seems like the class status pages doesn't catch params differences.
15135 2007-02-19 Gert Driesen <drieseng@users.sourceforge.net>
15137 * ComboBox.cs: Removed extra tabs. Changes spaces to tabs.
15139 2007-02-19 Gert Driesen <drieseng@users.sourceforge.net>
15141 * ComboBox.cs: Setting Text should have no effect if item text of
15142 selected item exactly matches value. First lookup text using
15143 case-sensitive comparison, and fallback to case-insensitive comparison.
15144 FindString(Exact) returns -1 if search string is null. On 2.0 profile,
15145 allow startIndex to be last index. Changed ArgumentOutOfRangeException
15146 paramname to match MS. Restart from first item if string is not found
15147 after startIndex. Fixed paramname of ArgumentNullException that is
15148 thrown for null value in ObjectCollection.Contains.
15150 2007-02-19 Everaldo Canuto <everaldo@simios.org>
15152 * XplatUIStructs.cs: WM_XXX UISTATE elements uncommented.
15154 2007-02-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
15156 * ListControl.cs: In SelectedValue use value.Equals to compare for
15157 equality instead of ==, otherwise it will fail for strings.
15160 2007-02-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
15162 * ComboBox.cs: Switch the order to ShowSelection and ActivateCaret,
15163 since the caret won't show up unless ShowSelection is true.
15166 2007-02-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
15168 * Application.cs: When disabling all forms but the main form, do not
15169 disable any descendants of the main form (such as mdi children or
15170 other parented forms). Fixes #80822 on Windows.
15171 * Form.cs: If we have a parent, set the WS_CHILD style.
15172 * Control.cs: Update the window styles if the control whose parent has
15173 changed is a form (the WS_CHILD style has to be switched).
15175 2007-02-19 Everaldo Canuto <everaldo@simios.org>
15177 * XplatUIStructs.cs: MsgUIState structure added.
15179 2007-02-18 Gert Driesen <drieseng@users.sourceforge.net>
15181 * FileDialog.cs: Removed need for separate fileName field. On 2.0
15182 profile, do not check filename(s) for illegal character if filename(s)
15183 were set non-interactively but always check on 1.0 profile. Fixed NRE
15184 in DefaultExt and only strip off first leading dot. Improve exception
15185 message when invalid Filter is set. Do not ignore InitialDirectory if
15186 it does no exist. Store specified Title, and if empty use default
15187 title (depending on type of dialog). Added an internal DialogTitle
15188 property for retrieving dialog title. Fixed logic of displayed dir to
15189 more closely match MS. Avoid setting ComboBox.Text to a zero-length
15190 string as its buggy.
15191 * OpenFileDialog.cs: In OpenFile, throw ArgumentNullException if
15192 FileName is a zero-length string (it can never be null). Override
15193 DialogTitle property to set default title of dialog box.
15194 * SaveFileDialog.cs: Override DialogTitle property to set default
15195 title of dialog box.
15197 2007-02-18 Gert Driesen <drieseng@users.sourceforge.net>
15199 * FileDialog.cs: Modify default text of filename and filetype labels
15200 to match that of MS. Reset do_not_call_OnSelectedIndexChanged...
15201 after we've updated the SelectedIndex. Fixes part of bug #80887.
15202 * SaveFileDialog.cs: Set text of filetype label.
15204 2007-02-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
15206 * LabelEditEventArgs.cs: New internal SetLabel method, to set the
15207 label field. Needed by latest Jackson's fixes for ListView.
15209 2007-02-16 Andreia Gaita <avidigal@novell.com>
15211 * PrintPreviewControl/PrintPreviewDialog: Properly dispose of
15212 print preview images.
15214 2007-02-16 Jackson Harper <jackson@ximian.com>
15216 * ListView.cs: Make AfterLabelEdit work correctly.
15217 * FileDialog.cs: After changing the name of the folder, we have to
15218 make sure that it is created, or that we pop up an error because
15221 2007-02-16 Jackson Harper <jackson@ximian.com>
15223 * X11Dnd.cs: Implement aliases on mime handlers, so things like
15224 System.String are mapped to text.
15225 - Handle dataobjects, getting all the possible formats out of them
15226 - We dont need the drag event args before we give feedback. This
15227 allows feedback cursors to be immediate before selections have
15230 2007-02-16 Jackson Harper <jackson@ximian.com>
15232 * TextBoxBase.cs: Modified the method for inserting images to
15233 taking a line and position instead of tag and position.
15234 * RichTextBox.cs: Handle PngBlip data by inserting the png image
15236 * TextControl.cs: Allow images to be inserted as the first tag of
15238 - Fix some off by one issues when we assume the first tag is a
15239 text tag, not an image tag.
15241 2007-02-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
15243 * ListView.cs: Set focus to ListView when ItemControl gets a
15244 WM_RBUTTONDOWN message, to mimic .Net behaviour.
15245 Fixes part of #80467.
15247 2007-02-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
15249 * DateTimePicker.cs: Call RecreateHandle if the Format changes and
15250 validate Text input (if null or empty string reset Value to default
15251 value). Fixes #80830.
15253 2007-02-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
15255 * ListView.cs: Set owner as null for columns and items when
15256 Dispose is invoked. Fixes #80607.
15258 2007-02-14 Jonathan Pobst <monkey@jpobst.com>
15260 * ToolStrip.cs: Allow LayoutStyle.Flow, make sure to call OnOpening when
15261 showing DropDowns, don't show a Grip when doing Flow layout.
15262 [This fixes the toolbox in PDN 2.72.]
15263 * ToolStripItem.cs: Add Anchor property and some internal properties to
15264 reduces needed changes to FlowLayout.
15265 * ToolStripOverflow.cs: Remove unused variable.
15266 * ToolStripSplitStackLayout.cs: If a ToolStripItem isn't visible, don't
15267 use it in the layout calculations.
15269 2007-02-13 Everaldo Canuto <everaldo@simios.org>
15271 * ToolTip.cs: Add HotkeyPrefix.Hide to MeasureString format, it fix an issue
15272 reported in #79640.
15274 * ThemeWin32Classic.cs: Uses format for MeasureString in ToolTipSize to fiz
15277 2007-02-13 Everaldo Canuto <everaldo@simios.org>
15279 * ToolBar.cs, ToolBarButton.cs: Revert and remove HotkeyPrefix from
15280 MeasureString format, it can make button very large in some cases, it is
15281 strange but is what win32 do.
15283 2007-02-13 Everaldo Canuto <everaldo@simios.org>
15285 * ToolBar.cs, ToolBarButton.cs: Uses format in MeasureString to fix string
15288 * ThemeWin32Classic.cs: Set HotkeyPrefix in toolbar text format to fix text
15289 rendering, the value is based on MenuAccessKeysUnderlined.
15291 2007-02-13 Everaldo Canuto <everaldo@simios.org>
15293 * Theme.cs: Change MenuAccessKeysUnderlined to "true" that is value used
15296 * ThemeWin32Classic.cs: Override MenuAccessKeysUnderlined as false.
15298 * ThemeNice.cs, ThemeGtk.cs, ThemeClearlooks.cs: Remove always_draw_hotkeys
15299 and use MenuAccessKeysUnderlined instead.
15301 2007-02-13 Andreia Gaita <avidigal@novell.com>
15303 * ContainerControl.cs: Focus fix for nunit treeview selection bug.
15304 A selected control would not get a Focus call if:
15305 - the default active control of the container is the same as
15306 the one that was selected
15307 - we are switching from one container to another
15308 Under these conditions, the container being selected already has
15309 an active_control, which is the same as the one being activated,
15310 so set_ActiveControl would always return and not send the Focus
15311 call. Fix to check if the currently active control of the container
15312 is actually focused.
15314 2007-02-13 Jonathan Pobst <monkey@jpobst.com>
15316 * StatusStrip.cs: Implement the spring layout.
15317 * ToolStripControlHost.cs: Make sure the hosted control's visibility
15318 always matches the host.
15319 * ToolStripItem.cs: Write a more accurate layout for TextBeforeImage
15320 and TextAfterImage.
15322 2007-02-13 Andreia Gaita <avidigal@novell.com>
15324 * Control.cs: Code reorganization only.
15325 - Reorganize the WndProc cases so that each case has it's own handling method,
15326 to help with the no-line-numbering stack traces.
15327 - Formatting changes (it's vstudio's fault, really :p)
15329 2007-02-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
15331 * MonthCalendar.cs: Switch to using Thread.CurrentCulture instead of
15332 Thread.CurrentUICulture to match DateTimePicker's (and MS)
15335 2007-02-12 Jackson Harper <jackson@ximian.com>
15338 * TextBox.cs: By default we have a non multiline document
15339 - use the multiline property instead of the internal variable
15340 * TextBoxBase.cs: Treat multiline and non multiline the same in
15342 - Use the documents multiline flag instead of tracking it ourself
15343 * TextControl.cs: Attempt at getting multiline to match MS
15344 behavior. Lines now track an offset, which is either their X or Y
15345 offset depending on whether or not we are in multiline mode.
15346 - Update all the methods to understand that lines have an X value.
15347 - Fix crash in Undo::Duplicate when empty lines are deleted.
15349 2007-02-12 Everaldo Canuto <everaldo@simios.org>
15351 * Label.cs: CalcPreferredHeight and CalcPreferredWidth methods removed and
15352 code moved to properties PreferredHeight and PreferredWidth. It solve the
15353 all problems when preferred sizes must be recalculated. Fixes #80801.
15355 2007-02-12 Everaldo Canuto <everaldo@simios.org>
15357 * Label.cs: Fix CalcPreferredHeight for 2.0 that must return only
15358 font height when compatible_text_rendering is false. Partially fix #80801.
15360 2007-02-09 Gert Driesen <drieseng@users.sourceforge.net>
15362 * Form.cs: Fixed typo in exception message. Fixes bug #80779.
15364 2007-02-09 Gert Driesen <drieseng@users.sourceforge.net>
15366 * Form.cs: Improved exception messages in ShowDialog.
15368 2007-02-09 Gert Driesen <drieseng@users.sourceforge.net>
15370 * PrintDialog.cs: On 1.0 profile, throw ArgumentException in RunDialog if
15371 PrinterSettins has not been set. On 2.0 profile, initialize PrinterSettings
15372 if not set. Fixes bug #80764. Avoid accessing current_settings field
15375 2007-02-08 Everaldo Canuto <everaldo@simios.org>
15377 * Theme.cs: An new property MenuAccessKeysUnderlined added with default value
15380 * SystemInformation.cs: An new property MenuAccessKeysUnderlined added, it is
15381 public in 2.0 and for easy maintenance and dont break compatibility it is
15384 2007-02-08 Jonathan Pobst <monkey@jpobst.com>
15386 * ToolStripItem.cs: Implement using images from ImageList.
15388 2007-02-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
15390 * DateTimePicker.cs: Change default date-formatting culture from
15391 CurrentThread.CurrentUICulture to CurrentThread.CurrentCulture,
15392 seems to be the way MS does it.
15394 2007-02-08 Andreia Gaita <avidigal@novell.com>
15396 * PrintPreviewControl.cs: rewrite toolbar code to fix #80725. Correct 6-up image
15397 (the 6 was cut off on the right side)
15399 2007-02-08 Jonathan Pobst <monkey@jpobst.com>
15401 * Form.cs: Tell MenuStrips to close when the form is clicked.
15402 * MenuStrip.cs, ToolStrip.cs, ToolStripControlHost.cs,
15403 ToolStripDropDown.cs, ToolStripDropDownItem.cs, ToolStripItem.cs,
15404 ToolStripItemCollection.cs, ToolStripMenuItem.cs, ToolStripProfessionalRenderer.cs,
15405 ToolStripSplitButton.cs, ToolStripSplitStackLayout.cs: Add
15406 support for Overflow, where items that do not fit are automatically
15407 reparented to a drop down menu.
15408 * ToolStripOverflow.cs, ToolStripOverflowButton.cs: Added.
15409 Also: fixes bug #80747.
15411 2007-02-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
15413 * ComboBox.cs: Remove warning (unused code).
15414 * ScrollableControl.cs: Remove warning for 1.1 profile.
15416 2007-02-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
15418 * Form.cs: Remove a warning.
15420 2007-02-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
15422 * DateTimePicker.cs: Fixed a NRE if CustomFormat was null. Handles the
15423 'g' specifier, not documented anywhere, but seems to always show up
15424 as a single space (might have something to do with the DateTime 'g'
15425 specifier, which is the era format, but since DateTimePicker can't
15426 go earlier than 1753 it wouldn't matter) . Fixed quote handling,
15427 won't crash if the format has an unmatched quote. Now shows
15428 single-character formats correctly. Fixes #80744.
15430 2007-02-08 Jonathan Pobst <monkey@jpobst.com>
15432 * StatusStrip.cs: Stretch property needs to call base.Stretch,
15433 not this.Stretch to fix stack overflow. [Fixes bug #80760]
15435 2007-02-07 Chris Toshok <toshok@ximian.com>
15437 * ThemeWin32Classic.cs (DrawButtonBase): don't clear to the
15438 background color. it overwrites the background image we've
15439 already painted. Fixes #80599.
15441 2007-02-07 Chris Toshok <toshok@ximian.com>
15443 * DataGrid.cs: return immediately from Edit() when there are no
15444 columns. Fixes #80662.
15446 2007-02-07 Chris Toshok <toshok@ximian.com>
15448 * MessageBox.cs: fix #80625. don't always show the Help button in
15449 2.0. use the displayHelpButton parameter to determine if we
15450 should show it. Also, make the internal show_help field private.
15452 2007-02-07 Chris Toshok <toshok@ximian.com>
15454 * Control.cs (SetVisibleCore): check in the proposed patch for
15455 80604, and set is_visible before calling CreateControl.
15457 2007-02-07 Jonathan Pobst <monkey@jpobst.com>
15459 * ListView.cs: UseCompatibleStateImageBehavior setter changed from NIEX to
15460 MonoInternalNote. This is added automagically by VS2005, so let's not crash
15463 2007-02-06 Everaldo Canuto <everaldo@simios.org>
15465 * MenuAPI.cs: hotkey_active internal field added, it is required because
15466 we need to know when hotkeys must be draw, before this change a keystate
15467 Navigating was used but we can have menu in navigating state without
15468 hotkeys. Fixes #80694.
15470 * ThemeWin32Classic.cs: Only draw hot keys when hotkey_active is true.
15472 2007-02-06 Rolf Bjarne Kvinge <RKvinge@novell.com>
15474 * Control.cs: Handle WM_CAPTURECHANGED in 1.1 code as well, and change
15475 corresponding events and methods to be internal for 1.1 profile and
15476 public for 2.0 profile (required by SizeGrip).
15477 * Form.cs: Use SizeGrip as a virtual SizeGrip (and don't add it to the
15478 implicit control list). Don't set the size nor the location of the
15479 SizeGrip anymore as it's not needed.
15480 * SizeGrip.cs: Rewrote large parts, it now supports a virtual mode to
15481 draw directly on the captured control (fixes #80656). Removed
15482 ShowGrip (it wasn't used anywhere), redraw (always true), added
15483 GetDefaultSize and GetDefaultRectangle to calculate defaults.
15484 * ScrollableControl.cs: Make UpdateSIzeGripVisible internal so it can
15485 be called from SizeGrip.
15487 2007-02-06 Rolf Bjarne Kvinge <RKvinge@novell.com>
15489 * Timer.cs: Throw ArgumentException if Interval <= 0.
15491 2007-02-05 Jackson Harper <jackson@ximian.com>
15493 * TreeView.cs: We need to check scrollbar visibility when window
15494 visibility is updated, because non visible trees don't ever add
15496 * Cursor.cs: We want the override cursor to be reset to NULL when
15497 we set current cursor to the default cursor.
15499 2007-02-05 Jackson Harper <jackson@ximian.com>
15501 * TextControl.cs: Don't have crlfs when we are non multiline.
15502 - Consolidate the line position.
15504 2007-02-05 Jackson Harper <jackson@ximian.com>
15506 * X11Keyboard.cs: BACK+CTRL gets a special char code.
15508 2007-02-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
15510 * XplatUIX11.cs: Implemented WM_CAPTURECHANGED support, we're now
15511 handling LeaveNotify->NotifyUngrab in order to send
15512 WM_CAPTURECHANGED. However sometimes the NotifyUngrab arrives late
15513 after calling XUngrabPointer, so we call WindowUngrabbed directly
15514 from UngrabWindow in order to send WM_CAPTURECHANGED immediately.
15515 * Control.cs: Handle WM_CAPTURECHANGED in order to raise
15516 MouseCaptureChanged correctly. Also create handles if changing
15517 Capture (matches MS behaviour).
15519 2007-02-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
15521 * SizeGrip.cs: Make the last change 2.0 only.
15523 2007-02-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
15525 * SizeGrip.cs: If resizing and the capture is lost, revert any size
15526 changes to initial size (fixes #80597).
15528 2007-02-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
15530 * SizeGrip.cs: Use the normal icon for SizeGrip if it is disabled.
15532 2007-02-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
15534 * SizeGrip.cs: Only draw sizegrip if enabled (but always draw
15535 background) and only allow dragging if enabled. This way the
15536 sizegrip can be used to fill the open square that otherwise would
15537 have been shown in the bottom right corner of ScrollableControl
15538 when ScrollableControl is not suppose to support sizing.
15539 * ScrollableControl.cs: Create UpdateSizeGripVisible to decide when the
15540 sizegrip is shown and enabled, and hook up with necessary events.
15542 2007-02-01 Chris Toshok <toshok@ximian.com>
15544 * DataGridTextBoxColumn.cs: clean up the
15545 GetFormattedString/GetColumnValueAtRow combination of functions.
15546 Also fix UpdateUI, and the initial state of
15547 IsInEditOrNavigateMode.
15549 * DataGridTextBox.cs: don't chain up to base.OnMouseWheel - we
15550 aren't supposed to scroll the textbox here, we're supposed to
15551 scroll the datagrid.
15553 2007-02-01 Chris Toshok <toshok@ximian.com>
15555 * ComboBox.cs: use vscrollbar_ctrl.Dock instead of explicitly
15556 setting the position.
15558 2007-02-01 Chris Toshok <toshok@ximian.com>
15560 * DataGrid.cs (OnLeave): we can now do the CancelCurrentEdit thing
15561 here, since the most recent focus fixes keep us from generating
15562 the Leave event when our textbox gets focus.
15563 (Edit): we should be passing null for the column style's
15564 instantText parameter.
15566 2007-02-01 Jonathan Pobst <monkey@jpobst.com>
15568 * ToolStripDropDownItem.cs: Make sure DropDownOpening event is
15569 raised. Fixes menu text/icons not showing up in PDN.
15571 2007-02-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
15573 * Control.cs: Remove code in constructor that makes every
15574 control with WS_CHILD set have initial location -1, -1.
15576 2007-01-31 Jackson Harper <jackson@ximian.com>
15578 * X11Dnd.cs: Take the keyboard on init to reduce coupling with
15580 * XplatUIX11.cs: Give teh keyboard to teh dnd.
15582 2007-01-31 Jackson Harper <jackson@ximian.com>
15584 * X11Dnd.cs: Use IDataObject instead of the DataObject class.
15585 - Remove some debug code.
15587 2007-01-31 Jackson Harper <jackson@ximian.com>
15589 * XplatUIX11.cs: If you set the override cursor during a grab, it
15590 should actually override the grab cursor. This comes into play
15591 when you are setting custom cursors in a DND feedback method.
15593 2007-01-31 Jackson Harper <jackson@ximian.com>
15595 * X11Dnd.cs: Add support for handling the QueryContinue and
15596 GiveFeedback events.
15597 - Cancel drag and drop actions when the escape key is clicked.
15598 * XplatUIX11.cs: Let the dnd subsystem get key events, so that it
15599 can handle the ESCAPE key.
15600 - Allow dnd to swallow BUTTONUP messages if it needs to. This is
15601 done when dnd events are continued after the button is released.
15602 - Add a new helper method so that dnd can translate key events.
15604 2007-01-31 Alexander Olk <alex.olk@googlemail.com>
15606 * FileDialog.cs: Rewrite of Jacksons OnClickCancelButton patch to
15607 make it more obvious what is happening.
15609 2007-01-30 Jackson Harper <jackson@ximian.com>
15611 * XplatUIX11.cs: Don't break when handling button release in drag
15612 and drop operations. We need that BUTTONUP message to get through
15613 so capture is released.
15614 * X11Dnd.cs: We don't need to manually grab the pointer anymore,
15615 this is handled automatically when the mouse is down.
15617 2007-01-30 Jackson Harper <jackson@ximian.com>
15619 * FileDialog.cs: OnClickCancelButton gets called whenever the dialog
15620 is closed, so we need to make sure that we aren't changing the
15621 dialog result when the OK (Open or Save) button has been clicked
15622 and we are closing the window ourselves. Note we don't need to
15623 worry about the cache being written in this case, because it was
15624 already done in the previous FilOk call.
15626 2007-01-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
15628 * DateTimePicker.cs: Remove a warning.
15629 * ComboBox.cs: Remove a couple of warnings.
15631 2007-01-29 Chris Toshok <toshok@ximian.com>
15633 * XplatUIX11.cs: don't crash, and remove the icon if the user has
15634 set one, if SetIcon is passed a null icon.
15636 2007-01-29 Andreia Gaita <avidigal@novell.com>
15638 * TextBox.cs: Redraw when the password characters changes
15639 * TextControl.cs: Check if textbox has a password char and draw
15640 a line of password chars instead of the text in the line. LineTag gets
15641 an extra Draw() method which allows document.Draw to override the text
15642 that will be drawn. Removes 1024 char limitation on length of passworded
15645 2007-01-29 Jackson Harper <jackson@ximian.com>
15647 * TextBoxBase.cs: Deleting sections of text is undoable. Deleting
15648 single chars is not.
15650 2007-01-28 Jonathan Pobst <monkey@jpobst.com>
15652 * TextRenderer.cs: Fix cutting off the bottom of letters like "j" by
15653 one pixel. Fix a StackOverflowException caused by an overload wrongly
15656 2007-01-26 Everaldo Canuto <everaldo@simios.org>
15658 * MenuAPI.cs: Fixed kerboard grab problem when "enter"key is pressed,
15659 also remove ProcessArrowKey and put the code inside ProcessKeys.
15661 2007-01-26 Jonathan Pobst <monkey@jpobst.com>
15663 * PaddingConverter.cs: Added.
15665 2007-01-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
15667 * ThemeWin32Classic.cs: Only draw the text of a StatusBar if
15668 ShowPanels is false (fixes #80600). Only draw up to 127 characters
15669 of text (fixes #80601). For panels clip the text to draw to the
15670 panel (fixes #80603).
15672 2007-01-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
15674 * ComboBox.cs: Fixed implementation of ResetText.
15676 2007-01-25 Jackson Harper <jackson@ximian.com>
15678 * TextControl.cs: For the last char of a line we need to use the
15679 line size, not that chars width, since it won't actually be
15680 computed since the right side of a char is based on the start of
15681 the left side of the next char, and the next char does not exist.
15683 2007-01-25 Chris Toshok <toshok@ximian.com>
15685 * Splitter.cs: fix the new unit tests, and reindent some switch
15688 2007-01-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
15690 * ComboBox.cs: Implemented 2.0 methods and events.
15691 * TextBoxBase.cs: Added OnTextUpdate, so that
15692 ComboBox.ComboTextBox can inform ComboBox of it.
15694 2007-01-25 Jackson Harper <jackson@ximian.com>
15696 * TextControl.cs: Respect ShowSelection when deciding whether or
15697 not to display the caret, this allows comboboxes to have carets
15698 when the combotextbox does not have focus.
15700 2007-01-25 Jackson Harper <jackson@ximian.com>
15702 * TextControl.cs: Add a Suspend/Resume for updating, basically the
15703 same as the Suspend/Resume for recalc, except this will do actual
15705 - New Undo manager, works much like the MS version.
15707 * TextBoxBase.cs: The Cut operation is undoable.
15709 2007-01-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
15711 * TextBoxBase.cs: Don't antialias text. Makes it look way better
15712 on Windows (no difference on Linux).
15714 2007-01-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
15716 * XplatUIWin32.cs: Set SWP_NOACTIVATE in RequestNCRecalc as well,
15717 we don't want to activate any windows. Fixes #79433.
15719 2007-01-25 Jonathan Pobst <monkey@jpobst.com>
15721 - ButtonBase.cs: Fix capitalization of parameter: disposing.
15724 2007-01-25 Alexander Olk <alex.olk@googlemail.com>
15727 - Move to using System.ComponentModel.EventHandlerList
15728 - Replace Refresh with Invalidate
15729 - Clear the mime filecache on closing
15730 - Some other memory reducing work. After beeing closed FD now uses
15731 only about 300 KB for the fdo mime stuff plus the memory of the
15733 * Mime.cs: Changed coding style and removed unnecessary commented
15734 code. Some more memory memory reducing work.
15736 2007-01-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
15738 * ComboBox.cs: Implemented FlatStyle and DropDownHeight, and added
15739 a few other missing 2.0 properties.
15740 * Theme.cs: Added DrawFlatStyleComboBox.
15741 * ThemeWin32Classic.cs: Implemented DrawFlatStyleComboBox.
15743 2007-01-24 Chris Toshok <toshok@ximian.com>
15745 * XplatUIX11.cs: fix the wake_waiting logic - we always clear the
15746 wake_waiting flag, not just when there's data to be read. if we
15747 don't, then future wakeup's won't reach us and we'll be doomed to
15748 wait for the entire 1 second timeout forever (unless there are X
15751 2007-01-24 Jonathan Pobst <monkey@jpobst.com>
15753 * ComboBox.cs: FindStringExactMaxException doesn't throw AOORE on 2.0
15754 until you pass Items.Count, not Items.Count - 1 like 1.1.
15756 2007-01-24 Gert Driesen <drieseng@users.sourceforge.net>
15758 * ColumnHeader.cs: Fixed ParamName in ArgumentOutOfRangeException.
15760 2007-01-24 Jonathan Pobst <monkey@jpobst.com>
15762 * ToolStripContainer.cs: The recent Dock fix exposed that I was
15763 adding the panels in the wrong order.
15765 2007-01-24 Jackson Harper <jackson@ximian.com>
15767 * TextBoxBase.cs: When we move the caret we also need to move the
15768 selection, this fixes some random crashing after doing select
15769 text, unselect, delete a char, paste.
15771 2007-01-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
15773 * Form.cs: Update SizeGrip's location even if it's not visible (fixes #80592).
15775 2007-01-23 Everaldo Canuto <everaldo@simios.org>
15777 * Control.cs: In OnParentBackgroundImageChanged remove conditions to call
15778 OnBackgroundImageChanged, it mimics win32 behavior. Fixes #80553.
15779 * ToolBar.cs: Force redraw in BackgroundImageChanged.
15781 2007-01-23 Everaldo Canuto <everaldo@simios.org>
15784 - Implement support for vertical toolbars. Fixes #80539;
15785 - Call LayoutToolBar when resize, it fix some other problems in layout.
15786 - Rename requested_height to requested_size, as we can have width on it
15787 when toolbar is vertical.
15788 - Create a private property "Vertical" that uses Dock to verify when
15789 toolbar is vertical or not.
15790 - Set ControlStyles when change Dock property.
15791 - Refactory in LayoutToolBar to have better variables names and to support
15793 - Fixes default value for ButtonSize when button count is equal zero, size
15794 must be (39, 36) test case writed.
15796 2007-01-23 Chris Toshok <toshok@ximian.com>
15798 * Control.cs: fix the checks so that they work correctly for mdi
15801 2007-01-23 Chris Toshok <toshok@ximian.com>
15803 * Control.cs: ControlCollection seems to have super-secret
15804 abstraction breaking knowledge of Mdi containers. allow MdiClient
15805 to add toplevel controls.
15807 2007-01-23 Chris Toshok <toshok@ximian.com>
15809 * Control.cs: throw an ArgumentException if a toplevel control is
15810 added to our control collection from ControlCollection.Add, as
15811 well as from ControlCollection.IList.Add. This fixes the
15812 ControlSetTopLevelTest.TestTopLevelAdd unit test.
15814 Also, in ControlCollection.IList.Add, don't through an
15815 ArgumentNullException, throw an ArgumentException, when value ==
15816 null. This matches MS.
15818 2007-01-23 Chris Toshok <toshok@ximian.com>
15820 * BindingSource.cs: initial, incomplete, implementation of
15823 2007-01-23 Jackson Harper <jackson@ximian.com>
15826 * TextBoxBase.cs: Checking in some pieces of the undo stuff so
15827 that I can fix a broken unit test (TextBoxTest::ClearUndo)
15829 2007-01-23 Everaldo Canuto <everaldo@simios.org>
15831 * ToolBar.cs: Add status fields to ToolBarButtonInfo.
15833 2007-01-23 Andreia Gaita <avidigal@novell.com>
15835 * TreeNode.cs: Add new 2.0 ImageKey and SelectedImageKey properties.
15836 * TreeNodeCollection.cs: New Add() methods, ContainsKey and
15837 IndexOfKey() for 2.0
15839 2007-01-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
15841 * XplatWin32.cs: In RequestNCRecalc call SetWindowPos with SWP_NOZORDER
15842 to prevent it from changing z-order.
15843 * MdiWindowManager.cs: Refactor part of SetWindowState to MdiClient, only
15844 leave UI updates in MdiWindowManager.
15845 * InternalWindowManager.cs: Check for 0 sized nc areas and make them
15846 1 sized (NC handling goes weird on Linux otherwise).
15847 * MdiClient.cs: Add missing ExStyle (WS_EX_CLIENTEDGE), so it's no longer
15848 necessary to handle WM_NCCALCSIZE anymore. This also made it possible to
15849 remove a few NCRequestRecalcs. Changed calculations in IconicBounds
15850 to use ClientSize of MdiClient instead of entire size. Refactored ActivateChild
15851 and SetWindowState(s) to allow for changing the size of an activated child
15852 before activating it (reduces a lot of flicker).
15854 2007-01-22 Jonathan Pobst <monkey@jpobst.com>
15856 * Form.cs: Changing FormBorderStyle has different semantics based
15857 on whether the Form is visible or not. If not visible, don't change
15858 the Size. But InvalidateNC needs to be called to force the window
15859 to pick up the changes and redraw itself. [Fixes bug #80574]
15861 2007-01-22 Jonathan Pobst <monkey@jpobst.com>
15864 * ContainerControl.cs: ProcessCmdKey.
15865 * ErrorProvider.cs: new constructor.
15866 * Form.cs: fix AutoValidateEvent compiler warning.
15867 * Label.cs: fix OnAutoSizeChanged compiler warning.
15868 * MenuStrip.cs: fix CanOverflow compiler warning.
15869 * TabControl.cs: SelectTab, OnSelected methods, Selected event.
15870 * TextBox.cs: Dispose.
15871 * ToolStrip.cs: CanOverflow, re-enable double buffering.
15872 * ToolStripControlHost.cs: fix CausesValidation compiler warning.
15873 * ToolStripDropDown.cs: fix ContextStripMenu compiler warning.
15874 * ToolStripItem.cs: Overflow, RightToLeft properties.
15876 2007-01-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
15878 * Form.cs: Move the layout of the main form to MdiWindowManager.
15879 * MdiWindowManager.cs: If WindowState changes from or to Maximized,
15880 do a layout of the main window to update MdiClient's client area to
15881 the right area. Fixes #80533. Remove the calculation of nc size,
15882 it was just wrong and the correct one is the same as for
15883 InternalWindowManager.
15885 2007-01-20 Jonathan Pobst <monkey@jpobst.com>
15887 * Control.cs: Setting Anchor or Dock needs to reset the other
15888 to its default. [Fixes bug #80556]
15890 2007-01-20 Chris Toshok <toshok@ximian.com>
15892 * CheckedListBox.cs: class status changes.
15894 * ScrollableControl.cs: same.
15896 * RichTextBox.cs: same.
15898 * ContainerControl.cs: same.
15900 * ListView.cs: same.
15902 * NotifyIcon.cs: same.
15904 * MenuStrip.cs: same.
15906 * RadioButton.cs: same.
15908 * CheckBox.cs: same.
15910 * PrintPreviewDialog.cs: same.
15914 2007-01-19 Jonathan Pobst <monkey@jpobst.com>
15916 * TreeNode.cs: Apply Alan's patch for Name property.
15918 2007-01-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
15920 * Form.cs: Implemented SizeGripStyle.
15921 * SizeGrip.cs: Check for minimum and maximum size for the
15922 control being resized and only resize if size has actually
15925 2007-01-19 Chris Toshok <toshok@ximian.com>
15927 * DataGridColumnStyle.cs: stop setting _readonly in the
15928 PropertyDescriptor setter. fixes a unit test failure.
15930 also, rename ParentReadOnly to TableStyleReadOnly, and have it
15931 just consult our table style (if we have one). We don't need to
15932 consult the datagrid readonly attribute because that's passed in
15933 as the _ro arg to Edit. this simplifies things a little.
15935 * DataGrid.cs: use CurrentColumn instead of
15936 current_cell.ColumnNumber just to simplify some of the code.
15938 switch the order of some things in the CurrentCell setter to keep
15939 the previous cell from getting a textbox again -
15940 EnsureCellVisibility causes scrolling to happen, which calls Edit.
15941 So we need to set the new cell before calling it.
15943 call Edit in OnEnter, as does Microsoft.
15945 also, make sure the current table style isn't the one we create
15946 initially when checking to see if it's different than the one
15947 we're setting it to in BindColumns (this fixes #80421).
15949 * GridTableStylesCollection.cs: table styles can have "" for a
15950 mapping name. part of the fix for #80421.
15952 * DataGridTextBoxColumn.cs: simplify the readonly calculation in
15953 Edit significantly.
15955 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
15957 * TextRenderer.cs: Rewrote to be complete-er, more MS-matching-er,
15958 and less GDI object leaky-er.
15960 2007-01-18 Andreia Gaita <avidigal@novell.com>
15962 * LinkLabel.cs: Add opaque control style
15964 2007-01-18 Jackson Harper <jackson@ximian.com>
15966 * TextControl.cs: Calculate width properly.
15967 - Don't store the tag's X offset, this can be figured out very
15969 - When getting the caret tag make sure to get the last empty tag.
15971 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
15973 * Form.cs: Recalculate our size after setting a new FormBorderStyle.
15976 * Control.cs: Color.Empty shouldn't count for previous transparent
15979 2007-01-18 Jackson Harper <jackson@ximian.com>
15983 * TextControl.cs: Starting to merge in some pieces of my older
15984 undo work. Basically just some slight cleanup of the undo API.
15986 2007-01-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
15988 * TrackBar.cs: Fix signature of RightToLeftLayout.
15989 * StatusBar.cs: Implemented missing 2.0 methods and attributes.
15990 * StatusBarPanel.cs: Implemented missing 2.0 methods and attributes.
15991 * Application.cs: Implemented UseWaitCursor.
15993 2007-01-18 Jackson Harper <jackson@ximian.com>
15995 * TextControl.cs: We can't skip tags if any part of the tag is
15998 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
16000 * ContainerControl.cs: Override OnLayout.
16002 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
16004 * NotifyIcon.cs: Add ContextMenuStrip and Tag properties.
16006 * ContextMenuStrip.cs: Make sure context menu is shown on top of
16009 2007-01-18 Chris Toshok <toshok@ximian.com>
16011 * ContainerControl.cs: remove the partial handling of LBUTTONDOWN
16012 (leftover from the container_selected days, I'd wager). fixes bug
16015 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
16017 * Control.cs: Apply patch from George to fix the new testcase on
16018 bug #80451. We can't just check for Color.Transparent, we need
16019 to check if the back color's alpha channel is < 255.
16021 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
16023 * Form.cs: Move setting show_icon = true to before the constructor
16024 so that the base constructor has that information when it calculates
16025 the form's size. Was causing forms to be (6, 6) bigger than they
16026 were supposed to be. Thanks for catching this Rolf!
16028 2007-01-18 Jackson Harper <jackson@ximian.com>
16030 * TextControl.cs: When replacing a selection we need to invalidate
16031 from the initial selection start, because selection start is moved
16032 to the end of the replacement.
16034 2007-01-18 Andreia Gaita <avidigal@novell.com>
16036 * LinkLabel.cs: Missing ControlStyles. Fixes #80482
16038 2007-01-18 Chris Toshok <toshok@ximian.com>
16040 * DataGridTextBoxColumn.cs: fix most of the NotWorking unit tests
16043 2007-01-17 Everaldo Canuto <everaldo@simios.org>
16045 * ToolBar.cs: Add layout methods to ToolBarButtonInfo class, every
16046 layout methods and properties from ToolBarButton must be available
16047 into ToolBarButtonInfo.
16049 2007-01-17 Jonathan Pobst <monkey@jpobst.com>
16051 * Control.cs: If the control has a transparent background, we
16052 need to refresh it when it moves and when it's parent's background
16053 image changes. [Fixes bug #80451]
16055 2007-01-17 Jonathan Pobst <monkey@jpobst.com>
16057 * XplatUIWin32.cs: Don't use 2.0 methods in 1.1 code! Doh!
16059 2007-01-17 Jonathan Pobst <monkey@jpobst.com>
16061 * XplatUIWin32.cs: Implement proper double buffering for Windows.
16062 [Fixes bug #80447, and probably speeds up things as well]
16064 2007-01-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
16066 * XplatUIX11.cs: Caption height for MDI children is 19, not 26.
16067 * XplatUIWin32.cs: We need to recalculate NC size after changing
16068 window style to toolwindow (otherwise the client rectangle will be
16069 3 pixels to small for some reason).
16070 * MdiWindowManager.cs: Revert NC size calculations to match how
16071 they are calculated only based on window styles (to match
16072 Win32AdjustWindowRectEx, since otherwise when setting size or
16073 location, Control will call Win32AdjustWindowRectEx to update client
16074 size, which would provoke a paint, then we'd get a NCCALCSIZE and
16075 calculate a different value of client size causing another paint
16077 * InternalWindowManager.cs: When moving or resizing a window only
16078 update size or location if they actually changed.
16079 * ThemeWin32Classic.cs: ManagedWindowsBorderWidth is now 4 instead of 3
16080 (seems to match Windows behaviour better). Cleaned up
16081 ManagedWindowDecorations to draw what's needed and nothing else
16082 (was drawing borders and lines where they shouldn't be)
16083 * Hwnd.cs: GetWindowRectangle now knows about MDI border sizes
16084 (style = 0xFFFF) and takes into account caption height when
16085 calculating window rectangle.
16087 2007-01-16 Everaldo Canuto <everaldo@simios.org>
16089 * ToolBar.cs: Internal ToolBarButtonInfo class added, Because same button
16090 can be added to toolbar multiple times, we need to maintain a list of
16091 button information for each positions.
16093 2007-01-16 Everaldo Canuto <everaldo@simios.org>
16095 * ToolBar.cs: Some small stetic changes.
16097 2007-01-16 Jackson Harper <jackson@ximian.com>
16099 * TextBoxBase.cs: Use the new SuspendRecalc/ResumeRecalc methods
16100 that allow us to have nested recalc = false blocks.
16101 - Add paste support for images in the RichTextBox
16102 * RichTextBox.cs: flush the text after the color is changed, so
16103 the change takes effect.
16104 - Use SuspendRecalc
16105 - Some extra debugging info
16106 * TextControl.cs: Tags no longer track their length, it is just
16107 computed from the next tags length, this makes things a little
16108 simpler and reduces places that we have to track length changes.
16109 - Refactored the linetag class a little so we could make it
16110 a base class for different kinds of tags
16111 - Created a image tag, a tag that can have a single image inserted
16113 - Replace the norecalc flag with a Suspend/Resume Recalc pair, so
16114 that we can call suspend multiple times.
16115 - Add some debugging methods
16117 2007-01-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
16119 * MdiClient.cs: Add ActivatePreviousChild for
16120 mdi child window navigation.
16121 * Form.cs: Use MdiClient.ActivateNextChild/
16122 ActivatePreviousChild instead of Form.SelectNextControl
16123 to select the next/previous child since
16124 SelectNextControl doesn't do it in the same order
16125 as mdi children should do it.
16127 2007-01-16 Chris Toshok <toshok@ximian.com>
16129 * Control.cs: remove container_selected field.
16131 2007-01-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
16133 * MdiClient.cs: Update main form's ActiveChild when
16134 updating keyboard focus for the mdi child.
16136 2007-01-16 Jonathan Pobst <jpobst@novell.com>
16138 * Control.cs: PreferredSize fix.
16140 * Form.cs: Add several 2.0 events, properties, and methods.
16142 2007-01-16 Gert Driesen <drieseng@users.sourceforge.net>
16144 * Form.cs: Provide meaningful message when MdiParent is assigned a
16145 Form that is not an MdiContainer.
16147 2007-01-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
16149 * MdiClient.cs: Update main form's ActiveChild when
16150 activating a mdi child.
16152 2007-01-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
16154 * MdiWindowManager.cs: Fix NRE when merging menus and main form
16155 doesn't have a menu.
16157 * Form.cs: Request NCRecalc after creating a mdi child window.
16158 Implement mdi key handling (Ctrl+F4, Ctrl+Shift+F4, Ctrl+Tab,
16159 Ctrl+Shift+Tab, Ctrl+F6 and Ctrl+Shift+F6).
16161 * MdiClient.cs: Add new method SendFocusToActiveChild that either
16162 sends keyboard focus to the active child, or to the MdiClient
16163 if there are no child forms.
16165 2007-01-15 Chris Toshok <toshok@ximian.com>
16167 * ListView.cs: drop the *Internal overrides, just do our work in
16168 ItemControl's WndProc instead.
16170 * UpDownBase.cs: a few large changes. Fix up the Selectable state
16171 of the various controls, and forward the events properly (in the
16172 same manner as MS) from the textbox to the UpDown. Also the
16173 ActiveControl of the UpDownBase gets set properly now. Finally,
16174 we don't call UpdateEditText from the ctor. Fixes bug #79957.
16176 * NumericUpDown.cs: set Text in the ctor.
16178 * DomainUpDown.cs: call UpdateEditText in the ctor.
16180 * TextBox.cs: on ms.net, WM_LBUTTONDOWN sets focus on the textbox,
16181 so even a Selectable = false textbox can be focused if you click
16184 * Control.cs: remove On{Got,Lost}FocusInternal. Subclasses can
16185 just add their handling in their respective WndProc's. Also add
16186 an explicit FocusInternal method that doesn't consult CanFocus
16187 before calling Select(this).
16189 * TextBoxBase.cs: deal with removal of the FocusInternal calls -
16190 do our work in WndProc instead.
16192 * TabControl.cs: same.
16194 * ComboBox.cs: same.
16196 2007-01-15 Everaldo Canuto <everaldo@simios.org>
16198 * Menu.cs: implement MergeItems and Replace for MenuMerge method.
16201 2007-01-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
16204 * ThemeWin32Classic.cs: Don't draw the item text outside
16205 item bounds in Details view, as well as use trimming.
16208 2007-01-15 Jonathan Pobst <jpobst@novell.com>
16210 * Form.cs: Implement Form.ShowIcon.
16212 * XplatUIWin32.cs: Allow the SetIcon win32 call to set the icon to
16213 null, which when combined with the DlgModalFrame window style removes
16214 the icon from the title bar.
16216 2007-01-15 Jonathan Pobst <jpobst@novell.com>
16218 * Control.cs: Call OnMouseClick after OnClick. (2.0)
16220 2007-01-15 Everaldo Canuto <everaldo@simios.org>
16222 * MdiWindowManager.cs: In CreateMaximizedMenu fix a position of icon
16223 menu when mdi child windows theres a menu, uses insert to get icon
16224 at first position. Partially fix #80006.
16226 2007-01-15 Jonathan Pobst <jpobst@novell.com>
16228 * Clipboard.cs: Implement 2.0 methods.
16230 2007-01-15 Everaldo Canuto <everaldo@simios.org>
16232 * Menu.cs: Implement Insert method of MenuItemCollection class
16235 2007-01-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
16237 * ListView.cs: Implement 2.0 FindItemWithText method.
16239 2007-01-11 Everaldo Canuto <everaldo@simios.org>
16241 * Form.cs: When process WM_NCCALCSIZE message use ClienSize.Width
16242 to calculate menu bar size. Fixes #80290.
16244 2007-01-11 Everaldo Canuto <everaldo@simios.org>
16246 * ThemeWin32Classic.cs: Fix position of menuitem check mark.
16248 2007-01-11 Chris Toshok <toshok@ximian.com>
16250 * XplatUIX11.cs: don't send duplicate WM_ACTIVATE messages to the
16253 2007-01-11 Chris Toshok <toshok@ximian.com>
16255 * LinkLabel.cs: make sure to call base.Select in our Select method
16256 if it turns out we're going to be selected (i.e. if we have a link
16257 that is going to receive focus). That way our container's
16258 ActiveControl is updated properly.
16260 2007-01-11 Chris Toshok <toshok@ximian.com>
16262 * LinkLabel.cs: turns out that LinkLabels are only Selectable if
16263 they have 1 or more links. this fixes the crash gert reported.
16265 2007-01-11 Andreia Gaita <avidigal@novell.com>
16267 * ContainerControl.cs: Remove ContainerSelected flag, not needed
16270 * Control.cs (Controls.Add): Check if control to be added to the collection
16271 is a top level control, and throw an ArgumentException if it is.
16272 Remove ContainerSelectedFlag, not needed anymore.
16274 * XplaUIWin32.cs (SetTopMost): Add flag SWP_NOACTIVATE so that setting the
16275 top most control doesn't activate the form. This fixes a problem in the
16276 MessageBox, where the default button wouldn't get focus because the form
16277 was activated before being Loaded - when the Owner is set, SetTopMost is
16278 called, and it would activate it.
16280 2007-01-11 Jonathan Pobst <jpobst@novell.com>
16282 * Button.cs: When clicked and setting the parent form's DialogResult,
16283 use FindForm instead of Parent, since parent could be a container
16284 control and not the Form. Fixes bug #80495.
16286 2007-01-10 Chris Toshok <toshok@ximian.com>
16288 * Form.cs: move the call to SendControlFocus into the same
16291 2007-01-10 Chris Toshok <toshok@ximian.com>
16293 * UpDownBase.cs (.ctor): remove the ActiveControl assignment here.
16294 It breaks in the face of the new ActiveControl stuff, and should
16297 * Form.cs (WndProc): in the WM_ACTIVATE case, we need to set the
16298 activecontrol's focus if it's not already set, after we set
16299 ActiveControl, but before we call OnActivated. Re-fixes #79667
16300 after the previous focus/active control fixes regressed it.
16302 * Control.cs: reindent some code.
16304 2007-01-10 Chris Toshok <toshok@ximian.com>
16306 * Splitter.cs: clearing some outstanding changes from my tree.
16307 Replace all accesses (not writes) to the internal dock_style field
16308 with the Dock property.
16310 2007-01-10 Chris Toshok <toshok@ximian.com>
16312 * Control.cs: make FireEnter, FireLeave, FireValidating, and
16313 FireValidated virtual.
16315 * Form.cs: override and don't chain up calls to FireEnter and
16318 2007-01-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
16320 * ListView.cs: Add more text padding space when using
16321 auto resize for columns (the previous value didn't work fine).
16323 * ThemeWin32Classic.cs: Update text position inside columns,
16324 to match the appeareance of .Net.
16326 * ColumnHeader.cs: When using auto resize, only the Width should
16327 depend on the sub items, not the Height. Also, set width after
16328 auto resizing (the value of Width should never remain as -1 or -2).
16330 2007-01-10 Chris Toshok <toshok@ximian.com>
16332 * Application.cs: fix compilation errors when debug is enabled.
16334 2007-01-10 Chris Toshok <toshok@ximian.com>
16336 * ContainerControl.cs (set_ActiveControl): rework this a bit (and
16337 add some nice ascii art pictures and explanation of the process).
16338 (GetMostDeeplyNestedActiveControl): new utility function we need
16339 because our ActiveControl can refer to a child container with its
16342 * Form.cs (OnActivated): remove the call to SelectActiveControl
16343 from here, since you can override this method and not chain up,
16344 and winforms still sets the active control.
16345 (OnCreateControl): also remove the unnecessary SelectActiveControl
16347 (WndProc): it's actually called from the WM_ACTIVATE block, just
16348 before calling OnActivated.
16350 * Control.cs (Select (Control)): move the call to XplatUI.SetFocus
16351 inside the else. the ActiveControl setter will end up setting
16352 focus on @control. This keeps us from setting it again (and
16353 generating an extra LostFocus/GotFocus pair).
16354 (Select (bool, bool)): reindent.
16356 2007-01-10 Jonathan Pobst <jpobst@novell.com>
16358 * FlowLayoutPanel.cs, MenuStrip.cs, SplitContainer.cs, SplitterPanel.cs,
16359 StatusStrip.cs, TableLayoutPanel.cs, TableLayoutStyleCollection.cs,
16360 ToolStrip.cs, ToolStripComboBox.cs, ToolStripContainer.cs,
16361 ToolStripContentPanel.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
16362 ToolStripDropDownButton.cs, ToolStripDropDownItem.cs, ToolStripDropDownMenu.cs,
16363 ToolStripItem.cs, ToolStripMenuItem.cs, ToolStripPanel.cs, ToolStripPanelRow.cs,
16364 ToolStripSeparator.cs, ToolStripSplitButton.cs, ToolStripStatusLabel.cs
16365 ToolStripTextBox.cs: Another wave of corcompare work.
16367 2007-01-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
16369 * ColumnHeader.cs: Implement 2.0 AutoResize method using
16370 the Width property.
16372 * ListView.cs: Implement 2.0 AutoResizeColumn and AutoResizeColumns
16373 methods by callling Column.AutoResize method on columns.
16375 2007-01-09 Jonathan Pobst <monkey@jpobst.com>
16377 * Control.cs: Provide proper implementations of PreferredSize
16378 and GetPreferredSize (2.0).
16380 2007-01-09 Jonathan Pobst <monkey@jpobst.com>
16382 * Form.cs: Remove one character (!) to make my previous OnClosing
16383 stuff work for modal windows like MessageBox.
16385 2007-01-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
16388 * ThemeWin32Classic.cs: Use ListView.GetReorderedColumn instead of
16389 ListView.Columns to get the last displayed column. Fixes #80452.
16391 2007-01-09 Everaldo Canuto <everaldo@simios.org>
16393 * Label.cs, LinkLabel.cs: Source code identation fixes.
16395 2007-01-08 Everaldo Canuto <everaldo@simios.org>
16397 * ToolBarButton.cs: Remove InvalidateBorder and use Invalidate instead,
16398 we dont need to invalidate only borders because when we invalidate four
16399 border lines the invalidate's generates a complete redraw of button,
16400 because it now invalidate a complete rect some other redraws operations
16401 are fixed. Fixes #80196.
16403 * Theme.cs, ThemeNice.cs, ThemeClearLooks.cs, ThemeWin32Classic.cs:
16404 Remove ToolBarInvalidateEntireButton as it is not used.
16406 2007-01-08 Jonathan Pobst <monkey@jpobst.com>
16408 * Form.cs: Make sure that both OnClosing and OnFormClosing are
16409 called for 2.0 profile.
16410 * CloseReason.cs: Make class internal for 1.1.
16412 2007-01-08 Jonathan Pobst <monkey@jpobst.com>
16414 * ToolStripManager.cs: Implement FindToolStrip functionality.
16415 * ToolStrip.cs: Register and unregister with ToolStripManager.
16417 2007-01-07 Jonathan Pobst <monkey@jpobst.com>
16419 * Control.cs: This was messy. 2.0 moves much of ControlCollection
16420 to ArrangedElementCollection. Implemented this with as few #if's as
16421 possible (which is still too many).
16423 2007-01-07 Jonathan Pobst <monkey@jpobst.com>
16425 * Control.cs: Implement SizeFromClientSize() [2.0].
16427 2007-01-07 Everaldo Canuto <everaldo@simios.org>
16429 * Hwnd.cs: On GetClientRectangle add a new parameter border_static,
16430 use Theme.BorderSize to calculate area instead of static value 1,
16431 by the way use new BorderStaticSize instead Border3DSize when
16432 border_static is true. Fixes #79537.
16434 * XplatUIOSX.cs: Fix call to GetClientRectangle.
16436 * ThemeWin32Classic.cs: On CPDrawBorder3D dont draw inner border when
16439 2007-01-06 Everaldo Canuto <everaldo@simios.org>
16441 * Hwnd.cs: Gives more code legibility to GetWindowRectangle.
16443 2007-01-06 Everaldo Canuto <everaldo@simios.org>
16445 * Label.cs: Override CreateParams to use WS_EX_STATICEDGE instead of
16446 WS_EX_CLIENTEDGE in ExStyles when BorderStyle is Fixed3D, it is
16449 - border_static field added, it will used to define when a control
16450 theres 3D border but it must be static (thin).
16451 - In GetWindowRectangle use Theme.BorderSize to calculate area
16452 instead of static value 1, by the way use new BorderStaticSize instead
16453 Border3DSize when border_static is true.
16455 * XplatUIX11.cs, XplatUIOSX.cs:
16456 - When WS_EX_STATICEDGE ExStyle is set define border_static as true.
16458 * Theme.cs: BorderStaticSize field added.
16460 2007-01-05 Everaldo Canuto <everaldo@simios.org>
16462 * XplatUIX11.cs: Removed unused hwnd var in SetBorderStyle.
16464 2007-01-05 Everaldo Canuto <everaldo@simios.org>
16466 * Control.cs: Under InternalBorderStyle call RecreateHangle to
16467 mimic same behavior than win32 that set border only in CreateParams,
16468 it fix problems under CreateParams overrides. Fix #79442 and partial
16471 * XplatUIX11.cs: Dont set hwnd.border_style in SetBorderStyle instead
16472 of thi control you must call recreate handle.
16474 * XplatUIWin32.cs: Remove all SetBorderStyle code, for win32 we dont
16475 need to do anything as RecreateHangle will take care about borders.
16477 2007-01-05 Mike Kestner <mkestner@novell.com>
16479 * ListView.cs: hack to eliminate Lost/Got focus notifications on
16480 cycles between the ItemControl and parent. Fixes #80388.
16482 2007-01-05 Gert Driesen <drieseng@users.sourceforge.net>
16484 * Control.cs: Lazy init layout engine. Do not directly use
16485 layout_engine since LayoutEngine may be overridden (on 2.0 profile).
16487 2007-01-05 Chris Toshok <toshok@ximian.com>
16489 * DataGrid.cs: don't forceably rebind columns in SetDataSource
16490 unless our list manager has changed (i.e. unless we have reason to
16491 believe our columns have changed). Fixes #80422.
16493 also, disable the call do BindColumns in
16494 OnListManagerMetaDataChanged. this breaks this test in 2.0 (in
16495 1.1 the event isn't raised in response to a column addition on a
16498 2007-01-05 Jonathan Pobst <monkey@jpobst.com>
16500 * Control.cs: Move LayoutEngine.Layout to the OnLayout method, so
16501 that inheritors can not call it if they choose. Fixes bug #80456.
16503 2007-01-05 Andreia Gaita <avidigal@novell.com>
16505 * XplatUIWin32.cs: Initialize MSG.refobject at 0 so it
16506 doesn't blow up with a null exception on marshalling.
16508 2007-01-05 Jonathan Pobst <monkey@jpobst.com>
16510 * Control.cs: Implement several 2.0 protected properties and methods.
16511 Ensure that all necessary events are being called when properties
16514 2007-01-05 Mike Kestner <mkestner@novell.com>
16516 * ListView.cs: implement PgUp/PgDn for Details view. Also
16517 fixes First/LastVisibleIndex to use the item_control.ClientRect
16518 instead of the parent control. Fixes #80378.
16520 2006-01-05 Atsushi Enomoto <atsushi@ximian.com>
16522 * PageSetupDialog.cs : cosmetic refactoring; use RegionInfo to
16523 determine whether to use yard-pound or not (bug #78399).
16525 2006-01-04 Alexander Olk <alex.olk@googlemail.com>
16527 * FileDialog.cs: Sebastien fixed the libgdiplus png alpha
16528 problems. So it is time to bring back the old popupbutton colors.
16530 2006-01-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
16533 * ListView.cs: Implement 2.0 ColumnHeader.DisplayIndex
16534 property by using the internal information of the
16535 columns order in ListView.
16537 2007-01-04 Jonathan Pobst <monkey@jpobst.com>
16539 * CommonDialog.cs, Cursor.cs, ErrorProvider.cs, HelpProvider.cs:
16540 Add 2.0 Tag properties.
16542 * LinkArea.cs: Add 2.0 ToString method.
16544 2007-01-03 Chris Toshok <toshok@ximian.com>
16546 * DataGrid.cs: the Alt+0 handling was wrong, it should have been
16547 Ctrl+0. Fixes bug #80367. Also, don't eat the Delete keypress
16548 when we're editing, which fixes #80047.
16550 2007-01-03 Chris Toshok <toshok@ximian.com>
16552 * Form.cs: apply patch contributed by Dominik Seichter. fixes
16555 2007-01-03 Jonathan Pobst <monkey@jpobst.com>
16557 * MenuStrip.cs, ToolStripMenuItem.cs: Add MdiWindowListItem
16558 property and implementation.
16560 * Form.cs, MdiClient.cs, MdiWindowManager.cs: Add needed hooks
16561 for MdiWindowListItem property.
16563 * ToolStripDropDown.cs: Don't consider hidden menu items while
16564 laying out the menu.
16566 2007-01-03 Andreia Gaita <avidigal@novell.com>
16568 * SendKeys.cs: window handle is not needed in win32, so just
16569 get the active window for X after parsing keys and don't use
16570 it when building the message; it is passed by parameter to the
16571 Xplat method and used there to build the message instead. Also,
16572 wait for events to be processed on SendWait, as opposed to Send,
16573 which doesn't wait :) Playing with threads and Send() completely
16574 hangs on ms.net, only SendWait() works.
16577 X11Display.cs: Check for valid window handle.
16579 2007-01-03 Jackson Harper <jackson@ximian.com>
16581 * TextControl.cs: Need to prevent wrap calculations when replacing
16582 text (this was there before i removed it accidently).
16583 - Don't update the cursor during the positioning, just set it to
16584 selection_start at the end of the operaion.
16586 2007-01-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
16589 * NotifyIcon.cs: corcompare work, no more X's in 1.1 class status.
16591 2007-01-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
16593 * MonthCalendar.cs: Added Click and DoubleClick events again,
16594 but this time they only hide Control's Click and DoubleClick.
16596 2007-01-03 Gert Driesen <drieseng@users.sourceforge.net>
16598 * Theme.cs: Re-enabled DefaultFont change. Use const to refer to
16599 System.Drawing assembly. Spaces to tabs. Removed extra tabs.
16601 2007-01-02 Jackson Harper <jackson@ximian.com>
16603 * TextBoxBase.cs: We move the caret with the split now, so we
16604 don't need to explicitly move the caret after splitting. This
16605 fixes the caret bumping down an extra line on Enter.
16607 2007-01-02 Miguel de Icaza <miguel@novell.com>
16609 * ContainerControl.cs: Add AutoValidateChanged event (for PDN
16612 * ScrollableControl.cs: Add Scroll event.
16614 2007-01-02 Mike Kestner <mkestner@novell.com>
16616 * ListView.cs: one more try with help from georgegiolfan@yahoo.com
16617 to fix all hdr height padding codepaths. Fixes #80207.
16619 2007-01-02 Chris Toshok <toshok@ximian.com>
16621 * StatusBar.cs (.ctor): remove the Anchor setting, as it's just
16622 setting it to the Control defaults anyway, and it being after the
16623 Dock set was screwing up layout.
16624 (set_Dock): don't short circuit out of setting base.Dock. Also,
16625 no need to call UpdateStatusBar here, as it'll be re-layed out if
16628 2007-01-02 Mike Kestner <mkestner@novell.com>
16630 * ListView.cs: patch from georgegiolfan@yahoo.com to add padding
16631 to header height for width == -1. Fixes the rest of #80207.
16633 2007-01-02 Mike Kestner <mkestner@novell.com>
16635 * ListView.cs: rework the mouse event forwarding everaldo added
16636 to translate the coordinates to the parent control not
16637 raise the parent events until after we've done our work. Hover
16638 needs more work, in the case where HoverSelection is on, because
16639 the item control receives more than one MouseHover per Enter
16640 event, so we need to ensure only the "first" hover gets forwarded.
16641 Opening a minor bug for that.
16643 2007-01-02 Gert Driesen <drieseng@users.sourceforge.net>
16645 * CheckedListBox.cs: Fixed SelectionMode to match MS.
16646 * ListControl.cs: Implemented AllowSelection property. Removed extra
16648 * ListBox.cs: Implemented AllowSelection property.
16650 2007-01-02 Everaldo Canuto <everaldo@simios.org>
16652 * MenuItem.cs: In MdiWindowClickHandler uses sender instead of
16653 SelectedItem, it prevent for errors when you must disable item
16654 before perform click. Fixes #80409.
16656 2007-01-02 Everaldo Canuto <everaldo@simios.org>
16658 * MenuAPI.cs: Prevent second level and beyond submenus to close
16659 until first level when move out side of popup.
16661 2007-01-02 Everaldo Canuto <everaldo@simios.org>
16664 - Down submenu positin in three pixels.
16665 - Closes sub menu when mouse leaves from menu. Fixes #80402.
16667 2007-01-02 Everaldo Canuto <everaldo@simios.org>
16669 * ThemeWin32Classic.cs:
16670 - Fix popup menu size adding one pixel on the top.
16671 - Down menu item border from two to one to mimic Win32.
16672 - Some source identation fixes.
16674 2007-01-01 Everaldo Canuto <everaldo@simios.org>
16676 * ThemeWin32Classic.cs: Use float numbers to calculate size and
16677 position of menu arrows, it fix wrong arrow size.
16679 2007-01-01 Everaldo Canuto <everaldo@simios.org>
16681 * ThemeWin32Classic.cs: Uses CPDrawBorder3D to draw menu borders
16682 instead of line, it simplify draw operation and fix it using 3D
16683 borders to mimic Win32.
16685 2007-01-01 Jonathan Pobst <monkey@jpobst.com>
16687 * StatusStrip.cs: Add implementation of the sizing grip.
16689 * ToolStripRenderer.cs, ToolStripProfessionalRenderer.cs: Add
16690 StatusStrip rendering.
16692 2006-12-31 Chris Toshok <toshok@ximian.com>
16694 * ToolBar.cs: don't assign to dock_style in the .ctor. it doesn't
16695 override the layout style (anchor/dock) of the control. assign to
16696 Dock instead. Fixes bug #80416.
16698 * ToolStrip.cs: same.
16700 2006-12-31 Andreia Gaita <avidigal@novell.com>
16702 * ContainerControl.cs: Use ContainerSelected flag to check if
16703 a Container is directly selected, or if Select is called on a
16704 non-container. If a container is directly selected, focus events
16705 should not be raised.
16706 Apply #80411 patch to throw exception on set_ActiveControl if
16707 control is the same as the current one.
16709 * Control.cs: Use ContainerSelected flag (see above).
16710 Add invalidation check to raise event but not invalidate if
16712 Apply #80411 patch.
16715 2006-12-31 Everaldo Canuto <everaldo@simios.org>
16717 * MenuAPI.cs: After click, dont close popup menu when menu is
16718 ContextMenu. Fixes #80399.
16720 2006-12-30 Chris Toshok <toshok@ximian.com>
16722 * ContainerControl.cs: make sure we throw the exception if the
16723 container control doesn't contain the control we're setting
16726 2006-12-30 Chris Toshok <toshok@ximian.com>
16728 * Control.cs (SetTopLevel): fix the exception raised by
16729 SetTopLevel for child controls.
16730 (set_Anchor): call UpdateDistances when setting the anchor type.
16731 This fixes bug #80336.
16733 2006-12-29 Gert Driesen <drieseng@users.sourceforge.net>
16735 * Theme.cs: For now, revert back to 8pt font.
16737 2006-12-29 Everaldo Canuto <everaldo@simios.org>
16739 * MenuAPI.cs: Set popup as active when open a ContextMenu.
16742 2006-12-29 Chris Toshok <toshok@ximian.com>
16744 * Control.cs: reorder the code in OnResize to give the same event
16747 2006-12-29 Rolf Bjarne Kvinge <RKvinge@novell.com>
16749 * MdiClient.cs: Implemented MdiLayout for ArrangeIcons,
16750 TileHorizontally and TileVertically.
16752 2006-12-29 Alexander Olk <alex.olk@googlemail.com>
16754 * ColorDialog.cs, FileDialog.cs, FolderBrowserDialog.cs,
16755 FontDialog.cs, Mime.cs, MimeIcon.cs, OpenFileDialog.cs,
16756 SaveFileDialog.cs, ThemeClearlooks.cs, ThemeNics.cs:
16757 Corrected copyright and email adress.
16759 2006-12-29 Gert Driesen <drieseng@users.sourceforge.net>
16761 * TreeNode.cs: On 2.0 profile, throw InvalidOperationException instead
16762 of Exception in FullPath property if no TreeView is associated with
16765 2006-12-29 Gert Driesen <drieseng@users.sourceforge.net>
16767 * Theme.cs: Marked default_font as private, and initialize it in ctor
16768 with MS Sans Sarif 8.25 on 1.0 profile, and SystemFonts.DefaultFont
16770 * ThemeGtk.cs: Removed default_font intialization.
16771 * ThemeWin32Classic.cs: Removed default_font initialization.
16773 2006-12-28 Chris Toshok <toshok@ximian.com>
16775 * Control.cs: fix a couple of place where we were creating handles
16776 more aggressively than we should be. Fixes ControlRefresh unit
16779 2006-12-28 Chris Toshok <toshok@ximian.com>
16781 * Control.cs: contrary to what the comment said, Control.Dock does
16782 not supercede Control.Anchor - the last one you assign to decides
16783 the layout behavior. so we need to keep track of which was the
16784 last set. Also, fix some of the affected property arguments in
16785 PerformLayout calls, and remove an redundant parent.PerformLayout
16788 Add a VisibleInternal property, which returns is_visible. We
16789 can/should get rid of all the usage of this field elsewhere.
16791 2006-12-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
16793 * Control.cs: DoubleBuffered property reflects the OptimizedDoubleBuffer
16794 control style, not DoubleBuffer. Added UseDoubleBuffering property
16795 that indicates whether doublebuffering is enabled and supported.
16796 (comment from and code based on Gert Driesen's patch in #80324).
16799 2006-12-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
16801 * Control.cs: Fixed a NRE.
16803 2006-12-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
16805 * TrackBar.cs: Fix SmallChange and LargeChange exceptions
16808 2006-12-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
16810 * Control.cs: Rewrote double buffering, now a seperate
16811 class handles all the buffering, no Graphics is disposed of
16812 until the painting is finished (earlier implementation
16813 would crash if the control was resized in the OnPaint,
16814 since it would cause the double buffer to be recreated
16815 and the old one disposed), a separate Graphics is
16816 created for every paint (MS behaviour and anyways the state
16817 of the Graphics would have to be saved and restored otherwise)
16819 * XplatUIDriver.cs:
16821 * XplatUI.cs: Added and implemented GetOffscreenGraphics
16822 so that we can get the graphics for the back buffer without
16823 having to create a new one and remove the offscreen_dc parameter
16824 from CreateOffscreenDrawable and DestroyOffscreenDrawable.
16826 2006-12-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
16828 * ListView.cs: Add key-related 2.0 methods for CheckedItemCollection.
16829 Also make virtual all the key-related methods.
16831 * ListViewItem.cs: Make virtual the key related methods for
16832 ListViewSubItemCollection.
16834 2006-12-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
16838 * ThemeWin32Classic.cs:
16839 * Theme.cs: Initial support for Tile view in ListView,
16840 as well as the implementation of the required bits for it (Item
16843 2006-12-27 Gert Driesen <drieseng@users.sourceforge.net>
16845 * MonthCalendar.cs: On 2.0, throw ArgumentOutOfRangeException instead
16846 of ArgumentException in MaxSelectionCount, MaxDate and MinDate.
16847 Provide useful exception messages.
16849 2006-12-27 Rolf Bjarne Kvinge <RKvinge@novell.com>
16851 * TrackBar.cs: Remove a warning.
16852 * MonthCalendar.cs: Moved back to using Capture to hide the calendar
16853 when used by DateTimePicker, fixes #80287. This also requires that
16854 MonthCalendar implements it's own drawing for the yearly updown control,
16855 otherwise the Capture tracking would be too complicated. Removed the Click
16856 and DoubleClick events (according to comments they were hiding the base class
16857 event to prevent them from beeing fired - MSDN only says MonthCalendar doesn't
16858 raise these events, not that they cannot be raised. It is possible to raise
16859 them by calling OnClick and OnDoubleClick). Added two internal fields in
16860 HitTestInfo in order to track give more tracking info needed by MonthCalendar.
16861 * ThemeWin32Classic.cs: Implement drawing of MonthCalendar's updown part.
16862 * DateTimePicker.cs: Removed handling of MonthCalendar's LostFocus
16863 event, no longer needed.
16865 2006-12-27 Gert Driesen <drieseng@users.sourceforge.net>
16867 * ScrollableControl.cs: In AutoScrollMinSize, only set AutoScroll to
16868 true if new value differs from current value.
16870 2006-12-27 Gert Driesen <drieseng@users.sourceforge.net>
16872 * Control.cs: ControlCollection.Count must be public. Fixed build of
16875 2006-12-27 Gert Driesen <drieseng@users.sourceforge.net>
16877 * ListView.cs: Redraw when FullRowSelect is changed. Fixes bug #80379.
16879 2006-12-27 Gert Driesen <drieseng@users.sourceforge.net>
16881 * ComboBox.cs: Mergable=>MergableProperty. Fixes build.
16883 2006-12-26 Everaldo Canuto <everaldo@simios.org>
16885 * Control.cs: Invalidates control including when Width and Height is
16886 equal zero or is not visible, only Paint event must be care about
16887 this. Fixes #79913.
16889 2006-12-26 Chris Toshok <toshok@ximian.com>
16891 * CurrencyManager.cs, PropertyManager.cs, BindingManagerBase.cs:
16892 more corcompare work.
16894 * DataGridView.cs: fix compiler warning.
16896 * ColumnHeader.cs: some corcompare work, and also take the
16897 opportunity to make the internal fields private.
16899 * ListView.cs: fix the fallout from the above field change.
16901 2006-12-26 Jonathan Pobst <monkey@jpobst.com>
16903 * ToolStripButton.cs, ToolStripComboBox.cs, ToolStripControlHost.cs,
16904 ToolStripItem.cs, ToolStripProgressBar.cs, ToolStripSplitButton.cs,
16905 ToolStripTextBox.cs: Fixes to events and corcompare.
16907 2006-12-26 Everaldo Canuto <everaldo@simios.org>
16909 * ListView.cs: Call owner.OnMousexx event to propagate events from
16910 item to ListView. Fixes #80367.
16912 2006-12-26 Gert Driesen <drieseng@users.sourceforge.net>
16914 * ComboBox.cs: On 2.0, DropDownWidth throws ArgumentOutOfRangeException
16915 if value is less than one. ItemHeight should not be set to a value
16916 less than 1, and throw ArgumentOutOfRangeException on 2.0 profile.
16917 Removed extra tabs.
16919 2006-12-26 Jonathan Pobst <monkey@jpobst.com>
16921 * ToolStripMenuItem.cs: Add ShortcutDisplayString for Moma.
16922 * ToolStripStatusLabel.cs: Add Spring for Moma.
16924 2006-12-26 Gert Driesen <drieseng@users.sourceforge.net>
16926 * DataGridView.cs: Fixed several NullReferenceException in On* methods.
16927 Fixed code formatting. Removed debug code.
16928 * DataGridViewTextBoxEditingControl.cs: Removed debug code.
16930 2006-12-26 Gert Driesen <drieseng@users.sourceforge.net>
16932 * DataGridView.cs: Fixed GridColor, DefaultSize, DefaultCellStyle,
16933 RowHeadersDefaultStyle, RowHeadersWidth to match MS. Throw
16934 ArgumentOutOfRangeException if ColumnCount is negative. In
16935 ColumnHeadersHeight, throw ArgumentOutOfRangeException if height is
16936 less than 4 or higher than 32768.
16937 * DataGridViewCellStyle.cs: Fixed default value for NullValue.
16938 Fixed FormatProvider to return CurrentCulture unless explicitly set.
16939 Fixed IsFormatProviderDefault to return true if FormatProvider has
16940 not been explicitly set.
16942 2006-12-25 Chris Toshok <toshok@ximian.com>
16944 * Application.cs: add a couple of 2.0 events.
16946 2006-12-25 Chris Toshok <toshok@ximian.com>
16948 * Control.cs: fix compiler warning.
16950 * AxHost.cs: corcompare fixes.
16952 * ApplicationContext.cs: corcompare fixes.
16954 2006-12-25 Chris Toshok <toshok@ximian.com>
16956 * Control.cs: only update dist_right/dist_bottom if the
16957 width/height is > 0. this fixes anchored controls being resized
16958 smaller until they disappear and then resized larger again.
16960 2006-12-25 Chris Toshok <toshok@ximian.com>
16962 * Control.cs: a couple of changes. Remove dist_left and dist_top,
16963 since they're nothing more than X/Left and Y/Top, respectively.
16965 Also, move back to a per-control Bitmap/Graphics for
16966 DeviceContext, since using the static Hwnd.bmp/bmp_g is bad in the
16967 MT case. Go with a tiny bitmap though, 1x1, instead of Width x
16970 2006-12-25 Miguel de Icaza <miguel@novell.com>
16972 * MessageBox.cs: Implemented overload that takes a new "bool
16973 displayHelpButton" by adding a new internal field "show_help".
16974 When clicked this will raise the HelpRequested on the owner or the
16977 From: 007dbe3ff0ca4729a4f5fcd1d8ab2a2e.txt
16978 From: c935e12b95fe4dc1ae670e7f4dc5fd68.txt
16980 * ListView.cs: Add support ColumnWidthChanged and
16981 ColumnWidthChanging.
16983 Add support for ColumnReordered event.
16984 (ReorderColumn): Add NET_2_0 specific support for cancelling the
16987 Very nice codebase!
16989 * TextBoxBase.cs (GetLineFromCharIndex): Implement this method.
16991 This is used by report f4ae0a88a0a244558aaadf017c9b9efe.
16993 2006-12-24 Chris Toshok <toshok@ximian.com>
16995 * GridTablesFactory.cs: 2.0 corcompare work.
16997 * ToolStripContainer.cs: add "override" to
16998 ContextMenuStripChanged, and remove the local event object.
17000 * ToolStripDropDown.cs: same with a couple properties.
17002 * ToolStripPanel.cs: same with AutoSizeChanged event.
17004 * TextBoxBase.cs: add "override" to AutoSizeChanged.
17006 * Form.cs: add the remaining 2.0 events, and do some corcompare
17009 * DateTimePicker.cs: add "new" to padding.
17011 * ButtonBase.cs: use Control's use_compatible_text_rendering.
17013 * ToolStripContentPanel.cs: use base.AutoSizeChanged.
17015 * DataGridView.cs: PaddingChanged is overridden.
17017 2006-12-24 Chris Toshok <toshok@ximian.com>
17019 * Control.cs: corecompare work here too.
17021 * DataGridViewElement.cs, DataGridView.cs,
17022 DataGridViewButtonCell.cs, DataGridViewRowCollection.cs,
17023 DataGridViewImageColumn.cs, DataGridViewComboBoxColumn.cs,
17024 DataGridViewImageCell.cs, DataGridViewCheckBoxCell.cs,
17025 DataGridViewHeaderCell.cs, DataGridViewCell.cs: more corcompare
17028 2006-12-24 Miguel de Icaza <miguel@novell.com>
17030 * Control.cs: Switched the error message on the console for a
17031 todo. A review of the code will have to cope with this anyways
17032 (since its a large feature, it is in our radar) and it was
17033 producing too much output when running PDN.
17035 * ToolStripComboBox.cs: Set the text when the SelectedIndex
17036 changes. Applications depend on this (PDN 2.72)
17038 2006-12-23 Chris Toshok <toshok@ximian.com>
17040 * TableLayoutSettings.cs: finish up the corcompare work for this
17043 2006-12-23 Chris Toshok <toshok@ximian.com>
17045 * Control.cs: make SetImplicitBounds internal, do some futzing
17046 with LayoutEngine so that it's available in 1.1, and remove the
17047 entire duplicated code mess from PerformLayout. Use
17048 System.Windows.Forms.Layout.DefaultLayout instead.
17050 * LayoutEngine.cs: make this class internal in 1.1, public in 2.0.
17052 2006-12-23 Jonathan Pobst <monkey@jpobst.com>
17054 * Form.cs: Add MainMenuStrip property.
17056 2006-12-23 Jonathan Pobst <monkey@jpobst.com>
17058 * Control.cs: Add ContextMenuStrip property and implementation.
17059 Fix ContextMenu implementation to show menu centered on control when
17060 activated using the keyboard instead of showing at screen (0,0).
17062 * ToolStripDropDown.cs: Fix needed overload of Show ().
17064 2006-12-23 Everaldo Canuto <everaldo@simios.org>
17066 * Menu.cs: Name property added for 2.0 profile.
17068 2006-12-23 Everaldo Canuto <everaldo@simios.org>
17070 * Menu.cs: Update information about FindMenuItem, method to be
17073 2006-12-23 Everaldo Canuto <everaldo@simios.org>
17075 * MenuAPI.cs: When deselect items deselect also selected subitems.
17077 2006-12-23 Everaldo Canuto <everaldo@simios.org>
17079 * MenuAPI.cs: When hides menu set Wnd to null, it prevents
17080 FindSubItemByCoord to found itens that is not active, also an
17081 cheking added to FindSubItemByCoord to search for items only
17082 in visible popup windows. Fixes #80274.
17084 2006-12-22 Everaldo Canuto <everaldo@simios.org>
17086 * UserControl.cs: Remove MonoTodo and use InternalBorderStyle,
17087 internal property, it be care about change ExStyle.
17089 2006-12-22 Andreia Gaita <avidigal@novell.com>
17091 * ContainerControl.cs: set activeControl for parent forms up the
17092 tree when the new activecontrol is a container.
17093 When validating the active control, if it is a container, also
17094 raise up the validation for it's active control. Fixes #80280
17096 * Control.cs: Add internal property flag and check to prevent
17097 Focus events from getting raised when Select() is called for
17098 a ContainerControl. There are still too many focus events being
17099 raised at the moment though.
17100 Cleaned up the code a bit.
17102 2006-12-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
17104 * Control.cs: Added all missing 2.0 events.and
17105 fixed a couple of corcompare issues.
17106 * TrackBar.cs: Implemented missing 2.0 bits.
17107 * MonthCalendar.cs,
17108 * DateTimePicker.cs,
17109 * MdiClient.cs: Fixed some corcompare issues.
17111 2006-12-21 Jonathan Pobst <monkey@jpobst.com>
17113 * ContextMenuStrip.cs, FlowLayoutPanel.cs, SplitContainer.cs,
17114 SplitterPanel.cs: corecompare work.
17116 2006-12-21 Jonathan Pobst <monkey@jpobst.com>
17118 * ToolStripContainer.cs, ToolStripDropDown.cs, StatusStrip.cs:
17119 Clean up warnings for BackgroundImageChanged and PaddingChanged
17120 events now that they are implemented in Control.cs.
17122 2006-12-21 Jonathan Pobst <monkey@jpobst.com>
17124 * Control.cs: Make sure layout_engine isn't null before using it (2.0).
17126 * TableLayoutControlCollection.cs, TableLayoutPanel.cs, TableLayoutCellPosition.cs,
17127 TableLayoutSettings.cs, TableLayoutStyleCollection.cs: Initial implementation
17128 of TableLayoutPanel and supporting cast.
17130 2006-12-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
17133 - GrabWindow now confines the mouse pointer to the confine window.
17134 - Added Win32ClipCursor and Win32GetClipCursor.
17137 - Added CaptureWithConfine to be able to capture and confine
17140 * InternalWindowManager.cs:
17141 - Call CaptureWithConfine instead of Capture if we're an
17142 MdiChild (fixes #79982).
17144 2006-12-21 Chris Toshok <toshok@ximian.com>
17146 * DataGrid.cs: guard against the initial state of selection, where
17147 selection_start == -1. make sure we only select from index >= 0.
17150 2006-12-21 Chris Toshok <toshok@ximian.com>
17152 * Control.cs: we don't need to be so draconian with
17153 UpdateDistances, and we thusly don't need to call it before
17154 calling PerformLayout in ResumeLayout. Fixes bug #80289.
17156 2006-12-21 Daniel Nauck <dna@mono-project.de>
17159 TextBox.cs: Implemented AutoComplete properties.
17161 2006-12-20 Chris Toshok <toshok@ximian.com>
17163 * DataGridView*.cs: some corecompare work.
17165 2006-12-20 Jackson Harper <jackson@ximian.com>
17167 * XplatUIX11.cs: We need to hide the caret when deleting it,
17168 otherwise you get carets left lying around everywhere.
17169 * TextBoxBase.cs: Kill then redraw the caret when scrolling. This
17170 prevents getting some weird half drawn caret tracers when
17172 * TextControl.cs: Attempt to reduce the number of times we need to
17173 recreate the caret.
17175 2006-12-20 Gert Driesen <drieseng@users.sourceforge.net>
17177 * MonthCalendar.cs: Fixed previous month button. Removed extra tabs.
17179 2006-12-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
17181 * DateTimePicker.cs:
17182 - Implemented missing 2.0 bits.
17183 - Changed some default values to match MS.
17185 2006-12-20 Jackson Harper <jackson@ximian.com>
17187 * TextBoxBase.cs: When changing the font across the document we
17188 can't recalculate after changing each line, since that will cahnge
17190 - PreferredHeight is a little different than i thought.
17191 - When backspacing, move the caret before we do the actual char
17192 delete, because when that delete crosses a wrap boundary the
17193 positional information will change.
17195 2006-12-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
17197 * Control.cs: Added some missing 2.0 bits:
17198 BackgroundImageLayout, BackgroundImageLayoutChanged,
17199 OnPaddingChanged, MouseClick, MouseDoubleClick, PaddingChanged and
17200 add IBindableComponent and IDropTarget implementation.
17202 * MonthCalendar.cs:
17203 - Added all missing 2.0 features:
17204 BackgroundImageLayout, RightToLeftLayout,
17205 OnHandleDestroyed, RightToLeftLayoutChanged,
17206 BackgroundImageLayoutChanged, MouseClick, MouseDoubleClick,
17208 - Rewrote all the BoldDate code, it was completely broken.
17209 - Fixed all the tests (the tests can now be re-enabled, the
17210 problems were not with the tests, but with the control, it was
17213 * DateTimePicker.cs: Changed the location where the
17214 MonthCalendar is shown.
17216 2006-12-19 Chris Toshok <toshok@ximian.com>
17218 * DataGridView.cs: add IDropTarget implementation.
17220 * ToolStripPanel.cs: add IDropTarget implementation.
17222 2006-12-19 Jackson Harper <jackson@ximian.com>
17224 * TextControl.cs: soft now means something different than what it
17225 used to mean, we want to move the caret regardless of whether or
17226 not this break was soft (would we really have wanted the caret
17227 to not move with the break in the old context?)
17228 * TreeView.cs: Make sure we factor in the vert scrollbar when
17229 calculating the horizontal scrollbar's maximum.
17231 2006-12-19 Andreia Gaita <avidigal@novell.org>
17233 * SendKeys.cs: Fix Send() behaviour, clear keys after sending,
17234 check for keywords in alternate casing, close bug #80049.
17236 2006-12-19 Chris Toshok <toshok@ximian.com>
17238 * ToolStripItem.cs: add the implementation of the 4 IDropTarget
17239 methods (which all do nothing).
17241 * IDropTarget.cs: add the 4 missing methods.
17243 2006-12-19 Chris Toshok <toshok@ximian.com>
17245 * TableLayoutRowStyleCollection.cs: corcompare work.
17247 * TableLayoutSettings.cs: same.
17249 * TableLayoutStyle.cs: same.
17251 * TableLayoutColumnStyleCollection.cs: same.
17253 2006-12-19 Jonathan Pobst <monkey@jpobst.com>
17255 * ColumnStyle.cs, RowStyle.cs, TableLayoutStyle.cs: Plumbing for
17256 TableLayoutPanel I've had in my local tree for way too long.
17258 2006-12-19 Miguel de Icaza <miguel@novell.com>
17260 * TableLayoutSettings.cs: Finish the public API (still needs all
17261 the logic to update on changes).
17263 * TableLayoutPanelCellPosition.cs: new file.
17265 * TableLayoutRowStyleCollection.cs,
17266 TableLayoutColumnStyleCollection, TableLayoutStyle.cs,
17267 TableLayoutSettings.cs: Track the final 2.0 table api.
17269 2006-12-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
17271 * ColumnHeader.cs: Add Tag, Name, ImageKey, ImageIndex,
17272 and Image List 2.0 members for ColummnHeader.
17273 * ListView.cs: Add key-related 2.0 methods for
17274 ColumnHeaderCollection.
17276 2006-12-19 Gert Driesen <drieseng@users.sourceforge.net>
17278 * ListViewItem.cs: Changed AddRange overloads to match MS: throw
17279 ArgumentNullException if items argument is null. Ignore null item in
17280 arrays. Removed extra tabs.
17282 2006-12-19 Gert Driesen <drieseng@users.sourceforge.net>
17284 * MonthCalendar.cs: Fixed InvalidCastException.
17286 2006-12-19 Jackson Harper <jackson@ximian.com>
17288 * TextControl.cs: Don't increment the position here.
17289 - When calculating char positions only add in the line break size
17290 for hard line breaks.
17292 2006-12-19 Andreia Gaita <avidigal@novell.org>
17294 * SendKeys.cs: Changed some things to match ms.net behaviour
17295 when parsing shifted capital letters.
17297 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32, XplatUIOSX:
17298 Add window handle as parameter to SendInput. X11 needs the
17299 window handle, and the handle being passed to it in the keys
17300 queue is the active control handle (which windows needs), not
17303 XplatUIX11.cs, XplaUIX11-new.cs, X11Display: Implement SendInput
17304 to support SendKeys on X.
17306 * X11Keyboard: Implement helper method to lookup a linux keycode
17307 given the virtual keycode. Added table of keycode-2-virtualkey
17308 values to support this.
17310 2006-12-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
17312 * ListView.cs: Add support for SelectedIndexCollection
17313 and SelectedItemCollection 2.0 methods. Implement support
17315 * ListViewItem.cs: Add support for ListViewSubItemCollection
17316 2.0 methods. Also, fix an incorrect behavior of AddRange method
17317 (it shouldn't call Clear).
17318 * ThemeWin32Classic.cs: Support for ListView.ImageKey 2.0 property.
17320 2006-12-19 Jackson Harper <jackson@ximian.com>
17323 * TextBoxBase.cs: New args for FormatText
17324 * TextControl.cs: Rewrote the main drawing method, this version
17325 feels a little easier to understand and debug to me. Hopefully it
17326 does to others also
17327 - Fix FormatText to OR in the new formating values. Added
17328 FormatSpecified param, basically this works in the same way as
17329 BoundsSpecified in Control.
17330 - Set the caret properties when the caret is positioned.
17331 - When wrapping text make sure that we calculate the width of the
17333 - when calculating alignments we might have wrapped down to the
17334 next line, so don't search for an individual tag, search for the
17336 - We need to invalidate the selection area when we replace the
17339 2006-12-19 Daniel Nauck <dna@mono-project.de>
17341 * Application.cs: add Restart () 2.0 support
17343 2006-12-18 Everaldo Canuto <everaldo@simios.org>
17345 * MenuItem.cs: Invalidate menu item rectangle after change Enable
17346 property. Fixes #80268.
17348 2006-12-18 Everaldo Canuto <everaldo@simios.org>
17350 * MenuAPI.cs: Dont trigger select event when closes top menu
17351 item. Fixes #80270.
17353 2006-12-18 Everaldo Canuto <everaldo@simios.org>
17355 * MenuAPI.cs: When you click on menuitem only trigger onselect
17356 event for top menu itens. Fixes #80271.
17358 2006-12-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
17360 * MdiWindowManager.cs: Make IconicBounds depend on
17361 the bottom of MdiClient, not the top (fixes #80267)
17363 2006-12-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
17365 * MdiClient.cs: Added missing 2.0 attribute
17367 2006-12-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
17369 * ListViewItem.cs: Add Name and Tag 2.0 properties, as well
17370 as IndexOfKey, ContainsKey, RemoveByKey and indexer 2.0.
17372 2006-12-18 Everaldo Canuto <everaldo@simios.org>
17374 * MenuAPI.cs: Fix click when menuitem is not popup,
17375 this regression was caused by last commit (#80272).
17377 2006-12-17 Everaldo Canuto <everaldo@simios.org>
17379 * MenuAPI.cs: When a non-toplevel menuitem is clicked dont
17380 fire click event or close menu. Fixes #80272.
17382 2006-12-17 Daniel Nauck <dna@mono-project.de>
17384 * ListViewHitTestInfo.cs: add
17386 2006-12-17 Daniel Nauck <dna@mono-project.de>
17388 * ButtonBase.cs: Added FlatButtonAppearance 2.0 support.
17389 * FlatButtonAppearance.cs: add
17390 * DockingAttribute.cs: add
17392 2006-12-17 Chris Toshok <toshok@ximian.com>
17394 * DataGrid.cs: hook up MetaDataChanged event on the list manager,
17395 and rebind our columns when it does - this way, if you make
17396 changes to the DataTable (or set the Table attribute on a DataView
17397 after setting it as the DataGrid's DataSource, the changes are
17398 made visible.) Fixes bug #80107.
17400 2006-12-17 Daniel Nauck <dna@mono-project.de>
17402 * ListViewGroup.cs: add internal Location property for layouting.
17403 * Theme.cs: add abstract ListViewGroupHeight function.
17404 * ThemeWin32Classic.cs: implement ListViewGroupHeight function.
17406 2006-12-16 Andreia Gaita <avidigal@novell.com>
17408 * TabControl.cs: Fixed checks for NET_2_0-specific exceptions.
17409 Added reset of selected index to 0 when adding first tab page.
17412 * NumericUpDown.cs: Fix NET_2_0 check
17414 2006-12-16 Daniel Nauck <dna@mono-project.de>
17416 * ListViewGroup.cs: fixed DefaultValueAttribute value
17418 2006-12-16 Daniel Nauck <dna@mono-project.de>
17420 * AutoCompleteStringCollection.cs: add new AutoCompleteStringCollection 2.0 class
17422 2006-12-15 Miguel de Icaza <miguel@novell.com>
17424 * Button.cs, ComboBox.cs, ScrollBar.cs, UserControl.cs,
17425 TextBoxBase.cs, ListView.cs, ContainerControl.cs,
17426 ScrollableControl.cs: Add a handful of methods that are
17429 2006-12-15 Chris Toshok <toshok@ximian.com>
17431 * XplatUIWin32.cs: initial implementation of the Reversible
17432 drawing functions. there are some problems. DrawReversibleFrame
17433 doesn't seem to work at all for Dashed FrameStyle, and in the
17434 Thick case there are drawing errors at the corners (we probably
17435 need to bind Rectangle instead of doing moveto/lineto's.)
17437 2006-12-16 Andreia Gaita <avidigal@novell.com>
17439 * SendKeys.cs: Implemented. SendKeys uses a new method in XPlatUI, SendInput,
17440 to send blocks of key messages. Send accumulates keys to send with Flush,
17441 while SendWait sends all keys immediately.
17443 * XplaUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
17444 XplatUIX11.cs, XplatUIX11-new.cs:
17445 - Define SendInput and stubs for OSX and X11, implements Win32 with a call
17446 to Win32 SendInput.
17447 - Added INPUT support structures to XplatUIWin32 for Win32SendInput
17449 Tests: It seems ms.net is hooking the keyboard to implement this, so doing unit
17450 testing for ms.net on this class is very tricky, as the tests run too fast
17451 to allow the hook to release, essentially freezing the keyboard and the
17452 test. So, barring a win32 miracle, they'll be commited in the ms-notworking
17455 2006-12-16 Daniel Nauck <dna@mono-project.de>
17457 * Padding.cs: fixed serialization compability to MS ("_var" field names),
17458 added missing attributes.
17460 2006-12-15 Daniel Nauck <dna@mono-project.de>
17462 * ListViewGroup.cs: Added missing attributes.
17463 * ListViewGroupCollection.cs: Added missing attributes.
17465 2006-12-15 Daniel Nauck <dna@mono-project.de>
17467 * ListViewItem.cs: fixed ListViewSubItem text property.
17469 2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
17471 * Control.cs: Added missing 2.0 attributes
17473 2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
17475 * MdiClient.cs: Added missing 2.0 attribute.
17476 * MonthCalendar.cs: Added some missing 2.0 attributes
17479 2006-12-15 Daniel Nauck <dna@mono-project.de>
17481 * ListView.cs: implemented ListViewItemCollection Add 2.0 support.
17483 2006-12-15 Jonathan Pobst <monkey@jpobst.com>
17485 * MainMenu.cs: Add the new 2.0 constructor to help out people
17486 using the MainMenu in VS2005.
17488 2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
17490 * MdiChildContext.cs: Removed it, no longer used.
17491 * MdiClient.cs: Added missing 2.0 attributes.
17493 2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
17495 * InternalWindowManager.cs: Fix a NullRef with previous
17496 changes for toolwindows.
17498 2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
17501 - Added AfterTopMostControl to allow for certain controls
17502 to always stay on top when normal controls are brought to
17506 - (DrawInversibleRectangle): Get window rectangle from Win32
17507 in stead of from control, since Win32 doesn't calculate
17508 screen coords correctly from control's Location if it
17509 have docked siblings.
17511 * MdiWindowManager.cs:
17512 - Correct the control menu popup location when clicked on
17513 the maximized form icon. (fixes #80223.1)
17514 - Don't show moving rectangle if mouse hasn't moved from
17515 the original clicked point.
17516 - Removed FormGotFocus handler (not used).
17517 - Calculate the control buttons location from the main
17518 window's size and not client size (fixes #79770).
17519 - Form is now closed when the form icon is double-clicked
17521 - Correct NCCalcSize numbers a little bit (fixes #80223.2)
17523 * InternalWindowManager.cs:
17524 - Moved some MDI-only methods to MdiWindowManager.
17525 - Removed unused properties and methods.
17526 - Unified method naming for methods handling wm messages.
17527 - Moved all message handling to seperate methods for
17530 * ThemeWin32Classic.cs:
17531 - DrawManagedWindowDecorations now draws the title bar
17532 with a gradient brush.
17533 - Add a CPDrawButtonInternal that allows us to specify
17534 light, normal and dark colors for the buttons (control
17535 buttons for MDI children were drawn with the same light
17536 color as the background, therefore loosing the 3D effect).
17539 - Add a CapturedControl property that is used to
17540 determine the control to resize (defaults to parent).
17541 Needed for MdiClient, since its SizeGrip's parent is
17542 MdiClient, but the control to resize is the main form.
17545 - Set SizeGrip's CapturedControl to the main form in order
17546 to resize the main form and not the MdiClient.
17547 - Override AfterTopMostControl to leave the scrollbars
17550 2006-12-15 Daniel Nauck <dna@mono-project.de>
17552 * ListView.cs: fixed ListViewItemCollection AddRange and
17553 implemented ListViewItemCollection AddRange 2.0 support.
17555 2006-12-15 Daniel Nauck <dna@mono-project.de>
17557 * ListViewGroup.cs: Add.
17558 * ListViewGroupCollection.cs: Add
17559 * ListView.cs: Add ListViewGroup (Group) and ShowGroups 2.0 support.
17560 * ListViewItem.cs: Add ListViewgroup (Group), ListViewGroups constructors and
17561 stub for ImageKey 2.0 support.
17563 2006-12-14 Mike Kestner <mkestner@novell.com>
17565 * ListView.cs: add text padding to the autocalculation for columns
17566 of width -2. Fixes #80207.
17568 2006-12-14 Mike Kestner <mkestner@novell.com>
17570 * ListView.cs: add some index guarding for partial row navigation
17571 logic. Fixes #80250.
17573 2006-12-14 Mike Kestner <mkestner@novell.com>
17575 * ListView.cs: throw ArgumentExceptions when parented ListViewItems
17576 are added or inserted to the collection. Fixes #81099.
17578 2006-12-13 Everaldo Canuto <everaldo@simios.org>
17580 * MenuAPI.cs: Closes menu when right click out side of popup
17581 it fix problem in ContextMenu and MainMenu. Fixes #80252.
17583 2006-12-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
17585 * ListViewItem.cs: Fix dumb error.
17587 * ListView.cs: Add Find and ContainsKey methods in
17588 ListViewItemCollection, and also return true for IsReadOnly
17589 and IsFixedSize (changes for 2.0).
17591 2006-12-13 Gert Driesen <drieseng@users.sourceforge.net>
17593 * Control.cs: Allow Region to be set to null.
17595 2006-12-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
17597 * MdiWindowManager.cs: Remove unused (commented out) code.
17598 * Form.cs: When the MdiChild is maximized, the form needs
17599 WM_NCMOUSELEAVE, so request it.
17600 * InternalWindowManager.cs:
17601 - Added tooltips to control buttons.
17602 - Removed duplicated control button handling code.
17603 - Removed unused (commented out) code.
17605 2006-12-12 Everaldo Canuto <everaldo@simios.org>
17607 * MenuAPI.cs: Set cursor to default in popup menus, a XplatUI.SetCursor
17608 was used because we must set cursor without trigger ChangeCursor event
17609 and without change Cursor control property. Fixes #79963.
17611 2006-12-12 Andreia Gaita <avidigal@novell.com>
17613 * Control.cs: Check if Region setter value is null, and ignore
17615 2006-12-12 Jackson Harper <jackson@ximian.com>
17617 * TextControl.cs: We were almost always drawing one more line then
17618 needed, since the GetLineByPixel will return the last line found
17619 at that pixel. In most cases though, we were invalidating up to
17620 the junction between two lines.
17621 - Improve debug code.
17623 2006-12-12 Chris Toshok <toshok@ximian.com>
17625 * XplatUI.cs: add static DrawReversibleFrame, DrawReversibleLine,
17626 and FillReversibleRectangle.
17628 * XplatUIDriver.cs: add abstract DrawReversibleFrame, DrawReversibleLine,
17629 and FillReversibleRectangle.
17631 * XplatUIWin32.cs: add stubs which do nothing for
17632 DrawReversibleFrame, DrawReversibleLine, and
17633 FillReversibleRectangle.
17635 * XplatUIOSX.cs: add stubs which raise NIE for
17636 DrawReversibleFrame, DrawReversibleLine, and
17637 FillReversibleRectangle.
17639 * XplatUIX11.cs: add working implementation for
17640 DrawReversibleFrame, DrawReversibleLine, and
17641 FillReversibleRectangle.
17643 * ControlPaint.cs: implement DrawReversibleFrame,
17644 DrawReversibleLine, and FillReversibleRectangle, by calling into
17645 the appropriate XplatUI method.
17647 2006-12-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
17649 * Form.cs: Make MdiClient have the focus even if it's
17650 not selectable, since it should receive WM_KEY* and WM_MOUSE
17651 messages. Fixes #79907.
17653 2006-12-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
17655 * Hwnd.cs: Save the CreateParams.ExStyle so that it can be
17656 queried after the window is created.
17658 * XplatUIX11.cs: Added SendParentNotify to implement
17659 WM_PARENTNOTIFY logic. Fixes #79965.
17661 * Control.cs: Added MakeParam.
17663 2006-12-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
17665 * MdiClient.cs: Resume Layout before setting window
17666 states (fixes #80201).
17668 2006-12-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
17670 * MenuAPI.cs: Deselect a menu item after performing
17671 the click (fixes #80197).
17673 2006-12-11 Jackson Harper <jackson@ximian.com>
17675 * TextBoxBase.cs: We need to cap this value, since Maximum -
17676 ViewPortHeight can be less than zero.
17677 - Only do selection with the left mouse button.
17678 * TextBox.cs: Don't tell the world that we have a context menu.
17679 * Control.cs: New method so that we can control whether or not the
17680 context menu is visible outside MWF.
17682 2006-12-11 Everaldo Canuto <everaldo@simios.org>
17684 * ToolBarButton.cs: Fix text positon.
17686 2006-12-11 Miguel de Icaza <miguel@novell.com>
17688 * ProgressBar.cs (MarqueeAnimationSpeed): Add stub.
17690 * Control.cs (DoubleBuffered): Add implementation.
17692 * Application.cs (OpenForms): Add.
17694 2006-12-11 Jonathan Pobst <monkey@jpobst.com>
17696 * Form.cs: Use opacity instead of Opactiy to determine if we need
17697 to set the WS_EX_LAYERED bit. [Fixes bug #80185]
17699 2006-12-11 Jonathan Pobst <monkey@jpobst.com>
17701 * Control.cs: Fix NRE if Control.Site was set to null.
17703 2006-12-11 Chris Toshok <toshok@ximian.com>
17705 * Control.cs: ControlCollection.Remove should return if the arg is
17706 null, and ControlCollection.SetChildIndex should raise a ANE.
17708 2006-12-11 Gert Driesen <drieseng@users.sourceforge.net>
17710 * Control.cs: Verify value set for Dock property. Code formatting
17713 2006-12-11 Jackson Harper <jackson@ximian.com>
17715 * TextControl.cs: Draw the caret and the selection when a flag is
17717 * TextBoxBase.cs: We want to draw the caret and the selection for
17718 TextBox but not for TextBoxBase.
17719 - If the window is resized and scrolling is no longer needed (the
17720 whole doc is visible) set the scroll position to zero.
17721 - The default SelectWord (the one TextBox uses) should move the
17722 caret to the end of the word.
17723 - SelectAll moves the caret to the end of the selection.
17724 * TextBox.cs: We don't selectall on focus, we just do it when the
17725 control is created.
17727 2006-12-11 Mike Kestner <mkestner@novell.com>
17729 * ComboBox.cs: stub in a 2.0 override for ProcessKeyEventArgs.
17731 2006-12-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
17733 * ListView.cs: Add Insert, IndexOfKey, RemoveByKey and indexer
17735 * ListViewItem.cs: Add Name 2.0 property.
17737 2006-12-11 Andreia Gaita <avidigal@novell.com>
17739 * TabControl.cs: Set visibility on selected or default tab
17740 when tabcontrol handle is created, so that it's contents
17741 actually show up (duh). Fixes #80193
17742 Don't redraw the control if there is no handle created, as
17743 the selected index might be completely invalid. Added some tests
17746 2006-12-11 Everaldo Canuto <everaldo@simios.org>
17748 * ToolBar.cs: Uses maximun width and height of all buttons as
17749 button rectangle when ButtonSize specified, it looks strange but
17750 is what happens in Win32. Fixes #80189.
17752 2006-12-11 Jackson Harper <jackson@ximian.com>
17754 * TextControl.cs: Need to track undo levels ourself, since
17755 compound actions will mess them up.
17757 2006-12-10 Andreia Gaita <avidigal@novell.com>
17759 * TabControl.cs: Raise SelectedIndexChanged for 1.1 if the
17760 SelectedIndex value is changed (even if it's not valid).
17761 Reset SelectedIndex to 0 when the handle is created and if
17762 the current index is invalid.
17763 Fixes SelectdeIndex unit tests and #80128
17765 2006-12-08 Chris Toshok <toshok@ximian.com>
17767 * DataGrid.cs (set_CurrentCell): because EnsureCellVisibility
17768 calls EndEdit, it needs to be called before we set current_cell to
17769 its new value. Otherwise, we end up committing the value in the
17770 textbox to the new cell as well. Fixes bug #80160.
17772 2006-12-08 Chris Toshok <toshok@ximian.com>
17774 * Form.cs (set_CancelButton): if the button's DialogResult is
17775 None, set it to Cancel. Fixes bug 80180.
17777 2006-12-08 Jackson Harper <jackson@ximian.com>
17779 * TextBoxBase.cs: Ugh, ClientSize can be 0,0 sometimes, so we need
17780 to watch ourselves when setting the canvas size and setting the
17783 2006-12-08 Chris Toshok <toshok@ximian.com>
17785 * DataGrid.cs: comment out the two MakeTransparent calls for the
17786 time being so people using trunk (and not 1.2.2) on windows can
17787 actually use the datagrid. This deals with bug #80151.
17789 2006-12-08 Jonathan Pobst <monkey@jpobst.com>
17791 * ThemeWin32Classic.cs: Change ButtonBase_DrawImage to use the
17792 Graphics.DrawImage (image, int, int, int, int) overload instead
17793 of Graphics.DrawImage (image, int, int). GDI+ can't figure out
17794 the dpi difference and was blurring images it drew.
17797 2006-12-08 Chris Toshok <toshok@ximian.com>
17799 * ThemeWin32Classic.cs (DataGridPaintRows): handle case where
17800 rowcnt is 0 (such as with an empty datasource), and make sure we
17801 initialize not_usedarea.Y to cells.Y, so we don't draw over the
17802 other areas (caption, parent row, etc, etc). Fixes bug #80095.
17804 2006-12-08 Chris Toshok <toshok@ximian.com>
17806 * DataGridColumnStyle.cs (SetDataGrid): don't try to access a null
17809 2006-12-08 Chris Toshok <toshok@ximian.com>
17811 [ Fixes bug #80167 ]
17813 * ThemeWin32Classic.cs: don't draw the image if the button's flat
17814 style is FlatStyle.System.
17816 * ButtonBase, ThemeClearlooks.cs, ThemeGtk.cs, ThemeNice.cs: make
17817 ButtonBase.flat_style private, and switch uses of it to the public
17820 2006-12-08 Chris Toshok <toshok@ximian.com>
17822 [ Fixes bug #80121 ]
17824 * ThemeWin32Classic.cs: center the caption text in the datagrid
17827 * DataGrid.cs: lessen the amount we add to the caption height from
17828 6 to 2. 6 was making it huge.
17830 2006-12-08 Andreia Gaita <avidigal@novell.com>
17832 * UpDownBase: Handle MouseWheel call directly instead of capturing
17833 the inner textbox's OnMouseWheel. Fixes #80166
17835 2006-12-08 Jackson Harper <jackson@ximian.com>
17837 * TextControl.cs: We need to invalidate the textbox when we empty
17838 it (how had this not been discovered before?)
17840 2006-12-08 Jackson Harper <jackson@ximian.com>
17842 * TextBoxBase.cs: Reworked the mouse down code so I could get it
17843 to behave like MS, we now ignore the eventargs.Click and just
17844 track state ourself, which we were already doing anyways.
17845 - Constrain the double click handler to the double click size.
17847 2006-12-08 Chris Toshok <toshok@ximian.com>
17849 * DataGrid.cs: the mousewheel code shouldn't try to scroll in a
17850 direction if that scrollbar isn't shown. fixes bug #80158.
17852 2006-12-08 Andreia Gaita <avidigal@novell.com>
17854 * NumericUpDown.cs: Update value on getter. Fixes #79950
17856 2006-12-08 Chris Toshok <toshok@ximian.com>
17858 * MenuItem.cs: add back in the event cloning code. I didn't know
17859 how to do it in the face of the EventHandlerList work i'd done
17860 last week. Fixes bug #80183.
17862 2006-12-08 Jonathan Pobst <monkey@jpobst.com>
17864 * Control.cs: Add an invalidate to the BackgroundImage setter.
17867 2006-12-07 Jonathan Pobst <monkey@jpobst.com>
17869 * ToolStrip*: Add some small properties reported by MoMA, fix event
17870 firing and default properties based off of unit tests, and add some
17871 attributes based off of the class status page.
17873 2006-12-07 Jackson Harper <jackson@ximian.com>
17875 * TextBoxBase.cs: Take HideSelection into account when determining
17876 whether or not to show the selection.
17877 * RichTextBox.cs: After inserting the RTF into the document move
17878 the cursor to the beginning of the document.
17880 2006-12-07 Jonathan Pobst <monkey@jpobst.com>
17882 * Control.cs: Remove static ArrayList "controls" which maintained
17883 a reference to every control created.
17884 * Application.cs: Create a static FormCollection to maintain a reference
17885 to every form created. Use it in places that formerly enumerated through
17886 the controls one looking for forms.
17887 * Form.cs: Add and remove self from above FormCollection.
17889 2006-12-07 Alexander Olk <alex.olk@googlemail.com>
17891 * MimeIcon.cs: gdk_pixbuf_save_to_buffer is part of libgdk-pixbuf,
17892 not libgdk (though it makes me wonder why I didn't have any
17895 2006-12-07 Chris Toshok <toshok@ximian.com>
17897 [ you had to know this was coming after that last commit...]
17899 * XplatUIX11.cs: implement the 3 Offscreen functions in terms of
17900 XPixmaps (CreateOffscreenDrawable maps to XCreatePixmap,
17901 DestroyOffscreenDrawable to FreePixmap, and BlitFromOffscreen to
17904 2006-12-07 Chris Toshok <toshok@ximian.com>
17906 * XplatUI.cs: add 3 calls (CreateOffscreenDrawable,
17907 DestroyOffscreenDrawable, and BlitFromOffscreen) that encompass
17908 all the behavior we need for double buffering.
17910 * XplatUIDriver.cs: implement the 3 double buffer methods using a
17911 client side Bitmap, just like the old Control-based double buffer
17912 code did. The methods are virtual, so each XplatUI driver
17913 subclass can replace the implementation to use a faster, platform
17916 * Control.cs: make use of the 3 Offscreen XplatUI calls in the
17917 double buffer code, and clean things up a bit in the process.
17919 2006-12-06 Chris Toshok <toshok@ximian.com>
17921 * Control.cs: reindent WndProc.
17923 2006-12-06 Chris Toshok <toshok@ximian.com>
17925 [ I wanna be like BenM when I grow up ]
17927 * Hwnd.cs: create a single static Graphics object on the static
17928 Bitmap we create. use this for our text measurements.
17930 * Control.cs (DeviceContext): stop using the backbuffer's dc_mem.
17931 This was causing us to allocate a backbuffer for every control,
17932 even when it wasn't flagged as double buffered. Instead use the
17933 single graphics instance. This might have implications for
17934 multithreaded applications. If we run into problems we can switch
17935 to creating 1 Graphics per control, on the static Hwnd bitmap.
17937 this change nets us a 7M savings in private dirty mappings when
17938 running FormsTest.exe.
17940 2006-12-06 Chris Toshok <toshok@ximian.com>
17942 * ListView.cs: the BackgroundImage override is just to set
17943 attributes. chain up to base.BackgroundImage.
17945 * RichTextBox.cs: same.
17947 * ToolBar.cs: same, but we need to also redraw the toolbar when it
17948 changes, so instead a handler for BackgroundImageChanged.
17950 * Control.cs: make background_image private.
17952 2006-12-06 Chris Toshok <toshok@ximian.com>
17954 * ScrollBar.cs: change the assignment of cursor to Cursor. not
17955 sure we even need this assignment, but roll with it for now.
17957 * Control.cs: make the cursor field private.
17959 2006-12-06 Chris Toshok <toshok@ximian.com>
17961 * Form.cs: we don't need to explicitly set ImeMode to
17962 ImeMode.NoControl - that's a natural fallout of Control.ImeMode's
17963 behavior in the face of ImeMode.Inherit.
17965 * ButtonBase.cs: change DefaultImeMode to ImeMode.Disable, and
17966 change the ctor's assignment to use ImeMode instead of ime_mode.
17968 * Control.cs (get_ImeMode): don't assume DefaultImeMode ==
17969 ImeModeInherit. Only check for the parent's imemode (and return
17970 NoControl if there is no parent) if ime_Mode == ImeMode.Inherit.
17971 This fixes the button unit test, which sets both ImeMode and
17972 DefaultImeMode to ImeMode.Disable.
17974 also make the ime_mode field private.
17976 2006-12-06 Chris Toshok <toshok@ximian.com>
17978 * Control.cs: make control_style private.
17980 * TextBoxBase.cs: fix the HandleClick override. it was explicitly
17981 setting the styles to true, then setting them to false instead of
17982 reverting to their previous values.
17984 also, call SetStyle on the scrollbars instead of using
17985 control_style directly.
17987 2006-12-06 Jonathan Pobst <monkey@jpobst.com>
17989 * FormCollection.cs: Implement. [2.0]
17991 2006-12-06 Chris Toshok <toshok@ximian.com>
17993 * Control.cs: make tab_stop private.
17995 * Label.cs: set TabStop, not tab_stop. reformat some event
17996 add/remove methods to make them more compact.
17998 2006-12-06 Chris Toshok <toshok@ximian.com>
18000 * RadioButton.cs: fix TabStop handling.
18002 2006-12-06 Chris Toshok <toshok@ximian.com>
18004 * TextBox.cs: remove the explicit assignments to has_focus.
18007 * ButtonBase.cs: remove the assignment to has_focus. Control will
18010 2006-12-06 Chris Toshok <toshok@ximian.com>
18012 * ButtonBase.cs: remove all uses of is_enabled from this code.
18013 it's always true when any of the code containing the checks is
18016 2006-12-06 Chris Toshok <toshok@ximian.com>
18018 * ImageList.cs: reinstate the ShouldSerialize*/Reset* methods,
18019 with different semantics (some are present in both 1.1 and 2.0
18020 profiles) so that we match MS's behavior in our unit tests.
18022 2006-12-06 Jackson Harper <jackson@ximian.com>
18024 * TextControl.cs: Make this operation undoable.
18025 * TextBoxBase.cs: Factor the border width into the preferred
18027 - implement Modified as per the spec.
18029 2006-12-06 Chris Toshok <toshok@ximian.com>
18031 * Timer.cs, Control.cs, Menu.cs: make control_tag private.
18033 2006-12-06 Chris Toshok <toshok@ximian.com>
18035 * Control.cs: make right_to_left and context_menu fields private.
18037 2006-12-06 Chris Toshok <toshok@ximian.com>
18039 * AccessibleObject.cs, Control.cs, XplatUIX11GTK.cs,
18040 XplatUIX11.cs, Form.cs, RadioButton.cs, ScrollableControl.cs: make
18041 Control.child_controls private. switch all uses over to
18044 2006-12-06 Chris Toshok <toshok@ximian.com>
18046 * System.Windows.Forms/GroupBox.cs,
18047 System.Windows.Forms/AccessibleObject.cs,
18048 System.Windows.Forms/ErrorProvider.cs,
18049 System.Windows.Forms/Control.cs,
18050 System.Windows.Forms/UpDownBase.cs,
18051 System.Windows.Forms/ScrollBar.cs,
18052 System.Windows.Forms/DateTimePicker.cs,
18053 System.Windows.Forms/Form.cs, System.Windows.Forms/Label.cs,
18054 System.Windows.Forms/ToolTip.cs,
18055 System.Windows.Forms/RadioButton.cs,
18056 System.Windows.Forms/LinkLabel.cs,
18057 System.Windows.Forms/Splitter.cs,
18058 System.Windows.Forms/TextBoxBase.cs,
18059 System.Windows.Forms/ToolStripTextBox.cs,
18060 System.Windows.Forms/ContainerControl.cs,
18061 System.Windows.Forms/ThemeWin32Classic.cs,
18062 System.Windows.Forms/SizeGrip.cs,
18063 System.Windows.Forms/ToolStripDropDown.cs,
18064 System.Windows.Forms/ScrollableControl.cs: Make Control.parent
18065 private. switch all uses over to Control.Parent.
18067 2006-12-06 Chris Toshok <toshok@ximian.com>
18069 * RichTextBox.cs: don't assign to has_focus in GotFocus/LostFocus.
18070 Control does this before calling emitting these events.
18072 * TabControl.cs: same.
18074 * ThemeWin32Classic.cs: use Control.ClientRectangle instead of
18075 Control.client_rect.
18077 * ButtonBase.cs: use the ClientSize property instead of the
18080 * ScrollableControl.cs: same.
18082 * Control.cs: another pass at making properties private. also,
18083 move the initialization of tab_stop to the ctor.
18085 2006-12-05 Andreia Gaita <avidigal@novell.com>
18087 * TabControl.cs: Let the selected index be set freely if the
18088 control handle is not yet created.
18090 2006-12-05 Jonathan Pobst <monkey@jpobst.com>
18092 * Control.cs: Revert dist_top, dist_right, and dist_bottom to
18093 internal until I can rewrite DefaultLayout.
18094 * ToolStrip.cs: Fix build error and some general cleaning.
18095 * ToolStripControlHost.cs, SplitterPanel.cs, DataGridView.cs:
18096 Fix build errors caused by making some of Control's fields private.
18098 2006-12-05 Jackson Harper <jackson@ximian.com>
18100 * TextControl.cs: Redo Insert a little so that it use IndexOf
18101 instead of Split, this prevents it from messing up on things like
18102 \n\n\n. Also more effecient since the split array doesn't need to
18104 * TextBoxBase.cs: AppendText doesnt handle multiline and non
18105 multiline text differently, this is the first of many fixes that
18106 will make multiline/non-multiline the same thing as far as the
18107 TextBoxBase is concerned.
18108 - Don't split the text and insert lines, this can lose some line
18109 endings (like is the last line a soft or hard break). Instead use
18111 - Fix an off by one when combining all the lines in the Text
18113 - Remove separate multiline handling from the Text getter/setter.
18115 2006-12-05 Chris Toshok <toshok@ximian.com>
18117 * ButtonBase.cs: a few changes:
18119 - don't reinitialize internal Control fields in the ctor when they
18120 have the same values as Control sets them.
18122 - don't set has_focus in OnGotFocus/OnLostFocus. Control does
18123 this before calling those methods.
18125 - we don't need to call Refresh for anything. use Invalidate
18128 - OnEnabledChanged doesn't need to redraw at all - Control.cs
18129 calls Refresh in its OnEnabledChanged.
18131 - several of the events we were registered for in the ctor to
18132 redraw ourselves already include calls to Invalidate in the
18133 property setters that raise the events. remove the extra
18136 - reformat a switch statement that was 83274658 columns wide.
18138 2006-12-05 Mike Kestner <mkestner@novell.com>
18140 * ComboBox.cs: fix a unit test regression from a TextBox
18141 SelectionLength return of -1 when there's no selection.
18143 2006-12-05 Chris Toshok <toshok@ximian.com>
18145 * Control.cs, Button.cs, ThemeGtk.cs, Form.cs, ListView.cs,
18146 ThemeWin32Classic.cs, SizeGrip.cs, ToolBar.cs: first pass at
18147 cleaning up some of the internal Control fields being used by
18150 2006-12-05 Mike Kestner <mkestner@novell.com>
18152 * ComboBox.cs: fix some Simple mode regressions. Set Visible on the
18153 listbox after AddImplicit calls since it defaults to hidden. Add a
18154 hack to preserve requested heights across DropDownStyle changes.
18156 2006-12-05 Jonathan Pobst <monkey@jpobst.com>
18158 * PropertyGrid.cs: Hide FindFirstItem method from public API.
18160 2006-12-05 Chris Toshok <toshok@ximian.com>
18162 * DataGridView.cs: fix compiler warnings.
18164 * PrintControllerWithStatusDialog.cs: same.
18166 * ToolBar.cs: same.
18168 * FolderBrowserDialog.cs: same.
18170 * Splitter.cs: same.
18172 * DataGridViewComboBoxCell.cs: same.
18174 * XplatUIWin32.cs: same.
18176 * PictureBox.cs: same.
18178 * Win32DnD.cs: same.
18180 * PageSetupDialog.cs: same.
18182 * FileDialog.cs: same.
18184 * PrintDialog.cs: same.
18186 * DataGridTextBoxColumn.cs: same.
18188 * DrawTreeNodeEventArgs.cs: same (and fix corcompare)
18190 2006-12-05 Chris Toshok <toshok@ximian.com>
18192 * TextBox.cs, CheckedListBox.cs, MonthCalendar.cs, Menu.cs,
18193 MainMenu.cs, ListView.cs, LabelEditTextBox.cs, ToolBar.cs: more
18194 System.ComponentModel.EventHandlerList work.
18196 2006-12-05 Jonathan Chambers <joncham@gmail.com>
18198 * DrawTreeNodeEventArgs.cs: Added.
18200 2006-12-05 Rolf Bjarne Kvinge <RKvinge@novell.com>
18202 * InternalWindowManager.cs: Remove an unused field.
18204 2006-12-05 Rolf Bjarne Kvinge <RKvinge@novell.com>
18206 * InternalWindowManager.cs:
18207 - Save the point where the title bar is clicked.
18209 * MdiWindowManager.cs:
18210 - Only allow moving of the window as long as the
18211 clicked point on the title bar does not get out of
18212 MdiClient's rectangle. Fixes #79982.
18215 - Added Horizontal/VerticalScrollbarVisible.
18216 - Simplified the scrollbar sizing algorithm.
18217 - Cache the difference in scrolled value in
18218 H/VBarValueChanged and move the calculation out
18221 2006-12-05 Rolf Bjarne Kvinge <RKvinge@novell.com>
18223 * Control.cs: Make the Console.WriteLine in WndProc
18226 2006-12-05 Chris Toshok <toshok@ximian.com>
18228 * ToolStripManager.cs, ToolStripButton.cs,
18229 ToolStripContentPanel.cs, ToolStripComboBox.cs, ToolStrip.cs,
18230 ToolStripMenuItem.cs, ToolStripItem.cs, ToolStripControlHost.cs,
18231 ToolStripSplitButton.cs, ToolStripSeparator.cs,
18232 ToolStripRenderer.cs, ToolStripDropDownItem.cs,
18233 ToolStripProgressBar.cs, ToolStripContainer.cs,
18234 ToolStripTextBox.cs, ToolStripPanel.cs, ToolStripDropDown.cs: move
18235 to using System.ComponentModel.EventHandlerList.
18237 2006-12-04 Chris Toshok <toshok@ximian.com>
18239 * LinkLabel.cs: fix up compiler warnings.
18241 * TableLayoutSettings.cs: same.
18243 * TreeView.cs: same.
18245 * ToolBar.cs: same.
18247 * TabControl.cs: same.
18249 * RichTextBox.cs: same.
18251 * ListViewItem.cs: same.
18253 * PropertyGrid.cs: same.
18255 * DataGridViewRowPostPaintEventArgs.cs: corcompare fix.
18259 * TextRenderer.cs: fix up compiler warnings.
18263 * Form.cs: corcompare fixes.
18265 * PictureBox.cs: fix up compiler warnings.
18267 * ImageListStreamer.cs: same.
18269 * TrackBar.cs: corcompare fix.
18271 * Control.cs: fix up compiler warnings.
18273 * SplitterPanel.cs: same.
18275 * NumericTextBox.cs: same.
18277 * ImageList.cs: same.
18279 * StatusStrip.cs: same.
18281 * ProgressBar.cs: corcompare fix.
18283 * ToolStripButton.cs: fix up compiler warnings.
18285 * ToolStripStatusLabel.cs: same.
18287 * ToolStripSplitButton.cs: same.
18289 * ToolStripSeparator.cs: same.
18291 * ToolStripProgressBar.cs: same.
18293 * ToolStripDropDownMenu.cs: same
18295 * ToolStripDropDown.cs: same.
18297 * ToolStripDropDownButton.cs: same.
18299 * ToolStrip.cs: same.
18301 * ToolStripControlHost.cs: same.
18303 * ToolStripContentPanel.cs: same.
18305 * ToolStripDropDown.cs: same.
18307 * ToolStripContainer.cs: same.
18309 * ToolStripPanel.cs: same, and add "new" where we need it to work
18310 with the new ArrangedElementCollection.
18312 * ToolStripItemCollection.cs: add "new" where we need it to work
18313 with the new ArrangedElementCollection.
18315 2006-12-04 Andreia Gaita <avidigal@novell.com>
18317 * TabControl.cs: Fix default tab selection to after TabControl
18318 gets focus and not before. Fixes #80128
18320 2006-12-04 Chris Toshok <toshok@ximian.com>
18322 * DataGridTableStyle.cs: remove the gross calling of
18323 datagrid.Refresh from here. It's a broken idea and it doesn't
18326 * DataGrid.cs: instead, just register/unregister from the
18327 DataGridTableStyle events in CurrentTableStyle. we play it
18328 conservatively and EndEdit + CalcAreasAndInvalidate on any event,
18329 even though some would most likely not require it. Fixes bug
18330 #80115 (and one portion of #80117 as a side effect).
18332 2006-12-04 Chris Toshok <toshok@ximian.com>
18334 * DataGrid.cs (set_CaptionVisible): EndEdit before doing the work
18335 so the textbox (if any) goes away. Fixes bug #80117.
18337 2006-12-04 Chris Toshok <toshok@ximian.com>
18339 * DataGridColumnStyle.cs: set the column's readonly property
18340 initially based on the property descriptor's IsReadOnly. Fixes
18343 2006-12-04 Chris Toshok <toshok@ximian.com>
18345 * ComboBox.cs: wrap the dropdown style changing work in
18346 SuspendLayout/ResumeLayout. Fixes bug #79968.
18348 2006-12-04 Jackson Harper <jackson@ximian.com>
18350 * TextBoxBase.cs: Fix off by one, since these are one-based.
18351 * TextBox.cs: Select all the text when we get focus. The TextBox
18352 does this but the RTB does not.
18354 2006-12-04 Chris Toshok <toshok@ximian.com>
18356 * DataGridTextBoxColumn.cs: remove some spew.
18358 * DataGridColumnStyle.cs (SetColumnValueAtRow): this seems right
18359 but some part of me is saying "it shouldn't be here.." At any
18360 rate, it fixes bug #80046. Call IEditableObject.EndEdit after
18363 2006-12-04 Chris Toshok <toshok@ximian.com>
18365 * DataGridColumnStyle.cs (SetDataGrid): call CheckValidDataSource
18366 to reassign the propertydescriptor.
18368 2006-12-04 Jackson Harper <jackson@ximian.com>
18371 * TextControl.cs: Remove some unused variables. Maybe this will
18372 patch things up between mike and I.
18373 - don't split lines less then one char wide, if the viewport is
18374 that small text won't be visible anyways.
18376 2006-12-04 Jackson Harper <jackson@ximian.com>
18378 * TextBoxBase.cs: Default selection length is -1, need to do some
18379 more testing on windows to see when this is used for the property.
18380 - Redid the Lines [] property to that we properly remove soft line
18382 - added support for preserving carriage returns
18383 - CanUndo is not a variable like 'is undo enabled' it just returns
18384 true if there is undo operations available.
18385 - AppendText doesn't need to grab the last tag itself anymore,
18386 this happens automatically when we move the cursor.
18387 * TextControl.cs: Add CompoundActions to the undo class. This
18388 allows combining the other operations into one big option. ie a
18389 paste will combine { delete old, insert new, move cursor }
18390 - Add InsertString undo operation
18391 - New method for deleting multiline text
18392 - Add carriage returns to lines. So we can preserve carriage
18393 returns when text is 'roundtripped'
18395 2006-12-04 Chris Toshok <toshok@ximian.com>
18397 * DataGrid.cs (CalcCellsArea): cells_area.Width/Height are at a
18398 minimum 0. Fixes the scrollbar exception in bug #80136.
18400 2006-12-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
18403 * MdiWindowManager: Removed unused fields and methods.
18405 2006-12-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
18407 * StatusBar.cs: Update all panels when a AutoSize=Contents
18408 panel needs updating.
18410 * StatusBarPanel.cs: Remove twidth and only use initialize.
18413 2006-12-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
18415 * Form.cs: When a form's MdiParent is set add it directly
18416 on top of the z-order in stead of relying on MdiClient's
18417 ActivateChild to do it. Fixes #80135.
18420 - Remove original_order, mdi_child_list is already doing
18422 - Create mdi_child_list on construction in
18423 stead of first use (avoids a few null checks).
18425 * MenuItem.cs: Use an already existing list of mdi children
18426 to get the correct order of children and remove the other
18429 2006-12-04 Chris Toshok <toshok@ximian.com>
18431 * PropertyGridView.cs: cached_splitter_location is only used in
18432 !DOUBLEBUFFER code.
18434 * PropertyGrid.cs: implement the ComComponentNameChanged event
18435 using Events, hoping that would fix the warning. Looks like a
18436 compiler bug instead (#80144).
18438 * PropertyManager.cs: remove unused method.
18440 2006-11-04 Everaldo Canuto <everaldo@simios.org>
18442 * ThemeWin32Classic.cs: Dont draw arrow when menuitem on menubar,
18443 include parentesis to fix expression evaluation. Fixes #79634.
18445 2006-11-02 Everaldo Canuto <everaldo@simios.org>
18448 - Changes to fix behavior in Menu control, some reported in #80097
18449 and other detected during behavior refactory like a select event
18451 - Remove unneded "if's" conditions.
18452 - Created an internal to flag when popup is active in control, we need
18453 it because in .NET you can have menu active but without popup active
18454 when you active menu using popup without visible items.
18455 - Mimic win32 behavior for Select and Popup events.
18456 - Dont open popup menu when you dont have visible subitems.
18457 - Do nothing when click on disabled menu item.
18458 - Some small changes to follow the coding style guidelines.
18459 - Unselect menu only when another control gives focus. Fixes #80097.
18460 - Remove unused code.
18462 * MenuItem.cs: internal VisibleItems method to check if menu
18463 theres visible subitems, it will be usefull to fix some
18464 behavior in Menu control.
18466 2006-11-01 Everaldo Canuto <everaldo@simios.org>
18468 * Timer.cs: Tag property for 2.0 profile.
18470 2006-12-01 Chris Toshok <toshok@ximian.com>
18472 [ after removing all warning suppressions, this cleans up over 100 warnings. ]
18474 * Win32DnD.cs: comment out some unused fields.
18476 * XplatUIWin32.cs: comment out some unused pinvokes, and remove
18477 some unused properties/methods.
18479 * XplatUIX11.cs: fix MousePosition so we override the base class's
18480 property instead of conflicting with it.
18482 * PictureBox.cs: comment out some unused fields
18484 * OSXStructs.cs: make some struct fields public.
18486 * XplatUIOSX.cs: comment out some unused pinvokes, and fix
18487 MousePosition so we override the base class's property instead of
18488 conflicting with it.
18490 * X11Dnd.cs: comment out some unused fields
18492 * X11DesktopColors.cs: fix some struct field visibility to quiet
18495 * X11Dnd.cs: remove some debug code.
18497 * ThemeClearlooks.cs: comment out unused field.
18499 * ThemeNice.cs: mark some methods as overriding ThemeWin32Classic as needed.
18501 * ThemeGtk.cs: comment out some unused pinvokes.
18503 * Timer.cs: remove some unused fields.
18505 * ThemeClearlooks.cs: comment out unused field.
18507 * UpDownBase.cs: comment out unused field.
18509 * DataObject.cs: comment out unused field.
18511 * DataGridBoolColumn.cs: reomve unused field.
18513 * DataGrid.cs: remove unused field.
18515 * Cursor.cs: remove old ToBitmap code.
18517 * ControlPaint.cs: remove unused method.
18519 * ScrollBar.cs: remove unused fields.
18521 * ComboBox.cs: remove unused field, and chain up to
18522 AccessibleObject ctor.
18524 * ListBox.cs: remove unused field.
18526 * ButtonBase.cs: wrap a couple fields in NET_2_0.
18528 * GridEntry.cs: remove unused fields.
18530 * Binding.cs: remove unused fields.
18532 * AxHost.cs: remove unused method.
18534 * ContainerControl.cs: remove unused field.
18536 * ScrollableControl.cs: remove unused fields.
18538 2006-12-01 Chris Toshok <toshok@ximian.com>
18540 * XplatUI.cs, XplatUIWin32.cs, XplatUIGTK.cs: nuke
18541 the Where/WhereString stuff. it's easy enough to CWL
18542 Environment.StackTrace.
18544 * XplatUIX11.cs: same, but also fix up a lot of mcs warnings about
18545 unused private fields.
18547 2006-12-01 Jackson Harper <jackson@ximian.com>
18549 * TextControl.cs: Do not update the view while inserting multiline
18550 text. If we update the view we might wrap lines, before entering
18551 the new lines, which causes the new line insertion calculations to
18552 be totally fubared.
18553 - Remove an old TODO
18554 - Make debug output a little nicer
18556 2006-12-01 Chris Toshok <toshok@ximian.com>
18558 * ToolBar.cs: revert the ImeMode fix here and add an XXX comment.
18560 2006-12-01 Chris Toshok <toshok@ximian.com>
18562 [ fix the majority of the CS0108 warnings we've been suppressing ]
18564 * TreeView.cs: mark BackgroundImageChanged as 'new'.
18566 * ToolBar.cs: ImeMode just passes stuff to Control. Rename Layout
18567 to "LayoutToolBar" to quiet mcs.
18569 * TabControl.cs: mark our ControlCollection class as 'new'.
18571 * TextBoxBase.cs: mark some events as 'new'.
18573 * Splitter.cs: TabStop is 'new'.
18575 * ControlBindingsCollection.cs: mark a few methods as new since
18576 they change the visibility from protected to public.
18578 * RadioButton.cs: DoubleClick -> base class, and remove unused
18581 * MonthCalendar.cs: ImeMode property -> base class, and mark many
18584 * NumericUpDown.cs: TextChanged -> base class.
18586 * CheckedListBox.cs: mark our ObjectCollection class as new to
18589 * FolderBrowserDialog.cs: make HelpRequest event new and have it
18590 muck with the base class.
18592 * StatusBar.cs: fix some mcs warnings about Update being the same
18593 name as a base class method.
18595 * RichTextBox.cs: mark some events as new, and make them do things
18596 to the base class impl.
18598 * UserControl.cs: mark TextChanged as new, and have it manipulate
18601 * UpDownBase.cs: mark some things new.
18603 * CheckBox.cs: mark DoubleClick "new", and add some text about
18604 what we need to look at.
18606 * Panel.cs: make the events "new", and manipulate the base
18607 version. these are just here for attributes.
18609 * AccessibleObject.cs: make owner private.
18611 * Control.cs: deal with AccessibleObject.owner being private.
18612 cache our own copy if we need it.
18614 * Button.cs: add "new" to the DoubleClickEvent.
18616 * ListBox.cs: no need to track our own has_focus here. let
18617 Control.has_focus do it for us. Also some other work to clear up
18618 warnings about not overriding base class methods of the same name.
18620 * ComboBox.cs: clear up some warnings about not override base
18621 class methods of the same name.
18623 2006-12-01 Chris Toshok <toshok@ximian.com>
18625 * Form.cs: flag a few things as "new" to quiet some of the mcs
18630 * PrintPreviewDialog.cs: same.
18632 * DataGridView.cs: fix a ton of corcompare warnings. not all, but
18633 now DGV isn't so horrible on the class status page. also, move
18634 all events to using System.ComponentModel.EventHandlerList. my
18637 2006-12-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
18639 * MdiWindowManager.cs:
18640 - Set form to active mdi child if shown,
18641 and update the active mdi child to the next
18642 remaining child in the z-order if the form is hidden.
18645 - Track if the form has been visible and if its
18646 visibility is beeing changed, so that the MdiClient
18647 can properly decide the ActiveMdiChild. The MdiClient
18648 cannot track this since the form can change visibility
18649 before MdiClient is created.
18652 - Don't activate anything of the parent form is changing
18654 - Rework ActiveMdiChild to only return visible mdi
18655 children and take into account several other corner
18658 2006-12-01 Chris Toshok <toshok@ximian.com>
18660 * IBindableComponent.cs: new 2.0 interface.
18662 2006-12-01 Gert Driesen <drieseng@users.sourceforge.net>
18664 * DataGrid.cs: Font for caption area is bold by default.
18666 2006-12-01 Everaldo Canuto <everaldo@simios.org>
18668 * Menu.cs: Tag property for 2.0.
18670 2006-11-01 Everaldo Canuto <everaldo@simios.org>
18672 * ThemeWin32Classic.cs: Adjust menu separator drawing.
18674 2006-12-01 Chris Toshok <toshok@ximian.com>
18676 * TreeView.cs: doh, the Begin* events should be
18677 TreeViewCancelEventHandler.
18679 2006-12-01 Chris Toshok <toshok@ximian.com>
18681 * Form.cs: Form.ControlCollection already stores off the
18682 form_owner field. don't access the base class's internal "owner"
18685 * Control.cs: make all the fields in Control.ControlCollection
18686 private. there's no need for any internal fields here.
18688 2006-12-01 Chris Toshok <toshok@ximian.com>
18690 * DataGrid.cs: call SetDataSource instead of CalcGridAreas in
18691 OnHandleCreated. Fixes bug #80109.
18693 2006-12-01 Chris Toshok <toshok@ximian.com>
18695 * Button.cs, PropertyGridTextBox.cs, ComboBox.cs,
18696 SplitContainer.cs, Control.cs, StatusStrip.cs,
18697 DataGridTableStyle.cs, MenuItem.cs, DomainUpDown.cs, ImageList.cs,
18698 NumericTextBox.cs, NumericUpDown.cs, Panel.cs, CommonDialog.cs,
18699 DataGrid.cs, ScrollBar.cs, TrackBar.cs, PictureBox.cs,
18700 DateTimePicker.cs, StatusBar.cs, Form.cs, PrintPreviewDialog.cs,
18701 Label.cs, UserControl.cs, CheckBox.cs, RadioButton.cs,
18702 LinkLabel.cs, ListControl.cs, PropertyGrid.cs, Splitter.cs,
18703 MenuStrip.cs, FolderBrowserDialog.cs, NotifyIcon.cs,
18704 TextBoxBase.cs, ListView.cs, DataGridBoolColumn.cs,
18705 PrintPreviewControl.cs, RichTextBox.cs, ListBox.cs, TabControl.cs,
18706 DataGridColumnStyle.cs, ContextMenu.cs, TreeView.cs:
18708 do most of the work to convert our code over to use
18709 System.ComponentModel.Component.Events for
18710 adding/removing/dispatching events.
18713 2006-11-30 Jonathan Pobst <monkey@jpobst.com>
18715 * DataGridView.cs: Fix an ArgumentNullException reported
18716 twice today in IRC.
18718 2006-11-30 Mike Kestner <mkestner@novell.com>
18720 * ComboBox.cs: fix the scrollbar mouse event forwarding in the
18721 grabbed listbox. Fixes #80036 and #80101.
18723 2006-11-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
18725 * Message.cs: Changed ToString() to match MS.
18727 2006-11-30 Jackson Harper <jackson@ximian.com>
18729 * TextBoxBase.cs: You can still change the selected text on a read
18731 * TextControl.cs: Lower magic number for wrap calculations. This
18732 lets text get closer to the right (far) edge.
18734 2006-11-30 Jonathan Pobst <monkey@jpobst.com>
18736 * Control.cs: Tweak 2.0 layout properties.
18737 * Form.cs: Switch ToolStripMenuTracker hooks to ToolStripManager.
18738 * TextRenderer.cs: Add a new overload.
18739 * ToolStrip*: Huge amount of changes and new features.
18741 2006-11-30 Mike Kestner <mkestner@novell.com>
18743 * ComboBox.cs: fixes for LargeChange and Maximum to get the
18744 scroll range correct. Fixes #79994.
18746 2006-11-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
18748 * MdiWindowManager.cs: Update main form's text when
18749 a form is closed. (fixes #80038)
18751 2006-11-30 Everaldo Canuto <everaldo@simios.org>
18754 - Fix an regression in ButtonSize.
18755 - Get ImeMode default value change to "Disable".
18756 - Get ShowTooltips default value change to true, default value is
18757 "false" but after make a test in .NET we get "true" result as default.
18759 2006-11-29 Jonathan Pobst <monkey@jpobst.com>
18761 * ToolStripDropDown.cs: Fix for SupportsTransparency change.
18763 2006-11-29 Chris Toshok <toshok@ximian.com>
18765 * XplatUIWin32.cs (GetWindowTransparency): check return value of
18766 GetLayeredWindowAttributes. if it's 0, return 1.0, as
18767 SetWindowTransparency hasn't been called.
18769 2006-11-29 Chris Toshok <toshok@ximian.com>
18771 * Form.cs (set_TransparencyKey): only call SetWindowTransparency
18773 (set_AllowTransparency): reorder things a little so that the
18774 WS_EX_LAYERED style is removed properly.
18776 2006-11-29 Chris Toshok <toshok@ximian.com>
18778 [ totally cosmetic eye-candy feature, fixes bug #80089 ]
18780 * Form.cs: only call the XplatUI transparency method (get/set) if
18781 SupportsTransparency says it's supported. Otherwise fallback to
18782 doing nothing (in the set case) or returning the instance field we
18783 cache (in the get case).
18785 * XplatUIStructs.cs: add TransparencySupport flag enum.
18787 * XplatUIDriver.cs: add abstract GetWindowTransparency, and track
18788 change to SupportsTransparency.
18790 * XplatUIOSX.cs: stub out GetWindowTransparency, and return
18791 TransparencySupport.None from SupportsTransparency.
18793 * XplatUIX11.cs: Stub out GetWindowTransparency, and return
18794 TransparencySupport.Set from SupportsTransparency.
18796 * XplatUIWin32.cs: implement GetWindowTransparency calling
18797 GetLayeredWindowAttributes, and implement SupportsTransparency by
18798 checking whether or not both
18799 GetWindowTransparency/SetWindowTransparency are available
18800 entrypoints. We need to do this since SetWindowTransparency is
18801 available as of win2k, but GetWindowTransparency requires winxp.
18804 * XplatUI.cs: Add GetWindowTransparency, and change
18805 SupportsTransparency to allow for either/both Get/Set.
18807 2006-11-29 Chris Toshok <toshok@ximian.com>
18809 * DataGrid.cs: keep from going into an infinite loop redrawing a
18810 datagrid that has no datasource. Fixes bug #80033.
18812 2006-11-29 Chris Toshok <toshok@ximian.com>
18814 * MenuItem.cs: fix the NRE when we assign text (and therefore call
18815 Invalidate) before the mainmenu has been assigned to a control.
18817 2006-11-29 Chris Toshok <toshok@ximian.com>
18819 * DataGrid.cs: detect when we should be double the double click
18820 row/column autosize stuff, although that codepath has yet to be
18821 written. part of the work for bug #79891.
18823 2006-11-29 Chris Toshok <toshok@ximian.com>
18825 * Binding.cs (SetControl): fix unit test.
18827 2006-11-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
18829 * PageSetupDialog.cs: Validate the margins and set them in
18831 * NumericTextBox.cs: New class to mimic the behavior of the
18832 textboxes used in the printing dialogs.
18834 2006-11-29 Andreia Gaita <avidigal@novell.com>
18836 * Form.cs: Revert previous change (remove call UpdateBounds
18837 from form constructor), because it messes with the handle creation
18838 order, and that one needs lots and lots of love.
18839 * PrintPreviewDialog.cs: Revert change to CreateHandle (add check
18840 for valid printer and throw InvalidPrinterException if document
18841 is set but printer not valid), adding a MonoTODO. Once
18842 handle creation is done properly, we can put this back in.
18844 2006-11-28 Everaldo Canuto <everaldo@simios.org>
18846 * MenuItem.cs: Create a invalidate method for menu item, to be
18847 calling from set text, it make text changes to imadiate update
18848 on screen. Fixes #80013.
18850 2006-11-28 Everaldo Canuto <everaldo@simios.org>
18852 * ToolBar.cs: Fixes and simplify toolbar button layout, it
18853 fixes bug #80070 and some other problem on toolbar buttons
18856 2006-11-28 Everaldo Canuto <everaldo@simios.org>
18858 * ThemeWin32Classic.cs: Paint toolbar toggle button background
18859 with dotted brush. Fixes #79564
18861 2006-11-28 Andreia Gaita <avidigal@novell.com>
18863 * Form.cs: Removed call to UpdateBounds on Form
18864 constructor, it was causing a call to CreateHandle
18865 before it was supposed to.
18866 * PrintControllerWithStatusDialog: Applied patch
18867 by Chris Toshok to hide controller when there are
18868 no printers available.
18869 PrintDialog.cs: initialize printer settings to
18870 null - correct DefaultValues test #5
18871 * PrintPreviewControl.cs: Move PrintController
18872 initialization to GeneratePreview
18873 * PrintPreviewDialog.cs:
18874 - Remove Preview generation from Document_set(). It is
18876 - Throw InvalidPrinterException on CreateHandle if
18877 a Document is set but there are no printers or
18878 printer is not valid.
18879 * ThemeWin32Classic: don't paint PrintPreviewControl
18880 if there is nothing to paint
18882 2006-11-28 Miguel de Icaza <miguel@novell.com>
18884 * Form.cs: Add another popular method.
18886 * TabPage.cs: ditto.
18888 2006-11-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
18890 * MenuItem.cs: Fixed a warning.
18891 * InternalWindowManager: Fixed a warning.
18893 2006-11-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
18896 - When cloning a menu also clone MdiList and clone the
18897 window menu items properly (as the forms and menuitems
18898 are kept in an internal hashtable, these need updating
18900 - Rewrote the window menu code, menu items are added in the
18901 order the forms were added to their parent, and they are
18902 updated every time the window menu is shown (before the
18903 list was only generated once, in the current order of the
18904 forms, and would never be updated). A checkmark is shown
18905 next to the item corresponding to the active mdi child.
18907 2006-11-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
18909 * XplatUIStructs.cs:
18910 - Added WM_NCMOUSEHOVER and WM_NCMOUSELEAVE.
18913 - Added TME_NONCLIENT to TMEFlags.
18914 - Handles WM_NCMOUSEMOVE in GetMessage to
18915 generate WM_NCMOUSEHOVER and WM_NCMOUSELEAVE messages.
18917 * MdiWindowManager:
18918 - Now merges mdi child menu to parent menu when maximized.
18919 - Recalculate NC areas of both mdi child and mdi parent.
18921 on window state and size changes.Fixes #79844 (3).
18922 - Handle WM_NCCALCSIZE to properly calculate borders.
18925 - Add/remove to the mdi containers list of mdi children
18926 in the order they are added.
18927 - Pass on WM_NCLBUTTONUP, WM_NCMOUSEMOVE and WM_NCMOUSELEAVE
18928 to the maximized mdi child.
18930 * InternalWindowManager.cs:
18931 - Only execute a click on the control buttons on the mouse up,
18932 not on the mouse down. Show the state of the button
18933 (was only showing Normal state, never Pressed state). The
18934 pressed button now follows the mouse (if you click the Close
18935 button and move the mouse over the Maximize button, the
18936 Maximize button will be shown as pressed). Since Win32 does
18937 not generate WM_NCLBUTTONUP if you release the button outside
18938 of the nc area, we need to handle WM_NCMOUSELEAVE and treat
18941 * ThemeWin32Classic.cs:
18942 - Draw a missing border around mdi child forms. Fixes #79844 (2).
18945 - Added a list of forms which contains the order the forms are
18946 added to the mdi parent.
18947 - Handle WM_NCPAINT to properly draw a 3D border. Fixes #79844 (2).
18948 - Handle WM_NCCALCSIZE to properly calculate the 3D border.
18949 - If the active form changes set the scrollbars to the top
18950 of the Z order, otherwise the form could hide them.
18951 - Scrollbars are now sized according to ClientSize, not
18952 to Size, and they take into account the other scrollbar
18953 to determine maximum.
18955 2006-11-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
18958 * XplatUIDriver.cs:
18962 - Added RequestAdditionalWM_NCMessages for windows to
18963 opt in for WM_NCMOUSELEAVE and WM_NCMOUSEHOVER.
18964 Currently only implemented in XplatUIWin32.
18966 2006-11-27 Chris Toshok <toshok@ximian.com>
18968 * Hwnd.cs: only add the hwnd to the windows hash in
18969 set_WholeWindow and set_ClientWindow if whole_window/client_window
18970 are not IntPtr.Zero. also, remove the unused SetObjectWindow.
18972 2006-11-27 Mike Kestner <mkestner@novell.com>
18974 * ComboBox.cs: remove redundant OnDropDown call. It is called
18975 from the ComboListBox.ShowWindow code. Fixes #79969.
18977 2006-11-27 Chris Toshok <toshok@ximian.com>
18979 * Hwnd.cs: remove the setters for ExposePending and
18980 NCExposePending - noone uses them.
18982 2006-11-27 Jackson Harper <jackson@ximian.com>
18984 * TextControl.cs: new param for ReplaceSelection which determines
18985 whether we select the new selection, or set the cursor to the end
18986 of the new selection.
18987 * TextBoxBase.cs: Use new param for ReplaceSelection. When
18988 pasting, select the new text.
18989 * RichTextBox.cs: Use new param for ReplaceSelection.
18991 2006-11-27 Jackson Harper <jackson@ximian.com>
18993 * TextBoxBase.cs: Set the selection to the caret after the caret
18994 is moved, otherwise they get out of sync.
18996 2006-11-26 Everaldo Canuto <everaldo@simios.org>
18998 * ToolBar.cs: Fixe size of ToolBar when AutoSize is false,
19001 2006-11-26 Everaldo Canuto <everaldo@simios.org>
19003 * ThemeWin32Classic.cs:
19004 - Fix toolbar drop down arrow position.
19005 - Fix drop down appearance when ToolBar.Appearance is normal,
19008 2006-11-26 Gert Driesen <drieseng@users.sourceforge.net>
19010 * ProgressBar.cs: GetStyle fixes for 2.0 profile.
19011 * Control.cs: Same.
19012 * UpDownBase.cs: Same.
19013 * ButtonBase.cs: Same.
19014 * ScrollBar.cs: Same.
19015 * TrackBar.cs: Same.
19016 * PictureBox.cs: Same.
19017 * UserControl.cs: Same.
19019 * ListControl.cs: Same.
19020 * TextBoxBase.cs: Same.
19021 * ListView.cs: Same.
19022 * RichTextBox.cs: Same.
19023 * TreeView.cs: Same.
19025 2006-11-25 Jordi Mas i Hernandez <jordimash@gmail.com>
19028 - Text label for where
19029 - Text label comment was not shown
19031 2006-11-23 Everaldo Canuto <everaldo@simios.org>
19033 * ThemeWin32Classic.cs: Fix toolbar drop down arrow size.
19035 2006-11-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
19037 * InternalWindowManager.cs:
19038 - Handle WM_PARENTNOTIFY to activate the form
19039 if any child control is clicked.
19040 - The form is only sizable if not minimized.
19042 * MdiWindowManager.cs:
19043 - Save the IconicBounds if the form is moved.
19044 - Rework SetWindowState, now the window bounds
19045 are stored only if the old window state is Normal.
19048 - In SetWindowStates store the old window state if
19049 the window is maximized and restore window state if
19050 the window looses focus.
19051 - Don't handle any scrollbar value changes if
19052 initializing the scroll bars. Fixes #79771.
19053 - Reworked ArrangeIconicWindows. Current algorithm
19054 tests bounds agains all other minimized windows, if
19055 any intersections create new bounds (going left to
19056 right, bottom to top) and then test again. When
19057 successful the bounds are saved and never computed
19058 again. Fixes #79774.
19060 2006-11-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
19062 * InternalWindowManager.cs: Added HandleTitleBarUp.
19064 2006-11-23 Gert Driesen <drieseng@users.sourceforge.net>
19066 * NumericUpDown.cs: In .NET 1.1, user entered text is still
19067 hexadecimal in ParseUserEdit.
19070 2006-11-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
19072 * MdiWindowManager.cs:
19073 - Handle a click on the form's icon to show the
19074 system menu (when maximized). Fixes #79775.
19075 - Change the existing click handler for the form's
19076 icon when not maximized to show on MouseUp.
19079 * Form.cs: In OnResize only layout the mdi child's
19080 parent if it actually has a parent. Might not if
19081 the window is closing.
19084 2006-11-23 Gert Driesen <drieseng@users.sourceforge.net>
19086 * MdiClient.cs: Ignore active MDI client for text of parent, if
19087 child has no text set.
19089 2006-11-23 Gert Driesen <drieseng@users.sourceforge.net>
19091 * ToolBar.cs: Fixed ToString to match MS.
19093 2006-11-22 Andreia Gaita <avidigal@novell.com>
19096 - Fix DecimalPlaces, Hexadecimal and ThousandsSeparator to
19097 update inner values on set. Fixes #79966.
19098 - Override OnLostFocus to update value on NET 2. Fixes #79950.
19099 - Fix hexadecimal parsing.
19101 * UpDownBase: Override OnGotFocus and OnLostFocus to notify
19102 parent. Fixes #79957
19104 2006-11-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
19106 * Control.cs: After calling SetWindowsPos in SetBoundsCore
19107 the actual size has to be queried, since if height /
19108 width is negative Win32 changes it to 0.
19109 Fixes #79999 on Windows.
19111 * XplatUIX11.cs: Set height / width to 0 if negative
19112 in SetWindowPos. Fixes #79999 on Linux.
19114 2006-11-22 Everaldo Canuto <everaldo@simios.org>
19116 * ThemeWin32Classic.cs: Fix text redenring when button is
19119 2006-11-22 Everaldo Canuto <everaldo@simios.org>
19121 * MenuAPI.cs: Fixes behavior when menu is opened by kerboard
19122 and later navigate by mouse. Fixes #79528.
19124 2006-11-21 Everaldo Canuto <everaldo@simios.org>
19126 * ToolBar.cs: Set default value for TabStop to false in
19127 constructor, it fixes remaining behavior of bug #79863.
19129 2006-11-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
19131 * MdiWindowManager.cs:
19132 * InternalWindowManager.cs:
19133 - Moved a few methods specific to Mdi from
19134 InternalWindowManager to MdiWindowManager.
19137 2006-11-21 Chris Toshok <toshok@ximian.com>
19139 * XplatUIOSX.cs: stub out InvalidateNC.
19141 * XplatUIWin32.cs: implement InvalidateNC using the call I found
19142 at http://www.dotnet247.com/247reference/msgs/58/292037.aspx.
19144 * XplatUIX11.cs: rename InvalidateWholeWindow to InvalidateNC.
19146 * XplatUIDriver.cs: add InvalidateNC abstract method.
19148 * XplatUI.cs: add InvalidateNC.
19150 2006-11-21 Everaldo Canuto <everaldo@simios.org>
19152 * ToolBar.cs: Invalidate complete button area when pressed status
19154 * ToolButton.cs: Fix InvalidateBorder for DropDown buttons.
19155 * ThemeWin32Classic.cs: Increase vertical and horizontal position
19156 by 1 when button is pressed.
19158 2006-11-20 Everaldo Canuto <everaldo@simios.org>
19160 * ToolButton.cs: Invalidate middle of DropDown button when
19161 ToolBar theres DropDownArrows.
19162 * ThemeWin32Classic.cs: Change position of DropDown arrow and
19163 fix DropDown drawing operations.
19165 2006-11-20 Chris Toshok <toshok@ximian.com>
19167 * NativeWindow.cs: fix the formatting of functions ('{' on the
19168 following line), and enable the thread exception dialog.
19170 * Application.cs: remove the duplicate exception catching from
19173 2006-11-20 Everaldo Canuto <everaldo@simios.org>
19175 * Toolbar.cs: Triggers button click event when click on icon
19176 of dropdown ToolBarButton. Fixes #79912.
19178 2006-11-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
19181 * ThemeWin32Classic.cs:
19182 - Added a property WindowBorderFont to enable themeing
19183 of mdi child windows' Text.
19185 2006-11-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
19187 * InternalWindowManager.cs:
19190 * MdiWindowManager.cs:
19191 - If mdi child is maximized, set mdi parent's
19192 text to "Parent - [Child]". Fixes #79770.
19193 - If there is any maximized mdi child windows, only the active
19194 window (and any new windows) is maximized, the rest are normal.
19195 - On a WindowState change only save mdi child's window bounds
19196 if the old window state was normal. Fixes #79774.
19197 - The scroll bars are now calculated on hopefully all
19198 necessary events. Fixed #79771 / #79844->6 / #79906.
19199 - MdiClient.SizeScrollBars() now takes into account docked
19200 controls in the parent when calculating available space.
19201 - InternalWindowManager now always repaints the entire title
19202 area. Fixes #79844->1/4/5.
19203 - Added RequestNCRecalc on mdi child windowstate changes.
19206 2006-11-20 Mike Kestner <mkestner@novell.com>
19208 * ComboBox.cs: setup LargeChange on the scrollbar. Invoke FireMouseUp
19209 in the MouseUp handler of the listbox and move the return handling
19210 code to FireMouseUp to avoid scrolling on ups. Fixes #79952.
19212 2006-11-20 Everaldo Canuto <everaldo@simios.org>
19214 * Toolbar.cs: Ignore right mouse clicks in toolbar. Fixes #79855.
19216 2006-11-17 Alexander Olk <alex.olk@googlemail.com>
19218 * MimeIcon.cs: Seems that DllImports that were fine in 1.2 are not
19219 working in 1.2.x anymore. So, updated.
19221 2006-11-19 Gert Driesen <drieseng@users.sourceforge.net>
19223 * NumericUpDown.cs: Use NegativeSign, NumberDecimalSeparator and
19224 NumberGroupSeparator of current culture instead of assuming en-US.
19227 2006-11-17 Mike Kestner <mkestner@novell.com>
19229 * Control.cs: Add the concept of implicit bounds setting so that
19230 dock/undock round trips preserve explicitly set size/locations.
19233 2006-11-17 Alexander Olk <alex.olk@googlemail.com>
19235 * FileDialog.cs: Trim all filters, otherwise DirInfo.GetFiles
19236 can't handle those filters. (Fixes bug #79961)
19238 2006-11-17 Chris Toshok <toshok@ximian.com>
19240 [ fixes the exit/crashes associated with #79835. it's clearly
19241 suboptimal though, we need to figure out a better way to solve
19244 * PrintPreviewControl.cs: deal with the new invalid printer
19247 * PageSetupDialog.cs: if the printer is invalid, pop up a dialog
19248 and return false (so CommonDialog.ShowDialog doesn't actually show
19251 * PrintDialog.cs: enable/disable the Ok button depending on
19252 whether or not the printer is valid.
19254 * CommonDialog.cs (ShowDialog): only actually show the form if
19255 RunDialog returns true.
19257 2006-11-17 Jackson Harper <jackson@ximian.com>
19259 * TextControl.cs: When soft splitting a line, mark it as a soft
19260 split line. Also carry over the current line break to the next
19263 2006-11-17 Chris Toshok <toshok@ximian.com>
19265 * XplatUIX11.cs: when scrolling a window with an invalid area, we
19266 only want to shift the part of the invalid area that overlaps the
19267 area we're scrolling. we also don't want to clear the invalid
19268 area unless the invalid area was entirely contained within the
19271 2006-11-16 Chris Toshok <toshok@ximian.com>
19273 * XplatUIX11.cs: remove the handling of the TimerEvent stuff, and
19274 also make sure to free the memory returned by XGetWindowProperty
19277 * X11Structs.cs: remove the TimerEvent stuff, it's unused.
19279 2006-11-16 Chris Toshok <toshok@ximian.com>
19281 * XplatUI.cs: add a new super secret way to get at the totally
19282 unsupported X11 backend.
19284 2006-11-16 Gert Driesen <drieseng@users.sourceforge.net>
19286 * NumericUpDown.cs: Allow lowercase letters when in hex-mode.
19288 2006-11-16 Jackson Harper <jackson@ximian.com>
19290 * TreeView.cs: Allow more explicit setting of top node position
19291 for scrollbars. Slower algo, but more accurate.
19292 - CollapseAll should maintain the current top node.
19293 * TextBoxBase.cs: When positioning the caret, use the line, pos
19294 method, since the x, y method does not grab the correct tag, and
19295 the caret height never gets set correctly. (Maybe I should just do
19296 away with the caret having its own height, and always use the
19297 carets current tag for height).
19299 2006-11-16 Jonathan Pobst <monkey@jpobst.com
19301 [Fixes 79778, 79923]
19303 * XplatUIWin32.cs: Don't allow a parent to be set to IntPtr.Zero.
19304 Parent to the FosterParent instead.
19306 2006-11-16 Jackson Harper <jackson@ximian.com>
19308 * TreeView.cs: Need to recalc the topnode when we expand or
19309 collapse. The scrolling methods can't handle this on their own,
19310 since they use differences between the last scroll position, and
19311 those difference get completely messed up since we are expanding
19312 nodes. This problem should probably be fixed in the scrolling
19313 methods, so they can figure out exactly where they are, but this
19314 will slow things down a little.
19315 * ThemeWin32Classic.cs: Special case for groupboxes with empty
19316 strings, makes nunit-gui look a lot nicer.
19318 2006-11-16 Chris Toshok <toshok@ximian.com>
19320 * XplatUIX11.cs: nasty, nasty, nasty changes required because of
19321 the broken multithreaded event handling we have in here. File
19322 this entry under "Why we should move to the new X11 backend".
19324 Any thread can make it into UpdateMessageQueue, which gets events
19325 from the X socket - some of which could belong to hwnds being
19326 managed by a different thread. We can also have multiple threads
19327 in UpdateMessageQueue at the same time, with each one reading from
19328 the X socket. This leads to many problems, with the following
19331 We can't use hwnd.Queue.Enqueue anywhere in here and must use
19334 The MotionNotify compression we do can't work across threads
19335 (without locking the entire queue, perhaps) since we call
19336 hwnd.Queue.Peek, so we just punt and don't compress motion events
19337 unless the owning thread is the one which got the X event.
19339 ConfigureNotify is another fun one, since it modifies the hwnd's
19340 bounds and then enqueues the event. We add a lock to Hwnd which
19341 is held when setting configure_pending to true (and enqueuing the
19344 There is a race wrt the wake socket. we need to make sure that
19345 only 1 thread is waiting on that socket, or else a thread could
19346 sleep waiting for data that never comes. It's difficult (but not
19347 impossible) to make happen, because it seems to require something
19348 like the following:
19350 1. Thread 1 polls on wake_receive
19352 2. poll returns saying there's data to be read on
19355 3. Thread 2 polls on wake_receive and immediately returns
19356 saying there's data to be read.
19358 4. Thread 2 reads the wakeup byte from wake_receive
19360 5. Thread 1 attempts to read the wakeup byte from
19363 6. Thread 2 exits (due to a form closing, perhaps).
19365 7. Thread 1 blocks forever.
19369 Fixing the Expose handling isn't done yet, and the races inherent
19370 in that piece of code are responsible for the drawing mistakes you
19371 see when generating expose events in a MT app (like NPlot). This
19372 one is the likely to be the hardest to bandaid, and it doesn't
19373 appear to cause anything but drawing problems. The other issues
19374 caused apps to exit or hang.
19376 * XEventQueue.cs: output some spew when Dequeue/Enqueue/Peek are
19377 called from a different thread than the one that should be calling
19380 * Hwnd.cs: add some locks to be used by the XplatUIX11 code.
19382 2006-11-15 Chris Toshok <toshok@ximian.com>
19384 * Application.cs: null out the context's MainForm when we exit
19385 RunLoop. Fixes a newly checked in unit test as well as the last
19386 ODE from bug #79933.
19388 2006-11-15 Chris Toshok <toshok@ximian.com>
19390 * Form.cs (set_Owner): allow a null value so we can clear the
19392 (Dispose): set all our owned_form's Owner properties to null, and
19393 clear the owned_forms collection.
19394 (WM_CLOSE): clean up this a little bit.. still not right though.
19396 * ApplicationContext.cs: OnMainFormClosed should only call
19397 ExitThreadCore if the main form isn't recreating. Fixes unit
19400 2006-11-15 Jonathan Pobst <monkey@jpobst.com>
19404 * ComboBox.cs: Set the Hwnd.no_activate flag for the ComboListBox.
19406 2006-11-15 Jonathan Pobst <monkey@jpobst.com>
19410 * Hwnd.cs: Add a flag to show a window, but not activate it, to
19411 keep popup window types from stealing focus from the main form
19414 * XPlatUIWin32.cs: Use SW_SHOWNOACTIVATE if above field is true.
19416 * MenuAPI.cs: Set above flag to true.
19418 2006-11-15 Chris Toshok <toshok@ximian.com>
19420 * XplatUIX11.cs: mimic win32 behavior on BUTTONUP events, where
19421 the button being released is not in wParam.
19423 2006-11-15 Jonathan Pobst <monkey@jpobst.com>
19425 * Form.cs: Add the released button to MouseEventArgs.Button
19426 for the OnMouseUp call to the MenuTracker. Fixes menu clicking
19429 2006-11-15 Chris Toshok <toshok@ximian.com>
19431 * XplatUIX11.cs: add (untested) a _NET_WM_NAME implementation of
19432 GetText(). untested because it's unused in our implementation.
19433 Control.Text always caches the text, even if
19434 ControlStyles.CacheText is not set.
19438 2006-11-15 Chris Toshok <toshok@ximian.com>
19442 * Form.cs: in Close() don't do anything after we send the WM_CLOSE
19443 message. no hiding, no disposing.
19445 in the WM_CLOSE handler, hide the form if it's modal.
19447 2006-11-15 Chris Toshok <toshok@ximian.com>
19449 * XplatUIX11.cs: use AddExpose instead of sending a message.
19450 fixes textbox border drawing.
19452 2006-11-15 Chris Toshok <toshok@ximian.com>
19454 * PropertyGridView.cs: keep from crashing on mouse move/down when
19455 the property grid is empty.
19457 2006-11-14 Jackson Harper <jackson@ximian.com>
19459 * TextControl.cs: Make PageUp and PageDown more like the MS
19461 * TextBoxBase.cs: When we set the text property position the
19462 cursor at the beginning of the document.
19464 2006-11-14 Rolf Bjarne Kvinge <RKvinge@novell.com>
19466 * Form.cs: if a mdi child's WindowState has changed
19467 before it's creation, it would display wrong control
19470 2006-11-14 Alexander Olk <alex.olk@googlemail.com>
19472 * TreeView.cs: De-uglify TreeView checkbox checkmarks.
19475 2006-11-14 Rolf Bjarne Kvinge <RKvinge@novell.com>
19477 * XplatUIX11.cs: send a WM_NCPAINT on WM_NCCALCSIZE so that
19478 the window gets to paint its borders even if the window is
19481 * Form.cs: on a WM_NCPAINT invalidate the entire menu,
19482 otherwise the old control buttons would still be painted
19483 if the window gets bigger.
19485 * PaintEventArgs.cs: add an internal method so that the clip
19486 rectangle can be changed.
19488 2006-11-13 Chris Toshok <toshok@ximian.com>
19490 [ fixes bug #79745 ]
19492 * NotifyIcon.cs: lots of cleanup.
19494 * X11Structs.cs: add an enum for XEMBED messages.
19496 * XplatUIX11.cs: reindent one of the giant switch statements, it
19497 was taking up an additional tab stop, and this file is already way
19498 too wide for my laptop's screen.
19500 Also, add handling for the XEmbed EMBEDDED_NOTIFY message. When
19501 we get it, resize the hwnd to the WMNormalHints max_width/height.
19503 2006-11-13 Jackson Harper <jackson@ximian.com>
19505 * TextBoxBase.cs: Compute the value changes for the mouse wheel
19508 2006-11-13 Chris Toshok <toshok@ximian.com>
19510 * XplatUIX11.cs, XplatUIStructs.cs: kind of a gross fix for
19511 #79898. force a reference to the Region to stick around so the
19512 unmanaged object isn't collected (rendering our handle in the MSG
19515 2006-11-13 Chris Toshok <toshok@ximian.com>
19517 * XplatUIX11.cs: fix #79917 for window managers which support
19519 using XStoreName on the raw utf8, and we need to convert to
19520 COMPOUND_TEXT if it's non-latin1.
19522 2006-11-13 Chris Toshok <toshok@ximian.com>
19524 * Form.cs (set_DialogResult): we need to set closing to false if
19525 we're setting our result to None. fixes bug #79908.
19527 2006-11-13 Jackson Harper <jackson@ximian.com>
19529 * TextControl.cs: When formatting text, compute the adjusted tag
19530 lengths correctly, using FindTag for the end tag instead of trying
19531 to figure it out outselves.
19532 * TreeNode.cs: Use ActualItemHeight, which is the actual height of
19533 the item, ItemHeight doesn't work, because trees with large
19534 imagelists use those for their height
19535 * TreeView.cs: ActualItemHeight factors in the image height
19536 - compute left edge of checkboxes correctly
19537 - when expanding/collapsing move the bottom down one pixel, so we
19538 aren't moving part of the node
19540 2006-11-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
19542 * XplatUIX11.cs: The PaintEventArgs is also added to the drawing
19543 stack in PaintEventStart so that it won't get disposed by the gc
19544 before reaching PaintEventEnd.
19546 2006-11-13 Jackson Harper <jackson@ximian.com>
19548 * TextBoxBase.cs: Don't select the word if we are on a line with
19550 - We don't need to position the caret on mouse up, since the mouse
19551 move handler should be doing this
19552 - When double clicking a blank line, the caret is advanced to the
19555 2006-11-13 Gert Driesen <drieseng@users.sourceforge.net>
19557 * TreeNodeCollection.cs: Avoid duplicating indexer code.
19559 2006-11-12 Gert Driesen <drieseng@users.sourceforge.net>
19561 * ColorDialog.cs: Reset size of dialog between calls to ShowDialog.
19562 Fixes part of bug #79910.
19564 2006-11-11 Alexander Olk <alex.olk@googlemail.com>
19566 * ColorDialog.cs: Fix a NRE when adding a color to custom colors
19567 (bug #79903). Some minor string updates to match ms.
19569 2006-11-10 Alexander Olk <alex.olk@googlemail.com>
19571 * FileDialog.cs: Don't add an extension if the filename
19572 already ends with that extension.
19574 2006-11-10 Jackson Harper <jackson@ximian.com>
19576 * TreeView.cs: Use the currently highlighted node for the
19577 BeforeSelect event.
19578 * TextBoxBase.cs: There is no need to expand selection on
19580 - CanUndo means 'is there any undo operations', not 'is undo
19581 allowed on this textcontrol. Fixed ClearUndo unit test.
19583 2006-11-10 Andreia Gaita <shana.ufie@gmail.com>
19585 * Button.cs: only perform click when button is Selectable (so as
19586 not to activate default buttons when they're disabled)
19588 * Control.cs: Rewrite of the SelectNextControl and related
19589 methods. HandleClick now selects next control if the current one
19592 * Form.cs: OnActivated selects next active control only if Load
19593 has already occurred. If Load hasn't run, there's no point in
19594 selecting here, Load might change the state of controls.
19596 * FocusTest.cs: Tests marked as working again for these fixes
19598 2006-11-10 Chris Toshok <toshok@ximian.com>
19600 * XplatUIX11.cs: a couple of fixes.
19602 - use XInternAtoms with almost all the atoms we need to register,
19603 instead of many, many calls to XInternAtom. should help a bit on
19604 startup time, at the expense of making the code look a little
19607 - fall back to setting TransientFor on TOOLWINDOW's if their hwnd
19608 isn't reparented (which seems to be a clue that we're running fon
19609 compiz) and they have an Owner form. This fixes the tool windows
19610 in paint.net when running under compiz.
19612 - when setting the opacity of a window, support both the case
19613 where the window has been reparented and also when it hasn't been.
19614 Since compiz/beryl doesn't seem to reparent windows, and these are
19615 the only window managers which support translucency, I'm not sure
19616 why we need the hwnd.reparented case at all.. but leave it in.
19617 now we get translucent windows in paint.net under compiz/beryl.
19619 2006-11-10 Alexander Olk <alex.olk@googlemail.com>
19621 * FileDialog.cs: Always return the value for FilterIndex that
19622 was set. Internally convert it to values that make sense.
19624 2006-11-10 Everaldo Canuto <everaldo@simios.org>
19626 * ThemeWin32Classic.cs: Fix drowp down arrow borders.
19628 2006-11-10 Everaldo Canuto <everaldo@simios.org>
19630 * Toolbar.cs: Change default value of DropDownArrows to true, the
19631 signature still using false to make it compatible with MS but the
19632 initial value is true. Fixes #79855.
19634 2006-11-10 Alexander Olk <alex.olk@googlemail.com>
19636 * MimeIcon.cs: Don't throw an exception on windows. Mime stuff is
19637 only available on Linux.
19639 2006-11-09 Everaldo Canuto <everaldo@simios.org>
19641 * Toolbar.cs, ToolBarButton.cs: Fix wrong separator size and
19642 reduce number of calls to redraw method during toolbar creation.
19644 2006-11-09 Mike Kestner <mkestner@novell.com>
19646 * ListView.cs : raise SelectedIndexChanged when an item is selected
19647 programmatically via the Item.Selected property. Gert's nice
19648 ListViewSelectedIndexChanged test fixture now runs clean.
19650 2006-11-09 Mike Kestner <mkestner@novell.com>
19652 * ListView.cs : raise SelectedIndexChanged when a selected item is
19653 removed from the item collection using Remove or RemoveAt.
19655 2006-11-09 Mike Kestner <mkestner@novell.com>
19657 * ListView.cs : raise SelectedIndexChanged once per selected item
19658 for compat with MS. Fixes #79849+.
19660 2006-11-09 Chris Toshok <toshok@ximian.com>
19662 * TabControl.cs: initialize row_count to 0, and set it to 1 when
19663 we need to (if we have any tab pages). Fixes unit test.
19665 2006-11-09 Chris Toshok <toshok@ximian.com>
19667 * Label.cs (CalcPreferredWidth): if Text == "", our preferred
19668 width is 0, not 3. Fixes a unit test.
19670 2006-11-09 Mike Kestner <mkestner@novell.com>
19672 * ListView.cs : use Implicit scrollbars so that focus isn't
19673 stolen from the listview when they are clicked. Fixes #79850.
19675 2006-11-09 Chris Toshok <toshok@ximian.com>
19677 * PropertyGridView.cs (OnPaint): only call DrawGridItems if we
19678 have a root item. Fixes #79879.
19680 2006-11-09 Alexander Olk <alex.olk@googlemail.com>
19684 - An ArgumentException is now thrown if a wrong filter
19685 is applied (matches ms). The previous filter doesn't change
19686 anymore if an exception is thrown.
19687 - Changing the FileName property also affects FileNames
19688 * ColorDialog.cs: The length of the CustomColors array is always
19689 16. It doesn't matter if we use a smaller array or null to update
19690 or change the custom colors property.
19691 * FolderBrowserDialog.cs: Throw an InvalidEnumArgumentException if
19692 for RootFolder if we get a undefined value.
19694 2006-11-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
19696 * StatusBarPanel.cs:
19697 - Width is set to MinWidth if Width is smaller than
19698 MinWidth. Fixes #79842.
19699 - MinWidth now always overrides Width (MSDN says MinWidth
19700 is set to Width when AutoSize = None, but they do not
19702 - Style has now the the correct default value.
19704 2006-11-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
19707 - The control is completely invalidated on
19708 Got/LostFocus to draw the focus rectangle correctly.
19709 - When AutoSize then height is always 45 (width for
19710 vertical controls).
19712 * ThemeWin32Classic.cs: The TrackBar thumb is now centered
19713 on the mouse when moved and it doesn't move when grabbed
19714 until the mouse moves as well. Also fixed some wrong
19715 calculations when clicking on the thumb (control thought
19716 click was outside of thumb and didn't grab it).
19717 Fixes some of the issues in #79718.
19719 2006-11-08 Everaldo Canuto <everaldo@simios.org>
19721 * Toolbar.cs: Prevent disabled button to highlight. Fixes #79868.
19723 2006-11-08 Chris Toshok <toshok@ximian.com>
19725 * PropertyGridView.cs: only call ToggleValue if the item is not
19728 2006-11-08 Jackson Harper <jackson@ximian.com>
19730 * TextBoxBase.cs: The RichTextBox and textbox have very different
19731 word selection methods. Implement the textbox's simple word
19732 selection here, and let the RichTextBox override and provide it's
19734 - Don't do extra selection on mouseup
19735 * RichTextBox.cs: Use the documents word selection algorithm, I
19736 think ideally, this function will be pulled into the
19737 RichTextBox.cs code someday.
19739 2006-11-08 Chris Toshok <toshok@ximian.com>
19741 * RootGridEntry.cs: new class to represent GridItemType.Root.
19743 * CategoryGridEntry.cs: reformat, and add boilerplate.
19745 * GridEntry.cs: remove the UIParent stuff - turns out .Parent
19746 returns the UI parent anyway, and we need special handling to
19747 implement the GetTarget method in the face of it. Also, implement
19750 * PropertyGrid.cs, PropertyGridView.cs: a number of fixes. create
19751 a root grid item, and use that instead of PropertyGrid.grid_items.
19752 Also, make use of TypeConverters (and add limitted support for
19753 ICustomTypeDescriptors) when initially populating the grid.
19754 Arrays now show up more or less properly.
19756 2006-11-08 Chris Toshok <toshok@ximian.com>
19758 * Application.cs: set the modal dialog to non modal after we close
19759 it. Fixes bug #79866.
19761 2006-11-08 Jackson Harper <jackson@ximian.com>
19763 * TextControl.cs: When combining lines carry over the line end
19764 style from the end line.
19765 - Invalidate the selected area when setting it, if it is visible.
19766 * TextBoxBase.cs: Only rich text box can do full line selects.
19767 - Make sure to set the cursor position when there is a click,
19768 otherwise two clicks in separate areas could cause a large chunk
19771 2006-11-07 Everaldo Canuto <everaldo@simios.org>
19773 * Toolbar.cs: Release flat button borders when Toolbar lost focus.
19776 2006-11-07 Everaldo Canuto <everaldo@simios.org>
19778 * Toolbar.cs: Prevent toolbar to open more than one tooltip at same
19779 time. Remove tooltips when ToolButton click events. Fixes #79856.
19781 2006-11-07 Everaldo Canuto <everaldo@simios.org>
19783 * MenuAPI.cs: Ignore right click for menu actions and fixes
19784 menu border when clicked. Fixes #79846.
19786 2006-11-07 Everaldo Canuto <everaldo@simios.org>
19788 * XplatUIX11.cs, XplatUIX11.cs: Fix MouseRelease to only release
19789 MouseState after create wParam for message, this fixes mouse button
19790 equal none in mouse up events.
19792 2006-11-07 Andreia Gaita <shana.ufie@gmail.com>
19794 * Control.cs : Focus() now calls Select to set the Container's
19795 Active Control and to give it focus. To avoid infinite recursion
19796 (because ActiveControl also calls Focus at one point), a check
19797 is made in Focus with the help of a new internal variable
19800 2006-11-07 Mike Kestner <mkestner@novell.com>
19802 * ListView.cs : raise OnSelectedIndexChanged in CreateHandle
19803 if there's a selection. Fixes #79849.
19805 2006-11-07 Gert Driesen <drieseng@users.sourceforge.net>
19807 * PropertyGrid.cs: Avoid fixed height of help description label.
19808 Fixes part of bug #79829.
19810 2006-11-07 Chris Toshok <toshok@ximian.com>
19812 * XplatUIX11.cs: fix #79790 again, by using the
19813 _NET_WM_STATE_SKIP_TASKBAR atom to implement Form.ShowInTaskbar.
19815 2006-11-07 Everaldo Canuto <everaldo@simios.org>
19817 * ToolBar.cs: Fix left click checking.
19819 2006-11-07 Chris Toshok <toshok@ximian.com>
19821 * ProgressBar.cs: fix a typo in ToString(). fixes a unit test.
19823 2006-11-07 Chris Toshok <toshok@ximian.com>
19825 * RelatedPropertyManager.cs: set property_name in our ctor. fixes
19826 PropertyManager unit tests.
19828 * PropertyManager.cs: make property_name internal.
19830 2006-11-07 Chris Toshok <toshok@ximian.com>
19832 * ButtonBase.cs: initialize base.ime_mode to ImeMode.Disable to
19833 pass a unit test. Also, don't set image_index to anything in
19834 response to setting the ImageList property.
19836 2006-11-07 Everaldo Canuto <everaldo@simios.org>
19838 * ToolBar.cs: Ignore click events when mouse button is not a
19839 left button, only accepts other button for dropdown menus.
19842 2006-11-07 Chris Toshok <toshok@ximian.com>
19844 * DataGrid.cs: make the back and parent row buttons a little less
19847 2006-11-07 Jackson Harper <jackson@ximian.com>
19849 * TextBoxBase.cs: When converting to Text don't put line breaks in
19850 for soft line breaks.
19851 * TextControl.cs: There is an initial "fake" line in the document,
19852 this is now a soft break line, so that an extra line feed doesn't
19853 get added to the end of documents.
19855 2006-11-07 Chris Toshok <toshok@ximian.com>
19859 * CurrencyManager.cs: if the list is readonly, don't bother
19860 checking if IBindingList.AllowNew is true.
19862 * ThemeWin32Classic.cs (DataGridPaintParentRow): make this work
19863 for non-DataRowView datasources.. or rather, make it not crash.
19864 (DataGridPaintRelationRow): make sure we limit the row painting to
19865 the area not covered by the row header, and make our cell width at
19866 least large enough to cover the relation area. This allows grids
19867 that have relations but no rows to render correctly.
19868 (DataGridPaintRowContents): same type of changes here.
19869 (SetDataSource): move back to always calling
19870 CalcAreasAndInvalidate. this fixes a crash/drawing problem when
19871 navigating back through relations.
19872 (HitTest): handle the case where we have no cells but have
19873 relations. Right now we generate a hit in cell 0 of whatever the
19874 row is, not sure if this is strictly correct, but it works for our
19877 * DataGrid.cs (EndEdit, CancelEdit): if we have no columns, don't
19878 bother doing anything.
19880 2006-11-07 Jonathan Pobst <monkey@jpobst.com>
19882 * StatusStrip.cs, ToolStripStatusLabel.cs: By request, an
19883 early version of StatusStrip. Not responsible for eaten
19884 application or firstborn children.
19886 2006-11-06 Chris Toshok <toshok@ximian.com>
19888 * TabControl.cs: in OnGotFocusInternal/OnLostFocusInternal don't
19889 call GetTabRect with a -1 index. Fixes #79847.
19891 2006-11-06 Jackson Harper <jackson@ximian.com>
19893 * TreeNodeCollection.cs: Update scrollbars after clearing.
19895 2006-11-06 Chris Toshok <toshok@ximian.com>
19897 * NumericUpDown.cs: fix the ToString method for some unit test
19900 2006-11-06 Chris Toshok <toshok@ximian.com>
19903 - set the initial SelectedGridItem if we can.
19905 - Exclude non-mergable properties only if we're merging > 1
19906 object. Merging 1 object isn't really merging, obviously.
19908 - Handle PropertySort.NoSort just like Alphabetical, which is
19909 wrong of course, but at least gets things on the screen.
19911 * PropertyGridView.cs:
19912 - Add method "FindFirstItem" which finds the first property grid
19913 item, so we can select it by default.
19915 - make use of GridEntry.CanResetValue.
19917 - Don't call RedrawBelowItemOnExpansion here anymore, the
19918 individual GridEntry's will do that.
19920 - Remove the ITypeDescriptorContextImpl internal class.
19923 - this class needs to implement ITypeDescriptorContext, as it's
19924 what MS's PropertyDescriptorGridEntry does, which means we can
19925 remove the ITypeDescriptorContextImpl internal class from
19926 PropertyGrid.cs. This fixes the crashing portion of bug #79829.
19928 - keep a reference to our PropertyGridView, and move the call to
19929 RedrawBelowItemOnExpansion here from PGV. This means
19930 programmaticly setting Expanded actually does something visible.
19932 - add a CanResetValue() function which takes into account our
19933 possibly multiple "selected_objects" in the merged case. Shifting
19934 PropertyGridView to use this method fixes another unreported
19935 crasher found running the test for #79829.
19937 - when Top or Bounds is updated, make sure the PropertyGridTextBox
19938 is updated to reflect this.
19940 * CategoryGridEntry.cs: the ctor takes the PGV now.
19942 2006-11-06 Jackson Harper <jackson@ximian.com>
19944 * TextControl.cs: These are 1 based.
19945 * TextBoxBase.cs: When setting the selected text, don't change the
19946 selected text tags, this is done by ReplaceText, just position the
19947 cursor at the end of the new text.
19949 2006-11-06 Alexander Olk <alex.olk@googlemail.com>
19951 * ListView.cs: Allow label edit only when, when LabelEdit is
19954 2006-11-06 Jackson Harper <jackson@ximian.com>
19956 * TextControl.cs: If a suitable wrapping position isn't found,
19957 just wrap right in the middle of a word.
19959 2006-11-06 Alexander Olk <alex.olk@googlemail.com>
19961 * ListView.cs, ListViewItem.cs: Implement LabelEdit. Fixes
19964 2006-11-06 Jackson Harper <jackson@ximian.com>
19966 * TreeView.cs: Can't use the VisibleCount property when setting
19967 scrollbar heights, because this doesn't take into account whether
19968 or not the horz scrollbar just came visible.
19970 2006-11-05 Everaldo Canuto <everaldo@simios.org>
19972 * MenuAPI.cs: Deactivate menu on mouse up when menus it is already
19973 activated. Fixes #79369, #79832.
19975 2006-11-05 Alexander Olk <alex.olk@googlemail.com>
19977 * FileDialog.cs: *sigh* Because of recent runtime changes (r67043) I
19978 had to remove support for links that point to a directory. FileInfo
19979 returns no usefull information (means, the directory they point to)
19980 for such links. Replaced some empty string ("") with String.Empty.
19982 2006-11-04 Gert Driesen <drieseng@users.sourceforge.net>
19984 * TreeNodeCollection.cs: To match MS, in 1.0 profile throw
19985 NullReferenceException when attempting to remove node that is not in
19986 collection. Throw NullReferenceException when null is passed to
19987 Remove. Allow first element of the collection to be removed. Fixes
19988 bug #79831. In GetEnumerator ().Current return null if positioned
19989 before the first element of the collection. In GetEnumerator ().Reset,
19990 position before first element of the collection.
19992 2006-11-04 Gert Driesen <drieseng@users.sourceforge.net>
19994 * PropertyGrid.cs: To match MS, remove default title and description
19995 for panel. Fixed tooltips for Categorized and Alphabetic toolbar
19998 2006-11-04 Chris Toshok <toshok@ximian.com>
20000 * Theme.cs: add a Clamp method, just for kicks.
20002 * ThemeWin32Classic.cs: clamp all color components to [0..255].
20004 2006-11-04 Chris Toshok <toshok@ximian.com>
20006 * Form.cs: if the form isn't visible, Close() does nothing.
20008 2006-11-03 Chris Toshok <toshok@ximian.com>
20010 * Form.cs (Close): if the form is modal, don't Dispose of it, only
20012 (WndProc): don't Dispose after handling the WM_CLOSE message.
20014 * Application.cs (RunLoop): toplevels is a list of Forms, so treat
20015 them as such, instead of using casts from Control to Form. Also,
20016 don't Dispose of the modal dialog when we fall out of the loop -
20017 Close() it instead.
20021 2006-11-03 Chris Toshok <toshok@ximian.com>
20023 * Control.cs (Dispose): only go through the dispose thing if we're
20024 @disposing, and we haven't already been disposed. Fixes bug
20027 * Form.cs: no reason to call "base.Dispose()" here instead of
20030 2006-11-03 Mike Kestner <mkestner@novell.com>
20032 * ComboBox.cs : use ToString instead of casts in AddItem for
20033 sorting functionality. Fixes #79812.
20035 2006-11-03 Chris Toshok <toshok@ximian.com>
20037 * Application.cs: pave the way for actually using the thread
20038 exception dialog. it's ifdefed out at the moment.
20040 2006-11-03 Chris Toshok <toshok@ximian.com>
20042 * ThreadExceptionDialog.cs: until we get a better layout, actually
20043 hide the details textbox and label when we shouldn't see them.
20045 2006-11-03 Jackson Harper <jackson@ximian.com>
20047 * TextBoxBase.cs: Don't bail from the scrollbar calcs for non
20048 multiline textboxes anymore. This method also determines the
20049 width/height of a textboxes canvas area.
20050 - Sorta a revert of the last patch. For multiline just position
20051 the controls, then bail. This way the scrollbar width won't be
20054 2006-11-03 Everaldo Canuto <everaldo@simios.org>
20056 * ThemeWin32Classic.cs: Dont paint inner lines of 3D border when
20057 it dont need. Fixes #79537.
20059 2006-11-02 Jackson Harper <jackson@ximian.com>
20061 * X11Dnd.cs: We always allow copy, since XDND implies Copy. Also
20062 send the status after firing the DndOver event.
20064 2006-11-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
20066 * TrackBar.cs: Now orientation only switches height / width if
20067 the control's handle is created (Win32 does it like this). Also
20068 fixed a typo in ToString() for a test to pass, changed the
20069 exception thrown in set_LargeChange and set_SmallChange to
20070 match Win32 behaviour, and added TrackBar tests to the unit
20073 2006-11-02 Chris Toshok <toshok@ximian.com>
20075 * XplatUIX11.cs: the atom we want is _NET_WM_STATE_SKIP_TASKBAR,
20076 not _NET_WM_STATE_NO_TASKBAR.
20078 2006-11-02 Jackson Harper <jackson@ximian.com>
20080 * TextControl.cs: Increment count by one, since in the update view
20083 2006-11-02 Jackson Harper <jackson@ximian.com>
20085 * TextBoxBase.cs: Use client rectangle not bounds for checking if
20086 the mouse is in the client rectangle (duh).
20088 2006-11-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
20090 * TrackBar.cs: Fixed trackbar jumping around when clicking
20091 on it - the trackbar was not detecting correctly at which
20092 side of the thumb the click was done. (fixes #79718)
20094 2006-11-02 Everaldo Canuto <everaldo@simios.org>
20096 * ListBox.cs: scroll visible area when change SelectedIndex to
20097 a non visible area. Fixes #79481.
20099 2006-11-01 Jackson Harper <jackson@ximian.com>
20101 * TextControl.cs: When replacing the selection move the selection
20102 start/end/anchor to the end of the new text.
20104 2006-11-01 Jackson Harper <jackson@ximian.com>
20106 * XplatUIWin32.cs: When setting the parent change the controls
20107 visibility to it's visibility flag, not to it's old parents
20108 visibility (.Visible walks the parent chain).
20110 2006-11-01 Chris Toshok <toshok@ximian.com>
20112 * XplatUIX11.cs: revert the #79790 fix, as the simple.
20113 XSetTransientForHint fix breaks paint .net's tool windows. more
20114 work needed for that one.
20116 2006-11-01 Chris Toshok <toshok@ximian.com>
20118 * ScrollBar.cs: throw ArgumentException instead of Exception in
20119 LargeChange/SmallChange setters. fixes unit tests.
20121 2006-10-31 Andreia Gaita <shana.ufie@gmail.com>
20123 * ContainerControl.cs: reverted rev.67183 (which was itself
20124 a reversion of rev.66853... eh).
20126 * Control.cs: Fixes Reflector hang by changing Focus() call
20127 to what it was before rev.66643 (calling Select() here sets
20128 ActiveControl, which in some situations calls back Focus and
20129 eventually does a stack overflow). Temp fix.
20130 Changes to GetNextControl() to not look for children to select when
20131 parent cannot be selectable (so it looks for siblings instead)
20133 2006-10-31 Mike Kestner <mkestner@novell.com>
20135 * CheckedListBox.cs : off by one error in returned index from
20136 ObjectCollection.Add. Fixes #79758.
20138 2006-10-31 Chris Toshok <toshok@ximian.com>
20140 * UpDownBase.cs: remove the OnGotFocusInternal/OnLostFocusInternal
20141 calls for the textbox/spinner, to keep from recursing to the point
20142 where we crash. Fixes #79760.
20144 2006-10-31 Chris Toshok <toshok@ximian.com>
20146 * ListControl.cs (set_SelectedValue): don't throw exceptions on
20147 null/"" value, just return. matches ms's behavior and fixes some
20150 2006-10-31 Chris Toshok <toshok@ximian.com>
20152 * Control.cs (set_Capture): make a logic a little easier to
20155 * XplatUIX11.cs (CleanupCachedWindows): zero out the Grab window
20156 if it's being destroyed. A necessary fix surely, but a bandaid
20157 also, to fix the stuck capture problem in bug #78413.
20159 2006-10-31 Chris Toshok <toshok@ximian.com>
20161 * XplatUIX11.cs: fix a couple of compiler warnings, and follow the
20162 convention of clearing hwnd.ClientRect when we set the
20163 width/height (so it'll be recalculated by Hwnd).
20165 2006-10-31 Andreia Gaita <shana.ufie@gmail.com>
20167 * ContainerControl.cs: reversed Contains check from
20168 ActiveControl due to hanging problems. This fix
20169 partly regresses #79667 (button does not have
20170 initial focus), so this might be a symptom for
20171 a larger parenting problem (set_ActiveControl
20172 is being called but the child control does
20173 not have the parent set yet?)
20175 2006-10-31 Mike Kestner <mkestner@novell.com>
20177 * MenuAPI.cs : fix keynav when menu is click activated.
20179 2006-10-31 Jonathan Pobst <monkey@jpobst.com>
20181 * ToolStrip*: Version 0.2.
20183 * MenuStrip.cs: Version 0.1.
20185 * Form.cs: Add a 2.0 MenuStrip tracker like the 1.1 Menu one.
20187 2006-10-30 Chris Toshok <toshok@ximian.com>
20189 [ fixes the oversized notify icon issue in bug #79745 ]
20191 * NotifyIcon.cs: scale the icon down to the size we're given by
20192 the XplatUI layer (this would be faster if we did it once instead
20193 of whenever we paint..) Also, remove the WM_NCPAINT handling,
20194 since it's never invoked.
20196 * XplatUIX11.cs: the gnome and kde systrays use icons that are 24
20197 pixels high by default, so let's hardcode our systray icon to that
20198 size. The SYSTEM_TRAY protocol should really have a way for
20199 client apps to query for the correct icon size.. but oh well. A
20200 couple of patches to deal with the screwy client_window ==
20201 whole_window notifyicon stuff (we don't want to PerformNCCalc, for
20202 instance, and also make sure we don't XSelectInput twice).
20204 2006-10-30 Chris Toshok <toshok@ximian.com>
20206 * Control.cs: ugh, the unit test fix (CH11, yesterday) breaks when
20207 recreating forms. Control recreation is the bane of my existence.
20208 Fix it in a way that keeps everyone happy.
20210 2006-10-30 Chris Toshok <toshok@ximian.com>
20212 * XplatUIX11.cs: use StructureNotifyMask on all whole_windows, not
20213 just non-CHILD ones. otherwise sometimes scrollbars end up with
20214 client_windows not being resized to the proper size (ReportBuilder
20215 shows this extremely well).
20217 2006-10-30 Chris Toshok <toshok@ximian.com>
20219 * XplatUIX11.cs (SetWMStyles): reinstate the XSetTransientForHint
20220 for non-WS_EX_APPWINDOW windows. This is what keeps them from
20221 showing up in the gnome taskbar. Fixes bug #79790.
20223 2006-10-30 Chris Toshok <toshok@ximian.com>
20225 * ApplicationContext.cs: guard against a NRE.
20227 * Application.cs: null out the old MainForm for the context, so we
20228 don't try to use it again once it's disposed. Fixes bug #79783.
20230 2006-10-30 Chris Toshok <toshok@ximian.com>
20232 * DataGrid.cs (set_DataSource, set_DataMember): if we have a
20233 BindingContext, set the data source directly, otherwise do the
20234 lazy approach - the actual ListManager will be created when we get
20235 a BindingContext. Fixes bug #79700.
20237 2006-10-30 Jonathan Pobst <monkey@jpobst.com>
20239 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
20240 XplatUIX11.cs: Remove old 2 parameter SetVisible.
20242 * Control.cs: Use the new 3 parameter SetVisible with activate = true.
20244 2006-10-30 Jonathan Pobst <monkey@jpobst.com>
20246 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Add an overload
20247 of SetVisible that allows a window to be shown, but not activated.
20248 This is needed on Windows for MenuStrip, and can probably be used
20249 with MainMenu and ComboBox to fix the focus stealing issues on
20252 * XplatUIOSX.cs, XplatUIX11.cs: Not needed, call existing SetVisible.
20254 2006-10-30 Alexander Olk <alex.olk@googlemail.com>
20256 * PictureBox.cs: Fix the output of the ToString method.
20258 2006-10-29 Chris Toshok <toshok@ximian.com>
20260 * Control.cs (get_TopLevelControl): fix bug #79781.
20262 2006-10-29 Chris Toshok <toshok@ximian.com>
20264 * ListControl.cs (set_DataSource): throw Exception here, not
20265 ArgumentException, to match MS behavior.
20267 2006-10-29 Chris Toshok <toshok@ximian.com>
20269 * Form.cs: remove the try-catch's around calls to GetWindowState.
20270 We can just check the return value.
20272 * XplatUIX11.cs: don't throw exceptions from GetWindowState.
20275 * XplatUI.cs: Add note about additional return value for
20278 2006-10-29 Chris Toshok <toshok@ximian.com>
20280 * Control.cs (CreateHandle): when we create our handle, we also
20281 create the handles of our child controls. Fixes one of the
20282 Control unit tests (CH11).
20284 2006-10-28 Alexander Olk <alex.olk@googlemail.com>
20286 * MimeIcon.cs: If a gnome icon doesn't exist add a default icon.
20288 2006-10-28 Alexander Olk <alex.olk@googlemail.com>
20290 * ThemeClearlooks.cs: A little speedup.
20292 2006-10-27 Chris Toshok <toshok@ximian.com>
20294 * Control.cs: implement Control.FromChildHandle in a way that
20295 matches the docs (and fixes the failed test.)
20297 2006-10-27 Chris Toshok <toshok@ximian.com>
20299 * DataGridTableStyle.cs: reproduce buggy MS behavior (with
20302 * DataGrid.cs: implement ResetForeColor such that the tests
20305 2006-10-27 Chris Toshok <toshok@ximian.com>
20307 * ToolBarButton.cs: setting text/tooltiptext to null results in it
20308 being set to "". Fixes bug #79759.
20310 2006-10-27 Jackson Harper <jackson@ximian.com>
20312 * TextControl.cs: We need to clear the entire selection area when
20313 setting the start, otherwise multiline selections are still
20316 2006-10-26 Chris Toshok <toshok@ximian.com>
20318 * PropertyGridView.cs:
20320 - ifdef all the code specific to the double
20321 buffer case, and provide some alternatives in the non-doublebuffer
20322 code, which makes heavy use of XplatUI.ScrollWindow to move things
20323 around without having to invalidate (and cause flicker). There
20324 are still some drawing problems in the non-doublebuffered case, so
20325 DOUBLEBUFFER is defined by default.
20327 - Fix the way dropdowns are handled. now we explicitly watch for
20328 the events which might cause the dropdown to close, and break out
20329 of the nested event loop there. This gets rid of all Capture
20330 code, at the expense of the Msg special casing. Seems to work,
20331 though, and fixes bug #79743.
20333 2006-10-27 Rolf Bjarne Kvinge <RKvinge@novell.com>
20334 * Control.cs: SetIsRecreating now recreates implicitly added
20335 child controls as well. Finally fixes #79629. The flag passed to
20336 SetIsRecreating has also been removed since it wasn't used.
20338 2006-10-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
20340 * PageSetupDialog.cs: Clean some code, fix some bits,
20341 add some checks, and add a printer sub-dialog.
20343 2006-10-26 Chris Toshok <toshok@ximian.com>
20345 * PropertyGrid.cs: make set_SelectedObject call
20346 set_SelectedObjects, and move the duplicate logic to the
20347 SelectedObjects setter. Also, raise SelectedObjectsChanged.
20349 * PropertyGridView.cs: hide the textbox when we get a
20350 SelectedObjectsChanged event.
20354 2006-10-26 Chris Toshok <toshok@ximian.com>
20356 * PropertyGridView.cs: deal with the type converter not supporting
20357 GetStandardValues() or GetStandardValues() returning null, which
20358 is does in the default case. Fixes #79742.
20360 2006-10-25 Andreia Gaita <shana.ufie@gmail.com>
20362 * CheckedListBox.cs: nunit no longer crashes when selecting
20363 Project/Edit menu option
20365 2006-10-25 Andreia Gaita <shana.ufie@gmail.com>
20367 * MenuAPI.cs: prevent ExecFocusedItem from blowing up if there
20368 is no menu selected. fixes #79739
20370 2006-10-25 Chris Toshok <toshok@ximian.com>
20372 * PropertyGridView.cs: factor out the splitter invalidation code
20373 into the SplitterPercent setter, and for kicks implement the
20374 Ctrl-Left/Ctrl-Right handling that moves the splitter by a small
20375 amount in either direction.
20377 2006-10-25 Chris Toshok <toshok@ximian.com>
20379 * PropertyGridView.cs: do some cleanup of the brush used to draw
20380 text - read only fields should be grayed out. not sure how to do
20381 this with the textbox, though. but the textbox's should also be
20382 readonly now at least. Also, hide/show the textbox when resizing
20385 * CursorConverter.cs: use System.Reflection when getting the
20386 properties of Cursors, as TypeDescriptor.GetProperties isn't
20387 returning static properties.
20389 2006-10-25 Chris Toshok <toshok@ximian.com>
20391 * PropertyGridView.cs: factor out the up/down handling, and reuse
20392 it for page up/down. also add End/Home support.
20394 2006-10-25 Chris Toshok <toshok@ximian.com>
20396 * PropertyGridView.cs:
20398 - ensure the selected grid item is visible in the scrolled area,
20401 - fix Keys.Down handling when you're on the last item in the
20404 2006-10-25 Mike Kestner <mkestner@novell.com>
20406 * MenuAPI.cs : set the ActiveTracker for MainMenu non-popup
20407 clicks too. Fixes #79725.
20409 2006-10-24 Chris Toshok <toshok@ximian.com>
20411 * PropertyGrid.cs: use property.Converter instead of
20412 TypeDescriptor.GetConverter(property.PropertyType), so we catch
20413 TypeConverters declared on the property as well as on the
20414 PropertyType. Fixes bug #79678.
20416 2006-10-24 Alexander Olk <alex.olk@googlemail.com>
20418 * MimeIcon.cs, Mime.cs:
20419 Fallback to the default platform handler if no shared mime info
20420 stuff exists (fixes #79693).
20422 2006-10-20 Andreia Gaita <shana.ufie@gmail.com>
20423 * ContainerControl.cs: Incorrect contains check in ActiveControl
20424 from previous fix (duh).
20426 2006-10-20 Chris Toshok <toshok@ximian.com>
20428 * PropertyGridView.cs: the dropdown should be MIN(number of items
20429 in list, 15). Fixes #79551.
20431 2006-10-20 Andreia Gaita <shana.ufie@gmail.com>
20432 Fixes #79384, #79394, #79652, #79667
20435 - Modal windows are now destroyed in the proper order for windows
20437 * ContainerControl.cs:
20439 - ActiveControl setter has more conditions on when to return:
20440 - if we're reselecting the active control, but it actually
20441 didn't have focus (window hidden or some such), it runs
20442 - if the active control being selected doesn't actually
20443 exist in the container, it returns
20447 - The ShowDialog now gets the current form as the owner when
20448 invoking without parameters, and correctly activates the owner
20453 - MessageBox now catches the Escape key to exit
20455 2006-10-20 Chris Toshok <toshok@ximian.com>
20457 * PropertyGridView.cs: fix a number of issues (bug #78565, and
20458 most of bug #79676):
20460 - you can navigate around the property grid with the arrow keys.
20462 - the dropdown is sized properly when the pg has a vertical
20465 - fix the indentation for subentries, and properly select the
20468 - fix the gray bar's drawing (only draw it to the last element,
20469 not for the height of the control. Also make sure we draw that
20470 last horizontal grid line.
20472 - use the same mechanism the datagrid uses wrt the editing textbox
20473 when scrolling/resizing/etc. Namely, we hide it first, do the
20474 operation, then show it again (if it's still visible).
20476 - aggressively remove a lot of unnecessary refreshes (and also
20477 calls to Invalidate(). call more limited variants, and only redraw
20482 - when we're populating the merged collection, fill in the UI
20483 parent with either the passed in item, or the category item we
20486 - remove the Refresh call from the BorderHelpControl.OnSizeChanged.
20488 * GridItem.cs: drop some fully qualified names.
20490 * GridEntry.cs: add a "UIParent", which is basically the parent
20493 * GridItemCollection.cs: add an IndexOf method.
20495 2006-10-20 Mike Kestner <mkestner@novell.com>
20497 * MainMenu.cs : go back to Draw in OnMenuChanged. Until we get
20498 a working win32 NC invalidation mechanism, we can't invalidate
20499 menus. [Fixes #79705]
20501 2006-10-20 Mike Kestner <mkestner@novell.com>
20503 * ListBox.cs : don't update the VScrollbar if the list is empty,
20504 just hide it. [Fixes #79692]
20506 2006-10-20 Jackson Harper <jackson@ximian.com>
20508 * RichTextBox.cs: Handle some special chars better, and don't skip
20509 the entire group when we encounter a special char that we don't
20512 2006-10-18 Chris Toshok <toshok@ximian.com>
20514 * PropertyGridView.cs: address a number of issues from bug #79676,
20515 mostly of the cosmetic variety.
20517 - The highlight rectangle for indented items not extends all the
20520 - Indented items aren't indented so much.
20522 - the dropdown is properly sized width-wise if the pg has a
20523 vertical scrollbar.
20525 2006-10-18 Chris Toshok <toshok@ximian.com>
20527 * XplatUIX11.cs (SystrayAdd): a rather convoluted change, but the
20528 systray stuff is rather convoluted to begin with.
20530 systray icons are a single window for some reason (that I haven't
20531 figured out yet), and for them, client_window == whole_window.
20532 Given the way the tests are structured elsewhere to determine
20533 which paints are pending (client vs. nc), that situation will
20534 always yield PAINT, not NCPAINT. So, if we have a pending
20535 nc_expose and no pending expose, remove the hwnd from the paint
20536 queue, and also set nc_expose_pending to false, to keep us from
20537 blocking further expose's adding the hwnd to the paint queue.
20539 phew. like i said, a rather convoluted change. Fixes the
20540 notifyicon repaint issues in bug #79645.
20542 2006-10-18 Chris Toshok <toshok@ximian.com>
20544 * Form.cs: when getting the backcolor of the form, don't get
20545 base.BackColor, as this allows parents to influence the background
20546 color. This breaks mdi forms. Instead, if the background_color
20547 is empty, return the default.
20549 2006-10-18 Chris Toshok <toshok@ximian.com>
20551 * XplatUIX11.cs: change some debug ifdefs, and return XGetParent
20552 to being private instead of internal static.
20554 * Control.cs: remove all the stupid ParentWaitingOnRecreation
20555 crap, it wasn't working for more deeply nested controls anyway,
20556 and we already have the is_recreating flag - use that instead.
20557 Before calling DestroyHandle in RecreateHandle, recurse through
20558 the control tree setting it to true. this returns the recreate
20559 code to much of its original simplicity, while now guaranteeing we
20560 actually recreate everything we're supposed to. This change gets
20561 fyireporting actually showing mdi children.
20563 2006-10-17 Chris Toshok <toshok@ximian.com>
20565 * Form.cs: remove some debug spew, and collapse some duplicate
20566 code at the end of SetClientSizeCore.
20569 - add some more debug spew here too wrt Destroy handling.
20570 - don't call hwnd.Dispose in DestroyWindow, it's effectively done
20571 in Control's handling of WM_DESTROY.
20572 - Remove the handling of zombie window DestroyNotifies from the
20573 event loop - we don't need it. Now the only DestroyNotifies we
20574 actually handle are ones generated by X.
20575 - When sending _NET_ACTIVE_WINDOW, the first param should be 1, to
20576 match gtk's (functioning) handling of this. This keep metacity
20577 from leaving droppings in the form of wm borders with no window
20578 contents all over the place.
20581 - add a bunch of debug spew wrt control recreation.
20582 - fix a bug where we weren't tracking Visible properly on
20584 - fixed the WM_PAINT double buffer handling to support re-entrant
20585 calls (yes, i know it's gross, but it's happening to us).
20587 2006-10-17 Rolf Bjarne Kvinge <rolfkvinge@ya.com>
20588 * ThemeWin32Classic.cs: changed drawing of selected days
20589 to make them look better.
20591 2006-10-16 Chris Toshok <toshok@ximian.com>
20593 * Hwnd.cs: replace the user_data/client_dc/non_client_dc with
20594 drawing_stack. Nuke the ClientDC/NonClientDC properties.
20596 * XplatUIX11.cs: move away from using hwnd.client_dc and
20597 hwnd.non_client_dc and on to a stack of dc's (and in window's
20598 case, PAINTSTRUCT's), so we can deal with nested Paint calls
20599 without puking or not disposing of Graphics objects.
20601 * XplatUIOSX.cs: same.
20603 * XplatUIWin32.cs: same.
20605 2006-10-03 Alexander Olk <alex.olk@googlemail.com>
20607 * FileDialog.cs: Don't call on_directory_changed inside
20608 OnSelectedIndexChanged (it changes the SelectedIndex too).
20609 Instead move it to OnSelectionChangeCommitted.
20611 2006-10-13 Chris Toshok <toshok@ximian.com>
20613 * XplatUIX11.cs: more Destroy work. the current code does the
20614 following things, in order:
20616 1. Enumerates all handles of all controls at or below the one
20617 being destroyed, in pre-order. As it is doing this, it marks the
20618 handles as zombie and clears all references to them.
20620 2. calls XDestroyWindow on the window passed in.
20622 3. SendMessage's WM_DESTROY to all he handles in the accumulated
20625 2006-10-13 Chris Toshok <toshok@ximian.com>
20627 * XplatUIX11.cs: set hwnd.zombie to true before calling
20628 SendMessage (WM_DESTROY). this keeps us from marking the new
20629 window a zombie, and also keeps us from calling sendmessage at
20632 2006-10-13 Jackson Harper <jackson@ximian.com>
20634 * TextControl.cs: Do not show the caret and selection at the same
20635 time. Reduces ugliness by 35%.
20637 2006-10-13 Chris Toshok <toshok@ximian.com>
20639 * XplatUIX11.cs (SendWMDestroyMessages): set the hwnd to be a
20640 zombie after we do the recursive call, so we actually do call
20641 SendMessage on the children controls.
20642 (GetMessage): if we find a pending paint event for a zombie hwnd,
20643 remove the hwnd from the paint queue, or else it will always be
20644 there (and we'll effectively loop infinitely)
20646 2006-10-13 Mike Kestner <mkestner@novell.com>
20648 * MenuItem.cs : add Selected format under keynav too.
20651 2006-10-13 Gert Driesen <drieseng@users.sourceforge.net>
20653 * PropertyGrid.cs: Fixed some NRE's and small difference between our
20654 implementation and that of MS.
20656 2006-10-13 Chris Toshok <toshok@ximian.com>
20658 * Control.cs (OnInvalidated) only futz with the invalid_region if
20659 the control is double buffered. this fixes the apparent hang in
20660 the ListView unit tests. Someone needs to make the
20661 BeginEndUpdateTest not call OnInvalidated 15004 times, though..
20663 2006-10-13 Chris Toshok <toshok@ximian.com>
20665 * PropertyGridView.cs:
20667 - do a little refactoring so that only one place calls
20668 dropdown_form.Hide, and that is CloseDropDown. make everywhere
20669 else call that. Also make it Refresh, since there are redraw bugs
20670 otherwise (we should take a look at that...)
20672 - do a little more refactoring work to share the body of code
20673 involved with the drop down. it was duplicated in the code
20674 dealing with the listbox handling and in the code dealing with the
20677 - add a Capture to the dropdown form's control once it's
20678 displayed, and add a MouseDown handler that checks to make sure
20679 the position is inside the control. If it's not, close the
20680 dropdown. This fixes #78190.
20682 - in SetPropertyValueFromUITypeEditor, only call SetPropertyValue
20683 if the value is different than the initial value.
20685 2006-10-13 Andreia Gaita <shana.ufie@gmail.com>
20687 * Control.cs: see #78650
20688 - Fixed GetNextControl for several cases:
20689 - Changed FindFlatForward to return
20690 correct sibling control when more than one
20691 control has same TabIndex as the currently
20693 - Changed FindFlatBackward to loop children
20694 from last to first and apply same logic as in
20696 - Changed FindControlForward to search for
20697 children when control is not a container
20698 but has children, or search for siblings if
20699 control is a container...
20700 - Changed FindControlBackward to continue
20701 searching for child controls when hitting
20704 - Fixed Focus method to update ActiveControl
20705 (FocusTest.FocusSetsActive failure)
20708 - Focus rectangle now refreshes when gaining
20710 - Removed grab for Tab key on IsInputKey that
20711 was keeping tab navigation from working (#78650)
20713 2006-10-13 Chris Toshok <toshok@ximian.com>
20715 * PropertyGridView.cs:
20716 - Rewrite SetPropertyValue to loop over SelectedGridItem's
20719 - Deal with GridItem.Value == null a few places.
20722 - replace the PopulateGridItemCollection with a pair of methods
20723 which compute the intersection of all the properties in the
20724 SelectedObjects array. Fixes #79615.
20726 - Throw ArgumentException from set_SelectedObjects if there's a
20729 - Add GetTarget method which can be used to traverse up the
20730 GridItem.Parent chain. It depends on the assumption that
20731 selected_objects for different GridEntries are always in the same
20732 order (a safe assumption). Use this method and loop over all the
20733 selected objects in the entry when calling RemoveValueChanged and
20736 * GridEntry.cs: Make this handle multiple selected objects.
20737 .Value returns null if not all the selected objects share the same
20740 2006-10-12 Jonathan Pobst <monkey@jpobst.com>
20741 * ToolStrip.cs, ToolStripButton.cs, ToolStripComboBox.cs,
20742 ToolStripControlHost.cs, ToolStripItem.cs, ToolStripLabel.cs,
20743 ToolStripProfessionalRenderer.cs, ToolStripProgressBar.cs,
20744 ToolStripSeparator.cs, ToolStripSplitStackLayout.cs,
20745 ToolStripTextBox.cs: Add accessibility, fix attributes/API and
20746 add additional functionality.
20748 2006-10-12 Mike Kestner <mkestner@novell.com>
20750 * ErrorProvider.cs : new ToolTipWindow ctor sig.
20751 * HelpProvider.cs : new ToolTipWindow ctor sig.
20752 * ToolTip.cs : remove ToolTip param from Window sig since it is
20754 * ToolBar.cs : add tooltip support. Fixes #79565.
20756 2006-10-12 Rolf Bjarne Kvinge <rolfkvinge@ya.com>
20758 * ComboBox.cs: move the events in set_SelectedIndex to
20759 after the call to HighlightIndex in order to avoid
20760 possible recursion and subsequent problems with the call
20761 to HighlightIndex and include a range check in
20762 set_HighlightIndex. Fixes #79588
20764 2006-10-12 Rolf Bjarne Kvinge <rolfkvinge@ya.com>
20766 * MonthCalendar.cs: When FirstDayOfWeek is default set firstday
20767 to ui thread's settings instead of sunday.
20768 * ThemeWin32Classic.cs: Localize the day string. Fixes #79563
20770 2006-10-12 Rolf Bjarne Kvinge <rolfkvinge@ya.com>
20772 * DateTimePicker.cs
20774 * ThemeWin32Classic.cs: rewrote DateTimePicker to fix bug #78364
20775 and implement missing functionality (selecting different parts
20776 of the date and edit them individually with the keyboard).
20778 2006-10-11 Chris Toshok <toshok@ximian.com>
20780 * Control.cs (OnInvalidated): fix NRE relating to last change.
20782 2006-10-11 Chris Toshok <toshok@ximian.com>
20784 * XplatUIX11.cs (SetWMStyles): make sure we include the MAXIMIZED
20785 atoms in _NET_WM_STATE here if the window is maximized. We need
20786 to do this because we're *replacing* the existing _NET_WM_STATE
20787 property, so those atoms will be lost otherwise, and any further
20788 call to GetWindowState will return Normal for a window which is
20789 actually maximized. Fixes #79338.
20791 2006-10-11 Jackson Harper <jackson@ximian.com>
20793 * TextControl.cs: Special case for setting selection end to
20794 selection start, we basically kill the anchor.
20795 - some todo comments.
20797 2006-10-11 Chris Toshok <toshok@ximian.com>
20799 * Control.cs: switch to using an "invalid_region" to track which
20800 parts of the image buffer need updating. This is more code than
20801 the simple fix from r66532. That version just attempted to always
20802 fill the entire buffer on redraw, which turns out to be
20803 inefficient when invalidating small rectangles. This version
20804 simply adds the invalid rectangle to the invalid region. When we
20805 get any WM_PAINT message we see if it can be filled using the
20806 image buffer, and if it can't (if the paint event's clip rectangle
20807 is visible in the invalid region) we first fill the image buffer.
20808 So, the image buffer is still a cache, we just fill it lazily.
20810 * PaintEventArgs.cs: remove the SetClipRectangle method, we don't
20811 need it any longer.
20813 2006-10-11 Chris Toshok <toshok@ximian.com>
20815 * XplatUIX11.cs (SetWindowPos): we need to update both position as
20816 well as size after calling XMoveResizeWindow. This keeps us from
20817 ignoring future SetWindowPos calls. Fixes the disappearing
20818 DateTimePicker in the ToolBarDockExample from bug #72499.
20820 2006-10-11 Chris Toshok <toshok@ximian.com>
20822 * TextBoxBase.cs: reorder things a bit when it comes to
20823 resizing-causing-recalculation. we were recalculating the
20824 document when our position was changed, which shouldn't happen.
20825 We only care about size changes. Clear up some more redundant
20826 recalculation calls while I'm at it. This makes the toolbar dock
20827 example snappy when you're just dragging toolbars around (since it
20828 causes a relayout whenever you move one.)
20830 2006-10-11 Chris Toshok <toshok@ximian.com>
20832 * ToolBarButton.cs (get_Rectangle): this only returns
20833 Rectangle.Empty if Visible == false, or Parent == null.
20834 Parent.Visible doesn't matter.
20836 2006-10-10 Chris Toshok <toshok@ximian.com>
20838 * Control.cs, PaintEventArgs.cs: "internal set { .. }" isn't loved
20839 by .net 1.1, so switch to an internal method instead.
20841 2006-10-10 Chris Toshok <toshok@ximian.com>
20843 * Control.cs (WM_PAINT): when a control is double buffered we draw
20844 initially to the ImageBuffer and then copy from there. But when a
20845 parent control which has child controls is double buffered, the
20846 initial drawing doesn't encompass the entire ClientRectangle of
20847 the parent control, so we end up with uninitialized bits (this is
20848 easily seen by dragging the top toolbar in
20849 wf-apps/ToolBarDockExample to the right, quickly). The fix is to
20850 manually set the ClipRectangle of the paint_event (only the one we
20851 use to populate the ImageBuffer) to ClientRectangle. Fixes more
20852 of the nastiness in bug #72499.
20854 * PaintEventArgs.cs: Add an internal setter for ClipRectangle,
20855 which we use in Control.cs's WM_PAINT handling.
20857 2006-10-10 Jackson Harper <jackson@ximian.com>
20859 * TextBoxBase.cs: Finish off the autoscrolling stuff.
20861 2006-10-10 Chris Toshok <toshok@ximian.com>
20863 * Cursor.cs: Apply a slightly different patch to the one suggested
20866 2006-10-10 Jackson Harper <jackson@ximian.com>
20868 * MenuItem.cs: Make sure to put the mdi child in the hashtable,
20869 not the parent form.
20870 * TextControl.cs: use difference in old line count vs new count to
20871 calculate how many lines were added, this takes into account soft
20872 line breaks properly.
20874 2006-10-10 Chris Toshok <toshok@ximian.com>
20876 * LinkLabel.cs: don't call MeasureCharacterRanges against a
20877 rectangle located at 0,0 and the size of the text. Use
20878 ClientRectangle instead. This fixes rendering of non-left aligned
20881 2006-10-10 Jackson Harper <jackson@ximian.com>
20883 * TextBoxBase.cs: When we set the selection start position the
20885 * TextControl.cs: Need to update the caret when we decrement it to
20887 - Make sure that the selection_visible flag gets reset to false if
20888 the selection isn't visible. Before this you could get it set to
20889 visible by changing the selection start, then changing the end to
20892 2006-10-09 Jackson Harper <jackson@ximian.com>
20894 * TreeView.cs: Don't update scrollbars when we aren't visible.
20895 * TreeNodeCollection.cs: Only need to update scrollbars if being
20896 added to an expanded visible node or the root node.
20898 2006-10-09 Chris Toshok <toshok@ximian.com>
20900 * XplatUIX11.cs (SendMessage): fix NRE.
20902 2006-10-09 Jackson Harper <jackson@ximian.com>
20904 * TextBoxBase.cs: Implement horizontal autoscrolling.
20905 * TextControl.cs: Add a movement types that allows moving forward
20906 and backwards without wrapping.
20908 2006-10-09 Mike Kestner <mkestner@novell.com>
20910 * ListViewItem.cs : layout changes for wrapped LargeIcon labels
20911 with focus "expansion" of labels. Fixes #79532 and then some.
20912 * ThemeWin32Classic.cs : add LineLimit to ListView label format
20915 2006-10-09 Jackson Harper <jackson@ximian.com>
20917 * TextBoxBase.cs: Set the default max values to MaxValue since
20918 we use the scrollbar for autoscrolling and the default value is
20919 100. If we don't do this the caret won't keep up with typing
20920 after about 18 characters.
20921 * TextControl.cs: Make sure the selection is offset by the
20922 viewport x. This fixes selection when using auto scrolling.
20924 2006-10-07 Andreia Gaita <shana.ufie@gmail.com>
20926 * Form.cs: The active control should be selected after the
20927 OnLoad so that any child control initialization that affects
20928 the selection is done. Fixes #79406
20930 2006-10-06 Chris Toshok <toshok@ximian.com>
20932 * XplatUIX11.cs: This is perhaps a dangerous change, but it seems
20933 to have no evil effects.
20935 - Stop selecting StructureNotifyMask on non-toplevel windows.
20937 The only way children should be resized is by using the SWF api,
20938 and we already send WM_WINDOWPOSCHANGED messages in those cases.
20939 Toplevel windows can be interacted with via the window manager,
20940 and so we keep the input mask there.
20942 The other event StructureNotifyMask gives us (that we care
20943 about) is DestroyNotify. The code is already structured such
20944 that it assumes we won't be getting a DestroyNotify event for
20945 the window we pass to XDestroyWindow (which is what
20946 StructureNotifyMask is supposed to guarantee.) So, that code
20947 shouldn't be affected by this either.
20949 - Stop selecting VisibilityChangeMask altogether.
20951 We weren't doing anything with the resulting events anyway.
20953 This vastly reduces the number of X requests and events we see
20954 when resizing/laying out a large ui.
20956 2006-10-06 Chris Toshok <toshok@ximian.com>
20958 * ScrollableControl.cs (DisplayRectangle): we need to take into
20959 account the DockPadding regardless of whether or not auto_scroll
20960 == true. rework this slightly to this effect, and fix bug #79606,
20961 and part of #72499 (you can now see the drag handles and drag
20964 2006-10-06 Gert Driesen <drieseng@users.souceforge.net>
20966 * ListViewItem.cs: Collections of selected and checked items are now
20967 dynamically rebuilt. Whenever an item is (un)checked or (de)selected
20968 we mark the collection "dirty".
20969 * ListView.cs: Marked collections readonly. Modified UpdateSelection
20970 to only clear SelectedItems when a new item is selected and MultiSelect
20971 is enabled. CheckedItems and SelectedItems now subscribe to Changed
20972 event of ListViewItemCollection, and mark its list dirty whenever
20973 that event is fire. This allows us to return selected/checked items
20974 in the same order as they are in the Items collection. This matches
20977 2006-10-06 Chris Toshok <toshok@ximian.com>
20979 * NotifyIcon.cs (HandleMouseUp): only show the context menu on
20980 right mouse clicks. Fixes bug #79593.
20982 2006-10-06 Chris Toshok <toshok@ximian.com>
20984 * Splitter.cs: doh, fix splitters that don't want to cancel the
20985 movement when you drag them. Also, impose the limits on the
20986 values we send to the SplitterMovingEvent. Fixes #79598.
20988 2006-10-06 Jackson Harper <jackson@ximian.com>
20990 * TextBoxBase.cs: Ignore whether or not the scrollbar is enabled,
20991 since we use this for auto scrolling also.
20993 2006-10-05 Chris Toshok <toshok@ximian.com>
20995 * DataGridBoolColumn.cs: Nuke the code from ConcedeFocus. I'm
20996 beginning to think that most datagrid column types don't need this
20997 method. Fixes bug #79392.
20999 2006-10-05 Chris Toshok <toshok@ximian.com>
21001 * DataGrid.cs: move back to a more lazy scheme for creating the
21002 CurrencyManager, so we aren't updating it every time you set
21003 either DataSource or DataMember. Also, don't call
21004 RecreateDataGridRows if the currency manager hasn't changed.
21006 2006-10-05 Chris Toshok <toshok@ximian.com>
21008 * ComboBox.cs: by the time the OnSelectionChangeCommitted event is
21009 emitted, SelectedIndex should already be updated. Fixes bug
21012 2006-10-05 Jonathan Pobst <monkey@jpobst.com>
21014 * ToolStripComboBox.cs, ToolStripControlHost.cs, ToolStripProgressBar,
21015 ToolStripTextBox.cs: Initial commit.
21016 * ToolStripItem.cs: Fixes for OnLayout, BackColor, Parent.
21018 2006-10-05 Jackson Harper <jackson@ximian.com>
21020 * TabControl.cs: We need to invalidate the tab control area when
21021 new ones are added (duh).
21023 2006-10-03 Chris Toshok <toshok@ximian.com>
21025 * Form.cs (ProcessDialogKey): if the focused control is in this
21026 form and is a button, call its PerformClick method here. Fixes
21029 2006-10-04 Jackson Harper <jackson@ximian.com>
21031 * TabPage.cs: Ignore setting of Visible, and add an internal
21032 method for setting the controls visibility. TabPage's Visible
21033 property is a little strange on MS, this seems to make us
21034 compatible, and fixes cases where people set all the tab pages to
21036 * TabControl.cs: Use the new internal setting on tab pages
21039 2006-10-03 Mike Kestner <mkestner@novell.com>
21041 * ComboBox.cs : raise Click on ComboTextBox clicks. Fixes #79555.
21043 2006-10-03 Mike Kestner <mkestner@novell.com>
21045 * ListView.cs : use is_visible instead of Visible to check if
21046 scrollbars should be placed/sized. Also some max_wrap_width
21047 love for LargeIcon view. [Fixes #79533]
21049 2006-10-03 Atsushi Enomoto <atsushi@ximian.com>
21052 Make set_TextAlign() do actually update the align. Fixed #78403.
21054 2006-10-03 Chris Toshok <toshok@ximian.com>
21056 * DataGrid.cs: fix a crash when switching datasources if the
21057 vertical scrollbar is at someplace other than Value = 0. Also,
21058 reduce the number of recalculation passes we do in SetDataSource
21061 2006-10-03 Jackson Harper <jackson@ximian.com>
21063 * TextBoxBase.cs: Move the if value the same bail check up, we
21064 don't want to empty the document if it is already empty, this
21065 seems to severly mess up the caret. TODO: I should probably fix
21066 the empty statement to update teh caret somehow.
21068 2006-10-03 Chris Toshok <toshok@ximian.com>
21070 * ThemeWin32Classic.cs, DataGrid.cs: some changes so that the
21071 incredibly hacky Windows.Forms FAQ autosize rows entry (it uses
21072 reflection, an internal row type, properties on said type, etc.)
21073 will work with our datagrid. Fixes #79531.
21075 2006-10-03 Alexander Olk <alex.olk@googlemail.com>
21077 * FileDialog.cs: Don't crash if a path is not accessible
21078 (System.UnauthorizedAccessException). Fixes #79569.
21079 * MimeIcon.cs: Workaround for a Uri bug. Unix paths/files can have
21080 a ':' too. Return unknown icon for those paths/files.
21082 2006-10-03 Sebastien Pouliot <sebastien@ximian.com>
21084 * ToolTip.cs: Fix rare, but possible, NRE on MouseEnter when
21085 GetContainerControl returns null.
21087 2006-10-02 Chris Toshok <toshok@ximian.com>
21089 * XplatUIX11.cs (GetWindowState): use hwnd.client_window in the
21090 call to XGetWindowAttributes instead of "handle". fixes an X
21091 error using notifyicon after the NotifyIconWindow to Form base
21094 2006-10-02 Chris Toshok <toshok@ximian.com>
21096 * XplatUIX11.cs (QueryPointer): new function, encapsulating the
21097 server grab and looping we need to do to get down to the most
21098 deeply nested child window.
21099 (SetCursorPos): use QueryPointer instead of GetCursorPos, and call
21100 QueryPointer again after the WarpPointer so we can generate a
21101 proper (fake) MotionNotify event to be enqueued in the destination
21103 (GetCursorPos): call QueryPointer.
21107 2006-10-02 Jackson Harper <jackson@ximian.com>
21109 * NotifyIcon.cs: Derive the notify icon from a form, so things
21110 like FindForm work on it.
21111 - Swallow the WM_CONTEXTMENU message, since that is generated on
21112 mouse down, and context menu is a mouse up kinda guy. I believe
21113 the correct fix here is probably to make the notify icon entirely
21114 NC area, but this seems to work fine for anyone not manipulating
21117 2006-10-02 Jonathan Pobst <monkey@jpobst.com>
21119 * ToolStrip.cs, ToolStripButton.cs, ToolStripItem.cs,
21120 ToolStripItemCollection.cs, ToolStripLabel.cs,
21121 ToolStripProfessionalRenderer.cs, ToolStripRenderer.cs,
21122 ToolStripSeparator.cs, ToolStripSplitStackLayout.cs:
21123 Initial implementation.
21124 * TextRenderer.cs: Provide padding to MeasureText.
21126 2006-10-02 Sebastien Pouliot <sebastien@ximian.com>
21128 * ButtonBase.cs: Fix CreateAccessibilityInstance to return an instance
21129 of ButtonBaseAccessibleObject. Fix bug #79552.
21131 2006-10-02 Jackson Harper <jackson@ximian.com>
21133 * MdiWindowManager.cs: When maximizing use the containers client
21134 rect, not it's bounds, so nc area is accounted correctly.
21135 - Use the parent form's size for the menu position, since the
21136 client isn't always the full form size.
21138 2006-10-01 Chris Toshok <toshok@ximian.com>
21140 * ScrollableControl.cs: make sure neither right_edge or
21141 bottom_edge are < 0, since they're used as LargeChange for the
21142 horiz/vert scrollbars respectively. Fixes #79539.
21144 2006-10-01 Chris Toshok <toshok@ximian.com>
21146 * NotifyIcon.cs: add NotifyIconWindow.InternalRecreateHandle, so
21147 the xplatuix11 code can cause us to destroy/recreate our handle.
21151 - this code can be invoked many times for the same Hwnd. Make
21152 sure we only destroy the client window once (the first time this
21153 method is called). This fixes bug #79544.
21154 - Remove the call to the improperly bound XSync. why we had two
21155 bindings to this, I will never know, but this call resulted in
21156 events being discarded from the queue(!).
21157 - correct a misunderstanding of _XEMBED_INFO - the second atom is
21158 not our current state but the state we wish to be in. So, 0 if
21159 we don't want to be mapped. Change it to 1.
21160 (SystrayRemove): The XEMBED spec makes mention of the fact that
21161 gtk doesn't support the reparent of client windows away from the
21162 embedder. Looking at gtksocket-x11.c seems to agree with this.
21163 The only avenue we have for removing systray icons is to destroy
21164 them. We don't want the handle to go away for good, though, so
21165 call InternalRecreateHandle on the NotifyIconWindow. Fixes
21168 2006-10-01 Chris Toshok <toshok@ximian.com>
21170 * Form.cs (WndProc): inline the native_enabled variable usage into
21171 the cases in which it's used. Fixes #79536.
21173 2006-09-29 Mike Kestner <mkestner@novell.com>
21175 * ListView.cs : toggle the selection state for ctrl clicks in
21176 multiselect mode. [Fixes #79417]
21178 2006-09-29 Mike Kestner <mkestner@novell.com>
21180 * ListView.cs : kill CanMultiSelect and refactor the selection
21181 code to support multiselection in the absence of mod keys. Steal
21182 arrow/home/end keys by overriding InternalPreProcessMessage to
21183 restore regressed keynav behavior.
21186 2006-09-29 Jackson Harper <jackson@ximian.com>
21188 * MdiClient.cs: Repaint the titlebars when the active window is
21191 2006-09-29 Chris Toshok <toshok@ximian.com>
21193 * Application.cs: when entering a runloop with a modal, make sure
21194 the hwnd is enabled. Fixes #79480.
21196 2006-09-29 Chris Toshok <toshok@ximian.com>
21198 * DataGrid.cs (CurrentCell): if we try to navigate to the add row
21199 when ListManager.CanAddRows == false, bump us back one.
21201 * DataGridColumnStyle.cs (ParentReadOnly): remove the
21202 listmanager.CanAddRows check. This makes ArrayLists uneditable
21203 using a datagrid, which is not right.
21204 (SetColumnValueAtRow): call IEditable.BeginEdit if source[rowNum]
21205 is an IEditable, but call property_descriptor.SetValue regardless.
21208 2006-09-29 Chris Toshok <toshok@ximian.com>
21210 * DataGridBoolColumn.cs: we need to test equality in the face of
21211 possible null values (as is the case with the default NullValue).
21212 This patch keeps us from crashing in that case.
21214 2006-09-29 Jackson Harper <jackson@ximian.com>
21216 * TreeNodeCollection.cs: Don't do a recalculate/updatescrollbars
21217 here, since it will get called for every node collection in the
21218 tree. This is now done in the treeview once the sorting is
21220 * TreeView.cs: Recalculate the visible order, and update the
21221 scrollbars after sorting, set the top nope to the root so that the
21222 recalc actually works.
21224 2006-09-29 Chris Toshok <toshok@ximian.com>
21226 * LinkLabel.cs: more handling of the default link collection in
21227 the face of LinkArea manipulation. The default link collection
21228 contains 1 element (start=0,length=-1). If the user sets LinkArea
21229 to anything and the links collection is the default, clear it.
21230 Then only add the link if its nonempty. Fixes #79518.
21232 2006-09-29 Chris Toshok <toshok@ximian.com>
21234 * LinkLabel.cs (CreatePiecesFromText): calculate the length of a
21235 piece correctly when we hit a '\n'. Fixes #79517.
21237 2006-09-29 Chris Toshok <toshok@ximian.com>
21239 * MimeIcon.cs, ThemeGtk.cs, X11DesktopColors.cs, XplatUIX11GTK.cs:
21240 change the binding of gdk_init_check to take two IntPtr's, and
21241 pass IntPtr.Zero for both of them. Fixes #79520.
21243 2006-09-29 Mike Kestner <mkestner@novell.com>
21245 * ComboBox.cs : raise TextChanged on ComboTextBox.TextChanged.
21248 2006-09-28 Jackson Harper <jackson@ximian.com>
21250 * XplatUIX11.cs: When translating NC messages make sure we go from
21251 whole window to screen, not client window to screen.
21252 * MdiClient.cs: Remove the calls to PaintWindowDecorations, this
21253 method doesn't exist
21254 - Skip over controls that aren't forms when arranging.
21256 2006-09-28 Jackson Harper <jackson@ximian.com>
21258 * XplatUIWin32.cs: Clip the rect to the parent window.
21259 * XplatUIStructs.cs: Add clipping modes struct.
21260 * InternalWindowManager.cs: New private method that factors title
21261 bar heights in when calculating the pos of an NC mouse message.
21262 - Use SendMessage to force a paint when the form's size is changed
21263 instead of painting the decorations immediately.
21264 - Don't let the NC button click messages get to DefWndProc,
21265 because they will attempt to handle windowing themself, and this
21266 messes up z-order (it will put them in front of the scrollbars).
21267 * XplatUIX11.cs: Make sure that we don't reset window managers if
21268 we already have one (ie the window is an MDI window).
21270 2006-09-28 Chris Toshok <toshok@ximian.com>
21272 * MainMenu.cs: fix #79405 by way of a disgusting hack. all the
21273 menu code really needs going over.
21275 2006-09-27 Chris Toshok <toshok@ximian.com>
21277 * XplatUIX11.cs (SetWMStyles): more metacity wonderment. turns
21278 out metacity ignores the MAXIMIZE_HORZ/VERT messages unless the
21279 window is maximizable. So, we need to make sure that even if we
21280 clear the border/wm frame of those functions, they're still
21281 available (basically, we remove the decoration without removing
21282 the function). Half the fix for #79338.
21284 2006-09-27 Chris Toshok <toshok@ximian.com>
21286 * DataGrid.cs (ProcessGridKey): implement Shift-Tab handling.
21289 2006-09-27 Chris Toshok <toshok@ximian.com>
21291 * Splitter.cs: reorder things a bit so that we don't actually
21292 draw/move the splitter until after calling OnSplitterMoving. This
21293 lets users cancel/disallow the movement by explicitly setting
21294 event.SplitX/SplitY. Fixes #79372.
21296 2006-09-27 Jackson Harper <jackson@ximian.com>
21298 * XplatUIX11.cs: Don't hide the caret when it is being destroyed,
21299 because it is most likely on a window being destroyed, and that
21300 will give us an X11 error.
21302 2006-09-27 Chris Toshok <toshok@ximian.com>
21304 * PropertyGridView.cs: half of the fix for #78190. Clicking on
21305 the dropdown button now toggles between showing and hiding the
21306 dropdown. Also, get rid of dropdown_form_showing and just use
21307 dropdown_form.Visible. We still don't do a grab, but I'll leave
21308 that part to someone who has handled Capture-fu before.
21310 2006-09-27 Chris Toshok <toshok@ximian.com>
21312 * DataGrid.cs: return false if alt isn't pressed when '0' is
21313 pressed. this keeps the '0' key from being swallowed, and fixes
21316 2006-09-27 Chris Toshok <toshok@ximian.com>
21318 * ComboBox.cs: use Invalidate when scrolling the dropdown list.
21319 Calling Refresh (in response to a scrollbar event) screws up the
21320 scrollbar painting. Fixes bug #78923.
21322 2006-09-27 Chris Toshok <toshok@ximian.com>
21324 * Theme.cs (SystemResPool): make the "if hashtable[key] == null
21325 then insert into hashtable" blocks threadsafe.
21327 2006-09-27 Chris Toshok <toshok@ximian.com>
21329 * MessageBox.cs (CreateParams): the styles should be |'ed with our
21330 baseclass's, since otherwise the
21331 ControlBox/MinimizeBox/MaximizeBox assignments above have no
21332 effect. This gets the close button back in messageboxes.
21334 2006-09-27 Chris Toshok <toshok@ximian.com>
21336 * XplatUIX11.cs: make StyleSet and ExStyleSet check == with the
21337 flag, not just != 0. this makes flags that are actually multiple
21338 bits (like WS_CAPTION) work. fixes bug #79508.
21340 2006-09-27 Jordi Mas i Hernandez <jordimash@gmail.com>
21342 * PageSetupDialog.cs: add support for getting and settings the
21343 paper size, source and orientation.
21345 2006-09-26 Chris Toshok <toshok@ximian.com>
21347 * XplatUIX11.cs (SetWMStyles): turns out when SYSMENU is not set
21348 and caption == "", we need to remove the resize handles as well as
21351 * Control.cs (set_Text): turns out that setting Text on a form
21352 should change the WM styles on the window, since if ControlBox ==
21353 false, the only way to get a window border is to have a non-""
21354 Text property. check winforms/forms/text.cs for an example. so,
21355 call both XplatUI.SetWindowStyle and XplatUI.Text here to properly
21356 update both window styles and title. This fixes a lot of dialogs
21357 (including the preferences dialog in MonoCalendar.)
21359 2006-09-26 Chris Toshok <toshok@ximian.com>
21361 * XplatUIWin32.cs (SetParent): if parent == IntPtr.Zero (and the
21362 control isn't a Form), call Win32ShowWindow to hide the window,
21363 but don't update the control Visible property. When we reparent
21364 back to a parent control, call SetVisible in order for the
21365 window's visibility to be reinstated.
21367 * XplatUIX11.cs (SetParent): if hwnd.parent == null, reparent to
21370 * Control.cs (ControlCollection.Remove): remove that value.Hide()
21371 call for good, since it breaks MonoCalendar (and other things I'm
21372 sure.) Also, set all_controls to null *after* the owner calls,
21373 which end up regenerating it.
21374 (ChangeParent): allow new_parent to be == null, passing
21375 IntPtr.Zero down to XplatUI.
21377 this fixes #79294 the right way.
21379 2006-09-26 Mike Kestner <mkestner@novell.com>
21381 * GridEntry.cs : internal SetParent method.
21382 * PropertyGrid.cs : attach to property changed on the proper
21383 target if we have a hierarchical grid with subobjects. Setup
21384 GridItem.Parent for hierarchical items.
21385 * PropertyGridView.cs : Set value on the correct target for
21386 hierarchical grids. [Fixes #78903]
21388 2006-09-26 Chris Toshok <toshok@ximian.com>
21390 * Control.cs (ChildNeedsRecreating): this should return true if
21391 either we're being recreated and the child is in our list, or our
21392 parent is waiting for our recreation.
21394 2006-09-26 Chris Toshok <toshok@ximian.com>
21396 * Control.cs (ControlCollection.Remove): reinstate the
21397 value.Hide() call as suggested in bug #79294.
21399 2006-09-26 Sebastien Pouliot <sebastien@ximian.com>
21401 * XplatUIX11.cs: Fixed SetCursorPos to move the cursor to screen
21402 coordinates (versus a relative move).
21404 2006-09-26 Chris Toshok <toshok@ximian.com>
21406 * Control.cs: rework child recreation a little bit. It turns out
21407 that we race between the DestroyNotify the WM_DESTROY message. If
21408 the parent gets its DestroyNotify before the child gets the
21409 WM_DESTROY message, the child ends up not recreating (since the
21410 parent finishes its recreation on DestroyNotify, and the child
21411 checks ParentIsRecreating.)
21413 So, instead we store off a list of all the child controls which
21414 need to be recreated when the parent control starts to recreate
21415 itself. Then, when child controls get their WM_DESTROY message we
21416 check to see if they're in the parent's pending recreation list,
21417 and if so, we recreate. This removes all dependency on ordering
21418 from the code and fixes the initial MonoCalendar upgrade dialog.
21420 2006-09-26 Jackson Harper <jackson@ximian.com>
21422 * TextControl.cs: Use the Line to get the length of the line,
21423 since soft line breaks can change the end line.
21425 2006-09-26 Chris Toshok <toshok@ximian.com>
21427 * Control.cs (ControlCollection.AddImplicit): don't add the
21428 control again if it's already in one of our lists. This keeps us
21429 from adding controls over and over again for comboboxes when their
21430 handle gets recreated (as the combobox adds implicit controls in
21431 OnHandleCreated). Fixes the X11 errors in bug #79480.
21433 2006-09-26 Jackson Harper <jackson@ximian.com>
21435 * TextControl.cs: When deleting characters make sure that any
21436 orphaned zero lengthed tags get deleted.
21437 - Fix ToString for zero lengthed tags.
21439 2006-09-25 Jackson Harper <jackson@ximian.com>
21441 * TextControl.cs: When getting a tag at the location there can be
21442 multiple tags at the same spot, these are 0-lengthed tags that
21443 appear when extra formatting has been stuck in a location. We
21444 need to pull out the last of these 0 lengthed tags.
21446 2006-09-25 Jackson Harper <jackson@ximian.com>
21448 * TextControl.cs: Fix print out in debug method.
21449 * TextBoxBase.cs: When text is set bail if we are setting to the
21452 2006-09-24 Alexander Olk <alex.olk@googlemail.com>
21454 * FontDialog.cs: Fixed the up/down arrow keys issue from bug #79478.
21455 It is now possible to change the selected index in a FontXXXListBox
21456 with the up and down arrow keys from the FontXXXTextBoxes.
21457 Also, send the FontXXXTextBox mouse wheel event to the corresponding
21458 FontXXXListBoxes to match ms.
21460 2006-09-22 Sebastien Pouliot <sebastien@ximian.com>
21462 * SystemInformation.cs: Return a clone of the theme's MenuFont because
21463 anyone can dispose it, anytime. All other properties returns enums,
21464 structs or basic types so they don't need such tricks.
21466 2006-09-22 Jackson Harper <jackson@ximian.com>
21473 * XplatUIDriver.cs: Update interface to add a primary selection
21474 flag, so the driver can use the primary selection buffer if
21476 * XplatUIX11.cs: Allow the clipboard to retrieve from PRIMARY.
21478 * RichTextBox.cs: We need to supply the data object to paste now
21479 (so we can choose to supply CLIPBOARD or PRIMARY).
21480 * TextBoxBase.cs: Supply data object to paste (see above).
21481 - Middle click uses the primary selection data object.
21483 2006-09-21 Chris Toshok <toshok@ximian.com>
21485 * XplatUIX11.cs: first little cleanup of the StyleSet (...) block
21486 of SetWMStyles. It's still a rat's nest and is largely
21487 order-dependent which I dislike immensely. This also fixes the X
21488 button disappearing from toplevel forms.
21490 2006-09-21 Mike Kestner <mkestner@novell.com>
21492 * ListBox.cs: move Jordi's click/dblclick raising code to the
21495 2006-09-21 Jordi Mas i Hernandez <jordimash@gmail.com>
21497 * ListBox.cs: Fixes 79450
21499 2006-09-21 Mike Kestner <mkestner@novell.com>
21501 * TreeView.cs: guard against disposed conditions in UpdateScrollbars
21502 to deal with people updating the TreeNodeCollection after the tree
21503 is disposed. "Fixes" 79330.
21505 2006-09-20 Jackson Harper <jackson@ximian.com>
21507 * TextControl.cs: Push the cursor record onto the undo stack
21508 before the delete action. This fixes 78651.
21510 2006-09-20 Jonathan Chambers <joncham@gmail.com>
21512 * PropertyGridView.cs: Remove WindowStyles.WS_VISIBLE from
21513 CreateParams. Fixes 79329.
21515 2006-09-19 Chris Toshok <toshok@ximian.com>
21517 * XplatUIX11.cs: a couple of blanket code massage passes to clean
21518 things up a bit. First, get rid of the NetAtoms array (and the NA
21519 enum), and just embed the atoms as static fields. Also, add a
21520 couple of functions (StyleSet and ExStyleSet) to clean up all the
21521 bitmask testing of styles.
21523 * X11Structs.cs: remove the NA enum, not needed anymore.
21525 2006-09-19 Chris Toshok <toshok@ximian.com>
21527 * XplatUIX11.cs: apply Alexander's tool window fix for bug #79245
21528 (mapping them to _NET_WM_WINDOW_TYPE_UTILITY). and add a little
21529 added cleanup to get MessageBox titles appearing again, which were
21530 broken by my earlier fix for caption-less/ControlBox-less windows.
21532 2006-09-18 Jonathan Pobst <monkey@jpobst.com>
21534 * ToolStripArrowRenderEventArgs.cs, ToolStripArrowRenderEventHandler.cs,
21535 ToolStripContentPanelRenderEventArgs.cs, ToolStripContentPanelRenderEventHandler.cs,
21536 ToolStripGripRenderEventArgs.cs, ToolStripGripRenderEventHandler.cs,
21537 ToolStripItemClickedEventArgs.cs, ToolStripItemClickedEventHandler.cs,
21538 ToolStripItemEventArgs.cs, ToolStripItemEventHandler.cs,
21539 ToolStripItemImageRenderEventArgs.cs, ToolStripItemImageRenderEventHandler.cs,
21540 ToolStripItemRenderEventArgs.cs, ToolStripItemRenderEventHandler.cs,
21541 ToolStripItemTextRenderEventArgs.cs, ToolStripItemTextRenderEventHandler.cs,
21542 ToolStripPanelRenderEventArgs.cs, ToolStripPanelRenderEventHandler.cs,
21543 ToolStripRenderEventArgs.cs, ToolStripRenderEventHandler.cs,
21544 ToolStripSeparatorRenderEventArgs.cs, ToolStripSeparatorRenderEventHandler.cs:
21546 * ToolStripPanel.cs, ToolStripContentPanel.cs, ToolStripSeparator.cs,
21547 ToolStripButton.cs: Stubs needed for above.
21548 * ToolStrip.cs, ToolStripItem.cs: Stub a few variables/properties for above.
21550 2006-09-15 Chris Toshok <toshok@ximian.com>
21553 - make the MessageQueues hashtable Synchronized.
21555 - SendMessage: if the Hwnd is owned by a different thread, use the
21556 AsyncMethod stuff to dispatch the SendMessage on the hwnd's
21557 thread. Fixes bug #79201.
21559 2006-09-15 Chris Toshok <toshok@ximian.com>
21561 * XplatUIX11.cs (SetWMStyles): rework the #79368 fix slightly. If
21562 ControlBox == false, we disallow maximize/minimize/close. If the
21563 form Caption is "" we also disallow move (and get rid of the Title
21564 decoration). Unfortunately, regardless of how things are set,
21565 we're stuck with the Title and WM menu.
21567 2006-09-15 Chris Toshok <toshok@ximian.com>
21569 * Application.cs: add locking around the static message_filters
21570 ArrayList, part of #79196.
21572 2006-09-15 Chris Toshok <toshok@ximian.com>
21574 * XplatUIX11.cs (SetWMStyles): if Form.Text == "" and
21575 Form.ControlBox == false, the window has no titlebar nor resize
21576 handles. fixes bug #79368.
21578 2006-09-15 Chris Toshok <toshok@ximian.com>
21580 * TextBoxBase.cs: in CalculateScrollBars make sure LargeChange is
21581 >= 0. Fixes bug #79370.
21583 2006-09-15 Jonathan Pobst <monkey@jpobst.com>
21584 * FlowLayoutPanel.cs, FlowLayoutSettings.cs: Initial commit.
21586 Add properties: LayoutEngine, Margin, DefaultMargin.
21587 Add method: GetPreferredSize.
21588 Move layout logic from PerformLayout to layout engines.
21590 2006-09-13 Chris Toshok <toshok@ximian.com>
21592 * XplatUIX11.cs: more destroy work. Jackson pointed out that my
21593 fix for #79326 broke #78718, so this change addresses that.
21595 - in SendWMDestroyMessages remove the call to
21596 CleanupCachedWindows, since we might be recreating the control and
21597 need to maintain the references to right Hwnd handles. Also, set
21598 the zombie flag to true for each of the children in the hierarchy
21599 instead of calling hwnd.Dispose. This will cause GetMessage to
21600 ignore all events for the window except for DestroyNotify.
21602 - In GetMessage, ignore messages except for DestroyNotify for
21605 * Control.cs: revert the is_recreating fix from the last
21606 ChangeLog. It's definitely "right", but it breaks switching from
21607 an MDI form to a non-MDI form. Will need to revisit that.
21609 * Hwnd.cs: add a zombie flag, which means "the
21610 client_window/whole_window handles are invalid, but we're waiting
21611 for the DestroyNotify event to come in for them". Set the flag to
21612 false explicitly if setting WholeWindow/ClientWindow, and also
21615 2006-09-13 Chris Toshok <toshok@ximian.com>
21617 * XplatUIX11.cs: rework window destruction slightly.
21619 - when destroying the windows associated with a control, we don't
21620 need 2 separate XDestroyWindow calls. Just the one for the
21621 whole_window (or for client_window if whole_window is somehow
21622 IntPtr.Zero -- can this happen?) is enough.
21624 - reworked SendWMDestroyMessages slightly, so we always dispose
21625 the child control hwnd's after sending the messages.
21627 - refactored out the ActiveWindow/FocusWindow/Caret clearing from
21628 the two places it was used (one was even using hwnd.Handle and the
21629 other hwnd.client_window. ugh), adding another call in
21630 SendWMDestroyMessages. We need this new call because now the
21631 DestroyNotify events in the queue will be ignored for the child
21632 controls (as their hwnd's were disposed, and the window id's
21633 removed from the hashtable in SendWMDestroyMessages.) fun, eh?
21635 - this fixes bug #79326.
21637 2006-09-13 Chris Toshok <toshok@ximian.com>
21639 * Control.cs: don't always set is_recreating to false at the end
21640 of RecreateHandle, since sometimes we're not done (and won't be
21641 until WndProc handles the WM_DESTROY message). Also, set
21642 is_recreating to false in the WM_DESTROY handling code. Part of
21643 the fix for bug #79326.
21645 2006-09-13 Miguel de Icaza <miguel@novell.com>
21647 * X11DesktopColors.cs: Start the droppage of debugging messages.
21649 * FileDialog.cs: Store the configuration file in ~/.mono/mwf_config
21651 2006-09-13 Jonathan Pobst <monkey@jpobst.com>
21653 * SplitContainer.cs, SplitterPanel.cs: Initial implementation [2.0].
21655 2006-09-12 Chris Toshok <toshok@ximian.com>
21657 * DataGrid.cs (get_ListManager): if the list_manager is null, try
21658 to create it using SetDataSource. Fixes bug #79151.
21660 2006-09-11 Chris Toshok <toshok@ximian.com>
21662 * XEventQueue.cs: add a DispatchIdle property.
21664 * XplatUIX11.cs (UpdateMessageQueue): only emit the Idle event if
21665 either the queue is null, or the queue has DispatchIdle set to
21667 (DoEvents): set queue.DispatchIdle to false around the
21668 peek/translate/dispatch message loop in this method. This keeps
21669 Application.Doevents from emitting idle events. Part of the fix
21672 2006-09-11 Chris Toshok <toshok@ximian.com>
21674 * DataGrid.cs (set_DataSource): make this work for both the
21675 winforms/datagrid test and ReportBuilder. It seems as though when
21676 we've created a ListManager (or maybe it's if we have a
21677 BindingContext?), when we set the DataSource it clears the
21678 DataMember to "". otherwise we reuse the datamember. Fixes bug
21681 2006-09-11 Chris Toshok <toshok@ximian.com>
21683 * XplatUIX11.cs: deal with queue being null, which happens in all
21684 the Clipboard functions. Fixes one of the two problems mentioned
21687 2006-09-11 Chris Toshok <toshok@ximian.com>
21689 * MenuAPI.cs: rework OnMouseUp a bit so that releasing the mouse
21690 button on various spots (including outside the menu) works closer
21691 to MS, and doesn't crash. Fixes #79343.
21693 2006-09-11 Gert Driesen <drieseng@users.sourceforge.net>
21695 * ListView.cs: Do not initialize item_sorter in init. To match MS,
21696 return null for ListViewItemSorter if View is SmallIcon or LargeIcon
21697 and the internal comparer is set. When a new ListViewItemSorter is set,
21698 sort the items. Use Enum.IsDefined to verify whether a valid SortOrder
21699 was specified. No further processing is necessary if SortOrder is set
21700 to it's current value. If Sorting is modified to None, and View is
21701 neither SmallIcon nor LargeIcon then: on 2.0 profile set item_sorter
21702 (either custom or our internal ItemComparer) to null, on 1.0 profile
21703 only set item_sorter to null if its our internal IComparer. If Sorting
21704 is modified to Ascending or Descending, then use our internal IComparer
21705 if none is set, and if the current IComparer is our internal one then:
21706 on 2.0 profile always replace it with one for new Sorting, and on 1.0
21707 profile only use new Sorting if view is not SmallIcon or LargeIcon. Use
21708 Enum.IsDefined to verify whether a valid View value is specified in
21709 its setter. Automatically sort listview items when listview is
21710 created. In Sort, do nothing if ListView is not yet created, or if
21711 no item_sorter is set (no Sorting was set, Sorting was explicitly set
21712 to None or ListViewItemSorter was set to null). Added Sort overload
21713 taking a bool to indicate whether the ListView should be redrawn when
21714 items are sorted (we use this in ListViewItemCollection to avoid double
21715 redraws). Modified our internal IComparer to take the sort order into
21716 account. In Add and AddRange methods of ListViewItemCollection, also
21717 call Sort if Sorting is None (necessary for SmallIcon and LargeIcon
21718 view), but use overload with noredraw option to avoid double redraw.
21719 On 2.0 profile, throw NotSupportedException when setting CheckBoxes to
21720 true when View is Tile, and do the same when attempting to set View to
21721 Tile when CheckBoxes is true. Avoid maintaining separate ArrayLists
21722 for selected/checked indices, as it involves overhead when sorting is
21723 done while these collections are not used all that often. Instead
21724 we'll build the indices on demand. Modified IList implementation of
21725 CheckedIndexCollection to use public methods if object is int.
21726 Modified CheckedListViewItemCollection to hide checked items if
21727 ListView.CheckBoxes is false. Removed LAMESPEC remark in
21728 ListViewItemCollection as the .NET SDK docs have been fixed. Modified
21729 IList implementation in SelectedIndexCollection to use public methods
21730 if object is int. Modified SelectedListViewItemCollection to hide
21731 selected items if listview is not yet created.
21732 * ListViewItem.cs: CheckedIndices list no longer needs to be
21733 maintained separately (see ListView changes). Also clone font, fixes
21736 2006-09-11 Mike Kestner <mkestner@novell.com>
21738 * ComboBox.cs: if we are updating the contents of the currently
21739 selected index, refresh the control or the textbox selection.
21742 2006-09-11 Mike Kestner <mkestner@novell.com>
21744 * ComboBox.cs (UpdateBounds): use SetBounds not SetBoundsCore since
21745 the 'specified' logic has been moved there. This seems like a bug
21746 in Control.cs, since our current SetBoundsCore completely ignores
21747 the specified parameter. Peter's commit seems to indicate that is
21748 the way the MS control implementation works. [Fixes #79325]
21750 2006-09-10 Jonathan Chambers <joncham@gmail.com>
21752 * XplatUI.cs: Set default_class_name to be composed
21753 of current domain id. This allows MWF to be loaded in multiple
21756 2006-09-09 Miguel de Icaza <miguel@novell.com>
21758 * X11Keyboard.cs: If we are unable to obtain the input method, do
21759 not call CreateXic to create the input context. Should fix
21762 2006-09-08 Alexander Olk <alex.olk@googlemail.com>
21764 * MimeIcon.cs: Rewrote major parts. Dropped KDE support for now.
21765 Simplified gnome support by adding more pinvokes to get the
21766 icon for a file or mime type.
21768 2006-09-08 Jackson Harper <jackson@ximian.com>
21770 * MenuAPI.cs: Deslect popup context menu items before closing the
21771 window, so that you don't see the previously selected item
21772 selected when you reopen the menu.
21773 * TextControl.cs: Update the cursor position even if we don't have
21774 focus. This fixes typing in things like the ComboBox. I'm not
21775 totally sure we should always set the visibility if we don't have
21776 focus, but couldn't find any corner cases where the cursor showed
21777 up when it shouldn't.
21779 2006-09-08 Chris Toshok <toshok@ximian.com>
21781 * X11Keyboard.cs: In UpdateKeyState vkey can be any integer, but
21782 our arrays are length 256. & 0xff before indexing. Fixes the
21783 crash in bug #78077.
21785 2006-09-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
21787 * ThemeWin32Classic.cs:
21788 * DateTimePicker.cs: Draw check box if DateTimePicker.ShowCheckBox
21789 is true. Handle that check box too.
21791 2006-09-07 Chris Toshok <toshok@ximian.com>
21793 * MenuAPI.cs: move the PerformClick call to OnMouseUp. Fixes bug
21796 2006-09-07 Chris Toshok <toshok@ximian.com>
21798 * Control.cs: in set_BackColor only do the work if
21799 background_color != value.
21801 * XplatUIX11.cs: move the clearing of invalid areas (both client
21802 and nc) to the same block of code where we set (nc_)expose_pending
21803 to false. That is, move it from PaintEventEnd to PaintEventStart,
21804 so things that cause invalidates from within OnPaint will trigger
21805 another call to OnPaint. Fixes bug #79262.
21807 2006-09-07 Alexander Olk <alex.olk@googlemail.com>
21809 * Theme.cs: Use correct icon for UIIcon.PlacesPersonal
21810 * FileDialog.cs: Fix typo
21812 2006-09-07 Jackson Harper <jackson@ximian.com>
21814 * ThemeWin32Classic.cs: oops, forgot to commit. Draw the images
21815 for tab pages if they have any.
21817 2006-09-06 Mike Kestner <mkestner@novell.com>
21819 * Splitter.cs: use the "current" rect when finishing drag handle
21820 to avoid an artifact demonstrated by resedit.exe. [Fixes #79251]
21822 2006-09-06 Mike Kestner <mkestner@novell.com>
21824 * Splitter.cs: draw the drag handle at X or Y instead of 0 to deal
21825 support offset splitters. [Fixes #79298]
21827 2006-09-06 Alexander Olk <alex.olk@googlemail.com>
21829 * Mime.cs: Fixed a bug that could override the global mime type
21832 2006-09-05 Jackson Harper <jackson@ximian.com>
21834 * TabControl.cs: Better calculation method for setting the slider
21835 pos. Prevents crashes on really wide tabs.
21836 - Draw Image on tab pages if an image list is used.
21838 2006-09-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
21840 * MonthCalendar.cs: When Font changes, the Size should be
21841 updated to fit the new font's space requirements.
21843 2006-09-02 Alexander Olk <alex.olk@googlemail.com>
21845 * ListBox.cs: If the items are cleared with Items.Clear set
21848 2006-09-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
21850 * MonthCalendar.cs: Handle arrow keys as input keys. Also
21851 fire DateChanged event instead of DateSelected event when
21852 the date was changed by keyboard interaction.
21854 2006-09-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
21856 * DateTimePicker.cs: Handle DateChanged for the associated
21857 month_calendar control, and set month_calendar.Font from
21858 OnFontChanged method, as well as resize the height of the
21859 control when needed. Make PreferredHeight proportional.
21861 2006-09-01 Chris Toshok <toshok@ximian.com>
21863 * DataGrid.cs: grr, stop overthinking the DataMember/DataSource
21866 * BindingContext.cs (HashKey.GetHashCode): use ^ instead of +.
21868 2006-09-01 Peter Dennis Bartok <pbartok@novell.com>
21870 * FileDialog.cs: Set ClientSize instead of window size, to allow space
21871 for decorations (Fixes #79219)
21873 2006-09-01 Mike Kestner <mkestner@novell.com>
21875 * ComboBox.cs: first stab at sorting plus some selection handling
21876 fixes to bring us more in line with MS behavior. Also switches back
21877 to index based selection. Alternative patches for index-based
21878 selection were provided by Jackson Harper, Carlos Alberto Cortez,
21879 and latency@gmx.de on bug 78848. I assume they were similar to this
21880 code I've had simmering in my tree forever.
21883 2006-09-01 Chris Toshok <toshok@ximian.com>
21885 * CurrencyManager.cs (ListChangedHandler): in the ItemAdded case,
21886 when setting list position guard against ending up with a -1 index
21887 (the other part of the fix for #78812). Should probably make sure
21888 we don't need the analogous fix in the ItemDeleted case.
21891 - in SetDataSource, work around the fact that the way
21892 OnBindingContextChanged is invoked will cause us to re-enter this
21893 method. I'll remove the hack once I investigate
21894 OnBindingContextChanged.
21896 - fix the logic in set_DataSource and set_DataMember (basically
21897 what to do if the other of the two is null.)
21899 - in OnListManagerItemChanged, we need to take into account the
21900 edit row when deciding whether or not to call RecreateDataGridRows
21901 (part of the fix for #78812).
21903 2006-09-01 Jackson Harper <jackson@ximian.com>
21905 * Splitter.cs: Don't do anything if there is no control to affect
21906 (prevents us from crashing in weird tet cases).
21907 * TreeView.cs: Bounding box for the mouse movement reverting
21908 focus/selection back to previously selected node. This matches
21909 MS, and makes the tree a lot more useable.
21910 * GroupBox.cs: Instead of drawing over the lines of the groupbox,
21911 use clipping so they are not drawn. This fixes when the control
21912 is set to have a transparent background, or if it was over an
21915 2006-09-01 Alexander Olk <alex.olk@googlemail.com>
21917 * MimeIcon.cs: Improved handling for reading default icons when
21918 using gnome (2.16 made it necessary). Check and read svg icons
21919 first, then 48x48 and then 32x32 icons.
21921 2006-08-31 Chris Toshok <toshok@ximian.com>
21923 * DataGridTextBoxColumn.cs: only hide the textbox if it's still
21926 * DataGridTextBox.cs: Pass Tab's up to the datagrid by calling
21927 ProcessKeyPreview. Fixes part of #77806.
21929 * DataGrid.cs: big patch.
21931 - revert the queueing up of DataSource/DataMember if inside
21932 BeginInit/EndInit calls. That's not the way the datagrid achieves
21933 its delayed databinding. Instead, call SetDataSource in
21934 OnBindingContextChanged. This mimic's MS's behavior, and fixes
21937 - Also, it wasn't mentioned in #78811, but the test case exhibits
21938 behavior that was lacking in our datagrid implementation - Columns
21939 that have mapping names that don't exist in the datasource's
21940 properties aren't shown. Yuck. To fix this I added the bound
21941 field to the column style, and basically any calculation to figure
21942 out anything about columns uses a loop to find the bound columns.
21943 still need to investigate if I can cache an array of the bound
21944 columns or if the indices must be the same.
21946 - When setting CurrentCell, we no longer abort if the cell being
21947 edited was in the add row. This fixes the other part of #77806.
21949 - The new code also fixes #78807.
21951 * ThemeWin32Classic.cs: perpetrate the same disgusting
21952 column.bound field hack, and only render bound fields.
21954 2006-08-31 Chris Toshok <toshok@ximian.com>
21956 * DataGridColumnStyle.cs: add bound field. this field is true if
21957 the datasource has a property corresponding to the mapping name.
21959 * DataGridTableStyle.cs: set the bound field on the column styles
21960 depending on whether or not we have a column for that property.
21962 2006-08-31 Peter Dennis Bartok <pbartok@novell.com>
21964 * Splitter.cs (SetBoundsCore): Don't ignore width/height of the
21965 splitter control (fixes #79228)
21967 2006-08-31 Chris Toshok <toshok@ximian.com>
21969 * DataGridColumnStyle.cs: we need to delay the assignment of
21970 property descriptor until the last possible moment due to the lazy
21971 databinding stuff in the datagrid. Also, fix the exceptions
21972 thrown by CheckValidDataSource to match MS.
21974 2006-08-31 Jackson Harper <jackson@ximian.com>
21976 * Form.cs: When activated select the active control, if there is
21977 no active control, we select the first control.
21978 * XplatUIX11.cs: If there is no focus control when we get a
21979 FocusIn event, find the toplevel form and activate it. This
21980 occurs when you popup a window, it becomes the focus window, then
21981 you close that window, giving focus back to the main window.
21983 2006-08-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
21985 * MonthCalendar.cs:
21986 * ThemeWin32Classic.cs: Cache Font in bold style, as well
21987 as StringFormat with Center alignments in MonthCalendar,
21988 instead of creating new ones when drawing the control.
21989 Also, draw the month name in bold style.
21991 2006-08-30 Peter Dennis Bartok <pbartok@novell.com>
21994 - PerformLayout(): It would seem MS performs the fill even if the
21995 control is not visible (part of #79218 fix)
21996 - ResetBackColor(): Use the setter to reset the color, to allow
21997 overriders to catch the change.
21999 - .ctor: Call UpdateBounds to adjust client rectangle (part of #79218 fix)
22000 - CreateHandle(): dito (part of $79218 fix)
22001 - Don't set an icon if we have a dialog
22002 * ScrollableControl.cs:
22003 - set_AutoScrollMinSize: Setting the property enables AutoScroll (#79218)
22004 - ScrollIntoView(): No need to scroll if control is already visible
22005 (resolves fixme and fixes #79218)
22007 2006-08-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
22009 * MonthCalendar.cs: Change proportions in SingleMonthSize
22010 to match the aspect of the original control.
22012 2006-08-29 Alexander Olk <alex.olk@googlemail.com>
22014 * XplatUIX11.cs: Fix for a metacity/X problem where windows don't
22015 get updated when they get maximized.
22017 2006-08-29 Peter Dennis Bartok <pbartok@novell.com>
22019 * XplatUIX11.cs: Handle windows with no border (Fixes part of #79160)
22021 2006-08-29 Chris Toshok <toshok@ximian.com>
22023 * XplatUIX11.cs: when destroying the FocusWindow, send KILLFOCUS.
22025 2006-08-29 Jackson Harper <jackson@ximian.com>
22027 * TreeView.cs: Need to track selected node and highlighted node,
22028 they aren't always the same thing, when the mouse is down on a
22029 node it is hilighted, but not selected yet.
22030 - Do the HideSelection stuff right
22031 - Need to focus on rbutton mouse down. And redraw selection when
22032 right click is mouse upped.
22034 2006-08-29 Mike Kestner <mkestner@novell.com>
22036 * ThemeWin32Classic.cs: draw selections for columns in FullRowSelect
22037 when SubItems.Count < Columns.Count. [Fixes #79167]
22039 2006-08-28 Peter Dennis Bartok <pbartok@novell.com>
22041 * TextControl.cs (FindCursor): Fix math error (Fixes #78402)
22043 2006-08-28 Peter Dennis Bartok <pbartok@novell.com>
22045 * XplatUIX11.cs: Preempt the roundtrip for getting the location back
22046 from X. Only send based on ConfigureNotify if we don't have the
22047 correct location in hwnd (if the window manager moved us)
22049 2006-08-28 Mike Kestner <mkestner@novell.com>
22051 * ListView.cs: remove a TODO.
22052 * ThemeWin32Classic.cs: implement HideSelection support for ListView.
22053 [Fixes ListView part of #79166]
22055 2006-08-28 Mike Kestner <mkestner@novell.com>
22057 * ListView.cs: move wheel handler to parent since it is focused
22058 instead of the item_control now. [Fixes #79177]
22060 2006-08-28 Mike Kestner <mkestner@novell.com>
22062 * ThemeWin32Classic.cs: only highlight subitems in fullrowselect
22063 when the control is focused. [Fixes #79171]
22065 2006-08-28 Mike Kestner <mkestner@novell.com>
22067 * ListView.cs: size the item and header controls for empty and
22068 unscrollable views.
22069 * ThemeWin32Classic.cs: draw disabled backgrounds.
22072 2006-08-28 Chris Toshok <toshok@ximian.com>
22074 * Form.cs: remove unused "active_form" static field.
22076 * Hwnd.cs: lock around accesses to static windows collection.
22078 * Application.cs: lock threads in Exit ().
22080 2006-08-28 Chris Toshok <toshok@ximian.com>
22082 * NativeWindow.cs: lock around accesses to window_collection.
22084 2006-08-28 Chris Toshok <toshok@ximian.com>
22086 * Control.cs: err, fix this the right way, by locking on controls
22087 when using it. not by making it synchronized.
22089 2006-08-28 Chris Toshok <toshok@ximian.com>
22091 * Control.cs: make the static "controls" field synchronized, as it
22092 gets updated from multiple threads.
22094 2006-08-27 Peter Dennis Bartok <pbartok@novell.com>
22096 * XplatUIX11.cs: PostQuitMessage is thread-specific not app-specific.
22097 Prevent other threads from exiting when calling thread sets quit state.
22098 * XEventQueue.cs: Added PostQuitState property
22100 2006-08-27 Chris Toshok <toshok@ximian.com>
22102 * AsyncMethodData.cs: add a slot for the window handle.
22104 * XplatUIX11.cs (SendAsyncMethod): send the event to the right
22105 window (the destination control's window, not the foster window).
22107 * Control.cs (BeginInvokeInternal): store the window's handle in
22108 the AsyncMethodData.
22111 2006-08-27 Peter Dennis Bartok <pbartok@novell.com>
22114 - PostQuitMessage: Removed resetting S.D display handle, we might have
22115 another loop started after calling PostQuitMessage (Fixes #79119)
22116 - Created destructor to reset S.D handle
22118 2006-08-27 Peter Dennis Bartok <pbartok@novell.com>
22120 * XplatUIX11.cs (SetCursor): Issue flush after setting the cursor (#79168)
22122 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
22124 * TextControl.cs (Insert): Update the caret position even if we don't
22125 have a handle yet, just don't call the driver in that case.
22126 * TextBoxBase.cs (set_SelectedText): Set the Start and End selection
22127 to the end of the new selection text (Fixes #79184)
22129 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
22131 * Form.cs (Activate): Only activate if the handle is created)
22133 - Mark window as invisible when it's disposed
22134 - Check if window handle is created when setting window visible,
22135 instead of relying just on the is_created variable
22136 - Check if object is disposed when creating the control (Fixes #79155)
22138 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
22140 * ScrollableWindow.cs (ScrollWindow): Don't actually perform layouting
22141 when allowing layout again. Otherwise we re-generate the anchoring
22142 distance to the border again and actually alter what the user wanted
22143 This is ugly, it'd be better if we used DisplayRectangle instead of
22144 ClientRectangle for Control.UpdateDistances, but that causes us to
22145 have other problems (initial anchoring positons would be wrong)
22148 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
22151 - The size and location setters shouldn't go directly to
22152 SetBoundsCore, but to SetBounds, which triggers layout on the
22153 parent, then calls SetBoundsCore. (Related to fix for #78835)
22154 - SetBounds: Moved actual location update code into this function
22155 from SetBoundsCore, to match MS. Added call to PerformLayout if
22156 we have a parent (to trigger resizing of anchored parents if the
22157 child size has changed (see testcase for #78835)
22158 * ListBox.cs, Form.cs: Call SetBounds instead of SetBoundsCore to match
22160 * ScrollableControl.cs (CalculateCanvasSize): Use shortcut variable
22162 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
22164 * XplatUIX11.cs: Don't reset the DisplayHandle that's stored in
22165 System.Drawing when a toplevel window gets closed; there might
22166 be other toplevel windows belonging to the same app (Fixes #78052)
22168 2006-08-26 Alexander Olk <alex.olk@googlemail.com>
22170 * FileDialog.cs: After reading FileDialog settings from mwf_config
22171 use Desktop prefix only if a real folder doesn't exist anymore.
22172 * FontDialog.cs: Added char sets.
22173 It is now possible to select the font, size or style with the
22176 2006-08-25 KornĂ©l PĂ¡l <kornelpal@gmail.com>
22178 * PrintPreviewDialog.cs: Use assembly name constants.
22180 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
22182 * XplatUIWin32.cs (ScrollWindow): Use clipping rectangle arg (prevents
22183 scrollbar from whacking it's buttons)
22185 2006-08-24 Chris Toshok <toshok@ximian.com>
22187 * ScrollableControl.cs: fix #78271. There's a lot of misc stuff
22188 in this patch (aggregating setting Left/Top/Width/Height to
22189 setting Bounds on the scrollbars), but the crux of the fix is in
22190 Recalculate, where we scroll by the remaining scroll_position if
22191 we're hiding a scrollbar. The 2*$5 reward in the comment is
22194 2006-08-24 Jackson Harper <jackson@ximian.com>
22197 * MdiWindowManager.cs: If the form is made a non-mdi window we
22198 need to remove the form closed event so that closing forms works
22201 2006-08-24 Jackson Harper <jackson@ximian.com>
22203 * Control.cs: Make IsRecreating internal so that the driver can
22205 - Temporarily remove the Hide when controls are removed, its
22206 making a whole bunch of things not work because visibility isn't
22207 getting reset elsewhere correctly
22208 * Form.cs: Need to do a full handle recreation when the mdi parent
22210 * XplatUIX11.cs: If we are recreating handles don't dispose the
22211 HWNDs. What was happening is the handles were being recreated in
22212 SendWMDestroyMessages, but then flow continued on in that method
22213 and destroyed the new handles.
22215 2006-08-23 Jackson Harper <jackson@ximian.com>
22217 * Form.cs: MdiClient is always at the back of the bus
22218 * Control.cs: When the order of items in the collection is changed
22219 we need to reset the all_controls array
22220 - do the same sorta setup thats done when adding a control when a
22221 control is set on the collection.
22223 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
22225 * TextBoxBase.cs (get_Text): Return an empty array if our document
22226 is empty (fixes #79052)
22228 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
22230 * Control.cs: We should call IsInputChar on only on WM_CHAR but not
22231 on WM_SYSCHAR messages (fixes #79053)
22233 2006-08-23 Chris Toshok <toshok@ximian.com>
22235 * DataGrid.cs: fix flickering when scrolling vertically.
22237 2006-08-23 Chris Toshok <toshok@ximian.com>
22239 * DataGrid.cs (EndEdit): only invalidate the row header when we
22242 2006-08-23 Chris Toshok <toshok@ximian.com>
22244 * ThemeWin32Classic.cs: fix the clip munging of the datagrid paint
22245 methods. fixes the flicker when scrolling around.
22247 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
22249 * FileDialog.cs: Making sure the control is created before we get a
22250 chance to use it with BeginInvoke (Fixes #79096)
22252 2006-08-23 Chris Toshok <toshok@ximian.com>
22254 * ThemeWin32Classic.cs (DataGridPaintRows): calculate the proper
22255 width to use when painting the rows.
22257 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
22260 - Throw ArgumentException if a negative value is passed to SelectionLength
22261 - Update the selection end if start is moved. end needs to be always
22262 after start. (Fixes #79095)
22263 - Track selection length; MS keeps the selection length even if start
22264 is changed; reset on all other operations affection selection
22266 2006-08-22 Jackson Harper <jackson@ximian.com>
22268 * TreeView.cs: Make sure both scrollbars get displayed and sized
22269 correctly when the other bar is visible.
22270 - Use the original clip rectangle for checking if the area between
22271 the two scrollbars is visible, not the viewport adjusted clipping
22274 2006-08-22 Jackson Harper <jackson@ximian.com>
22276 * Binding.cs: We don't use IsBinding because it requires the
22277 control to be created, which really shouldn't be necessary just to
22278 set a property on the control.
22280 2006-08-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
22282 * ComboBox.cs: Some CB.ObjectCollection methods must throw
22283 ArgumentNullReferenceException when the argument is null.
22285 2006-08-21 Jackson Harper <jackson@ximian.com>
22287 * Timer.cs: Track the thread that the timer is started in (NOT
22288 CREATED), this way messages for it will only be triggered on its
22290 * XEventQueue.cs: Track the timers here, this makes timers per
22292 * XplatUIX11.cs: The timers are moved to the XEventQueue.
22294 2006-08-19 Chris Toshok <toshok@ximian.com>
22296 * XplatUIX11.cs: after further communication with pdb, we get the
22297 best of both worlds. SetZOrder working for un-Mapped windows, and
22298 no X errors for un-mapped windows.
22300 2006-08-19 Chris Toshok <toshok@ximian.com>
22302 * XplatUIX11.cs (SetZOrder): remove the if (!hwnd.mapped) check,
22303 as it was causing pdn toolbars to not have the correct stacking.
22305 2006-08-18 Mike Kestner <mkestner@novell.com>
22307 * ListView.cs : guard against negative ClientArea.Width in scrollbar
22308 calculation. Not sure why control should ever be setting a negative
22309 width though. Fixes #78931.
22311 2006-08-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
22313 * ComboBox.cs: Throw ArgumentNullException when adding/modifyng
22314 null items in ObjectCollection class.
22315 * ListBox.cs.: Likewise.
22317 2006-08-18 Atsushi Enomoto <atsushi@ximian.com>
22319 * ThemeNice.cs, ThemeClearlooks.cs : remove RadioButton_DrawFocus()
22320 as the base method in ThemeWin32Classic should work fine.
22323 2006-08-18 Jackson Harper <jackson@ximian.com>
22325 * Binding.cs: When validating if the value entered doesn't convert
22326 properly reset to the old value.
22327 * RadioButton.cs: Don't fire click when we get focus.
22329 2006-08-18 Jackson Harper <jackson@ximian.com>
22331 * FileDialog.cs: Paint the selection on the directory combobox the
22334 2006-08-17 Jackson Harper <jackson@ximian.com>
22336 * ErrorProvider.cs: Don't allow the error control to be selected.
22337 * Control.cs: Don't send the SetFocus messages, the control
22338 activation will do this, and if we do it blindly here validation
22341 2006-08-17 Jackson Harper <jackson@ximian.com>
22344 * ContainerControl.cs: Make validation events fire in the correct
22345 order. TODO: For some reason the first validation event is not
22348 2006-08-17 Mike Kestner <mkestner@novell.com>
22350 * ComboBox.cs : some null guarding for ComboListBox.Scroll.
22352 2006-08-17 Mike Kestner <mkestner@novell.com>
22354 * ComboBox.cs : implement scroll wheel support for popped-down
22355 state. Fixes #78945.
22357 2006-08-17 Jackson Harper <jackson@ximian.com>
22359 * TreeView.cs: Specify treeview actions (old patch that didn't get
22360 committed for some reason).
22361 - Don't let the mouse wheel scroll us too far. Just want to make
22362 the bottom node visible, not scroll it all the ways to the top.
22364 2006-08-17 Jackson Harper <jackson@ximian.com>
22366 * XplatUIX11.cs: Mouse wheel events go to the focused window.
22368 2006-08-17 Mike Kestner <mkestner@novell.com>
22370 * ComboBox.cs : don't do mouseover selection in simple mode.
22372 2006-08-16 Jackson Harper <jackson@ximian.com>
22374 * Form.cs: Fire the closing events for all the mdi child windows
22375 when a window is closed. If the cancel args are set to true, the
22376 main window still gets the event fired, but it doesn't not close.
22377 * MdiWindowManager.cs: Do this closing cleanup in a Closed
22378 handler, instead of when the button is clicked, so cancelling the
22379 close works correctly.
22380 * ComboBox.cs: Send the mouse down to the scrollbar.
22382 2006-08-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
22384 * ListBox.cs: When passing 'null' to SelectedItem,
22385 set SelectedIndex to -1, to unselect items. This is the
22386 observed behaviour in .Net.
22388 2006-08-16 Peter Dennis Bartok <pbartok@novell.com>
22390 * TextBoxBase.cs: Overriding HandleClick to get clicks in spite of
22391 MS flags saying there won't be any. (fixes #78800)
22392 * Control.cs (HandleClick): Made virtual
22394 2006-08-16 Atsushi Enomoto <atsushi@ximian.com>
22396 * PageSetupDialog.cs : use Yard-Pound units only in en-GB and en-US
22397 cultures. Fixed bug #78399.
22399 2006-08-16 Jackson Harper <jackson@ximian.com>
22401 * Form.cs: Use the MdiClients MdiChildren property to access
22402 MdiChildren instead of creating the array from the child controls.
22403 * MdiClient.cs: Maintain a separate array of the mdi children, so
22404 that insertion order is maintained when the Z-order is changed.
22406 2006-08-16 Mike Kestner <mkestner@novell.com>
22408 * ListView.cs : add an ItemComparer and default to it for sorting.
22409 Fixes #79076, but sorting needs a complete overhaul to be compat with
22412 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
22414 * XplatUIX11.cs (SetZOrder): Fix debugging leftover (fixes #79080)
22416 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
22418 * Hwnd.cs (Mapped): Properly traverse the tree
22420 2006-08-15 Chris Toshok <toshok@ximian.com>
22422 * Binding.cs: fix PullData/SetPropertyValue. We don't want to
22423 pass manager.Current.GetType() to ParseData. It has to be the
22424 property type. So, hold off doing the ParseData until we're in
22425 SetPropertyValue where we know the type. This fixes the crash in
22426 #78821 but the textbox is still empty.
22428 2006-08-15 Chris Toshok <toshok@ximian.com>
22431 - when we're scrolling, only call Edit() again if the
22432 current cell is still unobscured. Fixes bug #78927.
22433 - when handling mousedown on a cell, ensure the cell is visible
22434 before calling Edit.
22435 - remove the properties from DataGridRow, and remove the
22436 DataGridParentRow class altogether.
22439 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
22441 * TextBoxBase.cs (set_Text): Don't use base.Text, instead just
22442 fire OnTextChanged by ourselves. There's no point calling base,
22443 we don't set the base value anywhere else. Fixes #78773.
22445 2006-08-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
22447 * ListBox.cs: Call CollectionChanged when modifying
22448 an item from Items indexer, to update the actual items
22451 2006-08-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
22453 * PrintDialog.cs: Small fixes for focus and a pair of checks,
22454 to match .Net behaviour.
22456 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
22458 * XplatUIX11.cs (SetZOrder): Handle raising toplevel windows
22460 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
22462 * Control.cs: Handle BringToFront for toplevel windows (Fixes #78737)
22464 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
22466 * MessageBox.cs: Prevent potential NRE exception.
22467 * TextBoxBase.cs: AutoSize only applies if MultiLine is false. Fixes #78889
22469 2006-08-14 Peter Dennis Bartok <pbartok@novell.com>
22471 * MessageBox.cs: Calculate the owner of a messagebox, also make
22472 it topmost. Fixes #78753
22474 2006-08-14 Chris Toshok <toshok@ximian.com>
22476 * XplatUIX11.cs: A couple of fixes so that metacity will let us
22477 programmatically move windows. first, set the PPosition hint as
22478 well as the USPosition hint. Second include some code from pdb
22479 that sets the window type to NORMAL when we set the transient for
22480 hint. This is because, in the absence of a window type, metacity
22481 thinks any window with TransientFor set is a dialog, and refuses
22482 to let us move it programmatically. fascists.
22484 2006-08-14 Peter Dennis Bartok <pbartok@novell.com>
22486 * XplatUIX11.cs: When setting normal hints, take into consideration
22487 an different hints previously set so we don't delete them (fixes #78866)
22489 2006-08-12 Chris Toshok <toshok@ximian.com>
22491 * ToolBarButton.cs: make Layout return a boolean, if something to
22492 do with the button's layout changed.
22495 - add another parameter to Redraw, @force, which all existing
22497 - make the Layout function return a boolean which is true if the
22498 layout has actually changed. Redraw now uses this (and @force)
22499 to determine when to invalidate. At present the only place
22500 where @force can be false is the call from OnResize, when
22501 background_image == null. So, resizing a toolbar when the
22502 layout doesn't change results in no drawing.
22504 2006-08-12 Chris Toshok <toshok@ximian.com>
22506 * ThemeWin32Classic.cs: fix the bottom right corner painting. had
22507 the VScrollBar and HScrollbar reversed. oops.
22509 * DataGrid.cs: fix the logic that assigns sizes to the implicit
22510 scrollbars. we were assigning them twice (once in
22511 Calc{Horiz,Vertical}Scrollbar, and once in CalcGridAreas),
22512 therefore causing two scrollbar resizes (and redraws?) to happen
22515 2006-08-12 Chris Toshok <toshok@ximian.com>
22517 * ToolBarButton.cs: redraw the entire button if the theme tells us
22520 * Theme.cs: add ToolBarInvalidateEntireButton.
22522 * ThemeWin32Classic.cs: we don't need to redraw the entire toolbar
22523 buttons, just the border.
22525 * ThemeNice.cs: redraw the entire toolbar button since we need to
22526 draw the highlight image.
22528 * ThemeClearlooks.cs: the rounded corners of toolbar buttons mean
22529 we need to redraw the entire button (not just the border).
22531 2006-08-11 Peter Dennis Bartok <pbartok@novell.com>
22533 * TextBoxBase.cs (CalculateScrollbars): Set the proper thumb size
22534 for vertical bars. Fixes the mismatches shown by #78513
22536 2006-08-11 Alexander Olk <alex.olk@googlemail.com>
22538 * FileDialog.cs: If a saved/remembered path doesn't exist
22539 anymore, fall back to "Desktop".
22541 2006-08-11 Peter Dennis Bartok <pbartok@novell.com>
22543 * Form.cs (CreateParams): Don't use Parent.Handle unless we have a
22544 parent. It's apparently legal to not have one
22546 - SetZOrder: Don't try to set Z-Order on an unmapped window
22547 - CreateWindow: 0,0 are legal coordinates for a window. don't move
22548 it unless the coordinates are negative
22550 2006-08-10 Mike Kestner <mkestner@novell.com>
22552 * ListControl.cs: allow null for DataSource. Clear DisplayMember
22553 when setting to null per msdn docs. Fixes #78854.
22555 2006-08-10 Chris Toshok <toshok@ximian.com>
22557 * Menu.cs, MainMenu.cs, MenuAPI.cs: get rid of most of the
22558 flickering by setting a clip rectangle on the Graphics when we
22559 need to redraw just a particular menuitem. Also, rename "OnClick"
22560 to "OnMouseDown" to reflect what it actually is.
22562 * Form.cs: track the OnMouseDown change.
22564 2006-08-10 Peter Dennis Bartok <pbartok@novell.com>
22566 * CommonDialog.cs: Properly inherit the CreateParams from the form
22567 and only change what we need. Fixes #78865
22569 2006-08-10 Chris Toshok <toshok@ximian.com>
22571 * ToolBar.cs, ToolBarButton.cs: fix the redraw-on-highlight
22572 flickering in flat mode (and most of the flickering in general) by
22573 only invalidating the button border (and not the entire rectangle)
22574 when the state changes. A couple of cases still flicker:
22575 ToggleButtons, and the dropdown arrow case when the user mouse
22578 2006-08-10 Alexander Olk <alex.olk@googlemail.com>
22580 * X11Keyboard.cs: Fixed handling of the Del key on the cursorblock
22581 for german keyboards. Numlock state shouldn't affect the behaviour
22582 of the Del key. Fixes bug #78291.
22584 2006-08-10 Chris Toshok <toshok@ximian.com>
22586 * ListControl.cs: remove the items.Clear line from BindDataItems,
22587 as this is the first thing done by both subclasses in their
22588 SetItemsCore overrides. Also, add a ItemChanged handler, and when
22589 passed -1, refresh the list. This gets databinding working when
22590 the datasource is set on the list before the datasource is
22591 populated (as in wf-apps/ReportBuilder.)
22593 * ComboBox.cs: remove the argument to BindDataItems. This call
22594 should really go away, and be initiated by the ListControl code.
22596 * ListBox.cs: same.
22598 2006-08-09 Peter Dennis Bartok <pbartok@novell.com>
22600 * TextControl.cs (Document.ctor): Initialize caret so we don't crash
22601 if no data is in the document when the control is displayed
22603 2006-08-09 Peter Dennis Bartok <pbartok@novell.com>
22605 * TextBoxBase.cs: Don't try moving the caret if we don't have a window
22608 - PositionCaret: Allow positioning of caret but don't call methods
22609 requiring a handle if the window isn't created yet
22610 - CharIndexToLineTag: Fix ending loop early error. Lines is 1 based
22611 - owner_HandleCreated: Don't position the caret, just update it's
22612 location. User might have already set a different position
22614 2006-08-09 Peter Dennis Bartok <pbartok@novell.com>
22616 * XplatUIWin32.cs: Don't use the desktop as basis for foster-parented
22617 windows. Screws up the returned coordinates for child windows.
22618 Fixes #78825. I'm hoping this doesn't break something, since the
22619 code was explicitly put in 8 months ago, but no bug was attached.
22620 Menus still seem to work properly.
22622 2006-08-08 Chris Toshok <toshok@ximian.com>
22624 * DataGrid.cs: make BeginInit/EndInit actually do what they're
22625 supposed to do - delay data binding until the EndInit call. Also,
22626 make the table style collection's CollectionChangeAction.Refresh
22629 * GridTableStylesCollection.cs: raise a CollectionChangeEvent
22630 (with action = Refresh) when a consituent table's MappingName is
22633 2006-08-08 Chris Toshok <toshok@ximian.com>
22635 * ToolBarButton.cs: in set_Text, call Parent.Redraw, not
22636 Invalidate, since changing the text can change the size of the all
22639 2006-08-08 Peter Dennis Bartok <pbartok@novell.com>
22641 * Form.cs (AddOwnedForm): Still need to add the form to our listif
22642 we don't have it yet
22644 2006-08-08 Chris Toshok <toshok@ximian.com>
22646 * PrintControllerWithStatusDialog.cs: don't .Close() the status
22647 dialog, as this causes X errors later on, since we actually
22648 destroy the window. Instead, .Hide() it.
22650 2006-08-08 Peter Dennis Bartok <pbartok@novell.com>
22652 * ComboBox.cs: Added focus reflection for popup window
22654 - Removed transient setting for non-app windows for now, not sure it
22656 - Fixed logic checking if we have captions when deciding
22657 override_redirect, WS_CAPTION is two bits and a 0 check was not
22659 - Removed the WINDOW_TYPE stuff, it was unneeded and making things
22662 - AddOwnedForm: Don't just add the form to the list, call the property
22663 to ensure the driver is informed about the ownership as well
22664 - CreateHandle: Set the TopMost status in the driver if we have an owner
22665 * XplatUI.cs: Fixed debug statement
22667 2006-08-08 Jonathan Pobst <monkey@jpobst.com>
22668 * ButtonRenderer.cs, CheckBoxRenderer.cs, ComboBoxRenderer.cs
22669 GroupBoxRenderer.cs, ProgressBarRenderer.cs, RadioButtonRenderer.cs,
22670 ScrollBarRenderer.cs, TabRenderer.cs, TextBoxRenderer.cs,
22671 TrackBarRenderer.cs: Make constructor private.
22672 * ProfessionalColors.cs, ProfessionalColorTable.cs: Fix misnamed properties.
22673 * ProfessionalColorTable.cs: Make properties virtual.
22675 2006-08-06 Duncan Mak <duncan@novell.com>
22677 * NumericUpDown.cs (Value): Don't call OnValueChanged if the value
22680 2006-08-04 Jonathan Pobst <monkey@jpobst.com>
22681 * ButtonRenderer.cs, CheckBoxRenderer.cs, ComboBoxRenderer.cs
22682 GroupBoxRenderer.cs, ProfessionalColors.cs, ProfessionalColorTable.cs,
22683 ProgressBarRenderer.cs, RadioButtonRenderer.cs, ScrollBarRenderer.cs,
22684 TabRenderer.cs, TextBoxRenderer.cs, TextRenderer.cs, TrackBarRenderer.cs:
22685 Initial import of new 2.0 classes.
22687 2006-08-04 Jonathan Pobst <monkey@jpobst.com>
22688 * Application.cs: Add 2.0 VisualStyles properties.
22690 2006-08-04 Jonathan Pobst <monkey@jpobst.com>
22691 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
22692 XplatUIX11.cs: Create property to allow access to existing private
22693 variable "themes_enabled"
22695 2006-08-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
22697 * ImageListStreamer.cs: generate the MemoryStreams with the exact BMP
22698 file size, as otherwise our class libraries fail using windows. Fixes
22701 2006-08-04 Jackson Harper <jackson@ximian.com>
22704 * XplatUIX11.cs: Move the toolwindow window manager creation into
22705 the X11 driver, this way on win32 we can let windows create/handle
22708 2006-08-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
22710 * PrintDialog.cs: Remove some redundant checks, add some others,
22711 clean some code, and move the focus to the text boxes when the
22712 values are incorrect.
22714 2006-08-04 Alexander Olk <alex.olk@googlemail.com>
22716 * FontDialog.cs: Remove Form.MinimumSize. It's not needed.
22718 2006-08-03 Alexander Olk <alex.olk@googlemail.com>
22720 * NumericUpDown.cs: Setting the Minimum and Maximum is now
22721 handled correctly. Fixes bug #79001.
22723 2006-08-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
22725 * PrintDialog.cs: The "Copies" numeric up down must have
22726 set the Minimum property to 1; only if the value is bigger
22727 than 1, activate "Collate" check box. This is the behaviour of .Net.
22728 Also modify the Document elements only if it is not null.
22730 2006-08-03 Jackson Harper <jackson@ximian.com>
22732 * TreeNodeCollection.cs: Fix copyto to use the correct nodes
22733 length. (We have a larger array then actual node count).
22735 2006-08-03 Jackson Harper <jackson@ximian.com>
22737 * ComboBox.cs: Don't show selection by default.
22738 - The SelectAll isn't needed here, since the focus code should do
22740 - DDL style lists to manual selection drawing, so when they
22741 get/lose focus they have to invalidate.
22743 2006-08-03 Peter Dennis Bartok <pbartok@novell.com>
22745 * TextBoxBase.cs: Don't always show all selections by default.
22747 2006-08-03 Jonathan Pobst <monkey@jpobst.com>
22748 * ControlUpdateMode.cs, DataSourceUpdateMode.cs,
22749 HelpNavigator.cs, WebBrowserEncryptionLevel.cs:
22750 Fixed various typos.
22752 2006-08-03 Alexander Olk <alex.olk@googlemail.com>
22754 * Control.cs: Removing the controls in a ControlCollection with
22755 Clear now hides the controls as expected. Fixes bug #78804.
22757 2006-08-03 Jackson Harper <jackson@ximian.com>
22759 * Control.cs: Revert previous focus patch, it breaks reflector.
22761 2006-08-03 Jackson Harper <jackson@ximian.com>
22763 * ComboBox.cs: Cleanup selection and focus with the combobox.
22764 This also eliminates some duplicated keyboard code, since now
22765 everything is handled by the main class.
22766 - Make list selection work on mouse up instead of down, to match
22769 2006-08-02 Jackson Harper <jackson@ximian.com>
22771 * Control.cs: Setting focus needs to go through the whole
22772 selection mechanism.
22774 2006-08-02 Chris Toshok <toshok@ximian.com>
22776 * PrintPreviewDialog.cs: change MinimumSize to use
22777 base.MinimumSize so it works.
22779 2006-08-02 Peter Dennis Bartok <pbartok@novell.com>
22782 - UpdateCaret: Added sanity check in case caret isn't defined yet
22783 - Line.Delete: Now updating selection and caret markers if we're
22784 transfering a node (Properly fixes #78323)
22785 - SetSelectionEnd: Added sanity check
22786 * TextBoxBase.cs: Removed broken attempt to fix #78323
22788 2006-08-01 Chris Toshok <toshok@ximian.com>
22790 * PrintPreviewDialog.cs: the CancelEventArgs stuff surrounding the
22791 Close() call is handled in Form, not here.
22793 2006-08-01 Chris Toshok <toshok@ximian.com>
22795 * Theme.cs, ThemeWin32Classic.cs: fix the PrintPreviewControl
22798 * PrintPreviewDialog.cs: add scrollbars, and add an image cache
22799 for sizes < 100% zoom. The code now aggressively attempts to keep
22800 from calling document.Print (), and tries not to use the scaling
22801 g.DrawImage whenever possible (it still does if you scale to >
22802 100%, since usually that involves huge images).
22804 * PrintPreviewControl.cs: hook up the close button.
22806 2006-08-01 Jonathan Pobst <monkey@jpobst.com>
22807 * ColumnClickEventHandler.cs, DrawItemEventHandler.cs,
22808 ItemChangedEventHandler.cs, ItemCheckEventHandler.cs,
22809 ItemDragEventHandler.cs, LabelEditEventHandler.cs,
22810 LinkClickedEventHandler.cs, LinkLabelLinkClickedEventHandler.cs,
22811 MeasureItemEventHandler.cs, MethodInvoker.cs, PaintEventHandler.cs,
22812 PropertyTabChangedEventHandler.cs, PropertyValueChangedEventHandler.cs,
22813 SelectedGridItemChangedEventHandler.cs, ToolBarButtonClickEventHandler.cs:
22814 Removed [Serializable] for 2.0 Event Handlers.
22816 2006-07-31 Jackson Harper <jackson@ximian.com>
22818 * TextBoxBase.cs: Make ShowSelection invalidate when changed.
22819 * TextControl.cs: Uncomment out the body of this method.
22821 2006-07-31 Alexander Olk <alex.olk@googlemail.com>
22823 * XplatUIX11.cs: Use the correct cursor shapes for arrow and default
22826 2006-07-31 Peter Dennis Bartok <pbartok@novell.com>
22828 * TextBoxBase.cs: Added internal property ShowSelection to allow controls
22829 that embed TextBox and need selections visible even if textbox is not
22830 focused to enforce that behaviour.
22831 * TextControl.cs (Draw): Use ShowSelection instead of has_focus to determine
22834 2006-07-31 Peter Dennis Bartok <pbartok@novell.com>
22837 - Added new SetSelectionStart/SetSelectionEnd overloads
22838 - Fixed viewport width assignment to be accurate
22839 - Adjusted alignment line shift calculations to allow cursor on right
22840 aligned lines to be always visible at the right border (like MS)
22842 - SetBoundsCore: Re-adjust caret location after resize (Fixes #78323)
22843 - TextBoxBase_SizeChanged: recalculating canvas on size changes
22844 - CalculateScrollBars: Use ViewPort size instead of window size, to
22845 properly consider space occupied by the border and scrollbars
22847 - hscroll_ValueChanged, vscroll_ValueChanged: Fixed scroll
22848 calculations; no longer leaves artifacts
22849 - CaretMoved: Adjusted window scrolling to match MS and fixed several
22850 calculation bugs (Still missing right/center align calculations)
22852 2006-07-31 Peter Dennis Bartok <pbartok@novell.com>
22854 * XPlatUIWin32.cs: Made ScrollRectEx a bit more flexible, and removed
22855 use of both scroll rect and clip rect, as they do the same.
22857 2006-07-31 Peter Dennis Bartok <pbartok@novell.com>
22859 * Control.cs (WM_CHAR WndProc): 2.0 profile allows changing the key
22860 in the event handler (fixes #78912)
22862 2006-07-31 Chris Toshok <toshok@ximian.com>
22864 * ThemeWin32Classic.cs: use grid.RowsCount here instead of
22865 grid.ListManager.Count, since grid.ListManager might be null.
22866 This of course begs the question "why are we drawing rows for a
22867 grid with no list manager (and therefor no rows)?" Fixes the
22868 crash in bug #78929.
22870 2006-07-31 Chris Toshok <toshok@ximian.com>
22872 * RelatedPropertyManager.cs: Don't always chain up to the parent
22873 ctor. instead, call SetDataSource if the parent's position is !=
22874 -1. Fixes the crash in #78822.
22876 2006-07-31 Chris Toshok <toshok@ximian.com>
22878 * DataGrid.cs (get_ListManager): use field instead of property
22879 accessors for datasource and datamember.
22880 (RowsCount): make internal again.
22881 (OnMouseDown): end edits before resizing columns/rows.
22882 (OnMouseUp): restart edits after resizing columns/rows.
22884 2006-07-30 Peter Dennis Bartok <pbartok@novell.com>
22886 * XplatUIX11.cs: Default cursor cannot be 0 or it will not get set.
22887 This fixes the situation where the last set cursor is displayed
22888 whenever the mouse is over scrollbars.
22890 2006-07-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
22892 * PrintDialog.cs: Fix the behaviour of PrinterSettings and
22893 Document properties, as well as initial values.
22895 2006-07-29 Peter Dennis Bartok <pbartok@novell.com>
22897 * XplatUIWin32.cs (SetBorderStyle): Setting both border
22898 and ClientEdge results in a 3-pixel border, which is
22901 2006-07-28 Jackson Harper <jackson@ximian.com>
22903 * TreeNodeCollection.cs: Fix the clear method.
22904 - Fix the Shrink also
22906 2006-07-27 Jackson Harper <jackson@ximian.com>
22908 * TreeView.cs: Make sure the visible order is computed when we
22909 attempt to size the scrollbars (for trees that mess with the
22910 scrolling when they shouldn't.
22911 - Make sure to give the scrollbars valid values.
22913 2006-07-26 Peter Dennis Bartok <pbartok@novell.com>
22915 * XplatUIX11.cs: Move motion compression code to where it
22916 has less performance impact
22918 2006-07-26 Jackson Harper <jackson@ximian.com>
22920 * UpDownBase.cs: When the control is selected make the child
22921 controls non selectable, so that a click on them won't do a
22922 focus/unfocus cycle.
22923 - Don't give focus to the text box when the spinner is selected.
22924 * XEventQueue.cs: Peek on both the x11 queue and the lock queue.
22926 2006-07-26 Chris Toshok <toshok@ximian.com>
22928 * ThemeWin32Classic.cs: add print preview rendering. I'm not
22929 satisfied with this solution. If the bitmaps are small, we should
22930 just cache them in the PrintPreviewDialog and draw them here.
22931 Also, the layout is broken for the 2-up and 3-up cases.
22933 * Theme.cs: add PrintPReviewControlPaint.
22935 * PrintPreviewDialog.cs: first pass implementation.
22937 * PrintPreviewControl.cs: first pass implementation. No
22940 * PrintDialog.cs: only validate fields if that particular portion
22941 of the UI is enabled. Also, set the document's controller to a
22942 PrintControllerWithStatusDialog wrapping the document's print
22945 * PrintControllerWithStatusDialog.cs: if we're printing to a file,
22946 bring up a SaveFileDialog (i hope we don't want to match the
22947 behavior of the crappy windows file entry) and set the
22948 PrinterSettings.PrintFileName accordingly.
22950 2006-07-26 Jackson Harper <jackson@ximian.com>
22952 * ContainerControl.cs: Add a field that disables auto selecting
22953 the next control in a container when the container is activated.
22954 * UpDownBase.cs: Don't select the text box when the up down is
22957 2006-07-26 Peter Dennis Bartok <pbartok@novell.com>
22959 * XEventQueue.cs: Added methods for peeking (used for compression
22960 of successive events)
22961 * XplatUIX11.cs (GetMessage): We're now compressing consecutive
22962 mouse move events (fixes #78732)
22964 2006-07-25 Jackson Harper <jackson@ximian.com>
22966 * UpDownBase.cs: Use an internal class for the textbox so that we
22967 can control focus. the updown control should always have focus,
22968 if either the text area or the buttons are clicked.
22969 - Send the key messages to the textbox, since it never actually
22971 - Activate and decativate the textbox caret.
22973 2006-07-24 Jackson Harper <jackson@ximian.com>
22975 * Control.cs: Use the directed select when selecting a control,
22976 this way the container controls override will get called and the
22977 whole ActiveControl chain will get triggered. TODO: probably need
22978 to make sure this gets done everywhere instead of the old
22980 * ContainerControl.cs: Implement the directed Select method to
22981 find and activate the correct child control.
22983 2006-07-22 Mike Kestner <mkestner@novell.com>
22985 * Form.cs: use Control.MousePosition for NCLBUTTONDOWN in the menu
22986 menu handling code so that clicks without a grab work too.
22989 2006-07-22 Alexander Olk <alex.olk@googlemail.com>
22991 * FileDialog.cs: Enable the BackButton when dirstack has one element.
22992 Added some small optimizations.
22994 2006-07-21 Matt Hargett <matt@use.net>
22996 * Control.cs: Implemented 2.0 MinimumSize/MaximumSize properties
22998 2006-07-21 Peter Dennis Bartok <pbartok@novell.com>
23000 * Control.cs (GetNextControl): Fixes to make all of Jackson's unit
23001 tests pass and match MS in some strange border cases.
23003 2006-07-21 Chris Toshok <toshok@ximian.com>
23005 * ThemeWin32Classic.cs: handle drawing of the relation links and
23006 parent row buttons.
23008 * Theme.cs: change args to DataGridPaintParentRow.
23010 * DataGrid.cs: Don't use controls for the relation links and
23011 parent buttons, so we have to handle all their interactions in
23012 MouseMove, MouseDown, MouseUp, etc. Also, store a lot more stuff
23013 when we're navigating through child tables, so we can reinstate
23014 selection, expanded state, current cell, etc.
23016 2006-07-20 Chris Toshok <toshok@ximian.com>
23018 * ToolBar.cs: When we redraw a button, for whatever reason,
23019 there's no reason to redraw the entire toolbar. Also, don't call
23020 Control.Refresh from within Redraw, as it's much heavier than
23021 Invalidate (which is really what we want).
23023 2006-07-20 Chris Toshok <toshok@ximian.com>
23025 * DataGrid.cs, CurrencyManager.cs, DataGridColumnStyle.cs,
23026 DataGridTextBoxColumn.cs, DataGridTextBox.cs,
23027 ThemeWin32Classic.cs, ListControl.cs: After staring at stack
23028 traces from within a debug IBindingList datasource
23029 (in mono/winforms/datagrid) for *days*, I've finally gotten things
23030 to work in a similar fashion.
23032 2006-07-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
23034 * ListBox.cs: Don't call Sort () when setting
23035 the Sorted property to false (avoid an unnecessary sort).
23037 2006-07-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
23039 * ListControl.cs: DataSource should throw an ArgumentException
23040 instead of a normal exception when the argument is not of the
23043 2006-07-20 Mike Kestner <mkestner@novell.com>
23045 * Control.cs: add InternalPreProcessMessage to allow us to steal
23046 key events before MWF gets its paws on them. Adapted from a
23048 * ToolBar.cs: add GotLostFocus handing for flat toolbars, with
23049 up/down/left/right navigation. Override the new internal control
23050 method to steal the events since they never make it to WndProc.
23051 * ToolBarButton.cs: don't worry about pushed when setting hilight
23052 since the drawing code prefers pushed to hilight. Invalidate on
23053 Hilight changes. Fixes #78547 and #78525.
23055 2006-07-20 Peter Dennis Bartok <pbartok@novell.com>
23057 * ScrollableControl.cs: Consider AutoScrollMinSize when calculating
23058 the canvas size. Fixes #78868
23060 2006-07-20 Peter Dennis Bartok <pbartok@novell.com>
23062 * Splitter.cs: Track requested split position until first layout
23063 is performed. Fixes #78871
23065 2006-07-20 Peter Dennis Bartok <pbartok@novell.com>
23067 * Application.cs: Removed code that forces 1.x for the version
23068 number if the version started with 0. Not sure why that code was
23069 there and I couldn't find any bugs that indicated we needed it.
23072 2006-07-20 Alexander Olk <alex.olk@googlemail.com>
23074 * ThemeWin32Classic.cs: Don't throw a NotImplementedException in
23075 ResetDefaults(), just write some output to the console until it's
23076 implemented. Fixes bug #78907 for now. Eliminated two warnings.
23078 2006-07-19 Jonathan Chambers <joncham@gmail.com>
23080 * PropertyGridView.cs: set StartPosition of drop down forms
23081 so they appear in correct initial spot. Fixes #78190.
23083 2006-07-19 Mike Kestner <mkestner@novell.com>
23085 * ThemeWin32Classic.cs: use parent background color when drawing
23086 flat toolbars. Restructure the conditionals to make sure non-flat
23087 non-Divider toolbars are filled too. Fixes #78837.
23089 2006-07-19 Mike Kestner <mkestner@novell.com>
23091 * ListBox.cs: Sort on collection changes even if the handle
23092 isn't created yet. Fixes #78813.
23094 2006-07-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
23096 * ListControl.cs: DisplayMember should never be null,
23097 and now we assign String.Empty when null is passed to it (this
23100 2006-07-17 Mike Kestner <mkestner@novell.com>
23102 * ListViewItem.cs: restructure Font and subitem Font handling
23103 to hold a specific font and refer back to owner on null.
23106 2006-07-17 Mike Kestner <mkestner@novell.com>
23108 * ToolBar.cs: bandaid for side-effect of previous patch which was
23109 discarding explicit heights for non-AutoSize toolbars. Need to
23110 extend my format tester to deal with AutoSize=false. Fixes #78864.
23112 2006-07-15 Jackson Harper <jackson@ximian.com>
23114 * LabelEditTextBox.cs:
23115 * TreeView.cs: Use a new LabelEdit class for node editing, this
23116 class automatically 'closes' itself when it gets the enter key or
23118 - Use the client rectangle when setting the trees scrollbars, so
23119 border style is taken into account.
23121 2006-07-14 Jackson Harper <jackson@ximian.com>
23124 * TreeView.cs: Make the editing work similar to MSs, firing the
23125 events correctly and ending edits correctly.
23127 2006-07-14 Mike Kestner <mkestner@novell.com>
23129 * ToolBarButton.cs:
23130 * ToolBar.cs: layout restructuring and redraw enhancements to support
23131 formatting changes gracefully, like setting TextAlign, ImageList,
23132 ButtonSize, and Appearance. Handles explicit button sizing quirks
23133 of the MS controls. Things like flat toolbars ignoring button size
23134 but becoming constant sized at the largest button's size. Normal
23135 toolbars with an image set cannot be shrunk smaller than the image,
23136 but text can be clipped/ignored.
23137 * ThemeWin32Classic.cs: don't draw text if text_rect height or width
23138 is zero. Seems like DrawString should be smart enough to not put
23139 anything on screen though. Also trim labels and ellipsize at the char
23140 boundary, not word.
23141 Fixes #78711 and #78483.
23143 2006-07-14 Alexander Olk <alex.olk@googlemail.com>
23145 * FolderBrowserDialog.cs: Disable "New Folder" button and
23146 "New Folder" contextmenu menuitem if a folder like "My Computer"
23149 2006-07-14 Alexander Olk <alex.olk@googlemail.com>
23151 * FileDialog.cs: Don't create a new folder in "MyComputer" folder.
23152 * FolderBrowserDialog.cs:
23153 - Use MWFConfig to store and read size and position settings
23154 - Added code to create a new folder (button or context menu).
23155 Use TreeView labeledit to change the name of the new folder.
23157 2006-07-14 Jackson Harper <jackson@ximian.com>
23159 * TreeView.cs: Raise the OnAfterLabelEdit event correctly. Also,
23160 when the tree is scrolled we end editing.
23162 2006-07-14 Alexander Olk <alex.olk@googlemail.com>
23164 * ThemeWin32Classic.cs: Fixed position of CPDrawScrollButton Up and
23167 2006-07-14 Jonathan Pobst <monkey@ipobst.com>
23169 WebBrowserProgressChangedEventHandler.cs, BindingCompleteEventArgs.cs,
23170 BindingCompleteEventHandler.cs, BindingManagerDataErrorEventArgs.cs,
23171 BindingManagerDataErrorEventHandler.cs, CacheVirtualItemsEventArgs.cs,
23172 CacheVirtualItemsEventHandler.cs, ColumnReorderedEventArgs.cs,
23173 ColumnReorderedEventHandler.cs, ColumnWidthChangedEventArgs.cs,
23174 ColumnWidthChangedEventHandler.cs, ColumnWidthChangingEventArgs.cs,
23175 ColumnWidthChangingEventHandler.cs, FormClosedEventArgs.cs,
23176 FormClosedEventHandler.cs, FormClosingEventArgs.cs,
23177 FormClosingEventHandler.cs, ItemCheckedEventArgs.cs,
23178 ItemCheckedEventHandler.cs, ListControlConvertEventArgs.cs,
23179 ListControlConvertEventHandler.cs, ListViewItemMouseHoverEventArgs.cs,
23180 ListViewItemMouseHoverEventHandler.cs, ListViewItemSelectionChangedEventArgs.cs,
23181 ListViewItemSelectionChangedEventHandler.cs,
23182 ListViewVirtualItemsSelectionRangeChangedEventArgs.cs,
23183 ListViewVirtualItemsSelectionRangeChangedEventHandler.cs,
23184 MaskInputRejectedEventArgs.cs, MaskInputRejectedEventHandler.cs,
23185 PopupEventArgs.cs, PopupEventHandler.cs, PreviewKeyDownEventArgs.cs,
23186 PreviewKeyDownEventHandler.cs, RetrieveVirtualItemEventArgs.cs,
23187 RetrieveVirtualItemEventHandler.cs, SearchForVirtualItemEventArgs.cs,
23188 SearchForVirtualItemEventHandler.cs, SplitterCancelEventArgs.cs,
23189 SplitterCancelEventHandler.cs, TabControlCancelEventArgs.cs,
23190 TabControlCancelEventHandler.cs, TabControlEventArgs.cs,
23191 TabControlEventHandler.cs, TableLayoutCellPaintEventArgs.cs,
23192 TableLayoutCellPaintEventHandler.cs, ToolStripDropDownClosedEventArgs.cs,
23193 ToolStripDropDownClosedEventHandler.cs, ToolStripDropDownClosingEventArgs.cs,
23194 ToolStripDropDownClosingEventHandler.cs, TreeNodeMouseClickEventArgs.cs,
23195 TreeNodeMouseClickEventHandler.cs, TreeNodeMouseHoverEventArgs.cs,
23196 TreeNodeMouseHoverEventHandler.cs, TypeValidationEventArgs.cs,
23197 TypeValidationEventHandler.cs, WebBrowserDocumentCompletedEventArgs.cs,
23198 WebBrowserDocumentCompletedEventHandler.cs, WebBrowserNavigatedEventArgs.cs,
23199 WebBrowserNavigatedEventHandler.cs, WebBrowserNavigatingEventArgs.cs,
23200 WebBrowserNavigatingEventHandler.cs,
23201 WebBrowserProgressChangedEventArgs.cs: New 2.0 Event Handlers
23203 2006-07-14 Jonathan Pobst <monkey@ipobst.com>
23205 MergeAction.cs, PowerLineStatus.cs, PowerState.cs, PreProcessControlState.cs,
23206 RichTextBoxLanguageOptions.cs, ScreenOrientation.cs, ScrollOrientation.cs,
23207 SearchDirectionHint.cs, SystemParameter.cs, TabControlAction.cs,
23208 TableLayoutPanelCellBorderStyle.cs, TextDataFormat.cs, TextImageRelation.cs,
23209 ToolStripDropDownCloseReason.cs, ToolStripDropDownDirection.cs,
23210 ToolStripGripDisplayStyle.cs, ToolStripGripStyle.cs,
23211 ToolStripItemAlignment.cs, ToolStripItemDisplayStyle.cs,
23212 ToolStripItemImageScaling.cs, ToolStripItemOverflow.cs,
23213 ToolStripItemPlacement.cs, ToolStripLayoutStyle.cs,
23214 ToolStripManagerRenderMode.cs, ToolStripRenderMode.cs,
23215 ToolStripStatusLabelBorderSides.cs, ToolStripTextDirection.cs,
23216 ToolTipIcon.cs, TreeNodeStates.cs, TreeViewDrawMode.cs,
23217 TreeViewHitTestLocations.cs, UnhandledExceptionMode.cs, ValidationConstraints.cs,
23218 WebBrowserEncryptionLevel.cs, WebBrowserReadyState.cs, WebBrowserRefreshOption.cs,
23219 ArrowDirection.cs, AutoCompleteMode.cs, AutoCompleteSource.cs, AutoSizeMode.cs,
23220 AutoValidate.cs, BatteryChargeStatus.cs, BindingCompleteContext.cs,
23221 BindingCompleteState.cs, CloseReason.cs, ColumnHeaderAutoResizeStyle.cs,
23222 ControlUpdateMode.cs, DataSourceUpdateMode.cs, DockingBehavior.cs,
23223 FixedPanel.cs, FlowDirection.cs, GetChildAtPointSkip.cs,
23224 HtmlElementInsertionOrientation.cs, InsertKeyMode.cs, ListViewHitTestLocations.cs,
23225 ListViewItemStates.cs, MaskFormat.cs: Added
23227 2006-07-13 Jonathan Chambers <joncham@gmail.com>
23229 * PropertyGridView.cs: Fix keyboard navigation of drop down.
23230 Patch from eno for bug 78558.
23232 2006-07-13 Jackson Harper <jackson@ximian.com>
23234 * TreeView.cs: When an edit is finished make sure that the
23235 selected node is visible.
23236 - When setting the top/bottom use the scrollbars is_visible, so
23237 everything will be set correctly even if the tree isn't visible
23240 2006-07-13 Jackson Harper <jackson@ximian.com>
23242 * ComboBox.cs: Revert the item->index part of my previous patch.
23243 * TreeView.cs: Use LostFocus instead of Leave for detecting when
23244 the edit box has lost focus (duh).
23245 - Just make the edit box not visible when we get return, that will
23246 take the focus, which will call EndEdit
23247 * TreeNode.cs When we start editing, notify the treeview.
23249 2006-07-12 Jackson Harper <jackson@ximian.com>
23251 * ComboBox.cs: Clear out old items before setting the item list.
23252 This prevents databound controls from having their items added
23254 - Switch the combobox to use indices whereever possible instead of
23255 using Item's. This allows usto navigate through lists that have
23256 more then one item with the same string value (ie a, b, b, a).
23257 - Scroll the listboxes scrollbar when a non visible item is
23259 - Allow keypress to cycle through all the possible values. For
23260 example if you have b1, b2, b3 and hold down the B key all the
23261 values will be cycled through.
23263 2006-07-12 Jackson Harper <jackson@ximian.com>
23266 * ListView.cs: Don't need to override SETFOCUS anymore, we can do
23267 this using the internal methods.
23268 * Control.cs: Add OnGotFocusInternal. A new method that allows
23269 controls to "override" OnGotFocus and change focus behavior if
23271 - Same thing for LostFocus
23272 * ComboBox.cs: Pass off focus to the text control properly.
23274 2006-07-12 Alexander Olk <alex.olk@googlemail.com>
23276 * FileDialog.cs: Added GetFoldersOnly to MWFVFS
23277 * FolderBrowserDialog.cs: Almost a complete rewrite.
23278 - Better support for Environment.Specialfolders
23279 - Added support for MWFVFS
23280 - Made setting SelectedPath work
23282 2006-07-12 Jackson Harper <jackson@ximian.com>
23284 * Control.cs: Optimze getting all the controls.
23286 2006-07-11 Jackson Harper <jackson@ximian.com>
23288 * ContainerControl.cs: Override SETFOCUS in the container control,
23289 so that it is not selected on mouse click.
23291 2006-07-11 Peter Dennis Bartok <pbartok@novell.com>
23293 * LinkLabel.cs: Hack to handle Shift-Tabbing to the linklabel.
23294 Hopefully we will have a better way once all of focus is complete.
23296 2006-07-11 Peter Dennis Bartok <pbartok@novell.com>
23298 * ThemeWin32Classic.cs: Commented out some debug code and fixed
23299 a compile error with csc.
23301 2006-07-11 Jackson Harper <jackson@ximian.com>
23303 * Control.cs: When hiding a control only select the next control
23304 if the current control was focused.
23305 - Don't handle enter/leave when setting/killing focus, this is
23306 done by the container control.
23307 - Remove is_selected, it's not needed anymore.
23308 - Add utility methods for selecting a child control, and for
23309 firing the Enter/Leave events.
23310 * ContainerControl.cs: When a control is activated fire the
23311 enter/leave events.
23312 - Don't wrap when processing the tab key, so that focus can be
23313 moved outside of the container.
23314 - Use the correct active control
23316 2006-07-11 Jackson Harper <jackson@ximian.com>
23318 * ComboBox.cs: Remove some debug code that was blinding me.
23319 * UpDownBase.cs: These controls actually aren't implicit, they are
23320 visible to the user.
23322 2006-07-10 Chris Toshok <toshok@ximian.com>
23324 * DataGrid.cs: move back to the is_adding boolean field. god i
23325 hate this is_editing/is_adding/is_changing stuff.
23327 2006-07-10 Chris Toshok <toshok@ximian.com>
23329 * DataGridTableStyle.cs: just check if the property type is bool.
23330 if it is, use DataGridBoolColumn, otherwise DataGridTextBoxColumn.
23331 Don't use CanRenderType.
23333 * DataGridTextBoxColumn.cs: set the value to DBNull.Value, not "",
23334 if our text == NullText. Remove CanRenderType.
23336 * DataGridBoolColumn.cs: nuke CanRenderType.
23338 * DataGrid.cs: reenable some code to end the current edit inside
23339 of set_CurrentCell. This fixes the other 1.1.16 regression.
23340 Also, remove rowhdrs_maxheight and just use rowhdrs_area.Height.
23341 Also, remove the visible_row_count arg from CalcRowHeaders, since
23342 we don't need to worry about the actual height of the area.
23344 2006-07-10 Chris Toshok <toshok@ximian.com>
23346 * DataGridTextBoxColumn.cs: if when we Commit we're in navigate
23349 * DataGridTextBox.cs: change "isedit" to "isnavigating" to reflect
23350 the real sense of the IsInEditOrNavigateMode property (true =
23351 navigate, false = edit). Also, update OnKeyPress to reflect this.
23353 * DataGridTableStyle.cs (CreateColumnsForTable): even if the
23354 column style exists, we still need to set its property descriptor
23355 to match up with our list manager.
23357 2006-07-10 Chris Toshok <toshok@ximian.com>
23359 * ThemeWin32Classic.cs: implement the new row/header painting
23360 approach. The parent row painting will likely go away and
23361 replaced with label controls, but the rest seems to work ok (and
23364 * Theme.cs: change the way we draw datagrid rows. we don't draw
23365 the row headers as a block now. Instead we draw them in the
23366 normal draw-row loop. Add some calls for drawing parent rows and
23369 * DataGridTableStyle.cs: add tons of ArgumentExceptions if this is
23370 a default table style. Set the defaults from ThemeEngine.Current,
23371 not SystemColors. Fix lots of misc issues with property setters.
23373 * DataGrid.cs: move loads of style information out of this class
23374 as it's being duplicated with DataGridTableStyle. keep track of a
23375 special DataGridTableStyle for the properties we used to mirror
23376 here. Switch all the style properties to access this table style
23377 instead of instance fields of this class. Also add a internal
23378 class to represent parent rows (more needs to be stored here, like
23379 the selection state from the parent table, as well as the
23380 expansion state.) Also, for datasources with relations, do the
23381 right thing for collapse/expand, and add support for the
23382 navigation/parent row buttons.
23384 Lastly, fix the crash in the 1.1.16 build.
23386 * GridTableStylesCollection.cs: make the explicit interface
23387 implementations call the class's methods as opposed to duplicating
23390 * DataGridTextBoxColumn.cs: set the x/y offset of the textfield to
23391 0 so the text doesn't jump around when we move the cursor.
23393 2006-07-10 Jackson Harper <jackson@ximian.com>
23396 * ListBox.cs: Match MS's ToString (this makes debugging focus
23397 stuff infinitely easier).
23399 2006-07-10 Jackson Harper <jackson@ximian.com>
23401 * Control.cs (SelectNextControl): When checking the control's
23402 parent use this instead of ctrl.parent so that null can be passed
23403 to SelectNextControl. (I have unit tests for this).
23404 - Remove unused var.
23406 2006-07-10 Chris Toshok <toshok@ximian.com>
23408 * CurrencyManager.cs: correct one regression, the removal of the
23409 finalType field. Also, add a MonoTODO on CanAddRows, implement
23410 Refresh() correctly, and fix some event emission in
23411 ListChangedHandler.
23413 2006-07-07 Alexander Olk <alex.olk@googlemail.com>
23415 * FileDialog.cs: Don't use brackets for new folders if they exist
23416 under *nix. Instead use -(number of existing folders +1).
23418 2006-07-07 Alexander Olk <alex.olk@googlemail.com>
23421 - Fixed really nasty bug #78771
23422 - Don't block the whole GUI when reading directories with a lot of
23423 entries. Use an other thread instead and call BeginInvoke to
23424 update the ListView in MWFFileView
23426 2006-07-07 Chris Toshok <toshok@ximian.com>
23428 * Control.cs (Dispose): release any Capture when disposing.
23430 2006-07-07 Chris Toshok <toshok@ximian.com>
23432 * LinkLabel.cs (Select): if we chain up to the parent, set
23433 focused_index to -1 so we'll search for the first available link
23434 the next time the user tabs into us. Also, if the direction is
23435 backward and focused_index == -1, start the search from the last
23438 2006-07-07 Chris Toshok <toshok@ximian.com>
23440 * LinkLabel.cs (CreatePiecesFromText): if the link's range piece
23441 is beyond the end of the text, don't do anything.
23442 (CreateLinkPieces): set our ControlStyles.Selectable based on
23443 whether or not we have any links.
23444 (Link.Invalidate): use a loop instead of foreach.
23445 (Link.set_Start): null out owner.sorted_links so it'll be
23446 recreated by CreateLinkPieces.
23448 2006-07-06 Chris Toshok <toshok@ximian.com>
23450 * LinkLabel.cs: revert the SetStyle change.
23452 2006-07-06 Chris Toshok <toshok@ximian.com>
23454 * LinkLabel.cs (.ctor): SetStyle Selectable to true.
23455 (OnEnableChanged): s/Refresh/Invalidate
23456 (OnGotFocus): if we have a focused index already, refocus it (so
23457 if we mouse out/in to the window it'll focus the right link).
23458 (OnKeyDown): move the tab handling out of here.
23459 (OnLostFocus): don't set focused_index to -1, so we can refocus it
23460 when we lose focus.
23461 (OnMouseDown): don't Capture here - Control handles it. Also,
23462 focus the active link.
23463 (OnMouseUp): don't deal with Capture.
23464 (OnPaintBackgroundInternal): remove.
23465 (OnTextAlignChanged): CreateLinkPieces before calling the
23466 superclass's method.
23467 (OnTextChanged): call CreateLinkPieces before calling superclass's
23469 (ProcessDialogKey): handle Tab here, and call Select(bool,bool) to
23471 (Select): implement this, moving the selection between different
23472 links, and call parent.SelectNextControl if we don't have another
23473 link to focus in the given direction.
23474 (CreateLinkPieces): call Invalidate instead of Refresh.
23476 2006-07-06 Chris Toshok <toshok@ximian.com>
23478 * ThemeWin32Classic.cs: DrawLinkLabel changes to accomodate the
23479 new LinkLabel internals.
23481 * LinkLabel.cs: fairly major rewrite. get rid of all the loops
23482 over pieces looking for active/focused/etc links. also, deal with
23483 runs of text (and links) with embedded \n's in them, and use
23484 MeasureCharacterRanges instead of MeasureString to figure out the
23485 regions text occupies. Lastly, do the usual s/Refresh/Invalidate
23488 2006-07-04 Jackson Harper <jackson@ximian.com>
23490 * XplatUIX11.cs: Enable key auto repeat. If the user doesn't have
23491 XKB or key auto repeat, do it manually. Without key auto repeat,
23492 when a key is held down we get key press, key release, key press,
23493 key release, ... with auto repeat we get key press, key press, key
23494 press ..., and then a release when the key is actually released.
23496 2006-07-03 Jackson Harper <jackson@ximian.com>
23499 * ThemeWin32Classic.cs: Tabs do not obey normal background color
23500 rules, they are always control color regardless of the background
23503 2006-07-02 Alexander Olk <alex.olk@googlemail.com>
23505 * FileDialog.cs: Added internal class MWFConfig.
23506 Removed Registry support and replaced it with support for the new
23507 MWFConfig class. See MWFConfig comments for more information.
23509 2006-06-30 Alexander Olk <alex.olk@googlemail.com>
23511 * ThemeWin32Classic.cs: Added RadioButton and CheckBox focus
23512 rectangle. Added some patches from eno from bug #78490 and fixed
23513 the arrow position for small up and down CPDrawScrollButtons.
23515 2006-06-30 Jackson Harper <jackson@ximian.com>
23517 * InternalWindowManager.cs: Remove some debug code.
23518 * Form.cs: When an MdiParent is set to null, the window is
23519 "detatched" and becomes a normal window.
23520 * MdiClient.cs: Don't bring the new child form to the front until
23521 it is activated (setting it as active does this), this makes the
23522 previously active forms titlebar get redrawn as inactive.
23524 2006-06-29 Peter Dennis Bartok <pbartok@novell.com>
23526 * PrintDialog.cs: Labels need a tab index too, otherwise they overlap
23527 with later controls
23529 2006-06-29 Mike Kestner <mkestner@novell.com>
23531 * MenuAPI.cs: handle arrow keys in keynav state. Go active on down
23532 arrow in keynav state. Fixes #78682.
23534 2006-06-28 Atsushi Enomoto <atsushi@ximian.com>
23536 * PrintDialog.cs: Reorder, relayout, remove extra code, set tab
23537 order (fixes #78393)
23539 2006-06-28 Jonathan Pobst <monkey@ipobst.com>
23541 * AccessibleRole.cs, AccessibleStates.cs, AnchorStyles.cs,
23542 ArrangeDirection.cs, ArrangeStartingPosition.cs, ColorDepth.cs,
23543 ControlStyles.cs, DataGridViewImageCellLayout.cs, DrawMode.cs,
23544 FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs,
23545 GridItemType.cs, HelpNavigator.cs, ImeMode.cs, ItemActivation.cs,
23546 ItemBoundsPortion.cs, Keys.cs, ListViewAlignment.cs,
23547 PictureBoxSizeMode.cs, PropertySort.cs, SelectionMode.cs,
23548 Shortcut.cs, SizeGripStyle.cs, SortOrder.cs, StructFormat.cs,
23549 TextFormatFlags.cs, ToolBarAppearance.cs, ToolBarButtonStyle.cs,
23550 ToolBarTextAlign.cs, View.cs: 2.0 Changes to existing 1.x
23551 enumerations (FlagsAttribute, SerializableAttribute, added/removed
23554 2006-06-28 Mike Kestner <mkestner@novell.com>
23556 * ComboBox.cs: implement scroll wheel support. Fixes #78360.
23558 2006-06-28 Atsushi Enomoto <atsushi@ximian.com>
23561 PropertyGridTextBox.cs : explicitly set BackColor to differentiate
23562 item lines from other area (It also makes BackColor consistent and
23563 compatible with .NET). Fixed bug #78564.
23565 2006-06-28 Jonathan Chambers <jonathan.chambers@ansys.com>
23567 * PropertyGrid.cs: refresh toolbar when PropertySort is set.
23568 Patch from Eno for #78555.
23570 2006-06-27 Chris Toshok <toshok@ximian.com>
23572 * ThemeWin32Classic.cs: s/grid.grid_drawing/grid
23574 * DataGridColumnStyle.cs: same.
23576 * DataGrid.cs: Roll DataGridDrawingLogic.cs into this file.
23578 * DataGridDrawingLogic.cs: nuke.
23580 2006-06-27 Chris Toshok <toshok@ximian.com>
23582 * DataGridTableStyle.cs: clean up the constructors, and build the
23583 list of child relations for this table. I have no idea if this is
23584 where we should be doing it (it probably isn't), but since we're
23585 already iterating over the properties..
23587 * DataGrid.cs: add row resizing. for now we add a DataGridRow
23588 struct and array for keeping track of row information, similar to
23589 what's shown in a hack on
23590 http://www.syncfusion.com/FAQ/WindowsForms/FAQ_c44c.aspx.
23592 * Theme.cs: be consistent about the naming of DataGrid methods,
23593 prefering ColumnWidths and RowHeights over columnsWidths and
23596 * ThemeWin32Classic.cs: same, and also add support for variable
23597 sized rows (and the +/- expansion icons for related rows).
23599 2006-06-27 Peter Dennis Bartok <pbartok@novell.com>
23601 * TextBoxBase.cs: Applied Eno's patch from #78660
23603 2006-06-27 Peter Dennis Bartok <pbartok@novell.com>
23605 * Form.cs (ScaleCore): We don't want to scale our form if it's
23606 state is minimized or maximized, but we still need to scale our
23607 child windows. Also, added try/finally block to ensure layout
23608 gets reset (Fixes #78697)
23610 2006-06-27 Peter Dennis Bartok <pbartok@novell.com>
23612 * Control.cs: Added 2.0 Scale(SizeF) method (Fixes 78700)
23614 2006-06-27 Peter Dennis Bartok <pbartok@novell.com>
23616 * Form.cs: Fixed c+p error and added check to resize form if minimum
23617 size is bigger than current size (Fixes #78709)
23619 2006-06-26 Peter Dennis Bartok <pbartok@novell.com>
23621 * ThemeEngine.cs (..ctor): Properly use ToLower() (Fixes #78704)
23623 2006-06-26 Mike Kestner <mkestner@novell.com>
23625 * ComboBox.cs: only do Keypress handling in the combo when there
23626 are items in the collection. Fixes #78710.
23628 2006-06-26 Chris Toshok <toshok@ximian.com>
23630 * Binding.cs: make this work bi-directionally. also, clear up
23631 other mixups between Push/Pull Data (e.g. we're supposed to pull
23632 data when validating).
23634 * BindingManagerBase.cs: trim some fully qualified collection
23637 * PropertyManager.cs (get_IsSuspended): oops, fix this check.
23639 2006-06-23 Chris Toshok <toshok@ximian.com>
23641 * PropertyManager.cs: It appears (according to the unit tests)
23642 that PropertyManager doesn't use
23643 PropertyDescriptor.AddValueChanged to track propery value changes
23644 in its datasource, but uses the same scheme as Binding, where it
23645 looks for a <Property>Changed event and binds to it.
23647 Also, according to the docs, IsSuspended always returns false for
23648 a property manager with a non-null datasource.
23650 2006-06-22 Peter Dennis Bartok <pbartok@novell.com>
23652 * Form.cs: (ShowDialog): If we're returning a forced cancel we still
23653 need to update the actual DialogResult. (Fixes #78613)
23655 2006-06-22 Peter Dennis Bartok <pbartok@novell.com>
23657 * Form.cs (ShowDialog): Release any captures before running the
23658 new message pump (fixes #78680)
23660 2006-06-22 Mike Kestner <mkestner@novell.com>
23662 * ListView.cs: Layout column widths properly in details mode even
23663 if HeaderStyle.None is set. Fixes #78691.
23665 2006-06-21 Peter Dennis Bartok <pbartok@novell.com>
23667 * FileDialog.cs: Fixed taborder to match MS. Fixes #77873 partially.
23669 2006-06-21 Peter Dennis Bartok <pbartok@novell.com>
23671 * Control.cs (ContainsFocus): Using new driver method to get focused
23672 window, instead of trying to use internal tracking var, which can
23673 recursion issues (Fixes #78685)
23674 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
23675 XplatUIWin32.cs: Added GetFocus method to return focused window
23677 2006-06-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
23679 * ColorDialog.cs: when the mouse button is pressed inside the color
23680 matrix, don't let the cursor move out of it until the button is
23681 released, which is the behavior on windows. Changed 'colours' by
23682 'colors' to use the same word consistently.
23684 2006-06-21 Chris Toshok <toshok@ximian.com>
23686 * DataGrid.cs: add in some basic navigation stuff (navigating to a
23687 child relation and back, using a stack). Also, remove
23688 GetDataSource and the code that calls it - it's not needed. Also,
23689 track CurrencyManager.ListName's removal.
23691 2006-06-21 Chris Toshok <toshok@ximian.com>
23693 * CurrencyManager.cs: push some of the original type checking from
23694 BindingContext.CreateBindingManager to here, and remove some of
23695 the finalType stuff. Need more tests to make sure I've got the
23696 ListName part right, and we might need more in SetDataSource.
23698 * PropertyManager.cs: add a ctor that takes just the datasource,
23699 and no property name. Make SetDataSource work with a null
23700 property_name, and make Current return the data_source if the
23701 property descriptor is null. this makes 'string foo = "hi";
23702 BindingContext[foo].Current' return "hi" as it should.
23704 * RelatedCurrencyManager.cs: make this code more generic - there's
23705 no reason the parent manager has to be CurrencyManager, and
23706 there's no reason to pass the DataRelation. It suffices to use a
23707 BindingManagerBase and PropetyDescriptor.
23709 * RelatedPropertyManager.cs: make a similar change here.
23711 * BindingContext.cs: make CreateBindingManager the beautiful, tiny
23712 flower I knew it could be.
23714 2006-06-20 Chris Toshok <toshok@ximian.com>
23716 * PropertyManager.cs: the PropertyChangedHandler is invoked when
23717 data in the source has changed and we need to update the control,
23718 so s/PullData/PushData.
23720 * CurrencyManager.cs: Refresh is meant to update the control from
23721 data in the datasource. So, s/PullData/PushData.
23723 * BindingContext.cs: add more ugliness (we weren't handling the
23724 case where data_source = DataTable and data_member = column_name).
23726 * Binding.cs: fix PushData/PullData mixup. Both are interpreted
23727 from the perspective of the datasource. PullData pulls from the
23728 control, PushData pushes to the control.
23730 2006-06-20 Chris Toshok <toshok@ximian.com>
23732 * BindingContext.cs: rewrite the CreateBindingManager code to
23733 handle navigation paths more or less properly. This could
23734 definitely stand some more work, in particular to push the
23735 recursion up to the toplevel. But that relies on fixes in other
23736 places (System.Data comes to mind).
23738 Also, move to a flat hashtable (and encode the twolevel nature of
23739 the dictionary into the hash key). This lets us implement the
23740 IEnumerable.GetEnumerator method.
23742 * RelatedCurrencyManager.cs: new class. Update our view based on
23743 our relation and our parent CurrencyManager's position.
23745 * CurrencyManager.cs: split out some logic from the ctor into
23746 SetView, so it can be called from the new RelatedCurrencyManager
23749 * RelatedPropertyManager.cs: new class. Update our datasource
23750 based on the position of our parent CurrencyManager.
23752 * PropertyManager.cs: split out some logic from the ctor into
23753 SetDataSource, so it can be called from the new RelatedDataSource
23754 subclass. Also, make the Current getter return the value
23755 of the PropertyDescriptor, not the data_source.
23757 * Binding.cs: no need to duplicate the string splitting code here.
23759 2006-06-19 Peter Dennis Bartok <pbartok@novell.com>
23762 - set_Enabled: OnEnabledChanged is not called if the inherited state
23763 of the control is not altered, even though we might be changing the
23764 internal state of the control (#78458)
23765 - set_Enabled: (Re)Moved the enabling/disabling of the window to
23766 OnEnabledChanged, to allow easy altering of any child window state
23767 - OnEnabledChanged: Added code to enable/disable driver window state
23768 - OnParentEnabledChanged: Instead of firing the event, call
23769 OnEnabledChanged, which will fire the event and also a) set driver
23770 window state and pass the enabled state to any grandchildren (#78458)
23772 2006-06-19 Jackson Harper <jackson@ximian.com>
23774 * InternalWindowManager.cs: We don't set the cursor explicitly
23775 thats done via the response to NCHITTESTs.
23776 - Don't need to adjust for titlebar heights anymore, the
23777 coordinates are coming in the correct coordinates now (see peters
23781 2006-06-19 Peter Dennis Bartok <pbartok@novell.com>
23783 * XplatUIX11.cs (GetMessage): WM_NCxBUTTONx messages were wrongly
23784 being translated relative to whole window, instead of client window.
23785 That caused broken offsets on mouseclick (and caused gas for our
23786 InternalWindowManager)
23788 2006-06-15 Peter Dennis Bartok <pbartok@novell.com>
23791 - MoveCaret: Implemented PgUp, PgDown, CtrlPgUp and CtrlPgDown
23792 - Undo(): Added replay of cursor move on DeleteChars action; added
23793 calling Undo() again if a recorded cursor move is invalid (to
23794 ensure that some action is performed on Undo)
23795 * TextBoxBase.cs (ProcessKey): Added handling of PgUp and PgDown (#78482)
23797 2006-06-16 Jackson Harper <jackson@ximian.com>
23799 * MdiClient.cs: Instead of just sizing maximized windows when
23800 there is a resize we also have to adjust the Y of minimized
23801 windows, so they stay pinned to the bottom of the mdi container.
23802 - Eliminate separate tracking of the active control, we can just
23803 get this from the controls collection.
23804 - Paint the decorations for the newly activated titlebar so we get
23806 * InternalWindowManager.cs:
23807 * ThemeWin32Classic.cs: Minimized windows get all three buttons
23808 even if they are a tool window.
23810 2006-06-15 Peter Dennis Bartok <pbartok@novell.com>
23812 * TextControl.cs (Undo): Handle non-existent cursor locations in the
23813 undo buffer, these can happen when text was deleted and the cursor
23814 was recorded first. Since we will also have a recorded cursor
23815 after the delete this is not an issue. (Fixes #78651)
23817 2006-06-14 Peter Dennis Bartok <pbartok@novell.com>
23819 * AccessibleObject.cs: Remove dependence on Control.is_selected;
23820 instead properly track control states internally (allows us to
23821 remove is_selected from Control)
23823 2006-06-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
23825 * ImageListStreamer.cs: correctly generate the 1bpp mask for images
23826 whose width is not a multiple of 8.
23828 2006-06-13 Jackson Harper <jackson@ximian.com>
23830 * MdiClient.cs: Only maximize the next child if the current one
23833 2006-06-13 Chris Toshok <toshok@ximian.com>
23835 * DataGridColumnStyle.cs: Invalidate the column when HeaderText is
23836 modified. Also, guard against grid or grid_drawing being null in
23839 * DataGrid.cs: Reformat tons of getters/setters. In the
23840 DataMember setter, just call SetNewDataSource instead of
23841 duplicating some of its functionality. In SetNewDataSource, don't
23842 check ListManager for null, since the property getter creates the
23845 * DataGridTableStyle.cs: don't set TableStyle or call
23846 SetDataGridInternal on the column here, it's done in
23847 GridColumnStylesCollection.Add.
23849 * GridColumnStylesCollection.cs: fix all the explicit interface
23850 implementations to just call our methods. Nuke AddInternal() and
23851 move the body of it to Add(). Also, add a call to
23852 column.SetDataGridInternal to Add().
23854 * DataGridTextBoxColumn.cs (.ctors): call this() instead of
23855 base()+duplicate code. Also, use the Format property instead of
23856 format to generate an Invalidate ala MS. Lastly, create the
23857 textbox here, unconditionally.
23858 (set_Format): call Invalidate.
23859 (get_TextBox): no need to call EnsureTextBox.
23860 (Commit): remove the message box.
23861 (Edit) remove the call to EnsureTextBox.
23862 (EndEdit): call HideEditBox instead of ReleaseHostedControl.
23863 (EnterNullValue): no need to check textbox for null.
23864 (HideEditBox): no need to check textbox for null.
23865 (SetDataGridInColumn): add the textbox to the grid's controls.
23866 (EnsureTextBox): nuke.
23868 2006-06-13 Jackson Harper <jackson@ximian.com>
23870 * MdiWindowManager.cs: Hook up to the maximized menus paint event
23871 and redraw the buttons when needed. Unhook when the window is
23873 * MainMenu.cs: Add an internal Paint event, the mdi window manager
23874 needs this so that it can redraw its buttons when the menu is
23876 * InternalWindowManager.cs:
23877 * Form.cs: The method order has changed for DrawMaximizedButtons,
23878 so that it can be a PaintEventHandler.
23880 2006-06-13 Jackson Harper <jackson@ximian.com>
23882 * MdiClient.cs: When we close a maximized mdi window, the next mdi
23883 window is activated and maximized, even if it wasn't before.
23884 - When a new window is activated repaint the decorations of the
23885 old one, so that it no longer has the Active "look" (the blue
23887 * InternalWindowManager.cs: Open up CreateButtons to base classes
23888 so they can recreate the buttons on state changes.
23889 - If a window is maximized give it all three buttons
23890 * MdiWindowManager.cs: Create the titlebar buttons when the state
23891 is changed, this is needed because a toolwindow will not have all
23892 three buttons until it is maximized.
23894 2006-06-13 Atsushi Enomoto <atsushi@ximian.com>
23896 * ProgressBar.cs : PerformStep() shouldn't exceed Maximum.
23899 2006-06-12 Jackson Harper <jackson@ximian.com>
23901 * KeysConverter.cs: Make sure we handle the Ctrl special case
23902 if its the only key.
23904 2006-06-12 Jackson Harper <jackson@ximian.com>
23906 * Theme.cs: Add a method to get the size of a managed window
23908 * InternalWindowManager.cs: Remove the ButtonSize property, this
23909 should be retrieved from the theme.
23910 * MdiWindowManager.cs: Get the button size from the theme
23911 * ThemeWin32Classic.cs: Make the method to get the managed window
23912 titlebar button size public.
23913 - Handle the different button sizes of maximized toolwindows
23914 (should match any maximized window).
23915 - Get the titlebar height from the theme, not the WM (which gets
23916 it from the theme).
23918 2006-06-12 Jackson Harper <jackson@ximian.com>
23920 * InternalWindowManager.cs: Handle NC Double Clicks, passing the
23921 event down to the mdi window manager.
23922 - Expose some extra stuff to base classes
23923 - Make sure to end the Capture on an NC Mouse up, so that we can
23924 get double clicks properly, and the sizing doens't stick.
23925 - When doing PointToClient contain it in the workable desktop
23926 area, this prevents windows from changing size when the cursor is
23927 pulled outside of the working area while sizing.
23928 * MdiWindowManager.cs: When we get a double click maximize the
23930 - Reset the cursor after handling mode changes.
23932 2006-06-12 Peter Dennis Bartok <pbartok@novell.com>
23934 * XplatUIX11.cs (WorkingArea): Read the actual workarea for the
23935 current desktop, instead of just assuming a 0, 0 origin. This
23936 is needed for our internal window manager, to know the top
23937 margin of the desktop
23939 2006-06-12 Chris Toshok <toshok@ximian.com>
23941 * DataGrid.cs (set_CurrentCell): concede focus as we move around.
23942 we need this to get rid of the selected background in the bool
23944 (CancelEditing): move the ConcedeFocus call to above the Abort
23945 call. Also, set is_changing to false and invalidate the row
23946 header if we were changing before.
23947 (ProcessKeyPreviewInternal): remove, since noone outside this
23948 class calls it anymore. Roll the code into ProcessKeyPreview.
23949 (EndEdit): remove the internal version.
23950 (InvalidateCurrentRowHeader): make private.
23952 * DataGridBoolColumn.cs: simplify this class a bunch. remove the
23953 Keys.Escape handling (and with it the last call to
23954 DataGrid.EndEdit from outside the class.)
23957 2006-06-12 Chris Toshok <toshok@ximian.com>
23959 * DataGridTextBox.cs (.ctor): isedit defaults to false.
23960 (OnKeyPress): set isedit to true.
23961 (ProcessKeyMessage): remove Keys.Enter handling from here. it's
23962 already handled by the grid.
23964 * DataGrid.cs (set_CurrentCell): more work here. it's still not
23966 (set_DataSource): SetDataSource always returns true, so stop
23967 putting it in an if statement.
23968 (EndEdit): get rid of some {}'s
23969 (ProcessGridKey): return true in case Keys.Escape.
23970 (ProcessKeyPreviewInternal): only handle KEYDOWN messages.
23971 (ConnectListManagerEvents,DisconnectListManagerEvents): connect to
23972 PositionChanged, stopped connecting to CurrentChanged.
23973 (GetDataSource): simplify this a bunch.
23974 (SetDataSource): change return type from bool to void.
23975 (OnListManagerPositionChanged): rename OnListManagerCurrentChanged
23976 to this, and make sure we don't set ListManager.Position inside
23978 (OnListManagerItemChanged): if we're passed an actual index,
23981 * CurrencyManager.cs (set_Position): don't call PullData here.
23983 2006-06-09 Jackson Harper <jackson@ximian.com>
23985 * TreeNode.cs: Recalculate the visible order before doing the
23986 Expand/Collapse Below calls, because those calls generate an
23988 - Reduce calls to the TreeView property, which is mildly expensive
23989 by using a local var.
23990 * Form.cs: Layout the MDI child windows when creating the parent
23992 - Don't use the internal constructor anymore
23993 * MdiClient.cs: use the parent form width/height (if available)
23994 when laying out the child windows, we do this because the
23995 mdiclient isn't docked yet when the initial layout is done.
23996 - Don't need an internal constructor anymore.
23998 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24000 * FileDialog.cs: handle access errors when trying to create a folder
24001 or changing to a directory. No need to initialize out parameters.
24003 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
24005 * FileDialog.cs: Append a number when creating a new folder if the
24006 folder already exists (use parenthesis instead of square brackets)
24008 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
24011 - Disabled registry support for windows and added better registry
24012 error checking for other systems (need to investigate why it
24013 works perfectly on my system)
24014 - If a folder already exist show an error MessageBox instead of
24015 trying to create an indexed name.
24016 - Fixed a non intentional typo.
24018 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24020 * FileDialog.cs: (SetFileName) don't crash if CurrentRealFolder is null.
24022 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
24024 * FileDialog.cs: When creating a new folder don't crash if the
24025 folder already exists.
24027 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
24029 * FileDialog.cs: Allmost a complete rewrite.
24030 - added a "virtual" file system that handles the differences
24031 between unix and windows file systems (especially the directory
24032 structure). Moved most of the directory and file handling code
24034 Added vfs classes: MWFVFS, FileSystem, WinFileSystem,
24035 UnixFileSystem and FSEntry.
24036 - Recently used folder/directory, size, location and used file names
24037 (file name ComboBox) are now stored in the registry and get read
24038 before the dialog shows up (fixes part 6 of bug #78446).
24039 - Creation of new folders/directories is now possible (context menu
24040 or ToolBar). Added TextEntryDialog for this that fills in the gap
24041 until ListView.LabelEdit works.
24042 - Fixed cursor handling (bug #78527) and focus handling for
24044 - Various "Search in" ComboBox enhancements. The content of the
24045 dropdown listbox now almost matches ms.
24046 - Changed the behaviour when the user switches to SpecialFolder
24047 Recent to show the ListView in View.Details.
24048 - Beside using the ToolBar to change the View property of the
24049 file ListView it is now possible to use the context menu too.
24051 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
24053 * ComboBox.cs: Don't create a new ObjectCollection when an item
24054 gets inserted. Just insert the item in the existing object_items
24057 2006-06-08 Jackson Harper <jackson@ximian.com>
24059 * OpenTreeNodeEnumerator.cs: Fix to use the Parent property, so
24060 that the treeview and root node checks are done also, this fixes a
24061 regression i caused in the unit tests.
24063 2006-06-07 Wade Berrier <wberrier@novell.com>
24065 * RichTextBox.cs: More ISO8859-1 -> unicode
24067 2006-06-07 Mike Kestner <mkestner@novell.com>
24069 * ComboBox.cs : use items to hold highlight/selection so that
24070 collection insertions don't require synchronization.
24072 2006-06-07 Jackson Harper <jackson@ximian.com>
24074 * InternalWindowManager.cs: Simplify (and FIX) the window sizing
24075 routine. We now always keep the sized edge at the cursor instead
24076 of computing movement and adjusting rects. There is one buglet
24077 with this method though when the cursor is moved over area that
24078 the window can not expand too (such as the toolbars on the desktop).
24080 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24082 * XplatUIX11.cs: (IsEnabled,IsVisible) the window handler can be null
24083 here. Fixes crash on startup in AlbumSurfer.
24085 2006-06-07 Peter Dennis Bartok <pbartok@novell.com>
24087 * RichTextBox.cs: Replaced embedded ISO8859-1 chars with proper unicode
24090 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24092 * XplatUIX11.cs: call XPending and XNextEvent inside the same lock()
24093 statement to avoid calling XNextEvent which will block if another thread
24094 took the event that we were expecting. Fixes bug #78605.
24096 2006-06-07 Mike Kestner <mkestner@novell.com>
24098 * ListView.cs : isolated checkbox clicking from the selection logic.
24099 Toggle check state on item doubleclicks. Really fixes #78454 part2.
24101 2006-06-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
24103 * Form.cs: Check that the value passed to Form.DialogResult
24104 is a valid enum value.
24106 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24108 * FileDialog.cs: disable the up button when in 'Recently Used' or 'My
24109 Computer'. Clicking it in the network view goes to 'My Computer'.
24110 Added CIFS filesystem type. Display the mount point of filesystems.
24111 Avoid duplicate mount points (happens for me with CIFS);
24113 2006-06-06 Jackson Harper <jackson@ximian.com>
24115 * InternalWindowManager.cs: Draw the maximized windows buttons
24118 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24120 * Form.cs: when running a modal dialog, ignore WM_CLOSE requests for
24121 all other dialogs. Fixes bug #78585.
24123 2006-06-06 Mike Kestner <mkestner@novell.com>
24125 * CheckedListBox.cs : apply CheckOnClick behavior to unchecking too.
24126 Only invalidate checkbox on checkstate changes to avoid flicker.
24127 * ListBox.cs : avoid unselect/select when clicking selected item.
24128 avoid reselection flicker for already multiselected items.
24131 2006-06-06 Jackson Harper <jackson@ximian.com>
24133 * MdiWindowManager.cs: When the window is closed do an NCRecalc on
24134 the parent form so that the menu is removed if needed.
24136 2006-06-06 Mike Kestner <mkestner@novell.com>
24138 * ListBox.cs : add ScrollWindow call to UpdateTopItem. fix
24139 Prev/Next/PrevPage/NextPage/Home/End index calculation. Fixes #78559.
24141 2006-06-06 Mike Kestner <mkestner@novell.com>
24143 * CheckedListBox.cs : rebuild check collection on Add. Fixes #78426.
24146 2006-06-06 Jackson Harper <jackson@ximian.com>
24148 * Control.cs: Use the property (instead of the field) to get the
24149 default cursor so it is instantiated correctly.
24150 * InternalWindowManager.cs: The OS doesn't give us an NCPAINT with
24151 resizes so we need to manually repaint the window decorations here.
24152 - Set the titlebar button locations as soon as they are created,
24153 otherwise they are not set correctly on win32.
24155 2006-06-06 Chris Toshok <toshok@ximian.com>
24157 * CurrencyManager.cs (set_Position): call PullData before
24159 (AddNew): after calling IBindingList.AddNew, update our
24160 listposition, and call OnCurrentChanged/OnPositionChanged (without
24162 (OnCurrentChanged): remove the call to PullData from here.
24163 (OnItemChanged): remove the call to PushData from here.
24164 (OnPositionChanged): change the test from == null to != null to
24165 match the other methods.
24166 (ListChangedHandler): the grossest part of the patch. Implement
24167 this such that it passes the unit tests in CurrencyManagerTest and
24168 the output more or less matches that of MS's implementation.
24170 2006-06-06 Mike Kestner <mkestner@novell.com>
24172 * ListView.cs : only update check state on single click.
24173 * ThemeWin32Classic.cs : fix focus drawing for details view without
24174 fullrowselect. Fixes #78454.
24175 * XplatUIX11.cs : fix for double click emission.
24177 2006-06-05 Jonathan Chambers <jonathan.chambers@ansys.com>
24179 * PropertyGridView.cs : Applied Atsushi's patch to fix
24180 font dialog bug (#78197).
24182 2006-06-05 Jackson Harper <jackson@ximian.com>
24184 * TreeNode.cs: Compute the next node for expanding/collapsing
24185 correctly. We now factor in nodes without a NextNode
24186 correctly. (Fixes somes cases in nunit-gui).
24187 * InternalWindowManager.cs: Set the bounds when updating the
24188 virtual position of a tool window.
24190 2006-06-05 Chris Toshok <toshok@ximian.com>
24192 * DataGrid.cs: rename cached_currencymgr to list_manager.
24193 (set_CurrentCell): move SetCurrentCell code here, and clean it up
24195 (CurrentRow, CurrentColumn): single accessors so we can make the
24196 cursor movement code a lot easier to understand.
24197 (CurrentRowIndex): implement this in terms of CurrentRow.
24198 (BeginEdit): clean this up a bit.
24199 (CancelEditing): sort out the is_editing/is_changing/is_adding
24201 (EndEdit): minor changes.
24202 (OnKeyDown): add a comment about a (most likely) unnecessary
24204 (OnMouseDown): cancel editing when we click on a row header. And
24205 use the CurrentRow setter, not CurrentCell.
24206 (ProcessDialogKey): directly call ProcessGridKey.
24207 (UpdateSelectionAfterCursorMove): factor out this common block of
24208 code (it's used everywhere that we move the cursor by updating row
24210 (ProcessGridKey): pretty substantial overhaul. Use the
24211 CurrentRow/CurrentColumn properties to make the code a lot more
24212 readable. Only use the CurrentCell property when we have to
24213 modify both row and column at once. Tab behavior is still broken,
24214 and Delete is untested.
24215 (Select): if we have no selected rows, set selection_start to
24217 (EditCurrentCell): rename EditCell this. It was only ever invoked
24218 with CurrentCell as the arg, so drop the arg and rename it.
24220 * DataGridColumnStyle.cs: clean up the constructors a little, and
24221 drop CommonConstructor().
24223 * DataGridTextBox.cs (.ctor): set accepts_return to true so we
24224 actually get notified when the user hits it.
24225 (ProcessKeyMessage): *substantially* simplify this method.
24226 There's no reason (that I can see) for the textbox to be making
24227 calls into the datagrid at all. Remove all of them but the ones
24228 for Enter handling. those will take some more work.
24230 * DataGridTextBoxColumn.cs (ConcedeFocus): implement this by
24231 calling HideEditBox.
24232 (HideEditBox): if we have an active textbox, render it invisible
24233 without causing a re-layout of the datagrid.
24235 2006-06-05 Mike Kestner <mkestner@novell.com>
24237 * ListView.cs : fix NRE crasher when focuseditem is cleared by
24238 collection changes by resetting it to Items[0]. Fixes #78587.
24240 2006-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24242 * MessageBox.cs: if the height of the text is larger than the icon_size,
24243 use that. Fixes bug #78575.
24245 2006-06-05 Jackson Harper <jackson@ximian.com>
24247 * TreeView.cs: Fix line drawing when scrolling. To do this each
24248 node is basically responsible for drawing its entire horizontal
24249 area. When drawing a node it draws its parent node lines if
24251 - Adjust the clip area to the viewport rectangle
24252 - Fix Left/Right key handling to match MS. (It expand/collapses
24253 and moves to parents/first child but does not move selection to
24255 - Fix SetTop to work with new bound calculation code
24256 - When scrollbars are no longer needed we need to reset scrolling
24257 vars and recalculate the visible order so the redraw is correct
24258 * TreeNode.cs: We can't expand/collapse nodes with no children.
24260 2006-06-03 John Luke <john.luke@gmail.com>
24262 * X11DesktopColors.cs: dllimport the exact gtk and gdk versions
24263 so the colors work without dev packages
24265 2006-06-02 Peter Dennis Bartok <pbartok@novell.com>
24268 - Select: Implemented to just use activate. Seems to match MS
24269 behaviour closest. Documented to only do actual control walking
24270 based on it's parameters if in a container control so I moved
24272 - Removed selection check logic from our internal Select() method
24273 * ContainerControl.cs:
24274 - Select: Moved selection logic from Control here, since MS documents
24275 that containers obey the bool arguments. No longer calling base
24277 2006-06-02 Jackson Harper <jackson@ximian.com>
24279 * TreeView.cs: If the selected node isn't changed when we get
24280 focus update the previously selected node so that we see the
24283 2006-06-02 Mike Kestner <mkestner@novell.com>
24285 * ComboBox.cs: restructure grab and general mouse event handling.
24286 Make the composite control raise mouse events like it was a single
24287 control for leaves/enters/motion/up/down events. fix dropdown list
24288 coordinate mangling and refactor it into the scrollbar subclass to
24289 reduce code duplication. Fixes #78282 #78361 and #78457.
24291 2006-06-02 Mike Kestner <mkestner@novell.com>
24293 * ScrollBar.cs: remove Capture setting/clearing, as it happens
24294 automatically in the Control.WndProc.
24296 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24298 * FileDialog.cs: fix crash when running SharpChess, which sets the
24299 FilterIndex to 2 with only one Filter.
24301 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24303 * ToolBar.cs: add SizeSpecified property.
24304 * ToolBarButton.cs: when the ButtonSize is calculated by the container,
24305 try to figure out our real size, otherwise fallback to what the
24308 2006-06-01 Peter Dennis Bartok <pbartok@novell.com>
24310 * XplatUIX11.cs (DefWndProc): WM_MOUSEWHEEL needs to be passed up
24311 * Control.cs (WndProc): MS always calls the DefWndProc to pass
24314 2006-06-01 Mike Kestner <mkestner@novell.com>
24316 * ListView.cs: revamp the focus management in ListView. It still
24317 causes churn of LostFocus/GotFocus emissions on clicks, but it's
24318 better than not handling focus at all. Will revisit when pdb feels
24319 the general focus handling is solid. Fixes #78526.
24321 2006-06-01 Jackson Harper <jackson@ximian.com>
24323 * TreeView.cs: Set the default border style in the constructor.
24324 - Move painting to use OnPaintInternal instead of capturing
24325 WM_PAINT, this is the correct way of doing things
24326 - UpdateBelow shouldn't invalidate the scrollbar area
24327 - Cap the top on update below in case the node was above the top
24328 of the viewport rectangle.
24329 - ExpandBelow and Collapse below need to obey Begin/End Update.
24330 * TreeNode.cs: Make is_expanded internal so the treenode
24331 collection can change it without firing the whole event chain.
24332 * TreeNodeCollection.cs: When clearing all the child nodes make
24333 sure to recalc the visible order.
24334 - Improve algo for remove the top node
24336 2006-06-01 Peter Dennis Bartok <pbartok@novell.com>
24338 * XplatUIX11.cs (SetFocus): Make sure we can handle re-entrancy due to
24339 SendMessage directly calling window procedures, which in turn might
24342 2006-06-01 Peter Dennis Bartok <pbartok@novell.com>
24344 * Control.cs: Don't handle WM_SETFOCUS if the same window already
24345 has focus (works around X11 sending a FocusIn after our SetFocus)
24346 * XplatUIX11.cs: Send KILLFOCUS before setting SETFOCUS on new window
24348 2006-06-01 Alexander Olk <alex.olk@googlemail.com>
24350 * Mime.cs: Fix for the NET_2_0 build.
24351 NameValueCollection needs StringComparer now.
24353 2006-05-31 Chris Toshok <toshok@ximian.com>
24355 * DataGridDrawingLogic.cs (FromPixelToColumn): modify this to also
24356 return (via an out parameter) the starting X of the column.
24357 (UpdateVisibleColumn): track change to FromPixelToColumn.
24358 (HitTest): add a ColumnResize case here.
24359 (DrawResizeLine): new function, probably poorly named.
24361 * DataGrid.cs (.ctor): get rid of cached_currencymgr_events. We
24362 only need to keep one reference.
24363 (set_ListManager): same.
24364 (OnMouseDown): call HitTest instead of grid_drawing.HitTest.
24365 Also, add support for HitTestType.ColumnResize.
24366 (OnMouseMove): add column resize behavior here, and change the
24367 cursor to the correct one as we move around the datagrid.
24368 (OnMouseUp): terminate the column resize if we're resizing.
24369 (ProcessGridKey): from the MS docs, Alt-0 enters the null value
24370 for the current cell.
24371 (ConnectListManagerEvents): use cached_currencymgr.
24372 (DisconnectListManagerEvents): fill this in, using
24373 cached_currencymgr.
24374 (SetCurrentCell): remove cached_currencymgr_events handling.
24375 (SetDataMember): only call DisconnectListManagerEvents if
24376 cached_currencymgr is != null.
24377 (SetDataSource): same.
24378 (OnListManagerCurrentChanged): cached_currencymgr_events ->
24379 cached_currencymgr.
24381 2006-05-31 Jackson Harper <jackson@ximian.com>
24383 * BindingManagerBase.cs: Remove somedebug code that creeped into
24385 * TreeNode.cs: We get the indent level dynamically right now, so
24386 don't track it as a member.
24387 * TreeNodeCollection.cs: Make sure all nodes added to the list
24388 have parents, treeviews/topnodes setup properly.
24389 - Don't attempt to track indent level.
24391 2006-05-30 Jackson Harper <jackson@ximian.com>
24393 * BindingContext.cs: Create the currency manager tables here.
24394 This allows us to more easily create null tables (when bad data
24395 members are used), and more easily create related currency
24397 * CurrencyManager.cs: All the table creation stuff is done by the
24398 binding context now.
24399 - Current should throw an exception if listposition is -1.
24400 - CancelCurrentEdit/EndCurrentEdit, do nothing if the list hasn't
24403 2006-05-30 Mike Kestner <mkestner@novell.com>
24405 * ListView.cs: allow reexpansion of zero-width column headers.
24408 2006-05-28 Chris Toshok <toshok@ximian.com>
24410 * CurrencyManager.cs (get_Current): after the late binding
24411 listposition = -1 fix, we need to guard against it here and return
24412 null, otherwise we raise an exception (which is swallowed
24413 elsewhere, and breaks datagrid databinding.)
24415 2006-05-26 Peter Dennis Bartok <pbartok@novell.com>
24417 * MenuAPI.cs (ProcessMenuKey): We can legally get msg types other
24418 than WM_SYSKEY, don't throw if get something unexpected (#78507)
24420 2006-05-26 Jackson Harper <jackson@ximian.com>
24423 * ThemeWin32Classic.cs: For color comparisons just use the ARGB
24424 values, it's faster and it's all we care about (we don't care if
24425 the names aren't equal).
24426 * KeyboardLayouts.cs: Eliminate some dead code.
24428 * X11Keyboard.cs: Lazy init keyboard detection.
24429 - Cleanup access modifiers a little.
24431 2006-05-26 Peter Dennis Bartok <pbartok@novell.com>
24433 * XplatUIX11.cs: Once again, attempting to get layout just right.
24435 2006-05-26 Peter Dennis Bartok <pbartok@novell.com>
24437 * LinkLabel.cs (CreateLinkPieces): Use MeasureString to calculate
24438 the sizes of each link section, that will result in sizes that
24439 match DrawString's layout (Fixes #78391)
24441 2006-05-27 Alexander Olk <alex.olk@googlemail.com>
24443 * FileDialog.cs: If AddExtension property is true autocomplete the
24444 extensions in SaveFileDialog correctly. Fixes bug #78453.
24445 Set MyNetwork and MyComputer to "C:\" for windows. This should
24446 fix part 8 of bug #78446 for now.
24448 2006-05-26 Chris Toshok <toshok@ximian.com>
24450 * DataGrid.cs (ColumnStartedEditing): fill these in. for now just
24451 invalidate the current row header if we need to, but presumably
24452 we'll invalidate the row corrsponding to the bounds or
24454 (GridHScrolled): switch back to this method, as it's part of the
24455 public api. *sigh*.
24456 (GridVScrolled): same.
24457 (OnMouseWheel): hack up something that more or less works. Call
24458 GridHScrolled/GridVScrolled directly, instead of duplicating much
24459 of their code here.
24460 (EnsureCellVisibility): reinstate a bunch of this code, since we
24461 can't just set the scrollbar Value and expect to do all the work
24462 in the ValueChanged handler. Also, Call Update() after scrolling
24463 in one direction so the other XplatX11.ScrollWindow call has the
24464 proper stuff in the proper places.
24465 (EditCell): set is_editing to true before calling .Edit.
24467 * DataGridTextBox.cs (set_IsInEditOrNavigateMode): just set it,
24468 don't bother comparing first.
24469 (OnKeyPress): call grid.ColumnStartedEditing before calling
24470 base.OnKeyPress. this will set is_changing and invalidate the row
24471 header if necessary.
24472 (ProcessKeyMessage): for WM_CHAR messages, call
24473 ProcessKeyEventArgs directly. swallow anything other than WM_CHAR
24476 * DataGridBoolColumn.cs (Edit): don't set is_editing to true here.
24477 it's done in the DataGrid.
24478 (NextState): call grid.ColumnStartedEditing, which takes care of
24479 invalidating the row header (and setting is_changing).
24481 * DataGridTextBoxColumn.cs (Edit): don't set is_editing to true
24482 here. it's done in the DataGrid.
24484 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24486 * Control.cs: allow changing the cursor when the mouse position is
24487 out of bounds but Capture is set.
24488 * LinkLabel.cs: handle the case when the mouse button is pressed on the
24489 linklabel but released somewhere else.
24491 2006-05-25 Jackson Harper <jackson@ximian.com>
24493 * TreeView.cs: When we get focus if there is no selected node make
24495 - Remove some uneeded setup code from Draw.
24496 * TreeNodeCollection.cs: If the tree doesn't have a top node when
24497 a new node is inserted make the new node the top.
24499 * Timer.cs: Use Utc time so that no local time zone stuff needs to
24500 be used (should be faster).
24502 2006-05-25 Chris Toshok <toshok@ximian.com>
24504 * DataGrid.cs (EnsureCellVisibility): remove some code to fix a
24505 problem with the last commit.
24507 2006-05-25 Chris Toshok <toshok@ximian.com>
24509 * DataGridTextBoxColumn.cs (ReleaseHostedControl): turns out we do
24510 need the invalidate call here, while scrolling right-to-left via
24511 the left arrow key (i.e. moving the editing cell while scrolling).
24513 * DataGrid.cs (.ctor): remove the initialization of
24514 ctrl_pressed/shift_pressed. We no longer track them using key
24515 up/down handlers, but by using Control.ModifierKeys. Also, switch
24516 to using ValueChanged handlers on the scrollbars instead of
24517 Scrolled event handlers. This simplifies a bunch of the scrolling
24519 (GridHValueChanged): rename from GridHScrolled, and change it to
24520 work with the new event args.
24521 (GridVValueChanged): same.
24522 (OnMouseDown): initialize ctrl_pressed/shift_pressed here.
24523 (OnMouseWheel): actually scroll the datagrid. Don't change the
24525 (ProcessGridKey): correct all the keyboard navigation stuff I
24526 could find. Ctrl up/down/left/right/home/end work now.
24527 (EnsureCellVisibility): correct method name spelling. Also,
24528 simplify this a touch by not explicitly calling the
24529 ScrollToRow/ScrollToColumnInPixels methods. We just set the
24531 (OnKeyUpDG): no need for this method now.
24533 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24535 * LinkLabel.cs: display the OverrideCursor when hovering the label.
24538 2006-05-25 Chris Toshok <toshok@ximian.com>
24540 * ThemeWin32Classic.cs: fix datagrid clipping problems caused by
24543 2006-05-25 Peter Dennis Bartok <pbartok@novell.com>
24545 * Application.cs: Moved setting of is_modal and closing to before
24546 we create the control, to allow the event handlers called as a
24547 result of creation affect closing. Also removed Gonzalo's previous
24548 change to setting DialogResult, the behaviour has been moved to
24551 - ShowDialog(): Removed explicit creation of the form, let RunLoop
24553 - ShowDialog(): If no dialog result is set, we need to return Cancel
24554 - WM_CLOSE: Fire Closing/Closed events, and reset dialog result if
24555 the close is cancelled
24557 2006-05-25 Jackson Harper <jackson@ximian.com>
24559 * StatusBar.cs: We only need to update the sizes of the other
24560 panels when we have auto size contents. Also we are only updating
24561 the contents of the panel, not the borders, so compensate for the
24562 border width (TODO: get this width from the theme somehow).
24563 * TreeView.cs: Scrollable is true by default
24564 - Use invalidate instead of refresh where needed
24565 - Factor the scrollable value into scrollbar updating
24566 - Update the scrollbars if the Scrollable property is altered
24567 - Update the selected node if its ImageIndex is changed
24568 - Handle null nodes in UpdateNode (mainly so we don't have to
24569 check if selected is null when updating it
24570 - Fix VisibleCount to use the ViewportRectangle so that scrollbars
24571 are factored into the visible count
24572 - Use VisibleCount for clarity in the code
24573 - When the font is changed we need to recurse through all the
24574 nodes and invalidate their sizes
24576 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24578 * Application.cs: set the DialogResult to fixed when the main form is
24579 hidden or destroyed while being modal.
24581 2006-05-25 Miguel de Icaza <miguel@novell.com>
24583 * Theme.cs: Use Tangoified messagebox icons.
24585 (GetSizedResourceImage): Also cope with width = 0 and do not
24586 trigger a warning in that case (0 means "give me your icon from
24587 the resouce, no special size needed).
24589 2006-05-25 Peter Dennis Bartok <pbartok@novell.com>
24591 * Application.cs: Leave runloop if the the main modal form is
24592 hidden (fixes #78484)
24594 2006-05-25 Atsushi Enomoto <atsushi@ximian.com>
24596 * BindingContext.cs : reject null datasource in Contains() and
24598 * CurrencyManager.cs : check data_member validity when data_source
24599 is dataset. When it is late binding, the initial position is -1.
24601 2006-05-24 Jackson Harper <jackson@ximian.com>
24603 * TreeNodeCollection.cs: Dont't recalculate the visible order on
24604 inserted nodes that aren't visible. This changes the
24605 max_visible_order which confuses scrollbar settings.
24606 - Use the enumerator to get the prev node instead of duplicating
24608 * TreeView.cs: Use new method for setting scrollbar values
24609 - Don't set the bounds every time the scrollbar is updated
24610 - When updating below the root node use an invalidate instead of a
24611 refresh to prevent the child controls (scrollbars) from being
24612 refreshed. (UpdateBelow still needs to be reworked anyways).
24613 - Reenable SetBottom now that visible orders are set correctly,
24614 added some debug code incase we ever get bad values there again.
24615 - Set the scrollbar max to 2 less then the max value, this
24616 compensates for the max value being one above the node count, and
24617 for scrollbars adding one extra "notch".
24618 - When drawing image nodes if there is an imagelist we draw the
24619 first image in the list if the supplied image index is out of the
24620 image list's bounds.
24622 2006-05-24 Peter Dennis Bartok <pbartok@novell.com>
24624 * XplatUIX11.cs: Don't blindly cache hwnd.ClientRect, reset it when
24625 we receive a size change from the WM (Fixes #78503)
24627 2006-05-24 Peter Dennis Bartok <pbartok@novell.com>
24629 * XplatUIWin32.cs, XplatUIX11.cs: Refresh when setting the Clip
24630 rectangle (Fixes #78501)
24632 2006-05-24 Peter Dennis Bartok <pbartok@novell.com>
24635 - Fixed MouseUp, MouseDown and MouseMove to treat mouseevent.Button
24637 - Fixed MouseMove to no longer switch pressed state unless the left
24638 mouse button is pressed. Atsushi provided the original patch (#78485)
24640 2006-05-24 Jackson Harper <jackson@ximian.com>
24642 * ScrollBar.cs: New internal methods that allow us to change a
24643 couple values on the scrollbar (the most common case is maximum
24644 and large change) without getting multiple invalidates.
24646 2006-05-24 Chris Toshok <toshok@ximian.com>
24648 * DataGridBoolColumn.cs (Abort): revert back to the saved setting.
24649 (Edit): save off the original state in oldState, and set
24650 grid.is_editing to true.
24651 (OnKeyDown): abort editing if escape is pressed. also, call
24652 NextState if space is pressed.
24653 (OnMouseDown): call NextState.
24654 (NextState): factor out shared code from OnKeyDown and OnMouseDown
24655 here. Also, only invalidate the row header once (on the initial
24656 is_changing switch) to save on redraws.
24658 2006-05-24 Chris Toshok <toshok@ximian.com>
24660 * DataGridTextBoxColumn.cs (Commit): only call SetColumnValueAtRow
24661 if the value in the cell is different than it was before. This
24662 keeps us from triggering a layout when we move around a datarid
24663 with a highlighted cell.
24664 (Edit): suspend layout when creating/positining the text box, and
24665 resume passing false so we don't ever actually re-layout.
24666 (ReleaseHostedControl): same.
24667 (EnsureTextBox): reformat slightly, and set WordWrap to false.
24669 * DataGridTextBox.cs (ProcessKeyMessage): it's not true that all
24670 control-key sequences should go to the datagrid - remove that
24671 lock. Also, modify the conditions under which we move between
24672 cells when moving the cursor within a cell, and remove the "this"
24673 and "base" from field accesses. We weren't even consistent, given
24674 they all were in the base class.
24676 2006-05-24 Atsushi Enomoto <atsushi@ximian.com>
24678 * Binding.cs : (.ctor)
24679 An obvious NRE fix for BindingTest.CtorNullTest().
24681 2006-05-23 Chris Toshok <toshok@ximian.com>
24683 * TextBoxBase.cs (get_Text): don't add a trailing newline, add
24684 them between lines. This fixes some quirks editing cells in the
24687 2006-05-23 Jackson Harper <jackson@ximian.com>
24689 * TreeView.cs: Use begin/end update when doing expand/collapse all
24690 so that we don't get flicker on the scrollbar.
24692 2006-05-23 Jackson Harper <jackson@ximian.com>
24694 * TreeNode.cs: Bounds are computed 'on the fly' now. This allows
24695 treenode calculations to be independant of the painting code. To
24696 do this nodes track a visible order which is calculated by the
24698 - Call new methods for expanding/collapsing nodes. These methods
24699 use scrollwindow so we don't have to update everything below the
24701 * TreeView.cs: Refactored drawing and scrolling code. We don't
24702 need to update nodes when drawing anymore or calculate scrollbar
24704 - Added new methods for expanding/collapsing nodes. These methods
24705 use ScrollWindow so as to not have to redraw all the nodes below.
24706 * TreeNodeCollection.cs: Recalc visible order and scrollbars when
24707 we add/remove nodes or sort.
24708 - Handle removing the selected and the top node properly.
24710 2006-05-23 Chris Toshok <toshok@ximian.com>
24712 * DataGridTextBoxColumn.cs (Edit): set grid.is_editing to true.
24713 maybe this should actually happen in the datagrid code?
24714 (EndEdit): no need to invalidate anything, given that
24715 ReleaseHostedControl causes the datagrid to relayout, which
24716 invalidates everything anyway.
24718 * DataGrid.cs (set_CurrentCell): remove duplicate check (it's also
24719 in SetCurrentCell).
24720 (set_SelectionBackColor): call InvalidateSelection instead of
24722 (set_SelectionForeColor): same.
24723 (BeginEdit): Flesh this out a bit.
24724 (CancelEditing): only do any of this if we're editing/adding.
24726 (OnMouseDown): there's no need to cancel editing here, it's done
24728 (SetCurrentCell): only invalidate the current row header if it's a
24729 different row than the new one.
24730 (ShiftSelection): fix this to work like MS does.
24731 (ResetSelection): factor out the invalidation of selected_rows to
24732 InvalidateSelection.
24733 (SetDataSource): cancel any editing that's going on.
24735 * DataGridColumnStyle.cs
24736 (IDataGridColumnStyleEditingNotificationService.ColumnStartedEditing):
24737 call the non-interface version.
24739 * ThemeWin32Classic.cs (DataGridPaintColumsHdrs): intersect the
24740 header rectangle with the clip rectangle so we don't redraw the
24741 entire header for just a small area. Gets rid of the last flicker
24742 when horizontally scrolling.
24743 (DataGridPaintRow): same.
24745 2006-05-23 Mike Kestner <mkestner@novell.com>
24747 * ListViewItem.cs: remove size for line hack from LargeIcon layout.
24748 * ThemeWin32Classic.cs: don't draw line. it's really the top of a
24749 poorly placed checkbox on the MS control. Fixes Alex's unfiled
24750 Critical bug report.
24752 2006-05-23 Peter Dennis Bartok <pbartok@novell.com>
24754 * PictureBox.cs: Fixed broken ControlStyles. Unit test no longer fails,
24755 and this fixes #78493
24757 2006-05-23 Miguel de Icaza <miguel@novell.com>
24759 * Theme.cs (GetSizedResourceImage): Scale images if the proper
24762 * FileDialog.cs: Do not change the background for the side bar as
24763 it wont work nicely with the theme, and also reduces the artifacts
24764 in rendering the icons (which I want to fix too).
24766 * MimeIcon.cs (ResourceImageLoader): Load images from assembly
24767 resources, not resgen resources.
24769 (PlatformDefaultHandler): Pull images using the new API.
24771 2006-05-23 Peter Dennis Bartok <pbartok@novell.com>
24773 * Hwnd.cs (Dispose): Remove any pending exposures. XEventQueue holds
24774 a reference to the hwnd and will not remove it unless there are
24775 no pending exposures (fixes #78341)
24776 * XplatUI.cs: Improved debug
24778 2006-05-23 Atsushi Enomoto <atsushi@ximian.com>
24780 * MenuAPI.cs : don't handle OnClick event when it was not the left
24781 button. Fixed bug #78487.
24783 2006-05-23 Mike Kestner <mkestner@novell.com>
24785 * MenuAPI.cs: fix placement of submenus for multi-row menu bars, and
24786 prefer submenus to the top menu for item lookup, to avoid popping down
24789 2006-05-23 Alexander Olk <alex.olk@googlemail.com>
24791 * ThemeWin32Classic.cs: Rewrote CPCPDrawScrollButton to drop
24792 Graphics.FillRectangle as the visual results are really bad (even
24793 on win). We now draw perfect arrows (and perfect shadows when the
24794 scrollbar is disabled). Simplified CPDrawGrid. CPDrawGrid now uses
24795 Pen.DashPattern to draw the dots of each line.
24797 2006-05-22 Alexander Olk <alex.olk@googlemail.com>
24799 * FileDialog.cs: Update the filename combobox when navigating through
24800 the ListView with the cursor keys. Fixes part 7 of bug #78446.
24802 2006-05-22 Mike Kestner <mkestner@novell.com>
24804 * ListView.cs: raise SelectedIndexChanged on keyboard selection.
24807 2006-05-22 Mike Kestner <mkestner@novell.com>
24809 * ComboBox.cs: Refresh in EndUpdate to pick up all the dropped Paint
24810 requests. Fix a misspelled parameter and a copy paste exception error
24813 2006-05-22 Peter Dennis Bartok <pbartok@novell.com>
24815 * ThemeWin32Classic.cs: Changed DefaultFont emSize from 8.25 to 8
24816 to get the same width/height (5/13) on X11 as the default font has on
24817 win32. This means that our DefaultFont emSize is smaller than the
24818 the MS SWF equivalent (even thought the width/height stays the same)
24820 2006-05-20 Jackson Harper <jackson@ximian.com>
24823 * MdiWindowManager.cs:
24824 * InternalWindowManager.cs: Make sure to use the border width from
24827 2006-05-20 Jordi Mas i Hernandez <jordimash@gmail.com>
24829 * PrintDialog.cs: Implements printer details
24831 2006-05-19 Alexander Olk <alex.olk@googlemail.com>
24833 * FileDialog.cs: Added focus handling for PopupButtonPanel.
24834 Fixes part 1 and 2 of bug #78446
24836 2006-05-19 Peter Dennis Bartok <pbartok@novell.com>
24838 * XplatUIX11.cs (SetWindowPos): Recalculate client area size on resizes
24839 instead of sticking to the first ever calculated value
24841 2006-05-19 Mike Kestner <mkestner@novell.com>
24843 * ComboBox.cs: fix mouse motion selection to use MousePosition and
24844 PointToClient, since Capture is set. Fixes #78344.
24846 2006-05-19 Mike Kestner <mkestner@novell.com>
24848 * ListView.cs: match MS behavior in Details view where items are not
24849 drawn if Columns.Count == 0.
24850 * ThemeWin32Classic.cs: only highlight ListView selection if focused.
24851 Use a separate pen to draw the check, since changing the width affects
24852 the box as well. Fixes #78454.
24854 2006-05-18 Miguel de Icaza <miguel@novell.com>
24856 * ListView.cs: ArgumentOutOfRangeException, single versions of the
24857 exception should throw the name of the invalid argument.
24859 * FileDialog.cs (OnClickOpenSaveButton): Avoid crash in open if
24860 there are no files listed.
24862 2006-05-18 Jackson Harper <jackson@ximian.com>
24864 * ThemeWin32Classic.cs: Don't use endcaps, they mess the drawing
24867 2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
24869 * Control.cs: Brought back our old UpdateZOrder method as a private
24870 function and switched our calls from UpdateZOrder to the new one.
24871 This fixes the Paint.Net canvas disappearing bug.
24873 2006-05-18 Jackson Harper <jackson@ximian.com>
24876 * ThemeWin32Classic.cs:
24877 * InternalWindowManager.cs: Move the drawing into the theme,
24878 expose everything the theme should need from the window manager.
24880 2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
24882 * XplatUIX11.cs (DefWndProc): WM_SETCURSOR: Assign the return value
24883 from the call to NativeWindow to avoid walking up the parent chain
24884 further than needed (speeds up setting cursors and avoids setting
24885 the wrong cursor if a parent has another cursor defined)
24886 * Cursor.cs: When loading an icon as cursor, MS uses the center of
24887 the icon as hotspot, not what's contained as hotspot in the icon
24888 file. This fixes the perceived drawing offset seen with Paint.Net
24890 2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
24893 - Store the calculated rectangle in Hwnd object and use it when
24894 setting the client size
24895 - Force Toolwindows to always be type Dock, to ensure they're on top
24897 2006-05-18 Mike Kestner <mkestner@novell.com>
24899 * ComboBox.cs: first pass at ComboBox rework. Layout is more
24900 consistent with MS positioning. IntegralHeight, ItemHeight, Sizing.
24901 Correctly initialize textcontrol and ListBox on DropDownStyle changes.
24902 Substantial refactoring to remove confusing nested classes. Coding
24903 standard and Get+Set->property refactorings. Shift to index based
24904 highlighting in ComboListBox instead of constantly using IndexOf and
24905 Items[]. Add invalidations on resize for DropDownList to fix ugliness
24906 in FileDialog growth. Draw borders manually since Simple mode needs
24907 to look like two independent controls. Make listbox border
24908 conditional to DropDownStyle. Improved OwnerDraw support.
24910 2006-05-18 Sebastien Pouliot <sebastien@ximian.com>
24912 * PaintEventArgs.cs: For 2.0, check for a null Graphics in the .ctor.
24913 Don't set the disposed graphics to null, so we can throw the "right"
24914 exception if the graphics is reused later (added a flag to avoid
24915 double disposing). Some behaviours are different under 2.0 and are
24916 filled under bug #78448.
24918 2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
24920 * Control.cs: When double-buffering is enabled, we need to reset
24921 our graphics context between paint calls. Otherwise, any
24922 transformations and other alterations on the context will
24923 become cumulative (#77734)
24925 2006-05-18 Mike Kestner <mkestner@novell.com>
24927 * ListView.cs: do focused item selection like MS on clicks.
24928 Rework focus handling for ItemControl so LostFocus invalidates as
24930 * ThemeWin32Classic.cs: only draw focus rectangle for ListViewItems if
24931 the ListView ItemControl has focus.
24933 2006-05-17 Peter Dennis Bartok <pbartok@novell.com>
24935 * XplatUIX11.cs: If client_window ends up being width or height zero
24936 due to border settings, move it off window inside whole_window (#78433)
24938 2006-05-17 Alexander Olk <alex.olk@googlemail.com>
24940 * Mime.cs: Shrink the mime file cache correctly.
24942 2006-05-17 Alexander Olk <alex.olk@googlemail.com>
24944 * ThemeWin32Classic.cs: Readded button focus drawing code. (#78429)
24946 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
24948 * XplatUIX11.cs (AddExpose): More sanity checks
24950 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
24953 - AddExpose: Don't add expose ranges outside the size of our
24955 - Cast opacity values to Int32 to avoid crashes with certain
24957 - Added disabled code paths that protect against illegal cross-
24958 thread painting (Developers.exe)
24960 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
24962 * ProgressBar.cs: Invalidate the control when it's resized
24963 since block size is based on control size. (#78388)
24965 2006-05-16 Miguel de Icaza <miguel@novell.com>
24967 * DataGrid.cs (SetDataBinding): per the discussion on irc, instead
24968 of setting the incoming argument to the "reset" value, we set the
24969 this.datamember to string.empty (before we were invalidating the
24974 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
24976 * Form.cs: Only apply transparency settings after the form
24977 is created. (Fixes #77800)
24979 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
24981 * ApplicationContext.cs: Grab the HandleDestroyed event so
24982 we know when to fire OnMainFormClosed
24984 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
24986 * Application.cs: Introduced sub-class to allow tracking of
24987 threads and centralized triggering of the event mess for
24988 ThreadExit, AppExit, etc.. (#76156)
24990 2006-05-16 Alexander Olk <alex.olk@googlemail.com>
24993 - Do not return a null icon index value for a mime subclass.
24994 Instead try the main mime type class too.
24995 - Seems that some newer distributions don't have a link to some
24996 gnome default icons anymore. So check the default gnome dir too.
24999 2006-05-16 Jackson Harper <jackson@ximian.com>
25001 * MdiClient.cs: Don't paint the parent background image if we have
25002 our own background image.
25004 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
25007 - PerformLayout: Do not shrink space filled by DockStyle.Fill
25008 controls, all filled controls are supposed to overlap (#78080)
25009 - UpdateZOrder is supposed to update the control's z-order in the
25010 parent's z-order chain. Fixed to behave like that
25011 - BringToFront: Removed obsolete code
25012 - SendToBack: Simplyfied
25013 - SetChildIndex: Trigger layout calculations when Z-order changes
25014 since layout is done by z-order
25016 2006-05-16 Chris Toshok <toshok@ximian.com>
25018 [ fixes bug #78410 ]
25019 * DataGrid.cs (set_AlternatingBackColor): use
25020 grid_drawing.InvalidateCells instead of Refresh().
25021 (set_BackColor): call grid_drawing.InvalidateCells.
25022 (set_BackgroundColor): use Invalidate instead of Refresh.
25024 * DataGridDrawingLogic.cs (InvalidateCells): new function, just
25025 invalidate the cell area.
25027 2006-05-15 Chris Toshok <toshok@ximian.com>
25029 [ fixes bug #78011 ]
25030 * ThemeWin32Classic.cs (DataGridPaintRows): pass the clip argument
25031 on to DataGridPaintRow.
25032 (DataGridPaintRow): take a clip argument, and only draw the cells
25033 which intersect it. same with the not_usedarea.
25035 * Theme.cs (DataGridPaintRow) add @clip parameter.
25037 * DataGrid.cs (ScrollToColumnInPixels): simplify, use
25038 XplatUI.ScrollWindow.
25039 (ScrollToRow): same.
25041 * DataGridDrawingLogic.cs (UpdateVisibleColumn): fix corner case
25042 with last column which was causing a gray swath to appear with the
25043 XplatUI.ScrollWindow code.
25045 2006-05-15 Chris Toshok <toshok@ximian.com>
25047 * ListBox.cs (HorizontalScrollEvent): in the non-multicolumn case,
25048 use XplatUI.ScrollWindow.
25049 (VerticalScrollEvent): use XplatUI.ScrollWindow.
25051 2006-05-15 Peter Dennis Bartok <pbartok@novell.com>
25053 * TextBoxBase.cs: Added handling of middle-button paste for X11. (#78375)
25055 2006-05-15 Peter Dennis Bartok <pbartok@novell.com>
25057 * Cursors.cs: For X11, read NWSE and NESW cursors from our resource
25058 file since there are no equivalent X11 cursors
25060 2006-05-15 Atsushi Enomoto <atsushi@ximian.com>
25062 * MonthCalendar.cs : DateTimePicker should reflect selected date
25063 on mouse*up*, not mouse*down*. Fixed originally reported part of
25066 2006-05-15 Atsushi Enomoto <atsushi@ximian.com>
25068 * TabControl.cs : When argument index is equal or more than tab
25069 count, just ignore. Fixed bug #78395.
25071 2006-05-15 Peter Dennis Bartok <pbartok@novell.com>
25073 * Control.cs: Dispose all child controls when control is diposed (#78394)
25075 2006-05-14 Alexander Olk <alex.olk@googlemail.com>
25077 * ColorDialog.cs: Finally it is possible to select the color with
25080 2006-05-14 Alexander Olk <alex.olk@googlemail.com>
25082 * PrintDialog.cs: Fix typo
25084 2006-05-14 Alexander Olk <alex.olk@googlemail.com>
25086 * PrintDialog.cs: PrintDialog is not resizable
25087 * ThemeWin32Classic.cs: Draw non links in LinkLabel with the correct
25088 color. Made some ToolBar drawing methods protected virtual.
25090 2006-05-13 Jordi Mas i Hernandez <jordimash@gmail.com>
25092 * PrintDialog.cs: Implementation of the PrintDialog
25094 2006-05-12 Chris Toshok <toshok@ximian.com>
25096 * ScrollBar.cs (set_Value): don't use Dirty/Invalidate to move the
25097 thumb, instead use MoveThumb. This has the side effect of making
25098 most of the other thumb moving machinery use MoveThumb as well.
25099 (OnHandleCreated): pass false for @dirty to UpdateThumbPos, as we
25100 need to actually invalidate the rectangle where the new thumb will
25102 (MoveThumb): use XplatUI.ScrollWindow to move the thumb around.
25103 We force an Update() after, so it's not as fast as it could be,
25104 but at least there's zero flicker and no droppings.
25105 (OnMouseMoveSB): in the thumb dragging case, use MoveThumb.
25106 (UpdateThumbPos): add another argument (dirty), which says whether
25107 or not to calculate/add dirty regions which we later invalidate.
25108 For cases where we know we're going to use MoveThumb, we pass
25109 false for this. Otherwise, pass true.
25111 2006-05-12 Jackson Harper <jackson@ximian.com>
25113 * ThemeWin32Class.cs: Fixes for alignment and icon rendering in
25116 2006-05-12 Peter Dennis Bartok <pbartok@novell.com>
25118 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new SetClipRegion
25119 and GetClipRegion methods and UserClipWontExposeParent property.
25120 * XplatUIWin32.cs: Implemented SetClipRegion/GetClipRegion methods,
25121 overriding UserClipWontExposeParent property, setting to false, since
25122 Win32 handles the required expose messages to draw our clipped parent
25124 * XplatUIX11.cs: Implemented SetClipRegion and GetClipRegion; updated
25125 PaintEventStart to set the user clip region if set.
25127 - Now internally tracking the Region for the control since we need to
25128 store it if the handle is not yet created and only set it when it
25129 becomes created. Before setting the region forced handle creation
25130 - Added code to draw the parents underneath a user-clipped region
25131 * Hwnd.cs: Added UserClip property
25133 2006-05-12 Chris Toshok <toshok@ximian.com>
25135 * ScrollBar.cs (set_LargeChange): Refresh() -> InvalidateDirty()
25136 (set_Maximum): same.
25137 (set_Minimum): same.
25138 (set_SmallChange): same.
25139 (OnMouseUpSB): remove the call to refresh when releasing the
25140 thumb. We shouldn't need it.
25142 2006-05-12 Miguel de Icaza <miguel@novell.com>
25144 * StatusBar.cs (UpdatePanel): If the panel being refreshes has the
25145 AutoSize set to None, we do not need to relayout everything, we
25146 just need to invalidate the current region.
25148 (Draw): Do not draw the entire ClientArea, just redraw the
25149 clip area being passed.
25151 * MdiClient.cs: Make MdiClient constructor with the Form argument
25154 2006-05-12 Jackson Harper <jackson@ximian.com>
25156 * ThemeWin32Classic.cs (DrawToolBar): Flat toolbars get their
25157 parents background image, but strangely not their own.
25158 - (DrawStatusBarPanel): Take into account horizontal alignment
25159 when drawing the strings and icons.
25161 2006-05-12 Mike Kestner <mkestner@novell.com>
25163 * ListBox.cs: avoid invalidations for focus when the collection is
25166 2006-05-12 Chris Toshok <toshok@ximian.com>
25168 * ScrollBar.cs (OnMouseMoveSB): when dragging the thumb, don't
25169 invalidate the entire thumb area. Call InvalidateDirty which
25170 limits the redraw to the thumb itself and surrounding pixels.
25172 * XplatUIX11.cs (ScrollWindow): optimize copying.
25174 2006-05-12 Chris Toshok <toshok@ximian.com>
25176 * DataGridDrawingLogic.cs: make CalcGridAreas non-reentrant.
25177 Figure out the positioning/layout in a single pass instead of
25178 multiple recursive invocations. Speeds up the initial display of
25179 the data grid. Also, make many things private that were
25180 originally public but unused outside this class.
25182 2006-05-11 Jackson Harper <jackson@ximian.com>
25184 * MdiClient.cs: Improved layout code.
25186 2006-05-11 Jonathan Chambers <jonathan.chambers@ansys.com>
25188 * PropertyGrid.cs : Only check GetPropertiesSupported for properties,
25189 not SelectedObject.
25191 2006-05-11 Chris Toshok <toshok@ximian.com>
25193 * Hwnd.cs (Invalid): don't start off with Rectangle.Empty, as
25194 union of that will always be {0,0,width,height}.
25196 2006-05-11 Jackson Harper <jackson@ximian.com>
25198 * Form.cs: Match MS's DefaultSize for forms (they must have
25199 changed the size in sp2).
25201 2006-05-11 Atsushi Enomoto <atsushi@ximian.com>
25203 * TextBoxBase.cs : implement CTRL+A (select all). Fixed bug #78368.
25205 2006-05-11 Atsushi Enomoto <atsushi@ximian.com>
25207 * TextControl.cs : Fixed bug #78109. This incorrect position
25208 comparison caused crash on automatic line split.
25209 * TextBoxBase.cs : reduce duplicate code.
25211 2006-05-10 Jackson Harper <jackson@ximian.com>
25213 * MdiClient.cs: Active form is only sent to the back when using
25214 the Next form functionality, when a form is clicked the current
25215 active shouldn't be sent to the back.
25216 - Layout the mdi windows when the container is first made visible.
25217 * Form.cs: Give the MdiClient a ref to the containing form when we
25220 2006-05-10 Atsushi Enomoto <atsushi@ximian.com>
25222 * LinkLabel.cs : link_font could be uninitialized, so populate one
25223 before actual use. Fixed bug #78340.
25225 2006-05-10 Atsushi Enomoto <atsushi@ximian.com>
25227 * XplatUIX11.cs : clipboard format native value is IntPtr.
25230 2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
25233 - Instead of showing context menus directly we send WM_CONTEXTMENU,
25234 which is passed up the parent chain by DefWndProc
25235 - We now handle WM_CONTEXTMENU to display any menu, or pass it
25236 to DefWndProc (#77956)
25237 * XplatUIX11.cs: Added handling of WM_CONTEXTMENU (pass up) to DefWndProc
25239 2006-05-10 Jackson Harper <jackson@ximian.com>
25241 * MdiClient.cs: We need to remove the controls from the mdi
25242 collection, when we close the window.
25243 * MdiWindowManager.cs: Special handling of closing mdi windows.
25244 * InternalWindowManager.cs: Make the close method virtual so the
25245 mdi window manager can handle it specially.
25247 2006-05-10 Jordi Mas i Hernandez <jordimash@gmail.com>
25250 - Recalculate grid when the data source has changed
25251 - Matches styles provided by user from all data sources types
25252 * DataGridTableStyle.cs: For columns that provided by the user set the
25253 with the preferred value is there was unassigned.
25254 * CurrencyManager.cs: throw OnItemChanged event
25256 2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
25258 * PictureBox.cs: Don't animate until handle is created. Start animation
25259 when handle is created.
25261 2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
25263 * XplatUIX11.cs, Hwnd.cs: Adopted Mike's patch from #77979 to match
25265 * XEventQueue.cs: We don't need to provide the extra info
25267 2006-05-10 Jackson Harper <jackson@ximian.com>
25269 * MdiClient.cs: If the mdi clients parent form has a background
25270 image set, we draw that background image for the mdi area's
25273 2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
25275 * TextBoxBase.cs: Set IBeam cursor (#78347)
25277 2006-05-10 Mike Kestner <mkestner@novell.com>
25279 * ToolBar.cs: fix some text padding issues with ButtonSize
25280 calculation. Update the default size to match MS documentation.
25281 * ToolBarButton.cs: use ToolBar.ButtonSize for layout of unspecified
25282 button size. Fixes #78296.
25284 2006-05-10 Mike Kestner <mkestner@novell.com>
25286 * ListBox.cs: use is_visible for scrollbar positioning in case the
25287 control isn't on screen yet. Fix off by one with Right vs Width
25288 usage. Update Scrollbars in SetBoundsCore. Fixes #78188 and #78258.
25290 2006-05-10 Jackson Harper <jackson@ximian.com>
25292 * X11Dnd.cs: Drop to a control with another control on top of it.
25293 * ToolBar.cs: Work on a copy of the buttons list, so that it can
25294 be modified in click handlers. TODO: Look for similar problems in
25297 2006-05-09 Jackson Harper <jackson@ximian.com>
25299 * Form.cs: Window managers need the old window state when setting
25301 * InternalWindowManager.cs: Allow the base mdi window manager to
25302 handle more of the MDI only stuff (like maximize buttons).
25303 * MdiWindowManager.cs: Fix some snafus in changing the window
25304 state. Add all the menu functionality, for both popup and
25306 * MdiClient.cs: When a new form is selected the currently
25307 activated form is sent to the back, this matches MS.
25308 - Implement a new method to activate the next mdi child window.
25310 2006-05-08 Peter Dennis Bartok <pbartok@novell.com>
25313 - Added new InternalCapture method to allow controls to prevent
25314 the capture behaviour on the click handlers
25315 - Switched to use InternalCapture
25317 - Using InternalCapture to prevent mouse captures from being released
25318 on mouse button release (Fixes #78100)
25319 * XplatUIX11.cs (DeriveStyles): Now checks caption state and only
25320 returns Form borders if a caption is present. (Fixes #78310)
25322 2006-05-08 Peter Dennis Bartok <pbartok@novell.com>
25324 * TreeNode.cs: Changed serialization .ctor to not require every field
25325 to be present. (#78265)
25326 * OwnerDrawPropertyBag.cs: Added serialization .ctor
25328 2006-05-05 Alexander Olk <alex.olk@googlemail.com>
25330 * MimeIcon.cs: for is faster than foreach for strings.
25332 2006-05-05 Mike Kestner <mkestner@novell.com>
25334 * CheckedListBox.cs: update check handling code to not use selected.
25335 * ListBox.cs: rewrite of mouse selection handling to correspond to MS
25336 behavior for visual feedback, motion response, shift/ctrl handling,
25337 and properly deal with all 4 selection modes. Updates to bounds
25338 handling logic. Add scroll wheel support. [Fixes #77842]
25340 2006-05-05 Peter Dennis Bartok <pbartok@novell.com>
25343 - Moved adding of Implicit controls into .ctor. That way, subsequent
25344 creation of the controls will not cause them to think they are
25345 toplevel windows (fixes #78200 header problem)
25346 - Added 2.0 ShowGroups and UseCompatibleStateImageBehaviour
25347 - Switched visibility setting of header control to use internal field
25348 to avoid triggering handle creation
25349 - Now checking if handle is created before causing a refresh when items
25350 are added (This makes us now match handle creation time with MS)
25351 * Splitter.cs: Removed loading of private splitter cursor, switched to
25352 Cursors version now that that is loading the right ones
25353 * Cursors.cs: Load proper splitter cursors from resources
25354 * Cursor.cs: Added second method of loading resource cursors for the
25355 VS.Net users amongst us
25357 2006-05-05 Mike Kestner <mkestner@novell.com>
25359 * ListView.cs: give header_control a minimum size based on the
25362 2006-05-05 Peter Dennis Bartok <pbartok@novell.com>
25364 * XplatUIX11.cs: WS_EX_TOPMOST requires window to be on top. A dock
25365 window seems to do that with metacity, so set that type. (#78120)
25367 2006-05-05 Mike Kestner <mkestner@novell.com>
25369 * ListViewItem.cs: fix Details mode checkbox layout bug.
25370 * ThemeWin32Classic.cs: draw a ListView column header for unused space
25371 at the end of the header, if it exists. [Fixes for #78200]
25373 2006-05-04 Jackson Harper <jackson@ximian.com>
25375 * MdiClient.cs: Add a helper property to get the container form.
25376 * MdiWindowManager.cs: We have to make sure to use the menu origin
25377 when drawing the icons and buttons, this fixes maximized window
25378 icons/buttons on win32.
25379 * InternalWindowManager.cs: Reset the restore captions when a
25380 window goes from Maximized to Minimized and vice versa. Move the
25381 DrawMaximizedButtons into the MdiWindowManager source, tool
25382 windows can't be maximized. NOTE: This could use a little
25383 refactoring if time ever permits.
25385 2006-05-03 Jonathan Chambers <jonathan.chambers@ansys.com>
25387 * TextBox.cs: Add MWFCategoryAttributes
25388 * TextBoxBase.cs: Add MWFCategoryAttributes
25389 * Form.cs: Add MWFCategoryAttributes
25391 2006-05-03 Jonathan Chambers <jonathan.chambers@ansys.com>
25393 * Control.cs: Add MWFCategoryAttributes
25394 * ScrollableControl.cs: Add MWFCategoryAttributes
25396 2006-05-03 Alexander Olk <alex.olk@googlemail.com>
25398 * ThemeWin32Classic.cs: Draw the ToolBar top border only if
25399 Divider is true. Fix a little glitch in PropertyToolBar
25402 2006-05-02 Peter Dennis Bartok <pbartok@novell.com>
25405 - Dispose: Call base.Dispose, this causes the disposed event
25406 to be fired (and probably other, more important stuff)
25407 - SetVisibleCore: Set is_visible to true after creating the
25408 window so that the window still gets created invisible (if
25409 WM_VISIBLE isn't set). That will cause the ShowWindow afterwards
25410 to generate a WM_ACTIVE message
25411 * Form.cs: Call Dispose when we want to destroy the window, instead of
25412 just destroying the handle (Dispose will do that for us)
25414 - RootWindow also needs a queue, so we can properly process the
25415 property change events from RootWindow (like Activate)
25416 - Generatic synthetic WM_ACTIVE message when the active window is
25419 2006-05-01 Peter Dennis Bartok <pbartok@novell.com>
25421 * LinkLabel.cs: Trigger a recalc of our label dimensions when
25424 2006-05-01 Peter Dennis Bartok <pbartok@novell.com>
25426 * ThemeWin32Classic.cs (ButtonBase_DrawImage): Use the proper image
25427 for determining width and height (image might not be assigned if
25428 we're drawing an imagelist)
25430 2006-05-01 Peter Dennis Bartok <pbartok@novell.com>
25432 * XplatUI.cs, XplatUIDriver.cs: Added MenuHeight property
25433 * XplatUIWin32.cs: Overriding new MenuHeight property, retrieving
25435 * Theme.cs: No longer returns hardcoded menu height, instead calls
25437 * Form.cs (OnLoad): Scaling happens before triggering Load events
25440 2006-05-01 Mike Kestner <mkestner@novell.com>
25442 * MenuItem.cs: fix NRE for text == null. Fixes #78250.
25444 2006-04-30 Peter Dennis Bartok <pbartok@novell.com>
25446 * TextBoxBase.cs: Removed Fixme
25447 * RichTextBox.cs (set_RTF): Invalidate document after update (#78247)
25449 2006-04-30 Peter Dennis Bartok <pbartok@novell.com>
25452 - ScrollWindow: We were passing hwnd.ClientRectangle which returns
25453 the rectangle relative to the parent, considering borders. We
25454 don't really want that.
25455 - ScrollWindow: Fixed warning to be more understandable
25456 * TextBoxBase.cs: Fixed ScrollWindow calculations to consider our
25457 scrollbars and scroll only the visible area
25458 * RichTextBox.cs: Removed debug output
25460 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
25462 * NumericUpDown.cs (Text): Just use base
25463 * UpDownBase.cs: Ensure txtView is created before using it
25465 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
25467 * XplatUIX11.cs (SetWindowTransparency): Casting opacity to int before
25468 casting to IntPtr to avoid 64bit overflow errors
25470 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
25473 - AllowDrop: Don't force handle creation.
25474 - CreateHandle: Added call to tell driver if we're allowed to drop
25476 2006-04-27 Alexander Olk <alex.olk@googlemail.com>
25478 * FileDialog.cs: Remember the last directory not only for the
25479 current instance but also for new FileDialog instances.
25481 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
25483 * XplatUIX11.cs: Forgot to set the queue on the foster parent. That
25484 broke sending async messages
25486 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
25489 - ScrollWindow: Fixed method. We finally generate expose events again
25490 for scrolled areas. This was causing 'garbage' when scrolling
25491 textbox and other controls that used ScrollWindow
25492 - Switched from using the regular queue for paint events to the MS
25493 model of 'generating' paint events when the queue is empty.
25494 We use the new XQueueEvent.Paint subclass to store which windows
25496 - AddExpose now takes the x/y/width/height of the exposed area
25497 and inserts the window into the paint queue if not already there
25498 - InvalidateWholeWindow: Switched to use new AddExpose method
25499 - UpdateMessageQueue: Added which queue to monitor for paint events
25500 - DefWndProc: Added default handler for WM_PAINT and WM_NCPAINT in
25501 the unlikely case nothing above handles it. We reset the expose
25502 pending states to get them off the queue.
25503 - GetMessage: Now pulls a paint event if no other events are in the
25505 - Invalidate: Switched to new AddExpose method
25506 - PeekMessage: Updated to understand pending paint events
25507 - UpdateWindow: Fixed logic bug. We were only updating if the window
25508 didn't need updating. Also switched to sending WM_PAINT directly,
25510 * XEventQueue.cs: Added Paint queue support. Allows enqueue/dequeue
25511 and random access Remove(). The random access is needed to handle
25512 UpdateWindow() where a WM_PAINT is sent directly without accessing
25514 * ScrollBar.cs: Added Update() calls to cause immediate updates to
25515 allow for better feedback when scrolling. Scrollbars are small and
25516 the immediate update should make it 'feel' more responsive without
25517 slowing things down. ScrollBar still needs it's invaliate logic
25518 updated to not always invalidate the whole bar on certain changes.
25520 2006-04-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25523 (BackColor): if the control does not support a transparent background,
25524 return the default backcolor when the parent backcolor is transparent.
25526 2006-04-28 Peter Dennis Bartok <pbartok@novell.com>
25528 * Application.cs: Updated to new StartLoop/GetMessage API
25529 * RichTextBox.cs: Provide some output on RTF parsing errors
25530 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs: Added
25531 new queue_id argument to GetMessage and PeekMessage to allow faster
25532 handling of per-thread queues in drivers.
25533 * Hwnd.cs: Added Queue tracking and property
25534 * MenuAPI.cs: Updated to new StartLoop/GetMessage API
25535 * XEventQueue.cs: Added thread trackingA
25536 * PropertyGridView.cs: Updated to new StartLoop/GetMessage API
25538 - Implemented new per-thread queue
25539 - GetMessage: Fixed return/break behaviour on several cases. We were
25540 returning stale messages in some cases, instead of just processing
25543 2006-04-27 Jonathan Chambers <jonathan.chambers@ansys.com>
25545 * PropertyGrid.cs: Call GetPropertiesSupported on TypeConverter.
25547 2006-04-27 Peter Dennis Bartok <pbartok@novell.com>
25549 * ThemeWin32Classic.cs (DrawToolBar): Refactored, simplified the logic,
25550 fixed off-by-one comparisons between Width/Height and Right/Bottom.
25552 2006-04-27 Jonathan Chambers <jonathan.chambers@ansys.com>
25554 * PropertyGridView.cs: Fix drop down width.
25556 2006-04-27 Alexander Olk <alex.olk@googlemail.com>
25558 * ThemeWin32Classic.cs: Peter thinks that three additional lines are
25559 a mess in DrawToolBar, so I removed one of them.
25561 2006-04-27 Alexander Olk <alex.olk@googlemail.com>
25563 * ThemeWin32Classic.cs: Draw the ToolBar border lines only if
25564 needed (clip). Otherwise we get artifacts.
25566 2006-04-26 Peter Dennis Bartok <pbartok@novell.com>
25568 * FixedSizeTextBox.cs: Added constructor to allow specifying which
25570 * UpDownBase.cs: Set the spinner control to be fixed height vertical,
25571 and switched FixedSizeTextBox to only be fixed vertical (#78116)
25572 * Form.cs: Not applying the 'MS 0.08 fudge factor' for a given dimension
25573 if it matches the scale base font (avoids unneeded scaling)
25575 2006-04-26 Alexander Olk <alex.olk@googlemail.com>
25577 * X11DesktopColors.cs: One gtk_init_check should be enough
25579 2006-04-26 Peter Dennis Bartok <pbartok@novell.com>
25581 * TextBoxBase.cs: Moved Backspace handling into WM_CHAR block to
25584 2006-04-26 Peter Dennis Bartok <pbartok@novell.com>
25587 - Generate OnTextChanged for Backspace even if we're only deleting
25588 the current selection
25589 - When setting the Text property, only select all text if the
25590 control does not have focus when it is being set. Otherwise
25591 just place the cursor at the beginning of the control
25593 2006-04-26 Alexander Olk <alex.olk@googlemail.com>
25595 * ThemeWin32Classic.cs: ToolBars get drawn with two lines at the top.
25596 Added a little helper to draw PropertyGrid ToolBar with a different
25597 border and a different BackColor.
25598 * PropertyGrid.cs: Some background parts didn't get painted with the
25599 correct background color. Added a class that helps us to draw the
25600 correct border for PropertyGridView and a class that helps us to
25601 draw ToolBars with a different backcolor
25602 * PropertyGridView.cs: Draw PlusMinus with the correct colors.
25604 2006-04-25 Jonathan Chambers <jonathan.chambers@ansys.com>
25606 * PropertyGrid.cs: Bug 78196, font size, and splitter location.
25607 * PropertyGridView.cs: Bug 78196, font size, and splitter location.
25609 2006-04-25 Peter Dennis Bartok <pbartok@novell.com>
25611 * XplatUIWin32.cs (DIBtoImage): ORing instead of ANDing the alpha
25612 into the palette entries. Also, since we're working on a copy
25613 we needed to copy the palette back onto the bitmap.
25614 * Cursor.cs: Same fix as XplatUIWin32.cs.
25616 2006-04-25 Peter Dennis Bartok <pbartok@novell.com>
25618 * ImageListStreamer.cs: Need to read the var (or we're off)
25620 2006-04-25 Peter Dennis Bartok <pbartok@novell.com>
25622 * TextControl.cs, ComboBox.cs, CommonDialog.cs, Theme.cs,
25623 XplatUIWin32.cs, RichTextBox.cs, ImageListStreamer.cs,
25624 TextBoxBase.cs: Unused var fixes
25625 * AxHost.cs: Small 2.0 fix
25626 * XplatUIX11.cs: Switched to IntPtr from int for XA_CARDINAL atoms
25627 as it seems that is what at least Metacity expects. This will make
25628 icons show up on 64bit platforms. We still have some 64bit size
25629 issues, though, since the startup app window size still won't match.
25631 2006-04-25 Mike Kestner <mkestner@novell.com>
25633 * *.cs: cleanup newly reported exception var unused warnings.
25635 2006-04-25 Alexander Olk <alex.olk@googlemail.com>
25637 * ThemeWin32Classic.cs: Button image alignment now matches exactly
25640 2006-04-25 Alexander Olk <alex.olk@googlemail.com>
25642 * ThemeWin32Classic.cs: Fixed drawing code for buttons with an
25643 image. The image position is always the same, no matter if the
25644 button is pressed or not.
25646 2006-04-25 Alexander Olk <alex.olk@googlemail.com>
25648 * FileDialog.cs: SaveFileDialog shouldn't rely on a MWFFileView
25649 selection and set the correct filename for SaveFileDialog.
25650 Patch by Emery Conrad.
25652 2006-04-24 Mike Kestner <mkestner@novell.com>
25654 * ListView.cs (LastVisibleIndex): when in List mode of Alignment.Left,
25655 check for item.X outside the ClientRect instead of item.Y. Fixes
25658 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25660 * ImageListStreamer.cs: some images store a wrong grow factor, so don't
25661 trust that value blindly and do some sanity check. Fixes bug #77814.
25663 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25665 * ImageListStreamer.cs: save the mask as a 1bpp image.
25667 2006-04-21 Mike Kestner <mkestner@novell.com>
25669 * CheckedListBox.cs: maintain CheckStatus here. Use DrawItemState to
25670 pass Checked and Indeterminate to the Theme Engine. Improve
25671 encapsulation with ListBox.
25672 * ListBox.cs: Keep a StringFormat instead of calculating it every item
25673 draw. Kill ListBoxItem. Refactor away the ListBoxInfo and ListBoxItem
25674 nested types. Move all CheckState functionality to CheckedListBox.
25675 Make IntegralHeight work like MS. Rewrite of Layout engine. Fix
25676 OwnerDrawVariable layout/rendering. Fix multicolumn rendering. Fix
25677 ScrollAlwaysVisible handling. Refactor "selected" collections to use a
25678 single base list. Fix scrollbar sizing and placement to mirror MS.
25679 * Theme.cs: remove CheckedListBoxCheckRectangle. It wasn't really
25681 * ThemeWin32Classic.cs: implement Indeterminate CheckState rendering
25682 for CheckedListBox by using new DrawItemState info. Center the
25683 checkboxes on the items. Use new StringFormat property.
25685 2006-04-18 Jackson Harper <jackson@ximian.com>
25687 * Form.cs: MdiChildren don't do default locations the same way as
25688 regular forms. This prevents a crash when trying to position the
25691 2006-04-17 Jonathan Chambers <jonathan.chambers@ansys.com>
25693 * PropertyGridTextBox.cs: Formatting, copyright
25694 * PropertiesTab.cs: Formatting
25695 * PropertyGrid.cs: Formatting
25696 * PropertyGridView.cs: Formatting, fix drop down, enabled double
25697 click toggling of values
25699 2006-04-17 Peter Dennis Bartok <pbartok@novell.com>
25701 * KeyPressEventArgs: Added 2.0 only setter for KeyChar
25702 * Control.cs (.ctor): verify_thread_handle is static, don't reset
25703 every time a control is created
25704 * Application.cs: Removed obsolete EnableRTLMirroring method
25706 2006-04-18 Gert Driesen <drieseng@users.sourceforge.net>
25708 * TabControl.cs: Avoid ArgumentOutOfRangeException when setting
25709 SelectedIndex to -1. Fixes bug #78121.
25711 2006-04-17 Jackson Harper <jackson@ximian.com>
25713 * Binding.cs: Handle null values for Current and BindingContext.
25714 This occurs when binding is a little delayed.
25715 * CurrencyManager.cs: return null for Current when there are no
25717 - Hookup to the listchanged event on the DataView and update
25718 bindings when the list is changed. This fixes late binding of
25721 2006-04-17 Jackson Harper <jackson@ximian.com>
25724 * XplatUIX11.cs: Drops should not create a mousedown. Patch by Tim
25727 2006-04-15 Alexander Olk <alex.olk@googlemail.com>
25729 * ThemeWin32Classic.cs: Draw disabled combo button in the correct
25731 * ComboBox.cs: If the combobox is disabled call CPDrawComboButton
25732 with the correct ButtonState
25734 2006-04-14 Peter Dennis Bartok <pbartok@novell.com>
25736 * XplatUIX11.cs: Improved distinguishing between window types to
25737 tell the WM a type closer to what the app wants (Fixes #78107)
25739 2006-04-14 Alexander Olk <alex.olk@googlemail.com>
25741 * ThemeWin32Classic.cs: Fixed drawing of ContainerGrabHandle and
25744 2006-04-14 Alexander Olk <alex.olk@googlemail.com>
25746 * ThemeWin32Classic.cs: Fixed size grip drawing and updated StatusBar
25747 drawing code to reflect the size grip changes
25749 2006-04-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25751 * ImageListStreamer.cs: fix handling of the mask that follows the main
25752 bitmap when deserializing and serialize it properly. The generated mask
25753 should better be a 1bpp image, but I'll do that later.
25755 2006-04-13 Alexander Olk <alex.olk@googlemail.com>
25757 * FileDialog.cs: Show something in the DirComboBox on *nix if the
25758 path doesn't fit into some of our Current.Places
25760 2006-04-13 Jackson Harper <jackson@ximian.com>
25762 * ComboBox.cs: Use borders instead of drawing our own decorations,
25763 try to obey correct rules for heights.
25766 * ThemeClearLooks.cs:
25767 * ThemeWin32Classic.cs: Remove combobox decoration drawing code,
25768 this is now handled by borders.
25769 - Remove unused DrawListBoxDecorationSize method.
25771 2006-04-13 Mike Kestner <mkestner@novell.com>
25773 * MenuAPI.cs: null guarding for the disbled click check fixes crash
25776 2006-04-13 Alexander Olk <alex.olk@googlemail.com>
25778 * ThemeWin32Classic.cs:
25779 - Fixed CPDrawStringDisabled
25780 - Corrected drawing of disabled menu items
25781 - Fixed drawing of disabled radio buttons (bug #78095)
25782 - Draw check in a disabled CheckBox with color ControlDark
25784 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
25786 * Form.cs: Use the provided width when calculating the menu size;
25787 when being maximized we get WM_NCCALCSIZE before WM_WINDOWPOSCHANGED
25788 and ClientSize.Width won't be updated yet
25789 * Application.cs: Use Visible instead of Show() to make form visible,
25790 this way we create the handle later and menusize is considered
25792 2006-04-12 Mike Kestner <mkestner@novell.com>
25794 * MenuAPI.cs: ignore clicks on disabled menu items. Thanks to Alex for
25797 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
25799 * TextBox.cs: Implemented context menu
25801 2006-04-12 Mike Kestner <mkestner@novell.com>
25803 * ListView.cs: implement box selection. fixes #77838.
25804 * ThemeWin32Classic.cs: draw box select rect, remove a ResetClip.
25806 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
25808 * XplatUIX11.cs: Added setting of window type when transient window
25809 is created (metacity would move it otherwise)
25810 * X11Structs.cs: Added WINDOW_TYPE atoms
25811 * LinkLabel.cs: Override OnPaintBackgroundInternal and draw the
25812 background (the control is Opaque but still wants transparent
25815 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
25817 * Control.cs: Added OnPaintBackgroundInternal to allow controls
25818 that set Opaque but don't mean it (like all ButtonBase-derived
25819 controls) to still draw their background
25820 * ButtonBase.cs: Override OnPaintBackgroundInternal and draw
25823 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
25825 * Control.cs (PaintControlBackground): Set the graphics object
25826 on our PaintEvent to null to prevent it from being disposed
25827 when the PaintEvent gets disposed
25829 2006-04-12 Alexander Olk <alex.olk@googlemail.com>
25831 * ThemeWin32Classic.cs: Use even more SystemBrushes and SystemPens
25832 * ThemeNice.cs, ThemeClearlooks.cs: fix typo
25834 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
25837 - Added transparency check to BackColor property. Transparent
25838 backgrounds are only allowed if the control styles permit it
25839 - Added recursive painting of parent control background and
25840 foreground if a control with a transparent backcolor is drawn
25841 (Thanks to Tim Ringenback for providing his 'hack' as a base
25842 for this patch) Fixes #77985 and #78026.
25843 - Added Opaque style check before calling OnPaintBackground, no
25844 need to draw the background if the control is opaque
25845 - Removed ControlAccessibleObject owner variable (inherited from
25846 base, no need to define again)
25847 - Added some documentation links explaining the drawing events
25850 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
25852 * Splitter.cs (CalculateSplitPosition): Corrected the bad assumption
25853 that the affected control is the located at the left border of our
25854 parent (Fixes #77936)
25856 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
25858 * TextBoxBase.cs: When rendering disabled or readonly controls,
25859 draw the background with 'Control' instead of 'Window' color as
25860 long as the user hasn't specifically set a color
25862 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
25864 * TextBoxBase.cs: Don't try to shortcut by checking against base.Text
25865 since that won't be updated if the user types text (only if it's
25866 programatically set)
25868 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
25870 * ScrollableControl.cs: Calculate DisplayRect dynamically, so that
25871 layout changes do to app-triggered resizes will have the proper
25872 display rectangle for layout
25874 2006-04-11 Alexander Olk <alex.olk@googlemail.com>
25876 * ThemeWin32Classic.cs:
25877 - Make use of the SystemBrushes and SystemPens wherever possible
25878 - Corrected some highlight colors
25879 - Corrected RadioButton and CheckBox FlatStyle.Flat and Popup
25881 * Theme.cs: Added Empty field to CPColor struct
25883 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
25885 * ScrollabeControl.cs: We need to consider whether or not a scrollbar
25886 is displayed when calculating the display rectangle. Thanks to Mike
25887 for teaching me the err of my ways.
25889 2006-04-10 Peter Dennis Bartok <pbartok@novell.com>
25891 * ScrollableControl.cs:
25892 - Rewrote DisplayRectangle code, now returning the proper x/y coords
25893 (instead of 0,0) and we now return the real width/height instead of
25894 just the clientrectangle, adjusted for padding. The rectangle is
25895 now cached and created by the new CalculateDisplayRectangle method.
25896 - Created new CalculateDisplayRectange method, which basically does
25897 what get_DisplayRectangle() did originally, but now using the
25898 right edge instead of DisplayRectangle to determine the size of
25900 - get_Canvas(): Fixed it to properly calculate canvas for
25901 right/bottom controls which seem to be placed to the right/bottom
25902 of any controls that have a fixed location
25903 - Removed TODO that's taken care of
25904 - Removed NotImplementeds and attempted to implement AdjustFormScrollBars
25905 and SetDisplayRectLocation according to new MSDN2 docs
25906 - Added call to PerformLayout in OnVisibleChanged, MS causes a layout
25907 event when that is called, this is added for compatibility
25908 - ScrollControlIntoView(): Implemented.
25909 - Switched scrollbars to be implicit, they shouldn't be selectable
25910 * ContainerControl: Now that ScrollControlIntoView is implemented, we
25911 call it when the active control is set/changed
25912 * ScrollBar.cs: Added support for generating Win32 scrollbar messages
25913 * ImplicitHScrollBar.cs, ImplicitVScrollBar.cs: Now setting new base
25914 implicit_control variable (used for native Win32 message generation)
25915 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added new
25916 HorizontalScrollBarHeight and VerticalScrollBarWidth properties
25917 * ThemeWin32Classic.cs: Now calling the driver for the scrollbar sizes
25918 * XplatUIStructs.cs: Added ScrollBarCommands enum
25920 2006-04-10 Jackson Harper <jackson@ximian.com>
25923 * CheckedListBox.cs:
25930 * PrintPreviewControl.cs:
25936 * UpDownBase.cs: Fixup base event overrides.
25938 2006-04-06 Mike Kestner <mkestner@novell.com>
25940 * ScrollBar.cs: fix "new event" declarations (#76509) and bounds check
25941 all user-initiated value changes to min <= value <= max-thumbsz+1.
25942 (set_Value): check for vert/horiz when calculating new thumb position.
25943 (LargeIncrement): bounds check to stop pos at max - thumb_size + 1
25945 (OnMouseMoveSB): refactor the thumb dragging code and refine
25946 invalidation logic to reduce flicker.
25947 (SetEndPosition): bounds check to stop pos at max - thumb_size + 1
25948 (SmallIncrement): bounds check to stop pos at max - thumb_size + 1
25949 (UpdateThumbPosition): small code readability cleanup
25951 2006-04-10 Alexander Olk <alex.olk@googlemail.com>
25953 * ThemeNice.cs: Small UI polishing. Draw borders a little bit
25956 2006-04-08 Alexander Olk <alex.olk@googlemail.com>
25958 * ThemeNice.cs: Use a better graphics effect when a button is pressed
25960 2006-04-08 Alexander Olk <alex.olk@googlemail.com>
25962 * Theme.cs: Added GetDashPen and GetSizedPen to SystemResPool
25963 * ThemeWin32Classic.cs: Make use of the new SystemResPool methods.
25964 This dramatically reduces the number of Pen.Dispose calls.
25965 Where possible call ResPool methods only once instead of calling it
25966 over and over again (for example for the same color).
25968 2006-04-06 Mike Kestner <mkestner@novell.com>
25970 * TabControl.cs: fix for SelectedIndex updating on TabPage removals.
25971 Also remove an unused private field on the collection. Fixes #77972.
25973 2006-04-06 Alexander Olk <alex.olk@googlemail.com>
25975 * ThemeNice.cs: Added ToolBar drawing code
25977 2006-04-06 Mike Kestner <mkestner@novell.com>
25979 * Form.cs (ShowDialog): MS allows IWin32Window param to be a non-form.
25980 I'm assuming that means we need to look up the toplevel for the
25981 provided control. Fixes the crash trace in #77911 but exposes another
25982 crash in some strange reflection usage in NDocGui.
25984 2006-04-06 Alexander Olk <alex.olk@googlemail.com>
25986 * ThemeNice.cs: Gave it a little silver touch and added Images
25988 * FontDialog.cs: FontDialog is not resizable
25989 * FileDialg.cs: Added SizeGripStyle.Show
25991 2006-04-05 Jackson Harper <jackson@ximian.com>
25993 * KeyboardLayouts.cs: Remove warning.
25995 2006-04-05 Jackson Harper <jackson@ximian.com>
25997 * Control.cs: Enable OnPaintInternal so we can use it for drawing
25998 all of our controls instead of Paint +=.
26013 * ComboBox.cs: Remove handling of WM_PAINT and WM_ERASEBKGND and
26014 use OnPaintInternal. Remove Width/Height and Visible checks in
26015 paint handler, this is done at a higher level now.
26016 * GroupBox.cs: Don't need to handle WM_ERASEBKGND anymore.
26017 * PaintEventArgs.cs: Add a handled flag so controls that don't
26018 want anymore painting after OnPaintInternal can make sure OnPaint
26021 2006-04-05 Mike Kestner <mkestner@novell.com>
26023 * Form.cs: fix the menu WndProc hacks to respect the native enabled
26024 state of the form, so that we don't process events when Modal dialogs
26025 are up. Fixes #77922.
26027 2006-04-05 Alexander Olk <alex.olk@googlemail.com>
26029 * Mime.cs: Default for range length is 1 not 0. If set to 0 no match
26032 2006-04-05 Mike Kestner <mkestner@novell.com>
26034 * XplatUIX11.cs: fix typo in the EX_APPWINDOW transient patch.
26036 2006-04-05 Mike Kestner <mkestner@novell.com>
26038 * ListView.cs (HeaderMouseMove): null guarding for the over column
26039 when setting up the drag_to_index. Fixes #78015.
26041 2006-04-04 Peter Dennis Bartok <pbartok@novell.com>
26043 * XplatUIX11.cs: If WS_EX_APPWINDOW isn't set we don't want to show up
26044 in the taskbar. Transient windows seem to accomplish that.
26046 2006-04-04 Peter Dennis Bartok <pbartok@novell.com>
26049 - Re-enabled CreateParams.X/Y code for FormStartPosition
26050 - Added code for manual placement when creating the Control
26051 - Incomplete patch to treat MDI forms differently when
26052 setting the ClientSizeCore. (Still need to figure out handling
26055 - When we're explicitly setting the X/Y position of a non-Child
26056 window, let the WM know. Metacity really wants this.
26058 2006-04-04 Alexander Olk <alex.olk@googlemail.com>
26060 * ThemeNice.cs: Added CPDrawButton
26062 2006-04-04 Alexander Olk <alex.olk@googlemail.com>
26064 * ThemeNice.cs: Changed the color for focused buttons and activated
26065 the arrows for small scroll buttons.
26067 2006-04-04 Alexander Olk <alex.olk@googlemail.com>
26069 * ThemeWin32Classic.cs: Removed DrawFlatStyleButton, not needed
26070 anymore. Changed some method modifiers to protected (virtual)
26071 * ThemeClearlooks.cs: Updated to reflect the ThemeWin32Classic
26073 * ThemeNice.cs: Updated to reflect the ThemeWin32Classic changes.
26074 Updated drawing of menus, buttons and progressbars; added
26077 2006-04-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
26079 * ImageListStreamer.cs: implemented serialization/deserialization
26082 2006-04-03 Alexander Olk <alex.olk@googlemail.com>
26084 * ThemeWin32Classic.cs:
26085 - Removed all the DrawFrameControl stuff; CPDrawButton,
26086 CPDrawCheckBox and CPDrawRadioButton are now handled directly
26088 - Updated and corrected the drawing code of CPDrawButton,
26089 CPDrawCheckBox and CPDrawRadioButton to better match ms
26090 - Updated theme checkbox and radiobutton code to use the CP*
26093 2006-03-31 Peter Dennis Bartok <pbartok@novell.com>
26095 * XplatUIX11.cs: Enable clipping again now that the libgdiplus
26098 2006-03-31 Jackson Harper <jackson@ximian.com>
26100 * XplatUIX11.cs: Somehow we get SETCURSORS for bad windows
26102 * UpDownBase.cs: Don't CreateGraphics manually, use a
26103 Refresh. Ideally we would invalidate the correct areas here.
26105 2006-03-31 Peter Dennis Bartok <pbartok@novell.com>
26108 - We now track the mapping state of windows. If a window (or
26109 one of it's parents) is not mapped we no longer permit
26110 WM_PAINT messages to be generated since we'd otherwise get
26111 lots of BadMatch X errors. Jackson did all the work figuring
26113 - Destroying the caret if the window it's contained in is
26114 destroyed. Can't use regular DestroyCaret method since it
26115 might fall into a drawing function (trying to remove the
26116 caret) and with that generate new BadMatch errors. Again,
26117 Jackson tracked this down.
26118 - Changed DestroyChildWindows to SendWMDestroyMessages, we now
26119 make sure we send the messages to all windows. (The old code
26120 would send the WM_DESTROY to the window, and then all child
26121 windows would be 'gone' because the WM_DESTROY handle lookup
26122 would no longer find the destroyed window)
26123 * Hwnd.cs: Added Mapping property to track mapping state of hwnd
26124 * X11Structs.cs: Added WindowType enum for MapWindow/UnmapWindow
26126 2006-03-31 Jackson Harper <jackson@ximian.com>
26128 * ScrollableControl.cs: Dont recalc if we are not visible.
26130 2006-03-31 Mike Kestner <mkestner@novell.com>
26132 * Control.cs (SetVisibleCore): move the CreateControl call up ahead of
26133 the visibility branch.
26135 2006-03-31 Jackson Harper <jackson@ximian.com>
26137 * ScrollBar.cs: Cap values when incrementing/decrementing.
26139 2006-03-31 Mike Kestner <mkestner@novell.com>
26141 * MenuAPI.cs: setup menu.tracker for popup/context menus.
26142 * ToolTip.cs: guard against timer expirations with no active control.
26143 Not sure why it happened.
26145 2006-03-31 Mike Kestner <mkestner@novell.com>
26147 * ThemeWin32Classic.cs: add some horizontal padding space for the tip
26149 * ToolTip.cs: Position the tooltip based on where the cursor is at
26150 popup time, not at MouseEnter time. Add a Down state so that we don't
26151 redisplay tips without a Leave. Use faked XplatUI.GetCursorInfo for
26152 positioning offset. Lookup DisplaySize at positioning time, since it
26153 can theoretically change during invocation.
26154 * XplatUIWin32.cs: fake GetCursorInfo until pdb can do it properly.
26155 * XplatUIX11.cs: fake GetCursorInfo until pdb can do it properly.
26157 2006-03-31 Alexander Olk <alex.olk@googlemail.com>
26159 * ThemeWin32Classic.cs: Use CPDrawBorder3D to draw a GroupBox.
26160 Fixes behaviour when the Text property of the box is String.Empty
26162 2006-03-31 Peter Dennis Bartok <pbartok@novell.com>
26164 * XplatUIX11.cs: Only send mouseleave for our client windows, not
26165 for the whole window (otherwise we get WM_MOUSE_LEAVE twice for
26168 2006-03-31 Alexander Olk <alex.olk@googlemail.com>
26170 * FileDialog.cs: Visual enhancement for the popup buttons in
26173 2006-03-31 Alexander Olk <alex.olk@googlemail.com>
26175 * ColorDialog.cs, FontDialog.cs: Make use of the updated 3D border
26178 2006-03-30 Alexander Olk <alex.olk@googlemail.com>
26180 * ThemeWin32Classic.cs: Updated MainMenu drawing of selected and
26181 highlighted menu items to match ms
26183 2006-03-30 Peter Dennis Bartok <pbartok@novell.com>
26185 * XplatUIX11.cs: Don't set a clip rectangle unless it's not empty
26187 2006-03-30 Mike Kestner <mkestner@novell.com>
26189 * Menu.cs (SelectedItem): use new MenuItem.Selected prop.
26190 * MenuAPI.cs: use new MenuItem.Selected prop. redraw MainMenu when we
26191 go active to account for HotLight to Selected transition.
26192 * MenuItem.cs: add internal Selected prop. Fill out the Status
26193 property by calculating it from item info. Add HotLight,
26194 NoAccelerator, Checked, Grayed, and Disabled flags where appropriate.
26196 2006-03-30 Mike Kestner <mkestner@novell.com>
26198 * MenuItem.cs: only emit DrawItem and MeasureItem for OwnerDraw.
26200 2006-03-29 Jackson Harper <jackson@ximian.com>
26202 * Form.cs: Implement TODO.
26204 2006-03-29 Peter Dennis Bartok <pbartok@novell.com>
26206 * PrintPreviewDialog.cs: Implemented missing methods and events; still
26207 missing proper dialog setup in the constructor
26209 2006-03-29 Peter Dennis Bartok <pbartok@novell.com>
26211 * ProgressBar.cs: Added 2.0 Style property that apps seem to use
26213 - Implemented CheckForIllegalCrossThreadCalls, removed TODO
26214 - Fixed ResetBindings and removed TODO
26215 - Added check for cross-thread calls to get_Handle()
26216 - Added Marshaller attribute for set_Font to satisfy class status
26217 * FontDialog.cs: Removed TODOs that seemed implemented
26218 * UpDownBase.cs: Removed unneeded TODO and Fixme
26219 * MessageBox.cs: Implemented support for Default button and removed TODO
26220 * FileDialog.cs: Removed obsolete TODO
26221 * DomainUpDown.cs: Removed obsolete TODO
26222 * ButtonBase.cs: Removed obsolete TODO
26223 * XplatUIWin32.cs: Removed obsolete TODO
26225 - Removed obsolete TODO
26226 - Calling CheckAcceptButton when the acceptbutton is changed to allow
26227 internal status updates
26228 - Making sure the active control is selected when the control is created
26229 * CurrencyManager.cs: Removed obsolete TODO
26231 2006-03-29 Mike Kestner <mkestner@novell.com>
26233 * *.cs: fix remaining corcompare issues for 1.1 API with the exception
26234 of PrintPreviewDialog and RichTextBox.
26236 2006-03-29 Alexander Olk <alex.olk@googlemail.com>
26238 * Theme.cs: Added a little helper to SystemResPool to get the Dark,
26239 DarkDark, Light and LightLight colors for a specific color
26240 * ThemeWin32Classic.cs:
26241 - Use Button drawing code to draw RadioButtons and CheckBoxes with
26242 Appearance = Button
26243 - Make use of the new ResPool helper CPColor
26244 - Draw ProgressBar and StatusBar with correct 3D borders
26246 2006-03-29 Alexander Olk <alex.olk@googlemail.com>
26248 * ColorDialog.cs: Return selected color. Fixes bug #77940.
26250 2006-03-28 Mike Kestner <mkestner@novell.com>
26252 * ListView.cs: fix Icon layout to plan for scrollbar widths when
26253 calculating col/row counts.
26255 2006-03-28 Mike Kestner <mkestner@novell.com>
26261 switch to explicit interface method implementation for some methods
26262 corcompare identifies as inconsistent with MS.
26264 2006-03-28 Mike Kestner <mkestner@novell.com>
26268 add a few missing methods from the class status output.
26270 2006-03-28 Alexander Olk <alex.olk@googlemail.com>
26272 * ControlPaint.cs: Fixed ControlPaint.Light method. Results are now
26275 2006-03-28 Mike Kestner <mkestner@novell.com>
26277 * MenuAPI.cs: Deactivate on MainMenu item click. Fixes #77917.
26279 2006-03-27 Mike Kestner <mkestner@novell.com>
26281 * ThemeWin32Classic.cs: Switch flat toolbars to use RaisedInner for
26282 the Hilight state to adapt to Alex's CPDrawBorder3D changes.
26284 2006-03-27 Alexander Olk <alex.olk@googlemail.com>
26286 * ThemeWin32Classic.cs: Rewrote Button drawing code to match ms.
26288 2006-03-25 Alexander Olk <alex.olk@googlemail.com>
26290 * ThemeWin32Classic.cs:
26291 - GroupBox: Inserted a little gap between the text and the lines
26293 - Made the code in CPDrawBorder3D more readable
26294 - Corrected the drawing location of the up and down arrows in
26297 2006-03-25 Alexander Olk <alex.olk@googlemail.com>
26299 * ControlPaint.cs: Corrected line widths in DrawBorder for
26300 ButtonBorderStyle Inset and Outset
26302 2006-03-25 Alexander Olk <alex.olk@googlemail.com>
26304 * ThemeWin32Classic.cs:
26305 - Rewrote the totally broken CPDrawBorder3D method. That was
26306 one of the main problems for the terrific ThemeWin32Classic
26308 - Updated and corrected Button drawing
26309 - Correct the dimensions of the SizeGrip to match ms ones
26310 - Removed a small drawing glitch in DrawComboBoxEditDecorations
26311 * XplatUIX11.cs: Draw borders with BorderStyle = Fixed3D with
26312 Border3DStyle.Sunken to match ms.
26314 2006-03-25 Alexander Olk <alex.olk@googlemail.com>
26316 * ThemeWin32Classic.cs: First small part of the "de-uglify
26317 ThemeWin32Classic" effort, SizeGrip
26319 2006-03-24 Jackson Harper <jackson@ximian.com>
26321 * XplatUIX11.cs: Give a max idle time of one second, this matches
26322 MS and forces an Idle event every second when there are no other
26323 events in the queue.
26325 2006-03-24 Mike Kestner <mkestner@novell.com>
26327 * ListView.cs: Handle (Large|Small)ImageList == null more robustly.
26328 * ListView.Item.cs: fix layout issues with null image lists and images
26329 smaller than checkbox size.
26330 * ThemeWin32Classic.cs: Draw a 12 pixel line in ListView LargeIcon
26331 mode like MS does. It's weird, but consistent. ;-)
26334 2006-03-24 Mike Kestner <mkestner@novell.com>
26336 * ListView.cs: Scroll wheel support for the item control. Fixes
26339 2006-03-23 Jackson Harper <jackson@ximian.com>
26341 * ScrollableControl.cs: Special case negative sized areas, not
26343 * MonthCalendar.cs: Save the rect of the clicked date so we can
26344 use it for invalidation.
26345 - Try to cut down on the number of invalidates
26346 - Invalidate the rect the mouse is over and was over when moving
26347 the mouse, so we get the focus box following the cursor.
26349 2006-03-23 Mike Kestner <mkestner@novell.com>
26351 * ThemeWin32Classic.cs: fix FullRowSelect selection background and
26352 focus rectangle drawing. Fixes #77835.
26354 2006-03-23 Mike Kestner <mkestner@novell.com>
26356 * XplatUIX11.cs: rework the fix for #77828 by changing the order of
26357 the if and else if and reverting back to the original == check on the
26360 2006-03-23 Alexander Olk <alex.olk@googlemail.com>
26362 * FontDialog.cs: Update the example panel if the selected index of
26363 the fontListBox changes.
26365 2006-03-23 Alexander Olk <alex.olk@googlemail.com>
26367 * FileDialog.cs: Make FileDialog remember which directory it was in
26368 last in the same execution.
26370 2006-03-22 Mike Kestner <mkestner@novell.com>
26372 * FileDialog.cs: make the DropDownMenu on the toolbar display
26373 RadioChecks since they are mutually exclusive and that's what MS does.
26375 2006-03-22 Mike Kestner <mkestner@novell.com>
26377 * Theme.cs: add Color param to CPDrawMenuGlyph.
26378 * ThemeWin32Classic.cs: do color specific menu glyph rendering so that
26379 checks and radio marks and arrows are visible on highlighted items.
26380 * ControlPaint.cs: update to use new Theme signature.
26382 2006-03-22 Mike Kestner <mkestner@novell.com>
26384 * MenuAPI.cs: only process Enter and arrow keypresses if the tracker
26385 is active. Fixes #77870.
26387 2006-03-22 Alexander Olk <alex.olk@googlemail.com>
26389 * FileDialog.cs: Corrected TabIndex order and set fileNameComboBox
26390 to be focused/selected after startup
26392 2006-03-22 Alexander Olk <alex.olk@googlemail.com>
26395 - Corrected behaviour of Color, AllowFullOpen, FullOpen,
26396 CustomColors and ShowHelp properties
26397 - Some internal rewrites to get better results when using the
26400 2006-03-22 Mike Kestner <mkestner@novell.com>
26402 * ListView.cs: hook into Peter's new ResetMouseHover capability to fix
26403 HoverSelection. Fixes #77836.
26405 2006-03-22 Mike Kestner <mkestner@novell.com>
26407 * FileDialog.cs: bugfixes for the toolbar. Use PushButtons instead of
26408 ToggleButtons. (De)Sensitize the Back button around a stack count of
26409 1, not 0. Update ButtonSize based on a pixel count of the win32
26410 control. Adjust the toolbar size/location for new button size.
26412 2006-03-22 Jackson Harper <jackson@ximian.com>
26414 * XplatUIX11.cs: Don't handle configurenotifys if PostQuitState is
26416 * ScrollBar.cs: When doing increments and decrements we need to
26417 set the Value property so that ValueChanged gets raised. A
26418 possible optimization here would be to make an internal SetValue
26419 that doesn't invalidate immediately.
26420 * ToolTip.cs: Tooltips get added to their container (when
26421 supplied) so they get disposed when the container is disposed.
26422 - Don't create tooltips for String.Empty. This prevents all these
26423 little 2-3 pixel windows from showing up when running nunit-gui
26424 and driving me mad.
26425 * Form.cs: Don't set topmost when setting the owner if the handles
26426 haven't been created yet. The topmost set will happen when the
26427 handles are created.
26429 2006-03-22 Peter Dennis Bartok <pbartok@novell.com>
26432 - DeriveWindowStyles: Fixed typo in borderstyle generation (#77828)
26433 - SetVisible: Sending WINDOWPOSCHANGED for all controls when made
26434 visible (to allow them to recalculate their sizes)
26436 2006-03-21 Mike Kestner <mkestner@novell.com>
26438 * ThemeWin32Classic.cs: major refactoring of the ToolBar rendering
26439 methods. Removed a ton of redundant code. Still not really happy with
26440 the border rendering, but I think that's mainly because of the
26441 ControlDarkDark being black instead of a dark grey. Depending on how
26442 close we want to be, we might want to revisit those color choices.
26443 Among the new features added during the refactor were DropDownArrow
26444 pressed rendering, Disabled image rendering. Proper flat appearance
26445 boundary rendering. Removed the Divider and Wrapping dividers since I
26446 can't figure out any combination of themes and conditions to make the
26447 MS control draw a horizontal line on a toolbar despite what the
26448 Divider property docs indicate.
26449 * ToolBar.cs: rewrite the layout engine. Fixes numerous flicker
26450 conditions and incorrect layout. Updated to coding standard.
26451 * ToolBarButton.cs: refactored layout and positioning code from
26452 ToolBar to here. Invalidate wherever possible instead of forcing
26453 redraws of the whole toolbar.
26454 (Known remaining issues: explicit ButtonSize smaller than provided
26457 2006-03-21 Mike Kestner <mkestner@novell.com>
26459 * ContextMenu.cs (Show): use the position parameter instead of just
26460 showing at the MousePosition.
26462 2006-03-21 Jackson Harper <jackson@ximian.com>
26464 * TabControl.cs: Remove the call to ProcessKeyEventArgs and let
26465 control handle this.
26466 * TreeNodeCollection.cs: If we are clearing the root node we need
26467 to reset top_node so calcs can still happen.
26468 * ThemeWin32Classic.cs: This is a Flags so we need to check
26471 2006-03-21 Jackson Harper <jackson@ximian.com>
26473 * DataGrid.cs: Create columns when the binding context has been
26475 * X11Structs.cs: Keysyms are uints.
26476 - Add size to fix build.
26478 2006-03-21 Peter Dennis Bartok <pbartok@novell.com>
26480 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
26482 - Added ResetMouseHover method to allow controls to retrigger
26483 hovering if they need it more than once
26484 - Implemented MouseHoverTime and MouseHoverSize properties
26485 * Timer.cs: Start() must reset the interval
26486 * SystemInformation.cs: Added 2.0 MouseHoverTime and MouseHoverSize
26489 2006-03-21 Jackson Harper <jackson@ximian.com>
26491 * X11Keyboard.cs: improved layout detection. Move the nonchar
26492 tables into this file.
26493 * KeyboardLayouts.cs: Move the tables into resource files.
26495 2006-03-21 Mike Kestner <mkestner@novell.com>
26497 * ListView.cs: use OnItemActivated to raise events. Fixes #77834.
26499 2006-03-21 Alexander Olk <alex.olk@googlemail.com>
26501 * Mime.cs: Various speed optimizations. Looking up mime types
26502 is now 2 times faster than before
26504 2006-03-17 Peter Dennis Bartok <pbartok@novell.com>
26506 * CreateParams.cs: Added internal menu field
26508 - Switched call order for UpdateBounds; now we always call
26509 the one that also takes ClientSize, and we're calculating the
26510 client size via driver method in the others. The previous
26511 method of tracking client size by difference wasn't working
26512 for forms where even the starting client size wouldn't match
26513 the overall form size (due to borders) (Part of fix for #77729)
26514 - CreateParams(): Do not use parent.Handle unless the handle is
26515 already created. Causes havoc with Nexxia and throws off our
26516 creation of controls
26518 - Created new PerformNCCalc method to trigger WM_NCCALCSIZE message
26519 - Switched handling of ConfigureNotify over to new PerformNCCalc
26520 method (consolidates code)
26521 - Changed RequestNCRecalc to use new PerformNCCalc method
26522 - Added calls to RequestNCRecalc when menus and borders are changed
26523 to allow app to set NC size. (Part of fix for #77729) This matches
26524 when MS send a WM_NCRECALC on Win32 windows.
26525 - Now sending WM_WINDOWPOSCHANGED when toplevel for is made visible
26526 (Part of fix for #77729). This matches what MS does, they also
26527 send that message when the form is made visible.
26528 - XException.GetMessage: Improved usability of X errors by including
26529 a translation of the window into Hwnd and Control class
26530 - Improved debug info for window creation, reparenting and destruction
26531 - Created helper method WindowIsMapped() [Currently not used]
26532 * XplatUIWin32.cs: Added ToString() debug helper to RECT structure
26534 - CreateParams: Now setting our menu on the new internal menu field
26535 - SetClientSizeCore: Now passing cp.menu instead of ActiveMenu to
26536 avoid calculating the same property twice
26538 - Improved usability of ToString() for debugging purposes
26539 - GetWindowRectangle(): Now uses proper CalcMenuBarSize method to
26540 determine the height of the menu, instead of just the font. This
26541 required to also create a graphics context and to keep a bmp
26542 around (for performance reasons)
26544 2006-03-17 Peter Dennis Bartok <pbartok@novell.com>
26546 * MenuAPI.cs: Added OnMouseUp method
26548 - Now remembering the requested client size, avoids size errors
26549 - WndProc: Now handling WM_xBUTTONUP and passing it to MenuTracker
26550 instead of base if the menu is active. This is required due to
26551 control now capturing and releasing on down/up and it would
26552 prematurely release our menu capture
26554 2006-03-17 Jackson Harper <jackson@ximian.com>
26556 * KeyboardLayouts.cs: Add the czech layouts.
26558 2006-03-16 Jackson Harper <jackson@ximian.com>
26560 * Control.cs: Use the viewport space when sizing not the controls
26561 client size, so things like ScrollableControl that effect the
26562 viewport size (when scrollbars are added) are computed correctly.
26563 * BindingContext.cs: Cleanup to use the DataSourceEntrys instead
26565 - Handle creating BindingManagers for null data sources.
26566 * DataGrid.cs: Bind the cached_currencymgr_events to the real data
26567 source, otherwise when rows are added they are added to the 'fake'
26568 datasource and we will crash when trying to set the position in
26570 - Use Implicit scrollbars on the datagrid so they arent
26573 2006-03-16 Jackson Harper <jackson@ximian.com>
26576 * InternalWindowManager.cs:
26577 * MdiWindowManager.cs:
26578 * X11Keyboard.cs: I really want Mike to love me again (fix
26579 compiler warnings).
26581 2006-03-16 Peter Dennis Bartok <pbartok@novell.com>
26584 - OnMouseDown: Switch to editing mode when clicking on the cell
26585 even if we're clicking on the cell that's currently
26587 - ProcessGridKey: Left/Right now wrap like MS.Net does
26588 - ProcessGridKey: Tab now knows to add a new row when tab is
26589 pressed in the cell of the last column of the
26591 - ProcessGridKey: Enter now adds another row if pressed in the last
26592 row and selectes the new row, same column cell
26593 - ProcessGridKey: Home/End navigate columns, not rows, like
26594 originally implemented
26595 - Broke ProcessKeyPreview code out into an extra Internal method
26596 so it can be called from the edit code
26597 * DataGridTextBox.cs (ProcessKeyMessage):
26598 - Switched to accept Tab keypresses
26599 - Added F2 handling to allow jumping to the end of the edited cell
26600 - Added logic to allow moving caret left/right inside edited cell
26601 and making the edited cell jump when the caret hits cell borders
26602 - Tab and Enter are now passed to the datagrid after being handled
26604 - Removed capture code now that Control handles it
26605 - set_SelectionStart now ensures caret is visible
26607 2006-03-16 Jackson Harper <jackson@ximian.com>
26609 * TrackBar.cs: Debackwards the increment/decrement for handling
26610 mouse clicks on the bar with vertical trackbars.
26611 * ThemeWin32Classic.cs: Draw vertical trackbars with 0 at the
26612 bottom to match MS.
26614 2006-03-16 Mike Kestner <mkestner@novell.com>
26616 * ListView.cs: make shift/ctrl keyboard and mouse selection
26617 consistent with the MS control. Fix a bug in
26618 SelectedListViewItemCollection.Clear that was pissing me off for the
26619 better part of a day because the collection was being altered
26620 underneath us as we walked the list.
26622 2006-03-16 Peter Dennis Bartok <pbartok@novell.com>
26624 * Control.cs: Not sure how we could miss this so long, but it seems
26625 that MS.Net has Capture set all the way from before calling
26626 OnMouseDown through sending the mouse events until after
26627 OnMouseUp. This will fix DataGrid's selection being set to end
26628 at the location of the MouseUp.
26630 2006-03-15 Jackson Harper <jackson@ximian.com>
26632 * BindingContext.cs: Check the binding after its added so that it
26633 can initialize the binding managers and hookup to events.
26634 * Binding.cs: Data members seem to sometimes include rows/cols in
26635 the format Row.Column we now take this into account.
26636 - Hookup to the position changed event so we can update the
26637 control when the position has changed in the data set.
26638 * CurrencyManager.cs: Take into account the row/col naming
26639 convention when creating dataset tables.
26640 * BindingContext.cs: Using a newer better way of storing
26641 datasource/datamember pairs. Hopefully this better matches MS for
26642 looking up binding managers.
26645 2006-03-15 Jackson Harper <jackson@ximian.com>
26647 * BindingContext.cs: The currency manager needs the data member
26648 name, if the member is a data set we use the name to find the
26650 * CurrencyManager.cs: When creating the list prefer an IList over
26652 - Attempt to create a DataTable from a DataSet (TODO: might need
26653 some better error checking here, although MS doesn't seem to have much)
26654 - If we have a DataTable create a view and use it as our list.
26656 2006-03-15 Mike Kestner <mkestner@novell.com>
26658 * ListView.cs: keep a matrix of the icon mode layout to facilitate
26659 keyboard navigation. Support Up/Down/Left/Right selection correctly
26660 for all 4 View modes.
26661 * ListViewItem.cs: add internal row/col fields for icon layouts.
26663 2006-03-15 Jackson Harper <jackson@ximian.com>
26665 * TabControl.cs: Redraw the tabs when we resize so their newly
26666 calculated sizes are drawn on screen.
26667 * X11Keyboard.cs: Begginnings of XIM support. We also now support
26668 composite characters.
26669 * XplatUIX11.cs: Keyboard driver needs to know about focus changes
26670 - filter events so that composite characters can be created
26672 * X11Structs.cs: Add XIMProperties enum.
26674 2006-03-14 Peter Dennis Bartok <pbartok@novell.com>
26676 * Control.cs (BringToFront, SendToBack): Don't use window or handle
26677 unless it's created
26679 2006-03-14 Peter Dennis Bartok <pbartok@novell.com>
26681 * Control.cs (PerformLayout): We don't need to consider visiblity
26682 for anchoring, only for docking. This fixes 'whacky' alignment
26683 in listbox and other controls that use implicit scrollbars after
26684 the previous PerformLayout patch
26685 * ListBox.cs: Switched to use implicit scrollbars
26687 2006-03-14 Mike Kestner <mkestner@novell.com>
26691 - chain up the "new event" overrides to base and use
26692 OnEvent to raise them. Part of fix for bug #76509.
26694 2006-03-14 Alexander Olk <alex.olk@googlemail.com>
26696 * FileDialog.cs: Do not select an item in the parent directory
26699 2006-03-14 Peter Dennis Bartok <pbartok@novell.com>
26701 * Control.cs (PerformLayout): It would seem that we considered
26702 invisible windows for our layout. Not quite the right thing
26703 to do. Now we don't any longer, thereby fixing bug #76889.
26705 2006-03-14 Peter Dennis Bartok <pbartok@novell.com>
26707 * Control.cs (CanFocus): I goofed. A control can have focus
26708 even though it's not selectable. Made it match MS docs.
26710 2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
26712 * ControlPaint.cs (DrawBorder3D): DrawBorder3D does not fill the
26713 center by default (fixes #76895)
26714 * ThemeWin32Classic.cs, ThemeNice.cs, ThemeClearlooks.cs: Replaced
26715 all uses of Border3DSides.All with the explicit ORd together
26716 Left|Right|Top|Bottom because I assume that nobody was aware
26717 that All also implies a center fill. Most places I checked had
26718 a fill right above.
26719 * ProgressBarStyle.cs: Added
26721 2006-03-13 Mike Kestner <mkestner@novell.com>
26723 * ListView.cs: fix breakage in drag shadow header positioning
26724 from Peter's csc compilation fix.
26726 2006-03-13 Mike Kestner <mkestner@novell.com>
26728 * ListView.cs: fix NRE produced by backspacing twice in a focused
26731 2006-03-13 Mike Kestner <mkestner@novell.com>
26733 * ListView.cs: proxy Key(Down|Up) from ItemControl to ListView.
26735 2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
26737 * Hwnd.cs: Added fixed_size field to track windows whose size cannot
26739 * XplatUIX11.cs: Now setting fixed_size on hwnd and if set, re-setting
26740 the allowed size before making programmatic size changes
26742 2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
26744 * XplatUIX11.cs: Don't call XSetWMNormalHints if no flags are
26745 set, metacity is broken and will still use the emty sizes in
26746 the struct. (Fix for #77089)
26748 2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
26750 * XplatUIStructs.cs: Split WindowStyles into WindowStyles and
26751 WindowExStyles and marked both enums as Flags
26752 * Form.cs, ComboBox.cs, ToolTip.cs, Control.cs, PropertyGridView.cs,
26753 NotifyIcon.cs, MenuAPI.cs, XplatUIOSX.cs, MonthCalendar.cs: Updated
26754 to match WindowStyles split
26756 - SetWMStyles: Added cehck to not apply WM attributes to Child windows
26757 - Updated to match WindowStyles split
26759 - Fixed FosterParent creation, was using ExStyle on the Style field
26760 (This should help with Popup focus issues)
26761 - Updated to match WindowStyles split
26763 2006-03-13 Jackson Harper <jackson@ximian.com>
26765 * MdiWindowManager.cs: Use the system menu height. Fixes some
26766 strange sizing issues.
26768 2006-03-12 Peter Dennis Bartok <pbartok@novell.com>
26770 * RichTextBox.cs: Need to scroll to caret after text is inserted (#77672)
26772 - Scroll to caret after inserting text (#77672)
26773 - Make scroll range one pixel higher, fixes off-by-one error (and
26774 makes underlines visible on the last line)
26776 2006-03-12 Peter Dennis Bartok <pbartok@novell.com>
26778 * XplatUIX11.cs: Added call to new Keyboard.ResetKeyState to prevent
26779 the keyboard state from being stuck with keys in 'pressed' state when
26780 focus is switched away via keyboard
26781 * X11Keyboard.cs: Added new ResetKeyState method to allow drivers to
26782 reset the keyboard if no X11 KeyUp events are expected to come
26783 * X11Structs.cs: Switched type of Visible to bool to match driver
26785 2006-03-12 Peter Dennis Bartok <pbartok@novell.com>
26788 - Switched caret to be just 1 pixel wide, matches MS and looks less
26790 - Moved caret display 1 pixel down from the top of the control
26792 - InsertCharAtCharet: Update the selection start if moving the caret
26793 (fixes bug #77696; based on patch suggested by kazuki@panicode.com)
26794 - No longer always creating the caret when the caret methods are
26795 called. Only the actual ShowCaret/HideCaret will do that now
26796 - Only setting caret visible if the owner control has focus
26797 - UpdateView: Added invalidation-shortcut logic for center and right
26798 aligned text. Previously we'd update all according to the left
26799 logic which caused drawing errors. Also fixed height of invalidated
26800 areas, now properly invalidating the whole area (was off-by-one)
26801 - owner_HandleCreated: Always generate the document when the
26802 handle is created; this ensures that
26804 - Fixed situation where caret would disappear under the right
26805 window border, also improved scrolling behaviour on left-
26807 - Fixed right-aligned textboxes to have a border to the
26808 right instead of the caret being under the right border
26810 - Switched from 'nested' to simple visible/not visible tracking
26811 for caret (part of fix for #77671)
26812 - No longer passing through translated FocusIn/FocusOut messages
26813 since we were notifying too often and the wrong windows. Instead
26814 we just notify our focussed window of receiving or loosing focus
26815 * XplatUIWin32.cs: Switched from 'nested' show/hide
26816 counting for caret to simple visible yes/no behaviour (part of
26819 2006-03-11 Alexander Olk <alex.olk@googlemail.com>
26821 * Mime.cs: Remove debug code...
26823 2006-03-11 Alexander Olk <alex.olk@googlemail.com>
26825 * MimeGenerated.cs: Removed
26826 * Mime.cs: Mime now reads the mime data (magic, globs, aliases
26827 and subclasses) from /usr/(local/)share/mime and
26828 $HOME/.local/share/mime.
26830 2006-03-10 Jackson Harper <jackson@ximian.com>
26832 * MdiWindowManager.cs: Recalc the NC area when a window is
26833 maximized/restored so that the menu area is drawn on forms that
26836 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
26838 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
26839 XplatUIX11.cs: Added RequestNCRecalc method to driver to allow
26840 us to force a WM_NCCALCRESIZE message being sent. This is needed
26841 for MDI maximizing.
26843 2006-03-10 Jackson Harper <jackson@ximian.com>
26845 * Form.cs: We need to use the ActiveMenu when calculating menu
26847 - Fix nullref when the window manager hasn't been created yet.
26848 * Control.cs: Fix nullref when we try to bring a control to the
26849 front that has no parent.
26850 * MdiWindowManager.cs: Use the MaximizedMenu for calculating
26852 - Add a dummy item to the maximized menu so it always has the
26853 correct height. Otherwise when there are no menus we don't get our
26857 2006-03-10 Jackson Harper <jackson@ximian.com>
26859 * MenuAPI.cs: Make this available elsewhere. I need it in some MDI
26861 * Form.cs: Make the window_state internal so the window managers
26863 - When an MDI child is maximized let its window manager create the
26864 main menu (so it can add its icon).
26865 - Notify the window managers of state changes
26866 - Let the window manager paint its buttons and handle button
26867 clicks on the menu when it is maximized.
26868 * InternalWindowManager.cs: Move the prev_bounds into the mdi
26869 window manager, since tool windows don't use it, only mdi windows.
26870 - Tell the main form that we don't want it to handle NCPAINT
26871 itself to avoid extra painting.
26872 - Handle clicks on a maximized windows menu.
26873 - Handle window state changes
26874 - Handle minimize/maximize clicks correctly by setting the window state.
26875 * MdiWindowManager.cs: Add an icon menu that (the menu you get
26876 when clicking on the forms icon).
26877 - New method to create a forms maximized menu. This is its normal
26879 - Handle window state changes.
26880 - Handle sizing of maximized windows. Maximized windows are just
26881 drawn bigger then the parent visible area. All controls are still
26882 there, they are just outside the visible area (this matches windows).
26883 * MdiClient.cs: No scrollbars when a child window is maximized.
26884 - Let the children windows figure out how big they should be when
26885 sizing maximized windows.
26886 - Implement a version of ArrangeIconicWindows somewhat similar to
26887 Windows version. There are some little differences, but I don't
26888 think any app will rely on the layout of minimized mdi windows.
26890 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
26892 * Padding.cs: Several fixes to allow compiling with csc 2.0
26894 2006-03-09 Jackson Harper <jackson@ximian.com>
26897 * MenuItem.cs: Cheap hack so we can add items to the list without
26898 the events being raised. This allows adding mdi items during
26899 drawing. TODO: Should probably find a better time to add the items.
26901 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
26903 * ThemeWin32Classic.cs:
26904 - CheckBox_DrawText: Added logic to not wrap if not enough space
26905 is available (Fix for bug #77727)
26906 - RadioButton_DrawText: Added logic not to wrap if not enough
26907 space is available (Fix for bug #77727). Also removed some
26908 duplicate code, DrawString always drawing the regular text
26909 before hitting the if statement.
26911 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
26913 * XplatUIX11.cs: Handle an unmapped window state in SetWindowState
26915 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
26917 * PictureBox.cs: Implemented ISupportInitialize interface (fixes #77726)
26918 * ContainerControl.cs: Partial implementation of some 2.0 scaling
26919 methods. Moved the new 2.0 properties into alphabetical order with
26920 other properties and added MonoTODO tags
26922 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
26924 * AutoScaleMode.cs: Added. Fix build.
26926 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
26928 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
26929 XplatUIOSX.cs: Removed HWnd argument from CalcuateClientRect, not used
26930 and was requiring premature handle creation for calls from above
26931 * Form.cs, Control.cs: Removed handle arguments from calls to
26932 CalculateClientRect()
26934 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
26936 * ListView.cs (HeaderMouseMove): Fix csc compilation.
26937 drag_column.column_rect is MarshalByRef and can't be used that way
26939 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
26941 * AxHost.cs: Added deserialization constructor for
26942 AxHost+State (fixes 77743)
26944 2006-03-09 Mike Kestner <mkestner@novell.com>
26947 - Added column drag reordering for details view.
26948 - fixed behavior when mouse is dragged off column and
26949 AllowColumnReorder is false.
26950 * ColumnHeader.cs: clone the format too in Clone.
26951 * Theme.cs: add DrawListViewHeaderDragDetails method.
26952 * ThemeWin32Classic.cs:
26953 - impl new method for drawing drag column shadows and targets.
26954 - support column offset for details mode in DrawListViewItem.
26956 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
26958 * TextControl.cs: Reset the char_count when the document is cleared
26959 (Fixes bug reported on mono-winforms mailing list)
26961 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
26963 * TextBoxBase.cs: Honor the Handled state of KeyPress events. Instead
26964 of calling base we simply process the key ourselves, since both
26965 DefWindowProc and the handled method would set m.Result.
26968 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
26970 * Form.cs(ScaleCore): No longer calling base.ScaleCore since that
26971 method also moves the window; instead implemented a copy of
26972 Control.ScaleCore (Part of fix for #77456)
26974 - Created new CreateGraphicsInternal method to allow providing
26975 a graphics context when no handle is created without triggering
26976 handle creation. (Part of fix for #77456)
26977 - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
26979 - Switched Constructor to require TextBoxBase instead of Control (to
26980 allow uncast access to CreateGraphicsInternal)
26981 - Safeguarded use of owner.Handle property. No longer accessing it
26982 unless the handle is already created.
26983 - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
26984 - Now triggering a recalc when owning control becomes visible
26985 * TextBox.cs, RichTextBox.cs: Switched to use new internal
26986 TextBoxBase.CreateGraphicsInternal() method to avoid triggering
26987 premature handle creation (Part of fix for #77456)
26989 - We now only destroy our double-buffering buffers when the
26990 control is resized or disposed, but not when visibility
26991 changes. (The code even re-created them twice every time)
26992 - Now requiring a redraw of the buffer on visibility changes
26993 (fixes bug 77654 part 2)
26994 - Not passing OnParentVisibleChanged up unless the control
26996 - CanFocus: Fixed to match MS documentation
26997 - Focus: Fixed to return actual focus state and to check if
26998 setting focus is legal before setting it
27000 2006-03-08 Peter Dennis Bartok <pbartok@novell.com>
27002 * ThemeWin32Classic.cs: TabPages cannot have focus. Determine
27003 when to draw focus rectangle by looking at parent focus and
27004 selected state instead. This fixes TabPages on Linux sometimes
27005 having none or multiple focus rectangles.
27006 * XplatUIX11.cs (SetFocus):
27007 - Don't set the focus if the same window already has focus
27008 - Use SendMessage instead of PostMessage (like it's Win32
27009 equivalent) and send the WM_SETFOCUS before the WM_KILLFOCUS
27010 to match MS behaviour
27011 * TabControl.cs(SelectedIndex): Don't set Focus on TabPage, TabPages
27012 are not selectable.
27014 2006-03-07 Jackson Harper <jackson@ximian.com>
27016 * PictureBox.cs: Revert line I accidently committed last week.
27018 2006-03-07 Peter Dennis Bartok <pbartok@novell.com>
27021 - Added new IsRecreating and ParentIsRecreating properties to
27022 allow testing if RecreateHandle has been called on ourselves
27023 or one of our parents
27024 - WndProc(WM_DESTROY): If our control handle is being recreated
27025 we immediately need to create the handle when receiving the
27026 destroy, that way our child windows find a valid parent handle
27027 when they themselves are being recreated upon WM_DESTROY receipt
27028 (fix for bug #77654 part 1)
27030 - DestroyWindow: WM_DESTROY must be sent to our own window before
27031 notifying any child windows. MS documents that child windows
27032 are still valid when WM_DESTROY is received. (Control now relies on
27034 - Added some fine-grain debug options
27036 2006-03-06 Jackson Harper <jackson@ximian.com>
27038 * MdiClient.cs: Redid scrolling logic a bit to create a virtual
27039 box and base calculations off this.
27040 * MdiChildContext.cs:
27041 * MdiWindowManager.cs: Don't need to ensure scrollbars here
27044 2006-03-06 Peter Dennis Bartok <pbartok@novell.com>
27046 * Splitter.cs: In situations where the affected control is added
27047 to the parent's control list after the splitter, we would not
27048 populate affected. Now we try populating it on mousedown, if
27049 it's not already set, and force it to be re-set whenever our
27052 2006-03-03 Matt Hargett <matt@use.net>
27054 * Control.cs: implement Control.Padding
27055 * Padding.cs: -Padding.All returns -1 when constructing with the
27056 implicit default ctor
27057 -Padding.ToString() matches MS.NET
27058 * ContainerControl.cs: implement
27059 ContainerControl.AutoScaleDimensions
27060 * ListControl.cs: implement ListControl.FormattingEnabled
27061 * TextBox.cs: Implemented TextBox.UseSystemPasswordChar.
27063 * TabPage.cs: Implement UseVisualStyleBackColor.
27064 * PictureBox.cs: Implement PictureBox.InitialImage.
27066 2006-03-03 Mike Kestner <mkestner@novell.com>
27068 * ListView.cs: Refactor into HeaderControl and ItemControl. Fix new
27069 event declarations to proxy to base event.
27070 * ListViewItem.cs: update to use ItemControl.
27071 * Theme.cs: make DrawListViewHeader. s/DrawListView/DrawListViewItems.
27072 * ThemeWin32Classic.cs: update to new ListView theme API and fix
27073 column header label rendering for 0 width columns.
27075 2006-03-03 Peter Dennis Bartok <pbartok@novell.com>
27077 * Control.cs (ControlCollection.SetChildIndex): Avoid using a call
27078 that causes the control to be created. Fixes #77476.
27080 2006-03-02 Jackson Harper <jackson@ximian.com>
27082 * Hwnd.cs: Clear the nc pending when clearing the NC area, not the
27085 2006-03-02 Peter Dennis Bartok <pbartok@novell.com>
27087 * Control.cs: Implemented 2.0 feature where OnClick has MouseEventArgs
27088 passed in for the EventArgs (fixes #77690)
27090 2006-03-01 Jackson Harper <jackson@ximian.com>
27092 * ScrollBar.cs: Refresh afterbeing resized.
27094 2006-02-28 Mike Kestner <mkestner@novell.com>
27096 * MenuAPI.cs: Call PerformPopup internal method to emit Popup.
27097 Clean up a tracker compile warning.
27098 * MenuItem.cs: add internal PerformPopup method.
27101 2006-02-28 Peter Dennis Bartok <pbartok@novell.com>
27103 * TextBoxBase.cs (set_Text): Recalculate the document (causing an
27104 implicit expose) when the text is set to null
27106 2006-02-28 Peter Dennis Bartok <pbartok@novell.com>
27108 * RichTextBox.cs (FlushText): When newline is true, we always
27109 need to split the line, even if no text is on it and we may
27110 never eat newlines. (Fixes #77669)
27112 2006-02-28 Mike Kestner <mkestner@novell.com>
27114 * ListView.cs: Add UpdateSelection internal method. Remove SelectItem
27115 and set Selected instead.
27116 * ListViewItem.cs: Call owner.UpdateSelection to manipulate the
27119 2006-02-28 Peter Dennis Bartok <pbartok@novell.com>
27121 * ComboBox.cs: Allow setting SelectedIndex to -1. Fixes #77665
27123 2006-02-28 Alexander Olk <alex.olk@googlemail.com>
27126 - Got rid of the panel. All controls are now directly added to
27128 - It is now possible to set a font with the Font property
27129 - MinSize and MaxSize property do now what they should
27130 - ShowApply, ShowHelp, ShowColor, ShowEffects likewise
27131 - Searching and selecting a font with the font textbox works now,
27132 the same applies to the style and size textbox
27133 - Draw the correct 3D border in the example panel
27134 - Fixed a little mem leak (unused fonts didn't get disposed)
27135 - Many other internal updates/rewrites...
27138 2006-02-27 Peter Dennis Bartok <pbartok@novell.com>
27141 - InsertRTFFromStream: Added 'number of characters inserted' argument
27142 - set_SelectedRTF: Now using the number of characters to calculate
27143 the new location for the selection and cursor (x/y cannot be used
27144 due to potentially already wrapped text)
27146 2006-02-27 Peter Dennis Bartok <pbartok@novell.com>
27148 * TextControl.cs: Added property and implemented means to allow
27149 disabling recalculation of a document (can be used to speed up
27150 multiple inserts and is needed to make RTF inserts predictable, see
27152 * RichTextBox.cs: Using the new NoRecalc property of Document to
27153 keep x/y insert locations predictable. Also makes it faster inserting
27154 large chunks of RTF
27156 2006-02-27 Peter Dennis Bartok <pbartok@novell.com>
27158 * Control.cs: Separated special WM_SYSKEYUP keyboard handling. That way
27159 it's easier for a child control to handle the other messages without
27160 having to duplicate the special functionality
27162 - WndProc: Removed calling base handler for WM_KEYDOWN and added
27163 code to handle processing the key ourselves, in order to get
27164 access to the result of KeyEventArgs.Handled. We now only call
27165 ProcessKey if they key hasn't been handled already. Fixes #77526.
27166 - set_Text: If null or empty string is given, just clear the
27167 document. Fixes part of #77526
27169 2006-02-27 Jackson Harper <jackson@ximian.com>
27171 * SizeGrip.cs: Paint the background color before painting the grip
27172 so things look right.
27173 * MdiClient.cs: Add the sizegrip when both scrollbars are used.
27175 2006-02-27 Mike Kestner <mkestner@novell.com>
27178 - Restructure layout and invalidation model to remove a ton of
27179 flicker from the control and speed up performance in general.
27180 - Add manual column resize, flickers like crazy, but I already have
27181 some ideas on how I'll fix that. (#76822)
27182 - Merge the three Icon-based views into a single layout method.
27183 - Move item selection interaction logic from the item since
27184 interaction with the collections is more appropriate to the view.
27185 - Deselection on non-item clicks.
27187 - Encapsulate most of the layout. Add some internal props to trigger
27188 layout. Move to a model where Items invalidate themselves instead
27189 of just invalidating the whole control every time something changes.
27190 - Invalidate on Text/Caption changes.
27191 - switch to an offset based layout model to avoid having to absolute
27192 position every element on item moves.
27193 - correct checkbox layout to conform to MS layout.
27194 * ThemeWin32Classic.cs:
27195 - refactor some column header drawing code.
27196 - fix string justification for column headers (#76821)
27197 - make SmallIcon labels top justified for compat with MS impl.
27198 * ThemeClearlooks.cs:
27199 - adjust to new ListViewItem internal checkbox bounds api.
27201 2006-02-27 Jackson Harper <jackson@ximian.com>
27203 * Control.cs: Change where implicit controls fall in the zorder.
27204 They are now on top of all children.
27205 - Synced AddImplicit code with Add
27206 - Removed unused enumerator.
27207 * SizeGrip.cs: Remove the TODO as its been TODONE.
27209 2006-02-26 Peter Dennis Bartok <pbartok@novell.com>
27211 * TextControl.cs(Insert): Combine the last lines unless the insertion
27212 string ends with \n\n, otherwise we leave one line too many (Fixes
27213 something I noticed with the testapp for #77526; the bug itself was
27214 already fixed in the previous checkin)
27216 2006-02-26 Peter Dennis Bartok <pbartok@novell.com>
27219 - SelectionColor and SelectionFont methods no longer set absolute
27220 styles. Instead, the keep font or color respectively (This
27221 resolves a long-standing FIXME in the code)
27222 - When flushing RTF text, the insert code now considers text trailing
27223 behind the insertion point (Fixes the bug where when replacing
27224 the selected text via SelectedRTF the remainder of the line behind
27225 the selection would stay on the first insertion line)
27227 - AppendText now updates the selection points after inserting text
27228 - AppendText now ensures that the last tag (sometimes 0-length) of
27229 the document is used for the style information (Fixes part of
27232 - Created new FontDefiniton class to allow describing partial style
27234 - StreamLine() now takes a lines argument, to allow it to decide
27235 whether an encountered zero-length tag is the last in the document
27236 (which must be kept to not loose the font/color contained in it,
27238 - Created Combine() and Split() methods for Marker structs, to
27239 support marker updates due to reformatted documents (soft line
27241 - Implemented Document.CaretTag setter
27242 - Fixed MoveCaret(CtrlEnd) handling, now moves to the last character
27243 of the last line (Not the cause, but also exposed by bug #77220)
27244 - Added LineTag argument to InsertString method, to allow callers
27245 to force a certain tag to be used (required to force use of the
27246 trailing zero-length tag of a document)
27247 - Now updating markers in Combine(), to avoid stale tag markers
27248 - Added some method descriptions to aid maintenance
27249 - Implemented new FormatText concept, allowing additive/subtractive
27250 formatting by only specifying the components that are to be
27251 changed. This was needed for resolving the RTB.SelectedColor/
27252 RTB.SelectedFont fixmes
27253 - Added Break() support method to allow breaking up linetags (used
27254 for partial formatting)
27255 - Added GenerateTextFormat() method. It is used for partial
27256 formatting and allows to generate a full font/color from given
27257 attributes and an existing tag.
27259 2006-02-26 Jackson Harper <jackson@ximian.com>
27261 * XplatUIX11.cs: Use the correct caption height.
27262 - Translate hittest coordinates to screen coords to match MS.
27263 * XplatUIWin32.cs: When we create MDI windows we need to reset
27264 some of the style flags, so we get a nice blank window, and can
27265 draw all the decorations ourselves.
27266 - Set a clipping rectangle on the non client paint event, the
27267 window manager drawing code needs one.
27268 * Form.cs: The window manager needs to know when the window state
27270 * Hwnd.cs: The window manager stuff now does a proper NCCALC so we
27271 don't need to factor in border and title sizes in these
27272 methods. TODO: Remove the args and fix the call points.
27273 * InternalWindowManager.cs: Handle NCHITTEST and NCCALCAREA
27275 - Let the driver set the cursors.
27276 - Improve active window handling
27277 - Correct sizes for title bars and buttons.
27278 - Match MS drawing better
27279 * MdiWindowManager.cs: We don't need to handle border style
27280 updates specially anymore.
27281 - Check for scrollbars when windows are done moving
27282 - Handle Active properly.
27283 * MimeIcon.cs: Don't crash when we can't load the GNOME stuff
27284 correctly. I am spewing the exception though, so we don't hide the
27287 2006-02-26 Pedro Martinez Julia <pedromj@gmail.com>
27289 * DataGridViewRowPostPaintEventArgs.cs,
27290 DataGridViewCellPaintingEventArgs.cs,
27291 DataGridViewRowCollection.cs,
27292 DataGridViewRowPrePaintEventArgs.cs,
27293 DataGridViewCell.cs: Clear a few warnings and implement a few
27294 exceptions that should be thrown.
27296 2006-02-22 Peter Dennis Bartok <pbartok@novell.com>
27298 * ScrollBar.cs (ctor): Explicitly set a cursor to avoid
27299 'inheriting' our parent's (non-default) cursor. (Part of
27300 the fix for #77479)
27302 2006-02-22 Peter Dennis Bartok <pbartok@novell.com>
27304 * XplatUIX11.cs: Fixed cast to make csc happy
27306 2006-02-22 Peter Dennis Bartok <pbartok@novell.com>
27308 * Control.cs (WndProc): Only handle WM_SETCURSOR messages if
27309 it's for the client area (part of fix for #77479 and needed
27310 for MDI window cursor handling)
27312 - DefWindowProc: Now handles the WM_SETCURSOR messages, setting
27313 the appropriate default cursors and also passing the message
27314 up the parent chain
27315 - GetMessage: Now generating WM_NCHITTEST and WM_SETCURSOR even
27316 for non-client areas
27318 2006-02-15 Jackson Harper <jackson@ximian.com>
27320 * XplatUIWin32.cs: Since we fake MDI dont tell Windows that this
27321 is a real MDI window
27323 2006-02-14 Alexander Olk <alex.olk@googlemail.com>
27325 * X11DesktopColors.cs: Instead of checking the desktop session
27326 string for "KDE" check if it starts with "KDE"
27328 2006-02-10 Jackson Harper <jackson@ximian.com>
27330 * XplatUIX11.cs: These should be unsigned (fixes crash on 32 bit
27333 2006-02-10 Alexander Olk <alex.olk@googlemail.com>
27335 * FileDialog.cs: Added Refresh to RunDialog to fix some drawing
27338 - Got rid of the panel. All controls are now directly added to
27340 - Changed to mono coding style
27342 2006-02-10 Jackson Harper <jackson@ximian.com>
27344 * InternalWindowManager.cs: We don't need the set visibility to
27345 false hack anymore now that peter has written beautiful shutdown
27348 2006-02-10 Peter Dennis Bartok <pbartok@novell.com>
27350 * XplatUIX11.cs: Ignore DestroyNotify messages for windows that
27351 where already explicitly destroyed
27353 2006-02-10 Jackson Harper <jackson@ximian.com>
27355 * MdiClient.cs: Handle the case where windows are too high or to
27356 the left and we need scrollbars.
27358 2006-02-10 Alexander Olk <alex.olk@googlemail.com>
27360 * MimeIcon.cs: Added some icons
27363 - Got rid of the panel. All controls are now directly added to
27365 - Changed to mono coding style
27366 - On Linux "My Computer" and "My Network" will now show some
27367 more usefull information. A new class, MasterMount, gathers
27368 this information from /proc/mount. Updated MWFFileView to make
27369 use of this information
27370 - Fixed a bug that caused FileDialog to crash when
27371 ".recently_used" file had a zero size
27372 - FilterIndex does now what it should
27374 * OpenFileDialog.cs, SaveFileDialog.cs: Updated to reflect latest
27377 2006-02-09 Jackson Harper <jackson@ximian.com>
27379 * ComboBox.cs: Don't touch if null.
27381 2006-02-09 Peter Dennis Bartok <pbartok@novell.com>
27383 * Cursor.cs: 64bit safeness fix
27384 * XplatUIX11.cs: Removed several unneeded and one moronic cast.
27386 2006-02-09 Jackson Harper <jackson@ximian.com>
27388 * Form.cs: If a form is made into an MDI form update the styles so
27389 all the props can get set correctly.
27390 - Kill the mdi_container when we dont need it anymore.
27391 * InternalWindowManager.cs: Add missing NOT
27393 2006-02-08 Jackson Harper <jackson@ximian.com>
27395 * InternalWindowManager.cs: Respek clipping when drawing MDi
27398 2006-02-08 Jackson Harper <jackson@ximian.com>
27400 * Hwnd.cs: Add bits to track non client expose events.
27401 * XplatUIX11.cs: Track non client expose events on the hwnd. This
27402 gives us a proper invalid rect and will allow for some nice
27403 optimizations with NC client drawing
27404 - MDI windows are children windows, so move their style handling
27405 into the child window block.
27406 * InternalWindowManager.cs: Remove a state reset that was
27407 getting invoked at the wrong time. Fixes managed windows getting
27408 into a 'stuck' captured state.
27410 2006-02-07 Peter Dennis Bartok <pbartok@novell.com>
27412 * TextControl.cs (Document.ctor): Now initializing
27413 selection_anchor. Fixes #77493
27415 2006-02-07 Jackson Harper <jackson@ximian.com>
27417 * TrackBar.cs: The increment/decrements were backwards.
27419 2006-02-07 Mike Kestner <mkestner@novell.com>
27421 * Theme*.cs : remove ThemeEngine.Current usage as it just points back
27422 to the instance itself.
27424 2006-02-07 Peter Dennis Bartok <pbartok@novell.com>
27426 * X11DesktopColors.cs, ThemeGtk.cs: The GObject structure is based
27427 on ulongs and pointers, the size differs between 32bit and 64bit
27430 2006-02-07 Mike Kestner <mkestner@novell.com>
27432 * XplatUIX11.cs : force the WorkingArea away from XGetWindowProperty
27433 for 64 bit platforms to work around a metacity bug.
27435 2006-02-07 Jackson Harper <jackson@ximian.com>
27437 * TrackBar.cs: Process the input keys we need, and hookup to
27438 KeyDown instead of using WndProc, so we get key messages.
27440 2006-02-06 Peter Dennis Bartok <pbartok@novell.com>
27442 * XplatUIX11.cs: Atoms are only 32bit on the wire, no matter what
27444 * X11Dnd.cs(SetAllowDrop): Since atoms are always 32bit on the wire
27445 we need to translate the XdndVersion atoms array before sending it
27447 2006-02-06 Peter Dennis Bartok <pbartok@novell.com>
27450 - The preceeding 64bit fixes had a bug: ChangeProperty expects the
27451 number of bits for the property, not the number of bytes. The
27452 change to provide IntPtr.Size broke 32bit. (64bit was also wrong
27453 but would not crash since it specified 8 bits instead of 4 bits)
27454 - More 64bit fixes: Switched all atoms from int to IntPtr (they are
27455 defined as XID -> long in the C headers)
27456 - Removed 'new IntPtr((int))' and '(IntPtr)' casts from all NetAtoms
27457 references since those are now IntPtr to begin with
27458 - Switched all Atom.XXX 'int' casts to IntPtr casts
27459 - Fixed XGrabPointer DllImport signature to work for 64bit (cursor arg)
27460 - Fixed XInternAtom signature for 64bit, now returns an IntPtr
27461 - Added XChangeActivePointerGrab DllImport (for X11DnD)
27463 - Changed 'int' type for Atoms in XEvent structures to IntPtr
27464 - Changed atom in HoverStruct to be IntPtr
27466 - Removed local DllImports, switched code to use those from XplatUIX11
27467 - Removed/fixed casts related to the switch of Atom to be a IntPtr
27469 2006-02-06 Mike Kestner <mkestner@novell.com>
27471 * XplatUIX11.cs : many more 64 bit pinvoke changes. I've audited all the
27472 method signatures in the import region. There may still be some
27473 lingering struct marshaling issues, as I didn't drill down into those.
27476 2006-02-06 Jackson Harper <jackson@ximian.com>
27478 * ComboBox.cs: Dont manually set the top_item, this is computed
27479 when the scrollbar position is set.
27481 2006-02-06 Mike Kestner <mkestner@novell.com>
27483 * XplatUIX11.cs : 64 bit changes to XGetWindowProperty usage. Fixes
27484 startup crashes on amd64. There's other fixes needed. All pinvoke
27485 usage of Atom needs to be mapped to IntPtr for example. And there are
27486 likely other int/long issues to be addressed.
27488 2006-02-04 Alexander Olk <alex.olk@googlemail.com>
27490 * FileDialog.cs: One more...
27492 2006-02-03 Alexander Olk <alex.olk@googlemail.com>
27494 * FileDialog.cs: Next try
27496 2006-02-03 Alexander Olk <alex.olk@googlemail.com>
27498 * FileDialog.cs: First part of fix for #77464
27500 2006-02-03 Alexander Olk <alex.olk@googlemail.com>
27502 * ButtonBase.cs, ContainerControl.cs, Forms.cs,
27503 ThemeWin32Classic.cs: Fix for #77458. Correct handling of
27504 AcceptButton border drawing.
27506 2006-02-03 Peter Dennis Bartok <pbartok@novell.com>
27508 * Form.cs: Moved positioning of form after auto scaling is applied,
27509 otherwise it would possibly use wrong form size.
27511 2006-02-03 Peter Dennis Bartok <pbartok@novell.com>
27513 * Control.cs (RecreateHandle): No need to re-create any child
27514 controls, the child windows will get destroyed automatically by
27515 the windowing system or driver, and re-created when the handle
27516 is being accessed the first time. Fixes #77456
27517 * Form.cs: No longer setting the form to closing if the handle is
27518 being recreated. This seems like the right thing to do, don't
27519 have a bug or testcase for this, though.
27521 2006-02-02 Peter Dennis Bartok <pbartok@novell.com>
27523 * FileDialog.cs: Suspend/Resume layouting when changing sizes of
27524 controls to avoid unwanted side effects
27526 2006-02-02 Peter Dennis Bartok <pbartok@novell.com>
27529 - ScaleCore needs to scale the bounds, not the ClientSize of the
27530 control. Fixes #77416.
27531 - DefaultSize is 0,0 for control
27533 - DefaultSize is 100, 20
27534 - SetBoundsCore: Now enforcing the height, no matter if the provided
27535 height is more or less than the preferred one, as long as AutoSize
27537 * Form.cs: Apply documented fudge factor. Part of item 3 fix for #77416
27539 2006-02-02 Peter Dennis Bartok <pbartok@novell.com>
27542 - ResumeLayout: Fixed logic when to call PerformLayout, we may not
27543 call unless both performLayout is true *and* we have a pending
27545 - ResumeLayout: MS does not completely nest Suspend and Resume,
27546 they bottom out at 0, fixed our code to match that.
27547 - UpdateBounds/SetBoundsCore: Moved calling of UpdateDistances() to
27548 SetBoundsCore, we were updating even when we shouldn't. This fixes
27549 swf-anchors mis-anchoring when resizing the app fast and lots.
27550 - UpdateDistances: Now only setting the left and top distance if
27551 we have a parent and are not suspended, this is based on
27552 a suggestion by Don Edvaldson in bug #77355.
27553 - OnVisibleChanged: Fixed logic when to create the control. We may
27554 not create the control if we have no parent or if it's not visible;
27555 switched to using Visible property instead of is_visible field
27556 since the property also considers parent states. This fixes a bug
27557 when starting Paint.Net
27559 2006-02-02 Jackson Harper <jackson@ximian.com>
27561 * Form.cs: If the forms handle hasn't been created yet don't call
27562 into xplatui to make it top most, just set the topmost flag on the
27563 form in CreateParams
27564 * XplatUIX11.cs: Handle WS_EX_TOPMOST.
27566 2006-02-01 Jackson Harper <jackson@ximian.com>
27568 * ScrollableControl.cs: Refactored the Recalculate method a
27569 little, this wasn't handling all the variants of bottom and right
27570 bars needed to be added and added/removed based on their
27571 counterparts being added/removed (which changes the drawable
27572 size). Also we special case client widths and heights of 0 and
27573 don't add the scrollbar for those.
27575 2006-02-01 Peter Dennis Bartok <pbartok@novell.com>
27578 - Added method to get AbsoluteGeometry(); currently unused, but might
27579 be used in the future, if we try again to figure out toplevel
27580 coordinates with some more crappy window managers
27581 - Added FrameExtents() method to retrieve the WM set decoration size
27582 - Tried to fix up AddConfigureNotify and handling of ReparentNotify
27583 to deal with at least KDE, FVWM and metacity (Fixes #77092)
27585 - Added whacky_wm tracking var for metacity
27586 - Added logic to have default menu height if the actual menu height
27587 has not yet been calculated (part of fix for #77426)
27588 * Form.cs: Keep track whether client size has been set and re-set
27589 it if a menu is added/removed afterwards (Fixes #77426)
27591 2006-01-31 Jackson Harper <jackson@ximian.com>
27593 * Control.cs: When a new Site is set on the component attempt to
27594 pull the AmbientProperties from it.
27596 2006-01-31 Peter Dennis Bartok <pbartok@novell.com>
27598 * ThemeWin32Classic.cs: Menu background is drawn in ColorMenu, not
27599 in the background of the owning form. Fixes #77332
27601 2006-01-31 Alexander Olk <alex.olk@googlemail.com>
27603 * MimeIcon.cs: Fix for #77409
27605 2006-01-31 Alexander Olk <alex.olk@googlemail.com>
27607 * XplatUIX11GTK.cs: Initial import
27609 2006-01-31 Jordi Mas i Hernandez <jordimash@gmail.com>
27611 * FixedSizeTextBox: fixes class signature
27613 2006-01-30 Jackson Harper <jackson@ximian.com>
27615 * FixedSizeTextBox.cs: New internal class that represents a
27616 textBox that will not be scaled.
27619 * UpDownBase.cs: Use the new FixedSizeTextBox instead of a
27622 2006-01-30 Peter Dennis Bartok <pbartok@novell.com>
27624 * XplatUIX11.cs: Retrieve default screen number instead of
27625 assuming 0. Attempted fix for #77318
27627 2006-01-30 Peter Dennis Bartok <pbartok@novell.com>
27630 - GetWindowPos: When a window is parented by FosterParent, use
27631 the desktop instead of FosterParent as the base to get coordinates
27632 - CreateWindow: Don't make FosterParent the parent window for Popups
27633 if we don't want a taskbar entry, Popups automatically don't get one
27634 * Hwnd.cs: Need to call remove to actually remove the key from the
27637 2006-01-30 Mike Kestner <mkestner@novell.com>
27639 * MenuAPI.cs: adjust MainMenu item popup location to y=0.
27641 2006-01-30 Jackson Harper <jackson@ximian.com>
27644 * TreeNode.cs: Raise events no matter how the treenode is
27645 checked. Patch by Don Edvalson.
27647 2006-01-30 Jackson Harper <jackson@ximian.com>
27649 * TreeNode.cs: Signature fix.
27651 2006-01-29 Alexander Olk <alex.olk@googlemail.com>
27653 * ThemeClearlooks.cs: Fixed a crash in ProgressBar drawing.
27655 2006-01-20 Mike Kestner <mkestner@novell.com>
27657 * Form.cs: Add ActiveTracker property to do Captures and perform mouse
27658 event forwarding when menus are active.
27659 * MenuAPI.cs: kill the GrabControl hack. Use Form.ActiveTracker.
27660 Most of the patch is pdb's with a little rework.
27662 2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
27664 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs:
27665 Removed GetMenuDC and ReleaseMenuDC methods; replaced
27666 by PaintEventStart(handle, false) and PaintEventEnd(handle, false)
27667 * Form.cs: Changed WM_NCPAINT handler to use PaintEventStart and End
27668 * InternalWindowManager.cs: Added use of PaintEventStart/End to
27669 handling of WM_NCPAINT message, now passing the PaintEventArgs to
27670 the PaintWindowDecorations method
27671 * MainMenu.cs: Switched logic from GetMenuDC to PaintEventStart
27672 * MdiChildContext.cs: Switched logic from GetMenuDC to PaintEventStart
27673 * MenuAPI.cs: Made tracker window invisible
27675 - Removed GetMenuDC and ReleaseMenuDC methods
27676 - Implemented the client=false path for PaintEventStart and
27679 2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
27681 * XplatUIWin32.cs(SetBorderStyle): Fixed3D needs a border
27682 * XplatUIX11.cs(DeriveWindowStyles): Updated to match fixed Form
27685 - MaximizeBox, MinimizeBox: Recreate the handle when setting
27687 - CreateParams: Reworked the styles to match MS look'n'feel,
27688 removed automatic setting of MinimizeBox, MaximizeBox, etc. via
27689 the WS_OVERLAPPEDWINDOW style. This fixes #76823.
27691 2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
27693 * XplatUIX11.cs(GetWindowState): Now throwing an exception when the
27694 window is not mapped, since otherwise every form that's being
27695 created is considered minimized, which is wrong.
27696 * Form.cs: Catching the exception and returning our internal value
27699 2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
27701 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new driver method
27702 SetWindowMinMax() to have means to tell the driver about the minimum,
27703 maximum and maximized state window sizes. (Part of the fix for #76485)
27705 - Implemented tracking of minimum and maximum window size, now calling
27706 new SetWindowMinMax() driver method to tell the driver (Part of the
27708 - Finished handling of WM_GETMINMAXINFO method, now setting all values
27709 (Completes fix for #76485)
27710 - Calling new SetWindowMinMax driver method when the handle for a
27711 form is created, to make sure the driver knows about it even if
27712 the values have been set before the window was created
27713 - Now eating the WM_WINDOWPOSCHANGED message if the form is minimized
27714 to avoid messing up our anchoring calculations (partial fix
27716 * XplatUIStructs.cs: Added MINMAXINFO struct (moved from Win32 driver)
27718 - Added _NET_WM_STATE_HIDDEN property for detecting minimized state
27719 - Improved GetWindowState() to detect 'Minimized' state on Metacity
27720 (and presumably other freedesktop.org compliant WMs). Left the
27721 assumption unmapped=minimized, needed for SetVisible to work.
27722 - Now setting the window state when creating windows
27723 - Fixed SetVisible to consider/set the window state when mapping
27724 a Form. We cannot set the state before it's mapped, and we cannot
27725 use Form.WindowState once it's mapped (since it would ask the
27726 driver and get 'normal'. Therefore, we grab the state before
27727 mapping, map, and then set state.
27728 - Implmemented SetWindowMinMax method; Metacity does not seem to
27729 honor the ZoomHints, though.
27731 - Removed MINMAXINFO (moved to XplatUIStructs)
27732 - Added SetWindowMinMax stub (on Win32 the only way to set that
27733 information is in response to the WM_GETMINMAXINFO message, which
27734 is handled in Form.cs)
27735 - Added logic to SetVisible to set the proper window state when a
27736 form is made visible (fixes #75720)
27738 2006-01-26 Jackson Harper <jackson@ximian.com>
27740 * Control.cs (BeginInvoke): Automagically handle EventHandlers the
27741 same way we handle them with Invoke.
27743 2006-01-25 Peter Dennis Bartok <pbartok@novell.com>
27746 - Added tracking of window state so CreateParams can return
27747 the appropriate style
27748 - Moved setting of WS_CAPTION style in CreateParams to allow
27749 styles without caption
27750 * DataGridTextBoxColumn.cs: We are now also creating the TextBox
27751 control if the TextBox property is accessed. Fixes #77345
27753 - get_Created: now uses is_disposed and is_created to determine
27754 return value (suggested by Jackson)
27755 - CreateHandle: No longer exits if the handle is being recreated
27756 - RecreateHandle: If the handle is not yet created call the
27757 appropriate method to create either control or handle. If the
27758 control is already created CreateHandle will simply exit instead
27759 of just creating the handle
27760 * Hwnd.cs: Removed expose_pending tracking, no longer needed since we
27761 now SendMessage WM_DESTROY directly to the control when DestroyWindow
27764 - When DestroyWindow is called, instead of waiting for the
27765 DestroyNotification from X11, we directly post it to the WndProc
27766 and immediately dispose the hwnd object.
27767 Same applies to DestroyChildWindows, and this obsoletes the
27768 expose_pending tracking. Contrary to Win32 behaviour we destroy our
27769 child windows before our own, to avoid X11 errors.
27770 - Removed the direct sending of WM_PAINT on UpdateWindow
27772 - Reworked DoEvents and GetMessage to allow access to internal queue
27773 even when trying non-blocking access to the queue. Fixes #77335.
27774 Based on a patch suggestion by Don Edvalson. The new private
27775 GetMessage can now also be used as a backend for a PeekMessage
27777 * XplatUI.cs: Improved debug output for CreateWindow
27779 2006-01-25 Jackson Harper <jackson@ximian.com>
27781 * Help.cs: Allow param to be null. Patch by Don Edvalson.
27783 2006-01-24 Jackson Harper <jackson@ximian.com>
27785 * ComboBox.cs: Clamp the max value set for the vertical scrollbar
27786 when we have a MaxDropItems lower then the selected index.
27788 2006-01-24 Jackson Harper <jackson@ximian.com>
27790 * Control.cs: Don't allow selection of non visible controls, allow
27791 selection of controls without parents.
27793 2006-01-24 Jordi Mas i Hernandez <jordimash@gmail.com>
27795 * ThemeWin32Classic.cs: Fixes Datagrid drawing issues
27796 * DataGridDrawingLogic.cs: Add editing row only when is necessary
27798 2006-01-23 Jackson Harper <jackson@ximian.com>
27800 * UpDownBase.cs: Make the textbox handle all the selection and
27801 tabbing. This fixes tabing to updown controls.
27803 2006-01-24 Jordi Mas i Hernandez <jordimash@gmail.com>
27805 * TextBoxBase.cs: fixes exception thown the object was null
27807 2006-01-23 Jackson Harper <jackson@ximian.com>
27809 * ButtonBase.cs: Just use the base CreateParams. They set
27810 visibility and enabled correctly.
27813 * MonthCalendar.cs: Lets let the base set as much of the
27814 createparams as possible so we don't have duplicate code all over
27817 2006-01-22 Alexander Olk <alex.olk@googlemail.com>
27819 * ThemeGtk.cs: Added TrackBar and some experimental code to
27820 get double buffering back
27822 2006-01-21 Jordi Mas i Hernandez <jordimash@gmail.com>
27824 * DataGrid.cs: Allows row number set internally higher than the last
27825 when creating a new row. Restores the editing functionality.
27827 2006-01-20 Mike Kestner <mkestner@novell.com>
27829 * MimeIcon.cs: delay Image creation until the icons are accessed
27830 instead of creating 190 scaled images on GnomeHandler startup.
27832 2006-01-19 Peter Dennis Bartok <pbartok@novell.com>
27834 * TextBoxBase.cs (WndProc): When handling WM_KEYDOWN we need to
27835 first call base before processing the event. Fixes #77279
27837 2006-01-19 Peter Dennis Bartok <pbartok@novell.com>
27839 * XplatUIWin32.cs, Cursor.cs: Fixed code that wrongly assumed
27840 that the stride for the GDI bitmap would match the stride of
27843 2006-01-19 Alexander Olk <alex.olk@googlemail.com>
27845 * ThemeGtk.cs: Added ProgressBar, RadioButton, CheckBox
27847 2006-01-19 Jackson Harper <jackson@ximian.com>
27849 * ComboBox.cs: Hookup the text controls keydown event so we get
27850 those when the text control has the focus.
27852 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
27854 * Label.cs: Now using the base events instead of defining new ones;
27855 this allows us to just call the base properties without having to
27856 duplicate all base property logic
27858 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
27860 * Label.cs: A label by default is not a tabstop (Fixes one of our
27861 failing nunit tests)
27863 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
27865 * XplatUIWin32.cs: Fixed wrong DoEvents logic. Fixes #77282
27866 * XplatUIX11.cs: Removed WM_PAINT check from DoEvents. Fixes #77282
27868 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
27870 * Cursor.cs: Reimplemented creating cursor bitmaps without using
27871 the Bitmap(Stream) constructor which is semi-broken on MS GDI+.
27874 - Reimplemented creating Bitmaps from DIBs since the Bitmap(Stream)
27875 constructor creates images that can't be saved. Part of the fix
27877 - Added handling of CF_BITMAP as CF_DIB to clipboard code (Fixes #76103)
27878 - SetWindowState: Switched ShowWindow flags (part of an upcoming
27879 bug fix for handling window state in forms properly)
27881 2006-01-18 Alexander Olk <alex.olk@googlemail.com>
27883 * ThemeGtk.cs: Simplify ScrollBar drawing
27885 2006-01-18 Jackson Harper <jackson@ximian.com>
27887 * Splitter.cs: Set the default dock style for the splitter control
27888 in the constructor.
27890 2006-01-18 Alexander Olk <alex.olk@googlemail.com>
27892 * ThemeGtk.cs: Corrected StateType and ShadowType for
27895 2006-01-18 Alexander Olk <alex.olk@googlemail.com>
27897 * Control.cs: Make use of Theme.DoubleBufferingSupported
27899 - Added drawing for flat style buttons
27900 - Added ScrollBar drawing
27902 2006-01-18 Alexander Olk <alex.olk@googlemail.com>
27904 * ThemeClearlooks.cs: Removed some unneeded code.
27905 * ThemeGtk.cs: First part of ThemeGtk enhancements.
27907 2006-01-17 Peter Dennis Bartok <pbartok@novell.com>
27909 * LinkLabel.cs: We need to update the hover drawing when
27910 leaving the control as well.
27912 2006-01-18 Jordi Mas i Hernandez <jordimash@gmail.com>
27914 * DataGrid.cs: Clicking on non empty areas in the columns
27915 area was giving an exception
27917 2006-01-17 Jackson Harper <jackson@ximian.com>
27919 * ThemeWin32Classic.cs:
27920 * ListView.cs: Do not draw/clip the headers when the header style
27923 2006-01-17 Jordi Mas i Hernandez <jordimash@gmail.com>
27925 * DataGrid.cs: Fixes 77260
27927 2006-01-17 Jordi Mas i Hernandez <jordimash@gmail.com>
27929 * DataGrid.cs: Clicking on a column on a empty grid was giving
27932 2006-01-17 Peter Dennis Bartok <pbartok@novell.com>
27934 * DataGrid.cs (OnKeyDown): Don't use the array if it's empty
27935 or any keypress will crash the grid.
27937 2006-01-17 Mike Kestner <mkestner@novell.com>
27939 * MainMenu.cs (OnMenuChanged): set Height=0 to cause relayout.
27940 * ThemeWin32Classic.cs (CalcItemSize): clear Height/Width for
27941 invisible/previously-visible items.
27944 2006-01-17 Alexander Olk <alex.olk@googlemail.com>
27946 * ThemeClearlooks.cs:
27947 - Added CL_Draw_Button method; now other theme controls that are
27948 not derived from button or do not have a button can draw buttons
27950 - Updated ComboBox drawing
27951 - Beautified RadioButton drawing
27952 - Corrected drawing of bottom and left tabs
27953 - Beautified DateTimePicker and MonthCalendar
27954 - Added CPDrawButton and CPDrawRadioButton
27956 2006-01-16 Jackson Harper <jackson@ximian.com>
27958 * ComboBox.cs: Set the initial value of the scrollbar to the
27959 current index. Reduce the numbers of refreshs and IndexOfs called.
27961 2006-01-14 Alexander Olk <alex.olk@googlemail.com>
27963 * FileDialog.cs: When the file listview is focused hitting the
27964 backspace key moves the fileview to the parent directory
27966 2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
27969 - Added RecreateHandle call when changing taskbar visibility to
27970 trigger reparenting in Win32 driver (Fixes #75719)
27971 - If a window has minimize or maximize buttons, it cannot have
27974 - CreateWindow: When no WS_EX_APPWINDOW style is found we parent
27975 the toplevel form with FosterParent (A toolwindow not on the
27976 taskbar) (Fixes #75719)
27977 - Made FosterParent a toolwindow
27979 2006-01-13 Alexander Olk <alex.olk@googlemail.com>
27981 * FileDialog.cs: Don't crash if InitialDirectory doesn't exist
27983 2006-01-13 Alexander Olk <alex.olk@googlemail.com>
27985 * ToolTip.cs: If SetToolTip is called from a control and the mouse
27986 is currently over that control, make sure that tooltip_window.Text
27989 2006-01-13 Mike Kestner <mkestner@novell.com>
27991 * MimeIcon.cs: size_t on lp64 fix for gdk_pixbuf_save_to_file extern.
27993 2006-01-13 Jackson Harper <jackson@ximian.com>
27995 * TreeView.cs: On MS GetNodeAt never actually factors in the X
27996 value passed. Also redraw the selected node when we recieve
27997 focus, so tabbing between trees works correctly.
27999 2006-01-13 Alexander Olk <alex.olk@googlemail.com>
28001 * MimeIcon.cs: GnomeHandler: older gnome versions don't have
28002 ~/.gconf/%gconf-tree.xml, so use
28003 .gconf/desktop/gnome/interface/%gconf.xml
28005 2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
28007 * TextControl.cs: Draw text in gray if control is disabled
28009 2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
28011 * TreeView.cs: Draw the focus rectangle outside the highlight, to
28012 make sure it's always visible. Fixes #76680.
28014 2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
28016 * TreeView.cs: Implemented Wheel scrolling. Fixes #76531
28018 2006-01-13 Jonathan Chambers <jonathan.chambers@ansys.com>
28020 * PageSetupDialog.cs: Added.
28021 * PrintDialog.cs: Attributes.
28022 * PrintPreviewControl.cs: Updates.
28023 * PrintPreviewDialog.cs: Updates.
28025 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
28027 * Control.cs: Undid my selection check fix, since it's not needed
28029 - Now considering the presence of hscroll/vscroll when sizing
28030 vscroll/hscroll respectively. Fixed bug #77077
28031 - Added Left/Up/Down/Right to IsInputKey list to prevent
28032 ContainerControl from stealing them. This fixes what I broke
28033 with my last checkin.
28035 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
28037 * ScrollableControl.cs: Implemented dockpadding. Fixes #77166. And
28038 I finally understand how the property can be set without a setter :-)
28040 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
28043 - Switched RunLoop to use static Message.Create to create a
28045 - Added PreProcessMessage call in runloop for keyboard events; this
28046 is part of the fix for #77219, I overlooked this originally in the
28047 MSDN doc for PreProcessMessage
28049 - Removed call to PreProcessMessage from handling of keyboard
28050 messages; it's supposed to be done in the message pump
28051 - Moved call to ProcessKeyEventArgs inside ProcessKeyMessage as
28052 per MSDN documentation.
28053 - IsInputChar: All chars are input chars by default; removed the
28054 parent calling chain, MS does not document that
28055 - PreProcessMessage: If IsInputChar is true, we want to return false
28056 to allow dispatching of the message
28057 - When selecting the next control, now also check that we're not
28058 selecting ourselves again and therefore return a false positive.
28060 - Tried to match return values for IsInputKey and ProcessDialogKey
28061 to what MS returns; moved processing of our special keys outside
28062 ProcessDialogKey since MS does not seem to return true on those.
28063 - Moved code that previously was in ProcessDialogKey into new private
28064 ProcessKey method, which gets called upon receipt of WM_KEYDOWN
28065 - Reworked handling of WM_CHAR to not have to duplicate code from
28066 Control.cs anymore, instead we simply call down to base.
28068 2006-01-12 Jackson Harper <jackson@ximian.com>
28070 * ComboBox.cs: We always need to refresh the text area when
28071 EndUpdate is called. Fixes the combobox in the file dialog.
28072 * Control.cs: Don't create the creator_thread until the controls
28073 handle is created. Also in InvokeRequired we check if the
28074 creator_thread is null. This gives the effect of InvokeRequired
28075 returning true if the controls handle is not created yet, and
28078 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
28081 - Added StartLoop() driver method. This is used to allow drivers to
28082 prepare for an upcoming GetMessage/TranslateMessage/DispatchMessage
28083 loop for a particular thread
28084 - Added EndLoop() driver method. This is called once the message
28085 pump for the thread is shut down
28086 - Added SupportsTransparency method to allow the driver to indicate
28087 opacity support for windows
28089 - Removed TODO attribute, completed AllowTransparency property
28090 - Added documented logic to Opacity
28091 * GroupBox.cs, Label.cs, LinkLabel.cs, PropertyGrid.cs, Control.cs,
28092 ButtonBase.cs, CheckedListBox.cs: Combined Jackson's and Miguel's
28093 versions of CompatibleTextRendering
28094 * X11Structs.cs: Added opacity atom to our atom enumeration
28095 * Hwnd.cs: Added opacity tracking (we need to track since the opacity
28096 of a form might be set before it's reparented by the WM, and we need
28097 the opacity value without calling up to Form)
28098 * XplatUIDriver.cs: Added StartLoop(), EndLoop() and
28099 SupportsTransparency() driver methods
28100 * Application.cs: Now calling StartLoop and EndLoop driver methods
28102 - Added opacity atom registration
28103 - Added StartLoop()/EndLoop() methods. They're empty right now but
28104 will need to get implemented when we switch to a per-thread queue
28105 - Implemented SupportsTransparency() method
28106 - Implemented SetWindowTransparency() method
28107 - Added support for setting the opacity value when a window is
28108 reparented (since the opacity needs to be set on the WM frame)
28109 * XplatUIOSX.cs, XplatUIWin32.cs:
28110 - Added SupportsTransparency(), StartLoop() and EndLoop() methods
28112 2006-01-12 Alexander Olk <alex.olk@googlemail.com>
28114 * ThemeClearlooks.cs: Don't crash if TabControl.Parent is null.
28116 2006-01-12 Alexander Olk <alex.olk@googlemail.com>
28118 * FileDialog.cs: Added ToolTip for MWFFileView
28119 * MimeIcon.cs: Rewrote GnomeHandler.
28120 - Get currently used gnome icon theme from
28121 ($HOME)/.gconf/%gconf-tree.xml
28122 - Make use of inherited icon themes
28123 - Support SVG icon themes like Tango via librsvg
28125 2006-01-12 Miguel de Icaza <miguel@novell.com>
28127 Revert's Jackson's revert which broke 2.0 builds. Fix both
28130 * Application.cs: Move the use_compatible_text_rendering outside
28131 the NET_2_0 define. If we ever need to use the
28132 use_compatible_text_rendering on the individual controls they will
28133 access the variable from the common shared code paths.
28135 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
28138 - Added more granular debug options
28139 - Added method to print both window text and id
28140 - Switched debug output to use new Window() debug method
28141 - Added IsEnabled() driver method
28142 - Added EnableWindow() driver method
28144 - Removed end_modal; no longer needed, new loop handles termination
28145 via 'closing' variable
28146 - If form is modal, setting DialogResult will now initiate loop
28147 termination via 'closing' variable
28148 - Added support for is_enabled/WS_DISABLED to CreateParams
28149 - Close() now just send the WM_CLOSE message; the WM_CLOSE handler
28151 - Removed code that's now in RunLoop from ShowDialog()
28152 - Added various documented sanity checks to ShowDialog()
28153 - Added handling of WM_DESTROY message; we set 'closing' on getting
28154 the message to indicate the message pump to terminate
28155 - Added handling of new internal WM_CLOSE_INTERNAL message - it's
28156 send by the Application.ExitThread method. (We send the message
28157 to destroy the window after all other events have been
28158 processed through the queue, instead of destroying the handle
28160 - Moved code from Close() method to WM_CLOSE handler; added logic
28161 to only send close-related events if the form is not displayed
28163 * Splitter.cs (..ctor): Fixed typo in resource name
28165 - DrawBackgroundImage: Explicitly selecting the wrap mode for the
28167 - set_Cursor: Now only setting calling into XplatUI if the handle for
28168 the control is already created; this avoids implict handle creation
28169 or crashes if it's not created
28170 - set_Enabled: Now setting the enabled state via the new driver method
28171 instead of just tracking it
28172 - CreateParams: Added logic to set WS_DISABLED based on enabled state
28173 - CreateControl: Reordered event firing and method calls to more
28174 closely fire events in the order MS does. Now setting the
28175 enabled state in the driver when creating the control.
28176 - SetVisibleCore: Moved when the OnVisibleChanged event is fired to
28178 * FolderBrowserDialog.cs, MessageBox.cs, ButtonBase.cs, TrackBar.cs,
28179 MonthCalendar.cs: get_CreateParams: Added setting of WS_DISABLED
28180 * XplatUIStructs.cs: Added internal WM_CLOSE_INTERNAL mesage id
28182 - Added tracking of window enabled state (get_Enabled/set_Enabled)
28183 - Added EnabledHwnd property to easily allow a driver to find the
28184 handle of the first enabled window in the parent chain (this is
28185 used by drivers to pass up input events of disabled windows)
28186 * XplatUIDriver.cs: Added IsEnabled() method
28188 - Removed crude and obsolete exiting tracking variable
28189 - Removed internal ModalRun(); replaced by RunLoop()
28190 - Implemented private CloseForms() method to allow closing all
28191 windows owned by a particular (or all) threads
28192 - Exit() now properly closes all windows without forcing the message
28194 - Removed obsolete InternalExit() method
28195 - Changed Run() methods to use new RunLoop() message pump
28196 - Implemented new RunLoop() method for both modal and non-modal forms
28198 - get_CreateParams: Added setting of WS_DISABLED
28199 - Simplified ShowDialog(); now all the work is done in RunLoop(),
28200 invoked via Form.ShowDialog()
28201 * NativeWindow.cs: We don't remove the window from the collection when
28202 the handle is destroyed; there might still be messages for it in the
28203 queue (mainly the resulting WM_DESTROY); instead it will be removed
28204 when Control calls InvalidateHandle in the WM_DESTROY handler
28206 - CreateWindow: Added logic to handle the WS_DISABLED window style
28207 - EnableWindow: Implemented based on Hwnd.Enabled
28208 - GetMessage: Reset PostQuitState so the method can be called again
28209 - Implemented support for disabled windows (passing messages to the
28210 first enabled parent) in handling all input messages
28211 - Added optimizations for handling Expose events
28212 - Implemeted new driver method IsEnabled()
28213 - Now always resetting paint pending tracking vars when we start paint
28214 - Re-implemented UpdateWindow via just sending a WM_PAINT message
28215 * XplatUIOSX.cs: Added IsEnabled method stub
28216 * XplatUIWin32.cs: Implemented new IsEnabled() method
28218 2006-01-11 Jackson Harper <jackson@ximian.com>
28220 * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
28221 LinkLabel.cs, PropertyGrid.cs: Unbreak 1.1 build. Consolidate the
28222 variables a little.
28223 * ColorDialog.cs: Clear out the old form before adding the new
28226 2006-01-11 Jackson Harper <jackson@ximian.com>
28228 * X11Dnd.cs: Make sure to add all the text formats when adding
28229 strings to the data object.
28230 * TreeNodeCollection.cs: When adding to a sorted tree we need to
28231 do some redrawing too. Also change the UpdateNode to an
28232 UpdateBelow so the newly added node gets painted.
28234 2006-01-11 Miguel de Icaza <miguel@novell.com>
28236 * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
28237 LinkLabel.cs, PropertyGrid.cs: Implement the
28238 UseCompatibleTextRendering property for 2.x
28240 * Application.cs (SetCompatibleTextRenderingDefault): Add.
28242 2006-01-11 Jackson Harper <jackson@ximian.com>
28244 * TreeView.cs: Use the property for setting the selected node so
28245 the correct events get raised.
28246 * TreeNode.cs: Update the tree when the fore/back colours of a
28249 2006-01-10 Jackson Harper <jackson@ximian.com>
28251 * TreeView.cs: Allow setting SelectedNode to null.
28253 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
28255 * Form.cs: Fix support for Form TransparencyKey and Opacity on Windows.
28257 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
28259 * PrintControllerWithStatusDialog.cs: Update page number in dialog.
28261 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
28263 * PrintDialog.cs: Added attributes and set default property values.
28265 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
28267 * PrintControllerWithStatusDialog.cs:
28268 Added PrintControllerWithStatusDialog.
28270 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
28272 * XplatUI.cs, Form.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
28273 XplatUIWin32.cs: Added support for Form TransparencyKey and Opacity on Windows.
28275 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
28277 * ComboBox.cs: Fix crash when there is no selected item (due to last commit)
28279 2006-01-09 Jonathan Chambers <jonathan.chambers@ansys.com>
28281 * ComboBox.cs: Added KeyDown event handler for processing arrow keys
28282 and PgUp/PgDown. Also, scroll to selected item upon dropdown. Bugs 76857 and 76788.
28284 2006-01-08 Alexander Olk <alex.olk@googlemail.com>
28286 * MimeIcon.cs: Added internal class SVGUtil.
28288 2006-01-08 Alexander Olk <alex.olk@googlemail.com>
28290 * FileDialog.cs: Don't crash if there are two files with the
28291 same name but different locations.
28293 2006-01-08 John BouAntoun <jba-mono@optusnet.com.au>
28295 * MonthCalendar.cs: Fixed annoying rendering bug when selecting
28296 dates across multiple month grids. Used to not highlight entire
28297 month, but does now.
28299 2006-01-06 Jackson Harper <jackson@ximian.com>
28301 * MonthCalendar.cs: Removed DoEvents call to prevent a running
28302 message loop. Change timer intervals to numbers that seem more
28305 2006-01-06 John BouAntoun <jba-mono@optusnet.com.au>
28307 * DateTimePicker.cs: Modified CalculateDropDownLocation to use the screen
28308 object for location info since screen object is now implemented.
28310 2006-01-05 Jackson Harper <jackson@ximian.com>
28312 * AsyncMethodData.cs: Check if the call is complete before doing a WaitOne
28313 * AsyncMethodResult.cs: We no longer use a WeakReference for the
28314 AsyncMethodResult, this is because we ALWAYS want the
28315 ManualResetEvent to get set.
28316 * Control.cs: When disposing use an async invoke to call shutdown
28317 code, so that thigns don't block on the finalizer thread. Also
28318 check if we even have a message loop before trying to send
28319 messages, if we don't then don't bother sending messages.
28320 - No more weak references for async methods
28321 * XplatUIDriver.cs: No more weak references for async methods.
28323 2006-01-04 Alexander Olk <alex.olk@googlemail.com>
28325 * FontDialog.cs: Fix, don't throw an exception if FontFamily.Families
28326 returns two FontFamily with the same name
28328 2006-01-04 Peter Dennis Bartok <pbartok@novell.com>
28330 * ThemeWin32Classic.cs, ThemeClearlooks.cs: Dropped stupid scheme of
28331 drawing disabled text. Instead using the ColorGrayText color
28333 2006-01-04 Jackson Harper <jackson@ximian.com>
28335 * TreeNode.cs: redraw the node when its image index is changed.
28337 2006-01-04 Peter Dennis Bartok <pbartok@novell.com>
28339 * RichTextBox.cs: Same fix as last, just for SelectionColor. This
28340 time I checked there are no others like it.
28342 2006-01-04 Jackson Harper <jackson@ximian.com>
28344 * AsyncMethodResult.cs: Use a ManualResetEvent instead of a mutex,
28345 this gives the behavoir I was looking for.
28346 * Control.cs: Special case Invoking EventHandlers, this matches MS
28347 and fixes part of bug #76326.
28349 2006-01-04 Alexander Olk <alex.olk@googlemail.com>
28351 * ThemeClearlooks.cs, FileDialog.cs:
28352 - Reflect the latest Theme class changes
28353 - Remove Mono.Unix.Syscall.time in FileDialg and replace it
28356 2006-01-04 Alexander Olk <alex.olk@googlemail.com>
28358 * Theme.cs: Cache UI resource images and resize them if needed
28360 2006-01-03 Peter Dennis Bartok <pbartok@novell.com>
28362 * RichTextBox.cs: FormatText is 1-based, make it so when SelectionFont
28363 is called. This fixes the crash in Nexxia when setting the font
28364 attributes in the chat. [However, RTF needs a look-over to make sure
28365 that all SelectionXXX methods handle the special case that selection
28366 is empty and therefore the change must be applied to all text starting
28367 at the cursor/selection start]
28369 2006-01-03 Peter Dennis Bartok <pbartok@novell.com>
28371 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
28372 XplatUIOSX.cs: Added SendMessage and PostMessage methods
28373 * X11Keyboard.cs: Switched to new way of calling PostMessage
28375 2006-01-03 Peter Dennis Bartok <pbartok@novell.com>
28377 * Theme.cs: Added theme interface for images to allow the theme to
28378 control what images are used for things like FileDialog, MessageBox
28380 * MessageBox.cs: Now uses the new Theme icon/image interfaces
28382 2006-01-03 Alexander Olk <alex.olk@googlemail.com>
28385 - Removed some dead code
28386 - Opening a recently used file does work now
28387 - Small UI enhancements
28390 2006-01-02 Alexander Olk <alex.olk@googlemail.com>
28392 * FileDialog.cs: Forgot too add __MonoCS__
28394 2006-01-02 Alexander Olk <alex.olk@googlemail.com>
28396 * FileDialog.cs: We are able to read recently used files now let's
28397 go on and write them.
28399 2006-01-01 Alexander Olk <alex.olk@googlemail.com>
28401 * FileDialog.cs: Breathe some life into "last open"/"recently used"
28403 * MimeIcon.cs: Do a check for the top level media type also
28405 2005-12-31 Alexander Olk <alex.olk@googlemail.com>
28407 * ThemeClearlooks.cs:
28408 - Added CPDrawStringDisabled
28409 - ButtonBase_DrawText: Workaround for a DrawString bug; cut off
28410 some chars if the text doesn't fit into text_rect
28411 - DrawListViewItem: If View = View.LargeIcon center the image;
28412 rewrote the drawing of ListViewItem.Text if View =
28415 2005-12-31 Alexander Olk <alex.olk@googlemail.com>
28417 * MimeIcon.cs: Use default KDE icon theme if there is no
28418 "48x48" directory for the current icon theme, fixes #77114
28419 * Mime.cs: Disable not working and actually not used code.
28420 * ThemeWin32Classic.cs:
28421 - Replace "new SolidBrush" in GetControlBackBrush and
28422 GetControlForeBrush with ResPool.GetSolidBrush
28423 - Changed DrawListViewItem from private to protected virtual
28425 - Added form.MaximizeBox = true
28426 - Don't throw an exception if there is a broken symbolic link
28428 2005-12-23 Jackson Harper <jackson@ximian.com>
28430 * TabControl.cs: Give the panels focus, keyboard navigation is
28431 fixed so this works correctly now.
28432 - We need these key events also.
28433 * ToolBar.cs: Remove some of the poor mans double buffering.
28435 2005-12-24 Alexander Olk <alex.olk@googlemail.com>
28437 * ComboBox.cs: The internal TextBox now returns the focus.
28439 2005-12-23 Jackson Harper <jackson@ximian.com>
28441 * ThemeWin32Classic.cs: Draw the text for all tab appearances.
28443 2005-12-23 Peter Dennis Bartok <pbartok@novell.com>
28445 * Control.cs: Removed debug code
28446 * XplatUIX11.cs: Changed DestroyChildWindows to also consider
28449 2005-12-23 Peter Dennis Bartok <pbartok@novell.com>
28451 * Control.cs: When creating the control, update the Z-order after
28452 all it's children are created, too. (Fixes nexxia not showing
28455 2005-12-23 Peter Dennis Bartok <pbartok@novell.com>
28457 * Control.cs: Do not update the anchoring distances if layout is
28458 suspended, instead do it once layout is resumed
28460 2005-12-22 Peter Dennis Bartok <pbartok@novell.com>
28463 - After many hours of debugging, for both Jackson and
28464 myself, it turns out that it helps to set the parent of a control
28465 if you want to actually see it onscreen. In the spirit of that
28466 discovery, we're now setting the parent of the control and
28467 it's children when the control's handle is created. This fix
28468 will make Lutz Roeder's Reflector run happily.
28469 - now just creating the handle instead of the whole control when
28470 getting a graphics context for the control.
28472 2005-12-22 Peter Dennis Bartok <pbartok@novell.com>
28474 * ScrollableControl.cs: When calculating the canvas, don't consider
28475 the scrollbar widths. Instead, predict if horizontal scrollbar
28476 will affect canvas when deciding on vertical display and vice versa.
28478 2005-12-22 Peter Dennis Bartok <pbartok@novell.com>
28480 * RichTextBox.cs: Set default RTF font for documents that don't
28481 have a font table (Fixes #77076)
28483 2005-12-22 Jackson Harper <jackson@ximian.com>
28485 * TextBoxBase.cs: It's difficult to do, but you can have an empty
28486 clipboard. This prevents a NullRef in that case.
28487 * XplatUIX11.cs: Use CLIPBOARD not PRIMARY for our
28488 clipboard. PRIMARY is for the currently selected text only. (We
28489 should implement PRIMARY at some point.
28491 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
28493 * XplatUIWin32.cs: Fixed the TEXTMETRIC structure, we were calling
28494 a Unicode function with a structure that was defined in Ansi way.
28497 2005-12-21 Jackson Harper <jackson@ximian.com>
28499 * StatusBar.cs: Statusbar handles its fore/back colours on it's
28500 on. Because thats how it rolls. (and this avoids it using ambient
28502 * ThemeWin32Classic.cs: Use the proper back color for filling.
28503 * Menu.cs: Use the system menu bar color for drawing menu
28504 bars. Using the window back color will bring ambient colours into
28507 2005-12-21 Alexander Olk <alex.olk@googlemail.com>
28509 * ColorDialog.cs: Fixed a memory leak that caused a SIGSEV. A lot of
28510 Bitmaps were created and not disposed.
28512 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
28514 * Control.cs (CreateControl): Don't do anything if the control is
28515 already created, otherwise we'd fire the OnCreated event more than
28518 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
28520 * ComboBox.cs (FindStringCaseInsensitive): Don't search for emtpy strings,
28521 will always match. Instead return -1. Fixes #76464.
28523 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
28525 * TextControl.cs (RecalculateLine): Only wrap if the wrap point is
28526 neither the beginning nor the end of the line (Fixes bug #76479)
28528 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
28531 - ControlNativeWindow.ControlFromHandle(): Now handling situation
28532 where handle is invalid
28533 - FromHandle(): Now using hashtable-based ControlFromHandle() lookup
28534 instead of slower linear search
28535 * NativeWindow.cs: Don't remove the window from the hashtable until
28536 after the driver has destroyed it (since the driver might use
28537 Control.FromHandle to lookup the control object
28538 * Hwnd.cs: Added DestroyPending property to track if a window is
28539 already destroyed as far as the driver is concerned and only hasn't
28540 yet notified the control
28542 - Activate(): Check if the window is still valid before using the
28544 - Implemented DestroyChildWindow() method to mark child windows as
28545 destroyed when a window is destroyed. This prevents situations
28546 where we might call an X method based on queued events for a
28547 window that already has been destroyed but we haven't yet pulled
28548 the destroy method from the queue.
28549 - Added a call to the new DestroyChildWindow() method to the drivers
28550 DestroyWindow code. Also now marking the destroyed window itself
28553 2005-12-20 Jackson Harper <jackson@ximian.com>
28556 * StatusBarPanel.cs: Don't calculate panel sizes on draw
28557 anymore. Just do them when needed, also track the rects of panels
28558 so that we can optimize refreshing more in the future.
28560 2005-12-20 Alexander Olk <alex.olk@googlemail.com>
28562 * ColorDialog.cs: Fixed focus drawing in small color controls
28564 2005-12-19 Jackson Harper <jackson@ximian.com>
28566 * InternalWindowManager.cs:
28567 * MdiWindowManager.cs: Cleanup some coordinate system changes so
28568 moving windows works properly.
28570 2005-12-19 Peter Dennis Bartok <pbartok@novell.com>
28573 - Removed call to InitLayout() from SetBoundsCore(); doc says
28574 it's only called when a control is added to a container
28575 - Split InitLayout logic, moved to separate UpdateDistances() method
28576 since we need to perform those calculations more often than just
28577 when adding the control to a container. (Needed to fix #77022)
28578 - Now calling UpdateDistances() from UpdateBounds() (fixes #77022)
28579 - Reduced the OnBindingContextChanged events count, don't send them
28580 unless the control is created, we still aren't totally matching
28581 MS, but I can't quite figure out some of their rules
28583 2005-12-18 Alexander Olk <alex.olk@googlemail.com>
28585 * ThemeClearlooks.cs: Corrected distance between ProgressBar
28588 2005-12-18 Alexander Olk <alex.olk@googlemail.com>
28590 * ThemeClearlooks.cs:
28591 - Updated ProgressBar drawing
28592 - Corrected drawing of ScrollBars and scroll buttons
28593 - Some temporary fixes for minor pixel artefacts
28595 2005-12-18 Peter Dennis Bartok <pbartok@novell.com>
28598 - Reworked Controls.Add(), Controls.Remove() and set_Parent() to
28599 cause events to be sent in the same order as MS does.
28600 - Added ChangeParent() method to trigger various OnXXXChanged events
28601 that need to be fired when a parent changes (This is a reworking
28602 of the patch from r54254, with the X11 errors fixed)
28603 - Removed SuspendLayout()/ResumeLayout() calls from Controls.Clear()
28604 since on MS we get OnLayoutChanged events when calling Clear()
28605 - Changed Enabled property to consider parent state as well, if a
28606 parent is not enabled, the control will not be either
28607 - Changed Parent property to simply call Controls.Add() since that
28608 now does all the work required, this way we avoid code duplication
28609 - Threw in a few OnBindingsContextChanged calls to try and match
28610 when MS sends them. We seem to send a few too many, though.
28611 - Added call to CreateControl when adding the control to a parent.
28612 We were never calling CreateControl. Still needs some work, in
28613 some places we treat HandleCreated and ControlCreated as equal,
28615 - Removed obsolete commented out code from UpdateZOrder()
28617 2005-12-18 Alexander Olk <alex.olk@googlemail.com>
28619 * ThemeClearlooks.cs: Updated TrackBar drawing.
28621 2005-12-17 Alexander Olk <alex.olk@googlemail.com>
28623 * FileDialog.cs: Patch for #76901 by Atsushi Enomoto
28625 2005-12-17 Alexander Olk <alex.olk@googlemail.com>
28627 * FileDialog.cs: Add the Help button and the open readonly
28628 checkbox only if needed
28630 2005-12-16 Jackson Harper <jackson@ximian.com>
28632 * Control.cs: Make sure we have an active menu before trying to
28633 process commands on it. Prevents menu-less forms from crashing
28634 when Alt is pressed.
28635 * TreeNodeCollection.cs: Some fixes to prevent null refs. Patch by
28637 * RichTextBox.cs: Expand statement to help out gmcs and fix the
28640 2005-12-16 Jackson Harper <jackson@ximian.com>
28642 * InternalWindowManager.cs: Don't translate tool windows screen
28643 coordinates. This fixes windows 'bouncing' around when being moved.
28645 2005-12-15 Peter Dennis Bartok <pbartok@novell.com>
28648 - MaxLength now treats 2^31-1 equal to unlimited length (this is
28649 not quite MS compatible, MS uses that number only for single line
28650 and 2^32-1 for multi-line, but I figure it won't hurt keeping
28652 - Now enforcing the MaxLength limit when entering characters
28653 - Added argument to internal Paste() method to track if it's called
28654 from programatically or via keyboard, since keyboard driven pastes
28655 need to enforce max-length
28656 - Added logic to Paste to only paste as many chars as MaxLength
28658 * RichTextBox.cs: Updated to use new obey argument for internal Paste()
28660 - Added Length property to return number of characters in document
28661 - Added private CharCount property which only tracks actual chars
28662 in the document (no linefeeds) and fires event when CharCount
28664 - Added tracking of character count to all methods that alter it
28665 - Added LengthChanged event to allow applications to subscribe
28666 to any changes to the document
28668 2005-12-15 Peter Dennis Bartok <pbartok@novell.com>
28671 - Removed local password_char field (moved to TextBoxBase)
28672 - Now setting the document's password var when password is
28675 - Added password_char field (needed here so MultiLine can
28677 - Added logic to MultiLine property setter to set the document's
28678 variable when password display is allowed
28679 - Removed debug code and made some debug code conditional
28681 - Added RecalculatePasswordLine() method to handle special password
28683 - Added PasswordChar property, also added related tracking vars
28684 - Draw() method now uses local text var for grabbing text to draw,
28685 this var is set to line.text unless we're doing password display,
28686 then it is set to the pre-generated all-password-chars line
28687 - Added calling RecalculatePasswordLine() method for password lines
28689 2005-12-14 Peter Dennis Bartok <pbartok@novell.com>
28692 - Added Reparented property to allow tracking of Window Manager
28693 reparenting actions (which affect X/Y calculations of toplevel
28695 - Made ToString() print window handles in hex
28697 - AddConfigureNotify(): Now uses reparented state off Hwnd to
28698 determine if X/Y needs offsetting
28699 - AddConfigureNotify(): Fixed offset calculations
28700 - Now adds ReparentNotify messages into the queue
28701 - Now processes ReparentNotify messages and causes a
28702 WM_WINDOWPOSCHANGED message to be sent upstream if a window
28703 is reparented (as most likely it's X/Y coordinates are changed
28706 2005-12-14 Jackson Harper <jackson@ximian.com>
28708 * XplatUIX11.cs: Tool windows still need to respek focus.
28710 2005-12-14 Peter Dennis Bartok <pbartok@novell.com>
28712 * Control.cs: Undid 54254 (causing XConfigure errors) so we can
28713 have a working release
28715 2005-12-13 Jackson Harper <jackson@ximian.com>
28717 * Form.cs: Update styles after setting the border style regardless
28718 of whether or not the window is using a window manager.
28720 2005-12-13 Jackson Harper <jackson@ximian.com>
28722 * Form.cs: We now hook into an internal window manager instead of just an
28723 MDI subsystem, this is so we can have properly behaving tool windows.
28724 * MdiClient.cs: Naming change, MdiChildContext is now WindowManager
28725 * InternalWindowManager.cs: New internal class that acts as a
28726 window manager for tool windows and as a base for mdi windows.
28727 * MdiWindowManager.cs: New class that acts as a window manager for
28730 2005-12-12 Jackson Harper <jackson@ximian.com>
28732 * Control.cs: Updates so we match behavoir for for implicit
28733 controls. Fixes explosions in MDI.
28735 2005-12-12 Jackson Harper <jackson@ximian.com>
28737 * Control.cs: Implement Invalidate (Region).
28739 2005-12-12 Peter Dennis Bartok <pbartok@novell.com>
28742 - Changed handling of Controls.Add/Controls.Remove to fire (almost)
28743 the same events as MS does. MS fires events for each property
28744 except, for unknown reasons, Cursor, when the control is reparented.
28745 I can't seem to totally match add/remove since MS also fires some
28746 VisibleChanged events, which makes no sense. Consolidated the
28747 parenting code into a separate method so it can be called from
28748 both Add and Remove. set_Parent no longer needs any special logic
28749 as it calls the parent's add method which implicitly fires
28751 - Removed some obsolete code and debug output
28752 - Enabled state is inherited from parents, if this is enabled
28754 2005-12-08 Peter Dennis Bartok <pbartok@novell.com>
28756 * Form.cs: Removed commented out code
28758 2005-12-08 Peter Dennis Bartok <pbartok@novell.com>
28761 - Added internal version of Invoke, with additional argument
28762 indicating if we're calling it from a Dispose() handler. That
28763 way we can avoid BeginInvoke throwing an exception if we're
28764 calling for an already destroyed window.
28765 - Added a dispose argument to BeginInvokeInternal, and made the
28766 check if a valid window handle chain exists conditional on
28767 it not being a dispose call
28768 - Removed code in DestroyHandle to destroy our children. Since we
28769 now handle the WM_DESTROY message we will catch all our children
28771 - Now calling OnHandleDestroyed from our new WM_DESTROY handler
28773 - Added a field to track the application context of the form.
28774 - No need to set closing variable as response to WM_CLOSE, instead
28775 we destroy the window. We also call PostQuitMessage if the form
28776 has an application context (which makes it the main app form,
28777 which, when closed terminates the app)
28779 - Dropped Exit() method, it's naming was confusing
28780 - Added PostQuitMessage() which causes GetMessage to return false
28781 once the message queue is empty
28782 * XplatUIDriver.cs, XplatUIWin32.cs: Dropped Exit(), added
28784 * XplatUIOSX.cs: Switched signature for Exit method since Exit() is
28785 no longer a valid XplatUI method, but left it in since it's used
28786 internally. Added empty PostQuitMessage() method.
28787 * MenuAPI.cs: Replaced call to Exit() with call to
28788 PostQuitMessage, even though this is probably no longer needed.
28789 * Hwnd.cs: Added 'pretty' ToString() to support debugging.
28790 * X11Structs.cs: Added pretty XEvent.ToString() to support debugging.
28792 - Replaced call to XplatUI.Exit() with PostQuitMessage()
28793 - Removed old debug code that would call XplatUI for exception
28794 display, enabled standard exception handling (Still not enabled
28795 though, until NativeWindow's ExternalExceptionHandler define
28798 - Added internal method to allow control to update NativeWindow
28799 after a window has been destroyed
28800 - Added handling of already destroyed windows when calling i
28802 - Added removal of handle from list on ReleaseHandle
28804 - Dropped GetMessageResult var and related code
28805 - Added PostQuitState to field to track if PostQuitMessage has been
28807 - Dropped Exit() method
28808 - Added PostQuitMessage() method
28809 - GetMessage now will return false if PostQuitState is set and no
28810 more messages are in the queue.
28811 - Expose handler will no longer generate WM_PAINT messages if we are
28812 in PostQuitState since it's very likely any windows have already
28813 been destroyed, and since Hwnd won't get updated until we have
28814 processed the DestroyNotify we'd be causing X errors.
28816 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
28818 * Control.cs(WndProc): Apparently I'm suffering from brain cloud.
28819 Thanks to Mike for pointing out the err of my ways.
28821 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
28823 * Control.cs(PreProcessMessage): Moved menu handling back, but
28824 after all other key handling, to match MS (who handles Menu in
28826 * Menu.cs (WndProc): Removed my brainfart
28828 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
28830 * Control.cs(PreProcessMessage): Removed special menu handling
28831 * Menu.cs (WndProc): Added handling of WM_SYSKEYUP for menu purposes.
28833 2005-12-07 Mike Kestner <mkestner@novell.com>
28835 * Control.cs : special case SYSKEYUP so that we can adjust keynav
28836 state according in tracker.
28837 * Menu.cs : promote tracker field to base class and provide a tracker
28838 lookup capability. Add/Remove shortcuts dynamically if the top menu
28839 has a tracker. Unparent items that are removed from the collection.
28840 * MenuAPI.cs : implement mnemonic, shortcut, and arrow-based keynav.
28841 * Theme*.cs: add always_show_hotkeys field to support configurability
28842 of mnemonic display. win32 doesn't show mnemonics until Alt is
28845 2005-12-07 Jackson Harper <jackson@ximian.com>
28847 * MdiChildContext.cs: Use Control.ResetCursor.
28848 * Control.cs: ResetCursor needs to set the property so that the
28849 correct XplatUI call gets made.
28851 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
28853 * Control.cs: More fixes to make our key events match MS. We
28854 were not setting the modifier state on KeyData, and we were
28855 not generating any events when Alt was pressed with a key
28856 since handling of WM_SYSxxx was missing for the OnKey methods.
28858 2005-12-07 Jackson Harper <jackson@ximian.com>
28860 * MdiChildContext.cs: reenable the sizing code.
28861 - When the mouse leaves a window reset its cursor.
28863 2005-12-07 Alexander Olk <alex.olk@googlemail.com>
28865 * ThemeClearlooks.cs: Reflect latest Hwnd changes
28867 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
28869 * Hwnd.cs: Now using the theme 3d bordersize to calculate
28870 widths of Fixed3D borders
28872 2005-12-07 Jackson Harper <jackson@ximian.com>
28874 * MdiClient.cs: Fix warnings. Earn Mike's love.
28876 2005-12-07 Alexander Olk <alex.olk@googlemail.com>
28878 * ThemeClearlooks.cs:
28879 - Adjusted mouse over button color
28880 - Added first parts of CheckBox drawing
28881 - Added correct color for selected text background
28882 - Fixed ComboBox drawing
28883 - Added CPDrawBorder3D and CPDrawBorder
28885 2005-12-06 Peter Dennis Bartok <pbartok@novell.com>
28887 * XplatUIX11.cs: Added call to XBell for AudibleAlert
28889 2005-12-06 Peter Dennis Bartok <pbartok@novell.com>
28891 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
28892 XplatUIOSX.cs: Added AudibleAlert() method to have a means to
28893 alert users via sound. We could add an enum arg with different
28894 types of alerts in the future
28896 2005-12-06 Peter Dennis Bartok <pbartok@novell.com>
28898 * Control.cs: Fix behaviour problems pointed out by Mike
28900 2005-12-05 Mike Kestner <mkestner@novell.com>
28902 * StatusBarPanel.cs: add Invalidate method and hook it into all the
28903 prop setters. Calls parent.Refresh for now, but could be maybe be
28904 optimized with an internal method on StatusBar at some point.
28907 2005-12-05 Peter Dennis Bartok <pbartok@novell.com>
28909 * RichTextBox.cs: Implemented get_SelectionColor
28911 2005-12-05 Alexander Olk <alex.olk@googlemail.com>
28913 * ThemeClearlooks.cs:
28914 - Removed dead code
28915 - Draw black button border only if button is Form.AcceptButton
28916 - Draw correct button color for pressed RadioButton if the mouse
28917 has entered the button
28918 - Updated ProgressBar drawing!
28919 - Updated CPDrawSizeGrip drawing
28920 - Updated StatusBarPanel drawing
28922 2005-12-05 Mike Kestner <mkestner@novell.com>
28924 * Control.cs (PreProcessMessage): add Keys.Alt based on LParam value.
28925 * X11Keyboard.cs (SendKeyboardInput): formal lParam for alt mod.
28927 2005-12-04 Alexander Olk <alex.olk@googlemail.com>
28929 * ThemeClearlooks.cs: Initial check-in, activate with
28930 export MONO_THEME=clearlooks
28931 * ThemeEngine.cs: Added ThemeClearlooks
28933 2005-12-03 Mike Kestner <mkestner@novell.com>
28935 * MenuAPI.cs: deactivate menus prior to calling item.PerformClick.
28938 2005-12-02 Jackson Harper <jackson@ximian.com>
28940 * Form.cs: If the child form has no menu the default main menu is
28941 used as the active menu.
28943 2005-12-02 Peter Dennis Bartok <pbartok@novell.com>
28945 * ListBox.cs: Check if any items exist before trying to resolve
28946 coordinates into items
28948 2005-12-02 Peter Dennis Bartok <pbartok@novell.com>
28950 * ThemeWin32Classic.cs: Hatchbrush on Win32 seems to always use white
28951 as the second color for the background hatch
28953 2005-12-02 Peter Dennis Bartok <pbartok@novell.com>
28955 * TextBoxBase.cs: Now uses Jackson's new and improved ImplicitScrollbar
28956 * RichTextBox.cs: FormatText position arguments are 1-based, now making
28957 sure that what we pass to FormatText is always 1-based. Fixes #76885
28959 2005-11-29 Miguel de Icaza <miguel@novell.com>
28961 * NumericUpDown.cs (EndInit): When we are done initializing,
28962 reflect any updates on the UI.
28964 2005-12-02 Jackson Harper <jackson@ximian.com>
28966 * ImplicitHScrollBar.cs:
28967 * ImplicitVScrollBar.cs: New scrollbars that don't take focus from
28968 their container controls.
28969 * TreeView.cs: Use the new implicit scrollbars.
28971 2005-12-02 Jackson Harper <jackson@ximian.com>
28973 * TreeView.cs: Make top_node internal so the TreeNodeCollections
28975 * TreeNodeCollection.cs: If we remove the topnode we need to
28976 update topnode to the next node in line.
28977 - When clearing nodes go through the same process as removing
28978 them, so they get depareneted and checked if they are top node.
28980 2005-12-01 Jackson Harper <jackson@ximian.com>
28982 * TreeView.cs: When imagelists are used the image area is
28983 selectable as well as the text.
28984 - If there are no selected nodes select the first one.
28985 * TreeNodeCollection.cs: Getting the TreeView is mildly expensive,
28986 so don't do it more then we need to.
28988 2005-12-01 Jackson Harper <jackson@ximian.com>
28990 * ThemeWin32Classic.cs: Reimplement the scroll arrow drawing so
28991 that arrows can be scaled.
28993 2005-12-01 Jackson Harper <jackson@ximian.com>
28995 * TreeNode.cs : Fixed bugs that caused FullPathTest + Traverse to
28996 fail. Patch by Dieter Bremes
28998 2005-11-30 Jackson Harper <jackson@ximian.com>
29000 * Form.cs: Property is 2.0 only
29001 * PrintDialog.cs: Signature fix.
29003 2005-11-30 Peter Dennis Bartok <pbartok@novell.com>
29006 - No longer artificially moves text 2 pixels down (now that we have
29007 borders this is no longer needed)
29008 - Added calcs for left, hanging and right indent
29010 2005-11-23 Mike Kestner <mkestner@novell.com>
29012 * Menu.cs: mark MenuChanged internal, since it's not exposed by MS.
29014 2005-11-30 Jackson Harper <jackson@ximian.com>
29016 * MdiChildContext.cs: Set the cloned menus forms, as these don't
29017 get cloned as part of CloneMenu ().
29018 * Menu.cs: Make sure the parent of the items get set correctly
29019 when they are added. And the owners are notified of the changes.
29020 * Form.cs: Create an ActiveMenu property, so that when MDI is used
29021 we can change the menu being displayed/handled by the form without
29022 changing the menu assosciated with the form.
29023 - Don't let Mdi children draw/handle menus.
29025 2005-11-30 Jackson Harper <jackson@ximian.com>
29027 * Menu.cs: Switch the MenuChanged method to OnMenuChanged and add
29028 a MenuChanged event. Just to make the API a little more
29031 * MenuItem.cs: Use the new OnMenuChanged
29032 * MdiChildContext.cs: Handle menu merging.
29033 * Form.cs: Implement MergedMenu.
29035 2005-11-30 Jackson Harper <jackson@ximian.com>
29037 * Menu.cs: We were misusing Add. Add goes behind the specified
29038 index according to the docs, and does not replace the specified
29039 index. So I added an Insert method.
29041 2005-11-30 Peter Dennis Bartok <pbartok@novell.com>
29043 * TextBoxBase.cs: Implemented Ctrl-Ins (Copy), Shift-Ins (Paste) and
29044 Shift-Del (Cut), apparently Emacs uses these old Win 2.x keys. This
29046 * RichTextBox.cs: Added calls to base for DnD events
29048 2005-11-28 Peter Dennis Bartok <pbartok@novell.com>
29051 - Fixed drag-selection related crash; style fixes
29052 - Implemented undo class
29053 o Implemented method to capture document state for specified
29054 range in document tree
29055 o Implemented method to restore captured document state
29056 o Implemented cursor tracking
29057 o Implemented basic undo stack
29058 - Added undo cursor tracking to methods altering cursor location
29059 - Added undo tracking to selection deletion (still missing
29060 other text-altering hookups)
29062 - Added SelectionLength property
29063 - Implemented CanPaste()
29064 - Implemented Paste()
29065 - Added missing protected methods
29066 - Fixed RTF->Document conversion; now uses font index 0 and color
29067 index 0 as the default font for the parsed text
29068 - Fixed RTF<->Document font size translation
29069 - Fixed RTF generation, now properly handles cross-tag boundaries
29070 for single line selection
29071 - No longer always appends blank line to generated RTF
29073 - Added missing attributes
29074 - Hooked up undo-related methods
29076 - Implemented Copy()
29077 - Implemented Paste()
29078 - Implemented Cut()
29079 - Fixed caret mis-behaviour on backspace across line-boundaries
29081 2005-11-29 Jackson Harper <jackson@ximian.com>
29083 * MdiClient.cs: Add a method for activating mdi children. Very
29084 basic right now. I imagine someday it might need more girth.
29085 * MenuItem.cs: Implement MDI lists. When mdilist is true the mdi
29086 children windows names are added to the menu item.
29087 * ThemeWin32Classic.cs: Draw the arrow if the item is an
29088 mdilist. This happens regardless of whether or not there are any
29089 mdi windows to see in the list, and according to my tests happens
29090 before the items are even added. Also happens if there isn't even
29091 an mdi client to get windows from.
29093 2005-11-29 Alexander Olk <alex.olk@googlemail.com>
29095 * ThemeWin32Classic.cs: Make DrawFlatStyleRadioButton protected
29096 * ThemeNice.cs: Fix drawing of flatstyle radiobuttons
29098 2005-11-29 Jordi Mas i Hernandez <jordimash@gmail.com>
29100 * DataGridTableStyle.cs:
29101 - Create always the styles for the missing columns even if they are
29102 provided by the user (not default table style)
29105 - Fixes SetDataBinding (always re-attach source)
29106 - Fixes SetNewDataSource (only clear styles if they are not for
29108 - Expands OnTableStylesCollectionChanged to handle style refresh
29109 and remove properly
29111 2005-11-29 Jackson Harper <jackson@ximian.com>
29113 * FileDialog.cs: Implement missing bits, remove some dead
29115 * FontDialog.cs: Implement missing Apply stuff, and ToString. Move
29116 creation of the panel so that the options set on the dialog are
29117 seen when the panel is created.
29118 * TreeView.cs: raise a click when items are clicked.
29120 2005-11-29 Jackson Harper <jackson@ximian.com>
29122 * MdiClient.cs: Pass some signature methods through to base.
29124 2005-11-28 Jackson Harper <jackson@ximian.com>
29126 * ListView.cs: Raise the click event when items are clicked.
29128 2005-11-28 Jackson Harper <jackson@ximian.com>
29130 * MdiClient.cs: Make this algorithm even more beautiful. And fix
29133 2005-11-27 Alexander Olk <alex.olk@googlemail.com>
29135 * ThemeNice.cs: - Removed 1 pixel bitmaps
29136 - Use SmoothingMode.AntiAlias where it makes sense
29137 (ScrollButton arrow for example)
29138 - Enhanced Button focus drawing
29139 - Fixed ComboBox drawing (no artefacts anymore, focus
29140 rectangle is back again, reduced size of ComboButton, etc.)
29141 - Fixed RadioButton focus drawing for Appearence.Button
29142 - Slight ScrollButton redesign
29143 - Some LinearGradientBrush size fixes
29144 - GroupBoxes have now rounded edges
29145 - Fixed StatusBar drawing
29147 2005-11-25 Alexander Olk <alex.olk@googlemail.com>
29149 * ThemeNice.cs: - Remove dead code
29150 - use correct background colors for menus, etc.
29151 - Fake pixel drawing with 1 pixel bitmaps
29153 2005-11-24 Jackson Harper <jackson@ximian.com>
29155 * MdiClient.cs: Size the scrollbars when resizing the window.
29156 - Resize the maximized windows when the client is resized
29157 * Form.cs: Make the child context available
29159 2005-11-23 Jackson Harper <jackson@ximian.com>
29161 * MdiChildContext.cs: Don't size windows if they are maximized.
29163 2005-11-23 Mike Kestner <mkestner@novell.com>
29165 * ContextMenu.cs: use MenuTracker.
29166 * Control.cs: remove menu handle usage.
29167 * Form.cs: remove menu handle usage.
29168 * Hwnd.cs: remove menu handle usage.
29169 * MainMenu.cs: Draw method moved here from MenuAPI.DrawMenuBar. Proxy
29170 motion and clicks to the new Tracker handlers.
29171 * Menu.cs: add sizing accessors, SelectedItem prop, kill CreateItems
29173 * MenuAPI.cs: refactored to combine popup and menubar event handling.
29174 Killed the MENU and MENUITEM data types and associated collections
29175 since we now keep the info on Menu and MenuItem. Expanded TRACKER into
29176 MenuTracker class that exposes the leftovers from the old MenuAPI
29177 static methods. Restructured Capture handling so that only one grab is
29178 done for the entire menu hierarchy instead of handing off grabs to
29179 submenus. Tracker now has an invisible control to Capture when active.
29180 * MenuItem.cs: add sizing accessors, kill Create
29182 * Theme.cs: remove menu handle and MENU(ITEM) usage.
29183 * ThemeWin32Classic.cs: use Menu/MenuItem sizing props instead of
29184 MENU(ITEM). remove menu handle usage, use Menu directly.
29185 * XplatUIDriver.cs: remove menu handle usage.
29186 * XplatUIOSX.cs: remove menu handle usage.
29187 * XplatUIWin32.cs: remove menu handle usage.
29188 * XplatUIX11.cs: remove menu handle usage.
29190 2005-11-22 Jackson Harper <jackson@ximian.com>
29192 * Hwnd.cs: Don't compute the menu size for
29193 DefaultClientRectangle.
29194 - Reenable menu sizes being computed for GetClienRectangle.
29195 * Form.cs: Remove comment of trechery
29197 2005-11-22 Jackson Harper <jackson@ximian.com>
29199 * Hwnd.cs: The adjustments for the menu bar are made when it is
29200 attached to the form.
29202 2005-11-19 Jackson Harper <jackson@ximian.com>
29204 * XplatUIX11.cs: Create an HGRN of the invalid area for WM_NCPAINT
29205 (just like on windows).
29207 2005-11-19 Jackson Harper <jackson@ximian.com>
29209 * MdiChildContext.cs: Handle all the buttons ourselves. We can't
29210 use real buttons anymore because they are in non client area. The
29211 one TODO here is that I need to somehow invalidate a section of
29212 the non client area.
29214 2005-11-18 Jackson Harper <jackson@ximian.com>
29216 * Control.cs: Put the enum check back in now that MDI doesnt have
29217 to use this to set border styles.
29218 * Form.cs: Only set mdi child windows borders if the handle has
29220 * MdiChildContext.cs: Don't set the InternalBorderStyle, just pass
29221 this directly on to the driver.
29222 - Get the move start position before adjusting for the titlebar
29223 height, this fixes the windows "skipping" when they are first
29226 2005-11-18 Jackson Harper <jackson@ximian.com>
29228 * XplatUIX11.cs: Just compute the mdi borders separately as they
29229 don't totally match up with normal form borders.
29231 2005-11-18 Jackson Harper <jackson@ximian.com>
29233 * Control.cs: Set WS_ styles for borders, so that the driver does
29234 not have to retrieve the control instance to figure out what kind
29235 of borders it should have.
29236 * Form.cs: Set the WS_EX_MDICHILD flag on mdi children, so the
29237 driver can know its an mdi child easily.
29238 * XplatUIX11.cs: Get the border styles and whether the window is
29239 MDI from the Styles and ExStyles params instead of having to get a
29240 control. This prevents a chicken and egg problem.
29242 2005-11-18 Jackson Harper <jackson@ximian.com>
29244 * MdiClient.cs: Fix typo so scrollbars show up correctly.
29246 2005-11-18 Jackson Harper <jackson@ximian.com>
29248 * MdiClient.cs: Calculate when to add and remove scrollbars
29250 * MdiChildContext.cs: Adjust the y position to take the titlebar
29252 - No height for FormBorderStyle.None
29254 2005-11-18 Jackson Harper <jackson@ximian.com>
29256 * Control.cs: Allow non enum values to be used for
29257 InternalBorderStyle. MDI does this to set a special border style.
29258 - New utility methods for converting points to/from client coords
29259 - Add the newly created control to the Controls collection before
29260 updating its style. This way UpdateStyle can walk the control
29261 heirarchy to find the control if needed.
29262 so I don't need to create a new Point object all the time.
29263 * Form.cs: Let MDI windows handle their border styles.
29264 - Set styles on MDI windows so the correct title style is derived.
29265 * MdiChildContext.cs: Move all the painting and window handling
29266 into the non client area.
29267 - Use correct sizing and put correct buttons on frames based on
29268 the FormBorderStyle.
29269 - Notify the mdi client about scrolling
29270 - Need to handle the buttons ourselves now, because they are all
29271 in non client areas and we can't add controls there.
29272 * MdiClient.cs: Halfway to scrolling, this implementation is
29273 somewhat broken though, we need to check to make sure other
29274 windows aren't causing scrolling before removing the bars. Also
29275 the bars need to be drawn on top, maybe I can switch implicit
29276 controls to be on top.
29277 * Hwnd.cs: caption_height and tool_caption_height are now
29278 properties of an hwnd, this way they can be set by the driver
29279 based on the type of window they are. In X11 the window manager
29280 handles the decorations so caption_height is zero unless its an
29282 - Add 3 pixel borders for MDI windows (0xFFFF).
29283 - Get rid of some code duplication, have DefaultClientRectanle
29284 just call GetClientRectangle.
29285 * XplatUIX11.cs: Pass caption_height and tool_caption_height to
29287 - Set border styles differently for mdi windows.
29288 * XplatUIOSX.cs: Pass caption_height and tool_caption_height to
29291 2005-11-15 Mike Kestner <mkestner@novell.com>
29293 * Menu.cs: when adding an item to the collection, if item is already
29294 parented, remove it from the parent.
29296 2005-11-13 Alexander Olk <alex.olk@googlemail.com>
29298 * X11DesktopColors.cs: Added KDE support
29300 2005-11-11 Peter Dennis Bartok <pbartok@novell.com>
29303 - Clipboard methods now can translate Rtf format
29304 - No longer removes clipboard contents whenever a new format is added
29305 to allow placing multiple formats on the clipboard
29306 * Clipboard.cs: Clipboard now supports getting a IDataObject and
29307 will place all formats contained in it onto the clipboard. Also
29308 now cleans the clipboard before placing a new object onto it
29310 - Implemented set_Rtf
29311 - Implemented set_SelectedRtf
29312 - Created InsertRTFFromStream() method to allow single code base
29313 for all properties and methods that insert RTF into document
29314 - Removed debug output
29316 - Fixed Delete(int) to fix up line numbers
29317 - Fixed ReplaceSelection to combine start and end line
29318 - Fixed serious DeleteChars bug that would leave the document tree
29320 - Improved DumpTree with several logic checks to detect broken
29322 - Removed debug lines
29323 - Fixed Caret.WordForward/WordBack moving code, now always also
29324 updates caret.tag (fixes crash when word-selecting across tag
29325 boundaries via keyboard)
29326 - Added Insert() method for inserting multiline text into documents
29327 - Fixed DeleteChars() calculation errors that would cause a broken
29328 tag chain with multiple tag lines
29329 - DeleteChars() no longer crashes on multi-tag lines if not all tags
29330 - Split() no longer moves caret if split is at caret location
29331 - ReplaceSelection() now updates the cursor and re-displays it
29332 - ReplaceSelection() now uses new Insert() method to avoid code
29334 - FormatText() can now handle formatting partial lines
29336 - Append now uses new TextControl.Insert() method (this avoids
29338 - Implemented Ctrl-X (Cut) (
29339 - Implemented Ctrl-C (Copy)
29340 - Implemented Ctrl-V (Paste) (Still some bugs related to screen
29341 regeneration when pasting text; roundtripping Copy&Paste within
29342 edit control still fails due to some calculation bugs in GenerateRTF)
29343 - The Delete key will now remove the current selection if it is visible
29344 * TextBox.cs: Removed debug lines
29345 * XplatUI.cs: Trigger initialization of DataFormats (which requires the
29346 driver to be initialized and can't therefore be done via a static ctor)
29348 2005-11-10 Peter Dennis Bartok <pbartok@novell.com>
29350 * TextControl.cs: Added backend code for finding char arrays and strings
29352 - Added mouse wheel scroll support
29353 - Added support for VScroll and HScroll events
29355 - Implemented all seven Find() variants
29356 - Implemented GetCharFromPosition()
29357 - Implemented GetCharIndexFromPosition()
29358 - Implemented GetLineFromIndex()
29359 - Implemented GetPositionFromCharIndex();
29360 - Implemented SaveFile for PlainText and UnicodeText
29361 - Fixed set_Font, now setting a new font applies that font to
29363 - Implemented generic Document to RTF converter
29364 - Implemented SaveFile for RichText format (still missing unicode
29365 conversion for non-ansi chars)
29366 - Implemented get_Rtf
29367 - Implemented get_SelectedRtf
29369 2005-11-09 Peter Dennis Bartok <pbartok@novell.com>
29371 * Control.cs (WndProc): Call HandleClick after having sent OnMouseUp
29372 to allow any captures to be released before triggering OnClick. This
29373 way a click handler may capture the mouse without interference.
29374 * XplatUIX11.cs: Always send mouse messages to grab window if one exists.
29375 This way we send them even though X may not allow a grab (if the window
29376 isn't visible, for example)
29378 2005-11-08 Pedro Martinez Julia <pedromj@gmail.com>
29380 * DataGridViewRowEventArgs.cs: DataGridView implementation
29381 * DataGridViewElement.cs: DataGridView implementation
29382 * DataGridViewComboBoxCell.cs: DataGridView implementation
29383 * DataGridViewDataErrorContexts.cs: DataGridView implementation
29384 * DataGridViewCellErrorTextNeededEventArgs.cs: DataGridView implementation
29385 * DataGridViewColumnHeadersHeightSizeMode.cs: DataGridView implementation
29386 * ImageLayout.cs: DataGridView implementation
29387 * DataGridViewComboBoxColumn.cs: DataGridView implementation
29388 * DataGridViewCellMouseEventHandler.cs: DataGridView implementation
29389 * DataGridViewSelectionMode.cs: DataGridView implementation
29390 * IDataGridViewEditingControl.cs: DataGridView implementation
29391 * DataGridViewSortCompareEventHandler.cs: DataGridView implementation
29392 * DataGridViewCellStyleContentChangedEventHandler.cs: DataGridView implementation
29393 * DataGridViewAutoSizeModeEventHandler.cs: DataGridView implementation
29394 * DataGridViewColumnStateChangedEventHandler.cs: DataGridView implementation
29395 * DataGridViewColumnSortMode.cs: DataGridView implementation
29396 * DataGridView.cs: DataGridView implementation
29397 * DataGridViewRowStateChangedEventHandler.cs: DataGridView implementation
29398 * DataGridViewRowPostPaintEventArgs.cs: DataGridView implementation
29399 * DataGridViewDataErrorEventArgs.cs: DataGridView implementation
29400 * Padding.cs: DataGridView implementation
29401 * DataGridViewCellParsingEventArgs.cs: DataGridView implementation
29402 * DataGridViewCellStateChangedEventHandler.cs: DataGridView implementation
29403 * DataGridViewRowEventHandler.cs: DataGridView implementation
29404 * DataGridViewCellPaintingEventHandler.cs: DataGridView implementation
29405 * DataGridViewCellFormattingEventHandler.cs: DataGridView implementation
29406 * DataGridViewButtonCell.cs: DataGridView implementation
29407 * DataGridViewCellStyleContentChangedEventArgs.cs: DataGridView implementation
29408 * DataGridViewEditMode.cs: DataGridView implementation
29409 * DataGridViewCellValueEventArgs.cs: DataGridView implementation
29410 * DataGridViewRowCancelEventArgs.cs: DataGridView implementation
29411 * DataGridViewRowHeadersWidthSizeMode.cs: DataGridView implementation
29412 * DataGridViewCheckBoxColumn.cs: DataGridView implementation
29413 * DataGridViewCellToolTipTextNeededEventHandler.cs: DataGridView implementation
29414 * DataGridViewAutoSizeColumnsMode.cs: DataGridView implementation
29415 * DataGridViewCellEventHandler.cs: DataGridView implementation
29416 * DataGridViewEditingControlShowingEventHandler.cs: DataGridView implementation
29417 * DataGridViewCellStyleConverter.cs: DataGridView implementation
29418 * DataGridViewSelectedRowCollection.cs: DataGridView implementation
29419 * DataGridViewBindingCompleteEventHandler.cs: DataGridView implementation
29420 * DataGridViewColumnEventArgs.cs: DataGridView implementation
29421 * DataGridViewRowHeightInfoPushedEventHandler.cs: DataGridView implementation
29422 * DataGridViewRowContextMenuStripNeededEventHandler.cs: DataGridView implementation
29423 * QuestionEventArgs.cs: DataGridView implementation
29424 * IDataGridViewEditingCell.cs: DataGridView implementation
29425 * DataGridViewTriState.cs: DataGridView implementation
29426 * DataGridViewColumnDesignTimeVisibleAttribute.cs: DataGridView implementation
29427 * DataGridViewCellStateChangedEventArgs.cs: DataGridView implementation
29428 * DataGridViewColumnCollection.cs: DataGridView implementation
29429 * DataGridViewCellValueEventHandler.cs: DataGridView implementation
29430 * DataGridViewRowDividerDoubleClickEventHandler.cs: DataGridView implementation
29431 * DataGridViewCellFormattingEventArgs.cs: DataGridView implementation
29432 * DataGridViewColumn.cs: DataGridView implementation
29433 * DataGridViewCellBorderStyle.cs: DataGridView implementation
29434 * DataGridViewCellContextMenuStripNeededEventHandler.cs: DataGridView implementation
29435 * DataGridViewCellValidatingEventArgs.cs: DataGridView implementation
29436 * DataGridViewRow.cs: DataGridView implementation
29437 * DataGridViewImageCellLayout.cs: DataGridView implementation
29438 * DataGridViewImageCell.cs: DataGridView implementation
29439 * DataGridViewTopLeftHeaderCell.cs: DataGridView implementation
29440 * DataGridViewCheckBoxCell.cs: DataGridView implementation
29441 * DataGridViewHeaderCell.cs: DataGridView implementation
29442 * DataGridViewCellErrorTextNeededEventHandler.cs: DataGridView implementation
29443 * DataGridViewRowHeightInfoPushedEventArgs.cs: DataGridView implementation
29444 * DataGridViewAutoSizeColumnsModeEventHandler.cs: DataGridView implementation
29445 * DataGridViewTextBoxColumn.cs: DataGridView implementation
29446 * QuestionEventHandler.cs: DataGridView implementation
29447 * DataGridViewCellStyleScopes.cs: DataGridView implementation
29448 * DataGridViewSortCompareEventArgs.cs: DataGridView implementation
29449 * DataGridViewCellContextMenuStripNeededEventArgs.cs: DataGridView implementation
29450 * DataGridViewCell.cs: DataGridView implementation
29451 * DataGridViewCellEventArgs.cs: DataGridView implementation
29452 * DataGridViewClipboardCopyMode.cs: DataGridView implementation
29453 * DataGridViewCellStyle.cs: DataGridView implementation
29454 * DataGridViewColumnHeaderCell.cs: DataGridView implementation
29455 * DataGridViewRowPrePaintEventHandler.cs: DataGridView implementation
29456 * DataGridViewRowCancelEventHandler.cs: DataGridView implementation
29457 * TextFormatFlags.cs: DataGridView implementation
29458 * DataGridViewCellToolTipTextNeededEventArgs.cs: DataGridView implementation
29459 * DataGridViewDataErrorEventHandler.cs: DataGridView implementation
29460 * DataGridViewAdvancedCellBorderStyle.cs: DataGridView implementation
29461 * DataGridViewCellPaintingEventArgs.cs: DataGridView implementation
29462 * DataGridViewButtonColumn.cs: DataGridView implementation
29463 * DataGridViewRowsRemovedEventArgs.cs: DataGridView implementation
29464 * HandledMouseEventArgs.cs: DataGridView implementation
29465 * DataGridViewCellParsingEventHandler.cs: DataGridView implementation
29466 * DataGridViewColumnDividerDoubleClickEventHandler.cs: DataGridView implementation
29467 * DataGridViewCellMouseEventArgs.cs: DataGridView implementation
29468 * DataGridViewAutoSizeRowsMode.cs: DataGridView implementation
29469 * DataGridViewRowCollection.cs: DataGridView implementation
29470 * DataGridViewAdvancedBorderStyle.cs: DataGridView implementation
29471 * DataGridViewCellCancelEventHandler.cs: DataGridView implementation
29472 * DataGridViewHitTestType.cs: DataGridView implementation
29473 * DataGridViewAutoSizeModeEventArgs.cs: DataGridView implementation
29474 * DataGridViewColumnStateChangedEventArgs.cs: DataGridView implementation
29475 * DataGridViewColumnEventHandler.cs: DataGridView implementation
29476 * DataGridViewRowDividerDoubleClickEventArgs.cs: DataGridView implementation
29477 * DataGridViewAutoSizeRowMode.cs: DataGridView implementation
29478 * DataGridViewRowHeightInfoNeededEventArgs.cs: DataGridView implementation
29479 * DataGridViewRowsDeletedEventArgs.cs: DataGridView implementation
29480 * DataGridViewTextBoxEditingControl.cs: DataGridView implementation
29481 * DataGridViewContentAlignment.cs: DataGridView implementation
29482 * DataGridViewRowPostPaintEventHandler.cs: DataGridView implementation
29483 * DataGridViewComboBoxEditingControl.cs: DataGridView implementation
29484 * DataGridViewCellValidatingEventHandler.cs: DataGridView implementation
29485 * DataGridViewSelectedColumnCollection.cs: DataGridView implementation
29486 * DataGridViewPaintParts.cs: DataGridView implementation
29487 * DataGridViewCellCollection.cs: DataGridView implementation
29488 * DataGridViewRowsAddedEventArgs.cs: DataGridView implementation
29489 * DataGridViewImageColumn.cs: DataGridView implementation
29490 * DataGridViewRowsRemovedEventHandler.cs: DataGridView implementation
29491 * DataGridViewElementStates.cs: DataGridView implementation
29492 * DataGridViewRowHeightInfoNeededEventHandler.cs: DataGridView implementation
29493 * DataGridViewColumnDividerDoubleClickEventArgs.cs: DataGridView implementation
29494 * DataGridViewRowPrePaintEventArgs.cs: DataGridView implementation
29495 * DataGridViewRowStateChangedEventArgs.cs: DataGridView implementation
29496 * DataGridViewEditingControlShowingEventArgs.cs: DataGridView implementation
29497 * DataGridViewCellCancelEventArgs.cs: DataGridView implementation
29498 * DataGridViewRowHeaderCell.cs: DataGridView implementation
29499 * DataGridViewBindingCompleteEventArgs.cs: DataGridView implementation
29500 * DataGridViewTextBoxCell.cs: DataGridView implementation
29501 * DataGridViewBand.cs: DataGridView implementation
29502 * DataGridViewAutoSizeColumnModeEventArgs.cs: DataGridView implementation
29503 * DataGridViewHeaderBorderStyle.cs: DataGridView implementation
29504 * DataGridViewRowsAddedEventHandler.cs: DataGridView implementation
29505 * DataGridViewAutoSizeColumnMode.cs: DataGridView implementation
29506 * DataGridViewAutoSizeColumnModeEventHandler.cs: DataGridView implementation
29507 * DataGridViewAutoSizeColumnsModeEventArgs.cs: DataGridView implementation
29508 * DataGridViewRowErrorTextNeededEventHandler.cs: DataGridView implementation
29509 * DataGridViewSelectedCellCollection.cs: DataGridView implementation
29510 * DataGridViewRowContextMenuStripNeededEventArgs.cs: DataGridView implementation
29511 * DataGridViewRowErrorTextNeededEventArgs.cs: DataGridView implementation
29512 * DataGridViewComboBoxDisplayStyle.cs: DataGridView implementation
29514 2005-11-08 Peter Dennis Bartok <pbartok@novell.com>
29516 * ThemeWin32Classic.cs:
29517 - Draw the outside focus rectangle around buttons
29518 - Use CPDrawFocusRectangle to draw focus rectangles until Cairo
29519 doesn't use end caps for every dash of a line anymore. This
29520 workaround ignores the forecolor.
29522 2005-11-08 KornĂ©l PĂ¡l <kornelpal@hotmail.com>
29524 * ImageList.cs: Don't use ArgbColor with LayoutKind.Explicit as it isn't
29527 2005-11-07 Jackson Harper <jackson@ximian.com>
29529 * X11Dnd.cs: Set the X/Y positions on the DragEventArgs correctly.
29531 2005-11-07 Jackson Harper <jackson@ximian.com>
29533 * ScrollableControl.cs: Calculate the maximum and change vars
29534 (more) correctly so that scrollbars appear as a sensible size.
29536 2005-11-04 Jackson Harper <jackson@ximian.com>
29538 * TreeNodeCollection.cs: Refresh when nodes are cleared from the
29540 * TreeView.cs: When the tree is sorted null out the top_node so
29541 that it is recalculated.
29542 - Use dotted lines instead of dashed lines to match MS better.
29544 2005-11-04 Jordi Mas i Hernandez <jordimash@gmail.com>
29547 - Implements key search for items. Useful when browsing files with FileDialog
29548 - When changing view mode or when clear the items reset scrollbar positions
29550 2005-11-04 Jackson Harper <jackson@ximian.com>
29552 * CurrencyManager.cs: Implement the MetaDataChanged event, the
29553 Reset method, and the CheckEmpty. CheckEmpty is just a total guess
29554 as to what the method may do as there is no real way of creating a
29555 derived CurrencyManager and calling the method.
29557 2005-11-03 Jackson Harper <jackson@ximian.com>
29559 * ThemeWin32Classic.cs: Implement ownerdrawing in the tab control
29560 * TabControl.cs: Add Ownerdrawing bits, add the UpdateTabSelection
29561 method which seems to just be used internally to refresh the tabs.
29563 2005-11-03 Jackson Harper <jackson@ximian.com>
29565 * TabControl.cs: Implement the remove method. Fix some broken
29568 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
29570 * DateTimePicker.cs:
29571 - Added missing DateTimePickerAccessibleObject class
29572 - Added missing events
29573 - Added OnFontChanged method
29574 * Form.cs: Added missing attributes
29575 * TreeView.cs: Added missing attributes
29577 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
29579 * GridItemCollection.cs: Fix signatures
29581 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
29583 * XplatUI.cs: Updated build rev/date
29584 * ComboBox.cs, DataGridTextBoxColumn.cs Control.cs,
29585 DataGridTableStyle.cs, DataGrid.cs, DateTimePicker.cs: Signature fixes
29586 * Application.cs: Trigger context-specific ExitThread events
29588 2005-11-03 Jackson Harper <jackson@ximian.com>
29592 * GridTableStylesCollection.cs:
29597 * MonthCalendar.cs: Signature fixes
29599 2005-11-03 Jackson Harper <jackson@ximian.com>
29601 * TreeNodeCollection.cs: Remove should not be virtual.
29602 * TreeView.cs: Implement the last of the missing methods.
29604 2005-11-03 Jackson Harper <jackson@ximian.com>
29606 * TreeNodeConverter.cs: Implement to get off my class-status back.
29608 2005-11-03 Jackson Harper <jackson@ximian.com>
29610 * TreeView.cs: Hookup the bits for drag and drop.
29611 * TreeNode.cs: Don't cache the tree_view or index anymore, now
29612 that nodes can be moved from tree to tree easily this just causes
29613 all sorts of problems.
29614 * TreeNodeCollection: Don't need to give treenodes an index and
29615 treeview anymore when they are added, these are computed on the
29616 fly. Also make sure to remove a node before its added.
29618 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
29621 - Added CaretSelection enum
29622 - Added comparison methods to Marker struct, makes selection code
29624 - Added SelectionStart and SelectionEnd as 'moveable' location for
29625 the CaretDirection enum and handler
29626 - Added selection_prev variable to track optimized invalidation for
29627 word and line selection
29628 - Added SelectionVisible property (returns true if there is a valid
29630 - Switched CaretHasFocus to only display the caret if there is no
29632 - Avoiding StringBuilder.ToString to retrieve a single char, instead
29633 using the direct character index; should be much faster
29634 - Added various conditional debug statements
29635 - Fixed invalidation calculation for selection ranges
29636 - Added ExpandSelection() method to support word and line selection
29637 - Switched SetSelectionToCaret to use new Marker compare overloads
29638 - Added central IsWordSeparator() method to determine word
29639 separators/whitespace and FindWordSeparator() to streamline common
29640 usage of IsWordSeparator()
29642 - Removed unneeded grabbed variable, it was just mirroring
29644 - No longer firing OnTextChanged event when Text setter is called,
29645 since the base will fire the event for us
29646 - Added handling of Ctrl-Up/Down selection
29647 - Added handling of Shift-Cursorkey selection
29648 - Added handling for Ctrl-Delete and Ctrl-Backspace to remove
29650 - Added handling of Shift and Ctrl-Shift-Home/End selection
29651 - Removed some debug output
29652 - Added handling for single/double/tripple-click to place caret/
29653 select word/select line respectively (Fixes bug #76031)
29654 - Added support for drag expansion of word/line selection
29655 * RichTextBox.cs: Handle GotFocus event to trigger redrawing of
29658 2005-11-02 Jackson Harper <jackson@ximian.com>
29660 * X11Dnd.cs: If the drag is going to and from a MWF window just
29661 copy the data instead of sending it out through the X Selection
29664 2005-11-02 Jackson Harper <jackson@ximian.com>
29667 * XplatUIX11.cs: When in a drag we don't want motion notify
29668 messages to get passed on to the other controls. This prevents
29669 mouse move messages from showing up in the drag source.
29671 2005-11-02 Jackson Harper <jackson@ximian.com>
29673 * X11Dnd.cs: Remove unneeded call to XAllowEvents. Make sure that
29674 the correct button is release to end a drag.
29675 * XplatUIX11.cs: Make the button state internal so the drag system
29676 can access it. Dragging needs to know about all button releases,
29677 not just left button.
29679 2005-11-02 Miguel de Icaza <miguel@novell.com>
29681 * Form.cs (Icon): If the icon is null, reset the icon to the
29684 * Cursor.cs: When writing the AND-mask bitmap do not include the
29685 number of colors, but hardcode those to two (black and white),
29686 fixes the loading of color cursors (Paint Dot Net).
29688 * Form.cs: To debug, allow MONO_MWF_SCALING=disable variable to
29689 turn off autoscaling.
29691 * Cursor.cs: Allow resource type to be 1 or 2 (from ImageMagic).
29693 2005-11-02 Jackson Harper <jackson@ximian.com>
29695 * X11Dnd.cs: Make sure to send a status message if the pointer
29696 enters a control that can not accept a drop, otherwise the cursor
29697 isn't updated correctly. Also tried to compress the lines of code
29700 2005-11-02 Jackson Harper <jackson@ximian.com>
29702 * X11Dnd.cs: Change cursors based on drag action. Also attempt to
29703 set actions correctly. This isn't perfect as XDND and win32 have
29704 some differences on how you allow actions. I'll clear this up by
29705 adding a path for drag from MWF to MWF windows.
29706 * XplatUIX11.cs: Hook into the dnd system.
29708 2005-11-02 Jordi Mas i Hernandez <jmas@softcatala.org>
29710 * ListView.cs: Fixes scroll bar visibility. Hide them if they were
29711 previously shown but they are no longer need it. Very obvious when
29712 browsing files with FileDialog.
29714 2005-11-01 Peter Dennis Bartok <pbartok@novell.com>
29716 * Control.cs: We always need to call OnPaintBackground. We pretty much
29717 ignore AllPaintingInWmPaint and always do the painting there, whether
29718 it's set or not, since we always ignore the WM_ERASEBKGND message
29719 (which we don't generate on X11). This fixes #76616.
29720 * Panel.cs: Removed unneeded background painting. This happens properly
29721 in Control.cs already
29723 2005-10-31 Mike Kestner <mkestner@novell.com>
29725 * Menu.cs: Add items to collection before setting their index.
29726 * MenuItem.cs : add range checking with ArgumentException like MS.
29729 2005-10-31 Jackson Harper <jackson@ximian.com>
29731 * ListBox.cs: Invalidate if the area is visible at all not just
29732 contained in the visible rect. Fixes unselection of semi visible
29735 2005-10-31 Jackson Harper <jackson@ximian.com>
29737 * Control.cs: Consistently name the dnd methods. Make them
29738 internal so we can override them to match some MS behavoir
29740 * Win32DnD.cs: Use the new consistent names.
29742 2005-10-31 Jackson Harper <jackson@ximian.com>
29744 * TreeView.cs: Don't draw the selected node when we lose focus.
29746 2005-10-31 Jackson Harper <jackson@ximian.com>
29748 * X11Dnd.cs: We still need to reset the state even though a full
29749 reset isn't being done, otherwise status's still get sent all over
29752 2005-10-31 Jackson Harper <jackson@ximian.com>
29754 * Control.cs: Make the dnd_aware flag internal so the dnd
29755 subsystem can check it. Catch exceptions thrown in dnd handlers to
29757 * Hwnd.cs: Add a flag for whether or not a window is dnd aware.
29758 * X11Dnd.cs: Handle null data in the converters. Set the XDND
29759 version when sending a XdndEnter. Use the control/hwnd dnd_aware
29760 flags to reduce the number of dnd enters/status's sent.
29762 2005-10-31 Jackson Harper <jackson@ximian.com>
29764 * X11Dnd.cs: Don't need the sizeof here. Patch by Jordi Mas.
29766 2005-10-31 Jordi Mas i Hernandez <jordi@ximian.com>
29768 * PictureBox.cs: Fixes 76512
29770 2005-10-28 Jackson Harper <jackson@ximian.com>
29772 * X11Dnd.cs: Early implementation to support winforms being a drag
29773 source for data on X11. Also restructured the converters so they
29774 can go both ways now.
29775 * XplatUIX11.cs: Tie ins to the the Dnd stuff.
29777 2005-10-27 Peter Dennis Bartok <pbartok@novell.com>
29779 * XplatUIX11.cs: Fixed FIXME - implemented ASCII encoding for XA_STRING
29782 2005-10-27 Jackson Harper <jackson@ximian.com>
29784 * TreeNode.cs: Implement serialization so my DnD examples will work.
29786 2005-10-24 KornĂ©l PĂ¡l <kornelpal@hotmail.com>
29788 * ButtonBase.cs, ListView.cs, NotifyIcon.cs, PictureBox.cs, ToolBar.cs,
29789 TreeView.cs: Don't dispose objects that are not owned.
29791 2005-10-24 Peter Dennis Bartok <pbartok@novell.com>
29793 * Cursor.cs: Defaulting the Current cursor to Cursors.Default. We
29794 should retrieve the current cursor and report that, but XplatUI
29795 doesn't (yet) have an interface for that (and I'm not sure I even
29797 * XplatUIWin32.cs: Fixed override behaviour. The override is temporary,
29798 until any message loop processing is done (and the WM_SETCURSOR
29799 replaces the cursor to the proper one)
29801 - Fixed override behaviour, we can't set the cursor globally on X11,
29802 just for our windows.
29803 - Invalidating the System.Drawing X11 display handle when we are
29805 * Control.cs: Fix to make csc happy
29807 2005-10-23 Peter Dennis Bartok <pbartok@novell.com>
29810 - get_Text: Add last line (without trailing newline) to returned
29811 value (Fixes 76212)
29812 - get_TextLength: Count last line in returned length
29813 - ToString: Call Text property instead of duplicating code
29815 2005-10-23 KornĂ©l PĂ¡l <kornelpal@hotmail.com>
29817 * ImageList.cs: Dispose ImageAttributes objects.
29819 2005-10-22 KornĂ©l PĂ¡l <kornelpal@hotmail.com>
29821 * ImageList.cs: Use attribute constructors with less arguments where
29824 2005-10-22 KornĂ©l PĂ¡l <kornelpal@hotmail.com>
29826 * ImageList.cs: Added lastKeyIndex field and use in IndexOfKey.
29827 Use typeof instead of strings when assembly is referenced. Added
29828 some more comments.
29830 2005-10-21 Jackson Harper <jackson@ximian.com>
29832 * ListView.cs: Raise a double click event. Also tried to somewhat
29833 fix when the selectedindexchanged event is raised. Its still
29836 2005-10-21 Jackson Harper <jackson@ximian.com>
29838 * TreeView.cs: New method to invalidate the plus minus area of a
29839 node without invalidating the whole node (maybe this can be used
29840 in some more places).
29841 * TreeNodeCollection.cs: When adding to an empty node we need to
29842 invalidate its plus minus area so the little block shows up.
29844 2005-10-21 Jackson Harper <jackson@ximian.com>
29846 * TreeView.cs: Make sure that when we invalidate a node the bounds
29847 are big enough to cover the selected box and the focus
29848 rectangle. Use a different colour for the lines connecting nodes
29849 so they show up with all themes.
29851 2005-10-21 Peter Dennis Bartok <pbartok@novell.com>
29853 * NativeWindow.cs: Don't call anything that could call into the driver,
29854 we might be on a different thread.
29856 2005-10-21 Peter Dennis Bartok <pbartok@novell.com>
29858 * Control.cs(Dispose): Since Dispose might run on a different thread,
29859 make sure that we call methods that could call into the driver via
29860 invoke, to avoid thread issues
29862 2005-10-21 Peter Dennis Bartok <pbartok@novell.com>
29864 * XplatUI.cs: Removed finalizer
29865 * XplatUIX11.cs: Removed Destructor, was causing crashes due to X11
29866 not allowing to be called on the finalizer thread.
29868 2005-10-21 KornĂ©l PĂ¡l <kornelpal@hotmail.com>
29871 - Reverted r51889 and r51891.
29872 - Added ImageListItem class that stores unmodified image items and image
29873 properties required to create list images until handle is created.
29874 - Added AddItem and moved image creation logic to AddItemInternal.
29875 - Added CreateHandle method that creates images based on unmodified items.
29876 - Added DestroyHandle that changes state to store unmodified items.
29877 - Add and AddStrip methods no more create handle.
29878 - ReduceColorDepth has no return value.
29879 - Dispose destroys handle.
29880 - Modified other methods to reflect the above changes.
29881 - Implemented key support.
29882 - Added profile 2.0 members and attributes.
29883 - Added private Reset and ShouldSerialize methods that provide the same
29884 behavior as MS.NET but the Visual Studio .NET designer seems to ignore
29885 them as they are private.
29886 - Added some more comments about implementation details.
29888 2005-10-21 Jordi Mas i Hernandez <jordi@ximian.com>
29890 * DataGrid.cs: Adds support for vertical scrolling using the mousewheel
29892 2005-10-21 Jordi Mas i Hernandez <jordi@ximian.com>
29894 * Binding.cs: No PushData/PullData if there is no binding (fixes crash)
29896 2005-10-21 Jordi Mas i Hernandez <jordi@ximian.com>
29898 * DataGridDrawingLogic.cs: Fixes column hit calcultation
29899 * DataGridColumnStyle.cs: Remove debug message
29901 2005-10-20 Jackson Harper <jackson@ximian.com>
29903 * TreeView.cs: We can always get input keys regardless of whether
29904 or not editing is enabled. They are used for navigation.
29906 2005-10-20 Jackson Harper <jackson@ximian.com>
29908 * TreeNode.cs: Use the viewport rect for determining if a node
29909 needs to be moved for visibility. Don't use Begin/End edit. This
29910 calls a full refresh when its done.
29911 * TreeView.cs: New SetBottom works correctly. Make the viewport
29912 rect property internal so the treenodes can see it. When clicking
29913 on a node we need to ensure that its visible because it might just
29914 be partly visible when clicked.
29916 2005-10-20 Jackson Harper <jackson@ximian.com>
29918 * TreeNodeCollection.cs: Remove debug code.
29920 2005-10-20 Jordi Mas i Hernandez <jordi@ximian.com>
29922 * Datagrid.cs: Implements column sorting in Datagrid
29923 * DataGridColumnStyle.cs: Implements column sorting in Datagrid
29925 2005-10-20 Jackson Harper <jackson@ximian.com>
29927 * TreeNodeCollection.cs: Remove items properly. Update the correct
29928 area after removing them.
29930 2005-10-20 Jordi Mas i Hernandez <jordi@ximian.com>
29932 * Datagrid.cs: Should not call base.OnPaintBackground
29934 2005-10-20 Peter Dennis Bartok <pbartok@novell.com>
29936 * XplatUIX11.cs (GetMessage):
29937 - Now properly calculates NC_xBUTTONDOWN coordinates off the whole
29938 window instead of client window
29939 - Now properly calculates NC_xBUTTONUP message coordinates
29940 - ScreenToMenu now properly calculates it's coordinates of whole
29941 window, since menus are in the whole window, not in the client
29943 - Added WholeToScreen coordinate translation method
29945 2005-10-20 Peter Dennis Bartok <pbartok@novell.com>
29947 * XplatUIX11.cs (GetMessage): Don't return in situations where we don't
29948 want to return a message, loop back to the beginning of the function
29949 and grab the next real message to process instead.
29951 2005-10-20 Peter Dennis Bartok <pbartok@novell.com>
29953 * Splitter.cs: Properly set limits if no filler control is used
29955 2005-10-19 Jackson Harper <jackson@ximian.com>
29957 * ColorDialog.cs: Don't show the help button if it is not enabled
29958 instead of disabling it (this is what MS does). Don't create the
29959 panel until the dialog is run, otherwise the vars (such as
29960 ShowHelp) are not set yet.
29962 2005-10-19 Jackson Harper <jackson@ximian.com>
29964 * TreeView.cs: Implement Begin/EndEdit more correctly so refreshes
29965 are reduced when adding nodes.
29967 * TreeNodeCollection.cs: Use UpdateNode instead of refreshing the
29970 2005-10-19 Jackson Harper <jackson@ximian.com>
29972 * FolderBrowserDialog.cs: End editing our treeview so the window
29973 actually gets refreshed.
29975 2005-10-18 Peter Dennis Bartok <pbartok@novell.com>
29977 * Control.cs: Fixed logic flip on when to call OnPaintBackground.
29978 Obsoleted handling of WM_ERASEBKGND, now always draws our background
29981 2005-10-18 Jordi Mas i Hernandez <jordi@ximian.com>
29983 * MenuAPI.cs: Returns after Hidding window
29984 * XplatUIX11.cs: Added TODO found while debugging menu issues
29986 2005-10-18 Peter Dennis Bartok <pbartok@novell.com>
29988 * XplatUIX11.cs: Do not re-map the whole window when it's size
29989 becomes non-zero unless it's supposed to be actually visible
29991 2005-10-18 Jackson Harper <jackson@ximian.com>
29993 * TreeView.cs: We don't need to keep a count anymore.
29994 * TreeNodeCollection.cs: Fix off by one in RemoveAt, Insert can
29995 use the Grow method.
29997 2005-10-18 Jackson Harper <jackson@ximian.com>
29999 * TreeNodeCollection.cs: Insert is not supported on arrays, so
30000 implement it manually here.
30002 2005-10-18 Jackson Harper <jackson@ximian.com>
30004 * ImageList.cs: Dont kill the list when the colour depth is
30005 changed, just change the colour depth of all the images.
30006 - Same goes for setting the image size. Just resize them all
30007 instead of killing the list softly.
30009 2005-10-18 Jackson Harper <jackson@ximian.com>
30011 * Control.cs: Don't invalidate empty rectangles.
30013 2005-10-18 Jordi Mas i Hernandez <jordi@ximian.com>
30016 - Adds checked item to the Checked/Item lists (where empty before)
30017 - Do not add items to the Selected lists if they are already present
30019 - Fixes IsFixedSize, SyncRoot, IsReadOnly in many collections
30020 - When deleting items make sure that we delete them for the Selected
30021 and Checked list also.
30023 2005-10-18 Jordi Mas i Hernandez <jordi@ximian.com>
30025 * Label.cs: Dispose objects no longer used
30026 * ThemeWin32Classic.cs: Dispose objects no longer used
30028 2005-10-18 Jackson Harper <jackson@ximian.com>
30030 * TabControl.cs: Don't refresh the whole control when the tabs are
30031 scrolled, we just need to refresh the tab area.
30033 2005-10-17 Jackson Harper <jackson@ximian.com>
30035 * XplatUIX11.cs: Compress code a little bit. Only calculate the
30036 after handle when we need it.
30038 2005-10-17 Peter Dennis Bartok <pbartok@novell.com>
30040 * Control.cs: When the parent size changes, recalculate anchor
30041 positions. Partial fix for #76462
30043 2005-10-17 Peter Dennis Bartok <pbartok@novell.com>
30045 * ThemeWin32Classic.cs: Make sure the picturebox has it's background
30046 drawn. Fixes #76462
30048 2005-10-17 Jackson Harper <jackson@ximian.com>
30050 * MonthCalendar.cs: Don't create the numeric up down until our
30051 handle is created. Otherwise our handle is created in the
30052 constructor and we don't know if we are a WS_CHILD or WS_POPUP
30055 2005-10-17 Jackson Harper <jackson@ximian.com>
30057 * TreeView.cs: Merge in patch by Rafael Teixeira to align strings
30060 2005-10-17 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
30061 * TreeNode.cs : small logical fix (was using local var instead of field)
30063 2005-10-17 Jordi Mas i Hernandez <jordi@ximian.com>
30065 * ThemeWin32Classic.cs: Fixes vert/horz scrollbar colours
30067 2005-10-17 Jordi Mas i Hernandez <jordi@ximian.com>
30069 * ThemeWin32Classic.cs: Fixes focus drawing in for non-flat/popup buttons
30071 2005-10-16 Peter Dennis Bartok <pbartok@novell.com>
30074 - Re-implemented anchoring code. My first version was really broken.
30075 This fixes bug #76033. Unlike the previous implementation we will
30076 no longer have round errors since all numbers are calculated from
30077 scratch every time. Removed various anchor-related obsolete vars.
30078 - InitLayout no longer causes layout event firing and layout to be
30081 2005-10-16 Jackson Harper <jackson@ximian.com>
30083 * Hwnd.cs: Compute invalid area correctly (fixes my last commit
30086 2005-10-16 Jackson Harper <jackson@ximian.com>
30088 * TabControl.cs: Remove debug code.
30090 2005-10-16 Jackson Harper <jackson@ximian.com>
30092 * XEventQueue.cs: Increase the default queue size (very simple
30093 apps needed to grow the queue).
30094 * Hwnd.cs: No finalizer so we don't need to suppress
30095 finalization. Compute the invalid area manually so a new rectangle
30096 does not newto be created.
30097 * ScrollableControl.cs: Don't set any params (otherwise visibility
30098 isn't set correctly).
30099 * MdiChildContext.cs: New constructor takes the mdi parent so it
30100 doesn't have to be computed and avoids a crash on windows. Draw
30101 the window icon properly, and allow the text to be seen.
30102 * Form.cs: Use new MdiChildContext constructor. Make sure the
30103 child context isn't null in wndproc.
30104 * TabControl.cs: Don't set focus, this is muddling keyboard
30105 behavoir. Expand the tab rows when a window size increase will
30106 allow extra tabs to be seen. Don't allow tabs smaller than the
30107 width of a window to be scrolled out of view.
30109 * TreeView.cs: Use measure string to calculate a nodes width, the
30110 width is cached and only updated when the text or the font is
30111 changed. Don't check for expand/collapse clicks on the first level
30112 nodes if root lines are disabled.
30114 2005-10-16 Ritvik Mayank <mritvik@novell.com>
30116 * TextBoxBase.cs: Fixes #76352 (passing tab key in a multiline textbox)
30118 2005-10-16 Jordi Mas i Hernandez <jordi@ximian.com>
30120 * DataGridBoolColumn.cs: fixes warning
30122 2005-10-16 Jordi Mas i Hernandez <jordi@ximian.com>
30124 * ControlPaint.cs: Fixes methods Dark, DarkDark, Light, LightLight
30125 to match more to match more precisely the MS Net behavior
30127 2005-10-13 Peter Dennis Bartok <pbartok@novell.com>
30129 * Hwnd.cs: Added field to track if window is mapped
30131 - Unmap windows if they become 0-size, re-map when
30132 they are >0 again; fixes #76035
30133 - Re-set our error handler after initializing X11Desktop
30134 to override any error handlers Gtk or whatever was called
30137 2005-10-13 Peter Dennis Bartok <pbartok@novell.com>
30139 * CheckedListBox.cs: Removed unused vars
30140 * ListView.cs: Fixed signatures
30141 * RichTextBox.cs: Removed unused vars
30142 * TextBoxBase.cs: Removed unused vars
30143 * XplatUIWin32.cs: Removed unused vars
30144 * XplatUIX11.cs: Removed unused vars
30145 * XplatUI.cs: Updated version and date to latest published
30147 2005-10-13 Peter Dennis Bartok <pbartok@novell.com>
30149 * Cursor.cs: Added private .ctor to work around a bug in
30150 resourceset (Thanks to Geoff Norton for the help on this)
30151 * SplitterEventArgs.cs: Made fields accessible so we don't
30152 waste boatloads of objects and can reuse the same one
30154 * XplatUIWin32.cs(DrawReversibleLine): Now also considers
30155 any captions and borders when generating screen coordinates
30156 * Splitter.cs: Reimplemented control, now fully complete, uses
30157 rubberband drawing, supports and obeys all properties, has
30160 2005-10-13 Miguel de Icaza <miguel@novell.com>
30162 * Form.cs (Form): Setup default values for autoscale and
30163 autoscale_base_size; Make these instance variables, not static
30166 (OnLoad): on the first load, adjust the size of the form.
30168 2005-10-13 Peter Dennis Bartok <pbartok@novell.com>
30170 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added
30171 width argument to DrawReversibleRectangle()
30172 * XplatUIWin32.cs, XplatUIX11.cs:
30173 - Implemented width for DrawReversibleRectangle()
30174 - Added logic to DrawReversibleRectangle that recognizes a zero
30175 width or height and only draws a line in that situation
30177 2005-10-12 Peter Dennis Bartok <pbartok@novell.com>
30179 * XplatUI.cs, XplatUIDriver.cs: Added GetAutoScaleSize()
30180 * XplatUIOSX.cs: Stubbed GetAutoScaleSize() method
30181 * XplatUIWin32.cs, XplatUIX11.cs: Implemented GetAutoScaleSize()
30182 method (it uses our FosterParent window to get a graphics context)
30184 2005-10-12 Peter Dennis Bartok <pbartok@novell.com>
30186 * XplatUI.cs, XplatUIDriver.cs: Removed EraseWindowBackground
30187 and SetWindowBackground methods
30189 - Setting proper ControlStyles
30190 - We no longer call XplatUI.SetWindowBackground and XplatUI.
30191 EraseWindowBackground, instead we draw the window background
30192 ourselves in PaintControlBackground. This behaviour is
30193 required to match MS, where, when OnPaintBackground is not
30194 called, the background is not drawn.
30195 - Removed unneeded Refresh() in set_Text
30196 * Hwnd.cs: Dropped the ErasePending support. No longer needed
30198 - Created DeriveStyles method to translate from CreateParams to
30199 FormBorderStyle and TitleStyle, also handles BorderStyle (which
30200 matches FormBorderStyle enum values)
30201 - Consolidated SetHwndStyles and CalculateWindowRect border/title
30202 style calculations into single DeriveStyles method
30203 - Fixed CreateWindow to (finally) use Gravity. This prevents X11
30204 from redrawing the whole window on any resize or expose.
30205 - Fixed CreateWindow usage of SetWindowValuemask. Before not
30206 all styles were applied to our whole/client window appropriately
30207 - Removed EraseWindowBackground() and SetWindowBackground() methods
30208 - Removed handling of WM_ERASEBKGND message from DefWndProc, we
30209 no longer clear/redraw the background through X
30210 - Removed handling of erase_pending bit, we have no use for it (or
30213 - Removed generation and handling of WM_ERASEBKGND message
30214 - Removed EraseWindowBackground() and SetWindowBackground() methods
30215 - Removed handling of hwnd.ErasePending flag
30217 - Removed EraseWindowBackground() and SetWindowBackground() methods
30218 - We no longer call EraseWindowBackground on PaintEventStart, we
30219 ignore the fErase flag, erasing is handled in Control in the
30221 * Button.cs, GroupBox.cs, Label.cs, CheckBox.cs, ProgressBar.cs,
30222 LinkLabel.cs, ListControl.cs, TabPage.cs, UpDownBase.cs,
30223 TextBoxBase.cs, TextBox.cs, ListView.cs, ButtonBase.cs,
30224 CheckedListBox.cs, MdiClient.cs, Panel.cs, DataGrid.cs,
30225 DataGridTextBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs,
30226 TabControl.cs, ScrollableControl.cs, ToolBar.cs, PictureBox.cs,
30227 DateTimePicker.cs, StatusBar.cs, MonthCalendar.cs: Setting proper ControlStyles
30229 2005-10-12 Jonathan Chambers <jonathan.chambers@ansys.com>
30231 * PropertyGrids.cs: Get sub properties
30232 * PropertyGridView.cs: Fix drawing code
30234 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
30236 * ListBox.cs: Fixes 76383
30238 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
30240 * DataGridTextBoxColumn.cs: Sets location and size before attachment
30241 * ThemeWin32Classic.cs: Fixes border drawing and calculations
30242 * DataGridDrawingLogic.cs: Fixes border drawing and calculations
30245 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
30247 * ComboBox.cs: Fixes border drawing
30249 2005-10-10 Miguel de Icaza <miguel@novell.com>
30251 * MimeIcon.cs: Ignore errors if the file can not be read.
30253 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
30255 * Theme.cs, ThemeWin32Classic.cs, ListBox.cs:
30256 - Fixed border calculations
30257 - Fixed horizontal scrolling in single column listboxes
30258 - Fixed drawing issues
30260 2005-10-10 Peter Dennis Bartok <pbartok@novell.com>
30262 * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched from BorderStyle to
30263 FormBorderStyle enum
30264 * XplatUIX11.cs: Switched BorderStyle to FormBorderStyle, added
30265 code to determine FormBorderStyles from CreateParams
30267 - Fixed bug where we'd set the wrong window styles if we were
30268 not creating an MDI window
30269 - Added call to XplatUI.SetBorderStyle when form borders are set
30270 * Control.cs: Casting BorderStyles to accommodate changed XplatUI APIs
30272 - Removed obsolete edge style
30273 - Switched from BorderStyle to FormBorderStyle
30275 2005-10-10 Jackson Harper <jackson@ximian.com>
30277 * Form.cs: Use the property to get the window handle instead of
30278 accessing it directly. Prevents a null reference exception.
30280 2005-10-10 Jackson Harper <jackson@ximian.com>
30282 * TreeView.cs: Don't adjust the rect given to DrawString now that
30283 our libgdiplus draws correctly.
30285 2005-10-08 Jackson Harper <jackson@ximian.com>
30287 * TreeView.cs: Don't try to find the clicked on node if there are
30288 no nodes in the tree.
30290 2005-10-08 Alexander Olk <alex.olk@googlemail.com>
30296 2005-10-08 Alexander Olk <alex.olk@googlemail.com>
30298 * ImageListStreamer.cs, TreeView.cs, UpDownBase.cs, RichTextBox.cs,
30299 ColorDialog.cs, TextControl.cs, Panel.cs, MdiChildContext.cs,
30301 Use ResPool for brushes and dispose System.Drawing objects that
30302 are not used anymore.
30304 2005-10-07 Jackson Harper <jackson@ximian.com>
30306 * MdiChildContext.cs: Use the new borders instead of drawing them
30309 2005-10-06 Jordi Mas i Hernandez <jordi@ximian.com>
30311 * Calling UpdateBounds after changing the window's BorderStyle
30312 since the style can change the ClientSize
30314 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
30316 * Control.cs: Made PaintControlBackground virtual
30317 * Panel.cs: Overriding PaintControlBackground instead of using paint
30318 event; paint event method was interfering with 'real' users of the
30321 2005-10-06 Jordi Mas i Hernandez <jordi@ximian.com>
30323 * ThemeWin32Classic.cs: remove border drawing since it is handled
30324 by the base control class now and was causing double border drawing.
30326 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
30328 * Panel.cs: Redraw our background on paint. Not a pretty solution,
30329 but it does seem to match MS behaviour. This fixes bug #75324
30331 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
30333 * XplatUIX11.cs: A better DrawReversibleRectangle version, however
30334 somewhat hackish looking
30336 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
30339 - We now accept Enter even if AcceptEnter is false, if the containing
30340 form does not have an AcceptButton configured (fixes bug #76355)
30341 - Calculations are now fixed to no longer use Width/Height, but
30342 ClientSize.Width/Height, since we now support borders (this was
30343 a result of fixing borders and therefore bug #76166)
30344 - We no longer show the horizontal scrollbar if TextBox.WordWrap is
30345 true (fixes bug #76354)
30347 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
30350 - Defaulting BorderStyle and setting it in XplatUI when our window
30352 - Added enum check to InternalBorderStyle setter
30354 - Added drawing of window borders
30355 - Now properly calculates WM decorations offset for toplevel
30356 windows (fixes bug #74763)
30358 - Implemented BorderStyles for windows (we're letting win32 draw
30360 - Fixed the signature for SetWindowLong
30361 * PictureBox.cs, DataGrid.cs, TextBoxBase.cs, ToolBar.cs, Panel.cs,
30362 ListBox.cs, Label.cs: Now uses Control.InternalBorderStyle for
30364 * UpDownBase.cs: Remove drawing of borders, this is handled by
30365 the driver, outside the client area
30366 * ListView.cs: Removed bogus border calculations. The control should
30367 be oblivious to borders, since those are not part of the client
30369 * X11DesktopColors.cs: Commented out (currently) unneeded variables
30370 * ThemeWin32Classic.cs: Removed border calculations from ListView
30373 2005-10-06 Jackson Harper <jackson@ximian.com>
30375 * MdiChildContext.cs: Clear out the old virtual position remove
30376 all the unneeded calls to CreateGraphics.
30378 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
30380 * TextControl.cs: Use proper color for highlighted text; fixes #76350
30382 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
30385 - Added loading and setting of our new default icon
30386 - Only set icon if window is already created
30388 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
30391 - Do not explicitly set the foreground and background colors, to
30392 allow inheriting from parents (fixes #76302)
30393 - Use Control's InternalBorderStyle property to deal with borders
30395 2005-10-06 Jackson Harper <jackson@ximian.com>
30397 * MdiChildContext.cs: Use the new xplatui function to draw a
30400 2005-10-06 Jackson Harper <jackson@ximian.com>
30402 * Form.cs: Add the parent before creating the child context cause
30403 we need the parent when setting up the child.
30405 2005-10-06 Jackson Harper <jackson@ximian.com>
30407 * FolderBrowserDialog.cs: redo the tree population code so a
30408 second thread isn't used. Should be a lot faster and more stable
30411 2005-10-05 Jackson Harper <jackson@ximian.com>
30413 * TreeView.cs: There are no expand/collapse boxes if the node has
30416 2005-10-05 Jackson Harper <jackson@ximian.com>
30418 * X11DesktopColors.cs: Get menu colours for the gtk theme.
30420 2005-10-05 Alexander Olk <alex.olk@googlemail.com>
30422 * FileDialog.cs: Fix InitialDirectory
30424 2005-10-05 Jordi Mas i Hernandez <jordi@ximian.com>
30427 - Fixes changing between styles
30428 - Fixes simple mode
30429 - Fixes last item crashing when navigating with keyboard
30431 2005-10-05 Jordi Mas i Hernandez <jordi@ximian.com>
30433 * LinkLabel.cs: Related to 76045. Stops the LinkLabel been drawn as a Label
30435 2005-10-05 Jackson Harper <jackson@ximian.com>
30437 * TreeView.cs: If updating the root node do a full refresh.
30438 * TreeNode.cs: The root node should be expanded by default. Also
30439 added a utility prop to tell if we are the root node.
30440 * TreeNodeCollection.cs: Only refresh if the node we are being
30441 added to is expanded. Also added a comment on a potential
30444 2005-10-04 Peter Dennis Bartok <pbartok@novell.com>
30446 * Cursor.cs, Hwnd.cs: Added call to GC.SuppressFinalize()
30447 in dispose method. Fixes #76330
30449 2005-10-04 Jordi Mas i Hernandez <jordi@ximian.com>
30451 * ListView.cs, ThemeWin32Classic.cs, ListViewItem.cs:
30453 - Implements vertical and horizontal scrolling using XplatUI
30454 - Fixes keyboard navagation
30455 - Fixes EnsureVisible
30457 - Handles and draws focus properly
30460 2005-10-04 KornĂ©l PĂ¡l <kornelpal@hotmail.com>
30462 * ImageList.cs: Use upper case initials for internal fields. ImageStream:
30463 Create handle. NET_2_0: Destroy handle when value is null.
30465 2005-10-03 Jackson Harper <jackson@ximian.com>
30467 * ScrollBar.cs: My last scrollbar patch was broken. This is a
30468 revert and a new patch to prevent the thumb from refreshing so
30471 2005-10-02 Jackson Harper <jackson@ximian.com>
30473 * ScrollBar.cs: Don't update position if it hasn't actually
30474 changed. This occurs when you hold down the increment/decrement
30475 buttons and the thumb gets to the max/min.
30477 2005-10-01 Jackson Harper <jackson@ximian.com>
30480 * MdiChildContext.cs:
30481 * MdiClient.cs: Implement ActiveMdiChild in Form.
30483 2005-10-01 Jordi Mas i Hernandez <jordi@ximian.com>
30485 * ComboBox.cs: Include ComboBoxEdit flag for the edit item
30487 2005-10-01 Peter Dennis Bartok <pbartok@novell.com>
30489 * X11DesktopColors.cs: Bow out gracefully if the Gtk libs cannot
30492 2005-09-30 Jackson Harper <jackson@ximian.com>
30494 * ListBox.cs: Don't do a full refresh unless some data has
30497 2005-09-30 Jackson Harper <jackson@ximian.com>
30499 * TreeView.cs: Make sure that the checkboxes size is factored in
30500 even when not visible.
30502 2005-09-30 Peter Dennis Bartok <pbartok@novell.com>
30504 * FileDialog.cs: Fix Jordi's build break
30506 2005-09-30 Jordi Mas i Hernandez <jordi@ximian.com>
30509 - Use standard the Windows colours for the combobox as espected
30510 - Dispose objects that use resouces when no longer need them
30512 2005-09-30 Peter Dennis Bartok <pbartok@novell.com>
30514 * X11DesktopColors.cs: Initial incomplete implementation
30515 * XplatUIX11.cs: Added call to initialize X11DesktopColors
30517 2005-09-30 Peter Dennis Bartok <pbartok@novell.com>
30520 - Switched Theme color names to match the names defined in
30521 System.Drawing.KnownColors. Life's hard enough, no need to make
30523 - Added setters to all theme color properties so themes can set
30524 their color schemes. The setters also propagate the color changes
30525 to System.Drawing.KnownColors via reflection
30526 * ControlPaint.cs, Label.cs, TextControl.cs, ToolTip.cs, ThemeNice.cs,
30527 ComboBox.cs, MdiChildContext.cs, TextBoxBase.cs, DateTimePicker.cs
30528 DataGridColumnStyle.cs, MonthCalendar.cs, TreeView.cs: Updated to
30529 use the new, more logical theme color names
30530 * XplatUIWin32.cs: Updated the GetSysColorIndex enum to include new
30532 * ThemeWin32Classic.cs:
30533 - Removed code to set the old classic Windows colors. Instead it
30534 now relies on the colors returned by System.Drawing.KnownColors
30535 which will be either modern static colors (Unix) or colors
30536 read from the user's configuration (Win32)
30537 - Updated to use the new, more logical theme color names
30538 - Switched DataGrid drawing code to use only Theme colors instead of
30539 a mix of System.Drawing.KnownColors and Theme colors
30540 - DrawFrameControl(): Removed code that fills the button area, the
30541 fill would overwrite any previous fill done by a control. This
30543 - Added DrawReversibleRectangle() stub
30544 * ScrollableControl.cs: Set visible state to false when scrollbars
30545 are removed (pdn fix)
30546 * XplatUI.cs, XplatUIOSX.cs, XplatUIDriver.cs: Added
30547 DrawReversibleRectangle() method to allow drawing primitive
30549 * XplatUIX11.cs: Implemented DrawReversibleRectangle()
30551 2005-09-30 KornĂ©l PĂ¡l <kornelpal@hotmail.com>
30553 * ImageList.cs: Add(Icon): Create handle.
30555 2005-09-30 Jordi Mas i Hernandez <jordi@ximian.com>
30558 * ThemeWin32Classic.cs:
30559 - Fixes detail mode
30561 - Issues with drawing
30563 2005-09-30 KornĂ©l PĂ¡l <kornelpal@hotmail.com>
30565 * ImageList.cs: Moved RecreateHandle back to ImageList as event
30566 source has to be the ImageList.
30568 2005-09-30 KornĂ©l PĂ¡l <kornelpal@hotmail.com>
30570 * ImageList.cs: Add(Icon): Use Graphics.DrawIcon instead of Icon.ToBitmap.
30572 2005-09-30 KornĂ©l PĂ¡l <kornelpal@hotmail.com>
30574 * ImageList.cs: ReduceColorDepth: Clean up pointer operations.
30576 2005-09-30 KornĂ©l PĂ¡l <kornelpal@hotmail.com>
30578 * ImageList.cs: ImageCollection: Removed owner field as it is no more used.
30580 2005-09-29 Jonathan Chambers <jonathan.chambers@ansys.com>
30581 * GridItem.cs: Fixed TODOs
30582 * GridItemCollection.cs: Added ICollection interface
30584 2005-09-30 KornĂ©l PĂ¡l <kornelpal@hotmail.com>
30586 * ImageList.cs: Resize icons when needed.
30588 2005-09-29 Jordi Mas i Hernandez <jordi@ximian.com>
30591 - Fixes GetBounds and returns on screen rects
30593 - Fixes vertical and horzintal scrolling of items
30594 * ThemeWin32Classic.cs:
30597 2005-09-29 Raja R Harinath <harinath@gmail.com>
30599 * ImageList.cs (ImageStream) [NET_2_0]: Reflect re-factoring.
30601 2005-09-29 KornĂ©l PĂ¡l <kornelpal@hotmail.com>
30603 * ImageList.cs: Added comments about handle creation. Moved Handle,
30604 HandleCreated and OnRecreateHandle implementations to ImageCollection.
30605 Handle is created in Add methods.
30607 2005-09-28 Jordi Mas i Hernandez <jordi@ximian.com>
30609 * DataGridDrawingLogic.cs:
30610 - Takes rows into account on Colum calculations
30611 - Returns the column when clickig
30613 - Fixes default HitTestInfo values
30614 - Fixes HitTestInfo.ToString
30615 - Fixes ResetBackColor
30617 2005-09-28 Jackson Harper <jackson@ximian.com>
30619 * MdiChildContext.cs: Obey rules for fixed sized windows (no
30620 sizing or cursor changes). Also added some temp code to draw the
30621 titlebars text (Makes dev a little easier).
30623 2005-09-28 KornĂ©l PĂ¡l <kornelpal@hotmail.com>
30625 * ImageList.cs: AddStrip: Throw ArgumentException when Image is not a Bitmap.
30627 2005-09-28 Jordi Mas i Hernandez <jordi@ximian.com>
30629 * ListBox.cs: Fixes bug 76253
30631 2005-09-28 KornĂ©l PĂ¡l <kornelpal@hotmail.com>
30633 * ImageList.cs: Added comments about the current implementation. Added
30634 ReduceColorDepth, IndexedColorDepths and GetNearestColor to can use
30635 Format32bppArgb to preserve transparency and can use Graphics.FromImage
30636 while using the specified ColorDepth. ReduceColorDepth uses unsafe code
30637 with Bitmap.LockBits for better performance. Revised the whole file to
30638 match MS.NET behaviour and provide better performance. Non-public
30639 interface members are calling public members even when they throw
30640 NotSupportedException for better maintainability. Moved ColorDepth,
30641 ImageSize, ImageStream and TransparentColor implementations to
30642 ImageCollection for better performance as these properties are not used
30644 * ImageListStreamer.cs: Added a new internal constructor that takes an
30645 ImageList.ImageCollection and serializes Images based on
30646 ImageCollection.ToArray(). Renamed ImageColorDepth to ColorDepth to
30647 match ImageList property name.
30649 2005-09-28 Kazuki Oikawa <kazuki@panicode.com>
30651 * ListBox.cs: Fixes IndexFromPoint for last item
30653 2005-09-27 Jackson Harper <jackson@ximian.com>
30655 * Form.cs: Set the position of new mdi children correctly.
30657 2005-09-27 Jackson Harper <jackson@ximian.com>
30659 * MdiClient.cs: New mdi children need to be added to the back of
30660 the controls collection so the zorder is set correctly. Also add a
30661 count of all the child windows that have been created.
30663 2005-09-27 Jackson Harper <jackson@ximian.com>
30665 * Form.cs (CreateParams): Setup MDI forms correctly.
30667 2005-09-27 Jackson Harper <jackson@ximian.com>
30669 * MdiChildContext.cs:
30670 * MonthCalendar.cs:
30676 * ScrollableControl.cs:
30677 * ComboBox.cs: Add implicit controls using the new implict control
30678 functionality in ControlCollection. Also try to block multiple
30679 control add in a suspend/resume layout to save some cycles.
30681 2005-09-27 Jackson Harper <jackson@ximian.com>
30683 * Control.cs: Add functionality to the controls collection to add
30684 'implicit controls' these are controls that are created by the
30685 containing control but should not be exposed to the user. Such as
30686 scrollbars in the treeview.
30687 * Form.cs: The list var of the ControlsCollection is no longer
30688 available because of the potential of implicit controls getting
30689 ignored by someone accessing the list directly.
30691 2005-09-26 Peter Dennis Bartok <pbartok@novell.com>
30693 * Control.cs: Fixed SetChildIndex; it no longer causes a child to
30694 loose it's parent. (Fixed bug introduced in r49103 when we added
30695 setting the child parent to null on Remove)
30697 2005-09-26 Gert Driesen <drieseng@users.sourceforge.net>
30699 * DataGridBoolColumn.cs: Marked CheckState private to fix public API.
30700 * Splitter.cs: Added missing attributes for BorderStyle property.
30701 * TextBoxBase.cs: Marked Calculate* methods internal.
30702 * TextBox.cs: Fixed DefaultValue for PasswordChar property to match
30705 2005-09-26 Jordi Mas i Hernandez <jordi@ximian.com>
30707 * ListBox.cs: Fixes navigation to the last item in multicolumn lists
30709 2005-09-25 Jackson Harper <jackson@ximian.com>
30711 * TreeView.cs: Update the node bounds correctly regardless of
30712 whether the node is visible.
30714 2005-09-25 Jackson Harper <jackson@ximian.com>
30716 * ImageList.cs: Don't dispose the image after it is added to the
30717 image list. Only reformat images that need to be resized.
30719 2005-09-25 Jackson Harper <jackson@ximian.com>
30721 * ImageList.cs: Don't set the format when changing the image.
30723 2005-09-25 Jackson Harper <jackson@ximian.com>
30725 * TreeView.cs: We can't just assume the node has a font. Use the
30726 treeviews font if no node font is available.
30728 2005-09-25 Jackson Harper <jackson@ximian.com>
30730 * TreeView.cs: Allow the scrollbars to be reset with negative
30732 - Don't add scrollbars to negative sized windows.
30734 2005-09-23 Jackson Harper <jackson@ximian.com>
30736 * XplatUIX11.cs: Update to use Mono.Posix.Native instead of plain
30737 old Mono.Posix. Also remove some stray code that shouldn't have
30740 2005-09-23 Jackson Harper <jackson@ximian.com>
30742 * TreeView.cs: Attempt at proper sizing of the horizontal
30743 scrollbar. Also don't resize the scrollbars unless they are
30746 2005-09-23 Jackson Harper <jackson@ximian.com>
30748 * TreeView.cs: We don't need to expand the invalid area when the
30749 selection changes, as this is all drawn in the node's bounding
30750 box. The area needs to be expanded (previous typo was contracting
30751 it) when the focus rect moves.
30753 2005-09-23 Jackson Harper <jackson@ximian.com>
30755 * TreeView.cs: Display the selection box under the correct
30756 circumstances. We were rendering white text with no selection box
30759 2005-09-23 Peter Dennis Bartok <pbartok@novell.com>
30761 * TextControl.cs(Split): Now updates selection start/end if it points
30762 into a line that's being split. Fixes a FIXME and bug #75258
30764 2005-09-23 Jackson Harper <jackson@ximian.com>
30767 * ListControl.cs: Don't use the path when retrieving binding
30768 managers from the binding context. My bat sense tells me that the
30769 path is only used on insertion.
30771 2005-09-22 Jackson Harper <jackson@ximian.com>
30773 * Splitter.cs: Set the cursor an easier way. (Thanks peter).
30775 2005-09-22 Jackson Harper <jackson@ximian.com>
30777 * Splitter.cs: There are special cursors used for splitting.
30778 * XplatUIX11.cs: The VSplit and HSplit cursors were backwards.
30780 2005-09-22 Jackson Harper <jackson@ximian.com>
30782 * Splitter.cs: Change the cursor appropriately when the splitter
30783 is moused over, so the user actually knows there is a splitter
30786 2005-09-22 Hisham Mardam Bey <hisham.mardambey@gmail.com>
30788 * Label.cs : Fix ToString method to give same output as MS.NET
30790 2005-09-22 Jackson Harper <jackson@ximian.com>
30792 * TreeView.cs: Create the scrollbars when the handle is created
30793 and add them right away, just make them invisble. Also account for
30794 the window being shrunk vertically to the point that the vert
30795 scrollbar needs to be added.
30796 - Remove some 0.5 adjustments to get around anti aliasing issues.
30798 2005-09-22 Jordi Mas i Hernandez <jordi@ximian.com>
30800 * MainMenu.cs: Fixes default value
30801 * MenuItem.cs: Fixes default value
30803 2005-09-22 Kazuki Oikawa <kazuki@panicode.com>
30805 * AsyncMethodResult.cs: Fixes Control.Invoke is blocked infinitely.
30807 2005-09-21 Jackson Harper <jackson@ximian.com>
30809 * Control.cs: Don't try to set the border style on the window if
30810 it hasn't been created. When the window is created the border
30811 style will be used.
30813 2005-09-21 Peter Dennis Bartok <pbartok@novell.com>
30815 * Control.cs (Update): Don't call XplatUI if we don't have a
30818 2005-09-21 Peter Dennis Bartok <pbartok@novell.com>
30820 * ContainerControl.cs: Instead of throwing an exception, print
30821 a one-time warning about Validate not being implemented
30822 * XplatUIWin32.cs: Removed debug output
30824 2005-09-21 Peter Dennis Bartok <pbartok@novell.com>
30826 * Control.cs: Only set XplatUI background if we expect the windowing
30827 system to handle the background. This stops controls that draw their
30828 own background from flickering
30830 * XplatUIX11.cs: Support custom visuals and colormaps for window
30831 creation. This allows, amongst other things, using MWF X11 windows
30834 2005-09-21 Peter Dennis Bartok <pbartok@novell.com>
30836 * OpenFileDialog.cs, ContentsResizedEventArgs.cs, LibSupport.cs, GridItem.cs,
30837 CursorConverter.cs, SplitterEventHandler.cs, PropertyGridTextBox.cs,
30838 GridTablesFactory.cs, MethodInvoker.cs, AccessibleEvents.cs,
30839 SplitterEventArgs.cs, XplatUI.cs, Mime.cs, PropertySort.cs,
30840 TreeViewCancelEventHandler.cs, Form.cs, PropertyGridCommands.cs,
30841 IDataGridEditingService.cs, DateBoldEventHandler.cs, Label.cs,
30842 KeyboardLayouts.cs, TextControl.cs, ProgressBar.cs, ToolTip.cs,
30843 RadioButton.cs, OSFeature.cs, LinkLabel.cs, ColorDialog.cs,
30844 ThemeNice.cs, ErrorIconAlignment.cs, TreeNode.cs, MimeGenerated.cs,
30845 ComboBox.cs, DataGridTextBoxColumn.cs, ArrangeStartingPosition.cs,
30846 GridColumnStylesCollection.cs,
30847 IDataGridColumnStyleEditingNotificationService.cs,
30848 PropertyGrid.cs, IFeatureSupport.cs, ICommandExecutor.cs,
30849 MdiLayout.cs, GridEntry.cs, ControlBindingsCollection.cs,
30850 GridTableStylesCollection.cs, TreeViewCancelEventArgs.cs,
30851 TreeNodeCollection.cs, AmbientProperties.cs,
30852 RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
30853 DataObject.cs, ErrorProvider.cs, Splitter.cs,
30854 DataGridLineStyle.cs, Shortcut.cs, Control.cs,
30855 FontDialog.cs, SecurityIDType.cs, GridItemType.cs,
30856 BindingMemberInfo.cs, DataGridCell.cs, MdiChildContext.cs,
30857 IRootGridEntry.cs, PropertyGridView.cs, DataGridParentRowsLabelStyle.cs,
30858 FolderBrowserDialog.cs, OpacityConverter.cs, HelpProvider.cs,
30859 IComponentEditorPageSite.cs, DataGridTableStyle.cs, NavigateEventArgs.cs,
30860 NotifyIcon.cs, ContentsResizedEventHandler.cs, MenuItem.cs,
30861 PropertyTabChangedEventHandler.cs, TextBoxBase.cs, OpenTreeNodeEnumerator.cs,
30862 SelectionMode.cs, TextBox.cs, ListBindingConverter.cs,
30863 FileDialog.cs, KeysConverter.cs, DomainUpDown.cs,
30864 DataFormats.cs, SaveFileDialog.cs, GridItemCollection.cs,
30865 ArrangeDirection.cs, FeatureSupport.cs, SelectionRangeConverter.cs,
30866 RichTextBoxScrollBars.cs, NodeLabelEditEventHandler.cs, TreeNodeConverter.cs,
30867 MimeIcon.cs, X11Structs.cs, PropertyGridEntry.cs,
30868 ImageList.cs, ThemeWin32Classic.cs, X11Keyboard.cs,
30869 CheckedListBox.cs, HelpNavigator.cs, DateTimePickerFormat.cs,
30870 MdiClient.cs, DataGridDrawingLogic.cs, DataGridBoolColumn.cs,
30871 NodeLabelEditEventArgs.cs, Screen.cs, PropertyManager.cs,
30872 ComponentModel.cs, PropertiesTab.cs, CurrencyManager.cs,
30873 SizeGrip.cs, DateBoldEventArgs.cs, X11Dnd.cs, Panel.cs,
30874 Hwnd.cs, OSXStructs.cs, DrawMode.cs, XplatUIDriver.cs,
30875 RichTextBox.cs, PropertyTabChangedEventArgs.cs, CommonDialog.cs,
30876 DataGrid.cs, XplatUIX11.cs, RichTextBoxStreamType.cs, Win32DnD.cs,
30877 ErrorBlinkStyle.cs, TreeViewEventHandler.cs,
30878 PropertyValueChangedEventHandler.cs, IFileReaderService.cs,
30879 DataGridTextBox.cs, SelectedGridItemChangedEventArgs.cs, ScrollBar.cs,
30880 ListBox.cs, TreeViewAction.cs, Help.cs, TrackBar.cs,
30881 AxHost.cs, PropertyValueChangedEventArgs.cs, XplatUIOSX.cs,
30882 RichTextBoxFinds.cs, UpDownEventArgs.cs, Cursors.cs,
30883 CategoryGridEntry.cs, RichTextBoxWordPunctuations.cs, DataGridColumnStyle.cs,
30884 SelectedGridItemChangedEventHandler.cs, DateTimePicker.cs, NavigateEventHandler.cs,
30885 Clipboard.cs, UpDownEventHandler.cs, MonthCalendar.cs,
30886 SendKeys.cs, DataGridPreferredColumnWidthTypeConverter.cs, TreeView.cs,
30887 ThreadExceptionDialog.cs, ImageListConverter.cs, XplatUIWin32.cs,
30888 TreeViewEventArgs.cs: Fixed whitespace and set eol-style:native attribute
30890 2005-09-21 Jackson Harper <jackson@ximian.com>
30892 * TreeNode.cs: Call Before/After Expand not Collapse when
30895 2005-09-20 Jackson Harper <jackson@ximian.com>
30897 * XplatUIX11.cs: Use the more hand looking hand (in most themes).
30899 2005-09-16 Jordi Mas i Hernandez <jordi@ximian.com>
30903 - Fixes proper storing of subitems
30904 - Fixes not updated items
30906 2005-09-20 Peter Dennis Bartok <pbartok@novell.com>
30908 * Control.cs, TextBoxBase.cs, TextControl.cs: Don't do certain
30909 things if our window handle isn't created yet. Also disabled
30910 debug for TextBoxBase
30912 2005-09-20 Peter Dennis Bartok <pbartok@novell.com>
30914 * MenuAPI.cs: Remove filtering of events to allow menu usage
30916 2005-09-20 Miguel de Icaza <miguel@novell.com>
30918 * Cursor.cs: Allow null to be passed to Cursor.Current.
30920 2005-09-20 Alexander Olk <alex.olk@googlemail.com>
30922 * ThemeWin32Classic.cs:
30923 - Change some private methods/fields to protected virtual so that
30924 they can be accessed and overriden in derived classes
30925 - First refactoring of some methods. Derived themes now don't
30926 need to duplicate the complete code from ThemeWin32Classic
30928 - Added nice StatusBar
30929 - Derive from ThemeWin32Classic and not Theme
30930 - Removed duplicate ThemeWin32Classic code
30932 2005-09-20 Miguel de Icaza <miguel@novell.com>
30934 * Control.cs (ControlCollection.Add): If the value null is passed
30935 the control is ignored.
30937 Optimize this loop.
30939 2005-09-19 Peter Dennis Bartok <pbartok@novell.com>
30941 * MenuAPI.cs: Replaced Application.Run() with a loop that tracks
30942 PostQuitMessage state.
30943 * XplatUIWin32.cs: Removed bogus PostQuitMessage P/Invoke with HWND arg
30945 2005-09-19 Peter Dennis Bartok <pbartok@novell.com>
30947 * Application.cs: Our constructor will never get called, move
30948 initialization to fields; fixes bug #75933
30950 2005-09-19 Hisham Mardam Bey <hisham.mardambey@gmail.com>
30953 - Allow files to be selected properly using file name
30955 - Add ability to change diretory (absolute / relative)
30956 using file name combo box.
30958 2005-09-16 Jordi Mas i Hernandez <jordi@ximian.com>
30961 - Fixes Multicolumn listboxes item wrong calculations
30962 - Allows to click when only one item is in the listbox
30963 - Fixes crash when no items using keyboard navigation
30965 2005-09-16 Alexander Olk <alex.olk@googlemail.com>
30967 * ComboBox.cs: Reverted almost everything from the latest patch which
30970 2005-09-16 Kazuki Oikawa <kazuki@panicode.com>
30973 - Fixed #Mtd2 of ToolTipTest.RemoveToolTipTest.
30975 - When DropDownStyle is Simple, it does not show scrollbar
30976 to the last item of the list.
30977 - When DropDownStyle is Simple, it crashed when the list was
30978 scrolled down with the down cursor key.
30979 - Fixed a bug that when DropDownStyle is DropDownList, the
30980 selected item was not shown.
30981 - The position of the selected item was not preserved when
30982 the next dropdown happened.
30983 * ThemeWin32Classic.cs:
30984 - Items were wrapped at the right end.
30985 * CheckedListBox.cs:
30988 - Items should be fully shown.
30989 - When resizing and vertical scrollbar disappeared, the item
30990 of index 0 should be on the top of the list.
30991 - GetItemRectangle should consider the size of ver. scrollbar
30993 - SizingGrip area should not be allocated when it is not
30995 - Now it reflects MinWidth of the containing panel and
30996 fixed a crash that happens when its width becomes so small.
30998 2005-09-13 Jordi Mas i Hernandez <jordi@ximian.com>
31000 * CheckedListBox.cs: Fixes bug 76028
31001 * ListBox.cs: Fixes bug 76028
31003 2005-09-13 Jordi Mas i Hernandez <jordi@ximian.com>
31005 * ThemeWin32Classic.cs: Sets clipping on DataGridPaintRowsHeaders
31006 * DataGridDrawingLogic.cs: fixes issues with Datagrid drawing
31008 2005-09-12 Jordi Mas i Hernandez <jordi@ximian.com>
31010 * XplatUIX11.cs: fixes System.NullReferenceException in some situations
31012 2005-09-09 Jonathan Chambers <jonathan.chambers@ansys.com>
31014 * IRootGridEntry.cs: Changed namespace to PropertyGridInternal
31016 2005-09-09 Jonathan Chambers <jonathan.chambers@ansys.com>
31018 * IRootGridEntry.cs: Added
31019 * PropertyGridCommands.cs: Added
31020 * PropertiesTab.cs: Added missing methods and property
31021 * PropertyGridView.cs: Made class internal
31022 * PropertyGridTextBox.cs: Made class internal
31024 2005-09-09 Alexander Olk <alex.olk@googlemail.com>
31026 * MimeIcon.cs: Try to check some other environment variables
31027 if "DESKTOP_SESSION" returns "default"
31029 2005-09-09 Alexander Olk <alex.olk@googlemail.com>
31031 * ThemeNice.cs: Corrected background colors (e.g. menus)
31032 * ColorDialog.cs: Use correct background colors for controls
31034 2005-09-09 Alexander Olk <alex.olk@googlemail.com>
31036 * ThemeNice.cs: Merged r49535 from ThemeWin32Classic
31038 2005-09-08 Peter Dennis Bartok <pbartok@novell.com>
31040 * RichTextBox.cs: Added initial implementation
31041 * lang.cs: Removed. Was accidentally checked in long time ago
31042 * TODO: Removed. Contents were obsolete
31044 2005-09-06 Jonathan Chambers <jonathan.chambers@ansys.com>
31046 * PropertiesTab.cs : Added
31048 2005-09-06 Jonathan Chambers <jonathan.chambers@ansys.com>
31050 * PropertyGrid.cs : Update
31051 * PropertyGridView.cs : Update
31052 * System.Windows.Forms.resx : Added images and strings
31054 2005-09-06 Peter Dennis Bartok <pbartok@novell.com>
31056 * ThemeNice.cs: Do not dispose Pens retrieved from ResPool
31058 2005-09-06 Peter Dennis Bartok <pbartok@novell.com>
31060 * XplatUIX11.cs: Force a flush after Ungrab; if case the app enters
31061 a busy loop right after the Ungrab the X11 display is otherwise
31064 2005-09-06 Jordi Mas i Hernandez <jordi@ximian.com>
31066 * ThemeWin32Classic.cs: Optimise the use of clipping
31068 2005-09-05 Jordi Mas i Hernandez <jordi@ximian.com>
31070 * DataGrid.cs: fixes recursion bug
31072 2005-09-03 Alexander Olk <alex.olk@googlemail.com>
31075 - Draw RadioButton and CheckBox Buttons with DrawButtonBase
31078 2005-09-02 Alexander Olk <alex.olk@googlemail.com>
31080 * ThemeNice.cs: Draw nice ProgressBars
31082 2005-09-01 Miguel de Icaza <miguel@novell.com>
31084 * VScrollBar.cs: Another buglet found by Aaron's tool.
31086 * ProgressBar.cs: Fix three recursive bugs found by Aaron Tomb's
31089 2005-08-30 Alexander Olk <alex.olk@googlemail.com>
31092 - Added nicer menu drawing
31096 2005-08-30 Peter Dennis Bartok <pbartok@novell.com>
31098 * CreateParams.cs (ToString): Made output match MS
31099 * Control.cs (Text): Don't set Text or Focus via XplatUI unless
31100 handle is already created (to avoid forcing window creation)
31101 * XplatUIX11.cs: Set window text to caption after creating window,
31102 in case Text was set before window was created
31103 * Form.cs: Use this.Text instead of a static string as caption
31105 2005-08-30 Peter Dennis Bartok <pbartok@novell.com>
31107 * NotifyIcon.cs: Don't set the window to visible; this screws
31108 up Win32 (causes WM_NCPAINT to be sent on Win32, which calls
31109 OnPaint without a bitmap)
31110 * XplatUIX11.cs: Removed Visible optimization in AddExpose; doesn't
31111 happen very often anyway; we could add the check to the WM_PAINT
31112 event generation code
31114 2005-08-30 Peter Dennis Bartok <pbartok@novell.com>
31116 * NotifyIcon.cs: Fill the icon area with a background color, to
31117 avoid 'residue' when transparent icons are drawn
31119 - Handle whole_window == client_window when destroying windows
31120 - SystrayAdd(): Set client_window to whole_window value to
31121 get mouse and other events passed to NotifyIcon
31123 2005-08-30 Peter Dennis Bartok <pbartok@novell.com>
31125 * Form.cs: Set proper default for Opacity property
31127 - ShowSystray(): Don't bother creating telling the OS
31128 about the systray item if no icon is provided
31129 - Now handles WM_NCPAINT message to deal with whole/client window
31131 - Create window as visible to not get caught by Expose optimization
31132 * Hwnd.cs: Removed debug message
31133 * ComboBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs, TabControl.cs,
31134 StatusBar.cs, TreeView.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched
31135 PaintEventStart/End to use new client argument
31137 - Commented out debug messages
31138 - Switched PaintEventStart/End to use new client argument
31139 * XplatUI.cs: Added client window bool to PaintEventStart()/
31140 PaintEventEnd() calls, to support drawing in non-client areas
31141 * XplatUIDriver.cs:
31142 - Added client window bool to PaintEventStart()/PaintEventEnd()
31143 calls, to support drawing in non-client areas
31144 - Added conditional compile to allow using MWF BeginInvoke
31147 - Added some conditional debug output
31148 - Fixed SystrayAdd() method to support new (for SystrayAdd, anyway)
31149 whole/client window split
31150 - Implemented handling of client argument to PaintEventStart()/End()
31152 - Throw exception if BeginInvoke() is called and the window handle
31153 or one of the window's parent handles is not created
31154 - Added conditional compile to allow using MWF BeginInvoke on
31156 - get_Parent(): Only sets parent if handle is created. This avoids
31157 forcing window handle creation when parent is set.
31158 - Now fires Layout and Parent changed events in proper order
31159 - Switched to use Handle instead of window.Handle for Z-Order setting,
31160 the get_Parent() patch above causes us to possibly get null for 'window'
31161 - Implemented handling of client argument to PaintEventStart()/End()
31162 - Now reports back to windows that WM_SETCURSOR was handled (to avoid
31164 - Now sends a Refresh() to all child windows when Refresh() is called
31166 2005-08-29 Peter Dennis Bartok <pbartok@novell.com>
31168 * Form.cs: Added (non-functional) Opacity property
31169 * XplatUIWin32.cs (SystrayAdd): Removed bogus line of code
31171 2005-08-29 Alexander Olk <xenomorph2@onlinehome.de>
31172 * ThemeNice.cs: New theme for MWF, based on ThemWin32Classic
31173 use export MONO_THEME=nice to activate it.
31174 Currently supported controls:
31178 - TabControl (TabAlignment.Top only, other will follow)
31179 * ThemeEngine.cs: Add theme nice
31180 * ButtonBase.cs: Redraw button on MouseEnter and MouseLeave everytime,
31183 2005-08-25 Jonathan Chambers <jonathan.chambers@ansys.com>
31185 * Splitter.cs: Resize docked control and its neighbor.
31187 2005-08-24 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
31188 -- Making Windows with Menus layout correctly --
31189 * Form.cs : The first leg of the fix
31190 Menu setter - adjust Client Size as needed to make space for the menu
31191 SetClientSizeCore - doesn't call base version to be able to pass the
31192 menu handle to XplatUI.CalculateWindowRect
31193 * Hwnd.cs: Fix for menu_height, now gets from MenuAPI.MENU
31194 * XplatUIX11.cs: The critical second leg of the fix
31195 GetWindowPos needs to use a recalculated client_rect
31196 so that resizing the window doesn't break layout of child controls.
31197 Also a more complete rule to avoid X Server roundtrips in SetWindowPos
31198 Lots of \t\n killed
31200 2005-08-23 Peter Dennis Bartok <pbartok@novell.com>
31202 * Label.cs: Now properly recalculates width and height on Font and Text
31203 changes if AutoSize is set
31205 2005-08-19 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
31206 * TreeView.cs : Revamped drawing logic, and support for FullRowSelect
31208 2005-08-19 Jordi Mas i Hernandez <jordi@ximian.com>
31210 * ImageList.cs: Makes ToString method compatible with MS
31212 2005-08-18 Jordi Mas i Hernandez <jordi@ximian.com>
31214 * MenuAPI.cs: fixes bug 75716
31216 2005-08-11 Umadevi S <sumadevi@novell.com>
31217 * Control.cs: Fixed Remove & RemoveAt to make the parent of the control null.
31219 2005-08-11 Umadevi S <sumadevi@novell.com>
31220 * Contorl.cs: Fixed ResetRightToLeft and ResetImeMode to work correctly
31222 2005-08-10 Umadevi S <sumadevi@novell.com>
31223 * CheckedListBox.cs: Fixed event firing on Adding to the CheckedListBox
31225 2005-08-07 Jordi Mas i Hernandez <jordi@ximian.com>
31227 * Menu.cs: fixes bug 75700
31228 * MenuAPI.cs: fixes navigation issues
31230 2005-08-09 Umadevi S <sumadevi@novell.com>
31231 * CheckedListBox.cs - simple fix for GetItemChecked.
31233 2005-08-08 Jordi Mas i Hernandez <jordi@ximian.com>
31235 * ComboBox.cs: Serveral fixes
31236 * ListBox.cs: Serveral fixes
31238 2005-08-05 Jordi Mas i Hernandez <jordi@ximian.com>
31240 * ComboBox.cs: Fixes FindString methods and GetItemHeight
31241 * ListBox.cs: Fixes FindString methods
31243 2005-08-05 Jordi Mas i Hernandez <jordi@ximian.com>
31245 * DataGrid.cs: fixes bugs exposed by new tests
31247 2005-08-04 Peter Dennis Bartok <pbartok@novell.com>
31249 * Mime.cs: Compile Mono assembly references only if compiling
31250 with Mono (Allows to build with VS.Net again)
31252 2005-07-28 Marek Safar <marek.safar@seznam.cz>
31254 * Control.cs (PaintControlBackground): Draw background image
31256 (CheckForIllegalCrossThreadCalls): Stubbed.
31258 * Form.cs (OnCreateControl): Center when should be centered.
31260 * ThemeWin32Classic.cs (DrawPictureBox): Pass size.
31262 2005-07-19 Jordi Mas i Hernandez <jordi@ximian.com>
31264 * Binding.cs: Binding to properties should be case unsensitive
31266 2005-07-18 vlindos@nucleusys.com
31268 * DataGrid.cs: fixes setmember order
31270 2005-07-07 Alexander Olk <xenomorph2@onlinehome.de>
31272 * MimeIcon.cs: added MimeIcon stuff (MimeIconEngine)
31273 * FileDialog.cs: FileDialog is now resizable and uses the new
31276 2005-07-06 Jordi Mas i Hernandez <jordi@ximian.com>
31278 * DataGridTextBoxColumn.cs: default value
31279 * GridColumnStylesCollection.cs: fixes event firing, checking MappingName
31280 * GridTableStylesCollection.cs: fixes checking MappingName
31281 * DataGridDrawingLogic.cs: fixes drawing logic issues
31282 * DataSourceHelper.cs: rewritten to make compatible with more data sources
31283 * DataGrid.cs: fixes
31285 2005-07-06 Alexander Olk <xenomorph2@onlinehome.de>
31287 * MimeGenerated.cs: Use case sensitive comparer for
31288 NameValueCollections
31290 2005-07-01 Jordi Mas i Hernandez <jordi@ximian.com>
31292 * DataGridTextBoxColumn.cs: bug fixes, code refactoring
31293 * ThemeWin32Classic.cs: bug fixes, code refactoring
31294 * DataGridDrawingLogic.cs: bug fixes, code refactoring
31295 * DataGrid.cs: bug fixes, code refactoring
31296 * DataGridTextBox.cs: bug fixes, code refactoring
31297 * DataGridColumnStyle.cs: bug fixes, code refactoring
31298 * Theme.cs: bug fixes, code refactoring
31300 2005-07-01 Peter Bartok <pbartok@novell.com>
31302 * TextControl.cs: Quick fix for the reported crash on ColorDialog
31303 and other text box usage
31305 2005-07-01 Jackson Harper <jackson@ximian.com>
31307 * TabControl.cs: Make sure the bottom of the tab covers the pages
31310 2005-06-30 Peter Bartok <pbartok@novell.com>
31312 * Form.cs (ShowDialog): Assign owner of the dialog
31313 * TextBoxBase.cs: Always refresh caret size when deleting, caret
31314 might have been moved to a tag with different height
31316 2005-06-30 Jackson Harper <jackson@ximian.com>
31318 * Form.cs: Don't create an infinite loop when setting focus
31319 * MenuItem.cs: Don't dirty the parents if we don't have any
31321 2005-06-29 Ben Maurer <bmaurer@ximian.com>
31323 * LibSupport.cs: Rename
31325 2005-06-29 Peter Bartok <pbartok@novell.com>
31327 * TextBoxBase.cs: Re-align caret after deleting a character
31329 - DeleteChars(): Ensure that tag covers the provided position
31330 - StreamLine(): Drop reference for dropped tag
31332 2005-06-29 Peter Bartok <pbartok@novell.com>
31335 - Selections now work properly, anchoring at the initial location
31336 and properly extending in either direction (SetSelectionToCaret(),
31337 SetSelectionStart() and SetSelectionEnd())
31338 - No longer redraws the whole control on selection change, now
31339 calculates delta between previous and new selection and only
31340 invalidates/redraws that area
31341 - Fixed FindPos() math off-by-one errors
31342 - Changed DeleteChars() to verify the provided tag covers the
31343 provided position, selections may have a tag that doesn't cover
31344 the position if the selection is at a tag border
31345 - Fixed off-by-one errors in DeleteChars()
31346 - Added missing streamlining check in DeleteChars() to remove
31348 - Implemented Invalidate() method, now properly calculates exposures
31349 between two given lines/positions
31350 - Implemented SetSelection()
31351 - Obsoleted and removed FixupSelection()
31352 - Improved RecalculateDocument() logic, removing code duplication
31354 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
31356 * LibSupport.cs: changes to match different input/output arguments.
31358 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
31360 * LibSupport.cs: added libsupport.so init routine.
31362 2005-06-29 Jordi Mas i Hernandez <jordi@ximian.com>
31364 * ControlBindingsCollection.cs
31365 - Throws an exception on null datasource when adding
31366 - Checks for duplicated bindings when adding
31368 2005-06-28 Jackson Harper <jackson@ximian.com>
31370 * TreeView.cs (OnKeyDown): Support left and right properly
31371 (navigates as well as expanding and collapsing.
31372 - Add support for Multiply, this expands all the selected nodes
31374 - Fix some tabbing.
31376 2005-06-28 Jackson Harper <jackson@ximian.com>
31378 * TreeView.cs: Implement keyboard navigation, currently supports,
31379 LEFT, RIGHT, UP, DOWN, PGUP, PGDOWN, HOME, END, ADD, SUBTRACT. Add
31380 support for toggling checkboxes with the space bar.
31382 2005-06-28 Jackson Harper <jackson@ximian.com>
31384 * OpenTreeNodeEnumerator.cs: Don't move past the begining of the
31387 2005-06-28 Jackson Harper <jackson@ximian.com>
31389 * TreeView.cs: Add missing event.
31391 2005-06-27 Peter Bartok <pbartok@novell.com>
31394 - Made line ending size configurable (now allows for counting
31395 lineendings as \n or \r\n)
31396 - Added margin to viewport to keep caret visible on right side
31397 - Fixed translation routines for line/pos to documentpos to consider
31398 cr/lf when counting (Fixes RichTextBox.SelectionFont issues)
31399 - Fixed some line-endings to be unix style
31400 - Fixed Document.FormatText to perform it's calculations 1-based
31401 - Added descriptions for a few methods that might otherwise get
31403 - Added NOTE section with some basic conventions to remember at
31404 the top of the file
31405 - Major fixup for RichTextBox selection drawing:
31406 * Fixed crashes when multiple tags on a single line were selected
31407 * fixed selection box drawing not overlaying text
31408 * fixed bogus offset calculation for tags not starting at index 1
31409 * Switched behaviour from using multiple Substrings of a
31410 StringBuilder.ToString() to using multiple
31411 StringBuilder.ToString(start, length) statements, hoping this is
31412 faster (kept original version commented out in the code, in case
31413 original version was faster)
31414 * TextBox.cs (set_TextAlignment): TextBox always needs to wrap if
31416 * TextBoxBase.cs (CalculateDocument): Made protected so RichTextBox can
31419 2005-06-27 Jackson Harper <jackson@ximian.com>
31421 * TabControl.cs: Move to the left and right with the arrow
31422 keys. These keys don't cycle beyond first and last like
31423 tab. Refresh all the tabs when scrolling them to the left or
31426 2005-06-27 Jackson Harper <jackson@ximian.com>
31429 - ToString: Added method
31430 - CreateParams: Remove TODO and comment
31431 - OnKeyDown: Cycle through bounds properly.
31432 - SelectedIndex: Scroll to the right or left if we need to
31433 display the newly selected tab.
31435 2005-06-23 Jackson Harper <jackson@ximian.com>
31437 * TabControl.cs: Stay in bounds when cycling. Make sure Handled is
31440 2005-06-23 Jackson Harper <jackson@ximian.com>
31442 * TabControl.cs: Keyboard handling. We now support CTRL-TAB,
31443 CTRL-SHIFT-TAB, and HOME, END are there any others?
31445 2005-06-23 Jackson Harper <jackson@ximian.com>
31447 * XplatUIX11.cs: Get the modifier keys from the keyboard driver.
31449 2005-06-22 Jordi Mas i Hernandez <jordi@ximian.com>
31451 * DataGridTextBoxColumn.cs: fixes and enhancements
31452 * ThemeWin32Classic.cs: fixes and enhancements
31453 * DataGridBoolColumn.cs: fixes and enhancements
31454 * DataGridDrawingLogic.cs: fixes and enhancements
31455 * CurrencyManager.cs: fixes and enhancements
31456 * DataGrid.cs: fixes and enhancements
31457 * DataGridColumnStyle.cs: fixes and enhancements
31459 2005-06-22 Jackson Harper <jackson@ximian.com>
31461 * TabControl.cs: Add some missing methods that just call into the
31462 base. Make the TabPageCollection's IList interface behave in the
31463 same manner as the MS implementation.
31465 2005-06-22 Peter Bartok <pbartok@novell.com>
31467 * TextControl.cs: Added sanity check
31469 - Fixed wrapping behaviour, don't set wrap on single line controls
31470 (this fixes the breakage of colordialog introduced in an earlier
31472 - Added rudimentary support for autoscrolling right-aligned controls
31473 (still needs fixing, also, center alignment scroll is missing)
31475 2005-06-22 Jordi Mas i Hernandez <jordi@ximian.com>
31477 * ScrollBar.cs: Fixes thumbpos on Maximum values
31479 2005-06-21 Jonathan Chambers <jonathan.chambers@ansys.com>
31481 * PropertyGridView.cs: Pass context information to UITypeEditors
31483 2005-06-21 Peter Bartok <pbartok@novell.com>
31486 - Now calling PositionCaret with absolute space coordinates
31487 - Enabled vertical scrolling
31488 - Better tracking of scrollbar changes, tied into WidthChange
31490 - Improved cursor tracking
31491 - Removed debug output
31493 - PositionCaret coordinates are now works in absolute space, not
31495 - Improved tracking of document size
31496 - Added events for width and height changes
31498 2005-06-21 Peter Bartok <pbartok@novell.com>
31500 * Form.cs: Set focus to active control when form is activated
31502 - Added word-wrap functionality to RecalculateLine()
31503 - Added some short function descriptions for VS.Net to aid in
31504 writing dependent controls
31505 - Added Caret property, returning the current coords of the caret
31506 - Added ViewPortWidth and ViewPortHeight properties
31507 - Added Wrap property
31508 - Added CaretMoved event
31509 - Removed some old debug code
31510 - Split() can now create soft splits
31511 - Added PreviousTag()/NextTag() to allow walking "tag-lists"
31512 - Added method to format existing text
31513 - Fixed size/alignment calculations to use viewport
31514 - RecalculateDocument now can handle changing line-numbers while
31518 - Added some wrap logic, we don't wrap if alignment is not left
31519 - Added casts for scrollbar var, base class switched types to
31520 also support RichTextBoxA
31521 - Implemented handling of scrollbar visibility flags
31524 - Switched scrollbars type to RichTextBoxScrollBars to support
31526 - Added tracking of canvas width/height
31527 - Switched scrollbars to be not selectable (to keep focus on text)
31528 - Added central CalculateDocument() method to handle all redraw
31530 - Added ReadOnly support
31531 - Added WordWrap support
31532 - Fixed handling of Enter key (we now treat it as a DialogKey)
31533 - Fixed caret positioning when h or v scroll is not zero
31534 - Fixed placing/generation of vertical scrollbar
31535 - Added CalculateScrollBars() method to allow updating scrollbar
31536 limits and visibility
31537 - Fixed handling of horizontal scroll
31538 - Added handling of vertical scroll
31539 - Implemented auto-'jump' when caret moves to close to a left or
31540 right border and there is text to be scrolled into view (currently
31541 there's the potential for a stack overflow, until a bug in
31542 scrollbar is fixed)
31544 2005-06-21 Geoff Norton <gnorton@customerdna.com>
31546 * XplatUIOSX.cs: Initial implementation of WM_ERASEBKGND
31548 2005-06-19 Alexander Olk <xenomorph2@onlinehome.de>
31552 - return application/x-zerosize for files with size zero
31553 (if no extension pattern matches).
31554 - check matches collection for strings too.
31555 - return only the first mime type if the name value
31556 collection has more than one mime type.
31558 2005-06-18 Jonathan Chambers <jonathan.chambers@ansys.com>
31560 * PropertyGrid.cs: Cleaned up some TODOs
31561 * PropertyGridView.cs: Added support for UITypeEditors
31563 2005-06-17 Jordi Mas i Hernandez <jordi@ximian.com>
31565 * DataGrid.cs: clears cached value
31567 2005-06-17 Jordi Mas i Hernandez <jordi@ximian.com>
31569 * DataGridTextBoxColumn.cs: new rows, speed improvements, fixes, readonly prop.
31570 * DataGridDrawingLogic.cs: new rows, speed improvements, fixes, readonly prop.
31571 * DataGrid.cs: new rows, speed improvements, fixes, readonly prop.
31572 * DataGridColumnStyle.cs: new rows, speed improvements, fixes, readonly prop.
31574 2005-06-16 Jordi Mas i Hernandez <jordi@ximian.com>
31576 * ThemeWin32Classic.cs: fixes colour
31578 2005-06-15 Peter Bartok <pbartok@novell.com>
31580 * MWFCategoryAttribute.cs: Added (Needed for PropertyGrid designer support)
31581 * MWFDescriptionAttribute.cs: Added (Needed for PropertyGrid designer support)
31582 * ButtonBase.cs: Added MWFCategory and MWFDescription attributes
31583 * Control.cs: Added some MWFCategory and MWFDescription attributes
31584 * ScrollBar.cs: Added some MWFCategory and MWFDescription attributes
31586 2005-06-15 Alexander Olk <xenomorph2@onlinehome.de>
31588 * Mime.cs, MimeGenerated.cs: First draft of MWF mime stuff, see Mime.cs for
31591 2005-06-14 Jordi Mas i Hernandez <jordi@ximian.com>
31593 * DataGridTextBoxColumn.cs: default datagrid settings for Default Styles, fixes
31594 * DataGridTableStyle.cs: default datagrid settings for Default Styles, fixes
31595 * DataGridDrawingLogic.cs: default datagrid settings for Default Styles, fixes
31596 * DataGridBoolColumn.cs: default datagrid settings for Default Styles, fixes
31597 * DataGrid.cs: default datagrid settings for Default Styles, fixes
31598 * DataGridColumnStyle.cs: default datagrid settings for Default Styles, fixes
31600 2005-06-13 Jackson Harper <jackson@ximian.com>
31602 * XplatUIX11.cs: Override SetAllowDrop on X11 so an error message
31603 isn't printed when the user enables dropping. (X11 does accept
31606 2005-06-13 Jackson Harper <jackson@ximian.com>
31608 * TreeView.cs: Remove some TODOS.
31610 2005-06-13 Jackson Harper <jackson@ximian.com>
31612 * Form.cs: Hook into the mdi framework.
31613 * MdiClient.cs: Use the base control collections add method so
31614 parents get setup correctly. Set the default back colour and dock
31616 * MdiChildContext.cs: New class, this bad actor handles an
31617 instance of an MDI window. Right now there is only basic
31618 support. You can drag, close, and resize windows. Minimize and
31619 Maximize are partially implemented.
31621 2005-06-13 Jackson Harper <jackson@ximian.com>
31623 * XplatUIX11.cs: Mash numbers together properly, otherwise we get
31624 freaky when both vals are negative. NOTE: There are probably other
31625 places in XplatUIX11 that this needs to be done.
31627 2005-06-13 Jordi Mas i Hernandez <jordi@ximian.com>
31629 * DataGrid.cs: implement missing methods, move KeyboardNavigation
31630 * DataGridColumnStyle.cs: fixes signature
31632 2005-06-12 Jackson Harper <jackson@ximian.com>
31634 * XplatUIX11.cs: Use sizing cursors similar to the ones on
31637 2005-06-11 Jackson Harper <jackson@ximian.com>
31639 * StatusBarPanel.cs: Signature cleanups. Implement
31642 2005-06-10 Jordi Mas i Hernandez <jordi@ximian.com>
31644 * DataGridTextBoxColumn.cs: Honors aligment
31645 * GridColumnStylesCollection.cs: Contains is case unsensitive
31646 * GridTableStylesCollection.cs: several fixes
31647 * DataGridTableStyle.cs: default column creation
31648 * DataGridDrawingLogic.cs: fixes
31649 * CurrencyManager.cs: ListName property
31650 * DataGrid.cs: multiple styles support
31651 * DataGridColumnStyle.cs: fixes
31654 2005-06-10 Peter Bartok <pbartok@novell.com>
31656 * Control.cs(Select): Moved SetFocus call to avoid potential
31657 loops if controls change the active control when getting focus
31658 * UpDownBase.cs: Fixes to allow proper keyboard focus after clicking
31659 the up/down buttons
31661 2005-06-10 Matthias Felgner <matthiasf@voelcker.ocm>
31663 * ImageListConverter.cs: Implemented
31665 2005-06-10 John BouAntoun <jba-mono@optusnet.com.au>
31667 * MonthCalendar.cs: Wired in NumericUpDown control for year
31669 2005-06-10 John BouAntoun <jba-mono@optusnet.com.au>
31671 * MonthCalendar.cs: Removed MonoTodo attributes on Click and
31672 DoubleClick events, since they are not meant to be fired.
31674 2005-06-09 Peter Bartok <pbartok@novell.com>
31676 * UpDownBase.cs, NumericUpDown.cs, DomainUpDown.cs: Integrated
31677 Jonathan's standalone controls into MWF, implemented missing
31678 events, attributes and methods; added xxxAccessible classes
31679 * AccessibleObject.cs: Made fields internal so other classes
31680 can change them if needed
31682 2005-06-09 Jonathan Gilbert <2a5gjx302@sneakemail.com>
31684 * UpDownBase.cs: Complete implementation
31685 * NumericUpDown.cs: Complete implementation
31686 * DomainUpDown.cs: Complete implementation
31688 2005-06-09 Jordi Mas i Hernandez <jordi@ximian.com>
31690 * DataGridTextBoxColumn.cs: drawing fixes
31691 * DataGridCell.cs: fixes ToString method to match MSNet
31692 * DataGridTableStyle.cs: fixes
31693 * DataGridBoolColumn.cs: fixes, drawing
31694 * DataGridDrawingLogic.cs: fixes, new methods
31695 * DataGridTextBox.cs: Keyboard and fixes
31697 - Keyboard navigation
31699 - Row selection (single, multiple, deletion, etc)
31702 2005-06-07 Jackson Harper <jackson@ximian.com>
31704 * ThemeWin32Classic.cs: Clear the background area when drawing
31707 2005-06-06 Peter Bartok <pbartok@novell.com>
31709 * ImageListStreamer.cs: Fixed signature for GetData
31710 * CheckBox.cs: Fixed base class for CheckBoxAccessibleObject
31712 - Added missing ChildAccessibleObject class
31713 - Added missing OnXXXFocus overrides, switched to using those
31714 instead of the event handler
31716 - Added Parent property for ControlAccessibleObject
31719 - Added ResetBindings()
31720 * ListBindingConverter.cs: Implemented some methods
31721 * ButtonBase.cs: Added missing ButtonBaseAccessibleObject class
31722 * ImageList.cs: Implemented basic handle scheme, removed TODOs
31723 * ContainerControl.cs: Fixed signature, now subscribing to the
31724 ControlRemoved event instead of overriding the handler, LAMESPEC
31725 * CurrencyManager.cs: Added missing attribute
31726 * MonthCalendar.cs: Added missing properties
31728 2005-06-06 Jordi Mas i Hernandez <jordi@ximian.com>
31730 * DataGridColumnStyle.cs: fixes for DataGridColumnStyle
31732 2005-06-06 Gaurav Vaish and Ankit Jain
31734 * DataSourceHelper.cs: Gaurav Vaish and Ankit Jain patch for databinding
31735 * DataGrid.cs: Gaurav Vaish and Ankit Jain patch for databinding
31737 2005-06-06 Jordi Mas i Hernandez <jordi@ximian.com>
31739 * Control.cs: fixes CreateParams Width / Height.
31741 2005-06-05 Peter Bartok <pbartok@novell.com>
31743 * Win32DnD.cs: Removed compilation warnings
31745 2005-06-05 Peter Bartok <pbartok@novell.com>
31747 * Control.cs (CreateParams): Since we don't know if one of the
31748 properties we use is overridden, lets make sure if we fail accessing
31749 we continue with a backup plan
31751 2005-06-05 Peter Bartok <pbartok@novell.com>
31754 - Removed debug output
31755 - Added MarshalAs attribute to ensure proper marshalling of FORMATETC
31757 - Plugged resource leak
31758 * XplatUIStructs.cs: Changed ClipboardFormats size to ushort, to match
31761 2005-06-05 Peter Bartok <pbartok@novell.com>
31763 * XplatUIWin32.cs: Removed DnD code
31764 * Win32DnD.cs: Implemented drop source and drop target functionality
31766 2005-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
31768 * UpDownBase.cs: remove duplicate addition of event, enable some code
31769 that was commented out.
31770 * NumericUpDown.cs: added missing attributes and Hexadecimal property.
31771 Validate input when a key is pressed. It works fine now for every
31772 combination of Hexadecimal. Only missing some drawing love when sharing
31773 space with other controls.
31775 2005-06-04 Peter Bartok <pbartok@novell.com>
31778 - We need to pass a window for DragDrop, so enable callback events
31779 - Added DnD callback events when being a DragSource
31780 * XplatUI.cs (StartDrag): Added window handle argument
31781 * XplatUIDriver.cs (StartDrag): Added window handle argument
31782 * QueryContinueDragEventArgs: Made fields internally accessible so
31783 drivers can set them
31784 * GiveFeedbackEventArgs: Made fields internally accessible so drivers
31787 2005-06-03 Jordi Mas i Hernandez <jordi@ximian.com>
31789 * DataGridTextBoxColumn.cs: column text editing
31790 * DataGridTableStyle.cs: Respect columns styles created by the user
31791 * DataGridDrawingLogic.cs: lots of drawing fixes and enhanments
31792 * DataGridBoolColumn.cs: bool column editing
31793 * DataGrid.cs: fixes to scrolling, properties, etc
31794 * DataGridTextBox.cs: handle keyboard
31795 * DataGridColumnStyle.cs: fixes
31797 2005-06-02 Jackson Harper <jackson@ximian.com>
31799 * ImageListStreamer.cs: Somewhat broken implementation of
31800 GetObjectData. The RLE needs some work to match MS properly.
31802 2005-06-02 Jackson Harper <jackson@ximian.com>
31804 * X11Dnd.cs: Attempting to keep at least one file in MWF
31807 2005-06-02 Peter Bartok <pbartok@novell.com>
31809 * X11DnD.cs: Use Marshal.SizeOf instead of sizeof, no /unsafe required
31812 2005-06-02 Peter Bartok <pbartok@novell.com>
31814 * Control.cs: Removed MonoTODO from DoDragDrop and added call to Xplat
31815 * XplatUI.cs: Added DoDragDrop() method
31816 * XplatUIDriver.cs: Added DoDragDrop() method
31818 2005-06-02 Jackson Harper <jackson@ximian.com>
31820 * Splitter.cs: Implement BorderStyle.
31822 2005-06-02 Jackson Harper <jackson@ximian.com>
31824 * XplatUIX11.cs: Tie into the X11Dnd subsystem.
31825 * X11Dnd.cs: New file. A subsystem that handles drag and drop on
31828 2005-06-02 Peter Bartok <pbartok@novell.com>
31831 - Added Data setter
31832 - Fixed broken insertion code for SetData, now also
31833 overwrites any existing entry of the same format name
31834 * Hwnd.cs: Added list of pointers that automatically gets
31835 freed when the window is disposed
31836 * XplatUI.cs: Call driver initialization method when loading
31839 - OnDragLeave takes EventArgs, not DragEventArgs
31840 - Added setting of WS_EX_ACCEPTFILES style when dropping is
31842 - Forces style update when drop state changes
31843 * XplatUIWin32.cs: Implemented Drag'n'Drop (as good as possible,
31844 not perfect since we cannot (yet) call the IDataObject.GetData()
31845 method, we keep getting 0x80004005 error, dunno why)
31847 2005-06-02 Peter Bartok <pbartok@novell.com>
31849 * DragEventArgs.cs: Make fields internal so we can cache the
31850 object and re-set the fields from XplatUI
31852 2005-06-02 Jackson Harper <jackson@ximian.com>
31854 * Control.cs: Add some internal methods so the DnD subsystem can
31855 raise DnD events. Also call into the driver when AllowDrop is set.
31857 * XplatUIDriver.cs: New method for setting whether or not a window
31858 is allowed to accept drag and drop messages.
31860 2005-06-01 Jordi Mas i Hernandez <jordi@ximian.com>
31862 * ScrollBar.cs: Make sure that values sent in Scroll events
31863 are always between Maximum and Minimum.
31865 2005-06-01 Marek Safar <marek.safar@seznam.cz>
31867 * Menu.cs: Call MenuChanged when menuitem visibility has been
31869 * MenuItem.cs: Rebuild menu when item is (not) visible.
31870 * MainMenu.cs: MainMenu has special MenuChanged.
31871 * Theme.cs: Caption and FrameBorderSize are not fixed.
31872 * XplatUI.cs: Added CaptionHeight,FrameBorderSize.
31873 * XplatUIDriver.cs: Introduced Caption and FrameBorderSize.
31875 * XplatUIOSX: Caption and FrameBorderSize not implemented yet.
31876 * XplatUIWin32.cs: Get Caption and FrameBorderSize from system.
31878 2005-05-30 Jackson Harper <jackson@ximian.com>
31880 * DataFormat.cs: We can't statically initialize this stuff because
31881 it calls into the xplatui and could create a loop. So we lazy init
31884 2005-05-28 Jackson Harper <jackson@ximian.com>
31886 * Control.cs: Proper implementation of Product(Name/Version).
31888 2005-05-27 Jackson Harper <jackson@ximian.com>
31890 * DataObject.cs: Dont crash if no data is found.
31892 2005-05-26 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
31893 * MdiClient.cs: Add missing Localizable attribute to BackgroundImage property
31894 as per status page, guessing it should be set to true
31896 2005-05-26 Jordi Mas i Hernandez <jordi@ximian.com>
31898 * DataGridTextBoxColumn.cs: Draws text and basic text formatting
31899 * DataGridTableStyle.cs: set proper formatting text, def header text
31900 * ThemeWin32Classic.cs: new themable paramaters
31901 * DataGridBoolColumn.cs: paint check box, get data, fixes
31902 * DataGridDrawingLogic.cs: huge improvements in painting, fixes, new methods
31903 * DataGrid.cs: fixes properties, implements vertical and horizontal scrolling
31904 * DataGridColumnStyle.cs: fixes
31905 * Theme.cs: new themable paramaters
31907 2005-05-26 Peter Bartok <pbartok@novell.com>
31909 * ContainerControl.cs: Pass AdjustFormScrollbars() call on to base
31911 2005-05-24 Jonathan S. Chambers <jonathan.chambers@ansys.com>
31912 * Control.cs: Fixed LowOrder and HighOrder to preserve sign.
31914 2005-05-24 Peter Bartok <pbartok@novell.com>
31916 * OpenFileDialog.cs, Form.cs, Menu.cs, GroupBox.cs, UserControl.cs,
31917 Label.cs, DataGridTextBoxColumn.cs, PropertyGrid.cs, ErrorProvider.cs
31918 Splitter.cs, Control.cs, FontDialog.cs, TabPage.cs,
31919 FolderBrowserDialog.cs, HelpProvider.cs, DataGridTableStyle.cs,
31920 NotifyIcon.cs, FileDialog.cs, ListView.cs, SaveFileDialog.cs,
31921 ToolBarButton.cs, ImageList.cs, DataGridBoolColumn.cs, Panel.cs,
31922 DataGrid.cs, DataGridTextBox.cs, ListBox.cs, TrackBar.cs,
31923 AxHost.cs, TabControl.cs, ScrollableControl.cs, ToolBar.cs,
31924 DataGridColumnStyle.cs, PictureBox.cs, DateTimePicker.cs,
31925 StatusBar.cs, MonthCalendar.cs, TreeView.cs: Added
31926 missing attributes, etc
31927 * DataGridPreferredColumnWidthTypeConverter.cs: Added
31929 2005-05-24 Peter Bartok <pbartok@novell.com>
31931 * Help.cs: Added, implemented trivial functions, throws up MessageBox
31932 when user tries to get help
31933 * DataObject.cs, DataFormats.cs, LinkArea.cs,
31934 SelectionRangeConverter.cs, Clipboard.cs : Removed unused variables
31935 to suppress warnings
31936 * XplatUIWin32.cs, XplatUIOSX.cs, XplatUIX11.cs: Removed unused code to
31937 avoid unreachable code warning
31939 2005-05-20 Peter Bartok <pbartok@novell.com>
31941 * CursorConverter.cs (ConvertTo): Switched to use Cursor.GetObjectData
31943 2005-05-20 Jordi Mas i Hernandez <jordi@ximian.com>
31945 * DataGridTextBoxColumn.cs: Basic painting methods
31946 * DataGridTableStyle.cs: Set table style in the column
31947 * ThemeWin32Classic.cs: Use Theme for colors
31948 * DataGridDrawingLogic.cs: Implement more drawing
31949 * DataGrid.cs: drawing, theming, enhacements, fixes
31950 * DataGridColumnStyle.cs: fixes, drawing
31951 * Theme.cs: theming for Datagrid
31953 2005-05-20 Peter Bartok <pbartok@novell.com>
31955 * Cursor.cs: Implemented GetObjectData() method
31957 2005-05-20 Peter Bartok <pbartok@novell.com>
31959 * Cursors.cs: Added setting of cursor name
31961 - Implemented constructors
31962 - Implemented Draw and DrawStretched
31963 - Implemented Current property
31964 - Implemented == and != operators
31965 - Implemented Dispose()
31966 - Implemented ToString
31967 - Added missing attributes
31969 - Added missing reset for OverrideCursor when DoEvents is called
31970 - Fixed creation of cursor, logic was wrong
31972 - Added missing reset for OverrideCursor when DoEvents is called
31973 - Fixed creation of cursor, bit arrays were swapped
31974 * Clipboard.cs: Removed obsolete MonoTODO attribute
31976 2005-05-20 Jordi Mas i Hernandez <jordi@ximian.com>
31978 * ComboBox.cs: fixes OnSelectedItemChanged
31979 * ControlBindingsCollection.cs: fixes item range check
31981 2005-05-20 Jordi Mas i Hernandez <jordi@ximian.com>
31984 - Calc preferred height properly
31985 - Implement missing properties
31987 * NumericUpDown.cs: Implement missing events
31989 2005-05-19 Jackson Harper <jackson@ximian.com>
31991 * TabControl.cs: New method that resizes the tab pages before
31992 redrawing them. This as needed as the control is double buffered
31993 and sizing will not be recalculated unless ResizeTabPages is
31995 * TabPage.cs: Set base.Text instead of Text in the constructor so
31996 that UpdateOwner does not get called. Use the new Redraw method of
31997 TabControl instead of Refresh so the sizing is recalculated.
31998 * ThemeWin32Classic.cs: Draw the text for button tabs.
32000 2005-05-19 Jackson Harper <jackson@ximian.com>
32002 * Control.cs: Paint control background images. Fix typo where
32003 PaintControlBackground was not getting called correctly.
32005 2005-05-19 Peter Bartok <pbartok@novell.com>
32007 * ScrollableControl.cs (DisplayRectangle): Undid my last change until
32008 I can investigate, apparently I broke FileDialog
32010 2005-05-19 Marek Safar <marek.safar@seznam.cz>
32012 * AxHost.cs: Some simple properties.
32013 * Control.cs: window must be accessible after ctor.
32014 * Form.cs: Added TransparencyKey property.
32015 * TextBoxBase.cs: Implemented Clear. Text property can be null.
32016 * XplatUIWin32.cs: SetBorderStyle implemented.
32018 2005-05-18 Peter Bartok <pbartok@novell.com>
32020 * DataObject.cs: Entries are not global but particular to the
32021 DataObject, now it behaves that way
32022 * XplatUIWin32.cs: Implemented Clipboard methods
32023 * Clipboard.cs: Implemented
32024 * ScrollableControl.cs (DisplayRectangle): Fixed calculation
32025 * XplatUIOSX.cs: Updated to final clipboard prototypes
32026 * XplatUIX11.cs: Implemented Clipboard methods
32027 * XplatUIDriver.cs: Updated to final clipboard prototypes
32028 * XplatUIStructs.cs:
32029 - Added BITMAPINFOHEADER struct
32030 - Added ClipboardFormats enum
32032 - Added ClipboardStruct
32033 - Added Atom enum items for clipboard types
32034 - Fixed atom types for Selection event structures
32036 - Added internal properties and methods for drivers to enumerate
32038 - Switched initialization method to allow drivers to assign their
32039 own IDs even for the MS predefined clipboard IDs
32040 * XplatUI.cs: Updated to final clipboard interface
32042 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
32043 * PropertyGridView.cs: Fixed compiler warnings.
32045 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
32046 * PropertyGrid.cs: Added some event calls
32047 * PropertyGridView.cs: Change drawing code to use double buffering
32048 * PropertyGridTextBox.cs: Changed Text property name
32049 * GridItem.cs: Added Bounds property.
32050 * GridEntry.cs: Added Bounds property.
32052 2005-05-17 Lluis Sanchez Gual <lluis@novell.com>
32054 * Binding.cs: Use IsInstanceOfType instead of IsAssignableFrom
32055 since GetType() may not return the correct type if the object is
32058 2005-05-17 Jordi Mas i Hernandez <jordi@ximian.com>
32060 * TreeNodeCollection.cs: fixes get/set item ranges
32062 2005-05-15 Jordi Mas i Hernandez <jordi@ximian.com>
32064 * ListBox.cs: Kazuki Oikawa's PreferredHeight and ItemHeight fixes
32066 2005-05-15 Jordi Mas i Hernandez <jordi@ximian.com>
32068 * ComboBox.cs: Fix item range comparation
32069 * ListView.cs: Fix item range comparation
32071 2005-05-03 Alexander Olk <xenomorph2@onlinehome.de>
32074 - Clear example panel when OnPaint is called
32075 - Better solution for displaying the example panel text
32076 - Select default indexes in the ListBoxes
32078 2005-05-11 Geoff Norton <gnorton@customerdna.com>
32080 * XplatUIOSX.cs: Avoid painting into invisible views. Fixes #74926
32082 2005-05-11 Peter Bartok <pbartok@novell.com>
32084 * LinkArea.cs: Added and implemented LinkAreaTypeConverter class
32085 * SelectionRangeConverter.cs: Implemented
32086 * PropertyGrid.cs: Fixed attribute value
32088 - Invoke(): Don't call Begin/EndInvoke if it is not neccessary
32089 - Added Sebastien Pouliot's CAS Stack Propagation fixes
32090 * XplatUIDriver.cs: Added new XplatUIDriverSupport class, for code
32091 that's common to all drivers. First methods to go there are
32092 Sebastien Pouliot's CAS Stack Propagation helper methods
32093 * XplatUIWin32.cs, XplatUIX11.cs, AsyncMethodData.cs: Fixes by
32094 Sebastien Pouliot for CAS Stack Propagation
32096 2005-05-11 Geoff Norton <gnorton@customerdna.com>
32099 XplatUIOSX.cs: More cosmetic cleanup courtesy of Artyom Tyazhelov (Artyom.Tyazhelov@helmes.ee)
32101 2005-05-12 Jordi Mas i Hernandez <jordi@ximian.com>
32103 * DataGridTextBoxColumn.cs: fixed some members
32104 * GridColumnStylesCollection.cs: indexed column is case insensitive
32105 * DataGridTableStyle.cs: fixes
32106 * ThemeWin32Classic.cs: add new theme parameter
32107 * Theme.cs: add new theme parameter
32108 * DataGridDrawingLogic.cs: Datagrid's drawing logic
32109 * DataGrid.cs: fixes, new internal properties, etc.
32110 * DataGridColumnStyle.cs: allows to set grid value
32113 2005-05-10 Peter Bartok <pbartok@novell.com>
32115 * AccessibleObject.cs:
32116 - Removed MonoTODO attribute on help, method is correct
32117 - Fixed Bounds property
32118 * AxHost.cs: Moved MonoTODO
32119 * ButtonBase.cs: Now setting AccessibleObject properties
32120 * RadioButton.cs: Setting proper AccessibleObject role
32121 * CheckBox.cs: Setting proper AccessibleObject role
32122 * ControlBindingsCollection.cs: Added properties, methods and attributes
32123 * DataFormats.cs: Fixed awkward internal API, and changed to enable
32124 userdefined DataFormats.Format items as well
32125 * ListControl.cs: Removed data_member from the public eye
32126 * OpenFileDialog.cs:
32127 - Made class sealed
32128 - Added missing attributes
32129 * SaveFileDialog.cs: Added missing attributes
32130 * ImageListStreamer.cs: Fixed code that caused warnings
32131 * LinkLabel.cs: Removed unreachable code
32132 * TreeView.cs: Fixed code that caused warnings
32133 * PropertyGridView.cs: Fixed code that caused warnings
32134 * GridColumnStylesCollection.cs: Added missing attributes
32135 * GridTableStylesCollection: Added missing attribute
32136 * PropertyManager: Added .ctor
32137 * SecurityIDType: Added
32138 * DataObject.cs: Implemented class
32139 * LinkArea.cs: Added missing attribute
32141 2005-05-11 Jordi Mas i Hernandez <jordi@ximian.com>
32143 * RadioButton.cs: call base method to allow to fire OnClick event
32144 * UpDownBase.cs: OnMouseUp call base method
32145 * CheckedListBox.cs: call base method before returning
32146 * TrackBar.cs: call base method before returning
32149 2005-05-10 Peter Bartok <pbartok@novell.com>
32151 * XplatUIX11.cs: Fix for #74902, check pending timers when peeking
32154 2005-05-10 Peter Bartok <pbartok@novell.com>
32156 * DataFormats.cs: Implemented
32157 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs,
32158 XplatUIX11.cs: Added Clipboard APIs
32159 * XplatUIWin32.cs: Implemented Clipboard APIs
32160 * FolderBrowserDialog.cs: Added missing event, attributes
32162 2005-05-10 Jordi Mas i Hernandez <jordi@ximian.com>
32164 * CheckBox.cs: call base method to allow to fire OnClick event
32166 2005-05-09 Sebastien Pouliot <sebastien@ximian.com>
32168 * XplatUI.cs: Use PlatformID.Unix under NET_2_0.
32170 2005-05-06 Peter Bartok <pbartok@novell.com>
32172 * XplatUIX11.cs: Redid Jackson's fix, it was causing a busy loop
32173 * Screen.cs: Implemented
32174 * HelpNavigator.cs: Added
32175 * XplatUIWin32.cs: Added SystemParametersInfo call, fixed WorkArea
32177 * HelpProvider.cs: Implemented all we can do until we have a CHM
32178 help library (which means that "What's This" does work now)
32180 2005-05-06 Jackson Harper <jackson@ximian.com>
32182 * XplatUIX11.cs: Fix waking up the main loop.
32184 2005-05-05 Peter Bartok <pbartok@novell.com>
32186 * XplatUI.cs: Updated revision
32187 * Form.cs: Removed enless loop
32188 * GroupBox.cs (OnPaint): Added call to base.OnPaint()
32189 * Label.cs (OnPaint): Added call to base.OnPaint()
32190 * ToolTip.cs: Made ToolTipWindow reusable for other controls
32191 * LinkLabel.cs (OnPaint): Added call to base.OnPaint()
32192 * UpDownBase.cs (OnPaint): Moved base.OnPaint() call to end of method
32194 * ButtonBase.cs: Moved base.OnPaint() call to end of method
32195 * ThemeWin32Classic.cs: Replaced references to ToolTip with references
32196 to ToolTip.ToolTipWindow for drawing and size methods; this allows
32197 reuse of ToolTipWindow by other controls
32198 * SizeGrip.cs: Moved base.OnPaint() call to end of method
32199 * XplatUIX11.cs: Now clipping drawing area (experimental)
32200 * PictureBox.cs: Moved base.OnPaint() call to end of method
32201 * Theme.cs: Fixed ToolTip abstracts to match new format
32202 * ErrorProvider.cs: Implemented
32204 2005-05-05 Jordi Mas i Hernandez <jordi@ximian.com>
32206 * Label.cs: fire events using OnAutoSizeChanged and OnTextAlignChanged
32210 - Implements LinkBehavior
32211 - Fixes many issues
32213 2005-05-03 Jackson Harper <jackson@ximian.com>
32215 * ListView.cs: Calculate the scrollbar positioning on resize and
32216 paint, so they get put in the correct place.
32218 2005-05-03 Alexander Olk <xenomorph2@onlinehome.de>
32220 * ColorDialogs.cs: The small color panels are now handled by
32221 SmallColorControl. This fixes drawing of the focus rectangle
32222 and adds a 3D border.
32224 2005-05-03 Peter Bartok <pbartok@novell.com>
32226 * Control.cs: Modified version of Jonathan Chamber's fix for
32229 2005-05-03 Jackson Harper <jackson@ximian.com>
32231 * ListView.cs: Remove redraw variable. Control now handles whether
32232 or not a redraw needs to be done, and will only raise the paint
32233 event if redrawing is needed.
32235 2005-05-03 Jackson Harper <jackson@ximian.com>
32237 * Splitter.cs: No decorations for the splitter form. Cache the
32240 2005-05-03 Jackson Harper <jackson@ximian.com>
32242 * TreeView.cs: Use dashed lines to connect nodes. Use the
32243 ControlPaint method for drawing the focus rect instead of doing
32246 2005-05-02 Peter Bartok <pbartok@novell.com>
32248 * LinkLabel.cs: Fixed the fixes from r43566 and 43521
32250 2005-04-29 Jackson Harper <jackson@ximian.com>
32252 * ThemeWin32Classic.cs: Don't clear the GC that will clear the
32253 entire image buffer. Just clear the clipping rectangle.
32255 2005-04-29 Jackson Harper <jackson@ximian.com>
32257 * ThemeWin32Classic.cs: Don't draw list view items that are
32258 outside the clipping rectangle.
32260 2005-04-29 Jordi Mas i Hernandez <jordi@ximian.com>
32262 * ListBox.cs: added horizontal item scroll
32264 2005-04-29 Jackson Harper <jackson@ximian.com>
32266 * ThemeWin32Classic.cs: Remove some old debug code that was
32267 causing flicker with the new double buffering code.
32269 2005-04-29 John BouAntoun <jba-mono@optusnet.com.au>
32271 * MonthCalendar.cs, DateTimePicker.cs: Made monthcalendar dropdwon
32272 behave like combobox and comboboxlist (still not sure if this is
32275 2005-04-28 Jackson Harper <jackson@ximian.com>
32277 * ThemeWin32Classic.cs: Don't fill the middle of progress
32278 bars. This fills areas outside of the clip bounds that don't need
32281 2005-04-28 Jackson Harper <jackson@ximian.com>
32283 * Control.cs: Don't expose functionality to touch the image buffers.
32285 * ListView.cs: We do not need to (and no longer can) manipulate
32286 the image buffers directly. All of this is handled by Control.
32288 2005-04-28 Peter Bartok <pbartok@novell.com>
32290 * RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
32291 RichTextBoxScrollBars.cs, RichTextBoxStreamType.cs,
32292 RichTextBoxFinds.cs, RichTextBoxWordPunctuations.cs: Added
32294 2005-04-28 Jordi Mas i Hernandez <jordi@ximian.com>
32297 - Adjust control's height for non-simple comboboxes (bug fix)
32299 * MenuAPI.cs: remove unused var
32300 * ScrollBar.cs: remove unsed var
32302 * ListBox.cs: unselect items when clearing
32304 2005-04-28 Jordi Mas i Hernandez <jordi@ximian.com>
32306 * ListControl.cs: honors OnPositionChanged and default Selected Item
32307 * ListBox.cs: unselect items when clearing
32309 2005-04-27 Jackson Harper <jackson@ximian.com>
32311 * X11Keyboard.cs: Initialize a default keyboard and give a warning
32312 if a "correct" keyboard is not found. This will make us not crash,
32313 but might give some users bad keyboard layouts...seems to be the
32314 same thing rewind does.
32316 2005-04-27 Jackson Harper <jackson@ximian.com>
32318 * BindingManagerBase.cs: Attach the current/position changed
32319 handlers to their respective events.
32321 2005-04-27 Jackson Harper <jackson@ximian.com>
32323 * Control.cs: Make sure that the first WM_PAINT does a full draw,
32325 * ThemeWin32Classic.cs: Don't fill the background for picture
32326 boxes. This could overright user drawing.
32327 * ComboBox.cs: Just fill the clipping rect not the entire client
32328 rect when drawing the background. This prevents pieces of the
32329 image buffer from getting overwritten and is theoretically faster.
32331 2005-04-26 Jordi Mas i Hernandez <jordi@ximian.com>
32333 * ComboBox.cs: Databinding support fixes, fire missing events
32334 * ListControl.cs: implement missing methods and properties, fixes
32335 * ThemeWin32Classic.cs: Databiding support on Drawing
32336 * CheckedListBox.cs: Databinding support fixes, fire missing events
32337 * ListBox.cs: Databinding support fixes, fire missing events
32339 2005-04-25 Peter Bartok <pbartok@novell.com>
32341 * LinkLabel.cs: Length of LinkArea is not allowed to be negative
32343 2005-04-25 Jackson Harper <jackson@ximian.com>
32345 * TreeView.cs: Use the horizontal scrollbars height not width when
32346 determining how much of the client area is available.
32348 2005-04-25 Jackson Harper <jackson@ximian.com>
32350 * Control.cs: Double buffering is handled differently now. As per
32351 the spec, the extra buffer is created in the WM_PAINT message and
32352 passed down to the control's drawing code.
32360 * PropertyGridView.cs:
32372 * DateTimePicker.cs:
32374 * TreeView.cs: Update to new double buffering system.
32375 * MonthCalendar.cs: Uncomment block, as Capture is now
32376 working. Update to new double buffering
32377 * LinkLabel.cs: Lazy init the link collection. Update to new double buffering
32378 * PaintEventArgs.cs: New internal method allows us to set the
32379 graphics object. This is used for double buffering.
32380 * ThemeWin32Classic.cs: Give the picture box drawing code a clip
32381 rectangle. The internal paint_area var has been removed from
32382 StatusBar. The clipping rect should be used instead.
32383 * Theme.cs: Give the PictureBox drawing method a clipping rect.
32384 * TabPage.cs: The RefreshTabs method was removed, so just call the
32385 tab controls Refresh method now.
32386 * TabControl.cs: Update to new double buffering. Make sure the
32387 handle is created before sizing the tab pages, otherwise we will
32388 get stuck in a loop.
32390 2005-04-24 Borja Sanchez Zamorano <borsanza@gmail.com>
32392 * LinkLabel.cs: Fix typo, bug #74719; patch
32393 from Borja Sanchez Zamorano
32395 2005-04-22 Jackson Harper <jackson@ximian.com>
32397 * TreeNode.cs: Implement Handle stuff.
32398 * TreeView.cs: Utility methods so nodes can get/lookup by handle.
32400 2005-04-22 Jordi Mas i Hernandez <jordi@ximian.com>
32402 * DataGridTextBoxColumn.cs: call base constructors, fixes
32403 * GridColumnStylesCollection.cs: missing events, methods, and functionality
32404 * GridTableStylesCollection.cs: fixes, check duplicate mapping names
32405 * DataGridTableStyle.cs: implements create default column styles
32406 * DataGridBoolColumn.cs: which types can handle
32407 * DataGrid.cs: missing methods, fixes, new functionality
32408 * DataGridColumnStyle.cs: fixes
32410 2005-04-20 Alexander Olk <xenomorph2@onlinehome.de>
32411 * FolderBrowserDialog.cs:
32412 - Use a thread to fill the TreeView
32413 - Adjusted some sizes
32415 2005-04-19 Peter Bartok <pbartok@novell.com>
32417 * LinkLabel.cs: (Re-)create the pieces when setting the Text
32418 property. Fixes #74360.
32420 2005-04-19 Jackson Harper <jackson@ximian.com>
32422 * XEventQueue.cs: Lock when getting the lockqueue size.
32423 * PictureBox.cs: Call base OnPaint
32425 2005-04-19 Peter Bartok <pbartok@novell.com>
32427 * XplatUIX11.cs: Fixed bug introduced with the HWND rewrite, Async
32428 messages were no longer being processed (this broke BeginInvoke)
32431 2005-04-18 Jackson Harper <jackson@ximian.com>
32433 * TreeView.cs: buglet that caused node images to get drawn
32434 regardless of whether or not they were in the clipping rectangle.
32436 2005-04-18 Jackson Harper <jackson@ximian.com>
32438 * CurrencyManager.cs: There are four rules for GetItemProperties:
32439 - If the type is an array use the element type of the array
32440 - If the type is a typed list, use the type
32441 - If the list contains an Item property that is not an object, use
32443 - use the first element of the list if there are any elements in
32446 2005-04-17 Jackson Harper <jackson@ximian.oom>
32448 * TreeView.cs: Calculate plus minus and checkbox bounds when there is a
32449 click. This handles offsets for scrolling properly and reduces
32450 memory. Also fixed GetNode to not offset now that TopNode works
32452 * TreeNode.cs: No longer need to track the plus minus or checkbox bounds.
32454 2005-04-17 Jackson Harper <jackson@ximian.com>
32456 * CursorConverter.cs: Initial implementation.
32458 2005-04-15 Jordi Mas i Hernandez <jordi@ximian.com>
32460 * ListControl.cs: work towards complex data binding support on ListControl
32461 * CurrencyManager.cs: work towards complex data binding support on ListControl
32462 * ListBox.cs: work towards complex data binding support on ListControl
32465 2005-04-15 Jordi Mas i Hernandez <jordi@ximian.com>
32467 * GridTableStylesCollection.cs: fixes name and constructor
32468 * DataGridTableStyle.cs: fixes
32469 * DataGridBoolColumn.cs: fixes names and constructors
32470 * DataGrid.cs: define methods and properties. Some init implementations
32471 * DataGridCell.cs: define methods and properties. Some init implementations
32472 * GridTablesFactory.cs: Define methods and properties
32474 2005-04-15 Geoff Norton <gnorton@customerdna.com>
32476 * XplatUIOSX.cs: Handle proper mouse tracking even if the current
32477 graphics port changes. We still want the coordinates in global screen
32480 2005-04-14 Jackson Harper <jackson@ximian.com>
32482 * TreeView.cs: Handle clicks when plus minus is disabled. Don't
32483 check plus minus or checkbox clicks unless those features are enabled.
32485 2005-04-14 Jackson Harper <jackson@ximian.com>
32487 * TreeView.cs: Add methods for setting the top and bottom visible
32488 nodes. TreeNode::EnsureVisible uses these methods.
32489 * TreeNode.cs: Implement EnsureVisible
32491 2005-04-13 Jordi Mas i Hernandez <jordi@ximian.com>
32493 * Form.cs: Pospone menu assignation if the window has not been created yet
32494 * XplatUIWin32.cs: Fixes Win32SetWindowPos, then does not change window
32497 2005-04-12 Jackson Harper <jackson@ximian.com>
32499 * TreeView.cs: Set the TopNode properly when scrolling
32500 occurs. This has the added benifit of reducing the amount of
32501 walking that needs to be done when drawing. Also removed an old
32503 * OpenTreeNodeEnumerator.cs: Fix moving backwards.
32505 2005-04-11 Jordi Mas i Hernandez <jordi@ximian.com>
32507 * Timer.cs: fixes interval setting when the timer is already enabled
32509 2005-04-10 Alexander Olk <xenomorph2@onlinehome.de>
32511 * FolderBrowserDialog.cs: First approach
32513 2005-04-09 Peter Bartok <pbartok@novell.com>
32515 * FolderBrowserDialog: Added
32517 2005-04-07 Jordi Mas i Hernandez <jordi@ximian.com>
32519 * LinkLabel.cs: move drawing code into the theme
32520 * ThemeWin32Classic.cs: drawing code and painting background bugfix
32521 * Theme.cs: define DrawLinkLabel method
32523 2005-04-05 Jackson Harper <jackson@ximian.com>
32525 * BindingContext.cs: Use weak references so these bad actors don't
32526 stay alive longer then they need to.
32528 2005-04-05 Jackson Harper <jackson@ximian.com>
32530 * ListControl.cs: Basic implementation of complex databinding.
32532 * ListBox.cs: Add calls to ListControl databinding methods.
32534 2005-04-05 Alexander Olk <xenomorph2@onlinehome.de>
32537 - Don't change PopupButtonState to Normal when the
32538 PopupButton gets pressed several times.
32539 - Renamed ButtonPanel to PopupButtonPanel
32541 2005-04-05 Jordi Mas i Hernandez <jordi@ximian.com>
32543 * ColorDialog.cs: Use cached objects instead of creating them
32544 * LinkLabel.cs: Use cached objects instead of creating them
32545 * Splitter.cs: Use cached objects instead of creating them
32546 * FontDialog.cs: Use cached objects instead of creating them
32547 * PropertyGridView.cs: Use cached objects instead of creating them
32548 * MessageBox.cs: Use cached objects instead of creating them
32549 * FileDialog.cs: Use cached objects instead of creating them
32550 * ThemeWin32Classic.cs: Use cached objects instead of creating them
32551 * TreeView.cs: Use cached objects instead of creating them
32553 2005-04-04 Jordi Mas i Hernandez <jordi@ximian.com>
32555 * Control.cs: use Equals to compare the font since no == op
32556 * ScrollBar.cs: use Equals to compare the font since no == op
32558 2005-04-04 Alexander Olk <xenomorph2@onlinehome.de>
32560 * SaveFileDialog.cs: Open stream in OpenFile with FileMode Create
32562 2005-04-01 Jackson Harper <jackson@ximian.com>
32564 * Binding.cs: Implement IsBinding.
32565 * BindingManagerBase.cs:
32566 * PropertyManager.cs:
32567 * CurrencyManager.cs: Add IsSuspended property.
32569 2005-04-01 Jackson Harper <jackson@ximian.com>
32571 * Binding.cs: Had some IsAssignableFrom calls backwards.
32573 2005-04-01 Jackson Harper <jackson@ximian.com>
32575 * Binding.cs: Handle null data members when pulling data.
32576 * PropertyManager.cs: Handle the data member being a property that
32579 2005-04-01 Jordi Mas i Hernandez <jordi@ximian.com>
32581 * DataGridTextBoxColumn.cs: fixes signature
32582 * DataGrid.cs: calls right constructor
32584 2005-04-01 Jordi Mas i Hernandez <jordi@ximian.com>
32586 * DataGridTextBoxColumn.cs: implements DataGridTextBoxColumn class
32587 * GridColumnStylesCollection.cs: implements GridColumnStylesCollection
32588 * GridTableStylesCollection.cs: implements GridTableStylesCollection
32589 * DataGridTableStyle.cs: implements DataGridTableStyle
32590 * DataGridBoolColumn.cs: implements DataGridBoolColumn
32591 * DataGridTextBox.cs: implements DataGridTextBox
32592 * DataGridColumnStyle.cs: implements DataGridColumnStyle
32594 2005-03-31 Alexander Olk <xenomorph2@onlinehome.de>
32596 * FileDialog.cs: Added simple PopupButton class for ButtonPanel
32598 2005-03-29 Peter Bartok <pbartok@novell.com>
32601 - Properly implemented CompanyName property
32602 - Fixed LocalUserAppDataPath and UserAppDataPath, now properly
32603 returns a path that includes CompanyName, ProductName and
32604 Version (fixes bug #70330)
32606 2005-03-29 Stefan Buehler <sbuehler@gmx.ch>
32608 * TabPage.cs: Don't use Owner.DisplayRectangle unless owner is valid,
32611 2005-03-28 Alexander Olk <xenomorph2@onlinehome.de>
32613 * FileDialog.cs, SaveFileDialog.cs OpenFileDialog.cs:
32615 - Added ReadOnly CheckBox
32616 - Further refactoring: moved some code from Open-/SaveFileDialog
32619 2005-03-28 Alexander Olk <xenomorph2@onlinehome.de>
32621 * OpenFileDialog.cs: Fixed CheckFileExists
32623 Moved FileView and DirComboBox outside FileDialog class.
32624 They can now be used outside FileDialog
32626 2005-03-27 Alexander Olk <xenomorph2@onlinehome.de>
32628 * FileDialog.cs: Added a contextmenu to change ShowHiddenFiles
32629 * SaveDialog.cs, OpenFileDialog.cs: Fixes for Reset() method
32631 2005-03-27 Alexander Olk <xenomorph2@onlinehome.de>
32633 * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
32634 - Added missing CreatePrompt property in SaveDialog
32635 - Overall SaveDialog handling should be better now
32636 - Added non standard ShowHiddenFiles property
32637 - Added extension, CreatePrompt and OverwritePrompt support in SaveDialog
32638 - Added InitialDirectory and RestoreDirectory support
32640 2005-03-26 Alexander Olk <xenomorph2@onlinehome.de>
32642 * FileDialog.cs: Made dirComboBox usable
32644 2005-03-24 Alexander Olk <xenomorph2@onlinehome.de>
32646 * FileDialog.cs: Added Filter support (case sensitiv)
32648 2005-03-24 Jackson Harper <jackson@ximian.com>
32650 * TabControl.cs: Need a couple more pixels for the lines.
32652 2005-03-23 Jackson Harper <jackson@ximian.com>
32654 * TabControl.cs: Give the tab page focus when it is selected.
32656 2005-03-23 Jackson Harper <jackson@ximian.com>
32658 * TabControl.cs: Account for the drawing of tabs borders when
32659 invalidating. If the slider was clicked dont do click detection on
32662 2005-03-23 Jackson Harper <jackson@ximian.com>
32664 * TabControl.cs: Fix typo, emilinates an unneeded expose event.
32666 2005-03-22 Jonathan Chambers <jonathan.chambers@ansys.com>
32668 * CategoryGridEntry.cs: Added
32669 * GridItem.cs: Added helper properties
32670 * PropertyGridTextBox.cs: Custom textbox control for PropertyGrid.
32671 * GridEntry.cs: Updated code for collection
32672 * PropertyGrid.cs: Cleaned up some formatting
32673 * PropertyGridView.cs: Added drop down functionality for enums.
32674 * GridItemCollection.cs: Added enumerator logic
32675 * PropertyGridEntry.cs: Added
32677 2005-03-19 Alexander Olk <xenomorph2@onlinehome.de>
32680 - Removed unnecessary commented code
32681 - Fixed handling for entering the filename manually in the combobox
32683 2005-03-19 Alexander Olk <xenomorph2@onlinehome.de>
32685 * FileDialog.cs, OpenFileDialog.cs: OpenFileDialog Multiselect now works
32687 2005-03-18 Peter Bartok <pbartok@novell.com>
32689 * ThemeWin32Classic.cs: Moved listview column headers a bit, to avoid
32690 them being touching the border
32692 2005-03-18 Peter Bartok <pbartok@novell.com>
32694 * TextControl.cs: Quick hack to center text better
32696 2005-03-18 Peter Bartok <pbartok@novell.com>
32699 - Don't throw NotImplemented exceptions, just print a notice once
32700 instead (requested by Miguel). This makes running existing SWF
32703 - Commented out Drag'N'Drop XplatUI call (no driver support yet)
32704 - Added context menu trigger on right click
32705 * Panel.cs: Trigger invalidate on resize
32707 - Removed old double-buffer drawing
32708 - Added ResizeRedraw style to force proper update of statusbar
32710 - Removed debug output
32711 * ThemeWin32Classic.cs:
32712 - Fixed drawing of status bar, now draws Text property if there
32713 are no defined panels
32715 2005-03-18 Jackson Harper <jackson@ximian.com>
32717 * ImageList.cs: When the image stream is set pull all the images
32719 * ImageListStreamer.cs: Implement reading image list streams.
32721 2005-03-18 Peter Bartok <pbartok@novell.com>
32723 * ThemeWin32Classic.cs (DrawPictureBox):
32724 - Fixed calculations for centered drawing
32725 - Fixed drawing for normal mode, not scaling the image on normal
32727 2005-03-18 Peter Bartok <pbartok@novell.com>
32729 * ComboBox.cs: Now also firing the OnKeyPress events for the embedded
32732 - Made Open/Save button the accept button for FileDialog
32733 - Tied the cancel button to the IButtonControl cancel button
32734 - Save/Open now properly builds the pathname
32735 - Now handles user-entered text
32736 - Preventing crash on right-click if no item is selected
32737 - Fixed Text property, now uses contents of textbox
32738 - Fixed SelectedText property, now just returns the text part that
32739 is selected in the text box
32741 2005-03-18 Jackson Harper <jackson@ximian.com>
32743 * ThemeWin32Classic.cs: Use the proper func for drawing the focus
32744 rect, make sure to de-adjust the interior rect after drawing the
32747 2005-03-18 Peter Bartok <pbartok@novell.com>
32749 * MenuAPI.cs: Remove menu *before* executing selected action to
32750 prevent the menu from 'hanging around'
32752 2005-03-17 Geoff Norton <gnorton@customerdna.com>
32754 * XplatUIOSX.cs: Implemented WorkingArea property
32756 2005-03-17 Peter Bartok <pbartok@novell.com>
32758 * XplatUIX11.cs: Fixed menu coord calculations
32759 * MenuAPI.cs: Now using new ScreenToMenu()/MenuToScreen() methods
32760 for calculating offsets
32762 2005-03-17 Peter Bartok <pbartok@novell.com>
32764 * Hwnd.cs: Do not consider menu presence for default client
32765 rectangle location/size
32766 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
32767 XplatUIWin32.cs: Added MenuToScreen() and ScreenToMenu() coord
32768 translation functions
32769 * FileDialog.cs: Fixed (what I presume is a) typo
32771 2005-03-17 Jonathan Gilbert <logic@deltaq.org>
32773 * XplatUIX11.cs: Added call to XInitThreads() to allow multi-threaded
32774 X access (avoids X-Async errors)
32776 2005-03-16 Jackson Harper <jackson@ximian.com>
32778 * TabControl.cs: Raise the SelectedIndexChanged event.
32780 2005-03-16 Alexander Olk <xenomorph2@onlinehome.de>
32782 * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
32783 - Removed vertical ToolBar and replaced it with a custom panel
32784 (desktop and home button already work)
32785 - Added Help button (some controls get resized or relocated then)
32786 - Draw correct text depending on Open or Save.
32787 - Fixed some typos...
32789 2005-03-16 Jordi Mas i Hernandez <jordi@ximian.com>
32792 - Only change Maximum and Minimum when need it (bug fix)
32794 2005-03-15 Peter Bartok <pbartok@novell.com>
32796 * Form.cs: Use Handle for icon, to trigger creation if
32797 the window does not yet exist
32799 - CanSelect: Slight performance improvement
32800 - Focus(): Preventing possible recursion
32801 - Invalidate(): Removed ControlStyle based clear flag setting
32802 - WM_PAINT: fixed logic for calling OnPaintBackground
32803 - WM_ERASEBKGND: Fixed logic, added call to new driver method
32804 EraseWindowBackground if the control doesn't paint background
32806 - Moved EraseWindowBackground() method to internal methods
32807 - Removed unused WM_ERASEBKGND handling in GetMessage; msg never comes;
32808 is sent via SendMessage on BeginPaint call on Win32
32810 - Added EraseWindowBackground() method
32811 - No longer sends WM_ERASEBKGND on .Expose, but on call to
32812 PaintEventStart, which more closely matches Win32 behaviour
32813 - Fixed Invalidate() call, now updates new ErasePending Hwnd property
32814 - Fixed SetFocus() to properly deal with client and whole windows
32815 * Hwnd.cs: Added ErasePending property
32816 * XplatUIOSX.cs: Stubbed EraseWindowBackground() method
32817 * XplatUI.cs, XplatUIDriver.cs: Added EraseWindowBackground() method
32819 2005-03-12 Geoff Norton <gnorton@customerdna.com>
32822 - Fix hard loop when timers exist.
32823 - Fix bugs with middle and right click for 3 button mice.
32825 2005-03-11 Peter Bartok <pbartok@novell.com>
32828 - get_WorkingArea: Need to call X directly, GetWindowPos only
32829 returns cached data now
32830 - Added sanity check to GetWindowPos hwnd usage
32832 2005-03-11 Jackson Harper <jackson@ximian.com>
32834 * BindingManagerBase.cs: This method isn't used anymore as
32835 PullData now updates the data in the control.
32837 2005-03-11 Jordi Mas i Hernandez <jordi@ximian.com>
32839 * Form.cs: fixes menu drawing on X11
32840 * MenuAPI.cs: fixes menu drawing on X11
32842 2005-03-11 Peter Bartok <pbartok@novell.com>
32844 * Control.cs: Changed OnCreateControl behaviour based on a suggestion
32845 from Jonathan Gilbert; should fix bug #73606
32846 * XplatUIX11.cs: Fixed NC Mouse message coordinates, they need to be
32847 in Screen coordinates. Thanks, Jordi.
32848 * Form.cs: Added missing attribute
32850 2005-03-11 Peter Bartok <pbartok@novell.com>
32853 - Rudimentary Mdi support
32854 - Removed outdated FormParent code
32855 - Implemented lots of missing properties and methods, still missing
32856 transparency support
32857 - Added missing attributes
32858 - Implemented support for MaximumBounds
32859 - Added firing of various events
32860 * XplatUI.cs: Added SetIcon() method
32861 * XplatUIDriver.cs: Added SetIcon() abstract
32862 * XplatUIOSX.cs: Stubbed out SetIcon() method
32864 - Implemented SetIcon() support
32865 - Moved SetMenu() and SetBorderStyle() to proper alphabetical pos
32866 - Switched to unix line endings
32868 - Made POINT internal so for can access it as part of MINMAX
32869 - Implemented SetIcon() support
32870 - Implemented support for CLIENTCREATESTRUCT (but might have to drop
32871 native Mdi support again, might have to go managed)
32872 * Control.cs: Now fires the StyleChanged event
32873 * MdiClient.cs: Added; still mostly empty
32875 2005-03-10 Peter Bartok <pbartok@novell.com>
32877 * SaveFileDialog.cs: Added emtpy file
32879 2005-03-08 Peter Bartok <pbartok@novell.com>
32881 * Control.cs: Fixed bug #73190; now invokes CreateControl (which
32882 in turn triggers OnCreateContro) when creating a handle for the
32884 * TextControl.cs: Fixed endless loop in certain cases when
32885 replacing the current selection
32887 2005-03-08 Jordi Mas i Hernandez <jordi@ximian.com>
32890 - Honors NewValue changes in Scroll events allowing apps to change it
32891 - Adds First and Last Scroll events
32892 - Fixes Thumb events
32894 2005-03-07 Peter Bartok <pbartok@novell.com>
32896 * Hwnd.cs: Added DefaultClientRectangle property
32897 * XplatUI.cs: Now using the X11 driver Where() method, which provides
32898 more detailed debug information
32900 - Fixed size-change feedback loop, where we would pull an old size
32901 off the queue and mistakenly change our window's size to an
32903 - Now compressing ConfigureNotify events, to reduce looping and
32905 * TextBoxBase.cs: Preventing crash when no text is set and ToString()
32908 2005-03-07 Jackson Harper <jackson@ximian.com>
32910 * Binding.cs: Push data pushes from data -> property. Check if the
32911 property is readonly when attempting to set it.
32913 2005-03-07 Jackson Harper <jackson@ximian.com>
32915 * Binding.cs: Format and parse data correctly. Use ASsignableFrom
32916 instead of IsSubclassOf. Pulling data now sets the value on the
32918 * PropertyManager.cs:
32919 * CurrencyManager.cs: Just need to pull data when updating now,
32920 because PullData will set the value on the control.
32922 2005-03-04 Jackson Harper <jackson@ximian.com>
32924 * Binding.cs: Implement data type parsing and converting on pulled
32925 data. TODO: Are there more ways the data can be converted?
32927 2005-03-04 Jackson Harper <jackson@ximian.com>
32929 * Binding.cs: Support <Property>IsNull checks. Also bind to the
32930 controls Validating method so we can repull the data when the
32931 control loses focus.
32933 2005-03-03 Jordi Mas i Hernandez <jordi@ximian.com>
32936 - Fixes null string format
32939 - Adds enum type checks
32940 - Fixes redrawing and recalc need after changing some properties
32941 - Fixes on focus_item set after the event
32942 - Fixes adding columns after the control has been created
32944 * ThemeWin32Classic.cs:
32945 - Fixes CheckBox focus rectangle
32946 - Fixes ColumnHeader drawing
32949 2005-03-03 Jackson Harper <jackson@ximian.com>
32951 * Binding.cs: Bind to <Property>Changed events so we can detect
32952 when properties are changed and update the data.
32954 2005-03-02 Jordi Mas i Hernandez <jordi@ximian.com>
32957 - Changes 32-bit pixel format to Format32bppArgb to allow transparency
32958 - Fixes ImageList constructor with ImageList container
32959 - Fixes image scaling (wrong parameters at DrawImage)
32961 2005-02-02 Jackson Harper <jackson@ximian.com>
32963 * Binding.cs: Make property searches case-insensitive. Eliminate
32964 some duplicated code.
32966 2005-03-01 Jordi Mas i Hernandez <jordi@ximian.com>
32969 - Handle focus event
32970 - Fix scrollbar events
32971 - Discard highlighted item if remove it
32972 - Fixes SelectedItem with strings
32974 2005-03-01 Peter Bartok <pbartok@novell.com>
32977 - Fixed Visible property, now follows (once again) parent chain
32978 to return false if any control in the chain is visible=false
32979 - Fixed OnParentVisibleChanged, now just calls OnVisibleChanged event
32980 - Fixed several places where is_visible instead of Visible was used
32981 - Implemented FIXME related to focus selection when setting focused
32982 control to be invisible
32984 * XplatUIWin32.cs: Now using proper method to find out if window is
32985 visible. Thanks to Jordi for pointing it out
32987 2005-02-28 Jordi Mas i Hernandez <jordi@ximian.com>
32989 * ComboBox.cs: show/hide scrollbar instead of creating it
32991 2005-02-27 Jackson Harper <jackson@ximian.com>
32993 * CurrencyManager.cs: Add PositionChanged stuff.
32995 2005-02-27 Peter Bartok <pbartok@novell.com>
32997 * XplatUI.cs, XplatUIDriver.cs: Added new GetMenuOrigin() method
32998 * XplatUIOSX.cs: Added GetMenuOrigin() stub
32999 * XplatUIWin32.cs: Implemented GetMenuOrigin()
33001 - Implemented GetMenuDC()
33002 - Implemented GetMenuOrigin()
33003 - Implemented ReleaseMenuDC()
33004 - Implemented generation of WM_NCPAINT message
33005 - Implemented generation and handling of WM_NCCALCSIZE message
33006 * Form.cs: Added debug helper message for Jordi's menu work
33008 - Modified ClientRect property; added setter, fixed getter to handle
33009 setting of ClientRect
33010 - Added MenuOrigin property
33012 2005-02-26 Peter Bartok <pbartok@novell.com>
33015 - Destroys the caret if a window that's being destroyed contains it
33016 - Ignores expose events coming from the X11 queue for windows that
33017 already are destroyed
33018 - Now uses the proper variable for handling DestroyNotify, before we
33019 marked the wrong window as destroyed
33020 - Improved/added some debug output
33022 2005-02-26 Peter Bartok <pbartok@novell.com>
33024 * X11Keyboard.cs: Fixes to work on 64bit systems
33026 2005-02-26 Peter Bartok <pbartok@novell.com>
33029 - Now calling OnHandleDestroyed from DestroyHandle()
33030 instead of Dispose()
33031 - Removed bogus call to controls.Remove() from DestroyHandle()
33033 2005-02-26 Peter Bartok <pbartok@novell.com>
33035 * Control.cs: Properly destroy child windows when our handle is
33038 2005-02-25 Peter Bartok <pbartok@novell.com>
33041 - Added 'DriverDebug' define to allow tracing XplatUI API calls
33042 - Alphabetized Static Methods and Subclasses
33045 - Added XException class to allow custom handling of X11 exceptions
33046 - Created custom X11 error handler, tied into XException class
33047 - Added support for MONO_XEXCEPTIONS env var to allow the user
33048 to either throw an exception on X errors or continue running
33049 after displaying the error
33050 - Added handling of DestroyNotify message
33051 - Added handler for CreateNotify message (still disabled)
33052 - Improved (tried to at least) Where method to provide file and lineno
33054 - Added XErrorHandler delegate
33055 - Added XRequest enumeration (to suppor translation of errors)
33057 2005-02-25 Jackson Harper <jackson@ximian.com>
33059 * PropertyManager.cs: Implement editing features
33060 * CurrencyManager.cs:
33061 * Binding.cs: First attempt at UpdateIsBinding
33062 * BindingManagerBase.cs: Call UpdateIsBinding before
33063 pushing/pulling data.
33065 2005-02-25 Jordi Mas i Hernandez <jordi@ximian.com>
33067 * MenuAPI.cs: Respect disabled items
33068 * ThemeWin32Classic.cs
33069 - Caches ImageAttributes creation for DrawImageDisabled
33070 - Fixes vertical menu line drawing
33071 - Draws disabled arrows in disable menu items
33073 2005-02-24 Peter Bartok <pbartok@novell.com>
33076 - Added UserData property to allow associating arbitrary objects
33078 - Fixed leak; now removing Hwnd references from static windows array
33080 - Fixed Graphics leak in PaintEventEnd
33081 - Removed usage of HandleData, switched over to Hwnd class
33082 * HandleData.cs: Removed, obsoleted by Hwnd.cs
33084 2005-02-24 Jordi Mas i Hernandez <jordi@ximian.com>
33086 * ThemeWin32Classic.cs: Adds Cliping to TrackBar drawing
33087 * ScrollBar.cs: Fixes bug
33088 * TrackBar.cs: removes death code, clipping, mimize refreshes,
33089 keyboard navigation enhancements
33091 2005-02-24 Jordi Mas i Hernandez <jordi@ximian.com>
33093 * Control.cs: Call DefWndProc at WM_PAINT only if UserPaint not defined
33094 * GroupBox.cs: Add control styles
33095 * Label.cs: Add control styles
33096 * UpDownBase.cs: Add control styles
33097 * ListBox.cs: Add control styles
33098 * XplatUIWin32.cs: Fixes wrong parameter order
33101 2005-02-23 Chris Bacon <chris.bacon@docobo.co.uk>
33103 * ListView.cs: Assign owner for ColumnHeader. Patch by Chris Bacon
33105 2005-02-23 Jackson Harper <jackson@ximian.com>
33107 * PropertyManager.cs: Implement property binding. This doesn't
33108 seem to work yet though as (I think) there are some bugs in
33109 System.ComponentModel.PropertyDescriptor.
33110 * BindingContext.cs: Use new PropertyManager constructor.
33112 2005-02-23 Jordi Mas i Hernandez <jordi@ximian.com>
33114 * ProgressBar.cs: use clip region in ProgressBar
33115 * ThemeWin32Classic.cs: use clip region in ProgressBar
33117 2004-02-22 Jackson Harper <jackson@ximian.com>
33119 * BindingsCollection.cs: Remove some debug code.
33121 2005-02-22 Jackson Harper <jackson@ximian.com>
33123 * BindingContext.cs:
33124 * ControlBindingsCollection.cs:
33125 * CurrencyManager.cs:
33127 * BindingManagerBase.cs: Initial implementation
33128 * BindingsCollection.cs: Add an internal contains method that the
33129 BindingManagerBase uses to ensure bindings aren't added twice to
33131 * PropertyManager.cs: Stubbed out.
33133 * ContainerControl.cs: Hook up databinding
33135 2005-02-22 Geoff Norton <gnorton@customerdna.com>
33138 OSXStructs.cs: Refactored to handle the new Hwnd NC logic area.
33139 Fixed Invalidate/Update chain.
33140 Fixed tons of other minor bugs (this is almost a complete rewrite).
33142 2005-02-22 Jordi Mas i Hernandez <jordi@ximian.com>
33144 * ComboBox.cs: do subcontrol creation when the control is created
33146 2005-02-19 Jordi Mas i Hernandez <jordi@ximian.com>
33148 * Label.cs: fixes image drawing (image and imagelist)
33149 * ThemeWin32Classic.cs: cache brushes
33151 2005-02-19 Jordi Mas i Hernandez <jordi@ximian.com>
33153 * Form.cs: Move menu drawing code to Theme class
33154 * ComboBox.cs: Move ComboBox drawing code to Theme class
33155 * MenuItem.cs: Move menu drawing code to Theme class
33156 * MenuAPI.cs: Move menu drawing code to Theme class
33157 * ThemeWin32Classic.cs: New methods
33158 * CheckedListBox.cs: Move CheckedListbox drawing code to Theme class
33159 * ListBox.cs: Move Listbox drawing code to Theme class
33160 * Theme.cs: New methods
33162 2005-02-20 Peter Bartok <pbartok@novell.com>
33165 - Fixed ProcessKeyEventArgs to also handle WM_SYSKEY messages (and
33166 only process mnemonics on those)
33167 - Fixed event sequence for key handling; first calling
33168 ProcessKeyEventArgs now
33170 - Removed WM_KEYDOWN hook, instead we now use ProcessDialogKey()
33171 for processing non-character keys
33172 - Fixed WM_CHAR to generate proper event sequence before processing
33173 * XplatUIWin32.cs: Added ALT key state to ModifierKeys property
33176 2005-02-19 Peter Bartok <pbartok@novell.com>
33178 * UserControl.cs: Added TextChanged event; added attributes
33179 * SizeGrip.cs: Implemented resizing and optional display of grip
33180 * Form.cs: Fixed attribute
33181 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs:
33182 Changed meaning of ScrollWindow bool argument; instead of the
33183 clear attribute (which will be true usually anyway), it gives the
33184 option of moving child controls as well.
33186 - Changed to match new ScrollWindow argument
33187 - Fixed GetWindowPos/SetWindowPos behaviour for toplevel controls,
33188 now handles the implicit parent window a WM puts around us
33189 * ScrollableControl.cs: Implemented (not the prettiest, but it seems
33191 * TextBoxBase.cs: Adjusted to new ScrollWindow arguments
33192 * TreeView.cs: Adjusted to new ScrollWindow arguments
33194 2005-02-19 Jordi Mas i Hernandez <jordi@ximian.com>
33196 * Form.cs: Menu integration with non-client area
33197 * MenuItem.cs: Menu integration with non-client area
33198 * MenuAPI.cs: Menu integration with non-client area
33200 2005-02-18 Peter Bartok <pbartok@novell.com>
33202 * MethodInvoker.cs: Added
33203 * MdiLayout.cs: Added
33204 * SendKeys.cs: Started implementation
33205 * ErrorIconAlignment.cs: Added
33207 2005-02-18 Peter Bartok <pbartok@novell.com>
33209 * XplatUIWin32.cs: Implemented SetMenu(); fixed GetMenuDC()
33210 * Form.cs: Added handling for Menu-related Non-client messages
33212 2005-02-17 Peter Bartok <pbartok@novell.com>
33214 * UpDownBase.cs: Fixed typo, compilation errors
33215 * DomainUpDown.cs: Fixed attribute value
33217 2005-02-16 Miguel de Icaza <miguel@novell.com>
33219 * UpDownBase.cs: Attach entry events.
33221 Add ForeColor property, Focused, InterceptArrowKeys (interception
33222 does not work yet).
33224 2005-02-17 Jordi Mas i Hernandez <jordi@ximian.com>
33227 - Redraw non client are on Setmenu
33228 - Calc proper menu starting point
33230 2005-02-17 Peter Bartok <pbartok@novell.com>
33232 * Application.cs: Fixed message_filter check
33234 2005-02-17 Peter Bartok <pbartok@novell.com>
33236 * Application.cs: Now calls registered message filters
33237 * DockStyle.cs: Fixed attribute
33238 * Form.cs: Fixed attribute
33239 * Menu.cs: Fixed attribute
33240 * ToolTip.cs: Fixed attribute
33241 * TreeNode.cs: Added missing attributes and arranged in regions
33242 * PropertyGrid.cs: Fixed signatures
33243 * TreeNodeCollection.cs: Added attributes
33244 * Splitter.cs: Added missing attributes; arranged into regions
33245 * TabPage.cs: Added missing attributes; arranged into regions
33246 * TextBoxBase.cs: Added missing attributes
33247 * TextBox.cs: Added missing attributes
33248 * ArrangeDirection.cs: Added missing attributes
33249 * TreeNodeConverter.cs: Added stub (needed for TreeNode)
33250 * ToolBarButton.cs: Fixed attributes
33251 * AnchorStyles.cs: Fixed attribute
33252 * TrackBar.cs: Fixed attributes
33253 * TabControl.cs: Added missing attributes and arranged into regions
33254 * ToolBar.cs: Fixed attribute
33255 * StatusBar.cs: Fixed signature, organized into regions and added
33257 * StatusBarPanel.cs: Fixed attributes
33258 * ContentsResizedEventArgs.cs: Implemented
33259 * ContentsResizedEventHandler.cs: Implemented
33260 * DateBoldEventArgs.cs: Implemented
33261 * DateBoldEventHandler.cs: Implemented
33262 * UpDownEventArgs.cs: Implemented
33263 * UpDownEventHandler.cs: Implemented
33265 2005-02-16 Jordi Mas i Hernandez <jordi@ximian.com>
33267 * Form.cs: first Menu NC refactoring
33268 * MenuAPI.cs: first Menu NC refactoring
33270 2005-02-16 Peter Bartok <pbartok@novell.com>
33272 * ImeMode.cs: Added missing attributes
33273 * Menu.cs: Fixed attribute
33274 * GroupBox.cs: Fixed attribute
33275 * Label.cs: Fixed attribute
33276 * ColorDialog.cs (RunDialog): Removed TODO attribute
33277 * ComboBox.cs: Fixed attributes
33278 * ListControl.cs: Added missing attributes
33279 * PropertyGrid.cs: Fixed attributes
33280 * Control.cs: Fixed attributes
33281 * ListViewItem.cs: Added TypeConverter attribute
33282 * NotifyIcon.cs: Fixed attributes
33283 * ListView.cs: Fixed attributes
33284 * ButtonBase.cs: Fixed attribute
33285 * ImageList.cs: Added missing attributes
33286 * ContainerControl.cs: Fixed signature
33287 * CheckedListBox.cs: Fixed attribute; added missing attributes
33288 * Panel.cs: Fixed attributes
33289 * PropertyTabChangedEventArgs.cs: Added missing attribute
33290 * PropertyValueChangedEventArgs.cs: Added missing attribute
33291 * Binding.cs: Fixed attribute
33292 * ListViewItemConverter: Implemented ListViewSubItemConverter class
33293 * ListBox.cs: Fixed attribute; added missing attributes;
33294 * ScrollableControl.cs: Added missing attributes
33295 * PictureBox.cs: Added missing attributes; implemented missing property
33296 * DateTimePicker.cs: Added missing attributes
33297 * Theme.cs (ToolWindowCaptionHeight): Fixed type
33298 * MonthCalendar.cs: Fixed attributes
33299 * StatusBarPanel.cs: Added missing attributes
33300 * SystemInformation.cs (ToolWindowCaptionHeight): Fixed type
33302 2005-02-16 Peter Bartok <pbartok@novell.com>
33304 * TextBoxBase.cs: The previous method to enforce height yet remember
33305 the requested high was less than ideal, this is an attempt to do
33307 * Control.cs: Added comment about possible problem
33308 * Copyright: Updated format
33309 * GridItemType.cs: Fixed swapped values
33311 2005-02-15 Jackson Harper <jackson@ximian.com>
33313 * BaseCollection.cs: Use property so we never access an
33314 uninitialized list. Also initialize the list in the property.
33316 2005-02-15 Peter Bartok <pbartok@novell.com>
33318 * GroupBox.cs (ProcessMnemonic): Implemented
33319 * Label.cs (ProcessMnemonic): Implemented
33320 * ThemeWin32Classic.cs (DrawGroupBox): Added stringformat to show
33323 2005-02-15 Peter Bartok <pbartok@novell.com>
33325 * RadioButton.cs (ProcessMnemonic): Implemented
33326 * CheckBox.cs (ProcessMnemonic): Implemented
33328 - Added handling of WM_SYSxxx keyboard messages to support mnemonic
33330 - Added internal method to allow calling ProcessMnemonic from other
33332 * ContainerControl.cs:
33333 - Started support for handling validation chain handling
33334 - Implemented ProcessMnemonic support
33335 - Added Select() call to Active, to make sure the active control
33337 * Form.cs: Setting toplevel flag for Forms (this was lost in the
33338 FormParent rewrite)
33339 * ThemeWin32Classic.cs:
33340 - DrawCheckBox(): Fixed stringformat to show hotkeys
33341 - DrawRadioButton(): Fixed stringformat to show hotkeys
33342 * CommonDialog.cs: Removed WndProc override, not needed
33344 2005-02-14 Peter Bartok <pbartok@novell.com>
33346 * XplatUIX11.cs: Fixed NotImplemented exceptions for properties,
33347 missed those in the rewrite
33349 2005-02-14 Miguel de Icaza <miguel@novell.com>
33351 * NumericUpDown.cs (Increment, ToString): Add.
33352 (DecimalPlaces): implement.
33356 * UpDownBase.cs: Add the designer attributes.
33358 2005-02-13 Peter Bartok <pbartok@novell.com>
33360 * Panel.cs: Removed border_style, now in Control
33361 * XplatUIDriver.cs: Added SetBorderStyle, SetMenu, GetMenuDC and
33362 ReleaseMenuDC Methods; renmaed ReleaseWindow to UngrabWindow
33364 2005-02-13 Peter Bartok <pbartok@novell.com>
33366 * MouseButtons.cs: Added missing attributes
33367 * XplatUIStructs.cs: Added enumeration for title styles
33368 * LeftRightAlignment.cs: Added missing attributes
33369 * Hwnd.cs: Switched to use client_window as handle (slower, but makes
33370 it compatible with Graphics.FromHwnd()
33371 * SelectedGridItemChangedEventArgs.cs: Fixed property type
33372 * Keys.cs: Added missing attributes
33373 * SelectionRange.cs: Added missing attributes
33374 * SelectionRangeConverter.cs: Added
33376 - Introduced SetBorderStyle, SetMenu, GetMenuDC and
33377 ReleaseMenuDC methods
33378 - Renamed ReleaseWindow to UngrabWindow
33379 - Added proper startup notice to allow version identification
33381 - Added missing attributes
33382 - Removed FormParent concept
33383 * Label.cs: Removed border_style field, now in Control
33384 * RadioButton.cs: Now properly selects RadioButton when focus is
33386 * ThemeGtk.cs: Fixed SetDisplay call to match new X11 behaviour
33388 - Added missing attributes
33389 - Added borderstyle handling
33390 - Removed FormParent concept support
33391 - Fixed calls to XplatUI to match changed APIs
33392 - Fixed bug that would case us to use disposed Graphics objects
33393 - Removed unneeded internal methods
33394 - PerformLayout(): Fixed to handle DockStyle.Fill properly
33395 - SelectNextControl(): Fixed to properly check common parents
33396 * TextBoxBase.cs: Removed border_style field (now in Control)
33398 - Patch by Robert Thompson (rmt@corporatism.org): Added icon support,
33399 fixed calculations for form size
33400 - Added support for localized strings and icons
33401 - Improved form size calculations, added border
33402 * ListView.cs: Removed border_style field (now in Control)
33403 * X11Structs.cs: Moved several structs from X11 driver here
33404 * X11Keyboard.cs: Changed debug message
33405 * Application.cs: Removed FormParent concept support
33407 - Resetting end_modal flag
33408 - Removed FormParent concept support
33409 * NativeWindow.cs: Removed FormParent concept support
33410 * XplatUIX11.cs: Rewritten, now using the new Hwnd class, implementing
33411 Client area and Non-Client whole window to allow support for WM_NC
33413 * XplatUIOSX.cs: Updated to match latest driver spec; added exception
33414 prevent using it until it supports Hwnd as per Geoff Norton's request
33415 * ToolBar.cs: Fixed drawing, was not doing proper drawing
33416 * PictureBox.cs: Removed border_style field, now in Control
33417 * XplatUIWin32.cs: Added new driver methods
33419 2005-02-12 Peter Bartok <pbartok@novell.com>
33421 * OpacityConverter.cs: Implemented
33422 * Hwnd.cs: Internal class to support drivers that need to emulate
33423 client area/non-client area window behaviour
33425 2005-02-11 Peter Bartok <pbartok@novell.com>
33427 * KeysConverter.cs: Implemented
33429 2005-02-11 Jordi Mas i Hernandez <jordi@ximian.com>
33431 * Menu.cs: fixes methods GetContextMenu, GetMainMenu, ToString
33432 * LinkLabel: Added missing attributes
33433 * MainMenu.cs: fixes ToString
33434 * MenuItem.cs: fixes methods GetContextMenu, GetMainMenu
33435 * ListBox.cs: fixes event position
33436 * TrackBar.cs: adds missing attributes and events
33438 2005-02-10 Jordi Mas i Hernandez <jordi@ximian.com>
33440 * MenuItem.cs: Use SystemInformation and bug fixes
33441 * MenuAPI.cs: Use SystemInformation and bug fixes
33443 2005-02-09 Jackson Harper <jackson@ximian.com>
33445 * X11Keyboard.cs: We ignore some keys, but still need to set/reset
33446 their keystate otherwise things like VK_MENU get stuck "on".
33448 2005-02-09 Kazuki Oikawa <kazuki@panicode.com>
33450 * ListBox.cs: Fixes AddRange bug
33452 2005-02-09 Jordi Mas i Hernandez <jordi@ximian.com>
33455 - Add missing attributes
33456 - Add missing method
33458 * CheckedListBox.cs: Added missing attributes
33459 - Add missing attributes
33460 - Remove extra method
33462 * ComboBox.cs: Added missing attributes
33463 * VScrollBar.cs: Added missing attributes
33464 * ScrollBar.cs: Added missing attributes
33465 * ListBox.cs: Fixes signature, add missing consts
33466 * LinkArea.cs: Added missing attributes
33469 2005-02-08 Peter Bartok <pbartok@novell.com>
33471 * Menu.cs: Added missing attributes
33472 * MainMenu.cs: Added missing attributes
33473 * GroupBox.cs: Added missing attributes
33474 * Label.cs: Added missing attributes
33475 * CheckBox.cs: Implemented CheckBoxAccessibleObject class
33477 - Added Instance and Options properties
33478 - Added missing attributes
33479 * Cursor.cs: Made Serializable
33480 * NotifyIcon: Added missing attributes
33481 * MenuItem.cs: Added missing attributes
33482 * TextBoxBase.cs: Implemented AppendText() and Select() methods
33483 * Panel.cs: Added Missing attributes
33484 * MonthCalendar.cs: Fixed CreateParams
33486 2005-02-08 Jordi Mas i Hernandez <jordi@ximian.com>
33490 - Fixes issues with links
33491 - Adds the class attributes
33493 2005-02-08 Jordi Mas i Hernandez <jordi@ximian.com>
33496 - Fixes button when no items available in dropdown
33497 - Fixes repainting problems
33498 - Adds the class attributes
33500 2005-02-07 Geoff Norton <gnorton@customerdna.com>
33502 * XplatUIOSX.cs: Detect the menu bar and title bar height from
33503 the current theme. Cache these on startup.
33505 2005-02-07 Jackson Harper <jackson@ximian.com>
33507 * ScrollBar.cs: Give the correct clipping rect to the theme. Dirty
33508 the scrollbar buttons when they are depressed.
33510 2005-02-07 Geoff Norton <gnorton@customerdna.com>
33512 * XplatUIOSX.cs: Really fix working at resolutions not 1024x768.
33513 Get the display size from the main displayid. We currently dont
33514 support multiple display configurations.
33516 2005-02-07 Geoff Norton <gnorton@customerdna.com>
33518 * XplatUIOSX.cs: Ensure the window doesn't get stuck behind the statusbar.
33520 2005-02-07 Miguel de Icaza <miguel@novell.com>
33522 * UpDownBase.cs: Add ReadOnly and UpDownAlign properties.
33524 2005-02-05 Jonathan Chambers <jonathan.chambers@ansys.com>
33526 * PropertyGrid.cs: Updated. Patch by Jonathan Chambers
33528 2005-02-04 Jackson Harper <jackson@ximian.com>
33530 * ThemeWin32Classic.cs: Respect the clipping rect when
33531 drawing. Only fill the intersection of clips and rects so there
33532 isn't a lot of large fills.
33533 * ScrollBar.cs: Pass the correct clipping rect to the theme
33534 engine. Remove some debug code.
33536 2005-02-05 John BouAntoun <jba-mono@optusnet.com.au>
33538 * DateTimePicker.cs:
33539 - Fixed crash on DateTime.Parse, use Constructor instead
33541 2005-02-04 Jordi Mas i Hernandez <jordi@ximian.com>
33545 - Owner draw support (MeasureItem and DrawItem)
33547 2005-02-04 Jordi Mas i Hernandez <jordi@ximian.com>
33550 - Implements FindMergePosition and MergeMenu functions (very poor documented)
33551 - Fixes MenuItems.Add range
33553 - MergeMenu and Clone and CloneMenu functions
33555 2005-02-03 Jackson Harper <jackson@ximian.com>
33557 * ScrollBar.cs: Make abstract
33558 * ScrollableControl.cs: Create H/V scrollbars now that scrollbar
33561 2005-02-03 Jackson Harper <jackson@ximian.com>
33563 * ScrollBar.cs: First part of my scrollbar fixups. This removes
33564 all the unneeded refreshes and uses invalidates with properly
33567 2005-02-03 Peter Bartok <pbartok@novell.com>
33569 * ComponentModel.cs: Added
33570 * IDataGridEditingService.cs: Added
33571 * Timer.cs: Added missing attributes
33572 * ToolTip.cs: Added missing attributes
33574 2005-02-03 Jonathan Chambers <jonathan.chambers@ansys.com>
33576 * PropertyGridView.cs: Added. Patch by Jonathan Chambers
33578 2005-02-03 Peter Bartok <pbartok@novell.com>
33580 * ListBox.cs: Added missing attributes
33582 2005-02-03 Jordi Mas i Hernandez <jordi@ximian.com>
33585 - Fixes font height after font change
33586 - Avoid generating unnecesary OnSelectedIndexChanged on clearing
33588 2005-02-02 Peter Bartok <pbartok@novell.com>
33590 * HandleData.cs: Introduced static methods to allow class
33591 to be more self-contained and track it's own HandleData objects
33592 * XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs: Fixed usage of
33593 HandleData to use new static methods
33595 2005-02-02 Jordi Mas i Hernandez <jordi@ximian.com>
33598 - Fixes default size and PreferredHeight
33600 - ObjectCollection.Insert implementation
33606 - ObjectCollection.Insert implementation
33607 - No selection after clean
33610 2005-01-31 John BouAntoun <jba-mono@optusnet.com.au>
33612 * ThemeWin32Classic.cs: quick fix to comboboxbutton pushed painting
33614 2005-02-01 Jordi Mas i Hernandez <jordi@ximian.com>
33617 - Caches ItemHeight calculation for OwnerDrawVariable
33618 - Handles dropdown properly
33619 - Fixes several minor bugs
33621 2005-01-31 Jordi Mas i Hernandez <jordi@ximian.com>
33624 - Fixes 71946 and 71950
33625 - Fixes changing Multicolumn on the fly
33626 - Fixes keyboard navigation on Multicolumn listboxes
33628 2005-01-31 Geoff Norton <gnorton@customerdna.com>
33630 * XplatUIOSX.cs: Call ExitToShell in our teardown to avoid a
33631 crash reporter log.
33633 2005-01-31 Geoff Norton <gnorton@customerdna.com>
33635 * XplatUIOSX.cs: Allow applications to actually exit.
33637 2005-01-31 Geoff Norton <gnorton@customerdna.com>
33639 * XplatUIOSX.cs: SetWindowStyle implemented. Reposition views in
33640 their parent at creation time rather than lazily later. Fixes a major
33641 regression we were experiencing.
33643 2005-01-31 John BouAntoun <jba-mono@optusnet.com.au>
33645 * ThemeWin32Classic.cs: more date time picker painting fixes
33646 * DateTimePicker.cs: more monthcalendar drop down fixes
33647 * MonthCalendar.cs: more CreateParams fixes to ensure correct drop down
33649 2005-01-31 Jordi Mas i Hernandez <jordi@ximian.com>
33652 - When moving the thumb going outside the control should stop the moving
33653 - Adds the firing of missing events
33654 - Fixes no button show if Size is not specified
33655 - End / Home keys for keyboard navigation
33657 2005-01-30 Peter Bartok <pbartok@novell.com>
33659 * NotifyIcon.cs (CalculateIconRect): Removed debug output and added
33660 sanity check to prevent theoretical loop
33661 * XplatUIWin32.cs (SetVisible): Removed debug output
33662 * XplatUIX11.cs (SystrayChange): Added sanity check
33663 * ScrollableControl.cs (OnVisibleChanged): Now calls base method
33664 * Control.cs (OnVisibleChanged): Added workaround for ParentForm
33665 behaviour, valid until the X11 client window rewrite is done
33666 * TextBox.cs (ctor): Setting proper default foreground and background
33669 2005-01-30 John BouAntoun <jba-mono@optusnet.com.au>
33671 * Theme: Added DrawDateTimePicker to interface
33672 * ThemeWin32Classic.cs: Added DrawDateTimePicker (incomplete)
33673 * DateTimePicker.cs: Created (still needs keys and painting code)
33674 * DateTimePickerFormat.cs: added
33675 * MonthCalendar.cs: fixed CreateParams for popup window mode
33677 2005-01-29 Peter Bartok <pbartok@novell.com>
33679 * ControlPaint.cs: Fixed luminace value returned on achromatic colors,
33680 this should also the calculations for ligher/darker
33681 * Theme.cs: Fixed defaults for ScrollBar widths/heights
33683 2005-01-29 Peter Bartok <pbartok@novell.com>
33685 * ArrangeDirection.cs: Added
33686 * ArrangeStartingPositon.cs: Added
33687 * SystemInformation.cs: Implemented
33688 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
33689 XplatUIX11.cs, Theme.cs: Added/implemented new static properties
33690 used by SystemInformation class
33691 * X11Strucs.cs: Added XSizeHints structure
33693 - Fixed CreateParams to make sure the menu window is always visible
33694 - TrackPopupMenu: Added check to make sure we don't draw the
33697 2005-01-29 Peter Bartok <pbartok@novell.com>
33699 * HandleData.cs: Added method for altering invalid area
33700 * TextBoxBase.cs: Implemented TextLength
33702 2005-01-28 Peter Bartok <pbartok@novell.com>
33704 * XplatUIX11.cs: Improvement over last patch, not sending
33705 the WM_PAINT directly anymore, instead we scroll any pending
33706 exposed areas and let the system pick out the WM_PAINT later
33708 2005-01-28 Peter Bartok <pbartok@novell.com>
33710 * SWF.csproj: Deleted, no longer used. Instead,
33711 Managed.Windows.Forms/SWF.csproj should be used
33712 * XplatUIX11.cs: Instead of posting the WM_PAINT, we send it
33713 directly, to avoid a potential race condition with the next
33716 2005-01-28 Peter Bartok <pbartok@novell.com>
33718 * XplatUI.cs: Made class internal
33720 2005-01-28 Jordi Mas i Hernandez <jordi@ximian.com>
33722 * CheckedListBox.cs:
33725 - Missing methods and events
33727 2005-01-27 Peter Bartok <pbartok@novell.com>
33729 * Application.cs (Run): Don't use form if we don't have one
33731 2005-01-27 Peter Bartok <pbartok@novell.com>
33733 * TextBoxBase.cs (get_Lines): Fixed index off by one error
33735 2005-01-27 Peter Bartok <pbartok@novell.com>
33737 * GridEntry.cs: Added; Patch by Jonathan S. Chambers
33738 * GridItem.cs: Added; Patch by Jonathan S. Chambers
33739 * GridItemCollection.cs: Added; Patch by Jonathan S. Chambers
33740 * GridItemType.cs: Added; Patch by Jonathan S. Chambers
33741 * PropertyGrid.cs: Added; Patch by Jonathan S. Chambers
33742 * PropertySort.cs: Added; Patch by Jonathan S. Chambers
33743 * PropertyTabChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
33744 * PropertyTabChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
33745 * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
33746 * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
33747 * SelectedGridItemChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
33748 * SelectedGridItemChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
33750 2005-01-27 Jordi Mas i Hernandez <jordi@ximian.com>
33753 - Draw focus on Simple Combobox
33754 - Fixes drawing issues
33757 2005-01-27 Peter Bartok <pbartok@novell.com>
33760 - Place window in default location, instead of hardcoded 0/0
33761 - Send initial LocationChanged event
33763 - UpdateBounds after creation to find out where the WM placed us
33764 - Make sure that if the ParentForm changes location the Form
33766 * XplatUIX11.cs: XGetGeometry will not return the coords relative
33767 to the root, but to whatever the WM placed around us.
33768 Translate to root coordinates before returning toplevel
33770 * XplatUIWin32.cs: Removed debug output
33771 * XplatUIOSX.cs, XplatUI.cs, XplatUIDriver.cs: Added toplevel
33772 flag to GetWindowPos, to allow translation of coordinates on X11
33774 2005-01-27 Jordi Mas i Hernandez <jordi@ximian.com>
33776 * ListBox.cs: connect LostFocus Event
33778 2005-01-27 Peter Bartok <pbartok@novell.com>
33780 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
33781 XplatUIX11.cs: Extended the Systray API
33782 * Form.cs: Removed debug output
33783 * Application.cs: Fixed focus assignment, always need to call
33784 XplatUI.Activate() since Form.Activate() has rules that may
33786 * NotifyIcon.cs: Should be complete now
33787 * ToolTip.cs: Worked around possible timer bug
33789 2005-01-27 Jackson Harper <jackson@ximian.com>
33792 - Only invalidate the effected tabs when the
33793 selected index changes. This reduces drawing and gets rid of some
33795 - Only refresh if the tabs need to be shifted, otherwise only
33796 invalidate the slider button.
33797 - On windows the tabs are not filled to right if the slider is
33800 2005-01-27 Jackson Harper <jackson@ximian.com>
33802 * TabControl.cs: Only refresh on mouseup if we are showing the
33803 slider. Also only invalidate the button whose state has changed.
33805 2005-01-26 Peter Bartok <pbartok@novell.com>
33807 * XplatUI.cs, XplatUIDriver.cs: Added Systray methods
33808 * XplatUIWin32.cs: Implemented SystrayAdd(), SystrayChange()
33809 and SystrayRemove() methods
33810 * XplatUIOSX.cs: Stubbed Systray methods
33812 - Implemented SystrayAdd(), SystrayChange() and SystrayRemove()
33814 - Fixed broken XChangeProperty calls (marshalling messed up things)
33815 * X11Structs.cs: Added enums and structs required for Size hinting
33816 * NotifyIcon.cs: Added & implemented
33818 2005-01-26 Jackson Harper <jackson@ximian.com>
33820 * TabControl.cs: Space vertically layed out tabs properly.
33822 2005-01-26 Peter Bartok <pbartok@novell.com>
33824 * Form.cs (CreateClientParams): Always set the location to 0,0
33825 since we're a child window.
33827 * Control.cs (SetVisibleCore): Always explicitly setting the location
33828 of a toplevel window, apparently X11 doesn't like to move windows
33829 while they're not mapped.
33831 2005-01-26 Jackson Harper <jackson@ximian.com>
33833 * TabControl.cs: Implement FillToRight size mode with vertically
33836 2005-01-26 Jordi Mas i Hernandez <jordi@ximian.com>
33838 * ControlPaint.cs, ThemeWin32Classic.cs
33839 - Fixes DrawFocusRectangle
33841 2005-01-26 Jordi Mas i Hernandez <jordi@ximian.com>
33844 - MenuBar tracking only starts when item is first clicked
33845 - Fixes menu hidding for multiple subitems
33846 - Unselect item in MenuBar when item Executed
33849 2005-01-25 Jordi Mas i Hernandez <jordi@ximian.com>
33852 - IsInputKey for ListBox
33855 - Shift and Control item selection
33856 - Implement SelectionMode.MultiExtended
33857 - Fixes RightToLeft
33859 - IsInputKey implemented
33860 - Do not generate OnTextChangedEdit on internal txt changes
33862 2005-01-23 Peter Bartok <pbartok@novell.com>
33864 * AccessibleObject.cs: Partially implemented Select()
33865 * MonthCalendar.cs: Added missing attributes and events
33866 * Form.cs: Fixed CreateParams behaviour, now controls derived from
33867 form can properly override CreateParams.
33868 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
33869 XplatUIX11.cs: Dropped RefreshWindow method, not needed if
33870 Control performs Invalidate & Update
33871 * NativeWindow (CreateHandle): Added special handling for Form
33872 and Form.FormParent classes to allow overriding of From.CreateParams
33874 - ControlNativeWindow: Renamed 'control' variable to more intuitive
33876 - ControlNativeWindow: Added Owner property
33877 - Removed usage of Refresh() on property changes, changed into
33878 Invalidate(), we need to wait until the queue is processed for
33879 updates, direct calls might cause problems if not all vars for
33880 Paint are initialized
33881 - Added call to UpdateStyles() when creating the window, to set any
33882 styles that CreateWindow might have ignored.
33883 - Added support for Form CreateParent overrides to UpdateStyles()
33884 * MessageBox.cs: Removed no longer needed FormParent override stuff,
33885 CreateParams are now properly overridable
33886 * CommonDialog.cs: Removed no longer needed FormParent override stuff,
33887 CreateParams are now properly overridable
33889 2005-01-23 Miguel de Icaza <miguel@ximian.com>
33891 * UpDownBase.cs (ctor): Connect TextChanged in the entry to the
33894 Capture LostFocus and OnTextBoxChanged. The later introduces a
33895 recursive invocation that I have not figured out yet.
33897 Reset the timer when not using (it was accumulating).
33900 (OnTextBoxChanged): Set UserEdit to true here to track whether the
33901 user has made changes that require validation.
33903 Reset changing to avoid loops.
33905 2005-01-22 Miguel de Icaza <miguel@ximian.com>
33907 * NumericUpDown.cs: Display value at startup.
33909 * UpDownBase.cs (Text): Do not call UpdateEditText here, only call
33912 * NumericUpDown.cs: Minimum, Maximum, Text, Value properties
33913 filled in. Added some basic parsing of text.
33915 Still missing the OnXXX method overrides, and figuring out the
33916 events that must be emitted.
33918 * UpDownBase.cs: Handle UserEdit on the Text property.
33920 2005-01-22 Jordi Mas i Hernandez <jordi@ximian.com>
33923 - Fixes IntegralHeight
33926 2005-01-21 Jackson Harper <jackson@ximian.com>
33928 * TabControl.cs: Set the SelectedIndex property when SelectedTab
33929 is set so that the page visibility is updated and the tabs are
33932 2005-01-21 Jackson Harper <jackson@ximian.com>
33934 * TabControl.cs: Use cliping rectangle for blitting. Give the
33935 theme the clipping rect so we can do clipping while
33936 drawing. Remove some debug code.
33938 2005-01-21 Jackson Harper <jackson@ximian.com>
33940 * TabPage.cs: Add a new method so tab pages can force the tab
33941 control to recalculate the tab page sizes.
33942 * TabControl.cs: UpdateOwner needs to make the tab control recalc
33945 2005-01-20 Jackson Harper <jackson@ximian.com>
33947 * ThemeWin32Classic.cs: Clip text to the staus bar panels rects.
33949 2005-01-20 Jackson Harper <jackson@ximian.com>
33951 * TreeView.cs: Set the bounds for nodes properly. They were
33952 getting screwed up when checkboxes were not enabled, but images
33955 2005-01-20 Jordi Mas i Hernandez <jordi@ximian.com>
33958 - Owner draw support
33961 2005-01-20 Jackson Harper <jackson@ximian.com>
33963 * XplatUIStructs.cs: More misc keys
33964 * X11Keyboard.cs: Ignore some control keys.
33966 2005-01-20 Jackson Harper <jackson@ximian.com>
33968 * X11Structs.cs: Add the modmaps to the keymask struct and tabify.
33969 * X11Keyboard.cs: Set the AltGr mask when we get a key event.
33971 2005-01-19 Peter Bartok <pbartok@novell.com>
33973 * Control.cs: Un-selecting the control when it is loosing focus
33975 2005-01-19 Jackson Harper <jackson@ximian.com>
33977 * TreeView.cs: Hook up to the text controls leave event so we can
33978 end editing when the users clicks outside the text box.
33980 2005-01-19 Jackson Harper <jackson@ximian.com>
33982 * X11Keyboard.cs: Fix typo that was causing the wrong keycodes to
33983 get set in the conversion array.
33985 2005-01-19 Peter Bartok <pbartok@novell.com>
33987 * Application.cs (ModalRun): Added a call to CreateControl to ensure
33988 focus is properly set
33990 - Added missing attributes
33991 - removed styles, those are already set in the base class
33993 - Added missing attributes
33994 - Added clip window styles
33995 * CheckBox.cs: Added missing attributes
33997 - FormParentWindow.CreateParams: Added required clip styles
33998 * Form.cs (ProcessDialogKey): Fixed handling of Escape key, now
33999 also filters modifier keys
34001 - Added assignment of Accept and Cancel button to enable Enter
34002 and Esc keys in MessageBox dialogs
34003 - FormParentWindow.CreateParams: Added required clip styles
34004 * RadioButton.cs: Added missing attributes
34005 * TextControl.cs: No longer draws selection if control does not
34008 - Now draws simple rectangle around test area to make it obvious
34009 there's a control. This is a hack until we properly support borders
34010 - A few simple fixes to support selections better, now erases selected
34011 text when typing, and resets selection when using movement keys
34013 2005-01-19 Miguel de Icaza <miguel@ximian.com>
34015 * UpDownBase.cs: Added some new properties.
34017 * DomainUpDown.cs: Implement a lot to get my test working.
34019 2005-01-19 Geoff Norton <gnorton@customerdna.com>
34021 * XplatUIOSX.cs: Fix a minor bug to bring the close box back
34023 2005-01-19 Geoff Norton <gnorton@customerdna.com>
34025 * OSXStructs (WindowAttributes): Fixed csc complaints
34027 2005-01-19 Geoff Norton <gnorton@customerdna.com>
34030 OSXStructs.cs: Initial refactor to move enums and consts into
34031 OSXStructs and use them in the driver for greater readability.
34033 2005-01-19 Geoff Norton <gnorton@customerdna.com>
34035 * XplatUIOSX.cs: Initial support for Standard Cursors.
34036 * OSXStructs.cs: Move our structs here; added ThemeCursor enum
34038 2005-01-19 Jordi Mas i Hernandez <jordi@ximian.com>
34040 * ComboBox.cs: ability to change style when the ctrl is already
34041 created, missing methods and events, bug fixes, signature fixes
34043 2005-01-19 Peter Bartok <pbartok@novell.com>
34045 * Cursors.cs (ctor): Added ctor to fix signature
34047 2005-01-18 Peter Bartok <pbartok@novell.com>
34049 * Button.cs: Implemented DoubleClick event
34051 - Fixed keyboard handling to behave like MS, where the press of
34052 Spacebar is equivalent to a mousedown, and the key release is
34053 equivalent to mouseup. Now a spacebar push will give the same
34054 visual feedback like a mouse click.
34055 - Added missing attributes
34056 - Added ImeModeChanged event
34057 - Added support for generating DoubleClick event for derived classes
34059 - Implemented DoubleClick event
34060 - Added missing attributes
34061 * CommonDialog.cs: Added missing attribute
34062 * ContextMenu.cs: Added missing attributes
34064 - AutoChecked buttons do not allow to be unselected when clicked
34065 (otherwise we might end up with no selected buttons in a group)
34066 - Added missing attributes
34067 - Implemented DoubleClickEvent
34068 * ThreadExceptionDialog.cs: Enabled TextBox code
34070 2005-01-18 Peter Bartok <pbartok@novell.com>
34072 * Form.cs: Removed debug output
34073 * Button.cs: Added support for DoubleClick method
34075 2005-01-18 Peter Bartok <pbartok@novell.com>
34078 - Added method to parent window that allows triggering size
34079 calculations when a menu is added/removed
34080 - set_Menu: Cleaned up mess from early days of Form and Control,
34081 now properly triggers a recalc when a menu is added/removed
34082 - Added case to select form itself as focused form if no child
34084 - Added PerformLayout call when showing dialog, to ensure properly
34087 - Select(): Made internal so Form can access it
34088 - Focus(): Only call Xplat layer if required (avoids loop), and sets
34090 * Application.cs (Run): Removed hack and calls PerformLayout instead
34091 to trigger calculation when Form becomes visible
34093 2005-01-18 Jordi Mas i Hernandez <jordi@ximian.com>
34095 * ComboBox.cs: fixes for ownerdraw
34097 2005-01-18 Peter Bartok <pbartok@novell.com>
34100 - Sentinel is no longer static, each Document gets it's own, this
34101 avoids locking or alternatively overwrite problems when more
34102 than one text control is used simultaneously.
34103 - Switched to use Hilight and HilightText brushes for text selection
34105 * TextBoxBase.cs (PaintControl): Disabled AntiAliasing to improve looks
34107 2005-01-18 Peter Bartok <pbartok@novell.com>
34110 - Hooked up the following events:
34118 o SystemColorsChanged
34119 o ParentFontChanged
34121 - Removed debug output
34122 - Added a call to the current theme's ResetDefaults when a color change
34124 * Form.cs: Now setting the proper ImeMode
34125 * Theme.cs: Defined a method to force recreation of cached resources
34126 and rereading of system defaults (ResetDefaults())
34127 * ThemeWin32Classic.cs: Added ResetDefaults() stub
34129 2005-01-17 Peter Bartok <pbartok@novell.com>
34131 * Control.cs: Added missing attributes
34133 2005-01-17 Jackson Harper <jackson@ximian.com>
34135 * TreeNode.cs: Implement editing. Add missing properties selected
34137 * TreeView.cs: Implement node editing. Also some fixes to use
34138 Invalidate (invalid area) instead of Refresh when selecting.
34140 2005-01-17 Peter Bartok <pbartok@novell.com>
34143 - Implemented InvokeGotFocus() method
34144 - Implemented InvokeLostFocus() method
34145 - Implemented InvokePaint() method
34146 - Implemented InvokePaintBackground() method
34147 - Implemented InvokeClick() method
34148 - Implemented FindForm() method
34149 - Implemented RectangleToClient() method
34150 - Implemented ClientToRectangle() method
34151 - Implemented ResetBackColor() method
34152 - Implemented ResetCursor() method
34153 - Implemented ResetFont() method
34154 - Implemented ResteForeColor() method
34155 - Implemented ResetImeMode() method
34156 - Implemented ResetLeftToRight() method
34157 - Implemented ResetText() method
34158 - Implemented Scale() methods
34159 - Implemented ScaleCore() method
34160 - Implemented Update() method
34161 - Removed unused variables
34162 - Stubbed AccessibilityNotifyClients and
34163 ControlAccessibleObject.NotifyClients() methods (dunno what to do
34165 - Now setting proper default for RightToLeft property
34166 - Fixed bug in SetClientSizeCore that would cause windows to get
34168 - Now sending Click/DoubleClick events
34169 - Now selecting controls when left mouse button is clicked on
34171 * AccessibleEvents.cs: Added
34172 * XplatUI.cs, XplatUIDriver.cs: Added UpdateWindow() method
34173 * XplatUIOSX.cs: Stubbed UpdateWindow() method
34174 * XplatUIWin32.cs: Implemented UpdateWindow() method
34175 * XplatUIX11.cs: Implemented UpdateWindow() method
34176 * Form.cs: Removed stray semicolon causing CS0162 warning
34177 * ThemeWin32Classic.cs: Fixed unused variable warnings
34178 * ScrollableControl.cs: Now calls base method for ScaleCore
34179 * ButtonBase.cs: Now disabling StandardClick and StandardDoubleClick
34180 style to avoid interference with internal click handler (which is
34181 different than standard Control click handling)
34183 - Now unchecks all sibling radio buttons when control is
34184 selected (Fixes #68756)
34185 - Removed internal tabstop variable, using the one inherited from
34188 2005-01-17 Jackson Harper <jackson@ximian.com>
34190 * NavigateEventArgs.cs: Fix base type.
34191 * LinkLabel.cs: Sig fix
34193 2005-01-17 Jackson Harper <jackson@ximian.com>
34195 * TreeView.cs: Only invalidate the effected nodes bounds when
34198 2005-01-13 Jordi Mas i Hernandez <jordi@ximian.com>
34200 * XplatUIWin32.cs: fixes Win32 marshaling
34201 * XplatUIX11.cs: fixes method signature
34203 2005-01-17 Peter Bartok <pbartok@novell.com>
34205 * XplatUIX11.cs: Clean up resources when we no longer need them
34207 2005-01-17 Peter Bartok <pbartok@novell.com>
34209 * XplatUI.cs, XplatUIDriver.cs: Added SetCursor(), ShowCursor(),
34210 OverrideCursor(), DefineCursor(), DefineStdCursor(), GetCursorInfo()
34211 and DestroyCursor() methods.
34212 * Cursor.cs: Partially implemented, now supports standard cursors;
34213 still contains some debug code
34214 * Cursors.cs: Implemented class
34216 - WndProc(): Added handling of WM_SETCURSOR message, setting the
34218 - Implemented Cursor property
34219 - Replaced break; with return; more straightforwar and possibly
34221 - Now properly setting the result for WM_HELP
34222 * X11Structs.cs: Added CursorFontShape enum
34223 * XplatUIStructs.cs:
34224 - Added StdCursor enum (to support DefineStdCursor() method)
34225 - Added HitTest enum (to support sending WM_SETCURSOR message)
34227 - Now sends the WM_SETCURSOR message
34228 - Implemented new cursor methods
34229 * XplatUIOSX.cs: Stubbed new cursor methods
34231 - Implemented new cursor methods
34232 - Added GetSystemMetrics function and associated enumeration
34234 2005-01-15 Peter Bartok <pbartok@novell.com>
34237 - WndProc(): Now handles EnableNotifyMessage
34238 - SelectNextControl(): Fixed bug where if no child or sibling
34239 controls exist we looped endlessly
34241 2005-01-14 Jackson Harper <jackson@ximian.com>
34243 * TreeView.cs: Recalculate the tab pages when a new one is added
34244 so that the proper bounding rects are created.
34246 2005-01-14 Jackson Harper <jackson@ximian.com>
34248 * TreeView.cs: Draw a gray box instead of a grip in the lower
34249 right hand corner when there are both horizontal and vertical
34252 2005-01-14 Jackson Harper <jackson@ximian.com>
34254 * Control.cs: When erasing backgrounds use FromHwnd instead of
34255 FromHdc when there is a NULL wparam. This occurs on the X driver.
34256 * XplatUIX11.cs: Set the wparam to NULL.
34258 2005-01-13 Jackson Harper <jackson@ximian.com>
34260 * PictureBox.cs: Implement missing methods (except ToString, need
34261 to test that on windows) and events. When visibility is changed we
34262 need to redraw the image because the buffers are killed. When size
34263 is changed refresh if the sizemode needs it.
34265 2005-01-13 Peter Bartok <pbartok@novell.com>
34267 * Control.cs (SelectNextControl): Was using wrong method to select
34270 2005-01-13 Jordi Mas i Hernandez <jordi@ximian.com>
34272 * ComboBox.cs: fixes dropstyle
34274 2005-01-13 Peter Bartok <pbartok@novell.com>
34277 - Implemented Select() override
34278 - Now handles WM_SETFOCUS/WM_KILLFOCUS messages
34279 - Now sets keyboard focus on startup
34280 * Control.cs (SelectNextControl): Now properly handles directed=true
34282 - WndProc: Now passes tab key on to base if AcceptTabChar=false
34283 - Added (really bad) focus rectangle (mostly for testing)
34284 * TextBox.cs: Added code to handle getting/loosing focus and invalidating
34285 to enforce redraw on focus changes
34286 * ContainerControl.cs:
34287 - Fixed detection of Shift-Tab key presses
34288 - Fixed traversal with arrow keys
34289 * XplatUIX11.cs: Implemented simulated keyboard focus; not sure if we're
34290 gonna keep this or if it's complete yet
34292 2005-01-13 Jordi Mas i Hernandez <jordi@ximian.com>
34294 * ComboBox.cs: missing properties, fixes
34296 2005-01-13 Peter Bartok <pbartok@novell.com>
34298 * Panel.cs (ctor): Setting Selectable window style to off
34299 * Splitter.cs (ctor): Setting Selectable window style to off
34300 * GroupBox.cs (ctor): Setting Selectable window style to off
34301 * Label.cs (ctor): Setting Selectable window style to off
34303 2005-01-12 Miguel de Icaza <miguel@ximian.com>
34305 * UpDownBase.cs (InitTimer): If the timer has been already
34306 created, enable it.
34308 Use a TextBox instead of a Label.
34310 2005-01-12 Jackson Harper <jackson@ximian.com>
34312 * TreeView.cs: Refresh the tree after sorting the nodes. Always
34313 draw the connecting node lines (when ShowLines is true).
34314 * TreeNode.cs: The nodes index can now be updated. This is used
34315 when a node collection is sorted.
34316 * TreeNodeCollection.cs: Implement sorting. Nodes can be sorted on
34317 insert or an existing unsorted node collection can be sorted.
34319 2005-01-12 Peter Bartok <pbartok@novell.com>
34321 * ContainerControl.cs: Implemented ProcessDialogKeys()
34323 2005-01-12 Peter Bartok <pbartok@novell.com>
34326 - Implemented SelectNextControl() method
34327 - Several focus related bug fixes
34328 - Fixed Docking calculations to match MS documentation and
34331 2005-01-12 Jordi Mas i Hernandez <jordi@ximian.com>
34333 * ContainerControl.cs, ListControl.cs, ListBox.cs: keyboard navigation and
34336 2005-01-12 Peter Bartok <pbartok@novell.com>
34339 - Fixed broken Contains() method
34340 - Implemented GetNextControl() method. Finally. This is the pre-
34341 requisite for focus handling.
34343 2005-01-12 Peter Bartok <pbartok@novell.com>
34345 * OSXStrucs.cs: Added
34347 2005-01-12 Peter Bartok <pbartok@novell.com>
34350 - Removed PeekMessageFlags
34351 - Implemented SetWindowStyle() method
34352 * XplatUIStructs.cs: Added PeekMessageFlags
34353 * X11Structs: Added missing border_width field to XWindowChanges struct
34355 - PeekMessage: Now throws exception if flags which are not yet
34356 supported are passed
34357 - Implemented SetWindowStyle() method
34358 - Fixed SetZOrder to handle AfterHwnd properly
34359 * XplatUI.cs: Added SetWindowStyle() method
34360 * XplatUIDriver.cs: Added SetWindowStyle() abstract
34362 - Implemented UpdateStyles() method
34363 - Implemented UpdateZOrder() method
34364 * XplatUIOSX.cs: Added SetWindowStyle() stub
34366 2005-01-12 Geoff Norton <gnorton@customerdna.com>
34368 * XplatUIOSX.cs: Fix SetZOrder (this needs more testing with a 3
34372 2005-01-11 Jackson Harper <jackson@ximian.com>
34374 * TreeView.cs: Still need to draw lines to siblings even if out of
34375 the current node is out of the clip.
34377 2005-01-11 Jackson Harper <jackson@ximian.com>
34379 * TreeView.cs: When setting the hbar/vbar/grip position use
34380 SetBounds so that perform layout is only called once. Also suspend
34381 and resume layout so layout is only done once for all controls.
34382 - Removed some debug fluff
34383 * SizeGrip.cs: Call base implmentation in overriding methods.
34384 - When visibility is changed the drawing buffers are killed so we
34387 2005-01-11 Jackson Harper <jackson@ximian.com>
34389 * TreeView.cs: Calculate the open node count while drawing. This
34390 saves us an entire tree traversal for every paint operation. Use
34391 a member var for the open node count so less vars are passed around.
34393 2005-01-11 John BouAntoun <jba-mono@optusnet.com.au>
34395 * MonthCalendar.cs:
34396 - fixed selection to use mousemove, not mouse polling on timer
34397 * ThemeWin32Classic.cs
34398 - removed redundant unused variable "no_more_content"
34400 2005-01-11 Peter Bartok <pbartok@novell.com>
34402 * XplatUIX11.cs (DoEvents): Needs to return when no more events
34403 are pending, so it now calls PeekMessage instead of GetMessage;
34404 implemented a incomplete version of PeekMessage
34406 2005-01-11 Peter Bartok <pbartok@novell.com>
34408 * XplatUIWin32.cs: Switched P/Invokes to unicode charset to avoid
34410 * TextBoxBase.cs: Added sending of TextChanged event
34412 2005-01-10 Jackson Harper <jackson@ximian.com>
34414 * TreeView.cs: Try not to draw outside the clipping rectangle on
34417 2005-01-10 Jordi Mas i Hernandez <jordi@ximian.com>
34419 * ComboBox.cs: keyboard navigation, item navigation, bug fixes
34421 2005-01-10 Jackson Harper <jackson@ximian.com>
34424 - Implement fast scrolling. Now only the newly
34425 exposed nodes are drawn and the old image is moved using the
34426 XplatUI::ScrollWindow method.
34427 - Factor in height of nodes when calculating whether or not the
34428 node is in the clipping rect.
34430 2005-01-10 Jackson Harper <jackson@ximian.com>
34432 * TreeNodeCollection.cs: Refresh the tree when a new node is added.
34434 2005-01-10 Peter Bartok <pbartok@novell.com>
34436 * Application.cs: Added temporary hack to resolve all our resize
34437 required issues on startup. This will get fixed properly at
34438 some point in the future
34440 2005-01-10 Jackson Harper <jackson@ximian.com>
34442 * SizeGrip.cs: New internal class that is used as a sizing
34443 grip control...hence the name.
34445 2005-01-10 Peter Bartok <pbartok@novell.com>
34447 * Control.cs: Implemented proper TabIndex handling, now assigning
34448 a tabindex when a control is added to a container
34449 * GroupBox.cs (ctor): Now sets the Container style bit, required
34450 for Control.GetNextControl()
34452 2005-01-09 Jackson Harper <jackson@ximian.com>
34454 * TextBoxBase.cs: Clear window when scrolling (fixes build).
34456 2005-01-09 Peter Bartok <pbartok@novell.com>
34458 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
34459 XplatUIX11.cs: Added ability to control ScrollWindow expose and
34460 an overload for ScrollWindow to allow only scrolling a rectangle
34462 2005-01-09 Peter Bartok <pbartok@novell.com>
34465 - Implemented SetDesktopBounds method
34466 - Implemented SetDesktopLocation method
34468 2005-01-08 Jackson Harper <jackson@ximian.com>
34470 * TreeView.cs: Only set the vbar's Maximum and LargeChange when
34471 the node count has changed, this removes to VScroll::Refresh calls
34474 2005-01-08 Geoff Norton <gnorton@customerdna.com>
34476 * XplatUIOSX.cs: Fix GetWindowState & SetWindowState
34478 2005-01-07 Jackson Harper <jackson@ximian.com>
34480 * TreeNode.cs: Just update the single node when it is
34481 checked. Don't refresh after toggling, the Expand/Collapse already
34483 * TreeView.cs: Respect clipping a little more when drawing. Try
34484 not to redraw things that don't need to be redrawn. Just hide the
34485 scrollbars when they are no longer needed instead of removing
34486 them, so they don't have to be created again and again.
34488 2005-01-07 Geoff Norton <gnorton@customerdna.com>
34490 * XplatUIOSX.cs (SetCaretPos): We need to translate the view
34491 coordinates to window space to place the caret properly, FIXED.
34492 Implement GetWindowState & SetWindowState
34494 2005-01-06 Peter Bartok <pbartok@novell.com>
34497 - Implemented ClientSize property
34498 - Implemented DesktopBounds property
34499 - Implemented DesktopLocation property
34500 - Implemented IsRestrictedWindow property
34501 - Implemented Size property
34502 - Implemented TopLevel property
34503 - Implemented FormWindowState property
34505 - Implemented GetTopLevel() method
34506 - Implemented SetTopLevel() method
34507 * X11Structs.cs (Atom):
34508 - Added AnyPropertyType definition
34509 - Added MapState definiton and updated XWindowAttribute struct
34510 * XplatUI.cs: Added GetWindowState() and SetWindowState() methods
34511 * XplatUIDriver.cs: Added GetWindowState() and SetWindowState() methods
34512 * XplatUIOSX.cs: Stubbed GetWindowState() and SetWindowState() methods
34514 - Implemented GetWindowState() and SetWindowState() methods
34515 - Fixed Win32GetWindowLong return type
34517 - Introduced central function for sending NET_WM messages
34518 - Implemented GetWindowState() and SetWindowState() methods
34519 * TextBoxBase.cs (set_Lines):
34520 - Now uses Foreground color for text added via Text property (Duh!)
34521 - Added code to remember programmatically requested size (fixes
34522 behaviour when Multiline is set after Size)
34523 - Added AutoSize logic
34525 2005-01-06 Jackson Harper <jackson@ximian.com>
34527 * TreeView.cs: Draw the image after the checkbox if checkboxes are enabled.
34529 2005-01-06 Jackson Harper <jackson@ximian.com>
34531 * ListBox.cs: Don't allow the horizontal scrollbars maximum to be
34532 set to less then 0.
34534 2005-01-06 Jackson Harper <jackson@ximian.com>
34536 * ScrollableControl.cs: Lazy init the scrollbars.
34538 2005-01-06 Jackson Harper <jackson@ximian.com>
34540 * Theme.cs: Speed up getting pens and solid brushes, by using
34541 their ARGB as a hash instead of tostring and not calling Contains.
34543 2005-01-06 Peter Bartok <pbartok@novell.com>
34546 - Implemented OnActivated and OnDeactivate event trigger
34547 - Implemented Activate() method
34548 - Fixed ShowDialog() to activate the form that was active before
34549 the dialog was shown
34551 - Added global active_window var that tracks the currently active
34553 - Now always grabs Property changes from the root window to always
34554 catch changes on the active window property
34555 - Added code to PropertyNotify handler to send Active/Inactive
34556 messages when state changes. This puts X11 and Win32 en par on
34557 WM_ACTIVATE notifications (except for double notifications when
34558 the user clicks away from our modal window to another one of our
34561 2005-01-05 Jackson Harper <jackson@ximian.com>
34563 * ImageList.cs: Implment ctor
34565 2005-01-05 Geoff Norton <gnorton@customerdna.com>
34567 * XplatUIOSX.cs: Implement Activate/SetTopmost
34569 2005-01-05 Geoff Norton <gnorton@customerdna.com>
34571 * XplatUIOSX.cs: Implement SetZOrder, minor cleanup
34573 2005-01-05 Geoff Norton <gnorton@customerdna.com>
34575 * XplatUIOSX.cs: Implement GetActive/SetFocus.
34577 2005-01-05 Peter Bartok <pbartok@novell.com>
34579 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs,
34580 XplatUIOSX.cs: Added GetActive method to return the currently
34581 active window for the application (or null, if none is active)
34583 - Implemented ActiveForm
34584 - Commented out owner assignment for modal dialogs (causes problems
34585 on Win32, since the owner will be disabled)
34586 - Reworked some Active/Focus handling (still incomplete)
34587 * CommonDialog.cs: Commented out owner assignment for modal dialogs
34588 (causes problems on Win32, since the owner will be disabled)
34589 * IWin32Window: Added ComVisible attribute
34591 2005-01-05 Peter Bartok <pbartok@novell.com>
34593 * ToolTip.cs (WndProc): Enable setting focus now that we have the
34594 required XplatUI functions.
34596 2005-01-05 Peter Bartok <pbartok@novell.com>
34598 * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIDriver.cs,
34599 XplatUIX11.cs, X11Structs.cs, Form.cs: Framework code required
34600 to implement focus and activation handling; still incomplete and
34603 2005-01-04 Peter Bartok <pbartok@novell.com>
34605 * TextBoxBase.cs: Changed access level for Document property to
34606 match switch to internal for TextControl
34608 2005-01-04 Peter Bartok <pbartok@novell.com>
34610 * AccessibleObject: Added ComVisible attribute
34612 2005-01-04 Jackson Harper <jackson@ximian.com>
34614 * X11Keyboard.cs: Remove unneeded var.
34616 2005-01-04 Jackson Harper <jackson@ximian.com>
34618 * XplatUIX11.cs (DoEvents): Implement, Just cast aside all events
34620 * XplatUIX11.cs (GetMessage): Call Exit when we get an unknown
34621 ClientMessage. This makes apps exit cleanly (more often).
34623 2005-01-04 Jackson Harper <jackson@ximian.com>
34625 * TreeNode.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) for
34626 handling focus, return correct colors and fonts,
34627 * TreeView.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) to
34628 handle selection, horizontal scrolling, and mouse interaction.
34630 2005-01-04 Peter Bartok <pbartok@novell.com>
34632 * ICommandExecutor.cs: Added
34633 * IDataGridColumnStyleEditingNotificationService.cs: Added
34634 * IFeatureSupport.cs: Added
34635 * IFileReaderService.cs: Added
34636 * IDataObject.cs: Added ComVisible attribute
34637 * AmbientProperties.cs: Added
34638 * BaseCollection.cs: Added missing attributes
34639 * ListBindingConverter.cs: Added (stubbed, required for certain attributes)
34640 * BaseCollection.cs: Added missing attributes
34641 * Binding.cs: Added TypeConverter attribute
34642 * BindingContext.cs: Added DefaultEvent attribute
34643 * BindingsCollection.cs: Added DefaultEvent attribute
34644 * Button.cs: Added DefaultValue attribute
34645 * DragEventArgs.cs: Added ComVisible attribute
34646 * GiveFeedbackEventArgs.cs: Added ComVisible attribute
34647 * KeyEventArgs.cs: Added ComVisible attribute
34648 * KeyPressEventArgs.cs: Added ComVisible attribute
34649 * MouseEventArgs.cs: Added ComVisible attribute
34650 * NavigateEventArgs.cs: Added
34651 * NavigateEventHandler.cs: Added
34652 * FeatureSupport.cs: Added
34653 * OSFeature.cs: Added
34654 * Theme.cs: Added abstract Version property to support OSFeature
34655 * ThemeWin32Classic.cs: Added Version property to
34656 support OSFeature.Themes
34657 * ProgressBar.cs: Removed OnPaintBackground override, not required since
34658 the proper styles to avoid background drawing are set, also doesn't
34660 * QueryAccessibilityHelpEventArgs.cs: Added ComVisible attribute
34661 * QueryContinueDragEventArgs.cs: Added ComVisible attribute
34662 * ScrollEventArgs.cs: Added ComVisible attribute
34663 * SplitterEventArgs.cs: Added ComVisible attribute
34664 * AccessibleSelection.cs: Added Flags attribute
34665 * Appearance.cs: Added ComVisible attribute
34666 * Border3DSide.cs: Added ComVisible attribute
34667 * Border3DStyle.cs: Added ComVisible attribute
34668 * BorderStyle.cs: Added ComVisible attribute
34669 * DragAction.cs: Added ComVisible attribute
34670 * ErrorBlinkStyle.cs: Added
34671 * ScrollEventType.cs: Added ComVisible attribute
34672 * AnchorStyles.cs: Added Editor attribute
34673 * DockStyle.cs: Added Editor attribute
34674 * HorizontalAlignment.cs: Added ComVisible attribute
34675 * HelpEventArgs.cs: Added ComVisible attribute
34676 * PaintEventArgs.cs: Added IDisposable
34678 2005-01-04 Peter Bartok <pbartok@novell.com>
34680 * TextControl.cs: Switched Line, LineTag and Document classes to
34683 2005-01-04 Jordi Mas i Hernandez <jordi@ximian.com>
34685 * ComboBox.cs, ThemeWin32Classic.cs, ListBox.cs, Theme.cs:
34686 Simple mode, fixes, IntegralHeight, etc.
34688 2005-01-04 Peter Bartok <pbartok@novell.com>
34690 * TextBoxBase.cs: Using proper font variable now
34692 2005-01-04 Peter Bartok <pbartok@novell.com>
34694 * Form.cs (ShowDialog): Set parent to owner, if provided
34695 * GroupBox.cs: Removed unused vars
34697 - Added GetHashCode() for Document and LineTag classes
34698 - Removed unused variables
34699 - Added CharIndexToLineTag() and LineTagToCharIndex() methods
34700 to allow translation between continuous char position and line/pos
34701 * CheckBox.cs: Removed vars that are provided by base class
34702 * RadioButton.cs: Removed vars that are provided by base class, added
34703 new keyword where required
34704 * LinkLabel.cs: Added new keyword where required
34705 * Control.cs (WndProc): Removed unused variable
34707 - Finished SelectionLength property
34708 - Implemented SelectionStart property
34709 - Implemented Text property
34710 - Removed unused vars
34711 * MessageBox.cs: Added new keyword where required
34712 * TextBox.cs: Removed Text property code (now in TextBoxBase), fixed
34714 * MenuAPI.cs: Added new keyword where required
34715 * ButtonBase.cs: Removed vars that are provided by base class, added
34716 new keyword where required
34717 * ThemeWin32Classic.cs (DrawMonthCalendarDate): Now cast Math.Floor
34718 argument to double, to allow compiling with csc 2.0 (Atsushi ran
34720 * Application.cs (Run): Now triggers the ThreadExit event
34721 * CommonDialog.cs: Added new keyword where required; now properly sets
34722 parent (owner) for dialog
34723 * XplatUIX11.cs: Commented out unused vars
34724 * StatusBar.cs: Fixed signature for Text property
34725 * TabPage.cs: Undid Jordi's removal of unused var, now using the var
34727 2005-01-04 Jordi Mas i Hernandez <jordi@ximian.com>
34729 * ComboBox.cs, TabPage.cs, MenuAPI.cs, ThemeWin32Classic.cs,
34730 TrackBar.cs, MonthCalendar.cs: remove unused vars
34732 2005-01-03 Jackson Harper <jackson@ximian.com>
34734 * ThemeWin32Classic.cs:
34735 * X11Keyboard.cs: Remove unused vars.
34737 2005-01-03 Peter Bartok <pbartok@novell.com>
34740 - set_Text: Tied into TextControl
34741 - set_TextAlignment: Tied into TextControl
34743 - Added alignment properties and implemented alignment handling
34744 and drawing (still has a bug, not generating proper expose events)
34745 - Added new Line() constructor to allow passing the line alignment
34746 - Fixed selection setting, properly handling end<start now
34747 - Added aligment considerations to RecalculateDocument()
34749 - Now properly enforces control height for single line controls
34750 - Added support for CharacterCasing
34751 - Added IsInputKey override
34752 - Fixed Keys.Enter logic
34753 - Added SetBoundsCore override
34754 - Fixed mouse selection handling
34756 2005-01-03 Jackson Harper <jackson@ximian.com>
34759 - Collapse and uncheck all nodes when CheckBoxes is disabled.
34760 - Checkboxes are always aligned to the bottom of the node,
34761 regardless of item height.
34762 - Use the node bounds to draw the text so we can center it when
34763 the item height is greater then the font height.
34764 - Node::Bounds are only the text part of the node.
34765 * TreeNode.cs: New method to combine collapsing and unchecking all
34768 2005-01-02 Jackson Harper <jackson@ximian.com>
34770 * TreeView.cs: Draw checkmarks, handle detecting check mark clicks
34771 * TreeNode.cs: Add a bounding box for the checkbox, refresh the
34772 tree when a check is changed. TODO: Only refresh the checked node.
34774 2004-12-30 Jackson Harper <jackson@ximian.com>
34776 * TreeView.cs: Draw checkbox boxes when checkboxes are enabled.
34777 * TreeNode.cs: When collapsing make sure to never collapse the
34780 2004-12-29 Jackson Harper <jackson@ximian.com>
34782 * TreeView.cs: Align lines to the bottom of plus minus boxes properly.
34784 2004-12-28 Zoltan Varga <vargaz@freemail.hu>
34786 * X11Structs.cs X11Keyboard.cs XplatUIX11.cs: Fix 64 bit issues.
34788 2004-12-28 Peter Bartok <pbartok@novell.com>
34790 * MessageBox.cs (get_CreateParams): Don't use owner var if it's
34793 2004-12-28 Peter Bartok <pbartok@novell.com>
34795 * Control.cs (WndProc): Added WM_HELP handler, now generates
34796 HelpRequested event
34797 * Form.cs: Added HelpButton property and required support code
34798 * XplatUIStructs.cs: Added HELPINFO structure for WM_HELP handling
34800 2004-12-28 Peter Bartok <pbartok@novell.com>
34803 - Made DialogForm.owner variable internal
34804 - Added check to ensure owner form is set before setting
34805 owner properties in CreateParams
34807 2004-12-28 Geoff Norton <gnorton@customerdna.com>
34809 * XplatUIOSX.cs: Implement mouse hovering. Fix QDPoint struct to avoid
34810 swizzling. Implement ClientToScreen and ScreenToClient. Implement
34811 GetCursorPos. Fix major visibility issues. Rework the windowing
34812 system to support borderless/titleless windows (implements menus).
34813 Fix GetWindowPos. Implement initial background color support for
34816 2004-12-28 Peter Bartok <pbartok@novell.com>
34818 * Form.cs (get_CreateParams): Make sure we have an owner before using
34819 the owner variable. Implement proper default if no owner exists
34821 2004-12-28 Peter Bartok <pbartok@novell.com>
34823 * In preparation for making Managed.Windows.Forms the default build target
34824 for System.Windows.Forms, the following stubbed files were added.
34825 Dialogs are currently being implemented by contributors and are only
34826 short-term place holders.
34827 * ColorDialog.cs: Initial check-in (minmal stub)
34828 * DataGrid.cs: Initial check-in (minimal stub)
34829 * DataGridLineStyle.cs: Initial check-in (minimal stub)
34830 * DataGridParentRowsLabelStyle.cs: Initial check-in (minimal stub)
34831 * DataGridTableStyle.cs: Initial check-in (minimal stub)
34832 * FontDialog.cs: Initial check-in (minimal stub)
34833 * FileDialog.cs: Initial check-in (minimal stub)
34834 * GridColumnStylesCollection.cs: Initial check-in (minimal stub)
34835 * GridTableStylesCollection.cs: Initial check-in (minimal stub)
34836 * OpenFileDialog: Initial check-in (minimal stub)
34837 * IComponentEditorPageSite.cs: Initial check-in
34838 * Splitter.cs: Initial check-in (for Jackson)
34839 * SplitterEventArgs.cs: Initial check-in (for Jackson)
34840 * SplitterEventHandler.cs: Initial check-in (for Jackson)
34841 * TextBox.cs: Initial check-in; still needs some wiring to
34842 TextControl backend
34843 * Form.cs: Implemented ControlBox property
34844 * MessageBox.cs: Added proper coding for Minimize/Maximize/ControlBox
34845 * CommonDialog.cs: Added proper coding for Minimize/Maximize/ControlBox
34846 * TextControl.cs: Added selection functionality; added todo header
34848 - Implemented Lines property
34849 - Implemented TextHeight property
34850 - Implemented SelectedText property
34851 - Implemented SelectionLength property
34852 - Implemented SelectAll method
34853 - Implemented ToString method
34854 - Removed and cleaned up some debug code
34855 - Implemented (still buggy) mouse text selection
34857 2004-12-27 Jordi Mas i Hernandez <jordi@ximian.com>
34859 * ComboBox.cs: Complete DropDownList implementation, fixes.
34861 2004-12-26 Jordi Mas i Hernandez <jordi@ximian.com>
34863 * ThemeWin32Classic, Theme.cs: ComboBox drawing methods
34864 * ComboBoxStyle.cs: ComboBoxStyle enum
34865 * ComboBox.cs: Initial work on ComboBox control
34867 2004-12-21 Peter Bartok <pbartok@novell.com>
34869 * Control.cs (ctor, CreateParams): Moved setting of is_visible
34870 forward so that anything that creates a window gets the default,
34871 also no longer uses Visible property in CreateParams to avoid
34872 walking up the parent chain and possibly get the wrong visible
34873 status. Fixed IsVisible to no longer walk up to the parent.
34875 2004-12-21 Peter Bartok <pbartok@novell.com>
34877 * Form.cs (ShowDialog): Unset modality for the proper window
34879 2004-12-20 Peter Bartok <pbartok@novell.com>
34881 * CommonDialog.cs: Initial check-in
34883 2004-12-20 Peter Bartok <pbartok@novell.com>
34885 * Control.cs (Visible): Now uses the parent window instead of the
34886 client area window for the property
34889 - ShowDialog(): Now uses the proper window for modality
34890 - The default visibility state for the form parent is now false. This
34891 will prevent the user from seeing all the changes to the form and
34892 its controls before the application hits Application.Run()
34893 - Removed some stale commented out code
34896 - Added FindWindow() method to have a method to check for existence
34898 - Added ability to override default exception handling (for example
34899 when debugging with VS.Net; to do this the ExternalExceptionHandler
34901 - Removed some useless debug output
34904 - Removed r37929 (SetModal patch from Ashwin Bharambe), was
34905 not working as expected
34906 - Implemented modal_window stack and checking for _WM_ACTIVE_WINDOW
34907 property to allow switching back to the modal window if focus is
34908 given to another one of our windows (Application Modal)
34909 - Now only sets override_redirect if we create a window
34911 - Moved EventMask selection before mapping of newly created window
34912 so we can catch the map event as well
34913 - Implemented Activate() method via the _WM_ACTIVE_WINDOW property
34914 - Added various Atom related DllImports
34915 - Implemented Exit() method
34916 - .ctor() : No longer shows window if WS_VISIBLE is not defined
34917 in the CreateParams
34919 * MessageBox.cs: Now properly deals with the FormParent window by
34920 providing an override the FormParent CreateParams property to
34921 set as POPUP instead of OVERLAPPED window.
34923 2004-12-19 Geoff Norton <gnorton@customerdna.com>
34925 * XplatUIOSX.cs: Implement DestroyWindow. Implement ScrollWindow
34926 Minor code cleanup.
34928 2004-12-19 Geoff Norton <gnorton@customerdna.com>
34930 * XplatUIOSX.cs (SetModal): Implement this method on OSX.
34932 2004-12-18 Peter Bartok <pbartok@novell.com>
34934 * XplatUIX11.cs (SetModal): Applied patch from Ashwin Bharambe,
34935 implementing SetModal() method
34937 2004-12-18 Peter Bartok <pbartok@novell.com>
34939 * X11Structs.cs (XGCValues): Fixed type of function element
34940 * XplatUI.cs: Added ScrollWindow() method
34941 * XplatUIDriver.cs: Added ScrollWindow() abstract
34942 * XplatUIWin32.cs: Implemented ScrollWindow() method
34943 * XplatUIX11.cs: Implemented ScrollWindow() method
34944 * XplatUIOSX.cs: Stubbed out ScrollWindow() method
34946 2004-12-17 Geoff Norton <gnorton@customerdna.com>
34948 * XplatUIOSX.cs: Fix cursor to use an Invert instead of drawing it
34949 Some more keyboard support (INCOMPLETE)
34951 2004-12-17 Peter Bartok <pbartok@novell.com>
34954 - Added color attribute to line tags.
34955 - Added color argument to all functions dealing with tags
34956 - Added color argument support to various functions
34957 - Fixed miss-calculation of baseline/shift in certain circumstances
34959 * TextBoxBase.cs: Added new color option to test code
34961 2004-12-17 Jackson Harper <jackson@ximian.com>
34964 * MonthCalendar.cs: Signature fixes
34966 2004-12-17 Geoff Norton <gnorton@customerdna.com>
34968 * XplatUIOSX.cs: Find the missing caret; caret was dissappearing after a
34969 keyboard event moved it. Create a new graphics context for each paint resolves this
34971 2004-12-17 Geoff Norton <gnorton@customerdna.com>
34973 * XplatUIOSX.cs: Fix hard cpu eat on loop with existing timers,
34974 Make caret exist and go blink blink. Initial keyboard support.
34975 Fix exception handler, Add Invalidate support. Change way RefreshWindow
34978 2004-12-17 Jackson Harper <jackson@ximian.com>
34980 * XplatUIStructs.cs: Updated set of virtual keycodes.
34981 * KeyboardLayouts.cs: SCROLL_LOCK is now SCROLL
34983 2004-12-17 Jackson Harper <jackson@ximian.com>
34985 * XplatUIX11.cs: Prune old keyboard code.
34987 2004-12-17 Jackson Harper <jackson@ximian.com>
34989 * XplatUIX11.cs: When generating mouse wparams get the modifier
34990 keys from the ModifierKeys property.
34992 2004-12-17 Jackson Harper <jackson@ximian.com>
34994 * X11Keyboard.cs: Send up/down input when generating
34995 messages. Remove some unused vars.
34997 2004-12-17 Jackson Harper <jackson@ximian.com>
35000 * TreeView.cs: get rid of warnings.
35002 2004-12-17 Jackson Harper <jackson@ximian.com>
35004 * XplatUIStructs.cs: Fix a couple wrong virtual keycodes.
35006 2004-12-17 Jordi Mas i Hernandez <jordi@ximian.com>
35008 * ListBox.cs: bug fixes, changes for CheckedListBox.cs
35009 CheckedListBox.cs: Implementation
35011 2004-12-17 Peter Bartok <pbartok@novell.com>
35013 * TextControl.cs (RecalculateLine): Fixed baseline aligning calcs
35015 2004-12-16 Peter Bartok <pbartok@novell.com>
35018 - InsertCharAtCaret(): Fixed start pos fixup
35019 - CaretLine_get: No longer derives the line from the tag, the tag
35020 could be stale if lines in the document have been added or deleted
35021 - RebalanceAfterDelete(): Fixed bug in balancing code
35022 - RebalanceAfterAdd(): Fixed really stupid bug in balancing code
35023 - Line.Streamline(): Now can also elminate leading empty tags
35024 - DumpTree(): Added a few more tests and prevented exception on
35026 - Added Debug section for Combining lines
35027 - Delete(): Now copies all remaining properties of a line
35030 - Left mousebutton now sets the caret (and middle button still acts
35031 as formatting tester, which must go away soon)
35032 - Added Debug section for Deleting/Combining lines
35033 - Fixed calculations for UpdateView after Combining lines
35035 2004-12-16 Peter Bartok <pbartok@novell.com>
35037 * TextControl.cs: Now properly aligns text on a baseline, using the
35038 new XplatUI.GetFontMetrics() method. Simplified several calculations
35039 * TextBoxBase.cs: Moved #endif to allow compiling if Debug is not
35042 2004-12-16 Peter Bartok <pbartok@novell.com>
35044 * XplatUI.cs: Added GetFontMetrics() method
35045 * XplatUIDriver.cs: Added GetFontMetrics() abstract
35046 * XplatUIX11.cs: Implemented GetFontMetrics() method, now calls
35047 into libgdiplus, our private GetFontMetrics function
35048 * XplatUIOSX.cs: Implemented GetFontMetrics() method, same as X11
35049 * XplatUIWin32.cs: Implemented GetFontMetrics() method
35051 2004-12-16 Jackson Harper <jackson@ximain.com>
35053 * XplatUIStruct.cs: Add enum for dead keys
35054 * X11Keyboard.cs: Map and unmap dead keys.
35056 2004-12-16 Jackson Harper <jackson@ximian.com>
35058 * X11Keyboard.cs: Detect and use the num lock mask.
35060 2004-12-16 Peter Bartok <pbartok@novell.com>
35062 * Control.cs (CreateGraphics): Added check to make sure the
35063 handle of the window exists before calling Graphics.FromHwnd()
35065 2004-12-16 Peter Bartok <pbartok@novell.com>
35067 * TextBoxBase.cs: Initial check-in. DO NOT TRY TO USE THIS YET. It
35068 contains a lot of code that's not supposed to be there for the
35069 real thing, but required for developing/testing the textbox
35072 2004-12-16 Peter Bartok <pbartok@novell.com>
35075 - Fixed Streamline method
35076 - Added FindTag method to Line
35077 - Added DumpTree method for debugging
35078 - Added DecrementLines() method for deleting lines
35079 - Fixed UpdateView to update the cursor to end-of-line on single-line
35081 - Added PositionCaret() method
35082 - Fixed MoveCaret(LineDown) to move into the last line, too
35083 - Added InsertChar overload
35084 - Fixed InsertChar tag offset calculations
35085 - Added DeleteChar() method
35086 - Added Combine() method for folding lines
35087 - Fixed Delete() method, no longer allocates wasted Line object and
35088 now copies all properties when swapping nodes
35089 - Delete() method now updates document line counter
35091 2004-12-15 Jackson Harper <jackson@ximian.com>
35093 * XplatUIX11.cs: Get the modifier keys from the keyboard driver
35094 * X11Keyboard.cs: Expose the currently selected modifier keys
35095 through a property.
35097 2004-12-15 Peter Bartok <pbartok@novell.com>
35099 * TextControl.cs: Initial check-in. Still incomplete
35101 2004-12-15 Jackson Harper <jackson@ximian.com>
35104 * TreeView.cs: Fix build on csc (second time today ;-))
35106 2004-12-15 Jackson Harper <jackson@ximian.com>
35108 * TreeView.cs: Store the treenodes plus/minus box bounds when it
35109 is calculated and use this for click testing.
35110 * TreeNode.cs: Add functionality to store the nodes plus minus box bounds.
35112 2004-12-15 Jackson Harper <jackson@ximian.com>
35114 * TreeView.cs: Pass the nodes image index to the image list when
35115 drawing that image.
35117 2004-12-15 Jackson Harper <jackson@ximian.com>
35119 * X11Keyboard.cs: Set messages hwnd.
35120 * XplatUIX11.cs: Pass proper hwnd wot keyboard driver. Set hwnd on
35121 post_message calls.
35123 2004-12-15 Jackson Harper <jackson@ximian.com>
35125 * X11Keyboard.cs: Fix to compile with csc.
35127 2004-12-15 Jackson Harper <jackson@ximian.com>
35129 * X11Structs.cs: Add key mask values
35130 * XplatUIStruct.cs: Add keyboard event flags, and keyboard definitions
35131 * X11Keyboard.cs: New file - Extrapolates and interpolates key
35132 down/up foo into WM_CHAR foo
35133 * KeyboardLayouts.cs: Common keyboard layouts
35134 * XplatUIX11.cs: Add the keyboard driver. Add functionality to
35135 post messages into the main queue.
35137 2004-12-13 Jordi Mas i Hernandez <jordi@ximian.com>
35139 * Button.cs: implement ProcessMnemonic
35140 * ThemeWin32Classic.cs: use ResPool (caching) instead of creating
35142 * Control.cs: fixes IsMnemonic (support for &&, case insensitive, etc)
35143 * ButtonBase.cs: Show HotkeyPrefix (not the &)
35145 2004-12-12 John BouAntoun <jba-mon@optusnet.com.au>
35147 * MonthCalendar.cs: Implemented click-hold for next/previous month
35150 2004-12-11 Peter Bartok <pbartok@novell.com>
35153 - Added XKeyboardState (moved from XplatUIX11.cs)
35154 - Added XCreateGC related enums and structures
35155 - Added GXFunction for XSetFunction
35157 * XplatUIStructs.cs: Added missing WS_EX_xxx definitions
35159 * XplatUI.cs: Added CreateCaret(), DestroyCaret(), SetCaretPos() and
35160 CaretVisible() calls
35162 * ToolTip.cs: Added code to prevent stealing focus from app windows
35164 * XplatUIDriver.cs: Added abstracts for caret functions (CreateCaret,
35165 DestroyCaret, SetCaretPos and CaretVisible)
35168 - Added implementation for caret functions
35169 - Moved hover variables into a struct, to make it a bit easier
35170 on the eyes and to debug
35171 - Removed XKeyboardState (moved to XplatUIX11.cs)
35172 - Moved Keyboard properties into the properties region
35174 * Control.cs (get_Region): Control.CreateGraphics is the appropriate
35175 call to get a graphics context for our control
35177 * XplatUIOSX.cs: Added empty overrides for the new caret functions
35179 * TreeView.cs: Fixed bug. No matter what color was set it would always
35180 return SystemColors.Window
35182 * XplatUIWin32.cs: Implemented caret overrides
35184 2004-12-10 Jordi Mas i Hernandez <jordi@ximian.com>
35186 * ListBox.cs: fire events, implement missing methods and properties,
35189 2004-12-10 John BouAntoun <jba-mono@optusnet.com.au>
35191 * MonthCalendar.cs: invalidation bug fixing
35192 * ThemeWin32Classic.cs: paint fixing
35194 2004-12-09 Geoff Norton <gnorton@customerdna.com>
35196 * XplatUIOSX.cs: Refactor to pass the real hwnd into Graphics.FromHwnd, we
35197 prepare the CGContextRef there now.
35199 2004-12-09 John BouAntoun <jba-mono@optusnet.com.au>
35201 * MonthCalendar.cs:
35202 - optimisationL only invalidate areas that have changed
35203 * ThemeWin32Classic.cs:
35204 - only paint parts that intersect with clip_area
35206 2004-12-09 Peter Bartok <pbartok@novell.com>
35208 * Application.cs: Undid changes from r37004 which cause problems
35211 2004-12-09 Ravindra <rkumar@novell.com>
35213 * ToolBar.cs: Added support for displaying ContextMenu
35214 attached to a button on ToolBar.
35215 * ToolBarButton.cs: Uncomment/fixed the DropDownMenu
35218 2004-12-09 Jordi Mas i Hernandez <jordi@ximian.com>
35220 * Label.cs: autosize works in text change and removes unnecessary
35223 2004-12-09 Jordi Mas i Hernandez <jordi@ximian.com>
35225 * ThemeWin32Classic.cs, XplatUIOSX.cs, XplatUIWin32.cs:
35228 2004-12-08 Geoff Norton <gnorton@customerdna.com>
35230 * XplatUIOSX.cs: Added mouse move/click/grab support
35231 Remove some debugging WriteLines not needed anymore.
35232 Add window resizing/positioning.
35233 Fix visibility on reparenting.
35235 2004-12-08 Peter Bartok <pbartok@novell.com>
35237 * XplatUIOSX.cs: Added Idle event, now compiles on VS.Net
35239 2004-12-07 Geoff Norton <gnorton@customerdna.com>
35241 * XplatUIOSX.cs: Initial checkin
35242 * XplatUI.cs: Use the Quartz driver if the environment is set to use it
35244 2004-12-03 Ravindra <rkumar@novell.com>
35246 * ListView.cs: Added some keybindings and fixed scrolling.
35247 ScrollBars listen to ValueChanged event instead of Scroll
35248 Event. This would let us take care of all changes being
35249 done in the scrollbars' values programmatically or manually.
35250 * ListView.cs (CanMultiselect): Added a check for shift key.
35251 * ListView.cs (EnsureVisible): Fixed. Do proper scrolling.
35252 * ListViewItem.cs (Clone): Fixed. We need to make a copy
35253 of ListViewSubItemCollection as well.
35255 2004-12-06 Peter Bartok <pbartok@novell.com>
35257 * Control.cs (Parent): Added check and exception to prevent
35260 2004-12-03 Jordi Mas i Hernandez <jordi@ximian.com>
35262 * ListBox.cs: implemented clipping, selection single and multiple,
35265 2004-12-03 Ravindra <rkumar@novell.com>
35267 * ListView.cs (ListView_KeyDown):
35268 * ListView.cs (ListView_KeyUp): Fixed multiple selection handling
35269 when CTRL key is pressed.
35270 * ListViewItem.cs (Selected): Fixed setting the property.
35272 2004-12-03 Marek Safar <marek.safar@seznam.cz>
35274 * Application.cs (OnThreadException): Use ThreadExceptionDialog.
35276 * Form.cs: Add ActiveForm, FormBorderStyle, MaximizeBox,
35277 MinimizeBox, ShowInTaskbar, TopMost properties.
35279 * ThreadExceptionDialog.cs: Implemented (disabled TextBox until
35280 will be implemented).
35282 2004-12-03 Marek Safar <marek.safar@seznam.cz>
35284 * OwnerDrawPropertyBag.cs: New internal parameterless ctor.
35286 * TreeNode.cs: Implemented ICloneable, Fixed to pass my simple
35289 * TreeNodeCollection.cs: Add exception throwing for Add,AddRange.
35291 * TreeView.cs: BackColor is Colors.Window.
35293 2004-12-01 Jackson Harper <jackson@ximian.com>
35295 * TreeView.cs: When resizing the tree if the user is making it
35296 smaller we don't get expose events, so we need to handle adding
35297 the horizontal scrollbar in the size changed handler as well as
35298 the expose handler.
35300 2004-12-02 Jordi Mas i Hernandez <jordi@ximian.com>
35302 * DrawItemState.cs: fixes wrong enum values
35304 2004-12-01 Jackson Harper <jackson@ximian.com>
35306 * TreeView.cs: Resize the hbar as well as the vbar on resize.
35308 2004-12-01 Jackson Harper <jackson@ximian.com>
35310 * NodeLabelEditEventArgs.cs:
35311 * NodeLabelEditEventHandler.cs:
35312 * OpenTreeNodeEnumerator.cs:
35314 * TreeNodeCollection.cs:
35316 * TreeViewAction.cs:
35317 * TreeViewCancelEventArgs.cs:
35318 * TreeViewCancelEventHandler.cs:
35319 * TreeViewEventArgs.cs:
35320 * TreeViewEventHandler.cs: Initial implementation.
35322 2004-12-01 Ravindra <rkumar@novell.com>
35324 * ListView.cs (CalculateListView): Fixed scrolling related
35325 calculations. Also, removed some debug statements from other
35327 * ListViewItem.cs: Changed access to 'selected' instance variable
35328 from private to internal.
35329 * ThemeWin32Classic.cs (DrawListViewItem): Fixed SubItem drawing.
35331 2004-12-01 Jordi Mas i Hernandez <jordi@ximian.com>
35333 * ThemeWin32Classic.cs: remove cache of brush and pens for
35334 specific controls and use the global system, fixes scrollbutton
35335 bugs (for small sizes, disabled, etc)
35337 * ScrollBar.cs: does not show the thumb for very small controls
35338 (as MS) and allow smaller buttons that the regular size
35340 2004-12-01 Miguel de Icaza <miguel@ximian.com>
35342 * UpDownBase.cs: Add abstract methods for the interface.
35343 Add new virtual methods (need to be hooked up to TextEntry when it
35345 Add override methods for most features.
35346 Computes the size, forces the height of the text entry.
35348 * NumericUpDown.cs: Put here the current testing code.
35350 * Set eol-style property on all files that do not have mixed line
35351 endings, to minimize the future problems. There are still a few
35352 files with mixed endings, and someone should choose whether they
35353 want to move it or not.
35355 2004-11-30 Jordi Mas i Hernandez <jordi@ximian.com>
35357 * MonthCalendar.cs, ListView.cs: use Theme colours instead of
35360 2004-11-30 Ravindra <rkumar@novell.com>
35362 * ThemeWin32Classic.cs (DrawListViewItem): Fixed selected item
35363 drawing and replaced use of SystemColors by theme colors.
35364 * ListView.cs (ListView_Paint): Fixed painting done during scrolling.
35365 * ListView.cs (ListViewItemCollection.Add): Throw exception when
35366 same ListViewItem is being added more than once.
35368 2004-11-30 John BouAntoun <jba-mono@optusnet.com.au>
35370 * MonthCalendar.cs:
35371 - ControlStyles love to make the control not flicker
35373 2004-11-30 Peter Bartok <pbartok@novell.com>
35375 * CharacterCasing.cs: Added
35377 2004-11-29 Peter Bartok <pbartok@novell.com>
35379 * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
35380 TreeViewAction.cs, TreeViewEventArgs.cs: Removed new files.
35381 I am removing these files as they conflict with already completed
35382 work. While it is fantastic to get contributions to MWF, I
35383 respectfully ask that everyone please coordinate their contributions
35384 through mono-winforms-list or #mono-winforms at this time. We're
35385 explicitly avoiding stubbing and don't want controls that don't have
35386 their basic functionality implemented in svn. Please also see
35387 http://www.mono-project.com/contributing/winforms.html
35390 2004-11-29 Marek Safar <marek.safar@seznam.cz>
35392 * Application.cs (ModalRun): Don't hang after exit.
35394 * Theme.cs: New TreeViewDefaultSize property.
35396 * ThemeWin32Classic.cs: Replaced hardcoded defaultWindowBackColor
35397 with less hardcoded SystemColors constant.
35398 Implemented TreeViewDefaultSize.
35400 * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
35401 TreeViewAction.cs, TreeViewEventArgs.cs: New files.
35404 2004-11-29 John BouAntoun <jba-mono@optusnet.com.au>
35406 * MonthCalendar.cs:
35407 - Fix NextMonthDate and PrevMonthDate click moving calendar
35409 2004-11-26 John BouAntoun <jba-mono@optusnet.com.au>
35411 * MonthCalendar.cs:
35412 - Fix usage of ScrollChange Property when scrolling months
35414 2004-11-26 Jordi Mas i Hernandez <jordi@ximian.com>
35416 * Menu.cs, MainMenu.cs, MenuItem.cs, MenuAPI.cs
35417 - Fixes menu destroying
35418 - Support adding and removing items on already created menus
35420 2004-11-26 John BouAntoun <jba-mono@optusnet.com.au>
35422 * MonthCalendar.cs:
35423 - Re-worked all bolded dates handling to match win32
35424 * ThemeWin32Classic.cs:
35425 - Fixed rendering with bolded dates
35427 2004-11-25 Jordi Mas i Hernandez <jordi@ximian.com>
35429 * ListBox.cs, Theme.cs, ThemeWin32Classic.cs:
35430 - Horizontal scroolbar
35435 2004-11-25 John BouAntoun <jba-mono@optusnet.com.au>
35437 * MonthCalendar.cs:
35438 - Fix Usage of MaxSelectionCount from SelectionRange
35439 - Fixed Shift + Cursor Selection
35440 - Fixed Shift + (Pg up/Pg dn, Home/End) selection
35441 - Fixed normal cursor selection to be compat with win32
35442 - Fixed Shift + Mouse Click selection
35444 2004-11-24 Peter Bartok <pbartok@novell.com>
35446 * XplatUI.cs (DispatchMessage): Switched to return IntPtr
35447 * XplatUIDriver.cs (DispatchMessage): Switched to return IntPtr
35449 - CreatedKeyBoardMsg now updates keystate with Alt key
35450 - Added workaround for timer crash to CheckTimers, Jackson will
35451 develop a proper fix and check in later
35452 - Implemented DispatchMessage
35453 - Removed calling the native window proc from GetMessage (call
35454 now moved to DispatchMessage)
35456 * KeyEventArgs.cs (Constructor): Now combines modifierkeys into
35457 the keydata (Fixes bug #69831)
35460 - (DispatchMessage): Switched to return IntPtr
35461 - Added DllImport for SetFocus
35463 2004-11-24 Ravindra <rkumar@novell.com>
35465 * ThemeWin32Classic.cs: Fixed ListView border and checkbox
35466 background drawing.
35467 * ListViewItem.cs: Fixed various properties, calculations
35468 and Clone() method. Fixed ListViewSubItemCollection.Clear() method.
35469 * ListView.cs: Fixed calculations, BackColor, ForeColor properties
35470 and some internal properties. Fixed MouseDown handler and Paint
35473 2004-11-24 John BouAntoun <jba-mono@optusnet.com.au>
35475 * MonthCalendar.cs: Add TitleMonth ContextMenu handling
35477 2004-11-24 John BouAntoun <jba-mono@optusnet.com.au>
35479 * ContainerControl.cs: correct accidental check in of local changes
35481 2004-11-24 John BouAntoun <jba-mono@optusnet.com.au>
35483 * ThemeWin32Classic.cs:
35484 - Fixed Drawing Last month in grid (sometimes not showing)
35485 * MonthCalendar.cs:
35486 - Fixed title width calculation bug (makeing title small)
35488 2004-11-23 Peter Bartok <pbartok@novell.com>
35491 - Added generation of WM_MOUSEHOVER event
35492 - Added missing assignment of async_method atom
35493 - Fixed WM_ERASEBKGND; now only redraws the exposed area
35495 2004-11-23 John BouAntoun <jba-mono@optusnet.com.au>
35497 * ThemeWin32Classic.cs:
35498 - Fixed Drawing of today circle when showtodaycircle not set
35499 - fixed drawing of first and last month in the grid (gay dates)
35500 * MonthCalendar.cs:
35501 - Fixed Drawing of today circle
35502 - Fixed drawing of grady dates
35503 - Fixed HitTest for today link when ShowToday set to false
35504 - Fixed DefaultSize to obey ShowToday
35506 2004-11-23 John BouAntoun <jba-mono@optusnet.com.au>
35508 * ThemeWin32Classic.cs: Fixed DrawMonthCalendar and private support methods
35509 * System.Windows.Forms/Theme.cs
35510 * MonthCalendar.cs: added for MonthCalendar
35511 * SelectionRange.cs: added for MonthCalendar
35512 * Day.cs: added for MonthCalendar: added for MonthCalendar
35513 * DateRangeEventArgs.cs: added for MonthCalendar
35514 * DateRangeEventHandler.cs: added for MonthCalendar
35516 2004-11-22 Ravindra <rkumar@novell.com>
35518 * ThemeWin32Classic.cs: Fixed ListViewDrawing with 'UseItemStyleForSubItems'
35521 2004-11-22 Miguel de Icaza <miguel@ximian.com>
35523 * UpDownBase.cs (InitTimer): Use prehistoric C# 1.0 notation for
35526 * NumericUpDown.cs: Added new implementation.
35527 * UpDownBase.cs: Added new implementation.
35529 * XplatUIWin32.cs (KeyboardSpeed, KeyboardDelay): added default
35532 * XplatUIX11.cs (KeyboardSpeed, KeyboardDelay): added default
35535 * XplatUIDriver.cs ((KeyboardSpeed, KeyboardDelay): added new
35538 2004-11-21 Miguel de Icaza <miguel@ximian.com>
35540 * Timer.cs (Dispose): Should call the base dispose when
35543 2004-11-19 Jordi Mas i Hernandez <jordi@ximian.com>
35545 * ScrollBar.cs: updates thumb position when max, min or increment
35548 2004-11-21 Ravindra <rkumar@novell.com>
35550 * ListView.cs: Implemented item selection, activation and
35551 column header style. Fixed properties to do a redraw, if
35552 required. Added support for MouseHover, DoubleClick, KeyDown
35553 and KeyUp event handling and some minor fixes.
35554 * ListViewItem.cs: Fixed constructor.
35555 * ThemeWin32Classic.cs: Improved drawing for ListView.
35557 2004-11-19 Jordi Mas i Hernandez <jordi@ximian.com>
35559 * ThemeWin32Classic.cs: initial listbox drawing code
35560 * DrawMode.cs: new enumerator
35561 * ListControl.cs: stubbed class
35562 * ListBox.cs: initial implementation
35563 * Theme.cs: new methods definitions
35564 * SelectionMode.cs: new enumerator
35566 2004-11-17 Peter Bartok <pbartok@novell.com>
35568 * XplatUIWin32.cs: Added double-click events to the class style
35569 * Control.cs (WndProc):
35570 - Added handling of click-count to MouseDown/ MouseUp events.
35571 - Added handling of middle and right mouse buttons
35572 - Removed old debug code
35574 2004-11-17 Jackson Harper <jackson@ximian.com>
35576 * XplatUIX11.cs: Use the new Mono.Unix namespace.
35578 2004-11-17 Ravindra <rkumar@novell.com>
35580 * ListView.cs: Added event handling for MouseMove/Up/Down.
35581 * ColumnHeader.cs: Added a read-only internal property 'Pressed'.
35582 * ThemeWin32Classic.cs: We need to clear the graphics context and
35583 draw column header in a proper state.
35586 2004-11-17 Jordi Mas i Hernandez <jordi@ximian.com>
35588 * Menu.cs: fixes signature
35590 2004-11-16 Peter Bartok <pbartok@novell.com>
35592 * XplatUIX11.cs (GetMessage): Implemented generation of
35593 double click mouse messages
35595 2004-11-12 Jordi Mas i Hernandez <jordi@ximian.com>
35597 * Form.cs, MainMenu.cs, MenuAPI.cs: tracker should be for tracking session
35600 2004-11-11 Peter Bartok <pbartok@novell.com>
35602 * HandleData.cs: Added Visible property
35603 * XplatUIX11.cs (IsVisible): Now uses Visible property from
35605 * XplatUIX11.cs: Removed old debug leftovers
35606 * XplatUIX11.cs (DefWndProc): Added WM_ERASEBKGND handler
35607 * Control.cs (WndProc): Removed old debug leftovers,
35608 streamlined handling of WM_WINDOWPOSCHANGED, removed un-
35609 needed WM_SIZE handling
35611 2004-11-11 Jackson Harper <jackson@ximian.com>
35613 * OwnerDrawPropertyBag.cs:
35614 * TreeViewImageIndexConverter.cs: Initial implementation
35616 2004-11-10 Jackson Harper <jackson@ximian.com>
35618 * ThemeWin32Classic.cs:
35619 * TabControl.cs: instead of moving tabs by the slider pos just
35620 start drawing at the tab that is offset by the slider. This way
35621 scrolling always moves by exactly one tab.
35623 2004-11-10 Jackson Harper <jackson@ximian.com>
35625 * TabControl.cs: You can only scroll left when the slider has
35626 already ben moved right.
35628 2004-11-10 Jackson Harper <jackson@ximian.com>
35630 * ThemeWin32Classic.cs: Do not draw the selected tab if its not in
35633 2004-11-10 Jackson Harper <jackson@ximian.com>
35635 * ThemeWin32Classic.cs: Don't bother drawing tabs outside of the
35638 2004-11-09 Jackson Harper <jackson@ximian.com>
35640 * TabControl.cs (CalcXPos): New helper method so we can determine
35641 the proper place to start drawing vertical tabs.
35642 * ThemeWin32Classic.cs (DrawTab): Draw right aligned tabs.
35644 2004-11-09 Jackson Harper <jackson@ximian.com>
35646 * TabControl.cs: Calculate sizing and rects for left aligned tabs.
35647 * ThemeWin32Classic.cs (GetTabControl*ScrollRect): Only handle Top
35648 and Bottom, left and right are illegal values for this and
35649 multiline is enabled when the alignment is set to left or right.
35650 (DrawTab): Each alignment block should draw the text itself now
35651 because Left requires special love. Also add rendering for Left
35654 2004-11-09 Jordi Mas i Hernandez <jordi@ximian.com>
35656 * Form.cs, MainMenu.cs, MenuAPI.cs: fixes menu navigation, fixes popups,
35657 does not destroy the windows, removes debugging messages
35659 2004-11-09 jba <jba-mono@optusnet.com.au>
35661 * ThemeWin32Classic.cs
35662 (DrawButtonBase): Fix verticle text rect clipping in windows
35663 (DrawCheckBox): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
35664 rendering and incorrect text rect clipping
35665 (DrawRadioButton): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
35666 rendering and incorrect text rect clipping
35668 2004-11-08 Jackson Harper <jackson@ximian.com>
35670 * ThemeWin32Classic.cs (DrawTabControl): Render tabs from top to
35671 bottom when they are bottom aligned so the bottoms of the tabs get
35673 * TabControl.cs (DropRow): Move rows up instead of down when the
35674 tab control is bottom aligned.
35676 2004-11-08 13:59 pbartok
35679 - Added handling for various window styles
35680 - Added handling for popup windows
35681 - Added SetTopmost handling
35683 2004-11-08 13:55 pbartok
35686 - Added argument to SetTopmost method
35687 - Fixed broken ClientToScreen function
35689 2004-11-08 13:53 pbartok
35691 * XplatUIStructs.cs:
35692 - Added missing WS_EX styles
35694 2004-11-08 13:53 pbartok
35696 * XplatUI.cs, XplatUIDriver.cs:
35697 - Added argument to SetTopmost
35699 2004-11-08 13:52 pbartok
35702 - Added XSetWindowAttributes structure
35703 - Improved XWindowAttributes structure
35704 - Added SetWindowValuemask enum
35705 - Added window creation arguments enum
35706 - Added gravity enum
35707 - Added Motif hints structure
35708 - Added various Motif flags and enums
35709 - Added PropertyMode enum for property functions
35711 2004-11-08 13:50 pbartok
35714 - Fixed arguments for updated SetTopmost method
35716 2004-11-08 13:49 pbartok
35719 - Fixed arguments for updated SetTopmost function
35720 - Fixed usage of PointToClient
35722 2004-11-08 13:44 pbartok
35725 - Added Clipping of children and siblings
35727 2004-11-08 13:41 pbartok
35730 - Removed SetMenuBarWindow call. We do this in Form.cs
35732 2004-11-08 13:40 jackson
35734 * TabControl.cs, Theme.cs, ThemeWin32Classic.cs: Render the little
35735 scrolling jimmi in the correct location with bottom aligned tabs
35737 2004-11-08 13:36 pbartok
35739 * ContainerControl.cs:
35740 - Implemented BindingContext
35741 - Implemented ParentForm
35743 2004-11-08 12:46 jackson
35745 * TabControl.cs: Put bottom rendered tabs in the right location
35747 2004-11-08 07:15 jordi
35749 * ScrollBar.cs, ThemeWin32Classic.cs: fixes vertical scrollbar and
35752 2004-11-05 17:30 jackson
35754 * TabControl.cs: When selected tabs are expanded make sure they
35755 don't go beyond the edges of the tab control
35757 2004-11-05 14:57 jackson
35759 * TabControl.cs: Reset show_slider so if the control is resized to
35760 a size where it is no longer needed it's not displayed anymore
35762 2004-11-05 13:16 jackson
35764 * TabControl.cs: Make tab pages non visible when added to the
35767 2004-11-05 12:42 jackson
35769 * TabControl.cs: Implement SizeMode.FillToRight
35771 2004-11-05 12:16 jackson
35773 * Control.cs: Do not call CreateHandle if the handle is already
35776 2004-11-05 11:46 jackson
35778 * TabControl.cs: Remove superflous call to CalcTabRows
35780 2004-11-05 09:07 jackson
35782 * XplatUIX11.cs: Update for Mono.Posix changes
35784 2004-11-05 07:00 ravindra
35786 * ListView.cs, ListViewItem.cs: Implemented some methods and fixed
35789 2004-11-04 22:47 jba
35791 * ThemeWin32Classic.cs:
35792 - Fix Button rendering for FlatStyle = Flat or Popup
35793 - Fix RadioButton and CheckBox rendering when Appearance = Button
35794 (normal and flatstyle).
35795 - Correct outer rectangle color when drawing focus rectangle
35796 - Adjust button bounds to be 1 px smaller when focused
35797 - Make button not draw sunken 3d border when pushed (windows compat)
35798 - Fix CPDrawBorder3D to not make bottom right hand corner rounded
35799 - Offset the text in RadioButton and Checkbox when being rendered as
35801 - Hover and Click behaviour for Colored FlatStyle.Flat and Popup
35803 - Fixed disabled rendering for colored flatstyle radiobuttons (both)
35804 - Fixed disabled text rendering for normally rendered radiobuttons
35806 2004-11-04 10:26 jackson
35808 * TabControl.cs: Recalculate tab rows when resizing
35810 2004-11-04 07:47 jordi
35812 * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs:
35813 collection completion, drawing issues, missing features
35815 2004-11-04 05:03 ravindra
35818 - We need to recalculate the Thumb area when
35819 LargeChange/maximum/minimum values are changed.
35820 - We set the 'pos' in UpdatePos() method to minimum, if it's less
35821 than minimum. This is required to handle the case if large_change is
35822 more than max, and use LargeChange property instead of large_change
35824 - We return max+1 when large_change is more than max, like MS does.
35826 2004-11-04 04:29 ravindra
35828 * ColumnHeader.cs, ListView.cs, ListViewItem.cs:
35829 - Changed default value signatures (prefixed all with ListView).
35830 - Fixed/implemented layout LargeIcon, SmallIcon and List views for
35832 - Fixed calculations for ListViewItem and implemented Clone()
35835 2004-11-04 04:26 ravindra
35837 * Theme.cs, ThemeWin32Classic.cs:
35838 - Changed default ListView values signatures (prefixed all with
35840 - Fixed default size values for VScrollBar and HScrollBar.
35841 - Fixed DrawListViewItem method.
35843 2004-11-04 04:05 ravindra
35845 * ColumnHeaderStyle.cs: Typo. It should be Nonclickable.
35847 2004-11-04 04:04 ravindra
35849 * ImageList.cs: Implemented the missing overload for Draw method.
35851 2004-11-03 19:29 jackson
35853 * TabControl.cs: Handle dropping rows on selection properly
35855 2004-11-03 11:59 jackson
35857 * TabControl.cs: remove debug code
35859 2004-11-03 11:52 jackson
35861 * TabControl.cs, ThemeWin32Classic.cs: Initial implementation of
35862 the scrolly widgerywoo
35864 2004-11-02 13:52 jackson
35866 * TabControl.cs: Resize the tab pages and tabs when the tab control
35869 2004-11-02 13:40 jackson
35871 * TabControl.cs, ThemeWin32Classic.cs: Move the row with the
35872 selected tab to the bottom
35874 2004-11-02 13:39 jackson
35876 * TabPage.cs: Store the tab pages row
35878 2004-11-02 12:33 jordi
35880 * MenuItem.cs: fixes handle creation
35882 2004-11-02 11:42 jackson
35884 * TabControl.cs: signature fix
35886 2004-11-02 08:56 jackson
35888 * TabControl.cs: Calculate whether the tab is on an edge properly.
35889 Remove top secret debugging code
35891 2004-11-01 19:57 jackson
35893 * TabControl.cs: Add click handling, and proper sizing
35895 2004-11-01 19:47 jackson
35897 * Theme.cs, ThemeWin32Classic.cs: New rendering and sizing code for
35900 2004-11-01 19:39 jackson
35902 * TabPage.cs: add internal property to store the bounds of a tab
35905 2004-10-30 04:23 ravindra
35907 * Theme.cs, ThemeWin32Classic.cs: Drawing ListView and some default
35910 2004-10-30 04:21 ravindra
35912 * ListView.cs, ListViewItem.cs: Added support for scrolling and
35913 fixed calculations.
35915 2004-10-30 03:06 pbartok
35918 - Removed extension of DllImported libs
35920 2004-10-29 09:55 jordi
35922 * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: Menu key
35923 navigation, itemcollection completion, menu fixes
35925 2004-10-27 22:58 pbartok
35928 - Now throws a nice error message when no X display could be opened
35930 2004-10-26 13:51 jordi
35932 * ListView.cs: removes warning
35934 2004-10-26 03:55 ravindra
35936 * ColumnHeader.cs, ListView.cs, ListViewItem.cs,
35937 ThemeWin32Classic.cs: Some formatting for my last checkins.
35939 2004-10-26 03:36 ravindra
35941 * ThemeWin32Classic.cs: Implemented DetailView drawing for ListView
35942 control and default values.
35944 2004-10-26 03:35 ravindra
35946 * Theme.cs: Added some default values for ListView control.
35948 2004-10-26 03:33 ravindra
35950 * ToolBar.cs: ToolBar should use the user specified button size, if
35951 there is any. Added a size_specified flag for the same.
35953 2004-10-26 03:33 ravindra
35955 * ColumnHeader.cs: Added some internal members and calculations for
35958 2004-10-26 03:32 ravindra
35960 * ListViewItem.cs: Calculations for ListViewItem.
35962 2004-10-26 03:31 ravindra
35964 * ListView.cs: Added some internal members and calculations for
35967 2004-10-22 13:31 jordi
35969 * MenuAPI.cs: speedup menus drawing
35971 2004-10-22 13:16 jackson
35973 * XplatUIX11.cs: Make sure to update exposed regions when adding an
35976 2004-10-22 11:49 jackson
35980 2004-10-22 11:41 jackson
35982 * Control.cs: Check to see if the window should have its background
35983 repainted by X when drawing.
35985 2004-10-22 11:31 jackson
35987 * XplatUIX11.cs: When invalidating areas only use XClearArea if
35988 clear is true, this way we do not get flicker from X repainting the
35991 2004-10-22 11:28 jackson
35993 * XEventQueue.cs: Queue properly
35995 2004-10-21 09:38 jackson
35997 * XEventQueue.cs: Fix access modifier
35999 2004-10-21 09:36 jackson
36001 * XEventQueue.cs: Don't loose messages
36003 2004-10-21 09:22 jackson
36005 * XEventQueue.cs: Don't loose messages
36007 2004-10-20 04:15 jordi
36009 * BootMode.cs: enum need it by SystemInfo
36011 2004-10-19 21:58 pbartok
36014 - Small sanity check
36016 2004-10-19 21:56 pbartok
36019 - Added private FormParentWindow class which acts as the container
36020 for our form and as the non-client area where menus are drawn
36021 - Added/Moved required tie-ins to Jordi's menus
36022 - Fixed/Implemented the FormStartPosition functionality
36024 2004-10-19 21:52 pbartok
36027 - Removed unneeded locals
36028 - Added code to all size and location properties to understand and
36029 deal with the parent container of Form
36031 2004-10-19 21:33 pbartok
36034 - Fixed to deal with new Form subclasses for menus
36036 2004-10-19 17:48 jackson
36038 * XEventQueue.cs: commit correct version of file
36040 2004-10-19 16:50 jackson
36042 * XEventQueue.cs, XplatUIX11.cs: New optimized event queue
36044 2004-10-19 16:15 jordi
36046 * MenuAPI.cs: MenuBarCalcSize returns the height
36048 2004-10-19 08:31 pbartok
36051 - Added missing call to PreProcessMessage before calling OnXXXKey
36054 2004-10-19 00:04 ravindra
36056 * ToolTip.cs: Fixed constructor.
36058 2004-10-18 09:31 jordi
36060 * MenuAPI.cs: menuitems in menubars do not have shortcuts
36062 2004-10-18 09:26 jordi
36064 * MenuItem.cs: fixes MenuItem class signature
36066 2004-10-18 08:56 jordi
36068 * MenuAPI.cs: prevents windows from showing in the taskbar
36070 2004-10-18 00:28 ravindra
36072 * ToolTip.cs: Suppressed a warning message.
36074 2004-10-18 00:27 ravindra
36076 * Control.cs: Default value of visible property must be true.
36078 2004-10-17 23:19 pbartok
36081 - Complete implementation
36083 2004-10-17 23:19 pbartok
36086 - Added EnableWindow method
36087 - Added SetModal stub
36088 - Added generation of WM_ACTIVATE message (still needs testing)
36089 - Added SetTopMost stub
36090 - Changes to deal with VirtualKeys being moved to XplatUIStructs.cs
36092 2004-10-17 23:17 pbartok
36095 - Removed VirtualKeys to XplatUIStructs
36096 - Implemented SetTopMost method
36097 - Implemented EnableWindow method
36098 - Bugfix in ScreenToClient()
36099 - Bugfixes in ClientToScreen()
36101 2004-10-17 22:51 pbartok
36103 * XplatUIStructs.cs:
36104 - Added WS_EX styles to WindowStyles enumeration
36106 2004-10-17 22:50 pbartok
36108 * XplatUI.cs, XplatUIDriver.cs:
36109 - Added method for enabling/disabling windows
36110 - Added method for setting window modality
36111 - Added method for setting topmost window
36113 2004-10-17 22:49 pbartok
36115 * ThemeWin32Classic.cs:
36116 - Added ToolTip drawing code
36118 2004-10-17 22:49 pbartok
36121 - Added ToolTip abstracts
36123 2004-10-17 22:47 pbartok
36126 - Fixed Form.ControlCollection to handle owner relations
36127 - Added Owner/OwnedForms handling
36128 - Implemented Z-Ordering for owned forms
36129 - Removed unneeded private overload of ShowDialog
36130 - Fixed ShowDialog, added the X11 incarnation of modal handling (or
36132 - Fixed Close(), had wrong default
36133 - Added firing of OnLoad event
36134 - Added some commented out debug code for Ownership handling
36136 2004-10-17 22:16 pbartok
36139 - Fixed/implemented flat list of controls
36141 2004-10-17 22:14 pbartok
36144 - Added code to simulate modal dialogs on Win32
36146 2004-10-17 16:11 jordi
36148 * ScrollBar.cs: disabled scrollbar should not honor any keyboard or
36151 2004-10-17 13:39 jordi
36153 * MenuAPI.cs: menu drawing fixes
36155 2004-10-15 09:10 ravindra
36157 * StructFormat.cs: General Enum.
36159 2004-10-15 09:09 ravindra
36161 * SizeGripStyle.cs: Enum for Form.
36163 2004-10-15 09:08 ravindra
36165 * Theme.cs, ThemeWin32Classic.cs: Added ColumnHeaderHeight property
36166 in Theme for ListView.
36168 2004-10-15 09:06 ravindra
36170 * ColumnHeader.cs: Flushing some formatting changes.
36172 2004-10-15 09:05 ravindra
36174 * ListViewItem.cs: Implemented GetBounds method and fixed coding
36177 2004-10-15 09:03 ravindra
36179 * ListView.cs: Implemented Paint method and fixed coding style.
36181 2004-10-15 07:34 jordi
36183 * MenuAPI.cs: fix for X11
36185 2004-10-15 07:32 ravindra
36187 * ButtonBase.cs, CheckBox.cs, RadioButton.cs:
36188 - Renamed Paint() method to Draw() for clarity. Also, moved
36189 DrawImage() to OnPaint().
36191 2004-10-15 07:25 ravindra
36193 * CheckBox.cs, RadioButton.cs:
36194 - Removed Redraw (), we get it from ButtonBase.
36195 - Implemented Paint (), to do class specific painting.
36197 2004-10-15 07:16 ravindra
36200 - Redraw () is not virtual now.
36201 - Added an internal virtual method Paint (), so that
36202 derived classes can do their painting on their own.
36203 - Modified OnPaint () to call Paint ().
36205 2004-10-15 06:43 jordi
36207 * ContextMenu.cs, DrawItemEventHandler.cs, Form.cs, MainMenu.cs,
36208 MenuAPI.cs, MenuItem.cs: menu work, mainmenu, subitems, etc
36210 2004-10-15 00:30 ravindra
36213 - MessageBox on windows does not have min/max buttons.
36214 This change in CreateParams fixes this on Windows. We
36215 still need to implement this windowstyle behavior in
36218 2004-10-14 05:14 ravindra
36221 - Changed Redraw () to do a Refresh () always.
36222 - Fixed the MouseMove event handling when mouse is pressed,
36223 ie drag event handling.
36224 - Replaced the usage of ToolBarButton.Pressed property to
36225 ToolBarButton.pressed internal variable.
36227 2004-10-14 05:10 ravindra
36229 * ToolBarButton.cs:
36230 - Added an internal member 'inside' to handle mouse move
36231 with mouse pressed ie mouse drag event.
36232 - Changed 'Pressed' property to return true only when
36233 'inside' and 'pressed' are both true.
36234 - Some coding style love.
36236 2004-10-14 00:17 ravindra
36238 * Form.cs: Fixed class signature. ShowDialog (Control) is not a
36241 2004-10-14 00:15 ravindra
36243 * ButtonBase.cs: Redraw () related improvements.
36245 2004-10-14 00:14 ravindra
36247 * MessageBox.cs: Moved InitFormSize () out of Paint method and
36248 removed unnecessary calls to Button.Show () method.
36250 2004-10-13 17:50 pbartok
36254 - Removed destroying of window until we solve the problem of X
36255 destroying the window before us on shutdown
36257 2004-10-13 16:32 pbartok
36260 - Now Redraws on MouseUp for FlatStyle Flat and Popup
36262 2004-10-13 14:18 pbartok
36265 - Added code to destroy the X window
36267 2004-10-13 14:18 pbartok
36270 - Added code to destroy a window
36272 2004-10-13 14:12 pbartok
36275 - Added the Redraw on Resize that got dropped in the last rev
36277 2004-10-13 09:06 pbartok
36279 * ThemeWin32Classic.cs:
36280 - Path from John BouAntoun:
36281 * Fix check rendering (centre correctly for normal style, offset
36282 correctly for FlatStyle).
36283 * Fix border color usage (use backcolor) for FlatStyle.Popup
36284 * Use checkbox.Capture instead of checkbox.is_pressed when
36285 rendering flatstyle states.
36287 2004-10-12 21:48 pbartok
36289 * ThemeWin32Classic.cs:
36290 - Removed all occurences of SystemColors and replaced them with the
36291 matching theme color
36293 2004-10-12 21:41 pbartok
36295 * ThemeWin32Classic.cs:
36296 - From John BouAntoun: Added an overload to CPDrawBorder3D to allow
36297 him using the function for flatstyle drawing
36298 - Changed functions to use the new version of CPDrawBorder3D
36300 2004-10-12 21:15 pbartok
36303 - Fixed Dark(), DarkDark(), Light() and LightLight() methods to
36304 match MS documentation. They need to return defined colors if the
36305 passed color matches the configured control color. Thanks to John
36306 BouAntoun for pointing this out.
36308 2004-10-12 20:57 pbartok
36311 - Fix from John BouAntoun: Raise ForeColorChanged event when text
36314 2004-10-12 20:46 pbartok
36317 - Fix from John BouAntoun: Now properly sets the Appearance property
36319 2004-10-12 20:45 pbartok
36321 * ThemeWin32Classic.cs:
36322 - Fixes from John BouAntoun: now handles forecolors and backcolors
36323 for flatstyle rendered controls much better; It also fixes normal
36324 checkbox rendering when pushed or disabled.
36326 2004-10-08 02:50 jordi
36328 * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: more menu
36331 2004-10-07 08:56 jordi
36333 * ThemeWin32Classic.cs: Removes deletion of cached brushes
36335 2004-10-06 03:59 jordi
36337 * Control.cs, StatusBar.cs, ThemeWin32Classic.cs, ToolBar.cs,
36338 XplatUIWin32.cs: removes warnings from compilation
36340 2004-10-05 12:23 jackson
36342 * RadioButton.cs: Fix ctor
36344 2004-10-05 11:10 pbartok
36347 - Partial implementation by Benjamin Dasnois
36349 2004-10-05 10:15 jackson
36351 * ThemeWin32Classic.cs: Improve rendering of the radio button patch
36354 2004-10-05 03:07 ravindra
36357 - Removed a private method, Draw ().
36358 - Fixed the ButtonDropDown event handling.
36359 - Fixed MouseMove event handling.
36361 2004-10-05 03:04 ravindra
36363 * ThemeWin32Classic.cs:
36364 - Added DrawListView method and ListViewDefaultSize property.
36365 - Changed ControlPaint method calls to CPDrawXXX wherever possible.
36366 - Changed DOS style CRLF to Unix format (dos2unix).
36368 2004-10-05 03:03 ravindra
36371 - Added DrawListView method and ListViewDefaultSize property.
36373 2004-10-05 02:42 ravindra
36375 * ToolBarButton.cs: Added an internal member dd_pressed to handle
36376 clicks on DropDown arrow.
36378 2004-10-04 22:56 jackson
36380 * ButtonBase.cs, Label.cs, MenuAPI.cs, ProgressBar.cs,
36381 ScrollBar.cs, StatusBar.cs, ToolBar.cs, TrackBar.cs: Let the base
36382 Control handle the buffers, derived classes should not have to
36383 CreateBuffers themselves.
36385 2004-10-04 21:20 jackson
36387 * StatusBar.cs: The control handles resizing the buffers now.
36389 2004-10-04 21:18 jackson
36391 * Control.cs: When resizing the buffers should be invalidated. This
36392 should be handled in Control not in derived classes.
36394 2004-10-04 14:45 jackson
36398 2004-10-04 02:14 pbartok
36400 * LeftRightAlignment.cs:
36403 2004-10-04 01:09 jordi
36405 * ThemeWin32Classic.cs: fixes right button position causing right
36406 button not showing on horizontal scrollbars
36408 2004-10-02 13:12 pbartok
36411 - Simplified the Invalidate method by using an X call instead of
36412 generating the expose ourselves
36413 - Added an expose when the window background is changed
36414 - Implemented ClientToScreen method
36416 2004-10-02 13:08 pbartok
36419 - Added Win32EnableWindow method (test for implementing modal
36421 - Added ClientToScreen method and imports
36423 2004-10-02 13:07 pbartok
36425 * XplatUI.cs, XplatUIDriver.cs:
36426 - Added ClientToScreen coordinate translation method
36428 2004-10-02 13:06 pbartok
36430 * KeyPressEventArgs.cs:
36431 - Fixed access level for constructor
36433 2004-10-02 13:06 pbartok
36436 - Changed access level for the window_collection hash table
36438 2004-10-02 13:05 pbartok
36441 - Added KeyPreview property
36442 - Added Menu property (still incomplete, pending Jordi's menu work)
36443 - Implemented ProcessCmdKey
36444 - Implemented ProcessDialogKey
36445 - Implemented ProcessKeyPreview
36447 2004-10-02 13:02 pbartok
36450 - Added private method to get the Control object from the window
36452 - Implemented ContextMenu property
36453 - Implemented PointToScreen
36454 - Implemented PreProcessMessage
36455 - Implemented IsInputChar
36456 - Implemented IsInputKey
36457 - Implemented ProcessCmdKey
36458 - Completed ProcessKeyEventArgs
36459 - Fixed message loop to call the proper chain of functions on key
36461 - Implemented ProcessDialogChar
36462 - Implemented ProcessDialogKey
36463 - Implemented ProcessKeyMessage
36464 - Implemented ProcessKeyPreview
36465 - Added RaiseDragEvent stub (MS internal method)
36466 - Added RaiseKeyEvent stub (MS internal method)
36467 - Added RaiseMouseEvent stub (MS Internal method)
36468 - Added RaisePaintEvent stub (MS Internal method)
36469 - Added ResetMouseEventArgs stub (MS Internal method)
36470 - Implemented RtlTranslateAlignment
36471 - Implemented RtlTranslateContent
36472 - Implemented RtlTranslateHorizontal
36473 - Implemented RtlTranslateLeftRight
36474 - Added generation of KeyPress event
36476 2004-10-02 05:57 ravindra
36478 * ListViewItem.cs: Added attributes.
36480 2004-10-02 05:32 ravindra
36482 * ListView.cs: Added attributes.
36484 2004-10-01 11:53 jackson
36486 * Form.cs: Implement the Close method so work on MessageBox can
36489 2004-09-30 14:06 pbartok
36494 2004-09-30 11:34 jackson
36496 * RadioButton.cs: Fix typo. Patch by John BouAntoun.
36498 2004-09-30 07:26 ravindra
36500 * ListViewItemConverter.cs: Converter for ListViewItem.
36502 2004-09-30 07:26 ravindra
36504 * SortOrder.cs: Enum for ListView control.
36506 2004-09-30 07:25 ravindra
36508 * ColumnHeader.cs: Supporting class for ListView control.
36510 2004-09-30 07:24 ravindra
36512 * ListView.cs, ListViewItem.cs: Initial implementation.
36514 2004-09-30 07:20 ravindra
36516 * ItemActivation.cs: Enum for ListView Control.
36518 2004-09-29 20:29 pbartok
36521 - Added lookup of pixel value for background color; tries to get a
36522 color 'close' to the requested color, it avoids having to create a
36523 colormap. Depending on the display this could mean the used color
36524 is slightly off the desired color. Might have to change it to a more
36525 resource intensive colormap approach, but it will work as a
36526 workaround to avoid red screens.
36528 2004-09-29 14:27 jackson
36530 * XplatUIX11.cs: Set the X DisplayHandle in System.Drawing
36532 2004-09-28 12:44 pbartok
36534 * ButtonBase.cs, CheckBox.cs, ControlPaint.cs, GroupBox.cs,
36535 HScrollBar.cs, Label.cs, LinkLabel.cs, Panel.cs, PictureBox.cs,
36536 ProgressBar.cs, RadioButton.cs, ScrollBar.cs, StatusBar.cs,
36537 Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs, ToolBar.cs,
36538 TrackBar.cs, VScrollBar.cs:
36539 - Streamlined Theme interfaces:
36540 * Each DrawXXX method for a control now is passed the object for
36541 the control to be drawn in order to allow accessing any state the
36542 theme might require
36544 * ControlPaint methods for the theme now have a CP prefix to avoid
36545 name clashes with the Draw methods for controls
36547 * Every control now retrieves it's DefaultSize from the current
36550 2004-09-28 12:17 jackson
36552 * Button.cs: Do not redraw OnClick MouseUp/Down will handle the
36555 2004-09-24 14:57 jackson
36557 * XplatUIX11.cs: Don't lock/enqueue/dequeue for unhandled messages.
36558 Gives us a nice little performance boost.
36560 2004-09-24 12:02 jackson
36562 * TabAlignment.cs, TabAppearance.cs, TabControl.cs, TabDrawMode.cs,
36563 TabPage.cs, TabSizeMode.cs: Partial implementation of the Tab
36564 Control and supporting classes. Initial checkin
36566 2004-09-23 13:08 jackson
36568 * Form.cs: Temp build fixage
36570 2004-09-23 01:39 ravindra
36572 * ItemChangedEventArgs.cs, ItemChangedEventHandler.cs,
36573 ItemCheckEventArgs.cs, ItemCheckEventHandler.cs,
36574 ItemDragEventArgs.cs, ItemDragEventHandler.cs,
36575 LabelEditEventArgs.cs, LabelEditEventHandler.cs: EventArgs and
36576 EventHandlers needed by ListView Control.
36578 2004-09-22 14:12 pbartok
36580 * ScrollableControl.cs:
36581 - Implemented DockPadding property
36582 - Implemented AutoScroll property
36583 - Implemented AutoScrollMargin property
36584 - Implemented AutoScrollMinSize property
36585 - Implemented AutoScrollPosition property
36586 - Implemented DisplayRectangle property (still incomplete)
36587 - Implemented CreateParams property
36588 - Implemented HScroll property
36589 - Implemented VScroll property
36590 - Implemented OnVisibleChanged property
36592 2004-09-22 14:09 pbartok
36595 - Added Form.ControllCollection class
36596 - Added handling for Form owners: Owner, OwnedForms, AddOwnedForm,
36597 RemoveOwnedForm (still incomplete, missing on-top and common
36598 minimize/maximize behaviour)
36599 - Added StartPosition property (still incomplete, does not use when
36601 - Added ShowDialog() methods (still incomplete, missing forcing the
36604 2004-09-22 14:05 pbartok
36607 - Added message loop for modal dialogs
36609 2004-09-22 14:02 pbartok
36612 - Fixed wrong types for events
36614 2004-09-22 14:00 pbartok
36616 * Shortcut.cs, FormWindowState.cs:
36617 - Fixed wrong values
36619 2004-09-22 12:01 jackson
36621 * Control.cs: Text is never null
36623 2004-09-20 22:14 pbartok
36626 - Fixed accessibility level for Idle handler
36628 2004-09-20 18:54 jackson
36630 * Application.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
36631 XplatUIX11.cs: New message loop that uses poll so we don't get a
36634 2004-09-17 10:43 pbartok
36637 - Fixed behaviour of arrow buttons. Now properly behaves like
36638 Buttons (and like Microsoft's scrollbar arrow buttons)
36640 2004-09-17 10:14 pbartok
36643 - Added missing release of keyboard/mouse capture
36645 2004-09-17 06:18 jordi
36647 * ContextMenu.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs,
36648 Theme.cs: Very early menu support
36650 2004-09-16 17:45 pbartok
36653 - Fixed sending a window to the front
36654 - Added overload for SetWindowPos to avoid casting
36656 2004-09-16 17:44 pbartok
36659 - Added SendToBack and BringToFront methods
36661 2004-09-16 07:00 ravindra
36663 * Copyright: Added Novell URL.
36665 2004-09-16 07:00 ravindra
36667 * ToolBar.cs: Invalidate should be done before redrawing.
36669 2004-09-15 21:19 ravindra
36671 * ColumnHeaderStyle.cs: Enum for ListView Control.
36673 2004-09-15 21:18 ravindra
36675 * ColumnClickEventArgs.cs, ColumnClickEventHandler.cs: Event for
36678 2004-09-13 18:26 jackson
36680 * Timer.cs, XplatUIX11.cs: Remove test code so timers are updated
36683 2004-09-13 18:13 jackson
36685 * Timer.cs, X11Structs.cs, XplatUIX11.cs: Timers are now handled in
36686 a second thread and post messages into the main threads message
36687 queue. This makes timing much more consistent. Both win2K and XP
36688 have a minimum timer value of 15 milliseconds, so we now do this
36691 2004-09-13 15:18 pbartok
36693 * X11Structs.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
36695 - Added Z-Ordering methods
36697 2004-09-13 10:56 pbartok
36700 - Fixed #region names
36701 - Moved properties and methods into their proper #regions
36703 2004-09-13 10:51 pbartok
36706 - Added Accept and CancelButton properties
36707 - Added ProcessDialogKey() method
36709 2004-09-13 08:18 pbartok
36711 * IWindowTarget.cs:
36714 2004-09-10 21:50 pbartok
36717 - Added DoDragDrop() [incomplete]
36718 - Properly implemented 'Visible' handling
36719 - Added SetVisibleCore()
36720 - Implemented FindChildAtPoint()
36721 - Implemented GetContainerControl()
36722 - Implemented Hide()
36724 2004-09-10 19:28 pbartok
36727 - Moved methods into their appropriate #regions
36728 - Reordered methods within regions alphabetically
36730 2004-09-10 18:57 pbartok
36732 * XplatUIX11.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
36733 - Added method to retrieve text from window
36735 2004-09-10 18:56 pbartok
36738 - Moved some internal functions into the internal region
36739 - Implemented FontHeight
36740 - Implemented RenderRightToLeft
36741 - Implemented ResizeRedraw
36742 - Implemented ShowFocusCues
36743 - Implemented ShowKeyboardCues
36744 - Implemented FromChildHandle
36745 - Implemented FromHandle
36746 - Implemented IsMnemonic
36747 - Implemented ReflectMessage
36748 - All public and protected Static Methods are now complete
36750 2004-09-10 16:54 pbartok
36753 - Implemented remaining missing public instance properties
36754 - Alphabetized some out of order properties
36756 2004-09-10 05:51 ravindra
36758 * PictureBox.cs: Added a check for null image.
36760 2004-09-10 00:59 jordi
36762 * GroupBox.cs: remove cvs tag
36764 2004-09-09 05:25 ravindra
36766 * ToolBar.cs: Make redraw accessible from ToolBarButton.
36768 2004-09-09 05:23 ravindra
36770 * ToolBarButton.cs: Changes in ToolBarButton need to make it's
36773 2004-09-09 02:28 pbartok
36775 * ThemeWin32Classic.cs:
36776 - Improve disabled string look
36778 2004-09-09 01:15 jordi
36780 * MeasureItemEventArgs.cs, MeasureItemEventHandler.cs: measureitem
36783 2004-09-08 23:56 ravindra
36785 * ItemBoundsPortion.cs: It's enum, not a class!
36787 2004-09-08 23:47 ravindra
36789 * FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs:
36792 2004-09-08 21:13 ravindra
36794 * ItemBoundsPortion.cs, ListViewAlignment.cs, View.cs: Enums for
36797 2004-09-08 21:03 ravindra
36799 * ThemeWin32Classic.cs: PictureBox would not draw a null image to
36802 2004-09-08 21:01 ravindra
36804 * ScrollableControl.cs: Removed unreachable code.
36806 2004-09-08 06:45 jordi
36808 * MenuMerge.cs, Shortcut.cs: enumerations need it by menus
36810 2004-09-08 01:00 jackson
36812 * XplatUIX11.cs: Only run the timers when updating the message
36813 queue. This effectively gives X messages a higher priority then
36814 timer messages. Timers still need love though
36816 2004-09-07 14:01 jackson
36818 * XplatUIX11.cs: Do not call XDestroyWindow, X has already done
36819 this for us and the handle is no longer valid.
36821 2004-09-07 13:59 jackson
36823 * HandleData.cs, XplatUIX11.cs: First steps towards a new X event
36824 loop that manages to not crash. TODO: Add poll and cleanup timers
36826 2004-09-07 11:12 jordi
36828 * GroupBox.cs, Theme.cs, ThemeWin32Classic.cs: GroupBox control
36830 2004-09-07 03:40 jordi
36832 * Label.cs, LinkLabel.cs, Theme.cs, ThemeWin32Classic.cs: LinkLabel
36833 fixes, methods, multiple links
36835 2004-09-06 06:55 jordi
36837 * Control.cs: Caches ClientRectangle rectangle value
36839 2004-09-05 02:03 jordi
36841 * ScrollBar.cs, ThemeWin32Classic.cs: fixes bugs, adds flashing on
36844 2004-09-04 11:10 jordi
36846 * Label.cs: Refresh when font changed
36848 2004-09-02 16:24 pbartok
36851 - Added sanity check to creation of double buffer bitmap
36853 2004-09-02 16:24 pbartok
36856 - Fixed selection of text color
36857 - Fixed handling of resize event; now properly recreates double
36859 - Added missing assignment of TextAlignment
36860 - Added proper default for TextAlignment
36862 2004-09-02 14:26 pbartok
36865 - Added missing RadioButton.RadioButtonAccessibleObject class
36867 2004-09-02 14:26 pbartok
36870 - Added missing Control.ControlAccessibleObject class
36871 - Started to implement Select()ion mechanisms, still very incomplete
36873 2004-09-02 14:25 pbartok
36875 * AccessibleObject.cs:
36876 - Added missing methods
36878 2004-09-02 14:23 pbartok
36880 * AccessibleNavigation.cs, AccessibleSelection.cs:
36883 2004-09-02 10:32 jordi
36885 * Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: implements resource
36886 pool for pens, brushes, and hatchbruses
36888 2004-09-01 15:30 jackson
36890 * StatusBar.cs: Fix typo
36892 2004-09-01 14:44 pbartok
36897 2004-09-01 14:39 pbartok
36899 * Button.cs, RadioButton.cs:
36900 - Functional initial check-in
36902 2004-09-01 14:01 pbartok
36905 - Added missing default
36906 - Added missing region mark
36908 2004-09-01 09:10 jordi
36910 * Label.cs: fixes method signatures, new methods, events, fixes
36913 2004-09-01 07:19 jordi
36915 * Control.cs: Init string variables with an empty object
36917 2004-09-01 04:20 jordi
36919 * Control.cs: fires OnFontChanged event
36921 2004-08-31 20:07 pbartok
36924 - Enabled display of strings
36926 2004-08-31 20:05 pbartok
36929 - Added (partial) implementation of DialogResult; rest needs to be
36930 implemented when the modal loop code is done
36932 2004-08-31 19:55 pbartok
36935 - Fixed to match the removal of the needs_redraw concept
36937 2004-08-31 19:55 pbartok
36940 - Removed the rather odd split between 'needs redraw' and redrawing
36941 - Now handles the events that require regeneration (ambient
36942 properties and size)
36944 2004-08-31 19:41 pbartok
36947 - Added firing of BackColorChanged event
36948 - Added TopLevelControl property
36949 - Fixed handling of WM_ERASEBKGRND message
36951 2004-08-31 12:49 pbartok
36957 2004-08-31 12:48 pbartok
36960 - Finished (famous last words)
36962 2004-08-31 04:35 jordi
36964 * ScrollBar.cs: adds autorepeat timer, uses a single timer, fixes
36965 scrolling bugs, adds new methods
36967 2004-08-30 14:42 pbartok
36970 - Implemented CheckBox drawing code
36972 2004-08-30 14:42 pbartok
36975 - Made Redraw() and CheckRedraw() virtual
36976 - Improved mouse up/down/move logic to properly track buttons
36978 2004-08-30 09:44 pbartok
36981 - Updated to fix broken build. Not complete yet.
36983 2004-08-30 09:28 pbartok
36988 2004-08-30 09:17 pbartok
36993 2004-08-27 16:12 ravindra
36995 * ToolBarButton.cs: Added TypeConverter attribute.
36997 2004-08-27 16:07 ravindra
36999 * ImageIndexConverter.cs: Implemented.
37001 2004-08-27 14:17 pbartok
37004 - Removed unneeded stack vars
37005 - First attempt to fix sizing issues when layout is suspended
37007 2004-08-25 15:35 jordi
37009 * ScrollBar.cs: more fixes to scrollbar
37011 2004-08-25 14:04 ravindra
37013 * Theme.cs, ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs:
37014 Added the missing divider code and grip for ToolBar Control.
37016 2004-08-25 13:20 pbartok
37019 - Control now properly passes the ambient background color to child
37022 2004-08-25 13:20 jordi
37024 * ScrollBar.cs: small bug fix regarding bar position
37026 2004-08-25 12:33 pbartok
37029 - Now only calls SetTimer or KillTimer if the enabled state has
37032 2004-08-25 12:33 pbartok
37035 - Fixed timer handling, now seems to work
37036 - Improved error message for window creation
37038 2004-08-25 12:32 pbartok
37041 - Fixed generation of MouseUp message
37043 2004-08-25 12:29 jordi
37045 * ProgressBar.cs, ThemeWin32Classic.cs: new methods, properties,
37046 and fixes for progressbar
37048 2004-08-24 18:43 ravindra
37050 * ThemeWin32Classic.cs, ToolBar.cs: Fixed wrapping related issues
37051 in ToolBar control.
37053 2004-08-24 17:15 pbartok
37057 - Added missing events
37060 2004-08-24 17:14 pbartok
37062 * StatusBar.cs, PictureBox.cs:
37063 - Now uses Control's CreateParams
37065 2004-08-24 16:36 pbartok
37068 - Fixed background color handling
37069 - Fixed sending of enter/leave events on a grab
37071 2004-08-24 16:35 pbartok
37074 - Refined definitions for CrossingEvent
37076 2004-08-24 12:37 jordi
37078 * ScrollBar.cs, Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: fixes
37079 formmating, methods signature, and adds missing events
37081 2004-08-24 12:24 jordi
37083 * Control.cs: fire OnEnabledChanged event
37085 2004-08-24 11:17 pbartok
37088 - Implemented SetTimer() and KillTimer()
37090 2004-08-24 11:16 pbartok
37093 - Now uses Remove instead of Add to kill the timer
37095 2004-08-24 10:16 jackson
37097 * PictureBox.cs, Theme.cs, ThemeWin32Classic.cs: Handle drawing
37098 picture boxes in the theme now. Draw picture box borders and obey
37101 2004-08-24 05:49 jackson
37103 * Timer.cs: Remove top secret debugging code
37105 2004-08-24 05:34 jackson
37107 * PictureBox.cs: Temp hack to make picture boxes draw their full
37110 2004-08-24 05:29 jackson
37112 * Timer.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
37113 XplatUIX11.cs: Move timers to the driver level. On X they are
37114 queued by the driver and checked on idle.
37116 2004-08-24 01:07 jackson
37118 * XplatUIX11.cs: Use a queue for async messages instead of passing
37119 them as ClientMessages since that was totally broken. Also simply
37120 check for events and return an idle message if none are found. This
37121 gives us an idle handler, and prevents deadlocking when no messages
37124 2004-08-23 18:19 ravindra
37126 * XplatUIWin32.cs: Removed the unwanted destructor.
37128 2004-08-23 17:27 pbartok
37131 - Finishing touches. Works now, just needs some optimizations.
37133 2004-08-23 16:53 jordi
37135 * ScrollBar.cs: small fix
37137 2004-08-23 16:45 pbartok
37140 - Removed debug output
37143 2004-08-23 16:43 jordi
37145 * ScrollBar.cs: [no log message]
37147 2004-08-23 16:10 pbartok
37150 - Fixed handling of WM_CLOSE message
37151 - Removed debug output
37153 2004-08-23 16:09 pbartok
37156 - Added handling of Idle event
37157 - Added handling of form closing
37158 - Fixed reporting of MessageLoop property
37159 - Removed some unneeded code, should provide a bit of a speedup
37161 2004-08-23 15:22 pbartok
37164 - Added InitLayout() method
37165 - Added code to properly perform layout when Anchor or Dock property
37167 - Changed 'interpretation' of ResumeLayout. MS seems to have a
37168 LAMESPEC, tried to do it in a way that makes sense
37170 2004-08-23 14:10 jordi
37172 * HScrollBar.cs, ScrollBar.cs, TrackBar.cs, VScrollBar.cs: fixes
37173 properties and methods
37175 2004-08-23 13:55 pbartok
37178 - Properly fixed Jordi's last fix
37179 - Now uses Cursor's Position property instead of calling XplatUI
37182 2004-08-23 13:44 jordi
37184 * PaintEventHandler.cs: Adding missing attribute
37186 2004-08-23 13:39 pbartok
37189 - Implemented Position property
37191 2004-08-23 13:39 pbartok
37193 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
37194 - Added method to move mouse cursor
37196 2004-08-23 13:39 pbartok
37199 - Fixed setting of background color
37200 - Added method to move mouse cursor
37202 2004-08-23 13:16 jordi
37204 * Control.cs: avoids null exception
37206 2004-08-22 17:46 jackson
37208 * PictureBox.cs, PictureBoxSizeMode.cs: Initial implementation of
37211 2004-08-22 17:40 jackson
37213 * XplatUIX11.cs: Add some missing locks
37215 2004-08-22 15:10 pbartok
37217 * Control.cs, Form.cs:
37218 - Removed OverlappedWindow style from Control, instead it's default
37220 - Made form windows OverlappedWindow by default
37222 2004-08-22 13:34 jackson
37224 * ScrollBar.cs: Update the position through the Value property so
37225 the OnValueChanged event is raised.
37227 2004-08-22 12:04 pbartok
37230 - Added Cursor.cs and UserControl.cs
37232 2004-08-22 12:03 pbartok
37235 - Started implementation, not usable yet
37237 2004-08-22 12:00 pbartok
37240 - Implemented UserControl (complete)
37242 2004-08-21 19:20 ravindra
37244 * ToolBar.cs: Correcting the formatting mess of VS.NET.
37246 2004-08-21 18:49 ravindra
37248 * ToolBar.cs: Probably this completes the missing attributes in
37251 2004-08-21 18:03 ravindra
37253 * ToolBar.cs, ToolBarButton.cs, ToolBarButtonClickEventArgs.cs:
37254 Fixed toolbar control signatures.
37256 2004-08-21 16:32 pbartok
37261 2004-08-21 16:30 pbartok
37266 2004-08-21 16:19 pbartok
37268 * Control.cs, Label.cs:
37271 2004-08-21 15:57 pbartok
37274 - Added loads of debug output for development
37275 - Fixed typo in method name
37277 2004-08-21 15:52 pbartok
37279 * ToolBarButtonClickEventArgs.cs:
37280 - Added missing base class
37282 2004-08-21 14:53 pbartok
37285 - Updated to match new GrabWindow signature
37287 2004-08-21 14:51 pbartok
37289 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
37290 - Added method to get default display size
37292 2004-08-21 14:23 pbartok
37294 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
37295 - Added method to query current grab state
37296 - Added argument to allow confining a grab to a window
37298 2004-08-21 14:22 pbartok
37301 - Added [Flags] attribute so that modifiers can be used in bitwise
37304 2004-08-21 14:21 pbartok
37306 * TrackBar.cs, ScrollBar.cs:
37307 - Replaced direct XplatUI calls with their Control counterpart
37309 2004-08-21 13:32 pbartok
37312 - Implemented Created property
37314 2004-08-21 13:28 pbartok
37317 - Implemented ContainsFocus
37319 2004-08-21 13:26 pbartok
37322 - Implemented CausesValidation
37324 2004-08-21 13:21 pbartok
37327 - Implemented CanFocus
37328 - Implemented CanSelect
37329 - Implemented Capture
37331 2004-08-21 12:35 pbartok
37334 - Fixed bug with Async message handling
37335 - Implemented getting the ModifierKeys
37337 2004-08-21 12:32 jackson
37339 * AsyncMethodResult.cs: Make sure we have the mutex before we
37340 release it. Fixes BeginInvoke on windows
37342 2004-08-21 11:31 pbartok
37344 * XplatUIWin32.cs, XplatUIX11.cs:
37345 - Drivers now return proper mouse state
37347 2004-08-21 10:54 jackson
37349 * Control.cs: Implement EndInvoke
37351 2004-08-21 10:48 jackson
37353 * Timer.cs: Remove unneeded finalizer
37355 2004-08-20 19:52 ravindra
37357 * ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs: Improvments
37358 in mouse event handling in the ToolBar control.
37360 2004-08-20 19:50 ravindra
37362 * ImageList.cs: Changed draw method to use the arguments passed in
37365 2004-08-20 18:58 pbartok
37367 * XplatUIStructs.cs:
37368 - Added private message for async communication
37370 2004-08-20 17:38 ravindra
37372 * Control.cs: Made RightToLeft property virtual and removed a
37375 2004-08-20 14:39 jordi
37377 * ThemeGtk.cs: use style_attach
37379 2004-08-20 14:39 pbartok
37382 - Added jackson's Async code from X11 to Win32
37384 2004-08-20 14:09 pbartok
37387 - Added all new files
37389 2004-08-20 14:09 pbartok
37392 - Added call to set window background color
37394 2004-08-20 14:03 pbartok
37396 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
37397 - Added method for setting the window background
37399 2004-08-20 14:02 pbartok
37402 - Added method for setting the background color
37403 - Added handling for erasing the window background
37405 2004-08-20 13:45 jordi
37407 * TrackBar.cs: fixes timer, new properties and methods
37409 2004-08-20 13:34 jackson
37411 * ScrollBar.cs: Use the SWF timer so callbacks are run in the
37414 2004-08-20 13:22 jackson
37416 * Timer.cs: Timer Tick events are now handed through Controls Async
37417 mechanism so the callbacks are executed in the same thread as X
37419 2004-08-20 13:19 jackson
37421 * XplatUIDriver.cs: Expose functionality to send async messages
37424 2004-08-20 13:18 jackson
37426 * Control.cs: Implement Begininvoke
37428 2004-08-20 13:14 jackson
37430 * XplatUI.cs, XplatUIWin32.cs: Expose functionality to send async
37431 messages through the driver
37433 2004-08-20 13:12 jackson
37435 * XplatUIX11.cs: Lock before all X operations. Also added Async
37436 method functionality through XSendEvent
37438 2004-08-20 13:11 jackson
37440 * X11Structs.cs: Use IntPtrs for ClientMessage extra data (TODO:
37441 This will screw up on 64 bit systems)
37443 2004-08-20 13:10 jackson
37445 * AsyncMethodData.cs, AsyncMethodResult.cs: Classes for sending
37446 Async messages through X/Win32
37448 2004-08-19 19:39 pbartok
37451 - Updated code to match new HandleData.DeviceContext type
37453 2004-08-19 19:38 pbartok
37456 - Made DeviceContext a generic object to allow usage from various
37458 - Added support for queueing Windows messages
37460 2004-08-19 19:37 pbartok
37463 - Added generation of MouseEnter, MouseLeave and MouseHover events
37464 - Added cleanup on EndPaint
37466 2004-08-19 19:17 pbartok
37469 - Added handling of WM_MOUSEHOVER
37470 - Worked around 'bug' in Win32 WM_MOUSE_ENTER/WM_MOUSE_LEAVE driver
37473 2004-08-19 18:55 jordi
37475 * ThemeGtk.cs: fixes button order
37477 2004-08-19 18:12 jordi
37479 * Theme.cs, ThemeWin32Classic.cs: fixes methods signature
37481 2004-08-19 17:09 pbartok
37484 - Added Right property
37485 - Added RightToLeft property
37487 2004-08-19 16:27 jordi
37489 * ThemeGtk.cs: experimental GTK theme support
37491 2004-08-19 16:26 jordi
37493 * ITheme.cs, Theme.cs: move themes from an interface to a class
37495 2004-08-19 16:25 jordi
37497 * Control.cs, ScrollBar.cs, ThemeEngine.cs, ThemeWin32Classic.cs:
37500 2004-08-19 16:04 pbartok
37503 - Added colormap basics
37504 - Added a way to re-initialize with a different display handle
37505 - Fixed setting of the window background color
37506 - Added various X11 imports related to colors and colormaps
37508 2004-08-19 15:51 pbartok
37511 - Removed packing hints (Paolo suggested this a while back)
37512 - fixed colormap type
37513 - Added default Atom types
37514 - Added Screen and color structs and enums
37516 2004-08-19 15:39 pbartok
37519 - Added missing Draw() method
37520 - Added missing RecreateHandle event
37522 2004-08-19 15:30 pbartok
37525 - Added handling of WM_CLOSE
37527 2004-08-18 13:16 jordi
37529 * ITheme.cs, ThemeWin32Classic.cs, XplatUIWin32.cs: Move colors to
37532 2004-08-18 09:56 jordi
37534 * ScrollBar.cs: fixes to scrollbar: steps and multiple timers
37536 2004-08-17 15:31 ravindra
37538 * SWF.csproj: Updated project.
37540 2004-08-17 15:25 pbartok
37543 - Drawing improvement; don't call UpdateBounds if we are not visible
37544 (or have been minimized)
37546 2004-08-17 15:24 pbartok
37549 - Finished IsVisible
37550 - Added Win32GetWindowPlacement
37552 2004-08-17 15:08 jackson
37554 * Panel.cs: Initial checkin of the Panel
37556 2004-08-17 14:25 pbartok
37559 - Fixed broken handling of default window sizes
37561 2004-08-17 13:29 jackson
37563 * ThemeWin32Classic.cs: Don't use KnownColor to create colours. It
37564 has a large startup time.
37566 2004-08-17 10:25 jackson
37568 * HandleData.cs: union areas properly
37570 2004-08-17 10:12 jackson
37572 * HandleData.cs: union areas properly
37574 2004-08-16 20:00 ravindra
37576 * ToolBar.cs, ToolBarButton.cs: Added attributes.
37578 2004-08-16 18:48 ravindra
37580 * ToolBar.cs: Added attributes.
37582 2004-08-16 17:17 ravindra
37584 * SWF.csproj: Updated project.
37586 2004-08-16 17:16 jackson
37588 * XplatUIX11.cs: Check for more expose events before sending a
37589 WM_PAINT so they can all be grouped together. This makes dragging a
37590 window across another window redraw in a sane way.
37592 2004-08-16 15:47 pbartok
37595 - Added handling of WM_MOUSE_ENTER & WM_MOUSE_LEAVE to
37596 support OnMouseEnter/Leave()
37597 - Added WS_CLIPSIBLINGS and WS_CLIPCHILDREN window styles to improve
37600 2004-08-16 15:46 pbartok
37602 * XplatUIStructs.cs, XplatUIX11.cs:
37603 - Added WM_MOUSE_ENTER & WM_MOUSE_LEAVE to support
37604 OnMouseEnter/Leave()
37606 2004-08-16 15:34 jackson
37608 * XplatUIX11.cs: Group multiple expose events in HandleData, make
37609 sure messages get the message field set to WM_NULL if they are not
37612 2004-08-16 15:24 jackson
37614 * HandleData.cs: HandleData is used for storing message information
37617 2004-08-15 17:23 ravindra
37619 * ColorDepth.cs: Added attribute.
37621 2004-08-15 17:23 ravindra
37623 * SWF.csproj: Updated project for ToolBar Control.
37625 2004-08-15 17:20 ravindra
37627 * ITheme.cs, ThemeWin32Classic.cs: Changes to Theme for ToolBar
37628 control and also dos2unix format.
37630 2004-08-15 17:13 ravindra
37632 * ToolBar.cs, ToolBarAppearance.cs, ToolBarButton.cs,
37633 ToolBarButtonClickEventArgs.cs,
37634 ToolBarButtonClickEventHandler.cs, ToolBarButtonStyle.cs,
37635 ToolBarTextAlign.cs: First Implementation of ToolBar control.
37637 2004-08-15 15:31 pbartok
37640 - First (mostly) working version
37642 2004-08-13 16:15 pbartok
37645 - Fixed Anchor default
37647 2004-08-13 15:43 pbartok
37650 - Changed GetCursorPos signature
37652 2004-08-13 15:42 pbartok
37654 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
37655 - Changed signature for GetCursorPos
37657 2004-08-13 15:25 pbartok
37661 - Fixed resizing/exposure handling
37663 2004-08-13 15:22 jordi
37665 * ThemeWin32Classic.cs: removes redundant code and fixes issues
37668 2004-08-13 14:55 jordi
37670 * TrackBar.cs: change from wndproc to events
37672 2004-08-13 13:00 jordi
37674 * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
37675 XplatUIX11.cs: implements PointToClient (ScreenToClient)
37677 2004-08-13 12:53 pbartok
37680 - Changed GetWindowPos to also provide client area size
37681 - Fixed broken prototypes for several win32 functions
37683 2004-08-13 12:53 pbartok
37685 * XplatUI.cs, XplatUIDriver.cs:
37686 - Changed GetWindowPos to also provide client area size
37688 2004-08-13 12:52 pbartok
37691 - Added generation of WM_POSCHANGED
37692 - Changed GetWindowPos to also provide client area size
37694 2004-08-13 12:52 pbartok
37697 - Added Dispose() and destructor
37698 - Fixed resizing and bounds calculation
37700 - Added memory savings for invisible windows
37702 2004-08-13 12:46 jordi
37704 * TrackBar.cs: adds timer and grap window
37706 2004-08-13 10:25 jackson
37708 * Timer.cs: SWF Timer
37710 2004-08-12 16:59 pbartok
37712 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
37713 - Implemented method to get current mouse position
37715 2004-08-12 14:29 jordi
37717 * ITheme.cs, ThemeWin32Classic.cs, TrackBar.cs: Trackbar
37718 enhancement, fix mouse problems, highli thumb, etc
37720 2004-08-12 13:31 pbartok
37723 - Fixed Anchoring bugs
37725 2004-08-12 13:01 jackson
37727 * StatusBar.cs: Don't forget things
37729 2004-08-12 12:54 jackson
37731 * ThemeWin32Classic.cs: Handle owner draw status bars
37733 2004-08-12 12:54 jackson
37735 * StatusBar.cs: Implement missing properties, events, and methods.
37736 Handle mouse clicking
37738 2004-08-12 10:19 jackson
37740 * StatusBarPanelClickEventArgs.cs,
37741 StatusBarPanelClickEventHandler.cs: Classes for handling status
37742 bar panel click events
37744 2004-08-12 10:10 jackson
37746 * Control.cs: Add missing properties
37748 2004-08-12 09:46 pbartok
37750 * BindingsManagerBase.cs:
37751 - Name changed to BindingManagerBase.cs
37753 2004-08-12 09:25 jordi
37755 * ScrollableControl.cs: calls ctrlbase instead of exeception
37757 2004-08-11 16:28 pbartok
37759 * InputLanguageChangingEventArgs.cs:
37760 - Never check in before compiling. Fixes the last check-in
37762 2004-08-11 16:26 pbartok
37764 * InputLanguageChangingEventArgs.cs:
37765 - More signature fixes
37767 2004-08-11 16:20 pbartok
37769 * BindingManagerBase.cs, BindingMemberInfo.cs, ContainerControl.cs,
37770 Control.cs, ControlEventArgs.cs, ControlPaint.cs, Form.cs,
37771 ImageListStreamer.cs, InputLanguage.cs,
37772 InputLanguageChangedEventArgs.cs,
37773 InputLanguageChangingEventArgs.cs, Keys.cs, LayoutEventArgs.cs,
37774 LinkArea.cs, Message.cs, MouseEventArgs.cs, NativeWindow.cs,
37775 ScrollEventArgs.cs, ScrollableControl.cs, XplatUI.cs,
37776 XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
37779 2004-08-11 16:16 pbartok
37783 - Added .Net 1.1 method
37785 2004-08-11 15:25 pbartok
37788 - Fixed BindingManagerBase.cs filename
37790 2004-08-11 15:22 pbartok
37792 * BindingManagerBase.cs:
37793 - Was checked in with wrong filename
37795 2004-08-11 14:50 pbartok
37800 2004-08-11 13:41 jordi
37802 * XplatUIWin32.cs: Fixes ClientRect
37804 2004-08-11 13:19 pbartok
37806 * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
37808 - We had SetWindowPos and MoveWindow to set window positions and
37809 size, removed MoveWindow. We have GetWindowPos, so it made sense to
37810 keep SetWindowPos as matching counterpart
37811 - Added some X11 sanity checking
37813 2004-08-11 12:59 pbartok
37816 - Major cleanup of my SetBounds/SetBoundsCore/UpdateBounds mess
37817 (It seems that SetBounds is just a front for SetBoundsCore and
37818 SetBoundsCore updates the underlying window system and
37819 UpdateBounds is responsible for updating the variables associated
37820 with the Control and sending the events)
37821 - Major cleanup of Size handling; we now have two sizes, client_size
37822 and bounds. Bounds defines the window with decorations, client_size
37825 2004-08-11 12:55 pbartok
37827 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
37828 - Added method to calculate difference between decorated window and
37831 2004-08-11 12:54 pbartok
37834 - Forcing redraw on resize
37836 2004-08-11 11:43 pbartok
37839 - Removed disposing of the actual images when the list is disposed
37841 2004-08-11 09:13 pbartok
37844 - Now properly reparents windows
37846 2004-08-11 08:37 pbartok
37851 2004-08-11 07:47 pbartok
37854 - Rewrote the collection stuff. Might not be as fast now, not
37855 keeping the number of children around and accessible directly, but
37856 it's more straightforward
37858 2004-08-11 07:44 pbartok
37860 * AccessibleObject.cs:
37861 - Fixed to match ControlCollection rewrite
37863 2004-08-11 07:43 pbartok
37866 - Added missing creation of the collection list
37868 2004-08-10 20:08 jackson
37870 * StatusBar.cs: Get the paint message from WndProc
37872 2004-08-10 19:31 jackson
37874 * ThemeWin32Classic.cs: Create Brushes as little as possible
37876 2004-08-10 19:20 jackson
37878 * UICues.cs: Add Flags attribute
37880 2004-08-10 19:19 jackson
37882 * StatusBarPanel.cs: Signature cleanup
37884 2004-08-10 19:10 jackson
37886 * StatusBarDrawItemEventArgs.cs, StatusBarDrawItemEventHandler.cs:
37887 Initial implementation of status bar item drawing
37889 2004-08-10 17:27 jordi
37891 * TrackBar.cs: add missing methods, properties, and restructure to
37894 2004-08-10 16:24 jackson
37896 * AccessibleStates.cs, Border3DSide.cs, Border3DStyle.cs,
37897 ButtonState.cs, ControlStyles.cs, DragDropEffects.cs: Add flags
37900 2004-08-10 13:21 jordi
37902 * ITheme.cs, ScrollBar.cs, ThemeWin32Classic.cs: scrollbar
37903 enhancements and standarize on win colors defaults
37905 2004-08-10 12:52 jackson
37907 * DrawItemEventArgs.cs, DrawItemState.cs, ITheme.cs,
37908 ThemeWin32Classic.cs: Implement DrawItem functionality
37910 2004-08-10 12:47 jordi
37912 * XplatUIWin32.cs: Calls InvalidateRect before UpdateWindow
37914 2004-08-10 12:32 jordi
37916 * Control.cs: throw ontextchange event
37918 2004-08-10 11:43 pbartok
37921 - Added more to the still unfinished Dock/Anchor layout code
37923 2004-08-10 11:39 pbartok
37925 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
37926 - Added GetWindowPos method
37928 2004-08-10 11:36 pbartok
37931 - Implemented several methods
37933 2004-08-10 09:47 jackson
37935 * TrackBar.cs: Allow control to handle buffering
37937 2004-08-10 09:41 jackson
37939 * ProgressBar.cs, ScrollBar.cs: Allow control to handle buffering
37941 2004-08-10 09:24 jackson
37943 * Label.cs, LinkLabel.cs: Let Control handle buffering.
37945 2004-08-10 09:09 jackson
37947 * StatusBar.cs: Let Control handle all the buffering.
37949 2004-08-10 09:08 jackson
37951 * Control.cs: Control will now handle the buffering code, so each
37952 control does not have to implement this.
37954 2004-08-10 08:34 jackson
37956 * XplatUIDriver.cs: Use default colors from the theme
37958 2004-08-09 17:12 pbartok
37961 - Fixed several bugs Ravindra pointed out
37963 2004-08-09 16:11 pbartok
37966 - Added incomplete dock layout code
37967 - Added support for mouse wheel
37969 2004-08-09 16:09 pbartok
37972 - Added handling for middle and right mousebutton
37973 - Added handling for mouse wheel
37974 - Added handling for key state and mouse state and position
37975 - Now properly generates WM_xBUTTONx messages and WM_MOUSEWHEEL
37978 2004-08-09 15:40 jackson
37980 * StatusBarPanel.cs, StatusBarPanelAutoSize.cs,
37981 StatusBarPanelBorderStyle.cs, StatusBarPanelStyle.cs: Initial
37984 2004-08-09 15:37 jackson
37986 * StatusBar.cs: Initial implementation of StatusBar
37988 2004-08-09 15:36 jackson
37990 * ITheme.cs: Add support for drawing status bar and getting status
37993 2004-08-09 15:35 pbartok
37998 2004-08-09 15:34 jackson
38000 * ThemeWin32Classic.cs: Add support for drawing status bar and get
38001 status bar item sizes
38003 2004-08-09 15:21 jackson
38005 * ThemeWin32Classic.cs: Use known colors for default control
38008 2004-08-09 15:12 jackson
38010 * ThemeWin32Classic.cs: Make the default font static, it is static
38011 in control so this doesn't change functionality and creating fonts
38014 2004-08-09 14:56 pbartok
38017 - Added GrabMode enum
38019 2004-08-09 14:55 pbartok
38021 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
38022 - Removed Run method, was only required for initial development
38024 2004-08-09 14:51 pbartok
38026 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
38027 - Implemented GrabWindow/ReleaseWindow methods to allow pointer
38030 2004-08-09 13:48 pbartok
38033 - Fixed default sizing for child windows
38035 2004-08-09 12:56 pbartok
38038 - Added generation of WM_DESTROY message
38039 - Added handling of window manager induced shutdown
38041 2004-08-09 11:31 jackson
38043 * ThemeWin32Classic.cs: New names for control properties
38045 2004-08-09 11:25 jackson
38047 * Control.cs: Use new color names
38049 2004-08-09 11:02 jackson
38051 * XplatUI.cs: Get default window properties from the theme
38053 2004-08-09 11:01 jackson
38055 * ITheme.cs: The theme engine now controls default window
38058 2004-08-09 11:00 jackson
38060 * ThemeWin32Classic.cs: Add default window color properties
38062 2004-08-09 10:17 jackson
38064 * ThemeWin32Classic.cs: Use correct default back color
38066 2004-08-09 10:05 jackson
38068 * XplatUIWin32.cs, XplatUIX11.cs: These properties are handled by
38071 2004-08-09 09:56 jackson
38073 * XplatUI.cs: Remove defaults, these are handled by the theme now.
38075 2004-08-09 09:54 jackson
38077 * Control.cs: Get default properties from the theme.
38079 2004-08-09 09:53 jackson
38081 * ITheme.cs: Themes now handle default control properties
38083 2004-08-09 09:53 jackson
38085 * ThemeWin32Classic.cs: Themes now handle default control
38086 properties so coloring will be consistent
38088 2004-08-08 16:54 jordi
38090 * ITheme.cs, ThemeWin32Classic.cs: Label BorderStyles
38092 2004-08-08 15:08 jordi
38094 * XplatUIX11.cs: fixes keyboard crash
38096 2004-08-08 13:47 jordi
38098 * Label.cs: add cvs header info
38100 2004-08-08 12:09 jackson
38102 * ThemeWin32Classic.cs: Add pen_buttonface
38104 2004-08-08 11:52 jordi
38106 * Label.cs, LinkLabel.cs: [no log message]
38108 2004-08-08 11:34 jordi
38110 * ThemeWin32Classic.cs: Use Windows Standard Colours
38112 2004-08-07 17:32 jordi
38114 * TrackBar.cs: throw exceptions of invalid enums values
38116 2004-08-07 17:31 jordi
38118 * Label.cs, LinkLabel.cs, ThemeWin32Classic.cs: fixes label bug and
38121 2004-08-07 16:56 jackson
38123 * HorizontalAlignment.cs: Initial checkin
38125 2004-08-07 13:16 jordi
38127 * Label.cs, LinkLabel.cs: throw exceptions, fixes events, missing
38130 2004-08-07 13:05 jordi
38132 * ITheme.cs, ThemeWin32Classic.cs: Theme colour support and
38133 GetSysColor defines
38135 2004-08-06 18:01 pbartok
38137 * ThemeWin32Classic.cs:
38138 - Fixed some rounding issues with float/int
38140 2004-08-06 18:00 jackson
38142 * DockStyle.cs, AnchorStyles.cs:
38144 Add flags and serializable attributes.
38146 2004-08-06 17:46 pbartok
38149 - Implemented GetParent
38151 2004-08-06 17:18 pbartok
38154 - Fixed some rounding issues with float/int
38156 2004-08-06 17:17 pbartok
38158 * X11Structs.cs, XplatUIX11.cs:
38159 - Fixed Refresh and Invalidate
38161 2004-08-06 15:30 pbartok
38163 * Control.cs, X11Structs.cs, XplatUIX11.cs:
38164 - Fixed recursive loop when resizing
38165 - Improved/fixed redrawing on expose messages
38167 2004-08-06 09:53 jordi
38169 * Control.cs, X11Structs.cs, XplatUIWin32.cs, XplatUIX11.cs: X11
38170 keyboard navigation
38172 2004-08-06 08:02 pbartok
38174 * X11Structs.cs, XplatUIX11.cs:
38175 - Fixed reparenting
38176 - Fixed window border creation
38178 2004-08-05 15:38 pbartok
38181 - Attempted fix for reparenting problems
38183 2004-08-04 15:14 pbartok
38186 - Fixed Invalidation bug (calculated wrong client area)
38187 - Added ClientSize setter
38189 2004-08-04 15:13 pbartok
38192 - Added AutoScale properties
38194 2004-08-04 15:13 pbartok
38197 - Added latest files
38199 2004-08-04 14:11 pbartok
38201 * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
38203 - Added Invalidate handling
38205 2004-08-03 17:09 jordi
38207 * XplatUIDriver.cs: fixes spelling mistake
38209 2004-07-27 09:53 jordi
38211 * TrackBar.cs: fixes trackbar events, def classname, methods
38214 2004-07-27 09:29 jordi
38216 * ScrollBar.cs: fixes scrollbar events
38218 2004-07-27 04:38 jordi
38220 * Control.cs: changes to be able to run winforms samples
38222 2004-07-26 11:42 jordi
38224 * ControlPaint.cs, ITheme.cs, ProgressBar.cs, ScrollBar.cs,
38225 ThemeEngine.cs, ThemeWin32Classic.cs, TrackBar.cs: Theme support
38227 2004-07-26 05:41 jordi
38229 * MessageBox.cs, MessageBoxButtons.cs, MessageBoxDefaultButton.cs,
38230 MessageBoxIcon.cs, MessageBoxOptions.cs: initial messagebox
38233 2004-07-22 09:22 jordi
38235 * LinkLabel.cs, LinkLabelLinkClickedEventHandler.cs: link label:
38236 check link overlapping, implement events, and fixes
38238 2004-07-21 10:28 jordi
38240 * DialogResult.cs, IButtonControl.cs: fixes comments filenames
38242 2004-07-21 10:19 jordi
38244 * DialogResult.cs, IButtonControl.cs, Label.cs, LinkArea.cs,
38245 LinkBehavior.cs, LinkClickedEventArgs.cs, LinkLabel.cs,
38246 LinkLabelLinkClickedEventArgs.cs,
38247 LinkLabelLinkClickedEventHandler.cs, LinkState.cs,
38248 XplatUIWin32.cs, LinkClickedEventHandler.cs: LinkLabel control
38251 2004-07-19 13:09 jordi
38253 * Control.cs, Label.cs: label control re-written: added missing
38254 functionlity, events, and properties
38256 2004-07-19 10:49 jordi
38258 * Control.cs: fixes SetBounds logic
38260 2004-07-19 01:29 jordi
38262 * Control.cs: Call RefreshWindow only if the window has created
38264 2004-07-15 14:05 pbartok
38266 * ColorDepth.cs, ImageList.cs, ImageListStreamer.cs, SWF.csproj:
38267 - Implemented ImageList and ImageList.ImageCollection classes
38268 - Added ColorDepth enumeration
38269 - Updated SWF VS.Net project
38271 2004-07-15 11:06 jordi
38273 * XplatUIStructs.cs: added MsgButons enum
38275 2004-07-15 11:03 jordi
38277 * Control.cs: added basic mouse handeling events
38279 2004-07-15 03:38 jordi
38281 * Orientation.cs, TickStyle.cs, TrackBar.cs: Horizontal and
38282 Vertical TrackBar control implementation
38284 2004-07-13 09:33 jordi
38286 * HScrollBar.cs, VScrollBar.cs: vertical and hort. classes commit
38288 2004-07-13 09:31 jordi
38290 * Control.cs, Form.cs: commit: new properties and fixes form size
38293 2004-07-09 14:13 miguel
38295 * ProgressBar.cs: Spelling
38297 2004-07-09 11:25 pbartok
38300 - Removed usage of Rectangle for drawing. Miguel pointed out it's
38303 2004-07-09 11:17 miguel
38305 * ProgressBar.cs: 2004-07-09 Miguel de Icaza <miguel@ximian.com>
38307 * ProgressBar.cs: Fixed spelling for `block'
38309 drawProgressBar: renamed to `DrawProgressBar' to follow the coding
38312 Avoid using the += on rect.X, that exposed a bug in the compiler.
38314 2004-07-08 23:21 pbartok
38316 * AccessibleObject.cs, AccessibleRole.cs, AccessibleStates.cs,
38317 AnchorStyles.cs, Application.cs, ApplicationContext.cs,
38318 BaseCollection.cs, Binding.cs, BindingContext.cs,
38319 BindingMemberInfo.cs, BindingsCollection.cs,
38320 BindingsManagerBase.cs, Border3DSide.cs, Border3DStyle.cs,
38321 BorderStyle.cs, BoundsSpecified.cs, ButtonBorderStyle.cs,
38322 ButtonState.cs, CaptionButton.cs, CheckBox.cs,
38323 ContainerControl.cs, Control.cs, ControlEventArgs.cs,
38324 ControlEventHandler.cs, ControlPaint.cs, ControlStyles.cs,
38325 ConvertEventArgs.cs, ConvertEventHandler.cs, Copyright,
38326 CreateParams.cs, DockStyle.cs, DragAction.cs, DragDropEffects.cs,
38327 DragEventArgs.cs, DragEventHandler.cs, FlatStyle.cs, Form.cs,
38328 FrameStyle.cs, GiveFeedbackEventArgs.cs,
38329 GiveFeedbackEventHandler.cs, HelpEventArgs.cs,
38330 HelpEventHandler.cs, IContainerControl.cs, IDataObject.cs,
38331 IMessageFilter.cs, IWin32Window.cs, ImeMode.cs, InputLanguage.cs,
38332 InputLanguageChangedEventArgs.cs,
38333 InputLanguageChangedEventHandler.cs,
38334 InputLanguageChangingEventArgs.cs,
38335 InputLanguageChangingEventHandler.cs, InputLanguageCollection.cs,
38336 InvalidateEventArgs.cs, InvalidateEventHandler.cs,
38337 KeyEventArgs.cs, KeyEventHandler.cs, KeyPressEventArgs.cs,
38338 KeyPressEventHandler.cs, Keys.cs, Label.cs, LayoutEventArgs.cs,
38339 LayoutEventHandler.cs, MenuGlyph.cs, Message.cs, MouseButtons.cs,
38340 MouseEventArgs.cs, MouseEventHandler.cs, NativeWindow.cs,
38341 PaintEventArgs.cs, PaintEventHandler.cs, ProgressBar.cs,
38342 QueryAccessibilityHelpEventArgs.cs,
38343 QueryAccessibilityHelpEventHandler.cs,
38344 QueryContinueDragEventArgs.cs, QueryContinueDragEventHandler.cs,
38345 RightToLeft.cs, SWF.csproj, SWF.csproj.user, ScrollBar.cs,
38346 ScrollBars.cs, ScrollButton.cs, ScrollEventArgs.cs,
38347 ScrollEventHandler.cs, ScrollEventType.cs, ScrollableControl.cs,
38348 TODO, TODOAttribute.cs, UICues.cs, UICuesEventArgs.cs,
38349 UICuesEventHandler.cs, X11Structs.cs, XplatUI.cs,
38350 XplatUIDriver.cs, XplatUIStructs.cs, XplatUIWin32.cs,
38351 XplatUIX11.cs, lang.cs: