1 2009-01-28 Ivan N. Zlatev <contact@i-nz.net>
3 * DataGridViewCell.cs: Format strings according to the supplied
7 2009-01-28 Ivan N. Zlatev <contact@i-nz.net>
9 * DataGridView.cs: Reset the hover cell if it gets moved due to row(s)
10 addition or removal. Fixes multiple crashes in OnMouseMove.
12 2009-01-27 Ivan N. Zlatev <contact@i-nz.net>
14 * DataGridView.cs: Fix a NRE when setting the CurrentCell to null.
16 2009-01-27 Ivan N. Zlatev <contact@i-nz.net>
18 * XplatUIX11.cs: Fire Timer.Tick even if there is no MainForm for the
22 2009-01-26 Andreia Gaita <avidigal@novell.com>
24 * WebBrowser.cs: fix initial value of ScrollbarsEnabled, so they
25 won't be disabled by default.
28 2009-01-26 Ivan N. Zlatev <contact@i-nz.net>
30 * DataGridView.cs: Do not clear the rows if we are not databound.
32 2009-01-26 Ivan N. Zlatev <contact@i-nz.net>
34 * DataGridView.cs: Do not be too smart about selecting the first cell
35 when the first row is added as this is not what MS does. Fixes the
38 2009-01-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
40 * TreeNode.cs: NextVisibleNode and PrevVisibleNode properties don't
41 take into account the fact that OpenTreeNodeEnumerator needs to call
42 MoveNext/MovePrevious to actually put the passed node as the one
43 retrieved in Current. This way this property should work as really
45 Fixes part of #467225.
47 2000-01-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
49 * TreeView.cs: When calculating the scrollbars, don't use
50 TreeNode.Bounds, since it still can have the values of the previous
51 -and now invalid- layout -which depends on TreeView.skipped_nodes, and
52 could not have been updated as well-, and use the actual number of
53 visible number of nodes to compute the height needed to contain all
54 the nodes. Also reset the value of vbar to 0 when disabled - this way
55 we make sure that, when re-enabled, it will update the visible area of
56 the treeview, even if the previous value before disabling it is the
57 same as now. Finally don't do anything for the vbar.ValueChanged
58 handler - for the case wheer we manually set the value but don't the
59 vbar is disabled already.
60 Fixes part of #467225.
62 2009-01-23 Jonathan Pobst <monkey@jpobst.com>
64 * ToolStrip.cs: Switch from foreach to for, in case the collection
65 somehow changes while enumerating it.
67 2009-01-23 Ivan N. Zlatev <contact@i-nz.net>
69 * DataGridView.cs, DataGridViewCell.cs: Fix crashes when there is no
72 2009-01-23 Ivan N. Zlatev <contact@i-nz.net>
74 * DataGridView.cs: Fix new row adding/editing in the non-databound
77 2009-01-21 Mike Gorse <mgorse@novell.com>
79 * TrackBar.cs: Make LargeIncrement/Decrement internal so that UIA can
81 Added UIAValueParamChangedEvent.
83 2009-01-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
85 * TreeView.cs: In CollapseAll, set vbar to the maximum value, instead
86 of trying to set as top node the highest parent of the previous top
87 node. Moving to the bottom of the TreeView after a call to CollapseAll
88 is exactly what .net does. This should avoid some nasty issue when
89 CollapseAll is called and we don't need the vertical scroll bar.
91 2009-01-21 Mario Carrion <mcarrion@novell.com>
93 * Form.cs: UIA Support: Internal events added: UIAWindowStateChanged
94 and UIATopMostChanged.
96 2009-01-21 Sandy Armstrong <sanfordarmstrong@gmail.com>
98 * MenuItem.cs: Add UIACheckChanged, UIARadioCheckChanged,
99 UIAEnabledChanged, and UIATextChanged events.
101 * Form.cs: Add UIAMenuChanged event.
104 * MenuAPI.cs: Note which internal APIs are being used by UIA.
106 2009-01-21 Neville Gao <nevillegao@gmail.com>
108 * ToolBar.cs: Control enabled to support accessibility.
111 2009-01-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
113 * TreeView.cs: When handling mouse up event, check whether
114 highlighted_node is null or not - usually it should be non-null
115 alwaays, since the mouse down handler sets it, but some externa
116 operations, such TreeNodeCollection.Clear, could set it to null.
119 2009-01-19 Ivan N. Zlatev <contact@i-nz.net>
121 * ThemeWin32Classic.cs: Draw the menu item shortcut even if the menu
124 2009-01-19 Ivan N. Zlatev <contact@i-nz.net>
126 * MenuAPI.cs: Do not handle shortcuts if the menu item is disabled.
129 2009-01-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
131 * MonthCalendar.cs: When handling the selection changes using the
132 mouse, don't set SelectionRange if the selection range didn't actually
133 change. This matters because, even if we set the range to the same
134 previous range, an extra DateChanged event is fired. Just to be clear:
135 SelectionRage property doesn't check whether the new value is
136 different to the previous one (by ref equals doesn't work here).
137 Fixes other bits of #364914.
139 2009-01-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
141 * MonthCalendar.cs: Remove the extra OnDateChanged call when handling
142 selection using the keyboard, since we are already firing this event
143 when setting SelectionRange. Also don't set SelectionRange if the
144 previous and the new value are the same (the property, just as .net
145 does, doesn't check whether the previous value and the new one are the
146 same). This saves us from firing OnDateChanged event if the selection
147 range didn't change actually.
148 Fixes the remaining bits of #364914.
150 2009-01-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
152 * ListBox.cs: When removing an item and the last item is selected,
153 remove it from the selection, and if selection mode is One try to
154 select the new last item.
157 2009-01-16 Mike Gorse <mgorse@novell.com>
159 * Splitter.cs: Make MaxSize internal so that UIA code can use it.
161 2009-01-16 Mario Carrion <mcarrion@novell.com>
163 * ColumnHeader.cs: UIA Support: raising internal event UIATextChanged
166 2009-01-16 Carlos Alberto Cortez <calberto.cortez@ggmail.com>
169 * XplatUIX11.cs: Properly encode/decode the unicode strings we
170 store/retrieve in the Clipboard. Also, since we try to convert the
171 data to different formats, separate the source and the result of
172 it, so we can always fallback to the original and don't mix wrong
175 2009-01-16 Mike Gorse <mgorse@novell.com>
177 * TextControl.cs: Add UIASelectionChanged event.
179 2009-01-16 Ivan N. Zlatev <contact@i-nz.net>
181 * DataGridView.cs: Forward the first key events to the editing control.
184 2009-01-14 Andrés G. Aragoneses <aaragoneses@novell.com>
186 * Application.cs: Oops, launch the copied handler of PreRun instead of
187 the global one (gendarme would bark otherwise). (Improving r123375)
189 2009-01-14 Andrés G. Aragoneses <aaragoneses@novell.com>
192 * Application.cs: Move the PreRun event fire to the end of the XplatUI
193 static ctor (we don't move the PreRun event to this class because its
194 usage would cause the call to the static ctor). This way we can get
195 a11y support for dialogs that run without App.Run.
197 2009-01-14 Andrés G. Aragoneses <aaragoneses@novell.com>
199 * ListView.cs: New internal property to know the inner array's length of
200 the location of items, in order to avoid a try-catch strategy for the
201 case when this array has not been resized yet (for reference, look at
204 2009-01-13 Andrés G. Aragoneses <aaragoneses@novell.com>
206 * Application.cs: Simplify UIA initialization, reducing it from 4 to 1
207 reflection calls. This requires UIAutomationWinforms r123213.
209 2009-01-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
211 * MonthCalendar.cs: Detect selection changes in MouseDown/MouseMove
212 handlers and fire the DateSelected event until MouseUp is reached,
213 like .net does, instead of firing it for each mouse event.
214 Fixes part of #364914.
216 2009-01-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
218 * TreeView.cs: When the selection gets canceled using the BeforeSelect
219 event, invalidate the previous highlighted_node bounds, to show the
220 user that the item was *not* selected.
223 2009-01-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
225 * ComboBox.cs: Separate some scroll logic: setting SelectedIndex, as
226 well as -in DropDown and Simple modes- writing in the textbox should
227 try to set the requested item as the top one, but navigating with the
228 keyboard and handling mouse selection don't need that behaviour. Also,
229 when resetting selected_index handling key press events, reset
230 ComboListBox.HighlightIndex.
231 Fixes the remaining bits of #464188.
233 2009-01-11 Ivan N. Zlatev <contact@i-nz.net>
235 * DataGridView.cs: Fix crashes when shortcut keys are pressed, but
237 - CurrentCellAddress should be -1, -1 and not 0, 0.
238 - Be tolerant and fall back to clearing the current cell if either
239 column or row is -1 in MoveCurrentCell.
240 - Misc. more -1 checks.
242 2009-01-11 Ivan N. Zlatev <contact@i-nz.net>
244 * DataGridView.cs: Preserve the column index. Fixes a regression
245 introduced by the data binding position tracking code.
247 2009-01-11 Ivan N. Zlatev <contact@i-nz.net>
249 * DataGridView.cs: If the bottom of the row matches the client height
250 do not regard the row as partially visible. Fixes the weird scrolling
251 when there is no scrollbar.
253 2009-01-11 Ivan N. Zlatev <contact@i-nz.net>
255 * DataGridViewComboBoxCell.cs: Implement/Fix the data binding.
257 2009-01-09 Mario Carrion <mcarrion@novell.com>
259 * MessageBox.cs: Fixed internal UIAIconRectangle property.
261 2009-01-09 Ivan N. Zlatev <contact@i-nz.net>
263 * DataGridViewCheckBoxCell.cs: Respect the ReadOnly state of the Cell.
265 2009-01-09 Ivan N. Zlatev <contact@i-nz.net>
267 * DataGridView.cs: Track the Position in the CurrencyManager.
269 2009-01-09 Ivan N. Zlatev <contact@i-nz.net>
271 * DataGridView.cs: Implement data-bound new item editing/addition.
272 * DataGridViewRowCollection.cs: Make it possible for us to internally
274 [Fixes bugs #457107, #457308, #325240]
276 2009-01-09 Ivan N. Zlatev <contact@i-nz.net>
278 * CurrencyManager.cs: Even if Position is set to a greater value than the
279 list count reset it to position of the last item.
281 2009-01-09 Ivan N. Zlatev <contact@i-nz.net>
283 * BindingSource.cs: AddNew doesn't set index/add_pending for IBindingList.
284 Fix that in order to make CancelNew to work.
286 2009-01-09 Ivan N. Zlatev <contact@i-nz.net>
288 * BindingSource.cs: When adding a new item try to delegate to the internal
289 list first before throwing an exception.
291 2009-01-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
293 * ComboBox.cs: When setting the text and adjusting the top_item, do it
294 *only* if the current item is *not* visible already.
295 Fixes part of #464188.
297 2009-01-09 Ivan N. Zlatev <contact@i-nz.net>
299 * DataGridView.cs: Requesting the CurrencyManager for the first time can
300 lead to unexpected OnBindingContextChanged calls and recursive rebinding.
304 2009-01-08 Brad Taylor <brad@getcoded.net>
306 * ComboBox.cs: Expose a few private fields as internal UIA properties.
308 2009-01-07 Mario Carrion <mcarrion@novell.com>
310 * DataGrid.cs: CWL removed.
312 2009-01-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
314 * RadioButton.cs: When setting Checked, we should first update the
315 check state of the current RadioButton, as well as invalidating it,
316 and after that actually update the siblings. This is done to match
318 Fixes the remaining bits of #463028.
320 2009-01-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
322 * RadioButton.cs: Setting Checked to false should set TabStop to stop
323 as well. Also, when we get the focus and no other RadioButton is
324 selected in the parent control, we should mark ourselves as Checked.
325 Fixes part of #463028.
327 2009-01-05 Mario Carrion <mcarrion@novell.com>
329 * DataGrid.cs: UIA suppport. internal events:
330 UIAGridCellChanged, UIAColumnsHeadersVisibleChanged,
331 UIASelectionChanged, UIACollectionChanged. Internal properties:
332 UIARowHeight, UIACellsArea, UIACaptionArea,
333 UIAColumnHeadersArea, UIASelectedRows, UIACurrentTableStyle,
334 UIAVScrollBar and UIAHScrollBar.
336 2009-01-05 Jonathan Pobst <monkey@jpobst.com>
338 * ToolStripSplitStackLayout.cs: Enable the overflow button if any
339 of the buttons are set to Overflow = Always.
342 2009-01-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
344 * BindingNavigator.cs: Properly enable/disable the toolstrip buttons,
345 based on whether the binding source is availble or not. Fixes #463008.
347 2009-01-03 Ivan N. Zlatev <contact@i-nz.net>
349 * DataGridViewCell.cs: We should return a value even if we are not bound
352 2009-01-02 Ivan N. Zlatev <contact@i-nz.net>
354 * CurrencyManager.cs, DataGrid.cs:
355 - Rename CanAddRows to AllowNew. The CurrencyManager has no
357 - Add two more internal properties AllowRemove and AllowEdit.
358 * DataGridView.cs: Refactor in a data-bound situation AllowUserToAddRows,
359 AllowUserToDeleteRows and cell ReadOnly state to be also checked against the
360 CurrencyManager data source.
362 2009-01-02 Ivan N. Zlatev <contact@i-nz.net>
364 * DataGridView.cs: Fix crashes caused by assigning negative values to
365 ScrollBar.LargeIncrement when the ClientSize.Width/Height is less than
366 the column/row heights/widths.
369 2009-01-02 Ivan N. Zlatev <contact@i-nz.net>
371 * DataGridView.cs: Non-autogenerated columns that have a data property
372 set that exists in the current datasource should be set to be data-bound.
374 2009-01-02 Ivan N. Zlatev <contact@i-nz.net>
376 * DataGridView.cs: Fix column sorting for columns containing null
377 values. A "null" value is not always "null" (e.g could be String.Empty)
378 and thus parsing numeric types throwed an exception for "null" values.
380 2009-01-02 Ivan N. Zlatev <contact@i-nz.net>
382 * DataGridView.cs: Detach the editing control when the edit is
385 2009-01-02 Ivan N. Zlatev <contact@i-nz.net>
387 * DataGridView.cs: Multiple fixes to handle last column/row removal
388 and cell movement after that instead of throwing exceptions.
390 2009-01-02 Ivan N. Zlatev <contact@i-nz.net>
392 * DataGridViewCellCollection.cs: When cells are removed the column
393 indices become invalid if the cell is not the last one and have to
396 2009-01-01 Ivan N. Zlatev <contact@i-nz.net>
398 * DataGridView.cs: Return false in CommitEdit if there was an error.
400 2009-01-01 Ivan N. Zlatev <contact@i-nz.net>
402 * DataGridView.cs: Remove a leftover Console.WriteLine.
404 2009-01-01 Ivan N. Zlatev <contact@i-nz.net>
406 * DataGridViewRow.cs: Access the indexer of the data manager directly
407 instead of the internal list.
409 2009-01-01 Ivan N. Zlatev <contact@i-nz.net>
411 * DataGridViewCell.cs, DataGridView.cs, DataGridViewCheckBoxCell.cs:
412 Rewrite the value getting, setting, parsing, formatting logic:
413 - If data-bound value get/set should actually get and set from the
415 - Make proper usage of TypeConverters for value parsing/formatting.
416 - Raise DataError if setting the new value fails.
417 - Get rid off the internal valueType field and get/set the ValueType
421 2009-01-01 Ivan N. Zlatev <contact@i-nz.net>
423 * DataGridView.cs: Rewrite the DataBinding layer:
424 - Get rid off all BindingSource/IBindingList/DataSet/DataTable
426 - Get rid off the per DataSource type column autogeneration code.
427 - Use the CurrencyManager for everything that is DataBinding related.
429 2009-01-01 Ivan N. Zlatev <contact@i-nz.net>
431 * CurrencyManager.cs: Do not fire duplicate ListChanged events.
433 2008-12-31 Ivan N. Zlatev <contact@i-nz.net>
435 * DataGridView.cs, DataGridViewRow.cs: Add a new internal property
436 DataManager to fetch the CurrencyManager for the DataGridView and to
437 spare this logic for the other components to follow.
439 2008-12-31 Mario Carrion <mcarrion@novell.com>
441 * MessageBox.cs: UIA support: new properties: UIAMessage,
442 UIAMessageRectangle and UIAIconRectangle.
444 2008-12-31 Sandy Armstrong <sanfordarmstrong@gmail.com>
446 * FileDialog.cs: Add PopupButtonPanel.PopupButton.PerformClick method
447 and DirComboBox.DirComboBoxItem.ToString override for UIA support.
449 2008-12-31 Ivan N. Zlatev <contact@i-nz.net>
451 * DataGridView.cs: Do not autogenerate duplicate column for a
452 data member that has already problematically been assigned one.
455 2008-12-30 Jonathan Pobst <monkey@jpobst.com>
457 * ProfessionalColorTable.cs: Better detection of user's theme.
460 2008-12-30 Ivan N. Zlatev <contact@i-nz.net>
462 * DataGridView.cs: In the case where there are no autogenerated
463 columns and the user adds columns problematically we must generate
464 the rows after the very first column is added.
466 2008-12-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
468 * DateTimePicker.cs: When increasing/decreasing the value of month
469 with ShowUpDown set to true, moving from december to january, and
470 moving from january to december should adjust the year to the next and
471 the previous year, respectively.
472 Fixes the remaining bits of #459674.
474 2008-12-30 Ivan N. Zlatev <contact@i-nz.net>
476 * DataGridView.cs: If a new cell is selected edit mode should be
477 immediately enabled only if EditOnEnter is set. Whether the mouse
478 or not was used to select the cell is irrelevant.
480 2008-12-29 Ivan N. Zlatev <contact@i-nz.net>
482 * DataGridView.cs: Remove a bogus ReBind call, which was causing
485 2008-12-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
487 * DateTimePicker.cs: Handle the "MMMM" month format.
490 2008-12-23 Ivan N. Zlatev <contact@i-nz.net>
493 - Make ReBind private and refactor various calls to call ReBind
494 instead of ClearBinding/DoBinding
495 - Rebind when the column collection changes
496 * DataGridViewColumnCollection.cs:
497 - Leave the rebinding on change to be handled by the DataGridView.
499 2008-12-23 Jonathan Pobst <monkey@jpobst.com>
501 * DataGridView.cs: Add a ReBind convenience method.
502 * DataGridViewColumnCollection.cs: Rebind when a column is added.
505 2008-12-23 Neville Gao <nevillegao@gmail.com>
507 * StatusBar.cs: Modified argument variable.
508 * SplitContainer.cs: Control enabled to support accessibility.
511 2008-12-22 Jonathan Pobst <monkey@jpobst.com>
513 * ToolStripMenuItem.cs: Guard against an NRE.
516 2008-12-22 Mario Carrion <mcarrion@novell.com>
518 * Control.cs: AccessibleXXXX properties don't return
519 AccessibleObject.XXXX, instead a local referece is returned.
521 2008-12-22 Neville Gao <nevillegao@gmail.com>
523 * PrintPreviewControl.cs: Added internal properties to support
527 2008-12-19 Mario Carrion <mcarrion@novell.com>
529 * Control.cs: Reverted r121561.
531 2008-12-19 Andrés G. Aragoneses <aaragoneses@novell.com>
533 * X11DesktopColors.cs: Since r121873 we don't need gtk a11y checks here,
534 it has been moved to the bridge.
536 2008-12-18 Brad Taylor <brad@getcoded.net>
538 * DateTimePicker.cs: Add a few UIA specific events, and a couple
539 internal methods useful for UIA.
541 2008-12-18 Mario Carrion <mcarrion@novell.com>
543 * ListBox.cs: Fixed GetItemRectangle when MultiColumn is true.
546 2008-12-17 Mike Gorse <mgorse@novell.com>
548 * ListView.cs, ListViewItem.cs: Send OnUIAFocusedItemChanged if an
549 item's Focused property is set.
551 2008-12-17 Sandy Armstrong <sanfordarmstrong@gmail.com>
555 * TreeNodeCollection.cs: Add events for UIA support:
556 UIACheckBoxesChanged, UIALabelEditChanged, UIANodeTextChanged, and
557 UIACollectionChanged.
559 2008-12-17 Bill Holmes <billholmes54@gmail.com>
561 * ListViewItem.cs (ListViewSubItem.ctor): Initalizing the
562 SubItemStyle member field.
564 Contributed under MIT/X11 license.
566 2008-12-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
568 * ListBox.cs: In MultiColumn mode don't use top_index to calculate the
569 y coord, since it's useless in this case, and we need to rely only on
570 the number of rows and ItemHeight to compute this value.
571 Fixes part of #257471.
573 2008-12-15 Mike Gorse <mgorse@novell.com>
575 * StatusBar.cs: Send OnUIACollectionChanged in Remove().
577 2008-12-15 Mario Carrion <mcarrion@novell.com>
579 * Control.cs: Accessibility properties instantiate AccessibilityObject when
583 2008-12-15 Brad Taylor <brad@getcoded.net>
585 * ToolStripItem.cs: Add a UIA specific event for listening for when a
586 ToolStripItem becomes selected or deselected.
588 2008-12-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
590 * MonthCalendar.cs: Select the date in MouseDown, not in MouseUp, as
591 .net does. Use the date in the point of the mouse move coords as the
592 new range as well, if the left button of the mouse is being pressed.
595 2008-12-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
597 * MonthCalendar.cs: When modifying either AnnuallyBoldedDates,
598 MonthlyBoldedDates or BoldedDates call UpdateBoldedDates, to
599 effectively repaint the control.
600 Fixes the remaining bits of #417961.
602 2008-12-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
604 * MonthCalendar.cs: When setting MaxDate/MinDate, adjust the selected
605 range to contain only dates within the new possible range.
606 Fixes part of #417961.
608 2008-12-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
610 * MaskedTextBox.cs: MaskedTextService.Replace doesn't expect the
611 length of the text, but the end position, so we need to substract 1 to
612 have a valid value. Also, in the same InputText method, don't use
613 SelectionLength as the length of the text, since the selected text
614 could actually be empty, but we need to set the value anyway.
617 2008-12-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
619 * TextBox.cs: Don't do any auto complete task if the custom source is
620 null or empty. Also avoid duplication of code.
623 2008-12-09 Ivan N. Zlatev <contact@i-nz.net>
625 * DataGridView.cs: Refresh column sizes when new rows are added.
628 2008-12-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
629 * RichTextBox.cs: When parsing the contents of a rtf file, don't call
630 Split to create a line - we are already doing this, by _adding_ a new
631 one when rtf_cursor_x is 0 (this field gets this value just after we
632 receive the newline param as true). This avoids having a proportional number
633 of empty lines in the end of the rich text box.
636 2008-12-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
638 * RichTextBox.cs: When saving the contents as a plain text, don't add
639 a new line for every Line structure, since the data in Document
640 already contains the new line characters. This avoids duplicated new
641 lines using the Save methods.
644 2008-12-09 Sandy Armstrong <sanfordarmstrong@gmail.com>
646 * TreeView.cs: Expose ScrollBars as internal properties, for use by UIA
647 framework. Fixes bug #457678.
649 2008-12-08 Ivan N. Zlatev <contact@i-nz.net>
651 * DataGridViewRow.cs: Prevent an exception on a not yet databound grid,
652 where datasource is null.
653 [Fixes exception reported in bug 441240]
655 2008-12-08 Ivan N. Zlatev <contact@i-nz.net>
657 * DataGridView.cs: EndEdit validation fixes.
659 2008-12-08 Ivan N. Zlatev <contact@i-nz.net>
661 * DataGridView.cs: This is the cool patch that adds support for
662 actually updating the data in the databinding backend after editing.
663 With bonus firing and handling the DataError event.
665 2008-12-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
667 * Line.cs: When calculating the text tags's Shift value, store it as
668 pixels instead of points. This way we can actually handle different
669 fonts in the same RichTextBox, as well as the right size of the caret.
670 Fixes part of #351938.
672 2008-12-08 Ivan N. Zlatev <contact@i-nz.net>
674 * DataGridViewCheckBoxCell.cs: Fix to make it work. Wrong value was
675 casted to CheckState causing InvalidCastExceptions.
677 2008-12-08 Ivan N. Zlatev <contact@i-nz.net>
679 * DataGridView.cs: Fix the DataGridViewEditMode.EditOnEnter behavior
680 to not depend on the item being clicked.
682 2008-12-08 Ivan N. Zlatev <contact@i-nz.net>
684 * DataGridView.cs: Implement NotifyCurrentCellDirty, so that it no
685 longer throws a NotImplementedException.
687 2008-12-08 Ivan N. Zlatev <contact@i-nz.net>
689 * DataGridView.cs: Set EditingControlFormattedValue when preparing an
690 IDataGridViewEditingControl for editing.
692 2008-12-08 Ivan N. Zlatev <contact@i-nz.net>
694 * DataGridViewComboBoxCell.cs: Implement data binding support.
696 2008-12-08 Ivan N. Zlatev <contact@i-nz.net>
698 * DataGridView.cs: Use the CurrencyManager to update the data source
699 binding position instead of casting the data sourcde to BindingSource.
700 This enables position updating for other type of data sources.
702 2008-12-08 Ivan N. Zlatev <contact@i-nz.net>
704 * ComboBox.cs: Update the SelectedIndex before updating the Text
705 in OnDisplayMemberChanged.
707 2008-12-07 Ivan N. Zlatev <contact@i-nz.net>
709 * DataGridView.cs: Fix our support for IDataGridViewEditingControl.
712 2008-12-06 Ivan N. Zlatev <contact@i-nz.net>
714 * DataGridView.cs: Sorting fixes:
715 - Be strict when sorting is enabled.
716 - If there is a data source delegate the sorting request.
718 2008-12-06 Ivan N. Zlatev <contact@i-nz.net>
720 * Binding.cs: When converting the data also try with the destination
721 type typeconverter. This indirectly adds support for Nullable types
722 in our databinding layer.
724 2008-12-06 Ivan N. Zlatev <contact@i-nz.net>
726 * DataGridView.cs: When cell editing is finished focus back the
727 DataGridView. Fixes keyboard navigation post-editing.
729 2008-12-06 Ivan N. Zlatev <contact@i-nz.net>
731 * DataGridView.cs: Fix the cell editing by delaying the currentCell
732 setting to after EndEdit is called for the old cell.
734 2008-12-06 Ivan N. Zlatev <contact@i-nz.net>
736 * BindingSource.cs: Reset the bindings. Fixes a NotWorking test.
738 2008-12-06 Ivan N. Zlatev <contact@i-nz.net>
740 * XplatUIX11.cs: Send WM_HELP only to the focused window.
742 2008-12-05 Ivan N. Zlatev <contact@i-nz.net>
744 * CurrencyManager.cs: Fix exceptions when resetting the data source
745 for the same time (e.g. in ComboBox):
746 - Do not set the list position if we are still transferring data
747 - When resetting the list firstly push the data then update the
749 * Binding.cs: Check BindingManager.Position == -1 instead of
750 BindingManager.Current == null in order to avoid unexpected
753 2008-12-05 Brad Taylor <brad@getcoded.net>
755 * MonthCalendar.cs: Add UIA specific events so that we can know when
756 the selection changes, and when MaxSelectedCount changes.
758 2008-12-05 Ivan N. Zlatev <contact@i-nz.net>
760 * DataGridView.cs: Cleanup rows_displayed out of OnPaint. It's not
763 2008-12-05 Ivan N. Zlatev <contact@i-nz.net>
765 * DataGridView.cs: Fix scrolling and selection of cells/rows prior
766 to the control being drawn for the first time by:
767 - Implement DisplayedRowsCount to not rely on the control being
768 already painted. Also added support for the partial row flag.
769 - Fix scrolling to take into account partial rows and scroll to
773 2008-12-05 Ivan N. Zlatev <contact@i-nz.net>
775 * DataGridView.cs: Do not reset the CurrentCell when the handle is
776 created if the user has already set it.
778 2008-12-05 Ivan N. Zlatev <contact@i-nz.net>
780 * DataGridView.cs: Fix CurrentCell to actually select the cell.
782 2008-12-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
784 * XplatUIX11.cs: Add support to RichTextFormat by reading it as ascii
785 text and then let the underneath users of IDataObject interpret and
789 2008-12-01 Ivan N. Zlatev <contact@i-nz.net>
791 * DataGridView.cs: Fix my previous commit to actually update what it
794 2008-12-01 Ivan N. Zlatev <contact@i-nz.net>
796 * DataGridView.cs: Ensure that when a row is removed the all the
797 current row/column/cell get updated. Fixes multiple exceptions.
799 2008-12-01 Ivan N. Zlatev <contact@i-nz.net>
801 * DataGridView.cs: Fix scrolling to the current cell when key navigation
805 2008-12-01 Ivan N. Zlatev <contact@i-nz.net>
807 * DataGridView.cs, DataGridViewCell.cs: Fire CellStateChanged events.
808 * DataGridViewCell.cs: Set the cell as selected prior to setting the
810 [Fixes issue 1 in bug #443560]
812 2008-12-01 Ivan N. Zlatev <contact@i-nz.net>
814 * DataGridView.cs: Invalidate after the current row/column seletion
818 2008-12-01 Ivan N. Zlatev <contact@i-nz.net>
820 * DataGridView.cs: Refresh the data if the data list is reset, etc.
822 2008-12-01 Ivan N. Zlatev <contact@i-nz.net>
824 * DataGridView.cs: Handle datasource state changes:
825 - IBindingList - list changes
826 - BindingSource - list changed and datasource changes
828 2008-11-30 Ivan N. Zlatev <contact@i-nz.net>
830 * DataGridView.cs: Select the first cell when databound.
831 Visually select when CurrentCell is set.
833 2008-11-30 Ivan N. Zlatev <contact@i-nz.net>
835 * DataGridView.cs: Set the current cell before raising CellClick.
837 2008-11-30 Ivan N. Zlatev <contact@i-nz.net>
839 * DataGridView.cs: Cleanup MoveCurrentCell to not fire any CellEnter,
840 CellLeave events as this is already done in SetCurrentCellAddressCore.
842 2008-11-30 Ivan N. Zlatev <contact@i-nz.net>
844 * DataGridView.cs: Set the minimum size for the columns to be the
845 width of their header, so that the columns don't get squashed
848 2008-11-30 Ivan N. Zlatev <contact@i-nz.net>
850 * DataGridView.cs: After the data is bound PerformLayout, so that
851 the columns get autosized.
853 2008-11-30 Ivan N. Zlatev <contact@i-nz.net>
855 * DataGridView.cs: Move all currentCell setting code into
856 one central place - SetCurrentCellAddressCore. That way the
857 current cell is properly updated when programatically set.
858 Fire RowEnter/Leave events.
860 2008-11-30 Ivan N. Zlatev <contact@i-nz.net>
862 * DataGridView.cs: Update the CurrencyManager.Position, so that
863 when a BindingSource is used BindingSource.Current will be correct.
865 2008-11-30 Ivan N. Zlatev <contact@i-nz.net>
867 * GroupBoxRenderer.cs: Fix when VisualStyles disabled:
868 - No caption text is drawn because Color.Empty is used.
869 - Fix top and height off by 1.
871 2008-11-30 Ivan N. Zlatev <contact@i-nz.net>
873 * DataGridViewRow.cs: Implement DataBoundItem.
875 2008-11-30 Ivan N. Zlatev <contact@i-nz.net>
877 * BindingSource.cs: Return null for Current if there is no data present.
879 2008-11-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
881 * MenuAPI.cs: Add a Menu.SelectedItem null check when navigating the
882 menus using the arrow keys. Also when handling the left arrow key, don't
883 assign the current menu to the parent one, if the parent is null.
886 2008-11-24 Everaldo Canuto <ecanuto@novell.com>
888 * PrintPreviewDialog.cs: Fix toolbar size, height must be 26. Fixes bug
891 2008-11-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
894 * ScrollableControl.cs: Simplify the code to manually set the size of
895 the thum area, avoiding duplication of code, and also preserving the
896 right value for different code paths - this can happen when size
897 changes are made to the scrollbar after setting LargeChange, Maximum
898 or related properties for the ScrollBar.
900 2008-11-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
902 * ScrollableControl.cs: When scrolling, don't invalidate the entire
903 area, and call to XplatUIX11.ScrollWindow instead. This is exactly
904 what .Net does: copy the visible area, and only invalidate the part of
905 the area that wasn't visible before scrolling.
908 2008-11-24 Jonathan Pobst <monkey@jpobst.com>
910 * DataGridView.cs: Listen for a DataTable's TableCleared event so we
911 can clear ourselves when it is raised, we don't have a newrowindex
912 if we don't have any columns.
913 * DataGridViewRowCollection.cs: Ensure we always delete all the rows,
914 re-index after each delete so the NewRow will have the correct index.
917 2008-11-24 Jonathan Pobst <monkey@jpobst.com>
919 * Form.cs: Don't change min/max size if it is empty.
922 2008-11-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
925 * ScrollableControl.cs: When the manual thumb size is used, the
926 maximum allowed value should depend on that thumb size, instead of
927 LargeChange (using the maximum - LargeChange + 1 value). But
928 LargeChange should be used normally when incrementing/decrementing.
929 Fixes the remaining part of #441546.
931 2008-11-23 Andreia Gaita <avidigal@novell.com>
933 * WebBrowser.cs, WebBrowserBase.cs: Delay loading of DocumentStream
934 until an about:blank has been loaded (according to spec). Fix
935 ScrollbarsEnabled to set when a document is loaded (since we use js
936 for it). Fix url so it reflects the current loading document and not
937 the previous one. Send StatusChanged events.
939 2008-11-23 Andreia Gaita <avidigal@novell.com>
941 * Application.cs: If a message comes in for an embedded control
942 (like webbrowser) when we're capturing the keyboard, release the
943 capture and continue.
946 2008-11-22 Andreia Gaita <avidigal@novell.com>
948 * XplatUI.cs: Only use PlatformID.MacOSX enum when not building on VS
950 2008-11-21 Andreia Gaita <avidigal@novell.com>
952 * WebBrowser.cs, HtmlDocument.cs: Fixes for #428172
954 2008-11-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
957 * ScrollableControl.cs: Set manually the thumb size for the
958 ScrollableControl scrollbars, so any further changes to the underneath
959 scrollbars respect the original size.
960 Fixes part of #441546.
962 2008-11-21 Geoff Norton <gnorton@novell.com>
964 * XplatUI.cs: Ensure that we can run on .net 2.0 with mono 2.2 where
965 PlatformID.MacOSX now exists.
967 2008-11-20 Jonathan Pobst <monkey@jpobst.com>
969 * TextBoxBase.cs: Provide a default implementation for ChangeBackColor.
970 Having something internal abstract isn't very nice for people who want
971 to inherit from this class.
973 2008-11-20 Jonathan Pobst <monkey@jpobst.com>
975 * ToolStripItem.cs: Don't crash if ImageIndex or ImageKey is set to an
976 invalid value. Just return null for the Image, and use the ImageList's
977 ImageSize for calculations.
979 2008-11-20 Jonathan Pobst <monkey@jpobst.com>
981 * ComboBox.cs: Call HideWindow instead of Hide when closing the dropdown
982 through DroppedDown so the proper events get called and state gets reset.
985 2008-11-18 Jonathan Pobst <monkey@jpobst.com>
987 * DataGridViewColumnCollection.cs: Make sure we re-index the columns after
988 the collection is modified.
990 2008-11-17 Jonathan Pobst <monkey@jpobst.com>
992 * DomainUpDown.cs: Remove string cache and reflection optimizations. They
993 aren't always correct, and fixing them for every case is not worth the
994 negligible benefit they provide.
997 2008-11-17 Jonathan Pobst <monkey@jpobst.com>
999 * DataGridView.cs: We should never add actual cells to the RowTemplate.
1000 Internally, use RowTemplateFull to give us a new row with cells.
1001 * DataGridViewColumnCollection.cs: Clear Rows when we clear Columns.
1002 * DataGridViewRowCollection.cs: Use RowTemplateFull.
1004 2008-11-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1006 * XplatUIX11.cs: Forms without borders should be able to change its
1007 size - specially they should be able to be maximized, adding the
1008 respective MotifFunctions.Resize bit when setting window properties as
1009 well as *not* marking the Hwnd as size fixed.
1012 2008-11-12 Jonathan Pobst <monkey@jpobst.com>
1014 * DataGridViewCellStyle.cs: Allow SelectionBackColor to have
1018 2008-11-11 Jonathan Pobst <monkey@jpobst.com>
1020 * DataGridView.cs: Add internal to OnAutoSizeColumnModeChanged.
1021 * DataGridViewColumn.cs: Recalculate columns when AutoSizeMode changes. Raise
1022 AutoSizeColumnModeChanged.
1025 2008-11-11 Jonathan Pobst <monkey@jpobst.com>
1027 * DataGridViewRowCollection.cs: Guard against the user deleting the
1028 NewRow. Add an internal delete so we can still delete it.
1029 * DataGridView.cs: Use the new internal delete when deleting the NewRow.
1032 2008-11-10 Jonathan Pobst <monkey@jpobst.com>
1034 * TextControl.cs: Add some order of operation to our math so
1035 we don't end up with a negative height for our invalidate rect.
1038 2008-11-10 Jonathan Pobst <monkey@jpobst.com>
1040 * Control.cs: When our enabled changes, notify our implicit children
1041 controls as well as our regular controls.
1044 2008-11-08 Andreia Gaita <shana@jitted.com>
1046 * HtmlElement.cs: Small code cleanup
1048 2008-11-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1050 * BindingNavigator.cs: MoveFirstItem should be enabled only if
1051 position is larger than 0, not only different than 0. Also Position
1052 and Count items should be enabled if the BindingSource is non null and
1056 2008-11-05 Jonathan Pobst <monkey@jpobst.com>
1058 * TabControl.cs: Don't raise SelectedIndexChanged until we have
1059 actually modified the tab collection, so TabCount will be correct.
1062 2008-11-05 Sandy Armstrong <sanfordarmstrong@gmail.com>
1064 * ListViewItem.cs: Mark ListViewSubItem.UIATextChanged event as
1065 NonSerialized to fix serialization of ListViewItem.
1067 2008-11-04 Mike Gorse <mgorse@novell.com>
1069 * ListView.cs: Call OnUIAFocusedItemChanged after completing the
1070 focus change, and always call in SetFocusedItem.
1071 * ListBox.cs: Add UIAFocusedItemChanged as in ListView.
1073 2008-11-04 Jonathan Pobst <monkey@jpobst.com>
1075 * ComboBox.cs: Only call OnDrawItem when we are using an OwnerDraw
1076 mode. Based on a patch by John Mortlock.
1079 2008-11-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1081 * ListView.cs: Use the UsingGroups property where needed, instead of
1082 duplicating the check in other places.
1084 2008-11-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1086 * ListView.cs: When calculating layout, refresh the count of items
1087 belonging to the default item, insteas of doing it only one time. This
1088 was already working fine for icon views, not not for details.
1091 2008-11-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1095 * ThemeWin32Classic.cs: Don't render Tile view if there wasn't a call
1096 to Applicatin.EnableVisualStyles, and use LargeIcon view, as .net
1100 2008-11-03 Sandy Armstrong <sanfordarmstrong@gmail.com>
1102 * ListView.cs: Wrap call to OnUIAFocusedItemChanged with #if NET_2_0.
1104 2008-11-03 Sandy Armstrong <sanfordarmstrong@gmail.com>
1106 * ListView.cs: Add internal UIAFocusedItemChanged event. Fixes bug
1107 #441280, patch by Mike Gorse <mgorse@novell.com>.
1109 2008-11-03 Jonathan Pobst <monkey@jpobst.com>
1111 * TreeView.cs: When doing ExpandAll, don't scroll to the bottom
1112 if there is no scrollbar.
1115 2008-11-03 Jonathan Pobst <monkey@jpobst.com>
1117 * ProgressBar.cs, ThemeWin32Classic.cs, ThemeVisualStyles.cs: Commit
1118 patch from Andy Hume that fixes many issues with ProgressBar.
1121 2008-11-03 Jonathan Pobst <monkey@jpobst.com>
1123 * Form.cs: Don't allow MinimumSize and MaximumSize to conflict.
1126 2008-11-03 Sandy Armstrong <sanfordarmstrong@gmail.com>
1130 * NumericUpDown.cs: Internal events added to UpDownBase:
1131 UIAUpButtonClick and UIADownButtonClick. Patch by Neville Gao
1134 2008-11-03 Sandy Armstrong <sanfordarmstrong@gmail.com>
1136 * ToolStripLabel.cs: Internal event added: UIAIsLinkChanged.
1138 2008-11-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1141 * ThemeWin32Classic.cs: Don't use groups nor insertion mark in
1142 Application.EnableVisualStyles hasn't been called.
1143 Fixes part of #437933.
1145 2008-10-31 Andreia Gaita <shana@jitted.com>
1147 * Form.cs (SetVisibleCore): since set_ActiveControl no longer calls focus
1148 if the container is not focused already, we need to specifically set
1149 focus to the first available control, or to the form itself if there
1152 2008-10-31 Andreia Gaita <shana@jitted.com>
1154 activate message fix: a call to .Show now waits until both WM_SHOWWINDOW and
1155 WM_ACTIVATE have been processed before returning, so it is guaranteed that
1156 once it returns and the form is visible, it is actually on the screen on X11
1158 * ContainerControl.cs: Only send focus to the control if the top container
1159 is already focused. This is so that, when a form is first shown, all
1160 the enter/leave events are done first before any focus stuff comes in.
1161 If a control has no top container, there's an extra check on Control.Focus
1162 to make sure it gets focused in this particular case.
1164 * Control.cs: Force focus if the control is active but did not receive
1165 focus after being set as active.
1167 * MdiClient.cs: Dispose the form when closing
1169 * XplatUIX11.cs: When mapping and unmapping windows, make sure the call
1170 doesn't return until both WM_SHOWWINDOW and WM_ACTIVATE have come in
1171 if the window is a top Form.
1172 Reset all hwnd properties when the window has been destroyed so that
1173 we don't land in any codepaths that might try to do something with it.
1174 Added a bunch of debugging messages. If TRACE is defined, all X calls
1175 are logged through DebugHelper. Set a few missing EntryPoint attributes.
1177 2008-10-29 Mario Carrion <mcarrion@novell.com>
1179 * ListViewItem.cs: Control enabled to support Accessibility:
1180 - Internal events: UIATextChanged, UIASubItemTextChanged.
1181 - Internal event UIATextChanged in ListViewSubItem that triggers
1182 UIASubItemTextChanged.
1183 * ListView.cs: Control enabled to support Accessibility:
1184 - Internal events: UIACheckBoxesChanged, UIAMultiSelectChanged,
1185 UIAShowGroupsChanged, UIAViewChanged and UIALabelEditChanged.
1186 - Internal event UIACollectionChanged in ColumnHeaderCollection.
1187 - Internal event UIACollectionChanged in ListViewItemCollection.
1188 - Internal properties: UIAHeaderControl, UIAColumns, UIARows,
1189 UIADefaultListViewGroup, UIAHScrollBar and UIAVScrollBar.
1190 - Internal methods: UIAGetHeaderBounds.
1192 2008-10-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1194 * ScrollableControl.cs: Actually fire the 2.0 Scroll event when we get
1195 the event from the respective scrollbars.
1198 2008-10-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1200 * ComboBox.cs: Use the new CanNavigateAutoCompleteList property of the
1201 textbox to know whether any navigation key will be handled or not. If
1202 not, don't pass the message to the textbox, and use it here instead.
1203 * TextBox.cs: Define a new CanNavigateAutoCompleteList property -which
1204 is more precise- than the previous AutoCompleteMatches one.
1205 This should the keyboard navigation in ComboBox when using auto
1208 2008-10-24 Jonathan Pobst <monkey@jpobst.com>
1210 * ComboBox.cs: Fix item height calculation based off Font to match .Net.
1213 2008-10-24 Jonathan Pobst <monkey@jpobst.com>
1215 * ToolStripDropDownItem.cs: Call OnClick instead of base.OnClick so
1216 overridden methods will get called.
1217 * ToolStripItem.cs: Raise Click before MouseUp.
1218 * ToolStripSplitButton.cs: Fix up some bounding rectangles to take
1219 the item's location into account.
1222 2008-10-24 Neville Gao <nevillegao@gmail.com>
1224 * NumericUpDown.cs: Control enabled to support accessibility.
1225 [Fiexes bug #438135]
1227 2008-10-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1229 * TextBox.cs: Check that we actually have items no navigate, select
1230 text when pressing enter, as well as handle direction keys only if
1231 mode is different to Suggest or the suggest listbox is visible.
1233 2008-10-23 Andreia Gaita <shana@jitted.com>
1235 * WebBrowser.cs: Use the new ContentStream property to retrieve
1236 a stream encoded from the document content
1238 2008-10-23 Andreia Gaita <shana@jitted.com>
1242 HtmlWindow.cs: Fix GetHashcode for null objects
1244 2008-10-22 Andreia Gaita <shana@jitted.com>
1248 HtmlWindow.cs: Fix equality operators (fixes #428173)
1250 2008-10-21 Jonathan Pobst <monkey@jpobst.com>
1252 * XplatUIWin32.cs: Apply patch from John Mortlock that ensures
1253 mouse_state gets set during WM_MOUSEMOVE and WM_NCMOUSEMOVE.
1256 2008-10-21 Jonathan Pobst <monkey@jpobst.com>
1258 * ComboBox.cs: Fire SelectedIndexChanged when the user selects the
1259 same item with the mouse as was already selected.
1262 2008-10-21 Brad Taylor <brad@getcoded.net>
1264 * TextControl.cs: Break out code to get the visible range into
1265 GetVisibleLineIndexes to be used in UIA code.
1269 * TextBoxBase.cs: Add comments indicating that the method or property
1270 is used via reflection from UIA code.
1272 2008-10-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1274 * ListViewItem.cs: Match .net serialization.
1275 Fixes remaining part of #417520.
1277 2008-10-20 Jonathan Pobst <monkey@jpobst.com>
1279 * ToolStripProfessionalRenderer.cs: Don't paint over a set BackgroundImage.
1281 2008-10-20 Mario Carrion <mcarrion@novell.com>
1283 * ErrorProvider.cs, ToolTip.cs, HelpProvider.cs: UIA internal property
1284 added: UIAToolTipRectangle.
1286 2008-10-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1288 * ListViewItem.cs: When deserializing enumerate over the data, instead
1289 of accessing the data directly. This way we handle much better the
1290 cases were we lack information.
1293 2008-10-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1295 * ListView.cs: When removing an item from a main ListView.Items
1296 collection (and not a ListViewGroupCollection.Items one), remove it
1297 also from the group, as .net does. Patch by Mario Carrion (mario at
1301 2008-10-19 Andreia Gaita <avidigal@novell.com>
1303 * Form.cs: Forms that get closed without a handle being created are
1304 disposed in 2.0. Fixes failing FormTest.FormClose and
1305 FormTest.FormClose2 on windows.
1307 2008-10-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1309 * ListView.cs: If both scrollbars are visible, the vertical one
1310 shouldn't extend too far down.
1313 2008-10-17 Jonathan Pobst <monkey@jpobst.com>
1315 * DataGridView.cs: Add the ability to resize columns and rows with
1316 the mouse. Also support double-clicking to autoresize.
1317 * DataGridViewColumn.cs: Invalidate the grid if a column's width changes.
1318 * DataGridViewRow.cs: Invalidate the grid if a row's height changes.
1319 * DataGridViewTextBoxCell.cs: Add 1 to preferred width so ellipsis
1320 isn't shown on autoresize.
1323 2008-10-17 Mario Carrion <mcarrion@novell.com>
1325 * ComboBox.cs: Remove UIAListbox.
1327 2008-10-17 Mario Carrion <mcarrion@novell.com>
1329 * ComboBox.cs, ListBox.cs: Using added/removed item in
1330 OnUIACollectionChangedEvent instead of index.
1332 2008-10-17 Jonathan Pobst <monkey@jpobst.com>
1334 * ComboBox.cs: When we are sorting the items, if the item's type
1335 doesn't support IComparer, use a default one that compares based
1336 off the item's visible text.
1339 2008-10-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1341 * ColumnHeader.cs: Invalidate ListView.header_control when setting
1342 ImageIndex/ImageKey.
1343 * ThemeWin32Classic.cs: When drawing the column header, draw a image
1344 for the column if available, and make the required adjustments to the
1348 2008-10-17 Neville Gao <nevillegao@gmail.com>
1350 * StatusBarPanel.cs: Control enabled to support accessibility.
1353 2008-10-16 Jonathan Pobst <monkey@jpobst.com>
1355 * DataGridView.cs: When a user begins an edit in the 'new row',
1356 make that a real row, and add a new 'new row'. If the user
1357 cancels the edit, remove the new 'new row' and reset everything.
1358 Also, ensure UserAddedRow and UserRemovedRow events are raised.
1361 2008-10-16 Ivan N. Zlatev <contact@i-nz.net>
1363 * TableLayoutSettings.cs: Fix NREs when deserializing and
1364 panel is not yet set.
1367 2008-10-16 Jonathan Pobst <monkey@jpobst.com>
1369 * DataGridView.cs: Invalidate after deleting a row.
1371 2008-10-16 Jonathan Pobst <monkey@jpobst.com>
1373 * DataGridView.cs: Handle Enter and Escape keys.
1374 - Move call to EndEdit to MoveCurrentCell.
1375 - Remove call to EndEdit from navigation key routines.
1376 - Fire CellLeave and CellEnter.
1378 2008-10-16 Jonathan Pobst <monkey@jpobst.com>
1380 * DataGridViewCell.cs: Some fixes to the new cell border
1383 2008-10-16 Jonathan Pobst <monkey@jpobst.com>
1385 * ThemeEngine.cs: Enable visualstyles rendering by default
1386 (on platforms that support it).
1388 2008-10-15 Ivan N. Zlatev <contact@i-nz.net>
1390 * XplatUIX11.cs, XplatUICarbon.cs: Do not Timer.Tick before
1391 MainForm.OnLoad has completed unless DoEvents is forced.
1394 2008-10-15 Jonathan Pobst <monkey@jpobst.com>
1396 * ToolTip.cs: Ensure that Timer.Internal cannot be set to 0.
1398 2008-10-15 Jonathan Pobst <monkey@jpobst.com>
1400 * Control.cs: Make our implementation of DrawToBitmap better
1401 match WmPaint. [Fixes bug #435579]
1403 2008-10-14 Andreia Gaita <avidigal@novell.com>
1405 * WebBrowser.cs: Use DocumentElement as the document's root for the
1406 whole content. Should fix DocumentText and DocumentStream problems.
1408 2008-10-14 Jonathan Pobst <monkey@jpobst.com>
1410 * DataGridViewColumnCollection.cs: Remove calls to OnColumnAddedInternal,
1411 these will get called in DGV.OnCollectionChanged. Make sure
1412 OnCollectionChanged always gets called.
1413 * DataGridView.cs: Make a OnColumnRemovedInternal that removes the cells
1414 from every row. Call this in OnCollectionChanged.
1417 2008-10-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1419 * ComboBox.cs: WM_KEYDOWN and WM_KEYUP messages should be sent to the
1420 textbox if auto complete is used, since we need to navigate over it.
1421 And in this case don't pass this messages to the base impl. Also hide
1422 the auto complete list box when displaying the drop down listbox.
1423 * TextBox.cs: new internal members to expose some of the auto complete
1424 functionality to combobox.
1426 2008-10-13 Ivan N. Zlatev <contact@i-nz.net>
1428 * XplatUIX11.cs, XplatUICarbon.cs, Form.cs: Do not Timer.Tick before
1429 MainForm.OnLoad has completed.
1432 2008-10-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1434 * TextBox.cs: Apply an old-approved patch that adds autocomplete's
1435 Append support to this controls. We need it to apply new patches.
1437 2008-10-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1439 * Control.cs: When updating z order in child controls, send to back
1440 the implicit controls. Also, do it explicitly, instead of making
1441 GetAllControls return the implicit controls in a specific order, and
1442 thus avoid depending on that, which could change in the future.
1445 2008-10-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1447 * X11Dnd.cs: Try to call Application.DoEvents before returning in a
1448 call to StartDrag, since we must fire DragDrop/DragLeave *before*
1449 that, as .net does - instead of firing DragDrop/DragLeave *after* the
1450 call to Control.DoDragDrop has completed. This is needed since at the
1451 point of returning, we have sent related dnd ClientMessages, but we
1452 need to wait for them to fire the wmf respective ones.
1455 2008-10-09 Everaldo Canuto <ecanuto@novell.com>
1457 * LinkLabel.cs: Recreate link pieces when change Padding.
1459 2008-10-09 Everaldo Canuto <ecanuto@novell.com>
1461 * LinkLabel.cs: Take Padding into account when recreate link pieces.
1464 2008-10-08 Everaldo Canuto <ecanuto@novell.com>
1466 * Control.cs: Implement internal property PaddingClientRectangle, it will be
1467 useful for drawing controls that must take care about Padding property.
1469 2008-10-08 Jonathan Pobst <monkey@jpobst.com>
1471 * BindingSource.cs: Make item_type internal so we can access it in DGV.
1472 * DataGridView.cs: Add support for autogenerating columns from a
1475 2008-10-07 Jonathan Pobst <monkey@jpobst.com>
1477 * DataGridView.cs: Comment out an exception that is getting thrown
1478 too often currently.
1480 2008-10-07 Jonathan Pobst <monkey@jpobst.com>
1482 * DataGridView.cs: Always rebind to the datasource, as things may
1483 have changed in it that we aren't capturing yet.
1485 2008-10-07 Jonathan Pobst <monkey@jpobst.com>
1487 * DataGridViewTextBoxCell.cs: Don't default to VerticalCenter font
1488 drawing mode. If we are top aligned, give ourselves some top padding.
1490 2008-10-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1492 * X11Dnd.cs: When firing the default dnd enter/leave events, fire the
1493 events on the control under the mouse pointer, instead of firing them
1494 on the window generating the dnd operation. To achieve this re-use the
1495 code used to get the window under the pointer when getting MouseMove
1499 2008-10-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1501 * X11Dnd.cs: Don't check that that the window sending the dnd events
1502 is the owner of the selection. Although Gtk+ sets it that way, it's
1503 not a requirement of the XDnd protocol, and Qt doesn't seem to do it.
1504 So, just as Gtk+ does, we set our window sending the dnd events as the
1505 owner of the selection, but don't check it when receiving them. This
1506 should fix interoperability with Qt/Kde.
1509 2008-10-06 Jonathan Pobst <monkey@jpobst.com>
1511 * DataGridView.cs: Make sure we take the vertical scrollbar into
1512 account when autosizing columns.
1514 2008-10-06 Jonathan Pobst <monkey@jpobst.com>
1516 * DataGridView.cs: Handle sorting datetimes.
1518 2008-10-04 Ivan N. Zlatev <contact@i-nz.net>
1520 * ButtonBase.cs, Control.cs, Label.cs, PictureBox.cs, TabControl.cs,
1521 TextBoxBase.cs, ToolBar.cs, TrackBar.cs, TreeView.cs: Cleanup
1522 compilation warnings.
1524 2008-10-03 Ivan N. Zlatev <contact@i-nz.net>
1526 * RTF.cs, Application.cs, BindingContext.cs, BindingSource.cs,
1527 ContextMenuStrip.cs, Control.cs, Hwnd.cs, Line.cs, MaskedTextBox.cs,
1528 ProgressBar.cs, SaveFileDialog.cs, TextControl.cs, Theme.cs,
1529 ToolBar.cs, ToolStripItemCollection.cs, TrackBar.cs: Cleanup
1530 compilation warnings.
1532 2008-10-03 Ivan N. Zlatev <contact@i-nz.net>
1534 * DataGridView.cs, DataGridViewCell.cs,
1535 DataGridViewCellValidatingEventArgs.cs,
1536 DataGridViewComboBoxEditingControl.cs, DataGridViewHeaderCell.cs,
1537 DataGridViewRow.cs, DataGridViewRowHeaderCell.cs,
1538 DataGridViewTextBoxEditingControl.cs: Cleanup compilation warnings.
1540 2008-10-03 Ivan N. Zlatev <contact@i-nz.net>
1542 * HtmlElementEventArgs.cs, HtmlWindowCollection.cs:
1543 Cleanup compilation warnings.
1545 2008-10-03 Ivan N. Zlatev <contact@i-nz.net>
1547 * XplatUIWin32.cs: Cleanup compilation warnings.
1549 2008-10-03 Ivan N. Zlatev <contact@i-nz.net>
1551 * PropertyGrid.cs: Cleanup compilation warnings.
1553 2008-10-02 Jonathan Pobst <monkey@jpobst.com>
1555 * DataGridViewRow.cs: Only clear the row background if we
1556 are going to paint a new background.
1558 2008-10-02 Jonathan Pobst <monkey@jpobst.com>
1560 * DataGridViewCell.cs, DataGridViewColumnHeaderCell.cs,
1561 DataGridViewRowHeaderCell.cs: Remove PaintPartBorder and
1562 use PaintBorder instead.
1564 2008-10-02 Jonathan Pobst <monkey@jpobst.com>
1566 * DataGridView.cs: When CellBorderStyle is set, update the
1567 AdvancedCellBorderStyle to match.
1569 2008-10-02 Jonathan Pobst <monkey@jpobst.com>
1571 * DataGridViewCell.cs: Add helper methods to convert Alignment
1572 to TextFormatFlags and align rectangles.
1573 * DataGridViewTextBoxCell.cs: Use Alignment when painting text.
1574 * DataGridViewImageCell.cs: Use Alignment when painting the image.
1576 2008-10-02 Ivan N. Zlatev <contact@i-nz.net>
1578 * ToolTip.cs: Display tooltips only for controls on the active form.
1581 2008-10-02 Jonathan Pobst <monkey@jpobst.com>
1583 * DataGridView.cs: Make OnCellValueNeeded internal.
1584 * DataGridViewCell.cs: Raise the CellValueNeeded event so the
1585 user can supply their own value if they choose.
1587 2008-10-02 Jonathan Pobst <monkey@jpobst.com>
1589 * DataGridViewColumnHeaderCell.cs: Create a new style object
1590 so the DefaultCellStyle doesn't get changed.
1592 2008-10-02 Jonathan Pobst <monkey@jpobst.com>
1594 * ToolStripItem.cs: Check to make sure the owner is actually
1595 changing in InternalOwner before doing any work. Fixes some
1598 2008-10-01 Jonathan Pobst <monkey@jpobst.com>
1600 * DataGridViewColumnHeaderCell.cs: Correctly calculate style.
1601 * DataGridView.cs: Use a column header's inherited style instead
1602 of just using the default.
1604 2008-10-01 Jonathan Pobst <monkey@jpobst.com>
1606 * SplitContainer.cs: Raise SplitterMoved when the splitter is
1609 2008-10-01 Mario Carrion <mcarrion@novell.com>
1611 * ScrollBar.cs: Internal property added: UIAThumbPosition.
1613 2008-10-01 Jonathan Pobst <monkey@jpobst.com>
1615 * ToolStripOverflowButton.cs: Use InternalOwner instead of Owner.
1617 2008-10-01 Jonathan Pobst <monkey@jpobst.com>
1619 * ToolStripItem.cs: When the user sets Owner, we need to remove
1620 it from its previous owner and then add it to the new owner's
1621 item collection. Also, create InternalOwner, so we can set the owner
1622 that doesn't do this new stuff.
1623 * ToolStripItemCollection.cs: Use InternalOwner instead of Owner.
1625 2008-10-01 Jonathan Pobst <monkey@jpobst.com>
1627 * ToolStripItem.cs: When our parent changes, recalculate our text
1628 size, since we may be getting our Font from our parent. When our
1629 owner's Font changes, recalculate ourselves as we may be using
1632 2008-10-01 Everaldo Canuto <ecanuto@novell.com>
1634 * MenuAPI.cs: Select the first option of a popup when opening the popup via
1635 return key. [Fixes bug #413792].
1637 2008-10-01 Jonathan Pobst <monkey@jpobst.com>
1639 * ToolStripItem.cs: Make Font, BackColor, and ForeColor be
1640 ambient properties. (Get their value from their parents if
1641 values haven't been set.)
1643 2008-10-01 Jonathan Pobst <monkey@jpobst.com>
1645 * ToolStripSystemRenderer.cs: Call overridden methods' bases
1646 after our logic, so users can do painting by handling the events.
1647 Currently, we draw over any user painting.
1649 2008-10-01 Jonathan Pobst <monkey@jpobst.com>
1651 * ToolStripProfessionalRenderer.cs: Call overridden methods' bases
1652 after our logic, so users can do painting by handling the events.
1653 Currently, we draw over any user painting.
1655 2008-09-30 Everaldo Canuto <ecanuto@novell.com>
1657 * MenuAPI.cs: Prevent NRE when deactivate menu. Fixes #413636.
1659 2008-09-30 Jonathan Pobst <monkey@jpobst.com>
1661 * TreeNode.cs, TreeView.cs: Move logic that determines the node
1662 image to draw to TreeNode. Give Index/Keys put on the node
1663 precedence over the global one for the TreeView.
1665 2008-09-30 Jonathan Pobst <monkey@jpobst.com>
1667 * TreeNode.cs: Setting ImageIndex or ImageKey should reset the other.
1669 2008-09-29 Mario Carrion <mcarrion@novell.com>
1671 * ListBox.cs: Index fixed.
1673 2008-09-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1675 * TabControl.cs: When expanding the tab -because it's selected now-,
1676 using Right alignment, instead of adding some selected delta value to
1677 the X origin, substract it, so it gets a location adjacent to the panel,
1678 instead of be more separated.
1681 2008-09-29 Jonathan Pobst <monkey@jpobst.com>
1683 * MessageBox.cs: Use SystemIcons for graphics instead of keeping our
1686 2008-09-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1688 * X11Dnd.cs: source and related fields should be set to IntPtr.Zero,
1689 as well as the other static fields, to avoid using their previous
1690 values my mistake when handling the dnd events. This should avoid
1691 handling any status event after the drop has been finalized/cancelled.
1693 2008-09-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1695 * X11Dnd.cs: We have to send a dnd enter event as soon as we start the
1696 operation, instead of waiting until we get any movement - this will
1697 help us to have the data available in case no movement was detected
1698 and _still_ we have to fire DragEnter and DragLeave/DragDrop events.
1699 Finally add a windows.forms-only fallback to fire the mentioned events
1700 if no movement at all was detected, just like .net does.
1703 2008-09-27 Jonathan Pobst <monkey@jpobst.com>
1705 * ThemeWin32Classic.cs: When drawing a status bar panel, don't
1706 return early if the text is empty because the icon doesn't get
1707 drawn then. [Fixes bug #428113]
1709 2008-09-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1711 * FileDialog.cs: Implement basic support for sorting by columns in
1712 Details view. Patch by Eric Petit.
1715 2008-09-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1717 * ThemeWin32Classis.cs: When drawing gridlines take into account the
1718 case where ListView.ItemSize hasn't been computed, and provide a
1719 fallback as well. This prevents a division by 0.
1721 2008-09-24 Jonathan Pobst <monkey@jpobst.com>
1723 * ThemeVisualStyles.cs: Use ClientRectangle instead of Bounds to
1724 correctly draw tooltip backgrounds.
1726 2008-09-24 Jonathan Pobst <monkey@jpobst.com>
1728 * ImageList.cs: Change CopyTo implementation to ensure clones are
1729 created of our images.
1732 2008-09-24 Jonathan Pobst <monkey@jpobst.com>
1734 * Control.cs: When setting fonts, we need to ensure we change our
1735 reference to the new font object, even if it represents the same
1736 font as before. If we don't, the original font can get disposed
1737 and we will still try to use it.
1740 2008-09-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1742 * FileDialog.cs: Take into account Tile view when selecting the view
1745 2008-09-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1747 * ThemeWin32Classic.cs: When drawing gridlines for ListView don't use
1748 the item bounds, since we can't iterate over them in virtual mode.
1749 Also fix wrong calculation of the gridlines when using scrolling.
1752 2008-09-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1754 * XplatUIX11.cs: When handling EnterNotify events, take into account
1755 both the public and implicit controls when trying to detect the
1756 grab/ungrab process. This should fix ListView selection in Details
1759 2008-09-23 Jonathan Pobst <monkey@jpobst.com>
1761 * TreeView.cs: Redraw the whole node area when the selected node changes.
1762 Things like state images were not getting redrawn because the invalid
1763 rectangle was too small.
1766 2008-09-23 Mario Carrion <mcarrion@novell.com>
1768 * ListBox.cs: UIA Selection Pattern fully supported in ListBox control.
1771 2008-09-23 Jonathan Pobst <monkey@jpobst.com>
1773 * Form.cs: Do not set the Form's icon in the backend if showicon = false.
1776 2008-09-23 Jonathan Pobst <monkey@jpobst.com>
1778 * ThemeWin32Classic.cs: Allow tooltips to be multiline.
1781 2008-09-23 Jonathan Pobst <monkey@jpobst.com>
1783 * StatusBar.cs: Add tooltip support.
1786 2008-09-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1788 * ThemeWin32Classic.cs: Use StringAlignment.Center for the vertical
1789 alignments of sub items in Details view. Patch by John Mortlock (johnm at
1790 hlaustralia.com.au).
1793 2008-09-23 Neville Gao <nevillegao@gmail.com>
1795 * StatusBar.cs: Add UIA event in AddInternal () to support accessibility.
1798 2008-09-22 Jonathan Pobst <monkey@jpobst.com>
1800 * TextBoxBase.cs: Set Text to "" instead of null in Clear().
1803 2008-09-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1805 * ListView.cs: Don't do anything when EnsureVisible is called inside a
1806 BeginUpdate/EndUpdate block.
1809 2008-09-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1811 * ListViewItem.cs: The semantics for the public .ctor of
1812 ListViewSubItemCollection need us to already have a Text value for the
1813 item, which in our implementation have as available *after* adding the
1814 first sub item. So create an internal .ctor that satisfies our needs
1815 and let the public .ctor have the same semantics as .net.
1818 2008-09-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1820 * ListControl.cs: Changes in Formatting related values should call
1821 RefreshItems, as .net does.
1823 * ListBox.cs: In the respective overrides of RefreshItems calculate
1824 layout as well as refreshing - again, this is what .net does.
1827 2008-09-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1829 * ListBox.cs: In UpdateTopItem, don' call to XplatUI.ScrollWindow,
1830 since we are already doing that when we change the value of the
1831 scrollbar or force the call to ScrollWindow in the same method. This
1832 way we don't cause a Invalidate call for all the listbox bounds for
1833 methods calling UpdateTopItem with an already updated top item. This
1834 was happening specially calling EnsureVisible with already visible
1837 2008-09-18 Mike Gorse <mgorse@novell.com>
1839 * Application.cs, IKeyFilter.cs, X11Keyboard.cs, XplatUI.cs,
1840 XplatUIStructs.cs: Added KeyFilter
1843 2008-09-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1845 * RelatedPropertyManager.cs: The properties returned by
1846 GetItemProperties should be that ones of the *actual* object returned
1847 by the property, not the property type - this is very special when the
1848 property exposes a type, but the returned object actually is a child
1849 class and implements more functionality and properties.
1851 2008-09-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1853 * Binding.cs: Don't look for the property in the data source if the
1854 passed string is empty.
1856 2008-09-18 Ivan N. Zlatev <contact@i-nz.net>
1858 * XplatUIX11.cs: Comment out _NET_WM_WINDOW_TYPE_DIALOG in order to
1859 fix unused variable warnings.
1861 2008-09-18 Ivan N. Zlatev <contact@i-nz.net>
1863 * XplatUIX11.cs: Send WM_HELP when F1 is pressed.
1866 2008-09-18 Ivan N. Zlatev <contact@i-nz.net>
1869 - Do not set _NET_WM_WINDOW_TYPE_DIALOG for modal forms, because this
1870 leads to the window manager overriding our border style and zorder.
1871 - Allow the activation of non-modal forms, which are children of a
1875 2008-09-17 Ivan N. Zlatev <contact@i-nz.net>
1877 * XplatUIX11.cs, X11Structs.cs: For mapped windows SetTopMost should
1878 ask the window manager to do the work instead of changing the property
1882 2008-09-17 Everaldo Canuto <ecanuto@novell.com>
1884 * CurrencyManager.cs: Check for positon before call ChangeRecordState in
1885 AddNew to fix some navigation for empty datasets. [Fixes #323053]
1887 2008-09-17 Everaldo Canuto <ecanuto@novell.com>
1889 * FileDialog.cs: Remove OnPaint method on PopupButtonPanel and set
1890 InternalBorderStyle to BorderStyle.Fixed3D. It is the best way to get 3d
1891 border and fixes some drawing issues when resize form.
1893 2008-09-17 Everaldo Canuto <ecanuto@novell.com>
1895 * FileDialog.cs: Lots of layout fixes to mimic Win32. [Fixes #408752]
1897 * ThemeWin32Classic.cs: We don't need to reduce button size when it is
1900 2008-09-17 Ivan N. Zlatev <contact@i-nz.net>
1902 * TextBoxBase.cs: For standard textbox the scrollbars are always
1903 visible if Multiline is true.
1906 2008-05-12 Everaldo Canuto <ecanuto@novell.com>
1908 * DataGridTextBoxColumn.cs: Uncomment code accidentally commited in last
1911 2008-05-12 Everaldo Canuto <ecanuto@novell.com>
1913 [Fixes most od DBNull and HeadersVisible problems]
1916 - ShowingColumnHeaders removed because we dont need it, ColumnHeadersVisible
1917 returns the value that we need.
1918 - Fixed FromPixelToColumn method that return zero for first column and for
1919 row header cell, now it returns -1 for row header cell.
1920 - Fixed HitTest to check row header cell in column header area, it now
1921 returns HitTestType.None. [Fixes #322864]
1922 - Fixed the calculation of visible columns in UpdateVisibleColumn, now it
1923 checks for RowHeadersVisible and other things.
1924 - If an exception occurs when setting CurrentCell and user type 'yes' in
1925 message dialog, invalidade current and new cell and set setting_current_cell
1926 to false to prevent future errors. [Partially fixes #323050]
1928 * DataGridColumnStyle.cs: Don't call EndEdit after set property_descriptor
1929 value (SetColumnValueAtRow), it must be done by grid to properly show
1930 messages. [Fixes #323050]
1932 * ThemeWin32Classic.cs: Lots of fixes in DataGridPaintColumnHeaders to
1933 better draw column and row header. Also dont draw anything when column
1934 headers is not visible.
1936 2008-09-16 Jonathan Pobst <monkey@jpobst.com>
1938 * ThemeWin32Classic.cs: Hook ListViewItems into the ShowFocusCues
1941 2008-09-16 Jonathan Pobst <monkey@jpobst.com>
1943 * TreeView.cs: Don't start editing a node on right click, only
1946 2008-09-16 Jonathan Pobst <monkey@jpobst.com>
1948 * NativeWindow.cs: Reenable the ThreadExceptionDialog I accidentally
1949 disabled over a year ago.
1950 * Form.cs: Wrap calling Load in a try/catch because it can happen
1951 before the catch-all one in NativeWindow.
1954 2008-09-16 Jonathan Pobst <monkey@jpobst.com>
1956 * ToolStripDropDownMenu.cs: Calculate the connected area better
1957 to take into account when the drop down is not directly under the
1959 * ToolStripProfessionalRenderer.cs: Draw the whole unconnected area.
1961 2008-09-16 Mario Carrion <mcarrion@novell.com>
1963 * ScrollBar.cs: New event added: UIAValueChanged, generated when
1964 LargeChange, SmallChange, Maximum or Minimum values are changed.
1967 2008-09-16 Mario Carrion <mcarrion@novell.com>
1969 * ErrorProvider.cs: Component enabled to support accessibility.
1970 * Application.cs: Updated to Initialize UIA in ErrorProvider.
1973 2008-09-16 Jonathan Pobst <monkey@jpobst.com>
1975 * TextBoxBase.cs: Flag has_been_focused when SelectionStart is set
1976 so we don't highlight on first focus.
1979 2008-09-16 Jonathan Pobst <monkey@jpobst.com>
1981 * TextControl.cs: Correctly calculate the height of the area we
1982 need to invalidate when we have started scrolling and viewport_y
1983 is used. [Fixes bug #387608]
1985 2008-09-16 Jonathan Pobst <monkey@jpobst.com>
1987 * TextControl.cs: When getting the SelectedText, don't add in
1988 NewLine characters, as they are already contained in the lines.
1991 2008-09-16 Jonathan Pobst <monkey@jpobst.com>
1993 * TextBoxBase.cs: Replace the buggy Lines setter with one that
1994 simply concats the lines and send it to the Text setter.
1995 [Fixes issue #2 and #3 of 388115]
1997 2008-09-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1999 * Binding.cs: The default value of DataSourceNullValue should be
2000 Convert.DBNull actually. Also, the NullValue should only be used *if*
2001 itself is not null, and use the null/Convert.DBNull value instead.
2003 2008-09-15 Jonathan Pobst <monkey@jpobst.com>
2005 * TextControl.cs: Add a method to convert a string newline to the
2007 * TextBoxBase.cs: When the user hits enter, insert a native newline.
2008 [Fixes part 1 of bug #388115]
2010 2008-09-15 Mario Carrion <mcarrion@novell.com>
2012 * ToolTip.cs: UnPopup event set to internal to match public API.
2014 2008-09-15 Jonathan Pobst <monkey@jpobst.com>
2016 * TextBoxBase.cs: If the user is using Ctrl-Tab to move focus, we
2017 have to remove the Ctrl in order for the focus moving code to kick in.
2020 2008-09-15 Jonathan Pobst <monkey@jpobst.com>
2022 * CheckedListBox.cs: Return the real item index from Add. It may not be
2023 the last item if the list is sorted. The user can change the NewValue in
2024 the ItemCheck event, we need to use that value if so.
2025 * ListBox.cs: Return the real item index from a sorted Add.
2028 2008-09-15 Ivan N. Zlatev <contact@i-nz.net>
2030 * MimeIcon.cs: Add null checks in the GnomeHandler, because it might
2031 happen that the icons from the theme is missing or the particular size
2035 2008-09-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2037 * Binding.cs: When assigning null or DBNull depending on value/ref type,
2038 use IsValueType instead to get the precise desired value.
2041 2008-09-12 Jonathan Pobst <monkey@jpobst.com>
2043 * TreeNodeCollection.cs: When adding a new node to an opened node,
2044 we have to invalidate everything below the parent node because
2045 every node scoots down and we have to repaint them.
2048 2008-09-12 Jonathan Pobst <monkey@jpobst.com>
2050 * ThemeWin32Classic.cs: Take CheckBox and RadioButton's CheckAlign
2051 property into account when drawing.
2054 2008-09-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2056 * ListBox.cs: When calling Items.Clear(), call
2057 SelectedIndexCollection.ClearCore instead of normal Clear method, to
2058 not fire any Selected*Changed event - this is done to match .net and
2059 don't have invalid values when changing the DataSourceProperty.
2062 2008-09-12 Mario Carrion <mcarrion@novell.com>
2064 * HelpProvider.cs: Control enabled to support accessibility.
2065 * Application.cs: Updated to Initialize UIA in HelpProvider.
2068 2008-09-12 Jonathan Pobst <monkey@jpobst.com>
2070 * Form.cs: When we are showing a dialog box, if its owner is TopMost,
2071 make the dialog TopMost as well.
2074 2008-09-12 Jonathan Pobst <monkey@jpobst.com>
2076 * Win32DnD.cs, XplatUIWin32.cs: Applied patch from Andy Hume that handles
2077 clipboard data better.
2080 2008-09-12 Jonathan Pobst <monkey@jpobst.com>
2082 * TextBoxBase.cs: Applied patch from John Mortlock that ensures
2083 TextChanged and SelectionChanged events fire in the same order as .Net.
2086 2008-09-12 Jonathan Pobst <monkey@jpobst.com>
2088 * DataGridView.cs: When sorting a column, if it only contains numbers,
2089 do a numeric sort instead of a string sort.
2092 2008-09-12 Jonathan Pobst <monkey@jpobst.com>
2094 * TableLayoutSettings.cs, TableLayoutStyleCollection.cs: Guard
2095 against NRE's when the settings have a null panel.
2096 * TableLayoutPanel.cs: When setting the TableLayoutSettings, ensure
2100 2008-09-11 Mario Carrion <mcarrion@novell.com>
2102 * ToolTip.cs: Control enabled to support accessibility.
2103 * Application.cs: Updated to Initialize UIA in ToolTip.
2106 2008-09-11 Jonathan Pobst <monkey@jpobst.com>
2108 * Control.cs: Make the custom Enumerator internal to fix build.
2110 2008-09-11 Jonathan Pobst <monkey@jpobst.com>
2112 * DataGridViewCheckBoxCell.cs: If our content is clicked and we aren't
2113 already in edit mode, begin edit mode. Generally edit mode isn't
2114 started until the second click, but CheckBoxes are special.
2116 2008-09-11 Jonathan Pobst <monkey@jpobst.com>
2118 * ErrorProvider.cs: Never try to add our icons to ContainerControl,
2119 since that can be set to anything. Always add them to the Control's
2120 parent. [Fixes bug #416058]
2122 2008-09-11 Jonathan Pobst <monkey@jpobst.com>
2124 * ListView.cs: Use a custom enumerator for ListViewItemCollection
2125 so items can be deleted in a foreach.
2128 2008-09-11 Jonathan Pobst <monkey@jpobst.com>
2130 * DataGridViewRow.cs: Better implementation of GetPreferredHeight.
2131 Store the user set explicit height so that the row can be AutoSized
2132 and then when AutoSize is turned off, it can get its original size back.
2133 * DataGridView.cs: Use the Row's GetPreferredHeight instead of
2134 duplicating the logic. When setting AutoSizeRowsMode to None, reset
2135 rows' heights back to their explicit values.
2138 2008-09-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2140 * DateTimePicker.cs: When getting focus, select the checkbox if we are
2141 already showing it. Also, don't change its value when pressing space
2142 if the checkbox is not visible (ShowCheckBox as false). Finally, the
2143 checkbox should remain selected as long as Checked is false, and the
2144 other parts are disabled.
2147 2008-09-11 Jonathan Pobst <monkey@jpobst.com>
2149 * MessageBox.cs: Handle shortcut keys to dialog buttons.
2152 2008-09-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2154 * Binding.cs: When the value retrieved from the control property is
2155 null, don't return Convert.DBNull for Nullable instances, since they
2156 can *actually* get a null value.
2159 2008-09-10 Jonathan Pobst <monkey@jpobst.com>
2161 * Control.cs: Add an internal field to force doublebuffering regardless
2162 of what the public mechanisms are set to. This is because MS's native
2163 controls are doublebuffered even though their .Net bits are set to false.
2164 * ProgressBar.cs: Set force_double_buffer to true.
2167 2008-09-10 Jonathan Pobst <monkey@jpobst.com>
2169 * DataGridViewCheckBoxColumn.cs: Use the threestate constructor for
2171 * DataGridViewCheckBoxCell.cs: Add proper support for threestate.
2172 * DataGridViewCell.cs: Implement GetEditedFormattedValue for types
2173 without EditingControls, paint background selection for types without
2174 EditingControls, reset the EditingCellValueChanged flag when the
2175 cell's value is committed.
2176 * DataGridView.cs: Make BeginEdit and EndEdit work with cells that don't
2177 have EditingControls, remove a double call to a cell's OnContentClickInternal,
2178 don't do cell changing logic in OnMouseDown if the cell didn't change.
2181 2008-09-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2183 * DateTimePicker.cs: Fix the edition of am/pm specifier.
2185 2008-09-09 Jonathan Pobst <monkey@jpobst.com>
2187 * TextControl.cs: Add "&" to the list of valid characters in a URL.
2189 2008-09-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2191 * DateTimePicker.cs: Before incrementing or decrementing any part in
2192 the textbox, end any current edit. Also when ending the current edit
2193 use the editing_part_index field instead of the current selected
2194 value, since they can be out of synch, and we really need to work on
2195 the *real* current edit part. Finally when PartData.Selected changes,
2196 always try to end any ongoing edit.
2197 This should fix some small errors handling mouse navigation and
2198 increase/decrease operations.
2200 2008-09-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2202 * DateTimePicker.cs: 'hh' and 'HH' formats (12 and 24 hour formats
2203 respectively) should handled different, since the 12 hours format
2204 needs the value typed by the user to be adjusted depending on the
2205 a.m/p.m value, so it is preserved, and only changed when the value
2206 reaches the 12 value (when it changes from a.m to p.m).
2207 Fixes part of #416555.
2209 2008-09-08 Jonathan Pobst <monkey@jpobst.com>
2211 * ToolStrip.cs: Ensure MouseDown gets called for MenuStrip items.
2212 * ToolStripDropDownItem.cs: Don't fire events and such again if
2213 ShowDropDown is called on an already dropped down item.
2214 * ToolStripMenuItem.cs: Call ShowDropDown even if there aren't any
2215 subitems, the user may add some in the DropDownOpening event.
2218 2008-09-08 Jonathan Pobst <monkey@jpobst.com>
2220 * ComboBox.cs: Fix IOORE when setting SelectedItem to null.
2223 2008-09-08 Jonathan Pobst <monkey@jpobst.com>
2225 * MdiClient.cs: When looking for menustrips on a child form to merge,
2226 look inside ToolStripContainers.
2229 2008-09-08 Ivan N. Zlatev <contact@i-nz.net>
2231 * ErrorProvider.cs: Unbreak my previous commit.
2233 2008-09-08 Ivan N. Zlatev <contact@i-nz.net>
2235 * ErrorProvider.cs: Icon should always be 16x16.
2238 2008-09-07 Ivan N. Zlatev <contact@i-nz.net>
2240 * GridEntry.cs: Invalidate the child items cache when the property
2243 2008-09-07 Ivan N. Zlatev <contact@i-nz.net>
2245 * GridEntry.cs, PropertyGridView.cs:
2246 - Update the ReadOnly detection and rendering to finally hopefully
2247 match the one of MSFT.
2248 - Niceify and move the debug CWLS.
2251 2008-09-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2253 * ListView.cs: Don't call Invalidate at all from SetItemLocation,
2254 since we are already calling Invalidate for the entire control when
2255 needed - and call Redraw() when size changes, since we need to paint
2256 there by ourselved and not anymore from the mentioned method.
2257 This should improve the layout process. Also clean some not needed calls
2260 2008-09-05 Jonathan Pobst <monkey@jpobst.com>
2262 * MenuAPI.cs: Add a null check to the Alt-F4 code.
2265 2008-09-05 Jonathan Pobst <monkey@jpobst.com>
2267 * ThreadExceptionDialog.cs: Disable AutoScaling for this dialog.
2270 2008-09-04 Ivan N. Zlatev <contact@i-nz.net>
2272 * GridEntry.cs, CategoryGridEntry.cs, RootGridEntry.cs, PropertyGrid.cs,
2273 PropertyGridView.sc: Implement lazy/delayed propertygrid population
2274 on item expansion. Improves performance and fixes bug #417955.
2277 2008-09-05 Stephane Delcroix <sdelcroix@novell.com>
2279 * Control.cs: only check for OptimizedDoubleBuffer in NET_2_0.
2282 2008-09-04 Jonathan Pobst <monkey@jpobst.com>
2284 * TextControl.cs: Add "_" to the list of valid characters in a URL.
2287 2008-09-04 Jonathan Pobst <monkey@jpobst.com>
2289 * Control.cs: If using OptimizedDoubleBuffer, ensure the clip
2293 2008-09-04 Jonathan Pobst <monkey@jpobst.com>
2295 * FontDialog.cs: When storing our font size from the starting font,
2296 use SizeInPoints instead of Size in case Size is a different unit
2300 2008-09-04 Jonathan Pobst <monkey@jpobst.com>
2302 * FileDialog.cs: When enter is pressed on a SaveFileDialog and we
2303 don't use it for anything else, check if a directory is highlighted.
2304 If it is, navigate into it.
2307 2008-09-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2309 * Binding.cs: When acquiring a BindingManagerBase for the first time,
2310 check that the specified property actually exists in the data source,
2311 and throw an ArgumentException if that's not the case - this is only
2312 done for this scenario, since for later cases (such Position changes)
2313 we throw different exceptions (match .Net).
2315 2008-09-03 Ivan N. Zlatev <contact@i-nz.net>
2317 * ButtonBase.cs CheckBox.cs, Control.cs, FlowLayoutPanel.cs,
2318 FlowLayoutSettings.cs, GroupBox.cs, Label.cs, ListBox.cs,
2319 PropertyGrid.cs, RadioButton.cs, TableLayoutPanel.cs,
2320 TableLayoutSettings.cs, ToolStrip.cs, ToolStripDropDownButton.cs,
2321 ToolStripDropDownMenu.cs, ToolStripItem.cs, ToolStripSplitButton.cs,
2322 ToolStripStatusLabel.cs: Add missing PerformLayout calls to various
2326 2008-09-03 Neville Gao <nevillegao@gmail.com>
2328 * StatusBar.cs: Control enabled to support accessibility.
2331 2008-09-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2333 * Binding.cs: When connecting the event handler for the "Changed"
2334 event for the property, only do it for PropertyManager, and not for
2335 CurrencyManager - this is exactly what does .Net, totally ignoring any
2336 change in the property of the elements of a list.
2339 2008-09-02 Jonathan Pobst <monkey@jpobst.com>
2341 * XplatUIWin32.cs: Ensure we never send the WS_EX_MDICHILD flag
2342 to Windows when creating a window, as we fake MDI stuffs.
2345 2008-09-01 Ivan N. Zlatev <contact@i-nz.net>
2347 * TextBox.cs: Invalidate after UseSystemPasswordChar, so that the
2348 change takes effect.
2350 2008-08-24 Ivan N. Zlatev <contact@i-nz.net>
2352 * XplatUIX11.cs: Provide MouseButtons/State information to the XPlatUI.
2355 2008-08-27 Jonathan Pobst <monkey@jpobst.com>
2357 * DataGridView.cs: Raise CellContentClick event.
2358 [Fixes part of bug #420351]
2360 2008-08-27 Mario Carrion <mcarrion@novell.com>
2362 * ScrollBar.cs: Control enabled to support accessibility.
2365 2008-08-27 Mario Carrion <mcarrion@novell.com>
2367 * ComboBox.cs: Control enabled to support accessibility.
2370 2008-08-27 Mario Carrion <mcarrion@novell.com>
2372 * ListBox.cs: Control enabled to support accessibility.
2375 2008-08-27 Jonathan Pobst <monkey@jpobst.com>
2377 * ComboBox.cs: Don't suppress the TextChanged event when changing
2379 * ToolStripComboBox.cs: Listen to the ComboBox's TextChanged event
2383 2008-08-26 Jonathan Pobst <monkey@jpobst.com>
2385 * ErrorProvider.cs: Fix a regression NRE when setting properties
2386 for a control before it has a parent.
2389 2008-08-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2391 * Binding.cs: Use the BindingManagerBase.Current value to obtain
2392 connect the property "Changed" event, instead of using the data
2393 sources - this is useful when the property specifies actually a
2394 multiple objects path.
2395 Fixes part of #417973.
2397 2008-08-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2399 * RelatedPropertyManager.cs: PropertyManager instances associated to a
2400 nested properties should return not the properties of the data source
2401 itself, but the properties of the type of a specific property in the
2402 data source - match .net.
2404 2008-08-24 Gert Driesen <drieseng@users.sourceforge.net>
2406 * ListBox.cs (IntegerCollection): To avoid duplication, moved code for
2407 AddRange overloads into AddItems method, and added missing NULL check.
2408 Added extra argument check to RemoveAt for compatibility with MS.
2409 Modified IList implementation of Add, Contains, IndexOf and Remove to
2410 throw an ArgumentException if item is not an int. Modified IList.Insert
2411 to throw a NotSupportException instead of an Exception. Implemented
2413 (ObjectCollection): To avoid duplication, use AddItems method from
2414 AddRange overloads. On 1.0 profile, first perform NULL check on items
2417 2008-08-23 Gert Driesen <drieseng@users.sourceforge.net>
2419 * Control.cs: Do not modify bounds directly in .ctor's. Fixes bug
2422 2008-08-22 Atsushi Enomoto <atsushi@ximian.com>
2424 * X11Keyboard.cs : comment out some Console.WriteLine().
2426 2008-08-22 Atsushi Enomoto <atsushi@ximian.com>
2428 * X11Keyboard.cs : fixed wrong call to XOpenIM() which happened
2429 even if premises are not filled. Also XLookupString() was not
2430 receiving correct input, which blocked precise input handling
2433 2008-08-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2435 * ListView.cs: When calling OnCacheVirtualItems, cast to the right
2436 type of delegate, instead of EventHandler - this was causing a type
2437 cast exception in all apps handling this event.
2440 2008-08-20 Jonathan Pobst <monkey@jpobst.com>
2442 * ToolStripDropDownItem.cs: Always raise DropDownOpening in
2443 ShowDropDown to give the user a chance to dynamically add
2444 drop down items. [Step 1 of fixing bug #417877]
2446 2008-08-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2448 * X11Dnd.cs: Don't fire pseudo motion DragOver events if we haven't
2449 had any mouse motion since the call to StartDrag, to match the dnd
2451 Fixes part of #381876.
2453 2008-08-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2455 * XplatUIX11.cs: Only do the children control bounds check for EnterNotify
2456 if mode is NotifyUngrab, and let it flow if mode is NotifyNormal.
2457 Also, if we are actually moving into a different window after
2458 grabbing, generate a LeaveNotify event for the previous window, since
2459 we need to fire the leave events until the grab ends, not when
2460 actually moving outside of the control.
2462 2008-08-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2464 * XplatUIX11.cs: The check inside EnterNotify case to fire MouseEnter
2465 events only for client windows was wrong - we need to compare the
2466 client window against the window receiving the EnterNotify event, not
2467 against zero (since client window is never Zero, btw).
2468 This prevents having unnecessary handling of EnterNotify events for
2469 non-client windows when a gran begins.
2471 2008-08-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2473 * XplatUIX11.cs: Handling X ButtonPress events, we must *not* generate
2474 MouseMove/MotionNotify events at all (which should only happen after
2475 MouseUp/ButtonRelease, as .Net does).
2476 This avoids firing an extra and unnecessary MouseMove event just after
2477 every MouseDown event.
2479 2008-08-19 Jonathan Pobst <monkey@jpobst.com>
2481 * LinkLabel.cs: Always clear any previous links when LinkArea
2482 is set. [Fixes bug #410709]
2484 2008-08-19 Jonathan Pobst <monkey@jpobst.com>
2486 * ToolStripProfessionalRenderer.cs: Revert last change.
2487 * ProfessionalColorTable.cs: For Classic, use SystemColors.Window
2488 for ToolStripDropDownBackground.
2490 2008-08-19 Jonathan Pobst <monkey@jpobst.com>
2492 * ToolStripProfessionalRenderer.cs: Use Window color for the
2493 background of dropdowns to match .Net when the user is not
2494 using the default white. [Fixes bug #418108]
2496 2008-08-19 Atsushi Enomoto <atsushi@ximian.com>
2498 * XplatUIWin32.cs : SetTimer() used to set wrong window handle and
2499 it caused timer registration twice. Fixed bug #418107.
2501 2008-08-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2503 [Correction: This is the actual change to X11Dnd issue, not the
2504 previous one, which was actually a different issue.]
2506 * X11Dnd.cs: Increase the interval for the Timer, to not fire our
2507 pseudo motion HandleMouseOver method so aggresive. Also, don't call it
2508 when the pointer is actually in motion, but only when the pointer
2509 seems to stop (as .net does).
2510 Fixes part of #381876.
2513 2008-08-18 Jonathan Pobst <monkey@jpobst.com>
2515 * ListBox.cs: Fix CopyTo implementation.
2518 2008-08-18 Jonathan Pobst <monkey@jpobst.com>
2520 * ThemeWin32Classic.cs: Use ClientRectangle instead of Bounds when
2521 drawing a ComboBox's background. Fixes bad disabled rendering when
2522 the control is not at 0,0.
2525 2008-08-16 Ivan N. Zlatev <contact@i-nz.net>
2527 * GridEntry.cs: Leave the ICustomTypeDescriptor handling up to the
2528 ComponentModel layer, which will properly prioritize the attributes.
2529 Avoids wrong prioritization of duplicate attributes when retrieving
2530 the converter and editor.
2533 2008-08-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2535 * XplatUIX11.cs: Increase the interval for the Timer, to not fire our
2536 pseudo motion HandleMouseOver method so aggresive. Also, don't call it
2537 when the pointer is actually in motion, but only when the pointer
2538 seems to stop (as .net does).
2539 Fixes part of #381876.
2541 2008-08-15 Ivan N. Zlatev <contact@i-nz.net>
2543 * GridEntry.cs: Perform stricter check for the ParentEntry's
2544 PropertyDescriptor/PropertyOwner for the ICustomTypeDescriptor
2548 2008-08-14 Geoff Norton <gnorton@novell.com>
2550 * XplatUICarbon.cs: Properly implement PeekMessage and DoEvents.
2551 Fixes #396983. Properly fix ActiveWindow trackin and do not
2552 prematurely show POPUP windows.
2554 2008-08-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2556 * XplatUIX11.cs: Handle the obscured regions while scrolling using
2557 GraphicsExpose event, processing it just after we copy the scrolled
2558 area. This ensures that the next calls to ScrollWindow will copy
2559 regions already updated, and the scrolling will be smooth. Also remove
2560 the code that was trying to detect the obscured regions, since we are
2561 not using it anymore (too slow).
2563 2008-08-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2565 * ListBox.cs: Fix the -temporary- broken selection in ListBox for
2566 MultiExtended mode, by separating some logic between the ctrl/shift
2567 handling. Also ignore any MouseMove events generated together with
2568 MouseDown events - we are only interested in the real motion event.
2569 Fixes part of #414963.
2571 2008-08-08 Jonathan Pobst <monkey@jpobst.com>
2573 * DataGridViewCell.cs: Guard against an AOORE when checking if a cell
2574 is selected. [Fixes bug #414143]
2576 2008-08-07 Ivan N. Zlatev <contact@i-nz.net>
2578 * GridEntry.cs: Check if current property is a ICustomTypeDescriptor
2579 and not the parent one (the propertyowner). Fixes the behavior of
2580 GetConverter/GetEditor.
2583 2008-08-07 Ivan N. Zlatev <contact@i-nz.net>
2585 * PropertyGrid.cs: Refresh should also repopulate the PropertyGrid.
2586 [Fixes part of bug #415452]
2588 2008-08-05 Ivan N. Zlatev <contact@i-nz.net>
2590 * GridEntry.cs: ITypeDescriptorContext should be relative to the parent
2591 GridEntry, not the current.
2594 2008-08-04 Ivan N. Zlatev <contact@i-nz.net>
2596 * TextBoxBase.cs: De-internalize max_length field.
2597 * RichTextBox.cs: Use base.MaxLength - both TextBoxBase and RichTextBox
2598 share the same logic.
2601 2008-08-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2603 * ListBox.cs: Selection changes made in the MouseDown handler should
2604 use the *Core versions of selection in SelectedIndices collection,
2605 since the SelectedIndexChanged/SelectedValueChanged events are fired
2606 until we get a MouseUp event, and thus we need to separate the logic
2607 from the events, as done in the keyboard navigation. Also, fire those
2608 selection events from keyboard navigation in SelectionMode.None, even
2609 if we don't have a selection, as .Net does.
2611 2008-08-01 Jonathan Pobst <monkey@jpobst.com>
2613 * ToolStripButton.cs, ToolStripMenuItem.cs: Guard against a NRE my
2614 last change introduced when an item is clicked but isn't on a toolstrip.
2616 2008-07-31 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2618 * ListBindingHelper.cs: When looking for an object's properties, check
2619 if it implements ICustomTypeDescriptor, in which case we should
2620 resolve the propertu based on its GetProperties method, not in its
2621 actual properties. This is what .Net seems to do.
2622 Fixes a UsingWebBrowser problem during initialization.
2624 2008-07-31 Jonathan Pobst <monkey@jpobst.com>
2626 * ToolStrip.cs: Fix an NRE caused by clicking on a ToolStripButton
2627 sitting on a MenuStrip.
2629 2008-07-31 Jonathan Pobst <monkey@jpobst.com>
2631 * ToolStripButton.cs: If we "click" a top button on a menustrip that has
2632 no children with the keyboard, we need to release the keyboard capture.
2635 2008-07-31 Jonathan Pobst <monkey@jpobst.com>
2637 * ToolStripMenuItem.cs: If we "click" a top level menu item that has
2638 no children with the keyboard, we need to release the keyboard capture.
2641 2008-07-31 George Giolfan <georgegiolfan@yahoo.com>
2643 * ThemeVisualStyles.cs: Made ScrollBar rendering less strict so it supports
2644 the GTK+-based implementation of VisualStyles.
2645 * ThemeWin32Classic.cs: Exposed various layout values for use in the
2646 GTK+-based implementation of VisualStyles: ListViewGetHeaderHeight(Font),
2647 ListViewGetHeaderHeight(), ProgressBarChunkSpacing, ProgressBarGetChunkSize(),
2648 ProgressBarGetChunkSize(int), ProgressBarDefaultHeight,
2649 TrackBarGetThumbSize(), TrackBarVerticalTrackWidth,
2650 TrackBarHorizontalTrackHeight.
2652 2008-07-31 George Giolfan <georgegiolfan@yahoo.com>
2654 * TabControl.cs: Added hot style handling for the scroll buttons.
2655 right_slider_state, left_slider_state are now of type PushButtonState to
2656 allow for a hot state. Added tracking of the mouse button being held down
2657 on a tab page. Extracted HasHotElementStyles, RightScrollButtonArea,
2658 LeftScrollButtonArea.
2659 * Theme.cs, ThemeWin32Classic.cs: Removed TabControlGetLeftScrollRect,
2660 TabControlGetRightScrollRect.
2662 2008-07-30 Everaldo Canuto <ecanuto@novell.com>
2664 * MenuAPI.cs: Check for null GrabControl on ProcessMnemonic to prevent
2667 2008-07-30 Ivan N. Zlatev <contact@i-nz.net>
2669 * Form.cs: Ensure that we reset the shown_raised flag after
2670 the form is closed, so that we raise the show events the next
2671 time the form is shown.
2674 2008-07-30 Ivan N. Zlatev <contact@i-nz.net>
2676 * Form.cs: Ensure closing events are raised only once.
2679 2008-07-30 Ivan N. Zlatev <contact@i-nz.net>
2681 * X11Keyboard.cs: Refactor SendKeyboardInput to accept the keycode,
2682 so that we can successfully generate the LParam in-place instead of
2683 in KeyEvent, which isn't called for e.g. MainMenu. Fixes keyboard
2684 navigation for menus.
2686 2008-07-30 Everaldo Canuto <ecanuto@novell.com>
2688 * MenuAPI.cs: When montion don't set the keyboard navigation state to
2689 'navigating'. Fixes bug #411356.
2691 2008-07-30 Everaldo Canuto <ecanuto@novell.com>
2693 [Fixed remaining issues of #406773 (#1)]
2694 * MenuItem.cs: UpdateMenuItem added to track the shotcut changes.
2696 * MenuAPI.cs: Don't create tracker on TrackPopupMenu, it will be created in
2697 MainMenu (already done) and ContextMenu creation.
2699 * ContextMenu.cs: Create tracker on construction.
2701 2008-07-30 Everaldo Canuto <ecanuto@novell.com>
2703 * MenuAPI.cs: For ContextMenu set GrabControl on TrackPopupMenu, it make
2704 possible to instantiate MenuTracker without GrabControl.
2706 2008-07-30 Everaldo Canuto <ecanuto@novell.com>
2708 * MenuAPI.cs: On constructor dont set the GrabControl for non ContextMenu.
2710 * MainMenu.cs: Set GrabControl on SetForm using current form.
2712 2008-07-30 Everaldo Canuto <ecanuto@novell.com>
2714 * MenuAPI.cs: Chage grab_control to GrabControl and make it public.
2716 2008-07-30 Everaldo Canuto <ecanuto@novell.com>
2718 * MenuAPI.cs: Check if menu is activated before deactivate it in
2721 2008-07-30 Ivan N. Zlatev <contact@i-nz.net>
2723 * TableLayoutStyleCollection, TableLayoutStyle.cs, RowStyle.cs,
2725 Make the TableLayoutStyle owned by the the TableLayoutPanel, so that:
2726 - One style instance can only participate in a single style collection.
2727 - Styles can request their owner to layout whenever their properties
2729 [Fixes bugs #412583 and #412582]
2731 2008-07-29 Ivan N. Zlatev <contact@i-nz.net>
2733 * X11Keyboard.cs: Implement the generation of the LParam for
2734 all keyboard messages.
2737 2008-07-29 Jonathan Pobst <monkey@jpobst.com>
2739 * ListBox.cs: Don't let the user set TopIndex so high that it
2740 scrolls up far enough to show empty items.
2743 2008-07-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2745 * ThemeWin32Classic.cs: Actually commit the changes to fix #410880
2746 (I'm an idiot and forgot to commit the actual changes, as well as
2747 specify the right file, which is this one, not ListView.cs).
2749 2008-07-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2751 * ListView.cs: Don't draw ListViewSubItem instances from
2752 DrawListViewItem - we need to reuse the main item's drawing for the
2753 first sub item in case owner draw is true, but wants the system to
2754 do the default draw for the first sub item, without incurring in a
2758 2008-07-28 Jonathan Pobst <monkey@jpobst.com>
2760 * ToolStripButton.cs: Update Checked for CheckOnClick before
2761 raising the Click event. [Fixes bug #412505]
2763 2008-07-28 Ivan N. Zlatev <contact@i-nz.net>
2765 * Form.cs: Remove some seems leftover code for non-TopLevel's
2766 CreateParams, which is breaking ClientSize sizing, because it
2767 removes the border window styles.
2769 2008-07-27 Ivan N. Zlatev <contact@i-nz.net>
2771 * PropertyGrid.cs: Invalidate the View when the PropertyTab
2774 2008-07-25 Gert Driesen <drieseng@users.sourceforge.net>
2776 * WebBrowser.cs: Removed debug output.
2778 2008-07-25 Jonathan Pobst <monkey@jpobst.com>
2780 * FileDialog.cs: Apply patch from Ernesto to clean up some
2783 2008-07-25 Ivan N. Zlatev <contact@i-nz.net>
2785 * TableLayoutPanel.cs: Perform layout on GrowStyle change, so
2786 that the change has an immediate effect.
2788 2008-07-25 Ivan N. Zlatev <contact@i-nz.net>
2790 * ScrollableControl.cs: Update PerformLayout calls to include
2791 provide the name of the property that changed.
2793 2008-07-25 Ivan N. Zlatev <contact@i-nz.net>
2795 * TableLayoutPanel.cs: Draw relative to the DisplayRectangle
2796 location. Fixes drawing of border and cell borders if scrollable.
2798 2008-07-25 Ivan N. Zlatev <contact@i-nz.net>
2800 * ScrollableControl.cs: Perform layouting after the AutoScroll
2801 properties have changed, so that the changes have immediate
2805 2008-07-25 Ivan N. Zlatev <contact@i-nz.net>
2807 * XplatUIX11.cs: Non Client area is actually Client such in the
2808 case of NotifyIcon, so double check WholeWindow == ClientWindow
2809 when adding an expose.
2810 [Fixes bugs #324237 and #357022]
2812 2008-07-25 Ivan N. Zlatev <contact@i-nz.net>
2814 * TableLayoutPanel.cs: Invalidate after layouting, so that we
2815 repaint the cell borders.
2817 2008-07-25 Ivan N. Zlatev <contact@i-nz.net>
2819 * PropertyGridTextBox.cs: Stop filtering messages prior to our
2820 disposal to avoid unexpected ObjectDisposedExceptions.
2822 2008-07-24 Ivan N. Zlatev <contact@i-nz.net>
2824 * TableLayoutPanel.cs: Layout on Row/Column count change.
2826 2008-07-22 Gert Driesen <drieseng@users.sourceforge.net>
2828 * ListViewItem.cs: Changed binary serialization to match MS. Fixes
2830 * PictureBox.cs: When ImageLocation is set to null or an empty string,
2831 only set image to null if it was previously initialized from an url
2832 (or using ImageLocation). In ImageLocation, load specified image
2833 asynchronously if WaitOnLoad is false. Added support for local file
2834 paths to LoadAsync, and added missing argument check.
2836 2008-07-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2838 * DateTimePicker.cs:
2839 * ThemeWin32Classic.cs: Add a editing capability to DateTimePicker, in
2840 order to set the value as required (which means: when selection
2841 changes for a part being edited, and not before that if not needed).
2842 Also use an enum to describe which part are we using, and use the
2843 selection as a property in PartData, in order to notify the
2844 DateTimePicker owner that we need to end the current edit.
2847 2008-07-17 Ivan N. Zlatev <contact@i-nz.net>
2849 * PropertyGridTextBox.cs: Validation should be performed only if we
2850 are focused. We can lose focus for example if the Return key is used
2851 to set the entry and there is an error. When the message box is
2852 displayed we would have validate on click in the message box.
2854 2008-07-16 Ivan N. Zlatev <contact@i-nz.net>
2856 * GridEntry.cs: Checking for DesignerSerializaitonVisibility.Content
2857 in order to determine that we are expandable is wrong. There was a bug,
2858 now fixed, in TypeDescriptor that was causing the wrong converter to be
2859 returned which caused GetPropertiesSupported == false in most cases.
2862 2008-07-15 Jonathan Pobst <monkey@jpobst.com>
2864 * ImageList.cs: Fix ICollection.CopyTo implementation for
2865 ImageListCollection. [Fixes bug #409169]
2867 2008-07-14 Jonathan Pobst <monkey@jpobst.com>
2869 * MenuAPI.cs, ToolStripDropDown.cs: Use VirtualScreen instead of
2870 WorkingArea so that menus can appear on the second monitor
2871 when one has dual monitors.
2873 2008-07-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2875 * TextBox.cs: Auto complete stuff in WndProc should be 2.0 only.
2878 2008-07-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2880 * TextBox.cs: Implement navigation support for auto complete in
2881 TextBox, as well as refactor the code to show the auto complete window
2882 when receiving a WM_CHAR message, instead of TextChanged, since
2883 autocomplete itself should be able to set the Text a lot of times and
2884 finally only typing should show it, not changes from code.
2886 2008-07-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2888 * TabControl.cs: When expanding the selected tab, don't adjust the
2889 width if alignment is Right, since it has a different offset than 0,
2890 as opposed to the other alignments.
2891 Fixes the selected tab not being painted at all with alignment = Right
2892 and using FillToRight size mode.
2894 2008-07-14 Jonathan Pobst <monkey@jpobst.com>
2896 * TreeView.cs: Fix ToString to match MS. [Fixes bug #409029]
2898 2008-07-14 Jonathan Pobst <monkey@jpobst.com>
2900 * NumericUpDown.cs: Apply patch from Andy Hume to clamp out of range
2901 values from the textbox to the boundary values. [Fixes bug #409026]
2903 2008-07-14 Jonathan Pobst <monkey@jpobst.com>
2905 * TreeNodeCollection.cs: We were copying one too many elements when
2906 doing our array copy. Fixes a crash when RemoveAt is called.
2909 2008-07-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2911 * TabControl.cs: When doing the layout and need to call FillRow -using
2912 FillToRight size mode-, use the overload receiving a bool param
2913 indicating whether we need to do a vertical or horizontal calculation.
2914 Fixes part of #399583.
2916 2008-07-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2918 * TextBox.cs: When painting, use the value returned by
2919 GetLastVisibleItem instead of using the cached last_item field, since
2920 there could be a desynchronization between the layout and the
2921 painting. Fixes a AOOR exception in auto complete mode.
2923 2008-07-12 George Giolfan <georgegiolfan@yahoo.com>
2925 * ThemeVisualStyles.cs: Disabled when Application.VisualStyleState is
2926 NonClientAreaEnabled until our VisualStyles is modified to allow it.
2928 2008-07-12 Gert Driesen <drieseng@users.sourceforge.net>
2930 * TextBox.cs: Fixed NRE in LostFocus. Avoid unnecessary initialization.
2932 2008-07-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2934 * TextBox.cs: When focus is lost, if the auto complete listbox is
2937 2008-07-11 George Giolfan <georgegiolfan@yahoo.com>
2939 * InternalWindowManager.cs: HandleSizing: Implemented a better minimum
2940 tracking size for tool windows.
2941 * Theme.cs, ThemeWin32Classic.cs : Extracted
2942 ManagedWindowSpacingAfterLastTitleButton.
2944 2008-07-11 Jonathan Pobst <monkey@jpobst.com>
2946 * ThemeEngine.cs: Remove the clearlooks, nice, and old gtk themes.
2947 They are bit-rotted and have always been listed as "unsupported".
2949 2008-07-11 Jonathan Pobst <monkey@jpobst.com>
2951 * PictureBox.cs: Don't crash if ImageLocation is set to "" or null.
2953 2008-07-11 George Giolfan <georgegiolfan@yahoo.com>
2955 * ThemeVisualStyles.cs: Fixed minimized window height adjustment.
2957 2008-07-10 Jonathan Pobst <monkey@jpobst.com>
2959 * ListBox.cs: Make sure last_item_visible gets reset before we try
2960 to do a layout due to scrollbars appearing or disappearing.
2963 2008-07-10 Jonathan Pobst <monkey@jpobst.com>
2965 * XPlatUIWin32.cs: Change GetMenuOrigin to calculate borders better
2966 for different window themes. [Fixes bug #339140]
2968 2008-07-10 George Giolfan <georgegiolfan@yahoo.com>
2970 * ThemeWin32Classic.cs: Implemented minimized window border width properly,
2971 in ManagedWindowBorderWidth.
2973 2008-07-10 Jonathan Pobst <monkey@jpobst.com>
2975 * InternalWindowManager.cs: Change MouseMove to take a point, so
2976 we can use the same point later on.
2977 * MdiWindowManager.cs: Store point sent to MouseMove so we can
2978 later reset to it. On Windows, the Cursor.Position had already
2979 changed by the time we were resetting to it.
2982 2008-07-10 Jonathan Pobst <monkey@jpobst.com>
2984 * InternalWindowManager.cs: Ignore mouse actions on TitleButtons that
2986 * ThemeWin32Classic.cs: Disable or hide MinimizeBox/MaximizeBox if
2990 2008-07-10 Jonathan Pobst <monkey@jpobst.com>
2992 * MdiWindowManager.cs: Double-clicking on the title bar should not
2993 maximize a MDI form if MaximizeBox = false.
2995 2008-07-10 George Giolfan <georgegiolfan@yahoo.com>
2997 * ThemeVisualStyles.cs: Fixed a warning.
2999 2008-07-10 George Giolfan <georgegiolfan@yahoo.com>
3001 * ThemeVisualStyles.cs: Fixed warnings and formatted.
3003 2008-07-10 George Giolfan <georgegiolfan@yahoo.com>
3005 * ThemeVisualStyles.cs: Removed ManagedWindowGetMenuButtonSize. The base
3006 implementation produces a better result.
3008 2008-07-10 George Giolfan <georgegiolfan@yahoo.com>
3010 * ThemeVisualStyles.cs: Adjusted height and border rendering for minimized
3013 2008-07-10 George Giolfan <georgegiolfan@yahoo.com>
3015 * Application.cs: Added VisualStylesEnabled because XplatUI.ThemesEnabled
3016 cannot be used from the ThemeEngine constructor.
3017 * ThemeEngine.cs: Changed the XplatUI.ThemesEnabled check to
3018 Application.VisualStylesEnabled because it does not work on X11.
3020 2008-07-09 Jonathan Pobst <monkey@jpobst.com>
3022 * StatusBar.cs: Apply patch from Andy Hume to remove lazy instantiation
3023 that we did not always check for, as well as fixes to the IList
3024 implementations. [Fixes bug #402703]
3026 2008-07-09 George Giolfan <georgegiolfan@yahoo.com>
3028 * IDeviceContext.cs: Added Dispose.
3030 2008-07-09 George Giolfan <georgegiolfan@yahoo.com>
3032 * Control.cs: Added OnSizeInitializedOrChanged.
3033 * Form.cs: OnLoadInternal: Added a call to
3034 Control.OnSizeInitializedOrChanged.
3035 * InternalWindowManager.cs:
3036 * HandleTitleBarMouseMove: No longer invalidates the parent window.
3037 * DrawTitleButton: Extracted Theme.ManagedWindowDrawMenuButton.
3038 * TitleButton: Added Entered.
3039 * TitleButtons.MouseMove: Added handling of TitleButton.Entered.
3040 * MdiWindowManager.cs:
3041 * HandleTitleBarMouseMove: Now invalidates the parent window when a mouse
3042 move over the maximized title buttons causes a change.
3043 * IsActive: Can now be called before the window is added to a MDI parent.
3044 * Theme.cs: Added ManagedWindowTitleButtonHasHotElementStyle,
3045 ManagedWindowDrawMenuButton, ManagedWindowOnSizeInitializedOrChanged.
3046 * ThemeVisualStyles.cs: Implemented proper managed window rendering.
3047 * ThemeWin32Classic.cs:
3048 * Extracted ManagedWindowDrawTitleBarAndBorders, ManagedWindowDrawTitleButton.
3049 * DrawTitleButton takes a new form parameter.
3050 * Added ManagedWindowTitleButtonHasHotElementStyle,
3051 ManagedWindowDrawMenuButton, ManagedWindowOnSizeInitializedOrChanged.
3053 2008-07-09 George Giolfan <georgegiolfan@yahoo.com>
3055 * ThemeEngine.cs: ThemeVisualStyles is now selected if
3056 Application.EnableVisualStyles has been called, even if the current system
3057 configuration does not support rendering with Visual Styles.
3058 * ThemeVisualStyles.cs: Now falls back to ThemeWin32Classic when Visual
3059 Styles should not be used.
3061 2008-07-08 Jonathan Pobst <monkey@jpobst.com>
3063 * ComboBox.cs: PreferredHeight is not tied to ItemHeight. Fixes 3rd
3064 ComboBox in FormsTest.
3066 2008-07-08 Ivan N. Zlatev <contact@i-nz.net>
3068 * ThemeWin32Classic.cs: (ManagedWindowBorderWidth): width 3 is only
3069 for fixed toolwindows.
3071 2008-07-08 George Giolfan <georgegiolfan@yahoo.com>
3073 * Form.cs: SetBoundsCore: Added minimum size for minimized windows.
3075 2008-07-07 Ivan N. Zlatev <contact@i-nz.net>
3077 * Control.cs: CreateControl just returns if the Control is diposed
3078 and doesn't throw ObjectDisposedException.
3081 2008-07-07 Ivan N. Zlatev <contact@i-nz.net>
3083 * Control.cs: Do not create the control if the parent isn't created
3084 yet, e.g in the case of a parented form on which .Show is called.
3085 It will be created when the parent is made visible/created.
3088 2008-07-07 Ivan N. Zlatev <contact@i-nz.net>
3090 * Form.cs: Avoid recursively calling OnSizeChanged due to recursive
3091 WM_WINDOWPOSCHANGED caused by the layouting code on win32.
3094 2008-07-07 Ivan N. Zlatev <contact@i-nz.net>
3096 * Form.cs: When disposed set owner to null. Improves #402446.
3098 2008-07-07 Ivan N. Zlatev <contact@i-nz.net>
3100 * Form.cs, FlowLayoutPanel.cs: When calculating the PreferredSize
3101 use children's PreferredSize if in AutoSize mode and ExplicitBounds
3103 * Form.cs: Take the Padding into account for the PreferredSize.
3106 2008-07-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3108 * TabControl.cs: Since we don't support more than one direction in
3109 TabControl rows alignment (this is, the row becomes the
3110 bottom row when selected), make Direction return always 1. This way
3111 the layout doesn't get confused about a bad calculation.
3114 2008-07-07 Ivan N. Zlatev <contact@i-nz.net>
3116 * XplatUIX11.cs: Implement NC hit-testing for mouse down/up messages,
3117 so that the wparam is properly set.
3118 Fixes form moving in the test case in bug 402446.
3120 2008-07-07 Jonathan Pobst <monkey@jpobst.com>
3122 * FolderBrowserDialog.cs: If we can't find the SelectedPath, display
3123 the full tree instead of nothing. [Improves bug #406584]
3125 2008-07-07 George Giolfan <georgegiolfan@yahoo.com>
3127 * ThemeWin32Classic.cs: Adjusted minimized window painting.
3129 2008-07-07 George Giolfan <georgegiolfan@yahoo.com>
3131 * InternalWindowManager.cs: No longer draws decorations for maximized MDI
3134 2008-07-04 Jonathan Pobst <monkey@jpobst.com>
3136 * TreeView.cs: Add a null check when using CollapseAll on an
3137 empty tree. [Fixes bug #406449]
3139 2008-07-03 Jonathan Pobst <monkey@jpobst.com>
3141 * Form.cs: Make OnMenuComplete internal so we can call it.
3142 * MenuAPI.cs: Raise Form.MenuComplete when a menu item is clicked.
3145 2008-07-03 Jonathan Pobst <monkey@jpobst.com>
3147 * TabControl.cs: Handle Up and Down keys when TabControl is in
3151 2008-07-03 Jonathan Pobst <monkey@jpobst.com>
3153 * TabControl.cs: Invalidate when we remove a tab. Guard against
3154 an AOORE when trying to remove a tabpage that is not owned by the
3158 2008-07-03 Jonathan Pobst <monkey@jpobst.com>
3160 * ScrollBar.cs: Change the LargeChange calculation to be correct.
3161 Ensure we are using LargeChange instead of large_change so we our
3162 calculations are correct.
3165 2008-07-03 Jonathan Pobst <monkey@jpobst.com>
3167 * TableLayoutPanel.cs: When we change to a serialized TableLayoutSettings,
3168 we need to ensure the ColumnCount/RowCount gets set.
3171 2008-07-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3173 * ListBox.cs: When handling item navigation, if selection mode is
3174 None, call EnsureVisible, since scrolling is normally handled by
3175 selection, that we are not calling in this case.
3178 2008-07-02 Jonathan Pobst <monkey@jpobst.com>
3180 * ContainerControl.cs: Apply a patch from Ernesto Carrea that adds
3181 a null check to our focus walking code. [Fixes bug #394332]
3183 2008-07-02 Andy Hume <andyhume32 at yahoo dot co dot uk>
3185 * ComboBox.cs: Case missed in bug 379596 "Support item
3186 navigation by entering text": On _close_ drop-down select
3187 the first item matching the text in the textbox. [Fixes bug #397265]
3189 2008-07-02 Jonathan Pobst <monkey@jpobst.com>
3191 * DataGridView.cs: Fix a crash when sorting by column headers,
3192 mentioned in bug #404841. Remove some dead switch cases.
3194 2008-07-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3197 * TextBox.cs: Implement AutoComplete support for ComboBox, which just
3198 uses the AutoComplete support in the internal TextBox. Also TextBox
3199 can store a reference to ComboBox, in case AutoCompleteSource is set
3200 to ListItems (this is, ComboBox's items, and we don't want to pass an
3201 additional collection).
3203 2008-07-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3205 * ListViewItem.cs: Restore the initial value of bounds rect to
3206 Rectangle.Empty, and is this value for Layout detection in virtual
3207 mode. Fixes the tests.
3209 2008-06-30 Jonathan Pobst <monkey@jpobst.com>
3211 * XPlatUI.cs: Remove references to "new" X11 backend.
3213 2008-06-28 Ivan N. Zlatev <contact@i-nz.net>
3215 * Control.cs: Add an internal virtual OnDragDropEnd method
3216 to allow controls such as ListBox, which depend on a sequence
3217 of MouseDown+Move+End events, to handle the lack of a MouseUp
3218 when a DnD operation is started in MouseDown.
3219 * ListBox.cs: If a DnD operation is started in MouseDown we won't
3220 get a MouseUp, so reset our state whenever a DnD operation ends.
3222 2008-06-28 Ivan N. Zlatev <contact@i-nz.net>
3224 * PropertyGrid.cs: Clear the root griditem first thing when
3225 new object/s is/are selected. Fixes some rare cases where
3226 the View will get a paint request and won't know that the
3227 grid is in the process of repopulating.
3229 2008-06-27 Ivan N. Zlatev <contact@i-nz.net>
3231 * XplatUIX11.cs, InternalWindowManager.cs:
3232 If WS_EX_TOOLWINDOW is set in the CreateParams for a form MS
3233 doesn't automagically update the FormBorderStyle, so we must
3234 double check the CreateParams explicitly to determine if the
3235 window is a toolwindow.
3236 * ThemeWin32Classic.cs: Use InternalWindowManager.IsToolWindow
3237 instead of doing custom checks.
3239 Fixes toolwindows for the test case in bug #402446
3241 2008-06-27 Ivan N. Zlatev <contact@i-nz.net>
3243 * Control.cs: Visibility of the control should be false
3244 when the handle is destroyed in WmDestroy and not immediately
3245 in Dispose(). This is effectively where the disposing process
3246 ends even though the control is marked as Disposed immediately
3247 after calling Dispose().
3250 2008-06-27 Ivan N. Zlatev <contact@i-nz.net>
3252 * PropertyGridTextBox.cs: Start monitoring the mouse clicks
3253 when the textbox gets focus.
3256 2008-06-27 Ivan N. Zlatev <contact@i-nz.net>
3258 * PropertyGridTextBox.cs, PropertyGridView.cs:
3259 - Alt + Down should show the drop down editor.
3260 - Focus the editor when showing it
3263 2008-06-25 Jonathan Pobst <monkey@jpobst.com>
3265 * ThemeWin32Classic.cs: Fix from Andy for panel text for panels
3266 that are not the first panel.
3267 * StatusBar.cs: Ensure that the X coordinate of panels is always
3268 stored. Fix IList implementation of StatusBarPanelCollection to
3269 call the regular methods.
3270 [Fixes bug #403599, #402165]
3272 2008-06-23 Jonathan Pobst <monkey@jpobst.com>
3274 * ThemeWin32Classic.cs: Fix position calculation for centered
3275 text on status bar panels. [Fixes bug #402165]
3277 2008-06-22 Ivan N. Zlatev <contact@i-nz.net>
3279 * Splitter.cs: Fix Splitter to:
3280 - Work for arbitrary splitter size
3281 - Handle MinSize and MinExtra properly
3282 - Get rid of absolute positioning during drag and use relative
3283 - Multiple other fixes
3286 2008-06-22 Ivan N. Zlatev <contact@i-nz.net>
3288 * Cursor.cs: Show shouldn't hide the cursor.
3290 2008-06-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3292 * ListViewItem.cs: When invalidating, add some extra space to bounds,
3293 since focus rectangle and selection can add some space and need to
3294 take into account those small offsets - specially in Details view.
3295 * ListView.cs: Instead of invalidate using item Bounds directly, call
3296 item.Invalidate, to have the code centralized.
3297 Fixes focused/selection garbage when selecting and deselecting items
3300 2008-06-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3302 * ListViewItem.cs: Set bounds initially to -1 values - thus in virtual
3303 mode we can check whether we have to force a Layout or not, and can
3304 cache based on this, instead of avoiding caching all the the time. Do
3305 this check in GetBounds and TextBounds.
3306 Fixes selection in Details view.
3308 2008-06-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3310 * ListView.cs: Make HeaderControl internal, thus the theme engine can
3311 get its *real* height instead of trying to infere it.
3312 * ThemeWin32Classic.cs: When drawing gridlines, don't iterate over the items to
3313 get the position of them, since it's in general a bad idea in general,
3314 and because we can't do that in virtual mode. Instead get the first
3315 visible item as well as item height, and draw them.
3318 2008-06-20 Jonathan Pobst <monkey@jpobst.com>
3320 * ToolStripSplitButton.cs: We can't add in extra width if
3321 the button is not AutoSize. [Fixes bug #401279]
3323 2008-06-20 Ivan N. Zlatev <contact@i-nz.net>
3325 * PaddingConverter.cs:
3326 - Implement conversion to InstanceDescriptor
3327 - Handle "All" in CreateInstance by using the supplied
3328 ITypeDescriptorContext.
3329 [Fixes bugs #396076 and #396078]
3331 Patch by Andy Hume <andyhume32@yahoo.co.uk>
3332 Code contributed under MIT/X11 license.
3334 2008-06-19 Andy Hume <andyhume32 at yahoo dot co dot uk>
3336 * ComboBox.cs, ListControl.cs, Control.cs, Button.cs,
3338 Add Category attributes.
3339 Code is contributed under the MIT/X11 license.
3341 2008-06-18 Ivan N. Zlatev <contact@i-nz.net>
3344 - Fix a NRE when unparenting a form.
3345 - Do not recreate or destroy a parented form when
3348 2008-06-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3350 * TextBox.cs: Implement basic support for AutComplete with custom
3353 2008-06-18 Jonathan Pobst <monkey@jpobst.com>
3355 * ToolStripSplitButton.cs: Left and Top of ButtonBounds, SplitterBounds,
3356 DropDownButtonBounds should be from the origin of the button, not the
3357 ToolStrip. [Fixes bug #401279]
3359 2008-06-16 Sandy Armstrong <sanfordarmstrong@gmail.com>
3361 * X11DesktopColors.cs: Clear GTK_MODULES environment variable before
3362 running gtk_init_check. This prevents GAIL from loading
3363 unnecessarily, which was breaking UIA support. Initial fix for bug
3365 * Application.cs: Add UIA support to Winforms. New static constructor
3366 uses reflection to initialize UIAutomationWinforms assembly. Added
3367 PreRun event so UIA can initialize before the mainloop starts, and
3368 FormAdded event so UIA can provide a11y support for new Forms in an
3371 2008-06-16 Jonathan Pobst <monkey@jpobst.com>
3373 * DataGridView.cs: When binding to a dataset, subscribe to table
3374 and column change events. Unsubscribe to these when we clear bindings.
3377 2008-06-14 Everaldo Canuto <ecanuto@novell.com>
3379 [DataGrid drawing refactory]
3381 * DataGrid.cs: Fix the caption size, we need one pixel more for divider.
3383 * DataGridColumnStyle.cs: Removing PaintHeader code, the draw operations
3384 must be handle by Theme, now it call DataGridPaintColumnHeader.
3386 * DataGridTextBoxColumn.cs: Fix the textbox size. It must be one pixel less,
3387 test cases must be also fixed because it checks for wrong size.
3389 * ThemeWin32Classic.cs:
3390 - Draw the bottom line of grid caption.
3391 - Prevent to draw caption text when it is empty.
3392 - Use CPDrawBorder3D for 3D efects to simplify code.
3393 - Uses 3D (when not flat) to paint corner shared between row and column
3395 - Fix header drawing issues on win32, now borders are drawing.
3396 - Fix column header paint issues to mimic win32.
3397 - Adjust header drawing for last column, like first one it must be draw
3399 - Added DataGridPaintRowHeaderStar to draw star like .net does, it is
3401 - DataGridPaintColumnHeader created to draw column headers, it also
3402 paint stuff right on Win32.
3403 - Use DataGridPaintColumnHeader method instead of DataGridColumnStyle
3407 - DataGridPaintRowHeaderStar method added.
3408 - DataGridPaintColumnHeader method added.
3410 2008-06-13 Jonathan Pobst <monkey@jpobst.com>
3412 * Control.cs: Don't reset to Dock style layout if DockStyle is
3413 set to none. [Fixes bug #399316]
3415 2008-06-12 Everaldo Canuto <ecanuto@novell.com>
3417 * Win32DnD.cs: Fix the check for control not equal null.
3418 Fixes bug #341420 and #381886.
3420 2008-06-12 Jonathan Pobst <monkey@jpobst.com>
3422 * DataGridViewRowCollection.cs: Update the indexes of rows after
3423 one has been removed.
3424 * DataGridViewSelectedRowCollection.cs: Add internal clear method.
3425 * DataGridViewSelectedColumnCollection.cs: Add internal clear method.
3426 * DataGridView.cs: Add support for deleting rows via Delete key, deleting
3427 rows for the Rows collection, or deleting rows from the bound DataSet.
3429 2008-06-12 Jonathan Pobst <monkey@jpobst.com>
3431 * DataGridView.cs: Listen to a DataSet's changed event even
3432 when autogeneratecolumns is false. Refactor the changed event's
3433 add row code to use the same as the existing add row code.
3436 2008-06-11 Jonathan Pobst <monkey@jpobst.com>
3438 * TextBoxBase.cs: We need to call RaiseSelectionChanged pretty
3439 much any time the caret moves and there is text, not just when
3440 the selection changes as one would think.
3441 * RichTextBox.cs: Override RaiseSelectionChanged and fire
3445 2008-06-11 Jonathan Pobst <monkey@jpobst.com>
3447 * FontDialog.cs: Forward ListBox keyboard events to the ListBox
3448 instead of trying to duplicate the code.
3449 * ListBox.cs: Make method internal so we can send keyboard events.
3452 2008-06-11 Jonathan Pobst <monkey@jpobst.com>
3454 * TextBoxBase.cs: When pasting and checking the max length,
3455 subtract the selected text length (the text we will be replacing) from
3456 the document length.
3457 * TextControl.cs: Ensure every character insertion is reflected in
3458 charcount, so max length will work properly.
3461 2008-06-11 Jonathan Pobst <monkey@jpobst.com>
3463 * ListBox.cs: Ensure scrollbars are updated when a single
3464 column listbox with an already set top-index is created.
3467 2008-06-11 Jonathan Pobst <monkey@jpobst.com>
3469 * FontDialog.cs: Typing in the font/style textboxes should search
3470 the list boxes case-insensitively. [Fixes bug #398343]
3472 2008-06-11 George Giolfan <georgegiolfan@yahoo.com>
3474 * ThemeWin32Classic.cs: Managed window title bar layout now uses actual
3475 widths of icon and buttons instead of hard coded values.
3477 2008-06-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3479 * ListBox.cs: When SelectionMode is None, clicking an item should move focus
3480 as well as generating a SelectedIndexChanged event, just like .Net does
3484 2008-06-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3486 * ListBox.cs: When navigating items visually, use FocusedItem as the
3487 reference point instead of SelectedIndex, since even in
3488 SelectionMode.None we need to support navigation, and in that case we
3489 just can't use SelectedIndex.
3490 Fixes part of #398345.
3492 2008-06-10 Jonathan Pobst <monkey@jpobst.com>
3494 * Control.cs: Make a SetBoundsInternal that avoids the new
3496 * ComboBox.cs, Form.cs, ListBox.cs, ScrollableControl.cs: Use
3497 SetBoundsInternal instead of SetBoundsCoreInternal.
3499 2008-06-10 Ivan N. Zlatev <contact@i-nz.net>
3501 * ScrollableControl.cs: Use SetBoundsCoreInternal instead of
3502 SetBounds for the scrollbars.
3504 2008-06-10 Andreia Gaita <avidigal@novell.com>
3506 * HtmlDocument.cs: Implement RightToLeft, ContextMenuShowing,
3507 FocusingEvent, LosingFocusEvent, OnMouseDown, OnMouseLeave,
3508 OnMouseMove, OnMouseOver, OnMouseUp
3509 * HtmlElement.cs: Optimize InsertBefore. Implement RemoveFocus,
3510 ScrollIntoView, Focusing, GotFocus, LosingFocus, LostFocus.
3511 * HtmlElementCollection.cs, HtmlWindowCollection.cs: Keep a reference
3512 to the WebControl object to pass to new collection objects
3513 * HtmlHistory.cs: Implement support for individual window histories.
3514 * HtmlWindow.cs: Implement History, Position, Size, WindowFrameElement,
3515 AttachEventHandler, DetachEventHandler, RemoveFocus, Error,
3516 GotFocus, LostFocus, OnLoad, OnUnload
3517 * WebBrowser.cs: Implement EncryptionLevel, ScrollBarsEnabled,
3519 * WebBrowserBase.cs: Implement Cursor, Enabled, UseWaitCursor, Add
3520 security level changes and context menu event support.
3522 2008-06-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3524 * ComboBox.cs: Pressing Enter should close the dropdown listbox, just
3525 as happens with Esc, patch my Andy Hume.
3528 2008-06-10 George Giolfan <georgegiolfan@yahoo.com>
3530 * MdiWindowManager.cs: DrawMaximizedButtons now uses
3531 ManagedWindowGetMenuButtonSize instead of ManagedWindowButtonSize.
3532 * Theme.cs: Made MenuButtonSize platform dependent. Added
3533 ManagedWindowButtonSize.
3534 * ThemeWin32Classic.cs: Added ManagedWindowGetMenuButtonSize.
3535 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added MenuButtonSize.
3537 2008-06-10 George Giolfan <georgegiolfan@yahoo.com>
3539 * DateTimePicker.cs, Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs:
3540 Added support for rendering with VisualStyles.
3542 2008-06-10 George Giolfan <georgegiolfan@yahoo.com>
3544 * ComboBox.cs, Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs: Added
3545 support for rendering the border with VisualStyles.
3547 2008-06-10 George Giolfan <georgegiolfan@yahoo.com>
3549 * InternalWindowManager.cs: Added ShowIcon. Fixed IconRectangleContains when
3550 the icon is not shown.
3551 * ThemeWin32Classic.cs: Now uses InternalWindowManager.ShowIcon instead of
3554 2008-06-10 George Giolfan <georgegiolfan@yahoo.com>
3556 * InternalWindowManager.cs: Draw minimized windows even if they don't have
3559 2008-06-09 Jonathan Pobst <monkey@jpobst.com>
3561 * ComboBox.cs, ListBox.cs: Use SetBoundsInternalCore instead of SetBounds.
3563 2008-06-09 Jonathan Pobst <monkey@jpobst.com>
3565 * Control.cs: Fill in the defaults for unspecified bounds in SetBounds.
3568 2008-06-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3570 * ComboBox.cs: When snaping height -because of IntegralHeight set to
3571 true- with ComboBoxStyle.Simple, set the height to PreferredHeight
3572 if the requested height leaves the listbox area with *less* than the
3573 required are to see one item. We were setting it to PreferredHeight
3574 even for values matching the height for a single item.
3577 2008-06-06 Jonathan Pobst <monkey@jpobst.com>
3579 * DataGridViewCell.cs: Simplify GetInheritedStyle by using ApplyStyle.
3581 2008-06-06 Jonathan Pobst <monkey@jpobst.com>
3583 * DataGridViewCell.cs: Use property instead of field.
3585 2008-06-06 George Giolfan <georgegiolfan@yahoo.com>
3587 * InternalWindowManager.cs, ThemeWin32Classic.cs: Removed useless Form.Icon
3590 2008-06-06 George Giolfan <georgegiolfan@yahoo.com>
3592 * Theme.cs: Added #region around the managed window code. Made the managed
3593 window methods abstract.
3594 * ThemeWin32Classic.cs: Added #region around the managed window code.
3596 2008-06-06 George Giolfan <georgegiolfan@yahoo.com>
3598 * InternalWindowManager.cs: Now only calls Theme.DrawManagedWindowDecorations
3600 * ThemeWin32Classic.cs: Removed HasBorders checks in
3601 DrawManagedWindowDecorations.
3603 2008-06-06 George Giolfan <georgegiolfan@yahoo.com>
3605 * InternalWindowManager.cs, Theme.cs, ThemeWin32Classic.cs: Refactored:
3606 Extracted ManagedWindowGetTitleBarIconArea.
3608 2008-06-05 Jonathan Pobst <monkey@jpobst.com>
3610 * DataGridViewCellStyle.cs: Don't clone the font.
3612 2008-06-05 Jonathan Pobst <monkey@jpobst.com>
3614 * DataGridViewCell.cs: Ensure we don't pass null to GetConverter.
3616 2008-06-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3618 * XplatUIX1..cs: Use IntPtr size instead of int, as wee need to work
3619 also on 64 bit machinges. Fixes the BadWindow errors while scrolling
3622 2008-06-05 Jonathan Pobst <monkey@jpobst.com>
3624 * DataGridViewCell.cs: Correctly get converters for FormattedValue.
3625 Use Format/FormatProvider before trying converters.
3626 * DataGridViewCellStyle.cs: ApplyStyle should only apply things that
3627 are 'set'. Change constructor to not use ApplyStyle since it wants
3628 everything applied. Clone the Font.
3629 * DataGridViewRowHeaderCell.cs: Start with DefaultCellStyle and
3630 ApplyStyle the rest.
3632 2008-06-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3634 * ListView.cs: We need to calculate the scrollbars even if the handle
3635 hasn't been created - this is needed when methods using scrollbars
3636 info, such EnsureVisible, are called before control has been created.
3639 2008-06-05 George Giolfan <georgegiolfan@yahoo.com>
3641 * ThemeVisualStyles.cs: ScrollBar is now rendered with the VisualStyles API
3642 only if the elements are defined.
3644 2008-06-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3646 * ComboBox.cs: I'm an idiiot - forgot to commit the last ComboBox
3647 section. Also, when setting bounds, snap height as well as save the
3648 requested height if Dock has any value affecting the height: Left,
3649 Right and Bottom - important if using IntegralHeight as true.
3651 2008-06-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3653 * ComboBox.cs: When calling UpdateComboBoxBounds, adjust the height
3654 passed to SetBounds to reflect the new adjusted height (Integral-wise),
3655 instead of doing that only in our SetBoundsCore override, since the
3656 bounds cached can be the same as saved one and we could not get the
3660 2008-06-04 George Giolfan <georgegiolfan@yahoo.com>
3662 * Theme.cs: Made ToolWindowCaptionButtonSize platform dependent.
3663 * XplatUI.cs: Added ToolWindowCaptionButtonSize.
3664 * XplatUIDriver.cs: Changed SmallCaptionButtonSize to 15,15. Added
3665 ToolWindowCaptionButtonSize.
3666 * XplatUIWin32.cs: Added ToolWindowCaptionButtonSize.
3668 2008-06-04 George Giolfan <georgegiolfan@yahoo.com>
3670 * MdiWindowManager.cs: Now uses SystemInformation.DoubleClickTime instead of
3672 * Theme.cs: Made DoubleClickTime plaform dependent.
3674 2008-06-04 George Giolfan <georgegiolfan@yahoo.com>
3676 * Theme.cs: Made ToolWindowCaptionHeight platform dependent.
3677 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added
3678 ToolWindowCaptionHeight.
3680 2008-06-04 George Giolfan <georgegiolfan@yahoo.com>
3682 * InternalWindowManager.cs: The adjustment to ensure positive client area
3683 sizes is now platform dependent (disabled on Windows).
3684 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added
3685 RequiresPositiveClientAreaSize.
3687 2008-06-04 George Giolfan <georgegiolfan@yahoo.com>
3689 * Form.cs: Fixed null handling in Icon (see SettingIconToNull in the tests).
3691 2008-06-04 George Giolfan <georgegiolfan@yahoo.com>
3693 * InternalWindowManager.cs: Changed IconicSize to use
3694 SystemInformation.MinimizedWindowSize.
3695 * XplatUICarbon.cs, XplatUIX11.cs: Removed MinimizedWindowSize.
3696 * XplatUIDriver.cs: Changed MinimizedWindowSize to provide a default value.
3698 2008-06-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3700 * ComboBox.cs: If the combobox is anchored both on top and bottom,
3701 adjust height if IntegralHeight is true when calling SetBoundsCore (as
3702 likely the height was modified even if Height wasn't specified in
3703 BoundsSpecified parameter).
3704 Fixes part of #396297.
3706 2008-06-04 George Giolfan <georgegiolfan@yahoo.com>
3708 * InternalWindowsManager.cs: Changed minimum window size while resizing to
3709 SystemInformation.MinWindowTrackSize.
3710 * XplatUICarbon.cs, XplatUIX11.cs: Removed MinWindowTrackSize.
3711 * XplatUIDriver.cs: Changed MinWindowTrackSize to provide a default value.
3713 2008-06-03 George Giolfan <georgegiolfan@yahoo.com>
3715 * MenuItem.cs: Fixed Dispose.
3717 2008-06-03 George Giolfan <georgegiolfan@yahoo.com>
3719 * ColumnHeader.cs: CalcColumnHeader now uses the theme to get the height.
3720 * DataGridView.cs: * EnableHeadersVisualStyles: Fixed default value.
3721 EnteredHeaderCell, PressedHeaderCell: Added.
3722 * DataGridViewCell.cs: Refactored: Extracted GetBorderPen.
3723 * DataGridViewColumnHeaderCell.cs, DataGridViewRowHeaderCell.cs: Gave the
3724 theme a chance to override default painting.
3725 * ListView.cs: Added EnteredColumnHeader. Refactored: Extracted
3726 GetColumnHeaderInvalidateArea, Invalidate(ColumnHeader).
3727 * Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs: Added members for
3728 ListView and DataGridView header rendering.
3730 2008-06-03 Ivan N. Zlatev <contact@i-nz.net>
3732 * RichTextBox.cs: GetPositionFromCharIndex should return the
3733 visual position of the character relative to the viewport.
3734 [Fixes part of bug #396664]
3736 2008-06-03 Ivan N. Zlatev <contact@i-nz.net>
3738 * GridEntry.cs: Make HasCustomEditor check for EditStyle != None
3739 and not just for the existance of an UITypeEditor. In some cases
3740 there is an editor associated just to do PaintValue, but which
3741 doesn't actually support editing.
3744 2008-05-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3746 * ComboBox.cs: page_size as well as vscrollbar.LargeChange should be 1
3747 if needed, instead of 0 - this should help us in the corner case where
3748 we have more than one item but we are only partially showing 1 item.
3749 Fixes part of #374713.
3751 2008-05-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3753 * XplatUiX11.cs: When scrolling and detecting the obscured areas in a
3754 control, return immediately if the any parent control's handle hasn't
3755 been created or isn't visible, as well as avoiding creating the parent
3756 Form if the handle hasn't been previously created.
3759 2008-06-02 Jonathan Pobst <monkey@jpobst.com>
3761 * TableLayoutPanel.cs: Use border sizes when calculating the
3762 panel's preferred size. [Fixes part of bug #396433]
3764 2008-06-02 Ivan N. Zlatev <contact@i-nz.net>
3766 * SplitContainer.cs:
3767 - Fix SplitterDistance to update only if needed.
3768 - Make it force min and max validation.
3769 - Handle properly mouse moves outside the resizeable area.
3772 2008-06-02 Andreia Gaita <avidigal@novell.com>
3774 * WebBrowserBase.cs: Implement support for ScriptErrorsSuppressed
3775 (which also suppresses all popup dialogs). Throw NotSupported
3776 exceptions for activex getters/setters.
3777 * WebBrowser.cs: Implement DocumentStream, DocumentType, IsBusy,
3778 IsOffline, ReadyState, ScriptErrorsSuppressed, ScrollbarsEnabled,
3779 StatusText, Version, GoSearch
3780 * HtmlDocument.cs: Add DocType support
3782 2008-06-02 Andy Hume <andyhume32@yahoo.co.uk>
3784 * TextBox.cs: Implement TextBoxAutoCompleteSourceConverter.
3787 2008-06-02 Ivan N. Zlatev <contact@i-nz.net>
3789 * GridEntry.cs: Pass the ITypeDescriptorContext everywhere.
3791 2008-06-02 Jonathan Pobst <monkey@jpobst.com>
3793 * TableLayoutPanel.cs: When calculating preferred size, use the
3794 actual number of columns and rows, not what the user set them to.
3797 2008-06-02 George Giolfan <georgegiolfan@yahoo.com>
3799 * Form.cs: Enabled managed handling of tool window MDI children. Fixes bug
3802 2008-06-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3804 * XplatUIX11.cs: When detecting areas obscured in a control by other
3805 toplevel windows while scrolling, return if the control hasn't a
3809 2008-05-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3811 * XplatUIX11.cs: Properly detect the visible area of a control being
3812 scrolled (obscured by other winforms controls and any X toplevel
3813 windows), to mark as invalid the requested area to be scrolled that
3814 isn't visible and thus can't be copied.
3817 2008-05-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3819 * ListBox.cs: Compute the precise amount to vertically scroll when
3820 using DrawMode.OwnerDrawVariable.
3821 Patch by jkeymer (j.keymer@gmx.net).
3823 2008-05-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3825 * ComboBox.cs: Use ListBox-like scrollbar values In ComboListBox
3826 to avoid setting an invalid value for the verticall scrollbar
3827 when navigating items. And, duh, also remove my silly debug messages
3828 from previous commits.
3831 2008-05-30 Ivan N. Zlatev <contact@i-nz.net>
3833 * FlatButtonAppearance.cs: Make FlatButtonAppearanceConverter exandable and
3834 make it MS compatible.
3836 2008-05-30 Ivan N. Zlatev <contact@i-nz.net>
3838 * PropertyGrid.cs, PropertyGridView.cs, GridEntry.cs:
3839 - Allow the editing of entries even if their parent is read-only.
3840 - Do not render expandable properties read-only.
3841 - Refactor expansion checks form PropertyGrid into PropertyGrid.
3843 2008-05-30 George Giolfan <georgegiolfan@yahoo.com>
3845 * ScrollBar.cs, Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs: Added
3846 support for the hover style.
3848 2008-05-29 Andreia Gaita <avidigal@novell.com>
3850 * ContainerControl.cs: Check for null dead-end when traversing the tree
3853 [Fixes #394332, patch by Ernesto Carrea]
3855 2008-05-29 Geoff Norton <gnorton@novell.com>
3857 * XplatUICarbon.cs: Fix a culture-dependent conversion to be the
3858 constant that it is. Fixes #393981
3860 2008-05-29 Jonathan Pobst <monkey@jpobst.com>
3862 * Form.cs: Add a MonoTODO to the AutoScaleBaseSize setter explaining
3863 that the user probably doesn't want to set this.
3865 2008-05-29 Jonathan Pobst <monkey@jpobst.com>
3867 * ThemeWin32Classic.cs: Don't let the text size be bigger than
3868 the control size for CheckBox/RadioBox.
3869 [Fixes part of bug #394645]
3871 2008-05-29 Ivan N. Zlatev <contact@i-nz.net>
3873 * PropertyGrid.cs: Update the state of the sorting buttons in
3874 the toolbar if PropertySort is set programatically.
3876 2008-05-29 Ivan N. Zlatev <contact@i-nz.net>
3878 * GridItemCollection.cs: Add multiple items with conflicting names
3879 support and also preserve name ordering.
3882 2008-05-29 Ivan N. Zlatev <contact@i-nz.net>
3884 * GridItemCollection.cs: Revert my multiple items with same
3887 2008-05-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3889 * ScrollBar.cs: Scrollbars should only react to left-clicks, not right
3891 Fixes part of #393908.
3893 2008-05-28 Jonathan Pobst <monkey@jpobst.com>
3895 * ToolStripDrowDown.cs: When using the Show () methods that have a
3896 Control parameter, set the menu owner to that Control.
3899 2008-05-28 Ivan N. Zlatev <contact@i-nz.net>
3901 * PropertyGridTextBox.cs, PropertyGridView.cs: Implement validation.
3904 2008-05-27 Ivan N. Zlatev <contact@i-nz.net>
3906 * GridItemCollection.cs: Refactor to support multiple items with the
3910 2008-05-27 Jonathan Pobst <monkey@jpobst.com>
3912 * Control.cs: The 2.0 check for illegal cross thread calls in
3913 Control.Handle were throwing an exception when we were getting
3914 the Handle in order to invoke correctly. Created a private
3915 version that does not contain this check.
3918 2008-05-27 Ivan N. Zlatev <contact@i-nz.net>
3920 * PropertyGrid.cs: Respect DefaultTabType.
3922 2008-05-27 Ivan N. Zlatev <contact@i-nz.net>
3924 * ListView.cs: SPACE selects an item.
3927 2008-05-27 Ivan N. Zlatev <contact@i-nz.net>
3929 * ListView.cs: Reset the search string whenever the items are
3933 2008-05-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3935 * ListControl.cs: For the first added item PositionChanged is fired
3936 _before_ ItemChanged, which leave us in a temporary invalid state - so
3937 we need to set the selected index from ItemChanged handler *if* we
3938 know that the first item has just been added *and* the items have been
3939 actually added to the ListControl.
3942 2008-05-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3944 * TabControl.cs: Only clicks with the left button should be
3948 2008-05-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3952 * TextBox.cs: Expose an internal method in TextBox to restore the
3953 original context menu, and call it from ComboBox to re-use it in the
3954 combobox containing the file name in FileDialog.cs.
3955 Fixes part of #393775.
3957 2008-05-24 George Giolfan <georgegiolfan@yahoo.com>
3959 * ThemeVisualStyles.cs: Added support for the hot ComboBox drop down button
3962 2008-05-24 George Giolfan <georgegiolfan@yahoo.com>
3964 * ComboBox.cs, Theme.cs, ThemeWin32Classic.cs: Added support for the hot drop
3967 2008-05-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3969 * ComboBox.cs: Minor correction to previous patch: PageDown should
3970 also *try* to move by one item if the computed offset is negative,
3971 just like the PageUp case.
3973 2008-05-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3975 * ComboBox.cs: When navigating using PageDown/PageUp the navigation
3976 should be done for at least 1 item, and not stay at the same item.
3977 Fixes part of #374713.
3979 2008-05-23 Jonathan Pobst <monkey@jpobst.com>
3981 * FileDialog.cs: Add a FSEntryComparer, and use it to sort the
3982 directories. [Fixes bug #393931]
3984 2008-05-22 Andreia Gaita <avidigal@novell.com>
3986 * WebBrowser.cs: Implement DocumentText. Implement AllowNavigation.
3987 Don't fire events until the initial about:blank page has finished
3988 loading. Clean up events.
3990 2008-05-22 Atsushi Enomoto <atsushi@ximian.com>
3992 * XplatUIX11.cs : when we call WM_SETFOCUS, call X11Keyboard
3993 FocusIn() too. This should fix the issue on switching
3996 2008-05-22 Atsushi Enomoto <atsushi@ximian.com>
3998 * X11Keyboard.cs : set XIM font size to somewhat reasonable
3999 number (ideally the input textbox size, but that could be
4002 2008-05-22 Jonathan Pobst <monkey@jpobst.com>
4004 * ToolStripTextBox.cs: List for the TextBox's TextChanged and fire
4005 the ToolStripItem's TextChanged. [Fixes bug #393597]
4007 2008-05-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4009 * TabControl.cs: When invalidating in SelectedIndex and we need to
4010 inflate to take into account the border of the tabs, make sure that
4011 the invalidated rect doesn't overflow the control bounds, since that
4012 would avoid updating at all.
4014 2008-05-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4016 * TabControl.cs: Don't substract scroller width from the row width,
4017 since we need to take into account the total width of the control when
4018 calculating the position of the tabs. This avoids showing scroller
4019 when it is actually not needed.
4020 Fixes part of #322325.
4022 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
4024 * ThemeVisualStyles.cs: Added support for TextBoxBase.
4026 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
4028 * RichTextBox.cs, TextBoxBase.cs, Theme.cs, ThemeWin32Classic.cs: Refactored:
4029 Extracted TextBoxBase.Draw and Theme.TextBoxBase*.
4031 2008-05-21 Jonathan Pobst <monkey@jpobst.com>
4033 * DataGridView.cs: Only paint the top left header cell if there
4036 2008-05-21 Jonathan Pobst <monkey@jpobst.com>
4038 * DataGridView.cs: When binding to a BindingSource, get the underlying
4039 list to bind to. [Fixes bug #345483]
4041 2008-05-21 Jonathan Pobst <monkey@jpobst.com>
4043 * DataGridView.cs: Do not bind to collection properties.
4046 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
4048 * ThemeVisualStyles.cs: Added support for the hot TrackBar thumb style.
4050 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
4052 * Theme.cs, ThemeWin32Classic.cs, TrackBar.cs: Added support for the hot
4055 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
4057 * ThemeVisualStyles.cs: Added support for ToolTip transparent background.
4059 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
4061 * Theme.cs, ThemeWin32Classic.cs, ToolTip.cs: Added support for transparent
4064 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
4066 * ThemeVisualStyles.cs: Added support for ToolBar hot and hot checked styles.
4068 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
4070 * Theme.cs, ThemeWin32Classic.cs, ToolBar.cs: Added support for hot and hot
4073 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
4075 * TabControl.cs: Extended to handle the hot style.
4077 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
4079 * Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs, UpDownBase.cs:
4080 Extended UpDownBase code to handle hot and disabled styles.
4082 2008-05-20 Jonathan Pobst <monkey@jpobst.com>
4084 * DataGridView.cs: Handle databinding to generic list type things.
4087 2008-05-20 Jonathan Pobst <monkey@jpobst.com>
4089 * DataGridViewCellCollection.cs: Add a method to find the cell
4090 with the given DataPropertyName.
4091 * DataGridViewColumn.cs: Track if the column was autogenerated or not.
4092 * DataGridViewColumnCollection.cs: Add a method to clear all
4093 autogenerated columns.
4094 * DataGridView.cs: If AutoGenerateColumns is false, don't autogenerate
4098 2008-05-20 Jonathan Pobst <monkey@jpobst.com>
4100 * DataGridView.cs: Don't try to update the RowTemplate with
4101 a null CellTemplate.
4103 2008-05-20 Jonathan Pobst <monkey@jpobst.com>
4105 * DataGridViewColumn.cs: Allow IsDataBound to be set internally.
4106 * DataGridViewColumnCollection.cs: Ensure OnColumnAdded is called.
4107 * DataGridView.cs: Lots of fixes/enhancements to databinding to
4110 2008-05-20 Jonathan Pobst <monkey@jpobst.com>
4112 * Control.cs: Remove invalidating implicit child controls when
4113 control is invalidated. It was causing too many redraws on
4114 controls with implicit scrollbars.
4115 * ListView.cs: Listen to the Invalidated event and invalidate
4118 2008-05-20 Andreia Gaita <avidigal@novell.com>
4120 * WebBrowserBase.cs, WebBrowser.cs: Hook up page loading events
4121 * HtmlDocument.cs: Check for nulls
4123 2008-05-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4125 * Control.cs: In ControlCollection.RemoveInternal, remove the
4126 internal control before calling PerformLayout and OnControlRemoved,
4127 which was leaving us in an invalid state and causing a X error (bad
4128 match). Observe that Remove () call has the same order.
4129 Fixes an X error changing ComboBoxStyle.DropDownStyle.
4131 2008-05-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4133 * TabControl.cs: Don't paint by ourselved and instead let OnPaint
4134 being fired if ControlStyles.UserPaint style is activated.
4137 2008-05-19 Ivan N. Zlatev <contact@i-nz.net>
4139 * GridEntry.cs: Don't be so strict when setting the value -
4140 do not check if what we set is what we get.
4143 2008-05-19 Ivan N. Zlatev <contact@i-nz.net>
4145 * XplatUIX11.cs: If there are no timers timeout should be 0
4148 2008-05-19 Jonathan Pobst <monkey@jpobst.com>
4150 * Control.cs: As a followup to invalidating implicit children when
4151 a control is invalidated, only invalidate them if they are in the
4154 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
4156 * ThemeVisualStyles.cs: Implemented partial support for ToolTip.
4158 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
4160 * ThemeWin32Classic.cs: Refactored: Extracted ToolTipDrawBackground.
4162 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
4164 * GroupBoxRenderer.cs: Fixed text area clipping in the Visual Styles case.
4165 * XplatUIWin32.cs: Made Win32DeleteObject public.
4167 2008-05-19 Ivan N. Zlatev <contact@i-nz.net>
4169 * GridEntry.cs: Determine HasDefaultValue more strictly by using
4170 PropertyDescriptor.ShouldSerializeValue.
4173 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
4175 * ThemeVisualStyles.cs: Enabled support for ScrollBar element styles not present
4176 in the classic theme.
4178 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
4180 * ScrollBar.cs: Added FirstButtonEntered, SecondButtonEntered, ThumbEntered,
4182 * Theme.cs, ThemeWin32Classic.cs: Added ScrollBarHasHotElementStyles,
4183 ScrollBarHasPressedThumbStyle.
4185 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
4187 * TextRenderer.cs: Included some methods in the 1.1 profile.
4189 2008-05-19 Jonathan Pobst <monkey@jpobst.com>
4191 * Control.cs: When we make a control visible, it may have been
4192 previously visible and while it wasn't visible, the z-order of
4193 things may have been shuffled, so the control needs to have its
4194 z-order updated just in case. [Fixes bug #391518]
4196 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
4198 * ThemeVisualStyles.cs: Added support for GroupBox.
4200 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
4202 * GroupBoxRenderer.cs: Included in the 1.1 profile.
4204 2008-05-16 Atsushi Enomoto <atsushi@ximian.com>
4206 * XplatUIX11.cs, X11Keyboard.cs : redoing r103060 with fix for
4207 bug #389996; XSelectInput() behaved as mouse handler robber,
4208 so remove extra call to it.
4210 2008-05-15 Jonathan Pobst <monkey@jpobst.com>
4212 * Control.cs: Simplify ControlCollection.Contains method.
4214 2008-05-15 Jonathan Pobst <monkey@jpobst.com>
4216 * DataGridViewRow.cs: Implement GetPreferredSize.
4218 2008-05-15 Jonathan Pobst <monkey@jpobst.com>
4220 * DataGridViewComboBoxCell.cs: Don't declare text twice. Fixes build.
4222 2008-05-15 Jonathan Pobst <monkey@jpobst.com>
4224 * DataGridViewComboBoxCell.cs: Implement some NIEX stuffs, better
4225 painting and edit control fixes.
4227 2008-05-14 Jonathan Pobst <monkey@jpobst.com>
4229 * DataGridView.cs, DataGridViewCell.cs: Work around some external
4230 checks to make sure we are in an actual row/col for top left header cell.
4231 * DataGridViewTopLeftHeaderCell.cs: Implement some NIEX's.
4233 2008-05-14 Jonathan Pobst <monkey@jpobst.com>
4235 * Control.cs: Use long instead of int when handling WParam from
4236 mousewheel scrolling. Int was overflowing on Win64.
4238 2008-05-14 Jonathan Pobst <monkey@jpobst.com>
4240 * FlowLayoutPanel.cs, ScrollableControl.cs: We need to layout the
4241 flow panel without scrolling first, and then calculate the
4242 scrolling based on the new layout. [Fixes bug #390149]
4244 2008-05-14 Jonathan Pobst <monkey@jpobst.com>
4246 * ListBox.cs: Invalidate after scrolling up when selected index
4247 changes. [Fixes bug #390151]
4249 2008-05-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4251 * ComboBox.cs: When setting mode to Simple *and* height hasn't been
4252 set, default height to 150. I tried first with DefaultSize, but this
4253 is not generating a SetBoundsCore call before handle creation time, so
4254 we can take it into account. This is just what .net does.
4256 2008-05-13 Jonathan Pobst <monkey@jpobst.com>
4258 * XplatUIX11.cs, X11Keyboard.cs: Had to revert eno's r103060,
4259 as it broke some stuff. Calberto is filing a bug for eno to
4262 2008-05-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4264 * ComboBox.cs: When handling PageDown pressed event, set SelectedIndex
4265 to 0 is the current value is -1, and if style is not Simple, just
4266 return, like .net does.
4267 Fixes part of #374713.
4269 2008-05-13 Jonathan Pobst <monkey@jpobst.com>
4271 * ThemeWin32Classic.cs, ThemeVisualStyles.cs: When calculating
4272 progress bar stuffs, use doubles instead of ints to prevent
4273 overflow. [Fixes bug #389798]
4275 2008-05-13 Atsushi Enomoto <atsushi@ximian.com>
4277 * XplatUIX11.cs, X11Keyboard.cs :
4278 Significant refactoring on XIM support. Now IM engine UI
4279 should show up, at mostly-correct preedit position.
4280 - Eliminated use of FocusWindow, as it is never mapped
4281 and hence blocks correct preedit position. XIC is now
4282 created per window, and it must be destroyed too when
4283 the window is destroyed.
4284 - WM_QUIT messages should not be filtered even when hwnd
4285 is zombie. Filtering it could cause endless loop.
4286 - Preedit position must move only when the window is alive.
4287 - Make it IDisposable and make sure to release XIM/XICs.
4289 2008-05-13 Atsushi Enomoto <atsushi@ximian.com>
4291 * Timer.cs, Control.cs, Form.cs, ApplicationContext.cs,
4292 XplatUIX11.cs, XplatUIWin32.cs :
4293 fix for bug #325033 and #387693;
4294 - WM_QUIT should not be sent when no running application
4296 - SetTimer/KillTimer (especially on win32) should be
4297 invoked for the window that the timer is/will_be attached.
4298 - There could be unattached timers to a window when it's
4299 started. For those timers, hold pending timers and when
4300 a window is mapped, attach them to it.
4301 - WaitForHwndMessage() could run into loop when
4302 WM_SHOWWINDOW is handled before this method is called.
4303 So, strictly check wm_showwindow state.
4304 - Tick handler should not be invoked while one Tick handler
4305 call is still running (introduced Busy state).
4307 2008-05-13 Andreia Gaita <avidigal@novell.com>
4309 * WebBrowserBase.cs: Override Internal alternative methods for
4310 SetBoundsCore and OnResize instead of the protected ones.
4311 * Control.cs: Move SetBoundsCore and OnResize implementations to
4312 SetBoundsCoreInternal and OnResizeInternal, so they can be
4313 overriden internally (WebBrowserBase needs to catch them but can't
4314 override the protected methods without api compat problems)
4316 2008-05-13 Andreia Gaita <avidigal@novell.com>
4318 * WebBrowserBase.cs: Hiding away non-public overrides for api compat
4320 2009-05-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4323 * ListView.cs: Remove debug messages.
4325 2008-05-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4327 * ComboBox.cs: Don't do any calculation for simple mode if the listbox
4328 area is empty. Also calculate scrollbars in Simple mode based in area
4329 height and total number of items, not in MaxDropDownItems.
4330 Fixes part of #371991.
4332 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
4334 * PictureBox.cs: Always invalidate on resize. Fixes an app for jhill.
4336 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
4338 * BindingSource.cs: GetListSortDescription is not public.
4340 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
4342 * WebBrowser.cs, WebBrowserBase.cs, WebBrowserSiteBase.cs: corcompare.
4344 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
4346 * HtmlElement.cs: Fix parameter names to match MS.
4347 * HtmlWindowCollection.cs: Should not be sealed.
4349 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
4351 * ThemeWin32Classic.cs: Always draw the scrollbar area under the thumb
4352 button, because the thumb button will not get drawn if the scrollbar
4353 is disabled. [Fixes bug #389262]
4355 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
4357 * ListBox.cs: Handle End key for multi-column listboxen.
4360 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
4362 * ListBox.cs: Fix algorithm to determine which column our item is in.
4365 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
4367 * ListBox.cs: Invalidate when the listbox is resized.
4370 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
4372 * ListBox.cs: There is always at least one row in the ListBox (if
4373 we are doing these calculations.) [Fixes bug #389253]
4375 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
4377 * ListBox.cs: There is always at least one column in the ListBox.
4380 2008-05-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4382 * ComboBox.cs: When handle is created call UpdateComboBoxBounds to
4383 ensure in Simple mode that the height is exactly the requested one.
4384 Also add the ComboBoxListControl to the controls collection in Simple
4385 mode even if handle hasn't been created.
4386 Fixes part of #371991.
4388 2008-05-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4390 * ComboBox.cs: For ComboListBox control -specially in Simple mode-, give focus to
4391 our ComboBox owner instead of giving it back to the previous control (
4392 as done in other controls). Also remove the empty override of Select
4393 method, since we want to be selected *and* give focus to our owner.
4394 This should let the user do keys-navigation in Simple mode.
4396 2008-05-10 Geoff Norton <gnorton@novell.com>
4398 * XplatUICarbon.cs: Dont use HIViewScrollRect as it's causing painting
4399 problems with rapid scrolling of treeviews. Fixes #381084
4401 2008-05-10 Geoff Norton <gnorton@novell.com>
4403 * XplatUICarbon.cs: Deactivate the active window before
4404 activating the desired window. Completes fixing #386504
4406 2008-05-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4408 * ListView.cs: When calculating scrollbars, set horizontal scroll bar
4409 SmallChange to the item size width plus the padding, to match .net.
4411 2008-05-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4413 * FileDialog.cs: Apply the custom filter typed by the user in the file
4414 name combobox as much as possible while navigating in the file dialog.
4417 2008-05-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4419 * Binding.cs: Actually use NullValue if the retrieved value of
4420 data source is null or DBNull. Makes a test pass.
4422 2008-05-09 Jonathan Pobst <monkey@jpobst.com>
4424 * ErrorProvider.cs, Form.cs: Get icons from ResourceImageLoader.
4425 * MimeIcon.cs: Provide a way to get icons from resources.
4427 2008-05-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4429 * Binding.cs: When the value retrieved from the control to be assigned
4430 to the data source is null, actually use the 2.0 DataSourceNullValue
4431 value. Make pass a data binding test.
4433 2008-05-08 Jonathan Pobst <monkey@jpobst.com>
4435 * Control.cs: We need to invalidate implicit children even when
4436 invalidate is called with invalidatechildren = false. (Implicit
4437 children are really part of the parent.)
4438 * ListView.cs: Double-buffer internal child controls for less
4440 * ThemeWin32Classic.cs: Remove an extra nested loop in drawing
4441 owner ListView subitems for greatly increased performance.
4444 2008-05-08 Carlos Alberto Cortez <calebrto.cortez@gmail.com>
4446 * FileDialog.cs: When the user types a wildcard character in the
4447 filename combobox, update the contents of the folder using the text as
4449 Fixes part of #385261.
4451 2008-05-08 Jonathan Pobst <monkey@jpobst.com>
4453 * ListBox.cs: Various fixes for MultiColumn listboxen.
4456 2008-05-08 Andreia Gaita <avidigal@novell.com>
4458 * HtmlElement.cs: Implement Style property
4460 2008-05-08 Jonathan Pobst <monkey@jpobst.com>
4462 * ListBox.cs: Respect checkboxes when measuring item size.
4463 * ThemeWin32Classis.cs: When drawing list items, don't draw
4464 text outside of the item's bounds to prevent overlapping.
4465 (.Net actually overlaps, but that's just silly.)
4468 2008-05-08 Everaldo Canuto <ecanuto@novell.com>
4470 * NotifyIcon.cs: Call SetForegroundWindow before show context menu. Thanks
4471 Gert Driesen. Fixes bug #324830.
4473 2008-05-07 Everaldo Canuto <ecanuto@novell.com>
4475 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: SetForegroundWindow
4478 2008-05-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4480 * BindingSource.cs: When calling IsSynchronized, return the value of
4481 the related IList list.
4483 2008-05-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4485 * ListBindingHelper.cs: Fix some bits in GetListItemProperties, to
4488 2008-05-07 Jonathan Pobst <monkey@jpobst.com>
4490 * DataGridView.cs: Implement PageUp/PageDown keys. Extend keyboard
4491 navigation to scroll the grid if the current cell is not visible.
4493 2008-05-07 Andreia Gaita <avidigal@novell.com>
4495 * HtmlElement.cs: Implement TabIndex
4497 2008-05-07 Jonathan Pobst <monkey@jpobst.com>
4499 * ListBox.cs: Respect ScrollAlwaysVisible and HorizontalScrollbar
4500 properties, even when there are no items.
4503 2008-05-07 Ivan N. Zlatev <contact@i-nz.net>
4505 * NativeWindow.cs: Add support for multiple handles per window.
4506 * NativeWindows.cs, LibSupport.cs, Control.cs, XplatUIX11GTK.cs,
4507 XplatUIX11.cs, X11Display.cs: Do not access NativeWindow.windows_collection
4508 directly - use FromHandle instead.
4511 2008-05-07 Andreia Gaita <avidigal@novell.com>
4513 * HtmlElement.cs: Implement InnerHTML setter
4515 2008-05-07 Andreia Gaita <avidigal@novell.com>
4517 * HtmlDocument.cs: Implement Focused
4519 2006-05-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4521 * BindingSource.cs: Minor fixes to the the ApplySort and Remove sort
4522 methods, as well as add messages to the exceptions.
4524 2006-05-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4526 * BindingSource.cs: Setting DataSource should only reset DataMember if
4527 the previous value was null (make pass a not working test).
4529 2006-05-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4531 * BindingSource.cs: When EndInit call is postponed and is called until
4532 DataSource.EndInit is called, remove the handler for data source.
4534 2008-05-06 Jonathan Pobst <monkey@jpobst.com>
4536 * ToolStripManager.cs: Don't use IsAlive, race condition, etc. etc.
4538 2008-05-06 Jonathan Pobst <monkey@jpobst.com>
4540 * ToolStripManager.cs: Store references to toolstrips as
4541 weak references so they do not prevent forms from getting collected.
4544 2008-05-06 Jonathan Pobst <monkey@jpobst.com>
4546 * TrackBar.cs: We can't set ResizeRedraw because it isn't set
4547 on .Net. So do the same thing in WndProc.
4549 2008-05-06 Jonathan Pobst <monkey@jpobst.com>
4551 * TrackBar.cs: Commit patch from Andy Hume that corrects
4552 the clickable areas to better match .Net.
4555 2008-05-06 Jonathan Pobst <monkey@jpobst.com>
4557 * TrackBar.cs: Commit patch from Andy Hume that adds the
4558 ResizeRedraw control flag so the track bar repaints itself
4559 when it is resized. [Fixes bug #387072]
4561 2008-05-06 Jonathan Pobst <monkey@jpobst.com>
4563 * TrackBar.cs: Commit patch from Andy Hume that adds better
4564 support for keyboard navigation when the TrackBar is vertical.
4567 2008-05-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4569 * BindingSource.cs: Implement ISupportInitializeNotification support.
4571 2008-05-06 George Giolfan <georgegiolfan@yahoo.com>
4573 * ThemeVisualStyles.cs: Added support for ToolBar.
4575 2008-05-06 George Giolfan <georgegiolfan@yahoo.com>
4577 * ToolBar.cs: Made the Vertical property internal.
4579 2008-05-05 George Giolfan <georgegiolfan@yahoo.com>
4581 * ThemeVisualStyles.cs: Added support for TrackBar.
4583 2008-05-05 George Giolfan <georgegiolfan@yahoo.com>
4585 * ThemeWin32Classic.cs: Refactored: Extracted TrackBarGetThumbSize,
4586 TrackBarDrawVerticalTrack, TrackBarDrawVerticalThumbRight,
4587 TrackBarDrawVerticalThumbLeft, TrackBarDrawVerticalThumb,
4588 TrackBarGetVerticalTickPainter, TrackBarDrawHorizontalTrack,
4589 TrackBarDrawHorizontalThumbBottom, TrackBarDrawHorizontalThumbTop,
4590 TrackBarDrawHorizontalThumb, TrackBarGetHorizontalTickPainter.
4592 2008-05-05 George Giolfan <georgegiolfan@yahoo.com>
4594 * ThemeVisualStyles.cs: Added support for UpDownBase.
4596 2008-05-05 George Giolfan <georgegiolfan@yahoo.com>
4598 * Theme.cs, ThemeWin32Classic.cs, UpDownBase.cs: Refactored:
4599 Extracted Theme.UpDownBaseDrawButton.
4601 2008-05-05 Jonathan Pobst <monkey@jpobst.com>
4603 * ToolStrip.cs, ToolStripDropDownItem.cs: Make sure toolstrips are
4604 removed from the static toolstrips collection in ToolStripManager
4605 when they are disposed. Provides a workaround for bug #386483.
4607 2008-05-05 Ivan N. Zlatev <contact@i-nz.net>
4609 * GridEntry.cs: Read-only properties with Editor with
4610 UITypeEditorEditStyle.Modal shouldn't be read-only in the PropertyGrid.
4613 2008-05-05 Jonathan Pobst <monkey@jpobst.com>
4615 * MenuStrip.cs, ToolStrip.cs: Guard against an NRE when pressing
4616 the menu key and there are no items on the menu.
4619 2008-05-05 Sebastien Pouliot <sebastien@ximian.com>
4621 * Control.cs: Avoid calling ToString on a string.
4622 * Form.cs: Avoid calling ToString on a string. Found using Gendarme.
4623 * GroupBox.cs: In FlatStyle property throw, not just create, the
4624 exception. Avoid calling ToString on a string.
4625 * ProgressBar.cs: Avoid calling ToString on a string.
4626 * ScrollBar.cs: Avoid calling ToString on a string.
4627 [All issues were found using Gendarme]
4629 2008-05-05 Everaldo Canuto <ecanuto@novell.com>
4631 * NotifyIcon.cs: Prevent click events to be trigger after double click
4632 events. Fixes remaining issues of bug #324832.
4634 2008-05-05 Everaldo Canuto <ecanuto@novell.com>
4636 * NotifyIcon.cs: Trigger click and mouseclick events after mouseup event
4637 to mimic win32 behavior. Partially fixes bug #324832.
4639 2008-05-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4641 * BindingSource.cs: Implement Find methods.
4643 2008-05-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4645 * BindingSource.cs: Implement Sort, ApplySort overloads, and
4648 2008-05-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4650 * ListBindingHelper.cs: When calling GetListItemProperties and the
4651 passed object is ITypedList, return the result of
4652 ITypedList.GetItemProperties instead.
4654 2008-05-04 Everaldo Canuto <ecanuto@novell.com>
4656 * LinkLabel.cs: Set default value of name on constructor of Link class
4657 only for 2.0 profile.
4659 2008-05-04 Everaldo Canuto <ecanuto@novell.com>
4661 * LinkLabel.cs: Fix implementation of LinkCollection.LinksAdded property.
4662 Fixes remaining issues of bug #346154.
4664 2008-05-04 Everaldo Canuto <ecanuto@novell.com>
4666 * LinkLabel.cs: Set a default value for name on internal contructor of
4667 Link class. It fixes assert B5 of LinkCollectionTest.Constructor1.
4669 2008-05-04 Everaldo Canuto <ecanuto@novell.com>
4671 * LinkLabel.cs: Move links collection from LinkCollection to LinkLabel
4672 and refer all instances to owner.links. Partially fixes #346154.
4674 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
4676 * LinkLabel.cs: Fix linkarea values for empty text, must have start and
4677 length equal zero. Also called CreateLinkPieces in constructor. It fixes
4678 the LinkLabel test 'TestLinkArea'.
4680 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
4682 * Form.cs: Remove menu before close form to prevent form to be not gaced.
4685 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
4687 * MenuAPI.cs: Dispose popup window after hide. Thanks to Jesse Jones.
4690 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
4692 * MenuAPI.cs: Implemented keyboard navigation for ContextMenu.
4695 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
4697 * MenuAPI.cs: Remove unused ProcessCmdKey method.
4699 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
4701 * MenuAPI.cs: Prevent NRE in menu deactivation when shortcut is used.
4704 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
4706 * MenuAPI.cs: Enable implicit mnemonics for menus. Fixes remaining issues
4709 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
4711 * MenuAPI.cs: Check if mouse down comes from menu, we need it because
4712 sometimes we open a conext menu on mouse down of some controls and the mouse
4713 up is dispatched to menu and dont need to. It fix remaining issues of
4714 #363711 and other problems related to menu mouse click events.
4716 2008-05-02 Everaldo Canuto <ecanuto@novell.com>
4718 * MonthCalendar.cs: Implemented "Go to today" context menu, also changed
4719 some var names to better fit changes, now we have month_menu and today_menu
4720 vars. Fixes bug #363711.
4722 2008-05-02 Everaldo Canuto <ecanuto@novell.com>
4724 * MonthCalendar.cs: Handle every right mouse click to open context menu,
4725 right now the default month menu but it will be change to have "Go to today"
4728 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
4730 * FileDialog.cs, MaskedTextBox.cs, OpenFileDialog.cs: corcompare.
4732 2008-05-02 Everaldo Canuto <ecanuto@novell.com>
4734 * ThemeWin32Classic.cs: Fix MonthCalendar arrows drawing.
4736 2008-05-02 George Giolfan <georgegiolfan@yahoo.com>
4738 * ThemeVisualStyles.cs: Added support for TreeView.
4740 2008-05-02 George Giolfan <georgegiolfan@yahoo.com>
4742 * Theme.cs, ThemeWin32Classic.cs, TreeView.cs: Refactored:
4743 Moved TreeView.DrawNodePlusMinus to Theme.TreeViewDrawNodePlusMinus.
4745 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
4747 * OpenFileDialog.cs: Implement 2.0 SP1 stuffs.
4749 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
4751 * FileDialogCustomPlace.cs, FileDialogCustomPlacesCollection.cs:
4752 Implement 2.0 SP1 stuffs.
4754 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
4756 * FileDialog.cs: Implement 2.0 SP1 stuffs.
4758 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
4760 * Control.cs, ContainerControl.cs, DataGridView.cs, TextBoxBase.cs:
4761 Implement CanEnableIme property. (2.0 SP1)
4763 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
4765 * BindingManagerBase.cs, PropertyManager.cs: Hide GetItemProperties
4768 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
4770 * Control.cs: Provide an internal way for a control to override
4771 the setting of Height.
4772 * DateTimePicker.cs: Remove SetBoundsCore from 2.0 profile,
4773 set height using new method.
4775 2008-05-02 George Giolfan <georgegiolfan@yahoo.com>
4777 * ThemeVisualStyles.cs: Added support for ControlPaint.DrawMixedCheckBox.
4779 2008-05-02 George Giolfan <georgegiolfan@yahoo.com>
4781 * ControlPaint.cs, Theme.cs, ThemeWin32Classic.cs: Refactored:
4782 ControlPaint.DrawMixedCheckBox now calls Theme.CPDrawMixedCheckBox.
4784 2008-05-02 George Giolfan <georgegiolfan@yahoo.com>
4786 * ThemeVisualStyles.cs: Added support for StatusBar.
4788 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
4790 * DataObject.cs: Add the other IDataObject interface.
4792 2008-05-02 George Giolfan <georgegiolfan@yahoo.com>
4794 * ThemeWin32Classic.cs: Refactored: extracted DrawStatusBarBackground,
4795 DrawStatusBarSizingGrip, DrawStatusBarPanelBackground.
4797 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
4799 * DataGridViewCheckBoxCell.cs, DataGridViewImageCell.cs: Fix parameter names.
4800 * ListView.cs: Hide non-public API.
4801 * MaskedTextBox.cs: Remove extra attribute.
4803 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
4805 * DataGridViewImageCell.cs: Use formatted value instead of value
4806 to calculate preferred size.
4808 2008-05-01 Jonathan Pobst <monkey@jpobst.com>
4810 * ListBox.cs: Move some initialization around so that selected_indices
4811 is not accessed before it is created.
4813 2008-05-01 Jonathan Pobst <monkey@jpobst.com>
4815 * InputLanguageCollection.cs: Implement the collection better.
4818 2008-05-01 Jonathan Pobst <monkey@jpobst.com>
4820 * ToolStripDropDownItem.cs: Get the correct event object for
4821 DropDownItemClicked.
4822 * ToolStripMenuItem.cs: Raise DropDownItemClicked on our owner.
4825 2008-05-01 Jonathan Pobst <monkey@jpobst.com>
4827 * DataGridViewRowCollection.cs: We don't currently support shared
4828 rows. Should fix test failures caused by previous commit.
4830 2008-04-30 Jonathan Pobst <monkey@jpobst.com>
4832 * DataGridViewRow.cs: Fixes for cloning the row, ensure header cell's
4833 datagridview gets set. Only paint cells in visible columns.
4834 * DataGridViewCell.cs: Draw border after cell content.
4835 * DataGridView.cs: Invalidate after setting some properties. Only
4836 use visible columns. Fit hit test bug with areas in the col/row header
4837 area but not in a row or col. Implement UpdateCell/Row methods.
4839 2008-04-30 Jonathan Pobst <monkey@jpobst.com>
4841 * DataGridViewElement.cs: Don't throw NIEX.
4842 * DataGridViewColumnHeaderCell.cs: Draw error icons for top left header cells.
4843 * DataGridViewColumnDesignTimeVisibleAttribute.cs: Don't throw NIEX.
4844 * DataGridViewCheckBoxColumn.cs: Implement ToString.
4845 * DataGridViewCheckBoxCell.cs: Allow DBNull as a value.
4846 * DataGridViewCell.cs: Don't raise CellFormatting for RowHeader cells,
4847 if the user filled in the formatting Value, use it.
4849 2008-04-30 Jonathan Pobst <monkey@jpobst.com>
4851 * DataGridViewTextBoxCell.cs: Fix for objects that cannot be cast
4854 2008-04-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4856 * BindingSource.cs: Some corrections to Filter property, as well as
4857 setting it for our list when resetting it.
4859 2008-04-29 Jonathan Pobst <monkey@jpobst.com>
4861 * ScrollBar.cs: Don't let dragging the thumb grip set the value greater
4862 than the maximum. Fixes reopened bug #384182.
4864 2008-04-28 Everaldo Canuto <ecanuto@novell.com>
4866 * ToolStripDropDown.cs: Fix offscreen position for DropDown itens.
4867 Fixes remaining issues of #367490.
4869 2008-04-28 Everaldo Canuto <ecanuto@novell.com>
4871 * ToolStripDropDown.cs: Screen.Bound dont return right value then use
4872 SystemInformation.WorkingArea to get max_screen value.
4874 2008-04-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4876 * BindingSource.cs: Implement Filter and RemoveFilter.
4878 2008-04-28 Everaldo Canuto <ecanuto@novell.com>
4880 * MenuAPI.cs: Prevent sub-menu positon to be less than zero.
4882 2008-04-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4884 * X11Dnd.cs: When trying to convert data and we know we started the
4885 dnd loop, don't try to use the cached data if the loop is not running,
4886 which means that the data has been resetted.
4889 2008-04-28 Everaldo Canuto <ecanuto@novell.com>
4891 * MenuAPI.cs: Force first menu subitem to show from left to right to mimic
4894 2008-04-28 Everaldo Canuto <ecanuto@novell.com>
4896 * MenuAPI.cs: Check the screen limits before show sub-menus and prevent
4897 it to drawn off screen edge. Fixes bug #367490.
4899 2008-04-28 Everaldo Canuto <ecanuto@novell.com>
4901 * MenuAPI.cs: In PopupWindow.RefreshItems uses a temp point var to store
4902 menu position to have only one assignment of Location var.
4904 2008-04-28 Everaldo Canuto <ecanuto@novell.com>
4906 * MenuAPI.cs: Implement the right key for sub-menus. Thanks Ernesto Carrea
4907 for this patch. Fixes bug #384115.
4909 2008-04-28 Jonathan Pobst <monkey@jpobst.com>
4911 * ScrollBar.cs: If SmallChange is larger than LargeChange, make them
4912 the same. If LargeChange is zero, set a minimum size for the scroll
4913 thumb grip. [Fixes bug #384182]
4915 2008-04-28 Jonathan Pobst <monkey@jpobst.com>
4917 * TextBoxTextRenderer.cs: Don't turn &A into a prefix for textboxen.
4920 2008-04-28 Jonathan Pobst <monkey@jpobst.com>
4922 * ListBox.cs: Math.Min should be Math.Max. [Fixes bug #384183]
4924 2008-04-28 George Giolfan <georgegiolfan@yahoo.com>
4926 * ThemeVisualStyles.cs: Added partial support for ScrollBar (based on the
4927 patch from Ernesto).
4929 2008-04-28 George Giolfan <georgegiolfan@yahoo.com>
4931 * ThemeVisualStyles.cs: Added support for ControlPaint.DrawComboButton.
4933 2008-04-28 George Giolfan <georgegiolfan@yahoo.com>
4935 * ThemeVisualStyles.cs: Added support for ControlPaint.DrawButton.
4937 2008-04-28 George Giolfan <georgegiolfan@yahoo.com>
4939 * ThemeVisualStyles.cs: Added support for ControlPaint.DrawRadioButton.
4941 2008-04-28 George Giolfan <georgegiolfan@yahoo.com>
4943 * ThemeVisualStyles.cs: Added support for ControlPaint.DrawScrollButton.
4945 2008-04-27 George Giolfan <georgegiolfan@yahoo.com>
4947 * ThemeVisualStyles.cs: Added support for ButtonBase.UseVisualStyleBackColor.
4949 2008-04-27 Andreia Gaita <avidigal@novell.com>
4951 * HtmlWindow.cs, HtmlHistory.cs: Throw on DomHistory getter (it's
4952 supposed to return a reference to an mshtml interface, which we
4954 * HtmlElement.cs: Throw on DomElement getter (it's supposed to return a
4955 reference to an mshtml interface, which we don't support). Code
4957 * HtmlDocument.cs: Add DefaultEncoding getter implementation. Throw on
4958 DomDocument getter (it's supposed to return a reference to an
4959 mshtml interface, which we don't support). Code formatting cleanup.
4961 2008-04-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4963 * ListView.cs: Ouch, forgot to commit.
4965 2008-04-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4968 * ThemeWin32Classic.cs: Fire the -until now- forgotten CacheVirtualItems event.
4970 2008-04-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4972 * ListView.cs: When calculating box selection for virtual mode, don't
4973 look for intersection with item's text, but item bounds, since that
4974 would mean read ListViewItem's text for _every_ item, and that's
4975 something we just can't do in virtual mode (items are only requested
4978 2008-04-26 George Giolfan <georgegiolfan@yahoo.com>
4980 * ThemeVisualStyles.cs: Added support for ControlPaint.DrawCaptionButton and
4981 partial support for managed windows (based on the patch from Ernesto).
4983 2008-04-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4985 * ListView.cs: When doing a key search use FindItemWithText method
4986 instead of doing the search by ourselves, this way we avoid
4987 duplicating the code and also we handle the special case for virtual
4988 mode. To achieve that make our private overload of FindItemWithText
4989 internal and also have a 'roundtrip' parameter.
4991 2008-04-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4993 * ListView.cs: When doing the layout don't request the
4994 ListViewItem instance if we are in virtual mode (since we can't request it
4995 until the item is actully drawn).
4997 2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
4999 * ThemeVisualStyles.cs: Added support for ProgressBar (based on the patch
5002 2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
5004 * ThemeVisualStyles.cs: Added support for ControlPaint.DrawCheckBox (based on
5005 the patch from Ernesto).
5007 2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
5009 * ThemeEngine.cs: Added code to select ThemeVisualStyles.
5010 * ThemeVisualStyles.cs: Added.
5012 2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
5014 * IDeviceContext.cs: Added a missing using.
5016 2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
5018 * ButtonBase.cs: Made IsDefault protected internal.
5019 * ButtonRenderer.cs: Made GetPushButtonRenderer(PushButtonState) internal.
5021 2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
5023 * Application.cs: Included VisualStyles-related members in the 1.1 profile.
5024 * ButtonRenderer.cs, CheckBoxRenderer.cs, Padding.cs, PaddingConverter.cs,
5025 RadioButtonRenderer.cs: Included in the 1.1 profile.
5026 * IDeviceContext.cs: Added.
5027 * TextRenderer.cs: Included a member in the 1.1 profile.
5029 2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
5031 * ThemeWin32Classic.cs: Added ShouldPaintFocusRectangle(ButtonBase).
5033 2008-04-24 Jonathan Pobst <monkey@jpobst.com>
5035 * ErrorProvider.cs: Make the error icons come after the control
5036 they refer to. It isn't the way the MS does it, but its better
5037 than what we were doing. See bug #368587.
5039 2008-04-24 Jonathan Pobst <monkey@jpobst.com>
5041 * InputLanguage.cs, InputLanguageCollection.cs: Apply patch
5042 from Eric Albright that lazy loads the input language as ensures
5043 everything gets properly initialized. Fixes bug #373871.
5045 2008-04-24 Jonathan Pobst <monkey@jpobst.com>
5047 * ToolStrip.cs: Don't use ToolStripControlHosts when figuring up
5048 implicit mnemonics. [Fixes bug #383000]
5050 2008-04-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5052 * X11Dnd.cs: When canceling the operation, automatically restore the
5053 default cursor - normally the default cursor is restored when the
5054 mouse buttons are released, but we should be able to restore it even
5055 if the buttons are still pressed (for example, when pressing ESC to
5059 2008-04-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5061 * X11Dnd.cs: When starting a new drad and drop operation, set control
5062 field to null, just as the other fields, to avoid calling any
5063 operation on a previous control. Also, when calling DndLeave on a
5064 control, set it to null, thus we don't fire that event multiple times
5068 2008-04-23 Geoff Norton <gnorton@novell.com>
5070 * XplatUICarbon.cs: Ensure that we have a valid hwnd before accessing
5071 the whole_window object. Fixes #377084.
5073 2008-04-23 Andreia Gaita <avidigal@novell.com>
5075 * HtmlElement.cs: Implement RaiseEvent (event injection into the
5078 2008-04-23 Jonathan Pobst <monkey@jpobst.com>
5080 * DataGridViewColumnHeaderCell.cs: Implement some NIEX stuffs.
5082 2008-04-23 Andreia Gaita <avidigal@novell.com>
5084 * HtmlElement.cs, HtmlDocument.cs: Implement javscript method
5087 2008-04-23 Andreia Gaita <avidigal@novell.com>
5089 * HtmlElement.cs, HtmlDocument.cs: Implement custom event handler
5092 2008-04-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5094 * X11Dnd.cs: When the drop was cancelled, or could just not be
5095 performed, return DragDropEffect.None always (match .net).
5097 2008-04-22 Jonathan Pobst <monkey@jpobst.com>
5099 * DataGridViewRowHeaderCell.cs: Fill in some NIEX stuff.
5101 2008-04-22 Jonathan Pobst <monkey@jpobst.com>
5103 * DataGridViewRowCollection.cs: Revert something I didn't mean to commit.
5105 2008-04-22 Jonathan Pobst <monkey@jpobst.com>
5107 * DataGridView.cs: Add support for error icon tool tips.
5108 * DataGridViewCell.cs: ErrorIconBounds needs to call GetErrorIconBounds.
5109 * DataGridViewRowHeaderCell.cs: Need internal way to get ErrorIconBounds.
5111 2008-04-22 Ivan N. Zlatev <contact@i-nz.net>
5113 * X11Structs.cs: Add mouse button masks enum.
5114 * XplatUIX11.cs, Hwnd.cs: Send WM_ENTERSIZEMOVE and
5115 WM_EXITSIZEMOVE only once at the beginning and at the end of the
5116 form resize/move operation instead of for each step of it.
5117 [Fixes bug #346529 for the x11 backend]
5119 2008-04-21 Jonathan Pobst <monkey@jpobst.com>
5121 * DataGridView*: Implement support for drawing error icons.
5123 2008-04-21 Jonathan Pobst <monkey@jpobst.com>
5125 * TreeView.cs: Make vbar and hbar internal.
5126 * TreeNode.cs: If collapsing the node removes one of the TreeView's
5127 scrollbars, invalidate the whole thing.
5130 2008-04-21 Jonathan Pobst <monkey@jpobst.com>
5132 * TreeView.cs: Calling Sort() sets Sorted = true.
5133 * TreeNodeCollection.cs: Try to find the owner TreeView to determine
5134 if the nodes need to be sorted.
5137 2008-04-21 Ivan N. Zlatev <contact@i-nz.net>
5139 * Form.cs: Fire SizeChanged for both when the form is minimized and
5141 * XplatUIX11.cs: Instead of tracking minimization on UnmapNotify track it
5142 on PropertyNotify of _NET_WM_STATE. Much much cleaner.
5144 2008-04-21 Jonathan Pobst <monkey@jpobst.com>
5146 * ComboBox.cs: If the combobox is disabled, draw a disabled
5147 background before painting anything else.
5150 2008-04-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5152 * X11Dnd.cs: Wehn the drag and drop operation is cancelled don't
5153 forget to send a Leave event to the target window - just as .net does
5154 when cancelling dnd operations.
5156 2008-04-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5158 * X11Dnd.cs: Stop tracking messages as part of the dnd operation as
5159 soon as possible - this happens when we send the drop message to the
5160 target window. This way we avoid firing any DragOver _after_ drop finished.
5163 2008-04-20 Ivan N. Zlatev <contact@i-nz.net>
5165 * XplatUIX11.cs: Send WM_WINDOWPOSCHANGED when a toplevel is minimized.
5166 * Form.cs: Handle form minimization as a special state, where size doesn't
5167 change, but we have to fire SizeChanged.
5168 [Fixes bug #325122 for the win32 and x11 backends]
5170 2008-04-20 Ivan N. Zlatev <contact@i-nz.net>
5172 * XplatUIX11.cs: Win32 doesn't send WM_(KILL|SET)FOCUS
5173 if the handle is disabled.
5176 2008-04-20 Ivan N. Zlatev <contact@i-nz.net>
5178 * XplatUIX11.cs: Enable Maximize/Minimize/Close ability (not decorations)
5179 for forms with FormBorderStyle.None.
5182 2008-04-20 Ivan N. Zlatev <contact@i-nz.net>
5184 * XplatUIX11.cs: Implement support for WM_ENTERSIZEMOVE and
5186 [Fixes bug #346529 for the X11 backend]
5188 2008-04-19 Ivan N. Zlatev <contact@i-nz.net>
5191 - Send a mouse Enter message after say dragging the mouse with a
5192 button down and then release it in another client.
5193 - Reset the cursor to prevent X11 from remembering it and setting it
5194 before the control gets WM_SETCURSOR.
5195 - Qeueue a mouse move after a mouse enter like win32.
5198 2008-04-19 Ivan N. Zlatev <contact@i-nz.net>
5200 * XplatUIX11.cs: Implement limited support for WM_SYSCOMMAND.
5201 It's sent when the form gets moved, resized, closed.
5202 * XplatUIStructs.cs: Add SystemCommands enum for WM_SYSCOMMAND.
5203 [Fixes bug #359193 for X11]
5205 2008-04-19 Ivan N. Zlatev <contact@i-nz.net>
5207 * Form.cs: Add a ValidateChildren for the 1.1 profile. Fixes
5210 2008-04-19 Ivan N. Zlatev <contact@i-nz.net>
5212 * ListView.cs: Move CalculateDetailsGroupItemsCount to the NET_2_0
5213 group. Fixes the 1.1 build.
5215 2008-04-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5217 * ListView.cs: Use display indexes for selection in Details view, as
5218 well as do the proper layout based on display indexes for that view
5221 2008-04-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5223 * ListView.cs: Focused item information is now stored as a display
5224 index, and display indexes are used all over the place for selection,
5225 instead of ListViewItem.Index values, which doesn't give us enough
5226 information to modify the selection in groups mode, and was broken.
5228 2008-04-18 Ivan N. Zlatev <contact@i-nz.net>
5230 * Control.cs: Do not fire MouseDown if validation of the control has
5232 * Form.cs: Validate the form before closing.
5233 [Fixes bugs #330501 and #353310]
5235 2008-04-18 Andreia Gaita <avidigal@novell.com>
5237 * WebBrowserBase.cs: Added WndProc, DrawToBitmap,
5238 CreateWebBrowserSiteBase implementations
5239 * HtmlElement.cs: Add missing OuterHTML, OuterText setters, stubbed
5240 Style and TabIndex setters
5242 2008-04-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5244 * ListViewGroup.cs: When returning the actual item count, return the
5245 proper count for default group.
5248 2008-04-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5251 * ListViewGroup.cs: When calculating groups layout, get the actual
5252 number of items per group, since groups added to the group BUT not
5253 added to the ListView are just ignored, and can cause some nasty
5254 exceptions because of the lack of synchronization. Also for
5255 ListViewGroup don't use lazy initialization for items, since we
5256 the common scenario is to use it always - and it helps us to refactor
5257 and clean the .ctor overloads.
5259 2008-04-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5261 * ListView.cs: When adding an item to a ListViewItemCollection
5262 belonging to a group (ListViewGroup.Items), don't generate a redraw if
5263 the added item hasn't beeen previously added to the ListView instance
5264 refered by the group, since it will be ignored. This should avoid some
5265 really nasty flickering.
5267 2008-04-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5269 * ListView.cs: When accessing an item in a specific display
5270 position, use the helper method GetItemAtDisplayIndex, instead of
5271 direct access to the reordered_items_indices array. When doing layout
5272 for groups set the correct Items index for the display position (since
5273 in groups mode items don't have the same position as in Items
5275 * ListViewGroup.cs: Add a field to store the starting item number,
5276 which is later used when calculating the layout.
5280 2008-04-17 Gert Driesen <drieseng@users.sourceforge.net>
5282 * Application.cs: Fixed ProductVersion to fallback to the assembly
5283 version. Fixes regression for bug #325413.
5285 2008-04-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5287 * ListView.cs: New helper method to retrieve an item in a _specific
5288 display_ position (the items can be displayed in a different order
5289 than one of Items collection).
5290 * ThemeWin32Classic.cs: When drawing, instead of iterating over Items
5291 collection, use ListView.GetItemAtDisplayIndex, to get an item in a
5292 specific display position (again remember that items can be sorted
5293 different than Items).
5295 2008-04-16 Jonathan Pobst <monkey@jpobst.com>
5297 * DataGridViewColumnCollection.cs: Create a cached copy of our sorted
5298 list and update it when the collection changes. We were recreating
5299 this several times per row paint and for every pixel the mouse moved
5301 * DataGridViewColumn.cs: Regenerate cached sorted list when DisplayIndex
5304 2008-04-16 Jonathan Pobst <monkey@jpobst.com>
5306 * DataGridViewColumnCollection.cs: Convert our internal sorted columns
5307 list to use generics.
5308 * DataGridView.cs, DataGridViewRow.cs: Use generic sorted column list
5309 and remove unneccessay casts.
5311 2008-04-16 Jonathan Pobst <monkey@jpobst.com>
5313 * DataGridViewBand.cs: Add internal way to set displayed variable.
5314 * DataGridViewRow.cs: Don't paint cells in non-displayed columns.
5315 * DataGridView.cs: Make sure we always keep track of Displayed
5316 rows and columns, and only draw things that are displayed.
5318 2008-04-16 Atsushi Enomoto <atsushi@ximian.com>
5320 * X11Keyboard.cs, XplatUIX11.cs : manage key state regardless of
5321 whether the key events are filtered or not. Introduced
5322 PreFilter() process for this purpose. This fixes atokx3/iiimx
5325 2008-04-16 Andreia Gaita <avidigal@novell.com>
5327 * HtmlHistory.cs: Implement Length property
5329 2008-04-15 Jonathan Pobst <monkey@jpobst.com>
5331 * DataGridView.cs: Call EndEdit when a sort is performed so we take
5332 away the edit textbox. Refactor to reuse column sort code.
5334 2008-04-12 Everaldo Canuto <ecanuto@novell.com>
5336 * MenuAPI.cs: Remove the code that save and restore capture status of
5337 grab_control, this fixes some Menu and Context menu bugs but maybe it can
5338 cause some others, I cant figure the possible problems of this patch but
5339 right now remove the code looks to be better than keep it. This patch fixes
5340 bugs #357638, #378721 and #379570.
5342 2008-04-12 Andreia Gaita <avidigal@novell.com>
5344 * HtmlDocument.cs, HtmlElement.cs, HtmlHistory.cs, WebBrowser.cs:
5345 Implement OuterHtml, OuterText, Enabled, Scroll*, *Rectangle properties,
5346 add missing properties and event handlers.
5348 2008-04-14 Jonathan Pobst <monkey@jpobst.com>
5350 * ListBox.cs: Make sure the LargeChange we are setting is at least
5351 zero, to prevent an IOORE. [Fixes bug #379531]
5353 2008-04-13 Andy Hume <andyhume32@yahoo.co.uk>
5355 * ComboBox.cs: Support item navigation by entering text. Firstly,
5356 in DropDownList mode, for each key-press select the next item
5357 starting with that letter.
5358 For other modes, when no item selected, on arrow-up/-down and open
5359 drop-down select the first item matching the text in the textbox.
5361 2008-04-14 Atsushi Enomoto <atsushi@ximian.com>
5363 * X11Keyboard.cs : Control.FromHandle() could return null
5364 in MoveCurrentCaretPos().
5366 2008-04-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5368 * ListView.cs: When changing the size in VirtualMode, also Reset the
5370 * ListViewItem.cs: Don't call SelectedIndexCollection.Reset when
5371 changing selection info for VirtualMode.
5374 2008-04-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5376 * ThemeWin32Classic.cs: When drawing ListViewItem instancesin Details
5377 view, don't use LineLimit for the first item - use NoWrap *always*
5378 instead, since ListView.LabelWrap is not used for this view.
5381 2008-04-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5383 * Binding.cs: Call UpdateIsBinding when setting control - probably
5384 Binding is already usable and we don't need to wait to check the
5385 IsBinding state. Also for 1.1 profile use IsHandleCreated instead of
5386 Created, just like 2.0 does.
5387 * CurrencyManager.cs: I'm so lame - the previous check was wrong.
5389 2008-04-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5391 * Binding.cs: Just realized we don't need to have a handler for
5392 BindingContextChanged, since this info should be now consumed directly
5393 in the BindingManagerBase. And also, the manager.IsBindingSuspended
5394 state info is checked directly, instead of caching it.
5396 * CurrencyManager.cs: IsSuspended should return always false if Count
5399 2008-04-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5401 * Binding.cs: When calling PushData, return if manager.Count == 0,
5402 since we just don't have data to be read. Also, when setting the
5403 Control for binding, hook up some events to refresh the IsBinding
5404 state when BindingContext change or control gets created; use
5405 Control.IsHandleCreated instead of Control.Created check to set
5406 IsBinding state - we *actually* need to modify IsBinding when control
5407 is created, but we don't have any Created event, only HandleCreated.
5408 Fixes part of #349364.
5410 2008-04-11 Geoff Norton <gnorton@novell.com>
5412 * XplatUICarbon.cs: Expose Caret to the Carbon layer. Guard against
5413 warping a null Caret.
5415 2008-04-11 Jonathan Pobst <monkey@jpobst.com>
5417 * DataGridView.cs: Implement row/column autosizing methods. Implement
5419 * DataGridViewColumnHeaderCell.cs: Add painting of the sort glyph.
5420 * DataGridViewRowCollection.cs: Add an internal sorting method.
5422 2008-04-11 Jonathan Pobst <monkey@jpobst.com>
5424 * ThemeWin32Classic.cs: Apply patch from Ernesto to cache an expensive
5425 value in ListView drawing code.
5427 2008-04-11 Jonathan Pobst <monkey@jpobst.com>
5429 * FileDialog.cs: Only call FileOk when Ok is clicked, not when Cancel
5430 is clicked. Respect the user setting Cancel in FileOk.
5432 2008-04-11 Geoff Norton <gnorton@novell.com>
5434 * ListView.cs: Avoid setting and resetting control Width/Heights and
5435 calculate the final value and set it once. Prevents a feedback loop
5438 2008-04-10 Jonathan Pobst <monkey@jpobst.com>
5440 * TreeView.cs: Clamp setting the scrollbar value using SafeValueSet.
5443 2008-04-10 Atsushi Enomoto <atsushi@ximian.com>
5445 * X11Keyboard.cs, X11Structs.cs : make over-the-spot mode default.
5446 Add some on-the-spot code, but it seems we don't need it.
5448 2008-04-10 Jonathan Pobst <monkey@jpobst.com>
5450 * Form.cs: Add method for DataGridView to trigger focus cues
5451 even when it handles the tab keypress.
5453 2008-04-10 Jonathan Pobst <monkey@jpobst.com>
5455 * DataGridView.cs: More keyboard handling, tab, esc.
5456 * DataGridViewTextBoxEditingControl.cs: Don't request arrow keys
5457 when at the beginning or end of the text in the text box.
5459 2008-04-09 Jonathan Pobst <monkey@jpobst.com>
5461 * DataGridViewCell.cs: Guard against an NRE causing a test to fail.
5463 2008-04-09 Jonathan Pobst <monkey@jpobst.com>
5465 * DataGridView.cs: Some fixups for showing and adding the edit control.
5466 * DataGridViewButtonColumn.cs: Implement ToString.
5467 * DataGridViewCell.cs: Size and position the control simultaneously.
5468 * DataGridViewTextBoxCell.cs: Use base to position control.
5470 2008-04-09 Jonathan Pobst <monkey@jpobst.com>
5472 * DataGridViewCell.cs: Fix up some formatting and painting code.
5473 * DataGridViewImageCell.cs: Implement some NIEX methods.
5475 2008-04-09 Jonathan Pobst <monkey@jpobst.com>
5477 * ToolStripItemCollection.cs: What moving an item from one owner
5478 to another, remove from source owner before adding to destination.
5481 2008-04-09 Jonathan Pobst <monkey@jpobst.com>
5483 * PictureBox.cs: Call Load when ImageLocation is set.
5486 2008-04-09 Atsushi Enomoto <atsushi@ximian.com>
5488 * X11Keyboard.cs, XplatUIX11.cs :
5489 Implement over-the-spot mode (with some odd offsets).
5490 - set preedit position when caret is set.
5491 - Wrap XMoveResizeWindow() to move preedit position.
5493 2008-04-08 Everaldo Canuto <ecanuto@novell.com>
5495 * X11keyboard.cs: Fix last patch, maxval must be less not greater than
5498 2008-04-08 Everaldo Canuto <ecanuto@novell.com>
5500 * KeyboardLayouts.cs: Uses GENERATING_RESOURCES to make VKeyTableIndex
5501 and ScanTableIndex public, it fix compilations errors when compiling
5502 WinForms to generate keyboard layout resources.
5504 2008-04-08 Everaldo Canuto <ecanuto@novell.com>
5506 * X11keyboard.cs: Prevent keyboard errors when vitual table theres
5507 different element count than scan table. It prevents some errors in non
5510 2008-04-08 Jonathan Pobst <monkey@jpobst.com>
5512 * DataGridViewHeaderCell.cs: Implement some NIEX methods.
5514 2008-04-08 Jonathan Pobst <monkey@jpobst.com>
5516 * DataGridView.cs: Call OnContentClick.
5517 * DataGridViewCell.cs: Do a null check on ValueType instead
5519 * DataGridViewCheckBoxCell.cs: Implement.
5521 2008-04-08 Atsushi Enomoto <atsushi@ximian.com>
5523 * X11Keyboard.cs : Do not cast IntPtr to int. Use long.
5525 2008-04-08 Atsushi Enomoto <atsushi@ximian.com>
5527 * X11Keyboard.cs : Check XGetIMValues() return value in
5528 case it does not return input styles in some environment.
5530 2008-04-08 Atsushi Enomoto <atsushi@ximian.com>
5532 * X11Keyboard.cs : sizeof(IntPtr) != 4 on amd64.
5534 2008-04-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5536 * BindingContext.cs: Stub UpdateBinding method.
5538 2008-04-07 Atsushi Enomoto <atsushi@ximian.com>
5540 * X11Structs.cs : added couple of structs for XIM support.
5542 Release XIM in case it failed to create XIC.
5543 Use consts for XNblah string.
5544 Add support for IM style customization and XIC creation
5545 for preedit-position and preedit-callback.
5546 Right now use MONO_WINFORMS_XIM_STYLE environment variable
5547 (list of: over-the-spot | on-the-spot | root). Only root
5550 (redoing r99172 with fix.)
5552 2008-04-07 Jonathan Pobst <monkey@jpobst.com>
5554 * TreeView.cs: Center the checkbox a little better.
5556 2008-04-07 Jonathan Pobst <monkey@jpobst.com>
5558 * ThemeClearlooks.cs, ThemeGtk.cs, ThemeNice.cs, ThemeWin32Classic.cs:
5559 Apply very nice patch from Ernesto Carrea that simplifies our
5560 scrollbar drawing. [From bug #376146]
5562 2008-04-07 Jonathan Pobst <monkey@jpobst.com>
5564 * TreeView.cs: Correct the location of the root node checkbox when
5565 ShowRootLines = false. Don't draw the root lines for the root node
5566 when ShowRootLines = false. [Fixes bug #377535]
5568 2008-04-06 Gert Driesen <drieseng@users.sourceforge.net>
5570 * WebBrowserBase.cs: Added missing attributes and fixed attributes.
5572 * WebBrowser.cs: Added missing attributes and fixed attributes. Fixed
5574 * MaskedTextBox.cs: Added missing attribute. Code formatting.
5575 * PageSetupDialog.cs: Added missing attribute. Code formatting.
5576 * HtmlWindowCollection.cs: Code formatting. Fixed line endings.
5577 * ImeMode.cs: Added missing field.
5578 * HtmlWindow.cs: Code formatting. Fixed line endings.
5579 * HtmlElement.cs: Code formatting. Fixed line endings. Fixed compiler
5581 * HtmlHistory.cs: Code formatting. Fixed line endings.
5582 * HtmlDocument.cs: Code formatting. Fixed line endings.
5583 * ToolStripPanel.cs: Added missing IList implementation.
5584 * HtmlElementCollection.cs: Code formatting. Fixed line endings.
5586 2008-04-06 Gert Driesen <drieseng@users.sourceforge.net>
5588 * BindingContext.cs: Changed argument names to fix corcompare errors.
5589 * DataGridView.cs: Removed extra explicit interface implementation
5590 of IDropTarget. Code formatting.
5591 * FlowLayoutPanel.cs: Changed argument names to fix corcompare errors.
5592 * ComboBox.cs: Changed argument names to fix corcompare errors.
5593 * DataGridTextBoxColumn.cs: Changed argument names to fix corcompare
5595 * GridColumnStylesCollection.cs: Changed argument names to fix
5596 corcompare errors. Removed extra tabs.
5597 * GridTableStylesCollection.cs: Changed argument names to fix corcompare
5599 * Control.cs: Changed argument names to fix corcompare errors. Code
5600 formatting. Removed extra explicit IList implementation.
5601 * TextBox.cs: Changed argument names to fix corcompare errors. Code
5602 formatting. Use string.Empty instead of "".
5603 * GridItemCollection.cs: Changed argument names to fix corcompare
5604 errors. Code formatting.
5605 * DataGridViewTopLeftHeaderCell.cs: Changed argument names to fix
5606 corcompare errors. Code formatting.
5607 * ImageList.cs: Changed argument names to fix corcompare errors.
5608 * ToolStripItem.cs: Changed argument names to fix corcompare errors.
5609 * DataGridViewRowCollection.cs: Changed argument names to fix
5610 corcompare errors. Code formatting.
5611 * TableLayoutPanel.cs: Changed argument names to fix corcompare errors.
5612 * DataGridViewSelectedCellCollection.cs: Changed argument names to
5613 fix corcompare errors. Code formatting.
5614 * DataGridViewComboBoxCell.cs: Changed argument names to fix
5615 corcompare errors. Code formatting.
5616 * LinkLabel.cs: Changed argument names to fix corcompare errors.
5617 * TreeNode.cs: Changed argument names to fix corcompare errors. Code
5619 * PropertyGrid.cs: Changed argument names to fix corcompare errors.
5621 * BindingSource.cs: Changed argument names to fix corcompare errors.
5622 Removed extra explicit interface implementations.
5623 * DataGridViewSelectedRowCollection.cs: Changed argument names to
5624 fix corcompare errors. Code formatting.
5625 * ToolStripItemCollection.cs: Removed extra explicit interface
5626 implementation of IList.ReadOnly.
5627 * DataGridViewColumnCollection.cs: Changed argument names to fix
5628 corcompare errors. Code formatting.
5629 * DataGridViewRow.cs: Rename converter to match MS. Code formatting.
5630 * ListView.cs: Changed argument names to fix corcompare errors.
5631 * DataGridViewHeaderCell.cs: Changed argument names to fix corcompare
5633 * DataGridBoolColumn.cs: Changed argument names to fix corcompare
5635 * ListBindingHelper.cs: Changed argument names to fix corcompare
5637 * DataGridViewSelectedColumnCollection.cs: Changed argument names to
5638 fix corcompare errors. Code formatting.
5639 * ToolStripPanel.cs: Removed extra explicit implementation of
5640 IDropTarget interface.
5641 * ListBox.cs: Changed argument names to fix corcompare errors. Code
5642 formatting. Removed extra tabs and spaces.
5643 * DataGridViewCellCollection.cs: Changed argument names to fix
5645 * Help.cs: Changed argument names to fix corcompare errors. Code
5647 * TabControl.cs: Changed argument names to fix corcompare errors.
5648 * DataGridColumnStyle.cs: Changed argument names to fix corcompare
5650 * TableLayoutSettings.cs: Changed argument names to fix corcompare
5653 2008-04-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5655 * ListBindingHelper.cs: When returning properties, only return those
5656 that are browsable. Also, don't do a linear search of the properties,
5657 but use the indexer of the PropertyDescriptorCollection class.
5659 2008-04-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5661 * BindingSource.cs: Implement GetRelatedCurrencyManager by adding a
5662 Dictionary containing the related (child) currency managers. Also,
5663 when setting DataSource, add datasource to our List if it is not a list.
5665 2008-04-05 Ivan N. Zlatev <contact@i-nz.net>
5667 * PropertyGridTextBox.cs: Fix background color of the buttons.
5668 * PropertyGridView.cs: Make the entry less jumpy.
5670 2008-04-05 Ivan N. Zlatev <contact@i-nz.net>
5672 * PropertyGrid.cs: Fix unused variable warnings.
5674 2008-04-05 Ivan N. Zlatev <contact@i-nz.net>
5676 * PropertyGridView.cs: Fix expansion via [+] misbehavior on
5677 double-click. It expanded it once in the mouse down and then
5678 again in the double-click handler.
5680 2008-04-04 Ivan N. Zlatev <contact@i-nz.net>
5682 * GridEntry.cs: ICustomTypeDescriptor support for PropertyOwner,
5683 TypeConverter and UITypeEditors.
5685 2008-04-04 Ivan N. Zlatev <contact@i-nz.net>
5687 * Control.cs: Visibility should be set synchronously,
5688 so we must also redraw once it is and not rely on layouting or
5689 other code to repaint.
5692 2008-04-04 Jonathan Pobst <monkey@jpobst.com>
5694 * DataGridViewCell.cs: Respect DataGridView.GridColor.
5696 2008-04-03 Jonathan Pobst <monkey@jpobst.com>
5698 * Control.cs: Invalidate when the alpha channel is less than 255,
5699 not only when control is transparent.
5701 2008-04-03 Jonathan Pobst <monkey@jpobst.com>
5703 * DataGridViewRowPrePaintEventArgs.cs, DataGridViewRowPostPaintEventArgs.cs:
5704 Implement some painting convenience methods that threw NIEX.
5706 2008-04-03 Jonathan Pobst <monkey@jpobst.com>
5708 * DataGridView.cs: Call CellMouse[Enter|Move|Leave] properly.
5709 * DataGridViewLinkCell.cs: Implement.
5711 2008-04-03 Ivan N. Zlatev <contact@i-nz.net>
5713 * GridEntry.cs: Report the conversion exception error description.
5716 2008-04-03 Ivan N. Zlatev <contact@i-nz.net>
5718 * PropertyGridView.cs: Do not scroll to item on resize.
5721 2008-04-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5723 * BindingContext.cs: When retrieving a BindingManagerBase, if the
5724 dataSource parameter is ICurrencyManagerProvider, then return
5725 ICurrencyManagerProvider.CurrencyManager/GetRelatedCurrencyManager
5726 instead of creating a new one.
5728 2008-04-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5730 * BindingSource.cs: Implement support for Type instances as
5733 2008-04-02 Jonathan Pobst <monkey@jpobst.com>
5735 * DataGridView.cs: Minor cleanups and call CellMouseUp.
5736 * DataGridViewCell.cs: Make some painting routines internally virtual.
5737 * DataGridViewButtonCell.cs: Implement.
5739 2008-04-02 Jonathan Pobst <monkey@jpobst.com>
5741 * Control.cs: We always need to invalidate our children with
5742 transparent backgrounds when we are invalidated.
5745 2008-04-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5747 * BindingSource.cs: EndEdit and CancelEdit should call EndCurrentEdit
5748 and CancelCurrentEdit on CurrencyManager respectively. Implement
5749 support for ICancelAddNew too.
5751 2008-04-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5753 * CurrencyManager.cs: When calling EndCurrentEdit/CancelCurrentEdit,
5754 call EndNew/CancelNew if list is ICancelAddNew.
5756 2008-04-01 Jonathan Pobst <monkey@jpobst.com>
5758 * DataGridView.cs: Guard against an exception while painting
5759 if there are no rows.
5761 2008-04-01 Jonathan Pobst <monkey@jpobst.com>
5763 * DataGridView.cs: Implement a bunch of keyboard commands.
5765 2008-03-31 Jonathan Pobst <monkey@jpobst.com>
5767 * ToolBar.cs: Don't do our painting if UserPaint is set. If UserPaint
5768 isn't set, don't call OnPaint. [Fixes bug #375300]
5770 2008-03-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5772 * BindingSource.cs: IsBindingSuspended, ResumeBinding and
5773 SuspendBinding depend on CurrencyManager. Implement RemoveCurrent,
5774 hookup the remaining events related to CurrencyManager, and fire
5775 OnListChanged also for the Clear () method.
5777 2008-03-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5779 * BindingSource.cs: Use Current and Position implementations in
5780 CurrencyManager instead of using our own routines, since we need
5781 to be in synch with it. Count should NEVER return a -1 value, and
5782 also report ListChanged events for both simple IList data
5783 sources (manually) as well for IBindingList ones (by hooking up an
5784 event handler for it).
5786 2008-03-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5788 * BindingSource.cs: Make one .ctor call the another, to avoid
5789 duplicate code. Add the CurrencyManager property, and also for AddNew
5790 throw the proper exceptions and show better error messages.
5792 2008-03-28 Jonathan Pobst <monkey@jpobst.com>
5794 * ComboBox.cs: Only adjust selectedindex if Handle has been
5795 created. Fixes failing test.
5797 2008-03-28 Jonathan Pobst <monkey@jpobst.com>
5799 * ComboBox.cs: Adjust selectedindex if we insert a new item
5800 above the current selectedindex in a sorted ComboBox.
5803 2008-03-28 Jonathan Pobst <monkey@jpobst.com>
5805 * ComboBox.cs: Support PageUp/PageDown when dropdown is closed.
5808 2008-03-28 Jonathan Pobst <monkey@jpobst.com>
5810 * DataGridViewTextBoxCell.cs: Implement stuffs.
5812 2008-03-27 Jonathan Pobst <monkey@jpobst.com>
5814 * TreeView.cs: Create the scrollbars even earlier to be
5815 double dog certain they are created before they are accessed.
5817 2008-03-27 Jonathan Pobst <monkey@jpobst.com>
5819 * XplatUIX11.cs: Remove a no-op line that csc was choking on.
5821 2008-03-27 Jonathan Pobst <monkey@jpobst.com>
5823 * ScrollBar.cs: Create an internal safe Value setter so we
5824 won't crash if we try to set a value outside the min and max.
5825 * TextBoxBase.cs: Use safe value setter to guard against a
5826 potential NRE that is being reported by Reflector.
5828 2008-03-27 Jonathan Pobst <monkey@jpobst.com>
5830 * TreeView.cs: Create the scrollbars earlier in the constructor
5831 to attempt to guard against an NRE in SetTop in Reflector.
5833 2008-03-27 Jonathan Pobst <monkey@jpobst.com>
5835 * DataGridView.cs, DataGridViewCell.cs, DataGridViewCell.cs,
5836 DataGridViewRowCollection.cs: Do not scroll column and row headers,
5837 show messagebox on data format error, use column display index
5838 correctly, make sure HitTest supports new layout stuff,
5839 make sure scrollbars support new layout stuff.
5841 2008-03-27 Atsushi Enomoto <atsushi@ximian.com>
5843 * XplatUIX11.cs : Patch by Doug Rintoul.
5844 For some IM engines, keypress events need to delay call
5845 to XPending() and XNextEvent() in the loop so that it
5846 does not mess the orders in XIM commit callback.
5847 Some KeyRelease events such as shift keys need to be
5848 processed both in the IM engine and winforms driver
5849 itself since winforms holds its own state check.
5851 For details, see: http://lists.ximian.com/pipermail/mono-winforms-list/2008-March/003279.html
5853 2008-03-27 Atsushi Enomoto <atsushi@ximian.com>
5855 * X11Keyboard.cs, XplatUIX11.cs :
5856 add primitive support for XIM input support (preedit-
5857 nothing and status-nothing). It requires precise event
5858 capturing (XSelectInput/"filterEvents") and different
5859 call to XFilterEvent against root window.
5860 Get composed string and send dummy WM_IME_COMPOSITION.
5861 Free XIM and XIC instances in finalizer.
5863 (This first patch does not include suggested changes
5864 by Doug Rintoul. It will follow.)
5866 2008-03-26 Jonathan Pobst <monkey@jpobst.com>
5868 * DataGridView.cs: When binding to a property, if the property
5869 doesn't have a setter, set the column to readonly.
5872 2008-03-26 Jonathan Pobst <monkey@jpobst.com>
5874 * ComboBox.cs: Guard against NRE if an arrow key is hit while
5875 we aren't dropped down. Support Home/End in DropDownList mode.
5878 2008-03-26 Jonathan Pobst <monkey@jpobst.com>
5880 * TreeNodeCollection.cs: Don't increment count until we've
5881 saved our index to return.
5884 2008-03-25 Jonathan Pobst <monkey@jpobst.com>
5886 * Label.cs: Add padding to the label's AutoSize calculation.
5889 2008-03-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5891 * ListBindingHelper.cs: Actually implement GetListName method.
5893 2008-03-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5895 * BindingSource.cs: Throw the propert expceptions for some methods, as
5896 well as detect the list item type for Add method if DataSource is null.
5898 2008-03-25 Jonathan Pobst <monkey@jpobst.com>
5900 * DataGridViewCell.cs: I don't know why I commented this out,
5901 putting it back for now.
5903 2008-03-25 Jonathan Pobst <monkey@jpobst.com>
5905 * DataGridViewCell.cs: Remove storage for owning column, just
5907 * DataGridViewColumn.cs: Make getter for HeaderTextSet.
5908 * DataGridViewColumnHeaderCell.cs: If the header text has been
5909 explicitly set, return it.
5912 2008-03-25 Jonathan Pobst <monkey@jpobst.com>
5914 * DataGridViewRowCollection.cs: Disable row sharing when
5915 using data binding. Its a great feature, but lets work on
5916 getting DGV usable first before we worry about optimizations.
5918 2008-03-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5920 * BindingSource.cs: When resetting our internal list, compute list
5921 item type information to be used for indirect list access. Also
5922 implement/tune some properties and methods related to the list access
5924 * ListBindingHelper.cs: Add a stub for GetListName method, used from
5927 2008-03-24 Jonathan Pobst <monkey@jpobst.com>
5929 * DataGridView.cs: If RowCount is increased while ColumnCount
5930 is zero, add a column. [Fixes bug #331649]
5932 2008-03-24 Jonathan Pobst <monkey@jpobst.com>
5934 * DataGridViewRowCollection.cs: When adding new rows for
5935 databinding, make sure they are place before the add row.
5938 2008-03-24 Jonathan Pobst <monkey@jpobst.com>
5940 * DataGridViewRow.cs: Draw cells in column DisplayIndex order
5941 instead of Index order.
5943 2008-03-24 Jonathan Pobst <monkey@jpobst.com>
5945 * DataGridView.cs: If columns are added by increasing ColumnCount,
5946 they need to be DataGridViewTextBoxColumns, not DataGridViewColumn.
5949 2008-03-24 Jonathan Pobst <monkey@jpobst.com>
5951 * DataGridView.cs: Turn off and on the "new row" when
5952 AllowUserToAddRows is toggled. When the handle is created,
5953 set current cell and selected cell/row/col.
5955 2008-03-24 Jonathan Pobst <monkey@jpobst.com>
5957 * ComboBox.cs: When navigating the drop down by keyboard, we
5958 need to scroll the list box if our selection moves out of the
5959 currently shown items. [Fixes bug #371990]
5961 2008-03-24 Luke Page <luke.a.page@gmail.com>
5963 * RichTextBox.cs: Handles visible rtf tag and no longer shows the text
5964 on the control. Also now handles unicode compatibility characters and
5965 stores the unicode compatibility length on the stack. Fixes Bugs
5966 #355198 and #366436.
5968 2008-03-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5970 * BindingSource..cs: Take into account DataMember when re-creating the
5971 List property, and also create a specific kind of list as needed.
5973 2008-03-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5975 * ListBindingHelper.cs: Add a new case for GetList () method - when we
5976 get an empty IEnumerable, try to detect whether the datamember is
5977 valid or not for that type, if true, return null, and throw exception
5980 2008-03-22 Jonathan Pobst <monkey@jpobst.com>
5982 * ComboBox.cs: Alt-Down should drop down the list, Esc should
5983 retract it. [Fixes bug #371989]
5985 2008-03-22 Ivan N. Zlatev <contact@i-nz.net>
5987 * PropertyGrid.cs: Initialize the sorting button as pushed.
5989 2008-03-22 Ivan N. Zlatev <contact@i-nz.net>
5992 - Visually select the PropertyTab.
5993 - Filter Properties by Attributes properly.
5995 2008-03-21 Jonathan Pobst <monkey@jpobst.com>
5997 * MenuItem.cs: Remove menu item from parent when disposed.
6000 2008-03-21 Jonathan Pobst <monkey@jpobst.com>
6002 * ToolBar.cs: Don't reset layout_type if Dock = None.
6004 2008-03-21 Andreia Gaita <avidigal@novell.com>
6006 * UserControl.cs: Select the first available control when we get focus.
6009 2008-03-21 Jonathan Pobst <monkey@jpobst.com>
6011 * DataGridViewCell.cs, DataGridViewTextBoxCell.cs: Don't paint
6012 the content if we are in edit mode. [Fixes bug #343964]
6014 2008-03-21 Jonathan Pobst <monkey@jpobst.com>
6016 * DataGridViewCell.cs: Fix border painting for column headers.
6018 2008-03-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6020 * BindingSource.cs: When setting or resetting data source,
6021 use ListBindingHelper.GetList () method, since it will get the list in
6022 case datasource is IListSource.
6024 2008-03-20 Jonathan Pobst <monkey@jpobst.com>
6026 * DataGridViewCell.cs: Implement lots more stuffs.
6028 2008-03-20 Ivan N. Zlatev <contact@i-nz.net>
6030 * PropertyGridView.cs, GridEntry.cs: Implement support for
6031 UITypeEditor.IsDropDownResizable.
6033 2008-03-20 Jonathan Pobst <monkey@jpobst.com>
6035 * DataGridViewCell.cs: Remove unused variables, improve how
6036 several of the property getters work.
6037 * DataGridViewRow.cs: Don't call setSize on a cell, cell should
6038 get its size from the parent row/col.
6040 2008-03-20 Ivan N. Zlatev <contact@i-nz.net>
6042 * PropertyGrid.cs: Ensure PropertiesTab is visible even if the
6043 user alters manually the PropertyTabs collection via the
6044 PropertyTabs property.
6046 2008-03-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6048 * ListBindingHelper.cs: Implement -previously- ignored cases. We have
6049 new tests for them to be sure to be compatible with .net.
6051 2008-03-20 Andreia Gaita <avidigal@novell.com>
6053 * WebBrowserBase.cs: Fix attributes, add events
6054 * WebBrowser.cs: Fix Padding signature
6056 2008-03-20 Ivan N. Zlatev <contact@i-nz.net>
6058 * PropertyGrid.cs, PropertyGridView.cs: Implement PropertyTab support.
6060 2008-03-19 Jonathan Pobst <monkey@jpobst.com>
6062 * DataGridView.cs, DataGridViewCell.cs, DataGridViewCellStyle.cs,
6063 DataGridViewLinkCell.cs, DataGridViewRow.cs, DataGridViewRowHeaderCell.cs,
6064 DataGridViewTextBoxCell.cs: Changes so that DataGridViewCell
6065 passes the new suite of tests for it.
6067 2008-03-18 Andreia Gaita <avidigal@novell.com>
6069 * WebBrowser.cs: Add missing attributes, missing Padding and
6070 DefaultSize properties, remove extraneous getters
6072 2008-03-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6074 * ListBindingHelper.cs: Implement a pair of GetListItemProperties
6077 2008-03-16 Jonathan Pobst <monkey@jpobst.com>
6079 * ComboBox.cs: Move resetting the selected index to keypress
6080 instead of textchanged. Changing the text programmatically
6081 should not trigger resetting the selected index. Fixes test.
6083 2008-03-16 Jonathan Pobst <monkey@jpobst.com>
6085 * ComboBox.cs: When the user types into the textbox, reset
6086 the selected index to -1. [Fixes bug #371672]
6088 2008-03-16 Jonathan Pobst <monkey@jpobst.com>
6090 * FileDialog.cs: Support Control-A for selecting everything
6091 in an OpenFileDialog. [Fixes bug #371564]
6093 2008-03-15 Jonathan Pobst <monkey@jpobst.com>
6095 * DataGridView.cs: When row/column visible/height properties
6096 change, invalidate. Take the NIEX out of InvalidateRow/Column
6097 etc. We don't support them yet, but we can just invalidate
6098 everything until we do support them. (Added MonoTODO). Set
6099 proper control styles.
6100 * DataGridViewRow.cs: Don't call PaintHeader if row headers
6103 2008-03-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6105 * ListBindingHelper.cs: Implement 2.0 GetListItemType methods.
6107 2008-03-14 Jonathan Pobst <monkey@jpobst.com>
6109 * DataGridViewRow.cs: Only paint the white background in
6110 cell bounds, the row bounds extends past the cells if the
6111 grid width isn't as wide as the DGV.
6113 2008-03-14 Jonathan Pobst <monkey@jpobst.com>
6115 * DataGridView*: Completely revamp the drawing to match the
6116 public API. Our grids now look better, and call all the
6117 appropriate methods and event to allow users to override
6118 the painting and do their own.
6120 2008-03-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6122 * ListBindingHelper.cs: Implement 2.0 GetList methods.
6124 2008-03-13 Jonathan Pobst <monkey@jpobst.com>
6126 * DataGridView.cs: Implement BorderStyle.
6128 2008-03-13 Jonathan Pobst <monkey@jpobst.com>
6130 * FileDialog.cs: Apply patch from Andy Hume: Any time we
6131 are comparing attributes, make sure we only look at the
6132 one we are interested. These calls were failing if there
6133 were more than one attribute.
6136 2008-03-13 Jonathan Pobst <monkey@jpobst.com>
6138 * DataGridColumnStyle.cs: Hide ctor from 1.1 profile.
6140 2008-03-12 Jonathan Pobst <monkey@jpobst.com>
6142 * PageSetupDialog.cs: Stub EnableMetric.
6143 * PrintControllerWithStatusDialog.cs: Implement IsPreview.
6144 * PrintPreviewDialog.cs: Add ProcessDialogKey,
6147 2008-03-12 Jonathan Pobst <monkey@jpobst.com>
6149 * MonthCalendar.cs: Remove unused variable.
6151 2008-03-12 Jonathan Pobst <monkey@jpobst.com>
6153 * DataGridView*.cs: corcompare stuffs.
6155 2008-03-11 Jonathan Pobst <monkey@jpobst.com>
6157 * MonthCalendar.cs: Remove an incorrect invalidate optimization.
6158 The savings aren't worth the extra code to fix the optimization.
6161 2008-03-11 Jonathan Pobst <monkey@jpobst.com>
6163 * ToolBar.cs: Always call base.Dock in the Dock override so that
6164 Control's layout_type gets reset correctly.
6167 2008-03-11 Ivan N. Zlatev <contact@i-nz.net>
6169 * X11Dnd.cs: End DnD operation also for the middle mouse button.
6171 2008-03-11 Jonathan Pobst <monkey@jpobst.com>
6173 * ContainerControl.cs: We can't do MenuStrip implicit mnemonics
6174 at the same time we do explicit ones, because we have to give all
6175 other controls on the container a chance to handle explicit ones
6176 first. If no one has an explicit mnemonic, then we can let the
6177 MenuStrip have a shot at implicit mnemonics.
6178 * MenuStrip.cs: Create an implicit mnemonic function.
6179 * ToolStrip.cs: When processing explicit mnemonics, don't do implicit
6180 mnemonics for MenuStrips.
6183 2008-03-11 Jonathan Pobst <monkey@jpobst.com>
6185 * AxHost.cs, Binding.cs, DataGridView.cs, DataGridViewCell.cs,
6186 DataGridColumnStyle.cs: corcompare stuffs.
6188 2008-03-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6190 * FileDialog.cs: Don't add any ColumnHeader to Columns if view is not
6191 Details - This is needed after we added the bits to use any available
6192 column also for List and SmallIcon view.
6194 2008-03-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6196 * ListBox.cs: Fire SelectedIndexChanged and SelectedValueChanged events
6197 at the proper place, not only when changing SelectedIndex and changing
6198 the selection using keys/mouse, as .net does.
6200 2008-03-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6202 * ControlBindingsCollection.cs: Implement last 2.0
6203 DefaultDataSourceUpdateMode property. Also fix a wrong instruction
6204 in the new 2.0 Add methods.
6206 2008-03-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6208 * ListBox.cs: When calling SelectedIndexCollection.Clear,
6209 return if no items are previously selected - this is done to avoid
6210 firing OnSelectedIndexChanged without need to do so. Also,
6211 when creating handle ensure that the focused item is visible (as
6214 2008-03-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6216 * ListBox.cs: Rewrote/refactored most of selection code. We require
6217 the following things in selection: a) keep selection sorted (both
6218 indices and items), b) SelectedIndices automatically detect the
6219 selection mode, c) SelectedIndex should be the first selected item
6220 index, d) Need to Focus/adjust scroll bar when selecting a new item,
6221 not only for SelectedIndex, which is specially important in Multi*
6222 selection modes. To achieve this we are moving the selection core to
6223 SelectedIndexCollection and make depend all selection modifications on
6227 2008-03-06 Jonathan Pobst <monkey@jpobst.com>
6229 * ToolStrip.cs: Enable implicit mnemonics for drop down
6230 menu strips. [Fixes part of bug #367692]
6232 2008-03-06 Jonathan Pobst <monkey@jpobst.com>
6234 corcompare - fix parameter names [stragglers].
6235 Binding.cs, BindingsCollection.cs, GridColumnStylesCollection.cs,
6236 HelpEventHandler.cs, Label.cs, ListView.cs, Message.cs,
6239 2008-03-06 Jonathan Pobst <monkey@jpobst.com>
6241 Control.cs: Don't call ProcessMenuKey on WM_SYSKEYUP if there
6242 was a mnemonic pressed as well as Alt. Also, if nothing handles a
6243 mnemonic, let the ToolStripManager have it even if it doesn't
6244 have a matching mnemonic.
6247 2008-03-06 Jonathan Pobst <monkey@jpobst.com>
6249 corcompare - fix warning about implicit implementation
6250 * ToolStrip.cs: Add IToolStripData interface.
6251 * IToolStripData.cs: Add.
6253 2008-03-06 Jonathan Pobst <monkey@jpobst.com>
6255 corcompare - fix warning about implicit implementation
6256 * Control.cs, ToolStripPanelRow.cs: Add IBounds interface.
6259 2008-03-05 Jonathan Pobst <monkey@jpobst.com>
6261 corcompare - fix parameter names [N-Z].
6262 LinkArea.cs, NativeWindow.cs, NotifyIcon.cs, PageSetupDialog.cs,
6263 Panel.cs, PrintDialog.cs, PrintPreviewControl.cs, PropertyGrid.cs,
6264 PropertyManager.cs, RichTextBox.cs,
6265 ScrollBar.cs, SelectionRange.cs, SplitContainer.cs, StatusBar.cs,
6266 StatusBarDrawItemEventArgs.cs, StatusBarPanelClickEventArgs.cs,
6267 StatusStrip.cs, TabControl.cs, TableLayoutColumnStyleCollection.cs,
6268 TableLayoutRowStyleCollection.cs, TableLayoutStyleCollection.cs,
6269 TextBoxBase.cs, ThreadExceptionDialog.cs, ToolStrip.cs,
6270 ToolStripContentPanel.cs, ToolStripDropDown.cs,
6271 ToolStripDropDownMenu.cs, ToolStripItem.cs, ToolStripMenuItem.cs,
6272 ToolStripPanel.cs, ToolStripSeparator.cs,
6273 TreeNode.cs, TreeView.cs, TreeViewHitTestInfo.cs,
6274 UICuesEventHandler.cs, UpDownBase.cs.
6276 2008-03-05 Jonathan Pobst <monkey@jpobst.com>
6278 corcompare - fix parameter names [G-M].
6279 GridColumnStylesCollection.cs, GridItemCollection.cs,
6280 GridTableStylesCollection.cs, GroupBox.cs, Help.cs,
6281 HelpProvider.cs, ImageListStreamer.cs, InputLanguageCollection.cs,
6282 Label.cs, LayoutEngine.cs, LinkClickedEventArgs.cs,
6283 LinkLabel.cs, ListBox.cs, ListView.cs, ListViewGroupCollection.cs,
6284 ListViewItem.cs, Menu.cs, MenuItem.cs, MenuStrip.cs, MouseEventArgs.cs.
6286 2008-03-05 Jonathan Pobst <monkey@jpobst.com>
6288 corcompare - fix parameter names [A-F].
6289 Control.cs, DataGridBoolColumn.cs, DataGridColumnStyle.cs,
6290 DataGridTextBoxColumn.cs, DataGridViewButtonCell.cs,
6291 DataGridViewCellCollection.cs, DataGridViewCellParsingEventArgs.cs,
6292 DataGridViewCheckBoxCell.cs, DataGridViewColumnDesignTimeVisibleAttribute.cs,
6293 DataGridViewComboBoxCell.cs, DataGridViewHeaderCell.cs,
6294 DataGridViewImageCell.cs, DataObject.cs, DomainUpDown.cs,
6295 DrawItemEventArgs.cs, FolderBrowserDialog.cs, FontDialog.cs, Form.cs.
6297 2008-03-03 Ivan N. Zlatev <contact@i-nz.net>
6299 * GridEntry.cs: Do not convert not only if the types match,
6300 but also if the property type is assigneable from the value's
6304 2008-03-03 Ivan N. Zlatev <contact@i-nz.net>
6306 * PropertyGridView.cs:
6307 - Subscribe to the listbox only once and not everytime.
6308 - Update the textbox even if SetValue fails.
6309 - Close the listbox before calling TrySetValue just in case.
6312 2008-03-03 Jonathan Pobst <monkey@jpobst.com>
6314 * Control.cs: Hide ICollection.CopyTo from the 1.1 profile.
6316 2008-03-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6318 * ListView.cs: Implement support for custom column width based on
6319 Columns collection (we were previously using this collection only
6323 2008-03-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6325 * ListViewItem.cs: For Tile view, always set bounds for the first
6326 subitem (which is the main one), and also don't let Width be larger
6327 than ListView.TileSize.Width. Improve code readibility also.
6328 * ThemeWin32Classic.cs: When painting the ListViewItem instances
6329 in Tile view, _always_ use the NoWrap flag.
6332 2008-02-29 Ivan N. Zlatev <contact@i-nz.net>
6334 * PropertyGrid.cs: Check for null PropertyDescriptor.Name just
6336 * GridEntry.cs: For MS compitability make all child properties
6337 readonly if the parent is readonly. Ugh.
6338 [Fixes bug #365945 and #365944]
6340 2008-02-29 Andreia Gaita <avidigal@novell.com>
6342 * HtmlHistory.cs: Fix sigs for Forward and Back to navigate by index
6343 relative to the history
6345 2008-02-29 Andreia Gaita <avidigal@novell.com>
6347 * HtmlElement.cs: More handlers for mouse and key events
6349 2008-02-28 Andreia Gaita <avidigal@novell.com>
6351 * WebBrowserBase.cs: MouseClick sig changed.
6352 * HtmlHistory.cs: Implement history navigation
6353 * HtmlElement.cs: Add event handlers, and connect them.
6355 2008-02-28 Ivan N. Zlatev <contact@i-nz.net>
6358 - Use PropertyDescriptor.DisplayName instead of .Name for Label,
6359 so that DisplayNameAttribute doesn't get ignored.
6360 - Check for ParenthesizeNameAttribute and parenthesize the Label.
6361 - Add support for PasswordPropertyTextAttribute
6362 * PropertyGridView.cs: Check if an entry is a password.
6363 [Fixes bugs #365589, #365586, #365588]
6365 2008-02-28 Andreia Gaita <avidigal@novell.com>
6367 * PropertyGridView.cs: Revert the message filtering change, as we
6368 need it to block after all. Remove block parameter, unnecessary.
6370 2008-02-27 Jonathan Pobst <monkey@jpobst.com>
6372 * UserControl.cs: Better implementation of GetPreferredSize.
6373 First step to fixing bug #361441.
6375 2008-02-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6377 * Binding.cs: Actually implement data binding support for
6378 classes implementing IBindableComponent.
6379 * ControlBindingsCollection.cs: Likewise.
6381 2008-02-26 Andreia Gaita <avidigal@novell.com>
6383 * PropertyGridView.cs: Use a message filter to check when to
6386 2008-02-26 Andreia Gaita <avidigal@novell.com>
6388 * Application.cs: Change the message_filters loop so a filter
6389 can be removed while looping.
6391 2008-02-26 Ivan N. Zlatev <contact@i-nz.net>
6393 * GridEntry.cs: Optimization in ToggleValue so that it caches
6395 * PropertyGridView.cs: An optimization so that the property isn't
6396 re-read twice for each StandardValue added to the drop-down menu.
6397 Patch by Andy Hume <andyhume32@yahoo.co.uk> under the MIT/X11
6401 2008-02-26 Jonathan Pobst <monkey@jpobst.com>
6403 * Application.cs: Apply patch from Justin Cherniak to match
6404 MS better for ProductName, ProductVersion, and CompanyName.
6407 2008-02-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6409 * Binding.cs: Actually implement 2.0 NullValue property. Also
6410 when changing the formatting related properties, only update the state
6411 if formatting_enabled is true (we don't mind otherwise).
6413 2008-02-25 Jonathan Pobst <monkey@jpobst.com>
6415 * ToolStrip.cs: Don't raise ItemClicked for disabled items.
6418 2008-02-25 Ivan N. Zlatev <contact@i-nz.net>
6420 * GridEntry.cs: Use the PropertyDescriptor.PropertyType instead
6421 of GetType on the current value as it uses reflection to
6422 determine the type. This fixes the case where the new value is
6425 2008-02-25 Ivan N. Zlatev <contact@i-nz.net>
6427 * PropertyGridView.cs: Limit mousewheel scrolling to not scroll
6430 2008-02-24 Luke Page <luke.a.page@gmail.com>
6432 * Line.cs, TextControl.cs: Implement offset x and y so that a
6433 document doesn't have to begin at (0,0) on the viewpoint.
6434 * TextBox.cs, TextBoxBase.cs: RightToLeft switches the scroll
6435 bars and switches the text alignment (and therefore is now
6436 implemented for textbox). Fixes #321383.
6438 2008-02-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6440 * Binding.cs: Actually implement 2.0 FormatString and FormatInfo
6441 properties. Also when changing FormattingEnabled update the control
6442 property -as .Net does-.
6444 2008-02-22 Carlos Alberto Cortez <calberto.cortez@ŋmail.com>
6446 * ControlBindingsCollection.cs: Add the missing 2.0 Add overloads.
6447 * Binding.cs: Add stubs for the overloads of the Add method in
6450 2008-02-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6452 * Binding.cs: PullData () returns a false value if we got an exception.
6453 Also when validating the control and we get an error, instead of
6454 setting the value of the previous one, cancel the event (tested in 1.1
6457 2008-02-22 Jonathan Pobst <monkey@jpobst.com>
6459 * TreeView.cs: Make selected_node and highlighted_node internal.
6460 * TreeNodeCollection.cs: Reset selected_node and highlighted_node
6461 to null when Nodes.Clear is called.
6464 2008-02-21 Jonathan Pobst <monkey@jpobst.com>
6466 * FontDialog.cs: Ensure that when the Font is set in code,
6467 all the gui pieces are updated accordingly.
6470 2008-02-21 Jonathan Pobst <monkey@jpobst.com>
6472 * TextRenderer.cs: Respect proposed size for MeasureString.
6473 * ThemeWin32Classics.cs: If our CheckBox/RadioButton isn't
6474 autosize, use a proposed width to force wrapping for long text.
6477 2008-02-21 Jonathan Pobst <monkey@jpobst.com>
6479 * TreeView.cs: Factor in checkboxes = false and state images in
6480 to HitTest. [Fixes bug #363360]
6482 2008-02-21 Jonathan Pobst <monkey@jpobst.com>
6484 * ThemeWin32Classic.cs: Only look at the Date part of a DateTime
6485 when drawing the selected range.
6488 2008-02-21 Jonathan Pobst <monkey@jpobst.com>
6490 * ToolStripContainer.cs: Add SupportsTransparentBackColor and
6491 ResizeRedraw control styles.
6494 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
6496 * TreeView.cs: StateImages are basically custom checkboxes, so
6497 factor their size the same as real checkboxes when determining
6501 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
6503 * MessageBox.cs: Make the message box wider if the form caption
6504 is longer than the text in the form.
6507 2008-02-20 Ivan N. Zlatev <contact@i-nz.net>
6509 * PropertyGridView.cs: Fix a NRE when closing the drop down form.
6511 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
6513 * TreeNode.cs: Guard against an NRE when the parent's
6514 StateImageList hasn't been set.
6517 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
6519 * SplitContainer.cs: Add SupportsTransparentBackColor and
6520 OptimizedDoubleBuffering control styles.
6523 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
6525 * Application.cs: For the app data paths and the registry key paths,
6526 ensure they are created before returning them to the user.
6529 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
6531 * Application.cs: Guard against an NRE in CompanyName and
6534 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
6536 * Application.cs: For CompanyName, ProductName, and ProductVersion,
6537 make sure we handle all three cases correctly: attribute is present,
6538 attribute is present but is an empty string, and attribute is not
6541 2008-02-20 Ivan N. Zlatev <contact@i-nz.net>
6543 * PropertyGridView.cs:
6544 - Fix a NRE that caused a test failure
6545 - Another performance improvement - cache the standard values
6548 2008-02-19 Jonathan Pobst <monkey@jpobst.com>
6550 * ComboBox.cs: Fix previous change to affect both 1.1 and 2.0
6553 2008-02-19 Ivan N. Zlatev <contact@i-nz.net>
6555 * PropertyGridView.cs: Fix a big performance bug.
6557 2008-02-19 Jonathan Pobst <monkey@jpobst.com>
6559 * SelectionRange.cs: Apply patch from Andy Hume to make
6560 constructor behavior more accurate. [Fixes bug #362117]
6562 2008-02-19 Andreia Gaita <avidigal@novell.com>
6564 * Control.cs: Added a new flag is_disposing to track if the
6565 window is currently in the process of being disposed of.
6566 This is used so that, when firing visibility changes triggered
6567 by unparenting controls during Dispose, the control doesn't
6570 2008-02-19 Jonathan Pobst <monkey@jpobst.com>
6572 * ComboBox.cs: Set height to preferred height when the handle
6573 is created. [Fixes bug #360862]
6575 2008-02-18 Andreia Gaita <avidigal@novell.com>
6577 * XplatUIX11.cs: Create FosterParent with border width at 0.
6578 With the previous value of 4, everytime a control got reparented
6579 from parent = null, it's location would be shifted right and
6580 down by 4, since these coordinates would be offset by the
6581 FosterParent's border width.
6583 2008-02-18 Ivan N. Zlatev <contact@i-nz.net>
6585 * Control.cs: During diposing firstly remove ourselfes from
6586 the parent and *then* destroy our handle, because removing
6587 ourselfes from the parent controls collection causes
6588 VisibilityChange, etc events, which require a handle and end
6589 up recreating the control.
6591 2008-02-17 Ivan N. Zlatev <contact@i-nz.net>
6593 * GridEntry.cs: Set expanded state before notifying that the
6594 expansion has taken place.
6595 * PropertyGridView.cs:
6596 - Set the propertygridtextbox text to the selected
6597 StandardValue before proceeding to setting it.
6598 - Scrolling bugfixes.
6600 2008-02-16 Ivan N. Zlatev <contact@i-nz.net>
6603 - Fix ValueText to not return null.
6604 - Fix conversion error reporting to actually happen.
6605 * PropertyGridView.cs: Set entry only if the text has changed.
6608 2008-02-16 Ivan N. Zlatev <contact@i-nz.net>
6611 - Fix handling of a null current value.
6612 - Swallow editor exceptions.
6615 2008-02-16 Ivan N. Zlatev <contact@i-nz.net>
6617 * PropertyGrid.cs: Clear current items first thing before
6618 repopulating subitems.
6620 - Handle null StandardValuesCollection.
6621 - Mark as not editable if there is no PropertyDescriptor and
6622 if the Converter cannot convert from string.
6623 [Part of fix for bugs #360666 and #358332]
6625 2008-02-15 Luke Page <luke.a.page@gmail.com>
6626 * MaskedTextBox.cs: Now skips non editable characters after a
6627 character has been entered and we are progressing to the next
6628 position in the MaskedTextBox.
6630 2008-02-15 Luke Page <luke.a.page@gmail.com>
6631 * TextBoxBase.cs: Handles MouseDown when shift key is clicked so
6632 that it changes the selection rather than just repositioning the
6633 cursor. Fixes Bug #360873.
6635 2008-02-15 Luke Page <luke.a.page@gmail.com>
6636 * TextBoxBase.cs, TextControl.cs, RichTextBox.cs: TextChanged fires
6637 when Undo/Redo changes the text. Undo/Redo/Undo/Redo now works
6638 correctly. See #359330
6640 2008-02-15 Andreia Gaita <avidigal@novell.com>
6642 * XplatUIX11.cs: If the handle is null when posting a message, use the
6643 current thread queue to post instead. Fixes #332409
6645 * SendKeys.cs: Slight optimization
6647 2008-02-14 Ivan N. Zlatev <contact@i-nz.net>
6649 * PropertyGrid.cs, PropertyGridView.cs:
6650 Fix multiple scrolling and sizing issues.
6653 2008-02-12 Ivan N. Zlatev <contact@i-nz.net>
6655 * PropertyGridView.cs: Ensure that drop down editors are shown
6656 in the WorkingArea of the screen.
6659 2008-02-12 Ivan N. Zlatev <contact@i-nz.net>
6661 * GridEntry.cs: Fail silently when UITypeEditor is missing.
6664 2008-02-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6666 * Binding.cs: Implement 2.0 DataSourceNullValue property.
6668 2008-02-11 Ivan N. Zlatev <contact@i-nz.net>
6670 * PropertyGridView.cs:
6671 - Clear the controls in the drop down form after it is hidden.
6672 - Fix Width sizing of the dropdown editors to match MSFT.
6674 2008-02-11 Ivan N. Zlatev <contact@i-nz.net>
6676 * PropertyGridView.cs:
6677 - Fix height for drawing the grid entry
6678 text value, so that it clips multiline text properly.
6679 - Fix unfocusing to match MSFT.
6681 2008-02-11 Ivan N. Zlatev <contact@i-nz.net>
6683 * PropertyGrid.cs: Do not populate subgriditems unless expandable.
6684 Fixes a bug where on repopulation after value changed items become
6687 2008-02-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6689 * Binding.cs: For the 2.0 profile, look for a
6690 'PropertyChanged' event in the target control, and add checks for
6691 DataSourceUpdateMode property to change -or not- the data source
6692 from validation/control property change.
6694 2008-02-10 Atsushi Enomoto <atsushi@ximian.com>
6696 * Binding.cs : build fix (operator == is not overriden in 1.x. Do
6697 not compare struct with null in 2.0).
6699 2008-02-10 Luke Page <luke.a.page@gmail.com>
6701 * MaskedTextBox.cs: UseSystemPasswordChar updates PasswordChar, PasswordChar
6702 updates the provider and if not using a provider, uses the internal document
6703 class implementation of password char. Also when showing text, uses display string
6704 from the provider, instead of the actual text.
6706 2008-02-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6708 * Binding.cs: Ooooops, forgot to take into account the data_source
6709 and binding_member_info null case (it was breaking the Binding tests).
6711 2008-02-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6713 * Binding.cs: Implement support for data source changes exposed by
6714 'PropertyNameChanged' events, and update the control property as
6717 2008-02-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6719 * Binding.cs: Implement 2.0 WriteValue method.
6721 2008-02-08 Jonathan Pobst <monkey@jpobst.com>
6723 Commit patch from James Purcell for better AutoScale implementation:
6725 * ScaleControl should call GetScaledBounds with the control's total size rather
6726 than client size. GetScaledBounds should handle ignoring the borders in its
6727 calculations. Cleaned up ScaleControl/GetScaledBounds overrides in controls
6728 (for the most part they just call the base code now since that is fixed).
6729 * Added ScaleChildrenInternal to allow controls to disable scaling of children
6730 without having to override ScaleChildren (since none of .NET's controls do).
6731 This is required for most controls in Mono that have scrollbars to prevent the
6732 scrollbars from being moved/resized.
6733 * Nested ContainerControls can have a different scale mode than their parent.
6734 This is briefly mentioned in MSDN but is buggy in MS.NET (the runtime and
6735 designer produce different results both of which look incorrect).
6736 * Default AutoScaleMode for ContainerControl should be Inherit.
6737 * Simplified workaround for ComboBox scaling issue.
6738 * 1.0 style auto-scaling now uses its own methods instead of sharing 2.0's.
6739 1.0 style auto scaling should scale the whole control's size instead of
6740 ignoring the borders (except for Form) and the rounding is done differently to
6741 preserve control alignment.
6742 * ApplyAutoScaling (used for 1.0 style) should use the rounded result of
6744 * Cleaned up fix for "Bug 355703 - Setting AutoScale = true doesn't stick".
6745 * CurrentAutoScaleDimensions should round the estimated character width instead
6747 * ListBox's GetScaledBounds should always use the height it was set to instead
6748 of the height that was passed in. This prevents rounding errors from
6749 accumulating quickly with IntegralHeight.
6752 2008-02-08 Andreia Gaita <avidigal@novell.com>
6754 * Form.cs: Add a null check (darn it).
6756 2008-02-08 Jonathan Pobst <monkey@jpobst.com>
6758 * MdiClient.cs: Make sure the requesting form actually owns the
6759 control menu items before removing them. Also, use
6760 Suspend/ResumeLayout when adding or removing items so we only
6764 2008-02-08 Jonathan Pobst <monkey@jpobst.com>
6766 * Control.cs: Guard against an NRE in ShowFocusCues.
6769 2008-02-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6771 * Binding.cs: Implement 2.0 ReadValue method and ControlUpdateMode
6772 property, as well as stubbing DataSourceUpdateMode.
6774 2008-02-08 Andreia Gaita <avidigal@novell.com>
6776 * Form.cs: When closing forms, get focus back to the active control of the
6777 active form. [Fixes #341314, corner case]
6779 2008-02-07 Jonathan Pobst <monkey@jpobst.com>
6781 * MdiClient.cs: After we move the scrollbars, invalidate the NC
6782 area, so any old scrollbar artifacts are cleaned up.
6785 2008-02-07 Jonathan Pobst <monkey@jpobst.com>
6787 * MdiWindowManager.cs: If we are maximized and using MainMenuStrip
6788 for our menus, display that control box menu instead of the 1.1
6791 2008-02-07 Jonathan Pobst <monkey@jpobst.com>
6793 * MdiControlStrip.cs: Add property to access the mdi form tied to
6795 * MdiClient.cs: Be smarter about removing and adding toolstripitems
6796 to the implicitly merged menu. Every time we clicked the form, items
6797 were getting removed and the re-added, causing the form to jump around
6798 as the menu resized.
6800 2008-02-07 Jonathan Pobst <monkey@jpobst.com>
6802 * MdiClient.cs: Make sure the NormalBounds always gets set. It
6803 was being reset by the implicit menu merge for menustrips.
6806 2008-02-07 Jonathan Pobst <monkey@jpobst.com>
6808 * Form.cs: Don't do the previous change when WindowState = Normal,
6809 or it messes up where the window is placed. Fixes test failure.
6811 2008-02-07 Jonathan Pobst <monkey@jpobst.com>
6813 * Form.cs: When becoming visible, if we are an MDI child, call
6814 SetWindowState with a dummy old_state so that changes will actually
6816 [Fixes the 2nd part of bug #325473]
6818 2008-02-07 Andreia Gaita <avidigal@novell.com>
6820 * Control.cs: Reset properties to their pre parent-change values in case
6821 the new parent == null (in which case we're basically removing the control,
6822 and don't want any events fired due to fake property changes)
6825 2008-02-06 Ivan N. Zlatev <contact@i-nz.net>
6827 * PropertyGridView.cs:
6828 - Refactor SetValue to allow setting the value
6829 when a custom editor is used, but the entry is not editable.
6830 - Remove the custom editor control on CloseDropDown.
6833 2008-02-06 Andreia Gaita <avidigal@novell.com>
6835 * PrintControllerWithStatusDialog.cs: Set PrintFileName value through
6836 reflection only on 1.1, this property is public on system.drawing on 2.0.
6839 2008-02-06 Andreia Gaita <avidigal@novell.com>
6841 * WebBrowser.cs: Do a normal page refresh by default.
6843 2008-02-05 Andreia Gaita <avidigal@novell.com>
6845 * XplatUIWin32.cs, XplatUICarbon.cs: set the hwnd.Mapped flag when we create
6846 the window so that the check on Control.UpdateZOrderOfChild passes on non-X
6847 platforms. Fixes #359036
6849 Note: Control.UpdateZOrderOfChild needs to be rewritten to not rely on
6850 platform-specific flags.
6852 2008-02-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6854 * Binding.cs: Add 2.0 BindableComponent property - just return control
6857 2008-02-05 Everaldo Canuto <ecanuto@novell.com>
6859 * MenuAPI.cs: Check if control is disposable when track popup menu. Thanks
6860 Jonathan for this patch. Fixes #358442.
6862 2008-02-05 Jonathan Pobst <monkey@jpobst.com>
6864 * Form.cs: If we change the active MDI child form, let the others
6865 know they need to repaint their title bar so it will appear inactive.
6866 [Fixes part 1 of bug #325473]
6868 2008-02-05 Ivan N. Zlatev <contact@i-nz.net>
6870 * PropertyGridView.cs: Do not trucate custom editors' width
6871 and align them to the left.
6872 [Fixes #358353 and #358349]
6874 2008-02-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6876 * BindingsCollection.cs: Implement 2.0 CollectionChanging event.
6877 Also fix the arguments passed to CollectionChangeEventArgs in the
6880 2008-02-04 Geoff Norton <gnorton@novell.com>
6882 * Hwnd.cs: The conversion to Quartz coordinates happens in
6883 System.Drawing. Removing this translation from here.
6885 2008-02-04 Ivan N. Zlatev <contact@i-nz.net>
6887 * PropertyGrid.cs, PropertyGridView.cs, GridEntry.cs,
6888 CategoryGridEntry.cs, RootGridEntry.cs, GridItem.cs,
6889 GridItemCollection.cs:
6890 PropertyGrid rewrite part 2. Tons of bugfixes and new features.
6892 2008-02-04 Geoff Norton <gnorton@novell.com>
6894 * X11Keyboard.cs: VK_MENU should send a KEYUP instead of
6895 SYSKEYUP if any other key has been pressed in the mean time.
6898 2008-02-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6900 * ListView.cs: In ItemControl.ItemsMouseMove, only fire ItemDrag event
6901 when the item in current position is different than 0. Also, save the
6902 item index in the beginning of the operation, instead of getting the
6903 index of the item when the event is actually performed. Lastly clean
6904 the related fields in ItemsMouseUp if the ItemDrag operation wasn't
6908 2008-02-03 Jonathan Pobst <monkey@jpobst.com>
6910 * Form.cs: Alt-Minus for MDI children system menu should work
6911 with both the minus keys on the keyboard.
6914 2008-02-03 Jonathan Pobst <monkey@jpobst.com>
6916 * Control.cs: Don't invalidate on region change. The WM should
6917 take care of this automagically. Keeps us out of an infinite
6918 paint loop if someone changes the Region in the OnPaint.
6921 2008-02-04 Ivan N. Zlatev <contact@i-nz.net>
6923 * ImageIndexConverter.cs: ConvertFrom must handle "(none)".
6925 2008-02-03 Jonathan Pobst <monkey@jpobst.com>
6927 * DateTimePicker.cs: Apply patch from Srikanth Madikeri so we drop
6928 down the MonthCalendar only on F4, not Alt+F4.
6929 * MonthCalendar.cs: If we are a popup, close ourselves on Alt+F4.
6932 2008-02-03 Jonathan Pobst <monkey@jpobst.com>
6934 * ThemeWin32Classic.cs: For MonthCalendar, draw a dark border
6935 if its part of a DateTimePicker, else, use the back color.
6938 2008-02-03 Jonathan Pobst <monkey@jpobst.com>
6940 * Hwnd.cs: Use GraphicContext instead of the uninitialized bmp_g.
6943 2008-02-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6945 * CurrencyManager.cs: When we get a ListChanged event from our source,
6946 always fire our own ListChanged event, as .Net does.
6948 2008-02-03 Luke Page <luke.a.page@gmail.com>
6950 * RichTextBox.cs: AutoSize now defaults to false. Fixes Bug
6953 2008-02-03 Luke Page <luke.a.page@gmail.com>
6955 * TextBoxBase.cs, RichTextBox.cs, TextControl.cs: Sets richtext
6956 property. Removed if for richtext property that was always true.
6957 PgUp/PgDn at top/bottom fixed for RTB. Fixes bug #358237.
6959 2008-02-03 Luke Page <luke.a.page@gmail.com>
6961 * TextBoxBase.cs - commited patch from James Purcell that
6962 correctly sets the FixedHeight control style when the MultiLine
6963 property is changed on a TextBox control. Fixes bug 358229.
6965 2008-02-02 Luke Page <luke.a.page@gmail.com>
6967 * Line.cs, LineTag.cs, RichTextBox.cs, TextControl.cs
6968 Fixes bug 351938 - caret is positioned correctly when drawn
6969 and when calculating textual position of caret, no longer
6970 has a NRE in certain situations.
6972 2008-02-01 Geoff Norton <gnorton@novell.com>
6974 * Hwnd.cs: Ensure that windows moved into -'ve coordinate space
6975 get that region removed from the paint event.
6976 * XplatUICarbon.cs: Remove the window mapping after disposing of
6977 window. Prevents a crash with handle reuse. Optimize exposes
6978 only onto visible windows (rare; but possible).
6980 2008-02-01 Jonathan Pobst <monkey@jpobst.com>
6982 * UpDownBase.cs: Make sure the internal textbox calls the base's
6983 OnMouseDown and OnMouseUp so the textbox will function correctly.
6984 There were notes saying it doesn't chain up, but its an internal
6985 class, so our implementation may differ.
6988 2008-02-01 Jonathan Pobst <monkey@jpobst.com>
6990 * ListBox.cs: Fix a logic error and don't process MouseDown
6991 for mouse buttons other than Left.
6993 2008-02-01 Jonathan Pobst <monkey@jpobst.com>
6995 * Control.cs: Remove HeightInternal.
6996 * ListBox.cs: Commit patch from James Purcell that correctly
6997 calculates heights for ListBoxen.
7000 2008-02-01 Jonathan Pobst <monkey@jpobst.com>
7002 * Label.cs: Apply patch from James Purcell that corrects the
7003 signature of the AutoSize property.
7006 2008-02-01 Jonathan Pobst <monkey@jpobst.com>
7008 * ListBox.cs: Don't throw [Mouse]Click events for buttons
7009 other than the left mouse button.
7011 2008-01-31 Jonathan Pobst <monkey@jpobst.com>
7013 * Control.cs: Remove my awesome optimization as it caused some
7014 regressions with control ordering. :(
7017 2008-01-31 Ivan N. Zlatev <contact@i-nz.net>
7019 * PropertyGridView.cs: Fix a NRE on double click when there is no
7022 2008-01-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7024 * BindingManagerBase.cs: Implement IsBindingSuspended 2.0 property.
7026 2008-01-30 Jonathan Pobst <monkey@jpobst.com>
7028 * ListBox.cs: Call MouseClick and MouseDoubleClick.
7031 2008-01-29 Jonathan Pobst <monkey@jpobst.com>
7033 * Hwnd.cs: Make bmp, bmp_g variables threadstatic and private.
7034 * Control.cs, DataGridViewCell.cs, LineTag.cs: Use Hwnd.GraphicsContext
7035 instead of Hwnd.bmp_g.
7037 2008-01-29 Jonathan Pobst <monkey@jpobst.com>
7039 * TextRenderer.cs: Don't maintain private bitmap/graphics contexts.
7040 Use the Hwnd one instead.
7042 2008-01-29 Jonathan Pobst <monkey@jpobst.com>
7044 * Form.cs: Remove duplicated copy of GetAutoScaleSize.
7046 2008-01-29 Jonathan Pobst <monkey@jpobst.com>
7048 * Form.cs: corcompare for RestoreBounds.
7050 2008-01-29 Jonathan Pobst <monkey@jpobst.com>
7052 * Control.cs: Add MarshalAs attribute to Font getter for corcompare.
7054 2008-01-29 Jonathan Pobst <monkey@jpobst.com>
7056 * Form.cs: Handle Alt-Minus for MDI children forms.
7057 * MdiWindowManager.cs: Make ShowPopup internal so Form can call it.
7058 Add mnemonics to the control menu.
7061 2008-01-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7063 * Binding.cs: Initial implementation bits of FormattingEnabled
7064 property and BindingComplete event (2.0).
7065 * BindingCompleteEventArgs.cs: Internal methods for setting error text
7068 2008-01-28 Jonathan Pobst <monkey@jpobst.com>
7070 * TableLayoutPanel.cs: Draw the table border at 0,0 instead of
7071 table.Location. [Fixes bug #354672]
7073 2008-01-28 Jonathan Pobst <monkey@jpobst.com>
7075 * Form.cs: Handle WM_ENTERSIZEMOVE and WM_EXITSIZEMOVE to raise
7076 ResizeBegin and ResizeEnd. [Fixes bug #346529 for win32]
7078 2008-01-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7080 * ComboBox.cs: When OnDisplayMemberChanged method is reached, instead
7081 of doing all the re-bound work, just invalidate and call SetControlText
7082 to set the updated text of selected item to our textbox.
7085 2008-01-28 Andreia Gaita <avidigal@novell.com>
7087 * HtmlWindow.cs: Add event handler support. Add Document, Frames,
7088 IsClosed, Opener, StatusBarText, Url properties, stub out the remaining
7089 missing properties and methods. Add Load, Unload, Error, GotFocus,
7090 LostFocus, Resize, Scroll events (only load and unload are connected)
7092 2008-01-27 Gert Driesen <drieseng@users.sourceforge.net>
7094 * AccessibleObject.cs: Modified argument names to match MS.
7095 * Button.cs: Modified argument names to match MS.
7096 * BindingContext.cs: Modified argument names to match MS.
7097 * BindingMemberInfo.cs: Modified argument names to match MS.
7098 * ButtonBase.cs: Modified argument names to match MS.
7099 * ComboBox.cs: Modified argument names to match MS.
7100 * Control.cs: Modified argument names to match MS.
7101 * CheckedListBox.cs: Modified argument names to match MS.
7102 * CommonDialog.cs: Modified argument names to match MS.
7103 * DataGrid.cs: Modified argument names to match MS.
7104 * CursorConverter.cs: Modified argument names to match MS.
7105 * ControlPaint.cs: Modified argument names to match MS.
7106 * CheckBox.cs: Modified argument names to match MS.
7107 * ControlBindingsCollection.cs: Modified argument names to match MS.
7108 * BindingSource.cs: Modified argument names to match MS.
7109 * DataFormats.cs: Modified argument names to match MS.
7110 * ContainerControl.cs: Modified argument names to match MS.
7111 * CurrencyManager.cs: Modified argument names to match MS.
7112 * Application.cs: Modified argument names to match MS.
7113 * ContextMenuStrip.cs: Modified argument names to match MS.
7114 * ContextMenu.cs: Modified argument names to match MS.
7115 * BindingManagerBase.cs: Modified argument names to match MS.
7116 * WindowsFormsSection.cs: Fixed line ending.
7118 2008-01-27 Andreia Gaita <avidigal@novell.com>
7120 * PropertyGridView.cs: Rearrange the dropdown loop so that it exits when
7121 detecting that the dropdown toolwindow is hidden. EndLoop outside the
7124 2008-01-26 Gert Driesen <drieseng@users.sourceforge.net>
7126 * PropertiesTab.cs: Fixed argument name of GetDefaultProperty to match
7127 MS. Code formatting.
7129 2008-01-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7131 * Binding.cs: Don't avoid the Format event if the control
7132 property type is object. Also, if the value retrieved by
7133 the data source is null _and_ the control proeprty type
7134 is object, return Convert.DBNull (match .Net).
7135 Fixes part of #324286.
7137 2008-01-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7139 * ListControl.cs: Since we are getting two BinginContextChanged events
7140 for the same binding context instance (when the control is added to
7141 form, and when the form is actually shown), take it into account only the
7142 first time for a given binding context instance.
7143 Fixes part of #324286.
7145 2008-01-26 Ivan N. Zlatev <contact@i-nz.net>
7147 * PropertryGridView.cs: Ops.
7149 2008-01-26 Ivan N. Zlatev <contact@i-nz.net>
7151 * PropertyGridView.cs: Close dropdown form if the owner form is
7155 2008-01-25 Ivan N. Zlatev <contact@i-nz.net>
7157 * PropertyGrid.cs, PropertyGridView.cs, GridEntry.cs, GridItem.cs,
7158 RootGridEntry.cs, CategoryGridEntry.cs:
7159 PropertyGrid rewrite.
7160 - Rewrite all of the control logic in PropertyGrid.
7161 - Rewrite all of the ComponentModel logic in GridEntry.
7162 - Rewrite all UI work in PropertyGridView.
7163 - Many bugfixes, etc.
7165 2008-01-24 Jonathan Pobst <monkey@jpobst.com>
7167 * TableLayoutPanel.cs: Enhance GetPreferredSize to take into account
7168 when all contained controls are autosize or dock-fill. Also take into
7169 account when the total percentage of column/row sizes is not 100%.
7172 2008-01-24 Andreia Gaita <avidigal@novell.com>
7175 - Save a reference to the IDocument in the instance and
7176 use that one instead of going to WebHost.Document; the document that the
7177 WebHost returns might not be the right one (in case of frames).
7178 - Use the hashcode returned from the IDocument interface.
7179 - Implemented: ActiveElement, ActiveLinkColor, All, BackColor, Cookie,
7180 Domain (setter is not supported), Encoding, ForeColor, Forms, Images,
7181 LinkColor, Url, VisitedColor, Window
7184 - Implemented: CanHaveChildren, Children, Document, GetAttribute,
7185 set_Attribute, NextSibling, Parent, TagName, AppendChild,
7186 GetElementsByTagName, GetHashCode, HasAttribute, InsertAdjacentElement,
7187 SetAttribute, Equals, equality operators.
7188 - Added stubs for: AttachEventHandler, DetachEventHandler, Focus,
7189 InvokeMember, RaiseEvent, RemoveFocus, ScrollIntoView,
7191 * HtmlElementCollection.cs: Change implementation to use a generic
7192 collection. Implemented Enumerator and CopyTo
7194 * HtmlHistory.cs: Add constructor, no implementation yet.
7196 * HtmlWindow.cs: Initial implementation with: Name, Parent, Alert,
7197 Confirm, Prompt, Navigation, ScrollTo, Open, OpenNew, GetHashCode,
7198 Equals, equality operators.
7200 * HtmlWindowCollection.cs: Implemented.
7202 * WebBrowser.cs: Use the Navigation object to navigate (WebHost.Navigate
7203 has been deprecated).
7205 * WebBrowserBase.cs: Use Completed event to track document loading
7206 (Navigated has been deprecated)
7208 2008-01-24 Jonatham Pobst <monkey@jpobst.com>
7210 * ThemeWin32Classic.cs: Add tab stops and NoWrap to dropdown MenuItems. Top
7211 level MenuItems do not respect tabs.
7214 2008-01-23 Geoff Norton <gnorton@novell.com>
7216 * XplatUICarbon.cs: Ensure that windows are created in their initial
7217 FormWindowState. Finished fixing Fullscreen windows on Carbon
7219 2008-01-23 Everaldo Canuto <ecanuto@novell.com>
7221 * MenuAPI.cs: When FindForm fails uses FindRootParent to find the control to
7222 be used as grab_control. Also save status of capture before show ContextMenu
7223 and restore it after close.
7225 2008-01-23 Everaldo Canuto <ecanuto@novell.com>
7227 * Control.cs: Internal FindRootParent method added to return high control
7230 2008-01-23 Geoff Norton <gnorton@novell.com>
7232 * Hwnd.cs: Refactor Whole/Client pointer to 1 element for Cursors.
7233 * XplatUICarbon.cs: Refactor some dead code out to Cursor.cs and make
7234 it work again. Handle HITTEST events.
7236 2008-01-23 Geoff Norton <gnorton@novell.com>
7238 * XplatUICarbon.cs: Ensure that we always have a host window. Prevents
7239 a crash in certain cases. Support for fullscreen windows in certain cases.
7241 2008-01-23 Jonathan Pobst <monkey@jpobst.com>
7243 * Form.cs: Don't set AutoScaleMode in AutoScale if we don't have to.
7246 2008-01-23 Geoff Norton <gnorton@novell.com>
7248 * XplatUICarbon.cs: Remove some dead code that was causing warnings.
7250 2008-01-23 Geoff Norton <gnorton@novell.com>
7252 * XplatUICarbon.cs: Re-enabled Carets in QuickDraw as a overlay window.
7254 2008-01-23 Everaldo Canuto <ecanuto@novell.com>
7256 * SplitContainer.cs: Remove unused declarations.
7257 * Binding.cs: Remove unused declarations.
7259 2008-01-23 Everaldo Canuto <ecanuto@novell.com>
7261 * Form.cs: Remove unused declaration of 'active' in Activate method.
7262 * Control.cs: Move declaration of nested_layout inside '#if NET_2_0" to
7263 prevent compilation warnings.
7264 * TextControl.cs: Remove unused declaration of selection_pos_on_line.
7265 * Hwnd.cs: Remove unused declaration of clip in GetClippingRectangles.
7266 * Bindings.cs: Remove unused formatting_enabled declaration.
7267 * ToolTip.cs: Put some methods inside '#if NET_2_0" to prevent compilation
7269 * TreeView.cs: Put some methods inside '#if NET_2_0" to prevent compilation
7271 * PropertyGridView.cs: Remove usused 'ex' declaration.
7272 * DataGridView.cs: Remove unused declarations.
7274 2008-01-23 Everaldo Canuto <ecanuto@novell.com>
7276 [Fixes bugs #343966, #338511 and other non reported (context)menu bugs]
7278 * Form.cs: Remove all active_tracker (used by menu) stuff, it is now moved
7279 to Control class, it makes possible to grab menu to controls that can't
7280 reach Form using parent tree. Handle for WmButtonUp, WmButtonDown and
7281 WmMouseMove removed since it was used only to track menu events.
7284 - Moved all active_tracker stuff from Form.
7285 - ProcessActiveTracker added to prevent code duplicity, now mouse events
7286 can call this method instead of reimplement all necessary code handle for
7288 - Call to ProcessActiveTracker for mouse events (WmButtonUp, WmButtonDown
7292 - Remove special handle to ToolStripOverflow, now we can grab menu to
7293 controls that can't reach Form using parent tree.
7294 - Change type of grab_control from Form to Control.
7296 2008-01-22 Geoff Norton <gnorton@novell.com>
7298 * TextBoxBase.cs: Split up the sizing of controls and placing of
7299 controls. Fixes a bug where scrollbars in Reflector could be sized
7300 wrong and have non-working thumbers.
7302 2008-01-23 Geoff Norton <gnorton@novell.com>
7304 * XplatUI.cs: Refactor environment variables to default support to the
7305 Carbon driver on the Mac.
7307 2008-01-23 Everaldo Canuto <ecanuto@novell.com>
7309 * Label.cs: Uses new LabelPainter for drawing operations.
7310 * ThemeWin32Classic.cs: DrawLabel and LabelDefaultSize removed.
7311 * Theme.cs: DrawLabel and LabelDefaultSize removed.
7313 2008-01-22 Geoff Norton <gnorton@novell.com>
7315 * XplatUICarbon.cs: Enable packing scroll delta into the mouse wParam
7317 2008-01-22 Jonathan Pobst <monkey@jpobst.com>
7319 * ThemeWin32Classic.cs: Run Flat, Button appearance, 2.0 CheckBoxes
7320 through the normal flat button code and don't draw the checkbox glyph.
7321 * Theme.cs: Button->ButtonBase signature change.
7324 2008-01-22 Everaldo Canuto <ecanuto@novell.com>
7326 * LinkLabel.cs: Uses new class LinkLabelPainter.
7328 2008-01-22 Everaldo Canuto <ecanuto@novell.com>
7330 * MessageBox.cs: Adjust right border space, we don't need to add
7331 "space_border*2" two times.
7333 2008-01-22 Jonathan Pobst <monkey@jpobst.com>
7335 * ScrollableControl.cs: With the advent of 2.0's Padding, DockPadding
7336 becomes a wrapper around Padding.
7337 [Fixes a part of bug #354676]
7339 2008-01-22 Geoff Norton <gnorton@novell.com>
7341 * Mime.cs: Avoid a needles exception on OSX if we dont have a buffer
7342 acquired. Also ensure the buffer is large enough to grab the header
7343 we need on linux boxes.
7345 2008-01-22 Jonathan Pobst <monkey@jpobst.com>
7347 * Control.cs: Implement a custom enumerator so people can delete
7348 from the Controls collection while in a foreach.
7351 2008-01-22 Ivan N. Zlatev <contact@i-nz.net>
7353 * PropertyGridView.cs: Fix focusing behavior:
7354 - Tab should focus the grid text box.
7355 - Clicking on the labels shouldn't focus the grid text box.
7357 2008-01-22 Ivan N. Zlatev <contact@i-nz.net>
7359 * PropertyGridView.cs: IsValueTypeGridItem should return true
7362 2008-01-22 Ivan N. Zlatev <contact@i-nz.net>
7364 * PropertyGrid.cs, GridEntry.cs, PropertyGridView.cs:
7365 - Renamed GridEntry.SelectedObjects to TargetObjects to better
7366 reflect the property name role.
7367 - PropertyGrid.GetTarget is not required as the target is known
7369 - Setting values will handle value types as a special case now and
7370 populate them up in the chain.
7373 2008-01-21 Jonathan Pobst <monkey@jpobst.com>
7375 * Hwnd.cs: Create a public property for the Graphics we keep around.
7377 2008-01-21 Ivan N. Zlatev <contact@i-nz.net>
7379 * PropertyGridView.cs: Just hide the grid textbox and do nothing more
7380 when the current object selection changes.
7381 Fixes failing test SelectedObject_Null2.B5.
7383 2008-01-21 Ivan N. Zlatev <contact@i-nz.net>
7385 * PropertyGrid.cs: Process Browsable properties with
7386 DesignerSerializationVisibilityAttribute.Content as being expandable.
7387 This seems also what MS does. Without this e.g SplitContainer.Panel1/2
7388 will not be expandable. We should be nested components-friendly now.
7390 2008-01-21 Andreia Gaita <avidigal@novell.com>
7392 * WebBrowserBase.cs: Check if control was loaded properly,
7393 don't bind if it wasn't.
7395 * HtmlDocument.cs: Implement CreateElement, Equals, Focus,
7396 GetElementFromPoint, equality operators, OpenNew, Write.
7397 Remove extra set_Body
7399 2008-01-18 Jonathan Pobst <monkey@jpobst.com>
7401 * ContainerControl.cs, Control.cs: Apply patch from James Purcell
7402 that makes our AutoScale* stuff more tolerant to different orders
7403 of being set. [Fixes bug #354669]
7405 2008-01-18 Ivan N. Zlatev <contact@i-nz.net>
7407 * PropertyGridView.cs, PropertyGridTextBox.cs:
7408 Drop WM_LBUTTONDOWN msg sending and use focusing instead.
7409 [Fixes #339005 and #348209]
7411 2008-01-18 Ivan N. Zlatev <contact@i-nz.net>
7413 * PropertyGridView.cs: Hide the grid text box before adjusting it
7414 for the newly selected GridItem.
7417 2008-01-18 Jonathan Pobst <monkey@jpobst.com>
7419 * Form.cs: Give MDI children the opportunity to cancel the parent form
7420 attempting to close. Ensure that all [Form]Clos[ing,ed] events get called
7421 properly for both the parent and child.
7422 * Application.cs: Signature of internal method changed, pass the previous
7426 2008-01-17 Ivan N. Zlatev <contact@i-nz.net>
7428 * PropertyGridView.cs: Set the property value only if it has changed.
7431 2008-01-17 Jonathan Pobst <monkey@jpobst.com>
7433 * MenuAPI.cs: Windows sends us MOUSEMOVE messages when any key is pressed.
7434 If the mouse hasn't actually moved, ignore these messages so the currently
7435 highlighted menuitem isn't reset to the one under the mouse.
7438 2008-01-17 Ivan N. Zlatev <contact@i-nz.net>
7440 * PropertyGridView.cs: When the property changes Invalidate the GridItem
7441 in order for the properties with UITypeEditor.GetPaintValueSupported == true
7442 to reflect the change visually.
7445 2008-01-17 Jonathan Pobst <monkey@jpobst.com>
7447 * ButtonBase.cs: Add LineLimit to 1.1 button drawing, and TextBoxControl
7448 to 2.0 button drawing.
7449 * ThemeWin32Classic.cs: Ensure that the rectangle we are using to draw
7450 the button text is tall enough for one line. LineLimit says it will
7451 always draw at least one line, but it is a lie.
7454 2008-01-17 Atsushi Enomoto <atsushi@ximian.com>
7456 * XplatUIStructs.cs, X11Keyboard.cs :
7457 added some more VK_* keys to be handled.
7459 2008-01-16 Andreia Gaita <avidigal@novell.com>
7461 * Control.cs: Check if there is a container before setting or getting
7462 the validation flag.
7464 2008-01-16 Andreia Gaita <avidigal@novell.com>
7466 * ContainerControl.cs: Add flag to track if a control cancels validation,
7467 so we don't fire click events.
7470 - (HandleClick) Check if validation was cancelled before firing the click
7471 events (doubleclicks are fired, but not clicks)
7472 - (WmLButtonDown) Reset validation flag. The flag is normally reset on
7473 ContainerControl.set_ActiveControl, but in the case of non-selectable
7474 controls, like a Label, activecontrol is not set.
7476 * ButtonBase.cs: Only fire clicks if validation passes.
7480 2008-01-16 Geoff Norton <gnorton@novell.com>
7482 * XplatUICarbon.cs: Implement GetAutoScaleSize to fix Reflector on
7485 2008-01-16 Jonathan Pobst <monkey@jpobst.com>
7487 * FolderBrowserDialog.cs: If we cannot interpret the user's requested
7488 SelectedPath, just display the default dialog instead of crashing.
7491 2008-01-16 Geoff Norton <gnorton@novell.com>
7493 * XplatUICarbon.cs: Flicker be gone! Generate our messages in
7494 AddExpose instead of trusting apples compositing manager which doesn't
7495 work for our use case. Remove some dead code causing warnings and
7496 redecorate some other code to prevent warnings.
7498 2008-01-16 Geoff Norton <gnorton@novell.com>
7500 * XplatUICarbon.cs: Avoid some unecessary invalidation calls when
7501 carbon signals us to redraw. Fixes another portion of the flickering bug
7503 2008-01-16 Everaldo Canuto <ecanuto@novell.com>
7505 * Form.cs: Prevent the MdiParent property to be set when value is the same
7506 as value already set. Fixes bug #328019.
7508 2008-01-16 Everaldo Canuto <ecanuto@novell.com>
7510 * Form.cs: Don't set mdi_parent as null when mdi window close is prevented,
7511 it prevents NRE when closing mdi child windows. Fixes bug #325211.
7513 2008-01-16 Everaldo Canuto <ecanuto@novell.com>
7515 * InternalWindowManager.cs: Invalidade close button after mouse up when
7516 mdi form is prevented to close.
7518 2008-01-16 Everaldo Canuto <ecanuto@novell.com>
7520 * MdiClient.cs: Fix the minimum bounds on child window sizes when cascade,
7521 thanks to Andy Hume. Fixes bug #325433.
7523 2008-01-16 Andreia Gaita <avidigal@novell.com>
7525 * LinkLabel.cs: Reset focused_index when resellecting the control.
7528 2008-01-15 Geoff Norton <gnorton@novell.com>
7530 * XplatUICarbon.cs: Rework Grab/Ungrab handling to send some needed
7533 2008-01-15 Jonathan Pobst <monkey@jpobst.com>
7535 * Form.cs: Change 2 more AutoScaleBaseSize calculation to round instead
7538 2008-01-15 Jonathan Pobst <monkey@jpobst.com>
7540 * ContainerControl.cs: Setting AutoScaleMode to anything should set
7541 Form.AutoScale to false.
7542 * Form.cs: Setting AutoScale to true should set AutoScaleMode to None.
7543 AutoScaleBaseSize should be changed on Font change unless it has been
7547 2008-01-15 Everaldo Canuto <ecanuto@novell.com>
7549 * MenuAPI.cs: On instance of MenuTracker check if source control is
7550 ToolStripOverflow and use properly method to find form.
7553 2008-01-15 Everaldo Canuto <ecanuto@novell.com>
7555 [Fixes bug #323241 Transparent toolbar support]
7557 * ToolBar.cs: Define ToolBarStyles.TBSTYLE_FLAT in CreateParams when toolbar
7560 * Control.cs: Paint background as transparent in case of TBSTYLE_FLAT is
7561 defined in control style to mimic win32 behavior.
7563 * ThemeWin32Classic.cs: Don't paint background for flat apparence toolbar,
7564 it will be transparent.
7566 2008-01-14 Everaldo Canuto <ecanuto@novell.com>
7568 * XplatUIStructs.cs: Implement ToolBarStyles to use in Style property of
7569 CreateParams for ToolBar controls.
7571 2008-01-14 Jonathan Pobst <monkey@jpobst.com>
7573 * Form.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs: Forms with
7574 FixedToolWindow, SizeableToolWindow, or None for border styles have
7575 different minimum sizes than regular forms. Implemented to fix
7576 regression in PDN with toolbox being too wide.
7578 2008-01-14 Andreia Gaita <avidigal@novell.com>
7580 * HtmlElementCollection.cs: Implemented
7582 * HtmlElement.cs: Implemented:
7590 * HtmlDocument.cs: Implemented GetElementsByTagName.
7592 2008-01-14 Jonathan Pobst <monkey@jpobst.com>
7594 * Screen.cs: Stub BitsPerPixel to always return 32.
7596 2008-01-14 Jonathan Pobst <monkey@jpobst.com>
7598 * Form.cs: Implement RestoreBounds.
7600 2008-01-14 Jonathan Pobst <monkey@jpobst.com>
7602 * RichTextBox.cs, ToolStrip.cs: Fix some typos pointed out by
7603 Sebastien and his fabulous magical problem-finding machine:
7604 Gendarme. Also put a MonoTodo on AutoWordSelect since we don't
7605 respect the value set.
7607 2008-01-14 Everaldo Canuto <ecanuto@novell.com>
7609 * Form.cs: In WmWindowPosChanged call base.WndProc including when state is
7610 minimized. Fixes bug #325122 for Win32. Thanks Srikanth Madikeri.
7612 2008-01-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7614 * X11Dnd.cs: Since we don't propagate the WM_LBUTTONUP/WM_RBUTTONUP
7615 messages (to match .Net), we need to remove the capture ourselves.
7617 2008-01-11 Jonathan Pobst <monkey@jpobst.com>
7619 * MenuAPI.cs: If we get an Alt-F4, release our capture so Windows
7620 will process the message and close our window.
7623 2008-01-10 Geoff Norton <gnorton@novell.com>
7625 * XplatUICarbon.cs: Clip the Graphics context to the invalid area
7626 tracked in the Hwnd. Only invalidate the dirty region to the Carbon
7629 2008-01-10 Jonathan Pobst <monkey@jpobst.com>
7631 * Form.cs: Enforce the Form minimum size in SetBoundsCore. Fixed
7634 2008-01-10 Jonathan Pobst <monkey@jpobst.com>
7636 * XplatUIX11.cs: Set a minimum window size and enforce it. Even though
7637 Linux doesn't care, having a minimum matches MS and keeps the window
7638 from becoming too small to use window decorations.
7641 2008-01-10 Jonathan Pobst <monkey@jpobst.com>
7643 * ThemeWin32Classic.cs: Tie CheckBox/RadioButton focus rectangles to
7644 ShowFocusCues. Make focus rectangles fit the text instead of the whole
7645 control. [Fixes bug #325419]
7647 2008-01-10 Jonathan Pobst <monkey@jpobst.com>
7649 * ComboBox.cs: Guard against an NRE if the user open a new form from a
7650 SelectedIndexChanged event. This closes the combobox dropdown, and we
7651 were trying to dispose it. [Fixes bug #352830]
7653 2008-01-09 Jonathan Pobst <monkey@jpobst.com>
7655 * Control.cs, Form.cs: Implement the necessary semantics for
7656 ShowFocusCues. All paint code will need to check Control.ShowFocusCues
7657 to determine if a focus rectangle should be drawn.
7658 * PropertyGrid.cs: Fix property visibility to match override.
7659 * ThemeWin32Classic.cs: Use ShowFocusCues for Button.
7661 2008-01-09 Jonathan Pobst <monkey@jpobst.com>
7663 * Application.cs: Use GetCommandLineArgs to calculate ExecutablePath.
7666 2008-01-09 Geoff Norton <gnorton@novell.com>
7668 * XplatUICarbon.cs: Scroll windows in the correct direction.
7670 2008-01-09 Geoff Norton <gnorton@novell.com>
7672 * XplatUICarbon.cs: Track all created utility windows so we can hide them
7673 when the app is deactivated or spaces is enabled.
7675 2008-01-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7677 * ListViewItem.cs: Cosmetic fix - When calculating layout for item, don't add an
7678 extra separation pixel for the label rect origin if SmallImageList is
7679 null, and thus we don't need that separation between icon and label
7681 Patch by Ernesto Carrea.
7684 2008-01-08 Jonathan Pobst <monkey@jpobst.com>
7686 * StatusStrip.cs: Invalidate after completing a layout. The base
7687 OnLayout does this, but we don't call the base.
7688 * ToolStripItem.cs: Revert the previous change to invalidate after
7690 [Fixes bug #351341 better.]
7692 2008-01-07 Geoff Norton <gnorton@novell.com>
7694 * XplatUICarbon.cs: WM_DESTROY is a teardown of a single window
7695 not a notification to exit the application. Listen for WM_QUIT
7698 2008-01-07 Andreia Gaita <avidigal@novell.com>
7700 * HtmlDocument.cs: Fix case on GetElementById (interface changed)
7702 2008-01-07 Jonathan Pobst <monkey@jpobst.com>
7704 * ToolStripItem.cs: If the bounds of an item changes, invalidate it
7705 so it can repaint at the correct location.
7708 2008-01-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7710 * ListControl.cs: SelectedValue should return a null value if
7711 SelectedIndex is -1. Also, when setting it, it should throw an
7712 ArgumentNullException if the value is null, as well as taking
7713 into account the String.Empty value, instead of ignoring it (we have
7714 tests for that now).
7715 Fixes part of #324286.
7717 2008-01-06 Jonathan Pobst <monkey@jpobst.com>
7719 * TextBoxBase.cs, TextControl.cs: Patch from Luke Page to ensure
7720 SelectionStart is updated after pressing enter. Fixes bug #351918.
7722 2008-01-05 Jonathan Pobst <monkey@jpobst.com>
7724 * TextControl.cs: Revert a piece r92316 that prevented the fix
7725 from working when there were multiple tags in the text box.
7728 2008-01-05 Jonathan Pobst <monkey@jpobst.com>
7730 * TextControl.cs: Apply patch from Luke Page that prevents an
7731 NRE when determining the beginning of a paragraph.
7734 2008-01-05 Jonathan Pobst <monkey@jpobst.com>
7736 * TextBoxBase.cs: Apply patch from Luke Page that ensures the
7737 caret gets moved with clicking away from a selected block of
7738 text. Fixes bug #351885.
7740 2008-01-05 Jonathan Pobst <monkey@jpobst.com>
7742 * TextControl.cs: Apply patch from Luke Page that takes line
7743 alignment into account for mouse selection, so that center and
7744 right aligned text can be selected.
7747 2008-01-05 Jonathan Pobst <monkey@jpobst.com>
7749 * RichTextBox.cs: Apply patch from Luke Page that fixes some caret
7750 issues after loading an RTF file by using the correct line feeds.
7753 2008-01-05 Jonathan Pobst <monkey@jpobst.com>
7755 * TextControl.cs: When deleting multiple line selections, we need
7756 to invalidate every line beginning at the first line of the selection.
7757 Patch from Luke Page fixes bug #351791.
7759 2008-01-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7761 * ListControl.cs: When getting a CurrencyManager.PositionChanged
7762 event, don't set SelectedIndex if the number of items is 1. This is
7763 because, for the first item, PositionChanged is fired _before_
7764 ItemChanged (the place where we actually populate the items), and
7765 leave us in a temporary invalid state (since items collection is
7769 2008-01-04 Geoff Norton <gnorton@novell.com>
7771 * XplatUICarbon.cs: Create native toolwindows instead of
7772 the managed drawing ones.
7774 2008-01-03 Jonathan Pobst <monkey@jpobst.com>
7776 * LineTag.cs: If the line doesn't have any characters, return
7777 0 for GetCharIndex. Fixes an AOORE exception after certain
7778 caret movements. Fixes bug #351683. Patch by Luke Page.
7780 2008-01-03 Jonathan Pobst <monkey@jpobst.com>
7782 * TextBoxBase.cs: Apply patch from Luke Page so when backspace
7783 is hit when there is selected text, only the selected text gets
7784 deleted, not the character in front of the selection as well.
7787 2008-01-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7789 * ComboBox.cs: When the values are displayed, calculate the
7790 ComboListBox scrollbar's LargeChange based on the visible area's
7791 height and the actuall ItemHeight, instead of calculating it
7792 based on MaxDropItems value, since it's not used by our _current_
7796 2008-01-03 Jonathan Pobst <monkey@jpobst.com>
7798 * Line.cs, LineTag.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs:
7799 Patch from Luke Page that fixes issues with font colors and styles
7800 not showing up in a readonly RichTextBox. Fixes bug #324354.
7802 2008-01-03 Jonathan Pobst <monkey@jpobst.com>
7804 * Line.cs, RichTextBox.cs, TextControl.cs: Another awesome patch
7805 from Luke Page. This one fixes bug #349926.
7807 2007-12-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7809 * CurrencyManager.cs: Actually fire the 2.0 ListChanged event when
7810 an item in the IBindingList source changes with
7811 ListChangedType.ItemAdded. Ignore for now firing the event for other
7812 changes, since we want to have tests for those cases as well.
7814 2007-12-28 Jonathan Pobst <monkey@jpobst.com>
7816 * TextBoxBase.cs: Don't store a 1x1 Bitmap for every TextBox
7819 2007-12-28 Jonathan Pobst <monkey@jpobst.com>
7821 * TextBoxTextRenderer.cs: Implement a cache for measuring each
7822 character. This is effective because the typical usage of a
7823 TextBox is with a limited amount of fonts and characters, and
7824 the current implementation of TextBox measures everything one
7825 character at a time. Another second or two speedup for bug #347238.
7827 2007-12-28 Jonathan Pobst <monkey@jpobst.com>
7829 * Control.cs: Rewrite the Font getter to only query the parent's
7830 Font property once instead of twice. Since this operation is
7831 recursive, the queries were growing exponentially as the control
7832 tree got deeper. Another second or two speedup for bug #347238.
7834 2007-12-28 Jonathan Pobst <monkey@jpobst.com>
7836 * Control.cs: Avoid setting a parent (and more importantly, updating
7837 the zorder of all its children) if the parent is already correct in
7838 WmShowWindow. Decreases the startup time of the test case on bug
7839 #347238 from 35 seconds to 11 seconds.
7841 2007-12-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7843 * X11Dnd.cs: When the dnd operation has started and we are
7844 in the dnd loop, don't dispatch either WM_LBUTTONUP nor WM_RBUTTONUP.
7845 This is done to match .Net, which doesn't send those messages after
7846 dnd operation was completed/cancelled.
7849 2007-12-27 Jonathan Pobst <monkey@jpobst.com>
7851 * ToolStrip.cs: Previous change should be != null, not == null.
7854 2007-12-27 Jonathan Pobst <monkey@jpobst.com>
7856 * ToolStrip.cs: Guard against an NRE after ItemClicked is called, the
7857 user may have moved the mouse off the current item during the event.
7859 2007-12-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7861 * ListView.cs: In ItemControl.ItemsMouseMove, try to avoid
7862 calling GetItemAt for every MouseMove event by also taking into
7863 account whether any mouse button is pressed (probably dragging);
7864 if so, we can call GetItemAt, and if not, try to not call it
7865 (GetItemAt can be quite expensive when used with a large number of items).
7867 2007-12-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7869 * ListView.cs: Implement -finally- support for dnd, by calling
7870 OnItemDrag as needed. Also, remove the dnd TODO, and add myself to the
7872 * ListViewInsertionMark.cs: Implement NearestIndex method, by doing a
7873 simple calculation of distances for all the items in the owner
7876 2007-12-21 Geoff Norton <gnorton@novell.com>
7878 * XplatUICarbon.cs: Ensure that we create WindowMapping handles
7879 for windows that are originally created as invisible. Fixes missing
7880 main window in paint-mono.
7882 2007-12-21 Geoff Norton <gnorton@novell.com>
7884 * XplatUICarbon.cs: Register our D&D handler. Register our custom
7885 subclass handler for com.novell.mwfview subclassing HIView. Implement
7886 Pasteboard and Dnd methods.
7888 2007-12-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7890 * ListBox.cs: When we got focus, give focus to first item if there
7891 wasn't any pervious focused item. Also update navigation to depend on
7892 SelectedIndex rather than FocusedItem, just as .Net does.
7895 2007-12-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7897 * ListBox.cs: Both FindString and FindStringExact methods must do an
7898 case insensitive search, should allow the last valid index to be
7899 passed in the overload taking an initial index, and should also
7900 continue searching from the top back to the specified index when it
7903 2007-12-19 Jonathan Pobst <monkey@jpobst.com>
7905 * TextControl.cs: Apply patch from Luke Page that fixes a scrolling
7906 redraw issue, and allows RichTextBox to draw colored text even while
7907 disabled or readonly.
7909 2007-12-19 Jonathan Pobst <monkey@jpobst.com>
7911 * RichTextBox.cs, TextBoxBase.cs: Apply patch from Luke Page that
7912 disallows cut/paste in a readonly textbox, adds support for Shift-Insert,
7913 and doesn't grey text in a disabled RichTextBox.
7915 2007-12-19 Jonathan Pobst <monkey@jpobst.com>
7917 * RichTextBox.cs: Apply patch from Luke Page that adds better support
7918 for many RTF commands: quad alignment, separate formatting for blocks
7919 inside groups, and ParDef support. Makes the test case from bug #324589
7922 2007-12-19 Jonathan Pobst <monkey@jpobst.com>
7924 * LineTag.cs: Fix an error in the new Draw method that caused
7925 a crash when rendering the document on bug #324589.
7927 2007-12-19 Jonathan Pobst <monkey@jpobst.com>
7929 * Line.cs, LineTag.cs, RichTextBox.cs, TextBoxBase.cs,
7930 TextControl.cs: Apply patch from Luke Page that adds support
7931 for URL links in RichTextBox.
7932 [Fixes enhancement #342516]
7934 2007-12-18 Everaldo Canuto <ecanuto@novell.com>
7936 * MenuItem.cs: When cloning menuitem clone also name and tag properties for
7937 2.0 profile. Thanks Ernesto Carrea and Luke Page. Fixes bug #340289.
7939 2007-12-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7941 * ListBox.cs: When a key gets pressed, try to find a string
7942 if the key is a character or a digit.
7945 2007-12-17 Jonathan Pobst <monkey@jpobst.com>
7947 * TableLayoutPanel.cs: Remove some unused variables.
7949 2007-12-17 Jonathan Pobst <monkey@jpobst.com>
7951 * DateTimePicker.cs: Commit patch from Luke Page that ensures
7952 we don't end up at an invalid date when we click the up/down
7953 spinner to change the month or year. Fixes bug #348682.
7955 2007-12-17 Jonathan Pobst <monkey@jpobst.com>
7957 * Application.cs: Calling Exit in 2.0 should chain to the
7958 Exit (CancelEventArgs) version so it can be cancelled.
7959 * Form.cs: Create a flag to allow raising the Closing
7960 events to be skipped. We raise them once in Application.Exit
7961 and don't want to raise them again when the Form is actually
7962 closed. [Fixes bug #349073]
7964 2007-12-16 Jonathan Pobst <monkey@jpobst.com>
7966 * ToolStripDropDown.cs: Guard against an NRE when there
7967 hasn't been a mainform set in the application context.
7970 2007-12-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7972 * ListBox.cs: When SetBoundsCore gets called, besides
7973 calling UpdateScrollBars, update the value of
7974 last_visible_index, since we could need to show more items
7975 than before, and we need to let the paint routines know that.
7978 2007-12-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7980 * ListView.cs: Add DesignerSerializationVisibility attribute to
7981 InsertionMark property.
7982 * ListViewItem.cs: Add same attribute to Position property.
7984 2007-12-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7986 * ListViewItem.cs: .ctor (SerializationInfo, StreamingContext)
7989 2007-12-14 Jonathan Pobst <monkey@jpobst.com>
7991 * ThemeWin32Classic.cs: Don't draw the background on a
7992 flat button if there is a background image.
7995 2007-12-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7997 * ListBox.cs: If we remove the item currently selected,
7998 remove it not only from SelectedItems, but also
7999 resetting selected_index. Moreover, set focused_item to Items.Count - 1 if
8000 the items count decreased and focused_item has bigger value than that.
8002 2007-12-13 Jonathan Pobst <monkey@jpobst.com>
8004 * Control.cs: Perform our layout after we resize ourselves
8005 if we had to adjust our AutoSize. Missed commit for bug
8008 2007-12-13 Jonathan Pobst <monkey@jpobst.com>
8010 * TableLayoutPanel.cs: Override GetPreferredSizeCore so
8011 we can provide an implementation of AutoSize.
8014 2007-12-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8016 * ListBox.cs: Add the internal overload Sort (bool paint),
8017 to indicate whether we actually need a paint or we will
8018 call Refresh ourselves. This way we don't request a paint
8019 _before_ having an updated and valid layout.
8022 2007-12-12 Andreia Gaita <avidigal@novell.com>
8024 * XPlatUIX11.cs: Send paint messages when updating a systray icon
8025 * NotifyIcon.cs: Invalidate the window before doing a systray change so it is
8026 properly invalidated.
8029 2007-12-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8031 * ListViewItem.cs: When using a .ctor taking a ListViewGroup,
8032 don't simply assign it to our internal group field, but instead
8033 use our Group property, which should do all the neccessary work
8034 required to support groups. Fixes an issue reported to me (mail) by a
8035 guy using this new feature.
8037 2007-12-11 Jonathan Pobst <monkey@jpobst.com>
8039 * Control.cs: Use Scale instead of ScaleControl to ensure the
8040 whole hierarchy gets scaled.
8043 2007-12-10 Jonathan Pobst <monkey@jpobst.com>
8045 * DateTimePicker.cs: Don't set the internal MonthCalendar's
8046 Parent property. Doing this causes the control to be hosted by
8047 the Form instead of being a popup window.
8050 2007-12-10 Jonathan Pobst <monkey@jpobst.com>
8052 * ToolStripItemCollection.cs: If we try to insert a ToolStripItem
8053 at an index higher than Count, just use Add instead of Insert.
8056 2007-12-10 Jonathan Pobst <monkey@jpobst.com>
8058 * ThemeWin32Classic.cs: Don't draw a PictureBox's background in
8059 DrawPictureBox, this is handled by Control.PaintBackground.
8062 2007-12-10 Everaldo Canuto <ecanuto@novell.com>
8064 * MenuAPI.cs: When process menu keys return true by default only if menu is
8065 active. Fixes bug #342892.
8067 2007-12-09 Andreia Gaita <avidigal@novell.com>
8069 * Control.cs: check if windows are actually mapped before
8070 trying to zorder. Fixes #342509, #346955
8072 2007-12-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8075 * ListViewInsertionMark.cs:
8076 * ThemeWin32Classic.cs: Implement the drawing side of the
8077 new 2.0 ListView.InsertionMark property.
8079 2007-12-07 Jonathan Pobst <monkey@jpobst.com>
8081 * CurrencyManager.cs: Silence some debug spew.
8083 2007-12-07 Geoff Norton <gnorton@novell.com>
8085 * Hwnd.cs: Refactor GetClippingRectangles to suppose returning the
8086 masks for our children as well as siblings to avoid having to query
8087 Quartz for this information.
8088 * XplatUICarbon.cs: Implement a delegate based system to pass
8089 information to System.Drawing. Implement Async methods. Remove
8090 the hack for the resize thumb and imlpement a transparent Grow Box.
8091 Rework the messaging system to proplery create window's and messages,
8094 2007-12-06 Andreia Gaita <avidigal@novell.com>
8096 * X11Keyboard.cs: Use Xutf8LookupString to support international
8097 characters under alternate codepages. Patch from #340878
8099 2007-12-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8101 * ListView.cs: When doing layout computations, set position in the
8102 ListView instances (we cache the position just as .Net does).
8103 * ListViewItem.cs: New internal setter method for Position. Also set
8104 position field as also available in 1.1, since we are going to use it
8105 now in the common case.
8107 2007-12-06 Andreia Gaita <avidigal@novell.com>
8109 * Control.cs: When removing controls, get the actual container
8110 to notify about active control changes. Fixes 341314.
8112 2007-12-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8114 * ListViewItem.cs: Forgot to add Font to our serialization stuff.
8116 2007-12-05 Andreia Gaita <avidigal@novell.com>
8118 * Control.cs: When updating the zorder, ignore windows that are not
8119 mapped. Fixes #342509
8121 2007-12-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8123 * ListViewItem.cs: Actually implement serialization on this class.
8125 2007-12-05 Gert Driesen <drieseng@users.sourceforge.net>
8127 * LinkLabel.cs: Fixed paramname of ArgumentNullException in ctor of
8128 LinkCollection. Spaces to tabs, and removed extra tabs.
8130 2007-12-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
8132 * XplatUIX11.cs: Make toolwindows' decorations show up without causing any
8133 tests to fail (hopefully).
8135 2007-12-03 Jonathan Pobst <monkey@jpobst.com>
8137 * ToolStripDropDownMenu.cs: Fill in AffectedBounds when drawing
8138 the image margin so custom renderers can correctly place it.
8140 2007-12-03 Jonathan Pobst <monkey@jpobst.com>
8142 * StatusStrip.cs: Fill in AffectedBounds when drawing the grip
8143 so custom renderers can correctly place it.
8145 2007-12-03 Jonathan Pobst <monkey@jpobst.com>
8147 * Application.cs: Let WM_CHAR messages flow through to controls
8148 hosted in Strips. [Fixes bug #343972]
8150 2007-12-02 Jonathan Pobst <monkey@jpobst.com>
8152 * ToolStripManager.cs: Guard against an NRE I ran into.
8154 2007-12-02 Jonathan Pobst <monkey@jpobst.com>
8156 * LinkLabel.cs: Apply patch from George to fix bug 344012. If
8157 a Link is manually added to the Links collection, we need to set
8158 its owner, so it can invalidate properly.
8161 2007-11-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8163 * ListView.cs: When changing ListViewItem.Position (which calls
8164 ListView.ChangeItemLocation), invalidate not only the area
8165 corresponding to the main item, but also to the area occupied
8166 by the items being moved.
8168 2007-11-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8170 * ListView.cs: When changing the position of a given item,
8171 don't use item bounds, but item areas (which includes the item spacing
8172 between them). Also, use first/last position if the requested
8173 position is outside bounds (as .Net does). Invalidate the previous and
8174 new bounds. Finally, in ItemControl.ItemsMouseDown use the actual item
8175 in a specific position, instead of directly accessing Items collection
8176 (this is done to get the right item - remember an Item can have a
8177 different position in the grid than in the Items collection).
8179 2007-11-23 Everaldo Canuto <ecanuto@novell.com>
8181 * MessageBox.cs: Calculate text area instead of just top left, this rect
8182 area will be used in DrawString. Fixes bug #343364.
8184 2007-11-23 Everaldo Canuto <ecanuto@novell.com>
8186 * MessageBox.cs: Calculate max amount for text area width, it must be 60% of
8187 screen width. Partially fixes bug #343364.
8189 2007-11-23 Everaldo Canuto <ecanuto@novell.com>
8191 * NotifyIcon.cs: Remove duplicated code before call realculate and put this
8192 code inside recalculate, it makes code more simple.
8194 2007-11-22 Everaldo Canuto <ecanuto@novell.com>
8196 * NotifyIcon.cs: When recalculate icon verify if icon is active to decide
8197 between update or add icon. Fixes bug #324344.
8199 2007-11-21 Andreia Gaita <avidigal@novell.com>
8201 * XPlatUIX11.cs: Do not treat tool windows as if they have no
8202 window manager, since that stretches the drawing area to include
8203 the window decorations, and they get hidden. Reverts r84444 and fixes
8204 #335849 and #342790 (mdi and pdn3 regression)
8206 2007-11-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8208 * ListView.cs: When setting focused item, try to give focus to the
8209 previous one _only_ if the previous one remains valid.
8212 2007-11-20 Jonathan Pobst <monkey@jpobst.com>
8214 * Application.cs: Revert r89650, as it broke a common case to fix
8215 an obscure case. Fixes bug #342606.
8217 2007-11-20 Everaldo Canuto <ecanuto@novell.com>
8219 * ThemeWin32Classic.cs: Fix extra space on end of tooltip.
8221 2007-11-20 Everaldo Canuto <ecanuto@novell.com>
8223 * ThemeWin32Classic.cs: Fix tooltip text align removing horizontal
8224 alignment. [Fixes #324228]
8226 2007-11-19 Jonathan Pobst <monkey@jpobst.com>
8228 * ToolStrip.cs: Handle flow layout in GetPreferredSize to fix PDN3.
8231 2007-11-19 Everaldo Canuto <ecanuto@novell.com>
8233 * Form.cs: Check for empty Text before assign to cp.Caption in CreateParams
8234 it prevent problems when empty captions. [Fixes #342141]
8236 2007-11-19 Jonathan Pobst <monkey@jpobst.com>
8238 * Label.cs: Use Size instead of None. Fixes bug #342077.
8240 2007-11-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8242 * ListViewItem.cs: Implement 2.0 FindNearestItem method.
8244 2007-11-17 Jonathan Pobst <monkey@jpobst.com>
8246 * MenuStrip.cs: Guard against a NRE when a MdiWindowItem is set
8247 but there isn't a MdiContainer.
8250 2007-11-17 Jonathan Pobst <monkey@jpobst.com>
8252 * TextControl.cs: Don't recalculate document if the recalc_start and
8253 recalc_end hasn't changed.
8256 2007-11-17 Gert Driesen <drieseng@users.sourceforge.net>
8258 * DataGridViewTextBoxCell.cs: Removed CWL.
8260 2007-11-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8262 * ListView.cs: Implement 2.0 SearchForVirtualItem event support.
8264 2007-11-16 Jonathan Pobst <monkey@jpobst.com>
8266 * TextControl.cs: Missed some code for bug 341534 to trigger a
8267 recalculation when the font changes.
8269 2007-11-16 Andreia Gaita <avidigal@novell.com>
8271 * Control.cs: When updating the zorder, check if the child to update is
8272 the same control that is set to always be on top (i.e., scrollbars), and
8273 just put it on top directly. Fixes BadMatch error on pdn3
8275 2007-11-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8277 * ListView.cs: Throw the needed exceptions for FindNearestItem.
8279 2007-11-16 Jonathan Pobst <monkey@jpobst.com>
8281 * Control.cs: Don't perform a new layout when a label changes its text,
8282 cause label handles its own autosizing.
8285 2007-11-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8287 * ListView.cs: Implement 2.0 FindNearestItem methods.
8289 2007-11-15 Jonathan Pobst <monkey@jpobst.com>
8291 * ToolStripPanel.cs: Make Join at least add the control to the panel,
8292 even if the rest of what Join does isn't supported. Add some more
8293 support for vertical toolbars.
8294 * ToolStripPanelRow.cs: Add some more support for vertical toolbars.
8295 [Fixes the application breaking parts of bug #341998]
8297 2007-11-15 Jonathan Pobst <monkey@jpobst.com>
8299 * ToolStripItem.cs: When determining if we have a check/image margin,
8300 we need to look at ShowCheckMargin as well as ShowImageMargin.
8302 2007-11-15 Geoff Norton <gnorton@novell.com>
8304 * XplatUIOSX.cs: Rename to...
8305 * XplatUICarbon.cs: and refactor all event handling out to the new event handling
8306 system in System.Windows.Forms.CarbonInternal. Lots of code cleanup as well.
8308 2007-11-15 Jonathan Pobst <monkey@jpobst.com>
8310 * KeysConverter.cs: The default values should be an array of Keys, not
8311 strings. Also, the array has more values for 2.0.
8314 2007-11-14 Jonathan Pobst <monkey@jpobst.com>
8316 * Application.cs: Change ExecutablePath to use
8317 Process.GetCurrentProcess ().MainModule.FileName instead of Assembly.GetEntryAssembly.
8320 2007-11-14 Jonathan Pobst <monkey@jpobst.com>
8322 * LineTag.cs: Don't attempt to draw '\r', treat it like it doesn't exist.
8323 When measureing CR or LF, use /u000D instead of /u0013. (Hex, not decimal.)
8324 * TextControl.cs: Fix a case in GetLineEnding where a \n before a \r would
8325 be ignored. Create a new GetLineEnding that can specify which types of
8326 line endings to look for. On Insert, only create new lines for \n and \r\n.
8329 2007-11-14 Jonathan Pobst <monkey@jpobst.com>
8331 * TextBoxBase.cs: As we loop through each line changing the font, tell
8332 the document that the line needs to be recalculated. Fixes bug #341534.
8334 2007-11-13 Jonathan Pobst <monkey@jpobst.com>
8335 [Another round of refactoring]
8336 * Line.cs: Add DeleteCharacters.
8337 * LineTag.cs: Add Delete.
8338 * TextBoxBase.cs: Update to use new methods.
8339 * TextControl.cs: Refactor the Delete* methods.
8341 2007-11-13 Everaldo Canuto <ecanuto@novell.com>
8343 * Win32DnD.cs: Implement Win32 Drop files, thank you Srikanth Madikeri for
8344 the patch. [Fixes #324856]
8346 2007-11-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8349 * ListViewItem.cs: Add an initial implementation of
8350 2.0 ListViewItem.Position getter.
8352 2007-11-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8354 * ListView.cs: Add a reordered_items_indices array, to allow us
8355 to have a different sorting than that of Items (the sorting in Items
8356 could not match the actual sorting in screen). This is needed to
8357 implement a pair of 2.0 features.
8358 * ListViewItem.cs: Add a DisplayIndex property to keep track of the
8359 actual position in the ListView grid, since it could have a position
8360 different than its Index (position in ListViewItemCollection).
8362 2007-11-09 Jonathan Pobst <monkey@jpobst.com>
8364 * Label.cs: Add StringFormatFlags.LineLimit. This tells DrawString to
8365 not draw partial lines.
8366 * LinkLabel.cs: Change FormatFlags setter from = to |= so that the
8367 LineLimit flag from the base is preserved.
8368 Fixes the windows part of bug #338965.
8370 2007-11-09 Jonathan Pobst <monkey@jpobst.com>
8372 * TextBoxBase.cs: Move handling of the enter key from KEYDOWN to CHAR
8373 so that it can be canceled in KeyPress.
8376 2007-11-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8378 * ListView.cs: In ItemControl, reset mouse-handling related
8379 fields even if we dont' have items (we still should reset them when
8380 we had items but then called Items.Clear). Partially based in a patch
8384 2007-11-08 Gert Driesen <drieseng@users.sourceforge.net>
8386 * Application.cs: In ProductVersion first try AssemblyFileVersion
8387 before falling back to assembly version. Fixes bug #339787.
8389 2007-11-08 Andreia Gaita <avidigal@novell.com>
8391 * HtmlElement.cs: Implement InnerText setter.
8392 * WebBrowserBase.cs: Implement Navigated event support.
8393 Add flag to track when the browser "document" is ready to be retrieved.
8394 * WebBrowser.cs: Implement CanGoBack, CanGoForward, Title, Url.
8395 Make sure browser document is ready before retrieving it.
8396 Clean up cached objects (document) when moving to a new page through
8397 any of the navigation methods.
8398 Use the new Mono.WebBrowser.INavigation interface to control navigation.
8399 Implement OnNavigated event.
8401 2007-11-07 Jonathan Pobst <monkey@jpobst.com>
8403 * ThemeWin32Classic.cs: Don't draw the background in DrawLabel or
8404 DrawLinkLabel, this is handled by OnPaintBackground.
8405 Fixes bug #339565, part II.
8407 2007-11-07 Andreia Gaita <avidigal@novell.com>
8409 * Control.cs: Revert r88915. Selecting text on a textbox depends on
8410 getting a Select call on click, so this call needs to be here for now.
8413 2007-11-07 Geoff Norton <gnorton@novell.com>
8415 * OSXStructs.cs: Add the kEventClassApplication constants.
8416 * XplatUIOSX.cs: Send a WM_LBUTTONDOWN to the Grab window when the
8417 application is deactivated otherwise Menu overlays linger on top of
8418 other application windows.
8420 2007-11-07 Geoff Norton <gnorton@novell.com>
8422 * XplatUIOSX.cs: Dont throw an exception on OverrideCursor as we
8423 dont support cursors yet anyways. This allows Reflector to run.
8425 2007-11-07 Geoff Norton <gnorton@novell.com>
8427 * XplatUIOSX.cs: Implement DragSize.
8429 2007-11-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8431 * ListView.cs: When we receive a WM_LBUTTONDOWN message in
8432 ItemControl, request the focus, as .Net does. This is needed after
8433 Control does not request focus anymore when it receives a
8436 2007-11-06 Jonathan Pobst <monkey@Jpobst.com>
8438 * Label.cs: Make DrawImage internal so it can be called from Theme code.
8439 Remove the DrawImage call from OnPaint.
8440 * LinkLabel.cs: Remove the DrawImage call from OnPaint.
8441 * ThemeWin32Classic.cs: Call DrawImage after we paint the background,
8442 but before we draw the text for DrawLabel and DrawLinkLabel.
8445 2007-11-05 Andreia Gaita <avidigal@novell.com>
8447 * Control.cs: Remove select call on click. Fixes #325809
8449 2007-11-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8451 * ListViewItem.cs: Add 2.0 Position property getter.
8453 2007-11-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8455 * ListView.cs: Add 2.0 BackgroundImageTiled property.
8456 Also, to make it work properly, change item's BackColor and
8457 BackgroundImageLayout as needed.
8458 * ThemeWin32Classic.cs: Don't fill any background rectangle
8459 in ListView.ItemControl when drawing items; just let the Control
8460 base implementation fill it.
8462 2007-11-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8464 * ListViewGroup.cs: Adda TypeConverter attribute for this class,
8465 as well as adding a custom 'dummy' Converter, as .net does.
8467 2007-11-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8469 * PropertyGridView.cs: When clicking drop-down button,
8470 select an index in the listbox only if our standard values collection
8471 has one or more items.
8473 2007-11-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8475 * ListViewItem.cs: Add a DefaultValue attribute to 2.0 IndentCount
8478 2007-11-04 Gert Driesen <drieseng@users.sourceforge.net>
8480 * PropertyGrid.cs: In PropertySort, update the toolbar buttons even if
8481 the value is not changed. This ensure a pushed button remains in that
8482 state when clicked again. When switching the value of PropertySort
8483 between Categorized and CategorizedAlphabetical, do not update the
8484 grid items and do not fire a PropertyChangedEvent. When clicking the
8485 sorting buttons, do not modify the PropertySort value when switching
8486 between Categorized and CategorizedAlphabetical but only update the
8489 2007-11-04 Gert Driesen <drieseng@users.sourceforge.net>
8491 * Label.cs: Make AutoEllipsis internal on 1.0 profile. Code
8493 * PropertyGrid.cs: Also put Categorized button in pushed state when
8494 PropertySort is CategorizedAlphabetical. Set AutoEllipsis to true
8495 for help description label.
8497 2007-11-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8499 * ListView.cs: When calculating the biggest item for a given column,
8500 take into account 2.0 LIstViewItem.IndentCount, since it directly affects
8503 2007-11-03 Gert Driesen <drieseng@users.sourceforge.net>
8505 * PropertyGrid.cs: Fixed default value for PropertySort. Allow invalid
8506 value for PropertySort on 1.0 profile. PropertySortChanged event
8507 should only be fired on 2.0 profile. Fixed NullReferenceException
8508 in UpdateSortLayout when PropertyGrid contains no items.
8510 2007-11-02 Jonathan Pobst <monkey@jpobst.com>
8512 * MessageBox.cs: Patch from George to implement MessageBoxDefaultButton.
8515 2007-11-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8517 * ListViewItem.cs: Implement 2.0 IndentCount property.
8519 2007-11-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8521 * X11Dnd.cs: When sending status in a dnd operation, compare current
8522 effect with the 'allowed' field instead of 'drag_data.Allowed', since
8523 the later is only created when a Winforms application is both the
8524 source and the target, but not when we are the target only.
8525 Fixes part of #324251.
8527 2007-11-01 Geoff Norton <gnorton@novell.com>
8529 * XplatUI*.cs: Add GetPreviousWindow utility method to return windows in
8531 * Hwnd.cs: Add initial implementation of GetClippingRectangles to clip sibling
8532 children out of the drawing view on mac.
8533 * XplatUIOSX.cs: Code cleanup. Handle more window grab cases. Fix SetParent
8534 to handle the orphan and invisible case (1/2 fixes TabStrip drawing in FormsTest)
8536 2007-11-01 Jonathan Pobst <monkey@jpobst.com>
8538 * ToolStrip.cs: Don't process MouseUp for a ToolStripControlHost, clicking
8539 on the non-hosted-control part of it shouldn't do anything.
8540 Fixes part of bug #327498.
8542 2007-11-01 Andreia Gaita <avidigal@novell.com>
8544 * WebBrowserBase.cs: revert previous change, resize can be called anytime
8546 2007-11-01 Jonathan Pobst <monkey@jpobst.com>
8548 * Application.cs: When a toolstrip has the keyboard input loop, let messages
8549 it does not use flow through to controls that are hosted in menus.
8550 Same with mouse clicks.
8551 * Form.cs: Don't close all menus on click if the click is on a
8552 control hosted in a menu.
8553 Fixes part of bug #327498, and part of bug #325969.
8555 2007-10-31 Andreia Gaita <avidigal@novell.com>
8557 * WebBrowserBase.cs: Only call resize on gluezilla when it is active
8559 2007-10-31 Jonathan Pobst <monkey@jpobst.com>
8561 * TextBoxBase.cs: Use int.MaxValue for MaxLength instead of magic number.
8562 Addresses an issue raised in bug #336218.
8564 2007-10-30 Jonathan Pobst <monkey@jpobst.com>
8566 * Form.cs: Patch from George that moves the conversion of ClientSize->Size
8567 for PreferredSize from OnLayout to PreferredSize. Fixes bug #325242.
8569 2007-10-30 Andreia Gaita <avidigal@novell.com>
8571 * ContainerControl.cs: Check if the active control is a
8572 child of a removed control and update active_control accordingly.
8575 2007-10-29 Jonathan Pobst <monkey@jpobst.com>
8577 * DateTimePicker.cs: Throw ArgEx if the Value is set outside the MinDate
8578 or the MaxDate. Fixed bug #337693.
8580 2007-10-29 Jonathan Pobst <monkey@jpobst.com>
8582 * XplatUIWin32.cs: Always call SetWindowPos with SWP_FRAMECHANGED flag
8583 after calling SetWindowLong for a form, to force an immediate NC refresh.
8584 Fixes first part of bug #325150.
8586 2007-10-29 Jonathan Pobst <monkey@jpobst.com>
8588 * ComboBox.cs: Don't try to resize the listbox when we are DropDownStyle
8589 simple. Fixes the last part of bug #322668.
8591 2007-10-29 Jonathan Pobst <monkey@jpobst.com>
8593 * MessageBox.cs: If the owner is TopMost, then the MessageBox form
8594 needs to be TopMost as well, or else the MessageBox is under the form.
8595 Patch by George fixes bug #325300.
8597 2007-10-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8599 * X11Dnd.cs: When starting a new drag operation, reset the static
8600 'dropped' field to false (previously the implementation didn't reset
8601 it and got confused after the first drag).
8604 2007-10-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8606 * PropertyGrid.cs: When PropertySort changes, re-organize the grid
8607 items instead of re-creating them all. For this purpose we now cache
8608 both CategoryGridEntry items and the GridEntries for the main object's
8610 * GridItem.cs: Make SetParent method abstract.
8611 * GridEntry.cs: Override the SetParent method (already there, but now
8615 2007-10-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8617 * PropertyGridView.cs: Set the plus/minus bounds of a grid item
8618 depending on its depth (as .Net does). Update the needed values in
8619 MouseDown handler. Also draw the plus/minus rect after the label,
8620 so we don't draw on top of it.
8622 2007-10-24 Everaldo Canuto <ecanuto@novell.com>
8624 * MenuAPI.cs: Return true as default in ProcessKeys to prevent keys to be
8625 processed by forms or controls when menu is active. [Fixes #333548]
8627 2007-10-24 Jonathan Pobst <monkey@jpobst.com>
8629 * ToolStripItem.cs: Don't focus a ToolStripControlHost on Select of the
8630 parent doesn't have focus. This was causing ToolStripTextBoxes to take
8631 focus on mouse over.
8633 2007-10-24 Jonathan Pobst <monkey@jpobst.com>
8635 * TextControl.cs: Code cleaning, simplifying.
8637 2007-10-24 Geoff Norton <gnorton@novell.com>
8639 * XplatUIOSX.cs: Route mouse events to the grab hwnd on mouse down as well.
8640 * XplatUIStructs.cs: Fix the ToString method of POINT and MSG.
8642 2007-10-24 Jonathan Pobst <monkey@jpobst.com>
8644 * TextBoxBase.cs: If the user sets maxlength to 0, it should mean
8645 the cap is maxvalue, not actually 0. [Fixes bug #336218]
8647 2007-10-24 Andreia Gaita <avidigal@novell.com>
8649 * SendKeys.cs: apply jpobst's patch to bug #332409
8651 2007-10-23 Andreia Gaita <avidigal@novell.com>
8653 * TextBoxTextRenderer.cs: Lower bounds max size to Int16.MaxValue, the
8654 Windows 2000 gdi DrawText call doesn't draw if it's higher than that
8657 2007-10-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8659 * PropertyGridView.cs: If a property has an UIEditor available,
8660 make the drop-down/editor button available only if the property
8663 2007-10-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8665 * PropertyGridView.cs: Don't make the grid item textbox
8666 editable when a drop-down control is available, but
8667 CanConvertFrom (typeof (string)) is false or GetStandardValuesExclusive () is
8668 true. The same bur the color of the grid item value's label.
8670 2007-10-22 Geoff Norton <gnorton@novell.com>
8672 * OSXStructs.cs: Add the needed constants for keyboard modifiers.
8673 * OSXKeyboard.cs: Initial support for keyboard and limited modifiers.
8674 * XplatUIOSX.cs: New reversible frame support. Wire in the new keyboard
8675 driver. Padd the bottom of all real windows so the resize thumb doesn't
8676 obscure scroll/status bars.
8678 2007-10-22 Jonathan Pobst <monkey@jpobst.com>
8680 * WindowsFormsSection.cs: Implement.
8682 2007-10-22 Everaldo Canuto <ecanuto@novell.com>
8684 * MdiClient.cs: Maximize new active mdi child when a maximized child is
8685 closed see #325434 patch.
8687 2007-10-22 Everaldo Canuto <ecanuto@novell.com>
8689 * MdiClient.cs: Fix remaining issues from layout vertical and horizontal,
8692 2007-10-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8694 * PropertyGridView.cs: When showing the textbox for a grid item,
8695 have two local variables to store the read-only and non-editable
8696 status of a grid item (we were previously using just one variable
8697 to do this, when actually they are slightly different).
8698 Fixes part of #325023.
8700 2007-10-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8702 * PropertyGridView.cs: When showing a drop-down list, try to get the
8703 values using TypeConverter.ConvertTo (to convert to a string). Fixes
8706 2007-10-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8708 * PropertyGrid.cs: When updating a property and populating sub grid
8709 items, remove the previous ones, and invalidate the specific area.
8710 * PropertyGridView.cs: A new InvalidateBelowGridItem to invalidate the
8711 area behind a grid item.
8712 * GridItemCollection.cs: Add an internal Clear method, to allow us to
8713 clean the items if needed (specially for controls implementing
8714 ICustomTypeDescriptor and returning a variable number of properties).
8717 2007-10-19 Jonathan Pobst <monkey@jpobst.com>
8719 * TextControl.cs: Clean up and document the Insert function.
8721 2007-10-17 Jonathan Pobst <monkey@jpobst.com>
8723 * TextControl.cs: Make sure we know our start point for updating the view
8724 in ReplaceSelection. Fixes an issue where pasting multiline text wouldn't
8727 2007-10-17 Jonathan Pobst <monkey@jpobst.com>
8729 * ListView: Couple of corcompare fixes.
8731 2007-10-17 Geoff Norton <gnorton@novell.com>
8733 * XplatUIOSX.cs: Implement support for window icons in the dock. Set
8734 the title caption of real window.
8736 2007-10-17 Jonathan Pobst <monkey@jpobst.com>
8738 * ErrorProvider.cs: Add the error provider's internal window to a
8739 containercontrol when the parent changes. [Fixes bug #329714]
8741 2007-10-17 Geoff Norton <gnorton@novell.com>
8743 * XplatUIOSX.cs: Implement ScrollWindow. Properly create TOOLWINDOWs.
8744 When we make a new window; restore the old active window - fixes dialogs.
8746 2007-10-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8748 * PropertyGridView.cs: Look for RefreshPropertiesAttribute
8749 when modifying a property, and if found then invalidate as
8751 Fixes part of #324865.
8753 2007-10-17 Geoff Norton <gnorton@novell.com>
8755 * XplatUIOSX.cs: Re-enable the native driver on the Mac. This is still
8756 highly experimental. Fixed coordinate translation. Fixed window locations.
8757 Initial support for clipping. Implemented NC areas and menus. Support for
8758 launching from command line from Will Johansson (wjohansson@atacomm.com).
8759 * OSXStructs.cs: Add ProcessSerialNumer (Patch from Will Johansson
8760 wjohansson@atacomm.com)
8761 * Hwnd.cs: Add some internal structures for tracking Mac cursors.
8762 Hwnds now track the existence of all of their children for Mac clipping.
8763 * XplatUI.cs: Re-enabled the native driver on the Mac.
8765 2007-10-17 Jonathan Pobst <monkey@jpobst.com>
8767 * Line.cs: Move the InsertString function to here.
8768 * TextControl.cs: Cleanup some duplicate code, move some InsertString
8769 functionality to Line.
8771 2007-10-17 Geoff Norton <gnorton@novell.com>
8773 * ComboBox.cs: Destroy the popup after hiding it. Fixes #322582
8775 2007-10-16 Gert Driesen <drieseng@users.sourceforge.net>
8777 * ButtonBase.cs: Fixed IsDefault to use assigned value instead of
8778 always setting value to true.
8779 * Form.cs: When changing AcceptButton, notify new and original button.
8781 2007-10-16 Jonathan Pobst <monkey@jpobst.com>
8783 * Form.cs: Guard against an NRE when the user sets the AcceptButton to
8784 a custom control that implements IButtonControl instead of an actual
8785 button. [Fixes bug #334244]
8787 2007-10-15 Everaldo Canuto <ecanuto@novell.com>
8789 * Form.cs: Change SelectActiveControl to internal, we need to call it in
8792 * MdiWindowManager.cs: In RaiseActivated call SelectActiveControl to select
8793 active control when activate a new mdi window.
8797 2007-10-15 Everaldo Canuto <ecanuto@novell.com>
8799 * ComboBox.cs: Dont implicit add listbox_ctrl on OnHandleCreated because it
8803 2007-10-15 Jonathan Pobst <monkey@jpobst.com>
8805 * TextControl.cs: When SuspendRecalc is first called, reset the recalc_start
8806 to MaxValue and recalc_end to MinValue. Currently, recalc_start is always 1,
8807 so we always recalculate the whole document instead of just the new part.
8810 2007-10-15 Jonathan Pobst <monkey@jpobst.com>
8812 * LineTag.cs: Fix a case where the GetCharIndex would not return 0
8813 when the mouse was to the left of the first character in the line.
8815 2007-10-15 Jonathan Pobst <monkey@jpobst.com>
8817 * TextBox.cs, TextBoxBase.cs: When setting the document's password
8818 character, use the property instead of the variable so that the
8819 UseSystemPasswordChar property is taken into account.
8822 2007-10-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8824 * FolderBrowserDialog.cs: When a node is right clicked and the "New
8825 folder" contex menu appears, actually add the new folder to it, even
8826 if the node is not currently selected. Still use SelectedNode in case
8827 there wasn't found a node under the pointer.
8830 2007-10-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8832 * ListViewItem.cs: When retrieving the focused state, the index check
8833 should be done only when ListView is in virtualmode, as it is an
8834 expensive check for normal mode.
8836 2007-10-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8838 * ListViewItem.cs: Make the focus state information be stored
8839 in the ListView, not in the items. This is done to match the MS
8840 behaviour for items that are not yet part of a ListView control;
8841 besides that, since just one item can be focused at the same time,
8842 we save a little space in our items.
8843 Fixes part of #331643.
8845 2007-10-13 Gert Driesen <drieseng@users.sourceforge.net>
8847 * ComboBox.cs: When focus is lost, deselect the text. When setting
8848 text of control, select all text. Do not hide selection when control
8849 does not have focus. Fixes bug #333663.
8851 2007-10-13 Gert Driesen <drieseng@users.sourceforge.net>
8853 * TextBoxBase.cs: On 2.0 profile, throw ArgumentOutOFRangeException
8854 instead of ArgumentException when SelectionLength is set to negative
8855 value. Added same check to SelectionStart. Code formatting.
8857 2007-10-13 Gert Driesen <drieseng@users.sourceforge.net>
8859 * TextBoxBase.cs: Invalidate selection before changing SelectionLength
8860 or SelectionStart. Code formatting.
8862 2007-10-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8864 * TreeView.cs: drag_begin_x and drag_begin_y are now set to -1,
8865 indicating that there was not a previous drag-and-drop operation going
8867 Fixes part of #325071.
8869 2007-10-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8871 * X11Dnd.cs: When DragEventArgs.Effect is set to a value not part of
8872 AllowedEffect, don't let the drop operation happen.
8875 2007-10-12 Jonathan Pobst <monkey@jpobst.com>
8877 * TextRenderer.cs: Use GDI on Windows in both the 1.1 and 2.0 profiles.
8879 2007-10-12 Jonathan Pobst <monkey@jpobst.com>
8881 * Line.cs, LineTag.cs: Guard against an exception when Document.Clear
8884 2007-10-12 Jonathan Pobst <monkey@jpobst.com>
8886 * Line.cs: Add a method that finds the tag that contains an x-coord.
8887 * LineTag.cs: Add a method that finds the character at an x-coord using
8888 a binary search, the old way was a linear search.
8889 * TextControl.cs: Change FindCursor to use the above new methods.
8891 2007-10-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8893 * DragEventArgs.cs: Allow Effect to have a non allowed value (a
8894 value different than AllowedEffect). This should be possible to
8895 indicate that dragging is not possible in some control/area.
8897 2007-10-11 Jonathan Pobst <monkey@jpobst.com>
8899 * LineTag.cs: Encapsulate all variables with properties. Calculate ascent/
8900 descent internally when font changes instead of outside code being responsible
8902 * Line.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs: Use Tag properties
8903 instead of accessing internal variables.
8905 2007-10-09 Everaldo Canuto <ecanuto@novell.com>
8907 * MdiClient.cs: Always call ArrangeIconicWindows before any arrangement and
8908 remove special treatment for ArrangeIcons since it is already arranged.
8910 2007-10-09 Jonathan Pobst <monkey@jpobst.com>
8912 * TextBoxTextRenderer.cs: Draw takes a Color now instead of a Brush, as
8913 the Win32 backend uses Color.
8914 * Line.cs, LineTag.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs:
8915 Refactor to store a Color instead of a Brush for Color.
8917 2007-10-09 Jonathan Pobst <monkey@jpobst.com>
8919 * Line.cs, LineTag.cs: Override GetHashCode to make a compiler warning go
8920 away. I didn't realize I needed this when I refactored these earlier.
8922 2007-10-09 Jonathan Pobst <monkey@jpobst.com>
8924 * LineTag.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs: Refactor to
8925 store a Color structure and use the ResPool for back color instead of
8926 holding onto brushes.
8928 2007-10-09 Jonathan Pobst <monkey@jpobst.com>
8930 * TextControl.cs: Fix how we calculate the end of the tag we are drawing.
8933 2007-10-08 Jonathan Pobst <monkey@jpobst.com>
8935 * MonthCalendar.cs: When ShowWeekNumbers is changed, force the calendar
8936 to recalculate its size. Fixes a part of bug #331052.
8938 2007-10-08 Jonathan Pobst <monkey@jpobst.com>
8940 * NotifyIcon.cs: Set the correct mouse button when handling right mouse
8941 button. Fixes a part of bug #331052.
8943 2007-10-08 Jonathan Pobst <monkey@jpobst.com>
8945 * Form.cs: Trim NewLine before setting XPlatUI.SetText, and when setting
8947 * ThemeWin32Classic.cs: Trim NewLine before drawing MDI children window
8951 2007-10-08 Jonathan Pobst <monkey@jpobst.com>
8953 * TextBoxTextRenderer.cs: Don't make this a static class, as static
8954 doesn't exist in 1.1. (Thanks jb!)
8956 2007-10-08 Jonathan Pobst <monkey@jpobst.com>
8958 * TextBoxTextRenderer.cs: Abstract text measuring and drawing to this
8959 class to allow us to use different backends on different platforms.
8960 Linux uses the current [Draw|Measure]String backend. Windows uses
8961 the TextRenderer.[Draw|Measure]Text backend, which uses GDI instead
8962 of GDI+. This leads to better looking text and more accurate measurements
8963 on Windows, fixing many of the reported issues.
8964 * Line.cs, LineTag.cs: Update to use TextBoxTextRenderer.
8966 2007-10-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8968 * FolderBrowserDialog.cs: When running on Windows,
8969 try to detect paths such "C:" and add Path.DirectorySeparatorChar,
8970 since we must match both "C:" and "C:\" forms. A little hackish, but
8974 2007-10-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8976 * ListView.cs: When calling EndEdit (after editing an item),
8977 create a new instance of LabelEditEventArgs to keep clean the fields
8978 in case we get a new call to BeginEdit; also do Application.DoEvents
8979 to have focus in synch. This is a fix similar to TreeView's #325244.
8981 2007-10-07 Andreia Gaita <avidigal@novell.com>
8983 * HtmlDocument.cs, HtmlElement.cs, WebBrowser.cs: Added dom support
8984 * WebBrowserBase.cs: Added dialog support, calling the
8985 WebBrowserDialogs classes for each specific dialog type.
8987 2007-10-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8989 * ListView.cs: When the last item is focused and is removed,
8990 move the focus to the previous item (in Items order). This is what MS
8994 2007-10-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8996 * ListView.cs: In ListViewItemCollection, make Remove call RemoveAt,
8997 instead of the opposite (RemoveAt call Remove). This is a better
8998 approach since we don't need to to a pair of traversals when using
9001 2006-10-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9003 * TreeView.cs: When Keys.Left is pressed, before trying to Collapse
9004 check that the node actually has nodes, and if not, move to the
9005 parent node instead.
9008 2006-10-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9010 * TreeView.cs: Move the previous change to the general case (to
9011 call Application.DoEvents in cases where the method was called by
9014 2007_10-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9016 * TreeView.cs: When calling EndEdit and we need to hide the textbox,
9017 call Application.DoEvents. This is neccessary when we get a call to
9018 BeginEdit from an AfterLabelEdit handler, because the focus always
9019 goes to the TreeView, even if we try to give it to our
9020 LabelEditTextBox. The call do Application.DoEvents seems to
9021 synchronize the focus, basically.
9024 2007-10-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9026 * TreeView.cs: When AfterLabelEdit event is fired, TreeNode.IsEditing
9027 should be false. This also removes some nasty recursive paths. Fixes
9030 2007-10-04 Everaldo Canuto <ecanuto@novell.com>
9032 * MdiClient.cs: When cascade (layout) mdi window that is maximized, set the
9033 state to normal. Also resize window when cascading. Fixes #325433.
9035 2007-10-04 Jonathan Pobst <monkey@jpobst.com>
9037 * RichTextBox.cs: When SelectionColor is set to Color.Empty, use
9038 DefaultForeColor, as drawing empty colored lines isn't very useful.
9039 [Fixes the not drawn lines part of bug #324358]
9041 2007-10-04 Jonathan Pobst <monkey@jpobst.com>
9043 * TextControl.cs: Move Line and LineTag classes into separate files to
9044 make things easier to find.
9045 * Line.cs, LineTag.cs: Bring coding standards up to Mono's guidelines.
9046 * RichTextBox.cs: Capitalize LineTag.Length property access.
9047 - This is purely an organizational/formatting change, no logic changed. -
9049 2007-10-03 Everaldo Canuto <ecanuto@novell.com>
9051 * ThemeWin32Classic.cs: Do not show focus rectangle in radio buttons when
9054 2007-10-03 Everaldo Canuto <ecanuto@novell.com>
9056 * ThemeWin32Classic.cs: Do not show focus rectangle in checkboxes when
9059 2007-10-03 Everaldo Canuto <ecanuto@novell.com>
9061 * ComboBox.cs: On contructor use backgound_color instead of BackColor to
9062 prevent calling of OnBackColorChanged. Fixes #325321.
9064 2007-10-03 Everaldo Canuto <ecanuto@novell.com>
9066 * TextBox.cs: When check enabled uses Enabled property instead of is_enabled
9067 because control can be disabled because owner is disabled.
9069 2007-10-02 Jonathan Pobst <monkey@jpobst.com>
9071 * ComboBox.cs: For the 1.1 profile, the default SelectedText is
9072 string.Empty, test failed from previous change.
9074 2007-10-02 Jonathan Pobst <monkey@jpobst.com>
9076 * TextBoxBase.cs: For the 1.1 profile, the default SelectedText
9077 is null, not String.Empty. See bug #323038.
9079 2007-10-01 Jonathan Pobst <monkey@jpobst.com>
9081 * TextControl.cs: Change the margins to match MS a little better.
9082 Still not perfect for X11 due to some DrawString differences, but
9083 is still an improvement over the old stuff.
9084 Partially fixes #324467.
9086 2007-09-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9088 * FolderBrowserDialog.cs: When using MyComputer as
9089 RootFolder, let absolute paths be considered as valid ones. Also, use
9090 Path.DirectorySeparatorChar instead of Path.AltDirectorySeparatorChar,
9091 for Windows compatibility.
9092 Partially fixes #325247.
9094 2007-09-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9096 * FolderBrowserDialog.cs: Fix the recursive FindPathInNodes method.
9097 Also remove the stack.Count > 0 check in FBTreeView.SetSelectedNode
9098 method, since it causes the dialog to not select folders directly
9099 under the root path (when setting SelectedPath property).
9101 2007-09-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9103 * TreeNode.cs: When calling Expand/Collapse and need to call
9104 ExpandBelow/CollapseBelow respectively, take into account
9105 partially visible nodes (previously Expanding/Collapsing
9106 a partially visible node in the bottom was not updating its +- sign).
9108 2007-09-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9110 * TreeView.cs: When calling Expand on a TreeNode, and we need to
9111 expand nodes below (ExpandBelow), scroll the entire Viewport
9112 area if the node is above it and not visible (instead of scrolling
9113 the area from node's Bottom, which applies only when the node is
9117 2007-09-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9119 * TreeView.cs: When calling ExpandAll, set SelectedNode to the top
9120 node in the bottom area (as .Net does). This is done to preserve the
9121 scroll position when ExpandAll is called before handle is created for
9122 the 1.1 profile (bottom area, as opposed to top area in 2.0).
9125 2007-09-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9127 * TreeView.cs: When calling ExpandAll, don't move the scroll to the
9128 bottom area if we are in fact not using the vertical scroll bar.
9131 2007-09-27 Jonathan Pobst <monkey@jpobst.com>
9133 * Control.cs: Comment out a double buffering optimization that doesn't
9134 take into account invalidates created in OnPaint, causing the control
9135 to never be redrawn. It would take quite a bit of work to work around
9136 this, but I left it commented with an explanation for later possible
9140 2007-09-27 Jonathan Pobst <monkey@jpobst.com>
9142 * Control.cs: Ask parent to perform a layout if control is AutoSize and
9144 * RadioButton.cs: Implement GetPreferredSizeCore.
9147 2007-09-26 Jonathan Pobst <monkey@jpobst.com>
9149 * RichTextBox.cs, TextBoxBase.cs, WindowsFormsSynchronizationContext.cs:
9152 2007-09-26 Jonathan Pobst <monkey@jpobst.com>
9154 * Application.cs: Move the sync context stuff to Run instead of RunLoop
9155 so that it doesn't get uninstalled on modal forms.
9156 * Control.cs: Install a sync context when a control is created.
9157 * WindowsFormsSyncronizationContext.cs: Create a private static control
9158 to invoke on. This is easier than trying to find a created control we
9162 2007-09-25 Jonathan Pobst <monkey@jpobst.com>
9164 * Application.cs: Install a WindowsFormsSynchronizationContext in the
9165 run loop, and uninstall it when done.
9166 * WindowsFormsSynchronizationContext.cs: Implement.
9167 [Fixes the common case in bug #327608]
9169 2007-09-23 Gert Driesen <drieseng@users.sourceforge.net>
9171 * DataGridViewCellCollection.cs: Added argument checks for indexers.
9172 Use case-insensitive lookup of column name in indexer. Code
9175 2007-09-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9177 * TreeNode.cs: When collapsing or expanding a node, check whether its
9178 change will affect the visible area (we were previously doing a
9179 IsVisible check, but that check is not enough since children nodes
9180 could be still visible). Fixes part of #325266.
9182 2007-09-21 Jonathan Pobst <monkey@jpobst.com>
9184 * TreeView.cs: Always select the first node when the TreeView gets
9185 focus if there is no currently selected node.
9188 2007-09-21 Jonathan Pobst <monkey@jpobst.com>
9190 * TreeView.cs: Do not raise BeforeSelect or AfterSelect when the
9191 node being selected is null.
9192 [Patch from Yves Bastide fixes bug #326858]
9194 2007-09-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9196 * TreeNode.cs: Add an internal ArePreviousNodesExpanded, to know
9197 whether all the parent nodes are expanded.
9198 * TreeNodeCollection.cs: When adding a new node an calling SetupNode,
9199 call RecalculateVisibleOrder if all previous nodes are expanded.
9200 Before that we were doing a IsVisible check, but sometimes the node
9201 is not in the visible area, but _should_already be ready, because of
9202 all previous nodes are expanded. Fixes #325259.
9204 2007-09-20 Jonathan Pobst <monkey@jpobst.com>
9206 * ToolStripSplitButton.cs: Call the ButtonClick event if the button
9207 portion of the item is clicked.
9209 2007-09-20 Jonathan Pobst <monkey@jpobst.com>
9211 * TextControl.cs: Do not tell the system to move the cursor if the
9212 textbox isn't focused. Fixes part of bug #322668.
9214 2007-09-20 Jonathan Pobst <monkey@jpobst.com>
9216 * ComboBox.cs: When there are no items, do not show the dropdown if
9217 the down arrow is clicked. Fixes part of bug #322668.
9219 2007-09-20 Jonathan Pobst <monkey@jpobst.com>
9221 * ToolStripComboBox.cs: Manually set the size of this control in the
9222 constructor, as it doesn't seem to be the same as DefaultSize.
9223 Fixes a failing monobuild test.
9225 2007-09-19 Jonathan Pobst <monkey@jpobst.com>
9227 * DateTimePicker.cs: If the user sets MinDate to DateTime.MinValue,
9228 change it to DateTimePicker.MinDateTime. [Fixes bug #326609]
9230 2007-09-19 Jonathan Pobst <monkey@jpobst.com>
9232 * Theme.cs: FileDialogs should be using DesktopDirectory instead of
9233 Desktop. This lets it work for people who have moved their desktops
9234 from the default location on windows. For people who have not, both
9235 values are the same, so it shouldn't hurt anything. [Fixes bug #325270]
9237 2007-09-18 Jonathan Pobst <monkey@jpobst.com>
9239 * ToolStripControlHostTest.cs: DefaultSize is based off hosted control,
9240 but when the base constructor sets this, the control is null. Set it
9241 again in the constructor. Fixes a failing monobuild test.
9243 2007-09-18 Jonathan Pobst <monkey@jpobst.com>
9245 * ToolStripDropDownItem.cs: Make sure Click and DropDownOpened events
9247 * ToolStripSplitButton.cs: Make sure MouseDown and MouseUp events get
9250 2007-09-18 Jonathan Pobst <monkey@jpobst.com>
9252 * ToolStrip.cs: Don't show tooltips for ToolStripTextBoxes, they
9253 will handle it themselves.
9254 * ToolStripItem.cs: When deciding what the text of a tooltip should
9255 be, use the Text property instead of the text field.
9256 * ToolStripTextBox.cs: Handle tooltips.
9257 [Fixes bugs #325417 and #325973]
9259 2007-09-18 Jonathan Pobst <monkey@jpobst.com>
9261 * ToolStripDropDownButton.cs: Only drop down overflow menu with a
9262 left click. Fixes the easy part of bug #325969.
9264 2007-09-18 Jonathan Pobst <monkey@jpobst.com>
9266 * ToolStrip.cs: Set AutoSizeMode back to GrowAndShrink to refix
9267 bug #325406, but set a minimum for StatusStrip to 22 to keep
9268 bug #325390 fixed. I think this minimum would have been figured
9269 up automatically if the grip was actually a ToolStripItem, but it
9272 2007-09-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9274 * ListView.cs: max_label_wrapping is now 30 pixels instead of 38,
9275 as this is apparently the actual value used by .Net. Also apply
9276 ItemPadding in Details view only, and decrease the general width padding,
9277 to have only the needed. This should fix #324340 in Windows too.
9279 2007-09-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9281 * ListViewItem.cs: Don't Invalidate item if parent is inside
9282 a BeginUpdate/EndUpdate block. This prevents to have differences
9283 between the ListView and items state, as well as avoid some exceptions
9285 * ListView.cs: Make 'updating' field internal.
9287 2007-09-17 Jonathan Pobst <monkey@jpobst.com>
9289 * ToolStripControlHost.cs: Realign control when ControlAlign changes.
9290 * ToolStripItem.cs: Use ImageScalingSize when calculating preferred
9291 size if appropriate.
9292 Fixes reopened bug #325414.
9294 2007-09-17 Jonathan Pobst <monkey@jpobst.com>
9296 * ToolStrip.cs: Set AutoSizeMode back to GrowOnly.
9297 * ToolStripItem.cs: Invalidate before and after our new autosize when
9299 Fixes reopened bug #325390.
9301 2007-09-17 Jonathan Pobst <monkey@jpobst.com>
9303 * ToolStripMenuItem.cs: Make sure we invalidate when clicked so
9304 mnemonics can be drawn or undrawn correctly. Fixes reopened bug
9307 2007-09-17 Jonathan Pobst <monkey@jpobst.com>
9309 * Control.cs: Do WM_CONTEXTMENU before OnMouseUp. [Fixes bug #325535]
9311 2007-09-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9313 * ColumnHeader.cs: When drawing column text, use EllipsisCharacter
9314 instead of EllipsisWord (by equistango at gmail.com). Fixes part of
9317 2007-09-14 Jonathan Pobst <monkey@jpobst.com>
9319 * ToolStrip.cs: Make ToolStrip selectable when TabStop = true. Find an
9320 item to select when the ToolStrip is selected.
9321 * ToolStripControlHost: Realign the control when the bounds or visibility
9323 * ToolStripItem.cs: When selected, if it's a control host, focus the control.
9324 * ToolStripOverflow.cs: When laying out the drop down, respect the item's
9326 * ToolStripTextBox.cs: OnPaintInternal should call base.OnPaintInternal, not
9327 base.OnPaint. Was causing text not to be drawn.
9329 2007-09-14 Jonathan Pobst <monkey@jpobst.com>
9331 * SplitterPanel.cs: Ignore attempts to set AutoSizeMode.
9333 2007-09-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9335 * TreeView.cs: When creating the label edit text box,
9336 set is initially to Visible = false. This is done to
9337 prevent a confusion in the layout which makes it to lose
9338 focus when shown the first time. Fixes part of #82592.
9340 2007-09-13 Andreia Gaita <avidigal@novell.com>
9342 * WebBrowserBase.cs: add FocusOption enumeration for finer focus control
9344 2007-09-13 Jonathan Pobst <monkey@jpobst.com>
9346 * ToolStrip.cs: Take Margin into account when calculating preferred
9347 size. Also, allow preferred size to get smaller than the explicit
9349 * ToolStripTextBox.cs: Don't change the GetPreferredSize implementation.
9350 First step towards fixing bug #82747.
9352 2007-09-13 Jonathan Pobst <monkey@jpobst.com>
9354 * TreeView.cs: Applied patch from latency@gmx.de to not paint the
9355 full row select background over the plus/minus glyph. Also, turn
9356 off the focus rectangle for full row select since MS doesn't seem
9357 to ever paint it. [Fixes bug #81839]
9359 2007-09-13 Jonathan Pobst <monkey@jpobst.com>
9361 * ToolStrip.cs: Don't FocusInternal if there is no selected item.
9362 This was causing keyboard opened dropdowns to lose focus.
9365 2007-09-13 Jonathan Pobst <monkey@jpobst.com>
9367 * Control.cs: If Rectangle.Empty is passed to Invalidate, use
9368 ClientRectangle instead. [Fixes bug #82838]
9370 2007-09-13 Jonathan Pobst <monkey@jpobst.com>
9372 * SplitContainer.cs: We can't reset Visible on every layout because
9373 someone may have set Visible = false explicitly on a SplitterPanel.
9374 Make sure when we switch orientation the SplitterDistance does not
9375 change. Fixes two failing tests.
9377 2007-09-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9379 * TreeView.cs: Use MeasureTextInternal instead of MeasureText in
9380 TextRenderer, since the latter is only available in 2.0.
9382 2007-09-13 Ivan N. Zlatev <contact@i-nz.net>
9384 * Cursor.cs: Fix Cursor.Current to apply Cursor.Default.
9385 * SplitContainer.cs: Implement FixedPanel layouting.
9387 2007-09-12 Andreia Gaita <avidigal@novell.com>
9389 * WebBrowserBase.cs: setup shutdown routine
9391 2007-09-12 Andreia Gaita <avidigal@novell.com>
9393 * Application.cs: Let keyboard events that are targetted
9394 to non-mwf windows hosted inside mwf (as in, webbrowser),
9395 propagate properly. Fixes keyboard handling on the webbrowser.
9397 2007-09-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9399 * ListView.cs: When handling MouseUp event and we are
9400 highligting a node with the mouse right button, don't trigger
9401 Before/AfterSelecting event, since we are not actually selecting
9404 2007-09-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9406 * TreeView.cs: When editing a node, modify the edit text box
9407 depending on the text length (as you are typing), like MS does.
9409 2007-09-12 Jonathan Pobst <monkey@jpobst.com>
9411 * ToolStrip.cs: Fixup preferred size calculations for vertical toolbars.
9412 Override GetPreferredSizeCore to perform calculations. Remove custom
9413 autosize logic. [Fixes bug #82739]
9415 2007-09-12 Jonathan Pobst <monkey@jpobst.com>
9417 * TextBoxBase.cs: Modified should default to false.
9419 2007-09-11 Jonathan Pobst <monkey@jpobst.com>
9421 * Control.cs: Update the anchoring distances even when layout is supspended.
9422 Patch provided by George fixes bug #82805.
9424 2007-09-11 Jonathan Pobst <monkey@jpobst.com>
9426 * Control.cs: Provide a setter for ExplicitHeight.
9427 * TextBoxBase.cs: Now that we have the implementation for explicit heights,
9428 remove the hacks in here for requested_height.
9431 2007-09-11 Jonathan Pobst <monkey@jpobst.com>
9433 * ScrollBar.cs: Fix an issue reported on the lists where setting a scrollbar's
9434 Maximum to lower that its current Value caused an ArgumentException by setting
9435 the Value to the new Maximum.
9437 2007-09-11 Jonathan Pobst <monkey@jpobst.com>
9439 * ThemeWin32Classic.cs: Math is hard! Fix some math so that the TrackBar
9440 handle moves to the closest tick when it is being dragged.
9443 2007-09-11 Jonathan Pobst <monkey@jpobst.com>
9445 * ToolStripManager.cs: When we have added MDI buttons onto a MenuStrip, we
9446 can't let them count as real items when calculating where to merge in the
9447 user's items. [Fixed bug #82786]
9449 2007-09-10 Jonathan Pobst <monkey@jpobst.com>
9451 * ToolStripMenuItem.cs: Add a parent type check so we don't crash on people
9452 who want to add a menu item directly onto a toolstrip.
9453 [Fixes bug #82775, part II]
9455 2007-09-10 Jonathan Pobst <monkey@jpobst.com>
9457 * StatusStrip.cs: Synchronize SetDisplayedItems with the ToolStrip version.
9458 * ToolStrip.cs: If a ToolStripItem set to not visible is added to a ToolStrip,
9459 don't set it to available.
9460 * ToolStripItem.cs: When Visible is changed, tell the owner to perform a layout.
9461 [Fixes bug #82727, part II]
9463 2007-09-10 Jonathan Pobst <monkey@jpobst.com>
9465 * StatusStrip.cs: Change item placement to None if not visible.
9466 * ToolStripItem.cs: Invalidate when InternalVisible changes.
9467 These should have been committed to fix 82723, but I missed them.
9469 2007-09-10 Jonathan Pobst <monkey@jpobst.com>
9471 * ToolStrip.cs: Make sure ItemClicked is raised before the ToolStripItem's
9472 Click, and that it is only called once.
9473 * ToolStripMenuItem.cs: Call OnClick even when there are dropdown items.
9474 * ToolStripDropDownItem.cs: Override HandleItemClick so dropdowns stay
9478 2007-09-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9480 * ColumnHeaderSample.cs: Use 5 pixels as extra height instead of 8
9482 * ThemeWin32Classic.cs: For the columns text, use 5 pixels as left padding
9483 instead of 8, just like above. Partially fixes #82734.
9485 2007-09-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9487 Patch by Ernesto Carrea <equistango at gmail.com>. Partially
9490 * ListView.cs: Remove extra space between rows in Details view (match
9492 * ThemeWin32Classic.cs: Header text should use ListView.Font, not
9495 2007-09-08 Gert Driesen <drieseng@users.sourceforge.net>
9497 * Application.cs: Modified ProductVersion to return value of
9498 AssemblyInformationVersion if available, and fallback to assembly
9499 version. Fixes bug #82746. Code formatting.
9500 * BindingSource.cs: Remove NIE from Dispose, and mark it MonoTODO
9503 2007-09-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9505 * Control.cs: When updating ZOrder for a child control,
9506 take into account the implicit ones (we need it in our controls
9507 using them). Fixes #82642.
9509 2007-09-07 Jonathan Pobst <monkey@jpobst.com>
9511 * ToolStripItem.cs: Add support for animated images.
9514 2007-09-07 Jonathan Pobst <monkey@jpobst.com>
9516 * ToolStrip.cs: Make sure we aren't drawing anything that isn't
9517 visible. [Fixes bug #82727]
9519 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
9521 * ToolStripItem.cs: If AutoSize changes the size of our item, invalidate
9522 so we repaint using the new size. [Fixes bug #82723]
9524 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
9526 * TreeView.cs: If ShowLines is true, we should ignore the FullRowSelect
9527 option. [Fixes bug #81779]
9529 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
9531 * TreeView.cs: Override HandleClick because the StandardClick style is
9532 set to false. According to MSDN (and testing), the click events should
9533 only be raised when the click occurs on a TreeNode. [Fixes bug #81739]
9535 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
9537 * ToolStripTextBox.cs: Invalidate our textbox when it loses focus, so
9538 the border will disappear. Fixes reopened #82653.
9540 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
9542 * Control.cs: If the control is autosize, and its preferred size changes
9543 when it lays out its children, tell its parent so it can be re-layed out.
9544 Fixing some of the fallout from r85433.
9546 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
9548 * ThemeWin32Classic.cs: Fix a NRE caused by r85427 because RadioButton
9549 and CheckBox share some code.
9551 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
9553 * TrackBar.cs: Only call OnScroll if we actually changed the Value of
9554 the TrackBar, not every mouse move. [Fixed bug #82718]
9556 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
9558 * ThemeWin32Classic.cs: Allow a CheckBox to be rendered like a Button
9559 under 2.0 rendering. [Fixes bug #82657]
9561 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
9563 * TreeView.cs: If we found a TreeNode to display a context menu, but
9564 it doesn't have one to show, let the TreeView display its menu
9565 instead. [Fixes bug #82680]
9567 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
9569 * ToolStripTextBox.cs: TextBox no longer call OnPaint, we need to use
9570 OnPaintInternal instead. Give the internal TextBox a Border property
9571 so it can draw itself more correctly. [Fixes bug #82653]
9573 2007-09-06 Zoltan Varga <vargaz@gmail.com>
9575 * HtmlHistory.cs HtmlWindow.cs HtmlWindowCollection.cs ListBindingHelper.cs WindowsFormsSection.cs WindowsFormsSynchronizationContext.cs: Stubs for missing 2.0 classes.
9577 2007-09-05 Everaldo Canuto <everaldo@simios.org>
9579 * ComboBox.cs: Adjust combobox button state to reflect current state when
9580 back to enabled = true. Fixes first issue of #82654.
9582 2007-09-05 Everaldo Canuto <everaldo@simios.org>
9584 * Control.cs: Fix last patch regression, prevent forms to update zorder when
9585 setting visible property.
9587 2007-09-05 Everaldo Canuto <everaldo@simios.org>
9589 * Control.cs: Update zorder after control creation in SetVisibleCore, it
9590 fix zorder for controls initially created as non visible. Fixes #82667.
9592 2007-09-04 Everaldo Canuto <everaldo@simios.org>
9594 * ThemeWin32Classic.cs: Adjust checkbox light color to ControlLightLight to
9595 mimic win32 look. Fixes #82656.
9597 2007-09-01 Zoltan Varga <vargaz@gmail.com>
9599 * FileDialogCustomPlace.cs FileDialogCustomPlacesCollection.cs:
9600 Stubs for new net 3.5 classes.
9602 2007-08-31 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9604 * ListViewItem.cs: In ListViewItemCollection operations calculate
9605 Layout for owner as well as invalidate it. Fixes part of #82642.
9607 2007-08-31 Jonathan Pobst <monkey@jpobst.com>
9609 * ToolStripItem.cs: Take Parent/Owner's Enabled state in to account
9610 when returning Enabled. [Fixes bug #82651]
9612 2007-08-30 Everaldo Canuto <everaldo@simios.org>
9614 * ToolBar.cs: Fix button size for non flat toolbars. Fixes #82368.
9616 2007-08-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9618 * ListView.cs: Put item padding info in a single place
9619 (Theme.ListViewItemPaddingWidth) to have working AutoResize on
9621 * ThemeWin32Classic.cs:
9622 * Theme.cs: Likewise.
9624 2007-08-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9626 * ListView.cs: When a ListViewSubItem instance is invalidated,
9627 invoke Invalidate on parent ListViewItem, not parent ListView.
9630 2007-08-30 Jonathan Pobst <monkey@jpobst.com>
9632 * ListView.cs, ListViewItem.cs: corcompare stuffs.
9634 2007-08-30 Jonathan Pobst <monkey@jpobst.com>
9636 * BindingMemberInfo.cs: Implement == and != operators.
9638 2007-08-30 Jonathan Pobst <monkey@jpobst.com>
9640 * HtmlElementEventArgs.cs: Implement properties.
9642 2007-08-29 Jonathan Pobst <monkey@jpobst.com>
9644 * HtmlElementErrorEventArgs.cs, HtmlElementErrorEventHandler.cs: Added.
9646 2007-08-29 Jonathan Pobst <monkey@jpobst.com>
9648 * TabControl.cs: I was looking into the MonoTODO on TabPageCollection.
9649 Add (string,string,string) to implement the imagekey. It turns out, we
9650 use the requested imagekey whereas .Net does not. So I broke ours to match
9653 2007-08-29 Jonathan Pobst <monkey@jpobst.com>
9655 * Form.cs, UserControl.cs: Override ValidateChildren, AutoValidate.
9657 2007-08-29 Jonathan Pobst <monkey@jpobst.com>
9659 * ContainerControl.cs: Implement ValidateChildren and new Validate overload.
9661 2007-08-29 Gert Driesen <drieseng@users.sourceforge.net>
9663 * FolderBrowserDialog.cs: Set Tag of newly created node, and keep it
9664 up-to-date. Fixes bug #82618.
9666 2007-08-29 Everaldo Canuto <everaldo@simios.org>
9668 * TextBoxBase.cs: Call CalculateDocument after changes Lines property to
9669 reflect document changes. Fixes #82367.
9671 2007-08-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9673 * ListView.cs: Add/fix some override differences between 1.1 and 2.0,
9674 as well as add new ones. This should make work the BackgroundImage
9675 property for ListView again.
9677 2007-08-28 Jonathan Pobst <monkey@jpobst.com>
9679 * DataGrid.cs, DataGridViewButtonColumn.cs, DataGridViewCheckBoxColumn.cs,
9680 DataGridViewComboBoxColumn.cs, DataGridViewImageColumn.cs, DataGridViewLinkColumn.cs,
9681 DataGridViewTextBoxColumn.cs, ToolTip.cs: corcompare stuffs.
9683 2007-08-28 Jonathan Pobst <monkey@jpobst.com>
9685 * Control.cs, XPlatUI.cs, XPlatUIDriver.cs, XPlatUIWin32.cs: Implement
9688 2007-08-28 Jonathan Pobst <monkey@jpobst.com>
9690 * Cursor.cs: Add HotSpot, hook into XPlatUI.GetCursorInfo.
9691 * XPlatUIWin32.cs: Implement hotspot lookup in GetCursorInfo.
9693 2007-08-28 Jonathan Pobst <monkey@jpobst.com>
9695 * RadioButton.cs: Use 2.0 rendering. Use base implementation of TextAlign.
9696 * Theme.cs, ThemeWin32Classic.cs: Implement 2.0 rendering for RadioButton.
9698 2007-08-27 Ivan N. Zlatev <contact@i-nz.net>
9700 * CursorConverter.cs: Implement conversion to InstanceDescriptor.
9702 2007-08-27 Ivan N. Zlatev <contact@i-nz.net>
9704 * GridEntry.cs: Implement GetService.
9706 2007-08-27 Jonathan Pobst <monkey@jpobst.com>
9708 * LabelEditTextBox.cs, TreeView.cs: After hiding the textbox used
9709 for label editting, make sure we focus back on the TreeView.
9712 2007-08-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9714 * ListView.cs: Add some 2.0 overrides.
9716 2007-08-27 Everaldo Canuto <ecanuto@novell.com>
9718 * Form.cs: Uses opacity var instead of Opacity property in CreateHandle
9719 because getter dont returns right value before handle creation. Thanks
9720 to George. Fixes #82569.
9722 2007-08-27 Everaldo Canuto <ecanuto@novell.com>
9724 * Theme.cs: Revert last patch, it causes error under win32.
9726 2007-08-27 Everaldo Canuto <ecanuto@novell.com>
9728 * Theme.cs: Uses Environment.SpecialFolder.DesktopDirectory instead of
9729 Environment.SpecialFolder.Desktop in Places method, Desktop returns the
9730 logical Desktop rather than the physical file system location. Fixes #82603.
9732 2007-08-26 Everaldo Canuto <ecanuto@novell.com>
9734 * MessageBox.cs: Add clipboard copy (ctrl+c) to messagebox. Thanks Andy Hume
9735 for the patch. Fixes #82568.
9737 2007-08-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9739 * ListView.cs: Add a pair of missing 2.0 ListViewItemCollection.Insert
9742 2007-08-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9744 * ListViewInsertionMark.cs: New stubbed class.
9746 2007-08-25 Gert Driesen <drieseng@users.sourceforge.net>
9748 * FolderBrowserDialog.cs: When adding folder, immediately create the
9749 directory with temporary name and rename the directory when editing
9750 finishes. This matches MS. Ensure the node for the new folder is
9751 selected and LabelEdit is disabled, when editing is either finished
9754 2007-08-25 Gert Driesen <drieseng@users.sourceforge.net>
9756 * TreeView.cs: When editing label of node, ensure node is visible.
9758 2007-08-25 Ivan N. Zlatev <contact@i-nz.net>
9760 * PropertyGridView.cs: Set the value only if it has changed.
9762 2007-08-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9764 * ListView.cs: Some more code refactoring to add support sorting
9765 with groups (now for Details view). Remove unused code also.
9767 2007-08-24 Jonathan Pobst <monkey@jpobst.com>
9769 * NodeLabelEditEventArgs.cs: EndEdit immediately when CancelEdit is called.
9770 Not a big fan of reacting immediately to a field in an EventArg, but that's
9771 the way it's done. (This is part of the previous commit that got left out.)
9773 2007-08-25 Gert Driesen <drieseng@users.sourceforge.net>
9775 * FolderBrowserDialog.cs: Removed need for separate description field.
9776 Replaced "" with string.Empty. Fixed tabindex. Ensure OK button
9777 has focus when dialog box is displayed again, regardless of what
9778 button was pressed the previous time. Set RootFolder and SelectedPath
9779 each time dialog box is displayed. This ensures the treeview is
9780 refreshed, and fixes bug #82579. Do no hide selected node in TreeView
9781 when it does not have focus. Added support for more special folders.
9783 2007-08-24 Jonathan Pobst <monkey@jpobst.com>
9785 * TreeView.cs: Create a CancelEdit method. Clone the edit_args in EndEdit
9786 before calling AfterLabelEdit. If the user calls BeginEdit in that event,
9787 it resets the edit_args.
9788 * TreeNode.cs: Call CancelEdit if the user passes cancel = true to EndEdit.
9791 2007-08-24 Gert Driesen <drieseng@users.sourceforge.net>
9793 * FolderBrowserDialog.cs: Modifies form caption and text of new folder
9794 button to match MS. Provide more meaningful exception message for
9795 invalid RootFolder value. Use zero-length string when SelectedPath
9796 is set to null. Allow non-rooted paths in SelectedPath, but ignore
9797 them in FolderBrowserTreeView. Allow folders to be created in
9798 RootFolder. Fixes bug #82576.
9800 2007-08-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9802 * ListView.cs: Correctly compute the layout_ht (height) when using groups,
9803 since we need to take into account the group headers and the margin
9805 * ListViewGroup.cs: Add a rows field to store the number of rows per
9808 2007-08-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
9810 * DateTimePicker.cs: The MS' MTB has a really stupid year formatting.
9811 Anyways, let's just follow the lead.
9813 2007-08-24 Jonathan Pobst <monkey@jpobst.com>
9815 * CheckBox.cs: Set the AutoSizeMode to GrowAndShrink.
9816 * Form.cs, GroupBox.cs: Don't skip Right or Bottom anchored
9817 controls in GetPreferredSizeCore.
9818 * ThemeWin32Classic.cs: Tweak text drawing of CheckBoxes.
9821 2007-08-24 Jonathan Pobst <monkey@jpobst.com>
9823 * PrintDialog.cs: Need to instantiate the form variable here too.
9825 2007-08-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9827 * ListView.cs: Do some reorganization to support sorting in groups,
9828 by doing the layout sequentially in ListView.Items. Also add support
9829 for the Default Group, which should be available for items with no
9831 * ListViewGroup.cs: Add support for DefaultGroup. Include new members
9832 for storing layout info also.
9833 * ListViewGroupCollection.cs: Add a DefaultGroup as part of the
9834 collection, as well as providing internal members to do a traversal
9835 including the default group (needed when doing layout/drawing).
9836 * ThemeWin32Classic.cs: When drawing group headers use internal
9837 ListViewGroupCollection members to take into account the default
9840 2007-08-23 George Giolfan <georgegiolfan@yahoo.com>
9842 * FlowLayoutPanel.cs: Add GetPreferredSizeCore. [Fixes bug #82537]
9844 2007-08-23 Jonathan Pobst <monkey@jpobst.com>
9846 * TreeView.cs: IsInputKey: don't ask for any keys if the handle hasn't
9847 been created. If handle is created, we want arror keys. If we are editing
9848 a node, we want things like enter, esc, home, end, page up, page down.
9849 Allows Esc to work for FolderBrowserDialog.
9851 2007-08-23 Jonathan Pobst <monkey@jpobst.com>
9853 * ColorDialog.cs, FontDialog.cs: Set the form's CancelButton so that
9854 they close when ESC is pressed. Thanks Andy!
9856 2007-08-23 Jonathan Pobst <monkey@jpobst.com>
9858 * CommonDialog.cs: Do not instantiate form, leave that for derived classes.
9859 This way we can tell if this is a CommonDialog provided with mono, or one
9860 that is being implemented outside by a developer. If it is an external one,
9861 the developer is responsible for showing their own form. We were showing
9862 our blank form after the developer showed his.
9863 * ColorDialog.cs, FileDialog.cs, FolderBrowserDialog.cs, FontDialog.cs,
9864 PageSetupDialog.cs: Instantiate form variable in our constructor.
9867 2007-08-23 Jonathan Pobst <monkey@jpobst.com>
9869 * ListBox.cs, ListView.cs, TreeView.cs: Override IsInputCharInternal
9870 and always return true. [Fixes bug #81616]
9872 2007-08-23 Jonathan Pobst <monkey@jpobst.com>
9874 * TextBoxBase.cs: Allow 2.0 AutoSize to change the height of the
9875 TextBox. [Fixes bug #82549]
9877 2007-08-23 Gert Driesen <drieseng@users.sourceforge.net>
9879 * FileDialog.cs: When Save/Open is clicked and no filename is selected
9880 or entered then do not close the dialog. Fixes bug #82539. Removed
9883 2007-08-22 Everaldo Canuto <ecanuto@novell.com>
9885 * FileDialog.cs: Create UpdateRecentFiles and move the recent files refresh
9886 code to this method. It is calling every time filter changes. This method
9887 will help to fix the bug #80887.
9889 2007-08-22 Jonathan Pobst <monkey@jpobst.com>
9891 * CheckBox.cs: Implement AutoSize calculation.
9893 2007-08-22 Jonathan Pobst <monkey@jpobst.com>
9895 * CheckBox.cs: Use new 2.0 rendering for 2.0.
9896 * Theme.cs: Method declarations for 2.0 rendering path.
9897 * ThemeWin32Classic.cs: 2.0 rendering implementation for CheckBox.
9899 2007-08-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9901 * ListViewGroupCollection.cs: Fix a typo of the previous patch.
9903 2007-08-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9905 * ListViewGroupCollection.cs: Implement AddRange the right way, to
9906 only call Redraw on the parent one time.
9908 2007-08-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
9910 * DataGridViewRowHeaderCell.cs, DataGridViewColumnHeaderCell.cs: Implemented
9911 GetClipboardContent.
9912 * DataGridViewCell.cs: Implemented GetClipboardContent,
9913 GetEditedFormattedValue, GetFormattedValue.
9914 * DataGridView.cs: Implemented GetClipboardContent, TopLeftHeaderCell.
9916 2007-08-21 Jonathan Pobst <monkey@jpobst.com>
9918 * TableLayoutStyleCollection.cs: corcompare fix.
9920 2007-08-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
9922 * DataObject.cs: Implemented retrieval of convertible / not convertible
9925 2007-08-21 Jonathan Pobst <monkey@jpobst.com>
9927 * ToolStripItem.cs: When changing the item's text, invalidate before we resize
9928 ourselves. This ensures the entire old bounds are repainted, in case our new
9929 size is smaller. [Fixes bug #82518]
9931 2007-08-20 Everaldo Canuto <ecanuto@novell.com>
9933 * XplatUIX11.cs: Apply patch from #81588, it makes use of PointerMotionHintMask
9934 flag to make fast handle of mouse events, without this the mouse move is
9935 handled in some manner, whether it is a mouse move or not. Fixes #81588.
9937 2007-08-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9939 * ListView.cs: When doing layout calculations don't use a ref
9940 param to keep the current item; instead use its Index value (this
9941 is specially important when doing the layout with Groups
9942 and Items being sparse). Also don't take into account items added to
9943 the Group but not yet added to the main ListView.Items collection.
9945 2007-08-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9947 * ListViewGroupCollection.cs: Forgot to mimic an issue
9948 in the indexer (don't assign the ListView owner for new values).
9950 2007-08-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9952 * ListViewGroupCollection.cs: Make the string indexer use
9953 the int based indexer to re-use code, instead of duplicate the code.
9954 Also Redraw as needed and take into account null values.
9956 2007-08-20 Jonathan Pobst <monkey@jpobst.com>
9958 * StatusStrip.cs: Make sure the item's parent gets set in SetDisplayedItems.
9961 2007-08-20 Jonathan Pobst <monkey@jpobst.com>
9963 * ToolStrip.cs: Add some logic to un-focus controls in ToolStripControlHosts
9964 when other buttons are clicked or navigated to.
9966 2007-08-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
9968 * XplatUIX11.cs: Treat toolwindows as if they had no window manager, since
9969 it's XplatUIX11 that attaches them.
9971 2007-08-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
9973 * DataGridView.cs: If a column has been added, recreate the editing row.
9976 2007-08-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
9978 * TextControl.cs: Use Math.Max instead of Math.Min when deciding the length
9979 of the tag to draw. Makes disappearing text show up again.
9981 2007-08-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
9983 * StatusBar.cs: Take into account any icons when a panel has AutoSize =
9984 Contents. Fixes #82487.
9986 2007-08-19 Andreia Gaita <avidigal@novell.com>
9988 * Added HtmlElement.cs, HtmlElementCollection.cs,
9989 HtmlElementEventArgs.cs, HtmlElementEventHandler.cs
9991 2007-08-19 Andreia Gaita <avidigal@novell.com>
9993 * BindingSource.cs: Implement this, dispose and getenumerator.
9994 * DataGridViewRowCollection.cs: Move the InvalidOperationException
9995 out of AddInternal, throw it only on public Add calls. The
9996 UsingWebBrowser sample was blowing up with this when setting the
9997 DataSource after adding DataBindings, so it's likely that .net
9998 only throws this exception when Add is called directly.
10000 * ToolStripControlHost.cs: Return the hosted control's text
10001 property, and not the ToolStripItem one (it would always return
10002 the initial value).
10004 * HtmlDocument.cs: Implement GetElementById and All
10005 * WebBrowser.cs: Remove exception on set_DocumentStream.
10007 2007-08-19 Everaldo Canuto <ecanuto@novell.com>
10009 * Form.cs: Fix the max and min value for opacity (0~1).
10011 2007-08-19 Everaldo Canuto <ecanuto@novell.com>
10014 * DataGridTableStyle.cs: Default header font is now null, on getter it
10015 returns datagrid font when is null. On setter permits null.
10018 - When ResetHeaderFont set header font to null.
10019 - On EndInit set grid_style.DataGrid.
10021 2007-08-19 Everaldo Canuto <ecanuto@novell.com>
10023 * TabControl.cs: Fix regression in default padding x.
10025 2007-08-19 Everaldo Canuto <ecanuto@novell.com>
10027 * TabControl.cs: Fix tab page text area removing padding. Fixes #82471.
10029 2007-08-19 Everaldo Canuto <ecanuto@novell.com>
10031 * TabControl.cs: Fix first tab drawing, when selected it must have x = 0
10032 not 2. Fixes #82229.
10034 2007-08-18 Everaldo Canuto <ecanuto@novell.com>
10036 * TabControl.cs: Fix tab size when image height is less than text height.
10037 Partially fixes #81837.
10039 2007-08-18 Everaldo Canuto <ecanuto@novell.com>
10041 * Form.cs: Add WS_EX_CONTROLPARENT to forms to make it selectable using
10042 "alt + tab". It works only for Win32, for X11 theres no way to remove window
10043 from taskbar and keep it on "alt_tab". Fixes #81722.
10045 2007-08-18 Everaldo Canuto <ecanuto@novell.com>
10047 * XplatUIX11.cs: Apply patch from Jurek Bartuszek to fix DrawReversibleFrame
10048 and DrawReversibleLine, also apply same behavior to FillReversibleRectangle.
10049 Fixes #80877 and #79418.
10051 2007-08-18 Everaldo Canuto <ecanuto@novell.com>
10053 * MenuAPI.cs: Fix popup menu position when the size is larger than distance
10054 between position and one of the screen borders. Fixes #82349.
10056 2007-08-18 Everaldo Canuto <ecanuto@novell.com>
10058 * MessageBox.cs: When there is no form that invoked the MessageBox, shows
10059 the MessageBox in the taskbar. Fixes #82457.
10061 2007-08-18 Everaldo Canuto <ecanuto@novell.com>
10063 * MessageBox.cs: Fix form size when icon is set and text height is bigger
10064 than icon. Fixes #82468.
10066 2007-08-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
10068 * ThemeWin32Classic.cs: A FixedToolWindow has border size 3.
10069 * InternalWindowManager.cs: Change HandleCalcSize to return a boolean value
10070 if handled or not. Implement WM_NCCALCSIZE for WParam == 0 as well.
10071 Refactored HandleNCCalcSize somewhat to avoid code duplication.
10072 * Form.cs: Add is_clientsize_set, set in set_ClientSize, used by
10073 FormBorderStyle to decide if we're calculating a new size from the
10074 client size or not. CreateParams: Don't fake tool windows, only the X11
10075 backend manages toolwindows manually.
10077 2007-08-17 Jonathan Pobst <monkey@jpobst.com>
10079 * Form.cs: Only reset is_visible if !IsDisposed to prevent an
10080 ObjectDisposedException.
10082 2007-08-17 Jonathan Pobst <monkey@jpobst.com>
10084 * Form.cs: Reset is_visible back to true after OnLoad. Setting this
10085 in OnLoad should not have any effect. [Fixes bug #82470]
10087 2007-08-17 Jonathan Pobst <monkey@jpobst.com>
10089 * ToolTip.cs: Add a hack to ToolTipWindow so it will still size and
10090 paint for controls that create their own ToolTipWindow instead of
10091 going through ToolTip.
10093 2007-08-17 Jonathan Pobst <monkey@jpobst.com>
10095 * ToolTip.cs: Make Hide internal instead of public to match MS API.
10097 2007-08-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10099 * ListViewGroupCollection.cs: Use generic List instead of an
10100 ArrayList, since this collection is 2.0 only.
10102 2007-08-17 Jeffrey Stedfast <fejj@novell.com>
10104 * ToolTip.cs (Hide): Made public to make the build work (should
10105 this not be public?).
10107 2007-08-17 Jonathan Pobst <monkey@jpobst.com>
10109 * ToolBar.cs, ToolStrip.cs, TreeView.cs: Use a ToolTip instead of a
10111 * ToolTip.cs: Add an internal Visible property to facilitate transition.
10113 2007-08-17 Jonathan Pobst <monkey@jpobst.com>
10115 * DrawToolTipEventArgs.cs, DrawToolTipEventHandler.cs, PopupEventArgs.cs,
10116 PopupEventHandler.cs: Make these internal for 1.1.
10117 * ThemeClearlooks.cs, ThemeWin32Classic.cs: Use TextRenderer, and modify to not
10118 use ToolTipWindow internals.
10119 * ToolTip.cs: Add 2.0 modal Show methods. Had to move a lot of stuff around to
10120 support this. A lot of stuff in the ToolTipWindow got moved to the ToolTip.
10122 2007-08-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
10124 * X11Dnd.cs: Add a null check.
10126 2007-08-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
10128 * X11Dnd.cs: MwfWindow: Try to load the control directly from the handle if
10129 nothing else succeeds. Fixes #82453.
10131 2007-08-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
10133 * XplatUIWin32.cs: PaintEventStart: validate the entire source client
10134 rectangle if we're painting to another window than the one the paint
10135 message was generated on. Simplify the code somewhat, which makes
10136 PaintEventEnd also simpler.
10138 2007-08-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
10140 * Control.cs: When changing parent of a form, let the form decide whether
10141 XplatUI.SetParent should be called or not.
10142 * Form.cs: ChangingParent: only call XplatUI.SetParent if we're not
10143 recreating the handle. If the new parent's handle isn't created, don't
10144 recreate our handle, just destroy it. CreateParams: Check if the
10145 parent's handle is created before fetching it.
10147 2007-08-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
10149 * Control.cs, Form.cs, InternalWindowManager.cs, MainMenu.cs, MdiClient.cs:
10150 Update calls to PaintEventStart/End to take a Message argument.
10151 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Update PaintEventStart/End to
10152 take a Message argument.
10153 * XplatUIWin32.cs, XplatUIX11.cs: Update PaintEventStart/End to take a
10154 Message argument, and handle the case where we don't paint to the window
10155 for which the paint message was generated.
10157 2007-08-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
10159 * XplatUIWin32.cs: Don't call Win32GetLastError directly, use
10160 Marshal.GetLastWin32Error. Plug nasty memory leak in
10161 PaintEventStart/End, we were creating a DC we weren't releasing.
10163 2007-08-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10165 * ListView.cs: Add Groups support in Details view. Also have a small
10166 method to do the layout of the group header. Don't use a separate
10167 method to do the groups calculation in Icons view, since our methods
10168 are now a little simpler.
10169 * ListViewGroup.cs: Use the more accurate `HeaderBounds' name than
10171 * ThemeWin32Classic.cs: Likewise.
10173 2007-08-16 Jonathan Pobst <monkey@jpobst.com>
10175 * Application.cs: Add FilterMessage method and rework our message loop
10178 2007-08-16 Jonathan Pobst <monkey@jpobst.com>
10180 * Application.cs: Add some methods and stub a few methods that are
10181 pretty much never used.
10183 2007-08-15 Jonathan Pobst <monkey@jpobst.com>
10185 * TreeNode.cs: Add some serialization methods.
10187 2007-08-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10189 * ListView.cs: In ListViewItemCollection have a
10190 'is_main_collection' field to not modify ListViewItem.ListView
10191 when using it as ListViewGroup.Items (and not ListView.Items)
10192 and also don't modify selection state (.Net behaviour).
10193 Instead, set group for items contained in a ListViewGroup.Items collection.
10194 * ListViewItem.cs: Simplify some code in Group setter.
10195 * ListViewGroup.cs: use the new .ctor to pass the current instance
10196 to the ItemsCollection.
10197 * ListViewGroup.cs: Set the ListView property for ListViewGroup
10198 instances when adding/removing. Also make Remove use RemoveAt, which
10199 should perform better.
10201 2007-08-14 Jonathan Pobst <monkey@jpobst.com>
10203 * Message.cs, TabControl.cs, TextBox.cs, TextBoxBase.cs: Hide some 2.0 API
10204 that crept into the 1.1 profile.
10206 2007-08-14 Jonathan Pobst <monkey@jpobst.com>
10208 * ToolBarButton.cs: Implement ImageKey.
10210 2007-08-14 Jonathan Pobst <monkey@jpobst.com>
10212 * ToolBar.cs: Implement ScaleControl/ScaleCore.
10214 2007-08-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
10216 * PictureBox.cs: OnAnimateImage/UpdateAnimateImage: Check if handle is still
10217 created, it might have gotten destroyed since we last checked. Fixes
10220 2007-08-11 Jonathan Pobst <monkey@jpobst.com>
10222 * ToolTip.cs: Remove mouse in control check from mouseleave handler so
10223 tooltip will hide when mouse is moved off the control.
10226 2007-08-11 Andreia Gaita <avidigal@novell.com>
10228 * WebBrowserBase.cs, WebBrowser.cs: add implementation
10229 using Mono.Mozilla for loading and navigating webcontrol
10231 The initial implementation was done on
10232 /trunk/mozembed/tests/browser , and copied here.
10234 2007-08-11 Gert Driesen <drieseng@users.sourceforge.net>
10236 * ThemeWin32Classic.cs: On 2.0 profile, use ForeColor and BackColor of
10237 ToolTipWindow for drawing the tooltip. Fixes bug #82408.
10239 2007-08-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
10241 * DataGridView.cs: Add support for an editing row. Fixes #82226.
10242 RowTemplateFull: throw an exception if a column doesn't have a template.
10243 * DataGridViewRowCollection.cs: AddInternal: if there are any editing rows,
10244 add the row just before it.
10245 * DataGridViewTextBoxCell.cs: Don't paint cells which are in edit mode as
10247 * DataGridViewSelectedRowCollection.cs: Don't return the editing row. Add a
10248 DataGridView field to be able to reach the grid's editing row.
10250 2007-08-10 Jonathan Pobst <monkey@jpobst.com>
10252 * ToolTip.cs: If the control's handle hasn't been created when it has a
10253 tooltip set on it, don't check to see if we need to show the tooltip. This
10254 check was causing the control's handle to be created.
10257 2007-08-10 Jonathan Pobst <monkey@jpobst.com>
10259 * TextBoxBase.cs: Fix SelectionLength when no text selected to match MS:
10261 Handle Not Created -1 0
10265 2007-08-10 Jonathan Pobst <monkey@jpobst.com>
10267 * ToolTip.cs: Hide the tooltip if the control is clicked to match MS behavior.
10270 2007-08-09 Jonathan Pobst <monkey@jpobst.com>
10272 * DrawToolTipEventArgs.cs: Don't dispose a brush we got from the respool.
10273 * ToolTip.cs: Implement some properties and owner draw.
10275 2007-08-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
10277 * DataGridView.cs: OnPaint: don't set scrollbar visibility to false then
10278 show them again, since setting visibility causes a paint, causing an
10279 endless loop (instead use a temporary and set it all when it's known if
10280 they should be shown or not). Fixes #79265.
10282 2007-08-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
10284 * DataGridView.cs: Only do a full column/row selection if a header was
10285 clicked and we're in Column/RowHeader selection mode. If shift and ctrl
10286 isn't pressed, deselect everything before selecting something.
10288 2007-08-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
10290 * DataGridView.cs: Fix SelectedRows and SelectedColumns to match MS
10291 behaviour according to bug #81075 - they are returned in the order they
10292 are selected. Fix HitTest to check if the point is within any of the
10293 headers. Allow for row/column selection when in ColumnHeader or
10294 RowHeader selection mode. Add SetSelected[Column|Row]CoreInternal for
10295 the row and column to call when their selected state changes, and
10296 updated selected_[rows|columns] whenever SetSelected* is called.
10297 * DataGridViewBand.cs: Initialize isRow correctly. Call
10298 SetSelected[Row|Column]CoreInternal when the selected state changes, and
10299 add a SelectedInternal to avoid StackOverflows.
10300 * DataGridViewColumn.cs, DataGridViewRow.cs: If DGV is ReadOnly, we're also
10301 ReadOnly no matter what.
10302 * DataGridViewSelectedColumnCollection.cs,
10303 DataGridViewSelectedRowCollection.cs: Add an InternalAddRange that adds
10304 the items in reverse order (just as MS does...)
10306 2007-08-09 Jonathan Pobst <monkey@jpobst.com>
10308 * Application.cs: Only release menustrips if Alt (MenuKey) is pressed by
10309 itself, not part of a mnemonic. [Fixes bug #82378]
10311 2007-08-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
10313 * DataGridView.cs: BeginEdit: don't allow editing of readonly cells.
10314 * DataGridViewCell.cs: Implement ReadOnly better: the cell is ReadOnly if
10315 the DGV, the column, the row, or the cell itself is readonly.
10317 2007-08-09 Gert Driesen <drieseng@users.sourceforge.net>
10319 * ThemeNice.cs: Use XplatUI.RunningOnUnix instead of checking
10320 OSVersion.Platform.
10321 * FileDialog.cs: Same.
10322 * TextRendered.cs: Same.
10323 * FolderBrowserDialog.cs: Same.
10324 * TextBoxBase.cs: Same.
10325 * Application.cs: Same.
10326 * Cursors.cs: Same.
10327 * ThemeClearLooks.cs: Same.
10329 2007-08-09 Gert Driesen <drieseng@users.sourceforge.net>
10331 * XplatUI.cs: Added RunningOnUnix property to be used by controls
10332 instead of duplicating these checks everywhere.
10333 * FileDialog.cs: Use case-insensitive comparison for populating the
10334 DirComboBox when not running on unix. Fixes bug #82385.
10335 * OpenFileDialog.cs: to match MS, change label of DirComboBox to
10338 2007-08-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
10340 * DataGridView.cs: SelectedRows: we need to check if selectionMode is
10341 FullRowSelect (not FullColumnSelect). Fixes #81075. Implemented
10342 BeginEdit, EndEdit, SetSelected<Cell|Row|Column>Core. Implemented row,
10343 cell and column selection with ctrl and shift pressed. Call the correct
10344 BeginEdit/EndEdit whenever we start/end editing. Move painting code to
10345 the corresponding virtual method (PaintBackground to paint background,
10347 * DataGridViewCell.cs: Implement Selected correctly, we're selected if
10348 either the column, row or the cell itself is selected.
10349 * DataGridViewRowCollection.cs: Use DGV.OnRowsAddedInternal instead of
10351 * DataGridViewRow.cs: Moved some of the painting code from DataGridView
10352 here. When the row is selected, don't select all cells. Each cell now
10353 queries the row to see if the row is selected.
10355 2007-08-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
10357 * DataGridViewColumn.cs: Throw if the SortMode conflicts with DataGridView's
10360 2007-08-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10362 * ListView.cs: In ListViewItemsCollection check that owner is
10363 not null before trying to access it (this happens quite often
10364 using Groups). Also don't duplicate calls by calling CollectionChanged
10367 2007-08-08 Jonathan Pobst <monkey@jpobst.com>
10369 * ToolStrip.cs: Record if we were activated by mouse or keyboard. Redraw
10370 when we are dismissed to clear keyboard mnemonics.
10371 * MenuStrip.cs, ToolStripDropDown.cs, ToolStripItem.cs,
10372 ToolStripMenuItem.cs: Record if we were activated by mouse or keyboard.
10373 * ToolStripItemTextRenderEventArgs.cs: Draw mnemonic underlines if menu
10374 was activated by keyboard or the OS tells us to always draw them.
10375 * ToolStripManager.cs: Setup storage for activated by mouse or keyboard.
10376 [Fixes bugs #82376, #82377]
10378 2007-08-08 Jonathan Pobst <monkey@jpobst.com>
10380 * Control.cs: If no one accepts a mnemonic, let the MenuStrip have a
10381 shot at having it because Alt was pressed.
10382 * MenuStrip.cs: When handling Alt, don't select a SystemMenuItem, select
10383 the first real menu item.
10384 * ToolStrip.cs: Don't crash when looking for a ToolStripItem to handle
10385 a mnemonic if Text is null.
10388 2007-08-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10390 * ListView.cs: In ListViewItemCollection.AddItem, don't do a linear
10391 search do check whether the item is already contained in the
10392 collection or not; instead check if the owner of the item is the same
10393 as ours. Also, remove a redundant check in the same method.
10395 2007-08-08 Jonathan Pobst <monkey@jpobst.com>
10397 * Control.cs: Allow the clip region to be set back to null.
10398 * XplatUIWin32.cs: If we are sent a null clip region, use IntPtr.Zero.
10399 [Fixes button still showing up in bug #82370 when Show Through is turned off]
10401 2007-08-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
10403 * GridEntry.cs: Add a null check.
10404 * PropertyGrid.cs: When checking for existing grid entries, ignore category
10405 entries. Fixes #82297.
10407 2007-08-07 Jonathan Pobst <monkey@jpobst.com>
10409 * OwnerDrawPropertyBag.cs: Make the serialization constructor protected
10412 2007-08-07 Jonathan Pobst <monkey@jpobst.com>
10414 * ListBox.cs: Implement ScaleControl.
10416 2007-08-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
10418 * Form.cs: Add a few ActiveMenu null checks. ActiveMenu might be null if we
10420 * MdiWindowManager.cs: Don't create a maximized menu if the child or it's
10421 parent has a menu strip. Fixes #81689.
10423 2007-08-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
10425 * ToolTip.cs: We don't get mouse events on all platforms in the exact same
10426 moments, so apply some fuzzy logic to determine if the mouse is still
10427 inside a control or not. Fixes #82288 (for the third time).
10429 2007-08-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
10431 * Control.cs: CreateControl: create implicit children as well. Fixes #82344.
10432 Don't create the child if it has been disposed already (may happen if
10433 the user closes the form the Load event).
10435 2007-08-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
10437 * ToolTip.cs: If ReshowDelay is 0, show the tooltip immediately. Fixes
10440 2007-08-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
10442 * Control.cs: Add a null check in OnParentBindingContextChanged. The parent
10443 might call us after we've been destroyed, in which case our own private
10444 parent field is null. Fixes #82326.
10446 2007-08-06 Jonathan Pobst <monkey@jpobst.com>
10448 * ToolStripDropDown.cs: Fix a failing test on X11 by adding a null
10449 check for setting the dropdown's owner.
10451 2007-08-06 Jonathan Pobst <monkey@jpobst.com>
10453 * MdiClient.cs: Fix some failing tests on X11 by adding a null check
10454 before removing system menu items.
10456 2007-08-02 Jonathan Pobst <monkey@jpobst.com>
10458 * MdiClient.cs, MdiWindowManager.cs: Support 2.0 Mdi MenuStrip
10460 * MdiControlStrip.cs: Added. These are the menu items used in mdi
10462 * ToolStrip.cs: Add a null check to mnemonics.
10463 * ToolStripDropDownMenu.cs: When using a SystemMenuItem, there is
10465 [Fixes most of bug #81689]
10467 2007-08-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
10469 * PropertyGrid.cs: Add a null-check. Fixes #82289/SVGPad.
10471 2007-08-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
10473 Use InitialDelay if ReshowDelay is zero. Fixes #82288.
10475 2007-08-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
10477 * DataGridViewCell.cs: EditType: returns
10478 DataGridViewTextBoxEditingControl always.
10480 2007-08-01 Jonathan Pobst <monkey@jpobst.com>
10482 * TextRenderer.cs: Remove the LineLimit string format flag from the
10483 DrawString fallback method so that things like buttons that aren't
10484 tall enough to draw a full line will still draw part of the text.
10485 [Fixes part of bug #82272]
10487 2007-08-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
10489 * DataGridView.cs: Implemented AutoResizeColumn(s).
10490 * DataGridViewCellStyle.cs: Added SetAlignment, fills in a StringFormat
10491 according to the Alignment.
10492 * DataGridViewColumnHeaderCell.cs, DataGridViewTextBoxCell.cs:
10493 Implement alignment and padding when painting.
10494 * DataGridViewRow.cs: SetValues: Don't create a cell if it already
10496 * DataGridViewCell.cs: Implement BorderWidths in the most primitive
10498 * DataGridViewColumnCollection.cs: Raise OnColumnAdded on the DGV when
10501 2007-07-31 Jonathan Pobst <monkey@jpobst.com>
10503 * TextBoxBase.cs: Use Control.ExplicitBounds instead of explicit_bounds,
10506 2007-07-31 Jonathan Pobst <monkey@jpobst.com>
10508 * ToolStrip.cs: Stub out drag and drop methods, fix some corcompare stuff,
10509 hide GetPreferredSize from public API.
10510 * ToolStripDropDown.cs: Override AllowItemReorder, fix AccessibleObject.
10511 * ToolStripItem.cs: Stub out drag and drop methods and events.
10512 * ToolStripManager.cs: Stub out Save/LoadSettings.
10513 * ToolStripOverflow.cs: Use renamed ToolStrip.GetPreferredSize.
10514 * ToolStripPanel.cs: Fix corcompare error.
10515 * ToolStripPanelRow.cs: Use renamed ToolStrip.GetPreferredSize.
10516 * ToolStripSplitButton.cs: Fix AccessibleObject stuff.
10517 * ToolStripSplitStackLayout.cs: Use renamed ToolStrip.GetPreferredSize.
10519 2007-07-31 Jonathan Pobst <monkey@jpobst.com>
10521 * TextBoxBase.cs: In our new GetPreferredSizeCore, return the explicit
10522 bounds height instead of PreferredHeight. Puts things back the way
10523 they were for height while still fixing the width. Fixes broken unit
10526 2007-07-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
10528 * Binding.cs: Implement 2.0 constructors and add a null check.
10530 2007-07-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
10532 * DataGridViewRowCollection.cs: Allow a null DGV in the constructor,
10533 and fix row index (off by one).
10535 2007-07-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
10537 * PropertyGridView.cs: Remove debug output.
10539 2007-07-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
10541 * Control.cs: We need to reset the is_created flags when the handle is
10542 destroyed. Fixes #82187.
10543 * XplatUIWin32.cs: In GetWindowRect don't offset screen coordinates to
10544 client coordinates if the window doesn't have a parent.
10545 Win32GetParent returns the parent or the owner, and for top-level
10546 windows with no parent (but with an owner) we were calculating the
10547 location from the location of the owner.
10548 * Form.cs: Remove incorrect fix for #82187. Don't raise OnLoad if the
10549 form has been disposed.
10550 * MdiClient.cs: Add a null-check.
10552 2007-07-30 Jonathan Pobst <monkey@jpobst.com>
10554 * TextBoxBase.cs: TextBoxBase reports itself at AutoSize, but doesn't
10555 actually do auto-sizing. Override the internal GetPreferredSizeCore
10556 so we can provide an implementation that returns the current width
10557 and preferred height. Allows anchor = right to work with TextBox 2.0.
10560 2007-07-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10562 * ListView.cs: Add support for navigating items in Groups mode, by
10563 creating a big matrix containing all rows and cols of all groups. When
10564 are in other mode than Details, pressing Up should have a similar
10565 behaviour as that one of Down (moving to the next available column if
10566 current one doesn't have an item in the requested row). Also, don't
10567 proceed to use groups if ShowGroups is false.
10568 * ListViewGroup.cs: Add an internal int field to store the starting
10569 row of the group (used by the big matrix used for navigating the
10571 * ThemeWin32Classic.cs: Don't draw headers if ListView.ShowGroups is
10574 2007-07-30 Jonathan Pobst <monkey@jpobst.com>
10576 * ToolStripDropDown.cs: When we do Show, start with the
10577 DefaultDropDownDirection, but if our popup menu is going to off-screen,
10578 modify the direction to keep it on screen. [Fixes bug #82210]
10580 2007-07-29 Gert Driesen <drieseng@users.sourceforge.net>
10582 * FileDialog.cs: Accept any FilterIndex value, and store it
10583 unmodified. When FilterIndex is less than 1, or greater than number
10584 of filters, then default to first filter. Only add filter extension to
10585 file if user did not specifiy an extension. When type of dialog is
10586 OpenFileDialog and DefaultExt is set, then only use filter extension
10587 if: CheckFileExists is true and no file wih the default extension
10588 exists, or CheckFileExists is false, and user specified file does not
10589 exist. When CheckFileExists is true, then add first extension of
10590 selected filter that matches existing file. Perform checks for
10591 existing file, overwrite and create after extension has been added to
10592 file name. When CheckFileExists is true and type is SaveFileDialog,
10593 then only consider first filter extension if DefaultExt is set.
10594 When CheckFileExists is true, then ignore DefaultExt if file with that
10595 extension does not exist. Also perform check for existing file when
10596 type is SaveFileDialog. Changed some field to constants.
10598 2007-07-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10600 * ListView.cs: Take into account the region used by header
10601 control when doing the vertical scroll (this way we invalidate
10602 the precise area, and don't get any dirty one).
10604 2007-07-27 Everaldo Canuto <ecanuto@novell.com>
10606 * FileDialog.cs: Check for valid filterIndex on button open/save.
10609 2007-07-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10611 * ListView.cs: Update some layout calculations in details view
10612 and clean the code in a pair of assignations.
10614 2007-07-26 Jonathan Pobst <monkey@jpobst.com>
10616 * ComboBox.cs, ContainerControl.cs, DataGrid.cs, FontDialog.cs, Label.cs,
10617 LinkLabel.cs, ListBox.cs, ListView.cs, ListViewItem.cs, MessageBox.cs,
10618 MonthCalender.cs, StatusBar.cs, ThemeClearlooks.cs, ThemeWin32Class.cs,
10619 ToolBar.cs, TreeView.cs: First pass at using thread-safe string measuring.
10621 2007-07-26 Jonathan Pobst <monkey@jpobst.com>
10623 * TextRenderer.cs: Use [ThreadStatic] instead of locks to improve
10624 performance of thread-safe Graphic methods. (Thanks rolf!)
10626 2007-07-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10628 * ListView.cs: When doing the layout calculations, don't calculate
10629 scroll bars before handle is created. This is unnecessary and also
10630 calculating them before handle creation item causes a number of random
10631 bugs (which begin to appear after Chris' big patch for handle creation
10634 2007-07-26 Jonathan Pobst <monkey@jpobst.com>
10636 * TextRenderer.cs: Create thread-safe versions of Graphics.MeasureString
10637 for things that don't have a Graphics object. Currently, things just use
10638 the static Hwnd.bmp_g which is not thread safe.
10640 2007-07-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
10642 * Form.cs: ShowDialog: don't destroy handles if the dialog is a common
10643 dialog. Fixes #82187.
10645 2007-07-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
10647 * DataGridViewElement.cs: Initialize state.
10648 * DataGridView.cs: Forward a few Mouse events to cells. Add
10649 GetRowInternal and GetCellInternal that doesn't unshare rows.
10650 Implement GetCellDisplayRectangle. HitTest: if the row is shared,
10651 don't use the index, but look it up. Add
10652 DataGridViewControlCollection.RemoveInternal to remove controls
10653 that Remove won't remove (scrollbars, edit control).
10654 * DataGridViewColumn.cs: Initialize State correctly.
10655 * DataGridViewColumnHeaderCell.cs, DataGridViewComboBoxCell.cs,
10656 DataGridViewHeaderCell.cs, DataGridViewRowHeaderCell.cs: Started
10658 * DataGridViewRowCollection.cs: Implemented shared rows.
10659 * DataGridViewRow.cs: Throw exceptions as MS do.
10660 * DataGridViewCell.cs: A few properties are implemented by a
10661 Get<Property> method, so move implementation there and remove the
10662 NIEX in the method. Add a bunch of OnXInternal that DataGridView
10663 calls when necessary.
10664 * DataGridViewComboBoxEditingControl.cs: Remove a few NIEX'es that just
10665 complicates matters.
10666 * DataGridViewCellCollection.cs: Add a GetCellInternal that doesn't
10669 2007-07-25 Jonathan Pobst <monkey@jpobst.com>
10671 * UpDownBase.cs: We cannot override SetBoundsCore for 2.0, which was relayout-ing
10672 the children controls. Instead, we will just set up the proper docking for the
10673 children controls so we don't have to worry about it. [Fixes bug #82188]
10675 2007-07-25 Jonathan Pobst <monkey@jpobst.com>
10677 * TreeView.cs, NodeLabelEditEventArgs.cs, LabelEditTextBox.cs: Support edit
10678 canceling and correct Before/AfterLabelEdit properties as layed out in bug
10679 81847. [Fixes bug #81847]
10681 2007-07-25 Jonathan Pobst <monkey@jpobst.com>
10683 * Label.cs: If AutoSize = true and a width or height is set, ignore it and
10684 redo the autosize. VS2005 defaults to setting the AutoSize, and then setting
10685 an explicit size based on the design-time size of the text. Since our fonts
10686 may not match this explicit size, we tend to cut off the ends of people's labels.
10688 2007-07-24 Jonathan Pobst <monkey@jpobst.com>
10690 * Menu.cs: Add some missing methods to MenuItemCollection.
10692 2007-07-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
10694 * DataGridView.cs: Added RowTemplateFull, creates a row from the templates in the columns.
10695 * DataGridViewBand.cs: DefaultHeaderCellType: initialize correctly. Resizable: if not set, check DGV.
10696 * DataGridViewColumn.cs: InheritedAutoSizeMode: if not set, check DGV. Resizable: delegate to base class. ToolTipText: Never return null. Initialize a few other properties correctly.
10697 * DataGridViewColumnCollection.cs: Add: Default column is a TextBoxColumn.
10698 * DataGridViewComboBoxCell.cs: Started implementing this, lots left still.
10699 * DataGridViewElement.cs: State defaults to Visible.
10700 * DataGridViewRowCollection.cs: Add: creates the new row based on a template.
10701 * DataGridViewTextBoxColumn.cs: SortMode: delegate to base class, but initialize to Automatic. ToString: implement correctly.
10703 2007-07-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
10705 * Control.cs: Minor 1.1 corcompare fix.
10707 2007-07-23 Jonathan Pobst <monkey@jpobst.com>
10709 * LinkLabel.cs, PrintPreviewDialog.cs, TabPage.cs, TextBox.cs,
10710 TextBoxBase.cs, ToolBar.cs: 2.0 corcompare work.
10712 2007-07-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
10714 * DataGridViewLinkColumn.cs, DataGridViewRowCollection.cs,
10715 DataGridViewImageColumn.cs, DataGridViewSelectedCellCollection.cs,
10716 DataGridViewComboBoxCell.cs, DataGridViewLinkCell.cs,
10717 DataGridViewSelectedColumnCollection.cs,
10718 DataGridViewSelectedRowCollection.cs: Corcompare work.
10720 2007-07-23 Jonathan Pobst <monkey@jpobst.com>
10722 * PrintDialog.cs: Stub UseEXDialog. I chose to stub this because
10723 it is autoset by VS2005 designer and the effect is barely noticeable.
10725 2007-07-23 Jonathan Pobst <monkey@jpobst.com>
10727 * TreeView.cs: Implement HitTest.
10729 2007-07-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
10731 * DataGridViewTextBoxCell.cs: Use DGV.EditControlInternal instead of
10732 manually adding and removing the control from the Controls
10734 * DataGridView.cs: Implement DataGridViewControlCollection. Add an
10735 EditingControlInternal property that tracks the editing control.
10736 Always keeping the scrollbars in the Controls collection, as MS
10737 testing confirms is the right behaviour.
10739 2007-07-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
10741 * ScrollableControl.cs: Fix implementation of AutoScrollPosition
10742 according to MSDN and new test.
10744 2007-07-20 Jonathan Pobst <monkey@jpobst.com>
10746 * TreeNode.cs: Implement ToolTipText.
10747 * TreeView.cs: Implement tooltips, NodeMouse* events.
10749 2007-07-20 Jonathan Pobst <monkey@jpobst.com>
10751 * TreeView.cs: Implement OnNodeMouseClick and OnNodeMouseDoubleClick.
10753 2007-07-20 Jonathan Pobst <monkey@jpobst.com>
10755 * TreeNode.cs: Implement ContextMenu, ContextMenuStrip, and Level.
10756 * TreeView.cs: Use the node's contextmenu[strip] if applicable.
10758 2007-07-20 Ivan N. Zlatev <contact@i-nz.net>
10760 * Control.cs, Form.cs, ContainerControl.cs,
10761 ScrollableControl.cs, ButtonBase.cs: Added ShouldSerialize
10762 for misc properties.
10764 2007-07-20 Jonathan Pobst <monkey@jpobst.com>
10766 * TreeNode.cs: Implement StateImageIndex and StateImageKey.
10767 * TreeView.cs: Implement StateImageList.
10769 2007-07-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
10771 * Form.cs: Don't check if the current form is the active form before
10772 activating it. Fixes #81904.
10774 2007-07-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
10776 * Form.cs: Don't check if the current form is the active form before
10777 activating it. Fixes #81904.
10779 2007-07-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
10781 * TreeView.cs: Apply patch from Tyron (tmm@aon.at). Fixes #81847.
10783 2007-07-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
10785 * Form.cs: Don't try to position the form after loading if the form was
10786 disposed. Fixes #81969.
10788 2007-07-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
10790 * PropertyGrid.cs, PropertyGridView.cs: Implemented 2.0 methods and
10791 properties. Had to change ToolBar into ToolStrip, which required a
10794 2007-07-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
10796 * PropertyGrid.cs: PropertyToolBar: Redraw the entire toolbar when it's
10797 resized, fixes part of #79829 (vertical lines in toolbar).
10798 PropertyGrid: Refactored Populate* to something that's easier to
10799 follow at least for me, as well as splitting it up into several new
10800 methods, required to update only subitems when something has
10801 changed by a popup editor or listbox. Don't use events to check
10802 when any values are changed, since the events are unreliable (we're
10803 changing the objects the events are registered with, and if the
10804 event handling requires the objects to be immutable (objects stored
10805 in hashtables for instance), the events will never be raised).
10806 * PropertyGridView.cs: Call PropertyGrid.PropertyValueChangedInternal
10807 everytime we change a value, since events are unreliable.
10808 DropDownButtonClicked: For the same reason don't compare objects to
10809 check if it has changed or not, it would require all objects to
10810 derive Equals. Fix dialog location on windows, MS is doing weird
10811 things when creating parented forms.
10812 * GridEntry.cs: Add a SelectedObject setter.
10814 2007-07-19 Jonathan Pobst <monkey@jpobst.com>
10816 * TreeNode.cs: Add some corcompare attributes.
10817 * TreeNodeCollection.cs: Implement 2.0 stuffs.
10818 * TreeView.cs: Implement some 2.0 stuffs.
10820 2007-07-18 Andreia Gaita <avidigal@novell.com>
10822 * WebBrowser.cs, WebBrowserBase.cs: add some more MonoTODOs now
10825 2007-07-19 Jonathan Pobst <monkey@jpobst.com>
10827 * ListBox.cs: Implement custom tab offsets.
10829 2007-07-18 Jonathan Pobst <monkey@jpobst.com>
10831 * ToolStripContentPanel.cs: Support System renderer.
10832 * ToolStripControlHost.cs: Set RightToLeft to default to No.
10834 2007-07-18 Jonathan Pobst <monkey@jpobst.com>
10836 * ScrollableControl.cs: Don't mess up the user's explicit bounds.
10838 2007-07-18 Jonathan Pobst <monkey@jpobst.com>
10840 * CheckBox.cs: Chain TextAlign to base implementation instead of
10841 maintaining another one.
10843 2007-07-18 Jonathan Pobst <monkey@jpobst.com>
10845 * ButtonBase.cs: Fix an incorrect string constant.
10847 2007-07-18 Jonathan Pobst <monkey@jpobst.com>
10849 * TextRenderer.cs: Use the static Graphics context in Hwnd instead
10850 of creating one for measuring strings.
10852 2007-07-18 Jonathan Pobst <monkey@jpobst.com>
10854 * ToolStrip.cs, ToolStripDropDown.cs, ToolStripDropDownMenu.cs:
10855 Implement MaxItemSize.
10857 2007-07-17 Jonathan Pobst <monkey@jpobst.com>
10859 * Control.cs: Remove per-control 1x1 Bitmap and Graphics context used
10860 for DeviceContext. Instead, use the static one available in Hwnd.
10861 Informal tests show this saves about 500k on formtest.exe.
10863 2007-07-17 Jonathan Pobst <monkey@jpobst.com>
10865 * ContainerControl.cs: Implement 2.0 AutoScaling.
10867 2007-07-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
10869 * ComboBox.cs: Work around bug #82120 (bug in mcs).
10871 2007-07-16 Jonathan Pobst <monkey@jpobst.com>
10873 * ThemeWin32Classic.cs: Allow a Flat button to be Focused and Entered.
10874 Darken the focus color.
10876 2007-07-16 Jonathan Pobst <monkey@jpobst.com>
10878 * ListBox.cs: When measuring items, if it's a CheckedListBox, add room
10880 * ThemeWin32Classic.cs: Make the checkbox bigger in a CheckedListBox and use
10881 X, Y instead of a rect for drawing text.
10882 - For ControlPaint.DrawCheckBox, center the check a little better when the
10883 checkbox is odd width. When drawing a flat checkbox, use a white background
10884 when state != inactive.
10885 [Fixes bugs #82097, 82100]
10887 2007-07-16 Gert Driesen <drieseng@users.sourceforge.net>
10889 * ListControl.cs: When changing CurrencyManager, disconnect event
10890 handlers from previous one. Fixes bug #81771. Code formatting.
10892 2007-07-15 Andreia Gaita <avidigal@novell.com>
10894 * PrintPreviewControl.cs: Remove extraneous Invalidate calls. Separate
10895 full preview invalidation from layout invalidation, and only invalidate
10896 the layout when setting zoom or other properties. Invalidation should
10897 always be done even when resetting properties with the same values as
10898 what is there. Fixes #81744 and #79830.
10900 2007-07-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10902 * ListView.cs: Implement initial support for Groups. Split some of the
10903 LayoutIcons code to render a partial list of the items (needed by
10904 items contained in ListViewGroup instances). Let the
10905 ListViewItemsCollection.ListView property be modifiable (needed when
10906 using Groups, too).
10907 * ListViewGroup.cs: Use a Bounds property rather than a Location
10908 one. Also invalidate the bounds when they get changed.
10909 * ThemeWin32Classic.cs: When drawing items, also draw the group header
10910 if ListView.Groups.Count is bigger than 0. Add a DrawListViewGroupHeader
10913 2007-07-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10915 * ListView.cs: When space gets pressed and CheckBoxes is true,
10916 don't invoke the Begin and EndUpdate methods. We are generating
10917 a redraw of the entire control without need to do so.
10919 2007-07-13 William Holmes <billholmes54@gmail.com>
10921 * Control.cs: Changing logic in FindFlatForward and
10922 FindFlatBackward to handle multiple Controls with
10924 This fixes bug 81687.
10926 2007-07-13 Jonathan Pobst <monkey@jpobst.com>
10928 * OSFeature.cs: Enable IsPresent.
10930 2007-07-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
10932 * Control.cs: Don't do anything in WmShowWindow if the control has been
10933 disposed. We can get WM_SHOWWINDOW after a control is disposed: a
10934 control is created, put on a form, the control is disposed (the
10935 form is never shown), and then we get a MapNotify, triggering a
10937 * Form.cs: Exclude the current form when sending Deactivate to all
10939 * NativeWindow.cs: Set WindowCreating to null as soon as possible,
10940 there was a race condition because assigning the handle raises
10941 events, we can get more messages, therefore trying to assign the
10942 handle again, which would fail if any of those event handlers
10943 closed/disposed the control.
10945 2007-07-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
10947 * Form.cs: Make the fix for #80775 windows-only (fixes #81957).
10949 2007-07-12 Jonathan Pobst <monkey@jpobst.com>
10951 * SystemInformation.cs, Theme.cs, XplatUI.cs, XplatUIDriver.cs,
10952 XplatUIWin32.cs: Implement SystemInformation 2.0 properties.
10954 2007-07-12 Rolf Bjarne Kvinge <RKvinge@novell.com>
10956 * DateTimePicker.cs: If there's no part format specifier, return an
10959 2007-07-12 Jonathan Pobst <monkey@jpobst.com>
10961 * FlatButtonAppearance.cs: Throw NotSupportedException for a
10962 Transparent BorderColor.
10964 2007-07-12 Rolf Bjarne Kvinge <RKvinge@novell.com>
10966 * DataGridView.cs, TextControl.cs, ProgressBar.cs, PrintDialog.cs,
10967 MessageBox.cs, ButtonBase.cs, PageSetupDialog.cs, NumericUpDown.cs,
10968 X11Dnd.cs, Binding.cs, DataGrid.cs, AxHost.cs,
10969 LinkLabelLinkClickedEventArgs.cs, TextRenderer.cs, Label.cs,
10970 LinkLabel.cs, TreeNode.cs, BindingSource.cs, TabPage.cs,
10971 TextBoxBase.cs, BindingNavigator.cs, Application.cs,
10972 ToolStripPanel.cs, TabControl.cs, ThemeClearlooks.cs, TreeView.cs:
10974 * X11Structs.cs: Remove warnings, add ToString implementations.
10976 2007-07-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
10978 * XplatUIX11.cs: Translate min/max size according to the actual min/max
10979 size, and not the current size. Fixes #81798.
10981 2007-07-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
10983 * XplatUIX11.cs: Fix #80822 again (DefWndProc can be reached before
10984 XplatUI.CreateWindow returns, in which case the hwnd isn't assigned
10985 to the control yet).
10987 2007-07-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
10989 * PropertyGridTextBox.cs: Add a method that sends any forwarded
10990 mousedowns to the contained textbox.
10991 * X11Structs.cs: More ToString implementation.
10992 * PropertyGridView.cs: Forward any mousedowns to the textbox, fixes
10995 2007-07-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
10997 * PropertyGridView.cs: Add a null-check, fixes a few tests.
10999 2007-07-10 Jonathan Pobst <monkey@jpobst.com>
11001 * TableLayoutPanelCellPosition.cs: TypeConverter.
11003 2007-07-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
11007 * PropertyGridTextBox.cs: Propagate any color changes to all contained
11009 * PropertyGridView.cs: A few color fixes.
11011 2007-07-10 Jackson Harper <jackson@ximian.com>
11013 * TextControl.cs: Remove some old unused text formatting stuff.
11015 2007-07-10 Jackson Harper <jackson@ximian.com>
11017 * TreeView.cs: Update full row select invalidation to match the
11018 newer DrawSelection... method.
11019 - Make sure to invalidate the entire width when selecting a new
11020 node, if we have full row selection enabled.
11022 2007-07-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
11024 * PropertyGridView.cs: Fix for #81800, makes text show up on initial
11025 display of properties again.
11027 2007-07-10 Jonathan Pobst <monkey@jpobst.com>
11029 * ListBox.cs: Add IntegerCollection and Add, Clear, Remove
11030 to existing collections.
11032 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
11034 * AccessibleObject.cs, RadioButton.cs: Fix some base classes
11035 that changed between 1.1 and 2.0.
11037 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
11039 * PowerStatus.cs: Added. This is just a data class, it is filled
11040 in by SystemInformation.
11042 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
11044 * Message.cs: Add op_Equality and op_Inequality.
11046 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
11048 * MenuStrip.cs: Finish corcompare work.
11050 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
11052 * LinkArea.cs: Add op_Equality and op_Inequality.
11054 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
11056 * Application.cs: Add MessageLoopCallback delegate.
11058 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
11060 * ListBox.cs: First set of 2.0 stuffs.
11062 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
11064 * Control.cs: Make an internal Height property we can override
11065 without messing up the public API.
11066 * ListBox.cs: Override HeightInternal to always return the size
11067 the user set. [Fixes bug #80466]
11069 2007-07-08 Jonathan Pobst <monkey@jpobst.com>
11071 * TableLayoutPanel.cs: Add a null check so we don't NRE trying to
11072 paint cell borders if we haven't calculated where they go yet.
11073 [Fixes bugs #82040 and #82041]
11075 2007-07-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11077 * ListView.cs: In Details view, set the location of item_control
11078 in the (0,0) position (and the header_control is thus on the
11079 item_control). This way the Bounds of the Items are relative to the
11080 ListView control (before this, they had a Bounds value without the
11081 header_control offset, which wasn't matching .Net). Fixes #82004.
11083 2007-07-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11085 * ListControl.cs: When DataSource is set to null, pass an empty
11086 array of object to SetItemsCore. This is done to clean the items
11087 in the ListContol children. Fixes #81788.
11089 2007-07-06 Jonathan Pobst <monkey@jpobst.com>
11091 * ListControl.cs: Add 2.0 stuffs.
11093 2007-07-06 Jonathan Pobst <monkey@jpobst.com>
11095 * Label.cs: Finish up 2.0 stuffs. Replace calls to Refresh with Invalidate,
11096 Refresh is overkill for just about every repaint request.
11098 2007-07-06 Jonathan Pobst <monkey@jpobst.com>
11100 * ToolStripItem.cs: TextDirection getter handles looking up Inherit for us,
11101 so remove my custom Get method and fix the property getter.
11103 2007-07-06 Jonathan Pobst <monkey@jpobst.com>
11105 * Label.cs: DefaultMargin for 2.0.
11107 2007-07-06 Jonathan Pobst <monkey@jpobst.com>
11109 * ComboBox.cs: Override IsInputCharInternal and return true. Fixes
11110 reported issue where other controls with mnemonics would steal strokes
11111 from a selected ComboBox.
11113 2007-07-06 Jonathan Pobst <monkey@jpobst.com>
11115 * ScrollOrientation.cs: Make internal for 1.1.
11116 * ScrollEventArgs.cs: Add 2.0 stuffs.
11118 2007-07-05 Jonathan Pobst <monkey@jpobst.com>
11120 * ToolStrip.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
11121 ToolStripItem.cs, ToolStripItem.cs, ToolStripItemTextRenderEventArgs.cs,
11122 ToolStripRenderer.cs, ToolStripSeparator.cs: Implement TextDirection.
11124 2007-07-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11126 * ListViewItem.cs: Implement the small 2.0 GetSubItemAt method.
11128 2007-07-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11130 * ListView.cs: Implement the so-incredibly broken 2.0
11131 VirtualItemsSelectionRangeChanged event.
11133 2007-07-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11135 * ListView.cs: When enter is pressed and selection is non empty,
11136 an OnItemActivate event must be fired.
11138 2007-07-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11140 * ListView.cs: Store the FocusedItem information as an
11141 int instead of a ListViewItem (needed by VirtualMode).
11142 Update the calls to SetFocusedItem to pass an index instead of
11144 * ListViewItem.cs: Likewise. Also, in VirtualMode retrieve
11145 the Focused state from the owner ListView.
11147 2007-07-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11149 * ListView.cs: Set ListView.focused_item from ListViewItem.Focused
11150 property. Also, invalidate previous focused item in the mentioned
11151 property (match .Net).
11153 2007-07-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11155 * ListView.cs: Implement 2.0 FocusedItem property setter.
11157 2007-07-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11159 * ListView.cs: Implement 2.0 TopItem property setter.
11161 2007-07-03 Jonathan Pobst <monkey@jpobst.com>
11163 * StatusStrip.cs: The default renderer is System.
11164 * ToolStrip.cs, ToolStripManager: Now that we have System renderer, use it
11165 if the user specifies it.
11166 * ToolStripDropDown.cs: Don't reset our Renderer on changing OwnerItem
11167 if we are ManagerRenderMode.
11168 * ToolStripMenuItem.cs: Calculate our text color better.
11169 * ToolStripRenderer.cs, ToolStripProfessionalRenderer.cs: Move some stuff
11170 from Professional to the base class based off working with the System renderer.
11171 * ToolStripSystemRenderer.cs: Added.
11173 2007-07-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11175 * ListView.cs: I'm so lame - the real name is HitTest, not HitInfo.
11177 2007-07-02 Jonathan Pobst <monkey@jpobst.com>
11179 * ToolTip.cs: Implement 2.0 Tag property.
11181 2007-06-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11183 * ListView.cs: Implement 2.0 HitTest methods.
11185 2007-06-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11187 * ListViewItem.cs: Add a 2.0 bool Hot property, to tell whether the
11188 item is under the pointer or not (sugar). Also remove the TODO
11189 regarding to the cursor changes in OneClick activation.
11190 * ThemeWin32Classic.cs: When HotTracking is true and we are drawing
11191 the subitems use the parent's HotFont if UseItemStyleForSubItems is
11192 true; otherwise don't show the underline style.
11194 2007-06-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11196 * ListView.cs: In ItemControl.ItemsMouseMove, refactor
11197 the code to retrieve the item at position only one time. Also
11198 change cursor when Activation is ItemActivation.OneClick as well
11199 as invalidate the item if HotTracking is true (to show/hide the
11200 underline style). Add an internal HotItemIndex property to retrieve
11201 the current hot item's index.
11202 * ListViewItem.cs: Add an internal HotFont property to cache the
11203 font used when HotTracking is true and the pointer moves within the
11205 * ThemeWin32Classic.cs: When drawing the item's text, use Font or
11206 HotFont depending on the hot state of the item.
11208 2007-06-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11210 * ListView.cs: Implement 2.0 HotTracking property.
11212 2007-06-21 Jonathan Pobst <monkey@jpobst.com>
11214 * ToolStripControlHost.cs: If our hosted control never got created,
11215 don't try to dispose it. [Fixes bug #81909]
11217 2007-06-21 Jonathan Pobst <monkey@jpobst.com>
11219 * TableLayoutPanel.cs: Implement ScaleCore, ScaleControl.
11221 2007-06-21 Jonathan Pobst <monkey@jpobst.com>
11223 * TableLayoutPanel.cs: Implement CellBorderStyle. [Fixes bug #81884]
11225 2007-06-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11227 * ThemeWin32Classic.cs: In OwnerDraw mode draw subitems only for
11229 * DrawListViewColumnHeaderEventArgs.cs:
11230 * DrawListViewSubItemEventArgs.cs: Add padding to the bounds when drawing text
11231 using the DrawText () methods.
11233 2007-06-19 Jonathan Pobst <monkey@jpobst.com>
11235 * ToolStripProfessionalRenderer.cs: Put back clearing a ToolStripDropDown's
11236 background which got erased in my changes yesterday.
11238 2007-06-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11240 * ListViewItem.cs: Actually set bounds for subitems in Details view
11242 * ThemeWin32Classic.cs: Refactor the drawing code for subitems, so we
11243 can invoke from the owner draw routines if we need it. Also, add
11244 support for Owner draw in Details view.
11246 2007-06-18 Jonathan Pobst <monkey@jpobst.com>
11248 * ToolStripDropDownMenu.cs, ToolStripItem.cs, ToolStripLabel.cs,
11249 ToolStripMenuItem.cs, ToolStripProfessionalRenderer.cs: Respect the
11250 ShowImageMargin setting, properly align text in a ToolStripLabel
11251 hosted on a ToolStripDropDown.
11253 2007-06-18 Jonathan Pobst <monkey@jpobst.com>
11255 * ToolStrip.cs, ToolStripContentPanel.cs, ToolStripDropDownMenu.cs,
11256 ToolStripProfessionalRenderer.cs: Refactor and clean up some rendering code.
11258 2007-06-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11260 * DrawListViewSubItemEventArgs.cs: Actually implement its methods.
11262 2007-06-18 Jonathan Pobst <monkey@jpobst.com>
11264 * ToolStripLabel.cs: If the label is on a dropdown, adjust the text
11265 location to match ToolStripMenuItems.
11267 2007-06-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11269 * DrawListViewColumnHeaderEventArgs.cs:
11270 * ThemeWin32Classic.cs: Implement 2.0 OwnerDraw support for
11271 column headers in ListView.
11273 2007-06-15 Jonathan Pobst <monkey@jpobst.com>
11275 * UserControl.cs: Implement AutoSize.
11277 2007-06-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11279 * DrawListViewItemEventArgs.cs:
11281 * ThemeWin32Classic.cs: Implement basic support for 2.0 OwnerDraw in
11284 2007-06-15 Jonathan Pobst <monkey@jpobst.com>
11286 * ToolStripDropDownItemAccessibleObject.cs: Added.
11287 * ToolStripDropDownItem.cs, ToolStripItem.cs, ToolStripMenuItem.cs,
11288 ToolStripOverflow.cs, ToolStripOverflowButton.cs, ToolStripPanel.cs,
11289 ToolStripProgressBar.cs, ToolStripSeparator.cs, ToolStripSplitButton.cs,
11290 ToolStripTextBox.cs: corcompare work.
11292 2007-06-14 Jonathan Pobst <monkey@jpobst.com>
11294 * OSFeature.cs, StatusStrip.cs, TabControl.cs, TableLayoutSettings.cs,
11295 TableLayoutStyle.cs, TableLayoutCollection.cs, ToolStripContentPanel.cs,
11296 ToolStripControlHost.cs, ToolStripDropDown.cs, ToolStripDropDownButton.cs:
11299 2007-06-14 Jonathan Pobst <monkey@jpobst.com>
11301 * OSFeature.cs: Add IsPresent.
11302 * PrintPreviewControl.cs: Add RightToLeft.
11303 * SplitContainer.cs: Add AutoScrollOffset, ScaleControl.
11304 * SplitterPanel.cs: Add AutoSizeMode.
11306 2007-06-13 Jonathan Pobst <monkey@jpobst.com>
11308 * LayoutEventArgs.cs: Add 2.0 AffectedComponent.
11309 * MdiClient.cs: Add 2.0 ScaleControl.
11310 * NativeWindow.cs: Implement 2.0 interface IWin32Window.
11311 * NumericUpDownAccelerationCollection.cs: Add [ListBinding].
11313 2007-06-13 Jonathan Pobst <monkey@jpobst.com>
11315 * Form.cs: Implement some scaling methods, stub some RTL methods,
11318 2007-06-13 Jonathan Pobst <monkey@jpobst.com>
11320 * Control.cs: corcompare work.
11321 * FlatButtonAppearance.cs, FolderBrowserDialog.cs: Add TypeConverters.
11323 2007-06-13 Jonathan Pobst <monkey@jpobst.com>
11325 * ControlPaint.cs, Theme.cs, ThemeWin32Classic.cs: Implement
11326 ControlPaint 2.0 stuffs.
11328 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
11330 * ThreadExceptionDialog.cs: Add 2.0 stuffs.
11332 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
11334 * UpDownBase.cs: Add 2.0 stuffs.
11336 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
11338 * NumericUpDown.cs: Add 2.0 stuffs.
11340 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
11342 * NotfiyIcon.cs: Add MouseDoubleClick event, hook up MouseClick event.
11344 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
11346 * ErrorProvider.cs: Implement 2.0 stuffs.
11348 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
11350 * DomainUpDown.cs: Implement 2.0 stuffs.
11352 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
11354 * CheckedListBox.cs: Fix RefreshItems signature.
11356 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
11358 * PictureBox.cs: Implement 2.0 stuffs.
11360 2007-06-12 Andreia Gaita <avidigal@novell.com>
11362 * TabControl.cs: Check if there are tabpages before checking
11363 the selected index - fix #81802 (font changes raise a ResizeTabs
11364 call on controls.add, which blew up nicely with no tabpages)
11366 2007-06-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11369 * ListViewItem.cs: Implement 2.0 ItemSelectionChanged event.
11371 2007-06-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11374 * ListViewItem.cs: In VirtualMode the selection information
11375 resides in the ListView, rather than in the Items. Also, throw
11376 InvalidOperationExceptions when VirtualMode is being used and
11377 CheckedItemCollection is accessed.
11379 2007-06-08 Jonathan Pobst <monkey@jpobst.com>
11381 * ComboBox.cs: Add ScaleControl.
11383 2007-06-08 Jonathan Pobst <monkey@jpobst.com>
11385 * ButtonBase.cs: ButtonBaseAccessibleObject.State should not be visible to 1.1.
11387 2007-06-08 Jonathan Pobst <monkey@jpobst.com>
11389 * GroupBox.cs: Add 2.0 stuffs.
11391 2007-06-08 Jonathan Pobst <monkey@jpobst.com>
11393 * Panel.cs: Add autosize properties/event.
11395 2007-06-07 Jonathan Pobst <monkey@jpobst.com>
11398 - When we remove a control, remove it from the collection before performing the layout.
11399 - Setup an internal property for explicit_bounds.
11400 - Don't let the UpdateBounds in CreateHandle overwrite our explicit bounds.
11401 - Perform a layout when we set a new AutoSizeMode.
11403 2007-06-07 Jonathan Pobst <monkey@jpobst.com>
11405 * ScrollableControl.cs: Add 2.0 stuffs.
11407 2007-06-06 Jonathan Pobst <monkey@jpobst.com>
11409 * ScrollBar.cs: Add 2.0 stuffs.
11411 2007-06-06 Jonathan Pobst <monkey@jpobst.com>
11413 * Splitter.cs: Add 2.0 stuffs.
11415 2007-06-06 Jonathan Pobst <monkey@jpobst.com>
11417 * SplitContainer.cs: Apply patch from Neil Cawse <neilcawse@geotab.com>
11418 to have BindingContext simply use base implementation.
11420 2007-06-06 Jonathan Pobst <monkey@jpobst.com>
11422 * ColumnHeader.cs: corcompare fix.
11424 2007-06-06 Jonathan Pobst <monkey@jpobst.com>
11426 * Button.cs: corcompare fixes.
11427 * ButtonBase.cs: corcompare fixes, add ButtonBaseAccessibleObject.State.
11429 2007-06-06 Jonathan Pobst <monkey@jpobst.com>
11431 * Button.cs: Override GetPreferredSizeCore.
11432 * ButtonBase.cs: PerformLayout after changing properties that can affect
11433 AutoSize. Simplify some mouse/keyboard code.
11434 * Control.cs: PerformLayout after changing Padding if AutoSize = true.
11435 * MouseEventArgs.cs: Make Location internal for 1.1.
11436 * TextRenderer.cs: Make MeasureTextInternal (string, Font, bool) internal for 1.1.
11437 * Theme.cs: Add CalculateButtonAutoSize.
11438 * ThemeWin32Classic.cs: Implement CalculateButtonAutoSize.
11440 2007-06-05 Miguel de Icaza <miguel@novell.com>
11442 * TreeNodeCollection.cs: Applied patch from Neil Cawse <neilcawse@geotab.com>
11444 2007-06-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11446 * ListViewItem.cs: We can't cache Bounds in VirtualMode
11447 since we can get different item instances every time we retrieve it.
11449 2007-06-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11451 * ListView.cs: Work around for #81602, since an unkown an pretty
11452 infrequent condition appears only in some systems (old linux boxes, it
11455 2007-06-04 Jonathan Pobst <monkey@jpobst.com>
11457 * Button.cs: Completely reformat and a little refactor to bring
11458 this closer to Mono circa 2007.
11460 2007-06-04 Jonathan Pobst <monkey@jpobst.com>
11462 * CheckBox.cs, Form.cs, RadioButton.cs: Change call to ButtonBase.Redraw
11463 to be ButtonBase.Invalidate.
11465 2007-06-04 Jonathan Pobst <monkey@jpobst.com>
11467 * ButtonBase.cs: GetPreferredSize is 2.0 only. Fixes build.
11469 2007-06-04 Jonathan Pobst <monkey@jpobst.com>
11471 * ButtonBase.cs: Completely reformat and a little refactor to bring
11472 this closer to Mono circa 2007.
11474 2007-06-01 Everaldo Canuto <ecanuto@novell.com>
11476 * Label.cs: Fixes preferred sizes for 2.0 profile, also adjust some
11477 values for autosize. Fixes #80137.
11479 2007-06-01 Jonathan Pobst <monkey@jpobst.com>
11481 * Control.cs: Don't perform layout when AutoSize changes.
11482 * Form.cs: Perform layout in AutoSize override. Don't set ClientSize
11483 directly when autosizing, use SetBounds with BoundsSpecified.None.
11484 Fixes unit tests my last commit broke.
11486 2007-06-01 Jonathan Pobst <monkey@jpobst.com>
11488 * Control.cs: Perform layout when AutoSize changes.
11489 * Form.cs: Implement AutoSizing.
11491 2007-06-01 Chris Toshok <toshok@ximian.com>
11493 * DataGrid.cs: remove the XXX'ed check at the top of
11494 ProcessGridKey. fixes #80464.
11496 2007-06-01 Chris Toshok <toshok@ximian.com>
11498 * DataGridTextBoxColumn.cs: TextBox.TextChanged event handler
11499 adding idempotent (add/remove in Edit()), and also make sure we
11500 don't add it until after we set the text, so it's not tripped in
11501 Edit(). Fixes unit test regression.
11503 2007-06-01 Jonathan Pobst <monkey@jpobst.com>
11505 * Control.cs: In UpdateBounds, only recalculate anchor distances if the
11506 change is user explicit, not when the layout engine moves stuff. Fixes
11507 anchoring to bottom and right. [Fixes bug #81790]
11509 2007-06-01 Andreia Gaita <avidigal@novell.com>
11511 * PrintDialog.cs: Add collation preview thumbnails. Fixes #80726.
11513 2007-06-01 Andreia Gaita <avidigal@novell.com>
11515 * ContainerControl.cs:
11516 Fire enter event for common ancestor if it is not a ContainerControl.
11517 Send focus to the active_control and not the 'value', the active
11518 control might have been changed in one of the events fired.
11519 Definitely fixes #80159.
11521 2007-06-01 Andreia Gaita <avidigal@novell.com>
11523 * DataGrid.cs: Finish editing when focus leave the datagrid. Fixes #80159.
11525 2007-06-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
11527 * PropertyGrid.cs: Anchor the help description to the bottom of the
11528 help panel and refactor SelectGridItem into a
11529 SelectGridItemInternal that can be set to null (and update it to
11530 clear the help texts when it is set to null). Set root item to null
11531 when there's no SelectedObject. Fixes #80438.
11532 * ScrollableControl.cs: In Recalculate we need to ResumeLayout(true)
11533 when we're recalculating after a resize (only).
11535 2007-05-31 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11537 * ListView.cs: Implement 2.0 RedrawItems method.
11539 2007-05-31 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11541 * ListControl.cs: Disconnect PositionChanged and ItemChanged
11542 handlers from previous data manager when DataSource is set to
11543 null. Fixes #81771.
11545 2007-05-31 Jackson Harper <jackson@ximian.com>
11547 * TextBoxBase.cs: These seem to be the correct values.
11549 2007-05-31 Everaldo Canuto <ecanuto@novell.com>
11551 * FileDialog.cs: When close dialog with ok set filterindex using combobox
11552 value. Fixes #81784.
11554 2007-05-31 Jonathan Pobst <monkey@jpobst.com>
11556 * Control.cs: Implement 2.0 scaling methods.
11558 2007-05-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
11560 * ProgressBar.cs, WebBrowserBase.cs, Control.cs, MaskedTextBox.cs,
11561 MessageBox.cs, PropertyGrid.cs, RichTextBox.cs: Fix warnings and
11564 2007-05-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
11566 * ProgressBar.cs: Implemented missing 2.0 members.
11568 2007-05-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
11570 * Control.cs: Corcompare issues.
11571 * MessageBox.cs: Implemented missing 2.0 functions.
11573 2007-05-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
11575 * CheckedListBox.cs, ListBox.cs, ListControl.cs, ComboBox.cs:
11576 Implemented more 2.0 members.
11578 2007-05-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
11580 * Application.cs: Try to avoid NRE when Assembly.GetEntryAssembly is
11581 null (strange, but it seems to happen when running unit tests).
11583 2007-05-30 Andreia Gaita <avidigal@novell.com>
11585 * ContainerControl.cs: Set active_control even earlier, before
11586 firing any events, and undo it if validation returns false.
11588 2007-05-30 Andreia Gaita <avidigal@novell.com>
11590 * ContainerControl.cs: Raise Validation and Enter/Leave events
11591 even if there is no Form and set active_control earlier, just
11592 before firing Enter events (toshok's patches). Fixes #80647.
11594 2007-05-30 Jackson Harper <jackson@ximian.com>
11596 * TextControl.cs: Redid the pageup/pagedown a little to simplify
11597 things and fix bug #81311.
11599 2007-05-30 Jackson Harper <jackson@ximian.com>
11601 * X11Dnd.cs: Now that we have our own event loop, we need to
11602 cancel when we get a mouseup but it won't be accepted.
11604 2007-05-30 Chris Toshok <toshok@ximian.com>
11606 * DataGrid.cs (set_CurrentCell): guard against negative
11609 * DataGridColumnStyle.cs (CheckValidDataSource): just use the
11610 array index syntax instead of looping over the property names.
11612 * DataGridTextBoxColumn.cs: add a changed handler on the textbox,
11613 and set IsInEditOrNavigateMode to false there.
11615 2007-05-30 Jackson Harper <jackson@ximian.com>
11617 * TreeView.cs: Make sure we don't get a bad visible order when
11618 setting to the top node. Fixes some misc crashing in
11621 2007-05-30 Andreia Gaita <avidigal@novell.com>
11623 * UserControl.cs: Add 2.0 AutoSizeMode
11625 2007-05-29 Everaldo Canuto <ecanuto@novell.com>
11627 * DataGridTextBoxColumn.cs: Fix textbox horizontal offset.
11629 2007-05-29 Everaldo Canuto <ecanuto@novell.com>
11631 * DataGridTextBoxColumn.cs: Fix textbox position to prevent override grid
11632 lines. Fixes #80285.
11634 2007-05-29 Everaldo Canuto <ecanuto@novell.com>
11636 * DataGridColumnStyle.cs: Add char trimming column header text format.
11638 2007-05-29 Everaldo Canuto <ecanuto@novell.com>
11640 * DataGridColumnStyle.cs: Fix grid header arrow drawing over column name.
11643 2007-05-29 Jackson Harper <jackson@ximian.com>
11645 * TreeNode.cs: Fix off by one on calculating whether or not a node
11648 2007-05-29 Jonathan Pobst <monkey@jpobst.com>
11650 * Control.cs: ResumeLayout(false) should recalculate anchor distances.
11651 * ScrollableControl.cs: Force an UpdateDistances when we move the
11655 2007-05-29 Andreia Gaita <avidigal@novell.com>
11657 * PageSetupDialog.cs: Fix #80728 - Changing the printer doesn't
11658 update the page setup screen.
11660 2007-05-29 Andreia Gaita <avidigal@novell.com>
11662 * PageSetupDialog.cs: Fix landscape mode.
11664 2007-05-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11666 * SystemInformation.cs: Add 2.0 IconSizeVerticalSpacing and
11667 IconSizeHorizontalSpacing.
11669 2007-05-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11671 * ListView.cs: The declaration of prev_tooltip_item should be inside
11672 a NET_2_0 conditional (avoid a warning).
11674 2007-05-28 Andreia Gaita <avidigal@novell.com>
11676 * PageSetupDialog.cs: Implement PrintPreview control to display
11677 the preview thumbnail. Change unit conversion to use
11678 PrinterUnitConvert methods.
11680 Note: there is a huge bug in ms.net where the default margins are
11681 interpreted as centimeters (?), when in fact they are set in inches. When
11682 loading the page setup dialog initially (ms.net), the default margins
11683 are set to 1 inch, and the dialog shows them with value 10, when in fact
11684 it should be 25 (properly converted). Our dialog doesn't have this bug.
11686 * Theme.cs, ThemeWin32Classic.cs: Add a CPDrawBorder override for
11688 * ControlPaint.cs: Add a DrawBorder internal method for RectangleF.
11690 2007-05-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11693 * ListViewItem.cs: Implement 2.0 ToolTipText support for listview
11696 2007-05-28 Andreia Gaita <avidigal@novell.com>
11698 * X11Dnd.cs: A direct cast to VirtualKeys is not allowed from
11699 an IntPtr on csc (it builds fine on mcs, could it be a compiler
11700 bug?), convert the ptr to Int32 first.
11702 2007-05-28 Jackson Harper <jackson@ximian.com>
11704 * X11Dnd.cs: Add a timer, so after drop, if a finish is not
11705 recieved, we will exit the dnd tracking loop.
11707 2007-05-28 Jackson Harper <jackson@ximian.com>
11709 * X11Dnd.cs: Keep tracking until the xdnd finished event is
11710 recieved. TODO: I should probably stick a timer on the dropped
11711 event, and finish the drag if the XDND Finished event never shows
11712 (because some apps don't seem to send it).
11714 2007-05-28 Everaldo Canuto <ecanuto@novell.com>
11716 * ToolBar.cs: Fix toolbar default width for button with image. Fixes
11719 2007-05-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
11721 * MonthCalendar.cs: Only mark the keypresses we actually handle as
11724 2007-05-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
11726 * MonthCalendar.cs: Set the size after initializing all the relevant
11727 variables. Fixes #81742.
11729 2007-05-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
11731 * KeyEventArgs.cs: Fix typo.
11733 2007-05-28 Gert Driesen <drieseng@users.sourceforge.net>
11735 * DateTimePicker.cs: Changed exceptions thrown by MinDate and MaxDate
11736 to match MS. Fixed MinDate to only accept value less than or equal
11737 to MaxDate on 2.0 profile and less than MaxDate on 1.0 profile.
11738 Removed TODO's that are now verified by unit tests.
11740 2007-05-27 Gert Driesen <drieseng@users.sourceforge.net>
11742 * TreeNodeCollection.cs: Minor corrections to exceptions to match
11745 2007-05-25 Jackson Harper <jackson@ximian.com>
11747 * X11Dnd.cs: Rework to make StartDrag a blocking call that runs
11748 it's own message loop.
11749 * XplatUIX11.cs: Remove some of the dnd hooks
11751 2007-05-25 Gert Driesen <drieseng@users.sourceforge.net>
11753 * XplatUIX11.cs: Change MinimumWindowSize to {Width=0,Height=0}
11754 instead of MinimizedWindowSize.
11756 2007-05-25 Jackson Harper <jackson@ximian.com>
11758 * TextBoxBase.cs: Raise textchanged when cutting and pasting text.
11760 2007-05-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
11762 * KeyEventArgs.cs: Added SuppressKeyPress.
11763 * Control.cs: Added support for SuppressKeyPress.
11765 2007-05-24 Andreia Gaita <avidigal@novell.com>
11767 * NumericUpDown.cs: Refactor code to fix regressions on #79950 and
11768 problems with PieChart. suppress_validation should not be a counter,
11769 if there are several BeginInit calls, the first EndInit will
11770 activate validation. Fix exceptions thrown by set_Value.
11771 * UpDownBase.cs: ValidateText only if it's the user editing it.
11773 2007-05-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11775 * ListControl.cs: FilterItemOnProperty should return the filtered
11776 item proeprty even if DataSource is null. The same applies for
11777 GetItemText. Fixes #80427.
11779 2007-05-24 Jonathan Pobst <monkey@jpobst.com>
11781 * Control.cs: If a control doesn't have a parent when it's Dock is
11782 set, but it has children, it needs to do a layout. Fixes some nested
11783 controls issues. [Fixes bug #81199]
11785 2007-05-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
11787 * ComboBox.cs: If there are few items in the drop down list, make it
11788 the exact size the items need, no bigger. Fixes #81612.
11790 2007-05-24 Jonathan Pobst <monkey@jpobst.com>
11792 * Application.cs: When we have captured the keyboard for a menu,
11793 check for mouse down events in case we need to close the menu.
11794 * Control.cs, Form.cs: Remove mouse down checks for menus.
11796 2007-05-24 Jackson Harper <jackson@ximian.com>
11798 * TextControl.cs: Handle tabs in non multiline mode a little
11801 2007-05-24 Jackson Harper <jackson@ximian.com>
11803 * TextControl.cs: We need to manually break apart tabbed text and
11804 move the tabs, since the system.drawing tabbing mechanism relies
11806 * TextBoxBase.cs: Move the caret properly when the user enters a
11809 2007-05-24 Jonathan Pobst <monkey@jpobst.com>
11811 * ContainerControl.cs: Don't check CanSelect before calling
11813 * ToolStrip.cs: Only do implicit mnemonics on MenuStrips. Don't
11814 release a KeyboardActive on click if it's not ours.
11816 2007-05-23 Andreia Gaita <avidigal@novell.com>
11818 * ColumnHeader.cs: Add TypeConverter
11820 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
11822 * LinkLabel.cs: Implement LinkCollection.Add with Link parameter (2.0).
11824 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
11826 * LinkLabelLinkClickedEventArgs.cs, LinkLabel.cs: Implement Button property.
11828 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
11830 * LinkLabel.cs: Implement public Padding property.
11832 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
11834 * LinkLabel.cs: Implement public FlatStyle.
11836 2007-05-23 Jonathan Pobst <monkey@jpobst.com>
11838 * Control.cs: Apply patch from George to call parent.PerformLayout
11839 when Visible is changed. [Fixes bugs #81118, 81718]
11841 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
11843 * MainMenu.cs, MenuAPI.cs: Implement Collapse event for MainMenu (2.0).
11845 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
11847 * ContextMenu.cs: Implement ProcessCmdKey with control parameter.
11849 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
11851 * ContextMenu.cs: Implement Collapse.
11853 2007-05-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
11855 * ToolBarButton.cs: Implement Name.
11857 2007-05-22 Everaldo Canuto <ecanuto@novell.com>
11859 * ToolBar.cs: Fix OnButtonDropDown to save item used in dropdown instead of
11860 use current_item, it prevents some NRE. Fixes #81675.
11862 2007-05-22 Andreia Gaita <avidigal@novell.com>
11864 * NumericUpDown.cs: Fix PieChart by not returning from UpdateEditText
11865 without updating the text.
11867 2007-05-22 Jonathan Pobst <monkey@jpobst.com>
11869 * XplatUIWin32.cs: Plug a GDI leak caused by calling Font.ToHfont ()
11870 without calling DeleteObject. [Should fix bug #81709]
11872 2007-05-22 Jackson Harper <jackson@ximian.com>
11874 * RichTextBox.cs: Set the line endings correctly, when flushing
11877 2007-05-22 Gert Driesen <drieseng@users.sourceforge.net>
11879 * XplatUIX11.cs: MinimumWindowSize on X11 is actually
11880 {Width=0,Height=0}.
11882 2007-05-22 Jackson Harper <jackson@ximian.com>
11884 * TreeView.cs: Setting top with a null node should set to the very
11887 2007-05-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
11889 * Form.cs: ShowDialog: destroy the handle when message loop is
11890 finished, matches MS behaviour. Refactor parts of WmClose into
11891 RaiseCloseEvents, that only raises events if they haven't already
11892 been raised. Fixes #81688 and #81521.
11893 * Application.cs: Don't call close on the form when exiting a modal
11894 loop, it will raise all the (Form)Closed/Closing events again if
11895 WM_CLOSE has been sent earlier on, instead call RaiseCloseEvent,
11896 which doesn'r raise any events it they have been raised before.
11898 2007-05-22 Jonathan Pobst <monkey@jpobst.com>
11900 * Control.cs: Add OnPrint.
11901 * ToolStrip.cs: Add GetChildAtPoint.
11902 * ToolStripContainer.cs: Add OnRightToLeftChanged.
11903 * ToolStripRenderer.cs: Make CreateMirrorImage internal.
11905 2007-05-22 Everaldo Canuto <ecanuto@novell.com>
11907 * MenuAPI.cs: Prevent context menu to be typed as MainMenu. Fixes #81509.
11909 2007-05-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
11911 * InternalWindowManager.cs: ToolTipShow: Don't show tooltip if the form
11912 isn't visible anymore. Fixes #81651.
11914 2007-05-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
11916 * Control.cs: WmShowWindow: Update children's z-order after setting
11917 their parent. SetParent may show the window, thereby corrupting
11918 z-order, since the window will be shown on top.
11919 * XplatUIWin32.cs: SetParent: don't call SetVisible on forms. Prevents
11920 multiple (and redundant) WM_SHOWWINDOW messages.
11921 * MdiWindowManager.cs: RaiseDeactivate: only raise after an Activate
11922 event has already been raised.
11923 * Form.cs: Change is_changing_visible_state to a counter, since
11924 SetVisibleCore can be called recursively. CreateHandle: when
11925 creating mdi children, send (De)Activated events.
11926 * MdiClient.cs: Update use of is_changing_visible_state.
11927 * Application.cs: OnThreadException: Surround exception handling with
11928 try/finally to ensure we always reset the error-handling state
11931 2007-05-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
11933 * ThemeWin32Classic.cs: DrawProgressBar: Avoid a DivideByZero exception
11936 2007-05-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11938 * ListView.cs: Use Theme.ListViewHorizontalSpacing for List and
11939 SmallIcon views, now that we have a standarized horizontal spacing.
11941 * ThemeWin32Classic.cs: ListViewHorizontalSpacing now has a value of
11942 4, just like the other views (Match .Net).
11944 2007-05-21 Jonathan Pobst <monkey@jpobst.com>
11946 * Control.cs: Delay calculating anchor distances until we actually layout.
11947 Always query the WM for the actual size and location it put us at instead of
11948 only when we send negative values.
11949 [Fixes bugs #81694, 81695]
11951 2007-05-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
11953 * Application.cs: Avoid a possible stack overflow when trying to exit
11956 2007-05-19 Marek Safar <marek.safar@gmail.com>
11958 * Theme.cs (GetHatchBrush): A key uses internal value instead of formated
11961 2007-05-19 Andreia Gaita <avidigal@novell.com>
11963 * NumericUpDown.cs: Added 2.0 methods (spin acceleration)
11964 * NumericUpDownAcceleration.cs,
11965 NumericUpDownAccelerationCollection.cs: Added 2.0
11968 2007-05-19 Gert Driesen <drieseng@users.sourceforge.net>
11970 * RichTextBox.cs: Recalculate the document after the ScrollBars
11971 property is changed. Fixes bug #81681.
11973 2007-05-18 Jonathan Pobst <monkey@jpobst.com>
11975 * DataObject.cs: Implement 2.0 methods.
11977 2007-05-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11979 * ThemeWin32Classic.cs: Draw the check marks in ListViewItems
11980 in the center of the checkbox, not in the left-top corner.
11983 2007-05-18 Jackson Harper <jackson@ximian.com>
11985 * RichTextBox.cs: Recalculate the document after the scrollbars
11986 property is changed.
11987 * TextBoxBase.cs: ScrollBars is not a flags enum...This fixes
11990 2007-05-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
11992 * CreateParams.cs: Make HasWindowManager marginally faster.
11993 * XplatUIX11.cs, Hwnd.cs: CreateWindow: Move the default location code
11994 into Hwnd so that other drivers can use it as well.
11995 * XplatUIWin32.cs: CreateWindow: If the window has a window manager get
11996 the default location from Hwnd. Fixes MDI client windows always
11997 showing up at (0,0) in Windows (Win32 won't set the default
11998 location since the window styles aren't correct).
12000 2007-05-18 Gert Driesen <drieseng@users.sourceforge.net>
12002 * TreeView.cs: Modified DoubleBuffered to just use the base
12005 2007-05-18 Jackson Harper <jackson@ximian.com>
12007 * TreeView.cs: Set the top node to the last child node when
12009 - When we get focus, if there is no selected node, use the top
12012 2007-05-18 Jonathan Pobst <monkey@jpobst.com>
12014 * KeysConverter.cs: Add CanConvertTo.
12015 * LinkLabel.cs: Add some 2.0 constructors and properties to LinkLabel.Link.
12016 * LinkConverter.cs: Added.
12018 2007-05-18 Everaldo Canuto <ecanuto@novell.com>
12020 * Cursor.cs: Apply Sebastien patch from #81669 to open file in read mode,
12021 it prevents error when file dont have write access. Fixes #81669 and #81667.
12023 2007-05-18 Everaldo Canuto <ecanuto@novell.com>
12025 * ThemeWin32Classic.cs: Check for ShowKeyboardCues true when draw toolbar
12026 button text. Fixes #79640.
12028 2007-05-18 Everaldo Canuto <ecanuto@novell.com>
12030 * Control.cs: According to MSDN controls created in the designer theres
12031 keyboard accelerators visible by default. So included check for design
12032 in ShowKeyboardCuesInternal.
12034 2007-05-18 Everaldo Canuto <ecanuto@novell.com>
12036 * ThemeWin32Classic.cs: Check for ShowKeyboardCues true when draw combobox
12037 text. Fixes #81621.
12039 2007-05-18 Everaldo Canuto <ecanuto@novell.com>
12041 * Control.cs: ShowKeyboardCuesInternal add to expose ShowKeyboardCues
12042 for 1.0, becuse ShowKeyboardCues is protected on 1.0.
12044 2007-05-17 Everaldo Canuto <ecanuto@novell.com>
12046 * Control.cs: Finish implementation of UI State using WmChangeUIState
12047 to send WM_UPDATEUISTATE to all child controls. Some hack will be needed
12048 in some controls to check for show_keyboard_cues to draw accell keys "_".
12050 2007-05-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12052 * ListBox.cs: When calculating the horizontal scrollbar
12053 in single column mode, don't use values less than 0 for
12054 Maximum. Fixes #81474.
12056 2007-05-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12058 * ListBox.cs: Throw the some missing exceptions in
12059 ListBox.ObjectCollection methods.
12061 2007-05-17 Jackson Harper <jackson@ximian.com>
12063 * TextBoxBase.cs: Recalculate the document when the word wrap
12064 value has changed. This fixes 81488.
12066 2007-05-17 Jonathan Pobst <monkey@jpobst.com>
12068 * Clipboard.cs: Implement missing GetText overload.
12070 2007-05-17 Chris Toshok <toshok@ximian.com>
12072 * Control.cs (CheckDataBindings): remove the binding_context arg
12075 * CurrencyManager.cs (OnItemChanged): fix this now that
12076 BindingManagerBase is fixed. also remove the comment telling where
12077 the fix should go. We set transfering_data to true/false around
12078 the call to PushData to keep UpdateIsBinding from being called.
12079 (ListChangedHandler): remove the extra OnMetaDataChanged call for
12080 PropertyDescriptorAdded in the 1.1 case. The extra call is
12081 actually generated by System.Data generating 2 metadata changed
12082 events of its own per column add. The fix should go there. Add a
12083 comment to that affect in our test's Assert.Ignore.
12085 * BindingManagerBase.cs: Rework PullData and PushData slightly.
12086 we keep a boolean flag (transfering_data) that keeps us from
12087 calling UpdateIsBinding multiple times if we re-enter either of
12090 * ControlBindingsCollection.cs (AddCore): remove the
12091 binding_context arg to binding.Check.
12093 * Binding.cs (IsBinding): don't check if we're binding here, just
12094 return our cached value. we update it in UpdateIsBinding.
12095 (Check): don't take the binding_context arg, we'll just use our
12096 control's. Also, for some reason MS doesn't use the data member
12097 field when getting the bindingmanager for this binding. it just
12098 uses the datasource. Make this method callable multiple times,
12099 and only do the is_null_desc stuff if manager.Position != -1 (so
12100 we don't get an exception accessing manager.Current).
12101 (UpdateIsBinding): move the code from IsBinding here.
12102 (PositionChangedHandler): call Check here to we can initialize
12103 things that require a non- -1 position.
12105 2007-05-17 Everaldo Canuto <ecanuto@novell.com>
12107 * Form.cs: When alt keys is pressed send WM_CHANGEUISTATE to top level
12110 2007-05-17 Andreia Gaita <avidigal@novell.com>
12112 * TabControl.cs: Add 2.0 methods and events, including
12113 OnEnter / OnLeave and raises it for tabpages (fixes #79869)
12114 * TabPage.cs: Add 2.0 methods
12116 2007-05-17 Everaldo Canuto <ecanuto@novell.com>
12118 * Control.cs: Implement WmUpdateUIState, show_focus_cues and
12119 keyboard_cues is properly handled by message method.
12121 2007-05-17 Jonathan Pobst <monkey@jpobst.com>
12123 * TreeViewImageIndexConverter.cs: Add 2.0 methods.
12125 2007-05-17 Jonathan Pobst <monkey@jpobst.com>
12127 * ToolStripTextBox.cs: Wire up new 2.0 Textbox methods/properties.
12129 2007-05-16 Everaldo Canuto <ecanuto@novell.com>
12132 - WmUpdateUIState added to handle state changes, it make call to
12133 OnChangeUICues event.
12134 - Fixed ShowKeyboardCues to check for MenuAccessKeysUnderlined in
12137 2007-05-16 Jonathan Pobst <monkey@jpobst.com>
12139 * ImageKeyConverter.cs: Added.
12140 * TreeViewImageKeyConverter.cs: Added.
12142 2007-05-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12144 * ToolTips.cs: Update Text if SetToolTip is called for a control
12145 already showing the tooltip, as well as restarting its timer; show
12146 tooltip if we are inside the control bounds by the time of calling
12147 SetToolTip. Inside ShowTooltip remove the check to not show the
12148 tooltip again for the active control (it is allowed by .Net to
12149 show the tooltip on the same control multiple times).
12151 2007-05-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
12153 * MaskedTextBox.cs: Small fix for Text that fixes a broken test.
12155 2007-05-16 Andreia Gaita <avidigal@novell.com>
12157 * ContainerControl.cs: only process tab key if there are no
12158 modifier keys present, otherwise the control does the
12159 tab processing, if it needs to. Fixes #81622
12160 * TabControl.cs: Fixes calculation for which tab to select on
12163 2007-05-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
12165 * MaskedTextBox.cs: Small fix for Text that fixes a broken test.
12167 2007-05-15 Jonathan Pobst <monkey@jpobst.com>
12169 * Control.cs: Make IsInputCharInternal to allow controls to
12170 override it and still match MS API.
12171 * TextBoxBase.cs: Override IsInputCharInternal and always
12175 2007-05-15 Jackson Harper <jackson@ximian.com>
12177 * TextBox.cs: Disable some of the menu options when using a
12180 2007-05-15 Jackson Harper <jackson@ximian.com>
12184 * RichTextBox.cs: Some new 2.0 methods
12186 2007-05-15 Gert Driesen <drieseng@users.sourceforge.net>
12188 * FileDialog.cs: On 1.0 profile, do not support multidotted
12191 2007-05-14 Jackson Harper <jackson@ximian.com>
12193 * TextBoxBase.cs: Implement some of the new 2.0 methods.
12194 * RichTextBox.cs: We need to override these methods on 2.0.
12195 * MaskedTextBox.cs: These are implemented now
12196 * TextControl.cs: This was off by one.
12198 2007-05-14 Jackson Harper <jackson@ximian.com>
12200 * TextControl.cs: Because the line endings are including in the
12201 text, we don't need to add them in anymore.
12203 2007-05-11 Everaldo Canuto <everaldo@simios.org>
12205 * ToolBar.cs: Fix autosize and get it working only after hadle is created,
12206 also prevent redraw in set_autosize if handle is not created. Fixes #81523.
12208 2007-05-11 Everaldo Canuto <everaldo@simios.org>
12210 * ToolBar.cs: Adjust size to default size when button theres no text and
12211 image, it fixes remaining issues from #81524.
12213 2007-05-11 Everaldo Canuto <everaldo@simios.org>
12216 - When not flat call redraw to recalculate sizes on creare handle to match
12218 - Revert 77220 because it causes some regressions in toobar
12221 2007-05-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
12223 * MaskedTextBox.cs: Update the base text whenever the text changes. MTB
12224 now actually enters a usable state.
12226 2007-05-11 Everaldo Canuto <everaldo@simios.org>
12228 * ToolBar.cs: Check for handle created in redraw to prevent unneeded size
12229 calculations, it reduces the size cauculation from 7 to 3 on a toolbar with
12232 2007-05-11 Everaldo Canuto <everaldo@simios.org>
12234 * ToolBar.cs: Save default_size on create handle to use later for buttons
12235 without text, needed to mimic win32 behavior.
12237 2007-05-11 Everaldo Canuto <everaldo@simios.org>
12239 * ToolBar.cs: Fix button layour to best fit width or height according to
12240 vertical or not. Fixes #81524.
12242 2007-05-10 Everaldo Canuto <everaldo@simios.org>
12244 * ToolBarButton.cs: When change style call ToolBar.Redraw to update
12245 toolbar size info because different styles theres different sizes.
12248 2007-05-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12250 * ThemeWinClassic.cs: For .Net 2.0 don't draw any image
12251 if we are using checkboxes, checked is true, and we have less
12252 than two images in StateImageList; for the 1.1 in the same scenario
12253 draw the first image if we have at least one image in StateImageList.
12254 Fixes part of #81191.
12256 2007-05-10 Jonathan Pobst <monkey@jpobst.com>
12258 * ToolStrip.cs, ToolStripManager.cs: We need to remove items from
12259 the owner's Items collection on merge.
12261 2007-05-10 Jonathan Pobst <monkey@jpobst.com>
12263 * ToolStrip.cs: Use new internal ToolStripItemCollection constructor.
12264 * ToolStripItemCollection.cs: Lots of fixes to when events get called
12265 and parent/owner gets changed based on gert's unit tests.
12267 2007-05-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
12269 * MaskedTextBox.cs: Started implementing parts of it.
12271 2007-05-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12273 * ListView.cs: When clicking the checkbox on the items
12274 take into account the double clicks even if we have only
12275 one image in StateImageList (only for 1.0/1.1). Also
12276 generate an extra change of checked state when we receive
12277 the second click on checkbox (match .Net behaviour).
12278 Fixes part of #81191.
12280 2007-05-10 Everaldo Canuto <everaldo@simios.org>
12282 * ThemeWin32Classic.cs: Fix text rectangles in Tooltips.
12284 2007-05-10 Jonathan Pobst <monkey@jpobst.com>
12286 * Form.cs: Move some of OnLoad to OnLoadInternal so it gets called
12287 even if OnLoad is overriden and base.OnLoad is not called.
12290 2007-05-10 Andreia Gaita <avidigal@novell.com>
12292 * TableLayoutSettings.cs: A big doh! fix and bowing down of head in
12293 shame. (I blame my ever-persisting and annoying cold)
12295 2007-05-09 Jonathan Pobst <monkey@jpobst.com>
12297 * ListView.cs: Don't eat navigation keys. Let them flow through to
12298 KeyDown/KeyPress routines. [Fixes bug #81569]
12300 2007-05-09 Jonathan Pobst <monkey@jpobst.com>
12302 * ListView.cs: When handling keys for selecting the item based off
12303 keyboard input, do not consider keys pressed with Alt or Control. Also,
12304 correctly handle keys when the Shift key is down. [Fixes bug #81578]
12306 2007-05-09 Jonathan Pobst <monkey@jpobst.com>
12308 * Control.cs: When using UseWaitCursor, we have to store the requested
12309 Cursor to use when UseWaitCursor is turned off.
12311 2007-05-09 Jonathan Pobst <monkey@jpobst.com>
12313 * Control.cs: Implement PreProcessControlMessage. Default IsInputChar
12315 * Application.cs: Use PreProcessControlMessage instead of
12317 * PreProcessControlMessage.cs: Make internal for 1.1.
12319 2007-05-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12321 * Control.cs: Add InternalContains focus property, which hast the same
12322 functionality of ContainsFocus, but also including implicit controls.
12323 * ListViewItem.cs: Use InternalContainsFocus instead of ContainsFocus,
12324 since we need to know if the focus is contained in our implicit
12325 ItemControl when calculating Layout. Fixes part of #80888.
12327 2007-05-08 Everaldo Canuto <everaldo@simios.org>
12329 * ToolTip.cs: Remove center form string alignment as it must be align to
12332 2007-05-08 Jonathan Pobst <monkey@jpobst.com>
12334 * ToolStripItemCollection.cs: Set the new item's parent and owner
12335 in Insert like we do in Add. [Fixes bug #81568]
12337 2007-05-08 Jackson Harper <jackson@ximian.com>
12339 * TreeView.cs: GotFocus differences between 1.1 and 2.0.
12340 - Off by one error in SetTop
12341 - Disable DoubeBuffering
12343 2007-05-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
12345 * ScrollableControl.cs: ScrollIControlntoView: we now only move the
12346 control as much as necessary in order to make it entirely visible,
12347 instead of centering the control in the container (matches MS
12348 behaviour). CalculateCanvasSize: we need to take the current scroll
12349 position into account when calculating the maximum canvas,
12350 otherwise the following scenario will fail: resize so that the
12351 scrollbars appear, use the scrollbars to scroll, resize again
12352 smaller, and now the canvas size is too small. Recalculate: when
12353 showing scrollbars make sure they start off at 0, and try to scroll
12354 the active control into view. Fixes #79540. HandleScrollBar: don't
12355 scroll anywhere if the scrollbar isn't visible.
12357 2007-05-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12359 * ListView.cs: When focus changed, call Layout/Invalidate
12360 in the focused item to update the selected state (should show
12361 entire label when ListView is focused, and a part of it if is not).
12362 * ListViewItem.cs: When doing layout for LargeIcon, take into account
12363 for displaying the entire label not only the Focused state of the
12364 item, but also the Focused state of the ListView (match .Net
12367 2007-05-07 Jonathan Pobst <monkey@jpobst.com>
12369 * Control.cs: Stub CanRaiseEvents, IsMirrored, and NotifyClients.
12370 Implement UseWaitCursor.
12372 2007-05-07 Jonathan Pobst <monkey@jpobst.com>
12373 Applying contributed patch from Sergey Volk.
12375 * Clipboard.cs: Implement SetDataObject retry logic and new overload
12377 * XplatUIWin32.cs: Throw an ExternalException if the clipboard set fails.
12379 2007-05-07 Jonathan Pobst <monkey@jpobst.com>
12381 * Control.cs: Implement DrawToBitmap.
12383 2007-05-07 Jonathan Pobst <monkey@jpobst.com>
12384 Applying contributed patch from Stefan Noack.
12386 * Control.cs: Add [Get|Set]AutoSizeMode.
12388 2007-05-07 Jonathan Pobst <monkey@jpobst.com>
12390 * MdiClient.cs: Unmerge menus when the last child is closed.
12392 2007-05-07 Jonathan Pobst <monkey@jpobst.com>
12394 * ToolStrip.cs: Do not call BeginMerge on DropDowns.
12395 * ToolStripManager.cs: Call Merge on DropDowns.
12398 2007-05-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
12400 * XplatUIWin32.cs: Changed Win32CreateWindow to take enums instead of
12402 * Form.cs: CreateParams: don't set WS_VISIBLE if we're changing
12403 visibility. We can't create forms visible, since we have to set the
12404 owner before making the form visible (otherwise Win32 will do
12405 strange things with task bar icons). The problem is that we set the
12406 internal is_visible to true before creating the control, so
12407 is_changing_visible_state is the only way of determining if we're
12408 in the process of creating the form due to setting Visible=true -
12409 this works because SetVisibleCore explicitly makes the form
12410 visibile afterwards anyways. Fixes #80775.
12412 2007-05-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12414 * ThemeWin32Classic.cs: When drawing ListViewItems,
12415 use StringTrimming.EllipsisCharacter if the view is Tile, Details,
12416 or LargeIcon _and_ item is not focused (match .Net behaviour).
12418 2007-05-04 Jonathan Pobst <monkey@jpobst.com>
12420 * Control.cs, Form.cs: Fix some obsolete method warnings.
12422 2007-05-04 Jonathan Pobst <monkey@jpobst.com>
12424 * Control.cs: Implement GetChildAtPoint and OnParentCursorChanged.
12425 * GetChildAtPointSkip.cs: Make internal for 1.1 profile.
12427 2007-05-04 Andreia Gaita <avidigal@novell.com>
12429 * ContainerControl.cs: Fix active_control attribution when going
12430 up the parent chain so that the first parent container gets the control
12431 and the rest of the parent containers get the child containers (skips
12432 non-containers). Fixes #80729
12434 2007-05-04 Randolph Chung <tausq@debian.org>
12436 * FileDialog.cs: Implement the SupportMultiDottedExtensions property.
12439 2007-05-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
12441 * XplatUIX11.cs: Add a TranslateWindowSizeToXWindowSize overload that
12442 takes a size parameter, since the CreateParam's size isn't true for
12443 minimized forms. Fixes #81518,
12445 2007-05-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
12447 * Form.cs: Add OnDeactivateInternal.
12448 * MdiClient.cs: Raise Deactivate event. Fixes #81409.
12450 2007-05-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
12452 * DateTimePicker.cs: CalculateDropDownLocation: do a null check before
12453 accessing the parent. Fixes #81508.
12455 2007-05-03 Chris Toshok <toshok@ximian.com>
12457 * CurrencyManager.cs (CurrencyManager.ListChangeHandler): in the
12458 2.0 block, pass listposition + 1 to ChangeRecordState when a row
12459 was added before the current listposition. Fixes the
12460 TestInsertRowBeforeCurrent unit test.
12462 2007-05-03 Jonathan Pobst <monkey@jpobst.com>
12464 * Application.cs: Add RaiseIdle.
12465 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
12466 XplatUIX11.cs: Implement RaiseIdle.
12468 2007-05-02 Jonathan Pobst <monkey@jpobst.com>
12469 corcompare work: N - Z
12473 * ScrollableControl.cs
12474 * SplitContainer.cs
12477 * SystemInformation.cs
12479 * TableLayoutControlCollection.cs
12480 * TableLayoutPanel.cs
12485 * ToolStripComboBox.cs
12486 * ToolStripContainer.cs
12487 * ToolStripContentPanel.cs
12488 * ToolStripDropDown.cs
12489 * ToolStripDropDownItem.cs
12490 * ToolStripDropDownMenu.cs
12492 * ToolStripItemCollection.cs
12493 * ToolStripMenuItem.cs
12494 * ToolStripPanel.cs
12495 * ToolStripSplitButton.cs
12498 * TreeNodeCollection.cs
12499 * TreeNodeMouseHoverEventArgs.cs
12502 2007-05-01 Everaldo Canuto <everaldo@simios.org>
12504 * ContextMenu.cs: Add public method Show with alignment property to 2.0
12505 stuff. Thanks aatdark for the patch.
12507 2007-05-01 Jonathan Pobst <monkey@jpobst.com>
12509 * GridItem.cs: Implement 2.0 Tag property.
12511 2007-05-01 Frederik Carlier <frederik.carlier@carlier-online.be>
12513 * TreeNodeCollection.cs: Fix ContainsKey and IndexOfKey methods to use
12514 count instead of Nodes.Length. [Fixes bug #81448]
12516 2007-05-01 Jonathan Pobst <monkey@jpobst.com>
12518 * ComboBox.cs: Fix paramName sent to ArgumentOutOfRangeException's.
12521 2007-05-01 Jonathan Pobst <monkey@jpobst.com>
12522 corcompare work: A - M
12523 * BindingNavigator.cs
12528 * FlowLayoutPanel.cs
12534 2007-05-01 Jonathan Pobst <monkey@jpobst.com>
12536 * Application.cs: Give toolstrips a chance to process mnemonics.
12537 * ToolStrip.cs, ToolStripDropDownButton.cs, ToolStripItem.cs,
12538 ToolStripItemTextRenderEventArgs.cs, ToolStripLabel.cs,
12539 ToolStripMenuItem.cs, ToolStripSplitButton.cs: Implement keyboard mnemonics.
12541 2007-05-01 Jackson Harper <jackson@ximian.com>
12543 * TextBoxBase.cs: Better preferred height, FixedSingle gets the
12545 - Don't set the BoundsSpecified
12547 2007-04-30 Jonathan Pobst <monkey@jpobst.com>
12549 * Application.cs: When using the toolstrip shortcut mechanism, allow the
12550 message to pass through to a regular control if it hosted by a toolstrip.
12551 * ToolStrip.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
12552 ToolStripManager.cs: Enable keyboard navigation for ToolStrips.
12554 2007-04-30 Jonathan Pobst <monkey@jpobst.com>
12556 * TextRenderer.cs: Use the flags argument when using the MeasureString
12557 fallback algorithm.
12559 2007-04-30 Jonathan Pobst <monkey@jpobst.com>
12561 * MenuStrip.cs: Don't let multiple ToolStripSeparators get added to
12562 the MDI menu item. [Fixes bug #81483]
12564 2007-04-30 Gert Driesen <drieseng@users.sourceforge.net>
12566 * DataGridViewColumn.cs: Initialize value of headercell to zero-length
12567 string. When setting Name to null, use zero-length string instead.
12569 2007-04-29 Andreia Gaita <avidigal@novell.com>
12571 * TabControl.cs: Implement missing 2.0 methods (SelectTab,
12572 DeselectTab). Implement missing 2.0 TabPageCollection methods
12573 (Add, ContainsKey, RemoveByKey, IndexOfKey)
12575 2007-04-29 Pedro Martínez Juliá <pedromj@gmail.com>
12577 * DataGridViewColumn.cs: Make HeaderText take preference over Name.
12579 2007-04-29 Gert Driesen <drieseng@users.sourceforge.net>
12581 * RichTextBox.cs: In LoadFile, use StreamReader to read plain text.
12582 Fixes bug #81479. Include details of exception when LoadFile fails.
12584 2007-04-28 Alan McGovern <alan.mcgovern@gmail.com>
12586 * DrawListViewSubItemEventArgs.cs: Added missing setter
12588 2007-04-27 Andreia Gaita <avidigal@novell.com>
12590 * ToolTip.cs: Add missing 2.0 properties. Implement 2.0 Show and
12591 Hide methods (not complete). Implement missing 2.0 OnPopup event.
12593 2007-04-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12595 * ListView.cs: In ItemControl.OnMouseDown restore a pair of braces I
12596 removed in ly last commit (it was breaking the Label edit feature).
12598 * ThemeWin32Classic.cs: When drawing a ListViewItem use
12599 StringAlignment.Near for LineAlignment (match .Net).
12601 2007-04-27 Andreia Gaita <avidigal@novell.com>
12603 * TabControl.cs: Change SetTab so it adds the tabpage to the list
12604 of controls if it isn't already there - was blowing up when doing
12605 tabcontrol.TabPages[i]=new TabPage().
12606 SetTab now does a replace by removing the page at the index.
12607 Add a new InsertTab method that inserts a page in a given index
12608 instead of replacing.
12609 Implements TabPageCollection.Insert(int, TabPage).
12611 2007-04-27 Chris Toshok <toshok@ximian.com>
12613 * BindingManagerBase.cs: fill in CurrentItemChanged (and have an
12614 internal handler that can be invoked from our subclasses.) Also,
12615 add a comment to PushData about how we need to fix it.
12617 * CurrencyManager.cs: tons of changes here. trying to get things
12618 matching the behavior of .net wrt event orders (ItemChanged,
12619 CurrentChanged, PositionChanged.) I've implemented a private .net
12620 symbol (ChangeRecordState) that appears in stack traces because
12621 it's actually easier to do this than to effective inline all its
12622 various behaviors at every call site.
12624 * RelatedPropertyManager.cs: guard against an exception here by
12625 not using parent.Current if the position is set to -1 (if the
12626 parent datasource is cleared, for instance).
12628 * Binding.cs: don't parse data in PushData (this might be wrong,
12629 but it jives with MS's behavior.) Also, don't call PushData when
12630 we get a CurrentChanged event.
12632 2007-04-27 Andreia Gaita <avidigal@novell.com>
12636 WebBrowserSiteBase.cs,
12637 HtmlDocument.cs: Added stubbed out classes, no real implementations
12640 2007-04-27 Everaldo Canuto <everaldo@simios.org>
12642 * MainMenu.cs: In draw method without parameters call draw method with
12643 PaintEvent, another one (just rect) adjust rectangle and we dont need it
12644 as Rect property is already adjusted. Fixes #80694.
12646 2007-04-27 Jonathan Pobst <monkey@jpobst.com>
12648 * Application.cs: Need to handle keyboard menu deselection here.
12649 * Control.cs: Use WM_SYSKEYUP instead of WM_SYSCOMMAND to start menu keyboard
12650 navigation, allowing keyboard to work on X11.
12651 * ToolStrip.cs: Don't worry about handling the Menu key here anymore.
12653 2007-04-27 Everaldo Canuto <everaldo@simios.org>
12655 * MenuAPI.cs: When deactivate menu verify if hotkey (_) is active and redraw
12656 menu bar. It fixes some drawing issues in menu bar.
12658 2007-04-27 Everaldo Canuto <everaldo@simios.org>
12660 * MenuAPI.cs: Remove unneeded "keynav_state = KeyNavState.Idle" before
12661 Deactivate calls, Deactivate method already do it. Also ser ActiveTracker
12662 when <alt> key is pressed.
12664 2007-04-26 Everaldo Canuto <everaldo@simios.org>
12666 * XplatUIX11.cs: Simplify SystrayRemove to be like other libraries, Gtk as
12667 example just set visible to false and make this prevent from other problems.
12668 In SystrayAdd always remove pending expose. Fixes #81072.
12670 2007-04-26 Marek Safar <marek.safar@gmail.com>
12672 * TextBoxBase.cs (CaretMoved): Consider scroll maximum when scroll
12675 2007-04-26 Alan McGovern <alan.mcgovern@gmail.com>
12677 * ListView.cs: Added three missing 2.0 events and corresponding
12678 EventHandlers. Added the OwnerDraw property.
12679 * DrawListViewColumnHeaderEventHandler.cs: fixed typo
12681 2007-04-26 Alan McGovern <alan.mcgovern@gmail.com>
12683 * DrawListViewItemEventArgs.cs
12684 * DrawListViewSubItemEventArgs.cs: Brought classes up to 2.0 status.
12686 2007-04-26 Alan McGovern <alan.mcgovern@gmail.com>
12688 * TextControl.cs: Fixed typo in constructor
12690 2007-04-26 Jonathan Pobst <monkey@jpobst.com>
12692 * Application.cs: Create a shortcut path so that currently selected
12693 MenuStrips can intercept keyboard events without having focus.
12694 * Control.cs: Handle WM_SYSCOMMAND message to activate MenuStrips.
12695 * MenuStrip.cs, ToolStrip.cs, ToolStripDropDown.cs, ToolStripDropDownItem.cs,
12696 ToolStripItem.cs, ToolStripManager.cs, ToolStripMenuItem.cs: Support
12697 keyboard navigation (arrows, tab, enter, esc) on Windows. Still need to
12698 generate WM_SYSCOMMAND message in X11 for other platforms.
12699 * ToolStripProfessionalRenderer.cs: ToolStripMenuItems need to be painted
12700 in OnRenderMenuItemBackground instead of OnRenderButtonBackground.
12701 * ToolStripSplitButton.cs: Add DefaultItem property.
12703 2007-04-26 Everaldo Canuto <everaldo@simios.org>
12705 * MainMenu.cs: In OnMenuChanged pass PaintEventArgs to Draw method, it
12706 fixes some menu draw problem on Windows with border diferent from default
12707 it also fixes #81403.
12709 2007-04-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
12711 * Form.cs: Refactor WndProc into separate methods, just like Control is
12714 2007-04-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
12716 * Control.cs: set_Text: move the call to the driver into a seperate
12717 virtual method so that Form can override it.
12718 * MaskedTextBox.cs: Corcompare fixes.
12719 * Form.cs: Override UpdateWindowText and only update the styles if the
12720 form has been shown (fixes #81405).
12722 2007-04-25 Jonathan Pobst <monkey@jpobst.com>
12724 * Control.cs, Form.cs: Use the better supported WM_?BUTTONDOWN and
12725 WM_ACTIVATE messages instead of WM_MOUSEACTIVATE and
12726 WM_ACTIVATEAPP. This fixes menus not disappearing on X11 when
12727 the form lost focus or another control was clicked.
12729 2007-04-25 Gert Driesen <drieseng@users.sourceforge.net>
12731 * DataGrid.cs: Uncomment MakeTransparent calls since bug #80151 is
12734 2007-04-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
12736 * DrawListViewColumnHeaderEventHandler.cs, DrawToolTipEventArgs.cs,
12737 DrawListViewItemEventHandler.cs,
12738 DrawListViewSubItemEventHandler.cs, DrawToolTipEventHandler.cs:
12740 * X11Structs.cs: More ToString implementation.
12742 2007-04-25 Jonathan Pobst <monkey@jpobst.com>
12744 * ToolStripDropDownItem.cs: Don't lazy create a DropDown in Dispose.
12745 * ToolStripOverflowButton.cs: Don't lazy create a DropDown in HasDropDownItems.
12747 2007-04-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
12749 * Control.cs: Only raise OnVisibleChanged if we're not recreating the
12751 * FormCollection.cs: Don't add a form if it's already in the
12753 * Form.cs: Change ShowDialog () to call ShowDialog (owner) with a null
12754 according to behaviour and MSDN. The ownerWin32 is the active
12755 window at the moment when we call ShowDialog, not the context's
12756 main form (the context's main form may open another form that opens
12757 a form with ShowDialog, the win32 owner is the second form). Add
12758 and remove forms to the Application.OpenForms in other places to
12759 better match MS behaviour. Add an IsActive property that raises
12760 On(de)Activated only if the active state has changed (we were
12761 raising OnDeactivated before OnActivated while creating forms).
12762 * Application.cs: Refactor Enabling/Disabling of windows for modal
12763 dialog loops out to separate methods, and restore the thread
12764 context when we quit the method. Fixes #81407.
12766 2007-04-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12768 * ListView.cs: In ItemControl.HandleClicks, also fire
12769 2.0 MouseClick or MouseDoubleClick events on the parent,
12770 not only the Click/DoubleClick events.
12772 2007-04-24 Andreia Gaita <avidigal@novell.com>
12774 * TableLayoutSettings.cs:
12775 - Added a GetControls method and a support structure to help the
12776 TypeConverter to enumerate the controls for serialization.
12777 - Added a new serialization constructor.
12778 - Added a isSerialized flag initialized to true on the
12779 serialization constructor so that the TableLayoutPanel.LayoutSettings
12780 setter does not throw the designed NotSupportedOperation exception
12781 when the object is built through deserialization.
12782 - Implemented GetObjectData
12784 * TableLayoutPanel.cs: Added check on LayoutSettings.
12786 2007-04-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12788 * ListView.cs: Report Click and DoubleClick events to the parent
12789 from ItemsMouseUp, instead of ItemsMouseDown. This prevents us
12790 from breaking the click count state when using dialog forms (Control
12791 reports the clicks in a similar fashion). In the previous behaviour
12792 the last WM_LBUTTONUP message in a double click was sent to the
12793 ListView's form, instead of the ListView, which was breaking the click
12794 count for it. Fixes #80387.
12796 2007-04-24 Alan McGovern <alan.mcgovern@gmail.com>
12798 * BindingNavigator.cs : fixed bugs revealed by new nunit tests
12800 2007-04-24 Jonathan Pobst <monkey@jpobst.com>
12802 * ToolStripDropDownItem.cs: Lazy initialize the DropDown. This prevents
12803 us from created dropdowns for menu items that do not have subitems.
12804 * ToolStripItem.cs, ToolStripProfessionalRenderer.cs, ToolStripSplitButton.cs:
12805 Check HasDropDownItems before calling DropDown so a dropdown will not be
12806 created if it isn't needed.
12808 2007-04-24 Jackson Harper <jackson@ximian.com>
12810 * TreeView.cs: Set the first node to the selected node when we get
12811 focus if there is no selected node.
12813 2007-04-24 Andreia Gaita <avidigal@novell.com>
12815 * MimeIcon.cs: remove using blocks so that image streams are
12816 not disposed of. Fixes #80151
12818 2007-04-24 Jackson Harper <jackson@ximian.com>
12820 * TextBoxBase.cs: Fixup the height of textboxes when the control
12823 2007-04-24 Jonathan Pobst <monkey@jpobst.com>
12825 * ToolStrip.cs: Fully implement GetNextItem. Call OnParentRightToLeftChanged
12826 for each ToolStripItem when the parent's RightToLeftChanged is called.
12828 2007-04-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
12830 * ComboBox.cs: Forward ContextMenu to the underlying textbox, if any.
12832 * Control.cs: Replace GetContextMenuInternal() with ContextMenuInternal
12833 property, so that the setter can be overriden too.
12834 * TextBox.cs: Change GetContextMenuInternal() to use
12835 ContextMenuInternal.
12837 2007-04-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
12839 * ThemeWin32Classic.cs: Use a black pen to draw checkboxes, fixes
12842 2007-04-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
12844 * ThemeWin32Classic.cs: Use a black pen to draw checkboxes, fixes
12847 2007-04-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
12849 * MaskedTextBox.cs: Commit this so nobody else starts working on it and
12850 avoid duplicate work. Mostily skeleton code, it's not working at
12853 2007-04-20 Leszek Ciesielski <skolima@gmail.com>
12855 * NotifyIcon.cs : stub for MouseClick event
12856 * Application.cs: stub for SetUnhandledExceptionMode
12858 2007-04-24 Alan McGovern <alan.mcgovern@gmail.com>
12860 * BindingNavigator.cs : Initial (partial) implementation
12862 2007-04-23 Jackson Harper <jackson@ximian.com>
12864 * TreeView.cs: Do not create the treeview's handle when setting
12865 the scroll position.
12866 - ExpandAll needs to compute the scrollbars so it knows which
12867 position to set the bar too.
12869 * TreeNodeCollection.cs: Pass new flag to UpdateScrollBars
12871 2007-04-23 Jackson Harper <jackson@ximian.com>
12873 * TextBoxBase.cs: Non multiline textboxes shouldn't take the enter
12876 2007-04-23 Jonathan Pobst <monkey@jpobst.com>
12878 * ToolStripItem.cs: Make GetImageSize internal.
12879 * ToolStripMenuItem.cs: Use GetImageSize to determine the size we
12880 need to draw an item. Fixes a reported issue where images on menus
12881 that were not 16x16 were drawing incorrectly.
12883 2007-04-21 Miguel de Icaza <miguel@novell.com>
12885 * Padding.cs: Use the converter, fixes the resgen2 issue with
12888 2007-04-21 Jackson Harper <jackson@ximian.com>
12890 * TreeView.cs: Dont try to unhighlight the selected node if there
12891 isn't a selected node.
12893 2007-04-21 Jackson Harper <jackson@ximian.com>
12899 * TreeView.cs: Use the InternalBorderStyle property to set the
12900 initial border style, this forces the client rectangle to be sized
12903 2007-04-20 Jackson Harper <jackson@ximian.com>
12905 * TreeView.cs: Simplify scrolling to the last node after expanding
12907 - Fix some off by ones with setting the bottom.
12909 2007-04-20 Jonathan Pobst <monkey@jpobst.com>
12911 * Control.cs: Use DefaultSize for Size, calculate ClientSize from
12912 that. We were incorrectly doing it the other way around. Also,
12913 update ClientSize if we change the BorderStyle before the control
12916 2007-04-20 Gert Driesen <drieseng@users.sourceforge.net>
12918 * XplatUI.cs: Added Border3DSize, BorderSize, CaptionButtonSize,
12919 DoubleClickSize, DoubleClickTime and FixedFrameBorderSize. Renamed
12920 XplatUIDriver.Caption to CaptionHeight. Spaces to tabs.
12921 * XplatUIDriver.cs: Added Border3DSize, BorderSize, CaptionButtonSize,
12922 DoubleClickSize, DoubleClickTime and FixedFrameBorderSize. Renamed
12923 Caption to CaptionHeight.
12924 * XplatUIX11.cs: Renamed Caption to CaptionHeight.
12925 * Theme.cs: Modified Border3DSize, BorderSize, CaptionButtonSize
12926 and FixedFrameBorderSize to return value from current XplatUI driver.
12927 * XplatUIWin32.cs: Implemented Border3DSize, BorderSize,
12928 CaptionButtonSize, DragFullWindows, DoubleClickSize, DoubleClickTime
12929 and FixedFrameBorderSize using win32 API. Renamed Caption to
12931 * XplatUIOSX.cs: Renamed Caption to CaptionHeight.
12932 * SystemInformation.cs: Fixed typo in BorderSize.
12934 2007-04-20 Gert Driesen <drieseng@users.sourceforge.net>
12936 * XplatUI.cs: Added MenuAccessKeysUnderlined.
12937 * XplatUIDriver.cs: Added MenuAccessKeysUnderlined.
12938 * XplatUIX11.cs: Implemented MenuAccessKeysUnderlined by always
12940 * Theme.cs: Modified MenuAccessKeysUnderlined to return corresponding
12941 value from XplatUI driver.
12942 * XplatUIWin32.cs: Implemented MenuAccessKeysUnderlined using
12943 SystemParametersInfo.
12944 * ThemeWin32Classic.cs: Remove obsolete MenuAccessKeysUnderlined
12946 * XplatUIOSX.cs: Implemented MenuAccessKeysUnderlind by always
12949 2007-04-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
12951 * XplatUIX11.cs, Hwnd.cs: Remove warnings.
12953 2007-04-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
12955 * MessageBox.cs, XplatUIX11.cs, Hwnd.cs: Remove warnings.
12957 2007-04-20 Jonathan Pobst <monkey@jpobst.com>
12959 * ToolStripManager.cs: Fix a reported InvalidCastException when unmerging
12960 MenuStrips that contain ToolStripSeparators.
12962 2007-04-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
12964 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Add
12965 DefineStdCursorBitmap.
12966 * Cursor.cs: Add an internal constructor so that the Cursor knows if it
12967 has been created off a standard cursor. This is used to get a
12968 bitmap of the standard cursor when Draw or DrawStretched is called
12969 in order to draw the cursor.
12970 * X11Structs.cs: Added XcursorImage and XcursorImages.
12971 * XplatUIX11.cs, XplatUIWin32.cs: Add and implement
12972 DefineStdCursorBitmap.
12973 * Cursors.cs: Update all relevant creations of Cursor to use the new
12974 internal constructor.
12976 2007-04-19 Jackson Harper <jackson@ximian.com>
12978 * TextBox.cs: Move the has_been_focused into the base control, so
12979 some of the text adding methods can manipulate it (probably time
12980 for a better name for this flag too).
12981 - Call a new version of selectall that doesn't scroll
12982 * TextBoxBase.cs: When we append text, if the document is empty,
12983 don't scroll. If the document has text already, we scroll to the
12984 end of the appended text.
12985 - When the text is changed, we reset the has_been_focused, so the
12986 next time the control gets focused, all the text is selected.
12988 2007-04-19 Jackson Harper <jackson@ximian.com>
12990 * TextControl.cs: Move the margins to the document, add a method
12991 so the margin sizes can be updated.
12992 * TextBoxBase.cs: When the border style is changed, update the
12995 2007-04-19 Jonathan Pobst <monkey@jpobst.com>
12997 * Control.cs: Respect DefaultPadding.
12998 * GroupBox.cs: Implement DefaultPadding, DisplayRectangle takes
12999 padding into account.
13000 * ToolStrip.cs: Remove setting padding to DefaultPadding in constructor.
13002 2007-04-19 Jackson Harper <jackson@ximian.com>
13004 * TextControl.cs: Oops, we need to use the ClientRect not the
13007 2007-04-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13009 * ListView.cs: In ItemControl.ItemsMouseDown, take into
13010 account the double clicks when CheckBoxes are used and
13011 the pointer is inside the checkbox. Fixes part of #81191.
13013 2007-04-18 Jackson Harper <jackson@ximian.com>
13015 * TextControl.cs: Pressing the end key shouldn't move the caret
13016 past the line ending.
13017 * TextBoxBase.cs: We can still delete if we are in the line
13018 ending and the combine will just kill the existing line ending.
13020 2007-04-18 Jackson Harper <jackson@ximian.com>
13022 * TextControl.cs: We can't move lines, then invalidate their
13023 bounds, we need to get the old bounds and combine that with the
13025 * TextBoxBase.cs: Before combining two lines for a delete, we need
13026 to invalidate the area of the old line, since that will be moved
13027 in the combine operation.
13029 2007-04-18 Everaldo Canuto <everaldo@simios.org>
13031 * LinkLabel.cs: In OnPaint invoke draw background to fix problems
13032 with transparent background. Fixes #80482.
13034 2007-04-18 Jonathan Pobst <monkey@jpobst.com>
13036 * PictureBox.cs: Refresh on resize when SizeMode = Zoom.
13037 * ThemeWin32Classic.cs: Implement PictureBox.SizeMode = Zoom.
13040 2007-04-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
13042 * CreateParams.cs: Add a couple of helper methods and do a less string
13043 concatenation in ToString.
13044 * XplatUIX11.cs: Add an TranslateClientRectangleToXClientRectangle
13045 overload that takes a Control parameter, since this method may be
13046 called before a control is assigned to the hwnd (from
13047 CreateWindow), and update CreateWindow to use the new overload. In
13048 GetMenuOrigin subtract the title bar from the y position if the
13049 form has a window manager (since we're painting it and not X).
13050 * XplatUIWin32.cs: If we can get a form in GetMenuOrigin use the form's
13051 CreateParams to calculate the origin (since border sizes may vary).
13052 In ScreenToMenu only subtract the title height if we actually have
13054 * MdiWindowManager.cs: Override MenuHeight to always return 0, since
13055 mdi children never have menus of themselves.
13056 * InternalWindowManager.cs: Implement menu handling like form does.
13057 Added GetMenuOrigin to calculate the menu origin, can't use the
13058 CreateParams from the form like normally since it's lying.
13059 * Hwnd.cs: Implement GetBorderSize better (in the sense more
13060 windows-like) and add Inflate and comparison operators to the
13061 Borders type. When calculating MenuOrigin and it's a form with a
13062 window manager, use the window manager to calculate it.
13064 2007-04-17 Chris Toshok <toshok@ximian.com>
13066 * Control.cs (CreateControl): turns out in 2.0 we don't need this
13067 OnBindingContextChanged thing here. It's only generated from
13068 ContainerControl.OnCreateControl. Fixes a newly written unit test
13069 - BindingTest.BindingContextChangedTest4.
13071 2007-04-17 Jackson Harper <jackson@ximian.com>
13073 * ScrollBar.cs: When setting values, make sure the current
13074 position stays within the new values range.
13076 2007-04-17 Chris Toshok <toshok@ximian.com>
13078 * Control.cs (CreateControl): talk about a bizarre corner case.
13079 Don't emit OnBindingContextChanged here if we're a parentless
13080 control (i.e. if we're a form.). Fixes
13081 BindingTest.BindingContextChangedTest2.
13083 2007-04-17 Everaldo Canuto <everaldo@simios.org>
13085 * ButtonBase.cs: Remove TextFormatFlags.WordBreak to mimic same behavior
13086 from win32. Fixes #81255.
13088 2007-04-17 Everaldo Canuto <everaldo@simios.org>
13090 * ThemeWin32Classic.cs: Remove text offset from DrawButtonText as it is
13091 already present in CalculateButtonTextAndImageLayout.
13093 2007-04-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
13095 * XplatUIX11.cs: When setting min/max size for a window we need to
13096 translate the coordinates to x coordinates. Create an overload of
13097 SetWindowMinMax that takes a CreateParams handling this, and change
13098 SetWMStyles to call this function (can't use Control.FromHandle in
13099 the SetWindowMinMax to get the control/CreateParams from the handle
13100 because the handle might not have been assigned to the control
13101 yet). Fixes #81371.
13103 2007-04-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13105 * ListView.cs: In ItemControl.ItemMouseDown, don't change check state
13106 if StateImageList is non-null and it has less than two items (match MS
13107 behaviour). Also, in HandleNavKeys handle the Space key, calling
13108 the new ToggleItemsCheckState method, which tries to change the
13109 checked state of the selected items. Fixes part of #81191.
13111 2007-04-16 Jackson Harper <jackson@ximian.com>
13113 * RichTextBox.cs: namespace cleanup.
13115 2007-04-16 Everaldo Canuto <everaldo@simios.org>
13117 * XplatUIWin32.cs: Back last parameter to true in SetClipRegion.
13119 2007-04-16 Everaldo Canuto <everaldo@simios.org>
13122 * Control.cs: Call invalidate in set_Region.
13124 * XplatUIX11.cs, XplatUIWin32.cs: Remove invalidate from SetClipRegion as
13125 it dont works here.
13127 2007-04-16 Jackson Harper <jackson@ximian.com>
13129 * TextBoxBase.cs: When enter is pressed, we need to update all
13130 lines below the current.
13132 2007-04-16 Jonathan Pobst <jpobst@monkey.com>
13134 * MdiClient.cs: Implement implicit menu merging for MDI
13135 children. When a child form is active, if it has a menustrip
13136 and the parent form has a MainMenuStrip, automatically merge
13139 2007-04-15 Andreia Gaita <avidigal@novell.com>
13141 * TabControl.cs: Refactored sizing methods to not repeat
13142 code all over the place. Tab bounds are now calculated
13143 as if alignment is top and single line, and only when
13144 setting the bounds are the positions adjusted according
13145 to alignment. Replaced hardcoded positions, spacings and
13146 paddings by getting the values the ThemeEngine.
13149 * Theme.cs: Change TabControl properties and methods so
13150 that all start with TabControl*. Added more properties
13151 to help remove hardcoded values on tabcontrol.
13152 Add CPDrawBorder3D declaration so the Theming classes
13155 * ThemeClearlooks.cs, ThemeNice.cs: Method signature changes from Theme.
13157 * ThemeWin32Classic.cs: Rector TabControl out to the TabControlPainter
13158 on the Theming namespace, and call the appropriate methods here.
13159 Change CPDrawBorder3D to public.
13161 2007-04-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13163 * Control.cs: In WmRButtonUp, send the WM_CONTEXTMENU message to
13164 the control after firing the OnMouseUp event, instead of sending
13165 the message before the mentioned event. This is so we can match the
13166 MS behaviour. Fixes part of #80385.
13168 2007-04-13 Jonathan Pobst <monkey@jpobst.com>
13170 * ToolStripItem.cs: Call the RightToLeftChanged event when setting the
13171 RightToLeft property.
13173 2007-04-13 Jonathan Pobst <monkey@jpobst.com>
13175 * ToolStrip.cs: Add properties and internal methods to support merging.
13176 * ToolStripItem.cs: Add MergeAction and MergeIndex.
13177 * ToolStripItemCollection.cs: Add Insert and Remove methods that do
13178 not trigger reparenting or layouts.
13179 * ToolStripManager.cs: Add Merge and RevertMerge methods.
13180 * ToolStripOverflow.cs: Add a convenience method to find the ToolStrip that
13181 is hosting the overflow menu.
13183 2007-04-13 Jackson Harper <jackson@ximian.com>
13185 * TextControl.cs: Set the line ending correctly for the first
13188 2007-04-13 Sebastien Pouliot <sebastien@ximian.com>
13190 * Theme.cs: Update GetMethod to get the new definition for
13191 KnownColors.Update (and fix theme color updates).
13193 2007-04-12 Everaldo Canuto <everaldo@simios.org>
13195 * MessageBox.cs: Fix some test and button position.
13197 2007-04-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13199 * Form.cs: Consider the implicit controls in
13200 GetRealChildAtPoint. We need it since this method
13201 is called on Form when handling the some messages in
13202 WndProc, and need to consider those implicit ones too.
13205 2007-04-12 Jonathan Pobst <monkey@jpobst.com>
13207 * ToolStripMenuItem.cs: Display the ShortcutKeyDisplayString even
13208 if there are no ShortcutKeys set.
13209 * ToolStripProfessionalRenderer.cs: If an item has had its BackColor
13210 set, use it when painting.
13212 2007-04-12 Jackson Harper <jackson@ximian.com>
13214 * TextControl.cs: Fix some off-by-one issues in line duplication
13215 and insertion in the undo manager. Also, overwrite the first tag
13216 of a line on insert, if it is just a zero lengthed tag. This
13217 prevents us from getting an extra stranded tag at the beginning of
13220 2007-04-11 Everaldo Canuto <everaldo@simios.org>
13222 * Label.cs: Remove check for handle created in CalcAutoSize, we need
13223 to calculated proper size including when handle was not created yet.
13225 2007-04-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
13227 * MdiWindowManager.cs: When moving a form, allow the form to be moved
13228 when the mouse is outside of it's parent's client rectangle. Fixes
13229 #79982 (take 3, part 2).
13231 2007-04-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
13233 * X11Structs.cs: Add a few ToString() overrides.
13234 * XplatUIX11.cs: Added GetTopLevelWindowLocation to try to calculate
13235 the window location in a window-manager independent way. Reworked
13236 FrameExtents, it now actually works. Reworked AddConfigureNotify
13237 and ReparentNotify handling to use GetTopLevelWindowLocation
13238 instead of the earlier, more hacky solution. Reworked SetWMStyles,
13239 hopefully for the better: we now set _NET_WM_WINDOW_TYPE* for all
13240 windows, DIALOG for modal windows, UTILITY for toolboxes and NORMAL
13241 for all other windows (fixes #81281 part 1), a toolwindow is hidden
13242 from the taskbar if it has a parent (fixes #81281 part 2 for kwin),
13243 and generally refactored to do as few calculations as possible
13246 2007-04-09 Sebastien Pouliot <sebastien@ximian.com>
13248 * Theme.cs: Change "reflective-contract" between MWF and SD to
13249 minimize # of calls, avoid Color serialization and avoid updating
13250 every "known colors" each time a single one is updated.
13252 2007-04-09 Gert Driesen <drieseng@users.sourceforge.net>
13254 * DataGridTextBoxColumn.cs: Only set IsInEditOrNavigateMode to false
13255 when not readonly and the text is explicitly set. Code style updates.
13256 * DataGridTableStyle.cs: Removed extra line.
13257 * DataGrid.cs: Code style updates. Removed extra whitespace.
13258 * DataGridColumnStyle.cs: Code style updates. Removed extra
13261 2007-04-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
13263 * XplatUIX11.cs: Added comment that "fixes" #80021.
13265 2007-04-09 Jackson Harper <jackson@ximian.com>
13267 * TextControl.cs: We don't need this -1 on the line count anymore.
13269 2007-04-09 Gert Driesen <drieseng@users.sourceforge.net>
13271 * DataGridTextBoxColumn.cs: In Commit, use TypeConverter to convert
13272 entered value to underlying type, and convert it back to a string to
13273 apply formatting. Modified GetFormattedValue to use TypeConverter
13276 2007-04-08 Gert Driesen <drieseng@users.sourceforge.net>
13278 * ListViewItem.cs: Added null checks. Avoid duplicating code in ctors.
13279 Use SubItems property when we want to ensure there's at least one
13280 subitem. Modified SubItems property to ensure there's always at least
13281 one subitem. Avoid using ListViewSubItemCollection.AddRange to match
13282 the NRE's reported by MS.
13284 2007-04-07 Gert Driesen <drieseng@users.sourceforge.net>
13286 * ProgressBar.cs: On 2.0 profile, default forecolor is Highlight. Added
13287 ResetForeColor override on 2.0. Fixed a few API compatibility issues.
13288 Spaces to tabs. Removed extra tabs.
13290 2007-04-06 Jonathan Pobst <monkey@jpobst.com>
13292 * ToolStripSplitStackLayout.cs: If we run out of things to hide, don't
13293 infinite loop. (Forgot to copy to the horizontal toolstrip case.)
13295 2007-04-06 Jackson Harper <jackson@ximian.com>
13297 * TextBoxBase.cs: When a delete removes a line, recalculate all
13298 lines below that line (they need to get offsets setup correctly)
13301 2007-04-05 Jackson Harper <jackson@ximian.com>
13303 * TextControl.cs: We need to invalidate across the width of the
13304 document when we are invalidating multiple lines.
13305 * TextBoxBase.cs: Don't delete into the line ending.
13307 2007-04-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13309 * ListView.cs: Restore the check for the MouseHover event
13310 in ListView. It looks like the ListView fires more than one MouseHover
13311 event when HoverSelection is true _only_ in weird-corner scenarios, but
13312 in most of the cases it only fires one. Also, add the 2.0 ItemMouseHover
13315 2007-04-05 Mike Kestner <mkestner@novell.com>
13317 * ListView.cs : raise MouseDown before updating selection.
13318 [Fixes #80373 tab 1&3]
13320 2007-04-05 Jonathan Pobst <monkey@jpobst.com>
13322 * ToolStripRenderer.cs: Add static method to mirror image.
13323 * ToolStripProfessionalRenderer.cs: Support ImageTransparentColor
13324 and RightToLeftAutoMirrorImage.
13325 * ToolStripItem.cs: Remove MonoTODO from ImageTransparentColor.
13327 2007-04-05 Jonathan Pobst <monkey@jpobst.com>
13329 * ToolStripSplitStackLayout.cs: Support Alignment property.
13330 * ToolStripItem.cs: Remove MonoTODO from the Alignment property.
13332 2007-04-05 Jackson Harper <jackson@ximian.com>
13334 * TextControl.cs: Move around the line endings when crossing line
13336 - When combining lines, strip the ending text off the first line.
13338 2007-04-05 Jackson Harper <jackson@ximian.com>
13341 * TextBoxBase.cs: Try to never move the cursor into the line
13344 2007-04-04 Jonathan Pobst <monkey@jpobst.com>
13346 * ToolStripItem.cs: Make sure we aren't firing mouse events when
13347 the item is disabled. Also add a few missing methods.
13349 2007-04-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13351 * ListView.cs: We don't need the MouseEnter/MouseLeave check
13352 to fire just one MouseHover event when HoverSelection is true, since
13353 .Net does fire more than one MouseHover event in that scenario. Also,
13354 fix the selection in HoverSelection, by invoking UpdateMultiSelect
13355 if MultiSelect is true, instead of only setting ListViewItem.Selected.
13356 Finally, we need to reset the Hover logic in MouseMove, even when we
13357 don't have a selected item.
13359 2007-04-04 Jonathan Pobst <monkey@jpobst.com>
13361 * ToolStrip.cs: Add several missing methods, properties, and events.
13363 2007-04-04 Chris Toshok <toshok@ximian.com>
13365 * DataGridTextBoxColumn.cs: set the bounds of the text box to
13366 (0,0,0,0) in Commit, as MS does.
13368 * DataGrid.cs: call EndEdit() from Select() as microsoft does, and
13369 make sure we set CurrentRow on a row header click *before* calling
13370 Select. This moves the current cell (and the textbox) to the new
13371 row. The call to Select then hides the textbox, giving us the
13372 correct behavior. Fixes #80362.
13374 * CurrencyManager.cs (UpdateIsBinding): raise ItemChanged (-1).
13375 (ListChangedHandler): reorder the position/current changed events,
13376 and call UpdateIsBinding in the ItemAdded case.
13378 * GridColumnStylesCollection.cs: add some columns events, one of
13379 which raises the CollectionChanged event.
13381 2007-04-04 Jackson Harper <jackson@ximian.com>
13383 * TextControl.cs: When we delete multiple selection lines
13384 invalidate the selection area, don't need to do that for single
13385 lines because the final update view will handle it.
13387 2007-04-04 Jonathan Pobst <monkey@jpobst.com>
13389 * Control.cs: When we CreateControl, we need to also create all of the
13390 control's children. The child's OnLoad must also fire before the parent's
13391 OnLoad. Fixes the toolbox size in PDN.
13393 2007-04-04 Jackson Harper <jackson@ximian.com>
13395 * TextBoxBase.cs: When the user presses enter, insert a line
13396 ending into the text. (Maybe this would be a good spot for
13397 Environment.NewLine).
13398 * TextControl.cs: Remove undo manager hack, line endings get
13399 inserted properly now.
13401 2007-04-04 Everaldo Canuto <everaldo@simios.org>
13404 - Remove unneeded parameters in UpdateCursor.
13405 - Fix UpdateCursor to check if menu is active.
13406 - Call UpdateCursor when menu deactivate my click.
13407 [Fixes remaining issues from #80410]
13409 2007-04-04 Everaldo Canuto <everaldo@simios.org>
13411 * Control.cs: GetRealChildAtPoint method added, it make an
13412 recursive child control search for the point.
13414 * Form.cs: Makes use of GetRealChildAtPoint in mouse event after closes
13417 * MenuAPI.cs: Makes use of GetRealChildAtPoint in UpdateCursor.
13419 2007-04-03 Everaldo Canuto <everaldo@simios.org>
13421 * Form.cs: Fix mouse position when send back mouse event after closes
13424 2007-04-03 Everaldo Canuto <everaldo@simios.org>
13426 * Form.cs: Simplify the BUTTONDOWN for active tracker.
13428 2007-04-03 Jonathan Pobst <monkey@jpobst.com>
13430 * Control.cs: Fix an issue where if a user resized a control inside
13431 a sizing method like OnResize, we would overwrite their explicit
13432 value. Also, only call DefaultSize once in the constructor instead
13433 of 4 times. Also, do not call SetBoundsCore from SetBounds if
13434 nothing actually changed.
13436 2007-04-03 Jackson Harper <jackson@ximian.com>
13438 * TextControl.cs: Don't attempt to copy text for lines with no
13439 text in them (technically this shouldn't happen, but we aren't
13440 always inserting line endings when we should be).
13442 2007-04-03 Jackson Harper <jackson@ximian.com>
13444 * TextBoxBase.cs: Calculate the scrollbars before calculating the
13445 document, because this sets some of the document size properties
13448 2007-04-03 Jackson Harper <jackson@ximian.com>
13450 * TextBoxBase.cs: We need to calculate maximums even if this is
13451 not a multiline control, because the maxs are used for scrolling.
13452 - Display the caret after doing a page up/down, we need to
13453 manually display it because a proper CaretMoved event isn't
13454 triggered (this is because of the way the math is done to
13455 determine how far to scroll).
13457 2007-04-03 Jonathan Pobst <monkey@jpobst.com>
13459 * ToolBar.cs: Fix some breakage caused by the SetBoundsCore change.
13460 (ToolBar was relying on SetBoundsCore to default the values sent
13461 base off of BoundsSpecified.)
13463 2007-04-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
13465 * DateTimePicker.cs: Change Text so that when a null value or empty
13466 string is assigned to the test we always raise ValueChanged and
13467 TextChanged (earlier implementation would only raise ValueChanged
13468 if the current date value was different from DateTime.Now).
13470 2007-04-03 Andreia Gaita <avidigal@novell.com>
13472 * ButtonBase: Call update after invalidation, fixes #80194
13474 2007-04-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
13476 * ThemeWin32Classic.cs: Draw StatusBar using double buffering. Fixes
13479 2007-04-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
13481 * XplatUIX11.cs: SetWMStyles: If the control is a form with
13482 FormBorderStyle = None, don't give the window any decorations.
13485 2007-04-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
13487 * XplatUI.cs, XplatUIDriver.cs: Updated CalculateWindowRect parameters.
13488 * CreateParams.cs: Fix IsSet, wasn't working correctly when the style
13489 to check for is a mix of several styles (such as WS_CAPTION for
13491 * Control.cs: Don't paint an area bigger than the client area when
13492 painting the background colour. Add an internal GetCreateParams.
13493 Update calls to XplatUI.CalculateWindowRect due to API change.
13494 * XplatUIX11.cs: In PerformNCCalc set the initial size to the whole
13495 window's size, and handle WM_NCCALCSIZE in DefWndProc to calculate
13496 the size if it hasn't been handled by any windows. When creating
13497 and moving windows, X wants the location of the entire window, but
13498 the size of the client window, so add
13499 TranslateClientRectangleToXClientRectangle,
13500 TranslateWindowSizeToXWindowSIze and
13501 TranslatedXWindowSizeToWindowSize to cope with this, and call them
13502 before every window creation and move. Update CalculateWIndowRect
13503 to use Hwnd.GetWindowRect (one step towards removing DeriveStyles).
13504 In AddConfigureNotify don't do anything if the hwnd is a zombie
13505 (fixes the BadWindow we were getting while running the tests),
13506 always calculate the offsets when it's a parentless window, not
13507 only when reparented, and translate the window size, since we're
13508 getting the client size of the whole window, excluding entire
13510 * Theme.cs: Added BorderSizableSize.
13511 * XplatUIWin32.cs: Fix RECT Height and Width. Don't fake styles here
13512 anymore. Update calls to XplatUI.CalculateWindowRect due to API
13514 * Form.cs: Update calls to XplatUI.CalculateWindowRect due to API
13515 change. Fake the window styles here instead of in XplatUIWin32 so
13516 that all back-ends get the same window styles (and it's Form that's
13517 deciding when to use wm, not the Win32 backend anyways)
13518 * Hwnd.cs: Completely reworked GetWindowRectangle and
13519 GetClientRectangle - they are now passed a CreateParams and they
13520 only use Style and ExStyle to determine the rectangles (they should
13521 now work just like Win32AdjustWindowRectEx - though quite a few
13522 special cases are probably missing). They should also be 100%
13523 complimentary (i.e. GetWindowRectangle (GetClientRectangle (rect))
13524 == rect), and all numbers (borders, menu sizes) are taken from the
13525 current theme. Added a GetBorders helper function that will return
13526 the borders for any given CreateParams (including captions and
13527 menus), and GetBorderSize that returns the given border size only.
13528 * XplatUIOSX.cs: Update calls to CalculateWindowRect and
13529 Hwnd.GetClientRectangle.
13531 2007-04-02 Chris Toshok <toshok@ximian.com>
13533 * DataGridBoolColumn.cs: rewrite things a bit, and fix up the
13534 logic between the values we present to the user and the values
13535 which are stored in the column's property. Also, don't call
13536 GetPreferredSize - it's virtual. Along the way, fix bug #80965.
13538 2007-04-02 Jackson Harper <jackson@ximian.com>
13540 * TextBoxBase.cs: Scroll faster!
13542 2007-04-02 Jonathan Pobst <monkey@jpobst.com>
13544 * StatusStrip.cs: Layout fixes for PDN.
13545 * ToolStrip.cs: Set item's available to true, and placement to main when
13547 * ToolStripItem.cs: Fix an Available issue, check that Parent is really
13548 changing in setter before doing any work, add InternalVisible.
13549 * ToolStripPanel.cs: Remove unused variable to fix compiler warning.
13550 * ToolStripSplitStackLayout.cs: If we run out of things to hide, don't
13553 2007-04-02 Jackson Harper <jackson@ximian.com>
13555 * TextBox.cs: LBUTTON does not make the textbox select all of it's
13558 2007-04-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
13560 * XplatUIWin32.cs: Use the previous change in SetParent for forms only.
13561 Makes ToolStripComboBoxes show up again.
13563 2007-04-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13565 * ListView.cs: Add a hover_pending field in ListView
13566 to fire just one OnMouseHover event for each MouseEnter/MouseLeave
13567 cycle (we are resetting the MouseHover logic in XplatUI
13568 to handle HoverSelection). Fixes #80429.
13570 2007-04-02 Jackson Harper <jackson@ximian.com>
13572 * TextControl.cs: Make sure the attributes get set on the last
13574 - Still have to do the end tag if we have stepped all the ways to
13577 2007-04-02 Sebastien Pouliot <sebastien@ximian.com>
13579 * XplatUIOSX.cs, XplatUIX11.cs, XplatUIX11GTK.cs: Remove dependency
13580 on an internal libgdiplus call when the information is already
13581 available via the public API.
13583 2007-04-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
13585 * Control.cs: Call ContainerControl.ChildControlRemoved whenever a
13586 control is removed from a control collecftion.
13587 * XplatUIX11.cs: The first location for toplevel form is (22, 22).
13588 Fixes FormPropertyTest (failed on rare occasions).
13589 * XplatUIWin32.cs: Add a workaround in SetParent for strange behaviour
13590 of Win32SetParent (when changing from no parent to a parent it
13591 might add the new parent's location in screen coordinates to this
13592 window's location).
13593 * Form.cs: Rework ChangingParent once again, now the handle is
13594 recreated whenever a FormWindowManager is added or removed (that is
13595 whenever a normal form is parented or abandoned). Also change
13596 CreateParams so that all non-toplevel windows always get the
13597 specified sice (StartupPosition is never considered for
13598 non-TopLevel forms).
13599 * ContainerControl.cs: Add ChildControlRemoved, the container control
13600 needs to be notified when a control is removed from it's
13601 collection, in the case the removed control is the active control.
13603 2007-04-02 Jackson Harper <jackson@ximian.com>
13605 * RichTextBox.cs: Use the new methods for setting the font and
13606 color, these methods set the specified attribute without
13607 overriding the other attributes.
13609 2007-04-02 Jonathan Pobst <monkey@jpobst.com>
13611 * ToolStripPanel.cs: Fixes for better layouts in PDN.
13613 2007-03-31 Gert Driesen <drieseng@users.sourceforge.net>
13615 * TextBox.cs: Added internal ChangeBackColor method to special-case
13616 Color.Empty. Added check for invalid ScrollBars value.
13617 * TextBoxBase.cs: Added internal ChangeBackColor method.
13618 * RichTextBox.cs: Only set backcolor_set on 2.0 profile. Added
13619 internal ChangeBackColor method to special-case Color.Empty. Added
13620 check for invalid ScrollBars value.
13622 2007-03-30 Everaldo Canuto <everaldo@simios.org>
13624 * MenuItem.cs: On invalidate prevent form to create handle. [Fixes #81272]
13626 2007-03-30 Jonathan Pobst <monkey@jpobst.com>
13628 * ScollableControl.cs: Add HorizontalScroll and VerticalScroll properties.
13629 * ScrollProperties.cs, HScrollProperties.cs, VScrollProperties.cs: Added.
13630 [Based on submitted patch from Olivier Duff.]
13632 2007-03-30 Jackson Harper <jackson@ximian.com>
13634 * TextBox.cs: Only select all on initial focus if the user has not
13635 specified a selection area.
13637 2007-03-30 Jonathan Pobst <monkey@jpobst.com>
13639 * UserControl.cs: Override CreateParams.
13641 2007-03-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
13645 * XplatUI.cs, XplatUIDriver.cs: Updated CalculateWindowRect parameters.
13646 * CreateParams.cs: Fix IsSet, wasn't working correctly when the style to
13647 check for is a mix of several styles (such as WS_CAPTION for instance).
13648 * Control.cs: Don't paint an area bigger than the client area when painting
13649 the background colour. Add an internal GetCreateParams. Update calls to
13650 XplatUI.CalculateWindowRect due to API change.
13651 * XplatUIX11.cs: In PerformNCCalc set the initial size to the whole window's
13652 size, and handle WM_NCCALCSIZE in DefWndProc to calculate the size if it
13653 hasn't been handled by any windows. When creating and moving windows, X
13654 wants the location of the entire window, but the size of the client
13655 window, so add TranslateClientRectangleToXClientRectangle,
13656 TranslateWindowSizeToXWindowSIze and TranslatedXWindowSizeToWindowSize
13657 to cope with this, and call them before every window creation and move.
13658 Update CalculateWIndowRect to use Hwnd.GetWindowRect (one step towards
13659 removing DeriveStyles). In AddConfigureNotify don't do anything if the
13660 hwnd is a zombie (fixes the BadWindow we were getting while running the
13661 tests), always calculate the offsets when it's a parentless window, not
13662 only when reparented, and translate the window size, since we're getting
13663 the client size of the whole window, excluding entire window.
13664 * Theme.cs: Added BorderSizableSize.
13665 * XplatUIWin32.cs: Fix RECT Height and Width. Don't fake styles here
13666 anymore. Update calls to XplatUI.CalculateWindowRect due to API change.
13667 * Form.cs: Update calls to XplatUI.CalculateWindowRect due to API change.
13668 Fake the window styles here instead of in XplatUIWin32 so that all
13669 back-ends get the same window styles (and it's Form that's deciding when
13670 to use wm, not the Win32 backend anyways)
13671 * Hwnd.cs: Completely reworked GetWindowRectangle and GetClientRectangle -
13672 they are now passed a CreateParams and they only use Style and ExStyle
13673 to determine the rectangles (they should now work just like
13674 Win32AdjustWindowRectEx - though quite a few special cases are probably
13675 missing). They should also be 100% complimentary (i.e. GetWindowRectangle
13676 (GetClientRectangle (rect)) == rect), and all numbers (borders, menu
13677 sizes) are taken from the current theme. Added a GetBorders helper
13678 function that will return the borders for any given CreateParams
13679 (including captions and menus), and GetBorderSize that returns the given
13681 * XplatUIOSX.cs: Update calls to CalculateWindowRect and
13682 Hwnd.GetClientRectangle.
13684 2007-03-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
13686 * Form.cs: Don't layout mdi children on MdiParent creation, the initial
13687 layout of the mdi children is handled by CreateParams. Fixes
13690 2007-03-29 Everaldo Canuto <everaldo@simios.org>
13692 * MenuAPI.cs: Make OnMouseDown returns a boolean to identify if event is
13695 * Form.cs: When active tracker mouse down is not processed, send event
13696 back to control inside mouse position. [Fixes #81227]
13698 2007-03-29 Jonathan Pobst <monkey@jpobst.com>
13700 * ComboBox.cs: Override the ComboListBox's ActivateOnShow property and
13701 remove WS_VISIBLE from CreateParams to prevent combobox dropdowns from
13702 stealing focus from the active form on Windows. (Control will be made
13703 visible in ShowWindow.)
13705 2007-03-29 Mike Kestner <mkestner@novell.com>
13707 * ImageList.cs : add internal Changed event.
13708 * ListView.cs : hook up to StateImageList.Changed to perform
13709 invalidations when the the state icon list changes. [Fixes #81191]
13711 2007-03-29 Jonathan Pobst <monkey@jpobst.com>
13713 * ToolTip.cs: Override the ToolTipWindow's ActivateOnShow property
13714 to prevent tooltips from stealing focus from the active form on Windows.
13716 2007-03-29 Everaldo Canuto <everaldo@simios.org>
13718 * ThemeWin32Classic.cs: Small stetic fixes in notifyicon balloon.
13720 * ThemeClearlooks.cs: Implement notifyicon balloon for clearlooks theme.
13722 2007-03-29 Everaldo Canuto <everaldo@simios.org>
13724 * NotifyIcon.cs, ThemeWin32Classic.cs: Icon support added to notifyicon
13727 2007-03-29 Jackson Harper <jackson@ximian.com>
13729 * TextControl.cs: When deleting text from non multiline textboxes,
13730 we need to update the entire document, because line offsets will
13733 2007-03-29 Everaldo Canuto <everaldo@simios.org>
13735 * XplatUIX11.cs, ThemeWin32Classic.cs, Theme.cs: ShowBalloonWindow method
13736 added to theme, now we can create themes that uses diferent notify engines
13737 like notification-daemon from galago project or growl for Mac OS.
13739 2007-03-28 Everaldo Canuto <everaldo@simios.org>
13741 * NotifyIcon.cs: Prevent Balloon to show in task bar.
13743 2007-03-28 Everaldo Canuto <everaldo@simios.org>
13745 * XplatUIX11.cs: Prevent system to open more than one balloon.
13747 * NotifyIcon.cs: Prevent system to open more than one balloon and remove
13748 some compiler warning messages.
13750 2007-03-28 Everaldo Canuto <everaldo@simios.org>
13754 * XplatUIX11.cs: Implement SystrayBalloon for X11 systems.
13756 * ThemeWin32Classic.cs, Theme.cs: DrawBalloonWindow and BalloonWindowRect
13757 implemented, this methods is used by NotifyIcon.BalloonWindow class.
13759 * NotifyIcon.cs: BalloonWindow class added to support Balloon in X11
13762 2007-03-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13764 * ListViewItem.cs: Forgot to make Invalidate internal.
13766 2007-03-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13768 * ListView.cs: Add a InvalidateSelection method to
13769 invalidate methods which are currently selected, and call
13770 it when setting FullRowSelect and HideSelection, instead of
13773 2007-03-28 Chris Toshok <toshok@ximian.com>
13775 * XplatUIX11.cs (UnmapWindow): reindent this block.
13777 * DataGrid.cs (UpdateSelectionAfterCursorMove): we need to update
13778 the selection_start if we're moving the selection (that is, not
13779 extending it). Fixes bug #80461.
13781 2007-03-28 Jonathan Pobst <monkey@jpobst.com>
13783 * ProgressBar.cs: Make the default MarqueeAnimationSpeed = 100.
13784 * ToolStripPanel.cs: Fix RowMargin, Renderer, RenderMode, and
13785 create private ControlCollection.
13787 2007-03-28 Jonathan Pobst <monkey@jpobst.com>
13789 * Control.cs: We need to call OnVisibleChanged for our implicit
13790 children as well as our normal children. Fixes scrollbars in
13791 comboboxes not showing up.
13793 2007-03-28 Jonathan Pobst <monkey@jpobst.com>
13795 * Control.cs, Form.cs: Anywhere we call CreateHandle, we need to do
13796 the check for IsHandleCreated first. The check in CreateHandle is not
13797 good enough because CreateHandle can be overriden, and the override
13798 should not be called if the handle is already created.
13800 2007-03-28 Jonathan Pobst <monkey@jpobst.com>
13802 * ToolStrip.cs: Remove MonoTODO for tooltips.
13803 * ToolStripComboBox.cs: Fix MonoTODO for DropDownHeight and events.
13804 * ToolStripContainer.cs: Add custom ControlCollection class.
13805 * ToolStripContentPanel.cs: Fix Renderer setting to match MS behavior.
13806 * ToolStripDropDown.cs: Add some missing properties/methods.
13807 * ToolStripDropDownMenu.cs: Override OnLayout and SetDisplayedItems.
13808 * ToolStripItem.cs: Remove MonoTODO for tooltips.
13809 * ToolStripManager.cs: Add IsShortcutDefined.
13810 * ToolStripOverflow.cs: Override LayoutEngine.
13811 * ToolStripProgressBar.cs: Add MarqueeAnimationSpeed.
13812 * ToolStripSeparator.cs: Add ImageKey.
13814 2007-03-28 Jackson Harper <jackson@ximian.com>
13816 * TextControl.cs: If a char delete removes a line ending, we need
13817 to update the ending style.
13818 - Make sure the line ending calcs get called.
13820 2007-03-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
13822 * XplatUIX11.cs: CreateWindow: Remove old default form location code,
13823 it was making the new code not work. Fixed a typo in the new code
13824 as well. Fixes #79826.
13826 2007-03-27 Everaldo Canuto <everaldo@simios.org>
13829 - NIF_STATE and NIF_INFO added to NotifyIconFlags.
13830 - NOTIFYICONDATA properties sizes fixed, szTip is 128, not 64.
13831 - SystrayBalloon method implemented.
13832 [Add support for notifyicon balloon on win32, #79149]
13834 2007-03-27 Mike Kestner <mkestner@novell.com>
13836 * ThemeWin32Classic.cs : update StateImageList selection to mirror
13837 the ms behavior when only one image is added to the list.
13840 2007-03-27 Jackson Harper <jackson@ximian.com>
13842 * TextControl.cs: Improvements to non multiline line ending
13845 2007-03-27 Everaldo Canuto <everaldo@simios.org>
13847 * XplatUIX11.cs: Fix the time which tooltip is opened for NotifyIcon.
13849 2007-03-27 Everaldo Canuto <everaldo@simios.org>
13852 - Balloon message handling added.
13853 - Call XplatUI.SystrayBalloon in ShowBalloonTip.
13855 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
13856 XplatUIOSX.cs, XplatUIX11-new.cs: ShowBalloonTip method renamed
13857 to SystrayBalloon to me like other Systray method, also a
13858 handle parameter added.
13860 2007-03-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13862 * ListView.cs: Show scrollbars even when items.Count == 0
13863 but the columns Width is bigger than the ListView.Width.
13864 Also, when columns.Count == 0 set layout_wd and layout_ht
13865 to the ClientRectangle values, so we don't show any scrollbar
13868 2007-03-27 Everaldo Canuto <everaldo@simios.org>
13870 * XplatUIStructs.cs: Balloon (NIN_BALLOON*) constants added.
13872 2007-03-27 Jackson Harper <jackson@ximian.com>
13874 * RichTextBox.cs: The RTF library decodes the text properly for us
13877 2007-03-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13879 * ListView.cs: Display HeaderControl even when columns.Count == 0.
13880 * ThemeWin32Classic.cs: Use SystemBrushes.Control to draw the
13881 ListView header (HeaderControl), instead of Control.BackColor.
13883 2007-03-27 Jonathan Pobst <monkey@jpobst.com>
13885 * Control.cs: Call OnVisibleChanged in SetVisibleCore for non-forms.
13886 Fixes tab control issues where controls would not show up because they
13887 never received their OnVisibleChanged call.
13889 2007-03-27 Everaldo Canuto <everaldo@simios.org>
13891 * NotifyIcon.cs: Balloon events added (BalloonTipClicked, BalloonTipClosed,
13894 2007-03-27 Jonathan Pobst <monkey@jpobst.com>
13896 * Control.cs: We won't get a WM_SHOWWINDOW when we create a window that
13897 is maximized or minimized, so move CreateControl to Control.OnVisibleChanged.
13898 * Form.cs: After we set the form visible, send a fake WM_SHOWWINDOW if we
13899 are max or min. Remove WS_VISIBLE from CreateParams unless we are recreating
13900 the handle. Fix WindowState by using the internal variable until we are
13901 sure that we've been shown.
13902 * XplatUIX11.cs: Do not generate a WM_SHOWWINDOW message if new form is
13906 2007-03-27 Rolf Bjarne Kvinge <RKvinge@novell.com>
13908 * XplatUIX11.cs: Windows without WS_CAPTION can still get decorations
13909 (at least borders). Fixes #79386 on Linux (with a small difference
13910 in behaviour: when trying to resize a caption-less window metacity
13911 shows the sysmenu. Resizing is still possible though).
13912 * XplatUIWin32.cs: When setting window styles send request an extra
13913 WM_NCCALCSIZE when it's a form without title (due to no text and no
13914 caption), since Win32 seems to calculate it wrong the first time we
13915 get the message, though the second time things work as they should.
13916 * Form.cs: Reorder a few statements in ChangingParent, otherwise the
13917 newly reparented window might show up unparented. Update
13918 CreateParams to exclude WS_DLGFRAME if ControlBox is false and
13919 there's no title text. Fixes #79386.
13921 2007-03-27 Mike Kestner <mkestner@novell.com>
13923 * ListBox.cs : don't perform invalidations if the handle hasn't been
13924 created. [Fixes #80753]
13926 2007-03-27 Mike Kestner <mkestner@novell.com>
13928 * ListBox.cs : don't adjust top item when SelectedIndex is set to -1.
13931 2007-03-26 Everaldo Canuto <everaldo@simios.org>
13933 * XplatUIWin32.cs: Complete NOTIFYICONDATA structure, additional fields
13934 needed to implement Balloon.
13936 2007-03-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13938 * ListViewItem.cs: In the constructors that take
13939 an array of strings, don't use ListViewSubItemCollection.AddRange
13940 method to add items, since we need to have a different behaviour (in
13941 the constructors we add an item for each null string, opposed to
13942 the behaviour of AddRange, which adds nothing).
13944 2007-03-26 Andreia Gaita <avidigal@novell.com>
13946 * NumericUpDown.cs: Fix broken 1.1 api for ParseEditText
13948 2007-03-26 Jackson Harper <jackson@ximian.com>
13950 * TextControl.cs: Draw and measure line endings when in non
13952 - When searching the text, count the end of the last line as a
13955 2007-03-26 Jackson Harper <jackson@ximian.com>
13957 * RichTextBox.cs: The selection_start and selection_end don't
13958 really track the correct tags for the selection. So we'll manually
13959 compute the correct tag here.
13961 2007-03-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
13963 * ProgressBar.cs, ThemeWin32Classic.cs: Implemented drawing of Marquee
13964 and Continuous styles. Fixes #79469.
13966 2007-03-26 Jonathan Pobst <monkey@jpobst.com>
13968 * ToolStrip.cs: Implement Tooltips.
13969 * ToolStripItem.cs: Create internal method for determining tooltip.
13971 2007-03-26 Jonathan Pobst <monkey@jpobst.com>
13973 * PropertyGrid.cs: Hide a EditorBrowsable attribute from 1.1 API.
13975 2007-03-26 Everaldo Canuto <everaldo@simios.org>
13977 * NotifyIcon.cs: On disposing verify if icon is visible and hide it,
13978 it prevents a problem thak keeps icon visible after application
13981 2007-03-26 Everaldo Canuto <everaldo@simios.org>
13983 * NotifyIcon.cs: Balloon properties and methods created.
13985 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
13986 XplatUIOSX.cs, XplatUIX11-new.cs: Implement ShowBalloonTip method.
13988 2007-03-25 Jonathan Pobst <monkey@jpobst.com>
13990 * ToolStripComboBox.cs: Default the ComboBox's FlatStyle to Popup.
13992 2007-03-24 Jonathan Pobst <monkey@jpobst.com>
13994 * Control.cs: Make SetBoundsCore match MS better. The BoundsSpecified
13995 parameter indicates which aspects were explicit/user-set.
13996 * ComboBox.cs, ListBox.cs: Call SetBoundsCore correctly. (no 0 parameters).
13998 2007-03-24 Jonathan Pobst <monkey@jpobst.com>
14000 * ProgressBar.cs: Throw AOORE instead of AE for property Value (2.0).
14001 * ScrollBar.cs: Throw AOORE instead of AE for properties LargeChange,
14002 SmallChange, and Value (2.0).
14003 * Timer.cs: Throw AOORE instead of AE for property Interval (2.0).
14005 2007-03-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
14007 * ListView.cs: Always set item_control.Width in LayoutDetails
14008 if View is Details. Setting it later in CalculateScrollBars
14009 in a not-so-corner scenario (the sum of columns width is
14010 not bigger than the ListView width when handle is created, and then
14011 that sum gets bigger by increasing the width of the columns)
14012 causes a very weird recursion path (which shouldn't be happening,
14013 since header_control sets it in CalculateScrollBars too). This bug
14014 appeared after Chris' fixes for handle created issues, so probably
14015 it's related to some handle-creation time.
14017 2007-03-23 Chris Toshok <toshok@ximian.com>
14019 * DataGrid.cs (GetVisibleRowCount): increase the row count in the
14020 case where there's an add row, just so we don't end up in a case
14021 where it's not displayed (this happens when the row is partially
14022 obscured). Fixes bug #79574.
14024 2007-03-23 Jackson Harper <jackson@ximian.com>
14028 * RichTextBox.cs: Preserve line endings in the lines text buffer,
14029 also added an enum that represents the line ending type.
14031 2007-03-23 Andreia Gaita <avidigal@novell.com>
14033 * NumericUpDown.cs: Fix logic so Text and Value properties are not
14034 messed with in every method call, but only from DownButton,
14035 UpButton, UpdateEditText() and ValidateText. Fixes #80346
14037 2007-03-23 Chris Toshok <toshok@ximian.com>
14039 * DataGridTextBoxColumn.cs (GetFormattedValue): don't try to
14040 format objects if the format spec is "". Fixes bug #80889.
14042 2007-03-22 Miguel de Icaza <miguel@novell.com>
14044 * ToolStripPanel.cs (Join): added stubs to build PDN3
14046 * Control.cs (AutoScrollOffset): Add.
14048 * SystemInformation.cs (MouseWheelScrollDelta): Expose this
14049 property, its only implemented for Win32, on X11 it defaults to
14050 some hardcoded value.
14052 * ToolStripItem.cs (AllowDrop): Add property
14054 2007-03-22 Mike Kestner <mkestner@novell.com>
14056 * ListView.cs : in FullRowSelect Details mode, only enable box
14057 selection if the user clicks over the "item" column outside of the
14058 text area. Mmmmm, compatibility. [Fixes #80374 subpart 7]
14060 2007-03-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
14062 * Control.cs: ChangeParent: Call Form's ChangingParent even if the
14063 handle is not created yet.
14064 * Form.cs: Select: Don't call CreateHandle if the handle is already
14065 created, avoids a stack overflow on Windows when we are recreating
14067 * ScrollableControl.cs: Set the correct z-order for the scrollbars when
14068 they are made visible, and override AfterTopMostControl to keep
14069 them on top when other controls are brought to front.
14070 CalculateCanvas: Scrollbars are only visible if auto_scroll is true
14071 or force_*scroll_visible is true (old implementation always shows
14072 scrollbars when needed, no matter what auto_scroll was set to).
14073 * InternalWindowManager.cs: UpdateWindowDecorations: Add a
14074 IsHandleCreated check.
14076 2007-03-22 Andreia Gaita <avidigal@novell.com>
14078 * DataGrid.cs: Implement Column and Row auto sizing when double-clicking on
14079 row or col separator.
14080 * DataGridTextBoxColumn.cs: Implement GetPreferredHeight and GetPreferredSize
14082 2007-03-22 Everaldo Canuto <everaldo@simios.org>
14084 * MenuAPI.cs: Remove unneeded check for grab_control in UpdateCursor.
14086 2007-03-22 Everaldo Canuto <everaldo@simios.org>
14088 * MenuAPI.cs: UpdateCursor method added, it is calling in OnMotion to update
14089 cursor for child controls. In ShowWindow and HideWindow now call SetCursor
14090 every time. Fixes #80410.
14092 2007-03-22 Chris Toshok <toshok@ximian.com>
14094 * BindingSource.cs (AddNew): partially implement.
14096 remove a couple of NotImplementedException's
14097 to get bug #81148 closed.
14099 2007-03-22 Everaldo Canuto <everaldo@simios.org>
14104 - UpdateCursor method added to update the screen cursor.
14105 - GetAvailableCursor method added to return cursor for enabled tree,
14106 it searches for cursor on control and it's parent's for enabled control.
14107 - Call UpdateCursor method on setter of Cursor property.
14108 - On setter of Enabled call UpdateCursor when it is false, we need to
14109 change cursor to normal (or to this parent cursor) because cursor
14110 setting theres no effect to disabled controls.
14111 - Some minor source changes to follow the coding style guidelines.
14113 * XplatUIX11.cs: In MotionNotify only dispatch SET_CURSOR event for enabled
14116 2007-03-22 Chris Toshok <toshok@ximian.com>
14118 * XplatUIX11.cs: ignore the BadPicture errors cairo+render
14121 2007-03-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
14123 * XplatUIX11.cs: Implement default locations for forms.
14124 * Form.cs: Completely rework startup location for forms. Fixes #79964.
14125 * Hwnd.cs: Add previous_child_startup_location (to track the current
14126 startup location for any child forms of the current form) and
14127 previous_main_startup_location (to track the startup location for
14128 the current toplevel form).
14130 2007-03-21 Jonathan Pobst <monkey@jpobst.com>
14132 * Control.cs: Don't trigger a layout if an implicit control is added
14133 that isn't visible. Also, don't notify the owner when an implicit control
14134 is added. (Owners shouldn't even know about their implicit controls.)
14136 2007-03-21 Jonathan Pobst <monkey@jpobst.com>
14138 * ScrollableControl.cs: Add implicit controls with AddRangeImplicit
14139 to save some re-layouts.
14141 2007-03-21 Everaldo Canuto <everaldo@simios.org>
14143 * MenuAPI.cs: In ProcessKeys returns false when key is not processed.
14146 2007-03-21 Jonathan Pobst <monkey@jpobst.com>
14148 * FlowLayoutSettings.cs, ToolStrip.cs, ToolStripPanel.cs,
14149 ToolStripPanelRow.cs: Lazy instantiate the LayoutEngine.
14151 2007-03-21 Mike Kestner <mkestner@novell.com>
14153 * ListView.cs : disable selection update for non-left button clicks
14154 with mods and over selected items. [Fixes #80524]
14156 2007-03-20 Jackson Harper <jackson@ximian.com>
14159 * TextBoxBase.cs: Allow different types of line endings. \r, \r\n,
14162 2007-03-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
14164 * ComboBox.cs: PreferredHeight seems to be ItemHeight + 6, but there is
14165 very probably a more complicated calculation there. Update the
14166 textbox' ForeColor and BackColor when the ComboBox' colors are
14167 changed. Change the border change in LayoutComboBox to only affect
14168 the textbox, not all the calculations there. Seems to fix most of
14171 2007-03-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
14173 * ComboBox.cs: Handle Home and End keys as well as all combinations of
14174 modifiers + navigation keys as input keys, enables advanced text
14175 selection in the combobox (like Shift+Left Arrow for instance).
14176 ComboTextBox now overrides Focused and returns whatever
14177 ComboBox.Focused returns, since it really should be focused
14178 whenever the ComboBox is. Fixes #80795. Also make the border around
14179 the text box one pixel bigger, as mentioned in #79436.
14181 2007-03-20 Jackson Harper <jackson@ximian.com>
14183 * TreeView.cs: Don't offset the images, this was causing some
14184 artifacts when expanding/collapsing with images that were the
14185 exact height of the treenode.
14187 2007-03-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
14189 * TrackBar.cs: Query the theme for the correct value when the mouse
14190 moves and the thumb is pressed.
14191 * Theme.cs: Added TrackBarValueFromMousePosition
14192 * ThemeWin32Classic.cs: Reworked TrackBar drawing. Earlier
14193 implementation was updating the trackbar value when drawing, now
14194 the drawing methods only draw. Fixes #80900. Refactored the
14195 calculations out to TrackBarValueFromMousePosition and
14196 GetTrackBarDrawingInfo, so that TrackBar can get the correct value
14197 according to the mouse position whenever it wants to. Changed the
14198 light coloured pen when drawing the thumb from ControlLight to
14199 ControlLightLight, because the ControlLight is the same colour as
14200 the background so the 3D effect is lost.
14202 2007-03-20 Everaldo Canuto <everaldo@simios.org>
14204 * Form.cs: In ShowDialog uses MainForm as transient form when no form is
14205 defined. Fixes #80784.
14207 2007-03-20 Marek Habersack <mhabersack@novell.com>
14209 * ContextMenuStrip.cs: align with the change introduced in
14212 2007-03-20 Everaldo Canuto <everaldo@simios.org>
14214 * XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs,
14215 XplatUI.cs, Form.cs, ToolTip.cs: Remove unneeded parameter owner
14218 2007-03-19 Chris Toshok <toshok@ximian.com>
14220 * Control.cs (WmPaint): don't make use of the Handle property
14221 after an event is emitted, as the user could have closed the
14222 form/destroyed the control. Store the Handle in a local variable
14223 and make use of that. Fixes bug #80768.
14225 2007-03-20 Everaldo Canuto <everaldo@simios.org>
14227 * XplatUIX11.cs: Set _NET_WM_STATE_ABOVE on SetTopmost, it fixes Topmost
14228 behavior in X11 environments.
14230 2007-03-20 Everaldo Canuto <everaldo@simios.org>
14232 * Form.cs: Call SetTopmost in CreateHandle when window is topmost, its
14233 because on setter of topmost we dont call SetTopmost when handle is not
14236 2007-03-20 Jackson Harper <jackson@ximian.com>
14238 * TextControl.cs: Need to use SelectionLength () not
14239 selection_length, since that var is reset to -1.
14240 - Draw the caret when we don't have focus.
14241 * TextBox.cs: The selectall actually doesn't occur until the first
14243 * TextBoxBase.cs: Need to update the caret position after a
14246 2007-03-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
14248 * ListView.cs: Enable scrolling when using Tile view.
14250 2007-03-20 Everaldo Canuto <everaldo@simios.org>
14254 * XplatUIDriver.cs: Abstract SetOwner method created.
14256 * XplatUIOSX.cs: Override SetOwner to prevent compilation errors method
14257 must be implemented and was masked as todo.
14259 * XplatUIWin32.cs: SetOwner implemented using SetWindowLong with
14262 * XplatUIX11.cs: SetOwner implemented using same code from SetTopmost but
14263 cheking for null owner to remove transient. The SetTopmost will be change
14266 * Form.cs: In set_Owner and CreateHandle uses new SetOwner instead of
14267 SetTopmost. Now owned forms will work properly in win32 and X11.
14269 2007-03-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
14271 * MdiWindowManager.cs: Update function name.
14272 * Form.cs: After closing a form MdiParent is always null.
14273 * MdiClient.cs: Rename CloseChildForm to ChildFormClosed to explain
14274 better what it should do: necessary book-keeping when the form is
14275 closed, it should not close the form itself.
14277 2007-03-19 Andreia Gaita <avidigal@novell.com>
14279 * ListViewItem.cs: Fix back and fore color. The subitems only
14280 use their own colors if they are set, otherwise use the listview's
14281 colors. Don't set default colors on constructor for subitem.
14284 2007-03-19 Mike Kestner <mkestner@novell.com>
14286 * ListView.cs : make box selection for Details views with
14287 FullRowSelect conform to MS behavior when clicking in the "item"
14288 column and clicking outside the defined columns.
14289 [Fixes case 5-6 of #80374]
14291 2007-03-19 Chris Toshok <toshok@ximian.com>
14293 * ScrollableControl.cs: create the controls from within the ctor,
14294 but don't actually add them until our handle is created. this
14295 fixes a NRE possibility jpobst found (if you override OnLayout in
14296 a subclass, it's called before your ctor). Also, add a
14297 IsHandleCreated guard to UpdateSizeGripVisibility as well.
14299 2007-03-19 Jackson Harper <jackson@ximian.com>
14301 * TextBox.cs: Reduce the amount of invalidation we do.
14302 * TextBoxBase.cs: Make shortcuts enabled true by default, at least
14303 some of them are true by default on MS.
14304 - Add some functions to reduce the amount of invalidates we do.
14305 * TextControl.cs: Less invalidation.
14307 2007-03-19 Chris Toshok <toshok@ximian.com>
14309 [ Fixes #81773, and *seems* to fix #81553 as well ]
14311 * XplatUIX11.cs: remove the assignment of hwnd.zombie = true from
14312 AccumulateDestroyedHandles. We need to do it *after* we send
14313 WM_DESTROY, as the user's code can access Control.Handle in
14314 OnHandleDestroyed, and this shouldn't cause a recreation. Also,
14315 move the WM_DESTROY/zombie handling to before the call to
14316 XDestroyWindow. For some reason without this ordering
14317 FormTest.RecreateHandle hangs. This ordering is semantically
14318 equivalent, however, as XDestroyWindow is async anyway.
14320 2007-03-19 Gert Driesen <drieseng@users.sourceforge.net>
14322 * RichTextBox.cs: Reset backcolor_set after setting default.
14324 2007-03-19 Chris Toshok <toshok@ximian.com>
14326 * ScrollableControl.cs: the scroll position should not effect the
14327 canvas size. commit patch from georgegiolfan@yahoo.com, which
14328 fixes some really bizarre behavior on resizing. Fixes bug #80778.
14330 2007-03-19 Chris Toshok <toshok@ximian.com>
14332 * ScrollableControl.cs: clean this up a bit. create the
14333 scrollbars in the ctor and just show/hide them as needed. Also,
14334 make hscroll_visible/vscroll_visible internal to Recalculate, and
14335 just use hscrollbar.VisibleInternal/vscrollbar.VisibleInternal
14336 everywhere else. This seems to fix the scrollbars appearing
14337 beneath the content for me (i have *no* idea why that is,
14340 2007-03-19 Jonathan Pobst <monkey@jpobst.com>
14342 * ToolStrip.cs: Don't call DoAutoSize when we change Dock. Also, remove
14343 some redundacy for stuff in Anchor and Dock that base will take care of.
14346 2007-03-19 Mike Kestner <mkestner@novell.com>
14348 * ListView.cs : make box selection for Details views without
14349 FullRowSelect dependent on the text bounds, not item bounds.
14350 * ListViewItem.cs : add an internal property to obtain the TextBounds
14351 in Details view. [Fixes case 1-4 of #80374]
14353 2007-03-19 Andreia Gaita <avidigal@novell.com>
14355 * PaintEventArgs.cs (Dispose): Only dispose of graphics object if
14356 we're < 2.0. #78448 && #80316
14358 2007-03-19 Jonathan Pobst <monkey@jpobst.com>
14360 * FontDialog.cs: Don't crash when we switch to a new font that doesn't
14361 have the same style available as the previously selected one. Also,
14362 support FixedPitchOnly property. [Fixes bugs #80918, #80947]
14364 2007-03-19 Jackson Harper <jackson@ximian.com>
14366 * TextControl.cs: Add an alignment property that all new lines
14368 - Make sure to use the align shift when calculating the line's X
14370 * TextBox.cs: Set the alignment on the document as well as on all
14371 the document lines.
14373 2007-03-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
14375 * Control.cs: ControlCollection.Add: Remove a couple of duplicated casts and
14376 throw if setting the parent of an mdichild that already has an
14377 mdiparent. Update signature for 2.0 profile. ProductName: If there's no
14378 AssemblyProductAttribute in the assembly, use the type's namespace (as
14379 MS seems to do). CreateControl: don't create the handle if the control
14380 is not visible (according to MS behaviour and spec). SetTopLevel: Only
14381 create handle if the control is not a form. Change FocusInternal to
14382 virtual so that it can be overriden by Form.
14383 * TextBox.cs: Update call to FocusInternal.
14384 * Form.cs: Always create the handle when calling Focus on a MdiChild. The
14385 form is not a toplevel form when it's a mdi child, so update is_toplevel
14386 accordingly. ShowIcon/TransparencyKey: avoid creating the handle if it
14387 hasn't been created. Show (IWin32Window): Don't allow this overload for
14388 toplevel windows. CenterToParent/CenterToScreen/Select: create the
14389 handle as MS does. SetVisibleCore: if called on a MdiChild and the
14390 parent isn't visible yet, save the visibility and restore it when the
14391 parent is made visible.
14392 * ScrollableControl.cs: Refactor out scrollbar visibility code to separate
14393 methods, since the visibility of the scrollbars can be changed from
14394 several places, not only from AutoScroll.
14397 2007-03-19 Jackson Harper <jackson@ximian.com>
14399 * RichTextBox.cs: Enable shortcuts by default.
14400 * TextBoxBase.cs: Add conditional shortcuts.
14402 2007-03-19 Everaldo Canuto <everaldo@simios.org>
14404 * MenuItem.cs: Dont call OnDrawItem when OwnerDraw is false (#81182).
14406 2007-03-19 Chris Toshok <toshok@ximian.com>
14408 [ Fixes bug #80604]
14410 * XplatUIX11.cs (WaitForHwndMessage): change this to actually
14411 swallow the message we're waiting on, instead of delivering it, as
14412 this is only used for the WM_SHOWWINDOW raised from
14413 MapWindow/UnmapWindow, and the message needs to be generated
14414 (MapWindow, UnmapWindow): generate the WM_SHOWWINDOW message
14415 before doing the Map/Unmap. Also make sure that the Hwnd is still
14416 alive after the message has been handled.
14418 *before* the window is shown.
14420 * Control.cs (CreateControl): guard a few more things inside the
14421 if (!is_created) block, as we might end up being called again -
14423 (WmShowWindow): call CreateControl if we're showing the control.
14425 2007-03-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
14427 * Control.cs: Fix 2.0 signature for Invoke. Support invoking on
14428 controls without a handle if they have any parent with a handle. In
14429 Dispose add a check whether the handle is created or not before
14430 calling BeginInvoke, this removes the need of the extra disposing
14431 parameter (which was bogus anyway since it didn't prevent the
14432 invoke from happening, it only skipped the check for an existing
14433 handle, meaning that the invoke would call on an inexistent
14436 2007-03-19 Everaldo Canuto <everaldo@simios.org>
14438 * MessageBox.cs: Remove WS_POPUP from CreateParams style, with it form
14439 appears in taskbar.
14441 2007-03-18 Everaldo Canuto <everaldo@simios.org>
14444 - Fixed a problem that dont show help button for messages with 3 buttons.
14445 - Refactory button size and position calculations, now dont use fixed
14446 values, also fixed button sizes (#80043) and form's border space.
14447 - AddButton method created, now all other AddButton methods call this one.
14448 - Some other source code cosmetic changes.
14450 2007-03-18 Jackson Harper <jackson@ximian.com>
14452 * RichTextBox.cs: Don't do this all fonts must match check if
14453 there is only one char selected.
14455 2007-03-18 Jackson Harper <jackson@ximian.com>
14457 * TreeView.cs: ScrollWindow works properly now, so we don't need
14458 to screw around with the scroll area. This fixes some artifacts
14459 when expanding and collapsing.
14461 2007-03-18 Jackson Harper <jackson@ximian.com>
14463 * TextBoxBase.cs: Allow updating the selection position when the
14464 cursor is outside the textarea, but we have a capture.
14465 * TextControl.cs: A special case for when the cursor is outside
14466 the bounds of the TB.
14468 2007-03-18 Jackson Harper <jackson@ximian.com>
14470 * TextBoxBase.cs: Remove image pasting code for now. There is no
14471 way to get an image on the clipboard right now anyways.
14473 * RichTextBox.cs: Use the new RTF Picture class for pictures.
14475 2007-03-18 Everaldo Canuto <everaldo@simios.org>
14478 - Set window properties in constructor intead of on CreateParams.
14479 - Remove topmost from Window ExStyle.
14480 - Set ShowInTaskbar to false.
14481 - Set form border to FixedDialog.
14482 - Some cosmetic changes and remove unneeded comments.
14483 - It fixes itens 2,3 and 4 of bug #80043.
14485 2007-03-18 Gert Driesen <drieseng@users.sourceforge.net>
14487 * TextBoxBase.cs: In setter for ReadOnly, only chance BackColor if
14488 none was explicitly set. Fixes part of bug #79949.
14490 2007-03-16 George Giolfan <georgegiolfan@yahoo.com>
14492 * ToolStripComboBox.cs: Add AutoComplete*.
14494 2007-03-16 George Giolfan <georgegiolfan@yahoo.com>
14496 * ToolStripComboBox.cs: Add FlatStyle.
14498 2007-03-16 Jonathan Pobst <monkey@jpobst.com>
14500 * ToolStrip.cs, ToolStripProfessionalRenderer.cs,
14501 ToolStripSplitStackLayout.cs: Implement some basic vertical toolbar support.
14503 2007-03-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
14505 * ButtonBase.cs, ToolStrip.cs, SendKeys.cs, TextRenderer.cs,
14506 CheckBox.cs, RadioButton.cs, BindingSource.cs,
14507 DataGridColumnStyle.cs: Remove warnings.
14509 2007-03-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
14511 * Menu.cs: MergeMenu: Check menu argument for null before looping over
14513 * MdiWindowManager.cs: Add IsVisiblePending to track the pending
14514 visibility of mdi child forms. FormSizeChangedHandler: update the
14515 maximized size if size has changed while maximized.
14516 * MdiClient.cs: SizeScrollbars/ArrangeWindows/ActivateChild: Avoid
14517 creating the handle.
14518 * InternalWindowManager.cs: UpdateBorderStyle/FormSizeChangedHandler:
14519 avoid creating the handle if not created.
14520 * XplatUI.cs: Update debug output.
14521 * XplatUIStructs.cs: Added ToString's for a couple of structs.
14523 2007-03-16 Jonathan Pobst <monkey@jpobst.com>
14525 * ContainerControl.cs: Give ToolStripManager the opportunity to handle
14527 * ToolStripDownItem.cs, ToolStripItem.cs, ToolStripItemCollection.cs,
14528 ToolStripItemEventType.cs, ToolStripManager.cs, ToolStripMenuItem.cs:
14529 Implement keyboard shortcuts.
14531 2007-03-15 Everaldo Canuto <everaldo@simios.org>
14533 * CommonDialog.cs: Set StartPosition to CenterScreen on form's constructor.
14534 Fixes #79560 and #80200, it also fix problem in FileDialog, SaveDialog,
14535 ColorDialog and all derived classes.
14537 2007-03-15 Everaldo Canuto <everaldo@simios.org>
14539 [ Fixes bug #79828 ]
14542 - Rename ToolBarButtonInfor to ToolBarItem.
14543 - Add all layout and calculation stuff gtom ToolBarButton to ToolBarItem.
14544 - Maintain an array of ToolBarItem, used instead of ToolBarButton
14545 collection to be able add same button more than one time on a toolbar.
14546 - Refactory all properties and methods to use ToolBarItem.
14548 * ToolBarButton.cs:
14549 - Remove all propeties and methods that is now in ToolBarItem.
14550 - Rectangle propery now gets the rectangle from first ToolBarItem to
14551 mimic win32 behavior.
14552 - Size calculation and layout methods also removed.
14554 * ThemeWin32Classic.cs: Change all ToolBar drawing methods to receive
14555 ToolBarItem instead of ToolBarButton to right drawing buttons when
14556 same button/separator was added more than one time to ToolBar.
14558 * ThemeNice.cs: Same as above.
14560 2007-03-15 Andreia Gaita <avidigal@novell.com>
14562 * XplatUIX11.cs: Fire extra MouseMove events right after
14563 MouseDown and MouseUp, emulating win32's <censored> behaviour
14564 for apps that rely on it.
14566 2007-03-15 Jackson Harper <jackson@ximian.com>
14569 * TextBoxBase.cs: On MS, a fixed single border is not in NC area,
14570 it is drawn on the controls client window and there is no NC
14572 - Set the background color to gray on 2.0 when we are readonly.
14574 2007-03-15 Chris Toshok <toshok@ximian.com>
14576 [ Fixes bug #81144 ]
14578 * XplatUIX11.cs: implement VirtualScreen independently of
14579 WorkingArea, by querying the _NET_DESKTOP_GEOMETRY root window
14582 2007-03-15 Chris Toshok <toshok@ximian.com>
14584 * Hwnd.cs: add an internal field for the cached_window_state.
14586 * XplatUIX11.cs: cache the window state, invalidating the cache
14587 (and thus re-querying the X server) only when we see an update to
14588 the _NET_WM_STATE property.
14590 2007-03-15 Chris Toshok <toshok@ximian.com>
14592 * BindingSource.cs: get a lot of the unit tests working.
14594 2007-03-15 Jonathan Pobst <monkey@jpobst.com>
14596 * Control.cs: Modify UpdateStyles to store distances when bounds >=
14597 0 instead of just bounds > 0. [Fixes bug #80912]
14599 2007-03-15 Jonathan Pobst <monkey@jpobst.com>
14601 * ToolStrip.cs, ToolStripItem.cs: Implement several new properties
14604 2007-03-15 Ivan N. Zlatev <contact@i-nz.net>
14606 * ComboBox.cs, Control.cs, XplatUIStructs.cs, XplatUIX11GTK.cs,
14607 XplatUIX11.cs, XplatUIWin32.cs, InternalWindowManager.cs,
14608 XplatUIOSX.cs, TextControl.cs: Replaces all uses of the custom
14609 WM_MOUSE_LEAVE with the system WM_MOUSELEAVE message.
14611 2007-03-15 Chris Toshok <toshok@ximian.com>
14615 * Control.cs: add Ivan's fix for 81101, with a slight modification
14616 - you can set control.Target to null.
14618 2007-03-14 Jonathan Pobst <monkey@jpobst.com>
14620 * ToolStripItem.cs: If our OwnerItem is null, we can't use
14621 HideDropDown, use Hide instead to prevent an NRE.
14624 2007-03-14 Jackson Harper <jackson@ximian.com>
14626 * TextBoxBase.cs: Mess with the creation stuff a little. We need
14627 to calculate the document before the handle is created, in some
14628 cases. (Actually just one case).
14630 2007-03-14 Jackson Harper <jackson@ximian.com>
14632 * TextBoxBase.cs: Need to display the caret after letting the base
14633 wndproc handle the focus methods, because the caret display
14634 methods check the focus state.
14635 - Try to display the caret after updating it's position with SelectWord.
14636 - Don't need to do an immediate update on this recalc, since there
14637 will be an invalidate anyways.
14639 2007-03-14 Jackson Harper <jackson@ximian.com>
14641 * TreeView.cs: Some workarounds so that we can match event order a
14644 2007-03-14 Gert Driesen <drieseng@users.sourceforge.net>
14646 * ErrorProvider.cs: Invoke default ctor from 2.0-only ctor. Fixes bug
14647 #80803. Avoid NullReferenceException when Control does not have
14648 parent. Fixed different blinkstyle issues. Only subscribe to Tick
14649 event a single time. Only draw error icon when control is created and
14650 visible. Fixes failing unit tests.
14652 2007-03-14 Andreia Gaita <avidigal@novell.com>
14654 * TabControl.cs: Add support for 2.0 Deselecting, Deselected and
14655 Selecting events. Fire Leave and Enter events when changing tabs.
14657 2007-03-14 George Giolfan <georgegiolfan@yahoo.com>
14659 * TreeView.cs: Add TreeViewNodeSorter.
14660 * TreeNodeCollection.cs: Add sorter parameter to Sort method.
14662 2007-03-14 Chris Toshok <toshok@ximian.com>
14664 * Form.cs: go ahead and remove the RecreateHandles that jpobst
14665 removed earlier and I had him add back it. It turns out metacity
14666 *does* in fact handle the MOTIF_WM_HINTS property changing, it
14667 just doesn't redraw the window titlebar until you resize the
14668 window. This also means we aren't recreating the entire window
14669 hierarchy on X when you change this property. And it looks better
14672 2007-03-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
14675 * ListView.cs: Collecting selection information
14676 is now done in SelectedIndexCollection rather than in
14677 SelectedListViewItemCollection. This is done so we can
14678 have the selection information code in one single place
14679 (virtual mode selection information entirely depends on
14680 SelectedIndexCollection).
14682 2007-03-13 Miguel de Icaza <miguel@novell.com>
14684 * ErrorProvider.cs: Add stubs for ISupportInitialize
14686 2007-03-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
14688 * ListViewItem.cs: Trigger the ItemCheck and ItemChecked events
14689 in the right order with the right values, from the Checked property,
14690 just as MS does (instead of triggering them from ListView).
14692 * ListView.cs: Make OnItemCheck and OnItemChecked internal.
14694 2007-03-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
14696 * ListView.cs: Implement ItemChecked 2.0 event. Also cast to
14697 the correct handler in OnItemCheck method (ItemCheckEventHandler
14698 instead of EventHandler). This used to throw an InvalidCastException.
14700 2007-03-13 Jackson Harper <jackson@ximian.com>
14702 * TextBoxBase.cs: Calculate the document before the handle is
14703 created, so there isn't an extra invalidate called.
14705 2007-03-13 Jonathan Pobst <monkey@jpobst.com>
14707 * Form.cs: Don't set owner in ShowDialog until we are sure
14708 that we aren't going to throw an exception. [Fixes bug #80773]
14710 2007-03-12 George Giolfan <georgegiolfan@yahoo.com>
14712 * TreeView.cs: Make it compile.
14714 2007-03-12 Jonathan Pobst <monkey@jpobst.com>
14716 * Control.cs: Another place we don't call SizeFromClientSize.
14717 * Form.cs: Another place we don't call SizeFromClientSize.
14720 2007-03-12 Jackson Harper <jackson@ximian.com>
14722 * TreeView.cs: Basically emulating some strangness here with
14723 exanding nodes and setting node positions when windows aren't
14725 - Also attempting to walk the node tree less than previously, and
14726 just use visible order calculations for determining offsets.
14727 - oops made scrolling backwards.
14728 * TreeNode.cs: We need to start nodes with a zero visible order,
14729 because the order calcs are based on the first nodes order.
14731 2007-03-12 Jonathan Pobst <monkey@jpobst.com>
14733 * Form.cs: Don't exit the program if RecreateHandle is called on
14736 2007-03-12 Chris Toshok <toshok@ximian.com>
14738 * XEventQueue.cs: remove the use of PostQuitState.
14740 * XplatUIX11.cs: remove the use of PostQuitState. If we get a
14741 WM_QUIT message in GetMessage, return false (and if we're in the
14742 nested WaitForHwndMessage, repost the WM_QUIT message).
14744 2007-03-12 Jonathan Pobst <monkey@jpobst.com>
14746 * Form.cs: Don't call RecreateHandle when we change the MinimizeBox
14747 or the MaximizeBox properties. [Part of bug #80640]
14749 2007-03-12 Everaldo Canuto <everaldo@simios.org>
14751 * LinkLabel.cs: When calculate pieces make LinkArea empty if theres
14754 2007-03-12 Jonathan Pobst <monkey@jpobst.com>
14756 * ToolStripItem.cs: Fix some tests I broke by checking Visible
14757 instead of visible.
14759 2007-03-12 Gert Driesen <drieseng@users.sourceforge.net>
14761 * FileDialog.cs: Use text of File name combobox to determine what
14762 files the user selected. Added tokenizer to parse the file names.
14765 2007-03-12 Jonathan Pobst <monkey@jpobst.com>
14767 * Control.cs: We can't call SizeFromClientSize in the constructor,
14768 but we still need to do the same work, so make an internal version.
14771 2007-03-12 Jackson Harper <jackson@ximian.com>
14775 * OpenTreeNodeEnumerator: Match MS better for IsVisible and
14778 2007-03-12 Jackson Harper <jackson@ximian.com>
14780 * TextBoxBase.cs: Now that the handles are being created a little
14781 later, we need to make sure that the document is recalculated when
14782 the handle is created.
14784 2007-03-11 Everaldo Canuto <everaldo@simios.org>
14786 * Theme.cs: GetLinkFont abstract method added.
14789 - Remove CalcTrimRectangle, no longer needed.
14790 - Factor also remove, position issues must be fixed in libgdiplus.
14791 - Move GetPieceColor to ThemeWin32Classic.cs as it is theme related.
14792 - GetPieceFont, CreateLinkFont and link_font removed, theme must be
14793 care about font used to draw links.
14794 - Set TabStop to true when control is "Selectable", control is selectable
14795 when have one or more links. Fixes #80501 (test case is also added).
14796 - Set the LinkArea values after links change, LinkArea values must be
14797 based in first link position and size, a test case was created.
14798 - Fix ControlStyles.Selectable value, now is based on LinkArea value,
14799 the attribute must be true LinkArea.Length > 0. The same was applied to
14802 * ThemeWin32Classic.cs:
14803 - LinkLabelGetPieceColor and LinkLabelGetPieceFont created and used
14805 - Use CPDrawStringDisabled to draw disabled text instead of hard code
14807 - Draw focus rectangle for every parts focused, including parts that
14808 is on another line, its because regions returns various rectangles
14809 and not only one. Needed to mimic W32 look.
14810 - Uses Graphics.Clip to delimite region painted, it mean that now
14811 complete text is passed to DrawString, with this we solve layout
14812 issues without create another text renderer.
14813 - Uses Region.Intersect to fix some flickers problems, now only needed
14814 parts will redrawed.
14815 - This changes fixes #79614 and some other unreported issues, on Linux
14816 some layout problems still remain, the problem is under
14817 MeasureCharacterRanges but it is an libgdiplus bug.
14819 2007-03-10 Gert Driesen <drieseng@users.sourceforge.net>
14821 * TextBox.cs: Set for foreground color.
14822 * TextBoxBase.cs: Remove Invalidate when setting BackColor, since
14823 this is already done in Control.
14825 2007-03-10 Jackson Harper <jackson@ximian.com>
14827 * TextBox.cs: Set the background color, but reset the
14828 backcolor_set flag which is just for the user setting the
14831 2007-03-09 Chris Toshok <toshok@ximian.com>
14833 * Control.cs: really remove the call to XplatUI.SetVisible from
14834 CreateHandle(), like I said I did when I merged the branch.
14836 * BindingSource.cs: implement some more of this stuff.
14838 2007-03-09 Jackson Harper <jackson@ximian.com>
14840 * TextBox.cs: Don't explicitly set our background colors.
14842 * TextBoxBase.cs: Draw readonly text.
14843 - Need to invalidate when backcolor or readonly are changed.
14845 2007-03-09 Jackson Harper <jackson@ximian.com>
14847 * TextBoxBase.cs: Don't set the forecolor until the handle is
14849 - Do not raise OnPaint, and removed some old debug code.
14851 2007-03-09 George Giolfan <georgegiolfan@yahoo.com>
14853 * ScrollableControl.cs: Fix mouse wheel scrolling.
14855 2007-03-09 Jonathan Pobst <monkey@jpobst.com>
14857 * Control.cs: Wire up MouseDoubleClick event.
14859 2007-03-09 Jonathan Pobst <monkey@jpobst.com>
14861 * ToolStrip.cs: Rework AutoSize to adjust height when docked to the
14863 * ToolStripItem.cs: Make Image drawing take ImageScaling into account.
14864 * ToolStripItemCollection.cs: Don't call owner.PerformLayout when a new
14865 item is added. This logic was moved to ToolStrip.OnItemAdded.
14868 2007-03-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
14870 * ListVieItem.cs: SetIndex is only valid for 2.0 profile by now.
14872 2007-03-08 Jackson Harper <jackson@ximian.com>
14874 * TreeView.cs: Show the correct image for selected node (this used
14875 to work, not sure how the code got deleted). Also implemented 2.0 feature
14878 2007-03-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
14881 * ListViewItem.cs: Cache index in items when retrieving them
14884 2007-03-08 Jonathan Pobst <monkey@jpobst.com>
14886 * ToolStripItem.cs: Don't return the explicit_size if we are using
14887 AutoSize. Fixes invalidation issue when user has explicitly set a
14888 size and has AutoSize = true.
14890 2007-03-08 Jonathan Pobst <monkey@jpobst.com>
14892 * XplatUIX11.cs: Hardcode FrameBorderSize value temporarily to fix MWF.
14894 2007-03-07 Pedro Martínez Juliá <pedromj@gmail.com>
14896 * DataGridView.cs: Remove event handler from DataView when a
14897 DataTable is used as DataSource.
14899 2007-03-08 Jonathan Pobst <monkey@jpobst.com>
14901 * Control.cs: Create internal setter for client_size to allow it to be
14902 set without triggering resizing code.
14903 * Form.cs: Calculate client_size in constructor, only change client_size
14904 in FormBorderStyle property if Handle has been created.
14905 [Fixes #80574, #80791]
14907 2007-03-08 George Giolfan <georgegiolfan@yahoo.com>
14909 * SystemInformation.cs: Add TerminalServerSession.
14911 2007-03-07 Jonathan Pobst <monkey@jpobst.com>
14913 * TreeViewDrawMode.cs: Make internal for 1.1 to allow for consolidated
14916 2007-03-07 Jonathan Pobst <monkey@jpobst.com>
14918 * XplatUIWin32.cs: The no_activate stuff was forcing us to create a
14919 Handle before we were supposed to. Now checks ActivateOnShow property
14921 * Control.cs: Add internal ActivateOnShow property.
14922 * ComboBox.cs, Form.cs, MenuAPI.cs, ToolStripDropDown.cs: Return false
14923 for ActivateOnShow.
14924 * Hwnd.cs Remove no longer needed no_activate field.
14926 2007-03-07 Jackson Harper <jackson@ximian.com>
14928 * TreeView.cs: Implement owner draw tree nodes. And a couple more
14930 * DrawTreeNodeEventHandler.cs: Add
14931 * DrawTreeNodeEventArgs.cs: Correct default value.
14933 2007-03-07 Chris Toshok <toshok@ximian.com>
14935 * XplatUIWin32.cs: create InternalWndProc so that we're guaranteed
14936 to be called before NativeWindow.WndProc. Put the HwndCreating
14937 magic there to hook up our Hwnd's to handles.
14939 2007-03-07 Gert Driesen <drieseng@users.sourceforge.net>
14941 * DataGridView.cs: Comment out debug code.
14943 2007-03-07 Chris Toshok <toshok@ximian.com>
14945 [merge -r72718:73765 from mwf-handle-branch, and include 2 changes
14946 to make the rest of the world happy]
14948 * Control.cs (CreateHandle): there's no need to call
14949 XplatUI.SetVisible here, it's effectively done by
14950 XplatUI.CreateWindow on X now, and always was on windows.
14952 * XplatUIX11.cs (WaitForHwndMessage): only use the PostQuitState
14953 shortcircuit out of the loop if we have a message loop running on
14956 [Changelog from merge]
14958 2007-03-05 Chris Toshok <toshok@ximian.com>
14960 * Control.cs (AccessibilityNotifyClients): turns out in 1.1 this
14961 causes handle creation.
14963 2007-02-28 Chris Toshok <toshok@ximian.com>
14965 * ApplicationContext.cs: Add a flag to make sure we only raise the
14966 ThreadExit event once (ExitThreadCore can be indirectly called
14967 from a few places.) I don't like the additional flag, but it
14968 makes the event ordering/count correct.
14970 * Application.cs (MWFThread.LoopCount): don't use an enumerator
14971 without locking the collection. An enumerator doesn't give us any
14972 protection from modification anyway. Lock the thread hash and
14973 replace the complicated enumerator loop with a foreach.
14974 (Application.CloseForms): make internal so it can be called from
14975 ApplicationContext. This should probably be moved to MWFThread.
14976 (Application.ExitThread): don't call MWFThread.Current.Exit()
14977 here. just call XplatUI.PostQuitMessage. We'll exit the thread
14978 when the runloop exits (in response to WM_QUIT.)
14979 (Application.RunLoop): add a comment (and check) for
14980 context.MainForm being null after setting context.MainForm.Visible
14981 = true. This is because you're perfectly free to dispose of a
14982 form in VisibilityChanged. Chalk this up to another case where we
14983 need to synchronously generate WM_ACTIVATE from Control.Show.
14984 Also, add handling for WM_QUIT here so we'll exit the loop.
14986 * XplatUIX11.cs: clean up MapWindow and UnmapWindow a bit. The
14987 fact that we don't wait if we're only unmapping the whole_window
14988 makes me a bit nervous, but it doesn't seem to cause any problems
14991 also, add a comment about the stupid, broken and wrong resetting
14992 of PostQuitState to false in GetMessage().
14994 In PostQuitMessage, we need to add a WM_QUIT message to the
14995 thread's queue. We use the FosterParent to get the right
14998 Lastly, in SetVisible, we need to unmap both windows, since the
14999 waiting only happens when we're unmapping the client window. So
15000 now, the *only* time we unmap just the whole_window is in the hack
15001 for resizing a control to 0,0.
15003 2007-02-21 Chris Toshok <toshok@ximian.com>
15005 * Application.cs (CloseForms): rewrite this so that we don't
15006 modify the list while we're traversing it.
15008 2007-02-20 Chris Toshok <toshok@ximian.com>
15010 * ListBox.cs (.ctor): move the Control.AddImplicits here instead
15011 of OnHandleCreated.
15012 (HorizontalScrollEvent): only call XplatUI.ScrollWindow if the
15013 handle is created. otherwise we'll create it here.
15014 (VerticalScrollEvent): same here.
15016 * Application.cs (CloseForms): call Form.Dispose, don't post
15019 * Form.cs (WndProc): we don't need to use CLOSE_INTERNAL
15020 here. Application should Dispose() of the Form's.
15022 * XplatUIX11.cs (WaitForHwndMessage): break out of the loop on
15023 WM_DESTROY as well.
15024 (MapWindow,UnmapWindow): only actually do the waiting for
15025 SHOWWINDOW if the control we're dealing with is a Form.
15026 (CreateWindow): if the control isn't a form, SendMessage
15027 WM_SHOWWINDOW here (if the WS_VISIBLE style is set).
15029 * Control.cs (SetVisibleCore): always use is_visible here, not
15030 value. If we use value, we can end up re-setting something
15031 visible if, for instance, you do Control.Hide() in a delegate
15032 attached to VisibleChanged as we do in FormTest.ShowDialogTest.
15034 2007-02-20 Chris Toshok <toshok@ximian.com>
15036 * XplatUIX11.cs (WaitForHwndMessage): we need to loop until we get
15037 the message we need. PeekMessage returning false should not be a
15038 condition under which we exit the loop.
15040 2007-02-15 Chris Toshok <toshok@ximian.com>
15042 * Control.cs (Refresh): only refresh if we've got a handle and are
15044 (CreateAccessibilityInstance): CreateControl() here.
15045 (UpdateChildrenZOrder): complicate the code loop even more by
15046 taking into account controls that haven't had their handle
15047 created, and those that aren't visible. But on the flip side,
15048 simplify the code by splitting it into two loops. one which
15049 builds up the list of child controls we're interested in, and the
15050 other that sets the z order of those children.
15052 2007-02-14 Chris Toshok <toshok@ximian.com>
15054 * Control.cs: Control.AccessibilityObject causes the control to be
15055 created, not just the handle.
15057 2007-02-14 Chris Toshok <toshok@ximian.com>
15059 * Control.cs: rework UpdateChildrenZOrder to correctly handle the
15060 problem on X where a window might have its handle created (and be
15061 visible) while the window is unmapped. calling XConfigureWindow
15062 on an unmapped window is bad, and generates X errors.
15064 2007-02-13 Chris Toshok <toshok@ximian.com>
15066 * Control.cs (CreateHandle): don't loop over our children setting
15067 their parent here. do it when in WndProc when we're shown.
15068 (UpdateChildrenZOrder): make this internal so we can call it from
15070 (WndProc): for WM_SHOWWINDOW, reparent the child control after
15071 creating its handle. Also, remove the calls to PerformLayout from
15072 here. they're done in ScrollableControl.OnVisibleChanged. Also,
15073 OnVisibleChanged only seems to be called directly here for the
15074 toplevel control. It's propagated down the window hierarchy by
15075 calls to child.OnParentVisibleChanged.
15076 (OnVisibleChanged): don't do layout here - it's done (oddly
15077 enough, according to a glance at stack traces on ms.net..) in
15080 * ScrollableControl.cs (OnVisibleChanged): make sure we update the
15081 z order of our children before calling PerformLayout.
15083 2007-02-12 Chris Toshok <toshok@ximian.com>
15085 [big change, fixes #80020]
15087 * AccessibleObject.cs: we need to make owner internal again to fix
15088 some of ControlAccessibleObject.
15090 * Control.cs: lots of changes here. add support for WM_CREATE,
15091 for which we generate OnHandleCreated. Remove the OnHandleCreated
15092 call from CreateHandle. Also add support for WM_SHOWWINDOW where
15093 we create child controls. leave the MonoTODO's for the
15094 accessibility calls, but fix the exceptions so the tests pass.
15096 Add the InvalidOperationExceptions to Invoke methods, and remove a
15097 couple of InvokeInternal methods we aren't using.
15099 Also, add a couple of CreateHandle calls in places where we know
15100 the handles are being created but our code doesn't reference
15103 Make SetVisibleCore call OnVisibleChange if the handle isn't
15104 created. If the handle is created, we rely on XplatUI.SetVisible
15105 generating the event synchronously.
15107 Lastly, make sure we don't use this.Handle inside CreateHandle,
15108 because we can call back into client (and that code can dispose of
15111 * XplatUIStructs.cs: misc/cleanup.
15113 * XplatUIX11.cs: Map/Unmap X events correspond to WM_SHOWWINDOW,
15114 although we don't populate the wParam properly.
15115 (CreateWindow): generate WM_CREATE.
15116 (MapWindow,UnmapWindow): make these calls synchronous, at great
15117 performance expense (particularly in the unmap case), to match
15120 * Form.cs (.ctor): remove the call to UpdateBounds. we don't need
15122 (set_MdiParent): don't recreate the handle unless it's been
15125 * MdiClient.cs (OnResize): don't InvalidateNC Parent.Handle unless
15128 * NativeWindow.cs: this is probably the weirdest part of the
15129 patch. We need a way to link up the window being created to the
15130 WM_CREATE message. Since we can only be creating one window at a
15131 time on a given thread, we keep track of a per-thread reference so
15132 we can dispatch it properly. We also need to keep track of the
15133 Hwnd currently being created so that the win32 backend doesn't
15136 * XplatUIWin32.cs: a similar change to the one we made in
15139 2007-03-07 Jonathan Pobst <monkey@jpobst.com>
15141 * ToolStripItem.cs: Make CalculatePreferredSize virtual.
15142 * ToolStripMenuItem.cs: Modify CalculatePreferredSize and OnPaint
15143 to draw the menu shortcut string.
15145 2007-03-07 Jackson Harper <jackson@ximian.com>
15147 * TreeNode.cs: Add the 2.0 collapse method.
15149 2007-03-07 Pedro Martínez Juliá <pedromj@gmail.com>
15151 * DataGridViewColumn.cs: Fix HeaderText behaviour (Bug #80746).
15153 2007-03-07 Pedro Martínez Juliá <pedromj@gmail.com>
15155 * DataGridView.cs: Change DataSource will clear column and row
15156 lists. Call Invalidate() to reflect DataSource change.
15158 2007-03-07 Pedro Martínez Juliá <pedromj@gmail.com>
15160 * DataGridView.cs: Add rows when DataSource is System.Data.DataView
15161 and a new row is added to it.
15163 2007-03-07 Pedro Martínez Juliá <pedromj@gmail.com>
15165 * DataGridView.cs: Add columns when DataSource is en empty list but
15166 is a System.Data.DataView (from a System.Data.DataTable).
15168 2007-03-06 Andreia Gaita <avidigal@novell.com>
15170 * Label.cs: Implement AutoEllipsis (2.0)
15172 2007-03-06 Jackson Harper <jackson@ximian.com>
15174 * TreeView.cs: Implement 2.0 TopNode setter property.
15175 - Use a local var instead of the skipped_nodes field for computing
15176 how many nodes to skip. Otherwise we won't scroll because the
15177 valuechanged handler checks if skipped_nodes is equal to the new
15179 - Implement 2.0 Sort method.
15180 - Add useless 2.0 DoubleBuffer property
15181 - Implement 2.0 LineColors property. Lets you change the color of
15182 the lines in the tree. Terribly useful for creating non cohesive
15184 - Implement 2.0 image key feature.
15186 2007-03-06 Jackson Harper <jackson@ximian.com>
15188 * TreeView.cs: We can't get the bounds of the nodes before raising
15189 the AfterSelect event, because that event could change the node's
15190 bounds (scrolling, font change, etc).
15192 2007-03-06 Rolf Bjarne Kvinge <RKvinge@novell.com>
15194 * XplatUIWin32.cs: When faking styles don't remove the WS_VISIBLE flag.
15195 * Form.cs: Don't recreate handle when creating FormWindowManager, just
15196 update window styles. In CreateParams us VisibleInternal instead of
15197 VIsible to get the actual visible flag set for this form.
15198 * FormWindowManager.cs: Activate the form whenever the mouse clicks on
15199 the nc area. Fixes #81042. Also fix HandleTitleBarDoubleClick to
15200 handle the case when the form is already maximized, in which case
15201 it should be restored. Fixes #81043.
15203 2007-03-06 Rolf Bjarne Kvinge <RKvinge@novell.com>
15205 * XplatUIX11.cs: Tool windows still get wm styles. Fixes toolwindows showing up with double decorations.
15207 2007-03-05 Jackson Harper <jackson@ximian.com>
15209 * TreeViewHitTestInfo.cs: implement.
15211 2007-03-05 Jackson Harper <jackson@ximian.com>
15213 * InternalWindowManager.cs: class status fix.
15215 2007-03-05 Rolf Bjarne Kvinge <RKvinge@novell.com>
15217 * InternalWindowManager.cs: All windows that have a parent
15218 are confined to their parent when they're being moved.
15221 2007-03-04 Gert Driesen <drieseng@users.sourceforge.net>
15223 * SystemInformation.cs: Marked KeyboardDelay and KeyboardSpeed public
15224 on 2.0 profile. Fixes bug #81018. Small code formatting fixes.
15226 2007-03-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
15228 * ThemeWin32Classic.cs: ManagedWindowSetButtonLocations: Make all
15229 buttons invisible before deciding which ones should be visible
15230 (fixes minimize/maximize buttons showing up in toolwindows). Remove
15231 an unused variable.
15232 * InternalWindowManager.cs: Remove warning.
15234 2007-03-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
15236 * ListView.cs: Add a check in ListViewItemCollection.RemoveAt
15237 to throw an InvalidOperationException is virtual mode is being used.
15239 2007-03-02 Jonathan Pobst <monkey@jpobst.com>
15241 * SplitContainer.cs, SplitterPanel.cs, StatusStrip.cs, TableLayoutPanel.cs,
15242 ToolStrip.cs, ToolStripContainer.cs, ToolStripContentPanel.cs,
15243 ToolStripControlHost.cs, ToolStripDropDownItems.cs, ToolStripItem.cs,
15244 ToolStripMenuItem.cs, ToolStripOverflowButton.cs, ToolStripPanel.cs,
15245 ToolStripPanelRow.cs, ToolStripProfessionalRenderer.cs, ToolStripSplitButton.cs,
15246 ToolStripStatusLabel.cs, ToolStripTextBox.cs: Corcompare work.
15248 2007-03-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
15250 * XplatUI.cs: Fixed returning driver.KeyboardSpeed instead of
15251 driver.KeyboardDelay from XplatUI.KeyboardDelay
15252 * XplatUIW in32.cs: Implemented KeyboardSpeed/KeyboardDelay properties
15253 (patch by Sergey Volk)
15255 2007-03-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
15257 * ToolWindowManager.cs: Added, contains logic for
15259 * CreateParams.cs: Add a few helper methods and an
15260 internal variable to know which control the CreateParams belongs
15262 * Control.cs: Call Form.ChangingParent when the
15263 parent is about to be changed.
15264 * XplatUIX11.cs: DeriveStyles (): Set
15265 caption_height for all windows that have captions and are children.
15266 Update to use ToolWindowManager instead of InternalWindowManager
15268 * XplatUIWin32.cs: Set fake window styles for all
15269 windows that have window managers.
15270 * MdiWindowManager.cs: Added MaximizedTitleButtons (buttons are
15271 now duplicated for mdi windows when they are
15272 maximized, first for the buttons the window itself has, then for
15273 the buttons that appear in the menu bar. Makes things a little
15274 easier). Updated UpdateWindowDecorations, SetWindowState and the
15275 mouse eventhandlers accordingly.
15276 * Form.cs: Add ChangingParent (), contains the
15277 logic of what should happen when the parent changes. In MdiParent
15278 don't set things that ChangingParent () is doing. When handling
15279 WM_CLOSE, we can close the form if there are any other modal forms
15280 and the current form is a descendent of the modal form.
15281 * InternalWindowManager.cs: A lot of refactoring,
15282 the title buttons are now extracted to a separate container class
15283 that takes care of all button code (clicks, tooltips, etc). Moved
15284 Iconic|Maximized|Normal Bounds properties to this class from
15285 MdiWindowManager, so that the window state logic can succeed for
15286 other than mdi wm's. Implemented general window state change logic.
15287 Moved CreateButtons to ThemeWin32Classic, since the theme might
15288 override which buttons are available when as well as the exact
15290 * FormWindowManager.cs: Added, contains logic for
15292 * ThemeWin32Classic.cs: ManagedWindowSetButtonLocations now decides
15293 which buttons go where (and if they are at all visible).
15294 Removed special handling of maximized windows, since they aren't special.
15295 In DrawManagedWindowDecorations don't try to draw the text if it is
15297 * MdiClient.cs: ArrangeIconicWindows: Don't calculate any sizes,
15298 use whatever the wm gives us.
15300 2007-03-02 Jonathan Pobst <monkey@jpobst.com>
15302 * ButtonBase.cs: Add 2.0 properties.
15303 * Button.cs: Override Draw for 2.0.
15304 * Control.cs: Add Entered and Selected properties.
15305 * FlatButtonAppearance.cs, TextFormatFlags.cs, TextImageRelation.cs,
15306 TextRenderer.cs: Make internal for 1.1 to unify drawing code.
15307 * Theme.cs: New abstract functions for drawing Standard, Flat, Popup
15309 * ThemeWin32Classic.cs: Implement layout calculations for 2.0 buttons.
15311 2007-03-01 Jonathan Pobst <monkey@jpobst.com>
15313 * XplatUIWin32.cs: Don't use 2.0 methods in 1.1 code. :/
15315 2007-03-01 Jonathan Pobst <monkey@jpobst.com>
15317 * XplatUIWin32.cs: Register a new class with Windows each time we get
15318 a new ClassStyle. [Fixes bugs #79432, #80817]
15319 * Controls.cs: Set the correct ClassStyle in CreateParams.
15320 * ToolStripDropDown.cs: Don't request an invalid ClassStyle.
15322 2007-03-01 Gert Driesen <drieseng@users.sourceforge.net>
15324 * ListView.cs: Add fireEvent argument to ReorderColumn since the
15325 ColumnReordered event must not be signaled when modifying DisplayIndex
15326 of a ColumnHeader. Added internal ReorderColumns method which takes
15327 care of drawing, and updating the internal DisplayIndex of the
15328 ColumnHeader. Added AddColumn method which is invoked from
15329 ColumnHeaderCollection when adding or inserting columns, and which
15330 ensures that reorder_columns_indices is kept in sync. Avoid redrawing
15331 after adding each ColumnHeader in ColumnHeaderCollection.AddRange.
15332 Recalculated dispay indices after removing a ColumnHeader.
15333 * ColumnHeader.cs: Save DisplayIndex separately from ListView to
15334 match MS. Allows last display index to be returned after ListView
15335 is disposed. Update actual location of ColumnHeader when DisplayIndex
15338 2007-03-01 Everaldo Canuto <everaldo@simios.org>
15340 * LinkLabel.cs: Improve CalcTrimRectangle.
15342 * ThemeWin32Classic.cs: Fix some compilation problem under VS 2003.
15344 2007-02-28 Everaldo Canuto <everaldo@simios.org>
15346 * LinkLabel.cs: Rename CalcMeasurementFactor as CalcTrimRectangle and
15347 get rectangle as a result value.
15349 2007-02-28 Everaldo Canuto <everaldo@simios.org>
15351 * LinkLabel.cs: Theres some diferences between rectangle return from
15352 MeasureCharacterRanges and the area used for DrawString to fix this
15353 CalcMeasurementFactor method was created, it calcules the diferences
15354 to be use later to adjust rectangle in draw operations. Fixes #80473.
15356 * ThemeWin32Classic.cs: Use factor calculated by CalcMeasurementFactor
15357 to adjust draw rectangle.
15359 2007-02-27 Everaldo Canuto <everaldo@simios.org>
15361 * ThemeWin32Classic.cs: In DrawLinkLabel draw focus rectangle before draw
15362 text and some other changes to reduce and optimize source code.
15364 2007-02-27 Jonathan Pobst <monkey@jpobst.com>
15366 * RadioButton.cs: Implement 2.0 event.
15367 * RelatedImageListAttribute.cs: Implement new class.
15369 2007-02-27 Everaldo Canuto <everaldo@simios.org>
15371 * MenuAPI.cs: Change keynav_state before call SelectItem. Fixes #80901.
15373 2007-02-27 Jonathan Pobst <monkey@jpobst.com>
15375 * CheckBox.cs: Implement 2.0 functionality.
15377 2007-02-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
15379 * ListView.cs: Refactor Add and AddRange methods of
15380 ListViewItemCollection, to not update the ListView
15381 everytime an item is added in AddRange. Also move the update
15382 code to a new CollectionChanged method, and call it
15383 from other methods that need it as well (this should also fix some
15384 bugs when Sorting is used).
15386 2007-02-27 Jackson Harper <jackson@ximian.com>
15388 * TextControl.cs: Try to never let the caret stay in a non-text
15390 * TextBoxBase.cs: Update the caret.
15392 2007-02-26 Jonathan Pobst <monkey@jpobst.com>
15394 * XplatUIStructs.cs: Add some convenience methods for POINT structure.
15395 * XplatUIWin32.cs: Add some convenience methods for RECT structure,
15396 delete POINT structure, duplicate of one in XplatUIStructs.
15397 * TextRenderer.cs: Use XplatUIWin32.RECT instead of UXTheme.RECT.
15399 2007-02-26 Gert Driesen <drieseng@users.sourceforge.net>
15401 * ListView.cs: Initialize LabelEditEventArgs after setting Text of
15402 edit box since otherwise the Label would immediately be set (even if
15403 the user did not modify the label). In OnKeyDown set Handled to true
15404 if Return or Escape was pressed. In ColumnHeaderCollection unlink
15405 columns that are to be removed. In ListViewItemCollection unlink items
15406 that are to be removed.
15408 2007-02-24 Jonathan Pobst <monkey@jpobst.com>
15410 * TextRenderer.cs: If we set a GDI clip region, we need to clear
15411 it when we are done. [Fixes bug #80949]
15413 2007-02-23 Jonathan Pobst <monkey@jpobst.com>
15415 * Form.cs: Wrap checking ShowWithoutActivation in a NET_2_0 block.
15417 2007-02-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
15419 * ListView.cs: I forgot to commit the changes for ListView
15420 in my previous patch.
15422 2007-02-23 Jonathan Pobst <monkey@jpobst.com>
15424 * Clipboard.cs: Partially implement an overload of SetDataObject.
15425 * Form.cs: Implement ShowWithoutActivation.
15426 * XPlatUIWin32.cs: Fix for WM_SHOWNOACTIVATE for forms.
15428 2007-02-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
15430 This is a first set of changes to make the Virtual mode works,
15431 by avoiding the retrieval of ListViewItem instances until
15434 * ListView.cs: Store item position in the ListView instead of the
15435 ListViewItem, this way we don't request the Bounds property of
15436 ListViewItem inside the ListView calculations, as well as cache the item
15437 size in item_size field. Store indexes instead of ListViewItem
15438 instances in the matrix used by icon view. Add a ItemMatrixLocation
15439 struct to hold the row and col info of the matrix info.
15441 * ListViewItem.cs: Don't store the location anymore, and only cache
15442 the rectangles for GetBounds. Use the ListView.GetItemLocation
15443 method to retrieve the actual location.
15445 2007-02-23 Jonathan Pobst <monkey@jpobst.com>
15447 * TextRenderer.cs: Add clipping support, thanks to George.
15450 2007-02-23 Gert Driesen <drieseng@users.sourceforge.net>
15452 * ListViewItem.cs: Cancel label edit when item is removed from
15454 * ListView.cs: Move setting of focus to EndEdit. Fire BeforeLabelEdit
15455 event before the edit textbox is displayed. Added CancelEdit method
15456 which is used end to editing while ignoring the value set by the
15457 user. In EndEdit, set focus to ListView to avoid losing focus to
15458 other controls. In ListViewItemCollection.Clear, cancel editing of
15459 any of the items. In Remove, cancel editing of item being removed.
15460 Avoid udplicate code by modifing RemoveAt to invoke Remove.
15462 2007-02-23 Gert Driesen <drieseng@users.sourceforge.net>
15464 * FileDialog.cs: Update FSEntry when move is successful. Fixes
15467 2007-02-23 Everaldo Canuto <everaldo@simios.org>
15469 * MainMenu.cs: Change Draw method to take care about MenuOrigin to be
15470 compatible with non X11 systems. Fixes #80901.
15472 2007-02-23 Gert Driesen <drieseng@users.sourceforge.net>
15474 * ListView.cs: Added bool argument to UpdateMultiSelection to specify
15475 whether the item should be unselected and reselect. We do no want this
15476 when we're starting to edit the label. Do not fire the
15477 SelectedIndexChanged event from ListView when its already been fired
15478 by modifying ListViewItem.Selected. Fixes bug #80943.
15480 2007-02-23 Jonathan Pobst <monkey@jpobst.com>
15482 * TextRenderer.cs: Previos commit logic was backwards.
15484 2007-02-23 Jonathan Pobst <monkey@jpobst.com>
15486 * TextRenderer.cs: Don't add padding on MeasureText if we were
15487 sent the NoPadding flag.
15489 2007-02-23 Everaldo Canuto <everaldo@simios.org>
15491 * ThemeWin32Classic.cs: Invert order of drawing operation with DrawImage
15492 after DrawButton. To prevent image overlaps button borders SetClip and
15493 ResetClip added before and after draw image. Fixes #79129.
15495 2007-02-23 Everaldo Canuto <everaldo@simios.org>
15497 * FolderBrowserDialog.cs: Use ClientSize instead of Size to specify
15498 window size, it fix problem when you run under win32 that theres
15499 Size diferent than ClientSize. Also fix controls size and positions
15500 to mimic Win32. Fixes #80837.
15502 2007-02-22 Everaldo Canuto <everaldo@simios.org>
15504 * Form.cs: Handle WM_NCHITTEST and return HTMENU when point is on
15505 menu area to fix some problems for non X11 systems. Fixes #80613.
15507 2007-02-22 Jackson Harper <jackson@ximian.com>
15509 * TreeNode.cs: When a node is expanded, set its is_expanded flag
15510 even if it doesn't have any children.
15512 2007-02-22 Jackson Harper <jackson@ximian.com>
15514 * TreeView.cs: Calculate the top node 'on the fly', this
15515 eliminates issues where you need to click on the tree before
15516 scrolling it to get the top node computed correctly.
15517 * TreeNodeCollection.cs: We don't need to mess with the top node
15520 2007-02-22 Jackson Harper <jackson@ximian.com>
15522 * DataGridViewRow.cs: Fix typo so height can actually be set.
15523 Patch by Peter Grimm.
15525 2007-02-22 Gert Driesen <drieseng@users.sourceforge.net>
15527 * FileDialog.cs: Fixed support for renaming files and directories.
15528 * ListView.cs: Do not lose focus when edit is canceled. Process
15529 Escape as regular key (to prevent closing of dialogs).
15531 2007-02-22 Gert Driesen <drieseng@users.sourceforge.net>
15533 * ListView.cs: Removed TODO for LabelEdit. Removed extra tabs and
15534 spaces. Changed spaces to tabs. Removed unnecessary init of bools.
15536 2007-02-22 Gert Driesen <drieseng@users.sourceforge.net>
15538 * FileDialog.cs: LabelEditEventArgs.Label now returns null when user
15539 did not modify label.
15540 * ListView.cs: Only set LabelEditEventArgs.Label if user actually
15541 modified the text. Reset Label when user presses Escape in edit mode.
15542 Move focus to ListView after having cancelled or finished editing the
15545 2007-02-21 Gert Driesen <drieseng@users.sourceforge.net>
15547 * ComboBox.cs: Removed unnecessary initializations. Marked items field
15548 private. Clear textbox when Text is set to null and SelectedIndex is
15550 * FileDialog.cs: Removed unnecessary initializations. Removed
15551 workarounds for ComboBox bugs that are now fixed. Modified
15552 DefaultExt, InitialDirectory and Title property to change null to
15553 zero-length string in getters. Avoid directly accessing fields.
15555 2007-02-20 Jackson Harper <jackson@ximian.com>
15557 * TextControl.cs: Remove RecalAlignments call, that was some
15558 debugging leftovers.
15559 - Don't use the line indent when we shouldn't.
15560 * RichTextBox.cs: Add support for paragraph left indents.
15562 2007-02-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
15564 * Control.cs: Fix BeginInvoke signature for 2.0 profile.
15565 Seems like the class status pages doesn't catch params differences.
15567 2007-02-19 Gert Driesen <drieseng@users.sourceforge.net>
15569 * ComboBox.cs: Removed extra tabs. Changes spaces to tabs.
15571 2007-02-19 Gert Driesen <drieseng@users.sourceforge.net>
15573 * ComboBox.cs: Setting Text should have no effect if item text of
15574 selected item exactly matches value. First lookup text using
15575 case-sensitive comparison, and fallback to case-insensitive comparison.
15576 FindString(Exact) returns -1 if search string is null. On 2.0 profile,
15577 allow startIndex to be last index. Changed ArgumentOutOfRangeException
15578 paramname to match MS. Restart from first item if string is not found
15579 after startIndex. Fixed paramname of ArgumentNullException that is
15580 thrown for null value in ObjectCollection.Contains.
15582 2007-02-19 Everaldo Canuto <everaldo@simios.org>
15584 * XplatUIStructs.cs: WM_XXX UISTATE elements uncommented.
15586 2007-02-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
15588 * ListControl.cs: In SelectedValue use value.Equals to compare for
15589 equality instead of ==, otherwise it will fail for strings.
15592 2007-02-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
15594 * ComboBox.cs: Switch the order to ShowSelection and ActivateCaret,
15595 since the caret won't show up unless ShowSelection is true.
15598 2007-02-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
15600 * Application.cs: When disabling all forms but the main form, do not
15601 disable any descendants of the main form (such as mdi children or
15602 other parented forms). Fixes #80822 on Windows.
15603 * Form.cs: If we have a parent, set the WS_CHILD style.
15604 * Control.cs: Update the window styles if the control whose parent has
15605 changed is a form (the WS_CHILD style has to be switched).
15607 2007-02-19 Everaldo Canuto <everaldo@simios.org>
15609 * XplatUIStructs.cs: MsgUIState structure added.
15611 2007-02-18 Gert Driesen <drieseng@users.sourceforge.net>
15613 * FileDialog.cs: Removed need for separate fileName field. On 2.0
15614 profile, do not check filename(s) for illegal character if filename(s)
15615 were set non-interactively but always check on 1.0 profile. Fixed NRE
15616 in DefaultExt and only strip off first leading dot. Improve exception
15617 message when invalid Filter is set. Do not ignore InitialDirectory if
15618 it does no exist. Store specified Title, and if empty use default
15619 title (depending on type of dialog). Added an internal DialogTitle
15620 property for retrieving dialog title. Fixed logic of displayed dir to
15621 more closely match MS. Avoid setting ComboBox.Text to a zero-length
15622 string as its buggy.
15623 * OpenFileDialog.cs: In OpenFile, throw ArgumentNullException if
15624 FileName is a zero-length string (it can never be null). Override
15625 DialogTitle property to set default title of dialog box.
15626 * SaveFileDialog.cs: Override DialogTitle property to set default
15627 title of dialog box.
15629 2007-02-18 Gert Driesen <drieseng@users.sourceforge.net>
15631 * FileDialog.cs: Modify default text of filename and filetype labels
15632 to match that of MS. Reset do_not_call_OnSelectedIndexChanged...
15633 after we've updated the SelectedIndex. Fixes part of bug #80887.
15634 * SaveFileDialog.cs: Set text of filetype label.
15636 2007-02-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
15638 * LabelEditEventArgs.cs: New internal SetLabel method, to set the
15639 label field. Needed by latest Jackson's fixes for ListView.
15641 2007-02-16 Andreia Gaita <avidigal@novell.com>
15643 * PrintPreviewControl/PrintPreviewDialog: Properly dispose of
15644 print preview images.
15646 2007-02-16 Jackson Harper <jackson@ximian.com>
15648 * ListView.cs: Make AfterLabelEdit work correctly.
15649 * FileDialog.cs: After changing the name of the folder, we have to
15650 make sure that it is created, or that we pop up an error because
15653 2007-02-16 Jackson Harper <jackson@ximian.com>
15655 * X11Dnd.cs: Implement aliases on mime handlers, so things like
15656 System.String are mapped to text.
15657 - Handle dataobjects, getting all the possible formats out of them
15658 - We dont need the drag event args before we give feedback. This
15659 allows feedback cursors to be immediate before selections have
15662 2007-02-16 Jackson Harper <jackson@ximian.com>
15664 * TextBoxBase.cs: Modified the method for inserting images to
15665 taking a line and position instead of tag and position.
15666 * RichTextBox.cs: Handle PngBlip data by inserting the png image
15668 * TextControl.cs: Allow images to be inserted as the first tag of
15670 - Fix some off by one issues when we assume the first tag is a
15671 text tag, not an image tag.
15673 2007-02-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
15675 * ListView.cs: Set focus to ListView when ItemControl gets a
15676 WM_RBUTTONDOWN message, to mimic .Net behaviour.
15677 Fixes part of #80467.
15679 2007-02-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
15681 * DateTimePicker.cs: Call RecreateHandle if the Format changes and
15682 validate Text input (if null or empty string reset Value to default
15683 value). Fixes #80830.
15685 2007-02-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
15687 * ListView.cs: Set owner as null for columns and items when
15688 Dispose is invoked. Fixes #80607.
15690 2007-02-14 Jonathan Pobst <monkey@jpobst.com>
15692 * ToolStrip.cs: Allow LayoutStyle.Flow, make sure to call OnOpening when
15693 showing DropDowns, don't show a Grip when doing Flow layout.
15694 [This fixes the toolbox in PDN 2.72.]
15695 * ToolStripItem.cs: Add Anchor property and some internal properties to
15696 reduces needed changes to FlowLayout.
15697 * ToolStripOverflow.cs: Remove unused variable.
15698 * ToolStripSplitStackLayout.cs: If a ToolStripItem isn't visible, don't
15699 use it in the layout calculations.
15701 2007-02-13 Everaldo Canuto <everaldo@simios.org>
15703 * ToolTip.cs: Add HotkeyPrefix.Hide to MeasureString format, it fix an issue
15704 reported in #79640.
15706 * ThemeWin32Classic.cs: Uses format for MeasureString in ToolTipSize to fiz
15709 2007-02-13 Everaldo Canuto <everaldo@simios.org>
15711 * ToolBar.cs, ToolBarButton.cs: Revert and remove HotkeyPrefix from
15712 MeasureString format, it can make button very large in some cases, it is
15713 strange but is what win32 do.
15715 2007-02-13 Everaldo Canuto <everaldo@simios.org>
15717 * ToolBar.cs, ToolBarButton.cs: Uses format in MeasureString to fix string
15720 * ThemeWin32Classic.cs: Set HotkeyPrefix in toolbar text format to fix text
15721 rendering, the value is based on MenuAccessKeysUnderlined.
15723 2007-02-13 Everaldo Canuto <everaldo@simios.org>
15725 * Theme.cs: Change MenuAccessKeysUnderlined to "true" that is value used
15728 * ThemeWin32Classic.cs: Override MenuAccessKeysUnderlined as false.
15730 * ThemeNice.cs, ThemeGtk.cs, ThemeClearlooks.cs: Remove always_draw_hotkeys
15731 and use MenuAccessKeysUnderlined instead.
15733 2007-02-13 Andreia Gaita <avidigal@novell.com>
15735 * ContainerControl.cs: Focus fix for nunit treeview selection bug.
15736 A selected control would not get a Focus call if:
15737 - the default active control of the container is the same as
15738 the one that was selected
15739 - we are switching from one container to another
15740 Under these conditions, the container being selected already has
15741 an active_control, which is the same as the one being activated,
15742 so set_ActiveControl would always return and not send the Focus
15743 call. Fix to check if the currently active control of the container
15744 is actually focused.
15746 2007-02-13 Jonathan Pobst <monkey@jpobst.com>
15748 * StatusStrip.cs: Implement the spring layout.
15749 * ToolStripControlHost.cs: Make sure the hosted control's visibility
15750 always matches the host.
15751 * ToolStripItem.cs: Write a more accurate layout for TextBeforeImage
15752 and TextAfterImage.
15754 2007-02-13 Andreia Gaita <avidigal@novell.com>
15756 * Control.cs: Code reorganization only.
15757 - Reorganize the WndProc cases so that each case has it's own handling method,
15758 to help with the no-line-numbering stack traces.
15759 - Formatting changes (it's vstudio's fault, really :p)
15761 2007-02-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
15763 * MonthCalendar.cs: Switch to using Thread.CurrentCulture instead of
15764 Thread.CurrentUICulture to match DateTimePicker's (and MS)
15767 2007-02-12 Jackson Harper <jackson@ximian.com>
15770 * TextBox.cs: By default we have a non multiline document
15771 - use the multiline property instead of the internal variable
15772 * TextBoxBase.cs: Treat multiline and non multiline the same in
15774 - Use the documents multiline flag instead of tracking it ourself
15775 * TextControl.cs: Attempt at getting multiline to match MS
15776 behavior. Lines now track an offset, which is either their X or Y
15777 offset depending on whether or not we are in multiline mode.
15778 - Update all the methods to understand that lines have an X value.
15779 - Fix crash in Undo::Duplicate when empty lines are deleted.
15781 2007-02-12 Everaldo Canuto <everaldo@simios.org>
15783 * Label.cs: CalcPreferredHeight and CalcPreferredWidth methods removed and
15784 code moved to properties PreferredHeight and PreferredWidth. It solve the
15785 all problems when preferred sizes must be recalculated. Fixes #80801.
15787 2007-02-12 Everaldo Canuto <everaldo@simios.org>
15789 * Label.cs: Fix CalcPreferredHeight for 2.0 that must return only
15790 font height when compatible_text_rendering is false. Partially fix #80801.
15792 2007-02-09 Gert Driesen <drieseng@users.sourceforge.net>
15794 * Form.cs: Fixed typo in exception message. Fixes bug #80779.
15796 2007-02-09 Gert Driesen <drieseng@users.sourceforge.net>
15798 * Form.cs: Improved exception messages in ShowDialog.
15800 2007-02-09 Gert Driesen <drieseng@users.sourceforge.net>
15802 * PrintDialog.cs: On 1.0 profile, throw ArgumentException in RunDialog if
15803 PrinterSettins has not been set. On 2.0 profile, initialize PrinterSettings
15804 if not set. Fixes bug #80764. Avoid accessing current_settings field
15807 2007-02-08 Everaldo Canuto <everaldo@simios.org>
15809 * Theme.cs: An new property MenuAccessKeysUnderlined added with default value
15812 * SystemInformation.cs: An new property MenuAccessKeysUnderlined added, it is
15813 public in 2.0 and for easy maintenance and dont break compatibility it is
15816 2007-02-08 Jonathan Pobst <monkey@jpobst.com>
15818 * ToolStripItem.cs: Implement using images from ImageList.
15820 2007-02-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
15822 * DateTimePicker.cs: Change default date-formatting culture from
15823 CurrentThread.CurrentUICulture to CurrentThread.CurrentCulture,
15824 seems to be the way MS does it.
15826 2007-02-08 Andreia Gaita <avidigal@novell.com>
15828 * PrintPreviewControl.cs: rewrite toolbar code to fix #80725. Correct 6-up image
15829 (the 6 was cut off on the right side)
15831 2007-02-08 Jonathan Pobst <monkey@jpobst.com>
15833 * Form.cs: Tell MenuStrips to close when the form is clicked.
15834 * MenuStrip.cs, ToolStrip.cs, ToolStripControlHost.cs,
15835 ToolStripDropDown.cs, ToolStripDropDownItem.cs, ToolStripItem.cs,
15836 ToolStripItemCollection.cs, ToolStripMenuItem.cs, ToolStripProfessionalRenderer.cs,
15837 ToolStripSplitButton.cs, ToolStripSplitStackLayout.cs: Add
15838 support for Overflow, where items that do not fit are automatically
15839 reparented to a drop down menu.
15840 * ToolStripOverflow.cs, ToolStripOverflowButton.cs: Added.
15841 Also: fixes bug #80747.
15843 2007-02-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
15845 * ComboBox.cs: Remove warning (unused code).
15846 * ScrollableControl.cs: Remove warning for 1.1 profile.
15848 2007-02-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
15850 * Form.cs: Remove a warning.
15852 2007-02-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
15854 * DateTimePicker.cs: Fixed a NRE if CustomFormat was null. Handles the
15855 'g' specifier, not documented anywhere, but seems to always show up
15856 as a single space (might have something to do with the DateTime 'g'
15857 specifier, which is the era format, but since DateTimePicker can't
15858 go earlier than 1753 it wouldn't matter) . Fixed quote handling,
15859 won't crash if the format has an unmatched quote. Now shows
15860 single-character formats correctly. Fixes #80744.
15862 2007-02-08 Jonathan Pobst <monkey@jpobst.com>
15864 * StatusStrip.cs: Stretch property needs to call base.Stretch,
15865 not this.Stretch to fix stack overflow. [Fixes bug #80760]
15867 2007-02-07 Chris Toshok <toshok@ximian.com>
15869 * ThemeWin32Classic.cs (DrawButtonBase): don't clear to the
15870 background color. it overwrites the background image we've
15871 already painted. Fixes #80599.
15873 2007-02-07 Chris Toshok <toshok@ximian.com>
15875 * DataGrid.cs: return immediately from Edit() when there are no
15876 columns. Fixes #80662.
15878 2007-02-07 Chris Toshok <toshok@ximian.com>
15880 * MessageBox.cs: fix #80625. don't always show the Help button in
15881 2.0. use the displayHelpButton parameter to determine if we
15882 should show it. Also, make the internal show_help field private.
15884 2007-02-07 Chris Toshok <toshok@ximian.com>
15886 * Control.cs (SetVisibleCore): check in the proposed patch for
15887 80604, and set is_visible before calling CreateControl.
15889 2007-02-07 Jonathan Pobst <monkey@jpobst.com>
15891 * ListView.cs: UseCompatibleStateImageBehavior setter changed from NIEX to
15892 MonoInternalNote. This is added automagically by VS2005, so let's not crash
15895 2007-02-06 Everaldo Canuto <everaldo@simios.org>
15897 * MenuAPI.cs: hotkey_active internal field added, it is required because
15898 we need to know when hotkeys must be draw, before this change a keystate
15899 Navigating was used but we can have menu in navigating state without
15900 hotkeys. Fixes #80694.
15902 * ThemeWin32Classic.cs: Only draw hot keys when hotkey_active is true.
15904 2007-02-06 Rolf Bjarne Kvinge <RKvinge@novell.com>
15906 * Control.cs: Handle WM_CAPTURECHANGED in 1.1 code as well, and change
15907 corresponding events and methods to be internal for 1.1 profile and
15908 public for 2.0 profile (required by SizeGrip).
15909 * Form.cs: Use SizeGrip as a virtual SizeGrip (and don't add it to the
15910 implicit control list). Don't set the size nor the location of the
15911 SizeGrip anymore as it's not needed.
15912 * SizeGrip.cs: Rewrote large parts, it now supports a virtual mode to
15913 draw directly on the captured control (fixes #80656). Removed
15914 ShowGrip (it wasn't used anywhere), redraw (always true), added
15915 GetDefaultSize and GetDefaultRectangle to calculate defaults.
15916 * ScrollableControl.cs: Make UpdateSIzeGripVisible internal so it can
15917 be called from SizeGrip.
15919 2007-02-06 Rolf Bjarne Kvinge <RKvinge@novell.com>
15921 * Timer.cs: Throw ArgumentException if Interval <= 0.
15923 2007-02-05 Jackson Harper <jackson@ximian.com>
15925 * TreeView.cs: We need to check scrollbar visibility when window
15926 visibility is updated, because non visible trees don't ever add
15928 * Cursor.cs: We want the override cursor to be reset to NULL when
15929 we set current cursor to the default cursor.
15931 2007-02-05 Jackson Harper <jackson@ximian.com>
15933 * TextControl.cs: Don't have crlfs when we are non multiline.
15934 - Consolidate the line position.
15936 2007-02-05 Jackson Harper <jackson@ximian.com>
15938 * X11Keyboard.cs: BACK+CTRL gets a special char code.
15940 2007-02-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
15942 * XplatUIX11.cs: Implemented WM_CAPTURECHANGED support, we're now
15943 handling LeaveNotify->NotifyUngrab in order to send
15944 WM_CAPTURECHANGED. However sometimes the NotifyUngrab arrives late
15945 after calling XUngrabPointer, so we call WindowUngrabbed directly
15946 from UngrabWindow in order to send WM_CAPTURECHANGED immediately.
15947 * Control.cs: Handle WM_CAPTURECHANGED in order to raise
15948 MouseCaptureChanged correctly. Also create handles if changing
15949 Capture (matches MS behaviour).
15951 2007-02-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
15953 * SizeGrip.cs: Make the last change 2.0 only.
15955 2007-02-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
15957 * SizeGrip.cs: If resizing and the capture is lost, revert any size
15958 changes to initial size (fixes #80597).
15960 2007-02-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
15962 * SizeGrip.cs: Use the normal icon for SizeGrip if it is disabled.
15964 2007-02-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
15966 * SizeGrip.cs: Only draw sizegrip if enabled (but always draw
15967 background) and only allow dragging if enabled. This way the
15968 sizegrip can be used to fill the open square that otherwise would
15969 have been shown in the bottom right corner of ScrollableControl
15970 when ScrollableControl is not suppose to support sizing.
15971 * ScrollableControl.cs: Create UpdateSizeGripVisible to decide when the
15972 sizegrip is shown and enabled, and hook up with necessary events.
15974 2007-02-01 Chris Toshok <toshok@ximian.com>
15976 * DataGridTextBoxColumn.cs: clean up the
15977 GetFormattedString/GetColumnValueAtRow combination of functions.
15978 Also fix UpdateUI, and the initial state of
15979 IsInEditOrNavigateMode.
15981 * DataGridTextBox.cs: don't chain up to base.OnMouseWheel - we
15982 aren't supposed to scroll the textbox here, we're supposed to
15983 scroll the datagrid.
15985 2007-02-01 Chris Toshok <toshok@ximian.com>
15987 * ComboBox.cs: use vscrollbar_ctrl.Dock instead of explicitly
15988 setting the position.
15990 2007-02-01 Chris Toshok <toshok@ximian.com>
15992 * DataGrid.cs (OnLeave): we can now do the CancelCurrentEdit thing
15993 here, since the most recent focus fixes keep us from generating
15994 the Leave event when our textbox gets focus.
15995 (Edit): we should be passing null for the column style's
15996 instantText parameter.
15998 2007-02-01 Jonathan Pobst <monkey@jpobst.com>
16000 * ToolStripDropDownItem.cs: Make sure DropDownOpening event is
16001 raised. Fixes menu text/icons not showing up in PDN.
16003 2007-02-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
16005 * Control.cs: Remove code in constructor that makes every
16006 control with WS_CHILD set have initial location -1, -1.
16008 2007-01-31 Jackson Harper <jackson@ximian.com>
16010 * X11Dnd.cs: Take the keyboard on init to reduce coupling with
16012 * XplatUIX11.cs: Give teh keyboard to teh dnd.
16014 2007-01-31 Jackson Harper <jackson@ximian.com>
16016 * X11Dnd.cs: Use IDataObject instead of the DataObject class.
16017 - Remove some debug code.
16019 2007-01-31 Jackson Harper <jackson@ximian.com>
16021 * XplatUIX11.cs: If you set the override cursor during a grab, it
16022 should actually override the grab cursor. This comes into play
16023 when you are setting custom cursors in a DND feedback method.
16025 2007-01-31 Jackson Harper <jackson@ximian.com>
16027 * X11Dnd.cs: Add support for handling the QueryContinue and
16028 GiveFeedback events.
16029 - Cancel drag and drop actions when the escape key is clicked.
16030 * XplatUIX11.cs: Let the dnd subsystem get key events, so that it
16031 can handle the ESCAPE key.
16032 - Allow dnd to swallow BUTTONUP messages if it needs to. This is
16033 done when dnd events are continued after the button is released.
16034 - Add a new helper method so that dnd can translate key events.
16036 2007-01-31 Alexander Olk <alex.olk@googlemail.com>
16038 * FileDialog.cs: Rewrite of Jacksons OnClickCancelButton patch to
16039 make it more obvious what is happening.
16041 2007-01-30 Jackson Harper <jackson@ximian.com>
16043 * XplatUIX11.cs: Don't break when handling button release in drag
16044 and drop operations. We need that BUTTONUP message to get through
16045 so capture is released.
16046 * X11Dnd.cs: We don't need to manually grab the pointer anymore,
16047 this is handled automatically when the mouse is down.
16049 2007-01-30 Jackson Harper <jackson@ximian.com>
16051 * FileDialog.cs: OnClickCancelButton gets called whenever the dialog
16052 is closed, so we need to make sure that we aren't changing the
16053 dialog result when the OK (Open or Save) button has been clicked
16054 and we are closing the window ourselves. Note we don't need to
16055 worry about the cache being written in this case, because it was
16056 already done in the previous FilOk call.
16058 2007-01-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
16060 * DateTimePicker.cs: Remove a warning.
16061 * ComboBox.cs: Remove a couple of warnings.
16063 2007-01-29 Chris Toshok <toshok@ximian.com>
16065 * XplatUIX11.cs: don't crash, and remove the icon if the user has
16066 set one, if SetIcon is passed a null icon.
16068 2007-01-29 Andreia Gaita <avidigal@novell.com>
16070 * TextBox.cs: Redraw when the password characters changes
16071 * TextControl.cs: Check if textbox has a password char and draw
16072 a line of password chars instead of the text in the line. LineTag gets
16073 an extra Draw() method which allows document.Draw to override the text
16074 that will be drawn. Removes 1024 char limitation on length of passworded
16077 2007-01-29 Jackson Harper <jackson@ximian.com>
16079 * TextBoxBase.cs: Deleting sections of text is undoable. Deleting
16080 single chars is not.
16082 2007-01-28 Jonathan Pobst <monkey@jpobst.com>
16084 * TextRenderer.cs: Fix cutting off the bottom of letters like "j" by
16085 one pixel. Fix a StackOverflowException caused by an overload wrongly
16088 2007-01-26 Everaldo Canuto <everaldo@simios.org>
16090 * MenuAPI.cs: Fixed kerboard grab problem when "enter"key is pressed,
16091 also remove ProcessArrowKey and put the code inside ProcessKeys.
16093 2007-01-26 Jonathan Pobst <monkey@jpobst.com>
16095 * PaddingConverter.cs: Added.
16097 2007-01-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
16099 * ThemeWin32Classic.cs: Only draw the text of a StatusBar if
16100 ShowPanels is false (fixes #80600). Only draw up to 127 characters
16101 of text (fixes #80601). For panels clip the text to draw to the
16102 panel (fixes #80603).
16104 2007-01-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
16106 * ComboBox.cs: Fixed implementation of ResetText.
16108 2007-01-25 Jackson Harper <jackson@ximian.com>
16110 * TextControl.cs: For the last char of a line we need to use the
16111 line size, not that chars width, since it won't actually be
16112 computed since the right side of a char is based on the start of
16113 the left side of the next char, and the next char does not exist.
16115 2007-01-25 Chris Toshok <toshok@ximian.com>
16117 * Splitter.cs: fix the new unit tests, and reindent some switch
16120 2007-01-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
16122 * ComboBox.cs: Implemented 2.0 methods and events.
16123 * TextBoxBase.cs: Added OnTextUpdate, so that
16124 ComboBox.ComboTextBox can inform ComboBox of it.
16126 2007-01-25 Jackson Harper <jackson@ximian.com>
16128 * TextControl.cs: Respect ShowSelection when deciding whether or
16129 not to display the caret, this allows comboboxes to have carets
16130 when the combotextbox does not have focus.
16132 2007-01-25 Jackson Harper <jackson@ximian.com>
16134 * TextControl.cs: Add a Suspend/Resume for updating, basically the
16135 same as the Suspend/Resume for recalc, except this will do actual
16137 - New Undo manager, works much like the MS version.
16139 * TextBoxBase.cs: The Cut operation is undoable.
16141 2007-01-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
16143 * TextBoxBase.cs: Don't antialias text. Makes it look way better
16144 on Windows (no difference on Linux).
16146 2007-01-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
16148 * XplatUIWin32.cs: Set SWP_NOACTIVATE in RequestNCRecalc as well,
16149 we don't want to activate any windows. Fixes #79433.
16151 2007-01-25 Jonathan Pobst <monkey@jpobst.com>
16153 - ButtonBase.cs: Fix capitalization of parameter: disposing.
16156 2007-01-25 Alexander Olk <alex.olk@googlemail.com>
16159 - Move to using System.ComponentModel.EventHandlerList
16160 - Replace Refresh with Invalidate
16161 - Clear the mime filecache on closing
16162 - Some other memory reducing work. After beeing closed FD now uses
16163 only about 300 KB for the fdo mime stuff plus the memory of the
16165 * Mime.cs: Changed coding style and removed unnecessary commented
16166 code. Some more memory memory reducing work.
16168 2007-01-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
16170 * ComboBox.cs: Implemented FlatStyle and DropDownHeight, and added
16171 a few other missing 2.0 properties.
16172 * Theme.cs: Added DrawFlatStyleComboBox.
16173 * ThemeWin32Classic.cs: Implemented DrawFlatStyleComboBox.
16175 2007-01-24 Chris Toshok <toshok@ximian.com>
16177 * XplatUIX11.cs: fix the wake_waiting logic - we always clear the
16178 wake_waiting flag, not just when there's data to be read. if we
16179 don't, then future wakeup's won't reach us and we'll be doomed to
16180 wait for the entire 1 second timeout forever (unless there are X
16183 2007-01-24 Jonathan Pobst <monkey@jpobst.com>
16185 * ComboBox.cs: FindStringExactMaxException doesn't throw AOORE on 2.0
16186 until you pass Items.Count, not Items.Count - 1 like 1.1.
16188 2007-01-24 Gert Driesen <drieseng@users.sourceforge.net>
16190 * ColumnHeader.cs: Fixed ParamName in ArgumentOutOfRangeException.
16192 2007-01-24 Jonathan Pobst <monkey@jpobst.com>
16194 * ToolStripContainer.cs: The recent Dock fix exposed that I was
16195 adding the panels in the wrong order.
16197 2007-01-24 Jackson Harper <jackson@ximian.com>
16199 * TextBoxBase.cs: When we move the caret we also need to move the
16200 selection, this fixes some random crashing after doing select
16201 text, unselect, delete a char, paste.
16203 2007-01-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
16205 * Form.cs: Update SizeGrip's location even if it's not visible (fixes #80592).
16207 2007-01-23 Everaldo Canuto <everaldo@simios.org>
16209 * Control.cs: In OnParentBackgroundImageChanged remove conditions to call
16210 OnBackgroundImageChanged, it mimics win32 behavior. Fixes #80553.
16211 * ToolBar.cs: Force redraw in BackgroundImageChanged.
16213 2007-01-23 Everaldo Canuto <everaldo@simios.org>
16216 - Implement support for vertical toolbars. Fixes #80539;
16217 - Call LayoutToolBar when resize, it fix some other problems in layout.
16218 - Rename requested_height to requested_size, as we can have width on it
16219 when toolbar is vertical.
16220 - Create a private property "Vertical" that uses Dock to verify when
16221 toolbar is vertical or not.
16222 - Set ControlStyles when change Dock property.
16223 - Refactory in LayoutToolBar to have better variables names and to support
16225 - Fixes default value for ButtonSize when button count is equal zero, size
16226 must be (39, 36) test case writed.
16228 2007-01-23 Chris Toshok <toshok@ximian.com>
16230 * Control.cs: fix the checks so that they work correctly for mdi
16233 2007-01-23 Chris Toshok <toshok@ximian.com>
16235 * Control.cs: ControlCollection seems to have super-secret
16236 abstraction breaking knowledge of Mdi containers. allow MdiClient
16237 to add toplevel controls.
16239 2007-01-23 Chris Toshok <toshok@ximian.com>
16241 * Control.cs: throw an ArgumentException if a toplevel control is
16242 added to our control collection from ControlCollection.Add, as
16243 well as from ControlCollection.IList.Add. This fixes the
16244 ControlSetTopLevelTest.TestTopLevelAdd unit test.
16246 Also, in ControlCollection.IList.Add, don't through an
16247 ArgumentNullException, throw an ArgumentException, when value ==
16248 null. This matches MS.
16250 2007-01-23 Chris Toshok <toshok@ximian.com>
16252 * BindingSource.cs: initial, incomplete, implementation of
16255 2007-01-23 Jackson Harper <jackson@ximian.com>
16258 * TextBoxBase.cs: Checking in some pieces of the undo stuff so
16259 that I can fix a broken unit test (TextBoxTest::ClearUndo)
16261 2007-01-23 Everaldo Canuto <everaldo@simios.org>
16263 * ToolBar.cs: Add status fields to ToolBarButtonInfo.
16265 2007-01-23 Andreia Gaita <avidigal@novell.com>
16267 * TreeNode.cs: Add new 2.0 ImageKey and SelectedImageKey properties.
16268 * TreeNodeCollection.cs: New Add() methods, ContainsKey and
16269 IndexOfKey() for 2.0
16271 2007-01-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
16273 * XplatWin32.cs: In RequestNCRecalc call SetWindowPos with SWP_NOZORDER
16274 to prevent it from changing z-order.
16275 * MdiWindowManager.cs: Refactor part of SetWindowState to MdiClient, only
16276 leave UI updates in MdiWindowManager.
16277 * InternalWindowManager.cs: Check for 0 sized nc areas and make them
16278 1 sized (NC handling goes weird on Linux otherwise).
16279 * MdiClient.cs: Add missing ExStyle (WS_EX_CLIENTEDGE), so it's no longer
16280 necessary to handle WM_NCCALCSIZE anymore. This also made it possible to
16281 remove a few NCRequestRecalcs. Changed calculations in IconicBounds
16282 to use ClientSize of MdiClient instead of entire size. Refactored ActivateChild
16283 and SetWindowState(s) to allow for changing the size of an activated child
16284 before activating it (reduces a lot of flicker).
16286 2007-01-22 Jonathan Pobst <monkey@jpobst.com>
16288 * Form.cs: Changing FormBorderStyle has different semantics based
16289 on whether the Form is visible or not. If not visible, don't change
16290 the Size. But InvalidateNC needs to be called to force the window
16291 to pick up the changes and redraw itself. [Fixes bug #80574]
16293 2007-01-22 Jonathan Pobst <monkey@jpobst.com>
16296 * ContainerControl.cs: ProcessCmdKey.
16297 * ErrorProvider.cs: new constructor.
16298 * Form.cs: fix AutoValidateEvent compiler warning.
16299 * Label.cs: fix OnAutoSizeChanged compiler warning.
16300 * MenuStrip.cs: fix CanOverflow compiler warning.
16301 * TabControl.cs: SelectTab, OnSelected methods, Selected event.
16302 * TextBox.cs: Dispose.
16303 * ToolStrip.cs: CanOverflow, re-enable double buffering.
16304 * ToolStripControlHost.cs: fix CausesValidation compiler warning.
16305 * ToolStripDropDown.cs: fix ContextStripMenu compiler warning.
16306 * ToolStripItem.cs: Overflow, RightToLeft properties.
16308 2007-01-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
16310 * Form.cs: Move the layout of the main form to MdiWindowManager.
16311 * MdiWindowManager.cs: If WindowState changes from or to Maximized,
16312 do a layout of the main window to update MdiClient's client area to
16313 the right area. Fixes #80533. Remove the calculation of nc size,
16314 it was just wrong and the correct one is the same as for
16315 InternalWindowManager.
16317 2007-01-20 Jonathan Pobst <monkey@jpobst.com>
16319 * Control.cs: Setting Anchor or Dock needs to reset the other
16320 to its default. [Fixes bug #80556]
16322 2007-01-20 Chris Toshok <toshok@ximian.com>
16324 * CheckedListBox.cs: class status changes.
16326 * ScrollableControl.cs: same.
16328 * RichTextBox.cs: same.
16330 * ContainerControl.cs: same.
16332 * ListView.cs: same.
16334 * NotifyIcon.cs: same.
16336 * MenuStrip.cs: same.
16338 * RadioButton.cs: same.
16340 * CheckBox.cs: same.
16342 * PrintPreviewDialog.cs: same.
16346 2007-01-19 Jonathan Pobst <monkey@jpobst.com>
16348 * TreeNode.cs: Apply Alan's patch for Name property.
16350 2007-01-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
16352 * Form.cs: Implemented SizeGripStyle.
16353 * SizeGrip.cs: Check for minimum and maximum size for the
16354 control being resized and only resize if size has actually
16357 2007-01-19 Chris Toshok <toshok@ximian.com>
16359 * DataGridColumnStyle.cs: stop setting _readonly in the
16360 PropertyDescriptor setter. fixes a unit test failure.
16362 also, rename ParentReadOnly to TableStyleReadOnly, and have it
16363 just consult our table style (if we have one). We don't need to
16364 consult the datagrid readonly attribute because that's passed in
16365 as the _ro arg to Edit. this simplifies things a little.
16367 * DataGrid.cs: use CurrentColumn instead of
16368 current_cell.ColumnNumber just to simplify some of the code.
16370 switch the order of some things in the CurrentCell setter to keep
16371 the previous cell from getting a textbox again -
16372 EnsureCellVisibility causes scrolling to happen, which calls Edit.
16373 So we need to set the new cell before calling it.
16375 call Edit in OnEnter, as does Microsoft.
16377 also, make sure the current table style isn't the one we create
16378 initially when checking to see if it's different than the one
16379 we're setting it to in BindColumns (this fixes #80421).
16381 * GridTableStylesCollection.cs: table styles can have "" for a
16382 mapping name. part of the fix for #80421.
16384 * DataGridTextBoxColumn.cs: simplify the readonly calculation in
16385 Edit significantly.
16387 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
16389 * TextRenderer.cs: Rewrote to be complete-er, more MS-matching-er,
16390 and less GDI object leaky-er.
16392 2007-01-18 Andreia Gaita <avidigal@novell.com>
16394 * LinkLabel.cs: Add opaque control style
16396 2007-01-18 Jackson Harper <jackson@ximian.com>
16398 * TextControl.cs: Calculate width properly.
16399 - Don't store the tag's X offset, this can be figured out very
16401 - When getting the caret tag make sure to get the last empty tag.
16403 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
16405 * Form.cs: Recalculate our size after setting a new FormBorderStyle.
16408 * Control.cs: Color.Empty shouldn't count for previous transparent
16411 2007-01-18 Jackson Harper <jackson@ximian.com>
16415 * TextControl.cs: Starting to merge in some pieces of my older
16416 undo work. Basically just some slight cleanup of the undo API.
16418 2007-01-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
16420 * TrackBar.cs: Fix signature of RightToLeftLayout.
16421 * StatusBar.cs: Implemented missing 2.0 methods and attributes.
16422 * StatusBarPanel.cs: Implemented missing 2.0 methods and attributes.
16423 * Application.cs: Implemented UseWaitCursor.
16425 2007-01-18 Jackson Harper <jackson@ximian.com>
16427 * TextControl.cs: We can't skip tags if any part of the tag is
16430 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
16432 * ContainerControl.cs: Override OnLayout.
16434 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
16436 * NotifyIcon.cs: Add ContextMenuStrip and Tag properties.
16438 * ContextMenuStrip.cs: Make sure context menu is shown on top of
16441 2007-01-18 Chris Toshok <toshok@ximian.com>
16443 * ContainerControl.cs: remove the partial handling of LBUTTONDOWN
16444 (leftover from the container_selected days, I'd wager). fixes bug
16447 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
16449 * Control.cs: Apply patch from George to fix the new testcase on
16450 bug #80451. We can't just check for Color.Transparent, we need
16451 to check if the back color's alpha channel is < 255.
16453 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
16455 * Form.cs: Move setting show_icon = true to before the constructor
16456 so that the base constructor has that information when it calculates
16457 the form's size. Was causing forms to be (6, 6) bigger than they
16458 were supposed to be. Thanks for catching this Rolf!
16460 2007-01-18 Jackson Harper <jackson@ximian.com>
16462 * TextControl.cs: When replacing a selection we need to invalidate
16463 from the initial selection start, because selection start is moved
16464 to the end of the replacement.
16466 2007-01-18 Andreia Gaita <avidigal@novell.com>
16468 * LinkLabel.cs: Missing ControlStyles. Fixes #80482
16470 2007-01-18 Chris Toshok <toshok@ximian.com>
16472 * DataGridTextBoxColumn.cs: fix most of the NotWorking unit tests
16475 2007-01-17 Everaldo Canuto <everaldo@simios.org>
16477 * ToolBar.cs: Add layout methods to ToolBarButtonInfo class, every
16478 layout methods and properties from ToolBarButton must be available
16479 into ToolBarButtonInfo.
16481 2007-01-17 Jonathan Pobst <monkey@jpobst.com>
16483 * Control.cs: If the control has a transparent background, we
16484 need to refresh it when it moves and when it's parent's background
16485 image changes. [Fixes bug #80451]
16487 2007-01-17 Jonathan Pobst <monkey@jpobst.com>
16489 * XplatUIWin32.cs: Don't use 2.0 methods in 1.1 code! Doh!
16491 2007-01-17 Jonathan Pobst <monkey@jpobst.com>
16493 * XplatUIWin32.cs: Implement proper double buffering for Windows.
16494 [Fixes bug #80447, and probably speeds up things as well]
16496 2007-01-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
16498 * XplatUIX11.cs: Caption height for MDI children is 19, not 26.
16499 * XplatUIWin32.cs: We need to recalculate NC size after changing
16500 window style to toolwindow (otherwise the client rectangle will be
16501 3 pixels to small for some reason).
16502 * MdiWindowManager.cs: Revert NC size calculations to match how
16503 they are calculated only based on window styles (to match
16504 Win32AdjustWindowRectEx, since otherwise when setting size or
16505 location, Control will call Win32AdjustWindowRectEx to update client
16506 size, which would provoke a paint, then we'd get a NCCALCSIZE and
16507 calculate a different value of client size causing another paint
16509 * InternalWindowManager.cs: When moving or resizing a window only
16510 update size or location if they actually changed.
16511 * ThemeWin32Classic.cs: ManagedWindowsBorderWidth is now 4 instead of 3
16512 (seems to match Windows behaviour better). Cleaned up
16513 ManagedWindowDecorations to draw what's needed and nothing else
16514 (was drawing borders and lines where they shouldn't be)
16515 * Hwnd.cs: GetWindowRectangle now knows about MDI border sizes
16516 (style = 0xFFFF) and takes into account caption height when
16517 calculating window rectangle.
16519 2007-01-16 Everaldo Canuto <everaldo@simios.org>
16521 * ToolBar.cs: Internal ToolBarButtonInfo class added, Because same button
16522 can be added to toolbar multiple times, we need to maintain a list of
16523 button information for each positions.
16525 2007-01-16 Everaldo Canuto <everaldo@simios.org>
16527 * ToolBar.cs: Some small stetic changes.
16529 2007-01-16 Jackson Harper <jackson@ximian.com>
16531 * TextBoxBase.cs: Use the new SuspendRecalc/ResumeRecalc methods
16532 that allow us to have nested recalc = false blocks.
16533 - Add paste support for images in the RichTextBox
16534 * RichTextBox.cs: flush the text after the color is changed, so
16535 the change takes effect.
16536 - Use SuspendRecalc
16537 - Some extra debugging info
16538 * TextControl.cs: Tags no longer track their length, it is just
16539 computed from the next tags length, this makes things a little
16540 simpler and reduces places that we have to track length changes.
16541 - Refactored the linetag class a little so we could make it
16542 a base class for different kinds of tags
16543 - Created a image tag, a tag that can have a single image inserted
16545 - Replace the norecalc flag with a Suspend/Resume Recalc pair, so
16546 that we can call suspend multiple times.
16547 - Add some debugging methods
16549 2007-01-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
16551 * MdiClient.cs: Add ActivatePreviousChild for
16552 mdi child window navigation.
16553 * Form.cs: Use MdiClient.ActivateNextChild/
16554 ActivatePreviousChild instead of Form.SelectNextControl
16555 to select the next/previous child since
16556 SelectNextControl doesn't do it in the same order
16557 as mdi children should do it.
16559 2007-01-16 Chris Toshok <toshok@ximian.com>
16561 * Control.cs: remove container_selected field.
16563 2007-01-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
16565 * MdiClient.cs: Update main form's ActiveChild when
16566 updating keyboard focus for the mdi child.
16568 2007-01-16 Jonathan Pobst <jpobst@novell.com>
16570 * Control.cs: PreferredSize fix.
16572 * Form.cs: Add several 2.0 events, properties, and methods.
16574 2007-01-16 Gert Driesen <drieseng@users.sourceforge.net>
16576 * Form.cs: Provide meaningful message when MdiParent is assigned a
16577 Form that is not an MdiContainer.
16579 2007-01-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
16581 * MdiClient.cs: Update main form's ActiveChild when
16582 activating a mdi child.
16584 2007-01-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
16586 * MdiWindowManager.cs: Fix NRE when merging menus and main form
16587 doesn't have a menu.
16589 * Form.cs: Request NCRecalc after creating a mdi child window.
16590 Implement mdi key handling (Ctrl+F4, Ctrl+Shift+F4, Ctrl+Tab,
16591 Ctrl+Shift+Tab, Ctrl+F6 and Ctrl+Shift+F6).
16593 * MdiClient.cs: Add new method SendFocusToActiveChild that either
16594 sends keyboard focus to the active child, or to the MdiClient
16595 if there are no child forms.
16597 2007-01-15 Chris Toshok <toshok@ximian.com>
16599 * ListView.cs: drop the *Internal overrides, just do our work in
16600 ItemControl's WndProc instead.
16602 * UpDownBase.cs: a few large changes. Fix up the Selectable state
16603 of the various controls, and forward the events properly (in the
16604 same manner as MS) from the textbox to the UpDown. Also the
16605 ActiveControl of the UpDownBase gets set properly now. Finally,
16606 we don't call UpdateEditText from the ctor. Fixes bug #79957.
16608 * NumericUpDown.cs: set Text in the ctor.
16610 * DomainUpDown.cs: call UpdateEditText in the ctor.
16612 * TextBox.cs: on ms.net, WM_LBUTTONDOWN sets focus on the textbox,
16613 so even a Selectable = false textbox can be focused if you click
16616 * Control.cs: remove On{Got,Lost}FocusInternal. Subclasses can
16617 just add their handling in their respective WndProc's. Also add
16618 an explicit FocusInternal method that doesn't consult CanFocus
16619 before calling Select(this).
16621 * TextBoxBase.cs: deal with removal of the FocusInternal calls -
16622 do our work in WndProc instead.
16624 * TabControl.cs: same.
16626 * ComboBox.cs: same.
16628 2007-01-15 Everaldo Canuto <everaldo@simios.org>
16630 * Menu.cs: implement MergeItems and Replace for MenuMerge method.
16633 2007-01-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
16636 * ThemeWin32Classic.cs: Don't draw the item text outside
16637 item bounds in Details view, as well as use trimming.
16640 2007-01-15 Jonathan Pobst <jpobst@novell.com>
16642 * Form.cs: Implement Form.ShowIcon.
16644 * XplatUIWin32.cs: Allow the SetIcon win32 call to set the icon to
16645 null, which when combined with the DlgModalFrame window style removes
16646 the icon from the title bar.
16648 2007-01-15 Jonathan Pobst <jpobst@novell.com>
16650 * Control.cs: Call OnMouseClick after OnClick. (2.0)
16652 2007-01-15 Everaldo Canuto <everaldo@simios.org>
16654 * MdiWindowManager.cs: In CreateMaximizedMenu fix a position of icon
16655 menu when mdi child windows theres a menu, uses insert to get icon
16656 at first position. Partially fix #80006.
16658 2007-01-15 Jonathan Pobst <jpobst@novell.com>
16660 * Clipboard.cs: Implement 2.0 methods.
16662 2007-01-15 Everaldo Canuto <everaldo@simios.org>
16664 * Menu.cs: Implement Insert method of MenuItemCollection class
16667 2007-01-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
16669 * ListView.cs: Implement 2.0 FindItemWithText method.
16671 2007-01-11 Everaldo Canuto <everaldo@simios.org>
16673 * Form.cs: When process WM_NCCALCSIZE message use ClienSize.Width
16674 to calculate menu bar size. Fixes #80290.
16676 2007-01-11 Everaldo Canuto <everaldo@simios.org>
16678 * ThemeWin32Classic.cs: Fix position of menuitem check mark.
16680 2007-01-11 Chris Toshok <toshok@ximian.com>
16682 * XplatUIX11.cs: don't send duplicate WM_ACTIVATE messages to the
16685 2007-01-11 Chris Toshok <toshok@ximian.com>
16687 * LinkLabel.cs: make sure to call base.Select in our Select method
16688 if it turns out we're going to be selected (i.e. if we have a link
16689 that is going to receive focus). That way our container's
16690 ActiveControl is updated properly.
16692 2007-01-11 Chris Toshok <toshok@ximian.com>
16694 * LinkLabel.cs: turns out that LinkLabels are only Selectable if
16695 they have 1 or more links. this fixes the crash gert reported.
16697 2007-01-11 Andreia Gaita <avidigal@novell.com>
16699 * ContainerControl.cs: Remove ContainerSelected flag, not needed
16702 * Control.cs (Controls.Add): Check if control to be added to the collection
16703 is a top level control, and throw an ArgumentException if it is.
16704 Remove ContainerSelectedFlag, not needed anymore.
16706 * XplaUIWin32.cs (SetTopMost): Add flag SWP_NOACTIVATE so that setting the
16707 top most control doesn't activate the form. This fixes a problem in the
16708 MessageBox, where the default button wouldn't get focus because the form
16709 was activated before being Loaded - when the Owner is set, SetTopMost is
16710 called, and it would activate it.
16712 2007-01-11 Jonathan Pobst <jpobst@novell.com>
16714 * Button.cs: When clicked and setting the parent form's DialogResult,
16715 use FindForm instead of Parent, since parent could be a container
16716 control and not the Form. Fixes bug #80495.
16718 2007-01-10 Chris Toshok <toshok@ximian.com>
16720 * Form.cs: move the call to SendControlFocus into the same
16723 2007-01-10 Chris Toshok <toshok@ximian.com>
16725 * UpDownBase.cs (.ctor): remove the ActiveControl assignment here.
16726 It breaks in the face of the new ActiveControl stuff, and should
16729 * Form.cs (WndProc): in the WM_ACTIVATE case, we need to set the
16730 activecontrol's focus if it's not already set, after we set
16731 ActiveControl, but before we call OnActivated. Re-fixes #79667
16732 after the previous focus/active control fixes regressed it.
16734 * Control.cs: reindent some code.
16736 2007-01-10 Chris Toshok <toshok@ximian.com>
16738 * Splitter.cs: clearing some outstanding changes from my tree.
16739 Replace all accesses (not writes) to the internal dock_style field
16740 with the Dock property.
16742 2007-01-10 Chris Toshok <toshok@ximian.com>
16744 * Control.cs: make FireEnter, FireLeave, FireValidating, and
16745 FireValidated virtual.
16747 * Form.cs: override and don't chain up calls to FireEnter and
16750 2007-01-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
16752 * ListView.cs: Add more text padding space when using
16753 auto resize for columns (the previous value didn't work fine).
16755 * ThemeWin32Classic.cs: Update text position inside columns,
16756 to match the appeareance of .Net.
16758 * ColumnHeader.cs: When using auto resize, only the Width should
16759 depend on the sub items, not the Height. Also, set width after
16760 auto resizing (the value of Width should never remain as -1 or -2).
16762 2007-01-10 Chris Toshok <toshok@ximian.com>
16764 * Application.cs: fix compilation errors when debug is enabled.
16766 2007-01-10 Chris Toshok <toshok@ximian.com>
16768 * ContainerControl.cs (set_ActiveControl): rework this a bit (and
16769 add some nice ascii art pictures and explanation of the process).
16770 (GetMostDeeplyNestedActiveControl): new utility function we need
16771 because our ActiveControl can refer to a child container with its
16774 * Form.cs (OnActivated): remove the call to SelectActiveControl
16775 from here, since you can override this method and not chain up,
16776 and winforms still sets the active control.
16777 (OnCreateControl): also remove the unnecessary SelectActiveControl
16779 (WndProc): it's actually called from the WM_ACTIVATE block, just
16780 before calling OnActivated.
16782 * Control.cs (Select (Control)): move the call to XplatUI.SetFocus
16783 inside the else. the ActiveControl setter will end up setting
16784 focus on @control. This keeps us from setting it again (and
16785 generating an extra LostFocus/GotFocus pair).
16786 (Select (bool, bool)): reindent.
16788 2007-01-10 Jonathan Pobst <jpobst@novell.com>
16790 * FlowLayoutPanel.cs, MenuStrip.cs, SplitContainer.cs, SplitterPanel.cs,
16791 StatusStrip.cs, TableLayoutPanel.cs, TableLayoutStyleCollection.cs,
16792 ToolStrip.cs, ToolStripComboBox.cs, ToolStripContainer.cs,
16793 ToolStripContentPanel.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
16794 ToolStripDropDownButton.cs, ToolStripDropDownItem.cs, ToolStripDropDownMenu.cs,
16795 ToolStripItem.cs, ToolStripMenuItem.cs, ToolStripPanel.cs, ToolStripPanelRow.cs,
16796 ToolStripSeparator.cs, ToolStripSplitButton.cs, ToolStripStatusLabel.cs
16797 ToolStripTextBox.cs: Another wave of corcompare work.
16799 2007-01-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
16801 * ColumnHeader.cs: Implement 2.0 AutoResize method using
16802 the Width property.
16804 * ListView.cs: Implement 2.0 AutoResizeColumn and AutoResizeColumns
16805 methods by callling Column.AutoResize method on columns.
16807 2007-01-09 Jonathan Pobst <monkey@jpobst.com>
16809 * Control.cs: Provide proper implementations of PreferredSize
16810 and GetPreferredSize (2.0).
16812 2007-01-09 Jonathan Pobst <monkey@jpobst.com>
16814 * Form.cs: Remove one character (!) to make my previous OnClosing
16815 stuff work for modal windows like MessageBox.
16817 2007-01-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
16820 * ThemeWin32Classic.cs: Use ListView.GetReorderedColumn instead of
16821 ListView.Columns to get the last displayed column. Fixes #80452.
16823 2007-01-09 Everaldo Canuto <everaldo@simios.org>
16825 * Label.cs, LinkLabel.cs: Source code identation fixes.
16827 2007-01-08 Everaldo Canuto <everaldo@simios.org>
16829 * ToolBarButton.cs: Remove InvalidateBorder and use Invalidate instead,
16830 we dont need to invalidate only borders because when we invalidate four
16831 border lines the invalidate's generates a complete redraw of button,
16832 because it now invalidate a complete rect some other redraws operations
16833 are fixed. Fixes #80196.
16835 * Theme.cs, ThemeNice.cs, ThemeClearLooks.cs, ThemeWin32Classic.cs:
16836 Remove ToolBarInvalidateEntireButton as it is not used.
16838 2007-01-08 Jonathan Pobst <monkey@jpobst.com>
16840 * Form.cs: Make sure that both OnClosing and OnFormClosing are
16841 called for 2.0 profile.
16842 * CloseReason.cs: Make class internal for 1.1.
16844 2007-01-08 Jonathan Pobst <monkey@jpobst.com>
16846 * ToolStripManager.cs: Implement FindToolStrip functionality.
16847 * ToolStrip.cs: Register and unregister with ToolStripManager.
16849 2007-01-07 Jonathan Pobst <monkey@jpobst.com>
16851 * Control.cs: This was messy. 2.0 moves much of ControlCollection
16852 to ArrangedElementCollection. Implemented this with as few #if's as
16853 possible (which is still too many).
16855 2007-01-07 Jonathan Pobst <monkey@jpobst.com>
16857 * Control.cs: Implement SizeFromClientSize() [2.0].
16859 2007-01-07 Everaldo Canuto <everaldo@simios.org>
16861 * Hwnd.cs: On GetClientRectangle add a new parameter border_static,
16862 use Theme.BorderSize to calculate area instead of static value 1,
16863 by the way use new BorderStaticSize instead Border3DSize when
16864 border_static is true. Fixes #79537.
16866 * XplatUIOSX.cs: Fix call to GetClientRectangle.
16868 * ThemeWin32Classic.cs: On CPDrawBorder3D dont draw inner border when
16871 2007-01-06 Everaldo Canuto <everaldo@simios.org>
16873 * Hwnd.cs: Gives more code legibility to GetWindowRectangle.
16875 2007-01-06 Everaldo Canuto <everaldo@simios.org>
16877 * Label.cs: Override CreateParams to use WS_EX_STATICEDGE instead of
16878 WS_EX_CLIENTEDGE in ExStyles when BorderStyle is Fixed3D, it is
16881 - border_static field added, it will used to define when a control
16882 theres 3D border but it must be static (thin).
16883 - In GetWindowRectangle use Theme.BorderSize to calculate area
16884 instead of static value 1, by the way use new BorderStaticSize instead
16885 Border3DSize when border_static is true.
16887 * XplatUIX11.cs, XplatUIOSX.cs:
16888 - When WS_EX_STATICEDGE ExStyle is set define border_static as true.
16890 * Theme.cs: BorderStaticSize field added.
16892 2007-01-05 Everaldo Canuto <everaldo@simios.org>
16894 * XplatUIX11.cs: Removed unused hwnd var in SetBorderStyle.
16896 2007-01-05 Everaldo Canuto <everaldo@simios.org>
16898 * Control.cs: Under InternalBorderStyle call RecreateHangle to
16899 mimic same behavior than win32 that set border only in CreateParams,
16900 it fix problems under CreateParams overrides. Fix #79442 and partial
16903 * XplatUIX11.cs: Dont set hwnd.border_style in SetBorderStyle instead
16904 of thi control you must call recreate handle.
16906 * XplatUIWin32.cs: Remove all SetBorderStyle code, for win32 we dont
16907 need to do anything as RecreateHangle will take care about borders.
16909 2007-01-05 Mike Kestner <mkestner@novell.com>
16911 * ListView.cs: hack to eliminate Lost/Got focus notifications on
16912 cycles between the ItemControl and parent. Fixes #80388.
16914 2007-01-05 Gert Driesen <drieseng@users.sourceforge.net>
16916 * Control.cs: Lazy init layout engine. Do not directly use
16917 layout_engine since LayoutEngine may be overridden (on 2.0 profile).
16919 2007-01-05 Chris Toshok <toshok@ximian.com>
16921 * DataGrid.cs: don't forceably rebind columns in SetDataSource
16922 unless our list manager has changed (i.e. unless we have reason to
16923 believe our columns have changed). Fixes #80422.
16925 also, disable the call do BindColumns in
16926 OnListManagerMetaDataChanged. this breaks this test in 2.0 (in
16927 1.1 the event isn't raised in response to a column addition on a
16930 2007-01-05 Jonathan Pobst <monkey@jpobst.com>
16932 * Control.cs: Move LayoutEngine.Layout to the OnLayout method, so
16933 that inheritors can not call it if they choose. Fixes bug #80456.
16935 2007-01-05 Andreia Gaita <avidigal@novell.com>
16937 * XplatUIWin32.cs: Initialize MSG.refobject at 0 so it
16938 doesn't blow up with a null exception on marshalling.
16940 2007-01-05 Jonathan Pobst <monkey@jpobst.com>
16942 * Control.cs: Implement several 2.0 protected properties and methods.
16943 Ensure that all necessary events are being called when properties
16946 2007-01-05 Mike Kestner <mkestner@novell.com>
16948 * ListView.cs: implement PgUp/PgDn for Details view. Also
16949 fixes First/LastVisibleIndex to use the item_control.ClientRect
16950 instead of the parent control. Fixes #80378.
16952 2006-01-05 Atsushi Enomoto <atsushi@ximian.com>
16954 * PageSetupDialog.cs : cosmetic refactoring; use RegionInfo to
16955 determine whether to use yard-pound or not (bug #78399).
16957 2006-01-04 Alexander Olk <alex.olk@googlemail.com>
16959 * FileDialog.cs: Sebastien fixed the libgdiplus png alpha
16960 problems. So it is time to bring back the old popupbutton colors.
16962 2006-01-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
16965 * ListView.cs: Implement 2.0 ColumnHeader.DisplayIndex
16966 property by using the internal information of the
16967 columns order in ListView.
16969 2007-01-04 Jonathan Pobst <monkey@jpobst.com>
16971 * CommonDialog.cs, Cursor.cs, ErrorProvider.cs, HelpProvider.cs:
16972 Add 2.0 Tag properties.
16974 * LinkArea.cs: Add 2.0 ToString method.
16976 2007-01-03 Chris Toshok <toshok@ximian.com>
16978 * DataGrid.cs: the Alt+0 handling was wrong, it should have been
16979 Ctrl+0. Fixes bug #80367. Also, don't eat the Delete keypress
16980 when we're editing, which fixes #80047.
16982 2007-01-03 Chris Toshok <toshok@ximian.com>
16984 * Form.cs: apply patch contributed by Dominik Seichter. fixes
16987 2007-01-03 Jonathan Pobst <monkey@jpobst.com>
16989 * MenuStrip.cs, ToolStripMenuItem.cs: Add MdiWindowListItem
16990 property and implementation.
16992 * Form.cs, MdiClient.cs, MdiWindowManager.cs: Add needed hooks
16993 for MdiWindowListItem property.
16995 * ToolStripDropDown.cs: Don't consider hidden menu items while
16996 laying out the menu.
16998 2007-01-03 Andreia Gaita <avidigal@novell.com>
17000 * SendKeys.cs: window handle is not needed in win32, so just
17001 get the active window for X after parsing keys and don't use
17002 it when building the message; it is passed by parameter to the
17003 Xplat method and used there to build the message instead. Also,
17004 wait for events to be processed on SendWait, as opposed to Send,
17005 which doesn't wait :) Playing with threads and Send() completely
17006 hangs on ms.net, only SendWait() works.
17009 X11Display.cs: Check for valid window handle.
17011 2007-01-03 Jackson Harper <jackson@ximian.com>
17013 * TextControl.cs: Need to prevent wrap calculations when replacing
17014 text (this was there before i removed it accidently).
17015 - Don't update the cursor during the positioning, just set it to
17016 selection_start at the end of the operaion.
17018 2007-01-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
17021 * NotifyIcon.cs: corcompare work, no more X's in 1.1 class status.
17023 2007-01-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
17025 * MonthCalendar.cs: Added Click and DoubleClick events again,
17026 but this time they only hide Control's Click and DoubleClick.
17028 2007-01-03 Gert Driesen <drieseng@users.sourceforge.net>
17030 * Theme.cs: Re-enabled DefaultFont change. Use const to refer to
17031 System.Drawing assembly. Spaces to tabs. Removed extra tabs.
17033 2007-01-02 Jackson Harper <jackson@ximian.com>
17035 * TextBoxBase.cs: We move the caret with the split now, so we
17036 don't need to explicitly move the caret after splitting. This
17037 fixes the caret bumping down an extra line on Enter.
17039 2007-01-02 Miguel de Icaza <miguel@novell.com>
17041 * ContainerControl.cs: Add AutoValidateChanged event (for PDN
17044 * ScrollableControl.cs: Add Scroll event.
17046 2007-01-02 Mike Kestner <mkestner@novell.com>
17048 * ListView.cs: one more try with help from georgegiolfan@yahoo.com
17049 to fix all hdr height padding codepaths. Fixes #80207.
17051 2007-01-02 Chris Toshok <toshok@ximian.com>
17053 * StatusBar.cs (.ctor): remove the Anchor setting, as it's just
17054 setting it to the Control defaults anyway, and it being after the
17055 Dock set was screwing up layout.
17056 (set_Dock): don't short circuit out of setting base.Dock. Also,
17057 no need to call UpdateStatusBar here, as it'll be re-layed out if
17060 2007-01-02 Mike Kestner <mkestner@novell.com>
17062 * ListView.cs: patch from georgegiolfan@yahoo.com to add padding
17063 to header height for width == -1. Fixes the rest of #80207.
17065 2007-01-02 Mike Kestner <mkestner@novell.com>
17067 * ListView.cs: rework the mouse event forwarding everaldo added
17068 to translate the coordinates to the parent control not
17069 raise the parent events until after we've done our work. Hover
17070 needs more work, in the case where HoverSelection is on, because
17071 the item control receives more than one MouseHover per Enter
17072 event, so we need to ensure only the "first" hover gets forwarded.
17073 Opening a minor bug for that.
17075 2007-01-02 Gert Driesen <drieseng@users.sourceforge.net>
17077 * CheckedListBox.cs: Fixed SelectionMode to match MS.
17078 * ListControl.cs: Implemented AllowSelection property. Removed extra
17080 * ListBox.cs: Implemented AllowSelection property.
17082 2007-01-02 Everaldo Canuto <everaldo@simios.org>
17084 * MenuItem.cs: In MdiWindowClickHandler uses sender instead of
17085 SelectedItem, it prevent for errors when you must disable item
17086 before perform click. Fixes #80409.
17088 2007-01-02 Everaldo Canuto <everaldo@simios.org>
17090 * MenuAPI.cs: Prevent second level and beyond submenus to close
17091 until first level when move out side of popup.
17093 2007-01-02 Everaldo Canuto <everaldo@simios.org>
17096 - Down submenu positin in three pixels.
17097 - Closes sub menu when mouse leaves from menu. Fixes #80402.
17099 2007-01-02 Everaldo Canuto <everaldo@simios.org>
17101 * ThemeWin32Classic.cs:
17102 - Fix popup menu size adding one pixel on the top.
17103 - Down menu item border from two to one to mimic Win32.
17104 - Some source identation fixes.
17106 2007-01-01 Everaldo Canuto <everaldo@simios.org>
17108 * ThemeWin32Classic.cs: Use float numbers to calculate size and
17109 position of menu arrows, it fix wrong arrow size.
17111 2007-01-01 Everaldo Canuto <everaldo@simios.org>
17113 * ThemeWin32Classic.cs: Uses CPDrawBorder3D to draw menu borders
17114 instead of line, it simplify draw operation and fix it using 3D
17115 borders to mimic Win32.
17117 2007-01-01 Jonathan Pobst <monkey@jpobst.com>
17119 * StatusStrip.cs: Add implementation of the sizing grip.
17121 * ToolStripRenderer.cs, ToolStripProfessionalRenderer.cs: Add
17122 StatusStrip rendering.
17124 2006-12-31 Chris Toshok <toshok@ximian.com>
17126 * ToolBar.cs: don't assign to dock_style in the .ctor. it doesn't
17127 override the layout style (anchor/dock) of the control. assign to
17128 Dock instead. Fixes bug #80416.
17130 * ToolStrip.cs: same.
17132 2006-12-31 Andreia Gaita <avidigal@novell.com>
17134 * ContainerControl.cs: Use ContainerSelected flag to check if
17135 a Container is directly selected, or if Select is called on a
17136 non-container. If a container is directly selected, focus events
17137 should not be raised.
17138 Apply #80411 patch to throw exception on set_ActiveControl if
17139 control is the same as the current one.
17141 * Control.cs: Use ContainerSelected flag (see above).
17142 Add invalidation check to raise event but not invalidate if
17144 Apply #80411 patch.
17147 2006-12-31 Everaldo Canuto <everaldo@simios.org>
17149 * MenuAPI.cs: After click, dont close popup menu when menu is
17150 ContextMenu. Fixes #80399.
17152 2006-12-30 Chris Toshok <toshok@ximian.com>
17154 * ContainerControl.cs: make sure we throw the exception if the
17155 container control doesn't contain the control we're setting
17158 2006-12-30 Chris Toshok <toshok@ximian.com>
17160 * Control.cs (SetTopLevel): fix the exception raised by
17161 SetTopLevel for child controls.
17162 (set_Anchor): call UpdateDistances when setting the anchor type.
17163 This fixes bug #80336.
17165 2006-12-29 Gert Driesen <drieseng@users.sourceforge.net>
17167 * Theme.cs: For now, revert back to 8pt font.
17169 2006-12-29 Everaldo Canuto <everaldo@simios.org>
17171 * MenuAPI.cs: Set popup as active when open a ContextMenu.
17174 2006-12-29 Chris Toshok <toshok@ximian.com>
17176 * Control.cs: reorder the code in OnResize to give the same event
17179 2006-12-29 Rolf Bjarne Kvinge <RKvinge@novell.com>
17181 * MdiClient.cs: Implemented MdiLayout for ArrangeIcons,
17182 TileHorizontally and TileVertically.
17184 2006-12-29 Alexander Olk <alex.olk@googlemail.com>
17186 * ColorDialog.cs, FileDialog.cs, FolderBrowserDialog.cs,
17187 FontDialog.cs, Mime.cs, MimeIcon.cs, OpenFileDialog.cs,
17188 SaveFileDialog.cs, ThemeClearlooks.cs, ThemeNics.cs:
17189 Corrected copyright and email adress.
17191 2006-12-29 Gert Driesen <drieseng@users.sourceforge.net>
17193 * TreeNode.cs: On 2.0 profile, throw InvalidOperationException instead
17194 of Exception in FullPath property if no TreeView is associated with
17197 2006-12-29 Gert Driesen <drieseng@users.sourceforge.net>
17199 * Theme.cs: Marked default_font as private, and initialize it in ctor
17200 with MS Sans Sarif 8.25 on 1.0 profile, and SystemFonts.DefaultFont
17202 * ThemeGtk.cs: Removed default_font intialization.
17203 * ThemeWin32Classic.cs: Removed default_font initialization.
17205 2006-12-28 Chris Toshok <toshok@ximian.com>
17207 * Control.cs: fix a couple of place where we were creating handles
17208 more aggressively than we should be. Fixes ControlRefresh unit
17211 2006-12-28 Chris Toshok <toshok@ximian.com>
17213 * Control.cs: contrary to what the comment said, Control.Dock does
17214 not supercede Control.Anchor - the last one you assign to decides
17215 the layout behavior. so we need to keep track of which was the
17216 last set. Also, fix some of the affected property arguments in
17217 PerformLayout calls, and remove an redundant parent.PerformLayout
17220 Add a VisibleInternal property, which returns is_visible. We
17221 can/should get rid of all the usage of this field elsewhere.
17223 2006-12-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
17225 * Control.cs: DoubleBuffered property reflects the OptimizedDoubleBuffer
17226 control style, not DoubleBuffer. Added UseDoubleBuffering property
17227 that indicates whether doublebuffering is enabled and supported.
17228 (comment from and code based on Gert Driesen's patch in #80324).
17231 2006-12-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
17233 * Control.cs: Fixed a NRE.
17235 2006-12-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
17237 * TrackBar.cs: Fix SmallChange and LargeChange exceptions
17240 2006-12-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
17242 * Control.cs: Rewrote double buffering, now a seperate
17243 class handles all the buffering, no Graphics is disposed of
17244 until the painting is finished (earlier implementation
17245 would crash if the control was resized in the OnPaint,
17246 since it would cause the double buffer to be recreated
17247 and the old one disposed), a separate Graphics is
17248 created for every paint (MS behaviour and anyways the state
17249 of the Graphics would have to be saved and restored otherwise)
17251 * XplatUIDriver.cs:
17253 * XplatUI.cs: Added and implemented GetOffscreenGraphics
17254 so that we can get the graphics for the back buffer without
17255 having to create a new one and remove the offscreen_dc parameter
17256 from CreateOffscreenDrawable and DestroyOffscreenDrawable.
17258 2006-12-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
17260 * ListView.cs: Add key-related 2.0 methods for CheckedItemCollection.
17261 Also make virtual all the key-related methods.
17263 * ListViewItem.cs: Make virtual the key related methods for
17264 ListViewSubItemCollection.
17266 2006-12-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
17270 * ThemeWin32Classic.cs:
17271 * Theme.cs: Initial support for Tile view in ListView,
17272 as well as the implementation of the required bits for it (Item
17275 2006-12-27 Gert Driesen <drieseng@users.sourceforge.net>
17277 * MonthCalendar.cs: On 2.0, throw ArgumentOutOfRangeException instead
17278 of ArgumentException in MaxSelectionCount, MaxDate and MinDate.
17279 Provide useful exception messages.
17281 2006-12-27 Rolf Bjarne Kvinge <RKvinge@novell.com>
17283 * TrackBar.cs: Remove a warning.
17284 * MonthCalendar.cs: Moved back to using Capture to hide the calendar
17285 when used by DateTimePicker, fixes #80287. This also requires that
17286 MonthCalendar implements it's own drawing for the yearly updown control,
17287 otherwise the Capture tracking would be too complicated. Removed the Click
17288 and DoubleClick events (according to comments they were hiding the base class
17289 event to prevent them from beeing fired - MSDN only says MonthCalendar doesn't
17290 raise these events, not that they cannot be raised. It is possible to raise
17291 them by calling OnClick and OnDoubleClick). Added two internal fields in
17292 HitTestInfo in order to track give more tracking info needed by MonthCalendar.
17293 * ThemeWin32Classic.cs: Implement drawing of MonthCalendar's updown part.
17294 * DateTimePicker.cs: Removed handling of MonthCalendar's LostFocus
17295 event, no longer needed.
17297 2006-12-27 Gert Driesen <drieseng@users.sourceforge.net>
17299 * ScrollableControl.cs: In AutoScrollMinSize, only set AutoScroll to
17300 true if new value differs from current value.
17302 2006-12-27 Gert Driesen <drieseng@users.sourceforge.net>
17304 * Control.cs: ControlCollection.Count must be public. Fixed build of
17307 2006-12-27 Gert Driesen <drieseng@users.sourceforge.net>
17309 * ListView.cs: Redraw when FullRowSelect is changed. Fixes bug #80379.
17311 2006-12-27 Gert Driesen <drieseng@users.sourceforge.net>
17313 * ComboBox.cs: Mergable=>MergableProperty. Fixes build.
17315 2006-12-26 Everaldo Canuto <everaldo@simios.org>
17317 * Control.cs: Invalidates control including when Width and Height is
17318 equal zero or is not visible, only Paint event must be care about
17319 this. Fixes #79913.
17321 2006-12-26 Chris Toshok <toshok@ximian.com>
17323 * CurrencyManager.cs, PropertyManager.cs, BindingManagerBase.cs:
17324 more corcompare work.
17326 * DataGridView.cs: fix compiler warning.
17328 * ColumnHeader.cs: some corcompare work, and also take the
17329 opportunity to make the internal fields private.
17331 * ListView.cs: fix the fallout from the above field change.
17333 2006-12-26 Jonathan Pobst <monkey@jpobst.com>
17335 * ToolStripButton.cs, ToolStripComboBox.cs, ToolStripControlHost.cs,
17336 ToolStripItem.cs, ToolStripProgressBar.cs, ToolStripSplitButton.cs,
17337 ToolStripTextBox.cs: Fixes to events and corcompare.
17339 2006-12-26 Everaldo Canuto <everaldo@simios.org>
17341 * ListView.cs: Call owner.OnMousexx event to propagate events from
17342 item to ListView. Fixes #80367.
17344 2006-12-26 Gert Driesen <drieseng@users.sourceforge.net>
17346 * ComboBox.cs: On 2.0, DropDownWidth throws ArgumentOutOfRangeException
17347 if value is less than one. ItemHeight should not be set to a value
17348 less than 1, and throw ArgumentOutOfRangeException on 2.0 profile.
17349 Removed extra tabs.
17351 2006-12-26 Jonathan Pobst <monkey@jpobst.com>
17353 * ToolStripMenuItem.cs: Add ShortcutDisplayString for Moma.
17354 * ToolStripStatusLabel.cs: Add Spring for Moma.
17356 2006-12-26 Gert Driesen <drieseng@users.sourceforge.net>
17358 * DataGridView.cs: Fixed several NullReferenceException in On* methods.
17359 Fixed code formatting. Removed debug code.
17360 * DataGridViewTextBoxEditingControl.cs: Removed debug code.
17362 2006-12-26 Gert Driesen <drieseng@users.sourceforge.net>
17364 * DataGridView.cs: Fixed GridColor, DefaultSize, DefaultCellStyle,
17365 RowHeadersDefaultStyle, RowHeadersWidth to match MS. Throw
17366 ArgumentOutOfRangeException if ColumnCount is negative. In
17367 ColumnHeadersHeight, throw ArgumentOutOfRangeException if height is
17368 less than 4 or higher than 32768.
17369 * DataGridViewCellStyle.cs: Fixed default value for NullValue.
17370 Fixed FormatProvider to return CurrentCulture unless explicitly set.
17371 Fixed IsFormatProviderDefault to return true if FormatProvider has
17372 not been explicitly set.
17374 2006-12-25 Chris Toshok <toshok@ximian.com>
17376 * Application.cs: add a couple of 2.0 events.
17378 2006-12-25 Chris Toshok <toshok@ximian.com>
17380 * Control.cs: fix compiler warning.
17382 * AxHost.cs: corcompare fixes.
17384 * ApplicationContext.cs: corcompare fixes.
17386 2006-12-25 Chris Toshok <toshok@ximian.com>
17388 * Control.cs: only update dist_right/dist_bottom if the
17389 width/height is > 0. this fixes anchored controls being resized
17390 smaller until they disappear and then resized larger again.
17392 2006-12-25 Chris Toshok <toshok@ximian.com>
17394 * Control.cs: a couple of changes. Remove dist_left and dist_top,
17395 since they're nothing more than X/Left and Y/Top, respectively.
17397 Also, move back to a per-control Bitmap/Graphics for
17398 DeviceContext, since using the static Hwnd.bmp/bmp_g is bad in the
17399 MT case. Go with a tiny bitmap though, 1x1, instead of Width x
17402 2006-12-25 Miguel de Icaza <miguel@novell.com>
17404 * MessageBox.cs: Implemented overload that takes a new "bool
17405 displayHelpButton" by adding a new internal field "show_help".
17406 When clicked this will raise the HelpRequested on the owner or the
17409 From: 007dbe3ff0ca4729a4f5fcd1d8ab2a2e.txt
17410 From: c935e12b95fe4dc1ae670e7f4dc5fd68.txt
17412 * ListView.cs: Add support ColumnWidthChanged and
17413 ColumnWidthChanging.
17415 Add support for ColumnReordered event.
17416 (ReorderColumn): Add NET_2_0 specific support for cancelling the
17419 Very nice codebase!
17421 * TextBoxBase.cs (GetLineFromCharIndex): Implement this method.
17423 This is used by report f4ae0a88a0a244558aaadf017c9b9efe.
17425 2006-12-24 Chris Toshok <toshok@ximian.com>
17427 * GridTablesFactory.cs: 2.0 corcompare work.
17429 * ToolStripContainer.cs: add "override" to
17430 ContextMenuStripChanged, and remove the local event object.
17432 * ToolStripDropDown.cs: same with a couple properties.
17434 * ToolStripPanel.cs: same with AutoSizeChanged event.
17436 * TextBoxBase.cs: add "override" to AutoSizeChanged.
17438 * Form.cs: add the remaining 2.0 events, and do some corcompare
17441 * DateTimePicker.cs: add "new" to padding.
17443 * ButtonBase.cs: use Control's use_compatible_text_rendering.
17445 * ToolStripContentPanel.cs: use base.AutoSizeChanged.
17447 * DataGridView.cs: PaddingChanged is overridden.
17449 2006-12-24 Chris Toshok <toshok@ximian.com>
17451 * Control.cs: corecompare work here too.
17453 * DataGridViewElement.cs, DataGridView.cs,
17454 DataGridViewButtonCell.cs, DataGridViewRowCollection.cs,
17455 DataGridViewImageColumn.cs, DataGridViewComboBoxColumn.cs,
17456 DataGridViewImageCell.cs, DataGridViewCheckBoxCell.cs,
17457 DataGridViewHeaderCell.cs, DataGridViewCell.cs: more corcompare
17460 2006-12-24 Miguel de Icaza <miguel@novell.com>
17462 * Control.cs: Switched the error message on the console for a
17463 todo. A review of the code will have to cope with this anyways
17464 (since its a large feature, it is in our radar) and it was
17465 producing too much output when running PDN.
17467 * ToolStripComboBox.cs: Set the text when the SelectedIndex
17468 changes. Applications depend on this (PDN 2.72)
17470 2006-12-23 Chris Toshok <toshok@ximian.com>
17472 * TableLayoutSettings.cs: finish up the corcompare work for this
17475 2006-12-23 Chris Toshok <toshok@ximian.com>
17477 * Control.cs: make SetImplicitBounds internal, do some futzing
17478 with LayoutEngine so that it's available in 1.1, and remove the
17479 entire duplicated code mess from PerformLayout. Use
17480 System.Windows.Forms.Layout.DefaultLayout instead.
17482 * LayoutEngine.cs: make this class internal in 1.1, public in 2.0.
17484 2006-12-23 Jonathan Pobst <monkey@jpobst.com>
17486 * Form.cs: Add MainMenuStrip property.
17488 2006-12-23 Jonathan Pobst <monkey@jpobst.com>
17490 * Control.cs: Add ContextMenuStrip property and implementation.
17491 Fix ContextMenu implementation to show menu centered on control when
17492 activated using the keyboard instead of showing at screen (0,0).
17494 * ToolStripDropDown.cs: Fix needed overload of Show ().
17496 2006-12-23 Everaldo Canuto <everaldo@simios.org>
17498 * Menu.cs: Name property added for 2.0 profile.
17500 2006-12-23 Everaldo Canuto <everaldo@simios.org>
17502 * Menu.cs: Update information about FindMenuItem, method to be
17505 2006-12-23 Everaldo Canuto <everaldo@simios.org>
17507 * MenuAPI.cs: When deselect items deselect also selected subitems.
17509 2006-12-23 Everaldo Canuto <everaldo@simios.org>
17511 * MenuAPI.cs: When hides menu set Wnd to null, it prevents
17512 FindSubItemByCoord to found itens that is not active, also an
17513 cheking added to FindSubItemByCoord to search for items only
17514 in visible popup windows. Fixes #80274.
17516 2006-12-22 Everaldo Canuto <everaldo@simios.org>
17518 * UserControl.cs: Remove MonoTodo and use InternalBorderStyle,
17519 internal property, it be care about change ExStyle.
17521 2006-12-22 Andreia Gaita <avidigal@novell.com>
17523 * ContainerControl.cs: set activeControl for parent forms up the
17524 tree when the new activecontrol is a container.
17525 When validating the active control, if it is a container, also
17526 raise up the validation for it's active control. Fixes #80280
17528 * Control.cs: Add internal property flag and check to prevent
17529 Focus events from getting raised when Select() is called for
17530 a ContainerControl. There are still too many focus events being
17531 raised at the moment though.
17532 Cleaned up the code a bit.
17534 2006-12-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
17536 * Control.cs: Added all missing 2.0 events.and
17537 fixed a couple of corcompare issues.
17538 * TrackBar.cs: Implemented missing 2.0 bits.
17539 * MonthCalendar.cs,
17540 * DateTimePicker.cs,
17541 * MdiClient.cs: Fixed some corcompare issues.
17543 2006-12-21 Jonathan Pobst <monkey@jpobst.com>
17545 * ContextMenuStrip.cs, FlowLayoutPanel.cs, SplitContainer.cs,
17546 SplitterPanel.cs: corecompare work.
17548 2006-12-21 Jonathan Pobst <monkey@jpobst.com>
17550 * ToolStripContainer.cs, ToolStripDropDown.cs, StatusStrip.cs:
17551 Clean up warnings for BackgroundImageChanged and PaddingChanged
17552 events now that they are implemented in Control.cs.
17554 2006-12-21 Jonathan Pobst <monkey@jpobst.com>
17556 * Control.cs: Make sure layout_engine isn't null before using it (2.0).
17558 * TableLayoutControlCollection.cs, TableLayoutPanel.cs, TableLayoutCellPosition.cs,
17559 TableLayoutSettings.cs, TableLayoutStyleCollection.cs: Initial implementation
17560 of TableLayoutPanel and supporting cast.
17562 2006-12-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
17565 - GrabWindow now confines the mouse pointer to the confine window.
17566 - Added Win32ClipCursor and Win32GetClipCursor.
17569 - Added CaptureWithConfine to be able to capture and confine
17572 * InternalWindowManager.cs:
17573 - Call CaptureWithConfine instead of Capture if we're an
17574 MdiChild (fixes #79982).
17576 2006-12-21 Chris Toshok <toshok@ximian.com>
17578 * DataGrid.cs: guard against the initial state of selection, where
17579 selection_start == -1. make sure we only select from index >= 0.
17582 2006-12-21 Chris Toshok <toshok@ximian.com>
17584 * Control.cs: we don't need to be so draconian with
17585 UpdateDistances, and we thusly don't need to call it before
17586 calling PerformLayout in ResumeLayout. Fixes bug #80289.
17588 2006-12-21 Daniel Nauck <dna@mono-project.de>
17591 TextBox.cs: Implemented AutoComplete properties.
17593 2006-12-20 Chris Toshok <toshok@ximian.com>
17595 * DataGridView*.cs: some corecompare work.
17597 2006-12-20 Jackson Harper <jackson@ximian.com>
17599 * XplatUIX11.cs: We need to hide the caret when deleting it,
17600 otherwise you get carets left lying around everywhere.
17601 * TextBoxBase.cs: Kill then redraw the caret when scrolling. This
17602 prevents getting some weird half drawn caret tracers when
17604 * TextControl.cs: Attempt to reduce the number of times we need to
17605 recreate the caret.
17607 2006-12-20 Gert Driesen <drieseng@users.sourceforge.net>
17609 * MonthCalendar.cs: Fixed previous month button. Removed extra tabs.
17611 2006-12-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
17613 * DateTimePicker.cs:
17614 - Implemented missing 2.0 bits.
17615 - Changed some default values to match MS.
17617 2006-12-20 Jackson Harper <jackson@ximian.com>
17619 * TextBoxBase.cs: When changing the font across the document we
17620 can't recalculate after changing each line, since that will cahnge
17622 - PreferredHeight is a little different than i thought.
17623 - When backspacing, move the caret before we do the actual char
17624 delete, because when that delete crosses a wrap boundary the
17625 positional information will change.
17627 2006-12-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
17629 * Control.cs: Added some missing 2.0 bits:
17630 BackgroundImageLayout, BackgroundImageLayoutChanged,
17631 OnPaddingChanged, MouseClick, MouseDoubleClick, PaddingChanged and
17632 add IBindableComponent and IDropTarget implementation.
17634 * MonthCalendar.cs:
17635 - Added all missing 2.0 features:
17636 BackgroundImageLayout, RightToLeftLayout,
17637 OnHandleDestroyed, RightToLeftLayoutChanged,
17638 BackgroundImageLayoutChanged, MouseClick, MouseDoubleClick,
17640 - Rewrote all the BoldDate code, it was completely broken.
17641 - Fixed all the tests (the tests can now be re-enabled, the
17642 problems were not with the tests, but with the control, it was
17645 * DateTimePicker.cs: Changed the location where the
17646 MonthCalendar is shown.
17648 2006-12-19 Chris Toshok <toshok@ximian.com>
17650 * DataGridView.cs: add IDropTarget implementation.
17652 * ToolStripPanel.cs: add IDropTarget implementation.
17654 2006-12-19 Jackson Harper <jackson@ximian.com>
17656 * TextControl.cs: soft now means something different than what it
17657 used to mean, we want to move the caret regardless of whether or
17658 not this break was soft (would we really have wanted the caret
17659 to not move with the break in the old context?)
17660 * TreeView.cs: Make sure we factor in the vert scrollbar when
17661 calculating the horizontal scrollbar's maximum.
17663 2006-12-19 Andreia Gaita <avidigal@novell.org>
17665 * SendKeys.cs: Fix Send() behaviour, clear keys after sending,
17666 check for keywords in alternate casing, close bug #80049.
17668 2006-12-19 Chris Toshok <toshok@ximian.com>
17670 * ToolStripItem.cs: add the implementation of the 4 IDropTarget
17671 methods (which all do nothing).
17673 * IDropTarget.cs: add the 4 missing methods.
17675 2006-12-19 Chris Toshok <toshok@ximian.com>
17677 * TableLayoutRowStyleCollection.cs: corcompare work.
17679 * TableLayoutSettings.cs: same.
17681 * TableLayoutStyle.cs: same.
17683 * TableLayoutColumnStyleCollection.cs: same.
17685 2006-12-19 Jonathan Pobst <monkey@jpobst.com>
17687 * ColumnStyle.cs, RowStyle.cs, TableLayoutStyle.cs: Plumbing for
17688 TableLayoutPanel I've had in my local tree for way too long.
17690 2006-12-19 Miguel de Icaza <miguel@novell.com>
17692 * TableLayoutSettings.cs: Finish the public API (still needs all
17693 the logic to update on changes).
17695 * TableLayoutPanelCellPosition.cs: new file.
17697 * TableLayoutRowStyleCollection.cs,
17698 TableLayoutColumnStyleCollection, TableLayoutStyle.cs,
17699 TableLayoutSettings.cs: Track the final 2.0 table api.
17701 2006-12-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
17703 * ColumnHeader.cs: Add Tag, Name, ImageKey, ImageIndex,
17704 and Image List 2.0 members for ColummnHeader.
17705 * ListView.cs: Add key-related 2.0 methods for
17706 ColumnHeaderCollection.
17708 2006-12-19 Gert Driesen <drieseng@users.sourceforge.net>
17710 * ListViewItem.cs: Changed AddRange overloads to match MS: throw
17711 ArgumentNullException if items argument is null. Ignore null item in
17712 arrays. Removed extra tabs.
17714 2006-12-19 Gert Driesen <drieseng@users.sourceforge.net>
17716 * MonthCalendar.cs: Fixed InvalidCastException.
17718 2006-12-19 Jackson Harper <jackson@ximian.com>
17720 * TextControl.cs: Don't increment the position here.
17721 - When calculating char positions only add in the line break size
17722 for hard line breaks.
17724 2006-12-19 Andreia Gaita <avidigal@novell.org>
17726 * SendKeys.cs: Changed some things to match ms.net behaviour
17727 when parsing shifted capital letters.
17729 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32, XplatUIOSX:
17730 Add window handle as parameter to SendInput. X11 needs the
17731 window handle, and the handle being passed to it in the keys
17732 queue is the active control handle (which windows needs), not
17735 XplatUIX11.cs, XplaUIX11-new.cs, X11Display: Implement SendInput
17736 to support SendKeys on X.
17738 * X11Keyboard: Implement helper method to lookup a linux keycode
17739 given the virtual keycode. Added table of keycode-2-virtualkey
17740 values to support this.
17742 2006-12-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
17744 * ListView.cs: Add support for SelectedIndexCollection
17745 and SelectedItemCollection 2.0 methods. Implement support
17747 * ListViewItem.cs: Add support for ListViewSubItemCollection
17748 2.0 methods. Also, fix an incorrect behavior of AddRange method
17749 (it shouldn't call Clear).
17750 * ThemeWin32Classic.cs: Support for ListView.ImageKey 2.0 property.
17752 2006-12-19 Jackson Harper <jackson@ximian.com>
17755 * TextBoxBase.cs: New args for FormatText
17756 * TextControl.cs: Rewrote the main drawing method, this version
17757 feels a little easier to understand and debug to me. Hopefully it
17758 does to others also
17759 - Fix FormatText to OR in the new formating values. Added
17760 FormatSpecified param, basically this works in the same way as
17761 BoundsSpecified in Control.
17762 - Set the caret properties when the caret is positioned.
17763 - When wrapping text make sure that we calculate the width of the
17765 - when calculating alignments we might have wrapped down to the
17766 next line, so don't search for an individual tag, search for the
17768 - We need to invalidate the selection area when we replace the
17771 2006-12-19 Daniel Nauck <dna@mono-project.de>
17773 * Application.cs: add Restart () 2.0 support
17775 2006-12-18 Everaldo Canuto <everaldo@simios.org>
17777 * MenuItem.cs: Invalidate menu item rectangle after change Enable
17778 property. Fixes #80268.
17780 2006-12-18 Everaldo Canuto <everaldo@simios.org>
17782 * MenuAPI.cs: Dont trigger select event when closes top menu
17783 item. Fixes #80270.
17785 2006-12-18 Everaldo Canuto <everaldo@simios.org>
17787 * MenuAPI.cs: When you click on menuitem only trigger onselect
17788 event for top menu itens. Fixes #80271.
17790 2006-12-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
17792 * MdiWindowManager.cs: Make IconicBounds depend on
17793 the bottom of MdiClient, not the top (fixes #80267)
17795 2006-12-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
17797 * MdiClient.cs: Added missing 2.0 attribute
17799 2006-12-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
17801 * ListViewItem.cs: Add Name and Tag 2.0 properties, as well
17802 as IndexOfKey, ContainsKey, RemoveByKey and indexer 2.0.
17804 2006-12-18 Everaldo Canuto <everaldo@simios.org>
17806 * MenuAPI.cs: Fix click when menuitem is not popup,
17807 this regression was caused by last commit (#80272).
17809 2006-12-17 Everaldo Canuto <everaldo@simios.org>
17811 * MenuAPI.cs: When a non-toplevel menuitem is clicked dont
17812 fire click event or close menu. Fixes #80272.
17814 2006-12-17 Daniel Nauck <dna@mono-project.de>
17816 * ListViewHitTestInfo.cs: add
17818 2006-12-17 Daniel Nauck <dna@mono-project.de>
17820 * ButtonBase.cs: Added FlatButtonAppearance 2.0 support.
17821 * FlatButtonAppearance.cs: add
17822 * DockingAttribute.cs: add
17824 2006-12-17 Chris Toshok <toshok@ximian.com>
17826 * DataGrid.cs: hook up MetaDataChanged event on the list manager,
17827 and rebind our columns when it does - this way, if you make
17828 changes to the DataTable (or set the Table attribute on a DataView
17829 after setting it as the DataGrid's DataSource, the changes are
17830 made visible.) Fixes bug #80107.
17832 2006-12-17 Daniel Nauck <dna@mono-project.de>
17834 * ListViewGroup.cs: add internal Location property for layouting.
17835 * Theme.cs: add abstract ListViewGroupHeight function.
17836 * ThemeWin32Classic.cs: implement ListViewGroupHeight function.
17838 2006-12-16 Andreia Gaita <avidigal@novell.com>
17840 * TabControl.cs: Fixed checks for NET_2_0-specific exceptions.
17841 Added reset of selected index to 0 when adding first tab page.
17844 * NumericUpDown.cs: Fix NET_2_0 check
17846 2006-12-16 Daniel Nauck <dna@mono-project.de>
17848 * ListViewGroup.cs: fixed DefaultValueAttribute value
17850 2006-12-16 Daniel Nauck <dna@mono-project.de>
17852 * AutoCompleteStringCollection.cs: add new AutoCompleteStringCollection 2.0 class
17854 2006-12-15 Miguel de Icaza <miguel@novell.com>
17856 * Button.cs, ComboBox.cs, ScrollBar.cs, UserControl.cs,
17857 TextBoxBase.cs, ListView.cs, ContainerControl.cs,
17858 ScrollableControl.cs: Add a handful of methods that are
17861 2006-12-15 Chris Toshok <toshok@ximian.com>
17863 * XplatUIWin32.cs: initial implementation of the Reversible
17864 drawing functions. there are some problems. DrawReversibleFrame
17865 doesn't seem to work at all for Dashed FrameStyle, and in the
17866 Thick case there are drawing errors at the corners (we probably
17867 need to bind Rectangle instead of doing moveto/lineto's.)
17869 2006-12-16 Andreia Gaita <avidigal@novell.com>
17871 * SendKeys.cs: Implemented. SendKeys uses a new method in XPlatUI, SendInput,
17872 to send blocks of key messages. Send accumulates keys to send with Flush,
17873 while SendWait sends all keys immediately.
17875 * XplaUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
17876 XplatUIX11.cs, XplatUIX11-new.cs:
17877 - Define SendInput and stubs for OSX and X11, implements Win32 with a call
17878 to Win32 SendInput.
17879 - Added INPUT support structures to XplatUIWin32 for Win32SendInput
17881 Tests: It seems ms.net is hooking the keyboard to implement this, so doing unit
17882 testing for ms.net on this class is very tricky, as the tests run too fast
17883 to allow the hook to release, essentially freezing the keyboard and the
17884 test. So, barring a win32 miracle, they'll be commited in the ms-notworking
17887 2006-12-16 Daniel Nauck <dna@mono-project.de>
17889 * Padding.cs: fixed serialization compability to MS ("_var" field names),
17890 added missing attributes.
17892 2006-12-15 Daniel Nauck <dna@mono-project.de>
17894 * ListViewGroup.cs: Added missing attributes.
17895 * ListViewGroupCollection.cs: Added missing attributes.
17897 2006-12-15 Daniel Nauck <dna@mono-project.de>
17899 * ListViewItem.cs: fixed ListViewSubItem text property.
17901 2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
17903 * Control.cs: Added missing 2.0 attributes
17905 2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
17907 * MdiClient.cs: Added missing 2.0 attribute.
17908 * MonthCalendar.cs: Added some missing 2.0 attributes
17911 2006-12-15 Daniel Nauck <dna@mono-project.de>
17913 * ListView.cs: implemented ListViewItemCollection Add 2.0 support.
17915 2006-12-15 Jonathan Pobst <monkey@jpobst.com>
17917 * MainMenu.cs: Add the new 2.0 constructor to help out people
17918 using the MainMenu in VS2005.
17920 2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
17922 * MdiChildContext.cs: Removed it, no longer used.
17923 * MdiClient.cs: Added missing 2.0 attributes.
17925 2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
17927 * InternalWindowManager.cs: Fix a NullRef with previous
17928 changes for toolwindows.
17930 2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
17933 - Added AfterTopMostControl to allow for certain controls
17934 to always stay on top when normal controls are brought to
17938 - (DrawInversibleRectangle): Get window rectangle from Win32
17939 in stead of from control, since Win32 doesn't calculate
17940 screen coords correctly from control's Location if it
17941 have docked siblings.
17943 * MdiWindowManager.cs:
17944 - Correct the control menu popup location when clicked on
17945 the maximized form icon. (fixes #80223.1)
17946 - Don't show moving rectangle if mouse hasn't moved from
17947 the original clicked point.
17948 - Removed FormGotFocus handler (not used).
17949 - Calculate the control buttons location from the main
17950 window's size and not client size (fixes #79770).
17951 - Form is now closed when the form icon is double-clicked
17953 - Correct NCCalcSize numbers a little bit (fixes #80223.2)
17955 * InternalWindowManager.cs:
17956 - Moved some MDI-only methods to MdiWindowManager.
17957 - Removed unused properties and methods.
17958 - Unified method naming for methods handling wm messages.
17959 - Moved all message handling to seperate methods for
17962 * ThemeWin32Classic.cs:
17963 - DrawManagedWindowDecorations now draws the title bar
17964 with a gradient brush.
17965 - Add a CPDrawButtonInternal that allows us to specify
17966 light, normal and dark colors for the buttons (control
17967 buttons for MDI children were drawn with the same light
17968 color as the background, therefore loosing the 3D effect).
17971 - Add a CapturedControl property that is used to
17972 determine the control to resize (defaults to parent).
17973 Needed for MdiClient, since its SizeGrip's parent is
17974 MdiClient, but the control to resize is the main form.
17977 - Set SizeGrip's CapturedControl to the main form in order
17978 to resize the main form and not the MdiClient.
17979 - Override AfterTopMostControl to leave the scrollbars
17982 2006-12-15 Daniel Nauck <dna@mono-project.de>
17984 * ListView.cs: fixed ListViewItemCollection AddRange and
17985 implemented ListViewItemCollection AddRange 2.0 support.
17987 2006-12-15 Daniel Nauck <dna@mono-project.de>
17989 * ListViewGroup.cs: Add.
17990 * ListViewGroupCollection.cs: Add
17991 * ListView.cs: Add ListViewGroup (Group) and ShowGroups 2.0 support.
17992 * ListViewItem.cs: Add ListViewgroup (Group), ListViewGroups constructors and
17993 stub for ImageKey 2.0 support.
17995 2006-12-14 Mike Kestner <mkestner@novell.com>
17997 * ListView.cs: add text padding to the autocalculation for columns
17998 of width -2. Fixes #80207.
18000 2006-12-14 Mike Kestner <mkestner@novell.com>
18002 * ListView.cs: add some index guarding for partial row navigation
18003 logic. Fixes #80250.
18005 2006-12-14 Mike Kestner <mkestner@novell.com>
18007 * ListView.cs: throw ArgumentExceptions when parented ListViewItems
18008 are added or inserted to the collection. Fixes #81099.
18010 2006-12-13 Everaldo Canuto <everaldo@simios.org>
18012 * MenuAPI.cs: Closes menu when right click out side of popup
18013 it fix problem in ContextMenu and MainMenu. Fixes #80252.
18015 2006-12-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
18017 * ListViewItem.cs: Fix dumb error.
18019 * ListView.cs: Add Find and ContainsKey methods in
18020 ListViewItemCollection, and also return true for IsReadOnly
18021 and IsFixedSize (changes for 2.0).
18023 2006-12-13 Gert Driesen <drieseng@users.sourceforge.net>
18025 * Control.cs: Allow Region to be set to null.
18027 2006-12-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
18029 * MdiWindowManager.cs: Remove unused (commented out) code.
18030 * Form.cs: When the MdiChild is maximized, the form needs
18031 WM_NCMOUSELEAVE, so request it.
18032 * InternalWindowManager.cs:
18033 - Added tooltips to control buttons.
18034 - Removed duplicated control button handling code.
18035 - Removed unused (commented out) code.
18037 2006-12-12 Everaldo Canuto <everaldo@simios.org>
18039 * MenuAPI.cs: Set cursor to default in popup menus, a XplatUI.SetCursor
18040 was used because we must set cursor without trigger ChangeCursor event
18041 and without change Cursor control property. Fixes #79963.
18043 2006-12-12 Andreia Gaita <avidigal@novell.com>
18045 * Control.cs: Check if Region setter value is null, and ignore
18047 2006-12-12 Jackson Harper <jackson@ximian.com>
18049 * TextControl.cs: We were almost always drawing one more line then
18050 needed, since the GetLineByPixel will return the last line found
18051 at that pixel. In most cases though, we were invalidating up to
18052 the junction between two lines.
18053 - Improve debug code.
18055 2006-12-12 Chris Toshok <toshok@ximian.com>
18057 * XplatUI.cs: add static DrawReversibleFrame, DrawReversibleLine,
18058 and FillReversibleRectangle.
18060 * XplatUIDriver.cs: add abstract DrawReversibleFrame, DrawReversibleLine,
18061 and FillReversibleRectangle.
18063 * XplatUIWin32.cs: add stubs which do nothing for
18064 DrawReversibleFrame, DrawReversibleLine, and
18065 FillReversibleRectangle.
18067 * XplatUIOSX.cs: add stubs which raise NIE for
18068 DrawReversibleFrame, DrawReversibleLine, and
18069 FillReversibleRectangle.
18071 * XplatUIX11.cs: add working implementation for
18072 DrawReversibleFrame, DrawReversibleLine, and
18073 FillReversibleRectangle.
18075 * ControlPaint.cs: implement DrawReversibleFrame,
18076 DrawReversibleLine, and FillReversibleRectangle, by calling into
18077 the appropriate XplatUI method.
18079 2006-12-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
18081 * Form.cs: Make MdiClient have the focus even if it's
18082 not selectable, since it should receive WM_KEY* and WM_MOUSE
18083 messages. Fixes #79907.
18085 2006-12-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
18087 * Hwnd.cs: Save the CreateParams.ExStyle so that it can be
18088 queried after the window is created.
18090 * XplatUIX11.cs: Added SendParentNotify to implement
18091 WM_PARENTNOTIFY logic. Fixes #79965.
18093 * Control.cs: Added MakeParam.
18095 2006-12-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
18097 * MdiClient.cs: Resume Layout before setting window
18098 states (fixes #80201).
18100 2006-12-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
18102 * MenuAPI.cs: Deselect a menu item after performing
18103 the click (fixes #80197).
18105 2006-12-11 Jackson Harper <jackson@ximian.com>
18107 * TextBoxBase.cs: We need to cap this value, since Maximum -
18108 ViewPortHeight can be less than zero.
18109 - Only do selection with the left mouse button.
18110 * TextBox.cs: Don't tell the world that we have a context menu.
18111 * Control.cs: New method so that we can control whether or not the
18112 context menu is visible outside MWF.
18114 2006-12-11 Everaldo Canuto <everaldo@simios.org>
18116 * ToolBarButton.cs: Fix text positon.
18118 2006-12-11 Miguel de Icaza <miguel@novell.com>
18120 * ProgressBar.cs (MarqueeAnimationSpeed): Add stub.
18122 * Control.cs (DoubleBuffered): Add implementation.
18124 * Application.cs (OpenForms): Add.
18126 2006-12-11 Jonathan Pobst <monkey@jpobst.com>
18128 * Form.cs: Use opacity instead of Opactiy to determine if we need
18129 to set the WS_EX_LAYERED bit. [Fixes bug #80185]
18131 2006-12-11 Jonathan Pobst <monkey@jpobst.com>
18133 * Control.cs: Fix NRE if Control.Site was set to null.
18135 2006-12-11 Chris Toshok <toshok@ximian.com>
18137 * Control.cs: ControlCollection.Remove should return if the arg is
18138 null, and ControlCollection.SetChildIndex should raise a ANE.
18140 2006-12-11 Gert Driesen <drieseng@users.sourceforge.net>
18142 * Control.cs: Verify value set for Dock property. Code formatting
18145 2006-12-11 Jackson Harper <jackson@ximian.com>
18147 * TextControl.cs: Draw the caret and the selection when a flag is
18149 * TextBoxBase.cs: We want to draw the caret and the selection for
18150 TextBox but not for TextBoxBase.
18151 - If the window is resized and scrolling is no longer needed (the
18152 whole doc is visible) set the scroll position to zero.
18153 - The default SelectWord (the one TextBox uses) should move the
18154 caret to the end of the word.
18155 - SelectAll moves the caret to the end of the selection.
18156 * TextBox.cs: We don't selectall on focus, we just do it when the
18157 control is created.
18159 2006-12-11 Mike Kestner <mkestner@novell.com>
18161 * ComboBox.cs: stub in a 2.0 override for ProcessKeyEventArgs.
18163 2006-12-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
18165 * ListView.cs: Add Insert, IndexOfKey, RemoveByKey and indexer
18167 * ListViewItem.cs: Add Name 2.0 property.
18169 2006-12-11 Andreia Gaita <avidigal@novell.com>
18171 * TabControl.cs: Set visibility on selected or default tab
18172 when tabcontrol handle is created, so that it's contents
18173 actually show up (duh). Fixes #80193
18174 Don't redraw the control if there is no handle created, as
18175 the selected index might be completely invalid. Added some tests
18178 2006-12-11 Everaldo Canuto <everaldo@simios.org>
18180 * ToolBar.cs: Uses maximun width and height of all buttons as
18181 button rectangle when ButtonSize specified, it looks strange but
18182 is what happens in Win32. Fixes #80189.
18184 2006-12-11 Jackson Harper <jackson@ximian.com>
18186 * TextControl.cs: Need to track undo levels ourself, since
18187 compound actions will mess them up.
18189 2006-12-10 Andreia Gaita <avidigal@novell.com>
18191 * TabControl.cs: Raise SelectedIndexChanged for 1.1 if the
18192 SelectedIndex value is changed (even if it's not valid).
18193 Reset SelectedIndex to 0 when the handle is created and if
18194 the current index is invalid.
18195 Fixes SelectdeIndex unit tests and #80128
18197 2006-12-08 Chris Toshok <toshok@ximian.com>
18199 * DataGrid.cs (set_CurrentCell): because EnsureCellVisibility
18200 calls EndEdit, it needs to be called before we set current_cell to
18201 its new value. Otherwise, we end up committing the value in the
18202 textbox to the new cell as well. Fixes bug #80160.
18204 2006-12-08 Chris Toshok <toshok@ximian.com>
18206 * Form.cs (set_CancelButton): if the button's DialogResult is
18207 None, set it to Cancel. Fixes bug 80180.
18209 2006-12-08 Jackson Harper <jackson@ximian.com>
18211 * TextBoxBase.cs: Ugh, ClientSize can be 0,0 sometimes, so we need
18212 to watch ourselves when setting the canvas size and setting the
18215 2006-12-08 Chris Toshok <toshok@ximian.com>
18217 * DataGrid.cs: comment out the two MakeTransparent calls for the
18218 time being so people using trunk (and not 1.2.2) on windows can
18219 actually use the datagrid. This deals with bug #80151.
18221 2006-12-08 Jonathan Pobst <monkey@jpobst.com>
18223 * ThemeWin32Classic.cs: Change ButtonBase_DrawImage to use the
18224 Graphics.DrawImage (image, int, int, int, int) overload instead
18225 of Graphics.DrawImage (image, int, int). GDI+ can't figure out
18226 the dpi difference and was blurring images it drew.
18229 2006-12-08 Chris Toshok <toshok@ximian.com>
18231 * ThemeWin32Classic.cs (DataGridPaintRows): handle case where
18232 rowcnt is 0 (such as with an empty datasource), and make sure we
18233 initialize not_usedarea.Y to cells.Y, so we don't draw over the
18234 other areas (caption, parent row, etc, etc). Fixes bug #80095.
18236 2006-12-08 Chris Toshok <toshok@ximian.com>
18238 * DataGridColumnStyle.cs (SetDataGrid): don't try to access a null
18241 2006-12-08 Chris Toshok <toshok@ximian.com>
18243 [ Fixes bug #80167 ]
18245 * ThemeWin32Classic.cs: don't draw the image if the button's flat
18246 style is FlatStyle.System.
18248 * ButtonBase, ThemeClearlooks.cs, ThemeGtk.cs, ThemeNice.cs: make
18249 ButtonBase.flat_style private, and switch uses of it to the public
18252 2006-12-08 Chris Toshok <toshok@ximian.com>
18254 [ Fixes bug #80121 ]
18256 * ThemeWin32Classic.cs: center the caption text in the datagrid
18259 * DataGrid.cs: lessen the amount we add to the caption height from
18260 6 to 2. 6 was making it huge.
18262 2006-12-08 Andreia Gaita <avidigal@novell.com>
18264 * UpDownBase: Handle MouseWheel call directly instead of capturing
18265 the inner textbox's OnMouseWheel. Fixes #80166
18267 2006-12-08 Jackson Harper <jackson@ximian.com>
18269 * TextControl.cs: We need to invalidate the textbox when we empty
18270 it (how had this not been discovered before?)
18272 2006-12-08 Jackson Harper <jackson@ximian.com>
18274 * TextBoxBase.cs: Reworked the mouse down code so I could get it
18275 to behave like MS, we now ignore the eventargs.Click and just
18276 track state ourself, which we were already doing anyways.
18277 - Constrain the double click handler to the double click size.
18279 2006-12-08 Chris Toshok <toshok@ximian.com>
18281 * DataGrid.cs: the mousewheel code shouldn't try to scroll in a
18282 direction if that scrollbar isn't shown. fixes bug #80158.
18284 2006-12-08 Andreia Gaita <avidigal@novell.com>
18286 * NumericUpDown.cs: Update value on getter. Fixes #79950
18288 2006-12-08 Chris Toshok <toshok@ximian.com>
18290 * MenuItem.cs: add back in the event cloning code. I didn't know
18291 how to do it in the face of the EventHandlerList work i'd done
18292 last week. Fixes bug #80183.
18294 2006-12-08 Jonathan Pobst <monkey@jpobst.com>
18296 * Control.cs: Add an invalidate to the BackgroundImage setter.
18299 2006-12-07 Jonathan Pobst <monkey@jpobst.com>
18301 * ToolStrip*: Add some small properties reported by MoMA, fix event
18302 firing and default properties based off of unit tests, and add some
18303 attributes based off of the class status page.
18305 2006-12-07 Jackson Harper <jackson@ximian.com>
18307 * TextBoxBase.cs: Take HideSelection into account when determining
18308 whether or not to show the selection.
18309 * RichTextBox.cs: After inserting the RTF into the document move
18310 the cursor to the beginning of the document.
18312 2006-12-07 Jonathan Pobst <monkey@jpobst.com>
18314 * Control.cs: Remove static ArrayList "controls" which maintained
18315 a reference to every control created.
18316 * Application.cs: Create a static FormCollection to maintain a reference
18317 to every form created. Use it in places that formerly enumerated through
18318 the controls one looking for forms.
18319 * Form.cs: Add and remove self from above FormCollection.
18321 2006-12-07 Alexander Olk <alex.olk@googlemail.com>
18323 * MimeIcon.cs: gdk_pixbuf_save_to_buffer is part of libgdk-pixbuf,
18324 not libgdk (though it makes me wonder why I didn't have any
18327 2006-12-07 Chris Toshok <toshok@ximian.com>
18329 [ you had to know this was coming after that last commit...]
18331 * XplatUIX11.cs: implement the 3 Offscreen functions in terms of
18332 XPixmaps (CreateOffscreenDrawable maps to XCreatePixmap,
18333 DestroyOffscreenDrawable to FreePixmap, and BlitFromOffscreen to
18336 2006-12-07 Chris Toshok <toshok@ximian.com>
18338 * XplatUI.cs: add 3 calls (CreateOffscreenDrawable,
18339 DestroyOffscreenDrawable, and BlitFromOffscreen) that encompass
18340 all the behavior we need for double buffering.
18342 * XplatUIDriver.cs: implement the 3 double buffer methods using a
18343 client side Bitmap, just like the old Control-based double buffer
18344 code did. The methods are virtual, so each XplatUI driver
18345 subclass can replace the implementation to use a faster, platform
18348 * Control.cs: make use of the 3 Offscreen XplatUI calls in the
18349 double buffer code, and clean things up a bit in the process.
18351 2006-12-06 Chris Toshok <toshok@ximian.com>
18353 * Control.cs: reindent WndProc.
18355 2006-12-06 Chris Toshok <toshok@ximian.com>
18357 [ I wanna be like BenM when I grow up ]
18359 * Hwnd.cs: create a single static Graphics object on the static
18360 Bitmap we create. use this for our text measurements.
18362 * Control.cs (DeviceContext): stop using the backbuffer's dc_mem.
18363 This was causing us to allocate a backbuffer for every control,
18364 even when it wasn't flagged as double buffered. Instead use the
18365 single graphics instance. This might have implications for
18366 multithreaded applications. If we run into problems we can switch
18367 to creating 1 Graphics per control, on the static Hwnd bitmap.
18369 this change nets us a 7M savings in private dirty mappings when
18370 running FormsTest.exe.
18372 2006-12-06 Chris Toshok <toshok@ximian.com>
18374 * ListView.cs: the BackgroundImage override is just to set
18375 attributes. chain up to base.BackgroundImage.
18377 * RichTextBox.cs: same.
18379 * ToolBar.cs: same, but we need to also redraw the toolbar when it
18380 changes, so instead a handler for BackgroundImageChanged.
18382 * Control.cs: make background_image private.
18384 2006-12-06 Chris Toshok <toshok@ximian.com>
18386 * ScrollBar.cs: change the assignment of cursor to Cursor. not
18387 sure we even need this assignment, but roll with it for now.
18389 * Control.cs: make the cursor field private.
18391 2006-12-06 Chris Toshok <toshok@ximian.com>
18393 * Form.cs: we don't need to explicitly set ImeMode to
18394 ImeMode.NoControl - that's a natural fallout of Control.ImeMode's
18395 behavior in the face of ImeMode.Inherit.
18397 * ButtonBase.cs: change DefaultImeMode to ImeMode.Disable, and
18398 change the ctor's assignment to use ImeMode instead of ime_mode.
18400 * Control.cs (get_ImeMode): don't assume DefaultImeMode ==
18401 ImeModeInherit. Only check for the parent's imemode (and return
18402 NoControl if there is no parent) if ime_Mode == ImeMode.Inherit.
18403 This fixes the button unit test, which sets both ImeMode and
18404 DefaultImeMode to ImeMode.Disable.
18406 also make the ime_mode field private.
18408 2006-12-06 Chris Toshok <toshok@ximian.com>
18410 * Control.cs: make control_style private.
18412 * TextBoxBase.cs: fix the HandleClick override. it was explicitly
18413 setting the styles to true, then setting them to false instead of
18414 reverting to their previous values.
18416 also, call SetStyle on the scrollbars instead of using
18417 control_style directly.
18419 2006-12-06 Jonathan Pobst <monkey@jpobst.com>
18421 * FormCollection.cs: Implement. [2.0]
18423 2006-12-06 Chris Toshok <toshok@ximian.com>
18425 * Control.cs: make tab_stop private.
18427 * Label.cs: set TabStop, not tab_stop. reformat some event
18428 add/remove methods to make them more compact.
18430 2006-12-06 Chris Toshok <toshok@ximian.com>
18432 * RadioButton.cs: fix TabStop handling.
18434 2006-12-06 Chris Toshok <toshok@ximian.com>
18436 * TextBox.cs: remove the explicit assignments to has_focus.
18439 * ButtonBase.cs: remove the assignment to has_focus. Control will
18442 2006-12-06 Chris Toshok <toshok@ximian.com>
18444 * ButtonBase.cs: remove all uses of is_enabled from this code.
18445 it's always true when any of the code containing the checks is
18448 2006-12-06 Chris Toshok <toshok@ximian.com>
18450 * ImageList.cs: reinstate the ShouldSerialize*/Reset* methods,
18451 with different semantics (some are present in both 1.1 and 2.0
18452 profiles) so that we match MS's behavior in our unit tests.
18454 2006-12-06 Jackson Harper <jackson@ximian.com>
18456 * TextControl.cs: Make this operation undoable.
18457 * TextBoxBase.cs: Factor the border width into the preferred
18459 - implement Modified as per the spec.
18461 2006-12-06 Chris Toshok <toshok@ximian.com>
18463 * Timer.cs, Control.cs, Menu.cs: make control_tag private.
18465 2006-12-06 Chris Toshok <toshok@ximian.com>
18467 * Control.cs: make right_to_left and context_menu fields private.
18469 2006-12-06 Chris Toshok <toshok@ximian.com>
18471 * AccessibleObject.cs, Control.cs, XplatUIX11GTK.cs,
18472 XplatUIX11.cs, Form.cs, RadioButton.cs, ScrollableControl.cs: make
18473 Control.child_controls private. switch all uses over to
18476 2006-12-06 Chris Toshok <toshok@ximian.com>
18478 * System.Windows.Forms/GroupBox.cs,
18479 System.Windows.Forms/AccessibleObject.cs,
18480 System.Windows.Forms/ErrorProvider.cs,
18481 System.Windows.Forms/Control.cs,
18482 System.Windows.Forms/UpDownBase.cs,
18483 System.Windows.Forms/ScrollBar.cs,
18484 System.Windows.Forms/DateTimePicker.cs,
18485 System.Windows.Forms/Form.cs, System.Windows.Forms/Label.cs,
18486 System.Windows.Forms/ToolTip.cs,
18487 System.Windows.Forms/RadioButton.cs,
18488 System.Windows.Forms/LinkLabel.cs,
18489 System.Windows.Forms/Splitter.cs,
18490 System.Windows.Forms/TextBoxBase.cs,
18491 System.Windows.Forms/ToolStripTextBox.cs,
18492 System.Windows.Forms/ContainerControl.cs,
18493 System.Windows.Forms/ThemeWin32Classic.cs,
18494 System.Windows.Forms/SizeGrip.cs,
18495 System.Windows.Forms/ToolStripDropDown.cs,
18496 System.Windows.Forms/ScrollableControl.cs: Make Control.parent
18497 private. switch all uses over to Control.Parent.
18499 2006-12-06 Chris Toshok <toshok@ximian.com>
18501 * RichTextBox.cs: don't assign to has_focus in GotFocus/LostFocus.
18502 Control does this before calling emitting these events.
18504 * TabControl.cs: same.
18506 * ThemeWin32Classic.cs: use Control.ClientRectangle instead of
18507 Control.client_rect.
18509 * ButtonBase.cs: use the ClientSize property instead of the
18512 * ScrollableControl.cs: same.
18514 * Control.cs: another pass at making properties private. also,
18515 move the initialization of tab_stop to the ctor.
18517 2006-12-05 Andreia Gaita <avidigal@novell.com>
18519 * TabControl.cs: Let the selected index be set freely if the
18520 control handle is not yet created.
18522 2006-12-05 Jonathan Pobst <monkey@jpobst.com>
18524 * Control.cs: Revert dist_top, dist_right, and dist_bottom to
18525 internal until I can rewrite DefaultLayout.
18526 * ToolStrip.cs: Fix build error and some general cleaning.
18527 * ToolStripControlHost.cs, SplitterPanel.cs, DataGridView.cs:
18528 Fix build errors caused by making some of Control's fields private.
18530 2006-12-05 Jackson Harper <jackson@ximian.com>
18532 * TextControl.cs: Redo Insert a little so that it use IndexOf
18533 instead of Split, this prevents it from messing up on things like
18534 \n\n\n. Also more effecient since the split array doesn't need to
18536 * TextBoxBase.cs: AppendText doesnt handle multiline and non
18537 multiline text differently, this is the first of many fixes that
18538 will make multiline/non-multiline the same thing as far as the
18539 TextBoxBase is concerned.
18540 - Don't split the text and insert lines, this can lose some line
18541 endings (like is the last line a soft or hard break). Instead use
18543 - Fix an off by one when combining all the lines in the Text
18545 - Remove separate multiline handling from the Text getter/setter.
18547 2006-12-05 Chris Toshok <toshok@ximian.com>
18549 * ButtonBase.cs: a few changes:
18551 - don't reinitialize internal Control fields in the ctor when they
18552 have the same values as Control sets them.
18554 - don't set has_focus in OnGotFocus/OnLostFocus. Control does
18555 this before calling those methods.
18557 - we don't need to call Refresh for anything. use Invalidate
18560 - OnEnabledChanged doesn't need to redraw at all - Control.cs
18561 calls Refresh in its OnEnabledChanged.
18563 - several of the events we were registered for in the ctor to
18564 redraw ourselves already include calls to Invalidate in the
18565 property setters that raise the events. remove the extra
18568 - reformat a switch statement that was 83274658 columns wide.
18570 2006-12-05 Mike Kestner <mkestner@novell.com>
18572 * ComboBox.cs: fix a unit test regression from a TextBox
18573 SelectionLength return of -1 when there's no selection.
18575 2006-12-05 Chris Toshok <toshok@ximian.com>
18577 * Control.cs, Button.cs, ThemeGtk.cs, Form.cs, ListView.cs,
18578 ThemeWin32Classic.cs, SizeGrip.cs, ToolBar.cs: first pass at
18579 cleaning up some of the internal Control fields being used by
18582 2006-12-05 Mike Kestner <mkestner@novell.com>
18584 * ComboBox.cs: fix some Simple mode regressions. Set Visible on the
18585 listbox after AddImplicit calls since it defaults to hidden. Add a
18586 hack to preserve requested heights across DropDownStyle changes.
18588 2006-12-05 Jonathan Pobst <monkey@jpobst.com>
18590 * PropertyGrid.cs: Hide FindFirstItem method from public API.
18592 2006-12-05 Chris Toshok <toshok@ximian.com>
18594 * DataGridView.cs: fix compiler warnings.
18596 * PrintControllerWithStatusDialog.cs: same.
18598 * ToolBar.cs: same.
18600 * FolderBrowserDialog.cs: same.
18602 * Splitter.cs: same.
18604 * DataGridViewComboBoxCell.cs: same.
18606 * XplatUIWin32.cs: same.
18608 * PictureBox.cs: same.
18610 * Win32DnD.cs: same.
18612 * PageSetupDialog.cs: same.
18614 * FileDialog.cs: same.
18616 * PrintDialog.cs: same.
18618 * DataGridTextBoxColumn.cs: same.
18620 * DrawTreeNodeEventArgs.cs: same (and fix corcompare)
18622 2006-12-05 Chris Toshok <toshok@ximian.com>
18624 * TextBox.cs, CheckedListBox.cs, MonthCalendar.cs, Menu.cs,
18625 MainMenu.cs, ListView.cs, LabelEditTextBox.cs, ToolBar.cs: more
18626 System.ComponentModel.EventHandlerList work.
18628 2006-12-05 Jonathan Chambers <joncham@gmail.com>
18630 * DrawTreeNodeEventArgs.cs: Added.
18632 2006-12-05 Rolf Bjarne Kvinge <RKvinge@novell.com>
18634 * InternalWindowManager.cs: Remove an unused field.
18636 2006-12-05 Rolf Bjarne Kvinge <RKvinge@novell.com>
18638 * InternalWindowManager.cs:
18639 - Save the point where the title bar is clicked.
18641 * MdiWindowManager.cs:
18642 - Only allow moving of the window as long as the
18643 clicked point on the title bar does not get out of
18644 MdiClient's rectangle. Fixes #79982.
18647 - Added Horizontal/VerticalScrollbarVisible.
18648 - Simplified the scrollbar sizing algorithm.
18649 - Cache the difference in scrolled value in
18650 H/VBarValueChanged and move the calculation out
18653 2006-12-05 Rolf Bjarne Kvinge <RKvinge@novell.com>
18655 * Control.cs: Make the Console.WriteLine in WndProc
18658 2006-12-05 Chris Toshok <toshok@ximian.com>
18660 * ToolStripManager.cs, ToolStripButton.cs,
18661 ToolStripContentPanel.cs, ToolStripComboBox.cs, ToolStrip.cs,
18662 ToolStripMenuItem.cs, ToolStripItem.cs, ToolStripControlHost.cs,
18663 ToolStripSplitButton.cs, ToolStripSeparator.cs,
18664 ToolStripRenderer.cs, ToolStripDropDownItem.cs,
18665 ToolStripProgressBar.cs, ToolStripContainer.cs,
18666 ToolStripTextBox.cs, ToolStripPanel.cs, ToolStripDropDown.cs: move
18667 to using System.ComponentModel.EventHandlerList.
18669 2006-12-04 Chris Toshok <toshok@ximian.com>
18671 * LinkLabel.cs: fix up compiler warnings.
18673 * TableLayoutSettings.cs: same.
18675 * TreeView.cs: same.
18677 * ToolBar.cs: same.
18679 * TabControl.cs: same.
18681 * RichTextBox.cs: same.
18683 * ListViewItem.cs: same.
18685 * PropertyGrid.cs: same.
18687 * DataGridViewRowPostPaintEventArgs.cs: corcompare fix.
18691 * TextRenderer.cs: fix up compiler warnings.
18695 * Form.cs: corcompare fixes.
18697 * PictureBox.cs: fix up compiler warnings.
18699 * ImageListStreamer.cs: same.
18701 * TrackBar.cs: corcompare fix.
18703 * Control.cs: fix up compiler warnings.
18705 * SplitterPanel.cs: same.
18707 * NumericTextBox.cs: same.
18709 * ImageList.cs: same.
18711 * StatusStrip.cs: same.
18713 * ProgressBar.cs: corcompare fix.
18715 * ToolStripButton.cs: fix up compiler warnings.
18717 * ToolStripStatusLabel.cs: same.
18719 * ToolStripSplitButton.cs: same.
18721 * ToolStripSeparator.cs: same.
18723 * ToolStripProgressBar.cs: same.
18725 * ToolStripDropDownMenu.cs: same
18727 * ToolStripDropDown.cs: same.
18729 * ToolStripDropDownButton.cs: same.
18731 * ToolStrip.cs: same.
18733 * ToolStripControlHost.cs: same.
18735 * ToolStripContentPanel.cs: same.
18737 * ToolStripDropDown.cs: same.
18739 * ToolStripContainer.cs: same.
18741 * ToolStripPanel.cs: same, and add "new" where we need it to work
18742 with the new ArrangedElementCollection.
18744 * ToolStripItemCollection.cs: add "new" where we need it to work
18745 with the new ArrangedElementCollection.
18747 2006-12-04 Andreia Gaita <avidigal@novell.com>
18749 * TabControl.cs: Fix default tab selection to after TabControl
18750 gets focus and not before. Fixes #80128
18752 2006-12-04 Chris Toshok <toshok@ximian.com>
18754 * DataGridTableStyle.cs: remove the gross calling of
18755 datagrid.Refresh from here. It's a broken idea and it doesn't
18758 * DataGrid.cs: instead, just register/unregister from the
18759 DataGridTableStyle events in CurrentTableStyle. we play it
18760 conservatively and EndEdit + CalcAreasAndInvalidate on any event,
18761 even though some would most likely not require it. Fixes bug
18762 #80115 (and one portion of #80117 as a side effect).
18764 2006-12-04 Chris Toshok <toshok@ximian.com>
18766 * DataGrid.cs (set_CaptionVisible): EndEdit before doing the work
18767 so the textbox (if any) goes away. Fixes bug #80117.
18769 2006-12-04 Chris Toshok <toshok@ximian.com>
18771 * DataGridColumnStyle.cs: set the column's readonly property
18772 initially based on the property descriptor's IsReadOnly. Fixes
18775 2006-12-04 Chris Toshok <toshok@ximian.com>
18777 * ComboBox.cs: wrap the dropdown style changing work in
18778 SuspendLayout/ResumeLayout. Fixes bug #79968.
18780 2006-12-04 Jackson Harper <jackson@ximian.com>
18782 * TextBoxBase.cs: Fix off by one, since these are one-based.
18783 * TextBox.cs: Select all the text when we get focus. The TextBox
18784 does this but the RTB does not.
18786 2006-12-04 Chris Toshok <toshok@ximian.com>
18788 * DataGridTextBoxColumn.cs: remove some spew.
18790 * DataGridColumnStyle.cs (SetColumnValueAtRow): this seems right
18791 but some part of me is saying "it shouldn't be here.." At any
18792 rate, it fixes bug #80046. Call IEditableObject.EndEdit after
18795 2006-12-04 Chris Toshok <toshok@ximian.com>
18797 * DataGridColumnStyle.cs (SetDataGrid): call CheckValidDataSource
18798 to reassign the propertydescriptor.
18800 2006-12-04 Jackson Harper <jackson@ximian.com>
18803 * TextControl.cs: Remove some unused variables. Maybe this will
18804 patch things up between mike and I.
18805 - don't split lines less then one char wide, if the viewport is
18806 that small text won't be visible anyways.
18808 2006-12-04 Jackson Harper <jackson@ximian.com>
18810 * TextBoxBase.cs: Default selection length is -1, need to do some
18811 more testing on windows to see when this is used for the property.
18812 - Redid the Lines [] property to that we properly remove soft line
18814 - added support for preserving carriage returns
18815 - CanUndo is not a variable like 'is undo enabled' it just returns
18816 true if there is undo operations available.
18817 - AppendText doesn't need to grab the last tag itself anymore,
18818 this happens automatically when we move the cursor.
18819 * TextControl.cs: Add CompoundActions to the undo class. This
18820 allows combining the other operations into one big option. ie a
18821 paste will combine { delete old, insert new, move cursor }
18822 - Add InsertString undo operation
18823 - New method for deleting multiline text
18824 - Add carriage returns to lines. So we can preserve carriage
18825 returns when text is 'roundtripped'
18827 2006-12-04 Chris Toshok <toshok@ximian.com>
18829 * DataGrid.cs (CalcCellsArea): cells_area.Width/Height are at a
18830 minimum 0. Fixes the scrollbar exception in bug #80136.
18832 2006-12-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
18835 * MdiWindowManager: Removed unused fields and methods.
18837 2006-12-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
18839 * StatusBar.cs: Update all panels when a AutoSize=Contents
18840 panel needs updating.
18842 * StatusBarPanel.cs: Remove twidth and only use initialize.
18845 2006-12-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
18847 * Form.cs: When a form's MdiParent is set add it directly
18848 on top of the z-order in stead of relying on MdiClient's
18849 ActivateChild to do it. Fixes #80135.
18852 - Remove original_order, mdi_child_list is already doing
18854 - Create mdi_child_list on construction in
18855 stead of first use (avoids a few null checks).
18857 * MenuItem.cs: Use an already existing list of mdi children
18858 to get the correct order of children and remove the other
18861 2006-12-04 Chris Toshok <toshok@ximian.com>
18863 * PropertyGridView.cs: cached_splitter_location is only used in
18864 !DOUBLEBUFFER code.
18866 * PropertyGrid.cs: implement the ComComponentNameChanged event
18867 using Events, hoping that would fix the warning. Looks like a
18868 compiler bug instead (#80144).
18870 * PropertyManager.cs: remove unused method.
18872 2006-11-04 Everaldo Canuto <everaldo@simios.org>
18874 * ThemeWin32Classic.cs: Dont draw arrow when menuitem on menubar,
18875 include parentesis to fix expression evaluation. Fixes #79634.
18877 2006-11-02 Everaldo Canuto <everaldo@simios.org>
18880 - Changes to fix behavior in Menu control, some reported in #80097
18881 and other detected during behavior refactory like a select event
18883 - Remove unneded "if's" conditions.
18884 - Created an internal to flag when popup is active in control, we need
18885 it because in .NET you can have menu active but without popup active
18886 when you active menu using popup without visible items.
18887 - Mimic win32 behavior for Select and Popup events.
18888 - Dont open popup menu when you dont have visible subitems.
18889 - Do nothing when click on disabled menu item.
18890 - Some small changes to follow the coding style guidelines.
18891 - Unselect menu only when another control gives focus. Fixes #80097.
18892 - Remove unused code.
18894 * MenuItem.cs: internal VisibleItems method to check if menu
18895 theres visible subitems, it will be usefull to fix some
18896 behavior in Menu control.
18898 2006-11-01 Everaldo Canuto <everaldo@simios.org>
18900 * Timer.cs: Tag property for 2.0 profile.
18902 2006-12-01 Chris Toshok <toshok@ximian.com>
18904 [ after removing all warning suppressions, this cleans up over 100 warnings. ]
18906 * Win32DnD.cs: comment out some unused fields.
18908 * XplatUIWin32.cs: comment out some unused pinvokes, and remove
18909 some unused properties/methods.
18911 * XplatUIX11.cs: fix MousePosition so we override the base class's
18912 property instead of conflicting with it.
18914 * PictureBox.cs: comment out some unused fields
18916 * OSXStructs.cs: make some struct fields public.
18918 * XplatUIOSX.cs: comment out some unused pinvokes, and fix
18919 MousePosition so we override the base class's property instead of
18920 conflicting with it.
18922 * X11Dnd.cs: comment out some unused fields
18924 * X11DesktopColors.cs: fix some struct field visibility to quiet
18927 * X11Dnd.cs: remove some debug code.
18929 * ThemeClearlooks.cs: comment out unused field.
18931 * ThemeNice.cs: mark some methods as overriding ThemeWin32Classic as needed.
18933 * ThemeGtk.cs: comment out some unused pinvokes.
18935 * Timer.cs: remove some unused fields.
18937 * ThemeClearlooks.cs: comment out unused field.
18939 * UpDownBase.cs: comment out unused field.
18941 * DataObject.cs: comment out unused field.
18943 * DataGridBoolColumn.cs: reomve unused field.
18945 * DataGrid.cs: remove unused field.
18947 * Cursor.cs: remove old ToBitmap code.
18949 * ControlPaint.cs: remove unused method.
18951 * ScrollBar.cs: remove unused fields.
18953 * ComboBox.cs: remove unused field, and chain up to
18954 AccessibleObject ctor.
18956 * ListBox.cs: remove unused field.
18958 * ButtonBase.cs: wrap a couple fields in NET_2_0.
18960 * GridEntry.cs: remove unused fields.
18962 * Binding.cs: remove unused fields.
18964 * AxHost.cs: remove unused method.
18966 * ContainerControl.cs: remove unused field.
18968 * ScrollableControl.cs: remove unused fields.
18970 2006-12-01 Chris Toshok <toshok@ximian.com>
18972 * XplatUI.cs, XplatUIWin32.cs, XplatUIGTK.cs: nuke
18973 the Where/WhereString stuff. it's easy enough to CWL
18974 Environment.StackTrace.
18976 * XplatUIX11.cs: same, but also fix up a lot of mcs warnings about
18977 unused private fields.
18979 2006-12-01 Jackson Harper <jackson@ximian.com>
18981 * TextControl.cs: Do not update the view while inserting multiline
18982 text. If we update the view we might wrap lines, before entering
18983 the new lines, which causes the new line insertion calculations to
18984 be totally fubared.
18985 - Remove an old TODO
18986 - Make debug output a little nicer
18988 2006-12-01 Chris Toshok <toshok@ximian.com>
18990 * ToolBar.cs: revert the ImeMode fix here and add an XXX comment.
18992 2006-12-01 Chris Toshok <toshok@ximian.com>
18994 [ fix the majority of the CS0108 warnings we've been suppressing ]
18996 * TreeView.cs: mark BackgroundImageChanged as 'new'.
18998 * ToolBar.cs: ImeMode just passes stuff to Control. Rename Layout
18999 to "LayoutToolBar" to quiet mcs.
19001 * TabControl.cs: mark our ControlCollection class as 'new'.
19003 * TextBoxBase.cs: mark some events as 'new'.
19005 * Splitter.cs: TabStop is 'new'.
19007 * ControlBindingsCollection.cs: mark a few methods as new since
19008 they change the visibility from protected to public.
19010 * RadioButton.cs: DoubleClick -> base class, and remove unused
19013 * MonthCalendar.cs: ImeMode property -> base class, and mark many
19016 * NumericUpDown.cs: TextChanged -> base class.
19018 * CheckedListBox.cs: mark our ObjectCollection class as new to
19021 * FolderBrowserDialog.cs: make HelpRequest event new and have it
19022 muck with the base class.
19024 * StatusBar.cs: fix some mcs warnings about Update being the same
19025 name as a base class method.
19027 * RichTextBox.cs: mark some events as new, and make them do things
19028 to the base class impl.
19030 * UserControl.cs: mark TextChanged as new, and have it manipulate
19033 * UpDownBase.cs: mark some things new.
19035 * CheckBox.cs: mark DoubleClick "new", and add some text about
19036 what we need to look at.
19038 * Panel.cs: make the events "new", and manipulate the base
19039 version. these are just here for attributes.
19041 * AccessibleObject.cs: make owner private.
19043 * Control.cs: deal with AccessibleObject.owner being private.
19044 cache our own copy if we need it.
19046 * Button.cs: add "new" to the DoubleClickEvent.
19048 * ListBox.cs: no need to track our own has_focus here. let
19049 Control.has_focus do it for us. Also some other work to clear up
19050 warnings about not overriding base class methods of the same name.
19052 * ComboBox.cs: clear up some warnings about not override base
19053 class methods of the same name.
19055 2006-12-01 Chris Toshok <toshok@ximian.com>
19057 * Form.cs: flag a few things as "new" to quiet some of the mcs
19062 * PrintPreviewDialog.cs: same.
19064 * DataGridView.cs: fix a ton of corcompare warnings. not all, but
19065 now DGV isn't so horrible on the class status page. also, move
19066 all events to using System.ComponentModel.EventHandlerList. my
19069 2006-12-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
19071 * MdiWindowManager.cs:
19072 - Set form to active mdi child if shown,
19073 and update the active mdi child to the next
19074 remaining child in the z-order if the form is hidden.
19077 - Track if the form has been visible and if its
19078 visibility is beeing changed, so that the MdiClient
19079 can properly decide the ActiveMdiChild. The MdiClient
19080 cannot track this since the form can change visibility
19081 before MdiClient is created.
19084 - Don't activate anything of the parent form is changing
19086 - Rework ActiveMdiChild to only return visible mdi
19087 children and take into account several other corner
19090 2006-12-01 Chris Toshok <toshok@ximian.com>
19092 * IBindableComponent.cs: new 2.0 interface.
19094 2006-12-01 Gert Driesen <drieseng@users.sourceforge.net>
19096 * DataGrid.cs: Font for caption area is bold by default.
19098 2006-12-01 Everaldo Canuto <everaldo@simios.org>
19100 * Menu.cs: Tag property for 2.0.
19102 2006-11-01 Everaldo Canuto <everaldo@simios.org>
19104 * ThemeWin32Classic.cs: Adjust menu separator drawing.
19106 2006-12-01 Chris Toshok <toshok@ximian.com>
19108 * TreeView.cs: doh, the Begin* events should be
19109 TreeViewCancelEventHandler.
19111 2006-12-01 Chris Toshok <toshok@ximian.com>
19113 * Form.cs: Form.ControlCollection already stores off the
19114 form_owner field. don't access the base class's internal "owner"
19117 * Control.cs: make all the fields in Control.ControlCollection
19118 private. there's no need for any internal fields here.
19120 2006-12-01 Chris Toshok <toshok@ximian.com>
19122 * DataGrid.cs: call SetDataSource instead of CalcGridAreas in
19123 OnHandleCreated. Fixes bug #80109.
19125 2006-12-01 Chris Toshok <toshok@ximian.com>
19127 * Button.cs, PropertyGridTextBox.cs, ComboBox.cs,
19128 SplitContainer.cs, Control.cs, StatusStrip.cs,
19129 DataGridTableStyle.cs, MenuItem.cs, DomainUpDown.cs, ImageList.cs,
19130 NumericTextBox.cs, NumericUpDown.cs, Panel.cs, CommonDialog.cs,
19131 DataGrid.cs, ScrollBar.cs, TrackBar.cs, PictureBox.cs,
19132 DateTimePicker.cs, StatusBar.cs, Form.cs, PrintPreviewDialog.cs,
19133 Label.cs, UserControl.cs, CheckBox.cs, RadioButton.cs,
19134 LinkLabel.cs, ListControl.cs, PropertyGrid.cs, Splitter.cs,
19135 MenuStrip.cs, FolderBrowserDialog.cs, NotifyIcon.cs,
19136 TextBoxBase.cs, ListView.cs, DataGridBoolColumn.cs,
19137 PrintPreviewControl.cs, RichTextBox.cs, ListBox.cs, TabControl.cs,
19138 DataGridColumnStyle.cs, ContextMenu.cs, TreeView.cs:
19140 do most of the work to convert our code over to use
19141 System.ComponentModel.Component.Events for
19142 adding/removing/dispatching events.
19145 2006-11-30 Jonathan Pobst <monkey@jpobst.com>
19147 * DataGridView.cs: Fix an ArgumentNullException reported
19148 twice today in IRC.
19150 2006-11-30 Mike Kestner <mkestner@novell.com>
19152 * ComboBox.cs: fix the scrollbar mouse event forwarding in the
19153 grabbed listbox. Fixes #80036 and #80101.
19155 2006-11-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
19157 * Message.cs: Changed ToString() to match MS.
19159 2006-11-30 Jackson Harper <jackson@ximian.com>
19161 * TextBoxBase.cs: You can still change the selected text on a read
19163 * TextControl.cs: Lower magic number for wrap calculations. This
19164 lets text get closer to the right (far) edge.
19166 2006-11-30 Jonathan Pobst <monkey@jpobst.com>
19168 * Control.cs: Tweak 2.0 layout properties.
19169 * Form.cs: Switch ToolStripMenuTracker hooks to ToolStripManager.
19170 * TextRenderer.cs: Add a new overload.
19171 * ToolStrip*: Huge amount of changes and new features.
19173 2006-11-30 Mike Kestner <mkestner@novell.com>
19175 * ComboBox.cs: fixes for LargeChange and Maximum to get the
19176 scroll range correct. Fixes #79994.
19178 2006-11-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
19180 * MdiWindowManager.cs: Update main form's text when
19181 a form is closed. (fixes #80038)
19183 2006-11-30 Everaldo Canuto <everaldo@simios.org>
19186 - Fix an regression in ButtonSize.
19187 - Get ImeMode default value change to "Disable".
19188 - Get ShowTooltips default value change to true, default value is
19189 "false" but after make a test in .NET we get "true" result as default.
19191 2006-11-29 Jonathan Pobst <monkey@jpobst.com>
19193 * ToolStripDropDown.cs: Fix for SupportsTransparency change.
19195 2006-11-29 Chris Toshok <toshok@ximian.com>
19197 * XplatUIWin32.cs (GetWindowTransparency): check return value of
19198 GetLayeredWindowAttributes. if it's 0, return 1.0, as
19199 SetWindowTransparency hasn't been called.
19201 2006-11-29 Chris Toshok <toshok@ximian.com>
19203 * Form.cs (set_TransparencyKey): only call SetWindowTransparency
19205 (set_AllowTransparency): reorder things a little so that the
19206 WS_EX_LAYERED style is removed properly.
19208 2006-11-29 Chris Toshok <toshok@ximian.com>
19210 [ totally cosmetic eye-candy feature, fixes bug #80089 ]
19212 * Form.cs: only call the XplatUI transparency method (get/set) if
19213 SupportsTransparency says it's supported. Otherwise fallback to
19214 doing nothing (in the set case) or returning the instance field we
19215 cache (in the get case).
19217 * XplatUIStructs.cs: add TransparencySupport flag enum.
19219 * XplatUIDriver.cs: add abstract GetWindowTransparency, and track
19220 change to SupportsTransparency.
19222 * XplatUIOSX.cs: stub out GetWindowTransparency, and return
19223 TransparencySupport.None from SupportsTransparency.
19225 * XplatUIX11.cs: Stub out GetWindowTransparency, and return
19226 TransparencySupport.Set from SupportsTransparency.
19228 * XplatUIWin32.cs: implement GetWindowTransparency calling
19229 GetLayeredWindowAttributes, and implement SupportsTransparency by
19230 checking whether or not both
19231 GetWindowTransparency/SetWindowTransparency are available
19232 entrypoints. We need to do this since SetWindowTransparency is
19233 available as of win2k, but GetWindowTransparency requires winxp.
19236 * XplatUI.cs: Add GetWindowTransparency, and change
19237 SupportsTransparency to allow for either/both Get/Set.
19239 2006-11-29 Chris Toshok <toshok@ximian.com>
19241 * DataGrid.cs: keep from going into an infinite loop redrawing a
19242 datagrid that has no datasource. Fixes bug #80033.
19244 2006-11-29 Chris Toshok <toshok@ximian.com>
19246 * MenuItem.cs: fix the NRE when we assign text (and therefore call
19247 Invalidate) before the mainmenu has been assigned to a control.
19249 2006-11-29 Chris Toshok <toshok@ximian.com>
19251 * DataGrid.cs: detect when we should be double the double click
19252 row/column autosize stuff, although that codepath has yet to be
19253 written. part of the work for bug #79891.
19255 2006-11-29 Chris Toshok <toshok@ximian.com>
19257 * Binding.cs (SetControl): fix unit test.
19259 2006-11-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
19261 * PageSetupDialog.cs: Validate the margins and set them in
19263 * NumericTextBox.cs: New class to mimic the behavior of the
19264 textboxes used in the printing dialogs.
19266 2006-11-29 Andreia Gaita <avidigal@novell.com>
19268 * Form.cs: Revert previous change (remove call UpdateBounds
19269 from form constructor), because it messes with the handle creation
19270 order, and that one needs lots and lots of love.
19271 * PrintPreviewDialog.cs: Revert change to CreateHandle (add check
19272 for valid printer and throw InvalidPrinterException if document
19273 is set but printer not valid), adding a MonoTODO. Once
19274 handle creation is done properly, we can put this back in.
19276 2006-11-28 Everaldo Canuto <everaldo@simios.org>
19278 * MenuItem.cs: Create a invalidate method for menu item, to be
19279 calling from set text, it make text changes to imadiate update
19280 on screen. Fixes #80013.
19282 2006-11-28 Everaldo Canuto <everaldo@simios.org>
19284 * ToolBar.cs: Fixes and simplify toolbar button layout, it
19285 fixes bug #80070 and some other problem on toolbar buttons
19288 2006-11-28 Everaldo Canuto <everaldo@simios.org>
19290 * ThemeWin32Classic.cs: Paint toolbar toggle button background
19291 with dotted brush. Fixes #79564
19293 2006-11-28 Andreia Gaita <avidigal@novell.com>
19295 * Form.cs: Removed call to UpdateBounds on Form
19296 constructor, it was causing a call to CreateHandle
19297 before it was supposed to.
19298 * PrintControllerWithStatusDialog: Applied patch
19299 by Chris Toshok to hide controller when there are
19300 no printers available.
19301 PrintDialog.cs: initialize printer settings to
19302 null - correct DefaultValues test #5
19303 * PrintPreviewControl.cs: Move PrintController
19304 initialization to GeneratePreview
19305 * PrintPreviewDialog.cs:
19306 - Remove Preview generation from Document_set(). It is
19308 - Throw InvalidPrinterException on CreateHandle if
19309 a Document is set but there are no printers or
19310 printer is not valid.
19311 * ThemeWin32Classic: don't paint PrintPreviewControl
19312 if there is nothing to paint
19314 2006-11-28 Miguel de Icaza <miguel@novell.com>
19316 * Form.cs: Add another popular method.
19318 * TabPage.cs: ditto.
19320 2006-11-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
19322 * MenuItem.cs: Fixed a warning.
19323 * InternalWindowManager: Fixed a warning.
19325 2006-11-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
19328 - When cloning a menu also clone MdiList and clone the
19329 window menu items properly (as the forms and menuitems
19330 are kept in an internal hashtable, these need updating
19332 - Rewrote the window menu code, menu items are added in the
19333 order the forms were added to their parent, and they are
19334 updated every time the window menu is shown (before the
19335 list was only generated once, in the current order of the
19336 forms, and would never be updated). A checkmark is shown
19337 next to the item corresponding to the active mdi child.
19339 2006-11-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
19341 * XplatUIStructs.cs:
19342 - Added WM_NCMOUSEHOVER and WM_NCMOUSELEAVE.
19345 - Added TME_NONCLIENT to TMEFlags.
19346 - Handles WM_NCMOUSEMOVE in GetMessage to
19347 generate WM_NCMOUSEHOVER and WM_NCMOUSELEAVE messages.
19349 * MdiWindowManager:
19350 - Now merges mdi child menu to parent menu when maximized.
19351 - Recalculate NC areas of both mdi child and mdi parent.
19353 on window state and size changes.Fixes #79844 (3).
19354 - Handle WM_NCCALCSIZE to properly calculate borders.
19357 - Add/remove to the mdi containers list of mdi children
19358 in the order they are added.
19359 - Pass on WM_NCLBUTTONUP, WM_NCMOUSEMOVE and WM_NCMOUSELEAVE
19360 to the maximized mdi child.
19362 * InternalWindowManager.cs:
19363 - Only execute a click on the control buttons on the mouse up,
19364 not on the mouse down. Show the state of the button
19365 (was only showing Normal state, never Pressed state). The
19366 pressed button now follows the mouse (if you click the Close
19367 button and move the mouse over the Maximize button, the
19368 Maximize button will be shown as pressed). Since Win32 does
19369 not generate WM_NCLBUTTONUP if you release the button outside
19370 of the nc area, we need to handle WM_NCMOUSELEAVE and treat
19373 * ThemeWin32Classic.cs:
19374 - Draw a missing border around mdi child forms. Fixes #79844 (2).
19377 - Added a list of forms which contains the order the forms are
19378 added to the mdi parent.
19379 - Handle WM_NCPAINT to properly draw a 3D border. Fixes #79844 (2).
19380 - Handle WM_NCCALCSIZE to properly calculate the 3D border.
19381 - If the active form changes set the scrollbars to the top
19382 of the Z order, otherwise the form could hide them.
19383 - Scrollbars are now sized according to ClientSize, not
19384 to Size, and they take into account the other scrollbar
19385 to determine maximum.
19387 2006-11-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
19390 * XplatUIDriver.cs:
19394 - Added RequestAdditionalWM_NCMessages for windows to
19395 opt in for WM_NCMOUSELEAVE and WM_NCMOUSEHOVER.
19396 Currently only implemented in XplatUIWin32.
19398 2006-11-27 Chris Toshok <toshok@ximian.com>
19400 * Hwnd.cs: only add the hwnd to the windows hash in
19401 set_WholeWindow and set_ClientWindow if whole_window/client_window
19402 are not IntPtr.Zero. also, remove the unused SetObjectWindow.
19404 2006-11-27 Mike Kestner <mkestner@novell.com>
19406 * ComboBox.cs: remove redundant OnDropDown call. It is called
19407 from the ComboListBox.ShowWindow code. Fixes #79969.
19409 2006-11-27 Chris Toshok <toshok@ximian.com>
19411 * Hwnd.cs: remove the setters for ExposePending and
19412 NCExposePending - noone uses them.
19414 2006-11-27 Jackson Harper <jackson@ximian.com>
19416 * TextControl.cs: new param for ReplaceSelection which determines
19417 whether we select the new selection, or set the cursor to the end
19418 of the new selection.
19419 * TextBoxBase.cs: Use new param for ReplaceSelection. When
19420 pasting, select the new text.
19421 * RichTextBox.cs: Use new param for ReplaceSelection.
19423 2006-11-27 Jackson Harper <jackson@ximian.com>
19425 * TextBoxBase.cs: Set the selection to the caret after the caret
19426 is moved, otherwise they get out of sync.
19428 2006-11-26 Everaldo Canuto <everaldo@simios.org>
19430 * ToolBar.cs: Fixe size of ToolBar when AutoSize is false,
19433 2006-11-26 Everaldo Canuto <everaldo@simios.org>
19435 * ThemeWin32Classic.cs:
19436 - Fix toolbar drop down arrow position.
19437 - Fix drop down appearance when ToolBar.Appearance is normal,
19440 2006-11-26 Gert Driesen <drieseng@users.sourceforge.net>
19442 * ProgressBar.cs: GetStyle fixes for 2.0 profile.
19443 * Control.cs: Same.
19444 * UpDownBase.cs: Same.
19445 * ButtonBase.cs: Same.
19446 * ScrollBar.cs: Same.
19447 * TrackBar.cs: Same.
19448 * PictureBox.cs: Same.
19449 * UserControl.cs: Same.
19451 * ListControl.cs: Same.
19452 * TextBoxBase.cs: Same.
19453 * ListView.cs: Same.
19454 * RichTextBox.cs: Same.
19455 * TreeView.cs: Same.
19457 2006-11-25 Jordi Mas i Hernandez <jordimash@gmail.com>
19460 - Text label for where
19461 - Text label comment was not shown
19463 2006-11-23 Everaldo Canuto <everaldo@simios.org>
19465 * ThemeWin32Classic.cs: Fix toolbar drop down arrow size.
19467 2006-11-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
19469 * InternalWindowManager.cs:
19470 - Handle WM_PARENTNOTIFY to activate the form
19471 if any child control is clicked.
19472 - The form is only sizable if not minimized.
19474 * MdiWindowManager.cs:
19475 - Save the IconicBounds if the form is moved.
19476 - Rework SetWindowState, now the window bounds
19477 are stored only if the old window state is Normal.
19480 - In SetWindowStates store the old window state if
19481 the window is maximized and restore window state if
19482 the window looses focus.
19483 - Don't handle any scrollbar value changes if
19484 initializing the scroll bars. Fixes #79771.
19485 - Reworked ArrangeIconicWindows. Current algorithm
19486 tests bounds agains all other minimized windows, if
19487 any intersections create new bounds (going left to
19488 right, bottom to top) and then test again. When
19489 successful the bounds are saved and never computed
19490 again. Fixes #79774.
19492 2006-11-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
19494 * InternalWindowManager.cs: Added HandleTitleBarUp.
19496 2006-11-23 Gert Driesen <drieseng@users.sourceforge.net>
19498 * NumericUpDown.cs: In .NET 1.1, user entered text is still
19499 hexadecimal in ParseUserEdit.
19502 2006-11-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
19504 * MdiWindowManager.cs:
19505 - Handle a click on the form's icon to show the
19506 system menu (when maximized). Fixes #79775.
19507 - Change the existing click handler for the form's
19508 icon when not maximized to show on MouseUp.
19511 * Form.cs: In OnResize only layout the mdi child's
19512 parent if it actually has a parent. Might not if
19513 the window is closing.
19516 2006-11-23 Gert Driesen <drieseng@users.sourceforge.net>
19518 * MdiClient.cs: Ignore active MDI client for text of parent, if
19519 child has no text set.
19521 2006-11-23 Gert Driesen <drieseng@users.sourceforge.net>
19523 * ToolBar.cs: Fixed ToString to match MS.
19525 2006-11-22 Andreia Gaita <avidigal@novell.com>
19528 - Fix DecimalPlaces, Hexadecimal and ThousandsSeparator to
19529 update inner values on set. Fixes #79966.
19530 - Override OnLostFocus to update value on NET 2. Fixes #79950.
19531 - Fix hexadecimal parsing.
19533 * UpDownBase: Override OnGotFocus and OnLostFocus to notify
19534 parent. Fixes #79957
19536 2006-11-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
19538 * Control.cs: After calling SetWindowsPos in SetBoundsCore
19539 the actual size has to be queried, since if height /
19540 width is negative Win32 changes it to 0.
19541 Fixes #79999 on Windows.
19543 * XplatUIX11.cs: Set height / width to 0 if negative
19544 in SetWindowPos. Fixes #79999 on Linux.
19546 2006-11-22 Everaldo Canuto <everaldo@simios.org>
19548 * ThemeWin32Classic.cs: Fix text redenring when button is
19551 2006-11-22 Everaldo Canuto <everaldo@simios.org>
19553 * MenuAPI.cs: Fixes behavior when menu is opened by kerboard
19554 and later navigate by mouse. Fixes #79528.
19556 2006-11-21 Everaldo Canuto <everaldo@simios.org>
19558 * ToolBar.cs: Set default value for TabStop to false in
19559 constructor, it fixes remaining behavior of bug #79863.
19561 2006-11-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
19563 * MdiWindowManager.cs:
19564 * InternalWindowManager.cs:
19565 - Moved a few methods specific to Mdi from
19566 InternalWindowManager to MdiWindowManager.
19569 2006-11-21 Chris Toshok <toshok@ximian.com>
19571 * XplatUIOSX.cs: stub out InvalidateNC.
19573 * XplatUIWin32.cs: implement InvalidateNC using the call I found
19574 at http://www.dotnet247.com/247reference/msgs/58/292037.aspx.
19576 * XplatUIX11.cs: rename InvalidateWholeWindow to InvalidateNC.
19578 * XplatUIDriver.cs: add InvalidateNC abstract method.
19580 * XplatUI.cs: add InvalidateNC.
19582 2006-11-21 Everaldo Canuto <everaldo@simios.org>
19584 * ToolBar.cs: Invalidate complete button area when pressed status
19586 * ToolButton.cs: Fix InvalidateBorder for DropDown buttons.
19587 * ThemeWin32Classic.cs: Increase vertical and horizontal position
19588 by 1 when button is pressed.
19590 2006-11-20 Everaldo Canuto <everaldo@simios.org>
19592 * ToolButton.cs: Invalidate middle of DropDown button when
19593 ToolBar theres DropDownArrows.
19594 * ThemeWin32Classic.cs: Change position of DropDown arrow and
19595 fix DropDown drawing operations.
19597 2006-11-20 Chris Toshok <toshok@ximian.com>
19599 * NativeWindow.cs: fix the formatting of functions ('{' on the
19600 following line), and enable the thread exception dialog.
19602 * Application.cs: remove the duplicate exception catching from
19605 2006-11-20 Everaldo Canuto <everaldo@simios.org>
19607 * Toolbar.cs: Triggers button click event when click on icon
19608 of dropdown ToolBarButton. Fixes #79912.
19610 2006-11-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
19613 * ThemeWin32Classic.cs:
19614 - Added a property WindowBorderFont to enable themeing
19615 of mdi child windows' Text.
19617 2006-11-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
19619 * InternalWindowManager.cs:
19622 * MdiWindowManager.cs:
19623 - If mdi child is maximized, set mdi parent's
19624 text to "Parent - [Child]". Fixes #79770.
19625 - If there is any maximized mdi child windows, only the active
19626 window (and any new windows) is maximized, the rest are normal.
19627 - On a WindowState change only save mdi child's window bounds
19628 if the old window state was normal. Fixes #79774.
19629 - The scroll bars are now calculated on hopefully all
19630 necessary events. Fixed #79771 / #79844->6 / #79906.
19631 - MdiClient.SizeScrollBars() now takes into account docked
19632 controls in the parent when calculating available space.
19633 - InternalWindowManager now always repaints the entire title
19634 area. Fixes #79844->1/4/5.
19635 - Added RequestNCRecalc on mdi child windowstate changes.
19638 2006-11-20 Mike Kestner <mkestner@novell.com>
19640 * ComboBox.cs: setup LargeChange on the scrollbar. Invoke FireMouseUp
19641 in the MouseUp handler of the listbox and move the return handling
19642 code to FireMouseUp to avoid scrolling on ups. Fixes #79952.
19644 2006-11-20 Everaldo Canuto <everaldo@simios.org>
19646 * Toolbar.cs: Ignore right mouse clicks in toolbar. Fixes #79855.
19648 2006-11-17 Alexander Olk <alex.olk@googlemail.com>
19650 * MimeIcon.cs: Seems that DllImports that were fine in 1.2 are not
19651 working in 1.2.x anymore. So, updated.
19653 2006-11-19 Gert Driesen <drieseng@users.sourceforge.net>
19655 * NumericUpDown.cs: Use NegativeSign, NumberDecimalSeparator and
19656 NumberGroupSeparator of current culture instead of assuming en-US.
19659 2006-11-17 Mike Kestner <mkestner@novell.com>
19661 * Control.cs: Add the concept of implicit bounds setting so that
19662 dock/undock round trips preserve explicitly set size/locations.
19665 2006-11-17 Alexander Olk <alex.olk@googlemail.com>
19667 * FileDialog.cs: Trim all filters, otherwise DirInfo.GetFiles
19668 can't handle those filters. (Fixes bug #79961)
19670 2006-11-17 Chris Toshok <toshok@ximian.com>
19672 [ fixes the exit/crashes associated with #79835. it's clearly
19673 suboptimal though, we need to figure out a better way to solve
19676 * PrintPreviewControl.cs: deal with the new invalid printer
19679 * PageSetupDialog.cs: if the printer is invalid, pop up a dialog
19680 and return false (so CommonDialog.ShowDialog doesn't actually show
19683 * PrintDialog.cs: enable/disable the Ok button depending on
19684 whether or not the printer is valid.
19686 * CommonDialog.cs (ShowDialog): only actually show the form if
19687 RunDialog returns true.
19689 2006-11-17 Jackson Harper <jackson@ximian.com>
19691 * TextControl.cs: When soft splitting a line, mark it as a soft
19692 split line. Also carry over the current line break to the next
19695 2006-11-17 Chris Toshok <toshok@ximian.com>
19697 * XplatUIX11.cs: when scrolling a window with an invalid area, we
19698 only want to shift the part of the invalid area that overlaps the
19699 area we're scrolling. we also don't want to clear the invalid
19700 area unless the invalid area was entirely contained within the
19703 2006-11-16 Chris Toshok <toshok@ximian.com>
19705 * XplatUIX11.cs: remove the handling of the TimerEvent stuff, and
19706 also make sure to free the memory returned by XGetWindowProperty
19709 * X11Structs.cs: remove the TimerEvent stuff, it's unused.
19711 2006-11-16 Chris Toshok <toshok@ximian.com>
19713 * XplatUI.cs: add a new super secret way to get at the totally
19714 unsupported X11 backend.
19716 2006-11-16 Gert Driesen <drieseng@users.sourceforge.net>
19718 * NumericUpDown.cs: Allow lowercase letters when in hex-mode.
19720 2006-11-16 Jackson Harper <jackson@ximian.com>
19722 * TreeView.cs: Allow more explicit setting of top node position
19723 for scrollbars. Slower algo, but more accurate.
19724 - CollapseAll should maintain the current top node.
19725 * TextBoxBase.cs: When positioning the caret, use the line, pos
19726 method, since the x, y method does not grab the correct tag, and
19727 the caret height never gets set correctly. (Maybe I should just do
19728 away with the caret having its own height, and always use the
19729 carets current tag for height).
19731 2006-11-16 Jonathan Pobst <monkey@jpobst.com
19733 [Fixes 79778, 79923]
19735 * XplatUIWin32.cs: Don't allow a parent to be set to IntPtr.Zero.
19736 Parent to the FosterParent instead.
19738 2006-11-16 Jackson Harper <jackson@ximian.com>
19740 * TreeView.cs: Need to recalc the topnode when we expand or
19741 collapse. The scrolling methods can't handle this on their own,
19742 since they use differences between the last scroll position, and
19743 those difference get completely messed up since we are expanding
19744 nodes. This problem should probably be fixed in the scrolling
19745 methods, so they can figure out exactly where they are, but this
19746 will slow things down a little.
19747 * ThemeWin32Classic.cs: Special case for groupboxes with empty
19748 strings, makes nunit-gui look a lot nicer.
19750 2006-11-16 Chris Toshok <toshok@ximian.com>
19752 * XplatUIX11.cs: nasty, nasty, nasty changes required because of
19753 the broken multithreaded event handling we have in here. File
19754 this entry under "Why we should move to the new X11 backend".
19756 Any thread can make it into UpdateMessageQueue, which gets events
19757 from the X socket - some of which could belong to hwnds being
19758 managed by a different thread. We can also have multiple threads
19759 in UpdateMessageQueue at the same time, with each one reading from
19760 the X socket. This leads to many problems, with the following
19763 We can't use hwnd.Queue.Enqueue anywhere in here and must use
19766 The MotionNotify compression we do can't work across threads
19767 (without locking the entire queue, perhaps) since we call
19768 hwnd.Queue.Peek, so we just punt and don't compress motion events
19769 unless the owning thread is the one which got the X event.
19771 ConfigureNotify is another fun one, since it modifies the hwnd's
19772 bounds and then enqueues the event. We add a lock to Hwnd which
19773 is held when setting configure_pending to true (and enqueuing the
19776 There is a race wrt the wake socket. we need to make sure that
19777 only 1 thread is waiting on that socket, or else a thread could
19778 sleep waiting for data that never comes. It's difficult (but not
19779 impossible) to make happen, because it seems to require something
19780 like the following:
19782 1. Thread 1 polls on wake_receive
19784 2. poll returns saying there's data to be read on
19787 3. Thread 2 polls on wake_receive and immediately returns
19788 saying there's data to be read.
19790 4. Thread 2 reads the wakeup byte from wake_receive
19792 5. Thread 1 attempts to read the wakeup byte from
19795 6. Thread 2 exits (due to a form closing, perhaps).
19797 7. Thread 1 blocks forever.
19801 Fixing the Expose handling isn't done yet, and the races inherent
19802 in that piece of code are responsible for the drawing mistakes you
19803 see when generating expose events in a MT app (like NPlot). This
19804 one is the likely to be the hardest to bandaid, and it doesn't
19805 appear to cause anything but drawing problems. The other issues
19806 caused apps to exit or hang.
19808 * XEventQueue.cs: output some spew when Dequeue/Enqueue/Peek are
19809 called from a different thread than the one that should be calling
19812 * Hwnd.cs: add some locks to be used by the XplatUIX11 code.
19814 2006-11-15 Chris Toshok <toshok@ximian.com>
19816 * Application.cs: null out the context's MainForm when we exit
19817 RunLoop. Fixes a newly checked in unit test as well as the last
19818 ODE from bug #79933.
19820 2006-11-15 Chris Toshok <toshok@ximian.com>
19822 * Form.cs (set_Owner): allow a null value so we can clear the
19824 (Dispose): set all our owned_form's Owner properties to null, and
19825 clear the owned_forms collection.
19826 (WM_CLOSE): clean up this a little bit.. still not right though.
19828 * ApplicationContext.cs: OnMainFormClosed should only call
19829 ExitThreadCore if the main form isn't recreating. Fixes unit
19832 2006-11-15 Jonathan Pobst <monkey@jpobst.com>
19836 * ComboBox.cs: Set the Hwnd.no_activate flag for the ComboListBox.
19838 2006-11-15 Jonathan Pobst <monkey@jpobst.com>
19842 * Hwnd.cs: Add a flag to show a window, but not activate it, to
19843 keep popup window types from stealing focus from the main form
19846 * XPlatUIWin32.cs: Use SW_SHOWNOACTIVATE if above field is true.
19848 * MenuAPI.cs: Set above flag to true.
19850 2006-11-15 Chris Toshok <toshok@ximian.com>
19852 * XplatUIX11.cs: mimic win32 behavior on BUTTONUP events, where
19853 the button being released is not in wParam.
19855 2006-11-15 Jonathan Pobst <monkey@jpobst.com>
19857 * Form.cs: Add the released button to MouseEventArgs.Button
19858 for the OnMouseUp call to the MenuTracker. Fixes menu clicking
19861 2006-11-15 Chris Toshok <toshok@ximian.com>
19863 * XplatUIX11.cs: add (untested) a _NET_WM_NAME implementation of
19864 GetText(). untested because it's unused in our implementation.
19865 Control.Text always caches the text, even if
19866 ControlStyles.CacheText is not set.
19870 2006-11-15 Chris Toshok <toshok@ximian.com>
19874 * Form.cs: in Close() don't do anything after we send the WM_CLOSE
19875 message. no hiding, no disposing.
19877 in the WM_CLOSE handler, hide the form if it's modal.
19879 2006-11-15 Chris Toshok <toshok@ximian.com>
19881 * XplatUIX11.cs: use AddExpose instead of sending a message.
19882 fixes textbox border drawing.
19884 2006-11-15 Chris Toshok <toshok@ximian.com>
19886 * PropertyGridView.cs: keep from crashing on mouse move/down when
19887 the property grid is empty.
19889 2006-11-14 Jackson Harper <jackson@ximian.com>
19891 * TextControl.cs: Make PageUp and PageDown more like the MS
19893 * TextBoxBase.cs: When we set the text property position the
19894 cursor at the beginning of the document.
19896 2006-11-14 Rolf Bjarne Kvinge <RKvinge@novell.com>
19898 * Form.cs: if a mdi child's WindowState has changed
19899 before it's creation, it would display wrong control
19902 2006-11-14 Alexander Olk <alex.olk@googlemail.com>
19904 * TreeView.cs: De-uglify TreeView checkbox checkmarks.
19907 2006-11-14 Rolf Bjarne Kvinge <RKvinge@novell.com>
19909 * XplatUIX11.cs: send a WM_NCPAINT on WM_NCCALCSIZE so that
19910 the window gets to paint its borders even if the window is
19913 * Form.cs: on a WM_NCPAINT invalidate the entire menu,
19914 otherwise the old control buttons would still be painted
19915 if the window gets bigger.
19917 * PaintEventArgs.cs: add an internal method so that the clip
19918 rectangle can be changed.
19920 2006-11-13 Chris Toshok <toshok@ximian.com>
19922 [ fixes bug #79745 ]
19924 * NotifyIcon.cs: lots of cleanup.
19926 * X11Structs.cs: add an enum for XEMBED messages.
19928 * XplatUIX11.cs: reindent one of the giant switch statements, it
19929 was taking up an additional tab stop, and this file is already way
19930 too wide for my laptop's screen.
19932 Also, add handling for the XEmbed EMBEDDED_NOTIFY message. When
19933 we get it, resize the hwnd to the WMNormalHints max_width/height.
19935 2006-11-13 Jackson Harper <jackson@ximian.com>
19937 * TextBoxBase.cs: Compute the value changes for the mouse wheel
19940 2006-11-13 Chris Toshok <toshok@ximian.com>
19942 * XplatUIX11.cs, XplatUIStructs.cs: kind of a gross fix for
19943 #79898. force a reference to the Region to stick around so the
19944 unmanaged object isn't collected (rendering our handle in the MSG
19947 2006-11-13 Chris Toshok <toshok@ximian.com>
19949 * XplatUIX11.cs: fix #79917 for window managers which support
19951 using XStoreName on the raw utf8, and we need to convert to
19952 COMPOUND_TEXT if it's non-latin1.
19954 2006-11-13 Chris Toshok <toshok@ximian.com>
19956 * Form.cs (set_DialogResult): we need to set closing to false if
19957 we're setting our result to None. fixes bug #79908.
19959 2006-11-13 Jackson Harper <jackson@ximian.com>
19961 * TextControl.cs: When formatting text, compute the adjusted tag
19962 lengths correctly, using FindTag for the end tag instead of trying
19963 to figure it out outselves.
19964 * TreeNode.cs: Use ActualItemHeight, which is the actual height of
19965 the item, ItemHeight doesn't work, because trees with large
19966 imagelists use those for their height
19967 * TreeView.cs: ActualItemHeight factors in the image height
19968 - compute left edge of checkboxes correctly
19969 - when expanding/collapsing move the bottom down one pixel, so we
19970 aren't moving part of the node
19972 2006-11-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
19974 * XplatUIX11.cs: The PaintEventArgs is also added to the drawing
19975 stack in PaintEventStart so that it won't get disposed by the gc
19976 before reaching PaintEventEnd.
19978 2006-11-13 Jackson Harper <jackson@ximian.com>
19980 * TextBoxBase.cs: Don't select the word if we are on a line with
19982 - We don't need to position the caret on mouse up, since the mouse
19983 move handler should be doing this
19984 - When double clicking a blank line, the caret is advanced to the
19987 2006-11-13 Gert Driesen <drieseng@users.sourceforge.net>
19989 * TreeNodeCollection.cs: Avoid duplicating indexer code.
19991 2006-11-12 Gert Driesen <drieseng@users.sourceforge.net>
19993 * ColorDialog.cs: Reset size of dialog between calls to ShowDialog.
19994 Fixes part of bug #79910.
19996 2006-11-11 Alexander Olk <alex.olk@googlemail.com>
19998 * ColorDialog.cs: Fix a NRE when adding a color to custom colors
19999 (bug #79903). Some minor string updates to match ms.
20001 2006-11-10 Alexander Olk <alex.olk@googlemail.com>
20003 * FileDialog.cs: Don't add an extension if the filename
20004 already ends with that extension.
20006 2006-11-10 Jackson Harper <jackson@ximian.com>
20008 * TreeView.cs: Use the currently highlighted node for the
20009 BeforeSelect event.
20010 * TextBoxBase.cs: There is no need to expand selection on
20012 - CanUndo means 'is there any undo operations', not 'is undo
20013 allowed on this textcontrol. Fixed ClearUndo unit test.
20015 2006-11-10 Andreia Gaita <shana.ufie@gmail.com>
20017 * Button.cs: only perform click when button is Selectable (so as
20018 not to activate default buttons when they're disabled)
20020 * Control.cs: Rewrite of the SelectNextControl and related
20021 methods. HandleClick now selects next control if the current one
20024 * Form.cs: OnActivated selects next active control only if Load
20025 has already occurred. If Load hasn't run, there's no point in
20026 selecting here, Load might change the state of controls.
20028 * FocusTest.cs: Tests marked as working again for these fixes
20030 2006-11-10 Chris Toshok <toshok@ximian.com>
20032 * XplatUIX11.cs: a couple of fixes.
20034 - use XInternAtoms with almost all the atoms we need to register,
20035 instead of many, many calls to XInternAtom. should help a bit on
20036 startup time, at the expense of making the code look a little
20039 - fall back to setting TransientFor on TOOLWINDOW's if their hwnd
20040 isn't reparented (which seems to be a clue that we're running fon
20041 compiz) and they have an Owner form. This fixes the tool windows
20042 in paint.net when running under compiz.
20044 - when setting the opacity of a window, support both the case
20045 where the window has been reparented and also when it hasn't been.
20046 Since compiz/beryl doesn't seem to reparent windows, and these are
20047 the only window managers which support translucency, I'm not sure
20048 why we need the hwnd.reparented case at all.. but leave it in.
20049 now we get translucent windows in paint.net under compiz/beryl.
20051 2006-11-10 Alexander Olk <alex.olk@googlemail.com>
20053 * FileDialog.cs: Always return the value for FilterIndex that
20054 was set. Internally convert it to values that make sense.
20056 2006-11-10 Everaldo Canuto <everaldo@simios.org>
20058 * ThemeWin32Classic.cs: Fix drowp down arrow borders.
20060 2006-11-10 Everaldo Canuto <everaldo@simios.org>
20062 * Toolbar.cs: Change default value of DropDownArrows to true, the
20063 signature still using false to make it compatible with MS but the
20064 initial value is true. Fixes #79855.
20066 2006-11-10 Alexander Olk <alex.olk@googlemail.com>
20068 * MimeIcon.cs: Don't throw an exception on windows. Mime stuff is
20069 only available on Linux.
20071 2006-11-09 Everaldo Canuto <everaldo@simios.org>
20073 * Toolbar.cs, ToolBarButton.cs: Fix wrong separator size and
20074 reduce number of calls to redraw method during toolbar creation.
20076 2006-11-09 Mike Kestner <mkestner@novell.com>
20078 * ListView.cs : raise SelectedIndexChanged when an item is selected
20079 programmatically via the Item.Selected property. Gert's nice
20080 ListViewSelectedIndexChanged test fixture now runs clean.
20082 2006-11-09 Mike Kestner <mkestner@novell.com>
20084 * ListView.cs : raise SelectedIndexChanged when a selected item is
20085 removed from the item collection using Remove or RemoveAt.
20087 2006-11-09 Mike Kestner <mkestner@novell.com>
20089 * ListView.cs : raise SelectedIndexChanged once per selected item
20090 for compat with MS. Fixes #79849+.
20092 2006-11-09 Chris Toshok <toshok@ximian.com>
20094 * TabControl.cs: initialize row_count to 0, and set it to 1 when
20095 we need to (if we have any tab pages). Fixes unit test.
20097 2006-11-09 Chris Toshok <toshok@ximian.com>
20099 * Label.cs (CalcPreferredWidth): if Text == "", our preferred
20100 width is 0, not 3. Fixes a unit test.
20102 2006-11-09 Mike Kestner <mkestner@novell.com>
20104 * ListView.cs : use Implicit scrollbars so that focus isn't
20105 stolen from the listview when they are clicked. Fixes #79850.
20107 2006-11-09 Chris Toshok <toshok@ximian.com>
20109 * PropertyGridView.cs (OnPaint): only call DrawGridItems if we
20110 have a root item. Fixes #79879.
20112 2006-11-09 Alexander Olk <alex.olk@googlemail.com>
20116 - An ArgumentException is now thrown if a wrong filter
20117 is applied (matches ms). The previous filter doesn't change
20118 anymore if an exception is thrown.
20119 - Changing the FileName property also affects FileNames
20120 * ColorDialog.cs: The length of the CustomColors array is always
20121 16. It doesn't matter if we use a smaller array or null to update
20122 or change the custom colors property.
20123 * FolderBrowserDialog.cs: Throw an InvalidEnumArgumentException if
20124 for RootFolder if we get a undefined value.
20126 2006-11-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
20128 * StatusBarPanel.cs:
20129 - Width is set to MinWidth if Width is smaller than
20130 MinWidth. Fixes #79842.
20131 - MinWidth now always overrides Width (MSDN says MinWidth
20132 is set to Width when AutoSize = None, but they do not
20134 - Style has now the the correct default value.
20136 2006-11-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
20139 - The control is completely invalidated on
20140 Got/LostFocus to draw the focus rectangle correctly.
20141 - When AutoSize then height is always 45 (width for
20142 vertical controls).
20144 * ThemeWin32Classic.cs: The TrackBar thumb is now centered
20145 on the mouse when moved and it doesn't move when grabbed
20146 until the mouse moves as well. Also fixed some wrong
20147 calculations when clicking on the thumb (control thought
20148 click was outside of thumb and didn't grab it).
20149 Fixes some of the issues in #79718.
20151 2006-11-08 Everaldo Canuto <everaldo@simios.org>
20153 * Toolbar.cs: Prevent disabled button to highlight. Fixes #79868.
20155 2006-11-08 Chris Toshok <toshok@ximian.com>
20157 * PropertyGridView.cs: only call ToggleValue if the item is not
20160 2006-11-08 Jackson Harper <jackson@ximian.com>
20162 * TextBoxBase.cs: The RichTextBox and textbox have very different
20163 word selection methods. Implement the textbox's simple word
20164 selection here, and let the RichTextBox override and provide it's
20166 - Don't do extra selection on mouseup
20167 * RichTextBox.cs: Use the documents word selection algorithm, I
20168 think ideally, this function will be pulled into the
20169 RichTextBox.cs code someday.
20171 2006-11-08 Chris Toshok <toshok@ximian.com>
20173 * RootGridEntry.cs: new class to represent GridItemType.Root.
20175 * CategoryGridEntry.cs: reformat, and add boilerplate.
20177 * GridEntry.cs: remove the UIParent stuff - turns out .Parent
20178 returns the UI parent anyway, and we need special handling to
20179 implement the GetTarget method in the face of it. Also, implement
20182 * PropertyGrid.cs, PropertyGridView.cs: a number of fixes. create
20183 a root grid item, and use that instead of PropertyGrid.grid_items.
20184 Also, make use of TypeConverters (and add limitted support for
20185 ICustomTypeDescriptors) when initially populating the grid.
20186 Arrays now show up more or less properly.
20188 2006-11-08 Chris Toshok <toshok@ximian.com>
20190 * Application.cs: set the modal dialog to non modal after we close
20191 it. Fixes bug #79866.
20193 2006-11-08 Jackson Harper <jackson@ximian.com>
20195 * TextControl.cs: When combining lines carry over the line end
20196 style from the end line.
20197 - Invalidate the selected area when setting it, if it is visible.
20198 * TextBoxBase.cs: Only rich text box can do full line selects.
20199 - Make sure to set the cursor position when there is a click,
20200 otherwise two clicks in separate areas could cause a large chunk
20203 2006-11-07 Everaldo Canuto <everaldo@simios.org>
20205 * Toolbar.cs: Release flat button borders when Toolbar lost focus.
20208 2006-11-07 Everaldo Canuto <everaldo@simios.org>
20210 * Toolbar.cs: Prevent toolbar to open more than one tooltip at same
20211 time. Remove tooltips when ToolButton click events. Fixes #79856.
20213 2006-11-07 Everaldo Canuto <everaldo@simios.org>
20215 * MenuAPI.cs: Ignore right click for menu actions and fixes
20216 menu border when clicked. Fixes #79846.
20218 2006-11-07 Everaldo Canuto <everaldo@simios.org>
20220 * XplatUIX11.cs, XplatUIX11.cs: Fix MouseRelease to only release
20221 MouseState after create wParam for message, this fixes mouse button
20222 equal none in mouse up events.
20224 2006-11-07 Andreia Gaita <shana.ufie@gmail.com>
20226 * Control.cs : Focus() now calls Select to set the Container's
20227 Active Control and to give it focus. To avoid infinite recursion
20228 (because ActiveControl also calls Focus at one point), a check
20229 is made in Focus with the help of a new internal variable
20232 2006-11-07 Mike Kestner <mkestner@novell.com>
20234 * ListView.cs : raise OnSelectedIndexChanged in CreateHandle
20235 if there's a selection. Fixes #79849.
20237 2006-11-07 Gert Driesen <drieseng@users.sourceforge.net>
20239 * PropertyGrid.cs: Avoid fixed height of help description label.
20240 Fixes part of bug #79829.
20242 2006-11-07 Chris Toshok <toshok@ximian.com>
20244 * XplatUIX11.cs: fix #79790 again, by using the
20245 _NET_WM_STATE_SKIP_TASKBAR atom to implement Form.ShowInTaskbar.
20247 2006-11-07 Everaldo Canuto <everaldo@simios.org>
20249 * ToolBar.cs: Fix left click checking.
20251 2006-11-07 Chris Toshok <toshok@ximian.com>
20253 * ProgressBar.cs: fix a typo in ToString(). fixes a unit test.
20255 2006-11-07 Chris Toshok <toshok@ximian.com>
20257 * RelatedPropertyManager.cs: set property_name in our ctor. fixes
20258 PropertyManager unit tests.
20260 * PropertyManager.cs: make property_name internal.
20262 2006-11-07 Chris Toshok <toshok@ximian.com>
20264 * ButtonBase.cs: initialize base.ime_mode to ImeMode.Disable to
20265 pass a unit test. Also, don't set image_index to anything in
20266 response to setting the ImageList property.
20268 2006-11-07 Everaldo Canuto <everaldo@simios.org>
20270 * ToolBar.cs: Ignore click events when mouse button is not a
20271 left button, only accepts other button for dropdown menus.
20274 2006-11-07 Chris Toshok <toshok@ximian.com>
20276 * DataGrid.cs: make the back and parent row buttons a little less
20279 2006-11-07 Jackson Harper <jackson@ximian.com>
20281 * TextBoxBase.cs: When converting to Text don't put line breaks in
20282 for soft line breaks.
20283 * TextControl.cs: There is an initial "fake" line in the document,
20284 this is now a soft break line, so that an extra line feed doesn't
20285 get added to the end of documents.
20287 2006-11-07 Chris Toshok <toshok@ximian.com>
20291 * CurrencyManager.cs: if the list is readonly, don't bother
20292 checking if IBindingList.AllowNew is true.
20294 * ThemeWin32Classic.cs (DataGridPaintParentRow): make this work
20295 for non-DataRowView datasources.. or rather, make it not crash.
20296 (DataGridPaintRelationRow): make sure we limit the row painting to
20297 the area not covered by the row header, and make our cell width at
20298 least large enough to cover the relation area. This allows grids
20299 that have relations but no rows to render correctly.
20300 (DataGridPaintRowContents): same type of changes here.
20301 (SetDataSource): move back to always calling
20302 CalcAreasAndInvalidate. this fixes a crash/drawing problem when
20303 navigating back through relations.
20304 (HitTest): handle the case where we have no cells but have
20305 relations. Right now we generate a hit in cell 0 of whatever the
20306 row is, not sure if this is strictly correct, but it works for our
20309 * DataGrid.cs (EndEdit, CancelEdit): if we have no columns, don't
20310 bother doing anything.
20312 2006-11-07 Jonathan Pobst <monkey@jpobst.com>
20314 * StatusStrip.cs, ToolStripStatusLabel.cs: By request, an
20315 early version of StatusStrip. Not responsible for eaten
20316 application or firstborn children.
20318 2006-11-06 Chris Toshok <toshok@ximian.com>
20320 * TabControl.cs: in OnGotFocusInternal/OnLostFocusInternal don't
20321 call GetTabRect with a -1 index. Fixes #79847.
20323 2006-11-06 Jackson Harper <jackson@ximian.com>
20325 * TreeNodeCollection.cs: Update scrollbars after clearing.
20327 2006-11-06 Chris Toshok <toshok@ximian.com>
20329 * NumericUpDown.cs: fix the ToString method for some unit test
20332 2006-11-06 Chris Toshok <toshok@ximian.com>
20335 - set the initial SelectedGridItem if we can.
20337 - Exclude non-mergable properties only if we're merging > 1
20338 object. Merging 1 object isn't really merging, obviously.
20340 - Handle PropertySort.NoSort just like Alphabetical, which is
20341 wrong of course, but at least gets things on the screen.
20343 * PropertyGridView.cs:
20344 - Add method "FindFirstItem" which finds the first property grid
20345 item, so we can select it by default.
20347 - make use of GridEntry.CanResetValue.
20349 - Don't call RedrawBelowItemOnExpansion here anymore, the
20350 individual GridEntry's will do that.
20352 - Remove the ITypeDescriptorContextImpl internal class.
20355 - this class needs to implement ITypeDescriptorContext, as it's
20356 what MS's PropertyDescriptorGridEntry does, which means we can
20357 remove the ITypeDescriptorContextImpl internal class from
20358 PropertyGrid.cs. This fixes the crashing portion of bug #79829.
20360 - keep a reference to our PropertyGridView, and move the call to
20361 RedrawBelowItemOnExpansion here from PGV. This means
20362 programmaticly setting Expanded actually does something visible.
20364 - add a CanResetValue() function which takes into account our
20365 possibly multiple "selected_objects" in the merged case. Shifting
20366 PropertyGridView to use this method fixes another unreported
20367 crasher found running the test for #79829.
20369 - when Top or Bounds is updated, make sure the PropertyGridTextBox
20370 is updated to reflect this.
20372 * CategoryGridEntry.cs: the ctor takes the PGV now.
20374 2006-11-06 Jackson Harper <jackson@ximian.com>
20376 * TextControl.cs: These are 1 based.
20377 * TextBoxBase.cs: When setting the selected text, don't change the
20378 selected text tags, this is done by ReplaceText, just position the
20379 cursor at the end of the new text.
20381 2006-11-06 Alexander Olk <alex.olk@googlemail.com>
20383 * ListView.cs: Allow label edit only when, when LabelEdit is
20386 2006-11-06 Jackson Harper <jackson@ximian.com>
20388 * TextControl.cs: If a suitable wrapping position isn't found,
20389 just wrap right in the middle of a word.
20391 2006-11-06 Alexander Olk <alex.olk@googlemail.com>
20393 * ListView.cs, ListViewItem.cs: Implement LabelEdit. Fixes
20396 2006-11-06 Jackson Harper <jackson@ximian.com>
20398 * TreeView.cs: Can't use the VisibleCount property when setting
20399 scrollbar heights, because this doesn't take into account whether
20400 or not the horz scrollbar just came visible.
20402 2006-11-05 Everaldo Canuto <everaldo@simios.org>
20404 * MenuAPI.cs: Deactivate menu on mouse up when menus it is already
20405 activated. Fixes #79369, #79832.
20407 2006-11-05 Alexander Olk <alex.olk@googlemail.com>
20409 * FileDialog.cs: *sigh* Because of recent runtime changes (r67043) I
20410 had to remove support for links that point to a directory. FileInfo
20411 returns no usefull information (means, the directory they point to)
20412 for such links. Replaced some empty string ("") with String.Empty.
20414 2006-11-04 Gert Driesen <drieseng@users.sourceforge.net>
20416 * TreeNodeCollection.cs: To match MS, in 1.0 profile throw
20417 NullReferenceException when attempting to remove node that is not in
20418 collection. Throw NullReferenceException when null is passed to
20419 Remove. Allow first element of the collection to be removed. Fixes
20420 bug #79831. In GetEnumerator ().Current return null if positioned
20421 before the first element of the collection. In GetEnumerator ().Reset,
20422 position before first element of the collection.
20424 2006-11-04 Gert Driesen <drieseng@users.sourceforge.net>
20426 * PropertyGrid.cs: To match MS, remove default title and description
20427 for panel. Fixed tooltips for Categorized and Alphabetic toolbar
20430 2006-11-04 Chris Toshok <toshok@ximian.com>
20432 * Theme.cs: add a Clamp method, just for kicks.
20434 * ThemeWin32Classic.cs: clamp all color components to [0..255].
20436 2006-11-04 Chris Toshok <toshok@ximian.com>
20438 * Form.cs: if the form isn't visible, Close() does nothing.
20440 2006-11-03 Chris Toshok <toshok@ximian.com>
20442 * Form.cs (Close): if the form is modal, don't Dispose of it, only
20444 (WndProc): don't Dispose after handling the WM_CLOSE message.
20446 * Application.cs (RunLoop): toplevels is a list of Forms, so treat
20447 them as such, instead of using casts from Control to Form. Also,
20448 don't Dispose of the modal dialog when we fall out of the loop -
20449 Close() it instead.
20453 2006-11-03 Chris Toshok <toshok@ximian.com>
20455 * Control.cs (Dispose): only go through the dispose thing if we're
20456 @disposing, and we haven't already been disposed. Fixes bug
20459 * Form.cs: no reason to call "base.Dispose()" here instead of
20462 2006-11-03 Mike Kestner <mkestner@novell.com>
20464 * ComboBox.cs : use ToString instead of casts in AddItem for
20465 sorting functionality. Fixes #79812.
20467 2006-11-03 Chris Toshok <toshok@ximian.com>
20469 * Application.cs: pave the way for actually using the thread
20470 exception dialog. it's ifdefed out at the moment.
20472 2006-11-03 Chris Toshok <toshok@ximian.com>
20474 * ThreadExceptionDialog.cs: until we get a better layout, actually
20475 hide the details textbox and label when we shouldn't see them.
20477 2006-11-03 Jackson Harper <jackson@ximian.com>
20479 * TextBoxBase.cs: Don't bail from the scrollbar calcs for non
20480 multiline textboxes anymore. This method also determines the
20481 width/height of a textboxes canvas area.
20482 - Sorta a revert of the last patch. For multiline just position
20483 the controls, then bail. This way the scrollbar width won't be
20486 2006-11-03 Everaldo Canuto <everaldo@simios.org>
20488 * ThemeWin32Classic.cs: Dont paint inner lines of 3D border when
20489 it dont need. Fixes #79537.
20491 2006-11-02 Jackson Harper <jackson@ximian.com>
20493 * X11Dnd.cs: We always allow copy, since XDND implies Copy. Also
20494 send the status after firing the DndOver event.
20496 2006-11-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
20498 * TrackBar.cs: Now orientation only switches height / width if
20499 the control's handle is created (Win32 does it like this). Also
20500 fixed a typo in ToString() for a test to pass, changed the
20501 exception thrown in set_LargeChange and set_SmallChange to
20502 match Win32 behaviour, and added TrackBar tests to the unit
20505 2006-11-02 Chris Toshok <toshok@ximian.com>
20507 * XplatUIX11.cs: the atom we want is _NET_WM_STATE_SKIP_TASKBAR,
20508 not _NET_WM_STATE_NO_TASKBAR.
20510 2006-11-02 Jackson Harper <jackson@ximian.com>
20512 * TextControl.cs: Increment count by one, since in the update view
20515 2006-11-02 Jackson Harper <jackson@ximian.com>
20517 * TextBoxBase.cs: Use client rectangle not bounds for checking if
20518 the mouse is in the client rectangle (duh).
20520 2006-11-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
20522 * TrackBar.cs: Fixed trackbar jumping around when clicking
20523 on it - the trackbar was not detecting correctly at which
20524 side of the thumb the click was done. (fixes #79718)
20526 2006-11-02 Everaldo Canuto <everaldo@simios.org>
20528 * ListBox.cs: scroll visible area when change SelectedIndex to
20529 a non visible area. Fixes #79481.
20531 2006-11-01 Jackson Harper <jackson@ximian.com>
20533 * TextControl.cs: When replacing the selection move the selection
20534 start/end/anchor to the end of the new text.
20536 2006-11-01 Jackson Harper <jackson@ximian.com>
20538 * XplatUIWin32.cs: When setting the parent change the controls
20539 visibility to it's visibility flag, not to it's old parents
20540 visibility (.Visible walks the parent chain).
20542 2006-11-01 Chris Toshok <toshok@ximian.com>
20544 * XplatUIX11.cs: revert the #79790 fix, as the simple.
20545 XSetTransientForHint fix breaks paint .net's tool windows. more
20546 work needed for that one.
20548 2006-11-01 Chris Toshok <toshok@ximian.com>
20550 * ScrollBar.cs: throw ArgumentException instead of Exception in
20551 LargeChange/SmallChange setters. fixes unit tests.
20553 2006-10-31 Andreia Gaita <shana.ufie@gmail.com>
20555 * ContainerControl.cs: reverted rev.67183 (which was itself
20556 a reversion of rev.66853... eh).
20558 * Control.cs: Fixes Reflector hang by changing Focus() call
20559 to what it was before rev.66643 (calling Select() here sets
20560 ActiveControl, which in some situations calls back Focus and
20561 eventually does a stack overflow). Temp fix.
20562 Changes to GetNextControl() to not look for children to select when
20563 parent cannot be selectable (so it looks for siblings instead)
20565 2006-10-31 Mike Kestner <mkestner@novell.com>
20567 * CheckedListBox.cs : off by one error in returned index from
20568 ObjectCollection.Add. Fixes #79758.
20570 2006-10-31 Chris Toshok <toshok@ximian.com>
20572 * UpDownBase.cs: remove the OnGotFocusInternal/OnLostFocusInternal
20573 calls for the textbox/spinner, to keep from recursing to the point
20574 where we crash. Fixes #79760.
20576 2006-10-31 Chris Toshok <toshok@ximian.com>
20578 * ListControl.cs (set_SelectedValue): don't throw exceptions on
20579 null/"" value, just return. matches ms's behavior and fixes some
20582 2006-10-31 Chris Toshok <toshok@ximian.com>
20584 * Control.cs (set_Capture): make a logic a little easier to
20587 * XplatUIX11.cs (CleanupCachedWindows): zero out the Grab window
20588 if it's being destroyed. A necessary fix surely, but a bandaid
20589 also, to fix the stuck capture problem in bug #78413.
20591 2006-10-31 Chris Toshok <toshok@ximian.com>
20593 * XplatUIX11.cs: fix a couple of compiler warnings, and follow the
20594 convention of clearing hwnd.ClientRect when we set the
20595 width/height (so it'll be recalculated by Hwnd).
20597 2006-10-31 Andreia Gaita <shana.ufie@gmail.com>
20599 * ContainerControl.cs: reversed Contains check from
20600 ActiveControl due to hanging problems. This fix
20601 partly regresses #79667 (button does not have
20602 initial focus), so this might be a symptom for
20603 a larger parenting problem (set_ActiveControl
20604 is being called but the child control does
20605 not have the parent set yet?)
20607 2006-10-31 Mike Kestner <mkestner@novell.com>
20609 * MenuAPI.cs : fix keynav when menu is click activated.
20611 2006-10-31 Jonathan Pobst <monkey@jpobst.com>
20613 * ToolStrip*: Version 0.2.
20615 * MenuStrip.cs: Version 0.1.
20617 * Form.cs: Add a 2.0 MenuStrip tracker like the 1.1 Menu one.
20619 2006-10-30 Chris Toshok <toshok@ximian.com>
20621 [ fixes the oversized notify icon issue in bug #79745 ]
20623 * NotifyIcon.cs: scale the icon down to the size we're given by
20624 the XplatUI layer (this would be faster if we did it once instead
20625 of whenever we paint..) Also, remove the WM_NCPAINT handling,
20626 since it's never invoked.
20628 * XplatUIX11.cs: the gnome and kde systrays use icons that are 24
20629 pixels high by default, so let's hardcode our systray icon to that
20630 size. The SYSTEM_TRAY protocol should really have a way for
20631 client apps to query for the correct icon size.. but oh well. A
20632 couple of patches to deal with the screwy client_window ==
20633 whole_window notifyicon stuff (we don't want to PerformNCCalc, for
20634 instance, and also make sure we don't XSelectInput twice).
20636 2006-10-30 Chris Toshok <toshok@ximian.com>
20638 * Control.cs: ugh, the unit test fix (CH11, yesterday) breaks when
20639 recreating forms. Control recreation is the bane of my existence.
20640 Fix it in a way that keeps everyone happy.
20642 2006-10-30 Chris Toshok <toshok@ximian.com>
20644 * XplatUIX11.cs: use StructureNotifyMask on all whole_windows, not
20645 just non-CHILD ones. otherwise sometimes scrollbars end up with
20646 client_windows not being resized to the proper size (ReportBuilder
20647 shows this extremely well).
20649 2006-10-30 Chris Toshok <toshok@ximian.com>
20651 * XplatUIX11.cs (SetWMStyles): reinstate the XSetTransientForHint
20652 for non-WS_EX_APPWINDOW windows. This is what keeps them from
20653 showing up in the gnome taskbar. Fixes bug #79790.
20655 2006-10-30 Chris Toshok <toshok@ximian.com>
20657 * ApplicationContext.cs: guard against a NRE.
20659 * Application.cs: null out the old MainForm for the context, so we
20660 don't try to use it again once it's disposed. Fixes bug #79783.
20662 2006-10-30 Chris Toshok <toshok@ximian.com>
20664 * DataGrid.cs (set_DataSource, set_DataMember): if we have a
20665 BindingContext, set the data source directly, otherwise do the
20666 lazy approach - the actual ListManager will be created when we get
20667 a BindingContext. Fixes bug #79700.
20669 2006-10-30 Jonathan Pobst <monkey@jpobst.com>
20671 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
20672 XplatUIX11.cs: Remove old 2 parameter SetVisible.
20674 * Control.cs: Use the new 3 parameter SetVisible with activate = true.
20676 2006-10-30 Jonathan Pobst <monkey@jpobst.com>
20678 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Add an overload
20679 of SetVisible that allows a window to be shown, but not activated.
20680 This is needed on Windows for MenuStrip, and can probably be used
20681 with MainMenu and ComboBox to fix the focus stealing issues on
20684 * XplatUIOSX.cs, XplatUIX11.cs: Not needed, call existing SetVisible.
20686 2006-10-30 Alexander Olk <alex.olk@googlemail.com>
20688 * PictureBox.cs: Fix the output of the ToString method.
20690 2006-10-29 Chris Toshok <toshok@ximian.com>
20692 * Control.cs (get_TopLevelControl): fix bug #79781.
20694 2006-10-29 Chris Toshok <toshok@ximian.com>
20696 * ListControl.cs (set_DataSource): throw Exception here, not
20697 ArgumentException, to match MS behavior.
20699 2006-10-29 Chris Toshok <toshok@ximian.com>
20701 * Form.cs: remove the try-catch's around calls to GetWindowState.
20702 We can just check the return value.
20704 * XplatUIX11.cs: don't throw exceptions from GetWindowState.
20707 * XplatUI.cs: Add note about additional return value for
20710 2006-10-29 Chris Toshok <toshok@ximian.com>
20712 * Control.cs (CreateHandle): when we create our handle, we also
20713 create the handles of our child controls. Fixes one of the
20714 Control unit tests (CH11).
20716 2006-10-28 Alexander Olk <alex.olk@googlemail.com>
20718 * MimeIcon.cs: If a gnome icon doesn't exist add a default icon.
20720 2006-10-28 Alexander Olk <alex.olk@googlemail.com>
20722 * ThemeClearlooks.cs: A little speedup.
20724 2006-10-27 Chris Toshok <toshok@ximian.com>
20726 * Control.cs: implement Control.FromChildHandle in a way that
20727 matches the docs (and fixes the failed test.)
20729 2006-10-27 Chris Toshok <toshok@ximian.com>
20731 * DataGridTableStyle.cs: reproduce buggy MS behavior (with
20734 * DataGrid.cs: implement ResetForeColor such that the tests
20737 2006-10-27 Chris Toshok <toshok@ximian.com>
20739 * ToolBarButton.cs: setting text/tooltiptext to null results in it
20740 being set to "". Fixes bug #79759.
20742 2006-10-27 Jackson Harper <jackson@ximian.com>
20744 * TextControl.cs: We need to clear the entire selection area when
20745 setting the start, otherwise multiline selections are still
20748 2006-10-26 Chris Toshok <toshok@ximian.com>
20750 * PropertyGridView.cs:
20752 - ifdef all the code specific to the double
20753 buffer case, and provide some alternatives in the non-doublebuffer
20754 code, which makes heavy use of XplatUI.ScrollWindow to move things
20755 around without having to invalidate (and cause flicker). There
20756 are still some drawing problems in the non-doublebuffered case, so
20757 DOUBLEBUFFER is defined by default.
20759 - Fix the way dropdowns are handled. now we explicitly watch for
20760 the events which might cause the dropdown to close, and break out
20761 of the nested event loop there. This gets rid of all Capture
20762 code, at the expense of the Msg special casing. Seems to work,
20763 though, and fixes bug #79743.
20765 2006-10-27 Rolf Bjarne Kvinge <RKvinge@novell.com>
20766 * Control.cs: SetIsRecreating now recreates implicitly added
20767 child controls as well. Finally fixes #79629. The flag passed to
20768 SetIsRecreating has also been removed since it wasn't used.
20770 2006-10-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
20772 * PageSetupDialog.cs: Clean some code, fix some bits,
20773 add some checks, and add a printer sub-dialog.
20775 2006-10-26 Chris Toshok <toshok@ximian.com>
20777 * PropertyGrid.cs: make set_SelectedObject call
20778 set_SelectedObjects, and move the duplicate logic to the
20779 SelectedObjects setter. Also, raise SelectedObjectsChanged.
20781 * PropertyGridView.cs: hide the textbox when we get a
20782 SelectedObjectsChanged event.
20786 2006-10-26 Chris Toshok <toshok@ximian.com>
20788 * PropertyGridView.cs: deal with the type converter not supporting
20789 GetStandardValues() or GetStandardValues() returning null, which
20790 is does in the default case. Fixes #79742.
20792 2006-10-25 Andreia Gaita <shana.ufie@gmail.com>
20794 * CheckedListBox.cs: nunit no longer crashes when selecting
20795 Project/Edit menu option
20797 2006-10-25 Andreia Gaita <shana.ufie@gmail.com>
20799 * MenuAPI.cs: prevent ExecFocusedItem from blowing up if there
20800 is no menu selected. fixes #79739
20802 2006-10-25 Chris Toshok <toshok@ximian.com>
20804 * PropertyGridView.cs: factor out the splitter invalidation code
20805 into the SplitterPercent setter, and for kicks implement the
20806 Ctrl-Left/Ctrl-Right handling that moves the splitter by a small
20807 amount in either direction.
20809 2006-10-25 Chris Toshok <toshok@ximian.com>
20811 * PropertyGridView.cs: do some cleanup of the brush used to draw
20812 text - read only fields should be grayed out. not sure how to do
20813 this with the textbox, though. but the textbox's should also be
20814 readonly now at least. Also, hide/show the textbox when resizing
20817 * CursorConverter.cs: use System.Reflection when getting the
20818 properties of Cursors, as TypeDescriptor.GetProperties isn't
20819 returning static properties.
20821 2006-10-25 Chris Toshok <toshok@ximian.com>
20823 * PropertyGridView.cs: factor out the up/down handling, and reuse
20824 it for page up/down. also add End/Home support.
20826 2006-10-25 Chris Toshok <toshok@ximian.com>
20828 * PropertyGridView.cs:
20830 - ensure the selected grid item is visible in the scrolled area,
20833 - fix Keys.Down handling when you're on the last item in the
20836 2006-10-25 Mike Kestner <mkestner@novell.com>
20838 * MenuAPI.cs : set the ActiveTracker for MainMenu non-popup
20839 clicks too. Fixes #79725.
20841 2006-10-24 Chris Toshok <toshok@ximian.com>
20843 * PropertyGrid.cs: use property.Converter instead of
20844 TypeDescriptor.GetConverter(property.PropertyType), so we catch
20845 TypeConverters declared on the property as well as on the
20846 PropertyType. Fixes bug #79678.
20848 2006-10-24 Alexander Olk <alex.olk@googlemail.com>
20850 * MimeIcon.cs, Mime.cs:
20851 Fallback to the default platform handler if no shared mime info
20852 stuff exists (fixes #79693).
20854 2006-10-20 Andreia Gaita <shana.ufie@gmail.com>
20855 * ContainerControl.cs: Incorrect contains check in ActiveControl
20856 from previous fix (duh).
20858 2006-10-20 Chris Toshok <toshok@ximian.com>
20860 * PropertyGridView.cs: the dropdown should be MIN(number of items
20861 in list, 15). Fixes #79551.
20863 2006-10-20 Andreia Gaita <shana.ufie@gmail.com>
20864 Fixes #79384, #79394, #79652, #79667
20867 - Modal windows are now destroyed in the proper order for windows
20869 * ContainerControl.cs:
20871 - ActiveControl setter has more conditions on when to return:
20872 - if we're reselecting the active control, but it actually
20873 didn't have focus (window hidden or some such), it runs
20874 - if the active control being selected doesn't actually
20875 exist in the container, it returns
20879 - The ShowDialog now gets the current form as the owner when
20880 invoking without parameters, and correctly activates the owner
20885 - MessageBox now catches the Escape key to exit
20887 2006-10-20 Chris Toshok <toshok@ximian.com>
20889 * PropertyGridView.cs: fix a number of issues (bug #78565, and
20890 most of bug #79676):
20892 - you can navigate around the property grid with the arrow keys.
20894 - the dropdown is sized properly when the pg has a vertical
20897 - fix the indentation for subentries, and properly select the
20900 - fix the gray bar's drawing (only draw it to the last element,
20901 not for the height of the control. Also make sure we draw that
20902 last horizontal grid line.
20904 - use the same mechanism the datagrid uses wrt the editing textbox
20905 when scrolling/resizing/etc. Namely, we hide it first, do the
20906 operation, then show it again (if it's still visible).
20908 - aggressively remove a lot of unnecessary refreshes (and also
20909 calls to Invalidate(). call more limited variants, and only redraw
20914 - when we're populating the merged collection, fill in the UI
20915 parent with either the passed in item, or the category item we
20918 - remove the Refresh call from the BorderHelpControl.OnSizeChanged.
20920 * GridItem.cs: drop some fully qualified names.
20922 * GridEntry.cs: add a "UIParent", which is basically the parent
20925 * GridItemCollection.cs: add an IndexOf method.
20927 2006-10-20 Mike Kestner <mkestner@novell.com>
20929 * MainMenu.cs : go back to Draw in OnMenuChanged. Until we get
20930 a working win32 NC invalidation mechanism, we can't invalidate
20931 menus. [Fixes #79705]
20933 2006-10-20 Mike Kestner <mkestner@novell.com>
20935 * ListBox.cs : don't update the VScrollbar if the list is empty,
20936 just hide it. [Fixes #79692]
20938 2006-10-20 Jackson Harper <jackson@ximian.com>
20940 * RichTextBox.cs: Handle some special chars better, and don't skip
20941 the entire group when we encounter a special char that we don't
20944 2006-10-18 Chris Toshok <toshok@ximian.com>
20946 * PropertyGridView.cs: address a number of issues from bug #79676,
20947 mostly of the cosmetic variety.
20949 - The highlight rectangle for indented items not extends all the
20952 - Indented items aren't indented so much.
20954 - the dropdown is properly sized width-wise if the pg has a
20955 vertical scrollbar.
20957 2006-10-18 Chris Toshok <toshok@ximian.com>
20959 * XplatUIX11.cs (SystrayAdd): a rather convoluted change, but the
20960 systray stuff is rather convoluted to begin with.
20962 systray icons are a single window for some reason (that I haven't
20963 figured out yet), and for them, client_window == whole_window.
20964 Given the way the tests are structured elsewhere to determine
20965 which paints are pending (client vs. nc), that situation will
20966 always yield PAINT, not NCPAINT. So, if we have a pending
20967 nc_expose and no pending expose, remove the hwnd from the paint
20968 queue, and also set nc_expose_pending to false, to keep us from
20969 blocking further expose's adding the hwnd to the paint queue.
20971 phew. like i said, a rather convoluted change. Fixes the
20972 notifyicon repaint issues in bug #79645.
20974 2006-10-18 Chris Toshok <toshok@ximian.com>
20976 * Form.cs: when getting the backcolor of the form, don't get
20977 base.BackColor, as this allows parents to influence the background
20978 color. This breaks mdi forms. Instead, if the background_color
20979 is empty, return the default.
20981 2006-10-18 Chris Toshok <toshok@ximian.com>
20983 * XplatUIX11.cs: change some debug ifdefs, and return XGetParent
20984 to being private instead of internal static.
20986 * Control.cs: remove all the stupid ParentWaitingOnRecreation
20987 crap, it wasn't working for more deeply nested controls anyway,
20988 and we already have the is_recreating flag - use that instead.
20989 Before calling DestroyHandle in RecreateHandle, recurse through
20990 the control tree setting it to true. this returns the recreate
20991 code to much of its original simplicity, while now guaranteeing we
20992 actually recreate everything we're supposed to. This change gets
20993 fyireporting actually showing mdi children.
20995 2006-10-17 Chris Toshok <toshok@ximian.com>
20997 * Form.cs: remove some debug spew, and collapse some duplicate
20998 code at the end of SetClientSizeCore.
21001 - add some more debug spew here too wrt Destroy handling.
21002 - don't call hwnd.Dispose in DestroyWindow, it's effectively done
21003 in Control's handling of WM_DESTROY.
21004 - Remove the handling of zombie window DestroyNotifies from the
21005 event loop - we don't need it. Now the only DestroyNotifies we
21006 actually handle are ones generated by X.
21007 - When sending _NET_ACTIVE_WINDOW, the first param should be 1, to
21008 match gtk's (functioning) handling of this. This keep metacity
21009 from leaving droppings in the form of wm borders with no window
21010 contents all over the place.
21013 - add a bunch of debug spew wrt control recreation.
21014 - fix a bug where we weren't tracking Visible properly on
21016 - fixed the WM_PAINT double buffer handling to support re-entrant
21017 calls (yes, i know it's gross, but it's happening to us).
21019 2006-10-17 Rolf Bjarne Kvinge <rolfkvinge@ya.com>
21020 * ThemeWin32Classic.cs: changed drawing of selected days
21021 to make them look better.
21023 2006-10-16 Chris Toshok <toshok@ximian.com>
21025 * Hwnd.cs: replace the user_data/client_dc/non_client_dc with
21026 drawing_stack. Nuke the ClientDC/NonClientDC properties.
21028 * XplatUIX11.cs: move away from using hwnd.client_dc and
21029 hwnd.non_client_dc and on to a stack of dc's (and in window's
21030 case, PAINTSTRUCT's), so we can deal with nested Paint calls
21031 without puking or not disposing of Graphics objects.
21033 * XplatUIOSX.cs: same.
21035 * XplatUIWin32.cs: same.
21037 2006-10-03 Alexander Olk <alex.olk@googlemail.com>
21039 * FileDialog.cs: Don't call on_directory_changed inside
21040 OnSelectedIndexChanged (it changes the SelectedIndex too).
21041 Instead move it to OnSelectionChangeCommitted.
21043 2006-10-13 Chris Toshok <toshok@ximian.com>
21045 * XplatUIX11.cs: more Destroy work. the current code does the
21046 following things, in order:
21048 1. Enumerates all handles of all controls at or below the one
21049 being destroyed, in pre-order. As it is doing this, it marks the
21050 handles as zombie and clears all references to them.
21052 2. calls XDestroyWindow on the window passed in.
21054 3. SendMessage's WM_DESTROY to all he handles in the accumulated
21057 2006-10-13 Chris Toshok <toshok@ximian.com>
21059 * XplatUIX11.cs: set hwnd.zombie to true before calling
21060 SendMessage (WM_DESTROY). this keeps us from marking the new
21061 window a zombie, and also keeps us from calling sendmessage at
21064 2006-10-13 Jackson Harper <jackson@ximian.com>
21066 * TextControl.cs: Do not show the caret and selection at the same
21067 time. Reduces ugliness by 35%.
21069 2006-10-13 Chris Toshok <toshok@ximian.com>
21071 * XplatUIX11.cs (SendWMDestroyMessages): set the hwnd to be a
21072 zombie after we do the recursive call, so we actually do call
21073 SendMessage on the children controls.
21074 (GetMessage): if we find a pending paint event for a zombie hwnd,
21075 remove the hwnd from the paint queue, or else it will always be
21076 there (and we'll effectively loop infinitely)
21078 2006-10-13 Mike Kestner <mkestner@novell.com>
21080 * MenuItem.cs : add Selected format under keynav too.
21083 2006-10-13 Gert Driesen <drieseng@users.sourceforge.net>
21085 * PropertyGrid.cs: Fixed some NRE's and small difference between our
21086 implementation and that of MS.
21088 2006-10-13 Chris Toshok <toshok@ximian.com>
21090 * Control.cs (OnInvalidated) only futz with the invalid_region if
21091 the control is double buffered. this fixes the apparent hang in
21092 the ListView unit tests. Someone needs to make the
21093 BeginEndUpdateTest not call OnInvalidated 15004 times, though..
21095 2006-10-13 Chris Toshok <toshok@ximian.com>
21097 * PropertyGridView.cs:
21099 - do a little refactoring so that only one place calls
21100 dropdown_form.Hide, and that is CloseDropDown. make everywhere
21101 else call that. Also make it Refresh, since there are redraw bugs
21102 otherwise (we should take a look at that...)
21104 - do a little more refactoring work to share the body of code
21105 involved with the drop down. it was duplicated in the code
21106 dealing with the listbox handling and in the code dealing with the
21109 - add a Capture to the dropdown form's control once it's
21110 displayed, and add a MouseDown handler that checks to make sure
21111 the position is inside the control. If it's not, close the
21112 dropdown. This fixes #78190.
21114 - in SetPropertyValueFromUITypeEditor, only call SetPropertyValue
21115 if the value is different than the initial value.
21117 2006-10-13 Andreia Gaita <shana.ufie@gmail.com>
21119 * Control.cs: see #78650
21120 - Fixed GetNextControl for several cases:
21121 - Changed FindFlatForward to return
21122 correct sibling control when more than one
21123 control has same TabIndex as the currently
21125 - Changed FindFlatBackward to loop children
21126 from last to first and apply same logic as in
21128 - Changed FindControlForward to search for
21129 children when control is not a container
21130 but has children, or search for siblings if
21131 control is a container...
21132 - Changed FindControlBackward to continue
21133 searching for child controls when hitting
21136 - Fixed Focus method to update ActiveControl
21137 (FocusTest.FocusSetsActive failure)
21140 - Focus rectangle now refreshes when gaining
21142 - Removed grab for Tab key on IsInputKey that
21143 was keeping tab navigation from working (#78650)
21145 2006-10-13 Chris Toshok <toshok@ximian.com>
21147 * PropertyGridView.cs:
21148 - Rewrite SetPropertyValue to loop over SelectedGridItem's
21151 - Deal with GridItem.Value == null a few places.
21154 - replace the PopulateGridItemCollection with a pair of methods
21155 which compute the intersection of all the properties in the
21156 SelectedObjects array. Fixes #79615.
21158 - Throw ArgumentException from set_SelectedObjects if there's a
21161 - Add GetTarget method which can be used to traverse up the
21162 GridItem.Parent chain. It depends on the assumption that
21163 selected_objects for different GridEntries are always in the same
21164 order (a safe assumption). Use this method and loop over all the
21165 selected objects in the entry when calling RemoveValueChanged and
21168 * GridEntry.cs: Make this handle multiple selected objects.
21169 .Value returns null if not all the selected objects share the same
21172 2006-10-12 Jonathan Pobst <monkey@jpobst.com>
21173 * ToolStrip.cs, ToolStripButton.cs, ToolStripComboBox.cs,
21174 ToolStripControlHost.cs, ToolStripItem.cs, ToolStripLabel.cs,
21175 ToolStripProfessionalRenderer.cs, ToolStripProgressBar.cs,
21176 ToolStripSeparator.cs, ToolStripSplitStackLayout.cs,
21177 ToolStripTextBox.cs: Add accessibility, fix attributes/API and
21178 add additional functionality.
21180 2006-10-12 Mike Kestner <mkestner@novell.com>
21182 * ErrorProvider.cs : new ToolTipWindow ctor sig.
21183 * HelpProvider.cs : new ToolTipWindow ctor sig.
21184 * ToolTip.cs : remove ToolTip param from Window sig since it is
21186 * ToolBar.cs : add tooltip support. Fixes #79565.
21188 2006-10-12 Rolf Bjarne Kvinge <rolfkvinge@ya.com>
21190 * ComboBox.cs: move the events in set_SelectedIndex to
21191 after the call to HighlightIndex in order to avoid
21192 possible recursion and subsequent problems with the call
21193 to HighlightIndex and include a range check in
21194 set_HighlightIndex. Fixes #79588
21196 2006-10-12 Rolf Bjarne Kvinge <rolfkvinge@ya.com>
21198 * MonthCalendar.cs: When FirstDayOfWeek is default set firstday
21199 to ui thread's settings instead of sunday.
21200 * ThemeWin32Classic.cs: Localize the day string. Fixes #79563
21202 2006-10-12 Rolf Bjarne Kvinge <rolfkvinge@ya.com>
21204 * DateTimePicker.cs
21206 * ThemeWin32Classic.cs: rewrote DateTimePicker to fix bug #78364
21207 and implement missing functionality (selecting different parts
21208 of the date and edit them individually with the keyboard).
21210 2006-10-11 Chris Toshok <toshok@ximian.com>
21212 * Control.cs (OnInvalidated): fix NRE relating to last change.
21214 2006-10-11 Chris Toshok <toshok@ximian.com>
21216 * XplatUIX11.cs (SetWMStyles): make sure we include the MAXIMIZED
21217 atoms in _NET_WM_STATE here if the window is maximized. We need
21218 to do this because we're *replacing* the existing _NET_WM_STATE
21219 property, so those atoms will be lost otherwise, and any further
21220 call to GetWindowState will return Normal for a window which is
21221 actually maximized. Fixes #79338.
21223 2006-10-11 Jackson Harper <jackson@ximian.com>
21225 * TextControl.cs: Special case for setting selection end to
21226 selection start, we basically kill the anchor.
21227 - some todo comments.
21229 2006-10-11 Chris Toshok <toshok@ximian.com>
21231 * Control.cs: switch to using an "invalid_region" to track which
21232 parts of the image buffer need updating. This is more code than
21233 the simple fix from r66532. That version just attempted to always
21234 fill the entire buffer on redraw, which turns out to be
21235 inefficient when invalidating small rectangles. This version
21236 simply adds the invalid rectangle to the invalid region. When we
21237 get any WM_PAINT message we see if it can be filled using the
21238 image buffer, and if it can't (if the paint event's clip rectangle
21239 is visible in the invalid region) we first fill the image buffer.
21240 So, the image buffer is still a cache, we just fill it lazily.
21242 * PaintEventArgs.cs: remove the SetClipRectangle method, we don't
21243 need it any longer.
21245 2006-10-11 Chris Toshok <toshok@ximian.com>
21247 * XplatUIX11.cs (SetWindowPos): we need to update both position as
21248 well as size after calling XMoveResizeWindow. This keeps us from
21249 ignoring future SetWindowPos calls. Fixes the disappearing
21250 DateTimePicker in the ToolBarDockExample from bug #72499.
21252 2006-10-11 Chris Toshok <toshok@ximian.com>
21254 * TextBoxBase.cs: reorder things a bit when it comes to
21255 resizing-causing-recalculation. we were recalculating the
21256 document when our position was changed, which shouldn't happen.
21257 We only care about size changes. Clear up some more redundant
21258 recalculation calls while I'm at it. This makes the toolbar dock
21259 example snappy when you're just dragging toolbars around (since it
21260 causes a relayout whenever you move one.)
21262 2006-10-11 Chris Toshok <toshok@ximian.com>
21264 * ToolBarButton.cs (get_Rectangle): this only returns
21265 Rectangle.Empty if Visible == false, or Parent == null.
21266 Parent.Visible doesn't matter.
21268 2006-10-10 Chris Toshok <toshok@ximian.com>
21270 * Control.cs, PaintEventArgs.cs: "internal set { .. }" isn't loved
21271 by .net 1.1, so switch to an internal method instead.
21273 2006-10-10 Chris Toshok <toshok@ximian.com>
21275 * Control.cs (WM_PAINT): when a control is double buffered we draw
21276 initially to the ImageBuffer and then copy from there. But when a
21277 parent control which has child controls is double buffered, the
21278 initial drawing doesn't encompass the entire ClientRectangle of
21279 the parent control, so we end up with uninitialized bits (this is
21280 easily seen by dragging the top toolbar in
21281 wf-apps/ToolBarDockExample to the right, quickly). The fix is to
21282 manually set the ClipRectangle of the paint_event (only the one we
21283 use to populate the ImageBuffer) to ClientRectangle. Fixes more
21284 of the nastiness in bug #72499.
21286 * PaintEventArgs.cs: Add an internal setter for ClipRectangle,
21287 which we use in Control.cs's WM_PAINT handling.
21289 2006-10-10 Jackson Harper <jackson@ximian.com>
21291 * TextBoxBase.cs: Finish off the autoscrolling stuff.
21293 2006-10-10 Chris Toshok <toshok@ximian.com>
21295 * Cursor.cs: Apply a slightly different patch to the one suggested
21298 2006-10-10 Jackson Harper <jackson@ximian.com>
21300 * MenuItem.cs: Make sure to put the mdi child in the hashtable,
21301 not the parent form.
21302 * TextControl.cs: use difference in old line count vs new count to
21303 calculate how many lines were added, this takes into account soft
21304 line breaks properly.
21306 2006-10-10 Chris Toshok <toshok@ximian.com>
21308 * LinkLabel.cs: don't call MeasureCharacterRanges against a
21309 rectangle located at 0,0 and the size of the text. Use
21310 ClientRectangle instead. This fixes rendering of non-left aligned
21313 2006-10-10 Jackson Harper <jackson@ximian.com>
21315 * TextBoxBase.cs: When we set the selection start position the
21317 * TextControl.cs: Need to update the caret when we decrement it to
21319 - Make sure that the selection_visible flag gets reset to false if
21320 the selection isn't visible. Before this you could get it set to
21321 visible by changing the selection start, then changing the end to
21324 2006-10-09 Jackson Harper <jackson@ximian.com>
21326 * TreeView.cs: Don't update scrollbars when we aren't visible.
21327 * TreeNodeCollection.cs: Only need to update scrollbars if being
21328 added to an expanded visible node or the root node.
21330 2006-10-09 Chris Toshok <toshok@ximian.com>
21332 * XplatUIX11.cs (SendMessage): fix NRE.
21334 2006-10-09 Jackson Harper <jackson@ximian.com>
21336 * TextBoxBase.cs: Implement horizontal autoscrolling.
21337 * TextControl.cs: Add a movement types that allows moving forward
21338 and backwards without wrapping.
21340 2006-10-09 Mike Kestner <mkestner@novell.com>
21342 * ListViewItem.cs : layout changes for wrapped LargeIcon labels
21343 with focus "expansion" of labels. Fixes #79532 and then some.
21344 * ThemeWin32Classic.cs : add LineLimit to ListView label format
21347 2006-10-09 Jackson Harper <jackson@ximian.com>
21349 * TextBoxBase.cs: Set the default max values to MaxValue since
21350 we use the scrollbar for autoscrolling and the default value is
21351 100. If we don't do this the caret won't keep up with typing
21352 after about 18 characters.
21353 * TextControl.cs: Make sure the selection is offset by the
21354 viewport x. This fixes selection when using auto scrolling.
21356 2006-10-07 Andreia Gaita <shana.ufie@gmail.com>
21358 * Form.cs: The active control should be selected after the
21359 OnLoad so that any child control initialization that affects
21360 the selection is done. Fixes #79406
21362 2006-10-06 Chris Toshok <toshok@ximian.com>
21364 * XplatUIX11.cs: This is perhaps a dangerous change, but it seems
21365 to have no evil effects.
21367 - Stop selecting StructureNotifyMask on non-toplevel windows.
21369 The only way children should be resized is by using the SWF api,
21370 and we already send WM_WINDOWPOSCHANGED messages in those cases.
21371 Toplevel windows can be interacted with via the window manager,
21372 and so we keep the input mask there.
21374 The other event StructureNotifyMask gives us (that we care
21375 about) is DestroyNotify. The code is already structured such
21376 that it assumes we won't be getting a DestroyNotify event for
21377 the window we pass to XDestroyWindow (which is what
21378 StructureNotifyMask is supposed to guarantee.) So, that code
21379 shouldn't be affected by this either.
21381 - Stop selecting VisibilityChangeMask altogether.
21383 We weren't doing anything with the resulting events anyway.
21385 This vastly reduces the number of X requests and events we see
21386 when resizing/laying out a large ui.
21388 2006-10-06 Chris Toshok <toshok@ximian.com>
21390 * ScrollableControl.cs (DisplayRectangle): we need to take into
21391 account the DockPadding regardless of whether or not auto_scroll
21392 == true. rework this slightly to this effect, and fix bug #79606,
21393 and part of #72499 (you can now see the drag handles and drag
21396 2006-10-06 Gert Driesen <drieseng@users.souceforge.net>
21398 * ListViewItem.cs: Collections of selected and checked items are now
21399 dynamically rebuilt. Whenever an item is (un)checked or (de)selected
21400 we mark the collection "dirty".
21401 * ListView.cs: Marked collections readonly. Modified UpdateSelection
21402 to only clear SelectedItems when a new item is selected and MultiSelect
21403 is enabled. CheckedItems and SelectedItems now subscribe to Changed
21404 event of ListViewItemCollection, and mark its list dirty whenever
21405 that event is fire. This allows us to return selected/checked items
21406 in the same order as they are in the Items collection. This matches
21409 2006-10-06 Chris Toshok <toshok@ximian.com>
21411 * NotifyIcon.cs (HandleMouseUp): only show the context menu on
21412 right mouse clicks. Fixes bug #79593.
21414 2006-10-06 Chris Toshok <toshok@ximian.com>
21416 * Splitter.cs: doh, fix splitters that don't want to cancel the
21417 movement when you drag them. Also, impose the limits on the
21418 values we send to the SplitterMovingEvent. Fixes #79598.
21420 2006-10-06 Jackson Harper <jackson@ximian.com>
21422 * TextBoxBase.cs: Ignore whether or not the scrollbar is enabled,
21423 since we use this for auto scrolling also.
21425 2006-10-05 Chris Toshok <toshok@ximian.com>
21427 * DataGridBoolColumn.cs: Nuke the code from ConcedeFocus. I'm
21428 beginning to think that most datagrid column types don't need this
21429 method. Fixes bug #79392.
21431 2006-10-05 Chris Toshok <toshok@ximian.com>
21433 * DataGrid.cs: move back to a more lazy scheme for creating the
21434 CurrencyManager, so we aren't updating it every time you set
21435 either DataSource or DataMember. Also, don't call
21436 RecreateDataGridRows if the currency manager hasn't changed.
21438 2006-10-05 Chris Toshok <toshok@ximian.com>
21440 * ComboBox.cs: by the time the OnSelectionChangeCommitted event is
21441 emitted, SelectedIndex should already be updated. Fixes bug
21444 2006-10-05 Jonathan Pobst <monkey@jpobst.com>
21446 * ToolStripComboBox.cs, ToolStripControlHost.cs, ToolStripProgressBar,
21447 ToolStripTextBox.cs: Initial commit.
21448 * ToolStripItem.cs: Fixes for OnLayout, BackColor, Parent.
21450 2006-10-05 Jackson Harper <jackson@ximian.com>
21452 * TabControl.cs: We need to invalidate the tab control area when
21453 new ones are added (duh).
21455 2006-10-03 Chris Toshok <toshok@ximian.com>
21457 * Form.cs (ProcessDialogKey): if the focused control is in this
21458 form and is a button, call its PerformClick method here. Fixes
21461 2006-10-04 Jackson Harper <jackson@ximian.com>
21463 * TabPage.cs: Ignore setting of Visible, and add an internal
21464 method for setting the controls visibility. TabPage's Visible
21465 property is a little strange on MS, this seems to make us
21466 compatible, and fixes cases where people set all the tab pages to
21468 * TabControl.cs: Use the new internal setting on tab pages
21471 2006-10-03 Mike Kestner <mkestner@novell.com>
21473 * ComboBox.cs : raise Click on ComboTextBox clicks. Fixes #79555.
21475 2006-10-03 Mike Kestner <mkestner@novell.com>
21477 * ListView.cs : use is_visible instead of Visible to check if
21478 scrollbars should be placed/sized. Also some max_wrap_width
21479 love for LargeIcon view. [Fixes #79533]
21481 2006-10-03 Atsushi Enomoto <atsushi@ximian.com>
21484 Make set_TextAlign() do actually update the align. Fixed #78403.
21486 2006-10-03 Chris Toshok <toshok@ximian.com>
21488 * DataGrid.cs: fix a crash when switching datasources if the
21489 vertical scrollbar is at someplace other than Value = 0. Also,
21490 reduce the number of recalculation passes we do in SetDataSource
21493 2006-10-03 Jackson Harper <jackson@ximian.com>
21495 * TextBoxBase.cs: Move the if value the same bail check up, we
21496 don't want to empty the document if it is already empty, this
21497 seems to severly mess up the caret. TODO: I should probably fix
21498 the empty statement to update teh caret somehow.
21500 2006-10-03 Chris Toshok <toshok@ximian.com>
21502 * ThemeWin32Classic.cs, DataGrid.cs: some changes so that the
21503 incredibly hacky Windows.Forms FAQ autosize rows entry (it uses
21504 reflection, an internal row type, properties on said type, etc.)
21505 will work with our datagrid. Fixes #79531.
21507 2006-10-03 Alexander Olk <alex.olk@googlemail.com>
21509 * FileDialog.cs: Don't crash if a path is not accessible
21510 (System.UnauthorizedAccessException). Fixes #79569.
21511 * MimeIcon.cs: Workaround for a Uri bug. Unix paths/files can have
21512 a ':' too. Return unknown icon for those paths/files.
21514 2006-10-03 Sebastien Pouliot <sebastien@ximian.com>
21516 * ToolTip.cs: Fix rare, but possible, NRE on MouseEnter when
21517 GetContainerControl returns null.
21519 2006-10-02 Chris Toshok <toshok@ximian.com>
21521 * XplatUIX11.cs (GetWindowState): use hwnd.client_window in the
21522 call to XGetWindowAttributes instead of "handle". fixes an X
21523 error using notifyicon after the NotifyIconWindow to Form base
21526 2006-10-02 Chris Toshok <toshok@ximian.com>
21528 * XplatUIX11.cs (QueryPointer): new function, encapsulating the
21529 server grab and looping we need to do to get down to the most
21530 deeply nested child window.
21531 (SetCursorPos): use QueryPointer instead of GetCursorPos, and call
21532 QueryPointer again after the WarpPointer so we can generate a
21533 proper (fake) MotionNotify event to be enqueued in the destination
21535 (GetCursorPos): call QueryPointer.
21539 2006-10-02 Jackson Harper <jackson@ximian.com>
21541 * NotifyIcon.cs: Derive the notify icon from a form, so things
21542 like FindForm work on it.
21543 - Swallow the WM_CONTEXTMENU message, since that is generated on
21544 mouse down, and context menu is a mouse up kinda guy. I believe
21545 the correct fix here is probably to make the notify icon entirely
21546 NC area, but this seems to work fine for anyone not manipulating
21549 2006-10-02 Jonathan Pobst <monkey@jpobst.com>
21551 * ToolStrip.cs, ToolStripButton.cs, ToolStripItem.cs,
21552 ToolStripItemCollection.cs, ToolStripLabel.cs,
21553 ToolStripProfessionalRenderer.cs, ToolStripRenderer.cs,
21554 ToolStripSeparator.cs, ToolStripSplitStackLayout.cs:
21555 Initial implementation.
21556 * TextRenderer.cs: Provide padding to MeasureText.
21558 2006-10-02 Sebastien Pouliot <sebastien@ximian.com>
21560 * ButtonBase.cs: Fix CreateAccessibilityInstance to return an instance
21561 of ButtonBaseAccessibleObject. Fix bug #79552.
21563 2006-10-02 Jackson Harper <jackson@ximian.com>
21565 * MdiWindowManager.cs: When maximizing use the containers client
21566 rect, not it's bounds, so nc area is accounted correctly.
21567 - Use the parent form's size for the menu position, since the
21568 client isn't always the full form size.
21570 2006-10-01 Chris Toshok <toshok@ximian.com>
21572 * ScrollableControl.cs: make sure neither right_edge or
21573 bottom_edge are < 0, since they're used as LargeChange for the
21574 horiz/vert scrollbars respectively. Fixes #79539.
21576 2006-10-01 Chris Toshok <toshok@ximian.com>
21578 * NotifyIcon.cs: add NotifyIconWindow.InternalRecreateHandle, so
21579 the xplatuix11 code can cause us to destroy/recreate our handle.
21583 - this code can be invoked many times for the same Hwnd. Make
21584 sure we only destroy the client window once (the first time this
21585 method is called). This fixes bug #79544.
21586 - Remove the call to the improperly bound XSync. why we had two
21587 bindings to this, I will never know, but this call resulted in
21588 events being discarded from the queue(!).
21589 - correct a misunderstanding of _XEMBED_INFO - the second atom is
21590 not our current state but the state we wish to be in. So, 0 if
21591 we don't want to be mapped. Change it to 1.
21592 (SystrayRemove): The XEMBED spec makes mention of the fact that
21593 gtk doesn't support the reparent of client windows away from the
21594 embedder. Looking at gtksocket-x11.c seems to agree with this.
21595 The only avenue we have for removing systray icons is to destroy
21596 them. We don't want the handle to go away for good, though, so
21597 call InternalRecreateHandle on the NotifyIconWindow. Fixes
21600 2006-10-01 Chris Toshok <toshok@ximian.com>
21602 * Form.cs (WndProc): inline the native_enabled variable usage into
21603 the cases in which it's used. Fixes #79536.
21605 2006-09-29 Mike Kestner <mkestner@novell.com>
21607 * ListView.cs : toggle the selection state for ctrl clicks in
21608 multiselect mode. [Fixes #79417]
21610 2006-09-29 Mike Kestner <mkestner@novell.com>
21612 * ListView.cs : kill CanMultiSelect and refactor the selection
21613 code to support multiselection in the absence of mod keys. Steal
21614 arrow/home/end keys by overriding InternalPreProcessMessage to
21615 restore regressed keynav behavior.
21618 2006-09-29 Jackson Harper <jackson@ximian.com>
21620 * MdiClient.cs: Repaint the titlebars when the active window is
21623 2006-09-29 Chris Toshok <toshok@ximian.com>
21625 * Application.cs: when entering a runloop with a modal, make sure
21626 the hwnd is enabled. Fixes #79480.
21628 2006-09-29 Chris Toshok <toshok@ximian.com>
21630 * DataGrid.cs (CurrentCell): if we try to navigate to the add row
21631 when ListManager.CanAddRows == false, bump us back one.
21633 * DataGridColumnStyle.cs (ParentReadOnly): remove the
21634 listmanager.CanAddRows check. This makes ArrayLists uneditable
21635 using a datagrid, which is not right.
21636 (SetColumnValueAtRow): call IEditable.BeginEdit if source[rowNum]
21637 is an IEditable, but call property_descriptor.SetValue regardless.
21640 2006-09-29 Chris Toshok <toshok@ximian.com>
21642 * DataGridBoolColumn.cs: we need to test equality in the face of
21643 possible null values (as is the case with the default NullValue).
21644 This patch keeps us from crashing in that case.
21646 2006-09-29 Jackson Harper <jackson@ximian.com>
21648 * TreeNodeCollection.cs: Don't do a recalculate/updatescrollbars
21649 here, since it will get called for every node collection in the
21650 tree. This is now done in the treeview once the sorting is
21652 * TreeView.cs: Recalculate the visible order, and update the
21653 scrollbars after sorting, set the top nope to the root so that the
21654 recalc actually works.
21656 2006-09-29 Chris Toshok <toshok@ximian.com>
21658 * LinkLabel.cs: more handling of the default link collection in
21659 the face of LinkArea manipulation. The default link collection
21660 contains 1 element (start=0,length=-1). If the user sets LinkArea
21661 to anything and the links collection is the default, clear it.
21662 Then only add the link if its nonempty. Fixes #79518.
21664 2006-09-29 Chris Toshok <toshok@ximian.com>
21666 * LinkLabel.cs (CreatePiecesFromText): calculate the length of a
21667 piece correctly when we hit a '\n'. Fixes #79517.
21669 2006-09-29 Chris Toshok <toshok@ximian.com>
21671 * MimeIcon.cs, ThemeGtk.cs, X11DesktopColors.cs, XplatUIX11GTK.cs:
21672 change the binding of gdk_init_check to take two IntPtr's, and
21673 pass IntPtr.Zero for both of them. Fixes #79520.
21675 2006-09-29 Mike Kestner <mkestner@novell.com>
21677 * ComboBox.cs : raise TextChanged on ComboTextBox.TextChanged.
21680 2006-09-28 Jackson Harper <jackson@ximian.com>
21682 * XplatUIX11.cs: When translating NC messages make sure we go from
21683 whole window to screen, not client window to screen.
21684 * MdiClient.cs: Remove the calls to PaintWindowDecorations, this
21685 method doesn't exist
21686 - Skip over controls that aren't forms when arranging.
21688 2006-09-28 Jackson Harper <jackson@ximian.com>
21690 * XplatUIWin32.cs: Clip the rect to the parent window.
21691 * XplatUIStructs.cs: Add clipping modes struct.
21692 * InternalWindowManager.cs: New private method that factors title
21693 bar heights in when calculating the pos of an NC mouse message.
21694 - Use SendMessage to force a paint when the form's size is changed
21695 instead of painting the decorations immediately.
21696 - Don't let the NC button click messages get to DefWndProc,
21697 because they will attempt to handle windowing themself, and this
21698 messes up z-order (it will put them in front of the scrollbars).
21699 * XplatUIX11.cs: Make sure that we don't reset window managers if
21700 we already have one (ie the window is an MDI window).
21702 2006-09-28 Chris Toshok <toshok@ximian.com>
21704 * MainMenu.cs: fix #79405 by way of a disgusting hack. all the
21705 menu code really needs going over.
21707 2006-09-27 Chris Toshok <toshok@ximian.com>
21709 * XplatUIX11.cs (SetWMStyles): more metacity wonderment. turns
21710 out metacity ignores the MAXIMIZE_HORZ/VERT messages unless the
21711 window is maximizable. So, we need to make sure that even if we
21712 clear the border/wm frame of those functions, they're still
21713 available (basically, we remove the decoration without removing
21714 the function). Half the fix for #79338.
21716 2006-09-27 Chris Toshok <toshok@ximian.com>
21718 * DataGrid.cs (ProcessGridKey): implement Shift-Tab handling.
21721 2006-09-27 Chris Toshok <toshok@ximian.com>
21723 * Splitter.cs: reorder things a bit so that we don't actually
21724 draw/move the splitter until after calling OnSplitterMoving. This
21725 lets users cancel/disallow the movement by explicitly setting
21726 event.SplitX/SplitY. Fixes #79372.
21728 2006-09-27 Jackson Harper <jackson@ximian.com>
21730 * XplatUIX11.cs: Don't hide the caret when it is being destroyed,
21731 because it is most likely on a window being destroyed, and that
21732 will give us an X11 error.
21734 2006-09-27 Chris Toshok <toshok@ximian.com>
21736 * PropertyGridView.cs: half of the fix for #78190. Clicking on
21737 the dropdown button now toggles between showing and hiding the
21738 dropdown. Also, get rid of dropdown_form_showing and just use
21739 dropdown_form.Visible. We still don't do a grab, but I'll leave
21740 that part to someone who has handled Capture-fu before.
21742 2006-09-27 Chris Toshok <toshok@ximian.com>
21744 * DataGrid.cs: return false if alt isn't pressed when '0' is
21745 pressed. this keeps the '0' key from being swallowed, and fixes
21748 2006-09-27 Chris Toshok <toshok@ximian.com>
21750 * ComboBox.cs: use Invalidate when scrolling the dropdown list.
21751 Calling Refresh (in response to a scrollbar event) screws up the
21752 scrollbar painting. Fixes bug #78923.
21754 2006-09-27 Chris Toshok <toshok@ximian.com>
21756 * Theme.cs (SystemResPool): make the "if hashtable[key] == null
21757 then insert into hashtable" blocks threadsafe.
21759 2006-09-27 Chris Toshok <toshok@ximian.com>
21761 * MessageBox.cs (CreateParams): the styles should be |'ed with our
21762 baseclass's, since otherwise the
21763 ControlBox/MinimizeBox/MaximizeBox assignments above have no
21764 effect. This gets the close button back in messageboxes.
21766 2006-09-27 Chris Toshok <toshok@ximian.com>
21768 * XplatUIX11.cs: make StyleSet and ExStyleSet check == with the
21769 flag, not just != 0. this makes flags that are actually multiple
21770 bits (like WS_CAPTION) work. fixes bug #79508.
21772 2006-09-27 Jordi Mas i Hernandez <jordimash@gmail.com>
21774 * PageSetupDialog.cs: add support for getting and settings the
21775 paper size, source and orientation.
21777 2006-09-26 Chris Toshok <toshok@ximian.com>
21779 * XplatUIX11.cs (SetWMStyles): turns out when SYSMENU is not set
21780 and caption == "", we need to remove the resize handles as well as
21783 * Control.cs (set_Text): turns out that setting Text on a form
21784 should change the WM styles on the window, since if ControlBox ==
21785 false, the only way to get a window border is to have a non-""
21786 Text property. check winforms/forms/text.cs for an example. so,
21787 call both XplatUI.SetWindowStyle and XplatUI.Text here to properly
21788 update both window styles and title. This fixes a lot of dialogs
21789 (including the preferences dialog in MonoCalendar.)
21791 2006-09-26 Chris Toshok <toshok@ximian.com>
21793 * XplatUIWin32.cs (SetParent): if parent == IntPtr.Zero (and the
21794 control isn't a Form), call Win32ShowWindow to hide the window,
21795 but don't update the control Visible property. When we reparent
21796 back to a parent control, call SetVisible in order for the
21797 window's visibility to be reinstated.
21799 * XplatUIX11.cs (SetParent): if hwnd.parent == null, reparent to
21802 * Control.cs (ControlCollection.Remove): remove that value.Hide()
21803 call for good, since it breaks MonoCalendar (and other things I'm
21804 sure.) Also, set all_controls to null *after* the owner calls,
21805 which end up regenerating it.
21806 (ChangeParent): allow new_parent to be == null, passing
21807 IntPtr.Zero down to XplatUI.
21809 this fixes #79294 the right way.
21811 2006-09-26 Mike Kestner <mkestner@novell.com>
21813 * GridEntry.cs : internal SetParent method.
21814 * PropertyGrid.cs : attach to property changed on the proper
21815 target if we have a hierarchical grid with subobjects. Setup
21816 GridItem.Parent for hierarchical items.
21817 * PropertyGridView.cs : Set value on the correct target for
21818 hierarchical grids. [Fixes #78903]
21820 2006-09-26 Chris Toshok <toshok@ximian.com>
21822 * Control.cs (ChildNeedsRecreating): this should return true if
21823 either we're being recreated and the child is in our list, or our
21824 parent is waiting for our recreation.
21826 2006-09-26 Chris Toshok <toshok@ximian.com>
21828 * Control.cs (ControlCollection.Remove): reinstate the
21829 value.Hide() call as suggested in bug #79294.
21831 2006-09-26 Sebastien Pouliot <sebastien@ximian.com>
21833 * XplatUIX11.cs: Fixed SetCursorPos to move the cursor to screen
21834 coordinates (versus a relative move).
21836 2006-09-26 Chris Toshok <toshok@ximian.com>
21838 * Control.cs: rework child recreation a little bit. It turns out
21839 that we race between the DestroyNotify the WM_DESTROY message. If
21840 the parent gets its DestroyNotify before the child gets the
21841 WM_DESTROY message, the child ends up not recreating (since the
21842 parent finishes its recreation on DestroyNotify, and the child
21843 checks ParentIsRecreating.)
21845 So, instead we store off a list of all the child controls which
21846 need to be recreated when the parent control starts to recreate
21847 itself. Then, when child controls get their WM_DESTROY message we
21848 check to see if they're in the parent's pending recreation list,
21849 and if so, we recreate. This removes all dependency on ordering
21850 from the code and fixes the initial MonoCalendar upgrade dialog.
21852 2006-09-26 Jackson Harper <jackson@ximian.com>
21854 * TextControl.cs: Use the Line to get the length of the line,
21855 since soft line breaks can change the end line.
21857 2006-09-26 Chris Toshok <toshok@ximian.com>
21859 * Control.cs (ControlCollection.AddImplicit): don't add the
21860 control again if it's already in one of our lists. This keeps us
21861 from adding controls over and over again for comboboxes when their
21862 handle gets recreated (as the combobox adds implicit controls in
21863 OnHandleCreated). Fixes the X11 errors in bug #79480.
21865 2006-09-26 Jackson Harper <jackson@ximian.com>
21867 * TextControl.cs: When deleting characters make sure that any
21868 orphaned zero lengthed tags get deleted.
21869 - Fix ToString for zero lengthed tags.
21871 2006-09-25 Jackson Harper <jackson@ximian.com>
21873 * TextControl.cs: When getting a tag at the location there can be
21874 multiple tags at the same spot, these are 0-lengthed tags that
21875 appear when extra formatting has been stuck in a location. We
21876 need to pull out the last of these 0 lengthed tags.
21878 2006-09-25 Jackson Harper <jackson@ximian.com>
21880 * TextControl.cs: Fix print out in debug method.
21881 * TextBoxBase.cs: When text is set bail if we are setting to the
21884 2006-09-24 Alexander Olk <alex.olk@googlemail.com>
21886 * FontDialog.cs: Fixed the up/down arrow keys issue from bug #79478.
21887 It is now possible to change the selected index in a FontXXXListBox
21888 with the up and down arrow keys from the FontXXXTextBoxes.
21889 Also, send the FontXXXTextBox mouse wheel event to the corresponding
21890 FontXXXListBoxes to match ms.
21892 2006-09-22 Sebastien Pouliot <sebastien@ximian.com>
21894 * SystemInformation.cs: Return a clone of the theme's MenuFont because
21895 anyone can dispose it, anytime. All other properties returns enums,
21896 structs or basic types so they don't need such tricks.
21898 2006-09-22 Jackson Harper <jackson@ximian.com>
21905 * XplatUIDriver.cs: Update interface to add a primary selection
21906 flag, so the driver can use the primary selection buffer if
21908 * XplatUIX11.cs: Allow the clipboard to retrieve from PRIMARY.
21910 * RichTextBox.cs: We need to supply the data object to paste now
21911 (so we can choose to supply CLIPBOARD or PRIMARY).
21912 * TextBoxBase.cs: Supply data object to paste (see above).
21913 - Middle click uses the primary selection data object.
21915 2006-09-21 Chris Toshok <toshok@ximian.com>
21917 * XplatUIX11.cs: first little cleanup of the StyleSet (...) block
21918 of SetWMStyles. It's still a rat's nest and is largely
21919 order-dependent which I dislike immensely. This also fixes the X
21920 button disappearing from toplevel forms.
21922 2006-09-21 Mike Kestner <mkestner@novell.com>
21924 * ListBox.cs: move Jordi's click/dblclick raising code to the
21927 2006-09-21 Jordi Mas i Hernandez <jordimash@gmail.com>
21929 * ListBox.cs: Fixes 79450
21931 2006-09-21 Mike Kestner <mkestner@novell.com>
21933 * TreeView.cs: guard against disposed conditions in UpdateScrollbars
21934 to deal with people updating the TreeNodeCollection after the tree
21935 is disposed. "Fixes" 79330.
21937 2006-09-20 Jackson Harper <jackson@ximian.com>
21939 * TextControl.cs: Push the cursor record onto the undo stack
21940 before the delete action. This fixes 78651.
21942 2006-09-20 Jonathan Chambers <joncham@gmail.com>
21944 * PropertyGridView.cs: Remove WindowStyles.WS_VISIBLE from
21945 CreateParams. Fixes 79329.
21947 2006-09-19 Chris Toshok <toshok@ximian.com>
21949 * XplatUIX11.cs: a couple of blanket code massage passes to clean
21950 things up a bit. First, get rid of the NetAtoms array (and the NA
21951 enum), and just embed the atoms as static fields. Also, add a
21952 couple of functions (StyleSet and ExStyleSet) to clean up all the
21953 bitmask testing of styles.
21955 * X11Structs.cs: remove the NA enum, not needed anymore.
21957 2006-09-19 Chris Toshok <toshok@ximian.com>
21959 * XplatUIX11.cs: apply Alexander's tool window fix for bug #79245
21960 (mapping them to _NET_WM_WINDOW_TYPE_UTILITY). and add a little
21961 added cleanup to get MessageBox titles appearing again, which were
21962 broken by my earlier fix for caption-less/ControlBox-less windows.
21964 2006-09-18 Jonathan Pobst <monkey@jpobst.com>
21966 * ToolStripArrowRenderEventArgs.cs, ToolStripArrowRenderEventHandler.cs,
21967 ToolStripContentPanelRenderEventArgs.cs, ToolStripContentPanelRenderEventHandler.cs,
21968 ToolStripGripRenderEventArgs.cs, ToolStripGripRenderEventHandler.cs,
21969 ToolStripItemClickedEventArgs.cs, ToolStripItemClickedEventHandler.cs,
21970 ToolStripItemEventArgs.cs, ToolStripItemEventHandler.cs,
21971 ToolStripItemImageRenderEventArgs.cs, ToolStripItemImageRenderEventHandler.cs,
21972 ToolStripItemRenderEventArgs.cs, ToolStripItemRenderEventHandler.cs,
21973 ToolStripItemTextRenderEventArgs.cs, ToolStripItemTextRenderEventHandler.cs,
21974 ToolStripPanelRenderEventArgs.cs, ToolStripPanelRenderEventHandler.cs,
21975 ToolStripRenderEventArgs.cs, ToolStripRenderEventHandler.cs,
21976 ToolStripSeparatorRenderEventArgs.cs, ToolStripSeparatorRenderEventHandler.cs:
21978 * ToolStripPanel.cs, ToolStripContentPanel.cs, ToolStripSeparator.cs,
21979 ToolStripButton.cs: Stubs needed for above.
21980 * ToolStrip.cs, ToolStripItem.cs: Stub a few variables/properties for above.
21982 2006-09-15 Chris Toshok <toshok@ximian.com>
21985 - make the MessageQueues hashtable Synchronized.
21987 - SendMessage: if the Hwnd is owned by a different thread, use the
21988 AsyncMethod stuff to dispatch the SendMessage on the hwnd's
21989 thread. Fixes bug #79201.
21991 2006-09-15 Chris Toshok <toshok@ximian.com>
21993 * XplatUIX11.cs (SetWMStyles): rework the #79368 fix slightly. If
21994 ControlBox == false, we disallow maximize/minimize/close. If the
21995 form Caption is "" we also disallow move (and get rid of the Title
21996 decoration). Unfortunately, regardless of how things are set,
21997 we're stuck with the Title and WM menu.
21999 2006-09-15 Chris Toshok <toshok@ximian.com>
22001 * Application.cs: add locking around the static message_filters
22002 ArrayList, part of #79196.
22004 2006-09-15 Chris Toshok <toshok@ximian.com>
22006 * XplatUIX11.cs (SetWMStyles): if Form.Text == "" and
22007 Form.ControlBox == false, the window has no titlebar nor resize
22008 handles. fixes bug #79368.
22010 2006-09-15 Chris Toshok <toshok@ximian.com>
22012 * TextBoxBase.cs: in CalculateScrollBars make sure LargeChange is
22013 >= 0. Fixes bug #79370.
22015 2006-09-15 Jonathan Pobst <monkey@jpobst.com>
22016 * FlowLayoutPanel.cs, FlowLayoutSettings.cs: Initial commit.
22018 Add properties: LayoutEngine, Margin, DefaultMargin.
22019 Add method: GetPreferredSize.
22020 Move layout logic from PerformLayout to layout engines.
22022 2006-09-13 Chris Toshok <toshok@ximian.com>
22024 * XplatUIX11.cs: more destroy work. Jackson pointed out that my
22025 fix for #79326 broke #78718, so this change addresses that.
22027 - in SendWMDestroyMessages remove the call to
22028 CleanupCachedWindows, since we might be recreating the control and
22029 need to maintain the references to right Hwnd handles. Also, set
22030 the zombie flag to true for each of the children in the hierarchy
22031 instead of calling hwnd.Dispose. This will cause GetMessage to
22032 ignore all events for the window except for DestroyNotify.
22034 - In GetMessage, ignore messages except for DestroyNotify for
22037 * Control.cs: revert the is_recreating fix from the last
22038 ChangeLog. It's definitely "right", but it breaks switching from
22039 an MDI form to a non-MDI form. Will need to revisit that.
22041 * Hwnd.cs: add a zombie flag, which means "the
22042 client_window/whole_window handles are invalid, but we're waiting
22043 for the DestroyNotify event to come in for them". Set the flag to
22044 false explicitly if setting WholeWindow/ClientWindow, and also
22047 2006-09-13 Chris Toshok <toshok@ximian.com>
22049 * XplatUIX11.cs: rework window destruction slightly.
22051 - when destroying the windows associated with a control, we don't
22052 need 2 separate XDestroyWindow calls. Just the one for the
22053 whole_window (or for client_window if whole_window is somehow
22054 IntPtr.Zero -- can this happen?) is enough.
22056 - reworked SendWMDestroyMessages slightly, so we always dispose
22057 the child control hwnd's after sending the messages.
22059 - refactored out the ActiveWindow/FocusWindow/Caret clearing from
22060 the two places it was used (one was even using hwnd.Handle and the
22061 other hwnd.client_window. ugh), adding another call in
22062 SendWMDestroyMessages. We need this new call because now the
22063 DestroyNotify events in the queue will be ignored for the child
22064 controls (as their hwnd's were disposed, and the window id's
22065 removed from the hashtable in SendWMDestroyMessages.) fun, eh?
22067 - this fixes bug #79326.
22069 2006-09-13 Chris Toshok <toshok@ximian.com>
22071 * Control.cs: don't always set is_recreating to false at the end
22072 of RecreateHandle, since sometimes we're not done (and won't be
22073 until WndProc handles the WM_DESTROY message). Also, set
22074 is_recreating to false in the WM_DESTROY handling code. Part of
22075 the fix for bug #79326.
22077 2006-09-13 Miguel de Icaza <miguel@novell.com>
22079 * X11DesktopColors.cs: Start the droppage of debugging messages.
22081 * FileDialog.cs: Store the configuration file in ~/.mono/mwf_config
22083 2006-09-13 Jonathan Pobst <monkey@jpobst.com>
22085 * SplitContainer.cs, SplitterPanel.cs: Initial implementation [2.0].
22087 2006-09-12 Chris Toshok <toshok@ximian.com>
22089 * DataGrid.cs (get_ListManager): if the list_manager is null, try
22090 to create it using SetDataSource. Fixes bug #79151.
22092 2006-09-11 Chris Toshok <toshok@ximian.com>
22094 * XEventQueue.cs: add a DispatchIdle property.
22096 * XplatUIX11.cs (UpdateMessageQueue): only emit the Idle event if
22097 either the queue is null, or the queue has DispatchIdle set to
22099 (DoEvents): set queue.DispatchIdle to false around the
22100 peek/translate/dispatch message loop in this method. This keeps
22101 Application.Doevents from emitting idle events. Part of the fix
22104 2006-09-11 Chris Toshok <toshok@ximian.com>
22106 * DataGrid.cs (set_DataSource): make this work for both the
22107 winforms/datagrid test and ReportBuilder. It seems as though when
22108 we've created a ListManager (or maybe it's if we have a
22109 BindingContext?), when we set the DataSource it clears the
22110 DataMember to "". otherwise we reuse the datamember. Fixes bug
22113 2006-09-11 Chris Toshok <toshok@ximian.com>
22115 * XplatUIX11.cs: deal with queue being null, which happens in all
22116 the Clipboard functions. Fixes one of the two problems mentioned
22119 2006-09-11 Chris Toshok <toshok@ximian.com>
22121 * MenuAPI.cs: rework OnMouseUp a bit so that releasing the mouse
22122 button on various spots (including outside the menu) works closer
22123 to MS, and doesn't crash. Fixes #79343.
22125 2006-09-11 Gert Driesen <drieseng@users.sourceforge.net>
22127 * ListView.cs: Do not initialize item_sorter in init. To match MS,
22128 return null for ListViewItemSorter if View is SmallIcon or LargeIcon
22129 and the internal comparer is set. When a new ListViewItemSorter is set,
22130 sort the items. Use Enum.IsDefined to verify whether a valid SortOrder
22131 was specified. No further processing is necessary if SortOrder is set
22132 to it's current value. If Sorting is modified to None, and View is
22133 neither SmallIcon nor LargeIcon then: on 2.0 profile set item_sorter
22134 (either custom or our internal ItemComparer) to null, on 1.0 profile
22135 only set item_sorter to null if its our internal IComparer. If Sorting
22136 is modified to Ascending or Descending, then use our internal IComparer
22137 if none is set, and if the current IComparer is our internal one then:
22138 on 2.0 profile always replace it with one for new Sorting, and on 1.0
22139 profile only use new Sorting if view is not SmallIcon or LargeIcon. Use
22140 Enum.IsDefined to verify whether a valid View value is specified in
22141 its setter. Automatically sort listview items when listview is
22142 created. In Sort, do nothing if ListView is not yet created, or if
22143 no item_sorter is set (no Sorting was set, Sorting was explicitly set
22144 to None or ListViewItemSorter was set to null). Added Sort overload
22145 taking a bool to indicate whether the ListView should be redrawn when
22146 items are sorted (we use this in ListViewItemCollection to avoid double
22147 redraws). Modified our internal IComparer to take the sort order into
22148 account. In Add and AddRange methods of ListViewItemCollection, also
22149 call Sort if Sorting is None (necessary for SmallIcon and LargeIcon
22150 view), but use overload with noredraw option to avoid double redraw.
22151 On 2.0 profile, throw NotSupportedException when setting CheckBoxes to
22152 true when View is Tile, and do the same when attempting to set View to
22153 Tile when CheckBoxes is true. Avoid maintaining separate ArrayLists
22154 for selected/checked indices, as it involves overhead when sorting is
22155 done while these collections are not used all that often. Instead
22156 we'll build the indices on demand. Modified IList implementation of
22157 CheckedIndexCollection to use public methods if object is int.
22158 Modified CheckedListViewItemCollection to hide checked items if
22159 ListView.CheckBoxes is false. Removed LAMESPEC remark in
22160 ListViewItemCollection as the .NET SDK docs have been fixed. Modified
22161 IList implementation in SelectedIndexCollection to use public methods
22162 if object is int. Modified SelectedListViewItemCollection to hide
22163 selected items if listview is not yet created.
22164 * ListViewItem.cs: CheckedIndices list no longer needs to be
22165 maintained separately (see ListView changes). Also clone font, fixes
22168 2006-09-11 Mike Kestner <mkestner@novell.com>
22170 * ComboBox.cs: if we are updating the contents of the currently
22171 selected index, refresh the control or the textbox selection.
22174 2006-09-11 Mike Kestner <mkestner@novell.com>
22176 * ComboBox.cs (UpdateBounds): use SetBounds not SetBoundsCore since
22177 the 'specified' logic has been moved there. This seems like a bug
22178 in Control.cs, since our current SetBoundsCore completely ignores
22179 the specified parameter. Peter's commit seems to indicate that is
22180 the way the MS control implementation works. [Fixes #79325]
22182 2006-09-10 Jonathan Chambers <joncham@gmail.com>
22184 * XplatUI.cs: Set default_class_name to be composed
22185 of current domain id. This allows MWF to be loaded in multiple
22188 2006-09-09 Miguel de Icaza <miguel@novell.com>
22190 * X11Keyboard.cs: If we are unable to obtain the input method, do
22191 not call CreateXic to create the input context. Should fix
22194 2006-09-08 Alexander Olk <alex.olk@googlemail.com>
22196 * MimeIcon.cs: Rewrote major parts. Dropped KDE support for now.
22197 Simplified gnome support by adding more pinvokes to get the
22198 icon for a file or mime type.
22200 2006-09-08 Jackson Harper <jackson@ximian.com>
22202 * MenuAPI.cs: Deslect popup context menu items before closing the
22203 window, so that you don't see the previously selected item
22204 selected when you reopen the menu.
22205 * TextControl.cs: Update the cursor position even if we don't have
22206 focus. This fixes typing in things like the ComboBox. I'm not
22207 totally sure we should always set the visibility if we don't have
22208 focus, but couldn't find any corner cases where the cursor showed
22209 up when it shouldn't.
22211 2006-09-08 Chris Toshok <toshok@ximian.com>
22213 * X11Keyboard.cs: In UpdateKeyState vkey can be any integer, but
22214 our arrays are length 256. & 0xff before indexing. Fixes the
22215 crash in bug #78077.
22217 2006-09-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
22219 * ThemeWin32Classic.cs:
22220 * DateTimePicker.cs: Draw check box if DateTimePicker.ShowCheckBox
22221 is true. Handle that check box too.
22223 2006-09-07 Chris Toshok <toshok@ximian.com>
22225 * MenuAPI.cs: move the PerformClick call to OnMouseUp. Fixes bug
22228 2006-09-07 Chris Toshok <toshok@ximian.com>
22230 * Control.cs: in set_BackColor only do the work if
22231 background_color != value.
22233 * XplatUIX11.cs: move the clearing of invalid areas (both client
22234 and nc) to the same block of code where we set (nc_)expose_pending
22235 to false. That is, move it from PaintEventEnd to PaintEventStart,
22236 so things that cause invalidates from within OnPaint will trigger
22237 another call to OnPaint. Fixes bug #79262.
22239 2006-09-07 Alexander Olk <alex.olk@googlemail.com>
22241 * Theme.cs: Use correct icon for UIIcon.PlacesPersonal
22242 * FileDialog.cs: Fix typo
22244 2006-09-07 Jackson Harper <jackson@ximian.com>
22246 * ThemeWin32Classic.cs: oops, forgot to commit. Draw the images
22247 for tab pages if they have any.
22249 2006-09-06 Mike Kestner <mkestner@novell.com>
22251 * Splitter.cs: use the "current" rect when finishing drag handle
22252 to avoid an artifact demonstrated by resedit.exe. [Fixes #79251]
22254 2006-09-06 Mike Kestner <mkestner@novell.com>
22256 * Splitter.cs: draw the drag handle at X or Y instead of 0 to deal
22257 support offset splitters. [Fixes #79298]
22259 2006-09-06 Alexander Olk <alex.olk@googlemail.com>
22261 * Mime.cs: Fixed a bug that could override the global mime type
22264 2006-09-05 Jackson Harper <jackson@ximian.com>
22266 * TabControl.cs: Better calculation method for setting the slider
22267 pos. Prevents crashes on really wide tabs.
22268 - Draw Image on tab pages if an image list is used.
22270 2006-09-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
22272 * MonthCalendar.cs: When Font changes, the Size should be
22273 updated to fit the new font's space requirements.
22275 2006-09-02 Alexander Olk <alex.olk@googlemail.com>
22277 * ListBox.cs: If the items are cleared with Items.Clear set
22280 2006-09-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
22282 * MonthCalendar.cs: Handle arrow keys as input keys. Also
22283 fire DateChanged event instead of DateSelected event when
22284 the date was changed by keyboard interaction.
22286 2006-09-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
22288 * DateTimePicker.cs: Handle DateChanged for the associated
22289 month_calendar control, and set month_calendar.Font from
22290 OnFontChanged method, as well as resize the height of the
22291 control when needed. Make PreferredHeight proportional.
22293 2006-09-01 Chris Toshok <toshok@ximian.com>
22295 * DataGrid.cs: grr, stop overthinking the DataMember/DataSource
22298 * BindingContext.cs (HashKey.GetHashCode): use ^ instead of +.
22300 2006-09-01 Peter Dennis Bartok <pbartok@novell.com>
22302 * FileDialog.cs: Set ClientSize instead of window size, to allow space
22303 for decorations (Fixes #79219)
22305 2006-09-01 Mike Kestner <mkestner@novell.com>
22307 * ComboBox.cs: first stab at sorting plus some selection handling
22308 fixes to bring us more in line with MS behavior. Also switches back
22309 to index based selection. Alternative patches for index-based
22310 selection were provided by Jackson Harper, Carlos Alberto Cortez,
22311 and latency@gmx.de on bug 78848. I assume they were similar to this
22312 code I've had simmering in my tree forever.
22315 2006-09-01 Chris Toshok <toshok@ximian.com>
22317 * CurrencyManager.cs (ListChangedHandler): in the ItemAdded case,
22318 when setting list position guard against ending up with a -1 index
22319 (the other part of the fix for #78812). Should probably make sure
22320 we don't need the analogous fix in the ItemDeleted case.
22323 - in SetDataSource, work around the fact that the way
22324 OnBindingContextChanged is invoked will cause us to re-enter this
22325 method. I'll remove the hack once I investigate
22326 OnBindingContextChanged.
22328 - fix the logic in set_DataSource and set_DataMember (basically
22329 what to do if the other of the two is null.)
22331 - in OnListManagerItemChanged, we need to take into account the
22332 edit row when deciding whether or not to call RecreateDataGridRows
22333 (part of the fix for #78812).
22335 2006-09-01 Jackson Harper <jackson@ximian.com>
22337 * Splitter.cs: Don't do anything if there is no control to affect
22338 (prevents us from crashing in weird tet cases).
22339 * TreeView.cs: Bounding box for the mouse movement reverting
22340 focus/selection back to previously selected node. This matches
22341 MS, and makes the tree a lot more useable.
22342 * GroupBox.cs: Instead of drawing over the lines of the groupbox,
22343 use clipping so they are not drawn. This fixes when the control
22344 is set to have a transparent background, or if it was over an
22347 2006-09-01 Alexander Olk <alex.olk@googlemail.com>
22349 * MimeIcon.cs: Improved handling for reading default icons when
22350 using gnome (2.16 made it necessary). Check and read svg icons
22351 first, then 48x48 and then 32x32 icons.
22353 2006-08-31 Chris Toshok <toshok@ximian.com>
22355 * DataGridTextBoxColumn.cs: only hide the textbox if it's still
22358 * DataGridTextBox.cs: Pass Tab's up to the datagrid by calling
22359 ProcessKeyPreview. Fixes part of #77806.
22361 * DataGrid.cs: big patch.
22363 - revert the queueing up of DataSource/DataMember if inside
22364 BeginInit/EndInit calls. That's not the way the datagrid achieves
22365 its delayed databinding. Instead, call SetDataSource in
22366 OnBindingContextChanged. This mimic's MS's behavior, and fixes
22369 - Also, it wasn't mentioned in #78811, but the test case exhibits
22370 behavior that was lacking in our datagrid implementation - Columns
22371 that have mapping names that don't exist in the datasource's
22372 properties aren't shown. Yuck. To fix this I added the bound
22373 field to the column style, and basically any calculation to figure
22374 out anything about columns uses a loop to find the bound columns.
22375 still need to investigate if I can cache an array of the bound
22376 columns or if the indices must be the same.
22378 - When setting CurrentCell, we no longer abort if the cell being
22379 edited was in the add row. This fixes the other part of #77806.
22381 - The new code also fixes #78807.
22383 * ThemeWin32Classic.cs: perpetrate the same disgusting
22384 column.bound field hack, and only render bound fields.
22386 2006-08-31 Chris Toshok <toshok@ximian.com>
22388 * DataGridColumnStyle.cs: add bound field. this field is true if
22389 the datasource has a property corresponding to the mapping name.
22391 * DataGridTableStyle.cs: set the bound field on the column styles
22392 depending on whether or not we have a column for that property.
22394 2006-08-31 Peter Dennis Bartok <pbartok@novell.com>
22396 * Splitter.cs (SetBoundsCore): Don't ignore width/height of the
22397 splitter control (fixes #79228)
22399 2006-08-31 Chris Toshok <toshok@ximian.com>
22401 * DataGridColumnStyle.cs: we need to delay the assignment of
22402 property descriptor until the last possible moment due to the lazy
22403 databinding stuff in the datagrid. Also, fix the exceptions
22404 thrown by CheckValidDataSource to match MS.
22406 2006-08-31 Jackson Harper <jackson@ximian.com>
22408 * Form.cs: When activated select the active control, if there is
22409 no active control, we select the first control.
22410 * XplatUIX11.cs: If there is no focus control when we get a
22411 FocusIn event, find the toplevel form and activate it. This
22412 occurs when you popup a window, it becomes the focus window, then
22413 you close that window, giving focus back to the main window.
22415 2006-08-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
22417 * MonthCalendar.cs:
22418 * ThemeWin32Classic.cs: Cache Font in bold style, as well
22419 as StringFormat with Center alignments in MonthCalendar,
22420 instead of creating new ones when drawing the control.
22421 Also, draw the month name in bold style.
22423 2006-08-30 Peter Dennis Bartok <pbartok@novell.com>
22426 - PerformLayout(): It would seem MS performs the fill even if the
22427 control is not visible (part of #79218 fix)
22428 - ResetBackColor(): Use the setter to reset the color, to allow
22429 overriders to catch the change.
22431 - .ctor: Call UpdateBounds to adjust client rectangle (part of #79218 fix)
22432 - CreateHandle(): dito (part of $79218 fix)
22433 - Don't set an icon if we have a dialog
22434 * ScrollableControl.cs:
22435 - set_AutoScrollMinSize: Setting the property enables AutoScroll (#79218)
22436 - ScrollIntoView(): No need to scroll if control is already visible
22437 (resolves fixme and fixes #79218)
22439 2006-08-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
22441 * MonthCalendar.cs: Change proportions in SingleMonthSize
22442 to match the aspect of the original control.
22444 2006-08-29 Alexander Olk <alex.olk@googlemail.com>
22446 * XplatUIX11.cs: Fix for a metacity/X problem where windows don't
22447 get updated when they get maximized.
22449 2006-08-29 Peter Dennis Bartok <pbartok@novell.com>
22451 * XplatUIX11.cs: Handle windows with no border (Fixes part of #79160)
22453 2006-08-29 Chris Toshok <toshok@ximian.com>
22455 * XplatUIX11.cs: when destroying the FocusWindow, send KILLFOCUS.
22457 2006-08-29 Jackson Harper <jackson@ximian.com>
22459 * TreeView.cs: Need to track selected node and highlighted node,
22460 they aren't always the same thing, when the mouse is down on a
22461 node it is hilighted, but not selected yet.
22462 - Do the HideSelection stuff right
22463 - Need to focus on rbutton mouse down. And redraw selection when
22464 right click is mouse upped.
22466 2006-08-29 Mike Kestner <mkestner@novell.com>
22468 * ThemeWin32Classic.cs: draw selections for columns in FullRowSelect
22469 when SubItems.Count < Columns.Count. [Fixes #79167]
22471 2006-08-28 Peter Dennis Bartok <pbartok@novell.com>
22473 * TextControl.cs (FindCursor): Fix math error (Fixes #78402)
22475 2006-08-28 Peter Dennis Bartok <pbartok@novell.com>
22477 * XplatUIX11.cs: Preempt the roundtrip for getting the location back
22478 from X. Only send based on ConfigureNotify if we don't have the
22479 correct location in hwnd (if the window manager moved us)
22481 2006-08-28 Mike Kestner <mkestner@novell.com>
22483 * ListView.cs: remove a TODO.
22484 * ThemeWin32Classic.cs: implement HideSelection support for ListView.
22485 [Fixes ListView part of #79166]
22487 2006-08-28 Mike Kestner <mkestner@novell.com>
22489 * ListView.cs: move wheel handler to parent since it is focused
22490 instead of the item_control now. [Fixes #79177]
22492 2006-08-28 Mike Kestner <mkestner@novell.com>
22494 * ThemeWin32Classic.cs: only highlight subitems in fullrowselect
22495 when the control is focused. [Fixes #79171]
22497 2006-08-28 Mike Kestner <mkestner@novell.com>
22499 * ListView.cs: size the item and header controls for empty and
22500 unscrollable views.
22501 * ThemeWin32Classic.cs: draw disabled backgrounds.
22504 2006-08-28 Chris Toshok <toshok@ximian.com>
22506 * Form.cs: remove unused "active_form" static field.
22508 * Hwnd.cs: lock around accesses to static windows collection.
22510 * Application.cs: lock threads in Exit ().
22512 2006-08-28 Chris Toshok <toshok@ximian.com>
22514 * NativeWindow.cs: lock around accesses to window_collection.
22516 2006-08-28 Chris Toshok <toshok@ximian.com>
22518 * Control.cs: err, fix this the right way, by locking on controls
22519 when using it. not by making it synchronized.
22521 2006-08-28 Chris Toshok <toshok@ximian.com>
22523 * Control.cs: make the static "controls" field synchronized, as it
22524 gets updated from multiple threads.
22526 2006-08-27 Peter Dennis Bartok <pbartok@novell.com>
22528 * XplatUIX11.cs: PostQuitMessage is thread-specific not app-specific.
22529 Prevent other threads from exiting when calling thread sets quit state.
22530 * XEventQueue.cs: Added PostQuitState property
22532 2006-08-27 Chris Toshok <toshok@ximian.com>
22534 * AsyncMethodData.cs: add a slot for the window handle.
22536 * XplatUIX11.cs (SendAsyncMethod): send the event to the right
22537 window (the destination control's window, not the foster window).
22539 * Control.cs (BeginInvokeInternal): store the window's handle in
22540 the AsyncMethodData.
22543 2006-08-27 Peter Dennis Bartok <pbartok@novell.com>
22546 - PostQuitMessage: Removed resetting S.D display handle, we might have
22547 another loop started after calling PostQuitMessage (Fixes #79119)
22548 - Created destructor to reset S.D handle
22550 2006-08-27 Peter Dennis Bartok <pbartok@novell.com>
22552 * XplatUIX11.cs (SetCursor): Issue flush after setting the cursor (#79168)
22554 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
22556 * TextControl.cs (Insert): Update the caret position even if we don't
22557 have a handle yet, just don't call the driver in that case.
22558 * TextBoxBase.cs (set_SelectedText): Set the Start and End selection
22559 to the end of the new selection text (Fixes #79184)
22561 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
22563 * Form.cs (Activate): Only activate if the handle is created)
22565 - Mark window as invisible when it's disposed
22566 - Check if window handle is created when setting window visible,
22567 instead of relying just on the is_created variable
22568 - Check if object is disposed when creating the control (Fixes #79155)
22570 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
22572 * ScrollableWindow.cs (ScrollWindow): Don't actually perform layouting
22573 when allowing layout again. Otherwise we re-generate the anchoring
22574 distance to the border again and actually alter what the user wanted
22575 This is ugly, it'd be better if we used DisplayRectangle instead of
22576 ClientRectangle for Control.UpdateDistances, but that causes us to
22577 have other problems (initial anchoring positons would be wrong)
22580 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
22583 - The size and location setters shouldn't go directly to
22584 SetBoundsCore, but to SetBounds, which triggers layout on the
22585 parent, then calls SetBoundsCore. (Related to fix for #78835)
22586 - SetBounds: Moved actual location update code into this function
22587 from SetBoundsCore, to match MS. Added call to PerformLayout if
22588 we have a parent (to trigger resizing of anchored parents if the
22589 child size has changed (see testcase for #78835)
22590 * ListBox.cs, Form.cs: Call SetBounds instead of SetBoundsCore to match
22592 * ScrollableControl.cs (CalculateCanvasSize): Use shortcut variable
22594 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
22596 * XplatUIX11.cs: Don't reset the DisplayHandle that's stored in
22597 System.Drawing when a toplevel window gets closed; there might
22598 be other toplevel windows belonging to the same app (Fixes #78052)
22600 2006-08-26 Alexander Olk <alex.olk@googlemail.com>
22602 * FileDialog.cs: After reading FileDialog settings from mwf_config
22603 use Desktop prefix only if a real folder doesn't exist anymore.
22604 * FontDialog.cs: Added char sets.
22605 It is now possible to select the font, size or style with the
22608 2006-08-25 Kornél Pál <kornelpal@gmail.com>
22610 * PrintPreviewDialog.cs: Use assembly name constants.
22612 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
22614 * XplatUIWin32.cs (ScrollWindow): Use clipping rectangle arg (prevents
22615 scrollbar from whacking it's buttons)
22617 2006-08-24 Chris Toshok <toshok@ximian.com>
22619 * ScrollableControl.cs: fix #78271. There's a lot of misc stuff
22620 in this patch (aggregating setting Left/Top/Width/Height to
22621 setting Bounds on the scrollbars), but the crux of the fix is in
22622 Recalculate, where we scroll by the remaining scroll_position if
22623 we're hiding a scrollbar. The 2*$5 reward in the comment is
22626 2006-08-24 Jackson Harper <jackson@ximian.com>
22629 * MdiWindowManager.cs: If the form is made a non-mdi window we
22630 need to remove the form closed event so that closing forms works
22633 2006-08-24 Jackson Harper <jackson@ximian.com>
22635 * Control.cs: Make IsRecreating internal so that the driver can
22637 - Temporarily remove the Hide when controls are removed, its
22638 making a whole bunch of things not work because visibility isn't
22639 getting reset elsewhere correctly
22640 * Form.cs: Need to do a full handle recreation when the mdi parent
22642 * XplatUIX11.cs: If we are recreating handles don't dispose the
22643 HWNDs. What was happening is the handles were being recreated in
22644 SendWMDestroyMessages, but then flow continued on in that method
22645 and destroyed the new handles.
22647 2006-08-23 Jackson Harper <jackson@ximian.com>
22649 * Form.cs: MdiClient is always at the back of the bus
22650 * Control.cs: When the order of items in the collection is changed
22651 we need to reset the all_controls array
22652 - do the same sorta setup thats done when adding a control when a
22653 control is set on the collection.
22655 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
22657 * TextBoxBase.cs (get_Text): Return an empty array if our document
22658 is empty (fixes #79052)
22660 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
22662 * Control.cs: We should call IsInputChar on only on WM_CHAR but not
22663 on WM_SYSCHAR messages (fixes #79053)
22665 2006-08-23 Chris Toshok <toshok@ximian.com>
22667 * DataGrid.cs: fix flickering when scrolling vertically.
22669 2006-08-23 Chris Toshok <toshok@ximian.com>
22671 * DataGrid.cs (EndEdit): only invalidate the row header when we
22674 2006-08-23 Chris Toshok <toshok@ximian.com>
22676 * ThemeWin32Classic.cs: fix the clip munging of the datagrid paint
22677 methods. fixes the flicker when scrolling around.
22679 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
22681 * FileDialog.cs: Making sure the control is created before we get a
22682 chance to use it with BeginInvoke (Fixes #79096)
22684 2006-08-23 Chris Toshok <toshok@ximian.com>
22686 * ThemeWin32Classic.cs (DataGridPaintRows): calculate the proper
22687 width to use when painting the rows.
22689 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
22692 - Throw ArgumentException if a negative value is passed to SelectionLength
22693 - Update the selection end if start is moved. end needs to be always
22694 after start. (Fixes #79095)
22695 - Track selection length; MS keeps the selection length even if start
22696 is changed; reset on all other operations affection selection
22698 2006-08-22 Jackson Harper <jackson@ximian.com>
22700 * TreeView.cs: Make sure both scrollbars get displayed and sized
22701 correctly when the other bar is visible.
22702 - Use the original clip rectangle for checking if the area between
22703 the two scrollbars is visible, not the viewport adjusted clipping
22706 2006-08-22 Jackson Harper <jackson@ximian.com>
22708 * Binding.cs: We don't use IsBinding because it requires the
22709 control to be created, which really shouldn't be necessary just to
22710 set a property on the control.
22712 2006-08-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
22714 * ComboBox.cs: Some CB.ObjectCollection methods must throw
22715 ArgumentNullReferenceException when the argument is null.
22717 2006-08-21 Jackson Harper <jackson@ximian.com>
22719 * Timer.cs: Track the thread that the timer is started in (NOT
22720 CREATED), this way messages for it will only be triggered on its
22722 * XEventQueue.cs: Track the timers here, this makes timers per
22724 * XplatUIX11.cs: The timers are moved to the XEventQueue.
22726 2006-08-19 Chris Toshok <toshok@ximian.com>
22728 * XplatUIX11.cs: after further communication with pdb, we get the
22729 best of both worlds. SetZOrder working for un-Mapped windows, and
22730 no X errors for un-mapped windows.
22732 2006-08-19 Chris Toshok <toshok@ximian.com>
22734 * XplatUIX11.cs (SetZOrder): remove the if (!hwnd.mapped) check,
22735 as it was causing pdn toolbars to not have the correct stacking.
22737 2006-08-18 Mike Kestner <mkestner@novell.com>
22739 * ListView.cs : guard against negative ClientArea.Width in scrollbar
22740 calculation. Not sure why control should ever be setting a negative
22741 width though. Fixes #78931.
22743 2006-08-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
22745 * ComboBox.cs: Throw ArgumentNullException when adding/modifyng
22746 null items in ObjectCollection class.
22747 * ListBox.cs.: Likewise.
22749 2006-08-18 Atsushi Enomoto <atsushi@ximian.com>
22751 * ThemeNice.cs, ThemeClearlooks.cs : remove RadioButton_DrawFocus()
22752 as the base method in ThemeWin32Classic should work fine.
22755 2006-08-18 Jackson Harper <jackson@ximian.com>
22757 * Binding.cs: When validating if the value entered doesn't convert
22758 properly reset to the old value.
22759 * RadioButton.cs: Don't fire click when we get focus.
22761 2006-08-18 Jackson Harper <jackson@ximian.com>
22763 * FileDialog.cs: Paint the selection on the directory combobox the
22766 2006-08-17 Jackson Harper <jackson@ximian.com>
22768 * ErrorProvider.cs: Don't allow the error control to be selected.
22769 * Control.cs: Don't send the SetFocus messages, the control
22770 activation will do this, and if we do it blindly here validation
22773 2006-08-17 Jackson Harper <jackson@ximian.com>
22776 * ContainerControl.cs: Make validation events fire in the correct
22777 order. TODO: For some reason the first validation event is not
22780 2006-08-17 Mike Kestner <mkestner@novell.com>
22782 * ComboBox.cs : some null guarding for ComboListBox.Scroll.
22784 2006-08-17 Mike Kestner <mkestner@novell.com>
22786 * ComboBox.cs : implement scroll wheel support for popped-down
22787 state. Fixes #78945.
22789 2006-08-17 Jackson Harper <jackson@ximian.com>
22791 * TreeView.cs: Specify treeview actions (old patch that didn't get
22792 committed for some reason).
22793 - Don't let the mouse wheel scroll us too far. Just want to make
22794 the bottom node visible, not scroll it all the ways to the top.
22796 2006-08-17 Jackson Harper <jackson@ximian.com>
22798 * XplatUIX11.cs: Mouse wheel events go to the focused window.
22800 2006-08-17 Mike Kestner <mkestner@novell.com>
22802 * ComboBox.cs : don't do mouseover selection in simple mode.
22804 2006-08-16 Jackson Harper <jackson@ximian.com>
22806 * Form.cs: Fire the closing events for all the mdi child windows
22807 when a window is closed. If the cancel args are set to true, the
22808 main window still gets the event fired, but it doesn't not close.
22809 * MdiWindowManager.cs: Do this closing cleanup in a Closed
22810 handler, instead of when the button is clicked, so cancelling the
22811 close works correctly.
22812 * ComboBox.cs: Send the mouse down to the scrollbar.
22814 2006-08-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
22816 * ListBox.cs: When passing 'null' to SelectedItem,
22817 set SelectedIndex to -1, to unselect items. This is the
22818 observed behaviour in .Net.
22820 2006-08-16 Peter Dennis Bartok <pbartok@novell.com>
22822 * TextBoxBase.cs: Overriding HandleClick to get clicks in spite of
22823 MS flags saying there won't be any. (fixes #78800)
22824 * Control.cs (HandleClick): Made virtual
22826 2006-08-16 Atsushi Enomoto <atsushi@ximian.com>
22828 * PageSetupDialog.cs : use Yard-Pound units only in en-GB and en-US
22829 cultures. Fixed bug #78399.
22831 2006-08-16 Jackson Harper <jackson@ximian.com>
22833 * Form.cs: Use the MdiClients MdiChildren property to access
22834 MdiChildren instead of creating the array from the child controls.
22835 * MdiClient.cs: Maintain a separate array of the mdi children, so
22836 that insertion order is maintained when the Z-order is changed.
22838 2006-08-16 Mike Kestner <mkestner@novell.com>
22840 * ListView.cs : add an ItemComparer and default to it for sorting.
22841 Fixes #79076, but sorting needs a complete overhaul to be compat with
22844 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
22846 * XplatUIX11.cs (SetZOrder): Fix debugging leftover (fixes #79080)
22848 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
22850 * Hwnd.cs (Mapped): Properly traverse the tree
22852 2006-08-15 Chris Toshok <toshok@ximian.com>
22854 * Binding.cs: fix PullData/SetPropertyValue. We don't want to
22855 pass manager.Current.GetType() to ParseData. It has to be the
22856 property type. So, hold off doing the ParseData until we're in
22857 SetPropertyValue where we know the type. This fixes the crash in
22858 #78821 but the textbox is still empty.
22860 2006-08-15 Chris Toshok <toshok@ximian.com>
22863 - when we're scrolling, only call Edit() again if the
22864 current cell is still unobscured. Fixes bug #78927.
22865 - when handling mousedown on a cell, ensure the cell is visible
22866 before calling Edit.
22867 - remove the properties from DataGridRow, and remove the
22868 DataGridParentRow class altogether.
22871 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
22873 * TextBoxBase.cs (set_Text): Don't use base.Text, instead just
22874 fire OnTextChanged by ourselves. There's no point calling base,
22875 we don't set the base value anywhere else. Fixes #78773.
22877 2006-08-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
22879 * ListBox.cs: Call CollectionChanged when modifying
22880 an item from Items indexer, to update the actual items
22883 2006-08-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
22885 * PrintDialog.cs: Small fixes for focus and a pair of checks,
22886 to match .Net behaviour.
22888 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
22890 * XplatUIX11.cs (SetZOrder): Handle raising toplevel windows
22892 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
22894 * Control.cs: Handle BringToFront for toplevel windows (Fixes #78737)
22896 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
22898 * MessageBox.cs: Prevent potential NRE exception.
22899 * TextBoxBase.cs: AutoSize only applies if MultiLine is false. Fixes #78889
22901 2006-08-14 Peter Dennis Bartok <pbartok@novell.com>
22903 * MessageBox.cs: Calculate the owner of a messagebox, also make
22904 it topmost. Fixes #78753
22906 2006-08-14 Chris Toshok <toshok@ximian.com>
22908 * XplatUIX11.cs: A couple of fixes so that metacity will let us
22909 programmatically move windows. first, set the PPosition hint as
22910 well as the USPosition hint. Second include some code from pdb
22911 that sets the window type to NORMAL when we set the transient for
22912 hint. This is because, in the absence of a window type, metacity
22913 thinks any window with TransientFor set is a dialog, and refuses
22914 to let us move it programmatically. fascists.
22916 2006-08-14 Peter Dennis Bartok <pbartok@novell.com>
22918 * XplatUIX11.cs: When setting normal hints, take into consideration
22919 an different hints previously set so we don't delete them (fixes #78866)
22921 2006-08-12 Chris Toshok <toshok@ximian.com>
22923 * ToolBarButton.cs: make Layout return a boolean, if something to
22924 do with the button's layout changed.
22927 - add another parameter to Redraw, @force, which all existing
22929 - make the Layout function return a boolean which is true if the
22930 layout has actually changed. Redraw now uses this (and @force)
22931 to determine when to invalidate. At present the only place
22932 where @force can be false is the call from OnResize, when
22933 background_image == null. So, resizing a toolbar when the
22934 layout doesn't change results in no drawing.
22936 2006-08-12 Chris Toshok <toshok@ximian.com>
22938 * ThemeWin32Classic.cs: fix the bottom right corner painting. had
22939 the VScrollBar and HScrollbar reversed. oops.
22941 * DataGrid.cs: fix the logic that assigns sizes to the implicit
22942 scrollbars. we were assigning them twice (once in
22943 Calc{Horiz,Vertical}Scrollbar, and once in CalcGridAreas),
22944 therefore causing two scrollbar resizes (and redraws?) to happen
22947 2006-08-12 Chris Toshok <toshok@ximian.com>
22949 * ToolBarButton.cs: redraw the entire button if the theme tells us
22952 * Theme.cs: add ToolBarInvalidateEntireButton.
22954 * ThemeWin32Classic.cs: we don't need to redraw the entire toolbar
22955 buttons, just the border.
22957 * ThemeNice.cs: redraw the entire toolbar button since we need to
22958 draw the highlight image.
22960 * ThemeClearlooks.cs: the rounded corners of toolbar buttons mean
22961 we need to redraw the entire button (not just the border).
22963 2006-08-11 Peter Dennis Bartok <pbartok@novell.com>
22965 * TextBoxBase.cs (CalculateScrollbars): Set the proper thumb size
22966 for vertical bars. Fixes the mismatches shown by #78513
22968 2006-08-11 Alexander Olk <alex.olk@googlemail.com>
22970 * FileDialog.cs: If a saved/remembered path doesn't exist
22971 anymore, fall back to "Desktop".
22973 2006-08-11 Peter Dennis Bartok <pbartok@novell.com>
22975 * Form.cs (CreateParams): Don't use Parent.Handle unless we have a
22976 parent. It's apparently legal to not have one
22978 - SetZOrder: Don't try to set Z-Order on an unmapped window
22979 - CreateWindow: 0,0 are legal coordinates for a window. don't move
22980 it unless the coordinates are negative
22982 2006-08-10 Mike Kestner <mkestner@novell.com>
22984 * ListControl.cs: allow null for DataSource. Clear DisplayMember
22985 when setting to null per msdn docs. Fixes #78854.
22987 2006-08-10 Chris Toshok <toshok@ximian.com>
22989 * Menu.cs, MainMenu.cs, MenuAPI.cs: get rid of most of the
22990 flickering by setting a clip rectangle on the Graphics when we
22991 need to redraw just a particular menuitem. Also, rename "OnClick"
22992 to "OnMouseDown" to reflect what it actually is.
22994 * Form.cs: track the OnMouseDown change.
22996 2006-08-10 Peter Dennis Bartok <pbartok@novell.com>
22998 * CommonDialog.cs: Properly inherit the CreateParams from the form
22999 and only change what we need. Fixes #78865
23001 2006-08-10 Chris Toshok <toshok@ximian.com>
23003 * ToolBar.cs, ToolBarButton.cs: fix the redraw-on-highlight
23004 flickering in flat mode (and most of the flickering in general) by
23005 only invalidating the button border (and not the entire rectangle)
23006 when the state changes. A couple of cases still flicker:
23007 ToggleButtons, and the dropdown arrow case when the user mouse
23010 2006-08-10 Alexander Olk <alex.olk@googlemail.com>
23012 * X11Keyboard.cs: Fixed handling of the Del key on the cursorblock
23013 for german keyboards. Numlock state shouldn't affect the behaviour
23014 of the Del key. Fixes bug #78291.
23016 2006-08-10 Chris Toshok <toshok@ximian.com>
23018 * ListControl.cs: remove the items.Clear line from BindDataItems,
23019 as this is the first thing done by both subclasses in their
23020 SetItemsCore overrides. Also, add a ItemChanged handler, and when
23021 passed -1, refresh the list. This gets databinding working when
23022 the datasource is set on the list before the datasource is
23023 populated (as in wf-apps/ReportBuilder.)
23025 * ComboBox.cs: remove the argument to BindDataItems. This call
23026 should really go away, and be initiated by the ListControl code.
23028 * ListBox.cs: same.
23030 2006-08-09 Peter Dennis Bartok <pbartok@novell.com>
23032 * TextControl.cs (Document.ctor): Initialize caret so we don't crash
23033 if no data is in the document when the control is displayed
23035 2006-08-09 Peter Dennis Bartok <pbartok@novell.com>
23037 * TextBoxBase.cs: Don't try moving the caret if we don't have a window
23040 - PositionCaret: Allow positioning of caret but don't call methods
23041 requiring a handle if the window isn't created yet
23042 - CharIndexToLineTag: Fix ending loop early error. Lines is 1 based
23043 - owner_HandleCreated: Don't position the caret, just update it's
23044 location. User might have already set a different position
23046 2006-08-09 Peter Dennis Bartok <pbartok@novell.com>
23048 * XplatUIWin32.cs: Don't use the desktop as basis for foster-parented
23049 windows. Screws up the returned coordinates for child windows.
23050 Fixes #78825. I'm hoping this doesn't break something, since the
23051 code was explicitly put in 8 months ago, but no bug was attached.
23052 Menus still seem to work properly.
23054 2006-08-08 Chris Toshok <toshok@ximian.com>
23056 * DataGrid.cs: make BeginInit/EndInit actually do what they're
23057 supposed to do - delay data binding until the EndInit call. Also,
23058 make the table style collection's CollectionChangeAction.Refresh
23061 * GridTableStylesCollection.cs: raise a CollectionChangeEvent
23062 (with action = Refresh) when a consituent table's MappingName is
23065 2006-08-08 Chris Toshok <toshok@ximian.com>
23067 * ToolBarButton.cs: in set_Text, call Parent.Redraw, not
23068 Invalidate, since changing the text can change the size of the all
23071 2006-08-08 Peter Dennis Bartok <pbartok@novell.com>
23073 * Form.cs (AddOwnedForm): Still need to add the form to our listif
23074 we don't have it yet
23076 2006-08-08 Chris Toshok <toshok@ximian.com>
23078 * PrintControllerWithStatusDialog.cs: don't .Close() the status
23079 dialog, as this causes X errors later on, since we actually
23080 destroy the window. Instead, .Hide() it.
23082 2006-08-08 Peter Dennis Bartok <pbartok@novell.com>
23084 * ComboBox.cs: Added focus reflection for popup window
23086 - Removed transient setting for non-app windows for now, not sure it
23088 - Fixed logic checking if we have captions when deciding
23089 override_redirect, WS_CAPTION is two bits and a 0 check was not
23091 - Removed the WINDOW_TYPE stuff, it was unneeded and making things
23094 - AddOwnedForm: Don't just add the form to the list, call the property
23095 to ensure the driver is informed about the ownership as well
23096 - CreateHandle: Set the TopMost status in the driver if we have an owner
23097 * XplatUI.cs: Fixed debug statement
23099 2006-08-08 Jonathan Pobst <monkey@jpobst.com>
23100 * ButtonRenderer.cs, CheckBoxRenderer.cs, ComboBoxRenderer.cs
23101 GroupBoxRenderer.cs, ProgressBarRenderer.cs, RadioButtonRenderer.cs,
23102 ScrollBarRenderer.cs, TabRenderer.cs, TextBoxRenderer.cs,
23103 TrackBarRenderer.cs: Make constructor private.
23104 * ProfessionalColors.cs, ProfessionalColorTable.cs: Fix misnamed properties.
23105 * ProfessionalColorTable.cs: Make properties virtual.
23107 2006-08-06 Duncan Mak <duncan@novell.com>
23109 * NumericUpDown.cs (Value): Don't call OnValueChanged if the value
23112 2006-08-04 Jonathan Pobst <monkey@jpobst.com>
23113 * ButtonRenderer.cs, CheckBoxRenderer.cs, ComboBoxRenderer.cs
23114 GroupBoxRenderer.cs, ProfessionalColors.cs, ProfessionalColorTable.cs,
23115 ProgressBarRenderer.cs, RadioButtonRenderer.cs, ScrollBarRenderer.cs,
23116 TabRenderer.cs, TextBoxRenderer.cs, TextRenderer.cs, TrackBarRenderer.cs:
23117 Initial import of new 2.0 classes.
23119 2006-08-04 Jonathan Pobst <monkey@jpobst.com>
23120 * Application.cs: Add 2.0 VisualStyles properties.
23122 2006-08-04 Jonathan Pobst <monkey@jpobst.com>
23123 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
23124 XplatUIX11.cs: Create property to allow access to existing private
23125 variable "themes_enabled"
23127 2006-08-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
23129 * ImageListStreamer.cs: generate the MemoryStreams with the exact BMP
23130 file size, as otherwise our class libraries fail using windows. Fixes
23133 2006-08-04 Jackson Harper <jackson@ximian.com>
23136 * XplatUIX11.cs: Move the toolwindow window manager creation into
23137 the X11 driver, this way on win32 we can let windows create/handle
23140 2006-08-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
23142 * PrintDialog.cs: Remove some redundant checks, add some others,
23143 clean some code, and move the focus to the text boxes when the
23144 values are incorrect.
23146 2006-08-04 Alexander Olk <alex.olk@googlemail.com>
23148 * FontDialog.cs: Remove Form.MinimumSize. It's not needed.
23150 2006-08-03 Alexander Olk <alex.olk@googlemail.com>
23152 * NumericUpDown.cs: Setting the Minimum and Maximum is now
23153 handled correctly. Fixes bug #79001.
23155 2006-08-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
23157 * PrintDialog.cs: The "Copies" numeric up down must have
23158 set the Minimum property to 1; only if the value is bigger
23159 than 1, activate "Collate" check box. This is the behaviour of .Net.
23160 Also modify the Document elements only if it is not null.
23162 2006-08-03 Jackson Harper <jackson@ximian.com>
23164 * TreeNodeCollection.cs: Fix copyto to use the correct nodes
23165 length. (We have a larger array then actual node count).
23167 2006-08-03 Jackson Harper <jackson@ximian.com>
23169 * ComboBox.cs: Don't show selection by default.
23170 - The SelectAll isn't needed here, since the focus code should do
23172 - DDL style lists to manual selection drawing, so when they
23173 get/lose focus they have to invalidate.
23175 2006-08-03 Peter Dennis Bartok <pbartok@novell.com>
23177 * TextBoxBase.cs: Don't always show all selections by default.
23179 2006-08-03 Jonathan Pobst <monkey@jpobst.com>
23180 * ControlUpdateMode.cs, DataSourceUpdateMode.cs,
23181 HelpNavigator.cs, WebBrowserEncryptionLevel.cs:
23182 Fixed various typos.
23184 2006-08-03 Alexander Olk <alex.olk@googlemail.com>
23186 * Control.cs: Removing the controls in a ControlCollection with
23187 Clear now hides the controls as expected. Fixes bug #78804.
23189 2006-08-03 Jackson Harper <jackson@ximian.com>
23191 * Control.cs: Revert previous focus patch, it breaks reflector.
23193 2006-08-03 Jackson Harper <jackson@ximian.com>
23195 * ComboBox.cs: Cleanup selection and focus with the combobox.
23196 This also eliminates some duplicated keyboard code, since now
23197 everything is handled by the main class.
23198 - Make list selection work on mouse up instead of down, to match
23201 2006-08-02 Jackson Harper <jackson@ximian.com>
23203 * Control.cs: Setting focus needs to go through the whole
23204 selection mechanism.
23206 2006-08-02 Chris Toshok <toshok@ximian.com>
23208 * PrintPreviewDialog.cs: change MinimumSize to use
23209 base.MinimumSize so it works.
23211 2006-08-02 Peter Dennis Bartok <pbartok@novell.com>
23214 - UpdateCaret: Added sanity check in case caret isn't defined yet
23215 - Line.Delete: Now updating selection and caret markers if we're
23216 transfering a node (Properly fixes #78323)
23217 - SetSelectionEnd: Added sanity check
23218 * TextBoxBase.cs: Removed broken attempt to fix #78323
23220 2006-08-01 Chris Toshok <toshok@ximian.com>
23222 * PrintPreviewDialog.cs: the CancelEventArgs stuff surrounding the
23223 Close() call is handled in Form, not here.
23225 2006-08-01 Chris Toshok <toshok@ximian.com>
23227 * Theme.cs, ThemeWin32Classic.cs: fix the PrintPreviewControl
23230 * PrintPreviewDialog.cs: add scrollbars, and add an image cache
23231 for sizes < 100% zoom. The code now aggressively attempts to keep
23232 from calling document.Print (), and tries not to use the scaling
23233 g.DrawImage whenever possible (it still does if you scale to >
23234 100%, since usually that involves huge images).
23236 * PrintPreviewControl.cs: hook up the close button.
23238 2006-08-01 Jonathan Pobst <monkey@jpobst.com>
23239 * ColumnClickEventHandler.cs, DrawItemEventHandler.cs,
23240 ItemChangedEventHandler.cs, ItemCheckEventHandler.cs,
23241 ItemDragEventHandler.cs, LabelEditEventHandler.cs,
23242 LinkClickedEventHandler.cs, LinkLabelLinkClickedEventHandler.cs,
23243 MeasureItemEventHandler.cs, MethodInvoker.cs, PaintEventHandler.cs,
23244 PropertyTabChangedEventHandler.cs, PropertyValueChangedEventHandler.cs,
23245 SelectedGridItemChangedEventHandler.cs, ToolBarButtonClickEventHandler.cs:
23246 Removed [Serializable] for 2.0 Event Handlers.
23248 2006-07-31 Jackson Harper <jackson@ximian.com>
23250 * TextBoxBase.cs: Make ShowSelection invalidate when changed.
23251 * TextControl.cs: Uncomment out the body of this method.
23253 2006-07-31 Alexander Olk <alex.olk@googlemail.com>
23255 * XplatUIX11.cs: Use the correct cursor shapes for arrow and default
23258 2006-07-31 Peter Dennis Bartok <pbartok@novell.com>
23260 * TextBoxBase.cs: Added internal property ShowSelection to allow controls
23261 that embed TextBox and need selections visible even if textbox is not
23262 focused to enforce that behaviour.
23263 * TextControl.cs (Draw): Use ShowSelection instead of has_focus to determine
23266 2006-07-31 Peter Dennis Bartok <pbartok@novell.com>
23269 - Added new SetSelectionStart/SetSelectionEnd overloads
23270 - Fixed viewport width assignment to be accurate
23271 - Adjusted alignment line shift calculations to allow cursor on right
23272 aligned lines to be always visible at the right border (like MS)
23274 - SetBoundsCore: Re-adjust caret location after resize (Fixes #78323)
23275 - TextBoxBase_SizeChanged: recalculating canvas on size changes
23276 - CalculateScrollBars: Use ViewPort size instead of window size, to
23277 properly consider space occupied by the border and scrollbars
23279 - hscroll_ValueChanged, vscroll_ValueChanged: Fixed scroll
23280 calculations; no longer leaves artifacts
23281 - CaretMoved: Adjusted window scrolling to match MS and fixed several
23282 calculation bugs (Still missing right/center align calculations)
23284 2006-07-31 Peter Dennis Bartok <pbartok@novell.com>
23286 * XPlatUIWin32.cs: Made ScrollRectEx a bit more flexible, and removed
23287 use of both scroll rect and clip rect, as they do the same.
23289 2006-07-31 Peter Dennis Bartok <pbartok@novell.com>
23291 * Control.cs (WM_CHAR WndProc): 2.0 profile allows changing the key
23292 in the event handler (fixes #78912)
23294 2006-07-31 Chris Toshok <toshok@ximian.com>
23296 * ThemeWin32Classic.cs: use grid.RowsCount here instead of
23297 grid.ListManager.Count, since grid.ListManager might be null.
23298 This of course begs the question "why are we drawing rows for a
23299 grid with no list manager (and therefor no rows)?" Fixes the
23300 crash in bug #78929.
23302 2006-07-31 Chris Toshok <toshok@ximian.com>
23304 * RelatedPropertyManager.cs: Don't always chain up to the parent
23305 ctor. instead, call SetDataSource if the parent's position is !=
23306 -1. Fixes the crash in #78822.
23308 2006-07-31 Chris Toshok <toshok@ximian.com>
23310 * DataGrid.cs (get_ListManager): use field instead of property
23311 accessors for datasource and datamember.
23312 (RowsCount): make internal again.
23313 (OnMouseDown): end edits before resizing columns/rows.
23314 (OnMouseUp): restart edits after resizing columns/rows.
23316 2006-07-30 Peter Dennis Bartok <pbartok@novell.com>
23318 * XplatUIX11.cs: Default cursor cannot be 0 or it will not get set.
23319 This fixes the situation where the last set cursor is displayed
23320 whenever the mouse is over scrollbars.
23322 2006-07-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
23324 * PrintDialog.cs: Fix the behaviour of PrinterSettings and
23325 Document properties, as well as initial values.
23327 2006-07-29 Peter Dennis Bartok <pbartok@novell.com>
23329 * XplatUIWin32.cs (SetBorderStyle): Setting both border
23330 and ClientEdge results in a 3-pixel border, which is
23333 2006-07-28 Jackson Harper <jackson@ximian.com>
23335 * TreeNodeCollection.cs: Fix the clear method.
23336 - Fix the Shrink also
23338 2006-07-27 Jackson Harper <jackson@ximian.com>
23340 * TreeView.cs: Make sure the visible order is computed when we
23341 attempt to size the scrollbars (for trees that mess with the
23342 scrolling when they shouldn't.
23343 - Make sure to give the scrollbars valid values.
23345 2006-07-26 Peter Dennis Bartok <pbartok@novell.com>
23347 * XplatUIX11.cs: Move motion compression code to where it
23348 has less performance impact
23350 2006-07-26 Jackson Harper <jackson@ximian.com>
23352 * UpDownBase.cs: When the control is selected make the child
23353 controls non selectable, so that a click on them won't do a
23354 focus/unfocus cycle.
23355 - Don't give focus to the text box when the spinner is selected.
23356 * XEventQueue.cs: Peek on both the x11 queue and the lock queue.
23358 2006-07-26 Chris Toshok <toshok@ximian.com>
23360 * ThemeWin32Classic.cs: add print preview rendering. I'm not
23361 satisfied with this solution. If the bitmaps are small, we should
23362 just cache them in the PrintPreviewDialog and draw them here.
23363 Also, the layout is broken for the 2-up and 3-up cases.
23365 * Theme.cs: add PrintPReviewControlPaint.
23367 * PrintPreviewDialog.cs: first pass implementation.
23369 * PrintPreviewControl.cs: first pass implementation. No
23372 * PrintDialog.cs: only validate fields if that particular portion
23373 of the UI is enabled. Also, set the document's controller to a
23374 PrintControllerWithStatusDialog wrapping the document's print
23377 * PrintControllerWithStatusDialog.cs: if we're printing to a file,
23378 bring up a SaveFileDialog (i hope we don't want to match the
23379 behavior of the crappy windows file entry) and set the
23380 PrinterSettings.PrintFileName accordingly.
23382 2006-07-26 Jackson Harper <jackson@ximian.com>
23384 * ContainerControl.cs: Add a field that disables auto selecting
23385 the next control in a container when the container is activated.
23386 * UpDownBase.cs: Don't select the text box when the up down is
23389 2006-07-26 Peter Dennis Bartok <pbartok@novell.com>
23391 * XEventQueue.cs: Added methods for peeking (used for compression
23392 of successive events)
23393 * XplatUIX11.cs (GetMessage): We're now compressing consecutive
23394 mouse move events (fixes #78732)
23396 2006-07-25 Jackson Harper <jackson@ximian.com>
23398 * UpDownBase.cs: Use an internal class for the textbox so that we
23399 can control focus. the updown control should always have focus,
23400 if either the text area or the buttons are clicked.
23401 - Send the key messages to the textbox, since it never actually
23403 - Activate and decativate the textbox caret.
23405 2006-07-24 Jackson Harper <jackson@ximian.com>
23407 * Control.cs: Use the directed select when selecting a control,
23408 this way the container controls override will get called and the
23409 whole ActiveControl chain will get triggered. TODO: probably need
23410 to make sure this gets done everywhere instead of the old
23412 * ContainerControl.cs: Implement the directed Select method to
23413 find and activate the correct child control.
23415 2006-07-22 Mike Kestner <mkestner@novell.com>
23417 * Form.cs: use Control.MousePosition for NCLBUTTONDOWN in the menu
23418 menu handling code so that clicks without a grab work too.
23421 2006-07-22 Alexander Olk <alex.olk@googlemail.com>
23423 * FileDialog.cs: Enable the BackButton when dirstack has one element.
23424 Added some small optimizations.
23426 2006-07-21 Matt Hargett <matt@use.net>
23428 * Control.cs: Implemented 2.0 MinimumSize/MaximumSize properties
23430 2006-07-21 Peter Dennis Bartok <pbartok@novell.com>
23432 * Control.cs (GetNextControl): Fixes to make all of Jackson's unit
23433 tests pass and match MS in some strange border cases.
23435 2006-07-21 Chris Toshok <toshok@ximian.com>
23437 * ThemeWin32Classic.cs: handle drawing of the relation links and
23438 parent row buttons.
23440 * Theme.cs: change args to DataGridPaintParentRow.
23442 * DataGrid.cs: Don't use controls for the relation links and
23443 parent buttons, so we have to handle all their interactions in
23444 MouseMove, MouseDown, MouseUp, etc. Also, store a lot more stuff
23445 when we're navigating through child tables, so we can reinstate
23446 selection, expanded state, current cell, etc.
23448 2006-07-20 Chris Toshok <toshok@ximian.com>
23450 * ToolBar.cs: When we redraw a button, for whatever reason,
23451 there's no reason to redraw the entire toolbar. Also, don't call
23452 Control.Refresh from within Redraw, as it's much heavier than
23453 Invalidate (which is really what we want).
23455 2006-07-20 Chris Toshok <toshok@ximian.com>
23457 * DataGrid.cs, CurrencyManager.cs, DataGridColumnStyle.cs,
23458 DataGridTextBoxColumn.cs, DataGridTextBox.cs,
23459 ThemeWin32Classic.cs, ListControl.cs: After staring at stack
23460 traces from within a debug IBindingList datasource
23461 (in mono/winforms/datagrid) for *days*, I've finally gotten things
23462 to work in a similar fashion.
23464 2006-07-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
23466 * ListBox.cs: Don't call Sort () when setting
23467 the Sorted property to false (avoid an unnecessary sort).
23469 2006-07-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
23471 * ListControl.cs: DataSource should throw an ArgumentException
23472 instead of a normal exception when the argument is not of the
23475 2006-07-20 Mike Kestner <mkestner@novell.com>
23477 * Control.cs: add InternalPreProcessMessage to allow us to steal
23478 key events before MWF gets its paws on them. Adapted from a
23480 * ToolBar.cs: add GotLostFocus handing for flat toolbars, with
23481 up/down/left/right navigation. Override the new internal control
23482 method to steal the events since they never make it to WndProc.
23483 * ToolBarButton.cs: don't worry about pushed when setting hilight
23484 since the drawing code prefers pushed to hilight. Invalidate on
23485 Hilight changes. Fixes #78547 and #78525.
23487 2006-07-20 Peter Dennis Bartok <pbartok@novell.com>
23489 * ScrollableControl.cs: Consider AutoScrollMinSize when calculating
23490 the canvas size. Fixes #78868
23492 2006-07-20 Peter Dennis Bartok <pbartok@novell.com>
23494 * Splitter.cs: Track requested split position until first layout
23495 is performed. Fixes #78871
23497 2006-07-20 Peter Dennis Bartok <pbartok@novell.com>
23499 * Application.cs: Removed code that forces 1.x for the version
23500 number if the version started with 0. Not sure why that code was
23501 there and I couldn't find any bugs that indicated we needed it.
23504 2006-07-20 Alexander Olk <alex.olk@googlemail.com>
23506 * ThemeWin32Classic.cs: Don't throw a NotImplementedException in
23507 ResetDefaults(), just write some output to the console until it's
23508 implemented. Fixes bug #78907 for now. Eliminated two warnings.
23510 2006-07-19 Jonathan Chambers <joncham@gmail.com>
23512 * PropertyGridView.cs: set StartPosition of drop down forms
23513 so they appear in correct initial spot. Fixes #78190.
23515 2006-07-19 Mike Kestner <mkestner@novell.com>
23517 * ThemeWin32Classic.cs: use parent background color when drawing
23518 flat toolbars. Restructure the conditionals to make sure non-flat
23519 non-Divider toolbars are filled too. Fixes #78837.
23521 2006-07-19 Mike Kestner <mkestner@novell.com>
23523 * ListBox.cs: Sort on collection changes even if the handle
23524 isn't created yet. Fixes #78813.
23526 2006-07-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
23528 * ListControl.cs: DisplayMember should never be null,
23529 and now we assign String.Empty when null is passed to it (this
23532 2006-07-17 Mike Kestner <mkestner@novell.com>
23534 * ListViewItem.cs: restructure Font and subitem Font handling
23535 to hold a specific font and refer back to owner on null.
23538 2006-07-17 Mike Kestner <mkestner@novell.com>
23540 * ToolBar.cs: bandaid for side-effect of previous patch which was
23541 discarding explicit heights for non-AutoSize toolbars. Need to
23542 extend my format tester to deal with AutoSize=false. Fixes #78864.
23544 2006-07-15 Jackson Harper <jackson@ximian.com>
23546 * LabelEditTextBox.cs:
23547 * TreeView.cs: Use a new LabelEdit class for node editing, this
23548 class automatically 'closes' itself when it gets the enter key or
23550 - Use the client rectangle when setting the trees scrollbars, so
23551 border style is taken into account.
23553 2006-07-14 Jackson Harper <jackson@ximian.com>
23556 * TreeView.cs: Make the editing work similar to MSs, firing the
23557 events correctly and ending edits correctly.
23559 2006-07-14 Mike Kestner <mkestner@novell.com>
23561 * ToolBarButton.cs:
23562 * ToolBar.cs: layout restructuring and redraw enhancements to support
23563 formatting changes gracefully, like setting TextAlign, ImageList,
23564 ButtonSize, and Appearance. Handles explicit button sizing quirks
23565 of the MS controls. Things like flat toolbars ignoring button size
23566 but becoming constant sized at the largest button's size. Normal
23567 toolbars with an image set cannot be shrunk smaller than the image,
23568 but text can be clipped/ignored.
23569 * ThemeWin32Classic.cs: don't draw text if text_rect height or width
23570 is zero. Seems like DrawString should be smart enough to not put
23571 anything on screen though. Also trim labels and ellipsize at the char
23572 boundary, not word.
23573 Fixes #78711 and #78483.
23575 2006-07-14 Alexander Olk <alex.olk@googlemail.com>
23577 * FolderBrowserDialog.cs: Disable "New Folder" button and
23578 "New Folder" contextmenu menuitem if a folder like "My Computer"
23581 2006-07-14 Alexander Olk <alex.olk@googlemail.com>
23583 * FileDialog.cs: Don't create a new folder in "MyComputer" folder.
23584 * FolderBrowserDialog.cs:
23585 - Use MWFConfig to store and read size and position settings
23586 - Added code to create a new folder (button or context menu).
23587 Use TreeView labeledit to change the name of the new folder.
23589 2006-07-14 Jackson Harper <jackson@ximian.com>
23591 * TreeView.cs: Raise the OnAfterLabelEdit event correctly. Also,
23592 when the tree is scrolled we end editing.
23594 2006-07-14 Alexander Olk <alex.olk@googlemail.com>
23596 * ThemeWin32Classic.cs: Fixed position of CPDrawScrollButton Up and
23599 2006-07-14 Jonathan Pobst <monkey@ipobst.com>
23601 WebBrowserProgressChangedEventHandler.cs, BindingCompleteEventArgs.cs,
23602 BindingCompleteEventHandler.cs, BindingManagerDataErrorEventArgs.cs,
23603 BindingManagerDataErrorEventHandler.cs, CacheVirtualItemsEventArgs.cs,
23604 CacheVirtualItemsEventHandler.cs, ColumnReorderedEventArgs.cs,
23605 ColumnReorderedEventHandler.cs, ColumnWidthChangedEventArgs.cs,
23606 ColumnWidthChangedEventHandler.cs, ColumnWidthChangingEventArgs.cs,
23607 ColumnWidthChangingEventHandler.cs, FormClosedEventArgs.cs,
23608 FormClosedEventHandler.cs, FormClosingEventArgs.cs,
23609 FormClosingEventHandler.cs, ItemCheckedEventArgs.cs,
23610 ItemCheckedEventHandler.cs, ListControlConvertEventArgs.cs,
23611 ListControlConvertEventHandler.cs, ListViewItemMouseHoverEventArgs.cs,
23612 ListViewItemMouseHoverEventHandler.cs, ListViewItemSelectionChangedEventArgs.cs,
23613 ListViewItemSelectionChangedEventHandler.cs,
23614 ListViewVirtualItemsSelectionRangeChangedEventArgs.cs,
23615 ListViewVirtualItemsSelectionRangeChangedEventHandler.cs,
23616 MaskInputRejectedEventArgs.cs, MaskInputRejectedEventHandler.cs,
23617 PopupEventArgs.cs, PopupEventHandler.cs, PreviewKeyDownEventArgs.cs,
23618 PreviewKeyDownEventHandler.cs, RetrieveVirtualItemEventArgs.cs,
23619 RetrieveVirtualItemEventHandler.cs, SearchForVirtualItemEventArgs.cs,
23620 SearchForVirtualItemEventHandler.cs, SplitterCancelEventArgs.cs,
23621 SplitterCancelEventHandler.cs, TabControlCancelEventArgs.cs,
23622 TabControlCancelEventHandler.cs, TabControlEventArgs.cs,
23623 TabControlEventHandler.cs, TableLayoutCellPaintEventArgs.cs,
23624 TableLayoutCellPaintEventHandler.cs, ToolStripDropDownClosedEventArgs.cs,
23625 ToolStripDropDownClosedEventHandler.cs, ToolStripDropDownClosingEventArgs.cs,
23626 ToolStripDropDownClosingEventHandler.cs, TreeNodeMouseClickEventArgs.cs,
23627 TreeNodeMouseClickEventHandler.cs, TreeNodeMouseHoverEventArgs.cs,
23628 TreeNodeMouseHoverEventHandler.cs, TypeValidationEventArgs.cs,
23629 TypeValidationEventHandler.cs, WebBrowserDocumentCompletedEventArgs.cs,
23630 WebBrowserDocumentCompletedEventHandler.cs, WebBrowserNavigatedEventArgs.cs,
23631 WebBrowserNavigatedEventHandler.cs, WebBrowserNavigatingEventArgs.cs,
23632 WebBrowserNavigatingEventHandler.cs,
23633 WebBrowserProgressChangedEventArgs.cs: New 2.0 Event Handlers
23635 2006-07-14 Jonathan Pobst <monkey@ipobst.com>
23637 MergeAction.cs, PowerLineStatus.cs, PowerState.cs, PreProcessControlState.cs,
23638 RichTextBoxLanguageOptions.cs, ScreenOrientation.cs, ScrollOrientation.cs,
23639 SearchDirectionHint.cs, SystemParameter.cs, TabControlAction.cs,
23640 TableLayoutPanelCellBorderStyle.cs, TextDataFormat.cs, TextImageRelation.cs,
23641 ToolStripDropDownCloseReason.cs, ToolStripDropDownDirection.cs,
23642 ToolStripGripDisplayStyle.cs, ToolStripGripStyle.cs,
23643 ToolStripItemAlignment.cs, ToolStripItemDisplayStyle.cs,
23644 ToolStripItemImageScaling.cs, ToolStripItemOverflow.cs,
23645 ToolStripItemPlacement.cs, ToolStripLayoutStyle.cs,
23646 ToolStripManagerRenderMode.cs, ToolStripRenderMode.cs,
23647 ToolStripStatusLabelBorderSides.cs, ToolStripTextDirection.cs,
23648 ToolTipIcon.cs, TreeNodeStates.cs, TreeViewDrawMode.cs,
23649 TreeViewHitTestLocations.cs, UnhandledExceptionMode.cs, ValidationConstraints.cs,
23650 WebBrowserEncryptionLevel.cs, WebBrowserReadyState.cs, WebBrowserRefreshOption.cs,
23651 ArrowDirection.cs, AutoCompleteMode.cs, AutoCompleteSource.cs, AutoSizeMode.cs,
23652 AutoValidate.cs, BatteryChargeStatus.cs, BindingCompleteContext.cs,
23653 BindingCompleteState.cs, CloseReason.cs, ColumnHeaderAutoResizeStyle.cs,
23654 ControlUpdateMode.cs, DataSourceUpdateMode.cs, DockingBehavior.cs,
23655 FixedPanel.cs, FlowDirection.cs, GetChildAtPointSkip.cs,
23656 HtmlElementInsertionOrientation.cs, InsertKeyMode.cs, ListViewHitTestLocations.cs,
23657 ListViewItemStates.cs, MaskFormat.cs: Added
23659 2006-07-13 Jonathan Chambers <joncham@gmail.com>
23661 * PropertyGridView.cs: Fix keyboard navigation of drop down.
23662 Patch from eno for bug 78558.
23664 2006-07-13 Jackson Harper <jackson@ximian.com>
23666 * TreeView.cs: When an edit is finished make sure that the
23667 selected node is visible.
23668 - When setting the top/bottom use the scrollbars is_visible, so
23669 everything will be set correctly even if the tree isn't visible
23672 2006-07-13 Jackson Harper <jackson@ximian.com>
23674 * ComboBox.cs: Revert the item->index part of my previous patch.
23675 * TreeView.cs: Use LostFocus instead of Leave for detecting when
23676 the edit box has lost focus (duh).
23677 - Just make the edit box not visible when we get return, that will
23678 take the focus, which will call EndEdit
23679 * TreeNode.cs When we start editing, notify the treeview.
23681 2006-07-12 Jackson Harper <jackson@ximian.com>
23683 * ComboBox.cs: Clear out old items before setting the item list.
23684 This prevents databound controls from having their items added
23686 - Switch the combobox to use indices whereever possible instead of
23687 using Item's. This allows usto navigate through lists that have
23688 more then one item with the same string value (ie a, b, b, a).
23689 - Scroll the listboxes scrollbar when a non visible item is
23691 - Allow keypress to cycle through all the possible values. For
23692 example if you have b1, b2, b3 and hold down the B key all the
23693 values will be cycled through.
23695 2006-07-12 Jackson Harper <jackson@ximian.com>
23698 * ListView.cs: Don't need to override SETFOCUS anymore, we can do
23699 this using the internal methods.
23700 * Control.cs: Add OnGotFocusInternal. A new method that allows
23701 controls to "override" OnGotFocus and change focus behavior if
23703 - Same thing for LostFocus
23704 * ComboBox.cs: Pass off focus to the text control properly.
23706 2006-07-12 Alexander Olk <alex.olk@googlemail.com>
23708 * FileDialog.cs: Added GetFoldersOnly to MWFVFS
23709 * FolderBrowserDialog.cs: Almost a complete rewrite.
23710 - Better support for Environment.Specialfolders
23711 - Added support for MWFVFS
23712 - Made setting SelectedPath work
23714 2006-07-12 Jackson Harper <jackson@ximian.com>
23716 * Control.cs: Optimze getting all the controls.
23718 2006-07-11 Jackson Harper <jackson@ximian.com>
23720 * ContainerControl.cs: Override SETFOCUS in the container control,
23721 so that it is not selected on mouse click.
23723 2006-07-11 Peter Dennis Bartok <pbartok@novell.com>
23725 * LinkLabel.cs: Hack to handle Shift-Tabbing to the linklabel.
23726 Hopefully we will have a better way once all of focus is complete.
23728 2006-07-11 Peter Dennis Bartok <pbartok@novell.com>
23730 * ThemeWin32Classic.cs: Commented out some debug code and fixed
23731 a compile error with csc.
23733 2006-07-11 Jackson Harper <jackson@ximian.com>
23735 * Control.cs: When hiding a control only select the next control
23736 if the current control was focused.
23737 - Don't handle enter/leave when setting/killing focus, this is
23738 done by the container control.
23739 - Remove is_selected, it's not needed anymore.
23740 - Add utility methods for selecting a child control, and for
23741 firing the Enter/Leave events.
23742 * ContainerControl.cs: When a control is activated fire the
23743 enter/leave events.
23744 - Don't wrap when processing the tab key, so that focus can be
23745 moved outside of the container.
23746 - Use the correct active control
23748 2006-07-11 Jackson Harper <jackson@ximian.com>
23750 * ComboBox.cs: Remove some debug code that was blinding me.
23751 * UpDownBase.cs: These controls actually aren't implicit, they are
23752 visible to the user.
23754 2006-07-10 Chris Toshok <toshok@ximian.com>
23756 * DataGrid.cs: move back to the is_adding boolean field. god i
23757 hate this is_editing/is_adding/is_changing stuff.
23759 2006-07-10 Chris Toshok <toshok@ximian.com>
23761 * DataGridTableStyle.cs: just check if the property type is bool.
23762 if it is, use DataGridBoolColumn, otherwise DataGridTextBoxColumn.
23763 Don't use CanRenderType.
23765 * DataGridTextBoxColumn.cs: set the value to DBNull.Value, not "",
23766 if our text == NullText. Remove CanRenderType.
23768 * DataGridBoolColumn.cs: nuke CanRenderType.
23770 * DataGrid.cs: reenable some code to end the current edit inside
23771 of set_CurrentCell. This fixes the other 1.1.16 regression.
23772 Also, remove rowhdrs_maxheight and just use rowhdrs_area.Height.
23773 Also, remove the visible_row_count arg from CalcRowHeaders, since
23774 we don't need to worry about the actual height of the area.
23776 2006-07-10 Chris Toshok <toshok@ximian.com>
23778 * DataGridTextBoxColumn.cs: if when we Commit we're in navigate
23781 * DataGridTextBox.cs: change "isedit" to "isnavigating" to reflect
23782 the real sense of the IsInEditOrNavigateMode property (true =
23783 navigate, false = edit). Also, update OnKeyPress to reflect this.
23785 * DataGridTableStyle.cs (CreateColumnsForTable): even if the
23786 column style exists, we still need to set its property descriptor
23787 to match up with our list manager.
23789 2006-07-10 Chris Toshok <toshok@ximian.com>
23791 * ThemeWin32Classic.cs: implement the new row/header painting
23792 approach. The parent row painting will likely go away and
23793 replaced with label controls, but the rest seems to work ok (and
23796 * Theme.cs: change the way we draw datagrid rows. we don't draw
23797 the row headers as a block now. Instead we draw them in the
23798 normal draw-row loop. Add some calls for drawing parent rows and
23801 * DataGridTableStyle.cs: add tons of ArgumentExceptions if this is
23802 a default table style. Set the defaults from ThemeEngine.Current,
23803 not SystemColors. Fix lots of misc issues with property setters.
23805 * DataGrid.cs: move loads of style information out of this class
23806 as it's being duplicated with DataGridTableStyle. keep track of a
23807 special DataGridTableStyle for the properties we used to mirror
23808 here. Switch all the style properties to access this table style
23809 instead of instance fields of this class. Also add a internal
23810 class to represent parent rows (more needs to be stored here, like
23811 the selection state from the parent table, as well as the
23812 expansion state.) Also, for datasources with relations, do the
23813 right thing for collapse/expand, and add support for the
23814 navigation/parent row buttons.
23816 Lastly, fix the crash in the 1.1.16 build.
23818 * GridTableStylesCollection.cs: make the explicit interface
23819 implementations call the class's methods as opposed to duplicating
23822 * DataGridTextBoxColumn.cs: set the x/y offset of the textfield to
23823 0 so the text doesn't jump around when we move the cursor.
23825 2006-07-10 Jackson Harper <jackson@ximian.com>
23828 * ListBox.cs: Match MS's ToString (this makes debugging focus
23829 stuff infinitely easier).
23831 2006-07-10 Jackson Harper <jackson@ximian.com>
23833 * Control.cs (SelectNextControl): When checking the control's
23834 parent use this instead of ctrl.parent so that null can be passed
23835 to SelectNextControl. (I have unit tests for this).
23836 - Remove unused var.
23838 2006-07-10 Chris Toshok <toshok@ximian.com>
23840 * CurrencyManager.cs: correct one regression, the removal of the
23841 finalType field. Also, add a MonoTODO on CanAddRows, implement
23842 Refresh() correctly, and fix some event emission in
23843 ListChangedHandler.
23845 2006-07-07 Alexander Olk <alex.olk@googlemail.com>
23847 * FileDialog.cs: Don't use brackets for new folders if they exist
23848 under *nix. Instead use -(number of existing folders +1).
23850 2006-07-07 Alexander Olk <alex.olk@googlemail.com>
23853 - Fixed really nasty bug #78771
23854 - Don't block the whole GUI when reading directories with a lot of
23855 entries. Use an other thread instead and call BeginInvoke to
23856 update the ListView in MWFFileView
23858 2006-07-07 Chris Toshok <toshok@ximian.com>
23860 * Control.cs (Dispose): release any Capture when disposing.
23862 2006-07-07 Chris Toshok <toshok@ximian.com>
23864 * LinkLabel.cs (Select): if we chain up to the parent, set
23865 focused_index to -1 so we'll search for the first available link
23866 the next time the user tabs into us. Also, if the direction is
23867 backward and focused_index == -1, start the search from the last
23870 2006-07-07 Chris Toshok <toshok@ximian.com>
23872 * LinkLabel.cs (CreatePiecesFromText): if the link's range piece
23873 is beyond the end of the text, don't do anything.
23874 (CreateLinkPieces): set our ControlStyles.Selectable based on
23875 whether or not we have any links.
23876 (Link.Invalidate): use a loop instead of foreach.
23877 (Link.set_Start): null out owner.sorted_links so it'll be
23878 recreated by CreateLinkPieces.
23880 2006-07-06 Chris Toshok <toshok@ximian.com>
23882 * LinkLabel.cs: revert the SetStyle change.
23884 2006-07-06 Chris Toshok <toshok@ximian.com>
23886 * LinkLabel.cs (.ctor): SetStyle Selectable to true.
23887 (OnEnableChanged): s/Refresh/Invalidate
23888 (OnGotFocus): if we have a focused index already, refocus it (so
23889 if we mouse out/in to the window it'll focus the right link).
23890 (OnKeyDown): move the tab handling out of here.
23891 (OnLostFocus): don't set focused_index to -1, so we can refocus it
23892 when we lose focus.
23893 (OnMouseDown): don't Capture here - Control handles it. Also,
23894 focus the active link.
23895 (OnMouseUp): don't deal with Capture.
23896 (OnPaintBackgroundInternal): remove.
23897 (OnTextAlignChanged): CreateLinkPieces before calling the
23898 superclass's method.
23899 (OnTextChanged): call CreateLinkPieces before calling superclass's
23901 (ProcessDialogKey): handle Tab here, and call Select(bool,bool) to
23903 (Select): implement this, moving the selection between different
23904 links, and call parent.SelectNextControl if we don't have another
23905 link to focus in the given direction.
23906 (CreateLinkPieces): call Invalidate instead of Refresh.
23908 2006-07-06 Chris Toshok <toshok@ximian.com>
23910 * ThemeWin32Classic.cs: DrawLinkLabel changes to accomodate the
23911 new LinkLabel internals.
23913 * LinkLabel.cs: fairly major rewrite. get rid of all the loops
23914 over pieces looking for active/focused/etc links. also, deal with
23915 runs of text (and links) with embedded \n's in them, and use
23916 MeasureCharacterRanges instead of MeasureString to figure out the
23917 regions text occupies. Lastly, do the usual s/Refresh/Invalidate
23920 2006-07-04 Jackson Harper <jackson@ximian.com>
23922 * XplatUIX11.cs: Enable key auto repeat. If the user doesn't have
23923 XKB or key auto repeat, do it manually. Without key auto repeat,
23924 when a key is held down we get key press, key release, key press,
23925 key release, ... with auto repeat we get key press, key press, key
23926 press ..., and then a release when the key is actually released.
23928 2006-07-03 Jackson Harper <jackson@ximian.com>
23931 * ThemeWin32Classic.cs: Tabs do not obey normal background color
23932 rules, they are always control color regardless of the background
23935 2006-07-02 Alexander Olk <alex.olk@googlemail.com>
23937 * FileDialog.cs: Added internal class MWFConfig.
23938 Removed Registry support and replaced it with support for the new
23939 MWFConfig class. See MWFConfig comments for more information.
23941 2006-06-30 Alexander Olk <alex.olk@googlemail.com>
23943 * ThemeWin32Classic.cs: Added RadioButton and CheckBox focus
23944 rectangle. Added some patches from eno from bug #78490 and fixed
23945 the arrow position for small up and down CPDrawScrollButtons.
23947 2006-06-30 Jackson Harper <jackson@ximian.com>
23949 * InternalWindowManager.cs: Remove some debug code.
23950 * Form.cs: When an MdiParent is set to null, the window is
23951 "detatched" and becomes a normal window.
23952 * MdiClient.cs: Don't bring the new child form to the front until
23953 it is activated (setting it as active does this), this makes the
23954 previously active forms titlebar get redrawn as inactive.
23956 2006-06-29 Peter Dennis Bartok <pbartok@novell.com>
23958 * PrintDialog.cs: Labels need a tab index too, otherwise they overlap
23959 with later controls
23961 2006-06-29 Mike Kestner <mkestner@novell.com>
23963 * MenuAPI.cs: handle arrow keys in keynav state. Go active on down
23964 arrow in keynav state. Fixes #78682.
23966 2006-06-28 Atsushi Enomoto <atsushi@ximian.com>
23968 * PrintDialog.cs: Reorder, relayout, remove extra code, set tab
23969 order (fixes #78393)
23971 2006-06-28 Jonathan Pobst <monkey@ipobst.com>
23973 * AccessibleRole.cs, AccessibleStates.cs, AnchorStyles.cs,
23974 ArrangeDirection.cs, ArrangeStartingPosition.cs, ColorDepth.cs,
23975 ControlStyles.cs, DataGridViewImageCellLayout.cs, DrawMode.cs,
23976 FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs,
23977 GridItemType.cs, HelpNavigator.cs, ImeMode.cs, ItemActivation.cs,
23978 ItemBoundsPortion.cs, Keys.cs, ListViewAlignment.cs,
23979 PictureBoxSizeMode.cs, PropertySort.cs, SelectionMode.cs,
23980 Shortcut.cs, SizeGripStyle.cs, SortOrder.cs, StructFormat.cs,
23981 TextFormatFlags.cs, ToolBarAppearance.cs, ToolBarButtonStyle.cs,
23982 ToolBarTextAlign.cs, View.cs: 2.0 Changes to existing 1.x
23983 enumerations (FlagsAttribute, SerializableAttribute, added/removed
23986 2006-06-28 Mike Kestner <mkestner@novell.com>
23988 * ComboBox.cs: implement scroll wheel support. Fixes #78360.
23990 2006-06-28 Atsushi Enomoto <atsushi@ximian.com>
23993 PropertyGridTextBox.cs : explicitly set BackColor to differentiate
23994 item lines from other area (It also makes BackColor consistent and
23995 compatible with .NET). Fixed bug #78564.
23997 2006-06-28 Jonathan Chambers <jonathan.chambers@ansys.com>
23999 * PropertyGrid.cs: refresh toolbar when PropertySort is set.
24000 Patch from Eno for #78555.
24002 2006-06-27 Chris Toshok <toshok@ximian.com>
24004 * ThemeWin32Classic.cs: s/grid.grid_drawing/grid
24006 * DataGridColumnStyle.cs: same.
24008 * DataGrid.cs: Roll DataGridDrawingLogic.cs into this file.
24010 * DataGridDrawingLogic.cs: nuke.
24012 2006-06-27 Chris Toshok <toshok@ximian.com>
24014 * DataGridTableStyle.cs: clean up the constructors, and build the
24015 list of child relations for this table. I have no idea if this is
24016 where we should be doing it (it probably isn't), but since we're
24017 already iterating over the properties..
24019 * DataGrid.cs: add row resizing. for now we add a DataGridRow
24020 struct and array for keeping track of row information, similar to
24021 what's shown in a hack on
24022 http://www.syncfusion.com/FAQ/WindowsForms/FAQ_c44c.aspx.
24024 * Theme.cs: be consistent about the naming of DataGrid methods,
24025 prefering ColumnWidths and RowHeights over columnsWidths and
24028 * ThemeWin32Classic.cs: same, and also add support for variable
24029 sized rows (and the +/- expansion icons for related rows).
24031 2006-06-27 Peter Dennis Bartok <pbartok@novell.com>
24033 * TextBoxBase.cs: Applied Eno's patch from #78660
24035 2006-06-27 Peter Dennis Bartok <pbartok@novell.com>
24037 * Form.cs (ScaleCore): We don't want to scale our form if it's
24038 state is minimized or maximized, but we still need to scale our
24039 child windows. Also, added try/finally block to ensure layout
24040 gets reset (Fixes #78697)
24042 2006-06-27 Peter Dennis Bartok <pbartok@novell.com>
24044 * Control.cs: Added 2.0 Scale(SizeF) method (Fixes 78700)
24046 2006-06-27 Peter Dennis Bartok <pbartok@novell.com>
24048 * Form.cs: Fixed c+p error and added check to resize form if minimum
24049 size is bigger than current size (Fixes #78709)
24051 2006-06-26 Peter Dennis Bartok <pbartok@novell.com>
24053 * ThemeEngine.cs (..ctor): Properly use ToLower() (Fixes #78704)
24055 2006-06-26 Mike Kestner <mkestner@novell.com>
24057 * ComboBox.cs: only do Keypress handling in the combo when there
24058 are items in the collection. Fixes #78710.
24060 2006-06-26 Chris Toshok <toshok@ximian.com>
24062 * Binding.cs: make this work bi-directionally. also, clear up
24063 other mixups between Push/Pull Data (e.g. we're supposed to pull
24064 data when validating).
24066 * BindingManagerBase.cs: trim some fully qualified collection
24069 * PropertyManager.cs (get_IsSuspended): oops, fix this check.
24071 2006-06-23 Chris Toshok <toshok@ximian.com>
24073 * PropertyManager.cs: It appears (according to the unit tests)
24074 that PropertyManager doesn't use
24075 PropertyDescriptor.AddValueChanged to track propery value changes
24076 in its datasource, but uses the same scheme as Binding, where it
24077 looks for a <Property>Changed event and binds to it.
24079 Also, according to the docs, IsSuspended always returns false for
24080 a property manager with a non-null datasource.
24082 2006-06-22 Peter Dennis Bartok <pbartok@novell.com>
24084 * Form.cs: (ShowDialog): If we're returning a forced cancel we still
24085 need to update the actual DialogResult. (Fixes #78613)
24087 2006-06-22 Peter Dennis Bartok <pbartok@novell.com>
24089 * Form.cs (ShowDialog): Release any captures before running the
24090 new message pump (fixes #78680)
24092 2006-06-22 Mike Kestner <mkestner@novell.com>
24094 * ListView.cs: Layout column widths properly in details mode even
24095 if HeaderStyle.None is set. Fixes #78691.
24097 2006-06-21 Peter Dennis Bartok <pbartok@novell.com>
24099 * FileDialog.cs: Fixed taborder to match MS. Fixes #77873 partially.
24101 2006-06-21 Peter Dennis Bartok <pbartok@novell.com>
24103 * Control.cs (ContainsFocus): Using new driver method to get focused
24104 window, instead of trying to use internal tracking var, which can
24105 recursion issues (Fixes #78685)
24106 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
24107 XplatUIWin32.cs: Added GetFocus method to return focused window
24109 2006-06-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24111 * ColorDialog.cs: when the mouse button is pressed inside the color
24112 matrix, don't let the cursor move out of it until the button is
24113 released, which is the behavior on windows. Changed 'colours' by
24114 'colors' to use the same word consistently.
24116 2006-06-21 Chris Toshok <toshok@ximian.com>
24118 * DataGrid.cs: add in some basic navigation stuff (navigating to a
24119 child relation and back, using a stack). Also, remove
24120 GetDataSource and the code that calls it - it's not needed. Also,
24121 track CurrencyManager.ListName's removal.
24123 2006-06-21 Chris Toshok <toshok@ximian.com>
24125 * CurrencyManager.cs: push some of the original type checking from
24126 BindingContext.CreateBindingManager to here, and remove some of
24127 the finalType stuff. Need more tests to make sure I've got the
24128 ListName part right, and we might need more in SetDataSource.
24130 * PropertyManager.cs: add a ctor that takes just the datasource,
24131 and no property name. Make SetDataSource work with a null
24132 property_name, and make Current return the data_source if the
24133 property descriptor is null. this makes 'string foo = "hi";
24134 BindingContext[foo].Current' return "hi" as it should.
24136 * RelatedCurrencyManager.cs: make this code more generic - there's
24137 no reason the parent manager has to be CurrencyManager, and
24138 there's no reason to pass the DataRelation. It suffices to use a
24139 BindingManagerBase and PropetyDescriptor.
24141 * RelatedPropertyManager.cs: make a similar change here.
24143 * BindingContext.cs: make CreateBindingManager the beautiful, tiny
24144 flower I knew it could be.
24146 2006-06-20 Chris Toshok <toshok@ximian.com>
24148 * PropertyManager.cs: the PropertyChangedHandler is invoked when
24149 data in the source has changed and we need to update the control,
24150 so s/PullData/PushData.
24152 * CurrencyManager.cs: Refresh is meant to update the control from
24153 data in the datasource. So, s/PullData/PushData.
24155 * BindingContext.cs: add more ugliness (we weren't handling the
24156 case where data_source = DataTable and data_member = column_name).
24158 * Binding.cs: fix PushData/PullData mixup. Both are interpreted
24159 from the perspective of the datasource. PullData pulls from the
24160 control, PushData pushes to the control.
24162 2006-06-20 Chris Toshok <toshok@ximian.com>
24164 * BindingContext.cs: rewrite the CreateBindingManager code to
24165 handle navigation paths more or less properly. This could
24166 definitely stand some more work, in particular to push the
24167 recursion up to the toplevel. But that relies on fixes in other
24168 places (System.Data comes to mind).
24170 Also, move to a flat hashtable (and encode the twolevel nature of
24171 the dictionary into the hash key). This lets us implement the
24172 IEnumerable.GetEnumerator method.
24174 * RelatedCurrencyManager.cs: new class. Update our view based on
24175 our relation and our parent CurrencyManager's position.
24177 * CurrencyManager.cs: split out some logic from the ctor into
24178 SetView, so it can be called from the new RelatedCurrencyManager
24181 * RelatedPropertyManager.cs: new class. Update our datasource
24182 based on the position of our parent CurrencyManager.
24184 * PropertyManager.cs: split out some logic from the ctor into
24185 SetDataSource, so it can be called from the new RelatedDataSource
24186 subclass. Also, make the Current getter return the value
24187 of the PropertyDescriptor, not the data_source.
24189 * Binding.cs: no need to duplicate the string splitting code here.
24191 2006-06-19 Peter Dennis Bartok <pbartok@novell.com>
24194 - set_Enabled: OnEnabledChanged is not called if the inherited state
24195 of the control is not altered, even though we might be changing the
24196 internal state of the control (#78458)
24197 - set_Enabled: (Re)Moved the enabling/disabling of the window to
24198 OnEnabledChanged, to allow easy altering of any child window state
24199 - OnEnabledChanged: Added code to enable/disable driver window state
24200 - OnParentEnabledChanged: Instead of firing the event, call
24201 OnEnabledChanged, which will fire the event and also a) set driver
24202 window state and pass the enabled state to any grandchildren (#78458)
24204 2006-06-19 Jackson Harper <jackson@ximian.com>
24206 * InternalWindowManager.cs: We don't set the cursor explicitly
24207 thats done via the response to NCHITTESTs.
24208 - Don't need to adjust for titlebar heights anymore, the
24209 coordinates are coming in the correct coordinates now (see peters
24213 2006-06-19 Peter Dennis Bartok <pbartok@novell.com>
24215 * XplatUIX11.cs (GetMessage): WM_NCxBUTTONx messages were wrongly
24216 being translated relative to whole window, instead of client window.
24217 That caused broken offsets on mouseclick (and caused gas for our
24218 InternalWindowManager)
24220 2006-06-15 Peter Dennis Bartok <pbartok@novell.com>
24223 - MoveCaret: Implemented PgUp, PgDown, CtrlPgUp and CtrlPgDown
24224 - Undo(): Added replay of cursor move on DeleteChars action; added
24225 calling Undo() again if a recorded cursor move is invalid (to
24226 ensure that some action is performed on Undo)
24227 * TextBoxBase.cs (ProcessKey): Added handling of PgUp and PgDown (#78482)
24229 2006-06-16 Jackson Harper <jackson@ximian.com>
24231 * MdiClient.cs: Instead of just sizing maximized windows when
24232 there is a resize we also have to adjust the Y of minimized
24233 windows, so they stay pinned to the bottom of the mdi container.
24234 - Eliminate separate tracking of the active control, we can just
24235 get this from the controls collection.
24236 - Paint the decorations for the newly activated titlebar so we get
24238 * InternalWindowManager.cs:
24239 * ThemeWin32Classic.cs: Minimized windows get all three buttons
24240 even if they are a tool window.
24242 2006-06-15 Peter Dennis Bartok <pbartok@novell.com>
24244 * TextControl.cs (Undo): Handle non-existent cursor locations in the
24245 undo buffer, these can happen when text was deleted and the cursor
24246 was recorded first. Since we will also have a recorded cursor
24247 after the delete this is not an issue. (Fixes #78651)
24249 2006-06-14 Peter Dennis Bartok <pbartok@novell.com>
24251 * AccessibleObject.cs: Remove dependence on Control.is_selected;
24252 instead properly track control states internally (allows us to
24253 remove is_selected from Control)
24255 2006-06-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24257 * ImageListStreamer.cs: correctly generate the 1bpp mask for images
24258 whose width is not a multiple of 8.
24260 2006-06-13 Jackson Harper <jackson@ximian.com>
24262 * MdiClient.cs: Only maximize the next child if the current one
24265 2006-06-13 Chris Toshok <toshok@ximian.com>
24267 * DataGridColumnStyle.cs: Invalidate the column when HeaderText is
24268 modified. Also, guard against grid or grid_drawing being null in
24271 * DataGrid.cs: Reformat tons of getters/setters. In the
24272 DataMember setter, just call SetNewDataSource instead of
24273 duplicating some of its functionality. In SetNewDataSource, don't
24274 check ListManager for null, since the property getter creates the
24277 * DataGridTableStyle.cs: don't set TableStyle or call
24278 SetDataGridInternal on the column here, it's done in
24279 GridColumnStylesCollection.Add.
24281 * GridColumnStylesCollection.cs: fix all the explicit interface
24282 implementations to just call our methods. Nuke AddInternal() and
24283 move the body of it to Add(). Also, add a call to
24284 column.SetDataGridInternal to Add().
24286 * DataGridTextBoxColumn.cs (.ctors): call this() instead of
24287 base()+duplicate code. Also, use the Format property instead of
24288 format to generate an Invalidate ala MS. Lastly, create the
24289 textbox here, unconditionally.
24290 (set_Format): call Invalidate.
24291 (get_TextBox): no need to call EnsureTextBox.
24292 (Commit): remove the message box.
24293 (Edit) remove the call to EnsureTextBox.
24294 (EndEdit): call HideEditBox instead of ReleaseHostedControl.
24295 (EnterNullValue): no need to check textbox for null.
24296 (HideEditBox): no need to check textbox for null.
24297 (SetDataGridInColumn): add the textbox to the grid's controls.
24298 (EnsureTextBox): nuke.
24300 2006-06-13 Jackson Harper <jackson@ximian.com>
24302 * MdiWindowManager.cs: Hook up to the maximized menus paint event
24303 and redraw the buttons when needed. Unhook when the window is
24305 * MainMenu.cs: Add an internal Paint event, the mdi window manager
24306 needs this so that it can redraw its buttons when the menu is
24308 * InternalWindowManager.cs:
24309 * Form.cs: The method order has changed for DrawMaximizedButtons,
24310 so that it can be a PaintEventHandler.
24312 2006-06-13 Jackson Harper <jackson@ximian.com>
24314 * MdiClient.cs: When we close a maximized mdi window, the next mdi
24315 window is activated and maximized, even if it wasn't before.
24316 - When a new window is activated repaint the decorations of the
24317 old one, so that it no longer has the Active "look" (the blue
24319 * InternalWindowManager.cs: Open up CreateButtons to base classes
24320 so they can recreate the buttons on state changes.
24321 - If a window is maximized give it all three buttons
24322 * MdiWindowManager.cs: Create the titlebar buttons when the state
24323 is changed, this is needed because a toolwindow will not have all
24324 three buttons until it is maximized.
24326 2006-06-13 Atsushi Enomoto <atsushi@ximian.com>
24328 * ProgressBar.cs : PerformStep() shouldn't exceed Maximum.
24331 2006-06-12 Jackson Harper <jackson@ximian.com>
24333 * KeysConverter.cs: Make sure we handle the Ctrl special case
24334 if its the only key.
24336 2006-06-12 Jackson Harper <jackson@ximian.com>
24338 * Theme.cs: Add a method to get the size of a managed window
24340 * InternalWindowManager.cs: Remove the ButtonSize property, this
24341 should be retrieved from the theme.
24342 * MdiWindowManager.cs: Get the button size from the theme
24343 * ThemeWin32Classic.cs: Make the method to get the managed window
24344 titlebar button size public.
24345 - Handle the different button sizes of maximized toolwindows
24346 (should match any maximized window).
24347 - Get the titlebar height from the theme, not the WM (which gets
24348 it from the theme).
24350 2006-06-12 Jackson Harper <jackson@ximian.com>
24352 * InternalWindowManager.cs: Handle NC Double Clicks, passing the
24353 event down to the mdi window manager.
24354 - Expose some extra stuff to base classes
24355 - Make sure to end the Capture on an NC Mouse up, so that we can
24356 get double clicks properly, and the sizing doens't stick.
24357 - When doing PointToClient contain it in the workable desktop
24358 area, this prevents windows from changing size when the cursor is
24359 pulled outside of the working area while sizing.
24360 * MdiWindowManager.cs: When we get a double click maximize the
24362 - Reset the cursor after handling mode changes.
24364 2006-06-12 Peter Dennis Bartok <pbartok@novell.com>
24366 * XplatUIX11.cs (WorkingArea): Read the actual workarea for the
24367 current desktop, instead of just assuming a 0, 0 origin. This
24368 is needed for our internal window manager, to know the top
24369 margin of the desktop
24371 2006-06-12 Chris Toshok <toshok@ximian.com>
24373 * DataGrid.cs (set_CurrentCell): concede focus as we move around.
24374 we need this to get rid of the selected background in the bool
24376 (CancelEditing): move the ConcedeFocus call to above the Abort
24377 call. Also, set is_changing to false and invalidate the row
24378 header if we were changing before.
24379 (ProcessKeyPreviewInternal): remove, since noone outside this
24380 class calls it anymore. Roll the code into ProcessKeyPreview.
24381 (EndEdit): remove the internal version.
24382 (InvalidateCurrentRowHeader): make private.
24384 * DataGridBoolColumn.cs: simplify this class a bunch. remove the
24385 Keys.Escape handling (and with it the last call to
24386 DataGrid.EndEdit from outside the class.)
24389 2006-06-12 Chris Toshok <toshok@ximian.com>
24391 * DataGridTextBox.cs (.ctor): isedit defaults to false.
24392 (OnKeyPress): set isedit to true.
24393 (ProcessKeyMessage): remove Keys.Enter handling from here. it's
24394 already handled by the grid.
24396 * DataGrid.cs (set_CurrentCell): more work here. it's still not
24398 (set_DataSource): SetDataSource always returns true, so stop
24399 putting it in an if statement.
24400 (EndEdit): get rid of some {}'s
24401 (ProcessGridKey): return true in case Keys.Escape.
24402 (ProcessKeyPreviewInternal): only handle KEYDOWN messages.
24403 (ConnectListManagerEvents,DisconnectListManagerEvents): connect to
24404 PositionChanged, stopped connecting to CurrentChanged.
24405 (GetDataSource): simplify this a bunch.
24406 (SetDataSource): change return type from bool to void.
24407 (OnListManagerPositionChanged): rename OnListManagerCurrentChanged
24408 to this, and make sure we don't set ListManager.Position inside
24410 (OnListManagerItemChanged): if we're passed an actual index,
24413 * CurrencyManager.cs (set_Position): don't call PullData here.
24415 2006-06-09 Jackson Harper <jackson@ximian.com>
24417 * TreeNode.cs: Recalculate the visible order before doing the
24418 Expand/Collapse Below calls, because those calls generate an
24420 - Reduce calls to the TreeView property, which is mildly expensive
24421 by using a local var.
24422 * Form.cs: Layout the MDI child windows when creating the parent
24424 - Don't use the internal constructor anymore
24425 * MdiClient.cs: use the parent form width/height (if available)
24426 when laying out the child windows, we do this because the
24427 mdiclient isn't docked yet when the initial layout is done.
24428 - Don't need an internal constructor anymore.
24430 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24432 * FileDialog.cs: handle access errors when trying to create a folder
24433 or changing to a directory. No need to initialize out parameters.
24435 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
24437 * FileDialog.cs: Append a number when creating a new folder if the
24438 folder already exists (use parenthesis instead of square brackets)
24440 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
24443 - Disabled registry support for windows and added better registry
24444 error checking for other systems (need to investigate why it
24445 works perfectly on my system)
24446 - If a folder already exist show an error MessageBox instead of
24447 trying to create an indexed name.
24448 - Fixed a non intentional typo.
24450 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24452 * FileDialog.cs: (SetFileName) don't crash if CurrentRealFolder is null.
24454 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
24456 * FileDialog.cs: When creating a new folder don't crash if the
24457 folder already exists.
24459 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
24461 * FileDialog.cs: Allmost a complete rewrite.
24462 - added a "virtual" file system that handles the differences
24463 between unix and windows file systems (especially the directory
24464 structure). Moved most of the directory and file handling code
24466 Added vfs classes: MWFVFS, FileSystem, WinFileSystem,
24467 UnixFileSystem and FSEntry.
24468 - Recently used folder/directory, size, location and used file names
24469 (file name ComboBox) are now stored in the registry and get read
24470 before the dialog shows up (fixes part 6 of bug #78446).
24471 - Creation of new folders/directories is now possible (context menu
24472 or ToolBar). Added TextEntryDialog for this that fills in the gap
24473 until ListView.LabelEdit works.
24474 - Fixed cursor handling (bug #78527) and focus handling for
24476 - Various "Search in" ComboBox enhancements. The content of the
24477 dropdown listbox now almost matches ms.
24478 - Changed the behaviour when the user switches to SpecialFolder
24479 Recent to show the ListView in View.Details.
24480 - Beside using the ToolBar to change the View property of the
24481 file ListView it is now possible to use the context menu too.
24483 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
24485 * ComboBox.cs: Don't create a new ObjectCollection when an item
24486 gets inserted. Just insert the item in the existing object_items
24489 2006-06-08 Jackson Harper <jackson@ximian.com>
24491 * OpenTreeNodeEnumerator.cs: Fix to use the Parent property, so
24492 that the treeview and root node checks are done also, this fixes a
24493 regression i caused in the unit tests.
24495 2006-06-07 Wade Berrier <wberrier@novell.com>
24497 * RichTextBox.cs: More ISO8859-1 -> unicode
24499 2006-06-07 Mike Kestner <mkestner@novell.com>
24501 * ComboBox.cs : use items to hold highlight/selection so that
24502 collection insertions don't require synchronization.
24504 2006-06-07 Jackson Harper <jackson@ximian.com>
24506 * InternalWindowManager.cs: Simplify (and FIX) the window sizing
24507 routine. We now always keep the sized edge at the cursor instead
24508 of computing movement and adjusting rects. There is one buglet
24509 with this method though when the cursor is moved over area that
24510 the window can not expand too (such as the toolbars on the desktop).
24512 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24514 * XplatUIX11.cs: (IsEnabled,IsVisible) the window handler can be null
24515 here. Fixes crash on startup in AlbumSurfer.
24517 2006-06-07 Peter Dennis Bartok <pbartok@novell.com>
24519 * RichTextBox.cs: Replaced embedded ISO8859-1 chars with proper unicode
24522 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24524 * XplatUIX11.cs: call XPending and XNextEvent inside the same lock()
24525 statement to avoid calling XNextEvent which will block if another thread
24526 took the event that we were expecting. Fixes bug #78605.
24528 2006-06-07 Mike Kestner <mkestner@novell.com>
24530 * ListView.cs : isolated checkbox clicking from the selection logic.
24531 Toggle check state on item doubleclicks. Really fixes #78454 part2.
24533 2006-06-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
24535 * Form.cs: Check that the value passed to Form.DialogResult
24536 is a valid enum value.
24538 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24540 * FileDialog.cs: disable the up button when in 'Recently Used' or 'My
24541 Computer'. Clicking it in the network view goes to 'My Computer'.
24542 Added CIFS filesystem type. Display the mount point of filesystems.
24543 Avoid duplicate mount points (happens for me with CIFS);
24545 2006-06-06 Jackson Harper <jackson@ximian.com>
24547 * InternalWindowManager.cs: Draw the maximized windows buttons
24550 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24552 * Form.cs: when running a modal dialog, ignore WM_CLOSE requests for
24553 all other dialogs. Fixes bug #78585.
24555 2006-06-06 Mike Kestner <mkestner@novell.com>
24557 * CheckedListBox.cs : apply CheckOnClick behavior to unchecking too.
24558 Only invalidate checkbox on checkstate changes to avoid flicker.
24559 * ListBox.cs : avoid unselect/select when clicking selected item.
24560 avoid reselection flicker for already multiselected items.
24563 2006-06-06 Jackson Harper <jackson@ximian.com>
24565 * MdiWindowManager.cs: When the window is closed do an NCRecalc on
24566 the parent form so that the menu is removed if needed.
24568 2006-06-06 Mike Kestner <mkestner@novell.com>
24570 * ListBox.cs : add ScrollWindow call to UpdateTopItem. fix
24571 Prev/Next/PrevPage/NextPage/Home/End index calculation. Fixes #78559.
24573 2006-06-06 Mike Kestner <mkestner@novell.com>
24575 * CheckedListBox.cs : rebuild check collection on Add. Fixes #78426.
24578 2006-06-06 Jackson Harper <jackson@ximian.com>
24580 * Control.cs: Use the property (instead of the field) to get the
24581 default cursor so it is instantiated correctly.
24582 * InternalWindowManager.cs: The OS doesn't give us an NCPAINT with
24583 resizes so we need to manually repaint the window decorations here.
24584 - Set the titlebar button locations as soon as they are created,
24585 otherwise they are not set correctly on win32.
24587 2006-06-06 Chris Toshok <toshok@ximian.com>
24589 * CurrencyManager.cs (set_Position): call PullData before
24591 (AddNew): after calling IBindingList.AddNew, update our
24592 listposition, and call OnCurrentChanged/OnPositionChanged (without
24594 (OnCurrentChanged): remove the call to PullData from here.
24595 (OnItemChanged): remove the call to PushData from here.
24596 (OnPositionChanged): change the test from == null to != null to
24597 match the other methods.
24598 (ListChangedHandler): the grossest part of the patch. Implement
24599 this such that it passes the unit tests in CurrencyManagerTest and
24600 the output more or less matches that of MS's implementation.
24602 2006-06-06 Mike Kestner <mkestner@novell.com>
24604 * ListView.cs : only update check state on single click.
24605 * ThemeWin32Classic.cs : fix focus drawing for details view without
24606 fullrowselect. Fixes #78454.
24607 * XplatUIX11.cs : fix for double click emission.
24609 2006-06-05 Jonathan Chambers <jonathan.chambers@ansys.com>
24611 * PropertyGridView.cs : Applied Atsushi's patch to fix
24612 font dialog bug (#78197).
24614 2006-06-05 Jackson Harper <jackson@ximian.com>
24616 * TreeNode.cs: Compute the next node for expanding/collapsing
24617 correctly. We now factor in nodes without a NextNode
24618 correctly. (Fixes somes cases in nunit-gui).
24619 * InternalWindowManager.cs: Set the bounds when updating the
24620 virtual position of a tool window.
24622 2006-06-05 Chris Toshok <toshok@ximian.com>
24624 * DataGrid.cs: rename cached_currencymgr to list_manager.
24625 (set_CurrentCell): move SetCurrentCell code here, and clean it up
24627 (CurrentRow, CurrentColumn): single accessors so we can make the
24628 cursor movement code a lot easier to understand.
24629 (CurrentRowIndex): implement this in terms of CurrentRow.
24630 (BeginEdit): clean this up a bit.
24631 (CancelEditing): sort out the is_editing/is_changing/is_adding
24633 (EndEdit): minor changes.
24634 (OnKeyDown): add a comment about a (most likely) unnecessary
24636 (OnMouseDown): cancel editing when we click on a row header. And
24637 use the CurrentRow setter, not CurrentCell.
24638 (ProcessDialogKey): directly call ProcessGridKey.
24639 (UpdateSelectionAfterCursorMove): factor out this common block of
24640 code (it's used everywhere that we move the cursor by updating row
24642 (ProcessGridKey): pretty substantial overhaul. Use the
24643 CurrentRow/CurrentColumn properties to make the code a lot more
24644 readable. Only use the CurrentCell property when we have to
24645 modify both row and column at once. Tab behavior is still broken,
24646 and Delete is untested.
24647 (Select): if we have no selected rows, set selection_start to
24649 (EditCurrentCell): rename EditCell this. It was only ever invoked
24650 with CurrentCell as the arg, so drop the arg and rename it.
24652 * DataGridColumnStyle.cs: clean up the constructors a little, and
24653 drop CommonConstructor().
24655 * DataGridTextBox.cs (.ctor): set accepts_return to true so we
24656 actually get notified when the user hits it.
24657 (ProcessKeyMessage): *substantially* simplify this method.
24658 There's no reason (that I can see) for the textbox to be making
24659 calls into the datagrid at all. Remove all of them but the ones
24660 for Enter handling. those will take some more work.
24662 * DataGridTextBoxColumn.cs (ConcedeFocus): implement this by
24663 calling HideEditBox.
24664 (HideEditBox): if we have an active textbox, render it invisible
24665 without causing a re-layout of the datagrid.
24667 2006-06-05 Mike Kestner <mkestner@novell.com>
24669 * ListView.cs : fix NRE crasher when focuseditem is cleared by
24670 collection changes by resetting it to Items[0]. Fixes #78587.
24672 2006-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24674 * MessageBox.cs: if the height of the text is larger than the icon_size,
24675 use that. Fixes bug #78575.
24677 2006-06-05 Jackson Harper <jackson@ximian.com>
24679 * TreeView.cs: Fix line drawing when scrolling. To do this each
24680 node is basically responsible for drawing its entire horizontal
24681 area. When drawing a node it draws its parent node lines if
24683 - Adjust the clip area to the viewport rectangle
24684 - Fix Left/Right key handling to match MS. (It expand/collapses
24685 and moves to parents/first child but does not move selection to
24687 - Fix SetTop to work with new bound calculation code
24688 - When scrollbars are no longer needed we need to reset scrolling
24689 vars and recalculate the visible order so the redraw is correct
24690 * TreeNode.cs: We can't expand/collapse nodes with no children.
24692 2006-06-03 John Luke <john.luke@gmail.com>
24694 * X11DesktopColors.cs: dllimport the exact gtk and gdk versions
24695 so the colors work without dev packages
24697 2006-06-02 Peter Dennis Bartok <pbartok@novell.com>
24700 - Select: Implemented to just use activate. Seems to match MS
24701 behaviour closest. Documented to only do actual control walking
24702 based on it's parameters if in a container control so I moved
24704 - Removed selection check logic from our internal Select() method
24705 * ContainerControl.cs:
24706 - Select: Moved selection logic from Control here, since MS documents
24707 that containers obey the bool arguments. No longer calling base
24709 2006-06-02 Jackson Harper <jackson@ximian.com>
24711 * TreeView.cs: If the selected node isn't changed when we get
24712 focus update the previously selected node so that we see the
24715 2006-06-02 Mike Kestner <mkestner@novell.com>
24717 * ComboBox.cs: restructure grab and general mouse event handling.
24718 Make the composite control raise mouse events like it was a single
24719 control for leaves/enters/motion/up/down events. fix dropdown list
24720 coordinate mangling and refactor it into the scrollbar subclass to
24721 reduce code duplication. Fixes #78282 #78361 and #78457.
24723 2006-06-02 Mike Kestner <mkestner@novell.com>
24725 * ScrollBar.cs: remove Capture setting/clearing, as it happens
24726 automatically in the Control.WndProc.
24728 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24730 * FileDialog.cs: fix crash when running SharpChess, which sets the
24731 FilterIndex to 2 with only one Filter.
24733 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24735 * ToolBar.cs: add SizeSpecified property.
24736 * ToolBarButton.cs: when the ButtonSize is calculated by the container,
24737 try to figure out our real size, otherwise fallback to what the
24740 2006-06-01 Peter Dennis Bartok <pbartok@novell.com>
24742 * XplatUIX11.cs (DefWndProc): WM_MOUSEWHEEL needs to be passed up
24743 * Control.cs (WndProc): MS always calls the DefWndProc to pass
24746 2006-06-01 Mike Kestner <mkestner@novell.com>
24748 * ListView.cs: revamp the focus management in ListView. It still
24749 causes churn of LostFocus/GotFocus emissions on clicks, but it's
24750 better than not handling focus at all. Will revisit when pdb feels
24751 the general focus handling is solid. Fixes #78526.
24753 2006-06-01 Jackson Harper <jackson@ximian.com>
24755 * TreeView.cs: Set the default border style in the constructor.
24756 - Move painting to use OnPaintInternal instead of capturing
24757 WM_PAINT, this is the correct way of doing things
24758 - UpdateBelow shouldn't invalidate the scrollbar area
24759 - Cap the top on update below in case the node was above the top
24760 of the viewport rectangle.
24761 - ExpandBelow and Collapse below need to obey Begin/End Update.
24762 * TreeNode.cs: Make is_expanded internal so the treenode
24763 collection can change it without firing the whole event chain.
24764 * TreeNodeCollection.cs: When clearing all the child nodes make
24765 sure to recalc the visible order.
24766 - Improve algo for remove the top node
24768 2006-06-01 Peter Dennis Bartok <pbartok@novell.com>
24770 * XplatUIX11.cs (SetFocus): Make sure we can handle re-entrancy due to
24771 SendMessage directly calling window procedures, which in turn might
24774 2006-06-01 Peter Dennis Bartok <pbartok@novell.com>
24776 * Control.cs: Don't handle WM_SETFOCUS if the same window already
24777 has focus (works around X11 sending a FocusIn after our SetFocus)
24778 * XplatUIX11.cs: Send KILLFOCUS before setting SETFOCUS on new window
24780 2006-06-01 Alexander Olk <alex.olk@googlemail.com>
24782 * Mime.cs: Fix for the NET_2_0 build.
24783 NameValueCollection needs StringComparer now.
24785 2006-05-31 Chris Toshok <toshok@ximian.com>
24787 * DataGridDrawingLogic.cs (FromPixelToColumn): modify this to also
24788 return (via an out parameter) the starting X of the column.
24789 (UpdateVisibleColumn): track change to FromPixelToColumn.
24790 (HitTest): add a ColumnResize case here.
24791 (DrawResizeLine): new function, probably poorly named.
24793 * DataGrid.cs (.ctor): get rid of cached_currencymgr_events. We
24794 only need to keep one reference.
24795 (set_ListManager): same.
24796 (OnMouseDown): call HitTest instead of grid_drawing.HitTest.
24797 Also, add support for HitTestType.ColumnResize.
24798 (OnMouseMove): add column resize behavior here, and change the
24799 cursor to the correct one as we move around the datagrid.
24800 (OnMouseUp): terminate the column resize if we're resizing.
24801 (ProcessGridKey): from the MS docs, Alt-0 enters the null value
24802 for the current cell.
24803 (ConnectListManagerEvents): use cached_currencymgr.
24804 (DisconnectListManagerEvents): fill this in, using
24805 cached_currencymgr.
24806 (SetCurrentCell): remove cached_currencymgr_events handling.
24807 (SetDataMember): only call DisconnectListManagerEvents if
24808 cached_currencymgr is != null.
24809 (SetDataSource): same.
24810 (OnListManagerCurrentChanged): cached_currencymgr_events ->
24811 cached_currencymgr.
24813 2006-05-31 Jackson Harper <jackson@ximian.com>
24815 * BindingManagerBase.cs: Remove somedebug code that creeped into
24817 * TreeNode.cs: We get the indent level dynamically right now, so
24818 don't track it as a member.
24819 * TreeNodeCollection.cs: Make sure all nodes added to the list
24820 have parents, treeviews/topnodes setup properly.
24821 - Don't attempt to track indent level.
24823 2006-05-30 Jackson Harper <jackson@ximian.com>
24825 * BindingContext.cs: Create the currency manager tables here.
24826 This allows us to more easily create null tables (when bad data
24827 members are used), and more easily create related currency
24829 * CurrencyManager.cs: All the table creation stuff is done by the
24830 binding context now.
24831 - Current should throw an exception if listposition is -1.
24832 - CancelCurrentEdit/EndCurrentEdit, do nothing if the list hasn't
24835 2006-05-30 Mike Kestner <mkestner@novell.com>
24837 * ListView.cs: allow reexpansion of zero-width column headers.
24840 2006-05-28 Chris Toshok <toshok@ximian.com>
24842 * CurrencyManager.cs (get_Current): after the late binding
24843 listposition = -1 fix, we need to guard against it here and return
24844 null, otherwise we raise an exception (which is swallowed
24845 elsewhere, and breaks datagrid databinding.)
24847 2006-05-26 Peter Dennis Bartok <pbartok@novell.com>
24849 * MenuAPI.cs (ProcessMenuKey): We can legally get msg types other
24850 than WM_SYSKEY, don't throw if get something unexpected (#78507)
24852 2006-05-26 Jackson Harper <jackson@ximian.com>
24855 * ThemeWin32Classic.cs: For color comparisons just use the ARGB
24856 values, it's faster and it's all we care about (we don't care if
24857 the names aren't equal).
24858 * KeyboardLayouts.cs: Eliminate some dead code.
24860 * X11Keyboard.cs: Lazy init keyboard detection.
24861 - Cleanup access modifiers a little.
24863 2006-05-26 Peter Dennis Bartok <pbartok@novell.com>
24865 * XplatUIX11.cs: Once again, attempting to get layout just right.
24867 2006-05-26 Peter Dennis Bartok <pbartok@novell.com>
24869 * LinkLabel.cs (CreateLinkPieces): Use MeasureString to calculate
24870 the sizes of each link section, that will result in sizes that
24871 match DrawString's layout (Fixes #78391)
24873 2006-05-27 Alexander Olk <alex.olk@googlemail.com>
24875 * FileDialog.cs: If AddExtension property is true autocomplete the
24876 extensions in SaveFileDialog correctly. Fixes bug #78453.
24877 Set MyNetwork and MyComputer to "C:\" for windows. This should
24878 fix part 8 of bug #78446 for now.
24880 2006-05-26 Chris Toshok <toshok@ximian.com>
24882 * DataGrid.cs (ColumnStartedEditing): fill these in. for now just
24883 invalidate the current row header if we need to, but presumably
24884 we'll invalidate the row corrsponding to the bounds or
24886 (GridHScrolled): switch back to this method, as it's part of the
24887 public api. *sigh*.
24888 (GridVScrolled): same.
24889 (OnMouseWheel): hack up something that more or less works. Call
24890 GridHScrolled/GridVScrolled directly, instead of duplicating much
24891 of their code here.
24892 (EnsureCellVisibility): reinstate a bunch of this code, since we
24893 can't just set the scrollbar Value and expect to do all the work
24894 in the ValueChanged handler. Also, Call Update() after scrolling
24895 in one direction so the other XplatX11.ScrollWindow call has the
24896 proper stuff in the proper places.
24897 (EditCell): set is_editing to true before calling .Edit.
24899 * DataGridTextBox.cs (set_IsInEditOrNavigateMode): just set it,
24900 don't bother comparing first.
24901 (OnKeyPress): call grid.ColumnStartedEditing before calling
24902 base.OnKeyPress. this will set is_changing and invalidate the row
24903 header if necessary.
24904 (ProcessKeyMessage): for WM_CHAR messages, call
24905 ProcessKeyEventArgs directly. swallow anything other than WM_CHAR
24908 * DataGridBoolColumn.cs (Edit): don't set is_editing to true here.
24909 it's done in the DataGrid.
24910 (NextState): call grid.ColumnStartedEditing, which takes care of
24911 invalidating the row header (and setting is_changing).
24913 * DataGridTextBoxColumn.cs (Edit): don't set is_editing to true
24914 here. it's done in the DataGrid.
24916 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24918 * Control.cs: allow changing the cursor when the mouse position is
24919 out of bounds but Capture is set.
24920 * LinkLabel.cs: handle the case when the mouse button is pressed on the
24921 linklabel but released somewhere else.
24923 2006-05-25 Jackson Harper <jackson@ximian.com>
24925 * TreeView.cs: When we get focus if there is no selected node make
24927 - Remove some uneeded setup code from Draw.
24928 * TreeNodeCollection.cs: If the tree doesn't have a top node when
24929 a new node is inserted make the new node the top.
24931 * Timer.cs: Use Utc time so that no local time zone stuff needs to
24932 be used (should be faster).
24934 2006-05-25 Chris Toshok <toshok@ximian.com>
24936 * DataGrid.cs (EnsureCellVisibility): remove some code to fix a
24937 problem with the last commit.
24939 2006-05-25 Chris Toshok <toshok@ximian.com>
24941 * DataGridTextBoxColumn.cs (ReleaseHostedControl): turns out we do
24942 need the invalidate call here, while scrolling right-to-left via
24943 the left arrow key (i.e. moving the editing cell while scrolling).
24945 * DataGrid.cs (.ctor): remove the initialization of
24946 ctrl_pressed/shift_pressed. We no longer track them using key
24947 up/down handlers, but by using Control.ModifierKeys. Also, switch
24948 to using ValueChanged handlers on the scrollbars instead of
24949 Scrolled event handlers. This simplifies a bunch of the scrolling
24951 (GridHValueChanged): rename from GridHScrolled, and change it to
24952 work with the new event args.
24953 (GridVValueChanged): same.
24954 (OnMouseDown): initialize ctrl_pressed/shift_pressed here.
24955 (OnMouseWheel): actually scroll the datagrid. Don't change the
24957 (ProcessGridKey): correct all the keyboard navigation stuff I
24958 could find. Ctrl up/down/left/right/home/end work now.
24959 (EnsureCellVisibility): correct method name spelling. Also,
24960 simplify this a touch by not explicitly calling the
24961 ScrollToRow/ScrollToColumnInPixels methods. We just set the
24963 (OnKeyUpDG): no need for this method now.
24965 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24967 * LinkLabel.cs: display the OverrideCursor when hovering the label.
24970 2006-05-25 Chris Toshok <toshok@ximian.com>
24972 * ThemeWin32Classic.cs: fix datagrid clipping problems caused by
24975 2006-05-25 Peter Dennis Bartok <pbartok@novell.com>
24977 * Application.cs: Moved setting of is_modal and closing to before
24978 we create the control, to allow the event handlers called as a
24979 result of creation affect closing. Also removed Gonzalo's previous
24980 change to setting DialogResult, the behaviour has been moved to
24983 - ShowDialog(): Removed explicit creation of the form, let RunLoop
24985 - ShowDialog(): If no dialog result is set, we need to return Cancel
24986 - WM_CLOSE: Fire Closing/Closed events, and reset dialog result if
24987 the close is cancelled
24989 2006-05-25 Jackson Harper <jackson@ximian.com>
24991 * StatusBar.cs: We only need to update the sizes of the other
24992 panels when we have auto size contents. Also we are only updating
24993 the contents of the panel, not the borders, so compensate for the
24994 border width (TODO: get this width from the theme somehow).
24995 * TreeView.cs: Scrollable is true by default
24996 - Use invalidate instead of refresh where needed
24997 - Factor the scrollable value into scrollbar updating
24998 - Update the scrollbars if the Scrollable property is altered
24999 - Update the selected node if its ImageIndex is changed
25000 - Handle null nodes in UpdateNode (mainly so we don't have to
25001 check if selected is null when updating it
25002 - Fix VisibleCount to use the ViewportRectangle so that scrollbars
25003 are factored into the visible count
25004 - Use VisibleCount for clarity in the code
25005 - When the font is changed we need to recurse through all the
25006 nodes and invalidate their sizes
25008 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25010 * Application.cs: set the DialogResult to fixed when the main form is
25011 hidden or destroyed while being modal.
25013 2006-05-25 Miguel de Icaza <miguel@novell.com>
25015 * Theme.cs: Use Tangoified messagebox icons.
25017 (GetSizedResourceImage): Also cope with width = 0 and do not
25018 trigger a warning in that case (0 means "give me your icon from
25019 the resouce, no special size needed).
25021 2006-05-25 Peter Dennis Bartok <pbartok@novell.com>
25023 * Application.cs: Leave runloop if the the main modal form is
25024 hidden (fixes #78484)
25026 2006-05-25 Atsushi Enomoto <atsushi@ximian.com>
25028 * BindingContext.cs : reject null datasource in Contains() and
25030 * CurrencyManager.cs : check data_member validity when data_source
25031 is dataset. When it is late binding, the initial position is -1.
25033 2006-05-24 Jackson Harper <jackson@ximian.com>
25035 * TreeNodeCollection.cs: Dont't recalculate the visible order on
25036 inserted nodes that aren't visible. This changes the
25037 max_visible_order which confuses scrollbar settings.
25038 - Use the enumerator to get the prev node instead of duplicating
25040 * TreeView.cs: Use new method for setting scrollbar values
25041 - Don't set the bounds every time the scrollbar is updated
25042 - When updating below the root node use an invalidate instead of a
25043 refresh to prevent the child controls (scrollbars) from being
25044 refreshed. (UpdateBelow still needs to be reworked anyways).
25045 - Reenable SetBottom now that visible orders are set correctly,
25046 added some debug code incase we ever get bad values there again.
25047 - Set the scrollbar max to 2 less then the max value, this
25048 compensates for the max value being one above the node count, and
25049 for scrollbars adding one extra "notch".
25050 - When drawing image nodes if there is an imagelist we draw the
25051 first image in the list if the supplied image index is out of the
25052 image list's bounds.
25054 2006-05-24 Peter Dennis Bartok <pbartok@novell.com>
25056 * XplatUIX11.cs: Don't blindly cache hwnd.ClientRect, reset it when
25057 we receive a size change from the WM (Fixes #78503)
25059 2006-05-24 Peter Dennis Bartok <pbartok@novell.com>
25061 * XplatUIWin32.cs, XplatUIX11.cs: Refresh when setting the Clip
25062 rectangle (Fixes #78501)
25064 2006-05-24 Peter Dennis Bartok <pbartok@novell.com>
25067 - Fixed MouseUp, MouseDown and MouseMove to treat mouseevent.Button
25069 - Fixed MouseMove to no longer switch pressed state unless the left
25070 mouse button is pressed. Atsushi provided the original patch (#78485)
25072 2006-05-24 Jackson Harper <jackson@ximian.com>
25074 * ScrollBar.cs: New internal methods that allow us to change a
25075 couple values on the scrollbar (the most common case is maximum
25076 and large change) without getting multiple invalidates.
25078 2006-05-24 Chris Toshok <toshok@ximian.com>
25080 * DataGridBoolColumn.cs (Abort): revert back to the saved setting.
25081 (Edit): save off the original state in oldState, and set
25082 grid.is_editing to true.
25083 (OnKeyDown): abort editing if escape is pressed. also, call
25084 NextState if space is pressed.
25085 (OnMouseDown): call NextState.
25086 (NextState): factor out shared code from OnKeyDown and OnMouseDown
25087 here. Also, only invalidate the row header once (on the initial
25088 is_changing switch) to save on redraws.
25090 2006-05-24 Chris Toshok <toshok@ximian.com>
25092 * DataGridTextBoxColumn.cs (Commit): only call SetColumnValueAtRow
25093 if the value in the cell is different than it was before. This
25094 keeps us from triggering a layout when we move around a datarid
25095 with a highlighted cell.
25096 (Edit): suspend layout when creating/positining the text box, and
25097 resume passing false so we don't ever actually re-layout.
25098 (ReleaseHostedControl): same.
25099 (EnsureTextBox): reformat slightly, and set WordWrap to false.
25101 * DataGridTextBox.cs (ProcessKeyMessage): it's not true that all
25102 control-key sequences should go to the datagrid - remove that
25103 lock. Also, modify the conditions under which we move between
25104 cells when moving the cursor within a cell, and remove the "this"
25105 and "base" from field accesses. We weren't even consistent, given
25106 they all were in the base class.
25108 2006-05-24 Atsushi Enomoto <atsushi@ximian.com>
25110 * Binding.cs : (.ctor)
25111 An obvious NRE fix for BindingTest.CtorNullTest().
25113 2006-05-23 Chris Toshok <toshok@ximian.com>
25115 * TextBoxBase.cs (get_Text): don't add a trailing newline, add
25116 them between lines. This fixes some quirks editing cells in the
25119 2006-05-23 Jackson Harper <jackson@ximian.com>
25121 * TreeView.cs: Use begin/end update when doing expand/collapse all
25122 so that we don't get flicker on the scrollbar.
25124 2006-05-23 Jackson Harper <jackson@ximian.com>
25126 * TreeNode.cs: Bounds are computed 'on the fly' now. This allows
25127 treenode calculations to be independant of the painting code. To
25128 do this nodes track a visible order which is calculated by the
25130 - Call new methods for expanding/collapsing nodes. These methods
25131 use scrollwindow so we don't have to update everything below the
25133 * TreeView.cs: Refactored drawing and scrolling code. We don't
25134 need to update nodes when drawing anymore or calculate scrollbar
25136 - Added new methods for expanding/collapsing nodes. These methods
25137 use ScrollWindow so as to not have to redraw all the nodes below.
25138 * TreeNodeCollection.cs: Recalc visible order and scrollbars when
25139 we add/remove nodes or sort.
25140 - Handle removing the selected and the top node properly.
25142 2006-05-23 Chris Toshok <toshok@ximian.com>
25144 * DataGridTextBoxColumn.cs (Edit): set grid.is_editing to true.
25145 maybe this should actually happen in the datagrid code?
25146 (EndEdit): no need to invalidate anything, given that
25147 ReleaseHostedControl causes the datagrid to relayout, which
25148 invalidates everything anyway.
25150 * DataGrid.cs (set_CurrentCell): remove duplicate check (it's also
25151 in SetCurrentCell).
25152 (set_SelectionBackColor): call InvalidateSelection instead of
25154 (set_SelectionForeColor): same.
25155 (BeginEdit): Flesh this out a bit.
25156 (CancelEditing): only do any of this if we're editing/adding.
25158 (OnMouseDown): there's no need to cancel editing here, it's done
25160 (SetCurrentCell): only invalidate the current row header if it's a
25161 different row than the new one.
25162 (ShiftSelection): fix this to work like MS does.
25163 (ResetSelection): factor out the invalidation of selected_rows to
25164 InvalidateSelection.
25165 (SetDataSource): cancel any editing that's going on.
25167 * DataGridColumnStyle.cs
25168 (IDataGridColumnStyleEditingNotificationService.ColumnStartedEditing):
25169 call the non-interface version.
25171 * ThemeWin32Classic.cs (DataGridPaintColumsHdrs): intersect the
25172 header rectangle with the clip rectangle so we don't redraw the
25173 entire header for just a small area. Gets rid of the last flicker
25174 when horizontally scrolling.
25175 (DataGridPaintRow): same.
25177 2006-05-23 Mike Kestner <mkestner@novell.com>
25179 * ListViewItem.cs: remove size for line hack from LargeIcon layout.
25180 * ThemeWin32Classic.cs: don't draw line. it's really the top of a
25181 poorly placed checkbox on the MS control. Fixes Alex's unfiled
25182 Critical bug report.
25184 2006-05-23 Peter Dennis Bartok <pbartok@novell.com>
25186 * PictureBox.cs: Fixed broken ControlStyles. Unit test no longer fails,
25187 and this fixes #78493
25189 2006-05-23 Miguel de Icaza <miguel@novell.com>
25191 * Theme.cs (GetSizedResourceImage): Scale images if the proper
25194 * FileDialog.cs: Do not change the background for the side bar as
25195 it wont work nicely with the theme, and also reduces the artifacts
25196 in rendering the icons (which I want to fix too).
25198 * MimeIcon.cs (ResourceImageLoader): Load images from assembly
25199 resources, not resgen resources.
25201 (PlatformDefaultHandler): Pull images using the new API.
25203 2006-05-23 Peter Dennis Bartok <pbartok@novell.com>
25205 * Hwnd.cs (Dispose): Remove any pending exposures. XEventQueue holds
25206 a reference to the hwnd and will not remove it unless there are
25207 no pending exposures (fixes #78341)
25208 * XplatUI.cs: Improved debug
25210 2006-05-23 Atsushi Enomoto <atsushi@ximian.com>
25212 * MenuAPI.cs : don't handle OnClick event when it was not the left
25213 button. Fixed bug #78487.
25215 2006-05-23 Mike Kestner <mkestner@novell.com>
25217 * MenuAPI.cs: fix placement of submenus for multi-row menu bars, and
25218 prefer submenus to the top menu for item lookup, to avoid popping down
25221 2006-05-23 Alexander Olk <alex.olk@googlemail.com>
25223 * ThemeWin32Classic.cs: Rewrote CPCPDrawScrollButton to drop
25224 Graphics.FillRectangle as the visual results are really bad (even
25225 on win). We now draw perfect arrows (and perfect shadows when the
25226 scrollbar is disabled). Simplified CPDrawGrid. CPDrawGrid now uses
25227 Pen.DashPattern to draw the dots of each line.
25229 2006-05-22 Alexander Olk <alex.olk@googlemail.com>
25231 * FileDialog.cs: Update the filename combobox when navigating through
25232 the ListView with the cursor keys. Fixes part 7 of bug #78446.
25234 2006-05-22 Mike Kestner <mkestner@novell.com>
25236 * ListView.cs: raise SelectedIndexChanged on keyboard selection.
25239 2006-05-22 Mike Kestner <mkestner@novell.com>
25241 * ComboBox.cs: Refresh in EndUpdate to pick up all the dropped Paint
25242 requests. Fix a misspelled parameter and a copy paste exception error
25245 2006-05-22 Peter Dennis Bartok <pbartok@novell.com>
25247 * ThemeWin32Classic.cs: Changed DefaultFont emSize from 8.25 to 8
25248 to get the same width/height (5/13) on X11 as the default font has on
25249 win32. This means that our DefaultFont emSize is smaller than the
25250 the MS SWF equivalent (even thought the width/height stays the same)
25252 2006-05-20 Jackson Harper <jackson@ximian.com>
25255 * MdiWindowManager.cs:
25256 * InternalWindowManager.cs: Make sure to use the border width from
25259 2006-05-20 Jordi Mas i Hernandez <jordimash@gmail.com>
25261 * PrintDialog.cs: Implements printer details
25263 2006-05-19 Alexander Olk <alex.olk@googlemail.com>
25265 * FileDialog.cs: Added focus handling for PopupButtonPanel.
25266 Fixes part 1 and 2 of bug #78446
25268 2006-05-19 Peter Dennis Bartok <pbartok@novell.com>
25270 * XplatUIX11.cs (SetWindowPos): Recalculate client area size on resizes
25271 instead of sticking to the first ever calculated value
25273 2006-05-19 Mike Kestner <mkestner@novell.com>
25275 * ComboBox.cs: fix mouse motion selection to use MousePosition and
25276 PointToClient, since Capture is set. Fixes #78344.
25278 2006-05-19 Mike Kestner <mkestner@novell.com>
25280 * ListView.cs: match MS behavior in Details view where items are not
25281 drawn if Columns.Count == 0.
25282 * ThemeWin32Classic.cs: only highlight ListView selection if focused.
25283 Use a separate pen to draw the check, since changing the width affects
25284 the box as well. Fixes #78454.
25286 2006-05-18 Miguel de Icaza <miguel@novell.com>
25288 * ListView.cs: ArgumentOutOfRangeException, single versions of the
25289 exception should throw the name of the invalid argument.
25291 * FileDialog.cs (OnClickOpenSaveButton): Avoid crash in open if
25292 there are no files listed.
25294 2006-05-18 Jackson Harper <jackson@ximian.com>
25296 * ThemeWin32Classic.cs: Don't use endcaps, they mess the drawing
25299 2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
25301 * Control.cs: Brought back our old UpdateZOrder method as a private
25302 function and switched our calls from UpdateZOrder to the new one.
25303 This fixes the Paint.Net canvas disappearing bug.
25305 2006-05-18 Jackson Harper <jackson@ximian.com>
25308 * ThemeWin32Classic.cs:
25309 * InternalWindowManager.cs: Move the drawing into the theme,
25310 expose everything the theme should need from the window manager.
25312 2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
25314 * XplatUIX11.cs (DefWndProc): WM_SETCURSOR: Assign the return value
25315 from the call to NativeWindow to avoid walking up the parent chain
25316 further than needed (speeds up setting cursors and avoids setting
25317 the wrong cursor if a parent has another cursor defined)
25318 * Cursor.cs: When loading an icon as cursor, MS uses the center of
25319 the icon as hotspot, not what's contained as hotspot in the icon
25320 file. This fixes the perceived drawing offset seen with Paint.Net
25322 2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
25325 - Store the calculated rectangle in Hwnd object and use it when
25326 setting the client size
25327 - Force Toolwindows to always be type Dock, to ensure they're on top
25329 2006-05-18 Mike Kestner <mkestner@novell.com>
25331 * ComboBox.cs: first pass at ComboBox rework. Layout is more
25332 consistent with MS positioning. IntegralHeight, ItemHeight, Sizing.
25333 Correctly initialize textcontrol and ListBox on DropDownStyle changes.
25334 Substantial refactoring to remove confusing nested classes. Coding
25335 standard and Get+Set->property refactorings. Shift to index based
25336 highlighting in ComboListBox instead of constantly using IndexOf and
25337 Items[]. Add invalidations on resize for DropDownList to fix ugliness
25338 in FileDialog growth. Draw borders manually since Simple mode needs
25339 to look like two independent controls. Make listbox border
25340 conditional to DropDownStyle. Improved OwnerDraw support.
25342 2006-05-18 Sebastien Pouliot <sebastien@ximian.com>
25344 * PaintEventArgs.cs: For 2.0, check for a null Graphics in the .ctor.
25345 Don't set the disposed graphics to null, so we can throw the "right"
25346 exception if the graphics is reused later (added a flag to avoid
25347 double disposing). Some behaviours are different under 2.0 and are
25348 filled under bug #78448.
25350 2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
25352 * Control.cs: When double-buffering is enabled, we need to reset
25353 our graphics context between paint calls. Otherwise, any
25354 transformations and other alterations on the context will
25355 become cumulative (#77734)
25357 2006-05-18 Mike Kestner <mkestner@novell.com>
25359 * ListView.cs: do focused item selection like MS on clicks.
25360 Rework focus handling for ItemControl so LostFocus invalidates as
25362 * ThemeWin32Classic.cs: only draw focus rectangle for ListViewItems if
25363 the ListView ItemControl has focus.
25365 2006-05-17 Peter Dennis Bartok <pbartok@novell.com>
25367 * XplatUIX11.cs: If client_window ends up being width or height zero
25368 due to border settings, move it off window inside whole_window (#78433)
25370 2006-05-17 Alexander Olk <alex.olk@googlemail.com>
25372 * Mime.cs: Shrink the mime file cache correctly.
25374 2006-05-17 Alexander Olk <alex.olk@googlemail.com>
25376 * ThemeWin32Classic.cs: Readded button focus drawing code. (#78429)
25378 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
25380 * XplatUIX11.cs (AddExpose): More sanity checks
25382 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
25385 - AddExpose: Don't add expose ranges outside the size of our
25387 - Cast opacity values to Int32 to avoid crashes with certain
25389 - Added disabled code paths that protect against illegal cross-
25390 thread painting (Developers.exe)
25392 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
25394 * ProgressBar.cs: Invalidate the control when it's resized
25395 since block size is based on control size. (#78388)
25397 2006-05-16 Miguel de Icaza <miguel@novell.com>
25399 * DataGrid.cs (SetDataBinding): per the discussion on irc, instead
25400 of setting the incoming argument to the "reset" value, we set the
25401 this.datamember to string.empty (before we were invalidating the
25406 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
25408 * Form.cs: Only apply transparency settings after the form
25409 is created. (Fixes #77800)
25411 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
25413 * ApplicationContext.cs: Grab the HandleDestroyed event so
25414 we know when to fire OnMainFormClosed
25416 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
25418 * Application.cs: Introduced sub-class to allow tracking of
25419 threads and centralized triggering of the event mess for
25420 ThreadExit, AppExit, etc.. (#76156)
25422 2006-05-16 Alexander Olk <alex.olk@googlemail.com>
25425 - Do not return a null icon index value for a mime subclass.
25426 Instead try the main mime type class too.
25427 - Seems that some newer distributions don't have a link to some
25428 gnome default icons anymore. So check the default gnome dir too.
25431 2006-05-16 Jackson Harper <jackson@ximian.com>
25433 * MdiClient.cs: Don't paint the parent background image if we have
25434 our own background image.
25436 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
25439 - PerformLayout: Do not shrink space filled by DockStyle.Fill
25440 controls, all filled controls are supposed to overlap (#78080)
25441 - UpdateZOrder is supposed to update the control's z-order in the
25442 parent's z-order chain. Fixed to behave like that
25443 - BringToFront: Removed obsolete code
25444 - SendToBack: Simplyfied
25445 - SetChildIndex: Trigger layout calculations when Z-order changes
25446 since layout is done by z-order
25448 2006-05-16 Chris Toshok <toshok@ximian.com>
25450 [ fixes bug #78410 ]
25451 * DataGrid.cs (set_AlternatingBackColor): use
25452 grid_drawing.InvalidateCells instead of Refresh().
25453 (set_BackColor): call grid_drawing.InvalidateCells.
25454 (set_BackgroundColor): use Invalidate instead of Refresh.
25456 * DataGridDrawingLogic.cs (InvalidateCells): new function, just
25457 invalidate the cell area.
25459 2006-05-15 Chris Toshok <toshok@ximian.com>
25461 [ fixes bug #78011 ]
25462 * ThemeWin32Classic.cs (DataGridPaintRows): pass the clip argument
25463 on to DataGridPaintRow.
25464 (DataGridPaintRow): take a clip argument, and only draw the cells
25465 which intersect it. same with the not_usedarea.
25467 * Theme.cs (DataGridPaintRow) add @clip parameter.
25469 * DataGrid.cs (ScrollToColumnInPixels): simplify, use
25470 XplatUI.ScrollWindow.
25471 (ScrollToRow): same.
25473 * DataGridDrawingLogic.cs (UpdateVisibleColumn): fix corner case
25474 with last column which was causing a gray swath to appear with the
25475 XplatUI.ScrollWindow code.
25477 2006-05-15 Chris Toshok <toshok@ximian.com>
25479 * ListBox.cs (HorizontalScrollEvent): in the non-multicolumn case,
25480 use XplatUI.ScrollWindow.
25481 (VerticalScrollEvent): use XplatUI.ScrollWindow.
25483 2006-05-15 Peter Dennis Bartok <pbartok@novell.com>
25485 * TextBoxBase.cs: Added handling of middle-button paste for X11. (#78375)
25487 2006-05-15 Peter Dennis Bartok <pbartok@novell.com>
25489 * Cursors.cs: For X11, read NWSE and NESW cursors from our resource
25490 file since there are no equivalent X11 cursors
25492 2006-05-15 Atsushi Enomoto <atsushi@ximian.com>
25494 * MonthCalendar.cs : DateTimePicker should reflect selected date
25495 on mouse*up*, not mouse*down*. Fixed originally reported part of
25498 2006-05-15 Atsushi Enomoto <atsushi@ximian.com>
25500 * TabControl.cs : When argument index is equal or more than tab
25501 count, just ignore. Fixed bug #78395.
25503 2006-05-15 Peter Dennis Bartok <pbartok@novell.com>
25505 * Control.cs: Dispose all child controls when control is diposed (#78394)
25507 2006-05-14 Alexander Olk <alex.olk@googlemail.com>
25509 * ColorDialog.cs: Finally it is possible to select the color with
25512 2006-05-14 Alexander Olk <alex.olk@googlemail.com>
25514 * PrintDialog.cs: Fix typo
25516 2006-05-14 Alexander Olk <alex.olk@googlemail.com>
25518 * PrintDialog.cs: PrintDialog is not resizable
25519 * ThemeWin32Classic.cs: Draw non links in LinkLabel with the correct
25520 color. Made some ToolBar drawing methods protected virtual.
25522 2006-05-13 Jordi Mas i Hernandez <jordimash@gmail.com>
25524 * PrintDialog.cs: Implementation of the PrintDialog
25526 2006-05-12 Chris Toshok <toshok@ximian.com>
25528 * ScrollBar.cs (set_Value): don't use Dirty/Invalidate to move the
25529 thumb, instead use MoveThumb. This has the side effect of making
25530 most of the other thumb moving machinery use MoveThumb as well.
25531 (OnHandleCreated): pass false for @dirty to UpdateThumbPos, as we
25532 need to actually invalidate the rectangle where the new thumb will
25534 (MoveThumb): use XplatUI.ScrollWindow to move the thumb around.
25535 We force an Update() after, so it's not as fast as it could be,
25536 but at least there's zero flicker and no droppings.
25537 (OnMouseMoveSB): in the thumb dragging case, use MoveThumb.
25538 (UpdateThumbPos): add another argument (dirty), which says whether
25539 or not to calculate/add dirty regions which we later invalidate.
25540 For cases where we know we're going to use MoveThumb, we pass
25541 false for this. Otherwise, pass true.
25543 2006-05-12 Jackson Harper <jackson@ximian.com>
25545 * ThemeWin32Class.cs: Fixes for alignment and icon rendering in
25548 2006-05-12 Peter Dennis Bartok <pbartok@novell.com>
25550 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new SetClipRegion
25551 and GetClipRegion methods and UserClipWontExposeParent property.
25552 * XplatUIWin32.cs: Implemented SetClipRegion/GetClipRegion methods,
25553 overriding UserClipWontExposeParent property, setting to false, since
25554 Win32 handles the required expose messages to draw our clipped parent
25556 * XplatUIX11.cs: Implemented SetClipRegion and GetClipRegion; updated
25557 PaintEventStart to set the user clip region if set.
25559 - Now internally tracking the Region for the control since we need to
25560 store it if the handle is not yet created and only set it when it
25561 becomes created. Before setting the region forced handle creation
25562 - Added code to draw the parents underneath a user-clipped region
25563 * Hwnd.cs: Added UserClip property
25565 2006-05-12 Chris Toshok <toshok@ximian.com>
25567 * ScrollBar.cs (set_LargeChange): Refresh() -> InvalidateDirty()
25568 (set_Maximum): same.
25569 (set_Minimum): same.
25570 (set_SmallChange): same.
25571 (OnMouseUpSB): remove the call to refresh when releasing the
25572 thumb. We shouldn't need it.
25574 2006-05-12 Miguel de Icaza <miguel@novell.com>
25576 * StatusBar.cs (UpdatePanel): If the panel being refreshes has the
25577 AutoSize set to None, we do not need to relayout everything, we
25578 just need to invalidate the current region.
25580 (Draw): Do not draw the entire ClientArea, just redraw the
25581 clip area being passed.
25583 * MdiClient.cs: Make MdiClient constructor with the Form argument
25586 2006-05-12 Jackson Harper <jackson@ximian.com>
25588 * ThemeWin32Classic.cs (DrawToolBar): Flat toolbars get their
25589 parents background image, but strangely not their own.
25590 - (DrawStatusBarPanel): Take into account horizontal alignment
25591 when drawing the strings and icons.
25593 2006-05-12 Mike Kestner <mkestner@novell.com>
25595 * ListBox.cs: avoid invalidations for focus when the collection is
25598 2006-05-12 Chris Toshok <toshok@ximian.com>
25600 * ScrollBar.cs (OnMouseMoveSB): when dragging the thumb, don't
25601 invalidate the entire thumb area. Call InvalidateDirty which
25602 limits the redraw to the thumb itself and surrounding pixels.
25604 * XplatUIX11.cs (ScrollWindow): optimize copying.
25606 2006-05-12 Chris Toshok <toshok@ximian.com>
25608 * DataGridDrawingLogic.cs: make CalcGridAreas non-reentrant.
25609 Figure out the positioning/layout in a single pass instead of
25610 multiple recursive invocations. Speeds up the initial display of
25611 the data grid. Also, make many things private that were
25612 originally public but unused outside this class.
25614 2006-05-11 Jackson Harper <jackson@ximian.com>
25616 * MdiClient.cs: Improved layout code.
25618 2006-05-11 Jonathan Chambers <jonathan.chambers@ansys.com>
25620 * PropertyGrid.cs : Only check GetPropertiesSupported for properties,
25621 not SelectedObject.
25623 2006-05-11 Chris Toshok <toshok@ximian.com>
25625 * Hwnd.cs (Invalid): don't start off with Rectangle.Empty, as
25626 union of that will always be {0,0,width,height}.
25628 2006-05-11 Jackson Harper <jackson@ximian.com>
25630 * Form.cs: Match MS's DefaultSize for forms (they must have
25631 changed the size in sp2).
25633 2006-05-11 Atsushi Enomoto <atsushi@ximian.com>
25635 * TextBoxBase.cs : implement CTRL+A (select all). Fixed bug #78368.
25637 2006-05-11 Atsushi Enomoto <atsushi@ximian.com>
25639 * TextControl.cs : Fixed bug #78109. This incorrect position
25640 comparison caused crash on automatic line split.
25641 * TextBoxBase.cs : reduce duplicate code.
25643 2006-05-10 Jackson Harper <jackson@ximian.com>
25645 * MdiClient.cs: Active form is only sent to the back when using
25646 the Next form functionality, when a form is clicked the current
25647 active shouldn't be sent to the back.
25648 - Layout the mdi windows when the container is first made visible.
25649 * Form.cs: Give the MdiClient a ref to the containing form when we
25652 2006-05-10 Atsushi Enomoto <atsushi@ximian.com>
25654 * LinkLabel.cs : link_font could be uninitialized, so populate one
25655 before actual use. Fixed bug #78340.
25657 2006-05-10 Atsushi Enomoto <atsushi@ximian.com>
25659 * XplatUIX11.cs : clipboard format native value is IntPtr.
25662 2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
25665 - Instead of showing context menus directly we send WM_CONTEXTMENU,
25666 which is passed up the parent chain by DefWndProc
25667 - We now handle WM_CONTEXTMENU to display any menu, or pass it
25668 to DefWndProc (#77956)
25669 * XplatUIX11.cs: Added handling of WM_CONTEXTMENU (pass up) to DefWndProc
25671 2006-05-10 Jackson Harper <jackson@ximian.com>
25673 * MdiClient.cs: We need to remove the controls from the mdi
25674 collection, when we close the window.
25675 * MdiWindowManager.cs: Special handling of closing mdi windows.
25676 * InternalWindowManager.cs: Make the close method virtual so the
25677 mdi window manager can handle it specially.
25679 2006-05-10 Jordi Mas i Hernandez <jordimash@gmail.com>
25682 - Recalculate grid when the data source has changed
25683 - Matches styles provided by user from all data sources types
25684 * DataGridTableStyle.cs: For columns that provided by the user set the
25685 with the preferred value is there was unassigned.
25686 * CurrencyManager.cs: throw OnItemChanged event
25688 2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
25690 * PictureBox.cs: Don't animate until handle is created. Start animation
25691 when handle is created.
25693 2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
25695 * XplatUIX11.cs, Hwnd.cs: Adopted Mike's patch from #77979 to match
25697 * XEventQueue.cs: We don't need to provide the extra info
25699 2006-05-10 Jackson Harper <jackson@ximian.com>
25701 * MdiClient.cs: If the mdi clients parent form has a background
25702 image set, we draw that background image for the mdi area's
25705 2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
25707 * TextBoxBase.cs: Set IBeam cursor (#78347)
25709 2006-05-10 Mike Kestner <mkestner@novell.com>
25711 * ToolBar.cs: fix some text padding issues with ButtonSize
25712 calculation. Update the default size to match MS documentation.
25713 * ToolBarButton.cs: use ToolBar.ButtonSize for layout of unspecified
25714 button size. Fixes #78296.
25716 2006-05-10 Mike Kestner <mkestner@novell.com>
25718 * ListBox.cs: use is_visible for scrollbar positioning in case the
25719 control isn't on screen yet. Fix off by one with Right vs Width
25720 usage. Update Scrollbars in SetBoundsCore. Fixes #78188 and #78258.
25722 2006-05-10 Jackson Harper <jackson@ximian.com>
25724 * X11Dnd.cs: Drop to a control with another control on top of it.
25725 * ToolBar.cs: Work on a copy of the buttons list, so that it can
25726 be modified in click handlers. TODO: Look for similar problems in
25729 2006-05-09 Jackson Harper <jackson@ximian.com>
25731 * Form.cs: Window managers need the old window state when setting
25733 * InternalWindowManager.cs: Allow the base mdi window manager to
25734 handle more of the MDI only stuff (like maximize buttons).
25735 * MdiWindowManager.cs: Fix some snafus in changing the window
25736 state. Add all the menu functionality, for both popup and
25738 * MdiClient.cs: When a new form is selected the currently
25739 activated form is sent to the back, this matches MS.
25740 - Implement a new method to activate the next mdi child window.
25742 2006-05-08 Peter Dennis Bartok <pbartok@novell.com>
25745 - Added new InternalCapture method to allow controls to prevent
25746 the capture behaviour on the click handlers
25747 - Switched to use InternalCapture
25749 - Using InternalCapture to prevent mouse captures from being released
25750 on mouse button release (Fixes #78100)
25751 * XplatUIX11.cs (DeriveStyles): Now checks caption state and only
25752 returns Form borders if a caption is present. (Fixes #78310)
25754 2006-05-08 Peter Dennis Bartok <pbartok@novell.com>
25756 * TreeNode.cs: Changed serialization .ctor to not require every field
25757 to be present. (#78265)
25758 * OwnerDrawPropertyBag.cs: Added serialization .ctor
25760 2006-05-05 Alexander Olk <alex.olk@googlemail.com>
25762 * MimeIcon.cs: for is faster than foreach for strings.
25764 2006-05-05 Mike Kestner <mkestner@novell.com>
25766 * CheckedListBox.cs: update check handling code to not use selected.
25767 * ListBox.cs: rewrite of mouse selection handling to correspond to MS
25768 behavior for visual feedback, motion response, shift/ctrl handling,
25769 and properly deal with all 4 selection modes. Updates to bounds
25770 handling logic. Add scroll wheel support. [Fixes #77842]
25772 2006-05-05 Peter Dennis Bartok <pbartok@novell.com>
25775 - Moved adding of Implicit controls into .ctor. That way, subsequent
25776 creation of the controls will not cause them to think they are
25777 toplevel windows (fixes #78200 header problem)
25778 - Added 2.0 ShowGroups and UseCompatibleStateImageBehaviour
25779 - Switched visibility setting of header control to use internal field
25780 to avoid triggering handle creation
25781 - Now checking if handle is created before causing a refresh when items
25782 are added (This makes us now match handle creation time with MS)
25783 * Splitter.cs: Removed loading of private splitter cursor, switched to
25784 Cursors version now that that is loading the right ones
25785 * Cursors.cs: Load proper splitter cursors from resources
25786 * Cursor.cs: Added second method of loading resource cursors for the
25787 VS.Net users amongst us
25789 2006-05-05 Mike Kestner <mkestner@novell.com>
25791 * ListView.cs: give header_control a minimum size based on the
25794 2006-05-05 Peter Dennis Bartok <pbartok@novell.com>
25796 * XplatUIX11.cs: WS_EX_TOPMOST requires window to be on top. A dock
25797 window seems to do that with metacity, so set that type. (#78120)
25799 2006-05-05 Mike Kestner <mkestner@novell.com>
25801 * ListViewItem.cs: fix Details mode checkbox layout bug.
25802 * ThemeWin32Classic.cs: draw a ListView column header for unused space
25803 at the end of the header, if it exists. [Fixes for #78200]
25805 2006-05-04 Jackson Harper <jackson@ximian.com>
25807 * MdiClient.cs: Add a helper property to get the container form.
25808 * MdiWindowManager.cs: We have to make sure to use the menu origin
25809 when drawing the icons and buttons, this fixes maximized window
25810 icons/buttons on win32.
25811 * InternalWindowManager.cs: Reset the restore captions when a
25812 window goes from Maximized to Minimized and vice versa. Move the
25813 DrawMaximizedButtons into the MdiWindowManager source, tool
25814 windows can't be maximized. NOTE: This could use a little
25815 refactoring if time ever permits.
25817 2006-05-03 Jonathan Chambers <jonathan.chambers@ansys.com>
25819 * TextBox.cs: Add MWFCategoryAttributes
25820 * TextBoxBase.cs: Add MWFCategoryAttributes
25821 * Form.cs: Add MWFCategoryAttributes
25823 2006-05-03 Jonathan Chambers <jonathan.chambers@ansys.com>
25825 * Control.cs: Add MWFCategoryAttributes
25826 * ScrollableControl.cs: Add MWFCategoryAttributes
25828 2006-05-03 Alexander Olk <alex.olk@googlemail.com>
25830 * ThemeWin32Classic.cs: Draw the ToolBar top border only if
25831 Divider is true. Fix a little glitch in PropertyToolBar
25834 2006-05-02 Peter Dennis Bartok <pbartok@novell.com>
25837 - Dispose: Call base.Dispose, this causes the disposed event
25838 to be fired (and probably other, more important stuff)
25839 - SetVisibleCore: Set is_visible to true after creating the
25840 window so that the window still gets created invisible (if
25841 WM_VISIBLE isn't set). That will cause the ShowWindow afterwards
25842 to generate a WM_ACTIVE message
25843 * Form.cs: Call Dispose when we want to destroy the window, instead of
25844 just destroying the handle (Dispose will do that for us)
25846 - RootWindow also needs a queue, so we can properly process the
25847 property change events from RootWindow (like Activate)
25848 - Generatic synthetic WM_ACTIVE message when the active window is
25851 2006-05-01 Peter Dennis Bartok <pbartok@novell.com>
25853 * LinkLabel.cs: Trigger a recalc of our label dimensions when
25856 2006-05-01 Peter Dennis Bartok <pbartok@novell.com>
25858 * ThemeWin32Classic.cs (ButtonBase_DrawImage): Use the proper image
25859 for determining width and height (image might not be assigned if
25860 we're drawing an imagelist)
25862 2006-05-01 Peter Dennis Bartok <pbartok@novell.com>
25864 * XplatUI.cs, XplatUIDriver.cs: Added MenuHeight property
25865 * XplatUIWin32.cs: Overriding new MenuHeight property, retrieving
25867 * Theme.cs: No longer returns hardcoded menu height, instead calls
25869 * Form.cs (OnLoad): Scaling happens before triggering Load events
25872 2006-05-01 Mike Kestner <mkestner@novell.com>
25874 * MenuItem.cs: fix NRE for text == null. Fixes #78250.
25876 2006-04-30 Peter Dennis Bartok <pbartok@novell.com>
25878 * TextBoxBase.cs: Removed Fixme
25879 * RichTextBox.cs (set_RTF): Invalidate document after update (#78247)
25881 2006-04-30 Peter Dennis Bartok <pbartok@novell.com>
25884 - ScrollWindow: We were passing hwnd.ClientRectangle which returns
25885 the rectangle relative to the parent, considering borders. We
25886 don't really want that.
25887 - ScrollWindow: Fixed warning to be more understandable
25888 * TextBoxBase.cs: Fixed ScrollWindow calculations to consider our
25889 scrollbars and scroll only the visible area
25890 * RichTextBox.cs: Removed debug output
25892 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
25894 * NumericUpDown.cs (Text): Just use base
25895 * UpDownBase.cs: Ensure txtView is created before using it
25897 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
25899 * XplatUIX11.cs (SetWindowTransparency): Casting opacity to int before
25900 casting to IntPtr to avoid 64bit overflow errors
25902 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
25905 - AllowDrop: Don't force handle creation.
25906 - CreateHandle: Added call to tell driver if we're allowed to drop
25908 2006-04-27 Alexander Olk <alex.olk@googlemail.com>
25910 * FileDialog.cs: Remember the last directory not only for the
25911 current instance but also for new FileDialog instances.
25913 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
25915 * XplatUIX11.cs: Forgot to set the queue on the foster parent. That
25916 broke sending async messages
25918 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
25921 - ScrollWindow: Fixed method. We finally generate expose events again
25922 for scrolled areas. This was causing 'garbage' when scrolling
25923 textbox and other controls that used ScrollWindow
25924 - Switched from using the regular queue for paint events to the MS
25925 model of 'generating' paint events when the queue is empty.
25926 We use the new XQueueEvent.Paint subclass to store which windows
25928 - AddExpose now takes the x/y/width/height of the exposed area
25929 and inserts the window into the paint queue if not already there
25930 - InvalidateWholeWindow: Switched to use new AddExpose method
25931 - UpdateMessageQueue: Added which queue to monitor for paint events
25932 - DefWndProc: Added default handler for WM_PAINT and WM_NCPAINT in
25933 the unlikely case nothing above handles it. We reset the expose
25934 pending states to get them off the queue.
25935 - GetMessage: Now pulls a paint event if no other events are in the
25937 - Invalidate: Switched to new AddExpose method
25938 - PeekMessage: Updated to understand pending paint events
25939 - UpdateWindow: Fixed logic bug. We were only updating if the window
25940 didn't need updating. Also switched to sending WM_PAINT directly,
25942 * XEventQueue.cs: Added Paint queue support. Allows enqueue/dequeue
25943 and random access Remove(). The random access is needed to handle
25944 UpdateWindow() where a WM_PAINT is sent directly without accessing
25946 * ScrollBar.cs: Added Update() calls to cause immediate updates to
25947 allow for better feedback when scrolling. Scrollbars are small and
25948 the immediate update should make it 'feel' more responsive without
25949 slowing things down. ScrollBar still needs it's invaliate logic
25950 updated to not always invalidate the whole bar on certain changes.
25952 2006-04-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25955 (BackColor): if the control does not support a transparent background,
25956 return the default backcolor when the parent backcolor is transparent.
25958 2006-04-28 Peter Dennis Bartok <pbartok@novell.com>
25960 * Application.cs: Updated to new StartLoop/GetMessage API
25961 * RichTextBox.cs: Provide some output on RTF parsing errors
25962 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs: Added
25963 new queue_id argument to GetMessage and PeekMessage to allow faster
25964 handling of per-thread queues in drivers.
25965 * Hwnd.cs: Added Queue tracking and property
25966 * MenuAPI.cs: Updated to new StartLoop/GetMessage API
25967 * XEventQueue.cs: Added thread trackingA
25968 * PropertyGridView.cs: Updated to new StartLoop/GetMessage API
25970 - Implemented new per-thread queue
25971 - GetMessage: Fixed return/break behaviour on several cases. We were
25972 returning stale messages in some cases, instead of just processing
25975 2006-04-27 Jonathan Chambers <jonathan.chambers@ansys.com>
25977 * PropertyGrid.cs: Call GetPropertiesSupported on TypeConverter.
25979 2006-04-27 Peter Dennis Bartok <pbartok@novell.com>
25981 * ThemeWin32Classic.cs (DrawToolBar): Refactored, simplified the logic,
25982 fixed off-by-one comparisons between Width/Height and Right/Bottom.
25984 2006-04-27 Jonathan Chambers <jonathan.chambers@ansys.com>
25986 * PropertyGridView.cs: Fix drop down width.
25988 2006-04-27 Alexander Olk <alex.olk@googlemail.com>
25990 * ThemeWin32Classic.cs: Peter thinks that three additional lines are
25991 a mess in DrawToolBar, so I removed one of them.
25993 2006-04-27 Alexander Olk <alex.olk@googlemail.com>
25995 * ThemeWin32Classic.cs: Draw the ToolBar border lines only if
25996 needed (clip). Otherwise we get artifacts.
25998 2006-04-26 Peter Dennis Bartok <pbartok@novell.com>
26000 * FixedSizeTextBox.cs: Added constructor to allow specifying which
26002 * UpDownBase.cs: Set the spinner control to be fixed height vertical,
26003 and switched FixedSizeTextBox to only be fixed vertical (#78116)
26004 * Form.cs: Not applying the 'MS 0.08 fudge factor' for a given dimension
26005 if it matches the scale base font (avoids unneeded scaling)
26007 2006-04-26 Alexander Olk <alex.olk@googlemail.com>
26009 * X11DesktopColors.cs: One gtk_init_check should be enough
26011 2006-04-26 Peter Dennis Bartok <pbartok@novell.com>
26013 * TextBoxBase.cs: Moved Backspace handling into WM_CHAR block to
26016 2006-04-26 Peter Dennis Bartok <pbartok@novell.com>
26019 - Generate OnTextChanged for Backspace even if we're only deleting
26020 the current selection
26021 - When setting the Text property, only select all text if the
26022 control does not have focus when it is being set. Otherwise
26023 just place the cursor at the beginning of the control
26025 2006-04-26 Alexander Olk <alex.olk@googlemail.com>
26027 * ThemeWin32Classic.cs: ToolBars get drawn with two lines at the top.
26028 Added a little helper to draw PropertyGrid ToolBar with a different
26029 border and a different BackColor.
26030 * PropertyGrid.cs: Some background parts didn't get painted with the
26031 correct background color. Added a class that helps us to draw the
26032 correct border for PropertyGridView and a class that helps us to
26033 draw ToolBars with a different backcolor
26034 * PropertyGridView.cs: Draw PlusMinus with the correct colors.
26036 2006-04-25 Jonathan Chambers <jonathan.chambers@ansys.com>
26038 * PropertyGrid.cs: Bug 78196, font size, and splitter location.
26039 * PropertyGridView.cs: Bug 78196, font size, and splitter location.
26041 2006-04-25 Peter Dennis Bartok <pbartok@novell.com>
26043 * XplatUIWin32.cs (DIBtoImage): ORing instead of ANDing the alpha
26044 into the palette entries. Also, since we're working on a copy
26045 we needed to copy the palette back onto the bitmap.
26046 * Cursor.cs: Same fix as XplatUIWin32.cs.
26048 2006-04-25 Peter Dennis Bartok <pbartok@novell.com>
26050 * ImageListStreamer.cs: Need to read the var (or we're off)
26052 2006-04-25 Peter Dennis Bartok <pbartok@novell.com>
26054 * TextControl.cs, ComboBox.cs, CommonDialog.cs, Theme.cs,
26055 XplatUIWin32.cs, RichTextBox.cs, ImageListStreamer.cs,
26056 TextBoxBase.cs: Unused var fixes
26057 * AxHost.cs: Small 2.0 fix
26058 * XplatUIX11.cs: Switched to IntPtr from int for XA_CARDINAL atoms
26059 as it seems that is what at least Metacity expects. This will make
26060 icons show up on 64bit platforms. We still have some 64bit size
26061 issues, though, since the startup app window size still won't match.
26063 2006-04-25 Mike Kestner <mkestner@novell.com>
26065 * *.cs: cleanup newly reported exception var unused warnings.
26067 2006-04-25 Alexander Olk <alex.olk@googlemail.com>
26069 * ThemeWin32Classic.cs: Button image alignment now matches exactly
26072 2006-04-25 Alexander Olk <alex.olk@googlemail.com>
26074 * ThemeWin32Classic.cs: Fixed drawing code for buttons with an
26075 image. The image position is always the same, no matter if the
26076 button is pressed or not.
26078 2006-04-25 Alexander Olk <alex.olk@googlemail.com>
26080 * FileDialog.cs: SaveFileDialog shouldn't rely on a MWFFileView
26081 selection and set the correct filename for SaveFileDialog.
26082 Patch by Emery Conrad.
26084 2006-04-24 Mike Kestner <mkestner@novell.com>
26086 * ListView.cs (LastVisibleIndex): when in List mode of Alignment.Left,
26087 check for item.X outside the ClientRect instead of item.Y. Fixes
26090 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
26092 * ImageListStreamer.cs: some images store a wrong grow factor, so don't
26093 trust that value blindly and do some sanity check. Fixes bug #77814.
26095 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
26097 * ImageListStreamer.cs: save the mask as a 1bpp image.
26099 2006-04-21 Mike Kestner <mkestner@novell.com>
26101 * CheckedListBox.cs: maintain CheckStatus here. Use DrawItemState to
26102 pass Checked and Indeterminate to the Theme Engine. Improve
26103 encapsulation with ListBox.
26104 * ListBox.cs: Keep a StringFormat instead of calculating it every item
26105 draw. Kill ListBoxItem. Refactor away the ListBoxInfo and ListBoxItem
26106 nested types. Move all CheckState functionality to CheckedListBox.
26107 Make IntegralHeight work like MS. Rewrite of Layout engine. Fix
26108 OwnerDrawVariable layout/rendering. Fix multicolumn rendering. Fix
26109 ScrollAlwaysVisible handling. Refactor "selected" collections to use a
26110 single base list. Fix scrollbar sizing and placement to mirror MS.
26111 * Theme.cs: remove CheckedListBoxCheckRectangle. It wasn't really
26113 * ThemeWin32Classic.cs: implement Indeterminate CheckState rendering
26114 for CheckedListBox by using new DrawItemState info. Center the
26115 checkboxes on the items. Use new StringFormat property.
26117 2006-04-18 Jackson Harper <jackson@ximian.com>
26119 * Form.cs: MdiChildren don't do default locations the same way as
26120 regular forms. This prevents a crash when trying to position the
26123 2006-04-17 Jonathan Chambers <jonathan.chambers@ansys.com>
26125 * PropertyGridTextBox.cs: Formatting, copyright
26126 * PropertiesTab.cs: Formatting
26127 * PropertyGrid.cs: Formatting
26128 * PropertyGridView.cs: Formatting, fix drop down, enabled double
26129 click toggling of values
26131 2006-04-17 Peter Dennis Bartok <pbartok@novell.com>
26133 * KeyPressEventArgs: Added 2.0 only setter for KeyChar
26134 * Control.cs (.ctor): verify_thread_handle is static, don't reset
26135 every time a control is created
26136 * Application.cs: Removed obsolete EnableRTLMirroring method
26138 2006-04-18 Gert Driesen <drieseng@users.sourceforge.net>
26140 * TabControl.cs: Avoid ArgumentOutOfRangeException when setting
26141 SelectedIndex to -1. Fixes bug #78121.
26143 2006-04-17 Jackson Harper <jackson@ximian.com>
26145 * Binding.cs: Handle null values for Current and BindingContext.
26146 This occurs when binding is a little delayed.
26147 * CurrencyManager.cs: return null for Current when there are no
26149 - Hookup to the listchanged event on the DataView and update
26150 bindings when the list is changed. This fixes late binding of
26153 2006-04-17 Jackson Harper <jackson@ximian.com>
26156 * XplatUIX11.cs: Drops should not create a mousedown. Patch by Tim
26159 2006-04-15 Alexander Olk <alex.olk@googlemail.com>
26161 * ThemeWin32Classic.cs: Draw disabled combo button in the correct
26163 * ComboBox.cs: If the combobox is disabled call CPDrawComboButton
26164 with the correct ButtonState
26166 2006-04-14 Peter Dennis Bartok <pbartok@novell.com>
26168 * XplatUIX11.cs: Improved distinguishing between window types to
26169 tell the WM a type closer to what the app wants (Fixes #78107)
26171 2006-04-14 Alexander Olk <alex.olk@googlemail.com>
26173 * ThemeWin32Classic.cs: Fixed drawing of ContainerGrabHandle and
26176 2006-04-14 Alexander Olk <alex.olk@googlemail.com>
26178 * ThemeWin32Classic.cs: Fixed size grip drawing and updated StatusBar
26179 drawing code to reflect the size grip changes
26181 2006-04-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
26183 * ImageListStreamer.cs: fix handling of the mask that follows the main
26184 bitmap when deserializing and serialize it properly. The generated mask
26185 should better be a 1bpp image, but I'll do that later.
26187 2006-04-13 Alexander Olk <alex.olk@googlemail.com>
26189 * FileDialog.cs: Show something in the DirComboBox on *nix if the
26190 path doesn't fit into some of our Current.Places
26192 2006-04-13 Jackson Harper <jackson@ximian.com>
26194 * ComboBox.cs: Use borders instead of drawing our own decorations,
26195 try to obey correct rules for heights.
26198 * ThemeClearLooks.cs:
26199 * ThemeWin32Classic.cs: Remove combobox decoration drawing code,
26200 this is now handled by borders.
26201 - Remove unused DrawListBoxDecorationSize method.
26203 2006-04-13 Mike Kestner <mkestner@novell.com>
26205 * MenuAPI.cs: null guarding for the disbled click check fixes crash
26208 2006-04-13 Alexander Olk <alex.olk@googlemail.com>
26210 * ThemeWin32Classic.cs:
26211 - Fixed CPDrawStringDisabled
26212 - Corrected drawing of disabled menu items
26213 - Fixed drawing of disabled radio buttons (bug #78095)
26214 - Draw check in a disabled CheckBox with color ControlDark
26216 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
26218 * Form.cs: Use the provided width when calculating the menu size;
26219 when being maximized we get WM_NCCALCSIZE before WM_WINDOWPOSCHANGED
26220 and ClientSize.Width won't be updated yet
26221 * Application.cs: Use Visible instead of Show() to make form visible,
26222 this way we create the handle later and menusize is considered
26224 2006-04-12 Mike Kestner <mkestner@novell.com>
26226 * MenuAPI.cs: ignore clicks on disabled menu items. Thanks to Alex for
26229 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
26231 * TextBox.cs: Implemented context menu
26233 2006-04-12 Mike Kestner <mkestner@novell.com>
26235 * ListView.cs: implement box selection. fixes #77838.
26236 * ThemeWin32Classic.cs: draw box select rect, remove a ResetClip.
26238 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
26240 * XplatUIX11.cs: Added setting of window type when transient window
26241 is created (metacity would move it otherwise)
26242 * X11Structs.cs: Added WINDOW_TYPE atoms
26243 * LinkLabel.cs: Override OnPaintBackgroundInternal and draw the
26244 background (the control is Opaque but still wants transparent
26247 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
26249 * Control.cs: Added OnPaintBackgroundInternal to allow controls
26250 that set Opaque but don't mean it (like all ButtonBase-derived
26251 controls) to still draw their background
26252 * ButtonBase.cs: Override OnPaintBackgroundInternal and draw
26255 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
26257 * Control.cs (PaintControlBackground): Set the graphics object
26258 on our PaintEvent to null to prevent it from being disposed
26259 when the PaintEvent gets disposed
26261 2006-04-12 Alexander Olk <alex.olk@googlemail.com>
26263 * ThemeWin32Classic.cs: Use even more SystemBrushes and SystemPens
26264 * ThemeNice.cs, ThemeClearlooks.cs: fix typo
26266 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
26269 - Added transparency check to BackColor property. Transparent
26270 backgrounds are only allowed if the control styles permit it
26271 - Added recursive painting of parent control background and
26272 foreground if a control with a transparent backcolor is drawn
26273 (Thanks to Tim Ringenback for providing his 'hack' as a base
26274 for this patch) Fixes #77985 and #78026.
26275 - Added Opaque style check before calling OnPaintBackground, no
26276 need to draw the background if the control is opaque
26277 - Removed ControlAccessibleObject owner variable (inherited from
26278 base, no need to define again)
26279 - Added some documentation links explaining the drawing events
26282 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
26284 * Splitter.cs (CalculateSplitPosition): Corrected the bad assumption
26285 that the affected control is the located at the left border of our
26286 parent (Fixes #77936)
26288 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
26290 * TextBoxBase.cs: When rendering disabled or readonly controls,
26291 draw the background with 'Control' instead of 'Window' color as
26292 long as the user hasn't specifically set a color
26294 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
26296 * TextBoxBase.cs: Don't try to shortcut by checking against base.Text
26297 since that won't be updated if the user types text (only if it's
26298 programatically set)
26300 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
26302 * ScrollableControl.cs: Calculate DisplayRect dynamically, so that
26303 layout changes do to app-triggered resizes will have the proper
26304 display rectangle for layout
26306 2006-04-11 Alexander Olk <alex.olk@googlemail.com>
26308 * ThemeWin32Classic.cs:
26309 - Make use of the SystemBrushes and SystemPens wherever possible
26310 - Corrected some highlight colors
26311 - Corrected RadioButton and CheckBox FlatStyle.Flat and Popup
26313 * Theme.cs: Added Empty field to CPColor struct
26315 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
26317 * ScrollabeControl.cs: We need to consider whether or not a scrollbar
26318 is displayed when calculating the display rectangle. Thanks to Mike
26319 for teaching me the err of my ways.
26321 2006-04-10 Peter Dennis Bartok <pbartok@novell.com>
26323 * ScrollableControl.cs:
26324 - Rewrote DisplayRectangle code, now returning the proper x/y coords
26325 (instead of 0,0) and we now return the real width/height instead of
26326 just the clientrectangle, adjusted for padding. The rectangle is
26327 now cached and created by the new CalculateDisplayRectangle method.
26328 - Created new CalculateDisplayRectange method, which basically does
26329 what get_DisplayRectangle() did originally, but now using the
26330 right edge instead of DisplayRectangle to determine the size of
26332 - get_Canvas(): Fixed it to properly calculate canvas for
26333 right/bottom controls which seem to be placed to the right/bottom
26334 of any controls that have a fixed location
26335 - Removed TODO that's taken care of
26336 - Removed NotImplementeds and attempted to implement AdjustFormScrollBars
26337 and SetDisplayRectLocation according to new MSDN2 docs
26338 - Added call to PerformLayout in OnVisibleChanged, MS causes a layout
26339 event when that is called, this is added for compatibility
26340 - ScrollControlIntoView(): Implemented.
26341 - Switched scrollbars to be implicit, they shouldn't be selectable
26342 * ContainerControl: Now that ScrollControlIntoView is implemented, we
26343 call it when the active control is set/changed
26344 * ScrollBar.cs: Added support for generating Win32 scrollbar messages
26345 * ImplicitHScrollBar.cs, ImplicitVScrollBar.cs: Now setting new base
26346 implicit_control variable (used for native Win32 message generation)
26347 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added new
26348 HorizontalScrollBarHeight and VerticalScrollBarWidth properties
26349 * ThemeWin32Classic.cs: Now calling the driver for the scrollbar sizes
26350 * XplatUIStructs.cs: Added ScrollBarCommands enum
26352 2006-04-10 Jackson Harper <jackson@ximian.com>
26355 * CheckedListBox.cs:
26362 * PrintPreviewControl.cs:
26368 * UpDownBase.cs: Fixup base event overrides.
26370 2006-04-06 Mike Kestner <mkestner@novell.com>
26372 * ScrollBar.cs: fix "new event" declarations (#76509) and bounds check
26373 all user-initiated value changes to min <= value <= max-thumbsz+1.
26374 (set_Value): check for vert/horiz when calculating new thumb position.
26375 (LargeIncrement): bounds check to stop pos at max - thumb_size + 1
26377 (OnMouseMoveSB): refactor the thumb dragging code and refine
26378 invalidation logic to reduce flicker.
26379 (SetEndPosition): bounds check to stop pos at max - thumb_size + 1
26380 (SmallIncrement): bounds check to stop pos at max - thumb_size + 1
26381 (UpdateThumbPosition): small code readability cleanup
26383 2006-04-10 Alexander Olk <alex.olk@googlemail.com>
26385 * ThemeNice.cs: Small UI polishing. Draw borders a little bit
26388 2006-04-08 Alexander Olk <alex.olk@googlemail.com>
26390 * ThemeNice.cs: Use a better graphics effect when a button is pressed
26392 2006-04-08 Alexander Olk <alex.olk@googlemail.com>
26394 * Theme.cs: Added GetDashPen and GetSizedPen to SystemResPool
26395 * ThemeWin32Classic.cs: Make use of the new SystemResPool methods.
26396 This dramatically reduces the number of Pen.Dispose calls.
26397 Where possible call ResPool methods only once instead of calling it
26398 over and over again (for example for the same color).
26400 2006-04-06 Mike Kestner <mkestner@novell.com>
26402 * TabControl.cs: fix for SelectedIndex updating on TabPage removals.
26403 Also remove an unused private field on the collection. Fixes #77972.
26405 2006-04-06 Alexander Olk <alex.olk@googlemail.com>
26407 * ThemeNice.cs: Added ToolBar drawing code
26409 2006-04-06 Mike Kestner <mkestner@novell.com>
26411 * Form.cs (ShowDialog): MS allows IWin32Window param to be a non-form.
26412 I'm assuming that means we need to look up the toplevel for the
26413 provided control. Fixes the crash trace in #77911 but exposes another
26414 crash in some strange reflection usage in NDocGui.
26416 2006-04-06 Alexander Olk <alex.olk@googlemail.com>
26418 * ThemeNice.cs: Gave it a little silver touch and added Images
26420 * FontDialog.cs: FontDialog is not resizable
26421 * FileDialg.cs: Added SizeGripStyle.Show
26423 2006-04-05 Jackson Harper <jackson@ximian.com>
26425 * KeyboardLayouts.cs: Remove warning.
26427 2006-04-05 Jackson Harper <jackson@ximian.com>
26429 * Control.cs: Enable OnPaintInternal so we can use it for drawing
26430 all of our controls instead of Paint +=.
26445 * ComboBox.cs: Remove handling of WM_PAINT and WM_ERASEBKGND and
26446 use OnPaintInternal. Remove Width/Height and Visible checks in
26447 paint handler, this is done at a higher level now.
26448 * GroupBox.cs: Don't need to handle WM_ERASEBKGND anymore.
26449 * PaintEventArgs.cs: Add a handled flag so controls that don't
26450 want anymore painting after OnPaintInternal can make sure OnPaint
26453 2006-04-05 Mike Kestner <mkestner@novell.com>
26455 * Form.cs: fix the menu WndProc hacks to respect the native enabled
26456 state of the form, so that we don't process events when Modal dialogs
26457 are up. Fixes #77922.
26459 2006-04-05 Alexander Olk <alex.olk@googlemail.com>
26461 * Mime.cs: Default for range length is 1 not 0. If set to 0 no match
26464 2006-04-05 Mike Kestner <mkestner@novell.com>
26466 * XplatUIX11.cs: fix typo in the EX_APPWINDOW transient patch.
26468 2006-04-05 Mike Kestner <mkestner@novell.com>
26470 * ListView.cs (HeaderMouseMove): null guarding for the over column
26471 when setting up the drag_to_index. Fixes #78015.
26473 2006-04-04 Peter Dennis Bartok <pbartok@novell.com>
26475 * XplatUIX11.cs: If WS_EX_APPWINDOW isn't set we don't want to show up
26476 in the taskbar. Transient windows seem to accomplish that.
26478 2006-04-04 Peter Dennis Bartok <pbartok@novell.com>
26481 - Re-enabled CreateParams.X/Y code for FormStartPosition
26482 - Added code for manual placement when creating the Control
26483 - Incomplete patch to treat MDI forms differently when
26484 setting the ClientSizeCore. (Still need to figure out handling
26487 - When we're explicitly setting the X/Y position of a non-Child
26488 window, let the WM know. Metacity really wants this.
26490 2006-04-04 Alexander Olk <alex.olk@googlemail.com>
26492 * ThemeNice.cs: Added CPDrawButton
26494 2006-04-04 Alexander Olk <alex.olk@googlemail.com>
26496 * ThemeNice.cs: Changed the color for focused buttons and activated
26497 the arrows for small scroll buttons.
26499 2006-04-04 Alexander Olk <alex.olk@googlemail.com>
26501 * ThemeWin32Classic.cs: Removed DrawFlatStyleButton, not needed
26502 anymore. Changed some method modifiers to protected (virtual)
26503 * ThemeClearlooks.cs: Updated to reflect the ThemeWin32Classic
26505 * ThemeNice.cs: Updated to reflect the ThemeWin32Classic changes.
26506 Updated drawing of menus, buttons and progressbars; added
26509 2006-04-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
26511 * ImageListStreamer.cs: implemented serialization/deserialization
26514 2006-04-03 Alexander Olk <alex.olk@googlemail.com>
26516 * ThemeWin32Classic.cs:
26517 - Removed all the DrawFrameControl stuff; CPDrawButton,
26518 CPDrawCheckBox and CPDrawRadioButton are now handled directly
26520 - Updated and corrected the drawing code of CPDrawButton,
26521 CPDrawCheckBox and CPDrawRadioButton to better match ms
26522 - Updated theme checkbox and radiobutton code to use the CP*
26525 2006-03-31 Peter Dennis Bartok <pbartok@novell.com>
26527 * XplatUIX11.cs: Enable clipping again now that the libgdiplus
26530 2006-03-31 Jackson Harper <jackson@ximian.com>
26532 * XplatUIX11.cs: Somehow we get SETCURSORS for bad windows
26534 * UpDownBase.cs: Don't CreateGraphics manually, use a
26535 Refresh. Ideally we would invalidate the correct areas here.
26537 2006-03-31 Peter Dennis Bartok <pbartok@novell.com>
26540 - We now track the mapping state of windows. If a window (or
26541 one of it's parents) is not mapped we no longer permit
26542 WM_PAINT messages to be generated since we'd otherwise get
26543 lots of BadMatch X errors. Jackson did all the work figuring
26545 - Destroying the caret if the window it's contained in is
26546 destroyed. Can't use regular DestroyCaret method since it
26547 might fall into a drawing function (trying to remove the
26548 caret) and with that generate new BadMatch errors. Again,
26549 Jackson tracked this down.
26550 - Changed DestroyChildWindows to SendWMDestroyMessages, we now
26551 make sure we send the messages to all windows. (The old code
26552 would send the WM_DESTROY to the window, and then all child
26553 windows would be 'gone' because the WM_DESTROY handle lookup
26554 would no longer find the destroyed window)
26555 * Hwnd.cs: Added Mapping property to track mapping state of hwnd
26556 * X11Structs.cs: Added WindowType enum for MapWindow/UnmapWindow
26558 2006-03-31 Jackson Harper <jackson@ximian.com>
26560 * ScrollableControl.cs: Dont recalc if we are not visible.
26562 2006-03-31 Mike Kestner <mkestner@novell.com>
26564 * Control.cs (SetVisibleCore): move the CreateControl call up ahead of
26565 the visibility branch.
26567 2006-03-31 Jackson Harper <jackson@ximian.com>
26569 * ScrollBar.cs: Cap values when incrementing/decrementing.
26571 2006-03-31 Mike Kestner <mkestner@novell.com>
26573 * MenuAPI.cs: setup menu.tracker for popup/context menus.
26574 * ToolTip.cs: guard against timer expirations with no active control.
26575 Not sure why it happened.
26577 2006-03-31 Mike Kestner <mkestner@novell.com>
26579 * ThemeWin32Classic.cs: add some horizontal padding space for the tip
26581 * ToolTip.cs: Position the tooltip based on where the cursor is at
26582 popup time, not at MouseEnter time. Add a Down state so that we don't
26583 redisplay tips without a Leave. Use faked XplatUI.GetCursorInfo for
26584 positioning offset. Lookup DisplaySize at positioning time, since it
26585 can theoretically change during invocation.
26586 * XplatUIWin32.cs: fake GetCursorInfo until pdb can do it properly.
26587 * XplatUIX11.cs: fake GetCursorInfo until pdb can do it properly.
26589 2006-03-31 Alexander Olk <alex.olk@googlemail.com>
26591 * ThemeWin32Classic.cs: Use CPDrawBorder3D to draw a GroupBox.
26592 Fixes behaviour when the Text property of the box is String.Empty
26594 2006-03-31 Peter Dennis Bartok <pbartok@novell.com>
26596 * XplatUIX11.cs: Only send mouseleave for our client windows, not
26597 for the whole window (otherwise we get WM_MOUSE_LEAVE twice for
26600 2006-03-31 Alexander Olk <alex.olk@googlemail.com>
26602 * FileDialog.cs: Visual enhancement for the popup buttons in
26605 2006-03-31 Alexander Olk <alex.olk@googlemail.com>
26607 * ColorDialog.cs, FontDialog.cs: Make use of the updated 3D border
26610 2006-03-30 Alexander Olk <alex.olk@googlemail.com>
26612 * ThemeWin32Classic.cs: Updated MainMenu drawing of selected and
26613 highlighted menu items to match ms
26615 2006-03-30 Peter Dennis Bartok <pbartok@novell.com>
26617 * XplatUIX11.cs: Don't set a clip rectangle unless it's not empty
26619 2006-03-30 Mike Kestner <mkestner@novell.com>
26621 * Menu.cs (SelectedItem): use new MenuItem.Selected prop.
26622 * MenuAPI.cs: use new MenuItem.Selected prop. redraw MainMenu when we
26623 go active to account for HotLight to Selected transition.
26624 * MenuItem.cs: add internal Selected prop. Fill out the Status
26625 property by calculating it from item info. Add HotLight,
26626 NoAccelerator, Checked, Grayed, and Disabled flags where appropriate.
26628 2006-03-30 Mike Kestner <mkestner@novell.com>
26630 * MenuItem.cs: only emit DrawItem and MeasureItem for OwnerDraw.
26632 2006-03-29 Jackson Harper <jackson@ximian.com>
26634 * Form.cs: Implement TODO.
26636 2006-03-29 Peter Dennis Bartok <pbartok@novell.com>
26638 * PrintPreviewDialog.cs: Implemented missing methods and events; still
26639 missing proper dialog setup in the constructor
26641 2006-03-29 Peter Dennis Bartok <pbartok@novell.com>
26643 * ProgressBar.cs: Added 2.0 Style property that apps seem to use
26645 - Implemented CheckForIllegalCrossThreadCalls, removed TODO
26646 - Fixed ResetBindings and removed TODO
26647 - Added check for cross-thread calls to get_Handle()
26648 - Added Marshaller attribute for set_Font to satisfy class status
26649 * FontDialog.cs: Removed TODOs that seemed implemented
26650 * UpDownBase.cs: Removed unneeded TODO and Fixme
26651 * MessageBox.cs: Implemented support for Default button and removed TODO
26652 * FileDialog.cs: Removed obsolete TODO
26653 * DomainUpDown.cs: Removed obsolete TODO
26654 * ButtonBase.cs: Removed obsolete TODO
26655 * XplatUIWin32.cs: Removed obsolete TODO
26657 - Removed obsolete TODO
26658 - Calling CheckAcceptButton when the acceptbutton is changed to allow
26659 internal status updates
26660 - Making sure the active control is selected when the control is created
26661 * CurrencyManager.cs: Removed obsolete TODO
26663 2006-03-29 Mike Kestner <mkestner@novell.com>
26665 * *.cs: fix remaining corcompare issues for 1.1 API with the exception
26666 of PrintPreviewDialog and RichTextBox.
26668 2006-03-29 Alexander Olk <alex.olk@googlemail.com>
26670 * Theme.cs: Added a little helper to SystemResPool to get the Dark,
26671 DarkDark, Light and LightLight colors for a specific color
26672 * ThemeWin32Classic.cs:
26673 - Use Button drawing code to draw RadioButtons and CheckBoxes with
26674 Appearance = Button
26675 - Make use of the new ResPool helper CPColor
26676 - Draw ProgressBar and StatusBar with correct 3D borders
26678 2006-03-29 Alexander Olk <alex.olk@googlemail.com>
26680 * ColorDialog.cs: Return selected color. Fixes bug #77940.
26682 2006-03-28 Mike Kestner <mkestner@novell.com>
26684 * ListView.cs: fix Icon layout to plan for scrollbar widths when
26685 calculating col/row counts.
26687 2006-03-28 Mike Kestner <mkestner@novell.com>
26693 switch to explicit interface method implementation for some methods
26694 corcompare identifies as inconsistent with MS.
26696 2006-03-28 Mike Kestner <mkestner@novell.com>
26700 add a few missing methods from the class status output.
26702 2006-03-28 Alexander Olk <alex.olk@googlemail.com>
26704 * ControlPaint.cs: Fixed ControlPaint.Light method. Results are now
26707 2006-03-28 Mike Kestner <mkestner@novell.com>
26709 * MenuAPI.cs: Deactivate on MainMenu item click. Fixes #77917.
26711 2006-03-27 Mike Kestner <mkestner@novell.com>
26713 * ThemeWin32Classic.cs: Switch flat toolbars to use RaisedInner for
26714 the Hilight state to adapt to Alex's CPDrawBorder3D changes.
26716 2006-03-27 Alexander Olk <alex.olk@googlemail.com>
26718 * ThemeWin32Classic.cs: Rewrote Button drawing code to match ms.
26720 2006-03-25 Alexander Olk <alex.olk@googlemail.com>
26722 * ThemeWin32Classic.cs:
26723 - GroupBox: Inserted a little gap between the text and the lines
26725 - Made the code in CPDrawBorder3D more readable
26726 - Corrected the drawing location of the up and down arrows in
26729 2006-03-25 Alexander Olk <alex.olk@googlemail.com>
26731 * ControlPaint.cs: Corrected line widths in DrawBorder for
26732 ButtonBorderStyle Inset and Outset
26734 2006-03-25 Alexander Olk <alex.olk@googlemail.com>
26736 * ThemeWin32Classic.cs:
26737 - Rewrote the totally broken CPDrawBorder3D method. That was
26738 one of the main problems for the terrific ThemeWin32Classic
26740 - Updated and corrected Button drawing
26741 - Correct the dimensions of the SizeGrip to match ms ones
26742 - Removed a small drawing glitch in DrawComboBoxEditDecorations
26743 * XplatUIX11.cs: Draw borders with BorderStyle = Fixed3D with
26744 Border3DStyle.Sunken to match ms.
26746 2006-03-25 Alexander Olk <alex.olk@googlemail.com>
26748 * ThemeWin32Classic.cs: First small part of the "de-uglify
26749 ThemeWin32Classic" effort, SizeGrip
26751 2006-03-24 Jackson Harper <jackson@ximian.com>
26753 * XplatUIX11.cs: Give a max idle time of one second, this matches
26754 MS and forces an Idle event every second when there are no other
26755 events in the queue.
26757 2006-03-24 Mike Kestner <mkestner@novell.com>
26759 * ListView.cs: Handle (Large|Small)ImageList == null more robustly.
26760 * ListView.Item.cs: fix layout issues with null image lists and images
26761 smaller than checkbox size.
26762 * ThemeWin32Classic.cs: Draw a 12 pixel line in ListView LargeIcon
26763 mode like MS does. It's weird, but consistent. ;-)
26766 2006-03-24 Mike Kestner <mkestner@novell.com>
26768 * ListView.cs: Scroll wheel support for the item control. Fixes
26771 2006-03-23 Jackson Harper <jackson@ximian.com>
26773 * ScrollableControl.cs: Special case negative sized areas, not
26775 * MonthCalendar.cs: Save the rect of the clicked date so we can
26776 use it for invalidation.
26777 - Try to cut down on the number of invalidates
26778 - Invalidate the rect the mouse is over and was over when moving
26779 the mouse, so we get the focus box following the cursor.
26781 2006-03-23 Mike Kestner <mkestner@novell.com>
26783 * ThemeWin32Classic.cs: fix FullRowSelect selection background and
26784 focus rectangle drawing. Fixes #77835.
26786 2006-03-23 Mike Kestner <mkestner@novell.com>
26788 * XplatUIX11.cs: rework the fix for #77828 by changing the order of
26789 the if and else if and reverting back to the original == check on the
26792 2006-03-23 Alexander Olk <alex.olk@googlemail.com>
26794 * FontDialog.cs: Update the example panel if the selected index of
26795 the fontListBox changes.
26797 2006-03-23 Alexander Olk <alex.olk@googlemail.com>
26799 * FileDialog.cs: Make FileDialog remember which directory it was in
26800 last in the same execution.
26802 2006-03-22 Mike Kestner <mkestner@novell.com>
26804 * FileDialog.cs: make the DropDownMenu on the toolbar display
26805 RadioChecks since they are mutually exclusive and that's what MS does.
26807 2006-03-22 Mike Kestner <mkestner@novell.com>
26809 * Theme.cs: add Color param to CPDrawMenuGlyph.
26810 * ThemeWin32Classic.cs: do color specific menu glyph rendering so that
26811 checks and radio marks and arrows are visible on highlighted items.
26812 * ControlPaint.cs: update to use new Theme signature.
26814 2006-03-22 Mike Kestner <mkestner@novell.com>
26816 * MenuAPI.cs: only process Enter and arrow keypresses if the tracker
26817 is active. Fixes #77870.
26819 2006-03-22 Alexander Olk <alex.olk@googlemail.com>
26821 * FileDialog.cs: Corrected TabIndex order and set fileNameComboBox
26822 to be focused/selected after startup
26824 2006-03-22 Alexander Olk <alex.olk@googlemail.com>
26827 - Corrected behaviour of Color, AllowFullOpen, FullOpen,
26828 CustomColors and ShowHelp properties
26829 - Some internal rewrites to get better results when using the
26832 2006-03-22 Mike Kestner <mkestner@novell.com>
26834 * ListView.cs: hook into Peter's new ResetMouseHover capability to fix
26835 HoverSelection. Fixes #77836.
26837 2006-03-22 Mike Kestner <mkestner@novell.com>
26839 * FileDialog.cs: bugfixes for the toolbar. Use PushButtons instead of
26840 ToggleButtons. (De)Sensitize the Back button around a stack count of
26841 1, not 0. Update ButtonSize based on a pixel count of the win32
26842 control. Adjust the toolbar size/location for new button size.
26844 2006-03-22 Jackson Harper <jackson@ximian.com>
26846 * XplatUIX11.cs: Don't handle configurenotifys if PostQuitState is
26848 * ScrollBar.cs: When doing increments and decrements we need to
26849 set the Value property so that ValueChanged gets raised. A
26850 possible optimization here would be to make an internal SetValue
26851 that doesn't invalidate immediately.
26852 * ToolTip.cs: Tooltips get added to their container (when
26853 supplied) so they get disposed when the container is disposed.
26854 - Don't create tooltips for String.Empty. This prevents all these
26855 little 2-3 pixel windows from showing up when running nunit-gui
26856 and driving me mad.
26857 * Form.cs: Don't set topmost when setting the owner if the handles
26858 haven't been created yet. The topmost set will happen when the
26859 handles are created.
26861 2006-03-22 Peter Dennis Bartok <pbartok@novell.com>
26864 - DeriveWindowStyles: Fixed typo in borderstyle generation (#77828)
26865 - SetVisible: Sending WINDOWPOSCHANGED for all controls when made
26866 visible (to allow them to recalculate their sizes)
26868 2006-03-21 Mike Kestner <mkestner@novell.com>
26870 * ThemeWin32Classic.cs: major refactoring of the ToolBar rendering
26871 methods. Removed a ton of redundant code. Still not really happy with
26872 the border rendering, but I think that's mainly because of the
26873 ControlDarkDark being black instead of a dark grey. Depending on how
26874 close we want to be, we might want to revisit those color choices.
26875 Among the new features added during the refactor were DropDownArrow
26876 pressed rendering, Disabled image rendering. Proper flat appearance
26877 boundary rendering. Removed the Divider and Wrapping dividers since I
26878 can't figure out any combination of themes and conditions to make the
26879 MS control draw a horizontal line on a toolbar despite what the
26880 Divider property docs indicate.
26881 * ToolBar.cs: rewrite the layout engine. Fixes numerous flicker
26882 conditions and incorrect layout. Updated to coding standard.
26883 * ToolBarButton.cs: refactored layout and positioning code from
26884 ToolBar to here. Invalidate wherever possible instead of forcing
26885 redraws of the whole toolbar.
26886 (Known remaining issues: explicit ButtonSize smaller than provided
26889 2006-03-21 Mike Kestner <mkestner@novell.com>
26891 * ContextMenu.cs (Show): use the position parameter instead of just
26892 showing at the MousePosition.
26894 2006-03-21 Jackson Harper <jackson@ximian.com>
26896 * TabControl.cs: Remove the call to ProcessKeyEventArgs and let
26897 control handle this.
26898 * TreeNodeCollection.cs: If we are clearing the root node we need
26899 to reset top_node so calcs can still happen.
26900 * ThemeWin32Classic.cs: This is a Flags so we need to check
26903 2006-03-21 Jackson Harper <jackson@ximian.com>
26905 * DataGrid.cs: Create columns when the binding context has been
26907 * X11Structs.cs: Keysyms are uints.
26908 - Add size to fix build.
26910 2006-03-21 Peter Dennis Bartok <pbartok@novell.com>
26912 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
26914 - Added ResetMouseHover method to allow controls to retrigger
26915 hovering if they need it more than once
26916 - Implemented MouseHoverTime and MouseHoverSize properties
26917 * Timer.cs: Start() must reset the interval
26918 * SystemInformation.cs: Added 2.0 MouseHoverTime and MouseHoverSize
26921 2006-03-21 Jackson Harper <jackson@ximian.com>
26923 * X11Keyboard.cs: improved layout detection. Move the nonchar
26924 tables into this file.
26925 * KeyboardLayouts.cs: Move the tables into resource files.
26927 2006-03-21 Mike Kestner <mkestner@novell.com>
26929 * ListView.cs: use OnItemActivated to raise events. Fixes #77834.
26931 2006-03-21 Alexander Olk <alex.olk@googlemail.com>
26933 * Mime.cs: Various speed optimizations. Looking up mime types
26934 is now 2 times faster than before
26936 2006-03-17 Peter Dennis Bartok <pbartok@novell.com>
26938 * CreateParams.cs: Added internal menu field
26940 - Switched call order for UpdateBounds; now we always call
26941 the one that also takes ClientSize, and we're calculating the
26942 client size via driver method in the others. The previous
26943 method of tracking client size by difference wasn't working
26944 for forms where even the starting client size wouldn't match
26945 the overall form size (due to borders) (Part of fix for #77729)
26946 - CreateParams(): Do not use parent.Handle unless the handle is
26947 already created. Causes havoc with Nexxia and throws off our
26948 creation of controls
26950 - Created new PerformNCCalc method to trigger WM_NCCALCSIZE message
26951 - Switched handling of ConfigureNotify over to new PerformNCCalc
26952 method (consolidates code)
26953 - Changed RequestNCRecalc to use new PerformNCCalc method
26954 - Added calls to RequestNCRecalc when menus and borders are changed
26955 to allow app to set NC size. (Part of fix for #77729) This matches
26956 when MS send a WM_NCRECALC on Win32 windows.
26957 - Now sending WM_WINDOWPOSCHANGED when toplevel for is made visible
26958 (Part of fix for #77729). This matches what MS does, they also
26959 send that message when the form is made visible.
26960 - XException.GetMessage: Improved usability of X errors by including
26961 a translation of the window into Hwnd and Control class
26962 - Improved debug info for window creation, reparenting and destruction
26963 - Created helper method WindowIsMapped() [Currently not used]
26964 * XplatUIWin32.cs: Added ToString() debug helper to RECT structure
26966 - CreateParams: Now setting our menu on the new internal menu field
26967 - SetClientSizeCore: Now passing cp.menu instead of ActiveMenu to
26968 avoid calculating the same property twice
26970 - Improved usability of ToString() for debugging purposes
26971 - GetWindowRectangle(): Now uses proper CalcMenuBarSize method to
26972 determine the height of the menu, instead of just the font. This
26973 required to also create a graphics context and to keep a bmp
26974 around (for performance reasons)
26976 2006-03-17 Peter Dennis Bartok <pbartok@novell.com>
26978 * MenuAPI.cs: Added OnMouseUp method
26980 - Now remembering the requested client size, avoids size errors
26981 - WndProc: Now handling WM_xBUTTONUP and passing it to MenuTracker
26982 instead of base if the menu is active. This is required due to
26983 control now capturing and releasing on down/up and it would
26984 prematurely release our menu capture
26986 2006-03-17 Jackson Harper <jackson@ximian.com>
26988 * KeyboardLayouts.cs: Add the czech layouts.
26990 2006-03-16 Jackson Harper <jackson@ximian.com>
26992 * Control.cs: Use the viewport space when sizing not the controls
26993 client size, so things like ScrollableControl that effect the
26994 viewport size (when scrollbars are added) are computed correctly.
26995 * BindingContext.cs: Cleanup to use the DataSourceEntrys instead
26997 - Handle creating BindingManagers for null data sources.
26998 * DataGrid.cs: Bind the cached_currencymgr_events to the real data
26999 source, otherwise when rows are added they are added to the 'fake'
27000 datasource and we will crash when trying to set the position in
27002 - Use Implicit scrollbars on the datagrid so they arent
27005 2006-03-16 Jackson Harper <jackson@ximian.com>
27008 * InternalWindowManager.cs:
27009 * MdiWindowManager.cs:
27010 * X11Keyboard.cs: I really want Mike to love me again (fix
27011 compiler warnings).
27013 2006-03-16 Peter Dennis Bartok <pbartok@novell.com>
27016 - OnMouseDown: Switch to editing mode when clicking on the cell
27017 even if we're clicking on the cell that's currently
27019 - ProcessGridKey: Left/Right now wrap like MS.Net does
27020 - ProcessGridKey: Tab now knows to add a new row when tab is
27021 pressed in the cell of the last column of the
27023 - ProcessGridKey: Enter now adds another row if pressed in the last
27024 row and selectes the new row, same column cell
27025 - ProcessGridKey: Home/End navigate columns, not rows, like
27026 originally implemented
27027 - Broke ProcessKeyPreview code out into an extra Internal method
27028 so it can be called from the edit code
27029 * DataGridTextBox.cs (ProcessKeyMessage):
27030 - Switched to accept Tab keypresses
27031 - Added F2 handling to allow jumping to the end of the edited cell
27032 - Added logic to allow moving caret left/right inside edited cell
27033 and making the edited cell jump when the caret hits cell borders
27034 - Tab and Enter are now passed to the datagrid after being handled
27036 - Removed capture code now that Control handles it
27037 - set_SelectionStart now ensures caret is visible
27039 2006-03-16 Jackson Harper <jackson@ximian.com>
27041 * TrackBar.cs: Debackwards the increment/decrement for handling
27042 mouse clicks on the bar with vertical trackbars.
27043 * ThemeWin32Classic.cs: Draw vertical trackbars with 0 at the
27044 bottom to match MS.
27046 2006-03-16 Mike Kestner <mkestner@novell.com>
27048 * ListView.cs: make shift/ctrl keyboard and mouse selection
27049 consistent with the MS control. Fix a bug in
27050 SelectedListViewItemCollection.Clear that was pissing me off for the
27051 better part of a day because the collection was being altered
27052 underneath us as we walked the list.
27054 2006-03-16 Peter Dennis Bartok <pbartok@novell.com>
27056 * Control.cs: Not sure how we could miss this so long, but it seems
27057 that MS.Net has Capture set all the way from before calling
27058 OnMouseDown through sending the mouse events until after
27059 OnMouseUp. This will fix DataGrid's selection being set to end
27060 at the location of the MouseUp.
27062 2006-03-15 Jackson Harper <jackson@ximian.com>
27064 * BindingContext.cs: Check the binding after its added so that it
27065 can initialize the binding managers and hookup to events.
27066 * Binding.cs: Data members seem to sometimes include rows/cols in
27067 the format Row.Column we now take this into account.
27068 - Hookup to the position changed event so we can update the
27069 control when the position has changed in the data set.
27070 * CurrencyManager.cs: Take into account the row/col naming
27071 convention when creating dataset tables.
27072 * BindingContext.cs: Using a newer better way of storing
27073 datasource/datamember pairs. Hopefully this better matches MS for
27074 looking up binding managers.
27077 2006-03-15 Jackson Harper <jackson@ximian.com>
27079 * BindingContext.cs: The currency manager needs the data member
27080 name, if the member is a data set we use the name to find the
27082 * CurrencyManager.cs: When creating the list prefer an IList over
27084 - Attempt to create a DataTable from a DataSet (TODO: might need
27085 some better error checking here, although MS doesn't seem to have much)
27086 - If we have a DataTable create a view and use it as our list.
27088 2006-03-15 Mike Kestner <mkestner@novell.com>
27090 * ListView.cs: keep a matrix of the icon mode layout to facilitate
27091 keyboard navigation. Support Up/Down/Left/Right selection correctly
27092 for all 4 View modes.
27093 * ListViewItem.cs: add internal row/col fields for icon layouts.
27095 2006-03-15 Jackson Harper <jackson@ximian.com>
27097 * TabControl.cs: Redraw the tabs when we resize so their newly
27098 calculated sizes are drawn on screen.
27099 * X11Keyboard.cs: Begginnings of XIM support. We also now support
27100 composite characters.
27101 * XplatUIX11.cs: Keyboard driver needs to know about focus changes
27102 - filter events so that composite characters can be created
27104 * X11Structs.cs: Add XIMProperties enum.
27106 2006-03-14 Peter Dennis Bartok <pbartok@novell.com>
27108 * Control.cs (BringToFront, SendToBack): Don't use window or handle
27109 unless it's created
27111 2006-03-14 Peter Dennis Bartok <pbartok@novell.com>
27113 * Control.cs (PerformLayout): We don't need to consider visiblity
27114 for anchoring, only for docking. This fixes 'whacky' alignment
27115 in listbox and other controls that use implicit scrollbars after
27116 the previous PerformLayout patch
27117 * ListBox.cs: Switched to use implicit scrollbars
27119 2006-03-14 Mike Kestner <mkestner@novell.com>
27123 - chain up the "new event" overrides to base and use
27124 OnEvent to raise them. Part of fix for bug #76509.
27126 2006-03-14 Alexander Olk <alex.olk@googlemail.com>
27128 * FileDialog.cs: Do not select an item in the parent directory
27131 2006-03-14 Peter Dennis Bartok <pbartok@novell.com>
27133 * Control.cs (PerformLayout): It would seem that we considered
27134 invisible windows for our layout. Not quite the right thing
27135 to do. Now we don't any longer, thereby fixing bug #76889.
27137 2006-03-14 Peter Dennis Bartok <pbartok@novell.com>
27139 * Control.cs (CanFocus): I goofed. A control can have focus
27140 even though it's not selectable. Made it match MS docs.
27142 2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
27144 * ControlPaint.cs (DrawBorder3D): DrawBorder3D does not fill the
27145 center by default (fixes #76895)
27146 * ThemeWin32Classic.cs, ThemeNice.cs, ThemeClearlooks.cs: Replaced
27147 all uses of Border3DSides.All with the explicit ORd together
27148 Left|Right|Top|Bottom because I assume that nobody was aware
27149 that All also implies a center fill. Most places I checked had
27150 a fill right above.
27151 * ProgressBarStyle.cs: Added
27153 2006-03-13 Mike Kestner <mkestner@novell.com>
27155 * ListView.cs: fix breakage in drag shadow header positioning
27156 from Peter's csc compilation fix.
27158 2006-03-13 Mike Kestner <mkestner@novell.com>
27160 * ListView.cs: fix NRE produced by backspacing twice in a focused
27163 2006-03-13 Mike Kestner <mkestner@novell.com>
27165 * ListView.cs: proxy Key(Down|Up) from ItemControl to ListView.
27167 2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
27169 * Hwnd.cs: Added fixed_size field to track windows whose size cannot
27171 * XplatUIX11.cs: Now setting fixed_size on hwnd and if set, re-setting
27172 the allowed size before making programmatic size changes
27174 2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
27176 * XplatUIX11.cs: Don't call XSetWMNormalHints if no flags are
27177 set, metacity is broken and will still use the emty sizes in
27178 the struct. (Fix for #77089)
27180 2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
27182 * XplatUIStructs.cs: Split WindowStyles into WindowStyles and
27183 WindowExStyles and marked both enums as Flags
27184 * Form.cs, ComboBox.cs, ToolTip.cs, Control.cs, PropertyGridView.cs,
27185 NotifyIcon.cs, MenuAPI.cs, XplatUIOSX.cs, MonthCalendar.cs: Updated
27186 to match WindowStyles split
27188 - SetWMStyles: Added cehck to not apply WM attributes to Child windows
27189 - Updated to match WindowStyles split
27191 - Fixed FosterParent creation, was using ExStyle on the Style field
27192 (This should help with Popup focus issues)
27193 - Updated to match WindowStyles split
27195 2006-03-13 Jackson Harper <jackson@ximian.com>
27197 * MdiWindowManager.cs: Use the system menu height. Fixes some
27198 strange sizing issues.
27200 2006-03-12 Peter Dennis Bartok <pbartok@novell.com>
27202 * RichTextBox.cs: Need to scroll to caret after text is inserted (#77672)
27204 - Scroll to caret after inserting text (#77672)
27205 - Make scroll range one pixel higher, fixes off-by-one error (and
27206 makes underlines visible on the last line)
27208 2006-03-12 Peter Dennis Bartok <pbartok@novell.com>
27210 * XplatUIX11.cs: Added call to new Keyboard.ResetKeyState to prevent
27211 the keyboard state from being stuck with keys in 'pressed' state when
27212 focus is switched away via keyboard
27213 * X11Keyboard.cs: Added new ResetKeyState method to allow drivers to
27214 reset the keyboard if no X11 KeyUp events are expected to come
27215 * X11Structs.cs: Switched type of Visible to bool to match driver
27217 2006-03-12 Peter Dennis Bartok <pbartok@novell.com>
27220 - Switched caret to be just 1 pixel wide, matches MS and looks less
27222 - Moved caret display 1 pixel down from the top of the control
27224 - InsertCharAtCharet: Update the selection start if moving the caret
27225 (fixes bug #77696; based on patch suggested by kazuki@panicode.com)
27226 - No longer always creating the caret when the caret methods are
27227 called. Only the actual ShowCaret/HideCaret will do that now
27228 - Only setting caret visible if the owner control has focus
27229 - UpdateView: Added invalidation-shortcut logic for center and right
27230 aligned text. Previously we'd update all according to the left
27231 logic which caused drawing errors. Also fixed height of invalidated
27232 areas, now properly invalidating the whole area (was off-by-one)
27233 - owner_HandleCreated: Always generate the document when the
27234 handle is created; this ensures that
27236 - Fixed situation where caret would disappear under the right
27237 window border, also improved scrolling behaviour on left-
27239 - Fixed right-aligned textboxes to have a border to the
27240 right instead of the caret being under the right border
27242 - Switched from 'nested' to simple visible/not visible tracking
27243 for caret (part of fix for #77671)
27244 - No longer passing through translated FocusIn/FocusOut messages
27245 since we were notifying too often and the wrong windows. Instead
27246 we just notify our focussed window of receiving or loosing focus
27247 * XplatUIWin32.cs: Switched from 'nested' show/hide
27248 counting for caret to simple visible yes/no behaviour (part of
27251 2006-03-11 Alexander Olk <alex.olk@googlemail.com>
27253 * Mime.cs: Remove debug code...
27255 2006-03-11 Alexander Olk <alex.olk@googlemail.com>
27257 * MimeGenerated.cs: Removed
27258 * Mime.cs: Mime now reads the mime data (magic, globs, aliases
27259 and subclasses) from /usr/(local/)share/mime and
27260 $HOME/.local/share/mime.
27262 2006-03-10 Jackson Harper <jackson@ximian.com>
27264 * MdiWindowManager.cs: Recalc the NC area when a window is
27265 maximized/restored so that the menu area is drawn on forms that
27268 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
27270 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
27271 XplatUIX11.cs: Added RequestNCRecalc method to driver to allow
27272 us to force a WM_NCCALCRESIZE message being sent. This is needed
27273 for MDI maximizing.
27275 2006-03-10 Jackson Harper <jackson@ximian.com>
27277 * Form.cs: We need to use the ActiveMenu when calculating menu
27279 - Fix nullref when the window manager hasn't been created yet.
27280 * Control.cs: Fix nullref when we try to bring a control to the
27281 front that has no parent.
27282 * MdiWindowManager.cs: Use the MaximizedMenu for calculating
27284 - Add a dummy item to the maximized menu so it always has the
27285 correct height. Otherwise when there are no menus we don't get our
27289 2006-03-10 Jackson Harper <jackson@ximian.com>
27291 * MenuAPI.cs: Make this available elsewhere. I need it in some MDI
27293 * Form.cs: Make the window_state internal so the window managers
27295 - When an MDI child is maximized let its window manager create the
27296 main menu (so it can add its icon).
27297 - Notify the window managers of state changes
27298 - Let the window manager paint its buttons and handle button
27299 clicks on the menu when it is maximized.
27300 * InternalWindowManager.cs: Move the prev_bounds into the mdi
27301 window manager, since tool windows don't use it, only mdi windows.
27302 - Tell the main form that we don't want it to handle NCPAINT
27303 itself to avoid extra painting.
27304 - Handle clicks on a maximized windows menu.
27305 - Handle window state changes
27306 - Handle minimize/maximize clicks correctly by setting the window state.
27307 * MdiWindowManager.cs: Add an icon menu that (the menu you get
27308 when clicking on the forms icon).
27309 - New method to create a forms maximized menu. This is its normal
27311 - Handle window state changes.
27312 - Handle sizing of maximized windows. Maximized windows are just
27313 drawn bigger then the parent visible area. All controls are still
27314 there, they are just outside the visible area (this matches windows).
27315 * MdiClient.cs: No scrollbars when a child window is maximized.
27316 - Let the children windows figure out how big they should be when
27317 sizing maximized windows.
27318 - Implement a version of ArrangeIconicWindows somewhat similar to
27319 Windows version. There are some little differences, but I don't
27320 think any app will rely on the layout of minimized mdi windows.
27322 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
27324 * Padding.cs: Several fixes to allow compiling with csc 2.0
27326 2006-03-09 Jackson Harper <jackson@ximian.com>
27329 * MenuItem.cs: Cheap hack so we can add items to the list without
27330 the events being raised. This allows adding mdi items during
27331 drawing. TODO: Should probably find a better time to add the items.
27333 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
27335 * ThemeWin32Classic.cs:
27336 - CheckBox_DrawText: Added logic to not wrap if not enough space
27337 is available (Fix for bug #77727)
27338 - RadioButton_DrawText: Added logic not to wrap if not enough
27339 space is available (Fix for bug #77727). Also removed some
27340 duplicate code, DrawString always drawing the regular text
27341 before hitting the if statement.
27343 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
27345 * XplatUIX11.cs: Handle an unmapped window state in SetWindowState
27347 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
27349 * PictureBox.cs: Implemented ISupportInitialize interface (fixes #77726)
27350 * ContainerControl.cs: Partial implementation of some 2.0 scaling
27351 methods. Moved the new 2.0 properties into alphabetical order with
27352 other properties and added MonoTODO tags
27354 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
27356 * AutoScaleMode.cs: Added. Fix build.
27358 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
27360 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
27361 XplatUIOSX.cs: Removed HWnd argument from CalcuateClientRect, not used
27362 and was requiring premature handle creation for calls from above
27363 * Form.cs, Control.cs: Removed handle arguments from calls to
27364 CalculateClientRect()
27366 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
27368 * ListView.cs (HeaderMouseMove): Fix csc compilation.
27369 drag_column.column_rect is MarshalByRef and can't be used that way
27371 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
27373 * AxHost.cs: Added deserialization constructor for
27374 AxHost+State (fixes 77743)
27376 2006-03-09 Mike Kestner <mkestner@novell.com>
27379 - Added column drag reordering for details view.
27380 - fixed behavior when mouse is dragged off column and
27381 AllowColumnReorder is false.
27382 * ColumnHeader.cs: clone the format too in Clone.
27383 * Theme.cs: add DrawListViewHeaderDragDetails method.
27384 * ThemeWin32Classic.cs:
27385 - impl new method for drawing drag column shadows and targets.
27386 - support column offset for details mode in DrawListViewItem.
27388 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
27390 * TextControl.cs: Reset the char_count when the document is cleared
27391 (Fixes bug reported on mono-winforms mailing list)
27393 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
27395 * TextBoxBase.cs: Honor the Handled state of KeyPress events. Instead
27396 of calling base we simply process the key ourselves, since both
27397 DefWindowProc and the handled method would set m.Result.
27400 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
27402 * Form.cs(ScaleCore): No longer calling base.ScaleCore since that
27403 method also moves the window; instead implemented a copy of
27404 Control.ScaleCore (Part of fix for #77456)
27406 - Created new CreateGraphicsInternal method to allow providing
27407 a graphics context when no handle is created without triggering
27408 handle creation. (Part of fix for #77456)
27409 - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
27411 - Switched Constructor to require TextBoxBase instead of Control (to
27412 allow uncast access to CreateGraphicsInternal)
27413 - Safeguarded use of owner.Handle property. No longer accessing it
27414 unless the handle is already created.
27415 - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
27416 - Now triggering a recalc when owning control becomes visible
27417 * TextBox.cs, RichTextBox.cs: Switched to use new internal
27418 TextBoxBase.CreateGraphicsInternal() method to avoid triggering
27419 premature handle creation (Part of fix for #77456)
27421 - We now only destroy our double-buffering buffers when the
27422 control is resized or disposed, but not when visibility
27423 changes. (The code even re-created them twice every time)
27424 - Now requiring a redraw of the buffer on visibility changes
27425 (fixes bug 77654 part 2)
27426 - Not passing OnParentVisibleChanged up unless the control
27428 - CanFocus: Fixed to match MS documentation
27429 - Focus: Fixed to return actual focus state and to check if
27430 setting focus is legal before setting it
27432 2006-03-08 Peter Dennis Bartok <pbartok@novell.com>
27434 * ThemeWin32Classic.cs: TabPages cannot have focus. Determine
27435 when to draw focus rectangle by looking at parent focus and
27436 selected state instead. This fixes TabPages on Linux sometimes
27437 having none or multiple focus rectangles.
27438 * XplatUIX11.cs (SetFocus):
27439 - Don't set the focus if the same window already has focus
27440 - Use SendMessage instead of PostMessage (like it's Win32
27441 equivalent) and send the WM_SETFOCUS before the WM_KILLFOCUS
27442 to match MS behaviour
27443 * TabControl.cs(SelectedIndex): Don't set Focus on TabPage, TabPages
27444 are not selectable.
27446 2006-03-07 Jackson Harper <jackson@ximian.com>
27448 * PictureBox.cs: Revert line I accidently committed last week.
27450 2006-03-07 Peter Dennis Bartok <pbartok@novell.com>
27453 - Added new IsRecreating and ParentIsRecreating properties to
27454 allow testing if RecreateHandle has been called on ourselves
27455 or one of our parents
27456 - WndProc(WM_DESTROY): If our control handle is being recreated
27457 we immediately need to create the handle when receiving the
27458 destroy, that way our child windows find a valid parent handle
27459 when they themselves are being recreated upon WM_DESTROY receipt
27460 (fix for bug #77654 part 1)
27462 - DestroyWindow: WM_DESTROY must be sent to our own window before
27463 notifying any child windows. MS documents that child windows
27464 are still valid when WM_DESTROY is received. (Control now relies on
27466 - Added some fine-grain debug options
27468 2006-03-06 Jackson Harper <jackson@ximian.com>
27470 * MdiClient.cs: Redid scrolling logic a bit to create a virtual
27471 box and base calculations off this.
27472 * MdiChildContext.cs:
27473 * MdiWindowManager.cs: Don't need to ensure scrollbars here
27476 2006-03-06 Peter Dennis Bartok <pbartok@novell.com>
27478 * Splitter.cs: In situations where the affected control is added
27479 to the parent's control list after the splitter, we would not
27480 populate affected. Now we try populating it on mousedown, if
27481 it's not already set, and force it to be re-set whenever our
27484 2006-03-03 Matt Hargett <matt@use.net>
27486 * Control.cs: implement Control.Padding
27487 * Padding.cs: -Padding.All returns -1 when constructing with the
27488 implicit default ctor
27489 -Padding.ToString() matches MS.NET
27490 * ContainerControl.cs: implement
27491 ContainerControl.AutoScaleDimensions
27492 * ListControl.cs: implement ListControl.FormattingEnabled
27493 * TextBox.cs: Implemented TextBox.UseSystemPasswordChar.
27495 * TabPage.cs: Implement UseVisualStyleBackColor.
27496 * PictureBox.cs: Implement PictureBox.InitialImage.
27498 2006-03-03 Mike Kestner <mkestner@novell.com>
27500 * ListView.cs: Refactor into HeaderControl and ItemControl. Fix new
27501 event declarations to proxy to base event.
27502 * ListViewItem.cs: update to use ItemControl.
27503 * Theme.cs: make DrawListViewHeader. s/DrawListView/DrawListViewItems.
27504 * ThemeWin32Classic.cs: update to new ListView theme API and fix
27505 column header label rendering for 0 width columns.
27507 2006-03-03 Peter Dennis Bartok <pbartok@novell.com>
27509 * Control.cs (ControlCollection.SetChildIndex): Avoid using a call
27510 that causes the control to be created. Fixes #77476.
27512 2006-03-02 Jackson Harper <jackson@ximian.com>
27514 * Hwnd.cs: Clear the nc pending when clearing the NC area, not the
27517 2006-03-02 Peter Dennis Bartok <pbartok@novell.com>
27519 * Control.cs: Implemented 2.0 feature where OnClick has MouseEventArgs
27520 passed in for the EventArgs (fixes #77690)
27522 2006-03-01 Jackson Harper <jackson@ximian.com>
27524 * ScrollBar.cs: Refresh afterbeing resized.
27526 2006-02-28 Mike Kestner <mkestner@novell.com>
27528 * MenuAPI.cs: Call PerformPopup internal method to emit Popup.
27529 Clean up a tracker compile warning.
27530 * MenuItem.cs: add internal PerformPopup method.
27533 2006-02-28 Peter Dennis Bartok <pbartok@novell.com>
27535 * TextBoxBase.cs (set_Text): Recalculate the document (causing an
27536 implicit expose) when the text is set to null
27538 2006-02-28 Peter Dennis Bartok <pbartok@novell.com>
27540 * RichTextBox.cs (FlushText): When newline is true, we always
27541 need to split the line, even if no text is on it and we may
27542 never eat newlines. (Fixes #77669)
27544 2006-02-28 Mike Kestner <mkestner@novell.com>
27546 * ListView.cs: Add UpdateSelection internal method. Remove SelectItem
27547 and set Selected instead.
27548 * ListViewItem.cs: Call owner.UpdateSelection to manipulate the
27551 2006-02-28 Peter Dennis Bartok <pbartok@novell.com>
27553 * ComboBox.cs: Allow setting SelectedIndex to -1. Fixes #77665
27555 2006-02-28 Alexander Olk <alex.olk@googlemail.com>
27558 - Got rid of the panel. All controls are now directly added to
27560 - It is now possible to set a font with the Font property
27561 - MinSize and MaxSize property do now what they should
27562 - ShowApply, ShowHelp, ShowColor, ShowEffects likewise
27563 - Searching and selecting a font with the font textbox works now,
27564 the same applies to the style and size textbox
27565 - Draw the correct 3D border in the example panel
27566 - Fixed a little mem leak (unused fonts didn't get disposed)
27567 - Many other internal updates/rewrites...
27570 2006-02-27 Peter Dennis Bartok <pbartok@novell.com>
27573 - InsertRTFFromStream: Added 'number of characters inserted' argument
27574 - set_SelectedRTF: Now using the number of characters to calculate
27575 the new location for the selection and cursor (x/y cannot be used
27576 due to potentially already wrapped text)
27578 2006-02-27 Peter Dennis Bartok <pbartok@novell.com>
27580 * TextControl.cs: Added property and implemented means to allow
27581 disabling recalculation of a document (can be used to speed up
27582 multiple inserts and is needed to make RTF inserts predictable, see
27584 * RichTextBox.cs: Using the new NoRecalc property of Document to
27585 keep x/y insert locations predictable. Also makes it faster inserting
27586 large chunks of RTF
27588 2006-02-27 Peter Dennis Bartok <pbartok@novell.com>
27590 * Control.cs: Separated special WM_SYSKEYUP keyboard handling. That way
27591 it's easier for a child control to handle the other messages without
27592 having to duplicate the special functionality
27594 - WndProc: Removed calling base handler for WM_KEYDOWN and added
27595 code to handle processing the key ourselves, in order to get
27596 access to the result of KeyEventArgs.Handled. We now only call
27597 ProcessKey if they key hasn't been handled already. Fixes #77526.
27598 - set_Text: If null or empty string is given, just clear the
27599 document. Fixes part of #77526
27601 2006-02-27 Jackson Harper <jackson@ximian.com>
27603 * SizeGrip.cs: Paint the background color before painting the grip
27604 so things look right.
27605 * MdiClient.cs: Add the sizegrip when both scrollbars are used.
27607 2006-02-27 Mike Kestner <mkestner@novell.com>
27610 - Restructure layout and invalidation model to remove a ton of
27611 flicker from the control and speed up performance in general.
27612 - Add manual column resize, flickers like crazy, but I already have
27613 some ideas on how I'll fix that. (#76822)
27614 - Merge the three Icon-based views into a single layout method.
27615 - Move item selection interaction logic from the item since
27616 interaction with the collections is more appropriate to the view.
27617 - Deselection on non-item clicks.
27619 - Encapsulate most of the layout. Add some internal props to trigger
27620 layout. Move to a model where Items invalidate themselves instead
27621 of just invalidating the whole control every time something changes.
27622 - Invalidate on Text/Caption changes.
27623 - switch to an offset based layout model to avoid having to absolute
27624 position every element on item moves.
27625 - correct checkbox layout to conform to MS layout.
27626 * ThemeWin32Classic.cs:
27627 - refactor some column header drawing code.
27628 - fix string justification for column headers (#76821)
27629 - make SmallIcon labels top justified for compat with MS impl.
27630 * ThemeClearlooks.cs:
27631 - adjust to new ListViewItem internal checkbox bounds api.
27633 2006-02-27 Jackson Harper <jackson@ximian.com>
27635 * Control.cs: Change where implicit controls fall in the zorder.
27636 They are now on top of all children.
27637 - Synced AddImplicit code with Add
27638 - Removed unused enumerator.
27639 * SizeGrip.cs: Remove the TODO as its been TODONE.
27641 2006-02-26 Peter Dennis Bartok <pbartok@novell.com>
27643 * TextControl.cs(Insert): Combine the last lines unless the insertion
27644 string ends with \n\n, otherwise we leave one line too many (Fixes
27645 something I noticed with the testapp for #77526; the bug itself was
27646 already fixed in the previous checkin)
27648 2006-02-26 Peter Dennis Bartok <pbartok@novell.com>
27651 - SelectionColor and SelectionFont methods no longer set absolute
27652 styles. Instead, the keep font or color respectively (This
27653 resolves a long-standing FIXME in the code)
27654 - When flushing RTF text, the insert code now considers text trailing
27655 behind the insertion point (Fixes the bug where when replacing
27656 the selected text via SelectedRTF the remainder of the line behind
27657 the selection would stay on the first insertion line)
27659 - AppendText now updates the selection points after inserting text
27660 - AppendText now ensures that the last tag (sometimes 0-length) of
27661 the document is used for the style information (Fixes part of
27664 - Created new FontDefiniton class to allow describing partial style
27666 - StreamLine() now takes a lines argument, to allow it to decide
27667 whether an encountered zero-length tag is the last in the document
27668 (which must be kept to not loose the font/color contained in it,
27670 - Created Combine() and Split() methods for Marker structs, to
27671 support marker updates due to reformatted documents (soft line
27673 - Implemented Document.CaretTag setter
27674 - Fixed MoveCaret(CtrlEnd) handling, now moves to the last character
27675 of the last line (Not the cause, but also exposed by bug #77220)
27676 - Added LineTag argument to InsertString method, to allow callers
27677 to force a certain tag to be used (required to force use of the
27678 trailing zero-length tag of a document)
27679 - Now updating markers in Combine(), to avoid stale tag markers
27680 - Added some method descriptions to aid maintenance
27681 - Implemented new FormatText concept, allowing additive/subtractive
27682 formatting by only specifying the components that are to be
27683 changed. This was needed for resolving the RTB.SelectedColor/
27684 RTB.SelectedFont fixmes
27685 - Added Break() support method to allow breaking up linetags (used
27686 for partial formatting)
27687 - Added GenerateTextFormat() method. It is used for partial
27688 formatting and allows to generate a full font/color from given
27689 attributes and an existing tag.
27691 2006-02-26 Jackson Harper <jackson@ximian.com>
27693 * XplatUIX11.cs: Use the correct caption height.
27694 - Translate hittest coordinates to screen coords to match MS.
27695 * XplatUIWin32.cs: When we create MDI windows we need to reset
27696 some of the style flags, so we get a nice blank window, and can
27697 draw all the decorations ourselves.
27698 - Set a clipping rectangle on the non client paint event, the
27699 window manager drawing code needs one.
27700 * Form.cs: The window manager needs to know when the window state
27702 * Hwnd.cs: The window manager stuff now does a proper NCCALC so we
27703 don't need to factor in border and title sizes in these
27704 methods. TODO: Remove the args and fix the call points.
27705 * InternalWindowManager.cs: Handle NCHITTEST and NCCALCAREA
27707 - Let the driver set the cursors.
27708 - Improve active window handling
27709 - Correct sizes for title bars and buttons.
27710 - Match MS drawing better
27711 * MdiWindowManager.cs: We don't need to handle border style
27712 updates specially anymore.
27713 - Check for scrollbars when windows are done moving
27714 - Handle Active properly.
27715 * MimeIcon.cs: Don't crash when we can't load the GNOME stuff
27716 correctly. I am spewing the exception though, so we don't hide the
27719 2006-02-26 Pedro Martinez Julia <pedromj@gmail.com>
27721 * DataGridViewRowPostPaintEventArgs.cs,
27722 DataGridViewCellPaintingEventArgs.cs,
27723 DataGridViewRowCollection.cs,
27724 DataGridViewRowPrePaintEventArgs.cs,
27725 DataGridViewCell.cs: Clear a few warnings and implement a few
27726 exceptions that should be thrown.
27728 2006-02-22 Peter Dennis Bartok <pbartok@novell.com>
27730 * ScrollBar.cs (ctor): Explicitly set a cursor to avoid
27731 'inheriting' our parent's (non-default) cursor. (Part of
27732 the fix for #77479)
27734 2006-02-22 Peter Dennis Bartok <pbartok@novell.com>
27736 * XplatUIX11.cs: Fixed cast to make csc happy
27738 2006-02-22 Peter Dennis Bartok <pbartok@novell.com>
27740 * Control.cs (WndProc): Only handle WM_SETCURSOR messages if
27741 it's for the client area (part of fix for #77479 and needed
27742 for MDI window cursor handling)
27744 - DefWindowProc: Now handles the WM_SETCURSOR messages, setting
27745 the appropriate default cursors and also passing the message
27746 up the parent chain
27747 - GetMessage: Now generating WM_NCHITTEST and WM_SETCURSOR even
27748 for non-client areas
27750 2006-02-15 Jackson Harper <jackson@ximian.com>
27752 * XplatUIWin32.cs: Since we fake MDI dont tell Windows that this
27753 is a real MDI window
27755 2006-02-14 Alexander Olk <alex.olk@googlemail.com>
27757 * X11DesktopColors.cs: Instead of checking the desktop session
27758 string for "KDE" check if it starts with "KDE"
27760 2006-02-10 Jackson Harper <jackson@ximian.com>
27762 * XplatUIX11.cs: These should be unsigned (fixes crash on 32 bit
27765 2006-02-10 Alexander Olk <alex.olk@googlemail.com>
27767 * FileDialog.cs: Added Refresh to RunDialog to fix some drawing
27770 - Got rid of the panel. All controls are now directly added to
27772 - Changed to mono coding style
27774 2006-02-10 Jackson Harper <jackson@ximian.com>
27776 * InternalWindowManager.cs: We don't need the set visibility to
27777 false hack anymore now that peter has written beautiful shutdown
27780 2006-02-10 Peter Dennis Bartok <pbartok@novell.com>
27782 * XplatUIX11.cs: Ignore DestroyNotify messages for windows that
27783 where already explicitly destroyed
27785 2006-02-10 Jackson Harper <jackson@ximian.com>
27787 * MdiClient.cs: Handle the case where windows are too high or to
27788 the left and we need scrollbars.
27790 2006-02-10 Alexander Olk <alex.olk@googlemail.com>
27792 * MimeIcon.cs: Added some icons
27795 - Got rid of the panel. All controls are now directly added to
27797 - Changed to mono coding style
27798 - On Linux "My Computer" and "My Network" will now show some
27799 more usefull information. A new class, MasterMount, gathers
27800 this information from /proc/mount. Updated MWFFileView to make
27801 use of this information
27802 - Fixed a bug that caused FileDialog to crash when
27803 ".recently_used" file had a zero size
27804 - FilterIndex does now what it should
27806 * OpenFileDialog.cs, SaveFileDialog.cs: Updated to reflect latest
27809 2006-02-09 Jackson Harper <jackson@ximian.com>
27811 * ComboBox.cs: Don't touch if null.
27813 2006-02-09 Peter Dennis Bartok <pbartok@novell.com>
27815 * Cursor.cs: 64bit safeness fix
27816 * XplatUIX11.cs: Removed several unneeded and one moronic cast.
27818 2006-02-09 Jackson Harper <jackson@ximian.com>
27820 * Form.cs: If a form is made into an MDI form update the styles so
27821 all the props can get set correctly.
27822 - Kill the mdi_container when we dont need it anymore.
27823 * InternalWindowManager.cs: Add missing NOT
27825 2006-02-08 Jackson Harper <jackson@ximian.com>
27827 * InternalWindowManager.cs: Respek clipping when drawing MDi
27830 2006-02-08 Jackson Harper <jackson@ximian.com>
27832 * Hwnd.cs: Add bits to track non client expose events.
27833 * XplatUIX11.cs: Track non client expose events on the hwnd. This
27834 gives us a proper invalid rect and will allow for some nice
27835 optimizations with NC client drawing
27836 - MDI windows are children windows, so move their style handling
27837 into the child window block.
27838 * InternalWindowManager.cs: Remove a state reset that was
27839 getting invoked at the wrong time. Fixes managed windows getting
27840 into a 'stuck' captured state.
27842 2006-02-07 Peter Dennis Bartok <pbartok@novell.com>
27844 * TextControl.cs (Document.ctor): Now initializing
27845 selection_anchor. Fixes #77493
27847 2006-02-07 Jackson Harper <jackson@ximian.com>
27849 * TrackBar.cs: The increment/decrements were backwards.
27851 2006-02-07 Mike Kestner <mkestner@novell.com>
27853 * Theme*.cs : remove ThemeEngine.Current usage as it just points back
27854 to the instance itself.
27856 2006-02-07 Peter Dennis Bartok <pbartok@novell.com>
27858 * X11DesktopColors.cs, ThemeGtk.cs: The GObject structure is based
27859 on ulongs and pointers, the size differs between 32bit and 64bit
27862 2006-02-07 Mike Kestner <mkestner@novell.com>
27864 * XplatUIX11.cs : force the WorkingArea away from XGetWindowProperty
27865 for 64 bit platforms to work around a metacity bug.
27867 2006-02-07 Jackson Harper <jackson@ximian.com>
27869 * TrackBar.cs: Process the input keys we need, and hookup to
27870 KeyDown instead of using WndProc, so we get key messages.
27872 2006-02-06 Peter Dennis Bartok <pbartok@novell.com>
27874 * XplatUIX11.cs: Atoms are only 32bit on the wire, no matter what
27876 * X11Dnd.cs(SetAllowDrop): Since atoms are always 32bit on the wire
27877 we need to translate the XdndVersion atoms array before sending it
27879 2006-02-06 Peter Dennis Bartok <pbartok@novell.com>
27882 - The preceeding 64bit fixes had a bug: ChangeProperty expects the
27883 number of bits for the property, not the number of bytes. The
27884 change to provide IntPtr.Size broke 32bit. (64bit was also wrong
27885 but would not crash since it specified 8 bits instead of 4 bits)
27886 - More 64bit fixes: Switched all atoms from int to IntPtr (they are
27887 defined as XID -> long in the C headers)
27888 - Removed 'new IntPtr((int))' and '(IntPtr)' casts from all NetAtoms
27889 references since those are now IntPtr to begin with
27890 - Switched all Atom.XXX 'int' casts to IntPtr casts
27891 - Fixed XGrabPointer DllImport signature to work for 64bit (cursor arg)
27892 - Fixed XInternAtom signature for 64bit, now returns an IntPtr
27893 - Added XChangeActivePointerGrab DllImport (for X11DnD)
27895 - Changed 'int' type for Atoms in XEvent structures to IntPtr
27896 - Changed atom in HoverStruct to be IntPtr
27898 - Removed local DllImports, switched code to use those from XplatUIX11
27899 - Removed/fixed casts related to the switch of Atom to be a IntPtr
27901 2006-02-06 Mike Kestner <mkestner@novell.com>
27903 * XplatUIX11.cs : many more 64 bit pinvoke changes. I've audited all the
27904 method signatures in the import region. There may still be some
27905 lingering struct marshaling issues, as I didn't drill down into those.
27908 2006-02-06 Jackson Harper <jackson@ximian.com>
27910 * ComboBox.cs: Dont manually set the top_item, this is computed
27911 when the scrollbar position is set.
27913 2006-02-06 Mike Kestner <mkestner@novell.com>
27915 * XplatUIX11.cs : 64 bit changes to XGetWindowProperty usage. Fixes
27916 startup crashes on amd64. There's other fixes needed. All pinvoke
27917 usage of Atom needs to be mapped to IntPtr for example. And there are
27918 likely other int/long issues to be addressed.
27920 2006-02-04 Alexander Olk <alex.olk@googlemail.com>
27922 * FileDialog.cs: One more...
27924 2006-02-03 Alexander Olk <alex.olk@googlemail.com>
27926 * FileDialog.cs: Next try
27928 2006-02-03 Alexander Olk <alex.olk@googlemail.com>
27930 * FileDialog.cs: First part of fix for #77464
27932 2006-02-03 Alexander Olk <alex.olk@googlemail.com>
27934 * ButtonBase.cs, ContainerControl.cs, Forms.cs,
27935 ThemeWin32Classic.cs: Fix for #77458. Correct handling of
27936 AcceptButton border drawing.
27938 2006-02-03 Peter Dennis Bartok <pbartok@novell.com>
27940 * Form.cs: Moved positioning of form after auto scaling is applied,
27941 otherwise it would possibly use wrong form size.
27943 2006-02-03 Peter Dennis Bartok <pbartok@novell.com>
27945 * Control.cs (RecreateHandle): No need to re-create any child
27946 controls, the child windows will get destroyed automatically by
27947 the windowing system or driver, and re-created when the handle
27948 is being accessed the first time. Fixes #77456
27949 * Form.cs: No longer setting the form to closing if the handle is
27950 being recreated. This seems like the right thing to do, don't
27951 have a bug or testcase for this, though.
27953 2006-02-02 Peter Dennis Bartok <pbartok@novell.com>
27955 * FileDialog.cs: Suspend/Resume layouting when changing sizes of
27956 controls to avoid unwanted side effects
27958 2006-02-02 Peter Dennis Bartok <pbartok@novell.com>
27961 - ScaleCore needs to scale the bounds, not the ClientSize of the
27962 control. Fixes #77416.
27963 - DefaultSize is 0,0 for control
27965 - DefaultSize is 100, 20
27966 - SetBoundsCore: Now enforcing the height, no matter if the provided
27967 height is more or less than the preferred one, as long as AutoSize
27969 * Form.cs: Apply documented fudge factor. Part of item 3 fix for #77416
27971 2006-02-02 Peter Dennis Bartok <pbartok@novell.com>
27974 - ResumeLayout: Fixed logic when to call PerformLayout, we may not
27975 call unless both performLayout is true *and* we have a pending
27977 - ResumeLayout: MS does not completely nest Suspend and Resume,
27978 they bottom out at 0, fixed our code to match that.
27979 - UpdateBounds/SetBoundsCore: Moved calling of UpdateDistances() to
27980 SetBoundsCore, we were updating even when we shouldn't. This fixes
27981 swf-anchors mis-anchoring when resizing the app fast and lots.
27982 - UpdateDistances: Now only setting the left and top distance if
27983 we have a parent and are not suspended, this is based on
27984 a suggestion by Don Edvaldson in bug #77355.
27985 - OnVisibleChanged: Fixed logic when to create the control. We may
27986 not create the control if we have no parent or if it's not visible;
27987 switched to using Visible property instead of is_visible field
27988 since the property also considers parent states. This fixes a bug
27989 when starting Paint.Net
27991 2006-02-02 Jackson Harper <jackson@ximian.com>
27993 * Form.cs: If the forms handle hasn't been created yet don't call
27994 into xplatui to make it top most, just set the topmost flag on the
27995 form in CreateParams
27996 * XplatUIX11.cs: Handle WS_EX_TOPMOST.
27998 2006-02-01 Jackson Harper <jackson@ximian.com>
28000 * ScrollableControl.cs: Refactored the Recalculate method a
28001 little, this wasn't handling all the variants of bottom and right
28002 bars needed to be added and added/removed based on their
28003 counterparts being added/removed (which changes the drawable
28004 size). Also we special case client widths and heights of 0 and
28005 don't add the scrollbar for those.
28007 2006-02-01 Peter Dennis Bartok <pbartok@novell.com>
28010 - Added method to get AbsoluteGeometry(); currently unused, but might
28011 be used in the future, if we try again to figure out toplevel
28012 coordinates with some more crappy window managers
28013 - Added FrameExtents() method to retrieve the WM set decoration size
28014 - Tried to fix up AddConfigureNotify and handling of ReparentNotify
28015 to deal with at least KDE, FVWM and metacity (Fixes #77092)
28017 - Added whacky_wm tracking var for metacity
28018 - Added logic to have default menu height if the actual menu height
28019 has not yet been calculated (part of fix for #77426)
28020 * Form.cs: Keep track whether client size has been set and re-set
28021 it if a menu is added/removed afterwards (Fixes #77426)
28023 2006-01-31 Jackson Harper <jackson@ximian.com>
28025 * Control.cs: When a new Site is set on the component attempt to
28026 pull the AmbientProperties from it.
28028 2006-01-31 Peter Dennis Bartok <pbartok@novell.com>
28030 * ThemeWin32Classic.cs: Menu background is drawn in ColorMenu, not
28031 in the background of the owning form. Fixes #77332
28033 2006-01-31 Alexander Olk <alex.olk@googlemail.com>
28035 * MimeIcon.cs: Fix for #77409
28037 2006-01-31 Alexander Olk <alex.olk@googlemail.com>
28039 * XplatUIX11GTK.cs: Initial import
28041 2006-01-31 Jordi Mas i Hernandez <jordimash@gmail.com>
28043 * FixedSizeTextBox: fixes class signature
28045 2006-01-30 Jackson Harper <jackson@ximian.com>
28047 * FixedSizeTextBox.cs: New internal class that represents a
28048 textBox that will not be scaled.
28051 * UpDownBase.cs: Use the new FixedSizeTextBox instead of a
28054 2006-01-30 Peter Dennis Bartok <pbartok@novell.com>
28056 * XplatUIX11.cs: Retrieve default screen number instead of
28057 assuming 0. Attempted fix for #77318
28059 2006-01-30 Peter Dennis Bartok <pbartok@novell.com>
28062 - GetWindowPos: When a window is parented by FosterParent, use
28063 the desktop instead of FosterParent as the base to get coordinates
28064 - CreateWindow: Don't make FosterParent the parent window for Popups
28065 if we don't want a taskbar entry, Popups automatically don't get one
28066 * Hwnd.cs: Need to call remove to actually remove the key from the
28069 2006-01-30 Mike Kestner <mkestner@novell.com>
28071 * MenuAPI.cs: adjust MainMenu item popup location to y=0.
28073 2006-01-30 Jackson Harper <jackson@ximian.com>
28076 * TreeNode.cs: Raise events no matter how the treenode is
28077 checked. Patch by Don Edvalson.
28079 2006-01-30 Jackson Harper <jackson@ximian.com>
28081 * TreeNode.cs: Signature fix.
28083 2006-01-29 Alexander Olk <alex.olk@googlemail.com>
28085 * ThemeClearlooks.cs: Fixed a crash in ProgressBar drawing.
28087 2006-01-20 Mike Kestner <mkestner@novell.com>
28089 * Form.cs: Add ActiveTracker property to do Captures and perform mouse
28090 event forwarding when menus are active.
28091 * MenuAPI.cs: kill the GrabControl hack. Use Form.ActiveTracker.
28092 Most of the patch is pdb's with a little rework.
28094 2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
28096 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs:
28097 Removed GetMenuDC and ReleaseMenuDC methods; replaced
28098 by PaintEventStart(handle, false) and PaintEventEnd(handle, false)
28099 * Form.cs: Changed WM_NCPAINT handler to use PaintEventStart and End
28100 * InternalWindowManager.cs: Added use of PaintEventStart/End to
28101 handling of WM_NCPAINT message, now passing the PaintEventArgs to
28102 the PaintWindowDecorations method
28103 * MainMenu.cs: Switched logic from GetMenuDC to PaintEventStart
28104 * MdiChildContext.cs: Switched logic from GetMenuDC to PaintEventStart
28105 * MenuAPI.cs: Made tracker window invisible
28107 - Removed GetMenuDC and ReleaseMenuDC methods
28108 - Implemented the client=false path for PaintEventStart and
28111 2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
28113 * XplatUIWin32.cs(SetBorderStyle): Fixed3D needs a border
28114 * XplatUIX11.cs(DeriveWindowStyles): Updated to match fixed Form
28117 - MaximizeBox, MinimizeBox: Recreate the handle when setting
28119 - CreateParams: Reworked the styles to match MS look'n'feel,
28120 removed automatic setting of MinimizeBox, MaximizeBox, etc. via
28121 the WS_OVERLAPPEDWINDOW style. This fixes #76823.
28123 2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
28125 * XplatUIX11.cs(GetWindowState): Now throwing an exception when the
28126 window is not mapped, since otherwise every form that's being
28127 created is considered minimized, which is wrong.
28128 * Form.cs: Catching the exception and returning our internal value
28131 2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
28133 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new driver method
28134 SetWindowMinMax() to have means to tell the driver about the minimum,
28135 maximum and maximized state window sizes. (Part of the fix for #76485)
28137 - Implemented tracking of minimum and maximum window size, now calling
28138 new SetWindowMinMax() driver method to tell the driver (Part of the
28140 - Finished handling of WM_GETMINMAXINFO method, now setting all values
28141 (Completes fix for #76485)
28142 - Calling new SetWindowMinMax driver method when the handle for a
28143 form is created, to make sure the driver knows about it even if
28144 the values have been set before the window was created
28145 - Now eating the WM_WINDOWPOSCHANGED message if the form is minimized
28146 to avoid messing up our anchoring calculations (partial fix
28148 * XplatUIStructs.cs: Added MINMAXINFO struct (moved from Win32 driver)
28150 - Added _NET_WM_STATE_HIDDEN property for detecting minimized state
28151 - Improved GetWindowState() to detect 'Minimized' state on Metacity
28152 (and presumably other freedesktop.org compliant WMs). Left the
28153 assumption unmapped=minimized, needed for SetVisible to work.
28154 - Now setting the window state when creating windows
28155 - Fixed SetVisible to consider/set the window state when mapping
28156 a Form. We cannot set the state before it's mapped, and we cannot
28157 use Form.WindowState once it's mapped (since it would ask the
28158 driver and get 'normal'. Therefore, we grab the state before
28159 mapping, map, and then set state.
28160 - Implmemented SetWindowMinMax method; Metacity does not seem to
28161 honor the ZoomHints, though.
28163 - Removed MINMAXINFO (moved to XplatUIStructs)
28164 - Added SetWindowMinMax stub (on Win32 the only way to set that
28165 information is in response to the WM_GETMINMAXINFO message, which
28166 is handled in Form.cs)
28167 - Added logic to SetVisible to set the proper window state when a
28168 form is made visible (fixes #75720)
28170 2006-01-26 Jackson Harper <jackson@ximian.com>
28172 * Control.cs (BeginInvoke): Automagically handle EventHandlers the
28173 same way we handle them with Invoke.
28175 2006-01-25 Peter Dennis Bartok <pbartok@novell.com>
28178 - Added tracking of window state so CreateParams can return
28179 the appropriate style
28180 - Moved setting of WS_CAPTION style in CreateParams to allow
28181 styles without caption
28182 * DataGridTextBoxColumn.cs: We are now also creating the TextBox
28183 control if the TextBox property is accessed. Fixes #77345
28185 - get_Created: now uses is_disposed and is_created to determine
28186 return value (suggested by Jackson)
28187 - CreateHandle: No longer exits if the handle is being recreated
28188 - RecreateHandle: If the handle is not yet created call the
28189 appropriate method to create either control or handle. If the
28190 control is already created CreateHandle will simply exit instead
28191 of just creating the handle
28192 * Hwnd.cs: Removed expose_pending tracking, no longer needed since we
28193 now SendMessage WM_DESTROY directly to the control when DestroyWindow
28196 - When DestroyWindow is called, instead of waiting for the
28197 DestroyNotification from X11, we directly post it to the WndProc
28198 and immediately dispose the hwnd object.
28199 Same applies to DestroyChildWindows, and this obsoletes the
28200 expose_pending tracking. Contrary to Win32 behaviour we destroy our
28201 child windows before our own, to avoid X11 errors.
28202 - Removed the direct sending of WM_PAINT on UpdateWindow
28204 - Reworked DoEvents and GetMessage to allow access to internal queue
28205 even when trying non-blocking access to the queue. Fixes #77335.
28206 Based on a patch suggestion by Don Edvalson. The new private
28207 GetMessage can now also be used as a backend for a PeekMessage
28209 * XplatUI.cs: Improved debug output for CreateWindow
28211 2006-01-25 Jackson Harper <jackson@ximian.com>
28213 * Help.cs: Allow param to be null. Patch by Don Edvalson.
28215 2006-01-24 Jackson Harper <jackson@ximian.com>
28217 * ComboBox.cs: Clamp the max value set for the vertical scrollbar
28218 when we have a MaxDropItems lower then the selected index.
28220 2006-01-24 Jackson Harper <jackson@ximian.com>
28222 * Control.cs: Don't allow selection of non visible controls, allow
28223 selection of controls without parents.
28225 2006-01-24 Jordi Mas i Hernandez <jordimash@gmail.com>
28227 * ThemeWin32Classic.cs: Fixes Datagrid drawing issues
28228 * DataGridDrawingLogic.cs: Add editing row only when is necessary
28230 2006-01-23 Jackson Harper <jackson@ximian.com>
28232 * UpDownBase.cs: Make the textbox handle all the selection and
28233 tabbing. This fixes tabing to updown controls.
28235 2006-01-24 Jordi Mas i Hernandez <jordimash@gmail.com>
28237 * TextBoxBase.cs: fixes exception thown the object was null
28239 2006-01-23 Jackson Harper <jackson@ximian.com>
28241 * ButtonBase.cs: Just use the base CreateParams. They set
28242 visibility and enabled correctly.
28245 * MonthCalendar.cs: Lets let the base set as much of the
28246 createparams as possible so we don't have duplicate code all over
28249 2006-01-22 Alexander Olk <alex.olk@googlemail.com>
28251 * ThemeGtk.cs: Added TrackBar and some experimental code to
28252 get double buffering back
28254 2006-01-21 Jordi Mas i Hernandez <jordimash@gmail.com>
28256 * DataGrid.cs: Allows row number set internally higher than the last
28257 when creating a new row. Restores the editing functionality.
28259 2006-01-20 Mike Kestner <mkestner@novell.com>
28261 * MimeIcon.cs: delay Image creation until the icons are accessed
28262 instead of creating 190 scaled images on GnomeHandler startup.
28264 2006-01-19 Peter Dennis Bartok <pbartok@novell.com>
28266 * TextBoxBase.cs (WndProc): When handling WM_KEYDOWN we need to
28267 first call base before processing the event. Fixes #77279
28269 2006-01-19 Peter Dennis Bartok <pbartok@novell.com>
28271 * XplatUIWin32.cs, Cursor.cs: Fixed code that wrongly assumed
28272 that the stride for the GDI bitmap would match the stride of
28275 2006-01-19 Alexander Olk <alex.olk@googlemail.com>
28277 * ThemeGtk.cs: Added ProgressBar, RadioButton, CheckBox
28279 2006-01-19 Jackson Harper <jackson@ximian.com>
28281 * ComboBox.cs: Hookup the text controls keydown event so we get
28282 those when the text control has the focus.
28284 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
28286 * Label.cs: Now using the base events instead of defining new ones;
28287 this allows us to just call the base properties without having to
28288 duplicate all base property logic
28290 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
28292 * Label.cs: A label by default is not a tabstop (Fixes one of our
28293 failing nunit tests)
28295 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
28297 * XplatUIWin32.cs: Fixed wrong DoEvents logic. Fixes #77282
28298 * XplatUIX11.cs: Removed WM_PAINT check from DoEvents. Fixes #77282
28300 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
28302 * Cursor.cs: Reimplemented creating cursor bitmaps without using
28303 the Bitmap(Stream) constructor which is semi-broken on MS GDI+.
28306 - Reimplemented creating Bitmaps from DIBs since the Bitmap(Stream)
28307 constructor creates images that can't be saved. Part of the fix
28309 - Added handling of CF_BITMAP as CF_DIB to clipboard code (Fixes #76103)
28310 - SetWindowState: Switched ShowWindow flags (part of an upcoming
28311 bug fix for handling window state in forms properly)
28313 2006-01-18 Alexander Olk <alex.olk@googlemail.com>
28315 * ThemeGtk.cs: Simplify ScrollBar drawing
28317 2006-01-18 Jackson Harper <jackson@ximian.com>
28319 * Splitter.cs: Set the default dock style for the splitter control
28320 in the constructor.
28322 2006-01-18 Alexander Olk <alex.olk@googlemail.com>
28324 * ThemeGtk.cs: Corrected StateType and ShadowType for
28327 2006-01-18 Alexander Olk <alex.olk@googlemail.com>
28329 * Control.cs: Make use of Theme.DoubleBufferingSupported
28331 - Added drawing for flat style buttons
28332 - Added ScrollBar drawing
28334 2006-01-18 Alexander Olk <alex.olk@googlemail.com>
28336 * ThemeClearlooks.cs: Removed some unneeded code.
28337 * ThemeGtk.cs: First part of ThemeGtk enhancements.
28339 2006-01-17 Peter Dennis Bartok <pbartok@novell.com>
28341 * LinkLabel.cs: We need to update the hover drawing when
28342 leaving the control as well.
28344 2006-01-18 Jordi Mas i Hernandez <jordimash@gmail.com>
28346 * DataGrid.cs: Clicking on non empty areas in the columns
28347 area was giving an exception
28349 2006-01-17 Jackson Harper <jackson@ximian.com>
28351 * ThemeWin32Classic.cs:
28352 * ListView.cs: Do not draw/clip the headers when the header style
28355 2006-01-17 Jordi Mas i Hernandez <jordimash@gmail.com>
28357 * DataGrid.cs: Fixes 77260
28359 2006-01-17 Jordi Mas i Hernandez <jordimash@gmail.com>
28361 * DataGrid.cs: Clicking on a column on a empty grid was giving
28364 2006-01-17 Peter Dennis Bartok <pbartok@novell.com>
28366 * DataGrid.cs (OnKeyDown): Don't use the array if it's empty
28367 or any keypress will crash the grid.
28369 2006-01-17 Mike Kestner <mkestner@novell.com>
28371 * MainMenu.cs (OnMenuChanged): set Height=0 to cause relayout.
28372 * ThemeWin32Classic.cs (CalcItemSize): clear Height/Width for
28373 invisible/previously-visible items.
28376 2006-01-17 Alexander Olk <alex.olk@googlemail.com>
28378 * ThemeClearlooks.cs:
28379 - Added CL_Draw_Button method; now other theme controls that are
28380 not derived from button or do not have a button can draw buttons
28382 - Updated ComboBox drawing
28383 - Beautified RadioButton drawing
28384 - Corrected drawing of bottom and left tabs
28385 - Beautified DateTimePicker and MonthCalendar
28386 - Added CPDrawButton and CPDrawRadioButton
28388 2006-01-16 Jackson Harper <jackson@ximian.com>
28390 * ComboBox.cs: Set the initial value of the scrollbar to the
28391 current index. Reduce the numbers of refreshs and IndexOfs called.
28393 2006-01-14 Alexander Olk <alex.olk@googlemail.com>
28395 * FileDialog.cs: When the file listview is focused hitting the
28396 backspace key moves the fileview to the parent directory
28398 2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
28401 - Added RecreateHandle call when changing taskbar visibility to
28402 trigger reparenting in Win32 driver (Fixes #75719)
28403 - If a window has minimize or maximize buttons, it cannot have
28406 - CreateWindow: When no WS_EX_APPWINDOW style is found we parent
28407 the toplevel form with FosterParent (A toolwindow not on the
28408 taskbar) (Fixes #75719)
28409 - Made FosterParent a toolwindow
28411 2006-01-13 Alexander Olk <alex.olk@googlemail.com>
28413 * FileDialog.cs: Don't crash if InitialDirectory doesn't exist
28415 2006-01-13 Alexander Olk <alex.olk@googlemail.com>
28417 * ToolTip.cs: If SetToolTip is called from a control and the mouse
28418 is currently over that control, make sure that tooltip_window.Text
28421 2006-01-13 Mike Kestner <mkestner@novell.com>
28423 * MimeIcon.cs: size_t on lp64 fix for gdk_pixbuf_save_to_file extern.
28425 2006-01-13 Jackson Harper <jackson@ximian.com>
28427 * TreeView.cs: On MS GetNodeAt never actually factors in the X
28428 value passed. Also redraw the selected node when we recieve
28429 focus, so tabbing between trees works correctly.
28431 2006-01-13 Alexander Olk <alex.olk@googlemail.com>
28433 * MimeIcon.cs: GnomeHandler: older gnome versions don't have
28434 ~/.gconf/%gconf-tree.xml, so use
28435 .gconf/desktop/gnome/interface/%gconf.xml
28437 2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
28439 * TextControl.cs: Draw text in gray if control is disabled
28441 2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
28443 * TreeView.cs: Draw the focus rectangle outside the highlight, to
28444 make sure it's always visible. Fixes #76680.
28446 2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
28448 * TreeView.cs: Implemented Wheel scrolling. Fixes #76531
28450 2006-01-13 Jonathan Chambers <jonathan.chambers@ansys.com>
28452 * PageSetupDialog.cs: Added.
28453 * PrintDialog.cs: Attributes.
28454 * PrintPreviewControl.cs: Updates.
28455 * PrintPreviewDialog.cs: Updates.
28457 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
28459 * Control.cs: Undid my selection check fix, since it's not needed
28461 - Now considering the presence of hscroll/vscroll when sizing
28462 vscroll/hscroll respectively. Fixed bug #77077
28463 - Added Left/Up/Down/Right to IsInputKey list to prevent
28464 ContainerControl from stealing them. This fixes what I broke
28465 with my last checkin.
28467 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
28469 * ScrollableControl.cs: Implemented dockpadding. Fixes #77166. And
28470 I finally understand how the property can be set without a setter :-)
28472 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
28475 - Switched RunLoop to use static Message.Create to create a
28477 - Added PreProcessMessage call in runloop for keyboard events; this
28478 is part of the fix for #77219, I overlooked this originally in the
28479 MSDN doc for PreProcessMessage
28481 - Removed call to PreProcessMessage from handling of keyboard
28482 messages; it's supposed to be done in the message pump
28483 - Moved call to ProcessKeyEventArgs inside ProcessKeyMessage as
28484 per MSDN documentation.
28485 - IsInputChar: All chars are input chars by default; removed the
28486 parent calling chain, MS does not document that
28487 - PreProcessMessage: If IsInputChar is true, we want to return false
28488 to allow dispatching of the message
28489 - When selecting the next control, now also check that we're not
28490 selecting ourselves again and therefore return a false positive.
28492 - Tried to match return values for IsInputKey and ProcessDialogKey
28493 to what MS returns; moved processing of our special keys outside
28494 ProcessDialogKey since MS does not seem to return true on those.
28495 - Moved code that previously was in ProcessDialogKey into new private
28496 ProcessKey method, which gets called upon receipt of WM_KEYDOWN
28497 - Reworked handling of WM_CHAR to not have to duplicate code from
28498 Control.cs anymore, instead we simply call down to base.
28500 2006-01-12 Jackson Harper <jackson@ximian.com>
28502 * ComboBox.cs: We always need to refresh the text area when
28503 EndUpdate is called. Fixes the combobox in the file dialog.
28504 * Control.cs: Don't create the creator_thread until the controls
28505 handle is created. Also in InvokeRequired we check if the
28506 creator_thread is null. This gives the effect of InvokeRequired
28507 returning true if the controls handle is not created yet, and
28510 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
28513 - Added StartLoop() driver method. This is used to allow drivers to
28514 prepare for an upcoming GetMessage/TranslateMessage/DispatchMessage
28515 loop for a particular thread
28516 - Added EndLoop() driver method. This is called once the message
28517 pump for the thread is shut down
28518 - Added SupportsTransparency method to allow the driver to indicate
28519 opacity support for windows
28521 - Removed TODO attribute, completed AllowTransparency property
28522 - Added documented logic to Opacity
28523 * GroupBox.cs, Label.cs, LinkLabel.cs, PropertyGrid.cs, Control.cs,
28524 ButtonBase.cs, CheckedListBox.cs: Combined Jackson's and Miguel's
28525 versions of CompatibleTextRendering
28526 * X11Structs.cs: Added opacity atom to our atom enumeration
28527 * Hwnd.cs: Added opacity tracking (we need to track since the opacity
28528 of a form might be set before it's reparented by the WM, and we need
28529 the opacity value without calling up to Form)
28530 * XplatUIDriver.cs: Added StartLoop(), EndLoop() and
28531 SupportsTransparency() driver methods
28532 * Application.cs: Now calling StartLoop and EndLoop driver methods
28534 - Added opacity atom registration
28535 - Added StartLoop()/EndLoop() methods. They're empty right now but
28536 will need to get implemented when we switch to a per-thread queue
28537 - Implemented SupportsTransparency() method
28538 - Implemented SetWindowTransparency() method
28539 - Added support for setting the opacity value when a window is
28540 reparented (since the opacity needs to be set on the WM frame)
28541 * XplatUIOSX.cs, XplatUIWin32.cs:
28542 - Added SupportsTransparency(), StartLoop() and EndLoop() methods
28544 2006-01-12 Alexander Olk <alex.olk@googlemail.com>
28546 * ThemeClearlooks.cs: Don't crash if TabControl.Parent is null.
28548 2006-01-12 Alexander Olk <alex.olk@googlemail.com>
28550 * FileDialog.cs: Added ToolTip for MWFFileView
28551 * MimeIcon.cs: Rewrote GnomeHandler.
28552 - Get currently used gnome icon theme from
28553 ($HOME)/.gconf/%gconf-tree.xml
28554 - Make use of inherited icon themes
28555 - Support SVG icon themes like Tango via librsvg
28557 2006-01-12 Miguel de Icaza <miguel@novell.com>
28559 Revert's Jackson's revert which broke 2.0 builds. Fix both
28562 * Application.cs: Move the use_compatible_text_rendering outside
28563 the NET_2_0 define. If we ever need to use the
28564 use_compatible_text_rendering on the individual controls they will
28565 access the variable from the common shared code paths.
28567 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
28570 - Added more granular debug options
28571 - Added method to print both window text and id
28572 - Switched debug output to use new Window() debug method
28573 - Added IsEnabled() driver method
28574 - Added EnableWindow() driver method
28576 - Removed end_modal; no longer needed, new loop handles termination
28577 via 'closing' variable
28578 - If form is modal, setting DialogResult will now initiate loop
28579 termination via 'closing' variable
28580 - Added support for is_enabled/WS_DISABLED to CreateParams
28581 - Close() now just send the WM_CLOSE message; the WM_CLOSE handler
28583 - Removed code that's now in RunLoop from ShowDialog()
28584 - Added various documented sanity checks to ShowDialog()
28585 - Added handling of WM_DESTROY message; we set 'closing' on getting
28586 the message to indicate the message pump to terminate
28587 - Added handling of new internal WM_CLOSE_INTERNAL message - it's
28588 send by the Application.ExitThread method. (We send the message
28589 to destroy the window after all other events have been
28590 processed through the queue, instead of destroying the handle
28592 - Moved code from Close() method to WM_CLOSE handler; added logic
28593 to only send close-related events if the form is not displayed
28595 * Splitter.cs (..ctor): Fixed typo in resource name
28597 - DrawBackgroundImage: Explicitly selecting the wrap mode for the
28599 - set_Cursor: Now only setting calling into XplatUI if the handle for
28600 the control is already created; this avoids implict handle creation
28601 or crashes if it's not created
28602 - set_Enabled: Now setting the enabled state via the new driver method
28603 instead of just tracking it
28604 - CreateParams: Added logic to set WS_DISABLED based on enabled state
28605 - CreateControl: Reordered event firing and method calls to more
28606 closely fire events in the order MS does. Now setting the
28607 enabled state in the driver when creating the control.
28608 - SetVisibleCore: Moved when the OnVisibleChanged event is fired to
28610 * FolderBrowserDialog.cs, MessageBox.cs, ButtonBase.cs, TrackBar.cs,
28611 MonthCalendar.cs: get_CreateParams: Added setting of WS_DISABLED
28612 * XplatUIStructs.cs: Added internal WM_CLOSE_INTERNAL mesage id
28614 - Added tracking of window enabled state (get_Enabled/set_Enabled)
28615 - Added EnabledHwnd property to easily allow a driver to find the
28616 handle of the first enabled window in the parent chain (this is
28617 used by drivers to pass up input events of disabled windows)
28618 * XplatUIDriver.cs: Added IsEnabled() method
28620 - Removed crude and obsolete exiting tracking variable
28621 - Removed internal ModalRun(); replaced by RunLoop()
28622 - Implemented private CloseForms() method to allow closing all
28623 windows owned by a particular (or all) threads
28624 - Exit() now properly closes all windows without forcing the message
28626 - Removed obsolete InternalExit() method
28627 - Changed Run() methods to use new RunLoop() message pump
28628 - Implemented new RunLoop() method for both modal and non-modal forms
28630 - get_CreateParams: Added setting of WS_DISABLED
28631 - Simplified ShowDialog(); now all the work is done in RunLoop(),
28632 invoked via Form.ShowDialog()
28633 * NativeWindow.cs: We don't remove the window from the collection when
28634 the handle is destroyed; there might still be messages for it in the
28635 queue (mainly the resulting WM_DESTROY); instead it will be removed
28636 when Control calls InvalidateHandle in the WM_DESTROY handler
28638 - CreateWindow: Added logic to handle the WS_DISABLED window style
28639 - EnableWindow: Implemented based on Hwnd.Enabled
28640 - GetMessage: Reset PostQuitState so the method can be called again
28641 - Implemented support for disabled windows (passing messages to the
28642 first enabled parent) in handling all input messages
28643 - Added optimizations for handling Expose events
28644 - Implemeted new driver method IsEnabled()
28645 - Now always resetting paint pending tracking vars when we start paint
28646 - Re-implemented UpdateWindow via just sending a WM_PAINT message
28647 * XplatUIOSX.cs: Added IsEnabled method stub
28648 * XplatUIWin32.cs: Implemented new IsEnabled() method
28650 2006-01-11 Jackson Harper <jackson@ximian.com>
28652 * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
28653 LinkLabel.cs, PropertyGrid.cs: Unbreak 1.1 build. Consolidate the
28654 variables a little.
28655 * ColorDialog.cs: Clear out the old form before adding the new
28658 2006-01-11 Jackson Harper <jackson@ximian.com>
28660 * X11Dnd.cs: Make sure to add all the text formats when adding
28661 strings to the data object.
28662 * TreeNodeCollection.cs: When adding to a sorted tree we need to
28663 do some redrawing too. Also change the UpdateNode to an
28664 UpdateBelow so the newly added node gets painted.
28666 2006-01-11 Miguel de Icaza <miguel@novell.com>
28668 * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
28669 LinkLabel.cs, PropertyGrid.cs: Implement the
28670 UseCompatibleTextRendering property for 2.x
28672 * Application.cs (SetCompatibleTextRenderingDefault): Add.
28674 2006-01-11 Jackson Harper <jackson@ximian.com>
28676 * TreeView.cs: Use the property for setting the selected node so
28677 the correct events get raised.
28678 * TreeNode.cs: Update the tree when the fore/back colours of a
28681 2006-01-10 Jackson Harper <jackson@ximian.com>
28683 * TreeView.cs: Allow setting SelectedNode to null.
28685 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
28687 * Form.cs: Fix support for Form TransparencyKey and Opacity on Windows.
28689 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
28691 * PrintControllerWithStatusDialog.cs: Update page number in dialog.
28693 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
28695 * PrintDialog.cs: Added attributes and set default property values.
28697 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
28699 * PrintControllerWithStatusDialog.cs:
28700 Added PrintControllerWithStatusDialog.
28702 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
28704 * XplatUI.cs, Form.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
28705 XplatUIWin32.cs: Added support for Form TransparencyKey and Opacity on Windows.
28707 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
28709 * ComboBox.cs: Fix crash when there is no selected item (due to last commit)
28711 2006-01-09 Jonathan Chambers <jonathan.chambers@ansys.com>
28713 * ComboBox.cs: Added KeyDown event handler for processing arrow keys
28714 and PgUp/PgDown. Also, scroll to selected item upon dropdown. Bugs 76857 and 76788.
28716 2006-01-08 Alexander Olk <alex.olk@googlemail.com>
28718 * MimeIcon.cs: Added internal class SVGUtil.
28720 2006-01-08 Alexander Olk <alex.olk@googlemail.com>
28722 * FileDialog.cs: Don't crash if there are two files with the
28723 same name but different locations.
28725 2006-01-08 John BouAntoun <jba-mono@optusnet.com.au>
28727 * MonthCalendar.cs: Fixed annoying rendering bug when selecting
28728 dates across multiple month grids. Used to not highlight entire
28729 month, but does now.
28731 2006-01-06 Jackson Harper <jackson@ximian.com>
28733 * MonthCalendar.cs: Removed DoEvents call to prevent a running
28734 message loop. Change timer intervals to numbers that seem more
28737 2006-01-06 John BouAntoun <jba-mono@optusnet.com.au>
28739 * DateTimePicker.cs: Modified CalculateDropDownLocation to use the screen
28740 object for location info since screen object is now implemented.
28742 2006-01-05 Jackson Harper <jackson@ximian.com>
28744 * AsyncMethodData.cs: Check if the call is complete before doing a WaitOne
28745 * AsyncMethodResult.cs: We no longer use a WeakReference for the
28746 AsyncMethodResult, this is because we ALWAYS want the
28747 ManualResetEvent to get set.
28748 * Control.cs: When disposing use an async invoke to call shutdown
28749 code, so that thigns don't block on the finalizer thread. Also
28750 check if we even have a message loop before trying to send
28751 messages, if we don't then don't bother sending messages.
28752 - No more weak references for async methods
28753 * XplatUIDriver.cs: No more weak references for async methods.
28755 2006-01-04 Alexander Olk <alex.olk@googlemail.com>
28757 * FontDialog.cs: Fix, don't throw an exception if FontFamily.Families
28758 returns two FontFamily with the same name
28760 2006-01-04 Peter Dennis Bartok <pbartok@novell.com>
28762 * ThemeWin32Classic.cs, ThemeClearlooks.cs: Dropped stupid scheme of
28763 drawing disabled text. Instead using the ColorGrayText color
28765 2006-01-04 Jackson Harper <jackson@ximian.com>
28767 * TreeNode.cs: redraw the node when its image index is changed.
28769 2006-01-04 Peter Dennis Bartok <pbartok@novell.com>
28771 * RichTextBox.cs: Same fix as last, just for SelectionColor. This
28772 time I checked there are no others like it.
28774 2006-01-04 Jackson Harper <jackson@ximian.com>
28776 * AsyncMethodResult.cs: Use a ManualResetEvent instead of a mutex,
28777 this gives the behavoir I was looking for.
28778 * Control.cs: Special case Invoking EventHandlers, this matches MS
28779 and fixes part of bug #76326.
28781 2006-01-04 Alexander Olk <alex.olk@googlemail.com>
28783 * ThemeClearlooks.cs, FileDialog.cs:
28784 - Reflect the latest Theme class changes
28785 - Remove Mono.Unix.Syscall.time in FileDialg and replace it
28788 2006-01-04 Alexander Olk <alex.olk@googlemail.com>
28790 * Theme.cs: Cache UI resource images and resize them if needed
28792 2006-01-03 Peter Dennis Bartok <pbartok@novell.com>
28794 * RichTextBox.cs: FormatText is 1-based, make it so when SelectionFont
28795 is called. This fixes the crash in Nexxia when setting the font
28796 attributes in the chat. [However, RTF needs a look-over to make sure
28797 that all SelectionXXX methods handle the special case that selection
28798 is empty and therefore the change must be applied to all text starting
28799 at the cursor/selection start]
28801 2006-01-03 Peter Dennis Bartok <pbartok@novell.com>
28803 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
28804 XplatUIOSX.cs: Added SendMessage and PostMessage methods
28805 * X11Keyboard.cs: Switched to new way of calling PostMessage
28807 2006-01-03 Peter Dennis Bartok <pbartok@novell.com>
28809 * Theme.cs: Added theme interface for images to allow the theme to
28810 control what images are used for things like FileDialog, MessageBox
28812 * MessageBox.cs: Now uses the new Theme icon/image interfaces
28814 2006-01-03 Alexander Olk <alex.olk@googlemail.com>
28817 - Removed some dead code
28818 - Opening a recently used file does work now
28819 - Small UI enhancements
28822 2006-01-02 Alexander Olk <alex.olk@googlemail.com>
28824 * FileDialog.cs: Forgot too add __MonoCS__
28826 2006-01-02 Alexander Olk <alex.olk@googlemail.com>
28828 * FileDialog.cs: We are able to read recently used files now let's
28829 go on and write them.
28831 2006-01-01 Alexander Olk <alex.olk@googlemail.com>
28833 * FileDialog.cs: Breathe some life into "last open"/"recently used"
28835 * MimeIcon.cs: Do a check for the top level media type also
28837 2005-12-31 Alexander Olk <alex.olk@googlemail.com>
28839 * ThemeClearlooks.cs:
28840 - Added CPDrawStringDisabled
28841 - ButtonBase_DrawText: Workaround for a DrawString bug; cut off
28842 some chars if the text doesn't fit into text_rect
28843 - DrawListViewItem: If View = View.LargeIcon center the image;
28844 rewrote the drawing of ListViewItem.Text if View =
28847 2005-12-31 Alexander Olk <alex.olk@googlemail.com>
28849 * MimeIcon.cs: Use default KDE icon theme if there is no
28850 "48x48" directory for the current icon theme, fixes #77114
28851 * Mime.cs: Disable not working and actually not used code.
28852 * ThemeWin32Classic.cs:
28853 - Replace "new SolidBrush" in GetControlBackBrush and
28854 GetControlForeBrush with ResPool.GetSolidBrush
28855 - Changed DrawListViewItem from private to protected virtual
28857 - Added form.MaximizeBox = true
28858 - Don't throw an exception if there is a broken symbolic link
28860 2005-12-23 Jackson Harper <jackson@ximian.com>
28862 * TabControl.cs: Give the panels focus, keyboard navigation is
28863 fixed so this works correctly now.
28864 - We need these key events also.
28865 * ToolBar.cs: Remove some of the poor mans double buffering.
28867 2005-12-24 Alexander Olk <alex.olk@googlemail.com>
28869 * ComboBox.cs: The internal TextBox now returns the focus.
28871 2005-12-23 Jackson Harper <jackson@ximian.com>
28873 * ThemeWin32Classic.cs: Draw the text for all tab appearances.
28875 2005-12-23 Peter Dennis Bartok <pbartok@novell.com>
28877 * Control.cs: Removed debug code
28878 * XplatUIX11.cs: Changed DestroyChildWindows to also consider
28881 2005-12-23 Peter Dennis Bartok <pbartok@novell.com>
28883 * Control.cs: When creating the control, update the Z-order after
28884 all it's children are created, too. (Fixes nexxia not showing
28887 2005-12-23 Peter Dennis Bartok <pbartok@novell.com>
28889 * Control.cs: Do not update the anchoring distances if layout is
28890 suspended, instead do it once layout is resumed
28892 2005-12-22 Peter Dennis Bartok <pbartok@novell.com>
28895 - After many hours of debugging, for both Jackson and
28896 myself, it turns out that it helps to set the parent of a control
28897 if you want to actually see it onscreen. In the spirit of that
28898 discovery, we're now setting the parent of the control and
28899 it's children when the control's handle is created. This fix
28900 will make Lutz Roeder's Reflector run happily.
28901 - now just creating the handle instead of the whole control when
28902 getting a graphics context for the control.
28904 2005-12-22 Peter Dennis Bartok <pbartok@novell.com>
28906 * ScrollableControl.cs: When calculating the canvas, don't consider
28907 the scrollbar widths. Instead, predict if horizontal scrollbar
28908 will affect canvas when deciding on vertical display and vice versa.
28910 2005-12-22 Peter Dennis Bartok <pbartok@novell.com>
28912 * RichTextBox.cs: Set default RTF font for documents that don't
28913 have a font table (Fixes #77076)
28915 2005-12-22 Jackson Harper <jackson@ximian.com>
28917 * TextBoxBase.cs: It's difficult to do, but you can have an empty
28918 clipboard. This prevents a NullRef in that case.
28919 * XplatUIX11.cs: Use CLIPBOARD not PRIMARY for our
28920 clipboard. PRIMARY is for the currently selected text only. (We
28921 should implement PRIMARY at some point.
28923 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
28925 * XplatUIWin32.cs: Fixed the TEXTMETRIC structure, we were calling
28926 a Unicode function with a structure that was defined in Ansi way.
28929 2005-12-21 Jackson Harper <jackson@ximian.com>
28931 * StatusBar.cs: Statusbar handles its fore/back colours on it's
28932 on. Because thats how it rolls. (and this avoids it using ambient
28934 * ThemeWin32Classic.cs: Use the proper back color for filling.
28935 * Menu.cs: Use the system menu bar color for drawing menu
28936 bars. Using the window back color will bring ambient colours into
28939 2005-12-21 Alexander Olk <alex.olk@googlemail.com>
28941 * ColorDialog.cs: Fixed a memory leak that caused a SIGSEV. A lot of
28942 Bitmaps were created and not disposed.
28944 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
28946 * Control.cs (CreateControl): Don't do anything if the control is
28947 already created, otherwise we'd fire the OnCreated event more than
28950 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
28952 * ComboBox.cs (FindStringCaseInsensitive): Don't search for emtpy strings,
28953 will always match. Instead return -1. Fixes #76464.
28955 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
28957 * TextControl.cs (RecalculateLine): Only wrap if the wrap point is
28958 neither the beginning nor the end of the line (Fixes bug #76479)
28960 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
28963 - ControlNativeWindow.ControlFromHandle(): Now handling situation
28964 where handle is invalid
28965 - FromHandle(): Now using hashtable-based ControlFromHandle() lookup
28966 instead of slower linear search
28967 * NativeWindow.cs: Don't remove the window from the hashtable until
28968 after the driver has destroyed it (since the driver might use
28969 Control.FromHandle to lookup the control object
28970 * Hwnd.cs: Added DestroyPending property to track if a window is
28971 already destroyed as far as the driver is concerned and only hasn't
28972 yet notified the control
28974 - Activate(): Check if the window is still valid before using the
28976 - Implemented DestroyChildWindow() method to mark child windows as
28977 destroyed when a window is destroyed. This prevents situations
28978 where we might call an X method based on queued events for a
28979 window that already has been destroyed but we haven't yet pulled
28980 the destroy method from the queue.
28981 - Added a call to the new DestroyChildWindow() method to the drivers
28982 DestroyWindow code. Also now marking the destroyed window itself
28985 2005-12-20 Jackson Harper <jackson@ximian.com>
28988 * StatusBarPanel.cs: Don't calculate panel sizes on draw
28989 anymore. Just do them when needed, also track the rects of panels
28990 so that we can optimize refreshing more in the future.
28992 2005-12-20 Alexander Olk <alex.olk@googlemail.com>
28994 * ColorDialog.cs: Fixed focus drawing in small color controls
28996 2005-12-19 Jackson Harper <jackson@ximian.com>
28998 * InternalWindowManager.cs:
28999 * MdiWindowManager.cs: Cleanup some coordinate system changes so
29000 moving windows works properly.
29002 2005-12-19 Peter Dennis Bartok <pbartok@novell.com>
29005 - Removed call to InitLayout() from SetBoundsCore(); doc says
29006 it's only called when a control is added to a container
29007 - Split InitLayout logic, moved to separate UpdateDistances() method
29008 since we need to perform those calculations more often than just
29009 when adding the control to a container. (Needed to fix #77022)
29010 - Now calling UpdateDistances() from UpdateBounds() (fixes #77022)
29011 - Reduced the OnBindingContextChanged events count, don't send them
29012 unless the control is created, we still aren't totally matching
29013 MS, but I can't quite figure out some of their rules
29015 2005-12-18 Alexander Olk <alex.olk@googlemail.com>
29017 * ThemeClearlooks.cs: Corrected distance between ProgressBar
29020 2005-12-18 Alexander Olk <alex.olk@googlemail.com>
29022 * ThemeClearlooks.cs:
29023 - Updated ProgressBar drawing
29024 - Corrected drawing of ScrollBars and scroll buttons
29025 - Some temporary fixes for minor pixel artefacts
29027 2005-12-18 Peter Dennis Bartok <pbartok@novell.com>
29030 - Reworked Controls.Add(), Controls.Remove() and set_Parent() to
29031 cause events to be sent in the same order as MS does.
29032 - Added ChangeParent() method to trigger various OnXXXChanged events
29033 that need to be fired when a parent changes (This is a reworking
29034 of the patch from r54254, with the X11 errors fixed)
29035 - Removed SuspendLayout()/ResumeLayout() calls from Controls.Clear()
29036 since on MS we get OnLayoutChanged events when calling Clear()
29037 - Changed Enabled property to consider parent state as well, if a
29038 parent is not enabled, the control will not be either
29039 - Changed Parent property to simply call Controls.Add() since that
29040 now does all the work required, this way we avoid code duplication
29041 - Threw in a few OnBindingsContextChanged calls to try and match
29042 when MS sends them. We seem to send a few too many, though.
29043 - Added call to CreateControl when adding the control to a parent.
29044 We were never calling CreateControl. Still needs some work, in
29045 some places we treat HandleCreated and ControlCreated as equal,
29047 - Removed obsolete commented out code from UpdateZOrder()
29049 2005-12-18 Alexander Olk <alex.olk@googlemail.com>
29051 * ThemeClearlooks.cs: Updated TrackBar drawing.
29053 2005-12-17 Alexander Olk <alex.olk@googlemail.com>
29055 * FileDialog.cs: Patch for #76901 by Atsushi Enomoto
29057 2005-12-17 Alexander Olk <alex.olk@googlemail.com>
29059 * FileDialog.cs: Add the Help button and the open readonly
29060 checkbox only if needed
29062 2005-12-16 Jackson Harper <jackson@ximian.com>
29064 * Control.cs: Make sure we have an active menu before trying to
29065 process commands on it. Prevents menu-less forms from crashing
29066 when Alt is pressed.
29067 * TreeNodeCollection.cs: Some fixes to prevent null refs. Patch by
29069 * RichTextBox.cs: Expand statement to help out gmcs and fix the
29072 2005-12-16 Jackson Harper <jackson@ximian.com>
29074 * InternalWindowManager.cs: Don't translate tool windows screen
29075 coordinates. This fixes windows 'bouncing' around when being moved.
29077 2005-12-15 Peter Dennis Bartok <pbartok@novell.com>
29080 - MaxLength now treats 2^31-1 equal to unlimited length (this is
29081 not quite MS compatible, MS uses that number only for single line
29082 and 2^32-1 for multi-line, but I figure it won't hurt keeping
29084 - Now enforcing the MaxLength limit when entering characters
29085 - Added argument to internal Paste() method to track if it's called
29086 from programatically or via keyboard, since keyboard driven pastes
29087 need to enforce max-length
29088 - Added logic to Paste to only paste as many chars as MaxLength
29090 * RichTextBox.cs: Updated to use new obey argument for internal Paste()
29092 - Added Length property to return number of characters in document
29093 - Added private CharCount property which only tracks actual chars
29094 in the document (no linefeeds) and fires event when CharCount
29096 - Added tracking of character count to all methods that alter it
29097 - Added LengthChanged event to allow applications to subscribe
29098 to any changes to the document
29100 2005-12-15 Peter Dennis Bartok <pbartok@novell.com>
29103 - Removed local password_char field (moved to TextBoxBase)
29104 - Now setting the document's password var when password is
29107 - Added password_char field (needed here so MultiLine can
29109 - Added logic to MultiLine property setter to set the document's
29110 variable when password display is allowed
29111 - Removed debug code and made some debug code conditional
29113 - Added RecalculatePasswordLine() method to handle special password
29115 - Added PasswordChar property, also added related tracking vars
29116 - Draw() method now uses local text var for grabbing text to draw,
29117 this var is set to line.text unless we're doing password display,
29118 then it is set to the pre-generated all-password-chars line
29119 - Added calling RecalculatePasswordLine() method for password lines
29121 2005-12-14 Peter Dennis Bartok <pbartok@novell.com>
29124 - Added Reparented property to allow tracking of Window Manager
29125 reparenting actions (which affect X/Y calculations of toplevel
29127 - Made ToString() print window handles in hex
29129 - AddConfigureNotify(): Now uses reparented state off Hwnd to
29130 determine if X/Y needs offsetting
29131 - AddConfigureNotify(): Fixed offset calculations
29132 - Now adds ReparentNotify messages into the queue
29133 - Now processes ReparentNotify messages and causes a
29134 WM_WINDOWPOSCHANGED message to be sent upstream if a window
29135 is reparented (as most likely it's X/Y coordinates are changed
29138 2005-12-14 Jackson Harper <jackson@ximian.com>
29140 * XplatUIX11.cs: Tool windows still need to respek focus.
29142 2005-12-14 Peter Dennis Bartok <pbartok@novell.com>
29144 * Control.cs: Undid 54254 (causing XConfigure errors) so we can
29145 have a working release
29147 2005-12-13 Jackson Harper <jackson@ximian.com>
29149 * Form.cs: Update styles after setting the border style regardless
29150 of whether or not the window is using a window manager.
29152 2005-12-13 Jackson Harper <jackson@ximian.com>
29154 * Form.cs: We now hook into an internal window manager instead of just an
29155 MDI subsystem, this is so we can have properly behaving tool windows.
29156 * MdiClient.cs: Naming change, MdiChildContext is now WindowManager
29157 * InternalWindowManager.cs: New internal class that acts as a
29158 window manager for tool windows and as a base for mdi windows.
29159 * MdiWindowManager.cs: New class that acts as a window manager for
29162 2005-12-12 Jackson Harper <jackson@ximian.com>
29164 * Control.cs: Updates so we match behavoir for for implicit
29165 controls. Fixes explosions in MDI.
29167 2005-12-12 Jackson Harper <jackson@ximian.com>
29169 * Control.cs: Implement Invalidate (Region).
29171 2005-12-12 Peter Dennis Bartok <pbartok@novell.com>
29174 - Changed handling of Controls.Add/Controls.Remove to fire (almost)
29175 the same events as MS does. MS fires events for each property
29176 except, for unknown reasons, Cursor, when the control is reparented.
29177 I can't seem to totally match add/remove since MS also fires some
29178 VisibleChanged events, which makes no sense. Consolidated the
29179 parenting code into a separate method so it can be called from
29180 both Add and Remove. set_Parent no longer needs any special logic
29181 as it calls the parent's add method which implicitly fires
29183 - Removed some obsolete code and debug output
29184 - Enabled state is inherited from parents, if this is enabled
29186 2005-12-08 Peter Dennis Bartok <pbartok@novell.com>
29188 * Form.cs: Removed commented out code
29190 2005-12-08 Peter Dennis Bartok <pbartok@novell.com>
29193 - Added internal version of Invoke, with additional argument
29194 indicating if we're calling it from a Dispose() handler. That
29195 way we can avoid BeginInvoke throwing an exception if we're
29196 calling for an already destroyed window.
29197 - Added a dispose argument to BeginInvokeInternal, and made the
29198 check if a valid window handle chain exists conditional on
29199 it not being a dispose call
29200 - Removed code in DestroyHandle to destroy our children. Since we
29201 now handle the WM_DESTROY message we will catch all our children
29203 - Now calling OnHandleDestroyed from our new WM_DESTROY handler
29205 - Added a field to track the application context of the form.
29206 - No need to set closing variable as response to WM_CLOSE, instead
29207 we destroy the window. We also call PostQuitMessage if the form
29208 has an application context (which makes it the main app form,
29209 which, when closed terminates the app)
29211 - Dropped Exit() method, it's naming was confusing
29212 - Added PostQuitMessage() which causes GetMessage to return false
29213 once the message queue is empty
29214 * XplatUIDriver.cs, XplatUIWin32.cs: Dropped Exit(), added
29216 * XplatUIOSX.cs: Switched signature for Exit method since Exit() is
29217 no longer a valid XplatUI method, but left it in since it's used
29218 internally. Added empty PostQuitMessage() method.
29219 * MenuAPI.cs: Replaced call to Exit() with call to
29220 PostQuitMessage, even though this is probably no longer needed.
29221 * Hwnd.cs: Added 'pretty' ToString() to support debugging.
29222 * X11Structs.cs: Added pretty XEvent.ToString() to support debugging.
29224 - Replaced call to XplatUI.Exit() with PostQuitMessage()
29225 - Removed old debug code that would call XplatUI for exception
29226 display, enabled standard exception handling (Still not enabled
29227 though, until NativeWindow's ExternalExceptionHandler define
29230 - Added internal method to allow control to update NativeWindow
29231 after a window has been destroyed
29232 - Added handling of already destroyed windows when calling i
29234 - Added removal of handle from list on ReleaseHandle
29236 - Dropped GetMessageResult var and related code
29237 - Added PostQuitState to field to track if PostQuitMessage has been
29239 - Dropped Exit() method
29240 - Added PostQuitMessage() method
29241 - GetMessage now will return false if PostQuitState is set and no
29242 more messages are in the queue.
29243 - Expose handler will no longer generate WM_PAINT messages if we are
29244 in PostQuitState since it's very likely any windows have already
29245 been destroyed, and since Hwnd won't get updated until we have
29246 processed the DestroyNotify we'd be causing X errors.
29248 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
29250 * Control.cs(WndProc): Apparently I'm suffering from brain cloud.
29251 Thanks to Mike for pointing out the err of my ways.
29253 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
29255 * Control.cs(PreProcessMessage): Moved menu handling back, but
29256 after all other key handling, to match MS (who handles Menu in
29258 * Menu.cs (WndProc): Removed my brainfart
29260 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
29262 * Control.cs(PreProcessMessage): Removed special menu handling
29263 * Menu.cs (WndProc): Added handling of WM_SYSKEYUP for menu purposes.
29265 2005-12-07 Mike Kestner <mkestner@novell.com>
29267 * Control.cs : special case SYSKEYUP so that we can adjust keynav
29268 state according in tracker.
29269 * Menu.cs : promote tracker field to base class and provide a tracker
29270 lookup capability. Add/Remove shortcuts dynamically if the top menu
29271 has a tracker. Unparent items that are removed from the collection.
29272 * MenuAPI.cs : implement mnemonic, shortcut, and arrow-based keynav.
29273 * Theme*.cs: add always_show_hotkeys field to support configurability
29274 of mnemonic display. win32 doesn't show mnemonics until Alt is
29277 2005-12-07 Jackson Harper <jackson@ximian.com>
29279 * MdiChildContext.cs: Use Control.ResetCursor.
29280 * Control.cs: ResetCursor needs to set the property so that the
29281 correct XplatUI call gets made.
29283 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
29285 * Control.cs: More fixes to make our key events match MS. We
29286 were not setting the modifier state on KeyData, and we were
29287 not generating any events when Alt was pressed with a key
29288 since handling of WM_SYSxxx was missing for the OnKey methods.
29290 2005-12-07 Jackson Harper <jackson@ximian.com>
29292 * MdiChildContext.cs: reenable the sizing code.
29293 - When the mouse leaves a window reset its cursor.
29295 2005-12-07 Alexander Olk <alex.olk@googlemail.com>
29297 * ThemeClearlooks.cs: Reflect latest Hwnd changes
29299 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
29301 * Hwnd.cs: Now using the theme 3d bordersize to calculate
29302 widths of Fixed3D borders
29304 2005-12-07 Jackson Harper <jackson@ximian.com>
29306 * MdiClient.cs: Fix warnings. Earn Mike's love.
29308 2005-12-07 Alexander Olk <alex.olk@googlemail.com>
29310 * ThemeClearlooks.cs:
29311 - Adjusted mouse over button color
29312 - Added first parts of CheckBox drawing
29313 - Added correct color for selected text background
29314 - Fixed ComboBox drawing
29315 - Added CPDrawBorder3D and CPDrawBorder
29317 2005-12-06 Peter Dennis Bartok <pbartok@novell.com>
29319 * XplatUIX11.cs: Added call to XBell for AudibleAlert
29321 2005-12-06 Peter Dennis Bartok <pbartok@novell.com>
29323 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
29324 XplatUIOSX.cs: Added AudibleAlert() method to have a means to
29325 alert users via sound. We could add an enum arg with different
29326 types of alerts in the future
29328 2005-12-06 Peter Dennis Bartok <pbartok@novell.com>
29330 * Control.cs: Fix behaviour problems pointed out by Mike
29332 2005-12-05 Mike Kestner <mkestner@novell.com>
29334 * StatusBarPanel.cs: add Invalidate method and hook it into all the
29335 prop setters. Calls parent.Refresh for now, but could be maybe be
29336 optimized with an internal method on StatusBar at some point.
29339 2005-12-05 Peter Dennis Bartok <pbartok@novell.com>
29341 * RichTextBox.cs: Implemented get_SelectionColor
29343 2005-12-05 Alexander Olk <alex.olk@googlemail.com>
29345 * ThemeClearlooks.cs:
29346 - Removed dead code
29347 - Draw black button border only if button is Form.AcceptButton
29348 - Draw correct button color for pressed RadioButton if the mouse
29349 has entered the button
29350 - Updated ProgressBar drawing!
29351 - Updated CPDrawSizeGrip drawing
29352 - Updated StatusBarPanel drawing
29354 2005-12-05 Mike Kestner <mkestner@novell.com>
29356 * Control.cs (PreProcessMessage): add Keys.Alt based on LParam value.
29357 * X11Keyboard.cs (SendKeyboardInput): formal lParam for alt mod.
29359 2005-12-04 Alexander Olk <alex.olk@googlemail.com>
29361 * ThemeClearlooks.cs: Initial check-in, activate with
29362 export MONO_THEME=clearlooks
29363 * ThemeEngine.cs: Added ThemeClearlooks
29365 2005-12-03 Mike Kestner <mkestner@novell.com>
29367 * MenuAPI.cs: deactivate menus prior to calling item.PerformClick.
29370 2005-12-02 Jackson Harper <jackson@ximian.com>
29372 * Form.cs: If the child form has no menu the default main menu is
29373 used as the active menu.
29375 2005-12-02 Peter Dennis Bartok <pbartok@novell.com>
29377 * ListBox.cs: Check if any items exist before trying to resolve
29378 coordinates into items
29380 2005-12-02 Peter Dennis Bartok <pbartok@novell.com>
29382 * ThemeWin32Classic.cs: Hatchbrush on Win32 seems to always use white
29383 as the second color for the background hatch
29385 2005-12-02 Peter Dennis Bartok <pbartok@novell.com>
29387 * TextBoxBase.cs: Now uses Jackson's new and improved ImplicitScrollbar
29388 * RichTextBox.cs: FormatText position arguments are 1-based, now making
29389 sure that what we pass to FormatText is always 1-based. Fixes #76885
29391 2005-11-29 Miguel de Icaza <miguel@novell.com>
29393 * NumericUpDown.cs (EndInit): When we are done initializing,
29394 reflect any updates on the UI.
29396 2005-12-02 Jackson Harper <jackson@ximian.com>
29398 * ImplicitHScrollBar.cs:
29399 * ImplicitVScrollBar.cs: New scrollbars that don't take focus from
29400 their container controls.
29401 * TreeView.cs: Use the new implicit scrollbars.
29403 2005-12-02 Jackson Harper <jackson@ximian.com>
29405 * TreeView.cs: Make top_node internal so the TreeNodeCollections
29407 * TreeNodeCollection.cs: If we remove the topnode we need to
29408 update topnode to the next node in line.
29409 - When clearing nodes go through the same process as removing
29410 them, so they get depareneted and checked if they are top node.
29412 2005-12-01 Jackson Harper <jackson@ximian.com>
29414 * TreeView.cs: When imagelists are used the image area is
29415 selectable as well as the text.
29416 - If there are no selected nodes select the first one.
29417 * TreeNodeCollection.cs: Getting the TreeView is mildly expensive,
29418 so don't do it more then we need to.
29420 2005-12-01 Jackson Harper <jackson@ximian.com>
29422 * ThemeWin32Classic.cs: Reimplement the scroll arrow drawing so
29423 that arrows can be scaled.
29425 2005-12-01 Jackson Harper <jackson@ximian.com>
29427 * TreeNode.cs : Fixed bugs that caused FullPathTest + Traverse to
29428 fail. Patch by Dieter Bremes
29430 2005-11-30 Jackson Harper <jackson@ximian.com>
29432 * Form.cs: Property is 2.0 only
29433 * PrintDialog.cs: Signature fix.
29435 2005-11-30 Peter Dennis Bartok <pbartok@novell.com>
29438 - No longer artificially moves text 2 pixels down (now that we have
29439 borders this is no longer needed)
29440 - Added calcs for left, hanging and right indent
29442 2005-11-23 Mike Kestner <mkestner@novell.com>
29444 * Menu.cs: mark MenuChanged internal, since it's not exposed by MS.
29446 2005-11-30 Jackson Harper <jackson@ximian.com>
29448 * MdiChildContext.cs: Set the cloned menus forms, as these don't
29449 get cloned as part of CloneMenu ().
29450 * Menu.cs: Make sure the parent of the items get set correctly
29451 when they are added. And the owners are notified of the changes.
29452 * Form.cs: Create an ActiveMenu property, so that when MDI is used
29453 we can change the menu being displayed/handled by the form without
29454 changing the menu assosciated with the form.
29455 - Don't let Mdi children draw/handle menus.
29457 2005-11-30 Jackson Harper <jackson@ximian.com>
29459 * Menu.cs: Switch the MenuChanged method to OnMenuChanged and add
29460 a MenuChanged event. Just to make the API a little more
29463 * MenuItem.cs: Use the new OnMenuChanged
29464 * MdiChildContext.cs: Handle menu merging.
29465 * Form.cs: Implement MergedMenu.
29467 2005-11-30 Jackson Harper <jackson@ximian.com>
29469 * Menu.cs: We were misusing Add. Add goes behind the specified
29470 index according to the docs, and does not replace the specified
29471 index. So I added an Insert method.
29473 2005-11-30 Peter Dennis Bartok <pbartok@novell.com>
29475 * TextBoxBase.cs: Implemented Ctrl-Ins (Copy), Shift-Ins (Paste) and
29476 Shift-Del (Cut), apparently Emacs uses these old Win 2.x keys. This
29478 * RichTextBox.cs: Added calls to base for DnD events
29480 2005-11-28 Peter Dennis Bartok <pbartok@novell.com>
29483 - Fixed drag-selection related crash; style fixes
29484 - Implemented undo class
29485 o Implemented method to capture document state for specified
29486 range in document tree
29487 o Implemented method to restore captured document state
29488 o Implemented cursor tracking
29489 o Implemented basic undo stack
29490 - Added undo cursor tracking to methods altering cursor location
29491 - Added undo tracking to selection deletion (still missing
29492 other text-altering hookups)
29494 - Added SelectionLength property
29495 - Implemented CanPaste()
29496 - Implemented Paste()
29497 - Added missing protected methods
29498 - Fixed RTF->Document conversion; now uses font index 0 and color
29499 index 0 as the default font for the parsed text
29500 - Fixed RTF<->Document font size translation
29501 - Fixed RTF generation, now properly handles cross-tag boundaries
29502 for single line selection
29503 - No longer always appends blank line to generated RTF
29505 - Added missing attributes
29506 - Hooked up undo-related methods
29508 - Implemented Copy()
29509 - Implemented Paste()
29510 - Implemented Cut()
29511 - Fixed caret mis-behaviour on backspace across line-boundaries
29513 2005-11-29 Jackson Harper <jackson@ximian.com>
29515 * MdiClient.cs: Add a method for activating mdi children. Very
29516 basic right now. I imagine someday it might need more girth.
29517 * MenuItem.cs: Implement MDI lists. When mdilist is true the mdi
29518 children windows names are added to the menu item.
29519 * ThemeWin32Classic.cs: Draw the arrow if the item is an
29520 mdilist. This happens regardless of whether or not there are any
29521 mdi windows to see in the list, and according to my tests happens
29522 before the items are even added. Also happens if there isn't even
29523 an mdi client to get windows from.
29525 2005-11-29 Alexander Olk <alex.olk@googlemail.com>
29527 * ThemeWin32Classic.cs: Make DrawFlatStyleRadioButton protected
29528 * ThemeNice.cs: Fix drawing of flatstyle radiobuttons
29530 2005-11-29 Jordi Mas i Hernandez <jordimash@gmail.com>
29532 * DataGridTableStyle.cs:
29533 - Create always the styles for the missing columns even if they are
29534 provided by the user (not default table style)
29537 - Fixes SetDataBinding (always re-attach source)
29538 - Fixes SetNewDataSource (only clear styles if they are not for
29540 - Expands OnTableStylesCollectionChanged to handle style refresh
29541 and remove properly
29543 2005-11-29 Jackson Harper <jackson@ximian.com>
29545 * FileDialog.cs: Implement missing bits, remove some dead
29547 * FontDialog.cs: Implement missing Apply stuff, and ToString. Move
29548 creation of the panel so that the options set on the dialog are
29549 seen when the panel is created.
29550 * TreeView.cs: raise a click when items are clicked.
29552 2005-11-29 Jackson Harper <jackson@ximian.com>
29554 * MdiClient.cs: Pass some signature methods through to base.
29556 2005-11-28 Jackson Harper <jackson@ximian.com>
29558 * ListView.cs: Raise the click event when items are clicked.
29560 2005-11-28 Jackson Harper <jackson@ximian.com>
29562 * MdiClient.cs: Make this algorithm even more beautiful. And fix
29565 2005-11-27 Alexander Olk <alex.olk@googlemail.com>
29567 * ThemeNice.cs: - Removed 1 pixel bitmaps
29568 - Use SmoothingMode.AntiAlias where it makes sense
29569 (ScrollButton arrow for example)
29570 - Enhanced Button focus drawing
29571 - Fixed ComboBox drawing (no artefacts anymore, focus
29572 rectangle is back again, reduced size of ComboButton, etc.)
29573 - Fixed RadioButton focus drawing for Appearence.Button
29574 - Slight ScrollButton redesign
29575 - Some LinearGradientBrush size fixes
29576 - GroupBoxes have now rounded edges
29577 - Fixed StatusBar drawing
29579 2005-11-25 Alexander Olk <alex.olk@googlemail.com>
29581 * ThemeNice.cs: - Remove dead code
29582 - use correct background colors for menus, etc.
29583 - Fake pixel drawing with 1 pixel bitmaps
29585 2005-11-24 Jackson Harper <jackson@ximian.com>
29587 * MdiClient.cs: Size the scrollbars when resizing the window.
29588 - Resize the maximized windows when the client is resized
29589 * Form.cs: Make the child context available
29591 2005-11-23 Jackson Harper <jackson@ximian.com>
29593 * MdiChildContext.cs: Don't size windows if they are maximized.
29595 2005-11-23 Mike Kestner <mkestner@novell.com>
29597 * ContextMenu.cs: use MenuTracker.
29598 * Control.cs: remove menu handle usage.
29599 * Form.cs: remove menu handle usage.
29600 * Hwnd.cs: remove menu handle usage.
29601 * MainMenu.cs: Draw method moved here from MenuAPI.DrawMenuBar. Proxy
29602 motion and clicks to the new Tracker handlers.
29603 * Menu.cs: add sizing accessors, SelectedItem prop, kill CreateItems
29605 * MenuAPI.cs: refactored to combine popup and menubar event handling.
29606 Killed the MENU and MENUITEM data types and associated collections
29607 since we now keep the info on Menu and MenuItem. Expanded TRACKER into
29608 MenuTracker class that exposes the leftovers from the old MenuAPI
29609 static methods. Restructured Capture handling so that only one grab is
29610 done for the entire menu hierarchy instead of handing off grabs to
29611 submenus. Tracker now has an invisible control to Capture when active.
29612 * MenuItem.cs: add sizing accessors, kill Create
29614 * Theme.cs: remove menu handle and MENU(ITEM) usage.
29615 * ThemeWin32Classic.cs: use Menu/MenuItem sizing props instead of
29616 MENU(ITEM). remove menu handle usage, use Menu directly.
29617 * XplatUIDriver.cs: remove menu handle usage.
29618 * XplatUIOSX.cs: remove menu handle usage.
29619 * XplatUIWin32.cs: remove menu handle usage.
29620 * XplatUIX11.cs: remove menu handle usage.
29622 2005-11-22 Jackson Harper <jackson@ximian.com>
29624 * Hwnd.cs: Don't compute the menu size for
29625 DefaultClientRectangle.
29626 - Reenable menu sizes being computed for GetClienRectangle.
29627 * Form.cs: Remove comment of trechery
29629 2005-11-22 Jackson Harper <jackson@ximian.com>
29631 * Hwnd.cs: The adjustments for the menu bar are made when it is
29632 attached to the form.
29634 2005-11-19 Jackson Harper <jackson@ximian.com>
29636 * XplatUIX11.cs: Create an HGRN of the invalid area for WM_NCPAINT
29637 (just like on windows).
29639 2005-11-19 Jackson Harper <jackson@ximian.com>
29641 * MdiChildContext.cs: Handle all the buttons ourselves. We can't
29642 use real buttons anymore because they are in non client area. The
29643 one TODO here is that I need to somehow invalidate a section of
29644 the non client area.
29646 2005-11-18 Jackson Harper <jackson@ximian.com>
29648 * Control.cs: Put the enum check back in now that MDI doesnt have
29649 to use this to set border styles.
29650 * Form.cs: Only set mdi child windows borders if the handle has
29652 * MdiChildContext.cs: Don't set the InternalBorderStyle, just pass
29653 this directly on to the driver.
29654 - Get the move start position before adjusting for the titlebar
29655 height, this fixes the windows "skipping" when they are first
29658 2005-11-18 Jackson Harper <jackson@ximian.com>
29660 * XplatUIX11.cs: Just compute the mdi borders separately as they
29661 don't totally match up with normal form borders.
29663 2005-11-18 Jackson Harper <jackson@ximian.com>
29665 * Control.cs: Set WS_ styles for borders, so that the driver does
29666 not have to retrieve the control instance to figure out what kind
29667 of borders it should have.
29668 * Form.cs: Set the WS_EX_MDICHILD flag on mdi children, so the
29669 driver can know its an mdi child easily.
29670 * XplatUIX11.cs: Get the border styles and whether the window is
29671 MDI from the Styles and ExStyles params instead of having to get a
29672 control. This prevents a chicken and egg problem.
29674 2005-11-18 Jackson Harper <jackson@ximian.com>
29676 * MdiClient.cs: Fix typo so scrollbars show up correctly.
29678 2005-11-18 Jackson Harper <jackson@ximian.com>
29680 * MdiClient.cs: Calculate when to add and remove scrollbars
29682 * MdiChildContext.cs: Adjust the y position to take the titlebar
29684 - No height for FormBorderStyle.None
29686 2005-11-18 Jackson Harper <jackson@ximian.com>
29688 * Control.cs: Allow non enum values to be used for
29689 InternalBorderStyle. MDI does this to set a special border style.
29690 - New utility methods for converting points to/from client coords
29691 - Add the newly created control to the Controls collection before
29692 updating its style. This way UpdateStyle can walk the control
29693 heirarchy to find the control if needed.
29694 so I don't need to create a new Point object all the time.
29695 * Form.cs: Let MDI windows handle their border styles.
29696 - Set styles on MDI windows so the correct title style is derived.
29697 * MdiChildContext.cs: Move all the painting and window handling
29698 into the non client area.
29699 - Use correct sizing and put correct buttons on frames based on
29700 the FormBorderStyle.
29701 - Notify the mdi client about scrolling
29702 - Need to handle the buttons ourselves now, because they are all
29703 in non client areas and we can't add controls there.
29704 * MdiClient.cs: Halfway to scrolling, this implementation is
29705 somewhat broken though, we need to check to make sure other
29706 windows aren't causing scrolling before removing the bars. Also
29707 the bars need to be drawn on top, maybe I can switch implicit
29708 controls to be on top.
29709 * Hwnd.cs: caption_height and tool_caption_height are now
29710 properties of an hwnd, this way they can be set by the driver
29711 based on the type of window they are. In X11 the window manager
29712 handles the decorations so caption_height is zero unless its an
29714 - Add 3 pixel borders for MDI windows (0xFFFF).
29715 - Get rid of some code duplication, have DefaultClientRectanle
29716 just call GetClientRectangle.
29717 * XplatUIX11.cs: Pass caption_height and tool_caption_height to
29719 - Set border styles differently for mdi windows.
29720 * XplatUIOSX.cs: Pass caption_height and tool_caption_height to
29723 2005-11-15 Mike Kestner <mkestner@novell.com>
29725 * Menu.cs: when adding an item to the collection, if item is already
29726 parented, remove it from the parent.
29728 2005-11-13 Alexander Olk <alex.olk@googlemail.com>
29730 * X11DesktopColors.cs: Added KDE support
29732 2005-11-11 Peter Dennis Bartok <pbartok@novell.com>
29735 - Clipboard methods now can translate Rtf format
29736 - No longer removes clipboard contents whenever a new format is added
29737 to allow placing multiple formats on the clipboard
29738 * Clipboard.cs: Clipboard now supports getting a IDataObject and
29739 will place all formats contained in it onto the clipboard. Also
29740 now cleans the clipboard before placing a new object onto it
29742 - Implemented set_Rtf
29743 - Implemented set_SelectedRtf
29744 - Created InsertRTFFromStream() method to allow single code base
29745 for all properties and methods that insert RTF into document
29746 - Removed debug output
29748 - Fixed Delete(int) to fix up line numbers
29749 - Fixed ReplaceSelection to combine start and end line
29750 - Fixed serious DeleteChars bug that would leave the document tree
29752 - Improved DumpTree with several logic checks to detect broken
29754 - Removed debug lines
29755 - Fixed Caret.WordForward/WordBack moving code, now always also
29756 updates caret.tag (fixes crash when word-selecting across tag
29757 boundaries via keyboard)
29758 - Added Insert() method for inserting multiline text into documents
29759 - Fixed DeleteChars() calculation errors that would cause a broken
29760 tag chain with multiple tag lines
29761 - DeleteChars() no longer crashes on multi-tag lines if not all tags
29762 - Split() no longer moves caret if split is at caret location
29763 - ReplaceSelection() now updates the cursor and re-displays it
29764 - ReplaceSelection() now uses new Insert() method to avoid code
29766 - FormatText() can now handle formatting partial lines
29768 - Append now uses new TextControl.Insert() method (this avoids
29770 - Implemented Ctrl-X (Cut) (
29771 - Implemented Ctrl-C (Copy)
29772 - Implemented Ctrl-V (Paste) (Still some bugs related to screen
29773 regeneration when pasting text; roundtripping Copy&Paste within
29774 edit control still fails due to some calculation bugs in GenerateRTF)
29775 - The Delete key will now remove the current selection if it is visible
29776 * TextBox.cs: Removed debug lines
29777 * XplatUI.cs: Trigger initialization of DataFormats (which requires the
29778 driver to be initialized and can't therefore be done via a static ctor)
29780 2005-11-10 Peter Dennis Bartok <pbartok@novell.com>
29782 * TextControl.cs: Added backend code for finding char arrays and strings
29784 - Added mouse wheel scroll support
29785 - Added support for VScroll and HScroll events
29787 - Implemented all seven Find() variants
29788 - Implemented GetCharFromPosition()
29789 - Implemented GetCharIndexFromPosition()
29790 - Implemented GetLineFromIndex()
29791 - Implemented GetPositionFromCharIndex();
29792 - Implemented SaveFile for PlainText and UnicodeText
29793 - Fixed set_Font, now setting a new font applies that font to
29795 - Implemented generic Document to RTF converter
29796 - Implemented SaveFile for RichText format (still missing unicode
29797 conversion for non-ansi chars)
29798 - Implemented get_Rtf
29799 - Implemented get_SelectedRtf
29801 2005-11-09 Peter Dennis Bartok <pbartok@novell.com>
29803 * Control.cs (WndProc): Call HandleClick after having sent OnMouseUp
29804 to allow any captures to be released before triggering OnClick. This
29805 way a click handler may capture the mouse without interference.
29806 * XplatUIX11.cs: Always send mouse messages to grab window if one exists.
29807 This way we send them even though X may not allow a grab (if the window
29808 isn't visible, for example)
29810 2005-11-08 Pedro Martinez Julia <pedromj@gmail.com>
29812 * DataGridViewRowEventArgs.cs: DataGridView implementation
29813 * DataGridViewElement.cs: DataGridView implementation
29814 * DataGridViewComboBoxCell.cs: DataGridView implementation
29815 * DataGridViewDataErrorContexts.cs: DataGridView implementation
29816 * DataGridViewCellErrorTextNeededEventArgs.cs: DataGridView implementation
29817 * DataGridViewColumnHeadersHeightSizeMode.cs: DataGridView implementation
29818 * ImageLayout.cs: DataGridView implementation
29819 * DataGridViewComboBoxColumn.cs: DataGridView implementation
29820 * DataGridViewCellMouseEventHandler.cs: DataGridView implementation
29821 * DataGridViewSelectionMode.cs: DataGridView implementation
29822 * IDataGridViewEditingControl.cs: DataGridView implementation
29823 * DataGridViewSortCompareEventHandler.cs: DataGridView implementation
29824 * DataGridViewCellStyleContentChangedEventHandler.cs: DataGridView implementation
29825 * DataGridViewAutoSizeModeEventHandler.cs: DataGridView implementation
29826 * DataGridViewColumnStateChangedEventHandler.cs: DataGridView implementation
29827 * DataGridViewColumnSortMode.cs: DataGridView implementation
29828 * DataGridView.cs: DataGridView implementation
29829 * DataGridViewRowStateChangedEventHandler.cs: DataGridView implementation
29830 * DataGridViewRowPostPaintEventArgs.cs: DataGridView implementation
29831 * DataGridViewDataErrorEventArgs.cs: DataGridView implementation
29832 * Padding.cs: DataGridView implementation
29833 * DataGridViewCellParsingEventArgs.cs: DataGridView implementation
29834 * DataGridViewCellStateChangedEventHandler.cs: DataGridView implementation
29835 * DataGridViewRowEventHandler.cs: DataGridView implementation
29836 * DataGridViewCellPaintingEventHandler.cs: DataGridView implementation
29837 * DataGridViewCellFormattingEventHandler.cs: DataGridView implementation
29838 * DataGridViewButtonCell.cs: DataGridView implementation
29839 * DataGridViewCellStyleContentChangedEventArgs.cs: DataGridView implementation
29840 * DataGridViewEditMode.cs: DataGridView implementation
29841 * DataGridViewCellValueEventArgs.cs: DataGridView implementation
29842 * DataGridViewRowCancelEventArgs.cs: DataGridView implementation
29843 * DataGridViewRowHeadersWidthSizeMode.cs: DataGridView implementation
29844 * DataGridViewCheckBoxColumn.cs: DataGridView implementation
29845 * DataGridViewCellToolTipTextNeededEventHandler.cs: DataGridView implementation
29846 * DataGridViewAutoSizeColumnsMode.cs: DataGridView implementation
29847 * DataGridViewCellEventHandler.cs: DataGridView implementation
29848 * DataGridViewEditingControlShowingEventHandler.cs: DataGridView implementation
29849 * DataGridViewCellStyleConverter.cs: DataGridView implementation
29850 * DataGridViewSelectedRowCollection.cs: DataGridView implementation
29851 * DataGridViewBindingCompleteEventHandler.cs: DataGridView implementation
29852 * DataGridViewColumnEventArgs.cs: DataGridView implementation
29853 * DataGridViewRowHeightInfoPushedEventHandler.cs: DataGridView implementation
29854 * DataGridViewRowContextMenuStripNeededEventHandler.cs: DataGridView implementation
29855 * QuestionEventArgs.cs: DataGridView implementation
29856 * IDataGridViewEditingCell.cs: DataGridView implementation
29857 * DataGridViewTriState.cs: DataGridView implementation
29858 * DataGridViewColumnDesignTimeVisibleAttribute.cs: DataGridView implementation
29859 * DataGridViewCellStateChangedEventArgs.cs: DataGridView implementation
29860 * DataGridViewColumnCollection.cs: DataGridView implementation
29861 * DataGridViewCellValueEventHandler.cs: DataGridView implementation
29862 * DataGridViewRowDividerDoubleClickEventHandler.cs: DataGridView implementation
29863 * DataGridViewCellFormattingEventArgs.cs: DataGridView implementation
29864 * DataGridViewColumn.cs: DataGridView implementation
29865 * DataGridViewCellBorderStyle.cs: DataGridView implementation
29866 * DataGridViewCellContextMenuStripNeededEventHandler.cs: DataGridView implementation
29867 * DataGridViewCellValidatingEventArgs.cs: DataGridView implementation
29868 * DataGridViewRow.cs: DataGridView implementation
29869 * DataGridViewImageCellLayout.cs: DataGridView implementation
29870 * DataGridViewImageCell.cs: DataGridView implementation
29871 * DataGridViewTopLeftHeaderCell.cs: DataGridView implementation
29872 * DataGridViewCheckBoxCell.cs: DataGridView implementation
29873 * DataGridViewHeaderCell.cs: DataGridView implementation
29874 * DataGridViewCellErrorTextNeededEventHandler.cs: DataGridView implementation
29875 * DataGridViewRowHeightInfoPushedEventArgs.cs: DataGridView implementation
29876 * DataGridViewAutoSizeColumnsModeEventHandler.cs: DataGridView implementation
29877 * DataGridViewTextBoxColumn.cs: DataGridView implementation
29878 * QuestionEventHandler.cs: DataGridView implementation
29879 * DataGridViewCellStyleScopes.cs: DataGridView implementation
29880 * DataGridViewSortCompareEventArgs.cs: DataGridView implementation
29881 * DataGridViewCellContextMenuStripNeededEventArgs.cs: DataGridView implementation
29882 * DataGridViewCell.cs: DataGridView implementation
29883 * DataGridViewCellEventArgs.cs: DataGridView implementation
29884 * DataGridViewClipboardCopyMode.cs: DataGridView implementation
29885 * DataGridViewCellStyle.cs: DataGridView implementation
29886 * DataGridViewColumnHeaderCell.cs: DataGridView implementation
29887 * DataGridViewRowPrePaintEventHandler.cs: DataGridView implementation
29888 * DataGridViewRowCancelEventHandler.cs: DataGridView implementation
29889 * TextFormatFlags.cs: DataGridView implementation
29890 * DataGridViewCellToolTipTextNeededEventArgs.cs: DataGridView implementation
29891 * DataGridViewDataErrorEventHandler.cs: DataGridView implementation
29892 * DataGridViewAdvancedCellBorderStyle.cs: DataGridView implementation
29893 * DataGridViewCellPaintingEventArgs.cs: DataGridView implementation
29894 * DataGridViewButtonColumn.cs: DataGridView implementation
29895 * DataGridViewRowsRemovedEventArgs.cs: DataGridView implementation
29896 * HandledMouseEventArgs.cs: DataGridView implementation
29897 * DataGridViewCellParsingEventHandler.cs: DataGridView implementation
29898 * DataGridViewColumnDividerDoubleClickEventHandler.cs: DataGridView implementation
29899 * DataGridViewCellMouseEventArgs.cs: DataGridView implementation
29900 * DataGridViewAutoSizeRowsMode.cs: DataGridView implementation
29901 * DataGridViewRowCollection.cs: DataGridView implementation
29902 * DataGridViewAdvancedBorderStyle.cs: DataGridView implementation
29903 * DataGridViewCellCancelEventHandler.cs: DataGridView implementation
29904 * DataGridViewHitTestType.cs: DataGridView implementation
29905 * DataGridViewAutoSizeModeEventArgs.cs: DataGridView implementation
29906 * DataGridViewColumnStateChangedEventArgs.cs: DataGridView implementation
29907 * DataGridViewColumnEventHandler.cs: DataGridView implementation
29908 * DataGridViewRowDividerDoubleClickEventArgs.cs: DataGridView implementation
29909 * DataGridViewAutoSizeRowMode.cs: DataGridView implementation
29910 * DataGridViewRowHeightInfoNeededEventArgs.cs: DataGridView implementation
29911 * DataGridViewRowsDeletedEventArgs.cs: DataGridView implementation
29912 * DataGridViewTextBoxEditingControl.cs: DataGridView implementation
29913 * DataGridViewContentAlignment.cs: DataGridView implementation
29914 * DataGridViewRowPostPaintEventHandler.cs: DataGridView implementation
29915 * DataGridViewComboBoxEditingControl.cs: DataGridView implementation
29916 * DataGridViewCellValidatingEventHandler.cs: DataGridView implementation
29917 * DataGridViewSelectedColumnCollection.cs: DataGridView implementation
29918 * DataGridViewPaintParts.cs: DataGridView implementation
29919 * DataGridViewCellCollection.cs: DataGridView implementation
29920 * DataGridViewRowsAddedEventArgs.cs: DataGridView implementation
29921 * DataGridViewImageColumn.cs: DataGridView implementation
29922 * DataGridViewRowsRemovedEventHandler.cs: DataGridView implementation
29923 * DataGridViewElementStates.cs: DataGridView implementation
29924 * DataGridViewRowHeightInfoNeededEventHandler.cs: DataGridView implementation
29925 * DataGridViewColumnDividerDoubleClickEventArgs.cs: DataGridView implementation
29926 * DataGridViewRowPrePaintEventArgs.cs: DataGridView implementation
29927 * DataGridViewRowStateChangedEventArgs.cs: DataGridView implementation
29928 * DataGridViewEditingControlShowingEventArgs.cs: DataGridView implementation
29929 * DataGridViewCellCancelEventArgs.cs: DataGridView implementation
29930 * DataGridViewRowHeaderCell.cs: DataGridView implementation
29931 * DataGridViewBindingCompleteEventArgs.cs: DataGridView implementation
29932 * DataGridViewTextBoxCell.cs: DataGridView implementation
29933 * DataGridViewBand.cs: DataGridView implementation
29934 * DataGridViewAutoSizeColumnModeEventArgs.cs: DataGridView implementation
29935 * DataGridViewHeaderBorderStyle.cs: DataGridView implementation
29936 * DataGridViewRowsAddedEventHandler.cs: DataGridView implementation
29937 * DataGridViewAutoSizeColumnMode.cs: DataGridView implementation
29938 * DataGridViewAutoSizeColumnModeEventHandler.cs: DataGridView implementation
29939 * DataGridViewAutoSizeColumnsModeEventArgs.cs: DataGridView implementation
29940 * DataGridViewRowErrorTextNeededEventHandler.cs: DataGridView implementation
29941 * DataGridViewSelectedCellCollection.cs: DataGridView implementation
29942 * DataGridViewRowContextMenuStripNeededEventArgs.cs: DataGridView implementation
29943 * DataGridViewRowErrorTextNeededEventArgs.cs: DataGridView implementation
29944 * DataGridViewComboBoxDisplayStyle.cs: DataGridView implementation
29946 2005-11-08 Peter Dennis Bartok <pbartok@novell.com>
29948 * ThemeWin32Classic.cs:
29949 - Draw the outside focus rectangle around buttons
29950 - Use CPDrawFocusRectangle to draw focus rectangles until Cairo
29951 doesn't use end caps for every dash of a line anymore. This
29952 workaround ignores the forecolor.
29954 2005-11-08 Kornél Pál <kornelpal@hotmail.com>
29956 * ImageList.cs: Don't use ArgbColor with LayoutKind.Explicit as it isn't
29959 2005-11-07 Jackson Harper <jackson@ximian.com>
29961 * X11Dnd.cs: Set the X/Y positions on the DragEventArgs correctly.
29963 2005-11-07 Jackson Harper <jackson@ximian.com>
29965 * ScrollableControl.cs: Calculate the maximum and change vars
29966 (more) correctly so that scrollbars appear as a sensible size.
29968 2005-11-04 Jackson Harper <jackson@ximian.com>
29970 * TreeNodeCollection.cs: Refresh when nodes are cleared from the
29972 * TreeView.cs: When the tree is sorted null out the top_node so
29973 that it is recalculated.
29974 - Use dotted lines instead of dashed lines to match MS better.
29976 2005-11-04 Jordi Mas i Hernandez <jordimash@gmail.com>
29979 - Implements key search for items. Useful when browsing files with FileDialog
29980 - When changing view mode or when clear the items reset scrollbar positions
29982 2005-11-04 Jackson Harper <jackson@ximian.com>
29984 * CurrencyManager.cs: Implement the MetaDataChanged event, the
29985 Reset method, and the CheckEmpty. CheckEmpty is just a total guess
29986 as to what the method may do as there is no real way of creating a
29987 derived CurrencyManager and calling the method.
29989 2005-11-03 Jackson Harper <jackson@ximian.com>
29991 * ThemeWin32Classic.cs: Implement ownerdrawing in the tab control
29992 * TabControl.cs: Add Ownerdrawing bits, add the UpdateTabSelection
29993 method which seems to just be used internally to refresh the tabs.
29995 2005-11-03 Jackson Harper <jackson@ximian.com>
29997 * TabControl.cs: Implement the remove method. Fix some broken
30000 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
30002 * DateTimePicker.cs:
30003 - Added missing DateTimePickerAccessibleObject class
30004 - Added missing events
30005 - Added OnFontChanged method
30006 * Form.cs: Added missing attributes
30007 * TreeView.cs: Added missing attributes
30009 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
30011 * GridItemCollection.cs: Fix signatures
30013 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
30015 * XplatUI.cs: Updated build rev/date
30016 * ComboBox.cs, DataGridTextBoxColumn.cs Control.cs,
30017 DataGridTableStyle.cs, DataGrid.cs, DateTimePicker.cs: Signature fixes
30018 * Application.cs: Trigger context-specific ExitThread events
30020 2005-11-03 Jackson Harper <jackson@ximian.com>
30024 * GridTableStylesCollection.cs:
30029 * MonthCalendar.cs: Signature fixes
30031 2005-11-03 Jackson Harper <jackson@ximian.com>
30033 * TreeNodeCollection.cs: Remove should not be virtual.
30034 * TreeView.cs: Implement the last of the missing methods.
30036 2005-11-03 Jackson Harper <jackson@ximian.com>
30038 * TreeNodeConverter.cs: Implement to get off my class-status back.
30040 2005-11-03 Jackson Harper <jackson@ximian.com>
30042 * TreeView.cs: Hookup the bits for drag and drop.
30043 * TreeNode.cs: Don't cache the tree_view or index anymore, now
30044 that nodes can be moved from tree to tree easily this just causes
30045 all sorts of problems.
30046 * TreeNodeCollection: Don't need to give treenodes an index and
30047 treeview anymore when they are added, these are computed on the
30048 fly. Also make sure to remove a node before its added.
30050 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
30053 - Added CaretSelection enum
30054 - Added comparison methods to Marker struct, makes selection code
30056 - Added SelectionStart and SelectionEnd as 'moveable' location for
30057 the CaretDirection enum and handler
30058 - Added selection_prev variable to track optimized invalidation for
30059 word and line selection
30060 - Added SelectionVisible property (returns true if there is a valid
30062 - Switched CaretHasFocus to only display the caret if there is no
30064 - Avoiding StringBuilder.ToString to retrieve a single char, instead
30065 using the direct character index; should be much faster
30066 - Added various conditional debug statements
30067 - Fixed invalidation calculation for selection ranges
30068 - Added ExpandSelection() method to support word and line selection
30069 - Switched SetSelectionToCaret to use new Marker compare overloads
30070 - Added central IsWordSeparator() method to determine word
30071 separators/whitespace and FindWordSeparator() to streamline common
30072 usage of IsWordSeparator()
30074 - Removed unneeded grabbed variable, it was just mirroring
30076 - No longer firing OnTextChanged event when Text setter is called,
30077 since the base will fire the event for us
30078 - Added handling of Ctrl-Up/Down selection
30079 - Added handling of Shift-Cursorkey selection
30080 - Added handling for Ctrl-Delete and Ctrl-Backspace to remove
30082 - Added handling of Shift and Ctrl-Shift-Home/End selection
30083 - Removed some debug output
30084 - Added handling for single/double/tripple-click to place caret/
30085 select word/select line respectively (Fixes bug #76031)
30086 - Added support for drag expansion of word/line selection
30087 * RichTextBox.cs: Handle GotFocus event to trigger redrawing of
30090 2005-11-02 Jackson Harper <jackson@ximian.com>
30092 * X11Dnd.cs: If the drag is going to and from a MWF window just
30093 copy the data instead of sending it out through the X Selection
30096 2005-11-02 Jackson Harper <jackson@ximian.com>
30099 * XplatUIX11.cs: When in a drag we don't want motion notify
30100 messages to get passed on to the other controls. This prevents
30101 mouse move messages from showing up in the drag source.
30103 2005-11-02 Jackson Harper <jackson@ximian.com>
30105 * X11Dnd.cs: Remove unneeded call to XAllowEvents. Make sure that
30106 the correct button is release to end a drag.
30107 * XplatUIX11.cs: Make the button state internal so the drag system
30108 can access it. Dragging needs to know about all button releases,
30109 not just left button.
30111 2005-11-02 Miguel de Icaza <miguel@novell.com>
30113 * Form.cs (Icon): If the icon is null, reset the icon to the
30116 * Cursor.cs: When writing the AND-mask bitmap do not include the
30117 number of colors, but hardcode those to two (black and white),
30118 fixes the loading of color cursors (Paint Dot Net).
30120 * Form.cs: To debug, allow MONO_MWF_SCALING=disable variable to
30121 turn off autoscaling.
30123 * Cursor.cs: Allow resource type to be 1 or 2 (from ImageMagic).
30125 2005-11-02 Jackson Harper <jackson@ximian.com>
30127 * X11Dnd.cs: Make sure to send a status message if the pointer
30128 enters a control that can not accept a drop, otherwise the cursor
30129 isn't updated correctly. Also tried to compress the lines of code
30132 2005-11-02 Jackson Harper <jackson@ximian.com>
30134 * X11Dnd.cs: Change cursors based on drag action. Also attempt to
30135 set actions correctly. This isn't perfect as XDND and win32 have
30136 some differences on how you allow actions. I'll clear this up by
30137 adding a path for drag from MWF to MWF windows.
30138 * XplatUIX11.cs: Hook into the dnd system.
30140 2005-11-02 Jordi Mas i Hernandez <jmas@softcatala.org>
30142 * ListView.cs: Fixes scroll bar visibility. Hide them if they were
30143 previously shown but they are no longer need it. Very obvious when
30144 browsing files with FileDialog.
30146 2005-11-01 Peter Dennis Bartok <pbartok@novell.com>
30148 * Control.cs: We always need to call OnPaintBackground. We pretty much
30149 ignore AllPaintingInWmPaint and always do the painting there, whether
30150 it's set or not, since we always ignore the WM_ERASEBKGND message
30151 (which we don't generate on X11). This fixes #76616.
30152 * Panel.cs: Removed unneeded background painting. This happens properly
30153 in Control.cs already
30155 2005-10-31 Mike Kestner <mkestner@novell.com>
30157 * Menu.cs: Add items to collection before setting their index.
30158 * MenuItem.cs : add range checking with ArgumentException like MS.
30161 2005-10-31 Jackson Harper <jackson@ximian.com>
30163 * ListBox.cs: Invalidate if the area is visible at all not just
30164 contained in the visible rect. Fixes unselection of semi visible
30167 2005-10-31 Jackson Harper <jackson@ximian.com>
30169 * Control.cs: Consistently name the dnd methods. Make them
30170 internal so we can override them to match some MS behavoir
30172 * Win32DnD.cs: Use the new consistent names.
30174 2005-10-31 Jackson Harper <jackson@ximian.com>
30176 * TreeView.cs: Don't draw the selected node when we lose focus.
30178 2005-10-31 Jackson Harper <jackson@ximian.com>
30180 * X11Dnd.cs: We still need to reset the state even though a full
30181 reset isn't being done, otherwise status's still get sent all over
30184 2005-10-31 Jackson Harper <jackson@ximian.com>
30186 * Control.cs: Make the dnd_aware flag internal so the dnd
30187 subsystem can check it. Catch exceptions thrown in dnd handlers to
30189 * Hwnd.cs: Add a flag for whether or not a window is dnd aware.
30190 * X11Dnd.cs: Handle null data in the converters. Set the XDND
30191 version when sending a XdndEnter. Use the control/hwnd dnd_aware
30192 flags to reduce the number of dnd enters/status's sent.
30194 2005-10-31 Jackson Harper <jackson@ximian.com>
30196 * X11Dnd.cs: Don't need the sizeof here. Patch by Jordi Mas.
30198 2005-10-31 Jordi Mas i Hernandez <jordi@ximian.com>
30200 * PictureBox.cs: Fixes 76512
30202 2005-10-28 Jackson Harper <jackson@ximian.com>
30204 * X11Dnd.cs: Early implementation to support winforms being a drag
30205 source for data on X11. Also restructured the converters so they
30206 can go both ways now.
30207 * XplatUIX11.cs: Tie ins to the the Dnd stuff.
30209 2005-10-27 Peter Dennis Bartok <pbartok@novell.com>
30211 * XplatUIX11.cs: Fixed FIXME - implemented ASCII encoding for XA_STRING
30214 2005-10-27 Jackson Harper <jackson@ximian.com>
30216 * TreeNode.cs: Implement serialization so my DnD examples will work.
30218 2005-10-24 Kornél Pál <kornelpal@hotmail.com>
30220 * ButtonBase.cs, ListView.cs, NotifyIcon.cs, PictureBox.cs, ToolBar.cs,
30221 TreeView.cs: Don't dispose objects that are not owned.
30223 2005-10-24 Peter Dennis Bartok <pbartok@novell.com>
30225 * Cursor.cs: Defaulting the Current cursor to Cursors.Default. We
30226 should retrieve the current cursor and report that, but XplatUI
30227 doesn't (yet) have an interface for that (and I'm not sure I even
30229 * XplatUIWin32.cs: Fixed override behaviour. The override is temporary,
30230 until any message loop processing is done (and the WM_SETCURSOR
30231 replaces the cursor to the proper one)
30233 - Fixed override behaviour, we can't set the cursor globally on X11,
30234 just for our windows.
30235 - Invalidating the System.Drawing X11 display handle when we are
30237 * Control.cs: Fix to make csc happy
30239 2005-10-23 Peter Dennis Bartok <pbartok@novell.com>
30242 - get_Text: Add last line (without trailing newline) to returned
30243 value (Fixes 76212)
30244 - get_TextLength: Count last line in returned length
30245 - ToString: Call Text property instead of duplicating code
30247 2005-10-23 Kornél Pál <kornelpal@hotmail.com>
30249 * ImageList.cs: Dispose ImageAttributes objects.
30251 2005-10-22 Kornél Pál <kornelpal@hotmail.com>
30253 * ImageList.cs: Use attribute constructors with less arguments where
30256 2005-10-22 Kornél Pál <kornelpal@hotmail.com>
30258 * ImageList.cs: Added lastKeyIndex field and use in IndexOfKey.
30259 Use typeof instead of strings when assembly is referenced. Added
30260 some more comments.
30262 2005-10-21 Jackson Harper <jackson@ximian.com>
30264 * ListView.cs: Raise a double click event. Also tried to somewhat
30265 fix when the selectedindexchanged event is raised. Its still
30268 2005-10-21 Jackson Harper <jackson@ximian.com>
30270 * TreeView.cs: New method to invalidate the plus minus area of a
30271 node without invalidating the whole node (maybe this can be used
30272 in some more places).
30273 * TreeNodeCollection.cs: When adding to an empty node we need to
30274 invalidate its plus minus area so the little block shows up.
30276 2005-10-21 Jackson Harper <jackson@ximian.com>
30278 * TreeView.cs: Make sure that when we invalidate a node the bounds
30279 are big enough to cover the selected box and the focus
30280 rectangle. Use a different colour for the lines connecting nodes
30281 so they show up with all themes.
30283 2005-10-21 Peter Dennis Bartok <pbartok@novell.com>
30285 * NativeWindow.cs: Don't call anything that could call into the driver,
30286 we might be on a different thread.
30288 2005-10-21 Peter Dennis Bartok <pbartok@novell.com>
30290 * Control.cs(Dispose): Since Dispose might run on a different thread,
30291 make sure that we call methods that could call into the driver via
30292 invoke, to avoid thread issues
30294 2005-10-21 Peter Dennis Bartok <pbartok@novell.com>
30296 * XplatUI.cs: Removed finalizer
30297 * XplatUIX11.cs: Removed Destructor, was causing crashes due to X11
30298 not allowing to be called on the finalizer thread.
30300 2005-10-21 Kornél Pál <kornelpal@hotmail.com>
30303 - Reverted r51889 and r51891.
30304 - Added ImageListItem class that stores unmodified image items and image
30305 properties required to create list images until handle is created.
30306 - Added AddItem and moved image creation logic to AddItemInternal.
30307 - Added CreateHandle method that creates images based on unmodified items.
30308 - Added DestroyHandle that changes state to store unmodified items.
30309 - Add and AddStrip methods no more create handle.
30310 - ReduceColorDepth has no return value.
30311 - Dispose destroys handle.
30312 - Modified other methods to reflect the above changes.
30313 - Implemented key support.
30314 - Added profile 2.0 members and attributes.
30315 - Added private Reset and ShouldSerialize methods that provide the same
30316 behavior as MS.NET but the Visual Studio .NET designer seems to ignore
30317 them as they are private.
30318 - Added some more comments about implementation details.
30320 2005-10-21 Jordi Mas i Hernandez <jordi@ximian.com>
30322 * DataGrid.cs: Adds support for vertical scrolling using the mousewheel
30324 2005-10-21 Jordi Mas i Hernandez <jordi@ximian.com>
30326 * Binding.cs: No PushData/PullData if there is no binding (fixes crash)
30328 2005-10-21 Jordi Mas i Hernandez <jordi@ximian.com>
30330 * DataGridDrawingLogic.cs: Fixes column hit calcultation
30331 * DataGridColumnStyle.cs: Remove debug message
30333 2005-10-20 Jackson Harper <jackson@ximian.com>
30335 * TreeView.cs: We can always get input keys regardless of whether
30336 or not editing is enabled. They are used for navigation.
30338 2005-10-20 Jackson Harper <jackson@ximian.com>
30340 * TreeNode.cs: Use the viewport rect for determining if a node
30341 needs to be moved for visibility. Don't use Begin/End edit. This
30342 calls a full refresh when its done.
30343 * TreeView.cs: New SetBottom works correctly. Make the viewport
30344 rect property internal so the treenodes can see it. When clicking
30345 on a node we need to ensure that its visible because it might just
30346 be partly visible when clicked.
30348 2005-10-20 Jackson Harper <jackson@ximian.com>
30350 * TreeNodeCollection.cs: Remove debug code.
30352 2005-10-20 Jordi Mas i Hernandez <jordi@ximian.com>
30354 * Datagrid.cs: Implements column sorting in Datagrid
30355 * DataGridColumnStyle.cs: Implements column sorting in Datagrid
30357 2005-10-20 Jackson Harper <jackson@ximian.com>
30359 * TreeNodeCollection.cs: Remove items properly. Update the correct
30360 area after removing them.
30362 2005-10-20 Jordi Mas i Hernandez <jordi@ximian.com>
30364 * Datagrid.cs: Should not call base.OnPaintBackground
30366 2005-10-20 Peter Dennis Bartok <pbartok@novell.com>
30368 * XplatUIX11.cs (GetMessage):
30369 - Now properly calculates NC_xBUTTONDOWN coordinates off the whole
30370 window instead of client window
30371 - Now properly calculates NC_xBUTTONUP message coordinates
30372 - ScreenToMenu now properly calculates it's coordinates of whole
30373 window, since menus are in the whole window, not in the client
30375 - Added WholeToScreen coordinate translation method
30377 2005-10-20 Peter Dennis Bartok <pbartok@novell.com>
30379 * XplatUIX11.cs (GetMessage): Don't return in situations where we don't
30380 want to return a message, loop back to the beginning of the function
30381 and grab the next real message to process instead.
30383 2005-10-20 Peter Dennis Bartok <pbartok@novell.com>
30385 * Splitter.cs: Properly set limits if no filler control is used
30387 2005-10-19 Jackson Harper <jackson@ximian.com>
30389 * ColorDialog.cs: Don't show the help button if it is not enabled
30390 instead of disabling it (this is what MS does). Don't create the
30391 panel until the dialog is run, otherwise the vars (such as
30392 ShowHelp) are not set yet.
30394 2005-10-19 Jackson Harper <jackson@ximian.com>
30396 * TreeView.cs: Implement Begin/EndEdit more correctly so refreshes
30397 are reduced when adding nodes.
30399 * TreeNodeCollection.cs: Use UpdateNode instead of refreshing the
30402 2005-10-19 Jackson Harper <jackson@ximian.com>
30404 * FolderBrowserDialog.cs: End editing our treeview so the window
30405 actually gets refreshed.
30407 2005-10-18 Peter Dennis Bartok <pbartok@novell.com>
30409 * Control.cs: Fixed logic flip on when to call OnPaintBackground.
30410 Obsoleted handling of WM_ERASEBKGND, now always draws our background
30413 2005-10-18 Jordi Mas i Hernandez <jordi@ximian.com>
30415 * MenuAPI.cs: Returns after Hidding window
30416 * XplatUIX11.cs: Added TODO found while debugging menu issues
30418 2005-10-18 Peter Dennis Bartok <pbartok@novell.com>
30420 * XplatUIX11.cs: Do not re-map the whole window when it's size
30421 becomes non-zero unless it's supposed to be actually visible
30423 2005-10-18 Jackson Harper <jackson@ximian.com>
30425 * TreeView.cs: We don't need to keep a count anymore.
30426 * TreeNodeCollection.cs: Fix off by one in RemoveAt, Insert can
30427 use the Grow method.
30429 2005-10-18 Jackson Harper <jackson@ximian.com>
30431 * TreeNodeCollection.cs: Insert is not supported on arrays, so
30432 implement it manually here.
30434 2005-10-18 Jackson Harper <jackson@ximian.com>
30436 * ImageList.cs: Dont kill the list when the colour depth is
30437 changed, just change the colour depth of all the images.
30438 - Same goes for setting the image size. Just resize them all
30439 instead of killing the list softly.
30441 2005-10-18 Jackson Harper <jackson@ximian.com>
30443 * Control.cs: Don't invalidate empty rectangles.
30445 2005-10-18 Jordi Mas i Hernandez <jordi@ximian.com>
30448 - Adds checked item to the Checked/Item lists (where empty before)
30449 - Do not add items to the Selected lists if they are already present
30451 - Fixes IsFixedSize, SyncRoot, IsReadOnly in many collections
30452 - When deleting items make sure that we delete them for the Selected
30453 and Checked list also.
30455 2005-10-18 Jordi Mas i Hernandez <jordi@ximian.com>
30457 * Label.cs: Dispose objects no longer used
30458 * ThemeWin32Classic.cs: Dispose objects no longer used
30460 2005-10-18 Jackson Harper <jackson@ximian.com>
30462 * TabControl.cs: Don't refresh the whole control when the tabs are
30463 scrolled, we just need to refresh the tab area.
30465 2005-10-17 Jackson Harper <jackson@ximian.com>
30467 * XplatUIX11.cs: Compress code a little bit. Only calculate the
30468 after handle when we need it.
30470 2005-10-17 Peter Dennis Bartok <pbartok@novell.com>
30472 * Control.cs: When the parent size changes, recalculate anchor
30473 positions. Partial fix for #76462
30475 2005-10-17 Peter Dennis Bartok <pbartok@novell.com>
30477 * ThemeWin32Classic.cs: Make sure the picturebox has it's background
30478 drawn. Fixes #76462
30480 2005-10-17 Jackson Harper <jackson@ximian.com>
30482 * MonthCalendar.cs: Don't create the numeric up down until our
30483 handle is created. Otherwise our handle is created in the
30484 constructor and we don't know if we are a WS_CHILD or WS_POPUP
30487 2005-10-17 Jackson Harper <jackson@ximian.com>
30489 * TreeView.cs: Merge in patch by Rafael Teixeira to align strings
30492 2005-10-17 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
30493 * TreeNode.cs : small logical fix (was using local var instead of field)
30495 2005-10-17 Jordi Mas i Hernandez <jordi@ximian.com>
30497 * ThemeWin32Classic.cs: Fixes vert/horz scrollbar colours
30499 2005-10-17 Jordi Mas i Hernandez <jordi@ximian.com>
30501 * ThemeWin32Classic.cs: Fixes focus drawing in for non-flat/popup buttons
30503 2005-10-16 Peter Dennis Bartok <pbartok@novell.com>
30506 - Re-implemented anchoring code. My first version was really broken.
30507 This fixes bug #76033. Unlike the previous implementation we will
30508 no longer have round errors since all numbers are calculated from
30509 scratch every time. Removed various anchor-related obsolete vars.
30510 - InitLayout no longer causes layout event firing and layout to be
30513 2005-10-16 Jackson Harper <jackson@ximian.com>
30515 * Hwnd.cs: Compute invalid area correctly (fixes my last commit
30518 2005-10-16 Jackson Harper <jackson@ximian.com>
30520 * TabControl.cs: Remove debug code.
30522 2005-10-16 Jackson Harper <jackson@ximian.com>
30524 * XEventQueue.cs: Increase the default queue size (very simple
30525 apps needed to grow the queue).
30526 * Hwnd.cs: No finalizer so we don't need to suppress
30527 finalization. Compute the invalid area manually so a new rectangle
30528 does not newto be created.
30529 * ScrollableControl.cs: Don't set any params (otherwise visibility
30530 isn't set correctly).
30531 * MdiChildContext.cs: New constructor takes the mdi parent so it
30532 doesn't have to be computed and avoids a crash on windows. Draw
30533 the window icon properly, and allow the text to be seen.
30534 * Form.cs: Use new MdiChildContext constructor. Make sure the
30535 child context isn't null in wndproc.
30536 * TabControl.cs: Don't set focus, this is muddling keyboard
30537 behavoir. Expand the tab rows when a window size increase will
30538 allow extra tabs to be seen. Don't allow tabs smaller than the
30539 width of a window to be scrolled out of view.
30541 * TreeView.cs: Use measure string to calculate a nodes width, the
30542 width is cached and only updated when the text or the font is
30543 changed. Don't check for expand/collapse clicks on the first level
30544 nodes if root lines are disabled.
30546 2005-10-16 Ritvik Mayank <mritvik@novell.com>
30548 * TextBoxBase.cs: Fixes #76352 (passing tab key in a multiline textbox)
30550 2005-10-16 Jordi Mas i Hernandez <jordi@ximian.com>
30552 * DataGridBoolColumn.cs: fixes warning
30554 2005-10-16 Jordi Mas i Hernandez <jordi@ximian.com>
30556 * ControlPaint.cs: Fixes methods Dark, DarkDark, Light, LightLight
30557 to match more to match more precisely the MS Net behavior
30559 2005-10-13 Peter Dennis Bartok <pbartok@novell.com>
30561 * Hwnd.cs: Added field to track if window is mapped
30563 - Unmap windows if they become 0-size, re-map when
30564 they are >0 again; fixes #76035
30565 - Re-set our error handler after initializing X11Desktop
30566 to override any error handlers Gtk or whatever was called
30569 2005-10-13 Peter Dennis Bartok <pbartok@novell.com>
30571 * CheckedListBox.cs: Removed unused vars
30572 * ListView.cs: Fixed signatures
30573 * RichTextBox.cs: Removed unused vars
30574 * TextBoxBase.cs: Removed unused vars
30575 * XplatUIWin32.cs: Removed unused vars
30576 * XplatUIX11.cs: Removed unused vars
30577 * XplatUI.cs: Updated version and date to latest published
30579 2005-10-13 Peter Dennis Bartok <pbartok@novell.com>
30581 * Cursor.cs: Added private .ctor to work around a bug in
30582 resourceset (Thanks to Geoff Norton for the help on this)
30583 * SplitterEventArgs.cs: Made fields accessible so we don't
30584 waste boatloads of objects and can reuse the same one
30586 * XplatUIWin32.cs(DrawReversibleLine): Now also considers
30587 any captions and borders when generating screen coordinates
30588 * Splitter.cs: Reimplemented control, now fully complete, uses
30589 rubberband drawing, supports and obeys all properties, has
30592 2005-10-13 Miguel de Icaza <miguel@novell.com>
30594 * Form.cs (Form): Setup default values for autoscale and
30595 autoscale_base_size; Make these instance variables, not static
30598 (OnLoad): on the first load, adjust the size of the form.
30600 2005-10-13 Peter Dennis Bartok <pbartok@novell.com>
30602 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added
30603 width argument to DrawReversibleRectangle()
30604 * XplatUIWin32.cs, XplatUIX11.cs:
30605 - Implemented width for DrawReversibleRectangle()
30606 - Added logic to DrawReversibleRectangle that recognizes a zero
30607 width or height and only draws a line in that situation
30609 2005-10-12 Peter Dennis Bartok <pbartok@novell.com>
30611 * XplatUI.cs, XplatUIDriver.cs: Added GetAutoScaleSize()
30612 * XplatUIOSX.cs: Stubbed GetAutoScaleSize() method
30613 * XplatUIWin32.cs, XplatUIX11.cs: Implemented GetAutoScaleSize()
30614 method (it uses our FosterParent window to get a graphics context)
30616 2005-10-12 Peter Dennis Bartok <pbartok@novell.com>
30618 * XplatUI.cs, XplatUIDriver.cs: Removed EraseWindowBackground
30619 and SetWindowBackground methods
30621 - Setting proper ControlStyles
30622 - We no longer call XplatUI.SetWindowBackground and XplatUI.
30623 EraseWindowBackground, instead we draw the window background
30624 ourselves in PaintControlBackground. This behaviour is
30625 required to match MS, where, when OnPaintBackground is not
30626 called, the background is not drawn.
30627 - Removed unneeded Refresh() in set_Text
30628 * Hwnd.cs: Dropped the ErasePending support. No longer needed
30630 - Created DeriveStyles method to translate from CreateParams to
30631 FormBorderStyle and TitleStyle, also handles BorderStyle (which
30632 matches FormBorderStyle enum values)
30633 - Consolidated SetHwndStyles and CalculateWindowRect border/title
30634 style calculations into single DeriveStyles method
30635 - Fixed CreateWindow to (finally) use Gravity. This prevents X11
30636 from redrawing the whole window on any resize or expose.
30637 - Fixed CreateWindow usage of SetWindowValuemask. Before not
30638 all styles were applied to our whole/client window appropriately
30639 - Removed EraseWindowBackground() and SetWindowBackground() methods
30640 - Removed handling of WM_ERASEBKGND message from DefWndProc, we
30641 no longer clear/redraw the background through X
30642 - Removed handling of erase_pending bit, we have no use for it (or
30645 - Removed generation and handling of WM_ERASEBKGND message
30646 - Removed EraseWindowBackground() and SetWindowBackground() methods
30647 - Removed handling of hwnd.ErasePending flag
30649 - Removed EraseWindowBackground() and SetWindowBackground() methods
30650 - We no longer call EraseWindowBackground on PaintEventStart, we
30651 ignore the fErase flag, erasing is handled in Control in the
30653 * Button.cs, GroupBox.cs, Label.cs, CheckBox.cs, ProgressBar.cs,
30654 LinkLabel.cs, ListControl.cs, TabPage.cs, UpDownBase.cs,
30655 TextBoxBase.cs, TextBox.cs, ListView.cs, ButtonBase.cs,
30656 CheckedListBox.cs, MdiClient.cs, Panel.cs, DataGrid.cs,
30657 DataGridTextBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs,
30658 TabControl.cs, ScrollableControl.cs, ToolBar.cs, PictureBox.cs,
30659 DateTimePicker.cs, StatusBar.cs, MonthCalendar.cs: Setting proper ControlStyles
30661 2005-10-12 Jonathan Chambers <jonathan.chambers@ansys.com>
30663 * PropertyGrids.cs: Get sub properties
30664 * PropertyGridView.cs: Fix drawing code
30666 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
30668 * ListBox.cs: Fixes 76383
30670 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
30672 * DataGridTextBoxColumn.cs: Sets location and size before attachment
30673 * ThemeWin32Classic.cs: Fixes border drawing and calculations
30674 * DataGridDrawingLogic.cs: Fixes border drawing and calculations
30677 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
30679 * ComboBox.cs: Fixes border drawing
30681 2005-10-10 Miguel de Icaza <miguel@novell.com>
30683 * MimeIcon.cs: Ignore errors if the file can not be read.
30685 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
30687 * Theme.cs, ThemeWin32Classic.cs, ListBox.cs:
30688 - Fixed border calculations
30689 - Fixed horizontal scrolling in single column listboxes
30690 - Fixed drawing issues
30692 2005-10-10 Peter Dennis Bartok <pbartok@novell.com>
30694 * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched from BorderStyle to
30695 FormBorderStyle enum
30696 * XplatUIX11.cs: Switched BorderStyle to FormBorderStyle, added
30697 code to determine FormBorderStyles from CreateParams
30699 - Fixed bug where we'd set the wrong window styles if we were
30700 not creating an MDI window
30701 - Added call to XplatUI.SetBorderStyle when form borders are set
30702 * Control.cs: Casting BorderStyles to accommodate changed XplatUI APIs
30704 - Removed obsolete edge style
30705 - Switched from BorderStyle to FormBorderStyle
30707 2005-10-10 Jackson Harper <jackson@ximian.com>
30709 * Form.cs: Use the property to get the window handle instead of
30710 accessing it directly. Prevents a null reference exception.
30712 2005-10-10 Jackson Harper <jackson@ximian.com>
30714 * TreeView.cs: Don't adjust the rect given to DrawString now that
30715 our libgdiplus draws correctly.
30717 2005-10-08 Jackson Harper <jackson@ximian.com>
30719 * TreeView.cs: Don't try to find the clicked on node if there are
30720 no nodes in the tree.
30722 2005-10-08 Alexander Olk <alex.olk@googlemail.com>
30728 2005-10-08 Alexander Olk <alex.olk@googlemail.com>
30730 * ImageListStreamer.cs, TreeView.cs, UpDownBase.cs, RichTextBox.cs,
30731 ColorDialog.cs, TextControl.cs, Panel.cs, MdiChildContext.cs,
30733 Use ResPool for brushes and dispose System.Drawing objects that
30734 are not used anymore.
30736 2005-10-07 Jackson Harper <jackson@ximian.com>
30738 * MdiChildContext.cs: Use the new borders instead of drawing them
30741 2005-10-06 Jordi Mas i Hernandez <jordi@ximian.com>
30743 * Calling UpdateBounds after changing the window's BorderStyle
30744 since the style can change the ClientSize
30746 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
30748 * Control.cs: Made PaintControlBackground virtual
30749 * Panel.cs: Overriding PaintControlBackground instead of using paint
30750 event; paint event method was interfering with 'real' users of the
30753 2005-10-06 Jordi Mas i Hernandez <jordi@ximian.com>
30755 * ThemeWin32Classic.cs: remove border drawing since it is handled
30756 by the base control class now and was causing double border drawing.
30758 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
30760 * Panel.cs: Redraw our background on paint. Not a pretty solution,
30761 but it does seem to match MS behaviour. This fixes bug #75324
30763 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
30765 * XplatUIX11.cs: A better DrawReversibleRectangle version, however
30766 somewhat hackish looking
30768 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
30771 - We now accept Enter even if AcceptEnter is false, if the containing
30772 form does not have an AcceptButton configured (fixes bug #76355)
30773 - Calculations are now fixed to no longer use Width/Height, but
30774 ClientSize.Width/Height, since we now support borders (this was
30775 a result of fixing borders and therefore bug #76166)
30776 - We no longer show the horizontal scrollbar if TextBox.WordWrap is
30777 true (fixes bug #76354)
30779 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
30782 - Defaulting BorderStyle and setting it in XplatUI when our window
30784 - Added enum check to InternalBorderStyle setter
30786 - Added drawing of window borders
30787 - Now properly calculates WM decorations offset for toplevel
30788 windows (fixes bug #74763)
30790 - Implemented BorderStyles for windows (we're letting win32 draw
30792 - Fixed the signature for SetWindowLong
30793 * PictureBox.cs, DataGrid.cs, TextBoxBase.cs, ToolBar.cs, Panel.cs,
30794 ListBox.cs, Label.cs: Now uses Control.InternalBorderStyle for
30796 * UpDownBase.cs: Remove drawing of borders, this is handled by
30797 the driver, outside the client area
30798 * ListView.cs: Removed bogus border calculations. The control should
30799 be oblivious to borders, since those are not part of the client
30801 * X11DesktopColors.cs: Commented out (currently) unneeded variables
30802 * ThemeWin32Classic.cs: Removed border calculations from ListView
30805 2005-10-06 Jackson Harper <jackson@ximian.com>
30807 * MdiChildContext.cs: Clear out the old virtual position remove
30808 all the unneeded calls to CreateGraphics.
30810 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
30812 * TextControl.cs: Use proper color for highlighted text; fixes #76350
30814 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
30817 - Added loading and setting of our new default icon
30818 - Only set icon if window is already created
30820 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
30823 - Do not explicitly set the foreground and background colors, to
30824 allow inheriting from parents (fixes #76302)
30825 - Use Control's InternalBorderStyle property to deal with borders
30827 2005-10-06 Jackson Harper <jackson@ximian.com>
30829 * MdiChildContext.cs: Use the new xplatui function to draw a
30832 2005-10-06 Jackson Harper <jackson@ximian.com>
30834 * Form.cs: Add the parent before creating the child context cause
30835 we need the parent when setting up the child.
30837 2005-10-06 Jackson Harper <jackson@ximian.com>
30839 * FolderBrowserDialog.cs: redo the tree population code so a
30840 second thread isn't used. Should be a lot faster and more stable
30843 2005-10-05 Jackson Harper <jackson@ximian.com>
30845 * TreeView.cs: There are no expand/collapse boxes if the node has
30848 2005-10-05 Jackson Harper <jackson@ximian.com>
30850 * X11DesktopColors.cs: Get menu colours for the gtk theme.
30852 2005-10-05 Alexander Olk <alex.olk@googlemail.com>
30854 * FileDialog.cs: Fix InitialDirectory
30856 2005-10-05 Jordi Mas i Hernandez <jordi@ximian.com>
30859 - Fixes changing between styles
30860 - Fixes simple mode
30861 - Fixes last item crashing when navigating with keyboard
30863 2005-10-05 Jordi Mas i Hernandez <jordi@ximian.com>
30865 * LinkLabel.cs: Related to 76045. Stops the LinkLabel been drawn as a Label
30867 2005-10-05 Jackson Harper <jackson@ximian.com>
30869 * TreeView.cs: If updating the root node do a full refresh.
30870 * TreeNode.cs: The root node should be expanded by default. Also
30871 added a utility prop to tell if we are the root node.
30872 * TreeNodeCollection.cs: Only refresh if the node we are being
30873 added to is expanded. Also added a comment on a potential
30876 2005-10-04 Peter Dennis Bartok <pbartok@novell.com>
30878 * Cursor.cs, Hwnd.cs: Added call to GC.SuppressFinalize()
30879 in dispose method. Fixes #76330
30881 2005-10-04 Jordi Mas i Hernandez <jordi@ximian.com>
30883 * ListView.cs, ThemeWin32Classic.cs, ListViewItem.cs:
30885 - Implements vertical and horizontal scrolling using XplatUI
30886 - Fixes keyboard navagation
30887 - Fixes EnsureVisible
30889 - Handles and draws focus properly
30892 2005-10-04 Kornél Pál <kornelpal@hotmail.com>
30894 * ImageList.cs: Use upper case initials for internal fields. ImageStream:
30895 Create handle. NET_2_0: Destroy handle when value is null.
30897 2005-10-03 Jackson Harper <jackson@ximian.com>
30899 * ScrollBar.cs: My last scrollbar patch was broken. This is a
30900 revert and a new patch to prevent the thumb from refreshing so
30903 2005-10-02 Jackson Harper <jackson@ximian.com>
30905 * ScrollBar.cs: Don't update position if it hasn't actually
30906 changed. This occurs when you hold down the increment/decrement
30907 buttons and the thumb gets to the max/min.
30909 2005-10-01 Jackson Harper <jackson@ximian.com>
30912 * MdiChildContext.cs:
30913 * MdiClient.cs: Implement ActiveMdiChild in Form.
30915 2005-10-01 Jordi Mas i Hernandez <jordi@ximian.com>
30917 * ComboBox.cs: Include ComboBoxEdit flag for the edit item
30919 2005-10-01 Peter Dennis Bartok <pbartok@novell.com>
30921 * X11DesktopColors.cs: Bow out gracefully if the Gtk libs cannot
30924 2005-09-30 Jackson Harper <jackson@ximian.com>
30926 * ListBox.cs: Don't do a full refresh unless some data has
30929 2005-09-30 Jackson Harper <jackson@ximian.com>
30931 * TreeView.cs: Make sure that the checkboxes size is factored in
30932 even when not visible.
30934 2005-09-30 Peter Dennis Bartok <pbartok@novell.com>
30936 * FileDialog.cs: Fix Jordi's build break
30938 2005-09-30 Jordi Mas i Hernandez <jordi@ximian.com>
30941 - Use standard the Windows colours for the combobox as espected
30942 - Dispose objects that use resouces when no longer need them
30944 2005-09-30 Peter Dennis Bartok <pbartok@novell.com>
30946 * X11DesktopColors.cs: Initial incomplete implementation
30947 * XplatUIX11.cs: Added call to initialize X11DesktopColors
30949 2005-09-30 Peter Dennis Bartok <pbartok@novell.com>
30952 - Switched Theme color names to match the names defined in
30953 System.Drawing.KnownColors. Life's hard enough, no need to make
30955 - Added setters to all theme color properties so themes can set
30956 their color schemes. The setters also propagate the color changes
30957 to System.Drawing.KnownColors via reflection
30958 * ControlPaint.cs, Label.cs, TextControl.cs, ToolTip.cs, ThemeNice.cs,
30959 ComboBox.cs, MdiChildContext.cs, TextBoxBase.cs, DateTimePicker.cs
30960 DataGridColumnStyle.cs, MonthCalendar.cs, TreeView.cs: Updated to
30961 use the new, more logical theme color names
30962 * XplatUIWin32.cs: Updated the GetSysColorIndex enum to include new
30964 * ThemeWin32Classic.cs:
30965 - Removed code to set the old classic Windows colors. Instead it
30966 now relies on the colors returned by System.Drawing.KnownColors
30967 which will be either modern static colors (Unix) or colors
30968 read from the user's configuration (Win32)
30969 - Updated to use the new, more logical theme color names
30970 - Switched DataGrid drawing code to use only Theme colors instead of
30971 a mix of System.Drawing.KnownColors and Theme colors
30972 - DrawFrameControl(): Removed code that fills the button area, the
30973 fill would overwrite any previous fill done by a control. This
30975 - Added DrawReversibleRectangle() stub
30976 * ScrollableControl.cs: Set visible state to false when scrollbars
30977 are removed (pdn fix)
30978 * XplatUI.cs, XplatUIOSX.cs, XplatUIDriver.cs: Added
30979 DrawReversibleRectangle() method to allow drawing primitive
30981 * XplatUIX11.cs: Implemented DrawReversibleRectangle()
30983 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
30985 * ImageList.cs: Add(Icon): Create handle.
30987 2005-09-30 Jordi Mas i Hernandez <jordi@ximian.com>
30990 * ThemeWin32Classic.cs:
30991 - Fixes detail mode
30993 - Issues with drawing
30995 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
30997 * ImageList.cs: Moved RecreateHandle back to ImageList as event
30998 source has to be the ImageList.
31000 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
31002 * ImageList.cs: Add(Icon): Use Graphics.DrawIcon instead of Icon.ToBitmap.
31004 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
31006 * ImageList.cs: ReduceColorDepth: Clean up pointer operations.
31008 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
31010 * ImageList.cs: ImageCollection: Removed owner field as it is no more used.
31012 2005-09-29 Jonathan Chambers <jonathan.chambers@ansys.com>
31013 * GridItem.cs: Fixed TODOs
31014 * GridItemCollection.cs: Added ICollection interface
31016 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
31018 * ImageList.cs: Resize icons when needed.
31020 2005-09-29 Jordi Mas i Hernandez <jordi@ximian.com>
31023 - Fixes GetBounds and returns on screen rects
31025 - Fixes vertical and horzintal scrolling of items
31026 * ThemeWin32Classic.cs:
31029 2005-09-29 Raja R Harinath <harinath@gmail.com>
31031 * ImageList.cs (ImageStream) [NET_2_0]: Reflect re-factoring.
31033 2005-09-29 Kornél Pál <kornelpal@hotmail.com>
31035 * ImageList.cs: Added comments about handle creation. Moved Handle,
31036 HandleCreated and OnRecreateHandle implementations to ImageCollection.
31037 Handle is created in Add methods.
31039 2005-09-28 Jordi Mas i Hernandez <jordi@ximian.com>
31041 * DataGridDrawingLogic.cs:
31042 - Takes rows into account on Colum calculations
31043 - Returns the column when clickig
31045 - Fixes default HitTestInfo values
31046 - Fixes HitTestInfo.ToString
31047 - Fixes ResetBackColor
31049 2005-09-28 Jackson Harper <jackson@ximian.com>
31051 * MdiChildContext.cs: Obey rules for fixed sized windows (no
31052 sizing or cursor changes). Also added some temp code to draw the
31053 titlebars text (Makes dev a little easier).
31055 2005-09-28 Kornél Pál <kornelpal@hotmail.com>
31057 * ImageList.cs: AddStrip: Throw ArgumentException when Image is not a Bitmap.
31059 2005-09-28 Jordi Mas i Hernandez <jordi@ximian.com>
31061 * ListBox.cs: Fixes bug 76253
31063 2005-09-28 Kornél Pál <kornelpal@hotmail.com>
31065 * ImageList.cs: Added comments about the current implementation. Added
31066 ReduceColorDepth, IndexedColorDepths and GetNearestColor to can use
31067 Format32bppArgb to preserve transparency and can use Graphics.FromImage
31068 while using the specified ColorDepth. ReduceColorDepth uses unsafe code
31069 with Bitmap.LockBits for better performance. Revised the whole file to
31070 match MS.NET behaviour and provide better performance. Non-public
31071 interface members are calling public members even when they throw
31072 NotSupportedException for better maintainability. Moved ColorDepth,
31073 ImageSize, ImageStream and TransparentColor implementations to
31074 ImageCollection for better performance as these properties are not used
31076 * ImageListStreamer.cs: Added a new internal constructor that takes an
31077 ImageList.ImageCollection and serializes Images based on
31078 ImageCollection.ToArray(). Renamed ImageColorDepth to ColorDepth to
31079 match ImageList property name.
31081 2005-09-28 Kazuki Oikawa <kazuki@panicode.com>
31083 * ListBox.cs: Fixes IndexFromPoint for last item
31085 2005-09-27 Jackson Harper <jackson@ximian.com>
31087 * Form.cs: Set the position of new mdi children correctly.
31089 2005-09-27 Jackson Harper <jackson@ximian.com>
31091 * MdiClient.cs: New mdi children need to be added to the back of
31092 the controls collection so the zorder is set correctly. Also add a
31093 count of all the child windows that have been created.
31095 2005-09-27 Jackson Harper <jackson@ximian.com>
31097 * Form.cs (CreateParams): Setup MDI forms correctly.
31099 2005-09-27 Jackson Harper <jackson@ximian.com>
31101 * MdiChildContext.cs:
31102 * MonthCalendar.cs:
31108 * ScrollableControl.cs:
31109 * ComboBox.cs: Add implicit controls using the new implict control
31110 functionality in ControlCollection. Also try to block multiple
31111 control add in a suspend/resume layout to save some cycles.
31113 2005-09-27 Jackson Harper <jackson@ximian.com>
31115 * Control.cs: Add functionality to the controls collection to add
31116 'implicit controls' these are controls that are created by the
31117 containing control but should not be exposed to the user. Such as
31118 scrollbars in the treeview.
31119 * Form.cs: The list var of the ControlsCollection is no longer
31120 available because of the potential of implicit controls getting
31121 ignored by someone accessing the list directly.
31123 2005-09-26 Peter Dennis Bartok <pbartok@novell.com>
31125 * Control.cs: Fixed SetChildIndex; it no longer causes a child to
31126 loose it's parent. (Fixed bug introduced in r49103 when we added
31127 setting the child parent to null on Remove)
31129 2005-09-26 Gert Driesen <drieseng@users.sourceforge.net>
31131 * DataGridBoolColumn.cs: Marked CheckState private to fix public API.
31132 * Splitter.cs: Added missing attributes for BorderStyle property.
31133 * TextBoxBase.cs: Marked Calculate* methods internal.
31134 * TextBox.cs: Fixed DefaultValue for PasswordChar property to match
31137 2005-09-26 Jordi Mas i Hernandez <jordi@ximian.com>
31139 * ListBox.cs: Fixes navigation to the last item in multicolumn lists
31141 2005-09-25 Jackson Harper <jackson@ximian.com>
31143 * TreeView.cs: Update the node bounds correctly regardless of
31144 whether the node is visible.
31146 2005-09-25 Jackson Harper <jackson@ximian.com>
31148 * ImageList.cs: Don't dispose the image after it is added to the
31149 image list. Only reformat images that need to be resized.
31151 2005-09-25 Jackson Harper <jackson@ximian.com>
31153 * ImageList.cs: Don't set the format when changing the image.
31155 2005-09-25 Jackson Harper <jackson@ximian.com>
31157 * TreeView.cs: We can't just assume the node has a font. Use the
31158 treeviews font if no node font is available.
31160 2005-09-25 Jackson Harper <jackson@ximian.com>
31162 * TreeView.cs: Allow the scrollbars to be reset with negative
31164 - Don't add scrollbars to negative sized windows.
31166 2005-09-23 Jackson Harper <jackson@ximian.com>
31168 * XplatUIX11.cs: Update to use Mono.Posix.Native instead of plain
31169 old Mono.Posix. Also remove some stray code that shouldn't have
31172 2005-09-23 Jackson Harper <jackson@ximian.com>
31174 * TreeView.cs: Attempt at proper sizing of the horizontal
31175 scrollbar. Also don't resize the scrollbars unless they are
31178 2005-09-23 Jackson Harper <jackson@ximian.com>
31180 * TreeView.cs: We don't need to expand the invalid area when the
31181 selection changes, as this is all drawn in the node's bounding
31182 box. The area needs to be expanded (previous typo was contracting
31183 it) when the focus rect moves.
31185 2005-09-23 Jackson Harper <jackson@ximian.com>
31187 * TreeView.cs: Display the selection box under the correct
31188 circumstances. We were rendering white text with no selection box
31191 2005-09-23 Peter Dennis Bartok <pbartok@novell.com>
31193 * TextControl.cs(Split): Now updates selection start/end if it points
31194 into a line that's being split. Fixes a FIXME and bug #75258
31196 2005-09-23 Jackson Harper <jackson@ximian.com>
31199 * ListControl.cs: Don't use the path when retrieving binding
31200 managers from the binding context. My bat sense tells me that the
31201 path is only used on insertion.
31203 2005-09-22 Jackson Harper <jackson@ximian.com>
31205 * Splitter.cs: Set the cursor an easier way. (Thanks peter).
31207 2005-09-22 Jackson Harper <jackson@ximian.com>
31209 * Splitter.cs: There are special cursors used for splitting.
31210 * XplatUIX11.cs: The VSplit and HSplit cursors were backwards.
31212 2005-09-22 Jackson Harper <jackson@ximian.com>
31214 * Splitter.cs: Change the cursor appropriately when the splitter
31215 is moused over, so the user actually knows there is a splitter
31218 2005-09-22 Hisham Mardam Bey <hisham.mardambey@gmail.com>
31220 * Label.cs : Fix ToString method to give same output as MS.NET
31222 2005-09-22 Jackson Harper <jackson@ximian.com>
31224 * TreeView.cs: Create the scrollbars when the handle is created
31225 and add them right away, just make them invisble. Also account for
31226 the window being shrunk vertically to the point that the vert
31227 scrollbar needs to be added.
31228 - Remove some 0.5 adjustments to get around anti aliasing issues.
31230 2005-09-22 Jordi Mas i Hernandez <jordi@ximian.com>
31232 * MainMenu.cs: Fixes default value
31233 * MenuItem.cs: Fixes default value
31235 2005-09-22 Kazuki Oikawa <kazuki@panicode.com>
31237 * AsyncMethodResult.cs: Fixes Control.Invoke is blocked infinitely.
31239 2005-09-21 Jackson Harper <jackson@ximian.com>
31241 * Control.cs: Don't try to set the border style on the window if
31242 it hasn't been created. When the window is created the border
31243 style will be used.
31245 2005-09-21 Peter Dennis Bartok <pbartok@novell.com>
31247 * Control.cs (Update): Don't call XplatUI if we don't have a
31250 2005-09-21 Peter Dennis Bartok <pbartok@novell.com>
31252 * ContainerControl.cs: Instead of throwing an exception, print
31253 a one-time warning about Validate not being implemented
31254 * XplatUIWin32.cs: Removed debug output
31256 2005-09-21 Peter Dennis Bartok <pbartok@novell.com>
31258 * Control.cs: Only set XplatUI background if we expect the windowing
31259 system to handle the background. This stops controls that draw their
31260 own background from flickering
31262 * XplatUIX11.cs: Support custom visuals and colormaps for window
31263 creation. This allows, amongst other things, using MWF X11 windows
31266 2005-09-21 Peter Dennis Bartok <pbartok@novell.com>
31268 * OpenFileDialog.cs, ContentsResizedEventArgs.cs, LibSupport.cs, GridItem.cs,
31269 CursorConverter.cs, SplitterEventHandler.cs, PropertyGridTextBox.cs,
31270 GridTablesFactory.cs, MethodInvoker.cs, AccessibleEvents.cs,
31271 SplitterEventArgs.cs, XplatUI.cs, Mime.cs, PropertySort.cs,
31272 TreeViewCancelEventHandler.cs, Form.cs, PropertyGridCommands.cs,
31273 IDataGridEditingService.cs, DateBoldEventHandler.cs, Label.cs,
31274 KeyboardLayouts.cs, TextControl.cs, ProgressBar.cs, ToolTip.cs,
31275 RadioButton.cs, OSFeature.cs, LinkLabel.cs, ColorDialog.cs,
31276 ThemeNice.cs, ErrorIconAlignment.cs, TreeNode.cs, MimeGenerated.cs,
31277 ComboBox.cs, DataGridTextBoxColumn.cs, ArrangeStartingPosition.cs,
31278 GridColumnStylesCollection.cs,
31279 IDataGridColumnStyleEditingNotificationService.cs,
31280 PropertyGrid.cs, IFeatureSupport.cs, ICommandExecutor.cs,
31281 MdiLayout.cs, GridEntry.cs, ControlBindingsCollection.cs,
31282 GridTableStylesCollection.cs, TreeViewCancelEventArgs.cs,
31283 TreeNodeCollection.cs, AmbientProperties.cs,
31284 RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
31285 DataObject.cs, ErrorProvider.cs, Splitter.cs,
31286 DataGridLineStyle.cs, Shortcut.cs, Control.cs,
31287 FontDialog.cs, SecurityIDType.cs, GridItemType.cs,
31288 BindingMemberInfo.cs, DataGridCell.cs, MdiChildContext.cs,
31289 IRootGridEntry.cs, PropertyGridView.cs, DataGridParentRowsLabelStyle.cs,
31290 FolderBrowserDialog.cs, OpacityConverter.cs, HelpProvider.cs,
31291 IComponentEditorPageSite.cs, DataGridTableStyle.cs, NavigateEventArgs.cs,
31292 NotifyIcon.cs, ContentsResizedEventHandler.cs, MenuItem.cs,
31293 PropertyTabChangedEventHandler.cs, TextBoxBase.cs, OpenTreeNodeEnumerator.cs,
31294 SelectionMode.cs, TextBox.cs, ListBindingConverter.cs,
31295 FileDialog.cs, KeysConverter.cs, DomainUpDown.cs,
31296 DataFormats.cs, SaveFileDialog.cs, GridItemCollection.cs,
31297 ArrangeDirection.cs, FeatureSupport.cs, SelectionRangeConverter.cs,
31298 RichTextBoxScrollBars.cs, NodeLabelEditEventHandler.cs, TreeNodeConverter.cs,
31299 MimeIcon.cs, X11Structs.cs, PropertyGridEntry.cs,
31300 ImageList.cs, ThemeWin32Classic.cs, X11Keyboard.cs,
31301 CheckedListBox.cs, HelpNavigator.cs, DateTimePickerFormat.cs,
31302 MdiClient.cs, DataGridDrawingLogic.cs, DataGridBoolColumn.cs,
31303 NodeLabelEditEventArgs.cs, Screen.cs, PropertyManager.cs,
31304 ComponentModel.cs, PropertiesTab.cs, CurrencyManager.cs,
31305 SizeGrip.cs, DateBoldEventArgs.cs, X11Dnd.cs, Panel.cs,
31306 Hwnd.cs, OSXStructs.cs, DrawMode.cs, XplatUIDriver.cs,
31307 RichTextBox.cs, PropertyTabChangedEventArgs.cs, CommonDialog.cs,
31308 DataGrid.cs, XplatUIX11.cs, RichTextBoxStreamType.cs, Win32DnD.cs,
31309 ErrorBlinkStyle.cs, TreeViewEventHandler.cs,
31310 PropertyValueChangedEventHandler.cs, IFileReaderService.cs,
31311 DataGridTextBox.cs, SelectedGridItemChangedEventArgs.cs, ScrollBar.cs,
31312 ListBox.cs, TreeViewAction.cs, Help.cs, TrackBar.cs,
31313 AxHost.cs, PropertyValueChangedEventArgs.cs, XplatUIOSX.cs,
31314 RichTextBoxFinds.cs, UpDownEventArgs.cs, Cursors.cs,
31315 CategoryGridEntry.cs, RichTextBoxWordPunctuations.cs, DataGridColumnStyle.cs,
31316 SelectedGridItemChangedEventHandler.cs, DateTimePicker.cs, NavigateEventHandler.cs,
31317 Clipboard.cs, UpDownEventHandler.cs, MonthCalendar.cs,
31318 SendKeys.cs, DataGridPreferredColumnWidthTypeConverter.cs, TreeView.cs,
31319 ThreadExceptionDialog.cs, ImageListConverter.cs, XplatUIWin32.cs,
31320 TreeViewEventArgs.cs: Fixed whitespace and set eol-style:native attribute
31322 2005-09-21 Jackson Harper <jackson@ximian.com>
31324 * TreeNode.cs: Call Before/After Expand not Collapse when
31327 2005-09-20 Jackson Harper <jackson@ximian.com>
31329 * XplatUIX11.cs: Use the more hand looking hand (in most themes).
31331 2005-09-16 Jordi Mas i Hernandez <jordi@ximian.com>
31335 - Fixes proper storing of subitems
31336 - Fixes not updated items
31338 2005-09-20 Peter Dennis Bartok <pbartok@novell.com>
31340 * Control.cs, TextBoxBase.cs, TextControl.cs: Don't do certain
31341 things if our window handle isn't created yet. Also disabled
31342 debug for TextBoxBase
31344 2005-09-20 Peter Dennis Bartok <pbartok@novell.com>
31346 * MenuAPI.cs: Remove filtering of events to allow menu usage
31348 2005-09-20 Miguel de Icaza <miguel@novell.com>
31350 * Cursor.cs: Allow null to be passed to Cursor.Current.
31352 2005-09-20 Alexander Olk <alex.olk@googlemail.com>
31354 * ThemeWin32Classic.cs:
31355 - Change some private methods/fields to protected virtual so that
31356 they can be accessed and overriden in derived classes
31357 - First refactoring of some methods. Derived themes now don't
31358 need to duplicate the complete code from ThemeWin32Classic
31360 - Added nice StatusBar
31361 - Derive from ThemeWin32Classic and not Theme
31362 - Removed duplicate ThemeWin32Classic code
31364 2005-09-20 Miguel de Icaza <miguel@novell.com>
31366 * Control.cs (ControlCollection.Add): If the value null is passed
31367 the control is ignored.
31369 Optimize this loop.
31371 2005-09-19 Peter Dennis Bartok <pbartok@novell.com>
31373 * MenuAPI.cs: Replaced Application.Run() with a loop that tracks
31374 PostQuitMessage state.
31375 * XplatUIWin32.cs: Removed bogus PostQuitMessage P/Invoke with HWND arg
31377 2005-09-19 Peter Dennis Bartok <pbartok@novell.com>
31379 * Application.cs: Our constructor will never get called, move
31380 initialization to fields; fixes bug #75933
31382 2005-09-19 Hisham Mardam Bey <hisham.mardambey@gmail.com>
31385 - Allow files to be selected properly using file name
31387 - Add ability to change diretory (absolute / relative)
31388 using file name combo box.
31390 2005-09-16 Jordi Mas i Hernandez <jordi@ximian.com>
31393 - Fixes Multicolumn listboxes item wrong calculations
31394 - Allows to click when only one item is in the listbox
31395 - Fixes crash when no items using keyboard navigation
31397 2005-09-16 Alexander Olk <alex.olk@googlemail.com>
31399 * ComboBox.cs: Reverted almost everything from the latest patch which
31402 2005-09-16 Kazuki Oikawa <kazuki@panicode.com>
31405 - Fixed #Mtd2 of ToolTipTest.RemoveToolTipTest.
31407 - When DropDownStyle is Simple, it does not show scrollbar
31408 to the last item of the list.
31409 - When DropDownStyle is Simple, it crashed when the list was
31410 scrolled down with the down cursor key.
31411 - Fixed a bug that when DropDownStyle is DropDownList, the
31412 selected item was not shown.
31413 - The position of the selected item was not preserved when
31414 the next dropdown happened.
31415 * ThemeWin32Classic.cs:
31416 - Items were wrapped at the right end.
31417 * CheckedListBox.cs:
31420 - Items should be fully shown.
31421 - When resizing and vertical scrollbar disappeared, the item
31422 of index 0 should be on the top of the list.
31423 - GetItemRectangle should consider the size of ver. scrollbar
31425 - SizingGrip area should not be allocated when it is not
31427 - Now it reflects MinWidth of the containing panel and
31428 fixed a crash that happens when its width becomes so small.
31430 2005-09-13 Jordi Mas i Hernandez <jordi@ximian.com>
31432 * CheckedListBox.cs: Fixes bug 76028
31433 * ListBox.cs: Fixes bug 76028
31435 2005-09-13 Jordi Mas i Hernandez <jordi@ximian.com>
31437 * ThemeWin32Classic.cs: Sets clipping on DataGridPaintRowsHeaders
31438 * DataGridDrawingLogic.cs: fixes issues with Datagrid drawing
31440 2005-09-12 Jordi Mas i Hernandez <jordi@ximian.com>
31442 * XplatUIX11.cs: fixes System.NullReferenceException in some situations
31444 2005-09-09 Jonathan Chambers <jonathan.chambers@ansys.com>
31446 * IRootGridEntry.cs: Changed namespace to PropertyGridInternal
31448 2005-09-09 Jonathan Chambers <jonathan.chambers@ansys.com>
31450 * IRootGridEntry.cs: Added
31451 * PropertyGridCommands.cs: Added
31452 * PropertiesTab.cs: Added missing methods and property
31453 * PropertyGridView.cs: Made class internal
31454 * PropertyGridTextBox.cs: Made class internal
31456 2005-09-09 Alexander Olk <alex.olk@googlemail.com>
31458 * MimeIcon.cs: Try to check some other environment variables
31459 if "DESKTOP_SESSION" returns "default"
31461 2005-09-09 Alexander Olk <alex.olk@googlemail.com>
31463 * ThemeNice.cs: Corrected background colors (e.g. menus)
31464 * ColorDialog.cs: Use correct background colors for controls
31466 2005-09-09 Alexander Olk <alex.olk@googlemail.com>
31468 * ThemeNice.cs: Merged r49535 from ThemeWin32Classic
31470 2005-09-08 Peter Dennis Bartok <pbartok@novell.com>
31472 * RichTextBox.cs: Added initial implementation
31473 * lang.cs: Removed. Was accidentally checked in long time ago
31474 * TODO: Removed. Contents were obsolete
31476 2005-09-06 Jonathan Chambers <jonathan.chambers@ansys.com>
31478 * PropertiesTab.cs : Added
31480 2005-09-06 Jonathan Chambers <jonathan.chambers@ansys.com>
31482 * PropertyGrid.cs : Update
31483 * PropertyGridView.cs : Update
31484 * System.Windows.Forms.resx : Added images and strings
31486 2005-09-06 Peter Dennis Bartok <pbartok@novell.com>
31488 * ThemeNice.cs: Do not dispose Pens retrieved from ResPool
31490 2005-09-06 Peter Dennis Bartok <pbartok@novell.com>
31492 * XplatUIX11.cs: Force a flush after Ungrab; if case the app enters
31493 a busy loop right after the Ungrab the X11 display is otherwise
31496 2005-09-06 Jordi Mas i Hernandez <jordi@ximian.com>
31498 * ThemeWin32Classic.cs: Optimise the use of clipping
31500 2005-09-05 Jordi Mas i Hernandez <jordi@ximian.com>
31502 * DataGrid.cs: fixes recursion bug
31504 2005-09-03 Alexander Olk <alex.olk@googlemail.com>
31507 - Draw RadioButton and CheckBox Buttons with DrawButtonBase
31510 2005-09-02 Alexander Olk <alex.olk@googlemail.com>
31512 * ThemeNice.cs: Draw nice ProgressBars
31514 2005-09-01 Miguel de Icaza <miguel@novell.com>
31516 * VScrollBar.cs: Another buglet found by Aaron's tool.
31518 * ProgressBar.cs: Fix three recursive bugs found by Aaron Tomb's
31521 2005-08-30 Alexander Olk <alex.olk@googlemail.com>
31524 - Added nicer menu drawing
31528 2005-08-30 Peter Dennis Bartok <pbartok@novell.com>
31530 * CreateParams.cs (ToString): Made output match MS
31531 * Control.cs (Text): Don't set Text or Focus via XplatUI unless
31532 handle is already created (to avoid forcing window creation)
31533 * XplatUIX11.cs: Set window text to caption after creating window,
31534 in case Text was set before window was created
31535 * Form.cs: Use this.Text instead of a static string as caption
31537 2005-08-30 Peter Dennis Bartok <pbartok@novell.com>
31539 * NotifyIcon.cs: Don't set the window to visible; this screws
31540 up Win32 (causes WM_NCPAINT to be sent on Win32, which calls
31541 OnPaint without a bitmap)
31542 * XplatUIX11.cs: Removed Visible optimization in AddExpose; doesn't
31543 happen very often anyway; we could add the check to the WM_PAINT
31544 event generation code
31546 2005-08-30 Peter Dennis Bartok <pbartok@novell.com>
31548 * NotifyIcon.cs: Fill the icon area with a background color, to
31549 avoid 'residue' when transparent icons are drawn
31551 - Handle whole_window == client_window when destroying windows
31552 - SystrayAdd(): Set client_window to whole_window value to
31553 get mouse and other events passed to NotifyIcon
31555 2005-08-30 Peter Dennis Bartok <pbartok@novell.com>
31557 * Form.cs: Set proper default for Opacity property
31559 - ShowSystray(): Don't bother creating telling the OS
31560 about the systray item if no icon is provided
31561 - Now handles WM_NCPAINT message to deal with whole/client window
31563 - Create window as visible to not get caught by Expose optimization
31564 * Hwnd.cs: Removed debug message
31565 * ComboBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs, TabControl.cs,
31566 StatusBar.cs, TreeView.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched
31567 PaintEventStart/End to use new client argument
31569 - Commented out debug messages
31570 - Switched PaintEventStart/End to use new client argument
31571 * XplatUI.cs: Added client window bool to PaintEventStart()/
31572 PaintEventEnd() calls, to support drawing in non-client areas
31573 * XplatUIDriver.cs:
31574 - Added client window bool to PaintEventStart()/PaintEventEnd()
31575 calls, to support drawing in non-client areas
31576 - Added conditional compile to allow using MWF BeginInvoke
31579 - Added some conditional debug output
31580 - Fixed SystrayAdd() method to support new (for SystrayAdd, anyway)
31581 whole/client window split
31582 - Implemented handling of client argument to PaintEventStart()/End()
31584 - Throw exception if BeginInvoke() is called and the window handle
31585 or one of the window's parent handles is not created
31586 - Added conditional compile to allow using MWF BeginInvoke on
31588 - get_Parent(): Only sets parent if handle is created. This avoids
31589 forcing window handle creation when parent is set.
31590 - Now fires Layout and Parent changed events in proper order
31591 - Switched to use Handle instead of window.Handle for Z-Order setting,
31592 the get_Parent() patch above causes us to possibly get null for 'window'
31593 - Implemented handling of client argument to PaintEventStart()/End()
31594 - Now reports back to windows that WM_SETCURSOR was handled (to avoid
31596 - Now sends a Refresh() to all child windows when Refresh() is called
31598 2005-08-29 Peter Dennis Bartok <pbartok@novell.com>
31600 * Form.cs: Added (non-functional) Opacity property
31601 * XplatUIWin32.cs (SystrayAdd): Removed bogus line of code
31603 2005-08-29 Alexander Olk <xenomorph2@onlinehome.de>
31604 * ThemeNice.cs: New theme for MWF, based on ThemWin32Classic
31605 use export MONO_THEME=nice to activate it.
31606 Currently supported controls:
31610 - TabControl (TabAlignment.Top only, other will follow)
31611 * ThemeEngine.cs: Add theme nice
31612 * ButtonBase.cs: Redraw button on MouseEnter and MouseLeave everytime,
31615 2005-08-25 Jonathan Chambers <jonathan.chambers@ansys.com>
31617 * Splitter.cs: Resize docked control and its neighbor.
31619 2005-08-24 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
31620 -- Making Windows with Menus layout correctly --
31621 * Form.cs : The first leg of the fix
31622 Menu setter - adjust Client Size as needed to make space for the menu
31623 SetClientSizeCore - doesn't call base version to be able to pass the
31624 menu handle to XplatUI.CalculateWindowRect
31625 * Hwnd.cs: Fix for menu_height, now gets from MenuAPI.MENU
31626 * XplatUIX11.cs: The critical second leg of the fix
31627 GetWindowPos needs to use a recalculated client_rect
31628 so that resizing the window doesn't break layout of child controls.
31629 Also a more complete rule to avoid X Server roundtrips in SetWindowPos
31630 Lots of \t\n killed
31632 2005-08-23 Peter Dennis Bartok <pbartok@novell.com>
31634 * Label.cs: Now properly recalculates width and height on Font and Text
31635 changes if AutoSize is set
31637 2005-08-19 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
31638 * TreeView.cs : Revamped drawing logic, and support for FullRowSelect
31640 2005-08-19 Jordi Mas i Hernandez <jordi@ximian.com>
31642 * ImageList.cs: Makes ToString method compatible with MS
31644 2005-08-18 Jordi Mas i Hernandez <jordi@ximian.com>
31646 * MenuAPI.cs: fixes bug 75716
31648 2005-08-11 Umadevi S <sumadevi@novell.com>
31649 * Control.cs: Fixed Remove & RemoveAt to make the parent of the control null.
31651 2005-08-11 Umadevi S <sumadevi@novell.com>
31652 * Contorl.cs: Fixed ResetRightToLeft and ResetImeMode to work correctly
31654 2005-08-10 Umadevi S <sumadevi@novell.com>
31655 * CheckedListBox.cs: Fixed event firing on Adding to the CheckedListBox
31657 2005-08-07 Jordi Mas i Hernandez <jordi@ximian.com>
31659 * Menu.cs: fixes bug 75700
31660 * MenuAPI.cs: fixes navigation issues
31662 2005-08-09 Umadevi S <sumadevi@novell.com>
31663 * CheckedListBox.cs - simple fix for GetItemChecked.
31665 2005-08-08 Jordi Mas i Hernandez <jordi@ximian.com>
31667 * ComboBox.cs: Serveral fixes
31668 * ListBox.cs: Serveral fixes
31670 2005-08-05 Jordi Mas i Hernandez <jordi@ximian.com>
31672 * ComboBox.cs: Fixes FindString methods and GetItemHeight
31673 * ListBox.cs: Fixes FindString methods
31675 2005-08-05 Jordi Mas i Hernandez <jordi@ximian.com>
31677 * DataGrid.cs: fixes bugs exposed by new tests
31679 2005-08-04 Peter Dennis Bartok <pbartok@novell.com>
31681 * Mime.cs: Compile Mono assembly references only if compiling
31682 with Mono (Allows to build with VS.Net again)
31684 2005-07-28 Marek Safar <marek.safar@seznam.cz>
31686 * Control.cs (PaintControlBackground): Draw background image
31688 (CheckForIllegalCrossThreadCalls): Stubbed.
31690 * Form.cs (OnCreateControl): Center when should be centered.
31692 * ThemeWin32Classic.cs (DrawPictureBox): Pass size.
31694 2005-07-19 Jordi Mas i Hernandez <jordi@ximian.com>
31696 * Binding.cs: Binding to properties should be case unsensitive
31698 2005-07-18 vlindos@nucleusys.com
31700 * DataGrid.cs: fixes setmember order
31702 2005-07-07 Alexander Olk <xenomorph2@onlinehome.de>
31704 * MimeIcon.cs: added MimeIcon stuff (MimeIconEngine)
31705 * FileDialog.cs: FileDialog is now resizable and uses the new
31708 2005-07-06 Jordi Mas i Hernandez <jordi@ximian.com>
31710 * DataGridTextBoxColumn.cs: default value
31711 * GridColumnStylesCollection.cs: fixes event firing, checking MappingName
31712 * GridTableStylesCollection.cs: fixes checking MappingName
31713 * DataGridDrawingLogic.cs: fixes drawing logic issues
31714 * DataSourceHelper.cs: rewritten to make compatible with more data sources
31715 * DataGrid.cs: fixes
31717 2005-07-06 Alexander Olk <xenomorph2@onlinehome.de>
31719 * MimeGenerated.cs: Use case sensitive comparer for
31720 NameValueCollections
31722 2005-07-01 Jordi Mas i Hernandez <jordi@ximian.com>
31724 * DataGridTextBoxColumn.cs: bug fixes, code refactoring
31725 * ThemeWin32Classic.cs: bug fixes, code refactoring
31726 * DataGridDrawingLogic.cs: bug fixes, code refactoring
31727 * DataGrid.cs: bug fixes, code refactoring
31728 * DataGridTextBox.cs: bug fixes, code refactoring
31729 * DataGridColumnStyle.cs: bug fixes, code refactoring
31730 * Theme.cs: bug fixes, code refactoring
31732 2005-07-01 Peter Bartok <pbartok@novell.com>
31734 * TextControl.cs: Quick fix for the reported crash on ColorDialog
31735 and other text box usage
31737 2005-07-01 Jackson Harper <jackson@ximian.com>
31739 * TabControl.cs: Make sure the bottom of the tab covers the pages
31742 2005-06-30 Peter Bartok <pbartok@novell.com>
31744 * Form.cs (ShowDialog): Assign owner of the dialog
31745 * TextBoxBase.cs: Always refresh caret size when deleting, caret
31746 might have been moved to a tag with different height
31748 2005-06-30 Jackson Harper <jackson@ximian.com>
31750 * Form.cs: Don't create an infinite loop when setting focus
31751 * MenuItem.cs: Don't dirty the parents if we don't have any
31753 2005-06-29 Ben Maurer <bmaurer@ximian.com>
31755 * LibSupport.cs: Rename
31757 2005-06-29 Peter Bartok <pbartok@novell.com>
31759 * TextBoxBase.cs: Re-align caret after deleting a character
31761 - DeleteChars(): Ensure that tag covers the provided position
31762 - StreamLine(): Drop reference for dropped tag
31764 2005-06-29 Peter Bartok <pbartok@novell.com>
31767 - Selections now work properly, anchoring at the initial location
31768 and properly extending in either direction (SetSelectionToCaret(),
31769 SetSelectionStart() and SetSelectionEnd())
31770 - No longer redraws the whole control on selection change, now
31771 calculates delta between previous and new selection and only
31772 invalidates/redraws that area
31773 - Fixed FindPos() math off-by-one errors
31774 - Changed DeleteChars() to verify the provided tag covers the
31775 provided position, selections may have a tag that doesn't cover
31776 the position if the selection is at a tag border
31777 - Fixed off-by-one errors in DeleteChars()
31778 - Added missing streamlining check in DeleteChars() to remove
31780 - Implemented Invalidate() method, now properly calculates exposures
31781 between two given lines/positions
31782 - Implemented SetSelection()
31783 - Obsoleted and removed FixupSelection()
31784 - Improved RecalculateDocument() logic, removing code duplication
31786 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
31788 * LibSupport.cs: changes to match different input/output arguments.
31790 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
31792 * LibSupport.cs: added libsupport.so init routine.
31794 2005-06-29 Jordi Mas i Hernandez <jordi@ximian.com>
31796 * ControlBindingsCollection.cs
31797 - Throws an exception on null datasource when adding
31798 - Checks for duplicated bindings when adding
31800 2005-06-28 Jackson Harper <jackson@ximian.com>
31802 * TreeView.cs (OnKeyDown): Support left and right properly
31803 (navigates as well as expanding and collapsing.
31804 - Add support for Multiply, this expands all the selected nodes
31806 - Fix some tabbing.
31808 2005-06-28 Jackson Harper <jackson@ximian.com>
31810 * TreeView.cs: Implement keyboard navigation, currently supports,
31811 LEFT, RIGHT, UP, DOWN, PGUP, PGDOWN, HOME, END, ADD, SUBTRACT. Add
31812 support for toggling checkboxes with the space bar.
31814 2005-06-28 Jackson Harper <jackson@ximian.com>
31816 * OpenTreeNodeEnumerator.cs: Don't move past the begining of the
31819 2005-06-28 Jackson Harper <jackson@ximian.com>
31821 * TreeView.cs: Add missing event.
31823 2005-06-27 Peter Bartok <pbartok@novell.com>
31826 - Made line ending size configurable (now allows for counting
31827 lineendings as \n or \r\n)
31828 - Added margin to viewport to keep caret visible on right side
31829 - Fixed translation routines for line/pos to documentpos to consider
31830 cr/lf when counting (Fixes RichTextBox.SelectionFont issues)
31831 - Fixed some line-endings to be unix style
31832 - Fixed Document.FormatText to perform it's calculations 1-based
31833 - Added descriptions for a few methods that might otherwise get
31835 - Added NOTE section with some basic conventions to remember at
31836 the top of the file
31837 - Major fixup for RichTextBox selection drawing:
31838 * Fixed crashes when multiple tags on a single line were selected
31839 * fixed selection box drawing not overlaying text
31840 * fixed bogus offset calculation for tags not starting at index 1
31841 * Switched behaviour from using multiple Substrings of a
31842 StringBuilder.ToString() to using multiple
31843 StringBuilder.ToString(start, length) statements, hoping this is
31844 faster (kept original version commented out in the code, in case
31845 original version was faster)
31846 * TextBox.cs (set_TextAlignment): TextBox always needs to wrap if
31848 * TextBoxBase.cs (CalculateDocument): Made protected so RichTextBox can
31851 2005-06-27 Jackson Harper <jackson@ximian.com>
31853 * TabControl.cs: Move to the left and right with the arrow
31854 keys. These keys don't cycle beyond first and last like
31855 tab. Refresh all the tabs when scrolling them to the left or
31858 2005-06-27 Jackson Harper <jackson@ximian.com>
31861 - ToString: Added method
31862 - CreateParams: Remove TODO and comment
31863 - OnKeyDown: Cycle through bounds properly.
31864 - SelectedIndex: Scroll to the right or left if we need to
31865 display the newly selected tab.
31867 2005-06-23 Jackson Harper <jackson@ximian.com>
31869 * TabControl.cs: Stay in bounds when cycling. Make sure Handled is
31872 2005-06-23 Jackson Harper <jackson@ximian.com>
31874 * TabControl.cs: Keyboard handling. We now support CTRL-TAB,
31875 CTRL-SHIFT-TAB, and HOME, END are there any others?
31877 2005-06-23 Jackson Harper <jackson@ximian.com>
31879 * XplatUIX11.cs: Get the modifier keys from the keyboard driver.
31881 2005-06-22 Jordi Mas i Hernandez <jordi@ximian.com>
31883 * DataGridTextBoxColumn.cs: fixes and enhancements
31884 * ThemeWin32Classic.cs: fixes and enhancements
31885 * DataGridBoolColumn.cs: fixes and enhancements
31886 * DataGridDrawingLogic.cs: fixes and enhancements
31887 * CurrencyManager.cs: fixes and enhancements
31888 * DataGrid.cs: fixes and enhancements
31889 * DataGridColumnStyle.cs: fixes and enhancements
31891 2005-06-22 Jackson Harper <jackson@ximian.com>
31893 * TabControl.cs: Add some missing methods that just call into the
31894 base. Make the TabPageCollection's IList interface behave in the
31895 same manner as the MS implementation.
31897 2005-06-22 Peter Bartok <pbartok@novell.com>
31899 * TextControl.cs: Added sanity check
31901 - Fixed wrapping behaviour, don't set wrap on single line controls
31902 (this fixes the breakage of colordialog introduced in an earlier
31904 - Added rudimentary support for autoscrolling right-aligned controls
31905 (still needs fixing, also, center alignment scroll is missing)
31907 2005-06-22 Jordi Mas i Hernandez <jordi@ximian.com>
31909 * ScrollBar.cs: Fixes thumbpos on Maximum values
31911 2005-06-21 Jonathan Chambers <jonathan.chambers@ansys.com>
31913 * PropertyGridView.cs: Pass context information to UITypeEditors
31915 2005-06-21 Peter Bartok <pbartok@novell.com>
31918 - Now calling PositionCaret with absolute space coordinates
31919 - Enabled vertical scrolling
31920 - Better tracking of scrollbar changes, tied into WidthChange
31922 - Improved cursor tracking
31923 - Removed debug output
31925 - PositionCaret coordinates are now works in absolute space, not
31927 - Improved tracking of document size
31928 - Added events for width and height changes
31930 2005-06-21 Peter Bartok <pbartok@novell.com>
31932 * Form.cs: Set focus to active control when form is activated
31934 - Added word-wrap functionality to RecalculateLine()
31935 - Added some short function descriptions for VS.Net to aid in
31936 writing dependent controls
31937 - Added Caret property, returning the current coords of the caret
31938 - Added ViewPortWidth and ViewPortHeight properties
31939 - Added Wrap property
31940 - Added CaretMoved event
31941 - Removed some old debug code
31942 - Split() can now create soft splits
31943 - Added PreviousTag()/NextTag() to allow walking "tag-lists"
31944 - Added method to format existing text
31945 - Fixed size/alignment calculations to use viewport
31946 - RecalculateDocument now can handle changing line-numbers while
31950 - Added some wrap logic, we don't wrap if alignment is not left
31951 - Added casts for scrollbar var, base class switched types to
31952 also support RichTextBoxA
31953 - Implemented handling of scrollbar visibility flags
31956 - Switched scrollbars type to RichTextBoxScrollBars to support
31958 - Added tracking of canvas width/height
31959 - Switched scrollbars to be not selectable (to keep focus on text)
31960 - Added central CalculateDocument() method to handle all redraw
31962 - Added ReadOnly support
31963 - Added WordWrap support
31964 - Fixed handling of Enter key (we now treat it as a DialogKey)
31965 - Fixed caret positioning when h or v scroll is not zero
31966 - Fixed placing/generation of vertical scrollbar
31967 - Added CalculateScrollBars() method to allow updating scrollbar
31968 limits and visibility
31969 - Fixed handling of horizontal scroll
31970 - Added handling of vertical scroll
31971 - Implemented auto-'jump' when caret moves to close to a left or
31972 right border and there is text to be scrolled into view (currently
31973 there's the potential for a stack overflow, until a bug in
31974 scrollbar is fixed)
31976 2005-06-21 Geoff Norton <gnorton@customerdna.com>
31978 * XplatUIOSX.cs: Initial implementation of WM_ERASEBKGND
31980 2005-06-19 Alexander Olk <xenomorph2@onlinehome.de>
31984 - return application/x-zerosize for files with size zero
31985 (if no extension pattern matches).
31986 - check matches collection for strings too.
31987 - return only the first mime type if the name value
31988 collection has more than one mime type.
31990 2005-06-18 Jonathan Chambers <jonathan.chambers@ansys.com>
31992 * PropertyGrid.cs: Cleaned up some TODOs
31993 * PropertyGridView.cs: Added support for UITypeEditors
31995 2005-06-17 Jordi Mas i Hernandez <jordi@ximian.com>
31997 * DataGrid.cs: clears cached value
31999 2005-06-17 Jordi Mas i Hernandez <jordi@ximian.com>
32001 * DataGridTextBoxColumn.cs: new rows, speed improvements, fixes, readonly prop.
32002 * DataGridDrawingLogic.cs: new rows, speed improvements, fixes, readonly prop.
32003 * DataGrid.cs: new rows, speed improvements, fixes, readonly prop.
32004 * DataGridColumnStyle.cs: new rows, speed improvements, fixes, readonly prop.
32006 2005-06-16 Jordi Mas i Hernandez <jordi@ximian.com>
32008 * ThemeWin32Classic.cs: fixes colour
32010 2005-06-15 Peter Bartok <pbartok@novell.com>
32012 * MWFCategoryAttribute.cs: Added (Needed for PropertyGrid designer support)
32013 * MWFDescriptionAttribute.cs: Added (Needed for PropertyGrid designer support)
32014 * ButtonBase.cs: Added MWFCategory and MWFDescription attributes
32015 * Control.cs: Added some MWFCategory and MWFDescription attributes
32016 * ScrollBar.cs: Added some MWFCategory and MWFDescription attributes
32018 2005-06-15 Alexander Olk <xenomorph2@onlinehome.de>
32020 * Mime.cs, MimeGenerated.cs: First draft of MWF mime stuff, see Mime.cs for
32023 2005-06-14 Jordi Mas i Hernandez <jordi@ximian.com>
32025 * DataGridTextBoxColumn.cs: default datagrid settings for Default Styles, fixes
32026 * DataGridTableStyle.cs: default datagrid settings for Default Styles, fixes
32027 * DataGridDrawingLogic.cs: default datagrid settings for Default Styles, fixes
32028 * DataGridBoolColumn.cs: default datagrid settings for Default Styles, fixes
32029 * DataGrid.cs: default datagrid settings for Default Styles, fixes
32030 * DataGridColumnStyle.cs: default datagrid settings for Default Styles, fixes
32032 2005-06-13 Jackson Harper <jackson@ximian.com>
32034 * XplatUIX11.cs: Override SetAllowDrop on X11 so an error message
32035 isn't printed when the user enables dropping. (X11 does accept
32038 2005-06-13 Jackson Harper <jackson@ximian.com>
32040 * TreeView.cs: Remove some TODOS.
32042 2005-06-13 Jackson Harper <jackson@ximian.com>
32044 * Form.cs: Hook into the mdi framework.
32045 * MdiClient.cs: Use the base control collections add method so
32046 parents get setup correctly. Set the default back colour and dock
32048 * MdiChildContext.cs: New class, this bad actor handles an
32049 instance of an MDI window. Right now there is only basic
32050 support. You can drag, close, and resize windows. Minimize and
32051 Maximize are partially implemented.
32053 2005-06-13 Jackson Harper <jackson@ximian.com>
32055 * XplatUIX11.cs: Mash numbers together properly, otherwise we get
32056 freaky when both vals are negative. NOTE: There are probably other
32057 places in XplatUIX11 that this needs to be done.
32059 2005-06-13 Jordi Mas i Hernandez <jordi@ximian.com>
32061 * DataGrid.cs: implement missing methods, move KeyboardNavigation
32062 * DataGridColumnStyle.cs: fixes signature
32064 2005-06-12 Jackson Harper <jackson@ximian.com>
32066 * XplatUIX11.cs: Use sizing cursors similar to the ones on
32069 2005-06-11 Jackson Harper <jackson@ximian.com>
32071 * StatusBarPanel.cs: Signature cleanups. Implement
32074 2005-06-10 Jordi Mas i Hernandez <jordi@ximian.com>
32076 * DataGridTextBoxColumn.cs: Honors aligment
32077 * GridColumnStylesCollection.cs: Contains is case unsensitive
32078 * GridTableStylesCollection.cs: several fixes
32079 * DataGridTableStyle.cs: default column creation
32080 * DataGridDrawingLogic.cs: fixes
32081 * CurrencyManager.cs: ListName property
32082 * DataGrid.cs: multiple styles support
32083 * DataGridColumnStyle.cs: fixes
32086 2005-06-10 Peter Bartok <pbartok@novell.com>
32088 * Control.cs(Select): Moved SetFocus call to avoid potential
32089 loops if controls change the active control when getting focus
32090 * UpDownBase.cs: Fixes to allow proper keyboard focus after clicking
32091 the up/down buttons
32093 2005-06-10 Matthias Felgner <matthiasf@voelcker.ocm>
32095 * ImageListConverter.cs: Implemented
32097 2005-06-10 John BouAntoun <jba-mono@optusnet.com.au>
32099 * MonthCalendar.cs: Wired in NumericUpDown control for year
32101 2005-06-10 John BouAntoun <jba-mono@optusnet.com.au>
32103 * MonthCalendar.cs: Removed MonoTodo attributes on Click and
32104 DoubleClick events, since they are not meant to be fired.
32106 2005-06-09 Peter Bartok <pbartok@novell.com>
32108 * UpDownBase.cs, NumericUpDown.cs, DomainUpDown.cs: Integrated
32109 Jonathan's standalone controls into MWF, implemented missing
32110 events, attributes and methods; added xxxAccessible classes
32111 * AccessibleObject.cs: Made fields internal so other classes
32112 can change them if needed
32114 2005-06-09 Jonathan Gilbert <2a5gjx302@sneakemail.com>
32116 * UpDownBase.cs: Complete implementation
32117 * NumericUpDown.cs: Complete implementation
32118 * DomainUpDown.cs: Complete implementation
32120 2005-06-09 Jordi Mas i Hernandez <jordi@ximian.com>
32122 * DataGridTextBoxColumn.cs: drawing fixes
32123 * DataGridCell.cs: fixes ToString method to match MSNet
32124 * DataGridTableStyle.cs: fixes
32125 * DataGridBoolColumn.cs: fixes, drawing
32126 * DataGridDrawingLogic.cs: fixes, new methods
32127 * DataGridTextBox.cs: Keyboard and fixes
32129 - Keyboard navigation
32131 - Row selection (single, multiple, deletion, etc)
32134 2005-06-07 Jackson Harper <jackson@ximian.com>
32136 * ThemeWin32Classic.cs: Clear the background area when drawing
32139 2005-06-06 Peter Bartok <pbartok@novell.com>
32141 * ImageListStreamer.cs: Fixed signature for GetData
32142 * CheckBox.cs: Fixed base class for CheckBoxAccessibleObject
32144 - Added missing ChildAccessibleObject class
32145 - Added missing OnXXXFocus overrides, switched to using those
32146 instead of the event handler
32148 - Added Parent property for ControlAccessibleObject
32151 - Added ResetBindings()
32152 * ListBindingConverter.cs: Implemented some methods
32153 * ButtonBase.cs: Added missing ButtonBaseAccessibleObject class
32154 * ImageList.cs: Implemented basic handle scheme, removed TODOs
32155 * ContainerControl.cs: Fixed signature, now subscribing to the
32156 ControlRemoved event instead of overriding the handler, LAMESPEC
32157 * CurrencyManager.cs: Added missing attribute
32158 * MonthCalendar.cs: Added missing properties
32160 2005-06-06 Jordi Mas i Hernandez <jordi@ximian.com>
32162 * DataGridColumnStyle.cs: fixes for DataGridColumnStyle
32164 2005-06-06 Gaurav Vaish and Ankit Jain
32166 * DataSourceHelper.cs: Gaurav Vaish and Ankit Jain patch for databinding
32167 * DataGrid.cs: Gaurav Vaish and Ankit Jain patch for databinding
32169 2005-06-06 Jordi Mas i Hernandez <jordi@ximian.com>
32171 * Control.cs: fixes CreateParams Width / Height.
32173 2005-06-05 Peter Bartok <pbartok@novell.com>
32175 * Win32DnD.cs: Removed compilation warnings
32177 2005-06-05 Peter Bartok <pbartok@novell.com>
32179 * Control.cs (CreateParams): Since we don't know if one of the
32180 properties we use is overridden, lets make sure if we fail accessing
32181 we continue with a backup plan
32183 2005-06-05 Peter Bartok <pbartok@novell.com>
32186 - Removed debug output
32187 - Added MarshalAs attribute to ensure proper marshalling of FORMATETC
32189 - Plugged resource leak
32190 * XplatUIStructs.cs: Changed ClipboardFormats size to ushort, to match
32193 2005-06-05 Peter Bartok <pbartok@novell.com>
32195 * XplatUIWin32.cs: Removed DnD code
32196 * Win32DnD.cs: Implemented drop source and drop target functionality
32198 2005-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
32200 * UpDownBase.cs: remove duplicate addition of event, enable some code
32201 that was commented out.
32202 * NumericUpDown.cs: added missing attributes and Hexadecimal property.
32203 Validate input when a key is pressed. It works fine now for every
32204 combination of Hexadecimal. Only missing some drawing love when sharing
32205 space with other controls.
32207 2005-06-04 Peter Bartok <pbartok@novell.com>
32210 - We need to pass a window for DragDrop, so enable callback events
32211 - Added DnD callback events when being a DragSource
32212 * XplatUI.cs (StartDrag): Added window handle argument
32213 * XplatUIDriver.cs (StartDrag): Added window handle argument
32214 * QueryContinueDragEventArgs: Made fields internally accessible so
32215 drivers can set them
32216 * GiveFeedbackEventArgs: Made fields internally accessible so drivers
32219 2005-06-03 Jordi Mas i Hernandez <jordi@ximian.com>
32221 * DataGridTextBoxColumn.cs: column text editing
32222 * DataGridTableStyle.cs: Respect columns styles created by the user
32223 * DataGridDrawingLogic.cs: lots of drawing fixes and enhanments
32224 * DataGridBoolColumn.cs: bool column editing
32225 * DataGrid.cs: fixes to scrolling, properties, etc
32226 * DataGridTextBox.cs: handle keyboard
32227 * DataGridColumnStyle.cs: fixes
32229 2005-06-02 Jackson Harper <jackson@ximian.com>
32231 * ImageListStreamer.cs: Somewhat broken implementation of
32232 GetObjectData. The RLE needs some work to match MS properly.
32234 2005-06-02 Jackson Harper <jackson@ximian.com>
32236 * X11Dnd.cs: Attempting to keep at least one file in MWF
32239 2005-06-02 Peter Bartok <pbartok@novell.com>
32241 * X11DnD.cs: Use Marshal.SizeOf instead of sizeof, no /unsafe required
32244 2005-06-02 Peter Bartok <pbartok@novell.com>
32246 * Control.cs: Removed MonoTODO from DoDragDrop and added call to Xplat
32247 * XplatUI.cs: Added DoDragDrop() method
32248 * XplatUIDriver.cs: Added DoDragDrop() method
32250 2005-06-02 Jackson Harper <jackson@ximian.com>
32252 * Splitter.cs: Implement BorderStyle.
32254 2005-06-02 Jackson Harper <jackson@ximian.com>
32256 * XplatUIX11.cs: Tie into the X11Dnd subsystem.
32257 * X11Dnd.cs: New file. A subsystem that handles drag and drop on
32260 2005-06-02 Peter Bartok <pbartok@novell.com>
32263 - Added Data setter
32264 - Fixed broken insertion code for SetData, now also
32265 overwrites any existing entry of the same format name
32266 * Hwnd.cs: Added list of pointers that automatically gets
32267 freed when the window is disposed
32268 * XplatUI.cs: Call driver initialization method when loading
32271 - OnDragLeave takes EventArgs, not DragEventArgs
32272 - Added setting of WS_EX_ACCEPTFILES style when dropping is
32274 - Forces style update when drop state changes
32275 * XplatUIWin32.cs: Implemented Drag'n'Drop (as good as possible,
32276 not perfect since we cannot (yet) call the IDataObject.GetData()
32277 method, we keep getting 0x80004005 error, dunno why)
32279 2005-06-02 Peter Bartok <pbartok@novell.com>
32281 * DragEventArgs.cs: Make fields internal so we can cache the
32282 object and re-set the fields from XplatUI
32284 2005-06-02 Jackson Harper <jackson@ximian.com>
32286 * Control.cs: Add some internal methods so the DnD subsystem can
32287 raise DnD events. Also call into the driver when AllowDrop is set.
32289 * XplatUIDriver.cs: New method for setting whether or not a window
32290 is allowed to accept drag and drop messages.
32292 2005-06-01 Jordi Mas i Hernandez <jordi@ximian.com>
32294 * ScrollBar.cs: Make sure that values sent in Scroll events
32295 are always between Maximum and Minimum.
32297 2005-06-01 Marek Safar <marek.safar@seznam.cz>
32299 * Menu.cs: Call MenuChanged when menuitem visibility has been
32301 * MenuItem.cs: Rebuild menu when item is (not) visible.
32302 * MainMenu.cs: MainMenu has special MenuChanged.
32303 * Theme.cs: Caption and FrameBorderSize are not fixed.
32304 * XplatUI.cs: Added CaptionHeight,FrameBorderSize.
32305 * XplatUIDriver.cs: Introduced Caption and FrameBorderSize.
32307 * XplatUIOSX: Caption and FrameBorderSize not implemented yet.
32308 * XplatUIWin32.cs: Get Caption and FrameBorderSize from system.
32310 2005-05-30 Jackson Harper <jackson@ximian.com>
32312 * DataFormat.cs: We can't statically initialize this stuff because
32313 it calls into the xplatui and could create a loop. So we lazy init
32316 2005-05-28 Jackson Harper <jackson@ximian.com>
32318 * Control.cs: Proper implementation of Product(Name/Version).
32320 2005-05-27 Jackson Harper <jackson@ximian.com>
32322 * DataObject.cs: Dont crash if no data is found.
32324 2005-05-26 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
32325 * MdiClient.cs: Add missing Localizable attribute to BackgroundImage property
32326 as per status page, guessing it should be set to true
32328 2005-05-26 Jordi Mas i Hernandez <jordi@ximian.com>
32330 * DataGridTextBoxColumn.cs: Draws text and basic text formatting
32331 * DataGridTableStyle.cs: set proper formatting text, def header text
32332 * ThemeWin32Classic.cs: new themable paramaters
32333 * DataGridBoolColumn.cs: paint check box, get data, fixes
32334 * DataGridDrawingLogic.cs: huge improvements in painting, fixes, new methods
32335 * DataGrid.cs: fixes properties, implements vertical and horizontal scrolling
32336 * DataGridColumnStyle.cs: fixes
32337 * Theme.cs: new themable paramaters
32339 2005-05-26 Peter Bartok <pbartok@novell.com>
32341 * ContainerControl.cs: Pass AdjustFormScrollbars() call on to base
32343 2005-05-24 Jonathan S. Chambers <jonathan.chambers@ansys.com>
32344 * Control.cs: Fixed LowOrder and HighOrder to preserve sign.
32346 2005-05-24 Peter Bartok <pbartok@novell.com>
32348 * OpenFileDialog.cs, Form.cs, Menu.cs, GroupBox.cs, UserControl.cs,
32349 Label.cs, DataGridTextBoxColumn.cs, PropertyGrid.cs, ErrorProvider.cs
32350 Splitter.cs, Control.cs, FontDialog.cs, TabPage.cs,
32351 FolderBrowserDialog.cs, HelpProvider.cs, DataGridTableStyle.cs,
32352 NotifyIcon.cs, FileDialog.cs, ListView.cs, SaveFileDialog.cs,
32353 ToolBarButton.cs, ImageList.cs, DataGridBoolColumn.cs, Panel.cs,
32354 DataGrid.cs, DataGridTextBox.cs, ListBox.cs, TrackBar.cs,
32355 AxHost.cs, TabControl.cs, ScrollableControl.cs, ToolBar.cs,
32356 DataGridColumnStyle.cs, PictureBox.cs, DateTimePicker.cs,
32357 StatusBar.cs, MonthCalendar.cs, TreeView.cs: Added
32358 missing attributes, etc
32359 * DataGridPreferredColumnWidthTypeConverter.cs: Added
32361 2005-05-24 Peter Bartok <pbartok@novell.com>
32363 * Help.cs: Added, implemented trivial functions, throws up MessageBox
32364 when user tries to get help
32365 * DataObject.cs, DataFormats.cs, LinkArea.cs,
32366 SelectionRangeConverter.cs, Clipboard.cs : Removed unused variables
32367 to suppress warnings
32368 * XplatUIWin32.cs, XplatUIOSX.cs, XplatUIX11.cs: Removed unused code to
32369 avoid unreachable code warning
32371 2005-05-20 Peter Bartok <pbartok@novell.com>
32373 * CursorConverter.cs (ConvertTo): Switched to use Cursor.GetObjectData
32375 2005-05-20 Jordi Mas i Hernandez <jordi@ximian.com>
32377 * DataGridTextBoxColumn.cs: Basic painting methods
32378 * DataGridTableStyle.cs: Set table style in the column
32379 * ThemeWin32Classic.cs: Use Theme for colors
32380 * DataGridDrawingLogic.cs: Implement more drawing
32381 * DataGrid.cs: drawing, theming, enhacements, fixes
32382 * DataGridColumnStyle.cs: fixes, drawing
32383 * Theme.cs: theming for Datagrid
32385 2005-05-20 Peter Bartok <pbartok@novell.com>
32387 * Cursor.cs: Implemented GetObjectData() method
32389 2005-05-20 Peter Bartok <pbartok@novell.com>
32391 * Cursors.cs: Added setting of cursor name
32393 - Implemented constructors
32394 - Implemented Draw and DrawStretched
32395 - Implemented Current property
32396 - Implemented == and != operators
32397 - Implemented Dispose()
32398 - Implemented ToString
32399 - Added missing attributes
32401 - Added missing reset for OverrideCursor when DoEvents is called
32402 - Fixed creation of cursor, logic was wrong
32404 - Added missing reset for OverrideCursor when DoEvents is called
32405 - Fixed creation of cursor, bit arrays were swapped
32406 * Clipboard.cs: Removed obsolete MonoTODO attribute
32408 2005-05-20 Jordi Mas i Hernandez <jordi@ximian.com>
32410 * ComboBox.cs: fixes OnSelectedItemChanged
32411 * ControlBindingsCollection.cs: fixes item range check
32413 2005-05-20 Jordi Mas i Hernandez <jordi@ximian.com>
32416 - Calc preferred height properly
32417 - Implement missing properties
32419 * NumericUpDown.cs: Implement missing events
32421 2005-05-19 Jackson Harper <jackson@ximian.com>
32423 * TabControl.cs: New method that resizes the tab pages before
32424 redrawing them. This as needed as the control is double buffered
32425 and sizing will not be recalculated unless ResizeTabPages is
32427 * TabPage.cs: Set base.Text instead of Text in the constructor so
32428 that UpdateOwner does not get called. Use the new Redraw method of
32429 TabControl instead of Refresh so the sizing is recalculated.
32430 * ThemeWin32Classic.cs: Draw the text for button tabs.
32432 2005-05-19 Jackson Harper <jackson@ximian.com>
32434 * Control.cs: Paint control background images. Fix typo where
32435 PaintControlBackground was not getting called correctly.
32437 2005-05-19 Peter Bartok <pbartok@novell.com>
32439 * ScrollableControl.cs (DisplayRectangle): Undid my last change until
32440 I can investigate, apparently I broke FileDialog
32442 2005-05-19 Marek Safar <marek.safar@seznam.cz>
32444 * AxHost.cs: Some simple properties.
32445 * Control.cs: window must be accessible after ctor.
32446 * Form.cs: Added TransparencyKey property.
32447 * TextBoxBase.cs: Implemented Clear. Text property can be null.
32448 * XplatUIWin32.cs: SetBorderStyle implemented.
32450 2005-05-18 Peter Bartok <pbartok@novell.com>
32452 * DataObject.cs: Entries are not global but particular to the
32453 DataObject, now it behaves that way
32454 * XplatUIWin32.cs: Implemented Clipboard methods
32455 * Clipboard.cs: Implemented
32456 * ScrollableControl.cs (DisplayRectangle): Fixed calculation
32457 * XplatUIOSX.cs: Updated to final clipboard prototypes
32458 * XplatUIX11.cs: Implemented Clipboard methods
32459 * XplatUIDriver.cs: Updated to final clipboard prototypes
32460 * XplatUIStructs.cs:
32461 - Added BITMAPINFOHEADER struct
32462 - Added ClipboardFormats enum
32464 - Added ClipboardStruct
32465 - Added Atom enum items for clipboard types
32466 - Fixed atom types for Selection event structures
32468 - Added internal properties and methods for drivers to enumerate
32470 - Switched initialization method to allow drivers to assign their
32471 own IDs even for the MS predefined clipboard IDs
32472 * XplatUI.cs: Updated to final clipboard interface
32474 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
32475 * PropertyGridView.cs: Fixed compiler warnings.
32477 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
32478 * PropertyGrid.cs: Added some event calls
32479 * PropertyGridView.cs: Change drawing code to use double buffering
32480 * PropertyGridTextBox.cs: Changed Text property name
32481 * GridItem.cs: Added Bounds property.
32482 * GridEntry.cs: Added Bounds property.
32484 2005-05-17 Lluis Sanchez Gual <lluis@novell.com>
32486 * Binding.cs: Use IsInstanceOfType instead of IsAssignableFrom
32487 since GetType() may not return the correct type if the object is
32490 2005-05-17 Jordi Mas i Hernandez <jordi@ximian.com>
32492 * TreeNodeCollection.cs: fixes get/set item ranges
32494 2005-05-15 Jordi Mas i Hernandez <jordi@ximian.com>
32496 * ListBox.cs: Kazuki Oikawa's PreferredHeight and ItemHeight fixes
32498 2005-05-15 Jordi Mas i Hernandez <jordi@ximian.com>
32500 * ComboBox.cs: Fix item range comparation
32501 * ListView.cs: Fix item range comparation
32503 2005-05-03 Alexander Olk <xenomorph2@onlinehome.de>
32506 - Clear example panel when OnPaint is called
32507 - Better solution for displaying the example panel text
32508 - Select default indexes in the ListBoxes
32510 2005-05-11 Geoff Norton <gnorton@customerdna.com>
32512 * XplatUIOSX.cs: Avoid painting into invisible views. Fixes #74926
32514 2005-05-11 Peter Bartok <pbartok@novell.com>
32516 * LinkArea.cs: Added and implemented LinkAreaTypeConverter class
32517 * SelectionRangeConverter.cs: Implemented
32518 * PropertyGrid.cs: Fixed attribute value
32520 - Invoke(): Don't call Begin/EndInvoke if it is not neccessary
32521 - Added Sebastien Pouliot's CAS Stack Propagation fixes
32522 * XplatUIDriver.cs: Added new XplatUIDriverSupport class, for code
32523 that's common to all drivers. First methods to go there are
32524 Sebastien Pouliot's CAS Stack Propagation helper methods
32525 * XplatUIWin32.cs, XplatUIX11.cs, AsyncMethodData.cs: Fixes by
32526 Sebastien Pouliot for CAS Stack Propagation
32528 2005-05-11 Geoff Norton <gnorton@customerdna.com>
32531 XplatUIOSX.cs: More cosmetic cleanup courtesy of Artyom Tyazhelov (Artyom.Tyazhelov@helmes.ee)
32533 2005-05-12 Jordi Mas i Hernandez <jordi@ximian.com>
32535 * DataGridTextBoxColumn.cs: fixed some members
32536 * GridColumnStylesCollection.cs: indexed column is case insensitive
32537 * DataGridTableStyle.cs: fixes
32538 * ThemeWin32Classic.cs: add new theme parameter
32539 * Theme.cs: add new theme parameter
32540 * DataGridDrawingLogic.cs: Datagrid's drawing logic
32541 * DataGrid.cs: fixes, new internal properties, etc.
32542 * DataGridColumnStyle.cs: allows to set grid value
32545 2005-05-10 Peter Bartok <pbartok@novell.com>
32547 * AccessibleObject.cs:
32548 - Removed MonoTODO attribute on help, method is correct
32549 - Fixed Bounds property
32550 * AxHost.cs: Moved MonoTODO
32551 * ButtonBase.cs: Now setting AccessibleObject properties
32552 * RadioButton.cs: Setting proper AccessibleObject role
32553 * CheckBox.cs: Setting proper AccessibleObject role
32554 * ControlBindingsCollection.cs: Added properties, methods and attributes
32555 * DataFormats.cs: Fixed awkward internal API, and changed to enable
32556 userdefined DataFormats.Format items as well
32557 * ListControl.cs: Removed data_member from the public eye
32558 * OpenFileDialog.cs:
32559 - Made class sealed
32560 - Added missing attributes
32561 * SaveFileDialog.cs: Added missing attributes
32562 * ImageListStreamer.cs: Fixed code that caused warnings
32563 * LinkLabel.cs: Removed unreachable code
32564 * TreeView.cs: Fixed code that caused warnings
32565 * PropertyGridView.cs: Fixed code that caused warnings
32566 * GridColumnStylesCollection.cs: Added missing attributes
32567 * GridTableStylesCollection: Added missing attribute
32568 * PropertyManager: Added .ctor
32569 * SecurityIDType: Added
32570 * DataObject.cs: Implemented class
32571 * LinkArea.cs: Added missing attribute
32573 2005-05-11 Jordi Mas i Hernandez <jordi@ximian.com>
32575 * RadioButton.cs: call base method to allow to fire OnClick event
32576 * UpDownBase.cs: OnMouseUp call base method
32577 * CheckedListBox.cs: call base method before returning
32578 * TrackBar.cs: call base method before returning
32581 2005-05-10 Peter Bartok <pbartok@novell.com>
32583 * XplatUIX11.cs: Fix for #74902, check pending timers when peeking
32586 2005-05-10 Peter Bartok <pbartok@novell.com>
32588 * DataFormats.cs: Implemented
32589 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs,
32590 XplatUIX11.cs: Added Clipboard APIs
32591 * XplatUIWin32.cs: Implemented Clipboard APIs
32592 * FolderBrowserDialog.cs: Added missing event, attributes
32594 2005-05-10 Jordi Mas i Hernandez <jordi@ximian.com>
32596 * CheckBox.cs: call base method to allow to fire OnClick event
32598 2005-05-09 Sebastien Pouliot <sebastien@ximian.com>
32600 * XplatUI.cs: Use PlatformID.Unix under NET_2_0.
32602 2005-05-06 Peter Bartok <pbartok@novell.com>
32604 * XplatUIX11.cs: Redid Jackson's fix, it was causing a busy loop
32605 * Screen.cs: Implemented
32606 * HelpNavigator.cs: Added
32607 * XplatUIWin32.cs: Added SystemParametersInfo call, fixed WorkArea
32609 * HelpProvider.cs: Implemented all we can do until we have a CHM
32610 help library (which means that "What's This" does work now)
32612 2005-05-06 Jackson Harper <jackson@ximian.com>
32614 * XplatUIX11.cs: Fix waking up the main loop.
32616 2005-05-05 Peter Bartok <pbartok@novell.com>
32618 * XplatUI.cs: Updated revision
32619 * Form.cs: Removed enless loop
32620 * GroupBox.cs (OnPaint): Added call to base.OnPaint()
32621 * Label.cs (OnPaint): Added call to base.OnPaint()
32622 * ToolTip.cs: Made ToolTipWindow reusable for other controls
32623 * LinkLabel.cs (OnPaint): Added call to base.OnPaint()
32624 * UpDownBase.cs (OnPaint): Moved base.OnPaint() call to end of method
32626 * ButtonBase.cs: Moved base.OnPaint() call to end of method
32627 * ThemeWin32Classic.cs: Replaced references to ToolTip with references
32628 to ToolTip.ToolTipWindow for drawing and size methods; this allows
32629 reuse of ToolTipWindow by other controls
32630 * SizeGrip.cs: Moved base.OnPaint() call to end of method
32631 * XplatUIX11.cs: Now clipping drawing area (experimental)
32632 * PictureBox.cs: Moved base.OnPaint() call to end of method
32633 * Theme.cs: Fixed ToolTip abstracts to match new format
32634 * ErrorProvider.cs: Implemented
32636 2005-05-05 Jordi Mas i Hernandez <jordi@ximian.com>
32638 * Label.cs: fire events using OnAutoSizeChanged and OnTextAlignChanged
32642 - Implements LinkBehavior
32643 - Fixes many issues
32645 2005-05-03 Jackson Harper <jackson@ximian.com>
32647 * ListView.cs: Calculate the scrollbar positioning on resize and
32648 paint, so they get put in the correct place.
32650 2005-05-03 Alexander Olk <xenomorph2@onlinehome.de>
32652 * ColorDialogs.cs: The small color panels are now handled by
32653 SmallColorControl. This fixes drawing of the focus rectangle
32654 and adds a 3D border.
32656 2005-05-03 Peter Bartok <pbartok@novell.com>
32658 * Control.cs: Modified version of Jonathan Chamber's fix for
32661 2005-05-03 Jackson Harper <jackson@ximian.com>
32663 * ListView.cs: Remove redraw variable. Control now handles whether
32664 or not a redraw needs to be done, and will only raise the paint
32665 event if redrawing is needed.
32667 2005-05-03 Jackson Harper <jackson@ximian.com>
32669 * Splitter.cs: No decorations for the splitter form. Cache the
32672 2005-05-03 Jackson Harper <jackson@ximian.com>
32674 * TreeView.cs: Use dashed lines to connect nodes. Use the
32675 ControlPaint method for drawing the focus rect instead of doing
32678 2005-05-02 Peter Bartok <pbartok@novell.com>
32680 * LinkLabel.cs: Fixed the fixes from r43566 and 43521
32682 2005-04-29 Jackson Harper <jackson@ximian.com>
32684 * ThemeWin32Classic.cs: Don't clear the GC that will clear the
32685 entire image buffer. Just clear the clipping rectangle.
32687 2005-04-29 Jackson Harper <jackson@ximian.com>
32689 * ThemeWin32Classic.cs: Don't draw list view items that are
32690 outside the clipping rectangle.
32692 2005-04-29 Jordi Mas i Hernandez <jordi@ximian.com>
32694 * ListBox.cs: added horizontal item scroll
32696 2005-04-29 Jackson Harper <jackson@ximian.com>
32698 * ThemeWin32Classic.cs: Remove some old debug code that was
32699 causing flicker with the new double buffering code.
32701 2005-04-29 John BouAntoun <jba-mono@optusnet.com.au>
32703 * MonthCalendar.cs, DateTimePicker.cs: Made monthcalendar dropdwon
32704 behave like combobox and comboboxlist (still not sure if this is
32707 2005-04-28 Jackson Harper <jackson@ximian.com>
32709 * ThemeWin32Classic.cs: Don't fill the middle of progress
32710 bars. This fills areas outside of the clip bounds that don't need
32713 2005-04-28 Jackson Harper <jackson@ximian.com>
32715 * Control.cs: Don't expose functionality to touch the image buffers.
32717 * ListView.cs: We do not need to (and no longer can) manipulate
32718 the image buffers directly. All of this is handled by Control.
32720 2005-04-28 Peter Bartok <pbartok@novell.com>
32722 * RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
32723 RichTextBoxScrollBars.cs, RichTextBoxStreamType.cs,
32724 RichTextBoxFinds.cs, RichTextBoxWordPunctuations.cs: Added
32726 2005-04-28 Jordi Mas i Hernandez <jordi@ximian.com>
32729 - Adjust control's height for non-simple comboboxes (bug fix)
32731 * MenuAPI.cs: remove unused var
32732 * ScrollBar.cs: remove unsed var
32734 * ListBox.cs: unselect items when clearing
32736 2005-04-28 Jordi Mas i Hernandez <jordi@ximian.com>
32738 * ListControl.cs: honors OnPositionChanged and default Selected Item
32739 * ListBox.cs: unselect items when clearing
32741 2005-04-27 Jackson Harper <jackson@ximian.com>
32743 * X11Keyboard.cs: Initialize a default keyboard and give a warning
32744 if a "correct" keyboard is not found. This will make us not crash,
32745 but might give some users bad keyboard layouts...seems to be the
32746 same thing rewind does.
32748 2005-04-27 Jackson Harper <jackson@ximian.com>
32750 * BindingManagerBase.cs: Attach the current/position changed
32751 handlers to their respective events.
32753 2005-04-27 Jackson Harper <jackson@ximian.com>
32755 * Control.cs: Make sure that the first WM_PAINT does a full draw,
32757 * ThemeWin32Classic.cs: Don't fill the background for picture
32758 boxes. This could overright user drawing.
32759 * ComboBox.cs: Just fill the clipping rect not the entire client
32760 rect when drawing the background. This prevents pieces of the
32761 image buffer from getting overwritten and is theoretically faster.
32763 2005-04-26 Jordi Mas i Hernandez <jordi@ximian.com>
32765 * ComboBox.cs: Databinding support fixes, fire missing events
32766 * ListControl.cs: implement missing methods and properties, fixes
32767 * ThemeWin32Classic.cs: Databiding support on Drawing
32768 * CheckedListBox.cs: Databinding support fixes, fire missing events
32769 * ListBox.cs: Databinding support fixes, fire missing events
32771 2005-04-25 Peter Bartok <pbartok@novell.com>
32773 * LinkLabel.cs: Length of LinkArea is not allowed to be negative
32775 2005-04-25 Jackson Harper <jackson@ximian.com>
32777 * TreeView.cs: Use the horizontal scrollbars height not width when
32778 determining how much of the client area is available.
32780 2005-04-25 Jackson Harper <jackson@ximian.com>
32782 * Control.cs: Double buffering is handled differently now. As per
32783 the spec, the extra buffer is created in the WM_PAINT message and
32784 passed down to the control's drawing code.
32792 * PropertyGridView.cs:
32804 * DateTimePicker.cs:
32806 * TreeView.cs: Update to new double buffering system.
32807 * MonthCalendar.cs: Uncomment block, as Capture is now
32808 working. Update to new double buffering
32809 * LinkLabel.cs: Lazy init the link collection. Update to new double buffering
32810 * PaintEventArgs.cs: New internal method allows us to set the
32811 graphics object. This is used for double buffering.
32812 * ThemeWin32Classic.cs: Give the picture box drawing code a clip
32813 rectangle. The internal paint_area var has been removed from
32814 StatusBar. The clipping rect should be used instead.
32815 * Theme.cs: Give the PictureBox drawing method a clipping rect.
32816 * TabPage.cs: The RefreshTabs method was removed, so just call the
32817 tab controls Refresh method now.
32818 * TabControl.cs: Update to new double buffering. Make sure the
32819 handle is created before sizing the tab pages, otherwise we will
32820 get stuck in a loop.
32822 2005-04-24 Borja Sanchez Zamorano <borsanza@gmail.com>
32824 * LinkLabel.cs: Fix typo, bug #74719; patch
32825 from Borja Sanchez Zamorano
32827 2005-04-22 Jackson Harper <jackson@ximian.com>
32829 * TreeNode.cs: Implement Handle stuff.
32830 * TreeView.cs: Utility methods so nodes can get/lookup by handle.
32832 2005-04-22 Jordi Mas i Hernandez <jordi@ximian.com>
32834 * DataGridTextBoxColumn.cs: call base constructors, fixes
32835 * GridColumnStylesCollection.cs: missing events, methods, and functionality
32836 * GridTableStylesCollection.cs: fixes, check duplicate mapping names
32837 * DataGridTableStyle.cs: implements create default column styles
32838 * DataGridBoolColumn.cs: which types can handle
32839 * DataGrid.cs: missing methods, fixes, new functionality
32840 * DataGridColumnStyle.cs: fixes
32842 2005-04-20 Alexander Olk <xenomorph2@onlinehome.de>
32843 * FolderBrowserDialog.cs:
32844 - Use a thread to fill the TreeView
32845 - Adjusted some sizes
32847 2005-04-19 Peter Bartok <pbartok@novell.com>
32849 * LinkLabel.cs: (Re-)create the pieces when setting the Text
32850 property. Fixes #74360.
32852 2005-04-19 Jackson Harper <jackson@ximian.com>
32854 * XEventQueue.cs: Lock when getting the lockqueue size.
32855 * PictureBox.cs: Call base OnPaint
32857 2005-04-19 Peter Bartok <pbartok@novell.com>
32859 * XplatUIX11.cs: Fixed bug introduced with the HWND rewrite, Async
32860 messages were no longer being processed (this broke BeginInvoke)
32863 2005-04-18 Jackson Harper <jackson@ximian.com>
32865 * TreeView.cs: buglet that caused node images to get drawn
32866 regardless of whether or not they were in the clipping rectangle.
32868 2005-04-18 Jackson Harper <jackson@ximian.com>
32870 * CurrencyManager.cs: There are four rules for GetItemProperties:
32871 - If the type is an array use the element type of the array
32872 - If the type is a typed list, use the type
32873 - If the list contains an Item property that is not an object, use
32875 - use the first element of the list if there are any elements in
32878 2005-04-17 Jackson Harper <jackson@ximian.oom>
32880 * TreeView.cs: Calculate plus minus and checkbox bounds when there is a
32881 click. This handles offsets for scrolling properly and reduces
32882 memory. Also fixed GetNode to not offset now that TopNode works
32884 * TreeNode.cs: No longer need to track the plus minus or checkbox bounds.
32886 2005-04-17 Jackson Harper <jackson@ximian.com>
32888 * CursorConverter.cs: Initial implementation.
32890 2005-04-15 Jordi Mas i Hernandez <jordi@ximian.com>
32892 * ListControl.cs: work towards complex data binding support on ListControl
32893 * CurrencyManager.cs: work towards complex data binding support on ListControl
32894 * ListBox.cs: work towards complex data binding support on ListControl
32897 2005-04-15 Jordi Mas i Hernandez <jordi@ximian.com>
32899 * GridTableStylesCollection.cs: fixes name and constructor
32900 * DataGridTableStyle.cs: fixes
32901 * DataGridBoolColumn.cs: fixes names and constructors
32902 * DataGrid.cs: define methods and properties. Some init implementations
32903 * DataGridCell.cs: define methods and properties. Some init implementations
32904 * GridTablesFactory.cs: Define methods and properties
32906 2005-04-15 Geoff Norton <gnorton@customerdna.com>
32908 * XplatUIOSX.cs: Handle proper mouse tracking even if the current
32909 graphics port changes. We still want the coordinates in global screen
32912 2005-04-14 Jackson Harper <jackson@ximian.com>
32914 * TreeView.cs: Handle clicks when plus minus is disabled. Don't
32915 check plus minus or checkbox clicks unless those features are enabled.
32917 2005-04-14 Jackson Harper <jackson@ximian.com>
32919 * TreeView.cs: Add methods for setting the top and bottom visible
32920 nodes. TreeNode::EnsureVisible uses these methods.
32921 * TreeNode.cs: Implement EnsureVisible
32923 2005-04-13 Jordi Mas i Hernandez <jordi@ximian.com>
32925 * Form.cs: Pospone menu assignation if the window has not been created yet
32926 * XplatUIWin32.cs: Fixes Win32SetWindowPos, then does not change window
32929 2005-04-12 Jackson Harper <jackson@ximian.com>
32931 * TreeView.cs: Set the TopNode properly when scrolling
32932 occurs. This has the added benifit of reducing the amount of
32933 walking that needs to be done when drawing. Also removed an old
32935 * OpenTreeNodeEnumerator.cs: Fix moving backwards.
32937 2005-04-11 Jordi Mas i Hernandez <jordi@ximian.com>
32939 * Timer.cs: fixes interval setting when the timer is already enabled
32941 2005-04-10 Alexander Olk <xenomorph2@onlinehome.de>
32943 * FolderBrowserDialog.cs: First approach
32945 2005-04-09 Peter Bartok <pbartok@novell.com>
32947 * FolderBrowserDialog: Added
32949 2005-04-07 Jordi Mas i Hernandez <jordi@ximian.com>
32951 * LinkLabel.cs: move drawing code into the theme
32952 * ThemeWin32Classic.cs: drawing code and painting background bugfix
32953 * Theme.cs: define DrawLinkLabel method
32955 2005-04-05 Jackson Harper <jackson@ximian.com>
32957 * BindingContext.cs: Use weak references so these bad actors don't
32958 stay alive longer then they need to.
32960 2005-04-05 Jackson Harper <jackson@ximian.com>
32962 * ListControl.cs: Basic implementation of complex databinding.
32964 * ListBox.cs: Add calls to ListControl databinding methods.
32966 2005-04-05 Alexander Olk <xenomorph2@onlinehome.de>
32969 - Don't change PopupButtonState to Normal when the
32970 PopupButton gets pressed several times.
32971 - Renamed ButtonPanel to PopupButtonPanel
32973 2005-04-05 Jordi Mas i Hernandez <jordi@ximian.com>
32975 * ColorDialog.cs: Use cached objects instead of creating them
32976 * LinkLabel.cs: Use cached objects instead of creating them
32977 * Splitter.cs: Use cached objects instead of creating them
32978 * FontDialog.cs: Use cached objects instead of creating them
32979 * PropertyGridView.cs: Use cached objects instead of creating them
32980 * MessageBox.cs: Use cached objects instead of creating them
32981 * FileDialog.cs: Use cached objects instead of creating them
32982 * ThemeWin32Classic.cs: Use cached objects instead of creating them
32983 * TreeView.cs: Use cached objects instead of creating them
32985 2005-04-04 Jordi Mas i Hernandez <jordi@ximian.com>
32987 * Control.cs: use Equals to compare the font since no == op
32988 * ScrollBar.cs: use Equals to compare the font since no == op
32990 2005-04-04 Alexander Olk <xenomorph2@onlinehome.de>
32992 * SaveFileDialog.cs: Open stream in OpenFile with FileMode Create
32994 2005-04-01 Jackson Harper <jackson@ximian.com>
32996 * Binding.cs: Implement IsBinding.
32997 * BindingManagerBase.cs:
32998 * PropertyManager.cs:
32999 * CurrencyManager.cs: Add IsSuspended property.
33001 2005-04-01 Jackson Harper <jackson@ximian.com>
33003 * Binding.cs: Had some IsAssignableFrom calls backwards.
33005 2005-04-01 Jackson Harper <jackson@ximian.com>
33007 * Binding.cs: Handle null data members when pulling data.
33008 * PropertyManager.cs: Handle the data member being a property that
33011 2005-04-01 Jordi Mas i Hernandez <jordi@ximian.com>
33013 * DataGridTextBoxColumn.cs: fixes signature
33014 * DataGrid.cs: calls right constructor
33016 2005-04-01 Jordi Mas i Hernandez <jordi@ximian.com>
33018 * DataGridTextBoxColumn.cs: implements DataGridTextBoxColumn class
33019 * GridColumnStylesCollection.cs: implements GridColumnStylesCollection
33020 * GridTableStylesCollection.cs: implements GridTableStylesCollection
33021 * DataGridTableStyle.cs: implements DataGridTableStyle
33022 * DataGridBoolColumn.cs: implements DataGridBoolColumn
33023 * DataGridTextBox.cs: implements DataGridTextBox
33024 * DataGridColumnStyle.cs: implements DataGridColumnStyle
33026 2005-03-31 Alexander Olk <xenomorph2@onlinehome.de>
33028 * FileDialog.cs: Added simple PopupButton class for ButtonPanel
33030 2005-03-29 Peter Bartok <pbartok@novell.com>
33033 - Properly implemented CompanyName property
33034 - Fixed LocalUserAppDataPath and UserAppDataPath, now properly
33035 returns a path that includes CompanyName, ProductName and
33036 Version (fixes bug #70330)
33038 2005-03-29 Stefan Buehler <sbuehler@gmx.ch>
33040 * TabPage.cs: Don't use Owner.DisplayRectangle unless owner is valid,
33043 2005-03-28 Alexander Olk <xenomorph2@onlinehome.de>
33045 * FileDialog.cs, SaveFileDialog.cs OpenFileDialog.cs:
33047 - Added ReadOnly CheckBox
33048 - Further refactoring: moved some code from Open-/SaveFileDialog
33051 2005-03-28 Alexander Olk <xenomorph2@onlinehome.de>
33053 * OpenFileDialog.cs: Fixed CheckFileExists
33055 Moved FileView and DirComboBox outside FileDialog class.
33056 They can now be used outside FileDialog
33058 2005-03-27 Alexander Olk <xenomorph2@onlinehome.de>
33060 * FileDialog.cs: Added a contextmenu to change ShowHiddenFiles
33061 * SaveDialog.cs, OpenFileDialog.cs: Fixes for Reset() method
33063 2005-03-27 Alexander Olk <xenomorph2@onlinehome.de>
33065 * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
33066 - Added missing CreatePrompt property in SaveDialog
33067 - Overall SaveDialog handling should be better now
33068 - Added non standard ShowHiddenFiles property
33069 - Added extension, CreatePrompt and OverwritePrompt support in SaveDialog
33070 - Added InitialDirectory and RestoreDirectory support
33072 2005-03-26 Alexander Olk <xenomorph2@onlinehome.de>
33074 * FileDialog.cs: Made dirComboBox usable
33076 2005-03-24 Alexander Olk <xenomorph2@onlinehome.de>
33078 * FileDialog.cs: Added Filter support (case sensitiv)
33080 2005-03-24 Jackson Harper <jackson@ximian.com>
33082 * TabControl.cs: Need a couple more pixels for the lines.
33084 2005-03-23 Jackson Harper <jackson@ximian.com>
33086 * TabControl.cs: Give the tab page focus when it is selected.
33088 2005-03-23 Jackson Harper <jackson@ximian.com>
33090 * TabControl.cs: Account for the drawing of tabs borders when
33091 invalidating. If the slider was clicked dont do click detection on
33094 2005-03-23 Jackson Harper <jackson@ximian.com>
33096 * TabControl.cs: Fix typo, emilinates an unneeded expose event.
33098 2005-03-22 Jonathan Chambers <jonathan.chambers@ansys.com>
33100 * CategoryGridEntry.cs: Added
33101 * GridItem.cs: Added helper properties
33102 * PropertyGridTextBox.cs: Custom textbox control for PropertyGrid.
33103 * GridEntry.cs: Updated code for collection
33104 * PropertyGrid.cs: Cleaned up some formatting
33105 * PropertyGridView.cs: Added drop down functionality for enums.
33106 * GridItemCollection.cs: Added enumerator logic
33107 * PropertyGridEntry.cs: Added
33109 2005-03-19 Alexander Olk <xenomorph2@onlinehome.de>
33112 - Removed unnecessary commented code
33113 - Fixed handling for entering the filename manually in the combobox
33115 2005-03-19 Alexander Olk <xenomorph2@onlinehome.de>
33117 * FileDialog.cs, OpenFileDialog.cs: OpenFileDialog Multiselect now works
33119 2005-03-18 Peter Bartok <pbartok@novell.com>
33121 * ThemeWin32Classic.cs: Moved listview column headers a bit, to avoid
33122 them being touching the border
33124 2005-03-18 Peter Bartok <pbartok@novell.com>
33126 * TextControl.cs: Quick hack to center text better
33128 2005-03-18 Peter Bartok <pbartok@novell.com>
33131 - Don't throw NotImplemented exceptions, just print a notice once
33132 instead (requested by Miguel). This makes running existing SWF
33135 - Commented out Drag'N'Drop XplatUI call (no driver support yet)
33136 - Added context menu trigger on right click
33137 * Panel.cs: Trigger invalidate on resize
33139 - Removed old double-buffer drawing
33140 - Added ResizeRedraw style to force proper update of statusbar
33142 - Removed debug output
33143 * ThemeWin32Classic.cs:
33144 - Fixed drawing of status bar, now draws Text property if there
33145 are no defined panels
33147 2005-03-18 Jackson Harper <jackson@ximian.com>
33149 * ImageList.cs: When the image stream is set pull all the images
33151 * ImageListStreamer.cs: Implement reading image list streams.
33153 2005-03-18 Peter Bartok <pbartok@novell.com>
33155 * ThemeWin32Classic.cs (DrawPictureBox):
33156 - Fixed calculations for centered drawing
33157 - Fixed drawing for normal mode, not scaling the image on normal
33159 2005-03-18 Peter Bartok <pbartok@novell.com>
33161 * ComboBox.cs: Now also firing the OnKeyPress events for the embedded
33164 - Made Open/Save button the accept button for FileDialog
33165 - Tied the cancel button to the IButtonControl cancel button
33166 - Save/Open now properly builds the pathname
33167 - Now handles user-entered text
33168 - Preventing crash on right-click if no item is selected
33169 - Fixed Text property, now uses contents of textbox
33170 - Fixed SelectedText property, now just returns the text part that
33171 is selected in the text box
33173 2005-03-18 Jackson Harper <jackson@ximian.com>
33175 * ThemeWin32Classic.cs: Use the proper func for drawing the focus
33176 rect, make sure to de-adjust the interior rect after drawing the
33179 2005-03-18 Peter Bartok <pbartok@novell.com>
33181 * MenuAPI.cs: Remove menu *before* executing selected action to
33182 prevent the menu from 'hanging around'
33184 2005-03-17 Geoff Norton <gnorton@customerdna.com>
33186 * XplatUIOSX.cs: Implemented WorkingArea property
33188 2005-03-17 Peter Bartok <pbartok@novell.com>
33190 * XplatUIX11.cs: Fixed menu coord calculations
33191 * MenuAPI.cs: Now using new ScreenToMenu()/MenuToScreen() methods
33192 for calculating offsets
33194 2005-03-17 Peter Bartok <pbartok@novell.com>
33196 * Hwnd.cs: Do not consider menu presence for default client
33197 rectangle location/size
33198 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
33199 XplatUIWin32.cs: Added MenuToScreen() and ScreenToMenu() coord
33200 translation functions
33201 * FileDialog.cs: Fixed (what I presume is a) typo
33203 2005-03-17 Jonathan Gilbert <logic@deltaq.org>
33205 * XplatUIX11.cs: Added call to XInitThreads() to allow multi-threaded
33206 X access (avoids X-Async errors)
33208 2005-03-16 Jackson Harper <jackson@ximian.com>
33210 * TabControl.cs: Raise the SelectedIndexChanged event.
33212 2005-03-16 Alexander Olk <xenomorph2@onlinehome.de>
33214 * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
33215 - Removed vertical ToolBar and replaced it with a custom panel
33216 (desktop and home button already work)
33217 - Added Help button (some controls get resized or relocated then)
33218 - Draw correct text depending on Open or Save.
33219 - Fixed some typos...
33221 2005-03-16 Jordi Mas i Hernandez <jordi@ximian.com>
33224 - Only change Maximum and Minimum when need it (bug fix)
33226 2005-03-15 Peter Bartok <pbartok@novell.com>
33228 * Form.cs: Use Handle for icon, to trigger creation if
33229 the window does not yet exist
33231 - CanSelect: Slight performance improvement
33232 - Focus(): Preventing possible recursion
33233 - Invalidate(): Removed ControlStyle based clear flag setting
33234 - WM_PAINT: fixed logic for calling OnPaintBackground
33235 - WM_ERASEBKGND: Fixed logic, added call to new driver method
33236 EraseWindowBackground if the control doesn't paint background
33238 - Moved EraseWindowBackground() method to internal methods
33239 - Removed unused WM_ERASEBKGND handling in GetMessage; msg never comes;
33240 is sent via SendMessage on BeginPaint call on Win32
33242 - Added EraseWindowBackground() method
33243 - No longer sends WM_ERASEBKGND on .Expose, but on call to
33244 PaintEventStart, which more closely matches Win32 behaviour
33245 - Fixed Invalidate() call, now updates new ErasePending Hwnd property
33246 - Fixed SetFocus() to properly deal with client and whole windows
33247 * Hwnd.cs: Added ErasePending property
33248 * XplatUIOSX.cs: Stubbed EraseWindowBackground() method
33249 * XplatUI.cs, XplatUIDriver.cs: Added EraseWindowBackground() method
33251 2005-03-12 Geoff Norton <gnorton@customerdna.com>
33254 - Fix hard loop when timers exist.
33255 - Fix bugs with middle and right click for 3 button mice.
33257 2005-03-11 Peter Bartok <pbartok@novell.com>
33260 - get_WorkingArea: Need to call X directly, GetWindowPos only
33261 returns cached data now
33262 - Added sanity check to GetWindowPos hwnd usage
33264 2005-03-11 Jackson Harper <jackson@ximian.com>
33266 * BindingManagerBase.cs: This method isn't used anymore as
33267 PullData now updates the data in the control.
33269 2005-03-11 Jordi Mas i Hernandez <jordi@ximian.com>
33271 * Form.cs: fixes menu drawing on X11
33272 * MenuAPI.cs: fixes menu drawing on X11
33274 2005-03-11 Peter Bartok <pbartok@novell.com>
33276 * Control.cs: Changed OnCreateControl behaviour based on a suggestion
33277 from Jonathan Gilbert; should fix bug #73606
33278 * XplatUIX11.cs: Fixed NC Mouse message coordinates, they need to be
33279 in Screen coordinates. Thanks, Jordi.
33280 * Form.cs: Added missing attribute
33282 2005-03-11 Peter Bartok <pbartok@novell.com>
33285 - Rudimentary Mdi support
33286 - Removed outdated FormParent code
33287 - Implemented lots of missing properties and methods, still missing
33288 transparency support
33289 - Added missing attributes
33290 - Implemented support for MaximumBounds
33291 - Added firing of various events
33292 * XplatUI.cs: Added SetIcon() method
33293 * XplatUIDriver.cs: Added SetIcon() abstract
33294 * XplatUIOSX.cs: Stubbed out SetIcon() method
33296 - Implemented SetIcon() support
33297 - Moved SetMenu() and SetBorderStyle() to proper alphabetical pos
33298 - Switched to unix line endings
33300 - Made POINT internal so for can access it as part of MINMAX
33301 - Implemented SetIcon() support
33302 - Implemented support for CLIENTCREATESTRUCT (but might have to drop
33303 native Mdi support again, might have to go managed)
33304 * Control.cs: Now fires the StyleChanged event
33305 * MdiClient.cs: Added; still mostly empty
33307 2005-03-10 Peter Bartok <pbartok@novell.com>
33309 * SaveFileDialog.cs: Added emtpy file
33311 2005-03-08 Peter Bartok <pbartok@novell.com>
33313 * Control.cs: Fixed bug #73190; now invokes CreateControl (which
33314 in turn triggers OnCreateContro) when creating a handle for the
33316 * TextControl.cs: Fixed endless loop in certain cases when
33317 replacing the current selection
33319 2005-03-08 Jordi Mas i Hernandez <jordi@ximian.com>
33322 - Honors NewValue changes in Scroll events allowing apps to change it
33323 - Adds First and Last Scroll events
33324 - Fixes Thumb events
33326 2005-03-07 Peter Bartok <pbartok@novell.com>
33328 * Hwnd.cs: Added DefaultClientRectangle property
33329 * XplatUI.cs: Now using the X11 driver Where() method, which provides
33330 more detailed debug information
33332 - Fixed size-change feedback loop, where we would pull an old size
33333 off the queue and mistakenly change our window's size to an
33335 - Now compressing ConfigureNotify events, to reduce looping and
33337 * TextBoxBase.cs: Preventing crash when no text is set and ToString()
33340 2005-03-07 Jackson Harper <jackson@ximian.com>
33342 * Binding.cs: Push data pushes from data -> property. Check if the
33343 property is readonly when attempting to set it.
33345 2005-03-07 Jackson Harper <jackson@ximian.com>
33347 * Binding.cs: Format and parse data correctly. Use ASsignableFrom
33348 instead of IsSubclassOf. Pulling data now sets the value on the
33350 * PropertyManager.cs:
33351 * CurrencyManager.cs: Just need to pull data when updating now,
33352 because PullData will set the value on the control.
33354 2005-03-04 Jackson Harper <jackson@ximian.com>
33356 * Binding.cs: Implement data type parsing and converting on pulled
33357 data. TODO: Are there more ways the data can be converted?
33359 2005-03-04 Jackson Harper <jackson@ximian.com>
33361 * Binding.cs: Support <Property>IsNull checks. Also bind to the
33362 controls Validating method so we can repull the data when the
33363 control loses focus.
33365 2005-03-03 Jordi Mas i Hernandez <jordi@ximian.com>
33368 - Fixes null string format
33371 - Adds enum type checks
33372 - Fixes redrawing and recalc need after changing some properties
33373 - Fixes on focus_item set after the event
33374 - Fixes adding columns after the control has been created
33376 * ThemeWin32Classic.cs:
33377 - Fixes CheckBox focus rectangle
33378 - Fixes ColumnHeader drawing
33381 2005-03-03 Jackson Harper <jackson@ximian.com>
33383 * Binding.cs: Bind to <Property>Changed events so we can detect
33384 when properties are changed and update the data.
33386 2005-03-02 Jordi Mas i Hernandez <jordi@ximian.com>
33389 - Changes 32-bit pixel format to Format32bppArgb to allow transparency
33390 - Fixes ImageList constructor with ImageList container
33391 - Fixes image scaling (wrong parameters at DrawImage)
33393 2005-02-02 Jackson Harper <jackson@ximian.com>
33395 * Binding.cs: Make property searches case-insensitive. Eliminate
33396 some duplicated code.
33398 2005-03-01 Jordi Mas i Hernandez <jordi@ximian.com>
33401 - Handle focus event
33402 - Fix scrollbar events
33403 - Discard highlighted item if remove it
33404 - Fixes SelectedItem with strings
33406 2005-03-01 Peter Bartok <pbartok@novell.com>
33409 - Fixed Visible property, now follows (once again) parent chain
33410 to return false if any control in the chain is visible=false
33411 - Fixed OnParentVisibleChanged, now just calls OnVisibleChanged event
33412 - Fixed several places where is_visible instead of Visible was used
33413 - Implemented FIXME related to focus selection when setting focused
33414 control to be invisible
33416 * XplatUIWin32.cs: Now using proper method to find out if window is
33417 visible. Thanks to Jordi for pointing it out
33419 2005-02-28 Jordi Mas i Hernandez <jordi@ximian.com>
33421 * ComboBox.cs: show/hide scrollbar instead of creating it
33423 2005-02-27 Jackson Harper <jackson@ximian.com>
33425 * CurrencyManager.cs: Add PositionChanged stuff.
33427 2005-02-27 Peter Bartok <pbartok@novell.com>
33429 * XplatUI.cs, XplatUIDriver.cs: Added new GetMenuOrigin() method
33430 * XplatUIOSX.cs: Added GetMenuOrigin() stub
33431 * XplatUIWin32.cs: Implemented GetMenuOrigin()
33433 - Implemented GetMenuDC()
33434 - Implemented GetMenuOrigin()
33435 - Implemented ReleaseMenuDC()
33436 - Implemented generation of WM_NCPAINT message
33437 - Implemented generation and handling of WM_NCCALCSIZE message
33438 * Form.cs: Added debug helper message for Jordi's menu work
33440 - Modified ClientRect property; added setter, fixed getter to handle
33441 setting of ClientRect
33442 - Added MenuOrigin property
33444 2005-02-26 Peter Bartok <pbartok@novell.com>
33447 - Destroys the caret if a window that's being destroyed contains it
33448 - Ignores expose events coming from the X11 queue for windows that
33449 already are destroyed
33450 - Now uses the proper variable for handling DestroyNotify, before we
33451 marked the wrong window as destroyed
33452 - Improved/added some debug output
33454 2005-02-26 Peter Bartok <pbartok@novell.com>
33456 * X11Keyboard.cs: Fixes to work on 64bit systems
33458 2005-02-26 Peter Bartok <pbartok@novell.com>
33461 - Now calling OnHandleDestroyed from DestroyHandle()
33462 instead of Dispose()
33463 - Removed bogus call to controls.Remove() from DestroyHandle()
33465 2005-02-26 Peter Bartok <pbartok@novell.com>
33467 * Control.cs: Properly destroy child windows when our handle is
33470 2005-02-25 Peter Bartok <pbartok@novell.com>
33473 - Added 'DriverDebug' define to allow tracing XplatUI API calls
33474 - Alphabetized Static Methods and Subclasses
33477 - Added XException class to allow custom handling of X11 exceptions
33478 - Created custom X11 error handler, tied into XException class
33479 - Added support for MONO_XEXCEPTIONS env var to allow the user
33480 to either throw an exception on X errors or continue running
33481 after displaying the error
33482 - Added handling of DestroyNotify message
33483 - Added handler for CreateNotify message (still disabled)
33484 - Improved (tried to at least) Where method to provide file and lineno
33486 - Added XErrorHandler delegate
33487 - Added XRequest enumeration (to suppor translation of errors)
33489 2005-02-25 Jackson Harper <jackson@ximian.com>
33491 * PropertyManager.cs: Implement editing features
33492 * CurrencyManager.cs:
33493 * Binding.cs: First attempt at UpdateIsBinding
33494 * BindingManagerBase.cs: Call UpdateIsBinding before
33495 pushing/pulling data.
33497 2005-02-25 Jordi Mas i Hernandez <jordi@ximian.com>
33499 * MenuAPI.cs: Respect disabled items
33500 * ThemeWin32Classic.cs
33501 - Caches ImageAttributes creation for DrawImageDisabled
33502 - Fixes vertical menu line drawing
33503 - Draws disabled arrows in disable menu items
33505 2005-02-24 Peter Bartok <pbartok@novell.com>
33508 - Added UserData property to allow associating arbitrary objects
33510 - Fixed leak; now removing Hwnd references from static windows array
33512 - Fixed Graphics leak in PaintEventEnd
33513 - Removed usage of HandleData, switched over to Hwnd class
33514 * HandleData.cs: Removed, obsoleted by Hwnd.cs
33516 2005-02-24 Jordi Mas i Hernandez <jordi@ximian.com>
33518 * ThemeWin32Classic.cs: Adds Cliping to TrackBar drawing
33519 * ScrollBar.cs: Fixes bug
33520 * TrackBar.cs: removes death code, clipping, mimize refreshes,
33521 keyboard navigation enhancements
33523 2005-02-24 Jordi Mas i Hernandez <jordi@ximian.com>
33525 * Control.cs: Call DefWndProc at WM_PAINT only if UserPaint not defined
33526 * GroupBox.cs: Add control styles
33527 * Label.cs: Add control styles
33528 * UpDownBase.cs: Add control styles
33529 * ListBox.cs: Add control styles
33530 * XplatUIWin32.cs: Fixes wrong parameter order
33533 2005-02-23 Chris Bacon <chris.bacon@docobo.co.uk>
33535 * ListView.cs: Assign owner for ColumnHeader. Patch by Chris Bacon
33537 2005-02-23 Jackson Harper <jackson@ximian.com>
33539 * PropertyManager.cs: Implement property binding. This doesn't
33540 seem to work yet though as (I think) there are some bugs in
33541 System.ComponentModel.PropertyDescriptor.
33542 * BindingContext.cs: Use new PropertyManager constructor.
33544 2005-02-23 Jordi Mas i Hernandez <jordi@ximian.com>
33546 * ProgressBar.cs: use clip region in ProgressBar
33547 * ThemeWin32Classic.cs: use clip region in ProgressBar
33549 2004-02-22 Jackson Harper <jackson@ximian.com>
33551 * BindingsCollection.cs: Remove some debug code.
33553 2005-02-22 Jackson Harper <jackson@ximian.com>
33555 * BindingContext.cs:
33556 * ControlBindingsCollection.cs:
33557 * CurrencyManager.cs:
33559 * BindingManagerBase.cs: Initial implementation
33560 * BindingsCollection.cs: Add an internal contains method that the
33561 BindingManagerBase uses to ensure bindings aren't added twice to
33563 * PropertyManager.cs: Stubbed out.
33565 * ContainerControl.cs: Hook up databinding
33567 2005-02-22 Geoff Norton <gnorton@customerdna.com>
33570 OSXStructs.cs: Refactored to handle the new Hwnd NC logic area.
33571 Fixed Invalidate/Update chain.
33572 Fixed tons of other minor bugs (this is almost a complete rewrite).
33574 2005-02-22 Jordi Mas i Hernandez <jordi@ximian.com>
33576 * ComboBox.cs: do subcontrol creation when the control is created
33578 2005-02-19 Jordi Mas i Hernandez <jordi@ximian.com>
33580 * Label.cs: fixes image drawing (image and imagelist)
33581 * ThemeWin32Classic.cs: cache brushes
33583 2005-02-19 Jordi Mas i Hernandez <jordi@ximian.com>
33585 * Form.cs: Move menu drawing code to Theme class
33586 * ComboBox.cs: Move ComboBox drawing code to Theme class
33587 * MenuItem.cs: Move menu drawing code to Theme class
33588 * MenuAPI.cs: Move menu drawing code to Theme class
33589 * ThemeWin32Classic.cs: New methods
33590 * CheckedListBox.cs: Move CheckedListbox drawing code to Theme class
33591 * ListBox.cs: Move Listbox drawing code to Theme class
33592 * Theme.cs: New methods
33594 2005-02-20 Peter Bartok <pbartok@novell.com>
33597 - Fixed ProcessKeyEventArgs to also handle WM_SYSKEY messages (and
33598 only process mnemonics on those)
33599 - Fixed event sequence for key handling; first calling
33600 ProcessKeyEventArgs now
33602 - Removed WM_KEYDOWN hook, instead we now use ProcessDialogKey()
33603 for processing non-character keys
33604 - Fixed WM_CHAR to generate proper event sequence before processing
33605 * XplatUIWin32.cs: Added ALT key state to ModifierKeys property
33608 2005-02-19 Peter Bartok <pbartok@novell.com>
33610 * UserControl.cs: Added TextChanged event; added attributes
33611 * SizeGrip.cs: Implemented resizing and optional display of grip
33612 * Form.cs: Fixed attribute
33613 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs:
33614 Changed meaning of ScrollWindow bool argument; instead of the
33615 clear attribute (which will be true usually anyway), it gives the
33616 option of moving child controls as well.
33618 - Changed to match new ScrollWindow argument
33619 - Fixed GetWindowPos/SetWindowPos behaviour for toplevel controls,
33620 now handles the implicit parent window a WM puts around us
33621 * ScrollableControl.cs: Implemented (not the prettiest, but it seems
33623 * TextBoxBase.cs: Adjusted to new ScrollWindow arguments
33624 * TreeView.cs: Adjusted to new ScrollWindow arguments
33626 2005-02-19 Jordi Mas i Hernandez <jordi@ximian.com>
33628 * Form.cs: Menu integration with non-client area
33629 * MenuItem.cs: Menu integration with non-client area
33630 * MenuAPI.cs: Menu integration with non-client area
33632 2005-02-18 Peter Bartok <pbartok@novell.com>
33634 * MethodInvoker.cs: Added
33635 * MdiLayout.cs: Added
33636 * SendKeys.cs: Started implementation
33637 * ErrorIconAlignment.cs: Added
33639 2005-02-18 Peter Bartok <pbartok@novell.com>
33641 * XplatUIWin32.cs: Implemented SetMenu(); fixed GetMenuDC()
33642 * Form.cs: Added handling for Menu-related Non-client messages
33644 2005-02-17 Peter Bartok <pbartok@novell.com>
33646 * UpDownBase.cs: Fixed typo, compilation errors
33647 * DomainUpDown.cs: Fixed attribute value
33649 2005-02-16 Miguel de Icaza <miguel@novell.com>
33651 * UpDownBase.cs: Attach entry events.
33653 Add ForeColor property, Focused, InterceptArrowKeys (interception
33654 does not work yet).
33656 2005-02-17 Jordi Mas i Hernandez <jordi@ximian.com>
33659 - Redraw non client are on Setmenu
33660 - Calc proper menu starting point
33662 2005-02-17 Peter Bartok <pbartok@novell.com>
33664 * Application.cs: Fixed message_filter check
33666 2005-02-17 Peter Bartok <pbartok@novell.com>
33668 * Application.cs: Now calls registered message filters
33669 * DockStyle.cs: Fixed attribute
33670 * Form.cs: Fixed attribute
33671 * Menu.cs: Fixed attribute
33672 * ToolTip.cs: Fixed attribute
33673 * TreeNode.cs: Added missing attributes and arranged in regions
33674 * PropertyGrid.cs: Fixed signatures
33675 * TreeNodeCollection.cs: Added attributes
33676 * Splitter.cs: Added missing attributes; arranged into regions
33677 * TabPage.cs: Added missing attributes; arranged into regions
33678 * TextBoxBase.cs: Added missing attributes
33679 * TextBox.cs: Added missing attributes
33680 * ArrangeDirection.cs: Added missing attributes
33681 * TreeNodeConverter.cs: Added stub (needed for TreeNode)
33682 * ToolBarButton.cs: Fixed attributes
33683 * AnchorStyles.cs: Fixed attribute
33684 * TrackBar.cs: Fixed attributes
33685 * TabControl.cs: Added missing attributes and arranged into regions
33686 * ToolBar.cs: Fixed attribute
33687 * StatusBar.cs: Fixed signature, organized into regions and added
33689 * StatusBarPanel.cs: Fixed attributes
33690 * ContentsResizedEventArgs.cs: Implemented
33691 * ContentsResizedEventHandler.cs: Implemented
33692 * DateBoldEventArgs.cs: Implemented
33693 * DateBoldEventHandler.cs: Implemented
33694 * UpDownEventArgs.cs: Implemented
33695 * UpDownEventHandler.cs: Implemented
33697 2005-02-16 Jordi Mas i Hernandez <jordi@ximian.com>
33699 * Form.cs: first Menu NC refactoring
33700 * MenuAPI.cs: first Menu NC refactoring
33702 2005-02-16 Peter Bartok <pbartok@novell.com>
33704 * ImeMode.cs: Added missing attributes
33705 * Menu.cs: Fixed attribute
33706 * GroupBox.cs: Fixed attribute
33707 * Label.cs: Fixed attribute
33708 * ColorDialog.cs (RunDialog): Removed TODO attribute
33709 * ComboBox.cs: Fixed attributes
33710 * ListControl.cs: Added missing attributes
33711 * PropertyGrid.cs: Fixed attributes
33712 * Control.cs: Fixed attributes
33713 * ListViewItem.cs: Added TypeConverter attribute
33714 * NotifyIcon.cs: Fixed attributes
33715 * ListView.cs: Fixed attributes
33716 * ButtonBase.cs: Fixed attribute
33717 * ImageList.cs: Added missing attributes
33718 * ContainerControl.cs: Fixed signature
33719 * CheckedListBox.cs: Fixed attribute; added missing attributes
33720 * Panel.cs: Fixed attributes
33721 * PropertyTabChangedEventArgs.cs: Added missing attribute
33722 * PropertyValueChangedEventArgs.cs: Added missing attribute
33723 * Binding.cs: Fixed attribute
33724 * ListViewItemConverter: Implemented ListViewSubItemConverter class
33725 * ListBox.cs: Fixed attribute; added missing attributes;
33726 * ScrollableControl.cs: Added missing attributes
33727 * PictureBox.cs: Added missing attributes; implemented missing property
33728 * DateTimePicker.cs: Added missing attributes
33729 * Theme.cs (ToolWindowCaptionHeight): Fixed type
33730 * MonthCalendar.cs: Fixed attributes
33731 * StatusBarPanel.cs: Added missing attributes
33732 * SystemInformation.cs (ToolWindowCaptionHeight): Fixed type
33734 2005-02-16 Peter Bartok <pbartok@novell.com>
33736 * TextBoxBase.cs: The previous method to enforce height yet remember
33737 the requested high was less than ideal, this is an attempt to do
33739 * Control.cs: Added comment about possible problem
33740 * Copyright: Updated format
33741 * GridItemType.cs: Fixed swapped values
33743 2005-02-15 Jackson Harper <jackson@ximian.com>
33745 * BaseCollection.cs: Use property so we never access an
33746 uninitialized list. Also initialize the list in the property.
33748 2005-02-15 Peter Bartok <pbartok@novell.com>
33750 * GroupBox.cs (ProcessMnemonic): Implemented
33751 * Label.cs (ProcessMnemonic): Implemented
33752 * ThemeWin32Classic.cs (DrawGroupBox): Added stringformat to show
33755 2005-02-15 Peter Bartok <pbartok@novell.com>
33757 * RadioButton.cs (ProcessMnemonic): Implemented
33758 * CheckBox.cs (ProcessMnemonic): Implemented
33760 - Added handling of WM_SYSxxx keyboard messages to support mnemonic
33762 - Added internal method to allow calling ProcessMnemonic from other
33764 * ContainerControl.cs:
33765 - Started support for handling validation chain handling
33766 - Implemented ProcessMnemonic support
33767 - Added Select() call to Active, to make sure the active control
33769 * Form.cs: Setting toplevel flag for Forms (this was lost in the
33770 FormParent rewrite)
33771 * ThemeWin32Classic.cs:
33772 - DrawCheckBox(): Fixed stringformat to show hotkeys
33773 - DrawRadioButton(): Fixed stringformat to show hotkeys
33774 * CommonDialog.cs: Removed WndProc override, not needed
33776 2005-02-14 Peter Bartok <pbartok@novell.com>
33778 * XplatUIX11.cs: Fixed NotImplemented exceptions for properties,
33779 missed those in the rewrite
33781 2005-02-14 Miguel de Icaza <miguel@novell.com>
33783 * NumericUpDown.cs (Increment, ToString): Add.
33784 (DecimalPlaces): implement.
33788 * UpDownBase.cs: Add the designer attributes.
33790 2005-02-13 Peter Bartok <pbartok@novell.com>
33792 * Panel.cs: Removed border_style, now in Control
33793 * XplatUIDriver.cs: Added SetBorderStyle, SetMenu, GetMenuDC and
33794 ReleaseMenuDC Methods; renmaed ReleaseWindow to UngrabWindow
33796 2005-02-13 Peter Bartok <pbartok@novell.com>
33798 * MouseButtons.cs: Added missing attributes
33799 * XplatUIStructs.cs: Added enumeration for title styles
33800 * LeftRightAlignment.cs: Added missing attributes
33801 * Hwnd.cs: Switched to use client_window as handle (slower, but makes
33802 it compatible with Graphics.FromHwnd()
33803 * SelectedGridItemChangedEventArgs.cs: Fixed property type
33804 * Keys.cs: Added missing attributes
33805 * SelectionRange.cs: Added missing attributes
33806 * SelectionRangeConverter.cs: Added
33808 - Introduced SetBorderStyle, SetMenu, GetMenuDC and
33809 ReleaseMenuDC methods
33810 - Renamed ReleaseWindow to UngrabWindow
33811 - Added proper startup notice to allow version identification
33813 - Added missing attributes
33814 - Removed FormParent concept
33815 * Label.cs: Removed border_style field, now in Control
33816 * RadioButton.cs: Now properly selects RadioButton when focus is
33818 * ThemeGtk.cs: Fixed SetDisplay call to match new X11 behaviour
33820 - Added missing attributes
33821 - Added borderstyle handling
33822 - Removed FormParent concept support
33823 - Fixed calls to XplatUI to match changed APIs
33824 - Fixed bug that would case us to use disposed Graphics objects
33825 - Removed unneeded internal methods
33826 - PerformLayout(): Fixed to handle DockStyle.Fill properly
33827 - SelectNextControl(): Fixed to properly check common parents
33828 * TextBoxBase.cs: Removed border_style field (now in Control)
33830 - Patch by Robert Thompson (rmt@corporatism.org): Added icon support,
33831 fixed calculations for form size
33832 - Added support for localized strings and icons
33833 - Improved form size calculations, added border
33834 * ListView.cs: Removed border_style field (now in Control)
33835 * X11Structs.cs: Moved several structs from X11 driver here
33836 * X11Keyboard.cs: Changed debug message
33837 * Application.cs: Removed FormParent concept support
33839 - Resetting end_modal flag
33840 - Removed FormParent concept support
33841 * NativeWindow.cs: Removed FormParent concept support
33842 * XplatUIX11.cs: Rewritten, now using the new Hwnd class, implementing
33843 Client area and Non-Client whole window to allow support for WM_NC
33845 * XplatUIOSX.cs: Updated to match latest driver spec; added exception
33846 prevent using it until it supports Hwnd as per Geoff Norton's request
33847 * ToolBar.cs: Fixed drawing, was not doing proper drawing
33848 * PictureBox.cs: Removed border_style field, now in Control
33849 * XplatUIWin32.cs: Added new driver methods
33851 2005-02-12 Peter Bartok <pbartok@novell.com>
33853 * OpacityConverter.cs: Implemented
33854 * Hwnd.cs: Internal class to support drivers that need to emulate
33855 client area/non-client area window behaviour
33857 2005-02-11 Peter Bartok <pbartok@novell.com>
33859 * KeysConverter.cs: Implemented
33861 2005-02-11 Jordi Mas i Hernandez <jordi@ximian.com>
33863 * Menu.cs: fixes methods GetContextMenu, GetMainMenu, ToString
33864 * LinkLabel: Added missing attributes
33865 * MainMenu.cs: fixes ToString
33866 * MenuItem.cs: fixes methods GetContextMenu, GetMainMenu
33867 * ListBox.cs: fixes event position
33868 * TrackBar.cs: adds missing attributes and events
33870 2005-02-10 Jordi Mas i Hernandez <jordi@ximian.com>
33872 * MenuItem.cs: Use SystemInformation and bug fixes
33873 * MenuAPI.cs: Use SystemInformation and bug fixes
33875 2005-02-09 Jackson Harper <jackson@ximian.com>
33877 * X11Keyboard.cs: We ignore some keys, but still need to set/reset
33878 their keystate otherwise things like VK_MENU get stuck "on".
33880 2005-02-09 Kazuki Oikawa <kazuki@panicode.com>
33882 * ListBox.cs: Fixes AddRange bug
33884 2005-02-09 Jordi Mas i Hernandez <jordi@ximian.com>
33887 - Add missing attributes
33888 - Add missing method
33890 * CheckedListBox.cs: Added missing attributes
33891 - Add missing attributes
33892 - Remove extra method
33894 * ComboBox.cs: Added missing attributes
33895 * VScrollBar.cs: Added missing attributes
33896 * ScrollBar.cs: Added missing attributes
33897 * ListBox.cs: Fixes signature, add missing consts
33898 * LinkArea.cs: Added missing attributes
33901 2005-02-08 Peter Bartok <pbartok@novell.com>
33903 * Menu.cs: Added missing attributes
33904 * MainMenu.cs: Added missing attributes
33905 * GroupBox.cs: Added missing attributes
33906 * Label.cs: Added missing attributes
33907 * CheckBox.cs: Implemented CheckBoxAccessibleObject class
33909 - Added Instance and Options properties
33910 - Added missing attributes
33911 * Cursor.cs: Made Serializable
33912 * NotifyIcon: Added missing attributes
33913 * MenuItem.cs: Added missing attributes
33914 * TextBoxBase.cs: Implemented AppendText() and Select() methods
33915 * Panel.cs: Added Missing attributes
33916 * MonthCalendar.cs: Fixed CreateParams
33918 2005-02-08 Jordi Mas i Hernandez <jordi@ximian.com>
33922 - Fixes issues with links
33923 - Adds the class attributes
33925 2005-02-08 Jordi Mas i Hernandez <jordi@ximian.com>
33928 - Fixes button when no items available in dropdown
33929 - Fixes repainting problems
33930 - Adds the class attributes
33932 2005-02-07 Geoff Norton <gnorton@customerdna.com>
33934 * XplatUIOSX.cs: Detect the menu bar and title bar height from
33935 the current theme. Cache these on startup.
33937 2005-02-07 Jackson Harper <jackson@ximian.com>
33939 * ScrollBar.cs: Give the correct clipping rect to the theme. Dirty
33940 the scrollbar buttons when they are depressed.
33942 2005-02-07 Geoff Norton <gnorton@customerdna.com>
33944 * XplatUIOSX.cs: Really fix working at resolutions not 1024x768.
33945 Get the display size from the main displayid. We currently dont
33946 support multiple display configurations.
33948 2005-02-07 Geoff Norton <gnorton@customerdna.com>
33950 * XplatUIOSX.cs: Ensure the window doesn't get stuck behind the statusbar.
33952 2005-02-07 Miguel de Icaza <miguel@novell.com>
33954 * UpDownBase.cs: Add ReadOnly and UpDownAlign properties.
33956 2005-02-05 Jonathan Chambers <jonathan.chambers@ansys.com>
33958 * PropertyGrid.cs: Updated. Patch by Jonathan Chambers
33960 2005-02-04 Jackson Harper <jackson@ximian.com>
33962 * ThemeWin32Classic.cs: Respect the clipping rect when
33963 drawing. Only fill the intersection of clips and rects so there
33964 isn't a lot of large fills.
33965 * ScrollBar.cs: Pass the correct clipping rect to the theme
33966 engine. Remove some debug code.
33968 2005-02-05 John BouAntoun <jba-mono@optusnet.com.au>
33970 * DateTimePicker.cs:
33971 - Fixed crash on DateTime.Parse, use Constructor instead
33973 2005-02-04 Jordi Mas i Hernandez <jordi@ximian.com>
33977 - Owner draw support (MeasureItem and DrawItem)
33979 2005-02-04 Jordi Mas i Hernandez <jordi@ximian.com>
33982 - Implements FindMergePosition and MergeMenu functions (very poor documented)
33983 - Fixes MenuItems.Add range
33985 - MergeMenu and Clone and CloneMenu functions
33987 2005-02-03 Jackson Harper <jackson@ximian.com>
33989 * ScrollBar.cs: Make abstract
33990 * ScrollableControl.cs: Create H/V scrollbars now that scrollbar
33993 2005-02-03 Jackson Harper <jackson@ximian.com>
33995 * ScrollBar.cs: First part of my scrollbar fixups. This removes
33996 all the unneeded refreshes and uses invalidates with properly
33999 2005-02-03 Peter Bartok <pbartok@novell.com>
34001 * ComponentModel.cs: Added
34002 * IDataGridEditingService.cs: Added
34003 * Timer.cs: Added missing attributes
34004 * ToolTip.cs: Added missing attributes
34006 2005-02-03 Jonathan Chambers <jonathan.chambers@ansys.com>
34008 * PropertyGridView.cs: Added. Patch by Jonathan Chambers
34010 2005-02-03 Peter Bartok <pbartok@novell.com>
34012 * ListBox.cs: Added missing attributes
34014 2005-02-03 Jordi Mas i Hernandez <jordi@ximian.com>
34017 - Fixes font height after font change
34018 - Avoid generating unnecesary OnSelectedIndexChanged on clearing
34020 2005-02-02 Peter Bartok <pbartok@novell.com>
34022 * HandleData.cs: Introduced static methods to allow class
34023 to be more self-contained and track it's own HandleData objects
34024 * XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs: Fixed usage of
34025 HandleData to use new static methods
34027 2005-02-02 Jordi Mas i Hernandez <jordi@ximian.com>
34030 - Fixes default size and PreferredHeight
34032 - ObjectCollection.Insert implementation
34038 - ObjectCollection.Insert implementation
34039 - No selection after clean
34042 2005-01-31 John BouAntoun <jba-mono@optusnet.com.au>
34044 * ThemeWin32Classic.cs: quick fix to comboboxbutton pushed painting
34046 2005-02-01 Jordi Mas i Hernandez <jordi@ximian.com>
34049 - Caches ItemHeight calculation for OwnerDrawVariable
34050 - Handles dropdown properly
34051 - Fixes several minor bugs
34053 2005-01-31 Jordi Mas i Hernandez <jordi@ximian.com>
34056 - Fixes 71946 and 71950
34057 - Fixes changing Multicolumn on the fly
34058 - Fixes keyboard navigation on Multicolumn listboxes
34060 2005-01-31 Geoff Norton <gnorton@customerdna.com>
34062 * XplatUIOSX.cs: Call ExitToShell in our teardown to avoid a
34063 crash reporter log.
34065 2005-01-31 Geoff Norton <gnorton@customerdna.com>
34067 * XplatUIOSX.cs: Allow applications to actually exit.
34069 2005-01-31 Geoff Norton <gnorton@customerdna.com>
34071 * XplatUIOSX.cs: SetWindowStyle implemented. Reposition views in
34072 their parent at creation time rather than lazily later. Fixes a major
34073 regression we were experiencing.
34075 2005-01-31 John BouAntoun <jba-mono@optusnet.com.au>
34077 * ThemeWin32Classic.cs: more date time picker painting fixes
34078 * DateTimePicker.cs: more monthcalendar drop down fixes
34079 * MonthCalendar.cs: more CreateParams fixes to ensure correct drop down
34081 2005-01-31 Jordi Mas i Hernandez <jordi@ximian.com>
34084 - When moving the thumb going outside the control should stop the moving
34085 - Adds the firing of missing events
34086 - Fixes no button show if Size is not specified
34087 - End / Home keys for keyboard navigation
34089 2005-01-30 Peter Bartok <pbartok@novell.com>
34091 * NotifyIcon.cs (CalculateIconRect): Removed debug output and added
34092 sanity check to prevent theoretical loop
34093 * XplatUIWin32.cs (SetVisible): Removed debug output
34094 * XplatUIX11.cs (SystrayChange): Added sanity check
34095 * ScrollableControl.cs (OnVisibleChanged): Now calls base method
34096 * Control.cs (OnVisibleChanged): Added workaround for ParentForm
34097 behaviour, valid until the X11 client window rewrite is done
34098 * TextBox.cs (ctor): Setting proper default foreground and background
34101 2005-01-30 John BouAntoun <jba-mono@optusnet.com.au>
34103 * Theme: Added DrawDateTimePicker to interface
34104 * ThemeWin32Classic.cs: Added DrawDateTimePicker (incomplete)
34105 * DateTimePicker.cs: Created (still needs keys and painting code)
34106 * DateTimePickerFormat.cs: added
34107 * MonthCalendar.cs: fixed CreateParams for popup window mode
34109 2005-01-29 Peter Bartok <pbartok@novell.com>
34111 * ControlPaint.cs: Fixed luminace value returned on achromatic colors,
34112 this should also the calculations for ligher/darker
34113 * Theme.cs: Fixed defaults for ScrollBar widths/heights
34115 2005-01-29 Peter Bartok <pbartok@novell.com>
34117 * ArrangeDirection.cs: Added
34118 * ArrangeStartingPositon.cs: Added
34119 * SystemInformation.cs: Implemented
34120 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
34121 XplatUIX11.cs, Theme.cs: Added/implemented new static properties
34122 used by SystemInformation class
34123 * X11Strucs.cs: Added XSizeHints structure
34125 - Fixed CreateParams to make sure the menu window is always visible
34126 - TrackPopupMenu: Added check to make sure we don't draw the
34129 2005-01-29 Peter Bartok <pbartok@novell.com>
34131 * HandleData.cs: Added method for altering invalid area
34132 * TextBoxBase.cs: Implemented TextLength
34134 2005-01-28 Peter Bartok <pbartok@novell.com>
34136 * XplatUIX11.cs: Improvement over last patch, not sending
34137 the WM_PAINT directly anymore, instead we scroll any pending
34138 exposed areas and let the system pick out the WM_PAINT later
34140 2005-01-28 Peter Bartok <pbartok@novell.com>
34142 * SWF.csproj: Deleted, no longer used. Instead,
34143 Managed.Windows.Forms/SWF.csproj should be used
34144 * XplatUIX11.cs: Instead of posting the WM_PAINT, we send it
34145 directly, to avoid a potential race condition with the next
34148 2005-01-28 Peter Bartok <pbartok@novell.com>
34150 * XplatUI.cs: Made class internal
34152 2005-01-28 Jordi Mas i Hernandez <jordi@ximian.com>
34154 * CheckedListBox.cs:
34157 - Missing methods and events
34159 2005-01-27 Peter Bartok <pbartok@novell.com>
34161 * Application.cs (Run): Don't use form if we don't have one
34163 2005-01-27 Peter Bartok <pbartok@novell.com>
34165 * TextBoxBase.cs (get_Lines): Fixed index off by one error
34167 2005-01-27 Peter Bartok <pbartok@novell.com>
34169 * GridEntry.cs: Added; Patch by Jonathan S. Chambers
34170 * GridItem.cs: Added; Patch by Jonathan S. Chambers
34171 * GridItemCollection.cs: Added; Patch by Jonathan S. Chambers
34172 * GridItemType.cs: Added; Patch by Jonathan S. Chambers
34173 * PropertyGrid.cs: Added; Patch by Jonathan S. Chambers
34174 * PropertySort.cs: Added; Patch by Jonathan S. Chambers
34175 * PropertyTabChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
34176 * PropertyTabChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
34177 * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
34178 * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
34179 * SelectedGridItemChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
34180 * SelectedGridItemChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
34182 2005-01-27 Jordi Mas i Hernandez <jordi@ximian.com>
34185 - Draw focus on Simple Combobox
34186 - Fixes drawing issues
34189 2005-01-27 Peter Bartok <pbartok@novell.com>
34192 - Place window in default location, instead of hardcoded 0/0
34193 - Send initial LocationChanged event
34195 - UpdateBounds after creation to find out where the WM placed us
34196 - Make sure that if the ParentForm changes location the Form
34198 * XplatUIX11.cs: XGetGeometry will not return the coords relative
34199 to the root, but to whatever the WM placed around us.
34200 Translate to root coordinates before returning toplevel
34202 * XplatUIWin32.cs: Removed debug output
34203 * XplatUIOSX.cs, XplatUI.cs, XplatUIDriver.cs: Added toplevel
34204 flag to GetWindowPos, to allow translation of coordinates on X11
34206 2005-01-27 Jordi Mas i Hernandez <jordi@ximian.com>
34208 * ListBox.cs: connect LostFocus Event
34210 2005-01-27 Peter Bartok <pbartok@novell.com>
34212 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
34213 XplatUIX11.cs: Extended the Systray API
34214 * Form.cs: Removed debug output
34215 * Application.cs: Fixed focus assignment, always need to call
34216 XplatUI.Activate() since Form.Activate() has rules that may
34218 * NotifyIcon.cs: Should be complete now
34219 * ToolTip.cs: Worked around possible timer bug
34221 2005-01-27 Jackson Harper <jackson@ximian.com>
34224 - Only invalidate the effected tabs when the
34225 selected index changes. This reduces drawing and gets rid of some
34227 - Only refresh if the tabs need to be shifted, otherwise only
34228 invalidate the slider button.
34229 - On windows the tabs are not filled to right if the slider is
34232 2005-01-27 Jackson Harper <jackson@ximian.com>
34234 * TabControl.cs: Only refresh on mouseup if we are showing the
34235 slider. Also only invalidate the button whose state has changed.
34237 2005-01-26 Peter Bartok <pbartok@novell.com>
34239 * XplatUI.cs, XplatUIDriver.cs: Added Systray methods
34240 * XplatUIWin32.cs: Implemented SystrayAdd(), SystrayChange()
34241 and SystrayRemove() methods
34242 * XplatUIOSX.cs: Stubbed Systray methods
34244 - Implemented SystrayAdd(), SystrayChange() and SystrayRemove()
34246 - Fixed broken XChangeProperty calls (marshalling messed up things)
34247 * X11Structs.cs: Added enums and structs required for Size hinting
34248 * NotifyIcon.cs: Added & implemented
34250 2005-01-26 Jackson Harper <jackson@ximian.com>
34252 * TabControl.cs: Space vertically layed out tabs properly.
34254 2005-01-26 Peter Bartok <pbartok@novell.com>
34256 * Form.cs (CreateClientParams): Always set the location to 0,0
34257 since we're a child window.
34259 * Control.cs (SetVisibleCore): Always explicitly setting the location
34260 of a toplevel window, apparently X11 doesn't like to move windows
34261 while they're not mapped.
34263 2005-01-26 Jackson Harper <jackson@ximian.com>
34265 * TabControl.cs: Implement FillToRight size mode with vertically
34268 2005-01-26 Jordi Mas i Hernandez <jordi@ximian.com>
34270 * ControlPaint.cs, ThemeWin32Classic.cs
34271 - Fixes DrawFocusRectangle
34273 2005-01-26 Jordi Mas i Hernandez <jordi@ximian.com>
34276 - MenuBar tracking only starts when item is first clicked
34277 - Fixes menu hidding for multiple subitems
34278 - Unselect item in MenuBar when item Executed
34281 2005-01-25 Jordi Mas i Hernandez <jordi@ximian.com>
34284 - IsInputKey for ListBox
34287 - Shift and Control item selection
34288 - Implement SelectionMode.MultiExtended
34289 - Fixes RightToLeft
34291 - IsInputKey implemented
34292 - Do not generate OnTextChangedEdit on internal txt changes
34294 2005-01-23 Peter Bartok <pbartok@novell.com>
34296 * AccessibleObject.cs: Partially implemented Select()
34297 * MonthCalendar.cs: Added missing attributes and events
34298 * Form.cs: Fixed CreateParams behaviour, now controls derived from
34299 form can properly override CreateParams.
34300 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
34301 XplatUIX11.cs: Dropped RefreshWindow method, not needed if
34302 Control performs Invalidate & Update
34303 * NativeWindow (CreateHandle): Added special handling for Form
34304 and Form.FormParent classes to allow overriding of From.CreateParams
34306 - ControlNativeWindow: Renamed 'control' variable to more intuitive
34308 - ControlNativeWindow: Added Owner property
34309 - Removed usage of Refresh() on property changes, changed into
34310 Invalidate(), we need to wait until the queue is processed for
34311 updates, direct calls might cause problems if not all vars for
34312 Paint are initialized
34313 - Added call to UpdateStyles() when creating the window, to set any
34314 styles that CreateWindow might have ignored.
34315 - Added support for Form CreateParent overrides to UpdateStyles()
34316 * MessageBox.cs: Removed no longer needed FormParent override stuff,
34317 CreateParams are now properly overridable
34318 * CommonDialog.cs: Removed no longer needed FormParent override stuff,
34319 CreateParams are now properly overridable
34321 2005-01-23 Miguel de Icaza <miguel@ximian.com>
34323 * UpDownBase.cs (ctor): Connect TextChanged in the entry to the
34326 Capture LostFocus and OnTextBoxChanged. The later introduces a
34327 recursive invocation that I have not figured out yet.
34329 Reset the timer when not using (it was accumulating).
34332 (OnTextBoxChanged): Set UserEdit to true here to track whether the
34333 user has made changes that require validation.
34335 Reset changing to avoid loops.
34337 2005-01-22 Miguel de Icaza <miguel@ximian.com>
34339 * NumericUpDown.cs: Display value at startup.
34341 * UpDownBase.cs (Text): Do not call UpdateEditText here, only call
34344 * NumericUpDown.cs: Minimum, Maximum, Text, Value properties
34345 filled in. Added some basic parsing of text.
34347 Still missing the OnXXX method overrides, and figuring out the
34348 events that must be emitted.
34350 * UpDownBase.cs: Handle UserEdit on the Text property.
34352 2005-01-22 Jordi Mas i Hernandez <jordi@ximian.com>
34355 - Fixes IntegralHeight
34358 2005-01-21 Jackson Harper <jackson@ximian.com>
34360 * TabControl.cs: Set the SelectedIndex property when SelectedTab
34361 is set so that the page visibility is updated and the tabs are
34364 2005-01-21 Jackson Harper <jackson@ximian.com>
34366 * TabControl.cs: Use cliping rectangle for blitting. Give the
34367 theme the clipping rect so we can do clipping while
34368 drawing. Remove some debug code.
34370 2005-01-21 Jackson Harper <jackson@ximian.com>
34372 * TabPage.cs: Add a new method so tab pages can force the tab
34373 control to recalculate the tab page sizes.
34374 * TabControl.cs: UpdateOwner needs to make the tab control recalc
34377 2005-01-20 Jackson Harper <jackson@ximian.com>
34379 * ThemeWin32Classic.cs: Clip text to the staus bar panels rects.
34381 2005-01-20 Jackson Harper <jackson@ximian.com>
34383 * TreeView.cs: Set the bounds for nodes properly. They were
34384 getting screwed up when checkboxes were not enabled, but images
34387 2005-01-20 Jordi Mas i Hernandez <jordi@ximian.com>
34390 - Owner draw support
34393 2005-01-20 Jackson Harper <jackson@ximian.com>
34395 * XplatUIStructs.cs: More misc keys
34396 * X11Keyboard.cs: Ignore some control keys.
34398 2005-01-20 Jackson Harper <jackson@ximian.com>
34400 * X11Structs.cs: Add the modmaps to the keymask struct and tabify.
34401 * X11Keyboard.cs: Set the AltGr mask when we get a key event.
34403 2005-01-19 Peter Bartok <pbartok@novell.com>
34405 * Control.cs: Un-selecting the control when it is loosing focus
34407 2005-01-19 Jackson Harper <jackson@ximian.com>
34409 * TreeView.cs: Hook up to the text controls leave event so we can
34410 end editing when the users clicks outside the text box.
34412 2005-01-19 Jackson Harper <jackson@ximian.com>
34414 * X11Keyboard.cs: Fix typo that was causing the wrong keycodes to
34415 get set in the conversion array.
34417 2005-01-19 Peter Bartok <pbartok@novell.com>
34419 * Application.cs (ModalRun): Added a call to CreateControl to ensure
34420 focus is properly set
34422 - Added missing attributes
34423 - removed styles, those are already set in the base class
34425 - Added missing attributes
34426 - Added clip window styles
34427 * CheckBox.cs: Added missing attributes
34429 - FormParentWindow.CreateParams: Added required clip styles
34430 * Form.cs (ProcessDialogKey): Fixed handling of Escape key, now
34431 also filters modifier keys
34433 - Added assignment of Accept and Cancel button to enable Enter
34434 and Esc keys in MessageBox dialogs
34435 - FormParentWindow.CreateParams: Added required clip styles
34436 * RadioButton.cs: Added missing attributes
34437 * TextControl.cs: No longer draws selection if control does not
34440 - Now draws simple rectangle around test area to make it obvious
34441 there's a control. This is a hack until we properly support borders
34442 - A few simple fixes to support selections better, now erases selected
34443 text when typing, and resets selection when using movement keys
34445 2005-01-19 Miguel de Icaza <miguel@ximian.com>
34447 * UpDownBase.cs: Added some new properties.
34449 * DomainUpDown.cs: Implement a lot to get my test working.
34451 2005-01-19 Geoff Norton <gnorton@customerdna.com>
34453 * XplatUIOSX.cs: Fix a minor bug to bring the close box back
34455 2005-01-19 Geoff Norton <gnorton@customerdna.com>
34457 * OSXStructs (WindowAttributes): Fixed csc complaints
34459 2005-01-19 Geoff Norton <gnorton@customerdna.com>
34462 OSXStructs.cs: Initial refactor to move enums and consts into
34463 OSXStructs and use them in the driver for greater readability.
34465 2005-01-19 Geoff Norton <gnorton@customerdna.com>
34467 * XplatUIOSX.cs: Initial support for Standard Cursors.
34468 * OSXStructs.cs: Move our structs here; added ThemeCursor enum
34470 2005-01-19 Jordi Mas i Hernandez <jordi@ximian.com>
34472 * ComboBox.cs: ability to change style when the ctrl is already
34473 created, missing methods and events, bug fixes, signature fixes
34475 2005-01-19 Peter Bartok <pbartok@novell.com>
34477 * Cursors.cs (ctor): Added ctor to fix signature
34479 2005-01-18 Peter Bartok <pbartok@novell.com>
34481 * Button.cs: Implemented DoubleClick event
34483 - Fixed keyboard handling to behave like MS, where the press of
34484 Spacebar is equivalent to a mousedown, and the key release is
34485 equivalent to mouseup. Now a spacebar push will give the same
34486 visual feedback like a mouse click.
34487 - Added missing attributes
34488 - Added ImeModeChanged event
34489 - Added support for generating DoubleClick event for derived classes
34491 - Implemented DoubleClick event
34492 - Added missing attributes
34493 * CommonDialog.cs: Added missing attribute
34494 * ContextMenu.cs: Added missing attributes
34496 - AutoChecked buttons do not allow to be unselected when clicked
34497 (otherwise we might end up with no selected buttons in a group)
34498 - Added missing attributes
34499 - Implemented DoubleClickEvent
34500 * ThreadExceptionDialog.cs: Enabled TextBox code
34502 2005-01-18 Peter Bartok <pbartok@novell.com>
34504 * Form.cs: Removed debug output
34505 * Button.cs: Added support for DoubleClick method
34507 2005-01-18 Peter Bartok <pbartok@novell.com>
34510 - Added method to parent window that allows triggering size
34511 calculations when a menu is added/removed
34512 - set_Menu: Cleaned up mess from early days of Form and Control,
34513 now properly triggers a recalc when a menu is added/removed
34514 - Added case to select form itself as focused form if no child
34516 - Added PerformLayout call when showing dialog, to ensure properly
34519 - Select(): Made internal so Form can access it
34520 - Focus(): Only call Xplat layer if required (avoids loop), and sets
34522 * Application.cs (Run): Removed hack and calls PerformLayout instead
34523 to trigger calculation when Form becomes visible
34525 2005-01-18 Jordi Mas i Hernandez <jordi@ximian.com>
34527 * ComboBox.cs: fixes for ownerdraw
34529 2005-01-18 Peter Bartok <pbartok@novell.com>
34532 - Sentinel is no longer static, each Document gets it's own, this
34533 avoids locking or alternatively overwrite problems when more
34534 than one text control is used simultaneously.
34535 - Switched to use Hilight and HilightText brushes for text selection
34537 * TextBoxBase.cs (PaintControl): Disabled AntiAliasing to improve looks
34539 2005-01-18 Peter Bartok <pbartok@novell.com>
34542 - Hooked up the following events:
34550 o SystemColorsChanged
34551 o ParentFontChanged
34553 - Removed debug output
34554 - Added a call to the current theme's ResetDefaults when a color change
34556 * Form.cs: Now setting the proper ImeMode
34557 * Theme.cs: Defined a method to force recreation of cached resources
34558 and rereading of system defaults (ResetDefaults())
34559 * ThemeWin32Classic.cs: Added ResetDefaults() stub
34561 2005-01-17 Peter Bartok <pbartok@novell.com>
34563 * Control.cs: Added missing attributes
34565 2005-01-17 Jackson Harper <jackson@ximian.com>
34567 * TreeNode.cs: Implement editing. Add missing properties selected
34569 * TreeView.cs: Implement node editing. Also some fixes to use
34570 Invalidate (invalid area) instead of Refresh when selecting.
34572 2005-01-17 Peter Bartok <pbartok@novell.com>
34575 - Implemented InvokeGotFocus() method
34576 - Implemented InvokeLostFocus() method
34577 - Implemented InvokePaint() method
34578 - Implemented InvokePaintBackground() method
34579 - Implemented InvokeClick() method
34580 - Implemented FindForm() method
34581 - Implemented RectangleToClient() method
34582 - Implemented ClientToRectangle() method
34583 - Implemented ResetBackColor() method
34584 - Implemented ResetCursor() method
34585 - Implemented ResetFont() method
34586 - Implemented ResteForeColor() method
34587 - Implemented ResetImeMode() method
34588 - Implemented ResetLeftToRight() method
34589 - Implemented ResetText() method
34590 - Implemented Scale() methods
34591 - Implemented ScaleCore() method
34592 - Implemented Update() method
34593 - Removed unused variables
34594 - Stubbed AccessibilityNotifyClients and
34595 ControlAccessibleObject.NotifyClients() methods (dunno what to do
34597 - Now setting proper default for RightToLeft property
34598 - Fixed bug in SetClientSizeCore that would cause windows to get
34600 - Now sending Click/DoubleClick events
34601 - Now selecting controls when left mouse button is clicked on
34603 * AccessibleEvents.cs: Added
34604 * XplatUI.cs, XplatUIDriver.cs: Added UpdateWindow() method
34605 * XplatUIOSX.cs: Stubbed UpdateWindow() method
34606 * XplatUIWin32.cs: Implemented UpdateWindow() method
34607 * XplatUIX11.cs: Implemented UpdateWindow() method
34608 * Form.cs: Removed stray semicolon causing CS0162 warning
34609 * ThemeWin32Classic.cs: Fixed unused variable warnings
34610 * ScrollableControl.cs: Now calls base method for ScaleCore
34611 * ButtonBase.cs: Now disabling StandardClick and StandardDoubleClick
34612 style to avoid interference with internal click handler (which is
34613 different than standard Control click handling)
34615 - Now unchecks all sibling radio buttons when control is
34616 selected (Fixes #68756)
34617 - Removed internal tabstop variable, using the one inherited from
34620 2005-01-17 Jackson Harper <jackson@ximian.com>
34622 * NavigateEventArgs.cs: Fix base type.
34623 * LinkLabel.cs: Sig fix
34625 2005-01-17 Jackson Harper <jackson@ximian.com>
34627 * TreeView.cs: Only invalidate the effected nodes bounds when
34630 2005-01-13 Jordi Mas i Hernandez <jordi@ximian.com>
34632 * XplatUIWin32.cs: fixes Win32 marshaling
34633 * XplatUIX11.cs: fixes method signature
34635 2005-01-17 Peter Bartok <pbartok@novell.com>
34637 * XplatUIX11.cs: Clean up resources when we no longer need them
34639 2005-01-17 Peter Bartok <pbartok@novell.com>
34641 * XplatUI.cs, XplatUIDriver.cs: Added SetCursor(), ShowCursor(),
34642 OverrideCursor(), DefineCursor(), DefineStdCursor(), GetCursorInfo()
34643 and DestroyCursor() methods.
34644 * Cursor.cs: Partially implemented, now supports standard cursors;
34645 still contains some debug code
34646 * Cursors.cs: Implemented class
34648 - WndProc(): Added handling of WM_SETCURSOR message, setting the
34650 - Implemented Cursor property
34651 - Replaced break; with return; more straightforwar and possibly
34653 - Now properly setting the result for WM_HELP
34654 * X11Structs.cs: Added CursorFontShape enum
34655 * XplatUIStructs.cs:
34656 - Added StdCursor enum (to support DefineStdCursor() method)
34657 - Added HitTest enum (to support sending WM_SETCURSOR message)
34659 - Now sends the WM_SETCURSOR message
34660 - Implemented new cursor methods
34661 * XplatUIOSX.cs: Stubbed new cursor methods
34663 - Implemented new cursor methods
34664 - Added GetSystemMetrics function and associated enumeration
34666 2005-01-15 Peter Bartok <pbartok@novell.com>
34669 - WndProc(): Now handles EnableNotifyMessage
34670 - SelectNextControl(): Fixed bug where if no child or sibling
34671 controls exist we looped endlessly
34673 2005-01-14 Jackson Harper <jackson@ximian.com>
34675 * TreeView.cs: Recalculate the tab pages when a new one is added
34676 so that the proper bounding rects are created.
34678 2005-01-14 Jackson Harper <jackson@ximian.com>
34680 * TreeView.cs: Draw a gray box instead of a grip in the lower
34681 right hand corner when there are both horizontal and vertical
34684 2005-01-14 Jackson Harper <jackson@ximian.com>
34686 * Control.cs: When erasing backgrounds use FromHwnd instead of
34687 FromHdc when there is a NULL wparam. This occurs on the X driver.
34688 * XplatUIX11.cs: Set the wparam to NULL.
34690 2005-01-13 Jackson Harper <jackson@ximian.com>
34692 * PictureBox.cs: Implement missing methods (except ToString, need
34693 to test that on windows) and events. When visibility is changed we
34694 need to redraw the image because the buffers are killed. When size
34695 is changed refresh if the sizemode needs it.
34697 2005-01-13 Peter Bartok <pbartok@novell.com>
34699 * Control.cs (SelectNextControl): Was using wrong method to select
34702 2005-01-13 Jordi Mas i Hernandez <jordi@ximian.com>
34704 * ComboBox.cs: fixes dropstyle
34706 2005-01-13 Peter Bartok <pbartok@novell.com>
34709 - Implemented Select() override
34710 - Now handles WM_SETFOCUS/WM_KILLFOCUS messages
34711 - Now sets keyboard focus on startup
34712 * Control.cs (SelectNextControl): Now properly handles directed=true
34714 - WndProc: Now passes tab key on to base if AcceptTabChar=false
34715 - Added (really bad) focus rectangle (mostly for testing)
34716 * TextBox.cs: Added code to handle getting/loosing focus and invalidating
34717 to enforce redraw on focus changes
34718 * ContainerControl.cs:
34719 - Fixed detection of Shift-Tab key presses
34720 - Fixed traversal with arrow keys
34721 * XplatUIX11.cs: Implemented simulated keyboard focus; not sure if we're
34722 gonna keep this or if it's complete yet
34724 2005-01-13 Jordi Mas i Hernandez <jordi@ximian.com>
34726 * ComboBox.cs: missing properties, fixes
34728 2005-01-13 Peter Bartok <pbartok@novell.com>
34730 * Panel.cs (ctor): Setting Selectable window style to off
34731 * Splitter.cs (ctor): Setting Selectable window style to off
34732 * GroupBox.cs (ctor): Setting Selectable window style to off
34733 * Label.cs (ctor): Setting Selectable window style to off
34735 2005-01-12 Miguel de Icaza <miguel@ximian.com>
34737 * UpDownBase.cs (InitTimer): If the timer has been already
34738 created, enable it.
34740 Use a TextBox instead of a Label.
34742 2005-01-12 Jackson Harper <jackson@ximian.com>
34744 * TreeView.cs: Refresh the tree after sorting the nodes. Always
34745 draw the connecting node lines (when ShowLines is true).
34746 * TreeNode.cs: The nodes index can now be updated. This is used
34747 when a node collection is sorted.
34748 * TreeNodeCollection.cs: Implement sorting. Nodes can be sorted on
34749 insert or an existing unsorted node collection can be sorted.
34751 2005-01-12 Peter Bartok <pbartok@novell.com>
34753 * ContainerControl.cs: Implemented ProcessDialogKeys()
34755 2005-01-12 Peter Bartok <pbartok@novell.com>
34758 - Implemented SelectNextControl() method
34759 - Several focus related bug fixes
34760 - Fixed Docking calculations to match MS documentation and
34763 2005-01-12 Jordi Mas i Hernandez <jordi@ximian.com>
34765 * ContainerControl.cs, ListControl.cs, ListBox.cs: keyboard navigation and
34768 2005-01-12 Peter Bartok <pbartok@novell.com>
34771 - Fixed broken Contains() method
34772 - Implemented GetNextControl() method. Finally. This is the pre-
34773 requisite for focus handling.
34775 2005-01-12 Peter Bartok <pbartok@novell.com>
34777 * OSXStrucs.cs: Added
34779 2005-01-12 Peter Bartok <pbartok@novell.com>
34782 - Removed PeekMessageFlags
34783 - Implemented SetWindowStyle() method
34784 * XplatUIStructs.cs: Added PeekMessageFlags
34785 * X11Structs: Added missing border_width field to XWindowChanges struct
34787 - PeekMessage: Now throws exception if flags which are not yet
34788 supported are passed
34789 - Implemented SetWindowStyle() method
34790 - Fixed SetZOrder to handle AfterHwnd properly
34791 * XplatUI.cs: Added SetWindowStyle() method
34792 * XplatUIDriver.cs: Added SetWindowStyle() abstract
34794 - Implemented UpdateStyles() method
34795 - Implemented UpdateZOrder() method
34796 * XplatUIOSX.cs: Added SetWindowStyle() stub
34798 2005-01-12 Geoff Norton <gnorton@customerdna.com>
34800 * XplatUIOSX.cs: Fix SetZOrder (this needs more testing with a 3
34804 2005-01-11 Jackson Harper <jackson@ximian.com>
34806 * TreeView.cs: Still need to draw lines to siblings even if out of
34807 the current node is out of the clip.
34809 2005-01-11 Jackson Harper <jackson@ximian.com>
34811 * TreeView.cs: When setting the hbar/vbar/grip position use
34812 SetBounds so that perform layout is only called once. Also suspend
34813 and resume layout so layout is only done once for all controls.
34814 - Removed some debug fluff
34815 * SizeGrip.cs: Call base implmentation in overriding methods.
34816 - When visibility is changed the drawing buffers are killed so we
34819 2005-01-11 Jackson Harper <jackson@ximian.com>
34821 * TreeView.cs: Calculate the open node count while drawing. This
34822 saves us an entire tree traversal for every paint operation. Use
34823 a member var for the open node count so less vars are passed around.
34825 2005-01-11 John BouAntoun <jba-mono@optusnet.com.au>
34827 * MonthCalendar.cs:
34828 - fixed selection to use mousemove, not mouse polling on timer
34829 * ThemeWin32Classic.cs
34830 - removed redundant unused variable "no_more_content"
34832 2005-01-11 Peter Bartok <pbartok@novell.com>
34834 * XplatUIX11.cs (DoEvents): Needs to return when no more events
34835 are pending, so it now calls PeekMessage instead of GetMessage;
34836 implemented a incomplete version of PeekMessage
34838 2005-01-11 Peter Bartok <pbartok@novell.com>
34840 * XplatUIWin32.cs: Switched P/Invokes to unicode charset to avoid
34842 * TextBoxBase.cs: Added sending of TextChanged event
34844 2005-01-10 Jackson Harper <jackson@ximian.com>
34846 * TreeView.cs: Try not to draw outside the clipping rectangle on
34849 2005-01-10 Jordi Mas i Hernandez <jordi@ximian.com>
34851 * ComboBox.cs: keyboard navigation, item navigation, bug fixes
34853 2005-01-10 Jackson Harper <jackson@ximian.com>
34856 - Implement fast scrolling. Now only the newly
34857 exposed nodes are drawn and the old image is moved using the
34858 XplatUI::ScrollWindow method.
34859 - Factor in height of nodes when calculating whether or not the
34860 node is in the clipping rect.
34862 2005-01-10 Jackson Harper <jackson@ximian.com>
34864 * TreeNodeCollection.cs: Refresh the tree when a new node is added.
34866 2005-01-10 Peter Bartok <pbartok@novell.com>
34868 * Application.cs: Added temporary hack to resolve all our resize
34869 required issues on startup. This will get fixed properly at
34870 some point in the future
34872 2005-01-10 Jackson Harper <jackson@ximian.com>
34874 * SizeGrip.cs: New internal class that is used as a sizing
34875 grip control...hence the name.
34877 2005-01-10 Peter Bartok <pbartok@novell.com>
34879 * Control.cs: Implemented proper TabIndex handling, now assigning
34880 a tabindex when a control is added to a container
34881 * GroupBox.cs (ctor): Now sets the Container style bit, required
34882 for Control.GetNextControl()
34884 2005-01-09 Jackson Harper <jackson@ximian.com>
34886 * TextBoxBase.cs: Clear window when scrolling (fixes build).
34888 2005-01-09 Peter Bartok <pbartok@novell.com>
34890 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
34891 XplatUIX11.cs: Added ability to control ScrollWindow expose and
34892 an overload for ScrollWindow to allow only scrolling a rectangle
34894 2005-01-09 Peter Bartok <pbartok@novell.com>
34897 - Implemented SetDesktopBounds method
34898 - Implemented SetDesktopLocation method
34900 2005-01-08 Jackson Harper <jackson@ximian.com>
34902 * TreeView.cs: Only set the vbar's Maximum and LargeChange when
34903 the node count has changed, this removes to VScroll::Refresh calls
34906 2005-01-08 Geoff Norton <gnorton@customerdna.com>
34908 * XplatUIOSX.cs: Fix GetWindowState & SetWindowState
34910 2005-01-07 Jackson Harper <jackson@ximian.com>
34912 * TreeNode.cs: Just update the single node when it is
34913 checked. Don't refresh after toggling, the Expand/Collapse already
34915 * TreeView.cs: Respect clipping a little more when drawing. Try
34916 not to redraw things that don't need to be redrawn. Just hide the
34917 scrollbars when they are no longer needed instead of removing
34918 them, so they don't have to be created again and again.
34920 2005-01-07 Geoff Norton <gnorton@customerdna.com>
34922 * XplatUIOSX.cs (SetCaretPos): We need to translate the view
34923 coordinates to window space to place the caret properly, FIXED.
34924 Implement GetWindowState & SetWindowState
34926 2005-01-06 Peter Bartok <pbartok@novell.com>
34929 - Implemented ClientSize property
34930 - Implemented DesktopBounds property
34931 - Implemented DesktopLocation property
34932 - Implemented IsRestrictedWindow property
34933 - Implemented Size property
34934 - Implemented TopLevel property
34935 - Implemented FormWindowState property
34937 - Implemented GetTopLevel() method
34938 - Implemented SetTopLevel() method
34939 * X11Structs.cs (Atom):
34940 - Added AnyPropertyType definition
34941 - Added MapState definiton and updated XWindowAttribute struct
34942 * XplatUI.cs: Added GetWindowState() and SetWindowState() methods
34943 * XplatUIDriver.cs: Added GetWindowState() and SetWindowState() methods
34944 * XplatUIOSX.cs: Stubbed GetWindowState() and SetWindowState() methods
34946 - Implemented GetWindowState() and SetWindowState() methods
34947 - Fixed Win32GetWindowLong return type
34949 - Introduced central function for sending NET_WM messages
34950 - Implemented GetWindowState() and SetWindowState() methods
34951 * TextBoxBase.cs (set_Lines):
34952 - Now uses Foreground color for text added via Text property (Duh!)
34953 - Added code to remember programmatically requested size (fixes
34954 behaviour when Multiline is set after Size)
34955 - Added AutoSize logic
34957 2005-01-06 Jackson Harper <jackson@ximian.com>
34959 * TreeView.cs: Draw the image after the checkbox if checkboxes are enabled.
34961 2005-01-06 Jackson Harper <jackson@ximian.com>
34963 * ListBox.cs: Don't allow the horizontal scrollbars maximum to be
34964 set to less then 0.
34966 2005-01-06 Jackson Harper <jackson@ximian.com>
34968 * ScrollableControl.cs: Lazy init the scrollbars.
34970 2005-01-06 Jackson Harper <jackson@ximian.com>
34972 * Theme.cs: Speed up getting pens and solid brushes, by using
34973 their ARGB as a hash instead of tostring and not calling Contains.
34975 2005-01-06 Peter Bartok <pbartok@novell.com>
34978 - Implemented OnActivated and OnDeactivate event trigger
34979 - Implemented Activate() method
34980 - Fixed ShowDialog() to activate the form that was active before
34981 the dialog was shown
34983 - Added global active_window var that tracks the currently active
34985 - Now always grabs Property changes from the root window to always
34986 catch changes on the active window property
34987 - Added code to PropertyNotify handler to send Active/Inactive
34988 messages when state changes. This puts X11 and Win32 en par on
34989 WM_ACTIVATE notifications (except for double notifications when
34990 the user clicks away from our modal window to another one of our
34993 2005-01-05 Jackson Harper <jackson@ximian.com>
34995 * ImageList.cs: Implment ctor
34997 2005-01-05 Geoff Norton <gnorton@customerdna.com>
34999 * XplatUIOSX.cs: Implement Activate/SetTopmost
35001 2005-01-05 Geoff Norton <gnorton@customerdna.com>
35003 * XplatUIOSX.cs: Implement SetZOrder, minor cleanup
35005 2005-01-05 Geoff Norton <gnorton@customerdna.com>
35007 * XplatUIOSX.cs: Implement GetActive/SetFocus.
35009 2005-01-05 Peter Bartok <pbartok@novell.com>
35011 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs,
35012 XplatUIOSX.cs: Added GetActive method to return the currently
35013 active window for the application (or null, if none is active)
35015 - Implemented ActiveForm
35016 - Commented out owner assignment for modal dialogs (causes problems
35017 on Win32, since the owner will be disabled)
35018 - Reworked some Active/Focus handling (still incomplete)
35019 * CommonDialog.cs: Commented out owner assignment for modal dialogs
35020 (causes problems on Win32, since the owner will be disabled)
35021 * IWin32Window: Added ComVisible attribute
35023 2005-01-05 Peter Bartok <pbartok@novell.com>
35025 * ToolTip.cs (WndProc): Enable setting focus now that we have the
35026 required XplatUI functions.
35028 2005-01-05 Peter Bartok <pbartok@novell.com>
35030 * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIDriver.cs,
35031 XplatUIX11.cs, X11Structs.cs, Form.cs: Framework code required
35032 to implement focus and activation handling; still incomplete and
35035 2005-01-04 Peter Bartok <pbartok@novell.com>
35037 * TextBoxBase.cs: Changed access level for Document property to
35038 match switch to internal for TextControl
35040 2005-01-04 Peter Bartok <pbartok@novell.com>
35042 * AccessibleObject: Added ComVisible attribute
35044 2005-01-04 Jackson Harper <jackson@ximian.com>
35046 * X11Keyboard.cs: Remove unneeded var.
35048 2005-01-04 Jackson Harper <jackson@ximian.com>
35050 * XplatUIX11.cs (DoEvents): Implement, Just cast aside all events
35052 * XplatUIX11.cs (GetMessage): Call Exit when we get an unknown
35053 ClientMessage. This makes apps exit cleanly (more often).
35055 2005-01-04 Jackson Harper <jackson@ximian.com>
35057 * TreeNode.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) for
35058 handling focus, return correct colors and fonts,
35059 * TreeView.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) to
35060 handle selection, horizontal scrolling, and mouse interaction.
35062 2005-01-04 Peter Bartok <pbartok@novell.com>
35064 * ICommandExecutor.cs: Added
35065 * IDataGridColumnStyleEditingNotificationService.cs: Added
35066 * IFeatureSupport.cs: Added
35067 * IFileReaderService.cs: Added
35068 * IDataObject.cs: Added ComVisible attribute
35069 * AmbientProperties.cs: Added
35070 * BaseCollection.cs: Added missing attributes
35071 * ListBindingConverter.cs: Added (stubbed, required for certain attributes)
35072 * BaseCollection.cs: Added missing attributes
35073 * Binding.cs: Added TypeConverter attribute
35074 * BindingContext.cs: Added DefaultEvent attribute
35075 * BindingsCollection.cs: Added DefaultEvent attribute
35076 * Button.cs: Added DefaultValue attribute
35077 * DragEventArgs.cs: Added ComVisible attribute
35078 * GiveFeedbackEventArgs.cs: Added ComVisible attribute
35079 * KeyEventArgs.cs: Added ComVisible attribute
35080 * KeyPressEventArgs.cs: Added ComVisible attribute
35081 * MouseEventArgs.cs: Added ComVisible attribute
35082 * NavigateEventArgs.cs: Added
35083 * NavigateEventHandler.cs: Added
35084 * FeatureSupport.cs: Added
35085 * OSFeature.cs: Added
35086 * Theme.cs: Added abstract Version property to support OSFeature
35087 * ThemeWin32Classic.cs: Added Version property to
35088 support OSFeature.Themes
35089 * ProgressBar.cs: Removed OnPaintBackground override, not required since
35090 the proper styles to avoid background drawing are set, also doesn't
35092 * QueryAccessibilityHelpEventArgs.cs: Added ComVisible attribute
35093 * QueryContinueDragEventArgs.cs: Added ComVisible attribute
35094 * ScrollEventArgs.cs: Added ComVisible attribute
35095 * SplitterEventArgs.cs: Added ComVisible attribute
35096 * AccessibleSelection.cs: Added Flags attribute
35097 * Appearance.cs: Added ComVisible attribute
35098 * Border3DSide.cs: Added ComVisible attribute
35099 * Border3DStyle.cs: Added ComVisible attribute
35100 * BorderStyle.cs: Added ComVisible attribute
35101 * DragAction.cs: Added ComVisible attribute
35102 * ErrorBlinkStyle.cs: Added
35103 * ScrollEventType.cs: Added ComVisible attribute
35104 * AnchorStyles.cs: Added Editor attribute
35105 * DockStyle.cs: Added Editor attribute
35106 * HorizontalAlignment.cs: Added ComVisible attribute
35107 * HelpEventArgs.cs: Added ComVisible attribute
35108 * PaintEventArgs.cs: Added IDisposable
35110 2005-01-04 Peter Bartok <pbartok@novell.com>
35112 * TextControl.cs: Switched Line, LineTag and Document classes to
35115 2005-01-04 Jordi Mas i Hernandez <jordi@ximian.com>
35117 * ComboBox.cs, ThemeWin32Classic.cs, ListBox.cs, Theme.cs:
35118 Simple mode, fixes, IntegralHeight, etc.
35120 2005-01-04 Peter Bartok <pbartok@novell.com>
35122 * TextBoxBase.cs: Using proper font variable now
35124 2005-01-04 Peter Bartok <pbartok@novell.com>
35126 * Form.cs (ShowDialog): Set parent to owner, if provided
35127 * GroupBox.cs: Removed unused vars
35129 - Added GetHashCode() for Document and LineTag classes
35130 - Removed unused variables
35131 - Added CharIndexToLineTag() and LineTagToCharIndex() methods
35132 to allow translation between continuous char position and line/pos
35133 * CheckBox.cs: Removed vars that are provided by base class
35134 * RadioButton.cs: Removed vars that are provided by base class, added
35135 new keyword where required
35136 * LinkLabel.cs: Added new keyword where required
35137 * Control.cs (WndProc): Removed unused variable
35139 - Finished SelectionLength property
35140 - Implemented SelectionStart property
35141 - Implemented Text property
35142 - Removed unused vars
35143 * MessageBox.cs: Added new keyword where required
35144 * TextBox.cs: Removed Text property code (now in TextBoxBase), fixed
35146 * MenuAPI.cs: Added new keyword where required
35147 * ButtonBase.cs: Removed vars that are provided by base class, added
35148 new keyword where required
35149 * ThemeWin32Classic.cs (DrawMonthCalendarDate): Now cast Math.Floor
35150 argument to double, to allow compiling with csc 2.0 (Atsushi ran
35152 * Application.cs (Run): Now triggers the ThreadExit event
35153 * CommonDialog.cs: Added new keyword where required; now properly sets
35154 parent (owner) for dialog
35155 * XplatUIX11.cs: Commented out unused vars
35156 * StatusBar.cs: Fixed signature for Text property
35157 * TabPage.cs: Undid Jordi's removal of unused var, now using the var
35159 2005-01-04 Jordi Mas i Hernandez <jordi@ximian.com>
35161 * ComboBox.cs, TabPage.cs, MenuAPI.cs, ThemeWin32Classic.cs,
35162 TrackBar.cs, MonthCalendar.cs: remove unused vars
35164 2005-01-03 Jackson Harper <jackson@ximian.com>
35166 * ThemeWin32Classic.cs:
35167 * X11Keyboard.cs: Remove unused vars.
35169 2005-01-03 Peter Bartok <pbartok@novell.com>
35172 - set_Text: Tied into TextControl
35173 - set_TextAlignment: Tied into TextControl
35175 - Added alignment properties and implemented alignment handling
35176 and drawing (still has a bug, not generating proper expose events)
35177 - Added new Line() constructor to allow passing the line alignment
35178 - Fixed selection setting, properly handling end<start now
35179 - Added aligment considerations to RecalculateDocument()
35181 - Now properly enforces control height for single line controls
35182 - Added support for CharacterCasing
35183 - Added IsInputKey override
35184 - Fixed Keys.Enter logic
35185 - Added SetBoundsCore override
35186 - Fixed mouse selection handling
35188 2005-01-03 Jackson Harper <jackson@ximian.com>
35191 - Collapse and uncheck all nodes when CheckBoxes is disabled.
35192 - Checkboxes are always aligned to the bottom of the node,
35193 regardless of item height.
35194 - Use the node bounds to draw the text so we can center it when
35195 the item height is greater then the font height.
35196 - Node::Bounds are only the text part of the node.
35197 * TreeNode.cs: New method to combine collapsing and unchecking all
35200 2005-01-02 Jackson Harper <jackson@ximian.com>
35202 * TreeView.cs: Draw checkmarks, handle detecting check mark clicks
35203 * TreeNode.cs: Add a bounding box for the checkbox, refresh the
35204 tree when a check is changed. TODO: Only refresh the checked node.
35206 2004-12-30 Jackson Harper <jackson@ximian.com>
35208 * TreeView.cs: Draw checkbox boxes when checkboxes are enabled.
35209 * TreeNode.cs: When collapsing make sure to never collapse the
35212 2004-12-29 Jackson Harper <jackson@ximian.com>
35214 * TreeView.cs: Align lines to the bottom of plus minus boxes properly.
35216 2004-12-28 Zoltan Varga <vargaz@freemail.hu>
35218 * X11Structs.cs X11Keyboard.cs XplatUIX11.cs: Fix 64 bit issues.
35220 2004-12-28 Peter Bartok <pbartok@novell.com>
35222 * MessageBox.cs (get_CreateParams): Don't use owner var if it's
35225 2004-12-28 Peter Bartok <pbartok@novell.com>
35227 * Control.cs (WndProc): Added WM_HELP handler, now generates
35228 HelpRequested event
35229 * Form.cs: Added HelpButton property and required support code
35230 * XplatUIStructs.cs: Added HELPINFO structure for WM_HELP handling
35232 2004-12-28 Peter Bartok <pbartok@novell.com>
35235 - Made DialogForm.owner variable internal
35236 - Added check to ensure owner form is set before setting
35237 owner properties in CreateParams
35239 2004-12-28 Geoff Norton <gnorton@customerdna.com>
35241 * XplatUIOSX.cs: Implement mouse hovering. Fix QDPoint struct to avoid
35242 swizzling. Implement ClientToScreen and ScreenToClient. Implement
35243 GetCursorPos. Fix major visibility issues. Rework the windowing
35244 system to support borderless/titleless windows (implements menus).
35245 Fix GetWindowPos. Implement initial background color support for
35248 2004-12-28 Peter Bartok <pbartok@novell.com>
35250 * Form.cs (get_CreateParams): Make sure we have an owner before using
35251 the owner variable. Implement proper default if no owner exists
35253 2004-12-28 Peter Bartok <pbartok@novell.com>
35255 * In preparation for making Managed.Windows.Forms the default build target
35256 for System.Windows.Forms, the following stubbed files were added.
35257 Dialogs are currently being implemented by contributors and are only
35258 short-term place holders.
35259 * ColorDialog.cs: Initial check-in (minmal stub)
35260 * DataGrid.cs: Initial check-in (minimal stub)
35261 * DataGridLineStyle.cs: Initial check-in (minimal stub)
35262 * DataGridParentRowsLabelStyle.cs: Initial check-in (minimal stub)
35263 * DataGridTableStyle.cs: Initial check-in (minimal stub)
35264 * FontDialog.cs: Initial check-in (minimal stub)
35265 * FileDialog.cs: Initial check-in (minimal stub)
35266 * GridColumnStylesCollection.cs: Initial check-in (minimal stub)
35267 * GridTableStylesCollection.cs: Initial check-in (minimal stub)
35268 * OpenFileDialog: Initial check-in (minimal stub)
35269 * IComponentEditorPageSite.cs: Initial check-in
35270 * Splitter.cs: Initial check-in (for Jackson)
35271 * SplitterEventArgs.cs: Initial check-in (for Jackson)
35272 * SplitterEventHandler.cs: Initial check-in (for Jackson)
35273 * TextBox.cs: Initial check-in; still needs some wiring to
35274 TextControl backend
35275 * Form.cs: Implemented ControlBox property
35276 * MessageBox.cs: Added proper coding for Minimize/Maximize/ControlBox
35277 * CommonDialog.cs: Added proper coding for Minimize/Maximize/ControlBox
35278 * TextControl.cs: Added selection functionality; added todo header
35280 - Implemented Lines property
35281 - Implemented TextHeight property
35282 - Implemented SelectedText property
35283 - Implemented SelectionLength property
35284 - Implemented SelectAll method
35285 - Implemented ToString method
35286 - Removed and cleaned up some debug code
35287 - Implemented (still buggy) mouse text selection
35289 2004-12-27 Jordi Mas i Hernandez <jordi@ximian.com>
35291 * ComboBox.cs: Complete DropDownList implementation, fixes.
35293 2004-12-26 Jordi Mas i Hernandez <jordi@ximian.com>
35295 * ThemeWin32Classic, Theme.cs: ComboBox drawing methods
35296 * ComboBoxStyle.cs: ComboBoxStyle enum
35297 * ComboBox.cs: Initial work on ComboBox control
35299 2004-12-21 Peter Bartok <pbartok@novell.com>
35301 * Control.cs (ctor, CreateParams): Moved setting of is_visible
35302 forward so that anything that creates a window gets the default,
35303 also no longer uses Visible property in CreateParams to avoid
35304 walking up the parent chain and possibly get the wrong visible
35305 status. Fixed IsVisible to no longer walk up to the parent.
35307 2004-12-21 Peter Bartok <pbartok@novell.com>
35309 * Form.cs (ShowDialog): Unset modality for the proper window
35311 2004-12-20 Peter Bartok <pbartok@novell.com>
35313 * CommonDialog.cs: Initial check-in
35315 2004-12-20 Peter Bartok <pbartok@novell.com>
35317 * Control.cs (Visible): Now uses the parent window instead of the
35318 client area window for the property
35321 - ShowDialog(): Now uses the proper window for modality
35322 - The default visibility state for the form parent is now false. This
35323 will prevent the user from seeing all the changes to the form and
35324 its controls before the application hits Application.Run()
35325 - Removed some stale commented out code
35328 - Added FindWindow() method to have a method to check for existence
35330 - Added ability to override default exception handling (for example
35331 when debugging with VS.Net; to do this the ExternalExceptionHandler
35333 - Removed some useless debug output
35336 - Removed r37929 (SetModal patch from Ashwin Bharambe), was
35337 not working as expected
35338 - Implemented modal_window stack and checking for _WM_ACTIVE_WINDOW
35339 property to allow switching back to the modal window if focus is
35340 given to another one of our windows (Application Modal)
35341 - Now only sets override_redirect if we create a window
35343 - Moved EventMask selection before mapping of newly created window
35344 so we can catch the map event as well
35345 - Implemented Activate() method via the _WM_ACTIVE_WINDOW property
35346 - Added various Atom related DllImports
35347 - Implemented Exit() method
35348 - .ctor() : No longer shows window if WS_VISIBLE is not defined
35349 in the CreateParams
35351 * MessageBox.cs: Now properly deals with the FormParent window by
35352 providing an override the FormParent CreateParams property to
35353 set as POPUP instead of OVERLAPPED window.
35355 2004-12-19 Geoff Norton <gnorton@customerdna.com>
35357 * XplatUIOSX.cs: Implement DestroyWindow. Implement ScrollWindow
35358 Minor code cleanup.
35360 2004-12-19 Geoff Norton <gnorton@customerdna.com>
35362 * XplatUIOSX.cs (SetModal): Implement this method on OSX.
35364 2004-12-18 Peter Bartok <pbartok@novell.com>
35366 * XplatUIX11.cs (SetModal): Applied patch from Ashwin Bharambe,
35367 implementing SetModal() method
35369 2004-12-18 Peter Bartok <pbartok@novell.com>
35371 * X11Structs.cs (XGCValues): Fixed type of function element
35372 * XplatUI.cs: Added ScrollWindow() method
35373 * XplatUIDriver.cs: Added ScrollWindow() abstract
35374 * XplatUIWin32.cs: Implemented ScrollWindow() method
35375 * XplatUIX11.cs: Implemented ScrollWindow() method
35376 * XplatUIOSX.cs: Stubbed out ScrollWindow() method
35378 2004-12-17 Geoff Norton <gnorton@customerdna.com>
35380 * XplatUIOSX.cs: Fix cursor to use an Invert instead of drawing it
35381 Some more keyboard support (INCOMPLETE)
35383 2004-12-17 Peter Bartok <pbartok@novell.com>
35386 - Added color attribute to line tags.
35387 - Added color argument to all functions dealing with tags
35388 - Added color argument support to various functions
35389 - Fixed miss-calculation of baseline/shift in certain circumstances
35391 * TextBoxBase.cs: Added new color option to test code
35393 2004-12-17 Jackson Harper <jackson@ximian.com>
35396 * MonthCalendar.cs: Signature fixes
35398 2004-12-17 Geoff Norton <gnorton@customerdna.com>
35400 * XplatUIOSX.cs: Find the missing caret; caret was dissappearing after a
35401 keyboard event moved it. Create a new graphics context for each paint resolves this
35403 2004-12-17 Geoff Norton <gnorton@customerdna.com>
35405 * XplatUIOSX.cs: Fix hard cpu eat on loop with existing timers,
35406 Make caret exist and go blink blink. Initial keyboard support.
35407 Fix exception handler, Add Invalidate support. Change way RefreshWindow
35410 2004-12-17 Jackson Harper <jackson@ximian.com>
35412 * XplatUIStructs.cs: Updated set of virtual keycodes.
35413 * KeyboardLayouts.cs: SCROLL_LOCK is now SCROLL
35415 2004-12-17 Jackson Harper <jackson@ximian.com>
35417 * XplatUIX11.cs: Prune old keyboard code.
35419 2004-12-17 Jackson Harper <jackson@ximian.com>
35421 * XplatUIX11.cs: When generating mouse wparams get the modifier
35422 keys from the ModifierKeys property.
35424 2004-12-17 Jackson Harper <jackson@ximian.com>
35426 * X11Keyboard.cs: Send up/down input when generating
35427 messages. Remove some unused vars.
35429 2004-12-17 Jackson Harper <jackson@ximian.com>
35432 * TreeView.cs: get rid of warnings.
35434 2004-12-17 Jackson Harper <jackson@ximian.com>
35436 * XplatUIStructs.cs: Fix a couple wrong virtual keycodes.
35438 2004-12-17 Jordi Mas i Hernandez <jordi@ximian.com>
35440 * ListBox.cs: bug fixes, changes for CheckedListBox.cs
35441 CheckedListBox.cs: Implementation
35443 2004-12-17 Peter Bartok <pbartok@novell.com>
35445 * TextControl.cs (RecalculateLine): Fixed baseline aligning calcs
35447 2004-12-16 Peter Bartok <pbartok@novell.com>
35450 - InsertCharAtCaret(): Fixed start pos fixup
35451 - CaretLine_get: No longer derives the line from the tag, the tag
35452 could be stale if lines in the document have been added or deleted
35453 - RebalanceAfterDelete(): Fixed bug in balancing code
35454 - RebalanceAfterAdd(): Fixed really stupid bug in balancing code
35455 - Line.Streamline(): Now can also elminate leading empty tags
35456 - DumpTree(): Added a few more tests and prevented exception on
35458 - Added Debug section for Combining lines
35459 - Delete(): Now copies all remaining properties of a line
35462 - Left mousebutton now sets the caret (and middle button still acts
35463 as formatting tester, which must go away soon)
35464 - Added Debug section for Deleting/Combining lines
35465 - Fixed calculations for UpdateView after Combining lines
35467 2004-12-16 Peter Bartok <pbartok@novell.com>
35469 * TextControl.cs: Now properly aligns text on a baseline, using the
35470 new XplatUI.GetFontMetrics() method. Simplified several calculations
35471 * TextBoxBase.cs: Moved #endif to allow compiling if Debug is not
35474 2004-12-16 Peter Bartok <pbartok@novell.com>
35476 * XplatUI.cs: Added GetFontMetrics() method
35477 * XplatUIDriver.cs: Added GetFontMetrics() abstract
35478 * XplatUIX11.cs: Implemented GetFontMetrics() method, now calls
35479 into libgdiplus, our private GetFontMetrics function
35480 * XplatUIOSX.cs: Implemented GetFontMetrics() method, same as X11
35481 * XplatUIWin32.cs: Implemented GetFontMetrics() method
35483 2004-12-16 Jackson Harper <jackson@ximain.com>
35485 * XplatUIStruct.cs: Add enum for dead keys
35486 * X11Keyboard.cs: Map and unmap dead keys.
35488 2004-12-16 Jackson Harper <jackson@ximian.com>
35490 * X11Keyboard.cs: Detect and use the num lock mask.
35492 2004-12-16 Peter Bartok <pbartok@novell.com>
35494 * Control.cs (CreateGraphics): Added check to make sure the
35495 handle of the window exists before calling Graphics.FromHwnd()
35497 2004-12-16 Peter Bartok <pbartok@novell.com>
35499 * TextBoxBase.cs: Initial check-in. DO NOT TRY TO USE THIS YET. It
35500 contains a lot of code that's not supposed to be there for the
35501 real thing, but required for developing/testing the textbox
35504 2004-12-16 Peter Bartok <pbartok@novell.com>
35507 - Fixed Streamline method
35508 - Added FindTag method to Line
35509 - Added DumpTree method for debugging
35510 - Added DecrementLines() method for deleting lines
35511 - Fixed UpdateView to update the cursor to end-of-line on single-line
35513 - Added PositionCaret() method
35514 - Fixed MoveCaret(LineDown) to move into the last line, too
35515 - Added InsertChar overload
35516 - Fixed InsertChar tag offset calculations
35517 - Added DeleteChar() method
35518 - Added Combine() method for folding lines
35519 - Fixed Delete() method, no longer allocates wasted Line object and
35520 now copies all properties when swapping nodes
35521 - Delete() method now updates document line counter
35523 2004-12-15 Jackson Harper <jackson@ximian.com>
35525 * XplatUIX11.cs: Get the modifier keys from the keyboard driver
35526 * X11Keyboard.cs: Expose the currently selected modifier keys
35527 through a property.
35529 2004-12-15 Peter Bartok <pbartok@novell.com>
35531 * TextControl.cs: Initial check-in. Still incomplete
35533 2004-12-15 Jackson Harper <jackson@ximian.com>
35536 * TreeView.cs: Fix build on csc (second time today ;-))
35538 2004-12-15 Jackson Harper <jackson@ximian.com>
35540 * TreeView.cs: Store the treenodes plus/minus box bounds when it
35541 is calculated and use this for click testing.
35542 * TreeNode.cs: Add functionality to store the nodes plus minus box bounds.
35544 2004-12-15 Jackson Harper <jackson@ximian.com>
35546 * TreeView.cs: Pass the nodes image index to the image list when
35547 drawing that image.
35549 2004-12-15 Jackson Harper <jackson@ximian.com>
35551 * X11Keyboard.cs: Set messages hwnd.
35552 * XplatUIX11.cs: Pass proper hwnd wot keyboard driver. Set hwnd on
35553 post_message calls.
35555 2004-12-15 Jackson Harper <jackson@ximian.com>
35557 * X11Keyboard.cs: Fix to compile with csc.
35559 2004-12-15 Jackson Harper <jackson@ximian.com>
35561 * X11Structs.cs: Add key mask values
35562 * XplatUIStruct.cs: Add keyboard event flags, and keyboard definitions
35563 * X11Keyboard.cs: New file - Extrapolates and interpolates key
35564 down/up foo into WM_CHAR foo
35565 * KeyboardLayouts.cs: Common keyboard layouts
35566 * XplatUIX11.cs: Add the keyboard driver. Add functionality to
35567 post messages into the main queue.
35569 2004-12-13 Jordi Mas i Hernandez <jordi@ximian.com>
35571 * Button.cs: implement ProcessMnemonic
35572 * ThemeWin32Classic.cs: use ResPool (caching) instead of creating
35574 * Control.cs: fixes IsMnemonic (support for &&, case insensitive, etc)
35575 * ButtonBase.cs: Show HotkeyPrefix (not the &)
35577 2004-12-12 John BouAntoun <jba-mon@optusnet.com.au>
35579 * MonthCalendar.cs: Implemented click-hold for next/previous month
35582 2004-12-11 Peter Bartok <pbartok@novell.com>
35585 - Added XKeyboardState (moved from XplatUIX11.cs)
35586 - Added XCreateGC related enums and structures
35587 - Added GXFunction for XSetFunction
35589 * XplatUIStructs.cs: Added missing WS_EX_xxx definitions
35591 * XplatUI.cs: Added CreateCaret(), DestroyCaret(), SetCaretPos() and
35592 CaretVisible() calls
35594 * ToolTip.cs: Added code to prevent stealing focus from app windows
35596 * XplatUIDriver.cs: Added abstracts for caret functions (CreateCaret,
35597 DestroyCaret, SetCaretPos and CaretVisible)
35600 - Added implementation for caret functions
35601 - Moved hover variables into a struct, to make it a bit easier
35602 on the eyes and to debug
35603 - Removed XKeyboardState (moved to XplatUIX11.cs)
35604 - Moved Keyboard properties into the properties region
35606 * Control.cs (get_Region): Control.CreateGraphics is the appropriate
35607 call to get a graphics context for our control
35609 * XplatUIOSX.cs: Added empty overrides for the new caret functions
35611 * TreeView.cs: Fixed bug. No matter what color was set it would always
35612 return SystemColors.Window
35614 * XplatUIWin32.cs: Implemented caret overrides
35616 2004-12-10 Jordi Mas i Hernandez <jordi@ximian.com>
35618 * ListBox.cs: fire events, implement missing methods and properties,
35621 2004-12-10 John BouAntoun <jba-mono@optusnet.com.au>
35623 * MonthCalendar.cs: invalidation bug fixing
35624 * ThemeWin32Classic.cs: paint fixing
35626 2004-12-09 Geoff Norton <gnorton@customerdna.com>
35628 * XplatUIOSX.cs: Refactor to pass the real hwnd into Graphics.FromHwnd, we
35629 prepare the CGContextRef there now.
35631 2004-12-09 John BouAntoun <jba-mono@optusnet.com.au>
35633 * MonthCalendar.cs:
35634 - optimisationL only invalidate areas that have changed
35635 * ThemeWin32Classic.cs:
35636 - only paint parts that intersect with clip_area
35638 2004-12-09 Peter Bartok <pbartok@novell.com>
35640 * Application.cs: Undid changes from r37004 which cause problems
35643 2004-12-09 Ravindra <rkumar@novell.com>
35645 * ToolBar.cs: Added support for displaying ContextMenu
35646 attached to a button on ToolBar.
35647 * ToolBarButton.cs: Uncomment/fixed the DropDownMenu
35650 2004-12-09 Jordi Mas i Hernandez <jordi@ximian.com>
35652 * Label.cs: autosize works in text change and removes unnecessary
35655 2004-12-09 Jordi Mas i Hernandez <jordi@ximian.com>
35657 * ThemeWin32Classic.cs, XplatUIOSX.cs, XplatUIWin32.cs:
35660 2004-12-08 Geoff Norton <gnorton@customerdna.com>
35662 * XplatUIOSX.cs: Added mouse move/click/grab support
35663 Remove some debugging WriteLines not needed anymore.
35664 Add window resizing/positioning.
35665 Fix visibility on reparenting.
35667 2004-12-08 Peter Bartok <pbartok@novell.com>
35669 * XplatUIOSX.cs: Added Idle event, now compiles on VS.Net
35671 2004-12-07 Geoff Norton <gnorton@customerdna.com>
35673 * XplatUIOSX.cs: Initial checkin
35674 * XplatUI.cs: Use the Quartz driver if the environment is set to use it
35676 2004-12-03 Ravindra <rkumar@novell.com>
35678 * ListView.cs: Added some keybindings and fixed scrolling.
35679 ScrollBars listen to ValueChanged event instead of Scroll
35680 Event. This would let us take care of all changes being
35681 done in the scrollbars' values programmatically or manually.
35682 * ListView.cs (CanMultiselect): Added a check for shift key.
35683 * ListView.cs (EnsureVisible): Fixed. Do proper scrolling.
35684 * ListViewItem.cs (Clone): Fixed. We need to make a copy
35685 of ListViewSubItemCollection as well.
35687 2004-12-06 Peter Bartok <pbartok@novell.com>
35689 * Control.cs (Parent): Added check and exception to prevent
35692 2004-12-03 Jordi Mas i Hernandez <jordi@ximian.com>
35694 * ListBox.cs: implemented clipping, selection single and multiple,
35697 2004-12-03 Ravindra <rkumar@novell.com>
35699 * ListView.cs (ListView_KeyDown):
35700 * ListView.cs (ListView_KeyUp): Fixed multiple selection handling
35701 when CTRL key is pressed.
35702 * ListViewItem.cs (Selected): Fixed setting the property.
35704 2004-12-03 Marek Safar <marek.safar@seznam.cz>
35706 * Application.cs (OnThreadException): Use ThreadExceptionDialog.
35708 * Form.cs: Add ActiveForm, FormBorderStyle, MaximizeBox,
35709 MinimizeBox, ShowInTaskbar, TopMost properties.
35711 * ThreadExceptionDialog.cs: Implemented (disabled TextBox until
35712 will be implemented).
35714 2004-12-03 Marek Safar <marek.safar@seznam.cz>
35716 * OwnerDrawPropertyBag.cs: New internal parameterless ctor.
35718 * TreeNode.cs: Implemented ICloneable, Fixed to pass my simple
35721 * TreeNodeCollection.cs: Add exception throwing for Add,AddRange.
35723 * TreeView.cs: BackColor is Colors.Window.
35725 2004-12-01 Jackson Harper <jackson@ximian.com>
35727 * TreeView.cs: When resizing the tree if the user is making it
35728 smaller we don't get expose events, so we need to handle adding
35729 the horizontal scrollbar in the size changed handler as well as
35730 the expose handler.
35732 2004-12-02 Jordi Mas i Hernandez <jordi@ximian.com>
35734 * DrawItemState.cs: fixes wrong enum values
35736 2004-12-01 Jackson Harper <jackson@ximian.com>
35738 * TreeView.cs: Resize the hbar as well as the vbar on resize.
35740 2004-12-01 Jackson Harper <jackson@ximian.com>
35742 * NodeLabelEditEventArgs.cs:
35743 * NodeLabelEditEventHandler.cs:
35744 * OpenTreeNodeEnumerator.cs:
35746 * TreeNodeCollection.cs:
35748 * TreeViewAction.cs:
35749 * TreeViewCancelEventArgs.cs:
35750 * TreeViewCancelEventHandler.cs:
35751 * TreeViewEventArgs.cs:
35752 * TreeViewEventHandler.cs: Initial implementation.
35754 2004-12-01 Ravindra <rkumar@novell.com>
35756 * ListView.cs (CalculateListView): Fixed scrolling related
35757 calculations. Also, removed some debug statements from other
35759 * ListViewItem.cs: Changed access to 'selected' instance variable
35760 from private to internal.
35761 * ThemeWin32Classic.cs (DrawListViewItem): Fixed SubItem drawing.
35763 2004-12-01 Jordi Mas i Hernandez <jordi@ximian.com>
35765 * ThemeWin32Classic.cs: remove cache of brush and pens for
35766 specific controls and use the global system, fixes scrollbutton
35767 bugs (for small sizes, disabled, etc)
35769 * ScrollBar.cs: does not show the thumb for very small controls
35770 (as MS) and allow smaller buttons that the regular size
35772 2004-12-01 Miguel de Icaza <miguel@ximian.com>
35774 * UpDownBase.cs: Add abstract methods for the interface.
35775 Add new virtual methods (need to be hooked up to TextEntry when it
35777 Add override methods for most features.
35778 Computes the size, forces the height of the text entry.
35780 * NumericUpDown.cs: Put here the current testing code.
35782 * Set eol-style property on all files that do not have mixed line
35783 endings, to minimize the future problems. There are still a few
35784 files with mixed endings, and someone should choose whether they
35785 want to move it or not.
35787 2004-11-30 Jordi Mas i Hernandez <jordi@ximian.com>
35789 * MonthCalendar.cs, ListView.cs: use Theme colours instead of
35792 2004-11-30 Ravindra <rkumar@novell.com>
35794 * ThemeWin32Classic.cs (DrawListViewItem): Fixed selected item
35795 drawing and replaced use of SystemColors by theme colors.
35796 * ListView.cs (ListView_Paint): Fixed painting done during scrolling.
35797 * ListView.cs (ListViewItemCollection.Add): Throw exception when
35798 same ListViewItem is being added more than once.
35800 2004-11-30 John BouAntoun <jba-mono@optusnet.com.au>
35802 * MonthCalendar.cs:
35803 - ControlStyles love to make the control not flicker
35805 2004-11-30 Peter Bartok <pbartok@novell.com>
35807 * CharacterCasing.cs: Added
35809 2004-11-29 Peter Bartok <pbartok@novell.com>
35811 * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
35812 TreeViewAction.cs, TreeViewEventArgs.cs: Removed new files.
35813 I am removing these files as they conflict with already completed
35814 work. While it is fantastic to get contributions to MWF, I
35815 respectfully ask that everyone please coordinate their contributions
35816 through mono-winforms-list or #mono-winforms at this time. We're
35817 explicitly avoiding stubbing and don't want controls that don't have
35818 their basic functionality implemented in svn. Please also see
35819 http://www.mono-project.com/contributing/winforms.html
35822 2004-11-29 Marek Safar <marek.safar@seznam.cz>
35824 * Application.cs (ModalRun): Don't hang after exit.
35826 * Theme.cs: New TreeViewDefaultSize property.
35828 * ThemeWin32Classic.cs: Replaced hardcoded defaultWindowBackColor
35829 with less hardcoded SystemColors constant.
35830 Implemented TreeViewDefaultSize.
35832 * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
35833 TreeViewAction.cs, TreeViewEventArgs.cs: New files.
35836 2004-11-29 John BouAntoun <jba-mono@optusnet.com.au>
35838 * MonthCalendar.cs:
35839 - Fix NextMonthDate and PrevMonthDate click moving calendar
35841 2004-11-26 John BouAntoun <jba-mono@optusnet.com.au>
35843 * MonthCalendar.cs:
35844 - Fix usage of ScrollChange Property when scrolling months
35846 2004-11-26 Jordi Mas i Hernandez <jordi@ximian.com>
35848 * Menu.cs, MainMenu.cs, MenuItem.cs, MenuAPI.cs
35849 - Fixes menu destroying
35850 - Support adding and removing items on already created menus
35852 2004-11-26 John BouAntoun <jba-mono@optusnet.com.au>
35854 * MonthCalendar.cs:
35855 - Re-worked all bolded dates handling to match win32
35856 * ThemeWin32Classic.cs:
35857 - Fixed rendering with bolded dates
35859 2004-11-25 Jordi Mas i Hernandez <jordi@ximian.com>
35861 * ListBox.cs, Theme.cs, ThemeWin32Classic.cs:
35862 - Horizontal scroolbar
35867 2004-11-25 John BouAntoun <jba-mono@optusnet.com.au>
35869 * MonthCalendar.cs:
35870 - Fix Usage of MaxSelectionCount from SelectionRange
35871 - Fixed Shift + Cursor Selection
35872 - Fixed Shift + (Pg up/Pg dn, Home/End) selection
35873 - Fixed normal cursor selection to be compat with win32
35874 - Fixed Shift + Mouse Click selection
35876 2004-11-24 Peter Bartok <pbartok@novell.com>
35878 * XplatUI.cs (DispatchMessage): Switched to return IntPtr
35879 * XplatUIDriver.cs (DispatchMessage): Switched to return IntPtr
35881 - CreatedKeyBoardMsg now updates keystate with Alt key
35882 - Added workaround for timer crash to CheckTimers, Jackson will
35883 develop a proper fix and check in later
35884 - Implemented DispatchMessage
35885 - Removed calling the native window proc from GetMessage (call
35886 now moved to DispatchMessage)
35888 * KeyEventArgs.cs (Constructor): Now combines modifierkeys into
35889 the keydata (Fixes bug #69831)
35892 - (DispatchMessage): Switched to return IntPtr
35893 - Added DllImport for SetFocus
35895 2004-11-24 Ravindra <rkumar@novell.com>
35897 * ThemeWin32Classic.cs: Fixed ListView border and checkbox
35898 background drawing.
35899 * ListViewItem.cs: Fixed various properties, calculations
35900 and Clone() method. Fixed ListViewSubItemCollection.Clear() method.
35901 * ListView.cs: Fixed calculations, BackColor, ForeColor properties
35902 and some internal properties. Fixed MouseDown handler and Paint
35905 2004-11-24 John BouAntoun <jba-mono@optusnet.com.au>
35907 * MonthCalendar.cs: Add TitleMonth ContextMenu handling
35909 2004-11-24 John BouAntoun <jba-mono@optusnet.com.au>
35911 * ContainerControl.cs: correct accidental check in of local changes
35913 2004-11-24 John BouAntoun <jba-mono@optusnet.com.au>
35915 * ThemeWin32Classic.cs:
35916 - Fixed Drawing Last month in grid (sometimes not showing)
35917 * MonthCalendar.cs:
35918 - Fixed title width calculation bug (makeing title small)
35920 2004-11-23 Peter Bartok <pbartok@novell.com>
35923 - Added generation of WM_MOUSEHOVER event
35924 - Added missing assignment of async_method atom
35925 - Fixed WM_ERASEBKGND; now only redraws the exposed area
35927 2004-11-23 John BouAntoun <jba-mono@optusnet.com.au>
35929 * ThemeWin32Classic.cs:
35930 - Fixed Drawing of today circle when showtodaycircle not set
35931 - fixed drawing of first and last month in the grid (gay dates)
35932 * MonthCalendar.cs:
35933 - Fixed Drawing of today circle
35934 - Fixed drawing of grady dates
35935 - Fixed HitTest for today link when ShowToday set to false
35936 - Fixed DefaultSize to obey ShowToday
35938 2004-11-23 John BouAntoun <jba-mono@optusnet.com.au>
35940 * ThemeWin32Classic.cs: Fixed DrawMonthCalendar and private support methods
35941 * System.Windows.Forms/Theme.cs
35942 * MonthCalendar.cs: added for MonthCalendar
35943 * SelectionRange.cs: added for MonthCalendar
35944 * Day.cs: added for MonthCalendar: added for MonthCalendar
35945 * DateRangeEventArgs.cs: added for MonthCalendar
35946 * DateRangeEventHandler.cs: added for MonthCalendar
35948 2004-11-22 Ravindra <rkumar@novell.com>
35950 * ThemeWin32Classic.cs: Fixed ListViewDrawing with 'UseItemStyleForSubItems'
35953 2004-11-22 Miguel de Icaza <miguel@ximian.com>
35955 * UpDownBase.cs (InitTimer): Use prehistoric C# 1.0 notation for
35958 * NumericUpDown.cs: Added new implementation.
35959 * UpDownBase.cs: Added new implementation.
35961 * XplatUIWin32.cs (KeyboardSpeed, KeyboardDelay): added default
35964 * XplatUIX11.cs (KeyboardSpeed, KeyboardDelay): added default
35967 * XplatUIDriver.cs ((KeyboardSpeed, KeyboardDelay): added new
35970 2004-11-21 Miguel de Icaza <miguel@ximian.com>
35972 * Timer.cs (Dispose): Should call the base dispose when
35975 2004-11-19 Jordi Mas i Hernandez <jordi@ximian.com>
35977 * ScrollBar.cs: updates thumb position when max, min or increment
35980 2004-11-21 Ravindra <rkumar@novell.com>
35982 * ListView.cs: Implemented item selection, activation and
35983 column header style. Fixed properties to do a redraw, if
35984 required. Added support for MouseHover, DoubleClick, KeyDown
35985 and KeyUp event handling and some minor fixes.
35986 * ListViewItem.cs: Fixed constructor.
35987 * ThemeWin32Classic.cs: Improved drawing for ListView.
35989 2004-11-19 Jordi Mas i Hernandez <jordi@ximian.com>
35991 * ThemeWin32Classic.cs: initial listbox drawing code
35992 * DrawMode.cs: new enumerator
35993 * ListControl.cs: stubbed class
35994 * ListBox.cs: initial implementation
35995 * Theme.cs: new methods definitions
35996 * SelectionMode.cs: new enumerator
35998 2004-11-17 Peter Bartok <pbartok@novell.com>
36000 * XplatUIWin32.cs: Added double-click events to the class style
36001 * Control.cs (WndProc):
36002 - Added handling of click-count to MouseDown/ MouseUp events.
36003 - Added handling of middle and right mouse buttons
36004 - Removed old debug code
36006 2004-11-17 Jackson Harper <jackson@ximian.com>
36008 * XplatUIX11.cs: Use the new Mono.Unix namespace.
36010 2004-11-17 Ravindra <rkumar@novell.com>
36012 * ListView.cs: Added event handling for MouseMove/Up/Down.
36013 * ColumnHeader.cs: Added a read-only internal property 'Pressed'.
36014 * ThemeWin32Classic.cs: We need to clear the graphics context and
36015 draw column header in a proper state.
36018 2004-11-17 Jordi Mas i Hernandez <jordi@ximian.com>
36020 * Menu.cs: fixes signature
36022 2004-11-16 Peter Bartok <pbartok@novell.com>
36024 * XplatUIX11.cs (GetMessage): Implemented generation of
36025 double click mouse messages
36027 2004-11-12 Jordi Mas i Hernandez <jordi@ximian.com>
36029 * Form.cs, MainMenu.cs, MenuAPI.cs: tracker should be for tracking session
36032 2004-11-11 Peter Bartok <pbartok@novell.com>
36034 * HandleData.cs: Added Visible property
36035 * XplatUIX11.cs (IsVisible): Now uses Visible property from
36037 * XplatUIX11.cs: Removed old debug leftovers
36038 * XplatUIX11.cs (DefWndProc): Added WM_ERASEBKGND handler
36039 * Control.cs (WndProc): Removed old debug leftovers,
36040 streamlined handling of WM_WINDOWPOSCHANGED, removed un-
36041 needed WM_SIZE handling
36043 2004-11-11 Jackson Harper <jackson@ximian.com>
36045 * OwnerDrawPropertyBag.cs:
36046 * TreeViewImageIndexConverter.cs: Initial implementation
36048 2004-11-10 Jackson Harper <jackson@ximian.com>
36050 * ThemeWin32Classic.cs:
36051 * TabControl.cs: instead of moving tabs by the slider pos just
36052 start drawing at the tab that is offset by the slider. This way
36053 scrolling always moves by exactly one tab.
36055 2004-11-10 Jackson Harper <jackson@ximian.com>
36057 * TabControl.cs: You can only scroll left when the slider has
36058 already ben moved right.
36060 2004-11-10 Jackson Harper <jackson@ximian.com>
36062 * ThemeWin32Classic.cs: Do not draw the selected tab if its not in
36065 2004-11-10 Jackson Harper <jackson@ximian.com>
36067 * ThemeWin32Classic.cs: Don't bother drawing tabs outside of the
36070 2004-11-09 Jackson Harper <jackson@ximian.com>
36072 * TabControl.cs (CalcXPos): New helper method so we can determine
36073 the proper place to start drawing vertical tabs.
36074 * ThemeWin32Classic.cs (DrawTab): Draw right aligned tabs.
36076 2004-11-09 Jackson Harper <jackson@ximian.com>
36078 * TabControl.cs: Calculate sizing and rects for left aligned tabs.
36079 * ThemeWin32Classic.cs (GetTabControl*ScrollRect): Only handle Top
36080 and Bottom, left and right are illegal values for this and
36081 multiline is enabled when the alignment is set to left or right.
36082 (DrawTab): Each alignment block should draw the text itself now
36083 because Left requires special love. Also add rendering for Left
36086 2004-11-09 Jordi Mas i Hernandez <jordi@ximian.com>
36088 * Form.cs, MainMenu.cs, MenuAPI.cs: fixes menu navigation, fixes popups,
36089 does not destroy the windows, removes debugging messages
36091 2004-11-09 jba <jba-mono@optusnet.com.au>
36093 * ThemeWin32Classic.cs
36094 (DrawButtonBase): Fix verticle text rect clipping in windows
36095 (DrawCheckBox): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
36096 rendering and incorrect text rect clipping
36097 (DrawRadioButton): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
36098 rendering and incorrect text rect clipping
36100 2004-11-08 Jackson Harper <jackson@ximian.com>
36102 * ThemeWin32Classic.cs (DrawTabControl): Render tabs from top to
36103 bottom when they are bottom aligned so the bottoms of the tabs get
36105 * TabControl.cs (DropRow): Move rows up instead of down when the
36106 tab control is bottom aligned.
36108 2004-11-08 13:59 pbartok
36111 - Added handling for various window styles
36112 - Added handling for popup windows
36113 - Added SetTopmost handling
36115 2004-11-08 13:55 pbartok
36118 - Added argument to SetTopmost method
36119 - Fixed broken ClientToScreen function
36121 2004-11-08 13:53 pbartok
36123 * XplatUIStructs.cs:
36124 - Added missing WS_EX styles
36126 2004-11-08 13:53 pbartok
36128 * XplatUI.cs, XplatUIDriver.cs:
36129 - Added argument to SetTopmost
36131 2004-11-08 13:52 pbartok
36134 - Added XSetWindowAttributes structure
36135 - Improved XWindowAttributes structure
36136 - Added SetWindowValuemask enum
36137 - Added window creation arguments enum
36138 - Added gravity enum
36139 - Added Motif hints structure
36140 - Added various Motif flags and enums
36141 - Added PropertyMode enum for property functions
36143 2004-11-08 13:50 pbartok
36146 - Fixed arguments for updated SetTopmost method
36148 2004-11-08 13:49 pbartok
36151 - Fixed arguments for updated SetTopmost function
36152 - Fixed usage of PointToClient
36154 2004-11-08 13:44 pbartok
36157 - Added Clipping of children and siblings
36159 2004-11-08 13:41 pbartok
36162 - Removed SetMenuBarWindow call. We do this in Form.cs
36164 2004-11-08 13:40 jackson
36166 * TabControl.cs, Theme.cs, ThemeWin32Classic.cs: Render the little
36167 scrolling jimmi in the correct location with bottom aligned tabs
36169 2004-11-08 13:36 pbartok
36171 * ContainerControl.cs:
36172 - Implemented BindingContext
36173 - Implemented ParentForm
36175 2004-11-08 12:46 jackson
36177 * TabControl.cs: Put bottom rendered tabs in the right location
36179 2004-11-08 07:15 jordi
36181 * ScrollBar.cs, ThemeWin32Classic.cs: fixes vertical scrollbar and
36184 2004-11-05 17:30 jackson
36186 * TabControl.cs: When selected tabs are expanded make sure they
36187 don't go beyond the edges of the tab control
36189 2004-11-05 14:57 jackson
36191 * TabControl.cs: Reset show_slider so if the control is resized to
36192 a size where it is no longer needed it's not displayed anymore
36194 2004-11-05 13:16 jackson
36196 * TabControl.cs: Make tab pages non visible when added to the
36199 2004-11-05 12:42 jackson
36201 * TabControl.cs: Implement SizeMode.FillToRight
36203 2004-11-05 12:16 jackson
36205 * Control.cs: Do not call CreateHandle if the handle is already
36208 2004-11-05 11:46 jackson
36210 * TabControl.cs: Remove superflous call to CalcTabRows
36212 2004-11-05 09:07 jackson
36214 * XplatUIX11.cs: Update for Mono.Posix changes
36216 2004-11-05 07:00 ravindra
36218 * ListView.cs, ListViewItem.cs: Implemented some methods and fixed
36221 2004-11-04 22:47 jba
36223 * ThemeWin32Classic.cs:
36224 - Fix Button rendering for FlatStyle = Flat or Popup
36225 - Fix RadioButton and CheckBox rendering when Appearance = Button
36226 (normal and flatstyle).
36227 - Correct outer rectangle color when drawing focus rectangle
36228 - Adjust button bounds to be 1 px smaller when focused
36229 - Make button not draw sunken 3d border when pushed (windows compat)
36230 - Fix CPDrawBorder3D to not make bottom right hand corner rounded
36231 - Offset the text in RadioButton and Checkbox when being rendered as
36233 - Hover and Click behaviour for Colored FlatStyle.Flat and Popup
36235 - Fixed disabled rendering for colored flatstyle radiobuttons (both)
36236 - Fixed disabled text rendering for normally rendered radiobuttons
36238 2004-11-04 10:26 jackson
36240 * TabControl.cs: Recalculate tab rows when resizing
36242 2004-11-04 07:47 jordi
36244 * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs:
36245 collection completion, drawing issues, missing features
36247 2004-11-04 05:03 ravindra
36250 - We need to recalculate the Thumb area when
36251 LargeChange/maximum/minimum values are changed.
36252 - We set the 'pos' in UpdatePos() method to minimum, if it's less
36253 than minimum. This is required to handle the case if large_change is
36254 more than max, and use LargeChange property instead of large_change
36256 - We return max+1 when large_change is more than max, like MS does.
36258 2004-11-04 04:29 ravindra
36260 * ColumnHeader.cs, ListView.cs, ListViewItem.cs:
36261 - Changed default value signatures (prefixed all with ListView).
36262 - Fixed/implemented layout LargeIcon, SmallIcon and List views for
36264 - Fixed calculations for ListViewItem and implemented Clone()
36267 2004-11-04 04:26 ravindra
36269 * Theme.cs, ThemeWin32Classic.cs:
36270 - Changed default ListView values signatures (prefixed all with
36272 - Fixed default size values for VScrollBar and HScrollBar.
36273 - Fixed DrawListViewItem method.
36275 2004-11-04 04:05 ravindra
36277 * ColumnHeaderStyle.cs: Typo. It should be Nonclickable.
36279 2004-11-04 04:04 ravindra
36281 * ImageList.cs: Implemented the missing overload for Draw method.
36283 2004-11-03 19:29 jackson
36285 * TabControl.cs: Handle dropping rows on selection properly
36287 2004-11-03 11:59 jackson
36289 * TabControl.cs: remove debug code
36291 2004-11-03 11:52 jackson
36293 * TabControl.cs, ThemeWin32Classic.cs: Initial implementation of
36294 the scrolly widgerywoo
36296 2004-11-02 13:52 jackson
36298 * TabControl.cs: Resize the tab pages and tabs when the tab control
36301 2004-11-02 13:40 jackson
36303 * TabControl.cs, ThemeWin32Classic.cs: Move the row with the
36304 selected tab to the bottom
36306 2004-11-02 13:39 jackson
36308 * TabPage.cs: Store the tab pages row
36310 2004-11-02 12:33 jordi
36312 * MenuItem.cs: fixes handle creation
36314 2004-11-02 11:42 jackson
36316 * TabControl.cs: signature fix
36318 2004-11-02 08:56 jackson
36320 * TabControl.cs: Calculate whether the tab is on an edge properly.
36321 Remove top secret debugging code
36323 2004-11-01 19:57 jackson
36325 * TabControl.cs: Add click handling, and proper sizing
36327 2004-11-01 19:47 jackson
36329 * Theme.cs, ThemeWin32Classic.cs: New rendering and sizing code for
36332 2004-11-01 19:39 jackson
36334 * TabPage.cs: add internal property to store the bounds of a tab
36337 2004-10-30 04:23 ravindra
36339 * Theme.cs, ThemeWin32Classic.cs: Drawing ListView and some default
36342 2004-10-30 04:21 ravindra
36344 * ListView.cs, ListViewItem.cs: Added support for scrolling and
36345 fixed calculations.
36347 2004-10-30 03:06 pbartok
36350 - Removed extension of DllImported libs
36352 2004-10-29 09:55 jordi
36354 * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: Menu key
36355 navigation, itemcollection completion, menu fixes
36357 2004-10-27 22:58 pbartok
36360 - Now throws a nice error message when no X display could be opened
36362 2004-10-26 13:51 jordi
36364 * ListView.cs: removes warning
36366 2004-10-26 03:55 ravindra
36368 * ColumnHeader.cs, ListView.cs, ListViewItem.cs,
36369 ThemeWin32Classic.cs: Some formatting for my last checkins.
36371 2004-10-26 03:36 ravindra
36373 * ThemeWin32Classic.cs: Implemented DetailView drawing for ListView
36374 control and default values.
36376 2004-10-26 03:35 ravindra
36378 * Theme.cs: Added some default values for ListView control.
36380 2004-10-26 03:33 ravindra
36382 * ToolBar.cs: ToolBar should use the user specified button size, if
36383 there is any. Added a size_specified flag for the same.
36385 2004-10-26 03:33 ravindra
36387 * ColumnHeader.cs: Added some internal members and calculations for
36390 2004-10-26 03:32 ravindra
36392 * ListViewItem.cs: Calculations for ListViewItem.
36394 2004-10-26 03:31 ravindra
36396 * ListView.cs: Added some internal members and calculations for
36399 2004-10-22 13:31 jordi
36401 * MenuAPI.cs: speedup menus drawing
36403 2004-10-22 13:16 jackson
36405 * XplatUIX11.cs: Make sure to update exposed regions when adding an
36408 2004-10-22 11:49 jackson
36412 2004-10-22 11:41 jackson
36414 * Control.cs: Check to see if the window should have its background
36415 repainted by X when drawing.
36417 2004-10-22 11:31 jackson
36419 * XplatUIX11.cs: When invalidating areas only use XClearArea if
36420 clear is true, this way we do not get flicker from X repainting the
36423 2004-10-22 11:28 jackson
36425 * XEventQueue.cs: Queue properly
36427 2004-10-21 09:38 jackson
36429 * XEventQueue.cs: Fix access modifier
36431 2004-10-21 09:36 jackson
36433 * XEventQueue.cs: Don't loose messages
36435 2004-10-21 09:22 jackson
36437 * XEventQueue.cs: Don't loose messages
36439 2004-10-20 04:15 jordi
36441 * BootMode.cs: enum need it by SystemInfo
36443 2004-10-19 21:58 pbartok
36446 - Small sanity check
36448 2004-10-19 21:56 pbartok
36451 - Added private FormParentWindow class which acts as the container
36452 for our form and as the non-client area where menus are drawn
36453 - Added/Moved required tie-ins to Jordi's menus
36454 - Fixed/Implemented the FormStartPosition functionality
36456 2004-10-19 21:52 pbartok
36459 - Removed unneeded locals
36460 - Added code to all size and location properties to understand and
36461 deal with the parent container of Form
36463 2004-10-19 21:33 pbartok
36466 - Fixed to deal with new Form subclasses for menus
36468 2004-10-19 17:48 jackson
36470 * XEventQueue.cs: commit correct version of file
36472 2004-10-19 16:50 jackson
36474 * XEventQueue.cs, XplatUIX11.cs: New optimized event queue
36476 2004-10-19 16:15 jordi
36478 * MenuAPI.cs: MenuBarCalcSize returns the height
36480 2004-10-19 08:31 pbartok
36483 - Added missing call to PreProcessMessage before calling OnXXXKey
36486 2004-10-19 00:04 ravindra
36488 * ToolTip.cs: Fixed constructor.
36490 2004-10-18 09:31 jordi
36492 * MenuAPI.cs: menuitems in menubars do not have shortcuts
36494 2004-10-18 09:26 jordi
36496 * MenuItem.cs: fixes MenuItem class signature
36498 2004-10-18 08:56 jordi
36500 * MenuAPI.cs: prevents windows from showing in the taskbar
36502 2004-10-18 00:28 ravindra
36504 * ToolTip.cs: Suppressed a warning message.
36506 2004-10-18 00:27 ravindra
36508 * Control.cs: Default value of visible property must be true.
36510 2004-10-17 23:19 pbartok
36513 - Complete implementation
36515 2004-10-17 23:19 pbartok
36518 - Added EnableWindow method
36519 - Added SetModal stub
36520 - Added generation of WM_ACTIVATE message (still needs testing)
36521 - Added SetTopMost stub
36522 - Changes to deal with VirtualKeys being moved to XplatUIStructs.cs
36524 2004-10-17 23:17 pbartok
36527 - Removed VirtualKeys to XplatUIStructs
36528 - Implemented SetTopMost method
36529 - Implemented EnableWindow method
36530 - Bugfix in ScreenToClient()
36531 - Bugfixes in ClientToScreen()
36533 2004-10-17 22:51 pbartok
36535 * XplatUIStructs.cs:
36536 - Added WS_EX styles to WindowStyles enumeration
36538 2004-10-17 22:50 pbartok
36540 * XplatUI.cs, XplatUIDriver.cs:
36541 - Added method for enabling/disabling windows
36542 - Added method for setting window modality
36543 - Added method for setting topmost window
36545 2004-10-17 22:49 pbartok
36547 * ThemeWin32Classic.cs:
36548 - Added ToolTip drawing code
36550 2004-10-17 22:49 pbartok
36553 - Added ToolTip abstracts
36555 2004-10-17 22:47 pbartok
36558 - Fixed Form.ControlCollection to handle owner relations
36559 - Added Owner/OwnedForms handling
36560 - Implemented Z-Ordering for owned forms
36561 - Removed unneeded private overload of ShowDialog
36562 - Fixed ShowDialog, added the X11 incarnation of modal handling (or
36564 - Fixed Close(), had wrong default
36565 - Added firing of OnLoad event
36566 - Added some commented out debug code for Ownership handling
36568 2004-10-17 22:16 pbartok
36571 - Fixed/implemented flat list of controls
36573 2004-10-17 22:14 pbartok
36576 - Added code to simulate modal dialogs on Win32
36578 2004-10-17 16:11 jordi
36580 * ScrollBar.cs: disabled scrollbar should not honor any keyboard or
36583 2004-10-17 13:39 jordi
36585 * MenuAPI.cs: menu drawing fixes
36587 2004-10-15 09:10 ravindra
36589 * StructFormat.cs: General Enum.
36591 2004-10-15 09:09 ravindra
36593 * SizeGripStyle.cs: Enum for Form.
36595 2004-10-15 09:08 ravindra
36597 * Theme.cs, ThemeWin32Classic.cs: Added ColumnHeaderHeight property
36598 in Theme for ListView.
36600 2004-10-15 09:06 ravindra
36602 * ColumnHeader.cs: Flushing some formatting changes.
36604 2004-10-15 09:05 ravindra
36606 * ListViewItem.cs: Implemented GetBounds method and fixed coding
36609 2004-10-15 09:03 ravindra
36611 * ListView.cs: Implemented Paint method and fixed coding style.
36613 2004-10-15 07:34 jordi
36615 * MenuAPI.cs: fix for X11
36617 2004-10-15 07:32 ravindra
36619 * ButtonBase.cs, CheckBox.cs, RadioButton.cs:
36620 - Renamed Paint() method to Draw() for clarity. Also, moved
36621 DrawImage() to OnPaint().
36623 2004-10-15 07:25 ravindra
36625 * CheckBox.cs, RadioButton.cs:
36626 - Removed Redraw (), we get it from ButtonBase.
36627 - Implemented Paint (), to do class specific painting.
36629 2004-10-15 07:16 ravindra
36632 - Redraw () is not virtual now.
36633 - Added an internal virtual method Paint (), so that
36634 derived classes can do their painting on their own.
36635 - Modified OnPaint () to call Paint ().
36637 2004-10-15 06:43 jordi
36639 * ContextMenu.cs, DrawItemEventHandler.cs, Form.cs, MainMenu.cs,
36640 MenuAPI.cs, MenuItem.cs: menu work, mainmenu, subitems, etc
36642 2004-10-15 00:30 ravindra
36645 - MessageBox on windows does not have min/max buttons.
36646 This change in CreateParams fixes this on Windows. We
36647 still need to implement this windowstyle behavior in
36650 2004-10-14 05:14 ravindra
36653 - Changed Redraw () to do a Refresh () always.
36654 - Fixed the MouseMove event handling when mouse is pressed,
36655 ie drag event handling.
36656 - Replaced the usage of ToolBarButton.Pressed property to
36657 ToolBarButton.pressed internal variable.
36659 2004-10-14 05:10 ravindra
36661 * ToolBarButton.cs:
36662 - Added an internal member 'inside' to handle mouse move
36663 with mouse pressed ie mouse drag event.
36664 - Changed 'Pressed' property to return true only when
36665 'inside' and 'pressed' are both true.
36666 - Some coding style love.
36668 2004-10-14 00:17 ravindra
36670 * Form.cs: Fixed class signature. ShowDialog (Control) is not a
36673 2004-10-14 00:15 ravindra
36675 * ButtonBase.cs: Redraw () related improvements.
36677 2004-10-14 00:14 ravindra
36679 * MessageBox.cs: Moved InitFormSize () out of Paint method and
36680 removed unnecessary calls to Button.Show () method.
36682 2004-10-13 17:50 pbartok
36686 - Removed destroying of window until we solve the problem of X
36687 destroying the window before us on shutdown
36689 2004-10-13 16:32 pbartok
36692 - Now Redraws on MouseUp for FlatStyle Flat and Popup
36694 2004-10-13 14:18 pbartok
36697 - Added code to destroy the X window
36699 2004-10-13 14:18 pbartok
36702 - Added code to destroy a window
36704 2004-10-13 14:12 pbartok
36707 - Added the Redraw on Resize that got dropped in the last rev
36709 2004-10-13 09:06 pbartok
36711 * ThemeWin32Classic.cs:
36712 - Path from John BouAntoun:
36713 * Fix check rendering (centre correctly for normal style, offset
36714 correctly for FlatStyle).
36715 * Fix border color usage (use backcolor) for FlatStyle.Popup
36716 * Use checkbox.Capture instead of checkbox.is_pressed when
36717 rendering flatstyle states.
36719 2004-10-12 21:48 pbartok
36721 * ThemeWin32Classic.cs:
36722 - Removed all occurences of SystemColors and replaced them with the
36723 matching theme color
36725 2004-10-12 21:41 pbartok
36727 * ThemeWin32Classic.cs:
36728 - From John BouAntoun: Added an overload to CPDrawBorder3D to allow
36729 him using the function for flatstyle drawing
36730 - Changed functions to use the new version of CPDrawBorder3D
36732 2004-10-12 21:15 pbartok
36735 - Fixed Dark(), DarkDark(), Light() and LightLight() methods to
36736 match MS documentation. They need to return defined colors if the
36737 passed color matches the configured control color. Thanks to John
36738 BouAntoun for pointing this out.
36740 2004-10-12 20:57 pbartok
36743 - Fix from John BouAntoun: Raise ForeColorChanged event when text
36746 2004-10-12 20:46 pbartok
36749 - Fix from John BouAntoun: Now properly sets the Appearance property
36751 2004-10-12 20:45 pbartok
36753 * ThemeWin32Classic.cs:
36754 - Fixes from John BouAntoun: now handles forecolors and backcolors
36755 for flatstyle rendered controls much better; It also fixes normal
36756 checkbox rendering when pushed or disabled.
36758 2004-10-08 02:50 jordi
36760 * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: more menu
36763 2004-10-07 08:56 jordi
36765 * ThemeWin32Classic.cs: Removes deletion of cached brushes
36767 2004-10-06 03:59 jordi
36769 * Control.cs, StatusBar.cs, ThemeWin32Classic.cs, ToolBar.cs,
36770 XplatUIWin32.cs: removes warnings from compilation
36772 2004-10-05 12:23 jackson
36774 * RadioButton.cs: Fix ctor
36776 2004-10-05 11:10 pbartok
36779 - Partial implementation by Benjamin Dasnois
36781 2004-10-05 10:15 jackson
36783 * ThemeWin32Classic.cs: Improve rendering of the radio button patch
36786 2004-10-05 03:07 ravindra
36789 - Removed a private method, Draw ().
36790 - Fixed the ButtonDropDown event handling.
36791 - Fixed MouseMove event handling.
36793 2004-10-05 03:04 ravindra
36795 * ThemeWin32Classic.cs:
36796 - Added DrawListView method and ListViewDefaultSize property.
36797 - Changed ControlPaint method calls to CPDrawXXX wherever possible.
36798 - Changed DOS style CRLF to Unix format (dos2unix).
36800 2004-10-05 03:03 ravindra
36803 - Added DrawListView method and ListViewDefaultSize property.
36805 2004-10-05 02:42 ravindra
36807 * ToolBarButton.cs: Added an internal member dd_pressed to handle
36808 clicks on DropDown arrow.
36810 2004-10-04 22:56 jackson
36812 * ButtonBase.cs, Label.cs, MenuAPI.cs, ProgressBar.cs,
36813 ScrollBar.cs, StatusBar.cs, ToolBar.cs, TrackBar.cs: Let the base
36814 Control handle the buffers, derived classes should not have to
36815 CreateBuffers themselves.
36817 2004-10-04 21:20 jackson
36819 * StatusBar.cs: The control handles resizing the buffers now.
36821 2004-10-04 21:18 jackson
36823 * Control.cs: When resizing the buffers should be invalidated. This
36824 should be handled in Control not in derived classes.
36826 2004-10-04 14:45 jackson
36830 2004-10-04 02:14 pbartok
36832 * LeftRightAlignment.cs:
36835 2004-10-04 01:09 jordi
36837 * ThemeWin32Classic.cs: fixes right button position causing right
36838 button not showing on horizontal scrollbars
36840 2004-10-02 13:12 pbartok
36843 - Simplified the Invalidate method by using an X call instead of
36844 generating the expose ourselves
36845 - Added an expose when the window background is changed
36846 - Implemented ClientToScreen method
36848 2004-10-02 13:08 pbartok
36851 - Added Win32EnableWindow method (test for implementing modal
36853 - Added ClientToScreen method and imports
36855 2004-10-02 13:07 pbartok
36857 * XplatUI.cs, XplatUIDriver.cs:
36858 - Added ClientToScreen coordinate translation method
36860 2004-10-02 13:06 pbartok
36862 * KeyPressEventArgs.cs:
36863 - Fixed access level for constructor
36865 2004-10-02 13:06 pbartok
36868 - Changed access level for the window_collection hash table
36870 2004-10-02 13:05 pbartok
36873 - Added KeyPreview property
36874 - Added Menu property (still incomplete, pending Jordi's menu work)
36875 - Implemented ProcessCmdKey
36876 - Implemented ProcessDialogKey
36877 - Implemented ProcessKeyPreview
36879 2004-10-02 13:02 pbartok
36882 - Added private method to get the Control object from the window
36884 - Implemented ContextMenu property
36885 - Implemented PointToScreen
36886 - Implemented PreProcessMessage
36887 - Implemented IsInputChar
36888 - Implemented IsInputKey
36889 - Implemented ProcessCmdKey
36890 - Completed ProcessKeyEventArgs
36891 - Fixed message loop to call the proper chain of functions on key
36893 - Implemented ProcessDialogChar
36894 - Implemented ProcessDialogKey
36895 - Implemented ProcessKeyMessage
36896 - Implemented ProcessKeyPreview
36897 - Added RaiseDragEvent stub (MS internal method)
36898 - Added RaiseKeyEvent stub (MS internal method)
36899 - Added RaiseMouseEvent stub (MS Internal method)
36900 - Added RaisePaintEvent stub (MS Internal method)
36901 - Added ResetMouseEventArgs stub (MS Internal method)
36902 - Implemented RtlTranslateAlignment
36903 - Implemented RtlTranslateContent
36904 - Implemented RtlTranslateHorizontal
36905 - Implemented RtlTranslateLeftRight
36906 - Added generation of KeyPress event
36908 2004-10-02 05:57 ravindra
36910 * ListViewItem.cs: Added attributes.
36912 2004-10-02 05:32 ravindra
36914 * ListView.cs: Added attributes.
36916 2004-10-01 11:53 jackson
36918 * Form.cs: Implement the Close method so work on MessageBox can
36921 2004-09-30 14:06 pbartok
36926 2004-09-30 11:34 jackson
36928 * RadioButton.cs: Fix typo. Patch by John BouAntoun.
36930 2004-09-30 07:26 ravindra
36932 * ListViewItemConverter.cs: Converter for ListViewItem.
36934 2004-09-30 07:26 ravindra
36936 * SortOrder.cs: Enum for ListView control.
36938 2004-09-30 07:25 ravindra
36940 * ColumnHeader.cs: Supporting class for ListView control.
36942 2004-09-30 07:24 ravindra
36944 * ListView.cs, ListViewItem.cs: Initial implementation.
36946 2004-09-30 07:20 ravindra
36948 * ItemActivation.cs: Enum for ListView Control.
36950 2004-09-29 20:29 pbartok
36953 - Added lookup of pixel value for background color; tries to get a
36954 color 'close' to the requested color, it avoids having to create a
36955 colormap. Depending on the display this could mean the used color
36956 is slightly off the desired color. Might have to change it to a more
36957 resource intensive colormap approach, but it will work as a
36958 workaround to avoid red screens.
36960 2004-09-29 14:27 jackson
36962 * XplatUIX11.cs: Set the X DisplayHandle in System.Drawing
36964 2004-09-28 12:44 pbartok
36966 * ButtonBase.cs, CheckBox.cs, ControlPaint.cs, GroupBox.cs,
36967 HScrollBar.cs, Label.cs, LinkLabel.cs, Panel.cs, PictureBox.cs,
36968 ProgressBar.cs, RadioButton.cs, ScrollBar.cs, StatusBar.cs,
36969 Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs, ToolBar.cs,
36970 TrackBar.cs, VScrollBar.cs:
36971 - Streamlined Theme interfaces:
36972 * Each DrawXXX method for a control now is passed the object for
36973 the control to be drawn in order to allow accessing any state the
36974 theme might require
36976 * ControlPaint methods for the theme now have a CP prefix to avoid
36977 name clashes with the Draw methods for controls
36979 * Every control now retrieves it's DefaultSize from the current
36982 2004-09-28 12:17 jackson
36984 * Button.cs: Do not redraw OnClick MouseUp/Down will handle the
36987 2004-09-24 14:57 jackson
36989 * XplatUIX11.cs: Don't lock/enqueue/dequeue for unhandled messages.
36990 Gives us a nice little performance boost.
36992 2004-09-24 12:02 jackson
36994 * TabAlignment.cs, TabAppearance.cs, TabControl.cs, TabDrawMode.cs,
36995 TabPage.cs, TabSizeMode.cs: Partial implementation of the Tab
36996 Control and supporting classes. Initial checkin
36998 2004-09-23 13:08 jackson
37000 * Form.cs: Temp build fixage
37002 2004-09-23 01:39 ravindra
37004 * ItemChangedEventArgs.cs, ItemChangedEventHandler.cs,
37005 ItemCheckEventArgs.cs, ItemCheckEventHandler.cs,
37006 ItemDragEventArgs.cs, ItemDragEventHandler.cs,
37007 LabelEditEventArgs.cs, LabelEditEventHandler.cs: EventArgs and
37008 EventHandlers needed by ListView Control.
37010 2004-09-22 14:12 pbartok
37012 * ScrollableControl.cs:
37013 - Implemented DockPadding property
37014 - Implemented AutoScroll property
37015 - Implemented AutoScrollMargin property
37016 - Implemented AutoScrollMinSize property
37017 - Implemented AutoScrollPosition property
37018 - Implemented DisplayRectangle property (still incomplete)
37019 - Implemented CreateParams property
37020 - Implemented HScroll property
37021 - Implemented VScroll property
37022 - Implemented OnVisibleChanged property
37024 2004-09-22 14:09 pbartok
37027 - Added Form.ControllCollection class
37028 - Added handling for Form owners: Owner, OwnedForms, AddOwnedForm,
37029 RemoveOwnedForm (still incomplete, missing on-top and common
37030 minimize/maximize behaviour)
37031 - Added StartPosition property (still incomplete, does not use when
37033 - Added ShowDialog() methods (still incomplete, missing forcing the
37036 2004-09-22 14:05 pbartok
37039 - Added message loop for modal dialogs
37041 2004-09-22 14:02 pbartok
37044 - Fixed wrong types for events
37046 2004-09-22 14:00 pbartok
37048 * Shortcut.cs, FormWindowState.cs:
37049 - Fixed wrong values
37051 2004-09-22 12:01 jackson
37053 * Control.cs: Text is never null
37055 2004-09-20 22:14 pbartok
37058 - Fixed accessibility level for Idle handler
37060 2004-09-20 18:54 jackson
37062 * Application.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
37063 XplatUIX11.cs: New message loop that uses poll so we don't get a
37066 2004-09-17 10:43 pbartok
37069 - Fixed behaviour of arrow buttons. Now properly behaves like
37070 Buttons (and like Microsoft's scrollbar arrow buttons)
37072 2004-09-17 10:14 pbartok
37075 - Added missing release of keyboard/mouse capture
37077 2004-09-17 06:18 jordi
37079 * ContextMenu.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs,
37080 Theme.cs: Very early menu support
37082 2004-09-16 17:45 pbartok
37085 - Fixed sending a window to the front
37086 - Added overload for SetWindowPos to avoid casting
37088 2004-09-16 17:44 pbartok
37091 - Added SendToBack and BringToFront methods
37093 2004-09-16 07:00 ravindra
37095 * Copyright: Added Novell URL.
37097 2004-09-16 07:00 ravindra
37099 * ToolBar.cs: Invalidate should be done before redrawing.
37101 2004-09-15 21:19 ravindra
37103 * ColumnHeaderStyle.cs: Enum for ListView Control.
37105 2004-09-15 21:18 ravindra
37107 * ColumnClickEventArgs.cs, ColumnClickEventHandler.cs: Event for
37110 2004-09-13 18:26 jackson
37112 * Timer.cs, XplatUIX11.cs: Remove test code so timers are updated
37115 2004-09-13 18:13 jackson
37117 * Timer.cs, X11Structs.cs, XplatUIX11.cs: Timers are now handled in
37118 a second thread and post messages into the main threads message
37119 queue. This makes timing much more consistent. Both win2K and XP
37120 have a minimum timer value of 15 milliseconds, so we now do this
37123 2004-09-13 15:18 pbartok
37125 * X11Structs.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
37127 - Added Z-Ordering methods
37129 2004-09-13 10:56 pbartok
37132 - Fixed #region names
37133 - Moved properties and methods into their proper #regions
37135 2004-09-13 10:51 pbartok
37138 - Added Accept and CancelButton properties
37139 - Added ProcessDialogKey() method
37141 2004-09-13 08:18 pbartok
37143 * IWindowTarget.cs:
37146 2004-09-10 21:50 pbartok
37149 - Added DoDragDrop() [incomplete]
37150 - Properly implemented 'Visible' handling
37151 - Added SetVisibleCore()
37152 - Implemented FindChildAtPoint()
37153 - Implemented GetContainerControl()
37154 - Implemented Hide()
37156 2004-09-10 19:28 pbartok
37159 - Moved methods into their appropriate #regions
37160 - Reordered methods within regions alphabetically
37162 2004-09-10 18:57 pbartok
37164 * XplatUIX11.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
37165 - Added method to retrieve text from window
37167 2004-09-10 18:56 pbartok
37170 - Moved some internal functions into the internal region
37171 - Implemented FontHeight
37172 - Implemented RenderRightToLeft
37173 - Implemented ResizeRedraw
37174 - Implemented ShowFocusCues
37175 - Implemented ShowKeyboardCues
37176 - Implemented FromChildHandle
37177 - Implemented FromHandle
37178 - Implemented IsMnemonic
37179 - Implemented ReflectMessage
37180 - All public and protected Static Methods are now complete
37182 2004-09-10 16:54 pbartok
37185 - Implemented remaining missing public instance properties
37186 - Alphabetized some out of order properties
37188 2004-09-10 05:51 ravindra
37190 * PictureBox.cs: Added a check for null image.
37192 2004-09-10 00:59 jordi
37194 * GroupBox.cs: remove cvs tag
37196 2004-09-09 05:25 ravindra
37198 * ToolBar.cs: Make redraw accessible from ToolBarButton.
37200 2004-09-09 05:23 ravindra
37202 * ToolBarButton.cs: Changes in ToolBarButton need to make it's
37205 2004-09-09 02:28 pbartok
37207 * ThemeWin32Classic.cs:
37208 - Improve disabled string look
37210 2004-09-09 01:15 jordi
37212 * MeasureItemEventArgs.cs, MeasureItemEventHandler.cs: measureitem
37215 2004-09-08 23:56 ravindra
37217 * ItemBoundsPortion.cs: It's enum, not a class!
37219 2004-09-08 23:47 ravindra
37221 * FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs:
37224 2004-09-08 21:13 ravindra
37226 * ItemBoundsPortion.cs, ListViewAlignment.cs, View.cs: Enums for
37229 2004-09-08 21:03 ravindra
37231 * ThemeWin32Classic.cs: PictureBox would not draw a null image to
37234 2004-09-08 21:01 ravindra
37236 * ScrollableControl.cs: Removed unreachable code.
37238 2004-09-08 06:45 jordi
37240 * MenuMerge.cs, Shortcut.cs: enumerations need it by menus
37242 2004-09-08 01:00 jackson
37244 * XplatUIX11.cs: Only run the timers when updating the message
37245 queue. This effectively gives X messages a higher priority then
37246 timer messages. Timers still need love though
37248 2004-09-07 14:01 jackson
37250 * XplatUIX11.cs: Do not call XDestroyWindow, X has already done
37251 this for us and the handle is no longer valid.
37253 2004-09-07 13:59 jackson
37255 * HandleData.cs, XplatUIX11.cs: First steps towards a new X event
37256 loop that manages to not crash. TODO: Add poll and cleanup timers
37258 2004-09-07 11:12 jordi
37260 * GroupBox.cs, Theme.cs, ThemeWin32Classic.cs: GroupBox control
37262 2004-09-07 03:40 jordi
37264 * Label.cs, LinkLabel.cs, Theme.cs, ThemeWin32Classic.cs: LinkLabel
37265 fixes, methods, multiple links
37267 2004-09-06 06:55 jordi
37269 * Control.cs: Caches ClientRectangle rectangle value
37271 2004-09-05 02:03 jordi
37273 * ScrollBar.cs, ThemeWin32Classic.cs: fixes bugs, adds flashing on
37276 2004-09-04 11:10 jordi
37278 * Label.cs: Refresh when font changed
37280 2004-09-02 16:24 pbartok
37283 - Added sanity check to creation of double buffer bitmap
37285 2004-09-02 16:24 pbartok
37288 - Fixed selection of text color
37289 - Fixed handling of resize event; now properly recreates double
37291 - Added missing assignment of TextAlignment
37292 - Added proper default for TextAlignment
37294 2004-09-02 14:26 pbartok
37297 - Added missing RadioButton.RadioButtonAccessibleObject class
37299 2004-09-02 14:26 pbartok
37302 - Added missing Control.ControlAccessibleObject class
37303 - Started to implement Select()ion mechanisms, still very incomplete
37305 2004-09-02 14:25 pbartok
37307 * AccessibleObject.cs:
37308 - Added missing methods
37310 2004-09-02 14:23 pbartok
37312 * AccessibleNavigation.cs, AccessibleSelection.cs:
37315 2004-09-02 10:32 jordi
37317 * Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: implements resource
37318 pool for pens, brushes, and hatchbruses
37320 2004-09-01 15:30 jackson
37322 * StatusBar.cs: Fix typo
37324 2004-09-01 14:44 pbartok
37329 2004-09-01 14:39 pbartok
37331 * Button.cs, RadioButton.cs:
37332 - Functional initial check-in
37334 2004-09-01 14:01 pbartok
37337 - Added missing default
37338 - Added missing region mark
37340 2004-09-01 09:10 jordi
37342 * Label.cs: fixes method signatures, new methods, events, fixes
37345 2004-09-01 07:19 jordi
37347 * Control.cs: Init string variables with an empty object
37349 2004-09-01 04:20 jordi
37351 * Control.cs: fires OnFontChanged event
37353 2004-08-31 20:07 pbartok
37356 - Enabled display of strings
37358 2004-08-31 20:05 pbartok
37361 - Added (partial) implementation of DialogResult; rest needs to be
37362 implemented when the modal loop code is done
37364 2004-08-31 19:55 pbartok
37367 - Fixed to match the removal of the needs_redraw concept
37369 2004-08-31 19:55 pbartok
37372 - Removed the rather odd split between 'needs redraw' and redrawing
37373 - Now handles the events that require regeneration (ambient
37374 properties and size)
37376 2004-08-31 19:41 pbartok
37379 - Added firing of BackColorChanged event
37380 - Added TopLevelControl property
37381 - Fixed handling of WM_ERASEBKGRND message
37383 2004-08-31 12:49 pbartok
37389 2004-08-31 12:48 pbartok
37392 - Finished (famous last words)
37394 2004-08-31 04:35 jordi
37396 * ScrollBar.cs: adds autorepeat timer, uses a single timer, fixes
37397 scrolling bugs, adds new methods
37399 2004-08-30 14:42 pbartok
37402 - Implemented CheckBox drawing code
37404 2004-08-30 14:42 pbartok
37407 - Made Redraw() and CheckRedraw() virtual
37408 - Improved mouse up/down/move logic to properly track buttons
37410 2004-08-30 09:44 pbartok
37413 - Updated to fix broken build. Not complete yet.
37415 2004-08-30 09:28 pbartok
37420 2004-08-30 09:17 pbartok
37425 2004-08-27 16:12 ravindra
37427 * ToolBarButton.cs: Added TypeConverter attribute.
37429 2004-08-27 16:07 ravindra
37431 * ImageIndexConverter.cs: Implemented.
37433 2004-08-27 14:17 pbartok
37436 - Removed unneeded stack vars
37437 - First attempt to fix sizing issues when layout is suspended
37439 2004-08-25 15:35 jordi
37441 * ScrollBar.cs: more fixes to scrollbar
37443 2004-08-25 14:04 ravindra
37445 * Theme.cs, ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs:
37446 Added the missing divider code and grip for ToolBar Control.
37448 2004-08-25 13:20 pbartok
37451 - Control now properly passes the ambient background color to child
37454 2004-08-25 13:20 jordi
37456 * ScrollBar.cs: small bug fix regarding bar position
37458 2004-08-25 12:33 pbartok
37461 - Now only calls SetTimer or KillTimer if the enabled state has
37464 2004-08-25 12:33 pbartok
37467 - Fixed timer handling, now seems to work
37468 - Improved error message for window creation
37470 2004-08-25 12:32 pbartok
37473 - Fixed generation of MouseUp message
37475 2004-08-25 12:29 jordi
37477 * ProgressBar.cs, ThemeWin32Classic.cs: new methods, properties,
37478 and fixes for progressbar
37480 2004-08-24 18:43 ravindra
37482 * ThemeWin32Classic.cs, ToolBar.cs: Fixed wrapping related issues
37483 in ToolBar control.
37485 2004-08-24 17:15 pbartok
37489 - Added missing events
37492 2004-08-24 17:14 pbartok
37494 * StatusBar.cs, PictureBox.cs:
37495 - Now uses Control's CreateParams
37497 2004-08-24 16:36 pbartok
37500 - Fixed background color handling
37501 - Fixed sending of enter/leave events on a grab
37503 2004-08-24 16:35 pbartok
37506 - Refined definitions for CrossingEvent
37508 2004-08-24 12:37 jordi
37510 * ScrollBar.cs, Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: fixes
37511 formmating, methods signature, and adds missing events
37513 2004-08-24 12:24 jordi
37515 * Control.cs: fire OnEnabledChanged event
37517 2004-08-24 11:17 pbartok
37520 - Implemented SetTimer() and KillTimer()
37522 2004-08-24 11:16 pbartok
37525 - Now uses Remove instead of Add to kill the timer
37527 2004-08-24 10:16 jackson
37529 * PictureBox.cs, Theme.cs, ThemeWin32Classic.cs: Handle drawing
37530 picture boxes in the theme now. Draw picture box borders and obey
37533 2004-08-24 05:49 jackson
37535 * Timer.cs: Remove top secret debugging code
37537 2004-08-24 05:34 jackson
37539 * PictureBox.cs: Temp hack to make picture boxes draw their full
37542 2004-08-24 05:29 jackson
37544 * Timer.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
37545 XplatUIX11.cs: Move timers to the driver level. On X they are
37546 queued by the driver and checked on idle.
37548 2004-08-24 01:07 jackson
37550 * XplatUIX11.cs: Use a queue for async messages instead of passing
37551 them as ClientMessages since that was totally broken. Also simply
37552 check for events and return an idle message if none are found. This
37553 gives us an idle handler, and prevents deadlocking when no messages
37556 2004-08-23 18:19 ravindra
37558 * XplatUIWin32.cs: Removed the unwanted destructor.
37560 2004-08-23 17:27 pbartok
37563 - Finishing touches. Works now, just needs some optimizations.
37565 2004-08-23 16:53 jordi
37567 * ScrollBar.cs: small fix
37569 2004-08-23 16:45 pbartok
37572 - Removed debug output
37575 2004-08-23 16:43 jordi
37577 * ScrollBar.cs: [no log message]
37579 2004-08-23 16:10 pbartok
37582 - Fixed handling of WM_CLOSE message
37583 - Removed debug output
37585 2004-08-23 16:09 pbartok
37588 - Added handling of Idle event
37589 - Added handling of form closing
37590 - Fixed reporting of MessageLoop property
37591 - Removed some unneeded code, should provide a bit of a speedup
37593 2004-08-23 15:22 pbartok
37596 - Added InitLayout() method
37597 - Added code to properly perform layout when Anchor or Dock property
37599 - Changed 'interpretation' of ResumeLayout. MS seems to have a
37600 LAMESPEC, tried to do it in a way that makes sense
37602 2004-08-23 14:10 jordi
37604 * HScrollBar.cs, ScrollBar.cs, TrackBar.cs, VScrollBar.cs: fixes
37605 properties and methods
37607 2004-08-23 13:55 pbartok
37610 - Properly fixed Jordi's last fix
37611 - Now uses Cursor's Position property instead of calling XplatUI
37614 2004-08-23 13:44 jordi
37616 * PaintEventHandler.cs: Adding missing attribute
37618 2004-08-23 13:39 pbartok
37621 - Implemented Position property
37623 2004-08-23 13:39 pbartok
37625 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
37626 - Added method to move mouse cursor
37628 2004-08-23 13:39 pbartok
37631 - Fixed setting of background color
37632 - Added method to move mouse cursor
37634 2004-08-23 13:16 jordi
37636 * Control.cs: avoids null exception
37638 2004-08-22 17:46 jackson
37640 * PictureBox.cs, PictureBoxSizeMode.cs: Initial implementation of
37643 2004-08-22 17:40 jackson
37645 * XplatUIX11.cs: Add some missing locks
37647 2004-08-22 15:10 pbartok
37649 * Control.cs, Form.cs:
37650 - Removed OverlappedWindow style from Control, instead it's default
37652 - Made form windows OverlappedWindow by default
37654 2004-08-22 13:34 jackson
37656 * ScrollBar.cs: Update the position through the Value property so
37657 the OnValueChanged event is raised.
37659 2004-08-22 12:04 pbartok
37662 - Added Cursor.cs and UserControl.cs
37664 2004-08-22 12:03 pbartok
37667 - Started implementation, not usable yet
37669 2004-08-22 12:00 pbartok
37672 - Implemented UserControl (complete)
37674 2004-08-21 19:20 ravindra
37676 * ToolBar.cs: Correcting the formatting mess of VS.NET.
37678 2004-08-21 18:49 ravindra
37680 * ToolBar.cs: Probably this completes the missing attributes in
37683 2004-08-21 18:03 ravindra
37685 * ToolBar.cs, ToolBarButton.cs, ToolBarButtonClickEventArgs.cs:
37686 Fixed toolbar control signatures.
37688 2004-08-21 16:32 pbartok
37693 2004-08-21 16:30 pbartok
37698 2004-08-21 16:19 pbartok
37700 * Control.cs, Label.cs:
37703 2004-08-21 15:57 pbartok
37706 - Added loads of debug output for development
37707 - Fixed typo in method name
37709 2004-08-21 15:52 pbartok
37711 * ToolBarButtonClickEventArgs.cs:
37712 - Added missing base class
37714 2004-08-21 14:53 pbartok
37717 - Updated to match new GrabWindow signature
37719 2004-08-21 14:51 pbartok
37721 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
37722 - Added method to get default display size
37724 2004-08-21 14:23 pbartok
37726 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
37727 - Added method to query current grab state
37728 - Added argument to allow confining a grab to a window
37730 2004-08-21 14:22 pbartok
37733 - Added [Flags] attribute so that modifiers can be used in bitwise
37736 2004-08-21 14:21 pbartok
37738 * TrackBar.cs, ScrollBar.cs:
37739 - Replaced direct XplatUI calls with their Control counterpart
37741 2004-08-21 13:32 pbartok
37744 - Implemented Created property
37746 2004-08-21 13:28 pbartok
37749 - Implemented ContainsFocus
37751 2004-08-21 13:26 pbartok
37754 - Implemented CausesValidation
37756 2004-08-21 13:21 pbartok
37759 - Implemented CanFocus
37760 - Implemented CanSelect
37761 - Implemented Capture
37763 2004-08-21 12:35 pbartok
37766 - Fixed bug with Async message handling
37767 - Implemented getting the ModifierKeys
37769 2004-08-21 12:32 jackson
37771 * AsyncMethodResult.cs: Make sure we have the mutex before we
37772 release it. Fixes BeginInvoke on windows
37774 2004-08-21 11:31 pbartok
37776 * XplatUIWin32.cs, XplatUIX11.cs:
37777 - Drivers now return proper mouse state
37779 2004-08-21 10:54 jackson
37781 * Control.cs: Implement EndInvoke
37783 2004-08-21 10:48 jackson
37785 * Timer.cs: Remove unneeded finalizer
37787 2004-08-20 19:52 ravindra
37789 * ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs: Improvments
37790 in mouse event handling in the ToolBar control.
37792 2004-08-20 19:50 ravindra
37794 * ImageList.cs: Changed draw method to use the arguments passed in
37797 2004-08-20 18:58 pbartok
37799 * XplatUIStructs.cs:
37800 - Added private message for async communication
37802 2004-08-20 17:38 ravindra
37804 * Control.cs: Made RightToLeft property virtual and removed a
37807 2004-08-20 14:39 jordi
37809 * ThemeGtk.cs: use style_attach
37811 2004-08-20 14:39 pbartok
37814 - Added jackson's Async code from X11 to Win32
37816 2004-08-20 14:09 pbartok
37819 - Added all new files
37821 2004-08-20 14:09 pbartok
37824 - Added call to set window background color
37826 2004-08-20 14:03 pbartok
37828 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
37829 - Added method for setting the window background
37831 2004-08-20 14:02 pbartok
37834 - Added method for setting the background color
37835 - Added handling for erasing the window background
37837 2004-08-20 13:45 jordi
37839 * TrackBar.cs: fixes timer, new properties and methods
37841 2004-08-20 13:34 jackson
37843 * ScrollBar.cs: Use the SWF timer so callbacks are run in the
37846 2004-08-20 13:22 jackson
37848 * Timer.cs: Timer Tick events are now handed through Controls Async
37849 mechanism so the callbacks are executed in the same thread as X
37851 2004-08-20 13:19 jackson
37853 * XplatUIDriver.cs: Expose functionality to send async messages
37856 2004-08-20 13:18 jackson
37858 * Control.cs: Implement Begininvoke
37860 2004-08-20 13:14 jackson
37862 * XplatUI.cs, XplatUIWin32.cs: Expose functionality to send async
37863 messages through the driver
37865 2004-08-20 13:12 jackson
37867 * XplatUIX11.cs: Lock before all X operations. Also added Async
37868 method functionality through XSendEvent
37870 2004-08-20 13:11 jackson
37872 * X11Structs.cs: Use IntPtrs for ClientMessage extra data (TODO:
37873 This will screw up on 64 bit systems)
37875 2004-08-20 13:10 jackson
37877 * AsyncMethodData.cs, AsyncMethodResult.cs: Classes for sending
37878 Async messages through X/Win32
37880 2004-08-19 19:39 pbartok
37883 - Updated code to match new HandleData.DeviceContext type
37885 2004-08-19 19:38 pbartok
37888 - Made DeviceContext a generic object to allow usage from various
37890 - Added support for queueing Windows messages
37892 2004-08-19 19:37 pbartok
37895 - Added generation of MouseEnter, MouseLeave and MouseHover events
37896 - Added cleanup on EndPaint
37898 2004-08-19 19:17 pbartok
37901 - Added handling of WM_MOUSEHOVER
37902 - Worked around 'bug' in Win32 WM_MOUSE_ENTER/WM_MOUSE_LEAVE driver
37905 2004-08-19 18:55 jordi
37907 * ThemeGtk.cs: fixes button order
37909 2004-08-19 18:12 jordi
37911 * Theme.cs, ThemeWin32Classic.cs: fixes methods signature
37913 2004-08-19 17:09 pbartok
37916 - Added Right property
37917 - Added RightToLeft property
37919 2004-08-19 16:27 jordi
37921 * ThemeGtk.cs: experimental GTK theme support
37923 2004-08-19 16:26 jordi
37925 * ITheme.cs, Theme.cs: move themes from an interface to a class
37927 2004-08-19 16:25 jordi
37929 * Control.cs, ScrollBar.cs, ThemeEngine.cs, ThemeWin32Classic.cs:
37932 2004-08-19 16:04 pbartok
37935 - Added colormap basics
37936 - Added a way to re-initialize with a different display handle
37937 - Fixed setting of the window background color
37938 - Added various X11 imports related to colors and colormaps
37940 2004-08-19 15:51 pbartok
37943 - Removed packing hints (Paolo suggested this a while back)
37944 - fixed colormap type
37945 - Added default Atom types
37946 - Added Screen and color structs and enums
37948 2004-08-19 15:39 pbartok
37951 - Added missing Draw() method
37952 - Added missing RecreateHandle event
37954 2004-08-19 15:30 pbartok
37957 - Added handling of WM_CLOSE
37959 2004-08-18 13:16 jordi
37961 * ITheme.cs, ThemeWin32Classic.cs, XplatUIWin32.cs: Move colors to
37964 2004-08-18 09:56 jordi
37966 * ScrollBar.cs: fixes to scrollbar: steps and multiple timers
37968 2004-08-17 15:31 ravindra
37970 * SWF.csproj: Updated project.
37972 2004-08-17 15:25 pbartok
37975 - Drawing improvement; don't call UpdateBounds if we are not visible
37976 (or have been minimized)
37978 2004-08-17 15:24 pbartok
37981 - Finished IsVisible
37982 - Added Win32GetWindowPlacement
37984 2004-08-17 15:08 jackson
37986 * Panel.cs: Initial checkin of the Panel
37988 2004-08-17 14:25 pbartok
37991 - Fixed broken handling of default window sizes
37993 2004-08-17 13:29 jackson
37995 * ThemeWin32Classic.cs: Don't use KnownColor to create colours. It
37996 has a large startup time.
37998 2004-08-17 10:25 jackson
38000 * HandleData.cs: union areas properly
38002 2004-08-17 10:12 jackson
38004 * HandleData.cs: union areas properly
38006 2004-08-16 20:00 ravindra
38008 * ToolBar.cs, ToolBarButton.cs: Added attributes.
38010 2004-08-16 18:48 ravindra
38012 * ToolBar.cs: Added attributes.
38014 2004-08-16 17:17 ravindra
38016 * SWF.csproj: Updated project.
38018 2004-08-16 17:16 jackson
38020 * XplatUIX11.cs: Check for more expose events before sending a
38021 WM_PAINT so they can all be grouped together. This makes dragging a
38022 window across another window redraw in a sane way.
38024 2004-08-16 15:47 pbartok
38027 - Added handling of WM_MOUSE_ENTER & WM_MOUSE_LEAVE to
38028 support OnMouseEnter/Leave()
38029 - Added WS_CLIPSIBLINGS and WS_CLIPCHILDREN window styles to improve
38032 2004-08-16 15:46 pbartok
38034 * XplatUIStructs.cs, XplatUIX11.cs:
38035 - Added WM_MOUSE_ENTER & WM_MOUSE_LEAVE to support
38036 OnMouseEnter/Leave()
38038 2004-08-16 15:34 jackson
38040 * XplatUIX11.cs: Group multiple expose events in HandleData, make
38041 sure messages get the message field set to WM_NULL if they are not
38044 2004-08-16 15:24 jackson
38046 * HandleData.cs: HandleData is used for storing message information
38049 2004-08-15 17:23 ravindra
38051 * ColorDepth.cs: Added attribute.
38053 2004-08-15 17:23 ravindra
38055 * SWF.csproj: Updated project for ToolBar Control.
38057 2004-08-15 17:20 ravindra
38059 * ITheme.cs, ThemeWin32Classic.cs: Changes to Theme for ToolBar
38060 control and also dos2unix format.
38062 2004-08-15 17:13 ravindra
38064 * ToolBar.cs, ToolBarAppearance.cs, ToolBarButton.cs,
38065 ToolBarButtonClickEventArgs.cs,
38066 ToolBarButtonClickEventHandler.cs, ToolBarButtonStyle.cs,
38067 ToolBarTextAlign.cs: First Implementation of ToolBar control.
38069 2004-08-15 15:31 pbartok
38072 - First (mostly) working version
38074 2004-08-13 16:15 pbartok
38077 - Fixed Anchor default
38079 2004-08-13 15:43 pbartok
38082 - Changed GetCursorPos signature
38084 2004-08-13 15:42 pbartok
38086 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
38087 - Changed signature for GetCursorPos
38089 2004-08-13 15:25 pbartok
38093 - Fixed resizing/exposure handling
38095 2004-08-13 15:22 jordi
38097 * ThemeWin32Classic.cs: removes redundant code and fixes issues
38100 2004-08-13 14:55 jordi
38102 * TrackBar.cs: change from wndproc to events
38104 2004-08-13 13:00 jordi
38106 * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
38107 XplatUIX11.cs: implements PointToClient (ScreenToClient)
38109 2004-08-13 12:53 pbartok
38112 - Changed GetWindowPos to also provide client area size
38113 - Fixed broken prototypes for several win32 functions
38115 2004-08-13 12:53 pbartok
38117 * XplatUI.cs, XplatUIDriver.cs:
38118 - Changed GetWindowPos to also provide client area size
38120 2004-08-13 12:52 pbartok
38123 - Added generation of WM_POSCHANGED
38124 - Changed GetWindowPos to also provide client area size
38126 2004-08-13 12:52 pbartok
38129 - Added Dispose() and destructor
38130 - Fixed resizing and bounds calculation
38132 - Added memory savings for invisible windows
38134 2004-08-13 12:46 jordi
38136 * TrackBar.cs: adds timer and grap window
38138 2004-08-13 10:25 jackson
38140 * Timer.cs: SWF Timer
38142 2004-08-12 16:59 pbartok
38144 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
38145 - Implemented method to get current mouse position
38147 2004-08-12 14:29 jordi
38149 * ITheme.cs, ThemeWin32Classic.cs, TrackBar.cs: Trackbar
38150 enhancement, fix mouse problems, highli thumb, etc
38152 2004-08-12 13:31 pbartok
38155 - Fixed Anchoring bugs
38157 2004-08-12 13:01 jackson
38159 * StatusBar.cs: Don't forget things
38161 2004-08-12 12:54 jackson
38163 * ThemeWin32Classic.cs: Handle owner draw status bars
38165 2004-08-12 12:54 jackson
38167 * StatusBar.cs: Implement missing properties, events, and methods.
38168 Handle mouse clicking
38170 2004-08-12 10:19 jackson
38172 * StatusBarPanelClickEventArgs.cs,
38173 StatusBarPanelClickEventHandler.cs: Classes for handling status
38174 bar panel click events
38176 2004-08-12 10:10 jackson
38178 * Control.cs: Add missing properties
38180 2004-08-12 09:46 pbartok
38182 * BindingsManagerBase.cs:
38183 - Name changed to BindingManagerBase.cs
38185 2004-08-12 09:25 jordi
38187 * ScrollableControl.cs: calls ctrlbase instead of exeception
38189 2004-08-11 16:28 pbartok
38191 * InputLanguageChangingEventArgs.cs:
38192 - Never check in before compiling. Fixes the last check-in
38194 2004-08-11 16:26 pbartok
38196 * InputLanguageChangingEventArgs.cs:
38197 - More signature fixes
38199 2004-08-11 16:20 pbartok
38201 * BindingManagerBase.cs, BindingMemberInfo.cs, ContainerControl.cs,
38202 Control.cs, ControlEventArgs.cs, ControlPaint.cs, Form.cs,
38203 ImageListStreamer.cs, InputLanguage.cs,
38204 InputLanguageChangedEventArgs.cs,
38205 InputLanguageChangingEventArgs.cs, Keys.cs, LayoutEventArgs.cs,
38206 LinkArea.cs, Message.cs, MouseEventArgs.cs, NativeWindow.cs,
38207 ScrollEventArgs.cs, ScrollableControl.cs, XplatUI.cs,
38208 XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
38211 2004-08-11 16:16 pbartok
38215 - Added .Net 1.1 method
38217 2004-08-11 15:25 pbartok
38220 - Fixed BindingManagerBase.cs filename
38222 2004-08-11 15:22 pbartok
38224 * BindingManagerBase.cs:
38225 - Was checked in with wrong filename
38227 2004-08-11 14:50 pbartok
38232 2004-08-11 13:41 jordi
38234 * XplatUIWin32.cs: Fixes ClientRect
38236 2004-08-11 13:19 pbartok
38238 * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
38240 - We had SetWindowPos and MoveWindow to set window positions and
38241 size, removed MoveWindow. We have GetWindowPos, so it made sense to
38242 keep SetWindowPos as matching counterpart
38243 - Added some X11 sanity checking
38245 2004-08-11 12:59 pbartok
38248 - Major cleanup of my SetBounds/SetBoundsCore/UpdateBounds mess
38249 (It seems that SetBounds is just a front for SetBoundsCore and
38250 SetBoundsCore updates the underlying window system and
38251 UpdateBounds is responsible for updating the variables associated
38252 with the Control and sending the events)
38253 - Major cleanup of Size handling; we now have two sizes, client_size
38254 and bounds. Bounds defines the window with decorations, client_size
38257 2004-08-11 12:55 pbartok
38259 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
38260 - Added method to calculate difference between decorated window and
38263 2004-08-11 12:54 pbartok
38266 - Forcing redraw on resize
38268 2004-08-11 11:43 pbartok
38271 - Removed disposing of the actual images when the list is disposed
38273 2004-08-11 09:13 pbartok
38276 - Now properly reparents windows
38278 2004-08-11 08:37 pbartok
38283 2004-08-11 07:47 pbartok
38286 - Rewrote the collection stuff. Might not be as fast now, not
38287 keeping the number of children around and accessible directly, but
38288 it's more straightforward
38290 2004-08-11 07:44 pbartok
38292 * AccessibleObject.cs:
38293 - Fixed to match ControlCollection rewrite
38295 2004-08-11 07:43 pbartok
38298 - Added missing creation of the collection list
38300 2004-08-10 20:08 jackson
38302 * StatusBar.cs: Get the paint message from WndProc
38304 2004-08-10 19:31 jackson
38306 * ThemeWin32Classic.cs: Create Brushes as little as possible
38308 2004-08-10 19:20 jackson
38310 * UICues.cs: Add Flags attribute
38312 2004-08-10 19:19 jackson
38314 * StatusBarPanel.cs: Signature cleanup
38316 2004-08-10 19:10 jackson
38318 * StatusBarDrawItemEventArgs.cs, StatusBarDrawItemEventHandler.cs:
38319 Initial implementation of status bar item drawing
38321 2004-08-10 17:27 jordi
38323 * TrackBar.cs: add missing methods, properties, and restructure to
38326 2004-08-10 16:24 jackson
38328 * AccessibleStates.cs, Border3DSide.cs, Border3DStyle.cs,
38329 ButtonState.cs, ControlStyles.cs, DragDropEffects.cs: Add flags
38332 2004-08-10 13:21 jordi
38334 * ITheme.cs, ScrollBar.cs, ThemeWin32Classic.cs: scrollbar
38335 enhancements and standarize on win colors defaults
38337 2004-08-10 12:52 jackson
38339 * DrawItemEventArgs.cs, DrawItemState.cs, ITheme.cs,
38340 ThemeWin32Classic.cs: Implement DrawItem functionality
38342 2004-08-10 12:47 jordi
38344 * XplatUIWin32.cs: Calls InvalidateRect before UpdateWindow
38346 2004-08-10 12:32 jordi
38348 * Control.cs: throw ontextchange event
38350 2004-08-10 11:43 pbartok
38353 - Added more to the still unfinished Dock/Anchor layout code
38355 2004-08-10 11:39 pbartok
38357 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
38358 - Added GetWindowPos method
38360 2004-08-10 11:36 pbartok
38363 - Implemented several methods
38365 2004-08-10 09:47 jackson
38367 * TrackBar.cs: Allow control to handle buffering
38369 2004-08-10 09:41 jackson
38371 * ProgressBar.cs, ScrollBar.cs: Allow control to handle buffering
38373 2004-08-10 09:24 jackson
38375 * Label.cs, LinkLabel.cs: Let Control handle buffering.
38377 2004-08-10 09:09 jackson
38379 * StatusBar.cs: Let Control handle all the buffering.
38381 2004-08-10 09:08 jackson
38383 * Control.cs: Control will now handle the buffering code, so each
38384 control does not have to implement this.
38386 2004-08-10 08:34 jackson
38388 * XplatUIDriver.cs: Use default colors from the theme
38390 2004-08-09 17:12 pbartok
38393 - Fixed several bugs Ravindra pointed out
38395 2004-08-09 16:11 pbartok
38398 - Added incomplete dock layout code
38399 - Added support for mouse wheel
38401 2004-08-09 16:09 pbartok
38404 - Added handling for middle and right mousebutton
38405 - Added handling for mouse wheel
38406 - Added handling for key state and mouse state and position
38407 - Now properly generates WM_xBUTTONx messages and WM_MOUSEWHEEL
38410 2004-08-09 15:40 jackson
38412 * StatusBarPanel.cs, StatusBarPanelAutoSize.cs,
38413 StatusBarPanelBorderStyle.cs, StatusBarPanelStyle.cs: Initial
38416 2004-08-09 15:37 jackson
38418 * StatusBar.cs: Initial implementation of StatusBar
38420 2004-08-09 15:36 jackson
38422 * ITheme.cs: Add support for drawing status bar and getting status
38425 2004-08-09 15:35 pbartok
38430 2004-08-09 15:34 jackson
38432 * ThemeWin32Classic.cs: Add support for drawing status bar and get
38433 status bar item sizes
38435 2004-08-09 15:21 jackson
38437 * ThemeWin32Classic.cs: Use known colors for default control
38440 2004-08-09 15:12 jackson
38442 * ThemeWin32Classic.cs: Make the default font static, it is static
38443 in control so this doesn't change functionality and creating fonts
38446 2004-08-09 14:56 pbartok
38449 - Added GrabMode enum
38451 2004-08-09 14:55 pbartok
38453 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
38454 - Removed Run method, was only required for initial development
38456 2004-08-09 14:51 pbartok
38458 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
38459 - Implemented GrabWindow/ReleaseWindow methods to allow pointer
38462 2004-08-09 13:48 pbartok
38465 - Fixed default sizing for child windows
38467 2004-08-09 12:56 pbartok
38470 - Added generation of WM_DESTROY message
38471 - Added handling of window manager induced shutdown
38473 2004-08-09 11:31 jackson
38475 * ThemeWin32Classic.cs: New names for control properties
38477 2004-08-09 11:25 jackson
38479 * Control.cs: Use new color names
38481 2004-08-09 11:02 jackson
38483 * XplatUI.cs: Get default window properties from the theme
38485 2004-08-09 11:01 jackson
38487 * ITheme.cs: The theme engine now controls default window
38490 2004-08-09 11:00 jackson
38492 * ThemeWin32Classic.cs: Add default window color properties
38494 2004-08-09 10:17 jackson
38496 * ThemeWin32Classic.cs: Use correct default back color
38498 2004-08-09 10:05 jackson
38500 * XplatUIWin32.cs, XplatUIX11.cs: These properties are handled by
38503 2004-08-09 09:56 jackson
38505 * XplatUI.cs: Remove defaults, these are handled by the theme now.
38507 2004-08-09 09:54 jackson
38509 * Control.cs: Get default properties from the theme.
38511 2004-08-09 09:53 jackson
38513 * ITheme.cs: Themes now handle default control properties
38515 2004-08-09 09:53 jackson
38517 * ThemeWin32Classic.cs: Themes now handle default control
38518 properties so coloring will be consistent
38520 2004-08-08 16:54 jordi
38522 * ITheme.cs, ThemeWin32Classic.cs: Label BorderStyles
38524 2004-08-08 15:08 jordi
38526 * XplatUIX11.cs: fixes keyboard crash
38528 2004-08-08 13:47 jordi
38530 * Label.cs: add cvs header info
38532 2004-08-08 12:09 jackson
38534 * ThemeWin32Classic.cs: Add pen_buttonface
38536 2004-08-08 11:52 jordi
38538 * Label.cs, LinkLabel.cs: [no log message]
38540 2004-08-08 11:34 jordi
38542 * ThemeWin32Classic.cs: Use Windows Standard Colours
38544 2004-08-07 17:32 jordi
38546 * TrackBar.cs: throw exceptions of invalid enums values
38548 2004-08-07 17:31 jordi
38550 * Label.cs, LinkLabel.cs, ThemeWin32Classic.cs: fixes label bug and
38553 2004-08-07 16:56 jackson
38555 * HorizontalAlignment.cs: Initial checkin
38557 2004-08-07 13:16 jordi
38559 * Label.cs, LinkLabel.cs: throw exceptions, fixes events, missing
38562 2004-08-07 13:05 jordi
38564 * ITheme.cs, ThemeWin32Classic.cs: Theme colour support and
38565 GetSysColor defines
38567 2004-08-06 18:01 pbartok
38569 * ThemeWin32Classic.cs:
38570 - Fixed some rounding issues with float/int
38572 2004-08-06 18:00 jackson
38574 * DockStyle.cs, AnchorStyles.cs:
38576 Add flags and serializable attributes.
38578 2004-08-06 17:46 pbartok
38581 - Implemented GetParent
38583 2004-08-06 17:18 pbartok
38586 - Fixed some rounding issues with float/int
38588 2004-08-06 17:17 pbartok
38590 * X11Structs.cs, XplatUIX11.cs:
38591 - Fixed Refresh and Invalidate
38593 2004-08-06 15:30 pbartok
38595 * Control.cs, X11Structs.cs, XplatUIX11.cs:
38596 - Fixed recursive loop when resizing
38597 - Improved/fixed redrawing on expose messages
38599 2004-08-06 09:53 jordi
38601 * Control.cs, X11Structs.cs, XplatUIWin32.cs, XplatUIX11.cs: X11
38602 keyboard navigation
38604 2004-08-06 08:02 pbartok
38606 * X11Structs.cs, XplatUIX11.cs:
38607 - Fixed reparenting
38608 - Fixed window border creation
38610 2004-08-05 15:38 pbartok
38613 - Attempted fix for reparenting problems
38615 2004-08-04 15:14 pbartok
38618 - Fixed Invalidation bug (calculated wrong client area)
38619 - Added ClientSize setter
38621 2004-08-04 15:13 pbartok
38624 - Added AutoScale properties
38626 2004-08-04 15:13 pbartok
38629 - Added latest files
38631 2004-08-04 14:11 pbartok
38633 * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
38635 - Added Invalidate handling
38637 2004-08-03 17:09 jordi
38639 * XplatUIDriver.cs: fixes spelling mistake
38641 2004-07-27 09:53 jordi
38643 * TrackBar.cs: fixes trackbar events, def classname, methods
38646 2004-07-27 09:29 jordi
38648 * ScrollBar.cs: fixes scrollbar events
38650 2004-07-27 04:38 jordi
38652 * Control.cs: changes to be able to run winforms samples
38654 2004-07-26 11:42 jordi
38656 * ControlPaint.cs, ITheme.cs, ProgressBar.cs, ScrollBar.cs,
38657 ThemeEngine.cs, ThemeWin32Classic.cs, TrackBar.cs: Theme support
38659 2004-07-26 05:41 jordi
38661 * MessageBox.cs, MessageBoxButtons.cs, MessageBoxDefaultButton.cs,
38662 MessageBoxIcon.cs, MessageBoxOptions.cs: initial messagebox
38665 2004-07-22 09:22 jordi
38667 * LinkLabel.cs, LinkLabelLinkClickedEventHandler.cs: link label:
38668 check link overlapping, implement events, and fixes
38670 2004-07-21 10:28 jordi
38672 * DialogResult.cs, IButtonControl.cs: fixes comments filenames
38674 2004-07-21 10:19 jordi
38676 * DialogResult.cs, IButtonControl.cs, Label.cs, LinkArea.cs,
38677 LinkBehavior.cs, LinkClickedEventArgs.cs, LinkLabel.cs,
38678 LinkLabelLinkClickedEventArgs.cs,
38679 LinkLabelLinkClickedEventHandler.cs, LinkState.cs,
38680 XplatUIWin32.cs, LinkClickedEventHandler.cs: LinkLabel control
38683 2004-07-19 13:09 jordi
38685 * Control.cs, Label.cs: label control re-written: added missing
38686 functionlity, events, and properties
38688 2004-07-19 10:49 jordi
38690 * Control.cs: fixes SetBounds logic
38692 2004-07-19 01:29 jordi
38694 * Control.cs: Call RefreshWindow only if the window has created
38696 2004-07-15 14:05 pbartok
38698 * ColorDepth.cs, ImageList.cs, ImageListStreamer.cs, SWF.csproj:
38699 - Implemented ImageList and ImageList.ImageCollection classes
38700 - Added ColorDepth enumeration
38701 - Updated SWF VS.Net project
38703 2004-07-15 11:06 jordi
38705 * XplatUIStructs.cs: added MsgButons enum
38707 2004-07-15 11:03 jordi
38709 * Control.cs: added basic mouse handeling events
38711 2004-07-15 03:38 jordi
38713 * Orientation.cs, TickStyle.cs, TrackBar.cs: Horizontal and
38714 Vertical TrackBar control implementation
38716 2004-07-13 09:33 jordi
38718 * HScrollBar.cs, VScrollBar.cs: vertical and hort. classes commit
38720 2004-07-13 09:31 jordi
38722 * Control.cs, Form.cs: commit: new properties and fixes form size
38725 2004-07-09 14:13 miguel
38727 * ProgressBar.cs: Spelling
38729 2004-07-09 11:25 pbartok
38732 - Removed usage of Rectangle for drawing. Miguel pointed out it's
38735 2004-07-09 11:17 miguel
38737 * ProgressBar.cs: 2004-07-09 Miguel de Icaza <miguel@ximian.com>
38739 * ProgressBar.cs: Fixed spelling for `block'
38741 drawProgressBar: renamed to `DrawProgressBar' to follow the coding
38744 Avoid using the += on rect.X, that exposed a bug in the compiler.
38746 2004-07-08 23:21 pbartok
38748 * AccessibleObject.cs, AccessibleRole.cs, AccessibleStates.cs,
38749 AnchorStyles.cs, Application.cs, ApplicationContext.cs,
38750 BaseCollection.cs, Binding.cs, BindingContext.cs,
38751 BindingMemberInfo.cs, BindingsCollection.cs,
38752 BindingsManagerBase.cs, Border3DSide.cs, Border3DStyle.cs,
38753 BorderStyle.cs, BoundsSpecified.cs, ButtonBorderStyle.cs,
38754 ButtonState.cs, CaptionButton.cs, CheckBox.cs,
38755 ContainerControl.cs, Control.cs, ControlEventArgs.cs,
38756 ControlEventHandler.cs, ControlPaint.cs, ControlStyles.cs,
38757 ConvertEventArgs.cs, ConvertEventHandler.cs, Copyright,
38758 CreateParams.cs, DockStyle.cs, DragAction.cs, DragDropEffects.cs,
38759 DragEventArgs.cs, DragEventHandler.cs, FlatStyle.cs, Form.cs,
38760 FrameStyle.cs, GiveFeedbackEventArgs.cs,
38761 GiveFeedbackEventHandler.cs, HelpEventArgs.cs,
38762 HelpEventHandler.cs, IContainerControl.cs, IDataObject.cs,
38763 IMessageFilter.cs, IWin32Window.cs, ImeMode.cs, InputLanguage.cs,
38764 InputLanguageChangedEventArgs.cs,
38765 InputLanguageChangedEventHandler.cs,
38766 InputLanguageChangingEventArgs.cs,
38767 InputLanguageChangingEventHandler.cs, InputLanguageCollection.cs,
38768 InvalidateEventArgs.cs, InvalidateEventHandler.cs,
38769 KeyEventArgs.cs, KeyEventHandler.cs, KeyPressEventArgs.cs,
38770 KeyPressEventHandler.cs, Keys.cs, Label.cs, LayoutEventArgs.cs,
38771 LayoutEventHandler.cs, MenuGlyph.cs, Message.cs, MouseButtons.cs,
38772 MouseEventArgs.cs, MouseEventHandler.cs, NativeWindow.cs,
38773 PaintEventArgs.cs, PaintEventHandler.cs, ProgressBar.cs,
38774 QueryAccessibilityHelpEventArgs.cs,
38775 QueryAccessibilityHelpEventHandler.cs,
38776 QueryContinueDragEventArgs.cs, QueryContinueDragEventHandler.cs,
38777 RightToLeft.cs, SWF.csproj, SWF.csproj.user, ScrollBar.cs,
38778 ScrollBars.cs, ScrollButton.cs, ScrollEventArgs.cs,
38779 ScrollEventHandler.cs, ScrollEventType.cs, ScrollableControl.cs,
38780 TODO, TODOAttribute.cs, UICues.cs, UICuesEventArgs.cs,
38781 UICuesEventHandler.cs, X11Structs.cs, XplatUI.cs,
38782 XplatUIDriver.cs, XplatUIStructs.cs, XplatUIWin32.cs,
38783 XplatUIX11.cs, lang.cs: