1 2009-03-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3 * XplatUIX11.cs: In GetMessage when F1 gets pressed, besides sending a
4 WM_HELP message for the associated window, don't call
5 NativeWindow.WndProc *at all*, since this could send a WM_*
6 key-related to Control.WndProc. Also, return the keypress message, in
7 case it needs to be preprocessed for any menu.
10 2009-03-08 Ivan N. Zlatev <contact@i-nz.net>
12 * DataGridView.cs: When removing the first displayed row and moving
13 the current cell up one we must invalidate the first displayed row
14 index before calculating the row heights, etc.
17 2009-03-08 Ivan N. Zlatev <contact@i-nz.net>
19 * DataGridView.cs: Fix three column bugs:
20 - Rows should be cleared (but not removed) if columns become 0.
21 - The current cell should get moved
22 - ColumnCount increase was adding too many columns.
24 2009-03-07 Ivan N. Zlatev <contact@i-nz.net>
26 * DataGridView.cs: Fix RowCount decrease which wasn't working well
27 in both scenarions - with and without editing row.
29 2009-03-06 Ivan N. Zlatev <contact@i-nz.net>
31 * DataGridView.cs: Be compatible with MS in that the scroll to
32 selection has a synchronous effect. The trick here is that in
33 order to avoid unnecessary calculations each time a row/column
34 is added/removed we recalculate the whole grid size just before
35 just before the scroll to selection.
38 2009-03-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
40 * RichTextBox.cs: LoadFile(string path) should pass by default
41 RichTextBoxStreamType.RichText, without caring about the detection or
42 extension of the file.
44 2009-03-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
46 * RichTextBox.cs: When calling LoadFile, remove the extra EOL
47 introduced by StreamReader, since it will convert the EOF to an EOL.
50 2009-03-06 Jonathan Pobst <monkey@jpobst.com>
52 * ToolStripDropDownMenu.cs: Use Math.Max instead of calculating
55 2009-03-06 Jonathan Pobst <monkey@jpobst.com>
57 * ToolStripMenuItem.cs: Don't draw the dropdown arrow or shortcut
58 string if we aren't on a ToolStripDropDownMenu.
60 2009-03-06 Jonathan Pobst <monkey@jpobst.com>
62 * ToolStripDropDownButton.cs, ToolStripItem.cs: Refactor some Button
63 code from Item to Button. Patch from Alex Shulgin.
65 2009-03-05 Jonathan Pobst <monkey@jpobst.com>
67 * ToolStripDrowDown.cs: Remove some hardcoded values and assumptions.
68 * ToolStripDropDownButton.cs: This should use a ToolStripDropDownMenu,
69 not a ToolStripDropDown.
70 * ToolStripItem.cs: Don't use the item margins on a ToolStripDropDown.
72 2009-03-04 Ivan N. Zlatev <contact@i-nz.net>
74 * DataGridView.cs: Fix RowCount/ColumnCount decreasing.
76 Based on a patch by Tom Hindle <tom_hindle@sil.org>
79 2009-03-04 Ivan N. Zlatev <contact@i-nz.net>
81 * DataGridView.cs, DataGridViewElement.cs:
82 - Always calls OnDataGridViewChanged() if the new DGV is
83 not the same/null as the current one.
84 - Do not throw NREs when setting TopLeftHeaderCell to null
85 - Unset the DGV for TopLeftHeaderCell when replacing it
86 Based on a patch by Tom Hindle <tom_hindle@sil.org>
89 2009-03-04 Jonathan Pobst <monkey@jpobst.com>
91 * ToolStripDropDown.cs: When dismissing control due to ESC, don't
92 hit a NRE if we are a ContextMenuStrip and do not have a parent.
95 2009-03-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
97 * ListView.cs: When removing items from a ListViewItemCollection
98 contained in ListView (not in ListViewGroup), before actually removing
99 the items remove them also from their -if any- associated groups. If
100 the item is present in ListViewGroup.Items but not in ListView.Items,
101 then don't remove it - this is *exactly* what .net seems to do.
102 Fixes the remaining bits of #478689.
104 2009-02-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
106 * ListView.cs: In our MouseDown handler in ItemControl use the item in
107 the very specific *real* position where the mouse was pressed, using
108 GetItemAtDisplayIndex for that purpose, instead of directly accessing
109 Items - this is specially useful when groups with Details view is
110 used. This is what we do in other places when using groups.
111 Fixes part of #478689.
113 2009-02-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
115 * MaskedTextBox.cs: Properly replace selection when a new valid key
116 is pressed - even when IsOverwriteMode is false. This is what .net
119 2009-02-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
121 * MaskedTextBox.cs: When setting Text and RejectOnFirstFailure is
122 true, use MaskedTextProvider.Set instead of MaskedTextProvider.Replace,
123 since Set will keep the previous value in case of error (just what we
124 need), but still call MaskedTextProvider.Clear if
125 RejectOnFirstFailure is false - match .net.
127 2009-02-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
129 * MaskedTextBox.cs: When setting Text use the very precise algorithm
130 that .net uses: iterate over every char of the new value, trying to
131 use every char, and use a normal call to MaskedTextProvider.Replace
132 call if RejectInputOnFirstFailure is true. Fire OnMaskInputRejected
133 in case of error in both cases, as well.
136 2009-02-25 Neville Gao <nevillegao@gmail.com>
138 * ColorDialog.cs: Added UIA Framwork Property:
139 UIASelectedSmallColorControl.
141 2009-02-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
143 * MaskedTextBox.cs: Forgot to update the call of the new method
144 introduces in the previous patch.
146 2009-02-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
148 * MaskedTextBox.cs: Handle OnKeyDown to properly process the Delete
149 key. Also create a new method to avoid code duplication between
150 OnKeyDown and OnKeyPress.
153 2009-02-24 Ivan N. Zlatev <contact@i-nz.net>
155 * DataGridViewCell.cs: Invalidate the datagrid when the cell is selected
159 2009-02-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
161 * MaskedTextBox.cs: In OnKeyPress the IsOverwriteMode check is
162 actually inversed, so put it the right way. Also, don't automatically
163 look for the next editable item after adding a new one, but way for
164 the next insertion (this is what .net does) - this is not needed when
165 MaskedTextProvider.InsertAt is called however, since it already looks for the
166 next editable position.
167 Fixes the remaining bits of #477383.
169 2009-02-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
171 * MaskedTextBox.cs: In OnKeyPress handle backspace by calling
172 MaskedTextProvider.RemoveAt method. Also for setting the SelectionStart
173 property after the text was modified, adjust the testPosition value
174 depending on what method was called.
175 Fixes part of #477383.
177 2009-02-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
179 * ListView.cs: For EnsureVisible, adjust the view port bounds based on
180 the existence of the column headers, as well as using this information
181 to adjust the vscrollbar value, so items never get hidden by the
185 2009-02-23 Ivan N. Zlatev <contact@i-nz.net>
187 * DataGridView.cs: Make the ScrollBars property work properly.
189 2009-02-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
191 * TextBox.cs: Some code lifting for AutoComplete's support. First,
192 when handling non-navigation keys, save the original Text typed by the
193 user, and don't motify it BEFORE. This was a design mistake, since the
194 re-assignation happens only when navigating the append/suggest list,
195 not while creating the matches. Also, process the Delete key just like
196 the backspace one. Finally, when handling WM_CHAR, ignore both Escape
198 Fixes some missing bits of #469967.
200 2009-02-22 Ivan N. Zlatev <contact@i-nz.net>
202 * DataGridView.cs: Fix row removal in the data-bound scenario.
204 2009-02-19 Ivan N. Zlatev <contact@i-nz.net>
206 * DataGridViewCell.cs: Use strict equality comparison in order to
207 prevent superfluous CellValueChanged events.
209 2009-02-19 Ivan N. Zlatev <contact@i-nz.net>
211 * DataGridView.cs: Do not reset the columns when the data list changes,
212 but only the rows. Fixes multiple bugs related to sorting, custom
213 column styles being reset and more.
215 2009-02-19 Jonathan Pobst <monkey@jpobst.com>
217 * ThemeWin32Classic.cs: Respect a PictureBox's Padding when
220 2009-02-18 Andrés G. Aragoneses <aaragoneses@novell.com>
222 * ToolBarButton.cs: Oops, use the correct event (fix r127298).
224 2009-02-17 Andrés G. Aragoneses <aaragoneses@novell.com>
226 * ToolBarButton.cs: Event for Enabled property (needed to fix
229 2009-02-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
231 * TextBox.cs: When handling WndProc with autocomplete activated,
232 event if the new text is not causing any change in the look up
233 algorithm, save it as we normally do when numbers and letters.
236 2009-02-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
238 * TreeNode.cs: When Text/StateImageIndex/StateImageKey/NodeFont change
239 Invalidate the proper bounds in the TreeView, not only resetting the
243 2009-02-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
245 * TreeNode.cs: Don't return TreeView.BackColor when retrieving our own
246 BackColor property. This is what .net does in both 1.1 and 2.0.
247 * TreeView.cs: When selected_node is not the same as highlighted_node,
248 we need to handle the back color in a different way, trying to use the
249 node's BackColor if it's not Color.Empty.
252 2009-02-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
254 * TreeView.cs: When canceling selection in our MouseUp handler,
255 invalidate also the previous selected node bounds.
258 2009-02-07 Ivan N. Zlatev <contact@i-nz.net>
260 * DataGridView.cs: End or if end fails then cancel the current edit
261 operation before clearing the data source.
263 2009-02-07 Ivan N. Zlatev <contact@i-nz.net>
265 * DataGridView.cs: Data-bind only after the handle is created.
268 2009-02-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
270 * TreeView.cs: When handling the MouseMove event, check if
271 focused_node and selected_node fields are null - usually they are non
272 null, since we have always a selected node, but canceling selection by
273 handling BeforeSelect event leaves the two of them as null.
276 2009-02-06 Neville Gao <nevillegao@gmail.com>
278 * TabControl.cs: Control enabled to support accessibility.
281 2009-02-05 Ivan N. Zlatev <contact@i-nz.net>
283 * DataGridViewRowCollection.cs, DataGridView.cs: Fix row insertation:
284 - Use ArrayList.Insert instead of the Item property so that the item
285 is actually inserted and not an existing item replaced.
286 - Call DataGridView.OnRowsAddedInternal and drop internal from
287 OnRowsAdded for binary compitability. This also fixes several
291 2009-02-05 Andrés G. Aragoneses <aaragoneses@novell.com>
293 * ToolBarButton.cs: Doh, fire OnUIATextChanged *after* setting
296 2009-02-04 Andrés G. Aragoneses <aaragoneses@novell.com>
298 * ToolBarButton.cs: Add another event (OnUIATextChanged).
300 2009-02-04 Andrés G. Aragoneses <aaragoneses@novell.com>
302 * ToolBarButton: Fix typo in previous commit (r125704).
304 2009-02-04 Andrés G. Aragoneses <aaragoneses@novell.com>
306 * ToolBar.cs, ToolBarButton.cs: Add new UIA events to know
307 when a button gets focus, firing the events from the ToolBar.
310 2009-02-04 Mario Carrion <mcarrion@novell.com>
312 * ColumnHeader.cs: Raising ListView.ColumnWidthChanged when setting
314 * ListView.cs: Internal method added: RaiseColumnWidthChanged, used by
315 ColumnHeader to raise ColumnWidthChanged.
318 2009-02-03 Ivan N. Zlatev <contact@i-nz.net>
320 * DataGridViewRowCollection.cs, DataGridView.cs: Move row completion
321 code in the row collection code, so that the completion happens before
322 the CollectionChanged event, also better encapsulation.
325 2009-02-02 Ivan N. Zlatev <contact@i-nz.net>
327 * DataGridView.cs: When editing is finished do not remove the editing
328 row, because it has already become a real one. Instead add a new one.
331 2009-02-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
333 * TreeView.cs: When drawing the node's image, check that the index
334 specified by the node is valid for the ImageList.
337 2009-02-02 Andrés G. Aragoneses <aaragoneses@novell.com>
339 * ToolBar.cs: Add new UIAPerformClick method to be called by
340 UIAutomationWinforms when someone calls Invoke() on the
341 ToolBarButtonProvider. r: jpobst
343 2009-02-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
345 * XplatUIX11.cs: Don't send a WM_SHOWWINDOW message when receiving
346 MapNotify/UnmapNotify events - we are already firing those events in
347 the proper places, so we avoid this way to send the same message two
348 times. I'm leaving the handling code in case we could break something
349 in the future, as this change seems dangerous (but needed).
352 2009-02-01 Ivan N. Zlatev <contact@i-nz.net>
354 * DataGridView.cs: Complete incomplete rows when they are added to
358 2009-02-01 Ivan N. Zlatev <contact@i-nz.net>
360 * DataGridView.cs, DataGridViewColumnCollection.cs: Ensure that the
361 binding is cleared prior to setting it to null. Fixes a regression
362 causing exceptions when the DataSource is set to null and then set
363 again to a data source.
365 2009-02-01 Ivan N. Zlatev <contact@i-nz.net>
367 * DataGridView.cs, DataGridViewImageColumn.cs, DataGridViewCell.cs:
368 - Make Image/Bitmap cells work.
369 - Handle images with size greater than the cell.
370 - Default to MiddleCenter alignment for image cells.
373 2009-01-30 Ivan N. Zlatev <contact@i-nz.net>
375 * UpDownBase.cs: Force Height to PreferredHeight.
377 2009-01-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
379 * XplatUIX11.cs: We should use utf8 handling clipboard transference
380 with other x11 applications, and use utf16 when handling clipboard
381 data in the class library. Update the related points as well.
384 2009-01-28 Ivan N. Zlatev <contact@i-nz.net>
386 * DataGridViewCell.cs: Format strings according to the supplied
390 2009-01-28 Ivan N. Zlatev <contact@i-nz.net>
392 * DataGridView.cs: Reset the hover cell if it gets moved due to row(s)
393 addition or removal. Fixes multiple crashes in OnMouseMove.
395 2009-01-27 Ivan N. Zlatev <contact@i-nz.net>
397 * DataGridView.cs: Fix a NRE when setting the CurrentCell to null.
399 2009-01-27 Ivan N. Zlatev <contact@i-nz.net>
401 * XplatUIX11.cs: Fire Timer.Tick even if there is no MainForm for the
405 2009-01-26 Andreia Gaita <avidigal@novell.com>
407 * WebBrowser.cs: fix initial value of ScrollbarsEnabled, so they
408 won't be disabled by default.
411 2009-01-26 Ivan N. Zlatev <contact@i-nz.net>
413 * DataGridView.cs: Do not clear the rows if we are not databound.
415 2009-01-26 Ivan N. Zlatev <contact@i-nz.net>
417 * DataGridView.cs: Do not be too smart about selecting the first cell
418 when the first row is added as this is not what MS does. Fixes the
421 2009-01-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
423 * TreeNode.cs: NextVisibleNode and PrevVisibleNode properties don't
424 take into account the fact that OpenTreeNodeEnumerator needs to call
425 MoveNext/MovePrevious to actually put the passed node as the one
426 retrieved in Current. This way this property should work as really
428 Fixes part of #467225.
430 2000-01-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
432 * TreeView.cs: When calculating the scrollbars, don't use
433 TreeNode.Bounds, since it still can have the values of the previous
434 -and now invalid- layout -which depends on TreeView.skipped_nodes, and
435 could not have been updated as well-, and use the actual number of
436 visible number of nodes to compute the height needed to contain all
437 the nodes. Also reset the value of vbar to 0 when disabled - this way
438 we make sure that, when re-enabled, it will update the visible area of
439 the treeview, even if the previous value before disabling it is the
440 same as now. Finally don't do anything for the vbar.ValueChanged
441 handler - for the case wheer we manually set the value but don't the
442 vbar is disabled already.
443 Fixes part of #467225.
445 2009-01-23 Jonathan Pobst <monkey@jpobst.com>
447 * ToolStrip.cs: Switch from foreach to for, in case the collection
448 somehow changes while enumerating it.
450 2009-01-23 Ivan N. Zlatev <contact@i-nz.net>
452 * DataGridView.cs, DataGridViewCell.cs: Fix crashes when there is no
455 2009-01-23 Ivan N. Zlatev <contact@i-nz.net>
457 * DataGridView.cs: Fix new row adding/editing in the non-databound
460 2009-01-21 Mike Gorse <mgorse@novell.com>
462 * TrackBar.cs: Make LargeIncrement/Decrement internal so that UIA can
464 Added UIAValueParamChangedEvent.
466 2009-01-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
468 * TreeView.cs: In CollapseAll, set vbar to the maximum value, instead
469 of trying to set as top node the highest parent of the previous top
470 node. Moving to the bottom of the TreeView after a call to CollapseAll
471 is exactly what .net does. This should avoid some nasty issue when
472 CollapseAll is called and we don't need the vertical scroll bar.
474 2009-01-21 Mario Carrion <mcarrion@novell.com>
476 * Form.cs: UIA Support: Internal events added: UIAWindowStateChanged
477 and UIATopMostChanged.
479 2009-01-21 Sandy Armstrong <sanfordarmstrong@gmail.com>
481 * MenuItem.cs: Add UIACheckChanged, UIARadioCheckChanged,
482 UIAEnabledChanged, and UIATextChanged events.
484 * Form.cs: Add UIAMenuChanged event.
487 * MenuAPI.cs: Note which internal APIs are being used by UIA.
489 2009-01-21 Neville Gao <nevillegao@gmail.com>
491 * ToolBar.cs: Control enabled to support accessibility.
494 2009-01-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
496 * TreeView.cs: When handling mouse up event, check whether
497 highlighted_node is null or not - usually it should be non-null
498 alwaays, since the mouse down handler sets it, but some externa
499 operations, such TreeNodeCollection.Clear, could set it to null.
502 2009-01-19 Ivan N. Zlatev <contact@i-nz.net>
504 * ThemeWin32Classic.cs: Draw the menu item shortcut even if the menu
507 2009-01-19 Ivan N. Zlatev <contact@i-nz.net>
509 * MenuAPI.cs: Do not handle shortcuts if the menu item is disabled.
512 2009-01-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
514 * MonthCalendar.cs: When handling the selection changes using the
515 mouse, don't set SelectionRange if the selection range didn't actually
516 change. This matters because, even if we set the range to the same
517 previous range, an extra DateChanged event is fired. Just to be clear:
518 SelectionRage property doesn't check whether the new value is
519 different to the previous one (by ref equals doesn't work here).
520 Fixes other bits of #364914.
522 2009-01-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
524 * MonthCalendar.cs: Remove the extra OnDateChanged call when handling
525 selection using the keyboard, since we are already firing this event
526 when setting SelectionRange. Also don't set SelectionRange if the
527 previous and the new value are the same (the property, just as .net
528 does, doesn't check whether the previous value and the new one are the
529 same). This saves us from firing OnDateChanged event if the selection
530 range didn't change actually.
531 Fixes the remaining bits of #364914.
533 2009-01-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
535 * ListBox.cs: When removing an item and the last item is selected,
536 remove it from the selection, and if selection mode is One try to
537 select the new last item.
540 2009-01-16 Mike Gorse <mgorse@novell.com>
542 * Splitter.cs: Make MaxSize internal so that UIA code can use it.
544 2009-01-16 Mario Carrion <mcarrion@novell.com>
546 * ColumnHeader.cs: UIA Support: raising internal event UIATextChanged
549 2009-01-16 Carlos Alberto Cortez <calberto.cortez@ggmail.com>
552 * XplatUIX11.cs: Properly encode/decode the unicode strings we
553 store/retrieve in the Clipboard. Also, since we try to convert the
554 data to different formats, separate the source and the result of
555 it, so we can always fallback to the original and don't mix wrong
558 2009-01-16 Mike Gorse <mgorse@novell.com>
560 * TextControl.cs: Add UIASelectionChanged event.
562 2009-01-16 Ivan N. Zlatev <contact@i-nz.net>
564 * DataGridView.cs: Forward the first key events to the editing control.
567 2009-01-14 Andrés G. Aragoneses <aaragoneses@novell.com>
569 * Application.cs: Oops, launch the copied handler of PreRun instead of
570 the global one (gendarme would bark otherwise). (Improving r123375)
572 2009-01-14 Andrés G. Aragoneses <aaragoneses@novell.com>
575 * Application.cs: Move the PreRun event fire to the end of the XplatUI
576 static ctor (we don't move the PreRun event to this class because its
577 usage would cause the call to the static ctor). This way we can get
578 a11y support for dialogs that run without App.Run.
580 2009-01-14 Andrés G. Aragoneses <aaragoneses@novell.com>
582 * ListView.cs: New internal property to know the inner array's length of
583 the location of items, in order to avoid a try-catch strategy for the
584 case when this array has not been resized yet (for reference, look at
587 2009-01-13 Andrés G. Aragoneses <aaragoneses@novell.com>
589 * Application.cs: Simplify UIA initialization, reducing it from 4 to 1
590 reflection calls. This requires UIAutomationWinforms r123213.
592 2009-01-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
594 * MonthCalendar.cs: Detect selection changes in MouseDown/MouseMove
595 handlers and fire the DateSelected event until MouseUp is reached,
596 like .net does, instead of firing it for each mouse event.
597 Fixes part of #364914.
599 2009-01-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
601 * TreeView.cs: When the selection gets canceled using the BeforeSelect
602 event, invalidate the previous highlighted_node bounds, to show the
603 user that the item was *not* selected.
606 2009-01-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
608 * ComboBox.cs: Separate some scroll logic: setting SelectedIndex, as
609 well as -in DropDown and Simple modes- writing in the textbox should
610 try to set the requested item as the top one, but navigating with the
611 keyboard and handling mouse selection don't need that behaviour. Also,
612 when resetting selected_index handling key press events, reset
613 ComboListBox.HighlightIndex.
614 Fixes the remaining bits of #464188.
616 2009-01-11 Ivan N. Zlatev <contact@i-nz.net>
618 * DataGridView.cs: Fix crashes when shortcut keys are pressed, but
620 - CurrentCellAddress should be -1, -1 and not 0, 0.
621 - Be tolerant and fall back to clearing the current cell if either
622 column or row is -1 in MoveCurrentCell.
623 - Misc. more -1 checks.
625 2009-01-11 Ivan N. Zlatev <contact@i-nz.net>
627 * DataGridView.cs: Preserve the column index. Fixes a regression
628 introduced by the data binding position tracking code.
630 2009-01-11 Ivan N. Zlatev <contact@i-nz.net>
632 * DataGridView.cs: If the bottom of the row matches the client height
633 do not regard the row as partially visible. Fixes the weird scrolling
634 when there is no scrollbar.
636 2009-01-11 Ivan N. Zlatev <contact@i-nz.net>
638 * DataGridViewComboBoxCell.cs: Implement/Fix the data binding.
640 2009-01-09 Mario Carrion <mcarrion@novell.com>
642 * MessageBox.cs: Fixed internal UIAIconRectangle property.
644 2009-01-09 Ivan N. Zlatev <contact@i-nz.net>
646 * DataGridViewCheckBoxCell.cs: Respect the ReadOnly state of the Cell.
648 2009-01-09 Ivan N. Zlatev <contact@i-nz.net>
650 * DataGridView.cs: Track the Position in the CurrencyManager.
652 2009-01-09 Ivan N. Zlatev <contact@i-nz.net>
654 * DataGridView.cs: Implement data-bound new item editing/addition.
655 * DataGridViewRowCollection.cs: Make it possible for us to internally
657 [Fixes bugs #457107, #457308, #325240]
659 2009-01-09 Ivan N. Zlatev <contact@i-nz.net>
661 * CurrencyManager.cs: Even if Position is set to a greater value than the
662 list count reset it to position of the last item.
664 2009-01-09 Ivan N. Zlatev <contact@i-nz.net>
666 * BindingSource.cs: AddNew doesn't set index/add_pending for IBindingList.
667 Fix that in order to make CancelNew to work.
669 2009-01-09 Ivan N. Zlatev <contact@i-nz.net>
671 * BindingSource.cs: When adding a new item try to delegate to the internal
672 list first before throwing an exception.
674 2009-01-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
676 * ComboBox.cs: When setting the text and adjusting the top_item, do it
677 *only* if the current item is *not* visible already.
678 Fixes part of #464188.
680 2009-01-09 Ivan N. Zlatev <contact@i-nz.net>
682 * DataGridView.cs: Requesting the CurrencyManager for the first time can
683 lead to unexpected OnBindingContextChanged calls and recursive rebinding.
687 2009-01-08 Brad Taylor <brad@getcoded.net>
689 * ComboBox.cs: Expose a few private fields as internal UIA properties.
691 2009-01-07 Mario Carrion <mcarrion@novell.com>
693 * DataGrid.cs: CWL removed.
695 2009-01-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
697 * RadioButton.cs: When setting Checked, we should first update the
698 check state of the current RadioButton, as well as invalidating it,
699 and after that actually update the siblings. This is done to match
701 Fixes the remaining bits of #463028.
703 2009-01-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
705 * RadioButton.cs: Setting Checked to false should set TabStop to stop
706 as well. Also, when we get the focus and no other RadioButton is
707 selected in the parent control, we should mark ourselves as Checked.
708 Fixes part of #463028.
710 2009-01-05 Mario Carrion <mcarrion@novell.com>
712 * DataGrid.cs: UIA suppport. internal events:
713 UIAGridCellChanged, UIAColumnsHeadersVisibleChanged,
714 UIASelectionChanged, UIACollectionChanged. Internal properties:
715 UIARowHeight, UIACellsArea, UIACaptionArea,
716 UIAColumnHeadersArea, UIASelectedRows, UIACurrentTableStyle,
717 UIAVScrollBar and UIAHScrollBar.
719 2009-01-05 Jonathan Pobst <monkey@jpobst.com>
721 * ToolStripSplitStackLayout.cs: Enable the overflow button if any
722 of the buttons are set to Overflow = Always.
725 2009-01-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
727 * BindingNavigator.cs: Properly enable/disable the toolstrip buttons,
728 based on whether the binding source is availble or not. Fixes #463008.
730 2009-01-03 Ivan N. Zlatev <contact@i-nz.net>
732 * DataGridViewCell.cs: We should return a value even if we are not bound
735 2009-01-02 Ivan N. Zlatev <contact@i-nz.net>
737 * CurrencyManager.cs, DataGrid.cs:
738 - Rename CanAddRows to AllowNew. The CurrencyManager has no
740 - Add two more internal properties AllowRemove and AllowEdit.
741 * DataGridView.cs: Refactor in a data-bound situation AllowUserToAddRows,
742 AllowUserToDeleteRows and cell ReadOnly state to be also checked against the
743 CurrencyManager data source.
745 2009-01-02 Ivan N. Zlatev <contact@i-nz.net>
747 * DataGridView.cs: Fix crashes caused by assigning negative values to
748 ScrollBar.LargeIncrement when the ClientSize.Width/Height is less than
749 the column/row heights/widths.
752 2009-01-02 Ivan N. Zlatev <contact@i-nz.net>
754 * DataGridView.cs: Non-autogenerated columns that have a data property
755 set that exists in the current datasource should be set to be data-bound.
757 2009-01-02 Ivan N. Zlatev <contact@i-nz.net>
759 * DataGridView.cs: Fix column sorting for columns containing null
760 values. A "null" value is not always "null" (e.g could be String.Empty)
761 and thus parsing numeric types throwed an exception for "null" values.
763 2009-01-02 Ivan N. Zlatev <contact@i-nz.net>
765 * DataGridView.cs: Detach the editing control when the edit is
768 2009-01-02 Ivan N. Zlatev <contact@i-nz.net>
770 * DataGridView.cs: Multiple fixes to handle last column/row removal
771 and cell movement after that instead of throwing exceptions.
773 2009-01-02 Ivan N. Zlatev <contact@i-nz.net>
775 * DataGridViewCellCollection.cs: When cells are removed the column
776 indices become invalid if the cell is not the last one and have to
779 2009-01-01 Ivan N. Zlatev <contact@i-nz.net>
781 * DataGridView.cs: Return false in CommitEdit if there was an error.
783 2009-01-01 Ivan N. Zlatev <contact@i-nz.net>
785 * DataGridView.cs: Remove a leftover Console.WriteLine.
787 2009-01-01 Ivan N. Zlatev <contact@i-nz.net>
789 * DataGridViewRow.cs: Access the indexer of the data manager directly
790 instead of the internal list.
792 2009-01-01 Ivan N. Zlatev <contact@i-nz.net>
794 * DataGridViewCell.cs, DataGridView.cs, DataGridViewCheckBoxCell.cs:
795 Rewrite the value getting, setting, parsing, formatting logic:
796 - If data-bound value get/set should actually get and set from the
798 - Make proper usage of TypeConverters for value parsing/formatting.
799 - Raise DataError if setting the new value fails.
800 - Get rid off the internal valueType field and get/set the ValueType
804 2009-01-01 Ivan N. Zlatev <contact@i-nz.net>
806 * DataGridView.cs: Rewrite the DataBinding layer:
807 - Get rid off all BindingSource/IBindingList/DataSet/DataTable
809 - Get rid off the per DataSource type column autogeneration code.
810 - Use the CurrencyManager for everything that is DataBinding related.
812 2009-01-01 Ivan N. Zlatev <contact@i-nz.net>
814 * CurrencyManager.cs: Do not fire duplicate ListChanged events.
816 2008-12-31 Ivan N. Zlatev <contact@i-nz.net>
818 * DataGridView.cs, DataGridViewRow.cs: Add a new internal property
819 DataManager to fetch the CurrencyManager for the DataGridView and to
820 spare this logic for the other components to follow.
822 2008-12-31 Mario Carrion <mcarrion@novell.com>
824 * MessageBox.cs: UIA support: new properties: UIAMessage,
825 UIAMessageRectangle and UIAIconRectangle.
827 2008-12-31 Sandy Armstrong <sanfordarmstrong@gmail.com>
829 * FileDialog.cs: Add PopupButtonPanel.PopupButton.PerformClick method
830 and DirComboBox.DirComboBoxItem.ToString override for UIA support.
832 2008-12-31 Ivan N. Zlatev <contact@i-nz.net>
834 * DataGridView.cs: Do not autogenerate duplicate column for a
835 data member that has already problematically been assigned one.
838 2008-12-30 Jonathan Pobst <monkey@jpobst.com>
840 * ProfessionalColorTable.cs: Better detection of user's theme.
843 2008-12-30 Ivan N. Zlatev <contact@i-nz.net>
845 * DataGridView.cs: In the case where there are no autogenerated
846 columns and the user adds columns problematically we must generate
847 the rows after the very first column is added.
849 2008-12-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
851 * DateTimePicker.cs: When increasing/decreasing the value of month
852 with ShowUpDown set to true, moving from december to january, and
853 moving from january to december should adjust the year to the next and
854 the previous year, respectively.
855 Fixes the remaining bits of #459674.
857 2008-12-30 Ivan N. Zlatev <contact@i-nz.net>
859 * DataGridView.cs: If a new cell is selected edit mode should be
860 immediately enabled only if EditOnEnter is set. Whether the mouse
861 or not was used to select the cell is irrelevant.
863 2008-12-29 Ivan N. Zlatev <contact@i-nz.net>
865 * DataGridView.cs: Remove a bogus ReBind call, which was causing
868 2008-12-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
870 * DateTimePicker.cs: Handle the "MMMM" month format.
873 2008-12-23 Ivan N. Zlatev <contact@i-nz.net>
876 - Make ReBind private and refactor various calls to call ReBind
877 instead of ClearBinding/DoBinding
878 - Rebind when the column collection changes
879 * DataGridViewColumnCollection.cs:
880 - Leave the rebinding on change to be handled by the DataGridView.
882 2008-12-23 Jonathan Pobst <monkey@jpobst.com>
884 * DataGridView.cs: Add a ReBind convenience method.
885 * DataGridViewColumnCollection.cs: Rebind when a column is added.
888 2008-12-23 Neville Gao <nevillegao@gmail.com>
890 * StatusBar.cs: Modified argument variable.
891 * SplitContainer.cs: Control enabled to support accessibility.
894 2008-12-22 Jonathan Pobst <monkey@jpobst.com>
896 * ToolStripMenuItem.cs: Guard against an NRE.
899 2008-12-22 Mario Carrion <mcarrion@novell.com>
901 * Control.cs: AccessibleXXXX properties don't return
902 AccessibleObject.XXXX, instead a local referece is returned.
904 2008-12-22 Neville Gao <nevillegao@gmail.com>
906 * PrintPreviewControl.cs: Added internal properties to support
910 2008-12-19 Mario Carrion <mcarrion@novell.com>
912 * Control.cs: Reverted r121561.
914 2008-12-19 Andrés G. Aragoneses <aaragoneses@novell.com>
916 * X11DesktopColors.cs: Since r121873 we don't need gtk a11y checks here,
917 it has been moved to the bridge.
919 2008-12-18 Brad Taylor <brad@getcoded.net>
921 * DateTimePicker.cs: Add a few UIA specific events, and a couple
922 internal methods useful for UIA.
924 2008-12-18 Mario Carrion <mcarrion@novell.com>
926 * ListBox.cs: Fixed GetItemRectangle when MultiColumn is true.
929 2008-12-17 Mike Gorse <mgorse@novell.com>
931 * ListView.cs, ListViewItem.cs: Send OnUIAFocusedItemChanged if an
932 item's Focused property is set.
934 2008-12-17 Sandy Armstrong <sanfordarmstrong@gmail.com>
938 * TreeNodeCollection.cs: Add events for UIA support:
939 UIACheckBoxesChanged, UIALabelEditChanged, UIANodeTextChanged, and
940 UIACollectionChanged.
942 2008-12-17 Bill Holmes <billholmes54@gmail.com>
944 * ListViewItem.cs (ListViewSubItem.ctor): Initalizing the
945 SubItemStyle member field.
947 Contributed under MIT/X11 license.
949 2008-12-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
951 * ListBox.cs: In MultiColumn mode don't use top_index to calculate the
952 y coord, since it's useless in this case, and we need to rely only on
953 the number of rows and ItemHeight to compute this value.
954 Fixes part of #257471.
956 2008-12-15 Mike Gorse <mgorse@novell.com>
958 * StatusBar.cs: Send OnUIACollectionChanged in Remove().
960 2008-12-15 Mario Carrion <mcarrion@novell.com>
962 * Control.cs: Accessibility properties instantiate AccessibilityObject when
966 2008-12-15 Brad Taylor <brad@getcoded.net>
968 * ToolStripItem.cs: Add a UIA specific event for listening for when a
969 ToolStripItem becomes selected or deselected.
971 2008-12-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
973 * MonthCalendar.cs: Select the date in MouseDown, not in MouseUp, as
974 .net does. Use the date in the point of the mouse move coords as the
975 new range as well, if the left button of the mouse is being pressed.
978 2008-12-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
980 * MonthCalendar.cs: When modifying either AnnuallyBoldedDates,
981 MonthlyBoldedDates or BoldedDates call UpdateBoldedDates, to
982 effectively repaint the control.
983 Fixes the remaining bits of #417961.
985 2008-12-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
987 * MonthCalendar.cs: When setting MaxDate/MinDate, adjust the selected
988 range to contain only dates within the new possible range.
989 Fixes part of #417961.
991 2008-12-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
993 * MaskedTextBox.cs: MaskedTextService.Replace doesn't expect the
994 length of the text, but the end position, so we need to substract 1 to
995 have a valid value. Also, in the same InputText method, don't use
996 SelectionLength as the length of the text, since the selected text
997 could actually be empty, but we need to set the value anyway.
1000 2008-12-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1002 * TextBox.cs: Don't do any auto complete task if the custom source is
1003 null or empty. Also avoid duplication of code.
1006 2008-12-09 Ivan N. Zlatev <contact@i-nz.net>
1008 * DataGridView.cs: Refresh column sizes when new rows are added.
1011 2008-12-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1012 * RichTextBox.cs: When parsing the contents of a rtf file, don't call
1013 Split to create a line - we are already doing this, by _adding_ a new
1014 one when rtf_cursor_x is 0 (this field gets this value just after we
1015 receive the newline param as true). This avoids having a proportional number
1016 of empty lines in the end of the rich text box.
1019 2008-12-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1021 * RichTextBox.cs: When saving the contents as a plain text, don't add
1022 a new line for every Line structure, since the data in Document
1023 already contains the new line characters. This avoids duplicated new
1024 lines using the Save methods.
1027 2008-12-09 Sandy Armstrong <sanfordarmstrong@gmail.com>
1029 * TreeView.cs: Expose ScrollBars as internal properties, for use by UIA
1030 framework. Fixes bug #457678.
1032 2008-12-08 Ivan N. Zlatev <contact@i-nz.net>
1034 * DataGridViewRow.cs: Prevent an exception on a not yet databound grid,
1035 where datasource is null.
1036 [Fixes exception reported in bug 441240]
1038 2008-12-08 Ivan N. Zlatev <contact@i-nz.net>
1040 * DataGridView.cs: EndEdit validation fixes.
1042 2008-12-08 Ivan N. Zlatev <contact@i-nz.net>
1044 * DataGridView.cs: This is the cool patch that adds support for
1045 actually updating the data in the databinding backend after editing.
1046 With bonus firing and handling the DataError event.
1048 2008-12-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1050 * Line.cs: When calculating the text tags's Shift value, store it as
1051 pixels instead of points. This way we can actually handle different
1052 fonts in the same RichTextBox, as well as the right size of the caret.
1053 Fixes part of #351938.
1055 2008-12-08 Ivan N. Zlatev <contact@i-nz.net>
1057 * DataGridViewCheckBoxCell.cs: Fix to make it work. Wrong value was
1058 casted to CheckState causing InvalidCastExceptions.
1060 2008-12-08 Ivan N. Zlatev <contact@i-nz.net>
1062 * DataGridView.cs: Fix the DataGridViewEditMode.EditOnEnter behavior
1063 to not depend on the item being clicked.
1065 2008-12-08 Ivan N. Zlatev <contact@i-nz.net>
1067 * DataGridView.cs: Implement NotifyCurrentCellDirty, so that it no
1068 longer throws a NotImplementedException.
1070 2008-12-08 Ivan N. Zlatev <contact@i-nz.net>
1072 * DataGridView.cs: Set EditingControlFormattedValue when preparing an
1073 IDataGridViewEditingControl for editing.
1075 2008-12-08 Ivan N. Zlatev <contact@i-nz.net>
1077 * DataGridViewComboBoxCell.cs: Implement data binding support.
1079 2008-12-08 Ivan N. Zlatev <contact@i-nz.net>
1081 * DataGridView.cs: Use the CurrencyManager to update the data source
1082 binding position instead of casting the data sourcde to BindingSource.
1083 This enables position updating for other type of data sources.
1085 2008-12-08 Ivan N. Zlatev <contact@i-nz.net>
1087 * ComboBox.cs: Update the SelectedIndex before updating the Text
1088 in OnDisplayMemberChanged.
1090 2008-12-07 Ivan N. Zlatev <contact@i-nz.net>
1092 * DataGridView.cs: Fix our support for IDataGridViewEditingControl.
1095 2008-12-06 Ivan N. Zlatev <contact@i-nz.net>
1097 * DataGridView.cs: Sorting fixes:
1098 - Be strict when sorting is enabled.
1099 - If there is a data source delegate the sorting request.
1101 2008-12-06 Ivan N. Zlatev <contact@i-nz.net>
1103 * Binding.cs: When converting the data also try with the destination
1104 type typeconverter. This indirectly adds support for Nullable types
1105 in our databinding layer.
1107 2008-12-06 Ivan N. Zlatev <contact@i-nz.net>
1109 * DataGridView.cs: When cell editing is finished focus back the
1110 DataGridView. Fixes keyboard navigation post-editing.
1112 2008-12-06 Ivan N. Zlatev <contact@i-nz.net>
1114 * DataGridView.cs: Fix the cell editing by delaying the currentCell
1115 setting to after EndEdit is called for the old cell.
1117 2008-12-06 Ivan N. Zlatev <contact@i-nz.net>
1119 * BindingSource.cs: Reset the bindings. Fixes a NotWorking test.
1121 2008-12-06 Ivan N. Zlatev <contact@i-nz.net>
1123 * XplatUIX11.cs: Send WM_HELP only to the focused window.
1125 2008-12-05 Ivan N. Zlatev <contact@i-nz.net>
1127 * CurrencyManager.cs: Fix exceptions when resetting the data source
1128 for the same time (e.g. in ComboBox):
1129 - Do not set the list position if we are still transferring data
1130 - When resetting the list firstly push the data then update the
1132 * Binding.cs: Check BindingManager.Position == -1 instead of
1133 BindingManager.Current == null in order to avoid unexpected
1136 2008-12-05 Brad Taylor <brad@getcoded.net>
1138 * MonthCalendar.cs: Add UIA specific events so that we can know when
1139 the selection changes, and when MaxSelectedCount changes.
1141 2008-12-05 Ivan N. Zlatev <contact@i-nz.net>
1143 * DataGridView.cs: Cleanup rows_displayed out of OnPaint. It's not
1146 2008-12-05 Ivan N. Zlatev <contact@i-nz.net>
1148 * DataGridView.cs: Fix scrolling and selection of cells/rows prior
1149 to the control being drawn for the first time by:
1150 - Implement DisplayedRowsCount to not rely on the control being
1151 already painted. Also added support for the partial row flag.
1152 - Fix scrolling to take into account partial rows and scroll to
1156 2008-12-05 Ivan N. Zlatev <contact@i-nz.net>
1158 * DataGridView.cs: Do not reset the CurrentCell when the handle is
1159 created if the user has already set it.
1161 2008-12-05 Ivan N. Zlatev <contact@i-nz.net>
1163 * DataGridView.cs: Fix CurrentCell to actually select the cell.
1165 2008-12-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1167 * XplatUIX11.cs: Add support to RichTextFormat by reading it as ascii
1168 text and then let the underneath users of IDataObject interpret and
1169 parse by themselves.
1172 2008-12-01 Ivan N. Zlatev <contact@i-nz.net>
1174 * DataGridView.cs: Fix my previous commit to actually update what it
1177 2008-12-01 Ivan N. Zlatev <contact@i-nz.net>
1179 * DataGridView.cs: Ensure that when a row is removed the all the
1180 current row/column/cell get updated. Fixes multiple exceptions.
1182 2008-12-01 Ivan N. Zlatev <contact@i-nz.net>
1184 * DataGridView.cs: Fix scrolling to the current cell when key navigation
1188 2008-12-01 Ivan N. Zlatev <contact@i-nz.net>
1190 * DataGridView.cs, DataGridViewCell.cs: Fire CellStateChanged events.
1191 * DataGridViewCell.cs: Set the cell as selected prior to setting the
1193 [Fixes issue 1 in bug #443560]
1195 2008-12-01 Ivan N. Zlatev <contact@i-nz.net>
1197 * DataGridView.cs: Invalidate after the current row/column seletion
1201 2008-12-01 Ivan N. Zlatev <contact@i-nz.net>
1203 * DataGridView.cs: Refresh the data if the data list is reset, etc.
1205 2008-12-01 Ivan N. Zlatev <contact@i-nz.net>
1207 * DataGridView.cs: Handle datasource state changes:
1208 - IBindingList - list changes
1209 - BindingSource - list changed and datasource changes
1211 2008-11-30 Ivan N. Zlatev <contact@i-nz.net>
1213 * DataGridView.cs: Select the first cell when databound.
1214 Visually select when CurrentCell is set.
1216 2008-11-30 Ivan N. Zlatev <contact@i-nz.net>
1218 * DataGridView.cs: Set the current cell before raising CellClick.
1220 2008-11-30 Ivan N. Zlatev <contact@i-nz.net>
1222 * DataGridView.cs: Cleanup MoveCurrentCell to not fire any CellEnter,
1223 CellLeave events as this is already done in SetCurrentCellAddressCore.
1225 2008-11-30 Ivan N. Zlatev <contact@i-nz.net>
1227 * DataGridView.cs: Set the minimum size for the columns to be the
1228 width of their header, so that the columns don't get squashed
1231 2008-11-30 Ivan N. Zlatev <contact@i-nz.net>
1233 * DataGridView.cs: After the data is bound PerformLayout, so that
1234 the columns get autosized.
1236 2008-11-30 Ivan N. Zlatev <contact@i-nz.net>
1238 * DataGridView.cs: Move all currentCell setting code into
1239 one central place - SetCurrentCellAddressCore. That way the
1240 current cell is properly updated when programatically set.
1241 Fire RowEnter/Leave events.
1243 2008-11-30 Ivan N. Zlatev <contact@i-nz.net>
1245 * DataGridView.cs: Update the CurrencyManager.Position, so that
1246 when a BindingSource is used BindingSource.Current will be correct.
1248 2008-11-30 Ivan N. Zlatev <contact@i-nz.net>
1250 * GroupBoxRenderer.cs: Fix when VisualStyles disabled:
1251 - No caption text is drawn because Color.Empty is used.
1252 - Fix top and height off by 1.
1254 2008-11-30 Ivan N. Zlatev <contact@i-nz.net>
1256 * DataGridViewRow.cs: Implement DataBoundItem.
1258 2008-11-30 Ivan N. Zlatev <contact@i-nz.net>
1260 * BindingSource.cs: Return null for Current if there is no data present.
1262 2008-11-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1264 * MenuAPI.cs: Add a Menu.SelectedItem null check when navigating the
1265 menus using the arrow keys. Also when handling the left arrow key, don't
1266 assign the current menu to the parent one, if the parent is null.
1269 2008-11-24 Everaldo Canuto <ecanuto@novell.com>
1271 * PrintPreviewDialog.cs: Fix toolbar size, height must be 26. Fixes bug
1274 2008-11-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1277 * ScrollableControl.cs: Simplify the code to manually set the size of
1278 the thum area, avoiding duplication of code, and also preserving the
1279 right value for different code paths - this can happen when size
1280 changes are made to the scrollbar after setting LargeChange, Maximum
1281 or related properties for the ScrollBar.
1283 2008-11-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1285 * ScrollableControl.cs: When scrolling, don't invalidate the entire
1286 area, and call to XplatUIX11.ScrollWindow instead. This is exactly
1287 what .Net does: copy the visible area, and only invalidate the part of
1288 the area that wasn't visible before scrolling.
1291 2008-11-24 Jonathan Pobst <monkey@jpobst.com>
1293 * DataGridView.cs: Listen for a DataTable's TableCleared event so we
1294 can clear ourselves when it is raised, we don't have a newrowindex
1295 if we don't have any columns.
1296 * DataGridViewRowCollection.cs: Ensure we always delete all the rows,
1297 re-index after each delete so the NewRow will have the correct index.
1300 2008-11-24 Jonathan Pobst <monkey@jpobst.com>
1302 * Form.cs: Don't change min/max size if it is empty.
1305 2008-11-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1308 * ScrollableControl.cs: When the manual thumb size is used, the
1309 maximum allowed value should depend on that thumb size, instead of
1310 LargeChange (using the maximum - LargeChange + 1 value). But
1311 LargeChange should be used normally when incrementing/decrementing.
1312 Fixes the remaining part of #441546.
1314 2008-11-23 Andreia Gaita <avidigal@novell.com>
1316 * WebBrowser.cs, WebBrowserBase.cs: Delay loading of DocumentStream
1317 until an about:blank has been loaded (according to spec). Fix
1318 ScrollbarsEnabled to set when a document is loaded (since we use js
1319 for it). Fix url so it reflects the current loading document and not
1320 the previous one. Send StatusChanged events.
1322 2008-11-23 Andreia Gaita <avidigal@novell.com>
1324 * Application.cs: If a message comes in for an embedded control
1325 (like webbrowser) when we're capturing the keyboard, release the
1326 capture and continue.
1329 2008-11-22 Andreia Gaita <avidigal@novell.com>
1331 * XplatUI.cs: Only use PlatformID.MacOSX enum when not building on VS
1333 2008-11-21 Andreia Gaita <avidigal@novell.com>
1335 * WebBrowser.cs, HtmlDocument.cs: Fixes for #428172
1337 2008-11-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1340 * ScrollableControl.cs: Set manually the thumb size for the
1341 ScrollableControl scrollbars, so any further changes to the underneath
1342 scrollbars respect the original size.
1343 Fixes part of #441546.
1345 2008-11-21 Geoff Norton <gnorton@novell.com>
1347 * XplatUI.cs: Ensure that we can run on .net 2.0 with mono 2.2 where
1348 PlatformID.MacOSX now exists.
1350 2008-11-20 Jonathan Pobst <monkey@jpobst.com>
1352 * TextBoxBase.cs: Provide a default implementation for ChangeBackColor.
1353 Having something internal abstract isn't very nice for people who want
1354 to inherit from this class.
1356 2008-11-20 Jonathan Pobst <monkey@jpobst.com>
1358 * ToolStripItem.cs: Don't crash if ImageIndex or ImageKey is set to an
1359 invalid value. Just return null for the Image, and use the ImageList's
1360 ImageSize for calculations.
1362 2008-11-20 Jonathan Pobst <monkey@jpobst.com>
1364 * ComboBox.cs: Call HideWindow instead of Hide when closing the dropdown
1365 through DroppedDown so the proper events get called and state gets reset.
1368 2008-11-18 Jonathan Pobst <monkey@jpobst.com>
1370 * DataGridViewColumnCollection.cs: Make sure we re-index the columns after
1371 the collection is modified.
1373 2008-11-17 Jonathan Pobst <monkey@jpobst.com>
1375 * DomainUpDown.cs: Remove string cache and reflection optimizations. They
1376 aren't always correct, and fixing them for every case is not worth the
1377 negligible benefit they provide.
1380 2008-11-17 Jonathan Pobst <monkey@jpobst.com>
1382 * DataGridView.cs: We should never add actual cells to the RowTemplate.
1383 Internally, use RowTemplateFull to give us a new row with cells.
1384 * DataGridViewColumnCollection.cs: Clear Rows when we clear Columns.
1385 * DataGridViewRowCollection.cs: Use RowTemplateFull.
1387 2008-11-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1389 * XplatUIX11.cs: Forms without borders should be able to change its
1390 size - specially they should be able to be maximized, adding the
1391 respective MotifFunctions.Resize bit when setting window properties as
1392 well as *not* marking the Hwnd as size fixed.
1395 2008-11-12 Jonathan Pobst <monkey@jpobst.com>
1397 * DataGridViewCellStyle.cs: Allow SelectionBackColor to have
1401 2008-11-11 Jonathan Pobst <monkey@jpobst.com>
1403 * DataGridView.cs: Add internal to OnAutoSizeColumnModeChanged.
1404 * DataGridViewColumn.cs: Recalculate columns when AutoSizeMode changes. Raise
1405 AutoSizeColumnModeChanged.
1408 2008-11-11 Jonathan Pobst <monkey@jpobst.com>
1410 * DataGridViewRowCollection.cs: Guard against the user deleting the
1411 NewRow. Add an internal delete so we can still delete it.
1412 * DataGridView.cs: Use the new internal delete when deleting the NewRow.
1415 2008-11-10 Jonathan Pobst <monkey@jpobst.com>
1417 * TextControl.cs: Add some order of operation to our math so
1418 we don't end up with a negative height for our invalidate rect.
1421 2008-11-10 Jonathan Pobst <monkey@jpobst.com>
1423 * Control.cs: When our enabled changes, notify our implicit children
1424 controls as well as our regular controls.
1427 2008-11-08 Andreia Gaita <shana@jitted.com>
1429 * HtmlElement.cs: Small code cleanup
1431 2008-11-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1433 * BindingNavigator.cs: MoveFirstItem should be enabled only if
1434 position is larger than 0, not only different than 0. Also Position
1435 and Count items should be enabled if the BindingSource is non null and
1439 2008-11-05 Jonathan Pobst <monkey@jpobst.com>
1441 * TabControl.cs: Don't raise SelectedIndexChanged until we have
1442 actually modified the tab collection, so TabCount will be correct.
1445 2008-11-05 Sandy Armstrong <sanfordarmstrong@gmail.com>
1447 * ListViewItem.cs: Mark ListViewSubItem.UIATextChanged event as
1448 NonSerialized to fix serialization of ListViewItem.
1450 2008-11-04 Mike Gorse <mgorse@novell.com>
1452 * ListView.cs: Call OnUIAFocusedItemChanged after completing the
1453 focus change, and always call in SetFocusedItem.
1454 * ListBox.cs: Add UIAFocusedItemChanged as in ListView.
1456 2008-11-04 Jonathan Pobst <monkey@jpobst.com>
1458 * ComboBox.cs: Only call OnDrawItem when we are using an OwnerDraw
1459 mode. Based on a patch by John Mortlock.
1462 2008-11-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1464 * ListView.cs: Use the UsingGroups property where needed, instead of
1465 duplicating the check in other places.
1467 2008-11-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1469 * ListView.cs: When calculating layout, refresh the count of items
1470 belonging to the default item, insteas of doing it only one time. This
1471 was already working fine for icon views, not not for details.
1474 2008-11-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1478 * ThemeWin32Classic.cs: Don't render Tile view if there wasn't a call
1479 to Applicatin.EnableVisualStyles, and use LargeIcon view, as .net
1483 2008-11-03 Sandy Armstrong <sanfordarmstrong@gmail.com>
1485 * ListView.cs: Wrap call to OnUIAFocusedItemChanged with #if NET_2_0.
1487 2008-11-03 Sandy Armstrong <sanfordarmstrong@gmail.com>
1489 * ListView.cs: Add internal UIAFocusedItemChanged event. Fixes bug
1490 #441280, patch by Mike Gorse <mgorse@novell.com>.
1492 2008-11-03 Jonathan Pobst <monkey@jpobst.com>
1494 * TreeView.cs: When doing ExpandAll, don't scroll to the bottom
1495 if there is no scrollbar.
1498 2008-11-03 Jonathan Pobst <monkey@jpobst.com>
1500 * ProgressBar.cs, ThemeWin32Classic.cs, ThemeVisualStyles.cs: Commit
1501 patch from Andy Hume that fixes many issues with ProgressBar.
1504 2008-11-03 Jonathan Pobst <monkey@jpobst.com>
1506 * Form.cs: Don't allow MinimumSize and MaximumSize to conflict.
1509 2008-11-03 Sandy Armstrong <sanfordarmstrong@gmail.com>
1513 * NumericUpDown.cs: Internal events added to UpDownBase:
1514 UIAUpButtonClick and UIADownButtonClick. Patch by Neville Gao
1517 2008-11-03 Sandy Armstrong <sanfordarmstrong@gmail.com>
1519 * ToolStripLabel.cs: Internal event added: UIAIsLinkChanged.
1521 2008-11-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1524 * ThemeWin32Classic.cs: Don't use groups nor insertion mark in
1525 Application.EnableVisualStyles hasn't been called.
1526 Fixes part of #437933.
1528 2008-10-31 Andreia Gaita <shana@jitted.com>
1530 * Form.cs (SetVisibleCore): since set_ActiveControl no longer calls focus
1531 if the container is not focused already, we need to specifically set
1532 focus to the first available control, or to the form itself if there
1535 2008-10-31 Andreia Gaita <shana@jitted.com>
1537 activate message fix: a call to .Show now waits until both WM_SHOWWINDOW and
1538 WM_ACTIVATE have been processed before returning, so it is guaranteed that
1539 once it returns and the form is visible, it is actually on the screen on X11
1541 * ContainerControl.cs: Only send focus to the control if the top container
1542 is already focused. This is so that, when a form is first shown, all
1543 the enter/leave events are done first before any focus stuff comes in.
1544 If a control has no top container, there's an extra check on Control.Focus
1545 to make sure it gets focused in this particular case.
1547 * Control.cs: Force focus if the control is active but did not receive
1548 focus after being set as active.
1550 * MdiClient.cs: Dispose the form when closing
1552 * XplatUIX11.cs: When mapping and unmapping windows, make sure the call
1553 doesn't return until both WM_SHOWWINDOW and WM_ACTIVATE have come in
1554 if the window is a top Form.
1555 Reset all hwnd properties when the window has been destroyed so that
1556 we don't land in any codepaths that might try to do something with it.
1557 Added a bunch of debugging messages. If TRACE is defined, all X calls
1558 are logged through DebugHelper. Set a few missing EntryPoint attributes.
1560 2008-10-29 Mario Carrion <mcarrion@novell.com>
1562 * ListViewItem.cs: Control enabled to support Accessibility:
1563 - Internal events: UIATextChanged, UIASubItemTextChanged.
1564 - Internal event UIATextChanged in ListViewSubItem that triggers
1565 UIASubItemTextChanged.
1566 * ListView.cs: Control enabled to support Accessibility:
1567 - Internal events: UIACheckBoxesChanged, UIAMultiSelectChanged,
1568 UIAShowGroupsChanged, UIAViewChanged and UIALabelEditChanged.
1569 - Internal event UIACollectionChanged in ColumnHeaderCollection.
1570 - Internal event UIACollectionChanged in ListViewItemCollection.
1571 - Internal properties: UIAHeaderControl, UIAColumns, UIARows,
1572 UIADefaultListViewGroup, UIAHScrollBar and UIAVScrollBar.
1573 - Internal methods: UIAGetHeaderBounds.
1575 2008-10-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1577 * ScrollableControl.cs: Actually fire the 2.0 Scroll event when we get
1578 the event from the respective scrollbars.
1581 2008-10-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1583 * ComboBox.cs: Use the new CanNavigateAutoCompleteList property of the
1584 textbox to know whether any navigation key will be handled or not. If
1585 not, don't pass the message to the textbox, and use it here instead.
1586 * TextBox.cs: Define a new CanNavigateAutoCompleteList property -which
1587 is more precise- than the previous AutoCompleteMatches one.
1588 This should the keyboard navigation in ComboBox when using auto
1591 2008-10-24 Jonathan Pobst <monkey@jpobst.com>
1593 * ComboBox.cs: Fix item height calculation based off Font to match .Net.
1596 2008-10-24 Jonathan Pobst <monkey@jpobst.com>
1598 * ToolStripDropDownItem.cs: Call OnClick instead of base.OnClick so
1599 overridden methods will get called.
1600 * ToolStripItem.cs: Raise Click before MouseUp.
1601 * ToolStripSplitButton.cs: Fix up some bounding rectangles to take
1602 the item's location into account.
1605 2008-10-24 Neville Gao <nevillegao@gmail.com>
1607 * NumericUpDown.cs: Control enabled to support accessibility.
1608 [Fiexes bug #438135]
1610 2008-10-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1612 * TextBox.cs: Check that we actually have items no navigate, select
1613 text when pressing enter, as well as handle direction keys only if
1614 mode is different to Suggest or the suggest listbox is visible.
1616 2008-10-23 Andreia Gaita <shana@jitted.com>
1618 * WebBrowser.cs: Use the new ContentStream property to retrieve
1619 a stream encoded from the document content
1621 2008-10-23 Andreia Gaita <shana@jitted.com>
1625 HtmlWindow.cs: Fix GetHashcode for null objects
1627 2008-10-22 Andreia Gaita <shana@jitted.com>
1631 HtmlWindow.cs: Fix equality operators (fixes #428173)
1633 2008-10-21 Jonathan Pobst <monkey@jpobst.com>
1635 * XplatUIWin32.cs: Apply patch from John Mortlock that ensures
1636 mouse_state gets set during WM_MOUSEMOVE and WM_NCMOUSEMOVE.
1639 2008-10-21 Jonathan Pobst <monkey@jpobst.com>
1641 * ComboBox.cs: Fire SelectedIndexChanged when the user selects the
1642 same item with the mouse as was already selected.
1645 2008-10-21 Brad Taylor <brad@getcoded.net>
1647 * TextControl.cs: Break out code to get the visible range into
1648 GetVisibleLineIndexes to be used in UIA code.
1652 * TextBoxBase.cs: Add comments indicating that the method or property
1653 is used via reflection from UIA code.
1655 2008-10-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1657 * ListViewItem.cs: Match .net serialization.
1658 Fixes remaining part of #417520.
1660 2008-10-20 Jonathan Pobst <monkey@jpobst.com>
1662 * ToolStripProfessionalRenderer.cs: Don't paint over a set BackgroundImage.
1664 2008-10-20 Mario Carrion <mcarrion@novell.com>
1666 * ErrorProvider.cs, ToolTip.cs, HelpProvider.cs: UIA internal property
1667 added: UIAToolTipRectangle.
1669 2008-10-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1671 * ListViewItem.cs: When deserializing enumerate over the data, instead
1672 of accessing the data directly. This way we handle much better the
1673 cases were we lack information.
1676 2008-10-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1678 * ListView.cs: When removing an item from a main ListView.Items
1679 collection (and not a ListViewGroupCollection.Items one), remove it
1680 also from the group, as .net does. Patch by Mario Carrion (mario at
1684 2008-10-19 Andreia Gaita <avidigal@novell.com>
1686 * Form.cs: Forms that get closed without a handle being created are
1687 disposed in 2.0. Fixes failing FormTest.FormClose and
1688 FormTest.FormClose2 on windows.
1690 2008-10-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1692 * ListView.cs: If both scrollbars are visible, the vertical one
1693 shouldn't extend too far down.
1696 2008-10-17 Jonathan Pobst <monkey@jpobst.com>
1698 * DataGridView.cs: Add the ability to resize columns and rows with
1699 the mouse. Also support double-clicking to autoresize.
1700 * DataGridViewColumn.cs: Invalidate the grid if a column's width changes.
1701 * DataGridViewRow.cs: Invalidate the grid if a row's height changes.
1702 * DataGridViewTextBoxCell.cs: Add 1 to preferred width so ellipsis
1703 isn't shown on autoresize.
1706 2008-10-17 Mario Carrion <mcarrion@novell.com>
1708 * ComboBox.cs: Remove UIAListbox.
1710 2008-10-17 Mario Carrion <mcarrion@novell.com>
1712 * ComboBox.cs, ListBox.cs: Using added/removed item in
1713 OnUIACollectionChangedEvent instead of index.
1715 2008-10-17 Jonathan Pobst <monkey@jpobst.com>
1717 * ComboBox.cs: When we are sorting the items, if the item's type
1718 doesn't support IComparer, use a default one that compares based
1719 off the item's visible text.
1722 2008-10-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1724 * ColumnHeader.cs: Invalidate ListView.header_control when setting
1725 ImageIndex/ImageKey.
1726 * ThemeWin32Classic.cs: When drawing the column header, draw a image
1727 for the column if available, and make the required adjustments to the
1731 2008-10-17 Neville Gao <nevillegao@gmail.com>
1733 * StatusBarPanel.cs: Control enabled to support accessibility.
1736 2008-10-16 Jonathan Pobst <monkey@jpobst.com>
1738 * DataGridView.cs: When a user begins an edit in the 'new row',
1739 make that a real row, and add a new 'new row'. If the user
1740 cancels the edit, remove the new 'new row' and reset everything.
1741 Also, ensure UserAddedRow and UserRemovedRow events are raised.
1744 2008-10-16 Ivan N. Zlatev <contact@i-nz.net>
1746 * TableLayoutSettings.cs: Fix NREs when deserializing and
1747 panel is not yet set.
1750 2008-10-16 Jonathan Pobst <monkey@jpobst.com>
1752 * DataGridView.cs: Invalidate after deleting a row.
1754 2008-10-16 Jonathan Pobst <monkey@jpobst.com>
1756 * DataGridView.cs: Handle Enter and Escape keys.
1757 - Move call to EndEdit to MoveCurrentCell.
1758 - Remove call to EndEdit from navigation key routines.
1759 - Fire CellLeave and CellEnter.
1761 2008-10-16 Jonathan Pobst <monkey@jpobst.com>
1763 * DataGridViewCell.cs: Some fixes to the new cell border
1766 2008-10-16 Jonathan Pobst <monkey@jpobst.com>
1768 * ThemeEngine.cs: Enable visualstyles rendering by default
1769 (on platforms that support it).
1771 2008-10-15 Ivan N. Zlatev <contact@i-nz.net>
1773 * XplatUIX11.cs, XplatUICarbon.cs: Do not Timer.Tick before
1774 MainForm.OnLoad has completed unless DoEvents is forced.
1777 2008-10-15 Jonathan Pobst <monkey@jpobst.com>
1779 * ToolTip.cs: Ensure that Timer.Internal cannot be set to 0.
1781 2008-10-15 Jonathan Pobst <monkey@jpobst.com>
1783 * Control.cs: Make our implementation of DrawToBitmap better
1784 match WmPaint. [Fixes bug #435579]
1786 2008-10-14 Andreia Gaita <avidigal@novell.com>
1788 * WebBrowser.cs: Use DocumentElement as the document's root for the
1789 whole content. Should fix DocumentText and DocumentStream problems.
1791 2008-10-14 Jonathan Pobst <monkey@jpobst.com>
1793 * DataGridViewColumnCollection.cs: Remove calls to OnColumnAddedInternal,
1794 these will get called in DGV.OnCollectionChanged. Make sure
1795 OnCollectionChanged always gets called.
1796 * DataGridView.cs: Make a OnColumnRemovedInternal that removes the cells
1797 from every row. Call this in OnCollectionChanged.
1800 2008-10-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1802 * ComboBox.cs: WM_KEYDOWN and WM_KEYUP messages should be sent to the
1803 textbox if auto complete is used, since we need to navigate over it.
1804 And in this case don't pass this messages to the base impl. Also hide
1805 the auto complete list box when displaying the drop down listbox.
1806 * TextBox.cs: new internal members to expose some of the auto complete
1807 functionality to combobox.
1809 2008-10-13 Ivan N. Zlatev <contact@i-nz.net>
1811 * XplatUIX11.cs, XplatUICarbon.cs, Form.cs: Do not Timer.Tick before
1812 MainForm.OnLoad has completed.
1815 2008-10-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1817 * TextBox.cs: Apply an old-approved patch that adds autocomplete's
1818 Append support to this controls. We need it to apply new patches.
1820 2008-10-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1822 * Control.cs: When updating z order in child controls, send to back
1823 the implicit controls. Also, do it explicitly, instead of making
1824 GetAllControls return the implicit controls in a specific order, and
1825 thus avoid depending on that, which could change in the future.
1828 2008-10-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1830 * X11Dnd.cs: Try to call Application.DoEvents before returning in a
1831 call to StartDrag, since we must fire DragDrop/DragLeave *before*
1832 that, as .net does - instead of firing DragDrop/DragLeave *after* the
1833 call to Control.DoDragDrop has completed. This is needed since at the
1834 point of returning, we have sent related dnd ClientMessages, but we
1835 need to wait for them to fire the wmf respective ones.
1838 2008-10-09 Everaldo Canuto <ecanuto@novell.com>
1840 * LinkLabel.cs: Recreate link pieces when change Padding.
1842 2008-10-09 Everaldo Canuto <ecanuto@novell.com>
1844 * LinkLabel.cs: Take Padding into account when recreate link pieces.
1847 2008-10-08 Everaldo Canuto <ecanuto@novell.com>
1849 * Control.cs: Implement internal property PaddingClientRectangle, it will be
1850 useful for drawing controls that must take care about Padding property.
1852 2008-10-08 Jonathan Pobst <monkey@jpobst.com>
1854 * BindingSource.cs: Make item_type internal so we can access it in DGV.
1855 * DataGridView.cs: Add support for autogenerating columns from a
1858 2008-10-07 Jonathan Pobst <monkey@jpobst.com>
1860 * DataGridView.cs: Comment out an exception that is getting thrown
1861 too often currently.
1863 2008-10-07 Jonathan Pobst <monkey@jpobst.com>
1865 * DataGridView.cs: Always rebind to the datasource, as things may
1866 have changed in it that we aren't capturing yet.
1868 2008-10-07 Jonathan Pobst <monkey@jpobst.com>
1870 * DataGridViewTextBoxCell.cs: Don't default to VerticalCenter font
1871 drawing mode. If we are top aligned, give ourselves some top padding.
1873 2008-10-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1875 * X11Dnd.cs: When firing the default dnd enter/leave events, fire the
1876 events on the control under the mouse pointer, instead of firing them
1877 on the window generating the dnd operation. To achieve this re-use the
1878 code used to get the window under the pointer when getting MouseMove
1882 2008-10-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1884 * X11Dnd.cs: Don't check that that the window sending the dnd events
1885 is the owner of the selection. Although Gtk+ sets it that way, it's
1886 not a requirement of the XDnd protocol, and Qt doesn't seem to do it.
1887 So, just as Gtk+ does, we set our window sending the dnd events as the
1888 owner of the selection, but don't check it when receiving them. This
1889 should fix interoperability with Qt/Kde.
1892 2008-10-06 Jonathan Pobst <monkey@jpobst.com>
1894 * DataGridView.cs: Make sure we take the vertical scrollbar into
1895 account when autosizing columns.
1897 2008-10-06 Jonathan Pobst <monkey@jpobst.com>
1899 * DataGridView.cs: Handle sorting datetimes.
1901 2008-10-04 Ivan N. Zlatev <contact@i-nz.net>
1903 * ButtonBase.cs, Control.cs, Label.cs, PictureBox.cs, TabControl.cs,
1904 TextBoxBase.cs, ToolBar.cs, TrackBar.cs, TreeView.cs: Cleanup
1905 compilation warnings.
1907 2008-10-03 Ivan N. Zlatev <contact@i-nz.net>
1909 * RTF.cs, Application.cs, BindingContext.cs, BindingSource.cs,
1910 ContextMenuStrip.cs, Control.cs, Hwnd.cs, Line.cs, MaskedTextBox.cs,
1911 ProgressBar.cs, SaveFileDialog.cs, TextControl.cs, Theme.cs,
1912 ToolBar.cs, ToolStripItemCollection.cs, TrackBar.cs: Cleanup
1913 compilation warnings.
1915 2008-10-03 Ivan N. Zlatev <contact@i-nz.net>
1917 * DataGridView.cs, DataGridViewCell.cs,
1918 DataGridViewCellValidatingEventArgs.cs,
1919 DataGridViewComboBoxEditingControl.cs, DataGridViewHeaderCell.cs,
1920 DataGridViewRow.cs, DataGridViewRowHeaderCell.cs,
1921 DataGridViewTextBoxEditingControl.cs: Cleanup compilation warnings.
1923 2008-10-03 Ivan N. Zlatev <contact@i-nz.net>
1925 * HtmlElementEventArgs.cs, HtmlWindowCollection.cs:
1926 Cleanup compilation warnings.
1928 2008-10-03 Ivan N. Zlatev <contact@i-nz.net>
1930 * XplatUIWin32.cs: Cleanup compilation warnings.
1932 2008-10-03 Ivan N. Zlatev <contact@i-nz.net>
1934 * PropertyGrid.cs: Cleanup compilation warnings.
1936 2008-10-02 Jonathan Pobst <monkey@jpobst.com>
1938 * DataGridViewRow.cs: Only clear the row background if we
1939 are going to paint a new background.
1941 2008-10-02 Jonathan Pobst <monkey@jpobst.com>
1943 * DataGridViewCell.cs, DataGridViewColumnHeaderCell.cs,
1944 DataGridViewRowHeaderCell.cs: Remove PaintPartBorder and
1945 use PaintBorder instead.
1947 2008-10-02 Jonathan Pobst <monkey@jpobst.com>
1949 * DataGridView.cs: When CellBorderStyle is set, update the
1950 AdvancedCellBorderStyle to match.
1952 2008-10-02 Jonathan Pobst <monkey@jpobst.com>
1954 * DataGridViewCell.cs: Add helper methods to convert Alignment
1955 to TextFormatFlags and align rectangles.
1956 * DataGridViewTextBoxCell.cs: Use Alignment when painting text.
1957 * DataGridViewImageCell.cs: Use Alignment when painting the image.
1959 2008-10-02 Ivan N. Zlatev <contact@i-nz.net>
1961 * ToolTip.cs: Display tooltips only for controls on the active form.
1964 2008-10-02 Jonathan Pobst <monkey@jpobst.com>
1966 * DataGridView.cs: Make OnCellValueNeeded internal.
1967 * DataGridViewCell.cs: Raise the CellValueNeeded event so the
1968 user can supply their own value if they choose.
1970 2008-10-02 Jonathan Pobst <monkey@jpobst.com>
1972 * DataGridViewColumnHeaderCell.cs: Create a new style object
1973 so the DefaultCellStyle doesn't get changed.
1975 2008-10-02 Jonathan Pobst <monkey@jpobst.com>
1977 * ToolStripItem.cs: Check to make sure the owner is actually
1978 changing in InternalOwner before doing any work. Fixes some
1981 2008-10-01 Jonathan Pobst <monkey@jpobst.com>
1983 * DataGridViewColumnHeaderCell.cs: Correctly calculate style.
1984 * DataGridView.cs: Use a column header's inherited style instead
1985 of just using the default.
1987 2008-10-01 Jonathan Pobst <monkey@jpobst.com>
1989 * SplitContainer.cs: Raise SplitterMoved when the splitter is
1992 2008-10-01 Mario Carrion <mcarrion@novell.com>
1994 * ScrollBar.cs: Internal property added: UIAThumbPosition.
1996 2008-10-01 Jonathan Pobst <monkey@jpobst.com>
1998 * ToolStripOverflowButton.cs: Use InternalOwner instead of Owner.
2000 2008-10-01 Jonathan Pobst <monkey@jpobst.com>
2002 * ToolStripItem.cs: When the user sets Owner, we need to remove
2003 it from its previous owner and then add it to the new owner's
2004 item collection. Also, create InternalOwner, so we can set the owner
2005 that doesn't do this new stuff.
2006 * ToolStripItemCollection.cs: Use InternalOwner instead of Owner.
2008 2008-10-01 Jonathan Pobst <monkey@jpobst.com>
2010 * ToolStripItem.cs: When our parent changes, recalculate our text
2011 size, since we may be getting our Font from our parent. When our
2012 owner's Font changes, recalculate ourselves as we may be using
2015 2008-10-01 Everaldo Canuto <ecanuto@novell.com>
2017 * MenuAPI.cs: Select the first option of a popup when opening the popup via
2018 return key. [Fixes bug #413792].
2020 2008-10-01 Jonathan Pobst <monkey@jpobst.com>
2022 * ToolStripItem.cs: Make Font, BackColor, and ForeColor be
2023 ambient properties. (Get their value from their parents if
2024 values haven't been set.)
2026 2008-10-01 Jonathan Pobst <monkey@jpobst.com>
2028 * ToolStripSystemRenderer.cs: Call overridden methods' bases
2029 after our logic, so users can do painting by handling the events.
2030 Currently, we draw over any user painting.
2032 2008-10-01 Jonathan Pobst <monkey@jpobst.com>
2034 * ToolStripProfessionalRenderer.cs: Call overridden methods' bases
2035 after our logic, so users can do painting by handling the events.
2036 Currently, we draw over any user painting.
2038 2008-09-30 Everaldo Canuto <ecanuto@novell.com>
2040 * MenuAPI.cs: Prevent NRE when deactivate menu. Fixes #413636.
2042 2008-09-30 Jonathan Pobst <monkey@jpobst.com>
2044 * TreeNode.cs, TreeView.cs: Move logic that determines the node
2045 image to draw to TreeNode. Give Index/Keys put on the node
2046 precedence over the global one for the TreeView.
2048 2008-09-30 Jonathan Pobst <monkey@jpobst.com>
2050 * TreeNode.cs: Setting ImageIndex or ImageKey should reset the other.
2052 2008-09-29 Mario Carrion <mcarrion@novell.com>
2054 * ListBox.cs: Index fixed.
2056 2008-09-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2058 * TabControl.cs: When expanding the tab -because it's selected now-,
2059 using Right alignment, instead of adding some selected delta value to
2060 the X origin, substract it, so it gets a location adjacent to the panel,
2061 instead of be more separated.
2064 2008-09-29 Jonathan Pobst <monkey@jpobst.com>
2066 * MessageBox.cs: Use SystemIcons for graphics instead of keeping our
2069 2008-09-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2071 * X11Dnd.cs: source and related fields should be set to IntPtr.Zero,
2072 as well as the other static fields, to avoid using their previous
2073 values my mistake when handling the dnd events. This should avoid
2074 handling any status event after the drop has been finalized/cancelled.
2076 2008-09-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2078 * X11Dnd.cs: We have to send a dnd enter event as soon as we start the
2079 operation, instead of waiting until we get any movement - this will
2080 help us to have the data available in case no movement was detected
2081 and _still_ we have to fire DragEnter and DragLeave/DragDrop events.
2082 Finally add a windows.forms-only fallback to fire the mentioned events
2083 if no movement at all was detected, just like .net does.
2086 2008-09-27 Jonathan Pobst <monkey@jpobst.com>
2088 * ThemeWin32Classic.cs: When drawing a status bar panel, don't
2089 return early if the text is empty because the icon doesn't get
2090 drawn then. [Fixes bug #428113]
2092 2008-09-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2094 * FileDialog.cs: Implement basic support for sorting by columns in
2095 Details view. Patch by Eric Petit.
2098 2008-09-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2100 * ThemeWin32Classis.cs: When drawing gridlines take into account the
2101 case where ListView.ItemSize hasn't been computed, and provide a
2102 fallback as well. This prevents a division by 0.
2104 2008-09-24 Jonathan Pobst <monkey@jpobst.com>
2106 * ThemeVisualStyles.cs: Use ClientRectangle instead of Bounds to
2107 correctly draw tooltip backgrounds.
2109 2008-09-24 Jonathan Pobst <monkey@jpobst.com>
2111 * ImageList.cs: Change CopyTo implementation to ensure clones are
2112 created of our images.
2115 2008-09-24 Jonathan Pobst <monkey@jpobst.com>
2117 * Control.cs: When setting fonts, we need to ensure we change our
2118 reference to the new font object, even if it represents the same
2119 font as before. If we don't, the original font can get disposed
2120 and we will still try to use it.
2123 2008-09-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2125 * FileDialog.cs: Take into account Tile view when selecting the view
2128 2008-09-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2130 * ThemeWin32Classic.cs: When drawing gridlines for ListView don't use
2131 the item bounds, since we can't iterate over them in virtual mode.
2132 Also fix wrong calculation of the gridlines when using scrolling.
2135 2008-09-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2137 * XplatUIX11.cs: When handling EnterNotify events, take into account
2138 both the public and implicit controls when trying to detect the
2139 grab/ungrab process. This should fix ListView selection in Details
2142 2008-09-23 Jonathan Pobst <monkey@jpobst.com>
2144 * TreeView.cs: Redraw the whole node area when the selected node changes.
2145 Things like state images were not getting redrawn because the invalid
2146 rectangle was too small.
2149 2008-09-23 Mario Carrion <mcarrion@novell.com>
2151 * ListBox.cs: UIA Selection Pattern fully supported in ListBox control.
2154 2008-09-23 Jonathan Pobst <monkey@jpobst.com>
2156 * Form.cs: Do not set the Form's icon in the backend if showicon = false.
2159 2008-09-23 Jonathan Pobst <monkey@jpobst.com>
2161 * ThemeWin32Classic.cs: Allow tooltips to be multiline.
2164 2008-09-23 Jonathan Pobst <monkey@jpobst.com>
2166 * StatusBar.cs: Add tooltip support.
2169 2008-09-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2171 * ThemeWin32Classic.cs: Use StringAlignment.Center for the vertical
2172 alignments of sub items in Details view. Patch by John Mortlock (johnm at
2173 hlaustralia.com.au).
2176 2008-09-23 Neville Gao <nevillegao@gmail.com>
2178 * StatusBar.cs: Add UIA event in AddInternal () to support accessibility.
2181 2008-09-22 Jonathan Pobst <monkey@jpobst.com>
2183 * TextBoxBase.cs: Set Text to "" instead of null in Clear().
2186 2008-09-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2188 * ListView.cs: Don't do anything when EnsureVisible is called inside a
2189 BeginUpdate/EndUpdate block.
2192 2008-09-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2194 * ListViewItem.cs: The semantics for the public .ctor of
2195 ListViewSubItemCollection need us to already have a Text value for the
2196 item, which in our implementation have as available *after* adding the
2197 first sub item. So create an internal .ctor that satisfies our needs
2198 and let the public .ctor have the same semantics as .net.
2201 2008-09-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2203 * ListControl.cs: Changes in Formatting related values should call
2204 RefreshItems, as .net does.
2206 * ListBox.cs: In the respective overrides of RefreshItems calculate
2207 layout as well as refreshing - again, this is what .net does.
2210 2008-09-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2212 * ListBox.cs: In UpdateTopItem, don' call to XplatUI.ScrollWindow,
2213 since we are already doing that when we change the value of the
2214 scrollbar or force the call to ScrollWindow in the same method. This
2215 way we don't cause a Invalidate call for all the listbox bounds for
2216 methods calling UpdateTopItem with an already updated top item. This
2217 was happening specially calling EnsureVisible with already visible
2220 2008-09-18 Mike Gorse <mgorse@novell.com>
2222 * Application.cs, IKeyFilter.cs, X11Keyboard.cs, XplatUI.cs,
2223 XplatUIStructs.cs: Added KeyFilter
2226 2008-09-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2228 * RelatedPropertyManager.cs: The properties returned by
2229 GetItemProperties should be that ones of the *actual* object returned
2230 by the property, not the property type - this is very special when the
2231 property exposes a type, but the returned object actually is a child
2232 class and implements more functionality and properties.
2234 2008-09-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2236 * Binding.cs: Don't look for the property in the data source if the
2237 passed string is empty.
2239 2008-09-18 Ivan N. Zlatev <contact@i-nz.net>
2241 * XplatUIX11.cs: Comment out _NET_WM_WINDOW_TYPE_DIALOG in order to
2242 fix unused variable warnings.
2244 2008-09-18 Ivan N. Zlatev <contact@i-nz.net>
2246 * XplatUIX11.cs: Send WM_HELP when F1 is pressed.
2249 2008-09-18 Ivan N. Zlatev <contact@i-nz.net>
2252 - Do not set _NET_WM_WINDOW_TYPE_DIALOG for modal forms, because this
2253 leads to the window manager overriding our border style and zorder.
2254 - Allow the activation of non-modal forms, which are children of a
2258 2008-09-17 Ivan N. Zlatev <contact@i-nz.net>
2260 * XplatUIX11.cs, X11Structs.cs: For mapped windows SetTopMost should
2261 ask the window manager to do the work instead of changing the property
2265 2008-09-17 Everaldo Canuto <ecanuto@novell.com>
2267 * CurrencyManager.cs: Check for positon before call ChangeRecordState in
2268 AddNew to fix some navigation for empty datasets. [Fixes #323053]
2270 2008-09-17 Everaldo Canuto <ecanuto@novell.com>
2272 * FileDialog.cs: Remove OnPaint method on PopupButtonPanel and set
2273 InternalBorderStyle to BorderStyle.Fixed3D. It is the best way to get 3d
2274 border and fixes some drawing issues when resize form.
2276 2008-09-17 Everaldo Canuto <ecanuto@novell.com>
2278 * FileDialog.cs: Lots of layout fixes to mimic Win32. [Fixes #408752]
2280 * ThemeWin32Classic.cs: We don't need to reduce button size when it is
2283 2008-09-17 Ivan N. Zlatev <contact@i-nz.net>
2285 * TextBoxBase.cs: For standard textbox the scrollbars are always
2286 visible if Multiline is true.
2289 2008-05-12 Everaldo Canuto <ecanuto@novell.com>
2291 * DataGridTextBoxColumn.cs: Uncomment code accidentally commited in last
2294 2008-05-12 Everaldo Canuto <ecanuto@novell.com>
2296 [Fixes most od DBNull and HeadersVisible problems]
2299 - ShowingColumnHeaders removed because we dont need it, ColumnHeadersVisible
2300 returns the value that we need.
2301 - Fixed FromPixelToColumn method that return zero for first column and for
2302 row header cell, now it returns -1 for row header cell.
2303 - Fixed HitTest to check row header cell in column header area, it now
2304 returns HitTestType.None. [Fixes #322864]
2305 - Fixed the calculation of visible columns in UpdateVisibleColumn, now it
2306 checks for RowHeadersVisible and other things.
2307 - If an exception occurs when setting CurrentCell and user type 'yes' in
2308 message dialog, invalidade current and new cell and set setting_current_cell
2309 to false to prevent future errors. [Partially fixes #323050]
2311 * DataGridColumnStyle.cs: Don't call EndEdit after set property_descriptor
2312 value (SetColumnValueAtRow), it must be done by grid to properly show
2313 messages. [Fixes #323050]
2315 * ThemeWin32Classic.cs: Lots of fixes in DataGridPaintColumnHeaders to
2316 better draw column and row header. Also dont draw anything when column
2317 headers is not visible.
2319 2008-09-16 Jonathan Pobst <monkey@jpobst.com>
2321 * ThemeWin32Classic.cs: Hook ListViewItems into the ShowFocusCues
2324 2008-09-16 Jonathan Pobst <monkey@jpobst.com>
2326 * TreeView.cs: Don't start editing a node on right click, only
2329 2008-09-16 Jonathan Pobst <monkey@jpobst.com>
2331 * NativeWindow.cs: Reenable the ThreadExceptionDialog I accidentally
2332 disabled over a year ago.
2333 * Form.cs: Wrap calling Load in a try/catch because it can happen
2334 before the catch-all one in NativeWindow.
2337 2008-09-16 Jonathan Pobst <monkey@jpobst.com>
2339 * ToolStripDropDownMenu.cs: Calculate the connected area better
2340 to take into account when the drop down is not directly under the
2342 * ToolStripProfessionalRenderer.cs: Draw the whole unconnected area.
2344 2008-09-16 Mario Carrion <mcarrion@novell.com>
2346 * ScrollBar.cs: New event added: UIAValueChanged, generated when
2347 LargeChange, SmallChange, Maximum or Minimum values are changed.
2350 2008-09-16 Mario Carrion <mcarrion@novell.com>
2352 * ErrorProvider.cs: Component enabled to support accessibility.
2353 * Application.cs: Updated to Initialize UIA in ErrorProvider.
2356 2008-09-16 Jonathan Pobst <monkey@jpobst.com>
2358 * TextBoxBase.cs: Flag has_been_focused when SelectionStart is set
2359 so we don't highlight on first focus.
2362 2008-09-16 Jonathan Pobst <monkey@jpobst.com>
2364 * TextControl.cs: Correctly calculate the height of the area we
2365 need to invalidate when we have started scrolling and viewport_y
2366 is used. [Fixes bug #387608]
2368 2008-09-16 Jonathan Pobst <monkey@jpobst.com>
2370 * TextControl.cs: When getting the SelectedText, don't add in
2371 NewLine characters, as they are already contained in the lines.
2374 2008-09-16 Jonathan Pobst <monkey@jpobst.com>
2376 * TextBoxBase.cs: Replace the buggy Lines setter with one that
2377 simply concats the lines and send it to the Text setter.
2378 [Fixes issue #2 and #3 of 388115]
2380 2008-09-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2382 * Binding.cs: The default value of DataSourceNullValue should be
2383 Convert.DBNull actually. Also, the NullValue should only be used *if*
2384 itself is not null, and use the null/Convert.DBNull value instead.
2386 2008-09-15 Jonathan Pobst <monkey@jpobst.com>
2388 * TextControl.cs: Add a method to convert a string newline to the
2390 * TextBoxBase.cs: When the user hits enter, insert a native newline.
2391 [Fixes part 1 of bug #388115]
2393 2008-09-15 Mario Carrion <mcarrion@novell.com>
2395 * ToolTip.cs: UnPopup event set to internal to match public API.
2397 2008-09-15 Jonathan Pobst <monkey@jpobst.com>
2399 * TextBoxBase.cs: If the user is using Ctrl-Tab to move focus, we
2400 have to remove the Ctrl in order for the focus moving code to kick in.
2403 2008-09-15 Jonathan Pobst <monkey@jpobst.com>
2405 * CheckedListBox.cs: Return the real item index from Add. It may not be
2406 the last item if the list is sorted. The user can change the NewValue in
2407 the ItemCheck event, we need to use that value if so.
2408 * ListBox.cs: Return the real item index from a sorted Add.
2411 2008-09-15 Ivan N. Zlatev <contact@i-nz.net>
2413 * MimeIcon.cs: Add null checks in the GnomeHandler, because it might
2414 happen that the icons from the theme is missing or the particular size
2418 2008-09-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2420 * Binding.cs: When assigning null or DBNull depending on value/ref type,
2421 use IsValueType instead to get the precise desired value.
2424 2008-09-12 Jonathan Pobst <monkey@jpobst.com>
2426 * TreeNodeCollection.cs: When adding a new node to an opened node,
2427 we have to invalidate everything below the parent node because
2428 every node scoots down and we have to repaint them.
2431 2008-09-12 Jonathan Pobst <monkey@jpobst.com>
2433 * ThemeWin32Classic.cs: Take CheckBox and RadioButton's CheckAlign
2434 property into account when drawing.
2437 2008-09-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2439 * ListBox.cs: When calling Items.Clear(), call
2440 SelectedIndexCollection.ClearCore instead of normal Clear method, to
2441 not fire any Selected*Changed event - this is done to match .net and
2442 don't have invalid values when changing the DataSourceProperty.
2445 2008-09-12 Mario Carrion <mcarrion@novell.com>
2447 * HelpProvider.cs: Control enabled to support accessibility.
2448 * Application.cs: Updated to Initialize UIA in HelpProvider.
2451 2008-09-12 Jonathan Pobst <monkey@jpobst.com>
2453 * Form.cs: When we are showing a dialog box, if its owner is TopMost,
2454 make the dialog TopMost as well.
2457 2008-09-12 Jonathan Pobst <monkey@jpobst.com>
2459 * Win32DnD.cs, XplatUIWin32.cs: Applied patch from Andy Hume that handles
2460 clipboard data better.
2463 2008-09-12 Jonathan Pobst <monkey@jpobst.com>
2465 * TextBoxBase.cs: Applied patch from John Mortlock that ensures
2466 TextChanged and SelectionChanged events fire in the same order as .Net.
2469 2008-09-12 Jonathan Pobst <monkey@jpobst.com>
2471 * DataGridView.cs: When sorting a column, if it only contains numbers,
2472 do a numeric sort instead of a string sort.
2475 2008-09-12 Jonathan Pobst <monkey@jpobst.com>
2477 * TableLayoutSettings.cs, TableLayoutStyleCollection.cs: Guard
2478 against NRE's when the settings have a null panel.
2479 * TableLayoutPanel.cs: When setting the TableLayoutSettings, ensure
2483 2008-09-11 Mario Carrion <mcarrion@novell.com>
2485 * ToolTip.cs: Control enabled to support accessibility.
2486 * Application.cs: Updated to Initialize UIA in ToolTip.
2489 2008-09-11 Jonathan Pobst <monkey@jpobst.com>
2491 * Control.cs: Make the custom Enumerator internal to fix build.
2493 2008-09-11 Jonathan Pobst <monkey@jpobst.com>
2495 * DataGridViewCheckBoxCell.cs: If our content is clicked and we aren't
2496 already in edit mode, begin edit mode. Generally edit mode isn't
2497 started until the second click, but CheckBoxes are special.
2499 2008-09-11 Jonathan Pobst <monkey@jpobst.com>
2501 * ErrorProvider.cs: Never try to add our icons to ContainerControl,
2502 since that can be set to anything. Always add them to the Control's
2503 parent. [Fixes bug #416058]
2505 2008-09-11 Jonathan Pobst <monkey@jpobst.com>
2507 * ListView.cs: Use a custom enumerator for ListViewItemCollection
2508 so items can be deleted in a foreach.
2511 2008-09-11 Jonathan Pobst <monkey@jpobst.com>
2513 * DataGridViewRow.cs: Better implementation of GetPreferredHeight.
2514 Store the user set explicit height so that the row can be AutoSized
2515 and then when AutoSize is turned off, it can get its original size back.
2516 * DataGridView.cs: Use the Row's GetPreferredHeight instead of
2517 duplicating the logic. When setting AutoSizeRowsMode to None, reset
2518 rows' heights back to their explicit values.
2521 2008-09-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2523 * DateTimePicker.cs: When getting focus, select the checkbox if we are
2524 already showing it. Also, don't change its value when pressing space
2525 if the checkbox is not visible (ShowCheckBox as false). Finally, the
2526 checkbox should remain selected as long as Checked is false, and the
2527 other parts are disabled.
2530 2008-09-11 Jonathan Pobst <monkey@jpobst.com>
2532 * MessageBox.cs: Handle shortcut keys to dialog buttons.
2535 2008-09-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2537 * Binding.cs: When the value retrieved from the control property is
2538 null, don't return Convert.DBNull for Nullable instances, since they
2539 can *actually* get a null value.
2542 2008-09-10 Jonathan Pobst <monkey@jpobst.com>
2544 * Control.cs: Add an internal field to force doublebuffering regardless
2545 of what the public mechanisms are set to. This is because MS's native
2546 controls are doublebuffered even though their .Net bits are set to false.
2547 * ProgressBar.cs: Set force_double_buffer to true.
2550 2008-09-10 Jonathan Pobst <monkey@jpobst.com>
2552 * DataGridViewCheckBoxColumn.cs: Use the threestate constructor for
2554 * DataGridViewCheckBoxCell.cs: Add proper support for threestate.
2555 * DataGridViewCell.cs: Implement GetEditedFormattedValue for types
2556 without EditingControls, paint background selection for types without
2557 EditingControls, reset the EditingCellValueChanged flag when the
2558 cell's value is committed.
2559 * DataGridView.cs: Make BeginEdit and EndEdit work with cells that don't
2560 have EditingControls, remove a double call to a cell's OnContentClickInternal,
2561 don't do cell changing logic in OnMouseDown if the cell didn't change.
2564 2008-09-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2566 * DateTimePicker.cs: Fix the edition of am/pm specifier.
2568 2008-09-09 Jonathan Pobst <monkey@jpobst.com>
2570 * TextControl.cs: Add "&" to the list of valid characters in a URL.
2572 2008-09-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2574 * DateTimePicker.cs: Before incrementing or decrementing any part in
2575 the textbox, end any current edit. Also when ending the current edit
2576 use the editing_part_index field instead of the current selected
2577 value, since they can be out of synch, and we really need to work on
2578 the *real* current edit part. Finally when PartData.Selected changes,
2579 always try to end any ongoing edit.
2580 This should fix some small errors handling mouse navigation and
2581 increase/decrease operations.
2583 2008-09-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2585 * DateTimePicker.cs: 'hh' and 'HH' formats (12 and 24 hour formats
2586 respectively) should handled different, since the 12 hours format
2587 needs the value typed by the user to be adjusted depending on the
2588 a.m/p.m value, so it is preserved, and only changed when the value
2589 reaches the 12 value (when it changes from a.m to p.m).
2590 Fixes part of #416555.
2592 2008-09-08 Jonathan Pobst <monkey@jpobst.com>
2594 * ToolStrip.cs: Ensure MouseDown gets called for MenuStrip items.
2595 * ToolStripDropDownItem.cs: Don't fire events and such again if
2596 ShowDropDown is called on an already dropped down item.
2597 * ToolStripMenuItem.cs: Call ShowDropDown even if there aren't any
2598 subitems, the user may add some in the DropDownOpening event.
2601 2008-09-08 Jonathan Pobst <monkey@jpobst.com>
2603 * ComboBox.cs: Fix IOORE when setting SelectedItem to null.
2606 2008-09-08 Jonathan Pobst <monkey@jpobst.com>
2608 * MdiClient.cs: When looking for menustrips on a child form to merge,
2609 look inside ToolStripContainers.
2612 2008-09-08 Ivan N. Zlatev <contact@i-nz.net>
2614 * ErrorProvider.cs: Unbreak my previous commit.
2616 2008-09-08 Ivan N. Zlatev <contact@i-nz.net>
2618 * ErrorProvider.cs: Icon should always be 16x16.
2621 2008-09-07 Ivan N. Zlatev <contact@i-nz.net>
2623 * GridEntry.cs: Invalidate the child items cache when the property
2626 2008-09-07 Ivan N. Zlatev <contact@i-nz.net>
2628 * GridEntry.cs, PropertyGridView.cs:
2629 - Update the ReadOnly detection and rendering to finally hopefully
2630 match the one of MSFT.
2631 - Niceify and move the debug CWLS.
2634 2008-09-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2636 * ListView.cs: Don't call Invalidate at all from SetItemLocation,
2637 since we are already calling Invalidate for the entire control when
2638 needed - and call Redraw() when size changes, since we need to paint
2639 there by ourselved and not anymore from the mentioned method.
2640 This should improve the layout process. Also clean some not needed calls
2643 2008-09-05 Jonathan Pobst <monkey@jpobst.com>
2645 * MenuAPI.cs: Add a null check to the Alt-F4 code.
2648 2008-09-05 Jonathan Pobst <monkey@jpobst.com>
2650 * ThreadExceptionDialog.cs: Disable AutoScaling for this dialog.
2653 2008-09-04 Ivan N. Zlatev <contact@i-nz.net>
2655 * GridEntry.cs, CategoryGridEntry.cs, RootGridEntry.cs, PropertyGrid.cs,
2656 PropertyGridView.sc: Implement lazy/delayed propertygrid population
2657 on item expansion. Improves performance and fixes bug #417955.
2660 2008-09-05 Stephane Delcroix <sdelcroix@novell.com>
2662 * Control.cs: only check for OptimizedDoubleBuffer in NET_2_0.
2665 2008-09-04 Jonathan Pobst <monkey@jpobst.com>
2667 * TextControl.cs: Add "_" to the list of valid characters in a URL.
2670 2008-09-04 Jonathan Pobst <monkey@jpobst.com>
2672 * Control.cs: If using OptimizedDoubleBuffer, ensure the clip
2676 2008-09-04 Jonathan Pobst <monkey@jpobst.com>
2678 * FontDialog.cs: When storing our font size from the starting font,
2679 use SizeInPoints instead of Size in case Size is a different unit
2683 2008-09-04 Jonathan Pobst <monkey@jpobst.com>
2685 * FileDialog.cs: When enter is pressed on a SaveFileDialog and we
2686 don't use it for anything else, check if a directory is highlighted.
2687 If it is, navigate into it.
2690 2008-09-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2692 * Binding.cs: When acquiring a BindingManagerBase for the first time,
2693 check that the specified property actually exists in the data source,
2694 and throw an ArgumentException if that's not the case - this is only
2695 done for this scenario, since for later cases (such Position changes)
2696 we throw different exceptions (match .Net).
2698 2008-09-03 Ivan N. Zlatev <contact@i-nz.net>
2700 * ButtonBase.cs CheckBox.cs, Control.cs, FlowLayoutPanel.cs,
2701 FlowLayoutSettings.cs, GroupBox.cs, Label.cs, ListBox.cs,
2702 PropertyGrid.cs, RadioButton.cs, TableLayoutPanel.cs,
2703 TableLayoutSettings.cs, ToolStrip.cs, ToolStripDropDownButton.cs,
2704 ToolStripDropDownMenu.cs, ToolStripItem.cs, ToolStripSplitButton.cs,
2705 ToolStripStatusLabel.cs: Add missing PerformLayout calls to various
2709 2008-09-03 Neville Gao <nevillegao@gmail.com>
2711 * StatusBar.cs: Control enabled to support accessibility.
2714 2008-09-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2716 * Binding.cs: When connecting the event handler for the "Changed"
2717 event for the property, only do it for PropertyManager, and not for
2718 CurrencyManager - this is exactly what does .Net, totally ignoring any
2719 change in the property of the elements of a list.
2722 2008-09-02 Jonathan Pobst <monkey@jpobst.com>
2724 * XplatUIWin32.cs: Ensure we never send the WS_EX_MDICHILD flag
2725 to Windows when creating a window, as we fake MDI stuffs.
2728 2008-09-01 Ivan N. Zlatev <contact@i-nz.net>
2730 * TextBox.cs: Invalidate after UseSystemPasswordChar, so that the
2731 change takes effect.
2733 2008-08-24 Ivan N. Zlatev <contact@i-nz.net>
2735 * XplatUIX11.cs: Provide MouseButtons/State information to the XPlatUI.
2738 2008-08-27 Jonathan Pobst <monkey@jpobst.com>
2740 * DataGridView.cs: Raise CellContentClick event.
2741 [Fixes part of bug #420351]
2743 2008-08-27 Mario Carrion <mcarrion@novell.com>
2745 * ScrollBar.cs: Control enabled to support accessibility.
2748 2008-08-27 Mario Carrion <mcarrion@novell.com>
2750 * ComboBox.cs: Control enabled to support accessibility.
2753 2008-08-27 Mario Carrion <mcarrion@novell.com>
2755 * ListBox.cs: Control enabled to support accessibility.
2758 2008-08-27 Jonathan Pobst <monkey@jpobst.com>
2760 * ComboBox.cs: Don't suppress the TextChanged event when changing
2762 * ToolStripComboBox.cs: Listen to the ComboBox's TextChanged event
2766 2008-08-26 Jonathan Pobst <monkey@jpobst.com>
2768 * ErrorProvider.cs: Fix a regression NRE when setting properties
2769 for a control before it has a parent.
2772 2008-08-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2774 * Binding.cs: Use the BindingManagerBase.Current value to obtain
2775 connect the property "Changed" event, instead of using the data
2776 sources - this is useful when the property specifies actually a
2777 multiple objects path.
2778 Fixes part of #417973.
2780 2008-08-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2782 * RelatedPropertyManager.cs: PropertyManager instances associated to a
2783 nested properties should return not the properties of the data source
2784 itself, but the properties of the type of a specific property in the
2785 data source - match .net.
2787 2008-08-24 Gert Driesen <drieseng@users.sourceforge.net>
2789 * ListBox.cs (IntegerCollection): To avoid duplication, moved code for
2790 AddRange overloads into AddItems method, and added missing NULL check.
2791 Added extra argument check to RemoveAt for compatibility with MS.
2792 Modified IList implementation of Add, Contains, IndexOf and Remove to
2793 throw an ArgumentException if item is not an int. Modified IList.Insert
2794 to throw a NotSupportException instead of an Exception. Implemented
2796 (ObjectCollection): To avoid duplication, use AddItems method from
2797 AddRange overloads. On 1.0 profile, first perform NULL check on items
2800 2008-08-23 Gert Driesen <drieseng@users.sourceforge.net>
2802 * Control.cs: Do not modify bounds directly in .ctor's. Fixes bug
2805 2008-08-22 Atsushi Enomoto <atsushi@ximian.com>
2807 * X11Keyboard.cs : comment out some Console.WriteLine().
2809 2008-08-22 Atsushi Enomoto <atsushi@ximian.com>
2811 * X11Keyboard.cs : fixed wrong call to XOpenIM() which happened
2812 even if premises are not filled. Also XLookupString() was not
2813 receiving correct input, which blocked precise input handling
2816 2008-08-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2818 * ListView.cs: When calling OnCacheVirtualItems, cast to the right
2819 type of delegate, instead of EventHandler - this was causing a type
2820 cast exception in all apps handling this event.
2823 2008-08-20 Jonathan Pobst <monkey@jpobst.com>
2825 * ToolStripDropDownItem.cs: Always raise DropDownOpening in
2826 ShowDropDown to give the user a chance to dynamically add
2827 drop down items. [Step 1 of fixing bug #417877]
2829 2008-08-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2831 * X11Dnd.cs: Don't fire pseudo motion DragOver events if we haven't
2832 had any mouse motion since the call to StartDrag, to match the dnd
2834 Fixes part of #381876.
2836 2008-08-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2838 * XplatUIX11.cs: Only do the children control bounds check for EnterNotify
2839 if mode is NotifyUngrab, and let it flow if mode is NotifyNormal.
2840 Also, if we are actually moving into a different window after
2841 grabbing, generate a LeaveNotify event for the previous window, since
2842 we need to fire the leave events until the grab ends, not when
2843 actually moving outside of the control.
2845 2008-08-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2847 * XplatUIX11.cs: The check inside EnterNotify case to fire MouseEnter
2848 events only for client windows was wrong - we need to compare the
2849 client window against the window receiving the EnterNotify event, not
2850 against zero (since client window is never Zero, btw).
2851 This prevents having unnecessary handling of EnterNotify events for
2852 non-client windows when a gran begins.
2854 2008-08-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2856 * XplatUIX11.cs: Handling X ButtonPress events, we must *not* generate
2857 MouseMove/MotionNotify events at all (which should only happen after
2858 MouseUp/ButtonRelease, as .Net does).
2859 This avoids firing an extra and unnecessary MouseMove event just after
2860 every MouseDown event.
2862 2008-08-19 Jonathan Pobst <monkey@jpobst.com>
2864 * LinkLabel.cs: Always clear any previous links when LinkArea
2865 is set. [Fixes bug #410709]
2867 2008-08-19 Jonathan Pobst <monkey@jpobst.com>
2869 * ToolStripProfessionalRenderer.cs: Revert last change.
2870 * ProfessionalColorTable.cs: For Classic, use SystemColors.Window
2871 for ToolStripDropDownBackground.
2873 2008-08-19 Jonathan Pobst <monkey@jpobst.com>
2875 * ToolStripProfessionalRenderer.cs: Use Window color for the
2876 background of dropdowns to match .Net when the user is not
2877 using the default white. [Fixes bug #418108]
2879 2008-08-19 Atsushi Enomoto <atsushi@ximian.com>
2881 * XplatUIWin32.cs : SetTimer() used to set wrong window handle and
2882 it caused timer registration twice. Fixed bug #418107.
2884 2008-08-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2886 [Correction: This is the actual change to X11Dnd issue, not the
2887 previous one, which was actually a different issue.]
2889 * X11Dnd.cs: Increase the interval for the Timer, to not fire our
2890 pseudo motion HandleMouseOver method so aggresive. Also, don't call it
2891 when the pointer is actually in motion, but only when the pointer
2892 seems to stop (as .net does).
2893 Fixes part of #381876.
2896 2008-08-18 Jonathan Pobst <monkey@jpobst.com>
2898 * ListBox.cs: Fix CopyTo implementation.
2901 2008-08-18 Jonathan Pobst <monkey@jpobst.com>
2903 * ThemeWin32Classic.cs: Use ClientRectangle instead of Bounds when
2904 drawing a ComboBox's background. Fixes bad disabled rendering when
2905 the control is not at 0,0.
2908 2008-08-16 Ivan N. Zlatev <contact@i-nz.net>
2910 * GridEntry.cs: Leave the ICustomTypeDescriptor handling up to the
2911 ComponentModel layer, which will properly prioritize the attributes.
2912 Avoids wrong prioritization of duplicate attributes when retrieving
2913 the converter and editor.
2916 2008-08-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2918 * XplatUIX11.cs: Increase the interval for the Timer, to not fire our
2919 pseudo motion HandleMouseOver method so aggresive. Also, don't call it
2920 when the pointer is actually in motion, but only when the pointer
2921 seems to stop (as .net does).
2922 Fixes part of #381876.
2924 2008-08-15 Ivan N. Zlatev <contact@i-nz.net>
2926 * GridEntry.cs: Perform stricter check for the ParentEntry's
2927 PropertyDescriptor/PropertyOwner for the ICustomTypeDescriptor
2931 2008-08-14 Geoff Norton <gnorton@novell.com>
2933 * XplatUICarbon.cs: Properly implement PeekMessage and DoEvents.
2934 Fixes #396983. Properly fix ActiveWindow trackin and do not
2935 prematurely show POPUP windows.
2937 2008-08-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2939 * XplatUIX11.cs: Handle the obscured regions while scrolling using
2940 GraphicsExpose event, processing it just after we copy the scrolled
2941 area. This ensures that the next calls to ScrollWindow will copy
2942 regions already updated, and the scrolling will be smooth. Also remove
2943 the code that was trying to detect the obscured regions, since we are
2944 not using it anymore (too slow).
2946 2008-08-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2948 * ListBox.cs: Fix the -temporary- broken selection in ListBox for
2949 MultiExtended mode, by separating some logic between the ctrl/shift
2950 handling. Also ignore any MouseMove events generated together with
2951 MouseDown events - we are only interested in the real motion event.
2952 Fixes part of #414963.
2954 2008-08-08 Jonathan Pobst <monkey@jpobst.com>
2956 * DataGridViewCell.cs: Guard against an AOORE when checking if a cell
2957 is selected. [Fixes bug #414143]
2959 2008-08-07 Ivan N. Zlatev <contact@i-nz.net>
2961 * GridEntry.cs: Check if current property is a ICustomTypeDescriptor
2962 and not the parent one (the propertyowner). Fixes the behavior of
2963 GetConverter/GetEditor.
2966 2008-08-07 Ivan N. Zlatev <contact@i-nz.net>
2968 * PropertyGrid.cs: Refresh should also repopulate the PropertyGrid.
2969 [Fixes part of bug #415452]
2971 2008-08-05 Ivan N. Zlatev <contact@i-nz.net>
2973 * GridEntry.cs: ITypeDescriptorContext should be relative to the parent
2974 GridEntry, not the current.
2977 2008-08-04 Ivan N. Zlatev <contact@i-nz.net>
2979 * TextBoxBase.cs: De-internalize max_length field.
2980 * RichTextBox.cs: Use base.MaxLength - both TextBoxBase and RichTextBox
2981 share the same logic.
2984 2008-08-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2986 * ListBox.cs: Selection changes made in the MouseDown handler should
2987 use the *Core versions of selection in SelectedIndices collection,
2988 since the SelectedIndexChanged/SelectedValueChanged events are fired
2989 until we get a MouseUp event, and thus we need to separate the logic
2990 from the events, as done in the keyboard navigation. Also, fire those
2991 selection events from keyboard navigation in SelectionMode.None, even
2992 if we don't have a selection, as .Net does.
2994 2008-08-01 Jonathan Pobst <monkey@jpobst.com>
2996 * ToolStripButton.cs, ToolStripMenuItem.cs: Guard against a NRE my
2997 last change introduced when an item is clicked but isn't on a toolstrip.
2999 2008-07-31 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3001 * ListBindingHelper.cs: When looking for an object's properties, check
3002 if it implements ICustomTypeDescriptor, in which case we should
3003 resolve the propertu based on its GetProperties method, not in its
3004 actual properties. This is what .Net seems to do.
3005 Fixes a UsingWebBrowser problem during initialization.
3007 2008-07-31 Jonathan Pobst <monkey@jpobst.com>
3009 * ToolStrip.cs: Fix an NRE caused by clicking on a ToolStripButton
3010 sitting on a MenuStrip.
3012 2008-07-31 Jonathan Pobst <monkey@jpobst.com>
3014 * ToolStripButton.cs: If we "click" a top button on a menustrip that has
3015 no children with the keyboard, we need to release the keyboard capture.
3018 2008-07-31 Jonathan Pobst <monkey@jpobst.com>
3020 * ToolStripMenuItem.cs: If we "click" a top level menu item that has
3021 no children with the keyboard, we need to release the keyboard capture.
3024 2008-07-31 George Giolfan <georgegiolfan@yahoo.com>
3026 * ThemeVisualStyles.cs: Made ScrollBar rendering less strict so it supports
3027 the GTK+-based implementation of VisualStyles.
3028 * ThemeWin32Classic.cs: Exposed various layout values for use in the
3029 GTK+-based implementation of VisualStyles: ListViewGetHeaderHeight(Font),
3030 ListViewGetHeaderHeight(), ProgressBarChunkSpacing, ProgressBarGetChunkSize(),
3031 ProgressBarGetChunkSize(int), ProgressBarDefaultHeight,
3032 TrackBarGetThumbSize(), TrackBarVerticalTrackWidth,
3033 TrackBarHorizontalTrackHeight.
3035 2008-07-31 George Giolfan <georgegiolfan@yahoo.com>
3037 * TabControl.cs: Added hot style handling for the scroll buttons.
3038 right_slider_state, left_slider_state are now of type PushButtonState to
3039 allow for a hot state. Added tracking of the mouse button being held down
3040 on a tab page. Extracted HasHotElementStyles, RightScrollButtonArea,
3041 LeftScrollButtonArea.
3042 * Theme.cs, ThemeWin32Classic.cs: Removed TabControlGetLeftScrollRect,
3043 TabControlGetRightScrollRect.
3045 2008-07-30 Everaldo Canuto <ecanuto@novell.com>
3047 * MenuAPI.cs: Check for null GrabControl on ProcessMnemonic to prevent
3050 2008-07-30 Ivan N. Zlatev <contact@i-nz.net>
3052 * Form.cs: Ensure that we reset the shown_raised flag after
3053 the form is closed, so that we raise the show events the next
3054 time the form is shown.
3057 2008-07-30 Ivan N. Zlatev <contact@i-nz.net>
3059 * Form.cs: Ensure closing events are raised only once.
3062 2008-07-30 Ivan N. Zlatev <contact@i-nz.net>
3064 * X11Keyboard.cs: Refactor SendKeyboardInput to accept the keycode,
3065 so that we can successfully generate the LParam in-place instead of
3066 in KeyEvent, which isn't called for e.g. MainMenu. Fixes keyboard
3067 navigation for menus.
3069 2008-07-30 Everaldo Canuto <ecanuto@novell.com>
3071 * MenuAPI.cs: When montion don't set the keyboard navigation state to
3072 'navigating'. Fixes bug #411356.
3074 2008-07-30 Everaldo Canuto <ecanuto@novell.com>
3076 [Fixed remaining issues of #406773 (#1)]
3077 * MenuItem.cs: UpdateMenuItem added to track the shotcut changes.
3079 * MenuAPI.cs: Don't create tracker on TrackPopupMenu, it will be created in
3080 MainMenu (already done) and ContextMenu creation.
3082 * ContextMenu.cs: Create tracker on construction.
3084 2008-07-30 Everaldo Canuto <ecanuto@novell.com>
3086 * MenuAPI.cs: For ContextMenu set GrabControl on TrackPopupMenu, it make
3087 possible to instantiate MenuTracker without GrabControl.
3089 2008-07-30 Everaldo Canuto <ecanuto@novell.com>
3091 * MenuAPI.cs: On constructor dont set the GrabControl for non ContextMenu.
3093 * MainMenu.cs: Set GrabControl on SetForm using current form.
3095 2008-07-30 Everaldo Canuto <ecanuto@novell.com>
3097 * MenuAPI.cs: Chage grab_control to GrabControl and make it public.
3099 2008-07-30 Everaldo Canuto <ecanuto@novell.com>
3101 * MenuAPI.cs: Check if menu is activated before deactivate it in
3104 2008-07-30 Ivan N. Zlatev <contact@i-nz.net>
3106 * TableLayoutStyleCollection, TableLayoutStyle.cs, RowStyle.cs,
3108 Make the TableLayoutStyle owned by the the TableLayoutPanel, so that:
3109 - One style instance can only participate in a single style collection.
3110 - Styles can request their owner to layout whenever their properties
3112 [Fixes bugs #412583 and #412582]
3114 2008-07-29 Ivan N. Zlatev <contact@i-nz.net>
3116 * X11Keyboard.cs: Implement the generation of the LParam for
3117 all keyboard messages.
3120 2008-07-29 Jonathan Pobst <monkey@jpobst.com>
3122 * ListBox.cs: Don't let the user set TopIndex so high that it
3123 scrolls up far enough to show empty items.
3126 2008-07-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3128 * ThemeWin32Classic.cs: Actually commit the changes to fix #410880
3129 (I'm an idiot and forgot to commit the actual changes, as well as
3130 specify the right file, which is this one, not ListView.cs).
3132 2008-07-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3134 * ListView.cs: Don't draw ListViewSubItem instances from
3135 DrawListViewItem - we need to reuse the main item's drawing for the
3136 first sub item in case owner draw is true, but wants the system to
3137 do the default draw for the first sub item, without incurring in a
3141 2008-07-28 Jonathan Pobst <monkey@jpobst.com>
3143 * ToolStripButton.cs: Update Checked for CheckOnClick before
3144 raising the Click event. [Fixes bug #412505]
3146 2008-07-28 Ivan N. Zlatev <contact@i-nz.net>
3148 * Form.cs: Remove some seems leftover code for non-TopLevel's
3149 CreateParams, which is breaking ClientSize sizing, because it
3150 removes the border window styles.
3152 2008-07-27 Ivan N. Zlatev <contact@i-nz.net>
3154 * PropertyGrid.cs: Invalidate the View when the PropertyTab
3157 2008-07-25 Gert Driesen <drieseng@users.sourceforge.net>
3159 * WebBrowser.cs: Removed debug output.
3161 2008-07-25 Jonathan Pobst <monkey@jpobst.com>
3163 * FileDialog.cs: Apply patch from Ernesto to clean up some
3166 2008-07-25 Ivan N. Zlatev <contact@i-nz.net>
3168 * TableLayoutPanel.cs: Perform layout on GrowStyle change, so
3169 that the change has an immediate effect.
3171 2008-07-25 Ivan N. Zlatev <contact@i-nz.net>
3173 * ScrollableControl.cs: Update PerformLayout calls to include
3174 provide the name of the property that changed.
3176 2008-07-25 Ivan N. Zlatev <contact@i-nz.net>
3178 * TableLayoutPanel.cs: Draw relative to the DisplayRectangle
3179 location. Fixes drawing of border and cell borders if scrollable.
3181 2008-07-25 Ivan N. Zlatev <contact@i-nz.net>
3183 * ScrollableControl.cs: Perform layouting after the AutoScroll
3184 properties have changed, so that the changes have immediate
3188 2008-07-25 Ivan N. Zlatev <contact@i-nz.net>
3190 * XplatUIX11.cs: Non Client area is actually Client such in the
3191 case of NotifyIcon, so double check WholeWindow == ClientWindow
3192 when adding an expose.
3193 [Fixes bugs #324237 and #357022]
3195 2008-07-25 Ivan N. Zlatev <contact@i-nz.net>
3197 * TableLayoutPanel.cs: Invalidate after layouting, so that we
3198 repaint the cell borders.
3200 2008-07-25 Ivan N. Zlatev <contact@i-nz.net>
3202 * PropertyGridTextBox.cs: Stop filtering messages prior to our
3203 disposal to avoid unexpected ObjectDisposedExceptions.
3205 2008-07-24 Ivan N. Zlatev <contact@i-nz.net>
3207 * TableLayoutPanel.cs: Layout on Row/Column count change.
3209 2008-07-22 Gert Driesen <drieseng@users.sourceforge.net>
3211 * ListViewItem.cs: Changed binary serialization to match MS. Fixes
3213 * PictureBox.cs: When ImageLocation is set to null or an empty string,
3214 only set image to null if it was previously initialized from an url
3215 (or using ImageLocation). In ImageLocation, load specified image
3216 asynchronously if WaitOnLoad is false. Added support for local file
3217 paths to LoadAsync, and added missing argument check.
3219 2008-07-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3221 * DateTimePicker.cs:
3222 * ThemeWin32Classic.cs: Add a editing capability to DateTimePicker, in
3223 order to set the value as required (which means: when selection
3224 changes for a part being edited, and not before that if not needed).
3225 Also use an enum to describe which part are we using, and use the
3226 selection as a property in PartData, in order to notify the
3227 DateTimePicker owner that we need to end the current edit.
3230 2008-07-17 Ivan N. Zlatev <contact@i-nz.net>
3232 * PropertyGridTextBox.cs: Validation should be performed only if we
3233 are focused. We can lose focus for example if the Return key is used
3234 to set the entry and there is an error. When the message box is
3235 displayed we would have validate on click in the message box.
3237 2008-07-16 Ivan N. Zlatev <contact@i-nz.net>
3239 * GridEntry.cs: Checking for DesignerSerializaitonVisibility.Content
3240 in order to determine that we are expandable is wrong. There was a bug,
3241 now fixed, in TypeDescriptor that was causing the wrong converter to be
3242 returned which caused GetPropertiesSupported == false in most cases.
3245 2008-07-15 Jonathan Pobst <monkey@jpobst.com>
3247 * ImageList.cs: Fix ICollection.CopyTo implementation for
3248 ImageListCollection. [Fixes bug #409169]
3250 2008-07-14 Jonathan Pobst <monkey@jpobst.com>
3252 * MenuAPI.cs, ToolStripDropDown.cs: Use VirtualScreen instead of
3253 WorkingArea so that menus can appear on the second monitor
3254 when one has dual monitors.
3256 2008-07-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3258 * TextBox.cs: Auto complete stuff in WndProc should be 2.0 only.
3261 2008-07-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3263 * TextBox.cs: Implement navigation support for auto complete in
3264 TextBox, as well as refactor the code to show the auto complete window
3265 when receiving a WM_CHAR message, instead of TextChanged, since
3266 autocomplete itself should be able to set the Text a lot of times and
3267 finally only typing should show it, not changes from code.
3269 2008-07-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3271 * TabControl.cs: When expanding the selected tab, don't adjust the
3272 width if alignment is Right, since it has a different offset than 0,
3273 as opposed to the other alignments.
3274 Fixes the selected tab not being painted at all with alignment = Right
3275 and using FillToRight size mode.
3277 2008-07-14 Jonathan Pobst <monkey@jpobst.com>
3279 * TreeView.cs: Fix ToString to match MS. [Fixes bug #409029]
3281 2008-07-14 Jonathan Pobst <monkey@jpobst.com>
3283 * NumericUpDown.cs: Apply patch from Andy Hume to clamp out of range
3284 values from the textbox to the boundary values. [Fixes bug #409026]
3286 2008-07-14 Jonathan Pobst <monkey@jpobst.com>
3288 * TreeNodeCollection.cs: We were copying one too many elements when
3289 doing our array copy. Fixes a crash when RemoveAt is called.
3292 2008-07-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3294 * TabControl.cs: When doing the layout and need to call FillRow -using
3295 FillToRight size mode-, use the overload receiving a bool param
3296 indicating whether we need to do a vertical or horizontal calculation.
3297 Fixes part of #399583.
3299 2008-07-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3301 * TextBox.cs: When painting, use the value returned by
3302 GetLastVisibleItem instead of using the cached last_item field, since
3303 there could be a desynchronization between the layout and the
3304 painting. Fixes a AOOR exception in auto complete mode.
3306 2008-07-12 George Giolfan <georgegiolfan@yahoo.com>
3308 * ThemeVisualStyles.cs: Disabled when Application.VisualStyleState is
3309 NonClientAreaEnabled until our VisualStyles is modified to allow it.
3311 2008-07-12 Gert Driesen <drieseng@users.sourceforge.net>
3313 * TextBox.cs: Fixed NRE in LostFocus. Avoid unnecessary initialization.
3315 2008-07-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3317 * TextBox.cs: When focus is lost, if the auto complete listbox is
3320 2008-07-11 George Giolfan <georgegiolfan@yahoo.com>
3322 * InternalWindowManager.cs: HandleSizing: Implemented a better minimum
3323 tracking size for tool windows.
3324 * Theme.cs, ThemeWin32Classic.cs : Extracted
3325 ManagedWindowSpacingAfterLastTitleButton.
3327 2008-07-11 Jonathan Pobst <monkey@jpobst.com>
3329 * ThemeEngine.cs: Remove the clearlooks, nice, and old gtk themes.
3330 They are bit-rotted and have always been listed as "unsupported".
3332 2008-07-11 Jonathan Pobst <monkey@jpobst.com>
3334 * PictureBox.cs: Don't crash if ImageLocation is set to "" or null.
3336 2008-07-11 George Giolfan <georgegiolfan@yahoo.com>
3338 * ThemeVisualStyles.cs: Fixed minimized window height adjustment.
3340 2008-07-10 Jonathan Pobst <monkey@jpobst.com>
3342 * ListBox.cs: Make sure last_item_visible gets reset before we try
3343 to do a layout due to scrollbars appearing or disappearing.
3346 2008-07-10 Jonathan Pobst <monkey@jpobst.com>
3348 * XPlatUIWin32.cs: Change GetMenuOrigin to calculate borders better
3349 for different window themes. [Fixes bug #339140]
3351 2008-07-10 George Giolfan <georgegiolfan@yahoo.com>
3353 * ThemeWin32Classic.cs: Implemented minimized window border width properly,
3354 in ManagedWindowBorderWidth.
3356 2008-07-10 Jonathan Pobst <monkey@jpobst.com>
3358 * InternalWindowManager.cs: Change MouseMove to take a point, so
3359 we can use the same point later on.
3360 * MdiWindowManager.cs: Store point sent to MouseMove so we can
3361 later reset to it. On Windows, the Cursor.Position had already
3362 changed by the time we were resetting to it.
3365 2008-07-10 Jonathan Pobst <monkey@jpobst.com>
3367 * InternalWindowManager.cs: Ignore mouse actions on TitleButtons that
3369 * ThemeWin32Classic.cs: Disable or hide MinimizeBox/MaximizeBox if
3373 2008-07-10 Jonathan Pobst <monkey@jpobst.com>
3375 * MdiWindowManager.cs: Double-clicking on the title bar should not
3376 maximize a MDI form if MaximizeBox = false.
3378 2008-07-10 George Giolfan <georgegiolfan@yahoo.com>
3380 * ThemeVisualStyles.cs: Fixed a warning.
3382 2008-07-10 George Giolfan <georgegiolfan@yahoo.com>
3384 * ThemeVisualStyles.cs: Fixed warnings and formatted.
3386 2008-07-10 George Giolfan <georgegiolfan@yahoo.com>
3388 * ThemeVisualStyles.cs: Removed ManagedWindowGetMenuButtonSize. The base
3389 implementation produces a better result.
3391 2008-07-10 George Giolfan <georgegiolfan@yahoo.com>
3393 * ThemeVisualStyles.cs: Adjusted height and border rendering for minimized
3396 2008-07-10 George Giolfan <georgegiolfan@yahoo.com>
3398 * Application.cs: Added VisualStylesEnabled because XplatUI.ThemesEnabled
3399 cannot be used from the ThemeEngine constructor.
3400 * ThemeEngine.cs: Changed the XplatUI.ThemesEnabled check to
3401 Application.VisualStylesEnabled because it does not work on X11.
3403 2008-07-09 Jonathan Pobst <monkey@jpobst.com>
3405 * StatusBar.cs: Apply patch from Andy Hume to remove lazy instantiation
3406 that we did not always check for, as well as fixes to the IList
3407 implementations. [Fixes bug #402703]
3409 2008-07-09 George Giolfan <georgegiolfan@yahoo.com>
3411 * IDeviceContext.cs: Added Dispose.
3413 2008-07-09 George Giolfan <georgegiolfan@yahoo.com>
3415 * Control.cs: Added OnSizeInitializedOrChanged.
3416 * Form.cs: OnLoadInternal: Added a call to
3417 Control.OnSizeInitializedOrChanged.
3418 * InternalWindowManager.cs:
3419 * HandleTitleBarMouseMove: No longer invalidates the parent window.
3420 * DrawTitleButton: Extracted Theme.ManagedWindowDrawMenuButton.
3421 * TitleButton: Added Entered.
3422 * TitleButtons.MouseMove: Added handling of TitleButton.Entered.
3423 * MdiWindowManager.cs:
3424 * HandleTitleBarMouseMove: Now invalidates the parent window when a mouse
3425 move over the maximized title buttons causes a change.
3426 * IsActive: Can now be called before the window is added to a MDI parent.
3427 * Theme.cs: Added ManagedWindowTitleButtonHasHotElementStyle,
3428 ManagedWindowDrawMenuButton, ManagedWindowOnSizeInitializedOrChanged.
3429 * ThemeVisualStyles.cs: Implemented proper managed window rendering.
3430 * ThemeWin32Classic.cs:
3431 * Extracted ManagedWindowDrawTitleBarAndBorders, ManagedWindowDrawTitleButton.
3432 * DrawTitleButton takes a new form parameter.
3433 * Added ManagedWindowTitleButtonHasHotElementStyle,
3434 ManagedWindowDrawMenuButton, ManagedWindowOnSizeInitializedOrChanged.
3436 2008-07-09 George Giolfan <georgegiolfan@yahoo.com>
3438 * ThemeEngine.cs: ThemeVisualStyles is now selected if
3439 Application.EnableVisualStyles has been called, even if the current system
3440 configuration does not support rendering with Visual Styles.
3441 * ThemeVisualStyles.cs: Now falls back to ThemeWin32Classic when Visual
3442 Styles should not be used.
3444 2008-07-08 Jonathan Pobst <monkey@jpobst.com>
3446 * ComboBox.cs: PreferredHeight is not tied to ItemHeight. Fixes 3rd
3447 ComboBox in FormsTest.
3449 2008-07-08 Ivan N. Zlatev <contact@i-nz.net>
3451 * ThemeWin32Classic.cs: (ManagedWindowBorderWidth): width 3 is only
3452 for fixed toolwindows.
3454 2008-07-08 George Giolfan <georgegiolfan@yahoo.com>
3456 * Form.cs: SetBoundsCore: Added minimum size for minimized windows.
3458 2008-07-07 Ivan N. Zlatev <contact@i-nz.net>
3460 * Control.cs: CreateControl just returns if the Control is diposed
3461 and doesn't throw ObjectDisposedException.
3464 2008-07-07 Ivan N. Zlatev <contact@i-nz.net>
3466 * Control.cs: Do not create the control if the parent isn't created
3467 yet, e.g in the case of a parented form on which .Show is called.
3468 It will be created when the parent is made visible/created.
3471 2008-07-07 Ivan N. Zlatev <contact@i-nz.net>
3473 * Form.cs: Avoid recursively calling OnSizeChanged due to recursive
3474 WM_WINDOWPOSCHANGED caused by the layouting code on win32.
3477 2008-07-07 Ivan N. Zlatev <contact@i-nz.net>
3479 * Form.cs: When disposed set owner to null. Improves #402446.
3481 2008-07-07 Ivan N. Zlatev <contact@i-nz.net>
3483 * Form.cs, FlowLayoutPanel.cs: When calculating the PreferredSize
3484 use children's PreferredSize if in AutoSize mode and ExplicitBounds
3486 * Form.cs: Take the Padding into account for the PreferredSize.
3489 2008-07-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3491 * TabControl.cs: Since we don't support more than one direction in
3492 TabControl rows alignment (this is, the row becomes the
3493 bottom row when selected), make Direction return always 1. This way
3494 the layout doesn't get confused about a bad calculation.
3497 2008-07-07 Ivan N. Zlatev <contact@i-nz.net>
3499 * XplatUIX11.cs: Implement NC hit-testing for mouse down/up messages,
3500 so that the wparam is properly set.
3501 Fixes form moving in the test case in bug 402446.
3503 2008-07-07 Jonathan Pobst <monkey@jpobst.com>
3505 * FolderBrowserDialog.cs: If we can't find the SelectedPath, display
3506 the full tree instead of nothing. [Improves bug #406584]
3508 2008-07-07 George Giolfan <georgegiolfan@yahoo.com>
3510 * ThemeWin32Classic.cs: Adjusted minimized window painting.
3512 2008-07-07 George Giolfan <georgegiolfan@yahoo.com>
3514 * InternalWindowManager.cs: No longer draws decorations for maximized MDI
3517 2008-07-04 Jonathan Pobst <monkey@jpobst.com>
3519 * TreeView.cs: Add a null check when using CollapseAll on an
3520 empty tree. [Fixes bug #406449]
3522 2008-07-03 Jonathan Pobst <monkey@jpobst.com>
3524 * Form.cs: Make OnMenuComplete internal so we can call it.
3525 * MenuAPI.cs: Raise Form.MenuComplete when a menu item is clicked.
3528 2008-07-03 Jonathan Pobst <monkey@jpobst.com>
3530 * TabControl.cs: Handle Up and Down keys when TabControl is in
3534 2008-07-03 Jonathan Pobst <monkey@jpobst.com>
3536 * TabControl.cs: Invalidate when we remove a tab. Guard against
3537 an AOORE when trying to remove a tabpage that is not owned by the
3541 2008-07-03 Jonathan Pobst <monkey@jpobst.com>
3543 * ScrollBar.cs: Change the LargeChange calculation to be correct.
3544 Ensure we are using LargeChange instead of large_change so we our
3545 calculations are correct.
3548 2008-07-03 Jonathan Pobst <monkey@jpobst.com>
3550 * TableLayoutPanel.cs: When we change to a serialized TableLayoutSettings,
3551 we need to ensure the ColumnCount/RowCount gets set.
3554 2008-07-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3556 * ListBox.cs: When handling item navigation, if selection mode is
3557 None, call EnsureVisible, since scrolling is normally handled by
3558 selection, that we are not calling in this case.
3561 2008-07-02 Jonathan Pobst <monkey@jpobst.com>
3563 * ContainerControl.cs: Apply a patch from Ernesto Carrea that adds
3564 a null check to our focus walking code. [Fixes bug #394332]
3566 2008-07-02 Andy Hume <andyhume32 at yahoo dot co dot uk>
3568 * ComboBox.cs: Case missed in bug 379596 "Support item
3569 navigation by entering text": On _close_ drop-down select
3570 the first item matching the text in the textbox. [Fixes bug #397265]
3572 2008-07-02 Jonathan Pobst <monkey@jpobst.com>
3574 * DataGridView.cs: Fix a crash when sorting by column headers,
3575 mentioned in bug #404841. Remove some dead switch cases.
3577 2008-07-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3580 * TextBox.cs: Implement AutoComplete support for ComboBox, which just
3581 uses the AutoComplete support in the internal TextBox. Also TextBox
3582 can store a reference to ComboBox, in case AutoCompleteSource is set
3583 to ListItems (this is, ComboBox's items, and we don't want to pass an
3584 additional collection).
3586 2008-07-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3588 * ListViewItem.cs: Restore the initial value of bounds rect to
3589 Rectangle.Empty, and is this value for Layout detection in virtual
3590 mode. Fixes the tests.
3592 2008-06-30 Jonathan Pobst <monkey@jpobst.com>
3594 * XPlatUI.cs: Remove references to "new" X11 backend.
3596 2008-06-28 Ivan N. Zlatev <contact@i-nz.net>
3598 * Control.cs: Add an internal virtual OnDragDropEnd method
3599 to allow controls such as ListBox, which depend on a sequence
3600 of MouseDown+Move+End events, to handle the lack of a MouseUp
3601 when a DnD operation is started in MouseDown.
3602 * ListBox.cs: If a DnD operation is started in MouseDown we won't
3603 get a MouseUp, so reset our state whenever a DnD operation ends.
3605 2008-06-28 Ivan N. Zlatev <contact@i-nz.net>
3607 * PropertyGrid.cs: Clear the root griditem first thing when
3608 new object/s is/are selected. Fixes some rare cases where
3609 the View will get a paint request and won't know that the
3610 grid is in the process of repopulating.
3612 2008-06-27 Ivan N. Zlatev <contact@i-nz.net>
3614 * XplatUIX11.cs, InternalWindowManager.cs:
3615 If WS_EX_TOOLWINDOW is set in the CreateParams for a form MS
3616 doesn't automagically update the FormBorderStyle, so we must
3617 double check the CreateParams explicitly to determine if the
3618 window is a toolwindow.
3619 * ThemeWin32Classic.cs: Use InternalWindowManager.IsToolWindow
3620 instead of doing custom checks.
3622 Fixes toolwindows for the test case in bug #402446
3624 2008-06-27 Ivan N. Zlatev <contact@i-nz.net>
3626 * Control.cs: Visibility of the control should be false
3627 when the handle is destroyed in WmDestroy and not immediately
3628 in Dispose(). This is effectively where the disposing process
3629 ends even though the control is marked as Disposed immediately
3630 after calling Dispose().
3633 2008-06-27 Ivan N. Zlatev <contact@i-nz.net>
3635 * PropertyGridTextBox.cs: Start monitoring the mouse clicks
3636 when the textbox gets focus.
3639 2008-06-27 Ivan N. Zlatev <contact@i-nz.net>
3641 * PropertyGridTextBox.cs, PropertyGridView.cs:
3642 - Alt + Down should show the drop down editor.
3643 - Focus the editor when showing it
3646 2008-06-25 Jonathan Pobst <monkey@jpobst.com>
3648 * ThemeWin32Classic.cs: Fix from Andy for panel text for panels
3649 that are not the first panel.
3650 * StatusBar.cs: Ensure that the X coordinate of panels is always
3651 stored. Fix IList implementation of StatusBarPanelCollection to
3652 call the regular methods.
3653 [Fixes bug #403599, #402165]
3655 2008-06-23 Jonathan Pobst <monkey@jpobst.com>
3657 * ThemeWin32Classic.cs: Fix position calculation for centered
3658 text on status bar panels. [Fixes bug #402165]
3660 2008-06-22 Ivan N. Zlatev <contact@i-nz.net>
3662 * Splitter.cs: Fix Splitter to:
3663 - Work for arbitrary splitter size
3664 - Handle MinSize and MinExtra properly
3665 - Get rid of absolute positioning during drag and use relative
3666 - Multiple other fixes
3669 2008-06-22 Ivan N. Zlatev <contact@i-nz.net>
3671 * Cursor.cs: Show shouldn't hide the cursor.
3673 2008-06-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3675 * ListViewItem.cs: When invalidating, add some extra space to bounds,
3676 since focus rectangle and selection can add some space and need to
3677 take into account those small offsets - specially in Details view.
3678 * ListView.cs: Instead of invalidate using item Bounds directly, call
3679 item.Invalidate, to have the code centralized.
3680 Fixes focused/selection garbage when selecting and deselecting items
3683 2008-06-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3685 * ListViewItem.cs: Set bounds initially to -1 values - thus in virtual
3686 mode we can check whether we have to force a Layout or not, and can
3687 cache based on this, instead of avoiding caching all the the time. Do
3688 this check in GetBounds and TextBounds.
3689 Fixes selection in Details view.
3691 2008-06-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3693 * ListView.cs: Make HeaderControl internal, thus the theme engine can
3694 get its *real* height instead of trying to infere it.
3695 * ThemeWin32Classic.cs: When drawing gridlines, don't iterate over the items to
3696 get the position of them, since it's in general a bad idea in general,
3697 and because we can't do that in virtual mode. Instead get the first
3698 visible item as well as item height, and draw them.
3701 2008-06-20 Jonathan Pobst <monkey@jpobst.com>
3703 * ToolStripSplitButton.cs: We can't add in extra width if
3704 the button is not AutoSize. [Fixes bug #401279]
3706 2008-06-20 Ivan N. Zlatev <contact@i-nz.net>
3708 * PaddingConverter.cs:
3709 - Implement conversion to InstanceDescriptor
3710 - Handle "All" in CreateInstance by using the supplied
3711 ITypeDescriptorContext.
3712 [Fixes bugs #396076 and #396078]
3714 Patch by Andy Hume <andyhume32@yahoo.co.uk>
3715 Code contributed under MIT/X11 license.
3717 2008-06-19 Andy Hume <andyhume32 at yahoo dot co dot uk>
3719 * ComboBox.cs, ListControl.cs, Control.cs, Button.cs,
3721 Add Category attributes.
3722 Code is contributed under the MIT/X11 license.
3724 2008-06-18 Ivan N. Zlatev <contact@i-nz.net>
3727 - Fix a NRE when unparenting a form.
3728 - Do not recreate or destroy a parented form when
3731 2008-06-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3733 * TextBox.cs: Implement basic support for AutComplete with custom
3736 2008-06-18 Jonathan Pobst <monkey@jpobst.com>
3738 * ToolStripSplitButton.cs: Left and Top of ButtonBounds, SplitterBounds,
3739 DropDownButtonBounds should be from the origin of the button, not the
3740 ToolStrip. [Fixes bug #401279]
3742 2008-06-16 Sandy Armstrong <sanfordarmstrong@gmail.com>
3744 * X11DesktopColors.cs: Clear GTK_MODULES environment variable before
3745 running gtk_init_check. This prevents GAIL from loading
3746 unnecessarily, which was breaking UIA support. Initial fix for bug
3748 * Application.cs: Add UIA support to Winforms. New static constructor
3749 uses reflection to initialize UIAutomationWinforms assembly. Added
3750 PreRun event so UIA can initialize before the mainloop starts, and
3751 FormAdded event so UIA can provide a11y support for new Forms in an
3754 2008-06-16 Jonathan Pobst <monkey@jpobst.com>
3756 * DataGridView.cs: When binding to a dataset, subscribe to table
3757 and column change events. Unsubscribe to these when we clear bindings.
3760 2008-06-14 Everaldo Canuto <ecanuto@novell.com>
3762 [DataGrid drawing refactory]
3764 * DataGrid.cs: Fix the caption size, we need one pixel more for divider.
3766 * DataGridColumnStyle.cs: Removing PaintHeader code, the draw operations
3767 must be handle by Theme, now it call DataGridPaintColumnHeader.
3769 * DataGridTextBoxColumn.cs: Fix the textbox size. It must be one pixel less,
3770 test cases must be also fixed because it checks for wrong size.
3772 * ThemeWin32Classic.cs:
3773 - Draw the bottom line of grid caption.
3774 - Prevent to draw caption text when it is empty.
3775 - Use CPDrawBorder3D for 3D efects to simplify code.
3776 - Uses 3D (when not flat) to paint corner shared between row and column
3778 - Fix header drawing issues on win32, now borders are drawing.
3779 - Fix column header paint issues to mimic win32.
3780 - Adjust header drawing for last column, like first one it must be draw
3782 - Added DataGridPaintRowHeaderStar to draw star like .net does, it is
3784 - DataGridPaintColumnHeader created to draw column headers, it also
3785 paint stuff right on Win32.
3786 - Use DataGridPaintColumnHeader method instead of DataGridColumnStyle
3790 - DataGridPaintRowHeaderStar method added.
3791 - DataGridPaintColumnHeader method added.
3793 2008-06-13 Jonathan Pobst <monkey@jpobst.com>
3795 * Control.cs: Don't reset to Dock style layout if DockStyle is
3796 set to none. [Fixes bug #399316]
3798 2008-06-12 Everaldo Canuto <ecanuto@novell.com>
3800 * Win32DnD.cs: Fix the check for control not equal null.
3801 Fixes bug #341420 and #381886.
3803 2008-06-12 Jonathan Pobst <monkey@jpobst.com>
3805 * DataGridViewRowCollection.cs: Update the indexes of rows after
3806 one has been removed.
3807 * DataGridViewSelectedRowCollection.cs: Add internal clear method.
3808 * DataGridViewSelectedColumnCollection.cs: Add internal clear method.
3809 * DataGridView.cs: Add support for deleting rows via Delete key, deleting
3810 rows for the Rows collection, or deleting rows from the bound DataSet.
3812 2008-06-12 Jonathan Pobst <monkey@jpobst.com>
3814 * DataGridView.cs: Listen to a DataSet's changed event even
3815 when autogeneratecolumns is false. Refactor the changed event's
3816 add row code to use the same as the existing add row code.
3819 2008-06-11 Jonathan Pobst <monkey@jpobst.com>
3821 * TextBoxBase.cs: We need to call RaiseSelectionChanged pretty
3822 much any time the caret moves and there is text, not just when
3823 the selection changes as one would think.
3824 * RichTextBox.cs: Override RaiseSelectionChanged and fire
3828 2008-06-11 Jonathan Pobst <monkey@jpobst.com>
3830 * FontDialog.cs: Forward ListBox keyboard events to the ListBox
3831 instead of trying to duplicate the code.
3832 * ListBox.cs: Make method internal so we can send keyboard events.
3835 2008-06-11 Jonathan Pobst <monkey@jpobst.com>
3837 * TextBoxBase.cs: When pasting and checking the max length,
3838 subtract the selected text length (the text we will be replacing) from
3839 the document length.
3840 * TextControl.cs: Ensure every character insertion is reflected in
3841 charcount, so max length will work properly.
3844 2008-06-11 Jonathan Pobst <monkey@jpobst.com>
3846 * ListBox.cs: Ensure scrollbars are updated when a single
3847 column listbox with an already set top-index is created.
3850 2008-06-11 Jonathan Pobst <monkey@jpobst.com>
3852 * FontDialog.cs: Typing in the font/style textboxes should search
3853 the list boxes case-insensitively. [Fixes bug #398343]
3855 2008-06-11 George Giolfan <georgegiolfan@yahoo.com>
3857 * ThemeWin32Classic.cs: Managed window title bar layout now uses actual
3858 widths of icon and buttons instead of hard coded values.
3860 2008-06-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3862 * ListBox.cs: When SelectionMode is None, clicking an item should move focus
3863 as well as generating a SelectedIndexChanged event, just like .Net does
3867 2008-06-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3869 * ListBox.cs: When navigating items visually, use FocusedItem as the
3870 reference point instead of SelectedIndex, since even in
3871 SelectionMode.None we need to support navigation, and in that case we
3872 just can't use SelectedIndex.
3873 Fixes part of #398345.
3875 2008-06-10 Jonathan Pobst <monkey@jpobst.com>
3877 * Control.cs: Make a SetBoundsInternal that avoids the new
3879 * ComboBox.cs, Form.cs, ListBox.cs, ScrollableControl.cs: Use
3880 SetBoundsInternal instead of SetBoundsCoreInternal.
3882 2008-06-10 Ivan N. Zlatev <contact@i-nz.net>
3884 * ScrollableControl.cs: Use SetBoundsCoreInternal instead of
3885 SetBounds for the scrollbars.
3887 2008-06-10 Andreia Gaita <avidigal@novell.com>
3889 * HtmlDocument.cs: Implement RightToLeft, ContextMenuShowing,
3890 FocusingEvent, LosingFocusEvent, OnMouseDown, OnMouseLeave,
3891 OnMouseMove, OnMouseOver, OnMouseUp
3892 * HtmlElement.cs: Optimize InsertBefore. Implement RemoveFocus,
3893 ScrollIntoView, Focusing, GotFocus, LosingFocus, LostFocus.
3894 * HtmlElementCollection.cs, HtmlWindowCollection.cs: Keep a reference
3895 to the WebControl object to pass to new collection objects
3896 * HtmlHistory.cs: Implement support for individual window histories.
3897 * HtmlWindow.cs: Implement History, Position, Size, WindowFrameElement,
3898 AttachEventHandler, DetachEventHandler, RemoveFocus, Error,
3899 GotFocus, LostFocus, OnLoad, OnUnload
3900 * WebBrowser.cs: Implement EncryptionLevel, ScrollBarsEnabled,
3902 * WebBrowserBase.cs: Implement Cursor, Enabled, UseWaitCursor, Add
3903 security level changes and context menu event support.
3905 2008-06-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3907 * ComboBox.cs: Pressing Enter should close the dropdown listbox, just
3908 as happens with Esc, patch my Andy Hume.
3911 2008-06-10 George Giolfan <georgegiolfan@yahoo.com>
3913 * MdiWindowManager.cs: DrawMaximizedButtons now uses
3914 ManagedWindowGetMenuButtonSize instead of ManagedWindowButtonSize.
3915 * Theme.cs: Made MenuButtonSize platform dependent. Added
3916 ManagedWindowButtonSize.
3917 * ThemeWin32Classic.cs: Added ManagedWindowGetMenuButtonSize.
3918 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added MenuButtonSize.
3920 2008-06-10 George Giolfan <georgegiolfan@yahoo.com>
3922 * DateTimePicker.cs, Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs:
3923 Added support for rendering with VisualStyles.
3925 2008-06-10 George Giolfan <georgegiolfan@yahoo.com>
3927 * ComboBox.cs, Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs: Added
3928 support for rendering the border with VisualStyles.
3930 2008-06-10 George Giolfan <georgegiolfan@yahoo.com>
3932 * InternalWindowManager.cs: Added ShowIcon. Fixed IconRectangleContains when
3933 the icon is not shown.
3934 * ThemeWin32Classic.cs: Now uses InternalWindowManager.ShowIcon instead of
3937 2008-06-10 George Giolfan <georgegiolfan@yahoo.com>
3939 * InternalWindowManager.cs: Draw minimized windows even if they don't have
3942 2008-06-09 Jonathan Pobst <monkey@jpobst.com>
3944 * ComboBox.cs, ListBox.cs: Use SetBoundsInternalCore instead of SetBounds.
3946 2008-06-09 Jonathan Pobst <monkey@jpobst.com>
3948 * Control.cs: Fill in the defaults for unspecified bounds in SetBounds.
3951 2008-06-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3953 * ComboBox.cs: When snaping height -because of IntegralHeight set to
3954 true- with ComboBoxStyle.Simple, set the height to PreferredHeight
3955 if the requested height leaves the listbox area with *less* than the
3956 required are to see one item. We were setting it to PreferredHeight
3957 even for values matching the height for a single item.
3960 2008-06-06 Jonathan Pobst <monkey@jpobst.com>
3962 * DataGridViewCell.cs: Simplify GetInheritedStyle by using ApplyStyle.
3964 2008-06-06 Jonathan Pobst <monkey@jpobst.com>
3966 * DataGridViewCell.cs: Use property instead of field.
3968 2008-06-06 George Giolfan <georgegiolfan@yahoo.com>
3970 * InternalWindowManager.cs, ThemeWin32Classic.cs: Removed useless Form.Icon
3973 2008-06-06 George Giolfan <georgegiolfan@yahoo.com>
3975 * Theme.cs: Added #region around the managed window code. Made the managed
3976 window methods abstract.
3977 * ThemeWin32Classic.cs: Added #region around the managed window code.
3979 2008-06-06 George Giolfan <georgegiolfan@yahoo.com>
3981 * InternalWindowManager.cs: Now only calls Theme.DrawManagedWindowDecorations
3983 * ThemeWin32Classic.cs: Removed HasBorders checks in
3984 DrawManagedWindowDecorations.
3986 2008-06-06 George Giolfan <georgegiolfan@yahoo.com>
3988 * InternalWindowManager.cs, Theme.cs, ThemeWin32Classic.cs: Refactored:
3989 Extracted ManagedWindowGetTitleBarIconArea.
3991 2008-06-05 Jonathan Pobst <monkey@jpobst.com>
3993 * DataGridViewCellStyle.cs: Don't clone the font.
3995 2008-06-05 Jonathan Pobst <monkey@jpobst.com>
3997 * DataGridViewCell.cs: Ensure we don't pass null to GetConverter.
3999 2008-06-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4001 * XplatUIX1..cs: Use IntPtr size instead of int, as wee need to work
4002 also on 64 bit machinges. Fixes the BadWindow errors while scrolling
4005 2008-06-05 Jonathan Pobst <monkey@jpobst.com>
4007 * DataGridViewCell.cs: Correctly get converters for FormattedValue.
4008 Use Format/FormatProvider before trying converters.
4009 * DataGridViewCellStyle.cs: ApplyStyle should only apply things that
4010 are 'set'. Change constructor to not use ApplyStyle since it wants
4011 everything applied. Clone the Font.
4012 * DataGridViewRowHeaderCell.cs: Start with DefaultCellStyle and
4013 ApplyStyle the rest.
4015 2008-06-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4017 * ListView.cs: We need to calculate the scrollbars even if the handle
4018 hasn't been created - this is needed when methods using scrollbars
4019 info, such EnsureVisible, are called before control has been created.
4022 2008-06-05 George Giolfan <georgegiolfan@yahoo.com>
4024 * ThemeVisualStyles.cs: ScrollBar is now rendered with the VisualStyles API
4025 only if the elements are defined.
4027 2008-06-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4029 * ComboBox.cs: I'm an idiiot - forgot to commit the last ComboBox
4030 section. Also, when setting bounds, snap height as well as save the
4031 requested height if Dock has any value affecting the height: Left,
4032 Right and Bottom - important if using IntegralHeight as true.
4034 2008-06-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4036 * ComboBox.cs: When calling UpdateComboBoxBounds, adjust the height
4037 passed to SetBounds to reflect the new adjusted height (Integral-wise),
4038 instead of doing that only in our SetBoundsCore override, since the
4039 bounds cached can be the same as saved one and we could not get the
4043 2008-06-04 George Giolfan <georgegiolfan@yahoo.com>
4045 * Theme.cs: Made ToolWindowCaptionButtonSize platform dependent.
4046 * XplatUI.cs: Added ToolWindowCaptionButtonSize.
4047 * XplatUIDriver.cs: Changed SmallCaptionButtonSize to 15,15. Added
4048 ToolWindowCaptionButtonSize.
4049 * XplatUIWin32.cs: Added ToolWindowCaptionButtonSize.
4051 2008-06-04 George Giolfan <georgegiolfan@yahoo.com>
4053 * MdiWindowManager.cs: Now uses SystemInformation.DoubleClickTime instead of
4055 * Theme.cs: Made DoubleClickTime plaform dependent.
4057 2008-06-04 George Giolfan <georgegiolfan@yahoo.com>
4059 * Theme.cs: Made ToolWindowCaptionHeight platform dependent.
4060 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added
4061 ToolWindowCaptionHeight.
4063 2008-06-04 George Giolfan <georgegiolfan@yahoo.com>
4065 * InternalWindowManager.cs: The adjustment to ensure positive client area
4066 sizes is now platform dependent (disabled on Windows).
4067 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added
4068 RequiresPositiveClientAreaSize.
4070 2008-06-04 George Giolfan <georgegiolfan@yahoo.com>
4072 * Form.cs: Fixed null handling in Icon (see SettingIconToNull in the tests).
4074 2008-06-04 George Giolfan <georgegiolfan@yahoo.com>
4076 * InternalWindowManager.cs: Changed IconicSize to use
4077 SystemInformation.MinimizedWindowSize.
4078 * XplatUICarbon.cs, XplatUIX11.cs: Removed MinimizedWindowSize.
4079 * XplatUIDriver.cs: Changed MinimizedWindowSize to provide a default value.
4081 2008-06-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4083 * ComboBox.cs: If the combobox is anchored both on top and bottom,
4084 adjust height if IntegralHeight is true when calling SetBoundsCore (as
4085 likely the height was modified even if Height wasn't specified in
4086 BoundsSpecified parameter).
4087 Fixes part of #396297.
4089 2008-06-04 George Giolfan <georgegiolfan@yahoo.com>
4091 * InternalWindowsManager.cs: Changed minimum window size while resizing to
4092 SystemInformation.MinWindowTrackSize.
4093 * XplatUICarbon.cs, XplatUIX11.cs: Removed MinWindowTrackSize.
4094 * XplatUIDriver.cs: Changed MinWindowTrackSize to provide a default value.
4096 2008-06-03 George Giolfan <georgegiolfan@yahoo.com>
4098 * MenuItem.cs: Fixed Dispose.
4100 2008-06-03 George Giolfan <georgegiolfan@yahoo.com>
4102 * ColumnHeader.cs: CalcColumnHeader now uses the theme to get the height.
4103 * DataGridView.cs: * EnableHeadersVisualStyles: Fixed default value.
4104 EnteredHeaderCell, PressedHeaderCell: Added.
4105 * DataGridViewCell.cs: Refactored: Extracted GetBorderPen.
4106 * DataGridViewColumnHeaderCell.cs, DataGridViewRowHeaderCell.cs: Gave the
4107 theme a chance to override default painting.
4108 * ListView.cs: Added EnteredColumnHeader. Refactored: Extracted
4109 GetColumnHeaderInvalidateArea, Invalidate(ColumnHeader).
4110 * Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs: Added members for
4111 ListView and DataGridView header rendering.
4113 2008-06-03 Ivan N. Zlatev <contact@i-nz.net>
4115 * RichTextBox.cs: GetPositionFromCharIndex should return the
4116 visual position of the character relative to the viewport.
4117 [Fixes part of bug #396664]
4119 2008-06-03 Ivan N. Zlatev <contact@i-nz.net>
4121 * GridEntry.cs: Make HasCustomEditor check for EditStyle != None
4122 and not just for the existance of an UITypeEditor. In some cases
4123 there is an editor associated just to do PaintValue, but which
4124 doesn't actually support editing.
4127 2008-05-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4129 * ComboBox.cs: page_size as well as vscrollbar.LargeChange should be 1
4130 if needed, instead of 0 - this should help us in the corner case where
4131 we have more than one item but we are only partially showing 1 item.
4132 Fixes part of #374713.
4134 2008-05-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4136 * XplatUiX11.cs: When scrolling and detecting the obscured areas in a
4137 control, return immediately if the any parent control's handle hasn't
4138 been created or isn't visible, as well as avoiding creating the parent
4139 Form if the handle hasn't been previously created.
4142 2008-06-02 Jonathan Pobst <monkey@jpobst.com>
4144 * TableLayoutPanel.cs: Use border sizes when calculating the
4145 panel's preferred size. [Fixes part of bug #396433]
4147 2008-06-02 Ivan N. Zlatev <contact@i-nz.net>
4149 * SplitContainer.cs:
4150 - Fix SplitterDistance to update only if needed.
4151 - Make it force min and max validation.
4152 - Handle properly mouse moves outside the resizeable area.
4155 2008-06-02 Andreia Gaita <avidigal@novell.com>
4157 * WebBrowserBase.cs: Implement support for ScriptErrorsSuppressed
4158 (which also suppresses all popup dialogs). Throw NotSupported
4159 exceptions for activex getters/setters.
4160 * WebBrowser.cs: Implement DocumentStream, DocumentType, IsBusy,
4161 IsOffline, ReadyState, ScriptErrorsSuppressed, ScrollbarsEnabled,
4162 StatusText, Version, GoSearch
4163 * HtmlDocument.cs: Add DocType support
4165 2008-06-02 Andy Hume <andyhume32@yahoo.co.uk>
4167 * TextBox.cs: Implement TextBoxAutoCompleteSourceConverter.
4170 2008-06-02 Ivan N. Zlatev <contact@i-nz.net>
4172 * GridEntry.cs: Pass the ITypeDescriptorContext everywhere.
4174 2008-06-02 Jonathan Pobst <monkey@jpobst.com>
4176 * TableLayoutPanel.cs: When calculating preferred size, use the
4177 actual number of columns and rows, not what the user set them to.
4180 2008-06-02 George Giolfan <georgegiolfan@yahoo.com>
4182 * Form.cs: Enabled managed handling of tool window MDI children. Fixes bug
4185 2008-06-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4187 * XplatUIX11.cs: When detecting areas obscured in a control by other
4188 toplevel windows while scrolling, return if the control hasn't a
4192 2008-05-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4194 * XplatUIX11.cs: Properly detect the visible area of a control being
4195 scrolled (obscured by other winforms controls and any X toplevel
4196 windows), to mark as invalid the requested area to be scrolled that
4197 isn't visible and thus can't be copied.
4200 2008-05-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4202 * ListBox.cs: Compute the precise amount to vertically scroll when
4203 using DrawMode.OwnerDrawVariable.
4204 Patch by jkeymer (j.keymer@gmx.net).
4206 2008-05-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4208 * ComboBox.cs: Use ListBox-like scrollbar values In ComboListBox
4209 to avoid setting an invalid value for the verticall scrollbar
4210 when navigating items. And, duh, also remove my silly debug messages
4211 from previous commits.
4214 2008-05-30 Ivan N. Zlatev <contact@i-nz.net>
4216 * FlatButtonAppearance.cs: Make FlatButtonAppearanceConverter exandable and
4217 make it MS compatible.
4219 2008-05-30 Ivan N. Zlatev <contact@i-nz.net>
4221 * PropertyGrid.cs, PropertyGridView.cs, GridEntry.cs:
4222 - Allow the editing of entries even if their parent is read-only.
4223 - Do not render expandable properties read-only.
4224 - Refactor expansion checks form PropertyGrid into PropertyGrid.
4226 2008-05-30 George Giolfan <georgegiolfan@yahoo.com>
4228 * ScrollBar.cs, Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs: Added
4229 support for the hover style.
4231 2008-05-29 Andreia Gaita <avidigal@novell.com>
4233 * ContainerControl.cs: Check for null dead-end when traversing the tree
4236 [Fixes #394332, patch by Ernesto Carrea]
4238 2008-05-29 Geoff Norton <gnorton@novell.com>
4240 * XplatUICarbon.cs: Fix a culture-dependent conversion to be the
4241 constant that it is. Fixes #393981
4243 2008-05-29 Jonathan Pobst <monkey@jpobst.com>
4245 * Form.cs: Add a MonoTODO to the AutoScaleBaseSize setter explaining
4246 that the user probably doesn't want to set this.
4248 2008-05-29 Jonathan Pobst <monkey@jpobst.com>
4250 * ThemeWin32Classic.cs: Don't let the text size be bigger than
4251 the control size for CheckBox/RadioBox.
4252 [Fixes part of bug #394645]
4254 2008-05-29 Ivan N. Zlatev <contact@i-nz.net>
4256 * PropertyGrid.cs: Update the state of the sorting buttons in
4257 the toolbar if PropertySort is set programatically.
4259 2008-05-29 Ivan N. Zlatev <contact@i-nz.net>
4261 * GridItemCollection.cs: Add multiple items with conflicting names
4262 support and also preserve name ordering.
4265 2008-05-29 Ivan N. Zlatev <contact@i-nz.net>
4267 * GridItemCollection.cs: Revert my multiple items with same
4270 2008-05-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4272 * ScrollBar.cs: Scrollbars should only react to left-clicks, not right
4274 Fixes part of #393908.
4276 2008-05-28 Jonathan Pobst <monkey@jpobst.com>
4278 * ToolStripDrowDown.cs: When using the Show () methods that have a
4279 Control parameter, set the menu owner to that Control.
4282 2008-05-28 Ivan N. Zlatev <contact@i-nz.net>
4284 * PropertyGridTextBox.cs, PropertyGridView.cs: Implement validation.
4287 2008-05-27 Ivan N. Zlatev <contact@i-nz.net>
4289 * GridItemCollection.cs: Refactor to support multiple items with the
4293 2008-05-27 Jonathan Pobst <monkey@jpobst.com>
4295 * Control.cs: The 2.0 check for illegal cross thread calls in
4296 Control.Handle were throwing an exception when we were getting
4297 the Handle in order to invoke correctly. Created a private
4298 version that does not contain this check.
4301 2008-05-27 Ivan N. Zlatev <contact@i-nz.net>
4303 * PropertyGrid.cs: Respect DefaultTabType.
4305 2008-05-27 Ivan N. Zlatev <contact@i-nz.net>
4307 * ListView.cs: SPACE selects an item.
4310 2008-05-27 Ivan N. Zlatev <contact@i-nz.net>
4312 * ListView.cs: Reset the search string whenever the items are
4316 2008-05-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4318 * ListControl.cs: For the first added item PositionChanged is fired
4319 _before_ ItemChanged, which leave us in a temporary invalid state - so
4320 we need to set the selected index from ItemChanged handler *if* we
4321 know that the first item has just been added *and* the items have been
4322 actually added to the ListControl.
4325 2008-05-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4327 * TabControl.cs: Only clicks with the left button should be
4331 2008-05-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4335 * TextBox.cs: Expose an internal method in TextBox to restore the
4336 original context menu, and call it from ComboBox to re-use it in the
4337 combobox containing the file name in FileDialog.cs.
4338 Fixes part of #393775.
4340 2008-05-24 George Giolfan <georgegiolfan@yahoo.com>
4342 * ThemeVisualStyles.cs: Added support for the hot ComboBox drop down button
4345 2008-05-24 George Giolfan <georgegiolfan@yahoo.com>
4347 * ComboBox.cs, Theme.cs, ThemeWin32Classic.cs: Added support for the hot drop
4350 2008-05-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4352 * ComboBox.cs: Minor correction to previous patch: PageDown should
4353 also *try* to move by one item if the computed offset is negative,
4354 just like the PageUp case.
4356 2008-05-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4358 * ComboBox.cs: When navigating using PageDown/PageUp the navigation
4359 should be done for at least 1 item, and not stay at the same item.
4360 Fixes part of #374713.
4362 2008-05-23 Jonathan Pobst <monkey@jpobst.com>
4364 * FileDialog.cs: Add a FSEntryComparer, and use it to sort the
4365 directories. [Fixes bug #393931]
4367 2008-05-22 Andreia Gaita <avidigal@novell.com>
4369 * WebBrowser.cs: Implement DocumentText. Implement AllowNavigation.
4370 Don't fire events until the initial about:blank page has finished
4371 loading. Clean up events.
4373 2008-05-22 Atsushi Enomoto <atsushi@ximian.com>
4375 * XplatUIX11.cs : when we call WM_SETFOCUS, call X11Keyboard
4376 FocusIn() too. This should fix the issue on switching
4379 2008-05-22 Atsushi Enomoto <atsushi@ximian.com>
4381 * X11Keyboard.cs : set XIM font size to somewhat reasonable
4382 number (ideally the input textbox size, but that could be
4385 2008-05-22 Jonathan Pobst <monkey@jpobst.com>
4387 * ToolStripTextBox.cs: List for the TextBox's TextChanged and fire
4388 the ToolStripItem's TextChanged. [Fixes bug #393597]
4390 2008-05-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4392 * TabControl.cs: When invalidating in SelectedIndex and we need to
4393 inflate to take into account the border of the tabs, make sure that
4394 the invalidated rect doesn't overflow the control bounds, since that
4395 would avoid updating at all.
4397 2008-05-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4399 * TabControl.cs: Don't substract scroller width from the row width,
4400 since we need to take into account the total width of the control when
4401 calculating the position of the tabs. This avoids showing scroller
4402 when it is actually not needed.
4403 Fixes part of #322325.
4405 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
4407 * ThemeVisualStyles.cs: Added support for TextBoxBase.
4409 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
4411 * RichTextBox.cs, TextBoxBase.cs, Theme.cs, ThemeWin32Classic.cs: Refactored:
4412 Extracted TextBoxBase.Draw and Theme.TextBoxBase*.
4414 2008-05-21 Jonathan Pobst <monkey@jpobst.com>
4416 * DataGridView.cs: Only paint the top left header cell if there
4419 2008-05-21 Jonathan Pobst <monkey@jpobst.com>
4421 * DataGridView.cs: When binding to a BindingSource, get the underlying
4422 list to bind to. [Fixes bug #345483]
4424 2008-05-21 Jonathan Pobst <monkey@jpobst.com>
4426 * DataGridView.cs: Do not bind to collection properties.
4429 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
4431 * ThemeVisualStyles.cs: Added support for the hot TrackBar thumb style.
4433 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
4435 * Theme.cs, ThemeWin32Classic.cs, TrackBar.cs: Added support for the hot
4438 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
4440 * ThemeVisualStyles.cs: Added support for ToolTip transparent background.
4442 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
4444 * Theme.cs, ThemeWin32Classic.cs, ToolTip.cs: Added support for transparent
4447 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
4449 * ThemeVisualStyles.cs: Added support for ToolBar hot and hot checked styles.
4451 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
4453 * Theme.cs, ThemeWin32Classic.cs, ToolBar.cs: Added support for hot and hot
4456 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
4458 * TabControl.cs: Extended to handle the hot style.
4460 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
4462 * Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs, UpDownBase.cs:
4463 Extended UpDownBase code to handle hot and disabled styles.
4465 2008-05-20 Jonathan Pobst <monkey@jpobst.com>
4467 * DataGridView.cs: Handle databinding to generic list type things.
4470 2008-05-20 Jonathan Pobst <monkey@jpobst.com>
4472 * DataGridViewCellCollection.cs: Add a method to find the cell
4473 with the given DataPropertyName.
4474 * DataGridViewColumn.cs: Track if the column was autogenerated or not.
4475 * DataGridViewColumnCollection.cs: Add a method to clear all
4476 autogenerated columns.
4477 * DataGridView.cs: If AutoGenerateColumns is false, don't autogenerate
4481 2008-05-20 Jonathan Pobst <monkey@jpobst.com>
4483 * DataGridView.cs: Don't try to update the RowTemplate with
4484 a null CellTemplate.
4486 2008-05-20 Jonathan Pobst <monkey@jpobst.com>
4488 * DataGridViewColumn.cs: Allow IsDataBound to be set internally.
4489 * DataGridViewColumnCollection.cs: Ensure OnColumnAdded is called.
4490 * DataGridView.cs: Lots of fixes/enhancements to databinding to
4493 2008-05-20 Jonathan Pobst <monkey@jpobst.com>
4495 * Control.cs: Remove invalidating implicit child controls when
4496 control is invalidated. It was causing too many redraws on
4497 controls with implicit scrollbars.
4498 * ListView.cs: Listen to the Invalidated event and invalidate
4501 2008-05-20 Andreia Gaita <avidigal@novell.com>
4503 * WebBrowserBase.cs, WebBrowser.cs: Hook up page loading events
4504 * HtmlDocument.cs: Check for nulls
4506 2008-05-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4508 * Control.cs: In ControlCollection.RemoveInternal, remove the
4509 internal control before calling PerformLayout and OnControlRemoved,
4510 which was leaving us in an invalid state and causing a X error (bad
4511 match). Observe that Remove () call has the same order.
4512 Fixes an X error changing ComboBoxStyle.DropDownStyle.
4514 2008-05-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4516 * TabControl.cs: Don't paint by ourselved and instead let OnPaint
4517 being fired if ControlStyles.UserPaint style is activated.
4520 2008-05-19 Ivan N. Zlatev <contact@i-nz.net>
4522 * GridEntry.cs: Don't be so strict when setting the value -
4523 do not check if what we set is what we get.
4526 2008-05-19 Ivan N. Zlatev <contact@i-nz.net>
4528 * XplatUIX11.cs: If there are no timers timeout should be 0
4531 2008-05-19 Jonathan Pobst <monkey@jpobst.com>
4533 * Control.cs: As a followup to invalidating implicit children when
4534 a control is invalidated, only invalidate them if they are in the
4537 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
4539 * ThemeVisualStyles.cs: Implemented partial support for ToolTip.
4541 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
4543 * ThemeWin32Classic.cs: Refactored: Extracted ToolTipDrawBackground.
4545 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
4547 * GroupBoxRenderer.cs: Fixed text area clipping in the Visual Styles case.
4548 * XplatUIWin32.cs: Made Win32DeleteObject public.
4550 2008-05-19 Ivan N. Zlatev <contact@i-nz.net>
4552 * GridEntry.cs: Determine HasDefaultValue more strictly by using
4553 PropertyDescriptor.ShouldSerializeValue.
4556 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
4558 * ThemeVisualStyles.cs: Enabled support for ScrollBar element styles not present
4559 in the classic theme.
4561 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
4563 * ScrollBar.cs: Added FirstButtonEntered, SecondButtonEntered, ThumbEntered,
4565 * Theme.cs, ThemeWin32Classic.cs: Added ScrollBarHasHotElementStyles,
4566 ScrollBarHasPressedThumbStyle.
4568 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
4570 * TextRenderer.cs: Included some methods in the 1.1 profile.
4572 2008-05-19 Jonathan Pobst <monkey@jpobst.com>
4574 * Control.cs: When we make a control visible, it may have been
4575 previously visible and while it wasn't visible, the z-order of
4576 things may have been shuffled, so the control needs to have its
4577 z-order updated just in case. [Fixes bug #391518]
4579 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
4581 * ThemeVisualStyles.cs: Added support for GroupBox.
4583 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
4585 * GroupBoxRenderer.cs: Included in the 1.1 profile.
4587 2008-05-16 Atsushi Enomoto <atsushi@ximian.com>
4589 * XplatUIX11.cs, X11Keyboard.cs : redoing r103060 with fix for
4590 bug #389996; XSelectInput() behaved as mouse handler robber,
4591 so remove extra call to it.
4593 2008-05-15 Jonathan Pobst <monkey@jpobst.com>
4595 * Control.cs: Simplify ControlCollection.Contains method.
4597 2008-05-15 Jonathan Pobst <monkey@jpobst.com>
4599 * DataGridViewRow.cs: Implement GetPreferredSize.
4601 2008-05-15 Jonathan Pobst <monkey@jpobst.com>
4603 * DataGridViewComboBoxCell.cs: Don't declare text twice. Fixes build.
4605 2008-05-15 Jonathan Pobst <monkey@jpobst.com>
4607 * DataGridViewComboBoxCell.cs: Implement some NIEX stuffs, better
4608 painting and edit control fixes.
4610 2008-05-14 Jonathan Pobst <monkey@jpobst.com>
4612 * DataGridView.cs, DataGridViewCell.cs: Work around some external
4613 checks to make sure we are in an actual row/col for top left header cell.
4614 * DataGridViewTopLeftHeaderCell.cs: Implement some NIEX's.
4616 2008-05-14 Jonathan Pobst <monkey@jpobst.com>
4618 * Control.cs: Use long instead of int when handling WParam from
4619 mousewheel scrolling. Int was overflowing on Win64.
4621 2008-05-14 Jonathan Pobst <monkey@jpobst.com>
4623 * FlowLayoutPanel.cs, ScrollableControl.cs: We need to layout the
4624 flow panel without scrolling first, and then calculate the
4625 scrolling based on the new layout. [Fixes bug #390149]
4627 2008-05-14 Jonathan Pobst <monkey@jpobst.com>
4629 * ListBox.cs: Invalidate after scrolling up when selected index
4630 changes. [Fixes bug #390151]
4632 2008-05-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4634 * ComboBox.cs: When setting mode to Simple *and* height hasn't been
4635 set, default height to 150. I tried first with DefaultSize, but this
4636 is not generating a SetBoundsCore call before handle creation time, so
4637 we can take it into account. This is just what .net does.
4639 2008-05-13 Jonathan Pobst <monkey@jpobst.com>
4641 * XplatUIX11.cs, X11Keyboard.cs: Had to revert eno's r103060,
4642 as it broke some stuff. Calberto is filing a bug for eno to
4645 2008-05-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4647 * ComboBox.cs: When handling PageDown pressed event, set SelectedIndex
4648 to 0 is the current value is -1, and if style is not Simple, just
4649 return, like .net does.
4650 Fixes part of #374713.
4652 2008-05-13 Jonathan Pobst <monkey@jpobst.com>
4654 * ThemeWin32Classic.cs, ThemeVisualStyles.cs: When calculating
4655 progress bar stuffs, use doubles instead of ints to prevent
4656 overflow. [Fixes bug #389798]
4658 2008-05-13 Atsushi Enomoto <atsushi@ximian.com>
4660 * XplatUIX11.cs, X11Keyboard.cs :
4661 Significant refactoring on XIM support. Now IM engine UI
4662 should show up, at mostly-correct preedit position.
4663 - Eliminated use of FocusWindow, as it is never mapped
4664 and hence blocks correct preedit position. XIC is now
4665 created per window, and it must be destroyed too when
4666 the window is destroyed.
4667 - WM_QUIT messages should not be filtered even when hwnd
4668 is zombie. Filtering it could cause endless loop.
4669 - Preedit position must move only when the window is alive.
4670 - Make it IDisposable and make sure to release XIM/XICs.
4672 2008-05-13 Atsushi Enomoto <atsushi@ximian.com>
4674 * Timer.cs, Control.cs, Form.cs, ApplicationContext.cs,
4675 XplatUIX11.cs, XplatUIWin32.cs :
4676 fix for bug #325033 and #387693;
4677 - WM_QUIT should not be sent when no running application
4679 - SetTimer/KillTimer (especially on win32) should be
4680 invoked for the window that the timer is/will_be attached.
4681 - There could be unattached timers to a window when it's
4682 started. For those timers, hold pending timers and when
4683 a window is mapped, attach them to it.
4684 - WaitForHwndMessage() could run into loop when
4685 WM_SHOWWINDOW is handled before this method is called.
4686 So, strictly check wm_showwindow state.
4687 - Tick handler should not be invoked while one Tick handler
4688 call is still running (introduced Busy state).
4690 2008-05-13 Andreia Gaita <avidigal@novell.com>
4692 * WebBrowserBase.cs: Override Internal alternative methods for
4693 SetBoundsCore and OnResize instead of the protected ones.
4694 * Control.cs: Move SetBoundsCore and OnResize implementations to
4695 SetBoundsCoreInternal and OnResizeInternal, so they can be
4696 overriden internally (WebBrowserBase needs to catch them but can't
4697 override the protected methods without api compat problems)
4699 2008-05-13 Andreia Gaita <avidigal@novell.com>
4701 * WebBrowserBase.cs: Hiding away non-public overrides for api compat
4703 2009-05-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4706 * ListView.cs: Remove debug messages.
4708 2008-05-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4710 * ComboBox.cs: Don't do any calculation for simple mode if the listbox
4711 area is empty. Also calculate scrollbars in Simple mode based in area
4712 height and total number of items, not in MaxDropDownItems.
4713 Fixes part of #371991.
4715 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
4717 * PictureBox.cs: Always invalidate on resize. Fixes an app for jhill.
4719 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
4721 * BindingSource.cs: GetListSortDescription is not public.
4723 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
4725 * WebBrowser.cs, WebBrowserBase.cs, WebBrowserSiteBase.cs: corcompare.
4727 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
4729 * HtmlElement.cs: Fix parameter names to match MS.
4730 * HtmlWindowCollection.cs: Should not be sealed.
4732 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
4734 * ThemeWin32Classic.cs: Always draw the scrollbar area under the thumb
4735 button, because the thumb button will not get drawn if the scrollbar
4736 is disabled. [Fixes bug #389262]
4738 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
4740 * ListBox.cs: Handle End key for multi-column listboxen.
4743 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
4745 * ListBox.cs: Fix algorithm to determine which column our item is in.
4748 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
4750 * ListBox.cs: Invalidate when the listbox is resized.
4753 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
4755 * ListBox.cs: There is always at least one row in the ListBox (if
4756 we are doing these calculations.) [Fixes bug #389253]
4758 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
4760 * ListBox.cs: There is always at least one column in the ListBox.
4763 2008-05-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4765 * ComboBox.cs: When handle is created call UpdateComboBoxBounds to
4766 ensure in Simple mode that the height is exactly the requested one.
4767 Also add the ComboBoxListControl to the controls collection in Simple
4768 mode even if handle hasn't been created.
4769 Fixes part of #371991.
4771 2008-05-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4773 * ComboBox.cs: For ComboListBox control -specially in Simple mode-, give focus to
4774 our ComboBox owner instead of giving it back to the previous control (
4775 as done in other controls). Also remove the empty override of Select
4776 method, since we want to be selected *and* give focus to our owner.
4777 This should let the user do keys-navigation in Simple mode.
4779 2008-05-10 Geoff Norton <gnorton@novell.com>
4781 * XplatUICarbon.cs: Dont use HIViewScrollRect as it's causing painting
4782 problems with rapid scrolling of treeviews. Fixes #381084
4784 2008-05-10 Geoff Norton <gnorton@novell.com>
4786 * XplatUICarbon.cs: Deactivate the active window before
4787 activating the desired window. Completes fixing #386504
4789 2008-05-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4791 * ListView.cs: When calculating scrollbars, set horizontal scroll bar
4792 SmallChange to the item size width plus the padding, to match .net.
4794 2008-05-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4796 * FileDialog.cs: Apply the custom filter typed by the user in the file
4797 name combobox as much as possible while navigating in the file dialog.
4800 2008-05-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4802 * Binding.cs: Actually use NullValue if the retrieved value of
4803 data source is null or DBNull. Makes a test pass.
4805 2008-05-09 Jonathan Pobst <monkey@jpobst.com>
4807 * ErrorProvider.cs, Form.cs: Get icons from ResourceImageLoader.
4808 * MimeIcon.cs: Provide a way to get icons from resources.
4810 2008-05-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4812 * Binding.cs: When the value retrieved from the control to be assigned
4813 to the data source is null, actually use the 2.0 DataSourceNullValue
4814 value. Make pass a data binding test.
4816 2008-05-08 Jonathan Pobst <monkey@jpobst.com>
4818 * Control.cs: We need to invalidate implicit children even when
4819 invalidate is called with invalidatechildren = false. (Implicit
4820 children are really part of the parent.)
4821 * ListView.cs: Double-buffer internal child controls for less
4823 * ThemeWin32Classic.cs: Remove an extra nested loop in drawing
4824 owner ListView subitems for greatly increased performance.
4827 2008-05-08 Carlos Alberto Cortez <calebrto.cortez@gmail.com>
4829 * FileDialog.cs: When the user types a wildcard character in the
4830 filename combobox, update the contents of the folder using the text as
4832 Fixes part of #385261.
4834 2008-05-08 Jonathan Pobst <monkey@jpobst.com>
4836 * ListBox.cs: Various fixes for MultiColumn listboxen.
4839 2008-05-08 Andreia Gaita <avidigal@novell.com>
4841 * HtmlElement.cs: Implement Style property
4843 2008-05-08 Jonathan Pobst <monkey@jpobst.com>
4845 * ListBox.cs: Respect checkboxes when measuring item size.
4846 * ThemeWin32Classis.cs: When drawing list items, don't draw
4847 text outside of the item's bounds to prevent overlapping.
4848 (.Net actually overlaps, but that's just silly.)
4851 2008-05-08 Everaldo Canuto <ecanuto@novell.com>
4853 * NotifyIcon.cs: Call SetForegroundWindow before show context menu. Thanks
4854 Gert Driesen. Fixes bug #324830.
4856 2008-05-07 Everaldo Canuto <ecanuto@novell.com>
4858 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: SetForegroundWindow
4861 2008-05-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4863 * BindingSource.cs: When calling IsSynchronized, return the value of
4864 the related IList list.
4866 2008-05-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4868 * ListBindingHelper.cs: Fix some bits in GetListItemProperties, to
4871 2008-05-07 Jonathan Pobst <monkey@jpobst.com>
4873 * DataGridView.cs: Implement PageUp/PageDown keys. Extend keyboard
4874 navigation to scroll the grid if the current cell is not visible.
4876 2008-05-07 Andreia Gaita <avidigal@novell.com>
4878 * HtmlElement.cs: Implement TabIndex
4880 2008-05-07 Jonathan Pobst <monkey@jpobst.com>
4882 * ListBox.cs: Respect ScrollAlwaysVisible and HorizontalScrollbar
4883 properties, even when there are no items.
4886 2008-05-07 Ivan N. Zlatev <contact@i-nz.net>
4888 * NativeWindow.cs: Add support for multiple handles per window.
4889 * NativeWindows.cs, LibSupport.cs, Control.cs, XplatUIX11GTK.cs,
4890 XplatUIX11.cs, X11Display.cs: Do not access NativeWindow.windows_collection
4891 directly - use FromHandle instead.
4894 2008-05-07 Andreia Gaita <avidigal@novell.com>
4896 * HtmlElement.cs: Implement InnerHTML setter
4898 2008-05-07 Andreia Gaita <avidigal@novell.com>
4900 * HtmlDocument.cs: Implement Focused
4902 2006-05-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4904 * BindingSource.cs: Minor fixes to the the ApplySort and Remove sort
4905 methods, as well as add messages to the exceptions.
4907 2006-05-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4909 * BindingSource.cs: Setting DataSource should only reset DataMember if
4910 the previous value was null (make pass a not working test).
4912 2006-05-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4914 * BindingSource.cs: When EndInit call is postponed and is called until
4915 DataSource.EndInit is called, remove the handler for data source.
4917 2008-05-06 Jonathan Pobst <monkey@jpobst.com>
4919 * ToolStripManager.cs: Don't use IsAlive, race condition, etc. etc.
4921 2008-05-06 Jonathan Pobst <monkey@jpobst.com>
4923 * ToolStripManager.cs: Store references to toolstrips as
4924 weak references so they do not prevent forms from getting collected.
4927 2008-05-06 Jonathan Pobst <monkey@jpobst.com>
4929 * TrackBar.cs: We can't set ResizeRedraw because it isn't set
4930 on .Net. So do the same thing in WndProc.
4932 2008-05-06 Jonathan Pobst <monkey@jpobst.com>
4934 * TrackBar.cs: Commit patch from Andy Hume that corrects
4935 the clickable areas to better match .Net.
4938 2008-05-06 Jonathan Pobst <monkey@jpobst.com>
4940 * TrackBar.cs: Commit patch from Andy Hume that adds the
4941 ResizeRedraw control flag so the track bar repaints itself
4942 when it is resized. [Fixes bug #387072]
4944 2008-05-06 Jonathan Pobst <monkey@jpobst.com>
4946 * TrackBar.cs: Commit patch from Andy Hume that adds better
4947 support for keyboard navigation when the TrackBar is vertical.
4950 2008-05-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4952 * BindingSource.cs: Implement ISupportInitializeNotification support.
4954 2008-05-06 George Giolfan <georgegiolfan@yahoo.com>
4956 * ThemeVisualStyles.cs: Added support for ToolBar.
4958 2008-05-06 George Giolfan <georgegiolfan@yahoo.com>
4960 * ToolBar.cs: Made the Vertical property internal.
4962 2008-05-05 George Giolfan <georgegiolfan@yahoo.com>
4964 * ThemeVisualStyles.cs: Added support for TrackBar.
4966 2008-05-05 George Giolfan <georgegiolfan@yahoo.com>
4968 * ThemeWin32Classic.cs: Refactored: Extracted TrackBarGetThumbSize,
4969 TrackBarDrawVerticalTrack, TrackBarDrawVerticalThumbRight,
4970 TrackBarDrawVerticalThumbLeft, TrackBarDrawVerticalThumb,
4971 TrackBarGetVerticalTickPainter, TrackBarDrawHorizontalTrack,
4972 TrackBarDrawHorizontalThumbBottom, TrackBarDrawHorizontalThumbTop,
4973 TrackBarDrawHorizontalThumb, TrackBarGetHorizontalTickPainter.
4975 2008-05-05 George Giolfan <georgegiolfan@yahoo.com>
4977 * ThemeVisualStyles.cs: Added support for UpDownBase.
4979 2008-05-05 George Giolfan <georgegiolfan@yahoo.com>
4981 * Theme.cs, ThemeWin32Classic.cs, UpDownBase.cs: Refactored:
4982 Extracted Theme.UpDownBaseDrawButton.
4984 2008-05-05 Jonathan Pobst <monkey@jpobst.com>
4986 * ToolStrip.cs, ToolStripDropDownItem.cs: Make sure toolstrips are
4987 removed from the static toolstrips collection in ToolStripManager
4988 when they are disposed. Provides a workaround for bug #386483.
4990 2008-05-05 Ivan N. Zlatev <contact@i-nz.net>
4992 * GridEntry.cs: Read-only properties with Editor with
4993 UITypeEditorEditStyle.Modal shouldn't be read-only in the PropertyGrid.
4996 2008-05-05 Jonathan Pobst <monkey@jpobst.com>
4998 * MenuStrip.cs, ToolStrip.cs: Guard against an NRE when pressing
4999 the menu key and there are no items on the menu.
5002 2008-05-05 Sebastien Pouliot <sebastien@ximian.com>
5004 * Control.cs: Avoid calling ToString on a string.
5005 * Form.cs: Avoid calling ToString on a string. Found using Gendarme.
5006 * GroupBox.cs: In FlatStyle property throw, not just create, the
5007 exception. Avoid calling ToString on a string.
5008 * ProgressBar.cs: Avoid calling ToString on a string.
5009 * ScrollBar.cs: Avoid calling ToString on a string.
5010 [All issues were found using Gendarme]
5012 2008-05-05 Everaldo Canuto <ecanuto@novell.com>
5014 * NotifyIcon.cs: Prevent click events to be trigger after double click
5015 events. Fixes remaining issues of bug #324832.
5017 2008-05-05 Everaldo Canuto <ecanuto@novell.com>
5019 * NotifyIcon.cs: Trigger click and mouseclick events after mouseup event
5020 to mimic win32 behavior. Partially fixes bug #324832.
5022 2008-05-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5024 * BindingSource.cs: Implement Find methods.
5026 2008-05-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5028 * BindingSource.cs: Implement Sort, ApplySort overloads, and
5031 2008-05-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5033 * ListBindingHelper.cs: When calling GetListItemProperties and the
5034 passed object is ITypedList, return the result of
5035 ITypedList.GetItemProperties instead.
5037 2008-05-04 Everaldo Canuto <ecanuto@novell.com>
5039 * LinkLabel.cs: Set default value of name on constructor of Link class
5040 only for 2.0 profile.
5042 2008-05-04 Everaldo Canuto <ecanuto@novell.com>
5044 * LinkLabel.cs: Fix implementation of LinkCollection.LinksAdded property.
5045 Fixes remaining issues of bug #346154.
5047 2008-05-04 Everaldo Canuto <ecanuto@novell.com>
5049 * LinkLabel.cs: Set a default value for name on internal contructor of
5050 Link class. It fixes assert B5 of LinkCollectionTest.Constructor1.
5052 2008-05-04 Everaldo Canuto <ecanuto@novell.com>
5054 * LinkLabel.cs: Move links collection from LinkCollection to LinkLabel
5055 and refer all instances to owner.links. Partially fixes #346154.
5057 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
5059 * LinkLabel.cs: Fix linkarea values for empty text, must have start and
5060 length equal zero. Also called CreateLinkPieces in constructor. It fixes
5061 the LinkLabel test 'TestLinkArea'.
5063 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
5065 * Form.cs: Remove menu before close form to prevent form to be not gaced.
5068 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
5070 * MenuAPI.cs: Dispose popup window after hide. Thanks to Jesse Jones.
5073 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
5075 * MenuAPI.cs: Implemented keyboard navigation for ContextMenu.
5078 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
5080 * MenuAPI.cs: Remove unused ProcessCmdKey method.
5082 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
5084 * MenuAPI.cs: Prevent NRE in menu deactivation when shortcut is used.
5087 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
5089 * MenuAPI.cs: Enable implicit mnemonics for menus. Fixes remaining issues
5092 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
5094 * MenuAPI.cs: Check if mouse down comes from menu, we need it because
5095 sometimes we open a conext menu on mouse down of some controls and the mouse
5096 up is dispatched to menu and dont need to. It fix remaining issues of
5097 #363711 and other problems related to menu mouse click events.
5099 2008-05-02 Everaldo Canuto <ecanuto@novell.com>
5101 * MonthCalendar.cs: Implemented "Go to today" context menu, also changed
5102 some var names to better fit changes, now we have month_menu and today_menu
5103 vars. Fixes bug #363711.
5105 2008-05-02 Everaldo Canuto <ecanuto@novell.com>
5107 * MonthCalendar.cs: Handle every right mouse click to open context menu,
5108 right now the default month menu but it will be change to have "Go to today"
5111 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
5113 * FileDialog.cs, MaskedTextBox.cs, OpenFileDialog.cs: corcompare.
5115 2008-05-02 Everaldo Canuto <ecanuto@novell.com>
5117 * ThemeWin32Classic.cs: Fix MonthCalendar arrows drawing.
5119 2008-05-02 George Giolfan <georgegiolfan@yahoo.com>
5121 * ThemeVisualStyles.cs: Added support for TreeView.
5123 2008-05-02 George Giolfan <georgegiolfan@yahoo.com>
5125 * Theme.cs, ThemeWin32Classic.cs, TreeView.cs: Refactored:
5126 Moved TreeView.DrawNodePlusMinus to Theme.TreeViewDrawNodePlusMinus.
5128 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
5130 * OpenFileDialog.cs: Implement 2.0 SP1 stuffs.
5132 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
5134 * FileDialogCustomPlace.cs, FileDialogCustomPlacesCollection.cs:
5135 Implement 2.0 SP1 stuffs.
5137 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
5139 * FileDialog.cs: Implement 2.0 SP1 stuffs.
5141 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
5143 * Control.cs, ContainerControl.cs, DataGridView.cs, TextBoxBase.cs:
5144 Implement CanEnableIme property. (2.0 SP1)
5146 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
5148 * BindingManagerBase.cs, PropertyManager.cs: Hide GetItemProperties
5151 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
5153 * Control.cs: Provide an internal way for a control to override
5154 the setting of Height.
5155 * DateTimePicker.cs: Remove SetBoundsCore from 2.0 profile,
5156 set height using new method.
5158 2008-05-02 George Giolfan <georgegiolfan@yahoo.com>
5160 * ThemeVisualStyles.cs: Added support for ControlPaint.DrawMixedCheckBox.
5162 2008-05-02 George Giolfan <georgegiolfan@yahoo.com>
5164 * ControlPaint.cs, Theme.cs, ThemeWin32Classic.cs: Refactored:
5165 ControlPaint.DrawMixedCheckBox now calls Theme.CPDrawMixedCheckBox.
5167 2008-05-02 George Giolfan <georgegiolfan@yahoo.com>
5169 * ThemeVisualStyles.cs: Added support for StatusBar.
5171 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
5173 * DataObject.cs: Add the other IDataObject interface.
5175 2008-05-02 George Giolfan <georgegiolfan@yahoo.com>
5177 * ThemeWin32Classic.cs: Refactored: extracted DrawStatusBarBackground,
5178 DrawStatusBarSizingGrip, DrawStatusBarPanelBackground.
5180 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
5182 * DataGridViewCheckBoxCell.cs, DataGridViewImageCell.cs: Fix parameter names.
5183 * ListView.cs: Hide non-public API.
5184 * MaskedTextBox.cs: Remove extra attribute.
5186 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
5188 * DataGridViewImageCell.cs: Use formatted value instead of value
5189 to calculate preferred size.
5191 2008-05-01 Jonathan Pobst <monkey@jpobst.com>
5193 * ListBox.cs: Move some initialization around so that selected_indices
5194 is not accessed before it is created.
5196 2008-05-01 Jonathan Pobst <monkey@jpobst.com>
5198 * InputLanguageCollection.cs: Implement the collection better.
5201 2008-05-01 Jonathan Pobst <monkey@jpobst.com>
5203 * ToolStripDropDownItem.cs: Get the correct event object for
5204 DropDownItemClicked.
5205 * ToolStripMenuItem.cs: Raise DropDownItemClicked on our owner.
5208 2008-05-01 Jonathan Pobst <monkey@jpobst.com>
5210 * DataGridViewRowCollection.cs: We don't currently support shared
5211 rows. Should fix test failures caused by previous commit.
5213 2008-04-30 Jonathan Pobst <monkey@jpobst.com>
5215 * DataGridViewRow.cs: Fixes for cloning the row, ensure header cell's
5216 datagridview gets set. Only paint cells in visible columns.
5217 * DataGridViewCell.cs: Draw border after cell content.
5218 * DataGridView.cs: Invalidate after setting some properties. Only
5219 use visible columns. Fit hit test bug with areas in the col/row header
5220 area but not in a row or col. Implement UpdateCell/Row methods.
5222 2008-04-30 Jonathan Pobst <monkey@jpobst.com>
5224 * DataGridViewElement.cs: Don't throw NIEX.
5225 * DataGridViewColumnHeaderCell.cs: Draw error icons for top left header cells.
5226 * DataGridViewColumnDesignTimeVisibleAttribute.cs: Don't throw NIEX.
5227 * DataGridViewCheckBoxColumn.cs: Implement ToString.
5228 * DataGridViewCheckBoxCell.cs: Allow DBNull as a value.
5229 * DataGridViewCell.cs: Don't raise CellFormatting for RowHeader cells,
5230 if the user filled in the formatting Value, use it.
5232 2008-04-30 Jonathan Pobst <monkey@jpobst.com>
5234 * DataGridViewTextBoxCell.cs: Fix for objects that cannot be cast
5237 2008-04-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5239 * BindingSource.cs: Some corrections to Filter property, as well as
5240 setting it for our list when resetting it.
5242 2008-04-29 Jonathan Pobst <monkey@jpobst.com>
5244 * ScrollBar.cs: Don't let dragging the thumb grip set the value greater
5245 than the maximum. Fixes reopened bug #384182.
5247 2008-04-28 Everaldo Canuto <ecanuto@novell.com>
5249 * ToolStripDropDown.cs: Fix offscreen position for DropDown itens.
5250 Fixes remaining issues of #367490.
5252 2008-04-28 Everaldo Canuto <ecanuto@novell.com>
5254 * ToolStripDropDown.cs: Screen.Bound dont return right value then use
5255 SystemInformation.WorkingArea to get max_screen value.
5257 2008-04-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5259 * BindingSource.cs: Implement Filter and RemoveFilter.
5261 2008-04-28 Everaldo Canuto <ecanuto@novell.com>
5263 * MenuAPI.cs: Prevent sub-menu positon to be less than zero.
5265 2008-04-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5267 * X11Dnd.cs: When trying to convert data and we know we started the
5268 dnd loop, don't try to use the cached data if the loop is not running,
5269 which means that the data has been resetted.
5272 2008-04-28 Everaldo Canuto <ecanuto@novell.com>
5274 * MenuAPI.cs: Force first menu subitem to show from left to right to mimic
5277 2008-04-28 Everaldo Canuto <ecanuto@novell.com>
5279 * MenuAPI.cs: Check the screen limits before show sub-menus and prevent
5280 it to drawn off screen edge. Fixes bug #367490.
5282 2008-04-28 Everaldo Canuto <ecanuto@novell.com>
5284 * MenuAPI.cs: In PopupWindow.RefreshItems uses a temp point var to store
5285 menu position to have only one assignment of Location var.
5287 2008-04-28 Everaldo Canuto <ecanuto@novell.com>
5289 * MenuAPI.cs: Implement the right key for sub-menus. Thanks Ernesto Carrea
5290 for this patch. Fixes bug #384115.
5292 2008-04-28 Jonathan Pobst <monkey@jpobst.com>
5294 * ScrollBar.cs: If SmallChange is larger than LargeChange, make them
5295 the same. If LargeChange is zero, set a minimum size for the scroll
5296 thumb grip. [Fixes bug #384182]
5298 2008-04-28 Jonathan Pobst <monkey@jpobst.com>
5300 * TextBoxTextRenderer.cs: Don't turn &A into a prefix for textboxen.
5303 2008-04-28 Jonathan Pobst <monkey@jpobst.com>
5305 * ListBox.cs: Math.Min should be Math.Max. [Fixes bug #384183]
5307 2008-04-28 George Giolfan <georgegiolfan@yahoo.com>
5309 * ThemeVisualStyles.cs: Added partial support for ScrollBar (based on the
5310 patch from Ernesto).
5312 2008-04-28 George Giolfan <georgegiolfan@yahoo.com>
5314 * ThemeVisualStyles.cs: Added support for ControlPaint.DrawComboButton.
5316 2008-04-28 George Giolfan <georgegiolfan@yahoo.com>
5318 * ThemeVisualStyles.cs: Added support for ControlPaint.DrawButton.
5320 2008-04-28 George Giolfan <georgegiolfan@yahoo.com>
5322 * ThemeVisualStyles.cs: Added support for ControlPaint.DrawRadioButton.
5324 2008-04-28 George Giolfan <georgegiolfan@yahoo.com>
5326 * ThemeVisualStyles.cs: Added support for ControlPaint.DrawScrollButton.
5328 2008-04-27 George Giolfan <georgegiolfan@yahoo.com>
5330 * ThemeVisualStyles.cs: Added support for ButtonBase.UseVisualStyleBackColor.
5332 2008-04-27 Andreia Gaita <avidigal@novell.com>
5334 * HtmlWindow.cs, HtmlHistory.cs: Throw on DomHistory getter (it's
5335 supposed to return a reference to an mshtml interface, which we
5337 * HtmlElement.cs: Throw on DomElement getter (it's supposed to return a
5338 reference to an mshtml interface, which we don't support). Code
5340 * HtmlDocument.cs: Add DefaultEncoding getter implementation. Throw on
5341 DomDocument getter (it's supposed to return a reference to an
5342 mshtml interface, which we don't support). Code formatting cleanup.
5344 2008-04-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5346 * ListView.cs: Ouch, forgot to commit.
5348 2008-04-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5351 * ThemeWin32Classic.cs: Fire the -until now- forgotten CacheVirtualItems event.
5353 2008-04-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5355 * ListView.cs: When calculating box selection for virtual mode, don't
5356 look for intersection with item's text, but item bounds, since that
5357 would mean read ListViewItem's text for _every_ item, and that's
5358 something we just can't do in virtual mode (items are only requested
5361 2008-04-26 George Giolfan <georgegiolfan@yahoo.com>
5363 * ThemeVisualStyles.cs: Added support for ControlPaint.DrawCaptionButton and
5364 partial support for managed windows (based on the patch from Ernesto).
5366 2008-04-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5368 * ListView.cs: When doing a key search use FindItemWithText method
5369 instead of doing the search by ourselves, this way we avoid
5370 duplicating the code and also we handle the special case for virtual
5371 mode. To achieve that make our private overload of FindItemWithText
5372 internal and also have a 'roundtrip' parameter.
5374 2008-04-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5376 * ListView.cs: When doing the layout don't request the
5377 ListViewItem instance if we are in virtual mode (since we can't request it
5378 until the item is actully drawn).
5380 2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
5382 * ThemeVisualStyles.cs: Added support for ProgressBar (based on the patch
5385 2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
5387 * ThemeVisualStyles.cs: Added support for ControlPaint.DrawCheckBox (based on
5388 the patch from Ernesto).
5390 2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
5392 * ThemeEngine.cs: Added code to select ThemeVisualStyles.
5393 * ThemeVisualStyles.cs: Added.
5395 2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
5397 * IDeviceContext.cs: Added a missing using.
5399 2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
5401 * ButtonBase.cs: Made IsDefault protected internal.
5402 * ButtonRenderer.cs: Made GetPushButtonRenderer(PushButtonState) internal.
5404 2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
5406 * Application.cs: Included VisualStyles-related members in the 1.1 profile.
5407 * ButtonRenderer.cs, CheckBoxRenderer.cs, Padding.cs, PaddingConverter.cs,
5408 RadioButtonRenderer.cs: Included in the 1.1 profile.
5409 * IDeviceContext.cs: Added.
5410 * TextRenderer.cs: Included a member in the 1.1 profile.
5412 2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
5414 * ThemeWin32Classic.cs: Added ShouldPaintFocusRectangle(ButtonBase).
5416 2008-04-24 Jonathan Pobst <monkey@jpobst.com>
5418 * ErrorProvider.cs: Make the error icons come after the control
5419 they refer to. It isn't the way the MS does it, but its better
5420 than what we were doing. See bug #368587.
5422 2008-04-24 Jonathan Pobst <monkey@jpobst.com>
5424 * InputLanguage.cs, InputLanguageCollection.cs: Apply patch
5425 from Eric Albright that lazy loads the input language as ensures
5426 everything gets properly initialized. Fixes bug #373871.
5428 2008-04-24 Jonathan Pobst <monkey@jpobst.com>
5430 * ToolStrip.cs: Don't use ToolStripControlHosts when figuring up
5431 implicit mnemonics. [Fixes bug #383000]
5433 2008-04-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5435 * X11Dnd.cs: When canceling the operation, automatically restore the
5436 default cursor - normally the default cursor is restored when the
5437 mouse buttons are released, but we should be able to restore it even
5438 if the buttons are still pressed (for example, when pressing ESC to
5442 2008-04-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5444 * X11Dnd.cs: When starting a new drad and drop operation, set control
5445 field to null, just as the other fields, to avoid calling any
5446 operation on a previous control. Also, when calling DndLeave on a
5447 control, set it to null, thus we don't fire that event multiple times
5451 2008-04-23 Geoff Norton <gnorton@novell.com>
5453 * XplatUICarbon.cs: Ensure that we have a valid hwnd before accessing
5454 the whole_window object. Fixes #377084.
5456 2008-04-23 Andreia Gaita <avidigal@novell.com>
5458 * HtmlElement.cs: Implement RaiseEvent (event injection into the
5461 2008-04-23 Jonathan Pobst <monkey@jpobst.com>
5463 * DataGridViewColumnHeaderCell.cs: Implement some NIEX stuffs.
5465 2008-04-23 Andreia Gaita <avidigal@novell.com>
5467 * HtmlElement.cs, HtmlDocument.cs: Implement javscript method
5470 2008-04-23 Andreia Gaita <avidigal@novell.com>
5472 * HtmlElement.cs, HtmlDocument.cs: Implement custom event handler
5475 2008-04-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5477 * X11Dnd.cs: When the drop was cancelled, or could just not be
5478 performed, return DragDropEffect.None always (match .net).
5480 2008-04-22 Jonathan Pobst <monkey@jpobst.com>
5482 * DataGridViewRowHeaderCell.cs: Fill in some NIEX stuff.
5484 2008-04-22 Jonathan Pobst <monkey@jpobst.com>
5486 * DataGridViewRowCollection.cs: Revert something I didn't mean to commit.
5488 2008-04-22 Jonathan Pobst <monkey@jpobst.com>
5490 * DataGridView.cs: Add support for error icon tool tips.
5491 * DataGridViewCell.cs: ErrorIconBounds needs to call GetErrorIconBounds.
5492 * DataGridViewRowHeaderCell.cs: Need internal way to get ErrorIconBounds.
5494 2008-04-22 Ivan N. Zlatev <contact@i-nz.net>
5496 * X11Structs.cs: Add mouse button masks enum.
5497 * XplatUIX11.cs, Hwnd.cs: Send WM_ENTERSIZEMOVE and
5498 WM_EXITSIZEMOVE only once at the beginning and at the end of the
5499 form resize/move operation instead of for each step of it.
5500 [Fixes bug #346529 for the x11 backend]
5502 2008-04-21 Jonathan Pobst <monkey@jpobst.com>
5504 * DataGridView*: Implement support for drawing error icons.
5506 2008-04-21 Jonathan Pobst <monkey@jpobst.com>
5508 * TreeView.cs: Make vbar and hbar internal.
5509 * TreeNode.cs: If collapsing the node removes one of the TreeView's
5510 scrollbars, invalidate the whole thing.
5513 2008-04-21 Jonathan Pobst <monkey@jpobst.com>
5515 * TreeView.cs: Calling Sort() sets Sorted = true.
5516 * TreeNodeCollection.cs: Try to find the owner TreeView to determine
5517 if the nodes need to be sorted.
5520 2008-04-21 Ivan N. Zlatev <contact@i-nz.net>
5522 * Form.cs: Fire SizeChanged for both when the form is minimized and
5524 * XplatUIX11.cs: Instead of tracking minimization on UnmapNotify track it
5525 on PropertyNotify of _NET_WM_STATE. Much much cleaner.
5527 2008-04-21 Jonathan Pobst <monkey@jpobst.com>
5529 * ComboBox.cs: If the combobox is disabled, draw a disabled
5530 background before painting anything else.
5533 2008-04-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5535 * X11Dnd.cs: Wehn the drag and drop operation is cancelled don't
5536 forget to send a Leave event to the target window - just as .net does
5537 when cancelling dnd operations.
5539 2008-04-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5541 * X11Dnd.cs: Stop tracking messages as part of the dnd operation as
5542 soon as possible - this happens when we send the drop message to the
5543 target window. This way we avoid firing any DragOver _after_ drop finished.
5546 2008-04-20 Ivan N. Zlatev <contact@i-nz.net>
5548 * XplatUIX11.cs: Send WM_WINDOWPOSCHANGED when a toplevel is minimized.
5549 * Form.cs: Handle form minimization as a special state, where size doesn't
5550 change, but we have to fire SizeChanged.
5551 [Fixes bug #325122 for the win32 and x11 backends]
5553 2008-04-20 Ivan N. Zlatev <contact@i-nz.net>
5555 * XplatUIX11.cs: Win32 doesn't send WM_(KILL|SET)FOCUS
5556 if the handle is disabled.
5559 2008-04-20 Ivan N. Zlatev <contact@i-nz.net>
5561 * XplatUIX11.cs: Enable Maximize/Minimize/Close ability (not decorations)
5562 for forms with FormBorderStyle.None.
5565 2008-04-20 Ivan N. Zlatev <contact@i-nz.net>
5567 * XplatUIX11.cs: Implement support for WM_ENTERSIZEMOVE and
5569 [Fixes bug #346529 for the X11 backend]
5571 2008-04-19 Ivan N. Zlatev <contact@i-nz.net>
5574 - Send a mouse Enter message after say dragging the mouse with a
5575 button down and then release it in another client.
5576 - Reset the cursor to prevent X11 from remembering it and setting it
5577 before the control gets WM_SETCURSOR.
5578 - Qeueue a mouse move after a mouse enter like win32.
5581 2008-04-19 Ivan N. Zlatev <contact@i-nz.net>
5583 * XplatUIX11.cs: Implement limited support for WM_SYSCOMMAND.
5584 It's sent when the form gets moved, resized, closed.
5585 * XplatUIStructs.cs: Add SystemCommands enum for WM_SYSCOMMAND.
5586 [Fixes bug #359193 for X11]
5588 2008-04-19 Ivan N. Zlatev <contact@i-nz.net>
5590 * Form.cs: Add a ValidateChildren for the 1.1 profile. Fixes
5593 2008-04-19 Ivan N. Zlatev <contact@i-nz.net>
5595 * ListView.cs: Move CalculateDetailsGroupItemsCount to the NET_2_0
5596 group. Fixes the 1.1 build.
5598 2008-04-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5600 * ListView.cs: Use display indexes for selection in Details view, as
5601 well as do the proper layout based on display indexes for that view
5604 2008-04-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5606 * ListView.cs: Focused item information is now stored as a display
5607 index, and display indexes are used all over the place for selection,
5608 instead of ListViewItem.Index values, which doesn't give us enough
5609 information to modify the selection in groups mode, and was broken.
5611 2008-04-18 Ivan N. Zlatev <contact@i-nz.net>
5613 * Control.cs: Do not fire MouseDown if validation of the control has
5615 * Form.cs: Validate the form before closing.
5616 [Fixes bugs #330501 and #353310]
5618 2008-04-18 Andreia Gaita <avidigal@novell.com>
5620 * WebBrowserBase.cs: Added WndProc, DrawToBitmap,
5621 CreateWebBrowserSiteBase implementations
5622 * HtmlElement.cs: Add missing OuterHTML, OuterText setters, stubbed
5623 Style and TabIndex setters
5625 2008-04-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5627 * ListViewGroup.cs: When returning the actual item count, return the
5628 proper count for default group.
5631 2008-04-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5634 * ListViewGroup.cs: When calculating groups layout, get the actual
5635 number of items per group, since groups added to the group BUT not
5636 added to the ListView are just ignored, and can cause some nasty
5637 exceptions because of the lack of synchronization. Also for
5638 ListViewGroup don't use lazy initialization for items, since we
5639 the common scenario is to use it always - and it helps us to refactor
5640 and clean the .ctor overloads.
5642 2008-04-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5644 * ListView.cs: When adding an item to a ListViewItemCollection
5645 belonging to a group (ListViewGroup.Items), don't generate a redraw if
5646 the added item hasn't beeen previously added to the ListView instance
5647 refered by the group, since it will be ignored. This should avoid some
5648 really nasty flickering.
5650 2008-04-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5652 * ListView.cs: When accessing an item in a specific display
5653 position, use the helper method GetItemAtDisplayIndex, instead of
5654 direct access to the reordered_items_indices array. When doing layout
5655 for groups set the correct Items index for the display position (since
5656 in groups mode items don't have the same position as in Items
5658 * ListViewGroup.cs: Add a field to store the starting item number,
5659 which is later used when calculating the layout.
5663 2008-04-17 Gert Driesen <drieseng@users.sourceforge.net>
5665 * Application.cs: Fixed ProductVersion to fallback to the assembly
5666 version. Fixes regression for bug #325413.
5668 2008-04-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5670 * ListView.cs: New helper method to retrieve an item in a _specific
5671 display_ position (the items can be displayed in a different order
5672 than one of Items collection).
5673 * ThemeWin32Classic.cs: When drawing, instead of iterating over Items
5674 collection, use ListView.GetItemAtDisplayIndex, to get an item in a
5675 specific display position (again remember that items can be sorted
5676 different than Items).
5678 2008-04-16 Jonathan Pobst <monkey@jpobst.com>
5680 * DataGridViewColumnCollection.cs: Create a cached copy of our sorted
5681 list and update it when the collection changes. We were recreating
5682 this several times per row paint and for every pixel the mouse moved
5684 * DataGridViewColumn.cs: Regenerate cached sorted list when DisplayIndex
5687 2008-04-16 Jonathan Pobst <monkey@jpobst.com>
5689 * DataGridViewColumnCollection.cs: Convert our internal sorted columns
5690 list to use generics.
5691 * DataGridView.cs, DataGridViewRow.cs: Use generic sorted column list
5692 and remove unneccessay casts.
5694 2008-04-16 Jonathan Pobst <monkey@jpobst.com>
5696 * DataGridViewBand.cs: Add internal way to set displayed variable.
5697 * DataGridViewRow.cs: Don't paint cells in non-displayed columns.
5698 * DataGridView.cs: Make sure we always keep track of Displayed
5699 rows and columns, and only draw things that are displayed.
5701 2008-04-16 Atsushi Enomoto <atsushi@ximian.com>
5703 * X11Keyboard.cs, XplatUIX11.cs : manage key state regardless of
5704 whether the key events are filtered or not. Introduced
5705 PreFilter() process for this purpose. This fixes atokx3/iiimx
5708 2008-04-16 Andreia Gaita <avidigal@novell.com>
5710 * HtmlHistory.cs: Implement Length property
5712 2008-04-15 Jonathan Pobst <monkey@jpobst.com>
5714 * DataGridView.cs: Call EndEdit when a sort is performed so we take
5715 away the edit textbox. Refactor to reuse column sort code.
5717 2008-04-12 Everaldo Canuto <ecanuto@novell.com>
5719 * MenuAPI.cs: Remove the code that save and restore capture status of
5720 grab_control, this fixes some Menu and Context menu bugs but maybe it can
5721 cause some others, I cant figure the possible problems of this patch but
5722 right now remove the code looks to be better than keep it. This patch fixes
5723 bugs #357638, #378721 and #379570.
5725 2008-04-12 Andreia Gaita <avidigal@novell.com>
5727 * HtmlDocument.cs, HtmlElement.cs, HtmlHistory.cs, WebBrowser.cs:
5728 Implement OuterHtml, OuterText, Enabled, Scroll*, *Rectangle properties,
5729 add missing properties and event handlers.
5731 2008-04-14 Jonathan Pobst <monkey@jpobst.com>
5733 * ListBox.cs: Make sure the LargeChange we are setting is at least
5734 zero, to prevent an IOORE. [Fixes bug #379531]
5736 2008-04-13 Andy Hume <andyhume32@yahoo.co.uk>
5738 * ComboBox.cs: Support item navigation by entering text. Firstly,
5739 in DropDownList mode, for each key-press select the next item
5740 starting with that letter.
5741 For other modes, when no item selected, on arrow-up/-down and open
5742 drop-down select the first item matching the text in the textbox.
5744 2008-04-14 Atsushi Enomoto <atsushi@ximian.com>
5746 * X11Keyboard.cs : Control.FromHandle() could return null
5747 in MoveCurrentCaretPos().
5749 2008-04-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5751 * ListView.cs: When changing the size in VirtualMode, also Reset the
5753 * ListViewItem.cs: Don't call SelectedIndexCollection.Reset when
5754 changing selection info for VirtualMode.
5757 2008-04-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5759 * ThemeWin32Classic.cs: When drawing ListViewItem instancesin Details
5760 view, don't use LineLimit for the first item - use NoWrap *always*
5761 instead, since ListView.LabelWrap is not used for this view.
5764 2008-04-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5766 * Binding.cs: Call UpdateIsBinding when setting control - probably
5767 Binding is already usable and we don't need to wait to check the
5768 IsBinding state. Also for 1.1 profile use IsHandleCreated instead of
5769 Created, just like 2.0 does.
5770 * CurrencyManager.cs: I'm so lame - the previous check was wrong.
5772 2008-04-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5774 * Binding.cs: Just realized we don't need to have a handler for
5775 BindingContextChanged, since this info should be now consumed directly
5776 in the BindingManagerBase. And also, the manager.IsBindingSuspended
5777 state info is checked directly, instead of caching it.
5779 * CurrencyManager.cs: IsSuspended should return always false if Count
5782 2008-04-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5784 * Binding.cs: When calling PushData, return if manager.Count == 0,
5785 since we just don't have data to be read. Also, when setting the
5786 Control for binding, hook up some events to refresh the IsBinding
5787 state when BindingContext change or control gets created; use
5788 Control.IsHandleCreated instead of Control.Created check to set
5789 IsBinding state - we *actually* need to modify IsBinding when control
5790 is created, but we don't have any Created event, only HandleCreated.
5791 Fixes part of #349364.
5793 2008-04-11 Geoff Norton <gnorton@novell.com>
5795 * XplatUICarbon.cs: Expose Caret to the Carbon layer. Guard against
5796 warping a null Caret.
5798 2008-04-11 Jonathan Pobst <monkey@jpobst.com>
5800 * DataGridView.cs: Implement row/column autosizing methods. Implement
5802 * DataGridViewColumnHeaderCell.cs: Add painting of the sort glyph.
5803 * DataGridViewRowCollection.cs: Add an internal sorting method.
5805 2008-04-11 Jonathan Pobst <monkey@jpobst.com>
5807 * ThemeWin32Classic.cs: Apply patch from Ernesto to cache an expensive
5808 value in ListView drawing code.
5810 2008-04-11 Jonathan Pobst <monkey@jpobst.com>
5812 * FileDialog.cs: Only call FileOk when Ok is clicked, not when Cancel
5813 is clicked. Respect the user setting Cancel in FileOk.
5815 2008-04-11 Geoff Norton <gnorton@novell.com>
5817 * ListView.cs: Avoid setting and resetting control Width/Heights and
5818 calculate the final value and set it once. Prevents a feedback loop
5821 2008-04-10 Jonathan Pobst <monkey@jpobst.com>
5823 * TreeView.cs: Clamp setting the scrollbar value using SafeValueSet.
5826 2008-04-10 Atsushi Enomoto <atsushi@ximian.com>
5828 * X11Keyboard.cs, X11Structs.cs : make over-the-spot mode default.
5829 Add some on-the-spot code, but it seems we don't need it.
5831 2008-04-10 Jonathan Pobst <monkey@jpobst.com>
5833 * Form.cs: Add method for DataGridView to trigger focus cues
5834 even when it handles the tab keypress.
5836 2008-04-10 Jonathan Pobst <monkey@jpobst.com>
5838 * DataGridView.cs: More keyboard handling, tab, esc.
5839 * DataGridViewTextBoxEditingControl.cs: Don't request arrow keys
5840 when at the beginning or end of the text in the text box.
5842 2008-04-09 Jonathan Pobst <monkey@jpobst.com>
5844 * DataGridViewCell.cs: Guard against an NRE causing a test to fail.
5846 2008-04-09 Jonathan Pobst <monkey@jpobst.com>
5848 * DataGridView.cs: Some fixups for showing and adding the edit control.
5849 * DataGridViewButtonColumn.cs: Implement ToString.
5850 * DataGridViewCell.cs: Size and position the control simultaneously.
5851 * DataGridViewTextBoxCell.cs: Use base to position control.
5853 2008-04-09 Jonathan Pobst <monkey@jpobst.com>
5855 * DataGridViewCell.cs: Fix up some formatting and painting code.
5856 * DataGridViewImageCell.cs: Implement some NIEX methods.
5858 2008-04-09 Jonathan Pobst <monkey@jpobst.com>
5860 * ToolStripItemCollection.cs: What moving an item from one owner
5861 to another, remove from source owner before adding to destination.
5864 2008-04-09 Jonathan Pobst <monkey@jpobst.com>
5866 * PictureBox.cs: Call Load when ImageLocation is set.
5869 2008-04-09 Atsushi Enomoto <atsushi@ximian.com>
5871 * X11Keyboard.cs, XplatUIX11.cs :
5872 Implement over-the-spot mode (with some odd offsets).
5873 - set preedit position when caret is set.
5874 - Wrap XMoveResizeWindow() to move preedit position.
5876 2008-04-08 Everaldo Canuto <ecanuto@novell.com>
5878 * X11keyboard.cs: Fix last patch, maxval must be less not greater than
5881 2008-04-08 Everaldo Canuto <ecanuto@novell.com>
5883 * KeyboardLayouts.cs: Uses GENERATING_RESOURCES to make VKeyTableIndex
5884 and ScanTableIndex public, it fix compilations errors when compiling
5885 WinForms to generate keyboard layout resources.
5887 2008-04-08 Everaldo Canuto <ecanuto@novell.com>
5889 * X11keyboard.cs: Prevent keyboard errors when vitual table theres
5890 different element count than scan table. It prevents some errors in non
5893 2008-04-08 Jonathan Pobst <monkey@jpobst.com>
5895 * DataGridViewHeaderCell.cs: Implement some NIEX methods.
5897 2008-04-08 Jonathan Pobst <monkey@jpobst.com>
5899 * DataGridView.cs: Call OnContentClick.
5900 * DataGridViewCell.cs: Do a null check on ValueType instead
5902 * DataGridViewCheckBoxCell.cs: Implement.
5904 2008-04-08 Atsushi Enomoto <atsushi@ximian.com>
5906 * X11Keyboard.cs : Do not cast IntPtr to int. Use long.
5908 2008-04-08 Atsushi Enomoto <atsushi@ximian.com>
5910 * X11Keyboard.cs : Check XGetIMValues() return value in
5911 case it does not return input styles in some environment.
5913 2008-04-08 Atsushi Enomoto <atsushi@ximian.com>
5915 * X11Keyboard.cs : sizeof(IntPtr) != 4 on amd64.
5917 2008-04-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5919 * BindingContext.cs: Stub UpdateBinding method.
5921 2008-04-07 Atsushi Enomoto <atsushi@ximian.com>
5923 * X11Structs.cs : added couple of structs for XIM support.
5925 Release XIM in case it failed to create XIC.
5926 Use consts for XNblah string.
5927 Add support for IM style customization and XIC creation
5928 for preedit-position and preedit-callback.
5929 Right now use MONO_WINFORMS_XIM_STYLE environment variable
5930 (list of: over-the-spot | on-the-spot | root). Only root
5933 (redoing r99172 with fix.)
5935 2008-04-07 Jonathan Pobst <monkey@jpobst.com>
5937 * TreeView.cs: Center the checkbox a little better.
5939 2008-04-07 Jonathan Pobst <monkey@jpobst.com>
5941 * ThemeClearlooks.cs, ThemeGtk.cs, ThemeNice.cs, ThemeWin32Classic.cs:
5942 Apply very nice patch from Ernesto Carrea that simplifies our
5943 scrollbar drawing. [From bug #376146]
5945 2008-04-07 Jonathan Pobst <monkey@jpobst.com>
5947 * TreeView.cs: Correct the location of the root node checkbox when
5948 ShowRootLines = false. Don't draw the root lines for the root node
5949 when ShowRootLines = false. [Fixes bug #377535]
5951 2008-04-06 Gert Driesen <drieseng@users.sourceforge.net>
5953 * WebBrowserBase.cs: Added missing attributes and fixed attributes.
5955 * WebBrowser.cs: Added missing attributes and fixed attributes. Fixed
5957 * MaskedTextBox.cs: Added missing attribute. Code formatting.
5958 * PageSetupDialog.cs: Added missing attribute. Code formatting.
5959 * HtmlWindowCollection.cs: Code formatting. Fixed line endings.
5960 * ImeMode.cs: Added missing field.
5961 * HtmlWindow.cs: Code formatting. Fixed line endings.
5962 * HtmlElement.cs: Code formatting. Fixed line endings. Fixed compiler
5964 * HtmlHistory.cs: Code formatting. Fixed line endings.
5965 * HtmlDocument.cs: Code formatting. Fixed line endings.
5966 * ToolStripPanel.cs: Added missing IList implementation.
5967 * HtmlElementCollection.cs: Code formatting. Fixed line endings.
5969 2008-04-06 Gert Driesen <drieseng@users.sourceforge.net>
5971 * BindingContext.cs: Changed argument names to fix corcompare errors.
5972 * DataGridView.cs: Removed extra explicit interface implementation
5973 of IDropTarget. Code formatting.
5974 * FlowLayoutPanel.cs: Changed argument names to fix corcompare errors.
5975 * ComboBox.cs: Changed argument names to fix corcompare errors.
5976 * DataGridTextBoxColumn.cs: Changed argument names to fix corcompare
5978 * GridColumnStylesCollection.cs: Changed argument names to fix
5979 corcompare errors. Removed extra tabs.
5980 * GridTableStylesCollection.cs: Changed argument names to fix corcompare
5982 * Control.cs: Changed argument names to fix corcompare errors. Code
5983 formatting. Removed extra explicit IList implementation.
5984 * TextBox.cs: Changed argument names to fix corcompare errors. Code
5985 formatting. Use string.Empty instead of "".
5986 * GridItemCollection.cs: Changed argument names to fix corcompare
5987 errors. Code formatting.
5988 * DataGridViewTopLeftHeaderCell.cs: Changed argument names to fix
5989 corcompare errors. Code formatting.
5990 * ImageList.cs: Changed argument names to fix corcompare errors.
5991 * ToolStripItem.cs: Changed argument names to fix corcompare errors.
5992 * DataGridViewRowCollection.cs: Changed argument names to fix
5993 corcompare errors. Code formatting.
5994 * TableLayoutPanel.cs: Changed argument names to fix corcompare errors.
5995 * DataGridViewSelectedCellCollection.cs: Changed argument names to
5996 fix corcompare errors. Code formatting.
5997 * DataGridViewComboBoxCell.cs: Changed argument names to fix
5998 corcompare errors. Code formatting.
5999 * LinkLabel.cs: Changed argument names to fix corcompare errors.
6000 * TreeNode.cs: Changed argument names to fix corcompare errors. Code
6002 * PropertyGrid.cs: Changed argument names to fix corcompare errors.
6004 * BindingSource.cs: Changed argument names to fix corcompare errors.
6005 Removed extra explicit interface implementations.
6006 * DataGridViewSelectedRowCollection.cs: Changed argument names to
6007 fix corcompare errors. Code formatting.
6008 * ToolStripItemCollection.cs: Removed extra explicit interface
6009 implementation of IList.ReadOnly.
6010 * DataGridViewColumnCollection.cs: Changed argument names to fix
6011 corcompare errors. Code formatting.
6012 * DataGridViewRow.cs: Rename converter to match MS. Code formatting.
6013 * ListView.cs: Changed argument names to fix corcompare errors.
6014 * DataGridViewHeaderCell.cs: Changed argument names to fix corcompare
6016 * DataGridBoolColumn.cs: Changed argument names to fix corcompare
6018 * ListBindingHelper.cs: Changed argument names to fix corcompare
6020 * DataGridViewSelectedColumnCollection.cs: Changed argument names to
6021 fix corcompare errors. Code formatting.
6022 * ToolStripPanel.cs: Removed extra explicit implementation of
6023 IDropTarget interface.
6024 * ListBox.cs: Changed argument names to fix corcompare errors. Code
6025 formatting. Removed extra tabs and spaces.
6026 * DataGridViewCellCollection.cs: Changed argument names to fix
6028 * Help.cs: Changed argument names to fix corcompare errors. Code
6030 * TabControl.cs: Changed argument names to fix corcompare errors.
6031 * DataGridColumnStyle.cs: Changed argument names to fix corcompare
6033 * TableLayoutSettings.cs: Changed argument names to fix corcompare
6036 2008-04-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6038 * ListBindingHelper.cs: When returning properties, only return those
6039 that are browsable. Also, don't do a linear search of the properties,
6040 but use the indexer of the PropertyDescriptorCollection class.
6042 2008-04-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6044 * BindingSource.cs: Implement GetRelatedCurrencyManager by adding a
6045 Dictionary containing the related (child) currency managers. Also,
6046 when setting DataSource, add datasource to our List if it is not a list.
6048 2008-04-05 Ivan N. Zlatev <contact@i-nz.net>
6050 * PropertyGridTextBox.cs: Fix background color of the buttons.
6051 * PropertyGridView.cs: Make the entry less jumpy.
6053 2008-04-05 Ivan N. Zlatev <contact@i-nz.net>
6055 * PropertyGrid.cs: Fix unused variable warnings.
6057 2008-04-05 Ivan N. Zlatev <contact@i-nz.net>
6059 * PropertyGridView.cs: Fix expansion via [+] misbehavior on
6060 double-click. It expanded it once in the mouse down and then
6061 again in the double-click handler.
6063 2008-04-04 Ivan N. Zlatev <contact@i-nz.net>
6065 * GridEntry.cs: ICustomTypeDescriptor support for PropertyOwner,
6066 TypeConverter and UITypeEditors.
6068 2008-04-04 Ivan N. Zlatev <contact@i-nz.net>
6070 * Control.cs: Visibility should be set synchronously,
6071 so we must also redraw once it is and not rely on layouting or
6072 other code to repaint.
6075 2008-04-04 Jonathan Pobst <monkey@jpobst.com>
6077 * DataGridViewCell.cs: Respect DataGridView.GridColor.
6079 2008-04-03 Jonathan Pobst <monkey@jpobst.com>
6081 * Control.cs: Invalidate when the alpha channel is less than 255,
6082 not only when control is transparent.
6084 2008-04-03 Jonathan Pobst <monkey@jpobst.com>
6086 * DataGridViewRowPrePaintEventArgs.cs, DataGridViewRowPostPaintEventArgs.cs:
6087 Implement some painting convenience methods that threw NIEX.
6089 2008-04-03 Jonathan Pobst <monkey@jpobst.com>
6091 * DataGridView.cs: Call CellMouse[Enter|Move|Leave] properly.
6092 * DataGridViewLinkCell.cs: Implement.
6094 2008-04-03 Ivan N. Zlatev <contact@i-nz.net>
6096 * GridEntry.cs: Report the conversion exception error description.
6099 2008-04-03 Ivan N. Zlatev <contact@i-nz.net>
6101 * PropertyGridView.cs: Do not scroll to item on resize.
6104 2008-04-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6106 * BindingContext.cs: When retrieving a BindingManagerBase, if the
6107 dataSource parameter is ICurrencyManagerProvider, then return
6108 ICurrencyManagerProvider.CurrencyManager/GetRelatedCurrencyManager
6109 instead of creating a new one.
6111 2008-04-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6113 * BindingSource.cs: Implement support for Type instances as
6116 2008-04-02 Jonathan Pobst <monkey@jpobst.com>
6118 * DataGridView.cs: Minor cleanups and call CellMouseUp.
6119 * DataGridViewCell.cs: Make some painting routines internally virtual.
6120 * DataGridViewButtonCell.cs: Implement.
6122 2008-04-02 Jonathan Pobst <monkey@jpobst.com>
6124 * Control.cs: We always need to invalidate our children with
6125 transparent backgrounds when we are invalidated.
6128 2008-04-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6130 * BindingSource.cs: EndEdit and CancelEdit should call EndCurrentEdit
6131 and CancelCurrentEdit on CurrencyManager respectively. Implement
6132 support for ICancelAddNew too.
6134 2008-04-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6136 * CurrencyManager.cs: When calling EndCurrentEdit/CancelCurrentEdit,
6137 call EndNew/CancelNew if list is ICancelAddNew.
6139 2008-04-01 Jonathan Pobst <monkey@jpobst.com>
6141 * DataGridView.cs: Guard against an exception while painting
6142 if there are no rows.
6144 2008-04-01 Jonathan Pobst <monkey@jpobst.com>
6146 * DataGridView.cs: Implement a bunch of keyboard commands.
6148 2008-03-31 Jonathan Pobst <monkey@jpobst.com>
6150 * ToolBar.cs: Don't do our painting if UserPaint is set. If UserPaint
6151 isn't set, don't call OnPaint. [Fixes bug #375300]
6153 2008-03-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6155 * BindingSource.cs: IsBindingSuspended, ResumeBinding and
6156 SuspendBinding depend on CurrencyManager. Implement RemoveCurrent,
6157 hookup the remaining events related to CurrencyManager, and fire
6158 OnListChanged also for the Clear () method.
6160 2008-03-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6162 * BindingSource.cs: Use Current and Position implementations in
6163 CurrencyManager instead of using our own routines, since we need
6164 to be in synch with it. Count should NEVER return a -1 value, and
6165 also report ListChanged events for both simple IList data
6166 sources (manually) as well for IBindingList ones (by hooking up an
6167 event handler for it).
6169 2008-03-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6171 * BindingSource.cs: Make one .ctor call the another, to avoid
6172 duplicate code. Add the CurrencyManager property, and also for AddNew
6173 throw the proper exceptions and show better error messages.
6175 2008-03-28 Jonathan Pobst <monkey@jpobst.com>
6177 * ComboBox.cs: Only adjust selectedindex if Handle has been
6178 created. Fixes failing test.
6180 2008-03-28 Jonathan Pobst <monkey@jpobst.com>
6182 * ComboBox.cs: Adjust selectedindex if we insert a new item
6183 above the current selectedindex in a sorted ComboBox.
6186 2008-03-28 Jonathan Pobst <monkey@jpobst.com>
6188 * ComboBox.cs: Support PageUp/PageDown when dropdown is closed.
6191 2008-03-28 Jonathan Pobst <monkey@jpobst.com>
6193 * DataGridViewTextBoxCell.cs: Implement stuffs.
6195 2008-03-27 Jonathan Pobst <monkey@jpobst.com>
6197 * TreeView.cs: Create the scrollbars even earlier to be
6198 double dog certain they are created before they are accessed.
6200 2008-03-27 Jonathan Pobst <monkey@jpobst.com>
6202 * XplatUIX11.cs: Remove a no-op line that csc was choking on.
6204 2008-03-27 Jonathan Pobst <monkey@jpobst.com>
6206 * ScrollBar.cs: Create an internal safe Value setter so we
6207 won't crash if we try to set a value outside the min and max.
6208 * TextBoxBase.cs: Use safe value setter to guard against a
6209 potential NRE that is being reported by Reflector.
6211 2008-03-27 Jonathan Pobst <monkey@jpobst.com>
6213 * TreeView.cs: Create the scrollbars earlier in the constructor
6214 to attempt to guard against an NRE in SetTop in Reflector.
6216 2008-03-27 Jonathan Pobst <monkey@jpobst.com>
6218 * DataGridView.cs, DataGridViewCell.cs, DataGridViewCell.cs,
6219 DataGridViewRowCollection.cs: Do not scroll column and row headers,
6220 show messagebox on data format error, use column display index
6221 correctly, make sure HitTest supports new layout stuff,
6222 make sure scrollbars support new layout stuff.
6224 2008-03-27 Atsushi Enomoto <atsushi@ximian.com>
6226 * XplatUIX11.cs : Patch by Doug Rintoul.
6227 For some IM engines, keypress events need to delay call
6228 to XPending() and XNextEvent() in the loop so that it
6229 does not mess the orders in XIM commit callback.
6230 Some KeyRelease events such as shift keys need to be
6231 processed both in the IM engine and winforms driver
6232 itself since winforms holds its own state check.
6234 For details, see: http://lists.ximian.com/pipermail/mono-winforms-list/2008-March/003279.html
6236 2008-03-27 Atsushi Enomoto <atsushi@ximian.com>
6238 * X11Keyboard.cs, XplatUIX11.cs :
6239 add primitive support for XIM input support (preedit-
6240 nothing and status-nothing). It requires precise event
6241 capturing (XSelectInput/"filterEvents") and different
6242 call to XFilterEvent against root window.
6243 Get composed string and send dummy WM_IME_COMPOSITION.
6244 Free XIM and XIC instances in finalizer.
6246 (This first patch does not include suggested changes
6247 by Doug Rintoul. It will follow.)
6249 2008-03-26 Jonathan Pobst <monkey@jpobst.com>
6251 * DataGridView.cs: When binding to a property, if the property
6252 doesn't have a setter, set the column to readonly.
6255 2008-03-26 Jonathan Pobst <monkey@jpobst.com>
6257 * ComboBox.cs: Guard against NRE if an arrow key is hit while
6258 we aren't dropped down. Support Home/End in DropDownList mode.
6261 2008-03-26 Jonathan Pobst <monkey@jpobst.com>
6263 * TreeNodeCollection.cs: Don't increment count until we've
6264 saved our index to return.
6267 2008-03-25 Jonathan Pobst <monkey@jpobst.com>
6269 * Label.cs: Add padding to the label's AutoSize calculation.
6272 2008-03-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6274 * ListBindingHelper.cs: Actually implement GetListName method.
6276 2008-03-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6278 * BindingSource.cs: Throw the propert expceptions for some methods, as
6279 well as detect the list item type for Add method if DataSource is null.
6281 2008-03-25 Jonathan Pobst <monkey@jpobst.com>
6283 * DataGridViewCell.cs: I don't know why I commented this out,
6284 putting it back for now.
6286 2008-03-25 Jonathan Pobst <monkey@jpobst.com>
6288 * DataGridViewCell.cs: Remove storage for owning column, just
6290 * DataGridViewColumn.cs: Make getter for HeaderTextSet.
6291 * DataGridViewColumnHeaderCell.cs: If the header text has been
6292 explicitly set, return it.
6295 2008-03-25 Jonathan Pobst <monkey@jpobst.com>
6297 * DataGridViewRowCollection.cs: Disable row sharing when
6298 using data binding. Its a great feature, but lets work on
6299 getting DGV usable first before we worry about optimizations.
6301 2008-03-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6303 * BindingSource.cs: When resetting our internal list, compute list
6304 item type information to be used for indirect list access. Also
6305 implement/tune some properties and methods related to the list access
6307 * ListBindingHelper.cs: Add a stub for GetListName method, used from
6310 2008-03-24 Jonathan Pobst <monkey@jpobst.com>
6312 * DataGridView.cs: If RowCount is increased while ColumnCount
6313 is zero, add a column. [Fixes bug #331649]
6315 2008-03-24 Jonathan Pobst <monkey@jpobst.com>
6317 * DataGridViewRowCollection.cs: When adding new rows for
6318 databinding, make sure they are place before the add row.
6321 2008-03-24 Jonathan Pobst <monkey@jpobst.com>
6323 * DataGridViewRow.cs: Draw cells in column DisplayIndex order
6324 instead of Index order.
6326 2008-03-24 Jonathan Pobst <monkey@jpobst.com>
6328 * DataGridView.cs: If columns are added by increasing ColumnCount,
6329 they need to be DataGridViewTextBoxColumns, not DataGridViewColumn.
6332 2008-03-24 Jonathan Pobst <monkey@jpobst.com>
6334 * DataGridView.cs: Turn off and on the "new row" when
6335 AllowUserToAddRows is toggled. When the handle is created,
6336 set current cell and selected cell/row/col.
6338 2008-03-24 Jonathan Pobst <monkey@jpobst.com>
6340 * ComboBox.cs: When navigating the drop down by keyboard, we
6341 need to scroll the list box if our selection moves out of the
6342 currently shown items. [Fixes bug #371990]
6344 2008-03-24 Luke Page <luke.a.page@gmail.com>
6346 * RichTextBox.cs: Handles visible rtf tag and no longer shows the text
6347 on the control. Also now handles unicode compatibility characters and
6348 stores the unicode compatibility length on the stack. Fixes Bugs
6349 #355198 and #366436.
6351 2008-03-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6353 * BindingSource..cs: Take into account DataMember when re-creating the
6354 List property, and also create a specific kind of list as needed.
6356 2008-03-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6358 * ListBindingHelper.cs: Add a new case for GetList () method - when we
6359 get an empty IEnumerable, try to detect whether the datamember is
6360 valid or not for that type, if true, return null, and throw exception
6363 2008-03-22 Jonathan Pobst <monkey@jpobst.com>
6365 * ComboBox.cs: Alt-Down should drop down the list, Esc should
6366 retract it. [Fixes bug #371989]
6368 2008-03-22 Ivan N. Zlatev <contact@i-nz.net>
6370 * PropertyGrid.cs: Initialize the sorting button as pushed.
6372 2008-03-22 Ivan N. Zlatev <contact@i-nz.net>
6375 - Visually select the PropertyTab.
6376 - Filter Properties by Attributes properly.
6378 2008-03-21 Jonathan Pobst <monkey@jpobst.com>
6380 * MenuItem.cs: Remove menu item from parent when disposed.
6383 2008-03-21 Jonathan Pobst <monkey@jpobst.com>
6385 * ToolBar.cs: Don't reset layout_type if Dock = None.
6387 2008-03-21 Andreia Gaita <avidigal@novell.com>
6389 * UserControl.cs: Select the first available control when we get focus.
6392 2008-03-21 Jonathan Pobst <monkey@jpobst.com>
6394 * DataGridViewCell.cs, DataGridViewTextBoxCell.cs: Don't paint
6395 the content if we are in edit mode. [Fixes bug #343964]
6397 2008-03-21 Jonathan Pobst <monkey@jpobst.com>
6399 * DataGridViewCell.cs: Fix border painting for column headers.
6401 2008-03-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6403 * BindingSource.cs: When setting or resetting data source,
6404 use ListBindingHelper.GetList () method, since it will get the list in
6405 case datasource is IListSource.
6407 2008-03-20 Jonathan Pobst <monkey@jpobst.com>
6409 * DataGridViewCell.cs: Implement lots more stuffs.
6411 2008-03-20 Ivan N. Zlatev <contact@i-nz.net>
6413 * PropertyGridView.cs, GridEntry.cs: Implement support for
6414 UITypeEditor.IsDropDownResizable.
6416 2008-03-20 Jonathan Pobst <monkey@jpobst.com>
6418 * DataGridViewCell.cs: Remove unused variables, improve how
6419 several of the property getters work.
6420 * DataGridViewRow.cs: Don't call setSize on a cell, cell should
6421 get its size from the parent row/col.
6423 2008-03-20 Ivan N. Zlatev <contact@i-nz.net>
6425 * PropertyGrid.cs: Ensure PropertiesTab is visible even if the
6426 user alters manually the PropertyTabs collection via the
6427 PropertyTabs property.
6429 2008-03-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6431 * ListBindingHelper.cs: Implement -previously- ignored cases. We have
6432 new tests for them to be sure to be compatible with .net.
6434 2008-03-20 Andreia Gaita <avidigal@novell.com>
6436 * WebBrowserBase.cs: Fix attributes, add events
6437 * WebBrowser.cs: Fix Padding signature
6439 2008-03-20 Ivan N. Zlatev <contact@i-nz.net>
6441 * PropertyGrid.cs, PropertyGridView.cs: Implement PropertyTab support.
6443 2008-03-19 Jonathan Pobst <monkey@jpobst.com>
6445 * DataGridView.cs, DataGridViewCell.cs, DataGridViewCellStyle.cs,
6446 DataGridViewLinkCell.cs, DataGridViewRow.cs, DataGridViewRowHeaderCell.cs,
6447 DataGridViewTextBoxCell.cs: Changes so that DataGridViewCell
6448 passes the new suite of tests for it.
6450 2008-03-18 Andreia Gaita <avidigal@novell.com>
6452 * WebBrowser.cs: Add missing attributes, missing Padding and
6453 DefaultSize properties, remove extraneous getters
6455 2008-03-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6457 * ListBindingHelper.cs: Implement a pair of GetListItemProperties
6460 2008-03-16 Jonathan Pobst <monkey@jpobst.com>
6462 * ComboBox.cs: Move resetting the selected index to keypress
6463 instead of textchanged. Changing the text programmatically
6464 should not trigger resetting the selected index. Fixes test.
6466 2008-03-16 Jonathan Pobst <monkey@jpobst.com>
6468 * ComboBox.cs: When the user types into the textbox, reset
6469 the selected index to -1. [Fixes bug #371672]
6471 2008-03-16 Jonathan Pobst <monkey@jpobst.com>
6473 * FileDialog.cs: Support Control-A for selecting everything
6474 in an OpenFileDialog. [Fixes bug #371564]
6476 2008-03-15 Jonathan Pobst <monkey@jpobst.com>
6478 * DataGridView.cs: When row/column visible/height properties
6479 change, invalidate. Take the NIEX out of InvalidateRow/Column
6480 etc. We don't support them yet, but we can just invalidate
6481 everything until we do support them. (Added MonoTODO). Set
6482 proper control styles.
6483 * DataGridViewRow.cs: Don't call PaintHeader if row headers
6486 2008-03-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6488 * ListBindingHelper.cs: Implement 2.0 GetListItemType methods.
6490 2008-03-14 Jonathan Pobst <monkey@jpobst.com>
6492 * DataGridViewRow.cs: Only paint the white background in
6493 cell bounds, the row bounds extends past the cells if the
6494 grid width isn't as wide as the DGV.
6496 2008-03-14 Jonathan Pobst <monkey@jpobst.com>
6498 * DataGridView*: Completely revamp the drawing to match the
6499 public API. Our grids now look better, and call all the
6500 appropriate methods and event to allow users to override
6501 the painting and do their own.
6503 2008-03-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6505 * ListBindingHelper.cs: Implement 2.0 GetList methods.
6507 2008-03-13 Jonathan Pobst <monkey@jpobst.com>
6509 * DataGridView.cs: Implement BorderStyle.
6511 2008-03-13 Jonathan Pobst <monkey@jpobst.com>
6513 * FileDialog.cs: Apply patch from Andy Hume: Any time we
6514 are comparing attributes, make sure we only look at the
6515 one we are interested. These calls were failing if there
6516 were more than one attribute.
6519 2008-03-13 Jonathan Pobst <monkey@jpobst.com>
6521 * DataGridColumnStyle.cs: Hide ctor from 1.1 profile.
6523 2008-03-12 Jonathan Pobst <monkey@jpobst.com>
6525 * PageSetupDialog.cs: Stub EnableMetric.
6526 * PrintControllerWithStatusDialog.cs: Implement IsPreview.
6527 * PrintPreviewDialog.cs: Add ProcessDialogKey,
6530 2008-03-12 Jonathan Pobst <monkey@jpobst.com>
6532 * MonthCalendar.cs: Remove unused variable.
6534 2008-03-12 Jonathan Pobst <monkey@jpobst.com>
6536 * DataGridView*.cs: corcompare stuffs.
6538 2008-03-11 Jonathan Pobst <monkey@jpobst.com>
6540 * MonthCalendar.cs: Remove an incorrect invalidate optimization.
6541 The savings aren't worth the extra code to fix the optimization.
6544 2008-03-11 Jonathan Pobst <monkey@jpobst.com>
6546 * ToolBar.cs: Always call base.Dock in the Dock override so that
6547 Control's layout_type gets reset correctly.
6550 2008-03-11 Ivan N. Zlatev <contact@i-nz.net>
6552 * X11Dnd.cs: End DnD operation also for the middle mouse button.
6554 2008-03-11 Jonathan Pobst <monkey@jpobst.com>
6556 * ContainerControl.cs: We can't do MenuStrip implicit mnemonics
6557 at the same time we do explicit ones, because we have to give all
6558 other controls on the container a chance to handle explicit ones
6559 first. If no one has an explicit mnemonic, then we can let the
6560 MenuStrip have a shot at implicit mnemonics.
6561 * MenuStrip.cs: Create an implicit mnemonic function.
6562 * ToolStrip.cs: When processing explicit mnemonics, don't do implicit
6563 mnemonics for MenuStrips.
6566 2008-03-11 Jonathan Pobst <monkey@jpobst.com>
6568 * AxHost.cs, Binding.cs, DataGridView.cs, DataGridViewCell.cs,
6569 DataGridColumnStyle.cs: corcompare stuffs.
6571 2008-03-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6573 * FileDialog.cs: Don't add any ColumnHeader to Columns if view is not
6574 Details - This is needed after we added the bits to use any available
6575 column also for List and SmallIcon view.
6577 2008-03-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6579 * ListBox.cs: Fire SelectedIndexChanged and SelectedValueChanged events
6580 at the proper place, not only when changing SelectedIndex and changing
6581 the selection using keys/mouse, as .net does.
6583 2008-03-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6585 * ControlBindingsCollection.cs: Implement last 2.0
6586 DefaultDataSourceUpdateMode property. Also fix a wrong instruction
6587 in the new 2.0 Add methods.
6589 2008-03-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6591 * ListBox.cs: When calling SelectedIndexCollection.Clear,
6592 return if no items are previously selected - this is done to avoid
6593 firing OnSelectedIndexChanged without need to do so. Also,
6594 when creating handle ensure that the focused item is visible (as
6597 2008-03-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6599 * ListBox.cs: Rewrote/refactored most of selection code. We require
6600 the following things in selection: a) keep selection sorted (both
6601 indices and items), b) SelectedIndices automatically detect the
6602 selection mode, c) SelectedIndex should be the first selected item
6603 index, d) Need to Focus/adjust scroll bar when selecting a new item,
6604 not only for SelectedIndex, which is specially important in Multi*
6605 selection modes. To achieve this we are moving the selection core to
6606 SelectedIndexCollection and make depend all selection modifications on
6610 2008-03-06 Jonathan Pobst <monkey@jpobst.com>
6612 * ToolStrip.cs: Enable implicit mnemonics for drop down
6613 menu strips. [Fixes part of bug #367692]
6615 2008-03-06 Jonathan Pobst <monkey@jpobst.com>
6617 corcompare - fix parameter names [stragglers].
6618 Binding.cs, BindingsCollection.cs, GridColumnStylesCollection.cs,
6619 HelpEventHandler.cs, Label.cs, ListView.cs, Message.cs,
6622 2008-03-06 Jonathan Pobst <monkey@jpobst.com>
6624 Control.cs: Don't call ProcessMenuKey on WM_SYSKEYUP if there
6625 was a mnemonic pressed as well as Alt. Also, if nothing handles a
6626 mnemonic, let the ToolStripManager have it even if it doesn't
6627 have a matching mnemonic.
6630 2008-03-06 Jonathan Pobst <monkey@jpobst.com>
6632 corcompare - fix warning about implicit implementation
6633 * ToolStrip.cs: Add IToolStripData interface.
6634 * IToolStripData.cs: Add.
6636 2008-03-06 Jonathan Pobst <monkey@jpobst.com>
6638 corcompare - fix warning about implicit implementation
6639 * Control.cs, ToolStripPanelRow.cs: Add IBounds interface.
6642 2008-03-05 Jonathan Pobst <monkey@jpobst.com>
6644 corcompare - fix parameter names [N-Z].
6645 LinkArea.cs, NativeWindow.cs, NotifyIcon.cs, PageSetupDialog.cs,
6646 Panel.cs, PrintDialog.cs, PrintPreviewControl.cs, PropertyGrid.cs,
6647 PropertyManager.cs, RichTextBox.cs,
6648 ScrollBar.cs, SelectionRange.cs, SplitContainer.cs, StatusBar.cs,
6649 StatusBarDrawItemEventArgs.cs, StatusBarPanelClickEventArgs.cs,
6650 StatusStrip.cs, TabControl.cs, TableLayoutColumnStyleCollection.cs,
6651 TableLayoutRowStyleCollection.cs, TableLayoutStyleCollection.cs,
6652 TextBoxBase.cs, ThreadExceptionDialog.cs, ToolStrip.cs,
6653 ToolStripContentPanel.cs, ToolStripDropDown.cs,
6654 ToolStripDropDownMenu.cs, ToolStripItem.cs, ToolStripMenuItem.cs,
6655 ToolStripPanel.cs, ToolStripSeparator.cs,
6656 TreeNode.cs, TreeView.cs, TreeViewHitTestInfo.cs,
6657 UICuesEventHandler.cs, UpDownBase.cs.
6659 2008-03-05 Jonathan Pobst <monkey@jpobst.com>
6661 corcompare - fix parameter names [G-M].
6662 GridColumnStylesCollection.cs, GridItemCollection.cs,
6663 GridTableStylesCollection.cs, GroupBox.cs, Help.cs,
6664 HelpProvider.cs, ImageListStreamer.cs, InputLanguageCollection.cs,
6665 Label.cs, LayoutEngine.cs, LinkClickedEventArgs.cs,
6666 LinkLabel.cs, ListBox.cs, ListView.cs, ListViewGroupCollection.cs,
6667 ListViewItem.cs, Menu.cs, MenuItem.cs, MenuStrip.cs, MouseEventArgs.cs.
6669 2008-03-05 Jonathan Pobst <monkey@jpobst.com>
6671 corcompare - fix parameter names [A-F].
6672 Control.cs, DataGridBoolColumn.cs, DataGridColumnStyle.cs,
6673 DataGridTextBoxColumn.cs, DataGridViewButtonCell.cs,
6674 DataGridViewCellCollection.cs, DataGridViewCellParsingEventArgs.cs,
6675 DataGridViewCheckBoxCell.cs, DataGridViewColumnDesignTimeVisibleAttribute.cs,
6676 DataGridViewComboBoxCell.cs, DataGridViewHeaderCell.cs,
6677 DataGridViewImageCell.cs, DataObject.cs, DomainUpDown.cs,
6678 DrawItemEventArgs.cs, FolderBrowserDialog.cs, FontDialog.cs, Form.cs.
6680 2008-03-03 Ivan N. Zlatev <contact@i-nz.net>
6682 * GridEntry.cs: Do not convert not only if the types match,
6683 but also if the property type is assigneable from the value's
6687 2008-03-03 Ivan N. Zlatev <contact@i-nz.net>
6689 * PropertyGridView.cs:
6690 - Subscribe to the listbox only once and not everytime.
6691 - Update the textbox even if SetValue fails.
6692 - Close the listbox before calling TrySetValue just in case.
6695 2008-03-03 Jonathan Pobst <monkey@jpobst.com>
6697 * Control.cs: Hide ICollection.CopyTo from the 1.1 profile.
6699 2008-03-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6701 * ListView.cs: Implement support for custom column width based on
6702 Columns collection (we were previously using this collection only
6706 2008-03-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6708 * ListViewItem.cs: For Tile view, always set bounds for the first
6709 subitem (which is the main one), and also don't let Width be larger
6710 than ListView.TileSize.Width. Improve code readibility also.
6711 * ThemeWin32Classic.cs: When painting the ListViewItem instances
6712 in Tile view, _always_ use the NoWrap flag.
6715 2008-02-29 Ivan N. Zlatev <contact@i-nz.net>
6717 * PropertyGrid.cs: Check for null PropertyDescriptor.Name just
6719 * GridEntry.cs: For MS compitability make all child properties
6720 readonly if the parent is readonly. Ugh.
6721 [Fixes bug #365945 and #365944]
6723 2008-02-29 Andreia Gaita <avidigal@novell.com>
6725 * HtmlHistory.cs: Fix sigs for Forward and Back to navigate by index
6726 relative to the history
6728 2008-02-29 Andreia Gaita <avidigal@novell.com>
6730 * HtmlElement.cs: More handlers for mouse and key events
6732 2008-02-28 Andreia Gaita <avidigal@novell.com>
6734 * WebBrowserBase.cs: MouseClick sig changed.
6735 * HtmlHistory.cs: Implement history navigation
6736 * HtmlElement.cs: Add event handlers, and connect them.
6738 2008-02-28 Ivan N. Zlatev <contact@i-nz.net>
6741 - Use PropertyDescriptor.DisplayName instead of .Name for Label,
6742 so that DisplayNameAttribute doesn't get ignored.
6743 - Check for ParenthesizeNameAttribute and parenthesize the Label.
6744 - Add support for PasswordPropertyTextAttribute
6745 * PropertyGridView.cs: Check if an entry is a password.
6746 [Fixes bugs #365589, #365586, #365588]
6748 2008-02-28 Andreia Gaita <avidigal@novell.com>
6750 * PropertyGridView.cs: Revert the message filtering change, as we
6751 need it to block after all. Remove block parameter, unnecessary.
6753 2008-02-27 Jonathan Pobst <monkey@jpobst.com>
6755 * UserControl.cs: Better implementation of GetPreferredSize.
6756 First step to fixing bug #361441.
6758 2008-02-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6760 * Binding.cs: Actually implement data binding support for
6761 classes implementing IBindableComponent.
6762 * ControlBindingsCollection.cs: Likewise.
6764 2008-02-26 Andreia Gaita <avidigal@novell.com>
6766 * PropertyGridView.cs: Use a message filter to check when to
6769 2008-02-26 Andreia Gaita <avidigal@novell.com>
6771 * Application.cs: Change the message_filters loop so a filter
6772 can be removed while looping.
6774 2008-02-26 Ivan N. Zlatev <contact@i-nz.net>
6776 * GridEntry.cs: Optimization in ToggleValue so that it caches
6778 * PropertyGridView.cs: An optimization so that the property isn't
6779 re-read twice for each StandardValue added to the drop-down menu.
6780 Patch by Andy Hume <andyhume32@yahoo.co.uk> under the MIT/X11
6784 2008-02-26 Jonathan Pobst <monkey@jpobst.com>
6786 * Application.cs: Apply patch from Justin Cherniak to match
6787 MS better for ProductName, ProductVersion, and CompanyName.
6790 2008-02-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6792 * Binding.cs: Actually implement 2.0 NullValue property. Also
6793 when changing the formatting related properties, only update the state
6794 if formatting_enabled is true (we don't mind otherwise).
6796 2008-02-25 Jonathan Pobst <monkey@jpobst.com>
6798 * ToolStrip.cs: Don't raise ItemClicked for disabled items.
6801 2008-02-25 Ivan N. Zlatev <contact@i-nz.net>
6803 * GridEntry.cs: Use the PropertyDescriptor.PropertyType instead
6804 of GetType on the current value as it uses reflection to
6805 determine the type. This fixes the case where the new value is
6808 2008-02-25 Ivan N. Zlatev <contact@i-nz.net>
6810 * PropertyGridView.cs: Limit mousewheel scrolling to not scroll
6813 2008-02-24 Luke Page <luke.a.page@gmail.com>
6815 * Line.cs, TextControl.cs: Implement offset x and y so that a
6816 document doesn't have to begin at (0,0) on the viewpoint.
6817 * TextBox.cs, TextBoxBase.cs: RightToLeft switches the scroll
6818 bars and switches the text alignment (and therefore is now
6819 implemented for textbox). Fixes #321383.
6821 2008-02-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6823 * Binding.cs: Actually implement 2.0 FormatString and FormatInfo
6824 properties. Also when changing FormattingEnabled update the control
6825 property -as .Net does-.
6827 2008-02-22 Carlos Alberto Cortez <calberto.cortez@Å‹mail.com>
6829 * ControlBindingsCollection.cs: Add the missing 2.0 Add overloads.
6830 * Binding.cs: Add stubs for the overloads of the Add method in
6833 2008-02-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6835 * Binding.cs: PullData () returns a false value if we got an exception.
6836 Also when validating the control and we get an error, instead of
6837 setting the value of the previous one, cancel the event (tested in 1.1
6840 2008-02-22 Jonathan Pobst <monkey@jpobst.com>
6842 * TreeView.cs: Make selected_node and highlighted_node internal.
6843 * TreeNodeCollection.cs: Reset selected_node and highlighted_node
6844 to null when Nodes.Clear is called.
6847 2008-02-21 Jonathan Pobst <monkey@jpobst.com>
6849 * FontDialog.cs: Ensure that when the Font is set in code,
6850 all the gui pieces are updated accordingly.
6853 2008-02-21 Jonathan Pobst <monkey@jpobst.com>
6855 * TextRenderer.cs: Respect proposed size for MeasureString.
6856 * ThemeWin32Classics.cs: If our CheckBox/RadioButton isn't
6857 autosize, use a proposed width to force wrapping for long text.
6860 2008-02-21 Jonathan Pobst <monkey@jpobst.com>
6862 * TreeView.cs: Factor in checkboxes = false and state images in
6863 to HitTest. [Fixes bug #363360]
6865 2008-02-21 Jonathan Pobst <monkey@jpobst.com>
6867 * ThemeWin32Classic.cs: Only look at the Date part of a DateTime
6868 when drawing the selected range.
6871 2008-02-21 Jonathan Pobst <monkey@jpobst.com>
6873 * ToolStripContainer.cs: Add SupportsTransparentBackColor and
6874 ResizeRedraw control styles.
6877 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
6879 * TreeView.cs: StateImages are basically custom checkboxes, so
6880 factor their size the same as real checkboxes when determining
6884 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
6886 * MessageBox.cs: Make the message box wider if the form caption
6887 is longer than the text in the form.
6890 2008-02-20 Ivan N. Zlatev <contact@i-nz.net>
6892 * PropertyGridView.cs: Fix a NRE when closing the drop down form.
6894 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
6896 * TreeNode.cs: Guard against an NRE when the parent's
6897 StateImageList hasn't been set.
6900 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
6902 * SplitContainer.cs: Add SupportsTransparentBackColor and
6903 OptimizedDoubleBuffering control styles.
6906 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
6908 * Application.cs: For the app data paths and the registry key paths,
6909 ensure they are created before returning them to the user.
6912 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
6914 * Application.cs: Guard against an NRE in CompanyName and
6917 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
6919 * Application.cs: For CompanyName, ProductName, and ProductVersion,
6920 make sure we handle all three cases correctly: attribute is present,
6921 attribute is present but is an empty string, and attribute is not
6924 2008-02-20 Ivan N. Zlatev <contact@i-nz.net>
6926 * PropertyGridView.cs:
6927 - Fix a NRE that caused a test failure
6928 - Another performance improvement - cache the standard values
6931 2008-02-19 Jonathan Pobst <monkey@jpobst.com>
6933 * ComboBox.cs: Fix previous change to affect both 1.1 and 2.0
6936 2008-02-19 Ivan N. Zlatev <contact@i-nz.net>
6938 * PropertyGridView.cs: Fix a big performance bug.
6940 2008-02-19 Jonathan Pobst <monkey@jpobst.com>
6942 * SelectionRange.cs: Apply patch from Andy Hume to make
6943 constructor behavior more accurate. [Fixes bug #362117]
6945 2008-02-19 Andreia Gaita <avidigal@novell.com>
6947 * Control.cs: Added a new flag is_disposing to track if the
6948 window is currently in the process of being disposed of.
6949 This is used so that, when firing visibility changes triggered
6950 by unparenting controls during Dispose, the control doesn't
6953 2008-02-19 Jonathan Pobst <monkey@jpobst.com>
6955 * ComboBox.cs: Set height to preferred height when the handle
6956 is created. [Fixes bug #360862]
6958 2008-02-18 Andreia Gaita <avidigal@novell.com>
6960 * XplatUIX11.cs: Create FosterParent with border width at 0.
6961 With the previous value of 4, everytime a control got reparented
6962 from parent = null, it's location would be shifted right and
6963 down by 4, since these coordinates would be offset by the
6964 FosterParent's border width.
6966 2008-02-18 Ivan N. Zlatev <contact@i-nz.net>
6968 * Control.cs: During diposing firstly remove ourselfes from
6969 the parent and *then* destroy our handle, because removing
6970 ourselfes from the parent controls collection causes
6971 VisibilityChange, etc events, which require a handle and end
6972 up recreating the control.
6974 2008-02-17 Ivan N. Zlatev <contact@i-nz.net>
6976 * GridEntry.cs: Set expanded state before notifying that the
6977 expansion has taken place.
6978 * PropertyGridView.cs:
6979 - Set the propertygridtextbox text to the selected
6980 StandardValue before proceeding to setting it.
6981 - Scrolling bugfixes.
6983 2008-02-16 Ivan N. Zlatev <contact@i-nz.net>
6986 - Fix ValueText to not return null.
6987 - Fix conversion error reporting to actually happen.
6988 * PropertyGridView.cs: Set entry only if the text has changed.
6991 2008-02-16 Ivan N. Zlatev <contact@i-nz.net>
6994 - Fix handling of a null current value.
6995 - Swallow editor exceptions.
6998 2008-02-16 Ivan N. Zlatev <contact@i-nz.net>
7000 * PropertyGrid.cs: Clear current items first thing before
7001 repopulating subitems.
7003 - Handle null StandardValuesCollection.
7004 - Mark as not editable if there is no PropertyDescriptor and
7005 if the Converter cannot convert from string.
7006 [Part of fix for bugs #360666 and #358332]
7008 2008-02-15 Luke Page <luke.a.page@gmail.com>
7009 * MaskedTextBox.cs: Now skips non editable characters after a
7010 character has been entered and we are progressing to the next
7011 position in the MaskedTextBox.
7013 2008-02-15 Luke Page <luke.a.page@gmail.com>
7014 * TextBoxBase.cs: Handles MouseDown when shift key is clicked so
7015 that it changes the selection rather than just repositioning the
7016 cursor. Fixes Bug #360873.
7018 2008-02-15 Luke Page <luke.a.page@gmail.com>
7019 * TextBoxBase.cs, TextControl.cs, RichTextBox.cs: TextChanged fires
7020 when Undo/Redo changes the text. Undo/Redo/Undo/Redo now works
7021 correctly. See #359330
7023 2008-02-15 Andreia Gaita <avidigal@novell.com>
7025 * XplatUIX11.cs: If the handle is null when posting a message, use the
7026 current thread queue to post instead. Fixes #332409
7028 * SendKeys.cs: Slight optimization
7030 2008-02-14 Ivan N. Zlatev <contact@i-nz.net>
7032 * PropertyGrid.cs, PropertyGridView.cs:
7033 Fix multiple scrolling and sizing issues.
7036 2008-02-12 Ivan N. Zlatev <contact@i-nz.net>
7038 * PropertyGridView.cs: Ensure that drop down editors are shown
7039 in the WorkingArea of the screen.
7042 2008-02-12 Ivan N. Zlatev <contact@i-nz.net>
7044 * GridEntry.cs: Fail silently when UITypeEditor is missing.
7047 2008-02-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7049 * Binding.cs: Implement 2.0 DataSourceNullValue property.
7051 2008-02-11 Ivan N. Zlatev <contact@i-nz.net>
7053 * PropertyGridView.cs:
7054 - Clear the controls in the drop down form after it is hidden.
7055 - Fix Width sizing of the dropdown editors to match MSFT.
7057 2008-02-11 Ivan N. Zlatev <contact@i-nz.net>
7059 * PropertyGridView.cs:
7060 - Fix height for drawing the grid entry
7061 text value, so that it clips multiline text properly.
7062 - Fix unfocusing to match MSFT.
7064 2008-02-11 Ivan N. Zlatev <contact@i-nz.net>
7066 * PropertyGrid.cs: Do not populate subgriditems unless expandable.
7067 Fixes a bug where on repopulation after value changed items become
7070 2008-02-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7072 * Binding.cs: For the 2.0 profile, look for a
7073 'PropertyChanged' event in the target control, and add checks for
7074 DataSourceUpdateMode property to change -or not- the data source
7075 from validation/control property change.
7077 2008-02-10 Atsushi Enomoto <atsushi@ximian.com>
7079 * Binding.cs : build fix (operator == is not overriden in 1.x. Do
7080 not compare struct with null in 2.0).
7082 2008-02-10 Luke Page <luke.a.page@gmail.com>
7084 * MaskedTextBox.cs: UseSystemPasswordChar updates PasswordChar, PasswordChar
7085 updates the provider and if not using a provider, uses the internal document
7086 class implementation of password char. Also when showing text, uses display string
7087 from the provider, instead of the actual text.
7089 2008-02-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7091 * Binding.cs: Ooooops, forgot to take into account the data_source
7092 and binding_member_info null case (it was breaking the Binding tests).
7094 2008-02-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7096 * Binding.cs: Implement support for data source changes exposed by
7097 'PropertyNameChanged' events, and update the control property as
7100 2008-02-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7102 * Binding.cs: Implement 2.0 WriteValue method.
7104 2008-02-08 Jonathan Pobst <monkey@jpobst.com>
7106 Commit patch from James Purcell for better AutoScale implementation:
7108 * ScaleControl should call GetScaledBounds with the control's total size rather
7109 than client size. GetScaledBounds should handle ignoring the borders in its
7110 calculations. Cleaned up ScaleControl/GetScaledBounds overrides in controls
7111 (for the most part they just call the base code now since that is fixed).
7112 * Added ScaleChildrenInternal to allow controls to disable scaling of children
7113 without having to override ScaleChildren (since none of .NET's controls do).
7114 This is required for most controls in Mono that have scrollbars to prevent the
7115 scrollbars from being moved/resized.
7116 * Nested ContainerControls can have a different scale mode than their parent.
7117 This is briefly mentioned in MSDN but is buggy in MS.NET (the runtime and
7118 designer produce different results both of which look incorrect).
7119 * Default AutoScaleMode for ContainerControl should be Inherit.
7120 * Simplified workaround for ComboBox scaling issue.
7121 * 1.0 style auto-scaling now uses its own methods instead of sharing 2.0's.
7122 1.0 style auto scaling should scale the whole control's size instead of
7123 ignoring the borders (except for Form) and the rounding is done differently to
7124 preserve control alignment.
7125 * ApplyAutoScaling (used for 1.0 style) should use the rounded result of
7127 * Cleaned up fix for "Bug 355703 - Setting AutoScale = true doesn't stick".
7128 * CurrentAutoScaleDimensions should round the estimated character width instead
7130 * ListBox's GetScaledBounds should always use the height it was set to instead
7131 of the height that was passed in. This prevents rounding errors from
7132 accumulating quickly with IntegralHeight.
7135 2008-02-08 Andreia Gaita <avidigal@novell.com>
7137 * Form.cs: Add a null check (darn it).
7139 2008-02-08 Jonathan Pobst <monkey@jpobst.com>
7141 * MdiClient.cs: Make sure the requesting form actually owns the
7142 control menu items before removing them. Also, use
7143 Suspend/ResumeLayout when adding or removing items so we only
7147 2008-02-08 Jonathan Pobst <monkey@jpobst.com>
7149 * Control.cs: Guard against an NRE in ShowFocusCues.
7152 2008-02-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7154 * Binding.cs: Implement 2.0 ReadValue method and ControlUpdateMode
7155 property, as well as stubbing DataSourceUpdateMode.
7157 2008-02-08 Andreia Gaita <avidigal@novell.com>
7159 * Form.cs: When closing forms, get focus back to the active control of the
7160 active form. [Fixes #341314, corner case]
7162 2008-02-07 Jonathan Pobst <monkey@jpobst.com>
7164 * MdiClient.cs: After we move the scrollbars, invalidate the NC
7165 area, so any old scrollbar artifacts are cleaned up.
7168 2008-02-07 Jonathan Pobst <monkey@jpobst.com>
7170 * MdiWindowManager.cs: If we are maximized and using MainMenuStrip
7171 for our menus, display that control box menu instead of the 1.1
7174 2008-02-07 Jonathan Pobst <monkey@jpobst.com>
7176 * MdiControlStrip.cs: Add property to access the mdi form tied to
7178 * MdiClient.cs: Be smarter about removing and adding toolstripitems
7179 to the implicitly merged menu. Every time we clicked the form, items
7180 were getting removed and the re-added, causing the form to jump around
7181 as the menu resized.
7183 2008-02-07 Jonathan Pobst <monkey@jpobst.com>
7185 * MdiClient.cs: Make sure the NormalBounds always gets set. It
7186 was being reset by the implicit menu merge for menustrips.
7189 2008-02-07 Jonathan Pobst <monkey@jpobst.com>
7191 * Form.cs: Don't do the previous change when WindowState = Normal,
7192 or it messes up where the window is placed. Fixes test failure.
7194 2008-02-07 Jonathan Pobst <monkey@jpobst.com>
7196 * Form.cs: When becoming visible, if we are an MDI child, call
7197 SetWindowState with a dummy old_state so that changes will actually
7199 [Fixes the 2nd part of bug #325473]
7201 2008-02-07 Andreia Gaita <avidigal@novell.com>
7203 * Control.cs: Reset properties to their pre parent-change values in case
7204 the new parent == null (in which case we're basically removing the control,
7205 and don't want any events fired due to fake property changes)
7208 2008-02-06 Ivan N. Zlatev <contact@i-nz.net>
7210 * PropertyGridView.cs:
7211 - Refactor SetValue to allow setting the value
7212 when a custom editor is used, but the entry is not editable.
7213 - Remove the custom editor control on CloseDropDown.
7216 2008-02-06 Andreia Gaita <avidigal@novell.com>
7218 * PrintControllerWithStatusDialog.cs: Set PrintFileName value through
7219 reflection only on 1.1, this property is public on system.drawing on 2.0.
7222 2008-02-06 Andreia Gaita <avidigal@novell.com>
7224 * WebBrowser.cs: Do a normal page refresh by default.
7226 2008-02-05 Andreia Gaita <avidigal@novell.com>
7228 * XplatUIWin32.cs, XplatUICarbon.cs: set the hwnd.Mapped flag when we create
7229 the window so that the check on Control.UpdateZOrderOfChild passes on non-X
7230 platforms. Fixes #359036
7232 Note: Control.UpdateZOrderOfChild needs to be rewritten to not rely on
7233 platform-specific flags.
7235 2008-02-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7237 * Binding.cs: Add 2.0 BindableComponent property - just return control
7240 2008-02-05 Everaldo Canuto <ecanuto@novell.com>
7242 * MenuAPI.cs: Check if control is disposable when track popup menu. Thanks
7243 Jonathan for this patch. Fixes #358442.
7245 2008-02-05 Jonathan Pobst <monkey@jpobst.com>
7247 * Form.cs: If we change the active MDI child form, let the others
7248 know they need to repaint their title bar so it will appear inactive.
7249 [Fixes part 1 of bug #325473]
7251 2008-02-05 Ivan N. Zlatev <contact@i-nz.net>
7253 * PropertyGridView.cs: Do not trucate custom editors' width
7254 and align them to the left.
7255 [Fixes #358353 and #358349]
7257 2008-02-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7259 * BindingsCollection.cs: Implement 2.0 CollectionChanging event.
7260 Also fix the arguments passed to CollectionChangeEventArgs in the
7263 2008-02-04 Geoff Norton <gnorton@novell.com>
7265 * Hwnd.cs: The conversion to Quartz coordinates happens in
7266 System.Drawing. Removing this translation from here.
7268 2008-02-04 Ivan N. Zlatev <contact@i-nz.net>
7270 * PropertyGrid.cs, PropertyGridView.cs, GridEntry.cs,
7271 CategoryGridEntry.cs, RootGridEntry.cs, GridItem.cs,
7272 GridItemCollection.cs:
7273 PropertyGrid rewrite part 2. Tons of bugfixes and new features.
7275 2008-02-04 Geoff Norton <gnorton@novell.com>
7277 * X11Keyboard.cs: VK_MENU should send a KEYUP instead of
7278 SYSKEYUP if any other key has been pressed in the mean time.
7281 2008-02-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7283 * ListView.cs: In ItemControl.ItemsMouseMove, only fire ItemDrag event
7284 when the item in current position is different than 0. Also, save the
7285 item index in the beginning of the operation, instead of getting the
7286 index of the item when the event is actually performed. Lastly clean
7287 the related fields in ItemsMouseUp if the ItemDrag operation wasn't
7291 2008-02-03 Jonathan Pobst <monkey@jpobst.com>
7293 * Form.cs: Alt-Minus for MDI children system menu should work
7294 with both the minus keys on the keyboard.
7297 2008-02-03 Jonathan Pobst <monkey@jpobst.com>
7299 * Control.cs: Don't invalidate on region change. The WM should
7300 take care of this automagically. Keeps us out of an infinite
7301 paint loop if someone changes the Region in the OnPaint.
7304 2008-02-04 Ivan N. Zlatev <contact@i-nz.net>
7306 * ImageIndexConverter.cs: ConvertFrom must handle "(none)".
7308 2008-02-03 Jonathan Pobst <monkey@jpobst.com>
7310 * DateTimePicker.cs: Apply patch from Srikanth Madikeri so we drop
7311 down the MonthCalendar only on F4, not Alt+F4.
7312 * MonthCalendar.cs: If we are a popup, close ourselves on Alt+F4.
7315 2008-02-03 Jonathan Pobst <monkey@jpobst.com>
7317 * ThemeWin32Classic.cs: For MonthCalendar, draw a dark border
7318 if its part of a DateTimePicker, else, use the back color.
7321 2008-02-03 Jonathan Pobst <monkey@jpobst.com>
7323 * Hwnd.cs: Use GraphicContext instead of the uninitialized bmp_g.
7326 2008-02-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7328 * CurrencyManager.cs: When we get a ListChanged event from our source,
7329 always fire our own ListChanged event, as .Net does.
7331 2008-02-03 Luke Page <luke.a.page@gmail.com>
7333 * RichTextBox.cs: AutoSize now defaults to false. Fixes Bug
7336 2008-02-03 Luke Page <luke.a.page@gmail.com>
7338 * TextBoxBase.cs, RichTextBox.cs, TextControl.cs: Sets richtext
7339 property. Removed if for richtext property that was always true.
7340 PgUp/PgDn at top/bottom fixed for RTB. Fixes bug #358237.
7342 2008-02-03 Luke Page <luke.a.page@gmail.com>
7344 * TextBoxBase.cs - commited patch from James Purcell that
7345 correctly sets the FixedHeight control style when the MultiLine
7346 property is changed on a TextBox control. Fixes bug 358229.
7348 2008-02-02 Luke Page <luke.a.page@gmail.com>
7350 * Line.cs, LineTag.cs, RichTextBox.cs, TextControl.cs
7351 Fixes bug 351938 - caret is positioned correctly when drawn
7352 and when calculating textual position of caret, no longer
7353 has a NRE in certain situations.
7355 2008-02-01 Geoff Norton <gnorton@novell.com>
7357 * Hwnd.cs: Ensure that windows moved into -'ve coordinate space
7358 get that region removed from the paint event.
7359 * XplatUICarbon.cs: Remove the window mapping after disposing of
7360 window. Prevents a crash with handle reuse. Optimize exposes
7361 only onto visible windows (rare; but possible).
7363 2008-02-01 Jonathan Pobst <monkey@jpobst.com>
7365 * UpDownBase.cs: Make sure the internal textbox calls the base's
7366 OnMouseDown and OnMouseUp so the textbox will function correctly.
7367 There were notes saying it doesn't chain up, but its an internal
7368 class, so our implementation may differ.
7371 2008-02-01 Jonathan Pobst <monkey@jpobst.com>
7373 * ListBox.cs: Fix a logic error and don't process MouseDown
7374 for mouse buttons other than Left.
7376 2008-02-01 Jonathan Pobst <monkey@jpobst.com>
7378 * Control.cs: Remove HeightInternal.
7379 * ListBox.cs: Commit patch from James Purcell that correctly
7380 calculates heights for ListBoxen.
7383 2008-02-01 Jonathan Pobst <monkey@jpobst.com>
7385 * Label.cs: Apply patch from James Purcell that corrects the
7386 signature of the AutoSize property.
7389 2008-02-01 Jonathan Pobst <monkey@jpobst.com>
7391 * ListBox.cs: Don't throw [Mouse]Click events for buttons
7392 other than the left mouse button.
7394 2008-01-31 Jonathan Pobst <monkey@jpobst.com>
7396 * Control.cs: Remove my awesome optimization as it caused some
7397 regressions with control ordering. :(
7400 2008-01-31 Ivan N. Zlatev <contact@i-nz.net>
7402 * PropertyGridView.cs: Fix a NRE on double click when there is no
7405 2008-01-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7407 * BindingManagerBase.cs: Implement IsBindingSuspended 2.0 property.
7409 2008-01-30 Jonathan Pobst <monkey@jpobst.com>
7411 * ListBox.cs: Call MouseClick and MouseDoubleClick.
7414 2008-01-29 Jonathan Pobst <monkey@jpobst.com>
7416 * Hwnd.cs: Make bmp, bmp_g variables threadstatic and private.
7417 * Control.cs, DataGridViewCell.cs, LineTag.cs: Use Hwnd.GraphicsContext
7418 instead of Hwnd.bmp_g.
7420 2008-01-29 Jonathan Pobst <monkey@jpobst.com>
7422 * TextRenderer.cs: Don't maintain private bitmap/graphics contexts.
7423 Use the Hwnd one instead.
7425 2008-01-29 Jonathan Pobst <monkey@jpobst.com>
7427 * Form.cs: Remove duplicated copy of GetAutoScaleSize.
7429 2008-01-29 Jonathan Pobst <monkey@jpobst.com>
7431 * Form.cs: corcompare for RestoreBounds.
7433 2008-01-29 Jonathan Pobst <monkey@jpobst.com>
7435 * Control.cs: Add MarshalAs attribute to Font getter for corcompare.
7437 2008-01-29 Jonathan Pobst <monkey@jpobst.com>
7439 * Form.cs: Handle Alt-Minus for MDI children forms.
7440 * MdiWindowManager.cs: Make ShowPopup internal so Form can call it.
7441 Add mnemonics to the control menu.
7444 2008-01-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7446 * Binding.cs: Initial implementation bits of FormattingEnabled
7447 property and BindingComplete event (2.0).
7448 * BindingCompleteEventArgs.cs: Internal methods for setting error text
7451 2008-01-28 Jonathan Pobst <monkey@jpobst.com>
7453 * TableLayoutPanel.cs: Draw the table border at 0,0 instead of
7454 table.Location. [Fixes bug #354672]
7456 2008-01-28 Jonathan Pobst <monkey@jpobst.com>
7458 * Form.cs: Handle WM_ENTERSIZEMOVE and WM_EXITSIZEMOVE to raise
7459 ResizeBegin and ResizeEnd. [Fixes bug #346529 for win32]
7461 2008-01-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7463 * ComboBox.cs: When OnDisplayMemberChanged method is reached, instead
7464 of doing all the re-bound work, just invalidate and call SetControlText
7465 to set the updated text of selected item to our textbox.
7468 2008-01-28 Andreia Gaita <avidigal@novell.com>
7470 * HtmlWindow.cs: Add event handler support. Add Document, Frames,
7471 IsClosed, Opener, StatusBarText, Url properties, stub out the remaining
7472 missing properties and methods. Add Load, Unload, Error, GotFocus,
7473 LostFocus, Resize, Scroll events (only load and unload are connected)
7475 2008-01-27 Gert Driesen <drieseng@users.sourceforge.net>
7477 * AccessibleObject.cs: Modified argument names to match MS.
7478 * Button.cs: Modified argument names to match MS.
7479 * BindingContext.cs: Modified argument names to match MS.
7480 * BindingMemberInfo.cs: Modified argument names to match MS.
7481 * ButtonBase.cs: Modified argument names to match MS.
7482 * ComboBox.cs: Modified argument names to match MS.
7483 * Control.cs: Modified argument names to match MS.
7484 * CheckedListBox.cs: Modified argument names to match MS.
7485 * CommonDialog.cs: Modified argument names to match MS.
7486 * DataGrid.cs: Modified argument names to match MS.
7487 * CursorConverter.cs: Modified argument names to match MS.
7488 * ControlPaint.cs: Modified argument names to match MS.
7489 * CheckBox.cs: Modified argument names to match MS.
7490 * ControlBindingsCollection.cs: Modified argument names to match MS.
7491 * BindingSource.cs: Modified argument names to match MS.
7492 * DataFormats.cs: Modified argument names to match MS.
7493 * ContainerControl.cs: Modified argument names to match MS.
7494 * CurrencyManager.cs: Modified argument names to match MS.
7495 * Application.cs: Modified argument names to match MS.
7496 * ContextMenuStrip.cs: Modified argument names to match MS.
7497 * ContextMenu.cs: Modified argument names to match MS.
7498 * BindingManagerBase.cs: Modified argument names to match MS.
7499 * WindowsFormsSection.cs: Fixed line ending.
7501 2008-01-27 Andreia Gaita <avidigal@novell.com>
7503 * PropertyGridView.cs: Rearrange the dropdown loop so that it exits when
7504 detecting that the dropdown toolwindow is hidden. EndLoop outside the
7507 2008-01-26 Gert Driesen <drieseng@users.sourceforge.net>
7509 * PropertiesTab.cs: Fixed argument name of GetDefaultProperty to match
7510 MS. Code formatting.
7512 2008-01-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7514 * Binding.cs: Don't avoid the Format event if the control
7515 property type is object. Also, if the value retrieved by
7516 the data source is null _and_ the control proeprty type
7517 is object, return Convert.DBNull (match .Net).
7518 Fixes part of #324286.
7520 2008-01-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7522 * ListControl.cs: Since we are getting two BinginContextChanged events
7523 for the same binding context instance (when the control is added to
7524 form, and when the form is actually shown), take it into account only the
7525 first time for a given binding context instance.
7526 Fixes part of #324286.
7528 2008-01-26 Ivan N. Zlatev <contact@i-nz.net>
7530 * PropertryGridView.cs: Ops.
7532 2008-01-26 Ivan N. Zlatev <contact@i-nz.net>
7534 * PropertyGridView.cs: Close dropdown form if the owner form is
7538 2008-01-25 Ivan N. Zlatev <contact@i-nz.net>
7540 * PropertyGrid.cs, PropertyGridView.cs, GridEntry.cs, GridItem.cs,
7541 RootGridEntry.cs, CategoryGridEntry.cs:
7542 PropertyGrid rewrite.
7543 - Rewrite all of the control logic in PropertyGrid.
7544 - Rewrite all of the ComponentModel logic in GridEntry.
7545 - Rewrite all UI work in PropertyGridView.
7546 - Many bugfixes, etc.
7548 2008-01-24 Jonathan Pobst <monkey@jpobst.com>
7550 * TableLayoutPanel.cs: Enhance GetPreferredSize to take into account
7551 when all contained controls are autosize or dock-fill. Also take into
7552 account when the total percentage of column/row sizes is not 100%.
7555 2008-01-24 Andreia Gaita <avidigal@novell.com>
7558 - Save a reference to the IDocument in the instance and
7559 use that one instead of going to WebHost.Document; the document that the
7560 WebHost returns might not be the right one (in case of frames).
7561 - Use the hashcode returned from the IDocument interface.
7562 - Implemented: ActiveElement, ActiveLinkColor, All, BackColor, Cookie,
7563 Domain (setter is not supported), Encoding, ForeColor, Forms, Images,
7564 LinkColor, Url, VisitedColor, Window
7567 - Implemented: CanHaveChildren, Children, Document, GetAttribute,
7568 set_Attribute, NextSibling, Parent, TagName, AppendChild,
7569 GetElementsByTagName, GetHashCode, HasAttribute, InsertAdjacentElement,
7570 SetAttribute, Equals, equality operators.
7571 - Added stubs for: AttachEventHandler, DetachEventHandler, Focus,
7572 InvokeMember, RaiseEvent, RemoveFocus, ScrollIntoView,
7574 * HtmlElementCollection.cs: Change implementation to use a generic
7575 collection. Implemented Enumerator and CopyTo
7577 * HtmlHistory.cs: Add constructor, no implementation yet.
7579 * HtmlWindow.cs: Initial implementation with: Name, Parent, Alert,
7580 Confirm, Prompt, Navigation, ScrollTo, Open, OpenNew, GetHashCode,
7581 Equals, equality operators.
7583 * HtmlWindowCollection.cs: Implemented.
7585 * WebBrowser.cs: Use the Navigation object to navigate (WebHost.Navigate
7586 has been deprecated).
7588 * WebBrowserBase.cs: Use Completed event to track document loading
7589 (Navigated has been deprecated)
7591 2008-01-24 Jonatham Pobst <monkey@jpobst.com>
7593 * ThemeWin32Classic.cs: Add tab stops and NoWrap to dropdown MenuItems. Top
7594 level MenuItems do not respect tabs.
7597 2008-01-23 Geoff Norton <gnorton@novell.com>
7599 * XplatUICarbon.cs: Ensure that windows are created in their initial
7600 FormWindowState. Finished fixing Fullscreen windows on Carbon
7602 2008-01-23 Everaldo Canuto <ecanuto@novell.com>
7604 * MenuAPI.cs: When FindForm fails uses FindRootParent to find the control to
7605 be used as grab_control. Also save status of capture before show ContextMenu
7606 and restore it after close.
7608 2008-01-23 Everaldo Canuto <ecanuto@novell.com>
7610 * Control.cs: Internal FindRootParent method added to return high control
7613 2008-01-23 Geoff Norton <gnorton@novell.com>
7615 * Hwnd.cs: Refactor Whole/Client pointer to 1 element for Cursors.
7616 * XplatUICarbon.cs: Refactor some dead code out to Cursor.cs and make
7617 it work again. Handle HITTEST events.
7619 2008-01-23 Geoff Norton <gnorton@novell.com>
7621 * XplatUICarbon.cs: Ensure that we always have a host window. Prevents
7622 a crash in certain cases. Support for fullscreen windows in certain cases.
7624 2008-01-23 Jonathan Pobst <monkey@jpobst.com>
7626 * Form.cs: Don't set AutoScaleMode in AutoScale if we don't have to.
7629 2008-01-23 Geoff Norton <gnorton@novell.com>
7631 * XplatUICarbon.cs: Remove some dead code that was causing warnings.
7633 2008-01-23 Geoff Norton <gnorton@novell.com>
7635 * XplatUICarbon.cs: Re-enabled Carets in QuickDraw as a overlay window.
7637 2008-01-23 Everaldo Canuto <ecanuto@novell.com>
7639 * SplitContainer.cs: Remove unused declarations.
7640 * Binding.cs: Remove unused declarations.
7642 2008-01-23 Everaldo Canuto <ecanuto@novell.com>
7644 * Form.cs: Remove unused declaration of 'active' in Activate method.
7645 * Control.cs: Move declaration of nested_layout inside '#if NET_2_0" to
7646 prevent compilation warnings.
7647 * TextControl.cs: Remove unused declaration of selection_pos_on_line.
7648 * Hwnd.cs: Remove unused declaration of clip in GetClippingRectangles.
7649 * Bindings.cs: Remove unused formatting_enabled declaration.
7650 * ToolTip.cs: Put some methods inside '#if NET_2_0" to prevent compilation
7652 * TreeView.cs: Put some methods inside '#if NET_2_0" to prevent compilation
7654 * PropertyGridView.cs: Remove usused 'ex' declaration.
7655 * DataGridView.cs: Remove unused declarations.
7657 2008-01-23 Everaldo Canuto <ecanuto@novell.com>
7659 [Fixes bugs #343966, #338511 and other non reported (context)menu bugs]
7661 * Form.cs: Remove all active_tracker (used by menu) stuff, it is now moved
7662 to Control class, it makes possible to grab menu to controls that can't
7663 reach Form using parent tree. Handle for WmButtonUp, WmButtonDown and
7664 WmMouseMove removed since it was used only to track menu events.
7667 - Moved all active_tracker stuff from Form.
7668 - ProcessActiveTracker added to prevent code duplicity, now mouse events
7669 can call this method instead of reimplement all necessary code handle for
7671 - Call to ProcessActiveTracker for mouse events (WmButtonUp, WmButtonDown
7675 - Remove special handle to ToolStripOverflow, now we can grab menu to
7676 controls that can't reach Form using parent tree.
7677 - Change type of grab_control from Form to Control.
7679 2008-01-22 Geoff Norton <gnorton@novell.com>
7681 * TextBoxBase.cs: Split up the sizing of controls and placing of
7682 controls. Fixes a bug where scrollbars in Reflector could be sized
7683 wrong and have non-working thumbers.
7685 2008-01-23 Geoff Norton <gnorton@novell.com>
7687 * XplatUI.cs: Refactor environment variables to default support to the
7688 Carbon driver on the Mac.
7690 2008-01-23 Everaldo Canuto <ecanuto@novell.com>
7692 * Label.cs: Uses new LabelPainter for drawing operations.
7693 * ThemeWin32Classic.cs: DrawLabel and LabelDefaultSize removed.
7694 * Theme.cs: DrawLabel and LabelDefaultSize removed.
7696 2008-01-22 Geoff Norton <gnorton@novell.com>
7698 * XplatUICarbon.cs: Enable packing scroll delta into the mouse wParam
7700 2008-01-22 Jonathan Pobst <monkey@jpobst.com>
7702 * ThemeWin32Classic.cs: Run Flat, Button appearance, 2.0 CheckBoxes
7703 through the normal flat button code and don't draw the checkbox glyph.
7704 * Theme.cs: Button->ButtonBase signature change.
7707 2008-01-22 Everaldo Canuto <ecanuto@novell.com>
7709 * LinkLabel.cs: Uses new class LinkLabelPainter.
7711 2008-01-22 Everaldo Canuto <ecanuto@novell.com>
7713 * MessageBox.cs: Adjust right border space, we don't need to add
7714 "space_border*2" two times.
7716 2008-01-22 Jonathan Pobst <monkey@jpobst.com>
7718 * ScrollableControl.cs: With the advent of 2.0's Padding, DockPadding
7719 becomes a wrapper around Padding.
7720 [Fixes a part of bug #354676]
7722 2008-01-22 Geoff Norton <gnorton@novell.com>
7724 * Mime.cs: Avoid a needles exception on OSX if we dont have a buffer
7725 acquired. Also ensure the buffer is large enough to grab the header
7726 we need on linux boxes.
7728 2008-01-22 Jonathan Pobst <monkey@jpobst.com>
7730 * Control.cs: Implement a custom enumerator so people can delete
7731 from the Controls collection while in a foreach.
7734 2008-01-22 Ivan N. Zlatev <contact@i-nz.net>
7736 * PropertyGridView.cs: Fix focusing behavior:
7737 - Tab should focus the grid text box.
7738 - Clicking on the labels shouldn't focus the grid text box.
7740 2008-01-22 Ivan N. Zlatev <contact@i-nz.net>
7742 * PropertyGridView.cs: IsValueTypeGridItem should return true
7745 2008-01-22 Ivan N. Zlatev <contact@i-nz.net>
7747 * PropertyGrid.cs, GridEntry.cs, PropertyGridView.cs:
7748 - Renamed GridEntry.SelectedObjects to TargetObjects to better
7749 reflect the property name role.
7750 - PropertyGrid.GetTarget is not required as the target is known
7752 - Setting values will handle value types as a special case now and
7753 populate them up in the chain.
7756 2008-01-21 Jonathan Pobst <monkey@jpobst.com>
7758 * Hwnd.cs: Create a public property for the Graphics we keep around.
7760 2008-01-21 Ivan N. Zlatev <contact@i-nz.net>
7762 * PropertyGridView.cs: Just hide the grid textbox and do nothing more
7763 when the current object selection changes.
7764 Fixes failing test SelectedObject_Null2.B5.
7766 2008-01-21 Ivan N. Zlatev <contact@i-nz.net>
7768 * PropertyGrid.cs: Process Browsable properties with
7769 DesignerSerializationVisibilityAttribute.Content as being expandable.
7770 This seems also what MS does. Without this e.g SplitContainer.Panel1/2
7771 will not be expandable. We should be nested components-friendly now.
7773 2008-01-21 Andreia Gaita <avidigal@novell.com>
7775 * WebBrowserBase.cs: Check if control was loaded properly,
7776 don't bind if it wasn't.
7778 * HtmlDocument.cs: Implement CreateElement, Equals, Focus,
7779 GetElementFromPoint, equality operators, OpenNew, Write.
7780 Remove extra set_Body
7782 2008-01-18 Jonathan Pobst <monkey@jpobst.com>
7784 * ContainerControl.cs, Control.cs: Apply patch from James Purcell
7785 that makes our AutoScale* stuff more tolerant to different orders
7786 of being set. [Fixes bug #354669]
7788 2008-01-18 Ivan N. Zlatev <contact@i-nz.net>
7790 * PropertyGridView.cs, PropertyGridTextBox.cs:
7791 Drop WM_LBUTTONDOWN msg sending and use focusing instead.
7792 [Fixes #339005 and #348209]
7794 2008-01-18 Ivan N. Zlatev <contact@i-nz.net>
7796 * PropertyGridView.cs: Hide the grid text box before adjusting it
7797 for the newly selected GridItem.
7800 2008-01-18 Jonathan Pobst <monkey@jpobst.com>
7802 * Form.cs: Give MDI children the opportunity to cancel the parent form
7803 attempting to close. Ensure that all [Form]Clos[ing,ed] events get called
7804 properly for both the parent and child.
7805 * Application.cs: Signature of internal method changed, pass the previous
7809 2008-01-17 Ivan N. Zlatev <contact@i-nz.net>
7811 * PropertyGridView.cs: Set the property value only if it has changed.
7814 2008-01-17 Jonathan Pobst <monkey@jpobst.com>
7816 * MenuAPI.cs: Windows sends us MOUSEMOVE messages when any key is pressed.
7817 If the mouse hasn't actually moved, ignore these messages so the currently
7818 highlighted menuitem isn't reset to the one under the mouse.
7821 2008-01-17 Ivan N. Zlatev <contact@i-nz.net>
7823 * PropertyGridView.cs: When the property changes Invalidate the GridItem
7824 in order for the properties with UITypeEditor.GetPaintValueSupported == true
7825 to reflect the change visually.
7828 2008-01-17 Jonathan Pobst <monkey@jpobst.com>
7830 * ButtonBase.cs: Add LineLimit to 1.1 button drawing, and TextBoxControl
7831 to 2.0 button drawing.
7832 * ThemeWin32Classic.cs: Ensure that the rectangle we are using to draw
7833 the button text is tall enough for one line. LineLimit says it will
7834 always draw at least one line, but it is a lie.
7837 2008-01-17 Atsushi Enomoto <atsushi@ximian.com>
7839 * XplatUIStructs.cs, X11Keyboard.cs :
7840 added some more VK_* keys to be handled.
7842 2008-01-16 Andreia Gaita <avidigal@novell.com>
7844 * Control.cs: Check if there is a container before setting or getting
7845 the validation flag.
7847 2008-01-16 Andreia Gaita <avidigal@novell.com>
7849 * ContainerControl.cs: Add flag to track if a control cancels validation,
7850 so we don't fire click events.
7853 - (HandleClick) Check if validation was cancelled before firing the click
7854 events (doubleclicks are fired, but not clicks)
7855 - (WmLButtonDown) Reset validation flag. The flag is normally reset on
7856 ContainerControl.set_ActiveControl, but in the case of non-selectable
7857 controls, like a Label, activecontrol is not set.
7859 * ButtonBase.cs: Only fire clicks if validation passes.
7863 2008-01-16 Geoff Norton <gnorton@novell.com>
7865 * XplatUICarbon.cs: Implement GetAutoScaleSize to fix Reflector on
7868 2008-01-16 Jonathan Pobst <monkey@jpobst.com>
7870 * FolderBrowserDialog.cs: If we cannot interpret the user's requested
7871 SelectedPath, just display the default dialog instead of crashing.
7874 2008-01-16 Geoff Norton <gnorton@novell.com>
7876 * XplatUICarbon.cs: Flicker be gone! Generate our messages in
7877 AddExpose instead of trusting apples compositing manager which doesn't
7878 work for our use case. Remove some dead code causing warnings and
7879 redecorate some other code to prevent warnings.
7881 2008-01-16 Geoff Norton <gnorton@novell.com>
7883 * XplatUICarbon.cs: Avoid some unecessary invalidation calls when
7884 carbon signals us to redraw. Fixes another portion of the flickering bug
7886 2008-01-16 Everaldo Canuto <ecanuto@novell.com>
7888 * Form.cs: Prevent the MdiParent property to be set when value is the same
7889 as value already set. Fixes bug #328019.
7891 2008-01-16 Everaldo Canuto <ecanuto@novell.com>
7893 * Form.cs: Don't set mdi_parent as null when mdi window close is prevented,
7894 it prevents NRE when closing mdi child windows. Fixes bug #325211.
7896 2008-01-16 Everaldo Canuto <ecanuto@novell.com>
7898 * InternalWindowManager.cs: Invalidade close button after mouse up when
7899 mdi form is prevented to close.
7901 2008-01-16 Everaldo Canuto <ecanuto@novell.com>
7903 * MdiClient.cs: Fix the minimum bounds on child window sizes when cascade,
7904 thanks to Andy Hume. Fixes bug #325433.
7906 2008-01-16 Andreia Gaita <avidigal@novell.com>
7908 * LinkLabel.cs: Reset focused_index when resellecting the control.
7911 2008-01-15 Geoff Norton <gnorton@novell.com>
7913 * XplatUICarbon.cs: Rework Grab/Ungrab handling to send some needed
7916 2008-01-15 Jonathan Pobst <monkey@jpobst.com>
7918 * Form.cs: Change 2 more AutoScaleBaseSize calculation to round instead
7921 2008-01-15 Jonathan Pobst <monkey@jpobst.com>
7923 * ContainerControl.cs: Setting AutoScaleMode to anything should set
7924 Form.AutoScale to false.
7925 * Form.cs: Setting AutoScale to true should set AutoScaleMode to None.
7926 AutoScaleBaseSize should be changed on Font change unless it has been
7930 2008-01-15 Everaldo Canuto <ecanuto@novell.com>
7932 * MenuAPI.cs: On instance of MenuTracker check if source control is
7933 ToolStripOverflow and use properly method to find form.
7936 2008-01-15 Everaldo Canuto <ecanuto@novell.com>
7938 [Fixes bug #323241 Transparent toolbar support]
7940 * ToolBar.cs: Define ToolBarStyles.TBSTYLE_FLAT in CreateParams when toolbar
7943 * Control.cs: Paint background as transparent in case of TBSTYLE_FLAT is
7944 defined in control style to mimic win32 behavior.
7946 * ThemeWin32Classic.cs: Don't paint background for flat apparence toolbar,
7947 it will be transparent.
7949 2008-01-14 Everaldo Canuto <ecanuto@novell.com>
7951 * XplatUIStructs.cs: Implement ToolBarStyles to use in Style property of
7952 CreateParams for ToolBar controls.
7954 2008-01-14 Jonathan Pobst <monkey@jpobst.com>
7956 * Form.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs: Forms with
7957 FixedToolWindow, SizeableToolWindow, or None for border styles have
7958 different minimum sizes than regular forms. Implemented to fix
7959 regression in PDN with toolbox being too wide.
7961 2008-01-14 Andreia Gaita <avidigal@novell.com>
7963 * HtmlElementCollection.cs: Implemented
7965 * HtmlElement.cs: Implemented:
7973 * HtmlDocument.cs: Implemented GetElementsByTagName.
7975 2008-01-14 Jonathan Pobst <monkey@jpobst.com>
7977 * Screen.cs: Stub BitsPerPixel to always return 32.
7979 2008-01-14 Jonathan Pobst <monkey@jpobst.com>
7981 * Form.cs: Implement RestoreBounds.
7983 2008-01-14 Jonathan Pobst <monkey@jpobst.com>
7985 * RichTextBox.cs, ToolStrip.cs: Fix some typos pointed out by
7986 Sebastien and his fabulous magical problem-finding machine:
7987 Gendarme. Also put a MonoTodo on AutoWordSelect since we don't
7988 respect the value set.
7990 2008-01-14 Everaldo Canuto <ecanuto@novell.com>
7992 * Form.cs: In WmWindowPosChanged call base.WndProc including when state is
7993 minimized. Fixes bug #325122 for Win32. Thanks Srikanth Madikeri.
7995 2008-01-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7997 * X11Dnd.cs: Since we don't propagate the WM_LBUTTONUP/WM_RBUTTONUP
7998 messages (to match .Net), we need to remove the capture ourselves.
8000 2008-01-11 Jonathan Pobst <monkey@jpobst.com>
8002 * MenuAPI.cs: If we get an Alt-F4, release our capture so Windows
8003 will process the message and close our window.
8006 2008-01-10 Geoff Norton <gnorton@novell.com>
8008 * XplatUICarbon.cs: Clip the Graphics context to the invalid area
8009 tracked in the Hwnd. Only invalidate the dirty region to the Carbon
8012 2008-01-10 Jonathan Pobst <monkey@jpobst.com>
8014 * Form.cs: Enforce the Form minimum size in SetBoundsCore. Fixed
8017 2008-01-10 Jonathan Pobst <monkey@jpobst.com>
8019 * XplatUIX11.cs: Set a minimum window size and enforce it. Even though
8020 Linux doesn't care, having a minimum matches MS and keeps the window
8021 from becoming too small to use window decorations.
8024 2008-01-10 Jonathan Pobst <monkey@jpobst.com>
8026 * ThemeWin32Classic.cs: Tie CheckBox/RadioButton focus rectangles to
8027 ShowFocusCues. Make focus rectangles fit the text instead of the whole
8028 control. [Fixes bug #325419]
8030 2008-01-10 Jonathan Pobst <monkey@jpobst.com>
8032 * ComboBox.cs: Guard against an NRE if the user open a new form from a
8033 SelectedIndexChanged event. This closes the combobox dropdown, and we
8034 were trying to dispose it. [Fixes bug #352830]
8036 2008-01-09 Jonathan Pobst <monkey@jpobst.com>
8038 * Control.cs, Form.cs: Implement the necessary semantics for
8039 ShowFocusCues. All paint code will need to check Control.ShowFocusCues
8040 to determine if a focus rectangle should be drawn.
8041 * PropertyGrid.cs: Fix property visibility to match override.
8042 * ThemeWin32Classic.cs: Use ShowFocusCues for Button.
8044 2008-01-09 Jonathan Pobst <monkey@jpobst.com>
8046 * Application.cs: Use GetCommandLineArgs to calculate ExecutablePath.
8049 2008-01-09 Geoff Norton <gnorton@novell.com>
8051 * XplatUICarbon.cs: Scroll windows in the correct direction.
8053 2008-01-09 Geoff Norton <gnorton@novell.com>
8055 * XplatUICarbon.cs: Track all created utility windows so we can hide them
8056 when the app is deactivated or spaces is enabled.
8058 2008-01-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8060 * ListViewItem.cs: Cosmetic fix - When calculating layout for item, don't add an
8061 extra separation pixel for the label rect origin if SmallImageList is
8062 null, and thus we don't need that separation between icon and label
8064 Patch by Ernesto Carrea.
8067 2008-01-08 Jonathan Pobst <monkey@jpobst.com>
8069 * StatusStrip.cs: Invalidate after completing a layout. The base
8070 OnLayout does this, but we don't call the base.
8071 * ToolStripItem.cs: Revert the previous change to invalidate after
8073 [Fixes bug #351341 better.]
8075 2008-01-07 Geoff Norton <gnorton@novell.com>
8077 * XplatUICarbon.cs: WM_DESTROY is a teardown of a single window
8078 not a notification to exit the application. Listen for WM_QUIT
8081 2008-01-07 Andreia Gaita <avidigal@novell.com>
8083 * HtmlDocument.cs: Fix case on GetElementById (interface changed)
8085 2008-01-07 Jonathan Pobst <monkey@jpobst.com>
8087 * ToolStripItem.cs: If the bounds of an item changes, invalidate it
8088 so it can repaint at the correct location.
8091 2008-01-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8093 * ListControl.cs: SelectedValue should return a null value if
8094 SelectedIndex is -1. Also, when setting it, it should throw an
8095 ArgumentNullException if the value is null, as well as taking
8096 into account the String.Empty value, instead of ignoring it (we have
8097 tests for that now).
8098 Fixes part of #324286.
8100 2008-01-06 Jonathan Pobst <monkey@jpobst.com>
8102 * TextBoxBase.cs, TextControl.cs: Patch from Luke Page to ensure
8103 SelectionStart is updated after pressing enter. Fixes bug #351918.
8105 2008-01-05 Jonathan Pobst <monkey@jpobst.com>
8107 * TextControl.cs: Revert a piece r92316 that prevented the fix
8108 from working when there were multiple tags in the text box.
8111 2008-01-05 Jonathan Pobst <monkey@jpobst.com>
8113 * TextControl.cs: Apply patch from Luke Page that prevents an
8114 NRE when determining the beginning of a paragraph.
8117 2008-01-05 Jonathan Pobst <monkey@jpobst.com>
8119 * TextBoxBase.cs: Apply patch from Luke Page that ensures the
8120 caret gets moved with clicking away from a selected block of
8121 text. Fixes bug #351885.
8123 2008-01-05 Jonathan Pobst <monkey@jpobst.com>
8125 * TextControl.cs: Apply patch from Luke Page that takes line
8126 alignment into account for mouse selection, so that center and
8127 right aligned text can be selected.
8130 2008-01-05 Jonathan Pobst <monkey@jpobst.com>
8132 * RichTextBox.cs: Apply patch from Luke Page that fixes some caret
8133 issues after loading an RTF file by using the correct line feeds.
8136 2008-01-05 Jonathan Pobst <monkey@jpobst.com>
8138 * TextControl.cs: When deleting multiple line selections, we need
8139 to invalidate every line beginning at the first line of the selection.
8140 Patch from Luke Page fixes bug #351791.
8142 2008-01-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8144 * ListControl.cs: When getting a CurrencyManager.PositionChanged
8145 event, don't set SelectedIndex if the number of items is 1. This is
8146 because, for the first item, PositionChanged is fired _before_
8147 ItemChanged (the place where we actually populate the items), and
8148 leave us in a temporary invalid state (since items collection is
8152 2008-01-04 Geoff Norton <gnorton@novell.com>
8154 * XplatUICarbon.cs: Create native toolwindows instead of
8155 the managed drawing ones.
8157 2008-01-03 Jonathan Pobst <monkey@jpobst.com>
8159 * LineTag.cs: If the line doesn't have any characters, return
8160 0 for GetCharIndex. Fixes an AOORE exception after certain
8161 caret movements. Fixes bug #351683. Patch by Luke Page.
8163 2008-01-03 Jonathan Pobst <monkey@jpobst.com>
8165 * TextBoxBase.cs: Apply patch from Luke Page so when backspace
8166 is hit when there is selected text, only the selected text gets
8167 deleted, not the character in front of the selection as well.
8170 2008-01-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8172 * ComboBox.cs: When the values are displayed, calculate the
8173 ComboListBox scrollbar's LargeChange based on the visible area's
8174 height and the actuall ItemHeight, instead of calculating it
8175 based on MaxDropItems value, since it's not used by our _current_
8179 2008-01-03 Jonathan Pobst <monkey@jpobst.com>
8181 * Line.cs, LineTag.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs:
8182 Patch from Luke Page that fixes issues with font colors and styles
8183 not showing up in a readonly RichTextBox. Fixes bug #324354.
8185 2008-01-03 Jonathan Pobst <monkey@jpobst.com>
8187 * Line.cs, RichTextBox.cs, TextControl.cs: Another awesome patch
8188 from Luke Page. This one fixes bug #349926.
8190 2007-12-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8192 * CurrencyManager.cs: Actually fire the 2.0 ListChanged event when
8193 an item in the IBindingList source changes with
8194 ListChangedType.ItemAdded. Ignore for now firing the event for other
8195 changes, since we want to have tests for those cases as well.
8197 2007-12-28 Jonathan Pobst <monkey@jpobst.com>
8199 * TextBoxBase.cs: Don't store a 1x1 Bitmap for every TextBox
8202 2007-12-28 Jonathan Pobst <monkey@jpobst.com>
8204 * TextBoxTextRenderer.cs: Implement a cache for measuring each
8205 character. This is effective because the typical usage of a
8206 TextBox is with a limited amount of fonts and characters, and
8207 the current implementation of TextBox measures everything one
8208 character at a time. Another second or two speedup for bug #347238.
8210 2007-12-28 Jonathan Pobst <monkey@jpobst.com>
8212 * Control.cs: Rewrite the Font getter to only query the parent's
8213 Font property once instead of twice. Since this operation is
8214 recursive, the queries were growing exponentially as the control
8215 tree got deeper. Another second or two speedup for bug #347238.
8217 2007-12-28 Jonathan Pobst <monkey@jpobst.com>
8219 * Control.cs: Avoid setting a parent (and more importantly, updating
8220 the zorder of all its children) if the parent is already correct in
8221 WmShowWindow. Decreases the startup time of the test case on bug
8222 #347238 from 35 seconds to 11 seconds.
8224 2007-12-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8226 * X11Dnd.cs: When the dnd operation has started and we are
8227 in the dnd loop, don't dispatch either WM_LBUTTONUP nor WM_RBUTTONUP.
8228 This is done to match .Net, which doesn't send those messages after
8229 dnd operation was completed/cancelled.
8232 2007-12-27 Jonathan Pobst <monkey@jpobst.com>
8234 * ToolStrip.cs: Previous change should be != null, not == null.
8237 2007-12-27 Jonathan Pobst <monkey@jpobst.com>
8239 * ToolStrip.cs: Guard against an NRE after ItemClicked is called, the
8240 user may have moved the mouse off the current item during the event.
8242 2007-12-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8244 * ListView.cs: In ItemControl.ItemsMouseMove, try to avoid
8245 calling GetItemAt for every MouseMove event by also taking into
8246 account whether any mouse button is pressed (probably dragging);
8247 if so, we can call GetItemAt, and if not, try to not call it
8248 (GetItemAt can be quite expensive when used with a large number of items).
8250 2007-12-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8252 * ListView.cs: Implement -finally- support for dnd, by calling
8253 OnItemDrag as needed. Also, remove the dnd TODO, and add myself to the
8255 * ListViewInsertionMark.cs: Implement NearestIndex method, by doing a
8256 simple calculation of distances for all the items in the owner
8259 2007-12-21 Geoff Norton <gnorton@novell.com>
8261 * XplatUICarbon.cs: Ensure that we create WindowMapping handles
8262 for windows that are originally created as invisible. Fixes missing
8263 main window in paint-mono.
8265 2007-12-21 Geoff Norton <gnorton@novell.com>
8267 * XplatUICarbon.cs: Register our D&D handler. Register our custom
8268 subclass handler for com.novell.mwfview subclassing HIView. Implement
8269 Pasteboard and Dnd methods.
8271 2007-12-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8273 * ListBox.cs: When we got focus, give focus to first item if there
8274 wasn't any pervious focused item. Also update navigation to depend on
8275 SelectedIndex rather than FocusedItem, just as .Net does.
8278 2007-12-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8280 * ListBox.cs: Both FindString and FindStringExact methods must do an
8281 case insensitive search, should allow the last valid index to be
8282 passed in the overload taking an initial index, and should also
8283 continue searching from the top back to the specified index when it
8286 2007-12-19 Jonathan Pobst <monkey@jpobst.com>
8288 * TextControl.cs: Apply patch from Luke Page that fixes a scrolling
8289 redraw issue, and allows RichTextBox to draw colored text even while
8290 disabled or readonly.
8292 2007-12-19 Jonathan Pobst <monkey@jpobst.com>
8294 * RichTextBox.cs, TextBoxBase.cs: Apply patch from Luke Page that
8295 disallows cut/paste in a readonly textbox, adds support for Shift-Insert,
8296 and doesn't grey text in a disabled RichTextBox.
8298 2007-12-19 Jonathan Pobst <monkey@jpobst.com>
8300 * RichTextBox.cs: Apply patch from Luke Page that adds better support
8301 for many RTF commands: quad alignment, separate formatting for blocks
8302 inside groups, and ParDef support. Makes the test case from bug #324589
8305 2007-12-19 Jonathan Pobst <monkey@jpobst.com>
8307 * LineTag.cs: Fix an error in the new Draw method that caused
8308 a crash when rendering the document on bug #324589.
8310 2007-12-19 Jonathan Pobst <monkey@jpobst.com>
8312 * Line.cs, LineTag.cs, RichTextBox.cs, TextBoxBase.cs,
8313 TextControl.cs: Apply patch from Luke Page that adds support
8314 for URL links in RichTextBox.
8315 [Fixes enhancement #342516]
8317 2007-12-18 Everaldo Canuto <ecanuto@novell.com>
8319 * MenuItem.cs: When cloning menuitem clone also name and tag properties for
8320 2.0 profile. Thanks Ernesto Carrea and Luke Page. Fixes bug #340289.
8322 2007-12-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8324 * ListBox.cs: When a key gets pressed, try to find a string
8325 if the key is a character or a digit.
8328 2007-12-17 Jonathan Pobst <monkey@jpobst.com>
8330 * TableLayoutPanel.cs: Remove some unused variables.
8332 2007-12-17 Jonathan Pobst <monkey@jpobst.com>
8334 * DateTimePicker.cs: Commit patch from Luke Page that ensures
8335 we don't end up at an invalid date when we click the up/down
8336 spinner to change the month or year. Fixes bug #348682.
8338 2007-12-17 Jonathan Pobst <monkey@jpobst.com>
8340 * Application.cs: Calling Exit in 2.0 should chain to the
8341 Exit (CancelEventArgs) version so it can be cancelled.
8342 * Form.cs: Create a flag to allow raising the Closing
8343 events to be skipped. We raise them once in Application.Exit
8344 and don't want to raise them again when the Form is actually
8345 closed. [Fixes bug #349073]
8347 2007-12-16 Jonathan Pobst <monkey@jpobst.com>
8349 * ToolStripDropDown.cs: Guard against an NRE when there
8350 hasn't been a mainform set in the application context.
8353 2007-12-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8355 * ListBox.cs: When SetBoundsCore gets called, besides
8356 calling UpdateScrollBars, update the value of
8357 last_visible_index, since we could need to show more items
8358 than before, and we need to let the paint routines know that.
8361 2007-12-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8363 * ListView.cs: Add DesignerSerializationVisibility attribute to
8364 InsertionMark property.
8365 * ListViewItem.cs: Add same attribute to Position property.
8367 2007-12-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8369 * ListViewItem.cs: .ctor (SerializationInfo, StreamingContext)
8372 2007-12-14 Jonathan Pobst <monkey@jpobst.com>
8374 * ThemeWin32Classic.cs: Don't draw the background on a
8375 flat button if there is a background image.
8378 2007-12-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8380 * ListBox.cs: If we remove the item currently selected,
8381 remove it not only from SelectedItems, but also
8382 resetting selected_index. Moreover, set focused_item to Items.Count - 1 if
8383 the items count decreased and focused_item has bigger value than that.
8385 2007-12-13 Jonathan Pobst <monkey@jpobst.com>
8387 * Control.cs: Perform our layout after we resize ourselves
8388 if we had to adjust our AutoSize. Missed commit for bug
8391 2007-12-13 Jonathan Pobst <monkey@jpobst.com>
8393 * TableLayoutPanel.cs: Override GetPreferredSizeCore so
8394 we can provide an implementation of AutoSize.
8397 2007-12-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8399 * ListBox.cs: Add the internal overload Sort (bool paint),
8400 to indicate whether we actually need a paint or we will
8401 call Refresh ourselves. This way we don't request a paint
8402 _before_ having an updated and valid layout.
8405 2007-12-12 Andreia Gaita <avidigal@novell.com>
8407 * XPlatUIX11.cs: Send paint messages when updating a systray icon
8408 * NotifyIcon.cs: Invalidate the window before doing a systray change so it is
8409 properly invalidated.
8412 2007-12-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8414 * ListViewItem.cs: When using a .ctor taking a ListViewGroup,
8415 don't simply assign it to our internal group field, but instead
8416 use our Group property, which should do all the neccessary work
8417 required to support groups. Fixes an issue reported to me (mail) by a
8418 guy using this new feature.
8420 2007-12-11 Jonathan Pobst <monkey@jpobst.com>
8422 * Control.cs: Use Scale instead of ScaleControl to ensure the
8423 whole hierarchy gets scaled.
8426 2007-12-10 Jonathan Pobst <monkey@jpobst.com>
8428 * DateTimePicker.cs: Don't set the internal MonthCalendar's
8429 Parent property. Doing this causes the control to be hosted by
8430 the Form instead of being a popup window.
8433 2007-12-10 Jonathan Pobst <monkey@jpobst.com>
8435 * ToolStripItemCollection.cs: If we try to insert a ToolStripItem
8436 at an index higher than Count, just use Add instead of Insert.
8439 2007-12-10 Jonathan Pobst <monkey@jpobst.com>
8441 * ThemeWin32Classic.cs: Don't draw a PictureBox's background in
8442 DrawPictureBox, this is handled by Control.PaintBackground.
8445 2007-12-10 Everaldo Canuto <ecanuto@novell.com>
8447 * MenuAPI.cs: When process menu keys return true by default only if menu is
8448 active. Fixes bug #342892.
8450 2007-12-09 Andreia Gaita <avidigal@novell.com>
8452 * Control.cs: check if windows are actually mapped before
8453 trying to zorder. Fixes #342509, #346955
8455 2007-12-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8458 * ListViewInsertionMark.cs:
8459 * ThemeWin32Classic.cs: Implement the drawing side of the
8460 new 2.0 ListView.InsertionMark property.
8462 2007-12-07 Jonathan Pobst <monkey@jpobst.com>
8464 * CurrencyManager.cs: Silence some debug spew.
8466 2007-12-07 Geoff Norton <gnorton@novell.com>
8468 * Hwnd.cs: Refactor GetClippingRectangles to suppose returning the
8469 masks for our children as well as siblings to avoid having to query
8470 Quartz for this information.
8471 * XplatUICarbon.cs: Implement a delegate based system to pass
8472 information to System.Drawing. Implement Async methods. Remove
8473 the hack for the resize thumb and imlpement a transparent Grow Box.
8474 Rework the messaging system to proplery create window's and messages,
8477 2007-12-06 Andreia Gaita <avidigal@novell.com>
8479 * X11Keyboard.cs: Use Xutf8LookupString to support international
8480 characters under alternate codepages. Patch from #340878
8482 2007-12-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8484 * ListView.cs: When doing layout computations, set position in the
8485 ListView instances (we cache the position just as .Net does).
8486 * ListViewItem.cs: New internal setter method for Position. Also set
8487 position field as also available in 1.1, since we are going to use it
8488 now in the common case.
8490 2007-12-06 Andreia Gaita <avidigal@novell.com>
8492 * Control.cs: When removing controls, get the actual container
8493 to notify about active control changes. Fixes 341314.
8495 2007-12-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8497 * ListViewItem.cs: Forgot to add Font to our serialization stuff.
8499 2007-12-05 Andreia Gaita <avidigal@novell.com>
8501 * Control.cs: When updating the zorder, ignore windows that are not
8502 mapped. Fixes #342509
8504 2007-12-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8506 * ListViewItem.cs: Actually implement serialization on this class.
8508 2007-12-05 Gert Driesen <drieseng@users.sourceforge.net>
8510 * LinkLabel.cs: Fixed paramname of ArgumentNullException in ctor of
8511 LinkCollection. Spaces to tabs, and removed extra tabs.
8513 2007-12-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
8515 * XplatUIX11.cs: Make toolwindows' decorations show up without causing any
8516 tests to fail (hopefully).
8518 2007-12-03 Jonathan Pobst <monkey@jpobst.com>
8520 * ToolStripDropDownMenu.cs: Fill in AffectedBounds when drawing
8521 the image margin so custom renderers can correctly place it.
8523 2007-12-03 Jonathan Pobst <monkey@jpobst.com>
8525 * StatusStrip.cs: Fill in AffectedBounds when drawing the grip
8526 so custom renderers can correctly place it.
8528 2007-12-03 Jonathan Pobst <monkey@jpobst.com>
8530 * Application.cs: Let WM_CHAR messages flow through to controls
8531 hosted in Strips. [Fixes bug #343972]
8533 2007-12-02 Jonathan Pobst <monkey@jpobst.com>
8535 * ToolStripManager.cs: Guard against an NRE I ran into.
8537 2007-12-02 Jonathan Pobst <monkey@jpobst.com>
8539 * LinkLabel.cs: Apply patch from George to fix bug 344012. If
8540 a Link is manually added to the Links collection, we need to set
8541 its owner, so it can invalidate properly.
8544 2007-11-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8546 * ListView.cs: When changing ListViewItem.Position (which calls
8547 ListView.ChangeItemLocation), invalidate not only the area
8548 corresponding to the main item, but also to the area occupied
8549 by the items being moved.
8551 2007-11-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8553 * ListView.cs: When changing the position of a given item,
8554 don't use item bounds, but item areas (which includes the item spacing
8555 between them). Also, use first/last position if the requested
8556 position is outside bounds (as .Net does). Invalidate the previous and
8557 new bounds. Finally, in ItemControl.ItemsMouseDown use the actual item
8558 in a specific position, instead of directly accessing Items collection
8559 (this is done to get the right item - remember an Item can have a
8560 different position in the grid than in the Items collection).
8562 2007-11-23 Everaldo Canuto <ecanuto@novell.com>
8564 * MessageBox.cs: Calculate text area instead of just top left, this rect
8565 area will be used in DrawString. Fixes bug #343364.
8567 2007-11-23 Everaldo Canuto <ecanuto@novell.com>
8569 * MessageBox.cs: Calculate max amount for text area width, it must be 60% of
8570 screen width. Partially fixes bug #343364.
8572 2007-11-23 Everaldo Canuto <ecanuto@novell.com>
8574 * NotifyIcon.cs: Remove duplicated code before call realculate and put this
8575 code inside recalculate, it makes code more simple.
8577 2007-11-22 Everaldo Canuto <ecanuto@novell.com>
8579 * NotifyIcon.cs: When recalculate icon verify if icon is active to decide
8580 between update or add icon. Fixes bug #324344.
8582 2007-11-21 Andreia Gaita <avidigal@novell.com>
8584 * XPlatUIX11.cs: Do not treat tool windows as if they have no
8585 window manager, since that stretches the drawing area to include
8586 the window decorations, and they get hidden. Reverts r84444 and fixes
8587 #335849 and #342790 (mdi and pdn3 regression)
8589 2007-11-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8591 * ListView.cs: When setting focused item, try to give focus to the
8592 previous one _only_ if the previous one remains valid.
8595 2007-11-20 Jonathan Pobst <monkey@jpobst.com>
8597 * Application.cs: Revert r89650, as it broke a common case to fix
8598 an obscure case. Fixes bug #342606.
8600 2007-11-20 Everaldo Canuto <ecanuto@novell.com>
8602 * ThemeWin32Classic.cs: Fix extra space on end of tooltip.
8604 2007-11-20 Everaldo Canuto <ecanuto@novell.com>
8606 * ThemeWin32Classic.cs: Fix tooltip text align removing horizontal
8607 alignment. [Fixes #324228]
8609 2007-11-19 Jonathan Pobst <monkey@jpobst.com>
8611 * ToolStrip.cs: Handle flow layout in GetPreferredSize to fix PDN3.
8614 2007-11-19 Everaldo Canuto <ecanuto@novell.com>
8616 * Form.cs: Check for empty Text before assign to cp.Caption in CreateParams
8617 it prevent problems when empty captions. [Fixes #342141]
8619 2007-11-19 Jonathan Pobst <monkey@jpobst.com>
8621 * Label.cs: Use Size instead of None. Fixes bug #342077.
8623 2007-11-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8625 * ListViewItem.cs: Implement 2.0 FindNearestItem method.
8627 2007-11-17 Jonathan Pobst <monkey@jpobst.com>
8629 * MenuStrip.cs: Guard against a NRE when a MdiWindowItem is set
8630 but there isn't a MdiContainer.
8633 2007-11-17 Jonathan Pobst <monkey@jpobst.com>
8635 * TextControl.cs: Don't recalculate document if the recalc_start and
8636 recalc_end hasn't changed.
8639 2007-11-17 Gert Driesen <drieseng@users.sourceforge.net>
8641 * DataGridViewTextBoxCell.cs: Removed CWL.
8643 2007-11-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8645 * ListView.cs: Implement 2.0 SearchForVirtualItem event support.
8647 2007-11-16 Jonathan Pobst <monkey@jpobst.com>
8649 * TextControl.cs: Missed some code for bug 341534 to trigger a
8650 recalculation when the font changes.
8652 2007-11-16 Andreia Gaita <avidigal@novell.com>
8654 * Control.cs: When updating the zorder, check if the child to update is
8655 the same control that is set to always be on top (i.e., scrollbars), and
8656 just put it on top directly. Fixes BadMatch error on pdn3
8658 2007-11-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8660 * ListView.cs: Throw the needed exceptions for FindNearestItem.
8662 2007-11-16 Jonathan Pobst <monkey@jpobst.com>
8664 * Control.cs: Don't perform a new layout when a label changes its text,
8665 cause label handles its own autosizing.
8668 2007-11-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8670 * ListView.cs: Implement 2.0 FindNearestItem methods.
8672 2007-11-15 Jonathan Pobst <monkey@jpobst.com>
8674 * ToolStripPanel.cs: Make Join at least add the control to the panel,
8675 even if the rest of what Join does isn't supported. Add some more
8676 support for vertical toolbars.
8677 * ToolStripPanelRow.cs: Add some more support for vertical toolbars.
8678 [Fixes the application breaking parts of bug #341998]
8680 2007-11-15 Jonathan Pobst <monkey@jpobst.com>
8682 * ToolStripItem.cs: When determining if we have a check/image margin,
8683 we need to look at ShowCheckMargin as well as ShowImageMargin.
8685 2007-11-15 Geoff Norton <gnorton@novell.com>
8687 * XplatUIOSX.cs: Rename to...
8688 * XplatUICarbon.cs: and refactor all event handling out to the new event handling
8689 system in System.Windows.Forms.CarbonInternal. Lots of code cleanup as well.
8691 2007-11-15 Jonathan Pobst <monkey@jpobst.com>
8693 * KeysConverter.cs: The default values should be an array of Keys, not
8694 strings. Also, the array has more values for 2.0.
8697 2007-11-14 Jonathan Pobst <monkey@jpobst.com>
8699 * Application.cs: Change ExecutablePath to use
8700 Process.GetCurrentProcess ().MainModule.FileName instead of Assembly.GetEntryAssembly.
8703 2007-11-14 Jonathan Pobst <monkey@jpobst.com>
8705 * LineTag.cs: Don't attempt to draw '\r', treat it like it doesn't exist.
8706 When measureing CR or LF, use /u000D instead of /u0013. (Hex, not decimal.)
8707 * TextControl.cs: Fix a case in GetLineEnding where a \n before a \r would
8708 be ignored. Create a new GetLineEnding that can specify which types of
8709 line endings to look for. On Insert, only create new lines for \n and \r\n.
8712 2007-11-14 Jonathan Pobst <monkey@jpobst.com>
8714 * TextBoxBase.cs: As we loop through each line changing the font, tell
8715 the document that the line needs to be recalculated. Fixes bug #341534.
8717 2007-11-13 Jonathan Pobst <monkey@jpobst.com>
8718 [Another round of refactoring]
8719 * Line.cs: Add DeleteCharacters.
8720 * LineTag.cs: Add Delete.
8721 * TextBoxBase.cs: Update to use new methods.
8722 * TextControl.cs: Refactor the Delete* methods.
8724 2007-11-13 Everaldo Canuto <ecanuto@novell.com>
8726 * Win32DnD.cs: Implement Win32 Drop files, thank you Srikanth Madikeri for
8727 the patch. [Fixes #324856]
8729 2007-11-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8732 * ListViewItem.cs: Add an initial implementation of
8733 2.0 ListViewItem.Position getter.
8735 2007-11-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8737 * ListView.cs: Add a reordered_items_indices array, to allow us
8738 to have a different sorting than that of Items (the sorting in Items
8739 could not match the actual sorting in screen). This is needed to
8740 implement a pair of 2.0 features.
8741 * ListViewItem.cs: Add a DisplayIndex property to keep track of the
8742 actual position in the ListView grid, since it could have a position
8743 different than its Index (position in ListViewItemCollection).
8745 2007-11-09 Jonathan Pobst <monkey@jpobst.com>
8747 * Label.cs: Add StringFormatFlags.LineLimit. This tells DrawString to
8748 not draw partial lines.
8749 * LinkLabel.cs: Change FormatFlags setter from = to |= so that the
8750 LineLimit flag from the base is preserved.
8751 Fixes the windows part of bug #338965.
8753 2007-11-09 Jonathan Pobst <monkey@jpobst.com>
8755 * TextBoxBase.cs: Move handling of the enter key from KEYDOWN to CHAR
8756 so that it can be canceled in KeyPress.
8759 2007-11-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8761 * ListView.cs: In ItemControl, reset mouse-handling related
8762 fields even if we dont' have items (we still should reset them when
8763 we had items but then called Items.Clear). Partially based in a patch
8767 2007-11-08 Gert Driesen <drieseng@users.sourceforge.net>
8769 * Application.cs: In ProductVersion first try AssemblyFileVersion
8770 before falling back to assembly version. Fixes bug #339787.
8772 2007-11-08 Andreia Gaita <avidigal@novell.com>
8774 * HtmlElement.cs: Implement InnerText setter.
8775 * WebBrowserBase.cs: Implement Navigated event support.
8776 Add flag to track when the browser "document" is ready to be retrieved.
8777 * WebBrowser.cs: Implement CanGoBack, CanGoForward, Title, Url.
8778 Make sure browser document is ready before retrieving it.
8779 Clean up cached objects (document) when moving to a new page through
8780 any of the navigation methods.
8781 Use the new Mono.WebBrowser.INavigation interface to control navigation.
8782 Implement OnNavigated event.
8784 2007-11-07 Jonathan Pobst <monkey@jpobst.com>
8786 * ThemeWin32Classic.cs: Don't draw the background in DrawLabel or
8787 DrawLinkLabel, this is handled by OnPaintBackground.
8788 Fixes bug #339565, part II.
8790 2007-11-07 Andreia Gaita <avidigal@novell.com>
8792 * Control.cs: Revert r88915. Selecting text on a textbox depends on
8793 getting a Select call on click, so this call needs to be here for now.
8796 2007-11-07 Geoff Norton <gnorton@novell.com>
8798 * OSXStructs.cs: Add the kEventClassApplication constants.
8799 * XplatUIOSX.cs: Send a WM_LBUTTONDOWN to the Grab window when the
8800 application is deactivated otherwise Menu overlays linger on top of
8801 other application windows.
8803 2007-11-07 Geoff Norton <gnorton@novell.com>
8805 * XplatUIOSX.cs: Dont throw an exception on OverrideCursor as we
8806 dont support cursors yet anyways. This allows Reflector to run.
8808 2007-11-07 Geoff Norton <gnorton@novell.com>
8810 * XplatUIOSX.cs: Implement DragSize.
8812 2007-11-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8814 * ListView.cs: When we receive a WM_LBUTTONDOWN message in
8815 ItemControl, request the focus, as .Net does. This is needed after
8816 Control does not request focus anymore when it receives a
8819 2007-11-06 Jonathan Pobst <monkey@Jpobst.com>
8821 * Label.cs: Make DrawImage internal so it can be called from Theme code.
8822 Remove the DrawImage call from OnPaint.
8823 * LinkLabel.cs: Remove the DrawImage call from OnPaint.
8824 * ThemeWin32Classic.cs: Call DrawImage after we paint the background,
8825 but before we draw the text for DrawLabel and DrawLinkLabel.
8828 2007-11-05 Andreia Gaita <avidigal@novell.com>
8830 * Control.cs: Remove select call on click. Fixes #325809
8832 2007-11-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8834 * ListViewItem.cs: Add 2.0 Position property getter.
8836 2007-11-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8838 * ListView.cs: Add 2.0 BackgroundImageTiled property.
8839 Also, to make it work properly, change item's BackColor and
8840 BackgroundImageLayout as needed.
8841 * ThemeWin32Classic.cs: Don't fill any background rectangle
8842 in ListView.ItemControl when drawing items; just let the Control
8843 base implementation fill it.
8845 2007-11-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8847 * ListViewGroup.cs: Adda TypeConverter attribute for this class,
8848 as well as adding a custom 'dummy' Converter, as .net does.
8850 2007-11-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8852 * PropertyGridView.cs: When clicking drop-down button,
8853 select an index in the listbox only if our standard values collection
8854 has one or more items.
8856 2007-11-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8858 * ListViewItem.cs: Add a DefaultValue attribute to 2.0 IndentCount
8861 2007-11-04 Gert Driesen <drieseng@users.sourceforge.net>
8863 * PropertyGrid.cs: In PropertySort, update the toolbar buttons even if
8864 the value is not changed. This ensure a pushed button remains in that
8865 state when clicked again. When switching the value of PropertySort
8866 between Categorized and CategorizedAlphabetical, do not update the
8867 grid items and do not fire a PropertyChangedEvent. When clicking the
8868 sorting buttons, do not modify the PropertySort value when switching
8869 between Categorized and CategorizedAlphabetical but only update the
8872 2007-11-04 Gert Driesen <drieseng@users.sourceforge.net>
8874 * Label.cs: Make AutoEllipsis internal on 1.0 profile. Code
8876 * PropertyGrid.cs: Also put Categorized button in pushed state when
8877 PropertySort is CategorizedAlphabetical. Set AutoEllipsis to true
8878 for help description label.
8880 2007-11-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8882 * ListView.cs: When calculating the biggest item for a given column,
8883 take into account 2.0 LIstViewItem.IndentCount, since it directly affects
8886 2007-11-03 Gert Driesen <drieseng@users.sourceforge.net>
8888 * PropertyGrid.cs: Fixed default value for PropertySort. Allow invalid
8889 value for PropertySort on 1.0 profile. PropertySortChanged event
8890 should only be fired on 2.0 profile. Fixed NullReferenceException
8891 in UpdateSortLayout when PropertyGrid contains no items.
8893 2007-11-02 Jonathan Pobst <monkey@jpobst.com>
8895 * MessageBox.cs: Patch from George to implement MessageBoxDefaultButton.
8898 2007-11-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8900 * ListViewItem.cs: Implement 2.0 IndentCount property.
8902 2007-11-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8904 * X11Dnd.cs: When sending status in a dnd operation, compare current
8905 effect with the 'allowed' field instead of 'drag_data.Allowed', since
8906 the later is only created when a Winforms application is both the
8907 source and the target, but not when we are the target only.
8908 Fixes part of #324251.
8910 2007-11-01 Geoff Norton <gnorton@novell.com>
8912 * XplatUI*.cs: Add GetPreviousWindow utility method to return windows in
8914 * Hwnd.cs: Add initial implementation of GetClippingRectangles to clip sibling
8915 children out of the drawing view on mac.
8916 * XplatUIOSX.cs: Code cleanup. Handle more window grab cases. Fix SetParent
8917 to handle the orphan and invisible case (1/2 fixes TabStrip drawing in FormsTest)
8919 2007-11-01 Jonathan Pobst <monkey@jpobst.com>
8921 * ToolStrip.cs: Don't process MouseUp for a ToolStripControlHost, clicking
8922 on the non-hosted-control part of it shouldn't do anything.
8923 Fixes part of bug #327498.
8925 2007-11-01 Andreia Gaita <avidigal@novell.com>
8927 * WebBrowserBase.cs: revert previous change, resize can be called anytime
8929 2007-11-01 Jonathan Pobst <monkey@jpobst.com>
8931 * Application.cs: When a toolstrip has the keyboard input loop, let messages
8932 it does not use flow through to controls that are hosted in menus.
8933 Same with mouse clicks.
8934 * Form.cs: Don't close all menus on click if the click is on a
8935 control hosted in a menu.
8936 Fixes part of bug #327498, and part of bug #325969.
8938 2007-10-31 Andreia Gaita <avidigal@novell.com>
8940 * WebBrowserBase.cs: Only call resize on gluezilla when it is active
8942 2007-10-31 Jonathan Pobst <monkey@jpobst.com>
8944 * TextBoxBase.cs: Use int.MaxValue for MaxLength instead of magic number.
8945 Addresses an issue raised in bug #336218.
8947 2007-10-30 Jonathan Pobst <monkey@jpobst.com>
8949 * Form.cs: Patch from George that moves the conversion of ClientSize->Size
8950 for PreferredSize from OnLayout to PreferredSize. Fixes bug #325242.
8952 2007-10-30 Andreia Gaita <avidigal@novell.com>
8954 * ContainerControl.cs: Check if the active control is a
8955 child of a removed control and update active_control accordingly.
8958 2007-10-29 Jonathan Pobst <monkey@jpobst.com>
8960 * DateTimePicker.cs: Throw ArgEx if the Value is set outside the MinDate
8961 or the MaxDate. Fixed bug #337693.
8963 2007-10-29 Jonathan Pobst <monkey@jpobst.com>
8965 * XplatUIWin32.cs: Always call SetWindowPos with SWP_FRAMECHANGED flag
8966 after calling SetWindowLong for a form, to force an immediate NC refresh.
8967 Fixes first part of bug #325150.
8969 2007-10-29 Jonathan Pobst <monkey@jpobst.com>
8971 * ComboBox.cs: Don't try to resize the listbox when we are DropDownStyle
8972 simple. Fixes the last part of bug #322668.
8974 2007-10-29 Jonathan Pobst <monkey@jpobst.com>
8976 * MessageBox.cs: If the owner is TopMost, then the MessageBox form
8977 needs to be TopMost as well, or else the MessageBox is under the form.
8978 Patch by George fixes bug #325300.
8980 2007-10-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8982 * X11Dnd.cs: When starting a new drag operation, reset the static
8983 'dropped' field to false (previously the implementation didn't reset
8984 it and got confused after the first drag).
8987 2007-10-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8989 * PropertyGrid.cs: When PropertySort changes, re-organize the grid
8990 items instead of re-creating them all. For this purpose we now cache
8991 both CategoryGridEntry items and the GridEntries for the main object's
8993 * GridItem.cs: Make SetParent method abstract.
8994 * GridEntry.cs: Override the SetParent method (already there, but now
8998 2007-10-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9000 * PropertyGridView.cs: Set the plus/minus bounds of a grid item
9001 depending on its depth (as .Net does). Update the needed values in
9002 MouseDown handler. Also draw the plus/minus rect after the label,
9003 so we don't draw on top of it.
9005 2007-10-24 Everaldo Canuto <ecanuto@novell.com>
9007 * MenuAPI.cs: Return true as default in ProcessKeys to prevent keys to be
9008 processed by forms or controls when menu is active. [Fixes #333548]
9010 2007-10-24 Jonathan Pobst <monkey@jpobst.com>
9012 * ToolStripItem.cs: Don't focus a ToolStripControlHost on Select of the
9013 parent doesn't have focus. This was causing ToolStripTextBoxes to take
9014 focus on mouse over.
9016 2007-10-24 Jonathan Pobst <monkey@jpobst.com>
9018 * TextControl.cs: Code cleaning, simplifying.
9020 2007-10-24 Geoff Norton <gnorton@novell.com>
9022 * XplatUIOSX.cs: Route mouse events to the grab hwnd on mouse down as well.
9023 * XplatUIStructs.cs: Fix the ToString method of POINT and MSG.
9025 2007-10-24 Jonathan Pobst <monkey@jpobst.com>
9027 * TextBoxBase.cs: If the user sets maxlength to 0, it should mean
9028 the cap is maxvalue, not actually 0. [Fixes bug #336218]
9030 2007-10-24 Andreia Gaita <avidigal@novell.com>
9032 * SendKeys.cs: apply jpobst's patch to bug #332409
9034 2007-10-23 Andreia Gaita <avidigal@novell.com>
9036 * TextBoxTextRenderer.cs: Lower bounds max size to Int16.MaxValue, the
9037 Windows 2000 gdi DrawText call doesn't draw if it's higher than that
9040 2007-10-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9042 * PropertyGridView.cs: If a property has an UIEditor available,
9043 make the drop-down/editor button available only if the property
9046 2007-10-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9048 * PropertyGridView.cs: Don't make the grid item textbox
9049 editable when a drop-down control is available, but
9050 CanConvertFrom (typeof (string)) is false or GetStandardValuesExclusive () is
9051 true. The same bur the color of the grid item value's label.
9053 2007-10-22 Geoff Norton <gnorton@novell.com>
9055 * OSXStructs.cs: Add the needed constants for keyboard modifiers.
9056 * OSXKeyboard.cs: Initial support for keyboard and limited modifiers.
9057 * XplatUIOSX.cs: New reversible frame support. Wire in the new keyboard
9058 driver. Padd the bottom of all real windows so the resize thumb doesn't
9059 obscure scroll/status bars.
9061 2007-10-22 Jonathan Pobst <monkey@jpobst.com>
9063 * WindowsFormsSection.cs: Implement.
9065 2007-10-22 Everaldo Canuto <ecanuto@novell.com>
9067 * MdiClient.cs: Maximize new active mdi child when a maximized child is
9068 closed see #325434 patch.
9070 2007-10-22 Everaldo Canuto <ecanuto@novell.com>
9072 * MdiClient.cs: Fix remaining issues from layout vertical and horizontal,
9075 2007-10-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9077 * PropertyGridView.cs: When showing the textbox for a grid item,
9078 have two local variables to store the read-only and non-editable
9079 status of a grid item (we were previously using just one variable
9080 to do this, when actually they are slightly different).
9081 Fixes part of #325023.
9083 2007-10-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9085 * PropertyGridView.cs: When showing a drop-down list, try to get the
9086 values using TypeConverter.ConvertTo (to convert to a string). Fixes
9089 2007-10-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9091 * PropertyGrid.cs: When updating a property and populating sub grid
9092 items, remove the previous ones, and invalidate the specific area.
9093 * PropertyGridView.cs: A new InvalidateBelowGridItem to invalidate the
9094 area behind a grid item.
9095 * GridItemCollection.cs: Add an internal Clear method, to allow us to
9096 clean the items if needed (specially for controls implementing
9097 ICustomTypeDescriptor and returning a variable number of properties).
9100 2007-10-19 Jonathan Pobst <monkey@jpobst.com>
9102 * TextControl.cs: Clean up and document the Insert function.
9104 2007-10-17 Jonathan Pobst <monkey@jpobst.com>
9106 * TextControl.cs: Make sure we know our start point for updating the view
9107 in ReplaceSelection. Fixes an issue where pasting multiline text wouldn't
9110 2007-10-17 Jonathan Pobst <monkey@jpobst.com>
9112 * ListView: Couple of corcompare fixes.
9114 2007-10-17 Geoff Norton <gnorton@novell.com>
9116 * XplatUIOSX.cs: Implement support for window icons in the dock. Set
9117 the title caption of real window.
9119 2007-10-17 Jonathan Pobst <monkey@jpobst.com>
9121 * ErrorProvider.cs: Add the error provider's internal window to a
9122 containercontrol when the parent changes. [Fixes bug #329714]
9124 2007-10-17 Geoff Norton <gnorton@novell.com>
9126 * XplatUIOSX.cs: Implement ScrollWindow. Properly create TOOLWINDOWs.
9127 When we make a new window; restore the old active window - fixes dialogs.
9129 2007-10-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9131 * PropertyGridView.cs: Look for RefreshPropertiesAttribute
9132 when modifying a property, and if found then invalidate as
9134 Fixes part of #324865.
9136 2007-10-17 Geoff Norton <gnorton@novell.com>
9138 * XplatUIOSX.cs: Re-enable the native driver on the Mac. This is still
9139 highly experimental. Fixed coordinate translation. Fixed window locations.
9140 Initial support for clipping. Implemented NC areas and menus. Support for
9141 launching from command line from Will Johansson (wjohansson@atacomm.com).
9142 * OSXStructs.cs: Add ProcessSerialNumer (Patch from Will Johansson
9143 wjohansson@atacomm.com)
9144 * Hwnd.cs: Add some internal structures for tracking Mac cursors.
9145 Hwnds now track the existence of all of their children for Mac clipping.
9146 * XplatUI.cs: Re-enabled the native driver on the Mac.
9148 2007-10-17 Jonathan Pobst <monkey@jpobst.com>
9150 * Line.cs: Move the InsertString function to here.
9151 * TextControl.cs: Cleanup some duplicate code, move some InsertString
9152 functionality to Line.
9154 2007-10-17 Geoff Norton <gnorton@novell.com>
9156 * ComboBox.cs: Destroy the popup after hiding it. Fixes #322582
9158 2007-10-16 Gert Driesen <drieseng@users.sourceforge.net>
9160 * ButtonBase.cs: Fixed IsDefault to use assigned value instead of
9161 always setting value to true.
9162 * Form.cs: When changing AcceptButton, notify new and original button.
9164 2007-10-16 Jonathan Pobst <monkey@jpobst.com>
9166 * Form.cs: Guard against an NRE when the user sets the AcceptButton to
9167 a custom control that implements IButtonControl instead of an actual
9168 button. [Fixes bug #334244]
9170 2007-10-15 Everaldo Canuto <ecanuto@novell.com>
9172 * Form.cs: Change SelectActiveControl to internal, we need to call it in
9175 * MdiWindowManager.cs: In RaiseActivated call SelectActiveControl to select
9176 active control when activate a new mdi window.
9180 2007-10-15 Everaldo Canuto <ecanuto@novell.com>
9182 * ComboBox.cs: Dont implicit add listbox_ctrl on OnHandleCreated because it
9186 2007-10-15 Jonathan Pobst <monkey@jpobst.com>
9188 * TextControl.cs: When SuspendRecalc is first called, reset the recalc_start
9189 to MaxValue and recalc_end to MinValue. Currently, recalc_start is always 1,
9190 so we always recalculate the whole document instead of just the new part.
9193 2007-10-15 Jonathan Pobst <monkey@jpobst.com>
9195 * LineTag.cs: Fix a case where the GetCharIndex would not return 0
9196 when the mouse was to the left of the first character in the line.
9198 2007-10-15 Jonathan Pobst <monkey@jpobst.com>
9200 * TextBox.cs, TextBoxBase.cs: When setting the document's password
9201 character, use the property instead of the variable so that the
9202 UseSystemPasswordChar property is taken into account.
9205 2007-10-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9207 * FolderBrowserDialog.cs: When a node is right clicked and the "New
9208 folder" contex menu appears, actually add the new folder to it, even
9209 if the node is not currently selected. Still use SelectedNode in case
9210 there wasn't found a node under the pointer.
9213 2007-10-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9215 * ListViewItem.cs: When retrieving the focused state, the index check
9216 should be done only when ListView is in virtualmode, as it is an
9217 expensive check for normal mode.
9219 2007-10-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9221 * ListViewItem.cs: Make the focus state information be stored
9222 in the ListView, not in the items. This is done to match the MS
9223 behaviour for items that are not yet part of a ListView control;
9224 besides that, since just one item can be focused at the same time,
9225 we save a little space in our items.
9226 Fixes part of #331643.
9228 2007-10-13 Gert Driesen <drieseng@users.sourceforge.net>
9230 * ComboBox.cs: When focus is lost, deselect the text. When setting
9231 text of control, select all text. Do not hide selection when control
9232 does not have focus. Fixes bug #333663.
9234 2007-10-13 Gert Driesen <drieseng@users.sourceforge.net>
9236 * TextBoxBase.cs: On 2.0 profile, throw ArgumentOutOFRangeException
9237 instead of ArgumentException when SelectionLength is set to negative
9238 value. Added same check to SelectionStart. Code formatting.
9240 2007-10-13 Gert Driesen <drieseng@users.sourceforge.net>
9242 * TextBoxBase.cs: Invalidate selection before changing SelectionLength
9243 or SelectionStart. Code formatting.
9245 2007-10-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9247 * TreeView.cs: drag_begin_x and drag_begin_y are now set to -1,
9248 indicating that there was not a previous drag-and-drop operation going
9250 Fixes part of #325071.
9252 2007-10-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9254 * X11Dnd.cs: When DragEventArgs.Effect is set to a value not part of
9255 AllowedEffect, don't let the drop operation happen.
9258 2007-10-12 Jonathan Pobst <monkey@jpobst.com>
9260 * TextRenderer.cs: Use GDI on Windows in both the 1.1 and 2.0 profiles.
9262 2007-10-12 Jonathan Pobst <monkey@jpobst.com>
9264 * Line.cs, LineTag.cs: Guard against an exception when Document.Clear
9267 2007-10-12 Jonathan Pobst <monkey@jpobst.com>
9269 * Line.cs: Add a method that finds the tag that contains an x-coord.
9270 * LineTag.cs: Add a method that finds the character at an x-coord using
9271 a binary search, the old way was a linear search.
9272 * TextControl.cs: Change FindCursor to use the above new methods.
9274 2007-10-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9276 * DragEventArgs.cs: Allow Effect to have a non allowed value (a
9277 value different than AllowedEffect). This should be possible to
9278 indicate that dragging is not possible in some control/area.
9280 2007-10-11 Jonathan Pobst <monkey@jpobst.com>
9282 * LineTag.cs: Encapsulate all variables with properties. Calculate ascent/
9283 descent internally when font changes instead of outside code being responsible
9285 * Line.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs: Use Tag properties
9286 instead of accessing internal variables.
9288 2007-10-09 Everaldo Canuto <ecanuto@novell.com>
9290 * MdiClient.cs: Always call ArrangeIconicWindows before any arrangement and
9291 remove special treatment for ArrangeIcons since it is already arranged.
9293 2007-10-09 Jonathan Pobst <monkey@jpobst.com>
9295 * TextBoxTextRenderer.cs: Draw takes a Color now instead of a Brush, as
9296 the Win32 backend uses Color.
9297 * Line.cs, LineTag.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs:
9298 Refactor to store a Color instead of a Brush for Color.
9300 2007-10-09 Jonathan Pobst <monkey@jpobst.com>
9302 * Line.cs, LineTag.cs: Override GetHashCode to make a compiler warning go
9303 away. I didn't realize I needed this when I refactored these earlier.
9305 2007-10-09 Jonathan Pobst <monkey@jpobst.com>
9307 * LineTag.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs: Refactor to
9308 store a Color structure and use the ResPool for back color instead of
9309 holding onto brushes.
9311 2007-10-09 Jonathan Pobst <monkey@jpobst.com>
9313 * TextControl.cs: Fix how we calculate the end of the tag we are drawing.
9316 2007-10-08 Jonathan Pobst <monkey@jpobst.com>
9318 * MonthCalendar.cs: When ShowWeekNumbers is changed, force the calendar
9319 to recalculate its size. Fixes a part of bug #331052.
9321 2007-10-08 Jonathan Pobst <monkey@jpobst.com>
9323 * NotifyIcon.cs: Set the correct mouse button when handling right mouse
9324 button. Fixes a part of bug #331052.
9326 2007-10-08 Jonathan Pobst <monkey@jpobst.com>
9328 * Form.cs: Trim NewLine before setting XPlatUI.SetText, and when setting
9330 * ThemeWin32Classic.cs: Trim NewLine before drawing MDI children window
9334 2007-10-08 Jonathan Pobst <monkey@jpobst.com>
9336 * TextBoxTextRenderer.cs: Don't make this a static class, as static
9337 doesn't exist in 1.1. (Thanks jb!)
9339 2007-10-08 Jonathan Pobst <monkey@jpobst.com>
9341 * TextBoxTextRenderer.cs: Abstract text measuring and drawing to this
9342 class to allow us to use different backends on different platforms.
9343 Linux uses the current [Draw|Measure]String backend. Windows uses
9344 the TextRenderer.[Draw|Measure]Text backend, which uses GDI instead
9345 of GDI+. This leads to better looking text and more accurate measurements
9346 on Windows, fixing many of the reported issues.
9347 * Line.cs, LineTag.cs: Update to use TextBoxTextRenderer.
9349 2007-10-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9351 * FolderBrowserDialog.cs: When running on Windows,
9352 try to detect paths such "C:" and add Path.DirectorySeparatorChar,
9353 since we must match both "C:" and "C:\" forms. A little hackish, but
9357 2007-10-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9359 * ListView.cs: When calling EndEdit (after editing an item),
9360 create a new instance of LabelEditEventArgs to keep clean the fields
9361 in case we get a new call to BeginEdit; also do Application.DoEvents
9362 to have focus in synch. This is a fix similar to TreeView's #325244.
9364 2007-10-07 Andreia Gaita <avidigal@novell.com>
9366 * HtmlDocument.cs, HtmlElement.cs, WebBrowser.cs: Added dom support
9367 * WebBrowserBase.cs: Added dialog support, calling the
9368 WebBrowserDialogs classes for each specific dialog type.
9370 2007-10-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9372 * ListView.cs: When the last item is focused and is removed,
9373 move the focus to the previous item (in Items order). This is what MS
9377 2007-10-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9379 * ListView.cs: In ListViewItemCollection, make Remove call RemoveAt,
9380 instead of the opposite (RemoveAt call Remove). This is a better
9381 approach since we don't need to to a pair of traversals when using
9384 2006-10-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9386 * TreeView.cs: When Keys.Left is pressed, before trying to Collapse
9387 check that the node actually has nodes, and if not, move to the
9388 parent node instead.
9391 2006-10-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9393 * TreeView.cs: Move the previous change to the general case (to
9394 call Application.DoEvents in cases where the method was called by
9397 2007_10-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9399 * TreeView.cs: When calling EndEdit and we need to hide the textbox,
9400 call Application.DoEvents. This is neccessary when we get a call to
9401 BeginEdit from an AfterLabelEdit handler, because the focus always
9402 goes to the TreeView, even if we try to give it to our
9403 LabelEditTextBox. The call do Application.DoEvents seems to
9404 synchronize the focus, basically.
9407 2007-10-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9409 * TreeView.cs: When AfterLabelEdit event is fired, TreeNode.IsEditing
9410 should be false. This also removes some nasty recursive paths. Fixes
9413 2007-10-04 Everaldo Canuto <ecanuto@novell.com>
9415 * MdiClient.cs: When cascade (layout) mdi window that is maximized, set the
9416 state to normal. Also resize window when cascading. Fixes #325433.
9418 2007-10-04 Jonathan Pobst <monkey@jpobst.com>
9420 * RichTextBox.cs: When SelectionColor is set to Color.Empty, use
9421 DefaultForeColor, as drawing empty colored lines isn't very useful.
9422 [Fixes the not drawn lines part of bug #324358]
9424 2007-10-04 Jonathan Pobst <monkey@jpobst.com>
9426 * TextControl.cs: Move Line and LineTag classes into separate files to
9427 make things easier to find.
9428 * Line.cs, LineTag.cs: Bring coding standards up to Mono's guidelines.
9429 * RichTextBox.cs: Capitalize LineTag.Length property access.
9430 - This is purely an organizational/formatting change, no logic changed. -
9432 2007-10-03 Everaldo Canuto <ecanuto@novell.com>
9434 * ThemeWin32Classic.cs: Do not show focus rectangle in radio buttons when
9437 2007-10-03 Everaldo Canuto <ecanuto@novell.com>
9439 * ThemeWin32Classic.cs: Do not show focus rectangle in checkboxes when
9442 2007-10-03 Everaldo Canuto <ecanuto@novell.com>
9444 * ComboBox.cs: On contructor use backgound_color instead of BackColor to
9445 prevent calling of OnBackColorChanged. Fixes #325321.
9447 2007-10-03 Everaldo Canuto <ecanuto@novell.com>
9449 * TextBox.cs: When check enabled uses Enabled property instead of is_enabled
9450 because control can be disabled because owner is disabled.
9452 2007-10-02 Jonathan Pobst <monkey@jpobst.com>
9454 * ComboBox.cs: For the 1.1 profile, the default SelectedText is
9455 string.Empty, test failed from previous change.
9457 2007-10-02 Jonathan Pobst <monkey@jpobst.com>
9459 * TextBoxBase.cs: For the 1.1 profile, the default SelectedText
9460 is null, not String.Empty. See bug #323038.
9462 2007-10-01 Jonathan Pobst <monkey@jpobst.com>
9464 * TextControl.cs: Change the margins to match MS a little better.
9465 Still not perfect for X11 due to some DrawString differences, but
9466 is still an improvement over the old stuff.
9467 Partially fixes #324467.
9469 2007-09-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9471 * FolderBrowserDialog.cs: When using MyComputer as
9472 RootFolder, let absolute paths be considered as valid ones. Also, use
9473 Path.DirectorySeparatorChar instead of Path.AltDirectorySeparatorChar,
9474 for Windows compatibility.
9475 Partially fixes #325247.
9477 2007-09-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9479 * FolderBrowserDialog.cs: Fix the recursive FindPathInNodes method.
9480 Also remove the stack.Count > 0 check in FBTreeView.SetSelectedNode
9481 method, since it causes the dialog to not select folders directly
9482 under the root path (when setting SelectedPath property).
9484 2007-09-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9486 * TreeNode.cs: When calling Expand/Collapse and need to call
9487 ExpandBelow/CollapseBelow respectively, take into account
9488 partially visible nodes (previously Expanding/Collapsing
9489 a partially visible node in the bottom was not updating its +- sign).
9491 2007-09-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9493 * TreeView.cs: When calling Expand on a TreeNode, and we need to
9494 expand nodes below (ExpandBelow), scroll the entire Viewport
9495 area if the node is above it and not visible (instead of scrolling
9496 the area from node's Bottom, which applies only when the node is
9500 2007-09-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9502 * TreeView.cs: When calling ExpandAll, set SelectedNode to the top
9503 node in the bottom area (as .Net does). This is done to preserve the
9504 scroll position when ExpandAll is called before handle is created for
9505 the 1.1 profile (bottom area, as opposed to top area in 2.0).
9508 2007-09-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9510 * TreeView.cs: When calling ExpandAll, don't move the scroll to the
9511 bottom area if we are in fact not using the vertical scroll bar.
9514 2007-09-27 Jonathan Pobst <monkey@jpobst.com>
9516 * Control.cs: Comment out a double buffering optimization that doesn't
9517 take into account invalidates created in OnPaint, causing the control
9518 to never be redrawn. It would take quite a bit of work to work around
9519 this, but I left it commented with an explanation for later possible
9523 2007-09-27 Jonathan Pobst <monkey@jpobst.com>
9525 * Control.cs: Ask parent to perform a layout if control is AutoSize and
9527 * RadioButton.cs: Implement GetPreferredSizeCore.
9530 2007-09-26 Jonathan Pobst <monkey@jpobst.com>
9532 * RichTextBox.cs, TextBoxBase.cs, WindowsFormsSynchronizationContext.cs:
9535 2007-09-26 Jonathan Pobst <monkey@jpobst.com>
9537 * Application.cs: Move the sync context stuff to Run instead of RunLoop
9538 so that it doesn't get uninstalled on modal forms.
9539 * Control.cs: Install a sync context when a control is created.
9540 * WindowsFormsSyncronizationContext.cs: Create a private static control
9541 to invoke on. This is easier than trying to find a created control we
9545 2007-09-25 Jonathan Pobst <monkey@jpobst.com>
9547 * Application.cs: Install a WindowsFormsSynchronizationContext in the
9548 run loop, and uninstall it when done.
9549 * WindowsFormsSynchronizationContext.cs: Implement.
9550 [Fixes the common case in bug #327608]
9552 2007-09-23 Gert Driesen <drieseng@users.sourceforge.net>
9554 * DataGridViewCellCollection.cs: Added argument checks for indexers.
9555 Use case-insensitive lookup of column name in indexer. Code
9558 2007-09-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9560 * TreeNode.cs: When collapsing or expanding a node, check whether its
9561 change will affect the visible area (we were previously doing a
9562 IsVisible check, but that check is not enough since children nodes
9563 could be still visible). Fixes part of #325266.
9565 2007-09-21 Jonathan Pobst <monkey@jpobst.com>
9567 * TreeView.cs: Always select the first node when the TreeView gets
9568 focus if there is no currently selected node.
9571 2007-09-21 Jonathan Pobst <monkey@jpobst.com>
9573 * TreeView.cs: Do not raise BeforeSelect or AfterSelect when the
9574 node being selected is null.
9575 [Patch from Yves Bastide fixes bug #326858]
9577 2007-09-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9579 * TreeNode.cs: Add an internal ArePreviousNodesExpanded, to know
9580 whether all the parent nodes are expanded.
9581 * TreeNodeCollection.cs: When adding a new node an calling SetupNode,
9582 call RecalculateVisibleOrder if all previous nodes are expanded.
9583 Before that we were doing a IsVisible check, but sometimes the node
9584 is not in the visible area, but _should_already be ready, because of
9585 all previous nodes are expanded. Fixes #325259.
9587 2007-09-20 Jonathan Pobst <monkey@jpobst.com>
9589 * ToolStripSplitButton.cs: Call the ButtonClick event if the button
9590 portion of the item is clicked.
9592 2007-09-20 Jonathan Pobst <monkey@jpobst.com>
9594 * TextControl.cs: Do not tell the system to move the cursor if the
9595 textbox isn't focused. Fixes part of bug #322668.
9597 2007-09-20 Jonathan Pobst <monkey@jpobst.com>
9599 * ComboBox.cs: When there are no items, do not show the dropdown if
9600 the down arrow is clicked. Fixes part of bug #322668.
9602 2007-09-20 Jonathan Pobst <monkey@jpobst.com>
9604 * ToolStripComboBox.cs: Manually set the size of this control in the
9605 constructor, as it doesn't seem to be the same as DefaultSize.
9606 Fixes a failing monobuild test.
9608 2007-09-19 Jonathan Pobst <monkey@jpobst.com>
9610 * DateTimePicker.cs: If the user sets MinDate to DateTime.MinValue,
9611 change it to DateTimePicker.MinDateTime. [Fixes bug #326609]
9613 2007-09-19 Jonathan Pobst <monkey@jpobst.com>
9615 * Theme.cs: FileDialogs should be using DesktopDirectory instead of
9616 Desktop. This lets it work for people who have moved their desktops
9617 from the default location on windows. For people who have not, both
9618 values are the same, so it shouldn't hurt anything. [Fixes bug #325270]
9620 2007-09-18 Jonathan Pobst <monkey@jpobst.com>
9622 * ToolStripControlHostTest.cs: DefaultSize is based off hosted control,
9623 but when the base constructor sets this, the control is null. Set it
9624 again in the constructor. Fixes a failing monobuild test.
9626 2007-09-18 Jonathan Pobst <monkey@jpobst.com>
9628 * ToolStripDropDownItem.cs: Make sure Click and DropDownOpened events
9630 * ToolStripSplitButton.cs: Make sure MouseDown and MouseUp events get
9633 2007-09-18 Jonathan Pobst <monkey@jpobst.com>
9635 * ToolStrip.cs: Don't show tooltips for ToolStripTextBoxes, they
9636 will handle it themselves.
9637 * ToolStripItem.cs: When deciding what the text of a tooltip should
9638 be, use the Text property instead of the text field.
9639 * ToolStripTextBox.cs: Handle tooltips.
9640 [Fixes bugs #325417 and #325973]
9642 2007-09-18 Jonathan Pobst <monkey@jpobst.com>
9644 * ToolStripDropDownButton.cs: Only drop down overflow menu with a
9645 left click. Fixes the easy part of bug #325969.
9647 2007-09-18 Jonathan Pobst <monkey@jpobst.com>
9649 * ToolStrip.cs: Set AutoSizeMode back to GrowAndShrink to refix
9650 bug #325406, but set a minimum for StatusStrip to 22 to keep
9651 bug #325390 fixed. I think this minimum would have been figured
9652 up automatically if the grip was actually a ToolStripItem, but it
9655 2007-09-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9657 * ListView.cs: max_label_wrapping is now 30 pixels instead of 38,
9658 as this is apparently the actual value used by .Net. Also apply
9659 ItemPadding in Details view only, and decrease the general width padding,
9660 to have only the needed. This should fix #324340 in Windows too.
9662 2007-09-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9664 * ListViewItem.cs: Don't Invalidate item if parent is inside
9665 a BeginUpdate/EndUpdate block. This prevents to have differences
9666 between the ListView and items state, as well as avoid some exceptions
9668 * ListView.cs: Make 'updating' field internal.
9670 2007-09-17 Jonathan Pobst <monkey@jpobst.com>
9672 * ToolStripControlHost.cs: Realign control when ControlAlign changes.
9673 * ToolStripItem.cs: Use ImageScalingSize when calculating preferred
9674 size if appropriate.
9675 Fixes reopened bug #325414.
9677 2007-09-17 Jonathan Pobst <monkey@jpobst.com>
9679 * ToolStrip.cs: Set AutoSizeMode back to GrowOnly.
9680 * ToolStripItem.cs: Invalidate before and after our new autosize when
9682 Fixes reopened bug #325390.
9684 2007-09-17 Jonathan Pobst <monkey@jpobst.com>
9686 * ToolStripMenuItem.cs: Make sure we invalidate when clicked so
9687 mnemonics can be drawn or undrawn correctly. Fixes reopened bug
9690 2007-09-17 Jonathan Pobst <monkey@jpobst.com>
9692 * Control.cs: Do WM_CONTEXTMENU before OnMouseUp. [Fixes bug #325535]
9694 2007-09-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9696 * ColumnHeader.cs: When drawing column text, use EllipsisCharacter
9697 instead of EllipsisWord (by equistango at gmail.com). Fixes part of
9700 2007-09-14 Jonathan Pobst <monkey@jpobst.com>
9702 * ToolStrip.cs: Make ToolStrip selectable when TabStop = true. Find an
9703 item to select when the ToolStrip is selected.
9704 * ToolStripControlHost: Realign the control when the bounds or visibility
9706 * ToolStripItem.cs: When selected, if it's a control host, focus the control.
9707 * ToolStripOverflow.cs: When laying out the drop down, respect the item's
9709 * ToolStripTextBox.cs: OnPaintInternal should call base.OnPaintInternal, not
9710 base.OnPaint. Was causing text not to be drawn.
9712 2007-09-14 Jonathan Pobst <monkey@jpobst.com>
9714 * SplitterPanel.cs: Ignore attempts to set AutoSizeMode.
9716 2007-09-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9718 * TreeView.cs: When creating the label edit text box,
9719 set is initially to Visible = false. This is done to
9720 prevent a confusion in the layout which makes it to lose
9721 focus when shown the first time. Fixes part of #82592.
9723 2007-09-13 Andreia Gaita <avidigal@novell.com>
9725 * WebBrowserBase.cs: add FocusOption enumeration for finer focus control
9727 2007-09-13 Jonathan Pobst <monkey@jpobst.com>
9729 * ToolStrip.cs: Take Margin into account when calculating preferred
9730 size. Also, allow preferred size to get smaller than the explicit
9732 * ToolStripTextBox.cs: Don't change the GetPreferredSize implementation.
9733 First step towards fixing bug #82747.
9735 2007-09-13 Jonathan Pobst <monkey@jpobst.com>
9737 * TreeView.cs: Applied patch from latency@gmx.de to not paint the
9738 full row select background over the plus/minus glyph. Also, turn
9739 off the focus rectangle for full row select since MS doesn't seem
9740 to ever paint it. [Fixes bug #81839]
9742 2007-09-13 Jonathan Pobst <monkey@jpobst.com>
9744 * ToolStrip.cs: Don't FocusInternal if there is no selected item.
9745 This was causing keyboard opened dropdowns to lose focus.
9748 2007-09-13 Jonathan Pobst <monkey@jpobst.com>
9750 * Control.cs: If Rectangle.Empty is passed to Invalidate, use
9751 ClientRectangle instead. [Fixes bug #82838]
9753 2007-09-13 Jonathan Pobst <monkey@jpobst.com>
9755 * SplitContainer.cs: We can't reset Visible on every layout because
9756 someone may have set Visible = false explicitly on a SplitterPanel.
9757 Make sure when we switch orientation the SplitterDistance does not
9758 change. Fixes two failing tests.
9760 2007-09-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9762 * TreeView.cs: Use MeasureTextInternal instead of MeasureText in
9763 TextRenderer, since the latter is only available in 2.0.
9765 2007-09-13 Ivan N. Zlatev <contact@i-nz.net>
9767 * Cursor.cs: Fix Cursor.Current to apply Cursor.Default.
9768 * SplitContainer.cs: Implement FixedPanel layouting.
9770 2007-09-12 Andreia Gaita <avidigal@novell.com>
9772 * WebBrowserBase.cs: setup shutdown routine
9774 2007-09-12 Andreia Gaita <avidigal@novell.com>
9776 * Application.cs: Let keyboard events that are targetted
9777 to non-mwf windows hosted inside mwf (as in, webbrowser),
9778 propagate properly. Fixes keyboard handling on the webbrowser.
9780 2007-09-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9782 * ListView.cs: When handling MouseUp event and we are
9783 highligting a node with the mouse right button, don't trigger
9784 Before/AfterSelecting event, since we are not actually selecting
9787 2007-09-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9789 * TreeView.cs: When editing a node, modify the edit text box
9790 depending on the text length (as you are typing), like MS does.
9792 2007-09-12 Jonathan Pobst <monkey@jpobst.com>
9794 * ToolStrip.cs: Fixup preferred size calculations for vertical toolbars.
9795 Override GetPreferredSizeCore to perform calculations. Remove custom
9796 autosize logic. [Fixes bug #82739]
9798 2007-09-12 Jonathan Pobst <monkey@jpobst.com>
9800 * TextBoxBase.cs: Modified should default to false.
9802 2007-09-11 Jonathan Pobst <monkey@jpobst.com>
9804 * Control.cs: Update the anchoring distances even when layout is supspended.
9805 Patch provided by George fixes bug #82805.
9807 2007-09-11 Jonathan Pobst <monkey@jpobst.com>
9809 * Control.cs: Provide a setter for ExplicitHeight.
9810 * TextBoxBase.cs: Now that we have the implementation for explicit heights,
9811 remove the hacks in here for requested_height.
9814 2007-09-11 Jonathan Pobst <monkey@jpobst.com>
9816 * ScrollBar.cs: Fix an issue reported on the lists where setting a scrollbar's
9817 Maximum to lower that its current Value caused an ArgumentException by setting
9818 the Value to the new Maximum.
9820 2007-09-11 Jonathan Pobst <monkey@jpobst.com>
9822 * ThemeWin32Classic.cs: Math is hard! Fix some math so that the TrackBar
9823 handle moves to the closest tick when it is being dragged.
9826 2007-09-11 Jonathan Pobst <monkey@jpobst.com>
9828 * ToolStripManager.cs: When we have added MDI buttons onto a MenuStrip, we
9829 can't let them count as real items when calculating where to merge in the
9830 user's items. [Fixed bug #82786]
9832 2007-09-10 Jonathan Pobst <monkey@jpobst.com>
9834 * ToolStripMenuItem.cs: Add a parent type check so we don't crash on people
9835 who want to add a menu item directly onto a toolstrip.
9836 [Fixes bug #82775, part II]
9838 2007-09-10 Jonathan Pobst <monkey@jpobst.com>
9840 * StatusStrip.cs: Synchronize SetDisplayedItems with the ToolStrip version.
9841 * ToolStrip.cs: If a ToolStripItem set to not visible is added to a ToolStrip,
9842 don't set it to available.
9843 * ToolStripItem.cs: When Visible is changed, tell the owner to perform a layout.
9844 [Fixes bug #82727, part II]
9846 2007-09-10 Jonathan Pobst <monkey@jpobst.com>
9848 * StatusStrip.cs: Change item placement to None if not visible.
9849 * ToolStripItem.cs: Invalidate when InternalVisible changes.
9850 These should have been committed to fix 82723, but I missed them.
9852 2007-09-10 Jonathan Pobst <monkey@jpobst.com>
9854 * ToolStrip.cs: Make sure ItemClicked is raised before the ToolStripItem's
9855 Click, and that it is only called once.
9856 * ToolStripMenuItem.cs: Call OnClick even when there are dropdown items.
9857 * ToolStripDropDownItem.cs: Override HandleItemClick so dropdowns stay
9861 2007-09-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9863 * ColumnHeaderSample.cs: Use 5 pixels as extra height instead of 8
9865 * ThemeWin32Classic.cs: For the columns text, use 5 pixels as left padding
9866 instead of 8, just like above. Partially fixes #82734.
9868 2007-09-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9870 Patch by Ernesto Carrea <equistango at gmail.com>. Partially
9873 * ListView.cs: Remove extra space between rows in Details view (match
9875 * ThemeWin32Classic.cs: Header text should use ListView.Font, not
9878 2007-09-08 Gert Driesen <drieseng@users.sourceforge.net>
9880 * Application.cs: Modified ProductVersion to return value of
9881 AssemblyInformationVersion if available, and fallback to assembly
9882 version. Fixes bug #82746. Code formatting.
9883 * BindingSource.cs: Remove NIE from Dispose, and mark it MonoTODO
9886 2007-09-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9888 * Control.cs: When updating ZOrder for a child control,
9889 take into account the implicit ones (we need it in our controls
9890 using them). Fixes #82642.
9892 2007-09-07 Jonathan Pobst <monkey@jpobst.com>
9894 * ToolStripItem.cs: Add support for animated images.
9897 2007-09-07 Jonathan Pobst <monkey@jpobst.com>
9899 * ToolStrip.cs: Make sure we aren't drawing anything that isn't
9900 visible. [Fixes bug #82727]
9902 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
9904 * ToolStripItem.cs: If AutoSize changes the size of our item, invalidate
9905 so we repaint using the new size. [Fixes bug #82723]
9907 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
9909 * TreeView.cs: If ShowLines is true, we should ignore the FullRowSelect
9910 option. [Fixes bug #81779]
9912 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
9914 * TreeView.cs: Override HandleClick because the StandardClick style is
9915 set to false. According to MSDN (and testing), the click events should
9916 only be raised when the click occurs on a TreeNode. [Fixes bug #81739]
9918 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
9920 * ToolStripTextBox.cs: Invalidate our textbox when it loses focus, so
9921 the border will disappear. Fixes reopened #82653.
9923 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
9925 * Control.cs: If the control is autosize, and its preferred size changes
9926 when it lays out its children, tell its parent so it can be re-layed out.
9927 Fixing some of the fallout from r85433.
9929 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
9931 * ThemeWin32Classic.cs: Fix a NRE caused by r85427 because RadioButton
9932 and CheckBox share some code.
9934 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
9936 * TrackBar.cs: Only call OnScroll if we actually changed the Value of
9937 the TrackBar, not every mouse move. [Fixed bug #82718]
9939 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
9941 * ThemeWin32Classic.cs: Allow a CheckBox to be rendered like a Button
9942 under 2.0 rendering. [Fixes bug #82657]
9944 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
9946 * TreeView.cs: If we found a TreeNode to display a context menu, but
9947 it doesn't have one to show, let the TreeView display its menu
9948 instead. [Fixes bug #82680]
9950 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
9952 * ToolStripTextBox.cs: TextBox no longer call OnPaint, we need to use
9953 OnPaintInternal instead. Give the internal TextBox a Border property
9954 so it can draw itself more correctly. [Fixes bug #82653]
9956 2007-09-06 Zoltan Varga <vargaz@gmail.com>
9958 * HtmlHistory.cs HtmlWindow.cs HtmlWindowCollection.cs ListBindingHelper.cs WindowsFormsSection.cs WindowsFormsSynchronizationContext.cs: Stubs for missing 2.0 classes.
9960 2007-09-05 Everaldo Canuto <everaldo@simios.org>
9962 * ComboBox.cs: Adjust combobox button state to reflect current state when
9963 back to enabled = true. Fixes first issue of #82654.
9965 2007-09-05 Everaldo Canuto <everaldo@simios.org>
9967 * Control.cs: Fix last patch regression, prevent forms to update zorder when
9968 setting visible property.
9970 2007-09-05 Everaldo Canuto <everaldo@simios.org>
9972 * Control.cs: Update zorder after control creation in SetVisibleCore, it
9973 fix zorder for controls initially created as non visible. Fixes #82667.
9975 2007-09-04 Everaldo Canuto <everaldo@simios.org>
9977 * ThemeWin32Classic.cs: Adjust checkbox light color to ControlLightLight to
9978 mimic win32 look. Fixes #82656.
9980 2007-09-01 Zoltan Varga <vargaz@gmail.com>
9982 * FileDialogCustomPlace.cs FileDialogCustomPlacesCollection.cs:
9983 Stubs for new net 3.5 classes.
9985 2007-08-31 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9987 * ListViewItem.cs: In ListViewItemCollection operations calculate
9988 Layout for owner as well as invalidate it. Fixes part of #82642.
9990 2007-08-31 Jonathan Pobst <monkey@jpobst.com>
9992 * ToolStripItem.cs: Take Parent/Owner's Enabled state in to account
9993 when returning Enabled. [Fixes bug #82651]
9995 2007-08-30 Everaldo Canuto <everaldo@simios.org>
9997 * ToolBar.cs: Fix button size for non flat toolbars. Fixes #82368.
9999 2007-08-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10001 * ListView.cs: Put item padding info in a single place
10002 (Theme.ListViewItemPaddingWidth) to have working AutoResize on
10004 * ThemeWin32Classic.cs:
10005 * Theme.cs: Likewise.
10007 2007-08-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10009 * ListView.cs: When a ListViewSubItem instance is invalidated,
10010 invoke Invalidate on parent ListViewItem, not parent ListView.
10013 2007-08-30 Jonathan Pobst <monkey@jpobst.com>
10015 * ListView.cs, ListViewItem.cs: corcompare stuffs.
10017 2007-08-30 Jonathan Pobst <monkey@jpobst.com>
10019 * BindingMemberInfo.cs: Implement == and != operators.
10021 2007-08-30 Jonathan Pobst <monkey@jpobst.com>
10023 * HtmlElementEventArgs.cs: Implement properties.
10025 2007-08-29 Jonathan Pobst <monkey@jpobst.com>
10027 * HtmlElementErrorEventArgs.cs, HtmlElementErrorEventHandler.cs: Added.
10029 2007-08-29 Jonathan Pobst <monkey@jpobst.com>
10031 * TabControl.cs: I was looking into the MonoTODO on TabPageCollection.
10032 Add (string,string,string) to implement the imagekey. It turns out, we
10033 use the requested imagekey whereas .Net does not. So I broke ours to match
10036 2007-08-29 Jonathan Pobst <monkey@jpobst.com>
10038 * Form.cs, UserControl.cs: Override ValidateChildren, AutoValidate.
10040 2007-08-29 Jonathan Pobst <monkey@jpobst.com>
10042 * ContainerControl.cs: Implement ValidateChildren and new Validate overload.
10044 2007-08-29 Gert Driesen <drieseng@users.sourceforge.net>
10046 * FolderBrowserDialog.cs: Set Tag of newly created node, and keep it
10047 up-to-date. Fixes bug #82618.
10049 2007-08-29 Everaldo Canuto <everaldo@simios.org>
10051 * TextBoxBase.cs: Call CalculateDocument after changes Lines property to
10052 reflect document changes. Fixes #82367.
10054 2007-08-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10056 * ListView.cs: Add/fix some override differences between 1.1 and 2.0,
10057 as well as add new ones. This should make work the BackgroundImage
10058 property for ListView again.
10060 2007-08-28 Jonathan Pobst <monkey@jpobst.com>
10062 * DataGrid.cs, DataGridViewButtonColumn.cs, DataGridViewCheckBoxColumn.cs,
10063 DataGridViewComboBoxColumn.cs, DataGridViewImageColumn.cs, DataGridViewLinkColumn.cs,
10064 DataGridViewTextBoxColumn.cs, ToolTip.cs: corcompare stuffs.
10066 2007-08-28 Jonathan Pobst <monkey@jpobst.com>
10068 * Control.cs, XPlatUI.cs, XPlatUIDriver.cs, XPlatUIWin32.cs: Implement
10071 2007-08-28 Jonathan Pobst <monkey@jpobst.com>
10073 * Cursor.cs: Add HotSpot, hook into XPlatUI.GetCursorInfo.
10074 * XPlatUIWin32.cs: Implement hotspot lookup in GetCursorInfo.
10076 2007-08-28 Jonathan Pobst <monkey@jpobst.com>
10078 * RadioButton.cs: Use 2.0 rendering. Use base implementation of TextAlign.
10079 * Theme.cs, ThemeWin32Classic.cs: Implement 2.0 rendering for RadioButton.
10081 2007-08-27 Ivan N. Zlatev <contact@i-nz.net>
10083 * CursorConverter.cs: Implement conversion to InstanceDescriptor.
10085 2007-08-27 Ivan N. Zlatev <contact@i-nz.net>
10087 * GridEntry.cs: Implement GetService.
10089 2007-08-27 Jonathan Pobst <monkey@jpobst.com>
10091 * LabelEditTextBox.cs, TreeView.cs: After hiding the textbox used
10092 for label editting, make sure we focus back on the TreeView.
10095 2007-08-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10097 * ListView.cs: Add some 2.0 overrides.
10099 2007-08-27 Everaldo Canuto <ecanuto@novell.com>
10101 * Form.cs: Uses opacity var instead of Opacity property in CreateHandle
10102 because getter dont returns right value before handle creation. Thanks
10103 to George. Fixes #82569.
10105 2007-08-27 Everaldo Canuto <ecanuto@novell.com>
10107 * Theme.cs: Revert last patch, it causes error under win32.
10109 2007-08-27 Everaldo Canuto <ecanuto@novell.com>
10111 * Theme.cs: Uses Environment.SpecialFolder.DesktopDirectory instead of
10112 Environment.SpecialFolder.Desktop in Places method, Desktop returns the
10113 logical Desktop rather than the physical file system location. Fixes #82603.
10115 2007-08-26 Everaldo Canuto <ecanuto@novell.com>
10117 * MessageBox.cs: Add clipboard copy (ctrl+c) to messagebox. Thanks Andy Hume
10118 for the patch. Fixes #82568.
10120 2007-08-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10122 * ListView.cs: Add a pair of missing 2.0 ListViewItemCollection.Insert
10125 2007-08-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10127 * ListViewInsertionMark.cs: New stubbed class.
10129 2007-08-25 Gert Driesen <drieseng@users.sourceforge.net>
10131 * FolderBrowserDialog.cs: When adding folder, immediately create the
10132 directory with temporary name and rename the directory when editing
10133 finishes. This matches MS. Ensure the node for the new folder is
10134 selected and LabelEdit is disabled, when editing is either finished
10137 2007-08-25 Gert Driesen <drieseng@users.sourceforge.net>
10139 * TreeView.cs: When editing label of node, ensure node is visible.
10141 2007-08-25 Ivan N. Zlatev <contact@i-nz.net>
10143 * PropertyGridView.cs: Set the value only if it has changed.
10145 2007-08-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10147 * ListView.cs: Some more code refactoring to add support sorting
10148 with groups (now for Details view). Remove unused code also.
10150 2007-08-24 Jonathan Pobst <monkey@jpobst.com>
10152 * NodeLabelEditEventArgs.cs: EndEdit immediately when CancelEdit is called.
10153 Not a big fan of reacting immediately to a field in an EventArg, but that's
10154 the way it's done. (This is part of the previous commit that got left out.)
10156 2007-08-25 Gert Driesen <drieseng@users.sourceforge.net>
10158 * FolderBrowserDialog.cs: Removed need for separate description field.
10159 Replaced "" with string.Empty. Fixed tabindex. Ensure OK button
10160 has focus when dialog box is displayed again, regardless of what
10161 button was pressed the previous time. Set RootFolder and SelectedPath
10162 each time dialog box is displayed. This ensures the treeview is
10163 refreshed, and fixes bug #82579. Do no hide selected node in TreeView
10164 when it does not have focus. Added support for more special folders.
10166 2007-08-24 Jonathan Pobst <monkey@jpobst.com>
10168 * TreeView.cs: Create a CancelEdit method. Clone the edit_args in EndEdit
10169 before calling AfterLabelEdit. If the user calls BeginEdit in that event,
10170 it resets the edit_args.
10171 * TreeNode.cs: Call CancelEdit if the user passes cancel = true to EndEdit.
10174 2007-08-24 Gert Driesen <drieseng@users.sourceforge.net>
10176 * FolderBrowserDialog.cs: Modifies form caption and text of new folder
10177 button to match MS. Provide more meaningful exception message for
10178 invalid RootFolder value. Use zero-length string when SelectedPath
10179 is set to null. Allow non-rooted paths in SelectedPath, but ignore
10180 them in FolderBrowserTreeView. Allow folders to be created in
10181 RootFolder. Fixes bug #82576.
10183 2007-08-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10185 * ListView.cs: Correctly compute the layout_ht (height) when using groups,
10186 since we need to take into account the group headers and the margin
10188 * ListViewGroup.cs: Add a rows field to store the number of rows per
10191 2007-08-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
10193 * DateTimePicker.cs: The MS' MTB has a really stupid year formatting.
10194 Anyways, let's just follow the lead.
10196 2007-08-24 Jonathan Pobst <monkey@jpobst.com>
10198 * CheckBox.cs: Set the AutoSizeMode to GrowAndShrink.
10199 * Form.cs, GroupBox.cs: Don't skip Right or Bottom anchored
10200 controls in GetPreferredSizeCore.
10201 * ThemeWin32Classic.cs: Tweak text drawing of CheckBoxes.
10204 2007-08-24 Jonathan Pobst <monkey@jpobst.com>
10206 * PrintDialog.cs: Need to instantiate the form variable here too.
10208 2007-08-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10210 * ListView.cs: Do some reorganization to support sorting in groups,
10211 by doing the layout sequentially in ListView.Items. Also add support
10212 for the Default Group, which should be available for items with no
10214 * ListViewGroup.cs: Add support for DefaultGroup. Include new members
10215 for storing layout info also.
10216 * ListViewGroupCollection.cs: Add a DefaultGroup as part of the
10217 collection, as well as providing internal members to do a traversal
10218 including the default group (needed when doing layout/drawing).
10219 * ThemeWin32Classic.cs: When drawing group headers use internal
10220 ListViewGroupCollection members to take into account the default
10223 2007-08-23 George Giolfan <georgegiolfan@yahoo.com>
10225 * FlowLayoutPanel.cs: Add GetPreferredSizeCore. [Fixes bug #82537]
10227 2007-08-23 Jonathan Pobst <monkey@jpobst.com>
10229 * TreeView.cs: IsInputKey: don't ask for any keys if the handle hasn't
10230 been created. If handle is created, we want arror keys. If we are editing
10231 a node, we want things like enter, esc, home, end, page up, page down.
10232 Allows Esc to work for FolderBrowserDialog.
10234 2007-08-23 Jonathan Pobst <monkey@jpobst.com>
10236 * ColorDialog.cs, FontDialog.cs: Set the form's CancelButton so that
10237 they close when ESC is pressed. Thanks Andy!
10239 2007-08-23 Jonathan Pobst <monkey@jpobst.com>
10241 * CommonDialog.cs: Do not instantiate form, leave that for derived classes.
10242 This way we can tell if this is a CommonDialog provided with mono, or one
10243 that is being implemented outside by a developer. If it is an external one,
10244 the developer is responsible for showing their own form. We were showing
10245 our blank form after the developer showed his.
10246 * ColorDialog.cs, FileDialog.cs, FolderBrowserDialog.cs, FontDialog.cs,
10247 PageSetupDialog.cs: Instantiate form variable in our constructor.
10250 2007-08-23 Jonathan Pobst <monkey@jpobst.com>
10252 * ListBox.cs, ListView.cs, TreeView.cs: Override IsInputCharInternal
10253 and always return true. [Fixes bug #81616]
10255 2007-08-23 Jonathan Pobst <monkey@jpobst.com>
10257 * TextBoxBase.cs: Allow 2.0 AutoSize to change the height of the
10258 TextBox. [Fixes bug #82549]
10260 2007-08-23 Gert Driesen <drieseng@users.sourceforge.net>
10262 * FileDialog.cs: When Save/Open is clicked and no filename is selected
10263 or entered then do not close the dialog. Fixes bug #82539. Removed
10266 2007-08-22 Everaldo Canuto <ecanuto@novell.com>
10268 * FileDialog.cs: Create UpdateRecentFiles and move the recent files refresh
10269 code to this method. It is calling every time filter changes. This method
10270 will help to fix the bug #80887.
10272 2007-08-22 Jonathan Pobst <monkey@jpobst.com>
10274 * CheckBox.cs: Implement AutoSize calculation.
10276 2007-08-22 Jonathan Pobst <monkey@jpobst.com>
10278 * CheckBox.cs: Use new 2.0 rendering for 2.0.
10279 * Theme.cs: Method declarations for 2.0 rendering path.
10280 * ThemeWin32Classic.cs: 2.0 rendering implementation for CheckBox.
10282 2007-08-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10284 * ListViewGroupCollection.cs: Fix a typo of the previous patch.
10286 2007-08-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10288 * ListViewGroupCollection.cs: Implement AddRange the right way, to
10289 only call Redraw on the parent one time.
10291 2007-08-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
10293 * DataGridViewRowHeaderCell.cs, DataGridViewColumnHeaderCell.cs: Implemented
10294 GetClipboardContent.
10295 * DataGridViewCell.cs: Implemented GetClipboardContent,
10296 GetEditedFormattedValue, GetFormattedValue.
10297 * DataGridView.cs: Implemented GetClipboardContent, TopLeftHeaderCell.
10299 2007-08-21 Jonathan Pobst <monkey@jpobst.com>
10301 * TableLayoutStyleCollection.cs: corcompare fix.
10303 2007-08-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
10305 * DataObject.cs: Implemented retrieval of convertible / not convertible
10308 2007-08-21 Jonathan Pobst <monkey@jpobst.com>
10310 * ToolStripItem.cs: When changing the item's text, invalidate before we resize
10311 ourselves. This ensures the entire old bounds are repainted, in case our new
10312 size is smaller. [Fixes bug #82518]
10314 2007-08-20 Everaldo Canuto <ecanuto@novell.com>
10316 * XplatUIX11.cs: Apply patch from #81588, it makes use of PointerMotionHintMask
10317 flag to make fast handle of mouse events, without this the mouse move is
10318 handled in some manner, whether it is a mouse move or not. Fixes #81588.
10320 2007-08-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10322 * ListView.cs: When doing layout calculations don't use a ref
10323 param to keep the current item; instead use its Index value (this
10324 is specially important when doing the layout with Groups
10325 and Items being sparse). Also don't take into account items added to
10326 the Group but not yet added to the main ListView.Items collection.
10328 2007-08-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10330 * ListViewGroupCollection.cs: Forgot to mimic an issue
10331 in the indexer (don't assign the ListView owner for new values).
10333 2007-08-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10335 * ListViewGroupCollection.cs: Make the string indexer use
10336 the int based indexer to re-use code, instead of duplicate the code.
10337 Also Redraw as needed and take into account null values.
10339 2007-08-20 Jonathan Pobst <monkey@jpobst.com>
10341 * StatusStrip.cs: Make sure the item's parent gets set in SetDisplayedItems.
10344 2007-08-20 Jonathan Pobst <monkey@jpobst.com>
10346 * ToolStrip.cs: Add some logic to un-focus controls in ToolStripControlHosts
10347 when other buttons are clicked or navigated to.
10349 2007-08-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
10351 * XplatUIX11.cs: Treat toolwindows as if they had no window manager, since
10352 it's XplatUIX11 that attaches them.
10354 2007-08-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
10356 * DataGridView.cs: If a column has been added, recreate the editing row.
10359 2007-08-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
10361 * TextControl.cs: Use Math.Max instead of Math.Min when deciding the length
10362 of the tag to draw. Makes disappearing text show up again.
10364 2007-08-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
10366 * StatusBar.cs: Take into account any icons when a panel has AutoSize =
10367 Contents. Fixes #82487.
10369 2007-08-19 Andreia Gaita <avidigal@novell.com>
10371 * Added HtmlElement.cs, HtmlElementCollection.cs,
10372 HtmlElementEventArgs.cs, HtmlElementEventHandler.cs
10374 2007-08-19 Andreia Gaita <avidigal@novell.com>
10376 * BindingSource.cs: Implement this, dispose and getenumerator.
10377 * DataGridViewRowCollection.cs: Move the InvalidOperationException
10378 out of AddInternal, throw it only on public Add calls. The
10379 UsingWebBrowser sample was blowing up with this when setting the
10380 DataSource after adding DataBindings, so it's likely that .net
10381 only throws this exception when Add is called directly.
10383 * ToolStripControlHost.cs: Return the hosted control's text
10384 property, and not the ToolStripItem one (it would always return
10385 the initial value).
10387 * HtmlDocument.cs: Implement GetElementById and All
10388 * WebBrowser.cs: Remove exception on set_DocumentStream.
10390 2007-08-19 Everaldo Canuto <ecanuto@novell.com>
10392 * Form.cs: Fix the max and min value for opacity (0~1).
10394 2007-08-19 Everaldo Canuto <ecanuto@novell.com>
10397 * DataGridTableStyle.cs: Default header font is now null, on getter it
10398 returns datagrid font when is null. On setter permits null.
10401 - When ResetHeaderFont set header font to null.
10402 - On EndInit set grid_style.DataGrid.
10404 2007-08-19 Everaldo Canuto <ecanuto@novell.com>
10406 * TabControl.cs: Fix regression in default padding x.
10408 2007-08-19 Everaldo Canuto <ecanuto@novell.com>
10410 * TabControl.cs: Fix tab page text area removing padding. Fixes #82471.
10412 2007-08-19 Everaldo Canuto <ecanuto@novell.com>
10414 * TabControl.cs: Fix first tab drawing, when selected it must have x = 0
10415 not 2. Fixes #82229.
10417 2007-08-18 Everaldo Canuto <ecanuto@novell.com>
10419 * TabControl.cs: Fix tab size when image height is less than text height.
10420 Partially fixes #81837.
10422 2007-08-18 Everaldo Canuto <ecanuto@novell.com>
10424 * Form.cs: Add WS_EX_CONTROLPARENT to forms to make it selectable using
10425 "alt + tab". It works only for Win32, for X11 theres no way to remove window
10426 from taskbar and keep it on "alt_tab". Fixes #81722.
10428 2007-08-18 Everaldo Canuto <ecanuto@novell.com>
10430 * XplatUIX11.cs: Apply patch from Jurek Bartuszek to fix DrawReversibleFrame
10431 and DrawReversibleLine, also apply same behavior to FillReversibleRectangle.
10432 Fixes #80877 and #79418.
10434 2007-08-18 Everaldo Canuto <ecanuto@novell.com>
10436 * MenuAPI.cs: Fix popup menu position when the size is larger than distance
10437 between position and one of the screen borders. Fixes #82349.
10439 2007-08-18 Everaldo Canuto <ecanuto@novell.com>
10441 * MessageBox.cs: When there is no form that invoked the MessageBox, shows
10442 the MessageBox in the taskbar. Fixes #82457.
10444 2007-08-18 Everaldo Canuto <ecanuto@novell.com>
10446 * MessageBox.cs: Fix form size when icon is set and text height is bigger
10447 than icon. Fixes #82468.
10449 2007-08-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
10451 * ThemeWin32Classic.cs: A FixedToolWindow has border size 3.
10452 * InternalWindowManager.cs: Change HandleCalcSize to return a boolean value
10453 if handled or not. Implement WM_NCCALCSIZE for WParam == 0 as well.
10454 Refactored HandleNCCalcSize somewhat to avoid code duplication.
10455 * Form.cs: Add is_clientsize_set, set in set_ClientSize, used by
10456 FormBorderStyle to decide if we're calculating a new size from the
10457 client size or not. CreateParams: Don't fake tool windows, only the X11
10458 backend manages toolwindows manually.
10460 2007-08-17 Jonathan Pobst <monkey@jpobst.com>
10462 * Form.cs: Only reset is_visible if !IsDisposed to prevent an
10463 ObjectDisposedException.
10465 2007-08-17 Jonathan Pobst <monkey@jpobst.com>
10467 * Form.cs: Reset is_visible back to true after OnLoad. Setting this
10468 in OnLoad should not have any effect. [Fixes bug #82470]
10470 2007-08-17 Jonathan Pobst <monkey@jpobst.com>
10472 * ToolTip.cs: Add a hack to ToolTipWindow so it will still size and
10473 paint for controls that create their own ToolTipWindow instead of
10474 going through ToolTip.
10476 2007-08-17 Jonathan Pobst <monkey@jpobst.com>
10478 * ToolTip.cs: Make Hide internal instead of public to match MS API.
10480 2007-08-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10482 * ListViewGroupCollection.cs: Use generic List instead of an
10483 ArrayList, since this collection is 2.0 only.
10485 2007-08-17 Jeffrey Stedfast <fejj@novell.com>
10487 * ToolTip.cs (Hide): Made public to make the build work (should
10488 this not be public?).
10490 2007-08-17 Jonathan Pobst <monkey@jpobst.com>
10492 * ToolBar.cs, ToolStrip.cs, TreeView.cs: Use a ToolTip instead of a
10494 * ToolTip.cs: Add an internal Visible property to facilitate transition.
10496 2007-08-17 Jonathan Pobst <monkey@jpobst.com>
10498 * DrawToolTipEventArgs.cs, DrawToolTipEventHandler.cs, PopupEventArgs.cs,
10499 PopupEventHandler.cs: Make these internal for 1.1.
10500 * ThemeClearlooks.cs, ThemeWin32Classic.cs: Use TextRenderer, and modify to not
10501 use ToolTipWindow internals.
10502 * ToolTip.cs: Add 2.0 modal Show methods. Had to move a lot of stuff around to
10503 support this. A lot of stuff in the ToolTipWindow got moved to the ToolTip.
10505 2007-08-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
10507 * X11Dnd.cs: Add a null check.
10509 2007-08-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
10511 * X11Dnd.cs: MwfWindow: Try to load the control directly from the handle if
10512 nothing else succeeds. Fixes #82453.
10514 2007-08-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
10516 * XplatUIWin32.cs: PaintEventStart: validate the entire source client
10517 rectangle if we're painting to another window than the one the paint
10518 message was generated on. Simplify the code somewhat, which makes
10519 PaintEventEnd also simpler.
10521 2007-08-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
10523 * Control.cs: When changing parent of a form, let the form decide whether
10524 XplatUI.SetParent should be called or not.
10525 * Form.cs: ChangingParent: only call XplatUI.SetParent if we're not
10526 recreating the handle. If the new parent's handle isn't created, don't
10527 recreate our handle, just destroy it. CreateParams: Check if the
10528 parent's handle is created before fetching it.
10530 2007-08-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
10532 * Control.cs, Form.cs, InternalWindowManager.cs, MainMenu.cs, MdiClient.cs:
10533 Update calls to PaintEventStart/End to take a Message argument.
10534 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Update PaintEventStart/End to
10535 take a Message argument.
10536 * XplatUIWin32.cs, XplatUIX11.cs: Update PaintEventStart/End to take a
10537 Message argument, and handle the case where we don't paint to the window
10538 for which the paint message was generated.
10540 2007-08-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
10542 * XplatUIWin32.cs: Don't call Win32GetLastError directly, use
10543 Marshal.GetLastWin32Error. Plug nasty memory leak in
10544 PaintEventStart/End, we were creating a DC we weren't releasing.
10546 2007-08-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10548 * ListView.cs: Add Groups support in Details view. Also have a small
10549 method to do the layout of the group header. Don't use a separate
10550 method to do the groups calculation in Icons view, since our methods
10551 are now a little simpler.
10552 * ListViewGroup.cs: Use the more accurate `HeaderBounds' name than
10554 * ThemeWin32Classic.cs: Likewise.
10556 2007-08-16 Jonathan Pobst <monkey@jpobst.com>
10558 * Application.cs: Add FilterMessage method and rework our message loop
10561 2007-08-16 Jonathan Pobst <monkey@jpobst.com>
10563 * Application.cs: Add some methods and stub a few methods that are
10564 pretty much never used.
10566 2007-08-15 Jonathan Pobst <monkey@jpobst.com>
10568 * TreeNode.cs: Add some serialization methods.
10570 2007-08-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10572 * ListView.cs: In ListViewItemCollection have a
10573 'is_main_collection' field to not modify ListViewItem.ListView
10574 when using it as ListViewGroup.Items (and not ListView.Items)
10575 and also don't modify selection state (.Net behaviour).
10576 Instead, set group for items contained in a ListViewGroup.Items collection.
10577 * ListViewItem.cs: Simplify some code in Group setter.
10578 * ListViewGroup.cs: use the new .ctor to pass the current instance
10579 to the ItemsCollection.
10580 * ListViewGroup.cs: Set the ListView property for ListViewGroup
10581 instances when adding/removing. Also make Remove use RemoveAt, which
10582 should perform better.
10584 2007-08-14 Jonathan Pobst <monkey@jpobst.com>
10586 * Message.cs, TabControl.cs, TextBox.cs, TextBoxBase.cs: Hide some 2.0 API
10587 that crept into the 1.1 profile.
10589 2007-08-14 Jonathan Pobst <monkey@jpobst.com>
10591 * ToolBarButton.cs: Implement ImageKey.
10593 2007-08-14 Jonathan Pobst <monkey@jpobst.com>
10595 * ToolBar.cs: Implement ScaleControl/ScaleCore.
10597 2007-08-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
10599 * PictureBox.cs: OnAnimateImage/UpdateAnimateImage: Check if handle is still
10600 created, it might have gotten destroyed since we last checked. Fixes
10603 2007-08-11 Jonathan Pobst <monkey@jpobst.com>
10605 * ToolTip.cs: Remove mouse in control check from mouseleave handler so
10606 tooltip will hide when mouse is moved off the control.
10609 2007-08-11 Andreia Gaita <avidigal@novell.com>
10611 * WebBrowserBase.cs, WebBrowser.cs: add implementation
10612 using Mono.Mozilla for loading and navigating webcontrol
10614 The initial implementation was done on
10615 /trunk/mozembed/tests/browser , and copied here.
10617 2007-08-11 Gert Driesen <drieseng@users.sourceforge.net>
10619 * ThemeWin32Classic.cs: On 2.0 profile, use ForeColor and BackColor of
10620 ToolTipWindow for drawing the tooltip. Fixes bug #82408.
10622 2007-08-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
10624 * DataGridView.cs: Add support for an editing row. Fixes #82226.
10625 RowTemplateFull: throw an exception if a column doesn't have a template.
10626 * DataGridViewRowCollection.cs: AddInternal: if there are any editing rows,
10627 add the row just before it.
10628 * DataGridViewTextBoxCell.cs: Don't paint cells which are in edit mode as
10630 * DataGridViewSelectedRowCollection.cs: Don't return the editing row. Add a
10631 DataGridView field to be able to reach the grid's editing row.
10633 2007-08-10 Jonathan Pobst <monkey@jpobst.com>
10635 * ToolTip.cs: If the control's handle hasn't been created when it has a
10636 tooltip set on it, don't check to see if we need to show the tooltip. This
10637 check was causing the control's handle to be created.
10640 2007-08-10 Jonathan Pobst <monkey@jpobst.com>
10642 * TextBoxBase.cs: Fix SelectionLength when no text selected to match MS:
10644 Handle Not Created -1 0
10648 2007-08-10 Jonathan Pobst <monkey@jpobst.com>
10650 * ToolTip.cs: Hide the tooltip if the control is clicked to match MS behavior.
10653 2007-08-09 Jonathan Pobst <monkey@jpobst.com>
10655 * DrawToolTipEventArgs.cs: Don't dispose a brush we got from the respool.
10656 * ToolTip.cs: Implement some properties and owner draw.
10658 2007-08-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
10660 * DataGridView.cs: OnPaint: don't set scrollbar visibility to false then
10661 show them again, since setting visibility causes a paint, causing an
10662 endless loop (instead use a temporary and set it all when it's known if
10663 they should be shown or not). Fixes #79265.
10665 2007-08-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
10667 * DataGridView.cs: Only do a full column/row selection if a header was
10668 clicked and we're in Column/RowHeader selection mode. If shift and ctrl
10669 isn't pressed, deselect everything before selecting something.
10671 2007-08-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
10673 * DataGridView.cs: Fix SelectedRows and SelectedColumns to match MS
10674 behaviour according to bug #81075 - they are returned in the order they
10675 are selected. Fix HitTest to check if the point is within any of the
10676 headers. Allow for row/column selection when in ColumnHeader or
10677 RowHeader selection mode. Add SetSelected[Column|Row]CoreInternal for
10678 the row and column to call when their selected state changes, and
10679 updated selected_[rows|columns] whenever SetSelected* is called.
10680 * DataGridViewBand.cs: Initialize isRow correctly. Call
10681 SetSelected[Row|Column]CoreInternal when the selected state changes, and
10682 add a SelectedInternal to avoid StackOverflows.
10683 * DataGridViewColumn.cs, DataGridViewRow.cs: If DGV is ReadOnly, we're also
10684 ReadOnly no matter what.
10685 * DataGridViewSelectedColumnCollection.cs,
10686 DataGridViewSelectedRowCollection.cs: Add an InternalAddRange that adds
10687 the items in reverse order (just as MS does...)
10689 2007-08-09 Jonathan Pobst <monkey@jpobst.com>
10691 * Application.cs: Only release menustrips if Alt (MenuKey) is pressed by
10692 itself, not part of a mnemonic. [Fixes bug #82378]
10694 2007-08-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
10696 * DataGridView.cs: BeginEdit: don't allow editing of readonly cells.
10697 * DataGridViewCell.cs: Implement ReadOnly better: the cell is ReadOnly if
10698 the DGV, the column, the row, or the cell itself is readonly.
10700 2007-08-09 Gert Driesen <drieseng@users.sourceforge.net>
10702 * ThemeNice.cs: Use XplatUI.RunningOnUnix instead of checking
10703 OSVersion.Platform.
10704 * FileDialog.cs: Same.
10705 * TextRendered.cs: Same.
10706 * FolderBrowserDialog.cs: Same.
10707 * TextBoxBase.cs: Same.
10708 * Application.cs: Same.
10709 * Cursors.cs: Same.
10710 * ThemeClearLooks.cs: Same.
10712 2007-08-09 Gert Driesen <drieseng@users.sourceforge.net>
10714 * XplatUI.cs: Added RunningOnUnix property to be used by controls
10715 instead of duplicating these checks everywhere.
10716 * FileDialog.cs: Use case-insensitive comparison for populating the
10717 DirComboBox when not running on unix. Fixes bug #82385.
10718 * OpenFileDialog.cs: to match MS, change label of DirComboBox to
10721 2007-08-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
10723 * DataGridView.cs: SelectedRows: we need to check if selectionMode is
10724 FullRowSelect (not FullColumnSelect). Fixes #81075. Implemented
10725 BeginEdit, EndEdit, SetSelected<Cell|Row|Column>Core. Implemented row,
10726 cell and column selection with ctrl and shift pressed. Call the correct
10727 BeginEdit/EndEdit whenever we start/end editing. Move painting code to
10728 the corresponding virtual method (PaintBackground to paint background,
10730 * DataGridViewCell.cs: Implement Selected correctly, we're selected if
10731 either the column, row or the cell itself is selected.
10732 * DataGridViewRowCollection.cs: Use DGV.OnRowsAddedInternal instead of
10734 * DataGridViewRow.cs: Moved some of the painting code from DataGridView
10735 here. When the row is selected, don't select all cells. Each cell now
10736 queries the row to see if the row is selected.
10738 2007-08-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
10740 * DataGridViewColumn.cs: Throw if the SortMode conflicts with DataGridView's
10743 2007-08-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10745 * ListView.cs: In ListViewItemsCollection check that owner is
10746 not null before trying to access it (this happens quite often
10747 using Groups). Also don't duplicate calls by calling CollectionChanged
10750 2007-08-08 Jonathan Pobst <monkey@jpobst.com>
10752 * ToolStrip.cs: Record if we were activated by mouse or keyboard. Redraw
10753 when we are dismissed to clear keyboard mnemonics.
10754 * MenuStrip.cs, ToolStripDropDown.cs, ToolStripItem.cs,
10755 ToolStripMenuItem.cs: Record if we were activated by mouse or keyboard.
10756 * ToolStripItemTextRenderEventArgs.cs: Draw mnemonic underlines if menu
10757 was activated by keyboard or the OS tells us to always draw them.
10758 * ToolStripManager.cs: Setup storage for activated by mouse or keyboard.
10759 [Fixes bugs #82376, #82377]
10761 2007-08-08 Jonathan Pobst <monkey@jpobst.com>
10763 * Control.cs: If no one accepts a mnemonic, let the MenuStrip have a
10764 shot at having it because Alt was pressed.
10765 * MenuStrip.cs: When handling Alt, don't select a SystemMenuItem, select
10766 the first real menu item.
10767 * ToolStrip.cs: Don't crash when looking for a ToolStripItem to handle
10768 a mnemonic if Text is null.
10771 2007-08-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10773 * ListView.cs: In ListViewItemCollection.AddItem, don't do a linear
10774 search do check whether the item is already contained in the
10775 collection or not; instead check if the owner of the item is the same
10776 as ours. Also, remove a redundant check in the same method.
10778 2007-08-08 Jonathan Pobst <monkey@jpobst.com>
10780 * Control.cs: Allow the clip region to be set back to null.
10781 * XplatUIWin32.cs: If we are sent a null clip region, use IntPtr.Zero.
10782 [Fixes button still showing up in bug #82370 when Show Through is turned off]
10784 2007-08-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
10786 * GridEntry.cs: Add a null check.
10787 * PropertyGrid.cs: When checking for existing grid entries, ignore category
10788 entries. Fixes #82297.
10790 2007-08-07 Jonathan Pobst <monkey@jpobst.com>
10792 * OwnerDrawPropertyBag.cs: Make the serialization constructor protected
10795 2007-08-07 Jonathan Pobst <monkey@jpobst.com>
10797 * ListBox.cs: Implement ScaleControl.
10799 2007-08-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
10801 * Form.cs: Add a few ActiveMenu null checks. ActiveMenu might be null if we
10803 * MdiWindowManager.cs: Don't create a maximized menu if the child or it's
10804 parent has a menu strip. Fixes #81689.
10806 2007-08-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
10808 * ToolTip.cs: We don't get mouse events on all platforms in the exact same
10809 moments, so apply some fuzzy logic to determine if the mouse is still
10810 inside a control or not. Fixes #82288 (for the third time).
10812 2007-08-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
10814 * Control.cs: CreateControl: create implicit children as well. Fixes #82344.
10815 Don't create the child if it has been disposed already (may happen if
10816 the user closes the form the Load event).
10818 2007-08-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
10820 * ToolTip.cs: If ReshowDelay is 0, show the tooltip immediately. Fixes
10823 2007-08-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
10825 * Control.cs: Add a null check in OnParentBindingContextChanged. The parent
10826 might call us after we've been destroyed, in which case our own private
10827 parent field is null. Fixes #82326.
10829 2007-08-06 Jonathan Pobst <monkey@jpobst.com>
10831 * ToolStripDropDown.cs: Fix a failing test on X11 by adding a null
10832 check for setting the dropdown's owner.
10834 2007-08-06 Jonathan Pobst <monkey@jpobst.com>
10836 * MdiClient.cs: Fix some failing tests on X11 by adding a null check
10837 before removing system menu items.
10839 2007-08-02 Jonathan Pobst <monkey@jpobst.com>
10841 * MdiClient.cs, MdiWindowManager.cs: Support 2.0 Mdi MenuStrip
10843 * MdiControlStrip.cs: Added. These are the menu items used in mdi
10845 * ToolStrip.cs: Add a null check to mnemonics.
10846 * ToolStripDropDownMenu.cs: When using a SystemMenuItem, there is
10848 [Fixes most of bug #81689]
10850 2007-08-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
10852 * PropertyGrid.cs: Add a null-check. Fixes #82289/SVGPad.
10854 2007-08-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
10856 Use InitialDelay if ReshowDelay is zero. Fixes #82288.
10858 2007-08-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
10860 * DataGridViewCell.cs: EditType: returns
10861 DataGridViewTextBoxEditingControl always.
10863 2007-08-01 Jonathan Pobst <monkey@jpobst.com>
10865 * TextRenderer.cs: Remove the LineLimit string format flag from the
10866 DrawString fallback method so that things like buttons that aren't
10867 tall enough to draw a full line will still draw part of the text.
10868 [Fixes part of bug #82272]
10870 2007-08-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
10872 * DataGridView.cs: Implemented AutoResizeColumn(s).
10873 * DataGridViewCellStyle.cs: Added SetAlignment, fills in a StringFormat
10874 according to the Alignment.
10875 * DataGridViewColumnHeaderCell.cs, DataGridViewTextBoxCell.cs:
10876 Implement alignment and padding when painting.
10877 * DataGridViewRow.cs: SetValues: Don't create a cell if it already
10879 * DataGridViewCell.cs: Implement BorderWidths in the most primitive
10881 * DataGridViewColumnCollection.cs: Raise OnColumnAdded on the DGV when
10884 2007-07-31 Jonathan Pobst <monkey@jpobst.com>
10886 * TextBoxBase.cs: Use Control.ExplicitBounds instead of explicit_bounds,
10889 2007-07-31 Jonathan Pobst <monkey@jpobst.com>
10891 * ToolStrip.cs: Stub out drag and drop methods, fix some corcompare stuff,
10892 hide GetPreferredSize from public API.
10893 * ToolStripDropDown.cs: Override AllowItemReorder, fix AccessibleObject.
10894 * ToolStripItem.cs: Stub out drag and drop methods and events.
10895 * ToolStripManager.cs: Stub out Save/LoadSettings.
10896 * ToolStripOverflow.cs: Use renamed ToolStrip.GetPreferredSize.
10897 * ToolStripPanel.cs: Fix corcompare error.
10898 * ToolStripPanelRow.cs: Use renamed ToolStrip.GetPreferredSize.
10899 * ToolStripSplitButton.cs: Fix AccessibleObject stuff.
10900 * ToolStripSplitStackLayout.cs: Use renamed ToolStrip.GetPreferredSize.
10902 2007-07-31 Jonathan Pobst <monkey@jpobst.com>
10904 * TextBoxBase.cs: In our new GetPreferredSizeCore, return the explicit
10905 bounds height instead of PreferredHeight. Puts things back the way
10906 they were for height while still fixing the width. Fixes broken unit
10909 2007-07-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
10911 * Binding.cs: Implement 2.0 constructors and add a null check.
10913 2007-07-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
10915 * DataGridViewRowCollection.cs: Allow a null DGV in the constructor,
10916 and fix row index (off by one).
10918 2007-07-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
10920 * PropertyGridView.cs: Remove debug output.
10922 2007-07-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
10924 * Control.cs: We need to reset the is_created flags when the handle is
10925 destroyed. Fixes #82187.
10926 * XplatUIWin32.cs: In GetWindowRect don't offset screen coordinates to
10927 client coordinates if the window doesn't have a parent.
10928 Win32GetParent returns the parent or the owner, and for top-level
10929 windows with no parent (but with an owner) we were calculating the
10930 location from the location of the owner.
10931 * Form.cs: Remove incorrect fix for #82187. Don't raise OnLoad if the
10932 form has been disposed.
10933 * MdiClient.cs: Add a null-check.
10935 2007-07-30 Jonathan Pobst <monkey@jpobst.com>
10937 * TextBoxBase.cs: TextBoxBase reports itself at AutoSize, but doesn't
10938 actually do auto-sizing. Override the internal GetPreferredSizeCore
10939 so we can provide an implementation that returns the current width
10940 and preferred height. Allows anchor = right to work with TextBox 2.0.
10943 2007-07-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10945 * ListView.cs: Add support for navigating items in Groups mode, by
10946 creating a big matrix containing all rows and cols of all groups. When
10947 are in other mode than Details, pressing Up should have a similar
10948 behaviour as that one of Down (moving to the next available column if
10949 current one doesn't have an item in the requested row). Also, don't
10950 proceed to use groups if ShowGroups is false.
10951 * ListViewGroup.cs: Add an internal int field to store the starting
10952 row of the group (used by the big matrix used for navigating the
10954 * ThemeWin32Classic.cs: Don't draw headers if ListView.ShowGroups is
10957 2007-07-30 Jonathan Pobst <monkey@jpobst.com>
10959 * ToolStripDropDown.cs: When we do Show, start with the
10960 DefaultDropDownDirection, but if our popup menu is going to off-screen,
10961 modify the direction to keep it on screen. [Fixes bug #82210]
10963 2007-07-29 Gert Driesen <drieseng@users.sourceforge.net>
10965 * FileDialog.cs: Accept any FilterIndex value, and store it
10966 unmodified. When FilterIndex is less than 1, or greater than number
10967 of filters, then default to first filter. Only add filter extension to
10968 file if user did not specifiy an extension. When type of dialog is
10969 OpenFileDialog and DefaultExt is set, then only use filter extension
10970 if: CheckFileExists is true and no file wih the default extension
10971 exists, or CheckFileExists is false, and user specified file does not
10972 exist. When CheckFileExists is true, then add first extension of
10973 selected filter that matches existing file. Perform checks for
10974 existing file, overwrite and create after extension has been added to
10975 file name. When CheckFileExists is true and type is SaveFileDialog,
10976 then only consider first filter extension if DefaultExt is set.
10977 When CheckFileExists is true, then ignore DefaultExt if file with that
10978 extension does not exist. Also perform check for existing file when
10979 type is SaveFileDialog. Changed some field to constants.
10981 2007-07-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10983 * ListView.cs: Take into account the region used by header
10984 control when doing the vertical scroll (this way we invalidate
10985 the precise area, and don't get any dirty one).
10987 2007-07-27 Everaldo Canuto <ecanuto@novell.com>
10989 * FileDialog.cs: Check for valid filterIndex on button open/save.
10992 2007-07-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10994 * ListView.cs: Update some layout calculations in details view
10995 and clean the code in a pair of assignations.
10997 2007-07-26 Jonathan Pobst <monkey@jpobst.com>
10999 * ComboBox.cs, ContainerControl.cs, DataGrid.cs, FontDialog.cs, Label.cs,
11000 LinkLabel.cs, ListBox.cs, ListView.cs, ListViewItem.cs, MessageBox.cs,
11001 MonthCalender.cs, StatusBar.cs, ThemeClearlooks.cs, ThemeWin32Class.cs,
11002 ToolBar.cs, TreeView.cs: First pass at using thread-safe string measuring.
11004 2007-07-26 Jonathan Pobst <monkey@jpobst.com>
11006 * TextRenderer.cs: Use [ThreadStatic] instead of locks to improve
11007 performance of thread-safe Graphic methods. (Thanks rolf!)
11009 2007-07-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11011 * ListView.cs: When doing the layout calculations, don't calculate
11012 scroll bars before handle is created. This is unnecessary and also
11013 calculating them before handle creation item causes a number of random
11014 bugs (which begin to appear after Chris' big patch for handle creation
11017 2007-07-26 Jonathan Pobst <monkey@jpobst.com>
11019 * TextRenderer.cs: Create thread-safe versions of Graphics.MeasureString
11020 for things that don't have a Graphics object. Currently, things just use
11021 the static Hwnd.bmp_g which is not thread safe.
11023 2007-07-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
11025 * Form.cs: ShowDialog: don't destroy handles if the dialog is a common
11026 dialog. Fixes #82187.
11028 2007-07-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
11030 * DataGridViewElement.cs: Initialize state.
11031 * DataGridView.cs: Forward a few Mouse events to cells. Add
11032 GetRowInternal and GetCellInternal that doesn't unshare rows.
11033 Implement GetCellDisplayRectangle. HitTest: if the row is shared,
11034 don't use the index, but look it up. Add
11035 DataGridViewControlCollection.RemoveInternal to remove controls
11036 that Remove won't remove (scrollbars, edit control).
11037 * DataGridViewColumn.cs: Initialize State correctly.
11038 * DataGridViewColumnHeaderCell.cs, DataGridViewComboBoxCell.cs,
11039 DataGridViewHeaderCell.cs, DataGridViewRowHeaderCell.cs: Started
11041 * DataGridViewRowCollection.cs: Implemented shared rows.
11042 * DataGridViewRow.cs: Throw exceptions as MS do.
11043 * DataGridViewCell.cs: A few properties are implemented by a
11044 Get<Property> method, so move implementation there and remove the
11045 NIEX in the method. Add a bunch of OnXInternal that DataGridView
11046 calls when necessary.
11047 * DataGridViewComboBoxEditingControl.cs: Remove a few NIEX'es that just
11048 complicates matters.
11049 * DataGridViewCellCollection.cs: Add a GetCellInternal that doesn't
11052 2007-07-25 Jonathan Pobst <monkey@jpobst.com>
11054 * UpDownBase.cs: We cannot override SetBoundsCore for 2.0, which was relayout-ing
11055 the children controls. Instead, we will just set up the proper docking for the
11056 children controls so we don't have to worry about it. [Fixes bug #82188]
11058 2007-07-25 Jonathan Pobst <monkey@jpobst.com>
11060 * TreeView.cs, NodeLabelEditEventArgs.cs, LabelEditTextBox.cs: Support edit
11061 canceling and correct Before/AfterLabelEdit properties as layed out in bug
11062 81847. [Fixes bug #81847]
11064 2007-07-25 Jonathan Pobst <monkey@jpobst.com>
11066 * Label.cs: If AutoSize = true and a width or height is set, ignore it and
11067 redo the autosize. VS2005 defaults to setting the AutoSize, and then setting
11068 an explicit size based on the design-time size of the text. Since our fonts
11069 may not match this explicit size, we tend to cut off the ends of people's labels.
11071 2007-07-24 Jonathan Pobst <monkey@jpobst.com>
11073 * Menu.cs: Add some missing methods to MenuItemCollection.
11075 2007-07-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
11077 * DataGridView.cs: Added RowTemplateFull, creates a row from the templates in the columns.
11078 * DataGridViewBand.cs: DefaultHeaderCellType: initialize correctly. Resizable: if not set, check DGV.
11079 * DataGridViewColumn.cs: InheritedAutoSizeMode: if not set, check DGV. Resizable: delegate to base class. ToolTipText: Never return null. Initialize a few other properties correctly.
11080 * DataGridViewColumnCollection.cs: Add: Default column is a TextBoxColumn.
11081 * DataGridViewComboBoxCell.cs: Started implementing this, lots left still.
11082 * DataGridViewElement.cs: State defaults to Visible.
11083 * DataGridViewRowCollection.cs: Add: creates the new row based on a template.
11084 * DataGridViewTextBoxColumn.cs: SortMode: delegate to base class, but initialize to Automatic. ToString: implement correctly.
11086 2007-07-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
11088 * Control.cs: Minor 1.1 corcompare fix.
11090 2007-07-23 Jonathan Pobst <monkey@jpobst.com>
11092 * LinkLabel.cs, PrintPreviewDialog.cs, TabPage.cs, TextBox.cs,
11093 TextBoxBase.cs, ToolBar.cs: 2.0 corcompare work.
11095 2007-07-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
11097 * DataGridViewLinkColumn.cs, DataGridViewRowCollection.cs,
11098 DataGridViewImageColumn.cs, DataGridViewSelectedCellCollection.cs,
11099 DataGridViewComboBoxCell.cs, DataGridViewLinkCell.cs,
11100 DataGridViewSelectedColumnCollection.cs,
11101 DataGridViewSelectedRowCollection.cs: Corcompare work.
11103 2007-07-23 Jonathan Pobst <monkey@jpobst.com>
11105 * PrintDialog.cs: Stub UseEXDialog. I chose to stub this because
11106 it is autoset by VS2005 designer and the effect is barely noticeable.
11108 2007-07-23 Jonathan Pobst <monkey@jpobst.com>
11110 * TreeView.cs: Implement HitTest.
11112 2007-07-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
11114 * DataGridViewTextBoxCell.cs: Use DGV.EditControlInternal instead of
11115 manually adding and removing the control from the Controls
11117 * DataGridView.cs: Implement DataGridViewControlCollection. Add an
11118 EditingControlInternal property that tracks the editing control.
11119 Always keeping the scrollbars in the Controls collection, as MS
11120 testing confirms is the right behaviour.
11122 2007-07-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
11124 * ScrollableControl.cs: Fix implementation of AutoScrollPosition
11125 according to MSDN and new test.
11127 2007-07-20 Jonathan Pobst <monkey@jpobst.com>
11129 * TreeNode.cs: Implement ToolTipText.
11130 * TreeView.cs: Implement tooltips, NodeMouse* events.
11132 2007-07-20 Jonathan Pobst <monkey@jpobst.com>
11134 * TreeView.cs: Implement OnNodeMouseClick and OnNodeMouseDoubleClick.
11136 2007-07-20 Jonathan Pobst <monkey@jpobst.com>
11138 * TreeNode.cs: Implement ContextMenu, ContextMenuStrip, and Level.
11139 * TreeView.cs: Use the node's contextmenu[strip] if applicable.
11141 2007-07-20 Ivan N. Zlatev <contact@i-nz.net>
11143 * Control.cs, Form.cs, ContainerControl.cs,
11144 ScrollableControl.cs, ButtonBase.cs: Added ShouldSerialize
11145 for misc properties.
11147 2007-07-20 Jonathan Pobst <monkey@jpobst.com>
11149 * TreeNode.cs: Implement StateImageIndex and StateImageKey.
11150 * TreeView.cs: Implement StateImageList.
11152 2007-07-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
11154 * Form.cs: Don't check if the current form is the active form before
11155 activating it. Fixes #81904.
11157 2007-07-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
11159 * Form.cs: Don't check if the current form is the active form before
11160 activating it. Fixes #81904.
11162 2007-07-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
11164 * TreeView.cs: Apply patch from Tyron (tmm@aon.at). Fixes #81847.
11166 2007-07-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
11168 * Form.cs: Don't try to position the form after loading if the form was
11169 disposed. Fixes #81969.
11171 2007-07-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
11173 * PropertyGrid.cs, PropertyGridView.cs: Implemented 2.0 methods and
11174 properties. Had to change ToolBar into ToolStrip, which required a
11177 2007-07-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
11179 * PropertyGrid.cs: PropertyToolBar: Redraw the entire toolbar when it's
11180 resized, fixes part of #79829 (vertical lines in toolbar).
11181 PropertyGrid: Refactored Populate* to something that's easier to
11182 follow at least for me, as well as splitting it up into several new
11183 methods, required to update only subitems when something has
11184 changed by a popup editor or listbox. Don't use events to check
11185 when any values are changed, since the events are unreliable (we're
11186 changing the objects the events are registered with, and if the
11187 event handling requires the objects to be immutable (objects stored
11188 in hashtables for instance), the events will never be raised).
11189 * PropertyGridView.cs: Call PropertyGrid.PropertyValueChangedInternal
11190 everytime we change a value, since events are unreliable.
11191 DropDownButtonClicked: For the same reason don't compare objects to
11192 check if it has changed or not, it would require all objects to
11193 derive Equals. Fix dialog location on windows, MS is doing weird
11194 things when creating parented forms.
11195 * GridEntry.cs: Add a SelectedObject setter.
11197 2007-07-19 Jonathan Pobst <monkey@jpobst.com>
11199 * TreeNode.cs: Add some corcompare attributes.
11200 * TreeNodeCollection.cs: Implement 2.0 stuffs.
11201 * TreeView.cs: Implement some 2.0 stuffs.
11203 2007-07-18 Andreia Gaita <avidigal@novell.com>
11205 * WebBrowser.cs, WebBrowserBase.cs: add some more MonoTODOs now
11208 2007-07-19 Jonathan Pobst <monkey@jpobst.com>
11210 * ListBox.cs: Implement custom tab offsets.
11212 2007-07-18 Jonathan Pobst <monkey@jpobst.com>
11214 * ToolStripContentPanel.cs: Support System renderer.
11215 * ToolStripControlHost.cs: Set RightToLeft to default to No.
11217 2007-07-18 Jonathan Pobst <monkey@jpobst.com>
11219 * ScrollableControl.cs: Don't mess up the user's explicit bounds.
11221 2007-07-18 Jonathan Pobst <monkey@jpobst.com>
11223 * CheckBox.cs: Chain TextAlign to base implementation instead of
11224 maintaining another one.
11226 2007-07-18 Jonathan Pobst <monkey@jpobst.com>
11228 * ButtonBase.cs: Fix an incorrect string constant.
11230 2007-07-18 Jonathan Pobst <monkey@jpobst.com>
11232 * TextRenderer.cs: Use the static Graphics context in Hwnd instead
11233 of creating one for measuring strings.
11235 2007-07-18 Jonathan Pobst <monkey@jpobst.com>
11237 * ToolStrip.cs, ToolStripDropDown.cs, ToolStripDropDownMenu.cs:
11238 Implement MaxItemSize.
11240 2007-07-17 Jonathan Pobst <monkey@jpobst.com>
11242 * Control.cs: Remove per-control 1x1 Bitmap and Graphics context used
11243 for DeviceContext. Instead, use the static one available in Hwnd.
11244 Informal tests show this saves about 500k on formtest.exe.
11246 2007-07-17 Jonathan Pobst <monkey@jpobst.com>
11248 * ContainerControl.cs: Implement 2.0 AutoScaling.
11250 2007-07-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
11252 * ComboBox.cs: Work around bug #82120 (bug in mcs).
11254 2007-07-16 Jonathan Pobst <monkey@jpobst.com>
11256 * ThemeWin32Classic.cs: Allow a Flat button to be Focused and Entered.
11257 Darken the focus color.
11259 2007-07-16 Jonathan Pobst <monkey@jpobst.com>
11261 * ListBox.cs: When measuring items, if it's a CheckedListBox, add room
11263 * ThemeWin32Classic.cs: Make the checkbox bigger in a CheckedListBox and use
11264 X, Y instead of a rect for drawing text.
11265 - For ControlPaint.DrawCheckBox, center the check a little better when the
11266 checkbox is odd width. When drawing a flat checkbox, use a white background
11267 when state != inactive.
11268 [Fixes bugs #82097, 82100]
11270 2007-07-16 Gert Driesen <drieseng@users.sourceforge.net>
11272 * ListControl.cs: When changing CurrencyManager, disconnect event
11273 handlers from previous one. Fixes bug #81771. Code formatting.
11275 2007-07-15 Andreia Gaita <avidigal@novell.com>
11277 * PrintPreviewControl.cs: Remove extraneous Invalidate calls. Separate
11278 full preview invalidation from layout invalidation, and only invalidate
11279 the layout when setting zoom or other properties. Invalidation should
11280 always be done even when resetting properties with the same values as
11281 what is there. Fixes #81744 and #79830.
11283 2007-07-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11285 * ListView.cs: Implement initial support for Groups. Split some of the
11286 LayoutIcons code to render a partial list of the items (needed by
11287 items contained in ListViewGroup instances). Let the
11288 ListViewItemsCollection.ListView property be modifiable (needed when
11289 using Groups, too).
11290 * ListViewGroup.cs: Use a Bounds property rather than a Location
11291 one. Also invalidate the bounds when they get changed.
11292 * ThemeWin32Classic.cs: When drawing items, also draw the group header
11293 if ListView.Groups.Count is bigger than 0. Add a DrawListViewGroupHeader
11296 2007-07-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11298 * ListView.cs: When space gets pressed and CheckBoxes is true,
11299 don't invoke the Begin and EndUpdate methods. We are generating
11300 a redraw of the entire control without need to do so.
11302 2007-07-13 William Holmes <billholmes54@gmail.com>
11304 * Control.cs: Changing logic in FindFlatForward and
11305 FindFlatBackward to handle multiple Controls with
11307 This fixes bug 81687.
11309 2007-07-13 Jonathan Pobst <monkey@jpobst.com>
11311 * OSFeature.cs: Enable IsPresent.
11313 2007-07-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
11315 * Control.cs: Don't do anything in WmShowWindow if the control has been
11316 disposed. We can get WM_SHOWWINDOW after a control is disposed: a
11317 control is created, put on a form, the control is disposed (the
11318 form is never shown), and then we get a MapNotify, triggering a
11320 * Form.cs: Exclude the current form when sending Deactivate to all
11322 * NativeWindow.cs: Set WindowCreating to null as soon as possible,
11323 there was a race condition because assigning the handle raises
11324 events, we can get more messages, therefore trying to assign the
11325 handle again, which would fail if any of those event handlers
11326 closed/disposed the control.
11328 2007-07-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
11330 * Form.cs: Make the fix for #80775 windows-only (fixes #81957).
11332 2007-07-12 Jonathan Pobst <monkey@jpobst.com>
11334 * SystemInformation.cs, Theme.cs, XplatUI.cs, XplatUIDriver.cs,
11335 XplatUIWin32.cs: Implement SystemInformation 2.0 properties.
11337 2007-07-12 Rolf Bjarne Kvinge <RKvinge@novell.com>
11339 * DateTimePicker.cs: If there's no part format specifier, return an
11342 2007-07-12 Jonathan Pobst <monkey@jpobst.com>
11344 * FlatButtonAppearance.cs: Throw NotSupportedException for a
11345 Transparent BorderColor.
11347 2007-07-12 Rolf Bjarne Kvinge <RKvinge@novell.com>
11349 * DataGridView.cs, TextControl.cs, ProgressBar.cs, PrintDialog.cs,
11350 MessageBox.cs, ButtonBase.cs, PageSetupDialog.cs, NumericUpDown.cs,
11351 X11Dnd.cs, Binding.cs, DataGrid.cs, AxHost.cs,
11352 LinkLabelLinkClickedEventArgs.cs, TextRenderer.cs, Label.cs,
11353 LinkLabel.cs, TreeNode.cs, BindingSource.cs, TabPage.cs,
11354 TextBoxBase.cs, BindingNavigator.cs, Application.cs,
11355 ToolStripPanel.cs, TabControl.cs, ThemeClearlooks.cs, TreeView.cs:
11357 * X11Structs.cs: Remove warnings, add ToString implementations.
11359 2007-07-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
11361 * XplatUIX11.cs: Translate min/max size according to the actual min/max
11362 size, and not the current size. Fixes #81798.
11364 2007-07-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
11366 * XplatUIX11.cs: Fix #80822 again (DefWndProc can be reached before
11367 XplatUI.CreateWindow returns, in which case the hwnd isn't assigned
11368 to the control yet).
11370 2007-07-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
11372 * PropertyGridTextBox.cs: Add a method that sends any forwarded
11373 mousedowns to the contained textbox.
11374 * X11Structs.cs: More ToString implementation.
11375 * PropertyGridView.cs: Forward any mousedowns to the textbox, fixes
11378 2007-07-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
11380 * PropertyGridView.cs: Add a null-check, fixes a few tests.
11382 2007-07-10 Jonathan Pobst <monkey@jpobst.com>
11384 * TableLayoutPanelCellPosition.cs: TypeConverter.
11386 2007-07-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
11390 * PropertyGridTextBox.cs: Propagate any color changes to all contained
11392 * PropertyGridView.cs: A few color fixes.
11394 2007-07-10 Jackson Harper <jackson@ximian.com>
11396 * TextControl.cs: Remove some old unused text formatting stuff.
11398 2007-07-10 Jackson Harper <jackson@ximian.com>
11400 * TreeView.cs: Update full row select invalidation to match the
11401 newer DrawSelection... method.
11402 - Make sure to invalidate the entire width when selecting a new
11403 node, if we have full row selection enabled.
11405 2007-07-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
11407 * PropertyGridView.cs: Fix for #81800, makes text show up on initial
11408 display of properties again.
11410 2007-07-10 Jonathan Pobst <monkey@jpobst.com>
11412 * ListBox.cs: Add IntegerCollection and Add, Clear, Remove
11413 to existing collections.
11415 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
11417 * AccessibleObject.cs, RadioButton.cs: Fix some base classes
11418 that changed between 1.1 and 2.0.
11420 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
11422 * PowerStatus.cs: Added. This is just a data class, it is filled
11423 in by SystemInformation.
11425 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
11427 * Message.cs: Add op_Equality and op_Inequality.
11429 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
11431 * MenuStrip.cs: Finish corcompare work.
11433 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
11435 * LinkArea.cs: Add op_Equality and op_Inequality.
11437 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
11439 * Application.cs: Add MessageLoopCallback delegate.
11441 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
11443 * ListBox.cs: First set of 2.0 stuffs.
11445 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
11447 * Control.cs: Make an internal Height property we can override
11448 without messing up the public API.
11449 * ListBox.cs: Override HeightInternal to always return the size
11450 the user set. [Fixes bug #80466]
11452 2007-07-08 Jonathan Pobst <monkey@jpobst.com>
11454 * TableLayoutPanel.cs: Add a null check so we don't NRE trying to
11455 paint cell borders if we haven't calculated where they go yet.
11456 [Fixes bugs #82040 and #82041]
11458 2007-07-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11460 * ListView.cs: In Details view, set the location of item_control
11461 in the (0,0) position (and the header_control is thus on the
11462 item_control). This way the Bounds of the Items are relative to the
11463 ListView control (before this, they had a Bounds value without the
11464 header_control offset, which wasn't matching .Net). Fixes #82004.
11466 2007-07-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11468 * ListControl.cs: When DataSource is set to null, pass an empty
11469 array of object to SetItemsCore. This is done to clean the items
11470 in the ListContol children. Fixes #81788.
11472 2007-07-06 Jonathan Pobst <monkey@jpobst.com>
11474 * ListControl.cs: Add 2.0 stuffs.
11476 2007-07-06 Jonathan Pobst <monkey@jpobst.com>
11478 * Label.cs: Finish up 2.0 stuffs. Replace calls to Refresh with Invalidate,
11479 Refresh is overkill for just about every repaint request.
11481 2007-07-06 Jonathan Pobst <monkey@jpobst.com>
11483 * ToolStripItem.cs: TextDirection getter handles looking up Inherit for us,
11484 so remove my custom Get method and fix the property getter.
11486 2007-07-06 Jonathan Pobst <monkey@jpobst.com>
11488 * Label.cs: DefaultMargin for 2.0.
11490 2007-07-06 Jonathan Pobst <monkey@jpobst.com>
11492 * ComboBox.cs: Override IsInputCharInternal and return true. Fixes
11493 reported issue where other controls with mnemonics would steal strokes
11494 from a selected ComboBox.
11496 2007-07-06 Jonathan Pobst <monkey@jpobst.com>
11498 * ScrollOrientation.cs: Make internal for 1.1.
11499 * ScrollEventArgs.cs: Add 2.0 stuffs.
11501 2007-07-05 Jonathan Pobst <monkey@jpobst.com>
11503 * ToolStrip.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
11504 ToolStripItem.cs, ToolStripItem.cs, ToolStripItemTextRenderEventArgs.cs,
11505 ToolStripRenderer.cs, ToolStripSeparator.cs: Implement TextDirection.
11507 2007-07-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11509 * ListViewItem.cs: Implement the small 2.0 GetSubItemAt method.
11511 2007-07-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11513 * ListView.cs: Implement the so-incredibly broken 2.0
11514 VirtualItemsSelectionRangeChanged event.
11516 2007-07-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11518 * ListView.cs: When enter is pressed and selection is non empty,
11519 an OnItemActivate event must be fired.
11521 2007-07-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11523 * ListView.cs: Store the FocusedItem information as an
11524 int instead of a ListViewItem (needed by VirtualMode).
11525 Update the calls to SetFocusedItem to pass an index instead of
11527 * ListViewItem.cs: Likewise. Also, in VirtualMode retrieve
11528 the Focused state from the owner ListView.
11530 2007-07-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11532 * ListView.cs: Set ListView.focused_item from ListViewItem.Focused
11533 property. Also, invalidate previous focused item in the mentioned
11534 property (match .Net).
11536 2007-07-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11538 * ListView.cs: Implement 2.0 FocusedItem property setter.
11540 2007-07-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11542 * ListView.cs: Implement 2.0 TopItem property setter.
11544 2007-07-03 Jonathan Pobst <monkey@jpobst.com>
11546 * StatusStrip.cs: The default renderer is System.
11547 * ToolStrip.cs, ToolStripManager: Now that we have System renderer, use it
11548 if the user specifies it.
11549 * ToolStripDropDown.cs: Don't reset our Renderer on changing OwnerItem
11550 if we are ManagerRenderMode.
11551 * ToolStripMenuItem.cs: Calculate our text color better.
11552 * ToolStripRenderer.cs, ToolStripProfessionalRenderer.cs: Move some stuff
11553 from Professional to the base class based off working with the System renderer.
11554 * ToolStripSystemRenderer.cs: Added.
11556 2007-07-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11558 * ListView.cs: I'm so lame - the real name is HitTest, not HitInfo.
11560 2007-07-02 Jonathan Pobst <monkey@jpobst.com>
11562 * ToolTip.cs: Implement 2.0 Tag property.
11564 2007-06-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11566 * ListView.cs: Implement 2.0 HitTest methods.
11568 2007-06-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11570 * ListViewItem.cs: Add a 2.0 bool Hot property, to tell whether the
11571 item is under the pointer or not (sugar). Also remove the TODO
11572 regarding to the cursor changes in OneClick activation.
11573 * ThemeWin32Classic.cs: When HotTracking is true and we are drawing
11574 the subitems use the parent's HotFont if UseItemStyleForSubItems is
11575 true; otherwise don't show the underline style.
11577 2007-06-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11579 * ListView.cs: In ItemControl.ItemsMouseMove, refactor
11580 the code to retrieve the item at position only one time. Also
11581 change cursor when Activation is ItemActivation.OneClick as well
11582 as invalidate the item if HotTracking is true (to show/hide the
11583 underline style). Add an internal HotItemIndex property to retrieve
11584 the current hot item's index.
11585 * ListViewItem.cs: Add an internal HotFont property to cache the
11586 font used when HotTracking is true and the pointer moves within the
11588 * ThemeWin32Classic.cs: When drawing the item's text, use Font or
11589 HotFont depending on the hot state of the item.
11591 2007-06-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11593 * ListView.cs: Implement 2.0 HotTracking property.
11595 2007-06-21 Jonathan Pobst <monkey@jpobst.com>
11597 * ToolStripControlHost.cs: If our hosted control never got created,
11598 don't try to dispose it. [Fixes bug #81909]
11600 2007-06-21 Jonathan Pobst <monkey@jpobst.com>
11602 * TableLayoutPanel.cs: Implement ScaleCore, ScaleControl.
11604 2007-06-21 Jonathan Pobst <monkey@jpobst.com>
11606 * TableLayoutPanel.cs: Implement CellBorderStyle. [Fixes bug #81884]
11608 2007-06-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11610 * ThemeWin32Classic.cs: In OwnerDraw mode draw subitems only for
11612 * DrawListViewColumnHeaderEventArgs.cs:
11613 * DrawListViewSubItemEventArgs.cs: Add padding to the bounds when drawing text
11614 using the DrawText () methods.
11616 2007-06-19 Jonathan Pobst <monkey@jpobst.com>
11618 * ToolStripProfessionalRenderer.cs: Put back clearing a ToolStripDropDown's
11619 background which got erased in my changes yesterday.
11621 2007-06-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11623 * ListViewItem.cs: Actually set bounds for subitems in Details view
11625 * ThemeWin32Classic.cs: Refactor the drawing code for subitems, so we
11626 can invoke from the owner draw routines if we need it. Also, add
11627 support for Owner draw in Details view.
11629 2007-06-18 Jonathan Pobst <monkey@jpobst.com>
11631 * ToolStripDropDownMenu.cs, ToolStripItem.cs, ToolStripLabel.cs,
11632 ToolStripMenuItem.cs, ToolStripProfessionalRenderer.cs: Respect the
11633 ShowImageMargin setting, properly align text in a ToolStripLabel
11634 hosted on a ToolStripDropDown.
11636 2007-06-18 Jonathan Pobst <monkey@jpobst.com>
11638 * ToolStrip.cs, ToolStripContentPanel.cs, ToolStripDropDownMenu.cs,
11639 ToolStripProfessionalRenderer.cs: Refactor and clean up some rendering code.
11641 2007-06-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11643 * DrawListViewSubItemEventArgs.cs: Actually implement its methods.
11645 2007-06-18 Jonathan Pobst <monkey@jpobst.com>
11647 * ToolStripLabel.cs: If the label is on a dropdown, adjust the text
11648 location to match ToolStripMenuItems.
11650 2007-06-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11652 * DrawListViewColumnHeaderEventArgs.cs:
11653 * ThemeWin32Classic.cs: Implement 2.0 OwnerDraw support for
11654 column headers in ListView.
11656 2007-06-15 Jonathan Pobst <monkey@jpobst.com>
11658 * UserControl.cs: Implement AutoSize.
11660 2007-06-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11662 * DrawListViewItemEventArgs.cs:
11664 * ThemeWin32Classic.cs: Implement basic support for 2.0 OwnerDraw in
11667 2007-06-15 Jonathan Pobst <monkey@jpobst.com>
11669 * ToolStripDropDownItemAccessibleObject.cs: Added.
11670 * ToolStripDropDownItem.cs, ToolStripItem.cs, ToolStripMenuItem.cs,
11671 ToolStripOverflow.cs, ToolStripOverflowButton.cs, ToolStripPanel.cs,
11672 ToolStripProgressBar.cs, ToolStripSeparator.cs, ToolStripSplitButton.cs,
11673 ToolStripTextBox.cs: corcompare work.
11675 2007-06-14 Jonathan Pobst <monkey@jpobst.com>
11677 * OSFeature.cs, StatusStrip.cs, TabControl.cs, TableLayoutSettings.cs,
11678 TableLayoutStyle.cs, TableLayoutCollection.cs, ToolStripContentPanel.cs,
11679 ToolStripControlHost.cs, ToolStripDropDown.cs, ToolStripDropDownButton.cs:
11682 2007-06-14 Jonathan Pobst <monkey@jpobst.com>
11684 * OSFeature.cs: Add IsPresent.
11685 * PrintPreviewControl.cs: Add RightToLeft.
11686 * SplitContainer.cs: Add AutoScrollOffset, ScaleControl.
11687 * SplitterPanel.cs: Add AutoSizeMode.
11689 2007-06-13 Jonathan Pobst <monkey@jpobst.com>
11691 * LayoutEventArgs.cs: Add 2.0 AffectedComponent.
11692 * MdiClient.cs: Add 2.0 ScaleControl.
11693 * NativeWindow.cs: Implement 2.0 interface IWin32Window.
11694 * NumericUpDownAccelerationCollection.cs: Add [ListBinding].
11696 2007-06-13 Jonathan Pobst <monkey@jpobst.com>
11698 * Form.cs: Implement some scaling methods, stub some RTL methods,
11701 2007-06-13 Jonathan Pobst <monkey@jpobst.com>
11703 * Control.cs: corcompare work.
11704 * FlatButtonAppearance.cs, FolderBrowserDialog.cs: Add TypeConverters.
11706 2007-06-13 Jonathan Pobst <monkey@jpobst.com>
11708 * ControlPaint.cs, Theme.cs, ThemeWin32Classic.cs: Implement
11709 ControlPaint 2.0 stuffs.
11711 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
11713 * ThreadExceptionDialog.cs: Add 2.0 stuffs.
11715 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
11717 * UpDownBase.cs: Add 2.0 stuffs.
11719 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
11721 * NumericUpDown.cs: Add 2.0 stuffs.
11723 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
11725 * NotfiyIcon.cs: Add MouseDoubleClick event, hook up MouseClick event.
11727 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
11729 * ErrorProvider.cs: Implement 2.0 stuffs.
11731 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
11733 * DomainUpDown.cs: Implement 2.0 stuffs.
11735 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
11737 * CheckedListBox.cs: Fix RefreshItems signature.
11739 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
11741 * PictureBox.cs: Implement 2.0 stuffs.
11743 2007-06-12 Andreia Gaita <avidigal@novell.com>
11745 * TabControl.cs: Check if there are tabpages before checking
11746 the selected index - fix #81802 (font changes raise a ResizeTabs
11747 call on controls.add, which blew up nicely with no tabpages)
11749 2007-06-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11752 * ListViewItem.cs: Implement 2.0 ItemSelectionChanged event.
11754 2007-06-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11757 * ListViewItem.cs: In VirtualMode the selection information
11758 resides in the ListView, rather than in the Items. Also, throw
11759 InvalidOperationExceptions when VirtualMode is being used and
11760 CheckedItemCollection is accessed.
11762 2007-06-08 Jonathan Pobst <monkey@jpobst.com>
11764 * ComboBox.cs: Add ScaleControl.
11766 2007-06-08 Jonathan Pobst <monkey@jpobst.com>
11768 * ButtonBase.cs: ButtonBaseAccessibleObject.State should not be visible to 1.1.
11770 2007-06-08 Jonathan Pobst <monkey@jpobst.com>
11772 * GroupBox.cs: Add 2.0 stuffs.
11774 2007-06-08 Jonathan Pobst <monkey@jpobst.com>
11776 * Panel.cs: Add autosize properties/event.
11778 2007-06-07 Jonathan Pobst <monkey@jpobst.com>
11781 - When we remove a control, remove it from the collection before performing the layout.
11782 - Setup an internal property for explicit_bounds.
11783 - Don't let the UpdateBounds in CreateHandle overwrite our explicit bounds.
11784 - Perform a layout when we set a new AutoSizeMode.
11786 2007-06-07 Jonathan Pobst <monkey@jpobst.com>
11788 * ScrollableControl.cs: Add 2.0 stuffs.
11790 2007-06-06 Jonathan Pobst <monkey@jpobst.com>
11792 * ScrollBar.cs: Add 2.0 stuffs.
11794 2007-06-06 Jonathan Pobst <monkey@jpobst.com>
11796 * Splitter.cs: Add 2.0 stuffs.
11798 2007-06-06 Jonathan Pobst <monkey@jpobst.com>
11800 * SplitContainer.cs: Apply patch from Neil Cawse <neilcawse@geotab.com>
11801 to have BindingContext simply use base implementation.
11803 2007-06-06 Jonathan Pobst <monkey@jpobst.com>
11805 * ColumnHeader.cs: corcompare fix.
11807 2007-06-06 Jonathan Pobst <monkey@jpobst.com>
11809 * Button.cs: corcompare fixes.
11810 * ButtonBase.cs: corcompare fixes, add ButtonBaseAccessibleObject.State.
11812 2007-06-06 Jonathan Pobst <monkey@jpobst.com>
11814 * Button.cs: Override GetPreferredSizeCore.
11815 * ButtonBase.cs: PerformLayout after changing properties that can affect
11816 AutoSize. Simplify some mouse/keyboard code.
11817 * Control.cs: PerformLayout after changing Padding if AutoSize = true.
11818 * MouseEventArgs.cs: Make Location internal for 1.1.
11819 * TextRenderer.cs: Make MeasureTextInternal (string, Font, bool) internal for 1.1.
11820 * Theme.cs: Add CalculateButtonAutoSize.
11821 * ThemeWin32Classic.cs: Implement CalculateButtonAutoSize.
11823 2007-06-05 Miguel de Icaza <miguel@novell.com>
11825 * TreeNodeCollection.cs: Applied patch from Neil Cawse <neilcawse@geotab.com>
11827 2007-06-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11829 * ListViewItem.cs: We can't cache Bounds in VirtualMode
11830 since we can get different item instances every time we retrieve it.
11832 2007-06-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11834 * ListView.cs: Work around for #81602, since an unkown an pretty
11835 infrequent condition appears only in some systems (old linux boxes, it
11838 2007-06-04 Jonathan Pobst <monkey@jpobst.com>
11840 * Button.cs: Completely reformat and a little refactor to bring
11841 this closer to Mono circa 2007.
11843 2007-06-04 Jonathan Pobst <monkey@jpobst.com>
11845 * CheckBox.cs, Form.cs, RadioButton.cs: Change call to ButtonBase.Redraw
11846 to be ButtonBase.Invalidate.
11848 2007-06-04 Jonathan Pobst <monkey@jpobst.com>
11850 * ButtonBase.cs: GetPreferredSize is 2.0 only. Fixes build.
11852 2007-06-04 Jonathan Pobst <monkey@jpobst.com>
11854 * ButtonBase.cs: Completely reformat and a little refactor to bring
11855 this closer to Mono circa 2007.
11857 2007-06-01 Everaldo Canuto <ecanuto@novell.com>
11859 * Label.cs: Fixes preferred sizes for 2.0 profile, also adjust some
11860 values for autosize. Fixes #80137.
11862 2007-06-01 Jonathan Pobst <monkey@jpobst.com>
11864 * Control.cs: Don't perform layout when AutoSize changes.
11865 * Form.cs: Perform layout in AutoSize override. Don't set ClientSize
11866 directly when autosizing, use SetBounds with BoundsSpecified.None.
11867 Fixes unit tests my last commit broke.
11869 2007-06-01 Jonathan Pobst <monkey@jpobst.com>
11871 * Control.cs: Perform layout when AutoSize changes.
11872 * Form.cs: Implement AutoSizing.
11874 2007-06-01 Chris Toshok <toshok@ximian.com>
11876 * DataGrid.cs: remove the XXX'ed check at the top of
11877 ProcessGridKey. fixes #80464.
11879 2007-06-01 Chris Toshok <toshok@ximian.com>
11881 * DataGridTextBoxColumn.cs: TextBox.TextChanged event handler
11882 adding idempotent (add/remove in Edit()), and also make sure we
11883 don't add it until after we set the text, so it's not tripped in
11884 Edit(). Fixes unit test regression.
11886 2007-06-01 Jonathan Pobst <monkey@jpobst.com>
11888 * Control.cs: In UpdateBounds, only recalculate anchor distances if the
11889 change is user explicit, not when the layout engine moves stuff. Fixes
11890 anchoring to bottom and right. [Fixes bug #81790]
11892 2007-06-01 Andreia Gaita <avidigal@novell.com>
11894 * PrintDialog.cs: Add collation preview thumbnails. Fixes #80726.
11896 2007-06-01 Andreia Gaita <avidigal@novell.com>
11898 * ContainerControl.cs:
11899 Fire enter event for common ancestor if it is not a ContainerControl.
11900 Send focus to the active_control and not the 'value', the active
11901 control might have been changed in one of the events fired.
11902 Definitely fixes #80159.
11904 2007-06-01 Andreia Gaita <avidigal@novell.com>
11906 * DataGrid.cs: Finish editing when focus leave the datagrid. Fixes #80159.
11908 2007-06-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
11910 * PropertyGrid.cs: Anchor the help description to the bottom of the
11911 help panel and refactor SelectGridItem into a
11912 SelectGridItemInternal that can be set to null (and update it to
11913 clear the help texts when it is set to null). Set root item to null
11914 when there's no SelectedObject. Fixes #80438.
11915 * ScrollableControl.cs: In Recalculate we need to ResumeLayout(true)
11916 when we're recalculating after a resize (only).
11918 2007-05-31 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11920 * ListView.cs: Implement 2.0 RedrawItems method.
11922 2007-05-31 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11924 * ListControl.cs: Disconnect PositionChanged and ItemChanged
11925 handlers from previous data manager when DataSource is set to
11926 null. Fixes #81771.
11928 2007-05-31 Jackson Harper <jackson@ximian.com>
11930 * TextBoxBase.cs: These seem to be the correct values.
11932 2007-05-31 Everaldo Canuto <ecanuto@novell.com>
11934 * FileDialog.cs: When close dialog with ok set filterindex using combobox
11935 value. Fixes #81784.
11937 2007-05-31 Jonathan Pobst <monkey@jpobst.com>
11939 * Control.cs: Implement 2.0 scaling methods.
11941 2007-05-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
11943 * ProgressBar.cs, WebBrowserBase.cs, Control.cs, MaskedTextBox.cs,
11944 MessageBox.cs, PropertyGrid.cs, RichTextBox.cs: Fix warnings and
11947 2007-05-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
11949 * ProgressBar.cs: Implemented missing 2.0 members.
11951 2007-05-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
11953 * Control.cs: Corcompare issues.
11954 * MessageBox.cs: Implemented missing 2.0 functions.
11956 2007-05-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
11958 * CheckedListBox.cs, ListBox.cs, ListControl.cs, ComboBox.cs:
11959 Implemented more 2.0 members.
11961 2007-05-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
11963 * Application.cs: Try to avoid NRE when Assembly.GetEntryAssembly is
11964 null (strange, but it seems to happen when running unit tests).
11966 2007-05-30 Andreia Gaita <avidigal@novell.com>
11968 * ContainerControl.cs: Set active_control even earlier, before
11969 firing any events, and undo it if validation returns false.
11971 2007-05-30 Andreia Gaita <avidigal@novell.com>
11973 * ContainerControl.cs: Raise Validation and Enter/Leave events
11974 even if there is no Form and set active_control earlier, just
11975 before firing Enter events (toshok's patches). Fixes #80647.
11977 2007-05-30 Jackson Harper <jackson@ximian.com>
11979 * TextControl.cs: Redid the pageup/pagedown a little to simplify
11980 things and fix bug #81311.
11982 2007-05-30 Jackson Harper <jackson@ximian.com>
11984 * X11Dnd.cs: Now that we have our own event loop, we need to
11985 cancel when we get a mouseup but it won't be accepted.
11987 2007-05-30 Chris Toshok <toshok@ximian.com>
11989 * DataGrid.cs (set_CurrentCell): guard against negative
11992 * DataGridColumnStyle.cs (CheckValidDataSource): just use the
11993 array index syntax instead of looping over the property names.
11995 * DataGridTextBoxColumn.cs: add a changed handler on the textbox,
11996 and set IsInEditOrNavigateMode to false there.
11998 2007-05-30 Jackson Harper <jackson@ximian.com>
12000 * TreeView.cs: Make sure we don't get a bad visible order when
12001 setting to the top node. Fixes some misc crashing in
12004 2007-05-30 Andreia Gaita <avidigal@novell.com>
12006 * UserControl.cs: Add 2.0 AutoSizeMode
12008 2007-05-29 Everaldo Canuto <ecanuto@novell.com>
12010 * DataGridTextBoxColumn.cs: Fix textbox horizontal offset.
12012 2007-05-29 Everaldo Canuto <ecanuto@novell.com>
12014 * DataGridTextBoxColumn.cs: Fix textbox position to prevent override grid
12015 lines. Fixes #80285.
12017 2007-05-29 Everaldo Canuto <ecanuto@novell.com>
12019 * DataGridColumnStyle.cs: Add char trimming column header text format.
12021 2007-05-29 Everaldo Canuto <ecanuto@novell.com>
12023 * DataGridColumnStyle.cs: Fix grid header arrow drawing over column name.
12026 2007-05-29 Jackson Harper <jackson@ximian.com>
12028 * TreeNode.cs: Fix off by one on calculating whether or not a node
12031 2007-05-29 Jonathan Pobst <monkey@jpobst.com>
12033 * Control.cs: ResumeLayout(false) should recalculate anchor distances.
12034 * ScrollableControl.cs: Force an UpdateDistances when we move the
12038 2007-05-29 Andreia Gaita <avidigal@novell.com>
12040 * PageSetupDialog.cs: Fix #80728 - Changing the printer doesn't
12041 update the page setup screen.
12043 2007-05-29 Andreia Gaita <avidigal@novell.com>
12045 * PageSetupDialog.cs: Fix landscape mode.
12047 2007-05-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12049 * SystemInformation.cs: Add 2.0 IconSizeVerticalSpacing and
12050 IconSizeHorizontalSpacing.
12052 2007-05-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12054 * ListView.cs: The declaration of prev_tooltip_item should be inside
12055 a NET_2_0 conditional (avoid a warning).
12057 2007-05-28 Andreia Gaita <avidigal@novell.com>
12059 * PageSetupDialog.cs: Implement PrintPreview control to display
12060 the preview thumbnail. Change unit conversion to use
12061 PrinterUnitConvert methods.
12063 Note: there is a huge bug in ms.net where the default margins are
12064 interpreted as centimeters (?), when in fact they are set in inches. When
12065 loading the page setup dialog initially (ms.net), the default margins
12066 are set to 1 inch, and the dialog shows them with value 10, when in fact
12067 it should be 25 (properly converted). Our dialog doesn't have this bug.
12069 * Theme.cs, ThemeWin32Classic.cs: Add a CPDrawBorder override for
12071 * ControlPaint.cs: Add a DrawBorder internal method for RectangleF.
12073 2007-05-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12076 * ListViewItem.cs: Implement 2.0 ToolTipText support for listview
12079 2007-05-28 Andreia Gaita <avidigal@novell.com>
12081 * X11Dnd.cs: A direct cast to VirtualKeys is not allowed from
12082 an IntPtr on csc (it builds fine on mcs, could it be a compiler
12083 bug?), convert the ptr to Int32 first.
12085 2007-05-28 Jackson Harper <jackson@ximian.com>
12087 * X11Dnd.cs: Add a timer, so after drop, if a finish is not
12088 recieved, we will exit the dnd tracking loop.
12090 2007-05-28 Jackson Harper <jackson@ximian.com>
12092 * X11Dnd.cs: Keep tracking until the xdnd finished event is
12093 recieved. TODO: I should probably stick a timer on the dropped
12094 event, and finish the drag if the XDND Finished event never shows
12095 (because some apps don't seem to send it).
12097 2007-05-28 Everaldo Canuto <ecanuto@novell.com>
12099 * ToolBar.cs: Fix toolbar default width for button with image. Fixes
12102 2007-05-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
12104 * MonthCalendar.cs: Only mark the keypresses we actually handle as
12107 2007-05-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
12109 * MonthCalendar.cs: Set the size after initializing all the relevant
12110 variables. Fixes #81742.
12112 2007-05-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
12114 * KeyEventArgs.cs: Fix typo.
12116 2007-05-28 Gert Driesen <drieseng@users.sourceforge.net>
12118 * DateTimePicker.cs: Changed exceptions thrown by MinDate and MaxDate
12119 to match MS. Fixed MinDate to only accept value less than or equal
12120 to MaxDate on 2.0 profile and less than MaxDate on 1.0 profile.
12121 Removed TODO's that are now verified by unit tests.
12123 2007-05-27 Gert Driesen <drieseng@users.sourceforge.net>
12125 * TreeNodeCollection.cs: Minor corrections to exceptions to match
12128 2007-05-25 Jackson Harper <jackson@ximian.com>
12130 * X11Dnd.cs: Rework to make StartDrag a blocking call that runs
12131 it's own message loop.
12132 * XplatUIX11.cs: Remove some of the dnd hooks
12134 2007-05-25 Gert Driesen <drieseng@users.sourceforge.net>
12136 * XplatUIX11.cs: Change MinimumWindowSize to {Width=0,Height=0}
12137 instead of MinimizedWindowSize.
12139 2007-05-25 Jackson Harper <jackson@ximian.com>
12141 * TextBoxBase.cs: Raise textchanged when cutting and pasting text.
12143 2007-05-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
12145 * KeyEventArgs.cs: Added SuppressKeyPress.
12146 * Control.cs: Added support for SuppressKeyPress.
12148 2007-05-24 Andreia Gaita <avidigal@novell.com>
12150 * NumericUpDown.cs: Refactor code to fix regressions on #79950 and
12151 problems with PieChart. suppress_validation should not be a counter,
12152 if there are several BeginInit calls, the first EndInit will
12153 activate validation. Fix exceptions thrown by set_Value.
12154 * UpDownBase.cs: ValidateText only if it's the user editing it.
12156 2007-05-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12158 * ListControl.cs: FilterItemOnProperty should return the filtered
12159 item proeprty even if DataSource is null. The same applies for
12160 GetItemText. Fixes #80427.
12162 2007-05-24 Jonathan Pobst <monkey@jpobst.com>
12164 * Control.cs: If a control doesn't have a parent when it's Dock is
12165 set, but it has children, it needs to do a layout. Fixes some nested
12166 controls issues. [Fixes bug #81199]
12168 2007-05-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
12170 * ComboBox.cs: If there are few items in the drop down list, make it
12171 the exact size the items need, no bigger. Fixes #81612.
12173 2007-05-24 Jonathan Pobst <monkey@jpobst.com>
12175 * Application.cs: When we have captured the keyboard for a menu,
12176 check for mouse down events in case we need to close the menu.
12177 * Control.cs, Form.cs: Remove mouse down checks for menus.
12179 2007-05-24 Jackson Harper <jackson@ximian.com>
12181 * TextControl.cs: Handle tabs in non multiline mode a little
12184 2007-05-24 Jackson Harper <jackson@ximian.com>
12186 * TextControl.cs: We need to manually break apart tabbed text and
12187 move the tabs, since the system.drawing tabbing mechanism relies
12189 * TextBoxBase.cs: Move the caret properly when the user enters a
12192 2007-05-24 Jonathan Pobst <monkey@jpobst.com>
12194 * ContainerControl.cs: Don't check CanSelect before calling
12196 * ToolStrip.cs: Only do implicit mnemonics on MenuStrips. Don't
12197 release a KeyboardActive on click if it's not ours.
12199 2007-05-23 Andreia Gaita <avidigal@novell.com>
12201 * ColumnHeader.cs: Add TypeConverter
12203 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
12205 * LinkLabel.cs: Implement LinkCollection.Add with Link parameter (2.0).
12207 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
12209 * LinkLabelLinkClickedEventArgs.cs, LinkLabel.cs: Implement Button property.
12211 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
12213 * LinkLabel.cs: Implement public Padding property.
12215 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
12217 * LinkLabel.cs: Implement public FlatStyle.
12219 2007-05-23 Jonathan Pobst <monkey@jpobst.com>
12221 * Control.cs: Apply patch from George to call parent.PerformLayout
12222 when Visible is changed. [Fixes bugs #81118, 81718]
12224 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
12226 * MainMenu.cs, MenuAPI.cs: Implement Collapse event for MainMenu (2.0).
12228 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
12230 * ContextMenu.cs: Implement ProcessCmdKey with control parameter.
12232 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
12234 * ContextMenu.cs: Implement Collapse.
12236 2007-05-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
12238 * ToolBarButton.cs: Implement Name.
12240 2007-05-22 Everaldo Canuto <ecanuto@novell.com>
12242 * ToolBar.cs: Fix OnButtonDropDown to save item used in dropdown instead of
12243 use current_item, it prevents some NRE. Fixes #81675.
12245 2007-05-22 Andreia Gaita <avidigal@novell.com>
12247 * NumericUpDown.cs: Fix PieChart by not returning from UpdateEditText
12248 without updating the text.
12250 2007-05-22 Jonathan Pobst <monkey@jpobst.com>
12252 * XplatUIWin32.cs: Plug a GDI leak caused by calling Font.ToHfont ()
12253 without calling DeleteObject. [Should fix bug #81709]
12255 2007-05-22 Jackson Harper <jackson@ximian.com>
12257 * RichTextBox.cs: Set the line endings correctly, when flushing
12260 2007-05-22 Gert Driesen <drieseng@users.sourceforge.net>
12262 * XplatUIX11.cs: MinimumWindowSize on X11 is actually
12263 {Width=0,Height=0}.
12265 2007-05-22 Jackson Harper <jackson@ximian.com>
12267 * TreeView.cs: Setting top with a null node should set to the very
12270 2007-05-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
12272 * Form.cs: ShowDialog: destroy the handle when message loop is
12273 finished, matches MS behaviour. Refactor parts of WmClose into
12274 RaiseCloseEvents, that only raises events if they haven't already
12275 been raised. Fixes #81688 and #81521.
12276 * Application.cs: Don't call close on the form when exiting a modal
12277 loop, it will raise all the (Form)Closed/Closing events again if
12278 WM_CLOSE has been sent earlier on, instead call RaiseCloseEvent,
12279 which doesn'r raise any events it they have been raised before.
12281 2007-05-22 Jonathan Pobst <monkey@jpobst.com>
12283 * Control.cs: Add OnPrint.
12284 * ToolStrip.cs: Add GetChildAtPoint.
12285 * ToolStripContainer.cs: Add OnRightToLeftChanged.
12286 * ToolStripRenderer.cs: Make CreateMirrorImage internal.
12288 2007-05-22 Everaldo Canuto <ecanuto@novell.com>
12290 * MenuAPI.cs: Prevent context menu to be typed as MainMenu. Fixes #81509.
12292 2007-05-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
12294 * InternalWindowManager.cs: ToolTipShow: Don't show tooltip if the form
12295 isn't visible anymore. Fixes #81651.
12297 2007-05-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
12299 * Control.cs: WmShowWindow: Update children's z-order after setting
12300 their parent. SetParent may show the window, thereby corrupting
12301 z-order, since the window will be shown on top.
12302 * XplatUIWin32.cs: SetParent: don't call SetVisible on forms. Prevents
12303 multiple (and redundant) WM_SHOWWINDOW messages.
12304 * MdiWindowManager.cs: RaiseDeactivate: only raise after an Activate
12305 event has already been raised.
12306 * Form.cs: Change is_changing_visible_state to a counter, since
12307 SetVisibleCore can be called recursively. CreateHandle: when
12308 creating mdi children, send (De)Activated events.
12309 * MdiClient.cs: Update use of is_changing_visible_state.
12310 * Application.cs: OnThreadException: Surround exception handling with
12311 try/finally to ensure we always reset the error-handling state
12314 2007-05-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
12316 * ThemeWin32Classic.cs: DrawProgressBar: Avoid a DivideByZero exception
12319 2007-05-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12321 * ListView.cs: Use Theme.ListViewHorizontalSpacing for List and
12322 SmallIcon views, now that we have a standarized horizontal spacing.
12324 * ThemeWin32Classic.cs: ListViewHorizontalSpacing now has a value of
12325 4, just like the other views (Match .Net).
12327 2007-05-21 Jonathan Pobst <monkey@jpobst.com>
12329 * Control.cs: Delay calculating anchor distances until we actually layout.
12330 Always query the WM for the actual size and location it put us at instead of
12331 only when we send negative values.
12332 [Fixes bugs #81694, 81695]
12334 2007-05-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
12336 * Application.cs: Avoid a possible stack overflow when trying to exit
12339 2007-05-19 Marek Safar <marek.safar@gmail.com>
12341 * Theme.cs (GetHatchBrush): A key uses internal value instead of formated
12344 2007-05-19 Andreia Gaita <avidigal@novell.com>
12346 * NumericUpDown.cs: Added 2.0 methods (spin acceleration)
12347 * NumericUpDownAcceleration.cs,
12348 NumericUpDownAccelerationCollection.cs: Added 2.0
12351 2007-05-19 Gert Driesen <drieseng@users.sourceforge.net>
12353 * RichTextBox.cs: Recalculate the document after the ScrollBars
12354 property is changed. Fixes bug #81681.
12356 2007-05-18 Jonathan Pobst <monkey@jpobst.com>
12358 * DataObject.cs: Implement 2.0 methods.
12360 2007-05-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12362 * ThemeWin32Classic.cs: Draw the check marks in ListViewItems
12363 in the center of the checkbox, not in the left-top corner.
12366 2007-05-18 Jackson Harper <jackson@ximian.com>
12368 * RichTextBox.cs: Recalculate the document after the scrollbars
12369 property is changed.
12370 * TextBoxBase.cs: ScrollBars is not a flags enum...This fixes
12373 2007-05-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
12375 * CreateParams.cs: Make HasWindowManager marginally faster.
12376 * XplatUIX11.cs, Hwnd.cs: CreateWindow: Move the default location code
12377 into Hwnd so that other drivers can use it as well.
12378 * XplatUIWin32.cs: CreateWindow: If the window has a window manager get
12379 the default location from Hwnd. Fixes MDI client windows always
12380 showing up at (0,0) in Windows (Win32 won't set the default
12381 location since the window styles aren't correct).
12383 2007-05-18 Gert Driesen <drieseng@users.sourceforge.net>
12385 * TreeView.cs: Modified DoubleBuffered to just use the base
12388 2007-05-18 Jackson Harper <jackson@ximian.com>
12390 * TreeView.cs: Set the top node to the last child node when
12392 - When we get focus, if there is no selected node, use the top
12395 2007-05-18 Jonathan Pobst <monkey@jpobst.com>
12397 * KeysConverter.cs: Add CanConvertTo.
12398 * LinkLabel.cs: Add some 2.0 constructors and properties to LinkLabel.Link.
12399 * LinkConverter.cs: Added.
12401 2007-05-18 Everaldo Canuto <ecanuto@novell.com>
12403 * Cursor.cs: Apply Sebastien patch from #81669 to open file in read mode,
12404 it prevents error when file dont have write access. Fixes #81669 and #81667.
12406 2007-05-18 Everaldo Canuto <ecanuto@novell.com>
12408 * ThemeWin32Classic.cs: Check for ShowKeyboardCues true when draw toolbar
12409 button text. Fixes #79640.
12411 2007-05-18 Everaldo Canuto <ecanuto@novell.com>
12413 * Control.cs: According to MSDN controls created in the designer theres
12414 keyboard accelerators visible by default. So included check for design
12415 in ShowKeyboardCuesInternal.
12417 2007-05-18 Everaldo Canuto <ecanuto@novell.com>
12419 * ThemeWin32Classic.cs: Check for ShowKeyboardCues true when draw combobox
12420 text. Fixes #81621.
12422 2007-05-18 Everaldo Canuto <ecanuto@novell.com>
12424 * Control.cs: ShowKeyboardCuesInternal add to expose ShowKeyboardCues
12425 for 1.0, becuse ShowKeyboardCues is protected on 1.0.
12427 2007-05-17 Everaldo Canuto <ecanuto@novell.com>
12429 * Control.cs: Finish implementation of UI State using WmChangeUIState
12430 to send WM_UPDATEUISTATE to all child controls. Some hack will be needed
12431 in some controls to check for show_keyboard_cues to draw accell keys "_".
12433 2007-05-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12435 * ListBox.cs: When calculating the horizontal scrollbar
12436 in single column mode, don't use values less than 0 for
12437 Maximum. Fixes #81474.
12439 2007-05-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12441 * ListBox.cs: Throw the some missing exceptions in
12442 ListBox.ObjectCollection methods.
12444 2007-05-17 Jackson Harper <jackson@ximian.com>
12446 * TextBoxBase.cs: Recalculate the document when the word wrap
12447 value has changed. This fixes 81488.
12449 2007-05-17 Jonathan Pobst <monkey@jpobst.com>
12451 * Clipboard.cs: Implement missing GetText overload.
12453 2007-05-17 Chris Toshok <toshok@ximian.com>
12455 * Control.cs (CheckDataBindings): remove the binding_context arg
12458 * CurrencyManager.cs (OnItemChanged): fix this now that
12459 BindingManagerBase is fixed. also remove the comment telling where
12460 the fix should go. We set transfering_data to true/false around
12461 the call to PushData to keep UpdateIsBinding from being called.
12462 (ListChangedHandler): remove the extra OnMetaDataChanged call for
12463 PropertyDescriptorAdded in the 1.1 case. The extra call is
12464 actually generated by System.Data generating 2 metadata changed
12465 events of its own per column add. The fix should go there. Add a
12466 comment to that affect in our test's Assert.Ignore.
12468 * BindingManagerBase.cs: Rework PullData and PushData slightly.
12469 we keep a boolean flag (transfering_data) that keeps us from
12470 calling UpdateIsBinding multiple times if we re-enter either of
12473 * ControlBindingsCollection.cs (AddCore): remove the
12474 binding_context arg to binding.Check.
12476 * Binding.cs (IsBinding): don't check if we're binding here, just
12477 return our cached value. we update it in UpdateIsBinding.
12478 (Check): don't take the binding_context arg, we'll just use our
12479 control's. Also, for some reason MS doesn't use the data member
12480 field when getting the bindingmanager for this binding. it just
12481 uses the datasource. Make this method callable multiple times,
12482 and only do the is_null_desc stuff if manager.Position != -1 (so
12483 we don't get an exception accessing manager.Current).
12484 (UpdateIsBinding): move the code from IsBinding here.
12485 (PositionChangedHandler): call Check here to we can initialize
12486 things that require a non- -1 position.
12488 2007-05-17 Everaldo Canuto <ecanuto@novell.com>
12490 * Form.cs: When alt keys is pressed send WM_CHANGEUISTATE to top level
12493 2007-05-17 Andreia Gaita <avidigal@novell.com>
12495 * TabControl.cs: Add 2.0 methods and events, including
12496 OnEnter / OnLeave and raises it for tabpages (fixes #79869)
12497 * TabPage.cs: Add 2.0 methods
12499 2007-05-17 Everaldo Canuto <ecanuto@novell.com>
12501 * Control.cs: Implement WmUpdateUIState, show_focus_cues and
12502 keyboard_cues is properly handled by message method.
12504 2007-05-17 Jonathan Pobst <monkey@jpobst.com>
12506 * TreeViewImageIndexConverter.cs: Add 2.0 methods.
12508 2007-05-17 Jonathan Pobst <monkey@jpobst.com>
12510 * ToolStripTextBox.cs: Wire up new 2.0 Textbox methods/properties.
12512 2007-05-16 Everaldo Canuto <ecanuto@novell.com>
12515 - WmUpdateUIState added to handle state changes, it make call to
12516 OnChangeUICues event.
12517 - Fixed ShowKeyboardCues to check for MenuAccessKeysUnderlined in
12520 2007-05-16 Jonathan Pobst <monkey@jpobst.com>
12522 * ImageKeyConverter.cs: Added.
12523 * TreeViewImageKeyConverter.cs: Added.
12525 2007-05-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12527 * ToolTips.cs: Update Text if SetToolTip is called for a control
12528 already showing the tooltip, as well as restarting its timer; show
12529 tooltip if we are inside the control bounds by the time of calling
12530 SetToolTip. Inside ShowTooltip remove the check to not show the
12531 tooltip again for the active control (it is allowed by .Net to
12532 show the tooltip on the same control multiple times).
12534 2007-05-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
12536 * MaskedTextBox.cs: Small fix for Text that fixes a broken test.
12538 2007-05-16 Andreia Gaita <avidigal@novell.com>
12540 * ContainerControl.cs: only process tab key if there are no
12541 modifier keys present, otherwise the control does the
12542 tab processing, if it needs to. Fixes #81622
12543 * TabControl.cs: Fixes calculation for which tab to select on
12546 2007-05-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
12548 * MaskedTextBox.cs: Small fix for Text that fixes a broken test.
12550 2007-05-15 Jonathan Pobst <monkey@jpobst.com>
12552 * Control.cs: Make IsInputCharInternal to allow controls to
12553 override it and still match MS API.
12554 * TextBoxBase.cs: Override IsInputCharInternal and always
12558 2007-05-15 Jackson Harper <jackson@ximian.com>
12560 * TextBox.cs: Disable some of the menu options when using a
12563 2007-05-15 Jackson Harper <jackson@ximian.com>
12567 * RichTextBox.cs: Some new 2.0 methods
12569 2007-05-15 Gert Driesen <drieseng@users.sourceforge.net>
12571 * FileDialog.cs: On 1.0 profile, do not support multidotted
12574 2007-05-14 Jackson Harper <jackson@ximian.com>
12576 * TextBoxBase.cs: Implement some of the new 2.0 methods.
12577 * RichTextBox.cs: We need to override these methods on 2.0.
12578 * MaskedTextBox.cs: These are implemented now
12579 * TextControl.cs: This was off by one.
12581 2007-05-14 Jackson Harper <jackson@ximian.com>
12583 * TextControl.cs: Because the line endings are including in the
12584 text, we don't need to add them in anymore.
12586 2007-05-11 Everaldo Canuto <everaldo@simios.org>
12588 * ToolBar.cs: Fix autosize and get it working only after hadle is created,
12589 also prevent redraw in set_autosize if handle is not created. Fixes #81523.
12591 2007-05-11 Everaldo Canuto <everaldo@simios.org>
12593 * ToolBar.cs: Adjust size to default size when button theres no text and
12594 image, it fixes remaining issues from #81524.
12596 2007-05-11 Everaldo Canuto <everaldo@simios.org>
12599 - When not flat call redraw to recalculate sizes on creare handle to match
12601 - Revert 77220 because it causes some regressions in toobar
12604 2007-05-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
12606 * MaskedTextBox.cs: Update the base text whenever the text changes. MTB
12607 now actually enters a usable state.
12609 2007-05-11 Everaldo Canuto <everaldo@simios.org>
12611 * ToolBar.cs: Check for handle created in redraw to prevent unneeded size
12612 calculations, it reduces the size cauculation from 7 to 3 on a toolbar with
12615 2007-05-11 Everaldo Canuto <everaldo@simios.org>
12617 * ToolBar.cs: Save default_size on create handle to use later for buttons
12618 without text, needed to mimic win32 behavior.
12620 2007-05-11 Everaldo Canuto <everaldo@simios.org>
12622 * ToolBar.cs: Fix button layour to best fit width or height according to
12623 vertical or not. Fixes #81524.
12625 2007-05-10 Everaldo Canuto <everaldo@simios.org>
12627 * ToolBarButton.cs: When change style call ToolBar.Redraw to update
12628 toolbar size info because different styles theres different sizes.
12631 2007-05-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12633 * ThemeWinClassic.cs: For .Net 2.0 don't draw any image
12634 if we are using checkboxes, checked is true, and we have less
12635 than two images in StateImageList; for the 1.1 in the same scenario
12636 draw the first image if we have at least one image in StateImageList.
12637 Fixes part of #81191.
12639 2007-05-10 Jonathan Pobst <monkey@jpobst.com>
12641 * ToolStrip.cs, ToolStripManager.cs: We need to remove items from
12642 the owner's Items collection on merge.
12644 2007-05-10 Jonathan Pobst <monkey@jpobst.com>
12646 * ToolStrip.cs: Use new internal ToolStripItemCollection constructor.
12647 * ToolStripItemCollection.cs: Lots of fixes to when events get called
12648 and parent/owner gets changed based on gert's unit tests.
12650 2007-05-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
12652 * MaskedTextBox.cs: Started implementing parts of it.
12654 2007-05-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12656 * ListView.cs: When clicking the checkbox on the items
12657 take into account the double clicks even if we have only
12658 one image in StateImageList (only for 1.0/1.1). Also
12659 generate an extra change of checked state when we receive
12660 the second click on checkbox (match .Net behaviour).
12661 Fixes part of #81191.
12663 2007-05-10 Everaldo Canuto <everaldo@simios.org>
12665 * ThemeWin32Classic.cs: Fix text rectangles in Tooltips.
12667 2007-05-10 Jonathan Pobst <monkey@jpobst.com>
12669 * Form.cs: Move some of OnLoad to OnLoadInternal so it gets called
12670 even if OnLoad is overriden and base.OnLoad is not called.
12673 2007-05-10 Andreia Gaita <avidigal@novell.com>
12675 * TableLayoutSettings.cs: A big doh! fix and bowing down of head in
12676 shame. (I blame my ever-persisting and annoying cold)
12678 2007-05-09 Jonathan Pobst <monkey@jpobst.com>
12680 * ListView.cs: Don't eat navigation keys. Let them flow through to
12681 KeyDown/KeyPress routines. [Fixes bug #81569]
12683 2007-05-09 Jonathan Pobst <monkey@jpobst.com>
12685 * ListView.cs: When handling keys for selecting the item based off
12686 keyboard input, do not consider keys pressed with Alt or Control. Also,
12687 correctly handle keys when the Shift key is down. [Fixes bug #81578]
12689 2007-05-09 Jonathan Pobst <monkey@jpobst.com>
12691 * Control.cs: When using UseWaitCursor, we have to store the requested
12692 Cursor to use when UseWaitCursor is turned off.
12694 2007-05-09 Jonathan Pobst <monkey@jpobst.com>
12696 * Control.cs: Implement PreProcessControlMessage. Default IsInputChar
12698 * Application.cs: Use PreProcessControlMessage instead of
12700 * PreProcessControlMessage.cs: Make internal for 1.1.
12702 2007-05-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12704 * Control.cs: Add InternalContains focus property, which hast the same
12705 functionality of ContainsFocus, but also including implicit controls.
12706 * ListViewItem.cs: Use InternalContainsFocus instead of ContainsFocus,
12707 since we need to know if the focus is contained in our implicit
12708 ItemControl when calculating Layout. Fixes part of #80888.
12710 2007-05-08 Everaldo Canuto <everaldo@simios.org>
12712 * ToolTip.cs: Remove center form string alignment as it must be align to
12715 2007-05-08 Jonathan Pobst <monkey@jpobst.com>
12717 * ToolStripItemCollection.cs: Set the new item's parent and owner
12718 in Insert like we do in Add. [Fixes bug #81568]
12720 2007-05-08 Jackson Harper <jackson@ximian.com>
12722 * TreeView.cs: GotFocus differences between 1.1 and 2.0.
12723 - Off by one error in SetTop
12724 - Disable DoubeBuffering
12726 2007-05-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
12728 * ScrollableControl.cs: ScrollIControlntoView: we now only move the
12729 control as much as necessary in order to make it entirely visible,
12730 instead of centering the control in the container (matches MS
12731 behaviour). CalculateCanvasSize: we need to take the current scroll
12732 position into account when calculating the maximum canvas,
12733 otherwise the following scenario will fail: resize so that the
12734 scrollbars appear, use the scrollbars to scroll, resize again
12735 smaller, and now the canvas size is too small. Recalculate: when
12736 showing scrollbars make sure they start off at 0, and try to scroll
12737 the active control into view. Fixes #79540. HandleScrollBar: don't
12738 scroll anywhere if the scrollbar isn't visible.
12740 2007-05-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12742 * ListView.cs: When focus changed, call Layout/Invalidate
12743 in the focused item to update the selected state (should show
12744 entire label when ListView is focused, and a part of it if is not).
12745 * ListViewItem.cs: When doing layout for LargeIcon, take into account
12746 for displaying the entire label not only the Focused state of the
12747 item, but also the Focused state of the ListView (match .Net
12750 2007-05-07 Jonathan Pobst <monkey@jpobst.com>
12752 * Control.cs: Stub CanRaiseEvents, IsMirrored, and NotifyClients.
12753 Implement UseWaitCursor.
12755 2007-05-07 Jonathan Pobst <monkey@jpobst.com>
12756 Applying contributed patch from Sergey Volk.
12758 * Clipboard.cs: Implement SetDataObject retry logic and new overload
12760 * XplatUIWin32.cs: Throw an ExternalException if the clipboard set fails.
12762 2007-05-07 Jonathan Pobst <monkey@jpobst.com>
12764 * Control.cs: Implement DrawToBitmap.
12766 2007-05-07 Jonathan Pobst <monkey@jpobst.com>
12767 Applying contributed patch from Stefan Noack.
12769 * Control.cs: Add [Get|Set]AutoSizeMode.
12771 2007-05-07 Jonathan Pobst <monkey@jpobst.com>
12773 * MdiClient.cs: Unmerge menus when the last child is closed.
12775 2007-05-07 Jonathan Pobst <monkey@jpobst.com>
12777 * ToolStrip.cs: Do not call BeginMerge on DropDowns.
12778 * ToolStripManager.cs: Call Merge on DropDowns.
12781 2007-05-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
12783 * XplatUIWin32.cs: Changed Win32CreateWindow to take enums instead of
12785 * Form.cs: CreateParams: don't set WS_VISIBLE if we're changing
12786 visibility. We can't create forms visible, since we have to set the
12787 owner before making the form visible (otherwise Win32 will do
12788 strange things with task bar icons). The problem is that we set the
12789 internal is_visible to true before creating the control, so
12790 is_changing_visible_state is the only way of determining if we're
12791 in the process of creating the form due to setting Visible=true -
12792 this works because SetVisibleCore explicitly makes the form
12793 visibile afterwards anyways. Fixes #80775.
12795 2007-05-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12797 * ThemeWin32Classic.cs: When drawing ListViewItems,
12798 use StringTrimming.EllipsisCharacter if the view is Tile, Details,
12799 or LargeIcon _and_ item is not focused (match .Net behaviour).
12801 2007-05-04 Jonathan Pobst <monkey@jpobst.com>
12803 * Control.cs, Form.cs: Fix some obsolete method warnings.
12805 2007-05-04 Jonathan Pobst <monkey@jpobst.com>
12807 * Control.cs: Implement GetChildAtPoint and OnParentCursorChanged.
12808 * GetChildAtPointSkip.cs: Make internal for 1.1 profile.
12810 2007-05-04 Andreia Gaita <avidigal@novell.com>
12812 * ContainerControl.cs: Fix active_control attribution when going
12813 up the parent chain so that the first parent container gets the control
12814 and the rest of the parent containers get the child containers (skips
12815 non-containers). Fixes #80729
12817 2007-05-04 Randolph Chung <tausq@debian.org>
12819 * FileDialog.cs: Implement the SupportMultiDottedExtensions property.
12822 2007-05-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
12824 * XplatUIX11.cs: Add a TranslateWindowSizeToXWindowSize overload that
12825 takes a size parameter, since the CreateParam's size isn't true for
12826 minimized forms. Fixes #81518,
12828 2007-05-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
12830 * Form.cs: Add OnDeactivateInternal.
12831 * MdiClient.cs: Raise Deactivate event. Fixes #81409.
12833 2007-05-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
12835 * DateTimePicker.cs: CalculateDropDownLocation: do a null check before
12836 accessing the parent. Fixes #81508.
12838 2007-05-03 Chris Toshok <toshok@ximian.com>
12840 * CurrencyManager.cs (CurrencyManager.ListChangeHandler): in the
12841 2.0 block, pass listposition + 1 to ChangeRecordState when a row
12842 was added before the current listposition. Fixes the
12843 TestInsertRowBeforeCurrent unit test.
12845 2007-05-03 Jonathan Pobst <monkey@jpobst.com>
12847 * Application.cs: Add RaiseIdle.
12848 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
12849 XplatUIX11.cs: Implement RaiseIdle.
12851 2007-05-02 Jonathan Pobst <monkey@jpobst.com>
12852 corcompare work: N - Z
12856 * ScrollableControl.cs
12857 * SplitContainer.cs
12860 * SystemInformation.cs
12862 * TableLayoutControlCollection.cs
12863 * TableLayoutPanel.cs
12868 * ToolStripComboBox.cs
12869 * ToolStripContainer.cs
12870 * ToolStripContentPanel.cs
12871 * ToolStripDropDown.cs
12872 * ToolStripDropDownItem.cs
12873 * ToolStripDropDownMenu.cs
12875 * ToolStripItemCollection.cs
12876 * ToolStripMenuItem.cs
12877 * ToolStripPanel.cs
12878 * ToolStripSplitButton.cs
12881 * TreeNodeCollection.cs
12882 * TreeNodeMouseHoverEventArgs.cs
12885 2007-05-01 Everaldo Canuto <everaldo@simios.org>
12887 * ContextMenu.cs: Add public method Show with alignment property to 2.0
12888 stuff. Thanks aatdark for the patch.
12890 2007-05-01 Jonathan Pobst <monkey@jpobst.com>
12892 * GridItem.cs: Implement 2.0 Tag property.
12894 2007-05-01 Frederik Carlier <frederik.carlier@carlier-online.be>
12896 * TreeNodeCollection.cs: Fix ContainsKey and IndexOfKey methods to use
12897 count instead of Nodes.Length. [Fixes bug #81448]
12899 2007-05-01 Jonathan Pobst <monkey@jpobst.com>
12901 * ComboBox.cs: Fix paramName sent to ArgumentOutOfRangeException's.
12904 2007-05-01 Jonathan Pobst <monkey@jpobst.com>
12905 corcompare work: A - M
12906 * BindingNavigator.cs
12911 * FlowLayoutPanel.cs
12917 2007-05-01 Jonathan Pobst <monkey@jpobst.com>
12919 * Application.cs: Give toolstrips a chance to process mnemonics.
12920 * ToolStrip.cs, ToolStripDropDownButton.cs, ToolStripItem.cs,
12921 ToolStripItemTextRenderEventArgs.cs, ToolStripLabel.cs,
12922 ToolStripMenuItem.cs, ToolStripSplitButton.cs: Implement keyboard mnemonics.
12924 2007-05-01 Jackson Harper <jackson@ximian.com>
12926 * TextBoxBase.cs: Better preferred height, FixedSingle gets the
12928 - Don't set the BoundsSpecified
12930 2007-04-30 Jonathan Pobst <monkey@jpobst.com>
12932 * Application.cs: When using the toolstrip shortcut mechanism, allow the
12933 message to pass through to a regular control if it hosted by a toolstrip.
12934 * ToolStrip.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
12935 ToolStripManager.cs: Enable keyboard navigation for ToolStrips.
12937 2007-04-30 Jonathan Pobst <monkey@jpobst.com>
12939 * TextRenderer.cs: Use the flags argument when using the MeasureString
12940 fallback algorithm.
12942 2007-04-30 Jonathan Pobst <monkey@jpobst.com>
12944 * MenuStrip.cs: Don't let multiple ToolStripSeparators get added to
12945 the MDI menu item. [Fixes bug #81483]
12947 2007-04-30 Gert Driesen <drieseng@users.sourceforge.net>
12949 * DataGridViewColumn.cs: Initialize value of headercell to zero-length
12950 string. When setting Name to null, use zero-length string instead.
12952 2007-04-29 Andreia Gaita <avidigal@novell.com>
12954 * TabControl.cs: Implement missing 2.0 methods (SelectTab,
12955 DeselectTab). Implement missing 2.0 TabPageCollection methods
12956 (Add, ContainsKey, RemoveByKey, IndexOfKey)
12958 2007-04-29 Pedro MartÃnez Juliá <pedromj@gmail.com>
12960 * DataGridViewColumn.cs: Make HeaderText take preference over Name.
12962 2007-04-29 Gert Driesen <drieseng@users.sourceforge.net>
12964 * RichTextBox.cs: In LoadFile, use StreamReader to read plain text.
12965 Fixes bug #81479. Include details of exception when LoadFile fails.
12967 2007-04-28 Alan McGovern <alan.mcgovern@gmail.com>
12969 * DrawListViewSubItemEventArgs.cs: Added missing setter
12971 2007-04-27 Andreia Gaita <avidigal@novell.com>
12973 * ToolTip.cs: Add missing 2.0 properties. Implement 2.0 Show and
12974 Hide methods (not complete). Implement missing 2.0 OnPopup event.
12976 2007-04-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12978 * ListView.cs: In ItemControl.OnMouseDown restore a pair of braces I
12979 removed in ly last commit (it was breaking the Label edit feature).
12981 * ThemeWin32Classic.cs: When drawing a ListViewItem use
12982 StringAlignment.Near for LineAlignment (match .Net).
12984 2007-04-27 Andreia Gaita <avidigal@novell.com>
12986 * TabControl.cs: Change SetTab so it adds the tabpage to the list
12987 of controls if it isn't already there - was blowing up when doing
12988 tabcontrol.TabPages[i]=new TabPage().
12989 SetTab now does a replace by removing the page at the index.
12990 Add a new InsertTab method that inserts a page in a given index
12991 instead of replacing.
12992 Implements TabPageCollection.Insert(int, TabPage).
12994 2007-04-27 Chris Toshok <toshok@ximian.com>
12996 * BindingManagerBase.cs: fill in CurrentItemChanged (and have an
12997 internal handler that can be invoked from our subclasses.) Also,
12998 add a comment to PushData about how we need to fix it.
13000 * CurrencyManager.cs: tons of changes here. trying to get things
13001 matching the behavior of .net wrt event orders (ItemChanged,
13002 CurrentChanged, PositionChanged.) I've implemented a private .net
13003 symbol (ChangeRecordState) that appears in stack traces because
13004 it's actually easier to do this than to effective inline all its
13005 various behaviors at every call site.
13007 * RelatedPropertyManager.cs: guard against an exception here by
13008 not using parent.Current if the position is set to -1 (if the
13009 parent datasource is cleared, for instance).
13011 * Binding.cs: don't parse data in PushData (this might be wrong,
13012 but it jives with MS's behavior.) Also, don't call PushData when
13013 we get a CurrentChanged event.
13015 2007-04-27 Andreia Gaita <avidigal@novell.com>
13019 WebBrowserSiteBase.cs,
13020 HtmlDocument.cs: Added stubbed out classes, no real implementations
13023 2007-04-27 Everaldo Canuto <everaldo@simios.org>
13025 * MainMenu.cs: In draw method without parameters call draw method with
13026 PaintEvent, another one (just rect) adjust rectangle and we dont need it
13027 as Rect property is already adjusted. Fixes #80694.
13029 2007-04-27 Jonathan Pobst <monkey@jpobst.com>
13031 * Application.cs: Need to handle keyboard menu deselection here.
13032 * Control.cs: Use WM_SYSKEYUP instead of WM_SYSCOMMAND to start menu keyboard
13033 navigation, allowing keyboard to work on X11.
13034 * ToolStrip.cs: Don't worry about handling the Menu key here anymore.
13036 2007-04-27 Everaldo Canuto <everaldo@simios.org>
13038 * MenuAPI.cs: When deactivate menu verify if hotkey (_) is active and redraw
13039 menu bar. It fixes some drawing issues in menu bar.
13041 2007-04-27 Everaldo Canuto <everaldo@simios.org>
13043 * MenuAPI.cs: Remove unneeded "keynav_state = KeyNavState.Idle" before
13044 Deactivate calls, Deactivate method already do it. Also ser ActiveTracker
13045 when <alt> key is pressed.
13047 2007-04-26 Everaldo Canuto <everaldo@simios.org>
13049 * XplatUIX11.cs: Simplify SystrayRemove to be like other libraries, Gtk as
13050 example just set visible to false and make this prevent from other problems.
13051 In SystrayAdd always remove pending expose. Fixes #81072.
13053 2007-04-26 Marek Safar <marek.safar@gmail.com>
13055 * TextBoxBase.cs (CaretMoved): Consider scroll maximum when scroll
13058 2007-04-26 Alan McGovern <alan.mcgovern@gmail.com>
13060 * ListView.cs: Added three missing 2.0 events and corresponding
13061 EventHandlers. Added the OwnerDraw property.
13062 * DrawListViewColumnHeaderEventHandler.cs: fixed typo
13064 2007-04-26 Alan McGovern <alan.mcgovern@gmail.com>
13066 * DrawListViewItemEventArgs.cs
13067 * DrawListViewSubItemEventArgs.cs: Brought classes up to 2.0 status.
13069 2007-04-26 Alan McGovern <alan.mcgovern@gmail.com>
13071 * TextControl.cs: Fixed typo in constructor
13073 2007-04-26 Jonathan Pobst <monkey@jpobst.com>
13075 * Application.cs: Create a shortcut path so that currently selected
13076 MenuStrips can intercept keyboard events without having focus.
13077 * Control.cs: Handle WM_SYSCOMMAND message to activate MenuStrips.
13078 * MenuStrip.cs, ToolStrip.cs, ToolStripDropDown.cs, ToolStripDropDownItem.cs,
13079 ToolStripItem.cs, ToolStripManager.cs, ToolStripMenuItem.cs: Support
13080 keyboard navigation (arrows, tab, enter, esc) on Windows. Still need to
13081 generate WM_SYSCOMMAND message in X11 for other platforms.
13082 * ToolStripProfessionalRenderer.cs: ToolStripMenuItems need to be painted
13083 in OnRenderMenuItemBackground instead of OnRenderButtonBackground.
13084 * ToolStripSplitButton.cs: Add DefaultItem property.
13086 2007-04-26 Everaldo Canuto <everaldo@simios.org>
13088 * MainMenu.cs: In OnMenuChanged pass PaintEventArgs to Draw method, it
13089 fixes some menu draw problem on Windows with border diferent from default
13090 it also fixes #81403.
13092 2007-04-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
13094 * Form.cs: Refactor WndProc into separate methods, just like Control is
13097 2007-04-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
13099 * Control.cs: set_Text: move the call to the driver into a seperate
13100 virtual method so that Form can override it.
13101 * MaskedTextBox.cs: Corcompare fixes.
13102 * Form.cs: Override UpdateWindowText and only update the styles if the
13103 form has been shown (fixes #81405).
13105 2007-04-25 Jonathan Pobst <monkey@jpobst.com>
13107 * Control.cs, Form.cs: Use the better supported WM_?BUTTONDOWN and
13108 WM_ACTIVATE messages instead of WM_MOUSEACTIVATE and
13109 WM_ACTIVATEAPP. This fixes menus not disappearing on X11 when
13110 the form lost focus or another control was clicked.
13112 2007-04-25 Gert Driesen <drieseng@users.sourceforge.net>
13114 * DataGrid.cs: Uncomment MakeTransparent calls since bug #80151 is
13117 2007-04-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
13119 * DrawListViewColumnHeaderEventHandler.cs, DrawToolTipEventArgs.cs,
13120 DrawListViewItemEventHandler.cs,
13121 DrawListViewSubItemEventHandler.cs, DrawToolTipEventHandler.cs:
13123 * X11Structs.cs: More ToString implementation.
13125 2007-04-25 Jonathan Pobst <monkey@jpobst.com>
13127 * ToolStripDropDownItem.cs: Don't lazy create a DropDown in Dispose.
13128 * ToolStripOverflowButton.cs: Don't lazy create a DropDown in HasDropDownItems.
13130 2007-04-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
13132 * Control.cs: Only raise OnVisibleChanged if we're not recreating the
13134 * FormCollection.cs: Don't add a form if it's already in the
13136 * Form.cs: Change ShowDialog () to call ShowDialog (owner) with a null
13137 according to behaviour and MSDN. The ownerWin32 is the active
13138 window at the moment when we call ShowDialog, not the context's
13139 main form (the context's main form may open another form that opens
13140 a form with ShowDialog, the win32 owner is the second form). Add
13141 and remove forms to the Application.OpenForms in other places to
13142 better match MS behaviour. Add an IsActive property that raises
13143 On(de)Activated only if the active state has changed (we were
13144 raising OnDeactivated before OnActivated while creating forms).
13145 * Application.cs: Refactor Enabling/Disabling of windows for modal
13146 dialog loops out to separate methods, and restore the thread
13147 context when we quit the method. Fixes #81407.
13149 2007-04-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13151 * ListView.cs: In ItemControl.HandleClicks, also fire
13152 2.0 MouseClick or MouseDoubleClick events on the parent,
13153 not only the Click/DoubleClick events.
13155 2007-04-24 Andreia Gaita <avidigal@novell.com>
13157 * TableLayoutSettings.cs:
13158 - Added a GetControls method and a support structure to help the
13159 TypeConverter to enumerate the controls for serialization.
13160 - Added a new serialization constructor.
13161 - Added a isSerialized flag initialized to true on the
13162 serialization constructor so that the TableLayoutPanel.LayoutSettings
13163 setter does not throw the designed NotSupportedOperation exception
13164 when the object is built through deserialization.
13165 - Implemented GetObjectData
13167 * TableLayoutPanel.cs: Added check on LayoutSettings.
13169 2007-04-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13171 * ListView.cs: Report Click and DoubleClick events to the parent
13172 from ItemsMouseUp, instead of ItemsMouseDown. This prevents us
13173 from breaking the click count state when using dialog forms (Control
13174 reports the clicks in a similar fashion). In the previous behaviour
13175 the last WM_LBUTTONUP message in a double click was sent to the
13176 ListView's form, instead of the ListView, which was breaking the click
13177 count for it. Fixes #80387.
13179 2007-04-24 Alan McGovern <alan.mcgovern@gmail.com>
13181 * BindingNavigator.cs : fixed bugs revealed by new nunit tests
13183 2007-04-24 Jonathan Pobst <monkey@jpobst.com>
13185 * ToolStripDropDownItem.cs: Lazy initialize the DropDown. This prevents
13186 us from created dropdowns for menu items that do not have subitems.
13187 * ToolStripItem.cs, ToolStripProfessionalRenderer.cs, ToolStripSplitButton.cs:
13188 Check HasDropDownItems before calling DropDown so a dropdown will not be
13189 created if it isn't needed.
13191 2007-04-24 Jackson Harper <jackson@ximian.com>
13193 * TreeView.cs: Set the first node to the selected node when we get
13194 focus if there is no selected node.
13196 2007-04-24 Andreia Gaita <avidigal@novell.com>
13198 * MimeIcon.cs: remove using blocks so that image streams are
13199 not disposed of. Fixes #80151
13201 2007-04-24 Jackson Harper <jackson@ximian.com>
13203 * TextBoxBase.cs: Fixup the height of textboxes when the control
13206 2007-04-24 Jonathan Pobst <monkey@jpobst.com>
13208 * ToolStrip.cs: Fully implement GetNextItem. Call OnParentRightToLeftChanged
13209 for each ToolStripItem when the parent's RightToLeftChanged is called.
13211 2007-04-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
13213 * ComboBox.cs: Forward ContextMenu to the underlying textbox, if any.
13215 * Control.cs: Replace GetContextMenuInternal() with ContextMenuInternal
13216 property, so that the setter can be overriden too.
13217 * TextBox.cs: Change GetContextMenuInternal() to use
13218 ContextMenuInternal.
13220 2007-04-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
13222 * ThemeWin32Classic.cs: Use a black pen to draw checkboxes, fixes
13225 2007-04-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
13227 * ThemeWin32Classic.cs: Use a black pen to draw checkboxes, fixes
13230 2007-04-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
13232 * MaskedTextBox.cs: Commit this so nobody else starts working on it and
13233 avoid duplicate work. Mostily skeleton code, it's not working at
13236 2007-04-20 Leszek Ciesielski <skolima@gmail.com>
13238 * NotifyIcon.cs : stub for MouseClick event
13239 * Application.cs: stub for SetUnhandledExceptionMode
13241 2007-04-24 Alan McGovern <alan.mcgovern@gmail.com>
13243 * BindingNavigator.cs : Initial (partial) implementation
13245 2007-04-23 Jackson Harper <jackson@ximian.com>
13247 * TreeView.cs: Do not create the treeview's handle when setting
13248 the scroll position.
13249 - ExpandAll needs to compute the scrollbars so it knows which
13250 position to set the bar too.
13252 * TreeNodeCollection.cs: Pass new flag to UpdateScrollBars
13254 2007-04-23 Jackson Harper <jackson@ximian.com>
13256 * TextBoxBase.cs: Non multiline textboxes shouldn't take the enter
13259 2007-04-23 Jonathan Pobst <monkey@jpobst.com>
13261 * ToolStripItem.cs: Make GetImageSize internal.
13262 * ToolStripMenuItem.cs: Use GetImageSize to determine the size we
13263 need to draw an item. Fixes a reported issue where images on menus
13264 that were not 16x16 were drawing incorrectly.
13266 2007-04-21 Miguel de Icaza <miguel@novell.com>
13268 * Padding.cs: Use the converter, fixes the resgen2 issue with
13271 2007-04-21 Jackson Harper <jackson@ximian.com>
13273 * TreeView.cs: Dont try to unhighlight the selected node if there
13274 isn't a selected node.
13276 2007-04-21 Jackson Harper <jackson@ximian.com>
13282 * TreeView.cs: Use the InternalBorderStyle property to set the
13283 initial border style, this forces the client rectangle to be sized
13286 2007-04-20 Jackson Harper <jackson@ximian.com>
13288 * TreeView.cs: Simplify scrolling to the last node after expanding
13290 - Fix some off by ones with setting the bottom.
13292 2007-04-20 Jonathan Pobst <monkey@jpobst.com>
13294 * Control.cs: Use DefaultSize for Size, calculate ClientSize from
13295 that. We were incorrectly doing it the other way around. Also,
13296 update ClientSize if we change the BorderStyle before the control
13299 2007-04-20 Gert Driesen <drieseng@users.sourceforge.net>
13301 * XplatUI.cs: Added Border3DSize, BorderSize, CaptionButtonSize,
13302 DoubleClickSize, DoubleClickTime and FixedFrameBorderSize. Renamed
13303 XplatUIDriver.Caption to CaptionHeight. Spaces to tabs.
13304 * XplatUIDriver.cs: Added Border3DSize, BorderSize, CaptionButtonSize,
13305 DoubleClickSize, DoubleClickTime and FixedFrameBorderSize. Renamed
13306 Caption to CaptionHeight.
13307 * XplatUIX11.cs: Renamed Caption to CaptionHeight.
13308 * Theme.cs: Modified Border3DSize, BorderSize, CaptionButtonSize
13309 and FixedFrameBorderSize to return value from current XplatUI driver.
13310 * XplatUIWin32.cs: Implemented Border3DSize, BorderSize,
13311 CaptionButtonSize, DragFullWindows, DoubleClickSize, DoubleClickTime
13312 and FixedFrameBorderSize using win32 API. Renamed Caption to
13314 * XplatUIOSX.cs: Renamed Caption to CaptionHeight.
13315 * SystemInformation.cs: Fixed typo in BorderSize.
13317 2007-04-20 Gert Driesen <drieseng@users.sourceforge.net>
13319 * XplatUI.cs: Added MenuAccessKeysUnderlined.
13320 * XplatUIDriver.cs: Added MenuAccessKeysUnderlined.
13321 * XplatUIX11.cs: Implemented MenuAccessKeysUnderlined by always
13323 * Theme.cs: Modified MenuAccessKeysUnderlined to return corresponding
13324 value from XplatUI driver.
13325 * XplatUIWin32.cs: Implemented MenuAccessKeysUnderlined using
13326 SystemParametersInfo.
13327 * ThemeWin32Classic.cs: Remove obsolete MenuAccessKeysUnderlined
13329 * XplatUIOSX.cs: Implemented MenuAccessKeysUnderlind by always
13332 2007-04-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
13334 * XplatUIX11.cs, Hwnd.cs: Remove warnings.
13336 2007-04-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
13338 * MessageBox.cs, XplatUIX11.cs, Hwnd.cs: Remove warnings.
13340 2007-04-20 Jonathan Pobst <monkey@jpobst.com>
13342 * ToolStripManager.cs: Fix a reported InvalidCastException when unmerging
13343 MenuStrips that contain ToolStripSeparators.
13345 2007-04-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
13347 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Add
13348 DefineStdCursorBitmap.
13349 * Cursor.cs: Add an internal constructor so that the Cursor knows if it
13350 has been created off a standard cursor. This is used to get a
13351 bitmap of the standard cursor when Draw or DrawStretched is called
13352 in order to draw the cursor.
13353 * X11Structs.cs: Added XcursorImage and XcursorImages.
13354 * XplatUIX11.cs, XplatUIWin32.cs: Add and implement
13355 DefineStdCursorBitmap.
13356 * Cursors.cs: Update all relevant creations of Cursor to use the new
13357 internal constructor.
13359 2007-04-19 Jackson Harper <jackson@ximian.com>
13361 * TextBox.cs: Move the has_been_focused into the base control, so
13362 some of the text adding methods can manipulate it (probably time
13363 for a better name for this flag too).
13364 - Call a new version of selectall that doesn't scroll
13365 * TextBoxBase.cs: When we append text, if the document is empty,
13366 don't scroll. If the document has text already, we scroll to the
13367 end of the appended text.
13368 - When the text is changed, we reset the has_been_focused, so the
13369 next time the control gets focused, all the text is selected.
13371 2007-04-19 Jackson Harper <jackson@ximian.com>
13373 * TextControl.cs: Move the margins to the document, add a method
13374 so the margin sizes can be updated.
13375 * TextBoxBase.cs: When the border style is changed, update the
13378 2007-04-19 Jonathan Pobst <monkey@jpobst.com>
13380 * Control.cs: Respect DefaultPadding.
13381 * GroupBox.cs: Implement DefaultPadding, DisplayRectangle takes
13382 padding into account.
13383 * ToolStrip.cs: Remove setting padding to DefaultPadding in constructor.
13385 2007-04-19 Jackson Harper <jackson@ximian.com>
13387 * TextControl.cs: Oops, we need to use the ClientRect not the
13390 2007-04-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13392 * ListView.cs: In ItemControl.ItemsMouseDown, take into
13393 account the double clicks when CheckBoxes are used and
13394 the pointer is inside the checkbox. Fixes part of #81191.
13396 2007-04-18 Jackson Harper <jackson@ximian.com>
13398 * TextControl.cs: Pressing the end key shouldn't move the caret
13399 past the line ending.
13400 * TextBoxBase.cs: We can still delete if we are in the line
13401 ending and the combine will just kill the existing line ending.
13403 2007-04-18 Jackson Harper <jackson@ximian.com>
13405 * TextControl.cs: We can't move lines, then invalidate their
13406 bounds, we need to get the old bounds and combine that with the
13408 * TextBoxBase.cs: Before combining two lines for a delete, we need
13409 to invalidate the area of the old line, since that will be moved
13410 in the combine operation.
13412 2007-04-18 Everaldo Canuto <everaldo@simios.org>
13414 * LinkLabel.cs: In OnPaint invoke draw background to fix problems
13415 with transparent background. Fixes #80482.
13417 2007-04-18 Jonathan Pobst <monkey@jpobst.com>
13419 * PictureBox.cs: Refresh on resize when SizeMode = Zoom.
13420 * ThemeWin32Classic.cs: Implement PictureBox.SizeMode = Zoom.
13423 2007-04-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
13425 * CreateParams.cs: Add a couple of helper methods and do a less string
13426 concatenation in ToString.
13427 * XplatUIX11.cs: Add an TranslateClientRectangleToXClientRectangle
13428 overload that takes a Control parameter, since this method may be
13429 called before a control is assigned to the hwnd (from
13430 CreateWindow), and update CreateWindow to use the new overload. In
13431 GetMenuOrigin subtract the title bar from the y position if the
13432 form has a window manager (since we're painting it and not X).
13433 * XplatUIWin32.cs: If we can get a form in GetMenuOrigin use the form's
13434 CreateParams to calculate the origin (since border sizes may vary).
13435 In ScreenToMenu only subtract the title height if we actually have
13437 * MdiWindowManager.cs: Override MenuHeight to always return 0, since
13438 mdi children never have menus of themselves.
13439 * InternalWindowManager.cs: Implement menu handling like form does.
13440 Added GetMenuOrigin to calculate the menu origin, can't use the
13441 CreateParams from the form like normally since it's lying.
13442 * Hwnd.cs: Implement GetBorderSize better (in the sense more
13443 windows-like) and add Inflate and comparison operators to the
13444 Borders type. When calculating MenuOrigin and it's a form with a
13445 window manager, use the window manager to calculate it.
13447 2007-04-17 Chris Toshok <toshok@ximian.com>
13449 * Control.cs (CreateControl): turns out in 2.0 we don't need this
13450 OnBindingContextChanged thing here. It's only generated from
13451 ContainerControl.OnCreateControl. Fixes a newly written unit test
13452 - BindingTest.BindingContextChangedTest4.
13454 2007-04-17 Jackson Harper <jackson@ximian.com>
13456 * ScrollBar.cs: When setting values, make sure the current
13457 position stays within the new values range.
13459 2007-04-17 Chris Toshok <toshok@ximian.com>
13461 * Control.cs (CreateControl): talk about a bizarre corner case.
13462 Don't emit OnBindingContextChanged here if we're a parentless
13463 control (i.e. if we're a form.). Fixes
13464 BindingTest.BindingContextChangedTest2.
13466 2007-04-17 Everaldo Canuto <everaldo@simios.org>
13468 * ButtonBase.cs: Remove TextFormatFlags.WordBreak to mimic same behavior
13469 from win32. Fixes #81255.
13471 2007-04-17 Everaldo Canuto <everaldo@simios.org>
13473 * ThemeWin32Classic.cs: Remove text offset from DrawButtonText as it is
13474 already present in CalculateButtonTextAndImageLayout.
13476 2007-04-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
13478 * XplatUIX11.cs: When setting min/max size for a window we need to
13479 translate the coordinates to x coordinates. Create an overload of
13480 SetWindowMinMax that takes a CreateParams handling this, and change
13481 SetWMStyles to call this function (can't use Control.FromHandle in
13482 the SetWindowMinMax to get the control/CreateParams from the handle
13483 because the handle might not have been assigned to the control
13484 yet). Fixes #81371.
13486 2007-04-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13488 * ListView.cs: In ItemControl.ItemMouseDown, don't change check state
13489 if StateImageList is non-null and it has less than two items (match MS
13490 behaviour). Also, in HandleNavKeys handle the Space key, calling
13491 the new ToggleItemsCheckState method, which tries to change the
13492 checked state of the selected items. Fixes part of #81191.
13494 2007-04-16 Jackson Harper <jackson@ximian.com>
13496 * RichTextBox.cs: namespace cleanup.
13498 2007-04-16 Everaldo Canuto <everaldo@simios.org>
13500 * XplatUIWin32.cs: Back last parameter to true in SetClipRegion.
13502 2007-04-16 Everaldo Canuto <everaldo@simios.org>
13505 * Control.cs: Call invalidate in set_Region.
13507 * XplatUIX11.cs, XplatUIWin32.cs: Remove invalidate from SetClipRegion as
13508 it dont works here.
13510 2007-04-16 Jackson Harper <jackson@ximian.com>
13512 * TextBoxBase.cs: When enter is pressed, we need to update all
13513 lines below the current.
13515 2007-04-16 Jonathan Pobst <jpobst@monkey.com>
13517 * MdiClient.cs: Implement implicit menu merging for MDI
13518 children. When a child form is active, if it has a menustrip
13519 and the parent form has a MainMenuStrip, automatically merge
13522 2007-04-15 Andreia Gaita <avidigal@novell.com>
13524 * TabControl.cs: Refactored sizing methods to not repeat
13525 code all over the place. Tab bounds are now calculated
13526 as if alignment is top and single line, and only when
13527 setting the bounds are the positions adjusted according
13528 to alignment. Replaced hardcoded positions, spacings and
13529 paddings by getting the values the ThemeEngine.
13532 * Theme.cs: Change TabControl properties and methods so
13533 that all start with TabControl*. Added more properties
13534 to help remove hardcoded values on tabcontrol.
13535 Add CPDrawBorder3D declaration so the Theming classes
13538 * ThemeClearlooks.cs, ThemeNice.cs: Method signature changes from Theme.
13540 * ThemeWin32Classic.cs: Rector TabControl out to the TabControlPainter
13541 on the Theming namespace, and call the appropriate methods here.
13542 Change CPDrawBorder3D to public.
13544 2007-04-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13546 * Control.cs: In WmRButtonUp, send the WM_CONTEXTMENU message to
13547 the control after firing the OnMouseUp event, instead of sending
13548 the message before the mentioned event. This is so we can match the
13549 MS behaviour. Fixes part of #80385.
13551 2007-04-13 Jonathan Pobst <monkey@jpobst.com>
13553 * ToolStripItem.cs: Call the RightToLeftChanged event when setting the
13554 RightToLeft property.
13556 2007-04-13 Jonathan Pobst <monkey@jpobst.com>
13558 * ToolStrip.cs: Add properties and internal methods to support merging.
13559 * ToolStripItem.cs: Add MergeAction and MergeIndex.
13560 * ToolStripItemCollection.cs: Add Insert and Remove methods that do
13561 not trigger reparenting or layouts.
13562 * ToolStripManager.cs: Add Merge and RevertMerge methods.
13563 * ToolStripOverflow.cs: Add a convenience method to find the ToolStrip that
13564 is hosting the overflow menu.
13566 2007-04-13 Jackson Harper <jackson@ximian.com>
13568 * TextControl.cs: Set the line ending correctly for the first
13571 2007-04-13 Sebastien Pouliot <sebastien@ximian.com>
13573 * Theme.cs: Update GetMethod to get the new definition for
13574 KnownColors.Update (and fix theme color updates).
13576 2007-04-12 Everaldo Canuto <everaldo@simios.org>
13578 * MessageBox.cs: Fix some test and button position.
13580 2007-04-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13582 * Form.cs: Consider the implicit controls in
13583 GetRealChildAtPoint. We need it since this method
13584 is called on Form when handling the some messages in
13585 WndProc, and need to consider those implicit ones too.
13588 2007-04-12 Jonathan Pobst <monkey@jpobst.com>
13590 * ToolStripMenuItem.cs: Display the ShortcutKeyDisplayString even
13591 if there are no ShortcutKeys set.
13592 * ToolStripProfessionalRenderer.cs: If an item has had its BackColor
13593 set, use it when painting.
13595 2007-04-12 Jackson Harper <jackson@ximian.com>
13597 * TextControl.cs: Fix some off-by-one issues in line duplication
13598 and insertion in the undo manager. Also, overwrite the first tag
13599 of a line on insert, if it is just a zero lengthed tag. This
13600 prevents us from getting an extra stranded tag at the beginning of
13603 2007-04-11 Everaldo Canuto <everaldo@simios.org>
13605 * Label.cs: Remove check for handle created in CalcAutoSize, we need
13606 to calculated proper size including when handle was not created yet.
13608 2007-04-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
13610 * MdiWindowManager.cs: When moving a form, allow the form to be moved
13611 when the mouse is outside of it's parent's client rectangle. Fixes
13612 #79982 (take 3, part 2).
13614 2007-04-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
13616 * X11Structs.cs: Add a few ToString() overrides.
13617 * XplatUIX11.cs: Added GetTopLevelWindowLocation to try to calculate
13618 the window location in a window-manager independent way. Reworked
13619 FrameExtents, it now actually works. Reworked AddConfigureNotify
13620 and ReparentNotify handling to use GetTopLevelWindowLocation
13621 instead of the earlier, more hacky solution. Reworked SetWMStyles,
13622 hopefully for the better: we now set _NET_WM_WINDOW_TYPE* for all
13623 windows, DIALOG for modal windows, UTILITY for toolboxes and NORMAL
13624 for all other windows (fixes #81281 part 1), a toolwindow is hidden
13625 from the taskbar if it has a parent (fixes #81281 part 2 for kwin),
13626 and generally refactored to do as few calculations as possible
13629 2007-04-09 Sebastien Pouliot <sebastien@ximian.com>
13631 * Theme.cs: Change "reflective-contract" between MWF and SD to
13632 minimize # of calls, avoid Color serialization and avoid updating
13633 every "known colors" each time a single one is updated.
13635 2007-04-09 Gert Driesen <drieseng@users.sourceforge.net>
13637 * DataGridTextBoxColumn.cs: Only set IsInEditOrNavigateMode to false
13638 when not readonly and the text is explicitly set. Code style updates.
13639 * DataGridTableStyle.cs: Removed extra line.
13640 * DataGrid.cs: Code style updates. Removed extra whitespace.
13641 * DataGridColumnStyle.cs: Code style updates. Removed extra
13644 2007-04-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
13646 * XplatUIX11.cs: Added comment that "fixes" #80021.
13648 2007-04-09 Jackson Harper <jackson@ximian.com>
13650 * TextControl.cs: We don't need this -1 on the line count anymore.
13652 2007-04-09 Gert Driesen <drieseng@users.sourceforge.net>
13654 * DataGridTextBoxColumn.cs: In Commit, use TypeConverter to convert
13655 entered value to underlying type, and convert it back to a string to
13656 apply formatting. Modified GetFormattedValue to use TypeConverter
13659 2007-04-08 Gert Driesen <drieseng@users.sourceforge.net>
13661 * ListViewItem.cs: Added null checks. Avoid duplicating code in ctors.
13662 Use SubItems property when we want to ensure there's at least one
13663 subitem. Modified SubItems property to ensure there's always at least
13664 one subitem. Avoid using ListViewSubItemCollection.AddRange to match
13665 the NRE's reported by MS.
13667 2007-04-07 Gert Driesen <drieseng@users.sourceforge.net>
13669 * ProgressBar.cs: On 2.0 profile, default forecolor is Highlight. Added
13670 ResetForeColor override on 2.0. Fixed a few API compatibility issues.
13671 Spaces to tabs. Removed extra tabs.
13673 2007-04-06 Jonathan Pobst <monkey@jpobst.com>
13675 * ToolStripSplitStackLayout.cs: If we run out of things to hide, don't
13676 infinite loop. (Forgot to copy to the horizontal toolstrip case.)
13678 2007-04-06 Jackson Harper <jackson@ximian.com>
13680 * TextBoxBase.cs: When a delete removes a line, recalculate all
13681 lines below that line (they need to get offsets setup correctly)
13684 2007-04-05 Jackson Harper <jackson@ximian.com>
13686 * TextControl.cs: We need to invalidate across the width of the
13687 document when we are invalidating multiple lines.
13688 * TextBoxBase.cs: Don't delete into the line ending.
13690 2007-04-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13692 * ListView.cs: Restore the check for the MouseHover event
13693 in ListView. It looks like the ListView fires more than one MouseHover
13694 event when HoverSelection is true _only_ in weird-corner scenarios, but
13695 in most of the cases it only fires one. Also, add the 2.0 ItemMouseHover
13698 2007-04-05 Mike Kestner <mkestner@novell.com>
13700 * ListView.cs : raise MouseDown before updating selection.
13701 [Fixes #80373 tab 1&3]
13703 2007-04-05 Jonathan Pobst <monkey@jpobst.com>
13705 * ToolStripRenderer.cs: Add static method to mirror image.
13706 * ToolStripProfessionalRenderer.cs: Support ImageTransparentColor
13707 and RightToLeftAutoMirrorImage.
13708 * ToolStripItem.cs: Remove MonoTODO from ImageTransparentColor.
13710 2007-04-05 Jonathan Pobst <monkey@jpobst.com>
13712 * ToolStripSplitStackLayout.cs: Support Alignment property.
13713 * ToolStripItem.cs: Remove MonoTODO from the Alignment property.
13715 2007-04-05 Jackson Harper <jackson@ximian.com>
13717 * TextControl.cs: Move around the line endings when crossing line
13719 - When combining lines, strip the ending text off the first line.
13721 2007-04-05 Jackson Harper <jackson@ximian.com>
13724 * TextBoxBase.cs: Try to never move the cursor into the line
13727 2007-04-04 Jonathan Pobst <monkey@jpobst.com>
13729 * ToolStripItem.cs: Make sure we aren't firing mouse events when
13730 the item is disabled. Also add a few missing methods.
13732 2007-04-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13734 * ListView.cs: We don't need the MouseEnter/MouseLeave check
13735 to fire just one MouseHover event when HoverSelection is true, since
13736 .Net does fire more than one MouseHover event in that scenario. Also,
13737 fix the selection in HoverSelection, by invoking UpdateMultiSelect
13738 if MultiSelect is true, instead of only setting ListViewItem.Selected.
13739 Finally, we need to reset the Hover logic in MouseMove, even when we
13740 don't have a selected item.
13742 2007-04-04 Jonathan Pobst <monkey@jpobst.com>
13744 * ToolStrip.cs: Add several missing methods, properties, and events.
13746 2007-04-04 Chris Toshok <toshok@ximian.com>
13748 * DataGridTextBoxColumn.cs: set the bounds of the text box to
13749 (0,0,0,0) in Commit, as MS does.
13751 * DataGrid.cs: call EndEdit() from Select() as microsoft does, and
13752 make sure we set CurrentRow on a row header click *before* calling
13753 Select. This moves the current cell (and the textbox) to the new
13754 row. The call to Select then hides the textbox, giving us the
13755 correct behavior. Fixes #80362.
13757 * CurrencyManager.cs (UpdateIsBinding): raise ItemChanged (-1).
13758 (ListChangedHandler): reorder the position/current changed events,
13759 and call UpdateIsBinding in the ItemAdded case.
13761 * GridColumnStylesCollection.cs: add some columns events, one of
13762 which raises the CollectionChanged event.
13764 2007-04-04 Jackson Harper <jackson@ximian.com>
13766 * TextControl.cs: When we delete multiple selection lines
13767 invalidate the selection area, don't need to do that for single
13768 lines because the final update view will handle it.
13770 2007-04-04 Jonathan Pobst <monkey@jpobst.com>
13772 * Control.cs: When we CreateControl, we need to also create all of the
13773 control's children. The child's OnLoad must also fire before the parent's
13774 OnLoad. Fixes the toolbox size in PDN.
13776 2007-04-04 Jackson Harper <jackson@ximian.com>
13778 * TextBoxBase.cs: When the user presses enter, insert a line
13779 ending into the text. (Maybe this would be a good spot for
13780 Environment.NewLine).
13781 * TextControl.cs: Remove undo manager hack, line endings get
13782 inserted properly now.
13784 2007-04-04 Everaldo Canuto <everaldo@simios.org>
13787 - Remove unneeded parameters in UpdateCursor.
13788 - Fix UpdateCursor to check if menu is active.
13789 - Call UpdateCursor when menu deactivate my click.
13790 [Fixes remaining issues from #80410]
13792 2007-04-04 Everaldo Canuto <everaldo@simios.org>
13794 * Control.cs: GetRealChildAtPoint method added, it make an
13795 recursive child control search for the point.
13797 * Form.cs: Makes use of GetRealChildAtPoint in mouse event after closes
13800 * MenuAPI.cs: Makes use of GetRealChildAtPoint in UpdateCursor.
13802 2007-04-03 Everaldo Canuto <everaldo@simios.org>
13804 * Form.cs: Fix mouse position when send back mouse event after closes
13807 2007-04-03 Everaldo Canuto <everaldo@simios.org>
13809 * Form.cs: Simplify the BUTTONDOWN for active tracker.
13811 2007-04-03 Jonathan Pobst <monkey@jpobst.com>
13813 * Control.cs: Fix an issue where if a user resized a control inside
13814 a sizing method like OnResize, we would overwrite their explicit
13815 value. Also, only call DefaultSize once in the constructor instead
13816 of 4 times. Also, do not call SetBoundsCore from SetBounds if
13817 nothing actually changed.
13819 2007-04-03 Jackson Harper <jackson@ximian.com>
13821 * TextControl.cs: Don't attempt to copy text for lines with no
13822 text in them (technically this shouldn't happen, but we aren't
13823 always inserting line endings when we should be).
13825 2007-04-03 Jackson Harper <jackson@ximian.com>
13827 * TextBoxBase.cs: Calculate the scrollbars before calculating the
13828 document, because this sets some of the document size properties
13831 2007-04-03 Jackson Harper <jackson@ximian.com>
13833 * TextBoxBase.cs: We need to calculate maximums even if this is
13834 not a multiline control, because the maxs are used for scrolling.
13835 - Display the caret after doing a page up/down, we need to
13836 manually display it because a proper CaretMoved event isn't
13837 triggered (this is because of the way the math is done to
13838 determine how far to scroll).
13840 2007-04-03 Jonathan Pobst <monkey@jpobst.com>
13842 * ToolBar.cs: Fix some breakage caused by the SetBoundsCore change.
13843 (ToolBar was relying on SetBoundsCore to default the values sent
13844 base off of BoundsSpecified.)
13846 2007-04-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
13848 * DateTimePicker.cs: Change Text so that when a null value or empty
13849 string is assigned to the test we always raise ValueChanged and
13850 TextChanged (earlier implementation would only raise ValueChanged
13851 if the current date value was different from DateTime.Now).
13853 2007-04-03 Andreia Gaita <avidigal@novell.com>
13855 * ButtonBase: Call update after invalidation, fixes #80194
13857 2007-04-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
13859 * ThemeWin32Classic.cs: Draw StatusBar using double buffering. Fixes
13862 2007-04-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
13864 * XplatUIX11.cs: SetWMStyles: If the control is a form with
13865 FormBorderStyle = None, don't give the window any decorations.
13868 2007-04-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
13870 * XplatUI.cs, XplatUIDriver.cs: Updated CalculateWindowRect parameters.
13871 * CreateParams.cs: Fix IsSet, wasn't working correctly when the style
13872 to check for is a mix of several styles (such as WS_CAPTION for
13874 * Control.cs: Don't paint an area bigger than the client area when
13875 painting the background colour. Add an internal GetCreateParams.
13876 Update calls to XplatUI.CalculateWindowRect due to API change.
13877 * XplatUIX11.cs: In PerformNCCalc set the initial size to the whole
13878 window's size, and handle WM_NCCALCSIZE in DefWndProc to calculate
13879 the size if it hasn't been handled by any windows. When creating
13880 and moving windows, X wants the location of the entire window, but
13881 the size of the client window, so add
13882 TranslateClientRectangleToXClientRectangle,
13883 TranslateWindowSizeToXWindowSIze and
13884 TranslatedXWindowSizeToWindowSize to cope with this, and call them
13885 before every window creation and move. Update CalculateWIndowRect
13886 to use Hwnd.GetWindowRect (one step towards removing DeriveStyles).
13887 In AddConfigureNotify don't do anything if the hwnd is a zombie
13888 (fixes the BadWindow we were getting while running the tests),
13889 always calculate the offsets when it's a parentless window, not
13890 only when reparented, and translate the window size, since we're
13891 getting the client size of the whole window, excluding entire
13893 * Theme.cs: Added BorderSizableSize.
13894 * XplatUIWin32.cs: Fix RECT Height and Width. Don't fake styles here
13895 anymore. Update calls to XplatUI.CalculateWindowRect due to API
13897 * Form.cs: Update calls to XplatUI.CalculateWindowRect due to API
13898 change. Fake the window styles here instead of in XplatUIWin32 so
13899 that all back-ends get the same window styles (and it's Form that's
13900 deciding when to use wm, not the Win32 backend anyways)
13901 * Hwnd.cs: Completely reworked GetWindowRectangle and
13902 GetClientRectangle - they are now passed a CreateParams and they
13903 only use Style and ExStyle to determine the rectangles (they should
13904 now work just like Win32AdjustWindowRectEx - though quite a few
13905 special cases are probably missing). They should also be 100%
13906 complimentary (i.e. GetWindowRectangle (GetClientRectangle (rect))
13907 == rect), and all numbers (borders, menu sizes) are taken from the
13908 current theme. Added a GetBorders helper function that will return
13909 the borders for any given CreateParams (including captions and
13910 menus), and GetBorderSize that returns the given border size only.
13911 * XplatUIOSX.cs: Update calls to CalculateWindowRect and
13912 Hwnd.GetClientRectangle.
13914 2007-04-02 Chris Toshok <toshok@ximian.com>
13916 * DataGridBoolColumn.cs: rewrite things a bit, and fix up the
13917 logic between the values we present to the user and the values
13918 which are stored in the column's property. Also, don't call
13919 GetPreferredSize - it's virtual. Along the way, fix bug #80965.
13921 2007-04-02 Jackson Harper <jackson@ximian.com>
13923 * TextBoxBase.cs: Scroll faster!
13925 2007-04-02 Jonathan Pobst <monkey@jpobst.com>
13927 * StatusStrip.cs: Layout fixes for PDN.
13928 * ToolStrip.cs: Set item's available to true, and placement to main when
13930 * ToolStripItem.cs: Fix an Available issue, check that Parent is really
13931 changing in setter before doing any work, add InternalVisible.
13932 * ToolStripPanel.cs: Remove unused variable to fix compiler warning.
13933 * ToolStripSplitStackLayout.cs: If we run out of things to hide, don't
13936 2007-04-02 Jackson Harper <jackson@ximian.com>
13938 * TextBox.cs: LBUTTON does not make the textbox select all of it's
13941 2007-04-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
13943 * XplatUIWin32.cs: Use the previous change in SetParent for forms only.
13944 Makes ToolStripComboBoxes show up again.
13946 2007-04-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13948 * ListView.cs: Add a hover_pending field in ListView
13949 to fire just one OnMouseHover event for each MouseEnter/MouseLeave
13950 cycle (we are resetting the MouseHover logic in XplatUI
13951 to handle HoverSelection). Fixes #80429.
13953 2007-04-02 Jackson Harper <jackson@ximian.com>
13955 * TextControl.cs: Make sure the attributes get set on the last
13957 - Still have to do the end tag if we have stepped all the ways to
13960 2007-04-02 Sebastien Pouliot <sebastien@ximian.com>
13962 * XplatUIOSX.cs, XplatUIX11.cs, XplatUIX11GTK.cs: Remove dependency
13963 on an internal libgdiplus call when the information is already
13964 available via the public API.
13966 2007-04-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
13968 * Control.cs: Call ContainerControl.ChildControlRemoved whenever a
13969 control is removed from a control collecftion.
13970 * XplatUIX11.cs: The first location for toplevel form is (22, 22).
13971 Fixes FormPropertyTest (failed on rare occasions).
13972 * XplatUIWin32.cs: Add a workaround in SetParent for strange behaviour
13973 of Win32SetParent (when changing from no parent to a parent it
13974 might add the new parent's location in screen coordinates to this
13975 window's location).
13976 * Form.cs: Rework ChangingParent once again, now the handle is
13977 recreated whenever a FormWindowManager is added or removed (that is
13978 whenever a normal form is parented or abandoned). Also change
13979 CreateParams so that all non-toplevel windows always get the
13980 specified sice (StartupPosition is never considered for
13981 non-TopLevel forms).
13982 * ContainerControl.cs: Add ChildControlRemoved, the container control
13983 needs to be notified when a control is removed from it's
13984 collection, in the case the removed control is the active control.
13986 2007-04-02 Jackson Harper <jackson@ximian.com>
13988 * RichTextBox.cs: Use the new methods for setting the font and
13989 color, these methods set the specified attribute without
13990 overriding the other attributes.
13992 2007-04-02 Jonathan Pobst <monkey@jpobst.com>
13994 * ToolStripPanel.cs: Fixes for better layouts in PDN.
13996 2007-03-31 Gert Driesen <drieseng@users.sourceforge.net>
13998 * TextBox.cs: Added internal ChangeBackColor method to special-case
13999 Color.Empty. Added check for invalid ScrollBars value.
14000 * TextBoxBase.cs: Added internal ChangeBackColor method.
14001 * RichTextBox.cs: Only set backcolor_set on 2.0 profile. Added
14002 internal ChangeBackColor method to special-case Color.Empty. Added
14003 check for invalid ScrollBars value.
14005 2007-03-30 Everaldo Canuto <everaldo@simios.org>
14007 * MenuItem.cs: On invalidate prevent form to create handle. [Fixes #81272]
14009 2007-03-30 Jonathan Pobst <monkey@jpobst.com>
14011 * ScollableControl.cs: Add HorizontalScroll and VerticalScroll properties.
14012 * ScrollProperties.cs, HScrollProperties.cs, VScrollProperties.cs: Added.
14013 [Based on submitted patch from Olivier Duff.]
14015 2007-03-30 Jackson Harper <jackson@ximian.com>
14017 * TextBox.cs: Only select all on initial focus if the user has not
14018 specified a selection area.
14020 2007-03-30 Jonathan Pobst <monkey@jpobst.com>
14022 * UserControl.cs: Override CreateParams.
14024 2007-03-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
14028 * XplatUI.cs, XplatUIDriver.cs: Updated CalculateWindowRect parameters.
14029 * CreateParams.cs: Fix IsSet, wasn't working correctly when the style to
14030 check for is a mix of several styles (such as WS_CAPTION for instance).
14031 * Control.cs: Don't paint an area bigger than the client area when painting
14032 the background colour. Add an internal GetCreateParams. Update calls to
14033 XplatUI.CalculateWindowRect due to API change.
14034 * XplatUIX11.cs: In PerformNCCalc set the initial size to the whole window's
14035 size, and handle WM_NCCALCSIZE in DefWndProc to calculate the size if it
14036 hasn't been handled by any windows. When creating and moving windows, X
14037 wants the location of the entire window, but the size of the client
14038 window, so add TranslateClientRectangleToXClientRectangle,
14039 TranslateWindowSizeToXWindowSIze and TranslatedXWindowSizeToWindowSize
14040 to cope with this, and call them before every window creation and move.
14041 Update CalculateWIndowRect to use Hwnd.GetWindowRect (one step towards
14042 removing DeriveStyles). In AddConfigureNotify don't do anything if the
14043 hwnd is a zombie (fixes the BadWindow we were getting while running the
14044 tests), always calculate the offsets when it's a parentless window, not
14045 only when reparented, and translate the window size, since we're getting
14046 the client size of the whole window, excluding entire window.
14047 * Theme.cs: Added BorderSizableSize.
14048 * XplatUIWin32.cs: Fix RECT Height and Width. Don't fake styles here
14049 anymore. Update calls to XplatUI.CalculateWindowRect due to API change.
14050 * Form.cs: Update calls to XplatUI.CalculateWindowRect due to API change.
14051 Fake the window styles here instead of in XplatUIWin32 so that all
14052 back-ends get the same window styles (and it's Form that's deciding when
14053 to use wm, not the Win32 backend anyways)
14054 * Hwnd.cs: Completely reworked GetWindowRectangle and GetClientRectangle -
14055 they are now passed a CreateParams and they only use Style and ExStyle
14056 to determine the rectangles (they should now work just like
14057 Win32AdjustWindowRectEx - though quite a few special cases are probably
14058 missing). They should also be 100% complimentary (i.e. GetWindowRectangle
14059 (GetClientRectangle (rect)) == rect), and all numbers (borders, menu
14060 sizes) are taken from the current theme. Added a GetBorders helper
14061 function that will return the borders for any given CreateParams
14062 (including captions and menus), and GetBorderSize that returns the given
14064 * XplatUIOSX.cs: Update calls to CalculateWindowRect and
14065 Hwnd.GetClientRectangle.
14067 2007-03-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
14069 * Form.cs: Don't layout mdi children on MdiParent creation, the initial
14070 layout of the mdi children is handled by CreateParams. Fixes
14073 2007-03-29 Everaldo Canuto <everaldo@simios.org>
14075 * MenuAPI.cs: Make OnMouseDown returns a boolean to identify if event is
14078 * Form.cs: When active tracker mouse down is not processed, send event
14079 back to control inside mouse position. [Fixes #81227]
14081 2007-03-29 Jonathan Pobst <monkey@jpobst.com>
14083 * ComboBox.cs: Override the ComboListBox's ActivateOnShow property and
14084 remove WS_VISIBLE from CreateParams to prevent combobox dropdowns from
14085 stealing focus from the active form on Windows. (Control will be made
14086 visible in ShowWindow.)
14088 2007-03-29 Mike Kestner <mkestner@novell.com>
14090 * ImageList.cs : add internal Changed event.
14091 * ListView.cs : hook up to StateImageList.Changed to perform
14092 invalidations when the the state icon list changes. [Fixes #81191]
14094 2007-03-29 Jonathan Pobst <monkey@jpobst.com>
14096 * ToolTip.cs: Override the ToolTipWindow's ActivateOnShow property
14097 to prevent tooltips from stealing focus from the active form on Windows.
14099 2007-03-29 Everaldo Canuto <everaldo@simios.org>
14101 * ThemeWin32Classic.cs: Small stetic fixes in notifyicon balloon.
14103 * ThemeClearlooks.cs: Implement notifyicon balloon for clearlooks theme.
14105 2007-03-29 Everaldo Canuto <everaldo@simios.org>
14107 * NotifyIcon.cs, ThemeWin32Classic.cs: Icon support added to notifyicon
14110 2007-03-29 Jackson Harper <jackson@ximian.com>
14112 * TextControl.cs: When deleting text from non multiline textboxes,
14113 we need to update the entire document, because line offsets will
14116 2007-03-29 Everaldo Canuto <everaldo@simios.org>
14118 * XplatUIX11.cs, ThemeWin32Classic.cs, Theme.cs: ShowBalloonWindow method
14119 added to theme, now we can create themes that uses diferent notify engines
14120 like notification-daemon from galago project or growl for Mac OS.
14122 2007-03-28 Everaldo Canuto <everaldo@simios.org>
14124 * NotifyIcon.cs: Prevent Balloon to show in task bar.
14126 2007-03-28 Everaldo Canuto <everaldo@simios.org>
14128 * XplatUIX11.cs: Prevent system to open more than one balloon.
14130 * NotifyIcon.cs: Prevent system to open more than one balloon and remove
14131 some compiler warning messages.
14133 2007-03-28 Everaldo Canuto <everaldo@simios.org>
14137 * XplatUIX11.cs: Implement SystrayBalloon for X11 systems.
14139 * ThemeWin32Classic.cs, Theme.cs: DrawBalloonWindow and BalloonWindowRect
14140 implemented, this methods is used by NotifyIcon.BalloonWindow class.
14142 * NotifyIcon.cs: BalloonWindow class added to support Balloon in X11
14145 2007-03-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
14147 * ListViewItem.cs: Forgot to make Invalidate internal.
14149 2007-03-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
14151 * ListView.cs: Add a InvalidateSelection method to
14152 invalidate methods which are currently selected, and call
14153 it when setting FullRowSelect and HideSelection, instead of
14156 2007-03-28 Chris Toshok <toshok@ximian.com>
14158 * XplatUIX11.cs (UnmapWindow): reindent this block.
14160 * DataGrid.cs (UpdateSelectionAfterCursorMove): we need to update
14161 the selection_start if we're moving the selection (that is, not
14162 extending it). Fixes bug #80461.
14164 2007-03-28 Jonathan Pobst <monkey@jpobst.com>
14166 * ProgressBar.cs: Make the default MarqueeAnimationSpeed = 100.
14167 * ToolStripPanel.cs: Fix RowMargin, Renderer, RenderMode, and
14168 create private ControlCollection.
14170 2007-03-28 Jonathan Pobst <monkey@jpobst.com>
14172 * Control.cs: We need to call OnVisibleChanged for our implicit
14173 children as well as our normal children. Fixes scrollbars in
14174 comboboxes not showing up.
14176 2007-03-28 Jonathan Pobst <monkey@jpobst.com>
14178 * Control.cs, Form.cs: Anywhere we call CreateHandle, we need to do
14179 the check for IsHandleCreated first. The check in CreateHandle is not
14180 good enough because CreateHandle can be overriden, and the override
14181 should not be called if the handle is already created.
14183 2007-03-28 Jonathan Pobst <monkey@jpobst.com>
14185 * ToolStrip.cs: Remove MonoTODO for tooltips.
14186 * ToolStripComboBox.cs: Fix MonoTODO for DropDownHeight and events.
14187 * ToolStripContainer.cs: Add custom ControlCollection class.
14188 * ToolStripContentPanel.cs: Fix Renderer setting to match MS behavior.
14189 * ToolStripDropDown.cs: Add some missing properties/methods.
14190 * ToolStripDropDownMenu.cs: Override OnLayout and SetDisplayedItems.
14191 * ToolStripItem.cs: Remove MonoTODO for tooltips.
14192 * ToolStripManager.cs: Add IsShortcutDefined.
14193 * ToolStripOverflow.cs: Override LayoutEngine.
14194 * ToolStripProgressBar.cs: Add MarqueeAnimationSpeed.
14195 * ToolStripSeparator.cs: Add ImageKey.
14197 2007-03-28 Jackson Harper <jackson@ximian.com>
14199 * TextControl.cs: If a char delete removes a line ending, we need
14200 to update the ending style.
14201 - Make sure the line ending calcs get called.
14203 2007-03-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
14205 * XplatUIX11.cs: CreateWindow: Remove old default form location code,
14206 it was making the new code not work. Fixed a typo in the new code
14207 as well. Fixes #79826.
14209 2007-03-27 Everaldo Canuto <everaldo@simios.org>
14212 - NIF_STATE and NIF_INFO added to NotifyIconFlags.
14213 - NOTIFYICONDATA properties sizes fixed, szTip is 128, not 64.
14214 - SystrayBalloon method implemented.
14215 [Add support for notifyicon balloon on win32, #79149]
14217 2007-03-27 Mike Kestner <mkestner@novell.com>
14219 * ThemeWin32Classic.cs : update StateImageList selection to mirror
14220 the ms behavior when only one image is added to the list.
14223 2007-03-27 Jackson Harper <jackson@ximian.com>
14225 * TextControl.cs: Improvements to non multiline line ending
14228 2007-03-27 Everaldo Canuto <everaldo@simios.org>
14230 * XplatUIX11.cs: Fix the time which tooltip is opened for NotifyIcon.
14232 2007-03-27 Everaldo Canuto <everaldo@simios.org>
14235 - Balloon message handling added.
14236 - Call XplatUI.SystrayBalloon in ShowBalloonTip.
14238 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
14239 XplatUIOSX.cs, XplatUIX11-new.cs: ShowBalloonTip method renamed
14240 to SystrayBalloon to me like other Systray method, also a
14241 handle parameter added.
14243 2007-03-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
14245 * ListView.cs: Show scrollbars even when items.Count == 0
14246 but the columns Width is bigger than the ListView.Width.
14247 Also, when columns.Count == 0 set layout_wd and layout_ht
14248 to the ClientRectangle values, so we don't show any scrollbar
14251 2007-03-27 Everaldo Canuto <everaldo@simios.org>
14253 * XplatUIStructs.cs: Balloon (NIN_BALLOON*) constants added.
14255 2007-03-27 Jackson Harper <jackson@ximian.com>
14257 * RichTextBox.cs: The RTF library decodes the text properly for us
14260 2007-03-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
14262 * ListView.cs: Display HeaderControl even when columns.Count == 0.
14263 * ThemeWin32Classic.cs: Use SystemBrushes.Control to draw the
14264 ListView header (HeaderControl), instead of Control.BackColor.
14266 2007-03-27 Jonathan Pobst <monkey@jpobst.com>
14268 * Control.cs: Call OnVisibleChanged in SetVisibleCore for non-forms.
14269 Fixes tab control issues where controls would not show up because they
14270 never received their OnVisibleChanged call.
14272 2007-03-27 Everaldo Canuto <everaldo@simios.org>
14274 * NotifyIcon.cs: Balloon events added (BalloonTipClicked, BalloonTipClosed,
14277 2007-03-27 Jonathan Pobst <monkey@jpobst.com>
14279 * Control.cs: We won't get a WM_SHOWWINDOW when we create a window that
14280 is maximized or minimized, so move CreateControl to Control.OnVisibleChanged.
14281 * Form.cs: After we set the form visible, send a fake WM_SHOWWINDOW if we
14282 are max or min. Remove WS_VISIBLE from CreateParams unless we are recreating
14283 the handle. Fix WindowState by using the internal variable until we are
14284 sure that we've been shown.
14285 * XplatUIX11.cs: Do not generate a WM_SHOWWINDOW message if new form is
14289 2007-03-27 Rolf Bjarne Kvinge <RKvinge@novell.com>
14291 * XplatUIX11.cs: Windows without WS_CAPTION can still get decorations
14292 (at least borders). Fixes #79386 on Linux (with a small difference
14293 in behaviour: when trying to resize a caption-less window metacity
14294 shows the sysmenu. Resizing is still possible though).
14295 * XplatUIWin32.cs: When setting window styles send request an extra
14296 WM_NCCALCSIZE when it's a form without title (due to no text and no
14297 caption), since Win32 seems to calculate it wrong the first time we
14298 get the message, though the second time things work as they should.
14299 * Form.cs: Reorder a few statements in ChangingParent, otherwise the
14300 newly reparented window might show up unparented. Update
14301 CreateParams to exclude WS_DLGFRAME if ControlBox is false and
14302 there's no title text. Fixes #79386.
14304 2007-03-27 Mike Kestner <mkestner@novell.com>
14306 * ListBox.cs : don't perform invalidations if the handle hasn't been
14307 created. [Fixes #80753]
14309 2007-03-27 Mike Kestner <mkestner@novell.com>
14311 * ListBox.cs : don't adjust top item when SelectedIndex is set to -1.
14314 2007-03-26 Everaldo Canuto <everaldo@simios.org>
14316 * XplatUIWin32.cs: Complete NOTIFYICONDATA structure, additional fields
14317 needed to implement Balloon.
14319 2007-03-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
14321 * ListViewItem.cs: In the constructors that take
14322 an array of strings, don't use ListViewSubItemCollection.AddRange
14323 method to add items, since we need to have a different behaviour (in
14324 the constructors we add an item for each null string, opposed to
14325 the behaviour of AddRange, which adds nothing).
14327 2007-03-26 Andreia Gaita <avidigal@novell.com>
14329 * NumericUpDown.cs: Fix broken 1.1 api for ParseEditText
14331 2007-03-26 Jackson Harper <jackson@ximian.com>
14333 * TextControl.cs: Draw and measure line endings when in non
14335 - When searching the text, count the end of the last line as a
14338 2007-03-26 Jackson Harper <jackson@ximian.com>
14340 * RichTextBox.cs: The selection_start and selection_end don't
14341 really track the correct tags for the selection. So we'll manually
14342 compute the correct tag here.
14344 2007-03-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
14346 * ProgressBar.cs, ThemeWin32Classic.cs: Implemented drawing of Marquee
14347 and Continuous styles. Fixes #79469.
14349 2007-03-26 Jonathan Pobst <monkey@jpobst.com>
14351 * ToolStrip.cs: Implement Tooltips.
14352 * ToolStripItem.cs: Create internal method for determining tooltip.
14354 2007-03-26 Jonathan Pobst <monkey@jpobst.com>
14356 * PropertyGrid.cs: Hide a EditorBrowsable attribute from 1.1 API.
14358 2007-03-26 Everaldo Canuto <everaldo@simios.org>
14360 * NotifyIcon.cs: On disposing verify if icon is visible and hide it,
14361 it prevents a problem thak keeps icon visible after application
14364 2007-03-26 Everaldo Canuto <everaldo@simios.org>
14366 * NotifyIcon.cs: Balloon properties and methods created.
14368 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
14369 XplatUIOSX.cs, XplatUIX11-new.cs: Implement ShowBalloonTip method.
14371 2007-03-25 Jonathan Pobst <monkey@jpobst.com>
14373 * ToolStripComboBox.cs: Default the ComboBox's FlatStyle to Popup.
14375 2007-03-24 Jonathan Pobst <monkey@jpobst.com>
14377 * Control.cs: Make SetBoundsCore match MS better. The BoundsSpecified
14378 parameter indicates which aspects were explicit/user-set.
14379 * ComboBox.cs, ListBox.cs: Call SetBoundsCore correctly. (no 0 parameters).
14381 2007-03-24 Jonathan Pobst <monkey@jpobst.com>
14383 * ProgressBar.cs: Throw AOORE instead of AE for property Value (2.0).
14384 * ScrollBar.cs: Throw AOORE instead of AE for properties LargeChange,
14385 SmallChange, and Value (2.0).
14386 * Timer.cs: Throw AOORE instead of AE for property Interval (2.0).
14388 2007-03-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
14390 * ListView.cs: Always set item_control.Width in LayoutDetails
14391 if View is Details. Setting it later in CalculateScrollBars
14392 in a not-so-corner scenario (the sum of columns width is
14393 not bigger than the ListView width when handle is created, and then
14394 that sum gets bigger by increasing the width of the columns)
14395 causes a very weird recursion path (which shouldn't be happening,
14396 since header_control sets it in CalculateScrollBars too). This bug
14397 appeared after Chris' fixes for handle created issues, so probably
14398 it's related to some handle-creation time.
14400 2007-03-23 Chris Toshok <toshok@ximian.com>
14402 * DataGrid.cs (GetVisibleRowCount): increase the row count in the
14403 case where there's an add row, just so we don't end up in a case
14404 where it's not displayed (this happens when the row is partially
14405 obscured). Fixes bug #79574.
14407 2007-03-23 Jackson Harper <jackson@ximian.com>
14411 * RichTextBox.cs: Preserve line endings in the lines text buffer,
14412 also added an enum that represents the line ending type.
14414 2007-03-23 Andreia Gaita <avidigal@novell.com>
14416 * NumericUpDown.cs: Fix logic so Text and Value properties are not
14417 messed with in every method call, but only from DownButton,
14418 UpButton, UpdateEditText() and ValidateText. Fixes #80346
14420 2007-03-23 Chris Toshok <toshok@ximian.com>
14422 * DataGridTextBoxColumn.cs (GetFormattedValue): don't try to
14423 format objects if the format spec is "". Fixes bug #80889.
14425 2007-03-22 Miguel de Icaza <miguel@novell.com>
14427 * ToolStripPanel.cs (Join): added stubs to build PDN3
14429 * Control.cs (AutoScrollOffset): Add.
14431 * SystemInformation.cs (MouseWheelScrollDelta): Expose this
14432 property, its only implemented for Win32, on X11 it defaults to
14433 some hardcoded value.
14435 * ToolStripItem.cs (AllowDrop): Add property
14437 2007-03-22 Mike Kestner <mkestner@novell.com>
14439 * ListView.cs : in FullRowSelect Details mode, only enable box
14440 selection if the user clicks over the "item" column outside of the
14441 text area. Mmmmm, compatibility. [Fixes #80374 subpart 7]
14443 2007-03-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
14445 * Control.cs: ChangeParent: Call Form's ChangingParent even if the
14446 handle is not created yet.
14447 * Form.cs: Select: Don't call CreateHandle if the handle is already
14448 created, avoids a stack overflow on Windows when we are recreating
14450 * ScrollableControl.cs: Set the correct z-order for the scrollbars when
14451 they are made visible, and override AfterTopMostControl to keep
14452 them on top when other controls are brought to front.
14453 CalculateCanvas: Scrollbars are only visible if auto_scroll is true
14454 or force_*scroll_visible is true (old implementation always shows
14455 scrollbars when needed, no matter what auto_scroll was set to).
14456 * InternalWindowManager.cs: UpdateWindowDecorations: Add a
14457 IsHandleCreated check.
14459 2007-03-22 Andreia Gaita <avidigal@novell.com>
14461 * DataGrid.cs: Implement Column and Row auto sizing when double-clicking on
14462 row or col separator.
14463 * DataGridTextBoxColumn.cs: Implement GetPreferredHeight and GetPreferredSize
14465 2007-03-22 Everaldo Canuto <everaldo@simios.org>
14467 * MenuAPI.cs: Remove unneeded check for grab_control in UpdateCursor.
14469 2007-03-22 Everaldo Canuto <everaldo@simios.org>
14471 * MenuAPI.cs: UpdateCursor method added, it is calling in OnMotion to update
14472 cursor for child controls. In ShowWindow and HideWindow now call SetCursor
14473 every time. Fixes #80410.
14475 2007-03-22 Chris Toshok <toshok@ximian.com>
14477 * BindingSource.cs (AddNew): partially implement.
14479 remove a couple of NotImplementedException's
14480 to get bug #81148 closed.
14482 2007-03-22 Everaldo Canuto <everaldo@simios.org>
14487 - UpdateCursor method added to update the screen cursor.
14488 - GetAvailableCursor method added to return cursor for enabled tree,
14489 it searches for cursor on control and it's parent's for enabled control.
14490 - Call UpdateCursor method on setter of Cursor property.
14491 - On setter of Enabled call UpdateCursor when it is false, we need to
14492 change cursor to normal (or to this parent cursor) because cursor
14493 setting theres no effect to disabled controls.
14494 - Some minor source changes to follow the coding style guidelines.
14496 * XplatUIX11.cs: In MotionNotify only dispatch SET_CURSOR event for enabled
14499 2007-03-22 Chris Toshok <toshok@ximian.com>
14501 * XplatUIX11.cs: ignore the BadPicture errors cairo+render
14504 2007-03-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
14506 * XplatUIX11.cs: Implement default locations for forms.
14507 * Form.cs: Completely rework startup location for forms. Fixes #79964.
14508 * Hwnd.cs: Add previous_child_startup_location (to track the current
14509 startup location for any child forms of the current form) and
14510 previous_main_startup_location (to track the startup location for
14511 the current toplevel form).
14513 2007-03-21 Jonathan Pobst <monkey@jpobst.com>
14515 * Control.cs: Don't trigger a layout if an implicit control is added
14516 that isn't visible. Also, don't notify the owner when an implicit control
14517 is added. (Owners shouldn't even know about their implicit controls.)
14519 2007-03-21 Jonathan Pobst <monkey@jpobst.com>
14521 * ScrollableControl.cs: Add implicit controls with AddRangeImplicit
14522 to save some re-layouts.
14524 2007-03-21 Everaldo Canuto <everaldo@simios.org>
14526 * MenuAPI.cs: In ProcessKeys returns false when key is not processed.
14529 2007-03-21 Jonathan Pobst <monkey@jpobst.com>
14531 * FlowLayoutSettings.cs, ToolStrip.cs, ToolStripPanel.cs,
14532 ToolStripPanelRow.cs: Lazy instantiate the LayoutEngine.
14534 2007-03-21 Mike Kestner <mkestner@novell.com>
14536 * ListView.cs : disable selection update for non-left button clicks
14537 with mods and over selected items. [Fixes #80524]
14539 2007-03-20 Jackson Harper <jackson@ximian.com>
14542 * TextBoxBase.cs: Allow different types of line endings. \r, \r\n,
14545 2007-03-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
14547 * ComboBox.cs: PreferredHeight seems to be ItemHeight + 6, but there is
14548 very probably a more complicated calculation there. Update the
14549 textbox' ForeColor and BackColor when the ComboBox' colors are
14550 changed. Change the border change in LayoutComboBox to only affect
14551 the textbox, not all the calculations there. Seems to fix most of
14554 2007-03-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
14556 * ComboBox.cs: Handle Home and End keys as well as all combinations of
14557 modifiers + navigation keys as input keys, enables advanced text
14558 selection in the combobox (like Shift+Left Arrow for instance).
14559 ComboTextBox now overrides Focused and returns whatever
14560 ComboBox.Focused returns, since it really should be focused
14561 whenever the ComboBox is. Fixes #80795. Also make the border around
14562 the text box one pixel bigger, as mentioned in #79436.
14564 2007-03-20 Jackson Harper <jackson@ximian.com>
14566 * TreeView.cs: Don't offset the images, this was causing some
14567 artifacts when expanding/collapsing with images that were the
14568 exact height of the treenode.
14570 2007-03-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
14572 * TrackBar.cs: Query the theme for the correct value when the mouse
14573 moves and the thumb is pressed.
14574 * Theme.cs: Added TrackBarValueFromMousePosition
14575 * ThemeWin32Classic.cs: Reworked TrackBar drawing. Earlier
14576 implementation was updating the trackbar value when drawing, now
14577 the drawing methods only draw. Fixes #80900. Refactored the
14578 calculations out to TrackBarValueFromMousePosition and
14579 GetTrackBarDrawingInfo, so that TrackBar can get the correct value
14580 according to the mouse position whenever it wants to. Changed the
14581 light coloured pen when drawing the thumb from ControlLight to
14582 ControlLightLight, because the ControlLight is the same colour as
14583 the background so the 3D effect is lost.
14585 2007-03-20 Everaldo Canuto <everaldo@simios.org>
14587 * Form.cs: In ShowDialog uses MainForm as transient form when no form is
14588 defined. Fixes #80784.
14590 2007-03-20 Marek Habersack <mhabersack@novell.com>
14592 * ContextMenuStrip.cs: align with the change introduced in
14595 2007-03-20 Everaldo Canuto <everaldo@simios.org>
14597 * XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs,
14598 XplatUI.cs, Form.cs, ToolTip.cs: Remove unneeded parameter owner
14601 2007-03-19 Chris Toshok <toshok@ximian.com>
14603 * Control.cs (WmPaint): don't make use of the Handle property
14604 after an event is emitted, as the user could have closed the
14605 form/destroyed the control. Store the Handle in a local variable
14606 and make use of that. Fixes bug #80768.
14608 2007-03-20 Everaldo Canuto <everaldo@simios.org>
14610 * XplatUIX11.cs: Set _NET_WM_STATE_ABOVE on SetTopmost, it fixes Topmost
14611 behavior in X11 environments.
14613 2007-03-20 Everaldo Canuto <everaldo@simios.org>
14615 * Form.cs: Call SetTopmost in CreateHandle when window is topmost, its
14616 because on setter of topmost we dont call SetTopmost when handle is not
14619 2007-03-20 Jackson Harper <jackson@ximian.com>
14621 * TextControl.cs: Need to use SelectionLength () not
14622 selection_length, since that var is reset to -1.
14623 - Draw the caret when we don't have focus.
14624 * TextBox.cs: The selectall actually doesn't occur until the first
14626 * TextBoxBase.cs: Need to update the caret position after a
14629 2007-03-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
14631 * ListView.cs: Enable scrolling when using Tile view.
14633 2007-03-20 Everaldo Canuto <everaldo@simios.org>
14637 * XplatUIDriver.cs: Abstract SetOwner method created.
14639 * XplatUIOSX.cs: Override SetOwner to prevent compilation errors method
14640 must be implemented and was masked as todo.
14642 * XplatUIWin32.cs: SetOwner implemented using SetWindowLong with
14645 * XplatUIX11.cs: SetOwner implemented using same code from SetTopmost but
14646 cheking for null owner to remove transient. The SetTopmost will be change
14649 * Form.cs: In set_Owner and CreateHandle uses new SetOwner instead of
14650 SetTopmost. Now owned forms will work properly in win32 and X11.
14652 2007-03-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
14654 * MdiWindowManager.cs: Update function name.
14655 * Form.cs: After closing a form MdiParent is always null.
14656 * MdiClient.cs: Rename CloseChildForm to ChildFormClosed to explain
14657 better what it should do: necessary book-keeping when the form is
14658 closed, it should not close the form itself.
14660 2007-03-19 Andreia Gaita <avidigal@novell.com>
14662 * ListViewItem.cs: Fix back and fore color. The subitems only
14663 use their own colors if they are set, otherwise use the listview's
14664 colors. Don't set default colors on constructor for subitem.
14667 2007-03-19 Mike Kestner <mkestner@novell.com>
14669 * ListView.cs : make box selection for Details views with
14670 FullRowSelect conform to MS behavior when clicking in the "item"
14671 column and clicking outside the defined columns.
14672 [Fixes case 5-6 of #80374]
14674 2007-03-19 Chris Toshok <toshok@ximian.com>
14676 * ScrollableControl.cs: create the controls from within the ctor,
14677 but don't actually add them until our handle is created. this
14678 fixes a NRE possibility jpobst found (if you override OnLayout in
14679 a subclass, it's called before your ctor). Also, add a
14680 IsHandleCreated guard to UpdateSizeGripVisibility as well.
14682 2007-03-19 Jackson Harper <jackson@ximian.com>
14684 * TextBox.cs: Reduce the amount of invalidation we do.
14685 * TextBoxBase.cs: Make shortcuts enabled true by default, at least
14686 some of them are true by default on MS.
14687 - Add some functions to reduce the amount of invalidates we do.
14688 * TextControl.cs: Less invalidation.
14690 2007-03-19 Chris Toshok <toshok@ximian.com>
14692 [ Fixes #81773, and *seems* to fix #81553 as well ]
14694 * XplatUIX11.cs: remove the assignment of hwnd.zombie = true from
14695 AccumulateDestroyedHandles. We need to do it *after* we send
14696 WM_DESTROY, as the user's code can access Control.Handle in
14697 OnHandleDestroyed, and this shouldn't cause a recreation. Also,
14698 move the WM_DESTROY/zombie handling to before the call to
14699 XDestroyWindow. For some reason without this ordering
14700 FormTest.RecreateHandle hangs. This ordering is semantically
14701 equivalent, however, as XDestroyWindow is async anyway.
14703 2007-03-19 Gert Driesen <drieseng@users.sourceforge.net>
14705 * RichTextBox.cs: Reset backcolor_set after setting default.
14707 2007-03-19 Chris Toshok <toshok@ximian.com>
14709 * ScrollableControl.cs: the scroll position should not effect the
14710 canvas size. commit patch from georgegiolfan@yahoo.com, which
14711 fixes some really bizarre behavior on resizing. Fixes bug #80778.
14713 2007-03-19 Chris Toshok <toshok@ximian.com>
14715 * ScrollableControl.cs: clean this up a bit. create the
14716 scrollbars in the ctor and just show/hide them as needed. Also,
14717 make hscroll_visible/vscroll_visible internal to Recalculate, and
14718 just use hscrollbar.VisibleInternal/vscrollbar.VisibleInternal
14719 everywhere else. This seems to fix the scrollbars appearing
14720 beneath the content for me (i have *no* idea why that is,
14723 2007-03-19 Jonathan Pobst <monkey@jpobst.com>
14725 * ToolStrip.cs: Don't call DoAutoSize when we change Dock. Also, remove
14726 some redundacy for stuff in Anchor and Dock that base will take care of.
14729 2007-03-19 Mike Kestner <mkestner@novell.com>
14731 * ListView.cs : make box selection for Details views without
14732 FullRowSelect dependent on the text bounds, not item bounds.
14733 * ListViewItem.cs : add an internal property to obtain the TextBounds
14734 in Details view. [Fixes case 1-4 of #80374]
14736 2007-03-19 Andreia Gaita <avidigal@novell.com>
14738 * PaintEventArgs.cs (Dispose): Only dispose of graphics object if
14739 we're < 2.0. #78448 && #80316
14741 2007-03-19 Jonathan Pobst <monkey@jpobst.com>
14743 * FontDialog.cs: Don't crash when we switch to a new font that doesn't
14744 have the same style available as the previously selected one. Also,
14745 support FixedPitchOnly property. [Fixes bugs #80918, #80947]
14747 2007-03-19 Jackson Harper <jackson@ximian.com>
14749 * TextControl.cs: Add an alignment property that all new lines
14751 - Make sure to use the align shift when calculating the line's X
14753 * TextBox.cs: Set the alignment on the document as well as on all
14754 the document lines.
14756 2007-03-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
14758 * Control.cs: ControlCollection.Add: Remove a couple of duplicated casts and
14759 throw if setting the parent of an mdichild that already has an
14760 mdiparent. Update signature for 2.0 profile. ProductName: If there's no
14761 AssemblyProductAttribute in the assembly, use the type's namespace (as
14762 MS seems to do). CreateControl: don't create the handle if the control
14763 is not visible (according to MS behaviour and spec). SetTopLevel: Only
14764 create handle if the control is not a form. Change FocusInternal to
14765 virtual so that it can be overriden by Form.
14766 * TextBox.cs: Update call to FocusInternal.
14767 * Form.cs: Always create the handle when calling Focus on a MdiChild. The
14768 form is not a toplevel form when it's a mdi child, so update is_toplevel
14769 accordingly. ShowIcon/TransparencyKey: avoid creating the handle if it
14770 hasn't been created. Show (IWin32Window): Don't allow this overload for
14771 toplevel windows. CenterToParent/CenterToScreen/Select: create the
14772 handle as MS does. SetVisibleCore: if called on a MdiChild and the
14773 parent isn't visible yet, save the visibility and restore it when the
14774 parent is made visible.
14775 * ScrollableControl.cs: Refactor out scrollbar visibility code to separate
14776 methods, since the visibility of the scrollbars can be changed from
14777 several places, not only from AutoScroll.
14780 2007-03-19 Jackson Harper <jackson@ximian.com>
14782 * RichTextBox.cs: Enable shortcuts by default.
14783 * TextBoxBase.cs: Add conditional shortcuts.
14785 2007-03-19 Everaldo Canuto <everaldo@simios.org>
14787 * MenuItem.cs: Dont call OnDrawItem when OwnerDraw is false (#81182).
14789 2007-03-19 Chris Toshok <toshok@ximian.com>
14791 [ Fixes bug #80604]
14793 * XplatUIX11.cs (WaitForHwndMessage): change this to actually
14794 swallow the message we're waiting on, instead of delivering it, as
14795 this is only used for the WM_SHOWWINDOW raised from
14796 MapWindow/UnmapWindow, and the message needs to be generated
14797 (MapWindow, UnmapWindow): generate the WM_SHOWWINDOW message
14798 before doing the Map/Unmap. Also make sure that the Hwnd is still
14799 alive after the message has been handled.
14801 *before* the window is shown.
14803 * Control.cs (CreateControl): guard a few more things inside the
14804 if (!is_created) block, as we might end up being called again -
14806 (WmShowWindow): call CreateControl if we're showing the control.
14808 2007-03-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
14810 * Control.cs: Fix 2.0 signature for Invoke. Support invoking on
14811 controls without a handle if they have any parent with a handle. In
14812 Dispose add a check whether the handle is created or not before
14813 calling BeginInvoke, this removes the need of the extra disposing
14814 parameter (which was bogus anyway since it didn't prevent the
14815 invoke from happening, it only skipped the check for an existing
14816 handle, meaning that the invoke would call on an inexistent
14819 2007-03-19 Everaldo Canuto <everaldo@simios.org>
14821 * MessageBox.cs: Remove WS_POPUP from CreateParams style, with it form
14822 appears in taskbar.
14824 2007-03-18 Everaldo Canuto <everaldo@simios.org>
14827 - Fixed a problem that dont show help button for messages with 3 buttons.
14828 - Refactory button size and position calculations, now dont use fixed
14829 values, also fixed button sizes (#80043) and form's border space.
14830 - AddButton method created, now all other AddButton methods call this one.
14831 - Some other source code cosmetic changes.
14833 2007-03-18 Jackson Harper <jackson@ximian.com>
14835 * RichTextBox.cs: Don't do this all fonts must match check if
14836 there is only one char selected.
14838 2007-03-18 Jackson Harper <jackson@ximian.com>
14840 * TreeView.cs: ScrollWindow works properly now, so we don't need
14841 to screw around with the scroll area. This fixes some artifacts
14842 when expanding and collapsing.
14844 2007-03-18 Jackson Harper <jackson@ximian.com>
14846 * TextBoxBase.cs: Allow updating the selection position when the
14847 cursor is outside the textarea, but we have a capture.
14848 * TextControl.cs: A special case for when the cursor is outside
14849 the bounds of the TB.
14851 2007-03-18 Jackson Harper <jackson@ximian.com>
14853 * TextBoxBase.cs: Remove image pasting code for now. There is no
14854 way to get an image on the clipboard right now anyways.
14856 * RichTextBox.cs: Use the new RTF Picture class for pictures.
14858 2007-03-18 Everaldo Canuto <everaldo@simios.org>
14861 - Set window properties in constructor intead of on CreateParams.
14862 - Remove topmost from Window ExStyle.
14863 - Set ShowInTaskbar to false.
14864 - Set form border to FixedDialog.
14865 - Some cosmetic changes and remove unneeded comments.
14866 - It fixes itens 2,3 and 4 of bug #80043.
14868 2007-03-18 Gert Driesen <drieseng@users.sourceforge.net>
14870 * TextBoxBase.cs: In setter for ReadOnly, only chance BackColor if
14871 none was explicitly set. Fixes part of bug #79949.
14873 2007-03-16 George Giolfan <georgegiolfan@yahoo.com>
14875 * ToolStripComboBox.cs: Add AutoComplete*.
14877 2007-03-16 George Giolfan <georgegiolfan@yahoo.com>
14879 * ToolStripComboBox.cs: Add FlatStyle.
14881 2007-03-16 Jonathan Pobst <monkey@jpobst.com>
14883 * ToolStrip.cs, ToolStripProfessionalRenderer.cs,
14884 ToolStripSplitStackLayout.cs: Implement some basic vertical toolbar support.
14886 2007-03-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
14888 * ButtonBase.cs, ToolStrip.cs, SendKeys.cs, TextRenderer.cs,
14889 CheckBox.cs, RadioButton.cs, BindingSource.cs,
14890 DataGridColumnStyle.cs: Remove warnings.
14892 2007-03-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
14894 * Menu.cs: MergeMenu: Check menu argument for null before looping over
14896 * MdiWindowManager.cs: Add IsVisiblePending to track the pending
14897 visibility of mdi child forms. FormSizeChangedHandler: update the
14898 maximized size if size has changed while maximized.
14899 * MdiClient.cs: SizeScrollbars/ArrangeWindows/ActivateChild: Avoid
14900 creating the handle.
14901 * InternalWindowManager.cs: UpdateBorderStyle/FormSizeChangedHandler:
14902 avoid creating the handle if not created.
14903 * XplatUI.cs: Update debug output.
14904 * XplatUIStructs.cs: Added ToString's for a couple of structs.
14906 2007-03-16 Jonathan Pobst <monkey@jpobst.com>
14908 * ContainerControl.cs: Give ToolStripManager the opportunity to handle
14910 * ToolStripDownItem.cs, ToolStripItem.cs, ToolStripItemCollection.cs,
14911 ToolStripItemEventType.cs, ToolStripManager.cs, ToolStripMenuItem.cs:
14912 Implement keyboard shortcuts.
14914 2007-03-15 Everaldo Canuto <everaldo@simios.org>
14916 * CommonDialog.cs: Set StartPosition to CenterScreen on form's constructor.
14917 Fixes #79560 and #80200, it also fix problem in FileDialog, SaveDialog,
14918 ColorDialog and all derived classes.
14920 2007-03-15 Everaldo Canuto <everaldo@simios.org>
14922 [ Fixes bug #79828 ]
14925 - Rename ToolBarButtonInfor to ToolBarItem.
14926 - Add all layout and calculation stuff gtom ToolBarButton to ToolBarItem.
14927 - Maintain an array of ToolBarItem, used instead of ToolBarButton
14928 collection to be able add same button more than one time on a toolbar.
14929 - Refactory all properties and methods to use ToolBarItem.
14931 * ToolBarButton.cs:
14932 - Remove all propeties and methods that is now in ToolBarItem.
14933 - Rectangle propery now gets the rectangle from first ToolBarItem to
14934 mimic win32 behavior.
14935 - Size calculation and layout methods also removed.
14937 * ThemeWin32Classic.cs: Change all ToolBar drawing methods to receive
14938 ToolBarItem instead of ToolBarButton to right drawing buttons when
14939 same button/separator was added more than one time to ToolBar.
14941 * ThemeNice.cs: Same as above.
14943 2007-03-15 Andreia Gaita <avidigal@novell.com>
14945 * XplatUIX11.cs: Fire extra MouseMove events right after
14946 MouseDown and MouseUp, emulating win32's <censored> behaviour
14947 for apps that rely on it.
14949 2007-03-15 Jackson Harper <jackson@ximian.com>
14952 * TextBoxBase.cs: On MS, a fixed single border is not in NC area,
14953 it is drawn on the controls client window and there is no NC
14955 - Set the background color to gray on 2.0 when we are readonly.
14957 2007-03-15 Chris Toshok <toshok@ximian.com>
14959 [ Fixes bug #81144 ]
14961 * XplatUIX11.cs: implement VirtualScreen independently of
14962 WorkingArea, by querying the _NET_DESKTOP_GEOMETRY root window
14965 2007-03-15 Chris Toshok <toshok@ximian.com>
14967 * Hwnd.cs: add an internal field for the cached_window_state.
14969 * XplatUIX11.cs: cache the window state, invalidating the cache
14970 (and thus re-querying the X server) only when we see an update to
14971 the _NET_WM_STATE property.
14973 2007-03-15 Chris Toshok <toshok@ximian.com>
14975 * BindingSource.cs: get a lot of the unit tests working.
14977 2007-03-15 Jonathan Pobst <monkey@jpobst.com>
14979 * Control.cs: Modify UpdateStyles to store distances when bounds >=
14980 0 instead of just bounds > 0. [Fixes bug #80912]
14982 2007-03-15 Jonathan Pobst <monkey@jpobst.com>
14984 * ToolStrip.cs, ToolStripItem.cs: Implement several new properties
14987 2007-03-15 Ivan N. Zlatev <contact@i-nz.net>
14989 * ComboBox.cs, Control.cs, XplatUIStructs.cs, XplatUIX11GTK.cs,
14990 XplatUIX11.cs, XplatUIWin32.cs, InternalWindowManager.cs,
14991 XplatUIOSX.cs, TextControl.cs: Replaces all uses of the custom
14992 WM_MOUSE_LEAVE with the system WM_MOUSELEAVE message.
14994 2007-03-15 Chris Toshok <toshok@ximian.com>
14998 * Control.cs: add Ivan's fix for 81101, with a slight modification
14999 - you can set control.Target to null.
15001 2007-03-14 Jonathan Pobst <monkey@jpobst.com>
15003 * ToolStripItem.cs: If our OwnerItem is null, we can't use
15004 HideDropDown, use Hide instead to prevent an NRE.
15007 2007-03-14 Jackson Harper <jackson@ximian.com>
15009 * TextBoxBase.cs: Mess with the creation stuff a little. We need
15010 to calculate the document before the handle is created, in some
15011 cases. (Actually just one case).
15013 2007-03-14 Jackson Harper <jackson@ximian.com>
15015 * TextBoxBase.cs: Need to display the caret after letting the base
15016 wndproc handle the focus methods, because the caret display
15017 methods check the focus state.
15018 - Try to display the caret after updating it's position with SelectWord.
15019 - Don't need to do an immediate update on this recalc, since there
15020 will be an invalidate anyways.
15022 2007-03-14 Jackson Harper <jackson@ximian.com>
15024 * TreeView.cs: Some workarounds so that we can match event order a
15027 2007-03-14 Gert Driesen <drieseng@users.sourceforge.net>
15029 * ErrorProvider.cs: Invoke default ctor from 2.0-only ctor. Fixes bug
15030 #80803. Avoid NullReferenceException when Control does not have
15031 parent. Fixed different blinkstyle issues. Only subscribe to Tick
15032 event a single time. Only draw error icon when control is created and
15033 visible. Fixes failing unit tests.
15035 2007-03-14 Andreia Gaita <avidigal@novell.com>
15037 * TabControl.cs: Add support for 2.0 Deselecting, Deselected and
15038 Selecting events. Fire Leave and Enter events when changing tabs.
15040 2007-03-14 George Giolfan <georgegiolfan@yahoo.com>
15042 * TreeView.cs: Add TreeViewNodeSorter.
15043 * TreeNodeCollection.cs: Add sorter parameter to Sort method.
15045 2007-03-14 Chris Toshok <toshok@ximian.com>
15047 * Form.cs: go ahead and remove the RecreateHandles that jpobst
15048 removed earlier and I had him add back it. It turns out metacity
15049 *does* in fact handle the MOTIF_WM_HINTS property changing, it
15050 just doesn't redraw the window titlebar until you resize the
15051 window. This also means we aren't recreating the entire window
15052 hierarchy on X when you change this property. And it looks better
15055 2007-03-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
15058 * ListView.cs: Collecting selection information
15059 is now done in SelectedIndexCollection rather than in
15060 SelectedListViewItemCollection. This is done so we can
15061 have the selection information code in one single place
15062 (virtual mode selection information entirely depends on
15063 SelectedIndexCollection).
15065 2007-03-13 Miguel de Icaza <miguel@novell.com>
15067 * ErrorProvider.cs: Add stubs for ISupportInitialize
15069 2007-03-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
15071 * ListViewItem.cs: Trigger the ItemCheck and ItemChecked events
15072 in the right order with the right values, from the Checked property,
15073 just as MS does (instead of triggering them from ListView).
15075 * ListView.cs: Make OnItemCheck and OnItemChecked internal.
15077 2007-03-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
15079 * ListView.cs: Implement ItemChecked 2.0 event. Also cast to
15080 the correct handler in OnItemCheck method (ItemCheckEventHandler
15081 instead of EventHandler). This used to throw an InvalidCastException.
15083 2007-03-13 Jackson Harper <jackson@ximian.com>
15085 * TextBoxBase.cs: Calculate the document before the handle is
15086 created, so there isn't an extra invalidate called.
15088 2007-03-13 Jonathan Pobst <monkey@jpobst.com>
15090 * Form.cs: Don't set owner in ShowDialog until we are sure
15091 that we aren't going to throw an exception. [Fixes bug #80773]
15093 2007-03-12 George Giolfan <georgegiolfan@yahoo.com>
15095 * TreeView.cs: Make it compile.
15097 2007-03-12 Jonathan Pobst <monkey@jpobst.com>
15099 * Control.cs: Another place we don't call SizeFromClientSize.
15100 * Form.cs: Another place we don't call SizeFromClientSize.
15103 2007-03-12 Jackson Harper <jackson@ximian.com>
15105 * TreeView.cs: Basically emulating some strangness here with
15106 exanding nodes and setting node positions when windows aren't
15108 - Also attempting to walk the node tree less than previously, and
15109 just use visible order calculations for determining offsets.
15110 - oops made scrolling backwards.
15111 * TreeNode.cs: We need to start nodes with a zero visible order,
15112 because the order calcs are based on the first nodes order.
15114 2007-03-12 Jonathan Pobst <monkey@jpobst.com>
15116 * Form.cs: Don't exit the program if RecreateHandle is called on
15119 2007-03-12 Chris Toshok <toshok@ximian.com>
15121 * XEventQueue.cs: remove the use of PostQuitState.
15123 * XplatUIX11.cs: remove the use of PostQuitState. If we get a
15124 WM_QUIT message in GetMessage, return false (and if we're in the
15125 nested WaitForHwndMessage, repost the WM_QUIT message).
15127 2007-03-12 Jonathan Pobst <monkey@jpobst.com>
15129 * Form.cs: Don't call RecreateHandle when we change the MinimizeBox
15130 or the MaximizeBox properties. [Part of bug #80640]
15132 2007-03-12 Everaldo Canuto <everaldo@simios.org>
15134 * LinkLabel.cs: When calculate pieces make LinkArea empty if theres
15137 2007-03-12 Jonathan Pobst <monkey@jpobst.com>
15139 * ToolStripItem.cs: Fix some tests I broke by checking Visible
15140 instead of visible.
15142 2007-03-12 Gert Driesen <drieseng@users.sourceforge.net>
15144 * FileDialog.cs: Use text of File name combobox to determine what
15145 files the user selected. Added tokenizer to parse the file names.
15148 2007-03-12 Jonathan Pobst <monkey@jpobst.com>
15150 * Control.cs: We can't call SizeFromClientSize in the constructor,
15151 but we still need to do the same work, so make an internal version.
15154 2007-03-12 Jackson Harper <jackson@ximian.com>
15158 * OpenTreeNodeEnumerator: Match MS better for IsVisible and
15161 2007-03-12 Jackson Harper <jackson@ximian.com>
15163 * TextBoxBase.cs: Now that the handles are being created a little
15164 later, we need to make sure that the document is recalculated when
15165 the handle is created.
15167 2007-03-11 Everaldo Canuto <everaldo@simios.org>
15169 * Theme.cs: GetLinkFont abstract method added.
15172 - Remove CalcTrimRectangle, no longer needed.
15173 - Factor also remove, position issues must be fixed in libgdiplus.
15174 - Move GetPieceColor to ThemeWin32Classic.cs as it is theme related.
15175 - GetPieceFont, CreateLinkFont and link_font removed, theme must be
15176 care about font used to draw links.
15177 - Set TabStop to true when control is "Selectable", control is selectable
15178 when have one or more links. Fixes #80501 (test case is also added).
15179 - Set the LinkArea values after links change, LinkArea values must be
15180 based in first link position and size, a test case was created.
15181 - Fix ControlStyles.Selectable value, now is based on LinkArea value,
15182 the attribute must be true LinkArea.Length > 0. The same was applied to
15185 * ThemeWin32Classic.cs:
15186 - LinkLabelGetPieceColor and LinkLabelGetPieceFont created and used
15188 - Use CPDrawStringDisabled to draw disabled text instead of hard code
15190 - Draw focus rectangle for every parts focused, including parts that
15191 is on another line, its because regions returns various rectangles
15192 and not only one. Needed to mimic W32 look.
15193 - Uses Graphics.Clip to delimite region painted, it mean that now
15194 complete text is passed to DrawString, with this we solve layout
15195 issues without create another text renderer.
15196 - Uses Region.Intersect to fix some flickers problems, now only needed
15197 parts will redrawed.
15198 - This changes fixes #79614 and some other unreported issues, on Linux
15199 some layout problems still remain, the problem is under
15200 MeasureCharacterRanges but it is an libgdiplus bug.
15202 2007-03-10 Gert Driesen <drieseng@users.sourceforge.net>
15204 * TextBox.cs: Set for foreground color.
15205 * TextBoxBase.cs: Remove Invalidate when setting BackColor, since
15206 this is already done in Control.
15208 2007-03-10 Jackson Harper <jackson@ximian.com>
15210 * TextBox.cs: Set the background color, but reset the
15211 backcolor_set flag which is just for the user setting the
15214 2007-03-09 Chris Toshok <toshok@ximian.com>
15216 * Control.cs: really remove the call to XplatUI.SetVisible from
15217 CreateHandle(), like I said I did when I merged the branch.
15219 * BindingSource.cs: implement some more of this stuff.
15221 2007-03-09 Jackson Harper <jackson@ximian.com>
15223 * TextBox.cs: Don't explicitly set our background colors.
15225 * TextBoxBase.cs: Draw readonly text.
15226 - Need to invalidate when backcolor or readonly are changed.
15228 2007-03-09 Jackson Harper <jackson@ximian.com>
15230 * TextBoxBase.cs: Don't set the forecolor until the handle is
15232 - Do not raise OnPaint, and removed some old debug code.
15234 2007-03-09 George Giolfan <georgegiolfan@yahoo.com>
15236 * ScrollableControl.cs: Fix mouse wheel scrolling.
15238 2007-03-09 Jonathan Pobst <monkey@jpobst.com>
15240 * Control.cs: Wire up MouseDoubleClick event.
15242 2007-03-09 Jonathan Pobst <monkey@jpobst.com>
15244 * ToolStrip.cs: Rework AutoSize to adjust height when docked to the
15246 * ToolStripItem.cs: Make Image drawing take ImageScaling into account.
15247 * ToolStripItemCollection.cs: Don't call owner.PerformLayout when a new
15248 item is added. This logic was moved to ToolStrip.OnItemAdded.
15251 2007-03-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
15253 * ListVieItem.cs: SetIndex is only valid for 2.0 profile by now.
15255 2007-03-08 Jackson Harper <jackson@ximian.com>
15257 * TreeView.cs: Show the correct image for selected node (this used
15258 to work, not sure how the code got deleted). Also implemented 2.0 feature
15261 2007-03-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
15264 * ListViewItem.cs: Cache index in items when retrieving them
15267 2007-03-08 Jonathan Pobst <monkey@jpobst.com>
15269 * ToolStripItem.cs: Don't return the explicit_size if we are using
15270 AutoSize. Fixes invalidation issue when user has explicitly set a
15271 size and has AutoSize = true.
15273 2007-03-08 Jonathan Pobst <monkey@jpobst.com>
15275 * XplatUIX11.cs: Hardcode FrameBorderSize value temporarily to fix MWF.
15277 2007-03-07 Pedro MartÃnez Juliá <pedromj@gmail.com>
15279 * DataGridView.cs: Remove event handler from DataView when a
15280 DataTable is used as DataSource.
15282 2007-03-08 Jonathan Pobst <monkey@jpobst.com>
15284 * Control.cs: Create internal setter for client_size to allow it to be
15285 set without triggering resizing code.
15286 * Form.cs: Calculate client_size in constructor, only change client_size
15287 in FormBorderStyle property if Handle has been created.
15288 [Fixes #80574, #80791]
15290 2007-03-08 George Giolfan <georgegiolfan@yahoo.com>
15292 * SystemInformation.cs: Add TerminalServerSession.
15294 2007-03-07 Jonathan Pobst <monkey@jpobst.com>
15296 * TreeViewDrawMode.cs: Make internal for 1.1 to allow for consolidated
15299 2007-03-07 Jonathan Pobst <monkey@jpobst.com>
15301 * XplatUIWin32.cs: The no_activate stuff was forcing us to create a
15302 Handle before we were supposed to. Now checks ActivateOnShow property
15304 * Control.cs: Add internal ActivateOnShow property.
15305 * ComboBox.cs, Form.cs, MenuAPI.cs, ToolStripDropDown.cs: Return false
15306 for ActivateOnShow.
15307 * Hwnd.cs Remove no longer needed no_activate field.
15309 2007-03-07 Jackson Harper <jackson@ximian.com>
15311 * TreeView.cs: Implement owner draw tree nodes. And a couple more
15313 * DrawTreeNodeEventHandler.cs: Add
15314 * DrawTreeNodeEventArgs.cs: Correct default value.
15316 2007-03-07 Chris Toshok <toshok@ximian.com>
15318 * XplatUIWin32.cs: create InternalWndProc so that we're guaranteed
15319 to be called before NativeWindow.WndProc. Put the HwndCreating
15320 magic there to hook up our Hwnd's to handles.
15322 2007-03-07 Gert Driesen <drieseng@users.sourceforge.net>
15324 * DataGridView.cs: Comment out debug code.
15326 2007-03-07 Chris Toshok <toshok@ximian.com>
15328 [merge -r72718:73765 from mwf-handle-branch, and include 2 changes
15329 to make the rest of the world happy]
15331 * Control.cs (CreateHandle): there's no need to call
15332 XplatUI.SetVisible here, it's effectively done by
15333 XplatUI.CreateWindow on X now, and always was on windows.
15335 * XplatUIX11.cs (WaitForHwndMessage): only use the PostQuitState
15336 shortcircuit out of the loop if we have a message loop running on
15339 [Changelog from merge]
15341 2007-03-05 Chris Toshok <toshok@ximian.com>
15343 * Control.cs (AccessibilityNotifyClients): turns out in 1.1 this
15344 causes handle creation.
15346 2007-02-28 Chris Toshok <toshok@ximian.com>
15348 * ApplicationContext.cs: Add a flag to make sure we only raise the
15349 ThreadExit event once (ExitThreadCore can be indirectly called
15350 from a few places.) I don't like the additional flag, but it
15351 makes the event ordering/count correct.
15353 * Application.cs (MWFThread.LoopCount): don't use an enumerator
15354 without locking the collection. An enumerator doesn't give us any
15355 protection from modification anyway. Lock the thread hash and
15356 replace the complicated enumerator loop with a foreach.
15357 (Application.CloseForms): make internal so it can be called from
15358 ApplicationContext. This should probably be moved to MWFThread.
15359 (Application.ExitThread): don't call MWFThread.Current.Exit()
15360 here. just call XplatUI.PostQuitMessage. We'll exit the thread
15361 when the runloop exits (in response to WM_QUIT.)
15362 (Application.RunLoop): add a comment (and check) for
15363 context.MainForm being null after setting context.MainForm.Visible
15364 = true. This is because you're perfectly free to dispose of a
15365 form in VisibilityChanged. Chalk this up to another case where we
15366 need to synchronously generate WM_ACTIVATE from Control.Show.
15367 Also, add handling for WM_QUIT here so we'll exit the loop.
15369 * XplatUIX11.cs: clean up MapWindow and UnmapWindow a bit. The
15370 fact that we don't wait if we're only unmapping the whole_window
15371 makes me a bit nervous, but it doesn't seem to cause any problems
15374 also, add a comment about the stupid, broken and wrong resetting
15375 of PostQuitState to false in GetMessage().
15377 In PostQuitMessage, we need to add a WM_QUIT message to the
15378 thread's queue. We use the FosterParent to get the right
15381 Lastly, in SetVisible, we need to unmap both windows, since the
15382 waiting only happens when we're unmapping the client window. So
15383 now, the *only* time we unmap just the whole_window is in the hack
15384 for resizing a control to 0,0.
15386 2007-02-21 Chris Toshok <toshok@ximian.com>
15388 * Application.cs (CloseForms): rewrite this so that we don't
15389 modify the list while we're traversing it.
15391 2007-02-20 Chris Toshok <toshok@ximian.com>
15393 * ListBox.cs (.ctor): move the Control.AddImplicits here instead
15394 of OnHandleCreated.
15395 (HorizontalScrollEvent): only call XplatUI.ScrollWindow if the
15396 handle is created. otherwise we'll create it here.
15397 (VerticalScrollEvent): same here.
15399 * Application.cs (CloseForms): call Form.Dispose, don't post
15402 * Form.cs (WndProc): we don't need to use CLOSE_INTERNAL
15403 here. Application should Dispose() of the Form's.
15405 * XplatUIX11.cs (WaitForHwndMessage): break out of the loop on
15406 WM_DESTROY as well.
15407 (MapWindow,UnmapWindow): only actually do the waiting for
15408 SHOWWINDOW if the control we're dealing with is a Form.
15409 (CreateWindow): if the control isn't a form, SendMessage
15410 WM_SHOWWINDOW here (if the WS_VISIBLE style is set).
15412 * Control.cs (SetVisibleCore): always use is_visible here, not
15413 value. If we use value, we can end up re-setting something
15414 visible if, for instance, you do Control.Hide() in a delegate
15415 attached to VisibleChanged as we do in FormTest.ShowDialogTest.
15417 2007-02-20 Chris Toshok <toshok@ximian.com>
15419 * XplatUIX11.cs (WaitForHwndMessage): we need to loop until we get
15420 the message we need. PeekMessage returning false should not be a
15421 condition under which we exit the loop.
15423 2007-02-15 Chris Toshok <toshok@ximian.com>
15425 * Control.cs (Refresh): only refresh if we've got a handle and are
15427 (CreateAccessibilityInstance): CreateControl() here.
15428 (UpdateChildrenZOrder): complicate the code loop even more by
15429 taking into account controls that haven't had their handle
15430 created, and those that aren't visible. But on the flip side,
15431 simplify the code by splitting it into two loops. one which
15432 builds up the list of child controls we're interested in, and the
15433 other that sets the z order of those children.
15435 2007-02-14 Chris Toshok <toshok@ximian.com>
15437 * Control.cs: Control.AccessibilityObject causes the control to be
15438 created, not just the handle.
15440 2007-02-14 Chris Toshok <toshok@ximian.com>
15442 * Control.cs: rework UpdateChildrenZOrder to correctly handle the
15443 problem on X where a window might have its handle created (and be
15444 visible) while the window is unmapped. calling XConfigureWindow
15445 on an unmapped window is bad, and generates X errors.
15447 2007-02-13 Chris Toshok <toshok@ximian.com>
15449 * Control.cs (CreateHandle): don't loop over our children setting
15450 their parent here. do it when in WndProc when we're shown.
15451 (UpdateChildrenZOrder): make this internal so we can call it from
15453 (WndProc): for WM_SHOWWINDOW, reparent the child control after
15454 creating its handle. Also, remove the calls to PerformLayout from
15455 here. they're done in ScrollableControl.OnVisibleChanged. Also,
15456 OnVisibleChanged only seems to be called directly here for the
15457 toplevel control. It's propagated down the window hierarchy by
15458 calls to child.OnParentVisibleChanged.
15459 (OnVisibleChanged): don't do layout here - it's done (oddly
15460 enough, according to a glance at stack traces on ms.net..) in
15463 * ScrollableControl.cs (OnVisibleChanged): make sure we update the
15464 z order of our children before calling PerformLayout.
15466 2007-02-12 Chris Toshok <toshok@ximian.com>
15468 [big change, fixes #80020]
15470 * AccessibleObject.cs: we need to make owner internal again to fix
15471 some of ControlAccessibleObject.
15473 * Control.cs: lots of changes here. add support for WM_CREATE,
15474 for which we generate OnHandleCreated. Remove the OnHandleCreated
15475 call from CreateHandle. Also add support for WM_SHOWWINDOW where
15476 we create child controls. leave the MonoTODO's for the
15477 accessibility calls, but fix the exceptions so the tests pass.
15479 Add the InvalidOperationExceptions to Invoke methods, and remove a
15480 couple of InvokeInternal methods we aren't using.
15482 Also, add a couple of CreateHandle calls in places where we know
15483 the handles are being created but our code doesn't reference
15486 Make SetVisibleCore call OnVisibleChange if the handle isn't
15487 created. If the handle is created, we rely on XplatUI.SetVisible
15488 generating the event synchronously.
15490 Lastly, make sure we don't use this.Handle inside CreateHandle,
15491 because we can call back into client (and that code can dispose of
15494 * XplatUIStructs.cs: misc/cleanup.
15496 * XplatUIX11.cs: Map/Unmap X events correspond to WM_SHOWWINDOW,
15497 although we don't populate the wParam properly.
15498 (CreateWindow): generate WM_CREATE.
15499 (MapWindow,UnmapWindow): make these calls synchronous, at great
15500 performance expense (particularly in the unmap case), to match
15503 * Form.cs (.ctor): remove the call to UpdateBounds. we don't need
15505 (set_MdiParent): don't recreate the handle unless it's been
15508 * MdiClient.cs (OnResize): don't InvalidateNC Parent.Handle unless
15511 * NativeWindow.cs: this is probably the weirdest part of the
15512 patch. We need a way to link up the window being created to the
15513 WM_CREATE message. Since we can only be creating one window at a
15514 time on a given thread, we keep track of a per-thread reference so
15515 we can dispatch it properly. We also need to keep track of the
15516 Hwnd currently being created so that the win32 backend doesn't
15519 * XplatUIWin32.cs: a similar change to the one we made in
15522 2007-03-07 Jonathan Pobst <monkey@jpobst.com>
15524 * ToolStripItem.cs: Make CalculatePreferredSize virtual.
15525 * ToolStripMenuItem.cs: Modify CalculatePreferredSize and OnPaint
15526 to draw the menu shortcut string.
15528 2007-03-07 Jackson Harper <jackson@ximian.com>
15530 * TreeNode.cs: Add the 2.0 collapse method.
15532 2007-03-07 Pedro MartÃnez Juliá <pedromj@gmail.com>
15534 * DataGridViewColumn.cs: Fix HeaderText behaviour (Bug #80746).
15536 2007-03-07 Pedro MartÃnez Juliá <pedromj@gmail.com>
15538 * DataGridView.cs: Change DataSource will clear column and row
15539 lists. Call Invalidate() to reflect DataSource change.
15541 2007-03-07 Pedro MartÃnez Juliá <pedromj@gmail.com>
15543 * DataGridView.cs: Add rows when DataSource is System.Data.DataView
15544 and a new row is added to it.
15546 2007-03-07 Pedro MartÃnez Juliá <pedromj@gmail.com>
15548 * DataGridView.cs: Add columns when DataSource is en empty list but
15549 is a System.Data.DataView (from a System.Data.DataTable).
15551 2007-03-06 Andreia Gaita <avidigal@novell.com>
15553 * Label.cs: Implement AutoEllipsis (2.0)
15555 2007-03-06 Jackson Harper <jackson@ximian.com>
15557 * TreeView.cs: Implement 2.0 TopNode setter property.
15558 - Use a local var instead of the skipped_nodes field for computing
15559 how many nodes to skip. Otherwise we won't scroll because the
15560 valuechanged handler checks if skipped_nodes is equal to the new
15562 - Implement 2.0 Sort method.
15563 - Add useless 2.0 DoubleBuffer property
15564 - Implement 2.0 LineColors property. Lets you change the color of
15565 the lines in the tree. Terribly useful for creating non cohesive
15567 - Implement 2.0 image key feature.
15569 2007-03-06 Jackson Harper <jackson@ximian.com>
15571 * TreeView.cs: We can't get the bounds of the nodes before raising
15572 the AfterSelect event, because that event could change the node's
15573 bounds (scrolling, font change, etc).
15575 2007-03-06 Rolf Bjarne Kvinge <RKvinge@novell.com>
15577 * XplatUIWin32.cs: When faking styles don't remove the WS_VISIBLE flag.
15578 * Form.cs: Don't recreate handle when creating FormWindowManager, just
15579 update window styles. In CreateParams us VisibleInternal instead of
15580 VIsible to get the actual visible flag set for this form.
15581 * FormWindowManager.cs: Activate the form whenever the mouse clicks on
15582 the nc area. Fixes #81042. Also fix HandleTitleBarDoubleClick to
15583 handle the case when the form is already maximized, in which case
15584 it should be restored. Fixes #81043.
15586 2007-03-06 Rolf Bjarne Kvinge <RKvinge@novell.com>
15588 * XplatUIX11.cs: Tool windows still get wm styles. Fixes toolwindows showing up with double decorations.
15590 2007-03-05 Jackson Harper <jackson@ximian.com>
15592 * TreeViewHitTestInfo.cs: implement.
15594 2007-03-05 Jackson Harper <jackson@ximian.com>
15596 * InternalWindowManager.cs: class status fix.
15598 2007-03-05 Rolf Bjarne Kvinge <RKvinge@novell.com>
15600 * InternalWindowManager.cs: All windows that have a parent
15601 are confined to their parent when they're being moved.
15604 2007-03-04 Gert Driesen <drieseng@users.sourceforge.net>
15606 * SystemInformation.cs: Marked KeyboardDelay and KeyboardSpeed public
15607 on 2.0 profile. Fixes bug #81018. Small code formatting fixes.
15609 2007-03-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
15611 * ThemeWin32Classic.cs: ManagedWindowSetButtonLocations: Make all
15612 buttons invisible before deciding which ones should be visible
15613 (fixes minimize/maximize buttons showing up in toolwindows). Remove
15614 an unused variable.
15615 * InternalWindowManager.cs: Remove warning.
15617 2007-03-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
15619 * ListView.cs: Add a check in ListViewItemCollection.RemoveAt
15620 to throw an InvalidOperationException is virtual mode is being used.
15622 2007-03-02 Jonathan Pobst <monkey@jpobst.com>
15624 * SplitContainer.cs, SplitterPanel.cs, StatusStrip.cs, TableLayoutPanel.cs,
15625 ToolStrip.cs, ToolStripContainer.cs, ToolStripContentPanel.cs,
15626 ToolStripControlHost.cs, ToolStripDropDownItems.cs, ToolStripItem.cs,
15627 ToolStripMenuItem.cs, ToolStripOverflowButton.cs, ToolStripPanel.cs,
15628 ToolStripPanelRow.cs, ToolStripProfessionalRenderer.cs, ToolStripSplitButton.cs,
15629 ToolStripStatusLabel.cs, ToolStripTextBox.cs: Corcompare work.
15631 2007-03-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
15633 * XplatUI.cs: Fixed returning driver.KeyboardSpeed instead of
15634 driver.KeyboardDelay from XplatUI.KeyboardDelay
15635 * XplatUIW in32.cs: Implemented KeyboardSpeed/KeyboardDelay properties
15636 (patch by Sergey Volk)
15638 2007-03-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
15640 * ToolWindowManager.cs: Added, contains logic for
15642 * CreateParams.cs: Add a few helper methods and an
15643 internal variable to know which control the CreateParams belongs
15645 * Control.cs: Call Form.ChangingParent when the
15646 parent is about to be changed.
15647 * XplatUIX11.cs: DeriveStyles (): Set
15648 caption_height for all windows that have captions and are children.
15649 Update to use ToolWindowManager instead of InternalWindowManager
15651 * XplatUIWin32.cs: Set fake window styles for all
15652 windows that have window managers.
15653 * MdiWindowManager.cs: Added MaximizedTitleButtons (buttons are
15654 now duplicated for mdi windows when they are
15655 maximized, first for the buttons the window itself has, then for
15656 the buttons that appear in the menu bar. Makes things a little
15657 easier). Updated UpdateWindowDecorations, SetWindowState and the
15658 mouse eventhandlers accordingly.
15659 * Form.cs: Add ChangingParent (), contains the
15660 logic of what should happen when the parent changes. In MdiParent
15661 don't set things that ChangingParent () is doing. When handling
15662 WM_CLOSE, we can close the form if there are any other modal forms
15663 and the current form is a descendent of the modal form.
15664 * InternalWindowManager.cs: A lot of refactoring,
15665 the title buttons are now extracted to a separate container class
15666 that takes care of all button code (clicks, tooltips, etc). Moved
15667 Iconic|Maximized|Normal Bounds properties to this class from
15668 MdiWindowManager, so that the window state logic can succeed for
15669 other than mdi wm's. Implemented general window state change logic.
15670 Moved CreateButtons to ThemeWin32Classic, since the theme might
15671 override which buttons are available when as well as the exact
15673 * FormWindowManager.cs: Added, contains logic for
15675 * ThemeWin32Classic.cs: ManagedWindowSetButtonLocations now decides
15676 which buttons go where (and if they are at all visible).
15677 Removed special handling of maximized windows, since they aren't special.
15678 In DrawManagedWindowDecorations don't try to draw the text if it is
15680 * MdiClient.cs: ArrangeIconicWindows: Don't calculate any sizes,
15681 use whatever the wm gives us.
15683 2007-03-02 Jonathan Pobst <monkey@jpobst.com>
15685 * ButtonBase.cs: Add 2.0 properties.
15686 * Button.cs: Override Draw for 2.0.
15687 * Control.cs: Add Entered and Selected properties.
15688 * FlatButtonAppearance.cs, TextFormatFlags.cs, TextImageRelation.cs,
15689 TextRenderer.cs: Make internal for 1.1 to unify drawing code.
15690 * Theme.cs: New abstract functions for drawing Standard, Flat, Popup
15692 * ThemeWin32Classic.cs: Implement layout calculations for 2.0 buttons.
15694 2007-03-01 Jonathan Pobst <monkey@jpobst.com>
15696 * XplatUIWin32.cs: Don't use 2.0 methods in 1.1 code. :/
15698 2007-03-01 Jonathan Pobst <monkey@jpobst.com>
15700 * XplatUIWin32.cs: Register a new class with Windows each time we get
15701 a new ClassStyle. [Fixes bugs #79432, #80817]
15702 * Controls.cs: Set the correct ClassStyle in CreateParams.
15703 * ToolStripDropDown.cs: Don't request an invalid ClassStyle.
15705 2007-03-01 Gert Driesen <drieseng@users.sourceforge.net>
15707 * ListView.cs: Add fireEvent argument to ReorderColumn since the
15708 ColumnReordered event must not be signaled when modifying DisplayIndex
15709 of a ColumnHeader. Added internal ReorderColumns method which takes
15710 care of drawing, and updating the internal DisplayIndex of the
15711 ColumnHeader. Added AddColumn method which is invoked from
15712 ColumnHeaderCollection when adding or inserting columns, and which
15713 ensures that reorder_columns_indices is kept in sync. Avoid redrawing
15714 after adding each ColumnHeader in ColumnHeaderCollection.AddRange.
15715 Recalculated dispay indices after removing a ColumnHeader.
15716 * ColumnHeader.cs: Save DisplayIndex separately from ListView to
15717 match MS. Allows last display index to be returned after ListView
15718 is disposed. Update actual location of ColumnHeader when DisplayIndex
15721 2007-03-01 Everaldo Canuto <everaldo@simios.org>
15723 * LinkLabel.cs: Improve CalcTrimRectangle.
15725 * ThemeWin32Classic.cs: Fix some compilation problem under VS 2003.
15727 2007-02-28 Everaldo Canuto <everaldo@simios.org>
15729 * LinkLabel.cs: Rename CalcMeasurementFactor as CalcTrimRectangle and
15730 get rectangle as a result value.
15732 2007-02-28 Everaldo Canuto <everaldo@simios.org>
15734 * LinkLabel.cs: Theres some diferences between rectangle return from
15735 MeasureCharacterRanges and the area used for DrawString to fix this
15736 CalcMeasurementFactor method was created, it calcules the diferences
15737 to be use later to adjust rectangle in draw operations. Fixes #80473.
15739 * ThemeWin32Classic.cs: Use factor calculated by CalcMeasurementFactor
15740 to adjust draw rectangle.
15742 2007-02-27 Everaldo Canuto <everaldo@simios.org>
15744 * ThemeWin32Classic.cs: In DrawLinkLabel draw focus rectangle before draw
15745 text and some other changes to reduce and optimize source code.
15747 2007-02-27 Jonathan Pobst <monkey@jpobst.com>
15749 * RadioButton.cs: Implement 2.0 event.
15750 * RelatedImageListAttribute.cs: Implement new class.
15752 2007-02-27 Everaldo Canuto <everaldo@simios.org>
15754 * MenuAPI.cs: Change keynav_state before call SelectItem. Fixes #80901.
15756 2007-02-27 Jonathan Pobst <monkey@jpobst.com>
15758 * CheckBox.cs: Implement 2.0 functionality.
15760 2007-02-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
15762 * ListView.cs: Refactor Add and AddRange methods of
15763 ListViewItemCollection, to not update the ListView
15764 everytime an item is added in AddRange. Also move the update
15765 code to a new CollectionChanged method, and call it
15766 from other methods that need it as well (this should also fix some
15767 bugs when Sorting is used).
15769 2007-02-27 Jackson Harper <jackson@ximian.com>
15771 * TextControl.cs: Try to never let the caret stay in a non-text
15773 * TextBoxBase.cs: Update the caret.
15775 2007-02-26 Jonathan Pobst <monkey@jpobst.com>
15777 * XplatUIStructs.cs: Add some convenience methods for POINT structure.
15778 * XplatUIWin32.cs: Add some convenience methods for RECT structure,
15779 delete POINT structure, duplicate of one in XplatUIStructs.
15780 * TextRenderer.cs: Use XplatUIWin32.RECT instead of UXTheme.RECT.
15782 2007-02-26 Gert Driesen <drieseng@users.sourceforge.net>
15784 * ListView.cs: Initialize LabelEditEventArgs after setting Text of
15785 edit box since otherwise the Label would immediately be set (even if
15786 the user did not modify the label). In OnKeyDown set Handled to true
15787 if Return or Escape was pressed. In ColumnHeaderCollection unlink
15788 columns that are to be removed. In ListViewItemCollection unlink items
15789 that are to be removed.
15791 2007-02-24 Jonathan Pobst <monkey@jpobst.com>
15793 * TextRenderer.cs: If we set a GDI clip region, we need to clear
15794 it when we are done. [Fixes bug #80949]
15796 2007-02-23 Jonathan Pobst <monkey@jpobst.com>
15798 * Form.cs: Wrap checking ShowWithoutActivation in a NET_2_0 block.
15800 2007-02-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
15802 * ListView.cs: I forgot to commit the changes for ListView
15803 in my previous patch.
15805 2007-02-23 Jonathan Pobst <monkey@jpobst.com>
15807 * Clipboard.cs: Partially implement an overload of SetDataObject.
15808 * Form.cs: Implement ShowWithoutActivation.
15809 * XPlatUIWin32.cs: Fix for WM_SHOWNOACTIVATE for forms.
15811 2007-02-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
15813 This is a first set of changes to make the Virtual mode works,
15814 by avoiding the retrieval of ListViewItem instances until
15817 * ListView.cs: Store item position in the ListView instead of the
15818 ListViewItem, this way we don't request the Bounds property of
15819 ListViewItem inside the ListView calculations, as well as cache the item
15820 size in item_size field. Store indexes instead of ListViewItem
15821 instances in the matrix used by icon view. Add a ItemMatrixLocation
15822 struct to hold the row and col info of the matrix info.
15824 * ListViewItem.cs: Don't store the location anymore, and only cache
15825 the rectangles for GetBounds. Use the ListView.GetItemLocation
15826 method to retrieve the actual location.
15828 2007-02-23 Jonathan Pobst <monkey@jpobst.com>
15830 * TextRenderer.cs: Add clipping support, thanks to George.
15833 2007-02-23 Gert Driesen <drieseng@users.sourceforge.net>
15835 * ListViewItem.cs: Cancel label edit when item is removed from
15837 * ListView.cs: Move setting of focus to EndEdit. Fire BeforeLabelEdit
15838 event before the edit textbox is displayed. Added CancelEdit method
15839 which is used end to editing while ignoring the value set by the
15840 user. In EndEdit, set focus to ListView to avoid losing focus to
15841 other controls. In ListViewItemCollection.Clear, cancel editing of
15842 any of the items. In Remove, cancel editing of item being removed.
15843 Avoid udplicate code by modifing RemoveAt to invoke Remove.
15845 2007-02-23 Gert Driesen <drieseng@users.sourceforge.net>
15847 * FileDialog.cs: Update FSEntry when move is successful. Fixes
15850 2007-02-23 Everaldo Canuto <everaldo@simios.org>
15852 * MainMenu.cs: Change Draw method to take care about MenuOrigin to be
15853 compatible with non X11 systems. Fixes #80901.
15855 2007-02-23 Gert Driesen <drieseng@users.sourceforge.net>
15857 * ListView.cs: Added bool argument to UpdateMultiSelection to specify
15858 whether the item should be unselected and reselect. We do no want this
15859 when we're starting to edit the label. Do not fire the
15860 SelectedIndexChanged event from ListView when its already been fired
15861 by modifying ListViewItem.Selected. Fixes bug #80943.
15863 2007-02-23 Jonathan Pobst <monkey@jpobst.com>
15865 * TextRenderer.cs: Previos commit logic was backwards.
15867 2007-02-23 Jonathan Pobst <monkey@jpobst.com>
15869 * TextRenderer.cs: Don't add padding on MeasureText if we were
15870 sent the NoPadding flag.
15872 2007-02-23 Everaldo Canuto <everaldo@simios.org>
15874 * ThemeWin32Classic.cs: Invert order of drawing operation with DrawImage
15875 after DrawButton. To prevent image overlaps button borders SetClip and
15876 ResetClip added before and after draw image. Fixes #79129.
15878 2007-02-23 Everaldo Canuto <everaldo@simios.org>
15880 * FolderBrowserDialog.cs: Use ClientSize instead of Size to specify
15881 window size, it fix problem when you run under win32 that theres
15882 Size diferent than ClientSize. Also fix controls size and positions
15883 to mimic Win32. Fixes #80837.
15885 2007-02-22 Everaldo Canuto <everaldo@simios.org>
15887 * Form.cs: Handle WM_NCHITTEST and return HTMENU when point is on
15888 menu area to fix some problems for non X11 systems. Fixes #80613.
15890 2007-02-22 Jackson Harper <jackson@ximian.com>
15892 * TreeNode.cs: When a node is expanded, set its is_expanded flag
15893 even if it doesn't have any children.
15895 2007-02-22 Jackson Harper <jackson@ximian.com>
15897 * TreeView.cs: Calculate the top node 'on the fly', this
15898 eliminates issues where you need to click on the tree before
15899 scrolling it to get the top node computed correctly.
15900 * TreeNodeCollection.cs: We don't need to mess with the top node
15903 2007-02-22 Jackson Harper <jackson@ximian.com>
15905 * DataGridViewRow.cs: Fix typo so height can actually be set.
15906 Patch by Peter Grimm.
15908 2007-02-22 Gert Driesen <drieseng@users.sourceforge.net>
15910 * FileDialog.cs: Fixed support for renaming files and directories.
15911 * ListView.cs: Do not lose focus when edit is canceled. Process
15912 Escape as regular key (to prevent closing of dialogs).
15914 2007-02-22 Gert Driesen <drieseng@users.sourceforge.net>
15916 * ListView.cs: Removed TODO for LabelEdit. Removed extra tabs and
15917 spaces. Changed spaces to tabs. Removed unnecessary init of bools.
15919 2007-02-22 Gert Driesen <drieseng@users.sourceforge.net>
15921 * FileDialog.cs: LabelEditEventArgs.Label now returns null when user
15922 did not modify label.
15923 * ListView.cs: Only set LabelEditEventArgs.Label if user actually
15924 modified the text. Reset Label when user presses Escape in edit mode.
15925 Move focus to ListView after having cancelled or finished editing the
15928 2007-02-21 Gert Driesen <drieseng@users.sourceforge.net>
15930 * ComboBox.cs: Removed unnecessary initializations. Marked items field
15931 private. Clear textbox when Text is set to null and SelectedIndex is
15933 * FileDialog.cs: Removed unnecessary initializations. Removed
15934 workarounds for ComboBox bugs that are now fixed. Modified
15935 DefaultExt, InitialDirectory and Title property to change null to
15936 zero-length string in getters. Avoid directly accessing fields.
15938 2007-02-20 Jackson Harper <jackson@ximian.com>
15940 * TextControl.cs: Remove RecalAlignments call, that was some
15941 debugging leftovers.
15942 - Don't use the line indent when we shouldn't.
15943 * RichTextBox.cs: Add support for paragraph left indents.
15945 2007-02-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
15947 * Control.cs: Fix BeginInvoke signature for 2.0 profile.
15948 Seems like the class status pages doesn't catch params differences.
15950 2007-02-19 Gert Driesen <drieseng@users.sourceforge.net>
15952 * ComboBox.cs: Removed extra tabs. Changes spaces to tabs.
15954 2007-02-19 Gert Driesen <drieseng@users.sourceforge.net>
15956 * ComboBox.cs: Setting Text should have no effect if item text of
15957 selected item exactly matches value. First lookup text using
15958 case-sensitive comparison, and fallback to case-insensitive comparison.
15959 FindString(Exact) returns -1 if search string is null. On 2.0 profile,
15960 allow startIndex to be last index. Changed ArgumentOutOfRangeException
15961 paramname to match MS. Restart from first item if string is not found
15962 after startIndex. Fixed paramname of ArgumentNullException that is
15963 thrown for null value in ObjectCollection.Contains.
15965 2007-02-19 Everaldo Canuto <everaldo@simios.org>
15967 * XplatUIStructs.cs: WM_XXX UISTATE elements uncommented.
15969 2007-02-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
15971 * ListControl.cs: In SelectedValue use value.Equals to compare for
15972 equality instead of ==, otherwise it will fail for strings.
15975 2007-02-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
15977 * ComboBox.cs: Switch the order to ShowSelection and ActivateCaret,
15978 since the caret won't show up unless ShowSelection is true.
15981 2007-02-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
15983 * Application.cs: When disabling all forms but the main form, do not
15984 disable any descendants of the main form (such as mdi children or
15985 other parented forms). Fixes #80822 on Windows.
15986 * Form.cs: If we have a parent, set the WS_CHILD style.
15987 * Control.cs: Update the window styles if the control whose parent has
15988 changed is a form (the WS_CHILD style has to be switched).
15990 2007-02-19 Everaldo Canuto <everaldo@simios.org>
15992 * XplatUIStructs.cs: MsgUIState structure added.
15994 2007-02-18 Gert Driesen <drieseng@users.sourceforge.net>
15996 * FileDialog.cs: Removed need for separate fileName field. On 2.0
15997 profile, do not check filename(s) for illegal character if filename(s)
15998 were set non-interactively but always check on 1.0 profile. Fixed NRE
15999 in DefaultExt and only strip off first leading dot. Improve exception
16000 message when invalid Filter is set. Do not ignore InitialDirectory if
16001 it does no exist. Store specified Title, and if empty use default
16002 title (depending on type of dialog). Added an internal DialogTitle
16003 property for retrieving dialog title. Fixed logic of displayed dir to
16004 more closely match MS. Avoid setting ComboBox.Text to a zero-length
16005 string as its buggy.
16006 * OpenFileDialog.cs: In OpenFile, throw ArgumentNullException if
16007 FileName is a zero-length string (it can never be null). Override
16008 DialogTitle property to set default title of dialog box.
16009 * SaveFileDialog.cs: Override DialogTitle property to set default
16010 title of dialog box.
16012 2007-02-18 Gert Driesen <drieseng@users.sourceforge.net>
16014 * FileDialog.cs: Modify default text of filename and filetype labels
16015 to match that of MS. Reset do_not_call_OnSelectedIndexChanged...
16016 after we've updated the SelectedIndex. Fixes part of bug #80887.
16017 * SaveFileDialog.cs: Set text of filetype label.
16019 2007-02-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
16021 * LabelEditEventArgs.cs: New internal SetLabel method, to set the
16022 label field. Needed by latest Jackson's fixes for ListView.
16024 2007-02-16 Andreia Gaita <avidigal@novell.com>
16026 * PrintPreviewControl/PrintPreviewDialog: Properly dispose of
16027 print preview images.
16029 2007-02-16 Jackson Harper <jackson@ximian.com>
16031 * ListView.cs: Make AfterLabelEdit work correctly.
16032 * FileDialog.cs: After changing the name of the folder, we have to
16033 make sure that it is created, or that we pop up an error because
16036 2007-02-16 Jackson Harper <jackson@ximian.com>
16038 * X11Dnd.cs: Implement aliases on mime handlers, so things like
16039 System.String are mapped to text.
16040 - Handle dataobjects, getting all the possible formats out of them
16041 - We dont need the drag event args before we give feedback. This
16042 allows feedback cursors to be immediate before selections have
16045 2007-02-16 Jackson Harper <jackson@ximian.com>
16047 * TextBoxBase.cs: Modified the method for inserting images to
16048 taking a line and position instead of tag and position.
16049 * RichTextBox.cs: Handle PngBlip data by inserting the png image
16051 * TextControl.cs: Allow images to be inserted as the first tag of
16053 - Fix some off by one issues when we assume the first tag is a
16054 text tag, not an image tag.
16056 2007-02-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
16058 * ListView.cs: Set focus to ListView when ItemControl gets a
16059 WM_RBUTTONDOWN message, to mimic .Net behaviour.
16060 Fixes part of #80467.
16062 2007-02-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
16064 * DateTimePicker.cs: Call RecreateHandle if the Format changes and
16065 validate Text input (if null or empty string reset Value to default
16066 value). Fixes #80830.
16068 2007-02-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
16070 * ListView.cs: Set owner as null for columns and items when
16071 Dispose is invoked. Fixes #80607.
16073 2007-02-14 Jonathan Pobst <monkey@jpobst.com>
16075 * ToolStrip.cs: Allow LayoutStyle.Flow, make sure to call OnOpening when
16076 showing DropDowns, don't show a Grip when doing Flow layout.
16077 [This fixes the toolbox in PDN 2.72.]
16078 * ToolStripItem.cs: Add Anchor property and some internal properties to
16079 reduces needed changes to FlowLayout.
16080 * ToolStripOverflow.cs: Remove unused variable.
16081 * ToolStripSplitStackLayout.cs: If a ToolStripItem isn't visible, don't
16082 use it in the layout calculations.
16084 2007-02-13 Everaldo Canuto <everaldo@simios.org>
16086 * ToolTip.cs: Add HotkeyPrefix.Hide to MeasureString format, it fix an issue
16087 reported in #79640.
16089 * ThemeWin32Classic.cs: Uses format for MeasureString in ToolTipSize to fiz
16092 2007-02-13 Everaldo Canuto <everaldo@simios.org>
16094 * ToolBar.cs, ToolBarButton.cs: Revert and remove HotkeyPrefix from
16095 MeasureString format, it can make button very large in some cases, it is
16096 strange but is what win32 do.
16098 2007-02-13 Everaldo Canuto <everaldo@simios.org>
16100 * ToolBar.cs, ToolBarButton.cs: Uses format in MeasureString to fix string
16103 * ThemeWin32Classic.cs: Set HotkeyPrefix in toolbar text format to fix text
16104 rendering, the value is based on MenuAccessKeysUnderlined.
16106 2007-02-13 Everaldo Canuto <everaldo@simios.org>
16108 * Theme.cs: Change MenuAccessKeysUnderlined to "true" that is value used
16111 * ThemeWin32Classic.cs: Override MenuAccessKeysUnderlined as false.
16113 * ThemeNice.cs, ThemeGtk.cs, ThemeClearlooks.cs: Remove always_draw_hotkeys
16114 and use MenuAccessKeysUnderlined instead.
16116 2007-02-13 Andreia Gaita <avidigal@novell.com>
16118 * ContainerControl.cs: Focus fix for nunit treeview selection bug.
16119 A selected control would not get a Focus call if:
16120 - the default active control of the container is the same as
16121 the one that was selected
16122 - we are switching from one container to another
16123 Under these conditions, the container being selected already has
16124 an active_control, which is the same as the one being activated,
16125 so set_ActiveControl would always return and not send the Focus
16126 call. Fix to check if the currently active control of the container
16127 is actually focused.
16129 2007-02-13 Jonathan Pobst <monkey@jpobst.com>
16131 * StatusStrip.cs: Implement the spring layout.
16132 * ToolStripControlHost.cs: Make sure the hosted control's visibility
16133 always matches the host.
16134 * ToolStripItem.cs: Write a more accurate layout for TextBeforeImage
16135 and TextAfterImage.
16137 2007-02-13 Andreia Gaita <avidigal@novell.com>
16139 * Control.cs: Code reorganization only.
16140 - Reorganize the WndProc cases so that each case has it's own handling method,
16141 to help with the no-line-numbering stack traces.
16142 - Formatting changes (it's vstudio's fault, really :p)
16144 2007-02-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
16146 * MonthCalendar.cs: Switch to using Thread.CurrentCulture instead of
16147 Thread.CurrentUICulture to match DateTimePicker's (and MS)
16150 2007-02-12 Jackson Harper <jackson@ximian.com>
16153 * TextBox.cs: By default we have a non multiline document
16154 - use the multiline property instead of the internal variable
16155 * TextBoxBase.cs: Treat multiline and non multiline the same in
16157 - Use the documents multiline flag instead of tracking it ourself
16158 * TextControl.cs: Attempt at getting multiline to match MS
16159 behavior. Lines now track an offset, which is either their X or Y
16160 offset depending on whether or not we are in multiline mode.
16161 - Update all the methods to understand that lines have an X value.
16162 - Fix crash in Undo::Duplicate when empty lines are deleted.
16164 2007-02-12 Everaldo Canuto <everaldo@simios.org>
16166 * Label.cs: CalcPreferredHeight and CalcPreferredWidth methods removed and
16167 code moved to properties PreferredHeight and PreferredWidth. It solve the
16168 all problems when preferred sizes must be recalculated. Fixes #80801.
16170 2007-02-12 Everaldo Canuto <everaldo@simios.org>
16172 * Label.cs: Fix CalcPreferredHeight for 2.0 that must return only
16173 font height when compatible_text_rendering is false. Partially fix #80801.
16175 2007-02-09 Gert Driesen <drieseng@users.sourceforge.net>
16177 * Form.cs: Fixed typo in exception message. Fixes bug #80779.
16179 2007-02-09 Gert Driesen <drieseng@users.sourceforge.net>
16181 * Form.cs: Improved exception messages in ShowDialog.
16183 2007-02-09 Gert Driesen <drieseng@users.sourceforge.net>
16185 * PrintDialog.cs: On 1.0 profile, throw ArgumentException in RunDialog if
16186 PrinterSettins has not been set. On 2.0 profile, initialize PrinterSettings
16187 if not set. Fixes bug #80764. Avoid accessing current_settings field
16190 2007-02-08 Everaldo Canuto <everaldo@simios.org>
16192 * Theme.cs: An new property MenuAccessKeysUnderlined added with default value
16195 * SystemInformation.cs: An new property MenuAccessKeysUnderlined added, it is
16196 public in 2.0 and for easy maintenance and dont break compatibility it is
16199 2007-02-08 Jonathan Pobst <monkey@jpobst.com>
16201 * ToolStripItem.cs: Implement using images from ImageList.
16203 2007-02-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
16205 * DateTimePicker.cs: Change default date-formatting culture from
16206 CurrentThread.CurrentUICulture to CurrentThread.CurrentCulture,
16207 seems to be the way MS does it.
16209 2007-02-08 Andreia Gaita <avidigal@novell.com>
16211 * PrintPreviewControl.cs: rewrite toolbar code to fix #80725. Correct 6-up image
16212 (the 6 was cut off on the right side)
16214 2007-02-08 Jonathan Pobst <monkey@jpobst.com>
16216 * Form.cs: Tell MenuStrips to close when the form is clicked.
16217 * MenuStrip.cs, ToolStrip.cs, ToolStripControlHost.cs,
16218 ToolStripDropDown.cs, ToolStripDropDownItem.cs, ToolStripItem.cs,
16219 ToolStripItemCollection.cs, ToolStripMenuItem.cs, ToolStripProfessionalRenderer.cs,
16220 ToolStripSplitButton.cs, ToolStripSplitStackLayout.cs: Add
16221 support for Overflow, where items that do not fit are automatically
16222 reparented to a drop down menu.
16223 * ToolStripOverflow.cs, ToolStripOverflowButton.cs: Added.
16224 Also: fixes bug #80747.
16226 2007-02-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
16228 * ComboBox.cs: Remove warning (unused code).
16229 * ScrollableControl.cs: Remove warning for 1.1 profile.
16231 2007-02-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
16233 * Form.cs: Remove a warning.
16235 2007-02-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
16237 * DateTimePicker.cs: Fixed a NRE if CustomFormat was null. Handles the
16238 'g' specifier, not documented anywhere, but seems to always show up
16239 as a single space (might have something to do with the DateTime 'g'
16240 specifier, which is the era format, but since DateTimePicker can't
16241 go earlier than 1753 it wouldn't matter) . Fixed quote handling,
16242 won't crash if the format has an unmatched quote. Now shows
16243 single-character formats correctly. Fixes #80744.
16245 2007-02-08 Jonathan Pobst <monkey@jpobst.com>
16247 * StatusStrip.cs: Stretch property needs to call base.Stretch,
16248 not this.Stretch to fix stack overflow. [Fixes bug #80760]
16250 2007-02-07 Chris Toshok <toshok@ximian.com>
16252 * ThemeWin32Classic.cs (DrawButtonBase): don't clear to the
16253 background color. it overwrites the background image we've
16254 already painted. Fixes #80599.
16256 2007-02-07 Chris Toshok <toshok@ximian.com>
16258 * DataGrid.cs: return immediately from Edit() when there are no
16259 columns. Fixes #80662.
16261 2007-02-07 Chris Toshok <toshok@ximian.com>
16263 * MessageBox.cs: fix #80625. don't always show the Help button in
16264 2.0. use the displayHelpButton parameter to determine if we
16265 should show it. Also, make the internal show_help field private.
16267 2007-02-07 Chris Toshok <toshok@ximian.com>
16269 * Control.cs (SetVisibleCore): check in the proposed patch for
16270 80604, and set is_visible before calling CreateControl.
16272 2007-02-07 Jonathan Pobst <monkey@jpobst.com>
16274 * ListView.cs: UseCompatibleStateImageBehavior setter changed from NIEX to
16275 MonoInternalNote. This is added automagically by VS2005, so let's not crash
16278 2007-02-06 Everaldo Canuto <everaldo@simios.org>
16280 * MenuAPI.cs: hotkey_active internal field added, it is required because
16281 we need to know when hotkeys must be draw, before this change a keystate
16282 Navigating was used but we can have menu in navigating state without
16283 hotkeys. Fixes #80694.
16285 * ThemeWin32Classic.cs: Only draw hot keys when hotkey_active is true.
16287 2007-02-06 Rolf Bjarne Kvinge <RKvinge@novell.com>
16289 * Control.cs: Handle WM_CAPTURECHANGED in 1.1 code as well, and change
16290 corresponding events and methods to be internal for 1.1 profile and
16291 public for 2.0 profile (required by SizeGrip).
16292 * Form.cs: Use SizeGrip as a virtual SizeGrip (and don't add it to the
16293 implicit control list). Don't set the size nor the location of the
16294 SizeGrip anymore as it's not needed.
16295 * SizeGrip.cs: Rewrote large parts, it now supports a virtual mode to
16296 draw directly on the captured control (fixes #80656). Removed
16297 ShowGrip (it wasn't used anywhere), redraw (always true), added
16298 GetDefaultSize and GetDefaultRectangle to calculate defaults.
16299 * ScrollableControl.cs: Make UpdateSIzeGripVisible internal so it can
16300 be called from SizeGrip.
16302 2007-02-06 Rolf Bjarne Kvinge <RKvinge@novell.com>
16304 * Timer.cs: Throw ArgumentException if Interval <= 0.
16306 2007-02-05 Jackson Harper <jackson@ximian.com>
16308 * TreeView.cs: We need to check scrollbar visibility when window
16309 visibility is updated, because non visible trees don't ever add
16311 * Cursor.cs: We want the override cursor to be reset to NULL when
16312 we set current cursor to the default cursor.
16314 2007-02-05 Jackson Harper <jackson@ximian.com>
16316 * TextControl.cs: Don't have crlfs when we are non multiline.
16317 - Consolidate the line position.
16319 2007-02-05 Jackson Harper <jackson@ximian.com>
16321 * X11Keyboard.cs: BACK+CTRL gets a special char code.
16323 2007-02-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
16325 * XplatUIX11.cs: Implemented WM_CAPTURECHANGED support, we're now
16326 handling LeaveNotify->NotifyUngrab in order to send
16327 WM_CAPTURECHANGED. However sometimes the NotifyUngrab arrives late
16328 after calling XUngrabPointer, so we call WindowUngrabbed directly
16329 from UngrabWindow in order to send WM_CAPTURECHANGED immediately.
16330 * Control.cs: Handle WM_CAPTURECHANGED in order to raise
16331 MouseCaptureChanged correctly. Also create handles if changing
16332 Capture (matches MS behaviour).
16334 2007-02-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
16336 * SizeGrip.cs: Make the last change 2.0 only.
16338 2007-02-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
16340 * SizeGrip.cs: If resizing and the capture is lost, revert any size
16341 changes to initial size (fixes #80597).
16343 2007-02-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
16345 * SizeGrip.cs: Use the normal icon for SizeGrip if it is disabled.
16347 2007-02-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
16349 * SizeGrip.cs: Only draw sizegrip if enabled (but always draw
16350 background) and only allow dragging if enabled. This way the
16351 sizegrip can be used to fill the open square that otherwise would
16352 have been shown in the bottom right corner of ScrollableControl
16353 when ScrollableControl is not suppose to support sizing.
16354 * ScrollableControl.cs: Create UpdateSizeGripVisible to decide when the
16355 sizegrip is shown and enabled, and hook up with necessary events.
16357 2007-02-01 Chris Toshok <toshok@ximian.com>
16359 * DataGridTextBoxColumn.cs: clean up the
16360 GetFormattedString/GetColumnValueAtRow combination of functions.
16361 Also fix UpdateUI, and the initial state of
16362 IsInEditOrNavigateMode.
16364 * DataGridTextBox.cs: don't chain up to base.OnMouseWheel - we
16365 aren't supposed to scroll the textbox here, we're supposed to
16366 scroll the datagrid.
16368 2007-02-01 Chris Toshok <toshok@ximian.com>
16370 * ComboBox.cs: use vscrollbar_ctrl.Dock instead of explicitly
16371 setting the position.
16373 2007-02-01 Chris Toshok <toshok@ximian.com>
16375 * DataGrid.cs (OnLeave): we can now do the CancelCurrentEdit thing
16376 here, since the most recent focus fixes keep us from generating
16377 the Leave event when our textbox gets focus.
16378 (Edit): we should be passing null for the column style's
16379 instantText parameter.
16381 2007-02-01 Jonathan Pobst <monkey@jpobst.com>
16383 * ToolStripDropDownItem.cs: Make sure DropDownOpening event is
16384 raised. Fixes menu text/icons not showing up in PDN.
16386 2007-02-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
16388 * Control.cs: Remove code in constructor that makes every
16389 control with WS_CHILD set have initial location -1, -1.
16391 2007-01-31 Jackson Harper <jackson@ximian.com>
16393 * X11Dnd.cs: Take the keyboard on init to reduce coupling with
16395 * XplatUIX11.cs: Give teh keyboard to teh dnd.
16397 2007-01-31 Jackson Harper <jackson@ximian.com>
16399 * X11Dnd.cs: Use IDataObject instead of the DataObject class.
16400 - Remove some debug code.
16402 2007-01-31 Jackson Harper <jackson@ximian.com>
16404 * XplatUIX11.cs: If you set the override cursor during a grab, it
16405 should actually override the grab cursor. This comes into play
16406 when you are setting custom cursors in a DND feedback method.
16408 2007-01-31 Jackson Harper <jackson@ximian.com>
16410 * X11Dnd.cs: Add support for handling the QueryContinue and
16411 GiveFeedback events.
16412 - Cancel drag and drop actions when the escape key is clicked.
16413 * XplatUIX11.cs: Let the dnd subsystem get key events, so that it
16414 can handle the ESCAPE key.
16415 - Allow dnd to swallow BUTTONUP messages if it needs to. This is
16416 done when dnd events are continued after the button is released.
16417 - Add a new helper method so that dnd can translate key events.
16419 2007-01-31 Alexander Olk <alex.olk@googlemail.com>
16421 * FileDialog.cs: Rewrite of Jacksons OnClickCancelButton patch to
16422 make it more obvious what is happening.
16424 2007-01-30 Jackson Harper <jackson@ximian.com>
16426 * XplatUIX11.cs: Don't break when handling button release in drag
16427 and drop operations. We need that BUTTONUP message to get through
16428 so capture is released.
16429 * X11Dnd.cs: We don't need to manually grab the pointer anymore,
16430 this is handled automatically when the mouse is down.
16432 2007-01-30 Jackson Harper <jackson@ximian.com>
16434 * FileDialog.cs: OnClickCancelButton gets called whenever the dialog
16435 is closed, so we need to make sure that we aren't changing the
16436 dialog result when the OK (Open or Save) button has been clicked
16437 and we are closing the window ourselves. Note we don't need to
16438 worry about the cache being written in this case, because it was
16439 already done in the previous FilOk call.
16441 2007-01-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
16443 * DateTimePicker.cs: Remove a warning.
16444 * ComboBox.cs: Remove a couple of warnings.
16446 2007-01-29 Chris Toshok <toshok@ximian.com>
16448 * XplatUIX11.cs: don't crash, and remove the icon if the user has
16449 set one, if SetIcon is passed a null icon.
16451 2007-01-29 Andreia Gaita <avidigal@novell.com>
16453 * TextBox.cs: Redraw when the password characters changes
16454 * TextControl.cs: Check if textbox has a password char and draw
16455 a line of password chars instead of the text in the line. LineTag gets
16456 an extra Draw() method which allows document.Draw to override the text
16457 that will be drawn. Removes 1024 char limitation on length of passworded
16460 2007-01-29 Jackson Harper <jackson@ximian.com>
16462 * TextBoxBase.cs: Deleting sections of text is undoable. Deleting
16463 single chars is not.
16465 2007-01-28 Jonathan Pobst <monkey@jpobst.com>
16467 * TextRenderer.cs: Fix cutting off the bottom of letters like "j" by
16468 one pixel. Fix a StackOverflowException caused by an overload wrongly
16471 2007-01-26 Everaldo Canuto <everaldo@simios.org>
16473 * MenuAPI.cs: Fixed kerboard grab problem when "enter"key is pressed,
16474 also remove ProcessArrowKey and put the code inside ProcessKeys.
16476 2007-01-26 Jonathan Pobst <monkey@jpobst.com>
16478 * PaddingConverter.cs: Added.
16480 2007-01-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
16482 * ThemeWin32Classic.cs: Only draw the text of a StatusBar if
16483 ShowPanels is false (fixes #80600). Only draw up to 127 characters
16484 of text (fixes #80601). For panels clip the text to draw to the
16485 panel (fixes #80603).
16487 2007-01-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
16489 * ComboBox.cs: Fixed implementation of ResetText.
16491 2007-01-25 Jackson Harper <jackson@ximian.com>
16493 * TextControl.cs: For the last char of a line we need to use the
16494 line size, not that chars width, since it won't actually be
16495 computed since the right side of a char is based on the start of
16496 the left side of the next char, and the next char does not exist.
16498 2007-01-25 Chris Toshok <toshok@ximian.com>
16500 * Splitter.cs: fix the new unit tests, and reindent some switch
16503 2007-01-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
16505 * ComboBox.cs: Implemented 2.0 methods and events.
16506 * TextBoxBase.cs: Added OnTextUpdate, so that
16507 ComboBox.ComboTextBox can inform ComboBox of it.
16509 2007-01-25 Jackson Harper <jackson@ximian.com>
16511 * TextControl.cs: Respect ShowSelection when deciding whether or
16512 not to display the caret, this allows comboboxes to have carets
16513 when the combotextbox does not have focus.
16515 2007-01-25 Jackson Harper <jackson@ximian.com>
16517 * TextControl.cs: Add a Suspend/Resume for updating, basically the
16518 same as the Suspend/Resume for recalc, except this will do actual
16520 - New Undo manager, works much like the MS version.
16522 * TextBoxBase.cs: The Cut operation is undoable.
16524 2007-01-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
16526 * TextBoxBase.cs: Don't antialias text. Makes it look way better
16527 on Windows (no difference on Linux).
16529 2007-01-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
16531 * XplatUIWin32.cs: Set SWP_NOACTIVATE in RequestNCRecalc as well,
16532 we don't want to activate any windows. Fixes #79433.
16534 2007-01-25 Jonathan Pobst <monkey@jpobst.com>
16536 - ButtonBase.cs: Fix capitalization of parameter: disposing.
16539 2007-01-25 Alexander Olk <alex.olk@googlemail.com>
16542 - Move to using System.ComponentModel.EventHandlerList
16543 - Replace Refresh with Invalidate
16544 - Clear the mime filecache on closing
16545 - Some other memory reducing work. After beeing closed FD now uses
16546 only about 300 KB for the fdo mime stuff plus the memory of the
16548 * Mime.cs: Changed coding style and removed unnecessary commented
16549 code. Some more memory memory reducing work.
16551 2007-01-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
16553 * ComboBox.cs: Implemented FlatStyle and DropDownHeight, and added
16554 a few other missing 2.0 properties.
16555 * Theme.cs: Added DrawFlatStyleComboBox.
16556 * ThemeWin32Classic.cs: Implemented DrawFlatStyleComboBox.
16558 2007-01-24 Chris Toshok <toshok@ximian.com>
16560 * XplatUIX11.cs: fix the wake_waiting logic - we always clear the
16561 wake_waiting flag, not just when there's data to be read. if we
16562 don't, then future wakeup's won't reach us and we'll be doomed to
16563 wait for the entire 1 second timeout forever (unless there are X
16566 2007-01-24 Jonathan Pobst <monkey@jpobst.com>
16568 * ComboBox.cs: FindStringExactMaxException doesn't throw AOORE on 2.0
16569 until you pass Items.Count, not Items.Count - 1 like 1.1.
16571 2007-01-24 Gert Driesen <drieseng@users.sourceforge.net>
16573 * ColumnHeader.cs: Fixed ParamName in ArgumentOutOfRangeException.
16575 2007-01-24 Jonathan Pobst <monkey@jpobst.com>
16577 * ToolStripContainer.cs: The recent Dock fix exposed that I was
16578 adding the panels in the wrong order.
16580 2007-01-24 Jackson Harper <jackson@ximian.com>
16582 * TextBoxBase.cs: When we move the caret we also need to move the
16583 selection, this fixes some random crashing after doing select
16584 text, unselect, delete a char, paste.
16586 2007-01-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
16588 * Form.cs: Update SizeGrip's location even if it's not visible (fixes #80592).
16590 2007-01-23 Everaldo Canuto <everaldo@simios.org>
16592 * Control.cs: In OnParentBackgroundImageChanged remove conditions to call
16593 OnBackgroundImageChanged, it mimics win32 behavior. Fixes #80553.
16594 * ToolBar.cs: Force redraw in BackgroundImageChanged.
16596 2007-01-23 Everaldo Canuto <everaldo@simios.org>
16599 - Implement support for vertical toolbars. Fixes #80539;
16600 - Call LayoutToolBar when resize, it fix some other problems in layout.
16601 - Rename requested_height to requested_size, as we can have width on it
16602 when toolbar is vertical.
16603 - Create a private property "Vertical" that uses Dock to verify when
16604 toolbar is vertical or not.
16605 - Set ControlStyles when change Dock property.
16606 - Refactory in LayoutToolBar to have better variables names and to support
16608 - Fixes default value for ButtonSize when button count is equal zero, size
16609 must be (39, 36) test case writed.
16611 2007-01-23 Chris Toshok <toshok@ximian.com>
16613 * Control.cs: fix the checks so that they work correctly for mdi
16616 2007-01-23 Chris Toshok <toshok@ximian.com>
16618 * Control.cs: ControlCollection seems to have super-secret
16619 abstraction breaking knowledge of Mdi containers. allow MdiClient
16620 to add toplevel controls.
16622 2007-01-23 Chris Toshok <toshok@ximian.com>
16624 * Control.cs: throw an ArgumentException if a toplevel control is
16625 added to our control collection from ControlCollection.Add, as
16626 well as from ControlCollection.IList.Add. This fixes the
16627 ControlSetTopLevelTest.TestTopLevelAdd unit test.
16629 Also, in ControlCollection.IList.Add, don't through an
16630 ArgumentNullException, throw an ArgumentException, when value ==
16631 null. This matches MS.
16633 2007-01-23 Chris Toshok <toshok@ximian.com>
16635 * BindingSource.cs: initial, incomplete, implementation of
16638 2007-01-23 Jackson Harper <jackson@ximian.com>
16641 * TextBoxBase.cs: Checking in some pieces of the undo stuff so
16642 that I can fix a broken unit test (TextBoxTest::ClearUndo)
16644 2007-01-23 Everaldo Canuto <everaldo@simios.org>
16646 * ToolBar.cs: Add status fields to ToolBarButtonInfo.
16648 2007-01-23 Andreia Gaita <avidigal@novell.com>
16650 * TreeNode.cs: Add new 2.0 ImageKey and SelectedImageKey properties.
16651 * TreeNodeCollection.cs: New Add() methods, ContainsKey and
16652 IndexOfKey() for 2.0
16654 2007-01-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
16656 * XplatWin32.cs: In RequestNCRecalc call SetWindowPos with SWP_NOZORDER
16657 to prevent it from changing z-order.
16658 * MdiWindowManager.cs: Refactor part of SetWindowState to MdiClient, only
16659 leave UI updates in MdiWindowManager.
16660 * InternalWindowManager.cs: Check for 0 sized nc areas and make them
16661 1 sized (NC handling goes weird on Linux otherwise).
16662 * MdiClient.cs: Add missing ExStyle (WS_EX_CLIENTEDGE), so it's no longer
16663 necessary to handle WM_NCCALCSIZE anymore. This also made it possible to
16664 remove a few NCRequestRecalcs. Changed calculations in IconicBounds
16665 to use ClientSize of MdiClient instead of entire size. Refactored ActivateChild
16666 and SetWindowState(s) to allow for changing the size of an activated child
16667 before activating it (reduces a lot of flicker).
16669 2007-01-22 Jonathan Pobst <monkey@jpobst.com>
16671 * Form.cs: Changing FormBorderStyle has different semantics based
16672 on whether the Form is visible or not. If not visible, don't change
16673 the Size. But InvalidateNC needs to be called to force the window
16674 to pick up the changes and redraw itself. [Fixes bug #80574]
16676 2007-01-22 Jonathan Pobst <monkey@jpobst.com>
16679 * ContainerControl.cs: ProcessCmdKey.
16680 * ErrorProvider.cs: new constructor.
16681 * Form.cs: fix AutoValidateEvent compiler warning.
16682 * Label.cs: fix OnAutoSizeChanged compiler warning.
16683 * MenuStrip.cs: fix CanOverflow compiler warning.
16684 * TabControl.cs: SelectTab, OnSelected methods, Selected event.
16685 * TextBox.cs: Dispose.
16686 * ToolStrip.cs: CanOverflow, re-enable double buffering.
16687 * ToolStripControlHost.cs: fix CausesValidation compiler warning.
16688 * ToolStripDropDown.cs: fix ContextStripMenu compiler warning.
16689 * ToolStripItem.cs: Overflow, RightToLeft properties.
16691 2007-01-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
16693 * Form.cs: Move the layout of the main form to MdiWindowManager.
16694 * MdiWindowManager.cs: If WindowState changes from or to Maximized,
16695 do a layout of the main window to update MdiClient's client area to
16696 the right area. Fixes #80533. Remove the calculation of nc size,
16697 it was just wrong and the correct one is the same as for
16698 InternalWindowManager.
16700 2007-01-20 Jonathan Pobst <monkey@jpobst.com>
16702 * Control.cs: Setting Anchor or Dock needs to reset the other
16703 to its default. [Fixes bug #80556]
16705 2007-01-20 Chris Toshok <toshok@ximian.com>
16707 * CheckedListBox.cs: class status changes.
16709 * ScrollableControl.cs: same.
16711 * RichTextBox.cs: same.
16713 * ContainerControl.cs: same.
16715 * ListView.cs: same.
16717 * NotifyIcon.cs: same.
16719 * MenuStrip.cs: same.
16721 * RadioButton.cs: same.
16723 * CheckBox.cs: same.
16725 * PrintPreviewDialog.cs: same.
16729 2007-01-19 Jonathan Pobst <monkey@jpobst.com>
16731 * TreeNode.cs: Apply Alan's patch for Name property.
16733 2007-01-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
16735 * Form.cs: Implemented SizeGripStyle.
16736 * SizeGrip.cs: Check for minimum and maximum size for the
16737 control being resized and only resize if size has actually
16740 2007-01-19 Chris Toshok <toshok@ximian.com>
16742 * DataGridColumnStyle.cs: stop setting _readonly in the
16743 PropertyDescriptor setter. fixes a unit test failure.
16745 also, rename ParentReadOnly to TableStyleReadOnly, and have it
16746 just consult our table style (if we have one). We don't need to
16747 consult the datagrid readonly attribute because that's passed in
16748 as the _ro arg to Edit. this simplifies things a little.
16750 * DataGrid.cs: use CurrentColumn instead of
16751 current_cell.ColumnNumber just to simplify some of the code.
16753 switch the order of some things in the CurrentCell setter to keep
16754 the previous cell from getting a textbox again -
16755 EnsureCellVisibility causes scrolling to happen, which calls Edit.
16756 So we need to set the new cell before calling it.
16758 call Edit in OnEnter, as does Microsoft.
16760 also, make sure the current table style isn't the one we create
16761 initially when checking to see if it's different than the one
16762 we're setting it to in BindColumns (this fixes #80421).
16764 * GridTableStylesCollection.cs: table styles can have "" for a
16765 mapping name. part of the fix for #80421.
16767 * DataGridTextBoxColumn.cs: simplify the readonly calculation in
16768 Edit significantly.
16770 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
16772 * TextRenderer.cs: Rewrote to be complete-er, more MS-matching-er,
16773 and less GDI object leaky-er.
16775 2007-01-18 Andreia Gaita <avidigal@novell.com>
16777 * LinkLabel.cs: Add opaque control style
16779 2007-01-18 Jackson Harper <jackson@ximian.com>
16781 * TextControl.cs: Calculate width properly.
16782 - Don't store the tag's X offset, this can be figured out very
16784 - When getting the caret tag make sure to get the last empty tag.
16786 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
16788 * Form.cs: Recalculate our size after setting a new FormBorderStyle.
16791 * Control.cs: Color.Empty shouldn't count for previous transparent
16794 2007-01-18 Jackson Harper <jackson@ximian.com>
16798 * TextControl.cs: Starting to merge in some pieces of my older
16799 undo work. Basically just some slight cleanup of the undo API.
16801 2007-01-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
16803 * TrackBar.cs: Fix signature of RightToLeftLayout.
16804 * StatusBar.cs: Implemented missing 2.0 methods and attributes.
16805 * StatusBarPanel.cs: Implemented missing 2.0 methods and attributes.
16806 * Application.cs: Implemented UseWaitCursor.
16808 2007-01-18 Jackson Harper <jackson@ximian.com>
16810 * TextControl.cs: We can't skip tags if any part of the tag is
16813 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
16815 * ContainerControl.cs: Override OnLayout.
16817 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
16819 * NotifyIcon.cs: Add ContextMenuStrip and Tag properties.
16821 * ContextMenuStrip.cs: Make sure context menu is shown on top of
16824 2007-01-18 Chris Toshok <toshok@ximian.com>
16826 * ContainerControl.cs: remove the partial handling of LBUTTONDOWN
16827 (leftover from the container_selected days, I'd wager). fixes bug
16830 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
16832 * Control.cs: Apply patch from George to fix the new testcase on
16833 bug #80451. We can't just check for Color.Transparent, we need
16834 to check if the back color's alpha channel is < 255.
16836 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
16838 * Form.cs: Move setting show_icon = true to before the constructor
16839 so that the base constructor has that information when it calculates
16840 the form's size. Was causing forms to be (6, 6) bigger than they
16841 were supposed to be. Thanks for catching this Rolf!
16843 2007-01-18 Jackson Harper <jackson@ximian.com>
16845 * TextControl.cs: When replacing a selection we need to invalidate
16846 from the initial selection start, because selection start is moved
16847 to the end of the replacement.
16849 2007-01-18 Andreia Gaita <avidigal@novell.com>
16851 * LinkLabel.cs: Missing ControlStyles. Fixes #80482
16853 2007-01-18 Chris Toshok <toshok@ximian.com>
16855 * DataGridTextBoxColumn.cs: fix most of the NotWorking unit tests
16858 2007-01-17 Everaldo Canuto <everaldo@simios.org>
16860 * ToolBar.cs: Add layout methods to ToolBarButtonInfo class, every
16861 layout methods and properties from ToolBarButton must be available
16862 into ToolBarButtonInfo.
16864 2007-01-17 Jonathan Pobst <monkey@jpobst.com>
16866 * Control.cs: If the control has a transparent background, we
16867 need to refresh it when it moves and when it's parent's background
16868 image changes. [Fixes bug #80451]
16870 2007-01-17 Jonathan Pobst <monkey@jpobst.com>
16872 * XplatUIWin32.cs: Don't use 2.0 methods in 1.1 code! Doh!
16874 2007-01-17 Jonathan Pobst <monkey@jpobst.com>
16876 * XplatUIWin32.cs: Implement proper double buffering for Windows.
16877 [Fixes bug #80447, and probably speeds up things as well]
16879 2007-01-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
16881 * XplatUIX11.cs: Caption height for MDI children is 19, not 26.
16882 * XplatUIWin32.cs: We need to recalculate NC size after changing
16883 window style to toolwindow (otherwise the client rectangle will be
16884 3 pixels to small for some reason).
16885 * MdiWindowManager.cs: Revert NC size calculations to match how
16886 they are calculated only based on window styles (to match
16887 Win32AdjustWindowRectEx, since otherwise when setting size or
16888 location, Control will call Win32AdjustWindowRectEx to update client
16889 size, which would provoke a paint, then we'd get a NCCALCSIZE and
16890 calculate a different value of client size causing another paint
16892 * InternalWindowManager.cs: When moving or resizing a window only
16893 update size or location if they actually changed.
16894 * ThemeWin32Classic.cs: ManagedWindowsBorderWidth is now 4 instead of 3
16895 (seems to match Windows behaviour better). Cleaned up
16896 ManagedWindowDecorations to draw what's needed and nothing else
16897 (was drawing borders and lines where they shouldn't be)
16898 * Hwnd.cs: GetWindowRectangle now knows about MDI border sizes
16899 (style = 0xFFFF) and takes into account caption height when
16900 calculating window rectangle.
16902 2007-01-16 Everaldo Canuto <everaldo@simios.org>
16904 * ToolBar.cs: Internal ToolBarButtonInfo class added, Because same button
16905 can be added to toolbar multiple times, we need to maintain a list of
16906 button information for each positions.
16908 2007-01-16 Everaldo Canuto <everaldo@simios.org>
16910 * ToolBar.cs: Some small stetic changes.
16912 2007-01-16 Jackson Harper <jackson@ximian.com>
16914 * TextBoxBase.cs: Use the new SuspendRecalc/ResumeRecalc methods
16915 that allow us to have nested recalc = false blocks.
16916 - Add paste support for images in the RichTextBox
16917 * RichTextBox.cs: flush the text after the color is changed, so
16918 the change takes effect.
16919 - Use SuspendRecalc
16920 - Some extra debugging info
16921 * TextControl.cs: Tags no longer track their length, it is just
16922 computed from the next tags length, this makes things a little
16923 simpler and reduces places that we have to track length changes.
16924 - Refactored the linetag class a little so we could make it
16925 a base class for different kinds of tags
16926 - Created a image tag, a tag that can have a single image inserted
16928 - Replace the norecalc flag with a Suspend/Resume Recalc pair, so
16929 that we can call suspend multiple times.
16930 - Add some debugging methods
16932 2007-01-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
16934 * MdiClient.cs: Add ActivatePreviousChild for
16935 mdi child window navigation.
16936 * Form.cs: Use MdiClient.ActivateNextChild/
16937 ActivatePreviousChild instead of Form.SelectNextControl
16938 to select the next/previous child since
16939 SelectNextControl doesn't do it in the same order
16940 as mdi children should do it.
16942 2007-01-16 Chris Toshok <toshok@ximian.com>
16944 * Control.cs: remove container_selected field.
16946 2007-01-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
16948 * MdiClient.cs: Update main form's ActiveChild when
16949 updating keyboard focus for the mdi child.
16951 2007-01-16 Jonathan Pobst <jpobst@novell.com>
16953 * Control.cs: PreferredSize fix.
16955 * Form.cs: Add several 2.0 events, properties, and methods.
16957 2007-01-16 Gert Driesen <drieseng@users.sourceforge.net>
16959 * Form.cs: Provide meaningful message when MdiParent is assigned a
16960 Form that is not an MdiContainer.
16962 2007-01-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
16964 * MdiClient.cs: Update main form's ActiveChild when
16965 activating a mdi child.
16967 2007-01-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
16969 * MdiWindowManager.cs: Fix NRE when merging menus and main form
16970 doesn't have a menu.
16972 * Form.cs: Request NCRecalc after creating a mdi child window.
16973 Implement mdi key handling (Ctrl+F4, Ctrl+Shift+F4, Ctrl+Tab,
16974 Ctrl+Shift+Tab, Ctrl+F6 and Ctrl+Shift+F6).
16976 * MdiClient.cs: Add new method SendFocusToActiveChild that either
16977 sends keyboard focus to the active child, or to the MdiClient
16978 if there are no child forms.
16980 2007-01-15 Chris Toshok <toshok@ximian.com>
16982 * ListView.cs: drop the *Internal overrides, just do our work in
16983 ItemControl's WndProc instead.
16985 * UpDownBase.cs: a few large changes. Fix up the Selectable state
16986 of the various controls, and forward the events properly (in the
16987 same manner as MS) from the textbox to the UpDown. Also the
16988 ActiveControl of the UpDownBase gets set properly now. Finally,
16989 we don't call UpdateEditText from the ctor. Fixes bug #79957.
16991 * NumericUpDown.cs: set Text in the ctor.
16993 * DomainUpDown.cs: call UpdateEditText in the ctor.
16995 * TextBox.cs: on ms.net, WM_LBUTTONDOWN sets focus on the textbox,
16996 so even a Selectable = false textbox can be focused if you click
16999 * Control.cs: remove On{Got,Lost}FocusInternal. Subclasses can
17000 just add their handling in their respective WndProc's. Also add
17001 an explicit FocusInternal method that doesn't consult CanFocus
17002 before calling Select(this).
17004 * TextBoxBase.cs: deal with removal of the FocusInternal calls -
17005 do our work in WndProc instead.
17007 * TabControl.cs: same.
17009 * ComboBox.cs: same.
17011 2007-01-15 Everaldo Canuto <everaldo@simios.org>
17013 * Menu.cs: implement MergeItems and Replace for MenuMerge method.
17016 2007-01-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
17019 * ThemeWin32Classic.cs: Don't draw the item text outside
17020 item bounds in Details view, as well as use trimming.
17023 2007-01-15 Jonathan Pobst <jpobst@novell.com>
17025 * Form.cs: Implement Form.ShowIcon.
17027 * XplatUIWin32.cs: Allow the SetIcon win32 call to set the icon to
17028 null, which when combined with the DlgModalFrame window style removes
17029 the icon from the title bar.
17031 2007-01-15 Jonathan Pobst <jpobst@novell.com>
17033 * Control.cs: Call OnMouseClick after OnClick. (2.0)
17035 2007-01-15 Everaldo Canuto <everaldo@simios.org>
17037 * MdiWindowManager.cs: In CreateMaximizedMenu fix a position of icon
17038 menu when mdi child windows theres a menu, uses insert to get icon
17039 at first position. Partially fix #80006.
17041 2007-01-15 Jonathan Pobst <jpobst@novell.com>
17043 * Clipboard.cs: Implement 2.0 methods.
17045 2007-01-15 Everaldo Canuto <everaldo@simios.org>
17047 * Menu.cs: Implement Insert method of MenuItemCollection class
17050 2007-01-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
17052 * ListView.cs: Implement 2.0 FindItemWithText method.
17054 2007-01-11 Everaldo Canuto <everaldo@simios.org>
17056 * Form.cs: When process WM_NCCALCSIZE message use ClienSize.Width
17057 to calculate menu bar size. Fixes #80290.
17059 2007-01-11 Everaldo Canuto <everaldo@simios.org>
17061 * ThemeWin32Classic.cs: Fix position of menuitem check mark.
17063 2007-01-11 Chris Toshok <toshok@ximian.com>
17065 * XplatUIX11.cs: don't send duplicate WM_ACTIVATE messages to the
17068 2007-01-11 Chris Toshok <toshok@ximian.com>
17070 * LinkLabel.cs: make sure to call base.Select in our Select method
17071 if it turns out we're going to be selected (i.e. if we have a link
17072 that is going to receive focus). That way our container's
17073 ActiveControl is updated properly.
17075 2007-01-11 Chris Toshok <toshok@ximian.com>
17077 * LinkLabel.cs: turns out that LinkLabels are only Selectable if
17078 they have 1 or more links. this fixes the crash gert reported.
17080 2007-01-11 Andreia Gaita <avidigal@novell.com>
17082 * ContainerControl.cs: Remove ContainerSelected flag, not needed
17085 * Control.cs (Controls.Add): Check if control to be added to the collection
17086 is a top level control, and throw an ArgumentException if it is.
17087 Remove ContainerSelectedFlag, not needed anymore.
17089 * XplaUIWin32.cs (SetTopMost): Add flag SWP_NOACTIVATE so that setting the
17090 top most control doesn't activate the form. This fixes a problem in the
17091 MessageBox, where the default button wouldn't get focus because the form
17092 was activated before being Loaded - when the Owner is set, SetTopMost is
17093 called, and it would activate it.
17095 2007-01-11 Jonathan Pobst <jpobst@novell.com>
17097 * Button.cs: When clicked and setting the parent form's DialogResult,
17098 use FindForm instead of Parent, since parent could be a container
17099 control and not the Form. Fixes bug #80495.
17101 2007-01-10 Chris Toshok <toshok@ximian.com>
17103 * Form.cs: move the call to SendControlFocus into the same
17106 2007-01-10 Chris Toshok <toshok@ximian.com>
17108 * UpDownBase.cs (.ctor): remove the ActiveControl assignment here.
17109 It breaks in the face of the new ActiveControl stuff, and should
17112 * Form.cs (WndProc): in the WM_ACTIVATE case, we need to set the
17113 activecontrol's focus if it's not already set, after we set
17114 ActiveControl, but before we call OnActivated. Re-fixes #79667
17115 after the previous focus/active control fixes regressed it.
17117 * Control.cs: reindent some code.
17119 2007-01-10 Chris Toshok <toshok@ximian.com>
17121 * Splitter.cs: clearing some outstanding changes from my tree.
17122 Replace all accesses (not writes) to the internal dock_style field
17123 with the Dock property.
17125 2007-01-10 Chris Toshok <toshok@ximian.com>
17127 * Control.cs: make FireEnter, FireLeave, FireValidating, and
17128 FireValidated virtual.
17130 * Form.cs: override and don't chain up calls to FireEnter and
17133 2007-01-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
17135 * ListView.cs: Add more text padding space when using
17136 auto resize for columns (the previous value didn't work fine).
17138 * ThemeWin32Classic.cs: Update text position inside columns,
17139 to match the appeareance of .Net.
17141 * ColumnHeader.cs: When using auto resize, only the Width should
17142 depend on the sub items, not the Height. Also, set width after
17143 auto resizing (the value of Width should never remain as -1 or -2).
17145 2007-01-10 Chris Toshok <toshok@ximian.com>
17147 * Application.cs: fix compilation errors when debug is enabled.
17149 2007-01-10 Chris Toshok <toshok@ximian.com>
17151 * ContainerControl.cs (set_ActiveControl): rework this a bit (and
17152 add some nice ascii art pictures and explanation of the process).
17153 (GetMostDeeplyNestedActiveControl): new utility function we need
17154 because our ActiveControl can refer to a child container with its
17157 * Form.cs (OnActivated): remove the call to SelectActiveControl
17158 from here, since you can override this method and not chain up,
17159 and winforms still sets the active control.
17160 (OnCreateControl): also remove the unnecessary SelectActiveControl
17162 (WndProc): it's actually called from the WM_ACTIVATE block, just
17163 before calling OnActivated.
17165 * Control.cs (Select (Control)): move the call to XplatUI.SetFocus
17166 inside the else. the ActiveControl setter will end up setting
17167 focus on @control. This keeps us from setting it again (and
17168 generating an extra LostFocus/GotFocus pair).
17169 (Select (bool, bool)): reindent.
17171 2007-01-10 Jonathan Pobst <jpobst@novell.com>
17173 * FlowLayoutPanel.cs, MenuStrip.cs, SplitContainer.cs, SplitterPanel.cs,
17174 StatusStrip.cs, TableLayoutPanel.cs, TableLayoutStyleCollection.cs,
17175 ToolStrip.cs, ToolStripComboBox.cs, ToolStripContainer.cs,
17176 ToolStripContentPanel.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
17177 ToolStripDropDownButton.cs, ToolStripDropDownItem.cs, ToolStripDropDownMenu.cs,
17178 ToolStripItem.cs, ToolStripMenuItem.cs, ToolStripPanel.cs, ToolStripPanelRow.cs,
17179 ToolStripSeparator.cs, ToolStripSplitButton.cs, ToolStripStatusLabel.cs
17180 ToolStripTextBox.cs: Another wave of corcompare work.
17182 2007-01-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
17184 * ColumnHeader.cs: Implement 2.0 AutoResize method using
17185 the Width property.
17187 * ListView.cs: Implement 2.0 AutoResizeColumn and AutoResizeColumns
17188 methods by callling Column.AutoResize method on columns.
17190 2007-01-09 Jonathan Pobst <monkey@jpobst.com>
17192 * Control.cs: Provide proper implementations of PreferredSize
17193 and GetPreferredSize (2.0).
17195 2007-01-09 Jonathan Pobst <monkey@jpobst.com>
17197 * Form.cs: Remove one character (!) to make my previous OnClosing
17198 stuff work for modal windows like MessageBox.
17200 2007-01-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
17203 * ThemeWin32Classic.cs: Use ListView.GetReorderedColumn instead of
17204 ListView.Columns to get the last displayed column. Fixes #80452.
17206 2007-01-09 Everaldo Canuto <everaldo@simios.org>
17208 * Label.cs, LinkLabel.cs: Source code identation fixes.
17210 2007-01-08 Everaldo Canuto <everaldo@simios.org>
17212 * ToolBarButton.cs: Remove InvalidateBorder and use Invalidate instead,
17213 we dont need to invalidate only borders because when we invalidate four
17214 border lines the invalidate's generates a complete redraw of button,
17215 because it now invalidate a complete rect some other redraws operations
17216 are fixed. Fixes #80196.
17218 * Theme.cs, ThemeNice.cs, ThemeClearLooks.cs, ThemeWin32Classic.cs:
17219 Remove ToolBarInvalidateEntireButton as it is not used.
17221 2007-01-08 Jonathan Pobst <monkey@jpobst.com>
17223 * Form.cs: Make sure that both OnClosing and OnFormClosing are
17224 called for 2.0 profile.
17225 * CloseReason.cs: Make class internal for 1.1.
17227 2007-01-08 Jonathan Pobst <monkey@jpobst.com>
17229 * ToolStripManager.cs: Implement FindToolStrip functionality.
17230 * ToolStrip.cs: Register and unregister with ToolStripManager.
17232 2007-01-07 Jonathan Pobst <monkey@jpobst.com>
17234 * Control.cs: This was messy. 2.0 moves much of ControlCollection
17235 to ArrangedElementCollection. Implemented this with as few #if's as
17236 possible (which is still too many).
17238 2007-01-07 Jonathan Pobst <monkey@jpobst.com>
17240 * Control.cs: Implement SizeFromClientSize() [2.0].
17242 2007-01-07 Everaldo Canuto <everaldo@simios.org>
17244 * Hwnd.cs: On GetClientRectangle add a new parameter border_static,
17245 use Theme.BorderSize to calculate area instead of static value 1,
17246 by the way use new BorderStaticSize instead Border3DSize when
17247 border_static is true. Fixes #79537.
17249 * XplatUIOSX.cs: Fix call to GetClientRectangle.
17251 * ThemeWin32Classic.cs: On CPDrawBorder3D dont draw inner border when
17254 2007-01-06 Everaldo Canuto <everaldo@simios.org>
17256 * Hwnd.cs: Gives more code legibility to GetWindowRectangle.
17258 2007-01-06 Everaldo Canuto <everaldo@simios.org>
17260 * Label.cs: Override CreateParams to use WS_EX_STATICEDGE instead of
17261 WS_EX_CLIENTEDGE in ExStyles when BorderStyle is Fixed3D, it is
17264 - border_static field added, it will used to define when a control
17265 theres 3D border but it must be static (thin).
17266 - In GetWindowRectangle use Theme.BorderSize to calculate area
17267 instead of static value 1, by the way use new BorderStaticSize instead
17268 Border3DSize when border_static is true.
17270 * XplatUIX11.cs, XplatUIOSX.cs:
17271 - When WS_EX_STATICEDGE ExStyle is set define border_static as true.
17273 * Theme.cs: BorderStaticSize field added.
17275 2007-01-05 Everaldo Canuto <everaldo@simios.org>
17277 * XplatUIX11.cs: Removed unused hwnd var in SetBorderStyle.
17279 2007-01-05 Everaldo Canuto <everaldo@simios.org>
17281 * Control.cs: Under InternalBorderStyle call RecreateHangle to
17282 mimic same behavior than win32 that set border only in CreateParams,
17283 it fix problems under CreateParams overrides. Fix #79442 and partial
17286 * XplatUIX11.cs: Dont set hwnd.border_style in SetBorderStyle instead
17287 of thi control you must call recreate handle.
17289 * XplatUIWin32.cs: Remove all SetBorderStyle code, for win32 we dont
17290 need to do anything as RecreateHangle will take care about borders.
17292 2007-01-05 Mike Kestner <mkestner@novell.com>
17294 * ListView.cs: hack to eliminate Lost/Got focus notifications on
17295 cycles between the ItemControl and parent. Fixes #80388.
17297 2007-01-05 Gert Driesen <drieseng@users.sourceforge.net>
17299 * Control.cs: Lazy init layout engine. Do not directly use
17300 layout_engine since LayoutEngine may be overridden (on 2.0 profile).
17302 2007-01-05 Chris Toshok <toshok@ximian.com>
17304 * DataGrid.cs: don't forceably rebind columns in SetDataSource
17305 unless our list manager has changed (i.e. unless we have reason to
17306 believe our columns have changed). Fixes #80422.
17308 also, disable the call do BindColumns in
17309 OnListManagerMetaDataChanged. this breaks this test in 2.0 (in
17310 1.1 the event isn't raised in response to a column addition on a
17313 2007-01-05 Jonathan Pobst <monkey@jpobst.com>
17315 * Control.cs: Move LayoutEngine.Layout to the OnLayout method, so
17316 that inheritors can not call it if they choose. Fixes bug #80456.
17318 2007-01-05 Andreia Gaita <avidigal@novell.com>
17320 * XplatUIWin32.cs: Initialize MSG.refobject at 0 so it
17321 doesn't blow up with a null exception on marshalling.
17323 2007-01-05 Jonathan Pobst <monkey@jpobst.com>
17325 * Control.cs: Implement several 2.0 protected properties and methods.
17326 Ensure that all necessary events are being called when properties
17329 2007-01-05 Mike Kestner <mkestner@novell.com>
17331 * ListView.cs: implement PgUp/PgDn for Details view. Also
17332 fixes First/LastVisibleIndex to use the item_control.ClientRect
17333 instead of the parent control. Fixes #80378.
17335 2006-01-05 Atsushi Enomoto <atsushi@ximian.com>
17337 * PageSetupDialog.cs : cosmetic refactoring; use RegionInfo to
17338 determine whether to use yard-pound or not (bug #78399).
17340 2006-01-04 Alexander Olk <alex.olk@googlemail.com>
17342 * FileDialog.cs: Sebastien fixed the libgdiplus png alpha
17343 problems. So it is time to bring back the old popupbutton colors.
17345 2006-01-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
17348 * ListView.cs: Implement 2.0 ColumnHeader.DisplayIndex
17349 property by using the internal information of the
17350 columns order in ListView.
17352 2007-01-04 Jonathan Pobst <monkey@jpobst.com>
17354 * CommonDialog.cs, Cursor.cs, ErrorProvider.cs, HelpProvider.cs:
17355 Add 2.0 Tag properties.
17357 * LinkArea.cs: Add 2.0 ToString method.
17359 2007-01-03 Chris Toshok <toshok@ximian.com>
17361 * DataGrid.cs: the Alt+0 handling was wrong, it should have been
17362 Ctrl+0. Fixes bug #80367. Also, don't eat the Delete keypress
17363 when we're editing, which fixes #80047.
17365 2007-01-03 Chris Toshok <toshok@ximian.com>
17367 * Form.cs: apply patch contributed by Dominik Seichter. fixes
17370 2007-01-03 Jonathan Pobst <monkey@jpobst.com>
17372 * MenuStrip.cs, ToolStripMenuItem.cs: Add MdiWindowListItem
17373 property and implementation.
17375 * Form.cs, MdiClient.cs, MdiWindowManager.cs: Add needed hooks
17376 for MdiWindowListItem property.
17378 * ToolStripDropDown.cs: Don't consider hidden menu items while
17379 laying out the menu.
17381 2007-01-03 Andreia Gaita <avidigal@novell.com>
17383 * SendKeys.cs: window handle is not needed in win32, so just
17384 get the active window for X after parsing keys and don't use
17385 it when building the message; it is passed by parameter to the
17386 Xplat method and used there to build the message instead. Also,
17387 wait for events to be processed on SendWait, as opposed to Send,
17388 which doesn't wait :) Playing with threads and Send() completely
17389 hangs on ms.net, only SendWait() works.
17392 X11Display.cs: Check for valid window handle.
17394 2007-01-03 Jackson Harper <jackson@ximian.com>
17396 * TextControl.cs: Need to prevent wrap calculations when replacing
17397 text (this was there before i removed it accidently).
17398 - Don't update the cursor during the positioning, just set it to
17399 selection_start at the end of the operaion.
17401 2007-01-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
17404 * NotifyIcon.cs: corcompare work, no more X's in 1.1 class status.
17406 2007-01-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
17408 * MonthCalendar.cs: Added Click and DoubleClick events again,
17409 but this time they only hide Control's Click and DoubleClick.
17411 2007-01-03 Gert Driesen <drieseng@users.sourceforge.net>
17413 * Theme.cs: Re-enabled DefaultFont change. Use const to refer to
17414 System.Drawing assembly. Spaces to tabs. Removed extra tabs.
17416 2007-01-02 Jackson Harper <jackson@ximian.com>
17418 * TextBoxBase.cs: We move the caret with the split now, so we
17419 don't need to explicitly move the caret after splitting. This
17420 fixes the caret bumping down an extra line on Enter.
17422 2007-01-02 Miguel de Icaza <miguel@novell.com>
17424 * ContainerControl.cs: Add AutoValidateChanged event (for PDN
17427 * ScrollableControl.cs: Add Scroll event.
17429 2007-01-02 Mike Kestner <mkestner@novell.com>
17431 * ListView.cs: one more try with help from georgegiolfan@yahoo.com
17432 to fix all hdr height padding codepaths. Fixes #80207.
17434 2007-01-02 Chris Toshok <toshok@ximian.com>
17436 * StatusBar.cs (.ctor): remove the Anchor setting, as it's just
17437 setting it to the Control defaults anyway, and it being after the
17438 Dock set was screwing up layout.
17439 (set_Dock): don't short circuit out of setting base.Dock. Also,
17440 no need to call UpdateStatusBar here, as it'll be re-layed out if
17443 2007-01-02 Mike Kestner <mkestner@novell.com>
17445 * ListView.cs: patch from georgegiolfan@yahoo.com to add padding
17446 to header height for width == -1. Fixes the rest of #80207.
17448 2007-01-02 Mike Kestner <mkestner@novell.com>
17450 * ListView.cs: rework the mouse event forwarding everaldo added
17451 to translate the coordinates to the parent control not
17452 raise the parent events until after we've done our work. Hover
17453 needs more work, in the case where HoverSelection is on, because
17454 the item control receives more than one MouseHover per Enter
17455 event, so we need to ensure only the "first" hover gets forwarded.
17456 Opening a minor bug for that.
17458 2007-01-02 Gert Driesen <drieseng@users.sourceforge.net>
17460 * CheckedListBox.cs: Fixed SelectionMode to match MS.
17461 * ListControl.cs: Implemented AllowSelection property. Removed extra
17463 * ListBox.cs: Implemented AllowSelection property.
17465 2007-01-02 Everaldo Canuto <everaldo@simios.org>
17467 * MenuItem.cs: In MdiWindowClickHandler uses sender instead of
17468 SelectedItem, it prevent for errors when you must disable item
17469 before perform click. Fixes #80409.
17471 2007-01-02 Everaldo Canuto <everaldo@simios.org>
17473 * MenuAPI.cs: Prevent second level and beyond submenus to close
17474 until first level when move out side of popup.
17476 2007-01-02 Everaldo Canuto <everaldo@simios.org>
17479 - Down submenu positin in three pixels.
17480 - Closes sub menu when mouse leaves from menu. Fixes #80402.
17482 2007-01-02 Everaldo Canuto <everaldo@simios.org>
17484 * ThemeWin32Classic.cs:
17485 - Fix popup menu size adding one pixel on the top.
17486 - Down menu item border from two to one to mimic Win32.
17487 - Some source identation fixes.
17489 2007-01-01 Everaldo Canuto <everaldo@simios.org>
17491 * ThemeWin32Classic.cs: Use float numbers to calculate size and
17492 position of menu arrows, it fix wrong arrow size.
17494 2007-01-01 Everaldo Canuto <everaldo@simios.org>
17496 * ThemeWin32Classic.cs: Uses CPDrawBorder3D to draw menu borders
17497 instead of line, it simplify draw operation and fix it using 3D
17498 borders to mimic Win32.
17500 2007-01-01 Jonathan Pobst <monkey@jpobst.com>
17502 * StatusStrip.cs: Add implementation of the sizing grip.
17504 * ToolStripRenderer.cs, ToolStripProfessionalRenderer.cs: Add
17505 StatusStrip rendering.
17507 2006-12-31 Chris Toshok <toshok@ximian.com>
17509 * ToolBar.cs: don't assign to dock_style in the .ctor. it doesn't
17510 override the layout style (anchor/dock) of the control. assign to
17511 Dock instead. Fixes bug #80416.
17513 * ToolStrip.cs: same.
17515 2006-12-31 Andreia Gaita <avidigal@novell.com>
17517 * ContainerControl.cs: Use ContainerSelected flag to check if
17518 a Container is directly selected, or if Select is called on a
17519 non-container. If a container is directly selected, focus events
17520 should not be raised.
17521 Apply #80411 patch to throw exception on set_ActiveControl if
17522 control is the same as the current one.
17524 * Control.cs: Use ContainerSelected flag (see above).
17525 Add invalidation check to raise event but not invalidate if
17527 Apply #80411 patch.
17530 2006-12-31 Everaldo Canuto <everaldo@simios.org>
17532 * MenuAPI.cs: After click, dont close popup menu when menu is
17533 ContextMenu. Fixes #80399.
17535 2006-12-30 Chris Toshok <toshok@ximian.com>
17537 * ContainerControl.cs: make sure we throw the exception if the
17538 container control doesn't contain the control we're setting
17541 2006-12-30 Chris Toshok <toshok@ximian.com>
17543 * Control.cs (SetTopLevel): fix the exception raised by
17544 SetTopLevel for child controls.
17545 (set_Anchor): call UpdateDistances when setting the anchor type.
17546 This fixes bug #80336.
17548 2006-12-29 Gert Driesen <drieseng@users.sourceforge.net>
17550 * Theme.cs: For now, revert back to 8pt font.
17552 2006-12-29 Everaldo Canuto <everaldo@simios.org>
17554 * MenuAPI.cs: Set popup as active when open a ContextMenu.
17557 2006-12-29 Chris Toshok <toshok@ximian.com>
17559 * Control.cs: reorder the code in OnResize to give the same event
17562 2006-12-29 Rolf Bjarne Kvinge <RKvinge@novell.com>
17564 * MdiClient.cs: Implemented MdiLayout for ArrangeIcons,
17565 TileHorizontally and TileVertically.
17567 2006-12-29 Alexander Olk <alex.olk@googlemail.com>
17569 * ColorDialog.cs, FileDialog.cs, FolderBrowserDialog.cs,
17570 FontDialog.cs, Mime.cs, MimeIcon.cs, OpenFileDialog.cs,
17571 SaveFileDialog.cs, ThemeClearlooks.cs, ThemeNics.cs:
17572 Corrected copyright and email adress.
17574 2006-12-29 Gert Driesen <drieseng@users.sourceforge.net>
17576 * TreeNode.cs: On 2.0 profile, throw InvalidOperationException instead
17577 of Exception in FullPath property if no TreeView is associated with
17580 2006-12-29 Gert Driesen <drieseng@users.sourceforge.net>
17582 * Theme.cs: Marked default_font as private, and initialize it in ctor
17583 with MS Sans Sarif 8.25 on 1.0 profile, and SystemFonts.DefaultFont
17585 * ThemeGtk.cs: Removed default_font intialization.
17586 * ThemeWin32Classic.cs: Removed default_font initialization.
17588 2006-12-28 Chris Toshok <toshok@ximian.com>
17590 * Control.cs: fix a couple of place where we were creating handles
17591 more aggressively than we should be. Fixes ControlRefresh unit
17594 2006-12-28 Chris Toshok <toshok@ximian.com>
17596 * Control.cs: contrary to what the comment said, Control.Dock does
17597 not supercede Control.Anchor - the last one you assign to decides
17598 the layout behavior. so we need to keep track of which was the
17599 last set. Also, fix some of the affected property arguments in
17600 PerformLayout calls, and remove an redundant parent.PerformLayout
17603 Add a VisibleInternal property, which returns is_visible. We
17604 can/should get rid of all the usage of this field elsewhere.
17606 2006-12-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
17608 * Control.cs: DoubleBuffered property reflects the OptimizedDoubleBuffer
17609 control style, not DoubleBuffer. Added UseDoubleBuffering property
17610 that indicates whether doublebuffering is enabled and supported.
17611 (comment from and code based on Gert Driesen's patch in #80324).
17614 2006-12-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
17616 * Control.cs: Fixed a NRE.
17618 2006-12-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
17620 * TrackBar.cs: Fix SmallChange and LargeChange exceptions
17623 2006-12-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
17625 * Control.cs: Rewrote double buffering, now a seperate
17626 class handles all the buffering, no Graphics is disposed of
17627 until the painting is finished (earlier implementation
17628 would crash if the control was resized in the OnPaint,
17629 since it would cause the double buffer to be recreated
17630 and the old one disposed), a separate Graphics is
17631 created for every paint (MS behaviour and anyways the state
17632 of the Graphics would have to be saved and restored otherwise)
17634 * XplatUIDriver.cs:
17636 * XplatUI.cs: Added and implemented GetOffscreenGraphics
17637 so that we can get the graphics for the back buffer without
17638 having to create a new one and remove the offscreen_dc parameter
17639 from CreateOffscreenDrawable and DestroyOffscreenDrawable.
17641 2006-12-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
17643 * ListView.cs: Add key-related 2.0 methods for CheckedItemCollection.
17644 Also make virtual all the key-related methods.
17646 * ListViewItem.cs: Make virtual the key related methods for
17647 ListViewSubItemCollection.
17649 2006-12-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
17653 * ThemeWin32Classic.cs:
17654 * Theme.cs: Initial support for Tile view in ListView,
17655 as well as the implementation of the required bits for it (Item
17658 2006-12-27 Gert Driesen <drieseng@users.sourceforge.net>
17660 * MonthCalendar.cs: On 2.0, throw ArgumentOutOfRangeException instead
17661 of ArgumentException in MaxSelectionCount, MaxDate and MinDate.
17662 Provide useful exception messages.
17664 2006-12-27 Rolf Bjarne Kvinge <RKvinge@novell.com>
17666 * TrackBar.cs: Remove a warning.
17667 * MonthCalendar.cs: Moved back to using Capture to hide the calendar
17668 when used by DateTimePicker, fixes #80287. This also requires that
17669 MonthCalendar implements it's own drawing for the yearly updown control,
17670 otherwise the Capture tracking would be too complicated. Removed the Click
17671 and DoubleClick events (according to comments they were hiding the base class
17672 event to prevent them from beeing fired - MSDN only says MonthCalendar doesn't
17673 raise these events, not that they cannot be raised. It is possible to raise
17674 them by calling OnClick and OnDoubleClick). Added two internal fields in
17675 HitTestInfo in order to track give more tracking info needed by MonthCalendar.
17676 * ThemeWin32Classic.cs: Implement drawing of MonthCalendar's updown part.
17677 * DateTimePicker.cs: Removed handling of MonthCalendar's LostFocus
17678 event, no longer needed.
17680 2006-12-27 Gert Driesen <drieseng@users.sourceforge.net>
17682 * ScrollableControl.cs: In AutoScrollMinSize, only set AutoScroll to
17683 true if new value differs from current value.
17685 2006-12-27 Gert Driesen <drieseng@users.sourceforge.net>
17687 * Control.cs: ControlCollection.Count must be public. Fixed build of
17690 2006-12-27 Gert Driesen <drieseng@users.sourceforge.net>
17692 * ListView.cs: Redraw when FullRowSelect is changed. Fixes bug #80379.
17694 2006-12-27 Gert Driesen <drieseng@users.sourceforge.net>
17696 * ComboBox.cs: Mergable=>MergableProperty. Fixes build.
17698 2006-12-26 Everaldo Canuto <everaldo@simios.org>
17700 * Control.cs: Invalidates control including when Width and Height is
17701 equal zero or is not visible, only Paint event must be care about
17702 this. Fixes #79913.
17704 2006-12-26 Chris Toshok <toshok@ximian.com>
17706 * CurrencyManager.cs, PropertyManager.cs, BindingManagerBase.cs:
17707 more corcompare work.
17709 * DataGridView.cs: fix compiler warning.
17711 * ColumnHeader.cs: some corcompare work, and also take the
17712 opportunity to make the internal fields private.
17714 * ListView.cs: fix the fallout from the above field change.
17716 2006-12-26 Jonathan Pobst <monkey@jpobst.com>
17718 * ToolStripButton.cs, ToolStripComboBox.cs, ToolStripControlHost.cs,
17719 ToolStripItem.cs, ToolStripProgressBar.cs, ToolStripSplitButton.cs,
17720 ToolStripTextBox.cs: Fixes to events and corcompare.
17722 2006-12-26 Everaldo Canuto <everaldo@simios.org>
17724 * ListView.cs: Call owner.OnMousexx event to propagate events from
17725 item to ListView. Fixes #80367.
17727 2006-12-26 Gert Driesen <drieseng@users.sourceforge.net>
17729 * ComboBox.cs: On 2.0, DropDownWidth throws ArgumentOutOfRangeException
17730 if value is less than one. ItemHeight should not be set to a value
17731 less than 1, and throw ArgumentOutOfRangeException on 2.0 profile.
17732 Removed extra tabs.
17734 2006-12-26 Jonathan Pobst <monkey@jpobst.com>
17736 * ToolStripMenuItem.cs: Add ShortcutDisplayString for Moma.
17737 * ToolStripStatusLabel.cs: Add Spring for Moma.
17739 2006-12-26 Gert Driesen <drieseng@users.sourceforge.net>
17741 * DataGridView.cs: Fixed several NullReferenceException in On* methods.
17742 Fixed code formatting. Removed debug code.
17743 * DataGridViewTextBoxEditingControl.cs: Removed debug code.
17745 2006-12-26 Gert Driesen <drieseng@users.sourceforge.net>
17747 * DataGridView.cs: Fixed GridColor, DefaultSize, DefaultCellStyle,
17748 RowHeadersDefaultStyle, RowHeadersWidth to match MS. Throw
17749 ArgumentOutOfRangeException if ColumnCount is negative. In
17750 ColumnHeadersHeight, throw ArgumentOutOfRangeException if height is
17751 less than 4 or higher than 32768.
17752 * DataGridViewCellStyle.cs: Fixed default value for NullValue.
17753 Fixed FormatProvider to return CurrentCulture unless explicitly set.
17754 Fixed IsFormatProviderDefault to return true if FormatProvider has
17755 not been explicitly set.
17757 2006-12-25 Chris Toshok <toshok@ximian.com>
17759 * Application.cs: add a couple of 2.0 events.
17761 2006-12-25 Chris Toshok <toshok@ximian.com>
17763 * Control.cs: fix compiler warning.
17765 * AxHost.cs: corcompare fixes.
17767 * ApplicationContext.cs: corcompare fixes.
17769 2006-12-25 Chris Toshok <toshok@ximian.com>
17771 * Control.cs: only update dist_right/dist_bottom if the
17772 width/height is > 0. this fixes anchored controls being resized
17773 smaller until they disappear and then resized larger again.
17775 2006-12-25 Chris Toshok <toshok@ximian.com>
17777 * Control.cs: a couple of changes. Remove dist_left and dist_top,
17778 since they're nothing more than X/Left and Y/Top, respectively.
17780 Also, move back to a per-control Bitmap/Graphics for
17781 DeviceContext, since using the static Hwnd.bmp/bmp_g is bad in the
17782 MT case. Go with a tiny bitmap though, 1x1, instead of Width x
17785 2006-12-25 Miguel de Icaza <miguel@novell.com>
17787 * MessageBox.cs: Implemented overload that takes a new "bool
17788 displayHelpButton" by adding a new internal field "show_help".
17789 When clicked this will raise the HelpRequested on the owner or the
17792 From: 007dbe3ff0ca4729a4f5fcd1d8ab2a2e.txt
17793 From: c935e12b95fe4dc1ae670e7f4dc5fd68.txt
17795 * ListView.cs: Add support ColumnWidthChanged and
17796 ColumnWidthChanging.
17798 Add support for ColumnReordered event.
17799 (ReorderColumn): Add NET_2_0 specific support for cancelling the
17802 Very nice codebase!
17804 * TextBoxBase.cs (GetLineFromCharIndex): Implement this method.
17806 This is used by report f4ae0a88a0a244558aaadf017c9b9efe.
17808 2006-12-24 Chris Toshok <toshok@ximian.com>
17810 * GridTablesFactory.cs: 2.0 corcompare work.
17812 * ToolStripContainer.cs: add "override" to
17813 ContextMenuStripChanged, and remove the local event object.
17815 * ToolStripDropDown.cs: same with a couple properties.
17817 * ToolStripPanel.cs: same with AutoSizeChanged event.
17819 * TextBoxBase.cs: add "override" to AutoSizeChanged.
17821 * Form.cs: add the remaining 2.0 events, and do some corcompare
17824 * DateTimePicker.cs: add "new" to padding.
17826 * ButtonBase.cs: use Control's use_compatible_text_rendering.
17828 * ToolStripContentPanel.cs: use base.AutoSizeChanged.
17830 * DataGridView.cs: PaddingChanged is overridden.
17832 2006-12-24 Chris Toshok <toshok@ximian.com>
17834 * Control.cs: corecompare work here too.
17836 * DataGridViewElement.cs, DataGridView.cs,
17837 DataGridViewButtonCell.cs, DataGridViewRowCollection.cs,
17838 DataGridViewImageColumn.cs, DataGridViewComboBoxColumn.cs,
17839 DataGridViewImageCell.cs, DataGridViewCheckBoxCell.cs,
17840 DataGridViewHeaderCell.cs, DataGridViewCell.cs: more corcompare
17843 2006-12-24 Miguel de Icaza <miguel@novell.com>
17845 * Control.cs: Switched the error message on the console for a
17846 todo. A review of the code will have to cope with this anyways
17847 (since its a large feature, it is in our radar) and it was
17848 producing too much output when running PDN.
17850 * ToolStripComboBox.cs: Set the text when the SelectedIndex
17851 changes. Applications depend on this (PDN 2.72)
17853 2006-12-23 Chris Toshok <toshok@ximian.com>
17855 * TableLayoutSettings.cs: finish up the corcompare work for this
17858 2006-12-23 Chris Toshok <toshok@ximian.com>
17860 * Control.cs: make SetImplicitBounds internal, do some futzing
17861 with LayoutEngine so that it's available in 1.1, and remove the
17862 entire duplicated code mess from PerformLayout. Use
17863 System.Windows.Forms.Layout.DefaultLayout instead.
17865 * LayoutEngine.cs: make this class internal in 1.1, public in 2.0.
17867 2006-12-23 Jonathan Pobst <monkey@jpobst.com>
17869 * Form.cs: Add MainMenuStrip property.
17871 2006-12-23 Jonathan Pobst <monkey@jpobst.com>
17873 * Control.cs: Add ContextMenuStrip property and implementation.
17874 Fix ContextMenu implementation to show menu centered on control when
17875 activated using the keyboard instead of showing at screen (0,0).
17877 * ToolStripDropDown.cs: Fix needed overload of Show ().
17879 2006-12-23 Everaldo Canuto <everaldo@simios.org>
17881 * Menu.cs: Name property added for 2.0 profile.
17883 2006-12-23 Everaldo Canuto <everaldo@simios.org>
17885 * Menu.cs: Update information about FindMenuItem, method to be
17888 2006-12-23 Everaldo Canuto <everaldo@simios.org>
17890 * MenuAPI.cs: When deselect items deselect also selected subitems.
17892 2006-12-23 Everaldo Canuto <everaldo@simios.org>
17894 * MenuAPI.cs: When hides menu set Wnd to null, it prevents
17895 FindSubItemByCoord to found itens that is not active, also an
17896 cheking added to FindSubItemByCoord to search for items only
17897 in visible popup windows. Fixes #80274.
17899 2006-12-22 Everaldo Canuto <everaldo@simios.org>
17901 * UserControl.cs: Remove MonoTodo and use InternalBorderStyle,
17902 internal property, it be care about change ExStyle.
17904 2006-12-22 Andreia Gaita <avidigal@novell.com>
17906 * ContainerControl.cs: set activeControl for parent forms up the
17907 tree when the new activecontrol is a container.
17908 When validating the active control, if it is a container, also
17909 raise up the validation for it's active control. Fixes #80280
17911 * Control.cs: Add internal property flag and check to prevent
17912 Focus events from getting raised when Select() is called for
17913 a ContainerControl. There are still too many focus events being
17914 raised at the moment though.
17915 Cleaned up the code a bit.
17917 2006-12-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
17919 * Control.cs: Added all missing 2.0 events.and
17920 fixed a couple of corcompare issues.
17921 * TrackBar.cs: Implemented missing 2.0 bits.
17922 * MonthCalendar.cs,
17923 * DateTimePicker.cs,
17924 * MdiClient.cs: Fixed some corcompare issues.
17926 2006-12-21 Jonathan Pobst <monkey@jpobst.com>
17928 * ContextMenuStrip.cs, FlowLayoutPanel.cs, SplitContainer.cs,
17929 SplitterPanel.cs: corecompare work.
17931 2006-12-21 Jonathan Pobst <monkey@jpobst.com>
17933 * ToolStripContainer.cs, ToolStripDropDown.cs, StatusStrip.cs:
17934 Clean up warnings for BackgroundImageChanged and PaddingChanged
17935 events now that they are implemented in Control.cs.
17937 2006-12-21 Jonathan Pobst <monkey@jpobst.com>
17939 * Control.cs: Make sure layout_engine isn't null before using it (2.0).
17941 * TableLayoutControlCollection.cs, TableLayoutPanel.cs, TableLayoutCellPosition.cs,
17942 TableLayoutSettings.cs, TableLayoutStyleCollection.cs: Initial implementation
17943 of TableLayoutPanel and supporting cast.
17945 2006-12-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
17948 - GrabWindow now confines the mouse pointer to the confine window.
17949 - Added Win32ClipCursor and Win32GetClipCursor.
17952 - Added CaptureWithConfine to be able to capture and confine
17955 * InternalWindowManager.cs:
17956 - Call CaptureWithConfine instead of Capture if we're an
17957 MdiChild (fixes #79982).
17959 2006-12-21 Chris Toshok <toshok@ximian.com>
17961 * DataGrid.cs: guard against the initial state of selection, where
17962 selection_start == -1. make sure we only select from index >= 0.
17965 2006-12-21 Chris Toshok <toshok@ximian.com>
17967 * Control.cs: we don't need to be so draconian with
17968 UpdateDistances, and we thusly don't need to call it before
17969 calling PerformLayout in ResumeLayout. Fixes bug #80289.
17971 2006-12-21 Daniel Nauck <dna@mono-project.de>
17974 TextBox.cs: Implemented AutoComplete properties.
17976 2006-12-20 Chris Toshok <toshok@ximian.com>
17978 * DataGridView*.cs: some corecompare work.
17980 2006-12-20 Jackson Harper <jackson@ximian.com>
17982 * XplatUIX11.cs: We need to hide the caret when deleting it,
17983 otherwise you get carets left lying around everywhere.
17984 * TextBoxBase.cs: Kill then redraw the caret when scrolling. This
17985 prevents getting some weird half drawn caret tracers when
17987 * TextControl.cs: Attempt to reduce the number of times we need to
17988 recreate the caret.
17990 2006-12-20 Gert Driesen <drieseng@users.sourceforge.net>
17992 * MonthCalendar.cs: Fixed previous month button. Removed extra tabs.
17994 2006-12-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
17996 * DateTimePicker.cs:
17997 - Implemented missing 2.0 bits.
17998 - Changed some default values to match MS.
18000 2006-12-20 Jackson Harper <jackson@ximian.com>
18002 * TextBoxBase.cs: When changing the font across the document we
18003 can't recalculate after changing each line, since that will cahnge
18005 - PreferredHeight is a little different than i thought.
18006 - When backspacing, move the caret before we do the actual char
18007 delete, because when that delete crosses a wrap boundary the
18008 positional information will change.
18010 2006-12-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
18012 * Control.cs: Added some missing 2.0 bits:
18013 BackgroundImageLayout, BackgroundImageLayoutChanged,
18014 OnPaddingChanged, MouseClick, MouseDoubleClick, PaddingChanged and
18015 add IBindableComponent and IDropTarget implementation.
18017 * MonthCalendar.cs:
18018 - Added all missing 2.0 features:
18019 BackgroundImageLayout, RightToLeftLayout,
18020 OnHandleDestroyed, RightToLeftLayoutChanged,
18021 BackgroundImageLayoutChanged, MouseClick, MouseDoubleClick,
18023 - Rewrote all the BoldDate code, it was completely broken.
18024 - Fixed all the tests (the tests can now be re-enabled, the
18025 problems were not with the tests, but with the control, it was
18028 * DateTimePicker.cs: Changed the location where the
18029 MonthCalendar is shown.
18031 2006-12-19 Chris Toshok <toshok@ximian.com>
18033 * DataGridView.cs: add IDropTarget implementation.
18035 * ToolStripPanel.cs: add IDropTarget implementation.
18037 2006-12-19 Jackson Harper <jackson@ximian.com>
18039 * TextControl.cs: soft now means something different than what it
18040 used to mean, we want to move the caret regardless of whether or
18041 not this break was soft (would we really have wanted the caret
18042 to not move with the break in the old context?)
18043 * TreeView.cs: Make sure we factor in the vert scrollbar when
18044 calculating the horizontal scrollbar's maximum.
18046 2006-12-19 Andreia Gaita <avidigal@novell.org>
18048 * SendKeys.cs: Fix Send() behaviour, clear keys after sending,
18049 check for keywords in alternate casing, close bug #80049.
18051 2006-12-19 Chris Toshok <toshok@ximian.com>
18053 * ToolStripItem.cs: add the implementation of the 4 IDropTarget
18054 methods (which all do nothing).
18056 * IDropTarget.cs: add the 4 missing methods.
18058 2006-12-19 Chris Toshok <toshok@ximian.com>
18060 * TableLayoutRowStyleCollection.cs: corcompare work.
18062 * TableLayoutSettings.cs: same.
18064 * TableLayoutStyle.cs: same.
18066 * TableLayoutColumnStyleCollection.cs: same.
18068 2006-12-19 Jonathan Pobst <monkey@jpobst.com>
18070 * ColumnStyle.cs, RowStyle.cs, TableLayoutStyle.cs: Plumbing for
18071 TableLayoutPanel I've had in my local tree for way too long.
18073 2006-12-19 Miguel de Icaza <miguel@novell.com>
18075 * TableLayoutSettings.cs: Finish the public API (still needs all
18076 the logic to update on changes).
18078 * TableLayoutPanelCellPosition.cs: new file.
18080 * TableLayoutRowStyleCollection.cs,
18081 TableLayoutColumnStyleCollection, TableLayoutStyle.cs,
18082 TableLayoutSettings.cs: Track the final 2.0 table api.
18084 2006-12-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
18086 * ColumnHeader.cs: Add Tag, Name, ImageKey, ImageIndex,
18087 and Image List 2.0 members for ColummnHeader.
18088 * ListView.cs: Add key-related 2.0 methods for
18089 ColumnHeaderCollection.
18091 2006-12-19 Gert Driesen <drieseng@users.sourceforge.net>
18093 * ListViewItem.cs: Changed AddRange overloads to match MS: throw
18094 ArgumentNullException if items argument is null. Ignore null item in
18095 arrays. Removed extra tabs.
18097 2006-12-19 Gert Driesen <drieseng@users.sourceforge.net>
18099 * MonthCalendar.cs: Fixed InvalidCastException.
18101 2006-12-19 Jackson Harper <jackson@ximian.com>
18103 * TextControl.cs: Don't increment the position here.
18104 - When calculating char positions only add in the line break size
18105 for hard line breaks.
18107 2006-12-19 Andreia Gaita <avidigal@novell.org>
18109 * SendKeys.cs: Changed some things to match ms.net behaviour
18110 when parsing shifted capital letters.
18112 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32, XplatUIOSX:
18113 Add window handle as parameter to SendInput. X11 needs the
18114 window handle, and the handle being passed to it in the keys
18115 queue is the active control handle (which windows needs), not
18118 XplatUIX11.cs, XplaUIX11-new.cs, X11Display: Implement SendInput
18119 to support SendKeys on X.
18121 * X11Keyboard: Implement helper method to lookup a linux keycode
18122 given the virtual keycode. Added table of keycode-2-virtualkey
18123 values to support this.
18125 2006-12-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
18127 * ListView.cs: Add support for SelectedIndexCollection
18128 and SelectedItemCollection 2.0 methods. Implement support
18130 * ListViewItem.cs: Add support for ListViewSubItemCollection
18131 2.0 methods. Also, fix an incorrect behavior of AddRange method
18132 (it shouldn't call Clear).
18133 * ThemeWin32Classic.cs: Support for ListView.ImageKey 2.0 property.
18135 2006-12-19 Jackson Harper <jackson@ximian.com>
18138 * TextBoxBase.cs: New args for FormatText
18139 * TextControl.cs: Rewrote the main drawing method, this version
18140 feels a little easier to understand and debug to me. Hopefully it
18141 does to others also
18142 - Fix FormatText to OR in the new formating values. Added
18143 FormatSpecified param, basically this works in the same way as
18144 BoundsSpecified in Control.
18145 - Set the caret properties when the caret is positioned.
18146 - When wrapping text make sure that we calculate the width of the
18148 - when calculating alignments we might have wrapped down to the
18149 next line, so don't search for an individual tag, search for the
18151 - We need to invalidate the selection area when we replace the
18154 2006-12-19 Daniel Nauck <dna@mono-project.de>
18156 * Application.cs: add Restart () 2.0 support
18158 2006-12-18 Everaldo Canuto <everaldo@simios.org>
18160 * MenuItem.cs: Invalidate menu item rectangle after change Enable
18161 property. Fixes #80268.
18163 2006-12-18 Everaldo Canuto <everaldo@simios.org>
18165 * MenuAPI.cs: Dont trigger select event when closes top menu
18166 item. Fixes #80270.
18168 2006-12-18 Everaldo Canuto <everaldo@simios.org>
18170 * MenuAPI.cs: When you click on menuitem only trigger onselect
18171 event for top menu itens. Fixes #80271.
18173 2006-12-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
18175 * MdiWindowManager.cs: Make IconicBounds depend on
18176 the bottom of MdiClient, not the top (fixes #80267)
18178 2006-12-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
18180 * MdiClient.cs: Added missing 2.0 attribute
18182 2006-12-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
18184 * ListViewItem.cs: Add Name and Tag 2.0 properties, as well
18185 as IndexOfKey, ContainsKey, RemoveByKey and indexer 2.0.
18187 2006-12-18 Everaldo Canuto <everaldo@simios.org>
18189 * MenuAPI.cs: Fix click when menuitem is not popup,
18190 this regression was caused by last commit (#80272).
18192 2006-12-17 Everaldo Canuto <everaldo@simios.org>
18194 * MenuAPI.cs: When a non-toplevel menuitem is clicked dont
18195 fire click event or close menu. Fixes #80272.
18197 2006-12-17 Daniel Nauck <dna@mono-project.de>
18199 * ListViewHitTestInfo.cs: add
18201 2006-12-17 Daniel Nauck <dna@mono-project.de>
18203 * ButtonBase.cs: Added FlatButtonAppearance 2.0 support.
18204 * FlatButtonAppearance.cs: add
18205 * DockingAttribute.cs: add
18207 2006-12-17 Chris Toshok <toshok@ximian.com>
18209 * DataGrid.cs: hook up MetaDataChanged event on the list manager,
18210 and rebind our columns when it does - this way, if you make
18211 changes to the DataTable (or set the Table attribute on a DataView
18212 after setting it as the DataGrid's DataSource, the changes are
18213 made visible.) Fixes bug #80107.
18215 2006-12-17 Daniel Nauck <dna@mono-project.de>
18217 * ListViewGroup.cs: add internal Location property for layouting.
18218 * Theme.cs: add abstract ListViewGroupHeight function.
18219 * ThemeWin32Classic.cs: implement ListViewGroupHeight function.
18221 2006-12-16 Andreia Gaita <avidigal@novell.com>
18223 * TabControl.cs: Fixed checks for NET_2_0-specific exceptions.
18224 Added reset of selected index to 0 when adding first tab page.
18227 * NumericUpDown.cs: Fix NET_2_0 check
18229 2006-12-16 Daniel Nauck <dna@mono-project.de>
18231 * ListViewGroup.cs: fixed DefaultValueAttribute value
18233 2006-12-16 Daniel Nauck <dna@mono-project.de>
18235 * AutoCompleteStringCollection.cs: add new AutoCompleteStringCollection 2.0 class
18237 2006-12-15 Miguel de Icaza <miguel@novell.com>
18239 * Button.cs, ComboBox.cs, ScrollBar.cs, UserControl.cs,
18240 TextBoxBase.cs, ListView.cs, ContainerControl.cs,
18241 ScrollableControl.cs: Add a handful of methods that are
18244 2006-12-15 Chris Toshok <toshok@ximian.com>
18246 * XplatUIWin32.cs: initial implementation of the Reversible
18247 drawing functions. there are some problems. DrawReversibleFrame
18248 doesn't seem to work at all for Dashed FrameStyle, and in the
18249 Thick case there are drawing errors at the corners (we probably
18250 need to bind Rectangle instead of doing moveto/lineto's.)
18252 2006-12-16 Andreia Gaita <avidigal@novell.com>
18254 * SendKeys.cs: Implemented. SendKeys uses a new method in XPlatUI, SendInput,
18255 to send blocks of key messages. Send accumulates keys to send with Flush,
18256 while SendWait sends all keys immediately.
18258 * XplaUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
18259 XplatUIX11.cs, XplatUIX11-new.cs:
18260 - Define SendInput and stubs for OSX and X11, implements Win32 with a call
18261 to Win32 SendInput.
18262 - Added INPUT support structures to XplatUIWin32 for Win32SendInput
18264 Tests: It seems ms.net is hooking the keyboard to implement this, so doing unit
18265 testing for ms.net on this class is very tricky, as the tests run too fast
18266 to allow the hook to release, essentially freezing the keyboard and the
18267 test. So, barring a win32 miracle, they'll be commited in the ms-notworking
18270 2006-12-16 Daniel Nauck <dna@mono-project.de>
18272 * Padding.cs: fixed serialization compability to MS ("_var" field names),
18273 added missing attributes.
18275 2006-12-15 Daniel Nauck <dna@mono-project.de>
18277 * ListViewGroup.cs: Added missing attributes.
18278 * ListViewGroupCollection.cs: Added missing attributes.
18280 2006-12-15 Daniel Nauck <dna@mono-project.de>
18282 * ListViewItem.cs: fixed ListViewSubItem text property.
18284 2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
18286 * Control.cs: Added missing 2.0 attributes
18288 2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
18290 * MdiClient.cs: Added missing 2.0 attribute.
18291 * MonthCalendar.cs: Added some missing 2.0 attributes
18294 2006-12-15 Daniel Nauck <dna@mono-project.de>
18296 * ListView.cs: implemented ListViewItemCollection Add 2.0 support.
18298 2006-12-15 Jonathan Pobst <monkey@jpobst.com>
18300 * MainMenu.cs: Add the new 2.0 constructor to help out people
18301 using the MainMenu in VS2005.
18303 2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
18305 * MdiChildContext.cs: Removed it, no longer used.
18306 * MdiClient.cs: Added missing 2.0 attributes.
18308 2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
18310 * InternalWindowManager.cs: Fix a NullRef with previous
18311 changes for toolwindows.
18313 2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
18316 - Added AfterTopMostControl to allow for certain controls
18317 to always stay on top when normal controls are brought to
18321 - (DrawInversibleRectangle): Get window rectangle from Win32
18322 in stead of from control, since Win32 doesn't calculate
18323 screen coords correctly from control's Location if it
18324 have docked siblings.
18326 * MdiWindowManager.cs:
18327 - Correct the control menu popup location when clicked on
18328 the maximized form icon. (fixes #80223.1)
18329 - Don't show moving rectangle if mouse hasn't moved from
18330 the original clicked point.
18331 - Removed FormGotFocus handler (not used).
18332 - Calculate the control buttons location from the main
18333 window's size and not client size (fixes #79770).
18334 - Form is now closed when the form icon is double-clicked
18336 - Correct NCCalcSize numbers a little bit (fixes #80223.2)
18338 * InternalWindowManager.cs:
18339 - Moved some MDI-only methods to MdiWindowManager.
18340 - Removed unused properties and methods.
18341 - Unified method naming for methods handling wm messages.
18342 - Moved all message handling to seperate methods for
18345 * ThemeWin32Classic.cs:
18346 - DrawManagedWindowDecorations now draws the title bar
18347 with a gradient brush.
18348 - Add a CPDrawButtonInternal that allows us to specify
18349 light, normal and dark colors for the buttons (control
18350 buttons for MDI children were drawn with the same light
18351 color as the background, therefore loosing the 3D effect).
18354 - Add a CapturedControl property that is used to
18355 determine the control to resize (defaults to parent).
18356 Needed for MdiClient, since its SizeGrip's parent is
18357 MdiClient, but the control to resize is the main form.
18360 - Set SizeGrip's CapturedControl to the main form in order
18361 to resize the main form and not the MdiClient.
18362 - Override AfterTopMostControl to leave the scrollbars
18365 2006-12-15 Daniel Nauck <dna@mono-project.de>
18367 * ListView.cs: fixed ListViewItemCollection AddRange and
18368 implemented ListViewItemCollection AddRange 2.0 support.
18370 2006-12-15 Daniel Nauck <dna@mono-project.de>
18372 * ListViewGroup.cs: Add.
18373 * ListViewGroupCollection.cs: Add
18374 * ListView.cs: Add ListViewGroup (Group) and ShowGroups 2.0 support.
18375 * ListViewItem.cs: Add ListViewgroup (Group), ListViewGroups constructors and
18376 stub for ImageKey 2.0 support.
18378 2006-12-14 Mike Kestner <mkestner@novell.com>
18380 * ListView.cs: add text padding to the autocalculation for columns
18381 of width -2. Fixes #80207.
18383 2006-12-14 Mike Kestner <mkestner@novell.com>
18385 * ListView.cs: add some index guarding for partial row navigation
18386 logic. Fixes #80250.
18388 2006-12-14 Mike Kestner <mkestner@novell.com>
18390 * ListView.cs: throw ArgumentExceptions when parented ListViewItems
18391 are added or inserted to the collection. Fixes #81099.
18393 2006-12-13 Everaldo Canuto <everaldo@simios.org>
18395 * MenuAPI.cs: Closes menu when right click out side of popup
18396 it fix problem in ContextMenu and MainMenu. Fixes #80252.
18398 2006-12-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
18400 * ListViewItem.cs: Fix dumb error.
18402 * ListView.cs: Add Find and ContainsKey methods in
18403 ListViewItemCollection, and also return true for IsReadOnly
18404 and IsFixedSize (changes for 2.0).
18406 2006-12-13 Gert Driesen <drieseng@users.sourceforge.net>
18408 * Control.cs: Allow Region to be set to null.
18410 2006-12-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
18412 * MdiWindowManager.cs: Remove unused (commented out) code.
18413 * Form.cs: When the MdiChild is maximized, the form needs
18414 WM_NCMOUSELEAVE, so request it.
18415 * InternalWindowManager.cs:
18416 - Added tooltips to control buttons.
18417 - Removed duplicated control button handling code.
18418 - Removed unused (commented out) code.
18420 2006-12-12 Everaldo Canuto <everaldo@simios.org>
18422 * MenuAPI.cs: Set cursor to default in popup menus, a XplatUI.SetCursor
18423 was used because we must set cursor without trigger ChangeCursor event
18424 and without change Cursor control property. Fixes #79963.
18426 2006-12-12 Andreia Gaita <avidigal@novell.com>
18428 * Control.cs: Check if Region setter value is null, and ignore
18430 2006-12-12 Jackson Harper <jackson@ximian.com>
18432 * TextControl.cs: We were almost always drawing one more line then
18433 needed, since the GetLineByPixel will return the last line found
18434 at that pixel. In most cases though, we were invalidating up to
18435 the junction between two lines.
18436 - Improve debug code.
18438 2006-12-12 Chris Toshok <toshok@ximian.com>
18440 * XplatUI.cs: add static DrawReversibleFrame, DrawReversibleLine,
18441 and FillReversibleRectangle.
18443 * XplatUIDriver.cs: add abstract DrawReversibleFrame, DrawReversibleLine,
18444 and FillReversibleRectangle.
18446 * XplatUIWin32.cs: add stubs which do nothing for
18447 DrawReversibleFrame, DrawReversibleLine, and
18448 FillReversibleRectangle.
18450 * XplatUIOSX.cs: add stubs which raise NIE for
18451 DrawReversibleFrame, DrawReversibleLine, and
18452 FillReversibleRectangle.
18454 * XplatUIX11.cs: add working implementation for
18455 DrawReversibleFrame, DrawReversibleLine, and
18456 FillReversibleRectangle.
18458 * ControlPaint.cs: implement DrawReversibleFrame,
18459 DrawReversibleLine, and FillReversibleRectangle, by calling into
18460 the appropriate XplatUI method.
18462 2006-12-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
18464 * Form.cs: Make MdiClient have the focus even if it's
18465 not selectable, since it should receive WM_KEY* and WM_MOUSE
18466 messages. Fixes #79907.
18468 2006-12-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
18470 * Hwnd.cs: Save the CreateParams.ExStyle so that it can be
18471 queried after the window is created.
18473 * XplatUIX11.cs: Added SendParentNotify to implement
18474 WM_PARENTNOTIFY logic. Fixes #79965.
18476 * Control.cs: Added MakeParam.
18478 2006-12-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
18480 * MdiClient.cs: Resume Layout before setting window
18481 states (fixes #80201).
18483 2006-12-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
18485 * MenuAPI.cs: Deselect a menu item after performing
18486 the click (fixes #80197).
18488 2006-12-11 Jackson Harper <jackson@ximian.com>
18490 * TextBoxBase.cs: We need to cap this value, since Maximum -
18491 ViewPortHeight can be less than zero.
18492 - Only do selection with the left mouse button.
18493 * TextBox.cs: Don't tell the world that we have a context menu.
18494 * Control.cs: New method so that we can control whether or not the
18495 context menu is visible outside MWF.
18497 2006-12-11 Everaldo Canuto <everaldo@simios.org>
18499 * ToolBarButton.cs: Fix text positon.
18501 2006-12-11 Miguel de Icaza <miguel@novell.com>
18503 * ProgressBar.cs (MarqueeAnimationSpeed): Add stub.
18505 * Control.cs (DoubleBuffered): Add implementation.
18507 * Application.cs (OpenForms): Add.
18509 2006-12-11 Jonathan Pobst <monkey@jpobst.com>
18511 * Form.cs: Use opacity instead of Opactiy to determine if we need
18512 to set the WS_EX_LAYERED bit. [Fixes bug #80185]
18514 2006-12-11 Jonathan Pobst <monkey@jpobst.com>
18516 * Control.cs: Fix NRE if Control.Site was set to null.
18518 2006-12-11 Chris Toshok <toshok@ximian.com>
18520 * Control.cs: ControlCollection.Remove should return if the arg is
18521 null, and ControlCollection.SetChildIndex should raise a ANE.
18523 2006-12-11 Gert Driesen <drieseng@users.sourceforge.net>
18525 * Control.cs: Verify value set for Dock property. Code formatting
18528 2006-12-11 Jackson Harper <jackson@ximian.com>
18530 * TextControl.cs: Draw the caret and the selection when a flag is
18532 * TextBoxBase.cs: We want to draw the caret and the selection for
18533 TextBox but not for TextBoxBase.
18534 - If the window is resized and scrolling is no longer needed (the
18535 whole doc is visible) set the scroll position to zero.
18536 - The default SelectWord (the one TextBox uses) should move the
18537 caret to the end of the word.
18538 - SelectAll moves the caret to the end of the selection.
18539 * TextBox.cs: We don't selectall on focus, we just do it when the
18540 control is created.
18542 2006-12-11 Mike Kestner <mkestner@novell.com>
18544 * ComboBox.cs: stub in a 2.0 override for ProcessKeyEventArgs.
18546 2006-12-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
18548 * ListView.cs: Add Insert, IndexOfKey, RemoveByKey and indexer
18550 * ListViewItem.cs: Add Name 2.0 property.
18552 2006-12-11 Andreia Gaita <avidigal@novell.com>
18554 * TabControl.cs: Set visibility on selected or default tab
18555 when tabcontrol handle is created, so that it's contents
18556 actually show up (duh). Fixes #80193
18557 Don't redraw the control if there is no handle created, as
18558 the selected index might be completely invalid. Added some tests
18561 2006-12-11 Everaldo Canuto <everaldo@simios.org>
18563 * ToolBar.cs: Uses maximun width and height of all buttons as
18564 button rectangle when ButtonSize specified, it looks strange but
18565 is what happens in Win32. Fixes #80189.
18567 2006-12-11 Jackson Harper <jackson@ximian.com>
18569 * TextControl.cs: Need to track undo levels ourself, since
18570 compound actions will mess them up.
18572 2006-12-10 Andreia Gaita <avidigal@novell.com>
18574 * TabControl.cs: Raise SelectedIndexChanged for 1.1 if the
18575 SelectedIndex value is changed (even if it's not valid).
18576 Reset SelectedIndex to 0 when the handle is created and if
18577 the current index is invalid.
18578 Fixes SelectdeIndex unit tests and #80128
18580 2006-12-08 Chris Toshok <toshok@ximian.com>
18582 * DataGrid.cs (set_CurrentCell): because EnsureCellVisibility
18583 calls EndEdit, it needs to be called before we set current_cell to
18584 its new value. Otherwise, we end up committing the value in the
18585 textbox to the new cell as well. Fixes bug #80160.
18587 2006-12-08 Chris Toshok <toshok@ximian.com>
18589 * Form.cs (set_CancelButton): if the button's DialogResult is
18590 None, set it to Cancel. Fixes bug 80180.
18592 2006-12-08 Jackson Harper <jackson@ximian.com>
18594 * TextBoxBase.cs: Ugh, ClientSize can be 0,0 sometimes, so we need
18595 to watch ourselves when setting the canvas size and setting the
18598 2006-12-08 Chris Toshok <toshok@ximian.com>
18600 * DataGrid.cs: comment out the two MakeTransparent calls for the
18601 time being so people using trunk (and not 1.2.2) on windows can
18602 actually use the datagrid. This deals with bug #80151.
18604 2006-12-08 Jonathan Pobst <monkey@jpobst.com>
18606 * ThemeWin32Classic.cs: Change ButtonBase_DrawImage to use the
18607 Graphics.DrawImage (image, int, int, int, int) overload instead
18608 of Graphics.DrawImage (image, int, int). GDI+ can't figure out
18609 the dpi difference and was blurring images it drew.
18612 2006-12-08 Chris Toshok <toshok@ximian.com>
18614 * ThemeWin32Classic.cs (DataGridPaintRows): handle case where
18615 rowcnt is 0 (such as with an empty datasource), and make sure we
18616 initialize not_usedarea.Y to cells.Y, so we don't draw over the
18617 other areas (caption, parent row, etc, etc). Fixes bug #80095.
18619 2006-12-08 Chris Toshok <toshok@ximian.com>
18621 * DataGridColumnStyle.cs (SetDataGrid): don't try to access a null
18624 2006-12-08 Chris Toshok <toshok@ximian.com>
18626 [ Fixes bug #80167 ]
18628 * ThemeWin32Classic.cs: don't draw the image if the button's flat
18629 style is FlatStyle.System.
18631 * ButtonBase, ThemeClearlooks.cs, ThemeGtk.cs, ThemeNice.cs: make
18632 ButtonBase.flat_style private, and switch uses of it to the public
18635 2006-12-08 Chris Toshok <toshok@ximian.com>
18637 [ Fixes bug #80121 ]
18639 * ThemeWin32Classic.cs: center the caption text in the datagrid
18642 * DataGrid.cs: lessen the amount we add to the caption height from
18643 6 to 2. 6 was making it huge.
18645 2006-12-08 Andreia Gaita <avidigal@novell.com>
18647 * UpDownBase: Handle MouseWheel call directly instead of capturing
18648 the inner textbox's OnMouseWheel. Fixes #80166
18650 2006-12-08 Jackson Harper <jackson@ximian.com>
18652 * TextControl.cs: We need to invalidate the textbox when we empty
18653 it (how had this not been discovered before?)
18655 2006-12-08 Jackson Harper <jackson@ximian.com>
18657 * TextBoxBase.cs: Reworked the mouse down code so I could get it
18658 to behave like MS, we now ignore the eventargs.Click and just
18659 track state ourself, which we were already doing anyways.
18660 - Constrain the double click handler to the double click size.
18662 2006-12-08 Chris Toshok <toshok@ximian.com>
18664 * DataGrid.cs: the mousewheel code shouldn't try to scroll in a
18665 direction if that scrollbar isn't shown. fixes bug #80158.
18667 2006-12-08 Andreia Gaita <avidigal@novell.com>
18669 * NumericUpDown.cs: Update value on getter. Fixes #79950
18671 2006-12-08 Chris Toshok <toshok@ximian.com>
18673 * MenuItem.cs: add back in the event cloning code. I didn't know
18674 how to do it in the face of the EventHandlerList work i'd done
18675 last week. Fixes bug #80183.
18677 2006-12-08 Jonathan Pobst <monkey@jpobst.com>
18679 * Control.cs: Add an invalidate to the BackgroundImage setter.
18682 2006-12-07 Jonathan Pobst <monkey@jpobst.com>
18684 * ToolStrip*: Add some small properties reported by MoMA, fix event
18685 firing and default properties based off of unit tests, and add some
18686 attributes based off of the class status page.
18688 2006-12-07 Jackson Harper <jackson@ximian.com>
18690 * TextBoxBase.cs: Take HideSelection into account when determining
18691 whether or not to show the selection.
18692 * RichTextBox.cs: After inserting the RTF into the document move
18693 the cursor to the beginning of the document.
18695 2006-12-07 Jonathan Pobst <monkey@jpobst.com>
18697 * Control.cs: Remove static ArrayList "controls" which maintained
18698 a reference to every control created.
18699 * Application.cs: Create a static FormCollection to maintain a reference
18700 to every form created. Use it in places that formerly enumerated through
18701 the controls one looking for forms.
18702 * Form.cs: Add and remove self from above FormCollection.
18704 2006-12-07 Alexander Olk <alex.olk@googlemail.com>
18706 * MimeIcon.cs: gdk_pixbuf_save_to_buffer is part of libgdk-pixbuf,
18707 not libgdk (though it makes me wonder why I didn't have any
18710 2006-12-07 Chris Toshok <toshok@ximian.com>
18712 [ you had to know this was coming after that last commit...]
18714 * XplatUIX11.cs: implement the 3 Offscreen functions in terms of
18715 XPixmaps (CreateOffscreenDrawable maps to XCreatePixmap,
18716 DestroyOffscreenDrawable to FreePixmap, and BlitFromOffscreen to
18719 2006-12-07 Chris Toshok <toshok@ximian.com>
18721 * XplatUI.cs: add 3 calls (CreateOffscreenDrawable,
18722 DestroyOffscreenDrawable, and BlitFromOffscreen) that encompass
18723 all the behavior we need for double buffering.
18725 * XplatUIDriver.cs: implement the 3 double buffer methods using a
18726 client side Bitmap, just like the old Control-based double buffer
18727 code did. The methods are virtual, so each XplatUI driver
18728 subclass can replace the implementation to use a faster, platform
18731 * Control.cs: make use of the 3 Offscreen XplatUI calls in the
18732 double buffer code, and clean things up a bit in the process.
18734 2006-12-06 Chris Toshok <toshok@ximian.com>
18736 * Control.cs: reindent WndProc.
18738 2006-12-06 Chris Toshok <toshok@ximian.com>
18740 [ I wanna be like BenM when I grow up ]
18742 * Hwnd.cs: create a single static Graphics object on the static
18743 Bitmap we create. use this for our text measurements.
18745 * Control.cs (DeviceContext): stop using the backbuffer's dc_mem.
18746 This was causing us to allocate a backbuffer for every control,
18747 even when it wasn't flagged as double buffered. Instead use the
18748 single graphics instance. This might have implications for
18749 multithreaded applications. If we run into problems we can switch
18750 to creating 1 Graphics per control, on the static Hwnd bitmap.
18752 this change nets us a 7M savings in private dirty mappings when
18753 running FormsTest.exe.
18755 2006-12-06 Chris Toshok <toshok@ximian.com>
18757 * ListView.cs: the BackgroundImage override is just to set
18758 attributes. chain up to base.BackgroundImage.
18760 * RichTextBox.cs: same.
18762 * ToolBar.cs: same, but we need to also redraw the toolbar when it
18763 changes, so instead a handler for BackgroundImageChanged.
18765 * Control.cs: make background_image private.
18767 2006-12-06 Chris Toshok <toshok@ximian.com>
18769 * ScrollBar.cs: change the assignment of cursor to Cursor. not
18770 sure we even need this assignment, but roll with it for now.
18772 * Control.cs: make the cursor field private.
18774 2006-12-06 Chris Toshok <toshok@ximian.com>
18776 * Form.cs: we don't need to explicitly set ImeMode to
18777 ImeMode.NoControl - that's a natural fallout of Control.ImeMode's
18778 behavior in the face of ImeMode.Inherit.
18780 * ButtonBase.cs: change DefaultImeMode to ImeMode.Disable, and
18781 change the ctor's assignment to use ImeMode instead of ime_mode.
18783 * Control.cs (get_ImeMode): don't assume DefaultImeMode ==
18784 ImeModeInherit. Only check for the parent's imemode (and return
18785 NoControl if there is no parent) if ime_Mode == ImeMode.Inherit.
18786 This fixes the button unit test, which sets both ImeMode and
18787 DefaultImeMode to ImeMode.Disable.
18789 also make the ime_mode field private.
18791 2006-12-06 Chris Toshok <toshok@ximian.com>
18793 * Control.cs: make control_style private.
18795 * TextBoxBase.cs: fix the HandleClick override. it was explicitly
18796 setting the styles to true, then setting them to false instead of
18797 reverting to their previous values.
18799 also, call SetStyle on the scrollbars instead of using
18800 control_style directly.
18802 2006-12-06 Jonathan Pobst <monkey@jpobst.com>
18804 * FormCollection.cs: Implement. [2.0]
18806 2006-12-06 Chris Toshok <toshok@ximian.com>
18808 * Control.cs: make tab_stop private.
18810 * Label.cs: set TabStop, not tab_stop. reformat some event
18811 add/remove methods to make them more compact.
18813 2006-12-06 Chris Toshok <toshok@ximian.com>
18815 * RadioButton.cs: fix TabStop handling.
18817 2006-12-06 Chris Toshok <toshok@ximian.com>
18819 * TextBox.cs: remove the explicit assignments to has_focus.
18822 * ButtonBase.cs: remove the assignment to has_focus. Control will
18825 2006-12-06 Chris Toshok <toshok@ximian.com>
18827 * ButtonBase.cs: remove all uses of is_enabled from this code.
18828 it's always true when any of the code containing the checks is
18831 2006-12-06 Chris Toshok <toshok@ximian.com>
18833 * ImageList.cs: reinstate the ShouldSerialize*/Reset* methods,
18834 with different semantics (some are present in both 1.1 and 2.0
18835 profiles) so that we match MS's behavior in our unit tests.
18837 2006-12-06 Jackson Harper <jackson@ximian.com>
18839 * TextControl.cs: Make this operation undoable.
18840 * TextBoxBase.cs: Factor the border width into the preferred
18842 - implement Modified as per the spec.
18844 2006-12-06 Chris Toshok <toshok@ximian.com>
18846 * Timer.cs, Control.cs, Menu.cs: make control_tag private.
18848 2006-12-06 Chris Toshok <toshok@ximian.com>
18850 * Control.cs: make right_to_left and context_menu fields private.
18852 2006-12-06 Chris Toshok <toshok@ximian.com>
18854 * AccessibleObject.cs, Control.cs, XplatUIX11GTK.cs,
18855 XplatUIX11.cs, Form.cs, RadioButton.cs, ScrollableControl.cs: make
18856 Control.child_controls private. switch all uses over to
18859 2006-12-06 Chris Toshok <toshok@ximian.com>
18861 * System.Windows.Forms/GroupBox.cs,
18862 System.Windows.Forms/AccessibleObject.cs,
18863 System.Windows.Forms/ErrorProvider.cs,
18864 System.Windows.Forms/Control.cs,
18865 System.Windows.Forms/UpDownBase.cs,
18866 System.Windows.Forms/ScrollBar.cs,
18867 System.Windows.Forms/DateTimePicker.cs,
18868 System.Windows.Forms/Form.cs, System.Windows.Forms/Label.cs,
18869 System.Windows.Forms/ToolTip.cs,
18870 System.Windows.Forms/RadioButton.cs,
18871 System.Windows.Forms/LinkLabel.cs,
18872 System.Windows.Forms/Splitter.cs,
18873 System.Windows.Forms/TextBoxBase.cs,
18874 System.Windows.Forms/ToolStripTextBox.cs,
18875 System.Windows.Forms/ContainerControl.cs,
18876 System.Windows.Forms/ThemeWin32Classic.cs,
18877 System.Windows.Forms/SizeGrip.cs,
18878 System.Windows.Forms/ToolStripDropDown.cs,
18879 System.Windows.Forms/ScrollableControl.cs: Make Control.parent
18880 private. switch all uses over to Control.Parent.
18882 2006-12-06 Chris Toshok <toshok@ximian.com>
18884 * RichTextBox.cs: don't assign to has_focus in GotFocus/LostFocus.
18885 Control does this before calling emitting these events.
18887 * TabControl.cs: same.
18889 * ThemeWin32Classic.cs: use Control.ClientRectangle instead of
18890 Control.client_rect.
18892 * ButtonBase.cs: use the ClientSize property instead of the
18895 * ScrollableControl.cs: same.
18897 * Control.cs: another pass at making properties private. also,
18898 move the initialization of tab_stop to the ctor.
18900 2006-12-05 Andreia Gaita <avidigal@novell.com>
18902 * TabControl.cs: Let the selected index be set freely if the
18903 control handle is not yet created.
18905 2006-12-05 Jonathan Pobst <monkey@jpobst.com>
18907 * Control.cs: Revert dist_top, dist_right, and dist_bottom to
18908 internal until I can rewrite DefaultLayout.
18909 * ToolStrip.cs: Fix build error and some general cleaning.
18910 * ToolStripControlHost.cs, SplitterPanel.cs, DataGridView.cs:
18911 Fix build errors caused by making some of Control's fields private.
18913 2006-12-05 Jackson Harper <jackson@ximian.com>
18915 * TextControl.cs: Redo Insert a little so that it use IndexOf
18916 instead of Split, this prevents it from messing up on things like
18917 \n\n\n. Also more effecient since the split array doesn't need to
18919 * TextBoxBase.cs: AppendText doesnt handle multiline and non
18920 multiline text differently, this is the first of many fixes that
18921 will make multiline/non-multiline the same thing as far as the
18922 TextBoxBase is concerned.
18923 - Don't split the text and insert lines, this can lose some line
18924 endings (like is the last line a soft or hard break). Instead use
18926 - Fix an off by one when combining all the lines in the Text
18928 - Remove separate multiline handling from the Text getter/setter.
18930 2006-12-05 Chris Toshok <toshok@ximian.com>
18932 * ButtonBase.cs: a few changes:
18934 - don't reinitialize internal Control fields in the ctor when they
18935 have the same values as Control sets them.
18937 - don't set has_focus in OnGotFocus/OnLostFocus. Control does
18938 this before calling those methods.
18940 - we don't need to call Refresh for anything. use Invalidate
18943 - OnEnabledChanged doesn't need to redraw at all - Control.cs
18944 calls Refresh in its OnEnabledChanged.
18946 - several of the events we were registered for in the ctor to
18947 redraw ourselves already include calls to Invalidate in the
18948 property setters that raise the events. remove the extra
18951 - reformat a switch statement that was 83274658 columns wide.
18953 2006-12-05 Mike Kestner <mkestner@novell.com>
18955 * ComboBox.cs: fix a unit test regression from a TextBox
18956 SelectionLength return of -1 when there's no selection.
18958 2006-12-05 Chris Toshok <toshok@ximian.com>
18960 * Control.cs, Button.cs, ThemeGtk.cs, Form.cs, ListView.cs,
18961 ThemeWin32Classic.cs, SizeGrip.cs, ToolBar.cs: first pass at
18962 cleaning up some of the internal Control fields being used by
18965 2006-12-05 Mike Kestner <mkestner@novell.com>
18967 * ComboBox.cs: fix some Simple mode regressions. Set Visible on the
18968 listbox after AddImplicit calls since it defaults to hidden. Add a
18969 hack to preserve requested heights across DropDownStyle changes.
18971 2006-12-05 Jonathan Pobst <monkey@jpobst.com>
18973 * PropertyGrid.cs: Hide FindFirstItem method from public API.
18975 2006-12-05 Chris Toshok <toshok@ximian.com>
18977 * DataGridView.cs: fix compiler warnings.
18979 * PrintControllerWithStatusDialog.cs: same.
18981 * ToolBar.cs: same.
18983 * FolderBrowserDialog.cs: same.
18985 * Splitter.cs: same.
18987 * DataGridViewComboBoxCell.cs: same.
18989 * XplatUIWin32.cs: same.
18991 * PictureBox.cs: same.
18993 * Win32DnD.cs: same.
18995 * PageSetupDialog.cs: same.
18997 * FileDialog.cs: same.
18999 * PrintDialog.cs: same.
19001 * DataGridTextBoxColumn.cs: same.
19003 * DrawTreeNodeEventArgs.cs: same (and fix corcompare)
19005 2006-12-05 Chris Toshok <toshok@ximian.com>
19007 * TextBox.cs, CheckedListBox.cs, MonthCalendar.cs, Menu.cs,
19008 MainMenu.cs, ListView.cs, LabelEditTextBox.cs, ToolBar.cs: more
19009 System.ComponentModel.EventHandlerList work.
19011 2006-12-05 Jonathan Chambers <joncham@gmail.com>
19013 * DrawTreeNodeEventArgs.cs: Added.
19015 2006-12-05 Rolf Bjarne Kvinge <RKvinge@novell.com>
19017 * InternalWindowManager.cs: Remove an unused field.
19019 2006-12-05 Rolf Bjarne Kvinge <RKvinge@novell.com>
19021 * InternalWindowManager.cs:
19022 - Save the point where the title bar is clicked.
19024 * MdiWindowManager.cs:
19025 - Only allow moving of the window as long as the
19026 clicked point on the title bar does not get out of
19027 MdiClient's rectangle. Fixes #79982.
19030 - Added Horizontal/VerticalScrollbarVisible.
19031 - Simplified the scrollbar sizing algorithm.
19032 - Cache the difference in scrolled value in
19033 H/VBarValueChanged and move the calculation out
19036 2006-12-05 Rolf Bjarne Kvinge <RKvinge@novell.com>
19038 * Control.cs: Make the Console.WriteLine in WndProc
19041 2006-12-05 Chris Toshok <toshok@ximian.com>
19043 * ToolStripManager.cs, ToolStripButton.cs,
19044 ToolStripContentPanel.cs, ToolStripComboBox.cs, ToolStrip.cs,
19045 ToolStripMenuItem.cs, ToolStripItem.cs, ToolStripControlHost.cs,
19046 ToolStripSplitButton.cs, ToolStripSeparator.cs,
19047 ToolStripRenderer.cs, ToolStripDropDownItem.cs,
19048 ToolStripProgressBar.cs, ToolStripContainer.cs,
19049 ToolStripTextBox.cs, ToolStripPanel.cs, ToolStripDropDown.cs: move
19050 to using System.ComponentModel.EventHandlerList.
19052 2006-12-04 Chris Toshok <toshok@ximian.com>
19054 * LinkLabel.cs: fix up compiler warnings.
19056 * TableLayoutSettings.cs: same.
19058 * TreeView.cs: same.
19060 * ToolBar.cs: same.
19062 * TabControl.cs: same.
19064 * RichTextBox.cs: same.
19066 * ListViewItem.cs: same.
19068 * PropertyGrid.cs: same.
19070 * DataGridViewRowPostPaintEventArgs.cs: corcompare fix.
19074 * TextRenderer.cs: fix up compiler warnings.
19078 * Form.cs: corcompare fixes.
19080 * PictureBox.cs: fix up compiler warnings.
19082 * ImageListStreamer.cs: same.
19084 * TrackBar.cs: corcompare fix.
19086 * Control.cs: fix up compiler warnings.
19088 * SplitterPanel.cs: same.
19090 * NumericTextBox.cs: same.
19092 * ImageList.cs: same.
19094 * StatusStrip.cs: same.
19096 * ProgressBar.cs: corcompare fix.
19098 * ToolStripButton.cs: fix up compiler warnings.
19100 * ToolStripStatusLabel.cs: same.
19102 * ToolStripSplitButton.cs: same.
19104 * ToolStripSeparator.cs: same.
19106 * ToolStripProgressBar.cs: same.
19108 * ToolStripDropDownMenu.cs: same
19110 * ToolStripDropDown.cs: same.
19112 * ToolStripDropDownButton.cs: same.
19114 * ToolStrip.cs: same.
19116 * ToolStripControlHost.cs: same.
19118 * ToolStripContentPanel.cs: same.
19120 * ToolStripDropDown.cs: same.
19122 * ToolStripContainer.cs: same.
19124 * ToolStripPanel.cs: same, and add "new" where we need it to work
19125 with the new ArrangedElementCollection.
19127 * ToolStripItemCollection.cs: add "new" where we need it to work
19128 with the new ArrangedElementCollection.
19130 2006-12-04 Andreia Gaita <avidigal@novell.com>
19132 * TabControl.cs: Fix default tab selection to after TabControl
19133 gets focus and not before. Fixes #80128
19135 2006-12-04 Chris Toshok <toshok@ximian.com>
19137 * DataGridTableStyle.cs: remove the gross calling of
19138 datagrid.Refresh from here. It's a broken idea and it doesn't
19141 * DataGrid.cs: instead, just register/unregister from the
19142 DataGridTableStyle events in CurrentTableStyle. we play it
19143 conservatively and EndEdit + CalcAreasAndInvalidate on any event,
19144 even though some would most likely not require it. Fixes bug
19145 #80115 (and one portion of #80117 as a side effect).
19147 2006-12-04 Chris Toshok <toshok@ximian.com>
19149 * DataGrid.cs (set_CaptionVisible): EndEdit before doing the work
19150 so the textbox (if any) goes away. Fixes bug #80117.
19152 2006-12-04 Chris Toshok <toshok@ximian.com>
19154 * DataGridColumnStyle.cs: set the column's readonly property
19155 initially based on the property descriptor's IsReadOnly. Fixes
19158 2006-12-04 Chris Toshok <toshok@ximian.com>
19160 * ComboBox.cs: wrap the dropdown style changing work in
19161 SuspendLayout/ResumeLayout. Fixes bug #79968.
19163 2006-12-04 Jackson Harper <jackson@ximian.com>
19165 * TextBoxBase.cs: Fix off by one, since these are one-based.
19166 * TextBox.cs: Select all the text when we get focus. The TextBox
19167 does this but the RTB does not.
19169 2006-12-04 Chris Toshok <toshok@ximian.com>
19171 * DataGridTextBoxColumn.cs: remove some spew.
19173 * DataGridColumnStyle.cs (SetColumnValueAtRow): this seems right
19174 but some part of me is saying "it shouldn't be here.." At any
19175 rate, it fixes bug #80046. Call IEditableObject.EndEdit after
19178 2006-12-04 Chris Toshok <toshok@ximian.com>
19180 * DataGridColumnStyle.cs (SetDataGrid): call CheckValidDataSource
19181 to reassign the propertydescriptor.
19183 2006-12-04 Jackson Harper <jackson@ximian.com>
19186 * TextControl.cs: Remove some unused variables. Maybe this will
19187 patch things up between mike and I.
19188 - don't split lines less then one char wide, if the viewport is
19189 that small text won't be visible anyways.
19191 2006-12-04 Jackson Harper <jackson@ximian.com>
19193 * TextBoxBase.cs: Default selection length is -1, need to do some
19194 more testing on windows to see when this is used for the property.
19195 - Redid the Lines [] property to that we properly remove soft line
19197 - added support for preserving carriage returns
19198 - CanUndo is not a variable like 'is undo enabled' it just returns
19199 true if there is undo operations available.
19200 - AppendText doesn't need to grab the last tag itself anymore,
19201 this happens automatically when we move the cursor.
19202 * TextControl.cs: Add CompoundActions to the undo class. This
19203 allows combining the other operations into one big option. ie a
19204 paste will combine { delete old, insert new, move cursor }
19205 - Add InsertString undo operation
19206 - New method for deleting multiline text
19207 - Add carriage returns to lines. So we can preserve carriage
19208 returns when text is 'roundtripped'
19210 2006-12-04 Chris Toshok <toshok@ximian.com>
19212 * DataGrid.cs (CalcCellsArea): cells_area.Width/Height are at a
19213 minimum 0. Fixes the scrollbar exception in bug #80136.
19215 2006-12-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
19218 * MdiWindowManager: Removed unused fields and methods.
19220 2006-12-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
19222 * StatusBar.cs: Update all panels when a AutoSize=Contents
19223 panel needs updating.
19225 * StatusBarPanel.cs: Remove twidth and only use initialize.
19228 2006-12-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
19230 * Form.cs: When a form's MdiParent is set add it directly
19231 on top of the z-order in stead of relying on MdiClient's
19232 ActivateChild to do it. Fixes #80135.
19235 - Remove original_order, mdi_child_list is already doing
19237 - Create mdi_child_list on construction in
19238 stead of first use (avoids a few null checks).
19240 * MenuItem.cs: Use an already existing list of mdi children
19241 to get the correct order of children and remove the other
19244 2006-12-04 Chris Toshok <toshok@ximian.com>
19246 * PropertyGridView.cs: cached_splitter_location is only used in
19247 !DOUBLEBUFFER code.
19249 * PropertyGrid.cs: implement the ComComponentNameChanged event
19250 using Events, hoping that would fix the warning. Looks like a
19251 compiler bug instead (#80144).
19253 * PropertyManager.cs: remove unused method.
19255 2006-11-04 Everaldo Canuto <everaldo@simios.org>
19257 * ThemeWin32Classic.cs: Dont draw arrow when menuitem on menubar,
19258 include parentesis to fix expression evaluation. Fixes #79634.
19260 2006-11-02 Everaldo Canuto <everaldo@simios.org>
19263 - Changes to fix behavior in Menu control, some reported in #80097
19264 and other detected during behavior refactory like a select event
19266 - Remove unneded "if's" conditions.
19267 - Created an internal to flag when popup is active in control, we need
19268 it because in .NET you can have menu active but without popup active
19269 when you active menu using popup without visible items.
19270 - Mimic win32 behavior for Select and Popup events.
19271 - Dont open popup menu when you dont have visible subitems.
19272 - Do nothing when click on disabled menu item.
19273 - Some small changes to follow the coding style guidelines.
19274 - Unselect menu only when another control gives focus. Fixes #80097.
19275 - Remove unused code.
19277 * MenuItem.cs: internal VisibleItems method to check if menu
19278 theres visible subitems, it will be usefull to fix some
19279 behavior in Menu control.
19281 2006-11-01 Everaldo Canuto <everaldo@simios.org>
19283 * Timer.cs: Tag property for 2.0 profile.
19285 2006-12-01 Chris Toshok <toshok@ximian.com>
19287 [ after removing all warning suppressions, this cleans up over 100 warnings. ]
19289 * Win32DnD.cs: comment out some unused fields.
19291 * XplatUIWin32.cs: comment out some unused pinvokes, and remove
19292 some unused properties/methods.
19294 * XplatUIX11.cs: fix MousePosition so we override the base class's
19295 property instead of conflicting with it.
19297 * PictureBox.cs: comment out some unused fields
19299 * OSXStructs.cs: make some struct fields public.
19301 * XplatUIOSX.cs: comment out some unused pinvokes, and fix
19302 MousePosition so we override the base class's property instead of
19303 conflicting with it.
19305 * X11Dnd.cs: comment out some unused fields
19307 * X11DesktopColors.cs: fix some struct field visibility to quiet
19310 * X11Dnd.cs: remove some debug code.
19312 * ThemeClearlooks.cs: comment out unused field.
19314 * ThemeNice.cs: mark some methods as overriding ThemeWin32Classic as needed.
19316 * ThemeGtk.cs: comment out some unused pinvokes.
19318 * Timer.cs: remove some unused fields.
19320 * ThemeClearlooks.cs: comment out unused field.
19322 * UpDownBase.cs: comment out unused field.
19324 * DataObject.cs: comment out unused field.
19326 * DataGridBoolColumn.cs: reomve unused field.
19328 * DataGrid.cs: remove unused field.
19330 * Cursor.cs: remove old ToBitmap code.
19332 * ControlPaint.cs: remove unused method.
19334 * ScrollBar.cs: remove unused fields.
19336 * ComboBox.cs: remove unused field, and chain up to
19337 AccessibleObject ctor.
19339 * ListBox.cs: remove unused field.
19341 * ButtonBase.cs: wrap a couple fields in NET_2_0.
19343 * GridEntry.cs: remove unused fields.
19345 * Binding.cs: remove unused fields.
19347 * AxHost.cs: remove unused method.
19349 * ContainerControl.cs: remove unused field.
19351 * ScrollableControl.cs: remove unused fields.
19353 2006-12-01 Chris Toshok <toshok@ximian.com>
19355 * XplatUI.cs, XplatUIWin32.cs, XplatUIGTK.cs: nuke
19356 the Where/WhereString stuff. it's easy enough to CWL
19357 Environment.StackTrace.
19359 * XplatUIX11.cs: same, but also fix up a lot of mcs warnings about
19360 unused private fields.
19362 2006-12-01 Jackson Harper <jackson@ximian.com>
19364 * TextControl.cs: Do not update the view while inserting multiline
19365 text. If we update the view we might wrap lines, before entering
19366 the new lines, which causes the new line insertion calculations to
19367 be totally fubared.
19368 - Remove an old TODO
19369 - Make debug output a little nicer
19371 2006-12-01 Chris Toshok <toshok@ximian.com>
19373 * ToolBar.cs: revert the ImeMode fix here and add an XXX comment.
19375 2006-12-01 Chris Toshok <toshok@ximian.com>
19377 [ fix the majority of the CS0108 warnings we've been suppressing ]
19379 * TreeView.cs: mark BackgroundImageChanged as 'new'.
19381 * ToolBar.cs: ImeMode just passes stuff to Control. Rename Layout
19382 to "LayoutToolBar" to quiet mcs.
19384 * TabControl.cs: mark our ControlCollection class as 'new'.
19386 * TextBoxBase.cs: mark some events as 'new'.
19388 * Splitter.cs: TabStop is 'new'.
19390 * ControlBindingsCollection.cs: mark a few methods as new since
19391 they change the visibility from protected to public.
19393 * RadioButton.cs: DoubleClick -> base class, and remove unused
19396 * MonthCalendar.cs: ImeMode property -> base class, and mark many
19399 * NumericUpDown.cs: TextChanged -> base class.
19401 * CheckedListBox.cs: mark our ObjectCollection class as new to
19404 * FolderBrowserDialog.cs: make HelpRequest event new and have it
19405 muck with the base class.
19407 * StatusBar.cs: fix some mcs warnings about Update being the same
19408 name as a base class method.
19410 * RichTextBox.cs: mark some events as new, and make them do things
19411 to the base class impl.
19413 * UserControl.cs: mark TextChanged as new, and have it manipulate
19416 * UpDownBase.cs: mark some things new.
19418 * CheckBox.cs: mark DoubleClick "new", and add some text about
19419 what we need to look at.
19421 * Panel.cs: make the events "new", and manipulate the base
19422 version. these are just here for attributes.
19424 * AccessibleObject.cs: make owner private.
19426 * Control.cs: deal with AccessibleObject.owner being private.
19427 cache our own copy if we need it.
19429 * Button.cs: add "new" to the DoubleClickEvent.
19431 * ListBox.cs: no need to track our own has_focus here. let
19432 Control.has_focus do it for us. Also some other work to clear up
19433 warnings about not overriding base class methods of the same name.
19435 * ComboBox.cs: clear up some warnings about not override base
19436 class methods of the same name.
19438 2006-12-01 Chris Toshok <toshok@ximian.com>
19440 * Form.cs: flag a few things as "new" to quiet some of the mcs
19445 * PrintPreviewDialog.cs: same.
19447 * DataGridView.cs: fix a ton of corcompare warnings. not all, but
19448 now DGV isn't so horrible on the class status page. also, move
19449 all events to using System.ComponentModel.EventHandlerList. my
19452 2006-12-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
19454 * MdiWindowManager.cs:
19455 - Set form to active mdi child if shown,
19456 and update the active mdi child to the next
19457 remaining child in the z-order if the form is hidden.
19460 - Track if the form has been visible and if its
19461 visibility is beeing changed, so that the MdiClient
19462 can properly decide the ActiveMdiChild. The MdiClient
19463 cannot track this since the form can change visibility
19464 before MdiClient is created.
19467 - Don't activate anything of the parent form is changing
19469 - Rework ActiveMdiChild to only return visible mdi
19470 children and take into account several other corner
19473 2006-12-01 Chris Toshok <toshok@ximian.com>
19475 * IBindableComponent.cs: new 2.0 interface.
19477 2006-12-01 Gert Driesen <drieseng@users.sourceforge.net>
19479 * DataGrid.cs: Font for caption area is bold by default.
19481 2006-12-01 Everaldo Canuto <everaldo@simios.org>
19483 * Menu.cs: Tag property for 2.0.
19485 2006-11-01 Everaldo Canuto <everaldo@simios.org>
19487 * ThemeWin32Classic.cs: Adjust menu separator drawing.
19489 2006-12-01 Chris Toshok <toshok@ximian.com>
19491 * TreeView.cs: doh, the Begin* events should be
19492 TreeViewCancelEventHandler.
19494 2006-12-01 Chris Toshok <toshok@ximian.com>
19496 * Form.cs: Form.ControlCollection already stores off the
19497 form_owner field. don't access the base class's internal "owner"
19500 * Control.cs: make all the fields in Control.ControlCollection
19501 private. there's no need for any internal fields here.
19503 2006-12-01 Chris Toshok <toshok@ximian.com>
19505 * DataGrid.cs: call SetDataSource instead of CalcGridAreas in
19506 OnHandleCreated. Fixes bug #80109.
19508 2006-12-01 Chris Toshok <toshok@ximian.com>
19510 * Button.cs, PropertyGridTextBox.cs, ComboBox.cs,
19511 SplitContainer.cs, Control.cs, StatusStrip.cs,
19512 DataGridTableStyle.cs, MenuItem.cs, DomainUpDown.cs, ImageList.cs,
19513 NumericTextBox.cs, NumericUpDown.cs, Panel.cs, CommonDialog.cs,
19514 DataGrid.cs, ScrollBar.cs, TrackBar.cs, PictureBox.cs,
19515 DateTimePicker.cs, StatusBar.cs, Form.cs, PrintPreviewDialog.cs,
19516 Label.cs, UserControl.cs, CheckBox.cs, RadioButton.cs,
19517 LinkLabel.cs, ListControl.cs, PropertyGrid.cs, Splitter.cs,
19518 MenuStrip.cs, FolderBrowserDialog.cs, NotifyIcon.cs,
19519 TextBoxBase.cs, ListView.cs, DataGridBoolColumn.cs,
19520 PrintPreviewControl.cs, RichTextBox.cs, ListBox.cs, TabControl.cs,
19521 DataGridColumnStyle.cs, ContextMenu.cs, TreeView.cs:
19523 do most of the work to convert our code over to use
19524 System.ComponentModel.Component.Events for
19525 adding/removing/dispatching events.
19528 2006-11-30 Jonathan Pobst <monkey@jpobst.com>
19530 * DataGridView.cs: Fix an ArgumentNullException reported
19531 twice today in IRC.
19533 2006-11-30 Mike Kestner <mkestner@novell.com>
19535 * ComboBox.cs: fix the scrollbar mouse event forwarding in the
19536 grabbed listbox. Fixes #80036 and #80101.
19538 2006-11-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
19540 * Message.cs: Changed ToString() to match MS.
19542 2006-11-30 Jackson Harper <jackson@ximian.com>
19544 * TextBoxBase.cs: You can still change the selected text on a read
19546 * TextControl.cs: Lower magic number for wrap calculations. This
19547 lets text get closer to the right (far) edge.
19549 2006-11-30 Jonathan Pobst <monkey@jpobst.com>
19551 * Control.cs: Tweak 2.0 layout properties.
19552 * Form.cs: Switch ToolStripMenuTracker hooks to ToolStripManager.
19553 * TextRenderer.cs: Add a new overload.
19554 * ToolStrip*: Huge amount of changes and new features.
19556 2006-11-30 Mike Kestner <mkestner@novell.com>
19558 * ComboBox.cs: fixes for LargeChange and Maximum to get the
19559 scroll range correct. Fixes #79994.
19561 2006-11-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
19563 * MdiWindowManager.cs: Update main form's text when
19564 a form is closed. (fixes #80038)
19566 2006-11-30 Everaldo Canuto <everaldo@simios.org>
19569 - Fix an regression in ButtonSize.
19570 - Get ImeMode default value change to "Disable".
19571 - Get ShowTooltips default value change to true, default value is
19572 "false" but after make a test in .NET we get "true" result as default.
19574 2006-11-29 Jonathan Pobst <monkey@jpobst.com>
19576 * ToolStripDropDown.cs: Fix for SupportsTransparency change.
19578 2006-11-29 Chris Toshok <toshok@ximian.com>
19580 * XplatUIWin32.cs (GetWindowTransparency): check return value of
19581 GetLayeredWindowAttributes. if it's 0, return 1.0, as
19582 SetWindowTransparency hasn't been called.
19584 2006-11-29 Chris Toshok <toshok@ximian.com>
19586 * Form.cs (set_TransparencyKey): only call SetWindowTransparency
19588 (set_AllowTransparency): reorder things a little so that the
19589 WS_EX_LAYERED style is removed properly.
19591 2006-11-29 Chris Toshok <toshok@ximian.com>
19593 [ totally cosmetic eye-candy feature, fixes bug #80089 ]
19595 * Form.cs: only call the XplatUI transparency method (get/set) if
19596 SupportsTransparency says it's supported. Otherwise fallback to
19597 doing nothing (in the set case) or returning the instance field we
19598 cache (in the get case).
19600 * XplatUIStructs.cs: add TransparencySupport flag enum.
19602 * XplatUIDriver.cs: add abstract GetWindowTransparency, and track
19603 change to SupportsTransparency.
19605 * XplatUIOSX.cs: stub out GetWindowTransparency, and return
19606 TransparencySupport.None from SupportsTransparency.
19608 * XplatUIX11.cs: Stub out GetWindowTransparency, and return
19609 TransparencySupport.Set from SupportsTransparency.
19611 * XplatUIWin32.cs: implement GetWindowTransparency calling
19612 GetLayeredWindowAttributes, and implement SupportsTransparency by
19613 checking whether or not both
19614 GetWindowTransparency/SetWindowTransparency are available
19615 entrypoints. We need to do this since SetWindowTransparency is
19616 available as of win2k, but GetWindowTransparency requires winxp.
19619 * XplatUI.cs: Add GetWindowTransparency, and change
19620 SupportsTransparency to allow for either/both Get/Set.
19622 2006-11-29 Chris Toshok <toshok@ximian.com>
19624 * DataGrid.cs: keep from going into an infinite loop redrawing a
19625 datagrid that has no datasource. Fixes bug #80033.
19627 2006-11-29 Chris Toshok <toshok@ximian.com>
19629 * MenuItem.cs: fix the NRE when we assign text (and therefore call
19630 Invalidate) before the mainmenu has been assigned to a control.
19632 2006-11-29 Chris Toshok <toshok@ximian.com>
19634 * DataGrid.cs: detect when we should be double the double click
19635 row/column autosize stuff, although that codepath has yet to be
19636 written. part of the work for bug #79891.
19638 2006-11-29 Chris Toshok <toshok@ximian.com>
19640 * Binding.cs (SetControl): fix unit test.
19642 2006-11-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
19644 * PageSetupDialog.cs: Validate the margins and set them in
19646 * NumericTextBox.cs: New class to mimic the behavior of the
19647 textboxes used in the printing dialogs.
19649 2006-11-29 Andreia Gaita <avidigal@novell.com>
19651 * Form.cs: Revert previous change (remove call UpdateBounds
19652 from form constructor), because it messes with the handle creation
19653 order, and that one needs lots and lots of love.
19654 * PrintPreviewDialog.cs: Revert change to CreateHandle (add check
19655 for valid printer and throw InvalidPrinterException if document
19656 is set but printer not valid), adding a MonoTODO. Once
19657 handle creation is done properly, we can put this back in.
19659 2006-11-28 Everaldo Canuto <everaldo@simios.org>
19661 * MenuItem.cs: Create a invalidate method for menu item, to be
19662 calling from set text, it make text changes to imadiate update
19663 on screen. Fixes #80013.
19665 2006-11-28 Everaldo Canuto <everaldo@simios.org>
19667 * ToolBar.cs: Fixes and simplify toolbar button layout, it
19668 fixes bug #80070 and some other problem on toolbar buttons
19671 2006-11-28 Everaldo Canuto <everaldo@simios.org>
19673 * ThemeWin32Classic.cs: Paint toolbar toggle button background
19674 with dotted brush. Fixes #79564
19676 2006-11-28 Andreia Gaita <avidigal@novell.com>
19678 * Form.cs: Removed call to UpdateBounds on Form
19679 constructor, it was causing a call to CreateHandle
19680 before it was supposed to.
19681 * PrintControllerWithStatusDialog: Applied patch
19682 by Chris Toshok to hide controller when there are
19683 no printers available.
19684 PrintDialog.cs: initialize printer settings to
19685 null - correct DefaultValues test #5
19686 * PrintPreviewControl.cs: Move PrintController
19687 initialization to GeneratePreview
19688 * PrintPreviewDialog.cs:
19689 - Remove Preview generation from Document_set(). It is
19691 - Throw InvalidPrinterException on CreateHandle if
19692 a Document is set but there are no printers or
19693 printer is not valid.
19694 * ThemeWin32Classic: don't paint PrintPreviewControl
19695 if there is nothing to paint
19697 2006-11-28 Miguel de Icaza <miguel@novell.com>
19699 * Form.cs: Add another popular method.
19701 * TabPage.cs: ditto.
19703 2006-11-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
19705 * MenuItem.cs: Fixed a warning.
19706 * InternalWindowManager: Fixed a warning.
19708 2006-11-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
19711 - When cloning a menu also clone MdiList and clone the
19712 window menu items properly (as the forms and menuitems
19713 are kept in an internal hashtable, these need updating
19715 - Rewrote the window menu code, menu items are added in the
19716 order the forms were added to their parent, and they are
19717 updated every time the window menu is shown (before the
19718 list was only generated once, in the current order of the
19719 forms, and would never be updated). A checkmark is shown
19720 next to the item corresponding to the active mdi child.
19722 2006-11-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
19724 * XplatUIStructs.cs:
19725 - Added WM_NCMOUSEHOVER and WM_NCMOUSELEAVE.
19728 - Added TME_NONCLIENT to TMEFlags.
19729 - Handles WM_NCMOUSEMOVE in GetMessage to
19730 generate WM_NCMOUSEHOVER and WM_NCMOUSELEAVE messages.
19732 * MdiWindowManager:
19733 - Now merges mdi child menu to parent menu when maximized.
19734 - Recalculate NC areas of both mdi child and mdi parent.
19736 on window state and size changes.Fixes #79844 (3).
19737 - Handle WM_NCCALCSIZE to properly calculate borders.
19740 - Add/remove to the mdi containers list of mdi children
19741 in the order they are added.
19742 - Pass on WM_NCLBUTTONUP, WM_NCMOUSEMOVE and WM_NCMOUSELEAVE
19743 to the maximized mdi child.
19745 * InternalWindowManager.cs:
19746 - Only execute a click on the control buttons on the mouse up,
19747 not on the mouse down. Show the state of the button
19748 (was only showing Normal state, never Pressed state). The
19749 pressed button now follows the mouse (if you click the Close
19750 button and move the mouse over the Maximize button, the
19751 Maximize button will be shown as pressed). Since Win32 does
19752 not generate WM_NCLBUTTONUP if you release the button outside
19753 of the nc area, we need to handle WM_NCMOUSELEAVE and treat
19756 * ThemeWin32Classic.cs:
19757 - Draw a missing border around mdi child forms. Fixes #79844 (2).
19760 - Added a list of forms which contains the order the forms are
19761 added to the mdi parent.
19762 - Handle WM_NCPAINT to properly draw a 3D border. Fixes #79844 (2).
19763 - Handle WM_NCCALCSIZE to properly calculate the 3D border.
19764 - If the active form changes set the scrollbars to the top
19765 of the Z order, otherwise the form could hide them.
19766 - Scrollbars are now sized according to ClientSize, not
19767 to Size, and they take into account the other scrollbar
19768 to determine maximum.
19770 2006-11-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
19773 * XplatUIDriver.cs:
19777 - Added RequestAdditionalWM_NCMessages for windows to
19778 opt in for WM_NCMOUSELEAVE and WM_NCMOUSEHOVER.
19779 Currently only implemented in XplatUIWin32.
19781 2006-11-27 Chris Toshok <toshok@ximian.com>
19783 * Hwnd.cs: only add the hwnd to the windows hash in
19784 set_WholeWindow and set_ClientWindow if whole_window/client_window
19785 are not IntPtr.Zero. also, remove the unused SetObjectWindow.
19787 2006-11-27 Mike Kestner <mkestner@novell.com>
19789 * ComboBox.cs: remove redundant OnDropDown call. It is called
19790 from the ComboListBox.ShowWindow code. Fixes #79969.
19792 2006-11-27 Chris Toshok <toshok@ximian.com>
19794 * Hwnd.cs: remove the setters for ExposePending and
19795 NCExposePending - noone uses them.
19797 2006-11-27 Jackson Harper <jackson@ximian.com>
19799 * TextControl.cs: new param for ReplaceSelection which determines
19800 whether we select the new selection, or set the cursor to the end
19801 of the new selection.
19802 * TextBoxBase.cs: Use new param for ReplaceSelection. When
19803 pasting, select the new text.
19804 * RichTextBox.cs: Use new param for ReplaceSelection.
19806 2006-11-27 Jackson Harper <jackson@ximian.com>
19808 * TextBoxBase.cs: Set the selection to the caret after the caret
19809 is moved, otherwise they get out of sync.
19811 2006-11-26 Everaldo Canuto <everaldo@simios.org>
19813 * ToolBar.cs: Fixe size of ToolBar when AutoSize is false,
19816 2006-11-26 Everaldo Canuto <everaldo@simios.org>
19818 * ThemeWin32Classic.cs:
19819 - Fix toolbar drop down arrow position.
19820 - Fix drop down appearance when ToolBar.Appearance is normal,
19823 2006-11-26 Gert Driesen <drieseng@users.sourceforge.net>
19825 * ProgressBar.cs: GetStyle fixes for 2.0 profile.
19826 * Control.cs: Same.
19827 * UpDownBase.cs: Same.
19828 * ButtonBase.cs: Same.
19829 * ScrollBar.cs: Same.
19830 * TrackBar.cs: Same.
19831 * PictureBox.cs: Same.
19832 * UserControl.cs: Same.
19834 * ListControl.cs: Same.
19835 * TextBoxBase.cs: Same.
19836 * ListView.cs: Same.
19837 * RichTextBox.cs: Same.
19838 * TreeView.cs: Same.
19840 2006-11-25 Jordi Mas i Hernandez <jordimash@gmail.com>
19843 - Text label for where
19844 - Text label comment was not shown
19846 2006-11-23 Everaldo Canuto <everaldo@simios.org>
19848 * ThemeWin32Classic.cs: Fix toolbar drop down arrow size.
19850 2006-11-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
19852 * InternalWindowManager.cs:
19853 - Handle WM_PARENTNOTIFY to activate the form
19854 if any child control is clicked.
19855 - The form is only sizable if not minimized.
19857 * MdiWindowManager.cs:
19858 - Save the IconicBounds if the form is moved.
19859 - Rework SetWindowState, now the window bounds
19860 are stored only if the old window state is Normal.
19863 - In SetWindowStates store the old window state if
19864 the window is maximized and restore window state if
19865 the window looses focus.
19866 - Don't handle any scrollbar value changes if
19867 initializing the scroll bars. Fixes #79771.
19868 - Reworked ArrangeIconicWindows. Current algorithm
19869 tests bounds agains all other minimized windows, if
19870 any intersections create new bounds (going left to
19871 right, bottom to top) and then test again. When
19872 successful the bounds are saved and never computed
19873 again. Fixes #79774.
19875 2006-11-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
19877 * InternalWindowManager.cs: Added HandleTitleBarUp.
19879 2006-11-23 Gert Driesen <drieseng@users.sourceforge.net>
19881 * NumericUpDown.cs: In .NET 1.1, user entered text is still
19882 hexadecimal in ParseUserEdit.
19885 2006-11-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
19887 * MdiWindowManager.cs:
19888 - Handle a click on the form's icon to show the
19889 system menu (when maximized). Fixes #79775.
19890 - Change the existing click handler for the form's
19891 icon when not maximized to show on MouseUp.
19894 * Form.cs: In OnResize only layout the mdi child's
19895 parent if it actually has a parent. Might not if
19896 the window is closing.
19899 2006-11-23 Gert Driesen <drieseng@users.sourceforge.net>
19901 * MdiClient.cs: Ignore active MDI client for text of parent, if
19902 child has no text set.
19904 2006-11-23 Gert Driesen <drieseng@users.sourceforge.net>
19906 * ToolBar.cs: Fixed ToString to match MS.
19908 2006-11-22 Andreia Gaita <avidigal@novell.com>
19911 - Fix DecimalPlaces, Hexadecimal and ThousandsSeparator to
19912 update inner values on set. Fixes #79966.
19913 - Override OnLostFocus to update value on NET 2. Fixes #79950.
19914 - Fix hexadecimal parsing.
19916 * UpDownBase: Override OnGotFocus and OnLostFocus to notify
19917 parent. Fixes #79957
19919 2006-11-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
19921 * Control.cs: After calling SetWindowsPos in SetBoundsCore
19922 the actual size has to be queried, since if height /
19923 width is negative Win32 changes it to 0.
19924 Fixes #79999 on Windows.
19926 * XplatUIX11.cs: Set height / width to 0 if negative
19927 in SetWindowPos. Fixes #79999 on Linux.
19929 2006-11-22 Everaldo Canuto <everaldo@simios.org>
19931 * ThemeWin32Classic.cs: Fix text redenring when button is
19934 2006-11-22 Everaldo Canuto <everaldo@simios.org>
19936 * MenuAPI.cs: Fixes behavior when menu is opened by kerboard
19937 and later navigate by mouse. Fixes #79528.
19939 2006-11-21 Everaldo Canuto <everaldo@simios.org>
19941 * ToolBar.cs: Set default value for TabStop to false in
19942 constructor, it fixes remaining behavior of bug #79863.
19944 2006-11-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
19946 * MdiWindowManager.cs:
19947 * InternalWindowManager.cs:
19948 - Moved a few methods specific to Mdi from
19949 InternalWindowManager to MdiWindowManager.
19952 2006-11-21 Chris Toshok <toshok@ximian.com>
19954 * XplatUIOSX.cs: stub out InvalidateNC.
19956 * XplatUIWin32.cs: implement InvalidateNC using the call I found
19957 at http://www.dotnet247.com/247reference/msgs/58/292037.aspx.
19959 * XplatUIX11.cs: rename InvalidateWholeWindow to InvalidateNC.
19961 * XplatUIDriver.cs: add InvalidateNC abstract method.
19963 * XplatUI.cs: add InvalidateNC.
19965 2006-11-21 Everaldo Canuto <everaldo@simios.org>
19967 * ToolBar.cs: Invalidate complete button area when pressed status
19969 * ToolButton.cs: Fix InvalidateBorder for DropDown buttons.
19970 * ThemeWin32Classic.cs: Increase vertical and horizontal position
19971 by 1 when button is pressed.
19973 2006-11-20 Everaldo Canuto <everaldo@simios.org>
19975 * ToolButton.cs: Invalidate middle of DropDown button when
19976 ToolBar theres DropDownArrows.
19977 * ThemeWin32Classic.cs: Change position of DropDown arrow and
19978 fix DropDown drawing operations.
19980 2006-11-20 Chris Toshok <toshok@ximian.com>
19982 * NativeWindow.cs: fix the formatting of functions ('{' on the
19983 following line), and enable the thread exception dialog.
19985 * Application.cs: remove the duplicate exception catching from
19988 2006-11-20 Everaldo Canuto <everaldo@simios.org>
19990 * Toolbar.cs: Triggers button click event when click on icon
19991 of dropdown ToolBarButton. Fixes #79912.
19993 2006-11-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
19996 * ThemeWin32Classic.cs:
19997 - Added a property WindowBorderFont to enable themeing
19998 of mdi child windows' Text.
20000 2006-11-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
20002 * InternalWindowManager.cs:
20005 * MdiWindowManager.cs:
20006 - If mdi child is maximized, set mdi parent's
20007 text to "Parent - [Child]". Fixes #79770.
20008 - If there is any maximized mdi child windows, only the active
20009 window (and any new windows) is maximized, the rest are normal.
20010 - On a WindowState change only save mdi child's window bounds
20011 if the old window state was normal. Fixes #79774.
20012 - The scroll bars are now calculated on hopefully all
20013 necessary events. Fixed #79771 / #79844->6 / #79906.
20014 - MdiClient.SizeScrollBars() now takes into account docked
20015 controls in the parent when calculating available space.
20016 - InternalWindowManager now always repaints the entire title
20017 area. Fixes #79844->1/4/5.
20018 - Added RequestNCRecalc on mdi child windowstate changes.
20021 2006-11-20 Mike Kestner <mkestner@novell.com>
20023 * ComboBox.cs: setup LargeChange on the scrollbar. Invoke FireMouseUp
20024 in the MouseUp handler of the listbox and move the return handling
20025 code to FireMouseUp to avoid scrolling on ups. Fixes #79952.
20027 2006-11-20 Everaldo Canuto <everaldo@simios.org>
20029 * Toolbar.cs: Ignore right mouse clicks in toolbar. Fixes #79855.
20031 2006-11-17 Alexander Olk <alex.olk@googlemail.com>
20033 * MimeIcon.cs: Seems that DllImports that were fine in 1.2 are not
20034 working in 1.2.x anymore. So, updated.
20036 2006-11-19 Gert Driesen <drieseng@users.sourceforge.net>
20038 * NumericUpDown.cs: Use NegativeSign, NumberDecimalSeparator and
20039 NumberGroupSeparator of current culture instead of assuming en-US.
20042 2006-11-17 Mike Kestner <mkestner@novell.com>
20044 * Control.cs: Add the concept of implicit bounds setting so that
20045 dock/undock round trips preserve explicitly set size/locations.
20048 2006-11-17 Alexander Olk <alex.olk@googlemail.com>
20050 * FileDialog.cs: Trim all filters, otherwise DirInfo.GetFiles
20051 can't handle those filters. (Fixes bug #79961)
20053 2006-11-17 Chris Toshok <toshok@ximian.com>
20055 [ fixes the exit/crashes associated with #79835. it's clearly
20056 suboptimal though, we need to figure out a better way to solve
20059 * PrintPreviewControl.cs: deal with the new invalid printer
20062 * PageSetupDialog.cs: if the printer is invalid, pop up a dialog
20063 and return false (so CommonDialog.ShowDialog doesn't actually show
20066 * PrintDialog.cs: enable/disable the Ok button depending on
20067 whether or not the printer is valid.
20069 * CommonDialog.cs (ShowDialog): only actually show the form if
20070 RunDialog returns true.
20072 2006-11-17 Jackson Harper <jackson@ximian.com>
20074 * TextControl.cs: When soft splitting a line, mark it as a soft
20075 split line. Also carry over the current line break to the next
20078 2006-11-17 Chris Toshok <toshok@ximian.com>
20080 * XplatUIX11.cs: when scrolling a window with an invalid area, we
20081 only want to shift the part of the invalid area that overlaps the
20082 area we're scrolling. we also don't want to clear the invalid
20083 area unless the invalid area was entirely contained within the
20086 2006-11-16 Chris Toshok <toshok@ximian.com>
20088 * XplatUIX11.cs: remove the handling of the TimerEvent stuff, and
20089 also make sure to free the memory returned by XGetWindowProperty
20092 * X11Structs.cs: remove the TimerEvent stuff, it's unused.
20094 2006-11-16 Chris Toshok <toshok@ximian.com>
20096 * XplatUI.cs: add a new super secret way to get at the totally
20097 unsupported X11 backend.
20099 2006-11-16 Gert Driesen <drieseng@users.sourceforge.net>
20101 * NumericUpDown.cs: Allow lowercase letters when in hex-mode.
20103 2006-11-16 Jackson Harper <jackson@ximian.com>
20105 * TreeView.cs: Allow more explicit setting of top node position
20106 for scrollbars. Slower algo, but more accurate.
20107 - CollapseAll should maintain the current top node.
20108 * TextBoxBase.cs: When positioning the caret, use the line, pos
20109 method, since the x, y method does not grab the correct tag, and
20110 the caret height never gets set correctly. (Maybe I should just do
20111 away with the caret having its own height, and always use the
20112 carets current tag for height).
20114 2006-11-16 Jonathan Pobst <monkey@jpobst.com
20116 [Fixes 79778, 79923]
20118 * XplatUIWin32.cs: Don't allow a parent to be set to IntPtr.Zero.
20119 Parent to the FosterParent instead.
20121 2006-11-16 Jackson Harper <jackson@ximian.com>
20123 * TreeView.cs: Need to recalc the topnode when we expand or
20124 collapse. The scrolling methods can't handle this on their own,
20125 since they use differences between the last scroll position, and
20126 those difference get completely messed up since we are expanding
20127 nodes. This problem should probably be fixed in the scrolling
20128 methods, so they can figure out exactly where they are, but this
20129 will slow things down a little.
20130 * ThemeWin32Classic.cs: Special case for groupboxes with empty
20131 strings, makes nunit-gui look a lot nicer.
20133 2006-11-16 Chris Toshok <toshok@ximian.com>
20135 * XplatUIX11.cs: nasty, nasty, nasty changes required because of
20136 the broken multithreaded event handling we have in here. File
20137 this entry under "Why we should move to the new X11 backend".
20139 Any thread can make it into UpdateMessageQueue, which gets events
20140 from the X socket - some of which could belong to hwnds being
20141 managed by a different thread. We can also have multiple threads
20142 in UpdateMessageQueue at the same time, with each one reading from
20143 the X socket. This leads to many problems, with the following
20146 We can't use hwnd.Queue.Enqueue anywhere in here and must use
20149 The MotionNotify compression we do can't work across threads
20150 (without locking the entire queue, perhaps) since we call
20151 hwnd.Queue.Peek, so we just punt and don't compress motion events
20152 unless the owning thread is the one which got the X event.
20154 ConfigureNotify is another fun one, since it modifies the hwnd's
20155 bounds and then enqueues the event. We add a lock to Hwnd which
20156 is held when setting configure_pending to true (and enqueuing the
20159 There is a race wrt the wake socket. we need to make sure that
20160 only 1 thread is waiting on that socket, or else a thread could
20161 sleep waiting for data that never comes. It's difficult (but not
20162 impossible) to make happen, because it seems to require something
20163 like the following:
20165 1. Thread 1 polls on wake_receive
20167 2. poll returns saying there's data to be read on
20170 3. Thread 2 polls on wake_receive and immediately returns
20171 saying there's data to be read.
20173 4. Thread 2 reads the wakeup byte from wake_receive
20175 5. Thread 1 attempts to read the wakeup byte from
20178 6. Thread 2 exits (due to a form closing, perhaps).
20180 7. Thread 1 blocks forever.
20184 Fixing the Expose handling isn't done yet, and the races inherent
20185 in that piece of code are responsible for the drawing mistakes you
20186 see when generating expose events in a MT app (like NPlot). This
20187 one is the likely to be the hardest to bandaid, and it doesn't
20188 appear to cause anything but drawing problems. The other issues
20189 caused apps to exit or hang.
20191 * XEventQueue.cs: output some spew when Dequeue/Enqueue/Peek are
20192 called from a different thread than the one that should be calling
20195 * Hwnd.cs: add some locks to be used by the XplatUIX11 code.
20197 2006-11-15 Chris Toshok <toshok@ximian.com>
20199 * Application.cs: null out the context's MainForm when we exit
20200 RunLoop. Fixes a newly checked in unit test as well as the last
20201 ODE from bug #79933.
20203 2006-11-15 Chris Toshok <toshok@ximian.com>
20205 * Form.cs (set_Owner): allow a null value so we can clear the
20207 (Dispose): set all our owned_form's Owner properties to null, and
20208 clear the owned_forms collection.
20209 (WM_CLOSE): clean up this a little bit.. still not right though.
20211 * ApplicationContext.cs: OnMainFormClosed should only call
20212 ExitThreadCore if the main form isn't recreating. Fixes unit
20215 2006-11-15 Jonathan Pobst <monkey@jpobst.com>
20219 * ComboBox.cs: Set the Hwnd.no_activate flag for the ComboListBox.
20221 2006-11-15 Jonathan Pobst <monkey@jpobst.com>
20225 * Hwnd.cs: Add a flag to show a window, but not activate it, to
20226 keep popup window types from stealing focus from the main form
20229 * XPlatUIWin32.cs: Use SW_SHOWNOACTIVATE if above field is true.
20231 * MenuAPI.cs: Set above flag to true.
20233 2006-11-15 Chris Toshok <toshok@ximian.com>
20235 * XplatUIX11.cs: mimic win32 behavior on BUTTONUP events, where
20236 the button being released is not in wParam.
20238 2006-11-15 Jonathan Pobst <monkey@jpobst.com>
20240 * Form.cs: Add the released button to MouseEventArgs.Button
20241 for the OnMouseUp call to the MenuTracker. Fixes menu clicking
20244 2006-11-15 Chris Toshok <toshok@ximian.com>
20246 * XplatUIX11.cs: add (untested) a _NET_WM_NAME implementation of
20247 GetText(). untested because it's unused in our implementation.
20248 Control.Text always caches the text, even if
20249 ControlStyles.CacheText is not set.
20253 2006-11-15 Chris Toshok <toshok@ximian.com>
20257 * Form.cs: in Close() don't do anything after we send the WM_CLOSE
20258 message. no hiding, no disposing.
20260 in the WM_CLOSE handler, hide the form if it's modal.
20262 2006-11-15 Chris Toshok <toshok@ximian.com>
20264 * XplatUIX11.cs: use AddExpose instead of sending a message.
20265 fixes textbox border drawing.
20267 2006-11-15 Chris Toshok <toshok@ximian.com>
20269 * PropertyGridView.cs: keep from crashing on mouse move/down when
20270 the property grid is empty.
20272 2006-11-14 Jackson Harper <jackson@ximian.com>
20274 * TextControl.cs: Make PageUp and PageDown more like the MS
20276 * TextBoxBase.cs: When we set the text property position the
20277 cursor at the beginning of the document.
20279 2006-11-14 Rolf Bjarne Kvinge <RKvinge@novell.com>
20281 * Form.cs: if a mdi child's WindowState has changed
20282 before it's creation, it would display wrong control
20285 2006-11-14 Alexander Olk <alex.olk@googlemail.com>
20287 * TreeView.cs: De-uglify TreeView checkbox checkmarks.
20290 2006-11-14 Rolf Bjarne Kvinge <RKvinge@novell.com>
20292 * XplatUIX11.cs: send a WM_NCPAINT on WM_NCCALCSIZE so that
20293 the window gets to paint its borders even if the window is
20296 * Form.cs: on a WM_NCPAINT invalidate the entire menu,
20297 otherwise the old control buttons would still be painted
20298 if the window gets bigger.
20300 * PaintEventArgs.cs: add an internal method so that the clip
20301 rectangle can be changed.
20303 2006-11-13 Chris Toshok <toshok@ximian.com>
20305 [ fixes bug #79745 ]
20307 * NotifyIcon.cs: lots of cleanup.
20309 * X11Structs.cs: add an enum for XEMBED messages.
20311 * XplatUIX11.cs: reindent one of the giant switch statements, it
20312 was taking up an additional tab stop, and this file is already way
20313 too wide for my laptop's screen.
20315 Also, add handling for the XEmbed EMBEDDED_NOTIFY message. When
20316 we get it, resize the hwnd to the WMNormalHints max_width/height.
20318 2006-11-13 Jackson Harper <jackson@ximian.com>
20320 * TextBoxBase.cs: Compute the value changes for the mouse wheel
20323 2006-11-13 Chris Toshok <toshok@ximian.com>
20325 * XplatUIX11.cs, XplatUIStructs.cs: kind of a gross fix for
20326 #79898. force a reference to the Region to stick around so the
20327 unmanaged object isn't collected (rendering our handle in the MSG
20330 2006-11-13 Chris Toshok <toshok@ximian.com>
20332 * XplatUIX11.cs: fix #79917 for window managers which support
20334 using XStoreName on the raw utf8, and we need to convert to
20335 COMPOUND_TEXT if it's non-latin1.
20337 2006-11-13 Chris Toshok <toshok@ximian.com>
20339 * Form.cs (set_DialogResult): we need to set closing to false if
20340 we're setting our result to None. fixes bug #79908.
20342 2006-11-13 Jackson Harper <jackson@ximian.com>
20344 * TextControl.cs: When formatting text, compute the adjusted tag
20345 lengths correctly, using FindTag for the end tag instead of trying
20346 to figure it out outselves.
20347 * TreeNode.cs: Use ActualItemHeight, which is the actual height of
20348 the item, ItemHeight doesn't work, because trees with large
20349 imagelists use those for their height
20350 * TreeView.cs: ActualItemHeight factors in the image height
20351 - compute left edge of checkboxes correctly
20352 - when expanding/collapsing move the bottom down one pixel, so we
20353 aren't moving part of the node
20355 2006-11-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
20357 * XplatUIX11.cs: The PaintEventArgs is also added to the drawing
20358 stack in PaintEventStart so that it won't get disposed by the gc
20359 before reaching PaintEventEnd.
20361 2006-11-13 Jackson Harper <jackson@ximian.com>
20363 * TextBoxBase.cs: Don't select the word if we are on a line with
20365 - We don't need to position the caret on mouse up, since the mouse
20366 move handler should be doing this
20367 - When double clicking a blank line, the caret is advanced to the
20370 2006-11-13 Gert Driesen <drieseng@users.sourceforge.net>
20372 * TreeNodeCollection.cs: Avoid duplicating indexer code.
20374 2006-11-12 Gert Driesen <drieseng@users.sourceforge.net>
20376 * ColorDialog.cs: Reset size of dialog between calls to ShowDialog.
20377 Fixes part of bug #79910.
20379 2006-11-11 Alexander Olk <alex.olk@googlemail.com>
20381 * ColorDialog.cs: Fix a NRE when adding a color to custom colors
20382 (bug #79903). Some minor string updates to match ms.
20384 2006-11-10 Alexander Olk <alex.olk@googlemail.com>
20386 * FileDialog.cs: Don't add an extension if the filename
20387 already ends with that extension.
20389 2006-11-10 Jackson Harper <jackson@ximian.com>
20391 * TreeView.cs: Use the currently highlighted node for the
20392 BeforeSelect event.
20393 * TextBoxBase.cs: There is no need to expand selection on
20395 - CanUndo means 'is there any undo operations', not 'is undo
20396 allowed on this textcontrol. Fixed ClearUndo unit test.
20398 2006-11-10 Andreia Gaita <shana.ufie@gmail.com>
20400 * Button.cs: only perform click when button is Selectable (so as
20401 not to activate default buttons when they're disabled)
20403 * Control.cs: Rewrite of the SelectNextControl and related
20404 methods. HandleClick now selects next control if the current one
20407 * Form.cs: OnActivated selects next active control only if Load
20408 has already occurred. If Load hasn't run, there's no point in
20409 selecting here, Load might change the state of controls.
20411 * FocusTest.cs: Tests marked as working again for these fixes
20413 2006-11-10 Chris Toshok <toshok@ximian.com>
20415 * XplatUIX11.cs: a couple of fixes.
20417 - use XInternAtoms with almost all the atoms we need to register,
20418 instead of many, many calls to XInternAtom. should help a bit on
20419 startup time, at the expense of making the code look a little
20422 - fall back to setting TransientFor on TOOLWINDOW's if their hwnd
20423 isn't reparented (which seems to be a clue that we're running fon
20424 compiz) and they have an Owner form. This fixes the tool windows
20425 in paint.net when running under compiz.
20427 - when setting the opacity of a window, support both the case
20428 where the window has been reparented and also when it hasn't been.
20429 Since compiz/beryl doesn't seem to reparent windows, and these are
20430 the only window managers which support translucency, I'm not sure
20431 why we need the hwnd.reparented case at all.. but leave it in.
20432 now we get translucent windows in paint.net under compiz/beryl.
20434 2006-11-10 Alexander Olk <alex.olk@googlemail.com>
20436 * FileDialog.cs: Always return the value for FilterIndex that
20437 was set. Internally convert it to values that make sense.
20439 2006-11-10 Everaldo Canuto <everaldo@simios.org>
20441 * ThemeWin32Classic.cs: Fix drowp down arrow borders.
20443 2006-11-10 Everaldo Canuto <everaldo@simios.org>
20445 * Toolbar.cs: Change default value of DropDownArrows to true, the
20446 signature still using false to make it compatible with MS but the
20447 initial value is true. Fixes #79855.
20449 2006-11-10 Alexander Olk <alex.olk@googlemail.com>
20451 * MimeIcon.cs: Don't throw an exception on windows. Mime stuff is
20452 only available on Linux.
20454 2006-11-09 Everaldo Canuto <everaldo@simios.org>
20456 * Toolbar.cs, ToolBarButton.cs: Fix wrong separator size and
20457 reduce number of calls to redraw method during toolbar creation.
20459 2006-11-09 Mike Kestner <mkestner@novell.com>
20461 * ListView.cs : raise SelectedIndexChanged when an item is selected
20462 programmatically via the Item.Selected property. Gert's nice
20463 ListViewSelectedIndexChanged test fixture now runs clean.
20465 2006-11-09 Mike Kestner <mkestner@novell.com>
20467 * ListView.cs : raise SelectedIndexChanged when a selected item is
20468 removed from the item collection using Remove or RemoveAt.
20470 2006-11-09 Mike Kestner <mkestner@novell.com>
20472 * ListView.cs : raise SelectedIndexChanged once per selected item
20473 for compat with MS. Fixes #79849+.
20475 2006-11-09 Chris Toshok <toshok@ximian.com>
20477 * TabControl.cs: initialize row_count to 0, and set it to 1 when
20478 we need to (if we have any tab pages). Fixes unit test.
20480 2006-11-09 Chris Toshok <toshok@ximian.com>
20482 * Label.cs (CalcPreferredWidth): if Text == "", our preferred
20483 width is 0, not 3. Fixes a unit test.
20485 2006-11-09 Mike Kestner <mkestner@novell.com>
20487 * ListView.cs : use Implicit scrollbars so that focus isn't
20488 stolen from the listview when they are clicked. Fixes #79850.
20490 2006-11-09 Chris Toshok <toshok@ximian.com>
20492 * PropertyGridView.cs (OnPaint): only call DrawGridItems if we
20493 have a root item. Fixes #79879.
20495 2006-11-09 Alexander Olk <alex.olk@googlemail.com>
20499 - An ArgumentException is now thrown if a wrong filter
20500 is applied (matches ms). The previous filter doesn't change
20501 anymore if an exception is thrown.
20502 - Changing the FileName property also affects FileNames
20503 * ColorDialog.cs: The length of the CustomColors array is always
20504 16. It doesn't matter if we use a smaller array or null to update
20505 or change the custom colors property.
20506 * FolderBrowserDialog.cs: Throw an InvalidEnumArgumentException if
20507 for RootFolder if we get a undefined value.
20509 2006-11-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
20511 * StatusBarPanel.cs:
20512 - Width is set to MinWidth if Width is smaller than
20513 MinWidth. Fixes #79842.
20514 - MinWidth now always overrides Width (MSDN says MinWidth
20515 is set to Width when AutoSize = None, but they do not
20517 - Style has now the the correct default value.
20519 2006-11-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
20522 - The control is completely invalidated on
20523 Got/LostFocus to draw the focus rectangle correctly.
20524 - When AutoSize then height is always 45 (width for
20525 vertical controls).
20527 * ThemeWin32Classic.cs: The TrackBar thumb is now centered
20528 on the mouse when moved and it doesn't move when grabbed
20529 until the mouse moves as well. Also fixed some wrong
20530 calculations when clicking on the thumb (control thought
20531 click was outside of thumb and didn't grab it).
20532 Fixes some of the issues in #79718.
20534 2006-11-08 Everaldo Canuto <everaldo@simios.org>
20536 * Toolbar.cs: Prevent disabled button to highlight. Fixes #79868.
20538 2006-11-08 Chris Toshok <toshok@ximian.com>
20540 * PropertyGridView.cs: only call ToggleValue if the item is not
20543 2006-11-08 Jackson Harper <jackson@ximian.com>
20545 * TextBoxBase.cs: The RichTextBox and textbox have very different
20546 word selection methods. Implement the textbox's simple word
20547 selection here, and let the RichTextBox override and provide it's
20549 - Don't do extra selection on mouseup
20550 * RichTextBox.cs: Use the documents word selection algorithm, I
20551 think ideally, this function will be pulled into the
20552 RichTextBox.cs code someday.
20554 2006-11-08 Chris Toshok <toshok@ximian.com>
20556 * RootGridEntry.cs: new class to represent GridItemType.Root.
20558 * CategoryGridEntry.cs: reformat, and add boilerplate.
20560 * GridEntry.cs: remove the UIParent stuff - turns out .Parent
20561 returns the UI parent anyway, and we need special handling to
20562 implement the GetTarget method in the face of it. Also, implement
20565 * PropertyGrid.cs, PropertyGridView.cs: a number of fixes. create
20566 a root grid item, and use that instead of PropertyGrid.grid_items.
20567 Also, make use of TypeConverters (and add limitted support for
20568 ICustomTypeDescriptors) when initially populating the grid.
20569 Arrays now show up more or less properly.
20571 2006-11-08 Chris Toshok <toshok@ximian.com>
20573 * Application.cs: set the modal dialog to non modal after we close
20574 it. Fixes bug #79866.
20576 2006-11-08 Jackson Harper <jackson@ximian.com>
20578 * TextControl.cs: When combining lines carry over the line end
20579 style from the end line.
20580 - Invalidate the selected area when setting it, if it is visible.
20581 * TextBoxBase.cs: Only rich text box can do full line selects.
20582 - Make sure to set the cursor position when there is a click,
20583 otherwise two clicks in separate areas could cause a large chunk
20586 2006-11-07 Everaldo Canuto <everaldo@simios.org>
20588 * Toolbar.cs: Release flat button borders when Toolbar lost focus.
20591 2006-11-07 Everaldo Canuto <everaldo@simios.org>
20593 * Toolbar.cs: Prevent toolbar to open more than one tooltip at same
20594 time. Remove tooltips when ToolButton click events. Fixes #79856.
20596 2006-11-07 Everaldo Canuto <everaldo@simios.org>
20598 * MenuAPI.cs: Ignore right click for menu actions and fixes
20599 menu border when clicked. Fixes #79846.
20601 2006-11-07 Everaldo Canuto <everaldo@simios.org>
20603 * XplatUIX11.cs, XplatUIX11.cs: Fix MouseRelease to only release
20604 MouseState after create wParam for message, this fixes mouse button
20605 equal none in mouse up events.
20607 2006-11-07 Andreia Gaita <shana.ufie@gmail.com>
20609 * Control.cs : Focus() now calls Select to set the Container's
20610 Active Control and to give it focus. To avoid infinite recursion
20611 (because ActiveControl also calls Focus at one point), a check
20612 is made in Focus with the help of a new internal variable
20615 2006-11-07 Mike Kestner <mkestner@novell.com>
20617 * ListView.cs : raise OnSelectedIndexChanged in CreateHandle
20618 if there's a selection. Fixes #79849.
20620 2006-11-07 Gert Driesen <drieseng@users.sourceforge.net>
20622 * PropertyGrid.cs: Avoid fixed height of help description label.
20623 Fixes part of bug #79829.
20625 2006-11-07 Chris Toshok <toshok@ximian.com>
20627 * XplatUIX11.cs: fix #79790 again, by using the
20628 _NET_WM_STATE_SKIP_TASKBAR atom to implement Form.ShowInTaskbar.
20630 2006-11-07 Everaldo Canuto <everaldo@simios.org>
20632 * ToolBar.cs: Fix left click checking.
20634 2006-11-07 Chris Toshok <toshok@ximian.com>
20636 * ProgressBar.cs: fix a typo in ToString(). fixes a unit test.
20638 2006-11-07 Chris Toshok <toshok@ximian.com>
20640 * RelatedPropertyManager.cs: set property_name in our ctor. fixes
20641 PropertyManager unit tests.
20643 * PropertyManager.cs: make property_name internal.
20645 2006-11-07 Chris Toshok <toshok@ximian.com>
20647 * ButtonBase.cs: initialize base.ime_mode to ImeMode.Disable to
20648 pass a unit test. Also, don't set image_index to anything in
20649 response to setting the ImageList property.
20651 2006-11-07 Everaldo Canuto <everaldo@simios.org>
20653 * ToolBar.cs: Ignore click events when mouse button is not a
20654 left button, only accepts other button for dropdown menus.
20657 2006-11-07 Chris Toshok <toshok@ximian.com>
20659 * DataGrid.cs: make the back and parent row buttons a little less
20662 2006-11-07 Jackson Harper <jackson@ximian.com>
20664 * TextBoxBase.cs: When converting to Text don't put line breaks in
20665 for soft line breaks.
20666 * TextControl.cs: There is an initial "fake" line in the document,
20667 this is now a soft break line, so that an extra line feed doesn't
20668 get added to the end of documents.
20670 2006-11-07 Chris Toshok <toshok@ximian.com>
20674 * CurrencyManager.cs: if the list is readonly, don't bother
20675 checking if IBindingList.AllowNew is true.
20677 * ThemeWin32Classic.cs (DataGridPaintParentRow): make this work
20678 for non-DataRowView datasources.. or rather, make it not crash.
20679 (DataGridPaintRelationRow): make sure we limit the row painting to
20680 the area not covered by the row header, and make our cell width at
20681 least large enough to cover the relation area. This allows grids
20682 that have relations but no rows to render correctly.
20683 (DataGridPaintRowContents): same type of changes here.
20684 (SetDataSource): move back to always calling
20685 CalcAreasAndInvalidate. this fixes a crash/drawing problem when
20686 navigating back through relations.
20687 (HitTest): handle the case where we have no cells but have
20688 relations. Right now we generate a hit in cell 0 of whatever the
20689 row is, not sure if this is strictly correct, but it works for our
20692 * DataGrid.cs (EndEdit, CancelEdit): if we have no columns, don't
20693 bother doing anything.
20695 2006-11-07 Jonathan Pobst <monkey@jpobst.com>
20697 * StatusStrip.cs, ToolStripStatusLabel.cs: By request, an
20698 early version of StatusStrip. Not responsible for eaten
20699 application or firstborn children.
20701 2006-11-06 Chris Toshok <toshok@ximian.com>
20703 * TabControl.cs: in OnGotFocusInternal/OnLostFocusInternal don't
20704 call GetTabRect with a -1 index. Fixes #79847.
20706 2006-11-06 Jackson Harper <jackson@ximian.com>
20708 * TreeNodeCollection.cs: Update scrollbars after clearing.
20710 2006-11-06 Chris Toshok <toshok@ximian.com>
20712 * NumericUpDown.cs: fix the ToString method for some unit test
20715 2006-11-06 Chris Toshok <toshok@ximian.com>
20718 - set the initial SelectedGridItem if we can.
20720 - Exclude non-mergable properties only if we're merging > 1
20721 object. Merging 1 object isn't really merging, obviously.
20723 - Handle PropertySort.NoSort just like Alphabetical, which is
20724 wrong of course, but at least gets things on the screen.
20726 * PropertyGridView.cs:
20727 - Add method "FindFirstItem" which finds the first property grid
20728 item, so we can select it by default.
20730 - make use of GridEntry.CanResetValue.
20732 - Don't call RedrawBelowItemOnExpansion here anymore, the
20733 individual GridEntry's will do that.
20735 - Remove the ITypeDescriptorContextImpl internal class.
20738 - this class needs to implement ITypeDescriptorContext, as it's
20739 what MS's PropertyDescriptorGridEntry does, which means we can
20740 remove the ITypeDescriptorContextImpl internal class from
20741 PropertyGrid.cs. This fixes the crashing portion of bug #79829.
20743 - keep a reference to our PropertyGridView, and move the call to
20744 RedrawBelowItemOnExpansion here from PGV. This means
20745 programmaticly setting Expanded actually does something visible.
20747 - add a CanResetValue() function which takes into account our
20748 possibly multiple "selected_objects" in the merged case. Shifting
20749 PropertyGridView to use this method fixes another unreported
20750 crasher found running the test for #79829.
20752 - when Top or Bounds is updated, make sure the PropertyGridTextBox
20753 is updated to reflect this.
20755 * CategoryGridEntry.cs: the ctor takes the PGV now.
20757 2006-11-06 Jackson Harper <jackson@ximian.com>
20759 * TextControl.cs: These are 1 based.
20760 * TextBoxBase.cs: When setting the selected text, don't change the
20761 selected text tags, this is done by ReplaceText, just position the
20762 cursor at the end of the new text.
20764 2006-11-06 Alexander Olk <alex.olk@googlemail.com>
20766 * ListView.cs: Allow label edit only when, when LabelEdit is
20769 2006-11-06 Jackson Harper <jackson@ximian.com>
20771 * TextControl.cs: If a suitable wrapping position isn't found,
20772 just wrap right in the middle of a word.
20774 2006-11-06 Alexander Olk <alex.olk@googlemail.com>
20776 * ListView.cs, ListViewItem.cs: Implement LabelEdit. Fixes
20779 2006-11-06 Jackson Harper <jackson@ximian.com>
20781 * TreeView.cs: Can't use the VisibleCount property when setting
20782 scrollbar heights, because this doesn't take into account whether
20783 or not the horz scrollbar just came visible.
20785 2006-11-05 Everaldo Canuto <everaldo@simios.org>
20787 * MenuAPI.cs: Deactivate menu on mouse up when menus it is already
20788 activated. Fixes #79369, #79832.
20790 2006-11-05 Alexander Olk <alex.olk@googlemail.com>
20792 * FileDialog.cs: *sigh* Because of recent runtime changes (r67043) I
20793 had to remove support for links that point to a directory. FileInfo
20794 returns no usefull information (means, the directory they point to)
20795 for such links. Replaced some empty string ("") with String.Empty.
20797 2006-11-04 Gert Driesen <drieseng@users.sourceforge.net>
20799 * TreeNodeCollection.cs: To match MS, in 1.0 profile throw
20800 NullReferenceException when attempting to remove node that is not in
20801 collection. Throw NullReferenceException when null is passed to
20802 Remove. Allow first element of the collection to be removed. Fixes
20803 bug #79831. In GetEnumerator ().Current return null if positioned
20804 before the first element of the collection. In GetEnumerator ().Reset,
20805 position before first element of the collection.
20807 2006-11-04 Gert Driesen <drieseng@users.sourceforge.net>
20809 * PropertyGrid.cs: To match MS, remove default title and description
20810 for panel. Fixed tooltips for Categorized and Alphabetic toolbar
20813 2006-11-04 Chris Toshok <toshok@ximian.com>
20815 * Theme.cs: add a Clamp method, just for kicks.
20817 * ThemeWin32Classic.cs: clamp all color components to [0..255].
20819 2006-11-04 Chris Toshok <toshok@ximian.com>
20821 * Form.cs: if the form isn't visible, Close() does nothing.
20823 2006-11-03 Chris Toshok <toshok@ximian.com>
20825 * Form.cs (Close): if the form is modal, don't Dispose of it, only
20827 (WndProc): don't Dispose after handling the WM_CLOSE message.
20829 * Application.cs (RunLoop): toplevels is a list of Forms, so treat
20830 them as such, instead of using casts from Control to Form. Also,
20831 don't Dispose of the modal dialog when we fall out of the loop -
20832 Close() it instead.
20836 2006-11-03 Chris Toshok <toshok@ximian.com>
20838 * Control.cs (Dispose): only go through the dispose thing if we're
20839 @disposing, and we haven't already been disposed. Fixes bug
20842 * Form.cs: no reason to call "base.Dispose()" here instead of
20845 2006-11-03 Mike Kestner <mkestner@novell.com>
20847 * ComboBox.cs : use ToString instead of casts in AddItem for
20848 sorting functionality. Fixes #79812.
20850 2006-11-03 Chris Toshok <toshok@ximian.com>
20852 * Application.cs: pave the way for actually using the thread
20853 exception dialog. it's ifdefed out at the moment.
20855 2006-11-03 Chris Toshok <toshok@ximian.com>
20857 * ThreadExceptionDialog.cs: until we get a better layout, actually
20858 hide the details textbox and label when we shouldn't see them.
20860 2006-11-03 Jackson Harper <jackson@ximian.com>
20862 * TextBoxBase.cs: Don't bail from the scrollbar calcs for non
20863 multiline textboxes anymore. This method also determines the
20864 width/height of a textboxes canvas area.
20865 - Sorta a revert of the last patch. For multiline just position
20866 the controls, then bail. This way the scrollbar width won't be
20869 2006-11-03 Everaldo Canuto <everaldo@simios.org>
20871 * ThemeWin32Classic.cs: Dont paint inner lines of 3D border when
20872 it dont need. Fixes #79537.
20874 2006-11-02 Jackson Harper <jackson@ximian.com>
20876 * X11Dnd.cs: We always allow copy, since XDND implies Copy. Also
20877 send the status after firing the DndOver event.
20879 2006-11-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
20881 * TrackBar.cs: Now orientation only switches height / width if
20882 the control's handle is created (Win32 does it like this). Also
20883 fixed a typo in ToString() for a test to pass, changed the
20884 exception thrown in set_LargeChange and set_SmallChange to
20885 match Win32 behaviour, and added TrackBar tests to the unit
20888 2006-11-02 Chris Toshok <toshok@ximian.com>
20890 * XplatUIX11.cs: the atom we want is _NET_WM_STATE_SKIP_TASKBAR,
20891 not _NET_WM_STATE_NO_TASKBAR.
20893 2006-11-02 Jackson Harper <jackson@ximian.com>
20895 * TextControl.cs: Increment count by one, since in the update view
20898 2006-11-02 Jackson Harper <jackson@ximian.com>
20900 * TextBoxBase.cs: Use client rectangle not bounds for checking if
20901 the mouse is in the client rectangle (duh).
20903 2006-11-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
20905 * TrackBar.cs: Fixed trackbar jumping around when clicking
20906 on it - the trackbar was not detecting correctly at which
20907 side of the thumb the click was done. (fixes #79718)
20909 2006-11-02 Everaldo Canuto <everaldo@simios.org>
20911 * ListBox.cs: scroll visible area when change SelectedIndex to
20912 a non visible area. Fixes #79481.
20914 2006-11-01 Jackson Harper <jackson@ximian.com>
20916 * TextControl.cs: When replacing the selection move the selection
20917 start/end/anchor to the end of the new text.
20919 2006-11-01 Jackson Harper <jackson@ximian.com>
20921 * XplatUIWin32.cs: When setting the parent change the controls
20922 visibility to it's visibility flag, not to it's old parents
20923 visibility (.Visible walks the parent chain).
20925 2006-11-01 Chris Toshok <toshok@ximian.com>
20927 * XplatUIX11.cs: revert the #79790 fix, as the simple.
20928 XSetTransientForHint fix breaks paint .net's tool windows. more
20929 work needed for that one.
20931 2006-11-01 Chris Toshok <toshok@ximian.com>
20933 * ScrollBar.cs: throw ArgumentException instead of Exception in
20934 LargeChange/SmallChange setters. fixes unit tests.
20936 2006-10-31 Andreia Gaita <shana.ufie@gmail.com>
20938 * ContainerControl.cs: reverted rev.67183 (which was itself
20939 a reversion of rev.66853... eh).
20941 * Control.cs: Fixes Reflector hang by changing Focus() call
20942 to what it was before rev.66643 (calling Select() here sets
20943 ActiveControl, which in some situations calls back Focus and
20944 eventually does a stack overflow). Temp fix.
20945 Changes to GetNextControl() to not look for children to select when
20946 parent cannot be selectable (so it looks for siblings instead)
20948 2006-10-31 Mike Kestner <mkestner@novell.com>
20950 * CheckedListBox.cs : off by one error in returned index from
20951 ObjectCollection.Add. Fixes #79758.
20953 2006-10-31 Chris Toshok <toshok@ximian.com>
20955 * UpDownBase.cs: remove the OnGotFocusInternal/OnLostFocusInternal
20956 calls for the textbox/spinner, to keep from recursing to the point
20957 where we crash. Fixes #79760.
20959 2006-10-31 Chris Toshok <toshok@ximian.com>
20961 * ListControl.cs (set_SelectedValue): don't throw exceptions on
20962 null/"" value, just return. matches ms's behavior and fixes some
20965 2006-10-31 Chris Toshok <toshok@ximian.com>
20967 * Control.cs (set_Capture): make a logic a little easier to
20970 * XplatUIX11.cs (CleanupCachedWindows): zero out the Grab window
20971 if it's being destroyed. A necessary fix surely, but a bandaid
20972 also, to fix the stuck capture problem in bug #78413.
20974 2006-10-31 Chris Toshok <toshok@ximian.com>
20976 * XplatUIX11.cs: fix a couple of compiler warnings, and follow the
20977 convention of clearing hwnd.ClientRect when we set the
20978 width/height (so it'll be recalculated by Hwnd).
20980 2006-10-31 Andreia Gaita <shana.ufie@gmail.com>
20982 * ContainerControl.cs: reversed Contains check from
20983 ActiveControl due to hanging problems. This fix
20984 partly regresses #79667 (button does not have
20985 initial focus), so this might be a symptom for
20986 a larger parenting problem (set_ActiveControl
20987 is being called but the child control does
20988 not have the parent set yet?)
20990 2006-10-31 Mike Kestner <mkestner@novell.com>
20992 * MenuAPI.cs : fix keynav when menu is click activated.
20994 2006-10-31 Jonathan Pobst <monkey@jpobst.com>
20996 * ToolStrip*: Version 0.2.
20998 * MenuStrip.cs: Version 0.1.
21000 * Form.cs: Add a 2.0 MenuStrip tracker like the 1.1 Menu one.
21002 2006-10-30 Chris Toshok <toshok@ximian.com>
21004 [ fixes the oversized notify icon issue in bug #79745 ]
21006 * NotifyIcon.cs: scale the icon down to the size we're given by
21007 the XplatUI layer (this would be faster if we did it once instead
21008 of whenever we paint..) Also, remove the WM_NCPAINT handling,
21009 since it's never invoked.
21011 * XplatUIX11.cs: the gnome and kde systrays use icons that are 24
21012 pixels high by default, so let's hardcode our systray icon to that
21013 size. The SYSTEM_TRAY protocol should really have a way for
21014 client apps to query for the correct icon size.. but oh well. A
21015 couple of patches to deal with the screwy client_window ==
21016 whole_window notifyicon stuff (we don't want to PerformNCCalc, for
21017 instance, and also make sure we don't XSelectInput twice).
21019 2006-10-30 Chris Toshok <toshok@ximian.com>
21021 * Control.cs: ugh, the unit test fix (CH11, yesterday) breaks when
21022 recreating forms. Control recreation is the bane of my existence.
21023 Fix it in a way that keeps everyone happy.
21025 2006-10-30 Chris Toshok <toshok@ximian.com>
21027 * XplatUIX11.cs: use StructureNotifyMask on all whole_windows, not
21028 just non-CHILD ones. otherwise sometimes scrollbars end up with
21029 client_windows not being resized to the proper size (ReportBuilder
21030 shows this extremely well).
21032 2006-10-30 Chris Toshok <toshok@ximian.com>
21034 * XplatUIX11.cs (SetWMStyles): reinstate the XSetTransientForHint
21035 for non-WS_EX_APPWINDOW windows. This is what keeps them from
21036 showing up in the gnome taskbar. Fixes bug #79790.
21038 2006-10-30 Chris Toshok <toshok@ximian.com>
21040 * ApplicationContext.cs: guard against a NRE.
21042 * Application.cs: null out the old MainForm for the context, so we
21043 don't try to use it again once it's disposed. Fixes bug #79783.
21045 2006-10-30 Chris Toshok <toshok@ximian.com>
21047 * DataGrid.cs (set_DataSource, set_DataMember): if we have a
21048 BindingContext, set the data source directly, otherwise do the
21049 lazy approach - the actual ListManager will be created when we get
21050 a BindingContext. Fixes bug #79700.
21052 2006-10-30 Jonathan Pobst <monkey@jpobst.com>
21054 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
21055 XplatUIX11.cs: Remove old 2 parameter SetVisible.
21057 * Control.cs: Use the new 3 parameter SetVisible with activate = true.
21059 2006-10-30 Jonathan Pobst <monkey@jpobst.com>
21061 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Add an overload
21062 of SetVisible that allows a window to be shown, but not activated.
21063 This is needed on Windows for MenuStrip, and can probably be used
21064 with MainMenu and ComboBox to fix the focus stealing issues on
21067 * XplatUIOSX.cs, XplatUIX11.cs: Not needed, call existing SetVisible.
21069 2006-10-30 Alexander Olk <alex.olk@googlemail.com>
21071 * PictureBox.cs: Fix the output of the ToString method.
21073 2006-10-29 Chris Toshok <toshok@ximian.com>
21075 * Control.cs (get_TopLevelControl): fix bug #79781.
21077 2006-10-29 Chris Toshok <toshok@ximian.com>
21079 * ListControl.cs (set_DataSource): throw Exception here, not
21080 ArgumentException, to match MS behavior.
21082 2006-10-29 Chris Toshok <toshok@ximian.com>
21084 * Form.cs: remove the try-catch's around calls to GetWindowState.
21085 We can just check the return value.
21087 * XplatUIX11.cs: don't throw exceptions from GetWindowState.
21090 * XplatUI.cs: Add note about additional return value for
21093 2006-10-29 Chris Toshok <toshok@ximian.com>
21095 * Control.cs (CreateHandle): when we create our handle, we also
21096 create the handles of our child controls. Fixes one of the
21097 Control unit tests (CH11).
21099 2006-10-28 Alexander Olk <alex.olk@googlemail.com>
21101 * MimeIcon.cs: If a gnome icon doesn't exist add a default icon.
21103 2006-10-28 Alexander Olk <alex.olk@googlemail.com>
21105 * ThemeClearlooks.cs: A little speedup.
21107 2006-10-27 Chris Toshok <toshok@ximian.com>
21109 * Control.cs: implement Control.FromChildHandle in a way that
21110 matches the docs (and fixes the failed test.)
21112 2006-10-27 Chris Toshok <toshok@ximian.com>
21114 * DataGridTableStyle.cs: reproduce buggy MS behavior (with
21117 * DataGrid.cs: implement ResetForeColor such that the tests
21120 2006-10-27 Chris Toshok <toshok@ximian.com>
21122 * ToolBarButton.cs: setting text/tooltiptext to null results in it
21123 being set to "". Fixes bug #79759.
21125 2006-10-27 Jackson Harper <jackson@ximian.com>
21127 * TextControl.cs: We need to clear the entire selection area when
21128 setting the start, otherwise multiline selections are still
21131 2006-10-26 Chris Toshok <toshok@ximian.com>
21133 * PropertyGridView.cs:
21135 - ifdef all the code specific to the double
21136 buffer case, and provide some alternatives in the non-doublebuffer
21137 code, which makes heavy use of XplatUI.ScrollWindow to move things
21138 around without having to invalidate (and cause flicker). There
21139 are still some drawing problems in the non-doublebuffered case, so
21140 DOUBLEBUFFER is defined by default.
21142 - Fix the way dropdowns are handled. now we explicitly watch for
21143 the events which might cause the dropdown to close, and break out
21144 of the nested event loop there. This gets rid of all Capture
21145 code, at the expense of the Msg special casing. Seems to work,
21146 though, and fixes bug #79743.
21148 2006-10-27 Rolf Bjarne Kvinge <RKvinge@novell.com>
21149 * Control.cs: SetIsRecreating now recreates implicitly added
21150 child controls as well. Finally fixes #79629. The flag passed to
21151 SetIsRecreating has also been removed since it wasn't used.
21153 2006-10-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
21155 * PageSetupDialog.cs: Clean some code, fix some bits,
21156 add some checks, and add a printer sub-dialog.
21158 2006-10-26 Chris Toshok <toshok@ximian.com>
21160 * PropertyGrid.cs: make set_SelectedObject call
21161 set_SelectedObjects, and move the duplicate logic to the
21162 SelectedObjects setter. Also, raise SelectedObjectsChanged.
21164 * PropertyGridView.cs: hide the textbox when we get a
21165 SelectedObjectsChanged event.
21169 2006-10-26 Chris Toshok <toshok@ximian.com>
21171 * PropertyGridView.cs: deal with the type converter not supporting
21172 GetStandardValues() or GetStandardValues() returning null, which
21173 is does in the default case. Fixes #79742.
21175 2006-10-25 Andreia Gaita <shana.ufie@gmail.com>
21177 * CheckedListBox.cs: nunit no longer crashes when selecting
21178 Project/Edit menu option
21180 2006-10-25 Andreia Gaita <shana.ufie@gmail.com>
21182 * MenuAPI.cs: prevent ExecFocusedItem from blowing up if there
21183 is no menu selected. fixes #79739
21185 2006-10-25 Chris Toshok <toshok@ximian.com>
21187 * PropertyGridView.cs: factor out the splitter invalidation code
21188 into the SplitterPercent setter, and for kicks implement the
21189 Ctrl-Left/Ctrl-Right handling that moves the splitter by a small
21190 amount in either direction.
21192 2006-10-25 Chris Toshok <toshok@ximian.com>
21194 * PropertyGridView.cs: do some cleanup of the brush used to draw
21195 text - read only fields should be grayed out. not sure how to do
21196 this with the textbox, though. but the textbox's should also be
21197 readonly now at least. Also, hide/show the textbox when resizing
21200 * CursorConverter.cs: use System.Reflection when getting the
21201 properties of Cursors, as TypeDescriptor.GetProperties isn't
21202 returning static properties.
21204 2006-10-25 Chris Toshok <toshok@ximian.com>
21206 * PropertyGridView.cs: factor out the up/down handling, and reuse
21207 it for page up/down. also add End/Home support.
21209 2006-10-25 Chris Toshok <toshok@ximian.com>
21211 * PropertyGridView.cs:
21213 - ensure the selected grid item is visible in the scrolled area,
21216 - fix Keys.Down handling when you're on the last item in the
21219 2006-10-25 Mike Kestner <mkestner@novell.com>
21221 * MenuAPI.cs : set the ActiveTracker for MainMenu non-popup
21222 clicks too. Fixes #79725.
21224 2006-10-24 Chris Toshok <toshok@ximian.com>
21226 * PropertyGrid.cs: use property.Converter instead of
21227 TypeDescriptor.GetConverter(property.PropertyType), so we catch
21228 TypeConverters declared on the property as well as on the
21229 PropertyType. Fixes bug #79678.
21231 2006-10-24 Alexander Olk <alex.olk@googlemail.com>
21233 * MimeIcon.cs, Mime.cs:
21234 Fallback to the default platform handler if no shared mime info
21235 stuff exists (fixes #79693).
21237 2006-10-20 Andreia Gaita <shana.ufie@gmail.com>
21238 * ContainerControl.cs: Incorrect contains check in ActiveControl
21239 from previous fix (duh).
21241 2006-10-20 Chris Toshok <toshok@ximian.com>
21243 * PropertyGridView.cs: the dropdown should be MIN(number of items
21244 in list, 15). Fixes #79551.
21246 2006-10-20 Andreia Gaita <shana.ufie@gmail.com>
21247 Fixes #79384, #79394, #79652, #79667
21250 - Modal windows are now destroyed in the proper order for windows
21252 * ContainerControl.cs:
21254 - ActiveControl setter has more conditions on when to return:
21255 - if we're reselecting the active control, but it actually
21256 didn't have focus (window hidden or some such), it runs
21257 - if the active control being selected doesn't actually
21258 exist in the container, it returns
21262 - The ShowDialog now gets the current form as the owner when
21263 invoking without parameters, and correctly activates the owner
21268 - MessageBox now catches the Escape key to exit
21270 2006-10-20 Chris Toshok <toshok@ximian.com>
21272 * PropertyGridView.cs: fix a number of issues (bug #78565, and
21273 most of bug #79676):
21275 - you can navigate around the property grid with the arrow keys.
21277 - the dropdown is sized properly when the pg has a vertical
21280 - fix the indentation for subentries, and properly select the
21283 - fix the gray bar's drawing (only draw it to the last element,
21284 not for the height of the control. Also make sure we draw that
21285 last horizontal grid line.
21287 - use the same mechanism the datagrid uses wrt the editing textbox
21288 when scrolling/resizing/etc. Namely, we hide it first, do the
21289 operation, then show it again (if it's still visible).
21291 - aggressively remove a lot of unnecessary refreshes (and also
21292 calls to Invalidate(). call more limited variants, and only redraw
21297 - when we're populating the merged collection, fill in the UI
21298 parent with either the passed in item, or the category item we
21301 - remove the Refresh call from the BorderHelpControl.OnSizeChanged.
21303 * GridItem.cs: drop some fully qualified names.
21305 * GridEntry.cs: add a "UIParent", which is basically the parent
21308 * GridItemCollection.cs: add an IndexOf method.
21310 2006-10-20 Mike Kestner <mkestner@novell.com>
21312 * MainMenu.cs : go back to Draw in OnMenuChanged. Until we get
21313 a working win32 NC invalidation mechanism, we can't invalidate
21314 menus. [Fixes #79705]
21316 2006-10-20 Mike Kestner <mkestner@novell.com>
21318 * ListBox.cs : don't update the VScrollbar if the list is empty,
21319 just hide it. [Fixes #79692]
21321 2006-10-20 Jackson Harper <jackson@ximian.com>
21323 * RichTextBox.cs: Handle some special chars better, and don't skip
21324 the entire group when we encounter a special char that we don't
21327 2006-10-18 Chris Toshok <toshok@ximian.com>
21329 * PropertyGridView.cs: address a number of issues from bug #79676,
21330 mostly of the cosmetic variety.
21332 - The highlight rectangle for indented items not extends all the
21335 - Indented items aren't indented so much.
21337 - the dropdown is properly sized width-wise if the pg has a
21338 vertical scrollbar.
21340 2006-10-18 Chris Toshok <toshok@ximian.com>
21342 * XplatUIX11.cs (SystrayAdd): a rather convoluted change, but the
21343 systray stuff is rather convoluted to begin with.
21345 systray icons are a single window for some reason (that I haven't
21346 figured out yet), and for them, client_window == whole_window.
21347 Given the way the tests are structured elsewhere to determine
21348 which paints are pending (client vs. nc), that situation will
21349 always yield PAINT, not NCPAINT. So, if we have a pending
21350 nc_expose and no pending expose, remove the hwnd from the paint
21351 queue, and also set nc_expose_pending to false, to keep us from
21352 blocking further expose's adding the hwnd to the paint queue.
21354 phew. like i said, a rather convoluted change. Fixes the
21355 notifyicon repaint issues in bug #79645.
21357 2006-10-18 Chris Toshok <toshok@ximian.com>
21359 * Form.cs: when getting the backcolor of the form, don't get
21360 base.BackColor, as this allows parents to influence the background
21361 color. This breaks mdi forms. Instead, if the background_color
21362 is empty, return the default.
21364 2006-10-18 Chris Toshok <toshok@ximian.com>
21366 * XplatUIX11.cs: change some debug ifdefs, and return XGetParent
21367 to being private instead of internal static.
21369 * Control.cs: remove all the stupid ParentWaitingOnRecreation
21370 crap, it wasn't working for more deeply nested controls anyway,
21371 and we already have the is_recreating flag - use that instead.
21372 Before calling DestroyHandle in RecreateHandle, recurse through
21373 the control tree setting it to true. this returns the recreate
21374 code to much of its original simplicity, while now guaranteeing we
21375 actually recreate everything we're supposed to. This change gets
21376 fyireporting actually showing mdi children.
21378 2006-10-17 Chris Toshok <toshok@ximian.com>
21380 * Form.cs: remove some debug spew, and collapse some duplicate
21381 code at the end of SetClientSizeCore.
21384 - add some more debug spew here too wrt Destroy handling.
21385 - don't call hwnd.Dispose in DestroyWindow, it's effectively done
21386 in Control's handling of WM_DESTROY.
21387 - Remove the handling of zombie window DestroyNotifies from the
21388 event loop - we don't need it. Now the only DestroyNotifies we
21389 actually handle are ones generated by X.
21390 - When sending _NET_ACTIVE_WINDOW, the first param should be 1, to
21391 match gtk's (functioning) handling of this. This keep metacity
21392 from leaving droppings in the form of wm borders with no window
21393 contents all over the place.
21396 - add a bunch of debug spew wrt control recreation.
21397 - fix a bug where we weren't tracking Visible properly on
21399 - fixed the WM_PAINT double buffer handling to support re-entrant
21400 calls (yes, i know it's gross, but it's happening to us).
21402 2006-10-17 Rolf Bjarne Kvinge <rolfkvinge@ya.com>
21403 * ThemeWin32Classic.cs: changed drawing of selected days
21404 to make them look better.
21406 2006-10-16 Chris Toshok <toshok@ximian.com>
21408 * Hwnd.cs: replace the user_data/client_dc/non_client_dc with
21409 drawing_stack. Nuke the ClientDC/NonClientDC properties.
21411 * XplatUIX11.cs: move away from using hwnd.client_dc and
21412 hwnd.non_client_dc and on to a stack of dc's (and in window's
21413 case, PAINTSTRUCT's), so we can deal with nested Paint calls
21414 without puking or not disposing of Graphics objects.
21416 * XplatUIOSX.cs: same.
21418 * XplatUIWin32.cs: same.
21420 2006-10-03 Alexander Olk <alex.olk@googlemail.com>
21422 * FileDialog.cs: Don't call on_directory_changed inside
21423 OnSelectedIndexChanged (it changes the SelectedIndex too).
21424 Instead move it to OnSelectionChangeCommitted.
21426 2006-10-13 Chris Toshok <toshok@ximian.com>
21428 * XplatUIX11.cs: more Destroy work. the current code does the
21429 following things, in order:
21431 1. Enumerates all handles of all controls at or below the one
21432 being destroyed, in pre-order. As it is doing this, it marks the
21433 handles as zombie and clears all references to them.
21435 2. calls XDestroyWindow on the window passed in.
21437 3. SendMessage's WM_DESTROY to all he handles in the accumulated
21440 2006-10-13 Chris Toshok <toshok@ximian.com>
21442 * XplatUIX11.cs: set hwnd.zombie to true before calling
21443 SendMessage (WM_DESTROY). this keeps us from marking the new
21444 window a zombie, and also keeps us from calling sendmessage at
21447 2006-10-13 Jackson Harper <jackson@ximian.com>
21449 * TextControl.cs: Do not show the caret and selection at the same
21450 time. Reduces ugliness by 35%.
21452 2006-10-13 Chris Toshok <toshok@ximian.com>
21454 * XplatUIX11.cs (SendWMDestroyMessages): set the hwnd to be a
21455 zombie after we do the recursive call, so we actually do call
21456 SendMessage on the children controls.
21457 (GetMessage): if we find a pending paint event for a zombie hwnd,
21458 remove the hwnd from the paint queue, or else it will always be
21459 there (and we'll effectively loop infinitely)
21461 2006-10-13 Mike Kestner <mkestner@novell.com>
21463 * MenuItem.cs : add Selected format under keynav too.
21466 2006-10-13 Gert Driesen <drieseng@users.sourceforge.net>
21468 * PropertyGrid.cs: Fixed some NRE's and small difference between our
21469 implementation and that of MS.
21471 2006-10-13 Chris Toshok <toshok@ximian.com>
21473 * Control.cs (OnInvalidated) only futz with the invalid_region if
21474 the control is double buffered. this fixes the apparent hang in
21475 the ListView unit tests. Someone needs to make the
21476 BeginEndUpdateTest not call OnInvalidated 15004 times, though..
21478 2006-10-13 Chris Toshok <toshok@ximian.com>
21480 * PropertyGridView.cs:
21482 - do a little refactoring so that only one place calls
21483 dropdown_form.Hide, and that is CloseDropDown. make everywhere
21484 else call that. Also make it Refresh, since there are redraw bugs
21485 otherwise (we should take a look at that...)
21487 - do a little more refactoring work to share the body of code
21488 involved with the drop down. it was duplicated in the code
21489 dealing with the listbox handling and in the code dealing with the
21492 - add a Capture to the dropdown form's control once it's
21493 displayed, and add a MouseDown handler that checks to make sure
21494 the position is inside the control. If it's not, close the
21495 dropdown. This fixes #78190.
21497 - in SetPropertyValueFromUITypeEditor, only call SetPropertyValue
21498 if the value is different than the initial value.
21500 2006-10-13 Andreia Gaita <shana.ufie@gmail.com>
21502 * Control.cs: see #78650
21503 - Fixed GetNextControl for several cases:
21504 - Changed FindFlatForward to return
21505 correct sibling control when more than one
21506 control has same TabIndex as the currently
21508 - Changed FindFlatBackward to loop children
21509 from last to first and apply same logic as in
21511 - Changed FindControlForward to search for
21512 children when control is not a container
21513 but has children, or search for siblings if
21514 control is a container...
21515 - Changed FindControlBackward to continue
21516 searching for child controls when hitting
21519 - Fixed Focus method to update ActiveControl
21520 (FocusTest.FocusSetsActive failure)
21523 - Focus rectangle now refreshes when gaining
21525 - Removed grab for Tab key on IsInputKey that
21526 was keeping tab navigation from working (#78650)
21528 2006-10-13 Chris Toshok <toshok@ximian.com>
21530 * PropertyGridView.cs:
21531 - Rewrite SetPropertyValue to loop over SelectedGridItem's
21534 - Deal with GridItem.Value == null a few places.
21537 - replace the PopulateGridItemCollection with a pair of methods
21538 which compute the intersection of all the properties in the
21539 SelectedObjects array. Fixes #79615.
21541 - Throw ArgumentException from set_SelectedObjects if there's a
21544 - Add GetTarget method which can be used to traverse up the
21545 GridItem.Parent chain. It depends on the assumption that
21546 selected_objects for different GridEntries are always in the same
21547 order (a safe assumption). Use this method and loop over all the
21548 selected objects in the entry when calling RemoveValueChanged and
21551 * GridEntry.cs: Make this handle multiple selected objects.
21552 .Value returns null if not all the selected objects share the same
21555 2006-10-12 Jonathan Pobst <monkey@jpobst.com>
21556 * ToolStrip.cs, ToolStripButton.cs, ToolStripComboBox.cs,
21557 ToolStripControlHost.cs, ToolStripItem.cs, ToolStripLabel.cs,
21558 ToolStripProfessionalRenderer.cs, ToolStripProgressBar.cs,
21559 ToolStripSeparator.cs, ToolStripSplitStackLayout.cs,
21560 ToolStripTextBox.cs: Add accessibility, fix attributes/API and
21561 add additional functionality.
21563 2006-10-12 Mike Kestner <mkestner@novell.com>
21565 * ErrorProvider.cs : new ToolTipWindow ctor sig.
21566 * HelpProvider.cs : new ToolTipWindow ctor sig.
21567 * ToolTip.cs : remove ToolTip param from Window sig since it is
21569 * ToolBar.cs : add tooltip support. Fixes #79565.
21571 2006-10-12 Rolf Bjarne Kvinge <rolfkvinge@ya.com>
21573 * ComboBox.cs: move the events in set_SelectedIndex to
21574 after the call to HighlightIndex in order to avoid
21575 possible recursion and subsequent problems with the call
21576 to HighlightIndex and include a range check in
21577 set_HighlightIndex. Fixes #79588
21579 2006-10-12 Rolf Bjarne Kvinge <rolfkvinge@ya.com>
21581 * MonthCalendar.cs: When FirstDayOfWeek is default set firstday
21582 to ui thread's settings instead of sunday.
21583 * ThemeWin32Classic.cs: Localize the day string. Fixes #79563
21585 2006-10-12 Rolf Bjarne Kvinge <rolfkvinge@ya.com>
21587 * DateTimePicker.cs
21589 * ThemeWin32Classic.cs: rewrote DateTimePicker to fix bug #78364
21590 and implement missing functionality (selecting different parts
21591 of the date and edit them individually with the keyboard).
21593 2006-10-11 Chris Toshok <toshok@ximian.com>
21595 * Control.cs (OnInvalidated): fix NRE relating to last change.
21597 2006-10-11 Chris Toshok <toshok@ximian.com>
21599 * XplatUIX11.cs (SetWMStyles): make sure we include the MAXIMIZED
21600 atoms in _NET_WM_STATE here if the window is maximized. We need
21601 to do this because we're *replacing* the existing _NET_WM_STATE
21602 property, so those atoms will be lost otherwise, and any further
21603 call to GetWindowState will return Normal for a window which is
21604 actually maximized. Fixes #79338.
21606 2006-10-11 Jackson Harper <jackson@ximian.com>
21608 * TextControl.cs: Special case for setting selection end to
21609 selection start, we basically kill the anchor.
21610 - some todo comments.
21612 2006-10-11 Chris Toshok <toshok@ximian.com>
21614 * Control.cs: switch to using an "invalid_region" to track which
21615 parts of the image buffer need updating. This is more code than
21616 the simple fix from r66532. That version just attempted to always
21617 fill the entire buffer on redraw, which turns out to be
21618 inefficient when invalidating small rectangles. This version
21619 simply adds the invalid rectangle to the invalid region. When we
21620 get any WM_PAINT message we see if it can be filled using the
21621 image buffer, and if it can't (if the paint event's clip rectangle
21622 is visible in the invalid region) we first fill the image buffer.
21623 So, the image buffer is still a cache, we just fill it lazily.
21625 * PaintEventArgs.cs: remove the SetClipRectangle method, we don't
21626 need it any longer.
21628 2006-10-11 Chris Toshok <toshok@ximian.com>
21630 * XplatUIX11.cs (SetWindowPos): we need to update both position as
21631 well as size after calling XMoveResizeWindow. This keeps us from
21632 ignoring future SetWindowPos calls. Fixes the disappearing
21633 DateTimePicker in the ToolBarDockExample from bug #72499.
21635 2006-10-11 Chris Toshok <toshok@ximian.com>
21637 * TextBoxBase.cs: reorder things a bit when it comes to
21638 resizing-causing-recalculation. we were recalculating the
21639 document when our position was changed, which shouldn't happen.
21640 We only care about size changes. Clear up some more redundant
21641 recalculation calls while I'm at it. This makes the toolbar dock
21642 example snappy when you're just dragging toolbars around (since it
21643 causes a relayout whenever you move one.)
21645 2006-10-11 Chris Toshok <toshok@ximian.com>
21647 * ToolBarButton.cs (get_Rectangle): this only returns
21648 Rectangle.Empty if Visible == false, or Parent == null.
21649 Parent.Visible doesn't matter.
21651 2006-10-10 Chris Toshok <toshok@ximian.com>
21653 * Control.cs, PaintEventArgs.cs: "internal set { .. }" isn't loved
21654 by .net 1.1, so switch to an internal method instead.
21656 2006-10-10 Chris Toshok <toshok@ximian.com>
21658 * Control.cs (WM_PAINT): when a control is double buffered we draw
21659 initially to the ImageBuffer and then copy from there. But when a
21660 parent control which has child controls is double buffered, the
21661 initial drawing doesn't encompass the entire ClientRectangle of
21662 the parent control, so we end up with uninitialized bits (this is
21663 easily seen by dragging the top toolbar in
21664 wf-apps/ToolBarDockExample to the right, quickly). The fix is to
21665 manually set the ClipRectangle of the paint_event (only the one we
21666 use to populate the ImageBuffer) to ClientRectangle. Fixes more
21667 of the nastiness in bug #72499.
21669 * PaintEventArgs.cs: Add an internal setter for ClipRectangle,
21670 which we use in Control.cs's WM_PAINT handling.
21672 2006-10-10 Jackson Harper <jackson@ximian.com>
21674 * TextBoxBase.cs: Finish off the autoscrolling stuff.
21676 2006-10-10 Chris Toshok <toshok@ximian.com>
21678 * Cursor.cs: Apply a slightly different patch to the one suggested
21681 2006-10-10 Jackson Harper <jackson@ximian.com>
21683 * MenuItem.cs: Make sure to put the mdi child in the hashtable,
21684 not the parent form.
21685 * TextControl.cs: use difference in old line count vs new count to
21686 calculate how many lines were added, this takes into account soft
21687 line breaks properly.
21689 2006-10-10 Chris Toshok <toshok@ximian.com>
21691 * LinkLabel.cs: don't call MeasureCharacterRanges against a
21692 rectangle located at 0,0 and the size of the text. Use
21693 ClientRectangle instead. This fixes rendering of non-left aligned
21696 2006-10-10 Jackson Harper <jackson@ximian.com>
21698 * TextBoxBase.cs: When we set the selection start position the
21700 * TextControl.cs: Need to update the caret when we decrement it to
21702 - Make sure that the selection_visible flag gets reset to false if
21703 the selection isn't visible. Before this you could get it set to
21704 visible by changing the selection start, then changing the end to
21707 2006-10-09 Jackson Harper <jackson@ximian.com>
21709 * TreeView.cs: Don't update scrollbars when we aren't visible.
21710 * TreeNodeCollection.cs: Only need to update scrollbars if being
21711 added to an expanded visible node or the root node.
21713 2006-10-09 Chris Toshok <toshok@ximian.com>
21715 * XplatUIX11.cs (SendMessage): fix NRE.
21717 2006-10-09 Jackson Harper <jackson@ximian.com>
21719 * TextBoxBase.cs: Implement horizontal autoscrolling.
21720 * TextControl.cs: Add a movement types that allows moving forward
21721 and backwards without wrapping.
21723 2006-10-09 Mike Kestner <mkestner@novell.com>
21725 * ListViewItem.cs : layout changes for wrapped LargeIcon labels
21726 with focus "expansion" of labels. Fixes #79532 and then some.
21727 * ThemeWin32Classic.cs : add LineLimit to ListView label format
21730 2006-10-09 Jackson Harper <jackson@ximian.com>
21732 * TextBoxBase.cs: Set the default max values to MaxValue since
21733 we use the scrollbar for autoscrolling and the default value is
21734 100. If we don't do this the caret won't keep up with typing
21735 after about 18 characters.
21736 * TextControl.cs: Make sure the selection is offset by the
21737 viewport x. This fixes selection when using auto scrolling.
21739 2006-10-07 Andreia Gaita <shana.ufie@gmail.com>
21741 * Form.cs: The active control should be selected after the
21742 OnLoad so that any child control initialization that affects
21743 the selection is done. Fixes #79406
21745 2006-10-06 Chris Toshok <toshok@ximian.com>
21747 * XplatUIX11.cs: This is perhaps a dangerous change, but it seems
21748 to have no evil effects.
21750 - Stop selecting StructureNotifyMask on non-toplevel windows.
21752 The only way children should be resized is by using the SWF api,
21753 and we already send WM_WINDOWPOSCHANGED messages in those cases.
21754 Toplevel windows can be interacted with via the window manager,
21755 and so we keep the input mask there.
21757 The other event StructureNotifyMask gives us (that we care
21758 about) is DestroyNotify. The code is already structured such
21759 that it assumes we won't be getting a DestroyNotify event for
21760 the window we pass to XDestroyWindow (which is what
21761 StructureNotifyMask is supposed to guarantee.) So, that code
21762 shouldn't be affected by this either.
21764 - Stop selecting VisibilityChangeMask altogether.
21766 We weren't doing anything with the resulting events anyway.
21768 This vastly reduces the number of X requests and events we see
21769 when resizing/laying out a large ui.
21771 2006-10-06 Chris Toshok <toshok@ximian.com>
21773 * ScrollableControl.cs (DisplayRectangle): we need to take into
21774 account the DockPadding regardless of whether or not auto_scroll
21775 == true. rework this slightly to this effect, and fix bug #79606,
21776 and part of #72499 (you can now see the drag handles and drag
21779 2006-10-06 Gert Driesen <drieseng@users.souceforge.net>
21781 * ListViewItem.cs: Collections of selected and checked items are now
21782 dynamically rebuilt. Whenever an item is (un)checked or (de)selected
21783 we mark the collection "dirty".
21784 * ListView.cs: Marked collections readonly. Modified UpdateSelection
21785 to only clear SelectedItems when a new item is selected and MultiSelect
21786 is enabled. CheckedItems and SelectedItems now subscribe to Changed
21787 event of ListViewItemCollection, and mark its list dirty whenever
21788 that event is fire. This allows us to return selected/checked items
21789 in the same order as they are in the Items collection. This matches
21792 2006-10-06 Chris Toshok <toshok@ximian.com>
21794 * NotifyIcon.cs (HandleMouseUp): only show the context menu on
21795 right mouse clicks. Fixes bug #79593.
21797 2006-10-06 Chris Toshok <toshok@ximian.com>
21799 * Splitter.cs: doh, fix splitters that don't want to cancel the
21800 movement when you drag them. Also, impose the limits on the
21801 values we send to the SplitterMovingEvent. Fixes #79598.
21803 2006-10-06 Jackson Harper <jackson@ximian.com>
21805 * TextBoxBase.cs: Ignore whether or not the scrollbar is enabled,
21806 since we use this for auto scrolling also.
21808 2006-10-05 Chris Toshok <toshok@ximian.com>
21810 * DataGridBoolColumn.cs: Nuke the code from ConcedeFocus. I'm
21811 beginning to think that most datagrid column types don't need this
21812 method. Fixes bug #79392.
21814 2006-10-05 Chris Toshok <toshok@ximian.com>
21816 * DataGrid.cs: move back to a more lazy scheme for creating the
21817 CurrencyManager, so we aren't updating it every time you set
21818 either DataSource or DataMember. Also, don't call
21819 RecreateDataGridRows if the currency manager hasn't changed.
21821 2006-10-05 Chris Toshok <toshok@ximian.com>
21823 * ComboBox.cs: by the time the OnSelectionChangeCommitted event is
21824 emitted, SelectedIndex should already be updated. Fixes bug
21827 2006-10-05 Jonathan Pobst <monkey@jpobst.com>
21829 * ToolStripComboBox.cs, ToolStripControlHost.cs, ToolStripProgressBar,
21830 ToolStripTextBox.cs: Initial commit.
21831 * ToolStripItem.cs: Fixes for OnLayout, BackColor, Parent.
21833 2006-10-05 Jackson Harper <jackson@ximian.com>
21835 * TabControl.cs: We need to invalidate the tab control area when
21836 new ones are added (duh).
21838 2006-10-03 Chris Toshok <toshok@ximian.com>
21840 * Form.cs (ProcessDialogKey): if the focused control is in this
21841 form and is a button, call its PerformClick method here. Fixes
21844 2006-10-04 Jackson Harper <jackson@ximian.com>
21846 * TabPage.cs: Ignore setting of Visible, and add an internal
21847 method for setting the controls visibility. TabPage's Visible
21848 property is a little strange on MS, this seems to make us
21849 compatible, and fixes cases where people set all the tab pages to
21851 * TabControl.cs: Use the new internal setting on tab pages
21854 2006-10-03 Mike Kestner <mkestner@novell.com>
21856 * ComboBox.cs : raise Click on ComboTextBox clicks. Fixes #79555.
21858 2006-10-03 Mike Kestner <mkestner@novell.com>
21860 * ListView.cs : use is_visible instead of Visible to check if
21861 scrollbars should be placed/sized. Also some max_wrap_width
21862 love for LargeIcon view. [Fixes #79533]
21864 2006-10-03 Atsushi Enomoto <atsushi@ximian.com>
21867 Make set_TextAlign() do actually update the align. Fixed #78403.
21869 2006-10-03 Chris Toshok <toshok@ximian.com>
21871 * DataGrid.cs: fix a crash when switching datasources if the
21872 vertical scrollbar is at someplace other than Value = 0. Also,
21873 reduce the number of recalculation passes we do in SetDataSource
21876 2006-10-03 Jackson Harper <jackson@ximian.com>
21878 * TextBoxBase.cs: Move the if value the same bail check up, we
21879 don't want to empty the document if it is already empty, this
21880 seems to severly mess up the caret. TODO: I should probably fix
21881 the empty statement to update teh caret somehow.
21883 2006-10-03 Chris Toshok <toshok@ximian.com>
21885 * ThemeWin32Classic.cs, DataGrid.cs: some changes so that the
21886 incredibly hacky Windows.Forms FAQ autosize rows entry (it uses
21887 reflection, an internal row type, properties on said type, etc.)
21888 will work with our datagrid. Fixes #79531.
21890 2006-10-03 Alexander Olk <alex.olk@googlemail.com>
21892 * FileDialog.cs: Don't crash if a path is not accessible
21893 (System.UnauthorizedAccessException). Fixes #79569.
21894 * MimeIcon.cs: Workaround for a Uri bug. Unix paths/files can have
21895 a ':' too. Return unknown icon for those paths/files.
21897 2006-10-03 Sebastien Pouliot <sebastien@ximian.com>
21899 * ToolTip.cs: Fix rare, but possible, NRE on MouseEnter when
21900 GetContainerControl returns null.
21902 2006-10-02 Chris Toshok <toshok@ximian.com>
21904 * XplatUIX11.cs (GetWindowState): use hwnd.client_window in the
21905 call to XGetWindowAttributes instead of "handle". fixes an X
21906 error using notifyicon after the NotifyIconWindow to Form base
21909 2006-10-02 Chris Toshok <toshok@ximian.com>
21911 * XplatUIX11.cs (QueryPointer): new function, encapsulating the
21912 server grab and looping we need to do to get down to the most
21913 deeply nested child window.
21914 (SetCursorPos): use QueryPointer instead of GetCursorPos, and call
21915 QueryPointer again after the WarpPointer so we can generate a
21916 proper (fake) MotionNotify event to be enqueued in the destination
21918 (GetCursorPos): call QueryPointer.
21922 2006-10-02 Jackson Harper <jackson@ximian.com>
21924 * NotifyIcon.cs: Derive the notify icon from a form, so things
21925 like FindForm work on it.
21926 - Swallow the WM_CONTEXTMENU message, since that is generated on
21927 mouse down, and context menu is a mouse up kinda guy. I believe
21928 the correct fix here is probably to make the notify icon entirely
21929 NC area, but this seems to work fine for anyone not manipulating
21932 2006-10-02 Jonathan Pobst <monkey@jpobst.com>
21934 * ToolStrip.cs, ToolStripButton.cs, ToolStripItem.cs,
21935 ToolStripItemCollection.cs, ToolStripLabel.cs,
21936 ToolStripProfessionalRenderer.cs, ToolStripRenderer.cs,
21937 ToolStripSeparator.cs, ToolStripSplitStackLayout.cs:
21938 Initial implementation.
21939 * TextRenderer.cs: Provide padding to MeasureText.
21941 2006-10-02 Sebastien Pouliot <sebastien@ximian.com>
21943 * ButtonBase.cs: Fix CreateAccessibilityInstance to return an instance
21944 of ButtonBaseAccessibleObject. Fix bug #79552.
21946 2006-10-02 Jackson Harper <jackson@ximian.com>
21948 * MdiWindowManager.cs: When maximizing use the containers client
21949 rect, not it's bounds, so nc area is accounted correctly.
21950 - Use the parent form's size for the menu position, since the
21951 client isn't always the full form size.
21953 2006-10-01 Chris Toshok <toshok@ximian.com>
21955 * ScrollableControl.cs: make sure neither right_edge or
21956 bottom_edge are < 0, since they're used as LargeChange for the
21957 horiz/vert scrollbars respectively. Fixes #79539.
21959 2006-10-01 Chris Toshok <toshok@ximian.com>
21961 * NotifyIcon.cs: add NotifyIconWindow.InternalRecreateHandle, so
21962 the xplatuix11 code can cause us to destroy/recreate our handle.
21966 - this code can be invoked many times for the same Hwnd. Make
21967 sure we only destroy the client window once (the first time this
21968 method is called). This fixes bug #79544.
21969 - Remove the call to the improperly bound XSync. why we had two
21970 bindings to this, I will never know, but this call resulted in
21971 events being discarded from the queue(!).
21972 - correct a misunderstanding of _XEMBED_INFO - the second atom is
21973 not our current state but the state we wish to be in. So, 0 if
21974 we don't want to be mapped. Change it to 1.
21975 (SystrayRemove): The XEMBED spec makes mention of the fact that
21976 gtk doesn't support the reparent of client windows away from the
21977 embedder. Looking at gtksocket-x11.c seems to agree with this.
21978 The only avenue we have for removing systray icons is to destroy
21979 them. We don't want the handle to go away for good, though, so
21980 call InternalRecreateHandle on the NotifyIconWindow. Fixes
21983 2006-10-01 Chris Toshok <toshok@ximian.com>
21985 * Form.cs (WndProc): inline the native_enabled variable usage into
21986 the cases in which it's used. Fixes #79536.
21988 2006-09-29 Mike Kestner <mkestner@novell.com>
21990 * ListView.cs : toggle the selection state for ctrl clicks in
21991 multiselect mode. [Fixes #79417]
21993 2006-09-29 Mike Kestner <mkestner@novell.com>
21995 * ListView.cs : kill CanMultiSelect and refactor the selection
21996 code to support multiselection in the absence of mod keys. Steal
21997 arrow/home/end keys by overriding InternalPreProcessMessage to
21998 restore regressed keynav behavior.
22001 2006-09-29 Jackson Harper <jackson@ximian.com>
22003 * MdiClient.cs: Repaint the titlebars when the active window is
22006 2006-09-29 Chris Toshok <toshok@ximian.com>
22008 * Application.cs: when entering a runloop with a modal, make sure
22009 the hwnd is enabled. Fixes #79480.
22011 2006-09-29 Chris Toshok <toshok@ximian.com>
22013 * DataGrid.cs (CurrentCell): if we try to navigate to the add row
22014 when ListManager.CanAddRows == false, bump us back one.
22016 * DataGridColumnStyle.cs (ParentReadOnly): remove the
22017 listmanager.CanAddRows check. This makes ArrayLists uneditable
22018 using a datagrid, which is not right.
22019 (SetColumnValueAtRow): call IEditable.BeginEdit if source[rowNum]
22020 is an IEditable, but call property_descriptor.SetValue regardless.
22023 2006-09-29 Chris Toshok <toshok@ximian.com>
22025 * DataGridBoolColumn.cs: we need to test equality in the face of
22026 possible null values (as is the case with the default NullValue).
22027 This patch keeps us from crashing in that case.
22029 2006-09-29 Jackson Harper <jackson@ximian.com>
22031 * TreeNodeCollection.cs: Don't do a recalculate/updatescrollbars
22032 here, since it will get called for every node collection in the
22033 tree. This is now done in the treeview once the sorting is
22035 * TreeView.cs: Recalculate the visible order, and update the
22036 scrollbars after sorting, set the top nope to the root so that the
22037 recalc actually works.
22039 2006-09-29 Chris Toshok <toshok@ximian.com>
22041 * LinkLabel.cs: more handling of the default link collection in
22042 the face of LinkArea manipulation. The default link collection
22043 contains 1 element (start=0,length=-1). If the user sets LinkArea
22044 to anything and the links collection is the default, clear it.
22045 Then only add the link if its nonempty. Fixes #79518.
22047 2006-09-29 Chris Toshok <toshok@ximian.com>
22049 * LinkLabel.cs (CreatePiecesFromText): calculate the length of a
22050 piece correctly when we hit a '\n'. Fixes #79517.
22052 2006-09-29 Chris Toshok <toshok@ximian.com>
22054 * MimeIcon.cs, ThemeGtk.cs, X11DesktopColors.cs, XplatUIX11GTK.cs:
22055 change the binding of gdk_init_check to take two IntPtr's, and
22056 pass IntPtr.Zero for both of them. Fixes #79520.
22058 2006-09-29 Mike Kestner <mkestner@novell.com>
22060 * ComboBox.cs : raise TextChanged on ComboTextBox.TextChanged.
22063 2006-09-28 Jackson Harper <jackson@ximian.com>
22065 * XplatUIX11.cs: When translating NC messages make sure we go from
22066 whole window to screen, not client window to screen.
22067 * MdiClient.cs: Remove the calls to PaintWindowDecorations, this
22068 method doesn't exist
22069 - Skip over controls that aren't forms when arranging.
22071 2006-09-28 Jackson Harper <jackson@ximian.com>
22073 * XplatUIWin32.cs: Clip the rect to the parent window.
22074 * XplatUIStructs.cs: Add clipping modes struct.
22075 * InternalWindowManager.cs: New private method that factors title
22076 bar heights in when calculating the pos of an NC mouse message.
22077 - Use SendMessage to force a paint when the form's size is changed
22078 instead of painting the decorations immediately.
22079 - Don't let the NC button click messages get to DefWndProc,
22080 because they will attempt to handle windowing themself, and this
22081 messes up z-order (it will put them in front of the scrollbars).
22082 * XplatUIX11.cs: Make sure that we don't reset window managers if
22083 we already have one (ie the window is an MDI window).
22085 2006-09-28 Chris Toshok <toshok@ximian.com>
22087 * MainMenu.cs: fix #79405 by way of a disgusting hack. all the
22088 menu code really needs going over.
22090 2006-09-27 Chris Toshok <toshok@ximian.com>
22092 * XplatUIX11.cs (SetWMStyles): more metacity wonderment. turns
22093 out metacity ignores the MAXIMIZE_HORZ/VERT messages unless the
22094 window is maximizable. So, we need to make sure that even if we
22095 clear the border/wm frame of those functions, they're still
22096 available (basically, we remove the decoration without removing
22097 the function). Half the fix for #79338.
22099 2006-09-27 Chris Toshok <toshok@ximian.com>
22101 * DataGrid.cs (ProcessGridKey): implement Shift-Tab handling.
22104 2006-09-27 Chris Toshok <toshok@ximian.com>
22106 * Splitter.cs: reorder things a bit so that we don't actually
22107 draw/move the splitter until after calling OnSplitterMoving. This
22108 lets users cancel/disallow the movement by explicitly setting
22109 event.SplitX/SplitY. Fixes #79372.
22111 2006-09-27 Jackson Harper <jackson@ximian.com>
22113 * XplatUIX11.cs: Don't hide the caret when it is being destroyed,
22114 because it is most likely on a window being destroyed, and that
22115 will give us an X11 error.
22117 2006-09-27 Chris Toshok <toshok@ximian.com>
22119 * PropertyGridView.cs: half of the fix for #78190. Clicking on
22120 the dropdown button now toggles between showing and hiding the
22121 dropdown. Also, get rid of dropdown_form_showing and just use
22122 dropdown_form.Visible. We still don't do a grab, but I'll leave
22123 that part to someone who has handled Capture-fu before.
22125 2006-09-27 Chris Toshok <toshok@ximian.com>
22127 * DataGrid.cs: return false if alt isn't pressed when '0' is
22128 pressed. this keeps the '0' key from being swallowed, and fixes
22131 2006-09-27 Chris Toshok <toshok@ximian.com>
22133 * ComboBox.cs: use Invalidate when scrolling the dropdown list.
22134 Calling Refresh (in response to a scrollbar event) screws up the
22135 scrollbar painting. Fixes bug #78923.
22137 2006-09-27 Chris Toshok <toshok@ximian.com>
22139 * Theme.cs (SystemResPool): make the "if hashtable[key] == null
22140 then insert into hashtable" blocks threadsafe.
22142 2006-09-27 Chris Toshok <toshok@ximian.com>
22144 * MessageBox.cs (CreateParams): the styles should be |'ed with our
22145 baseclass's, since otherwise the
22146 ControlBox/MinimizeBox/MaximizeBox assignments above have no
22147 effect. This gets the close button back in messageboxes.
22149 2006-09-27 Chris Toshok <toshok@ximian.com>
22151 * XplatUIX11.cs: make StyleSet and ExStyleSet check == with the
22152 flag, not just != 0. this makes flags that are actually multiple
22153 bits (like WS_CAPTION) work. fixes bug #79508.
22155 2006-09-27 Jordi Mas i Hernandez <jordimash@gmail.com>
22157 * PageSetupDialog.cs: add support for getting and settings the
22158 paper size, source and orientation.
22160 2006-09-26 Chris Toshok <toshok@ximian.com>
22162 * XplatUIX11.cs (SetWMStyles): turns out when SYSMENU is not set
22163 and caption == "", we need to remove the resize handles as well as
22166 * Control.cs (set_Text): turns out that setting Text on a form
22167 should change the WM styles on the window, since if ControlBox ==
22168 false, the only way to get a window border is to have a non-""
22169 Text property. check winforms/forms/text.cs for an example. so,
22170 call both XplatUI.SetWindowStyle and XplatUI.Text here to properly
22171 update both window styles and title. This fixes a lot of dialogs
22172 (including the preferences dialog in MonoCalendar.)
22174 2006-09-26 Chris Toshok <toshok@ximian.com>
22176 * XplatUIWin32.cs (SetParent): if parent == IntPtr.Zero (and the
22177 control isn't a Form), call Win32ShowWindow to hide the window,
22178 but don't update the control Visible property. When we reparent
22179 back to a parent control, call SetVisible in order for the
22180 window's visibility to be reinstated.
22182 * XplatUIX11.cs (SetParent): if hwnd.parent == null, reparent to
22185 * Control.cs (ControlCollection.Remove): remove that value.Hide()
22186 call for good, since it breaks MonoCalendar (and other things I'm
22187 sure.) Also, set all_controls to null *after* the owner calls,
22188 which end up regenerating it.
22189 (ChangeParent): allow new_parent to be == null, passing
22190 IntPtr.Zero down to XplatUI.
22192 this fixes #79294 the right way.
22194 2006-09-26 Mike Kestner <mkestner@novell.com>
22196 * GridEntry.cs : internal SetParent method.
22197 * PropertyGrid.cs : attach to property changed on the proper
22198 target if we have a hierarchical grid with subobjects. Setup
22199 GridItem.Parent for hierarchical items.
22200 * PropertyGridView.cs : Set value on the correct target for
22201 hierarchical grids. [Fixes #78903]
22203 2006-09-26 Chris Toshok <toshok@ximian.com>
22205 * Control.cs (ChildNeedsRecreating): this should return true if
22206 either we're being recreated and the child is in our list, or our
22207 parent is waiting for our recreation.
22209 2006-09-26 Chris Toshok <toshok@ximian.com>
22211 * Control.cs (ControlCollection.Remove): reinstate the
22212 value.Hide() call as suggested in bug #79294.
22214 2006-09-26 Sebastien Pouliot <sebastien@ximian.com>
22216 * XplatUIX11.cs: Fixed SetCursorPos to move the cursor to screen
22217 coordinates (versus a relative move).
22219 2006-09-26 Chris Toshok <toshok@ximian.com>
22221 * Control.cs: rework child recreation a little bit. It turns out
22222 that we race between the DestroyNotify the WM_DESTROY message. If
22223 the parent gets its DestroyNotify before the child gets the
22224 WM_DESTROY message, the child ends up not recreating (since the
22225 parent finishes its recreation on DestroyNotify, and the child
22226 checks ParentIsRecreating.)
22228 So, instead we store off a list of all the child controls which
22229 need to be recreated when the parent control starts to recreate
22230 itself. Then, when child controls get their WM_DESTROY message we
22231 check to see if they're in the parent's pending recreation list,
22232 and if so, we recreate. This removes all dependency on ordering
22233 from the code and fixes the initial MonoCalendar upgrade dialog.
22235 2006-09-26 Jackson Harper <jackson@ximian.com>
22237 * TextControl.cs: Use the Line to get the length of the line,
22238 since soft line breaks can change the end line.
22240 2006-09-26 Chris Toshok <toshok@ximian.com>
22242 * Control.cs (ControlCollection.AddImplicit): don't add the
22243 control again if it's already in one of our lists. This keeps us
22244 from adding controls over and over again for comboboxes when their
22245 handle gets recreated (as the combobox adds implicit controls in
22246 OnHandleCreated). Fixes the X11 errors in bug #79480.
22248 2006-09-26 Jackson Harper <jackson@ximian.com>
22250 * TextControl.cs: When deleting characters make sure that any
22251 orphaned zero lengthed tags get deleted.
22252 - Fix ToString for zero lengthed tags.
22254 2006-09-25 Jackson Harper <jackson@ximian.com>
22256 * TextControl.cs: When getting a tag at the location there can be
22257 multiple tags at the same spot, these are 0-lengthed tags that
22258 appear when extra formatting has been stuck in a location. We
22259 need to pull out the last of these 0 lengthed tags.
22261 2006-09-25 Jackson Harper <jackson@ximian.com>
22263 * TextControl.cs: Fix print out in debug method.
22264 * TextBoxBase.cs: When text is set bail if we are setting to the
22267 2006-09-24 Alexander Olk <alex.olk@googlemail.com>
22269 * FontDialog.cs: Fixed the up/down arrow keys issue from bug #79478.
22270 It is now possible to change the selected index in a FontXXXListBox
22271 with the up and down arrow keys from the FontXXXTextBoxes.
22272 Also, send the FontXXXTextBox mouse wheel event to the corresponding
22273 FontXXXListBoxes to match ms.
22275 2006-09-22 Sebastien Pouliot <sebastien@ximian.com>
22277 * SystemInformation.cs: Return a clone of the theme's MenuFont because
22278 anyone can dispose it, anytime. All other properties returns enums,
22279 structs or basic types so they don't need such tricks.
22281 2006-09-22 Jackson Harper <jackson@ximian.com>
22288 * XplatUIDriver.cs: Update interface to add a primary selection
22289 flag, so the driver can use the primary selection buffer if
22291 * XplatUIX11.cs: Allow the clipboard to retrieve from PRIMARY.
22293 * RichTextBox.cs: We need to supply the data object to paste now
22294 (so we can choose to supply CLIPBOARD or PRIMARY).
22295 * TextBoxBase.cs: Supply data object to paste (see above).
22296 - Middle click uses the primary selection data object.
22298 2006-09-21 Chris Toshok <toshok@ximian.com>
22300 * XplatUIX11.cs: first little cleanup of the StyleSet (...) block
22301 of SetWMStyles. It's still a rat's nest and is largely
22302 order-dependent which I dislike immensely. This also fixes the X
22303 button disappearing from toplevel forms.
22305 2006-09-21 Mike Kestner <mkestner@novell.com>
22307 * ListBox.cs: move Jordi's click/dblclick raising code to the
22310 2006-09-21 Jordi Mas i Hernandez <jordimash@gmail.com>
22312 * ListBox.cs: Fixes 79450
22314 2006-09-21 Mike Kestner <mkestner@novell.com>
22316 * TreeView.cs: guard against disposed conditions in UpdateScrollbars
22317 to deal with people updating the TreeNodeCollection after the tree
22318 is disposed. "Fixes" 79330.
22320 2006-09-20 Jackson Harper <jackson@ximian.com>
22322 * TextControl.cs: Push the cursor record onto the undo stack
22323 before the delete action. This fixes 78651.
22325 2006-09-20 Jonathan Chambers <joncham@gmail.com>
22327 * PropertyGridView.cs: Remove WindowStyles.WS_VISIBLE from
22328 CreateParams. Fixes 79329.
22330 2006-09-19 Chris Toshok <toshok@ximian.com>
22332 * XplatUIX11.cs: a couple of blanket code massage passes to clean
22333 things up a bit. First, get rid of the NetAtoms array (and the NA
22334 enum), and just embed the atoms as static fields. Also, add a
22335 couple of functions (StyleSet and ExStyleSet) to clean up all the
22336 bitmask testing of styles.
22338 * X11Structs.cs: remove the NA enum, not needed anymore.
22340 2006-09-19 Chris Toshok <toshok@ximian.com>
22342 * XplatUIX11.cs: apply Alexander's tool window fix for bug #79245
22343 (mapping them to _NET_WM_WINDOW_TYPE_UTILITY). and add a little
22344 added cleanup to get MessageBox titles appearing again, which were
22345 broken by my earlier fix for caption-less/ControlBox-less windows.
22347 2006-09-18 Jonathan Pobst <monkey@jpobst.com>
22349 * ToolStripArrowRenderEventArgs.cs, ToolStripArrowRenderEventHandler.cs,
22350 ToolStripContentPanelRenderEventArgs.cs, ToolStripContentPanelRenderEventHandler.cs,
22351 ToolStripGripRenderEventArgs.cs, ToolStripGripRenderEventHandler.cs,
22352 ToolStripItemClickedEventArgs.cs, ToolStripItemClickedEventHandler.cs,
22353 ToolStripItemEventArgs.cs, ToolStripItemEventHandler.cs,
22354 ToolStripItemImageRenderEventArgs.cs, ToolStripItemImageRenderEventHandler.cs,
22355 ToolStripItemRenderEventArgs.cs, ToolStripItemRenderEventHandler.cs,
22356 ToolStripItemTextRenderEventArgs.cs, ToolStripItemTextRenderEventHandler.cs,
22357 ToolStripPanelRenderEventArgs.cs, ToolStripPanelRenderEventHandler.cs,
22358 ToolStripRenderEventArgs.cs, ToolStripRenderEventHandler.cs,
22359 ToolStripSeparatorRenderEventArgs.cs, ToolStripSeparatorRenderEventHandler.cs:
22361 * ToolStripPanel.cs, ToolStripContentPanel.cs, ToolStripSeparator.cs,
22362 ToolStripButton.cs: Stubs needed for above.
22363 * ToolStrip.cs, ToolStripItem.cs: Stub a few variables/properties for above.
22365 2006-09-15 Chris Toshok <toshok@ximian.com>
22368 - make the MessageQueues hashtable Synchronized.
22370 - SendMessage: if the Hwnd is owned by a different thread, use the
22371 AsyncMethod stuff to dispatch the SendMessage on the hwnd's
22372 thread. Fixes bug #79201.
22374 2006-09-15 Chris Toshok <toshok@ximian.com>
22376 * XplatUIX11.cs (SetWMStyles): rework the #79368 fix slightly. If
22377 ControlBox == false, we disallow maximize/minimize/close. If the
22378 form Caption is "" we also disallow move (and get rid of the Title
22379 decoration). Unfortunately, regardless of how things are set,
22380 we're stuck with the Title and WM menu.
22382 2006-09-15 Chris Toshok <toshok@ximian.com>
22384 * Application.cs: add locking around the static message_filters
22385 ArrayList, part of #79196.
22387 2006-09-15 Chris Toshok <toshok@ximian.com>
22389 * XplatUIX11.cs (SetWMStyles): if Form.Text == "" and
22390 Form.ControlBox == false, the window has no titlebar nor resize
22391 handles. fixes bug #79368.
22393 2006-09-15 Chris Toshok <toshok@ximian.com>
22395 * TextBoxBase.cs: in CalculateScrollBars make sure LargeChange is
22396 >= 0. Fixes bug #79370.
22398 2006-09-15 Jonathan Pobst <monkey@jpobst.com>
22399 * FlowLayoutPanel.cs, FlowLayoutSettings.cs: Initial commit.
22401 Add properties: LayoutEngine, Margin, DefaultMargin.
22402 Add method: GetPreferredSize.
22403 Move layout logic from PerformLayout to layout engines.
22405 2006-09-13 Chris Toshok <toshok@ximian.com>
22407 * XplatUIX11.cs: more destroy work. Jackson pointed out that my
22408 fix for #79326 broke #78718, so this change addresses that.
22410 - in SendWMDestroyMessages remove the call to
22411 CleanupCachedWindows, since we might be recreating the control and
22412 need to maintain the references to right Hwnd handles. Also, set
22413 the zombie flag to true for each of the children in the hierarchy
22414 instead of calling hwnd.Dispose. This will cause GetMessage to
22415 ignore all events for the window except for DestroyNotify.
22417 - In GetMessage, ignore messages except for DestroyNotify for
22420 * Control.cs: revert the is_recreating fix from the last
22421 ChangeLog. It's definitely "right", but it breaks switching from
22422 an MDI form to a non-MDI form. Will need to revisit that.
22424 * Hwnd.cs: add a zombie flag, which means "the
22425 client_window/whole_window handles are invalid, but we're waiting
22426 for the DestroyNotify event to come in for them". Set the flag to
22427 false explicitly if setting WholeWindow/ClientWindow, and also
22430 2006-09-13 Chris Toshok <toshok@ximian.com>
22432 * XplatUIX11.cs: rework window destruction slightly.
22434 - when destroying the windows associated with a control, we don't
22435 need 2 separate XDestroyWindow calls. Just the one for the
22436 whole_window (or for client_window if whole_window is somehow
22437 IntPtr.Zero -- can this happen?) is enough.
22439 - reworked SendWMDestroyMessages slightly, so we always dispose
22440 the child control hwnd's after sending the messages.
22442 - refactored out the ActiveWindow/FocusWindow/Caret clearing from
22443 the two places it was used (one was even using hwnd.Handle and the
22444 other hwnd.client_window. ugh), adding another call in
22445 SendWMDestroyMessages. We need this new call because now the
22446 DestroyNotify events in the queue will be ignored for the child
22447 controls (as their hwnd's were disposed, and the window id's
22448 removed from the hashtable in SendWMDestroyMessages.) fun, eh?
22450 - this fixes bug #79326.
22452 2006-09-13 Chris Toshok <toshok@ximian.com>
22454 * Control.cs: don't always set is_recreating to false at the end
22455 of RecreateHandle, since sometimes we're not done (and won't be
22456 until WndProc handles the WM_DESTROY message). Also, set
22457 is_recreating to false in the WM_DESTROY handling code. Part of
22458 the fix for bug #79326.
22460 2006-09-13 Miguel de Icaza <miguel@novell.com>
22462 * X11DesktopColors.cs: Start the droppage of debugging messages.
22464 * FileDialog.cs: Store the configuration file in ~/.mono/mwf_config
22466 2006-09-13 Jonathan Pobst <monkey@jpobst.com>
22468 * SplitContainer.cs, SplitterPanel.cs: Initial implementation [2.0].
22470 2006-09-12 Chris Toshok <toshok@ximian.com>
22472 * DataGrid.cs (get_ListManager): if the list_manager is null, try
22473 to create it using SetDataSource. Fixes bug #79151.
22475 2006-09-11 Chris Toshok <toshok@ximian.com>
22477 * XEventQueue.cs: add a DispatchIdle property.
22479 * XplatUIX11.cs (UpdateMessageQueue): only emit the Idle event if
22480 either the queue is null, or the queue has DispatchIdle set to
22482 (DoEvents): set queue.DispatchIdle to false around the
22483 peek/translate/dispatch message loop in this method. This keeps
22484 Application.Doevents from emitting idle events. Part of the fix
22487 2006-09-11 Chris Toshok <toshok@ximian.com>
22489 * DataGrid.cs (set_DataSource): make this work for both the
22490 winforms/datagrid test and ReportBuilder. It seems as though when
22491 we've created a ListManager (or maybe it's if we have a
22492 BindingContext?), when we set the DataSource it clears the
22493 DataMember to "". otherwise we reuse the datamember. Fixes bug
22496 2006-09-11 Chris Toshok <toshok@ximian.com>
22498 * XplatUIX11.cs: deal with queue being null, which happens in all
22499 the Clipboard functions. Fixes one of the two problems mentioned
22502 2006-09-11 Chris Toshok <toshok@ximian.com>
22504 * MenuAPI.cs: rework OnMouseUp a bit so that releasing the mouse
22505 button on various spots (including outside the menu) works closer
22506 to MS, and doesn't crash. Fixes #79343.
22508 2006-09-11 Gert Driesen <drieseng@users.sourceforge.net>
22510 * ListView.cs: Do not initialize item_sorter in init. To match MS,
22511 return null for ListViewItemSorter if View is SmallIcon or LargeIcon
22512 and the internal comparer is set. When a new ListViewItemSorter is set,
22513 sort the items. Use Enum.IsDefined to verify whether a valid SortOrder
22514 was specified. No further processing is necessary if SortOrder is set
22515 to it's current value. If Sorting is modified to None, and View is
22516 neither SmallIcon nor LargeIcon then: on 2.0 profile set item_sorter
22517 (either custom or our internal ItemComparer) to null, on 1.0 profile
22518 only set item_sorter to null if its our internal IComparer. If Sorting
22519 is modified to Ascending or Descending, then use our internal IComparer
22520 if none is set, and if the current IComparer is our internal one then:
22521 on 2.0 profile always replace it with one for new Sorting, and on 1.0
22522 profile only use new Sorting if view is not SmallIcon or LargeIcon. Use
22523 Enum.IsDefined to verify whether a valid View value is specified in
22524 its setter. Automatically sort listview items when listview is
22525 created. In Sort, do nothing if ListView is not yet created, or if
22526 no item_sorter is set (no Sorting was set, Sorting was explicitly set
22527 to None or ListViewItemSorter was set to null). Added Sort overload
22528 taking a bool to indicate whether the ListView should be redrawn when
22529 items are sorted (we use this in ListViewItemCollection to avoid double
22530 redraws). Modified our internal IComparer to take the sort order into
22531 account. In Add and AddRange methods of ListViewItemCollection, also
22532 call Sort if Sorting is None (necessary for SmallIcon and LargeIcon
22533 view), but use overload with noredraw option to avoid double redraw.
22534 On 2.0 profile, throw NotSupportedException when setting CheckBoxes to
22535 true when View is Tile, and do the same when attempting to set View to
22536 Tile when CheckBoxes is true. Avoid maintaining separate ArrayLists
22537 for selected/checked indices, as it involves overhead when sorting is
22538 done while these collections are not used all that often. Instead
22539 we'll build the indices on demand. Modified IList implementation of
22540 CheckedIndexCollection to use public methods if object is int.
22541 Modified CheckedListViewItemCollection to hide checked items if
22542 ListView.CheckBoxes is false. Removed LAMESPEC remark in
22543 ListViewItemCollection as the .NET SDK docs have been fixed. Modified
22544 IList implementation in SelectedIndexCollection to use public methods
22545 if object is int. Modified SelectedListViewItemCollection to hide
22546 selected items if listview is not yet created.
22547 * ListViewItem.cs: CheckedIndices list no longer needs to be
22548 maintained separately (see ListView changes). Also clone font, fixes
22551 2006-09-11 Mike Kestner <mkestner@novell.com>
22553 * ComboBox.cs: if we are updating the contents of the currently
22554 selected index, refresh the control or the textbox selection.
22557 2006-09-11 Mike Kestner <mkestner@novell.com>
22559 * ComboBox.cs (UpdateBounds): use SetBounds not SetBoundsCore since
22560 the 'specified' logic has been moved there. This seems like a bug
22561 in Control.cs, since our current SetBoundsCore completely ignores
22562 the specified parameter. Peter's commit seems to indicate that is
22563 the way the MS control implementation works. [Fixes #79325]
22565 2006-09-10 Jonathan Chambers <joncham@gmail.com>
22567 * XplatUI.cs: Set default_class_name to be composed
22568 of current domain id. This allows MWF to be loaded in multiple
22571 2006-09-09 Miguel de Icaza <miguel@novell.com>
22573 * X11Keyboard.cs: If we are unable to obtain the input method, do
22574 not call CreateXic to create the input context. Should fix
22577 2006-09-08 Alexander Olk <alex.olk@googlemail.com>
22579 * MimeIcon.cs: Rewrote major parts. Dropped KDE support for now.
22580 Simplified gnome support by adding more pinvokes to get the
22581 icon for a file or mime type.
22583 2006-09-08 Jackson Harper <jackson@ximian.com>
22585 * MenuAPI.cs: Deslect popup context menu items before closing the
22586 window, so that you don't see the previously selected item
22587 selected when you reopen the menu.
22588 * TextControl.cs: Update the cursor position even if we don't have
22589 focus. This fixes typing in things like the ComboBox. I'm not
22590 totally sure we should always set the visibility if we don't have
22591 focus, but couldn't find any corner cases where the cursor showed
22592 up when it shouldn't.
22594 2006-09-08 Chris Toshok <toshok@ximian.com>
22596 * X11Keyboard.cs: In UpdateKeyState vkey can be any integer, but
22597 our arrays are length 256. & 0xff before indexing. Fixes the
22598 crash in bug #78077.
22600 2006-09-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
22602 * ThemeWin32Classic.cs:
22603 * DateTimePicker.cs: Draw check box if DateTimePicker.ShowCheckBox
22604 is true. Handle that check box too.
22606 2006-09-07 Chris Toshok <toshok@ximian.com>
22608 * MenuAPI.cs: move the PerformClick call to OnMouseUp. Fixes bug
22611 2006-09-07 Chris Toshok <toshok@ximian.com>
22613 * Control.cs: in set_BackColor only do the work if
22614 background_color != value.
22616 * XplatUIX11.cs: move the clearing of invalid areas (both client
22617 and nc) to the same block of code where we set (nc_)expose_pending
22618 to false. That is, move it from PaintEventEnd to PaintEventStart,
22619 so things that cause invalidates from within OnPaint will trigger
22620 another call to OnPaint. Fixes bug #79262.
22622 2006-09-07 Alexander Olk <alex.olk@googlemail.com>
22624 * Theme.cs: Use correct icon for UIIcon.PlacesPersonal
22625 * FileDialog.cs: Fix typo
22627 2006-09-07 Jackson Harper <jackson@ximian.com>
22629 * ThemeWin32Classic.cs: oops, forgot to commit. Draw the images
22630 for tab pages if they have any.
22632 2006-09-06 Mike Kestner <mkestner@novell.com>
22634 * Splitter.cs: use the "current" rect when finishing drag handle
22635 to avoid an artifact demonstrated by resedit.exe. [Fixes #79251]
22637 2006-09-06 Mike Kestner <mkestner@novell.com>
22639 * Splitter.cs: draw the drag handle at X or Y instead of 0 to deal
22640 support offset splitters. [Fixes #79298]
22642 2006-09-06 Alexander Olk <alex.olk@googlemail.com>
22644 * Mime.cs: Fixed a bug that could override the global mime type
22647 2006-09-05 Jackson Harper <jackson@ximian.com>
22649 * TabControl.cs: Better calculation method for setting the slider
22650 pos. Prevents crashes on really wide tabs.
22651 - Draw Image on tab pages if an image list is used.
22653 2006-09-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
22655 * MonthCalendar.cs: When Font changes, the Size should be
22656 updated to fit the new font's space requirements.
22658 2006-09-02 Alexander Olk <alex.olk@googlemail.com>
22660 * ListBox.cs: If the items are cleared with Items.Clear set
22663 2006-09-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
22665 * MonthCalendar.cs: Handle arrow keys as input keys. Also
22666 fire DateChanged event instead of DateSelected event when
22667 the date was changed by keyboard interaction.
22669 2006-09-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
22671 * DateTimePicker.cs: Handle DateChanged for the associated
22672 month_calendar control, and set month_calendar.Font from
22673 OnFontChanged method, as well as resize the height of the
22674 control when needed. Make PreferredHeight proportional.
22676 2006-09-01 Chris Toshok <toshok@ximian.com>
22678 * DataGrid.cs: grr, stop overthinking the DataMember/DataSource
22681 * BindingContext.cs (HashKey.GetHashCode): use ^ instead of +.
22683 2006-09-01 Peter Dennis Bartok <pbartok@novell.com>
22685 * FileDialog.cs: Set ClientSize instead of window size, to allow space
22686 for decorations (Fixes #79219)
22688 2006-09-01 Mike Kestner <mkestner@novell.com>
22690 * ComboBox.cs: first stab at sorting plus some selection handling
22691 fixes to bring us more in line with MS behavior. Also switches back
22692 to index based selection. Alternative patches for index-based
22693 selection were provided by Jackson Harper, Carlos Alberto Cortez,
22694 and latency@gmx.de on bug 78848. I assume they were similar to this
22695 code I've had simmering in my tree forever.
22698 2006-09-01 Chris Toshok <toshok@ximian.com>
22700 * CurrencyManager.cs (ListChangedHandler): in the ItemAdded case,
22701 when setting list position guard against ending up with a -1 index
22702 (the other part of the fix for #78812). Should probably make sure
22703 we don't need the analogous fix in the ItemDeleted case.
22706 - in SetDataSource, work around the fact that the way
22707 OnBindingContextChanged is invoked will cause us to re-enter this
22708 method. I'll remove the hack once I investigate
22709 OnBindingContextChanged.
22711 - fix the logic in set_DataSource and set_DataMember (basically
22712 what to do if the other of the two is null.)
22714 - in OnListManagerItemChanged, we need to take into account the
22715 edit row when deciding whether or not to call RecreateDataGridRows
22716 (part of the fix for #78812).
22718 2006-09-01 Jackson Harper <jackson@ximian.com>
22720 * Splitter.cs: Don't do anything if there is no control to affect
22721 (prevents us from crashing in weird tet cases).
22722 * TreeView.cs: Bounding box for the mouse movement reverting
22723 focus/selection back to previously selected node. This matches
22724 MS, and makes the tree a lot more useable.
22725 * GroupBox.cs: Instead of drawing over the lines of the groupbox,
22726 use clipping so they are not drawn. This fixes when the control
22727 is set to have a transparent background, or if it was over an
22730 2006-09-01 Alexander Olk <alex.olk@googlemail.com>
22732 * MimeIcon.cs: Improved handling for reading default icons when
22733 using gnome (2.16 made it necessary). Check and read svg icons
22734 first, then 48x48 and then 32x32 icons.
22736 2006-08-31 Chris Toshok <toshok@ximian.com>
22738 * DataGridTextBoxColumn.cs: only hide the textbox if it's still
22741 * DataGridTextBox.cs: Pass Tab's up to the datagrid by calling
22742 ProcessKeyPreview. Fixes part of #77806.
22744 * DataGrid.cs: big patch.
22746 - revert the queueing up of DataSource/DataMember if inside
22747 BeginInit/EndInit calls. That's not the way the datagrid achieves
22748 its delayed databinding. Instead, call SetDataSource in
22749 OnBindingContextChanged. This mimic's MS's behavior, and fixes
22752 - Also, it wasn't mentioned in #78811, but the test case exhibits
22753 behavior that was lacking in our datagrid implementation - Columns
22754 that have mapping names that don't exist in the datasource's
22755 properties aren't shown. Yuck. To fix this I added the bound
22756 field to the column style, and basically any calculation to figure
22757 out anything about columns uses a loop to find the bound columns.
22758 still need to investigate if I can cache an array of the bound
22759 columns or if the indices must be the same.
22761 - When setting CurrentCell, we no longer abort if the cell being
22762 edited was in the add row. This fixes the other part of #77806.
22764 - The new code also fixes #78807.
22766 * ThemeWin32Classic.cs: perpetrate the same disgusting
22767 column.bound field hack, and only render bound fields.
22769 2006-08-31 Chris Toshok <toshok@ximian.com>
22771 * DataGridColumnStyle.cs: add bound field. this field is true if
22772 the datasource has a property corresponding to the mapping name.
22774 * DataGridTableStyle.cs: set the bound field on the column styles
22775 depending on whether or not we have a column for that property.
22777 2006-08-31 Peter Dennis Bartok <pbartok@novell.com>
22779 * Splitter.cs (SetBoundsCore): Don't ignore width/height of the
22780 splitter control (fixes #79228)
22782 2006-08-31 Chris Toshok <toshok@ximian.com>
22784 * DataGridColumnStyle.cs: we need to delay the assignment of
22785 property descriptor until the last possible moment due to the lazy
22786 databinding stuff in the datagrid. Also, fix the exceptions
22787 thrown by CheckValidDataSource to match MS.
22789 2006-08-31 Jackson Harper <jackson@ximian.com>
22791 * Form.cs: When activated select the active control, if there is
22792 no active control, we select the first control.
22793 * XplatUIX11.cs: If there is no focus control when we get a
22794 FocusIn event, find the toplevel form and activate it. This
22795 occurs when you popup a window, it becomes the focus window, then
22796 you close that window, giving focus back to the main window.
22798 2006-08-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
22800 * MonthCalendar.cs:
22801 * ThemeWin32Classic.cs: Cache Font in bold style, as well
22802 as StringFormat with Center alignments in MonthCalendar,
22803 instead of creating new ones when drawing the control.
22804 Also, draw the month name in bold style.
22806 2006-08-30 Peter Dennis Bartok <pbartok@novell.com>
22809 - PerformLayout(): It would seem MS performs the fill even if the
22810 control is not visible (part of #79218 fix)
22811 - ResetBackColor(): Use the setter to reset the color, to allow
22812 overriders to catch the change.
22814 - .ctor: Call UpdateBounds to adjust client rectangle (part of #79218 fix)
22815 - CreateHandle(): dito (part of $79218 fix)
22816 - Don't set an icon if we have a dialog
22817 * ScrollableControl.cs:
22818 - set_AutoScrollMinSize: Setting the property enables AutoScroll (#79218)
22819 - ScrollIntoView(): No need to scroll if control is already visible
22820 (resolves fixme and fixes #79218)
22822 2006-08-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
22824 * MonthCalendar.cs: Change proportions in SingleMonthSize
22825 to match the aspect of the original control.
22827 2006-08-29 Alexander Olk <alex.olk@googlemail.com>
22829 * XplatUIX11.cs: Fix for a metacity/X problem where windows don't
22830 get updated when they get maximized.
22832 2006-08-29 Peter Dennis Bartok <pbartok@novell.com>
22834 * XplatUIX11.cs: Handle windows with no border (Fixes part of #79160)
22836 2006-08-29 Chris Toshok <toshok@ximian.com>
22838 * XplatUIX11.cs: when destroying the FocusWindow, send KILLFOCUS.
22840 2006-08-29 Jackson Harper <jackson@ximian.com>
22842 * TreeView.cs: Need to track selected node and highlighted node,
22843 they aren't always the same thing, when the mouse is down on a
22844 node it is hilighted, but not selected yet.
22845 - Do the HideSelection stuff right
22846 - Need to focus on rbutton mouse down. And redraw selection when
22847 right click is mouse upped.
22849 2006-08-29 Mike Kestner <mkestner@novell.com>
22851 * ThemeWin32Classic.cs: draw selections for columns in FullRowSelect
22852 when SubItems.Count < Columns.Count. [Fixes #79167]
22854 2006-08-28 Peter Dennis Bartok <pbartok@novell.com>
22856 * TextControl.cs (FindCursor): Fix math error (Fixes #78402)
22858 2006-08-28 Peter Dennis Bartok <pbartok@novell.com>
22860 * XplatUIX11.cs: Preempt the roundtrip for getting the location back
22861 from X. Only send based on ConfigureNotify if we don't have the
22862 correct location in hwnd (if the window manager moved us)
22864 2006-08-28 Mike Kestner <mkestner@novell.com>
22866 * ListView.cs: remove a TODO.
22867 * ThemeWin32Classic.cs: implement HideSelection support for ListView.
22868 [Fixes ListView part of #79166]
22870 2006-08-28 Mike Kestner <mkestner@novell.com>
22872 * ListView.cs: move wheel handler to parent since it is focused
22873 instead of the item_control now. [Fixes #79177]
22875 2006-08-28 Mike Kestner <mkestner@novell.com>
22877 * ThemeWin32Classic.cs: only highlight subitems in fullrowselect
22878 when the control is focused. [Fixes #79171]
22880 2006-08-28 Mike Kestner <mkestner@novell.com>
22882 * ListView.cs: size the item and header controls for empty and
22883 unscrollable views.
22884 * ThemeWin32Classic.cs: draw disabled backgrounds.
22887 2006-08-28 Chris Toshok <toshok@ximian.com>
22889 * Form.cs: remove unused "active_form" static field.
22891 * Hwnd.cs: lock around accesses to static windows collection.
22893 * Application.cs: lock threads in Exit ().
22895 2006-08-28 Chris Toshok <toshok@ximian.com>
22897 * NativeWindow.cs: lock around accesses to window_collection.
22899 2006-08-28 Chris Toshok <toshok@ximian.com>
22901 * Control.cs: err, fix this the right way, by locking on controls
22902 when using it. not by making it synchronized.
22904 2006-08-28 Chris Toshok <toshok@ximian.com>
22906 * Control.cs: make the static "controls" field synchronized, as it
22907 gets updated from multiple threads.
22909 2006-08-27 Peter Dennis Bartok <pbartok@novell.com>
22911 * XplatUIX11.cs: PostQuitMessage is thread-specific not app-specific.
22912 Prevent other threads from exiting when calling thread sets quit state.
22913 * XEventQueue.cs: Added PostQuitState property
22915 2006-08-27 Chris Toshok <toshok@ximian.com>
22917 * AsyncMethodData.cs: add a slot for the window handle.
22919 * XplatUIX11.cs (SendAsyncMethod): send the event to the right
22920 window (the destination control's window, not the foster window).
22922 * Control.cs (BeginInvokeInternal): store the window's handle in
22923 the AsyncMethodData.
22926 2006-08-27 Peter Dennis Bartok <pbartok@novell.com>
22929 - PostQuitMessage: Removed resetting S.D display handle, we might have
22930 another loop started after calling PostQuitMessage (Fixes #79119)
22931 - Created destructor to reset S.D handle
22933 2006-08-27 Peter Dennis Bartok <pbartok@novell.com>
22935 * XplatUIX11.cs (SetCursor): Issue flush after setting the cursor (#79168)
22937 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
22939 * TextControl.cs (Insert): Update the caret position even if we don't
22940 have a handle yet, just don't call the driver in that case.
22941 * TextBoxBase.cs (set_SelectedText): Set the Start and End selection
22942 to the end of the new selection text (Fixes #79184)
22944 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
22946 * Form.cs (Activate): Only activate if the handle is created)
22948 - Mark window as invisible when it's disposed
22949 - Check if window handle is created when setting window visible,
22950 instead of relying just on the is_created variable
22951 - Check if object is disposed when creating the control (Fixes #79155)
22953 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
22955 * ScrollableWindow.cs (ScrollWindow): Don't actually perform layouting
22956 when allowing layout again. Otherwise we re-generate the anchoring
22957 distance to the border again and actually alter what the user wanted
22958 This is ugly, it'd be better if we used DisplayRectangle instead of
22959 ClientRectangle for Control.UpdateDistances, but that causes us to
22960 have other problems (initial anchoring positons would be wrong)
22963 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
22966 - The size and location setters shouldn't go directly to
22967 SetBoundsCore, but to SetBounds, which triggers layout on the
22968 parent, then calls SetBoundsCore. (Related to fix for #78835)
22969 - SetBounds: Moved actual location update code into this function
22970 from SetBoundsCore, to match MS. Added call to PerformLayout if
22971 we have a parent (to trigger resizing of anchored parents if the
22972 child size has changed (see testcase for #78835)
22973 * ListBox.cs, Form.cs: Call SetBounds instead of SetBoundsCore to match
22975 * ScrollableControl.cs (CalculateCanvasSize): Use shortcut variable
22977 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
22979 * XplatUIX11.cs: Don't reset the DisplayHandle that's stored in
22980 System.Drawing when a toplevel window gets closed; there might
22981 be other toplevel windows belonging to the same app (Fixes #78052)
22983 2006-08-26 Alexander Olk <alex.olk@googlemail.com>
22985 * FileDialog.cs: After reading FileDialog settings from mwf_config
22986 use Desktop prefix only if a real folder doesn't exist anymore.
22987 * FontDialog.cs: Added char sets.
22988 It is now possible to select the font, size or style with the
22991 2006-08-25 Kornél Pál <kornelpal@gmail.com>
22993 * PrintPreviewDialog.cs: Use assembly name constants.
22995 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
22997 * XplatUIWin32.cs (ScrollWindow): Use clipping rectangle arg (prevents
22998 scrollbar from whacking it's buttons)
23000 2006-08-24 Chris Toshok <toshok@ximian.com>
23002 * ScrollableControl.cs: fix #78271. There's a lot of misc stuff
23003 in this patch (aggregating setting Left/Top/Width/Height to
23004 setting Bounds on the scrollbars), but the crux of the fix is in
23005 Recalculate, where we scroll by the remaining scroll_position if
23006 we're hiding a scrollbar. The 2*$5 reward in the comment is
23009 2006-08-24 Jackson Harper <jackson@ximian.com>
23012 * MdiWindowManager.cs: If the form is made a non-mdi window we
23013 need to remove the form closed event so that closing forms works
23016 2006-08-24 Jackson Harper <jackson@ximian.com>
23018 * Control.cs: Make IsRecreating internal so that the driver can
23020 - Temporarily remove the Hide when controls are removed, its
23021 making a whole bunch of things not work because visibility isn't
23022 getting reset elsewhere correctly
23023 * Form.cs: Need to do a full handle recreation when the mdi parent
23025 * XplatUIX11.cs: If we are recreating handles don't dispose the
23026 HWNDs. What was happening is the handles were being recreated in
23027 SendWMDestroyMessages, but then flow continued on in that method
23028 and destroyed the new handles.
23030 2006-08-23 Jackson Harper <jackson@ximian.com>
23032 * Form.cs: MdiClient is always at the back of the bus
23033 * Control.cs: When the order of items in the collection is changed
23034 we need to reset the all_controls array
23035 - do the same sorta setup thats done when adding a control when a
23036 control is set on the collection.
23038 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
23040 * TextBoxBase.cs (get_Text): Return an empty array if our document
23041 is empty (fixes #79052)
23043 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
23045 * Control.cs: We should call IsInputChar on only on WM_CHAR but not
23046 on WM_SYSCHAR messages (fixes #79053)
23048 2006-08-23 Chris Toshok <toshok@ximian.com>
23050 * DataGrid.cs: fix flickering when scrolling vertically.
23052 2006-08-23 Chris Toshok <toshok@ximian.com>
23054 * DataGrid.cs (EndEdit): only invalidate the row header when we
23057 2006-08-23 Chris Toshok <toshok@ximian.com>
23059 * ThemeWin32Classic.cs: fix the clip munging of the datagrid paint
23060 methods. fixes the flicker when scrolling around.
23062 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
23064 * FileDialog.cs: Making sure the control is created before we get a
23065 chance to use it with BeginInvoke (Fixes #79096)
23067 2006-08-23 Chris Toshok <toshok@ximian.com>
23069 * ThemeWin32Classic.cs (DataGridPaintRows): calculate the proper
23070 width to use when painting the rows.
23072 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
23075 - Throw ArgumentException if a negative value is passed to SelectionLength
23076 - Update the selection end if start is moved. end needs to be always
23077 after start. (Fixes #79095)
23078 - Track selection length; MS keeps the selection length even if start
23079 is changed; reset on all other operations affection selection
23081 2006-08-22 Jackson Harper <jackson@ximian.com>
23083 * TreeView.cs: Make sure both scrollbars get displayed and sized
23084 correctly when the other bar is visible.
23085 - Use the original clip rectangle for checking if the area between
23086 the two scrollbars is visible, not the viewport adjusted clipping
23089 2006-08-22 Jackson Harper <jackson@ximian.com>
23091 * Binding.cs: We don't use IsBinding because it requires the
23092 control to be created, which really shouldn't be necessary just to
23093 set a property on the control.
23095 2006-08-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
23097 * ComboBox.cs: Some CB.ObjectCollection methods must throw
23098 ArgumentNullReferenceException when the argument is null.
23100 2006-08-21 Jackson Harper <jackson@ximian.com>
23102 * Timer.cs: Track the thread that the timer is started in (NOT
23103 CREATED), this way messages for it will only be triggered on its
23105 * XEventQueue.cs: Track the timers here, this makes timers per
23107 * XplatUIX11.cs: The timers are moved to the XEventQueue.
23109 2006-08-19 Chris Toshok <toshok@ximian.com>
23111 * XplatUIX11.cs: after further communication with pdb, we get the
23112 best of both worlds. SetZOrder working for un-Mapped windows, and
23113 no X errors for un-mapped windows.
23115 2006-08-19 Chris Toshok <toshok@ximian.com>
23117 * XplatUIX11.cs (SetZOrder): remove the if (!hwnd.mapped) check,
23118 as it was causing pdn toolbars to not have the correct stacking.
23120 2006-08-18 Mike Kestner <mkestner@novell.com>
23122 * ListView.cs : guard against negative ClientArea.Width in scrollbar
23123 calculation. Not sure why control should ever be setting a negative
23124 width though. Fixes #78931.
23126 2006-08-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
23128 * ComboBox.cs: Throw ArgumentNullException when adding/modifyng
23129 null items in ObjectCollection class.
23130 * ListBox.cs.: Likewise.
23132 2006-08-18 Atsushi Enomoto <atsushi@ximian.com>
23134 * ThemeNice.cs, ThemeClearlooks.cs : remove RadioButton_DrawFocus()
23135 as the base method in ThemeWin32Classic should work fine.
23138 2006-08-18 Jackson Harper <jackson@ximian.com>
23140 * Binding.cs: When validating if the value entered doesn't convert
23141 properly reset to the old value.
23142 * RadioButton.cs: Don't fire click when we get focus.
23144 2006-08-18 Jackson Harper <jackson@ximian.com>
23146 * FileDialog.cs: Paint the selection on the directory combobox the
23149 2006-08-17 Jackson Harper <jackson@ximian.com>
23151 * ErrorProvider.cs: Don't allow the error control to be selected.
23152 * Control.cs: Don't send the SetFocus messages, the control
23153 activation will do this, and if we do it blindly here validation
23156 2006-08-17 Jackson Harper <jackson@ximian.com>
23159 * ContainerControl.cs: Make validation events fire in the correct
23160 order. TODO: For some reason the first validation event is not
23163 2006-08-17 Mike Kestner <mkestner@novell.com>
23165 * ComboBox.cs : some null guarding for ComboListBox.Scroll.
23167 2006-08-17 Mike Kestner <mkestner@novell.com>
23169 * ComboBox.cs : implement scroll wheel support for popped-down
23170 state. Fixes #78945.
23172 2006-08-17 Jackson Harper <jackson@ximian.com>
23174 * TreeView.cs: Specify treeview actions (old patch that didn't get
23175 committed for some reason).
23176 - Don't let the mouse wheel scroll us too far. Just want to make
23177 the bottom node visible, not scroll it all the ways to the top.
23179 2006-08-17 Jackson Harper <jackson@ximian.com>
23181 * XplatUIX11.cs: Mouse wheel events go to the focused window.
23183 2006-08-17 Mike Kestner <mkestner@novell.com>
23185 * ComboBox.cs : don't do mouseover selection in simple mode.
23187 2006-08-16 Jackson Harper <jackson@ximian.com>
23189 * Form.cs: Fire the closing events for all the mdi child windows
23190 when a window is closed. If the cancel args are set to true, the
23191 main window still gets the event fired, but it doesn't not close.
23192 * MdiWindowManager.cs: Do this closing cleanup in a Closed
23193 handler, instead of when the button is clicked, so cancelling the
23194 close works correctly.
23195 * ComboBox.cs: Send the mouse down to the scrollbar.
23197 2006-08-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
23199 * ListBox.cs: When passing 'null' to SelectedItem,
23200 set SelectedIndex to -1, to unselect items. This is the
23201 observed behaviour in .Net.
23203 2006-08-16 Peter Dennis Bartok <pbartok@novell.com>
23205 * TextBoxBase.cs: Overriding HandleClick to get clicks in spite of
23206 MS flags saying there won't be any. (fixes #78800)
23207 * Control.cs (HandleClick): Made virtual
23209 2006-08-16 Atsushi Enomoto <atsushi@ximian.com>
23211 * PageSetupDialog.cs : use Yard-Pound units only in en-GB and en-US
23212 cultures. Fixed bug #78399.
23214 2006-08-16 Jackson Harper <jackson@ximian.com>
23216 * Form.cs: Use the MdiClients MdiChildren property to access
23217 MdiChildren instead of creating the array from the child controls.
23218 * MdiClient.cs: Maintain a separate array of the mdi children, so
23219 that insertion order is maintained when the Z-order is changed.
23221 2006-08-16 Mike Kestner <mkestner@novell.com>
23223 * ListView.cs : add an ItemComparer and default to it for sorting.
23224 Fixes #79076, but sorting needs a complete overhaul to be compat with
23227 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
23229 * XplatUIX11.cs (SetZOrder): Fix debugging leftover (fixes #79080)
23231 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
23233 * Hwnd.cs (Mapped): Properly traverse the tree
23235 2006-08-15 Chris Toshok <toshok@ximian.com>
23237 * Binding.cs: fix PullData/SetPropertyValue. We don't want to
23238 pass manager.Current.GetType() to ParseData. It has to be the
23239 property type. So, hold off doing the ParseData until we're in
23240 SetPropertyValue where we know the type. This fixes the crash in
23241 #78821 but the textbox is still empty.
23243 2006-08-15 Chris Toshok <toshok@ximian.com>
23246 - when we're scrolling, only call Edit() again if the
23247 current cell is still unobscured. Fixes bug #78927.
23248 - when handling mousedown on a cell, ensure the cell is visible
23249 before calling Edit.
23250 - remove the properties from DataGridRow, and remove the
23251 DataGridParentRow class altogether.
23254 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
23256 * TextBoxBase.cs (set_Text): Don't use base.Text, instead just
23257 fire OnTextChanged by ourselves. There's no point calling base,
23258 we don't set the base value anywhere else. Fixes #78773.
23260 2006-08-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
23262 * ListBox.cs: Call CollectionChanged when modifying
23263 an item from Items indexer, to update the actual items
23266 2006-08-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
23268 * PrintDialog.cs: Small fixes for focus and a pair of checks,
23269 to match .Net behaviour.
23271 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
23273 * XplatUIX11.cs (SetZOrder): Handle raising toplevel windows
23275 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
23277 * Control.cs: Handle BringToFront for toplevel windows (Fixes #78737)
23279 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
23281 * MessageBox.cs: Prevent potential NRE exception.
23282 * TextBoxBase.cs: AutoSize only applies if MultiLine is false. Fixes #78889
23284 2006-08-14 Peter Dennis Bartok <pbartok@novell.com>
23286 * MessageBox.cs: Calculate the owner of a messagebox, also make
23287 it topmost. Fixes #78753
23289 2006-08-14 Chris Toshok <toshok@ximian.com>
23291 * XplatUIX11.cs: A couple of fixes so that metacity will let us
23292 programmatically move windows. first, set the PPosition hint as
23293 well as the USPosition hint. Second include some code from pdb
23294 that sets the window type to NORMAL when we set the transient for
23295 hint. This is because, in the absence of a window type, metacity
23296 thinks any window with TransientFor set is a dialog, and refuses
23297 to let us move it programmatically. fascists.
23299 2006-08-14 Peter Dennis Bartok <pbartok@novell.com>
23301 * XplatUIX11.cs: When setting normal hints, take into consideration
23302 an different hints previously set so we don't delete them (fixes #78866)
23304 2006-08-12 Chris Toshok <toshok@ximian.com>
23306 * ToolBarButton.cs: make Layout return a boolean, if something to
23307 do with the button's layout changed.
23310 - add another parameter to Redraw, @force, which all existing
23312 - make the Layout function return a boolean which is true if the
23313 layout has actually changed. Redraw now uses this (and @force)
23314 to determine when to invalidate. At present the only place
23315 where @force can be false is the call from OnResize, when
23316 background_image == null. So, resizing a toolbar when the
23317 layout doesn't change results in no drawing.
23319 2006-08-12 Chris Toshok <toshok@ximian.com>
23321 * ThemeWin32Classic.cs: fix the bottom right corner painting. had
23322 the VScrollBar and HScrollbar reversed. oops.
23324 * DataGrid.cs: fix the logic that assigns sizes to the implicit
23325 scrollbars. we were assigning them twice (once in
23326 Calc{Horiz,Vertical}Scrollbar, and once in CalcGridAreas),
23327 therefore causing two scrollbar resizes (and redraws?) to happen
23330 2006-08-12 Chris Toshok <toshok@ximian.com>
23332 * ToolBarButton.cs: redraw the entire button if the theme tells us
23335 * Theme.cs: add ToolBarInvalidateEntireButton.
23337 * ThemeWin32Classic.cs: we don't need to redraw the entire toolbar
23338 buttons, just the border.
23340 * ThemeNice.cs: redraw the entire toolbar button since we need to
23341 draw the highlight image.
23343 * ThemeClearlooks.cs: the rounded corners of toolbar buttons mean
23344 we need to redraw the entire button (not just the border).
23346 2006-08-11 Peter Dennis Bartok <pbartok@novell.com>
23348 * TextBoxBase.cs (CalculateScrollbars): Set the proper thumb size
23349 for vertical bars. Fixes the mismatches shown by #78513
23351 2006-08-11 Alexander Olk <alex.olk@googlemail.com>
23353 * FileDialog.cs: If a saved/remembered path doesn't exist
23354 anymore, fall back to "Desktop".
23356 2006-08-11 Peter Dennis Bartok <pbartok@novell.com>
23358 * Form.cs (CreateParams): Don't use Parent.Handle unless we have a
23359 parent. It's apparently legal to not have one
23361 - SetZOrder: Don't try to set Z-Order on an unmapped window
23362 - CreateWindow: 0,0 are legal coordinates for a window. don't move
23363 it unless the coordinates are negative
23365 2006-08-10 Mike Kestner <mkestner@novell.com>
23367 * ListControl.cs: allow null for DataSource. Clear DisplayMember
23368 when setting to null per msdn docs. Fixes #78854.
23370 2006-08-10 Chris Toshok <toshok@ximian.com>
23372 * Menu.cs, MainMenu.cs, MenuAPI.cs: get rid of most of the
23373 flickering by setting a clip rectangle on the Graphics when we
23374 need to redraw just a particular menuitem. Also, rename "OnClick"
23375 to "OnMouseDown" to reflect what it actually is.
23377 * Form.cs: track the OnMouseDown change.
23379 2006-08-10 Peter Dennis Bartok <pbartok@novell.com>
23381 * CommonDialog.cs: Properly inherit the CreateParams from the form
23382 and only change what we need. Fixes #78865
23384 2006-08-10 Chris Toshok <toshok@ximian.com>
23386 * ToolBar.cs, ToolBarButton.cs: fix the redraw-on-highlight
23387 flickering in flat mode (and most of the flickering in general) by
23388 only invalidating the button border (and not the entire rectangle)
23389 when the state changes. A couple of cases still flicker:
23390 ToggleButtons, and the dropdown arrow case when the user mouse
23393 2006-08-10 Alexander Olk <alex.olk@googlemail.com>
23395 * X11Keyboard.cs: Fixed handling of the Del key on the cursorblock
23396 for german keyboards. Numlock state shouldn't affect the behaviour
23397 of the Del key. Fixes bug #78291.
23399 2006-08-10 Chris Toshok <toshok@ximian.com>
23401 * ListControl.cs: remove the items.Clear line from BindDataItems,
23402 as this is the first thing done by both subclasses in their
23403 SetItemsCore overrides. Also, add a ItemChanged handler, and when
23404 passed -1, refresh the list. This gets databinding working when
23405 the datasource is set on the list before the datasource is
23406 populated (as in wf-apps/ReportBuilder.)
23408 * ComboBox.cs: remove the argument to BindDataItems. This call
23409 should really go away, and be initiated by the ListControl code.
23411 * ListBox.cs: same.
23413 2006-08-09 Peter Dennis Bartok <pbartok@novell.com>
23415 * TextControl.cs (Document.ctor): Initialize caret so we don't crash
23416 if no data is in the document when the control is displayed
23418 2006-08-09 Peter Dennis Bartok <pbartok@novell.com>
23420 * TextBoxBase.cs: Don't try moving the caret if we don't have a window
23423 - PositionCaret: Allow positioning of caret but don't call methods
23424 requiring a handle if the window isn't created yet
23425 - CharIndexToLineTag: Fix ending loop early error. Lines is 1 based
23426 - owner_HandleCreated: Don't position the caret, just update it's
23427 location. User might have already set a different position
23429 2006-08-09 Peter Dennis Bartok <pbartok@novell.com>
23431 * XplatUIWin32.cs: Don't use the desktop as basis for foster-parented
23432 windows. Screws up the returned coordinates for child windows.
23433 Fixes #78825. I'm hoping this doesn't break something, since the
23434 code was explicitly put in 8 months ago, but no bug was attached.
23435 Menus still seem to work properly.
23437 2006-08-08 Chris Toshok <toshok@ximian.com>
23439 * DataGrid.cs: make BeginInit/EndInit actually do what they're
23440 supposed to do - delay data binding until the EndInit call. Also,
23441 make the table style collection's CollectionChangeAction.Refresh
23444 * GridTableStylesCollection.cs: raise a CollectionChangeEvent
23445 (with action = Refresh) when a consituent table's MappingName is
23448 2006-08-08 Chris Toshok <toshok@ximian.com>
23450 * ToolBarButton.cs: in set_Text, call Parent.Redraw, not
23451 Invalidate, since changing the text can change the size of the all
23454 2006-08-08 Peter Dennis Bartok <pbartok@novell.com>
23456 * Form.cs (AddOwnedForm): Still need to add the form to our listif
23457 we don't have it yet
23459 2006-08-08 Chris Toshok <toshok@ximian.com>
23461 * PrintControllerWithStatusDialog.cs: don't .Close() the status
23462 dialog, as this causes X errors later on, since we actually
23463 destroy the window. Instead, .Hide() it.
23465 2006-08-08 Peter Dennis Bartok <pbartok@novell.com>
23467 * ComboBox.cs: Added focus reflection for popup window
23469 - Removed transient setting for non-app windows for now, not sure it
23471 - Fixed logic checking if we have captions when deciding
23472 override_redirect, WS_CAPTION is two bits and a 0 check was not
23474 - Removed the WINDOW_TYPE stuff, it was unneeded and making things
23477 - AddOwnedForm: Don't just add the form to the list, call the property
23478 to ensure the driver is informed about the ownership as well
23479 - CreateHandle: Set the TopMost status in the driver if we have an owner
23480 * XplatUI.cs: Fixed debug statement
23482 2006-08-08 Jonathan Pobst <monkey@jpobst.com>
23483 * ButtonRenderer.cs, CheckBoxRenderer.cs, ComboBoxRenderer.cs
23484 GroupBoxRenderer.cs, ProgressBarRenderer.cs, RadioButtonRenderer.cs,
23485 ScrollBarRenderer.cs, TabRenderer.cs, TextBoxRenderer.cs,
23486 TrackBarRenderer.cs: Make constructor private.
23487 * ProfessionalColors.cs, ProfessionalColorTable.cs: Fix misnamed properties.
23488 * ProfessionalColorTable.cs: Make properties virtual.
23490 2006-08-06 Duncan Mak <duncan@novell.com>
23492 * NumericUpDown.cs (Value): Don't call OnValueChanged if the value
23495 2006-08-04 Jonathan Pobst <monkey@jpobst.com>
23496 * ButtonRenderer.cs, CheckBoxRenderer.cs, ComboBoxRenderer.cs
23497 GroupBoxRenderer.cs, ProfessionalColors.cs, ProfessionalColorTable.cs,
23498 ProgressBarRenderer.cs, RadioButtonRenderer.cs, ScrollBarRenderer.cs,
23499 TabRenderer.cs, TextBoxRenderer.cs, TextRenderer.cs, TrackBarRenderer.cs:
23500 Initial import of new 2.0 classes.
23502 2006-08-04 Jonathan Pobst <monkey@jpobst.com>
23503 * Application.cs: Add 2.0 VisualStyles properties.
23505 2006-08-04 Jonathan Pobst <monkey@jpobst.com>
23506 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
23507 XplatUIX11.cs: Create property to allow access to existing private
23508 variable "themes_enabled"
23510 2006-08-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
23512 * ImageListStreamer.cs: generate the MemoryStreams with the exact BMP
23513 file size, as otherwise our class libraries fail using windows. Fixes
23516 2006-08-04 Jackson Harper <jackson@ximian.com>
23519 * XplatUIX11.cs: Move the toolwindow window manager creation into
23520 the X11 driver, this way on win32 we can let windows create/handle
23523 2006-08-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
23525 * PrintDialog.cs: Remove some redundant checks, add some others,
23526 clean some code, and move the focus to the text boxes when the
23527 values are incorrect.
23529 2006-08-04 Alexander Olk <alex.olk@googlemail.com>
23531 * FontDialog.cs: Remove Form.MinimumSize. It's not needed.
23533 2006-08-03 Alexander Olk <alex.olk@googlemail.com>
23535 * NumericUpDown.cs: Setting the Minimum and Maximum is now
23536 handled correctly. Fixes bug #79001.
23538 2006-08-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
23540 * PrintDialog.cs: The "Copies" numeric up down must have
23541 set the Minimum property to 1; only if the value is bigger
23542 than 1, activate "Collate" check box. This is the behaviour of .Net.
23543 Also modify the Document elements only if it is not null.
23545 2006-08-03 Jackson Harper <jackson@ximian.com>
23547 * TreeNodeCollection.cs: Fix copyto to use the correct nodes
23548 length. (We have a larger array then actual node count).
23550 2006-08-03 Jackson Harper <jackson@ximian.com>
23552 * ComboBox.cs: Don't show selection by default.
23553 - The SelectAll isn't needed here, since the focus code should do
23555 - DDL style lists to manual selection drawing, so when they
23556 get/lose focus they have to invalidate.
23558 2006-08-03 Peter Dennis Bartok <pbartok@novell.com>
23560 * TextBoxBase.cs: Don't always show all selections by default.
23562 2006-08-03 Jonathan Pobst <monkey@jpobst.com>
23563 * ControlUpdateMode.cs, DataSourceUpdateMode.cs,
23564 HelpNavigator.cs, WebBrowserEncryptionLevel.cs:
23565 Fixed various typos.
23567 2006-08-03 Alexander Olk <alex.olk@googlemail.com>
23569 * Control.cs: Removing the controls in a ControlCollection with
23570 Clear now hides the controls as expected. Fixes bug #78804.
23572 2006-08-03 Jackson Harper <jackson@ximian.com>
23574 * Control.cs: Revert previous focus patch, it breaks reflector.
23576 2006-08-03 Jackson Harper <jackson@ximian.com>
23578 * ComboBox.cs: Cleanup selection and focus with the combobox.
23579 This also eliminates some duplicated keyboard code, since now
23580 everything is handled by the main class.
23581 - Make list selection work on mouse up instead of down, to match
23584 2006-08-02 Jackson Harper <jackson@ximian.com>
23586 * Control.cs: Setting focus needs to go through the whole
23587 selection mechanism.
23589 2006-08-02 Chris Toshok <toshok@ximian.com>
23591 * PrintPreviewDialog.cs: change MinimumSize to use
23592 base.MinimumSize so it works.
23594 2006-08-02 Peter Dennis Bartok <pbartok@novell.com>
23597 - UpdateCaret: Added sanity check in case caret isn't defined yet
23598 - Line.Delete: Now updating selection and caret markers if we're
23599 transfering a node (Properly fixes #78323)
23600 - SetSelectionEnd: Added sanity check
23601 * TextBoxBase.cs: Removed broken attempt to fix #78323
23603 2006-08-01 Chris Toshok <toshok@ximian.com>
23605 * PrintPreviewDialog.cs: the CancelEventArgs stuff surrounding the
23606 Close() call is handled in Form, not here.
23608 2006-08-01 Chris Toshok <toshok@ximian.com>
23610 * Theme.cs, ThemeWin32Classic.cs: fix the PrintPreviewControl
23613 * PrintPreviewDialog.cs: add scrollbars, and add an image cache
23614 for sizes < 100% zoom. The code now aggressively attempts to keep
23615 from calling document.Print (), and tries not to use the scaling
23616 g.DrawImage whenever possible (it still does if you scale to >
23617 100%, since usually that involves huge images).
23619 * PrintPreviewControl.cs: hook up the close button.
23621 2006-08-01 Jonathan Pobst <monkey@jpobst.com>
23622 * ColumnClickEventHandler.cs, DrawItemEventHandler.cs,
23623 ItemChangedEventHandler.cs, ItemCheckEventHandler.cs,
23624 ItemDragEventHandler.cs, LabelEditEventHandler.cs,
23625 LinkClickedEventHandler.cs, LinkLabelLinkClickedEventHandler.cs,
23626 MeasureItemEventHandler.cs, MethodInvoker.cs, PaintEventHandler.cs,
23627 PropertyTabChangedEventHandler.cs, PropertyValueChangedEventHandler.cs,
23628 SelectedGridItemChangedEventHandler.cs, ToolBarButtonClickEventHandler.cs:
23629 Removed [Serializable] for 2.0 Event Handlers.
23631 2006-07-31 Jackson Harper <jackson@ximian.com>
23633 * TextBoxBase.cs: Make ShowSelection invalidate when changed.
23634 * TextControl.cs: Uncomment out the body of this method.
23636 2006-07-31 Alexander Olk <alex.olk@googlemail.com>
23638 * XplatUIX11.cs: Use the correct cursor shapes for arrow and default
23641 2006-07-31 Peter Dennis Bartok <pbartok@novell.com>
23643 * TextBoxBase.cs: Added internal property ShowSelection to allow controls
23644 that embed TextBox and need selections visible even if textbox is not
23645 focused to enforce that behaviour.
23646 * TextControl.cs (Draw): Use ShowSelection instead of has_focus to determine
23649 2006-07-31 Peter Dennis Bartok <pbartok@novell.com>
23652 - Added new SetSelectionStart/SetSelectionEnd overloads
23653 - Fixed viewport width assignment to be accurate
23654 - Adjusted alignment line shift calculations to allow cursor on right
23655 aligned lines to be always visible at the right border (like MS)
23657 - SetBoundsCore: Re-adjust caret location after resize (Fixes #78323)
23658 - TextBoxBase_SizeChanged: recalculating canvas on size changes
23659 - CalculateScrollBars: Use ViewPort size instead of window size, to
23660 properly consider space occupied by the border and scrollbars
23662 - hscroll_ValueChanged, vscroll_ValueChanged: Fixed scroll
23663 calculations; no longer leaves artifacts
23664 - CaretMoved: Adjusted window scrolling to match MS and fixed several
23665 calculation bugs (Still missing right/center align calculations)
23667 2006-07-31 Peter Dennis Bartok <pbartok@novell.com>
23669 * XPlatUIWin32.cs: Made ScrollRectEx a bit more flexible, and removed
23670 use of both scroll rect and clip rect, as they do the same.
23672 2006-07-31 Peter Dennis Bartok <pbartok@novell.com>
23674 * Control.cs (WM_CHAR WndProc): 2.0 profile allows changing the key
23675 in the event handler (fixes #78912)
23677 2006-07-31 Chris Toshok <toshok@ximian.com>
23679 * ThemeWin32Classic.cs: use grid.RowsCount here instead of
23680 grid.ListManager.Count, since grid.ListManager might be null.
23681 This of course begs the question "why are we drawing rows for a
23682 grid with no list manager (and therefor no rows)?" Fixes the
23683 crash in bug #78929.
23685 2006-07-31 Chris Toshok <toshok@ximian.com>
23687 * RelatedPropertyManager.cs: Don't always chain up to the parent
23688 ctor. instead, call SetDataSource if the parent's position is !=
23689 -1. Fixes the crash in #78822.
23691 2006-07-31 Chris Toshok <toshok@ximian.com>
23693 * DataGrid.cs (get_ListManager): use field instead of property
23694 accessors for datasource and datamember.
23695 (RowsCount): make internal again.
23696 (OnMouseDown): end edits before resizing columns/rows.
23697 (OnMouseUp): restart edits after resizing columns/rows.
23699 2006-07-30 Peter Dennis Bartok <pbartok@novell.com>
23701 * XplatUIX11.cs: Default cursor cannot be 0 or it will not get set.
23702 This fixes the situation where the last set cursor is displayed
23703 whenever the mouse is over scrollbars.
23705 2006-07-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
23707 * PrintDialog.cs: Fix the behaviour of PrinterSettings and
23708 Document properties, as well as initial values.
23710 2006-07-29 Peter Dennis Bartok <pbartok@novell.com>
23712 * XplatUIWin32.cs (SetBorderStyle): Setting both border
23713 and ClientEdge results in a 3-pixel border, which is
23716 2006-07-28 Jackson Harper <jackson@ximian.com>
23718 * TreeNodeCollection.cs: Fix the clear method.
23719 - Fix the Shrink also
23721 2006-07-27 Jackson Harper <jackson@ximian.com>
23723 * TreeView.cs: Make sure the visible order is computed when we
23724 attempt to size the scrollbars (for trees that mess with the
23725 scrolling when they shouldn't.
23726 - Make sure to give the scrollbars valid values.
23728 2006-07-26 Peter Dennis Bartok <pbartok@novell.com>
23730 * XplatUIX11.cs: Move motion compression code to where it
23731 has less performance impact
23733 2006-07-26 Jackson Harper <jackson@ximian.com>
23735 * UpDownBase.cs: When the control is selected make the child
23736 controls non selectable, so that a click on them won't do a
23737 focus/unfocus cycle.
23738 - Don't give focus to the text box when the spinner is selected.
23739 * XEventQueue.cs: Peek on both the x11 queue and the lock queue.
23741 2006-07-26 Chris Toshok <toshok@ximian.com>
23743 * ThemeWin32Classic.cs: add print preview rendering. I'm not
23744 satisfied with this solution. If the bitmaps are small, we should
23745 just cache them in the PrintPreviewDialog and draw them here.
23746 Also, the layout is broken for the 2-up and 3-up cases.
23748 * Theme.cs: add PrintPReviewControlPaint.
23750 * PrintPreviewDialog.cs: first pass implementation.
23752 * PrintPreviewControl.cs: first pass implementation. No
23755 * PrintDialog.cs: only validate fields if that particular portion
23756 of the UI is enabled. Also, set the document's controller to a
23757 PrintControllerWithStatusDialog wrapping the document's print
23760 * PrintControllerWithStatusDialog.cs: if we're printing to a file,
23761 bring up a SaveFileDialog (i hope we don't want to match the
23762 behavior of the crappy windows file entry) and set the
23763 PrinterSettings.PrintFileName accordingly.
23765 2006-07-26 Jackson Harper <jackson@ximian.com>
23767 * ContainerControl.cs: Add a field that disables auto selecting
23768 the next control in a container when the container is activated.
23769 * UpDownBase.cs: Don't select the text box when the up down is
23772 2006-07-26 Peter Dennis Bartok <pbartok@novell.com>
23774 * XEventQueue.cs: Added methods for peeking (used for compression
23775 of successive events)
23776 * XplatUIX11.cs (GetMessage): We're now compressing consecutive
23777 mouse move events (fixes #78732)
23779 2006-07-25 Jackson Harper <jackson@ximian.com>
23781 * UpDownBase.cs: Use an internal class for the textbox so that we
23782 can control focus. the updown control should always have focus,
23783 if either the text area or the buttons are clicked.
23784 - Send the key messages to the textbox, since it never actually
23786 - Activate and decativate the textbox caret.
23788 2006-07-24 Jackson Harper <jackson@ximian.com>
23790 * Control.cs: Use the directed select when selecting a control,
23791 this way the container controls override will get called and the
23792 whole ActiveControl chain will get triggered. TODO: probably need
23793 to make sure this gets done everywhere instead of the old
23795 * ContainerControl.cs: Implement the directed Select method to
23796 find and activate the correct child control.
23798 2006-07-22 Mike Kestner <mkestner@novell.com>
23800 * Form.cs: use Control.MousePosition for NCLBUTTONDOWN in the menu
23801 menu handling code so that clicks without a grab work too.
23804 2006-07-22 Alexander Olk <alex.olk@googlemail.com>
23806 * FileDialog.cs: Enable the BackButton when dirstack has one element.
23807 Added some small optimizations.
23809 2006-07-21 Matt Hargett <matt@use.net>
23811 * Control.cs: Implemented 2.0 MinimumSize/MaximumSize properties
23813 2006-07-21 Peter Dennis Bartok <pbartok@novell.com>
23815 * Control.cs (GetNextControl): Fixes to make all of Jackson's unit
23816 tests pass and match MS in some strange border cases.
23818 2006-07-21 Chris Toshok <toshok@ximian.com>
23820 * ThemeWin32Classic.cs: handle drawing of the relation links and
23821 parent row buttons.
23823 * Theme.cs: change args to DataGridPaintParentRow.
23825 * DataGrid.cs: Don't use controls for the relation links and
23826 parent buttons, so we have to handle all their interactions in
23827 MouseMove, MouseDown, MouseUp, etc. Also, store a lot more stuff
23828 when we're navigating through child tables, so we can reinstate
23829 selection, expanded state, current cell, etc.
23831 2006-07-20 Chris Toshok <toshok@ximian.com>
23833 * ToolBar.cs: When we redraw a button, for whatever reason,
23834 there's no reason to redraw the entire toolbar. Also, don't call
23835 Control.Refresh from within Redraw, as it's much heavier than
23836 Invalidate (which is really what we want).
23838 2006-07-20 Chris Toshok <toshok@ximian.com>
23840 * DataGrid.cs, CurrencyManager.cs, DataGridColumnStyle.cs,
23841 DataGridTextBoxColumn.cs, DataGridTextBox.cs,
23842 ThemeWin32Classic.cs, ListControl.cs: After staring at stack
23843 traces from within a debug IBindingList datasource
23844 (in mono/winforms/datagrid) for *days*, I've finally gotten things
23845 to work in a similar fashion.
23847 2006-07-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
23849 * ListBox.cs: Don't call Sort () when setting
23850 the Sorted property to false (avoid an unnecessary sort).
23852 2006-07-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
23854 * ListControl.cs: DataSource should throw an ArgumentException
23855 instead of a normal exception when the argument is not of the
23858 2006-07-20 Mike Kestner <mkestner@novell.com>
23860 * Control.cs: add InternalPreProcessMessage to allow us to steal
23861 key events before MWF gets its paws on them. Adapted from a
23863 * ToolBar.cs: add GotLostFocus handing for flat toolbars, with
23864 up/down/left/right navigation. Override the new internal control
23865 method to steal the events since they never make it to WndProc.
23866 * ToolBarButton.cs: don't worry about pushed when setting hilight
23867 since the drawing code prefers pushed to hilight. Invalidate on
23868 Hilight changes. Fixes #78547 and #78525.
23870 2006-07-20 Peter Dennis Bartok <pbartok@novell.com>
23872 * ScrollableControl.cs: Consider AutoScrollMinSize when calculating
23873 the canvas size. Fixes #78868
23875 2006-07-20 Peter Dennis Bartok <pbartok@novell.com>
23877 * Splitter.cs: Track requested split position until first layout
23878 is performed. Fixes #78871
23880 2006-07-20 Peter Dennis Bartok <pbartok@novell.com>
23882 * Application.cs: Removed code that forces 1.x for the version
23883 number if the version started with 0. Not sure why that code was
23884 there and I couldn't find any bugs that indicated we needed it.
23887 2006-07-20 Alexander Olk <alex.olk@googlemail.com>
23889 * ThemeWin32Classic.cs: Don't throw a NotImplementedException in
23890 ResetDefaults(), just write some output to the console until it's
23891 implemented. Fixes bug #78907 for now. Eliminated two warnings.
23893 2006-07-19 Jonathan Chambers <joncham@gmail.com>
23895 * PropertyGridView.cs: set StartPosition of drop down forms
23896 so they appear in correct initial spot. Fixes #78190.
23898 2006-07-19 Mike Kestner <mkestner@novell.com>
23900 * ThemeWin32Classic.cs: use parent background color when drawing
23901 flat toolbars. Restructure the conditionals to make sure non-flat
23902 non-Divider toolbars are filled too. Fixes #78837.
23904 2006-07-19 Mike Kestner <mkestner@novell.com>
23906 * ListBox.cs: Sort on collection changes even if the handle
23907 isn't created yet. Fixes #78813.
23909 2006-07-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
23911 * ListControl.cs: DisplayMember should never be null,
23912 and now we assign String.Empty when null is passed to it (this
23915 2006-07-17 Mike Kestner <mkestner@novell.com>
23917 * ListViewItem.cs: restructure Font and subitem Font handling
23918 to hold a specific font and refer back to owner on null.
23921 2006-07-17 Mike Kestner <mkestner@novell.com>
23923 * ToolBar.cs: bandaid for side-effect of previous patch which was
23924 discarding explicit heights for non-AutoSize toolbars. Need to
23925 extend my format tester to deal with AutoSize=false. Fixes #78864.
23927 2006-07-15 Jackson Harper <jackson@ximian.com>
23929 * LabelEditTextBox.cs:
23930 * TreeView.cs: Use a new LabelEdit class for node editing, this
23931 class automatically 'closes' itself when it gets the enter key or
23933 - Use the client rectangle when setting the trees scrollbars, so
23934 border style is taken into account.
23936 2006-07-14 Jackson Harper <jackson@ximian.com>
23939 * TreeView.cs: Make the editing work similar to MSs, firing the
23940 events correctly and ending edits correctly.
23942 2006-07-14 Mike Kestner <mkestner@novell.com>
23944 * ToolBarButton.cs:
23945 * ToolBar.cs: layout restructuring and redraw enhancements to support
23946 formatting changes gracefully, like setting TextAlign, ImageList,
23947 ButtonSize, and Appearance. Handles explicit button sizing quirks
23948 of the MS controls. Things like flat toolbars ignoring button size
23949 but becoming constant sized at the largest button's size. Normal
23950 toolbars with an image set cannot be shrunk smaller than the image,
23951 but text can be clipped/ignored.
23952 * ThemeWin32Classic.cs: don't draw text if text_rect height or width
23953 is zero. Seems like DrawString should be smart enough to not put
23954 anything on screen though. Also trim labels and ellipsize at the char
23955 boundary, not word.
23956 Fixes #78711 and #78483.
23958 2006-07-14 Alexander Olk <alex.olk@googlemail.com>
23960 * FolderBrowserDialog.cs: Disable "New Folder" button and
23961 "New Folder" contextmenu menuitem if a folder like "My Computer"
23964 2006-07-14 Alexander Olk <alex.olk@googlemail.com>
23966 * FileDialog.cs: Don't create a new folder in "MyComputer" folder.
23967 * FolderBrowserDialog.cs:
23968 - Use MWFConfig to store and read size and position settings
23969 - Added code to create a new folder (button or context menu).
23970 Use TreeView labeledit to change the name of the new folder.
23972 2006-07-14 Jackson Harper <jackson@ximian.com>
23974 * TreeView.cs: Raise the OnAfterLabelEdit event correctly. Also,
23975 when the tree is scrolled we end editing.
23977 2006-07-14 Alexander Olk <alex.olk@googlemail.com>
23979 * ThemeWin32Classic.cs: Fixed position of CPDrawScrollButton Up and
23982 2006-07-14 Jonathan Pobst <monkey@ipobst.com>
23984 WebBrowserProgressChangedEventHandler.cs, BindingCompleteEventArgs.cs,
23985 BindingCompleteEventHandler.cs, BindingManagerDataErrorEventArgs.cs,
23986 BindingManagerDataErrorEventHandler.cs, CacheVirtualItemsEventArgs.cs,
23987 CacheVirtualItemsEventHandler.cs, ColumnReorderedEventArgs.cs,
23988 ColumnReorderedEventHandler.cs, ColumnWidthChangedEventArgs.cs,
23989 ColumnWidthChangedEventHandler.cs, ColumnWidthChangingEventArgs.cs,
23990 ColumnWidthChangingEventHandler.cs, FormClosedEventArgs.cs,
23991 FormClosedEventHandler.cs, FormClosingEventArgs.cs,
23992 FormClosingEventHandler.cs, ItemCheckedEventArgs.cs,
23993 ItemCheckedEventHandler.cs, ListControlConvertEventArgs.cs,
23994 ListControlConvertEventHandler.cs, ListViewItemMouseHoverEventArgs.cs,
23995 ListViewItemMouseHoverEventHandler.cs, ListViewItemSelectionChangedEventArgs.cs,
23996 ListViewItemSelectionChangedEventHandler.cs,
23997 ListViewVirtualItemsSelectionRangeChangedEventArgs.cs,
23998 ListViewVirtualItemsSelectionRangeChangedEventHandler.cs,
23999 MaskInputRejectedEventArgs.cs, MaskInputRejectedEventHandler.cs,
24000 PopupEventArgs.cs, PopupEventHandler.cs, PreviewKeyDownEventArgs.cs,
24001 PreviewKeyDownEventHandler.cs, RetrieveVirtualItemEventArgs.cs,
24002 RetrieveVirtualItemEventHandler.cs, SearchForVirtualItemEventArgs.cs,
24003 SearchForVirtualItemEventHandler.cs, SplitterCancelEventArgs.cs,
24004 SplitterCancelEventHandler.cs, TabControlCancelEventArgs.cs,
24005 TabControlCancelEventHandler.cs, TabControlEventArgs.cs,
24006 TabControlEventHandler.cs, TableLayoutCellPaintEventArgs.cs,
24007 TableLayoutCellPaintEventHandler.cs, ToolStripDropDownClosedEventArgs.cs,
24008 ToolStripDropDownClosedEventHandler.cs, ToolStripDropDownClosingEventArgs.cs,
24009 ToolStripDropDownClosingEventHandler.cs, TreeNodeMouseClickEventArgs.cs,
24010 TreeNodeMouseClickEventHandler.cs, TreeNodeMouseHoverEventArgs.cs,
24011 TreeNodeMouseHoverEventHandler.cs, TypeValidationEventArgs.cs,
24012 TypeValidationEventHandler.cs, WebBrowserDocumentCompletedEventArgs.cs,
24013 WebBrowserDocumentCompletedEventHandler.cs, WebBrowserNavigatedEventArgs.cs,
24014 WebBrowserNavigatedEventHandler.cs, WebBrowserNavigatingEventArgs.cs,
24015 WebBrowserNavigatingEventHandler.cs,
24016 WebBrowserProgressChangedEventArgs.cs: New 2.0 Event Handlers
24018 2006-07-14 Jonathan Pobst <monkey@ipobst.com>
24020 MergeAction.cs, PowerLineStatus.cs, PowerState.cs, PreProcessControlState.cs,
24021 RichTextBoxLanguageOptions.cs, ScreenOrientation.cs, ScrollOrientation.cs,
24022 SearchDirectionHint.cs, SystemParameter.cs, TabControlAction.cs,
24023 TableLayoutPanelCellBorderStyle.cs, TextDataFormat.cs, TextImageRelation.cs,
24024 ToolStripDropDownCloseReason.cs, ToolStripDropDownDirection.cs,
24025 ToolStripGripDisplayStyle.cs, ToolStripGripStyle.cs,
24026 ToolStripItemAlignment.cs, ToolStripItemDisplayStyle.cs,
24027 ToolStripItemImageScaling.cs, ToolStripItemOverflow.cs,
24028 ToolStripItemPlacement.cs, ToolStripLayoutStyle.cs,
24029 ToolStripManagerRenderMode.cs, ToolStripRenderMode.cs,
24030 ToolStripStatusLabelBorderSides.cs, ToolStripTextDirection.cs,
24031 ToolTipIcon.cs, TreeNodeStates.cs, TreeViewDrawMode.cs,
24032 TreeViewHitTestLocations.cs, UnhandledExceptionMode.cs, ValidationConstraints.cs,
24033 WebBrowserEncryptionLevel.cs, WebBrowserReadyState.cs, WebBrowserRefreshOption.cs,
24034 ArrowDirection.cs, AutoCompleteMode.cs, AutoCompleteSource.cs, AutoSizeMode.cs,
24035 AutoValidate.cs, BatteryChargeStatus.cs, BindingCompleteContext.cs,
24036 BindingCompleteState.cs, CloseReason.cs, ColumnHeaderAutoResizeStyle.cs,
24037 ControlUpdateMode.cs, DataSourceUpdateMode.cs, DockingBehavior.cs,
24038 FixedPanel.cs, FlowDirection.cs, GetChildAtPointSkip.cs,
24039 HtmlElementInsertionOrientation.cs, InsertKeyMode.cs, ListViewHitTestLocations.cs,
24040 ListViewItemStates.cs, MaskFormat.cs: Added
24042 2006-07-13 Jonathan Chambers <joncham@gmail.com>
24044 * PropertyGridView.cs: Fix keyboard navigation of drop down.
24045 Patch from eno for bug 78558.
24047 2006-07-13 Jackson Harper <jackson@ximian.com>
24049 * TreeView.cs: When an edit is finished make sure that the
24050 selected node is visible.
24051 - When setting the top/bottom use the scrollbars is_visible, so
24052 everything will be set correctly even if the tree isn't visible
24055 2006-07-13 Jackson Harper <jackson@ximian.com>
24057 * ComboBox.cs: Revert the item->index part of my previous patch.
24058 * TreeView.cs: Use LostFocus instead of Leave for detecting when
24059 the edit box has lost focus (duh).
24060 - Just make the edit box not visible when we get return, that will
24061 take the focus, which will call EndEdit
24062 * TreeNode.cs When we start editing, notify the treeview.
24064 2006-07-12 Jackson Harper <jackson@ximian.com>
24066 * ComboBox.cs: Clear out old items before setting the item list.
24067 This prevents databound controls from having their items added
24069 - Switch the combobox to use indices whereever possible instead of
24070 using Item's. This allows usto navigate through lists that have
24071 more then one item with the same string value (ie a, b, b, a).
24072 - Scroll the listboxes scrollbar when a non visible item is
24074 - Allow keypress to cycle through all the possible values. For
24075 example if you have b1, b2, b3 and hold down the B key all the
24076 values will be cycled through.
24078 2006-07-12 Jackson Harper <jackson@ximian.com>
24081 * ListView.cs: Don't need to override SETFOCUS anymore, we can do
24082 this using the internal methods.
24083 * Control.cs: Add OnGotFocusInternal. A new method that allows
24084 controls to "override" OnGotFocus and change focus behavior if
24086 - Same thing for LostFocus
24087 * ComboBox.cs: Pass off focus to the text control properly.
24089 2006-07-12 Alexander Olk <alex.olk@googlemail.com>
24091 * FileDialog.cs: Added GetFoldersOnly to MWFVFS
24092 * FolderBrowserDialog.cs: Almost a complete rewrite.
24093 - Better support for Environment.Specialfolders
24094 - Added support for MWFVFS
24095 - Made setting SelectedPath work
24097 2006-07-12 Jackson Harper <jackson@ximian.com>
24099 * Control.cs: Optimze getting all the controls.
24101 2006-07-11 Jackson Harper <jackson@ximian.com>
24103 * ContainerControl.cs: Override SETFOCUS in the container control,
24104 so that it is not selected on mouse click.
24106 2006-07-11 Peter Dennis Bartok <pbartok@novell.com>
24108 * LinkLabel.cs: Hack to handle Shift-Tabbing to the linklabel.
24109 Hopefully we will have a better way once all of focus is complete.
24111 2006-07-11 Peter Dennis Bartok <pbartok@novell.com>
24113 * ThemeWin32Classic.cs: Commented out some debug code and fixed
24114 a compile error with csc.
24116 2006-07-11 Jackson Harper <jackson@ximian.com>
24118 * Control.cs: When hiding a control only select the next control
24119 if the current control was focused.
24120 - Don't handle enter/leave when setting/killing focus, this is
24121 done by the container control.
24122 - Remove is_selected, it's not needed anymore.
24123 - Add utility methods for selecting a child control, and for
24124 firing the Enter/Leave events.
24125 * ContainerControl.cs: When a control is activated fire the
24126 enter/leave events.
24127 - Don't wrap when processing the tab key, so that focus can be
24128 moved outside of the container.
24129 - Use the correct active control
24131 2006-07-11 Jackson Harper <jackson@ximian.com>
24133 * ComboBox.cs: Remove some debug code that was blinding me.
24134 * UpDownBase.cs: These controls actually aren't implicit, they are
24135 visible to the user.
24137 2006-07-10 Chris Toshok <toshok@ximian.com>
24139 * DataGrid.cs: move back to the is_adding boolean field. god i
24140 hate this is_editing/is_adding/is_changing stuff.
24142 2006-07-10 Chris Toshok <toshok@ximian.com>
24144 * DataGridTableStyle.cs: just check if the property type is bool.
24145 if it is, use DataGridBoolColumn, otherwise DataGridTextBoxColumn.
24146 Don't use CanRenderType.
24148 * DataGridTextBoxColumn.cs: set the value to DBNull.Value, not "",
24149 if our text == NullText. Remove CanRenderType.
24151 * DataGridBoolColumn.cs: nuke CanRenderType.
24153 * DataGrid.cs: reenable some code to end the current edit inside
24154 of set_CurrentCell. This fixes the other 1.1.16 regression.
24155 Also, remove rowhdrs_maxheight and just use rowhdrs_area.Height.
24156 Also, remove the visible_row_count arg from CalcRowHeaders, since
24157 we don't need to worry about the actual height of the area.
24159 2006-07-10 Chris Toshok <toshok@ximian.com>
24161 * DataGridTextBoxColumn.cs: if when we Commit we're in navigate
24164 * DataGridTextBox.cs: change "isedit" to "isnavigating" to reflect
24165 the real sense of the IsInEditOrNavigateMode property (true =
24166 navigate, false = edit). Also, update OnKeyPress to reflect this.
24168 * DataGridTableStyle.cs (CreateColumnsForTable): even if the
24169 column style exists, we still need to set its property descriptor
24170 to match up with our list manager.
24172 2006-07-10 Chris Toshok <toshok@ximian.com>
24174 * ThemeWin32Classic.cs: implement the new row/header painting
24175 approach. The parent row painting will likely go away and
24176 replaced with label controls, but the rest seems to work ok (and
24179 * Theme.cs: change the way we draw datagrid rows. we don't draw
24180 the row headers as a block now. Instead we draw them in the
24181 normal draw-row loop. Add some calls for drawing parent rows and
24184 * DataGridTableStyle.cs: add tons of ArgumentExceptions if this is
24185 a default table style. Set the defaults from ThemeEngine.Current,
24186 not SystemColors. Fix lots of misc issues with property setters.
24188 * DataGrid.cs: move loads of style information out of this class
24189 as it's being duplicated with DataGridTableStyle. keep track of a
24190 special DataGridTableStyle for the properties we used to mirror
24191 here. Switch all the style properties to access this table style
24192 instead of instance fields of this class. Also add a internal
24193 class to represent parent rows (more needs to be stored here, like
24194 the selection state from the parent table, as well as the
24195 expansion state.) Also, for datasources with relations, do the
24196 right thing for collapse/expand, and add support for the
24197 navigation/parent row buttons.
24199 Lastly, fix the crash in the 1.1.16 build.
24201 * GridTableStylesCollection.cs: make the explicit interface
24202 implementations call the class's methods as opposed to duplicating
24205 * DataGridTextBoxColumn.cs: set the x/y offset of the textfield to
24206 0 so the text doesn't jump around when we move the cursor.
24208 2006-07-10 Jackson Harper <jackson@ximian.com>
24211 * ListBox.cs: Match MS's ToString (this makes debugging focus
24212 stuff infinitely easier).
24214 2006-07-10 Jackson Harper <jackson@ximian.com>
24216 * Control.cs (SelectNextControl): When checking the control's
24217 parent use this instead of ctrl.parent so that null can be passed
24218 to SelectNextControl. (I have unit tests for this).
24219 - Remove unused var.
24221 2006-07-10 Chris Toshok <toshok@ximian.com>
24223 * CurrencyManager.cs: correct one regression, the removal of the
24224 finalType field. Also, add a MonoTODO on CanAddRows, implement
24225 Refresh() correctly, and fix some event emission in
24226 ListChangedHandler.
24228 2006-07-07 Alexander Olk <alex.olk@googlemail.com>
24230 * FileDialog.cs: Don't use brackets for new folders if they exist
24231 under *nix. Instead use -(number of existing folders +1).
24233 2006-07-07 Alexander Olk <alex.olk@googlemail.com>
24236 - Fixed really nasty bug #78771
24237 - Don't block the whole GUI when reading directories with a lot of
24238 entries. Use an other thread instead and call BeginInvoke to
24239 update the ListView in MWFFileView
24241 2006-07-07 Chris Toshok <toshok@ximian.com>
24243 * Control.cs (Dispose): release any Capture when disposing.
24245 2006-07-07 Chris Toshok <toshok@ximian.com>
24247 * LinkLabel.cs (Select): if we chain up to the parent, set
24248 focused_index to -1 so we'll search for the first available link
24249 the next time the user tabs into us. Also, if the direction is
24250 backward and focused_index == -1, start the search from the last
24253 2006-07-07 Chris Toshok <toshok@ximian.com>
24255 * LinkLabel.cs (CreatePiecesFromText): if the link's range piece
24256 is beyond the end of the text, don't do anything.
24257 (CreateLinkPieces): set our ControlStyles.Selectable based on
24258 whether or not we have any links.
24259 (Link.Invalidate): use a loop instead of foreach.
24260 (Link.set_Start): null out owner.sorted_links so it'll be
24261 recreated by CreateLinkPieces.
24263 2006-07-06 Chris Toshok <toshok@ximian.com>
24265 * LinkLabel.cs: revert the SetStyle change.
24267 2006-07-06 Chris Toshok <toshok@ximian.com>
24269 * LinkLabel.cs (.ctor): SetStyle Selectable to true.
24270 (OnEnableChanged): s/Refresh/Invalidate
24271 (OnGotFocus): if we have a focused index already, refocus it (so
24272 if we mouse out/in to the window it'll focus the right link).
24273 (OnKeyDown): move the tab handling out of here.
24274 (OnLostFocus): don't set focused_index to -1, so we can refocus it
24275 when we lose focus.
24276 (OnMouseDown): don't Capture here - Control handles it. Also,
24277 focus the active link.
24278 (OnMouseUp): don't deal with Capture.
24279 (OnPaintBackgroundInternal): remove.
24280 (OnTextAlignChanged): CreateLinkPieces before calling the
24281 superclass's method.
24282 (OnTextChanged): call CreateLinkPieces before calling superclass's
24284 (ProcessDialogKey): handle Tab here, and call Select(bool,bool) to
24286 (Select): implement this, moving the selection between different
24287 links, and call parent.SelectNextControl if we don't have another
24288 link to focus in the given direction.
24289 (CreateLinkPieces): call Invalidate instead of Refresh.
24291 2006-07-06 Chris Toshok <toshok@ximian.com>
24293 * ThemeWin32Classic.cs: DrawLinkLabel changes to accomodate the
24294 new LinkLabel internals.
24296 * LinkLabel.cs: fairly major rewrite. get rid of all the loops
24297 over pieces looking for active/focused/etc links. also, deal with
24298 runs of text (and links) with embedded \n's in them, and use
24299 MeasureCharacterRanges instead of MeasureString to figure out the
24300 regions text occupies. Lastly, do the usual s/Refresh/Invalidate
24303 2006-07-04 Jackson Harper <jackson@ximian.com>
24305 * XplatUIX11.cs: Enable key auto repeat. If the user doesn't have
24306 XKB or key auto repeat, do it manually. Without key auto repeat,
24307 when a key is held down we get key press, key release, key press,
24308 key release, ... with auto repeat we get key press, key press, key
24309 press ..., and then a release when the key is actually released.
24311 2006-07-03 Jackson Harper <jackson@ximian.com>
24314 * ThemeWin32Classic.cs: Tabs do not obey normal background color
24315 rules, they are always control color regardless of the background
24318 2006-07-02 Alexander Olk <alex.olk@googlemail.com>
24320 * FileDialog.cs: Added internal class MWFConfig.
24321 Removed Registry support and replaced it with support for the new
24322 MWFConfig class. See MWFConfig comments for more information.
24324 2006-06-30 Alexander Olk <alex.olk@googlemail.com>
24326 * ThemeWin32Classic.cs: Added RadioButton and CheckBox focus
24327 rectangle. Added some patches from eno from bug #78490 and fixed
24328 the arrow position for small up and down CPDrawScrollButtons.
24330 2006-06-30 Jackson Harper <jackson@ximian.com>
24332 * InternalWindowManager.cs: Remove some debug code.
24333 * Form.cs: When an MdiParent is set to null, the window is
24334 "detatched" and becomes a normal window.
24335 * MdiClient.cs: Don't bring the new child form to the front until
24336 it is activated (setting it as active does this), this makes the
24337 previously active forms titlebar get redrawn as inactive.
24339 2006-06-29 Peter Dennis Bartok <pbartok@novell.com>
24341 * PrintDialog.cs: Labels need a tab index too, otherwise they overlap
24342 with later controls
24344 2006-06-29 Mike Kestner <mkestner@novell.com>
24346 * MenuAPI.cs: handle arrow keys in keynav state. Go active on down
24347 arrow in keynav state. Fixes #78682.
24349 2006-06-28 Atsushi Enomoto <atsushi@ximian.com>
24351 * PrintDialog.cs: Reorder, relayout, remove extra code, set tab
24352 order (fixes #78393)
24354 2006-06-28 Jonathan Pobst <monkey@ipobst.com>
24356 * AccessibleRole.cs, AccessibleStates.cs, AnchorStyles.cs,
24357 ArrangeDirection.cs, ArrangeStartingPosition.cs, ColorDepth.cs,
24358 ControlStyles.cs, DataGridViewImageCellLayout.cs, DrawMode.cs,
24359 FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs,
24360 GridItemType.cs, HelpNavigator.cs, ImeMode.cs, ItemActivation.cs,
24361 ItemBoundsPortion.cs, Keys.cs, ListViewAlignment.cs,
24362 PictureBoxSizeMode.cs, PropertySort.cs, SelectionMode.cs,
24363 Shortcut.cs, SizeGripStyle.cs, SortOrder.cs, StructFormat.cs,
24364 TextFormatFlags.cs, ToolBarAppearance.cs, ToolBarButtonStyle.cs,
24365 ToolBarTextAlign.cs, View.cs: 2.0 Changes to existing 1.x
24366 enumerations (FlagsAttribute, SerializableAttribute, added/removed
24369 2006-06-28 Mike Kestner <mkestner@novell.com>
24371 * ComboBox.cs: implement scroll wheel support. Fixes #78360.
24373 2006-06-28 Atsushi Enomoto <atsushi@ximian.com>
24376 PropertyGridTextBox.cs : explicitly set BackColor to differentiate
24377 item lines from other area (It also makes BackColor consistent and
24378 compatible with .NET). Fixed bug #78564.
24380 2006-06-28 Jonathan Chambers <jonathan.chambers@ansys.com>
24382 * PropertyGrid.cs: refresh toolbar when PropertySort is set.
24383 Patch from Eno for #78555.
24385 2006-06-27 Chris Toshok <toshok@ximian.com>
24387 * ThemeWin32Classic.cs: s/grid.grid_drawing/grid
24389 * DataGridColumnStyle.cs: same.
24391 * DataGrid.cs: Roll DataGridDrawingLogic.cs into this file.
24393 * DataGridDrawingLogic.cs: nuke.
24395 2006-06-27 Chris Toshok <toshok@ximian.com>
24397 * DataGridTableStyle.cs: clean up the constructors, and build the
24398 list of child relations for this table. I have no idea if this is
24399 where we should be doing it (it probably isn't), but since we're
24400 already iterating over the properties..
24402 * DataGrid.cs: add row resizing. for now we add a DataGridRow
24403 struct and array for keeping track of row information, similar to
24404 what's shown in a hack on
24405 http://www.syncfusion.com/FAQ/WindowsForms/FAQ_c44c.aspx.
24407 * Theme.cs: be consistent about the naming of DataGrid methods,
24408 prefering ColumnWidths and RowHeights over columnsWidths and
24411 * ThemeWin32Classic.cs: same, and also add support for variable
24412 sized rows (and the +/- expansion icons for related rows).
24414 2006-06-27 Peter Dennis Bartok <pbartok@novell.com>
24416 * TextBoxBase.cs: Applied Eno's patch from #78660
24418 2006-06-27 Peter Dennis Bartok <pbartok@novell.com>
24420 * Form.cs (ScaleCore): We don't want to scale our form if it's
24421 state is minimized or maximized, but we still need to scale our
24422 child windows. Also, added try/finally block to ensure layout
24423 gets reset (Fixes #78697)
24425 2006-06-27 Peter Dennis Bartok <pbartok@novell.com>
24427 * Control.cs: Added 2.0 Scale(SizeF) method (Fixes 78700)
24429 2006-06-27 Peter Dennis Bartok <pbartok@novell.com>
24431 * Form.cs: Fixed c+p error and added check to resize form if minimum
24432 size is bigger than current size (Fixes #78709)
24434 2006-06-26 Peter Dennis Bartok <pbartok@novell.com>
24436 * ThemeEngine.cs (..ctor): Properly use ToLower() (Fixes #78704)
24438 2006-06-26 Mike Kestner <mkestner@novell.com>
24440 * ComboBox.cs: only do Keypress handling in the combo when there
24441 are items in the collection. Fixes #78710.
24443 2006-06-26 Chris Toshok <toshok@ximian.com>
24445 * Binding.cs: make this work bi-directionally. also, clear up
24446 other mixups between Push/Pull Data (e.g. we're supposed to pull
24447 data when validating).
24449 * BindingManagerBase.cs: trim some fully qualified collection
24452 * PropertyManager.cs (get_IsSuspended): oops, fix this check.
24454 2006-06-23 Chris Toshok <toshok@ximian.com>
24456 * PropertyManager.cs: It appears (according to the unit tests)
24457 that PropertyManager doesn't use
24458 PropertyDescriptor.AddValueChanged to track propery value changes
24459 in its datasource, but uses the same scheme as Binding, where it
24460 looks for a <Property>Changed event and binds to it.
24462 Also, according to the docs, IsSuspended always returns false for
24463 a property manager with a non-null datasource.
24465 2006-06-22 Peter Dennis Bartok <pbartok@novell.com>
24467 * Form.cs: (ShowDialog): If we're returning a forced cancel we still
24468 need to update the actual DialogResult. (Fixes #78613)
24470 2006-06-22 Peter Dennis Bartok <pbartok@novell.com>
24472 * Form.cs (ShowDialog): Release any captures before running the
24473 new message pump (fixes #78680)
24475 2006-06-22 Mike Kestner <mkestner@novell.com>
24477 * ListView.cs: Layout column widths properly in details mode even
24478 if HeaderStyle.None is set. Fixes #78691.
24480 2006-06-21 Peter Dennis Bartok <pbartok@novell.com>
24482 * FileDialog.cs: Fixed taborder to match MS. Fixes #77873 partially.
24484 2006-06-21 Peter Dennis Bartok <pbartok@novell.com>
24486 * Control.cs (ContainsFocus): Using new driver method to get focused
24487 window, instead of trying to use internal tracking var, which can
24488 recursion issues (Fixes #78685)
24489 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
24490 XplatUIWin32.cs: Added GetFocus method to return focused window
24492 2006-06-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24494 * ColorDialog.cs: when the mouse button is pressed inside the color
24495 matrix, don't let the cursor move out of it until the button is
24496 released, which is the behavior on windows. Changed 'colours' by
24497 'colors' to use the same word consistently.
24499 2006-06-21 Chris Toshok <toshok@ximian.com>
24501 * DataGrid.cs: add in some basic navigation stuff (navigating to a
24502 child relation and back, using a stack). Also, remove
24503 GetDataSource and the code that calls it - it's not needed. Also,
24504 track CurrencyManager.ListName's removal.
24506 2006-06-21 Chris Toshok <toshok@ximian.com>
24508 * CurrencyManager.cs: push some of the original type checking from
24509 BindingContext.CreateBindingManager to here, and remove some of
24510 the finalType stuff. Need more tests to make sure I've got the
24511 ListName part right, and we might need more in SetDataSource.
24513 * PropertyManager.cs: add a ctor that takes just the datasource,
24514 and no property name. Make SetDataSource work with a null
24515 property_name, and make Current return the data_source if the
24516 property descriptor is null. this makes 'string foo = "hi";
24517 BindingContext[foo].Current' return "hi" as it should.
24519 * RelatedCurrencyManager.cs: make this code more generic - there's
24520 no reason the parent manager has to be CurrencyManager, and
24521 there's no reason to pass the DataRelation. It suffices to use a
24522 BindingManagerBase and PropetyDescriptor.
24524 * RelatedPropertyManager.cs: make a similar change here.
24526 * BindingContext.cs: make CreateBindingManager the beautiful, tiny
24527 flower I knew it could be.
24529 2006-06-20 Chris Toshok <toshok@ximian.com>
24531 * PropertyManager.cs: the PropertyChangedHandler is invoked when
24532 data in the source has changed and we need to update the control,
24533 so s/PullData/PushData.
24535 * CurrencyManager.cs: Refresh is meant to update the control from
24536 data in the datasource. So, s/PullData/PushData.
24538 * BindingContext.cs: add more ugliness (we weren't handling the
24539 case where data_source = DataTable and data_member = column_name).
24541 * Binding.cs: fix PushData/PullData mixup. Both are interpreted
24542 from the perspective of the datasource. PullData pulls from the
24543 control, PushData pushes to the control.
24545 2006-06-20 Chris Toshok <toshok@ximian.com>
24547 * BindingContext.cs: rewrite the CreateBindingManager code to
24548 handle navigation paths more or less properly. This could
24549 definitely stand some more work, in particular to push the
24550 recursion up to the toplevel. But that relies on fixes in other
24551 places (System.Data comes to mind).
24553 Also, move to a flat hashtable (and encode the twolevel nature of
24554 the dictionary into the hash key). This lets us implement the
24555 IEnumerable.GetEnumerator method.
24557 * RelatedCurrencyManager.cs: new class. Update our view based on
24558 our relation and our parent CurrencyManager's position.
24560 * CurrencyManager.cs: split out some logic from the ctor into
24561 SetView, so it can be called from the new RelatedCurrencyManager
24564 * RelatedPropertyManager.cs: new class. Update our datasource
24565 based on the position of our parent CurrencyManager.
24567 * PropertyManager.cs: split out some logic from the ctor into
24568 SetDataSource, so it can be called from the new RelatedDataSource
24569 subclass. Also, make the Current getter return the value
24570 of the PropertyDescriptor, not the data_source.
24572 * Binding.cs: no need to duplicate the string splitting code here.
24574 2006-06-19 Peter Dennis Bartok <pbartok@novell.com>
24577 - set_Enabled: OnEnabledChanged is not called if the inherited state
24578 of the control is not altered, even though we might be changing the
24579 internal state of the control (#78458)
24580 - set_Enabled: (Re)Moved the enabling/disabling of the window to
24581 OnEnabledChanged, to allow easy altering of any child window state
24582 - OnEnabledChanged: Added code to enable/disable driver window state
24583 - OnParentEnabledChanged: Instead of firing the event, call
24584 OnEnabledChanged, which will fire the event and also a) set driver
24585 window state and pass the enabled state to any grandchildren (#78458)
24587 2006-06-19 Jackson Harper <jackson@ximian.com>
24589 * InternalWindowManager.cs: We don't set the cursor explicitly
24590 thats done via the response to NCHITTESTs.
24591 - Don't need to adjust for titlebar heights anymore, the
24592 coordinates are coming in the correct coordinates now (see peters
24596 2006-06-19 Peter Dennis Bartok <pbartok@novell.com>
24598 * XplatUIX11.cs (GetMessage): WM_NCxBUTTONx messages were wrongly
24599 being translated relative to whole window, instead of client window.
24600 That caused broken offsets on mouseclick (and caused gas for our
24601 InternalWindowManager)
24603 2006-06-15 Peter Dennis Bartok <pbartok@novell.com>
24606 - MoveCaret: Implemented PgUp, PgDown, CtrlPgUp and CtrlPgDown
24607 - Undo(): Added replay of cursor move on DeleteChars action; added
24608 calling Undo() again if a recorded cursor move is invalid (to
24609 ensure that some action is performed on Undo)
24610 * TextBoxBase.cs (ProcessKey): Added handling of PgUp and PgDown (#78482)
24612 2006-06-16 Jackson Harper <jackson@ximian.com>
24614 * MdiClient.cs: Instead of just sizing maximized windows when
24615 there is a resize we also have to adjust the Y of minimized
24616 windows, so they stay pinned to the bottom of the mdi container.
24617 - Eliminate separate tracking of the active control, we can just
24618 get this from the controls collection.
24619 - Paint the decorations for the newly activated titlebar so we get
24621 * InternalWindowManager.cs:
24622 * ThemeWin32Classic.cs: Minimized windows get all three buttons
24623 even if they are a tool window.
24625 2006-06-15 Peter Dennis Bartok <pbartok@novell.com>
24627 * TextControl.cs (Undo): Handle non-existent cursor locations in the
24628 undo buffer, these can happen when text was deleted and the cursor
24629 was recorded first. Since we will also have a recorded cursor
24630 after the delete this is not an issue. (Fixes #78651)
24632 2006-06-14 Peter Dennis Bartok <pbartok@novell.com>
24634 * AccessibleObject.cs: Remove dependence on Control.is_selected;
24635 instead properly track control states internally (allows us to
24636 remove is_selected from Control)
24638 2006-06-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24640 * ImageListStreamer.cs: correctly generate the 1bpp mask for images
24641 whose width is not a multiple of 8.
24643 2006-06-13 Jackson Harper <jackson@ximian.com>
24645 * MdiClient.cs: Only maximize the next child if the current one
24648 2006-06-13 Chris Toshok <toshok@ximian.com>
24650 * DataGridColumnStyle.cs: Invalidate the column when HeaderText is
24651 modified. Also, guard against grid or grid_drawing being null in
24654 * DataGrid.cs: Reformat tons of getters/setters. In the
24655 DataMember setter, just call SetNewDataSource instead of
24656 duplicating some of its functionality. In SetNewDataSource, don't
24657 check ListManager for null, since the property getter creates the
24660 * DataGridTableStyle.cs: don't set TableStyle or call
24661 SetDataGridInternal on the column here, it's done in
24662 GridColumnStylesCollection.Add.
24664 * GridColumnStylesCollection.cs: fix all the explicit interface
24665 implementations to just call our methods. Nuke AddInternal() and
24666 move the body of it to Add(). Also, add a call to
24667 column.SetDataGridInternal to Add().
24669 * DataGridTextBoxColumn.cs (.ctors): call this() instead of
24670 base()+duplicate code. Also, use the Format property instead of
24671 format to generate an Invalidate ala MS. Lastly, create the
24672 textbox here, unconditionally.
24673 (set_Format): call Invalidate.
24674 (get_TextBox): no need to call EnsureTextBox.
24675 (Commit): remove the message box.
24676 (Edit) remove the call to EnsureTextBox.
24677 (EndEdit): call HideEditBox instead of ReleaseHostedControl.
24678 (EnterNullValue): no need to check textbox for null.
24679 (HideEditBox): no need to check textbox for null.
24680 (SetDataGridInColumn): add the textbox to the grid's controls.
24681 (EnsureTextBox): nuke.
24683 2006-06-13 Jackson Harper <jackson@ximian.com>
24685 * MdiWindowManager.cs: Hook up to the maximized menus paint event
24686 and redraw the buttons when needed. Unhook when the window is
24688 * MainMenu.cs: Add an internal Paint event, the mdi window manager
24689 needs this so that it can redraw its buttons when the menu is
24691 * InternalWindowManager.cs:
24692 * Form.cs: The method order has changed for DrawMaximizedButtons,
24693 so that it can be a PaintEventHandler.
24695 2006-06-13 Jackson Harper <jackson@ximian.com>
24697 * MdiClient.cs: When we close a maximized mdi window, the next mdi
24698 window is activated and maximized, even if it wasn't before.
24699 - When a new window is activated repaint the decorations of the
24700 old one, so that it no longer has the Active "look" (the blue
24702 * InternalWindowManager.cs: Open up CreateButtons to base classes
24703 so they can recreate the buttons on state changes.
24704 - If a window is maximized give it all three buttons
24705 * MdiWindowManager.cs: Create the titlebar buttons when the state
24706 is changed, this is needed because a toolwindow will not have all
24707 three buttons until it is maximized.
24709 2006-06-13 Atsushi Enomoto <atsushi@ximian.com>
24711 * ProgressBar.cs : PerformStep() shouldn't exceed Maximum.
24714 2006-06-12 Jackson Harper <jackson@ximian.com>
24716 * KeysConverter.cs: Make sure we handle the Ctrl special case
24717 if its the only key.
24719 2006-06-12 Jackson Harper <jackson@ximian.com>
24721 * Theme.cs: Add a method to get the size of a managed window
24723 * InternalWindowManager.cs: Remove the ButtonSize property, this
24724 should be retrieved from the theme.
24725 * MdiWindowManager.cs: Get the button size from the theme
24726 * ThemeWin32Classic.cs: Make the method to get the managed window
24727 titlebar button size public.
24728 - Handle the different button sizes of maximized toolwindows
24729 (should match any maximized window).
24730 - Get the titlebar height from the theme, not the WM (which gets
24731 it from the theme).
24733 2006-06-12 Jackson Harper <jackson@ximian.com>
24735 * InternalWindowManager.cs: Handle NC Double Clicks, passing the
24736 event down to the mdi window manager.
24737 - Expose some extra stuff to base classes
24738 - Make sure to end the Capture on an NC Mouse up, so that we can
24739 get double clicks properly, and the sizing doens't stick.
24740 - When doing PointToClient contain it in the workable desktop
24741 area, this prevents windows from changing size when the cursor is
24742 pulled outside of the working area while sizing.
24743 * MdiWindowManager.cs: When we get a double click maximize the
24745 - Reset the cursor after handling mode changes.
24747 2006-06-12 Peter Dennis Bartok <pbartok@novell.com>
24749 * XplatUIX11.cs (WorkingArea): Read the actual workarea for the
24750 current desktop, instead of just assuming a 0, 0 origin. This
24751 is needed for our internal window manager, to know the top
24752 margin of the desktop
24754 2006-06-12 Chris Toshok <toshok@ximian.com>
24756 * DataGrid.cs (set_CurrentCell): concede focus as we move around.
24757 we need this to get rid of the selected background in the bool
24759 (CancelEditing): move the ConcedeFocus call to above the Abort
24760 call. Also, set is_changing to false and invalidate the row
24761 header if we were changing before.
24762 (ProcessKeyPreviewInternal): remove, since noone outside this
24763 class calls it anymore. Roll the code into ProcessKeyPreview.
24764 (EndEdit): remove the internal version.
24765 (InvalidateCurrentRowHeader): make private.
24767 * DataGridBoolColumn.cs: simplify this class a bunch. remove the
24768 Keys.Escape handling (and with it the last call to
24769 DataGrid.EndEdit from outside the class.)
24772 2006-06-12 Chris Toshok <toshok@ximian.com>
24774 * DataGridTextBox.cs (.ctor): isedit defaults to false.
24775 (OnKeyPress): set isedit to true.
24776 (ProcessKeyMessage): remove Keys.Enter handling from here. it's
24777 already handled by the grid.
24779 * DataGrid.cs (set_CurrentCell): more work here. it's still not
24781 (set_DataSource): SetDataSource always returns true, so stop
24782 putting it in an if statement.
24783 (EndEdit): get rid of some {}'s
24784 (ProcessGridKey): return true in case Keys.Escape.
24785 (ProcessKeyPreviewInternal): only handle KEYDOWN messages.
24786 (ConnectListManagerEvents,DisconnectListManagerEvents): connect to
24787 PositionChanged, stopped connecting to CurrentChanged.
24788 (GetDataSource): simplify this a bunch.
24789 (SetDataSource): change return type from bool to void.
24790 (OnListManagerPositionChanged): rename OnListManagerCurrentChanged
24791 to this, and make sure we don't set ListManager.Position inside
24793 (OnListManagerItemChanged): if we're passed an actual index,
24796 * CurrencyManager.cs (set_Position): don't call PullData here.
24798 2006-06-09 Jackson Harper <jackson@ximian.com>
24800 * TreeNode.cs: Recalculate the visible order before doing the
24801 Expand/Collapse Below calls, because those calls generate an
24803 - Reduce calls to the TreeView property, which is mildly expensive
24804 by using a local var.
24805 * Form.cs: Layout the MDI child windows when creating the parent
24807 - Don't use the internal constructor anymore
24808 * MdiClient.cs: use the parent form width/height (if available)
24809 when laying out the child windows, we do this because the
24810 mdiclient isn't docked yet when the initial layout is done.
24811 - Don't need an internal constructor anymore.
24813 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24815 * FileDialog.cs: handle access errors when trying to create a folder
24816 or changing to a directory. No need to initialize out parameters.
24818 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
24820 * FileDialog.cs: Append a number when creating a new folder if the
24821 folder already exists (use parenthesis instead of square brackets)
24823 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
24826 - Disabled registry support for windows and added better registry
24827 error checking for other systems (need to investigate why it
24828 works perfectly on my system)
24829 - If a folder already exist show an error MessageBox instead of
24830 trying to create an indexed name.
24831 - Fixed a non intentional typo.
24833 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24835 * FileDialog.cs: (SetFileName) don't crash if CurrentRealFolder is null.
24837 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
24839 * FileDialog.cs: When creating a new folder don't crash if the
24840 folder already exists.
24842 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
24844 * FileDialog.cs: Allmost a complete rewrite.
24845 - added a "virtual" file system that handles the differences
24846 between unix and windows file systems (especially the directory
24847 structure). Moved most of the directory and file handling code
24849 Added vfs classes: MWFVFS, FileSystem, WinFileSystem,
24850 UnixFileSystem and FSEntry.
24851 - Recently used folder/directory, size, location and used file names
24852 (file name ComboBox) are now stored in the registry and get read
24853 before the dialog shows up (fixes part 6 of bug #78446).
24854 - Creation of new folders/directories is now possible (context menu
24855 or ToolBar). Added TextEntryDialog for this that fills in the gap
24856 until ListView.LabelEdit works.
24857 - Fixed cursor handling (bug #78527) and focus handling for
24859 - Various "Search in" ComboBox enhancements. The content of the
24860 dropdown listbox now almost matches ms.
24861 - Changed the behaviour when the user switches to SpecialFolder
24862 Recent to show the ListView in View.Details.
24863 - Beside using the ToolBar to change the View property of the
24864 file ListView it is now possible to use the context menu too.
24866 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
24868 * ComboBox.cs: Don't create a new ObjectCollection when an item
24869 gets inserted. Just insert the item in the existing object_items
24872 2006-06-08 Jackson Harper <jackson@ximian.com>
24874 * OpenTreeNodeEnumerator.cs: Fix to use the Parent property, so
24875 that the treeview and root node checks are done also, this fixes a
24876 regression i caused in the unit tests.
24878 2006-06-07 Wade Berrier <wberrier@novell.com>
24880 * RichTextBox.cs: More ISO8859-1 -> unicode
24882 2006-06-07 Mike Kestner <mkestner@novell.com>
24884 * ComboBox.cs : use items to hold highlight/selection so that
24885 collection insertions don't require synchronization.
24887 2006-06-07 Jackson Harper <jackson@ximian.com>
24889 * InternalWindowManager.cs: Simplify (and FIX) the window sizing
24890 routine. We now always keep the sized edge at the cursor instead
24891 of computing movement and adjusting rects. There is one buglet
24892 with this method though when the cursor is moved over area that
24893 the window can not expand too (such as the toolbars on the desktop).
24895 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24897 * XplatUIX11.cs: (IsEnabled,IsVisible) the window handler can be null
24898 here. Fixes crash on startup in AlbumSurfer.
24900 2006-06-07 Peter Dennis Bartok <pbartok@novell.com>
24902 * RichTextBox.cs: Replaced embedded ISO8859-1 chars with proper unicode
24905 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24907 * XplatUIX11.cs: call XPending and XNextEvent inside the same lock()
24908 statement to avoid calling XNextEvent which will block if another thread
24909 took the event that we were expecting. Fixes bug #78605.
24911 2006-06-07 Mike Kestner <mkestner@novell.com>
24913 * ListView.cs : isolated checkbox clicking from the selection logic.
24914 Toggle check state on item doubleclicks. Really fixes #78454 part2.
24916 2006-06-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
24918 * Form.cs: Check that the value passed to Form.DialogResult
24919 is a valid enum value.
24921 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24923 * FileDialog.cs: disable the up button when in 'Recently Used' or 'My
24924 Computer'. Clicking it in the network view goes to 'My Computer'.
24925 Added CIFS filesystem type. Display the mount point of filesystems.
24926 Avoid duplicate mount points (happens for me with CIFS);
24928 2006-06-06 Jackson Harper <jackson@ximian.com>
24930 * InternalWindowManager.cs: Draw the maximized windows buttons
24933 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24935 * Form.cs: when running a modal dialog, ignore WM_CLOSE requests for
24936 all other dialogs. Fixes bug #78585.
24938 2006-06-06 Mike Kestner <mkestner@novell.com>
24940 * CheckedListBox.cs : apply CheckOnClick behavior to unchecking too.
24941 Only invalidate checkbox on checkstate changes to avoid flicker.
24942 * ListBox.cs : avoid unselect/select when clicking selected item.
24943 avoid reselection flicker for already multiselected items.
24946 2006-06-06 Jackson Harper <jackson@ximian.com>
24948 * MdiWindowManager.cs: When the window is closed do an NCRecalc on
24949 the parent form so that the menu is removed if needed.
24951 2006-06-06 Mike Kestner <mkestner@novell.com>
24953 * ListBox.cs : add ScrollWindow call to UpdateTopItem. fix
24954 Prev/Next/PrevPage/NextPage/Home/End index calculation. Fixes #78559.
24956 2006-06-06 Mike Kestner <mkestner@novell.com>
24958 * CheckedListBox.cs : rebuild check collection on Add. Fixes #78426.
24961 2006-06-06 Jackson Harper <jackson@ximian.com>
24963 * Control.cs: Use the property (instead of the field) to get the
24964 default cursor so it is instantiated correctly.
24965 * InternalWindowManager.cs: The OS doesn't give us an NCPAINT with
24966 resizes so we need to manually repaint the window decorations here.
24967 - Set the titlebar button locations as soon as they are created,
24968 otherwise they are not set correctly on win32.
24970 2006-06-06 Chris Toshok <toshok@ximian.com>
24972 * CurrencyManager.cs (set_Position): call PullData before
24974 (AddNew): after calling IBindingList.AddNew, update our
24975 listposition, and call OnCurrentChanged/OnPositionChanged (without
24977 (OnCurrentChanged): remove the call to PullData from here.
24978 (OnItemChanged): remove the call to PushData from here.
24979 (OnPositionChanged): change the test from == null to != null to
24980 match the other methods.
24981 (ListChangedHandler): the grossest part of the patch. Implement
24982 this such that it passes the unit tests in CurrencyManagerTest and
24983 the output more or less matches that of MS's implementation.
24985 2006-06-06 Mike Kestner <mkestner@novell.com>
24987 * ListView.cs : only update check state on single click.
24988 * ThemeWin32Classic.cs : fix focus drawing for details view without
24989 fullrowselect. Fixes #78454.
24990 * XplatUIX11.cs : fix for double click emission.
24992 2006-06-05 Jonathan Chambers <jonathan.chambers@ansys.com>
24994 * PropertyGridView.cs : Applied Atsushi's patch to fix
24995 font dialog bug (#78197).
24997 2006-06-05 Jackson Harper <jackson@ximian.com>
24999 * TreeNode.cs: Compute the next node for expanding/collapsing
25000 correctly. We now factor in nodes without a NextNode
25001 correctly. (Fixes somes cases in nunit-gui).
25002 * InternalWindowManager.cs: Set the bounds when updating the
25003 virtual position of a tool window.
25005 2006-06-05 Chris Toshok <toshok@ximian.com>
25007 * DataGrid.cs: rename cached_currencymgr to list_manager.
25008 (set_CurrentCell): move SetCurrentCell code here, and clean it up
25010 (CurrentRow, CurrentColumn): single accessors so we can make the
25011 cursor movement code a lot easier to understand.
25012 (CurrentRowIndex): implement this in terms of CurrentRow.
25013 (BeginEdit): clean this up a bit.
25014 (CancelEditing): sort out the is_editing/is_changing/is_adding
25016 (EndEdit): minor changes.
25017 (OnKeyDown): add a comment about a (most likely) unnecessary
25019 (OnMouseDown): cancel editing when we click on a row header. And
25020 use the CurrentRow setter, not CurrentCell.
25021 (ProcessDialogKey): directly call ProcessGridKey.
25022 (UpdateSelectionAfterCursorMove): factor out this common block of
25023 code (it's used everywhere that we move the cursor by updating row
25025 (ProcessGridKey): pretty substantial overhaul. Use the
25026 CurrentRow/CurrentColumn properties to make the code a lot more
25027 readable. Only use the CurrentCell property when we have to
25028 modify both row and column at once. Tab behavior is still broken,
25029 and Delete is untested.
25030 (Select): if we have no selected rows, set selection_start to
25032 (EditCurrentCell): rename EditCell this. It was only ever invoked
25033 with CurrentCell as the arg, so drop the arg and rename it.
25035 * DataGridColumnStyle.cs: clean up the constructors a little, and
25036 drop CommonConstructor().
25038 * DataGridTextBox.cs (.ctor): set accepts_return to true so we
25039 actually get notified when the user hits it.
25040 (ProcessKeyMessage): *substantially* simplify this method.
25041 There's no reason (that I can see) for the textbox to be making
25042 calls into the datagrid at all. Remove all of them but the ones
25043 for Enter handling. those will take some more work.
25045 * DataGridTextBoxColumn.cs (ConcedeFocus): implement this by
25046 calling HideEditBox.
25047 (HideEditBox): if we have an active textbox, render it invisible
25048 without causing a re-layout of the datagrid.
25050 2006-06-05 Mike Kestner <mkestner@novell.com>
25052 * ListView.cs : fix NRE crasher when focuseditem is cleared by
25053 collection changes by resetting it to Items[0]. Fixes #78587.
25055 2006-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25057 * MessageBox.cs: if the height of the text is larger than the icon_size,
25058 use that. Fixes bug #78575.
25060 2006-06-05 Jackson Harper <jackson@ximian.com>
25062 * TreeView.cs: Fix line drawing when scrolling. To do this each
25063 node is basically responsible for drawing its entire horizontal
25064 area. When drawing a node it draws its parent node lines if
25066 - Adjust the clip area to the viewport rectangle
25067 - Fix Left/Right key handling to match MS. (It expand/collapses
25068 and moves to parents/first child but does not move selection to
25070 - Fix SetTop to work with new bound calculation code
25071 - When scrollbars are no longer needed we need to reset scrolling
25072 vars and recalculate the visible order so the redraw is correct
25073 * TreeNode.cs: We can't expand/collapse nodes with no children.
25075 2006-06-03 John Luke <john.luke@gmail.com>
25077 * X11DesktopColors.cs: dllimport the exact gtk and gdk versions
25078 so the colors work without dev packages
25080 2006-06-02 Peter Dennis Bartok <pbartok@novell.com>
25083 - Select: Implemented to just use activate. Seems to match MS
25084 behaviour closest. Documented to only do actual control walking
25085 based on it's parameters if in a container control so I moved
25087 - Removed selection check logic from our internal Select() method
25088 * ContainerControl.cs:
25089 - Select: Moved selection logic from Control here, since MS documents
25090 that containers obey the bool arguments. No longer calling base
25092 2006-06-02 Jackson Harper <jackson@ximian.com>
25094 * TreeView.cs: If the selected node isn't changed when we get
25095 focus update the previously selected node so that we see the
25098 2006-06-02 Mike Kestner <mkestner@novell.com>
25100 * ComboBox.cs: restructure grab and general mouse event handling.
25101 Make the composite control raise mouse events like it was a single
25102 control for leaves/enters/motion/up/down events. fix dropdown list
25103 coordinate mangling and refactor it into the scrollbar subclass to
25104 reduce code duplication. Fixes #78282 #78361 and #78457.
25106 2006-06-02 Mike Kestner <mkestner@novell.com>
25108 * ScrollBar.cs: remove Capture setting/clearing, as it happens
25109 automatically in the Control.WndProc.
25111 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25113 * FileDialog.cs: fix crash when running SharpChess, which sets the
25114 FilterIndex to 2 with only one Filter.
25116 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25118 * ToolBar.cs: add SizeSpecified property.
25119 * ToolBarButton.cs: when the ButtonSize is calculated by the container,
25120 try to figure out our real size, otherwise fallback to what the
25123 2006-06-01 Peter Dennis Bartok <pbartok@novell.com>
25125 * XplatUIX11.cs (DefWndProc): WM_MOUSEWHEEL needs to be passed up
25126 * Control.cs (WndProc): MS always calls the DefWndProc to pass
25129 2006-06-01 Mike Kestner <mkestner@novell.com>
25131 * ListView.cs: revamp the focus management in ListView. It still
25132 causes churn of LostFocus/GotFocus emissions on clicks, but it's
25133 better than not handling focus at all. Will revisit when pdb feels
25134 the general focus handling is solid. Fixes #78526.
25136 2006-06-01 Jackson Harper <jackson@ximian.com>
25138 * TreeView.cs: Set the default border style in the constructor.
25139 - Move painting to use OnPaintInternal instead of capturing
25140 WM_PAINT, this is the correct way of doing things
25141 - UpdateBelow shouldn't invalidate the scrollbar area
25142 - Cap the top on update below in case the node was above the top
25143 of the viewport rectangle.
25144 - ExpandBelow and Collapse below need to obey Begin/End Update.
25145 * TreeNode.cs: Make is_expanded internal so the treenode
25146 collection can change it without firing the whole event chain.
25147 * TreeNodeCollection.cs: When clearing all the child nodes make
25148 sure to recalc the visible order.
25149 - Improve algo for remove the top node
25151 2006-06-01 Peter Dennis Bartok <pbartok@novell.com>
25153 * XplatUIX11.cs (SetFocus): Make sure we can handle re-entrancy due to
25154 SendMessage directly calling window procedures, which in turn might
25157 2006-06-01 Peter Dennis Bartok <pbartok@novell.com>
25159 * Control.cs: Don't handle WM_SETFOCUS if the same window already
25160 has focus (works around X11 sending a FocusIn after our SetFocus)
25161 * XplatUIX11.cs: Send KILLFOCUS before setting SETFOCUS on new window
25163 2006-06-01 Alexander Olk <alex.olk@googlemail.com>
25165 * Mime.cs: Fix for the NET_2_0 build.
25166 NameValueCollection needs StringComparer now.
25168 2006-05-31 Chris Toshok <toshok@ximian.com>
25170 * DataGridDrawingLogic.cs (FromPixelToColumn): modify this to also
25171 return (via an out parameter) the starting X of the column.
25172 (UpdateVisibleColumn): track change to FromPixelToColumn.
25173 (HitTest): add a ColumnResize case here.
25174 (DrawResizeLine): new function, probably poorly named.
25176 * DataGrid.cs (.ctor): get rid of cached_currencymgr_events. We
25177 only need to keep one reference.
25178 (set_ListManager): same.
25179 (OnMouseDown): call HitTest instead of grid_drawing.HitTest.
25180 Also, add support for HitTestType.ColumnResize.
25181 (OnMouseMove): add column resize behavior here, and change the
25182 cursor to the correct one as we move around the datagrid.
25183 (OnMouseUp): terminate the column resize if we're resizing.
25184 (ProcessGridKey): from the MS docs, Alt-0 enters the null value
25185 for the current cell.
25186 (ConnectListManagerEvents): use cached_currencymgr.
25187 (DisconnectListManagerEvents): fill this in, using
25188 cached_currencymgr.
25189 (SetCurrentCell): remove cached_currencymgr_events handling.
25190 (SetDataMember): only call DisconnectListManagerEvents if
25191 cached_currencymgr is != null.
25192 (SetDataSource): same.
25193 (OnListManagerCurrentChanged): cached_currencymgr_events ->
25194 cached_currencymgr.
25196 2006-05-31 Jackson Harper <jackson@ximian.com>
25198 * BindingManagerBase.cs: Remove somedebug code that creeped into
25200 * TreeNode.cs: We get the indent level dynamically right now, so
25201 don't track it as a member.
25202 * TreeNodeCollection.cs: Make sure all nodes added to the list
25203 have parents, treeviews/topnodes setup properly.
25204 - Don't attempt to track indent level.
25206 2006-05-30 Jackson Harper <jackson@ximian.com>
25208 * BindingContext.cs: Create the currency manager tables here.
25209 This allows us to more easily create null tables (when bad data
25210 members are used), and more easily create related currency
25212 * CurrencyManager.cs: All the table creation stuff is done by the
25213 binding context now.
25214 - Current should throw an exception if listposition is -1.
25215 - CancelCurrentEdit/EndCurrentEdit, do nothing if the list hasn't
25218 2006-05-30 Mike Kestner <mkestner@novell.com>
25220 * ListView.cs: allow reexpansion of zero-width column headers.
25223 2006-05-28 Chris Toshok <toshok@ximian.com>
25225 * CurrencyManager.cs (get_Current): after the late binding
25226 listposition = -1 fix, we need to guard against it here and return
25227 null, otherwise we raise an exception (which is swallowed
25228 elsewhere, and breaks datagrid databinding.)
25230 2006-05-26 Peter Dennis Bartok <pbartok@novell.com>
25232 * MenuAPI.cs (ProcessMenuKey): We can legally get msg types other
25233 than WM_SYSKEY, don't throw if get something unexpected (#78507)
25235 2006-05-26 Jackson Harper <jackson@ximian.com>
25238 * ThemeWin32Classic.cs: For color comparisons just use the ARGB
25239 values, it's faster and it's all we care about (we don't care if
25240 the names aren't equal).
25241 * KeyboardLayouts.cs: Eliminate some dead code.
25243 * X11Keyboard.cs: Lazy init keyboard detection.
25244 - Cleanup access modifiers a little.
25246 2006-05-26 Peter Dennis Bartok <pbartok@novell.com>
25248 * XplatUIX11.cs: Once again, attempting to get layout just right.
25250 2006-05-26 Peter Dennis Bartok <pbartok@novell.com>
25252 * LinkLabel.cs (CreateLinkPieces): Use MeasureString to calculate
25253 the sizes of each link section, that will result in sizes that
25254 match DrawString's layout (Fixes #78391)
25256 2006-05-27 Alexander Olk <alex.olk@googlemail.com>
25258 * FileDialog.cs: If AddExtension property is true autocomplete the
25259 extensions in SaveFileDialog correctly. Fixes bug #78453.
25260 Set MyNetwork and MyComputer to "C:\" for windows. This should
25261 fix part 8 of bug #78446 for now.
25263 2006-05-26 Chris Toshok <toshok@ximian.com>
25265 * DataGrid.cs (ColumnStartedEditing): fill these in. for now just
25266 invalidate the current row header if we need to, but presumably
25267 we'll invalidate the row corrsponding to the bounds or
25269 (GridHScrolled): switch back to this method, as it's part of the
25270 public api. *sigh*.
25271 (GridVScrolled): same.
25272 (OnMouseWheel): hack up something that more or less works. Call
25273 GridHScrolled/GridVScrolled directly, instead of duplicating much
25274 of their code here.
25275 (EnsureCellVisibility): reinstate a bunch of this code, since we
25276 can't just set the scrollbar Value and expect to do all the work
25277 in the ValueChanged handler. Also, Call Update() after scrolling
25278 in one direction so the other XplatX11.ScrollWindow call has the
25279 proper stuff in the proper places.
25280 (EditCell): set is_editing to true before calling .Edit.
25282 * DataGridTextBox.cs (set_IsInEditOrNavigateMode): just set it,
25283 don't bother comparing first.
25284 (OnKeyPress): call grid.ColumnStartedEditing before calling
25285 base.OnKeyPress. this will set is_changing and invalidate the row
25286 header if necessary.
25287 (ProcessKeyMessage): for WM_CHAR messages, call
25288 ProcessKeyEventArgs directly. swallow anything other than WM_CHAR
25291 * DataGridBoolColumn.cs (Edit): don't set is_editing to true here.
25292 it's done in the DataGrid.
25293 (NextState): call grid.ColumnStartedEditing, which takes care of
25294 invalidating the row header (and setting is_changing).
25296 * DataGridTextBoxColumn.cs (Edit): don't set is_editing to true
25297 here. it's done in the DataGrid.
25299 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25301 * Control.cs: allow changing the cursor when the mouse position is
25302 out of bounds but Capture is set.
25303 * LinkLabel.cs: handle the case when the mouse button is pressed on the
25304 linklabel but released somewhere else.
25306 2006-05-25 Jackson Harper <jackson@ximian.com>
25308 * TreeView.cs: When we get focus if there is no selected node make
25310 - Remove some uneeded setup code from Draw.
25311 * TreeNodeCollection.cs: If the tree doesn't have a top node when
25312 a new node is inserted make the new node the top.
25314 * Timer.cs: Use Utc time so that no local time zone stuff needs to
25315 be used (should be faster).
25317 2006-05-25 Chris Toshok <toshok@ximian.com>
25319 * DataGrid.cs (EnsureCellVisibility): remove some code to fix a
25320 problem with the last commit.
25322 2006-05-25 Chris Toshok <toshok@ximian.com>
25324 * DataGridTextBoxColumn.cs (ReleaseHostedControl): turns out we do
25325 need the invalidate call here, while scrolling right-to-left via
25326 the left arrow key (i.e. moving the editing cell while scrolling).
25328 * DataGrid.cs (.ctor): remove the initialization of
25329 ctrl_pressed/shift_pressed. We no longer track them using key
25330 up/down handlers, but by using Control.ModifierKeys. Also, switch
25331 to using ValueChanged handlers on the scrollbars instead of
25332 Scrolled event handlers. This simplifies a bunch of the scrolling
25334 (GridHValueChanged): rename from GridHScrolled, and change it to
25335 work with the new event args.
25336 (GridVValueChanged): same.
25337 (OnMouseDown): initialize ctrl_pressed/shift_pressed here.
25338 (OnMouseWheel): actually scroll the datagrid. Don't change the
25340 (ProcessGridKey): correct all the keyboard navigation stuff I
25341 could find. Ctrl up/down/left/right/home/end work now.
25342 (EnsureCellVisibility): correct method name spelling. Also,
25343 simplify this a touch by not explicitly calling the
25344 ScrollToRow/ScrollToColumnInPixels methods. We just set the
25346 (OnKeyUpDG): no need for this method now.
25348 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25350 * LinkLabel.cs: display the OverrideCursor when hovering the label.
25353 2006-05-25 Chris Toshok <toshok@ximian.com>
25355 * ThemeWin32Classic.cs: fix datagrid clipping problems caused by
25358 2006-05-25 Peter Dennis Bartok <pbartok@novell.com>
25360 * Application.cs: Moved setting of is_modal and closing to before
25361 we create the control, to allow the event handlers called as a
25362 result of creation affect closing. Also removed Gonzalo's previous
25363 change to setting DialogResult, the behaviour has been moved to
25366 - ShowDialog(): Removed explicit creation of the form, let RunLoop
25368 - ShowDialog(): If no dialog result is set, we need to return Cancel
25369 - WM_CLOSE: Fire Closing/Closed events, and reset dialog result if
25370 the close is cancelled
25372 2006-05-25 Jackson Harper <jackson@ximian.com>
25374 * StatusBar.cs: We only need to update the sizes of the other
25375 panels when we have auto size contents. Also we are only updating
25376 the contents of the panel, not the borders, so compensate for the
25377 border width (TODO: get this width from the theme somehow).
25378 * TreeView.cs: Scrollable is true by default
25379 - Use invalidate instead of refresh where needed
25380 - Factor the scrollable value into scrollbar updating
25381 - Update the scrollbars if the Scrollable property is altered
25382 - Update the selected node if its ImageIndex is changed
25383 - Handle null nodes in UpdateNode (mainly so we don't have to
25384 check if selected is null when updating it
25385 - Fix VisibleCount to use the ViewportRectangle so that scrollbars
25386 are factored into the visible count
25387 - Use VisibleCount for clarity in the code
25388 - When the font is changed we need to recurse through all the
25389 nodes and invalidate their sizes
25391 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25393 * Application.cs: set the DialogResult to fixed when the main form is
25394 hidden or destroyed while being modal.
25396 2006-05-25 Miguel de Icaza <miguel@novell.com>
25398 * Theme.cs: Use Tangoified messagebox icons.
25400 (GetSizedResourceImage): Also cope with width = 0 and do not
25401 trigger a warning in that case (0 means "give me your icon from
25402 the resouce, no special size needed).
25404 2006-05-25 Peter Dennis Bartok <pbartok@novell.com>
25406 * Application.cs: Leave runloop if the the main modal form is
25407 hidden (fixes #78484)
25409 2006-05-25 Atsushi Enomoto <atsushi@ximian.com>
25411 * BindingContext.cs : reject null datasource in Contains() and
25413 * CurrencyManager.cs : check data_member validity when data_source
25414 is dataset. When it is late binding, the initial position is -1.
25416 2006-05-24 Jackson Harper <jackson@ximian.com>
25418 * TreeNodeCollection.cs: Dont't recalculate the visible order on
25419 inserted nodes that aren't visible. This changes the
25420 max_visible_order which confuses scrollbar settings.
25421 - Use the enumerator to get the prev node instead of duplicating
25423 * TreeView.cs: Use new method for setting scrollbar values
25424 - Don't set the bounds every time the scrollbar is updated
25425 - When updating below the root node use an invalidate instead of a
25426 refresh to prevent the child controls (scrollbars) from being
25427 refreshed. (UpdateBelow still needs to be reworked anyways).
25428 - Reenable SetBottom now that visible orders are set correctly,
25429 added some debug code incase we ever get bad values there again.
25430 - Set the scrollbar max to 2 less then the max value, this
25431 compensates for the max value being one above the node count, and
25432 for scrollbars adding one extra "notch".
25433 - When drawing image nodes if there is an imagelist we draw the
25434 first image in the list if the supplied image index is out of the
25435 image list's bounds.
25437 2006-05-24 Peter Dennis Bartok <pbartok@novell.com>
25439 * XplatUIX11.cs: Don't blindly cache hwnd.ClientRect, reset it when
25440 we receive a size change from the WM (Fixes #78503)
25442 2006-05-24 Peter Dennis Bartok <pbartok@novell.com>
25444 * XplatUIWin32.cs, XplatUIX11.cs: Refresh when setting the Clip
25445 rectangle (Fixes #78501)
25447 2006-05-24 Peter Dennis Bartok <pbartok@novell.com>
25450 - Fixed MouseUp, MouseDown and MouseMove to treat mouseevent.Button
25452 - Fixed MouseMove to no longer switch pressed state unless the left
25453 mouse button is pressed. Atsushi provided the original patch (#78485)
25455 2006-05-24 Jackson Harper <jackson@ximian.com>
25457 * ScrollBar.cs: New internal methods that allow us to change a
25458 couple values on the scrollbar (the most common case is maximum
25459 and large change) without getting multiple invalidates.
25461 2006-05-24 Chris Toshok <toshok@ximian.com>
25463 * DataGridBoolColumn.cs (Abort): revert back to the saved setting.
25464 (Edit): save off the original state in oldState, and set
25465 grid.is_editing to true.
25466 (OnKeyDown): abort editing if escape is pressed. also, call
25467 NextState if space is pressed.
25468 (OnMouseDown): call NextState.
25469 (NextState): factor out shared code from OnKeyDown and OnMouseDown
25470 here. Also, only invalidate the row header once (on the initial
25471 is_changing switch) to save on redraws.
25473 2006-05-24 Chris Toshok <toshok@ximian.com>
25475 * DataGridTextBoxColumn.cs (Commit): only call SetColumnValueAtRow
25476 if the value in the cell is different than it was before. This
25477 keeps us from triggering a layout when we move around a datarid
25478 with a highlighted cell.
25479 (Edit): suspend layout when creating/positining the text box, and
25480 resume passing false so we don't ever actually re-layout.
25481 (ReleaseHostedControl): same.
25482 (EnsureTextBox): reformat slightly, and set WordWrap to false.
25484 * DataGridTextBox.cs (ProcessKeyMessage): it's not true that all
25485 control-key sequences should go to the datagrid - remove that
25486 lock. Also, modify the conditions under which we move between
25487 cells when moving the cursor within a cell, and remove the "this"
25488 and "base" from field accesses. We weren't even consistent, given
25489 they all were in the base class.
25491 2006-05-24 Atsushi Enomoto <atsushi@ximian.com>
25493 * Binding.cs : (.ctor)
25494 An obvious NRE fix for BindingTest.CtorNullTest().
25496 2006-05-23 Chris Toshok <toshok@ximian.com>
25498 * TextBoxBase.cs (get_Text): don't add a trailing newline, add
25499 them between lines. This fixes some quirks editing cells in the
25502 2006-05-23 Jackson Harper <jackson@ximian.com>
25504 * TreeView.cs: Use begin/end update when doing expand/collapse all
25505 so that we don't get flicker on the scrollbar.
25507 2006-05-23 Jackson Harper <jackson@ximian.com>
25509 * TreeNode.cs: Bounds are computed 'on the fly' now. This allows
25510 treenode calculations to be independant of the painting code. To
25511 do this nodes track a visible order which is calculated by the
25513 - Call new methods for expanding/collapsing nodes. These methods
25514 use scrollwindow so we don't have to update everything below the
25516 * TreeView.cs: Refactored drawing and scrolling code. We don't
25517 need to update nodes when drawing anymore or calculate scrollbar
25519 - Added new methods for expanding/collapsing nodes. These methods
25520 use ScrollWindow so as to not have to redraw all the nodes below.
25521 * TreeNodeCollection.cs: Recalc visible order and scrollbars when
25522 we add/remove nodes or sort.
25523 - Handle removing the selected and the top node properly.
25525 2006-05-23 Chris Toshok <toshok@ximian.com>
25527 * DataGridTextBoxColumn.cs (Edit): set grid.is_editing to true.
25528 maybe this should actually happen in the datagrid code?
25529 (EndEdit): no need to invalidate anything, given that
25530 ReleaseHostedControl causes the datagrid to relayout, which
25531 invalidates everything anyway.
25533 * DataGrid.cs (set_CurrentCell): remove duplicate check (it's also
25534 in SetCurrentCell).
25535 (set_SelectionBackColor): call InvalidateSelection instead of
25537 (set_SelectionForeColor): same.
25538 (BeginEdit): Flesh this out a bit.
25539 (CancelEditing): only do any of this if we're editing/adding.
25541 (OnMouseDown): there's no need to cancel editing here, it's done
25543 (SetCurrentCell): only invalidate the current row header if it's a
25544 different row than the new one.
25545 (ShiftSelection): fix this to work like MS does.
25546 (ResetSelection): factor out the invalidation of selected_rows to
25547 InvalidateSelection.
25548 (SetDataSource): cancel any editing that's going on.
25550 * DataGridColumnStyle.cs
25551 (IDataGridColumnStyleEditingNotificationService.ColumnStartedEditing):
25552 call the non-interface version.
25554 * ThemeWin32Classic.cs (DataGridPaintColumsHdrs): intersect the
25555 header rectangle with the clip rectangle so we don't redraw the
25556 entire header for just a small area. Gets rid of the last flicker
25557 when horizontally scrolling.
25558 (DataGridPaintRow): same.
25560 2006-05-23 Mike Kestner <mkestner@novell.com>
25562 * ListViewItem.cs: remove size for line hack from LargeIcon layout.
25563 * ThemeWin32Classic.cs: don't draw line. it's really the top of a
25564 poorly placed checkbox on the MS control. Fixes Alex's unfiled
25565 Critical bug report.
25567 2006-05-23 Peter Dennis Bartok <pbartok@novell.com>
25569 * PictureBox.cs: Fixed broken ControlStyles. Unit test no longer fails,
25570 and this fixes #78493
25572 2006-05-23 Miguel de Icaza <miguel@novell.com>
25574 * Theme.cs (GetSizedResourceImage): Scale images if the proper
25577 * FileDialog.cs: Do not change the background for the side bar as
25578 it wont work nicely with the theme, and also reduces the artifacts
25579 in rendering the icons (which I want to fix too).
25581 * MimeIcon.cs (ResourceImageLoader): Load images from assembly
25582 resources, not resgen resources.
25584 (PlatformDefaultHandler): Pull images using the new API.
25586 2006-05-23 Peter Dennis Bartok <pbartok@novell.com>
25588 * Hwnd.cs (Dispose): Remove any pending exposures. XEventQueue holds
25589 a reference to the hwnd and will not remove it unless there are
25590 no pending exposures (fixes #78341)
25591 * XplatUI.cs: Improved debug
25593 2006-05-23 Atsushi Enomoto <atsushi@ximian.com>
25595 * MenuAPI.cs : don't handle OnClick event when it was not the left
25596 button. Fixed bug #78487.
25598 2006-05-23 Mike Kestner <mkestner@novell.com>
25600 * MenuAPI.cs: fix placement of submenus for multi-row menu bars, and
25601 prefer submenus to the top menu for item lookup, to avoid popping down
25604 2006-05-23 Alexander Olk <alex.olk@googlemail.com>
25606 * ThemeWin32Classic.cs: Rewrote CPCPDrawScrollButton to drop
25607 Graphics.FillRectangle as the visual results are really bad (even
25608 on win). We now draw perfect arrows (and perfect shadows when the
25609 scrollbar is disabled). Simplified CPDrawGrid. CPDrawGrid now uses
25610 Pen.DashPattern to draw the dots of each line.
25612 2006-05-22 Alexander Olk <alex.olk@googlemail.com>
25614 * FileDialog.cs: Update the filename combobox when navigating through
25615 the ListView with the cursor keys. Fixes part 7 of bug #78446.
25617 2006-05-22 Mike Kestner <mkestner@novell.com>
25619 * ListView.cs: raise SelectedIndexChanged on keyboard selection.
25622 2006-05-22 Mike Kestner <mkestner@novell.com>
25624 * ComboBox.cs: Refresh in EndUpdate to pick up all the dropped Paint
25625 requests. Fix a misspelled parameter and a copy paste exception error
25628 2006-05-22 Peter Dennis Bartok <pbartok@novell.com>
25630 * ThemeWin32Classic.cs: Changed DefaultFont emSize from 8.25 to 8
25631 to get the same width/height (5/13) on X11 as the default font has on
25632 win32. This means that our DefaultFont emSize is smaller than the
25633 the MS SWF equivalent (even thought the width/height stays the same)
25635 2006-05-20 Jackson Harper <jackson@ximian.com>
25638 * MdiWindowManager.cs:
25639 * InternalWindowManager.cs: Make sure to use the border width from
25642 2006-05-20 Jordi Mas i Hernandez <jordimash@gmail.com>
25644 * PrintDialog.cs: Implements printer details
25646 2006-05-19 Alexander Olk <alex.olk@googlemail.com>
25648 * FileDialog.cs: Added focus handling for PopupButtonPanel.
25649 Fixes part 1 and 2 of bug #78446
25651 2006-05-19 Peter Dennis Bartok <pbartok@novell.com>
25653 * XplatUIX11.cs (SetWindowPos): Recalculate client area size on resizes
25654 instead of sticking to the first ever calculated value
25656 2006-05-19 Mike Kestner <mkestner@novell.com>
25658 * ComboBox.cs: fix mouse motion selection to use MousePosition and
25659 PointToClient, since Capture is set. Fixes #78344.
25661 2006-05-19 Mike Kestner <mkestner@novell.com>
25663 * ListView.cs: match MS behavior in Details view where items are not
25664 drawn if Columns.Count == 0.
25665 * ThemeWin32Classic.cs: only highlight ListView selection if focused.
25666 Use a separate pen to draw the check, since changing the width affects
25667 the box as well. Fixes #78454.
25669 2006-05-18 Miguel de Icaza <miguel@novell.com>
25671 * ListView.cs: ArgumentOutOfRangeException, single versions of the
25672 exception should throw the name of the invalid argument.
25674 * FileDialog.cs (OnClickOpenSaveButton): Avoid crash in open if
25675 there are no files listed.
25677 2006-05-18 Jackson Harper <jackson@ximian.com>
25679 * ThemeWin32Classic.cs: Don't use endcaps, they mess the drawing
25682 2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
25684 * Control.cs: Brought back our old UpdateZOrder method as a private
25685 function and switched our calls from UpdateZOrder to the new one.
25686 This fixes the Paint.Net canvas disappearing bug.
25688 2006-05-18 Jackson Harper <jackson@ximian.com>
25691 * ThemeWin32Classic.cs:
25692 * InternalWindowManager.cs: Move the drawing into the theme,
25693 expose everything the theme should need from the window manager.
25695 2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
25697 * XplatUIX11.cs (DefWndProc): WM_SETCURSOR: Assign the return value
25698 from the call to NativeWindow to avoid walking up the parent chain
25699 further than needed (speeds up setting cursors and avoids setting
25700 the wrong cursor if a parent has another cursor defined)
25701 * Cursor.cs: When loading an icon as cursor, MS uses the center of
25702 the icon as hotspot, not what's contained as hotspot in the icon
25703 file. This fixes the perceived drawing offset seen with Paint.Net
25705 2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
25708 - Store the calculated rectangle in Hwnd object and use it when
25709 setting the client size
25710 - Force Toolwindows to always be type Dock, to ensure they're on top
25712 2006-05-18 Mike Kestner <mkestner@novell.com>
25714 * ComboBox.cs: first pass at ComboBox rework. Layout is more
25715 consistent with MS positioning. IntegralHeight, ItemHeight, Sizing.
25716 Correctly initialize textcontrol and ListBox on DropDownStyle changes.
25717 Substantial refactoring to remove confusing nested classes. Coding
25718 standard and Get+Set->property refactorings. Shift to index based
25719 highlighting in ComboListBox instead of constantly using IndexOf and
25720 Items[]. Add invalidations on resize for DropDownList to fix ugliness
25721 in FileDialog growth. Draw borders manually since Simple mode needs
25722 to look like two independent controls. Make listbox border
25723 conditional to DropDownStyle. Improved OwnerDraw support.
25725 2006-05-18 Sebastien Pouliot <sebastien@ximian.com>
25727 * PaintEventArgs.cs: For 2.0, check for a null Graphics in the .ctor.
25728 Don't set the disposed graphics to null, so we can throw the "right"
25729 exception if the graphics is reused later (added a flag to avoid
25730 double disposing). Some behaviours are different under 2.0 and are
25731 filled under bug #78448.
25733 2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
25735 * Control.cs: When double-buffering is enabled, we need to reset
25736 our graphics context between paint calls. Otherwise, any
25737 transformations and other alterations on the context will
25738 become cumulative (#77734)
25740 2006-05-18 Mike Kestner <mkestner@novell.com>
25742 * ListView.cs: do focused item selection like MS on clicks.
25743 Rework focus handling for ItemControl so LostFocus invalidates as
25745 * ThemeWin32Classic.cs: only draw focus rectangle for ListViewItems if
25746 the ListView ItemControl has focus.
25748 2006-05-17 Peter Dennis Bartok <pbartok@novell.com>
25750 * XplatUIX11.cs: If client_window ends up being width or height zero
25751 due to border settings, move it off window inside whole_window (#78433)
25753 2006-05-17 Alexander Olk <alex.olk@googlemail.com>
25755 * Mime.cs: Shrink the mime file cache correctly.
25757 2006-05-17 Alexander Olk <alex.olk@googlemail.com>
25759 * ThemeWin32Classic.cs: Readded button focus drawing code. (#78429)
25761 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
25763 * XplatUIX11.cs (AddExpose): More sanity checks
25765 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
25768 - AddExpose: Don't add expose ranges outside the size of our
25770 - Cast opacity values to Int32 to avoid crashes with certain
25772 - Added disabled code paths that protect against illegal cross-
25773 thread painting (Developers.exe)
25775 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
25777 * ProgressBar.cs: Invalidate the control when it's resized
25778 since block size is based on control size. (#78388)
25780 2006-05-16 Miguel de Icaza <miguel@novell.com>
25782 * DataGrid.cs (SetDataBinding): per the discussion on irc, instead
25783 of setting the incoming argument to the "reset" value, we set the
25784 this.datamember to string.empty (before we were invalidating the
25789 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
25791 * Form.cs: Only apply transparency settings after the form
25792 is created. (Fixes #77800)
25794 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
25796 * ApplicationContext.cs: Grab the HandleDestroyed event so
25797 we know when to fire OnMainFormClosed
25799 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
25801 * Application.cs: Introduced sub-class to allow tracking of
25802 threads and centralized triggering of the event mess for
25803 ThreadExit, AppExit, etc.. (#76156)
25805 2006-05-16 Alexander Olk <alex.olk@googlemail.com>
25808 - Do not return a null icon index value for a mime subclass.
25809 Instead try the main mime type class too.
25810 - Seems that some newer distributions don't have a link to some
25811 gnome default icons anymore. So check the default gnome dir too.
25814 2006-05-16 Jackson Harper <jackson@ximian.com>
25816 * MdiClient.cs: Don't paint the parent background image if we have
25817 our own background image.
25819 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
25822 - PerformLayout: Do not shrink space filled by DockStyle.Fill
25823 controls, all filled controls are supposed to overlap (#78080)
25824 - UpdateZOrder is supposed to update the control's z-order in the
25825 parent's z-order chain. Fixed to behave like that
25826 - BringToFront: Removed obsolete code
25827 - SendToBack: Simplyfied
25828 - SetChildIndex: Trigger layout calculations when Z-order changes
25829 since layout is done by z-order
25831 2006-05-16 Chris Toshok <toshok@ximian.com>
25833 [ fixes bug #78410 ]
25834 * DataGrid.cs (set_AlternatingBackColor): use
25835 grid_drawing.InvalidateCells instead of Refresh().
25836 (set_BackColor): call grid_drawing.InvalidateCells.
25837 (set_BackgroundColor): use Invalidate instead of Refresh.
25839 * DataGridDrawingLogic.cs (InvalidateCells): new function, just
25840 invalidate the cell area.
25842 2006-05-15 Chris Toshok <toshok@ximian.com>
25844 [ fixes bug #78011 ]
25845 * ThemeWin32Classic.cs (DataGridPaintRows): pass the clip argument
25846 on to DataGridPaintRow.
25847 (DataGridPaintRow): take a clip argument, and only draw the cells
25848 which intersect it. same with the not_usedarea.
25850 * Theme.cs (DataGridPaintRow) add @clip parameter.
25852 * DataGrid.cs (ScrollToColumnInPixels): simplify, use
25853 XplatUI.ScrollWindow.
25854 (ScrollToRow): same.
25856 * DataGridDrawingLogic.cs (UpdateVisibleColumn): fix corner case
25857 with last column which was causing a gray swath to appear with the
25858 XplatUI.ScrollWindow code.
25860 2006-05-15 Chris Toshok <toshok@ximian.com>
25862 * ListBox.cs (HorizontalScrollEvent): in the non-multicolumn case,
25863 use XplatUI.ScrollWindow.
25864 (VerticalScrollEvent): use XplatUI.ScrollWindow.
25866 2006-05-15 Peter Dennis Bartok <pbartok@novell.com>
25868 * TextBoxBase.cs: Added handling of middle-button paste for X11. (#78375)
25870 2006-05-15 Peter Dennis Bartok <pbartok@novell.com>
25872 * Cursors.cs: For X11, read NWSE and NESW cursors from our resource
25873 file since there are no equivalent X11 cursors
25875 2006-05-15 Atsushi Enomoto <atsushi@ximian.com>
25877 * MonthCalendar.cs : DateTimePicker should reflect selected date
25878 on mouse*up*, not mouse*down*. Fixed originally reported part of
25881 2006-05-15 Atsushi Enomoto <atsushi@ximian.com>
25883 * TabControl.cs : When argument index is equal or more than tab
25884 count, just ignore. Fixed bug #78395.
25886 2006-05-15 Peter Dennis Bartok <pbartok@novell.com>
25888 * Control.cs: Dispose all child controls when control is diposed (#78394)
25890 2006-05-14 Alexander Olk <alex.olk@googlemail.com>
25892 * ColorDialog.cs: Finally it is possible to select the color with
25895 2006-05-14 Alexander Olk <alex.olk@googlemail.com>
25897 * PrintDialog.cs: Fix typo
25899 2006-05-14 Alexander Olk <alex.olk@googlemail.com>
25901 * PrintDialog.cs: PrintDialog is not resizable
25902 * ThemeWin32Classic.cs: Draw non links in LinkLabel with the correct
25903 color. Made some ToolBar drawing methods protected virtual.
25905 2006-05-13 Jordi Mas i Hernandez <jordimash@gmail.com>
25907 * PrintDialog.cs: Implementation of the PrintDialog
25909 2006-05-12 Chris Toshok <toshok@ximian.com>
25911 * ScrollBar.cs (set_Value): don't use Dirty/Invalidate to move the
25912 thumb, instead use MoveThumb. This has the side effect of making
25913 most of the other thumb moving machinery use MoveThumb as well.
25914 (OnHandleCreated): pass false for @dirty to UpdateThumbPos, as we
25915 need to actually invalidate the rectangle where the new thumb will
25917 (MoveThumb): use XplatUI.ScrollWindow to move the thumb around.
25918 We force an Update() after, so it's not as fast as it could be,
25919 but at least there's zero flicker and no droppings.
25920 (OnMouseMoveSB): in the thumb dragging case, use MoveThumb.
25921 (UpdateThumbPos): add another argument (dirty), which says whether
25922 or not to calculate/add dirty regions which we later invalidate.
25923 For cases where we know we're going to use MoveThumb, we pass
25924 false for this. Otherwise, pass true.
25926 2006-05-12 Jackson Harper <jackson@ximian.com>
25928 * ThemeWin32Class.cs: Fixes for alignment and icon rendering in
25931 2006-05-12 Peter Dennis Bartok <pbartok@novell.com>
25933 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new SetClipRegion
25934 and GetClipRegion methods and UserClipWontExposeParent property.
25935 * XplatUIWin32.cs: Implemented SetClipRegion/GetClipRegion methods,
25936 overriding UserClipWontExposeParent property, setting to false, since
25937 Win32 handles the required expose messages to draw our clipped parent
25939 * XplatUIX11.cs: Implemented SetClipRegion and GetClipRegion; updated
25940 PaintEventStart to set the user clip region if set.
25942 - Now internally tracking the Region for the control since we need to
25943 store it if the handle is not yet created and only set it when it
25944 becomes created. Before setting the region forced handle creation
25945 - Added code to draw the parents underneath a user-clipped region
25946 * Hwnd.cs: Added UserClip property
25948 2006-05-12 Chris Toshok <toshok@ximian.com>
25950 * ScrollBar.cs (set_LargeChange): Refresh() -> InvalidateDirty()
25951 (set_Maximum): same.
25952 (set_Minimum): same.
25953 (set_SmallChange): same.
25954 (OnMouseUpSB): remove the call to refresh when releasing the
25955 thumb. We shouldn't need it.
25957 2006-05-12 Miguel de Icaza <miguel@novell.com>
25959 * StatusBar.cs (UpdatePanel): If the panel being refreshes has the
25960 AutoSize set to None, we do not need to relayout everything, we
25961 just need to invalidate the current region.
25963 (Draw): Do not draw the entire ClientArea, just redraw the
25964 clip area being passed.
25966 * MdiClient.cs: Make MdiClient constructor with the Form argument
25969 2006-05-12 Jackson Harper <jackson@ximian.com>
25971 * ThemeWin32Classic.cs (DrawToolBar): Flat toolbars get their
25972 parents background image, but strangely not their own.
25973 - (DrawStatusBarPanel): Take into account horizontal alignment
25974 when drawing the strings and icons.
25976 2006-05-12 Mike Kestner <mkestner@novell.com>
25978 * ListBox.cs: avoid invalidations for focus when the collection is
25981 2006-05-12 Chris Toshok <toshok@ximian.com>
25983 * ScrollBar.cs (OnMouseMoveSB): when dragging the thumb, don't
25984 invalidate the entire thumb area. Call InvalidateDirty which
25985 limits the redraw to the thumb itself and surrounding pixels.
25987 * XplatUIX11.cs (ScrollWindow): optimize copying.
25989 2006-05-12 Chris Toshok <toshok@ximian.com>
25991 * DataGridDrawingLogic.cs: make CalcGridAreas non-reentrant.
25992 Figure out the positioning/layout in a single pass instead of
25993 multiple recursive invocations. Speeds up the initial display of
25994 the data grid. Also, make many things private that were
25995 originally public but unused outside this class.
25997 2006-05-11 Jackson Harper <jackson@ximian.com>
25999 * MdiClient.cs: Improved layout code.
26001 2006-05-11 Jonathan Chambers <jonathan.chambers@ansys.com>
26003 * PropertyGrid.cs : Only check GetPropertiesSupported for properties,
26004 not SelectedObject.
26006 2006-05-11 Chris Toshok <toshok@ximian.com>
26008 * Hwnd.cs (Invalid): don't start off with Rectangle.Empty, as
26009 union of that will always be {0,0,width,height}.
26011 2006-05-11 Jackson Harper <jackson@ximian.com>
26013 * Form.cs: Match MS's DefaultSize for forms (they must have
26014 changed the size in sp2).
26016 2006-05-11 Atsushi Enomoto <atsushi@ximian.com>
26018 * TextBoxBase.cs : implement CTRL+A (select all). Fixed bug #78368.
26020 2006-05-11 Atsushi Enomoto <atsushi@ximian.com>
26022 * TextControl.cs : Fixed bug #78109. This incorrect position
26023 comparison caused crash on automatic line split.
26024 * TextBoxBase.cs : reduce duplicate code.
26026 2006-05-10 Jackson Harper <jackson@ximian.com>
26028 * MdiClient.cs: Active form is only sent to the back when using
26029 the Next form functionality, when a form is clicked the current
26030 active shouldn't be sent to the back.
26031 - Layout the mdi windows when the container is first made visible.
26032 * Form.cs: Give the MdiClient a ref to the containing form when we
26035 2006-05-10 Atsushi Enomoto <atsushi@ximian.com>
26037 * LinkLabel.cs : link_font could be uninitialized, so populate one
26038 before actual use. Fixed bug #78340.
26040 2006-05-10 Atsushi Enomoto <atsushi@ximian.com>
26042 * XplatUIX11.cs : clipboard format native value is IntPtr.
26045 2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
26048 - Instead of showing context menus directly we send WM_CONTEXTMENU,
26049 which is passed up the parent chain by DefWndProc
26050 - We now handle WM_CONTEXTMENU to display any menu, or pass it
26051 to DefWndProc (#77956)
26052 * XplatUIX11.cs: Added handling of WM_CONTEXTMENU (pass up) to DefWndProc
26054 2006-05-10 Jackson Harper <jackson@ximian.com>
26056 * MdiClient.cs: We need to remove the controls from the mdi
26057 collection, when we close the window.
26058 * MdiWindowManager.cs: Special handling of closing mdi windows.
26059 * InternalWindowManager.cs: Make the close method virtual so the
26060 mdi window manager can handle it specially.
26062 2006-05-10 Jordi Mas i Hernandez <jordimash@gmail.com>
26065 - Recalculate grid when the data source has changed
26066 - Matches styles provided by user from all data sources types
26067 * DataGridTableStyle.cs: For columns that provided by the user set the
26068 with the preferred value is there was unassigned.
26069 * CurrencyManager.cs: throw OnItemChanged event
26071 2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
26073 * PictureBox.cs: Don't animate until handle is created. Start animation
26074 when handle is created.
26076 2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
26078 * XplatUIX11.cs, Hwnd.cs: Adopted Mike's patch from #77979 to match
26080 * XEventQueue.cs: We don't need to provide the extra info
26082 2006-05-10 Jackson Harper <jackson@ximian.com>
26084 * MdiClient.cs: If the mdi clients parent form has a background
26085 image set, we draw that background image for the mdi area's
26088 2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
26090 * TextBoxBase.cs: Set IBeam cursor (#78347)
26092 2006-05-10 Mike Kestner <mkestner@novell.com>
26094 * ToolBar.cs: fix some text padding issues with ButtonSize
26095 calculation. Update the default size to match MS documentation.
26096 * ToolBarButton.cs: use ToolBar.ButtonSize for layout of unspecified
26097 button size. Fixes #78296.
26099 2006-05-10 Mike Kestner <mkestner@novell.com>
26101 * ListBox.cs: use is_visible for scrollbar positioning in case the
26102 control isn't on screen yet. Fix off by one with Right vs Width
26103 usage. Update Scrollbars in SetBoundsCore. Fixes #78188 and #78258.
26105 2006-05-10 Jackson Harper <jackson@ximian.com>
26107 * X11Dnd.cs: Drop to a control with another control on top of it.
26108 * ToolBar.cs: Work on a copy of the buttons list, so that it can
26109 be modified in click handlers. TODO: Look for similar problems in
26112 2006-05-09 Jackson Harper <jackson@ximian.com>
26114 * Form.cs: Window managers need the old window state when setting
26116 * InternalWindowManager.cs: Allow the base mdi window manager to
26117 handle more of the MDI only stuff (like maximize buttons).
26118 * MdiWindowManager.cs: Fix some snafus in changing the window
26119 state. Add all the menu functionality, for both popup and
26121 * MdiClient.cs: When a new form is selected the currently
26122 activated form is sent to the back, this matches MS.
26123 - Implement a new method to activate the next mdi child window.
26125 2006-05-08 Peter Dennis Bartok <pbartok@novell.com>
26128 - Added new InternalCapture method to allow controls to prevent
26129 the capture behaviour on the click handlers
26130 - Switched to use InternalCapture
26132 - Using InternalCapture to prevent mouse captures from being released
26133 on mouse button release (Fixes #78100)
26134 * XplatUIX11.cs (DeriveStyles): Now checks caption state and only
26135 returns Form borders if a caption is present. (Fixes #78310)
26137 2006-05-08 Peter Dennis Bartok <pbartok@novell.com>
26139 * TreeNode.cs: Changed serialization .ctor to not require every field
26140 to be present. (#78265)
26141 * OwnerDrawPropertyBag.cs: Added serialization .ctor
26143 2006-05-05 Alexander Olk <alex.olk@googlemail.com>
26145 * MimeIcon.cs: for is faster than foreach for strings.
26147 2006-05-05 Mike Kestner <mkestner@novell.com>
26149 * CheckedListBox.cs: update check handling code to not use selected.
26150 * ListBox.cs: rewrite of mouse selection handling to correspond to MS
26151 behavior for visual feedback, motion response, shift/ctrl handling,
26152 and properly deal with all 4 selection modes. Updates to bounds
26153 handling logic. Add scroll wheel support. [Fixes #77842]
26155 2006-05-05 Peter Dennis Bartok <pbartok@novell.com>
26158 - Moved adding of Implicit controls into .ctor. That way, subsequent
26159 creation of the controls will not cause them to think they are
26160 toplevel windows (fixes #78200 header problem)
26161 - Added 2.0 ShowGroups and UseCompatibleStateImageBehaviour
26162 - Switched visibility setting of header control to use internal field
26163 to avoid triggering handle creation
26164 - Now checking if handle is created before causing a refresh when items
26165 are added (This makes us now match handle creation time with MS)
26166 * Splitter.cs: Removed loading of private splitter cursor, switched to
26167 Cursors version now that that is loading the right ones
26168 * Cursors.cs: Load proper splitter cursors from resources
26169 * Cursor.cs: Added second method of loading resource cursors for the
26170 VS.Net users amongst us
26172 2006-05-05 Mike Kestner <mkestner@novell.com>
26174 * ListView.cs: give header_control a minimum size based on the
26177 2006-05-05 Peter Dennis Bartok <pbartok@novell.com>
26179 * XplatUIX11.cs: WS_EX_TOPMOST requires window to be on top. A dock
26180 window seems to do that with metacity, so set that type. (#78120)
26182 2006-05-05 Mike Kestner <mkestner@novell.com>
26184 * ListViewItem.cs: fix Details mode checkbox layout bug.
26185 * ThemeWin32Classic.cs: draw a ListView column header for unused space
26186 at the end of the header, if it exists. [Fixes for #78200]
26188 2006-05-04 Jackson Harper <jackson@ximian.com>
26190 * MdiClient.cs: Add a helper property to get the container form.
26191 * MdiWindowManager.cs: We have to make sure to use the menu origin
26192 when drawing the icons and buttons, this fixes maximized window
26193 icons/buttons on win32.
26194 * InternalWindowManager.cs: Reset the restore captions when a
26195 window goes from Maximized to Minimized and vice versa. Move the
26196 DrawMaximizedButtons into the MdiWindowManager source, tool
26197 windows can't be maximized. NOTE: This could use a little
26198 refactoring if time ever permits.
26200 2006-05-03 Jonathan Chambers <jonathan.chambers@ansys.com>
26202 * TextBox.cs: Add MWFCategoryAttributes
26203 * TextBoxBase.cs: Add MWFCategoryAttributes
26204 * Form.cs: Add MWFCategoryAttributes
26206 2006-05-03 Jonathan Chambers <jonathan.chambers@ansys.com>
26208 * Control.cs: Add MWFCategoryAttributes
26209 * ScrollableControl.cs: Add MWFCategoryAttributes
26211 2006-05-03 Alexander Olk <alex.olk@googlemail.com>
26213 * ThemeWin32Classic.cs: Draw the ToolBar top border only if
26214 Divider is true. Fix a little glitch in PropertyToolBar
26217 2006-05-02 Peter Dennis Bartok <pbartok@novell.com>
26220 - Dispose: Call base.Dispose, this causes the disposed event
26221 to be fired (and probably other, more important stuff)
26222 - SetVisibleCore: Set is_visible to true after creating the
26223 window so that the window still gets created invisible (if
26224 WM_VISIBLE isn't set). That will cause the ShowWindow afterwards
26225 to generate a WM_ACTIVE message
26226 * Form.cs: Call Dispose when we want to destroy the window, instead of
26227 just destroying the handle (Dispose will do that for us)
26229 - RootWindow also needs a queue, so we can properly process the
26230 property change events from RootWindow (like Activate)
26231 - Generatic synthetic WM_ACTIVE message when the active window is
26234 2006-05-01 Peter Dennis Bartok <pbartok@novell.com>
26236 * LinkLabel.cs: Trigger a recalc of our label dimensions when
26239 2006-05-01 Peter Dennis Bartok <pbartok@novell.com>
26241 * ThemeWin32Classic.cs (ButtonBase_DrawImage): Use the proper image
26242 for determining width and height (image might not be assigned if
26243 we're drawing an imagelist)
26245 2006-05-01 Peter Dennis Bartok <pbartok@novell.com>
26247 * XplatUI.cs, XplatUIDriver.cs: Added MenuHeight property
26248 * XplatUIWin32.cs: Overriding new MenuHeight property, retrieving
26250 * Theme.cs: No longer returns hardcoded menu height, instead calls
26252 * Form.cs (OnLoad): Scaling happens before triggering Load events
26255 2006-05-01 Mike Kestner <mkestner@novell.com>
26257 * MenuItem.cs: fix NRE for text == null. Fixes #78250.
26259 2006-04-30 Peter Dennis Bartok <pbartok@novell.com>
26261 * TextBoxBase.cs: Removed Fixme
26262 * RichTextBox.cs (set_RTF): Invalidate document after update (#78247)
26264 2006-04-30 Peter Dennis Bartok <pbartok@novell.com>
26267 - ScrollWindow: We were passing hwnd.ClientRectangle which returns
26268 the rectangle relative to the parent, considering borders. We
26269 don't really want that.
26270 - ScrollWindow: Fixed warning to be more understandable
26271 * TextBoxBase.cs: Fixed ScrollWindow calculations to consider our
26272 scrollbars and scroll only the visible area
26273 * RichTextBox.cs: Removed debug output
26275 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
26277 * NumericUpDown.cs (Text): Just use base
26278 * UpDownBase.cs: Ensure txtView is created before using it
26280 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
26282 * XplatUIX11.cs (SetWindowTransparency): Casting opacity to int before
26283 casting to IntPtr to avoid 64bit overflow errors
26285 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
26288 - AllowDrop: Don't force handle creation.
26289 - CreateHandle: Added call to tell driver if we're allowed to drop
26291 2006-04-27 Alexander Olk <alex.olk@googlemail.com>
26293 * FileDialog.cs: Remember the last directory not only for the
26294 current instance but also for new FileDialog instances.
26296 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
26298 * XplatUIX11.cs: Forgot to set the queue on the foster parent. That
26299 broke sending async messages
26301 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
26304 - ScrollWindow: Fixed method. We finally generate expose events again
26305 for scrolled areas. This was causing 'garbage' when scrolling
26306 textbox and other controls that used ScrollWindow
26307 - Switched from using the regular queue for paint events to the MS
26308 model of 'generating' paint events when the queue is empty.
26309 We use the new XQueueEvent.Paint subclass to store which windows
26311 - AddExpose now takes the x/y/width/height of the exposed area
26312 and inserts the window into the paint queue if not already there
26313 - InvalidateWholeWindow: Switched to use new AddExpose method
26314 - UpdateMessageQueue: Added which queue to monitor for paint events
26315 - DefWndProc: Added default handler for WM_PAINT and WM_NCPAINT in
26316 the unlikely case nothing above handles it. We reset the expose
26317 pending states to get them off the queue.
26318 - GetMessage: Now pulls a paint event if no other events are in the
26320 - Invalidate: Switched to new AddExpose method
26321 - PeekMessage: Updated to understand pending paint events
26322 - UpdateWindow: Fixed logic bug. We were only updating if the window
26323 didn't need updating. Also switched to sending WM_PAINT directly,
26325 * XEventQueue.cs: Added Paint queue support. Allows enqueue/dequeue
26326 and random access Remove(). The random access is needed to handle
26327 UpdateWindow() where a WM_PAINT is sent directly without accessing
26329 * ScrollBar.cs: Added Update() calls to cause immediate updates to
26330 allow for better feedback when scrolling. Scrollbars are small and
26331 the immediate update should make it 'feel' more responsive without
26332 slowing things down. ScrollBar still needs it's invaliate logic
26333 updated to not always invalidate the whole bar on certain changes.
26335 2006-04-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
26338 (BackColor): if the control does not support a transparent background,
26339 return the default backcolor when the parent backcolor is transparent.
26341 2006-04-28 Peter Dennis Bartok <pbartok@novell.com>
26343 * Application.cs: Updated to new StartLoop/GetMessage API
26344 * RichTextBox.cs: Provide some output on RTF parsing errors
26345 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs: Added
26346 new queue_id argument to GetMessage and PeekMessage to allow faster
26347 handling of per-thread queues in drivers.
26348 * Hwnd.cs: Added Queue tracking and property
26349 * MenuAPI.cs: Updated to new StartLoop/GetMessage API
26350 * XEventQueue.cs: Added thread trackingA
26351 * PropertyGridView.cs: Updated to new StartLoop/GetMessage API
26353 - Implemented new per-thread queue
26354 - GetMessage: Fixed return/break behaviour on several cases. We were
26355 returning stale messages in some cases, instead of just processing
26358 2006-04-27 Jonathan Chambers <jonathan.chambers@ansys.com>
26360 * PropertyGrid.cs: Call GetPropertiesSupported on TypeConverter.
26362 2006-04-27 Peter Dennis Bartok <pbartok@novell.com>
26364 * ThemeWin32Classic.cs (DrawToolBar): Refactored, simplified the logic,
26365 fixed off-by-one comparisons between Width/Height and Right/Bottom.
26367 2006-04-27 Jonathan Chambers <jonathan.chambers@ansys.com>
26369 * PropertyGridView.cs: Fix drop down width.
26371 2006-04-27 Alexander Olk <alex.olk@googlemail.com>
26373 * ThemeWin32Classic.cs: Peter thinks that three additional lines are
26374 a mess in DrawToolBar, so I removed one of them.
26376 2006-04-27 Alexander Olk <alex.olk@googlemail.com>
26378 * ThemeWin32Classic.cs: Draw the ToolBar border lines only if
26379 needed (clip). Otherwise we get artifacts.
26381 2006-04-26 Peter Dennis Bartok <pbartok@novell.com>
26383 * FixedSizeTextBox.cs: Added constructor to allow specifying which
26385 * UpDownBase.cs: Set the spinner control to be fixed height vertical,
26386 and switched FixedSizeTextBox to only be fixed vertical (#78116)
26387 * Form.cs: Not applying the 'MS 0.08 fudge factor' for a given dimension
26388 if it matches the scale base font (avoids unneeded scaling)
26390 2006-04-26 Alexander Olk <alex.olk@googlemail.com>
26392 * X11DesktopColors.cs: One gtk_init_check should be enough
26394 2006-04-26 Peter Dennis Bartok <pbartok@novell.com>
26396 * TextBoxBase.cs: Moved Backspace handling into WM_CHAR block to
26399 2006-04-26 Peter Dennis Bartok <pbartok@novell.com>
26402 - Generate OnTextChanged for Backspace even if we're only deleting
26403 the current selection
26404 - When setting the Text property, only select all text if the
26405 control does not have focus when it is being set. Otherwise
26406 just place the cursor at the beginning of the control
26408 2006-04-26 Alexander Olk <alex.olk@googlemail.com>
26410 * ThemeWin32Classic.cs: ToolBars get drawn with two lines at the top.
26411 Added a little helper to draw PropertyGrid ToolBar with a different
26412 border and a different BackColor.
26413 * PropertyGrid.cs: Some background parts didn't get painted with the
26414 correct background color. Added a class that helps us to draw the
26415 correct border for PropertyGridView and a class that helps us to
26416 draw ToolBars with a different backcolor
26417 * PropertyGridView.cs: Draw PlusMinus with the correct colors.
26419 2006-04-25 Jonathan Chambers <jonathan.chambers@ansys.com>
26421 * PropertyGrid.cs: Bug 78196, font size, and splitter location.
26422 * PropertyGridView.cs: Bug 78196, font size, and splitter location.
26424 2006-04-25 Peter Dennis Bartok <pbartok@novell.com>
26426 * XplatUIWin32.cs (DIBtoImage): ORing instead of ANDing the alpha
26427 into the palette entries. Also, since we're working on a copy
26428 we needed to copy the palette back onto the bitmap.
26429 * Cursor.cs: Same fix as XplatUIWin32.cs.
26431 2006-04-25 Peter Dennis Bartok <pbartok@novell.com>
26433 * ImageListStreamer.cs: Need to read the var (or we're off)
26435 2006-04-25 Peter Dennis Bartok <pbartok@novell.com>
26437 * TextControl.cs, ComboBox.cs, CommonDialog.cs, Theme.cs,
26438 XplatUIWin32.cs, RichTextBox.cs, ImageListStreamer.cs,
26439 TextBoxBase.cs: Unused var fixes
26440 * AxHost.cs: Small 2.0 fix
26441 * XplatUIX11.cs: Switched to IntPtr from int for XA_CARDINAL atoms
26442 as it seems that is what at least Metacity expects. This will make
26443 icons show up on 64bit platforms. We still have some 64bit size
26444 issues, though, since the startup app window size still won't match.
26446 2006-04-25 Mike Kestner <mkestner@novell.com>
26448 * *.cs: cleanup newly reported exception var unused warnings.
26450 2006-04-25 Alexander Olk <alex.olk@googlemail.com>
26452 * ThemeWin32Classic.cs: Button image alignment now matches exactly
26455 2006-04-25 Alexander Olk <alex.olk@googlemail.com>
26457 * ThemeWin32Classic.cs: Fixed drawing code for buttons with an
26458 image. The image position is always the same, no matter if the
26459 button is pressed or not.
26461 2006-04-25 Alexander Olk <alex.olk@googlemail.com>
26463 * FileDialog.cs: SaveFileDialog shouldn't rely on a MWFFileView
26464 selection and set the correct filename for SaveFileDialog.
26465 Patch by Emery Conrad.
26467 2006-04-24 Mike Kestner <mkestner@novell.com>
26469 * ListView.cs (LastVisibleIndex): when in List mode of Alignment.Left,
26470 check for item.X outside the ClientRect instead of item.Y. Fixes
26473 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
26475 * ImageListStreamer.cs: some images store a wrong grow factor, so don't
26476 trust that value blindly and do some sanity check. Fixes bug #77814.
26478 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
26480 * ImageListStreamer.cs: save the mask as a 1bpp image.
26482 2006-04-21 Mike Kestner <mkestner@novell.com>
26484 * CheckedListBox.cs: maintain CheckStatus here. Use DrawItemState to
26485 pass Checked and Indeterminate to the Theme Engine. Improve
26486 encapsulation with ListBox.
26487 * ListBox.cs: Keep a StringFormat instead of calculating it every item
26488 draw. Kill ListBoxItem. Refactor away the ListBoxInfo and ListBoxItem
26489 nested types. Move all CheckState functionality to CheckedListBox.
26490 Make IntegralHeight work like MS. Rewrite of Layout engine. Fix
26491 OwnerDrawVariable layout/rendering. Fix multicolumn rendering. Fix
26492 ScrollAlwaysVisible handling. Refactor "selected" collections to use a
26493 single base list. Fix scrollbar sizing and placement to mirror MS.
26494 * Theme.cs: remove CheckedListBoxCheckRectangle. It wasn't really
26496 * ThemeWin32Classic.cs: implement Indeterminate CheckState rendering
26497 for CheckedListBox by using new DrawItemState info. Center the
26498 checkboxes on the items. Use new StringFormat property.
26500 2006-04-18 Jackson Harper <jackson@ximian.com>
26502 * Form.cs: MdiChildren don't do default locations the same way as
26503 regular forms. This prevents a crash when trying to position the
26506 2006-04-17 Jonathan Chambers <jonathan.chambers@ansys.com>
26508 * PropertyGridTextBox.cs: Formatting, copyright
26509 * PropertiesTab.cs: Formatting
26510 * PropertyGrid.cs: Formatting
26511 * PropertyGridView.cs: Formatting, fix drop down, enabled double
26512 click toggling of values
26514 2006-04-17 Peter Dennis Bartok <pbartok@novell.com>
26516 * KeyPressEventArgs: Added 2.0 only setter for KeyChar
26517 * Control.cs (.ctor): verify_thread_handle is static, don't reset
26518 every time a control is created
26519 * Application.cs: Removed obsolete EnableRTLMirroring method
26521 2006-04-18 Gert Driesen <drieseng@users.sourceforge.net>
26523 * TabControl.cs: Avoid ArgumentOutOfRangeException when setting
26524 SelectedIndex to -1. Fixes bug #78121.
26526 2006-04-17 Jackson Harper <jackson@ximian.com>
26528 * Binding.cs: Handle null values for Current and BindingContext.
26529 This occurs when binding is a little delayed.
26530 * CurrencyManager.cs: return null for Current when there are no
26532 - Hookup to the listchanged event on the DataView and update
26533 bindings when the list is changed. This fixes late binding of
26536 2006-04-17 Jackson Harper <jackson@ximian.com>
26539 * XplatUIX11.cs: Drops should not create a mousedown. Patch by Tim
26542 2006-04-15 Alexander Olk <alex.olk@googlemail.com>
26544 * ThemeWin32Classic.cs: Draw disabled combo button in the correct
26546 * ComboBox.cs: If the combobox is disabled call CPDrawComboButton
26547 with the correct ButtonState
26549 2006-04-14 Peter Dennis Bartok <pbartok@novell.com>
26551 * XplatUIX11.cs: Improved distinguishing between window types to
26552 tell the WM a type closer to what the app wants (Fixes #78107)
26554 2006-04-14 Alexander Olk <alex.olk@googlemail.com>
26556 * ThemeWin32Classic.cs: Fixed drawing of ContainerGrabHandle and
26559 2006-04-14 Alexander Olk <alex.olk@googlemail.com>
26561 * ThemeWin32Classic.cs: Fixed size grip drawing and updated StatusBar
26562 drawing code to reflect the size grip changes
26564 2006-04-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
26566 * ImageListStreamer.cs: fix handling of the mask that follows the main
26567 bitmap when deserializing and serialize it properly. The generated mask
26568 should better be a 1bpp image, but I'll do that later.
26570 2006-04-13 Alexander Olk <alex.olk@googlemail.com>
26572 * FileDialog.cs: Show something in the DirComboBox on *nix if the
26573 path doesn't fit into some of our Current.Places
26575 2006-04-13 Jackson Harper <jackson@ximian.com>
26577 * ComboBox.cs: Use borders instead of drawing our own decorations,
26578 try to obey correct rules for heights.
26581 * ThemeClearLooks.cs:
26582 * ThemeWin32Classic.cs: Remove combobox decoration drawing code,
26583 this is now handled by borders.
26584 - Remove unused DrawListBoxDecorationSize method.
26586 2006-04-13 Mike Kestner <mkestner@novell.com>
26588 * MenuAPI.cs: null guarding for the disbled click check fixes crash
26591 2006-04-13 Alexander Olk <alex.olk@googlemail.com>
26593 * ThemeWin32Classic.cs:
26594 - Fixed CPDrawStringDisabled
26595 - Corrected drawing of disabled menu items
26596 - Fixed drawing of disabled radio buttons (bug #78095)
26597 - Draw check in a disabled CheckBox with color ControlDark
26599 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
26601 * Form.cs: Use the provided width when calculating the menu size;
26602 when being maximized we get WM_NCCALCSIZE before WM_WINDOWPOSCHANGED
26603 and ClientSize.Width won't be updated yet
26604 * Application.cs: Use Visible instead of Show() to make form visible,
26605 this way we create the handle later and menusize is considered
26607 2006-04-12 Mike Kestner <mkestner@novell.com>
26609 * MenuAPI.cs: ignore clicks on disabled menu items. Thanks to Alex for
26612 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
26614 * TextBox.cs: Implemented context menu
26616 2006-04-12 Mike Kestner <mkestner@novell.com>
26618 * ListView.cs: implement box selection. fixes #77838.
26619 * ThemeWin32Classic.cs: draw box select rect, remove a ResetClip.
26621 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
26623 * XplatUIX11.cs: Added setting of window type when transient window
26624 is created (metacity would move it otherwise)
26625 * X11Structs.cs: Added WINDOW_TYPE atoms
26626 * LinkLabel.cs: Override OnPaintBackgroundInternal and draw the
26627 background (the control is Opaque but still wants transparent
26630 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
26632 * Control.cs: Added OnPaintBackgroundInternal to allow controls
26633 that set Opaque but don't mean it (like all ButtonBase-derived
26634 controls) to still draw their background
26635 * ButtonBase.cs: Override OnPaintBackgroundInternal and draw
26638 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
26640 * Control.cs (PaintControlBackground): Set the graphics object
26641 on our PaintEvent to null to prevent it from being disposed
26642 when the PaintEvent gets disposed
26644 2006-04-12 Alexander Olk <alex.olk@googlemail.com>
26646 * ThemeWin32Classic.cs: Use even more SystemBrushes and SystemPens
26647 * ThemeNice.cs, ThemeClearlooks.cs: fix typo
26649 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
26652 - Added transparency check to BackColor property. Transparent
26653 backgrounds are only allowed if the control styles permit it
26654 - Added recursive painting of parent control background and
26655 foreground if a control with a transparent backcolor is drawn
26656 (Thanks to Tim Ringenback for providing his 'hack' as a base
26657 for this patch) Fixes #77985 and #78026.
26658 - Added Opaque style check before calling OnPaintBackground, no
26659 need to draw the background if the control is opaque
26660 - Removed ControlAccessibleObject owner variable (inherited from
26661 base, no need to define again)
26662 - Added some documentation links explaining the drawing events
26665 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
26667 * Splitter.cs (CalculateSplitPosition): Corrected the bad assumption
26668 that the affected control is the located at the left border of our
26669 parent (Fixes #77936)
26671 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
26673 * TextBoxBase.cs: When rendering disabled or readonly controls,
26674 draw the background with 'Control' instead of 'Window' color as
26675 long as the user hasn't specifically set a color
26677 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
26679 * TextBoxBase.cs: Don't try to shortcut by checking against base.Text
26680 since that won't be updated if the user types text (only if it's
26681 programatically set)
26683 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
26685 * ScrollableControl.cs: Calculate DisplayRect dynamically, so that
26686 layout changes do to app-triggered resizes will have the proper
26687 display rectangle for layout
26689 2006-04-11 Alexander Olk <alex.olk@googlemail.com>
26691 * ThemeWin32Classic.cs:
26692 - Make use of the SystemBrushes and SystemPens wherever possible
26693 - Corrected some highlight colors
26694 - Corrected RadioButton and CheckBox FlatStyle.Flat and Popup
26696 * Theme.cs: Added Empty field to CPColor struct
26698 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
26700 * ScrollabeControl.cs: We need to consider whether or not a scrollbar
26701 is displayed when calculating the display rectangle. Thanks to Mike
26702 for teaching me the err of my ways.
26704 2006-04-10 Peter Dennis Bartok <pbartok@novell.com>
26706 * ScrollableControl.cs:
26707 - Rewrote DisplayRectangle code, now returning the proper x/y coords
26708 (instead of 0,0) and we now return the real width/height instead of
26709 just the clientrectangle, adjusted for padding. The rectangle is
26710 now cached and created by the new CalculateDisplayRectangle method.
26711 - Created new CalculateDisplayRectange method, which basically does
26712 what get_DisplayRectangle() did originally, but now using the
26713 right edge instead of DisplayRectangle to determine the size of
26715 - get_Canvas(): Fixed it to properly calculate canvas for
26716 right/bottom controls which seem to be placed to the right/bottom
26717 of any controls that have a fixed location
26718 - Removed TODO that's taken care of
26719 - Removed NotImplementeds and attempted to implement AdjustFormScrollBars
26720 and SetDisplayRectLocation according to new MSDN2 docs
26721 - Added call to PerformLayout in OnVisibleChanged, MS causes a layout
26722 event when that is called, this is added for compatibility
26723 - ScrollControlIntoView(): Implemented.
26724 - Switched scrollbars to be implicit, they shouldn't be selectable
26725 * ContainerControl: Now that ScrollControlIntoView is implemented, we
26726 call it when the active control is set/changed
26727 * ScrollBar.cs: Added support for generating Win32 scrollbar messages
26728 * ImplicitHScrollBar.cs, ImplicitVScrollBar.cs: Now setting new base
26729 implicit_control variable (used for native Win32 message generation)
26730 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added new
26731 HorizontalScrollBarHeight and VerticalScrollBarWidth properties
26732 * ThemeWin32Classic.cs: Now calling the driver for the scrollbar sizes
26733 * XplatUIStructs.cs: Added ScrollBarCommands enum
26735 2006-04-10 Jackson Harper <jackson@ximian.com>
26738 * CheckedListBox.cs:
26745 * PrintPreviewControl.cs:
26751 * UpDownBase.cs: Fixup base event overrides.
26753 2006-04-06 Mike Kestner <mkestner@novell.com>
26755 * ScrollBar.cs: fix "new event" declarations (#76509) and bounds check
26756 all user-initiated value changes to min <= value <= max-thumbsz+1.
26757 (set_Value): check for vert/horiz when calculating new thumb position.
26758 (LargeIncrement): bounds check to stop pos at max - thumb_size + 1
26760 (OnMouseMoveSB): refactor the thumb dragging code and refine
26761 invalidation logic to reduce flicker.
26762 (SetEndPosition): bounds check to stop pos at max - thumb_size + 1
26763 (SmallIncrement): bounds check to stop pos at max - thumb_size + 1
26764 (UpdateThumbPosition): small code readability cleanup
26766 2006-04-10 Alexander Olk <alex.olk@googlemail.com>
26768 * ThemeNice.cs: Small UI polishing. Draw borders a little bit
26771 2006-04-08 Alexander Olk <alex.olk@googlemail.com>
26773 * ThemeNice.cs: Use a better graphics effect when a button is pressed
26775 2006-04-08 Alexander Olk <alex.olk@googlemail.com>
26777 * Theme.cs: Added GetDashPen and GetSizedPen to SystemResPool
26778 * ThemeWin32Classic.cs: Make use of the new SystemResPool methods.
26779 This dramatically reduces the number of Pen.Dispose calls.
26780 Where possible call ResPool methods only once instead of calling it
26781 over and over again (for example for the same color).
26783 2006-04-06 Mike Kestner <mkestner@novell.com>
26785 * TabControl.cs: fix for SelectedIndex updating on TabPage removals.
26786 Also remove an unused private field on the collection. Fixes #77972.
26788 2006-04-06 Alexander Olk <alex.olk@googlemail.com>
26790 * ThemeNice.cs: Added ToolBar drawing code
26792 2006-04-06 Mike Kestner <mkestner@novell.com>
26794 * Form.cs (ShowDialog): MS allows IWin32Window param to be a non-form.
26795 I'm assuming that means we need to look up the toplevel for the
26796 provided control. Fixes the crash trace in #77911 but exposes another
26797 crash in some strange reflection usage in NDocGui.
26799 2006-04-06 Alexander Olk <alex.olk@googlemail.com>
26801 * ThemeNice.cs: Gave it a little silver touch and added Images
26803 * FontDialog.cs: FontDialog is not resizable
26804 * FileDialg.cs: Added SizeGripStyle.Show
26806 2006-04-05 Jackson Harper <jackson@ximian.com>
26808 * KeyboardLayouts.cs: Remove warning.
26810 2006-04-05 Jackson Harper <jackson@ximian.com>
26812 * Control.cs: Enable OnPaintInternal so we can use it for drawing
26813 all of our controls instead of Paint +=.
26828 * ComboBox.cs: Remove handling of WM_PAINT and WM_ERASEBKGND and
26829 use OnPaintInternal. Remove Width/Height and Visible checks in
26830 paint handler, this is done at a higher level now.
26831 * GroupBox.cs: Don't need to handle WM_ERASEBKGND anymore.
26832 * PaintEventArgs.cs: Add a handled flag so controls that don't
26833 want anymore painting after OnPaintInternal can make sure OnPaint
26836 2006-04-05 Mike Kestner <mkestner@novell.com>
26838 * Form.cs: fix the menu WndProc hacks to respect the native enabled
26839 state of the form, so that we don't process events when Modal dialogs
26840 are up. Fixes #77922.
26842 2006-04-05 Alexander Olk <alex.olk@googlemail.com>
26844 * Mime.cs: Default for range length is 1 not 0. If set to 0 no match
26847 2006-04-05 Mike Kestner <mkestner@novell.com>
26849 * XplatUIX11.cs: fix typo in the EX_APPWINDOW transient patch.
26851 2006-04-05 Mike Kestner <mkestner@novell.com>
26853 * ListView.cs (HeaderMouseMove): null guarding for the over column
26854 when setting up the drag_to_index. Fixes #78015.
26856 2006-04-04 Peter Dennis Bartok <pbartok@novell.com>
26858 * XplatUIX11.cs: If WS_EX_APPWINDOW isn't set we don't want to show up
26859 in the taskbar. Transient windows seem to accomplish that.
26861 2006-04-04 Peter Dennis Bartok <pbartok@novell.com>
26864 - Re-enabled CreateParams.X/Y code for FormStartPosition
26865 - Added code for manual placement when creating the Control
26866 - Incomplete patch to treat MDI forms differently when
26867 setting the ClientSizeCore. (Still need to figure out handling
26870 - When we're explicitly setting the X/Y position of a non-Child
26871 window, let the WM know. Metacity really wants this.
26873 2006-04-04 Alexander Olk <alex.olk@googlemail.com>
26875 * ThemeNice.cs: Added CPDrawButton
26877 2006-04-04 Alexander Olk <alex.olk@googlemail.com>
26879 * ThemeNice.cs: Changed the color for focused buttons and activated
26880 the arrows for small scroll buttons.
26882 2006-04-04 Alexander Olk <alex.olk@googlemail.com>
26884 * ThemeWin32Classic.cs: Removed DrawFlatStyleButton, not needed
26885 anymore. Changed some method modifiers to protected (virtual)
26886 * ThemeClearlooks.cs: Updated to reflect the ThemeWin32Classic
26888 * ThemeNice.cs: Updated to reflect the ThemeWin32Classic changes.
26889 Updated drawing of menus, buttons and progressbars; added
26892 2006-04-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
26894 * ImageListStreamer.cs: implemented serialization/deserialization
26897 2006-04-03 Alexander Olk <alex.olk@googlemail.com>
26899 * ThemeWin32Classic.cs:
26900 - Removed all the DrawFrameControl stuff; CPDrawButton,
26901 CPDrawCheckBox and CPDrawRadioButton are now handled directly
26903 - Updated and corrected the drawing code of CPDrawButton,
26904 CPDrawCheckBox and CPDrawRadioButton to better match ms
26905 - Updated theme checkbox and radiobutton code to use the CP*
26908 2006-03-31 Peter Dennis Bartok <pbartok@novell.com>
26910 * XplatUIX11.cs: Enable clipping again now that the libgdiplus
26913 2006-03-31 Jackson Harper <jackson@ximian.com>
26915 * XplatUIX11.cs: Somehow we get SETCURSORS for bad windows
26917 * UpDownBase.cs: Don't CreateGraphics manually, use a
26918 Refresh. Ideally we would invalidate the correct areas here.
26920 2006-03-31 Peter Dennis Bartok <pbartok@novell.com>
26923 - We now track the mapping state of windows. If a window (or
26924 one of it's parents) is not mapped we no longer permit
26925 WM_PAINT messages to be generated since we'd otherwise get
26926 lots of BadMatch X errors. Jackson did all the work figuring
26928 - Destroying the caret if the window it's contained in is
26929 destroyed. Can't use regular DestroyCaret method since it
26930 might fall into a drawing function (trying to remove the
26931 caret) and with that generate new BadMatch errors. Again,
26932 Jackson tracked this down.
26933 - Changed DestroyChildWindows to SendWMDestroyMessages, we now
26934 make sure we send the messages to all windows. (The old code
26935 would send the WM_DESTROY to the window, and then all child
26936 windows would be 'gone' because the WM_DESTROY handle lookup
26937 would no longer find the destroyed window)
26938 * Hwnd.cs: Added Mapping property to track mapping state of hwnd
26939 * X11Structs.cs: Added WindowType enum for MapWindow/UnmapWindow
26941 2006-03-31 Jackson Harper <jackson@ximian.com>
26943 * ScrollableControl.cs: Dont recalc if we are not visible.
26945 2006-03-31 Mike Kestner <mkestner@novell.com>
26947 * Control.cs (SetVisibleCore): move the CreateControl call up ahead of
26948 the visibility branch.
26950 2006-03-31 Jackson Harper <jackson@ximian.com>
26952 * ScrollBar.cs: Cap values when incrementing/decrementing.
26954 2006-03-31 Mike Kestner <mkestner@novell.com>
26956 * MenuAPI.cs: setup menu.tracker for popup/context menus.
26957 * ToolTip.cs: guard against timer expirations with no active control.
26958 Not sure why it happened.
26960 2006-03-31 Mike Kestner <mkestner@novell.com>
26962 * ThemeWin32Classic.cs: add some horizontal padding space for the tip
26964 * ToolTip.cs: Position the tooltip based on where the cursor is at
26965 popup time, not at MouseEnter time. Add a Down state so that we don't
26966 redisplay tips without a Leave. Use faked XplatUI.GetCursorInfo for
26967 positioning offset. Lookup DisplaySize at positioning time, since it
26968 can theoretically change during invocation.
26969 * XplatUIWin32.cs: fake GetCursorInfo until pdb can do it properly.
26970 * XplatUIX11.cs: fake GetCursorInfo until pdb can do it properly.
26972 2006-03-31 Alexander Olk <alex.olk@googlemail.com>
26974 * ThemeWin32Classic.cs: Use CPDrawBorder3D to draw a GroupBox.
26975 Fixes behaviour when the Text property of the box is String.Empty
26977 2006-03-31 Peter Dennis Bartok <pbartok@novell.com>
26979 * XplatUIX11.cs: Only send mouseleave for our client windows, not
26980 for the whole window (otherwise we get WM_MOUSE_LEAVE twice for
26983 2006-03-31 Alexander Olk <alex.olk@googlemail.com>
26985 * FileDialog.cs: Visual enhancement for the popup buttons in
26988 2006-03-31 Alexander Olk <alex.olk@googlemail.com>
26990 * ColorDialog.cs, FontDialog.cs: Make use of the updated 3D border
26993 2006-03-30 Alexander Olk <alex.olk@googlemail.com>
26995 * ThemeWin32Classic.cs: Updated MainMenu drawing of selected and
26996 highlighted menu items to match ms
26998 2006-03-30 Peter Dennis Bartok <pbartok@novell.com>
27000 * XplatUIX11.cs: Don't set a clip rectangle unless it's not empty
27002 2006-03-30 Mike Kestner <mkestner@novell.com>
27004 * Menu.cs (SelectedItem): use new MenuItem.Selected prop.
27005 * MenuAPI.cs: use new MenuItem.Selected prop. redraw MainMenu when we
27006 go active to account for HotLight to Selected transition.
27007 * MenuItem.cs: add internal Selected prop. Fill out the Status
27008 property by calculating it from item info. Add HotLight,
27009 NoAccelerator, Checked, Grayed, and Disabled flags where appropriate.
27011 2006-03-30 Mike Kestner <mkestner@novell.com>
27013 * MenuItem.cs: only emit DrawItem and MeasureItem for OwnerDraw.
27015 2006-03-29 Jackson Harper <jackson@ximian.com>
27017 * Form.cs: Implement TODO.
27019 2006-03-29 Peter Dennis Bartok <pbartok@novell.com>
27021 * PrintPreviewDialog.cs: Implemented missing methods and events; still
27022 missing proper dialog setup in the constructor
27024 2006-03-29 Peter Dennis Bartok <pbartok@novell.com>
27026 * ProgressBar.cs: Added 2.0 Style property that apps seem to use
27028 - Implemented CheckForIllegalCrossThreadCalls, removed TODO
27029 - Fixed ResetBindings and removed TODO
27030 - Added check for cross-thread calls to get_Handle()
27031 - Added Marshaller attribute for set_Font to satisfy class status
27032 * FontDialog.cs: Removed TODOs that seemed implemented
27033 * UpDownBase.cs: Removed unneeded TODO and Fixme
27034 * MessageBox.cs: Implemented support for Default button and removed TODO
27035 * FileDialog.cs: Removed obsolete TODO
27036 * DomainUpDown.cs: Removed obsolete TODO
27037 * ButtonBase.cs: Removed obsolete TODO
27038 * XplatUIWin32.cs: Removed obsolete TODO
27040 - Removed obsolete TODO
27041 - Calling CheckAcceptButton when the acceptbutton is changed to allow
27042 internal status updates
27043 - Making sure the active control is selected when the control is created
27044 * CurrencyManager.cs: Removed obsolete TODO
27046 2006-03-29 Mike Kestner <mkestner@novell.com>
27048 * *.cs: fix remaining corcompare issues for 1.1 API with the exception
27049 of PrintPreviewDialog and RichTextBox.
27051 2006-03-29 Alexander Olk <alex.olk@googlemail.com>
27053 * Theme.cs: Added a little helper to SystemResPool to get the Dark,
27054 DarkDark, Light and LightLight colors for a specific color
27055 * ThemeWin32Classic.cs:
27056 - Use Button drawing code to draw RadioButtons and CheckBoxes with
27057 Appearance = Button
27058 - Make use of the new ResPool helper CPColor
27059 - Draw ProgressBar and StatusBar with correct 3D borders
27061 2006-03-29 Alexander Olk <alex.olk@googlemail.com>
27063 * ColorDialog.cs: Return selected color. Fixes bug #77940.
27065 2006-03-28 Mike Kestner <mkestner@novell.com>
27067 * ListView.cs: fix Icon layout to plan for scrollbar widths when
27068 calculating col/row counts.
27070 2006-03-28 Mike Kestner <mkestner@novell.com>
27076 switch to explicit interface method implementation for some methods
27077 corcompare identifies as inconsistent with MS.
27079 2006-03-28 Mike Kestner <mkestner@novell.com>
27083 add a few missing methods from the class status output.
27085 2006-03-28 Alexander Olk <alex.olk@googlemail.com>
27087 * ControlPaint.cs: Fixed ControlPaint.Light method. Results are now
27090 2006-03-28 Mike Kestner <mkestner@novell.com>
27092 * MenuAPI.cs: Deactivate on MainMenu item click. Fixes #77917.
27094 2006-03-27 Mike Kestner <mkestner@novell.com>
27096 * ThemeWin32Classic.cs: Switch flat toolbars to use RaisedInner for
27097 the Hilight state to adapt to Alex's CPDrawBorder3D changes.
27099 2006-03-27 Alexander Olk <alex.olk@googlemail.com>
27101 * ThemeWin32Classic.cs: Rewrote Button drawing code to match ms.
27103 2006-03-25 Alexander Olk <alex.olk@googlemail.com>
27105 * ThemeWin32Classic.cs:
27106 - GroupBox: Inserted a little gap between the text and the lines
27108 - Made the code in CPDrawBorder3D more readable
27109 - Corrected the drawing location of the up and down arrows in
27112 2006-03-25 Alexander Olk <alex.olk@googlemail.com>
27114 * ControlPaint.cs: Corrected line widths in DrawBorder for
27115 ButtonBorderStyle Inset and Outset
27117 2006-03-25 Alexander Olk <alex.olk@googlemail.com>
27119 * ThemeWin32Classic.cs:
27120 - Rewrote the totally broken CPDrawBorder3D method. That was
27121 one of the main problems for the terrific ThemeWin32Classic
27123 - Updated and corrected Button drawing
27124 - Correct the dimensions of the SizeGrip to match ms ones
27125 - Removed a small drawing glitch in DrawComboBoxEditDecorations
27126 * XplatUIX11.cs: Draw borders with BorderStyle = Fixed3D with
27127 Border3DStyle.Sunken to match ms.
27129 2006-03-25 Alexander Olk <alex.olk@googlemail.com>
27131 * ThemeWin32Classic.cs: First small part of the "de-uglify
27132 ThemeWin32Classic" effort, SizeGrip
27134 2006-03-24 Jackson Harper <jackson@ximian.com>
27136 * XplatUIX11.cs: Give a max idle time of one second, this matches
27137 MS and forces an Idle event every second when there are no other
27138 events in the queue.
27140 2006-03-24 Mike Kestner <mkestner@novell.com>
27142 * ListView.cs: Handle (Large|Small)ImageList == null more robustly.
27143 * ListView.Item.cs: fix layout issues with null image lists and images
27144 smaller than checkbox size.
27145 * ThemeWin32Classic.cs: Draw a 12 pixel line in ListView LargeIcon
27146 mode like MS does. It's weird, but consistent. ;-)
27149 2006-03-24 Mike Kestner <mkestner@novell.com>
27151 * ListView.cs: Scroll wheel support for the item control. Fixes
27154 2006-03-23 Jackson Harper <jackson@ximian.com>
27156 * ScrollableControl.cs: Special case negative sized areas, not
27158 * MonthCalendar.cs: Save the rect of the clicked date so we can
27159 use it for invalidation.
27160 - Try to cut down on the number of invalidates
27161 - Invalidate the rect the mouse is over and was over when moving
27162 the mouse, so we get the focus box following the cursor.
27164 2006-03-23 Mike Kestner <mkestner@novell.com>
27166 * ThemeWin32Classic.cs: fix FullRowSelect selection background and
27167 focus rectangle drawing. Fixes #77835.
27169 2006-03-23 Mike Kestner <mkestner@novell.com>
27171 * XplatUIX11.cs: rework the fix for #77828 by changing the order of
27172 the if and else if and reverting back to the original == check on the
27175 2006-03-23 Alexander Olk <alex.olk@googlemail.com>
27177 * FontDialog.cs: Update the example panel if the selected index of
27178 the fontListBox changes.
27180 2006-03-23 Alexander Olk <alex.olk@googlemail.com>
27182 * FileDialog.cs: Make FileDialog remember which directory it was in
27183 last in the same execution.
27185 2006-03-22 Mike Kestner <mkestner@novell.com>
27187 * FileDialog.cs: make the DropDownMenu on the toolbar display
27188 RadioChecks since they are mutually exclusive and that's what MS does.
27190 2006-03-22 Mike Kestner <mkestner@novell.com>
27192 * Theme.cs: add Color param to CPDrawMenuGlyph.
27193 * ThemeWin32Classic.cs: do color specific menu glyph rendering so that
27194 checks and radio marks and arrows are visible on highlighted items.
27195 * ControlPaint.cs: update to use new Theme signature.
27197 2006-03-22 Mike Kestner <mkestner@novell.com>
27199 * MenuAPI.cs: only process Enter and arrow keypresses if the tracker
27200 is active. Fixes #77870.
27202 2006-03-22 Alexander Olk <alex.olk@googlemail.com>
27204 * FileDialog.cs: Corrected TabIndex order and set fileNameComboBox
27205 to be focused/selected after startup
27207 2006-03-22 Alexander Olk <alex.olk@googlemail.com>
27210 - Corrected behaviour of Color, AllowFullOpen, FullOpen,
27211 CustomColors and ShowHelp properties
27212 - Some internal rewrites to get better results when using the
27215 2006-03-22 Mike Kestner <mkestner@novell.com>
27217 * ListView.cs: hook into Peter's new ResetMouseHover capability to fix
27218 HoverSelection. Fixes #77836.
27220 2006-03-22 Mike Kestner <mkestner@novell.com>
27222 * FileDialog.cs: bugfixes for the toolbar. Use PushButtons instead of
27223 ToggleButtons. (De)Sensitize the Back button around a stack count of
27224 1, not 0. Update ButtonSize based on a pixel count of the win32
27225 control. Adjust the toolbar size/location for new button size.
27227 2006-03-22 Jackson Harper <jackson@ximian.com>
27229 * XplatUIX11.cs: Don't handle configurenotifys if PostQuitState is
27231 * ScrollBar.cs: When doing increments and decrements we need to
27232 set the Value property so that ValueChanged gets raised. A
27233 possible optimization here would be to make an internal SetValue
27234 that doesn't invalidate immediately.
27235 * ToolTip.cs: Tooltips get added to their container (when
27236 supplied) so they get disposed when the container is disposed.
27237 - Don't create tooltips for String.Empty. This prevents all these
27238 little 2-3 pixel windows from showing up when running nunit-gui
27239 and driving me mad.
27240 * Form.cs: Don't set topmost when setting the owner if the handles
27241 haven't been created yet. The topmost set will happen when the
27242 handles are created.
27244 2006-03-22 Peter Dennis Bartok <pbartok@novell.com>
27247 - DeriveWindowStyles: Fixed typo in borderstyle generation (#77828)
27248 - SetVisible: Sending WINDOWPOSCHANGED for all controls when made
27249 visible (to allow them to recalculate their sizes)
27251 2006-03-21 Mike Kestner <mkestner@novell.com>
27253 * ThemeWin32Classic.cs: major refactoring of the ToolBar rendering
27254 methods. Removed a ton of redundant code. Still not really happy with
27255 the border rendering, but I think that's mainly because of the
27256 ControlDarkDark being black instead of a dark grey. Depending on how
27257 close we want to be, we might want to revisit those color choices.
27258 Among the new features added during the refactor were DropDownArrow
27259 pressed rendering, Disabled image rendering. Proper flat appearance
27260 boundary rendering. Removed the Divider and Wrapping dividers since I
27261 can't figure out any combination of themes and conditions to make the
27262 MS control draw a horizontal line on a toolbar despite what the
27263 Divider property docs indicate.
27264 * ToolBar.cs: rewrite the layout engine. Fixes numerous flicker
27265 conditions and incorrect layout. Updated to coding standard.
27266 * ToolBarButton.cs: refactored layout and positioning code from
27267 ToolBar to here. Invalidate wherever possible instead of forcing
27268 redraws of the whole toolbar.
27269 (Known remaining issues: explicit ButtonSize smaller than provided
27272 2006-03-21 Mike Kestner <mkestner@novell.com>
27274 * ContextMenu.cs (Show): use the position parameter instead of just
27275 showing at the MousePosition.
27277 2006-03-21 Jackson Harper <jackson@ximian.com>
27279 * TabControl.cs: Remove the call to ProcessKeyEventArgs and let
27280 control handle this.
27281 * TreeNodeCollection.cs: If we are clearing the root node we need
27282 to reset top_node so calcs can still happen.
27283 * ThemeWin32Classic.cs: This is a Flags so we need to check
27286 2006-03-21 Jackson Harper <jackson@ximian.com>
27288 * DataGrid.cs: Create columns when the binding context has been
27290 * X11Structs.cs: Keysyms are uints.
27291 - Add size to fix build.
27293 2006-03-21 Peter Dennis Bartok <pbartok@novell.com>
27295 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
27297 - Added ResetMouseHover method to allow controls to retrigger
27298 hovering if they need it more than once
27299 - Implemented MouseHoverTime and MouseHoverSize properties
27300 * Timer.cs: Start() must reset the interval
27301 * SystemInformation.cs: Added 2.0 MouseHoverTime and MouseHoverSize
27304 2006-03-21 Jackson Harper <jackson@ximian.com>
27306 * X11Keyboard.cs: improved layout detection. Move the nonchar
27307 tables into this file.
27308 * KeyboardLayouts.cs: Move the tables into resource files.
27310 2006-03-21 Mike Kestner <mkestner@novell.com>
27312 * ListView.cs: use OnItemActivated to raise events. Fixes #77834.
27314 2006-03-21 Alexander Olk <alex.olk@googlemail.com>
27316 * Mime.cs: Various speed optimizations. Looking up mime types
27317 is now 2 times faster than before
27319 2006-03-17 Peter Dennis Bartok <pbartok@novell.com>
27321 * CreateParams.cs: Added internal menu field
27323 - Switched call order for UpdateBounds; now we always call
27324 the one that also takes ClientSize, and we're calculating the
27325 client size via driver method in the others. The previous
27326 method of tracking client size by difference wasn't working
27327 for forms where even the starting client size wouldn't match
27328 the overall form size (due to borders) (Part of fix for #77729)
27329 - CreateParams(): Do not use parent.Handle unless the handle is
27330 already created. Causes havoc with Nexxia and throws off our
27331 creation of controls
27333 - Created new PerformNCCalc method to trigger WM_NCCALCSIZE message
27334 - Switched handling of ConfigureNotify over to new PerformNCCalc
27335 method (consolidates code)
27336 - Changed RequestNCRecalc to use new PerformNCCalc method
27337 - Added calls to RequestNCRecalc when menus and borders are changed
27338 to allow app to set NC size. (Part of fix for #77729) This matches
27339 when MS send a WM_NCRECALC on Win32 windows.
27340 - Now sending WM_WINDOWPOSCHANGED when toplevel for is made visible
27341 (Part of fix for #77729). This matches what MS does, they also
27342 send that message when the form is made visible.
27343 - XException.GetMessage: Improved usability of X errors by including
27344 a translation of the window into Hwnd and Control class
27345 - Improved debug info for window creation, reparenting and destruction
27346 - Created helper method WindowIsMapped() [Currently not used]
27347 * XplatUIWin32.cs: Added ToString() debug helper to RECT structure
27349 - CreateParams: Now setting our menu on the new internal menu field
27350 - SetClientSizeCore: Now passing cp.menu instead of ActiveMenu to
27351 avoid calculating the same property twice
27353 - Improved usability of ToString() for debugging purposes
27354 - GetWindowRectangle(): Now uses proper CalcMenuBarSize method to
27355 determine the height of the menu, instead of just the font. This
27356 required to also create a graphics context and to keep a bmp
27357 around (for performance reasons)
27359 2006-03-17 Peter Dennis Bartok <pbartok@novell.com>
27361 * MenuAPI.cs: Added OnMouseUp method
27363 - Now remembering the requested client size, avoids size errors
27364 - WndProc: Now handling WM_xBUTTONUP and passing it to MenuTracker
27365 instead of base if the menu is active. This is required due to
27366 control now capturing and releasing on down/up and it would
27367 prematurely release our menu capture
27369 2006-03-17 Jackson Harper <jackson@ximian.com>
27371 * KeyboardLayouts.cs: Add the czech layouts.
27373 2006-03-16 Jackson Harper <jackson@ximian.com>
27375 * Control.cs: Use the viewport space when sizing not the controls
27376 client size, so things like ScrollableControl that effect the
27377 viewport size (when scrollbars are added) are computed correctly.
27378 * BindingContext.cs: Cleanup to use the DataSourceEntrys instead
27380 - Handle creating BindingManagers for null data sources.
27381 * DataGrid.cs: Bind the cached_currencymgr_events to the real data
27382 source, otherwise when rows are added they are added to the 'fake'
27383 datasource and we will crash when trying to set the position in
27385 - Use Implicit scrollbars on the datagrid so they arent
27388 2006-03-16 Jackson Harper <jackson@ximian.com>
27391 * InternalWindowManager.cs:
27392 * MdiWindowManager.cs:
27393 * X11Keyboard.cs: I really want Mike to love me again (fix
27394 compiler warnings).
27396 2006-03-16 Peter Dennis Bartok <pbartok@novell.com>
27399 - OnMouseDown: Switch to editing mode when clicking on the cell
27400 even if we're clicking on the cell that's currently
27402 - ProcessGridKey: Left/Right now wrap like MS.Net does
27403 - ProcessGridKey: Tab now knows to add a new row when tab is
27404 pressed in the cell of the last column of the
27406 - ProcessGridKey: Enter now adds another row if pressed in the last
27407 row and selectes the new row, same column cell
27408 - ProcessGridKey: Home/End navigate columns, not rows, like
27409 originally implemented
27410 - Broke ProcessKeyPreview code out into an extra Internal method
27411 so it can be called from the edit code
27412 * DataGridTextBox.cs (ProcessKeyMessage):
27413 - Switched to accept Tab keypresses
27414 - Added F2 handling to allow jumping to the end of the edited cell
27415 - Added logic to allow moving caret left/right inside edited cell
27416 and making the edited cell jump when the caret hits cell borders
27417 - Tab and Enter are now passed to the datagrid after being handled
27419 - Removed capture code now that Control handles it
27420 - set_SelectionStart now ensures caret is visible
27422 2006-03-16 Jackson Harper <jackson@ximian.com>
27424 * TrackBar.cs: Debackwards the increment/decrement for handling
27425 mouse clicks on the bar with vertical trackbars.
27426 * ThemeWin32Classic.cs: Draw vertical trackbars with 0 at the
27427 bottom to match MS.
27429 2006-03-16 Mike Kestner <mkestner@novell.com>
27431 * ListView.cs: make shift/ctrl keyboard and mouse selection
27432 consistent with the MS control. Fix a bug in
27433 SelectedListViewItemCollection.Clear that was pissing me off for the
27434 better part of a day because the collection was being altered
27435 underneath us as we walked the list.
27437 2006-03-16 Peter Dennis Bartok <pbartok@novell.com>
27439 * Control.cs: Not sure how we could miss this so long, but it seems
27440 that MS.Net has Capture set all the way from before calling
27441 OnMouseDown through sending the mouse events until after
27442 OnMouseUp. This will fix DataGrid's selection being set to end
27443 at the location of the MouseUp.
27445 2006-03-15 Jackson Harper <jackson@ximian.com>
27447 * BindingContext.cs: Check the binding after its added so that it
27448 can initialize the binding managers and hookup to events.
27449 * Binding.cs: Data members seem to sometimes include rows/cols in
27450 the format Row.Column we now take this into account.
27451 - Hookup to the position changed event so we can update the
27452 control when the position has changed in the data set.
27453 * CurrencyManager.cs: Take into account the row/col naming
27454 convention when creating dataset tables.
27455 * BindingContext.cs: Using a newer better way of storing
27456 datasource/datamember pairs. Hopefully this better matches MS for
27457 looking up binding managers.
27460 2006-03-15 Jackson Harper <jackson@ximian.com>
27462 * BindingContext.cs: The currency manager needs the data member
27463 name, if the member is a data set we use the name to find the
27465 * CurrencyManager.cs: When creating the list prefer an IList over
27467 - Attempt to create a DataTable from a DataSet (TODO: might need
27468 some better error checking here, although MS doesn't seem to have much)
27469 - If we have a DataTable create a view and use it as our list.
27471 2006-03-15 Mike Kestner <mkestner@novell.com>
27473 * ListView.cs: keep a matrix of the icon mode layout to facilitate
27474 keyboard navigation. Support Up/Down/Left/Right selection correctly
27475 for all 4 View modes.
27476 * ListViewItem.cs: add internal row/col fields for icon layouts.
27478 2006-03-15 Jackson Harper <jackson@ximian.com>
27480 * TabControl.cs: Redraw the tabs when we resize so their newly
27481 calculated sizes are drawn on screen.
27482 * X11Keyboard.cs: Begginnings of XIM support. We also now support
27483 composite characters.
27484 * XplatUIX11.cs: Keyboard driver needs to know about focus changes
27485 - filter events so that composite characters can be created
27487 * X11Structs.cs: Add XIMProperties enum.
27489 2006-03-14 Peter Dennis Bartok <pbartok@novell.com>
27491 * Control.cs (BringToFront, SendToBack): Don't use window or handle
27492 unless it's created
27494 2006-03-14 Peter Dennis Bartok <pbartok@novell.com>
27496 * Control.cs (PerformLayout): We don't need to consider visiblity
27497 for anchoring, only for docking. This fixes 'whacky' alignment
27498 in listbox and other controls that use implicit scrollbars after
27499 the previous PerformLayout patch
27500 * ListBox.cs: Switched to use implicit scrollbars
27502 2006-03-14 Mike Kestner <mkestner@novell.com>
27506 - chain up the "new event" overrides to base and use
27507 OnEvent to raise them. Part of fix for bug #76509.
27509 2006-03-14 Alexander Olk <alex.olk@googlemail.com>
27511 * FileDialog.cs: Do not select an item in the parent directory
27514 2006-03-14 Peter Dennis Bartok <pbartok@novell.com>
27516 * Control.cs (PerformLayout): It would seem that we considered
27517 invisible windows for our layout. Not quite the right thing
27518 to do. Now we don't any longer, thereby fixing bug #76889.
27520 2006-03-14 Peter Dennis Bartok <pbartok@novell.com>
27522 * Control.cs (CanFocus): I goofed. A control can have focus
27523 even though it's not selectable. Made it match MS docs.
27525 2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
27527 * ControlPaint.cs (DrawBorder3D): DrawBorder3D does not fill the
27528 center by default (fixes #76895)
27529 * ThemeWin32Classic.cs, ThemeNice.cs, ThemeClearlooks.cs: Replaced
27530 all uses of Border3DSides.All with the explicit ORd together
27531 Left|Right|Top|Bottom because I assume that nobody was aware
27532 that All also implies a center fill. Most places I checked had
27533 a fill right above.
27534 * ProgressBarStyle.cs: Added
27536 2006-03-13 Mike Kestner <mkestner@novell.com>
27538 * ListView.cs: fix breakage in drag shadow header positioning
27539 from Peter's csc compilation fix.
27541 2006-03-13 Mike Kestner <mkestner@novell.com>
27543 * ListView.cs: fix NRE produced by backspacing twice in a focused
27546 2006-03-13 Mike Kestner <mkestner@novell.com>
27548 * ListView.cs: proxy Key(Down|Up) from ItemControl to ListView.
27550 2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
27552 * Hwnd.cs: Added fixed_size field to track windows whose size cannot
27554 * XplatUIX11.cs: Now setting fixed_size on hwnd and if set, re-setting
27555 the allowed size before making programmatic size changes
27557 2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
27559 * XplatUIX11.cs: Don't call XSetWMNormalHints if no flags are
27560 set, metacity is broken and will still use the emty sizes in
27561 the struct. (Fix for #77089)
27563 2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
27565 * XplatUIStructs.cs: Split WindowStyles into WindowStyles and
27566 WindowExStyles and marked both enums as Flags
27567 * Form.cs, ComboBox.cs, ToolTip.cs, Control.cs, PropertyGridView.cs,
27568 NotifyIcon.cs, MenuAPI.cs, XplatUIOSX.cs, MonthCalendar.cs: Updated
27569 to match WindowStyles split
27571 - SetWMStyles: Added cehck to not apply WM attributes to Child windows
27572 - Updated to match WindowStyles split
27574 - Fixed FosterParent creation, was using ExStyle on the Style field
27575 (This should help with Popup focus issues)
27576 - Updated to match WindowStyles split
27578 2006-03-13 Jackson Harper <jackson@ximian.com>
27580 * MdiWindowManager.cs: Use the system menu height. Fixes some
27581 strange sizing issues.
27583 2006-03-12 Peter Dennis Bartok <pbartok@novell.com>
27585 * RichTextBox.cs: Need to scroll to caret after text is inserted (#77672)
27587 - Scroll to caret after inserting text (#77672)
27588 - Make scroll range one pixel higher, fixes off-by-one error (and
27589 makes underlines visible on the last line)
27591 2006-03-12 Peter Dennis Bartok <pbartok@novell.com>
27593 * XplatUIX11.cs: Added call to new Keyboard.ResetKeyState to prevent
27594 the keyboard state from being stuck with keys in 'pressed' state when
27595 focus is switched away via keyboard
27596 * X11Keyboard.cs: Added new ResetKeyState method to allow drivers to
27597 reset the keyboard if no X11 KeyUp events are expected to come
27598 * X11Structs.cs: Switched type of Visible to bool to match driver
27600 2006-03-12 Peter Dennis Bartok <pbartok@novell.com>
27603 - Switched caret to be just 1 pixel wide, matches MS and looks less
27605 - Moved caret display 1 pixel down from the top of the control
27607 - InsertCharAtCharet: Update the selection start if moving the caret
27608 (fixes bug #77696; based on patch suggested by kazuki@panicode.com)
27609 - No longer always creating the caret when the caret methods are
27610 called. Only the actual ShowCaret/HideCaret will do that now
27611 - Only setting caret visible if the owner control has focus
27612 - UpdateView: Added invalidation-shortcut logic for center and right
27613 aligned text. Previously we'd update all according to the left
27614 logic which caused drawing errors. Also fixed height of invalidated
27615 areas, now properly invalidating the whole area (was off-by-one)
27616 - owner_HandleCreated: Always generate the document when the
27617 handle is created; this ensures that
27619 - Fixed situation where caret would disappear under the right
27620 window border, also improved scrolling behaviour on left-
27622 - Fixed right-aligned textboxes to have a border to the
27623 right instead of the caret being under the right border
27625 - Switched from 'nested' to simple visible/not visible tracking
27626 for caret (part of fix for #77671)
27627 - No longer passing through translated FocusIn/FocusOut messages
27628 since we were notifying too often and the wrong windows. Instead
27629 we just notify our focussed window of receiving or loosing focus
27630 * XplatUIWin32.cs: Switched from 'nested' show/hide
27631 counting for caret to simple visible yes/no behaviour (part of
27634 2006-03-11 Alexander Olk <alex.olk@googlemail.com>
27636 * Mime.cs: Remove debug code...
27638 2006-03-11 Alexander Olk <alex.olk@googlemail.com>
27640 * MimeGenerated.cs: Removed
27641 * Mime.cs: Mime now reads the mime data (magic, globs, aliases
27642 and subclasses) from /usr/(local/)share/mime and
27643 $HOME/.local/share/mime.
27645 2006-03-10 Jackson Harper <jackson@ximian.com>
27647 * MdiWindowManager.cs: Recalc the NC area when a window is
27648 maximized/restored so that the menu area is drawn on forms that
27651 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
27653 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
27654 XplatUIX11.cs: Added RequestNCRecalc method to driver to allow
27655 us to force a WM_NCCALCRESIZE message being sent. This is needed
27656 for MDI maximizing.
27658 2006-03-10 Jackson Harper <jackson@ximian.com>
27660 * Form.cs: We need to use the ActiveMenu when calculating menu
27662 - Fix nullref when the window manager hasn't been created yet.
27663 * Control.cs: Fix nullref when we try to bring a control to the
27664 front that has no parent.
27665 * MdiWindowManager.cs: Use the MaximizedMenu for calculating
27667 - Add a dummy item to the maximized menu so it always has the
27668 correct height. Otherwise when there are no menus we don't get our
27672 2006-03-10 Jackson Harper <jackson@ximian.com>
27674 * MenuAPI.cs: Make this available elsewhere. I need it in some MDI
27676 * Form.cs: Make the window_state internal so the window managers
27678 - When an MDI child is maximized let its window manager create the
27679 main menu (so it can add its icon).
27680 - Notify the window managers of state changes
27681 - Let the window manager paint its buttons and handle button
27682 clicks on the menu when it is maximized.
27683 * InternalWindowManager.cs: Move the prev_bounds into the mdi
27684 window manager, since tool windows don't use it, only mdi windows.
27685 - Tell the main form that we don't want it to handle NCPAINT
27686 itself to avoid extra painting.
27687 - Handle clicks on a maximized windows menu.
27688 - Handle window state changes
27689 - Handle minimize/maximize clicks correctly by setting the window state.
27690 * MdiWindowManager.cs: Add an icon menu that (the menu you get
27691 when clicking on the forms icon).
27692 - New method to create a forms maximized menu. This is its normal
27694 - Handle window state changes.
27695 - Handle sizing of maximized windows. Maximized windows are just
27696 drawn bigger then the parent visible area. All controls are still
27697 there, they are just outside the visible area (this matches windows).
27698 * MdiClient.cs: No scrollbars when a child window is maximized.
27699 - Let the children windows figure out how big they should be when
27700 sizing maximized windows.
27701 - Implement a version of ArrangeIconicWindows somewhat similar to
27702 Windows version. There are some little differences, but I don't
27703 think any app will rely on the layout of minimized mdi windows.
27705 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
27707 * Padding.cs: Several fixes to allow compiling with csc 2.0
27709 2006-03-09 Jackson Harper <jackson@ximian.com>
27712 * MenuItem.cs: Cheap hack so we can add items to the list without
27713 the events being raised. This allows adding mdi items during
27714 drawing. TODO: Should probably find a better time to add the items.
27716 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
27718 * ThemeWin32Classic.cs:
27719 - CheckBox_DrawText: Added logic to not wrap if not enough space
27720 is available (Fix for bug #77727)
27721 - RadioButton_DrawText: Added logic not to wrap if not enough
27722 space is available (Fix for bug #77727). Also removed some
27723 duplicate code, DrawString always drawing the regular text
27724 before hitting the if statement.
27726 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
27728 * XplatUIX11.cs: Handle an unmapped window state in SetWindowState
27730 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
27732 * PictureBox.cs: Implemented ISupportInitialize interface (fixes #77726)
27733 * ContainerControl.cs: Partial implementation of some 2.0 scaling
27734 methods. Moved the new 2.0 properties into alphabetical order with
27735 other properties and added MonoTODO tags
27737 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
27739 * AutoScaleMode.cs: Added. Fix build.
27741 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
27743 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
27744 XplatUIOSX.cs: Removed HWnd argument from CalcuateClientRect, not used
27745 and was requiring premature handle creation for calls from above
27746 * Form.cs, Control.cs: Removed handle arguments from calls to
27747 CalculateClientRect()
27749 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
27751 * ListView.cs (HeaderMouseMove): Fix csc compilation.
27752 drag_column.column_rect is MarshalByRef and can't be used that way
27754 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
27756 * AxHost.cs: Added deserialization constructor for
27757 AxHost+State (fixes 77743)
27759 2006-03-09 Mike Kestner <mkestner@novell.com>
27762 - Added column drag reordering for details view.
27763 - fixed behavior when mouse is dragged off column and
27764 AllowColumnReorder is false.
27765 * ColumnHeader.cs: clone the format too in Clone.
27766 * Theme.cs: add DrawListViewHeaderDragDetails method.
27767 * ThemeWin32Classic.cs:
27768 - impl new method for drawing drag column shadows and targets.
27769 - support column offset for details mode in DrawListViewItem.
27771 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
27773 * TextControl.cs: Reset the char_count when the document is cleared
27774 (Fixes bug reported on mono-winforms mailing list)
27776 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
27778 * TextBoxBase.cs: Honor the Handled state of KeyPress events. Instead
27779 of calling base we simply process the key ourselves, since both
27780 DefWindowProc and the handled method would set m.Result.
27783 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
27785 * Form.cs(ScaleCore): No longer calling base.ScaleCore since that
27786 method also moves the window; instead implemented a copy of
27787 Control.ScaleCore (Part of fix for #77456)
27789 - Created new CreateGraphicsInternal method to allow providing
27790 a graphics context when no handle is created without triggering
27791 handle creation. (Part of fix for #77456)
27792 - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
27794 - Switched Constructor to require TextBoxBase instead of Control (to
27795 allow uncast access to CreateGraphicsInternal)
27796 - Safeguarded use of owner.Handle property. No longer accessing it
27797 unless the handle is already created.
27798 - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
27799 - Now triggering a recalc when owning control becomes visible
27800 * TextBox.cs, RichTextBox.cs: Switched to use new internal
27801 TextBoxBase.CreateGraphicsInternal() method to avoid triggering
27802 premature handle creation (Part of fix for #77456)
27804 - We now only destroy our double-buffering buffers when the
27805 control is resized or disposed, but not when visibility
27806 changes. (The code even re-created them twice every time)
27807 - Now requiring a redraw of the buffer on visibility changes
27808 (fixes bug 77654 part 2)
27809 - Not passing OnParentVisibleChanged up unless the control
27811 - CanFocus: Fixed to match MS documentation
27812 - Focus: Fixed to return actual focus state and to check if
27813 setting focus is legal before setting it
27815 2006-03-08 Peter Dennis Bartok <pbartok@novell.com>
27817 * ThemeWin32Classic.cs: TabPages cannot have focus. Determine
27818 when to draw focus rectangle by looking at parent focus and
27819 selected state instead. This fixes TabPages on Linux sometimes
27820 having none or multiple focus rectangles.
27821 * XplatUIX11.cs (SetFocus):
27822 - Don't set the focus if the same window already has focus
27823 - Use SendMessage instead of PostMessage (like it's Win32
27824 equivalent) and send the WM_SETFOCUS before the WM_KILLFOCUS
27825 to match MS behaviour
27826 * TabControl.cs(SelectedIndex): Don't set Focus on TabPage, TabPages
27827 are not selectable.
27829 2006-03-07 Jackson Harper <jackson@ximian.com>
27831 * PictureBox.cs: Revert line I accidently committed last week.
27833 2006-03-07 Peter Dennis Bartok <pbartok@novell.com>
27836 - Added new IsRecreating and ParentIsRecreating properties to
27837 allow testing if RecreateHandle has been called on ourselves
27838 or one of our parents
27839 - WndProc(WM_DESTROY): If our control handle is being recreated
27840 we immediately need to create the handle when receiving the
27841 destroy, that way our child windows find a valid parent handle
27842 when they themselves are being recreated upon WM_DESTROY receipt
27843 (fix for bug #77654 part 1)
27845 - DestroyWindow: WM_DESTROY must be sent to our own window before
27846 notifying any child windows. MS documents that child windows
27847 are still valid when WM_DESTROY is received. (Control now relies on
27849 - Added some fine-grain debug options
27851 2006-03-06 Jackson Harper <jackson@ximian.com>
27853 * MdiClient.cs: Redid scrolling logic a bit to create a virtual
27854 box and base calculations off this.
27855 * MdiChildContext.cs:
27856 * MdiWindowManager.cs: Don't need to ensure scrollbars here
27859 2006-03-06 Peter Dennis Bartok <pbartok@novell.com>
27861 * Splitter.cs: In situations where the affected control is added
27862 to the parent's control list after the splitter, we would not
27863 populate affected. Now we try populating it on mousedown, if
27864 it's not already set, and force it to be re-set whenever our
27867 2006-03-03 Matt Hargett <matt@use.net>
27869 * Control.cs: implement Control.Padding
27870 * Padding.cs: -Padding.All returns -1 when constructing with the
27871 implicit default ctor
27872 -Padding.ToString() matches MS.NET
27873 * ContainerControl.cs: implement
27874 ContainerControl.AutoScaleDimensions
27875 * ListControl.cs: implement ListControl.FormattingEnabled
27876 * TextBox.cs: Implemented TextBox.UseSystemPasswordChar.
27878 * TabPage.cs: Implement UseVisualStyleBackColor.
27879 * PictureBox.cs: Implement PictureBox.InitialImage.
27881 2006-03-03 Mike Kestner <mkestner@novell.com>
27883 * ListView.cs: Refactor into HeaderControl and ItemControl. Fix new
27884 event declarations to proxy to base event.
27885 * ListViewItem.cs: update to use ItemControl.
27886 * Theme.cs: make DrawListViewHeader. s/DrawListView/DrawListViewItems.
27887 * ThemeWin32Classic.cs: update to new ListView theme API and fix
27888 column header label rendering for 0 width columns.
27890 2006-03-03 Peter Dennis Bartok <pbartok@novell.com>
27892 * Control.cs (ControlCollection.SetChildIndex): Avoid using a call
27893 that causes the control to be created. Fixes #77476.
27895 2006-03-02 Jackson Harper <jackson@ximian.com>
27897 * Hwnd.cs: Clear the nc pending when clearing the NC area, not the
27900 2006-03-02 Peter Dennis Bartok <pbartok@novell.com>
27902 * Control.cs: Implemented 2.0 feature where OnClick has MouseEventArgs
27903 passed in for the EventArgs (fixes #77690)
27905 2006-03-01 Jackson Harper <jackson@ximian.com>
27907 * ScrollBar.cs: Refresh afterbeing resized.
27909 2006-02-28 Mike Kestner <mkestner@novell.com>
27911 * MenuAPI.cs: Call PerformPopup internal method to emit Popup.
27912 Clean up a tracker compile warning.
27913 * MenuItem.cs: add internal PerformPopup method.
27916 2006-02-28 Peter Dennis Bartok <pbartok@novell.com>
27918 * TextBoxBase.cs (set_Text): Recalculate the document (causing an
27919 implicit expose) when the text is set to null
27921 2006-02-28 Peter Dennis Bartok <pbartok@novell.com>
27923 * RichTextBox.cs (FlushText): When newline is true, we always
27924 need to split the line, even if no text is on it and we may
27925 never eat newlines. (Fixes #77669)
27927 2006-02-28 Mike Kestner <mkestner@novell.com>
27929 * ListView.cs: Add UpdateSelection internal method. Remove SelectItem
27930 and set Selected instead.
27931 * ListViewItem.cs: Call owner.UpdateSelection to manipulate the
27934 2006-02-28 Peter Dennis Bartok <pbartok@novell.com>
27936 * ComboBox.cs: Allow setting SelectedIndex to -1. Fixes #77665
27938 2006-02-28 Alexander Olk <alex.olk@googlemail.com>
27941 - Got rid of the panel. All controls are now directly added to
27943 - It is now possible to set a font with the Font property
27944 - MinSize and MaxSize property do now what they should
27945 - ShowApply, ShowHelp, ShowColor, ShowEffects likewise
27946 - Searching and selecting a font with the font textbox works now,
27947 the same applies to the style and size textbox
27948 - Draw the correct 3D border in the example panel
27949 - Fixed a little mem leak (unused fonts didn't get disposed)
27950 - Many other internal updates/rewrites...
27953 2006-02-27 Peter Dennis Bartok <pbartok@novell.com>
27956 - InsertRTFFromStream: Added 'number of characters inserted' argument
27957 - set_SelectedRTF: Now using the number of characters to calculate
27958 the new location for the selection and cursor (x/y cannot be used
27959 due to potentially already wrapped text)
27961 2006-02-27 Peter Dennis Bartok <pbartok@novell.com>
27963 * TextControl.cs: Added property and implemented means to allow
27964 disabling recalculation of a document (can be used to speed up
27965 multiple inserts and is needed to make RTF inserts predictable, see
27967 * RichTextBox.cs: Using the new NoRecalc property of Document to
27968 keep x/y insert locations predictable. Also makes it faster inserting
27969 large chunks of RTF
27971 2006-02-27 Peter Dennis Bartok <pbartok@novell.com>
27973 * Control.cs: Separated special WM_SYSKEYUP keyboard handling. That way
27974 it's easier for a child control to handle the other messages without
27975 having to duplicate the special functionality
27977 - WndProc: Removed calling base handler for WM_KEYDOWN and added
27978 code to handle processing the key ourselves, in order to get
27979 access to the result of KeyEventArgs.Handled. We now only call
27980 ProcessKey if they key hasn't been handled already. Fixes #77526.
27981 - set_Text: If null or empty string is given, just clear the
27982 document. Fixes part of #77526
27984 2006-02-27 Jackson Harper <jackson@ximian.com>
27986 * SizeGrip.cs: Paint the background color before painting the grip
27987 so things look right.
27988 * MdiClient.cs: Add the sizegrip when both scrollbars are used.
27990 2006-02-27 Mike Kestner <mkestner@novell.com>
27993 - Restructure layout and invalidation model to remove a ton of
27994 flicker from the control and speed up performance in general.
27995 - Add manual column resize, flickers like crazy, but I already have
27996 some ideas on how I'll fix that. (#76822)
27997 - Merge the three Icon-based views into a single layout method.
27998 - Move item selection interaction logic from the item since
27999 interaction with the collections is more appropriate to the view.
28000 - Deselection on non-item clicks.
28002 - Encapsulate most of the layout. Add some internal props to trigger
28003 layout. Move to a model where Items invalidate themselves instead
28004 of just invalidating the whole control every time something changes.
28005 - Invalidate on Text/Caption changes.
28006 - switch to an offset based layout model to avoid having to absolute
28007 position every element on item moves.
28008 - correct checkbox layout to conform to MS layout.
28009 * ThemeWin32Classic.cs:
28010 - refactor some column header drawing code.
28011 - fix string justification for column headers (#76821)
28012 - make SmallIcon labels top justified for compat with MS impl.
28013 * ThemeClearlooks.cs:
28014 - adjust to new ListViewItem internal checkbox bounds api.
28016 2006-02-27 Jackson Harper <jackson@ximian.com>
28018 * Control.cs: Change where implicit controls fall in the zorder.
28019 They are now on top of all children.
28020 - Synced AddImplicit code with Add
28021 - Removed unused enumerator.
28022 * SizeGrip.cs: Remove the TODO as its been TODONE.
28024 2006-02-26 Peter Dennis Bartok <pbartok@novell.com>
28026 * TextControl.cs(Insert): Combine the last lines unless the insertion
28027 string ends with \n\n, otherwise we leave one line too many (Fixes
28028 something I noticed with the testapp for #77526; the bug itself was
28029 already fixed in the previous checkin)
28031 2006-02-26 Peter Dennis Bartok <pbartok@novell.com>
28034 - SelectionColor and SelectionFont methods no longer set absolute
28035 styles. Instead, the keep font or color respectively (This
28036 resolves a long-standing FIXME in the code)
28037 - When flushing RTF text, the insert code now considers text trailing
28038 behind the insertion point (Fixes the bug where when replacing
28039 the selected text via SelectedRTF the remainder of the line behind
28040 the selection would stay on the first insertion line)
28042 - AppendText now updates the selection points after inserting text
28043 - AppendText now ensures that the last tag (sometimes 0-length) of
28044 the document is used for the style information (Fixes part of
28047 - Created new FontDefiniton class to allow describing partial style
28049 - StreamLine() now takes a lines argument, to allow it to decide
28050 whether an encountered zero-length tag is the last in the document
28051 (which must be kept to not loose the font/color contained in it,
28053 - Created Combine() and Split() methods for Marker structs, to
28054 support marker updates due to reformatted documents (soft line
28056 - Implemented Document.CaretTag setter
28057 - Fixed MoveCaret(CtrlEnd) handling, now moves to the last character
28058 of the last line (Not the cause, but also exposed by bug #77220)
28059 - Added LineTag argument to InsertString method, to allow callers
28060 to force a certain tag to be used (required to force use of the
28061 trailing zero-length tag of a document)
28062 - Now updating markers in Combine(), to avoid stale tag markers
28063 - Added some method descriptions to aid maintenance
28064 - Implemented new FormatText concept, allowing additive/subtractive
28065 formatting by only specifying the components that are to be
28066 changed. This was needed for resolving the RTB.SelectedColor/
28067 RTB.SelectedFont fixmes
28068 - Added Break() support method to allow breaking up linetags (used
28069 for partial formatting)
28070 - Added GenerateTextFormat() method. It is used for partial
28071 formatting and allows to generate a full font/color from given
28072 attributes and an existing tag.
28074 2006-02-26 Jackson Harper <jackson@ximian.com>
28076 * XplatUIX11.cs: Use the correct caption height.
28077 - Translate hittest coordinates to screen coords to match MS.
28078 * XplatUIWin32.cs: When we create MDI windows we need to reset
28079 some of the style flags, so we get a nice blank window, and can
28080 draw all the decorations ourselves.
28081 - Set a clipping rectangle on the non client paint event, the
28082 window manager drawing code needs one.
28083 * Form.cs: The window manager needs to know when the window state
28085 * Hwnd.cs: The window manager stuff now does a proper NCCALC so we
28086 don't need to factor in border and title sizes in these
28087 methods. TODO: Remove the args and fix the call points.
28088 * InternalWindowManager.cs: Handle NCHITTEST and NCCALCAREA
28090 - Let the driver set the cursors.
28091 - Improve active window handling
28092 - Correct sizes for title bars and buttons.
28093 - Match MS drawing better
28094 * MdiWindowManager.cs: We don't need to handle border style
28095 updates specially anymore.
28096 - Check for scrollbars when windows are done moving
28097 - Handle Active properly.
28098 * MimeIcon.cs: Don't crash when we can't load the GNOME stuff
28099 correctly. I am spewing the exception though, so we don't hide the
28102 2006-02-26 Pedro Martinez Julia <pedromj@gmail.com>
28104 * DataGridViewRowPostPaintEventArgs.cs,
28105 DataGridViewCellPaintingEventArgs.cs,
28106 DataGridViewRowCollection.cs,
28107 DataGridViewRowPrePaintEventArgs.cs,
28108 DataGridViewCell.cs: Clear a few warnings and implement a few
28109 exceptions that should be thrown.
28111 2006-02-22 Peter Dennis Bartok <pbartok@novell.com>
28113 * ScrollBar.cs (ctor): Explicitly set a cursor to avoid
28114 'inheriting' our parent's (non-default) cursor. (Part of
28115 the fix for #77479)
28117 2006-02-22 Peter Dennis Bartok <pbartok@novell.com>
28119 * XplatUIX11.cs: Fixed cast to make csc happy
28121 2006-02-22 Peter Dennis Bartok <pbartok@novell.com>
28123 * Control.cs (WndProc): Only handle WM_SETCURSOR messages if
28124 it's for the client area (part of fix for #77479 and needed
28125 for MDI window cursor handling)
28127 - DefWindowProc: Now handles the WM_SETCURSOR messages, setting
28128 the appropriate default cursors and also passing the message
28129 up the parent chain
28130 - GetMessage: Now generating WM_NCHITTEST and WM_SETCURSOR even
28131 for non-client areas
28133 2006-02-15 Jackson Harper <jackson@ximian.com>
28135 * XplatUIWin32.cs: Since we fake MDI dont tell Windows that this
28136 is a real MDI window
28138 2006-02-14 Alexander Olk <alex.olk@googlemail.com>
28140 * X11DesktopColors.cs: Instead of checking the desktop session
28141 string for "KDE" check if it starts with "KDE"
28143 2006-02-10 Jackson Harper <jackson@ximian.com>
28145 * XplatUIX11.cs: These should be unsigned (fixes crash on 32 bit
28148 2006-02-10 Alexander Olk <alex.olk@googlemail.com>
28150 * FileDialog.cs: Added Refresh to RunDialog to fix some drawing
28153 - Got rid of the panel. All controls are now directly added to
28155 - Changed to mono coding style
28157 2006-02-10 Jackson Harper <jackson@ximian.com>
28159 * InternalWindowManager.cs: We don't need the set visibility to
28160 false hack anymore now that peter has written beautiful shutdown
28163 2006-02-10 Peter Dennis Bartok <pbartok@novell.com>
28165 * XplatUIX11.cs: Ignore DestroyNotify messages for windows that
28166 where already explicitly destroyed
28168 2006-02-10 Jackson Harper <jackson@ximian.com>
28170 * MdiClient.cs: Handle the case where windows are too high or to
28171 the left and we need scrollbars.
28173 2006-02-10 Alexander Olk <alex.olk@googlemail.com>
28175 * MimeIcon.cs: Added some icons
28178 - Got rid of the panel. All controls are now directly added to
28180 - Changed to mono coding style
28181 - On Linux "My Computer" and "My Network" will now show some
28182 more usefull information. A new class, MasterMount, gathers
28183 this information from /proc/mount. Updated MWFFileView to make
28184 use of this information
28185 - Fixed a bug that caused FileDialog to crash when
28186 ".recently_used" file had a zero size
28187 - FilterIndex does now what it should
28189 * OpenFileDialog.cs, SaveFileDialog.cs: Updated to reflect latest
28192 2006-02-09 Jackson Harper <jackson@ximian.com>
28194 * ComboBox.cs: Don't touch if null.
28196 2006-02-09 Peter Dennis Bartok <pbartok@novell.com>
28198 * Cursor.cs: 64bit safeness fix
28199 * XplatUIX11.cs: Removed several unneeded and one moronic cast.
28201 2006-02-09 Jackson Harper <jackson@ximian.com>
28203 * Form.cs: If a form is made into an MDI form update the styles so
28204 all the props can get set correctly.
28205 - Kill the mdi_container when we dont need it anymore.
28206 * InternalWindowManager.cs: Add missing NOT
28208 2006-02-08 Jackson Harper <jackson@ximian.com>
28210 * InternalWindowManager.cs: Respek clipping when drawing MDi
28213 2006-02-08 Jackson Harper <jackson@ximian.com>
28215 * Hwnd.cs: Add bits to track non client expose events.
28216 * XplatUIX11.cs: Track non client expose events on the hwnd. This
28217 gives us a proper invalid rect and will allow for some nice
28218 optimizations with NC client drawing
28219 - MDI windows are children windows, so move their style handling
28220 into the child window block.
28221 * InternalWindowManager.cs: Remove a state reset that was
28222 getting invoked at the wrong time. Fixes managed windows getting
28223 into a 'stuck' captured state.
28225 2006-02-07 Peter Dennis Bartok <pbartok@novell.com>
28227 * TextControl.cs (Document.ctor): Now initializing
28228 selection_anchor. Fixes #77493
28230 2006-02-07 Jackson Harper <jackson@ximian.com>
28232 * TrackBar.cs: The increment/decrements were backwards.
28234 2006-02-07 Mike Kestner <mkestner@novell.com>
28236 * Theme*.cs : remove ThemeEngine.Current usage as it just points back
28237 to the instance itself.
28239 2006-02-07 Peter Dennis Bartok <pbartok@novell.com>
28241 * X11DesktopColors.cs, ThemeGtk.cs: The GObject structure is based
28242 on ulongs and pointers, the size differs between 32bit and 64bit
28245 2006-02-07 Mike Kestner <mkestner@novell.com>
28247 * XplatUIX11.cs : force the WorkingArea away from XGetWindowProperty
28248 for 64 bit platforms to work around a metacity bug.
28250 2006-02-07 Jackson Harper <jackson@ximian.com>
28252 * TrackBar.cs: Process the input keys we need, and hookup to
28253 KeyDown instead of using WndProc, so we get key messages.
28255 2006-02-06 Peter Dennis Bartok <pbartok@novell.com>
28257 * XplatUIX11.cs: Atoms are only 32bit on the wire, no matter what
28259 * X11Dnd.cs(SetAllowDrop): Since atoms are always 32bit on the wire
28260 we need to translate the XdndVersion atoms array before sending it
28262 2006-02-06 Peter Dennis Bartok <pbartok@novell.com>
28265 - The preceeding 64bit fixes had a bug: ChangeProperty expects the
28266 number of bits for the property, not the number of bytes. The
28267 change to provide IntPtr.Size broke 32bit. (64bit was also wrong
28268 but would not crash since it specified 8 bits instead of 4 bits)
28269 - More 64bit fixes: Switched all atoms from int to IntPtr (they are
28270 defined as XID -> long in the C headers)
28271 - Removed 'new IntPtr((int))' and '(IntPtr)' casts from all NetAtoms
28272 references since those are now IntPtr to begin with
28273 - Switched all Atom.XXX 'int' casts to IntPtr casts
28274 - Fixed XGrabPointer DllImport signature to work for 64bit (cursor arg)
28275 - Fixed XInternAtom signature for 64bit, now returns an IntPtr
28276 - Added XChangeActivePointerGrab DllImport (for X11DnD)
28278 - Changed 'int' type for Atoms in XEvent structures to IntPtr
28279 - Changed atom in HoverStruct to be IntPtr
28281 - Removed local DllImports, switched code to use those from XplatUIX11
28282 - Removed/fixed casts related to the switch of Atom to be a IntPtr
28284 2006-02-06 Mike Kestner <mkestner@novell.com>
28286 * XplatUIX11.cs : many more 64 bit pinvoke changes. I've audited all the
28287 method signatures in the import region. There may still be some
28288 lingering struct marshaling issues, as I didn't drill down into those.
28291 2006-02-06 Jackson Harper <jackson@ximian.com>
28293 * ComboBox.cs: Dont manually set the top_item, this is computed
28294 when the scrollbar position is set.
28296 2006-02-06 Mike Kestner <mkestner@novell.com>
28298 * XplatUIX11.cs : 64 bit changes to XGetWindowProperty usage. Fixes
28299 startup crashes on amd64. There's other fixes needed. All pinvoke
28300 usage of Atom needs to be mapped to IntPtr for example. And there are
28301 likely other int/long issues to be addressed.
28303 2006-02-04 Alexander Olk <alex.olk@googlemail.com>
28305 * FileDialog.cs: One more...
28307 2006-02-03 Alexander Olk <alex.olk@googlemail.com>
28309 * FileDialog.cs: Next try
28311 2006-02-03 Alexander Olk <alex.olk@googlemail.com>
28313 * FileDialog.cs: First part of fix for #77464
28315 2006-02-03 Alexander Olk <alex.olk@googlemail.com>
28317 * ButtonBase.cs, ContainerControl.cs, Forms.cs,
28318 ThemeWin32Classic.cs: Fix for #77458. Correct handling of
28319 AcceptButton border drawing.
28321 2006-02-03 Peter Dennis Bartok <pbartok@novell.com>
28323 * Form.cs: Moved positioning of form after auto scaling is applied,
28324 otherwise it would possibly use wrong form size.
28326 2006-02-03 Peter Dennis Bartok <pbartok@novell.com>
28328 * Control.cs (RecreateHandle): No need to re-create any child
28329 controls, the child windows will get destroyed automatically by
28330 the windowing system or driver, and re-created when the handle
28331 is being accessed the first time. Fixes #77456
28332 * Form.cs: No longer setting the form to closing if the handle is
28333 being recreated. This seems like the right thing to do, don't
28334 have a bug or testcase for this, though.
28336 2006-02-02 Peter Dennis Bartok <pbartok@novell.com>
28338 * FileDialog.cs: Suspend/Resume layouting when changing sizes of
28339 controls to avoid unwanted side effects
28341 2006-02-02 Peter Dennis Bartok <pbartok@novell.com>
28344 - ScaleCore needs to scale the bounds, not the ClientSize of the
28345 control. Fixes #77416.
28346 - DefaultSize is 0,0 for control
28348 - DefaultSize is 100, 20
28349 - SetBoundsCore: Now enforcing the height, no matter if the provided
28350 height is more or less than the preferred one, as long as AutoSize
28352 * Form.cs: Apply documented fudge factor. Part of item 3 fix for #77416
28354 2006-02-02 Peter Dennis Bartok <pbartok@novell.com>
28357 - ResumeLayout: Fixed logic when to call PerformLayout, we may not
28358 call unless both performLayout is true *and* we have a pending
28360 - ResumeLayout: MS does not completely nest Suspend and Resume,
28361 they bottom out at 0, fixed our code to match that.
28362 - UpdateBounds/SetBoundsCore: Moved calling of UpdateDistances() to
28363 SetBoundsCore, we were updating even when we shouldn't. This fixes
28364 swf-anchors mis-anchoring when resizing the app fast and lots.
28365 - UpdateDistances: Now only setting the left and top distance if
28366 we have a parent and are not suspended, this is based on
28367 a suggestion by Don Edvaldson in bug #77355.
28368 - OnVisibleChanged: Fixed logic when to create the control. We may
28369 not create the control if we have no parent or if it's not visible;
28370 switched to using Visible property instead of is_visible field
28371 since the property also considers parent states. This fixes a bug
28372 when starting Paint.Net
28374 2006-02-02 Jackson Harper <jackson@ximian.com>
28376 * Form.cs: If the forms handle hasn't been created yet don't call
28377 into xplatui to make it top most, just set the topmost flag on the
28378 form in CreateParams
28379 * XplatUIX11.cs: Handle WS_EX_TOPMOST.
28381 2006-02-01 Jackson Harper <jackson@ximian.com>
28383 * ScrollableControl.cs: Refactored the Recalculate method a
28384 little, this wasn't handling all the variants of bottom and right
28385 bars needed to be added and added/removed based on their
28386 counterparts being added/removed (which changes the drawable
28387 size). Also we special case client widths and heights of 0 and
28388 don't add the scrollbar for those.
28390 2006-02-01 Peter Dennis Bartok <pbartok@novell.com>
28393 - Added method to get AbsoluteGeometry(); currently unused, but might
28394 be used in the future, if we try again to figure out toplevel
28395 coordinates with some more crappy window managers
28396 - Added FrameExtents() method to retrieve the WM set decoration size
28397 - Tried to fix up AddConfigureNotify and handling of ReparentNotify
28398 to deal with at least KDE, FVWM and metacity (Fixes #77092)
28400 - Added whacky_wm tracking var for metacity
28401 - Added logic to have default menu height if the actual menu height
28402 has not yet been calculated (part of fix for #77426)
28403 * Form.cs: Keep track whether client size has been set and re-set
28404 it if a menu is added/removed afterwards (Fixes #77426)
28406 2006-01-31 Jackson Harper <jackson@ximian.com>
28408 * Control.cs: When a new Site is set on the component attempt to
28409 pull the AmbientProperties from it.
28411 2006-01-31 Peter Dennis Bartok <pbartok@novell.com>
28413 * ThemeWin32Classic.cs: Menu background is drawn in ColorMenu, not
28414 in the background of the owning form. Fixes #77332
28416 2006-01-31 Alexander Olk <alex.olk@googlemail.com>
28418 * MimeIcon.cs: Fix for #77409
28420 2006-01-31 Alexander Olk <alex.olk@googlemail.com>
28422 * XplatUIX11GTK.cs: Initial import
28424 2006-01-31 Jordi Mas i Hernandez <jordimash@gmail.com>
28426 * FixedSizeTextBox: fixes class signature
28428 2006-01-30 Jackson Harper <jackson@ximian.com>
28430 * FixedSizeTextBox.cs: New internal class that represents a
28431 textBox that will not be scaled.
28434 * UpDownBase.cs: Use the new FixedSizeTextBox instead of a
28437 2006-01-30 Peter Dennis Bartok <pbartok@novell.com>
28439 * XplatUIX11.cs: Retrieve default screen number instead of
28440 assuming 0. Attempted fix for #77318
28442 2006-01-30 Peter Dennis Bartok <pbartok@novell.com>
28445 - GetWindowPos: When a window is parented by FosterParent, use
28446 the desktop instead of FosterParent as the base to get coordinates
28447 - CreateWindow: Don't make FosterParent the parent window for Popups
28448 if we don't want a taskbar entry, Popups automatically don't get one
28449 * Hwnd.cs: Need to call remove to actually remove the key from the
28452 2006-01-30 Mike Kestner <mkestner@novell.com>
28454 * MenuAPI.cs: adjust MainMenu item popup location to y=0.
28456 2006-01-30 Jackson Harper <jackson@ximian.com>
28459 * TreeNode.cs: Raise events no matter how the treenode is
28460 checked. Patch by Don Edvalson.
28462 2006-01-30 Jackson Harper <jackson@ximian.com>
28464 * TreeNode.cs: Signature fix.
28466 2006-01-29 Alexander Olk <alex.olk@googlemail.com>
28468 * ThemeClearlooks.cs: Fixed a crash in ProgressBar drawing.
28470 2006-01-20 Mike Kestner <mkestner@novell.com>
28472 * Form.cs: Add ActiveTracker property to do Captures and perform mouse
28473 event forwarding when menus are active.
28474 * MenuAPI.cs: kill the GrabControl hack. Use Form.ActiveTracker.
28475 Most of the patch is pdb's with a little rework.
28477 2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
28479 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs:
28480 Removed GetMenuDC and ReleaseMenuDC methods; replaced
28481 by PaintEventStart(handle, false) and PaintEventEnd(handle, false)
28482 * Form.cs: Changed WM_NCPAINT handler to use PaintEventStart and End
28483 * InternalWindowManager.cs: Added use of PaintEventStart/End to
28484 handling of WM_NCPAINT message, now passing the PaintEventArgs to
28485 the PaintWindowDecorations method
28486 * MainMenu.cs: Switched logic from GetMenuDC to PaintEventStart
28487 * MdiChildContext.cs: Switched logic from GetMenuDC to PaintEventStart
28488 * MenuAPI.cs: Made tracker window invisible
28490 - Removed GetMenuDC and ReleaseMenuDC methods
28491 - Implemented the client=false path for PaintEventStart and
28494 2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
28496 * XplatUIWin32.cs(SetBorderStyle): Fixed3D needs a border
28497 * XplatUIX11.cs(DeriveWindowStyles): Updated to match fixed Form
28500 - MaximizeBox, MinimizeBox: Recreate the handle when setting
28502 - CreateParams: Reworked the styles to match MS look'n'feel,
28503 removed automatic setting of MinimizeBox, MaximizeBox, etc. via
28504 the WS_OVERLAPPEDWINDOW style. This fixes #76823.
28506 2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
28508 * XplatUIX11.cs(GetWindowState): Now throwing an exception when the
28509 window is not mapped, since otherwise every form that's being
28510 created is considered minimized, which is wrong.
28511 * Form.cs: Catching the exception and returning our internal value
28514 2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
28516 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new driver method
28517 SetWindowMinMax() to have means to tell the driver about the minimum,
28518 maximum and maximized state window sizes. (Part of the fix for #76485)
28520 - Implemented tracking of minimum and maximum window size, now calling
28521 new SetWindowMinMax() driver method to tell the driver (Part of the
28523 - Finished handling of WM_GETMINMAXINFO method, now setting all values
28524 (Completes fix for #76485)
28525 - Calling new SetWindowMinMax driver method when the handle for a
28526 form is created, to make sure the driver knows about it even if
28527 the values have been set before the window was created
28528 - Now eating the WM_WINDOWPOSCHANGED message if the form is minimized
28529 to avoid messing up our anchoring calculations (partial fix
28531 * XplatUIStructs.cs: Added MINMAXINFO struct (moved from Win32 driver)
28533 - Added _NET_WM_STATE_HIDDEN property for detecting minimized state
28534 - Improved GetWindowState() to detect 'Minimized' state on Metacity
28535 (and presumably other freedesktop.org compliant WMs). Left the
28536 assumption unmapped=minimized, needed for SetVisible to work.
28537 - Now setting the window state when creating windows
28538 - Fixed SetVisible to consider/set the window state when mapping
28539 a Form. We cannot set the state before it's mapped, and we cannot
28540 use Form.WindowState once it's mapped (since it would ask the
28541 driver and get 'normal'. Therefore, we grab the state before
28542 mapping, map, and then set state.
28543 - Implmemented SetWindowMinMax method; Metacity does not seem to
28544 honor the ZoomHints, though.
28546 - Removed MINMAXINFO (moved to XplatUIStructs)
28547 - Added SetWindowMinMax stub (on Win32 the only way to set that
28548 information is in response to the WM_GETMINMAXINFO message, which
28549 is handled in Form.cs)
28550 - Added logic to SetVisible to set the proper window state when a
28551 form is made visible (fixes #75720)
28553 2006-01-26 Jackson Harper <jackson@ximian.com>
28555 * Control.cs (BeginInvoke): Automagically handle EventHandlers the
28556 same way we handle them with Invoke.
28558 2006-01-25 Peter Dennis Bartok <pbartok@novell.com>
28561 - Added tracking of window state so CreateParams can return
28562 the appropriate style
28563 - Moved setting of WS_CAPTION style in CreateParams to allow
28564 styles without caption
28565 * DataGridTextBoxColumn.cs: We are now also creating the TextBox
28566 control if the TextBox property is accessed. Fixes #77345
28568 - get_Created: now uses is_disposed and is_created to determine
28569 return value (suggested by Jackson)
28570 - CreateHandle: No longer exits if the handle is being recreated
28571 - RecreateHandle: If the handle is not yet created call the
28572 appropriate method to create either control or handle. If the
28573 control is already created CreateHandle will simply exit instead
28574 of just creating the handle
28575 * Hwnd.cs: Removed expose_pending tracking, no longer needed since we
28576 now SendMessage WM_DESTROY directly to the control when DestroyWindow
28579 - When DestroyWindow is called, instead of waiting for the
28580 DestroyNotification from X11, we directly post it to the WndProc
28581 and immediately dispose the hwnd object.
28582 Same applies to DestroyChildWindows, and this obsoletes the
28583 expose_pending tracking. Contrary to Win32 behaviour we destroy our
28584 child windows before our own, to avoid X11 errors.
28585 - Removed the direct sending of WM_PAINT on UpdateWindow
28587 - Reworked DoEvents and GetMessage to allow access to internal queue
28588 even when trying non-blocking access to the queue. Fixes #77335.
28589 Based on a patch suggestion by Don Edvalson. The new private
28590 GetMessage can now also be used as a backend for a PeekMessage
28592 * XplatUI.cs: Improved debug output for CreateWindow
28594 2006-01-25 Jackson Harper <jackson@ximian.com>
28596 * Help.cs: Allow param to be null. Patch by Don Edvalson.
28598 2006-01-24 Jackson Harper <jackson@ximian.com>
28600 * ComboBox.cs: Clamp the max value set for the vertical scrollbar
28601 when we have a MaxDropItems lower then the selected index.
28603 2006-01-24 Jackson Harper <jackson@ximian.com>
28605 * Control.cs: Don't allow selection of non visible controls, allow
28606 selection of controls without parents.
28608 2006-01-24 Jordi Mas i Hernandez <jordimash@gmail.com>
28610 * ThemeWin32Classic.cs: Fixes Datagrid drawing issues
28611 * DataGridDrawingLogic.cs: Add editing row only when is necessary
28613 2006-01-23 Jackson Harper <jackson@ximian.com>
28615 * UpDownBase.cs: Make the textbox handle all the selection and
28616 tabbing. This fixes tabing to updown controls.
28618 2006-01-24 Jordi Mas i Hernandez <jordimash@gmail.com>
28620 * TextBoxBase.cs: fixes exception thown the object was null
28622 2006-01-23 Jackson Harper <jackson@ximian.com>
28624 * ButtonBase.cs: Just use the base CreateParams. They set
28625 visibility and enabled correctly.
28628 * MonthCalendar.cs: Lets let the base set as much of the
28629 createparams as possible so we don't have duplicate code all over
28632 2006-01-22 Alexander Olk <alex.olk@googlemail.com>
28634 * ThemeGtk.cs: Added TrackBar and some experimental code to
28635 get double buffering back
28637 2006-01-21 Jordi Mas i Hernandez <jordimash@gmail.com>
28639 * DataGrid.cs: Allows row number set internally higher than the last
28640 when creating a new row. Restores the editing functionality.
28642 2006-01-20 Mike Kestner <mkestner@novell.com>
28644 * MimeIcon.cs: delay Image creation until the icons are accessed
28645 instead of creating 190 scaled images on GnomeHandler startup.
28647 2006-01-19 Peter Dennis Bartok <pbartok@novell.com>
28649 * TextBoxBase.cs (WndProc): When handling WM_KEYDOWN we need to
28650 first call base before processing the event. Fixes #77279
28652 2006-01-19 Peter Dennis Bartok <pbartok@novell.com>
28654 * XplatUIWin32.cs, Cursor.cs: Fixed code that wrongly assumed
28655 that the stride for the GDI bitmap would match the stride of
28658 2006-01-19 Alexander Olk <alex.olk@googlemail.com>
28660 * ThemeGtk.cs: Added ProgressBar, RadioButton, CheckBox
28662 2006-01-19 Jackson Harper <jackson@ximian.com>
28664 * ComboBox.cs: Hookup the text controls keydown event so we get
28665 those when the text control has the focus.
28667 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
28669 * Label.cs: Now using the base events instead of defining new ones;
28670 this allows us to just call the base properties without having to
28671 duplicate all base property logic
28673 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
28675 * Label.cs: A label by default is not a tabstop (Fixes one of our
28676 failing nunit tests)
28678 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
28680 * XplatUIWin32.cs: Fixed wrong DoEvents logic. Fixes #77282
28681 * XplatUIX11.cs: Removed WM_PAINT check from DoEvents. Fixes #77282
28683 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
28685 * Cursor.cs: Reimplemented creating cursor bitmaps without using
28686 the Bitmap(Stream) constructor which is semi-broken on MS GDI+.
28689 - Reimplemented creating Bitmaps from DIBs since the Bitmap(Stream)
28690 constructor creates images that can't be saved. Part of the fix
28692 - Added handling of CF_BITMAP as CF_DIB to clipboard code (Fixes #76103)
28693 - SetWindowState: Switched ShowWindow flags (part of an upcoming
28694 bug fix for handling window state in forms properly)
28696 2006-01-18 Alexander Olk <alex.olk@googlemail.com>
28698 * ThemeGtk.cs: Simplify ScrollBar drawing
28700 2006-01-18 Jackson Harper <jackson@ximian.com>
28702 * Splitter.cs: Set the default dock style for the splitter control
28703 in the constructor.
28705 2006-01-18 Alexander Olk <alex.olk@googlemail.com>
28707 * ThemeGtk.cs: Corrected StateType and ShadowType for
28710 2006-01-18 Alexander Olk <alex.olk@googlemail.com>
28712 * Control.cs: Make use of Theme.DoubleBufferingSupported
28714 - Added drawing for flat style buttons
28715 - Added ScrollBar drawing
28717 2006-01-18 Alexander Olk <alex.olk@googlemail.com>
28719 * ThemeClearlooks.cs: Removed some unneeded code.
28720 * ThemeGtk.cs: First part of ThemeGtk enhancements.
28722 2006-01-17 Peter Dennis Bartok <pbartok@novell.com>
28724 * LinkLabel.cs: We need to update the hover drawing when
28725 leaving the control as well.
28727 2006-01-18 Jordi Mas i Hernandez <jordimash@gmail.com>
28729 * DataGrid.cs: Clicking on non empty areas in the columns
28730 area was giving an exception
28732 2006-01-17 Jackson Harper <jackson@ximian.com>
28734 * ThemeWin32Classic.cs:
28735 * ListView.cs: Do not draw/clip the headers when the header style
28738 2006-01-17 Jordi Mas i Hernandez <jordimash@gmail.com>
28740 * DataGrid.cs: Fixes 77260
28742 2006-01-17 Jordi Mas i Hernandez <jordimash@gmail.com>
28744 * DataGrid.cs: Clicking on a column on a empty grid was giving
28747 2006-01-17 Peter Dennis Bartok <pbartok@novell.com>
28749 * DataGrid.cs (OnKeyDown): Don't use the array if it's empty
28750 or any keypress will crash the grid.
28752 2006-01-17 Mike Kestner <mkestner@novell.com>
28754 * MainMenu.cs (OnMenuChanged): set Height=0 to cause relayout.
28755 * ThemeWin32Classic.cs (CalcItemSize): clear Height/Width for
28756 invisible/previously-visible items.
28759 2006-01-17 Alexander Olk <alex.olk@googlemail.com>
28761 * ThemeClearlooks.cs:
28762 - Added CL_Draw_Button method; now other theme controls that are
28763 not derived from button or do not have a button can draw buttons
28765 - Updated ComboBox drawing
28766 - Beautified RadioButton drawing
28767 - Corrected drawing of bottom and left tabs
28768 - Beautified DateTimePicker and MonthCalendar
28769 - Added CPDrawButton and CPDrawRadioButton
28771 2006-01-16 Jackson Harper <jackson@ximian.com>
28773 * ComboBox.cs: Set the initial value of the scrollbar to the
28774 current index. Reduce the numbers of refreshs and IndexOfs called.
28776 2006-01-14 Alexander Olk <alex.olk@googlemail.com>
28778 * FileDialog.cs: When the file listview is focused hitting the
28779 backspace key moves the fileview to the parent directory
28781 2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
28784 - Added RecreateHandle call when changing taskbar visibility to
28785 trigger reparenting in Win32 driver (Fixes #75719)
28786 - If a window has minimize or maximize buttons, it cannot have
28789 - CreateWindow: When no WS_EX_APPWINDOW style is found we parent
28790 the toplevel form with FosterParent (A toolwindow not on the
28791 taskbar) (Fixes #75719)
28792 - Made FosterParent a toolwindow
28794 2006-01-13 Alexander Olk <alex.olk@googlemail.com>
28796 * FileDialog.cs: Don't crash if InitialDirectory doesn't exist
28798 2006-01-13 Alexander Olk <alex.olk@googlemail.com>
28800 * ToolTip.cs: If SetToolTip is called from a control and the mouse
28801 is currently over that control, make sure that tooltip_window.Text
28804 2006-01-13 Mike Kestner <mkestner@novell.com>
28806 * MimeIcon.cs: size_t on lp64 fix for gdk_pixbuf_save_to_file extern.
28808 2006-01-13 Jackson Harper <jackson@ximian.com>
28810 * TreeView.cs: On MS GetNodeAt never actually factors in the X
28811 value passed. Also redraw the selected node when we recieve
28812 focus, so tabbing between trees works correctly.
28814 2006-01-13 Alexander Olk <alex.olk@googlemail.com>
28816 * MimeIcon.cs: GnomeHandler: older gnome versions don't have
28817 ~/.gconf/%gconf-tree.xml, so use
28818 .gconf/desktop/gnome/interface/%gconf.xml
28820 2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
28822 * TextControl.cs: Draw text in gray if control is disabled
28824 2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
28826 * TreeView.cs: Draw the focus rectangle outside the highlight, to
28827 make sure it's always visible. Fixes #76680.
28829 2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
28831 * TreeView.cs: Implemented Wheel scrolling. Fixes #76531
28833 2006-01-13 Jonathan Chambers <jonathan.chambers@ansys.com>
28835 * PageSetupDialog.cs: Added.
28836 * PrintDialog.cs: Attributes.
28837 * PrintPreviewControl.cs: Updates.
28838 * PrintPreviewDialog.cs: Updates.
28840 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
28842 * Control.cs: Undid my selection check fix, since it's not needed
28844 - Now considering the presence of hscroll/vscroll when sizing
28845 vscroll/hscroll respectively. Fixed bug #77077
28846 - Added Left/Up/Down/Right to IsInputKey list to prevent
28847 ContainerControl from stealing them. This fixes what I broke
28848 with my last checkin.
28850 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
28852 * ScrollableControl.cs: Implemented dockpadding. Fixes #77166. And
28853 I finally understand how the property can be set without a setter :-)
28855 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
28858 - Switched RunLoop to use static Message.Create to create a
28860 - Added PreProcessMessage call in runloop for keyboard events; this
28861 is part of the fix for #77219, I overlooked this originally in the
28862 MSDN doc for PreProcessMessage
28864 - Removed call to PreProcessMessage from handling of keyboard
28865 messages; it's supposed to be done in the message pump
28866 - Moved call to ProcessKeyEventArgs inside ProcessKeyMessage as
28867 per MSDN documentation.
28868 - IsInputChar: All chars are input chars by default; removed the
28869 parent calling chain, MS does not document that
28870 - PreProcessMessage: If IsInputChar is true, we want to return false
28871 to allow dispatching of the message
28872 - When selecting the next control, now also check that we're not
28873 selecting ourselves again and therefore return a false positive.
28875 - Tried to match return values for IsInputKey and ProcessDialogKey
28876 to what MS returns; moved processing of our special keys outside
28877 ProcessDialogKey since MS does not seem to return true on those.
28878 - Moved code that previously was in ProcessDialogKey into new private
28879 ProcessKey method, which gets called upon receipt of WM_KEYDOWN
28880 - Reworked handling of WM_CHAR to not have to duplicate code from
28881 Control.cs anymore, instead we simply call down to base.
28883 2006-01-12 Jackson Harper <jackson@ximian.com>
28885 * ComboBox.cs: We always need to refresh the text area when
28886 EndUpdate is called. Fixes the combobox in the file dialog.
28887 * Control.cs: Don't create the creator_thread until the controls
28888 handle is created. Also in InvokeRequired we check if the
28889 creator_thread is null. This gives the effect of InvokeRequired
28890 returning true if the controls handle is not created yet, and
28893 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
28896 - Added StartLoop() driver method. This is used to allow drivers to
28897 prepare for an upcoming GetMessage/TranslateMessage/DispatchMessage
28898 loop for a particular thread
28899 - Added EndLoop() driver method. This is called once the message
28900 pump for the thread is shut down
28901 - Added SupportsTransparency method to allow the driver to indicate
28902 opacity support for windows
28904 - Removed TODO attribute, completed AllowTransparency property
28905 - Added documented logic to Opacity
28906 * GroupBox.cs, Label.cs, LinkLabel.cs, PropertyGrid.cs, Control.cs,
28907 ButtonBase.cs, CheckedListBox.cs: Combined Jackson's and Miguel's
28908 versions of CompatibleTextRendering
28909 * X11Structs.cs: Added opacity atom to our atom enumeration
28910 * Hwnd.cs: Added opacity tracking (we need to track since the opacity
28911 of a form might be set before it's reparented by the WM, and we need
28912 the opacity value without calling up to Form)
28913 * XplatUIDriver.cs: Added StartLoop(), EndLoop() and
28914 SupportsTransparency() driver methods
28915 * Application.cs: Now calling StartLoop and EndLoop driver methods
28917 - Added opacity atom registration
28918 - Added StartLoop()/EndLoop() methods. They're empty right now but
28919 will need to get implemented when we switch to a per-thread queue
28920 - Implemented SupportsTransparency() method
28921 - Implemented SetWindowTransparency() method
28922 - Added support for setting the opacity value when a window is
28923 reparented (since the opacity needs to be set on the WM frame)
28924 * XplatUIOSX.cs, XplatUIWin32.cs:
28925 - Added SupportsTransparency(), StartLoop() and EndLoop() methods
28927 2006-01-12 Alexander Olk <alex.olk@googlemail.com>
28929 * ThemeClearlooks.cs: Don't crash if TabControl.Parent is null.
28931 2006-01-12 Alexander Olk <alex.olk@googlemail.com>
28933 * FileDialog.cs: Added ToolTip for MWFFileView
28934 * MimeIcon.cs: Rewrote GnomeHandler.
28935 - Get currently used gnome icon theme from
28936 ($HOME)/.gconf/%gconf-tree.xml
28937 - Make use of inherited icon themes
28938 - Support SVG icon themes like Tango via librsvg
28940 2006-01-12 Miguel de Icaza <miguel@novell.com>
28942 Revert's Jackson's revert which broke 2.0 builds. Fix both
28945 * Application.cs: Move the use_compatible_text_rendering outside
28946 the NET_2_0 define. If we ever need to use the
28947 use_compatible_text_rendering on the individual controls they will
28948 access the variable from the common shared code paths.
28950 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
28953 - Added more granular debug options
28954 - Added method to print both window text and id
28955 - Switched debug output to use new Window() debug method
28956 - Added IsEnabled() driver method
28957 - Added EnableWindow() driver method
28959 - Removed end_modal; no longer needed, new loop handles termination
28960 via 'closing' variable
28961 - If form is modal, setting DialogResult will now initiate loop
28962 termination via 'closing' variable
28963 - Added support for is_enabled/WS_DISABLED to CreateParams
28964 - Close() now just send the WM_CLOSE message; the WM_CLOSE handler
28966 - Removed code that's now in RunLoop from ShowDialog()
28967 - Added various documented sanity checks to ShowDialog()
28968 - Added handling of WM_DESTROY message; we set 'closing' on getting
28969 the message to indicate the message pump to terminate
28970 - Added handling of new internal WM_CLOSE_INTERNAL message - it's
28971 send by the Application.ExitThread method. (We send the message
28972 to destroy the window after all other events have been
28973 processed through the queue, instead of destroying the handle
28975 - Moved code from Close() method to WM_CLOSE handler; added logic
28976 to only send close-related events if the form is not displayed
28978 * Splitter.cs (..ctor): Fixed typo in resource name
28980 - DrawBackgroundImage: Explicitly selecting the wrap mode for the
28982 - set_Cursor: Now only setting calling into XplatUI if the handle for
28983 the control is already created; this avoids implict handle creation
28984 or crashes if it's not created
28985 - set_Enabled: Now setting the enabled state via the new driver method
28986 instead of just tracking it
28987 - CreateParams: Added logic to set WS_DISABLED based on enabled state
28988 - CreateControl: Reordered event firing and method calls to more
28989 closely fire events in the order MS does. Now setting the
28990 enabled state in the driver when creating the control.
28991 - SetVisibleCore: Moved when the OnVisibleChanged event is fired to
28993 * FolderBrowserDialog.cs, MessageBox.cs, ButtonBase.cs, TrackBar.cs,
28994 MonthCalendar.cs: get_CreateParams: Added setting of WS_DISABLED
28995 * XplatUIStructs.cs: Added internal WM_CLOSE_INTERNAL mesage id
28997 - Added tracking of window enabled state (get_Enabled/set_Enabled)
28998 - Added EnabledHwnd property to easily allow a driver to find the
28999 handle of the first enabled window in the parent chain (this is
29000 used by drivers to pass up input events of disabled windows)
29001 * XplatUIDriver.cs: Added IsEnabled() method
29003 - Removed crude and obsolete exiting tracking variable
29004 - Removed internal ModalRun(); replaced by RunLoop()
29005 - Implemented private CloseForms() method to allow closing all
29006 windows owned by a particular (or all) threads
29007 - Exit() now properly closes all windows without forcing the message
29009 - Removed obsolete InternalExit() method
29010 - Changed Run() methods to use new RunLoop() message pump
29011 - Implemented new RunLoop() method for both modal and non-modal forms
29013 - get_CreateParams: Added setting of WS_DISABLED
29014 - Simplified ShowDialog(); now all the work is done in RunLoop(),
29015 invoked via Form.ShowDialog()
29016 * NativeWindow.cs: We don't remove the window from the collection when
29017 the handle is destroyed; there might still be messages for it in the
29018 queue (mainly the resulting WM_DESTROY); instead it will be removed
29019 when Control calls InvalidateHandle in the WM_DESTROY handler
29021 - CreateWindow: Added logic to handle the WS_DISABLED window style
29022 - EnableWindow: Implemented based on Hwnd.Enabled
29023 - GetMessage: Reset PostQuitState so the method can be called again
29024 - Implemented support for disabled windows (passing messages to the
29025 first enabled parent) in handling all input messages
29026 - Added optimizations for handling Expose events
29027 - Implemeted new driver method IsEnabled()
29028 - Now always resetting paint pending tracking vars when we start paint
29029 - Re-implemented UpdateWindow via just sending a WM_PAINT message
29030 * XplatUIOSX.cs: Added IsEnabled method stub
29031 * XplatUIWin32.cs: Implemented new IsEnabled() method
29033 2006-01-11 Jackson Harper <jackson@ximian.com>
29035 * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
29036 LinkLabel.cs, PropertyGrid.cs: Unbreak 1.1 build. Consolidate the
29037 variables a little.
29038 * ColorDialog.cs: Clear out the old form before adding the new
29041 2006-01-11 Jackson Harper <jackson@ximian.com>
29043 * X11Dnd.cs: Make sure to add all the text formats when adding
29044 strings to the data object.
29045 * TreeNodeCollection.cs: When adding to a sorted tree we need to
29046 do some redrawing too. Also change the UpdateNode to an
29047 UpdateBelow so the newly added node gets painted.
29049 2006-01-11 Miguel de Icaza <miguel@novell.com>
29051 * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
29052 LinkLabel.cs, PropertyGrid.cs: Implement the
29053 UseCompatibleTextRendering property for 2.x
29055 * Application.cs (SetCompatibleTextRenderingDefault): Add.
29057 2006-01-11 Jackson Harper <jackson@ximian.com>
29059 * TreeView.cs: Use the property for setting the selected node so
29060 the correct events get raised.
29061 * TreeNode.cs: Update the tree when the fore/back colours of a
29064 2006-01-10 Jackson Harper <jackson@ximian.com>
29066 * TreeView.cs: Allow setting SelectedNode to null.
29068 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
29070 * Form.cs: Fix support for Form TransparencyKey and Opacity on Windows.
29072 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
29074 * PrintControllerWithStatusDialog.cs: Update page number in dialog.
29076 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
29078 * PrintDialog.cs: Added attributes and set default property values.
29080 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
29082 * PrintControllerWithStatusDialog.cs:
29083 Added PrintControllerWithStatusDialog.
29085 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
29087 * XplatUI.cs, Form.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
29088 XplatUIWin32.cs: Added support for Form TransparencyKey and Opacity on Windows.
29090 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
29092 * ComboBox.cs: Fix crash when there is no selected item (due to last commit)
29094 2006-01-09 Jonathan Chambers <jonathan.chambers@ansys.com>
29096 * ComboBox.cs: Added KeyDown event handler for processing arrow keys
29097 and PgUp/PgDown. Also, scroll to selected item upon dropdown. Bugs 76857 and 76788.
29099 2006-01-08 Alexander Olk <alex.olk@googlemail.com>
29101 * MimeIcon.cs: Added internal class SVGUtil.
29103 2006-01-08 Alexander Olk <alex.olk@googlemail.com>
29105 * FileDialog.cs: Don't crash if there are two files with the
29106 same name but different locations.
29108 2006-01-08 John BouAntoun <jba-mono@optusnet.com.au>
29110 * MonthCalendar.cs: Fixed annoying rendering bug when selecting
29111 dates across multiple month grids. Used to not highlight entire
29112 month, but does now.
29114 2006-01-06 Jackson Harper <jackson@ximian.com>
29116 * MonthCalendar.cs: Removed DoEvents call to prevent a running
29117 message loop. Change timer intervals to numbers that seem more
29120 2006-01-06 John BouAntoun <jba-mono@optusnet.com.au>
29122 * DateTimePicker.cs: Modified CalculateDropDownLocation to use the screen
29123 object for location info since screen object is now implemented.
29125 2006-01-05 Jackson Harper <jackson@ximian.com>
29127 * AsyncMethodData.cs: Check if the call is complete before doing a WaitOne
29128 * AsyncMethodResult.cs: We no longer use a WeakReference for the
29129 AsyncMethodResult, this is because we ALWAYS want the
29130 ManualResetEvent to get set.
29131 * Control.cs: When disposing use an async invoke to call shutdown
29132 code, so that thigns don't block on the finalizer thread. Also
29133 check if we even have a message loop before trying to send
29134 messages, if we don't then don't bother sending messages.
29135 - No more weak references for async methods
29136 * XplatUIDriver.cs: No more weak references for async methods.
29138 2006-01-04 Alexander Olk <alex.olk@googlemail.com>
29140 * FontDialog.cs: Fix, don't throw an exception if FontFamily.Families
29141 returns two FontFamily with the same name
29143 2006-01-04 Peter Dennis Bartok <pbartok@novell.com>
29145 * ThemeWin32Classic.cs, ThemeClearlooks.cs: Dropped stupid scheme of
29146 drawing disabled text. Instead using the ColorGrayText color
29148 2006-01-04 Jackson Harper <jackson@ximian.com>
29150 * TreeNode.cs: redraw the node when its image index is changed.
29152 2006-01-04 Peter Dennis Bartok <pbartok@novell.com>
29154 * RichTextBox.cs: Same fix as last, just for SelectionColor. This
29155 time I checked there are no others like it.
29157 2006-01-04 Jackson Harper <jackson@ximian.com>
29159 * AsyncMethodResult.cs: Use a ManualResetEvent instead of a mutex,
29160 this gives the behavoir I was looking for.
29161 * Control.cs: Special case Invoking EventHandlers, this matches MS
29162 and fixes part of bug #76326.
29164 2006-01-04 Alexander Olk <alex.olk@googlemail.com>
29166 * ThemeClearlooks.cs, FileDialog.cs:
29167 - Reflect the latest Theme class changes
29168 - Remove Mono.Unix.Syscall.time in FileDialg and replace it
29171 2006-01-04 Alexander Olk <alex.olk@googlemail.com>
29173 * Theme.cs: Cache UI resource images and resize them if needed
29175 2006-01-03 Peter Dennis Bartok <pbartok@novell.com>
29177 * RichTextBox.cs: FormatText is 1-based, make it so when SelectionFont
29178 is called. This fixes the crash in Nexxia when setting the font
29179 attributes in the chat. [However, RTF needs a look-over to make sure
29180 that all SelectionXXX methods handle the special case that selection
29181 is empty and therefore the change must be applied to all text starting
29182 at the cursor/selection start]
29184 2006-01-03 Peter Dennis Bartok <pbartok@novell.com>
29186 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
29187 XplatUIOSX.cs: Added SendMessage and PostMessage methods
29188 * X11Keyboard.cs: Switched to new way of calling PostMessage
29190 2006-01-03 Peter Dennis Bartok <pbartok@novell.com>
29192 * Theme.cs: Added theme interface for images to allow the theme to
29193 control what images are used for things like FileDialog, MessageBox
29195 * MessageBox.cs: Now uses the new Theme icon/image interfaces
29197 2006-01-03 Alexander Olk <alex.olk@googlemail.com>
29200 - Removed some dead code
29201 - Opening a recently used file does work now
29202 - Small UI enhancements
29205 2006-01-02 Alexander Olk <alex.olk@googlemail.com>
29207 * FileDialog.cs: Forgot too add __MonoCS__
29209 2006-01-02 Alexander Olk <alex.olk@googlemail.com>
29211 * FileDialog.cs: We are able to read recently used files now let's
29212 go on and write them.
29214 2006-01-01 Alexander Olk <alex.olk@googlemail.com>
29216 * FileDialog.cs: Breathe some life into "last open"/"recently used"
29218 * MimeIcon.cs: Do a check for the top level media type also
29220 2005-12-31 Alexander Olk <alex.olk@googlemail.com>
29222 * ThemeClearlooks.cs:
29223 - Added CPDrawStringDisabled
29224 - ButtonBase_DrawText: Workaround for a DrawString bug; cut off
29225 some chars if the text doesn't fit into text_rect
29226 - DrawListViewItem: If View = View.LargeIcon center the image;
29227 rewrote the drawing of ListViewItem.Text if View =
29230 2005-12-31 Alexander Olk <alex.olk@googlemail.com>
29232 * MimeIcon.cs: Use default KDE icon theme if there is no
29233 "48x48" directory for the current icon theme, fixes #77114
29234 * Mime.cs: Disable not working and actually not used code.
29235 * ThemeWin32Classic.cs:
29236 - Replace "new SolidBrush" in GetControlBackBrush and
29237 GetControlForeBrush with ResPool.GetSolidBrush
29238 - Changed DrawListViewItem from private to protected virtual
29240 - Added form.MaximizeBox = true
29241 - Don't throw an exception if there is a broken symbolic link
29243 2005-12-23 Jackson Harper <jackson@ximian.com>
29245 * TabControl.cs: Give the panels focus, keyboard navigation is
29246 fixed so this works correctly now.
29247 - We need these key events also.
29248 * ToolBar.cs: Remove some of the poor mans double buffering.
29250 2005-12-24 Alexander Olk <alex.olk@googlemail.com>
29252 * ComboBox.cs: The internal TextBox now returns the focus.
29254 2005-12-23 Jackson Harper <jackson@ximian.com>
29256 * ThemeWin32Classic.cs: Draw the text for all tab appearances.
29258 2005-12-23 Peter Dennis Bartok <pbartok@novell.com>
29260 * Control.cs: Removed debug code
29261 * XplatUIX11.cs: Changed DestroyChildWindows to also consider
29264 2005-12-23 Peter Dennis Bartok <pbartok@novell.com>
29266 * Control.cs: When creating the control, update the Z-order after
29267 all it's children are created, too. (Fixes nexxia not showing
29270 2005-12-23 Peter Dennis Bartok <pbartok@novell.com>
29272 * Control.cs: Do not update the anchoring distances if layout is
29273 suspended, instead do it once layout is resumed
29275 2005-12-22 Peter Dennis Bartok <pbartok@novell.com>
29278 - After many hours of debugging, for both Jackson and
29279 myself, it turns out that it helps to set the parent of a control
29280 if you want to actually see it onscreen. In the spirit of that
29281 discovery, we're now setting the parent of the control and
29282 it's children when the control's handle is created. This fix
29283 will make Lutz Roeder's Reflector run happily.
29284 - now just creating the handle instead of the whole control when
29285 getting a graphics context for the control.
29287 2005-12-22 Peter Dennis Bartok <pbartok@novell.com>
29289 * ScrollableControl.cs: When calculating the canvas, don't consider
29290 the scrollbar widths. Instead, predict if horizontal scrollbar
29291 will affect canvas when deciding on vertical display and vice versa.
29293 2005-12-22 Peter Dennis Bartok <pbartok@novell.com>
29295 * RichTextBox.cs: Set default RTF font for documents that don't
29296 have a font table (Fixes #77076)
29298 2005-12-22 Jackson Harper <jackson@ximian.com>
29300 * TextBoxBase.cs: It's difficult to do, but you can have an empty
29301 clipboard. This prevents a NullRef in that case.
29302 * XplatUIX11.cs: Use CLIPBOARD not PRIMARY for our
29303 clipboard. PRIMARY is for the currently selected text only. (We
29304 should implement PRIMARY at some point.
29306 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
29308 * XplatUIWin32.cs: Fixed the TEXTMETRIC structure, we were calling
29309 a Unicode function with a structure that was defined in Ansi way.
29312 2005-12-21 Jackson Harper <jackson@ximian.com>
29314 * StatusBar.cs: Statusbar handles its fore/back colours on it's
29315 on. Because thats how it rolls. (and this avoids it using ambient
29317 * ThemeWin32Classic.cs: Use the proper back color for filling.
29318 * Menu.cs: Use the system menu bar color for drawing menu
29319 bars. Using the window back color will bring ambient colours into
29322 2005-12-21 Alexander Olk <alex.olk@googlemail.com>
29324 * ColorDialog.cs: Fixed a memory leak that caused a SIGSEV. A lot of
29325 Bitmaps were created and not disposed.
29327 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
29329 * Control.cs (CreateControl): Don't do anything if the control is
29330 already created, otherwise we'd fire the OnCreated event more than
29333 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
29335 * ComboBox.cs (FindStringCaseInsensitive): Don't search for emtpy strings,
29336 will always match. Instead return -1. Fixes #76464.
29338 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
29340 * TextControl.cs (RecalculateLine): Only wrap if the wrap point is
29341 neither the beginning nor the end of the line (Fixes bug #76479)
29343 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
29346 - ControlNativeWindow.ControlFromHandle(): Now handling situation
29347 where handle is invalid
29348 - FromHandle(): Now using hashtable-based ControlFromHandle() lookup
29349 instead of slower linear search
29350 * NativeWindow.cs: Don't remove the window from the hashtable until
29351 after the driver has destroyed it (since the driver might use
29352 Control.FromHandle to lookup the control object
29353 * Hwnd.cs: Added DestroyPending property to track if a window is
29354 already destroyed as far as the driver is concerned and only hasn't
29355 yet notified the control
29357 - Activate(): Check if the window is still valid before using the
29359 - Implemented DestroyChildWindow() method to mark child windows as
29360 destroyed when a window is destroyed. This prevents situations
29361 where we might call an X method based on queued events for a
29362 window that already has been destroyed but we haven't yet pulled
29363 the destroy method from the queue.
29364 - Added a call to the new DestroyChildWindow() method to the drivers
29365 DestroyWindow code. Also now marking the destroyed window itself
29368 2005-12-20 Jackson Harper <jackson@ximian.com>
29371 * StatusBarPanel.cs: Don't calculate panel sizes on draw
29372 anymore. Just do them when needed, also track the rects of panels
29373 so that we can optimize refreshing more in the future.
29375 2005-12-20 Alexander Olk <alex.olk@googlemail.com>
29377 * ColorDialog.cs: Fixed focus drawing in small color controls
29379 2005-12-19 Jackson Harper <jackson@ximian.com>
29381 * InternalWindowManager.cs:
29382 * MdiWindowManager.cs: Cleanup some coordinate system changes so
29383 moving windows works properly.
29385 2005-12-19 Peter Dennis Bartok <pbartok@novell.com>
29388 - Removed call to InitLayout() from SetBoundsCore(); doc says
29389 it's only called when a control is added to a container
29390 - Split InitLayout logic, moved to separate UpdateDistances() method
29391 since we need to perform those calculations more often than just
29392 when adding the control to a container. (Needed to fix #77022)
29393 - Now calling UpdateDistances() from UpdateBounds() (fixes #77022)
29394 - Reduced the OnBindingContextChanged events count, don't send them
29395 unless the control is created, we still aren't totally matching
29396 MS, but I can't quite figure out some of their rules
29398 2005-12-18 Alexander Olk <alex.olk@googlemail.com>
29400 * ThemeClearlooks.cs: Corrected distance between ProgressBar
29403 2005-12-18 Alexander Olk <alex.olk@googlemail.com>
29405 * ThemeClearlooks.cs:
29406 - Updated ProgressBar drawing
29407 - Corrected drawing of ScrollBars and scroll buttons
29408 - Some temporary fixes for minor pixel artefacts
29410 2005-12-18 Peter Dennis Bartok <pbartok@novell.com>
29413 - Reworked Controls.Add(), Controls.Remove() and set_Parent() to
29414 cause events to be sent in the same order as MS does.
29415 - Added ChangeParent() method to trigger various OnXXXChanged events
29416 that need to be fired when a parent changes (This is a reworking
29417 of the patch from r54254, with the X11 errors fixed)
29418 - Removed SuspendLayout()/ResumeLayout() calls from Controls.Clear()
29419 since on MS we get OnLayoutChanged events when calling Clear()
29420 - Changed Enabled property to consider parent state as well, if a
29421 parent is not enabled, the control will not be either
29422 - Changed Parent property to simply call Controls.Add() since that
29423 now does all the work required, this way we avoid code duplication
29424 - Threw in a few OnBindingsContextChanged calls to try and match
29425 when MS sends them. We seem to send a few too many, though.
29426 - Added call to CreateControl when adding the control to a parent.
29427 We were never calling CreateControl. Still needs some work, in
29428 some places we treat HandleCreated and ControlCreated as equal,
29430 - Removed obsolete commented out code from UpdateZOrder()
29432 2005-12-18 Alexander Olk <alex.olk@googlemail.com>
29434 * ThemeClearlooks.cs: Updated TrackBar drawing.
29436 2005-12-17 Alexander Olk <alex.olk@googlemail.com>
29438 * FileDialog.cs: Patch for #76901 by Atsushi Enomoto
29440 2005-12-17 Alexander Olk <alex.olk@googlemail.com>
29442 * FileDialog.cs: Add the Help button and the open readonly
29443 checkbox only if needed
29445 2005-12-16 Jackson Harper <jackson@ximian.com>
29447 * Control.cs: Make sure we have an active menu before trying to
29448 process commands on it. Prevents menu-less forms from crashing
29449 when Alt is pressed.
29450 * TreeNodeCollection.cs: Some fixes to prevent null refs. Patch by
29452 * RichTextBox.cs: Expand statement to help out gmcs and fix the
29455 2005-12-16 Jackson Harper <jackson@ximian.com>
29457 * InternalWindowManager.cs: Don't translate tool windows screen
29458 coordinates. This fixes windows 'bouncing' around when being moved.
29460 2005-12-15 Peter Dennis Bartok <pbartok@novell.com>
29463 - MaxLength now treats 2^31-1 equal to unlimited length (this is
29464 not quite MS compatible, MS uses that number only for single line
29465 and 2^32-1 for multi-line, but I figure it won't hurt keeping
29467 - Now enforcing the MaxLength limit when entering characters
29468 - Added argument to internal Paste() method to track if it's called
29469 from programatically or via keyboard, since keyboard driven pastes
29470 need to enforce max-length
29471 - Added logic to Paste to only paste as many chars as MaxLength
29473 * RichTextBox.cs: Updated to use new obey argument for internal Paste()
29475 - Added Length property to return number of characters in document
29476 - Added private CharCount property which only tracks actual chars
29477 in the document (no linefeeds) and fires event when CharCount
29479 - Added tracking of character count to all methods that alter it
29480 - Added LengthChanged event to allow applications to subscribe
29481 to any changes to the document
29483 2005-12-15 Peter Dennis Bartok <pbartok@novell.com>
29486 - Removed local password_char field (moved to TextBoxBase)
29487 - Now setting the document's password var when password is
29490 - Added password_char field (needed here so MultiLine can
29492 - Added logic to MultiLine property setter to set the document's
29493 variable when password display is allowed
29494 - Removed debug code and made some debug code conditional
29496 - Added RecalculatePasswordLine() method to handle special password
29498 - Added PasswordChar property, also added related tracking vars
29499 - Draw() method now uses local text var for grabbing text to draw,
29500 this var is set to line.text unless we're doing password display,
29501 then it is set to the pre-generated all-password-chars line
29502 - Added calling RecalculatePasswordLine() method for password lines
29504 2005-12-14 Peter Dennis Bartok <pbartok@novell.com>
29507 - Added Reparented property to allow tracking of Window Manager
29508 reparenting actions (which affect X/Y calculations of toplevel
29510 - Made ToString() print window handles in hex
29512 - AddConfigureNotify(): Now uses reparented state off Hwnd to
29513 determine if X/Y needs offsetting
29514 - AddConfigureNotify(): Fixed offset calculations
29515 - Now adds ReparentNotify messages into the queue
29516 - Now processes ReparentNotify messages and causes a
29517 WM_WINDOWPOSCHANGED message to be sent upstream if a window
29518 is reparented (as most likely it's X/Y coordinates are changed
29521 2005-12-14 Jackson Harper <jackson@ximian.com>
29523 * XplatUIX11.cs: Tool windows still need to respek focus.
29525 2005-12-14 Peter Dennis Bartok <pbartok@novell.com>
29527 * Control.cs: Undid 54254 (causing XConfigure errors) so we can
29528 have a working release
29530 2005-12-13 Jackson Harper <jackson@ximian.com>
29532 * Form.cs: Update styles after setting the border style regardless
29533 of whether or not the window is using a window manager.
29535 2005-12-13 Jackson Harper <jackson@ximian.com>
29537 * Form.cs: We now hook into an internal window manager instead of just an
29538 MDI subsystem, this is so we can have properly behaving tool windows.
29539 * MdiClient.cs: Naming change, MdiChildContext is now WindowManager
29540 * InternalWindowManager.cs: New internal class that acts as a
29541 window manager for tool windows and as a base for mdi windows.
29542 * MdiWindowManager.cs: New class that acts as a window manager for
29545 2005-12-12 Jackson Harper <jackson@ximian.com>
29547 * Control.cs: Updates so we match behavoir for for implicit
29548 controls. Fixes explosions in MDI.
29550 2005-12-12 Jackson Harper <jackson@ximian.com>
29552 * Control.cs: Implement Invalidate (Region).
29554 2005-12-12 Peter Dennis Bartok <pbartok@novell.com>
29557 - Changed handling of Controls.Add/Controls.Remove to fire (almost)
29558 the same events as MS does. MS fires events for each property
29559 except, for unknown reasons, Cursor, when the control is reparented.
29560 I can't seem to totally match add/remove since MS also fires some
29561 VisibleChanged events, which makes no sense. Consolidated the
29562 parenting code into a separate method so it can be called from
29563 both Add and Remove. set_Parent no longer needs any special logic
29564 as it calls the parent's add method which implicitly fires
29566 - Removed some obsolete code and debug output
29567 - Enabled state is inherited from parents, if this is enabled
29569 2005-12-08 Peter Dennis Bartok <pbartok@novell.com>
29571 * Form.cs: Removed commented out code
29573 2005-12-08 Peter Dennis Bartok <pbartok@novell.com>
29576 - Added internal version of Invoke, with additional argument
29577 indicating if we're calling it from a Dispose() handler. That
29578 way we can avoid BeginInvoke throwing an exception if we're
29579 calling for an already destroyed window.
29580 - Added a dispose argument to BeginInvokeInternal, and made the
29581 check if a valid window handle chain exists conditional on
29582 it not being a dispose call
29583 - Removed code in DestroyHandle to destroy our children. Since we
29584 now handle the WM_DESTROY message we will catch all our children
29586 - Now calling OnHandleDestroyed from our new WM_DESTROY handler
29588 - Added a field to track the application context of the form.
29589 - No need to set closing variable as response to WM_CLOSE, instead
29590 we destroy the window. We also call PostQuitMessage if the form
29591 has an application context (which makes it the main app form,
29592 which, when closed terminates the app)
29594 - Dropped Exit() method, it's naming was confusing
29595 - Added PostQuitMessage() which causes GetMessage to return false
29596 once the message queue is empty
29597 * XplatUIDriver.cs, XplatUIWin32.cs: Dropped Exit(), added
29599 * XplatUIOSX.cs: Switched signature for Exit method since Exit() is
29600 no longer a valid XplatUI method, but left it in since it's used
29601 internally. Added empty PostQuitMessage() method.
29602 * MenuAPI.cs: Replaced call to Exit() with call to
29603 PostQuitMessage, even though this is probably no longer needed.
29604 * Hwnd.cs: Added 'pretty' ToString() to support debugging.
29605 * X11Structs.cs: Added pretty XEvent.ToString() to support debugging.
29607 - Replaced call to XplatUI.Exit() with PostQuitMessage()
29608 - Removed old debug code that would call XplatUI for exception
29609 display, enabled standard exception handling (Still not enabled
29610 though, until NativeWindow's ExternalExceptionHandler define
29613 - Added internal method to allow control to update NativeWindow
29614 after a window has been destroyed
29615 - Added handling of already destroyed windows when calling i
29617 - Added removal of handle from list on ReleaseHandle
29619 - Dropped GetMessageResult var and related code
29620 - Added PostQuitState to field to track if PostQuitMessage has been
29622 - Dropped Exit() method
29623 - Added PostQuitMessage() method
29624 - GetMessage now will return false if PostQuitState is set and no
29625 more messages are in the queue.
29626 - Expose handler will no longer generate WM_PAINT messages if we are
29627 in PostQuitState since it's very likely any windows have already
29628 been destroyed, and since Hwnd won't get updated until we have
29629 processed the DestroyNotify we'd be causing X errors.
29631 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
29633 * Control.cs(WndProc): Apparently I'm suffering from brain cloud.
29634 Thanks to Mike for pointing out the err of my ways.
29636 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
29638 * Control.cs(PreProcessMessage): Moved menu handling back, but
29639 after all other key handling, to match MS (who handles Menu in
29641 * Menu.cs (WndProc): Removed my brainfart
29643 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
29645 * Control.cs(PreProcessMessage): Removed special menu handling
29646 * Menu.cs (WndProc): Added handling of WM_SYSKEYUP for menu purposes.
29648 2005-12-07 Mike Kestner <mkestner@novell.com>
29650 * Control.cs : special case SYSKEYUP so that we can adjust keynav
29651 state according in tracker.
29652 * Menu.cs : promote tracker field to base class and provide a tracker
29653 lookup capability. Add/Remove shortcuts dynamically if the top menu
29654 has a tracker. Unparent items that are removed from the collection.
29655 * MenuAPI.cs : implement mnemonic, shortcut, and arrow-based keynav.
29656 * Theme*.cs: add always_show_hotkeys field to support configurability
29657 of mnemonic display. win32 doesn't show mnemonics until Alt is
29660 2005-12-07 Jackson Harper <jackson@ximian.com>
29662 * MdiChildContext.cs: Use Control.ResetCursor.
29663 * Control.cs: ResetCursor needs to set the property so that the
29664 correct XplatUI call gets made.
29666 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
29668 * Control.cs: More fixes to make our key events match MS. We
29669 were not setting the modifier state on KeyData, and we were
29670 not generating any events when Alt was pressed with a key
29671 since handling of WM_SYSxxx was missing for the OnKey methods.
29673 2005-12-07 Jackson Harper <jackson@ximian.com>
29675 * MdiChildContext.cs: reenable the sizing code.
29676 - When the mouse leaves a window reset its cursor.
29678 2005-12-07 Alexander Olk <alex.olk@googlemail.com>
29680 * ThemeClearlooks.cs: Reflect latest Hwnd changes
29682 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
29684 * Hwnd.cs: Now using the theme 3d bordersize to calculate
29685 widths of Fixed3D borders
29687 2005-12-07 Jackson Harper <jackson@ximian.com>
29689 * MdiClient.cs: Fix warnings. Earn Mike's love.
29691 2005-12-07 Alexander Olk <alex.olk@googlemail.com>
29693 * ThemeClearlooks.cs:
29694 - Adjusted mouse over button color
29695 - Added first parts of CheckBox drawing
29696 - Added correct color for selected text background
29697 - Fixed ComboBox drawing
29698 - Added CPDrawBorder3D and CPDrawBorder
29700 2005-12-06 Peter Dennis Bartok <pbartok@novell.com>
29702 * XplatUIX11.cs: Added call to XBell for AudibleAlert
29704 2005-12-06 Peter Dennis Bartok <pbartok@novell.com>
29706 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
29707 XplatUIOSX.cs: Added AudibleAlert() method to have a means to
29708 alert users via sound. We could add an enum arg with different
29709 types of alerts in the future
29711 2005-12-06 Peter Dennis Bartok <pbartok@novell.com>
29713 * Control.cs: Fix behaviour problems pointed out by Mike
29715 2005-12-05 Mike Kestner <mkestner@novell.com>
29717 * StatusBarPanel.cs: add Invalidate method and hook it into all the
29718 prop setters. Calls parent.Refresh for now, but could be maybe be
29719 optimized with an internal method on StatusBar at some point.
29722 2005-12-05 Peter Dennis Bartok <pbartok@novell.com>
29724 * RichTextBox.cs: Implemented get_SelectionColor
29726 2005-12-05 Alexander Olk <alex.olk@googlemail.com>
29728 * ThemeClearlooks.cs:
29729 - Removed dead code
29730 - Draw black button border only if button is Form.AcceptButton
29731 - Draw correct button color for pressed RadioButton if the mouse
29732 has entered the button
29733 - Updated ProgressBar drawing!
29734 - Updated CPDrawSizeGrip drawing
29735 - Updated StatusBarPanel drawing
29737 2005-12-05 Mike Kestner <mkestner@novell.com>
29739 * Control.cs (PreProcessMessage): add Keys.Alt based on LParam value.
29740 * X11Keyboard.cs (SendKeyboardInput): formal lParam for alt mod.
29742 2005-12-04 Alexander Olk <alex.olk@googlemail.com>
29744 * ThemeClearlooks.cs: Initial check-in, activate with
29745 export MONO_THEME=clearlooks
29746 * ThemeEngine.cs: Added ThemeClearlooks
29748 2005-12-03 Mike Kestner <mkestner@novell.com>
29750 * MenuAPI.cs: deactivate menus prior to calling item.PerformClick.
29753 2005-12-02 Jackson Harper <jackson@ximian.com>
29755 * Form.cs: If the child form has no menu the default main menu is
29756 used as the active menu.
29758 2005-12-02 Peter Dennis Bartok <pbartok@novell.com>
29760 * ListBox.cs: Check if any items exist before trying to resolve
29761 coordinates into items
29763 2005-12-02 Peter Dennis Bartok <pbartok@novell.com>
29765 * ThemeWin32Classic.cs: Hatchbrush on Win32 seems to always use white
29766 as the second color for the background hatch
29768 2005-12-02 Peter Dennis Bartok <pbartok@novell.com>
29770 * TextBoxBase.cs: Now uses Jackson's new and improved ImplicitScrollbar
29771 * RichTextBox.cs: FormatText position arguments are 1-based, now making
29772 sure that what we pass to FormatText is always 1-based. Fixes #76885
29774 2005-11-29 Miguel de Icaza <miguel@novell.com>
29776 * NumericUpDown.cs (EndInit): When we are done initializing,
29777 reflect any updates on the UI.
29779 2005-12-02 Jackson Harper <jackson@ximian.com>
29781 * ImplicitHScrollBar.cs:
29782 * ImplicitVScrollBar.cs: New scrollbars that don't take focus from
29783 their container controls.
29784 * TreeView.cs: Use the new implicit scrollbars.
29786 2005-12-02 Jackson Harper <jackson@ximian.com>
29788 * TreeView.cs: Make top_node internal so the TreeNodeCollections
29790 * TreeNodeCollection.cs: If we remove the topnode we need to
29791 update topnode to the next node in line.
29792 - When clearing nodes go through the same process as removing
29793 them, so they get depareneted and checked if they are top node.
29795 2005-12-01 Jackson Harper <jackson@ximian.com>
29797 * TreeView.cs: When imagelists are used the image area is
29798 selectable as well as the text.
29799 - If there are no selected nodes select the first one.
29800 * TreeNodeCollection.cs: Getting the TreeView is mildly expensive,
29801 so don't do it more then we need to.
29803 2005-12-01 Jackson Harper <jackson@ximian.com>
29805 * ThemeWin32Classic.cs: Reimplement the scroll arrow drawing so
29806 that arrows can be scaled.
29808 2005-12-01 Jackson Harper <jackson@ximian.com>
29810 * TreeNode.cs : Fixed bugs that caused FullPathTest + Traverse to
29811 fail. Patch by Dieter Bremes
29813 2005-11-30 Jackson Harper <jackson@ximian.com>
29815 * Form.cs: Property is 2.0 only
29816 * PrintDialog.cs: Signature fix.
29818 2005-11-30 Peter Dennis Bartok <pbartok@novell.com>
29821 - No longer artificially moves text 2 pixels down (now that we have
29822 borders this is no longer needed)
29823 - Added calcs for left, hanging and right indent
29825 2005-11-23 Mike Kestner <mkestner@novell.com>
29827 * Menu.cs: mark MenuChanged internal, since it's not exposed by MS.
29829 2005-11-30 Jackson Harper <jackson@ximian.com>
29831 * MdiChildContext.cs: Set the cloned menus forms, as these don't
29832 get cloned as part of CloneMenu ().
29833 * Menu.cs: Make sure the parent of the items get set correctly
29834 when they are added. And the owners are notified of the changes.
29835 * Form.cs: Create an ActiveMenu property, so that when MDI is used
29836 we can change the menu being displayed/handled by the form without
29837 changing the menu assosciated with the form.
29838 - Don't let Mdi children draw/handle menus.
29840 2005-11-30 Jackson Harper <jackson@ximian.com>
29842 * Menu.cs: Switch the MenuChanged method to OnMenuChanged and add
29843 a MenuChanged event. Just to make the API a little more
29846 * MenuItem.cs: Use the new OnMenuChanged
29847 * MdiChildContext.cs: Handle menu merging.
29848 * Form.cs: Implement MergedMenu.
29850 2005-11-30 Jackson Harper <jackson@ximian.com>
29852 * Menu.cs: We were misusing Add. Add goes behind the specified
29853 index according to the docs, and does not replace the specified
29854 index. So I added an Insert method.
29856 2005-11-30 Peter Dennis Bartok <pbartok@novell.com>
29858 * TextBoxBase.cs: Implemented Ctrl-Ins (Copy), Shift-Ins (Paste) and
29859 Shift-Del (Cut), apparently Emacs uses these old Win 2.x keys. This
29861 * RichTextBox.cs: Added calls to base for DnD events
29863 2005-11-28 Peter Dennis Bartok <pbartok@novell.com>
29866 - Fixed drag-selection related crash; style fixes
29867 - Implemented undo class
29868 o Implemented method to capture document state for specified
29869 range in document tree
29870 o Implemented method to restore captured document state
29871 o Implemented cursor tracking
29872 o Implemented basic undo stack
29873 - Added undo cursor tracking to methods altering cursor location
29874 - Added undo tracking to selection deletion (still missing
29875 other text-altering hookups)
29877 - Added SelectionLength property
29878 - Implemented CanPaste()
29879 - Implemented Paste()
29880 - Added missing protected methods
29881 - Fixed RTF->Document conversion; now uses font index 0 and color
29882 index 0 as the default font for the parsed text
29883 - Fixed RTF<->Document font size translation
29884 - Fixed RTF generation, now properly handles cross-tag boundaries
29885 for single line selection
29886 - No longer always appends blank line to generated RTF
29888 - Added missing attributes
29889 - Hooked up undo-related methods
29891 - Implemented Copy()
29892 - Implemented Paste()
29893 - Implemented Cut()
29894 - Fixed caret mis-behaviour on backspace across line-boundaries
29896 2005-11-29 Jackson Harper <jackson@ximian.com>
29898 * MdiClient.cs: Add a method for activating mdi children. Very
29899 basic right now. I imagine someday it might need more girth.
29900 * MenuItem.cs: Implement MDI lists. When mdilist is true the mdi
29901 children windows names are added to the menu item.
29902 * ThemeWin32Classic.cs: Draw the arrow if the item is an
29903 mdilist. This happens regardless of whether or not there are any
29904 mdi windows to see in the list, and according to my tests happens
29905 before the items are even added. Also happens if there isn't even
29906 an mdi client to get windows from.
29908 2005-11-29 Alexander Olk <alex.olk@googlemail.com>
29910 * ThemeWin32Classic.cs: Make DrawFlatStyleRadioButton protected
29911 * ThemeNice.cs: Fix drawing of flatstyle radiobuttons
29913 2005-11-29 Jordi Mas i Hernandez <jordimash@gmail.com>
29915 * DataGridTableStyle.cs:
29916 - Create always the styles for the missing columns even if they are
29917 provided by the user (not default table style)
29920 - Fixes SetDataBinding (always re-attach source)
29921 - Fixes SetNewDataSource (only clear styles if they are not for
29923 - Expands OnTableStylesCollectionChanged to handle style refresh
29924 and remove properly
29926 2005-11-29 Jackson Harper <jackson@ximian.com>
29928 * FileDialog.cs: Implement missing bits, remove some dead
29930 * FontDialog.cs: Implement missing Apply stuff, and ToString. Move
29931 creation of the panel so that the options set on the dialog are
29932 seen when the panel is created.
29933 * TreeView.cs: raise a click when items are clicked.
29935 2005-11-29 Jackson Harper <jackson@ximian.com>
29937 * MdiClient.cs: Pass some signature methods through to base.
29939 2005-11-28 Jackson Harper <jackson@ximian.com>
29941 * ListView.cs: Raise the click event when items are clicked.
29943 2005-11-28 Jackson Harper <jackson@ximian.com>
29945 * MdiClient.cs: Make this algorithm even more beautiful. And fix
29948 2005-11-27 Alexander Olk <alex.olk@googlemail.com>
29950 * ThemeNice.cs: - Removed 1 pixel bitmaps
29951 - Use SmoothingMode.AntiAlias where it makes sense
29952 (ScrollButton arrow for example)
29953 - Enhanced Button focus drawing
29954 - Fixed ComboBox drawing (no artefacts anymore, focus
29955 rectangle is back again, reduced size of ComboButton, etc.)
29956 - Fixed RadioButton focus drawing for Appearence.Button
29957 - Slight ScrollButton redesign
29958 - Some LinearGradientBrush size fixes
29959 - GroupBoxes have now rounded edges
29960 - Fixed StatusBar drawing
29962 2005-11-25 Alexander Olk <alex.olk@googlemail.com>
29964 * ThemeNice.cs: - Remove dead code
29965 - use correct background colors for menus, etc.
29966 - Fake pixel drawing with 1 pixel bitmaps
29968 2005-11-24 Jackson Harper <jackson@ximian.com>
29970 * MdiClient.cs: Size the scrollbars when resizing the window.
29971 - Resize the maximized windows when the client is resized
29972 * Form.cs: Make the child context available
29974 2005-11-23 Jackson Harper <jackson@ximian.com>
29976 * MdiChildContext.cs: Don't size windows if they are maximized.
29978 2005-11-23 Mike Kestner <mkestner@novell.com>
29980 * ContextMenu.cs: use MenuTracker.
29981 * Control.cs: remove menu handle usage.
29982 * Form.cs: remove menu handle usage.
29983 * Hwnd.cs: remove menu handle usage.
29984 * MainMenu.cs: Draw method moved here from MenuAPI.DrawMenuBar. Proxy
29985 motion and clicks to the new Tracker handlers.
29986 * Menu.cs: add sizing accessors, SelectedItem prop, kill CreateItems
29988 * MenuAPI.cs: refactored to combine popup and menubar event handling.
29989 Killed the MENU and MENUITEM data types and associated collections
29990 since we now keep the info on Menu and MenuItem. Expanded TRACKER into
29991 MenuTracker class that exposes the leftovers from the old MenuAPI
29992 static methods. Restructured Capture handling so that only one grab is
29993 done for the entire menu hierarchy instead of handing off grabs to
29994 submenus. Tracker now has an invisible control to Capture when active.
29995 * MenuItem.cs: add sizing accessors, kill Create
29997 * Theme.cs: remove menu handle and MENU(ITEM) usage.
29998 * ThemeWin32Classic.cs: use Menu/MenuItem sizing props instead of
29999 MENU(ITEM). remove menu handle usage, use Menu directly.
30000 * XplatUIDriver.cs: remove menu handle usage.
30001 * XplatUIOSX.cs: remove menu handle usage.
30002 * XplatUIWin32.cs: remove menu handle usage.
30003 * XplatUIX11.cs: remove menu handle usage.
30005 2005-11-22 Jackson Harper <jackson@ximian.com>
30007 * Hwnd.cs: Don't compute the menu size for
30008 DefaultClientRectangle.
30009 - Reenable menu sizes being computed for GetClienRectangle.
30010 * Form.cs: Remove comment of trechery
30012 2005-11-22 Jackson Harper <jackson@ximian.com>
30014 * Hwnd.cs: The adjustments for the menu bar are made when it is
30015 attached to the form.
30017 2005-11-19 Jackson Harper <jackson@ximian.com>
30019 * XplatUIX11.cs: Create an HGRN of the invalid area for WM_NCPAINT
30020 (just like on windows).
30022 2005-11-19 Jackson Harper <jackson@ximian.com>
30024 * MdiChildContext.cs: Handle all the buttons ourselves. We can't
30025 use real buttons anymore because they are in non client area. The
30026 one TODO here is that I need to somehow invalidate a section of
30027 the non client area.
30029 2005-11-18 Jackson Harper <jackson@ximian.com>
30031 * Control.cs: Put the enum check back in now that MDI doesnt have
30032 to use this to set border styles.
30033 * Form.cs: Only set mdi child windows borders if the handle has
30035 * MdiChildContext.cs: Don't set the InternalBorderStyle, just pass
30036 this directly on to the driver.
30037 - Get the move start position before adjusting for the titlebar
30038 height, this fixes the windows "skipping" when they are first
30041 2005-11-18 Jackson Harper <jackson@ximian.com>
30043 * XplatUIX11.cs: Just compute the mdi borders separately as they
30044 don't totally match up with normal form borders.
30046 2005-11-18 Jackson Harper <jackson@ximian.com>
30048 * Control.cs: Set WS_ styles for borders, so that the driver does
30049 not have to retrieve the control instance to figure out what kind
30050 of borders it should have.
30051 * Form.cs: Set the WS_EX_MDICHILD flag on mdi children, so the
30052 driver can know its an mdi child easily.
30053 * XplatUIX11.cs: Get the border styles and whether the window is
30054 MDI from the Styles and ExStyles params instead of having to get a
30055 control. This prevents a chicken and egg problem.
30057 2005-11-18 Jackson Harper <jackson@ximian.com>
30059 * MdiClient.cs: Fix typo so scrollbars show up correctly.
30061 2005-11-18 Jackson Harper <jackson@ximian.com>
30063 * MdiClient.cs: Calculate when to add and remove scrollbars
30065 * MdiChildContext.cs: Adjust the y position to take the titlebar
30067 - No height for FormBorderStyle.None
30069 2005-11-18 Jackson Harper <jackson@ximian.com>
30071 * Control.cs: Allow non enum values to be used for
30072 InternalBorderStyle. MDI does this to set a special border style.
30073 - New utility methods for converting points to/from client coords
30074 - Add the newly created control to the Controls collection before
30075 updating its style. This way UpdateStyle can walk the control
30076 heirarchy to find the control if needed.
30077 so I don't need to create a new Point object all the time.
30078 * Form.cs: Let MDI windows handle their border styles.
30079 - Set styles on MDI windows so the correct title style is derived.
30080 * MdiChildContext.cs: Move all the painting and window handling
30081 into the non client area.
30082 - Use correct sizing and put correct buttons on frames based on
30083 the FormBorderStyle.
30084 - Notify the mdi client about scrolling
30085 - Need to handle the buttons ourselves now, because they are all
30086 in non client areas and we can't add controls there.
30087 * MdiClient.cs: Halfway to scrolling, this implementation is
30088 somewhat broken though, we need to check to make sure other
30089 windows aren't causing scrolling before removing the bars. Also
30090 the bars need to be drawn on top, maybe I can switch implicit
30091 controls to be on top.
30092 * Hwnd.cs: caption_height and tool_caption_height are now
30093 properties of an hwnd, this way they can be set by the driver
30094 based on the type of window they are. In X11 the window manager
30095 handles the decorations so caption_height is zero unless its an
30097 - Add 3 pixel borders for MDI windows (0xFFFF).
30098 - Get rid of some code duplication, have DefaultClientRectanle
30099 just call GetClientRectangle.
30100 * XplatUIX11.cs: Pass caption_height and tool_caption_height to
30102 - Set border styles differently for mdi windows.
30103 * XplatUIOSX.cs: Pass caption_height and tool_caption_height to
30106 2005-11-15 Mike Kestner <mkestner@novell.com>
30108 * Menu.cs: when adding an item to the collection, if item is already
30109 parented, remove it from the parent.
30111 2005-11-13 Alexander Olk <alex.olk@googlemail.com>
30113 * X11DesktopColors.cs: Added KDE support
30115 2005-11-11 Peter Dennis Bartok <pbartok@novell.com>
30118 - Clipboard methods now can translate Rtf format
30119 - No longer removes clipboard contents whenever a new format is added
30120 to allow placing multiple formats on the clipboard
30121 * Clipboard.cs: Clipboard now supports getting a IDataObject and
30122 will place all formats contained in it onto the clipboard. Also
30123 now cleans the clipboard before placing a new object onto it
30125 - Implemented set_Rtf
30126 - Implemented set_SelectedRtf
30127 - Created InsertRTFFromStream() method to allow single code base
30128 for all properties and methods that insert RTF into document
30129 - Removed debug output
30131 - Fixed Delete(int) to fix up line numbers
30132 - Fixed ReplaceSelection to combine start and end line
30133 - Fixed serious DeleteChars bug that would leave the document tree
30135 - Improved DumpTree with several logic checks to detect broken
30137 - Removed debug lines
30138 - Fixed Caret.WordForward/WordBack moving code, now always also
30139 updates caret.tag (fixes crash when word-selecting across tag
30140 boundaries via keyboard)
30141 - Added Insert() method for inserting multiline text into documents
30142 - Fixed DeleteChars() calculation errors that would cause a broken
30143 tag chain with multiple tag lines
30144 - DeleteChars() no longer crashes on multi-tag lines if not all tags
30145 - Split() no longer moves caret if split is at caret location
30146 - ReplaceSelection() now updates the cursor and re-displays it
30147 - ReplaceSelection() now uses new Insert() method to avoid code
30149 - FormatText() can now handle formatting partial lines
30151 - Append now uses new TextControl.Insert() method (this avoids
30153 - Implemented Ctrl-X (Cut) (
30154 - Implemented Ctrl-C (Copy)
30155 - Implemented Ctrl-V (Paste) (Still some bugs related to screen
30156 regeneration when pasting text; roundtripping Copy&Paste within
30157 edit control still fails due to some calculation bugs in GenerateRTF)
30158 - The Delete key will now remove the current selection if it is visible
30159 * TextBox.cs: Removed debug lines
30160 * XplatUI.cs: Trigger initialization of DataFormats (which requires the
30161 driver to be initialized and can't therefore be done via a static ctor)
30163 2005-11-10 Peter Dennis Bartok <pbartok@novell.com>
30165 * TextControl.cs: Added backend code for finding char arrays and strings
30167 - Added mouse wheel scroll support
30168 - Added support for VScroll and HScroll events
30170 - Implemented all seven Find() variants
30171 - Implemented GetCharFromPosition()
30172 - Implemented GetCharIndexFromPosition()
30173 - Implemented GetLineFromIndex()
30174 - Implemented GetPositionFromCharIndex();
30175 - Implemented SaveFile for PlainText and UnicodeText
30176 - Fixed set_Font, now setting a new font applies that font to
30178 - Implemented generic Document to RTF converter
30179 - Implemented SaveFile for RichText format (still missing unicode
30180 conversion for non-ansi chars)
30181 - Implemented get_Rtf
30182 - Implemented get_SelectedRtf
30184 2005-11-09 Peter Dennis Bartok <pbartok@novell.com>
30186 * Control.cs (WndProc): Call HandleClick after having sent OnMouseUp
30187 to allow any captures to be released before triggering OnClick. This
30188 way a click handler may capture the mouse without interference.
30189 * XplatUIX11.cs: Always send mouse messages to grab window if one exists.
30190 This way we send them even though X may not allow a grab (if the window
30191 isn't visible, for example)
30193 2005-11-08 Pedro Martinez Julia <pedromj@gmail.com>
30195 * DataGridViewRowEventArgs.cs: DataGridView implementation
30196 * DataGridViewElement.cs: DataGridView implementation
30197 * DataGridViewComboBoxCell.cs: DataGridView implementation
30198 * DataGridViewDataErrorContexts.cs: DataGridView implementation
30199 * DataGridViewCellErrorTextNeededEventArgs.cs: DataGridView implementation
30200 * DataGridViewColumnHeadersHeightSizeMode.cs: DataGridView implementation
30201 * ImageLayout.cs: DataGridView implementation
30202 * DataGridViewComboBoxColumn.cs: DataGridView implementation
30203 * DataGridViewCellMouseEventHandler.cs: DataGridView implementation
30204 * DataGridViewSelectionMode.cs: DataGridView implementation
30205 * IDataGridViewEditingControl.cs: DataGridView implementation
30206 * DataGridViewSortCompareEventHandler.cs: DataGridView implementation
30207 * DataGridViewCellStyleContentChangedEventHandler.cs: DataGridView implementation
30208 * DataGridViewAutoSizeModeEventHandler.cs: DataGridView implementation
30209 * DataGridViewColumnStateChangedEventHandler.cs: DataGridView implementation
30210 * DataGridViewColumnSortMode.cs: DataGridView implementation
30211 * DataGridView.cs: DataGridView implementation
30212 * DataGridViewRowStateChangedEventHandler.cs: DataGridView implementation
30213 * DataGridViewRowPostPaintEventArgs.cs: DataGridView implementation
30214 * DataGridViewDataErrorEventArgs.cs: DataGridView implementation
30215 * Padding.cs: DataGridView implementation
30216 * DataGridViewCellParsingEventArgs.cs: DataGridView implementation
30217 * DataGridViewCellStateChangedEventHandler.cs: DataGridView implementation
30218 * DataGridViewRowEventHandler.cs: DataGridView implementation
30219 * DataGridViewCellPaintingEventHandler.cs: DataGridView implementation
30220 * DataGridViewCellFormattingEventHandler.cs: DataGridView implementation
30221 * DataGridViewButtonCell.cs: DataGridView implementation
30222 * DataGridViewCellStyleContentChangedEventArgs.cs: DataGridView implementation
30223 * DataGridViewEditMode.cs: DataGridView implementation
30224 * DataGridViewCellValueEventArgs.cs: DataGridView implementation
30225 * DataGridViewRowCancelEventArgs.cs: DataGridView implementation
30226 * DataGridViewRowHeadersWidthSizeMode.cs: DataGridView implementation
30227 * DataGridViewCheckBoxColumn.cs: DataGridView implementation
30228 * DataGridViewCellToolTipTextNeededEventHandler.cs: DataGridView implementation
30229 * DataGridViewAutoSizeColumnsMode.cs: DataGridView implementation
30230 * DataGridViewCellEventHandler.cs: DataGridView implementation
30231 * DataGridViewEditingControlShowingEventHandler.cs: DataGridView implementation
30232 * DataGridViewCellStyleConverter.cs: DataGridView implementation
30233 * DataGridViewSelectedRowCollection.cs: DataGridView implementation
30234 * DataGridViewBindingCompleteEventHandler.cs: DataGridView implementation
30235 * DataGridViewColumnEventArgs.cs: DataGridView implementation
30236 * DataGridViewRowHeightInfoPushedEventHandler.cs: DataGridView implementation
30237 * DataGridViewRowContextMenuStripNeededEventHandler.cs: DataGridView implementation
30238 * QuestionEventArgs.cs: DataGridView implementation
30239 * IDataGridViewEditingCell.cs: DataGridView implementation
30240 * DataGridViewTriState.cs: DataGridView implementation
30241 * DataGridViewColumnDesignTimeVisibleAttribute.cs: DataGridView implementation
30242 * DataGridViewCellStateChangedEventArgs.cs: DataGridView implementation
30243 * DataGridViewColumnCollection.cs: DataGridView implementation
30244 * DataGridViewCellValueEventHandler.cs: DataGridView implementation
30245 * DataGridViewRowDividerDoubleClickEventHandler.cs: DataGridView implementation
30246 * DataGridViewCellFormattingEventArgs.cs: DataGridView implementation
30247 * DataGridViewColumn.cs: DataGridView implementation
30248 * DataGridViewCellBorderStyle.cs: DataGridView implementation
30249 * DataGridViewCellContextMenuStripNeededEventHandler.cs: DataGridView implementation
30250 * DataGridViewCellValidatingEventArgs.cs: DataGridView implementation
30251 * DataGridViewRow.cs: DataGridView implementation
30252 * DataGridViewImageCellLayout.cs: DataGridView implementation
30253 * DataGridViewImageCell.cs: DataGridView implementation
30254 * DataGridViewTopLeftHeaderCell.cs: DataGridView implementation
30255 * DataGridViewCheckBoxCell.cs: DataGridView implementation
30256 * DataGridViewHeaderCell.cs: DataGridView implementation
30257 * DataGridViewCellErrorTextNeededEventHandler.cs: DataGridView implementation
30258 * DataGridViewRowHeightInfoPushedEventArgs.cs: DataGridView implementation
30259 * DataGridViewAutoSizeColumnsModeEventHandler.cs: DataGridView implementation
30260 * DataGridViewTextBoxColumn.cs: DataGridView implementation
30261 * QuestionEventHandler.cs: DataGridView implementation
30262 * DataGridViewCellStyleScopes.cs: DataGridView implementation
30263 * DataGridViewSortCompareEventArgs.cs: DataGridView implementation
30264 * DataGridViewCellContextMenuStripNeededEventArgs.cs: DataGridView implementation
30265 * DataGridViewCell.cs: DataGridView implementation
30266 * DataGridViewCellEventArgs.cs: DataGridView implementation
30267 * DataGridViewClipboardCopyMode.cs: DataGridView implementation
30268 * DataGridViewCellStyle.cs: DataGridView implementation
30269 * DataGridViewColumnHeaderCell.cs: DataGridView implementation
30270 * DataGridViewRowPrePaintEventHandler.cs: DataGridView implementation
30271 * DataGridViewRowCancelEventHandler.cs: DataGridView implementation
30272 * TextFormatFlags.cs: DataGridView implementation
30273 * DataGridViewCellToolTipTextNeededEventArgs.cs: DataGridView implementation
30274 * DataGridViewDataErrorEventHandler.cs: DataGridView implementation
30275 * DataGridViewAdvancedCellBorderStyle.cs: DataGridView implementation
30276 * DataGridViewCellPaintingEventArgs.cs: DataGridView implementation
30277 * DataGridViewButtonColumn.cs: DataGridView implementation
30278 * DataGridViewRowsRemovedEventArgs.cs: DataGridView implementation
30279 * HandledMouseEventArgs.cs: DataGridView implementation
30280 * DataGridViewCellParsingEventHandler.cs: DataGridView implementation
30281 * DataGridViewColumnDividerDoubleClickEventHandler.cs: DataGridView implementation
30282 * DataGridViewCellMouseEventArgs.cs: DataGridView implementation
30283 * DataGridViewAutoSizeRowsMode.cs: DataGridView implementation
30284 * DataGridViewRowCollection.cs: DataGridView implementation
30285 * DataGridViewAdvancedBorderStyle.cs: DataGridView implementation
30286 * DataGridViewCellCancelEventHandler.cs: DataGridView implementation
30287 * DataGridViewHitTestType.cs: DataGridView implementation
30288 * DataGridViewAutoSizeModeEventArgs.cs: DataGridView implementation
30289 * DataGridViewColumnStateChangedEventArgs.cs: DataGridView implementation
30290 * DataGridViewColumnEventHandler.cs: DataGridView implementation
30291 * DataGridViewRowDividerDoubleClickEventArgs.cs: DataGridView implementation
30292 * DataGridViewAutoSizeRowMode.cs: DataGridView implementation
30293 * DataGridViewRowHeightInfoNeededEventArgs.cs: DataGridView implementation
30294 * DataGridViewRowsDeletedEventArgs.cs: DataGridView implementation
30295 * DataGridViewTextBoxEditingControl.cs: DataGridView implementation
30296 * DataGridViewContentAlignment.cs: DataGridView implementation
30297 * DataGridViewRowPostPaintEventHandler.cs: DataGridView implementation
30298 * DataGridViewComboBoxEditingControl.cs: DataGridView implementation
30299 * DataGridViewCellValidatingEventHandler.cs: DataGridView implementation
30300 * DataGridViewSelectedColumnCollection.cs: DataGridView implementation
30301 * DataGridViewPaintParts.cs: DataGridView implementation
30302 * DataGridViewCellCollection.cs: DataGridView implementation
30303 * DataGridViewRowsAddedEventArgs.cs: DataGridView implementation
30304 * DataGridViewImageColumn.cs: DataGridView implementation
30305 * DataGridViewRowsRemovedEventHandler.cs: DataGridView implementation
30306 * DataGridViewElementStates.cs: DataGridView implementation
30307 * DataGridViewRowHeightInfoNeededEventHandler.cs: DataGridView implementation
30308 * DataGridViewColumnDividerDoubleClickEventArgs.cs: DataGridView implementation
30309 * DataGridViewRowPrePaintEventArgs.cs: DataGridView implementation
30310 * DataGridViewRowStateChangedEventArgs.cs: DataGridView implementation
30311 * DataGridViewEditingControlShowingEventArgs.cs: DataGridView implementation
30312 * DataGridViewCellCancelEventArgs.cs: DataGridView implementation
30313 * DataGridViewRowHeaderCell.cs: DataGridView implementation
30314 * DataGridViewBindingCompleteEventArgs.cs: DataGridView implementation
30315 * DataGridViewTextBoxCell.cs: DataGridView implementation
30316 * DataGridViewBand.cs: DataGridView implementation
30317 * DataGridViewAutoSizeColumnModeEventArgs.cs: DataGridView implementation
30318 * DataGridViewHeaderBorderStyle.cs: DataGridView implementation
30319 * DataGridViewRowsAddedEventHandler.cs: DataGridView implementation
30320 * DataGridViewAutoSizeColumnMode.cs: DataGridView implementation
30321 * DataGridViewAutoSizeColumnModeEventHandler.cs: DataGridView implementation
30322 * DataGridViewAutoSizeColumnsModeEventArgs.cs: DataGridView implementation
30323 * DataGridViewRowErrorTextNeededEventHandler.cs: DataGridView implementation
30324 * DataGridViewSelectedCellCollection.cs: DataGridView implementation
30325 * DataGridViewRowContextMenuStripNeededEventArgs.cs: DataGridView implementation
30326 * DataGridViewRowErrorTextNeededEventArgs.cs: DataGridView implementation
30327 * DataGridViewComboBoxDisplayStyle.cs: DataGridView implementation
30329 2005-11-08 Peter Dennis Bartok <pbartok@novell.com>
30331 * ThemeWin32Classic.cs:
30332 - Draw the outside focus rectangle around buttons
30333 - Use CPDrawFocusRectangle to draw focus rectangles until Cairo
30334 doesn't use end caps for every dash of a line anymore. This
30335 workaround ignores the forecolor.
30337 2005-11-08 Kornél Pál <kornelpal@hotmail.com>
30339 * ImageList.cs: Don't use ArgbColor with LayoutKind.Explicit as it isn't
30342 2005-11-07 Jackson Harper <jackson@ximian.com>
30344 * X11Dnd.cs: Set the X/Y positions on the DragEventArgs correctly.
30346 2005-11-07 Jackson Harper <jackson@ximian.com>
30348 * ScrollableControl.cs: Calculate the maximum and change vars
30349 (more) correctly so that scrollbars appear as a sensible size.
30351 2005-11-04 Jackson Harper <jackson@ximian.com>
30353 * TreeNodeCollection.cs: Refresh when nodes are cleared from the
30355 * TreeView.cs: When the tree is sorted null out the top_node so
30356 that it is recalculated.
30357 - Use dotted lines instead of dashed lines to match MS better.
30359 2005-11-04 Jordi Mas i Hernandez <jordimash@gmail.com>
30362 - Implements key search for items. Useful when browsing files with FileDialog
30363 - When changing view mode or when clear the items reset scrollbar positions
30365 2005-11-04 Jackson Harper <jackson@ximian.com>
30367 * CurrencyManager.cs: Implement the MetaDataChanged event, the
30368 Reset method, and the CheckEmpty. CheckEmpty is just a total guess
30369 as to what the method may do as there is no real way of creating a
30370 derived CurrencyManager and calling the method.
30372 2005-11-03 Jackson Harper <jackson@ximian.com>
30374 * ThemeWin32Classic.cs: Implement ownerdrawing in the tab control
30375 * TabControl.cs: Add Ownerdrawing bits, add the UpdateTabSelection
30376 method which seems to just be used internally to refresh the tabs.
30378 2005-11-03 Jackson Harper <jackson@ximian.com>
30380 * TabControl.cs: Implement the remove method. Fix some broken
30383 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
30385 * DateTimePicker.cs:
30386 - Added missing DateTimePickerAccessibleObject class
30387 - Added missing events
30388 - Added OnFontChanged method
30389 * Form.cs: Added missing attributes
30390 * TreeView.cs: Added missing attributes
30392 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
30394 * GridItemCollection.cs: Fix signatures
30396 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
30398 * XplatUI.cs: Updated build rev/date
30399 * ComboBox.cs, DataGridTextBoxColumn.cs Control.cs,
30400 DataGridTableStyle.cs, DataGrid.cs, DateTimePicker.cs: Signature fixes
30401 * Application.cs: Trigger context-specific ExitThread events
30403 2005-11-03 Jackson Harper <jackson@ximian.com>
30407 * GridTableStylesCollection.cs:
30412 * MonthCalendar.cs: Signature fixes
30414 2005-11-03 Jackson Harper <jackson@ximian.com>
30416 * TreeNodeCollection.cs: Remove should not be virtual.
30417 * TreeView.cs: Implement the last of the missing methods.
30419 2005-11-03 Jackson Harper <jackson@ximian.com>
30421 * TreeNodeConverter.cs: Implement to get off my class-status back.
30423 2005-11-03 Jackson Harper <jackson@ximian.com>
30425 * TreeView.cs: Hookup the bits for drag and drop.
30426 * TreeNode.cs: Don't cache the tree_view or index anymore, now
30427 that nodes can be moved from tree to tree easily this just causes
30428 all sorts of problems.
30429 * TreeNodeCollection: Don't need to give treenodes an index and
30430 treeview anymore when they are added, these are computed on the
30431 fly. Also make sure to remove a node before its added.
30433 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
30436 - Added CaretSelection enum
30437 - Added comparison methods to Marker struct, makes selection code
30439 - Added SelectionStart and SelectionEnd as 'moveable' location for
30440 the CaretDirection enum and handler
30441 - Added selection_prev variable to track optimized invalidation for
30442 word and line selection
30443 - Added SelectionVisible property (returns true if there is a valid
30445 - Switched CaretHasFocus to only display the caret if there is no
30447 - Avoiding StringBuilder.ToString to retrieve a single char, instead
30448 using the direct character index; should be much faster
30449 - Added various conditional debug statements
30450 - Fixed invalidation calculation for selection ranges
30451 - Added ExpandSelection() method to support word and line selection
30452 - Switched SetSelectionToCaret to use new Marker compare overloads
30453 - Added central IsWordSeparator() method to determine word
30454 separators/whitespace and FindWordSeparator() to streamline common
30455 usage of IsWordSeparator()
30457 - Removed unneeded grabbed variable, it was just mirroring
30459 - No longer firing OnTextChanged event when Text setter is called,
30460 since the base will fire the event for us
30461 - Added handling of Ctrl-Up/Down selection
30462 - Added handling of Shift-Cursorkey selection
30463 - Added handling for Ctrl-Delete and Ctrl-Backspace to remove
30465 - Added handling of Shift and Ctrl-Shift-Home/End selection
30466 - Removed some debug output
30467 - Added handling for single/double/tripple-click to place caret/
30468 select word/select line respectively (Fixes bug #76031)
30469 - Added support for drag expansion of word/line selection
30470 * RichTextBox.cs: Handle GotFocus event to trigger redrawing of
30473 2005-11-02 Jackson Harper <jackson@ximian.com>
30475 * X11Dnd.cs: If the drag is going to and from a MWF window just
30476 copy the data instead of sending it out through the X Selection
30479 2005-11-02 Jackson Harper <jackson@ximian.com>
30482 * XplatUIX11.cs: When in a drag we don't want motion notify
30483 messages to get passed on to the other controls. This prevents
30484 mouse move messages from showing up in the drag source.
30486 2005-11-02 Jackson Harper <jackson@ximian.com>
30488 * X11Dnd.cs: Remove unneeded call to XAllowEvents. Make sure that
30489 the correct button is release to end a drag.
30490 * XplatUIX11.cs: Make the button state internal so the drag system
30491 can access it. Dragging needs to know about all button releases,
30492 not just left button.
30494 2005-11-02 Miguel de Icaza <miguel@novell.com>
30496 * Form.cs (Icon): If the icon is null, reset the icon to the
30499 * Cursor.cs: When writing the AND-mask bitmap do not include the
30500 number of colors, but hardcode those to two (black and white),
30501 fixes the loading of color cursors (Paint Dot Net).
30503 * Form.cs: To debug, allow MONO_MWF_SCALING=disable variable to
30504 turn off autoscaling.
30506 * Cursor.cs: Allow resource type to be 1 or 2 (from ImageMagic).
30508 2005-11-02 Jackson Harper <jackson@ximian.com>
30510 * X11Dnd.cs: Make sure to send a status message if the pointer
30511 enters a control that can not accept a drop, otherwise the cursor
30512 isn't updated correctly. Also tried to compress the lines of code
30515 2005-11-02 Jackson Harper <jackson@ximian.com>
30517 * X11Dnd.cs: Change cursors based on drag action. Also attempt to
30518 set actions correctly. This isn't perfect as XDND and win32 have
30519 some differences on how you allow actions. I'll clear this up by
30520 adding a path for drag from MWF to MWF windows.
30521 * XplatUIX11.cs: Hook into the dnd system.
30523 2005-11-02 Jordi Mas i Hernandez <jmas@softcatala.org>
30525 * ListView.cs: Fixes scroll bar visibility. Hide them if they were
30526 previously shown but they are no longer need it. Very obvious when
30527 browsing files with FileDialog.
30529 2005-11-01 Peter Dennis Bartok <pbartok@novell.com>
30531 * Control.cs: We always need to call OnPaintBackground. We pretty much
30532 ignore AllPaintingInWmPaint and always do the painting there, whether
30533 it's set or not, since we always ignore the WM_ERASEBKGND message
30534 (which we don't generate on X11). This fixes #76616.
30535 * Panel.cs: Removed unneeded background painting. This happens properly
30536 in Control.cs already
30538 2005-10-31 Mike Kestner <mkestner@novell.com>
30540 * Menu.cs: Add items to collection before setting their index.
30541 * MenuItem.cs : add range checking with ArgumentException like MS.
30544 2005-10-31 Jackson Harper <jackson@ximian.com>
30546 * ListBox.cs: Invalidate if the area is visible at all not just
30547 contained in the visible rect. Fixes unselection of semi visible
30550 2005-10-31 Jackson Harper <jackson@ximian.com>
30552 * Control.cs: Consistently name the dnd methods. Make them
30553 internal so we can override them to match some MS behavoir
30555 * Win32DnD.cs: Use the new consistent names.
30557 2005-10-31 Jackson Harper <jackson@ximian.com>
30559 * TreeView.cs: Don't draw the selected node when we lose focus.
30561 2005-10-31 Jackson Harper <jackson@ximian.com>
30563 * X11Dnd.cs: We still need to reset the state even though a full
30564 reset isn't being done, otherwise status's still get sent all over
30567 2005-10-31 Jackson Harper <jackson@ximian.com>
30569 * Control.cs: Make the dnd_aware flag internal so the dnd
30570 subsystem can check it. Catch exceptions thrown in dnd handlers to
30572 * Hwnd.cs: Add a flag for whether or not a window is dnd aware.
30573 * X11Dnd.cs: Handle null data in the converters. Set the XDND
30574 version when sending a XdndEnter. Use the control/hwnd dnd_aware
30575 flags to reduce the number of dnd enters/status's sent.
30577 2005-10-31 Jackson Harper <jackson@ximian.com>
30579 * X11Dnd.cs: Don't need the sizeof here. Patch by Jordi Mas.
30581 2005-10-31 Jordi Mas i Hernandez <jordi@ximian.com>
30583 * PictureBox.cs: Fixes 76512
30585 2005-10-28 Jackson Harper <jackson@ximian.com>
30587 * X11Dnd.cs: Early implementation to support winforms being a drag
30588 source for data on X11. Also restructured the converters so they
30589 can go both ways now.
30590 * XplatUIX11.cs: Tie ins to the the Dnd stuff.
30592 2005-10-27 Peter Dennis Bartok <pbartok@novell.com>
30594 * XplatUIX11.cs: Fixed FIXME - implemented ASCII encoding for XA_STRING
30597 2005-10-27 Jackson Harper <jackson@ximian.com>
30599 * TreeNode.cs: Implement serialization so my DnD examples will work.
30601 2005-10-24 Kornél Pál <kornelpal@hotmail.com>
30603 * ButtonBase.cs, ListView.cs, NotifyIcon.cs, PictureBox.cs, ToolBar.cs,
30604 TreeView.cs: Don't dispose objects that are not owned.
30606 2005-10-24 Peter Dennis Bartok <pbartok@novell.com>
30608 * Cursor.cs: Defaulting the Current cursor to Cursors.Default. We
30609 should retrieve the current cursor and report that, but XplatUI
30610 doesn't (yet) have an interface for that (and I'm not sure I even
30612 * XplatUIWin32.cs: Fixed override behaviour. The override is temporary,
30613 until any message loop processing is done (and the WM_SETCURSOR
30614 replaces the cursor to the proper one)
30616 - Fixed override behaviour, we can't set the cursor globally on X11,
30617 just for our windows.
30618 - Invalidating the System.Drawing X11 display handle when we are
30620 * Control.cs: Fix to make csc happy
30622 2005-10-23 Peter Dennis Bartok <pbartok@novell.com>
30625 - get_Text: Add last line (without trailing newline) to returned
30626 value (Fixes 76212)
30627 - get_TextLength: Count last line in returned length
30628 - ToString: Call Text property instead of duplicating code
30630 2005-10-23 Kornél Pál <kornelpal@hotmail.com>
30632 * ImageList.cs: Dispose ImageAttributes objects.
30634 2005-10-22 Kornél Pál <kornelpal@hotmail.com>
30636 * ImageList.cs: Use attribute constructors with less arguments where
30639 2005-10-22 Kornél Pál <kornelpal@hotmail.com>
30641 * ImageList.cs: Added lastKeyIndex field and use in IndexOfKey.
30642 Use typeof instead of strings when assembly is referenced. Added
30643 some more comments.
30645 2005-10-21 Jackson Harper <jackson@ximian.com>
30647 * ListView.cs: Raise a double click event. Also tried to somewhat
30648 fix when the selectedindexchanged event is raised. Its still
30651 2005-10-21 Jackson Harper <jackson@ximian.com>
30653 * TreeView.cs: New method to invalidate the plus minus area of a
30654 node without invalidating the whole node (maybe this can be used
30655 in some more places).
30656 * TreeNodeCollection.cs: When adding to an empty node we need to
30657 invalidate its plus minus area so the little block shows up.
30659 2005-10-21 Jackson Harper <jackson@ximian.com>
30661 * TreeView.cs: Make sure that when we invalidate a node the bounds
30662 are big enough to cover the selected box and the focus
30663 rectangle. Use a different colour for the lines connecting nodes
30664 so they show up with all themes.
30666 2005-10-21 Peter Dennis Bartok <pbartok@novell.com>
30668 * NativeWindow.cs: Don't call anything that could call into the driver,
30669 we might be on a different thread.
30671 2005-10-21 Peter Dennis Bartok <pbartok@novell.com>
30673 * Control.cs(Dispose): Since Dispose might run on a different thread,
30674 make sure that we call methods that could call into the driver via
30675 invoke, to avoid thread issues
30677 2005-10-21 Peter Dennis Bartok <pbartok@novell.com>
30679 * XplatUI.cs: Removed finalizer
30680 * XplatUIX11.cs: Removed Destructor, was causing crashes due to X11
30681 not allowing to be called on the finalizer thread.
30683 2005-10-21 Kornél Pál <kornelpal@hotmail.com>
30686 - Reverted r51889 and r51891.
30687 - Added ImageListItem class that stores unmodified image items and image
30688 properties required to create list images until handle is created.
30689 - Added AddItem and moved image creation logic to AddItemInternal.
30690 - Added CreateHandle method that creates images based on unmodified items.
30691 - Added DestroyHandle that changes state to store unmodified items.
30692 - Add and AddStrip methods no more create handle.
30693 - ReduceColorDepth has no return value.
30694 - Dispose destroys handle.
30695 - Modified other methods to reflect the above changes.
30696 - Implemented key support.
30697 - Added profile 2.0 members and attributes.
30698 - Added private Reset and ShouldSerialize methods that provide the same
30699 behavior as MS.NET but the Visual Studio .NET designer seems to ignore
30700 them as they are private.
30701 - Added some more comments about implementation details.
30703 2005-10-21 Jordi Mas i Hernandez <jordi@ximian.com>
30705 * DataGrid.cs: Adds support for vertical scrolling using the mousewheel
30707 2005-10-21 Jordi Mas i Hernandez <jordi@ximian.com>
30709 * Binding.cs: No PushData/PullData if there is no binding (fixes crash)
30711 2005-10-21 Jordi Mas i Hernandez <jordi@ximian.com>
30713 * DataGridDrawingLogic.cs: Fixes column hit calcultation
30714 * DataGridColumnStyle.cs: Remove debug message
30716 2005-10-20 Jackson Harper <jackson@ximian.com>
30718 * TreeView.cs: We can always get input keys regardless of whether
30719 or not editing is enabled. They are used for navigation.
30721 2005-10-20 Jackson Harper <jackson@ximian.com>
30723 * TreeNode.cs: Use the viewport rect for determining if a node
30724 needs to be moved for visibility. Don't use Begin/End edit. This
30725 calls a full refresh when its done.
30726 * TreeView.cs: New SetBottom works correctly. Make the viewport
30727 rect property internal so the treenodes can see it. When clicking
30728 on a node we need to ensure that its visible because it might just
30729 be partly visible when clicked.
30731 2005-10-20 Jackson Harper <jackson@ximian.com>
30733 * TreeNodeCollection.cs: Remove debug code.
30735 2005-10-20 Jordi Mas i Hernandez <jordi@ximian.com>
30737 * Datagrid.cs: Implements column sorting in Datagrid
30738 * DataGridColumnStyle.cs: Implements column sorting in Datagrid
30740 2005-10-20 Jackson Harper <jackson@ximian.com>
30742 * TreeNodeCollection.cs: Remove items properly. Update the correct
30743 area after removing them.
30745 2005-10-20 Jordi Mas i Hernandez <jordi@ximian.com>
30747 * Datagrid.cs: Should not call base.OnPaintBackground
30749 2005-10-20 Peter Dennis Bartok <pbartok@novell.com>
30751 * XplatUIX11.cs (GetMessage):
30752 - Now properly calculates NC_xBUTTONDOWN coordinates off the whole
30753 window instead of client window
30754 - Now properly calculates NC_xBUTTONUP message coordinates
30755 - ScreenToMenu now properly calculates it's coordinates of whole
30756 window, since menus are in the whole window, not in the client
30758 - Added WholeToScreen coordinate translation method
30760 2005-10-20 Peter Dennis Bartok <pbartok@novell.com>
30762 * XplatUIX11.cs (GetMessage): Don't return in situations where we don't
30763 want to return a message, loop back to the beginning of the function
30764 and grab the next real message to process instead.
30766 2005-10-20 Peter Dennis Bartok <pbartok@novell.com>
30768 * Splitter.cs: Properly set limits if no filler control is used
30770 2005-10-19 Jackson Harper <jackson@ximian.com>
30772 * ColorDialog.cs: Don't show the help button if it is not enabled
30773 instead of disabling it (this is what MS does). Don't create the
30774 panel until the dialog is run, otherwise the vars (such as
30775 ShowHelp) are not set yet.
30777 2005-10-19 Jackson Harper <jackson@ximian.com>
30779 * TreeView.cs: Implement Begin/EndEdit more correctly so refreshes
30780 are reduced when adding nodes.
30782 * TreeNodeCollection.cs: Use UpdateNode instead of refreshing the
30785 2005-10-19 Jackson Harper <jackson@ximian.com>
30787 * FolderBrowserDialog.cs: End editing our treeview so the window
30788 actually gets refreshed.
30790 2005-10-18 Peter Dennis Bartok <pbartok@novell.com>
30792 * Control.cs: Fixed logic flip on when to call OnPaintBackground.
30793 Obsoleted handling of WM_ERASEBKGND, now always draws our background
30796 2005-10-18 Jordi Mas i Hernandez <jordi@ximian.com>
30798 * MenuAPI.cs: Returns after Hidding window
30799 * XplatUIX11.cs: Added TODO found while debugging menu issues
30801 2005-10-18 Peter Dennis Bartok <pbartok@novell.com>
30803 * XplatUIX11.cs: Do not re-map the whole window when it's size
30804 becomes non-zero unless it's supposed to be actually visible
30806 2005-10-18 Jackson Harper <jackson@ximian.com>
30808 * TreeView.cs: We don't need to keep a count anymore.
30809 * TreeNodeCollection.cs: Fix off by one in RemoveAt, Insert can
30810 use the Grow method.
30812 2005-10-18 Jackson Harper <jackson@ximian.com>
30814 * TreeNodeCollection.cs: Insert is not supported on arrays, so
30815 implement it manually here.
30817 2005-10-18 Jackson Harper <jackson@ximian.com>
30819 * ImageList.cs: Dont kill the list when the colour depth is
30820 changed, just change the colour depth of all the images.
30821 - Same goes for setting the image size. Just resize them all
30822 instead of killing the list softly.
30824 2005-10-18 Jackson Harper <jackson@ximian.com>
30826 * Control.cs: Don't invalidate empty rectangles.
30828 2005-10-18 Jordi Mas i Hernandez <jordi@ximian.com>
30831 - Adds checked item to the Checked/Item lists (where empty before)
30832 - Do not add items to the Selected lists if they are already present
30834 - Fixes IsFixedSize, SyncRoot, IsReadOnly in many collections
30835 - When deleting items make sure that we delete them for the Selected
30836 and Checked list also.
30838 2005-10-18 Jordi Mas i Hernandez <jordi@ximian.com>
30840 * Label.cs: Dispose objects no longer used
30841 * ThemeWin32Classic.cs: Dispose objects no longer used
30843 2005-10-18 Jackson Harper <jackson@ximian.com>
30845 * TabControl.cs: Don't refresh the whole control when the tabs are
30846 scrolled, we just need to refresh the tab area.
30848 2005-10-17 Jackson Harper <jackson@ximian.com>
30850 * XplatUIX11.cs: Compress code a little bit. Only calculate the
30851 after handle when we need it.
30853 2005-10-17 Peter Dennis Bartok <pbartok@novell.com>
30855 * Control.cs: When the parent size changes, recalculate anchor
30856 positions. Partial fix for #76462
30858 2005-10-17 Peter Dennis Bartok <pbartok@novell.com>
30860 * ThemeWin32Classic.cs: Make sure the picturebox has it's background
30861 drawn. Fixes #76462
30863 2005-10-17 Jackson Harper <jackson@ximian.com>
30865 * MonthCalendar.cs: Don't create the numeric up down until our
30866 handle is created. Otherwise our handle is created in the
30867 constructor and we don't know if we are a WS_CHILD or WS_POPUP
30870 2005-10-17 Jackson Harper <jackson@ximian.com>
30872 * TreeView.cs: Merge in patch by Rafael Teixeira to align strings
30875 2005-10-17 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
30876 * TreeNode.cs : small logical fix (was using local var instead of field)
30878 2005-10-17 Jordi Mas i Hernandez <jordi@ximian.com>
30880 * ThemeWin32Classic.cs: Fixes vert/horz scrollbar colours
30882 2005-10-17 Jordi Mas i Hernandez <jordi@ximian.com>
30884 * ThemeWin32Classic.cs: Fixes focus drawing in for non-flat/popup buttons
30886 2005-10-16 Peter Dennis Bartok <pbartok@novell.com>
30889 - Re-implemented anchoring code. My first version was really broken.
30890 This fixes bug #76033. Unlike the previous implementation we will
30891 no longer have round errors since all numbers are calculated from
30892 scratch every time. Removed various anchor-related obsolete vars.
30893 - InitLayout no longer causes layout event firing and layout to be
30896 2005-10-16 Jackson Harper <jackson@ximian.com>
30898 * Hwnd.cs: Compute invalid area correctly (fixes my last commit
30901 2005-10-16 Jackson Harper <jackson@ximian.com>
30903 * TabControl.cs: Remove debug code.
30905 2005-10-16 Jackson Harper <jackson@ximian.com>
30907 * XEventQueue.cs: Increase the default queue size (very simple
30908 apps needed to grow the queue).
30909 * Hwnd.cs: No finalizer so we don't need to suppress
30910 finalization. Compute the invalid area manually so a new rectangle
30911 does not newto be created.
30912 * ScrollableControl.cs: Don't set any params (otherwise visibility
30913 isn't set correctly).
30914 * MdiChildContext.cs: New constructor takes the mdi parent so it
30915 doesn't have to be computed and avoids a crash on windows. Draw
30916 the window icon properly, and allow the text to be seen.
30917 * Form.cs: Use new MdiChildContext constructor. Make sure the
30918 child context isn't null in wndproc.
30919 * TabControl.cs: Don't set focus, this is muddling keyboard
30920 behavoir. Expand the tab rows when a window size increase will
30921 allow extra tabs to be seen. Don't allow tabs smaller than the
30922 width of a window to be scrolled out of view.
30924 * TreeView.cs: Use measure string to calculate a nodes width, the
30925 width is cached and only updated when the text or the font is
30926 changed. Don't check for expand/collapse clicks on the first level
30927 nodes if root lines are disabled.
30929 2005-10-16 Ritvik Mayank <mritvik@novell.com>
30931 * TextBoxBase.cs: Fixes #76352 (passing tab key in a multiline textbox)
30933 2005-10-16 Jordi Mas i Hernandez <jordi@ximian.com>
30935 * DataGridBoolColumn.cs: fixes warning
30937 2005-10-16 Jordi Mas i Hernandez <jordi@ximian.com>
30939 * ControlPaint.cs: Fixes methods Dark, DarkDark, Light, LightLight
30940 to match more to match more precisely the MS Net behavior
30942 2005-10-13 Peter Dennis Bartok <pbartok@novell.com>
30944 * Hwnd.cs: Added field to track if window is mapped
30946 - Unmap windows if they become 0-size, re-map when
30947 they are >0 again; fixes #76035
30948 - Re-set our error handler after initializing X11Desktop
30949 to override any error handlers Gtk or whatever was called
30952 2005-10-13 Peter Dennis Bartok <pbartok@novell.com>
30954 * CheckedListBox.cs: Removed unused vars
30955 * ListView.cs: Fixed signatures
30956 * RichTextBox.cs: Removed unused vars
30957 * TextBoxBase.cs: Removed unused vars
30958 * XplatUIWin32.cs: Removed unused vars
30959 * XplatUIX11.cs: Removed unused vars
30960 * XplatUI.cs: Updated version and date to latest published
30962 2005-10-13 Peter Dennis Bartok <pbartok@novell.com>
30964 * Cursor.cs: Added private .ctor to work around a bug in
30965 resourceset (Thanks to Geoff Norton for the help on this)
30966 * SplitterEventArgs.cs: Made fields accessible so we don't
30967 waste boatloads of objects and can reuse the same one
30969 * XplatUIWin32.cs(DrawReversibleLine): Now also considers
30970 any captions and borders when generating screen coordinates
30971 * Splitter.cs: Reimplemented control, now fully complete, uses
30972 rubberband drawing, supports and obeys all properties, has
30975 2005-10-13 Miguel de Icaza <miguel@novell.com>
30977 * Form.cs (Form): Setup default values for autoscale and
30978 autoscale_base_size; Make these instance variables, not static
30981 (OnLoad): on the first load, adjust the size of the form.
30983 2005-10-13 Peter Dennis Bartok <pbartok@novell.com>
30985 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added
30986 width argument to DrawReversibleRectangle()
30987 * XplatUIWin32.cs, XplatUIX11.cs:
30988 - Implemented width for DrawReversibleRectangle()
30989 - Added logic to DrawReversibleRectangle that recognizes a zero
30990 width or height and only draws a line in that situation
30992 2005-10-12 Peter Dennis Bartok <pbartok@novell.com>
30994 * XplatUI.cs, XplatUIDriver.cs: Added GetAutoScaleSize()
30995 * XplatUIOSX.cs: Stubbed GetAutoScaleSize() method
30996 * XplatUIWin32.cs, XplatUIX11.cs: Implemented GetAutoScaleSize()
30997 method (it uses our FosterParent window to get a graphics context)
30999 2005-10-12 Peter Dennis Bartok <pbartok@novell.com>
31001 * XplatUI.cs, XplatUIDriver.cs: Removed EraseWindowBackground
31002 and SetWindowBackground methods
31004 - Setting proper ControlStyles
31005 - We no longer call XplatUI.SetWindowBackground and XplatUI.
31006 EraseWindowBackground, instead we draw the window background
31007 ourselves in PaintControlBackground. This behaviour is
31008 required to match MS, where, when OnPaintBackground is not
31009 called, the background is not drawn.
31010 - Removed unneeded Refresh() in set_Text
31011 * Hwnd.cs: Dropped the ErasePending support. No longer needed
31013 - Created DeriveStyles method to translate from CreateParams to
31014 FormBorderStyle and TitleStyle, also handles BorderStyle (which
31015 matches FormBorderStyle enum values)
31016 - Consolidated SetHwndStyles and CalculateWindowRect border/title
31017 style calculations into single DeriveStyles method
31018 - Fixed CreateWindow to (finally) use Gravity. This prevents X11
31019 from redrawing the whole window on any resize or expose.
31020 - Fixed CreateWindow usage of SetWindowValuemask. Before not
31021 all styles were applied to our whole/client window appropriately
31022 - Removed EraseWindowBackground() and SetWindowBackground() methods
31023 - Removed handling of WM_ERASEBKGND message from DefWndProc, we
31024 no longer clear/redraw the background through X
31025 - Removed handling of erase_pending bit, we have no use for it (or
31028 - Removed generation and handling of WM_ERASEBKGND message
31029 - Removed EraseWindowBackground() and SetWindowBackground() methods
31030 - Removed handling of hwnd.ErasePending flag
31032 - Removed EraseWindowBackground() and SetWindowBackground() methods
31033 - We no longer call EraseWindowBackground on PaintEventStart, we
31034 ignore the fErase flag, erasing is handled in Control in the
31036 * Button.cs, GroupBox.cs, Label.cs, CheckBox.cs, ProgressBar.cs,
31037 LinkLabel.cs, ListControl.cs, TabPage.cs, UpDownBase.cs,
31038 TextBoxBase.cs, TextBox.cs, ListView.cs, ButtonBase.cs,
31039 CheckedListBox.cs, MdiClient.cs, Panel.cs, DataGrid.cs,
31040 DataGridTextBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs,
31041 TabControl.cs, ScrollableControl.cs, ToolBar.cs, PictureBox.cs,
31042 DateTimePicker.cs, StatusBar.cs, MonthCalendar.cs: Setting proper ControlStyles
31044 2005-10-12 Jonathan Chambers <jonathan.chambers@ansys.com>
31046 * PropertyGrids.cs: Get sub properties
31047 * PropertyGridView.cs: Fix drawing code
31049 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
31051 * ListBox.cs: Fixes 76383
31053 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
31055 * DataGridTextBoxColumn.cs: Sets location and size before attachment
31056 * ThemeWin32Classic.cs: Fixes border drawing and calculations
31057 * DataGridDrawingLogic.cs: Fixes border drawing and calculations
31060 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
31062 * ComboBox.cs: Fixes border drawing
31064 2005-10-10 Miguel de Icaza <miguel@novell.com>
31066 * MimeIcon.cs: Ignore errors if the file can not be read.
31068 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
31070 * Theme.cs, ThemeWin32Classic.cs, ListBox.cs:
31071 - Fixed border calculations
31072 - Fixed horizontal scrolling in single column listboxes
31073 - Fixed drawing issues
31075 2005-10-10 Peter Dennis Bartok <pbartok@novell.com>
31077 * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched from BorderStyle to
31078 FormBorderStyle enum
31079 * XplatUIX11.cs: Switched BorderStyle to FormBorderStyle, added
31080 code to determine FormBorderStyles from CreateParams
31082 - Fixed bug where we'd set the wrong window styles if we were
31083 not creating an MDI window
31084 - Added call to XplatUI.SetBorderStyle when form borders are set
31085 * Control.cs: Casting BorderStyles to accommodate changed XplatUI APIs
31087 - Removed obsolete edge style
31088 - Switched from BorderStyle to FormBorderStyle
31090 2005-10-10 Jackson Harper <jackson@ximian.com>
31092 * Form.cs: Use the property to get the window handle instead of
31093 accessing it directly. Prevents a null reference exception.
31095 2005-10-10 Jackson Harper <jackson@ximian.com>
31097 * TreeView.cs: Don't adjust the rect given to DrawString now that
31098 our libgdiplus draws correctly.
31100 2005-10-08 Jackson Harper <jackson@ximian.com>
31102 * TreeView.cs: Don't try to find the clicked on node if there are
31103 no nodes in the tree.
31105 2005-10-08 Alexander Olk <alex.olk@googlemail.com>
31111 2005-10-08 Alexander Olk <alex.olk@googlemail.com>
31113 * ImageListStreamer.cs, TreeView.cs, UpDownBase.cs, RichTextBox.cs,
31114 ColorDialog.cs, TextControl.cs, Panel.cs, MdiChildContext.cs,
31116 Use ResPool for brushes and dispose System.Drawing objects that
31117 are not used anymore.
31119 2005-10-07 Jackson Harper <jackson@ximian.com>
31121 * MdiChildContext.cs: Use the new borders instead of drawing them
31124 2005-10-06 Jordi Mas i Hernandez <jordi@ximian.com>
31126 * Calling UpdateBounds after changing the window's BorderStyle
31127 since the style can change the ClientSize
31129 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
31131 * Control.cs: Made PaintControlBackground virtual
31132 * Panel.cs: Overriding PaintControlBackground instead of using paint
31133 event; paint event method was interfering with 'real' users of the
31136 2005-10-06 Jordi Mas i Hernandez <jordi@ximian.com>
31138 * ThemeWin32Classic.cs: remove border drawing since it is handled
31139 by the base control class now and was causing double border drawing.
31141 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
31143 * Panel.cs: Redraw our background on paint. Not a pretty solution,
31144 but it does seem to match MS behaviour. This fixes bug #75324
31146 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
31148 * XplatUIX11.cs: A better DrawReversibleRectangle version, however
31149 somewhat hackish looking
31151 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
31154 - We now accept Enter even if AcceptEnter is false, if the containing
31155 form does not have an AcceptButton configured (fixes bug #76355)
31156 - Calculations are now fixed to no longer use Width/Height, but
31157 ClientSize.Width/Height, since we now support borders (this was
31158 a result of fixing borders and therefore bug #76166)
31159 - We no longer show the horizontal scrollbar if TextBox.WordWrap is
31160 true (fixes bug #76354)
31162 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
31165 - Defaulting BorderStyle and setting it in XplatUI when our window
31167 - Added enum check to InternalBorderStyle setter
31169 - Added drawing of window borders
31170 - Now properly calculates WM decorations offset for toplevel
31171 windows (fixes bug #74763)
31173 - Implemented BorderStyles for windows (we're letting win32 draw
31175 - Fixed the signature for SetWindowLong
31176 * PictureBox.cs, DataGrid.cs, TextBoxBase.cs, ToolBar.cs, Panel.cs,
31177 ListBox.cs, Label.cs: Now uses Control.InternalBorderStyle for
31179 * UpDownBase.cs: Remove drawing of borders, this is handled by
31180 the driver, outside the client area
31181 * ListView.cs: Removed bogus border calculations. The control should
31182 be oblivious to borders, since those are not part of the client
31184 * X11DesktopColors.cs: Commented out (currently) unneeded variables
31185 * ThemeWin32Classic.cs: Removed border calculations from ListView
31188 2005-10-06 Jackson Harper <jackson@ximian.com>
31190 * MdiChildContext.cs: Clear out the old virtual position remove
31191 all the unneeded calls to CreateGraphics.
31193 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
31195 * TextControl.cs: Use proper color for highlighted text; fixes #76350
31197 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
31200 - Added loading and setting of our new default icon
31201 - Only set icon if window is already created
31203 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
31206 - Do not explicitly set the foreground and background colors, to
31207 allow inheriting from parents (fixes #76302)
31208 - Use Control's InternalBorderStyle property to deal with borders
31210 2005-10-06 Jackson Harper <jackson@ximian.com>
31212 * MdiChildContext.cs: Use the new xplatui function to draw a
31215 2005-10-06 Jackson Harper <jackson@ximian.com>
31217 * Form.cs: Add the parent before creating the child context cause
31218 we need the parent when setting up the child.
31220 2005-10-06 Jackson Harper <jackson@ximian.com>
31222 * FolderBrowserDialog.cs: redo the tree population code so a
31223 second thread isn't used. Should be a lot faster and more stable
31226 2005-10-05 Jackson Harper <jackson@ximian.com>
31228 * TreeView.cs: There are no expand/collapse boxes if the node has
31231 2005-10-05 Jackson Harper <jackson@ximian.com>
31233 * X11DesktopColors.cs: Get menu colours for the gtk theme.
31235 2005-10-05 Alexander Olk <alex.olk@googlemail.com>
31237 * FileDialog.cs: Fix InitialDirectory
31239 2005-10-05 Jordi Mas i Hernandez <jordi@ximian.com>
31242 - Fixes changing between styles
31243 - Fixes simple mode
31244 - Fixes last item crashing when navigating with keyboard
31246 2005-10-05 Jordi Mas i Hernandez <jordi@ximian.com>
31248 * LinkLabel.cs: Related to 76045. Stops the LinkLabel been drawn as a Label
31250 2005-10-05 Jackson Harper <jackson@ximian.com>
31252 * TreeView.cs: If updating the root node do a full refresh.
31253 * TreeNode.cs: The root node should be expanded by default. Also
31254 added a utility prop to tell if we are the root node.
31255 * TreeNodeCollection.cs: Only refresh if the node we are being
31256 added to is expanded. Also added a comment on a potential
31259 2005-10-04 Peter Dennis Bartok <pbartok@novell.com>
31261 * Cursor.cs, Hwnd.cs: Added call to GC.SuppressFinalize()
31262 in dispose method. Fixes #76330
31264 2005-10-04 Jordi Mas i Hernandez <jordi@ximian.com>
31266 * ListView.cs, ThemeWin32Classic.cs, ListViewItem.cs:
31268 - Implements vertical and horizontal scrolling using XplatUI
31269 - Fixes keyboard navagation
31270 - Fixes EnsureVisible
31272 - Handles and draws focus properly
31275 2005-10-04 Kornél Pál <kornelpal@hotmail.com>
31277 * ImageList.cs: Use upper case initials for internal fields. ImageStream:
31278 Create handle. NET_2_0: Destroy handle when value is null.
31280 2005-10-03 Jackson Harper <jackson@ximian.com>
31282 * ScrollBar.cs: My last scrollbar patch was broken. This is a
31283 revert and a new patch to prevent the thumb from refreshing so
31286 2005-10-02 Jackson Harper <jackson@ximian.com>
31288 * ScrollBar.cs: Don't update position if it hasn't actually
31289 changed. This occurs when you hold down the increment/decrement
31290 buttons and the thumb gets to the max/min.
31292 2005-10-01 Jackson Harper <jackson@ximian.com>
31295 * MdiChildContext.cs:
31296 * MdiClient.cs: Implement ActiveMdiChild in Form.
31298 2005-10-01 Jordi Mas i Hernandez <jordi@ximian.com>
31300 * ComboBox.cs: Include ComboBoxEdit flag for the edit item
31302 2005-10-01 Peter Dennis Bartok <pbartok@novell.com>
31304 * X11DesktopColors.cs: Bow out gracefully if the Gtk libs cannot
31307 2005-09-30 Jackson Harper <jackson@ximian.com>
31309 * ListBox.cs: Don't do a full refresh unless some data has
31312 2005-09-30 Jackson Harper <jackson@ximian.com>
31314 * TreeView.cs: Make sure that the checkboxes size is factored in
31315 even when not visible.
31317 2005-09-30 Peter Dennis Bartok <pbartok@novell.com>
31319 * FileDialog.cs: Fix Jordi's build break
31321 2005-09-30 Jordi Mas i Hernandez <jordi@ximian.com>
31324 - Use standard the Windows colours for the combobox as espected
31325 - Dispose objects that use resouces when no longer need them
31327 2005-09-30 Peter Dennis Bartok <pbartok@novell.com>
31329 * X11DesktopColors.cs: Initial incomplete implementation
31330 * XplatUIX11.cs: Added call to initialize X11DesktopColors
31332 2005-09-30 Peter Dennis Bartok <pbartok@novell.com>
31335 - Switched Theme color names to match the names defined in
31336 System.Drawing.KnownColors. Life's hard enough, no need to make
31338 - Added setters to all theme color properties so themes can set
31339 their color schemes. The setters also propagate the color changes
31340 to System.Drawing.KnownColors via reflection
31341 * ControlPaint.cs, Label.cs, TextControl.cs, ToolTip.cs, ThemeNice.cs,
31342 ComboBox.cs, MdiChildContext.cs, TextBoxBase.cs, DateTimePicker.cs
31343 DataGridColumnStyle.cs, MonthCalendar.cs, TreeView.cs: Updated to
31344 use the new, more logical theme color names
31345 * XplatUIWin32.cs: Updated the GetSysColorIndex enum to include new
31347 * ThemeWin32Classic.cs:
31348 - Removed code to set the old classic Windows colors. Instead it
31349 now relies on the colors returned by System.Drawing.KnownColors
31350 which will be either modern static colors (Unix) or colors
31351 read from the user's configuration (Win32)
31352 - Updated to use the new, more logical theme color names
31353 - Switched DataGrid drawing code to use only Theme colors instead of
31354 a mix of System.Drawing.KnownColors and Theme colors
31355 - DrawFrameControl(): Removed code that fills the button area, the
31356 fill would overwrite any previous fill done by a control. This
31358 - Added DrawReversibleRectangle() stub
31359 * ScrollableControl.cs: Set visible state to false when scrollbars
31360 are removed (pdn fix)
31361 * XplatUI.cs, XplatUIOSX.cs, XplatUIDriver.cs: Added
31362 DrawReversibleRectangle() method to allow drawing primitive
31364 * XplatUIX11.cs: Implemented DrawReversibleRectangle()
31366 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
31368 * ImageList.cs: Add(Icon): Create handle.
31370 2005-09-30 Jordi Mas i Hernandez <jordi@ximian.com>
31373 * ThemeWin32Classic.cs:
31374 - Fixes detail mode
31376 - Issues with drawing
31378 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
31380 * ImageList.cs: Moved RecreateHandle back to ImageList as event
31381 source has to be the ImageList.
31383 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
31385 * ImageList.cs: Add(Icon): Use Graphics.DrawIcon instead of Icon.ToBitmap.
31387 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
31389 * ImageList.cs: ReduceColorDepth: Clean up pointer operations.
31391 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
31393 * ImageList.cs: ImageCollection: Removed owner field as it is no more used.
31395 2005-09-29 Jonathan Chambers <jonathan.chambers@ansys.com>
31396 * GridItem.cs: Fixed TODOs
31397 * GridItemCollection.cs: Added ICollection interface
31399 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
31401 * ImageList.cs: Resize icons when needed.
31403 2005-09-29 Jordi Mas i Hernandez <jordi@ximian.com>
31406 - Fixes GetBounds and returns on screen rects
31408 - Fixes vertical and horzintal scrolling of items
31409 * ThemeWin32Classic.cs:
31412 2005-09-29 Raja R Harinath <harinath@gmail.com>
31414 * ImageList.cs (ImageStream) [NET_2_0]: Reflect re-factoring.
31416 2005-09-29 Kornél Pál <kornelpal@hotmail.com>
31418 * ImageList.cs: Added comments about handle creation. Moved Handle,
31419 HandleCreated and OnRecreateHandle implementations to ImageCollection.
31420 Handle is created in Add methods.
31422 2005-09-28 Jordi Mas i Hernandez <jordi@ximian.com>
31424 * DataGridDrawingLogic.cs:
31425 - Takes rows into account on Colum calculations
31426 - Returns the column when clickig
31428 - Fixes default HitTestInfo values
31429 - Fixes HitTestInfo.ToString
31430 - Fixes ResetBackColor
31432 2005-09-28 Jackson Harper <jackson@ximian.com>
31434 * MdiChildContext.cs: Obey rules for fixed sized windows (no
31435 sizing or cursor changes). Also added some temp code to draw the
31436 titlebars text (Makes dev a little easier).
31438 2005-09-28 Kornél Pál <kornelpal@hotmail.com>
31440 * ImageList.cs: AddStrip: Throw ArgumentException when Image is not a Bitmap.
31442 2005-09-28 Jordi Mas i Hernandez <jordi@ximian.com>
31444 * ListBox.cs: Fixes bug 76253
31446 2005-09-28 Kornél Pál <kornelpal@hotmail.com>
31448 * ImageList.cs: Added comments about the current implementation. Added
31449 ReduceColorDepth, IndexedColorDepths and GetNearestColor to can use
31450 Format32bppArgb to preserve transparency and can use Graphics.FromImage
31451 while using the specified ColorDepth. ReduceColorDepth uses unsafe code
31452 with Bitmap.LockBits for better performance. Revised the whole file to
31453 match MS.NET behaviour and provide better performance. Non-public
31454 interface members are calling public members even when they throw
31455 NotSupportedException for better maintainability. Moved ColorDepth,
31456 ImageSize, ImageStream and TransparentColor implementations to
31457 ImageCollection for better performance as these properties are not used
31459 * ImageListStreamer.cs: Added a new internal constructor that takes an
31460 ImageList.ImageCollection and serializes Images based on
31461 ImageCollection.ToArray(). Renamed ImageColorDepth to ColorDepth to
31462 match ImageList property name.
31464 2005-09-28 Kazuki Oikawa <kazuki@panicode.com>
31466 * ListBox.cs: Fixes IndexFromPoint for last item
31468 2005-09-27 Jackson Harper <jackson@ximian.com>
31470 * Form.cs: Set the position of new mdi children correctly.
31472 2005-09-27 Jackson Harper <jackson@ximian.com>
31474 * MdiClient.cs: New mdi children need to be added to the back of
31475 the controls collection so the zorder is set correctly. Also add a
31476 count of all the child windows that have been created.
31478 2005-09-27 Jackson Harper <jackson@ximian.com>
31480 * Form.cs (CreateParams): Setup MDI forms correctly.
31482 2005-09-27 Jackson Harper <jackson@ximian.com>
31484 * MdiChildContext.cs:
31485 * MonthCalendar.cs:
31491 * ScrollableControl.cs:
31492 * ComboBox.cs: Add implicit controls using the new implict control
31493 functionality in ControlCollection. Also try to block multiple
31494 control add in a suspend/resume layout to save some cycles.
31496 2005-09-27 Jackson Harper <jackson@ximian.com>
31498 * Control.cs: Add functionality to the controls collection to add
31499 'implicit controls' these are controls that are created by the
31500 containing control but should not be exposed to the user. Such as
31501 scrollbars in the treeview.
31502 * Form.cs: The list var of the ControlsCollection is no longer
31503 available because of the potential of implicit controls getting
31504 ignored by someone accessing the list directly.
31506 2005-09-26 Peter Dennis Bartok <pbartok@novell.com>
31508 * Control.cs: Fixed SetChildIndex; it no longer causes a child to
31509 loose it's parent. (Fixed bug introduced in r49103 when we added
31510 setting the child parent to null on Remove)
31512 2005-09-26 Gert Driesen <drieseng@users.sourceforge.net>
31514 * DataGridBoolColumn.cs: Marked CheckState private to fix public API.
31515 * Splitter.cs: Added missing attributes for BorderStyle property.
31516 * TextBoxBase.cs: Marked Calculate* methods internal.
31517 * TextBox.cs: Fixed DefaultValue for PasswordChar property to match
31520 2005-09-26 Jordi Mas i Hernandez <jordi@ximian.com>
31522 * ListBox.cs: Fixes navigation to the last item in multicolumn lists
31524 2005-09-25 Jackson Harper <jackson@ximian.com>
31526 * TreeView.cs: Update the node bounds correctly regardless of
31527 whether the node is visible.
31529 2005-09-25 Jackson Harper <jackson@ximian.com>
31531 * ImageList.cs: Don't dispose the image after it is added to the
31532 image list. Only reformat images that need to be resized.
31534 2005-09-25 Jackson Harper <jackson@ximian.com>
31536 * ImageList.cs: Don't set the format when changing the image.
31538 2005-09-25 Jackson Harper <jackson@ximian.com>
31540 * TreeView.cs: We can't just assume the node has a font. Use the
31541 treeviews font if no node font is available.
31543 2005-09-25 Jackson Harper <jackson@ximian.com>
31545 * TreeView.cs: Allow the scrollbars to be reset with negative
31547 - Don't add scrollbars to negative sized windows.
31549 2005-09-23 Jackson Harper <jackson@ximian.com>
31551 * XplatUIX11.cs: Update to use Mono.Posix.Native instead of plain
31552 old Mono.Posix. Also remove some stray code that shouldn't have
31555 2005-09-23 Jackson Harper <jackson@ximian.com>
31557 * TreeView.cs: Attempt at proper sizing of the horizontal
31558 scrollbar. Also don't resize the scrollbars unless they are
31561 2005-09-23 Jackson Harper <jackson@ximian.com>
31563 * TreeView.cs: We don't need to expand the invalid area when the
31564 selection changes, as this is all drawn in the node's bounding
31565 box. The area needs to be expanded (previous typo was contracting
31566 it) when the focus rect moves.
31568 2005-09-23 Jackson Harper <jackson@ximian.com>
31570 * TreeView.cs: Display the selection box under the correct
31571 circumstances. We were rendering white text with no selection box
31574 2005-09-23 Peter Dennis Bartok <pbartok@novell.com>
31576 * TextControl.cs(Split): Now updates selection start/end if it points
31577 into a line that's being split. Fixes a FIXME and bug #75258
31579 2005-09-23 Jackson Harper <jackson@ximian.com>
31582 * ListControl.cs: Don't use the path when retrieving binding
31583 managers from the binding context. My bat sense tells me that the
31584 path is only used on insertion.
31586 2005-09-22 Jackson Harper <jackson@ximian.com>
31588 * Splitter.cs: Set the cursor an easier way. (Thanks peter).
31590 2005-09-22 Jackson Harper <jackson@ximian.com>
31592 * Splitter.cs: There are special cursors used for splitting.
31593 * XplatUIX11.cs: The VSplit and HSplit cursors were backwards.
31595 2005-09-22 Jackson Harper <jackson@ximian.com>
31597 * Splitter.cs: Change the cursor appropriately when the splitter
31598 is moused over, so the user actually knows there is a splitter
31601 2005-09-22 Hisham Mardam Bey <hisham.mardambey@gmail.com>
31603 * Label.cs : Fix ToString method to give same output as MS.NET
31605 2005-09-22 Jackson Harper <jackson@ximian.com>
31607 * TreeView.cs: Create the scrollbars when the handle is created
31608 and add them right away, just make them invisble. Also account for
31609 the window being shrunk vertically to the point that the vert
31610 scrollbar needs to be added.
31611 - Remove some 0.5 adjustments to get around anti aliasing issues.
31613 2005-09-22 Jordi Mas i Hernandez <jordi@ximian.com>
31615 * MainMenu.cs: Fixes default value
31616 * MenuItem.cs: Fixes default value
31618 2005-09-22 Kazuki Oikawa <kazuki@panicode.com>
31620 * AsyncMethodResult.cs: Fixes Control.Invoke is blocked infinitely.
31622 2005-09-21 Jackson Harper <jackson@ximian.com>
31624 * Control.cs: Don't try to set the border style on the window if
31625 it hasn't been created. When the window is created the border
31626 style will be used.
31628 2005-09-21 Peter Dennis Bartok <pbartok@novell.com>
31630 * Control.cs (Update): Don't call XplatUI if we don't have a
31633 2005-09-21 Peter Dennis Bartok <pbartok@novell.com>
31635 * ContainerControl.cs: Instead of throwing an exception, print
31636 a one-time warning about Validate not being implemented
31637 * XplatUIWin32.cs: Removed debug output
31639 2005-09-21 Peter Dennis Bartok <pbartok@novell.com>
31641 * Control.cs: Only set XplatUI background if we expect the windowing
31642 system to handle the background. This stops controls that draw their
31643 own background from flickering
31645 * XplatUIX11.cs: Support custom visuals and colormaps for window
31646 creation. This allows, amongst other things, using MWF X11 windows
31649 2005-09-21 Peter Dennis Bartok <pbartok@novell.com>
31651 * OpenFileDialog.cs, ContentsResizedEventArgs.cs, LibSupport.cs, GridItem.cs,
31652 CursorConverter.cs, SplitterEventHandler.cs, PropertyGridTextBox.cs,
31653 GridTablesFactory.cs, MethodInvoker.cs, AccessibleEvents.cs,
31654 SplitterEventArgs.cs, XplatUI.cs, Mime.cs, PropertySort.cs,
31655 TreeViewCancelEventHandler.cs, Form.cs, PropertyGridCommands.cs,
31656 IDataGridEditingService.cs, DateBoldEventHandler.cs, Label.cs,
31657 KeyboardLayouts.cs, TextControl.cs, ProgressBar.cs, ToolTip.cs,
31658 RadioButton.cs, OSFeature.cs, LinkLabel.cs, ColorDialog.cs,
31659 ThemeNice.cs, ErrorIconAlignment.cs, TreeNode.cs, MimeGenerated.cs,
31660 ComboBox.cs, DataGridTextBoxColumn.cs, ArrangeStartingPosition.cs,
31661 GridColumnStylesCollection.cs,
31662 IDataGridColumnStyleEditingNotificationService.cs,
31663 PropertyGrid.cs, IFeatureSupport.cs, ICommandExecutor.cs,
31664 MdiLayout.cs, GridEntry.cs, ControlBindingsCollection.cs,
31665 GridTableStylesCollection.cs, TreeViewCancelEventArgs.cs,
31666 TreeNodeCollection.cs, AmbientProperties.cs,
31667 RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
31668 DataObject.cs, ErrorProvider.cs, Splitter.cs,
31669 DataGridLineStyle.cs, Shortcut.cs, Control.cs,
31670 FontDialog.cs, SecurityIDType.cs, GridItemType.cs,
31671 BindingMemberInfo.cs, DataGridCell.cs, MdiChildContext.cs,
31672 IRootGridEntry.cs, PropertyGridView.cs, DataGridParentRowsLabelStyle.cs,
31673 FolderBrowserDialog.cs, OpacityConverter.cs, HelpProvider.cs,
31674 IComponentEditorPageSite.cs, DataGridTableStyle.cs, NavigateEventArgs.cs,
31675 NotifyIcon.cs, ContentsResizedEventHandler.cs, MenuItem.cs,
31676 PropertyTabChangedEventHandler.cs, TextBoxBase.cs, OpenTreeNodeEnumerator.cs,
31677 SelectionMode.cs, TextBox.cs, ListBindingConverter.cs,
31678 FileDialog.cs, KeysConverter.cs, DomainUpDown.cs,
31679 DataFormats.cs, SaveFileDialog.cs, GridItemCollection.cs,
31680 ArrangeDirection.cs, FeatureSupport.cs, SelectionRangeConverter.cs,
31681 RichTextBoxScrollBars.cs, NodeLabelEditEventHandler.cs, TreeNodeConverter.cs,
31682 MimeIcon.cs, X11Structs.cs, PropertyGridEntry.cs,
31683 ImageList.cs, ThemeWin32Classic.cs, X11Keyboard.cs,
31684 CheckedListBox.cs, HelpNavigator.cs, DateTimePickerFormat.cs,
31685 MdiClient.cs, DataGridDrawingLogic.cs, DataGridBoolColumn.cs,
31686 NodeLabelEditEventArgs.cs, Screen.cs, PropertyManager.cs,
31687 ComponentModel.cs, PropertiesTab.cs, CurrencyManager.cs,
31688 SizeGrip.cs, DateBoldEventArgs.cs, X11Dnd.cs, Panel.cs,
31689 Hwnd.cs, OSXStructs.cs, DrawMode.cs, XplatUIDriver.cs,
31690 RichTextBox.cs, PropertyTabChangedEventArgs.cs, CommonDialog.cs,
31691 DataGrid.cs, XplatUIX11.cs, RichTextBoxStreamType.cs, Win32DnD.cs,
31692 ErrorBlinkStyle.cs, TreeViewEventHandler.cs,
31693 PropertyValueChangedEventHandler.cs, IFileReaderService.cs,
31694 DataGridTextBox.cs, SelectedGridItemChangedEventArgs.cs, ScrollBar.cs,
31695 ListBox.cs, TreeViewAction.cs, Help.cs, TrackBar.cs,
31696 AxHost.cs, PropertyValueChangedEventArgs.cs, XplatUIOSX.cs,
31697 RichTextBoxFinds.cs, UpDownEventArgs.cs, Cursors.cs,
31698 CategoryGridEntry.cs, RichTextBoxWordPunctuations.cs, DataGridColumnStyle.cs,
31699 SelectedGridItemChangedEventHandler.cs, DateTimePicker.cs, NavigateEventHandler.cs,
31700 Clipboard.cs, UpDownEventHandler.cs, MonthCalendar.cs,
31701 SendKeys.cs, DataGridPreferredColumnWidthTypeConverter.cs, TreeView.cs,
31702 ThreadExceptionDialog.cs, ImageListConverter.cs, XplatUIWin32.cs,
31703 TreeViewEventArgs.cs: Fixed whitespace and set eol-style:native attribute
31705 2005-09-21 Jackson Harper <jackson@ximian.com>
31707 * TreeNode.cs: Call Before/After Expand not Collapse when
31710 2005-09-20 Jackson Harper <jackson@ximian.com>
31712 * XplatUIX11.cs: Use the more hand looking hand (in most themes).
31714 2005-09-16 Jordi Mas i Hernandez <jordi@ximian.com>
31718 - Fixes proper storing of subitems
31719 - Fixes not updated items
31721 2005-09-20 Peter Dennis Bartok <pbartok@novell.com>
31723 * Control.cs, TextBoxBase.cs, TextControl.cs: Don't do certain
31724 things if our window handle isn't created yet. Also disabled
31725 debug for TextBoxBase
31727 2005-09-20 Peter Dennis Bartok <pbartok@novell.com>
31729 * MenuAPI.cs: Remove filtering of events to allow menu usage
31731 2005-09-20 Miguel de Icaza <miguel@novell.com>
31733 * Cursor.cs: Allow null to be passed to Cursor.Current.
31735 2005-09-20 Alexander Olk <alex.olk@googlemail.com>
31737 * ThemeWin32Classic.cs:
31738 - Change some private methods/fields to protected virtual so that
31739 they can be accessed and overriden in derived classes
31740 - First refactoring of some methods. Derived themes now don't
31741 need to duplicate the complete code from ThemeWin32Classic
31743 - Added nice StatusBar
31744 - Derive from ThemeWin32Classic and not Theme
31745 - Removed duplicate ThemeWin32Classic code
31747 2005-09-20 Miguel de Icaza <miguel@novell.com>
31749 * Control.cs (ControlCollection.Add): If the value null is passed
31750 the control is ignored.
31752 Optimize this loop.
31754 2005-09-19 Peter Dennis Bartok <pbartok@novell.com>
31756 * MenuAPI.cs: Replaced Application.Run() with a loop that tracks
31757 PostQuitMessage state.
31758 * XplatUIWin32.cs: Removed bogus PostQuitMessage P/Invoke with HWND arg
31760 2005-09-19 Peter Dennis Bartok <pbartok@novell.com>
31762 * Application.cs: Our constructor will never get called, move
31763 initialization to fields; fixes bug #75933
31765 2005-09-19 Hisham Mardam Bey <hisham.mardambey@gmail.com>
31768 - Allow files to be selected properly using file name
31770 - Add ability to change diretory (absolute / relative)
31771 using file name combo box.
31773 2005-09-16 Jordi Mas i Hernandez <jordi@ximian.com>
31776 - Fixes Multicolumn listboxes item wrong calculations
31777 - Allows to click when only one item is in the listbox
31778 - Fixes crash when no items using keyboard navigation
31780 2005-09-16 Alexander Olk <alex.olk@googlemail.com>
31782 * ComboBox.cs: Reverted almost everything from the latest patch which
31785 2005-09-16 Kazuki Oikawa <kazuki@panicode.com>
31788 - Fixed #Mtd2 of ToolTipTest.RemoveToolTipTest.
31790 - When DropDownStyle is Simple, it does not show scrollbar
31791 to the last item of the list.
31792 - When DropDownStyle is Simple, it crashed when the list was
31793 scrolled down with the down cursor key.
31794 - Fixed a bug that when DropDownStyle is DropDownList, the
31795 selected item was not shown.
31796 - The position of the selected item was not preserved when
31797 the next dropdown happened.
31798 * ThemeWin32Classic.cs:
31799 - Items were wrapped at the right end.
31800 * CheckedListBox.cs:
31803 - Items should be fully shown.
31804 - When resizing and vertical scrollbar disappeared, the item
31805 of index 0 should be on the top of the list.
31806 - GetItemRectangle should consider the size of ver. scrollbar
31808 - SizingGrip area should not be allocated when it is not
31810 - Now it reflects MinWidth of the containing panel and
31811 fixed a crash that happens when its width becomes so small.
31813 2005-09-13 Jordi Mas i Hernandez <jordi@ximian.com>
31815 * CheckedListBox.cs: Fixes bug 76028
31816 * ListBox.cs: Fixes bug 76028
31818 2005-09-13 Jordi Mas i Hernandez <jordi@ximian.com>
31820 * ThemeWin32Classic.cs: Sets clipping on DataGridPaintRowsHeaders
31821 * DataGridDrawingLogic.cs: fixes issues with Datagrid drawing
31823 2005-09-12 Jordi Mas i Hernandez <jordi@ximian.com>
31825 * XplatUIX11.cs: fixes System.NullReferenceException in some situations
31827 2005-09-09 Jonathan Chambers <jonathan.chambers@ansys.com>
31829 * IRootGridEntry.cs: Changed namespace to PropertyGridInternal
31831 2005-09-09 Jonathan Chambers <jonathan.chambers@ansys.com>
31833 * IRootGridEntry.cs: Added
31834 * PropertyGridCommands.cs: Added
31835 * PropertiesTab.cs: Added missing methods and property
31836 * PropertyGridView.cs: Made class internal
31837 * PropertyGridTextBox.cs: Made class internal
31839 2005-09-09 Alexander Olk <alex.olk@googlemail.com>
31841 * MimeIcon.cs: Try to check some other environment variables
31842 if "DESKTOP_SESSION" returns "default"
31844 2005-09-09 Alexander Olk <alex.olk@googlemail.com>
31846 * ThemeNice.cs: Corrected background colors (e.g. menus)
31847 * ColorDialog.cs: Use correct background colors for controls
31849 2005-09-09 Alexander Olk <alex.olk@googlemail.com>
31851 * ThemeNice.cs: Merged r49535 from ThemeWin32Classic
31853 2005-09-08 Peter Dennis Bartok <pbartok@novell.com>
31855 * RichTextBox.cs: Added initial implementation
31856 * lang.cs: Removed. Was accidentally checked in long time ago
31857 * TODO: Removed. Contents were obsolete
31859 2005-09-06 Jonathan Chambers <jonathan.chambers@ansys.com>
31861 * PropertiesTab.cs : Added
31863 2005-09-06 Jonathan Chambers <jonathan.chambers@ansys.com>
31865 * PropertyGrid.cs : Update
31866 * PropertyGridView.cs : Update
31867 * System.Windows.Forms.resx : Added images and strings
31869 2005-09-06 Peter Dennis Bartok <pbartok@novell.com>
31871 * ThemeNice.cs: Do not dispose Pens retrieved from ResPool
31873 2005-09-06 Peter Dennis Bartok <pbartok@novell.com>
31875 * XplatUIX11.cs: Force a flush after Ungrab; if case the app enters
31876 a busy loop right after the Ungrab the X11 display is otherwise
31879 2005-09-06 Jordi Mas i Hernandez <jordi@ximian.com>
31881 * ThemeWin32Classic.cs: Optimise the use of clipping
31883 2005-09-05 Jordi Mas i Hernandez <jordi@ximian.com>
31885 * DataGrid.cs: fixes recursion bug
31887 2005-09-03 Alexander Olk <alex.olk@googlemail.com>
31890 - Draw RadioButton and CheckBox Buttons with DrawButtonBase
31893 2005-09-02 Alexander Olk <alex.olk@googlemail.com>
31895 * ThemeNice.cs: Draw nice ProgressBars
31897 2005-09-01 Miguel de Icaza <miguel@novell.com>
31899 * VScrollBar.cs: Another buglet found by Aaron's tool.
31901 * ProgressBar.cs: Fix three recursive bugs found by Aaron Tomb's
31904 2005-08-30 Alexander Olk <alex.olk@googlemail.com>
31907 - Added nicer menu drawing
31911 2005-08-30 Peter Dennis Bartok <pbartok@novell.com>
31913 * CreateParams.cs (ToString): Made output match MS
31914 * Control.cs (Text): Don't set Text or Focus via XplatUI unless
31915 handle is already created (to avoid forcing window creation)
31916 * XplatUIX11.cs: Set window text to caption after creating window,
31917 in case Text was set before window was created
31918 * Form.cs: Use this.Text instead of a static string as caption
31920 2005-08-30 Peter Dennis Bartok <pbartok@novell.com>
31922 * NotifyIcon.cs: Don't set the window to visible; this screws
31923 up Win32 (causes WM_NCPAINT to be sent on Win32, which calls
31924 OnPaint without a bitmap)
31925 * XplatUIX11.cs: Removed Visible optimization in AddExpose; doesn't
31926 happen very often anyway; we could add the check to the WM_PAINT
31927 event generation code
31929 2005-08-30 Peter Dennis Bartok <pbartok@novell.com>
31931 * NotifyIcon.cs: Fill the icon area with a background color, to
31932 avoid 'residue' when transparent icons are drawn
31934 - Handle whole_window == client_window when destroying windows
31935 - SystrayAdd(): Set client_window to whole_window value to
31936 get mouse and other events passed to NotifyIcon
31938 2005-08-30 Peter Dennis Bartok <pbartok@novell.com>
31940 * Form.cs: Set proper default for Opacity property
31942 - ShowSystray(): Don't bother creating telling the OS
31943 about the systray item if no icon is provided
31944 - Now handles WM_NCPAINT message to deal with whole/client window
31946 - Create window as visible to not get caught by Expose optimization
31947 * Hwnd.cs: Removed debug message
31948 * ComboBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs, TabControl.cs,
31949 StatusBar.cs, TreeView.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched
31950 PaintEventStart/End to use new client argument
31952 - Commented out debug messages
31953 - Switched PaintEventStart/End to use new client argument
31954 * XplatUI.cs: Added client window bool to PaintEventStart()/
31955 PaintEventEnd() calls, to support drawing in non-client areas
31956 * XplatUIDriver.cs:
31957 - Added client window bool to PaintEventStart()/PaintEventEnd()
31958 calls, to support drawing in non-client areas
31959 - Added conditional compile to allow using MWF BeginInvoke
31962 - Added some conditional debug output
31963 - Fixed SystrayAdd() method to support new (for SystrayAdd, anyway)
31964 whole/client window split
31965 - Implemented handling of client argument to PaintEventStart()/End()
31967 - Throw exception if BeginInvoke() is called and the window handle
31968 or one of the window's parent handles is not created
31969 - Added conditional compile to allow using MWF BeginInvoke on
31971 - get_Parent(): Only sets parent if handle is created. This avoids
31972 forcing window handle creation when parent is set.
31973 - Now fires Layout and Parent changed events in proper order
31974 - Switched to use Handle instead of window.Handle for Z-Order setting,
31975 the get_Parent() patch above causes us to possibly get null for 'window'
31976 - Implemented handling of client argument to PaintEventStart()/End()
31977 - Now reports back to windows that WM_SETCURSOR was handled (to avoid
31979 - Now sends a Refresh() to all child windows when Refresh() is called
31981 2005-08-29 Peter Dennis Bartok <pbartok@novell.com>
31983 * Form.cs: Added (non-functional) Opacity property
31984 * XplatUIWin32.cs (SystrayAdd): Removed bogus line of code
31986 2005-08-29 Alexander Olk <xenomorph2@onlinehome.de>
31987 * ThemeNice.cs: New theme for MWF, based on ThemWin32Classic
31988 use export MONO_THEME=nice to activate it.
31989 Currently supported controls:
31993 - TabControl (TabAlignment.Top only, other will follow)
31994 * ThemeEngine.cs: Add theme nice
31995 * ButtonBase.cs: Redraw button on MouseEnter and MouseLeave everytime,
31998 2005-08-25 Jonathan Chambers <jonathan.chambers@ansys.com>
32000 * Splitter.cs: Resize docked control and its neighbor.
32002 2005-08-24 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
32003 -- Making Windows with Menus layout correctly --
32004 * Form.cs : The first leg of the fix
32005 Menu setter - adjust Client Size as needed to make space for the menu
32006 SetClientSizeCore - doesn't call base version to be able to pass the
32007 menu handle to XplatUI.CalculateWindowRect
32008 * Hwnd.cs: Fix for menu_height, now gets from MenuAPI.MENU
32009 * XplatUIX11.cs: The critical second leg of the fix
32010 GetWindowPos needs to use a recalculated client_rect
32011 so that resizing the window doesn't break layout of child controls.
32012 Also a more complete rule to avoid X Server roundtrips in SetWindowPos
32013 Lots of \t\n killed
32015 2005-08-23 Peter Dennis Bartok <pbartok@novell.com>
32017 * Label.cs: Now properly recalculates width and height on Font and Text
32018 changes if AutoSize is set
32020 2005-08-19 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
32021 * TreeView.cs : Revamped drawing logic, and support for FullRowSelect
32023 2005-08-19 Jordi Mas i Hernandez <jordi@ximian.com>
32025 * ImageList.cs: Makes ToString method compatible with MS
32027 2005-08-18 Jordi Mas i Hernandez <jordi@ximian.com>
32029 * MenuAPI.cs: fixes bug 75716
32031 2005-08-11 Umadevi S <sumadevi@novell.com>
32032 * Control.cs: Fixed Remove & RemoveAt to make the parent of the control null.
32034 2005-08-11 Umadevi S <sumadevi@novell.com>
32035 * Contorl.cs: Fixed ResetRightToLeft and ResetImeMode to work correctly
32037 2005-08-10 Umadevi S <sumadevi@novell.com>
32038 * CheckedListBox.cs: Fixed event firing on Adding to the CheckedListBox
32040 2005-08-07 Jordi Mas i Hernandez <jordi@ximian.com>
32042 * Menu.cs: fixes bug 75700
32043 * MenuAPI.cs: fixes navigation issues
32045 2005-08-09 Umadevi S <sumadevi@novell.com>
32046 * CheckedListBox.cs - simple fix for GetItemChecked.
32048 2005-08-08 Jordi Mas i Hernandez <jordi@ximian.com>
32050 * ComboBox.cs: Serveral fixes
32051 * ListBox.cs: Serveral fixes
32053 2005-08-05 Jordi Mas i Hernandez <jordi@ximian.com>
32055 * ComboBox.cs: Fixes FindString methods and GetItemHeight
32056 * ListBox.cs: Fixes FindString methods
32058 2005-08-05 Jordi Mas i Hernandez <jordi@ximian.com>
32060 * DataGrid.cs: fixes bugs exposed by new tests
32062 2005-08-04 Peter Dennis Bartok <pbartok@novell.com>
32064 * Mime.cs: Compile Mono assembly references only if compiling
32065 with Mono (Allows to build with VS.Net again)
32067 2005-07-28 Marek Safar <marek.safar@seznam.cz>
32069 * Control.cs (PaintControlBackground): Draw background image
32071 (CheckForIllegalCrossThreadCalls): Stubbed.
32073 * Form.cs (OnCreateControl): Center when should be centered.
32075 * ThemeWin32Classic.cs (DrawPictureBox): Pass size.
32077 2005-07-19 Jordi Mas i Hernandez <jordi@ximian.com>
32079 * Binding.cs: Binding to properties should be case unsensitive
32081 2005-07-18 vlindos@nucleusys.com
32083 * DataGrid.cs: fixes setmember order
32085 2005-07-07 Alexander Olk <xenomorph2@onlinehome.de>
32087 * MimeIcon.cs: added MimeIcon stuff (MimeIconEngine)
32088 * FileDialog.cs: FileDialog is now resizable and uses the new
32091 2005-07-06 Jordi Mas i Hernandez <jordi@ximian.com>
32093 * DataGridTextBoxColumn.cs: default value
32094 * GridColumnStylesCollection.cs: fixes event firing, checking MappingName
32095 * GridTableStylesCollection.cs: fixes checking MappingName
32096 * DataGridDrawingLogic.cs: fixes drawing logic issues
32097 * DataSourceHelper.cs: rewritten to make compatible with more data sources
32098 * DataGrid.cs: fixes
32100 2005-07-06 Alexander Olk <xenomorph2@onlinehome.de>
32102 * MimeGenerated.cs: Use case sensitive comparer for
32103 NameValueCollections
32105 2005-07-01 Jordi Mas i Hernandez <jordi@ximian.com>
32107 * DataGridTextBoxColumn.cs: bug fixes, code refactoring
32108 * ThemeWin32Classic.cs: bug fixes, code refactoring
32109 * DataGridDrawingLogic.cs: bug fixes, code refactoring
32110 * DataGrid.cs: bug fixes, code refactoring
32111 * DataGridTextBox.cs: bug fixes, code refactoring
32112 * DataGridColumnStyle.cs: bug fixes, code refactoring
32113 * Theme.cs: bug fixes, code refactoring
32115 2005-07-01 Peter Bartok <pbartok@novell.com>
32117 * TextControl.cs: Quick fix for the reported crash on ColorDialog
32118 and other text box usage
32120 2005-07-01 Jackson Harper <jackson@ximian.com>
32122 * TabControl.cs: Make sure the bottom of the tab covers the pages
32125 2005-06-30 Peter Bartok <pbartok@novell.com>
32127 * Form.cs (ShowDialog): Assign owner of the dialog
32128 * TextBoxBase.cs: Always refresh caret size when deleting, caret
32129 might have been moved to a tag with different height
32131 2005-06-30 Jackson Harper <jackson@ximian.com>
32133 * Form.cs: Don't create an infinite loop when setting focus
32134 * MenuItem.cs: Don't dirty the parents if we don't have any
32136 2005-06-29 Ben Maurer <bmaurer@ximian.com>
32138 * LibSupport.cs: Rename
32140 2005-06-29 Peter Bartok <pbartok@novell.com>
32142 * TextBoxBase.cs: Re-align caret after deleting a character
32144 - DeleteChars(): Ensure that tag covers the provided position
32145 - StreamLine(): Drop reference for dropped tag
32147 2005-06-29 Peter Bartok <pbartok@novell.com>
32150 - Selections now work properly, anchoring at the initial location
32151 and properly extending in either direction (SetSelectionToCaret(),
32152 SetSelectionStart() and SetSelectionEnd())
32153 - No longer redraws the whole control on selection change, now
32154 calculates delta between previous and new selection and only
32155 invalidates/redraws that area
32156 - Fixed FindPos() math off-by-one errors
32157 - Changed DeleteChars() to verify the provided tag covers the
32158 provided position, selections may have a tag that doesn't cover
32159 the position if the selection is at a tag border
32160 - Fixed off-by-one errors in DeleteChars()
32161 - Added missing streamlining check in DeleteChars() to remove
32163 - Implemented Invalidate() method, now properly calculates exposures
32164 between two given lines/positions
32165 - Implemented SetSelection()
32166 - Obsoleted and removed FixupSelection()
32167 - Improved RecalculateDocument() logic, removing code duplication
32169 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
32171 * LibSupport.cs: changes to match different input/output arguments.
32173 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
32175 * LibSupport.cs: added libsupport.so init routine.
32177 2005-06-29 Jordi Mas i Hernandez <jordi@ximian.com>
32179 * ControlBindingsCollection.cs
32180 - Throws an exception on null datasource when adding
32181 - Checks for duplicated bindings when adding
32183 2005-06-28 Jackson Harper <jackson@ximian.com>
32185 * TreeView.cs (OnKeyDown): Support left and right properly
32186 (navigates as well as expanding and collapsing.
32187 - Add support for Multiply, this expands all the selected nodes
32189 - Fix some tabbing.
32191 2005-06-28 Jackson Harper <jackson@ximian.com>
32193 * TreeView.cs: Implement keyboard navigation, currently supports,
32194 LEFT, RIGHT, UP, DOWN, PGUP, PGDOWN, HOME, END, ADD, SUBTRACT. Add
32195 support for toggling checkboxes with the space bar.
32197 2005-06-28 Jackson Harper <jackson@ximian.com>
32199 * OpenTreeNodeEnumerator.cs: Don't move past the begining of the
32202 2005-06-28 Jackson Harper <jackson@ximian.com>
32204 * TreeView.cs: Add missing event.
32206 2005-06-27 Peter Bartok <pbartok@novell.com>
32209 - Made line ending size configurable (now allows for counting
32210 lineendings as \n or \r\n)
32211 - Added margin to viewport to keep caret visible on right side
32212 - Fixed translation routines for line/pos to documentpos to consider
32213 cr/lf when counting (Fixes RichTextBox.SelectionFont issues)
32214 - Fixed some line-endings to be unix style
32215 - Fixed Document.FormatText to perform it's calculations 1-based
32216 - Added descriptions for a few methods that might otherwise get
32218 - Added NOTE section with some basic conventions to remember at
32219 the top of the file
32220 - Major fixup for RichTextBox selection drawing:
32221 * Fixed crashes when multiple tags on a single line were selected
32222 * fixed selection box drawing not overlaying text
32223 * fixed bogus offset calculation for tags not starting at index 1
32224 * Switched behaviour from using multiple Substrings of a
32225 StringBuilder.ToString() to using multiple
32226 StringBuilder.ToString(start, length) statements, hoping this is
32227 faster (kept original version commented out in the code, in case
32228 original version was faster)
32229 * TextBox.cs (set_TextAlignment): TextBox always needs to wrap if
32231 * TextBoxBase.cs (CalculateDocument): Made protected so RichTextBox can
32234 2005-06-27 Jackson Harper <jackson@ximian.com>
32236 * TabControl.cs: Move to the left and right with the arrow
32237 keys. These keys don't cycle beyond first and last like
32238 tab. Refresh all the tabs when scrolling them to the left or
32241 2005-06-27 Jackson Harper <jackson@ximian.com>
32244 - ToString: Added method
32245 - CreateParams: Remove TODO and comment
32246 - OnKeyDown: Cycle through bounds properly.
32247 - SelectedIndex: Scroll to the right or left if we need to
32248 display the newly selected tab.
32250 2005-06-23 Jackson Harper <jackson@ximian.com>
32252 * TabControl.cs: Stay in bounds when cycling. Make sure Handled is
32255 2005-06-23 Jackson Harper <jackson@ximian.com>
32257 * TabControl.cs: Keyboard handling. We now support CTRL-TAB,
32258 CTRL-SHIFT-TAB, and HOME, END are there any others?
32260 2005-06-23 Jackson Harper <jackson@ximian.com>
32262 * XplatUIX11.cs: Get the modifier keys from the keyboard driver.
32264 2005-06-22 Jordi Mas i Hernandez <jordi@ximian.com>
32266 * DataGridTextBoxColumn.cs: fixes and enhancements
32267 * ThemeWin32Classic.cs: fixes and enhancements
32268 * DataGridBoolColumn.cs: fixes and enhancements
32269 * DataGridDrawingLogic.cs: fixes and enhancements
32270 * CurrencyManager.cs: fixes and enhancements
32271 * DataGrid.cs: fixes and enhancements
32272 * DataGridColumnStyle.cs: fixes and enhancements
32274 2005-06-22 Jackson Harper <jackson@ximian.com>
32276 * TabControl.cs: Add some missing methods that just call into the
32277 base. Make the TabPageCollection's IList interface behave in the
32278 same manner as the MS implementation.
32280 2005-06-22 Peter Bartok <pbartok@novell.com>
32282 * TextControl.cs: Added sanity check
32284 - Fixed wrapping behaviour, don't set wrap on single line controls
32285 (this fixes the breakage of colordialog introduced in an earlier
32287 - Added rudimentary support for autoscrolling right-aligned controls
32288 (still needs fixing, also, center alignment scroll is missing)
32290 2005-06-22 Jordi Mas i Hernandez <jordi@ximian.com>
32292 * ScrollBar.cs: Fixes thumbpos on Maximum values
32294 2005-06-21 Jonathan Chambers <jonathan.chambers@ansys.com>
32296 * PropertyGridView.cs: Pass context information to UITypeEditors
32298 2005-06-21 Peter Bartok <pbartok@novell.com>
32301 - Now calling PositionCaret with absolute space coordinates
32302 - Enabled vertical scrolling
32303 - Better tracking of scrollbar changes, tied into WidthChange
32305 - Improved cursor tracking
32306 - Removed debug output
32308 - PositionCaret coordinates are now works in absolute space, not
32310 - Improved tracking of document size
32311 - Added events for width and height changes
32313 2005-06-21 Peter Bartok <pbartok@novell.com>
32315 * Form.cs: Set focus to active control when form is activated
32317 - Added word-wrap functionality to RecalculateLine()
32318 - Added some short function descriptions for VS.Net to aid in
32319 writing dependent controls
32320 - Added Caret property, returning the current coords of the caret
32321 - Added ViewPortWidth and ViewPortHeight properties
32322 - Added Wrap property
32323 - Added CaretMoved event
32324 - Removed some old debug code
32325 - Split() can now create soft splits
32326 - Added PreviousTag()/NextTag() to allow walking "tag-lists"
32327 - Added method to format existing text
32328 - Fixed size/alignment calculations to use viewport
32329 - RecalculateDocument now can handle changing line-numbers while
32333 - Added some wrap logic, we don't wrap if alignment is not left
32334 - Added casts for scrollbar var, base class switched types to
32335 also support RichTextBoxA
32336 - Implemented handling of scrollbar visibility flags
32339 - Switched scrollbars type to RichTextBoxScrollBars to support
32341 - Added tracking of canvas width/height
32342 - Switched scrollbars to be not selectable (to keep focus on text)
32343 - Added central CalculateDocument() method to handle all redraw
32345 - Added ReadOnly support
32346 - Added WordWrap support
32347 - Fixed handling of Enter key (we now treat it as a DialogKey)
32348 - Fixed caret positioning when h or v scroll is not zero
32349 - Fixed placing/generation of vertical scrollbar
32350 - Added CalculateScrollBars() method to allow updating scrollbar
32351 limits and visibility
32352 - Fixed handling of horizontal scroll
32353 - Added handling of vertical scroll
32354 - Implemented auto-'jump' when caret moves to close to a left or
32355 right border and there is text to be scrolled into view (currently
32356 there's the potential for a stack overflow, until a bug in
32357 scrollbar is fixed)
32359 2005-06-21 Geoff Norton <gnorton@customerdna.com>
32361 * XplatUIOSX.cs: Initial implementation of WM_ERASEBKGND
32363 2005-06-19 Alexander Olk <xenomorph2@onlinehome.de>
32367 - return application/x-zerosize for files with size zero
32368 (if no extension pattern matches).
32369 - check matches collection for strings too.
32370 - return only the first mime type if the name value
32371 collection has more than one mime type.
32373 2005-06-18 Jonathan Chambers <jonathan.chambers@ansys.com>
32375 * PropertyGrid.cs: Cleaned up some TODOs
32376 * PropertyGridView.cs: Added support for UITypeEditors
32378 2005-06-17 Jordi Mas i Hernandez <jordi@ximian.com>
32380 * DataGrid.cs: clears cached value
32382 2005-06-17 Jordi Mas i Hernandez <jordi@ximian.com>
32384 * DataGridTextBoxColumn.cs: new rows, speed improvements, fixes, readonly prop.
32385 * DataGridDrawingLogic.cs: new rows, speed improvements, fixes, readonly prop.
32386 * DataGrid.cs: new rows, speed improvements, fixes, readonly prop.
32387 * DataGridColumnStyle.cs: new rows, speed improvements, fixes, readonly prop.
32389 2005-06-16 Jordi Mas i Hernandez <jordi@ximian.com>
32391 * ThemeWin32Classic.cs: fixes colour
32393 2005-06-15 Peter Bartok <pbartok@novell.com>
32395 * MWFCategoryAttribute.cs: Added (Needed for PropertyGrid designer support)
32396 * MWFDescriptionAttribute.cs: Added (Needed for PropertyGrid designer support)
32397 * ButtonBase.cs: Added MWFCategory and MWFDescription attributes
32398 * Control.cs: Added some MWFCategory and MWFDescription attributes
32399 * ScrollBar.cs: Added some MWFCategory and MWFDescription attributes
32401 2005-06-15 Alexander Olk <xenomorph2@onlinehome.de>
32403 * Mime.cs, MimeGenerated.cs: First draft of MWF mime stuff, see Mime.cs for
32406 2005-06-14 Jordi Mas i Hernandez <jordi@ximian.com>
32408 * DataGridTextBoxColumn.cs: default datagrid settings for Default Styles, fixes
32409 * DataGridTableStyle.cs: default datagrid settings for Default Styles, fixes
32410 * DataGridDrawingLogic.cs: default datagrid settings for Default Styles, fixes
32411 * DataGridBoolColumn.cs: default datagrid settings for Default Styles, fixes
32412 * DataGrid.cs: default datagrid settings for Default Styles, fixes
32413 * DataGridColumnStyle.cs: default datagrid settings for Default Styles, fixes
32415 2005-06-13 Jackson Harper <jackson@ximian.com>
32417 * XplatUIX11.cs: Override SetAllowDrop on X11 so an error message
32418 isn't printed when the user enables dropping. (X11 does accept
32421 2005-06-13 Jackson Harper <jackson@ximian.com>
32423 * TreeView.cs: Remove some TODOS.
32425 2005-06-13 Jackson Harper <jackson@ximian.com>
32427 * Form.cs: Hook into the mdi framework.
32428 * MdiClient.cs: Use the base control collections add method so
32429 parents get setup correctly. Set the default back colour and dock
32431 * MdiChildContext.cs: New class, this bad actor handles an
32432 instance of an MDI window. Right now there is only basic
32433 support. You can drag, close, and resize windows. Minimize and
32434 Maximize are partially implemented.
32436 2005-06-13 Jackson Harper <jackson@ximian.com>
32438 * XplatUIX11.cs: Mash numbers together properly, otherwise we get
32439 freaky when both vals are negative. NOTE: There are probably other
32440 places in XplatUIX11 that this needs to be done.
32442 2005-06-13 Jordi Mas i Hernandez <jordi@ximian.com>
32444 * DataGrid.cs: implement missing methods, move KeyboardNavigation
32445 * DataGridColumnStyle.cs: fixes signature
32447 2005-06-12 Jackson Harper <jackson@ximian.com>
32449 * XplatUIX11.cs: Use sizing cursors similar to the ones on
32452 2005-06-11 Jackson Harper <jackson@ximian.com>
32454 * StatusBarPanel.cs: Signature cleanups. Implement
32457 2005-06-10 Jordi Mas i Hernandez <jordi@ximian.com>
32459 * DataGridTextBoxColumn.cs: Honors aligment
32460 * GridColumnStylesCollection.cs: Contains is case unsensitive
32461 * GridTableStylesCollection.cs: several fixes
32462 * DataGridTableStyle.cs: default column creation
32463 * DataGridDrawingLogic.cs: fixes
32464 * CurrencyManager.cs: ListName property
32465 * DataGrid.cs: multiple styles support
32466 * DataGridColumnStyle.cs: fixes
32469 2005-06-10 Peter Bartok <pbartok@novell.com>
32471 * Control.cs(Select): Moved SetFocus call to avoid potential
32472 loops if controls change the active control when getting focus
32473 * UpDownBase.cs: Fixes to allow proper keyboard focus after clicking
32474 the up/down buttons
32476 2005-06-10 Matthias Felgner <matthiasf@voelcker.ocm>
32478 * ImageListConverter.cs: Implemented
32480 2005-06-10 John BouAntoun <jba-mono@optusnet.com.au>
32482 * MonthCalendar.cs: Wired in NumericUpDown control for year
32484 2005-06-10 John BouAntoun <jba-mono@optusnet.com.au>
32486 * MonthCalendar.cs: Removed MonoTodo attributes on Click and
32487 DoubleClick events, since they are not meant to be fired.
32489 2005-06-09 Peter Bartok <pbartok@novell.com>
32491 * UpDownBase.cs, NumericUpDown.cs, DomainUpDown.cs: Integrated
32492 Jonathan's standalone controls into MWF, implemented missing
32493 events, attributes and methods; added xxxAccessible classes
32494 * AccessibleObject.cs: Made fields internal so other classes
32495 can change them if needed
32497 2005-06-09 Jonathan Gilbert <2a5gjx302@sneakemail.com>
32499 * UpDownBase.cs: Complete implementation
32500 * NumericUpDown.cs: Complete implementation
32501 * DomainUpDown.cs: Complete implementation
32503 2005-06-09 Jordi Mas i Hernandez <jordi@ximian.com>
32505 * DataGridTextBoxColumn.cs: drawing fixes
32506 * DataGridCell.cs: fixes ToString method to match MSNet
32507 * DataGridTableStyle.cs: fixes
32508 * DataGridBoolColumn.cs: fixes, drawing
32509 * DataGridDrawingLogic.cs: fixes, new methods
32510 * DataGridTextBox.cs: Keyboard and fixes
32512 - Keyboard navigation
32514 - Row selection (single, multiple, deletion, etc)
32517 2005-06-07 Jackson Harper <jackson@ximian.com>
32519 * ThemeWin32Classic.cs: Clear the background area when drawing
32522 2005-06-06 Peter Bartok <pbartok@novell.com>
32524 * ImageListStreamer.cs: Fixed signature for GetData
32525 * CheckBox.cs: Fixed base class for CheckBoxAccessibleObject
32527 - Added missing ChildAccessibleObject class
32528 - Added missing OnXXXFocus overrides, switched to using those
32529 instead of the event handler
32531 - Added Parent property for ControlAccessibleObject
32534 - Added ResetBindings()
32535 * ListBindingConverter.cs: Implemented some methods
32536 * ButtonBase.cs: Added missing ButtonBaseAccessibleObject class
32537 * ImageList.cs: Implemented basic handle scheme, removed TODOs
32538 * ContainerControl.cs: Fixed signature, now subscribing to the
32539 ControlRemoved event instead of overriding the handler, LAMESPEC
32540 * CurrencyManager.cs: Added missing attribute
32541 * MonthCalendar.cs: Added missing properties
32543 2005-06-06 Jordi Mas i Hernandez <jordi@ximian.com>
32545 * DataGridColumnStyle.cs: fixes for DataGridColumnStyle
32547 2005-06-06 Gaurav Vaish and Ankit Jain
32549 * DataSourceHelper.cs: Gaurav Vaish and Ankit Jain patch for databinding
32550 * DataGrid.cs: Gaurav Vaish and Ankit Jain patch for databinding
32552 2005-06-06 Jordi Mas i Hernandez <jordi@ximian.com>
32554 * Control.cs: fixes CreateParams Width / Height.
32556 2005-06-05 Peter Bartok <pbartok@novell.com>
32558 * Win32DnD.cs: Removed compilation warnings
32560 2005-06-05 Peter Bartok <pbartok@novell.com>
32562 * Control.cs (CreateParams): Since we don't know if one of the
32563 properties we use is overridden, lets make sure if we fail accessing
32564 we continue with a backup plan
32566 2005-06-05 Peter Bartok <pbartok@novell.com>
32569 - Removed debug output
32570 - Added MarshalAs attribute to ensure proper marshalling of FORMATETC
32572 - Plugged resource leak
32573 * XplatUIStructs.cs: Changed ClipboardFormats size to ushort, to match
32576 2005-06-05 Peter Bartok <pbartok@novell.com>
32578 * XplatUIWin32.cs: Removed DnD code
32579 * Win32DnD.cs: Implemented drop source and drop target functionality
32581 2005-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
32583 * UpDownBase.cs: remove duplicate addition of event, enable some code
32584 that was commented out.
32585 * NumericUpDown.cs: added missing attributes and Hexadecimal property.
32586 Validate input when a key is pressed. It works fine now for every
32587 combination of Hexadecimal. Only missing some drawing love when sharing
32588 space with other controls.
32590 2005-06-04 Peter Bartok <pbartok@novell.com>
32593 - We need to pass a window for DragDrop, so enable callback events
32594 - Added DnD callback events when being a DragSource
32595 * XplatUI.cs (StartDrag): Added window handle argument
32596 * XplatUIDriver.cs (StartDrag): Added window handle argument
32597 * QueryContinueDragEventArgs: Made fields internally accessible so
32598 drivers can set them
32599 * GiveFeedbackEventArgs: Made fields internally accessible so drivers
32602 2005-06-03 Jordi Mas i Hernandez <jordi@ximian.com>
32604 * DataGridTextBoxColumn.cs: column text editing
32605 * DataGridTableStyle.cs: Respect columns styles created by the user
32606 * DataGridDrawingLogic.cs: lots of drawing fixes and enhanments
32607 * DataGridBoolColumn.cs: bool column editing
32608 * DataGrid.cs: fixes to scrolling, properties, etc
32609 * DataGridTextBox.cs: handle keyboard
32610 * DataGridColumnStyle.cs: fixes
32612 2005-06-02 Jackson Harper <jackson@ximian.com>
32614 * ImageListStreamer.cs: Somewhat broken implementation of
32615 GetObjectData. The RLE needs some work to match MS properly.
32617 2005-06-02 Jackson Harper <jackson@ximian.com>
32619 * X11Dnd.cs: Attempting to keep at least one file in MWF
32622 2005-06-02 Peter Bartok <pbartok@novell.com>
32624 * X11DnD.cs: Use Marshal.SizeOf instead of sizeof, no /unsafe required
32627 2005-06-02 Peter Bartok <pbartok@novell.com>
32629 * Control.cs: Removed MonoTODO from DoDragDrop and added call to Xplat
32630 * XplatUI.cs: Added DoDragDrop() method
32631 * XplatUIDriver.cs: Added DoDragDrop() method
32633 2005-06-02 Jackson Harper <jackson@ximian.com>
32635 * Splitter.cs: Implement BorderStyle.
32637 2005-06-02 Jackson Harper <jackson@ximian.com>
32639 * XplatUIX11.cs: Tie into the X11Dnd subsystem.
32640 * X11Dnd.cs: New file. A subsystem that handles drag and drop on
32643 2005-06-02 Peter Bartok <pbartok@novell.com>
32646 - Added Data setter
32647 - Fixed broken insertion code for SetData, now also
32648 overwrites any existing entry of the same format name
32649 * Hwnd.cs: Added list of pointers that automatically gets
32650 freed when the window is disposed
32651 * XplatUI.cs: Call driver initialization method when loading
32654 - OnDragLeave takes EventArgs, not DragEventArgs
32655 - Added setting of WS_EX_ACCEPTFILES style when dropping is
32657 - Forces style update when drop state changes
32658 * XplatUIWin32.cs: Implemented Drag'n'Drop (as good as possible,
32659 not perfect since we cannot (yet) call the IDataObject.GetData()
32660 method, we keep getting 0x80004005 error, dunno why)
32662 2005-06-02 Peter Bartok <pbartok@novell.com>
32664 * DragEventArgs.cs: Make fields internal so we can cache the
32665 object and re-set the fields from XplatUI
32667 2005-06-02 Jackson Harper <jackson@ximian.com>
32669 * Control.cs: Add some internal methods so the DnD subsystem can
32670 raise DnD events. Also call into the driver when AllowDrop is set.
32672 * XplatUIDriver.cs: New method for setting whether or not a window
32673 is allowed to accept drag and drop messages.
32675 2005-06-01 Jordi Mas i Hernandez <jordi@ximian.com>
32677 * ScrollBar.cs: Make sure that values sent in Scroll events
32678 are always between Maximum and Minimum.
32680 2005-06-01 Marek Safar <marek.safar@seznam.cz>
32682 * Menu.cs: Call MenuChanged when menuitem visibility has been
32684 * MenuItem.cs: Rebuild menu when item is (not) visible.
32685 * MainMenu.cs: MainMenu has special MenuChanged.
32686 * Theme.cs: Caption and FrameBorderSize are not fixed.
32687 * XplatUI.cs: Added CaptionHeight,FrameBorderSize.
32688 * XplatUIDriver.cs: Introduced Caption and FrameBorderSize.
32690 * XplatUIOSX: Caption and FrameBorderSize not implemented yet.
32691 * XplatUIWin32.cs: Get Caption and FrameBorderSize from system.
32693 2005-05-30 Jackson Harper <jackson@ximian.com>
32695 * DataFormat.cs: We can't statically initialize this stuff because
32696 it calls into the xplatui and could create a loop. So we lazy init
32699 2005-05-28 Jackson Harper <jackson@ximian.com>
32701 * Control.cs: Proper implementation of Product(Name/Version).
32703 2005-05-27 Jackson Harper <jackson@ximian.com>
32705 * DataObject.cs: Dont crash if no data is found.
32707 2005-05-26 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
32708 * MdiClient.cs: Add missing Localizable attribute to BackgroundImage property
32709 as per status page, guessing it should be set to true
32711 2005-05-26 Jordi Mas i Hernandez <jordi@ximian.com>
32713 * DataGridTextBoxColumn.cs: Draws text and basic text formatting
32714 * DataGridTableStyle.cs: set proper formatting text, def header text
32715 * ThemeWin32Classic.cs: new themable paramaters
32716 * DataGridBoolColumn.cs: paint check box, get data, fixes
32717 * DataGridDrawingLogic.cs: huge improvements in painting, fixes, new methods
32718 * DataGrid.cs: fixes properties, implements vertical and horizontal scrolling
32719 * DataGridColumnStyle.cs: fixes
32720 * Theme.cs: new themable paramaters
32722 2005-05-26 Peter Bartok <pbartok@novell.com>
32724 * ContainerControl.cs: Pass AdjustFormScrollbars() call on to base
32726 2005-05-24 Jonathan S. Chambers <jonathan.chambers@ansys.com>
32727 * Control.cs: Fixed LowOrder and HighOrder to preserve sign.
32729 2005-05-24 Peter Bartok <pbartok@novell.com>
32731 * OpenFileDialog.cs, Form.cs, Menu.cs, GroupBox.cs, UserControl.cs,
32732 Label.cs, DataGridTextBoxColumn.cs, PropertyGrid.cs, ErrorProvider.cs
32733 Splitter.cs, Control.cs, FontDialog.cs, TabPage.cs,
32734 FolderBrowserDialog.cs, HelpProvider.cs, DataGridTableStyle.cs,
32735 NotifyIcon.cs, FileDialog.cs, ListView.cs, SaveFileDialog.cs,
32736 ToolBarButton.cs, ImageList.cs, DataGridBoolColumn.cs, Panel.cs,
32737 DataGrid.cs, DataGridTextBox.cs, ListBox.cs, TrackBar.cs,
32738 AxHost.cs, TabControl.cs, ScrollableControl.cs, ToolBar.cs,
32739 DataGridColumnStyle.cs, PictureBox.cs, DateTimePicker.cs,
32740 StatusBar.cs, MonthCalendar.cs, TreeView.cs: Added
32741 missing attributes, etc
32742 * DataGridPreferredColumnWidthTypeConverter.cs: Added
32744 2005-05-24 Peter Bartok <pbartok@novell.com>
32746 * Help.cs: Added, implemented trivial functions, throws up MessageBox
32747 when user tries to get help
32748 * DataObject.cs, DataFormats.cs, LinkArea.cs,
32749 SelectionRangeConverter.cs, Clipboard.cs : Removed unused variables
32750 to suppress warnings
32751 * XplatUIWin32.cs, XplatUIOSX.cs, XplatUIX11.cs: Removed unused code to
32752 avoid unreachable code warning
32754 2005-05-20 Peter Bartok <pbartok@novell.com>
32756 * CursorConverter.cs (ConvertTo): Switched to use Cursor.GetObjectData
32758 2005-05-20 Jordi Mas i Hernandez <jordi@ximian.com>
32760 * DataGridTextBoxColumn.cs: Basic painting methods
32761 * DataGridTableStyle.cs: Set table style in the column
32762 * ThemeWin32Classic.cs: Use Theme for colors
32763 * DataGridDrawingLogic.cs: Implement more drawing
32764 * DataGrid.cs: drawing, theming, enhacements, fixes
32765 * DataGridColumnStyle.cs: fixes, drawing
32766 * Theme.cs: theming for Datagrid
32768 2005-05-20 Peter Bartok <pbartok@novell.com>
32770 * Cursor.cs: Implemented GetObjectData() method
32772 2005-05-20 Peter Bartok <pbartok@novell.com>
32774 * Cursors.cs: Added setting of cursor name
32776 - Implemented constructors
32777 - Implemented Draw and DrawStretched
32778 - Implemented Current property
32779 - Implemented == and != operators
32780 - Implemented Dispose()
32781 - Implemented ToString
32782 - Added missing attributes
32784 - Added missing reset for OverrideCursor when DoEvents is called
32785 - Fixed creation of cursor, logic was wrong
32787 - Added missing reset for OverrideCursor when DoEvents is called
32788 - Fixed creation of cursor, bit arrays were swapped
32789 * Clipboard.cs: Removed obsolete MonoTODO attribute
32791 2005-05-20 Jordi Mas i Hernandez <jordi@ximian.com>
32793 * ComboBox.cs: fixes OnSelectedItemChanged
32794 * ControlBindingsCollection.cs: fixes item range check
32796 2005-05-20 Jordi Mas i Hernandez <jordi@ximian.com>
32799 - Calc preferred height properly
32800 - Implement missing properties
32802 * NumericUpDown.cs: Implement missing events
32804 2005-05-19 Jackson Harper <jackson@ximian.com>
32806 * TabControl.cs: New method that resizes the tab pages before
32807 redrawing them. This as needed as the control is double buffered
32808 and sizing will not be recalculated unless ResizeTabPages is
32810 * TabPage.cs: Set base.Text instead of Text in the constructor so
32811 that UpdateOwner does not get called. Use the new Redraw method of
32812 TabControl instead of Refresh so the sizing is recalculated.
32813 * ThemeWin32Classic.cs: Draw the text for button tabs.
32815 2005-05-19 Jackson Harper <jackson@ximian.com>
32817 * Control.cs: Paint control background images. Fix typo where
32818 PaintControlBackground was not getting called correctly.
32820 2005-05-19 Peter Bartok <pbartok@novell.com>
32822 * ScrollableControl.cs (DisplayRectangle): Undid my last change until
32823 I can investigate, apparently I broke FileDialog
32825 2005-05-19 Marek Safar <marek.safar@seznam.cz>
32827 * AxHost.cs: Some simple properties.
32828 * Control.cs: window must be accessible after ctor.
32829 * Form.cs: Added TransparencyKey property.
32830 * TextBoxBase.cs: Implemented Clear. Text property can be null.
32831 * XplatUIWin32.cs: SetBorderStyle implemented.
32833 2005-05-18 Peter Bartok <pbartok@novell.com>
32835 * DataObject.cs: Entries are not global but particular to the
32836 DataObject, now it behaves that way
32837 * XplatUIWin32.cs: Implemented Clipboard methods
32838 * Clipboard.cs: Implemented
32839 * ScrollableControl.cs (DisplayRectangle): Fixed calculation
32840 * XplatUIOSX.cs: Updated to final clipboard prototypes
32841 * XplatUIX11.cs: Implemented Clipboard methods
32842 * XplatUIDriver.cs: Updated to final clipboard prototypes
32843 * XplatUIStructs.cs:
32844 - Added BITMAPINFOHEADER struct
32845 - Added ClipboardFormats enum
32847 - Added ClipboardStruct
32848 - Added Atom enum items for clipboard types
32849 - Fixed atom types for Selection event structures
32851 - Added internal properties and methods for drivers to enumerate
32853 - Switched initialization method to allow drivers to assign their
32854 own IDs even for the MS predefined clipboard IDs
32855 * XplatUI.cs: Updated to final clipboard interface
32857 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
32858 * PropertyGridView.cs: Fixed compiler warnings.
32860 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
32861 * PropertyGrid.cs: Added some event calls
32862 * PropertyGridView.cs: Change drawing code to use double buffering
32863 * PropertyGridTextBox.cs: Changed Text property name
32864 * GridItem.cs: Added Bounds property.
32865 * GridEntry.cs: Added Bounds property.
32867 2005-05-17 Lluis Sanchez Gual <lluis@novell.com>
32869 * Binding.cs: Use IsInstanceOfType instead of IsAssignableFrom
32870 since GetType() may not return the correct type if the object is
32873 2005-05-17 Jordi Mas i Hernandez <jordi@ximian.com>
32875 * TreeNodeCollection.cs: fixes get/set item ranges
32877 2005-05-15 Jordi Mas i Hernandez <jordi@ximian.com>
32879 * ListBox.cs: Kazuki Oikawa's PreferredHeight and ItemHeight fixes
32881 2005-05-15 Jordi Mas i Hernandez <jordi@ximian.com>
32883 * ComboBox.cs: Fix item range comparation
32884 * ListView.cs: Fix item range comparation
32886 2005-05-03 Alexander Olk <xenomorph2@onlinehome.de>
32889 - Clear example panel when OnPaint is called
32890 - Better solution for displaying the example panel text
32891 - Select default indexes in the ListBoxes
32893 2005-05-11 Geoff Norton <gnorton@customerdna.com>
32895 * XplatUIOSX.cs: Avoid painting into invisible views. Fixes #74926
32897 2005-05-11 Peter Bartok <pbartok@novell.com>
32899 * LinkArea.cs: Added and implemented LinkAreaTypeConverter class
32900 * SelectionRangeConverter.cs: Implemented
32901 * PropertyGrid.cs: Fixed attribute value
32903 - Invoke(): Don't call Begin/EndInvoke if it is not neccessary
32904 - Added Sebastien Pouliot's CAS Stack Propagation fixes
32905 * XplatUIDriver.cs: Added new XplatUIDriverSupport class, for code
32906 that's common to all drivers. First methods to go there are
32907 Sebastien Pouliot's CAS Stack Propagation helper methods
32908 * XplatUIWin32.cs, XplatUIX11.cs, AsyncMethodData.cs: Fixes by
32909 Sebastien Pouliot for CAS Stack Propagation
32911 2005-05-11 Geoff Norton <gnorton@customerdna.com>
32914 XplatUIOSX.cs: More cosmetic cleanup courtesy of Artyom Tyazhelov (Artyom.Tyazhelov@helmes.ee)
32916 2005-05-12 Jordi Mas i Hernandez <jordi@ximian.com>
32918 * DataGridTextBoxColumn.cs: fixed some members
32919 * GridColumnStylesCollection.cs: indexed column is case insensitive
32920 * DataGridTableStyle.cs: fixes
32921 * ThemeWin32Classic.cs: add new theme parameter
32922 * Theme.cs: add new theme parameter
32923 * DataGridDrawingLogic.cs: Datagrid's drawing logic
32924 * DataGrid.cs: fixes, new internal properties, etc.
32925 * DataGridColumnStyle.cs: allows to set grid value
32928 2005-05-10 Peter Bartok <pbartok@novell.com>
32930 * AccessibleObject.cs:
32931 - Removed MonoTODO attribute on help, method is correct
32932 - Fixed Bounds property
32933 * AxHost.cs: Moved MonoTODO
32934 * ButtonBase.cs: Now setting AccessibleObject properties
32935 * RadioButton.cs: Setting proper AccessibleObject role
32936 * CheckBox.cs: Setting proper AccessibleObject role
32937 * ControlBindingsCollection.cs: Added properties, methods and attributes
32938 * DataFormats.cs: Fixed awkward internal API, and changed to enable
32939 userdefined DataFormats.Format items as well
32940 * ListControl.cs: Removed data_member from the public eye
32941 * OpenFileDialog.cs:
32942 - Made class sealed
32943 - Added missing attributes
32944 * SaveFileDialog.cs: Added missing attributes
32945 * ImageListStreamer.cs: Fixed code that caused warnings
32946 * LinkLabel.cs: Removed unreachable code
32947 * TreeView.cs: Fixed code that caused warnings
32948 * PropertyGridView.cs: Fixed code that caused warnings
32949 * GridColumnStylesCollection.cs: Added missing attributes
32950 * GridTableStylesCollection: Added missing attribute
32951 * PropertyManager: Added .ctor
32952 * SecurityIDType: Added
32953 * DataObject.cs: Implemented class
32954 * LinkArea.cs: Added missing attribute
32956 2005-05-11 Jordi Mas i Hernandez <jordi@ximian.com>
32958 * RadioButton.cs: call base method to allow to fire OnClick event
32959 * UpDownBase.cs: OnMouseUp call base method
32960 * CheckedListBox.cs: call base method before returning
32961 * TrackBar.cs: call base method before returning
32964 2005-05-10 Peter Bartok <pbartok@novell.com>
32966 * XplatUIX11.cs: Fix for #74902, check pending timers when peeking
32969 2005-05-10 Peter Bartok <pbartok@novell.com>
32971 * DataFormats.cs: Implemented
32972 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs,
32973 XplatUIX11.cs: Added Clipboard APIs
32974 * XplatUIWin32.cs: Implemented Clipboard APIs
32975 * FolderBrowserDialog.cs: Added missing event, attributes
32977 2005-05-10 Jordi Mas i Hernandez <jordi@ximian.com>
32979 * CheckBox.cs: call base method to allow to fire OnClick event
32981 2005-05-09 Sebastien Pouliot <sebastien@ximian.com>
32983 * XplatUI.cs: Use PlatformID.Unix under NET_2_0.
32985 2005-05-06 Peter Bartok <pbartok@novell.com>
32987 * XplatUIX11.cs: Redid Jackson's fix, it was causing a busy loop
32988 * Screen.cs: Implemented
32989 * HelpNavigator.cs: Added
32990 * XplatUIWin32.cs: Added SystemParametersInfo call, fixed WorkArea
32992 * HelpProvider.cs: Implemented all we can do until we have a CHM
32993 help library (which means that "What's This" does work now)
32995 2005-05-06 Jackson Harper <jackson@ximian.com>
32997 * XplatUIX11.cs: Fix waking up the main loop.
32999 2005-05-05 Peter Bartok <pbartok@novell.com>
33001 * XplatUI.cs: Updated revision
33002 * Form.cs: Removed enless loop
33003 * GroupBox.cs (OnPaint): Added call to base.OnPaint()
33004 * Label.cs (OnPaint): Added call to base.OnPaint()
33005 * ToolTip.cs: Made ToolTipWindow reusable for other controls
33006 * LinkLabel.cs (OnPaint): Added call to base.OnPaint()
33007 * UpDownBase.cs (OnPaint): Moved base.OnPaint() call to end of method
33009 * ButtonBase.cs: Moved base.OnPaint() call to end of method
33010 * ThemeWin32Classic.cs: Replaced references to ToolTip with references
33011 to ToolTip.ToolTipWindow for drawing and size methods; this allows
33012 reuse of ToolTipWindow by other controls
33013 * SizeGrip.cs: Moved base.OnPaint() call to end of method
33014 * XplatUIX11.cs: Now clipping drawing area (experimental)
33015 * PictureBox.cs: Moved base.OnPaint() call to end of method
33016 * Theme.cs: Fixed ToolTip abstracts to match new format
33017 * ErrorProvider.cs: Implemented
33019 2005-05-05 Jordi Mas i Hernandez <jordi@ximian.com>
33021 * Label.cs: fire events using OnAutoSizeChanged and OnTextAlignChanged
33025 - Implements LinkBehavior
33026 - Fixes many issues
33028 2005-05-03 Jackson Harper <jackson@ximian.com>
33030 * ListView.cs: Calculate the scrollbar positioning on resize and
33031 paint, so they get put in the correct place.
33033 2005-05-03 Alexander Olk <xenomorph2@onlinehome.de>
33035 * ColorDialogs.cs: The small color panels are now handled by
33036 SmallColorControl. This fixes drawing of the focus rectangle
33037 and adds a 3D border.
33039 2005-05-03 Peter Bartok <pbartok@novell.com>
33041 * Control.cs: Modified version of Jonathan Chamber's fix for
33044 2005-05-03 Jackson Harper <jackson@ximian.com>
33046 * ListView.cs: Remove redraw variable. Control now handles whether
33047 or not a redraw needs to be done, and will only raise the paint
33048 event if redrawing is needed.
33050 2005-05-03 Jackson Harper <jackson@ximian.com>
33052 * Splitter.cs: No decorations for the splitter form. Cache the
33055 2005-05-03 Jackson Harper <jackson@ximian.com>
33057 * TreeView.cs: Use dashed lines to connect nodes. Use the
33058 ControlPaint method for drawing the focus rect instead of doing
33061 2005-05-02 Peter Bartok <pbartok@novell.com>
33063 * LinkLabel.cs: Fixed the fixes from r43566 and 43521
33065 2005-04-29 Jackson Harper <jackson@ximian.com>
33067 * ThemeWin32Classic.cs: Don't clear the GC that will clear the
33068 entire image buffer. Just clear the clipping rectangle.
33070 2005-04-29 Jackson Harper <jackson@ximian.com>
33072 * ThemeWin32Classic.cs: Don't draw list view items that are
33073 outside the clipping rectangle.
33075 2005-04-29 Jordi Mas i Hernandez <jordi@ximian.com>
33077 * ListBox.cs: added horizontal item scroll
33079 2005-04-29 Jackson Harper <jackson@ximian.com>
33081 * ThemeWin32Classic.cs: Remove some old debug code that was
33082 causing flicker with the new double buffering code.
33084 2005-04-29 John BouAntoun <jba-mono@optusnet.com.au>
33086 * MonthCalendar.cs, DateTimePicker.cs: Made monthcalendar dropdwon
33087 behave like combobox and comboboxlist (still not sure if this is
33090 2005-04-28 Jackson Harper <jackson@ximian.com>
33092 * ThemeWin32Classic.cs: Don't fill the middle of progress
33093 bars. This fills areas outside of the clip bounds that don't need
33096 2005-04-28 Jackson Harper <jackson@ximian.com>
33098 * Control.cs: Don't expose functionality to touch the image buffers.
33100 * ListView.cs: We do not need to (and no longer can) manipulate
33101 the image buffers directly. All of this is handled by Control.
33103 2005-04-28 Peter Bartok <pbartok@novell.com>
33105 * RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
33106 RichTextBoxScrollBars.cs, RichTextBoxStreamType.cs,
33107 RichTextBoxFinds.cs, RichTextBoxWordPunctuations.cs: Added
33109 2005-04-28 Jordi Mas i Hernandez <jordi@ximian.com>
33112 - Adjust control's height for non-simple comboboxes (bug fix)
33114 * MenuAPI.cs: remove unused var
33115 * ScrollBar.cs: remove unsed var
33117 * ListBox.cs: unselect items when clearing
33119 2005-04-28 Jordi Mas i Hernandez <jordi@ximian.com>
33121 * ListControl.cs: honors OnPositionChanged and default Selected Item
33122 * ListBox.cs: unselect items when clearing
33124 2005-04-27 Jackson Harper <jackson@ximian.com>
33126 * X11Keyboard.cs: Initialize a default keyboard and give a warning
33127 if a "correct" keyboard is not found. This will make us not crash,
33128 but might give some users bad keyboard layouts...seems to be the
33129 same thing rewind does.
33131 2005-04-27 Jackson Harper <jackson@ximian.com>
33133 * BindingManagerBase.cs: Attach the current/position changed
33134 handlers to their respective events.
33136 2005-04-27 Jackson Harper <jackson@ximian.com>
33138 * Control.cs: Make sure that the first WM_PAINT does a full draw,
33140 * ThemeWin32Classic.cs: Don't fill the background for picture
33141 boxes. This could overright user drawing.
33142 * ComboBox.cs: Just fill the clipping rect not the entire client
33143 rect when drawing the background. This prevents pieces of the
33144 image buffer from getting overwritten and is theoretically faster.
33146 2005-04-26 Jordi Mas i Hernandez <jordi@ximian.com>
33148 * ComboBox.cs: Databinding support fixes, fire missing events
33149 * ListControl.cs: implement missing methods and properties, fixes
33150 * ThemeWin32Classic.cs: Databiding support on Drawing
33151 * CheckedListBox.cs: Databinding support fixes, fire missing events
33152 * ListBox.cs: Databinding support fixes, fire missing events
33154 2005-04-25 Peter Bartok <pbartok@novell.com>
33156 * LinkLabel.cs: Length of LinkArea is not allowed to be negative
33158 2005-04-25 Jackson Harper <jackson@ximian.com>
33160 * TreeView.cs: Use the horizontal scrollbars height not width when
33161 determining how much of the client area is available.
33163 2005-04-25 Jackson Harper <jackson@ximian.com>
33165 * Control.cs: Double buffering is handled differently now. As per
33166 the spec, the extra buffer is created in the WM_PAINT message and
33167 passed down to the control's drawing code.
33175 * PropertyGridView.cs:
33187 * DateTimePicker.cs:
33189 * TreeView.cs: Update to new double buffering system.
33190 * MonthCalendar.cs: Uncomment block, as Capture is now
33191 working. Update to new double buffering
33192 * LinkLabel.cs: Lazy init the link collection. Update to new double buffering
33193 * PaintEventArgs.cs: New internal method allows us to set the
33194 graphics object. This is used for double buffering.
33195 * ThemeWin32Classic.cs: Give the picture box drawing code a clip
33196 rectangle. The internal paint_area var has been removed from
33197 StatusBar. The clipping rect should be used instead.
33198 * Theme.cs: Give the PictureBox drawing method a clipping rect.
33199 * TabPage.cs: The RefreshTabs method was removed, so just call the
33200 tab controls Refresh method now.
33201 * TabControl.cs: Update to new double buffering. Make sure the
33202 handle is created before sizing the tab pages, otherwise we will
33203 get stuck in a loop.
33205 2005-04-24 Borja Sanchez Zamorano <borsanza@gmail.com>
33207 * LinkLabel.cs: Fix typo, bug #74719; patch
33208 from Borja Sanchez Zamorano
33210 2005-04-22 Jackson Harper <jackson@ximian.com>
33212 * TreeNode.cs: Implement Handle stuff.
33213 * TreeView.cs: Utility methods so nodes can get/lookup by handle.
33215 2005-04-22 Jordi Mas i Hernandez <jordi@ximian.com>
33217 * DataGridTextBoxColumn.cs: call base constructors, fixes
33218 * GridColumnStylesCollection.cs: missing events, methods, and functionality
33219 * GridTableStylesCollection.cs: fixes, check duplicate mapping names
33220 * DataGridTableStyle.cs: implements create default column styles
33221 * DataGridBoolColumn.cs: which types can handle
33222 * DataGrid.cs: missing methods, fixes, new functionality
33223 * DataGridColumnStyle.cs: fixes
33225 2005-04-20 Alexander Olk <xenomorph2@onlinehome.de>
33226 * FolderBrowserDialog.cs:
33227 - Use a thread to fill the TreeView
33228 - Adjusted some sizes
33230 2005-04-19 Peter Bartok <pbartok@novell.com>
33232 * LinkLabel.cs: (Re-)create the pieces when setting the Text
33233 property. Fixes #74360.
33235 2005-04-19 Jackson Harper <jackson@ximian.com>
33237 * XEventQueue.cs: Lock when getting the lockqueue size.
33238 * PictureBox.cs: Call base OnPaint
33240 2005-04-19 Peter Bartok <pbartok@novell.com>
33242 * XplatUIX11.cs: Fixed bug introduced with the HWND rewrite, Async
33243 messages were no longer being processed (this broke BeginInvoke)
33246 2005-04-18 Jackson Harper <jackson@ximian.com>
33248 * TreeView.cs: buglet that caused node images to get drawn
33249 regardless of whether or not they were in the clipping rectangle.
33251 2005-04-18 Jackson Harper <jackson@ximian.com>
33253 * CurrencyManager.cs: There are four rules for GetItemProperties:
33254 - If the type is an array use the element type of the array
33255 - If the type is a typed list, use the type
33256 - If the list contains an Item property that is not an object, use
33258 - use the first element of the list if there are any elements in
33261 2005-04-17 Jackson Harper <jackson@ximian.oom>
33263 * TreeView.cs: Calculate plus minus and checkbox bounds when there is a
33264 click. This handles offsets for scrolling properly and reduces
33265 memory. Also fixed GetNode to not offset now that TopNode works
33267 * TreeNode.cs: No longer need to track the plus minus or checkbox bounds.
33269 2005-04-17 Jackson Harper <jackson@ximian.com>
33271 * CursorConverter.cs: Initial implementation.
33273 2005-04-15 Jordi Mas i Hernandez <jordi@ximian.com>
33275 * ListControl.cs: work towards complex data binding support on ListControl
33276 * CurrencyManager.cs: work towards complex data binding support on ListControl
33277 * ListBox.cs: work towards complex data binding support on ListControl
33280 2005-04-15 Jordi Mas i Hernandez <jordi@ximian.com>
33282 * GridTableStylesCollection.cs: fixes name and constructor
33283 * DataGridTableStyle.cs: fixes
33284 * DataGridBoolColumn.cs: fixes names and constructors
33285 * DataGrid.cs: define methods and properties. Some init implementations
33286 * DataGridCell.cs: define methods and properties. Some init implementations
33287 * GridTablesFactory.cs: Define methods and properties
33289 2005-04-15 Geoff Norton <gnorton@customerdna.com>
33291 * XplatUIOSX.cs: Handle proper mouse tracking even if the current
33292 graphics port changes. We still want the coordinates in global screen
33295 2005-04-14 Jackson Harper <jackson@ximian.com>
33297 * TreeView.cs: Handle clicks when plus minus is disabled. Don't
33298 check plus minus or checkbox clicks unless those features are enabled.
33300 2005-04-14 Jackson Harper <jackson@ximian.com>
33302 * TreeView.cs: Add methods for setting the top and bottom visible
33303 nodes. TreeNode::EnsureVisible uses these methods.
33304 * TreeNode.cs: Implement EnsureVisible
33306 2005-04-13 Jordi Mas i Hernandez <jordi@ximian.com>
33308 * Form.cs: Pospone menu assignation if the window has not been created yet
33309 * XplatUIWin32.cs: Fixes Win32SetWindowPos, then does not change window
33312 2005-04-12 Jackson Harper <jackson@ximian.com>
33314 * TreeView.cs: Set the TopNode properly when scrolling
33315 occurs. This has the added benifit of reducing the amount of
33316 walking that needs to be done when drawing. Also removed an old
33318 * OpenTreeNodeEnumerator.cs: Fix moving backwards.
33320 2005-04-11 Jordi Mas i Hernandez <jordi@ximian.com>
33322 * Timer.cs: fixes interval setting when the timer is already enabled
33324 2005-04-10 Alexander Olk <xenomorph2@onlinehome.de>
33326 * FolderBrowserDialog.cs: First approach
33328 2005-04-09 Peter Bartok <pbartok@novell.com>
33330 * FolderBrowserDialog: Added
33332 2005-04-07 Jordi Mas i Hernandez <jordi@ximian.com>
33334 * LinkLabel.cs: move drawing code into the theme
33335 * ThemeWin32Classic.cs: drawing code and painting background bugfix
33336 * Theme.cs: define DrawLinkLabel method
33338 2005-04-05 Jackson Harper <jackson@ximian.com>
33340 * BindingContext.cs: Use weak references so these bad actors don't
33341 stay alive longer then they need to.
33343 2005-04-05 Jackson Harper <jackson@ximian.com>
33345 * ListControl.cs: Basic implementation of complex databinding.
33347 * ListBox.cs: Add calls to ListControl databinding methods.
33349 2005-04-05 Alexander Olk <xenomorph2@onlinehome.de>
33352 - Don't change PopupButtonState to Normal when the
33353 PopupButton gets pressed several times.
33354 - Renamed ButtonPanel to PopupButtonPanel
33356 2005-04-05 Jordi Mas i Hernandez <jordi@ximian.com>
33358 * ColorDialog.cs: Use cached objects instead of creating them
33359 * LinkLabel.cs: Use cached objects instead of creating them
33360 * Splitter.cs: Use cached objects instead of creating them
33361 * FontDialog.cs: Use cached objects instead of creating them
33362 * PropertyGridView.cs: Use cached objects instead of creating them
33363 * MessageBox.cs: Use cached objects instead of creating them
33364 * FileDialog.cs: Use cached objects instead of creating them
33365 * ThemeWin32Classic.cs: Use cached objects instead of creating them
33366 * TreeView.cs: Use cached objects instead of creating them
33368 2005-04-04 Jordi Mas i Hernandez <jordi@ximian.com>
33370 * Control.cs: use Equals to compare the font since no == op
33371 * ScrollBar.cs: use Equals to compare the font since no == op
33373 2005-04-04 Alexander Olk <xenomorph2@onlinehome.de>
33375 * SaveFileDialog.cs: Open stream in OpenFile with FileMode Create
33377 2005-04-01 Jackson Harper <jackson@ximian.com>
33379 * Binding.cs: Implement IsBinding.
33380 * BindingManagerBase.cs:
33381 * PropertyManager.cs:
33382 * CurrencyManager.cs: Add IsSuspended property.
33384 2005-04-01 Jackson Harper <jackson@ximian.com>
33386 * Binding.cs: Had some IsAssignableFrom calls backwards.
33388 2005-04-01 Jackson Harper <jackson@ximian.com>
33390 * Binding.cs: Handle null data members when pulling data.
33391 * PropertyManager.cs: Handle the data member being a property that
33394 2005-04-01 Jordi Mas i Hernandez <jordi@ximian.com>
33396 * DataGridTextBoxColumn.cs: fixes signature
33397 * DataGrid.cs: calls right constructor
33399 2005-04-01 Jordi Mas i Hernandez <jordi@ximian.com>
33401 * DataGridTextBoxColumn.cs: implements DataGridTextBoxColumn class
33402 * GridColumnStylesCollection.cs: implements GridColumnStylesCollection
33403 * GridTableStylesCollection.cs: implements GridTableStylesCollection
33404 * DataGridTableStyle.cs: implements DataGridTableStyle
33405 * DataGridBoolColumn.cs: implements DataGridBoolColumn
33406 * DataGridTextBox.cs: implements DataGridTextBox
33407 * DataGridColumnStyle.cs: implements DataGridColumnStyle
33409 2005-03-31 Alexander Olk <xenomorph2@onlinehome.de>
33411 * FileDialog.cs: Added simple PopupButton class for ButtonPanel
33413 2005-03-29 Peter Bartok <pbartok@novell.com>
33416 - Properly implemented CompanyName property
33417 - Fixed LocalUserAppDataPath and UserAppDataPath, now properly
33418 returns a path that includes CompanyName, ProductName and
33419 Version (fixes bug #70330)
33421 2005-03-29 Stefan Buehler <sbuehler@gmx.ch>
33423 * TabPage.cs: Don't use Owner.DisplayRectangle unless owner is valid,
33426 2005-03-28 Alexander Olk <xenomorph2@onlinehome.de>
33428 * FileDialog.cs, SaveFileDialog.cs OpenFileDialog.cs:
33430 - Added ReadOnly CheckBox
33431 - Further refactoring: moved some code from Open-/SaveFileDialog
33434 2005-03-28 Alexander Olk <xenomorph2@onlinehome.de>
33436 * OpenFileDialog.cs: Fixed CheckFileExists
33438 Moved FileView and DirComboBox outside FileDialog class.
33439 They can now be used outside FileDialog
33441 2005-03-27 Alexander Olk <xenomorph2@onlinehome.de>
33443 * FileDialog.cs: Added a contextmenu to change ShowHiddenFiles
33444 * SaveDialog.cs, OpenFileDialog.cs: Fixes for Reset() method
33446 2005-03-27 Alexander Olk <xenomorph2@onlinehome.de>
33448 * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
33449 - Added missing CreatePrompt property in SaveDialog
33450 - Overall SaveDialog handling should be better now
33451 - Added non standard ShowHiddenFiles property
33452 - Added extension, CreatePrompt and OverwritePrompt support in SaveDialog
33453 - Added InitialDirectory and RestoreDirectory support
33455 2005-03-26 Alexander Olk <xenomorph2@onlinehome.de>
33457 * FileDialog.cs: Made dirComboBox usable
33459 2005-03-24 Alexander Olk <xenomorph2@onlinehome.de>
33461 * FileDialog.cs: Added Filter support (case sensitiv)
33463 2005-03-24 Jackson Harper <jackson@ximian.com>
33465 * TabControl.cs: Need a couple more pixels for the lines.
33467 2005-03-23 Jackson Harper <jackson@ximian.com>
33469 * TabControl.cs: Give the tab page focus when it is selected.
33471 2005-03-23 Jackson Harper <jackson@ximian.com>
33473 * TabControl.cs: Account for the drawing of tabs borders when
33474 invalidating. If the slider was clicked dont do click detection on
33477 2005-03-23 Jackson Harper <jackson@ximian.com>
33479 * TabControl.cs: Fix typo, emilinates an unneeded expose event.
33481 2005-03-22 Jonathan Chambers <jonathan.chambers@ansys.com>
33483 * CategoryGridEntry.cs: Added
33484 * GridItem.cs: Added helper properties
33485 * PropertyGridTextBox.cs: Custom textbox control for PropertyGrid.
33486 * GridEntry.cs: Updated code for collection
33487 * PropertyGrid.cs: Cleaned up some formatting
33488 * PropertyGridView.cs: Added drop down functionality for enums.
33489 * GridItemCollection.cs: Added enumerator logic
33490 * PropertyGridEntry.cs: Added
33492 2005-03-19 Alexander Olk <xenomorph2@onlinehome.de>
33495 - Removed unnecessary commented code
33496 - Fixed handling for entering the filename manually in the combobox
33498 2005-03-19 Alexander Olk <xenomorph2@onlinehome.de>
33500 * FileDialog.cs, OpenFileDialog.cs: OpenFileDialog Multiselect now works
33502 2005-03-18 Peter Bartok <pbartok@novell.com>
33504 * ThemeWin32Classic.cs: Moved listview column headers a bit, to avoid
33505 them being touching the border
33507 2005-03-18 Peter Bartok <pbartok@novell.com>
33509 * TextControl.cs: Quick hack to center text better
33511 2005-03-18 Peter Bartok <pbartok@novell.com>
33514 - Don't throw NotImplemented exceptions, just print a notice once
33515 instead (requested by Miguel). This makes running existing SWF
33518 - Commented out Drag'N'Drop XplatUI call (no driver support yet)
33519 - Added context menu trigger on right click
33520 * Panel.cs: Trigger invalidate on resize
33522 - Removed old double-buffer drawing
33523 - Added ResizeRedraw style to force proper update of statusbar
33525 - Removed debug output
33526 * ThemeWin32Classic.cs:
33527 - Fixed drawing of status bar, now draws Text property if there
33528 are no defined panels
33530 2005-03-18 Jackson Harper <jackson@ximian.com>
33532 * ImageList.cs: When the image stream is set pull all the images
33534 * ImageListStreamer.cs: Implement reading image list streams.
33536 2005-03-18 Peter Bartok <pbartok@novell.com>
33538 * ThemeWin32Classic.cs (DrawPictureBox):
33539 - Fixed calculations for centered drawing
33540 - Fixed drawing for normal mode, not scaling the image on normal
33542 2005-03-18 Peter Bartok <pbartok@novell.com>
33544 * ComboBox.cs: Now also firing the OnKeyPress events for the embedded
33547 - Made Open/Save button the accept button for FileDialog
33548 - Tied the cancel button to the IButtonControl cancel button
33549 - Save/Open now properly builds the pathname
33550 - Now handles user-entered text
33551 - Preventing crash on right-click if no item is selected
33552 - Fixed Text property, now uses contents of textbox
33553 - Fixed SelectedText property, now just returns the text part that
33554 is selected in the text box
33556 2005-03-18 Jackson Harper <jackson@ximian.com>
33558 * ThemeWin32Classic.cs: Use the proper func for drawing the focus
33559 rect, make sure to de-adjust the interior rect after drawing the
33562 2005-03-18 Peter Bartok <pbartok@novell.com>
33564 * MenuAPI.cs: Remove menu *before* executing selected action to
33565 prevent the menu from 'hanging around'
33567 2005-03-17 Geoff Norton <gnorton@customerdna.com>
33569 * XplatUIOSX.cs: Implemented WorkingArea property
33571 2005-03-17 Peter Bartok <pbartok@novell.com>
33573 * XplatUIX11.cs: Fixed menu coord calculations
33574 * MenuAPI.cs: Now using new ScreenToMenu()/MenuToScreen() methods
33575 for calculating offsets
33577 2005-03-17 Peter Bartok <pbartok@novell.com>
33579 * Hwnd.cs: Do not consider menu presence for default client
33580 rectangle location/size
33581 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
33582 XplatUIWin32.cs: Added MenuToScreen() and ScreenToMenu() coord
33583 translation functions
33584 * FileDialog.cs: Fixed (what I presume is a) typo
33586 2005-03-17 Jonathan Gilbert <logic@deltaq.org>
33588 * XplatUIX11.cs: Added call to XInitThreads() to allow multi-threaded
33589 X access (avoids X-Async errors)
33591 2005-03-16 Jackson Harper <jackson@ximian.com>
33593 * TabControl.cs: Raise the SelectedIndexChanged event.
33595 2005-03-16 Alexander Olk <xenomorph2@onlinehome.de>
33597 * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
33598 - Removed vertical ToolBar and replaced it with a custom panel
33599 (desktop and home button already work)
33600 - Added Help button (some controls get resized or relocated then)
33601 - Draw correct text depending on Open or Save.
33602 - Fixed some typos...
33604 2005-03-16 Jordi Mas i Hernandez <jordi@ximian.com>
33607 - Only change Maximum and Minimum when need it (bug fix)
33609 2005-03-15 Peter Bartok <pbartok@novell.com>
33611 * Form.cs: Use Handle for icon, to trigger creation if
33612 the window does not yet exist
33614 - CanSelect: Slight performance improvement
33615 - Focus(): Preventing possible recursion
33616 - Invalidate(): Removed ControlStyle based clear flag setting
33617 - WM_PAINT: fixed logic for calling OnPaintBackground
33618 - WM_ERASEBKGND: Fixed logic, added call to new driver method
33619 EraseWindowBackground if the control doesn't paint background
33621 - Moved EraseWindowBackground() method to internal methods
33622 - Removed unused WM_ERASEBKGND handling in GetMessage; msg never comes;
33623 is sent via SendMessage on BeginPaint call on Win32
33625 - Added EraseWindowBackground() method
33626 - No longer sends WM_ERASEBKGND on .Expose, but on call to
33627 PaintEventStart, which more closely matches Win32 behaviour
33628 - Fixed Invalidate() call, now updates new ErasePending Hwnd property
33629 - Fixed SetFocus() to properly deal with client and whole windows
33630 * Hwnd.cs: Added ErasePending property
33631 * XplatUIOSX.cs: Stubbed EraseWindowBackground() method
33632 * XplatUI.cs, XplatUIDriver.cs: Added EraseWindowBackground() method
33634 2005-03-12 Geoff Norton <gnorton@customerdna.com>
33637 - Fix hard loop when timers exist.
33638 - Fix bugs with middle and right click for 3 button mice.
33640 2005-03-11 Peter Bartok <pbartok@novell.com>
33643 - get_WorkingArea: Need to call X directly, GetWindowPos only
33644 returns cached data now
33645 - Added sanity check to GetWindowPos hwnd usage
33647 2005-03-11 Jackson Harper <jackson@ximian.com>
33649 * BindingManagerBase.cs: This method isn't used anymore as
33650 PullData now updates the data in the control.
33652 2005-03-11 Jordi Mas i Hernandez <jordi@ximian.com>
33654 * Form.cs: fixes menu drawing on X11
33655 * MenuAPI.cs: fixes menu drawing on X11
33657 2005-03-11 Peter Bartok <pbartok@novell.com>
33659 * Control.cs: Changed OnCreateControl behaviour based on a suggestion
33660 from Jonathan Gilbert; should fix bug #73606
33661 * XplatUIX11.cs: Fixed NC Mouse message coordinates, they need to be
33662 in Screen coordinates. Thanks, Jordi.
33663 * Form.cs: Added missing attribute
33665 2005-03-11 Peter Bartok <pbartok@novell.com>
33668 - Rudimentary Mdi support
33669 - Removed outdated FormParent code
33670 - Implemented lots of missing properties and methods, still missing
33671 transparency support
33672 - Added missing attributes
33673 - Implemented support for MaximumBounds
33674 - Added firing of various events
33675 * XplatUI.cs: Added SetIcon() method
33676 * XplatUIDriver.cs: Added SetIcon() abstract
33677 * XplatUIOSX.cs: Stubbed out SetIcon() method
33679 - Implemented SetIcon() support
33680 - Moved SetMenu() and SetBorderStyle() to proper alphabetical pos
33681 - Switched to unix line endings
33683 - Made POINT internal so for can access it as part of MINMAX
33684 - Implemented SetIcon() support
33685 - Implemented support for CLIENTCREATESTRUCT (but might have to drop
33686 native Mdi support again, might have to go managed)
33687 * Control.cs: Now fires the StyleChanged event
33688 * MdiClient.cs: Added; still mostly empty
33690 2005-03-10 Peter Bartok <pbartok@novell.com>
33692 * SaveFileDialog.cs: Added emtpy file
33694 2005-03-08 Peter Bartok <pbartok@novell.com>
33696 * Control.cs: Fixed bug #73190; now invokes CreateControl (which
33697 in turn triggers OnCreateContro) when creating a handle for the
33699 * TextControl.cs: Fixed endless loop in certain cases when
33700 replacing the current selection
33702 2005-03-08 Jordi Mas i Hernandez <jordi@ximian.com>
33705 - Honors NewValue changes in Scroll events allowing apps to change it
33706 - Adds First and Last Scroll events
33707 - Fixes Thumb events
33709 2005-03-07 Peter Bartok <pbartok@novell.com>
33711 * Hwnd.cs: Added DefaultClientRectangle property
33712 * XplatUI.cs: Now using the X11 driver Where() method, which provides
33713 more detailed debug information
33715 - Fixed size-change feedback loop, where we would pull an old size
33716 off the queue and mistakenly change our window's size to an
33718 - Now compressing ConfigureNotify events, to reduce looping and
33720 * TextBoxBase.cs: Preventing crash when no text is set and ToString()
33723 2005-03-07 Jackson Harper <jackson@ximian.com>
33725 * Binding.cs: Push data pushes from data -> property. Check if the
33726 property is readonly when attempting to set it.
33728 2005-03-07 Jackson Harper <jackson@ximian.com>
33730 * Binding.cs: Format and parse data correctly. Use ASsignableFrom
33731 instead of IsSubclassOf. Pulling data now sets the value on the
33733 * PropertyManager.cs:
33734 * CurrencyManager.cs: Just need to pull data when updating now,
33735 because PullData will set the value on the control.
33737 2005-03-04 Jackson Harper <jackson@ximian.com>
33739 * Binding.cs: Implement data type parsing and converting on pulled
33740 data. TODO: Are there more ways the data can be converted?
33742 2005-03-04 Jackson Harper <jackson@ximian.com>
33744 * Binding.cs: Support <Property>IsNull checks. Also bind to the
33745 controls Validating method so we can repull the data when the
33746 control loses focus.
33748 2005-03-03 Jordi Mas i Hernandez <jordi@ximian.com>
33751 - Fixes null string format
33754 - Adds enum type checks
33755 - Fixes redrawing and recalc need after changing some properties
33756 - Fixes on focus_item set after the event
33757 - Fixes adding columns after the control has been created
33759 * ThemeWin32Classic.cs:
33760 - Fixes CheckBox focus rectangle
33761 - Fixes ColumnHeader drawing
33764 2005-03-03 Jackson Harper <jackson@ximian.com>
33766 * Binding.cs: Bind to <Property>Changed events so we can detect
33767 when properties are changed and update the data.
33769 2005-03-02 Jordi Mas i Hernandez <jordi@ximian.com>
33772 - Changes 32-bit pixel format to Format32bppArgb to allow transparency
33773 - Fixes ImageList constructor with ImageList container
33774 - Fixes image scaling (wrong parameters at DrawImage)
33776 2005-02-02 Jackson Harper <jackson@ximian.com>
33778 * Binding.cs: Make property searches case-insensitive. Eliminate
33779 some duplicated code.
33781 2005-03-01 Jordi Mas i Hernandez <jordi@ximian.com>
33784 - Handle focus event
33785 - Fix scrollbar events
33786 - Discard highlighted item if remove it
33787 - Fixes SelectedItem with strings
33789 2005-03-01 Peter Bartok <pbartok@novell.com>
33792 - Fixed Visible property, now follows (once again) parent chain
33793 to return false if any control in the chain is visible=false
33794 - Fixed OnParentVisibleChanged, now just calls OnVisibleChanged event
33795 - Fixed several places where is_visible instead of Visible was used
33796 - Implemented FIXME related to focus selection when setting focused
33797 control to be invisible
33799 * XplatUIWin32.cs: Now using proper method to find out if window is
33800 visible. Thanks to Jordi for pointing it out
33802 2005-02-28 Jordi Mas i Hernandez <jordi@ximian.com>
33804 * ComboBox.cs: show/hide scrollbar instead of creating it
33806 2005-02-27 Jackson Harper <jackson@ximian.com>
33808 * CurrencyManager.cs: Add PositionChanged stuff.
33810 2005-02-27 Peter Bartok <pbartok@novell.com>
33812 * XplatUI.cs, XplatUIDriver.cs: Added new GetMenuOrigin() method
33813 * XplatUIOSX.cs: Added GetMenuOrigin() stub
33814 * XplatUIWin32.cs: Implemented GetMenuOrigin()
33816 - Implemented GetMenuDC()
33817 - Implemented GetMenuOrigin()
33818 - Implemented ReleaseMenuDC()
33819 - Implemented generation of WM_NCPAINT message
33820 - Implemented generation and handling of WM_NCCALCSIZE message
33821 * Form.cs: Added debug helper message for Jordi's menu work
33823 - Modified ClientRect property; added setter, fixed getter to handle
33824 setting of ClientRect
33825 - Added MenuOrigin property
33827 2005-02-26 Peter Bartok <pbartok@novell.com>
33830 - Destroys the caret if a window that's being destroyed contains it
33831 - Ignores expose events coming from the X11 queue for windows that
33832 already are destroyed
33833 - Now uses the proper variable for handling DestroyNotify, before we
33834 marked the wrong window as destroyed
33835 - Improved/added some debug output
33837 2005-02-26 Peter Bartok <pbartok@novell.com>
33839 * X11Keyboard.cs: Fixes to work on 64bit systems
33841 2005-02-26 Peter Bartok <pbartok@novell.com>
33844 - Now calling OnHandleDestroyed from DestroyHandle()
33845 instead of Dispose()
33846 - Removed bogus call to controls.Remove() from DestroyHandle()
33848 2005-02-26 Peter Bartok <pbartok@novell.com>
33850 * Control.cs: Properly destroy child windows when our handle is
33853 2005-02-25 Peter Bartok <pbartok@novell.com>
33856 - Added 'DriverDebug' define to allow tracing XplatUI API calls
33857 - Alphabetized Static Methods and Subclasses
33860 - Added XException class to allow custom handling of X11 exceptions
33861 - Created custom X11 error handler, tied into XException class
33862 - Added support for MONO_XEXCEPTIONS env var to allow the user
33863 to either throw an exception on X errors or continue running
33864 after displaying the error
33865 - Added handling of DestroyNotify message
33866 - Added handler for CreateNotify message (still disabled)
33867 - Improved (tried to at least) Where method to provide file and lineno
33869 - Added XErrorHandler delegate
33870 - Added XRequest enumeration (to suppor translation of errors)
33872 2005-02-25 Jackson Harper <jackson@ximian.com>
33874 * PropertyManager.cs: Implement editing features
33875 * CurrencyManager.cs:
33876 * Binding.cs: First attempt at UpdateIsBinding
33877 * BindingManagerBase.cs: Call UpdateIsBinding before
33878 pushing/pulling data.
33880 2005-02-25 Jordi Mas i Hernandez <jordi@ximian.com>
33882 * MenuAPI.cs: Respect disabled items
33883 * ThemeWin32Classic.cs
33884 - Caches ImageAttributes creation for DrawImageDisabled
33885 - Fixes vertical menu line drawing
33886 - Draws disabled arrows in disable menu items
33888 2005-02-24 Peter Bartok <pbartok@novell.com>
33891 - Added UserData property to allow associating arbitrary objects
33893 - Fixed leak; now removing Hwnd references from static windows array
33895 - Fixed Graphics leak in PaintEventEnd
33896 - Removed usage of HandleData, switched over to Hwnd class
33897 * HandleData.cs: Removed, obsoleted by Hwnd.cs
33899 2005-02-24 Jordi Mas i Hernandez <jordi@ximian.com>
33901 * ThemeWin32Classic.cs: Adds Cliping to TrackBar drawing
33902 * ScrollBar.cs: Fixes bug
33903 * TrackBar.cs: removes death code, clipping, mimize refreshes,
33904 keyboard navigation enhancements
33906 2005-02-24 Jordi Mas i Hernandez <jordi@ximian.com>
33908 * Control.cs: Call DefWndProc at WM_PAINT only if UserPaint not defined
33909 * GroupBox.cs: Add control styles
33910 * Label.cs: Add control styles
33911 * UpDownBase.cs: Add control styles
33912 * ListBox.cs: Add control styles
33913 * XplatUIWin32.cs: Fixes wrong parameter order
33916 2005-02-23 Chris Bacon <chris.bacon@docobo.co.uk>
33918 * ListView.cs: Assign owner for ColumnHeader. Patch by Chris Bacon
33920 2005-02-23 Jackson Harper <jackson@ximian.com>
33922 * PropertyManager.cs: Implement property binding. This doesn't
33923 seem to work yet though as (I think) there are some bugs in
33924 System.ComponentModel.PropertyDescriptor.
33925 * BindingContext.cs: Use new PropertyManager constructor.
33927 2005-02-23 Jordi Mas i Hernandez <jordi@ximian.com>
33929 * ProgressBar.cs: use clip region in ProgressBar
33930 * ThemeWin32Classic.cs: use clip region in ProgressBar
33932 2004-02-22 Jackson Harper <jackson@ximian.com>
33934 * BindingsCollection.cs: Remove some debug code.
33936 2005-02-22 Jackson Harper <jackson@ximian.com>
33938 * BindingContext.cs:
33939 * ControlBindingsCollection.cs:
33940 * CurrencyManager.cs:
33942 * BindingManagerBase.cs: Initial implementation
33943 * BindingsCollection.cs: Add an internal contains method that the
33944 BindingManagerBase uses to ensure bindings aren't added twice to
33946 * PropertyManager.cs: Stubbed out.
33948 * ContainerControl.cs: Hook up databinding
33950 2005-02-22 Geoff Norton <gnorton@customerdna.com>
33953 OSXStructs.cs: Refactored to handle the new Hwnd NC logic area.
33954 Fixed Invalidate/Update chain.
33955 Fixed tons of other minor bugs (this is almost a complete rewrite).
33957 2005-02-22 Jordi Mas i Hernandez <jordi@ximian.com>
33959 * ComboBox.cs: do subcontrol creation when the control is created
33961 2005-02-19 Jordi Mas i Hernandez <jordi@ximian.com>
33963 * Label.cs: fixes image drawing (image and imagelist)
33964 * ThemeWin32Classic.cs: cache brushes
33966 2005-02-19 Jordi Mas i Hernandez <jordi@ximian.com>
33968 * Form.cs: Move menu drawing code to Theme class
33969 * ComboBox.cs: Move ComboBox drawing code to Theme class
33970 * MenuItem.cs: Move menu drawing code to Theme class
33971 * MenuAPI.cs: Move menu drawing code to Theme class
33972 * ThemeWin32Classic.cs: New methods
33973 * CheckedListBox.cs: Move CheckedListbox drawing code to Theme class
33974 * ListBox.cs: Move Listbox drawing code to Theme class
33975 * Theme.cs: New methods
33977 2005-02-20 Peter Bartok <pbartok@novell.com>
33980 - Fixed ProcessKeyEventArgs to also handle WM_SYSKEY messages (and
33981 only process mnemonics on those)
33982 - Fixed event sequence for key handling; first calling
33983 ProcessKeyEventArgs now
33985 - Removed WM_KEYDOWN hook, instead we now use ProcessDialogKey()
33986 for processing non-character keys
33987 - Fixed WM_CHAR to generate proper event sequence before processing
33988 * XplatUIWin32.cs: Added ALT key state to ModifierKeys property
33991 2005-02-19 Peter Bartok <pbartok@novell.com>
33993 * UserControl.cs: Added TextChanged event; added attributes
33994 * SizeGrip.cs: Implemented resizing and optional display of grip
33995 * Form.cs: Fixed attribute
33996 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs:
33997 Changed meaning of ScrollWindow bool argument; instead of the
33998 clear attribute (which will be true usually anyway), it gives the
33999 option of moving child controls as well.
34001 - Changed to match new ScrollWindow argument
34002 - Fixed GetWindowPos/SetWindowPos behaviour for toplevel controls,
34003 now handles the implicit parent window a WM puts around us
34004 * ScrollableControl.cs: Implemented (not the prettiest, but it seems
34006 * TextBoxBase.cs: Adjusted to new ScrollWindow arguments
34007 * TreeView.cs: Adjusted to new ScrollWindow arguments
34009 2005-02-19 Jordi Mas i Hernandez <jordi@ximian.com>
34011 * Form.cs: Menu integration with non-client area
34012 * MenuItem.cs: Menu integration with non-client area
34013 * MenuAPI.cs: Menu integration with non-client area
34015 2005-02-18 Peter Bartok <pbartok@novell.com>
34017 * MethodInvoker.cs: Added
34018 * MdiLayout.cs: Added
34019 * SendKeys.cs: Started implementation
34020 * ErrorIconAlignment.cs: Added
34022 2005-02-18 Peter Bartok <pbartok@novell.com>
34024 * XplatUIWin32.cs: Implemented SetMenu(); fixed GetMenuDC()
34025 * Form.cs: Added handling for Menu-related Non-client messages
34027 2005-02-17 Peter Bartok <pbartok@novell.com>
34029 * UpDownBase.cs: Fixed typo, compilation errors
34030 * DomainUpDown.cs: Fixed attribute value
34032 2005-02-16 Miguel de Icaza <miguel@novell.com>
34034 * UpDownBase.cs: Attach entry events.
34036 Add ForeColor property, Focused, InterceptArrowKeys (interception
34037 does not work yet).
34039 2005-02-17 Jordi Mas i Hernandez <jordi@ximian.com>
34042 - Redraw non client are on Setmenu
34043 - Calc proper menu starting point
34045 2005-02-17 Peter Bartok <pbartok@novell.com>
34047 * Application.cs: Fixed message_filter check
34049 2005-02-17 Peter Bartok <pbartok@novell.com>
34051 * Application.cs: Now calls registered message filters
34052 * DockStyle.cs: Fixed attribute
34053 * Form.cs: Fixed attribute
34054 * Menu.cs: Fixed attribute
34055 * ToolTip.cs: Fixed attribute
34056 * TreeNode.cs: Added missing attributes and arranged in regions
34057 * PropertyGrid.cs: Fixed signatures
34058 * TreeNodeCollection.cs: Added attributes
34059 * Splitter.cs: Added missing attributes; arranged into regions
34060 * TabPage.cs: Added missing attributes; arranged into regions
34061 * TextBoxBase.cs: Added missing attributes
34062 * TextBox.cs: Added missing attributes
34063 * ArrangeDirection.cs: Added missing attributes
34064 * TreeNodeConverter.cs: Added stub (needed for TreeNode)
34065 * ToolBarButton.cs: Fixed attributes
34066 * AnchorStyles.cs: Fixed attribute
34067 * TrackBar.cs: Fixed attributes
34068 * TabControl.cs: Added missing attributes and arranged into regions
34069 * ToolBar.cs: Fixed attribute
34070 * StatusBar.cs: Fixed signature, organized into regions and added
34072 * StatusBarPanel.cs: Fixed attributes
34073 * ContentsResizedEventArgs.cs: Implemented
34074 * ContentsResizedEventHandler.cs: Implemented
34075 * DateBoldEventArgs.cs: Implemented
34076 * DateBoldEventHandler.cs: Implemented
34077 * UpDownEventArgs.cs: Implemented
34078 * UpDownEventHandler.cs: Implemented
34080 2005-02-16 Jordi Mas i Hernandez <jordi@ximian.com>
34082 * Form.cs: first Menu NC refactoring
34083 * MenuAPI.cs: first Menu NC refactoring
34085 2005-02-16 Peter Bartok <pbartok@novell.com>
34087 * ImeMode.cs: Added missing attributes
34088 * Menu.cs: Fixed attribute
34089 * GroupBox.cs: Fixed attribute
34090 * Label.cs: Fixed attribute
34091 * ColorDialog.cs (RunDialog): Removed TODO attribute
34092 * ComboBox.cs: Fixed attributes
34093 * ListControl.cs: Added missing attributes
34094 * PropertyGrid.cs: Fixed attributes
34095 * Control.cs: Fixed attributes
34096 * ListViewItem.cs: Added TypeConverter attribute
34097 * NotifyIcon.cs: Fixed attributes
34098 * ListView.cs: Fixed attributes
34099 * ButtonBase.cs: Fixed attribute
34100 * ImageList.cs: Added missing attributes
34101 * ContainerControl.cs: Fixed signature
34102 * CheckedListBox.cs: Fixed attribute; added missing attributes
34103 * Panel.cs: Fixed attributes
34104 * PropertyTabChangedEventArgs.cs: Added missing attribute
34105 * PropertyValueChangedEventArgs.cs: Added missing attribute
34106 * Binding.cs: Fixed attribute
34107 * ListViewItemConverter: Implemented ListViewSubItemConverter class
34108 * ListBox.cs: Fixed attribute; added missing attributes;
34109 * ScrollableControl.cs: Added missing attributes
34110 * PictureBox.cs: Added missing attributes; implemented missing property
34111 * DateTimePicker.cs: Added missing attributes
34112 * Theme.cs (ToolWindowCaptionHeight): Fixed type
34113 * MonthCalendar.cs: Fixed attributes
34114 * StatusBarPanel.cs: Added missing attributes
34115 * SystemInformation.cs (ToolWindowCaptionHeight): Fixed type
34117 2005-02-16 Peter Bartok <pbartok@novell.com>
34119 * TextBoxBase.cs: The previous method to enforce height yet remember
34120 the requested high was less than ideal, this is an attempt to do
34122 * Control.cs: Added comment about possible problem
34123 * Copyright: Updated format
34124 * GridItemType.cs: Fixed swapped values
34126 2005-02-15 Jackson Harper <jackson@ximian.com>
34128 * BaseCollection.cs: Use property so we never access an
34129 uninitialized list. Also initialize the list in the property.
34131 2005-02-15 Peter Bartok <pbartok@novell.com>
34133 * GroupBox.cs (ProcessMnemonic): Implemented
34134 * Label.cs (ProcessMnemonic): Implemented
34135 * ThemeWin32Classic.cs (DrawGroupBox): Added stringformat to show
34138 2005-02-15 Peter Bartok <pbartok@novell.com>
34140 * RadioButton.cs (ProcessMnemonic): Implemented
34141 * CheckBox.cs (ProcessMnemonic): Implemented
34143 - Added handling of WM_SYSxxx keyboard messages to support mnemonic
34145 - Added internal method to allow calling ProcessMnemonic from other
34147 * ContainerControl.cs:
34148 - Started support for handling validation chain handling
34149 - Implemented ProcessMnemonic support
34150 - Added Select() call to Active, to make sure the active control
34152 * Form.cs: Setting toplevel flag for Forms (this was lost in the
34153 FormParent rewrite)
34154 * ThemeWin32Classic.cs:
34155 - DrawCheckBox(): Fixed stringformat to show hotkeys
34156 - DrawRadioButton(): Fixed stringformat to show hotkeys
34157 * CommonDialog.cs: Removed WndProc override, not needed
34159 2005-02-14 Peter Bartok <pbartok@novell.com>
34161 * XplatUIX11.cs: Fixed NotImplemented exceptions for properties,
34162 missed those in the rewrite
34164 2005-02-14 Miguel de Icaza <miguel@novell.com>
34166 * NumericUpDown.cs (Increment, ToString): Add.
34167 (DecimalPlaces): implement.
34171 * UpDownBase.cs: Add the designer attributes.
34173 2005-02-13 Peter Bartok <pbartok@novell.com>
34175 * Panel.cs: Removed border_style, now in Control
34176 * XplatUIDriver.cs: Added SetBorderStyle, SetMenu, GetMenuDC and
34177 ReleaseMenuDC Methods; renmaed ReleaseWindow to UngrabWindow
34179 2005-02-13 Peter Bartok <pbartok@novell.com>
34181 * MouseButtons.cs: Added missing attributes
34182 * XplatUIStructs.cs: Added enumeration for title styles
34183 * LeftRightAlignment.cs: Added missing attributes
34184 * Hwnd.cs: Switched to use client_window as handle (slower, but makes
34185 it compatible with Graphics.FromHwnd()
34186 * SelectedGridItemChangedEventArgs.cs: Fixed property type
34187 * Keys.cs: Added missing attributes
34188 * SelectionRange.cs: Added missing attributes
34189 * SelectionRangeConverter.cs: Added
34191 - Introduced SetBorderStyle, SetMenu, GetMenuDC and
34192 ReleaseMenuDC methods
34193 - Renamed ReleaseWindow to UngrabWindow
34194 - Added proper startup notice to allow version identification
34196 - Added missing attributes
34197 - Removed FormParent concept
34198 * Label.cs: Removed border_style field, now in Control
34199 * RadioButton.cs: Now properly selects RadioButton when focus is
34201 * ThemeGtk.cs: Fixed SetDisplay call to match new X11 behaviour
34203 - Added missing attributes
34204 - Added borderstyle handling
34205 - Removed FormParent concept support
34206 - Fixed calls to XplatUI to match changed APIs
34207 - Fixed bug that would case us to use disposed Graphics objects
34208 - Removed unneeded internal methods
34209 - PerformLayout(): Fixed to handle DockStyle.Fill properly
34210 - SelectNextControl(): Fixed to properly check common parents
34211 * TextBoxBase.cs: Removed border_style field (now in Control)
34213 - Patch by Robert Thompson (rmt@corporatism.org): Added icon support,
34214 fixed calculations for form size
34215 - Added support for localized strings and icons
34216 - Improved form size calculations, added border
34217 * ListView.cs: Removed border_style field (now in Control)
34218 * X11Structs.cs: Moved several structs from X11 driver here
34219 * X11Keyboard.cs: Changed debug message
34220 * Application.cs: Removed FormParent concept support
34222 - Resetting end_modal flag
34223 - Removed FormParent concept support
34224 * NativeWindow.cs: Removed FormParent concept support
34225 * XplatUIX11.cs: Rewritten, now using the new Hwnd class, implementing
34226 Client area and Non-Client whole window to allow support for WM_NC
34228 * XplatUIOSX.cs: Updated to match latest driver spec; added exception
34229 prevent using it until it supports Hwnd as per Geoff Norton's request
34230 * ToolBar.cs: Fixed drawing, was not doing proper drawing
34231 * PictureBox.cs: Removed border_style field, now in Control
34232 * XplatUIWin32.cs: Added new driver methods
34234 2005-02-12 Peter Bartok <pbartok@novell.com>
34236 * OpacityConverter.cs: Implemented
34237 * Hwnd.cs: Internal class to support drivers that need to emulate
34238 client area/non-client area window behaviour
34240 2005-02-11 Peter Bartok <pbartok@novell.com>
34242 * KeysConverter.cs: Implemented
34244 2005-02-11 Jordi Mas i Hernandez <jordi@ximian.com>
34246 * Menu.cs: fixes methods GetContextMenu, GetMainMenu, ToString
34247 * LinkLabel: Added missing attributes
34248 * MainMenu.cs: fixes ToString
34249 * MenuItem.cs: fixes methods GetContextMenu, GetMainMenu
34250 * ListBox.cs: fixes event position
34251 * TrackBar.cs: adds missing attributes and events
34253 2005-02-10 Jordi Mas i Hernandez <jordi@ximian.com>
34255 * MenuItem.cs: Use SystemInformation and bug fixes
34256 * MenuAPI.cs: Use SystemInformation and bug fixes
34258 2005-02-09 Jackson Harper <jackson@ximian.com>
34260 * X11Keyboard.cs: We ignore some keys, but still need to set/reset
34261 their keystate otherwise things like VK_MENU get stuck "on".
34263 2005-02-09 Kazuki Oikawa <kazuki@panicode.com>
34265 * ListBox.cs: Fixes AddRange bug
34267 2005-02-09 Jordi Mas i Hernandez <jordi@ximian.com>
34270 - Add missing attributes
34271 - Add missing method
34273 * CheckedListBox.cs: Added missing attributes
34274 - Add missing attributes
34275 - Remove extra method
34277 * ComboBox.cs: Added missing attributes
34278 * VScrollBar.cs: Added missing attributes
34279 * ScrollBar.cs: Added missing attributes
34280 * ListBox.cs: Fixes signature, add missing consts
34281 * LinkArea.cs: Added missing attributes
34284 2005-02-08 Peter Bartok <pbartok@novell.com>
34286 * Menu.cs: Added missing attributes
34287 * MainMenu.cs: Added missing attributes
34288 * GroupBox.cs: Added missing attributes
34289 * Label.cs: Added missing attributes
34290 * CheckBox.cs: Implemented CheckBoxAccessibleObject class
34292 - Added Instance and Options properties
34293 - Added missing attributes
34294 * Cursor.cs: Made Serializable
34295 * NotifyIcon: Added missing attributes
34296 * MenuItem.cs: Added missing attributes
34297 * TextBoxBase.cs: Implemented AppendText() and Select() methods
34298 * Panel.cs: Added Missing attributes
34299 * MonthCalendar.cs: Fixed CreateParams
34301 2005-02-08 Jordi Mas i Hernandez <jordi@ximian.com>
34305 - Fixes issues with links
34306 - Adds the class attributes
34308 2005-02-08 Jordi Mas i Hernandez <jordi@ximian.com>
34311 - Fixes button when no items available in dropdown
34312 - Fixes repainting problems
34313 - Adds the class attributes
34315 2005-02-07 Geoff Norton <gnorton@customerdna.com>
34317 * XplatUIOSX.cs: Detect the menu bar and title bar height from
34318 the current theme. Cache these on startup.
34320 2005-02-07 Jackson Harper <jackson@ximian.com>
34322 * ScrollBar.cs: Give the correct clipping rect to the theme. Dirty
34323 the scrollbar buttons when they are depressed.
34325 2005-02-07 Geoff Norton <gnorton@customerdna.com>
34327 * XplatUIOSX.cs: Really fix working at resolutions not 1024x768.
34328 Get the display size from the main displayid. We currently dont
34329 support multiple display configurations.
34331 2005-02-07 Geoff Norton <gnorton@customerdna.com>
34333 * XplatUIOSX.cs: Ensure the window doesn't get stuck behind the statusbar.
34335 2005-02-07 Miguel de Icaza <miguel@novell.com>
34337 * UpDownBase.cs: Add ReadOnly and UpDownAlign properties.
34339 2005-02-05 Jonathan Chambers <jonathan.chambers@ansys.com>
34341 * PropertyGrid.cs: Updated. Patch by Jonathan Chambers
34343 2005-02-04 Jackson Harper <jackson@ximian.com>
34345 * ThemeWin32Classic.cs: Respect the clipping rect when
34346 drawing. Only fill the intersection of clips and rects so there
34347 isn't a lot of large fills.
34348 * ScrollBar.cs: Pass the correct clipping rect to the theme
34349 engine. Remove some debug code.
34351 2005-02-05 John BouAntoun <jba-mono@optusnet.com.au>
34353 * DateTimePicker.cs:
34354 - Fixed crash on DateTime.Parse, use Constructor instead
34356 2005-02-04 Jordi Mas i Hernandez <jordi@ximian.com>
34360 - Owner draw support (MeasureItem and DrawItem)
34362 2005-02-04 Jordi Mas i Hernandez <jordi@ximian.com>
34365 - Implements FindMergePosition and MergeMenu functions (very poor documented)
34366 - Fixes MenuItems.Add range
34368 - MergeMenu and Clone and CloneMenu functions
34370 2005-02-03 Jackson Harper <jackson@ximian.com>
34372 * ScrollBar.cs: Make abstract
34373 * ScrollableControl.cs: Create H/V scrollbars now that scrollbar
34376 2005-02-03 Jackson Harper <jackson@ximian.com>
34378 * ScrollBar.cs: First part of my scrollbar fixups. This removes
34379 all the unneeded refreshes and uses invalidates with properly
34382 2005-02-03 Peter Bartok <pbartok@novell.com>
34384 * ComponentModel.cs: Added
34385 * IDataGridEditingService.cs: Added
34386 * Timer.cs: Added missing attributes
34387 * ToolTip.cs: Added missing attributes
34389 2005-02-03 Jonathan Chambers <jonathan.chambers@ansys.com>
34391 * PropertyGridView.cs: Added. Patch by Jonathan Chambers
34393 2005-02-03 Peter Bartok <pbartok@novell.com>
34395 * ListBox.cs: Added missing attributes
34397 2005-02-03 Jordi Mas i Hernandez <jordi@ximian.com>
34400 - Fixes font height after font change
34401 - Avoid generating unnecesary OnSelectedIndexChanged on clearing
34403 2005-02-02 Peter Bartok <pbartok@novell.com>
34405 * HandleData.cs: Introduced static methods to allow class
34406 to be more self-contained and track it's own HandleData objects
34407 * XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs: Fixed usage of
34408 HandleData to use new static methods
34410 2005-02-02 Jordi Mas i Hernandez <jordi@ximian.com>
34413 - Fixes default size and PreferredHeight
34415 - ObjectCollection.Insert implementation
34421 - ObjectCollection.Insert implementation
34422 - No selection after clean
34425 2005-01-31 John BouAntoun <jba-mono@optusnet.com.au>
34427 * ThemeWin32Classic.cs: quick fix to comboboxbutton pushed painting
34429 2005-02-01 Jordi Mas i Hernandez <jordi@ximian.com>
34432 - Caches ItemHeight calculation for OwnerDrawVariable
34433 - Handles dropdown properly
34434 - Fixes several minor bugs
34436 2005-01-31 Jordi Mas i Hernandez <jordi@ximian.com>
34439 - Fixes 71946 and 71950
34440 - Fixes changing Multicolumn on the fly
34441 - Fixes keyboard navigation on Multicolumn listboxes
34443 2005-01-31 Geoff Norton <gnorton@customerdna.com>
34445 * XplatUIOSX.cs: Call ExitToShell in our teardown to avoid a
34446 crash reporter log.
34448 2005-01-31 Geoff Norton <gnorton@customerdna.com>
34450 * XplatUIOSX.cs: Allow applications to actually exit.
34452 2005-01-31 Geoff Norton <gnorton@customerdna.com>
34454 * XplatUIOSX.cs: SetWindowStyle implemented. Reposition views in
34455 their parent at creation time rather than lazily later. Fixes a major
34456 regression we were experiencing.
34458 2005-01-31 John BouAntoun <jba-mono@optusnet.com.au>
34460 * ThemeWin32Classic.cs: more date time picker painting fixes
34461 * DateTimePicker.cs: more monthcalendar drop down fixes
34462 * MonthCalendar.cs: more CreateParams fixes to ensure correct drop down
34464 2005-01-31 Jordi Mas i Hernandez <jordi@ximian.com>
34467 - When moving the thumb going outside the control should stop the moving
34468 - Adds the firing of missing events
34469 - Fixes no button show if Size is not specified
34470 - End / Home keys for keyboard navigation
34472 2005-01-30 Peter Bartok <pbartok@novell.com>
34474 * NotifyIcon.cs (CalculateIconRect): Removed debug output and added
34475 sanity check to prevent theoretical loop
34476 * XplatUIWin32.cs (SetVisible): Removed debug output
34477 * XplatUIX11.cs (SystrayChange): Added sanity check
34478 * ScrollableControl.cs (OnVisibleChanged): Now calls base method
34479 * Control.cs (OnVisibleChanged): Added workaround for ParentForm
34480 behaviour, valid until the X11 client window rewrite is done
34481 * TextBox.cs (ctor): Setting proper default foreground and background
34484 2005-01-30 John BouAntoun <jba-mono@optusnet.com.au>
34486 * Theme: Added DrawDateTimePicker to interface
34487 * ThemeWin32Classic.cs: Added DrawDateTimePicker (incomplete)
34488 * DateTimePicker.cs: Created (still needs keys and painting code)
34489 * DateTimePickerFormat.cs: added
34490 * MonthCalendar.cs: fixed CreateParams for popup window mode
34492 2005-01-29 Peter Bartok <pbartok@novell.com>
34494 * ControlPaint.cs: Fixed luminace value returned on achromatic colors,
34495 this should also the calculations for ligher/darker
34496 * Theme.cs: Fixed defaults for ScrollBar widths/heights
34498 2005-01-29 Peter Bartok <pbartok@novell.com>
34500 * ArrangeDirection.cs: Added
34501 * ArrangeStartingPositon.cs: Added
34502 * SystemInformation.cs: Implemented
34503 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
34504 XplatUIX11.cs, Theme.cs: Added/implemented new static properties
34505 used by SystemInformation class
34506 * X11Strucs.cs: Added XSizeHints structure
34508 - Fixed CreateParams to make sure the menu window is always visible
34509 - TrackPopupMenu: Added check to make sure we don't draw the
34512 2005-01-29 Peter Bartok <pbartok@novell.com>
34514 * HandleData.cs: Added method for altering invalid area
34515 * TextBoxBase.cs: Implemented TextLength
34517 2005-01-28 Peter Bartok <pbartok@novell.com>
34519 * XplatUIX11.cs: Improvement over last patch, not sending
34520 the WM_PAINT directly anymore, instead we scroll any pending
34521 exposed areas and let the system pick out the WM_PAINT later
34523 2005-01-28 Peter Bartok <pbartok@novell.com>
34525 * SWF.csproj: Deleted, no longer used. Instead,
34526 Managed.Windows.Forms/SWF.csproj should be used
34527 * XplatUIX11.cs: Instead of posting the WM_PAINT, we send it
34528 directly, to avoid a potential race condition with the next
34531 2005-01-28 Peter Bartok <pbartok@novell.com>
34533 * XplatUI.cs: Made class internal
34535 2005-01-28 Jordi Mas i Hernandez <jordi@ximian.com>
34537 * CheckedListBox.cs:
34540 - Missing methods and events
34542 2005-01-27 Peter Bartok <pbartok@novell.com>
34544 * Application.cs (Run): Don't use form if we don't have one
34546 2005-01-27 Peter Bartok <pbartok@novell.com>
34548 * TextBoxBase.cs (get_Lines): Fixed index off by one error
34550 2005-01-27 Peter Bartok <pbartok@novell.com>
34552 * GridEntry.cs: Added; Patch by Jonathan S. Chambers
34553 * GridItem.cs: Added; Patch by Jonathan S. Chambers
34554 * GridItemCollection.cs: Added; Patch by Jonathan S. Chambers
34555 * GridItemType.cs: Added; Patch by Jonathan S. Chambers
34556 * PropertyGrid.cs: Added; Patch by Jonathan S. Chambers
34557 * PropertySort.cs: Added; Patch by Jonathan S. Chambers
34558 * PropertyTabChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
34559 * PropertyTabChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
34560 * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
34561 * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
34562 * SelectedGridItemChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
34563 * SelectedGridItemChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
34565 2005-01-27 Jordi Mas i Hernandez <jordi@ximian.com>
34568 - Draw focus on Simple Combobox
34569 - Fixes drawing issues
34572 2005-01-27 Peter Bartok <pbartok@novell.com>
34575 - Place window in default location, instead of hardcoded 0/0
34576 - Send initial LocationChanged event
34578 - UpdateBounds after creation to find out where the WM placed us
34579 - Make sure that if the ParentForm changes location the Form
34581 * XplatUIX11.cs: XGetGeometry will not return the coords relative
34582 to the root, but to whatever the WM placed around us.
34583 Translate to root coordinates before returning toplevel
34585 * XplatUIWin32.cs: Removed debug output
34586 * XplatUIOSX.cs, XplatUI.cs, XplatUIDriver.cs: Added toplevel
34587 flag to GetWindowPos, to allow translation of coordinates on X11
34589 2005-01-27 Jordi Mas i Hernandez <jordi@ximian.com>
34591 * ListBox.cs: connect LostFocus Event
34593 2005-01-27 Peter Bartok <pbartok@novell.com>
34595 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
34596 XplatUIX11.cs: Extended the Systray API
34597 * Form.cs: Removed debug output
34598 * Application.cs: Fixed focus assignment, always need to call
34599 XplatUI.Activate() since Form.Activate() has rules that may
34601 * NotifyIcon.cs: Should be complete now
34602 * ToolTip.cs: Worked around possible timer bug
34604 2005-01-27 Jackson Harper <jackson@ximian.com>
34607 - Only invalidate the effected tabs when the
34608 selected index changes. This reduces drawing and gets rid of some
34610 - Only refresh if the tabs need to be shifted, otherwise only
34611 invalidate the slider button.
34612 - On windows the tabs are not filled to right if the slider is
34615 2005-01-27 Jackson Harper <jackson@ximian.com>
34617 * TabControl.cs: Only refresh on mouseup if we are showing the
34618 slider. Also only invalidate the button whose state has changed.
34620 2005-01-26 Peter Bartok <pbartok@novell.com>
34622 * XplatUI.cs, XplatUIDriver.cs: Added Systray methods
34623 * XplatUIWin32.cs: Implemented SystrayAdd(), SystrayChange()
34624 and SystrayRemove() methods
34625 * XplatUIOSX.cs: Stubbed Systray methods
34627 - Implemented SystrayAdd(), SystrayChange() and SystrayRemove()
34629 - Fixed broken XChangeProperty calls (marshalling messed up things)
34630 * X11Structs.cs: Added enums and structs required for Size hinting
34631 * NotifyIcon.cs: Added & implemented
34633 2005-01-26 Jackson Harper <jackson@ximian.com>
34635 * TabControl.cs: Space vertically layed out tabs properly.
34637 2005-01-26 Peter Bartok <pbartok@novell.com>
34639 * Form.cs (CreateClientParams): Always set the location to 0,0
34640 since we're a child window.
34642 * Control.cs (SetVisibleCore): Always explicitly setting the location
34643 of a toplevel window, apparently X11 doesn't like to move windows
34644 while they're not mapped.
34646 2005-01-26 Jackson Harper <jackson@ximian.com>
34648 * TabControl.cs: Implement FillToRight size mode with vertically
34651 2005-01-26 Jordi Mas i Hernandez <jordi@ximian.com>
34653 * ControlPaint.cs, ThemeWin32Classic.cs
34654 - Fixes DrawFocusRectangle
34656 2005-01-26 Jordi Mas i Hernandez <jordi@ximian.com>
34659 - MenuBar tracking only starts when item is first clicked
34660 - Fixes menu hidding for multiple subitems
34661 - Unselect item in MenuBar when item Executed
34664 2005-01-25 Jordi Mas i Hernandez <jordi@ximian.com>
34667 - IsInputKey for ListBox
34670 - Shift and Control item selection
34671 - Implement SelectionMode.MultiExtended
34672 - Fixes RightToLeft
34674 - IsInputKey implemented
34675 - Do not generate OnTextChangedEdit on internal txt changes
34677 2005-01-23 Peter Bartok <pbartok@novell.com>
34679 * AccessibleObject.cs: Partially implemented Select()
34680 * MonthCalendar.cs: Added missing attributes and events
34681 * Form.cs: Fixed CreateParams behaviour, now controls derived from
34682 form can properly override CreateParams.
34683 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
34684 XplatUIX11.cs: Dropped RefreshWindow method, not needed if
34685 Control performs Invalidate & Update
34686 * NativeWindow (CreateHandle): Added special handling for Form
34687 and Form.FormParent classes to allow overriding of From.CreateParams
34689 - ControlNativeWindow: Renamed 'control' variable to more intuitive
34691 - ControlNativeWindow: Added Owner property
34692 - Removed usage of Refresh() on property changes, changed into
34693 Invalidate(), we need to wait until the queue is processed for
34694 updates, direct calls might cause problems if not all vars for
34695 Paint are initialized
34696 - Added call to UpdateStyles() when creating the window, to set any
34697 styles that CreateWindow might have ignored.
34698 - Added support for Form CreateParent overrides to UpdateStyles()
34699 * MessageBox.cs: Removed no longer needed FormParent override stuff,
34700 CreateParams are now properly overridable
34701 * CommonDialog.cs: Removed no longer needed FormParent override stuff,
34702 CreateParams are now properly overridable
34704 2005-01-23 Miguel de Icaza <miguel@ximian.com>
34706 * UpDownBase.cs (ctor): Connect TextChanged in the entry to the
34709 Capture LostFocus and OnTextBoxChanged. The later introduces a
34710 recursive invocation that I have not figured out yet.
34712 Reset the timer when not using (it was accumulating).
34715 (OnTextBoxChanged): Set UserEdit to true here to track whether the
34716 user has made changes that require validation.
34718 Reset changing to avoid loops.
34720 2005-01-22 Miguel de Icaza <miguel@ximian.com>
34722 * NumericUpDown.cs: Display value at startup.
34724 * UpDownBase.cs (Text): Do not call UpdateEditText here, only call
34727 * NumericUpDown.cs: Minimum, Maximum, Text, Value properties
34728 filled in. Added some basic parsing of text.
34730 Still missing the OnXXX method overrides, and figuring out the
34731 events that must be emitted.
34733 * UpDownBase.cs: Handle UserEdit on the Text property.
34735 2005-01-22 Jordi Mas i Hernandez <jordi@ximian.com>
34738 - Fixes IntegralHeight
34741 2005-01-21 Jackson Harper <jackson@ximian.com>
34743 * TabControl.cs: Set the SelectedIndex property when SelectedTab
34744 is set so that the page visibility is updated and the tabs are
34747 2005-01-21 Jackson Harper <jackson@ximian.com>
34749 * TabControl.cs: Use cliping rectangle for blitting. Give the
34750 theme the clipping rect so we can do clipping while
34751 drawing. Remove some debug code.
34753 2005-01-21 Jackson Harper <jackson@ximian.com>
34755 * TabPage.cs: Add a new method so tab pages can force the tab
34756 control to recalculate the tab page sizes.
34757 * TabControl.cs: UpdateOwner needs to make the tab control recalc
34760 2005-01-20 Jackson Harper <jackson@ximian.com>
34762 * ThemeWin32Classic.cs: Clip text to the staus bar panels rects.
34764 2005-01-20 Jackson Harper <jackson@ximian.com>
34766 * TreeView.cs: Set the bounds for nodes properly. They were
34767 getting screwed up when checkboxes were not enabled, but images
34770 2005-01-20 Jordi Mas i Hernandez <jordi@ximian.com>
34773 - Owner draw support
34776 2005-01-20 Jackson Harper <jackson@ximian.com>
34778 * XplatUIStructs.cs: More misc keys
34779 * X11Keyboard.cs: Ignore some control keys.
34781 2005-01-20 Jackson Harper <jackson@ximian.com>
34783 * X11Structs.cs: Add the modmaps to the keymask struct and tabify.
34784 * X11Keyboard.cs: Set the AltGr mask when we get a key event.
34786 2005-01-19 Peter Bartok <pbartok@novell.com>
34788 * Control.cs: Un-selecting the control when it is loosing focus
34790 2005-01-19 Jackson Harper <jackson@ximian.com>
34792 * TreeView.cs: Hook up to the text controls leave event so we can
34793 end editing when the users clicks outside the text box.
34795 2005-01-19 Jackson Harper <jackson@ximian.com>
34797 * X11Keyboard.cs: Fix typo that was causing the wrong keycodes to
34798 get set in the conversion array.
34800 2005-01-19 Peter Bartok <pbartok@novell.com>
34802 * Application.cs (ModalRun): Added a call to CreateControl to ensure
34803 focus is properly set
34805 - Added missing attributes
34806 - removed styles, those are already set in the base class
34808 - Added missing attributes
34809 - Added clip window styles
34810 * CheckBox.cs: Added missing attributes
34812 - FormParentWindow.CreateParams: Added required clip styles
34813 * Form.cs (ProcessDialogKey): Fixed handling of Escape key, now
34814 also filters modifier keys
34816 - Added assignment of Accept and Cancel button to enable Enter
34817 and Esc keys in MessageBox dialogs
34818 - FormParentWindow.CreateParams: Added required clip styles
34819 * RadioButton.cs: Added missing attributes
34820 * TextControl.cs: No longer draws selection if control does not
34823 - Now draws simple rectangle around test area to make it obvious
34824 there's a control. This is a hack until we properly support borders
34825 - A few simple fixes to support selections better, now erases selected
34826 text when typing, and resets selection when using movement keys
34828 2005-01-19 Miguel de Icaza <miguel@ximian.com>
34830 * UpDownBase.cs: Added some new properties.
34832 * DomainUpDown.cs: Implement a lot to get my test working.
34834 2005-01-19 Geoff Norton <gnorton@customerdna.com>
34836 * XplatUIOSX.cs: Fix a minor bug to bring the close box back
34838 2005-01-19 Geoff Norton <gnorton@customerdna.com>
34840 * OSXStructs (WindowAttributes): Fixed csc complaints
34842 2005-01-19 Geoff Norton <gnorton@customerdna.com>
34845 OSXStructs.cs: Initial refactor to move enums and consts into
34846 OSXStructs and use them in the driver for greater readability.
34848 2005-01-19 Geoff Norton <gnorton@customerdna.com>
34850 * XplatUIOSX.cs: Initial support for Standard Cursors.
34851 * OSXStructs.cs: Move our structs here; added ThemeCursor enum
34853 2005-01-19 Jordi Mas i Hernandez <jordi@ximian.com>
34855 * ComboBox.cs: ability to change style when the ctrl is already
34856 created, missing methods and events, bug fixes, signature fixes
34858 2005-01-19 Peter Bartok <pbartok@novell.com>
34860 * Cursors.cs (ctor): Added ctor to fix signature
34862 2005-01-18 Peter Bartok <pbartok@novell.com>
34864 * Button.cs: Implemented DoubleClick event
34866 - Fixed keyboard handling to behave like MS, where the press of
34867 Spacebar is equivalent to a mousedown, and the key release is
34868 equivalent to mouseup. Now a spacebar push will give the same
34869 visual feedback like a mouse click.
34870 - Added missing attributes
34871 - Added ImeModeChanged event
34872 - Added support for generating DoubleClick event for derived classes
34874 - Implemented DoubleClick event
34875 - Added missing attributes
34876 * CommonDialog.cs: Added missing attribute
34877 * ContextMenu.cs: Added missing attributes
34879 - AutoChecked buttons do not allow to be unselected when clicked
34880 (otherwise we might end up with no selected buttons in a group)
34881 - Added missing attributes
34882 - Implemented DoubleClickEvent
34883 * ThreadExceptionDialog.cs: Enabled TextBox code
34885 2005-01-18 Peter Bartok <pbartok@novell.com>
34887 * Form.cs: Removed debug output
34888 * Button.cs: Added support for DoubleClick method
34890 2005-01-18 Peter Bartok <pbartok@novell.com>
34893 - Added method to parent window that allows triggering size
34894 calculations when a menu is added/removed
34895 - set_Menu: Cleaned up mess from early days of Form and Control,
34896 now properly triggers a recalc when a menu is added/removed
34897 - Added case to select form itself as focused form if no child
34899 - Added PerformLayout call when showing dialog, to ensure properly
34902 - Select(): Made internal so Form can access it
34903 - Focus(): Only call Xplat layer if required (avoids loop), and sets
34905 * Application.cs (Run): Removed hack and calls PerformLayout instead
34906 to trigger calculation when Form becomes visible
34908 2005-01-18 Jordi Mas i Hernandez <jordi@ximian.com>
34910 * ComboBox.cs: fixes for ownerdraw
34912 2005-01-18 Peter Bartok <pbartok@novell.com>
34915 - Sentinel is no longer static, each Document gets it's own, this
34916 avoids locking or alternatively overwrite problems when more
34917 than one text control is used simultaneously.
34918 - Switched to use Hilight and HilightText brushes for text selection
34920 * TextBoxBase.cs (PaintControl): Disabled AntiAliasing to improve looks
34922 2005-01-18 Peter Bartok <pbartok@novell.com>
34925 - Hooked up the following events:
34933 o SystemColorsChanged
34934 o ParentFontChanged
34936 - Removed debug output
34937 - Added a call to the current theme's ResetDefaults when a color change
34939 * Form.cs: Now setting the proper ImeMode
34940 * Theme.cs: Defined a method to force recreation of cached resources
34941 and rereading of system defaults (ResetDefaults())
34942 * ThemeWin32Classic.cs: Added ResetDefaults() stub
34944 2005-01-17 Peter Bartok <pbartok@novell.com>
34946 * Control.cs: Added missing attributes
34948 2005-01-17 Jackson Harper <jackson@ximian.com>
34950 * TreeNode.cs: Implement editing. Add missing properties selected
34952 * TreeView.cs: Implement node editing. Also some fixes to use
34953 Invalidate (invalid area) instead of Refresh when selecting.
34955 2005-01-17 Peter Bartok <pbartok@novell.com>
34958 - Implemented InvokeGotFocus() method
34959 - Implemented InvokeLostFocus() method
34960 - Implemented InvokePaint() method
34961 - Implemented InvokePaintBackground() method
34962 - Implemented InvokeClick() method
34963 - Implemented FindForm() method
34964 - Implemented RectangleToClient() method
34965 - Implemented ClientToRectangle() method
34966 - Implemented ResetBackColor() method
34967 - Implemented ResetCursor() method
34968 - Implemented ResetFont() method
34969 - Implemented ResteForeColor() method
34970 - Implemented ResetImeMode() method
34971 - Implemented ResetLeftToRight() method
34972 - Implemented ResetText() method
34973 - Implemented Scale() methods
34974 - Implemented ScaleCore() method
34975 - Implemented Update() method
34976 - Removed unused variables
34977 - Stubbed AccessibilityNotifyClients and
34978 ControlAccessibleObject.NotifyClients() methods (dunno what to do
34980 - Now setting proper default for RightToLeft property
34981 - Fixed bug in SetClientSizeCore that would cause windows to get
34983 - Now sending Click/DoubleClick events
34984 - Now selecting controls when left mouse button is clicked on
34986 * AccessibleEvents.cs: Added
34987 * XplatUI.cs, XplatUIDriver.cs: Added UpdateWindow() method
34988 * XplatUIOSX.cs: Stubbed UpdateWindow() method
34989 * XplatUIWin32.cs: Implemented UpdateWindow() method
34990 * XplatUIX11.cs: Implemented UpdateWindow() method
34991 * Form.cs: Removed stray semicolon causing CS0162 warning
34992 * ThemeWin32Classic.cs: Fixed unused variable warnings
34993 * ScrollableControl.cs: Now calls base method for ScaleCore
34994 * ButtonBase.cs: Now disabling StandardClick and StandardDoubleClick
34995 style to avoid interference with internal click handler (which is
34996 different than standard Control click handling)
34998 - Now unchecks all sibling radio buttons when control is
34999 selected (Fixes #68756)
35000 - Removed internal tabstop variable, using the one inherited from
35003 2005-01-17 Jackson Harper <jackson@ximian.com>
35005 * NavigateEventArgs.cs: Fix base type.
35006 * LinkLabel.cs: Sig fix
35008 2005-01-17 Jackson Harper <jackson@ximian.com>
35010 * TreeView.cs: Only invalidate the effected nodes bounds when
35013 2005-01-13 Jordi Mas i Hernandez <jordi@ximian.com>
35015 * XplatUIWin32.cs: fixes Win32 marshaling
35016 * XplatUIX11.cs: fixes method signature
35018 2005-01-17 Peter Bartok <pbartok@novell.com>
35020 * XplatUIX11.cs: Clean up resources when we no longer need them
35022 2005-01-17 Peter Bartok <pbartok@novell.com>
35024 * XplatUI.cs, XplatUIDriver.cs: Added SetCursor(), ShowCursor(),
35025 OverrideCursor(), DefineCursor(), DefineStdCursor(), GetCursorInfo()
35026 and DestroyCursor() methods.
35027 * Cursor.cs: Partially implemented, now supports standard cursors;
35028 still contains some debug code
35029 * Cursors.cs: Implemented class
35031 - WndProc(): Added handling of WM_SETCURSOR message, setting the
35033 - Implemented Cursor property
35034 - Replaced break; with return; more straightforwar and possibly
35036 - Now properly setting the result for WM_HELP
35037 * X11Structs.cs: Added CursorFontShape enum
35038 * XplatUIStructs.cs:
35039 - Added StdCursor enum (to support DefineStdCursor() method)
35040 - Added HitTest enum (to support sending WM_SETCURSOR message)
35042 - Now sends the WM_SETCURSOR message
35043 - Implemented new cursor methods
35044 * XplatUIOSX.cs: Stubbed new cursor methods
35046 - Implemented new cursor methods
35047 - Added GetSystemMetrics function and associated enumeration
35049 2005-01-15 Peter Bartok <pbartok@novell.com>
35052 - WndProc(): Now handles EnableNotifyMessage
35053 - SelectNextControl(): Fixed bug where if no child or sibling
35054 controls exist we looped endlessly
35056 2005-01-14 Jackson Harper <jackson@ximian.com>
35058 * TreeView.cs: Recalculate the tab pages when a new one is added
35059 so that the proper bounding rects are created.
35061 2005-01-14 Jackson Harper <jackson@ximian.com>
35063 * TreeView.cs: Draw a gray box instead of a grip in the lower
35064 right hand corner when there are both horizontal and vertical
35067 2005-01-14 Jackson Harper <jackson@ximian.com>
35069 * Control.cs: When erasing backgrounds use FromHwnd instead of
35070 FromHdc when there is a NULL wparam. This occurs on the X driver.
35071 * XplatUIX11.cs: Set the wparam to NULL.
35073 2005-01-13 Jackson Harper <jackson@ximian.com>
35075 * PictureBox.cs: Implement missing methods (except ToString, need
35076 to test that on windows) and events. When visibility is changed we
35077 need to redraw the image because the buffers are killed. When size
35078 is changed refresh if the sizemode needs it.
35080 2005-01-13 Peter Bartok <pbartok@novell.com>
35082 * Control.cs (SelectNextControl): Was using wrong method to select
35085 2005-01-13 Jordi Mas i Hernandez <jordi@ximian.com>
35087 * ComboBox.cs: fixes dropstyle
35089 2005-01-13 Peter Bartok <pbartok@novell.com>
35092 - Implemented Select() override
35093 - Now handles WM_SETFOCUS/WM_KILLFOCUS messages
35094 - Now sets keyboard focus on startup
35095 * Control.cs (SelectNextControl): Now properly handles directed=true
35097 - WndProc: Now passes tab key on to base if AcceptTabChar=false
35098 - Added (really bad) focus rectangle (mostly for testing)
35099 * TextBox.cs: Added code to handle getting/loosing focus and invalidating
35100 to enforce redraw on focus changes
35101 * ContainerControl.cs:
35102 - Fixed detection of Shift-Tab key presses
35103 - Fixed traversal with arrow keys
35104 * XplatUIX11.cs: Implemented simulated keyboard focus; not sure if we're
35105 gonna keep this or if it's complete yet
35107 2005-01-13 Jordi Mas i Hernandez <jordi@ximian.com>
35109 * ComboBox.cs: missing properties, fixes
35111 2005-01-13 Peter Bartok <pbartok@novell.com>
35113 * Panel.cs (ctor): Setting Selectable window style to off
35114 * Splitter.cs (ctor): Setting Selectable window style to off
35115 * GroupBox.cs (ctor): Setting Selectable window style to off
35116 * Label.cs (ctor): Setting Selectable window style to off
35118 2005-01-12 Miguel de Icaza <miguel@ximian.com>
35120 * UpDownBase.cs (InitTimer): If the timer has been already
35121 created, enable it.
35123 Use a TextBox instead of a Label.
35125 2005-01-12 Jackson Harper <jackson@ximian.com>
35127 * TreeView.cs: Refresh the tree after sorting the nodes. Always
35128 draw the connecting node lines (when ShowLines is true).
35129 * TreeNode.cs: The nodes index can now be updated. This is used
35130 when a node collection is sorted.
35131 * TreeNodeCollection.cs: Implement sorting. Nodes can be sorted on
35132 insert or an existing unsorted node collection can be sorted.
35134 2005-01-12 Peter Bartok <pbartok@novell.com>
35136 * ContainerControl.cs: Implemented ProcessDialogKeys()
35138 2005-01-12 Peter Bartok <pbartok@novell.com>
35141 - Implemented SelectNextControl() method
35142 - Several focus related bug fixes
35143 - Fixed Docking calculations to match MS documentation and
35146 2005-01-12 Jordi Mas i Hernandez <jordi@ximian.com>
35148 * ContainerControl.cs, ListControl.cs, ListBox.cs: keyboard navigation and
35151 2005-01-12 Peter Bartok <pbartok@novell.com>
35154 - Fixed broken Contains() method
35155 - Implemented GetNextControl() method. Finally. This is the pre-
35156 requisite for focus handling.
35158 2005-01-12 Peter Bartok <pbartok@novell.com>
35160 * OSXStrucs.cs: Added
35162 2005-01-12 Peter Bartok <pbartok@novell.com>
35165 - Removed PeekMessageFlags
35166 - Implemented SetWindowStyle() method
35167 * XplatUIStructs.cs: Added PeekMessageFlags
35168 * X11Structs: Added missing border_width field to XWindowChanges struct
35170 - PeekMessage: Now throws exception if flags which are not yet
35171 supported are passed
35172 - Implemented SetWindowStyle() method
35173 - Fixed SetZOrder to handle AfterHwnd properly
35174 * XplatUI.cs: Added SetWindowStyle() method
35175 * XplatUIDriver.cs: Added SetWindowStyle() abstract
35177 - Implemented UpdateStyles() method
35178 - Implemented UpdateZOrder() method
35179 * XplatUIOSX.cs: Added SetWindowStyle() stub
35181 2005-01-12 Geoff Norton <gnorton@customerdna.com>
35183 * XplatUIOSX.cs: Fix SetZOrder (this needs more testing with a 3
35187 2005-01-11 Jackson Harper <jackson@ximian.com>
35189 * TreeView.cs: Still need to draw lines to siblings even if out of
35190 the current node is out of the clip.
35192 2005-01-11 Jackson Harper <jackson@ximian.com>
35194 * TreeView.cs: When setting the hbar/vbar/grip position use
35195 SetBounds so that perform layout is only called once. Also suspend
35196 and resume layout so layout is only done once for all controls.
35197 - Removed some debug fluff
35198 * SizeGrip.cs: Call base implmentation in overriding methods.
35199 - When visibility is changed the drawing buffers are killed so we
35202 2005-01-11 Jackson Harper <jackson@ximian.com>
35204 * TreeView.cs: Calculate the open node count while drawing. This
35205 saves us an entire tree traversal for every paint operation. Use
35206 a member var for the open node count so less vars are passed around.
35208 2005-01-11 John BouAntoun <jba-mono@optusnet.com.au>
35210 * MonthCalendar.cs:
35211 - fixed selection to use mousemove, not mouse polling on timer
35212 * ThemeWin32Classic.cs
35213 - removed redundant unused variable "no_more_content"
35215 2005-01-11 Peter Bartok <pbartok@novell.com>
35217 * XplatUIX11.cs (DoEvents): Needs to return when no more events
35218 are pending, so it now calls PeekMessage instead of GetMessage;
35219 implemented a incomplete version of PeekMessage
35221 2005-01-11 Peter Bartok <pbartok@novell.com>
35223 * XplatUIWin32.cs: Switched P/Invokes to unicode charset to avoid
35225 * TextBoxBase.cs: Added sending of TextChanged event
35227 2005-01-10 Jackson Harper <jackson@ximian.com>
35229 * TreeView.cs: Try not to draw outside the clipping rectangle on
35232 2005-01-10 Jordi Mas i Hernandez <jordi@ximian.com>
35234 * ComboBox.cs: keyboard navigation, item navigation, bug fixes
35236 2005-01-10 Jackson Harper <jackson@ximian.com>
35239 - Implement fast scrolling. Now only the newly
35240 exposed nodes are drawn and the old image is moved using the
35241 XplatUI::ScrollWindow method.
35242 - Factor in height of nodes when calculating whether or not the
35243 node is in the clipping rect.
35245 2005-01-10 Jackson Harper <jackson@ximian.com>
35247 * TreeNodeCollection.cs: Refresh the tree when a new node is added.
35249 2005-01-10 Peter Bartok <pbartok@novell.com>
35251 * Application.cs: Added temporary hack to resolve all our resize
35252 required issues on startup. This will get fixed properly at
35253 some point in the future
35255 2005-01-10 Jackson Harper <jackson@ximian.com>
35257 * SizeGrip.cs: New internal class that is used as a sizing
35258 grip control...hence the name.
35260 2005-01-10 Peter Bartok <pbartok@novell.com>
35262 * Control.cs: Implemented proper TabIndex handling, now assigning
35263 a tabindex when a control is added to a container
35264 * GroupBox.cs (ctor): Now sets the Container style bit, required
35265 for Control.GetNextControl()
35267 2005-01-09 Jackson Harper <jackson@ximian.com>
35269 * TextBoxBase.cs: Clear window when scrolling (fixes build).
35271 2005-01-09 Peter Bartok <pbartok@novell.com>
35273 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
35274 XplatUIX11.cs: Added ability to control ScrollWindow expose and
35275 an overload for ScrollWindow to allow only scrolling a rectangle
35277 2005-01-09 Peter Bartok <pbartok@novell.com>
35280 - Implemented SetDesktopBounds method
35281 - Implemented SetDesktopLocation method
35283 2005-01-08 Jackson Harper <jackson@ximian.com>
35285 * TreeView.cs: Only set the vbar's Maximum and LargeChange when
35286 the node count has changed, this removes to VScroll::Refresh calls
35289 2005-01-08 Geoff Norton <gnorton@customerdna.com>
35291 * XplatUIOSX.cs: Fix GetWindowState & SetWindowState
35293 2005-01-07 Jackson Harper <jackson@ximian.com>
35295 * TreeNode.cs: Just update the single node when it is
35296 checked. Don't refresh after toggling, the Expand/Collapse already
35298 * TreeView.cs: Respect clipping a little more when drawing. Try
35299 not to redraw things that don't need to be redrawn. Just hide the
35300 scrollbars when they are no longer needed instead of removing
35301 them, so they don't have to be created again and again.
35303 2005-01-07 Geoff Norton <gnorton@customerdna.com>
35305 * XplatUIOSX.cs (SetCaretPos): We need to translate the view
35306 coordinates to window space to place the caret properly, FIXED.
35307 Implement GetWindowState & SetWindowState
35309 2005-01-06 Peter Bartok <pbartok@novell.com>
35312 - Implemented ClientSize property
35313 - Implemented DesktopBounds property
35314 - Implemented DesktopLocation property
35315 - Implemented IsRestrictedWindow property
35316 - Implemented Size property
35317 - Implemented TopLevel property
35318 - Implemented FormWindowState property
35320 - Implemented GetTopLevel() method
35321 - Implemented SetTopLevel() method
35322 * X11Structs.cs (Atom):
35323 - Added AnyPropertyType definition
35324 - Added MapState definiton and updated XWindowAttribute struct
35325 * XplatUI.cs: Added GetWindowState() and SetWindowState() methods
35326 * XplatUIDriver.cs: Added GetWindowState() and SetWindowState() methods
35327 * XplatUIOSX.cs: Stubbed GetWindowState() and SetWindowState() methods
35329 - Implemented GetWindowState() and SetWindowState() methods
35330 - Fixed Win32GetWindowLong return type
35332 - Introduced central function for sending NET_WM messages
35333 - Implemented GetWindowState() and SetWindowState() methods
35334 * TextBoxBase.cs (set_Lines):
35335 - Now uses Foreground color for text added via Text property (Duh!)
35336 - Added code to remember programmatically requested size (fixes
35337 behaviour when Multiline is set after Size)
35338 - Added AutoSize logic
35340 2005-01-06 Jackson Harper <jackson@ximian.com>
35342 * TreeView.cs: Draw the image after the checkbox if checkboxes are enabled.
35344 2005-01-06 Jackson Harper <jackson@ximian.com>
35346 * ListBox.cs: Don't allow the horizontal scrollbars maximum to be
35347 set to less then 0.
35349 2005-01-06 Jackson Harper <jackson@ximian.com>
35351 * ScrollableControl.cs: Lazy init the scrollbars.
35353 2005-01-06 Jackson Harper <jackson@ximian.com>
35355 * Theme.cs: Speed up getting pens and solid brushes, by using
35356 their ARGB as a hash instead of tostring and not calling Contains.
35358 2005-01-06 Peter Bartok <pbartok@novell.com>
35361 - Implemented OnActivated and OnDeactivate event trigger
35362 - Implemented Activate() method
35363 - Fixed ShowDialog() to activate the form that was active before
35364 the dialog was shown
35366 - Added global active_window var that tracks the currently active
35368 - Now always grabs Property changes from the root window to always
35369 catch changes on the active window property
35370 - Added code to PropertyNotify handler to send Active/Inactive
35371 messages when state changes. This puts X11 and Win32 en par on
35372 WM_ACTIVATE notifications (except for double notifications when
35373 the user clicks away from our modal window to another one of our
35376 2005-01-05 Jackson Harper <jackson@ximian.com>
35378 * ImageList.cs: Implment ctor
35380 2005-01-05 Geoff Norton <gnorton@customerdna.com>
35382 * XplatUIOSX.cs: Implement Activate/SetTopmost
35384 2005-01-05 Geoff Norton <gnorton@customerdna.com>
35386 * XplatUIOSX.cs: Implement SetZOrder, minor cleanup
35388 2005-01-05 Geoff Norton <gnorton@customerdna.com>
35390 * XplatUIOSX.cs: Implement GetActive/SetFocus.
35392 2005-01-05 Peter Bartok <pbartok@novell.com>
35394 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs,
35395 XplatUIOSX.cs: Added GetActive method to return the currently
35396 active window for the application (or null, if none is active)
35398 - Implemented ActiveForm
35399 - Commented out owner assignment for modal dialogs (causes problems
35400 on Win32, since the owner will be disabled)
35401 - Reworked some Active/Focus handling (still incomplete)
35402 * CommonDialog.cs: Commented out owner assignment for modal dialogs
35403 (causes problems on Win32, since the owner will be disabled)
35404 * IWin32Window: Added ComVisible attribute
35406 2005-01-05 Peter Bartok <pbartok@novell.com>
35408 * ToolTip.cs (WndProc): Enable setting focus now that we have the
35409 required XplatUI functions.
35411 2005-01-05 Peter Bartok <pbartok@novell.com>
35413 * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIDriver.cs,
35414 XplatUIX11.cs, X11Structs.cs, Form.cs: Framework code required
35415 to implement focus and activation handling; still incomplete and
35418 2005-01-04 Peter Bartok <pbartok@novell.com>
35420 * TextBoxBase.cs: Changed access level for Document property to
35421 match switch to internal for TextControl
35423 2005-01-04 Peter Bartok <pbartok@novell.com>
35425 * AccessibleObject: Added ComVisible attribute
35427 2005-01-04 Jackson Harper <jackson@ximian.com>
35429 * X11Keyboard.cs: Remove unneeded var.
35431 2005-01-04 Jackson Harper <jackson@ximian.com>
35433 * XplatUIX11.cs (DoEvents): Implement, Just cast aside all events
35435 * XplatUIX11.cs (GetMessage): Call Exit when we get an unknown
35436 ClientMessage. This makes apps exit cleanly (more often).
35438 2005-01-04 Jackson Harper <jackson@ximian.com>
35440 * TreeNode.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) for
35441 handling focus, return correct colors and fonts,
35442 * TreeView.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) to
35443 handle selection, horizontal scrolling, and mouse interaction.
35445 2005-01-04 Peter Bartok <pbartok@novell.com>
35447 * ICommandExecutor.cs: Added
35448 * IDataGridColumnStyleEditingNotificationService.cs: Added
35449 * IFeatureSupport.cs: Added
35450 * IFileReaderService.cs: Added
35451 * IDataObject.cs: Added ComVisible attribute
35452 * AmbientProperties.cs: Added
35453 * BaseCollection.cs: Added missing attributes
35454 * ListBindingConverter.cs: Added (stubbed, required for certain attributes)
35455 * BaseCollection.cs: Added missing attributes
35456 * Binding.cs: Added TypeConverter attribute
35457 * BindingContext.cs: Added DefaultEvent attribute
35458 * BindingsCollection.cs: Added DefaultEvent attribute
35459 * Button.cs: Added DefaultValue attribute
35460 * DragEventArgs.cs: Added ComVisible attribute
35461 * GiveFeedbackEventArgs.cs: Added ComVisible attribute
35462 * KeyEventArgs.cs: Added ComVisible attribute
35463 * KeyPressEventArgs.cs: Added ComVisible attribute
35464 * MouseEventArgs.cs: Added ComVisible attribute
35465 * NavigateEventArgs.cs: Added
35466 * NavigateEventHandler.cs: Added
35467 * FeatureSupport.cs: Added
35468 * OSFeature.cs: Added
35469 * Theme.cs: Added abstract Version property to support OSFeature
35470 * ThemeWin32Classic.cs: Added Version property to
35471 support OSFeature.Themes
35472 * ProgressBar.cs: Removed OnPaintBackground override, not required since
35473 the proper styles to avoid background drawing are set, also doesn't
35475 * QueryAccessibilityHelpEventArgs.cs: Added ComVisible attribute
35476 * QueryContinueDragEventArgs.cs: Added ComVisible attribute
35477 * ScrollEventArgs.cs: Added ComVisible attribute
35478 * SplitterEventArgs.cs: Added ComVisible attribute
35479 * AccessibleSelection.cs: Added Flags attribute
35480 * Appearance.cs: Added ComVisible attribute
35481 * Border3DSide.cs: Added ComVisible attribute
35482 * Border3DStyle.cs: Added ComVisible attribute
35483 * BorderStyle.cs: Added ComVisible attribute
35484 * DragAction.cs: Added ComVisible attribute
35485 * ErrorBlinkStyle.cs: Added
35486 * ScrollEventType.cs: Added ComVisible attribute
35487 * AnchorStyles.cs: Added Editor attribute
35488 * DockStyle.cs: Added Editor attribute
35489 * HorizontalAlignment.cs: Added ComVisible attribute
35490 * HelpEventArgs.cs: Added ComVisible attribute
35491 * PaintEventArgs.cs: Added IDisposable
35493 2005-01-04 Peter Bartok <pbartok@novell.com>
35495 * TextControl.cs: Switched Line, LineTag and Document classes to
35498 2005-01-04 Jordi Mas i Hernandez <jordi@ximian.com>
35500 * ComboBox.cs, ThemeWin32Classic.cs, ListBox.cs, Theme.cs:
35501 Simple mode, fixes, IntegralHeight, etc.
35503 2005-01-04 Peter Bartok <pbartok@novell.com>
35505 * TextBoxBase.cs: Using proper font variable now
35507 2005-01-04 Peter Bartok <pbartok@novell.com>
35509 * Form.cs (ShowDialog): Set parent to owner, if provided
35510 * GroupBox.cs: Removed unused vars
35512 - Added GetHashCode() for Document and LineTag classes
35513 - Removed unused variables
35514 - Added CharIndexToLineTag() and LineTagToCharIndex() methods
35515 to allow translation between continuous char position and line/pos
35516 * CheckBox.cs: Removed vars that are provided by base class
35517 * RadioButton.cs: Removed vars that are provided by base class, added
35518 new keyword where required
35519 * LinkLabel.cs: Added new keyword where required
35520 * Control.cs (WndProc): Removed unused variable
35522 - Finished SelectionLength property
35523 - Implemented SelectionStart property
35524 - Implemented Text property
35525 - Removed unused vars
35526 * MessageBox.cs: Added new keyword where required
35527 * TextBox.cs: Removed Text property code (now in TextBoxBase), fixed
35529 * MenuAPI.cs: Added new keyword where required
35530 * ButtonBase.cs: Removed vars that are provided by base class, added
35531 new keyword where required
35532 * ThemeWin32Classic.cs (DrawMonthCalendarDate): Now cast Math.Floor
35533 argument to double, to allow compiling with csc 2.0 (Atsushi ran
35535 * Application.cs (Run): Now triggers the ThreadExit event
35536 * CommonDialog.cs: Added new keyword where required; now properly sets
35537 parent (owner) for dialog
35538 * XplatUIX11.cs: Commented out unused vars
35539 * StatusBar.cs: Fixed signature for Text property
35540 * TabPage.cs: Undid Jordi's removal of unused var, now using the var
35542 2005-01-04 Jordi Mas i Hernandez <jordi@ximian.com>
35544 * ComboBox.cs, TabPage.cs, MenuAPI.cs, ThemeWin32Classic.cs,
35545 TrackBar.cs, MonthCalendar.cs: remove unused vars
35547 2005-01-03 Jackson Harper <jackson@ximian.com>
35549 * ThemeWin32Classic.cs:
35550 * X11Keyboard.cs: Remove unused vars.
35552 2005-01-03 Peter Bartok <pbartok@novell.com>
35555 - set_Text: Tied into TextControl
35556 - set_TextAlignment: Tied into TextControl
35558 - Added alignment properties and implemented alignment handling
35559 and drawing (still has a bug, not generating proper expose events)
35560 - Added new Line() constructor to allow passing the line alignment
35561 - Fixed selection setting, properly handling end<start now
35562 - Added aligment considerations to RecalculateDocument()
35564 - Now properly enforces control height for single line controls
35565 - Added support for CharacterCasing
35566 - Added IsInputKey override
35567 - Fixed Keys.Enter logic
35568 - Added SetBoundsCore override
35569 - Fixed mouse selection handling
35571 2005-01-03 Jackson Harper <jackson@ximian.com>
35574 - Collapse and uncheck all nodes when CheckBoxes is disabled.
35575 - Checkboxes are always aligned to the bottom of the node,
35576 regardless of item height.
35577 - Use the node bounds to draw the text so we can center it when
35578 the item height is greater then the font height.
35579 - Node::Bounds are only the text part of the node.
35580 * TreeNode.cs: New method to combine collapsing and unchecking all
35583 2005-01-02 Jackson Harper <jackson@ximian.com>
35585 * TreeView.cs: Draw checkmarks, handle detecting check mark clicks
35586 * TreeNode.cs: Add a bounding box for the checkbox, refresh the
35587 tree when a check is changed. TODO: Only refresh the checked node.
35589 2004-12-30 Jackson Harper <jackson@ximian.com>
35591 * TreeView.cs: Draw checkbox boxes when checkboxes are enabled.
35592 * TreeNode.cs: When collapsing make sure to never collapse the
35595 2004-12-29 Jackson Harper <jackson@ximian.com>
35597 * TreeView.cs: Align lines to the bottom of plus minus boxes properly.
35599 2004-12-28 Zoltan Varga <vargaz@freemail.hu>
35601 * X11Structs.cs X11Keyboard.cs XplatUIX11.cs: Fix 64 bit issues.
35603 2004-12-28 Peter Bartok <pbartok@novell.com>
35605 * MessageBox.cs (get_CreateParams): Don't use owner var if it's
35608 2004-12-28 Peter Bartok <pbartok@novell.com>
35610 * Control.cs (WndProc): Added WM_HELP handler, now generates
35611 HelpRequested event
35612 * Form.cs: Added HelpButton property and required support code
35613 * XplatUIStructs.cs: Added HELPINFO structure for WM_HELP handling
35615 2004-12-28 Peter Bartok <pbartok@novell.com>
35618 - Made DialogForm.owner variable internal
35619 - Added check to ensure owner form is set before setting
35620 owner properties in CreateParams
35622 2004-12-28 Geoff Norton <gnorton@customerdna.com>
35624 * XplatUIOSX.cs: Implement mouse hovering. Fix QDPoint struct to avoid
35625 swizzling. Implement ClientToScreen and ScreenToClient. Implement
35626 GetCursorPos. Fix major visibility issues. Rework the windowing
35627 system to support borderless/titleless windows (implements menus).
35628 Fix GetWindowPos. Implement initial background color support for
35631 2004-12-28 Peter Bartok <pbartok@novell.com>
35633 * Form.cs (get_CreateParams): Make sure we have an owner before using
35634 the owner variable. Implement proper default if no owner exists
35636 2004-12-28 Peter Bartok <pbartok@novell.com>
35638 * In preparation for making Managed.Windows.Forms the default build target
35639 for System.Windows.Forms, the following stubbed files were added.
35640 Dialogs are currently being implemented by contributors and are only
35641 short-term place holders.
35642 * ColorDialog.cs: Initial check-in (minmal stub)
35643 * DataGrid.cs: Initial check-in (minimal stub)
35644 * DataGridLineStyle.cs: Initial check-in (minimal stub)
35645 * DataGridParentRowsLabelStyle.cs: Initial check-in (minimal stub)
35646 * DataGridTableStyle.cs: Initial check-in (minimal stub)
35647 * FontDialog.cs: Initial check-in (minimal stub)
35648 * FileDialog.cs: Initial check-in (minimal stub)
35649 * GridColumnStylesCollection.cs: Initial check-in (minimal stub)
35650 * GridTableStylesCollection.cs: Initial check-in (minimal stub)
35651 * OpenFileDialog: Initial check-in (minimal stub)
35652 * IComponentEditorPageSite.cs: Initial check-in
35653 * Splitter.cs: Initial check-in (for Jackson)
35654 * SplitterEventArgs.cs: Initial check-in (for Jackson)
35655 * SplitterEventHandler.cs: Initial check-in (for Jackson)
35656 * TextBox.cs: Initial check-in; still needs some wiring to
35657 TextControl backend
35658 * Form.cs: Implemented ControlBox property
35659 * MessageBox.cs: Added proper coding for Minimize/Maximize/ControlBox
35660 * CommonDialog.cs: Added proper coding for Minimize/Maximize/ControlBox
35661 * TextControl.cs: Added selection functionality; added todo header
35663 - Implemented Lines property
35664 - Implemented TextHeight property
35665 - Implemented SelectedText property
35666 - Implemented SelectionLength property
35667 - Implemented SelectAll method
35668 - Implemented ToString method
35669 - Removed and cleaned up some debug code
35670 - Implemented (still buggy) mouse text selection
35672 2004-12-27 Jordi Mas i Hernandez <jordi@ximian.com>
35674 * ComboBox.cs: Complete DropDownList implementation, fixes.
35676 2004-12-26 Jordi Mas i Hernandez <jordi@ximian.com>
35678 * ThemeWin32Classic, Theme.cs: ComboBox drawing methods
35679 * ComboBoxStyle.cs: ComboBoxStyle enum
35680 * ComboBox.cs: Initial work on ComboBox control
35682 2004-12-21 Peter Bartok <pbartok@novell.com>
35684 * Control.cs (ctor, CreateParams): Moved setting of is_visible
35685 forward so that anything that creates a window gets the default,
35686 also no longer uses Visible property in CreateParams to avoid
35687 walking up the parent chain and possibly get the wrong visible
35688 status. Fixed IsVisible to no longer walk up to the parent.
35690 2004-12-21 Peter Bartok <pbartok@novell.com>
35692 * Form.cs (ShowDialog): Unset modality for the proper window
35694 2004-12-20 Peter Bartok <pbartok@novell.com>
35696 * CommonDialog.cs: Initial check-in
35698 2004-12-20 Peter Bartok <pbartok@novell.com>
35700 * Control.cs (Visible): Now uses the parent window instead of the
35701 client area window for the property
35704 - ShowDialog(): Now uses the proper window for modality
35705 - The default visibility state for the form parent is now false. This
35706 will prevent the user from seeing all the changes to the form and
35707 its controls before the application hits Application.Run()
35708 - Removed some stale commented out code
35711 - Added FindWindow() method to have a method to check for existence
35713 - Added ability to override default exception handling (for example
35714 when debugging with VS.Net; to do this the ExternalExceptionHandler
35716 - Removed some useless debug output
35719 - Removed r37929 (SetModal patch from Ashwin Bharambe), was
35720 not working as expected
35721 - Implemented modal_window stack and checking for _WM_ACTIVE_WINDOW
35722 property to allow switching back to the modal window if focus is
35723 given to another one of our windows (Application Modal)
35724 - Now only sets override_redirect if we create a window
35726 - Moved EventMask selection before mapping of newly created window
35727 so we can catch the map event as well
35728 - Implemented Activate() method via the _WM_ACTIVE_WINDOW property
35729 - Added various Atom related DllImports
35730 - Implemented Exit() method
35731 - .ctor() : No longer shows window if WS_VISIBLE is not defined
35732 in the CreateParams
35734 * MessageBox.cs: Now properly deals with the FormParent window by
35735 providing an override the FormParent CreateParams property to
35736 set as POPUP instead of OVERLAPPED window.
35738 2004-12-19 Geoff Norton <gnorton@customerdna.com>
35740 * XplatUIOSX.cs: Implement DestroyWindow. Implement ScrollWindow
35741 Minor code cleanup.
35743 2004-12-19 Geoff Norton <gnorton@customerdna.com>
35745 * XplatUIOSX.cs (SetModal): Implement this method on OSX.
35747 2004-12-18 Peter Bartok <pbartok@novell.com>
35749 * XplatUIX11.cs (SetModal): Applied patch from Ashwin Bharambe,
35750 implementing SetModal() method
35752 2004-12-18 Peter Bartok <pbartok@novell.com>
35754 * X11Structs.cs (XGCValues): Fixed type of function element
35755 * XplatUI.cs: Added ScrollWindow() method
35756 * XplatUIDriver.cs: Added ScrollWindow() abstract
35757 * XplatUIWin32.cs: Implemented ScrollWindow() method
35758 * XplatUIX11.cs: Implemented ScrollWindow() method
35759 * XplatUIOSX.cs: Stubbed out ScrollWindow() method
35761 2004-12-17 Geoff Norton <gnorton@customerdna.com>
35763 * XplatUIOSX.cs: Fix cursor to use an Invert instead of drawing it
35764 Some more keyboard support (INCOMPLETE)
35766 2004-12-17 Peter Bartok <pbartok@novell.com>
35769 - Added color attribute to line tags.
35770 - Added color argument to all functions dealing with tags
35771 - Added color argument support to various functions
35772 - Fixed miss-calculation of baseline/shift in certain circumstances
35774 * TextBoxBase.cs: Added new color option to test code
35776 2004-12-17 Jackson Harper <jackson@ximian.com>
35779 * MonthCalendar.cs: Signature fixes
35781 2004-12-17 Geoff Norton <gnorton@customerdna.com>
35783 * XplatUIOSX.cs: Find the missing caret; caret was dissappearing after a
35784 keyboard event moved it. Create a new graphics context for each paint resolves this
35786 2004-12-17 Geoff Norton <gnorton@customerdna.com>
35788 * XplatUIOSX.cs: Fix hard cpu eat on loop with existing timers,
35789 Make caret exist and go blink blink. Initial keyboard support.
35790 Fix exception handler, Add Invalidate support. Change way RefreshWindow
35793 2004-12-17 Jackson Harper <jackson@ximian.com>
35795 * XplatUIStructs.cs: Updated set of virtual keycodes.
35796 * KeyboardLayouts.cs: SCROLL_LOCK is now SCROLL
35798 2004-12-17 Jackson Harper <jackson@ximian.com>
35800 * XplatUIX11.cs: Prune old keyboard code.
35802 2004-12-17 Jackson Harper <jackson@ximian.com>
35804 * XplatUIX11.cs: When generating mouse wparams get the modifier
35805 keys from the ModifierKeys property.
35807 2004-12-17 Jackson Harper <jackson@ximian.com>
35809 * X11Keyboard.cs: Send up/down input when generating
35810 messages. Remove some unused vars.
35812 2004-12-17 Jackson Harper <jackson@ximian.com>
35815 * TreeView.cs: get rid of warnings.
35817 2004-12-17 Jackson Harper <jackson@ximian.com>
35819 * XplatUIStructs.cs: Fix a couple wrong virtual keycodes.
35821 2004-12-17 Jordi Mas i Hernandez <jordi@ximian.com>
35823 * ListBox.cs: bug fixes, changes for CheckedListBox.cs
35824 CheckedListBox.cs: Implementation
35826 2004-12-17 Peter Bartok <pbartok@novell.com>
35828 * TextControl.cs (RecalculateLine): Fixed baseline aligning calcs
35830 2004-12-16 Peter Bartok <pbartok@novell.com>
35833 - InsertCharAtCaret(): Fixed start pos fixup
35834 - CaretLine_get: No longer derives the line from the tag, the tag
35835 could be stale if lines in the document have been added or deleted
35836 - RebalanceAfterDelete(): Fixed bug in balancing code
35837 - RebalanceAfterAdd(): Fixed really stupid bug in balancing code
35838 - Line.Streamline(): Now can also elminate leading empty tags
35839 - DumpTree(): Added a few more tests and prevented exception on
35841 - Added Debug section for Combining lines
35842 - Delete(): Now copies all remaining properties of a line
35845 - Left mousebutton now sets the caret (and middle button still acts
35846 as formatting tester, which must go away soon)
35847 - Added Debug section for Deleting/Combining lines
35848 - Fixed calculations for UpdateView after Combining lines
35850 2004-12-16 Peter Bartok <pbartok@novell.com>
35852 * TextControl.cs: Now properly aligns text on a baseline, using the
35853 new XplatUI.GetFontMetrics() method. Simplified several calculations
35854 * TextBoxBase.cs: Moved #endif to allow compiling if Debug is not
35857 2004-12-16 Peter Bartok <pbartok@novell.com>
35859 * XplatUI.cs: Added GetFontMetrics() method
35860 * XplatUIDriver.cs: Added GetFontMetrics() abstract
35861 * XplatUIX11.cs: Implemented GetFontMetrics() method, now calls
35862 into libgdiplus, our private GetFontMetrics function
35863 * XplatUIOSX.cs: Implemented GetFontMetrics() method, same as X11
35864 * XplatUIWin32.cs: Implemented GetFontMetrics() method
35866 2004-12-16 Jackson Harper <jackson@ximain.com>
35868 * XplatUIStruct.cs: Add enum for dead keys
35869 * X11Keyboard.cs: Map and unmap dead keys.
35871 2004-12-16 Jackson Harper <jackson@ximian.com>
35873 * X11Keyboard.cs: Detect and use the num lock mask.
35875 2004-12-16 Peter Bartok <pbartok@novell.com>
35877 * Control.cs (CreateGraphics): Added check to make sure the
35878 handle of the window exists before calling Graphics.FromHwnd()
35880 2004-12-16 Peter Bartok <pbartok@novell.com>
35882 * TextBoxBase.cs: Initial check-in. DO NOT TRY TO USE THIS YET. It
35883 contains a lot of code that's not supposed to be there for the
35884 real thing, but required for developing/testing the textbox
35887 2004-12-16 Peter Bartok <pbartok@novell.com>
35890 - Fixed Streamline method
35891 - Added FindTag method to Line
35892 - Added DumpTree method for debugging
35893 - Added DecrementLines() method for deleting lines
35894 - Fixed UpdateView to update the cursor to end-of-line on single-line
35896 - Added PositionCaret() method
35897 - Fixed MoveCaret(LineDown) to move into the last line, too
35898 - Added InsertChar overload
35899 - Fixed InsertChar tag offset calculations
35900 - Added DeleteChar() method
35901 - Added Combine() method for folding lines
35902 - Fixed Delete() method, no longer allocates wasted Line object and
35903 now copies all properties when swapping nodes
35904 - Delete() method now updates document line counter
35906 2004-12-15 Jackson Harper <jackson@ximian.com>
35908 * XplatUIX11.cs: Get the modifier keys from the keyboard driver
35909 * X11Keyboard.cs: Expose the currently selected modifier keys
35910 through a property.
35912 2004-12-15 Peter Bartok <pbartok@novell.com>
35914 * TextControl.cs: Initial check-in. Still incomplete
35916 2004-12-15 Jackson Harper <jackson@ximian.com>
35919 * TreeView.cs: Fix build on csc (second time today ;-))
35921 2004-12-15 Jackson Harper <jackson@ximian.com>
35923 * TreeView.cs: Store the treenodes plus/minus box bounds when it
35924 is calculated and use this for click testing.
35925 * TreeNode.cs: Add functionality to store the nodes plus minus box bounds.
35927 2004-12-15 Jackson Harper <jackson@ximian.com>
35929 * TreeView.cs: Pass the nodes image index to the image list when
35930 drawing that image.
35932 2004-12-15 Jackson Harper <jackson@ximian.com>
35934 * X11Keyboard.cs: Set messages hwnd.
35935 * XplatUIX11.cs: Pass proper hwnd wot keyboard driver. Set hwnd on
35936 post_message calls.
35938 2004-12-15 Jackson Harper <jackson@ximian.com>
35940 * X11Keyboard.cs: Fix to compile with csc.
35942 2004-12-15 Jackson Harper <jackson@ximian.com>
35944 * X11Structs.cs: Add key mask values
35945 * XplatUIStruct.cs: Add keyboard event flags, and keyboard definitions
35946 * X11Keyboard.cs: New file - Extrapolates and interpolates key
35947 down/up foo into WM_CHAR foo
35948 * KeyboardLayouts.cs: Common keyboard layouts
35949 * XplatUIX11.cs: Add the keyboard driver. Add functionality to
35950 post messages into the main queue.
35952 2004-12-13 Jordi Mas i Hernandez <jordi@ximian.com>
35954 * Button.cs: implement ProcessMnemonic
35955 * ThemeWin32Classic.cs: use ResPool (caching) instead of creating
35957 * Control.cs: fixes IsMnemonic (support for &&, case insensitive, etc)
35958 * ButtonBase.cs: Show HotkeyPrefix (not the &)
35960 2004-12-12 John BouAntoun <jba-mon@optusnet.com.au>
35962 * MonthCalendar.cs: Implemented click-hold for next/previous month
35965 2004-12-11 Peter Bartok <pbartok@novell.com>
35968 - Added XKeyboardState (moved from XplatUIX11.cs)
35969 - Added XCreateGC related enums and structures
35970 - Added GXFunction for XSetFunction
35972 * XplatUIStructs.cs: Added missing WS_EX_xxx definitions
35974 * XplatUI.cs: Added CreateCaret(), DestroyCaret(), SetCaretPos() and
35975 CaretVisible() calls
35977 * ToolTip.cs: Added code to prevent stealing focus from app windows
35979 * XplatUIDriver.cs: Added abstracts for caret functions (CreateCaret,
35980 DestroyCaret, SetCaretPos and CaretVisible)
35983 - Added implementation for caret functions
35984 - Moved hover variables into a struct, to make it a bit easier
35985 on the eyes and to debug
35986 - Removed XKeyboardState (moved to XplatUIX11.cs)
35987 - Moved Keyboard properties into the properties region
35989 * Control.cs (get_Region): Control.CreateGraphics is the appropriate
35990 call to get a graphics context for our control
35992 * XplatUIOSX.cs: Added empty overrides for the new caret functions
35994 * TreeView.cs: Fixed bug. No matter what color was set it would always
35995 return SystemColors.Window
35997 * XplatUIWin32.cs: Implemented caret overrides
35999 2004-12-10 Jordi Mas i Hernandez <jordi@ximian.com>
36001 * ListBox.cs: fire events, implement missing methods and properties,
36004 2004-12-10 John BouAntoun <jba-mono@optusnet.com.au>
36006 * MonthCalendar.cs: invalidation bug fixing
36007 * ThemeWin32Classic.cs: paint fixing
36009 2004-12-09 Geoff Norton <gnorton@customerdna.com>
36011 * XplatUIOSX.cs: Refactor to pass the real hwnd into Graphics.FromHwnd, we
36012 prepare the CGContextRef there now.
36014 2004-12-09 John BouAntoun <jba-mono@optusnet.com.au>
36016 * MonthCalendar.cs:
36017 - optimisationL only invalidate areas that have changed
36018 * ThemeWin32Classic.cs:
36019 - only paint parts that intersect with clip_area
36021 2004-12-09 Peter Bartok <pbartok@novell.com>
36023 * Application.cs: Undid changes from r37004 which cause problems
36026 2004-12-09 Ravindra <rkumar@novell.com>
36028 * ToolBar.cs: Added support for displaying ContextMenu
36029 attached to a button on ToolBar.
36030 * ToolBarButton.cs: Uncomment/fixed the DropDownMenu
36033 2004-12-09 Jordi Mas i Hernandez <jordi@ximian.com>
36035 * Label.cs: autosize works in text change and removes unnecessary
36038 2004-12-09 Jordi Mas i Hernandez <jordi@ximian.com>
36040 * ThemeWin32Classic.cs, XplatUIOSX.cs, XplatUIWin32.cs:
36043 2004-12-08 Geoff Norton <gnorton@customerdna.com>
36045 * XplatUIOSX.cs: Added mouse move/click/grab support
36046 Remove some debugging WriteLines not needed anymore.
36047 Add window resizing/positioning.
36048 Fix visibility on reparenting.
36050 2004-12-08 Peter Bartok <pbartok@novell.com>
36052 * XplatUIOSX.cs: Added Idle event, now compiles on VS.Net
36054 2004-12-07 Geoff Norton <gnorton@customerdna.com>
36056 * XplatUIOSX.cs: Initial checkin
36057 * XplatUI.cs: Use the Quartz driver if the environment is set to use it
36059 2004-12-03 Ravindra <rkumar@novell.com>
36061 * ListView.cs: Added some keybindings and fixed scrolling.
36062 ScrollBars listen to ValueChanged event instead of Scroll
36063 Event. This would let us take care of all changes being
36064 done in the scrollbars' values programmatically or manually.
36065 * ListView.cs (CanMultiselect): Added a check for shift key.
36066 * ListView.cs (EnsureVisible): Fixed. Do proper scrolling.
36067 * ListViewItem.cs (Clone): Fixed. We need to make a copy
36068 of ListViewSubItemCollection as well.
36070 2004-12-06 Peter Bartok <pbartok@novell.com>
36072 * Control.cs (Parent): Added check and exception to prevent
36075 2004-12-03 Jordi Mas i Hernandez <jordi@ximian.com>
36077 * ListBox.cs: implemented clipping, selection single and multiple,
36080 2004-12-03 Ravindra <rkumar@novell.com>
36082 * ListView.cs (ListView_KeyDown):
36083 * ListView.cs (ListView_KeyUp): Fixed multiple selection handling
36084 when CTRL key is pressed.
36085 * ListViewItem.cs (Selected): Fixed setting the property.
36087 2004-12-03 Marek Safar <marek.safar@seznam.cz>
36089 * Application.cs (OnThreadException): Use ThreadExceptionDialog.
36091 * Form.cs: Add ActiveForm, FormBorderStyle, MaximizeBox,
36092 MinimizeBox, ShowInTaskbar, TopMost properties.
36094 * ThreadExceptionDialog.cs: Implemented (disabled TextBox until
36095 will be implemented).
36097 2004-12-03 Marek Safar <marek.safar@seznam.cz>
36099 * OwnerDrawPropertyBag.cs: New internal parameterless ctor.
36101 * TreeNode.cs: Implemented ICloneable, Fixed to pass my simple
36104 * TreeNodeCollection.cs: Add exception throwing for Add,AddRange.
36106 * TreeView.cs: BackColor is Colors.Window.
36108 2004-12-01 Jackson Harper <jackson@ximian.com>
36110 * TreeView.cs: When resizing the tree if the user is making it
36111 smaller we don't get expose events, so we need to handle adding
36112 the horizontal scrollbar in the size changed handler as well as
36113 the expose handler.
36115 2004-12-02 Jordi Mas i Hernandez <jordi@ximian.com>
36117 * DrawItemState.cs: fixes wrong enum values
36119 2004-12-01 Jackson Harper <jackson@ximian.com>
36121 * TreeView.cs: Resize the hbar as well as the vbar on resize.
36123 2004-12-01 Jackson Harper <jackson@ximian.com>
36125 * NodeLabelEditEventArgs.cs:
36126 * NodeLabelEditEventHandler.cs:
36127 * OpenTreeNodeEnumerator.cs:
36129 * TreeNodeCollection.cs:
36131 * TreeViewAction.cs:
36132 * TreeViewCancelEventArgs.cs:
36133 * TreeViewCancelEventHandler.cs:
36134 * TreeViewEventArgs.cs:
36135 * TreeViewEventHandler.cs: Initial implementation.
36137 2004-12-01 Ravindra <rkumar@novell.com>
36139 * ListView.cs (CalculateListView): Fixed scrolling related
36140 calculations. Also, removed some debug statements from other
36142 * ListViewItem.cs: Changed access to 'selected' instance variable
36143 from private to internal.
36144 * ThemeWin32Classic.cs (DrawListViewItem): Fixed SubItem drawing.
36146 2004-12-01 Jordi Mas i Hernandez <jordi@ximian.com>
36148 * ThemeWin32Classic.cs: remove cache of brush and pens for
36149 specific controls and use the global system, fixes scrollbutton
36150 bugs (for small sizes, disabled, etc)
36152 * ScrollBar.cs: does not show the thumb for very small controls
36153 (as MS) and allow smaller buttons that the regular size
36155 2004-12-01 Miguel de Icaza <miguel@ximian.com>
36157 * UpDownBase.cs: Add abstract methods for the interface.
36158 Add new virtual methods (need to be hooked up to TextEntry when it
36160 Add override methods for most features.
36161 Computes the size, forces the height of the text entry.
36163 * NumericUpDown.cs: Put here the current testing code.
36165 * Set eol-style property on all files that do not have mixed line
36166 endings, to minimize the future problems. There are still a few
36167 files with mixed endings, and someone should choose whether they
36168 want to move it or not.
36170 2004-11-30 Jordi Mas i Hernandez <jordi@ximian.com>
36172 * MonthCalendar.cs, ListView.cs: use Theme colours instead of
36175 2004-11-30 Ravindra <rkumar@novell.com>
36177 * ThemeWin32Classic.cs (DrawListViewItem): Fixed selected item
36178 drawing and replaced use of SystemColors by theme colors.
36179 * ListView.cs (ListView_Paint): Fixed painting done during scrolling.
36180 * ListView.cs (ListViewItemCollection.Add): Throw exception when
36181 same ListViewItem is being added more than once.
36183 2004-11-30 John BouAntoun <jba-mono@optusnet.com.au>
36185 * MonthCalendar.cs:
36186 - ControlStyles love to make the control not flicker
36188 2004-11-30 Peter Bartok <pbartok@novell.com>
36190 * CharacterCasing.cs: Added
36192 2004-11-29 Peter Bartok <pbartok@novell.com>
36194 * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
36195 TreeViewAction.cs, TreeViewEventArgs.cs: Removed new files.
36196 I am removing these files as they conflict with already completed
36197 work. While it is fantastic to get contributions to MWF, I
36198 respectfully ask that everyone please coordinate their contributions
36199 through mono-winforms-list or #mono-winforms at this time. We're
36200 explicitly avoiding stubbing and don't want controls that don't have
36201 their basic functionality implemented in svn. Please also see
36202 http://www.mono-project.com/contributing/winforms.html
36205 2004-11-29 Marek Safar <marek.safar@seznam.cz>
36207 * Application.cs (ModalRun): Don't hang after exit.
36209 * Theme.cs: New TreeViewDefaultSize property.
36211 * ThemeWin32Classic.cs: Replaced hardcoded defaultWindowBackColor
36212 with less hardcoded SystemColors constant.
36213 Implemented TreeViewDefaultSize.
36215 * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
36216 TreeViewAction.cs, TreeViewEventArgs.cs: New files.
36219 2004-11-29 John BouAntoun <jba-mono@optusnet.com.au>
36221 * MonthCalendar.cs:
36222 - Fix NextMonthDate and PrevMonthDate click moving calendar
36224 2004-11-26 John BouAntoun <jba-mono@optusnet.com.au>
36226 * MonthCalendar.cs:
36227 - Fix usage of ScrollChange Property when scrolling months
36229 2004-11-26 Jordi Mas i Hernandez <jordi@ximian.com>
36231 * Menu.cs, MainMenu.cs, MenuItem.cs, MenuAPI.cs
36232 - Fixes menu destroying
36233 - Support adding and removing items on already created menus
36235 2004-11-26 John BouAntoun <jba-mono@optusnet.com.au>
36237 * MonthCalendar.cs:
36238 - Re-worked all bolded dates handling to match win32
36239 * ThemeWin32Classic.cs:
36240 - Fixed rendering with bolded dates
36242 2004-11-25 Jordi Mas i Hernandez <jordi@ximian.com>
36244 * ListBox.cs, Theme.cs, ThemeWin32Classic.cs:
36245 - Horizontal scroolbar
36250 2004-11-25 John BouAntoun <jba-mono@optusnet.com.au>
36252 * MonthCalendar.cs:
36253 - Fix Usage of MaxSelectionCount from SelectionRange
36254 - Fixed Shift + Cursor Selection
36255 - Fixed Shift + (Pg up/Pg dn, Home/End) selection
36256 - Fixed normal cursor selection to be compat with win32
36257 - Fixed Shift + Mouse Click selection
36259 2004-11-24 Peter Bartok <pbartok@novell.com>
36261 * XplatUI.cs (DispatchMessage): Switched to return IntPtr
36262 * XplatUIDriver.cs (DispatchMessage): Switched to return IntPtr
36264 - CreatedKeyBoardMsg now updates keystate with Alt key
36265 - Added workaround for timer crash to CheckTimers, Jackson will
36266 develop a proper fix and check in later
36267 - Implemented DispatchMessage
36268 - Removed calling the native window proc from GetMessage (call
36269 now moved to DispatchMessage)
36271 * KeyEventArgs.cs (Constructor): Now combines modifierkeys into
36272 the keydata (Fixes bug #69831)
36275 - (DispatchMessage): Switched to return IntPtr
36276 - Added DllImport for SetFocus
36278 2004-11-24 Ravindra <rkumar@novell.com>
36280 * ThemeWin32Classic.cs: Fixed ListView border and checkbox
36281 background drawing.
36282 * ListViewItem.cs: Fixed various properties, calculations
36283 and Clone() method. Fixed ListViewSubItemCollection.Clear() method.
36284 * ListView.cs: Fixed calculations, BackColor, ForeColor properties
36285 and some internal properties. Fixed MouseDown handler and Paint
36288 2004-11-24 John BouAntoun <jba-mono@optusnet.com.au>
36290 * MonthCalendar.cs: Add TitleMonth ContextMenu handling
36292 2004-11-24 John BouAntoun <jba-mono@optusnet.com.au>
36294 * ContainerControl.cs: correct accidental check in of local changes
36296 2004-11-24 John BouAntoun <jba-mono@optusnet.com.au>
36298 * ThemeWin32Classic.cs:
36299 - Fixed Drawing Last month in grid (sometimes not showing)
36300 * MonthCalendar.cs:
36301 - Fixed title width calculation bug (makeing title small)
36303 2004-11-23 Peter Bartok <pbartok@novell.com>
36306 - Added generation of WM_MOUSEHOVER event
36307 - Added missing assignment of async_method atom
36308 - Fixed WM_ERASEBKGND; now only redraws the exposed area
36310 2004-11-23 John BouAntoun <jba-mono@optusnet.com.au>
36312 * ThemeWin32Classic.cs:
36313 - Fixed Drawing of today circle when showtodaycircle not set
36314 - fixed drawing of first and last month in the grid (gay dates)
36315 * MonthCalendar.cs:
36316 - Fixed Drawing of today circle
36317 - Fixed drawing of grady dates
36318 - Fixed HitTest for today link when ShowToday set to false
36319 - Fixed DefaultSize to obey ShowToday
36321 2004-11-23 John BouAntoun <jba-mono@optusnet.com.au>
36323 * ThemeWin32Classic.cs: Fixed DrawMonthCalendar and private support methods
36324 * System.Windows.Forms/Theme.cs
36325 * MonthCalendar.cs: added for MonthCalendar
36326 * SelectionRange.cs: added for MonthCalendar
36327 * Day.cs: added for MonthCalendar: added for MonthCalendar
36328 * DateRangeEventArgs.cs: added for MonthCalendar
36329 * DateRangeEventHandler.cs: added for MonthCalendar
36331 2004-11-22 Ravindra <rkumar@novell.com>
36333 * ThemeWin32Classic.cs: Fixed ListViewDrawing with 'UseItemStyleForSubItems'
36336 2004-11-22 Miguel de Icaza <miguel@ximian.com>
36338 * UpDownBase.cs (InitTimer): Use prehistoric C# 1.0 notation for
36341 * NumericUpDown.cs: Added new implementation.
36342 * UpDownBase.cs: Added new implementation.
36344 * XplatUIWin32.cs (KeyboardSpeed, KeyboardDelay): added default
36347 * XplatUIX11.cs (KeyboardSpeed, KeyboardDelay): added default
36350 * XplatUIDriver.cs ((KeyboardSpeed, KeyboardDelay): added new
36353 2004-11-21 Miguel de Icaza <miguel@ximian.com>
36355 * Timer.cs (Dispose): Should call the base dispose when
36358 2004-11-19 Jordi Mas i Hernandez <jordi@ximian.com>
36360 * ScrollBar.cs: updates thumb position when max, min or increment
36363 2004-11-21 Ravindra <rkumar@novell.com>
36365 * ListView.cs: Implemented item selection, activation and
36366 column header style. Fixed properties to do a redraw, if
36367 required. Added support for MouseHover, DoubleClick, KeyDown
36368 and KeyUp event handling and some minor fixes.
36369 * ListViewItem.cs: Fixed constructor.
36370 * ThemeWin32Classic.cs: Improved drawing for ListView.
36372 2004-11-19 Jordi Mas i Hernandez <jordi@ximian.com>
36374 * ThemeWin32Classic.cs: initial listbox drawing code
36375 * DrawMode.cs: new enumerator
36376 * ListControl.cs: stubbed class
36377 * ListBox.cs: initial implementation
36378 * Theme.cs: new methods definitions
36379 * SelectionMode.cs: new enumerator
36381 2004-11-17 Peter Bartok <pbartok@novell.com>
36383 * XplatUIWin32.cs: Added double-click events to the class style
36384 * Control.cs (WndProc):
36385 - Added handling of click-count to MouseDown/ MouseUp events.
36386 - Added handling of middle and right mouse buttons
36387 - Removed old debug code
36389 2004-11-17 Jackson Harper <jackson@ximian.com>
36391 * XplatUIX11.cs: Use the new Mono.Unix namespace.
36393 2004-11-17 Ravindra <rkumar@novell.com>
36395 * ListView.cs: Added event handling for MouseMove/Up/Down.
36396 * ColumnHeader.cs: Added a read-only internal property 'Pressed'.
36397 * ThemeWin32Classic.cs: We need to clear the graphics context and
36398 draw column header in a proper state.
36401 2004-11-17 Jordi Mas i Hernandez <jordi@ximian.com>
36403 * Menu.cs: fixes signature
36405 2004-11-16 Peter Bartok <pbartok@novell.com>
36407 * XplatUIX11.cs (GetMessage): Implemented generation of
36408 double click mouse messages
36410 2004-11-12 Jordi Mas i Hernandez <jordi@ximian.com>
36412 * Form.cs, MainMenu.cs, MenuAPI.cs: tracker should be for tracking session
36415 2004-11-11 Peter Bartok <pbartok@novell.com>
36417 * HandleData.cs: Added Visible property
36418 * XplatUIX11.cs (IsVisible): Now uses Visible property from
36420 * XplatUIX11.cs: Removed old debug leftovers
36421 * XplatUIX11.cs (DefWndProc): Added WM_ERASEBKGND handler
36422 * Control.cs (WndProc): Removed old debug leftovers,
36423 streamlined handling of WM_WINDOWPOSCHANGED, removed un-
36424 needed WM_SIZE handling
36426 2004-11-11 Jackson Harper <jackson@ximian.com>
36428 * OwnerDrawPropertyBag.cs:
36429 * TreeViewImageIndexConverter.cs: Initial implementation
36431 2004-11-10 Jackson Harper <jackson@ximian.com>
36433 * ThemeWin32Classic.cs:
36434 * TabControl.cs: instead of moving tabs by the slider pos just
36435 start drawing at the tab that is offset by the slider. This way
36436 scrolling always moves by exactly one tab.
36438 2004-11-10 Jackson Harper <jackson@ximian.com>
36440 * TabControl.cs: You can only scroll left when the slider has
36441 already ben moved right.
36443 2004-11-10 Jackson Harper <jackson@ximian.com>
36445 * ThemeWin32Classic.cs: Do not draw the selected tab if its not in
36448 2004-11-10 Jackson Harper <jackson@ximian.com>
36450 * ThemeWin32Classic.cs: Don't bother drawing tabs outside of the
36453 2004-11-09 Jackson Harper <jackson@ximian.com>
36455 * TabControl.cs (CalcXPos): New helper method so we can determine
36456 the proper place to start drawing vertical tabs.
36457 * ThemeWin32Classic.cs (DrawTab): Draw right aligned tabs.
36459 2004-11-09 Jackson Harper <jackson@ximian.com>
36461 * TabControl.cs: Calculate sizing and rects for left aligned tabs.
36462 * ThemeWin32Classic.cs (GetTabControl*ScrollRect): Only handle Top
36463 and Bottom, left and right are illegal values for this and
36464 multiline is enabled when the alignment is set to left or right.
36465 (DrawTab): Each alignment block should draw the text itself now
36466 because Left requires special love. Also add rendering for Left
36469 2004-11-09 Jordi Mas i Hernandez <jordi@ximian.com>
36471 * Form.cs, MainMenu.cs, MenuAPI.cs: fixes menu navigation, fixes popups,
36472 does not destroy the windows, removes debugging messages
36474 2004-11-09 jba <jba-mono@optusnet.com.au>
36476 * ThemeWin32Classic.cs
36477 (DrawButtonBase): Fix verticle text rect clipping in windows
36478 (DrawCheckBox): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
36479 rendering and incorrect text rect clipping
36480 (DrawRadioButton): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
36481 rendering and incorrect text rect clipping
36483 2004-11-08 Jackson Harper <jackson@ximian.com>
36485 * ThemeWin32Classic.cs (DrawTabControl): Render tabs from top to
36486 bottom when they are bottom aligned so the bottoms of the tabs get
36488 * TabControl.cs (DropRow): Move rows up instead of down when the
36489 tab control is bottom aligned.
36491 2004-11-08 13:59 pbartok
36494 - Added handling for various window styles
36495 - Added handling for popup windows
36496 - Added SetTopmost handling
36498 2004-11-08 13:55 pbartok
36501 - Added argument to SetTopmost method
36502 - Fixed broken ClientToScreen function
36504 2004-11-08 13:53 pbartok
36506 * XplatUIStructs.cs:
36507 - Added missing WS_EX styles
36509 2004-11-08 13:53 pbartok
36511 * XplatUI.cs, XplatUIDriver.cs:
36512 - Added argument to SetTopmost
36514 2004-11-08 13:52 pbartok
36517 - Added XSetWindowAttributes structure
36518 - Improved XWindowAttributes structure
36519 - Added SetWindowValuemask enum
36520 - Added window creation arguments enum
36521 - Added gravity enum
36522 - Added Motif hints structure
36523 - Added various Motif flags and enums
36524 - Added PropertyMode enum for property functions
36526 2004-11-08 13:50 pbartok
36529 - Fixed arguments for updated SetTopmost method
36531 2004-11-08 13:49 pbartok
36534 - Fixed arguments for updated SetTopmost function
36535 - Fixed usage of PointToClient
36537 2004-11-08 13:44 pbartok
36540 - Added Clipping of children and siblings
36542 2004-11-08 13:41 pbartok
36545 - Removed SetMenuBarWindow call. We do this in Form.cs
36547 2004-11-08 13:40 jackson
36549 * TabControl.cs, Theme.cs, ThemeWin32Classic.cs: Render the little
36550 scrolling jimmi in the correct location with bottom aligned tabs
36552 2004-11-08 13:36 pbartok
36554 * ContainerControl.cs:
36555 - Implemented BindingContext
36556 - Implemented ParentForm
36558 2004-11-08 12:46 jackson
36560 * TabControl.cs: Put bottom rendered tabs in the right location
36562 2004-11-08 07:15 jordi
36564 * ScrollBar.cs, ThemeWin32Classic.cs: fixes vertical scrollbar and
36567 2004-11-05 17:30 jackson
36569 * TabControl.cs: When selected tabs are expanded make sure they
36570 don't go beyond the edges of the tab control
36572 2004-11-05 14:57 jackson
36574 * TabControl.cs: Reset show_slider so if the control is resized to
36575 a size where it is no longer needed it's not displayed anymore
36577 2004-11-05 13:16 jackson
36579 * TabControl.cs: Make tab pages non visible when added to the
36582 2004-11-05 12:42 jackson
36584 * TabControl.cs: Implement SizeMode.FillToRight
36586 2004-11-05 12:16 jackson
36588 * Control.cs: Do not call CreateHandle if the handle is already
36591 2004-11-05 11:46 jackson
36593 * TabControl.cs: Remove superflous call to CalcTabRows
36595 2004-11-05 09:07 jackson
36597 * XplatUIX11.cs: Update for Mono.Posix changes
36599 2004-11-05 07:00 ravindra
36601 * ListView.cs, ListViewItem.cs: Implemented some methods and fixed
36604 2004-11-04 22:47 jba
36606 * ThemeWin32Classic.cs:
36607 - Fix Button rendering for FlatStyle = Flat or Popup
36608 - Fix RadioButton and CheckBox rendering when Appearance = Button
36609 (normal and flatstyle).
36610 - Correct outer rectangle color when drawing focus rectangle
36611 - Adjust button bounds to be 1 px smaller when focused
36612 - Make button not draw sunken 3d border when pushed (windows compat)
36613 - Fix CPDrawBorder3D to not make bottom right hand corner rounded
36614 - Offset the text in RadioButton and Checkbox when being rendered as
36616 - Hover and Click behaviour for Colored FlatStyle.Flat and Popup
36618 - Fixed disabled rendering for colored flatstyle radiobuttons (both)
36619 - Fixed disabled text rendering for normally rendered radiobuttons
36621 2004-11-04 10:26 jackson
36623 * TabControl.cs: Recalculate tab rows when resizing
36625 2004-11-04 07:47 jordi
36627 * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs:
36628 collection completion, drawing issues, missing features
36630 2004-11-04 05:03 ravindra
36633 - We need to recalculate the Thumb area when
36634 LargeChange/maximum/minimum values are changed.
36635 - We set the 'pos' in UpdatePos() method to minimum, if it's less
36636 than minimum. This is required to handle the case if large_change is
36637 more than max, and use LargeChange property instead of large_change
36639 - We return max+1 when large_change is more than max, like MS does.
36641 2004-11-04 04:29 ravindra
36643 * ColumnHeader.cs, ListView.cs, ListViewItem.cs:
36644 - Changed default value signatures (prefixed all with ListView).
36645 - Fixed/implemented layout LargeIcon, SmallIcon and List views for
36647 - Fixed calculations for ListViewItem and implemented Clone()
36650 2004-11-04 04:26 ravindra
36652 * Theme.cs, ThemeWin32Classic.cs:
36653 - Changed default ListView values signatures (prefixed all with
36655 - Fixed default size values for VScrollBar and HScrollBar.
36656 - Fixed DrawListViewItem method.
36658 2004-11-04 04:05 ravindra
36660 * ColumnHeaderStyle.cs: Typo. It should be Nonclickable.
36662 2004-11-04 04:04 ravindra
36664 * ImageList.cs: Implemented the missing overload for Draw method.
36666 2004-11-03 19:29 jackson
36668 * TabControl.cs: Handle dropping rows on selection properly
36670 2004-11-03 11:59 jackson
36672 * TabControl.cs: remove debug code
36674 2004-11-03 11:52 jackson
36676 * TabControl.cs, ThemeWin32Classic.cs: Initial implementation of
36677 the scrolly widgerywoo
36679 2004-11-02 13:52 jackson
36681 * TabControl.cs: Resize the tab pages and tabs when the tab control
36684 2004-11-02 13:40 jackson
36686 * TabControl.cs, ThemeWin32Classic.cs: Move the row with the
36687 selected tab to the bottom
36689 2004-11-02 13:39 jackson
36691 * TabPage.cs: Store the tab pages row
36693 2004-11-02 12:33 jordi
36695 * MenuItem.cs: fixes handle creation
36697 2004-11-02 11:42 jackson
36699 * TabControl.cs: signature fix
36701 2004-11-02 08:56 jackson
36703 * TabControl.cs: Calculate whether the tab is on an edge properly.
36704 Remove top secret debugging code
36706 2004-11-01 19:57 jackson
36708 * TabControl.cs: Add click handling, and proper sizing
36710 2004-11-01 19:47 jackson
36712 * Theme.cs, ThemeWin32Classic.cs: New rendering and sizing code for
36715 2004-11-01 19:39 jackson
36717 * TabPage.cs: add internal property to store the bounds of a tab
36720 2004-10-30 04:23 ravindra
36722 * Theme.cs, ThemeWin32Classic.cs: Drawing ListView and some default
36725 2004-10-30 04:21 ravindra
36727 * ListView.cs, ListViewItem.cs: Added support for scrolling and
36728 fixed calculations.
36730 2004-10-30 03:06 pbartok
36733 - Removed extension of DllImported libs
36735 2004-10-29 09:55 jordi
36737 * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: Menu key
36738 navigation, itemcollection completion, menu fixes
36740 2004-10-27 22:58 pbartok
36743 - Now throws a nice error message when no X display could be opened
36745 2004-10-26 13:51 jordi
36747 * ListView.cs: removes warning
36749 2004-10-26 03:55 ravindra
36751 * ColumnHeader.cs, ListView.cs, ListViewItem.cs,
36752 ThemeWin32Classic.cs: Some formatting for my last checkins.
36754 2004-10-26 03:36 ravindra
36756 * ThemeWin32Classic.cs: Implemented DetailView drawing for ListView
36757 control and default values.
36759 2004-10-26 03:35 ravindra
36761 * Theme.cs: Added some default values for ListView control.
36763 2004-10-26 03:33 ravindra
36765 * ToolBar.cs: ToolBar should use the user specified button size, if
36766 there is any. Added a size_specified flag for the same.
36768 2004-10-26 03:33 ravindra
36770 * ColumnHeader.cs: Added some internal members and calculations for
36773 2004-10-26 03:32 ravindra
36775 * ListViewItem.cs: Calculations for ListViewItem.
36777 2004-10-26 03:31 ravindra
36779 * ListView.cs: Added some internal members and calculations for
36782 2004-10-22 13:31 jordi
36784 * MenuAPI.cs: speedup menus drawing
36786 2004-10-22 13:16 jackson
36788 * XplatUIX11.cs: Make sure to update exposed regions when adding an
36791 2004-10-22 11:49 jackson
36795 2004-10-22 11:41 jackson
36797 * Control.cs: Check to see if the window should have its background
36798 repainted by X when drawing.
36800 2004-10-22 11:31 jackson
36802 * XplatUIX11.cs: When invalidating areas only use XClearArea if
36803 clear is true, this way we do not get flicker from X repainting the
36806 2004-10-22 11:28 jackson
36808 * XEventQueue.cs: Queue properly
36810 2004-10-21 09:38 jackson
36812 * XEventQueue.cs: Fix access modifier
36814 2004-10-21 09:36 jackson
36816 * XEventQueue.cs: Don't loose messages
36818 2004-10-21 09:22 jackson
36820 * XEventQueue.cs: Don't loose messages
36822 2004-10-20 04:15 jordi
36824 * BootMode.cs: enum need it by SystemInfo
36826 2004-10-19 21:58 pbartok
36829 - Small sanity check
36831 2004-10-19 21:56 pbartok
36834 - Added private FormParentWindow class which acts as the container
36835 for our form and as the non-client area where menus are drawn
36836 - Added/Moved required tie-ins to Jordi's menus
36837 - Fixed/Implemented the FormStartPosition functionality
36839 2004-10-19 21:52 pbartok
36842 - Removed unneeded locals
36843 - Added code to all size and location properties to understand and
36844 deal with the parent container of Form
36846 2004-10-19 21:33 pbartok
36849 - Fixed to deal with new Form subclasses for menus
36851 2004-10-19 17:48 jackson
36853 * XEventQueue.cs: commit correct version of file
36855 2004-10-19 16:50 jackson
36857 * XEventQueue.cs, XplatUIX11.cs: New optimized event queue
36859 2004-10-19 16:15 jordi
36861 * MenuAPI.cs: MenuBarCalcSize returns the height
36863 2004-10-19 08:31 pbartok
36866 - Added missing call to PreProcessMessage before calling OnXXXKey
36869 2004-10-19 00:04 ravindra
36871 * ToolTip.cs: Fixed constructor.
36873 2004-10-18 09:31 jordi
36875 * MenuAPI.cs: menuitems in menubars do not have shortcuts
36877 2004-10-18 09:26 jordi
36879 * MenuItem.cs: fixes MenuItem class signature
36881 2004-10-18 08:56 jordi
36883 * MenuAPI.cs: prevents windows from showing in the taskbar
36885 2004-10-18 00:28 ravindra
36887 * ToolTip.cs: Suppressed a warning message.
36889 2004-10-18 00:27 ravindra
36891 * Control.cs: Default value of visible property must be true.
36893 2004-10-17 23:19 pbartok
36896 - Complete implementation
36898 2004-10-17 23:19 pbartok
36901 - Added EnableWindow method
36902 - Added SetModal stub
36903 - Added generation of WM_ACTIVATE message (still needs testing)
36904 - Added SetTopMost stub
36905 - Changes to deal with VirtualKeys being moved to XplatUIStructs.cs
36907 2004-10-17 23:17 pbartok
36910 - Removed VirtualKeys to XplatUIStructs
36911 - Implemented SetTopMost method
36912 - Implemented EnableWindow method
36913 - Bugfix in ScreenToClient()
36914 - Bugfixes in ClientToScreen()
36916 2004-10-17 22:51 pbartok
36918 * XplatUIStructs.cs:
36919 - Added WS_EX styles to WindowStyles enumeration
36921 2004-10-17 22:50 pbartok
36923 * XplatUI.cs, XplatUIDriver.cs:
36924 - Added method for enabling/disabling windows
36925 - Added method for setting window modality
36926 - Added method for setting topmost window
36928 2004-10-17 22:49 pbartok
36930 * ThemeWin32Classic.cs:
36931 - Added ToolTip drawing code
36933 2004-10-17 22:49 pbartok
36936 - Added ToolTip abstracts
36938 2004-10-17 22:47 pbartok
36941 - Fixed Form.ControlCollection to handle owner relations
36942 - Added Owner/OwnedForms handling
36943 - Implemented Z-Ordering for owned forms
36944 - Removed unneeded private overload of ShowDialog
36945 - Fixed ShowDialog, added the X11 incarnation of modal handling (or
36947 - Fixed Close(), had wrong default
36948 - Added firing of OnLoad event
36949 - Added some commented out debug code for Ownership handling
36951 2004-10-17 22:16 pbartok
36954 - Fixed/implemented flat list of controls
36956 2004-10-17 22:14 pbartok
36959 - Added code to simulate modal dialogs on Win32
36961 2004-10-17 16:11 jordi
36963 * ScrollBar.cs: disabled scrollbar should not honor any keyboard or
36966 2004-10-17 13:39 jordi
36968 * MenuAPI.cs: menu drawing fixes
36970 2004-10-15 09:10 ravindra
36972 * StructFormat.cs: General Enum.
36974 2004-10-15 09:09 ravindra
36976 * SizeGripStyle.cs: Enum for Form.
36978 2004-10-15 09:08 ravindra
36980 * Theme.cs, ThemeWin32Classic.cs: Added ColumnHeaderHeight property
36981 in Theme for ListView.
36983 2004-10-15 09:06 ravindra
36985 * ColumnHeader.cs: Flushing some formatting changes.
36987 2004-10-15 09:05 ravindra
36989 * ListViewItem.cs: Implemented GetBounds method and fixed coding
36992 2004-10-15 09:03 ravindra
36994 * ListView.cs: Implemented Paint method and fixed coding style.
36996 2004-10-15 07:34 jordi
36998 * MenuAPI.cs: fix for X11
37000 2004-10-15 07:32 ravindra
37002 * ButtonBase.cs, CheckBox.cs, RadioButton.cs:
37003 - Renamed Paint() method to Draw() for clarity. Also, moved
37004 DrawImage() to OnPaint().
37006 2004-10-15 07:25 ravindra
37008 * CheckBox.cs, RadioButton.cs:
37009 - Removed Redraw (), we get it from ButtonBase.
37010 - Implemented Paint (), to do class specific painting.
37012 2004-10-15 07:16 ravindra
37015 - Redraw () is not virtual now.
37016 - Added an internal virtual method Paint (), so that
37017 derived classes can do their painting on their own.
37018 - Modified OnPaint () to call Paint ().
37020 2004-10-15 06:43 jordi
37022 * ContextMenu.cs, DrawItemEventHandler.cs, Form.cs, MainMenu.cs,
37023 MenuAPI.cs, MenuItem.cs: menu work, mainmenu, subitems, etc
37025 2004-10-15 00:30 ravindra
37028 - MessageBox on windows does not have min/max buttons.
37029 This change in CreateParams fixes this on Windows. We
37030 still need to implement this windowstyle behavior in
37033 2004-10-14 05:14 ravindra
37036 - Changed Redraw () to do a Refresh () always.
37037 - Fixed the MouseMove event handling when mouse is pressed,
37038 ie drag event handling.
37039 - Replaced the usage of ToolBarButton.Pressed property to
37040 ToolBarButton.pressed internal variable.
37042 2004-10-14 05:10 ravindra
37044 * ToolBarButton.cs:
37045 - Added an internal member 'inside' to handle mouse move
37046 with mouse pressed ie mouse drag event.
37047 - Changed 'Pressed' property to return true only when
37048 'inside' and 'pressed' are both true.
37049 - Some coding style love.
37051 2004-10-14 00:17 ravindra
37053 * Form.cs: Fixed class signature. ShowDialog (Control) is not a
37056 2004-10-14 00:15 ravindra
37058 * ButtonBase.cs: Redraw () related improvements.
37060 2004-10-14 00:14 ravindra
37062 * MessageBox.cs: Moved InitFormSize () out of Paint method and
37063 removed unnecessary calls to Button.Show () method.
37065 2004-10-13 17:50 pbartok
37069 - Removed destroying of window until we solve the problem of X
37070 destroying the window before us on shutdown
37072 2004-10-13 16:32 pbartok
37075 - Now Redraws on MouseUp for FlatStyle Flat and Popup
37077 2004-10-13 14:18 pbartok
37080 - Added code to destroy the X window
37082 2004-10-13 14:18 pbartok
37085 - Added code to destroy a window
37087 2004-10-13 14:12 pbartok
37090 - Added the Redraw on Resize that got dropped in the last rev
37092 2004-10-13 09:06 pbartok
37094 * ThemeWin32Classic.cs:
37095 - Path from John BouAntoun:
37096 * Fix check rendering (centre correctly for normal style, offset
37097 correctly for FlatStyle).
37098 * Fix border color usage (use backcolor) for FlatStyle.Popup
37099 * Use checkbox.Capture instead of checkbox.is_pressed when
37100 rendering flatstyle states.
37102 2004-10-12 21:48 pbartok
37104 * ThemeWin32Classic.cs:
37105 - Removed all occurences of SystemColors and replaced them with the
37106 matching theme color
37108 2004-10-12 21:41 pbartok
37110 * ThemeWin32Classic.cs:
37111 - From John BouAntoun: Added an overload to CPDrawBorder3D to allow
37112 him using the function for flatstyle drawing
37113 - Changed functions to use the new version of CPDrawBorder3D
37115 2004-10-12 21:15 pbartok
37118 - Fixed Dark(), DarkDark(), Light() and LightLight() methods to
37119 match MS documentation. They need to return defined colors if the
37120 passed color matches the configured control color. Thanks to John
37121 BouAntoun for pointing this out.
37123 2004-10-12 20:57 pbartok
37126 - Fix from John BouAntoun: Raise ForeColorChanged event when text
37129 2004-10-12 20:46 pbartok
37132 - Fix from John BouAntoun: Now properly sets the Appearance property
37134 2004-10-12 20:45 pbartok
37136 * ThemeWin32Classic.cs:
37137 - Fixes from John BouAntoun: now handles forecolors and backcolors
37138 for flatstyle rendered controls much better; It also fixes normal
37139 checkbox rendering when pushed or disabled.
37141 2004-10-08 02:50 jordi
37143 * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: more menu
37146 2004-10-07 08:56 jordi
37148 * ThemeWin32Classic.cs: Removes deletion of cached brushes
37150 2004-10-06 03:59 jordi
37152 * Control.cs, StatusBar.cs, ThemeWin32Classic.cs, ToolBar.cs,
37153 XplatUIWin32.cs: removes warnings from compilation
37155 2004-10-05 12:23 jackson
37157 * RadioButton.cs: Fix ctor
37159 2004-10-05 11:10 pbartok
37162 - Partial implementation by Benjamin Dasnois
37164 2004-10-05 10:15 jackson
37166 * ThemeWin32Classic.cs: Improve rendering of the radio button patch
37169 2004-10-05 03:07 ravindra
37172 - Removed a private method, Draw ().
37173 - Fixed the ButtonDropDown event handling.
37174 - Fixed MouseMove event handling.
37176 2004-10-05 03:04 ravindra
37178 * ThemeWin32Classic.cs:
37179 - Added DrawListView method and ListViewDefaultSize property.
37180 - Changed ControlPaint method calls to CPDrawXXX wherever possible.
37181 - Changed DOS style CRLF to Unix format (dos2unix).
37183 2004-10-05 03:03 ravindra
37186 - Added DrawListView method and ListViewDefaultSize property.
37188 2004-10-05 02:42 ravindra
37190 * ToolBarButton.cs: Added an internal member dd_pressed to handle
37191 clicks on DropDown arrow.
37193 2004-10-04 22:56 jackson
37195 * ButtonBase.cs, Label.cs, MenuAPI.cs, ProgressBar.cs,
37196 ScrollBar.cs, StatusBar.cs, ToolBar.cs, TrackBar.cs: Let the base
37197 Control handle the buffers, derived classes should not have to
37198 CreateBuffers themselves.
37200 2004-10-04 21:20 jackson
37202 * StatusBar.cs: The control handles resizing the buffers now.
37204 2004-10-04 21:18 jackson
37206 * Control.cs: When resizing the buffers should be invalidated. This
37207 should be handled in Control not in derived classes.
37209 2004-10-04 14:45 jackson
37213 2004-10-04 02:14 pbartok
37215 * LeftRightAlignment.cs:
37218 2004-10-04 01:09 jordi
37220 * ThemeWin32Classic.cs: fixes right button position causing right
37221 button not showing on horizontal scrollbars
37223 2004-10-02 13:12 pbartok
37226 - Simplified the Invalidate method by using an X call instead of
37227 generating the expose ourselves
37228 - Added an expose when the window background is changed
37229 - Implemented ClientToScreen method
37231 2004-10-02 13:08 pbartok
37234 - Added Win32EnableWindow method (test for implementing modal
37236 - Added ClientToScreen method and imports
37238 2004-10-02 13:07 pbartok
37240 * XplatUI.cs, XplatUIDriver.cs:
37241 - Added ClientToScreen coordinate translation method
37243 2004-10-02 13:06 pbartok
37245 * KeyPressEventArgs.cs:
37246 - Fixed access level for constructor
37248 2004-10-02 13:06 pbartok
37251 - Changed access level for the window_collection hash table
37253 2004-10-02 13:05 pbartok
37256 - Added KeyPreview property
37257 - Added Menu property (still incomplete, pending Jordi's menu work)
37258 - Implemented ProcessCmdKey
37259 - Implemented ProcessDialogKey
37260 - Implemented ProcessKeyPreview
37262 2004-10-02 13:02 pbartok
37265 - Added private method to get the Control object from the window
37267 - Implemented ContextMenu property
37268 - Implemented PointToScreen
37269 - Implemented PreProcessMessage
37270 - Implemented IsInputChar
37271 - Implemented IsInputKey
37272 - Implemented ProcessCmdKey
37273 - Completed ProcessKeyEventArgs
37274 - Fixed message loop to call the proper chain of functions on key
37276 - Implemented ProcessDialogChar
37277 - Implemented ProcessDialogKey
37278 - Implemented ProcessKeyMessage
37279 - Implemented ProcessKeyPreview
37280 - Added RaiseDragEvent stub (MS internal method)
37281 - Added RaiseKeyEvent stub (MS internal method)
37282 - Added RaiseMouseEvent stub (MS Internal method)
37283 - Added RaisePaintEvent stub (MS Internal method)
37284 - Added ResetMouseEventArgs stub (MS Internal method)
37285 - Implemented RtlTranslateAlignment
37286 - Implemented RtlTranslateContent
37287 - Implemented RtlTranslateHorizontal
37288 - Implemented RtlTranslateLeftRight
37289 - Added generation of KeyPress event
37291 2004-10-02 05:57 ravindra
37293 * ListViewItem.cs: Added attributes.
37295 2004-10-02 05:32 ravindra
37297 * ListView.cs: Added attributes.
37299 2004-10-01 11:53 jackson
37301 * Form.cs: Implement the Close method so work on MessageBox can
37304 2004-09-30 14:06 pbartok
37309 2004-09-30 11:34 jackson
37311 * RadioButton.cs: Fix typo. Patch by John BouAntoun.
37313 2004-09-30 07:26 ravindra
37315 * ListViewItemConverter.cs: Converter for ListViewItem.
37317 2004-09-30 07:26 ravindra
37319 * SortOrder.cs: Enum for ListView control.
37321 2004-09-30 07:25 ravindra
37323 * ColumnHeader.cs: Supporting class for ListView control.
37325 2004-09-30 07:24 ravindra
37327 * ListView.cs, ListViewItem.cs: Initial implementation.
37329 2004-09-30 07:20 ravindra
37331 * ItemActivation.cs: Enum for ListView Control.
37333 2004-09-29 20:29 pbartok
37336 - Added lookup of pixel value for background color; tries to get a
37337 color 'close' to the requested color, it avoids having to create a
37338 colormap. Depending on the display this could mean the used color
37339 is slightly off the desired color. Might have to change it to a more
37340 resource intensive colormap approach, but it will work as a
37341 workaround to avoid red screens.
37343 2004-09-29 14:27 jackson
37345 * XplatUIX11.cs: Set the X DisplayHandle in System.Drawing
37347 2004-09-28 12:44 pbartok
37349 * ButtonBase.cs, CheckBox.cs, ControlPaint.cs, GroupBox.cs,
37350 HScrollBar.cs, Label.cs, LinkLabel.cs, Panel.cs, PictureBox.cs,
37351 ProgressBar.cs, RadioButton.cs, ScrollBar.cs, StatusBar.cs,
37352 Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs, ToolBar.cs,
37353 TrackBar.cs, VScrollBar.cs:
37354 - Streamlined Theme interfaces:
37355 * Each DrawXXX method for a control now is passed the object for
37356 the control to be drawn in order to allow accessing any state the
37357 theme might require
37359 * ControlPaint methods for the theme now have a CP prefix to avoid
37360 name clashes with the Draw methods for controls
37362 * Every control now retrieves it's DefaultSize from the current
37365 2004-09-28 12:17 jackson
37367 * Button.cs: Do not redraw OnClick MouseUp/Down will handle the
37370 2004-09-24 14:57 jackson
37372 * XplatUIX11.cs: Don't lock/enqueue/dequeue for unhandled messages.
37373 Gives us a nice little performance boost.
37375 2004-09-24 12:02 jackson
37377 * TabAlignment.cs, TabAppearance.cs, TabControl.cs, TabDrawMode.cs,
37378 TabPage.cs, TabSizeMode.cs: Partial implementation of the Tab
37379 Control and supporting classes. Initial checkin
37381 2004-09-23 13:08 jackson
37383 * Form.cs: Temp build fixage
37385 2004-09-23 01:39 ravindra
37387 * ItemChangedEventArgs.cs, ItemChangedEventHandler.cs,
37388 ItemCheckEventArgs.cs, ItemCheckEventHandler.cs,
37389 ItemDragEventArgs.cs, ItemDragEventHandler.cs,
37390 LabelEditEventArgs.cs, LabelEditEventHandler.cs: EventArgs and
37391 EventHandlers needed by ListView Control.
37393 2004-09-22 14:12 pbartok
37395 * ScrollableControl.cs:
37396 - Implemented DockPadding property
37397 - Implemented AutoScroll property
37398 - Implemented AutoScrollMargin property
37399 - Implemented AutoScrollMinSize property
37400 - Implemented AutoScrollPosition property
37401 - Implemented DisplayRectangle property (still incomplete)
37402 - Implemented CreateParams property
37403 - Implemented HScroll property
37404 - Implemented VScroll property
37405 - Implemented OnVisibleChanged property
37407 2004-09-22 14:09 pbartok
37410 - Added Form.ControllCollection class
37411 - Added handling for Form owners: Owner, OwnedForms, AddOwnedForm,
37412 RemoveOwnedForm (still incomplete, missing on-top and common
37413 minimize/maximize behaviour)
37414 - Added StartPosition property (still incomplete, does not use when
37416 - Added ShowDialog() methods (still incomplete, missing forcing the
37419 2004-09-22 14:05 pbartok
37422 - Added message loop for modal dialogs
37424 2004-09-22 14:02 pbartok
37427 - Fixed wrong types for events
37429 2004-09-22 14:00 pbartok
37431 * Shortcut.cs, FormWindowState.cs:
37432 - Fixed wrong values
37434 2004-09-22 12:01 jackson
37436 * Control.cs: Text is never null
37438 2004-09-20 22:14 pbartok
37441 - Fixed accessibility level for Idle handler
37443 2004-09-20 18:54 jackson
37445 * Application.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
37446 XplatUIX11.cs: New message loop that uses poll so we don't get a
37449 2004-09-17 10:43 pbartok
37452 - Fixed behaviour of arrow buttons. Now properly behaves like
37453 Buttons (and like Microsoft's scrollbar arrow buttons)
37455 2004-09-17 10:14 pbartok
37458 - Added missing release of keyboard/mouse capture
37460 2004-09-17 06:18 jordi
37462 * ContextMenu.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs,
37463 Theme.cs: Very early menu support
37465 2004-09-16 17:45 pbartok
37468 - Fixed sending a window to the front
37469 - Added overload for SetWindowPos to avoid casting
37471 2004-09-16 17:44 pbartok
37474 - Added SendToBack and BringToFront methods
37476 2004-09-16 07:00 ravindra
37478 * Copyright: Added Novell URL.
37480 2004-09-16 07:00 ravindra
37482 * ToolBar.cs: Invalidate should be done before redrawing.
37484 2004-09-15 21:19 ravindra
37486 * ColumnHeaderStyle.cs: Enum for ListView Control.
37488 2004-09-15 21:18 ravindra
37490 * ColumnClickEventArgs.cs, ColumnClickEventHandler.cs: Event for
37493 2004-09-13 18:26 jackson
37495 * Timer.cs, XplatUIX11.cs: Remove test code so timers are updated
37498 2004-09-13 18:13 jackson
37500 * Timer.cs, X11Structs.cs, XplatUIX11.cs: Timers are now handled in
37501 a second thread and post messages into the main threads message
37502 queue. This makes timing much more consistent. Both win2K and XP
37503 have a minimum timer value of 15 milliseconds, so we now do this
37506 2004-09-13 15:18 pbartok
37508 * X11Structs.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
37510 - Added Z-Ordering methods
37512 2004-09-13 10:56 pbartok
37515 - Fixed #region names
37516 - Moved properties and methods into their proper #regions
37518 2004-09-13 10:51 pbartok
37521 - Added Accept and CancelButton properties
37522 - Added ProcessDialogKey() method
37524 2004-09-13 08:18 pbartok
37526 * IWindowTarget.cs:
37529 2004-09-10 21:50 pbartok
37532 - Added DoDragDrop() [incomplete]
37533 - Properly implemented 'Visible' handling
37534 - Added SetVisibleCore()
37535 - Implemented FindChildAtPoint()
37536 - Implemented GetContainerControl()
37537 - Implemented Hide()
37539 2004-09-10 19:28 pbartok
37542 - Moved methods into their appropriate #regions
37543 - Reordered methods within regions alphabetically
37545 2004-09-10 18:57 pbartok
37547 * XplatUIX11.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
37548 - Added method to retrieve text from window
37550 2004-09-10 18:56 pbartok
37553 - Moved some internal functions into the internal region
37554 - Implemented FontHeight
37555 - Implemented RenderRightToLeft
37556 - Implemented ResizeRedraw
37557 - Implemented ShowFocusCues
37558 - Implemented ShowKeyboardCues
37559 - Implemented FromChildHandle
37560 - Implemented FromHandle
37561 - Implemented IsMnemonic
37562 - Implemented ReflectMessage
37563 - All public and protected Static Methods are now complete
37565 2004-09-10 16:54 pbartok
37568 - Implemented remaining missing public instance properties
37569 - Alphabetized some out of order properties
37571 2004-09-10 05:51 ravindra
37573 * PictureBox.cs: Added a check for null image.
37575 2004-09-10 00:59 jordi
37577 * GroupBox.cs: remove cvs tag
37579 2004-09-09 05:25 ravindra
37581 * ToolBar.cs: Make redraw accessible from ToolBarButton.
37583 2004-09-09 05:23 ravindra
37585 * ToolBarButton.cs: Changes in ToolBarButton need to make it's
37588 2004-09-09 02:28 pbartok
37590 * ThemeWin32Classic.cs:
37591 - Improve disabled string look
37593 2004-09-09 01:15 jordi
37595 * MeasureItemEventArgs.cs, MeasureItemEventHandler.cs: measureitem
37598 2004-09-08 23:56 ravindra
37600 * ItemBoundsPortion.cs: It's enum, not a class!
37602 2004-09-08 23:47 ravindra
37604 * FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs:
37607 2004-09-08 21:13 ravindra
37609 * ItemBoundsPortion.cs, ListViewAlignment.cs, View.cs: Enums for
37612 2004-09-08 21:03 ravindra
37614 * ThemeWin32Classic.cs: PictureBox would not draw a null image to
37617 2004-09-08 21:01 ravindra
37619 * ScrollableControl.cs: Removed unreachable code.
37621 2004-09-08 06:45 jordi
37623 * MenuMerge.cs, Shortcut.cs: enumerations need it by menus
37625 2004-09-08 01:00 jackson
37627 * XplatUIX11.cs: Only run the timers when updating the message
37628 queue. This effectively gives X messages a higher priority then
37629 timer messages. Timers still need love though
37631 2004-09-07 14:01 jackson
37633 * XplatUIX11.cs: Do not call XDestroyWindow, X has already done
37634 this for us and the handle is no longer valid.
37636 2004-09-07 13:59 jackson
37638 * HandleData.cs, XplatUIX11.cs: First steps towards a new X event
37639 loop that manages to not crash. TODO: Add poll and cleanup timers
37641 2004-09-07 11:12 jordi
37643 * GroupBox.cs, Theme.cs, ThemeWin32Classic.cs: GroupBox control
37645 2004-09-07 03:40 jordi
37647 * Label.cs, LinkLabel.cs, Theme.cs, ThemeWin32Classic.cs: LinkLabel
37648 fixes, methods, multiple links
37650 2004-09-06 06:55 jordi
37652 * Control.cs: Caches ClientRectangle rectangle value
37654 2004-09-05 02:03 jordi
37656 * ScrollBar.cs, ThemeWin32Classic.cs: fixes bugs, adds flashing on
37659 2004-09-04 11:10 jordi
37661 * Label.cs: Refresh when font changed
37663 2004-09-02 16:24 pbartok
37666 - Added sanity check to creation of double buffer bitmap
37668 2004-09-02 16:24 pbartok
37671 - Fixed selection of text color
37672 - Fixed handling of resize event; now properly recreates double
37674 - Added missing assignment of TextAlignment
37675 - Added proper default for TextAlignment
37677 2004-09-02 14:26 pbartok
37680 - Added missing RadioButton.RadioButtonAccessibleObject class
37682 2004-09-02 14:26 pbartok
37685 - Added missing Control.ControlAccessibleObject class
37686 - Started to implement Select()ion mechanisms, still very incomplete
37688 2004-09-02 14:25 pbartok
37690 * AccessibleObject.cs:
37691 - Added missing methods
37693 2004-09-02 14:23 pbartok
37695 * AccessibleNavigation.cs, AccessibleSelection.cs:
37698 2004-09-02 10:32 jordi
37700 * Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: implements resource
37701 pool for pens, brushes, and hatchbruses
37703 2004-09-01 15:30 jackson
37705 * StatusBar.cs: Fix typo
37707 2004-09-01 14:44 pbartok
37712 2004-09-01 14:39 pbartok
37714 * Button.cs, RadioButton.cs:
37715 - Functional initial check-in
37717 2004-09-01 14:01 pbartok
37720 - Added missing default
37721 - Added missing region mark
37723 2004-09-01 09:10 jordi
37725 * Label.cs: fixes method signatures, new methods, events, fixes
37728 2004-09-01 07:19 jordi
37730 * Control.cs: Init string variables with an empty object
37732 2004-09-01 04:20 jordi
37734 * Control.cs: fires OnFontChanged event
37736 2004-08-31 20:07 pbartok
37739 - Enabled display of strings
37741 2004-08-31 20:05 pbartok
37744 - Added (partial) implementation of DialogResult; rest needs to be
37745 implemented when the modal loop code is done
37747 2004-08-31 19:55 pbartok
37750 - Fixed to match the removal of the needs_redraw concept
37752 2004-08-31 19:55 pbartok
37755 - Removed the rather odd split between 'needs redraw' and redrawing
37756 - Now handles the events that require regeneration (ambient
37757 properties and size)
37759 2004-08-31 19:41 pbartok
37762 - Added firing of BackColorChanged event
37763 - Added TopLevelControl property
37764 - Fixed handling of WM_ERASEBKGRND message
37766 2004-08-31 12:49 pbartok
37772 2004-08-31 12:48 pbartok
37775 - Finished (famous last words)
37777 2004-08-31 04:35 jordi
37779 * ScrollBar.cs: adds autorepeat timer, uses a single timer, fixes
37780 scrolling bugs, adds new methods
37782 2004-08-30 14:42 pbartok
37785 - Implemented CheckBox drawing code
37787 2004-08-30 14:42 pbartok
37790 - Made Redraw() and CheckRedraw() virtual
37791 - Improved mouse up/down/move logic to properly track buttons
37793 2004-08-30 09:44 pbartok
37796 - Updated to fix broken build. Not complete yet.
37798 2004-08-30 09:28 pbartok
37803 2004-08-30 09:17 pbartok
37808 2004-08-27 16:12 ravindra
37810 * ToolBarButton.cs: Added TypeConverter attribute.
37812 2004-08-27 16:07 ravindra
37814 * ImageIndexConverter.cs: Implemented.
37816 2004-08-27 14:17 pbartok
37819 - Removed unneeded stack vars
37820 - First attempt to fix sizing issues when layout is suspended
37822 2004-08-25 15:35 jordi
37824 * ScrollBar.cs: more fixes to scrollbar
37826 2004-08-25 14:04 ravindra
37828 * Theme.cs, ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs:
37829 Added the missing divider code and grip for ToolBar Control.
37831 2004-08-25 13:20 pbartok
37834 - Control now properly passes the ambient background color to child
37837 2004-08-25 13:20 jordi
37839 * ScrollBar.cs: small bug fix regarding bar position
37841 2004-08-25 12:33 pbartok
37844 - Now only calls SetTimer or KillTimer if the enabled state has
37847 2004-08-25 12:33 pbartok
37850 - Fixed timer handling, now seems to work
37851 - Improved error message for window creation
37853 2004-08-25 12:32 pbartok
37856 - Fixed generation of MouseUp message
37858 2004-08-25 12:29 jordi
37860 * ProgressBar.cs, ThemeWin32Classic.cs: new methods, properties,
37861 and fixes for progressbar
37863 2004-08-24 18:43 ravindra
37865 * ThemeWin32Classic.cs, ToolBar.cs: Fixed wrapping related issues
37866 in ToolBar control.
37868 2004-08-24 17:15 pbartok
37872 - Added missing events
37875 2004-08-24 17:14 pbartok
37877 * StatusBar.cs, PictureBox.cs:
37878 - Now uses Control's CreateParams
37880 2004-08-24 16:36 pbartok
37883 - Fixed background color handling
37884 - Fixed sending of enter/leave events on a grab
37886 2004-08-24 16:35 pbartok
37889 - Refined definitions for CrossingEvent
37891 2004-08-24 12:37 jordi
37893 * ScrollBar.cs, Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: fixes
37894 formmating, methods signature, and adds missing events
37896 2004-08-24 12:24 jordi
37898 * Control.cs: fire OnEnabledChanged event
37900 2004-08-24 11:17 pbartok
37903 - Implemented SetTimer() and KillTimer()
37905 2004-08-24 11:16 pbartok
37908 - Now uses Remove instead of Add to kill the timer
37910 2004-08-24 10:16 jackson
37912 * PictureBox.cs, Theme.cs, ThemeWin32Classic.cs: Handle drawing
37913 picture boxes in the theme now. Draw picture box borders and obey
37916 2004-08-24 05:49 jackson
37918 * Timer.cs: Remove top secret debugging code
37920 2004-08-24 05:34 jackson
37922 * PictureBox.cs: Temp hack to make picture boxes draw their full
37925 2004-08-24 05:29 jackson
37927 * Timer.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
37928 XplatUIX11.cs: Move timers to the driver level. On X they are
37929 queued by the driver and checked on idle.
37931 2004-08-24 01:07 jackson
37933 * XplatUIX11.cs: Use a queue for async messages instead of passing
37934 them as ClientMessages since that was totally broken. Also simply
37935 check for events and return an idle message if none are found. This
37936 gives us an idle handler, and prevents deadlocking when no messages
37939 2004-08-23 18:19 ravindra
37941 * XplatUIWin32.cs: Removed the unwanted destructor.
37943 2004-08-23 17:27 pbartok
37946 - Finishing touches. Works now, just needs some optimizations.
37948 2004-08-23 16:53 jordi
37950 * ScrollBar.cs: small fix
37952 2004-08-23 16:45 pbartok
37955 - Removed debug output
37958 2004-08-23 16:43 jordi
37960 * ScrollBar.cs: [no log message]
37962 2004-08-23 16:10 pbartok
37965 - Fixed handling of WM_CLOSE message
37966 - Removed debug output
37968 2004-08-23 16:09 pbartok
37971 - Added handling of Idle event
37972 - Added handling of form closing
37973 - Fixed reporting of MessageLoop property
37974 - Removed some unneeded code, should provide a bit of a speedup
37976 2004-08-23 15:22 pbartok
37979 - Added InitLayout() method
37980 - Added code to properly perform layout when Anchor or Dock property
37982 - Changed 'interpretation' of ResumeLayout. MS seems to have a
37983 LAMESPEC, tried to do it in a way that makes sense
37985 2004-08-23 14:10 jordi
37987 * HScrollBar.cs, ScrollBar.cs, TrackBar.cs, VScrollBar.cs: fixes
37988 properties and methods
37990 2004-08-23 13:55 pbartok
37993 - Properly fixed Jordi's last fix
37994 - Now uses Cursor's Position property instead of calling XplatUI
37997 2004-08-23 13:44 jordi
37999 * PaintEventHandler.cs: Adding missing attribute
38001 2004-08-23 13:39 pbartok
38004 - Implemented Position property
38006 2004-08-23 13:39 pbartok
38008 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
38009 - Added method to move mouse cursor
38011 2004-08-23 13:39 pbartok
38014 - Fixed setting of background color
38015 - Added method to move mouse cursor
38017 2004-08-23 13:16 jordi
38019 * Control.cs: avoids null exception
38021 2004-08-22 17:46 jackson
38023 * PictureBox.cs, PictureBoxSizeMode.cs: Initial implementation of
38026 2004-08-22 17:40 jackson
38028 * XplatUIX11.cs: Add some missing locks
38030 2004-08-22 15:10 pbartok
38032 * Control.cs, Form.cs:
38033 - Removed OverlappedWindow style from Control, instead it's default
38035 - Made form windows OverlappedWindow by default
38037 2004-08-22 13:34 jackson
38039 * ScrollBar.cs: Update the position through the Value property so
38040 the OnValueChanged event is raised.
38042 2004-08-22 12:04 pbartok
38045 - Added Cursor.cs and UserControl.cs
38047 2004-08-22 12:03 pbartok
38050 - Started implementation, not usable yet
38052 2004-08-22 12:00 pbartok
38055 - Implemented UserControl (complete)
38057 2004-08-21 19:20 ravindra
38059 * ToolBar.cs: Correcting the formatting mess of VS.NET.
38061 2004-08-21 18:49 ravindra
38063 * ToolBar.cs: Probably this completes the missing attributes in
38066 2004-08-21 18:03 ravindra
38068 * ToolBar.cs, ToolBarButton.cs, ToolBarButtonClickEventArgs.cs:
38069 Fixed toolbar control signatures.
38071 2004-08-21 16:32 pbartok
38076 2004-08-21 16:30 pbartok
38081 2004-08-21 16:19 pbartok
38083 * Control.cs, Label.cs:
38086 2004-08-21 15:57 pbartok
38089 - Added loads of debug output for development
38090 - Fixed typo in method name
38092 2004-08-21 15:52 pbartok
38094 * ToolBarButtonClickEventArgs.cs:
38095 - Added missing base class
38097 2004-08-21 14:53 pbartok
38100 - Updated to match new GrabWindow signature
38102 2004-08-21 14:51 pbartok
38104 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
38105 - Added method to get default display size
38107 2004-08-21 14:23 pbartok
38109 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
38110 - Added method to query current grab state
38111 - Added argument to allow confining a grab to a window
38113 2004-08-21 14:22 pbartok
38116 - Added [Flags] attribute so that modifiers can be used in bitwise
38119 2004-08-21 14:21 pbartok
38121 * TrackBar.cs, ScrollBar.cs:
38122 - Replaced direct XplatUI calls with their Control counterpart
38124 2004-08-21 13:32 pbartok
38127 - Implemented Created property
38129 2004-08-21 13:28 pbartok
38132 - Implemented ContainsFocus
38134 2004-08-21 13:26 pbartok
38137 - Implemented CausesValidation
38139 2004-08-21 13:21 pbartok
38142 - Implemented CanFocus
38143 - Implemented CanSelect
38144 - Implemented Capture
38146 2004-08-21 12:35 pbartok
38149 - Fixed bug with Async message handling
38150 - Implemented getting the ModifierKeys
38152 2004-08-21 12:32 jackson
38154 * AsyncMethodResult.cs: Make sure we have the mutex before we
38155 release it. Fixes BeginInvoke on windows
38157 2004-08-21 11:31 pbartok
38159 * XplatUIWin32.cs, XplatUIX11.cs:
38160 - Drivers now return proper mouse state
38162 2004-08-21 10:54 jackson
38164 * Control.cs: Implement EndInvoke
38166 2004-08-21 10:48 jackson
38168 * Timer.cs: Remove unneeded finalizer
38170 2004-08-20 19:52 ravindra
38172 * ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs: Improvments
38173 in mouse event handling in the ToolBar control.
38175 2004-08-20 19:50 ravindra
38177 * ImageList.cs: Changed draw method to use the arguments passed in
38180 2004-08-20 18:58 pbartok
38182 * XplatUIStructs.cs:
38183 - Added private message for async communication
38185 2004-08-20 17:38 ravindra
38187 * Control.cs: Made RightToLeft property virtual and removed a
38190 2004-08-20 14:39 jordi
38192 * ThemeGtk.cs: use style_attach
38194 2004-08-20 14:39 pbartok
38197 - Added jackson's Async code from X11 to Win32
38199 2004-08-20 14:09 pbartok
38202 - Added all new files
38204 2004-08-20 14:09 pbartok
38207 - Added call to set window background color
38209 2004-08-20 14:03 pbartok
38211 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
38212 - Added method for setting the window background
38214 2004-08-20 14:02 pbartok
38217 - Added method for setting the background color
38218 - Added handling for erasing the window background
38220 2004-08-20 13:45 jordi
38222 * TrackBar.cs: fixes timer, new properties and methods
38224 2004-08-20 13:34 jackson
38226 * ScrollBar.cs: Use the SWF timer so callbacks are run in the
38229 2004-08-20 13:22 jackson
38231 * Timer.cs: Timer Tick events are now handed through Controls Async
38232 mechanism so the callbacks are executed in the same thread as X
38234 2004-08-20 13:19 jackson
38236 * XplatUIDriver.cs: Expose functionality to send async messages
38239 2004-08-20 13:18 jackson
38241 * Control.cs: Implement Begininvoke
38243 2004-08-20 13:14 jackson
38245 * XplatUI.cs, XplatUIWin32.cs: Expose functionality to send async
38246 messages through the driver
38248 2004-08-20 13:12 jackson
38250 * XplatUIX11.cs: Lock before all X operations. Also added Async
38251 method functionality through XSendEvent
38253 2004-08-20 13:11 jackson
38255 * X11Structs.cs: Use IntPtrs for ClientMessage extra data (TODO:
38256 This will screw up on 64 bit systems)
38258 2004-08-20 13:10 jackson
38260 * AsyncMethodData.cs, AsyncMethodResult.cs: Classes for sending
38261 Async messages through X/Win32
38263 2004-08-19 19:39 pbartok
38266 - Updated code to match new HandleData.DeviceContext type
38268 2004-08-19 19:38 pbartok
38271 - Made DeviceContext a generic object to allow usage from various
38273 - Added support for queueing Windows messages
38275 2004-08-19 19:37 pbartok
38278 - Added generation of MouseEnter, MouseLeave and MouseHover events
38279 - Added cleanup on EndPaint
38281 2004-08-19 19:17 pbartok
38284 - Added handling of WM_MOUSEHOVER
38285 - Worked around 'bug' in Win32 WM_MOUSE_ENTER/WM_MOUSE_LEAVE driver
38288 2004-08-19 18:55 jordi
38290 * ThemeGtk.cs: fixes button order
38292 2004-08-19 18:12 jordi
38294 * Theme.cs, ThemeWin32Classic.cs: fixes methods signature
38296 2004-08-19 17:09 pbartok
38299 - Added Right property
38300 - Added RightToLeft property
38302 2004-08-19 16:27 jordi
38304 * ThemeGtk.cs: experimental GTK theme support
38306 2004-08-19 16:26 jordi
38308 * ITheme.cs, Theme.cs: move themes from an interface to a class
38310 2004-08-19 16:25 jordi
38312 * Control.cs, ScrollBar.cs, ThemeEngine.cs, ThemeWin32Classic.cs:
38315 2004-08-19 16:04 pbartok
38318 - Added colormap basics
38319 - Added a way to re-initialize with a different display handle
38320 - Fixed setting of the window background color
38321 - Added various X11 imports related to colors and colormaps
38323 2004-08-19 15:51 pbartok
38326 - Removed packing hints (Paolo suggested this a while back)
38327 - fixed colormap type
38328 - Added default Atom types
38329 - Added Screen and color structs and enums
38331 2004-08-19 15:39 pbartok
38334 - Added missing Draw() method
38335 - Added missing RecreateHandle event
38337 2004-08-19 15:30 pbartok
38340 - Added handling of WM_CLOSE
38342 2004-08-18 13:16 jordi
38344 * ITheme.cs, ThemeWin32Classic.cs, XplatUIWin32.cs: Move colors to
38347 2004-08-18 09:56 jordi
38349 * ScrollBar.cs: fixes to scrollbar: steps and multiple timers
38351 2004-08-17 15:31 ravindra
38353 * SWF.csproj: Updated project.
38355 2004-08-17 15:25 pbartok
38358 - Drawing improvement; don't call UpdateBounds if we are not visible
38359 (or have been minimized)
38361 2004-08-17 15:24 pbartok
38364 - Finished IsVisible
38365 - Added Win32GetWindowPlacement
38367 2004-08-17 15:08 jackson
38369 * Panel.cs: Initial checkin of the Panel
38371 2004-08-17 14:25 pbartok
38374 - Fixed broken handling of default window sizes
38376 2004-08-17 13:29 jackson
38378 * ThemeWin32Classic.cs: Don't use KnownColor to create colours. It
38379 has a large startup time.
38381 2004-08-17 10:25 jackson
38383 * HandleData.cs: union areas properly
38385 2004-08-17 10:12 jackson
38387 * HandleData.cs: union areas properly
38389 2004-08-16 20:00 ravindra
38391 * ToolBar.cs, ToolBarButton.cs: Added attributes.
38393 2004-08-16 18:48 ravindra
38395 * ToolBar.cs: Added attributes.
38397 2004-08-16 17:17 ravindra
38399 * SWF.csproj: Updated project.
38401 2004-08-16 17:16 jackson
38403 * XplatUIX11.cs: Check for more expose events before sending a
38404 WM_PAINT so they can all be grouped together. This makes dragging a
38405 window across another window redraw in a sane way.
38407 2004-08-16 15:47 pbartok
38410 - Added handling of WM_MOUSE_ENTER & WM_MOUSE_LEAVE to
38411 support OnMouseEnter/Leave()
38412 - Added WS_CLIPSIBLINGS and WS_CLIPCHILDREN window styles to improve
38415 2004-08-16 15:46 pbartok
38417 * XplatUIStructs.cs, XplatUIX11.cs:
38418 - Added WM_MOUSE_ENTER & WM_MOUSE_LEAVE to support
38419 OnMouseEnter/Leave()
38421 2004-08-16 15:34 jackson
38423 * XplatUIX11.cs: Group multiple expose events in HandleData, make
38424 sure messages get the message field set to WM_NULL if they are not
38427 2004-08-16 15:24 jackson
38429 * HandleData.cs: HandleData is used for storing message information
38432 2004-08-15 17:23 ravindra
38434 * ColorDepth.cs: Added attribute.
38436 2004-08-15 17:23 ravindra
38438 * SWF.csproj: Updated project for ToolBar Control.
38440 2004-08-15 17:20 ravindra
38442 * ITheme.cs, ThemeWin32Classic.cs: Changes to Theme for ToolBar
38443 control and also dos2unix format.
38445 2004-08-15 17:13 ravindra
38447 * ToolBar.cs, ToolBarAppearance.cs, ToolBarButton.cs,
38448 ToolBarButtonClickEventArgs.cs,
38449 ToolBarButtonClickEventHandler.cs, ToolBarButtonStyle.cs,
38450 ToolBarTextAlign.cs: First Implementation of ToolBar control.
38452 2004-08-15 15:31 pbartok
38455 - First (mostly) working version
38457 2004-08-13 16:15 pbartok
38460 - Fixed Anchor default
38462 2004-08-13 15:43 pbartok
38465 - Changed GetCursorPos signature
38467 2004-08-13 15:42 pbartok
38469 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
38470 - Changed signature for GetCursorPos
38472 2004-08-13 15:25 pbartok
38476 - Fixed resizing/exposure handling
38478 2004-08-13 15:22 jordi
38480 * ThemeWin32Classic.cs: removes redundant code and fixes issues
38483 2004-08-13 14:55 jordi
38485 * TrackBar.cs: change from wndproc to events
38487 2004-08-13 13:00 jordi
38489 * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
38490 XplatUIX11.cs: implements PointToClient (ScreenToClient)
38492 2004-08-13 12:53 pbartok
38495 - Changed GetWindowPos to also provide client area size
38496 - Fixed broken prototypes for several win32 functions
38498 2004-08-13 12:53 pbartok
38500 * XplatUI.cs, XplatUIDriver.cs:
38501 - Changed GetWindowPos to also provide client area size
38503 2004-08-13 12:52 pbartok
38506 - Added generation of WM_POSCHANGED
38507 - Changed GetWindowPos to also provide client area size
38509 2004-08-13 12:52 pbartok
38512 - Added Dispose() and destructor
38513 - Fixed resizing and bounds calculation
38515 - Added memory savings for invisible windows
38517 2004-08-13 12:46 jordi
38519 * TrackBar.cs: adds timer and grap window
38521 2004-08-13 10:25 jackson
38523 * Timer.cs: SWF Timer
38525 2004-08-12 16:59 pbartok
38527 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
38528 - Implemented method to get current mouse position
38530 2004-08-12 14:29 jordi
38532 * ITheme.cs, ThemeWin32Classic.cs, TrackBar.cs: Trackbar
38533 enhancement, fix mouse problems, highli thumb, etc
38535 2004-08-12 13:31 pbartok
38538 - Fixed Anchoring bugs
38540 2004-08-12 13:01 jackson
38542 * StatusBar.cs: Don't forget things
38544 2004-08-12 12:54 jackson
38546 * ThemeWin32Classic.cs: Handle owner draw status bars
38548 2004-08-12 12:54 jackson
38550 * StatusBar.cs: Implement missing properties, events, and methods.
38551 Handle mouse clicking
38553 2004-08-12 10:19 jackson
38555 * StatusBarPanelClickEventArgs.cs,
38556 StatusBarPanelClickEventHandler.cs: Classes for handling status
38557 bar panel click events
38559 2004-08-12 10:10 jackson
38561 * Control.cs: Add missing properties
38563 2004-08-12 09:46 pbartok
38565 * BindingsManagerBase.cs:
38566 - Name changed to BindingManagerBase.cs
38568 2004-08-12 09:25 jordi
38570 * ScrollableControl.cs: calls ctrlbase instead of exeception
38572 2004-08-11 16:28 pbartok
38574 * InputLanguageChangingEventArgs.cs:
38575 - Never check in before compiling. Fixes the last check-in
38577 2004-08-11 16:26 pbartok
38579 * InputLanguageChangingEventArgs.cs:
38580 - More signature fixes
38582 2004-08-11 16:20 pbartok
38584 * BindingManagerBase.cs, BindingMemberInfo.cs, ContainerControl.cs,
38585 Control.cs, ControlEventArgs.cs, ControlPaint.cs, Form.cs,
38586 ImageListStreamer.cs, InputLanguage.cs,
38587 InputLanguageChangedEventArgs.cs,
38588 InputLanguageChangingEventArgs.cs, Keys.cs, LayoutEventArgs.cs,
38589 LinkArea.cs, Message.cs, MouseEventArgs.cs, NativeWindow.cs,
38590 ScrollEventArgs.cs, ScrollableControl.cs, XplatUI.cs,
38591 XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
38594 2004-08-11 16:16 pbartok
38598 - Added .Net 1.1 method
38600 2004-08-11 15:25 pbartok
38603 - Fixed BindingManagerBase.cs filename
38605 2004-08-11 15:22 pbartok
38607 * BindingManagerBase.cs:
38608 - Was checked in with wrong filename
38610 2004-08-11 14:50 pbartok
38615 2004-08-11 13:41 jordi
38617 * XplatUIWin32.cs: Fixes ClientRect
38619 2004-08-11 13:19 pbartok
38621 * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
38623 - We had SetWindowPos and MoveWindow to set window positions and
38624 size, removed MoveWindow. We have GetWindowPos, so it made sense to
38625 keep SetWindowPos as matching counterpart
38626 - Added some X11 sanity checking
38628 2004-08-11 12:59 pbartok
38631 - Major cleanup of my SetBounds/SetBoundsCore/UpdateBounds mess
38632 (It seems that SetBounds is just a front for SetBoundsCore and
38633 SetBoundsCore updates the underlying window system and
38634 UpdateBounds is responsible for updating the variables associated
38635 with the Control and sending the events)
38636 - Major cleanup of Size handling; we now have two sizes, client_size
38637 and bounds. Bounds defines the window with decorations, client_size
38640 2004-08-11 12:55 pbartok
38642 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
38643 - Added method to calculate difference between decorated window and
38646 2004-08-11 12:54 pbartok
38649 - Forcing redraw on resize
38651 2004-08-11 11:43 pbartok
38654 - Removed disposing of the actual images when the list is disposed
38656 2004-08-11 09:13 pbartok
38659 - Now properly reparents windows
38661 2004-08-11 08:37 pbartok
38666 2004-08-11 07:47 pbartok
38669 - Rewrote the collection stuff. Might not be as fast now, not
38670 keeping the number of children around and accessible directly, but
38671 it's more straightforward
38673 2004-08-11 07:44 pbartok
38675 * AccessibleObject.cs:
38676 - Fixed to match ControlCollection rewrite
38678 2004-08-11 07:43 pbartok
38681 - Added missing creation of the collection list
38683 2004-08-10 20:08 jackson
38685 * StatusBar.cs: Get the paint message from WndProc
38687 2004-08-10 19:31 jackson
38689 * ThemeWin32Classic.cs: Create Brushes as little as possible
38691 2004-08-10 19:20 jackson
38693 * UICues.cs: Add Flags attribute
38695 2004-08-10 19:19 jackson
38697 * StatusBarPanel.cs: Signature cleanup
38699 2004-08-10 19:10 jackson
38701 * StatusBarDrawItemEventArgs.cs, StatusBarDrawItemEventHandler.cs:
38702 Initial implementation of status bar item drawing
38704 2004-08-10 17:27 jordi
38706 * TrackBar.cs: add missing methods, properties, and restructure to
38709 2004-08-10 16:24 jackson
38711 * AccessibleStates.cs, Border3DSide.cs, Border3DStyle.cs,
38712 ButtonState.cs, ControlStyles.cs, DragDropEffects.cs: Add flags
38715 2004-08-10 13:21 jordi
38717 * ITheme.cs, ScrollBar.cs, ThemeWin32Classic.cs: scrollbar
38718 enhancements and standarize on win colors defaults
38720 2004-08-10 12:52 jackson
38722 * DrawItemEventArgs.cs, DrawItemState.cs, ITheme.cs,
38723 ThemeWin32Classic.cs: Implement DrawItem functionality
38725 2004-08-10 12:47 jordi
38727 * XplatUIWin32.cs: Calls InvalidateRect before UpdateWindow
38729 2004-08-10 12:32 jordi
38731 * Control.cs: throw ontextchange event
38733 2004-08-10 11:43 pbartok
38736 - Added more to the still unfinished Dock/Anchor layout code
38738 2004-08-10 11:39 pbartok
38740 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
38741 - Added GetWindowPos method
38743 2004-08-10 11:36 pbartok
38746 - Implemented several methods
38748 2004-08-10 09:47 jackson
38750 * TrackBar.cs: Allow control to handle buffering
38752 2004-08-10 09:41 jackson
38754 * ProgressBar.cs, ScrollBar.cs: Allow control to handle buffering
38756 2004-08-10 09:24 jackson
38758 * Label.cs, LinkLabel.cs: Let Control handle buffering.
38760 2004-08-10 09:09 jackson
38762 * StatusBar.cs: Let Control handle all the buffering.
38764 2004-08-10 09:08 jackson
38766 * Control.cs: Control will now handle the buffering code, so each
38767 control does not have to implement this.
38769 2004-08-10 08:34 jackson
38771 * XplatUIDriver.cs: Use default colors from the theme
38773 2004-08-09 17:12 pbartok
38776 - Fixed several bugs Ravindra pointed out
38778 2004-08-09 16:11 pbartok
38781 - Added incomplete dock layout code
38782 - Added support for mouse wheel
38784 2004-08-09 16:09 pbartok
38787 - Added handling for middle and right mousebutton
38788 - Added handling for mouse wheel
38789 - Added handling for key state and mouse state and position
38790 - Now properly generates WM_xBUTTONx messages and WM_MOUSEWHEEL
38793 2004-08-09 15:40 jackson
38795 * StatusBarPanel.cs, StatusBarPanelAutoSize.cs,
38796 StatusBarPanelBorderStyle.cs, StatusBarPanelStyle.cs: Initial
38799 2004-08-09 15:37 jackson
38801 * StatusBar.cs: Initial implementation of StatusBar
38803 2004-08-09 15:36 jackson
38805 * ITheme.cs: Add support for drawing status bar and getting status
38808 2004-08-09 15:35 pbartok
38813 2004-08-09 15:34 jackson
38815 * ThemeWin32Classic.cs: Add support for drawing status bar and get
38816 status bar item sizes
38818 2004-08-09 15:21 jackson
38820 * ThemeWin32Classic.cs: Use known colors for default control
38823 2004-08-09 15:12 jackson
38825 * ThemeWin32Classic.cs: Make the default font static, it is static
38826 in control so this doesn't change functionality and creating fonts
38829 2004-08-09 14:56 pbartok
38832 - Added GrabMode enum
38834 2004-08-09 14:55 pbartok
38836 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
38837 - Removed Run method, was only required for initial development
38839 2004-08-09 14:51 pbartok
38841 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
38842 - Implemented GrabWindow/ReleaseWindow methods to allow pointer
38845 2004-08-09 13:48 pbartok
38848 - Fixed default sizing for child windows
38850 2004-08-09 12:56 pbartok
38853 - Added generation of WM_DESTROY message
38854 - Added handling of window manager induced shutdown
38856 2004-08-09 11:31 jackson
38858 * ThemeWin32Classic.cs: New names for control properties
38860 2004-08-09 11:25 jackson
38862 * Control.cs: Use new color names
38864 2004-08-09 11:02 jackson
38866 * XplatUI.cs: Get default window properties from the theme
38868 2004-08-09 11:01 jackson
38870 * ITheme.cs: The theme engine now controls default window
38873 2004-08-09 11:00 jackson
38875 * ThemeWin32Classic.cs: Add default window color properties
38877 2004-08-09 10:17 jackson
38879 * ThemeWin32Classic.cs: Use correct default back color
38881 2004-08-09 10:05 jackson
38883 * XplatUIWin32.cs, XplatUIX11.cs: These properties are handled by
38886 2004-08-09 09:56 jackson
38888 * XplatUI.cs: Remove defaults, these are handled by the theme now.
38890 2004-08-09 09:54 jackson
38892 * Control.cs: Get default properties from the theme.
38894 2004-08-09 09:53 jackson
38896 * ITheme.cs: Themes now handle default control properties
38898 2004-08-09 09:53 jackson
38900 * ThemeWin32Classic.cs: Themes now handle default control
38901 properties so coloring will be consistent
38903 2004-08-08 16:54 jordi
38905 * ITheme.cs, ThemeWin32Classic.cs: Label BorderStyles
38907 2004-08-08 15:08 jordi
38909 * XplatUIX11.cs: fixes keyboard crash
38911 2004-08-08 13:47 jordi
38913 * Label.cs: add cvs header info
38915 2004-08-08 12:09 jackson
38917 * ThemeWin32Classic.cs: Add pen_buttonface
38919 2004-08-08 11:52 jordi
38921 * Label.cs, LinkLabel.cs: [no log message]
38923 2004-08-08 11:34 jordi
38925 * ThemeWin32Classic.cs: Use Windows Standard Colours
38927 2004-08-07 17:32 jordi
38929 * TrackBar.cs: throw exceptions of invalid enums values
38931 2004-08-07 17:31 jordi
38933 * Label.cs, LinkLabel.cs, ThemeWin32Classic.cs: fixes label bug and
38936 2004-08-07 16:56 jackson
38938 * HorizontalAlignment.cs: Initial checkin
38940 2004-08-07 13:16 jordi
38942 * Label.cs, LinkLabel.cs: throw exceptions, fixes events, missing
38945 2004-08-07 13:05 jordi
38947 * ITheme.cs, ThemeWin32Classic.cs: Theme colour support and
38948 GetSysColor defines
38950 2004-08-06 18:01 pbartok
38952 * ThemeWin32Classic.cs:
38953 - Fixed some rounding issues with float/int
38955 2004-08-06 18:00 jackson
38957 * DockStyle.cs, AnchorStyles.cs:
38959 Add flags and serializable attributes.
38961 2004-08-06 17:46 pbartok
38964 - Implemented GetParent
38966 2004-08-06 17:18 pbartok
38969 - Fixed some rounding issues with float/int
38971 2004-08-06 17:17 pbartok
38973 * X11Structs.cs, XplatUIX11.cs:
38974 - Fixed Refresh and Invalidate
38976 2004-08-06 15:30 pbartok
38978 * Control.cs, X11Structs.cs, XplatUIX11.cs:
38979 - Fixed recursive loop when resizing
38980 - Improved/fixed redrawing on expose messages
38982 2004-08-06 09:53 jordi
38984 * Control.cs, X11Structs.cs, XplatUIWin32.cs, XplatUIX11.cs: X11
38985 keyboard navigation
38987 2004-08-06 08:02 pbartok
38989 * X11Structs.cs, XplatUIX11.cs:
38990 - Fixed reparenting
38991 - Fixed window border creation
38993 2004-08-05 15:38 pbartok
38996 - Attempted fix for reparenting problems
38998 2004-08-04 15:14 pbartok
39001 - Fixed Invalidation bug (calculated wrong client area)
39002 - Added ClientSize setter
39004 2004-08-04 15:13 pbartok
39007 - Added AutoScale properties
39009 2004-08-04 15:13 pbartok
39012 - Added latest files
39014 2004-08-04 14:11 pbartok
39016 * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
39018 - Added Invalidate handling
39020 2004-08-03 17:09 jordi
39022 * XplatUIDriver.cs: fixes spelling mistake
39024 2004-07-27 09:53 jordi
39026 * TrackBar.cs: fixes trackbar events, def classname, methods
39029 2004-07-27 09:29 jordi
39031 * ScrollBar.cs: fixes scrollbar events
39033 2004-07-27 04:38 jordi
39035 * Control.cs: changes to be able to run winforms samples
39037 2004-07-26 11:42 jordi
39039 * ControlPaint.cs, ITheme.cs, ProgressBar.cs, ScrollBar.cs,
39040 ThemeEngine.cs, ThemeWin32Classic.cs, TrackBar.cs: Theme support
39042 2004-07-26 05:41 jordi
39044 * MessageBox.cs, MessageBoxButtons.cs, MessageBoxDefaultButton.cs,
39045 MessageBoxIcon.cs, MessageBoxOptions.cs: initial messagebox
39048 2004-07-22 09:22 jordi
39050 * LinkLabel.cs, LinkLabelLinkClickedEventHandler.cs: link label:
39051 check link overlapping, implement events, and fixes
39053 2004-07-21 10:28 jordi
39055 * DialogResult.cs, IButtonControl.cs: fixes comments filenames
39057 2004-07-21 10:19 jordi
39059 * DialogResult.cs, IButtonControl.cs, Label.cs, LinkArea.cs,
39060 LinkBehavior.cs, LinkClickedEventArgs.cs, LinkLabel.cs,
39061 LinkLabelLinkClickedEventArgs.cs,
39062 LinkLabelLinkClickedEventHandler.cs, LinkState.cs,
39063 XplatUIWin32.cs, LinkClickedEventHandler.cs: LinkLabel control
39066 2004-07-19 13:09 jordi
39068 * Control.cs, Label.cs: label control re-written: added missing
39069 functionlity, events, and properties
39071 2004-07-19 10:49 jordi
39073 * Control.cs: fixes SetBounds logic
39075 2004-07-19 01:29 jordi
39077 * Control.cs: Call RefreshWindow only if the window has created
39079 2004-07-15 14:05 pbartok
39081 * ColorDepth.cs, ImageList.cs, ImageListStreamer.cs, SWF.csproj:
39082 - Implemented ImageList and ImageList.ImageCollection classes
39083 - Added ColorDepth enumeration
39084 - Updated SWF VS.Net project
39086 2004-07-15 11:06 jordi
39088 * XplatUIStructs.cs: added MsgButons enum
39090 2004-07-15 11:03 jordi
39092 * Control.cs: added basic mouse handeling events
39094 2004-07-15 03:38 jordi
39096 * Orientation.cs, TickStyle.cs, TrackBar.cs: Horizontal and
39097 Vertical TrackBar control implementation
39099 2004-07-13 09:33 jordi
39101 * HScrollBar.cs, VScrollBar.cs: vertical and hort. classes commit
39103 2004-07-13 09:31 jordi
39105 * Control.cs, Form.cs: commit: new properties and fixes form size
39108 2004-07-09 14:13 miguel
39110 * ProgressBar.cs: Spelling
39112 2004-07-09 11:25 pbartok
39115 - Removed usage of Rectangle for drawing. Miguel pointed out it's
39118 2004-07-09 11:17 miguel
39120 * ProgressBar.cs: 2004-07-09 Miguel de Icaza <miguel@ximian.com>
39122 * ProgressBar.cs: Fixed spelling for `block'
39124 drawProgressBar: renamed to `DrawProgressBar' to follow the coding
39127 Avoid using the += on rect.X, that exposed a bug in the compiler.
39129 2004-07-08 23:21 pbartok
39131 * AccessibleObject.cs, AccessibleRole.cs, AccessibleStates.cs,
39132 AnchorStyles.cs, Application.cs, ApplicationContext.cs,
39133 BaseCollection.cs, Binding.cs, BindingContext.cs,
39134 BindingMemberInfo.cs, BindingsCollection.cs,
39135 BindingsManagerBase.cs, Border3DSide.cs, Border3DStyle.cs,
39136 BorderStyle.cs, BoundsSpecified.cs, ButtonBorderStyle.cs,
39137 ButtonState.cs, CaptionButton.cs, CheckBox.cs,
39138 ContainerControl.cs, Control.cs, ControlEventArgs.cs,
39139 ControlEventHandler.cs, ControlPaint.cs, ControlStyles.cs,
39140 ConvertEventArgs.cs, ConvertEventHandler.cs, Copyright,
39141 CreateParams.cs, DockStyle.cs, DragAction.cs, DragDropEffects.cs,
39142 DragEventArgs.cs, DragEventHandler.cs, FlatStyle.cs, Form.cs,
39143 FrameStyle.cs, GiveFeedbackEventArgs.cs,
39144 GiveFeedbackEventHandler.cs, HelpEventArgs.cs,
39145 HelpEventHandler.cs, IContainerControl.cs, IDataObject.cs,
39146 IMessageFilter.cs, IWin32Window.cs, ImeMode.cs, InputLanguage.cs,
39147 InputLanguageChangedEventArgs.cs,
39148 InputLanguageChangedEventHandler.cs,
39149 InputLanguageChangingEventArgs.cs,
39150 InputLanguageChangingEventHandler.cs, InputLanguageCollection.cs,
39151 InvalidateEventArgs.cs, InvalidateEventHandler.cs,
39152 KeyEventArgs.cs, KeyEventHandler.cs, KeyPressEventArgs.cs,
39153 KeyPressEventHandler.cs, Keys.cs, Label.cs, LayoutEventArgs.cs,
39154 LayoutEventHandler.cs, MenuGlyph.cs, Message.cs, MouseButtons.cs,
39155 MouseEventArgs.cs, MouseEventHandler.cs, NativeWindow.cs,
39156 PaintEventArgs.cs, PaintEventHandler.cs, ProgressBar.cs,
39157 QueryAccessibilityHelpEventArgs.cs,
39158 QueryAccessibilityHelpEventHandler.cs,
39159 QueryContinueDragEventArgs.cs, QueryContinueDragEventHandler.cs,
39160 RightToLeft.cs, SWF.csproj, SWF.csproj.user, ScrollBar.cs,
39161 ScrollBars.cs, ScrollButton.cs, ScrollEventArgs.cs,
39162 ScrollEventHandler.cs, ScrollEventType.cs, ScrollableControl.cs,
39163 TODO, TODOAttribute.cs, UICues.cs, UICuesEventArgs.cs,
39164 UICuesEventHandler.cs, X11Structs.cs, XplatUI.cs,
39165 XplatUIDriver.cs, XplatUIStructs.cs, XplatUIWin32.cs,
39166 XplatUIX11.cs, lang.cs: