1 2009-02-19 Ivan N. Zlatev <contact@i-nz.net>
3 * DataGridViewCell.cs: Use strict equality comparison in order to
4 prevent superfluous CellValueChanged events.
6 2009-02-19 Ivan N. Zlatev <contact@i-nz.net>
8 * DataGridView.cs: Do not reset the columns when the data list changes,
9 but only the rows. Fixes multiple bugs related to sorting, custom
10 column styles being reset and more.
12 2009-02-19 Jonathan Pobst <monkey@jpobst.com>
14 * ThemeWin32Classic.cs: Respect a PictureBox's Padding when
17 2009-02-18 Andrés G. Aragoneses <aaragoneses@novell.com>
19 * ToolBarButton.cs: Oops, use the correct event (fix r127298).
21 2009-02-17 Andrés G. Aragoneses <aaragoneses@novell.com>
23 * ToolBarButton.cs: Event for Enabled property (needed to fix
26 2009-02-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
28 * TextBox.cs: When handling WndProc with autocomplete activated,
29 event if the new text is not causing any change in the look up
30 algorithm, save it as we normally do when numbers and letters.
33 2009-02-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
35 * TreeNode.cs: When Text/StateImageIndex/StateImageKey/NodeFont change
36 Invalidate the proper bounds in the TreeView, not only resetting the
40 2009-02-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
42 * TreeNode.cs: Don't return TreeView.BackColor when retrieving our own
43 BackColor property. This is what .net does in both 1.1 and 2.0.
44 * TreeView.cs: When selected_node is not the same as highlighted_node,
45 we need to handle the back color in a different way, trying to use the
46 node's BackColor if it's not Color.Empty.
49 2009-02-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
51 * TreeView.cs: When canceling selection in our MouseUp handler,
52 invalidate also the previous selected node bounds.
55 2009-02-07 Ivan N. Zlatev <contact@i-nz.net>
57 * DataGridView.cs: End or if end fails then cancel the current edit
58 operation before clearing the data source.
60 2009-02-07 Ivan N. Zlatev <contact@i-nz.net>
62 * DataGridView.cs: Data-bind only after the handle is created.
65 2009-02-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
67 * TreeView.cs: When handling the MouseMove event, check if
68 focused_node and selected_node fields are null - usually they are non
69 null, since we have always a selected node, but canceling selection by
70 handling BeforeSelect event leaves the two of them as null.
73 2009-02-06 Neville Gao <nevillegao@gmail.com>
75 * TabControl.cs: Control enabled to support accessibility.
78 2009-02-05 Ivan N. Zlatev <contact@i-nz.net>
80 * DataGridViewRowCollection.cs, DataGridView.cs: Fix row insertation:
81 - Use ArrayList.Insert instead of the Item property so that the item
82 is actually inserted and not an existing item replaced.
83 - Call DataGridView.OnRowsAddedInternal and drop internal from
84 OnRowsAdded for binary compitability. This also fixes several
88 2009-02-05 Andrés G. Aragoneses <aaragoneses@novell.com>
90 * ToolBarButton.cs: Doh, fire OnUIATextChanged *after* setting
93 2009-02-04 Andrés G. Aragoneses <aaragoneses@novell.com>
95 * ToolBarButton.cs: Add another event (OnUIATextChanged).
97 2009-02-04 Andrés G. Aragoneses <aaragoneses@novell.com>
99 * ToolBarButton: Fix typo in previous commit (r125704).
101 2009-02-04 Andrés G. Aragoneses <aaragoneses@novell.com>
103 * ToolBar.cs, ToolBarButton.cs: Add new UIA events to know
104 when a button gets focus, firing the events from the ToolBar.
107 2009-02-04 Mario Carrion <mcarrion@novell.com>
109 * ColumnHeader.cs: Raising ListView.ColumnWidthChanged when setting
111 * ListView.cs: Internal method added: RaiseColumnWidthChanged, used by
112 ColumnHeader to raise ColumnWidthChanged.
115 2009-02-03 Ivan N. Zlatev <contact@i-nz.net>
117 * DataGridViewRowCollection.cs, DataGridView.cs: Move row completion
118 code in the row collection code, so that the completion happens before
119 the CollectionChanged event, also better encapsulation.
122 2009-02-02 Ivan N. Zlatev <contact@i-nz.net>
124 * DataGridView.cs: When editing is finished do not remove the editing
125 row, because it has already become a real one. Instead add a new one.
128 2009-02-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
130 * TreeView.cs: When drawing the node's image, check that the index
131 specified by the node is valid for the ImageList.
134 2009-02-02 Andrés G. Aragoneses <aaragoneses@novell.com>
136 * ToolBar.cs: Add new UIAPerformClick method to be called by
137 UIAutomationWinforms when someone calls Invoke() on the
138 ToolBarButtonProvider. r: jpobst
140 2009-02-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
142 * XplatUIX11.cs: Don't send a WM_SHOWWINDOW message when receiving
143 MapNotify/UnmapNotify events - we are already firing those events in
144 the proper places, so we avoid this way to send the same message two
145 times. I'm leaving the handling code in case we could break something
146 in the future, as this change seems dangerous (but needed).
149 2009-02-01 Ivan N. Zlatev <contact@i-nz.net>
151 * DataGridView.cs: Complete incomplete rows when they are added to
155 2009-02-01 Ivan N. Zlatev <contact@i-nz.net>
157 * DataGridView.cs, DataGridViewColumnCollection.cs: Ensure that the
158 binding is cleared prior to setting it to null. Fixes a regression
159 causing exceptions when the DataSource is set to null and then set
160 again to a data source.
162 2009-02-01 Ivan N. Zlatev <contact@i-nz.net>
164 * DataGridView.cs, DataGridViewImageColumn.cs, DataGridViewCell.cs:
165 - Make Image/Bitmap cells work.
166 - Handle images with size greater than the cell.
167 - Default to MiddleCenter alignment for image cells.
170 2009-01-30 Ivan N. Zlatev <contact@i-nz.net>
172 * UpDownBase.cs: Force Height to PreferredHeight.
174 2009-01-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
176 * XplatUIX11.cs: We should use utf8 handling clipboard transference
177 with other x11 applications, and use utf16 when handling clipboard
178 data in the class library. Update the related points as well.
181 2009-01-28 Ivan N. Zlatev <contact@i-nz.net>
183 * DataGridViewCell.cs: Format strings according to the supplied
187 2009-01-28 Ivan N. Zlatev <contact@i-nz.net>
189 * DataGridView.cs: Reset the hover cell if it gets moved due to row(s)
190 addition or removal. Fixes multiple crashes in OnMouseMove.
192 2009-01-27 Ivan N. Zlatev <contact@i-nz.net>
194 * DataGridView.cs: Fix a NRE when setting the CurrentCell to null.
196 2009-01-27 Ivan N. Zlatev <contact@i-nz.net>
198 * XplatUIX11.cs: Fire Timer.Tick even if there is no MainForm for the
202 2009-01-26 Andreia Gaita <avidigal@novell.com>
204 * WebBrowser.cs: fix initial value of ScrollbarsEnabled, so they
205 won't be disabled by default.
208 2009-01-26 Ivan N. Zlatev <contact@i-nz.net>
210 * DataGridView.cs: Do not clear the rows if we are not databound.
212 2009-01-26 Ivan N. Zlatev <contact@i-nz.net>
214 * DataGridView.cs: Do not be too smart about selecting the first cell
215 when the first row is added as this is not what MS does. Fixes the
218 2009-01-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
220 * TreeNode.cs: NextVisibleNode and PrevVisibleNode properties don't
221 take into account the fact that OpenTreeNodeEnumerator needs to call
222 MoveNext/MovePrevious to actually put the passed node as the one
223 retrieved in Current. This way this property should work as really
225 Fixes part of #467225.
227 2000-01-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
229 * TreeView.cs: When calculating the scrollbars, don't use
230 TreeNode.Bounds, since it still can have the values of the previous
231 -and now invalid- layout -which depends on TreeView.skipped_nodes, and
232 could not have been updated as well-, and use the actual number of
233 visible number of nodes to compute the height needed to contain all
234 the nodes. Also reset the value of vbar to 0 when disabled - this way
235 we make sure that, when re-enabled, it will update the visible area of
236 the treeview, even if the previous value before disabling it is the
237 same as now. Finally don't do anything for the vbar.ValueChanged
238 handler - for the case wheer we manually set the value but don't the
239 vbar is disabled already.
240 Fixes part of #467225.
242 2009-01-23 Jonathan Pobst <monkey@jpobst.com>
244 * ToolStrip.cs: Switch from foreach to for, in case the collection
245 somehow changes while enumerating it.
247 2009-01-23 Ivan N. Zlatev <contact@i-nz.net>
249 * DataGridView.cs, DataGridViewCell.cs: Fix crashes when there is no
252 2009-01-23 Ivan N. Zlatev <contact@i-nz.net>
254 * DataGridView.cs: Fix new row adding/editing in the non-databound
257 2009-01-21 Mike Gorse <mgorse@novell.com>
259 * TrackBar.cs: Make LargeIncrement/Decrement internal so that UIA can
261 Added UIAValueParamChangedEvent.
263 2009-01-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
265 * TreeView.cs: In CollapseAll, set vbar to the maximum value, instead
266 of trying to set as top node the highest parent of the previous top
267 node. Moving to the bottom of the TreeView after a call to CollapseAll
268 is exactly what .net does. This should avoid some nasty issue when
269 CollapseAll is called and we don't need the vertical scroll bar.
271 2009-01-21 Mario Carrion <mcarrion@novell.com>
273 * Form.cs: UIA Support: Internal events added: UIAWindowStateChanged
274 and UIATopMostChanged.
276 2009-01-21 Sandy Armstrong <sanfordarmstrong@gmail.com>
278 * MenuItem.cs: Add UIACheckChanged, UIARadioCheckChanged,
279 UIAEnabledChanged, and UIATextChanged events.
281 * Form.cs: Add UIAMenuChanged event.
284 * MenuAPI.cs: Note which internal APIs are being used by UIA.
286 2009-01-21 Neville Gao <nevillegao@gmail.com>
288 * ToolBar.cs: Control enabled to support accessibility.
291 2009-01-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
293 * TreeView.cs: When handling mouse up event, check whether
294 highlighted_node is null or not - usually it should be non-null
295 alwaays, since the mouse down handler sets it, but some externa
296 operations, such TreeNodeCollection.Clear, could set it to null.
299 2009-01-19 Ivan N. Zlatev <contact@i-nz.net>
301 * ThemeWin32Classic.cs: Draw the menu item shortcut even if the menu
304 2009-01-19 Ivan N. Zlatev <contact@i-nz.net>
306 * MenuAPI.cs: Do not handle shortcuts if the menu item is disabled.
309 2009-01-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
311 * MonthCalendar.cs: When handling the selection changes using the
312 mouse, don't set SelectionRange if the selection range didn't actually
313 change. This matters because, even if we set the range to the same
314 previous range, an extra DateChanged event is fired. Just to be clear:
315 SelectionRage property doesn't check whether the new value is
316 different to the previous one (by ref equals doesn't work here).
317 Fixes other bits of #364914.
319 2009-01-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
321 * MonthCalendar.cs: Remove the extra OnDateChanged call when handling
322 selection using the keyboard, since we are already firing this event
323 when setting SelectionRange. Also don't set SelectionRange if the
324 previous and the new value are the same (the property, just as .net
325 does, doesn't check whether the previous value and the new one are the
326 same). This saves us from firing OnDateChanged event if the selection
327 range didn't change actually.
328 Fixes the remaining bits of #364914.
330 2009-01-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
332 * ListBox.cs: When removing an item and the last item is selected,
333 remove it from the selection, and if selection mode is One try to
334 select the new last item.
337 2009-01-16 Mike Gorse <mgorse@novell.com>
339 * Splitter.cs: Make MaxSize internal so that UIA code can use it.
341 2009-01-16 Mario Carrion <mcarrion@novell.com>
343 * ColumnHeader.cs: UIA Support: raising internal event UIATextChanged
346 2009-01-16 Carlos Alberto Cortez <calberto.cortez@ggmail.com>
349 * XplatUIX11.cs: Properly encode/decode the unicode strings we
350 store/retrieve in the Clipboard. Also, since we try to convert the
351 data to different formats, separate the source and the result of
352 it, so we can always fallback to the original and don't mix wrong
355 2009-01-16 Mike Gorse <mgorse@novell.com>
357 * TextControl.cs: Add UIASelectionChanged event.
359 2009-01-16 Ivan N. Zlatev <contact@i-nz.net>
361 * DataGridView.cs: Forward the first key events to the editing control.
364 2009-01-14 Andrés G. Aragoneses <aaragoneses@novell.com>
366 * Application.cs: Oops, launch the copied handler of PreRun instead of
367 the global one (gendarme would bark otherwise). (Improving r123375)
369 2009-01-14 Andrés G. Aragoneses <aaragoneses@novell.com>
372 * Application.cs: Move the PreRun event fire to the end of the XplatUI
373 static ctor (we don't move the PreRun event to this class because its
374 usage would cause the call to the static ctor). This way we can get
375 a11y support for dialogs that run without App.Run.
377 2009-01-14 Andrés G. Aragoneses <aaragoneses@novell.com>
379 * ListView.cs: New internal property to know the inner array's length of
380 the location of items, in order to avoid a try-catch strategy for the
381 case when this array has not been resized yet (for reference, look at
384 2009-01-13 Andrés G. Aragoneses <aaragoneses@novell.com>
386 * Application.cs: Simplify UIA initialization, reducing it from 4 to 1
387 reflection calls. This requires UIAutomationWinforms r123213.
389 2009-01-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
391 * MonthCalendar.cs: Detect selection changes in MouseDown/MouseMove
392 handlers and fire the DateSelected event until MouseUp is reached,
393 like .net does, instead of firing it for each mouse event.
394 Fixes part of #364914.
396 2009-01-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
398 * TreeView.cs: When the selection gets canceled using the BeforeSelect
399 event, invalidate the previous highlighted_node bounds, to show the
400 user that the item was *not* selected.
403 2009-01-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
405 * ComboBox.cs: Separate some scroll logic: setting SelectedIndex, as
406 well as -in DropDown and Simple modes- writing in the textbox should
407 try to set the requested item as the top one, but navigating with the
408 keyboard and handling mouse selection don't need that behaviour. Also,
409 when resetting selected_index handling key press events, reset
410 ComboListBox.HighlightIndex.
411 Fixes the remaining bits of #464188.
413 2009-01-11 Ivan N. Zlatev <contact@i-nz.net>
415 * DataGridView.cs: Fix crashes when shortcut keys are pressed, but
417 - CurrentCellAddress should be -1, -1 and not 0, 0.
418 - Be tolerant and fall back to clearing the current cell if either
419 column or row is -1 in MoveCurrentCell.
420 - Misc. more -1 checks.
422 2009-01-11 Ivan N. Zlatev <contact@i-nz.net>
424 * DataGridView.cs: Preserve the column index. Fixes a regression
425 introduced by the data binding position tracking code.
427 2009-01-11 Ivan N. Zlatev <contact@i-nz.net>
429 * DataGridView.cs: If the bottom of the row matches the client height
430 do not regard the row as partially visible. Fixes the weird scrolling
431 when there is no scrollbar.
433 2009-01-11 Ivan N. Zlatev <contact@i-nz.net>
435 * DataGridViewComboBoxCell.cs: Implement/Fix the data binding.
437 2009-01-09 Mario Carrion <mcarrion@novell.com>
439 * MessageBox.cs: Fixed internal UIAIconRectangle property.
441 2009-01-09 Ivan N. Zlatev <contact@i-nz.net>
443 * DataGridViewCheckBoxCell.cs: Respect the ReadOnly state of the Cell.
445 2009-01-09 Ivan N. Zlatev <contact@i-nz.net>
447 * DataGridView.cs: Track the Position in the CurrencyManager.
449 2009-01-09 Ivan N. Zlatev <contact@i-nz.net>
451 * DataGridView.cs: Implement data-bound new item editing/addition.
452 * DataGridViewRowCollection.cs: Make it possible for us to internally
454 [Fixes bugs #457107, #457308, #325240]
456 2009-01-09 Ivan N. Zlatev <contact@i-nz.net>
458 * CurrencyManager.cs: Even if Position is set to a greater value than the
459 list count reset it to position of the last item.
461 2009-01-09 Ivan N. Zlatev <contact@i-nz.net>
463 * BindingSource.cs: AddNew doesn't set index/add_pending for IBindingList.
464 Fix that in order to make CancelNew to work.
466 2009-01-09 Ivan N. Zlatev <contact@i-nz.net>
468 * BindingSource.cs: When adding a new item try to delegate to the internal
469 list first before throwing an exception.
471 2009-01-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
473 * ComboBox.cs: When setting the text and adjusting the top_item, do it
474 *only* if the current item is *not* visible already.
475 Fixes part of #464188.
477 2009-01-09 Ivan N. Zlatev <contact@i-nz.net>
479 * DataGridView.cs: Requesting the CurrencyManager for the first time can
480 lead to unexpected OnBindingContextChanged calls and recursive rebinding.
484 2009-01-08 Brad Taylor <brad@getcoded.net>
486 * ComboBox.cs: Expose a few private fields as internal UIA properties.
488 2009-01-07 Mario Carrion <mcarrion@novell.com>
490 * DataGrid.cs: CWL removed.
492 2009-01-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
494 * RadioButton.cs: When setting Checked, we should first update the
495 check state of the current RadioButton, as well as invalidating it,
496 and after that actually update the siblings. This is done to match
498 Fixes the remaining bits of #463028.
500 2009-01-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
502 * RadioButton.cs: Setting Checked to false should set TabStop to stop
503 as well. Also, when we get the focus and no other RadioButton is
504 selected in the parent control, we should mark ourselves as Checked.
505 Fixes part of #463028.
507 2009-01-05 Mario Carrion <mcarrion@novell.com>
509 * DataGrid.cs: UIA suppport. internal events:
510 UIAGridCellChanged, UIAColumnsHeadersVisibleChanged,
511 UIASelectionChanged, UIACollectionChanged. Internal properties:
512 UIARowHeight, UIACellsArea, UIACaptionArea,
513 UIAColumnHeadersArea, UIASelectedRows, UIACurrentTableStyle,
514 UIAVScrollBar and UIAHScrollBar.
516 2009-01-05 Jonathan Pobst <monkey@jpobst.com>
518 * ToolStripSplitStackLayout.cs: Enable the overflow button if any
519 of the buttons are set to Overflow = Always.
522 2009-01-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
524 * BindingNavigator.cs: Properly enable/disable the toolstrip buttons,
525 based on whether the binding source is availble or not. Fixes #463008.
527 2009-01-03 Ivan N. Zlatev <contact@i-nz.net>
529 * DataGridViewCell.cs: We should return a value even if we are not bound
532 2009-01-02 Ivan N. Zlatev <contact@i-nz.net>
534 * CurrencyManager.cs, DataGrid.cs:
535 - Rename CanAddRows to AllowNew. The CurrencyManager has no
537 - Add two more internal properties AllowRemove and AllowEdit.
538 * DataGridView.cs: Refactor in a data-bound situation AllowUserToAddRows,
539 AllowUserToDeleteRows and cell ReadOnly state to be also checked against the
540 CurrencyManager data source.
542 2009-01-02 Ivan N. Zlatev <contact@i-nz.net>
544 * DataGridView.cs: Fix crashes caused by assigning negative values to
545 ScrollBar.LargeIncrement when the ClientSize.Width/Height is less than
546 the column/row heights/widths.
549 2009-01-02 Ivan N. Zlatev <contact@i-nz.net>
551 * DataGridView.cs: Non-autogenerated columns that have a data property
552 set that exists in the current datasource should be set to be data-bound.
554 2009-01-02 Ivan N. Zlatev <contact@i-nz.net>
556 * DataGridView.cs: Fix column sorting for columns containing null
557 values. A "null" value is not always "null" (e.g could be String.Empty)
558 and thus parsing numeric types throwed an exception for "null" values.
560 2009-01-02 Ivan N. Zlatev <contact@i-nz.net>
562 * DataGridView.cs: Detach the editing control when the edit is
565 2009-01-02 Ivan N. Zlatev <contact@i-nz.net>
567 * DataGridView.cs: Multiple fixes to handle last column/row removal
568 and cell movement after that instead of throwing exceptions.
570 2009-01-02 Ivan N. Zlatev <contact@i-nz.net>
572 * DataGridViewCellCollection.cs: When cells are removed the column
573 indices become invalid if the cell is not the last one and have to
576 2009-01-01 Ivan N. Zlatev <contact@i-nz.net>
578 * DataGridView.cs: Return false in CommitEdit if there was an error.
580 2009-01-01 Ivan N. Zlatev <contact@i-nz.net>
582 * DataGridView.cs: Remove a leftover Console.WriteLine.
584 2009-01-01 Ivan N. Zlatev <contact@i-nz.net>
586 * DataGridViewRow.cs: Access the indexer of the data manager directly
587 instead of the internal list.
589 2009-01-01 Ivan N. Zlatev <contact@i-nz.net>
591 * DataGridViewCell.cs, DataGridView.cs, DataGridViewCheckBoxCell.cs:
592 Rewrite the value getting, setting, parsing, formatting logic:
593 - If data-bound value get/set should actually get and set from the
595 - Make proper usage of TypeConverters for value parsing/formatting.
596 - Raise DataError if setting the new value fails.
597 - Get rid off the internal valueType field and get/set the ValueType
601 2009-01-01 Ivan N. Zlatev <contact@i-nz.net>
603 * DataGridView.cs: Rewrite the DataBinding layer:
604 - Get rid off all BindingSource/IBindingList/DataSet/DataTable
606 - Get rid off the per DataSource type column autogeneration code.
607 - Use the CurrencyManager for everything that is DataBinding related.
609 2009-01-01 Ivan N. Zlatev <contact@i-nz.net>
611 * CurrencyManager.cs: Do not fire duplicate ListChanged events.
613 2008-12-31 Ivan N. Zlatev <contact@i-nz.net>
615 * DataGridView.cs, DataGridViewRow.cs: Add a new internal property
616 DataManager to fetch the CurrencyManager for the DataGridView and to
617 spare this logic for the other components to follow.
619 2008-12-31 Mario Carrion <mcarrion@novell.com>
621 * MessageBox.cs: UIA support: new properties: UIAMessage,
622 UIAMessageRectangle and UIAIconRectangle.
624 2008-12-31 Sandy Armstrong <sanfordarmstrong@gmail.com>
626 * FileDialog.cs: Add PopupButtonPanel.PopupButton.PerformClick method
627 and DirComboBox.DirComboBoxItem.ToString override for UIA support.
629 2008-12-31 Ivan N. Zlatev <contact@i-nz.net>
631 * DataGridView.cs: Do not autogenerate duplicate column for a
632 data member that has already problematically been assigned one.
635 2008-12-30 Jonathan Pobst <monkey@jpobst.com>
637 * ProfessionalColorTable.cs: Better detection of user's theme.
640 2008-12-30 Ivan N. Zlatev <contact@i-nz.net>
642 * DataGridView.cs: In the case where there are no autogenerated
643 columns and the user adds columns problematically we must generate
644 the rows after the very first column is added.
646 2008-12-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
648 * DateTimePicker.cs: When increasing/decreasing the value of month
649 with ShowUpDown set to true, moving from december to january, and
650 moving from january to december should adjust the year to the next and
651 the previous year, respectively.
652 Fixes the remaining bits of #459674.
654 2008-12-30 Ivan N. Zlatev <contact@i-nz.net>
656 * DataGridView.cs: If a new cell is selected edit mode should be
657 immediately enabled only if EditOnEnter is set. Whether the mouse
658 or not was used to select the cell is irrelevant.
660 2008-12-29 Ivan N. Zlatev <contact@i-nz.net>
662 * DataGridView.cs: Remove a bogus ReBind call, which was causing
665 2008-12-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
667 * DateTimePicker.cs: Handle the "MMMM" month format.
670 2008-12-23 Ivan N. Zlatev <contact@i-nz.net>
673 - Make ReBind private and refactor various calls to call ReBind
674 instead of ClearBinding/DoBinding
675 - Rebind when the column collection changes
676 * DataGridViewColumnCollection.cs:
677 - Leave the rebinding on change to be handled by the DataGridView.
679 2008-12-23 Jonathan Pobst <monkey@jpobst.com>
681 * DataGridView.cs: Add a ReBind convenience method.
682 * DataGridViewColumnCollection.cs: Rebind when a column is added.
685 2008-12-23 Neville Gao <nevillegao@gmail.com>
687 * StatusBar.cs: Modified argument variable.
688 * SplitContainer.cs: Control enabled to support accessibility.
691 2008-12-22 Jonathan Pobst <monkey@jpobst.com>
693 * ToolStripMenuItem.cs: Guard against an NRE.
696 2008-12-22 Mario Carrion <mcarrion@novell.com>
698 * Control.cs: AccessibleXXXX properties don't return
699 AccessibleObject.XXXX, instead a local referece is returned.
701 2008-12-22 Neville Gao <nevillegao@gmail.com>
703 * PrintPreviewControl.cs: Added internal properties to support
707 2008-12-19 Mario Carrion <mcarrion@novell.com>
709 * Control.cs: Reverted r121561.
711 2008-12-19 Andrés G. Aragoneses <aaragoneses@novell.com>
713 * X11DesktopColors.cs: Since r121873 we don't need gtk a11y checks here,
714 it has been moved to the bridge.
716 2008-12-18 Brad Taylor <brad@getcoded.net>
718 * DateTimePicker.cs: Add a few UIA specific events, and a couple
719 internal methods useful for UIA.
721 2008-12-18 Mario Carrion <mcarrion@novell.com>
723 * ListBox.cs: Fixed GetItemRectangle when MultiColumn is true.
726 2008-12-17 Mike Gorse <mgorse@novell.com>
728 * ListView.cs, ListViewItem.cs: Send OnUIAFocusedItemChanged if an
729 item's Focused property is set.
731 2008-12-17 Sandy Armstrong <sanfordarmstrong@gmail.com>
735 * TreeNodeCollection.cs: Add events for UIA support:
736 UIACheckBoxesChanged, UIALabelEditChanged, UIANodeTextChanged, and
737 UIACollectionChanged.
739 2008-12-17 Bill Holmes <billholmes54@gmail.com>
741 * ListViewItem.cs (ListViewSubItem.ctor): Initalizing the
742 SubItemStyle member field.
744 Contributed under MIT/X11 license.
746 2008-12-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
748 * ListBox.cs: In MultiColumn mode don't use top_index to calculate the
749 y coord, since it's useless in this case, and we need to rely only on
750 the number of rows and ItemHeight to compute this value.
751 Fixes part of #257471.
753 2008-12-15 Mike Gorse <mgorse@novell.com>
755 * StatusBar.cs: Send OnUIACollectionChanged in Remove().
757 2008-12-15 Mario Carrion <mcarrion@novell.com>
759 * Control.cs: Accessibility properties instantiate AccessibilityObject when
763 2008-12-15 Brad Taylor <brad@getcoded.net>
765 * ToolStripItem.cs: Add a UIA specific event for listening for when a
766 ToolStripItem becomes selected or deselected.
768 2008-12-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
770 * MonthCalendar.cs: Select the date in MouseDown, not in MouseUp, as
771 .net does. Use the date in the point of the mouse move coords as the
772 new range as well, if the left button of the mouse is being pressed.
775 2008-12-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
777 * MonthCalendar.cs: When modifying either AnnuallyBoldedDates,
778 MonthlyBoldedDates or BoldedDates call UpdateBoldedDates, to
779 effectively repaint the control.
780 Fixes the remaining bits of #417961.
782 2008-12-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
784 * MonthCalendar.cs: When setting MaxDate/MinDate, adjust the selected
785 range to contain only dates within the new possible range.
786 Fixes part of #417961.
788 2008-12-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
790 * MaskedTextBox.cs: MaskedTextService.Replace doesn't expect the
791 length of the text, but the end position, so we need to substract 1 to
792 have a valid value. Also, in the same InputText method, don't use
793 SelectionLength as the length of the text, since the selected text
794 could actually be empty, but we need to set the value anyway.
797 2008-12-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
799 * TextBox.cs: Don't do any auto complete task if the custom source is
800 null or empty. Also avoid duplication of code.
803 2008-12-09 Ivan N. Zlatev <contact@i-nz.net>
805 * DataGridView.cs: Refresh column sizes when new rows are added.
808 2008-12-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
809 * RichTextBox.cs: When parsing the contents of a rtf file, don't call
810 Split to create a line - we are already doing this, by _adding_ a new
811 one when rtf_cursor_x is 0 (this field gets this value just after we
812 receive the newline param as true). This avoids having a proportional number
813 of empty lines in the end of the rich text box.
816 2008-12-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
818 * RichTextBox.cs: When saving the contents as a plain text, don't add
819 a new line for every Line structure, since the data in Document
820 already contains the new line characters. This avoids duplicated new
821 lines using the Save methods.
824 2008-12-09 Sandy Armstrong <sanfordarmstrong@gmail.com>
826 * TreeView.cs: Expose ScrollBars as internal properties, for use by UIA
827 framework. Fixes bug #457678.
829 2008-12-08 Ivan N. Zlatev <contact@i-nz.net>
831 * DataGridViewRow.cs: Prevent an exception on a not yet databound grid,
832 where datasource is null.
833 [Fixes exception reported in bug 441240]
835 2008-12-08 Ivan N. Zlatev <contact@i-nz.net>
837 * DataGridView.cs: EndEdit validation fixes.
839 2008-12-08 Ivan N. Zlatev <contact@i-nz.net>
841 * DataGridView.cs: This is the cool patch that adds support for
842 actually updating the data in the databinding backend after editing.
843 With bonus firing and handling the DataError event.
845 2008-12-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
847 * Line.cs: When calculating the text tags's Shift value, store it as
848 pixels instead of points. This way we can actually handle different
849 fonts in the same RichTextBox, as well as the right size of the caret.
850 Fixes part of #351938.
852 2008-12-08 Ivan N. Zlatev <contact@i-nz.net>
854 * DataGridViewCheckBoxCell.cs: Fix to make it work. Wrong value was
855 casted to CheckState causing InvalidCastExceptions.
857 2008-12-08 Ivan N. Zlatev <contact@i-nz.net>
859 * DataGridView.cs: Fix the DataGridViewEditMode.EditOnEnter behavior
860 to not depend on the item being clicked.
862 2008-12-08 Ivan N. Zlatev <contact@i-nz.net>
864 * DataGridView.cs: Implement NotifyCurrentCellDirty, so that it no
865 longer throws a NotImplementedException.
867 2008-12-08 Ivan N. Zlatev <contact@i-nz.net>
869 * DataGridView.cs: Set EditingControlFormattedValue when preparing an
870 IDataGridViewEditingControl for editing.
872 2008-12-08 Ivan N. Zlatev <contact@i-nz.net>
874 * DataGridViewComboBoxCell.cs: Implement data binding support.
876 2008-12-08 Ivan N. Zlatev <contact@i-nz.net>
878 * DataGridView.cs: Use the CurrencyManager to update the data source
879 binding position instead of casting the data sourcde to BindingSource.
880 This enables position updating for other type of data sources.
882 2008-12-08 Ivan N. Zlatev <contact@i-nz.net>
884 * ComboBox.cs: Update the SelectedIndex before updating the Text
885 in OnDisplayMemberChanged.
887 2008-12-07 Ivan N. Zlatev <contact@i-nz.net>
889 * DataGridView.cs: Fix our support for IDataGridViewEditingControl.
892 2008-12-06 Ivan N. Zlatev <contact@i-nz.net>
894 * DataGridView.cs: Sorting fixes:
895 - Be strict when sorting is enabled.
896 - If there is a data source delegate the sorting request.
898 2008-12-06 Ivan N. Zlatev <contact@i-nz.net>
900 * Binding.cs: When converting the data also try with the destination
901 type typeconverter. This indirectly adds support for Nullable types
902 in our databinding layer.
904 2008-12-06 Ivan N. Zlatev <contact@i-nz.net>
906 * DataGridView.cs: When cell editing is finished focus back the
907 DataGridView. Fixes keyboard navigation post-editing.
909 2008-12-06 Ivan N. Zlatev <contact@i-nz.net>
911 * DataGridView.cs: Fix the cell editing by delaying the currentCell
912 setting to after EndEdit is called for the old cell.
914 2008-12-06 Ivan N. Zlatev <contact@i-nz.net>
916 * BindingSource.cs: Reset the bindings. Fixes a NotWorking test.
918 2008-12-06 Ivan N. Zlatev <contact@i-nz.net>
920 * XplatUIX11.cs: Send WM_HELP only to the focused window.
922 2008-12-05 Ivan N. Zlatev <contact@i-nz.net>
924 * CurrencyManager.cs: Fix exceptions when resetting the data source
925 for the same time (e.g. in ComboBox):
926 - Do not set the list position if we are still transferring data
927 - When resetting the list firstly push the data then update the
929 * Binding.cs: Check BindingManager.Position == -1 instead of
930 BindingManager.Current == null in order to avoid unexpected
933 2008-12-05 Brad Taylor <brad@getcoded.net>
935 * MonthCalendar.cs: Add UIA specific events so that we can know when
936 the selection changes, and when MaxSelectedCount changes.
938 2008-12-05 Ivan N. Zlatev <contact@i-nz.net>
940 * DataGridView.cs: Cleanup rows_displayed out of OnPaint. It's not
943 2008-12-05 Ivan N. Zlatev <contact@i-nz.net>
945 * DataGridView.cs: Fix scrolling and selection of cells/rows prior
946 to the control being drawn for the first time by:
947 - Implement DisplayedRowsCount to not rely on the control being
948 already painted. Also added support for the partial row flag.
949 - Fix scrolling to take into account partial rows and scroll to
953 2008-12-05 Ivan N. Zlatev <contact@i-nz.net>
955 * DataGridView.cs: Do not reset the CurrentCell when the handle is
956 created if the user has already set it.
958 2008-12-05 Ivan N. Zlatev <contact@i-nz.net>
960 * DataGridView.cs: Fix CurrentCell to actually select the cell.
962 2008-12-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
964 * XplatUIX11.cs: Add support to RichTextFormat by reading it as ascii
965 text and then let the underneath users of IDataObject interpret and
969 2008-12-01 Ivan N. Zlatev <contact@i-nz.net>
971 * DataGridView.cs: Fix my previous commit to actually update what it
974 2008-12-01 Ivan N. Zlatev <contact@i-nz.net>
976 * DataGridView.cs: Ensure that when a row is removed the all the
977 current row/column/cell get updated. Fixes multiple exceptions.
979 2008-12-01 Ivan N. Zlatev <contact@i-nz.net>
981 * DataGridView.cs: Fix scrolling to the current cell when key navigation
985 2008-12-01 Ivan N. Zlatev <contact@i-nz.net>
987 * DataGridView.cs, DataGridViewCell.cs: Fire CellStateChanged events.
988 * DataGridViewCell.cs: Set the cell as selected prior to setting the
990 [Fixes issue 1 in bug #443560]
992 2008-12-01 Ivan N. Zlatev <contact@i-nz.net>
994 * DataGridView.cs: Invalidate after the current row/column seletion
998 2008-12-01 Ivan N. Zlatev <contact@i-nz.net>
1000 * DataGridView.cs: Refresh the data if the data list is reset, etc.
1002 2008-12-01 Ivan N. Zlatev <contact@i-nz.net>
1004 * DataGridView.cs: Handle datasource state changes:
1005 - IBindingList - list changes
1006 - BindingSource - list changed and datasource changes
1008 2008-11-30 Ivan N. Zlatev <contact@i-nz.net>
1010 * DataGridView.cs: Select the first cell when databound.
1011 Visually select when CurrentCell is set.
1013 2008-11-30 Ivan N. Zlatev <contact@i-nz.net>
1015 * DataGridView.cs: Set the current cell before raising CellClick.
1017 2008-11-30 Ivan N. Zlatev <contact@i-nz.net>
1019 * DataGridView.cs: Cleanup MoveCurrentCell to not fire any CellEnter,
1020 CellLeave events as this is already done in SetCurrentCellAddressCore.
1022 2008-11-30 Ivan N. Zlatev <contact@i-nz.net>
1024 * DataGridView.cs: Set the minimum size for the columns to be the
1025 width of their header, so that the columns don't get squashed
1028 2008-11-30 Ivan N. Zlatev <contact@i-nz.net>
1030 * DataGridView.cs: After the data is bound PerformLayout, so that
1031 the columns get autosized.
1033 2008-11-30 Ivan N. Zlatev <contact@i-nz.net>
1035 * DataGridView.cs: Move all currentCell setting code into
1036 one central place - SetCurrentCellAddressCore. That way the
1037 current cell is properly updated when programatically set.
1038 Fire RowEnter/Leave events.
1040 2008-11-30 Ivan N. Zlatev <contact@i-nz.net>
1042 * DataGridView.cs: Update the CurrencyManager.Position, so that
1043 when a BindingSource is used BindingSource.Current will be correct.
1045 2008-11-30 Ivan N. Zlatev <contact@i-nz.net>
1047 * GroupBoxRenderer.cs: Fix when VisualStyles disabled:
1048 - No caption text is drawn because Color.Empty is used.
1049 - Fix top and height off by 1.
1051 2008-11-30 Ivan N. Zlatev <contact@i-nz.net>
1053 * DataGridViewRow.cs: Implement DataBoundItem.
1055 2008-11-30 Ivan N. Zlatev <contact@i-nz.net>
1057 * BindingSource.cs: Return null for Current if there is no data present.
1059 2008-11-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1061 * MenuAPI.cs: Add a Menu.SelectedItem null check when navigating the
1062 menus using the arrow keys. Also when handling the left arrow key, don't
1063 assign the current menu to the parent one, if the parent is null.
1066 2008-11-24 Everaldo Canuto <ecanuto@novell.com>
1068 * PrintPreviewDialog.cs: Fix toolbar size, height must be 26. Fixes bug
1071 2008-11-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1074 * ScrollableControl.cs: Simplify the code to manually set the size of
1075 the thum area, avoiding duplication of code, and also preserving the
1076 right value for different code paths - this can happen when size
1077 changes are made to the scrollbar after setting LargeChange, Maximum
1078 or related properties for the ScrollBar.
1080 2008-11-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1082 * ScrollableControl.cs: When scrolling, don't invalidate the entire
1083 area, and call to XplatUIX11.ScrollWindow instead. This is exactly
1084 what .Net does: copy the visible area, and only invalidate the part of
1085 the area that wasn't visible before scrolling.
1088 2008-11-24 Jonathan Pobst <monkey@jpobst.com>
1090 * DataGridView.cs: Listen for a DataTable's TableCleared event so we
1091 can clear ourselves when it is raised, we don't have a newrowindex
1092 if we don't have any columns.
1093 * DataGridViewRowCollection.cs: Ensure we always delete all the rows,
1094 re-index after each delete so the NewRow will have the correct index.
1097 2008-11-24 Jonathan Pobst <monkey@jpobst.com>
1099 * Form.cs: Don't change min/max size if it is empty.
1102 2008-11-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1105 * ScrollableControl.cs: When the manual thumb size is used, the
1106 maximum allowed value should depend on that thumb size, instead of
1107 LargeChange (using the maximum - LargeChange + 1 value). But
1108 LargeChange should be used normally when incrementing/decrementing.
1109 Fixes the remaining part of #441546.
1111 2008-11-23 Andreia Gaita <avidigal@novell.com>
1113 * WebBrowser.cs, WebBrowserBase.cs: Delay loading of DocumentStream
1114 until an about:blank has been loaded (according to spec). Fix
1115 ScrollbarsEnabled to set when a document is loaded (since we use js
1116 for it). Fix url so it reflects the current loading document and not
1117 the previous one. Send StatusChanged events.
1119 2008-11-23 Andreia Gaita <avidigal@novell.com>
1121 * Application.cs: If a message comes in for an embedded control
1122 (like webbrowser) when we're capturing the keyboard, release the
1123 capture and continue.
1126 2008-11-22 Andreia Gaita <avidigal@novell.com>
1128 * XplatUI.cs: Only use PlatformID.MacOSX enum when not building on VS
1130 2008-11-21 Andreia Gaita <avidigal@novell.com>
1132 * WebBrowser.cs, HtmlDocument.cs: Fixes for #428172
1134 2008-11-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1137 * ScrollableControl.cs: Set manually the thumb size for the
1138 ScrollableControl scrollbars, so any further changes to the underneath
1139 scrollbars respect the original size.
1140 Fixes part of #441546.
1142 2008-11-21 Geoff Norton <gnorton@novell.com>
1144 * XplatUI.cs: Ensure that we can run on .net 2.0 with mono 2.2 where
1145 PlatformID.MacOSX now exists.
1147 2008-11-20 Jonathan Pobst <monkey@jpobst.com>
1149 * TextBoxBase.cs: Provide a default implementation for ChangeBackColor.
1150 Having something internal abstract isn't very nice for people who want
1151 to inherit from this class.
1153 2008-11-20 Jonathan Pobst <monkey@jpobst.com>
1155 * ToolStripItem.cs: Don't crash if ImageIndex or ImageKey is set to an
1156 invalid value. Just return null for the Image, and use the ImageList's
1157 ImageSize for calculations.
1159 2008-11-20 Jonathan Pobst <monkey@jpobst.com>
1161 * ComboBox.cs: Call HideWindow instead of Hide when closing the dropdown
1162 through DroppedDown so the proper events get called and state gets reset.
1165 2008-11-18 Jonathan Pobst <monkey@jpobst.com>
1167 * DataGridViewColumnCollection.cs: Make sure we re-index the columns after
1168 the collection is modified.
1170 2008-11-17 Jonathan Pobst <monkey@jpobst.com>
1172 * DomainUpDown.cs: Remove string cache and reflection optimizations. They
1173 aren't always correct, and fixing them for every case is not worth the
1174 negligible benefit they provide.
1177 2008-11-17 Jonathan Pobst <monkey@jpobst.com>
1179 * DataGridView.cs: We should never add actual cells to the RowTemplate.
1180 Internally, use RowTemplateFull to give us a new row with cells.
1181 * DataGridViewColumnCollection.cs: Clear Rows when we clear Columns.
1182 * DataGridViewRowCollection.cs: Use RowTemplateFull.
1184 2008-11-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1186 * XplatUIX11.cs: Forms without borders should be able to change its
1187 size - specially they should be able to be maximized, adding the
1188 respective MotifFunctions.Resize bit when setting window properties as
1189 well as *not* marking the Hwnd as size fixed.
1192 2008-11-12 Jonathan Pobst <monkey@jpobst.com>
1194 * DataGridViewCellStyle.cs: Allow SelectionBackColor to have
1198 2008-11-11 Jonathan Pobst <monkey@jpobst.com>
1200 * DataGridView.cs: Add internal to OnAutoSizeColumnModeChanged.
1201 * DataGridViewColumn.cs: Recalculate columns when AutoSizeMode changes. Raise
1202 AutoSizeColumnModeChanged.
1205 2008-11-11 Jonathan Pobst <monkey@jpobst.com>
1207 * DataGridViewRowCollection.cs: Guard against the user deleting the
1208 NewRow. Add an internal delete so we can still delete it.
1209 * DataGridView.cs: Use the new internal delete when deleting the NewRow.
1212 2008-11-10 Jonathan Pobst <monkey@jpobst.com>
1214 * TextControl.cs: Add some order of operation to our math so
1215 we don't end up with a negative height for our invalidate rect.
1218 2008-11-10 Jonathan Pobst <monkey@jpobst.com>
1220 * Control.cs: When our enabled changes, notify our implicit children
1221 controls as well as our regular controls.
1224 2008-11-08 Andreia Gaita <shana@jitted.com>
1226 * HtmlElement.cs: Small code cleanup
1228 2008-11-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1230 * BindingNavigator.cs: MoveFirstItem should be enabled only if
1231 position is larger than 0, not only different than 0. Also Position
1232 and Count items should be enabled if the BindingSource is non null and
1236 2008-11-05 Jonathan Pobst <monkey@jpobst.com>
1238 * TabControl.cs: Don't raise SelectedIndexChanged until we have
1239 actually modified the tab collection, so TabCount will be correct.
1242 2008-11-05 Sandy Armstrong <sanfordarmstrong@gmail.com>
1244 * ListViewItem.cs: Mark ListViewSubItem.UIATextChanged event as
1245 NonSerialized to fix serialization of ListViewItem.
1247 2008-11-04 Mike Gorse <mgorse@novell.com>
1249 * ListView.cs: Call OnUIAFocusedItemChanged after completing the
1250 focus change, and always call in SetFocusedItem.
1251 * ListBox.cs: Add UIAFocusedItemChanged as in ListView.
1253 2008-11-04 Jonathan Pobst <monkey@jpobst.com>
1255 * ComboBox.cs: Only call OnDrawItem when we are using an OwnerDraw
1256 mode. Based on a patch by John Mortlock.
1259 2008-11-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1261 * ListView.cs: Use the UsingGroups property where needed, instead of
1262 duplicating the check in other places.
1264 2008-11-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1266 * ListView.cs: When calculating layout, refresh the count of items
1267 belonging to the default item, insteas of doing it only one time. This
1268 was already working fine for icon views, not not for details.
1271 2008-11-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1275 * ThemeWin32Classic.cs: Don't render Tile view if there wasn't a call
1276 to Applicatin.EnableVisualStyles, and use LargeIcon view, as .net
1280 2008-11-03 Sandy Armstrong <sanfordarmstrong@gmail.com>
1282 * ListView.cs: Wrap call to OnUIAFocusedItemChanged with #if NET_2_0.
1284 2008-11-03 Sandy Armstrong <sanfordarmstrong@gmail.com>
1286 * ListView.cs: Add internal UIAFocusedItemChanged event. Fixes bug
1287 #441280, patch by Mike Gorse <mgorse@novell.com>.
1289 2008-11-03 Jonathan Pobst <monkey@jpobst.com>
1291 * TreeView.cs: When doing ExpandAll, don't scroll to the bottom
1292 if there is no scrollbar.
1295 2008-11-03 Jonathan Pobst <monkey@jpobst.com>
1297 * ProgressBar.cs, ThemeWin32Classic.cs, ThemeVisualStyles.cs: Commit
1298 patch from Andy Hume that fixes many issues with ProgressBar.
1301 2008-11-03 Jonathan Pobst <monkey@jpobst.com>
1303 * Form.cs: Don't allow MinimumSize and MaximumSize to conflict.
1306 2008-11-03 Sandy Armstrong <sanfordarmstrong@gmail.com>
1310 * NumericUpDown.cs: Internal events added to UpDownBase:
1311 UIAUpButtonClick and UIADownButtonClick. Patch by Neville Gao
1314 2008-11-03 Sandy Armstrong <sanfordarmstrong@gmail.com>
1316 * ToolStripLabel.cs: Internal event added: UIAIsLinkChanged.
1318 2008-11-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1321 * ThemeWin32Classic.cs: Don't use groups nor insertion mark in
1322 Application.EnableVisualStyles hasn't been called.
1323 Fixes part of #437933.
1325 2008-10-31 Andreia Gaita <shana@jitted.com>
1327 * Form.cs (SetVisibleCore): since set_ActiveControl no longer calls focus
1328 if the container is not focused already, we need to specifically set
1329 focus to the first available control, or to the form itself if there
1332 2008-10-31 Andreia Gaita <shana@jitted.com>
1334 activate message fix: a call to .Show now waits until both WM_SHOWWINDOW and
1335 WM_ACTIVATE have been processed before returning, so it is guaranteed that
1336 once it returns and the form is visible, it is actually on the screen on X11
1338 * ContainerControl.cs: Only send focus to the control if the top container
1339 is already focused. This is so that, when a form is first shown, all
1340 the enter/leave events are done first before any focus stuff comes in.
1341 If a control has no top container, there's an extra check on Control.Focus
1342 to make sure it gets focused in this particular case.
1344 * Control.cs: Force focus if the control is active but did not receive
1345 focus after being set as active.
1347 * MdiClient.cs: Dispose the form when closing
1349 * XplatUIX11.cs: When mapping and unmapping windows, make sure the call
1350 doesn't return until both WM_SHOWWINDOW and WM_ACTIVATE have come in
1351 if the window is a top Form.
1352 Reset all hwnd properties when the window has been destroyed so that
1353 we don't land in any codepaths that might try to do something with it.
1354 Added a bunch of debugging messages. If TRACE is defined, all X calls
1355 are logged through DebugHelper. Set a few missing EntryPoint attributes.
1357 2008-10-29 Mario Carrion <mcarrion@novell.com>
1359 * ListViewItem.cs: Control enabled to support Accessibility:
1360 - Internal events: UIATextChanged, UIASubItemTextChanged.
1361 - Internal event UIATextChanged in ListViewSubItem that triggers
1362 UIASubItemTextChanged.
1363 * ListView.cs: Control enabled to support Accessibility:
1364 - Internal events: UIACheckBoxesChanged, UIAMultiSelectChanged,
1365 UIAShowGroupsChanged, UIAViewChanged and UIALabelEditChanged.
1366 - Internal event UIACollectionChanged in ColumnHeaderCollection.
1367 - Internal event UIACollectionChanged in ListViewItemCollection.
1368 - Internal properties: UIAHeaderControl, UIAColumns, UIARows,
1369 UIADefaultListViewGroup, UIAHScrollBar and UIAVScrollBar.
1370 - Internal methods: UIAGetHeaderBounds.
1372 2008-10-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1374 * ScrollableControl.cs: Actually fire the 2.0 Scroll event when we get
1375 the event from the respective scrollbars.
1378 2008-10-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1380 * ComboBox.cs: Use the new CanNavigateAutoCompleteList property of the
1381 textbox to know whether any navigation key will be handled or not. If
1382 not, don't pass the message to the textbox, and use it here instead.
1383 * TextBox.cs: Define a new CanNavigateAutoCompleteList property -which
1384 is more precise- than the previous AutoCompleteMatches one.
1385 This should the keyboard navigation in ComboBox when using auto
1388 2008-10-24 Jonathan Pobst <monkey@jpobst.com>
1390 * ComboBox.cs: Fix item height calculation based off Font to match .Net.
1393 2008-10-24 Jonathan Pobst <monkey@jpobst.com>
1395 * ToolStripDropDownItem.cs: Call OnClick instead of base.OnClick so
1396 overridden methods will get called.
1397 * ToolStripItem.cs: Raise Click before MouseUp.
1398 * ToolStripSplitButton.cs: Fix up some bounding rectangles to take
1399 the item's location into account.
1402 2008-10-24 Neville Gao <nevillegao@gmail.com>
1404 * NumericUpDown.cs: Control enabled to support accessibility.
1405 [Fiexes bug #438135]
1407 2008-10-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1409 * TextBox.cs: Check that we actually have items no navigate, select
1410 text when pressing enter, as well as handle direction keys only if
1411 mode is different to Suggest or the suggest listbox is visible.
1413 2008-10-23 Andreia Gaita <shana@jitted.com>
1415 * WebBrowser.cs: Use the new ContentStream property to retrieve
1416 a stream encoded from the document content
1418 2008-10-23 Andreia Gaita <shana@jitted.com>
1422 HtmlWindow.cs: Fix GetHashcode for null objects
1424 2008-10-22 Andreia Gaita <shana@jitted.com>
1428 HtmlWindow.cs: Fix equality operators (fixes #428173)
1430 2008-10-21 Jonathan Pobst <monkey@jpobst.com>
1432 * XplatUIWin32.cs: Apply patch from John Mortlock that ensures
1433 mouse_state gets set during WM_MOUSEMOVE and WM_NCMOUSEMOVE.
1436 2008-10-21 Jonathan Pobst <monkey@jpobst.com>
1438 * ComboBox.cs: Fire SelectedIndexChanged when the user selects the
1439 same item with the mouse as was already selected.
1442 2008-10-21 Brad Taylor <brad@getcoded.net>
1444 * TextControl.cs: Break out code to get the visible range into
1445 GetVisibleLineIndexes to be used in UIA code.
1449 * TextBoxBase.cs: Add comments indicating that the method or property
1450 is used via reflection from UIA code.
1452 2008-10-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1454 * ListViewItem.cs: Match .net serialization.
1455 Fixes remaining part of #417520.
1457 2008-10-20 Jonathan Pobst <monkey@jpobst.com>
1459 * ToolStripProfessionalRenderer.cs: Don't paint over a set BackgroundImage.
1461 2008-10-20 Mario Carrion <mcarrion@novell.com>
1463 * ErrorProvider.cs, ToolTip.cs, HelpProvider.cs: UIA internal property
1464 added: UIAToolTipRectangle.
1466 2008-10-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1468 * ListViewItem.cs: When deserializing enumerate over the data, instead
1469 of accessing the data directly. This way we handle much better the
1470 cases were we lack information.
1473 2008-10-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1475 * ListView.cs: When removing an item from a main ListView.Items
1476 collection (and not a ListViewGroupCollection.Items one), remove it
1477 also from the group, as .net does. Patch by Mario Carrion (mario at
1481 2008-10-19 Andreia Gaita <avidigal@novell.com>
1483 * Form.cs: Forms that get closed without a handle being created are
1484 disposed in 2.0. Fixes failing FormTest.FormClose and
1485 FormTest.FormClose2 on windows.
1487 2008-10-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1489 * ListView.cs: If both scrollbars are visible, the vertical one
1490 shouldn't extend too far down.
1493 2008-10-17 Jonathan Pobst <monkey@jpobst.com>
1495 * DataGridView.cs: Add the ability to resize columns and rows with
1496 the mouse. Also support double-clicking to autoresize.
1497 * DataGridViewColumn.cs: Invalidate the grid if a column's width changes.
1498 * DataGridViewRow.cs: Invalidate the grid if a row's height changes.
1499 * DataGridViewTextBoxCell.cs: Add 1 to preferred width so ellipsis
1500 isn't shown on autoresize.
1503 2008-10-17 Mario Carrion <mcarrion@novell.com>
1505 * ComboBox.cs: Remove UIAListbox.
1507 2008-10-17 Mario Carrion <mcarrion@novell.com>
1509 * ComboBox.cs, ListBox.cs: Using added/removed item in
1510 OnUIACollectionChangedEvent instead of index.
1512 2008-10-17 Jonathan Pobst <monkey@jpobst.com>
1514 * ComboBox.cs: When we are sorting the items, if the item's type
1515 doesn't support IComparer, use a default one that compares based
1516 off the item's visible text.
1519 2008-10-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1521 * ColumnHeader.cs: Invalidate ListView.header_control when setting
1522 ImageIndex/ImageKey.
1523 * ThemeWin32Classic.cs: When drawing the column header, draw a image
1524 for the column if available, and make the required adjustments to the
1528 2008-10-17 Neville Gao <nevillegao@gmail.com>
1530 * StatusBarPanel.cs: Control enabled to support accessibility.
1533 2008-10-16 Jonathan Pobst <monkey@jpobst.com>
1535 * DataGridView.cs: When a user begins an edit in the 'new row',
1536 make that a real row, and add a new 'new row'. If the user
1537 cancels the edit, remove the new 'new row' and reset everything.
1538 Also, ensure UserAddedRow and UserRemovedRow events are raised.
1541 2008-10-16 Ivan N. Zlatev <contact@i-nz.net>
1543 * TableLayoutSettings.cs: Fix NREs when deserializing and
1544 panel is not yet set.
1547 2008-10-16 Jonathan Pobst <monkey@jpobst.com>
1549 * DataGridView.cs: Invalidate after deleting a row.
1551 2008-10-16 Jonathan Pobst <monkey@jpobst.com>
1553 * DataGridView.cs: Handle Enter and Escape keys.
1554 - Move call to EndEdit to MoveCurrentCell.
1555 - Remove call to EndEdit from navigation key routines.
1556 - Fire CellLeave and CellEnter.
1558 2008-10-16 Jonathan Pobst <monkey@jpobst.com>
1560 * DataGridViewCell.cs: Some fixes to the new cell border
1563 2008-10-16 Jonathan Pobst <monkey@jpobst.com>
1565 * ThemeEngine.cs: Enable visualstyles rendering by default
1566 (on platforms that support it).
1568 2008-10-15 Ivan N. Zlatev <contact@i-nz.net>
1570 * XplatUIX11.cs, XplatUICarbon.cs: Do not Timer.Tick before
1571 MainForm.OnLoad has completed unless DoEvents is forced.
1574 2008-10-15 Jonathan Pobst <monkey@jpobst.com>
1576 * ToolTip.cs: Ensure that Timer.Internal cannot be set to 0.
1578 2008-10-15 Jonathan Pobst <monkey@jpobst.com>
1580 * Control.cs: Make our implementation of DrawToBitmap better
1581 match WmPaint. [Fixes bug #435579]
1583 2008-10-14 Andreia Gaita <avidigal@novell.com>
1585 * WebBrowser.cs: Use DocumentElement as the document's root for the
1586 whole content. Should fix DocumentText and DocumentStream problems.
1588 2008-10-14 Jonathan Pobst <monkey@jpobst.com>
1590 * DataGridViewColumnCollection.cs: Remove calls to OnColumnAddedInternal,
1591 these will get called in DGV.OnCollectionChanged. Make sure
1592 OnCollectionChanged always gets called.
1593 * DataGridView.cs: Make a OnColumnRemovedInternal that removes the cells
1594 from every row. Call this in OnCollectionChanged.
1597 2008-10-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1599 * ComboBox.cs: WM_KEYDOWN and WM_KEYUP messages should be sent to the
1600 textbox if auto complete is used, since we need to navigate over it.
1601 And in this case don't pass this messages to the base impl. Also hide
1602 the auto complete list box when displaying the drop down listbox.
1603 * TextBox.cs: new internal members to expose some of the auto complete
1604 functionality to combobox.
1606 2008-10-13 Ivan N. Zlatev <contact@i-nz.net>
1608 * XplatUIX11.cs, XplatUICarbon.cs, Form.cs: Do not Timer.Tick before
1609 MainForm.OnLoad has completed.
1612 2008-10-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1614 * TextBox.cs: Apply an old-approved patch that adds autocomplete's
1615 Append support to this controls. We need it to apply new patches.
1617 2008-10-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1619 * Control.cs: When updating z order in child controls, send to back
1620 the implicit controls. Also, do it explicitly, instead of making
1621 GetAllControls return the implicit controls in a specific order, and
1622 thus avoid depending on that, which could change in the future.
1625 2008-10-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1627 * X11Dnd.cs: Try to call Application.DoEvents before returning in a
1628 call to StartDrag, since we must fire DragDrop/DragLeave *before*
1629 that, as .net does - instead of firing DragDrop/DragLeave *after* the
1630 call to Control.DoDragDrop has completed. This is needed since at the
1631 point of returning, we have sent related dnd ClientMessages, but we
1632 need to wait for them to fire the wmf respective ones.
1635 2008-10-09 Everaldo Canuto <ecanuto@novell.com>
1637 * LinkLabel.cs: Recreate link pieces when change Padding.
1639 2008-10-09 Everaldo Canuto <ecanuto@novell.com>
1641 * LinkLabel.cs: Take Padding into account when recreate link pieces.
1644 2008-10-08 Everaldo Canuto <ecanuto@novell.com>
1646 * Control.cs: Implement internal property PaddingClientRectangle, it will be
1647 useful for drawing controls that must take care about Padding property.
1649 2008-10-08 Jonathan Pobst <monkey@jpobst.com>
1651 * BindingSource.cs: Make item_type internal so we can access it in DGV.
1652 * DataGridView.cs: Add support for autogenerating columns from a
1655 2008-10-07 Jonathan Pobst <monkey@jpobst.com>
1657 * DataGridView.cs: Comment out an exception that is getting thrown
1658 too often currently.
1660 2008-10-07 Jonathan Pobst <monkey@jpobst.com>
1662 * DataGridView.cs: Always rebind to the datasource, as things may
1663 have changed in it that we aren't capturing yet.
1665 2008-10-07 Jonathan Pobst <monkey@jpobst.com>
1667 * DataGridViewTextBoxCell.cs: Don't default to VerticalCenter font
1668 drawing mode. If we are top aligned, give ourselves some top padding.
1670 2008-10-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1672 * X11Dnd.cs: When firing the default dnd enter/leave events, fire the
1673 events on the control under the mouse pointer, instead of firing them
1674 on the window generating the dnd operation. To achieve this re-use the
1675 code used to get the window under the pointer when getting MouseMove
1679 2008-10-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1681 * X11Dnd.cs: Don't check that that the window sending the dnd events
1682 is the owner of the selection. Although Gtk+ sets it that way, it's
1683 not a requirement of the XDnd protocol, and Qt doesn't seem to do it.
1684 So, just as Gtk+ does, we set our window sending the dnd events as the
1685 owner of the selection, but don't check it when receiving them. This
1686 should fix interoperability with Qt/Kde.
1689 2008-10-06 Jonathan Pobst <monkey@jpobst.com>
1691 * DataGridView.cs: Make sure we take the vertical scrollbar into
1692 account when autosizing columns.
1694 2008-10-06 Jonathan Pobst <monkey@jpobst.com>
1696 * DataGridView.cs: Handle sorting datetimes.
1698 2008-10-04 Ivan N. Zlatev <contact@i-nz.net>
1700 * ButtonBase.cs, Control.cs, Label.cs, PictureBox.cs, TabControl.cs,
1701 TextBoxBase.cs, ToolBar.cs, TrackBar.cs, TreeView.cs: Cleanup
1702 compilation warnings.
1704 2008-10-03 Ivan N. Zlatev <contact@i-nz.net>
1706 * RTF.cs, Application.cs, BindingContext.cs, BindingSource.cs,
1707 ContextMenuStrip.cs, Control.cs, Hwnd.cs, Line.cs, MaskedTextBox.cs,
1708 ProgressBar.cs, SaveFileDialog.cs, TextControl.cs, Theme.cs,
1709 ToolBar.cs, ToolStripItemCollection.cs, TrackBar.cs: Cleanup
1710 compilation warnings.
1712 2008-10-03 Ivan N. Zlatev <contact@i-nz.net>
1714 * DataGridView.cs, DataGridViewCell.cs,
1715 DataGridViewCellValidatingEventArgs.cs,
1716 DataGridViewComboBoxEditingControl.cs, DataGridViewHeaderCell.cs,
1717 DataGridViewRow.cs, DataGridViewRowHeaderCell.cs,
1718 DataGridViewTextBoxEditingControl.cs: Cleanup compilation warnings.
1720 2008-10-03 Ivan N. Zlatev <contact@i-nz.net>
1722 * HtmlElementEventArgs.cs, HtmlWindowCollection.cs:
1723 Cleanup compilation warnings.
1725 2008-10-03 Ivan N. Zlatev <contact@i-nz.net>
1727 * XplatUIWin32.cs: Cleanup compilation warnings.
1729 2008-10-03 Ivan N. Zlatev <contact@i-nz.net>
1731 * PropertyGrid.cs: Cleanup compilation warnings.
1733 2008-10-02 Jonathan Pobst <monkey@jpobst.com>
1735 * DataGridViewRow.cs: Only clear the row background if we
1736 are going to paint a new background.
1738 2008-10-02 Jonathan Pobst <monkey@jpobst.com>
1740 * DataGridViewCell.cs, DataGridViewColumnHeaderCell.cs,
1741 DataGridViewRowHeaderCell.cs: Remove PaintPartBorder and
1742 use PaintBorder instead.
1744 2008-10-02 Jonathan Pobst <monkey@jpobst.com>
1746 * DataGridView.cs: When CellBorderStyle is set, update the
1747 AdvancedCellBorderStyle to match.
1749 2008-10-02 Jonathan Pobst <monkey@jpobst.com>
1751 * DataGridViewCell.cs: Add helper methods to convert Alignment
1752 to TextFormatFlags and align rectangles.
1753 * DataGridViewTextBoxCell.cs: Use Alignment when painting text.
1754 * DataGridViewImageCell.cs: Use Alignment when painting the image.
1756 2008-10-02 Ivan N. Zlatev <contact@i-nz.net>
1758 * ToolTip.cs: Display tooltips only for controls on the active form.
1761 2008-10-02 Jonathan Pobst <monkey@jpobst.com>
1763 * DataGridView.cs: Make OnCellValueNeeded internal.
1764 * DataGridViewCell.cs: Raise the CellValueNeeded event so the
1765 user can supply their own value if they choose.
1767 2008-10-02 Jonathan Pobst <monkey@jpobst.com>
1769 * DataGridViewColumnHeaderCell.cs: Create a new style object
1770 so the DefaultCellStyle doesn't get changed.
1772 2008-10-02 Jonathan Pobst <monkey@jpobst.com>
1774 * ToolStripItem.cs: Check to make sure the owner is actually
1775 changing in InternalOwner before doing any work. Fixes some
1778 2008-10-01 Jonathan Pobst <monkey@jpobst.com>
1780 * DataGridViewColumnHeaderCell.cs: Correctly calculate style.
1781 * DataGridView.cs: Use a column header's inherited style instead
1782 of just using the default.
1784 2008-10-01 Jonathan Pobst <monkey@jpobst.com>
1786 * SplitContainer.cs: Raise SplitterMoved when the splitter is
1789 2008-10-01 Mario Carrion <mcarrion@novell.com>
1791 * ScrollBar.cs: Internal property added: UIAThumbPosition.
1793 2008-10-01 Jonathan Pobst <monkey@jpobst.com>
1795 * ToolStripOverflowButton.cs: Use InternalOwner instead of Owner.
1797 2008-10-01 Jonathan Pobst <monkey@jpobst.com>
1799 * ToolStripItem.cs: When the user sets Owner, we need to remove
1800 it from its previous owner and then add it to the new owner's
1801 item collection. Also, create InternalOwner, so we can set the owner
1802 that doesn't do this new stuff.
1803 * ToolStripItemCollection.cs: Use InternalOwner instead of Owner.
1805 2008-10-01 Jonathan Pobst <monkey@jpobst.com>
1807 * ToolStripItem.cs: When our parent changes, recalculate our text
1808 size, since we may be getting our Font from our parent. When our
1809 owner's Font changes, recalculate ourselves as we may be using
1812 2008-10-01 Everaldo Canuto <ecanuto@novell.com>
1814 * MenuAPI.cs: Select the first option of a popup when opening the popup via
1815 return key. [Fixes bug #413792].
1817 2008-10-01 Jonathan Pobst <monkey@jpobst.com>
1819 * ToolStripItem.cs: Make Font, BackColor, and ForeColor be
1820 ambient properties. (Get their value from their parents if
1821 values haven't been set.)
1823 2008-10-01 Jonathan Pobst <monkey@jpobst.com>
1825 * ToolStripSystemRenderer.cs: Call overridden methods' bases
1826 after our logic, so users can do painting by handling the events.
1827 Currently, we draw over any user painting.
1829 2008-10-01 Jonathan Pobst <monkey@jpobst.com>
1831 * ToolStripProfessionalRenderer.cs: Call overridden methods' bases
1832 after our logic, so users can do painting by handling the events.
1833 Currently, we draw over any user painting.
1835 2008-09-30 Everaldo Canuto <ecanuto@novell.com>
1837 * MenuAPI.cs: Prevent NRE when deactivate menu. Fixes #413636.
1839 2008-09-30 Jonathan Pobst <monkey@jpobst.com>
1841 * TreeNode.cs, TreeView.cs: Move logic that determines the node
1842 image to draw to TreeNode. Give Index/Keys put on the node
1843 precedence over the global one for the TreeView.
1845 2008-09-30 Jonathan Pobst <monkey@jpobst.com>
1847 * TreeNode.cs: Setting ImageIndex or ImageKey should reset the other.
1849 2008-09-29 Mario Carrion <mcarrion@novell.com>
1851 * ListBox.cs: Index fixed.
1853 2008-09-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1855 * TabControl.cs: When expanding the tab -because it's selected now-,
1856 using Right alignment, instead of adding some selected delta value to
1857 the X origin, substract it, so it gets a location adjacent to the panel,
1858 instead of be more separated.
1861 2008-09-29 Jonathan Pobst <monkey@jpobst.com>
1863 * MessageBox.cs: Use SystemIcons for graphics instead of keeping our
1866 2008-09-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1868 * X11Dnd.cs: source and related fields should be set to IntPtr.Zero,
1869 as well as the other static fields, to avoid using their previous
1870 values my mistake when handling the dnd events. This should avoid
1871 handling any status event after the drop has been finalized/cancelled.
1873 2008-09-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1875 * X11Dnd.cs: We have to send a dnd enter event as soon as we start the
1876 operation, instead of waiting until we get any movement - this will
1877 help us to have the data available in case no movement was detected
1878 and _still_ we have to fire DragEnter and DragLeave/DragDrop events.
1879 Finally add a windows.forms-only fallback to fire the mentioned events
1880 if no movement at all was detected, just like .net does.
1883 2008-09-27 Jonathan Pobst <monkey@jpobst.com>
1885 * ThemeWin32Classic.cs: When drawing a status bar panel, don't
1886 return early if the text is empty because the icon doesn't get
1887 drawn then. [Fixes bug #428113]
1889 2008-09-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1891 * FileDialog.cs: Implement basic support for sorting by columns in
1892 Details view. Patch by Eric Petit.
1895 2008-09-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1897 * ThemeWin32Classis.cs: When drawing gridlines take into account the
1898 case where ListView.ItemSize hasn't been computed, and provide a
1899 fallback as well. This prevents a division by 0.
1901 2008-09-24 Jonathan Pobst <monkey@jpobst.com>
1903 * ThemeVisualStyles.cs: Use ClientRectangle instead of Bounds to
1904 correctly draw tooltip backgrounds.
1906 2008-09-24 Jonathan Pobst <monkey@jpobst.com>
1908 * ImageList.cs: Change CopyTo implementation to ensure clones are
1909 created of our images.
1912 2008-09-24 Jonathan Pobst <monkey@jpobst.com>
1914 * Control.cs: When setting fonts, we need to ensure we change our
1915 reference to the new font object, even if it represents the same
1916 font as before. If we don't, the original font can get disposed
1917 and we will still try to use it.
1920 2008-09-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1922 * FileDialog.cs: Take into account Tile view when selecting the view
1925 2008-09-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1927 * ThemeWin32Classic.cs: When drawing gridlines for ListView don't use
1928 the item bounds, since we can't iterate over them in virtual mode.
1929 Also fix wrong calculation of the gridlines when using scrolling.
1932 2008-09-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1934 * XplatUIX11.cs: When handling EnterNotify events, take into account
1935 both the public and implicit controls when trying to detect the
1936 grab/ungrab process. This should fix ListView selection in Details
1939 2008-09-23 Jonathan Pobst <monkey@jpobst.com>
1941 * TreeView.cs: Redraw the whole node area when the selected node changes.
1942 Things like state images were not getting redrawn because the invalid
1943 rectangle was too small.
1946 2008-09-23 Mario Carrion <mcarrion@novell.com>
1948 * ListBox.cs: UIA Selection Pattern fully supported in ListBox control.
1951 2008-09-23 Jonathan Pobst <monkey@jpobst.com>
1953 * Form.cs: Do not set the Form's icon in the backend if showicon = false.
1956 2008-09-23 Jonathan Pobst <monkey@jpobst.com>
1958 * ThemeWin32Classic.cs: Allow tooltips to be multiline.
1961 2008-09-23 Jonathan Pobst <monkey@jpobst.com>
1963 * StatusBar.cs: Add tooltip support.
1966 2008-09-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1968 * ThemeWin32Classic.cs: Use StringAlignment.Center for the vertical
1969 alignments of sub items in Details view. Patch by John Mortlock (johnm at
1970 hlaustralia.com.au).
1973 2008-09-23 Neville Gao <nevillegao@gmail.com>
1975 * StatusBar.cs: Add UIA event in AddInternal () to support accessibility.
1978 2008-09-22 Jonathan Pobst <monkey@jpobst.com>
1980 * TextBoxBase.cs: Set Text to "" instead of null in Clear().
1983 2008-09-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1985 * ListView.cs: Don't do anything when EnsureVisible is called inside a
1986 BeginUpdate/EndUpdate block.
1989 2008-09-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1991 * ListViewItem.cs: The semantics for the public .ctor of
1992 ListViewSubItemCollection need us to already have a Text value for the
1993 item, which in our implementation have as available *after* adding the
1994 first sub item. So create an internal .ctor that satisfies our needs
1995 and let the public .ctor have the same semantics as .net.
1998 2008-09-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2000 * ListControl.cs: Changes in Formatting related values should call
2001 RefreshItems, as .net does.
2003 * ListBox.cs: In the respective overrides of RefreshItems calculate
2004 layout as well as refreshing - again, this is what .net does.
2007 2008-09-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2009 * ListBox.cs: In UpdateTopItem, don' call to XplatUI.ScrollWindow,
2010 since we are already doing that when we change the value of the
2011 scrollbar or force the call to ScrollWindow in the same method. This
2012 way we don't cause a Invalidate call for all the listbox bounds for
2013 methods calling UpdateTopItem with an already updated top item. This
2014 was happening specially calling EnsureVisible with already visible
2017 2008-09-18 Mike Gorse <mgorse@novell.com>
2019 * Application.cs, IKeyFilter.cs, X11Keyboard.cs, XplatUI.cs,
2020 XplatUIStructs.cs: Added KeyFilter
2023 2008-09-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2025 * RelatedPropertyManager.cs: The properties returned by
2026 GetItemProperties should be that ones of the *actual* object returned
2027 by the property, not the property type - this is very special when the
2028 property exposes a type, but the returned object actually is a child
2029 class and implements more functionality and properties.
2031 2008-09-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2033 * Binding.cs: Don't look for the property in the data source if the
2034 passed string is empty.
2036 2008-09-18 Ivan N. Zlatev <contact@i-nz.net>
2038 * XplatUIX11.cs: Comment out _NET_WM_WINDOW_TYPE_DIALOG in order to
2039 fix unused variable warnings.
2041 2008-09-18 Ivan N. Zlatev <contact@i-nz.net>
2043 * XplatUIX11.cs: Send WM_HELP when F1 is pressed.
2046 2008-09-18 Ivan N. Zlatev <contact@i-nz.net>
2049 - Do not set _NET_WM_WINDOW_TYPE_DIALOG for modal forms, because this
2050 leads to the window manager overriding our border style and zorder.
2051 - Allow the activation of non-modal forms, which are children of a
2055 2008-09-17 Ivan N. Zlatev <contact@i-nz.net>
2057 * XplatUIX11.cs, X11Structs.cs: For mapped windows SetTopMost should
2058 ask the window manager to do the work instead of changing the property
2062 2008-09-17 Everaldo Canuto <ecanuto@novell.com>
2064 * CurrencyManager.cs: Check for positon before call ChangeRecordState in
2065 AddNew to fix some navigation for empty datasets. [Fixes #323053]
2067 2008-09-17 Everaldo Canuto <ecanuto@novell.com>
2069 * FileDialog.cs: Remove OnPaint method on PopupButtonPanel and set
2070 InternalBorderStyle to BorderStyle.Fixed3D. It is the best way to get 3d
2071 border and fixes some drawing issues when resize form.
2073 2008-09-17 Everaldo Canuto <ecanuto@novell.com>
2075 * FileDialog.cs: Lots of layout fixes to mimic Win32. [Fixes #408752]
2077 * ThemeWin32Classic.cs: We don't need to reduce button size when it is
2080 2008-09-17 Ivan N. Zlatev <contact@i-nz.net>
2082 * TextBoxBase.cs: For standard textbox the scrollbars are always
2083 visible if Multiline is true.
2086 2008-05-12 Everaldo Canuto <ecanuto@novell.com>
2088 * DataGridTextBoxColumn.cs: Uncomment code accidentally commited in last
2091 2008-05-12 Everaldo Canuto <ecanuto@novell.com>
2093 [Fixes most od DBNull and HeadersVisible problems]
2096 - ShowingColumnHeaders removed because we dont need it, ColumnHeadersVisible
2097 returns the value that we need.
2098 - Fixed FromPixelToColumn method that return zero for first column and for
2099 row header cell, now it returns -1 for row header cell.
2100 - Fixed HitTest to check row header cell in column header area, it now
2101 returns HitTestType.None. [Fixes #322864]
2102 - Fixed the calculation of visible columns in UpdateVisibleColumn, now it
2103 checks for RowHeadersVisible and other things.
2104 - If an exception occurs when setting CurrentCell and user type 'yes' in
2105 message dialog, invalidade current and new cell and set setting_current_cell
2106 to false to prevent future errors. [Partially fixes #323050]
2108 * DataGridColumnStyle.cs: Don't call EndEdit after set property_descriptor
2109 value (SetColumnValueAtRow), it must be done by grid to properly show
2110 messages. [Fixes #323050]
2112 * ThemeWin32Classic.cs: Lots of fixes in DataGridPaintColumnHeaders to
2113 better draw column and row header. Also dont draw anything when column
2114 headers is not visible.
2116 2008-09-16 Jonathan Pobst <monkey@jpobst.com>
2118 * ThemeWin32Classic.cs: Hook ListViewItems into the ShowFocusCues
2121 2008-09-16 Jonathan Pobst <monkey@jpobst.com>
2123 * TreeView.cs: Don't start editing a node on right click, only
2126 2008-09-16 Jonathan Pobst <monkey@jpobst.com>
2128 * NativeWindow.cs: Reenable the ThreadExceptionDialog I accidentally
2129 disabled over a year ago.
2130 * Form.cs: Wrap calling Load in a try/catch because it can happen
2131 before the catch-all one in NativeWindow.
2134 2008-09-16 Jonathan Pobst <monkey@jpobst.com>
2136 * ToolStripDropDownMenu.cs: Calculate the connected area better
2137 to take into account when the drop down is not directly under the
2139 * ToolStripProfessionalRenderer.cs: Draw the whole unconnected area.
2141 2008-09-16 Mario Carrion <mcarrion@novell.com>
2143 * ScrollBar.cs: New event added: UIAValueChanged, generated when
2144 LargeChange, SmallChange, Maximum or Minimum values are changed.
2147 2008-09-16 Mario Carrion <mcarrion@novell.com>
2149 * ErrorProvider.cs: Component enabled to support accessibility.
2150 * Application.cs: Updated to Initialize UIA in ErrorProvider.
2153 2008-09-16 Jonathan Pobst <monkey@jpobst.com>
2155 * TextBoxBase.cs: Flag has_been_focused when SelectionStart is set
2156 so we don't highlight on first focus.
2159 2008-09-16 Jonathan Pobst <monkey@jpobst.com>
2161 * TextControl.cs: Correctly calculate the height of the area we
2162 need to invalidate when we have started scrolling and viewport_y
2163 is used. [Fixes bug #387608]
2165 2008-09-16 Jonathan Pobst <monkey@jpobst.com>
2167 * TextControl.cs: When getting the SelectedText, don't add in
2168 NewLine characters, as they are already contained in the lines.
2171 2008-09-16 Jonathan Pobst <monkey@jpobst.com>
2173 * TextBoxBase.cs: Replace the buggy Lines setter with one that
2174 simply concats the lines and send it to the Text setter.
2175 [Fixes issue #2 and #3 of 388115]
2177 2008-09-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2179 * Binding.cs: The default value of DataSourceNullValue should be
2180 Convert.DBNull actually. Also, the NullValue should only be used *if*
2181 itself is not null, and use the null/Convert.DBNull value instead.
2183 2008-09-15 Jonathan Pobst <monkey@jpobst.com>
2185 * TextControl.cs: Add a method to convert a string newline to the
2187 * TextBoxBase.cs: When the user hits enter, insert a native newline.
2188 [Fixes part 1 of bug #388115]
2190 2008-09-15 Mario Carrion <mcarrion@novell.com>
2192 * ToolTip.cs: UnPopup event set to internal to match public API.
2194 2008-09-15 Jonathan Pobst <monkey@jpobst.com>
2196 * TextBoxBase.cs: If the user is using Ctrl-Tab to move focus, we
2197 have to remove the Ctrl in order for the focus moving code to kick in.
2200 2008-09-15 Jonathan Pobst <monkey@jpobst.com>
2202 * CheckedListBox.cs: Return the real item index from Add. It may not be
2203 the last item if the list is sorted. The user can change the NewValue in
2204 the ItemCheck event, we need to use that value if so.
2205 * ListBox.cs: Return the real item index from a sorted Add.
2208 2008-09-15 Ivan N. Zlatev <contact@i-nz.net>
2210 * MimeIcon.cs: Add null checks in the GnomeHandler, because it might
2211 happen that the icons from the theme is missing or the particular size
2215 2008-09-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2217 * Binding.cs: When assigning null or DBNull depending on value/ref type,
2218 use IsValueType instead to get the precise desired value.
2221 2008-09-12 Jonathan Pobst <monkey@jpobst.com>
2223 * TreeNodeCollection.cs: When adding a new node to an opened node,
2224 we have to invalidate everything below the parent node because
2225 every node scoots down and we have to repaint them.
2228 2008-09-12 Jonathan Pobst <monkey@jpobst.com>
2230 * ThemeWin32Classic.cs: Take CheckBox and RadioButton's CheckAlign
2231 property into account when drawing.
2234 2008-09-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2236 * ListBox.cs: When calling Items.Clear(), call
2237 SelectedIndexCollection.ClearCore instead of normal Clear method, to
2238 not fire any Selected*Changed event - this is done to match .net and
2239 don't have invalid values when changing the DataSourceProperty.
2242 2008-09-12 Mario Carrion <mcarrion@novell.com>
2244 * HelpProvider.cs: Control enabled to support accessibility.
2245 * Application.cs: Updated to Initialize UIA in HelpProvider.
2248 2008-09-12 Jonathan Pobst <monkey@jpobst.com>
2250 * Form.cs: When we are showing a dialog box, if its owner is TopMost,
2251 make the dialog TopMost as well.
2254 2008-09-12 Jonathan Pobst <monkey@jpobst.com>
2256 * Win32DnD.cs, XplatUIWin32.cs: Applied patch from Andy Hume that handles
2257 clipboard data better.
2260 2008-09-12 Jonathan Pobst <monkey@jpobst.com>
2262 * TextBoxBase.cs: Applied patch from John Mortlock that ensures
2263 TextChanged and SelectionChanged events fire in the same order as .Net.
2266 2008-09-12 Jonathan Pobst <monkey@jpobst.com>
2268 * DataGridView.cs: When sorting a column, if it only contains numbers,
2269 do a numeric sort instead of a string sort.
2272 2008-09-12 Jonathan Pobst <monkey@jpobst.com>
2274 * TableLayoutSettings.cs, TableLayoutStyleCollection.cs: Guard
2275 against NRE's when the settings have a null panel.
2276 * TableLayoutPanel.cs: When setting the TableLayoutSettings, ensure
2280 2008-09-11 Mario Carrion <mcarrion@novell.com>
2282 * ToolTip.cs: Control enabled to support accessibility.
2283 * Application.cs: Updated to Initialize UIA in ToolTip.
2286 2008-09-11 Jonathan Pobst <monkey@jpobst.com>
2288 * Control.cs: Make the custom Enumerator internal to fix build.
2290 2008-09-11 Jonathan Pobst <monkey@jpobst.com>
2292 * DataGridViewCheckBoxCell.cs: If our content is clicked and we aren't
2293 already in edit mode, begin edit mode. Generally edit mode isn't
2294 started until the second click, but CheckBoxes are special.
2296 2008-09-11 Jonathan Pobst <monkey@jpobst.com>
2298 * ErrorProvider.cs: Never try to add our icons to ContainerControl,
2299 since that can be set to anything. Always add them to the Control's
2300 parent. [Fixes bug #416058]
2302 2008-09-11 Jonathan Pobst <monkey@jpobst.com>
2304 * ListView.cs: Use a custom enumerator for ListViewItemCollection
2305 so items can be deleted in a foreach.
2308 2008-09-11 Jonathan Pobst <monkey@jpobst.com>
2310 * DataGridViewRow.cs: Better implementation of GetPreferredHeight.
2311 Store the user set explicit height so that the row can be AutoSized
2312 and then when AutoSize is turned off, it can get its original size back.
2313 * DataGridView.cs: Use the Row's GetPreferredHeight instead of
2314 duplicating the logic. When setting AutoSizeRowsMode to None, reset
2315 rows' heights back to their explicit values.
2318 2008-09-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2320 * DateTimePicker.cs: When getting focus, select the checkbox if we are
2321 already showing it. Also, don't change its value when pressing space
2322 if the checkbox is not visible (ShowCheckBox as false). Finally, the
2323 checkbox should remain selected as long as Checked is false, and the
2324 other parts are disabled.
2327 2008-09-11 Jonathan Pobst <monkey@jpobst.com>
2329 * MessageBox.cs: Handle shortcut keys to dialog buttons.
2332 2008-09-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2334 * Binding.cs: When the value retrieved from the control property is
2335 null, don't return Convert.DBNull for Nullable instances, since they
2336 can *actually* get a null value.
2339 2008-09-10 Jonathan Pobst <monkey@jpobst.com>
2341 * Control.cs: Add an internal field to force doublebuffering regardless
2342 of what the public mechanisms are set to. This is because MS's native
2343 controls are doublebuffered even though their .Net bits are set to false.
2344 * ProgressBar.cs: Set force_double_buffer to true.
2347 2008-09-10 Jonathan Pobst <monkey@jpobst.com>
2349 * DataGridViewCheckBoxColumn.cs: Use the threestate constructor for
2351 * DataGridViewCheckBoxCell.cs: Add proper support for threestate.
2352 * DataGridViewCell.cs: Implement GetEditedFormattedValue for types
2353 without EditingControls, paint background selection for types without
2354 EditingControls, reset the EditingCellValueChanged flag when the
2355 cell's value is committed.
2356 * DataGridView.cs: Make BeginEdit and EndEdit work with cells that don't
2357 have EditingControls, remove a double call to a cell's OnContentClickInternal,
2358 don't do cell changing logic in OnMouseDown if the cell didn't change.
2361 2008-09-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2363 * DateTimePicker.cs: Fix the edition of am/pm specifier.
2365 2008-09-09 Jonathan Pobst <monkey@jpobst.com>
2367 * TextControl.cs: Add "&" to the list of valid characters in a URL.
2369 2008-09-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2371 * DateTimePicker.cs: Before incrementing or decrementing any part in
2372 the textbox, end any current edit. Also when ending the current edit
2373 use the editing_part_index field instead of the current selected
2374 value, since they can be out of synch, and we really need to work on
2375 the *real* current edit part. Finally when PartData.Selected changes,
2376 always try to end any ongoing edit.
2377 This should fix some small errors handling mouse navigation and
2378 increase/decrease operations.
2380 2008-09-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2382 * DateTimePicker.cs: 'hh' and 'HH' formats (12 and 24 hour formats
2383 respectively) should handled different, since the 12 hours format
2384 needs the value typed by the user to be adjusted depending on the
2385 a.m/p.m value, so it is preserved, and only changed when the value
2386 reaches the 12 value (when it changes from a.m to p.m).
2387 Fixes part of #416555.
2389 2008-09-08 Jonathan Pobst <monkey@jpobst.com>
2391 * ToolStrip.cs: Ensure MouseDown gets called for MenuStrip items.
2392 * ToolStripDropDownItem.cs: Don't fire events and such again if
2393 ShowDropDown is called on an already dropped down item.
2394 * ToolStripMenuItem.cs: Call ShowDropDown even if there aren't any
2395 subitems, the user may add some in the DropDownOpening event.
2398 2008-09-08 Jonathan Pobst <monkey@jpobst.com>
2400 * ComboBox.cs: Fix IOORE when setting SelectedItem to null.
2403 2008-09-08 Jonathan Pobst <monkey@jpobst.com>
2405 * MdiClient.cs: When looking for menustrips on a child form to merge,
2406 look inside ToolStripContainers.
2409 2008-09-08 Ivan N. Zlatev <contact@i-nz.net>
2411 * ErrorProvider.cs: Unbreak my previous commit.
2413 2008-09-08 Ivan N. Zlatev <contact@i-nz.net>
2415 * ErrorProvider.cs: Icon should always be 16x16.
2418 2008-09-07 Ivan N. Zlatev <contact@i-nz.net>
2420 * GridEntry.cs: Invalidate the child items cache when the property
2423 2008-09-07 Ivan N. Zlatev <contact@i-nz.net>
2425 * GridEntry.cs, PropertyGridView.cs:
2426 - Update the ReadOnly detection and rendering to finally hopefully
2427 match the one of MSFT.
2428 - Niceify and move the debug CWLS.
2431 2008-09-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2433 * ListView.cs: Don't call Invalidate at all from SetItemLocation,
2434 since we are already calling Invalidate for the entire control when
2435 needed - and call Redraw() when size changes, since we need to paint
2436 there by ourselved and not anymore from the mentioned method.
2437 This should improve the layout process. Also clean some not needed calls
2440 2008-09-05 Jonathan Pobst <monkey@jpobst.com>
2442 * MenuAPI.cs: Add a null check to the Alt-F4 code.
2445 2008-09-05 Jonathan Pobst <monkey@jpobst.com>
2447 * ThreadExceptionDialog.cs: Disable AutoScaling for this dialog.
2450 2008-09-04 Ivan N. Zlatev <contact@i-nz.net>
2452 * GridEntry.cs, CategoryGridEntry.cs, RootGridEntry.cs, PropertyGrid.cs,
2453 PropertyGridView.sc: Implement lazy/delayed propertygrid population
2454 on item expansion. Improves performance and fixes bug #417955.
2457 2008-09-05 Stephane Delcroix <sdelcroix@novell.com>
2459 * Control.cs: only check for OptimizedDoubleBuffer in NET_2_0.
2462 2008-09-04 Jonathan Pobst <monkey@jpobst.com>
2464 * TextControl.cs: Add "_" to the list of valid characters in a URL.
2467 2008-09-04 Jonathan Pobst <monkey@jpobst.com>
2469 * Control.cs: If using OptimizedDoubleBuffer, ensure the clip
2473 2008-09-04 Jonathan Pobst <monkey@jpobst.com>
2475 * FontDialog.cs: When storing our font size from the starting font,
2476 use SizeInPoints instead of Size in case Size is a different unit
2480 2008-09-04 Jonathan Pobst <monkey@jpobst.com>
2482 * FileDialog.cs: When enter is pressed on a SaveFileDialog and we
2483 don't use it for anything else, check if a directory is highlighted.
2484 If it is, navigate into it.
2487 2008-09-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2489 * Binding.cs: When acquiring a BindingManagerBase for the first time,
2490 check that the specified property actually exists in the data source,
2491 and throw an ArgumentException if that's not the case - this is only
2492 done for this scenario, since for later cases (such Position changes)
2493 we throw different exceptions (match .Net).
2495 2008-09-03 Ivan N. Zlatev <contact@i-nz.net>
2497 * ButtonBase.cs CheckBox.cs, Control.cs, FlowLayoutPanel.cs,
2498 FlowLayoutSettings.cs, GroupBox.cs, Label.cs, ListBox.cs,
2499 PropertyGrid.cs, RadioButton.cs, TableLayoutPanel.cs,
2500 TableLayoutSettings.cs, ToolStrip.cs, ToolStripDropDownButton.cs,
2501 ToolStripDropDownMenu.cs, ToolStripItem.cs, ToolStripSplitButton.cs,
2502 ToolStripStatusLabel.cs: Add missing PerformLayout calls to various
2506 2008-09-03 Neville Gao <nevillegao@gmail.com>
2508 * StatusBar.cs: Control enabled to support accessibility.
2511 2008-09-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2513 * Binding.cs: When connecting the event handler for the "Changed"
2514 event for the property, only do it for PropertyManager, and not for
2515 CurrencyManager - this is exactly what does .Net, totally ignoring any
2516 change in the property of the elements of a list.
2519 2008-09-02 Jonathan Pobst <monkey@jpobst.com>
2521 * XplatUIWin32.cs: Ensure we never send the WS_EX_MDICHILD flag
2522 to Windows when creating a window, as we fake MDI stuffs.
2525 2008-09-01 Ivan N. Zlatev <contact@i-nz.net>
2527 * TextBox.cs: Invalidate after UseSystemPasswordChar, so that the
2528 change takes effect.
2530 2008-08-24 Ivan N. Zlatev <contact@i-nz.net>
2532 * XplatUIX11.cs: Provide MouseButtons/State information to the XPlatUI.
2535 2008-08-27 Jonathan Pobst <monkey@jpobst.com>
2537 * DataGridView.cs: Raise CellContentClick event.
2538 [Fixes part of bug #420351]
2540 2008-08-27 Mario Carrion <mcarrion@novell.com>
2542 * ScrollBar.cs: Control enabled to support accessibility.
2545 2008-08-27 Mario Carrion <mcarrion@novell.com>
2547 * ComboBox.cs: Control enabled to support accessibility.
2550 2008-08-27 Mario Carrion <mcarrion@novell.com>
2552 * ListBox.cs: Control enabled to support accessibility.
2555 2008-08-27 Jonathan Pobst <monkey@jpobst.com>
2557 * ComboBox.cs: Don't suppress the TextChanged event when changing
2559 * ToolStripComboBox.cs: Listen to the ComboBox's TextChanged event
2563 2008-08-26 Jonathan Pobst <monkey@jpobst.com>
2565 * ErrorProvider.cs: Fix a regression NRE when setting properties
2566 for a control before it has a parent.
2569 2008-08-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2571 * Binding.cs: Use the BindingManagerBase.Current value to obtain
2572 connect the property "Changed" event, instead of using the data
2573 sources - this is useful when the property specifies actually a
2574 multiple objects path.
2575 Fixes part of #417973.
2577 2008-08-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2579 * RelatedPropertyManager.cs: PropertyManager instances associated to a
2580 nested properties should return not the properties of the data source
2581 itself, but the properties of the type of a specific property in the
2582 data source - match .net.
2584 2008-08-24 Gert Driesen <drieseng@users.sourceforge.net>
2586 * ListBox.cs (IntegerCollection): To avoid duplication, moved code for
2587 AddRange overloads into AddItems method, and added missing NULL check.
2588 Added extra argument check to RemoveAt for compatibility with MS.
2589 Modified IList implementation of Add, Contains, IndexOf and Remove to
2590 throw an ArgumentException if item is not an int. Modified IList.Insert
2591 to throw a NotSupportException instead of an Exception. Implemented
2593 (ObjectCollection): To avoid duplication, use AddItems method from
2594 AddRange overloads. On 1.0 profile, first perform NULL check on items
2597 2008-08-23 Gert Driesen <drieseng@users.sourceforge.net>
2599 * Control.cs: Do not modify bounds directly in .ctor's. Fixes bug
2602 2008-08-22 Atsushi Enomoto <atsushi@ximian.com>
2604 * X11Keyboard.cs : comment out some Console.WriteLine().
2606 2008-08-22 Atsushi Enomoto <atsushi@ximian.com>
2608 * X11Keyboard.cs : fixed wrong call to XOpenIM() which happened
2609 even if premises are not filled. Also XLookupString() was not
2610 receiving correct input, which blocked precise input handling
2613 2008-08-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2615 * ListView.cs: When calling OnCacheVirtualItems, cast to the right
2616 type of delegate, instead of EventHandler - this was causing a type
2617 cast exception in all apps handling this event.
2620 2008-08-20 Jonathan Pobst <monkey@jpobst.com>
2622 * ToolStripDropDownItem.cs: Always raise DropDownOpening in
2623 ShowDropDown to give the user a chance to dynamically add
2624 drop down items. [Step 1 of fixing bug #417877]
2626 2008-08-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2628 * X11Dnd.cs: Don't fire pseudo motion DragOver events if we haven't
2629 had any mouse motion since the call to StartDrag, to match the dnd
2631 Fixes part of #381876.
2633 2008-08-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2635 * XplatUIX11.cs: Only do the children control bounds check for EnterNotify
2636 if mode is NotifyUngrab, and let it flow if mode is NotifyNormal.
2637 Also, if we are actually moving into a different window after
2638 grabbing, generate a LeaveNotify event for the previous window, since
2639 we need to fire the leave events until the grab ends, not when
2640 actually moving outside of the control.
2642 2008-08-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2644 * XplatUIX11.cs: The check inside EnterNotify case to fire MouseEnter
2645 events only for client windows was wrong - we need to compare the
2646 client window against the window receiving the EnterNotify event, not
2647 against zero (since client window is never Zero, btw).
2648 This prevents having unnecessary handling of EnterNotify events for
2649 non-client windows when a gran begins.
2651 2008-08-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2653 * XplatUIX11.cs: Handling X ButtonPress events, we must *not* generate
2654 MouseMove/MotionNotify events at all (which should only happen after
2655 MouseUp/ButtonRelease, as .Net does).
2656 This avoids firing an extra and unnecessary MouseMove event just after
2657 every MouseDown event.
2659 2008-08-19 Jonathan Pobst <monkey@jpobst.com>
2661 * LinkLabel.cs: Always clear any previous links when LinkArea
2662 is set. [Fixes bug #410709]
2664 2008-08-19 Jonathan Pobst <monkey@jpobst.com>
2666 * ToolStripProfessionalRenderer.cs: Revert last change.
2667 * ProfessionalColorTable.cs: For Classic, use SystemColors.Window
2668 for ToolStripDropDownBackground.
2670 2008-08-19 Jonathan Pobst <monkey@jpobst.com>
2672 * ToolStripProfessionalRenderer.cs: Use Window color for the
2673 background of dropdowns to match .Net when the user is not
2674 using the default white. [Fixes bug #418108]
2676 2008-08-19 Atsushi Enomoto <atsushi@ximian.com>
2678 * XplatUIWin32.cs : SetTimer() used to set wrong window handle and
2679 it caused timer registration twice. Fixed bug #418107.
2681 2008-08-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2683 [Correction: This is the actual change to X11Dnd issue, not the
2684 previous one, which was actually a different issue.]
2686 * X11Dnd.cs: Increase the interval for the Timer, to not fire our
2687 pseudo motion HandleMouseOver method so aggresive. Also, don't call it
2688 when the pointer is actually in motion, but only when the pointer
2689 seems to stop (as .net does).
2690 Fixes part of #381876.
2693 2008-08-18 Jonathan Pobst <monkey@jpobst.com>
2695 * ListBox.cs: Fix CopyTo implementation.
2698 2008-08-18 Jonathan Pobst <monkey@jpobst.com>
2700 * ThemeWin32Classic.cs: Use ClientRectangle instead of Bounds when
2701 drawing a ComboBox's background. Fixes bad disabled rendering when
2702 the control is not at 0,0.
2705 2008-08-16 Ivan N. Zlatev <contact@i-nz.net>
2707 * GridEntry.cs: Leave the ICustomTypeDescriptor handling up to the
2708 ComponentModel layer, which will properly prioritize the attributes.
2709 Avoids wrong prioritization of duplicate attributes when retrieving
2710 the converter and editor.
2713 2008-08-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2715 * XplatUIX11.cs: Increase the interval for the Timer, to not fire our
2716 pseudo motion HandleMouseOver method so aggresive. Also, don't call it
2717 when the pointer is actually in motion, but only when the pointer
2718 seems to stop (as .net does).
2719 Fixes part of #381876.
2721 2008-08-15 Ivan N. Zlatev <contact@i-nz.net>
2723 * GridEntry.cs: Perform stricter check for the ParentEntry's
2724 PropertyDescriptor/PropertyOwner for the ICustomTypeDescriptor
2728 2008-08-14 Geoff Norton <gnorton@novell.com>
2730 * XplatUICarbon.cs: Properly implement PeekMessage and DoEvents.
2731 Fixes #396983. Properly fix ActiveWindow trackin and do not
2732 prematurely show POPUP windows.
2734 2008-08-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2736 * XplatUIX11.cs: Handle the obscured regions while scrolling using
2737 GraphicsExpose event, processing it just after we copy the scrolled
2738 area. This ensures that the next calls to ScrollWindow will copy
2739 regions already updated, and the scrolling will be smooth. Also remove
2740 the code that was trying to detect the obscured regions, since we are
2741 not using it anymore (too slow).
2743 2008-08-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2745 * ListBox.cs: Fix the -temporary- broken selection in ListBox for
2746 MultiExtended mode, by separating some logic between the ctrl/shift
2747 handling. Also ignore any MouseMove events generated together with
2748 MouseDown events - we are only interested in the real motion event.
2749 Fixes part of #414963.
2751 2008-08-08 Jonathan Pobst <monkey@jpobst.com>
2753 * DataGridViewCell.cs: Guard against an AOORE when checking if a cell
2754 is selected. [Fixes bug #414143]
2756 2008-08-07 Ivan N. Zlatev <contact@i-nz.net>
2758 * GridEntry.cs: Check if current property is a ICustomTypeDescriptor
2759 and not the parent one (the propertyowner). Fixes the behavior of
2760 GetConverter/GetEditor.
2763 2008-08-07 Ivan N. Zlatev <contact@i-nz.net>
2765 * PropertyGrid.cs: Refresh should also repopulate the PropertyGrid.
2766 [Fixes part of bug #415452]
2768 2008-08-05 Ivan N. Zlatev <contact@i-nz.net>
2770 * GridEntry.cs: ITypeDescriptorContext should be relative to the parent
2771 GridEntry, not the current.
2774 2008-08-04 Ivan N. Zlatev <contact@i-nz.net>
2776 * TextBoxBase.cs: De-internalize max_length field.
2777 * RichTextBox.cs: Use base.MaxLength - both TextBoxBase and RichTextBox
2778 share the same logic.
2781 2008-08-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2783 * ListBox.cs: Selection changes made in the MouseDown handler should
2784 use the *Core versions of selection in SelectedIndices collection,
2785 since the SelectedIndexChanged/SelectedValueChanged events are fired
2786 until we get a MouseUp event, and thus we need to separate the logic
2787 from the events, as done in the keyboard navigation. Also, fire those
2788 selection events from keyboard navigation in SelectionMode.None, even
2789 if we don't have a selection, as .Net does.
2791 2008-08-01 Jonathan Pobst <monkey@jpobst.com>
2793 * ToolStripButton.cs, ToolStripMenuItem.cs: Guard against a NRE my
2794 last change introduced when an item is clicked but isn't on a toolstrip.
2796 2008-07-31 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2798 * ListBindingHelper.cs: When looking for an object's properties, check
2799 if it implements ICustomTypeDescriptor, in which case we should
2800 resolve the propertu based on its GetProperties method, not in its
2801 actual properties. This is what .Net seems to do.
2802 Fixes a UsingWebBrowser problem during initialization.
2804 2008-07-31 Jonathan Pobst <monkey@jpobst.com>
2806 * ToolStrip.cs: Fix an NRE caused by clicking on a ToolStripButton
2807 sitting on a MenuStrip.
2809 2008-07-31 Jonathan Pobst <monkey@jpobst.com>
2811 * ToolStripButton.cs: If we "click" a top button on a menustrip that has
2812 no children with the keyboard, we need to release the keyboard capture.
2815 2008-07-31 Jonathan Pobst <monkey@jpobst.com>
2817 * ToolStripMenuItem.cs: If we "click" a top level menu item that has
2818 no children with the keyboard, we need to release the keyboard capture.
2821 2008-07-31 George Giolfan <georgegiolfan@yahoo.com>
2823 * ThemeVisualStyles.cs: Made ScrollBar rendering less strict so it supports
2824 the GTK+-based implementation of VisualStyles.
2825 * ThemeWin32Classic.cs: Exposed various layout values for use in the
2826 GTK+-based implementation of VisualStyles: ListViewGetHeaderHeight(Font),
2827 ListViewGetHeaderHeight(), ProgressBarChunkSpacing, ProgressBarGetChunkSize(),
2828 ProgressBarGetChunkSize(int), ProgressBarDefaultHeight,
2829 TrackBarGetThumbSize(), TrackBarVerticalTrackWidth,
2830 TrackBarHorizontalTrackHeight.
2832 2008-07-31 George Giolfan <georgegiolfan@yahoo.com>
2834 * TabControl.cs: Added hot style handling for the scroll buttons.
2835 right_slider_state, left_slider_state are now of type PushButtonState to
2836 allow for a hot state. Added tracking of the mouse button being held down
2837 on a tab page. Extracted HasHotElementStyles, RightScrollButtonArea,
2838 LeftScrollButtonArea.
2839 * Theme.cs, ThemeWin32Classic.cs: Removed TabControlGetLeftScrollRect,
2840 TabControlGetRightScrollRect.
2842 2008-07-30 Everaldo Canuto <ecanuto@novell.com>
2844 * MenuAPI.cs: Check for null GrabControl on ProcessMnemonic to prevent
2847 2008-07-30 Ivan N. Zlatev <contact@i-nz.net>
2849 * Form.cs: Ensure that we reset the shown_raised flag after
2850 the form is closed, so that we raise the show events the next
2851 time the form is shown.
2854 2008-07-30 Ivan N. Zlatev <contact@i-nz.net>
2856 * Form.cs: Ensure closing events are raised only once.
2859 2008-07-30 Ivan N. Zlatev <contact@i-nz.net>
2861 * X11Keyboard.cs: Refactor SendKeyboardInput to accept the keycode,
2862 so that we can successfully generate the LParam in-place instead of
2863 in KeyEvent, which isn't called for e.g. MainMenu. Fixes keyboard
2864 navigation for menus.
2866 2008-07-30 Everaldo Canuto <ecanuto@novell.com>
2868 * MenuAPI.cs: When montion don't set the keyboard navigation state to
2869 'navigating'. Fixes bug #411356.
2871 2008-07-30 Everaldo Canuto <ecanuto@novell.com>
2873 [Fixed remaining issues of #406773 (#1)]
2874 * MenuItem.cs: UpdateMenuItem added to track the shotcut changes.
2876 * MenuAPI.cs: Don't create tracker on TrackPopupMenu, it will be created in
2877 MainMenu (already done) and ContextMenu creation.
2879 * ContextMenu.cs: Create tracker on construction.
2881 2008-07-30 Everaldo Canuto <ecanuto@novell.com>
2883 * MenuAPI.cs: For ContextMenu set GrabControl on TrackPopupMenu, it make
2884 possible to instantiate MenuTracker without GrabControl.
2886 2008-07-30 Everaldo Canuto <ecanuto@novell.com>
2888 * MenuAPI.cs: On constructor dont set the GrabControl for non ContextMenu.
2890 * MainMenu.cs: Set GrabControl on SetForm using current form.
2892 2008-07-30 Everaldo Canuto <ecanuto@novell.com>
2894 * MenuAPI.cs: Chage grab_control to GrabControl and make it public.
2896 2008-07-30 Everaldo Canuto <ecanuto@novell.com>
2898 * MenuAPI.cs: Check if menu is activated before deactivate it in
2901 2008-07-30 Ivan N. Zlatev <contact@i-nz.net>
2903 * TableLayoutStyleCollection, TableLayoutStyle.cs, RowStyle.cs,
2905 Make the TableLayoutStyle owned by the the TableLayoutPanel, so that:
2906 - One style instance can only participate in a single style collection.
2907 - Styles can request their owner to layout whenever their properties
2909 [Fixes bugs #412583 and #412582]
2911 2008-07-29 Ivan N. Zlatev <contact@i-nz.net>
2913 * X11Keyboard.cs: Implement the generation of the LParam for
2914 all keyboard messages.
2917 2008-07-29 Jonathan Pobst <monkey@jpobst.com>
2919 * ListBox.cs: Don't let the user set TopIndex so high that it
2920 scrolls up far enough to show empty items.
2923 2008-07-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2925 * ThemeWin32Classic.cs: Actually commit the changes to fix #410880
2926 (I'm an idiot and forgot to commit the actual changes, as well as
2927 specify the right file, which is this one, not ListView.cs).
2929 2008-07-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2931 * ListView.cs: Don't draw ListViewSubItem instances from
2932 DrawListViewItem - we need to reuse the main item's drawing for the
2933 first sub item in case owner draw is true, but wants the system to
2934 do the default draw for the first sub item, without incurring in a
2938 2008-07-28 Jonathan Pobst <monkey@jpobst.com>
2940 * ToolStripButton.cs: Update Checked for CheckOnClick before
2941 raising the Click event. [Fixes bug #412505]
2943 2008-07-28 Ivan N. Zlatev <contact@i-nz.net>
2945 * Form.cs: Remove some seems leftover code for non-TopLevel's
2946 CreateParams, which is breaking ClientSize sizing, because it
2947 removes the border window styles.
2949 2008-07-27 Ivan N. Zlatev <contact@i-nz.net>
2951 * PropertyGrid.cs: Invalidate the View when the PropertyTab
2954 2008-07-25 Gert Driesen <drieseng@users.sourceforge.net>
2956 * WebBrowser.cs: Removed debug output.
2958 2008-07-25 Jonathan Pobst <monkey@jpobst.com>
2960 * FileDialog.cs: Apply patch from Ernesto to clean up some
2963 2008-07-25 Ivan N. Zlatev <contact@i-nz.net>
2965 * TableLayoutPanel.cs: Perform layout on GrowStyle change, so
2966 that the change has an immediate effect.
2968 2008-07-25 Ivan N. Zlatev <contact@i-nz.net>
2970 * ScrollableControl.cs: Update PerformLayout calls to include
2971 provide the name of the property that changed.
2973 2008-07-25 Ivan N. Zlatev <contact@i-nz.net>
2975 * TableLayoutPanel.cs: Draw relative to the DisplayRectangle
2976 location. Fixes drawing of border and cell borders if scrollable.
2978 2008-07-25 Ivan N. Zlatev <contact@i-nz.net>
2980 * ScrollableControl.cs: Perform layouting after the AutoScroll
2981 properties have changed, so that the changes have immediate
2985 2008-07-25 Ivan N. Zlatev <contact@i-nz.net>
2987 * XplatUIX11.cs: Non Client area is actually Client such in the
2988 case of NotifyIcon, so double check WholeWindow == ClientWindow
2989 when adding an expose.
2990 [Fixes bugs #324237 and #357022]
2992 2008-07-25 Ivan N. Zlatev <contact@i-nz.net>
2994 * TableLayoutPanel.cs: Invalidate after layouting, so that we
2995 repaint the cell borders.
2997 2008-07-25 Ivan N. Zlatev <contact@i-nz.net>
2999 * PropertyGridTextBox.cs: Stop filtering messages prior to our
3000 disposal to avoid unexpected ObjectDisposedExceptions.
3002 2008-07-24 Ivan N. Zlatev <contact@i-nz.net>
3004 * TableLayoutPanel.cs: Layout on Row/Column count change.
3006 2008-07-22 Gert Driesen <drieseng@users.sourceforge.net>
3008 * ListViewItem.cs: Changed binary serialization to match MS. Fixes
3010 * PictureBox.cs: When ImageLocation is set to null or an empty string,
3011 only set image to null if it was previously initialized from an url
3012 (or using ImageLocation). In ImageLocation, load specified image
3013 asynchronously if WaitOnLoad is false. Added support for local file
3014 paths to LoadAsync, and added missing argument check.
3016 2008-07-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3018 * DateTimePicker.cs:
3019 * ThemeWin32Classic.cs: Add a editing capability to DateTimePicker, in
3020 order to set the value as required (which means: when selection
3021 changes for a part being edited, and not before that if not needed).
3022 Also use an enum to describe which part are we using, and use the
3023 selection as a property in PartData, in order to notify the
3024 DateTimePicker owner that we need to end the current edit.
3027 2008-07-17 Ivan N. Zlatev <contact@i-nz.net>
3029 * PropertyGridTextBox.cs: Validation should be performed only if we
3030 are focused. We can lose focus for example if the Return key is used
3031 to set the entry and there is an error. When the message box is
3032 displayed we would have validate on click in the message box.
3034 2008-07-16 Ivan N. Zlatev <contact@i-nz.net>
3036 * GridEntry.cs: Checking for DesignerSerializaitonVisibility.Content
3037 in order to determine that we are expandable is wrong. There was a bug,
3038 now fixed, in TypeDescriptor that was causing the wrong converter to be
3039 returned which caused GetPropertiesSupported == false in most cases.
3042 2008-07-15 Jonathan Pobst <monkey@jpobst.com>
3044 * ImageList.cs: Fix ICollection.CopyTo implementation for
3045 ImageListCollection. [Fixes bug #409169]
3047 2008-07-14 Jonathan Pobst <monkey@jpobst.com>
3049 * MenuAPI.cs, ToolStripDropDown.cs: Use VirtualScreen instead of
3050 WorkingArea so that menus can appear on the second monitor
3051 when one has dual monitors.
3053 2008-07-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3055 * TextBox.cs: Auto complete stuff in WndProc should be 2.0 only.
3058 2008-07-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3060 * TextBox.cs: Implement navigation support for auto complete in
3061 TextBox, as well as refactor the code to show the auto complete window
3062 when receiving a WM_CHAR message, instead of TextChanged, since
3063 autocomplete itself should be able to set the Text a lot of times and
3064 finally only typing should show it, not changes from code.
3066 2008-07-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3068 * TabControl.cs: When expanding the selected tab, don't adjust the
3069 width if alignment is Right, since it has a different offset than 0,
3070 as opposed to the other alignments.
3071 Fixes the selected tab not being painted at all with alignment = Right
3072 and using FillToRight size mode.
3074 2008-07-14 Jonathan Pobst <monkey@jpobst.com>
3076 * TreeView.cs: Fix ToString to match MS. [Fixes bug #409029]
3078 2008-07-14 Jonathan Pobst <monkey@jpobst.com>
3080 * NumericUpDown.cs: Apply patch from Andy Hume to clamp out of range
3081 values from the textbox to the boundary values. [Fixes bug #409026]
3083 2008-07-14 Jonathan Pobst <monkey@jpobst.com>
3085 * TreeNodeCollection.cs: We were copying one too many elements when
3086 doing our array copy. Fixes a crash when RemoveAt is called.
3089 2008-07-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3091 * TabControl.cs: When doing the layout and need to call FillRow -using
3092 FillToRight size mode-, use the overload receiving a bool param
3093 indicating whether we need to do a vertical or horizontal calculation.
3094 Fixes part of #399583.
3096 2008-07-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3098 * TextBox.cs: When painting, use the value returned by
3099 GetLastVisibleItem instead of using the cached last_item field, since
3100 there could be a desynchronization between the layout and the
3101 painting. Fixes a AOOR exception in auto complete mode.
3103 2008-07-12 George Giolfan <georgegiolfan@yahoo.com>
3105 * ThemeVisualStyles.cs: Disabled when Application.VisualStyleState is
3106 NonClientAreaEnabled until our VisualStyles is modified to allow it.
3108 2008-07-12 Gert Driesen <drieseng@users.sourceforge.net>
3110 * TextBox.cs: Fixed NRE in LostFocus. Avoid unnecessary initialization.
3112 2008-07-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3114 * TextBox.cs: When focus is lost, if the auto complete listbox is
3117 2008-07-11 George Giolfan <georgegiolfan@yahoo.com>
3119 * InternalWindowManager.cs: HandleSizing: Implemented a better minimum
3120 tracking size for tool windows.
3121 * Theme.cs, ThemeWin32Classic.cs : Extracted
3122 ManagedWindowSpacingAfterLastTitleButton.
3124 2008-07-11 Jonathan Pobst <monkey@jpobst.com>
3126 * ThemeEngine.cs: Remove the clearlooks, nice, and old gtk themes.
3127 They are bit-rotted and have always been listed as "unsupported".
3129 2008-07-11 Jonathan Pobst <monkey@jpobst.com>
3131 * PictureBox.cs: Don't crash if ImageLocation is set to "" or null.
3133 2008-07-11 George Giolfan <georgegiolfan@yahoo.com>
3135 * ThemeVisualStyles.cs: Fixed minimized window height adjustment.
3137 2008-07-10 Jonathan Pobst <monkey@jpobst.com>
3139 * ListBox.cs: Make sure last_item_visible gets reset before we try
3140 to do a layout due to scrollbars appearing or disappearing.
3143 2008-07-10 Jonathan Pobst <monkey@jpobst.com>
3145 * XPlatUIWin32.cs: Change GetMenuOrigin to calculate borders better
3146 for different window themes. [Fixes bug #339140]
3148 2008-07-10 George Giolfan <georgegiolfan@yahoo.com>
3150 * ThemeWin32Classic.cs: Implemented minimized window border width properly,
3151 in ManagedWindowBorderWidth.
3153 2008-07-10 Jonathan Pobst <monkey@jpobst.com>
3155 * InternalWindowManager.cs: Change MouseMove to take a point, so
3156 we can use the same point later on.
3157 * MdiWindowManager.cs: Store point sent to MouseMove so we can
3158 later reset to it. On Windows, the Cursor.Position had already
3159 changed by the time we were resetting to it.
3162 2008-07-10 Jonathan Pobst <monkey@jpobst.com>
3164 * InternalWindowManager.cs: Ignore mouse actions on TitleButtons that
3166 * ThemeWin32Classic.cs: Disable or hide MinimizeBox/MaximizeBox if
3170 2008-07-10 Jonathan Pobst <monkey@jpobst.com>
3172 * MdiWindowManager.cs: Double-clicking on the title bar should not
3173 maximize a MDI form if MaximizeBox = false.
3175 2008-07-10 George Giolfan <georgegiolfan@yahoo.com>
3177 * ThemeVisualStyles.cs: Fixed a warning.
3179 2008-07-10 George Giolfan <georgegiolfan@yahoo.com>
3181 * ThemeVisualStyles.cs: Fixed warnings and formatted.
3183 2008-07-10 George Giolfan <georgegiolfan@yahoo.com>
3185 * ThemeVisualStyles.cs: Removed ManagedWindowGetMenuButtonSize. The base
3186 implementation produces a better result.
3188 2008-07-10 George Giolfan <georgegiolfan@yahoo.com>
3190 * ThemeVisualStyles.cs: Adjusted height and border rendering for minimized
3193 2008-07-10 George Giolfan <georgegiolfan@yahoo.com>
3195 * Application.cs: Added VisualStylesEnabled because XplatUI.ThemesEnabled
3196 cannot be used from the ThemeEngine constructor.
3197 * ThemeEngine.cs: Changed the XplatUI.ThemesEnabled check to
3198 Application.VisualStylesEnabled because it does not work on X11.
3200 2008-07-09 Jonathan Pobst <monkey@jpobst.com>
3202 * StatusBar.cs: Apply patch from Andy Hume to remove lazy instantiation
3203 that we did not always check for, as well as fixes to the IList
3204 implementations. [Fixes bug #402703]
3206 2008-07-09 George Giolfan <georgegiolfan@yahoo.com>
3208 * IDeviceContext.cs: Added Dispose.
3210 2008-07-09 George Giolfan <georgegiolfan@yahoo.com>
3212 * Control.cs: Added OnSizeInitializedOrChanged.
3213 * Form.cs: OnLoadInternal: Added a call to
3214 Control.OnSizeInitializedOrChanged.
3215 * InternalWindowManager.cs:
3216 * HandleTitleBarMouseMove: No longer invalidates the parent window.
3217 * DrawTitleButton: Extracted Theme.ManagedWindowDrawMenuButton.
3218 * TitleButton: Added Entered.
3219 * TitleButtons.MouseMove: Added handling of TitleButton.Entered.
3220 * MdiWindowManager.cs:
3221 * HandleTitleBarMouseMove: Now invalidates the parent window when a mouse
3222 move over the maximized title buttons causes a change.
3223 * IsActive: Can now be called before the window is added to a MDI parent.
3224 * Theme.cs: Added ManagedWindowTitleButtonHasHotElementStyle,
3225 ManagedWindowDrawMenuButton, ManagedWindowOnSizeInitializedOrChanged.
3226 * ThemeVisualStyles.cs: Implemented proper managed window rendering.
3227 * ThemeWin32Classic.cs:
3228 * Extracted ManagedWindowDrawTitleBarAndBorders, ManagedWindowDrawTitleButton.
3229 * DrawTitleButton takes a new form parameter.
3230 * Added ManagedWindowTitleButtonHasHotElementStyle,
3231 ManagedWindowDrawMenuButton, ManagedWindowOnSizeInitializedOrChanged.
3233 2008-07-09 George Giolfan <georgegiolfan@yahoo.com>
3235 * ThemeEngine.cs: ThemeVisualStyles is now selected if
3236 Application.EnableVisualStyles has been called, even if the current system
3237 configuration does not support rendering with Visual Styles.
3238 * ThemeVisualStyles.cs: Now falls back to ThemeWin32Classic when Visual
3239 Styles should not be used.
3241 2008-07-08 Jonathan Pobst <monkey@jpobst.com>
3243 * ComboBox.cs: PreferredHeight is not tied to ItemHeight. Fixes 3rd
3244 ComboBox in FormsTest.
3246 2008-07-08 Ivan N. Zlatev <contact@i-nz.net>
3248 * ThemeWin32Classic.cs: (ManagedWindowBorderWidth): width 3 is only
3249 for fixed toolwindows.
3251 2008-07-08 George Giolfan <georgegiolfan@yahoo.com>
3253 * Form.cs: SetBoundsCore: Added minimum size for minimized windows.
3255 2008-07-07 Ivan N. Zlatev <contact@i-nz.net>
3257 * Control.cs: CreateControl just returns if the Control is diposed
3258 and doesn't throw ObjectDisposedException.
3261 2008-07-07 Ivan N. Zlatev <contact@i-nz.net>
3263 * Control.cs: Do not create the control if the parent isn't created
3264 yet, e.g in the case of a parented form on which .Show is called.
3265 It will be created when the parent is made visible/created.
3268 2008-07-07 Ivan N. Zlatev <contact@i-nz.net>
3270 * Form.cs: Avoid recursively calling OnSizeChanged due to recursive
3271 WM_WINDOWPOSCHANGED caused by the layouting code on win32.
3274 2008-07-07 Ivan N. Zlatev <contact@i-nz.net>
3276 * Form.cs: When disposed set owner to null. Improves #402446.
3278 2008-07-07 Ivan N. Zlatev <contact@i-nz.net>
3280 * Form.cs, FlowLayoutPanel.cs: When calculating the PreferredSize
3281 use children's PreferredSize if in AutoSize mode and ExplicitBounds
3283 * Form.cs: Take the Padding into account for the PreferredSize.
3286 2008-07-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3288 * TabControl.cs: Since we don't support more than one direction in
3289 TabControl rows alignment (this is, the row becomes the
3290 bottom row when selected), make Direction return always 1. This way
3291 the layout doesn't get confused about a bad calculation.
3294 2008-07-07 Ivan N. Zlatev <contact@i-nz.net>
3296 * XplatUIX11.cs: Implement NC hit-testing for mouse down/up messages,
3297 so that the wparam is properly set.
3298 Fixes form moving in the test case in bug 402446.
3300 2008-07-07 Jonathan Pobst <monkey@jpobst.com>
3302 * FolderBrowserDialog.cs: If we can't find the SelectedPath, display
3303 the full tree instead of nothing. [Improves bug #406584]
3305 2008-07-07 George Giolfan <georgegiolfan@yahoo.com>
3307 * ThemeWin32Classic.cs: Adjusted minimized window painting.
3309 2008-07-07 George Giolfan <georgegiolfan@yahoo.com>
3311 * InternalWindowManager.cs: No longer draws decorations for maximized MDI
3314 2008-07-04 Jonathan Pobst <monkey@jpobst.com>
3316 * TreeView.cs: Add a null check when using CollapseAll on an
3317 empty tree. [Fixes bug #406449]
3319 2008-07-03 Jonathan Pobst <monkey@jpobst.com>
3321 * Form.cs: Make OnMenuComplete internal so we can call it.
3322 * MenuAPI.cs: Raise Form.MenuComplete when a menu item is clicked.
3325 2008-07-03 Jonathan Pobst <monkey@jpobst.com>
3327 * TabControl.cs: Handle Up and Down keys when TabControl is in
3331 2008-07-03 Jonathan Pobst <monkey@jpobst.com>
3333 * TabControl.cs: Invalidate when we remove a tab. Guard against
3334 an AOORE when trying to remove a tabpage that is not owned by the
3338 2008-07-03 Jonathan Pobst <monkey@jpobst.com>
3340 * ScrollBar.cs: Change the LargeChange calculation to be correct.
3341 Ensure we are using LargeChange instead of large_change so we our
3342 calculations are correct.
3345 2008-07-03 Jonathan Pobst <monkey@jpobst.com>
3347 * TableLayoutPanel.cs: When we change to a serialized TableLayoutSettings,
3348 we need to ensure the ColumnCount/RowCount gets set.
3351 2008-07-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3353 * ListBox.cs: When handling item navigation, if selection mode is
3354 None, call EnsureVisible, since scrolling is normally handled by
3355 selection, that we are not calling in this case.
3358 2008-07-02 Jonathan Pobst <monkey@jpobst.com>
3360 * ContainerControl.cs: Apply a patch from Ernesto Carrea that adds
3361 a null check to our focus walking code. [Fixes bug #394332]
3363 2008-07-02 Andy Hume <andyhume32 at yahoo dot co dot uk>
3365 * ComboBox.cs: Case missed in bug 379596 "Support item
3366 navigation by entering text": On _close_ drop-down select
3367 the first item matching the text in the textbox. [Fixes bug #397265]
3369 2008-07-02 Jonathan Pobst <monkey@jpobst.com>
3371 * DataGridView.cs: Fix a crash when sorting by column headers,
3372 mentioned in bug #404841. Remove some dead switch cases.
3374 2008-07-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3377 * TextBox.cs: Implement AutoComplete support for ComboBox, which just
3378 uses the AutoComplete support in the internal TextBox. Also TextBox
3379 can store a reference to ComboBox, in case AutoCompleteSource is set
3380 to ListItems (this is, ComboBox's items, and we don't want to pass an
3381 additional collection).
3383 2008-07-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3385 * ListViewItem.cs: Restore the initial value of bounds rect to
3386 Rectangle.Empty, and is this value for Layout detection in virtual
3387 mode. Fixes the tests.
3389 2008-06-30 Jonathan Pobst <monkey@jpobst.com>
3391 * XPlatUI.cs: Remove references to "new" X11 backend.
3393 2008-06-28 Ivan N. Zlatev <contact@i-nz.net>
3395 * Control.cs: Add an internal virtual OnDragDropEnd method
3396 to allow controls such as ListBox, which depend on a sequence
3397 of MouseDown+Move+End events, to handle the lack of a MouseUp
3398 when a DnD operation is started in MouseDown.
3399 * ListBox.cs: If a DnD operation is started in MouseDown we won't
3400 get a MouseUp, so reset our state whenever a DnD operation ends.
3402 2008-06-28 Ivan N. Zlatev <contact@i-nz.net>
3404 * PropertyGrid.cs: Clear the root griditem first thing when
3405 new object/s is/are selected. Fixes some rare cases where
3406 the View will get a paint request and won't know that the
3407 grid is in the process of repopulating.
3409 2008-06-27 Ivan N. Zlatev <contact@i-nz.net>
3411 * XplatUIX11.cs, InternalWindowManager.cs:
3412 If WS_EX_TOOLWINDOW is set in the CreateParams for a form MS
3413 doesn't automagically update the FormBorderStyle, so we must
3414 double check the CreateParams explicitly to determine if the
3415 window is a toolwindow.
3416 * ThemeWin32Classic.cs: Use InternalWindowManager.IsToolWindow
3417 instead of doing custom checks.
3419 Fixes toolwindows for the test case in bug #402446
3421 2008-06-27 Ivan N. Zlatev <contact@i-nz.net>
3423 * Control.cs: Visibility of the control should be false
3424 when the handle is destroyed in WmDestroy and not immediately
3425 in Dispose(). This is effectively where the disposing process
3426 ends even though the control is marked as Disposed immediately
3427 after calling Dispose().
3430 2008-06-27 Ivan N. Zlatev <contact@i-nz.net>
3432 * PropertyGridTextBox.cs: Start monitoring the mouse clicks
3433 when the textbox gets focus.
3436 2008-06-27 Ivan N. Zlatev <contact@i-nz.net>
3438 * PropertyGridTextBox.cs, PropertyGridView.cs:
3439 - Alt + Down should show the drop down editor.
3440 - Focus the editor when showing it
3443 2008-06-25 Jonathan Pobst <monkey@jpobst.com>
3445 * ThemeWin32Classic.cs: Fix from Andy for panel text for panels
3446 that are not the first panel.
3447 * StatusBar.cs: Ensure that the X coordinate of panels is always
3448 stored. Fix IList implementation of StatusBarPanelCollection to
3449 call the regular methods.
3450 [Fixes bug #403599, #402165]
3452 2008-06-23 Jonathan Pobst <monkey@jpobst.com>
3454 * ThemeWin32Classic.cs: Fix position calculation for centered
3455 text on status bar panels. [Fixes bug #402165]
3457 2008-06-22 Ivan N. Zlatev <contact@i-nz.net>
3459 * Splitter.cs: Fix Splitter to:
3460 - Work for arbitrary splitter size
3461 - Handle MinSize and MinExtra properly
3462 - Get rid of absolute positioning during drag and use relative
3463 - Multiple other fixes
3466 2008-06-22 Ivan N. Zlatev <contact@i-nz.net>
3468 * Cursor.cs: Show shouldn't hide the cursor.
3470 2008-06-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3472 * ListViewItem.cs: When invalidating, add some extra space to bounds,
3473 since focus rectangle and selection can add some space and need to
3474 take into account those small offsets - specially in Details view.
3475 * ListView.cs: Instead of invalidate using item Bounds directly, call
3476 item.Invalidate, to have the code centralized.
3477 Fixes focused/selection garbage when selecting and deselecting items
3480 2008-06-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3482 * ListViewItem.cs: Set bounds initially to -1 values - thus in virtual
3483 mode we can check whether we have to force a Layout or not, and can
3484 cache based on this, instead of avoiding caching all the the time. Do
3485 this check in GetBounds and TextBounds.
3486 Fixes selection in Details view.
3488 2008-06-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3490 * ListView.cs: Make HeaderControl internal, thus the theme engine can
3491 get its *real* height instead of trying to infere it.
3492 * ThemeWin32Classic.cs: When drawing gridlines, don't iterate over the items to
3493 get the position of them, since it's in general a bad idea in general,
3494 and because we can't do that in virtual mode. Instead get the first
3495 visible item as well as item height, and draw them.
3498 2008-06-20 Jonathan Pobst <monkey@jpobst.com>
3500 * ToolStripSplitButton.cs: We can't add in extra width if
3501 the button is not AutoSize. [Fixes bug #401279]
3503 2008-06-20 Ivan N. Zlatev <contact@i-nz.net>
3505 * PaddingConverter.cs:
3506 - Implement conversion to InstanceDescriptor
3507 - Handle "All" in CreateInstance by using the supplied
3508 ITypeDescriptorContext.
3509 [Fixes bugs #396076 and #396078]
3511 Patch by Andy Hume <andyhume32@yahoo.co.uk>
3512 Code contributed under MIT/X11 license.
3514 2008-06-19 Andy Hume <andyhume32 at yahoo dot co dot uk>
3516 * ComboBox.cs, ListControl.cs, Control.cs, Button.cs,
3518 Add Category attributes.
3519 Code is contributed under the MIT/X11 license.
3521 2008-06-18 Ivan N. Zlatev <contact@i-nz.net>
3524 - Fix a NRE when unparenting a form.
3525 - Do not recreate or destroy a parented form when
3528 2008-06-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3530 * TextBox.cs: Implement basic support for AutComplete with custom
3533 2008-06-18 Jonathan Pobst <monkey@jpobst.com>
3535 * ToolStripSplitButton.cs: Left and Top of ButtonBounds, SplitterBounds,
3536 DropDownButtonBounds should be from the origin of the button, not the
3537 ToolStrip. [Fixes bug #401279]
3539 2008-06-16 Sandy Armstrong <sanfordarmstrong@gmail.com>
3541 * X11DesktopColors.cs: Clear GTK_MODULES environment variable before
3542 running gtk_init_check. This prevents GAIL from loading
3543 unnecessarily, which was breaking UIA support. Initial fix for bug
3545 * Application.cs: Add UIA support to Winforms. New static constructor
3546 uses reflection to initialize UIAutomationWinforms assembly. Added
3547 PreRun event so UIA can initialize before the mainloop starts, and
3548 FormAdded event so UIA can provide a11y support for new Forms in an
3551 2008-06-16 Jonathan Pobst <monkey@jpobst.com>
3553 * DataGridView.cs: When binding to a dataset, subscribe to table
3554 and column change events. Unsubscribe to these when we clear bindings.
3557 2008-06-14 Everaldo Canuto <ecanuto@novell.com>
3559 [DataGrid drawing refactory]
3561 * DataGrid.cs: Fix the caption size, we need one pixel more for divider.
3563 * DataGridColumnStyle.cs: Removing PaintHeader code, the draw operations
3564 must be handle by Theme, now it call DataGridPaintColumnHeader.
3566 * DataGridTextBoxColumn.cs: Fix the textbox size. It must be one pixel less,
3567 test cases must be also fixed because it checks for wrong size.
3569 * ThemeWin32Classic.cs:
3570 - Draw the bottom line of grid caption.
3571 - Prevent to draw caption text when it is empty.
3572 - Use CPDrawBorder3D for 3D efects to simplify code.
3573 - Uses 3D (when not flat) to paint corner shared between row and column
3575 - Fix header drawing issues on win32, now borders are drawing.
3576 - Fix column header paint issues to mimic win32.
3577 - Adjust header drawing for last column, like first one it must be draw
3579 - Added DataGridPaintRowHeaderStar to draw star like .net does, it is
3581 - DataGridPaintColumnHeader created to draw column headers, it also
3582 paint stuff right on Win32.
3583 - Use DataGridPaintColumnHeader method instead of DataGridColumnStyle
3587 - DataGridPaintRowHeaderStar method added.
3588 - DataGridPaintColumnHeader method added.
3590 2008-06-13 Jonathan Pobst <monkey@jpobst.com>
3592 * Control.cs: Don't reset to Dock style layout if DockStyle is
3593 set to none. [Fixes bug #399316]
3595 2008-06-12 Everaldo Canuto <ecanuto@novell.com>
3597 * Win32DnD.cs: Fix the check for control not equal null.
3598 Fixes bug #341420 and #381886.
3600 2008-06-12 Jonathan Pobst <monkey@jpobst.com>
3602 * DataGridViewRowCollection.cs: Update the indexes of rows after
3603 one has been removed.
3604 * DataGridViewSelectedRowCollection.cs: Add internal clear method.
3605 * DataGridViewSelectedColumnCollection.cs: Add internal clear method.
3606 * DataGridView.cs: Add support for deleting rows via Delete key, deleting
3607 rows for the Rows collection, or deleting rows from the bound DataSet.
3609 2008-06-12 Jonathan Pobst <monkey@jpobst.com>
3611 * DataGridView.cs: Listen to a DataSet's changed event even
3612 when autogeneratecolumns is false. Refactor the changed event's
3613 add row code to use the same as the existing add row code.
3616 2008-06-11 Jonathan Pobst <monkey@jpobst.com>
3618 * TextBoxBase.cs: We need to call RaiseSelectionChanged pretty
3619 much any time the caret moves and there is text, not just when
3620 the selection changes as one would think.
3621 * RichTextBox.cs: Override RaiseSelectionChanged and fire
3625 2008-06-11 Jonathan Pobst <monkey@jpobst.com>
3627 * FontDialog.cs: Forward ListBox keyboard events to the ListBox
3628 instead of trying to duplicate the code.
3629 * ListBox.cs: Make method internal so we can send keyboard events.
3632 2008-06-11 Jonathan Pobst <monkey@jpobst.com>
3634 * TextBoxBase.cs: When pasting and checking the max length,
3635 subtract the selected text length (the text we will be replacing) from
3636 the document length.
3637 * TextControl.cs: Ensure every character insertion is reflected in
3638 charcount, so max length will work properly.
3641 2008-06-11 Jonathan Pobst <monkey@jpobst.com>
3643 * ListBox.cs: Ensure scrollbars are updated when a single
3644 column listbox with an already set top-index is created.
3647 2008-06-11 Jonathan Pobst <monkey@jpobst.com>
3649 * FontDialog.cs: Typing in the font/style textboxes should search
3650 the list boxes case-insensitively. [Fixes bug #398343]
3652 2008-06-11 George Giolfan <georgegiolfan@yahoo.com>
3654 * ThemeWin32Classic.cs: Managed window title bar layout now uses actual
3655 widths of icon and buttons instead of hard coded values.
3657 2008-06-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3659 * ListBox.cs: When SelectionMode is None, clicking an item should move focus
3660 as well as generating a SelectedIndexChanged event, just like .Net does
3664 2008-06-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3666 * ListBox.cs: When navigating items visually, use FocusedItem as the
3667 reference point instead of SelectedIndex, since even in
3668 SelectionMode.None we need to support navigation, and in that case we
3669 just can't use SelectedIndex.
3670 Fixes part of #398345.
3672 2008-06-10 Jonathan Pobst <monkey@jpobst.com>
3674 * Control.cs: Make a SetBoundsInternal that avoids the new
3676 * ComboBox.cs, Form.cs, ListBox.cs, ScrollableControl.cs: Use
3677 SetBoundsInternal instead of SetBoundsCoreInternal.
3679 2008-06-10 Ivan N. Zlatev <contact@i-nz.net>
3681 * ScrollableControl.cs: Use SetBoundsCoreInternal instead of
3682 SetBounds for the scrollbars.
3684 2008-06-10 Andreia Gaita <avidigal@novell.com>
3686 * HtmlDocument.cs: Implement RightToLeft, ContextMenuShowing,
3687 FocusingEvent, LosingFocusEvent, OnMouseDown, OnMouseLeave,
3688 OnMouseMove, OnMouseOver, OnMouseUp
3689 * HtmlElement.cs: Optimize InsertBefore. Implement RemoveFocus,
3690 ScrollIntoView, Focusing, GotFocus, LosingFocus, LostFocus.
3691 * HtmlElementCollection.cs, HtmlWindowCollection.cs: Keep a reference
3692 to the WebControl object to pass to new collection objects
3693 * HtmlHistory.cs: Implement support for individual window histories.
3694 * HtmlWindow.cs: Implement History, Position, Size, WindowFrameElement,
3695 AttachEventHandler, DetachEventHandler, RemoveFocus, Error,
3696 GotFocus, LostFocus, OnLoad, OnUnload
3697 * WebBrowser.cs: Implement EncryptionLevel, ScrollBarsEnabled,
3699 * WebBrowserBase.cs: Implement Cursor, Enabled, UseWaitCursor, Add
3700 security level changes and context menu event support.
3702 2008-06-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3704 * ComboBox.cs: Pressing Enter should close the dropdown listbox, just
3705 as happens with Esc, patch my Andy Hume.
3708 2008-06-10 George Giolfan <georgegiolfan@yahoo.com>
3710 * MdiWindowManager.cs: DrawMaximizedButtons now uses
3711 ManagedWindowGetMenuButtonSize instead of ManagedWindowButtonSize.
3712 * Theme.cs: Made MenuButtonSize platform dependent. Added
3713 ManagedWindowButtonSize.
3714 * ThemeWin32Classic.cs: Added ManagedWindowGetMenuButtonSize.
3715 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added MenuButtonSize.
3717 2008-06-10 George Giolfan <georgegiolfan@yahoo.com>
3719 * DateTimePicker.cs, Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs:
3720 Added support for rendering with VisualStyles.
3722 2008-06-10 George Giolfan <georgegiolfan@yahoo.com>
3724 * ComboBox.cs, Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs: Added
3725 support for rendering the border with VisualStyles.
3727 2008-06-10 George Giolfan <georgegiolfan@yahoo.com>
3729 * InternalWindowManager.cs: Added ShowIcon. Fixed IconRectangleContains when
3730 the icon is not shown.
3731 * ThemeWin32Classic.cs: Now uses InternalWindowManager.ShowIcon instead of
3734 2008-06-10 George Giolfan <georgegiolfan@yahoo.com>
3736 * InternalWindowManager.cs: Draw minimized windows even if they don't have
3739 2008-06-09 Jonathan Pobst <monkey@jpobst.com>
3741 * ComboBox.cs, ListBox.cs: Use SetBoundsInternalCore instead of SetBounds.
3743 2008-06-09 Jonathan Pobst <monkey@jpobst.com>
3745 * Control.cs: Fill in the defaults for unspecified bounds in SetBounds.
3748 2008-06-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3750 * ComboBox.cs: When snaping height -because of IntegralHeight set to
3751 true- with ComboBoxStyle.Simple, set the height to PreferredHeight
3752 if the requested height leaves the listbox area with *less* than the
3753 required are to see one item. We were setting it to PreferredHeight
3754 even for values matching the height for a single item.
3757 2008-06-06 Jonathan Pobst <monkey@jpobst.com>
3759 * DataGridViewCell.cs: Simplify GetInheritedStyle by using ApplyStyle.
3761 2008-06-06 Jonathan Pobst <monkey@jpobst.com>
3763 * DataGridViewCell.cs: Use property instead of field.
3765 2008-06-06 George Giolfan <georgegiolfan@yahoo.com>
3767 * InternalWindowManager.cs, ThemeWin32Classic.cs: Removed useless Form.Icon
3770 2008-06-06 George Giolfan <georgegiolfan@yahoo.com>
3772 * Theme.cs: Added #region around the managed window code. Made the managed
3773 window methods abstract.
3774 * ThemeWin32Classic.cs: Added #region around the managed window code.
3776 2008-06-06 George Giolfan <georgegiolfan@yahoo.com>
3778 * InternalWindowManager.cs: Now only calls Theme.DrawManagedWindowDecorations
3780 * ThemeWin32Classic.cs: Removed HasBorders checks in
3781 DrawManagedWindowDecorations.
3783 2008-06-06 George Giolfan <georgegiolfan@yahoo.com>
3785 * InternalWindowManager.cs, Theme.cs, ThemeWin32Classic.cs: Refactored:
3786 Extracted ManagedWindowGetTitleBarIconArea.
3788 2008-06-05 Jonathan Pobst <monkey@jpobst.com>
3790 * DataGridViewCellStyle.cs: Don't clone the font.
3792 2008-06-05 Jonathan Pobst <monkey@jpobst.com>
3794 * DataGridViewCell.cs: Ensure we don't pass null to GetConverter.
3796 2008-06-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3798 * XplatUIX1..cs: Use IntPtr size instead of int, as wee need to work
3799 also on 64 bit machinges. Fixes the BadWindow errors while scrolling
3802 2008-06-05 Jonathan Pobst <monkey@jpobst.com>
3804 * DataGridViewCell.cs: Correctly get converters for FormattedValue.
3805 Use Format/FormatProvider before trying converters.
3806 * DataGridViewCellStyle.cs: ApplyStyle should only apply things that
3807 are 'set'. Change constructor to not use ApplyStyle since it wants
3808 everything applied. Clone the Font.
3809 * DataGridViewRowHeaderCell.cs: Start with DefaultCellStyle and
3810 ApplyStyle the rest.
3812 2008-06-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3814 * ListView.cs: We need to calculate the scrollbars even if the handle
3815 hasn't been created - this is needed when methods using scrollbars
3816 info, such EnsureVisible, are called before control has been created.
3819 2008-06-05 George Giolfan <georgegiolfan@yahoo.com>
3821 * ThemeVisualStyles.cs: ScrollBar is now rendered with the VisualStyles API
3822 only if the elements are defined.
3824 2008-06-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3826 * ComboBox.cs: I'm an idiiot - forgot to commit the last ComboBox
3827 section. Also, when setting bounds, snap height as well as save the
3828 requested height if Dock has any value affecting the height: Left,
3829 Right and Bottom - important if using IntegralHeight as true.
3831 2008-06-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3833 * ComboBox.cs: When calling UpdateComboBoxBounds, adjust the height
3834 passed to SetBounds to reflect the new adjusted height (Integral-wise),
3835 instead of doing that only in our SetBoundsCore override, since the
3836 bounds cached can be the same as saved one and we could not get the
3840 2008-06-04 George Giolfan <georgegiolfan@yahoo.com>
3842 * Theme.cs: Made ToolWindowCaptionButtonSize platform dependent.
3843 * XplatUI.cs: Added ToolWindowCaptionButtonSize.
3844 * XplatUIDriver.cs: Changed SmallCaptionButtonSize to 15,15. Added
3845 ToolWindowCaptionButtonSize.
3846 * XplatUIWin32.cs: Added ToolWindowCaptionButtonSize.
3848 2008-06-04 George Giolfan <georgegiolfan@yahoo.com>
3850 * MdiWindowManager.cs: Now uses SystemInformation.DoubleClickTime instead of
3852 * Theme.cs: Made DoubleClickTime plaform dependent.
3854 2008-06-04 George Giolfan <georgegiolfan@yahoo.com>
3856 * Theme.cs: Made ToolWindowCaptionHeight platform dependent.
3857 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added
3858 ToolWindowCaptionHeight.
3860 2008-06-04 George Giolfan <georgegiolfan@yahoo.com>
3862 * InternalWindowManager.cs: The adjustment to ensure positive client area
3863 sizes is now platform dependent (disabled on Windows).
3864 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added
3865 RequiresPositiveClientAreaSize.
3867 2008-06-04 George Giolfan <georgegiolfan@yahoo.com>
3869 * Form.cs: Fixed null handling in Icon (see SettingIconToNull in the tests).
3871 2008-06-04 George Giolfan <georgegiolfan@yahoo.com>
3873 * InternalWindowManager.cs: Changed IconicSize to use
3874 SystemInformation.MinimizedWindowSize.
3875 * XplatUICarbon.cs, XplatUIX11.cs: Removed MinimizedWindowSize.
3876 * XplatUIDriver.cs: Changed MinimizedWindowSize to provide a default value.
3878 2008-06-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3880 * ComboBox.cs: If the combobox is anchored both on top and bottom,
3881 adjust height if IntegralHeight is true when calling SetBoundsCore (as
3882 likely the height was modified even if Height wasn't specified in
3883 BoundsSpecified parameter).
3884 Fixes part of #396297.
3886 2008-06-04 George Giolfan <georgegiolfan@yahoo.com>
3888 * InternalWindowsManager.cs: Changed minimum window size while resizing to
3889 SystemInformation.MinWindowTrackSize.
3890 * XplatUICarbon.cs, XplatUIX11.cs: Removed MinWindowTrackSize.
3891 * XplatUIDriver.cs: Changed MinWindowTrackSize to provide a default value.
3893 2008-06-03 George Giolfan <georgegiolfan@yahoo.com>
3895 * MenuItem.cs: Fixed Dispose.
3897 2008-06-03 George Giolfan <georgegiolfan@yahoo.com>
3899 * ColumnHeader.cs: CalcColumnHeader now uses the theme to get the height.
3900 * DataGridView.cs: * EnableHeadersVisualStyles: Fixed default value.
3901 EnteredHeaderCell, PressedHeaderCell: Added.
3902 * DataGridViewCell.cs: Refactored: Extracted GetBorderPen.
3903 * DataGridViewColumnHeaderCell.cs, DataGridViewRowHeaderCell.cs: Gave the
3904 theme a chance to override default painting.
3905 * ListView.cs: Added EnteredColumnHeader. Refactored: Extracted
3906 GetColumnHeaderInvalidateArea, Invalidate(ColumnHeader).
3907 * Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs: Added members for
3908 ListView and DataGridView header rendering.
3910 2008-06-03 Ivan N. Zlatev <contact@i-nz.net>
3912 * RichTextBox.cs: GetPositionFromCharIndex should return the
3913 visual position of the character relative to the viewport.
3914 [Fixes part of bug #396664]
3916 2008-06-03 Ivan N. Zlatev <contact@i-nz.net>
3918 * GridEntry.cs: Make HasCustomEditor check for EditStyle != None
3919 and not just for the existance of an UITypeEditor. In some cases
3920 there is an editor associated just to do PaintValue, but which
3921 doesn't actually support editing.
3924 2008-05-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3926 * ComboBox.cs: page_size as well as vscrollbar.LargeChange should be 1
3927 if needed, instead of 0 - this should help us in the corner case where
3928 we have more than one item but we are only partially showing 1 item.
3929 Fixes part of #374713.
3931 2008-05-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3933 * XplatUiX11.cs: When scrolling and detecting the obscured areas in a
3934 control, return immediately if the any parent control's handle hasn't
3935 been created or isn't visible, as well as avoiding creating the parent
3936 Form if the handle hasn't been previously created.
3939 2008-06-02 Jonathan Pobst <monkey@jpobst.com>
3941 * TableLayoutPanel.cs: Use border sizes when calculating the
3942 panel's preferred size. [Fixes part of bug #396433]
3944 2008-06-02 Ivan N. Zlatev <contact@i-nz.net>
3946 * SplitContainer.cs:
3947 - Fix SplitterDistance to update only if needed.
3948 - Make it force min and max validation.
3949 - Handle properly mouse moves outside the resizeable area.
3952 2008-06-02 Andreia Gaita <avidigal@novell.com>
3954 * WebBrowserBase.cs: Implement support for ScriptErrorsSuppressed
3955 (which also suppresses all popup dialogs). Throw NotSupported
3956 exceptions for activex getters/setters.
3957 * WebBrowser.cs: Implement DocumentStream, DocumentType, IsBusy,
3958 IsOffline, ReadyState, ScriptErrorsSuppressed, ScrollbarsEnabled,
3959 StatusText, Version, GoSearch
3960 * HtmlDocument.cs: Add DocType support
3962 2008-06-02 Andy Hume <andyhume32@yahoo.co.uk>
3964 * TextBox.cs: Implement TextBoxAutoCompleteSourceConverter.
3967 2008-06-02 Ivan N. Zlatev <contact@i-nz.net>
3969 * GridEntry.cs: Pass the ITypeDescriptorContext everywhere.
3971 2008-06-02 Jonathan Pobst <monkey@jpobst.com>
3973 * TableLayoutPanel.cs: When calculating preferred size, use the
3974 actual number of columns and rows, not what the user set them to.
3977 2008-06-02 George Giolfan <georgegiolfan@yahoo.com>
3979 * Form.cs: Enabled managed handling of tool window MDI children. Fixes bug
3982 2008-06-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3984 * XplatUIX11.cs: When detecting areas obscured in a control by other
3985 toplevel windows while scrolling, return if the control hasn't a
3989 2008-05-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3991 * XplatUIX11.cs: Properly detect the visible area of a control being
3992 scrolled (obscured by other winforms controls and any X toplevel
3993 windows), to mark as invalid the requested area to be scrolled that
3994 isn't visible and thus can't be copied.
3997 2008-05-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3999 * ListBox.cs: Compute the precise amount to vertically scroll when
4000 using DrawMode.OwnerDrawVariable.
4001 Patch by jkeymer (j.keymer@gmx.net).
4003 2008-05-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4005 * ComboBox.cs: Use ListBox-like scrollbar values In ComboListBox
4006 to avoid setting an invalid value for the verticall scrollbar
4007 when navigating items. And, duh, also remove my silly debug messages
4008 from previous commits.
4011 2008-05-30 Ivan N. Zlatev <contact@i-nz.net>
4013 * FlatButtonAppearance.cs: Make FlatButtonAppearanceConverter exandable and
4014 make it MS compatible.
4016 2008-05-30 Ivan N. Zlatev <contact@i-nz.net>
4018 * PropertyGrid.cs, PropertyGridView.cs, GridEntry.cs:
4019 - Allow the editing of entries even if their parent is read-only.
4020 - Do not render expandable properties read-only.
4021 - Refactor expansion checks form PropertyGrid into PropertyGrid.
4023 2008-05-30 George Giolfan <georgegiolfan@yahoo.com>
4025 * ScrollBar.cs, Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs: Added
4026 support for the hover style.
4028 2008-05-29 Andreia Gaita <avidigal@novell.com>
4030 * ContainerControl.cs: Check for null dead-end when traversing the tree
4033 [Fixes #394332, patch by Ernesto Carrea]
4035 2008-05-29 Geoff Norton <gnorton@novell.com>
4037 * XplatUICarbon.cs: Fix a culture-dependent conversion to be the
4038 constant that it is. Fixes #393981
4040 2008-05-29 Jonathan Pobst <monkey@jpobst.com>
4042 * Form.cs: Add a MonoTODO to the AutoScaleBaseSize setter explaining
4043 that the user probably doesn't want to set this.
4045 2008-05-29 Jonathan Pobst <monkey@jpobst.com>
4047 * ThemeWin32Classic.cs: Don't let the text size be bigger than
4048 the control size for CheckBox/RadioBox.
4049 [Fixes part of bug #394645]
4051 2008-05-29 Ivan N. Zlatev <contact@i-nz.net>
4053 * PropertyGrid.cs: Update the state of the sorting buttons in
4054 the toolbar if PropertySort is set programatically.
4056 2008-05-29 Ivan N. Zlatev <contact@i-nz.net>
4058 * GridItemCollection.cs: Add multiple items with conflicting names
4059 support and also preserve name ordering.
4062 2008-05-29 Ivan N. Zlatev <contact@i-nz.net>
4064 * GridItemCollection.cs: Revert my multiple items with same
4067 2008-05-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4069 * ScrollBar.cs: Scrollbars should only react to left-clicks, not right
4071 Fixes part of #393908.
4073 2008-05-28 Jonathan Pobst <monkey@jpobst.com>
4075 * ToolStripDrowDown.cs: When using the Show () methods that have a
4076 Control parameter, set the menu owner to that Control.
4079 2008-05-28 Ivan N. Zlatev <contact@i-nz.net>
4081 * PropertyGridTextBox.cs, PropertyGridView.cs: Implement validation.
4084 2008-05-27 Ivan N. Zlatev <contact@i-nz.net>
4086 * GridItemCollection.cs: Refactor to support multiple items with the
4090 2008-05-27 Jonathan Pobst <monkey@jpobst.com>
4092 * Control.cs: The 2.0 check for illegal cross thread calls in
4093 Control.Handle were throwing an exception when we were getting
4094 the Handle in order to invoke correctly. Created a private
4095 version that does not contain this check.
4098 2008-05-27 Ivan N. Zlatev <contact@i-nz.net>
4100 * PropertyGrid.cs: Respect DefaultTabType.
4102 2008-05-27 Ivan N. Zlatev <contact@i-nz.net>
4104 * ListView.cs: SPACE selects an item.
4107 2008-05-27 Ivan N. Zlatev <contact@i-nz.net>
4109 * ListView.cs: Reset the search string whenever the items are
4113 2008-05-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4115 * ListControl.cs: For the first added item PositionChanged is fired
4116 _before_ ItemChanged, which leave us in a temporary invalid state - so
4117 we need to set the selected index from ItemChanged handler *if* we
4118 know that the first item has just been added *and* the items have been
4119 actually added to the ListControl.
4122 2008-05-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4124 * TabControl.cs: Only clicks with the left button should be
4128 2008-05-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4132 * TextBox.cs: Expose an internal method in TextBox to restore the
4133 original context menu, and call it from ComboBox to re-use it in the
4134 combobox containing the file name in FileDialog.cs.
4135 Fixes part of #393775.
4137 2008-05-24 George Giolfan <georgegiolfan@yahoo.com>
4139 * ThemeVisualStyles.cs: Added support for the hot ComboBox drop down button
4142 2008-05-24 George Giolfan <georgegiolfan@yahoo.com>
4144 * ComboBox.cs, Theme.cs, ThemeWin32Classic.cs: Added support for the hot drop
4147 2008-05-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4149 * ComboBox.cs: Minor correction to previous patch: PageDown should
4150 also *try* to move by one item if the computed offset is negative,
4151 just like the PageUp case.
4153 2008-05-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4155 * ComboBox.cs: When navigating using PageDown/PageUp the navigation
4156 should be done for at least 1 item, and not stay at the same item.
4157 Fixes part of #374713.
4159 2008-05-23 Jonathan Pobst <monkey@jpobst.com>
4161 * FileDialog.cs: Add a FSEntryComparer, and use it to sort the
4162 directories. [Fixes bug #393931]
4164 2008-05-22 Andreia Gaita <avidigal@novell.com>
4166 * WebBrowser.cs: Implement DocumentText. Implement AllowNavigation.
4167 Don't fire events until the initial about:blank page has finished
4168 loading. Clean up events.
4170 2008-05-22 Atsushi Enomoto <atsushi@ximian.com>
4172 * XplatUIX11.cs : when we call WM_SETFOCUS, call X11Keyboard
4173 FocusIn() too. This should fix the issue on switching
4176 2008-05-22 Atsushi Enomoto <atsushi@ximian.com>
4178 * X11Keyboard.cs : set XIM font size to somewhat reasonable
4179 number (ideally the input textbox size, but that could be
4182 2008-05-22 Jonathan Pobst <monkey@jpobst.com>
4184 * ToolStripTextBox.cs: List for the TextBox's TextChanged and fire
4185 the ToolStripItem's TextChanged. [Fixes bug #393597]
4187 2008-05-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4189 * TabControl.cs: When invalidating in SelectedIndex and we need to
4190 inflate to take into account the border of the tabs, make sure that
4191 the invalidated rect doesn't overflow the control bounds, since that
4192 would avoid updating at all.
4194 2008-05-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4196 * TabControl.cs: Don't substract scroller width from the row width,
4197 since we need to take into account the total width of the control when
4198 calculating the position of the tabs. This avoids showing scroller
4199 when it is actually not needed.
4200 Fixes part of #322325.
4202 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
4204 * ThemeVisualStyles.cs: Added support for TextBoxBase.
4206 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
4208 * RichTextBox.cs, TextBoxBase.cs, Theme.cs, ThemeWin32Classic.cs: Refactored:
4209 Extracted TextBoxBase.Draw and Theme.TextBoxBase*.
4211 2008-05-21 Jonathan Pobst <monkey@jpobst.com>
4213 * DataGridView.cs: Only paint the top left header cell if there
4216 2008-05-21 Jonathan Pobst <monkey@jpobst.com>
4218 * DataGridView.cs: When binding to a BindingSource, get the underlying
4219 list to bind to. [Fixes bug #345483]
4221 2008-05-21 Jonathan Pobst <monkey@jpobst.com>
4223 * DataGridView.cs: Do not bind to collection properties.
4226 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
4228 * ThemeVisualStyles.cs: Added support for the hot TrackBar thumb style.
4230 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
4232 * Theme.cs, ThemeWin32Classic.cs, TrackBar.cs: Added support for the hot
4235 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
4237 * ThemeVisualStyles.cs: Added support for ToolTip transparent background.
4239 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
4241 * Theme.cs, ThemeWin32Classic.cs, ToolTip.cs: Added support for transparent
4244 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
4246 * ThemeVisualStyles.cs: Added support for ToolBar hot and hot checked styles.
4248 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
4250 * Theme.cs, ThemeWin32Classic.cs, ToolBar.cs: Added support for hot and hot
4253 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
4255 * TabControl.cs: Extended to handle the hot style.
4257 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
4259 * Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs, UpDownBase.cs:
4260 Extended UpDownBase code to handle hot and disabled styles.
4262 2008-05-20 Jonathan Pobst <monkey@jpobst.com>
4264 * DataGridView.cs: Handle databinding to generic list type things.
4267 2008-05-20 Jonathan Pobst <monkey@jpobst.com>
4269 * DataGridViewCellCollection.cs: Add a method to find the cell
4270 with the given DataPropertyName.
4271 * DataGridViewColumn.cs: Track if the column was autogenerated or not.
4272 * DataGridViewColumnCollection.cs: Add a method to clear all
4273 autogenerated columns.
4274 * DataGridView.cs: If AutoGenerateColumns is false, don't autogenerate
4278 2008-05-20 Jonathan Pobst <monkey@jpobst.com>
4280 * DataGridView.cs: Don't try to update the RowTemplate with
4281 a null CellTemplate.
4283 2008-05-20 Jonathan Pobst <monkey@jpobst.com>
4285 * DataGridViewColumn.cs: Allow IsDataBound to be set internally.
4286 * DataGridViewColumnCollection.cs: Ensure OnColumnAdded is called.
4287 * DataGridView.cs: Lots of fixes/enhancements to databinding to
4290 2008-05-20 Jonathan Pobst <monkey@jpobst.com>
4292 * Control.cs: Remove invalidating implicit child controls when
4293 control is invalidated. It was causing too many redraws on
4294 controls with implicit scrollbars.
4295 * ListView.cs: Listen to the Invalidated event and invalidate
4298 2008-05-20 Andreia Gaita <avidigal@novell.com>
4300 * WebBrowserBase.cs, WebBrowser.cs: Hook up page loading events
4301 * HtmlDocument.cs: Check for nulls
4303 2008-05-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4305 * Control.cs: In ControlCollection.RemoveInternal, remove the
4306 internal control before calling PerformLayout and OnControlRemoved,
4307 which was leaving us in an invalid state and causing a X error (bad
4308 match). Observe that Remove () call has the same order.
4309 Fixes an X error changing ComboBoxStyle.DropDownStyle.
4311 2008-05-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4313 * TabControl.cs: Don't paint by ourselved and instead let OnPaint
4314 being fired if ControlStyles.UserPaint style is activated.
4317 2008-05-19 Ivan N. Zlatev <contact@i-nz.net>
4319 * GridEntry.cs: Don't be so strict when setting the value -
4320 do not check if what we set is what we get.
4323 2008-05-19 Ivan N. Zlatev <contact@i-nz.net>
4325 * XplatUIX11.cs: If there are no timers timeout should be 0
4328 2008-05-19 Jonathan Pobst <monkey@jpobst.com>
4330 * Control.cs: As a followup to invalidating implicit children when
4331 a control is invalidated, only invalidate them if they are in the
4334 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
4336 * ThemeVisualStyles.cs: Implemented partial support for ToolTip.
4338 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
4340 * ThemeWin32Classic.cs: Refactored: Extracted ToolTipDrawBackground.
4342 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
4344 * GroupBoxRenderer.cs: Fixed text area clipping in the Visual Styles case.
4345 * XplatUIWin32.cs: Made Win32DeleteObject public.
4347 2008-05-19 Ivan N. Zlatev <contact@i-nz.net>
4349 * GridEntry.cs: Determine HasDefaultValue more strictly by using
4350 PropertyDescriptor.ShouldSerializeValue.
4353 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
4355 * ThemeVisualStyles.cs: Enabled support for ScrollBar element styles not present
4356 in the classic theme.
4358 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
4360 * ScrollBar.cs: Added FirstButtonEntered, SecondButtonEntered, ThumbEntered,
4362 * Theme.cs, ThemeWin32Classic.cs: Added ScrollBarHasHotElementStyles,
4363 ScrollBarHasPressedThumbStyle.
4365 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
4367 * TextRenderer.cs: Included some methods in the 1.1 profile.
4369 2008-05-19 Jonathan Pobst <monkey@jpobst.com>
4371 * Control.cs: When we make a control visible, it may have been
4372 previously visible and while it wasn't visible, the z-order of
4373 things may have been shuffled, so the control needs to have its
4374 z-order updated just in case. [Fixes bug #391518]
4376 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
4378 * ThemeVisualStyles.cs: Added support for GroupBox.
4380 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
4382 * GroupBoxRenderer.cs: Included in the 1.1 profile.
4384 2008-05-16 Atsushi Enomoto <atsushi@ximian.com>
4386 * XplatUIX11.cs, X11Keyboard.cs : redoing r103060 with fix for
4387 bug #389996; XSelectInput() behaved as mouse handler robber,
4388 so remove extra call to it.
4390 2008-05-15 Jonathan Pobst <monkey@jpobst.com>
4392 * Control.cs: Simplify ControlCollection.Contains method.
4394 2008-05-15 Jonathan Pobst <monkey@jpobst.com>
4396 * DataGridViewRow.cs: Implement GetPreferredSize.
4398 2008-05-15 Jonathan Pobst <monkey@jpobst.com>
4400 * DataGridViewComboBoxCell.cs: Don't declare text twice. Fixes build.
4402 2008-05-15 Jonathan Pobst <monkey@jpobst.com>
4404 * DataGridViewComboBoxCell.cs: Implement some NIEX stuffs, better
4405 painting and edit control fixes.
4407 2008-05-14 Jonathan Pobst <monkey@jpobst.com>
4409 * DataGridView.cs, DataGridViewCell.cs: Work around some external
4410 checks to make sure we are in an actual row/col for top left header cell.
4411 * DataGridViewTopLeftHeaderCell.cs: Implement some NIEX's.
4413 2008-05-14 Jonathan Pobst <monkey@jpobst.com>
4415 * Control.cs: Use long instead of int when handling WParam from
4416 mousewheel scrolling. Int was overflowing on Win64.
4418 2008-05-14 Jonathan Pobst <monkey@jpobst.com>
4420 * FlowLayoutPanel.cs, ScrollableControl.cs: We need to layout the
4421 flow panel without scrolling first, and then calculate the
4422 scrolling based on the new layout. [Fixes bug #390149]
4424 2008-05-14 Jonathan Pobst <monkey@jpobst.com>
4426 * ListBox.cs: Invalidate after scrolling up when selected index
4427 changes. [Fixes bug #390151]
4429 2008-05-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4431 * ComboBox.cs: When setting mode to Simple *and* height hasn't been
4432 set, default height to 150. I tried first with DefaultSize, but this
4433 is not generating a SetBoundsCore call before handle creation time, so
4434 we can take it into account. This is just what .net does.
4436 2008-05-13 Jonathan Pobst <monkey@jpobst.com>
4438 * XplatUIX11.cs, X11Keyboard.cs: Had to revert eno's r103060,
4439 as it broke some stuff. Calberto is filing a bug for eno to
4442 2008-05-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4444 * ComboBox.cs: When handling PageDown pressed event, set SelectedIndex
4445 to 0 is the current value is -1, and if style is not Simple, just
4446 return, like .net does.
4447 Fixes part of #374713.
4449 2008-05-13 Jonathan Pobst <monkey@jpobst.com>
4451 * ThemeWin32Classic.cs, ThemeVisualStyles.cs: When calculating
4452 progress bar stuffs, use doubles instead of ints to prevent
4453 overflow. [Fixes bug #389798]
4455 2008-05-13 Atsushi Enomoto <atsushi@ximian.com>
4457 * XplatUIX11.cs, X11Keyboard.cs :
4458 Significant refactoring on XIM support. Now IM engine UI
4459 should show up, at mostly-correct preedit position.
4460 - Eliminated use of FocusWindow, as it is never mapped
4461 and hence blocks correct preedit position. XIC is now
4462 created per window, and it must be destroyed too when
4463 the window is destroyed.
4464 - WM_QUIT messages should not be filtered even when hwnd
4465 is zombie. Filtering it could cause endless loop.
4466 - Preedit position must move only when the window is alive.
4467 - Make it IDisposable and make sure to release XIM/XICs.
4469 2008-05-13 Atsushi Enomoto <atsushi@ximian.com>
4471 * Timer.cs, Control.cs, Form.cs, ApplicationContext.cs,
4472 XplatUIX11.cs, XplatUIWin32.cs :
4473 fix for bug #325033 and #387693;
4474 - WM_QUIT should not be sent when no running application
4476 - SetTimer/KillTimer (especially on win32) should be
4477 invoked for the window that the timer is/will_be attached.
4478 - There could be unattached timers to a window when it's
4479 started. For those timers, hold pending timers and when
4480 a window is mapped, attach them to it.
4481 - WaitForHwndMessage() could run into loop when
4482 WM_SHOWWINDOW is handled before this method is called.
4483 So, strictly check wm_showwindow state.
4484 - Tick handler should not be invoked while one Tick handler
4485 call is still running (introduced Busy state).
4487 2008-05-13 Andreia Gaita <avidigal@novell.com>
4489 * WebBrowserBase.cs: Override Internal alternative methods for
4490 SetBoundsCore and OnResize instead of the protected ones.
4491 * Control.cs: Move SetBoundsCore and OnResize implementations to
4492 SetBoundsCoreInternal and OnResizeInternal, so they can be
4493 overriden internally (WebBrowserBase needs to catch them but can't
4494 override the protected methods without api compat problems)
4496 2008-05-13 Andreia Gaita <avidigal@novell.com>
4498 * WebBrowserBase.cs: Hiding away non-public overrides for api compat
4500 2009-05-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4503 * ListView.cs: Remove debug messages.
4505 2008-05-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4507 * ComboBox.cs: Don't do any calculation for simple mode if the listbox
4508 area is empty. Also calculate scrollbars in Simple mode based in area
4509 height and total number of items, not in MaxDropDownItems.
4510 Fixes part of #371991.
4512 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
4514 * PictureBox.cs: Always invalidate on resize. Fixes an app for jhill.
4516 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
4518 * BindingSource.cs: GetListSortDescription is not public.
4520 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
4522 * WebBrowser.cs, WebBrowserBase.cs, WebBrowserSiteBase.cs: corcompare.
4524 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
4526 * HtmlElement.cs: Fix parameter names to match MS.
4527 * HtmlWindowCollection.cs: Should not be sealed.
4529 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
4531 * ThemeWin32Classic.cs: Always draw the scrollbar area under the thumb
4532 button, because the thumb button will not get drawn if the scrollbar
4533 is disabled. [Fixes bug #389262]
4535 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
4537 * ListBox.cs: Handle End key for multi-column listboxen.
4540 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
4542 * ListBox.cs: Fix algorithm to determine which column our item is in.
4545 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
4547 * ListBox.cs: Invalidate when the listbox is resized.
4550 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
4552 * ListBox.cs: There is always at least one row in the ListBox (if
4553 we are doing these calculations.) [Fixes bug #389253]
4555 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
4557 * ListBox.cs: There is always at least one column in the ListBox.
4560 2008-05-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4562 * ComboBox.cs: When handle is created call UpdateComboBoxBounds to
4563 ensure in Simple mode that the height is exactly the requested one.
4564 Also add the ComboBoxListControl to the controls collection in Simple
4565 mode even if handle hasn't been created.
4566 Fixes part of #371991.
4568 2008-05-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4570 * ComboBox.cs: For ComboListBox control -specially in Simple mode-, give focus to
4571 our ComboBox owner instead of giving it back to the previous control (
4572 as done in other controls). Also remove the empty override of Select
4573 method, since we want to be selected *and* give focus to our owner.
4574 This should let the user do keys-navigation in Simple mode.
4576 2008-05-10 Geoff Norton <gnorton@novell.com>
4578 * XplatUICarbon.cs: Dont use HIViewScrollRect as it's causing painting
4579 problems with rapid scrolling of treeviews. Fixes #381084
4581 2008-05-10 Geoff Norton <gnorton@novell.com>
4583 * XplatUICarbon.cs: Deactivate the active window before
4584 activating the desired window. Completes fixing #386504
4586 2008-05-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4588 * ListView.cs: When calculating scrollbars, set horizontal scroll bar
4589 SmallChange to the item size width plus the padding, to match .net.
4591 2008-05-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4593 * FileDialog.cs: Apply the custom filter typed by the user in the file
4594 name combobox as much as possible while navigating in the file dialog.
4597 2008-05-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4599 * Binding.cs: Actually use NullValue if the retrieved value of
4600 data source is null or DBNull. Makes a test pass.
4602 2008-05-09 Jonathan Pobst <monkey@jpobst.com>
4604 * ErrorProvider.cs, Form.cs: Get icons from ResourceImageLoader.
4605 * MimeIcon.cs: Provide a way to get icons from resources.
4607 2008-05-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4609 * Binding.cs: When the value retrieved from the control to be assigned
4610 to the data source is null, actually use the 2.0 DataSourceNullValue
4611 value. Make pass a data binding test.
4613 2008-05-08 Jonathan Pobst <monkey@jpobst.com>
4615 * Control.cs: We need to invalidate implicit children even when
4616 invalidate is called with invalidatechildren = false. (Implicit
4617 children are really part of the parent.)
4618 * ListView.cs: Double-buffer internal child controls for less
4620 * ThemeWin32Classic.cs: Remove an extra nested loop in drawing
4621 owner ListView subitems for greatly increased performance.
4624 2008-05-08 Carlos Alberto Cortez <calebrto.cortez@gmail.com>
4626 * FileDialog.cs: When the user types a wildcard character in the
4627 filename combobox, update the contents of the folder using the text as
4629 Fixes part of #385261.
4631 2008-05-08 Jonathan Pobst <monkey@jpobst.com>
4633 * ListBox.cs: Various fixes for MultiColumn listboxen.
4636 2008-05-08 Andreia Gaita <avidigal@novell.com>
4638 * HtmlElement.cs: Implement Style property
4640 2008-05-08 Jonathan Pobst <monkey@jpobst.com>
4642 * ListBox.cs: Respect checkboxes when measuring item size.
4643 * ThemeWin32Classis.cs: When drawing list items, don't draw
4644 text outside of the item's bounds to prevent overlapping.
4645 (.Net actually overlaps, but that's just silly.)
4648 2008-05-08 Everaldo Canuto <ecanuto@novell.com>
4650 * NotifyIcon.cs: Call SetForegroundWindow before show context menu. Thanks
4651 Gert Driesen. Fixes bug #324830.
4653 2008-05-07 Everaldo Canuto <ecanuto@novell.com>
4655 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: SetForegroundWindow
4658 2008-05-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4660 * BindingSource.cs: When calling IsSynchronized, return the value of
4661 the related IList list.
4663 2008-05-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4665 * ListBindingHelper.cs: Fix some bits in GetListItemProperties, to
4668 2008-05-07 Jonathan Pobst <monkey@jpobst.com>
4670 * DataGridView.cs: Implement PageUp/PageDown keys. Extend keyboard
4671 navigation to scroll the grid if the current cell is not visible.
4673 2008-05-07 Andreia Gaita <avidigal@novell.com>
4675 * HtmlElement.cs: Implement TabIndex
4677 2008-05-07 Jonathan Pobst <monkey@jpobst.com>
4679 * ListBox.cs: Respect ScrollAlwaysVisible and HorizontalScrollbar
4680 properties, even when there are no items.
4683 2008-05-07 Ivan N. Zlatev <contact@i-nz.net>
4685 * NativeWindow.cs: Add support for multiple handles per window.
4686 * NativeWindows.cs, LibSupport.cs, Control.cs, XplatUIX11GTK.cs,
4687 XplatUIX11.cs, X11Display.cs: Do not access NativeWindow.windows_collection
4688 directly - use FromHandle instead.
4691 2008-05-07 Andreia Gaita <avidigal@novell.com>
4693 * HtmlElement.cs: Implement InnerHTML setter
4695 2008-05-07 Andreia Gaita <avidigal@novell.com>
4697 * HtmlDocument.cs: Implement Focused
4699 2006-05-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4701 * BindingSource.cs: Minor fixes to the the ApplySort and Remove sort
4702 methods, as well as add messages to the exceptions.
4704 2006-05-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4706 * BindingSource.cs: Setting DataSource should only reset DataMember if
4707 the previous value was null (make pass a not working test).
4709 2006-05-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4711 * BindingSource.cs: When EndInit call is postponed and is called until
4712 DataSource.EndInit is called, remove the handler for data source.
4714 2008-05-06 Jonathan Pobst <monkey@jpobst.com>
4716 * ToolStripManager.cs: Don't use IsAlive, race condition, etc. etc.
4718 2008-05-06 Jonathan Pobst <monkey@jpobst.com>
4720 * ToolStripManager.cs: Store references to toolstrips as
4721 weak references so they do not prevent forms from getting collected.
4724 2008-05-06 Jonathan Pobst <monkey@jpobst.com>
4726 * TrackBar.cs: We can't set ResizeRedraw because it isn't set
4727 on .Net. So do the same thing in WndProc.
4729 2008-05-06 Jonathan Pobst <monkey@jpobst.com>
4731 * TrackBar.cs: Commit patch from Andy Hume that corrects
4732 the clickable areas to better match .Net.
4735 2008-05-06 Jonathan Pobst <monkey@jpobst.com>
4737 * TrackBar.cs: Commit patch from Andy Hume that adds the
4738 ResizeRedraw control flag so the track bar repaints itself
4739 when it is resized. [Fixes bug #387072]
4741 2008-05-06 Jonathan Pobst <monkey@jpobst.com>
4743 * TrackBar.cs: Commit patch from Andy Hume that adds better
4744 support for keyboard navigation when the TrackBar is vertical.
4747 2008-05-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4749 * BindingSource.cs: Implement ISupportInitializeNotification support.
4751 2008-05-06 George Giolfan <georgegiolfan@yahoo.com>
4753 * ThemeVisualStyles.cs: Added support for ToolBar.
4755 2008-05-06 George Giolfan <georgegiolfan@yahoo.com>
4757 * ToolBar.cs: Made the Vertical property internal.
4759 2008-05-05 George Giolfan <georgegiolfan@yahoo.com>
4761 * ThemeVisualStyles.cs: Added support for TrackBar.
4763 2008-05-05 George Giolfan <georgegiolfan@yahoo.com>
4765 * ThemeWin32Classic.cs: Refactored: Extracted TrackBarGetThumbSize,
4766 TrackBarDrawVerticalTrack, TrackBarDrawVerticalThumbRight,
4767 TrackBarDrawVerticalThumbLeft, TrackBarDrawVerticalThumb,
4768 TrackBarGetVerticalTickPainter, TrackBarDrawHorizontalTrack,
4769 TrackBarDrawHorizontalThumbBottom, TrackBarDrawHorizontalThumbTop,
4770 TrackBarDrawHorizontalThumb, TrackBarGetHorizontalTickPainter.
4772 2008-05-05 George Giolfan <georgegiolfan@yahoo.com>
4774 * ThemeVisualStyles.cs: Added support for UpDownBase.
4776 2008-05-05 George Giolfan <georgegiolfan@yahoo.com>
4778 * Theme.cs, ThemeWin32Classic.cs, UpDownBase.cs: Refactored:
4779 Extracted Theme.UpDownBaseDrawButton.
4781 2008-05-05 Jonathan Pobst <monkey@jpobst.com>
4783 * ToolStrip.cs, ToolStripDropDownItem.cs: Make sure toolstrips are
4784 removed from the static toolstrips collection in ToolStripManager
4785 when they are disposed. Provides a workaround for bug #386483.
4787 2008-05-05 Ivan N. Zlatev <contact@i-nz.net>
4789 * GridEntry.cs: Read-only properties with Editor with
4790 UITypeEditorEditStyle.Modal shouldn't be read-only in the PropertyGrid.
4793 2008-05-05 Jonathan Pobst <monkey@jpobst.com>
4795 * MenuStrip.cs, ToolStrip.cs: Guard against an NRE when pressing
4796 the menu key and there are no items on the menu.
4799 2008-05-05 Sebastien Pouliot <sebastien@ximian.com>
4801 * Control.cs: Avoid calling ToString on a string.
4802 * Form.cs: Avoid calling ToString on a string. Found using Gendarme.
4803 * GroupBox.cs: In FlatStyle property throw, not just create, the
4804 exception. Avoid calling ToString on a string.
4805 * ProgressBar.cs: Avoid calling ToString on a string.
4806 * ScrollBar.cs: Avoid calling ToString on a string.
4807 [All issues were found using Gendarme]
4809 2008-05-05 Everaldo Canuto <ecanuto@novell.com>
4811 * NotifyIcon.cs: Prevent click events to be trigger after double click
4812 events. Fixes remaining issues of bug #324832.
4814 2008-05-05 Everaldo Canuto <ecanuto@novell.com>
4816 * NotifyIcon.cs: Trigger click and mouseclick events after mouseup event
4817 to mimic win32 behavior. Partially fixes bug #324832.
4819 2008-05-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4821 * BindingSource.cs: Implement Find methods.
4823 2008-05-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4825 * BindingSource.cs: Implement Sort, ApplySort overloads, and
4828 2008-05-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4830 * ListBindingHelper.cs: When calling GetListItemProperties and the
4831 passed object is ITypedList, return the result of
4832 ITypedList.GetItemProperties instead.
4834 2008-05-04 Everaldo Canuto <ecanuto@novell.com>
4836 * LinkLabel.cs: Set default value of name on constructor of Link class
4837 only for 2.0 profile.
4839 2008-05-04 Everaldo Canuto <ecanuto@novell.com>
4841 * LinkLabel.cs: Fix implementation of LinkCollection.LinksAdded property.
4842 Fixes remaining issues of bug #346154.
4844 2008-05-04 Everaldo Canuto <ecanuto@novell.com>
4846 * LinkLabel.cs: Set a default value for name on internal contructor of
4847 Link class. It fixes assert B5 of LinkCollectionTest.Constructor1.
4849 2008-05-04 Everaldo Canuto <ecanuto@novell.com>
4851 * LinkLabel.cs: Move links collection from LinkCollection to LinkLabel
4852 and refer all instances to owner.links. Partially fixes #346154.
4854 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
4856 * LinkLabel.cs: Fix linkarea values for empty text, must have start and
4857 length equal zero. Also called CreateLinkPieces in constructor. It fixes
4858 the LinkLabel test 'TestLinkArea'.
4860 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
4862 * Form.cs: Remove menu before close form to prevent form to be not gaced.
4865 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
4867 * MenuAPI.cs: Dispose popup window after hide. Thanks to Jesse Jones.
4870 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
4872 * MenuAPI.cs: Implemented keyboard navigation for ContextMenu.
4875 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
4877 * MenuAPI.cs: Remove unused ProcessCmdKey method.
4879 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
4881 * MenuAPI.cs: Prevent NRE in menu deactivation when shortcut is used.
4884 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
4886 * MenuAPI.cs: Enable implicit mnemonics for menus. Fixes remaining issues
4889 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
4891 * MenuAPI.cs: Check if mouse down comes from menu, we need it because
4892 sometimes we open a conext menu on mouse down of some controls and the mouse
4893 up is dispatched to menu and dont need to. It fix remaining issues of
4894 #363711 and other problems related to menu mouse click events.
4896 2008-05-02 Everaldo Canuto <ecanuto@novell.com>
4898 * MonthCalendar.cs: Implemented "Go to today" context menu, also changed
4899 some var names to better fit changes, now we have month_menu and today_menu
4900 vars. Fixes bug #363711.
4902 2008-05-02 Everaldo Canuto <ecanuto@novell.com>
4904 * MonthCalendar.cs: Handle every right mouse click to open context menu,
4905 right now the default month menu but it will be change to have "Go to today"
4908 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
4910 * FileDialog.cs, MaskedTextBox.cs, OpenFileDialog.cs: corcompare.
4912 2008-05-02 Everaldo Canuto <ecanuto@novell.com>
4914 * ThemeWin32Classic.cs: Fix MonthCalendar arrows drawing.
4916 2008-05-02 George Giolfan <georgegiolfan@yahoo.com>
4918 * ThemeVisualStyles.cs: Added support for TreeView.
4920 2008-05-02 George Giolfan <georgegiolfan@yahoo.com>
4922 * Theme.cs, ThemeWin32Classic.cs, TreeView.cs: Refactored:
4923 Moved TreeView.DrawNodePlusMinus to Theme.TreeViewDrawNodePlusMinus.
4925 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
4927 * OpenFileDialog.cs: Implement 2.0 SP1 stuffs.
4929 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
4931 * FileDialogCustomPlace.cs, FileDialogCustomPlacesCollection.cs:
4932 Implement 2.0 SP1 stuffs.
4934 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
4936 * FileDialog.cs: Implement 2.0 SP1 stuffs.
4938 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
4940 * Control.cs, ContainerControl.cs, DataGridView.cs, TextBoxBase.cs:
4941 Implement CanEnableIme property. (2.0 SP1)
4943 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
4945 * BindingManagerBase.cs, PropertyManager.cs: Hide GetItemProperties
4948 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
4950 * Control.cs: Provide an internal way for a control to override
4951 the setting of Height.
4952 * DateTimePicker.cs: Remove SetBoundsCore from 2.0 profile,
4953 set height using new method.
4955 2008-05-02 George Giolfan <georgegiolfan@yahoo.com>
4957 * ThemeVisualStyles.cs: Added support for ControlPaint.DrawMixedCheckBox.
4959 2008-05-02 George Giolfan <georgegiolfan@yahoo.com>
4961 * ControlPaint.cs, Theme.cs, ThemeWin32Classic.cs: Refactored:
4962 ControlPaint.DrawMixedCheckBox now calls Theme.CPDrawMixedCheckBox.
4964 2008-05-02 George Giolfan <georgegiolfan@yahoo.com>
4966 * ThemeVisualStyles.cs: Added support for StatusBar.
4968 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
4970 * DataObject.cs: Add the other IDataObject interface.
4972 2008-05-02 George Giolfan <georgegiolfan@yahoo.com>
4974 * ThemeWin32Classic.cs: Refactored: extracted DrawStatusBarBackground,
4975 DrawStatusBarSizingGrip, DrawStatusBarPanelBackground.
4977 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
4979 * DataGridViewCheckBoxCell.cs, DataGridViewImageCell.cs: Fix parameter names.
4980 * ListView.cs: Hide non-public API.
4981 * MaskedTextBox.cs: Remove extra attribute.
4983 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
4985 * DataGridViewImageCell.cs: Use formatted value instead of value
4986 to calculate preferred size.
4988 2008-05-01 Jonathan Pobst <monkey@jpobst.com>
4990 * ListBox.cs: Move some initialization around so that selected_indices
4991 is not accessed before it is created.
4993 2008-05-01 Jonathan Pobst <monkey@jpobst.com>
4995 * InputLanguageCollection.cs: Implement the collection better.
4998 2008-05-01 Jonathan Pobst <monkey@jpobst.com>
5000 * ToolStripDropDownItem.cs: Get the correct event object for
5001 DropDownItemClicked.
5002 * ToolStripMenuItem.cs: Raise DropDownItemClicked on our owner.
5005 2008-05-01 Jonathan Pobst <monkey@jpobst.com>
5007 * DataGridViewRowCollection.cs: We don't currently support shared
5008 rows. Should fix test failures caused by previous commit.
5010 2008-04-30 Jonathan Pobst <monkey@jpobst.com>
5012 * DataGridViewRow.cs: Fixes for cloning the row, ensure header cell's
5013 datagridview gets set. Only paint cells in visible columns.
5014 * DataGridViewCell.cs: Draw border after cell content.
5015 * DataGridView.cs: Invalidate after setting some properties. Only
5016 use visible columns. Fit hit test bug with areas in the col/row header
5017 area but not in a row or col. Implement UpdateCell/Row methods.
5019 2008-04-30 Jonathan Pobst <monkey@jpobst.com>
5021 * DataGridViewElement.cs: Don't throw NIEX.
5022 * DataGridViewColumnHeaderCell.cs: Draw error icons for top left header cells.
5023 * DataGridViewColumnDesignTimeVisibleAttribute.cs: Don't throw NIEX.
5024 * DataGridViewCheckBoxColumn.cs: Implement ToString.
5025 * DataGridViewCheckBoxCell.cs: Allow DBNull as a value.
5026 * DataGridViewCell.cs: Don't raise CellFormatting for RowHeader cells,
5027 if the user filled in the formatting Value, use it.
5029 2008-04-30 Jonathan Pobst <monkey@jpobst.com>
5031 * DataGridViewTextBoxCell.cs: Fix for objects that cannot be cast
5034 2008-04-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5036 * BindingSource.cs: Some corrections to Filter property, as well as
5037 setting it for our list when resetting it.
5039 2008-04-29 Jonathan Pobst <monkey@jpobst.com>
5041 * ScrollBar.cs: Don't let dragging the thumb grip set the value greater
5042 than the maximum. Fixes reopened bug #384182.
5044 2008-04-28 Everaldo Canuto <ecanuto@novell.com>
5046 * ToolStripDropDown.cs: Fix offscreen position for DropDown itens.
5047 Fixes remaining issues of #367490.
5049 2008-04-28 Everaldo Canuto <ecanuto@novell.com>
5051 * ToolStripDropDown.cs: Screen.Bound dont return right value then use
5052 SystemInformation.WorkingArea to get max_screen value.
5054 2008-04-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5056 * BindingSource.cs: Implement Filter and RemoveFilter.
5058 2008-04-28 Everaldo Canuto <ecanuto@novell.com>
5060 * MenuAPI.cs: Prevent sub-menu positon to be less than zero.
5062 2008-04-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5064 * X11Dnd.cs: When trying to convert data and we know we started the
5065 dnd loop, don't try to use the cached data if the loop is not running,
5066 which means that the data has been resetted.
5069 2008-04-28 Everaldo Canuto <ecanuto@novell.com>
5071 * MenuAPI.cs: Force first menu subitem to show from left to right to mimic
5074 2008-04-28 Everaldo Canuto <ecanuto@novell.com>
5076 * MenuAPI.cs: Check the screen limits before show sub-menus and prevent
5077 it to drawn off screen edge. Fixes bug #367490.
5079 2008-04-28 Everaldo Canuto <ecanuto@novell.com>
5081 * MenuAPI.cs: In PopupWindow.RefreshItems uses a temp point var to store
5082 menu position to have only one assignment of Location var.
5084 2008-04-28 Everaldo Canuto <ecanuto@novell.com>
5086 * MenuAPI.cs: Implement the right key for sub-menus. Thanks Ernesto Carrea
5087 for this patch. Fixes bug #384115.
5089 2008-04-28 Jonathan Pobst <monkey@jpobst.com>
5091 * ScrollBar.cs: If SmallChange is larger than LargeChange, make them
5092 the same. If LargeChange is zero, set a minimum size for the scroll
5093 thumb grip. [Fixes bug #384182]
5095 2008-04-28 Jonathan Pobst <monkey@jpobst.com>
5097 * TextBoxTextRenderer.cs: Don't turn &A into a prefix for textboxen.
5100 2008-04-28 Jonathan Pobst <monkey@jpobst.com>
5102 * ListBox.cs: Math.Min should be Math.Max. [Fixes bug #384183]
5104 2008-04-28 George Giolfan <georgegiolfan@yahoo.com>
5106 * ThemeVisualStyles.cs: Added partial support for ScrollBar (based on the
5107 patch from Ernesto).
5109 2008-04-28 George Giolfan <georgegiolfan@yahoo.com>
5111 * ThemeVisualStyles.cs: Added support for ControlPaint.DrawComboButton.
5113 2008-04-28 George Giolfan <georgegiolfan@yahoo.com>
5115 * ThemeVisualStyles.cs: Added support for ControlPaint.DrawButton.
5117 2008-04-28 George Giolfan <georgegiolfan@yahoo.com>
5119 * ThemeVisualStyles.cs: Added support for ControlPaint.DrawRadioButton.
5121 2008-04-28 George Giolfan <georgegiolfan@yahoo.com>
5123 * ThemeVisualStyles.cs: Added support for ControlPaint.DrawScrollButton.
5125 2008-04-27 George Giolfan <georgegiolfan@yahoo.com>
5127 * ThemeVisualStyles.cs: Added support for ButtonBase.UseVisualStyleBackColor.
5129 2008-04-27 Andreia Gaita <avidigal@novell.com>
5131 * HtmlWindow.cs, HtmlHistory.cs: Throw on DomHistory getter (it's
5132 supposed to return a reference to an mshtml interface, which we
5134 * HtmlElement.cs: Throw on DomElement getter (it's supposed to return a
5135 reference to an mshtml interface, which we don't support). Code
5137 * HtmlDocument.cs: Add DefaultEncoding getter implementation. Throw on
5138 DomDocument getter (it's supposed to return a reference to an
5139 mshtml interface, which we don't support). Code formatting cleanup.
5141 2008-04-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5143 * ListView.cs: Ouch, forgot to commit.
5145 2008-04-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5148 * ThemeWin32Classic.cs: Fire the -until now- forgotten CacheVirtualItems event.
5150 2008-04-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5152 * ListView.cs: When calculating box selection for virtual mode, don't
5153 look for intersection with item's text, but item bounds, since that
5154 would mean read ListViewItem's text for _every_ item, and that's
5155 something we just can't do in virtual mode (items are only requested
5158 2008-04-26 George Giolfan <georgegiolfan@yahoo.com>
5160 * ThemeVisualStyles.cs: Added support for ControlPaint.DrawCaptionButton and
5161 partial support for managed windows (based on the patch from Ernesto).
5163 2008-04-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5165 * ListView.cs: When doing a key search use FindItemWithText method
5166 instead of doing the search by ourselves, this way we avoid
5167 duplicating the code and also we handle the special case for virtual
5168 mode. To achieve that make our private overload of FindItemWithText
5169 internal and also have a 'roundtrip' parameter.
5171 2008-04-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5173 * ListView.cs: When doing the layout don't request the
5174 ListViewItem instance if we are in virtual mode (since we can't request it
5175 until the item is actully drawn).
5177 2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
5179 * ThemeVisualStyles.cs: Added support for ProgressBar (based on the patch
5182 2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
5184 * ThemeVisualStyles.cs: Added support for ControlPaint.DrawCheckBox (based on
5185 the patch from Ernesto).
5187 2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
5189 * ThemeEngine.cs: Added code to select ThemeVisualStyles.
5190 * ThemeVisualStyles.cs: Added.
5192 2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
5194 * IDeviceContext.cs: Added a missing using.
5196 2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
5198 * ButtonBase.cs: Made IsDefault protected internal.
5199 * ButtonRenderer.cs: Made GetPushButtonRenderer(PushButtonState) internal.
5201 2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
5203 * Application.cs: Included VisualStyles-related members in the 1.1 profile.
5204 * ButtonRenderer.cs, CheckBoxRenderer.cs, Padding.cs, PaddingConverter.cs,
5205 RadioButtonRenderer.cs: Included in the 1.1 profile.
5206 * IDeviceContext.cs: Added.
5207 * TextRenderer.cs: Included a member in the 1.1 profile.
5209 2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
5211 * ThemeWin32Classic.cs: Added ShouldPaintFocusRectangle(ButtonBase).
5213 2008-04-24 Jonathan Pobst <monkey@jpobst.com>
5215 * ErrorProvider.cs: Make the error icons come after the control
5216 they refer to. It isn't the way the MS does it, but its better
5217 than what we were doing. See bug #368587.
5219 2008-04-24 Jonathan Pobst <monkey@jpobst.com>
5221 * InputLanguage.cs, InputLanguageCollection.cs: Apply patch
5222 from Eric Albright that lazy loads the input language as ensures
5223 everything gets properly initialized. Fixes bug #373871.
5225 2008-04-24 Jonathan Pobst <monkey@jpobst.com>
5227 * ToolStrip.cs: Don't use ToolStripControlHosts when figuring up
5228 implicit mnemonics. [Fixes bug #383000]
5230 2008-04-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5232 * X11Dnd.cs: When canceling the operation, automatically restore the
5233 default cursor - normally the default cursor is restored when the
5234 mouse buttons are released, but we should be able to restore it even
5235 if the buttons are still pressed (for example, when pressing ESC to
5239 2008-04-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5241 * X11Dnd.cs: When starting a new drad and drop operation, set control
5242 field to null, just as the other fields, to avoid calling any
5243 operation on a previous control. Also, when calling DndLeave on a
5244 control, set it to null, thus we don't fire that event multiple times
5248 2008-04-23 Geoff Norton <gnorton@novell.com>
5250 * XplatUICarbon.cs: Ensure that we have a valid hwnd before accessing
5251 the whole_window object. Fixes #377084.
5253 2008-04-23 Andreia Gaita <avidigal@novell.com>
5255 * HtmlElement.cs: Implement RaiseEvent (event injection into the
5258 2008-04-23 Jonathan Pobst <monkey@jpobst.com>
5260 * DataGridViewColumnHeaderCell.cs: Implement some NIEX stuffs.
5262 2008-04-23 Andreia Gaita <avidigal@novell.com>
5264 * HtmlElement.cs, HtmlDocument.cs: Implement javscript method
5267 2008-04-23 Andreia Gaita <avidigal@novell.com>
5269 * HtmlElement.cs, HtmlDocument.cs: Implement custom event handler
5272 2008-04-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5274 * X11Dnd.cs: When the drop was cancelled, or could just not be
5275 performed, return DragDropEffect.None always (match .net).
5277 2008-04-22 Jonathan Pobst <monkey@jpobst.com>
5279 * DataGridViewRowHeaderCell.cs: Fill in some NIEX stuff.
5281 2008-04-22 Jonathan Pobst <monkey@jpobst.com>
5283 * DataGridViewRowCollection.cs: Revert something I didn't mean to commit.
5285 2008-04-22 Jonathan Pobst <monkey@jpobst.com>
5287 * DataGridView.cs: Add support for error icon tool tips.
5288 * DataGridViewCell.cs: ErrorIconBounds needs to call GetErrorIconBounds.
5289 * DataGridViewRowHeaderCell.cs: Need internal way to get ErrorIconBounds.
5291 2008-04-22 Ivan N. Zlatev <contact@i-nz.net>
5293 * X11Structs.cs: Add mouse button masks enum.
5294 * XplatUIX11.cs, Hwnd.cs: Send WM_ENTERSIZEMOVE and
5295 WM_EXITSIZEMOVE only once at the beginning and at the end of the
5296 form resize/move operation instead of for each step of it.
5297 [Fixes bug #346529 for the x11 backend]
5299 2008-04-21 Jonathan Pobst <monkey@jpobst.com>
5301 * DataGridView*: Implement support for drawing error icons.
5303 2008-04-21 Jonathan Pobst <monkey@jpobst.com>
5305 * TreeView.cs: Make vbar and hbar internal.
5306 * TreeNode.cs: If collapsing the node removes one of the TreeView's
5307 scrollbars, invalidate the whole thing.
5310 2008-04-21 Jonathan Pobst <monkey@jpobst.com>
5312 * TreeView.cs: Calling Sort() sets Sorted = true.
5313 * TreeNodeCollection.cs: Try to find the owner TreeView to determine
5314 if the nodes need to be sorted.
5317 2008-04-21 Ivan N. Zlatev <contact@i-nz.net>
5319 * Form.cs: Fire SizeChanged for both when the form is minimized and
5321 * XplatUIX11.cs: Instead of tracking minimization on UnmapNotify track it
5322 on PropertyNotify of _NET_WM_STATE. Much much cleaner.
5324 2008-04-21 Jonathan Pobst <monkey@jpobst.com>
5326 * ComboBox.cs: If the combobox is disabled, draw a disabled
5327 background before painting anything else.
5330 2008-04-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5332 * X11Dnd.cs: Wehn the drag and drop operation is cancelled don't
5333 forget to send a Leave event to the target window - just as .net does
5334 when cancelling dnd operations.
5336 2008-04-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5338 * X11Dnd.cs: Stop tracking messages as part of the dnd operation as
5339 soon as possible - this happens when we send the drop message to the
5340 target window. This way we avoid firing any DragOver _after_ drop finished.
5343 2008-04-20 Ivan N. Zlatev <contact@i-nz.net>
5345 * XplatUIX11.cs: Send WM_WINDOWPOSCHANGED when a toplevel is minimized.
5346 * Form.cs: Handle form minimization as a special state, where size doesn't
5347 change, but we have to fire SizeChanged.
5348 [Fixes bug #325122 for the win32 and x11 backends]
5350 2008-04-20 Ivan N. Zlatev <contact@i-nz.net>
5352 * XplatUIX11.cs: Win32 doesn't send WM_(KILL|SET)FOCUS
5353 if the handle is disabled.
5356 2008-04-20 Ivan N. Zlatev <contact@i-nz.net>
5358 * XplatUIX11.cs: Enable Maximize/Minimize/Close ability (not decorations)
5359 for forms with FormBorderStyle.None.
5362 2008-04-20 Ivan N. Zlatev <contact@i-nz.net>
5364 * XplatUIX11.cs: Implement support for WM_ENTERSIZEMOVE and
5366 [Fixes bug #346529 for the X11 backend]
5368 2008-04-19 Ivan N. Zlatev <contact@i-nz.net>
5371 - Send a mouse Enter message after say dragging the mouse with a
5372 button down and then release it in another client.
5373 - Reset the cursor to prevent X11 from remembering it and setting it
5374 before the control gets WM_SETCURSOR.
5375 - Qeueue a mouse move after a mouse enter like win32.
5378 2008-04-19 Ivan N. Zlatev <contact@i-nz.net>
5380 * XplatUIX11.cs: Implement limited support for WM_SYSCOMMAND.
5381 It's sent when the form gets moved, resized, closed.
5382 * XplatUIStructs.cs: Add SystemCommands enum for WM_SYSCOMMAND.
5383 [Fixes bug #359193 for X11]
5385 2008-04-19 Ivan N. Zlatev <contact@i-nz.net>
5387 * Form.cs: Add a ValidateChildren for the 1.1 profile. Fixes
5390 2008-04-19 Ivan N. Zlatev <contact@i-nz.net>
5392 * ListView.cs: Move CalculateDetailsGroupItemsCount to the NET_2_0
5393 group. Fixes the 1.1 build.
5395 2008-04-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5397 * ListView.cs: Use display indexes for selection in Details view, as
5398 well as do the proper layout based on display indexes for that view
5401 2008-04-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5403 * ListView.cs: Focused item information is now stored as a display
5404 index, and display indexes are used all over the place for selection,
5405 instead of ListViewItem.Index values, which doesn't give us enough
5406 information to modify the selection in groups mode, and was broken.
5408 2008-04-18 Ivan N. Zlatev <contact@i-nz.net>
5410 * Control.cs: Do not fire MouseDown if validation of the control has
5412 * Form.cs: Validate the form before closing.
5413 [Fixes bugs #330501 and #353310]
5415 2008-04-18 Andreia Gaita <avidigal@novell.com>
5417 * WebBrowserBase.cs: Added WndProc, DrawToBitmap,
5418 CreateWebBrowserSiteBase implementations
5419 * HtmlElement.cs: Add missing OuterHTML, OuterText setters, stubbed
5420 Style and TabIndex setters
5422 2008-04-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5424 * ListViewGroup.cs: When returning the actual item count, return the
5425 proper count for default group.
5428 2008-04-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5431 * ListViewGroup.cs: When calculating groups layout, get the actual
5432 number of items per group, since groups added to the group BUT not
5433 added to the ListView are just ignored, and can cause some nasty
5434 exceptions because of the lack of synchronization. Also for
5435 ListViewGroup don't use lazy initialization for items, since we
5436 the common scenario is to use it always - and it helps us to refactor
5437 and clean the .ctor overloads.
5439 2008-04-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5441 * ListView.cs: When adding an item to a ListViewItemCollection
5442 belonging to a group (ListViewGroup.Items), don't generate a redraw if
5443 the added item hasn't beeen previously added to the ListView instance
5444 refered by the group, since it will be ignored. This should avoid some
5445 really nasty flickering.
5447 2008-04-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5449 * ListView.cs: When accessing an item in a specific display
5450 position, use the helper method GetItemAtDisplayIndex, instead of
5451 direct access to the reordered_items_indices array. When doing layout
5452 for groups set the correct Items index for the display position (since
5453 in groups mode items don't have the same position as in Items
5455 * ListViewGroup.cs: Add a field to store the starting item number,
5456 which is later used when calculating the layout.
5460 2008-04-17 Gert Driesen <drieseng@users.sourceforge.net>
5462 * Application.cs: Fixed ProductVersion to fallback to the assembly
5463 version. Fixes regression for bug #325413.
5465 2008-04-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5467 * ListView.cs: New helper method to retrieve an item in a _specific
5468 display_ position (the items can be displayed in a different order
5469 than one of Items collection).
5470 * ThemeWin32Classic.cs: When drawing, instead of iterating over Items
5471 collection, use ListView.GetItemAtDisplayIndex, to get an item in a
5472 specific display position (again remember that items can be sorted
5473 different than Items).
5475 2008-04-16 Jonathan Pobst <monkey@jpobst.com>
5477 * DataGridViewColumnCollection.cs: Create a cached copy of our sorted
5478 list and update it when the collection changes. We were recreating
5479 this several times per row paint and for every pixel the mouse moved
5481 * DataGridViewColumn.cs: Regenerate cached sorted list when DisplayIndex
5484 2008-04-16 Jonathan Pobst <monkey@jpobst.com>
5486 * DataGridViewColumnCollection.cs: Convert our internal sorted columns
5487 list to use generics.
5488 * DataGridView.cs, DataGridViewRow.cs: Use generic sorted column list
5489 and remove unneccessay casts.
5491 2008-04-16 Jonathan Pobst <monkey@jpobst.com>
5493 * DataGridViewBand.cs: Add internal way to set displayed variable.
5494 * DataGridViewRow.cs: Don't paint cells in non-displayed columns.
5495 * DataGridView.cs: Make sure we always keep track of Displayed
5496 rows and columns, and only draw things that are displayed.
5498 2008-04-16 Atsushi Enomoto <atsushi@ximian.com>
5500 * X11Keyboard.cs, XplatUIX11.cs : manage key state regardless of
5501 whether the key events are filtered or not. Introduced
5502 PreFilter() process for this purpose. This fixes atokx3/iiimx
5505 2008-04-16 Andreia Gaita <avidigal@novell.com>
5507 * HtmlHistory.cs: Implement Length property
5509 2008-04-15 Jonathan Pobst <monkey@jpobst.com>
5511 * DataGridView.cs: Call EndEdit when a sort is performed so we take
5512 away the edit textbox. Refactor to reuse column sort code.
5514 2008-04-12 Everaldo Canuto <ecanuto@novell.com>
5516 * MenuAPI.cs: Remove the code that save and restore capture status of
5517 grab_control, this fixes some Menu and Context menu bugs but maybe it can
5518 cause some others, I cant figure the possible problems of this patch but
5519 right now remove the code looks to be better than keep it. This patch fixes
5520 bugs #357638, #378721 and #379570.
5522 2008-04-12 Andreia Gaita <avidigal@novell.com>
5524 * HtmlDocument.cs, HtmlElement.cs, HtmlHistory.cs, WebBrowser.cs:
5525 Implement OuterHtml, OuterText, Enabled, Scroll*, *Rectangle properties,
5526 add missing properties and event handlers.
5528 2008-04-14 Jonathan Pobst <monkey@jpobst.com>
5530 * ListBox.cs: Make sure the LargeChange we are setting is at least
5531 zero, to prevent an IOORE. [Fixes bug #379531]
5533 2008-04-13 Andy Hume <andyhume32@yahoo.co.uk>
5535 * ComboBox.cs: Support item navigation by entering text. Firstly,
5536 in DropDownList mode, for each key-press select the next item
5537 starting with that letter.
5538 For other modes, when no item selected, on arrow-up/-down and open
5539 drop-down select the first item matching the text in the textbox.
5541 2008-04-14 Atsushi Enomoto <atsushi@ximian.com>
5543 * X11Keyboard.cs : Control.FromHandle() could return null
5544 in MoveCurrentCaretPos().
5546 2008-04-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5548 * ListView.cs: When changing the size in VirtualMode, also Reset the
5550 * ListViewItem.cs: Don't call SelectedIndexCollection.Reset when
5551 changing selection info for VirtualMode.
5554 2008-04-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5556 * ThemeWin32Classic.cs: When drawing ListViewItem instancesin Details
5557 view, don't use LineLimit for the first item - use NoWrap *always*
5558 instead, since ListView.LabelWrap is not used for this view.
5561 2008-04-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5563 * Binding.cs: Call UpdateIsBinding when setting control - probably
5564 Binding is already usable and we don't need to wait to check the
5565 IsBinding state. Also for 1.1 profile use IsHandleCreated instead of
5566 Created, just like 2.0 does.
5567 * CurrencyManager.cs: I'm so lame - the previous check was wrong.
5569 2008-04-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5571 * Binding.cs: Just realized we don't need to have a handler for
5572 BindingContextChanged, since this info should be now consumed directly
5573 in the BindingManagerBase. And also, the manager.IsBindingSuspended
5574 state info is checked directly, instead of caching it.
5576 * CurrencyManager.cs: IsSuspended should return always false if Count
5579 2008-04-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5581 * Binding.cs: When calling PushData, return if manager.Count == 0,
5582 since we just don't have data to be read. Also, when setting the
5583 Control for binding, hook up some events to refresh the IsBinding
5584 state when BindingContext change or control gets created; use
5585 Control.IsHandleCreated instead of Control.Created check to set
5586 IsBinding state - we *actually* need to modify IsBinding when control
5587 is created, but we don't have any Created event, only HandleCreated.
5588 Fixes part of #349364.
5590 2008-04-11 Geoff Norton <gnorton@novell.com>
5592 * XplatUICarbon.cs: Expose Caret to the Carbon layer. Guard against
5593 warping a null Caret.
5595 2008-04-11 Jonathan Pobst <monkey@jpobst.com>
5597 * DataGridView.cs: Implement row/column autosizing methods. Implement
5599 * DataGridViewColumnHeaderCell.cs: Add painting of the sort glyph.
5600 * DataGridViewRowCollection.cs: Add an internal sorting method.
5602 2008-04-11 Jonathan Pobst <monkey@jpobst.com>
5604 * ThemeWin32Classic.cs: Apply patch from Ernesto to cache an expensive
5605 value in ListView drawing code.
5607 2008-04-11 Jonathan Pobst <monkey@jpobst.com>
5609 * FileDialog.cs: Only call FileOk when Ok is clicked, not when Cancel
5610 is clicked. Respect the user setting Cancel in FileOk.
5612 2008-04-11 Geoff Norton <gnorton@novell.com>
5614 * ListView.cs: Avoid setting and resetting control Width/Heights and
5615 calculate the final value and set it once. Prevents a feedback loop
5618 2008-04-10 Jonathan Pobst <monkey@jpobst.com>
5620 * TreeView.cs: Clamp setting the scrollbar value using SafeValueSet.
5623 2008-04-10 Atsushi Enomoto <atsushi@ximian.com>
5625 * X11Keyboard.cs, X11Structs.cs : make over-the-spot mode default.
5626 Add some on-the-spot code, but it seems we don't need it.
5628 2008-04-10 Jonathan Pobst <monkey@jpobst.com>
5630 * Form.cs: Add method for DataGridView to trigger focus cues
5631 even when it handles the tab keypress.
5633 2008-04-10 Jonathan Pobst <monkey@jpobst.com>
5635 * DataGridView.cs: More keyboard handling, tab, esc.
5636 * DataGridViewTextBoxEditingControl.cs: Don't request arrow keys
5637 when at the beginning or end of the text in the text box.
5639 2008-04-09 Jonathan Pobst <monkey@jpobst.com>
5641 * DataGridViewCell.cs: Guard against an NRE causing a test to fail.
5643 2008-04-09 Jonathan Pobst <monkey@jpobst.com>
5645 * DataGridView.cs: Some fixups for showing and adding the edit control.
5646 * DataGridViewButtonColumn.cs: Implement ToString.
5647 * DataGridViewCell.cs: Size and position the control simultaneously.
5648 * DataGridViewTextBoxCell.cs: Use base to position control.
5650 2008-04-09 Jonathan Pobst <monkey@jpobst.com>
5652 * DataGridViewCell.cs: Fix up some formatting and painting code.
5653 * DataGridViewImageCell.cs: Implement some NIEX methods.
5655 2008-04-09 Jonathan Pobst <monkey@jpobst.com>
5657 * ToolStripItemCollection.cs: What moving an item from one owner
5658 to another, remove from source owner before adding to destination.
5661 2008-04-09 Jonathan Pobst <monkey@jpobst.com>
5663 * PictureBox.cs: Call Load when ImageLocation is set.
5666 2008-04-09 Atsushi Enomoto <atsushi@ximian.com>
5668 * X11Keyboard.cs, XplatUIX11.cs :
5669 Implement over-the-spot mode (with some odd offsets).
5670 - set preedit position when caret is set.
5671 - Wrap XMoveResizeWindow() to move preedit position.
5673 2008-04-08 Everaldo Canuto <ecanuto@novell.com>
5675 * X11keyboard.cs: Fix last patch, maxval must be less not greater than
5678 2008-04-08 Everaldo Canuto <ecanuto@novell.com>
5680 * KeyboardLayouts.cs: Uses GENERATING_RESOURCES to make VKeyTableIndex
5681 and ScanTableIndex public, it fix compilations errors when compiling
5682 WinForms to generate keyboard layout resources.
5684 2008-04-08 Everaldo Canuto <ecanuto@novell.com>
5686 * X11keyboard.cs: Prevent keyboard errors when vitual table theres
5687 different element count than scan table. It prevents some errors in non
5690 2008-04-08 Jonathan Pobst <monkey@jpobst.com>
5692 * DataGridViewHeaderCell.cs: Implement some NIEX methods.
5694 2008-04-08 Jonathan Pobst <monkey@jpobst.com>
5696 * DataGridView.cs: Call OnContentClick.
5697 * DataGridViewCell.cs: Do a null check on ValueType instead
5699 * DataGridViewCheckBoxCell.cs: Implement.
5701 2008-04-08 Atsushi Enomoto <atsushi@ximian.com>
5703 * X11Keyboard.cs : Do not cast IntPtr to int. Use long.
5705 2008-04-08 Atsushi Enomoto <atsushi@ximian.com>
5707 * X11Keyboard.cs : Check XGetIMValues() return value in
5708 case it does not return input styles in some environment.
5710 2008-04-08 Atsushi Enomoto <atsushi@ximian.com>
5712 * X11Keyboard.cs : sizeof(IntPtr) != 4 on amd64.
5714 2008-04-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5716 * BindingContext.cs: Stub UpdateBinding method.
5718 2008-04-07 Atsushi Enomoto <atsushi@ximian.com>
5720 * X11Structs.cs : added couple of structs for XIM support.
5722 Release XIM in case it failed to create XIC.
5723 Use consts for XNblah string.
5724 Add support for IM style customization and XIC creation
5725 for preedit-position and preedit-callback.
5726 Right now use MONO_WINFORMS_XIM_STYLE environment variable
5727 (list of: over-the-spot | on-the-spot | root). Only root
5730 (redoing r99172 with fix.)
5732 2008-04-07 Jonathan Pobst <monkey@jpobst.com>
5734 * TreeView.cs: Center the checkbox a little better.
5736 2008-04-07 Jonathan Pobst <monkey@jpobst.com>
5738 * ThemeClearlooks.cs, ThemeGtk.cs, ThemeNice.cs, ThemeWin32Classic.cs:
5739 Apply very nice patch from Ernesto Carrea that simplifies our
5740 scrollbar drawing. [From bug #376146]
5742 2008-04-07 Jonathan Pobst <monkey@jpobst.com>
5744 * TreeView.cs: Correct the location of the root node checkbox when
5745 ShowRootLines = false. Don't draw the root lines for the root node
5746 when ShowRootLines = false. [Fixes bug #377535]
5748 2008-04-06 Gert Driesen <drieseng@users.sourceforge.net>
5750 * WebBrowserBase.cs: Added missing attributes and fixed attributes.
5752 * WebBrowser.cs: Added missing attributes and fixed attributes. Fixed
5754 * MaskedTextBox.cs: Added missing attribute. Code formatting.
5755 * PageSetupDialog.cs: Added missing attribute. Code formatting.
5756 * HtmlWindowCollection.cs: Code formatting. Fixed line endings.
5757 * ImeMode.cs: Added missing field.
5758 * HtmlWindow.cs: Code formatting. Fixed line endings.
5759 * HtmlElement.cs: Code formatting. Fixed line endings. Fixed compiler
5761 * HtmlHistory.cs: Code formatting. Fixed line endings.
5762 * HtmlDocument.cs: Code formatting. Fixed line endings.
5763 * ToolStripPanel.cs: Added missing IList implementation.
5764 * HtmlElementCollection.cs: Code formatting. Fixed line endings.
5766 2008-04-06 Gert Driesen <drieseng@users.sourceforge.net>
5768 * BindingContext.cs: Changed argument names to fix corcompare errors.
5769 * DataGridView.cs: Removed extra explicit interface implementation
5770 of IDropTarget. Code formatting.
5771 * FlowLayoutPanel.cs: Changed argument names to fix corcompare errors.
5772 * ComboBox.cs: Changed argument names to fix corcompare errors.
5773 * DataGridTextBoxColumn.cs: Changed argument names to fix corcompare
5775 * GridColumnStylesCollection.cs: Changed argument names to fix
5776 corcompare errors. Removed extra tabs.
5777 * GridTableStylesCollection.cs: Changed argument names to fix corcompare
5779 * Control.cs: Changed argument names to fix corcompare errors. Code
5780 formatting. Removed extra explicit IList implementation.
5781 * TextBox.cs: Changed argument names to fix corcompare errors. Code
5782 formatting. Use string.Empty instead of "".
5783 * GridItemCollection.cs: Changed argument names to fix corcompare
5784 errors. Code formatting.
5785 * DataGridViewTopLeftHeaderCell.cs: Changed argument names to fix
5786 corcompare errors. Code formatting.
5787 * ImageList.cs: Changed argument names to fix corcompare errors.
5788 * ToolStripItem.cs: Changed argument names to fix corcompare errors.
5789 * DataGridViewRowCollection.cs: Changed argument names to fix
5790 corcompare errors. Code formatting.
5791 * TableLayoutPanel.cs: Changed argument names to fix corcompare errors.
5792 * DataGridViewSelectedCellCollection.cs: Changed argument names to
5793 fix corcompare errors. Code formatting.
5794 * DataGridViewComboBoxCell.cs: Changed argument names to fix
5795 corcompare errors. Code formatting.
5796 * LinkLabel.cs: Changed argument names to fix corcompare errors.
5797 * TreeNode.cs: Changed argument names to fix corcompare errors. Code
5799 * PropertyGrid.cs: Changed argument names to fix corcompare errors.
5801 * BindingSource.cs: Changed argument names to fix corcompare errors.
5802 Removed extra explicit interface implementations.
5803 * DataGridViewSelectedRowCollection.cs: Changed argument names to
5804 fix corcompare errors. Code formatting.
5805 * ToolStripItemCollection.cs: Removed extra explicit interface
5806 implementation of IList.ReadOnly.
5807 * DataGridViewColumnCollection.cs: Changed argument names to fix
5808 corcompare errors. Code formatting.
5809 * DataGridViewRow.cs: Rename converter to match MS. Code formatting.
5810 * ListView.cs: Changed argument names to fix corcompare errors.
5811 * DataGridViewHeaderCell.cs: Changed argument names to fix corcompare
5813 * DataGridBoolColumn.cs: Changed argument names to fix corcompare
5815 * ListBindingHelper.cs: Changed argument names to fix corcompare
5817 * DataGridViewSelectedColumnCollection.cs: Changed argument names to
5818 fix corcompare errors. Code formatting.
5819 * ToolStripPanel.cs: Removed extra explicit implementation of
5820 IDropTarget interface.
5821 * ListBox.cs: Changed argument names to fix corcompare errors. Code
5822 formatting. Removed extra tabs and spaces.
5823 * DataGridViewCellCollection.cs: Changed argument names to fix
5825 * Help.cs: Changed argument names to fix corcompare errors. Code
5827 * TabControl.cs: Changed argument names to fix corcompare errors.
5828 * DataGridColumnStyle.cs: Changed argument names to fix corcompare
5830 * TableLayoutSettings.cs: Changed argument names to fix corcompare
5833 2008-04-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5835 * ListBindingHelper.cs: When returning properties, only return those
5836 that are browsable. Also, don't do a linear search of the properties,
5837 but use the indexer of the PropertyDescriptorCollection class.
5839 2008-04-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5841 * BindingSource.cs: Implement GetRelatedCurrencyManager by adding a
5842 Dictionary containing the related (child) currency managers. Also,
5843 when setting DataSource, add datasource to our List if it is not a list.
5845 2008-04-05 Ivan N. Zlatev <contact@i-nz.net>
5847 * PropertyGridTextBox.cs: Fix background color of the buttons.
5848 * PropertyGridView.cs: Make the entry less jumpy.
5850 2008-04-05 Ivan N. Zlatev <contact@i-nz.net>
5852 * PropertyGrid.cs: Fix unused variable warnings.
5854 2008-04-05 Ivan N. Zlatev <contact@i-nz.net>
5856 * PropertyGridView.cs: Fix expansion via [+] misbehavior on
5857 double-click. It expanded it once in the mouse down and then
5858 again in the double-click handler.
5860 2008-04-04 Ivan N. Zlatev <contact@i-nz.net>
5862 * GridEntry.cs: ICustomTypeDescriptor support for PropertyOwner,
5863 TypeConverter and UITypeEditors.
5865 2008-04-04 Ivan N. Zlatev <contact@i-nz.net>
5867 * Control.cs: Visibility should be set synchronously,
5868 so we must also redraw once it is and not rely on layouting or
5869 other code to repaint.
5872 2008-04-04 Jonathan Pobst <monkey@jpobst.com>
5874 * DataGridViewCell.cs: Respect DataGridView.GridColor.
5876 2008-04-03 Jonathan Pobst <monkey@jpobst.com>
5878 * Control.cs: Invalidate when the alpha channel is less than 255,
5879 not only when control is transparent.
5881 2008-04-03 Jonathan Pobst <monkey@jpobst.com>
5883 * DataGridViewRowPrePaintEventArgs.cs, DataGridViewRowPostPaintEventArgs.cs:
5884 Implement some painting convenience methods that threw NIEX.
5886 2008-04-03 Jonathan Pobst <monkey@jpobst.com>
5888 * DataGridView.cs: Call CellMouse[Enter|Move|Leave] properly.
5889 * DataGridViewLinkCell.cs: Implement.
5891 2008-04-03 Ivan N. Zlatev <contact@i-nz.net>
5893 * GridEntry.cs: Report the conversion exception error description.
5896 2008-04-03 Ivan N. Zlatev <contact@i-nz.net>
5898 * PropertyGridView.cs: Do not scroll to item on resize.
5901 2008-04-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5903 * BindingContext.cs: When retrieving a BindingManagerBase, if the
5904 dataSource parameter is ICurrencyManagerProvider, then return
5905 ICurrencyManagerProvider.CurrencyManager/GetRelatedCurrencyManager
5906 instead of creating a new one.
5908 2008-04-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5910 * BindingSource.cs: Implement support for Type instances as
5913 2008-04-02 Jonathan Pobst <monkey@jpobst.com>
5915 * DataGridView.cs: Minor cleanups and call CellMouseUp.
5916 * DataGridViewCell.cs: Make some painting routines internally virtual.
5917 * DataGridViewButtonCell.cs: Implement.
5919 2008-04-02 Jonathan Pobst <monkey@jpobst.com>
5921 * Control.cs: We always need to invalidate our children with
5922 transparent backgrounds when we are invalidated.
5925 2008-04-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5927 * BindingSource.cs: EndEdit and CancelEdit should call EndCurrentEdit
5928 and CancelCurrentEdit on CurrencyManager respectively. Implement
5929 support for ICancelAddNew too.
5931 2008-04-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5933 * CurrencyManager.cs: When calling EndCurrentEdit/CancelCurrentEdit,
5934 call EndNew/CancelNew if list is ICancelAddNew.
5936 2008-04-01 Jonathan Pobst <monkey@jpobst.com>
5938 * DataGridView.cs: Guard against an exception while painting
5939 if there are no rows.
5941 2008-04-01 Jonathan Pobst <monkey@jpobst.com>
5943 * DataGridView.cs: Implement a bunch of keyboard commands.
5945 2008-03-31 Jonathan Pobst <monkey@jpobst.com>
5947 * ToolBar.cs: Don't do our painting if UserPaint is set. If UserPaint
5948 isn't set, don't call OnPaint. [Fixes bug #375300]
5950 2008-03-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5952 * BindingSource.cs: IsBindingSuspended, ResumeBinding and
5953 SuspendBinding depend on CurrencyManager. Implement RemoveCurrent,
5954 hookup the remaining events related to CurrencyManager, and fire
5955 OnListChanged also for the Clear () method.
5957 2008-03-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5959 * BindingSource.cs: Use Current and Position implementations in
5960 CurrencyManager instead of using our own routines, since we need
5961 to be in synch with it. Count should NEVER return a -1 value, and
5962 also report ListChanged events for both simple IList data
5963 sources (manually) as well for IBindingList ones (by hooking up an
5964 event handler for it).
5966 2008-03-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5968 * BindingSource.cs: Make one .ctor call the another, to avoid
5969 duplicate code. Add the CurrencyManager property, and also for AddNew
5970 throw the proper exceptions and show better error messages.
5972 2008-03-28 Jonathan Pobst <monkey@jpobst.com>
5974 * ComboBox.cs: Only adjust selectedindex if Handle has been
5975 created. Fixes failing test.
5977 2008-03-28 Jonathan Pobst <monkey@jpobst.com>
5979 * ComboBox.cs: Adjust selectedindex if we insert a new item
5980 above the current selectedindex in a sorted ComboBox.
5983 2008-03-28 Jonathan Pobst <monkey@jpobst.com>
5985 * ComboBox.cs: Support PageUp/PageDown when dropdown is closed.
5988 2008-03-28 Jonathan Pobst <monkey@jpobst.com>
5990 * DataGridViewTextBoxCell.cs: Implement stuffs.
5992 2008-03-27 Jonathan Pobst <monkey@jpobst.com>
5994 * TreeView.cs: Create the scrollbars even earlier to be
5995 double dog certain they are created before they are accessed.
5997 2008-03-27 Jonathan Pobst <monkey@jpobst.com>
5999 * XplatUIX11.cs: Remove a no-op line that csc was choking on.
6001 2008-03-27 Jonathan Pobst <monkey@jpobst.com>
6003 * ScrollBar.cs: Create an internal safe Value setter so we
6004 won't crash if we try to set a value outside the min and max.
6005 * TextBoxBase.cs: Use safe value setter to guard against a
6006 potential NRE that is being reported by Reflector.
6008 2008-03-27 Jonathan Pobst <monkey@jpobst.com>
6010 * TreeView.cs: Create the scrollbars earlier in the constructor
6011 to attempt to guard against an NRE in SetTop in Reflector.
6013 2008-03-27 Jonathan Pobst <monkey@jpobst.com>
6015 * DataGridView.cs, DataGridViewCell.cs, DataGridViewCell.cs,
6016 DataGridViewRowCollection.cs: Do not scroll column and row headers,
6017 show messagebox on data format error, use column display index
6018 correctly, make sure HitTest supports new layout stuff,
6019 make sure scrollbars support new layout stuff.
6021 2008-03-27 Atsushi Enomoto <atsushi@ximian.com>
6023 * XplatUIX11.cs : Patch by Doug Rintoul.
6024 For some IM engines, keypress events need to delay call
6025 to XPending() and XNextEvent() in the loop so that it
6026 does not mess the orders in XIM commit callback.
6027 Some KeyRelease events such as shift keys need to be
6028 processed both in the IM engine and winforms driver
6029 itself since winforms holds its own state check.
6031 For details, see: http://lists.ximian.com/pipermail/mono-winforms-list/2008-March/003279.html
6033 2008-03-27 Atsushi Enomoto <atsushi@ximian.com>
6035 * X11Keyboard.cs, XplatUIX11.cs :
6036 add primitive support for XIM input support (preedit-
6037 nothing and status-nothing). It requires precise event
6038 capturing (XSelectInput/"filterEvents") and different
6039 call to XFilterEvent against root window.
6040 Get composed string and send dummy WM_IME_COMPOSITION.
6041 Free XIM and XIC instances in finalizer.
6043 (This first patch does not include suggested changes
6044 by Doug Rintoul. It will follow.)
6046 2008-03-26 Jonathan Pobst <monkey@jpobst.com>
6048 * DataGridView.cs: When binding to a property, if the property
6049 doesn't have a setter, set the column to readonly.
6052 2008-03-26 Jonathan Pobst <monkey@jpobst.com>
6054 * ComboBox.cs: Guard against NRE if an arrow key is hit while
6055 we aren't dropped down. Support Home/End in DropDownList mode.
6058 2008-03-26 Jonathan Pobst <monkey@jpobst.com>
6060 * TreeNodeCollection.cs: Don't increment count until we've
6061 saved our index to return.
6064 2008-03-25 Jonathan Pobst <monkey@jpobst.com>
6066 * Label.cs: Add padding to the label's AutoSize calculation.
6069 2008-03-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6071 * ListBindingHelper.cs: Actually implement GetListName method.
6073 2008-03-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6075 * BindingSource.cs: Throw the propert expceptions for some methods, as
6076 well as detect the list item type for Add method if DataSource is null.
6078 2008-03-25 Jonathan Pobst <monkey@jpobst.com>
6080 * DataGridViewCell.cs: I don't know why I commented this out,
6081 putting it back for now.
6083 2008-03-25 Jonathan Pobst <monkey@jpobst.com>
6085 * DataGridViewCell.cs: Remove storage for owning column, just
6087 * DataGridViewColumn.cs: Make getter for HeaderTextSet.
6088 * DataGridViewColumnHeaderCell.cs: If the header text has been
6089 explicitly set, return it.
6092 2008-03-25 Jonathan Pobst <monkey@jpobst.com>
6094 * DataGridViewRowCollection.cs: Disable row sharing when
6095 using data binding. Its a great feature, but lets work on
6096 getting DGV usable first before we worry about optimizations.
6098 2008-03-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6100 * BindingSource.cs: When resetting our internal list, compute list
6101 item type information to be used for indirect list access. Also
6102 implement/tune some properties and methods related to the list access
6104 * ListBindingHelper.cs: Add a stub for GetListName method, used from
6107 2008-03-24 Jonathan Pobst <monkey@jpobst.com>
6109 * DataGridView.cs: If RowCount is increased while ColumnCount
6110 is zero, add a column. [Fixes bug #331649]
6112 2008-03-24 Jonathan Pobst <monkey@jpobst.com>
6114 * DataGridViewRowCollection.cs: When adding new rows for
6115 databinding, make sure they are place before the add row.
6118 2008-03-24 Jonathan Pobst <monkey@jpobst.com>
6120 * DataGridViewRow.cs: Draw cells in column DisplayIndex order
6121 instead of Index order.
6123 2008-03-24 Jonathan Pobst <monkey@jpobst.com>
6125 * DataGridView.cs: If columns are added by increasing ColumnCount,
6126 they need to be DataGridViewTextBoxColumns, not DataGridViewColumn.
6129 2008-03-24 Jonathan Pobst <monkey@jpobst.com>
6131 * DataGridView.cs: Turn off and on the "new row" when
6132 AllowUserToAddRows is toggled. When the handle is created,
6133 set current cell and selected cell/row/col.
6135 2008-03-24 Jonathan Pobst <monkey@jpobst.com>
6137 * ComboBox.cs: When navigating the drop down by keyboard, we
6138 need to scroll the list box if our selection moves out of the
6139 currently shown items. [Fixes bug #371990]
6141 2008-03-24 Luke Page <luke.a.page@gmail.com>
6143 * RichTextBox.cs: Handles visible rtf tag and no longer shows the text
6144 on the control. Also now handles unicode compatibility characters and
6145 stores the unicode compatibility length on the stack. Fixes Bugs
6146 #355198 and #366436.
6148 2008-03-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6150 * BindingSource..cs: Take into account DataMember when re-creating the
6151 List property, and also create a specific kind of list as needed.
6153 2008-03-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6155 * ListBindingHelper.cs: Add a new case for GetList () method - when we
6156 get an empty IEnumerable, try to detect whether the datamember is
6157 valid or not for that type, if true, return null, and throw exception
6160 2008-03-22 Jonathan Pobst <monkey@jpobst.com>
6162 * ComboBox.cs: Alt-Down should drop down the list, Esc should
6163 retract it. [Fixes bug #371989]
6165 2008-03-22 Ivan N. Zlatev <contact@i-nz.net>
6167 * PropertyGrid.cs: Initialize the sorting button as pushed.
6169 2008-03-22 Ivan N. Zlatev <contact@i-nz.net>
6172 - Visually select the PropertyTab.
6173 - Filter Properties by Attributes properly.
6175 2008-03-21 Jonathan Pobst <monkey@jpobst.com>
6177 * MenuItem.cs: Remove menu item from parent when disposed.
6180 2008-03-21 Jonathan Pobst <monkey@jpobst.com>
6182 * ToolBar.cs: Don't reset layout_type if Dock = None.
6184 2008-03-21 Andreia Gaita <avidigal@novell.com>
6186 * UserControl.cs: Select the first available control when we get focus.
6189 2008-03-21 Jonathan Pobst <monkey@jpobst.com>
6191 * DataGridViewCell.cs, DataGridViewTextBoxCell.cs: Don't paint
6192 the content if we are in edit mode. [Fixes bug #343964]
6194 2008-03-21 Jonathan Pobst <monkey@jpobst.com>
6196 * DataGridViewCell.cs: Fix border painting for column headers.
6198 2008-03-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6200 * BindingSource.cs: When setting or resetting data source,
6201 use ListBindingHelper.GetList () method, since it will get the list in
6202 case datasource is IListSource.
6204 2008-03-20 Jonathan Pobst <monkey@jpobst.com>
6206 * DataGridViewCell.cs: Implement lots more stuffs.
6208 2008-03-20 Ivan N. Zlatev <contact@i-nz.net>
6210 * PropertyGridView.cs, GridEntry.cs: Implement support for
6211 UITypeEditor.IsDropDownResizable.
6213 2008-03-20 Jonathan Pobst <monkey@jpobst.com>
6215 * DataGridViewCell.cs: Remove unused variables, improve how
6216 several of the property getters work.
6217 * DataGridViewRow.cs: Don't call setSize on a cell, cell should
6218 get its size from the parent row/col.
6220 2008-03-20 Ivan N. Zlatev <contact@i-nz.net>
6222 * PropertyGrid.cs: Ensure PropertiesTab is visible even if the
6223 user alters manually the PropertyTabs collection via the
6224 PropertyTabs property.
6226 2008-03-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6228 * ListBindingHelper.cs: Implement -previously- ignored cases. We have
6229 new tests for them to be sure to be compatible with .net.
6231 2008-03-20 Andreia Gaita <avidigal@novell.com>
6233 * WebBrowserBase.cs: Fix attributes, add events
6234 * WebBrowser.cs: Fix Padding signature
6236 2008-03-20 Ivan N. Zlatev <contact@i-nz.net>
6238 * PropertyGrid.cs, PropertyGridView.cs: Implement PropertyTab support.
6240 2008-03-19 Jonathan Pobst <monkey@jpobst.com>
6242 * DataGridView.cs, DataGridViewCell.cs, DataGridViewCellStyle.cs,
6243 DataGridViewLinkCell.cs, DataGridViewRow.cs, DataGridViewRowHeaderCell.cs,
6244 DataGridViewTextBoxCell.cs: Changes so that DataGridViewCell
6245 passes the new suite of tests for it.
6247 2008-03-18 Andreia Gaita <avidigal@novell.com>
6249 * WebBrowser.cs: Add missing attributes, missing Padding and
6250 DefaultSize properties, remove extraneous getters
6252 2008-03-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6254 * ListBindingHelper.cs: Implement a pair of GetListItemProperties
6257 2008-03-16 Jonathan Pobst <monkey@jpobst.com>
6259 * ComboBox.cs: Move resetting the selected index to keypress
6260 instead of textchanged. Changing the text programmatically
6261 should not trigger resetting the selected index. Fixes test.
6263 2008-03-16 Jonathan Pobst <monkey@jpobst.com>
6265 * ComboBox.cs: When the user types into the textbox, reset
6266 the selected index to -1. [Fixes bug #371672]
6268 2008-03-16 Jonathan Pobst <monkey@jpobst.com>
6270 * FileDialog.cs: Support Control-A for selecting everything
6271 in an OpenFileDialog. [Fixes bug #371564]
6273 2008-03-15 Jonathan Pobst <monkey@jpobst.com>
6275 * DataGridView.cs: When row/column visible/height properties
6276 change, invalidate. Take the NIEX out of InvalidateRow/Column
6277 etc. We don't support them yet, but we can just invalidate
6278 everything until we do support them. (Added MonoTODO). Set
6279 proper control styles.
6280 * DataGridViewRow.cs: Don't call PaintHeader if row headers
6283 2008-03-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6285 * ListBindingHelper.cs: Implement 2.0 GetListItemType methods.
6287 2008-03-14 Jonathan Pobst <monkey@jpobst.com>
6289 * DataGridViewRow.cs: Only paint the white background in
6290 cell bounds, the row bounds extends past the cells if the
6291 grid width isn't as wide as the DGV.
6293 2008-03-14 Jonathan Pobst <monkey@jpobst.com>
6295 * DataGridView*: Completely revamp the drawing to match the
6296 public API. Our grids now look better, and call all the
6297 appropriate methods and event to allow users to override
6298 the painting and do their own.
6300 2008-03-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6302 * ListBindingHelper.cs: Implement 2.0 GetList methods.
6304 2008-03-13 Jonathan Pobst <monkey@jpobst.com>
6306 * DataGridView.cs: Implement BorderStyle.
6308 2008-03-13 Jonathan Pobst <monkey@jpobst.com>
6310 * FileDialog.cs: Apply patch from Andy Hume: Any time we
6311 are comparing attributes, make sure we only look at the
6312 one we are interested. These calls were failing if there
6313 were more than one attribute.
6316 2008-03-13 Jonathan Pobst <monkey@jpobst.com>
6318 * DataGridColumnStyle.cs: Hide ctor from 1.1 profile.
6320 2008-03-12 Jonathan Pobst <monkey@jpobst.com>
6322 * PageSetupDialog.cs: Stub EnableMetric.
6323 * PrintControllerWithStatusDialog.cs: Implement IsPreview.
6324 * PrintPreviewDialog.cs: Add ProcessDialogKey,
6327 2008-03-12 Jonathan Pobst <monkey@jpobst.com>
6329 * MonthCalendar.cs: Remove unused variable.
6331 2008-03-12 Jonathan Pobst <monkey@jpobst.com>
6333 * DataGridView*.cs: corcompare stuffs.
6335 2008-03-11 Jonathan Pobst <monkey@jpobst.com>
6337 * MonthCalendar.cs: Remove an incorrect invalidate optimization.
6338 The savings aren't worth the extra code to fix the optimization.
6341 2008-03-11 Jonathan Pobst <monkey@jpobst.com>
6343 * ToolBar.cs: Always call base.Dock in the Dock override so that
6344 Control's layout_type gets reset correctly.
6347 2008-03-11 Ivan N. Zlatev <contact@i-nz.net>
6349 * X11Dnd.cs: End DnD operation also for the middle mouse button.
6351 2008-03-11 Jonathan Pobst <monkey@jpobst.com>
6353 * ContainerControl.cs: We can't do MenuStrip implicit mnemonics
6354 at the same time we do explicit ones, because we have to give all
6355 other controls on the container a chance to handle explicit ones
6356 first. If no one has an explicit mnemonic, then we can let the
6357 MenuStrip have a shot at implicit mnemonics.
6358 * MenuStrip.cs: Create an implicit mnemonic function.
6359 * ToolStrip.cs: When processing explicit mnemonics, don't do implicit
6360 mnemonics for MenuStrips.
6363 2008-03-11 Jonathan Pobst <monkey@jpobst.com>
6365 * AxHost.cs, Binding.cs, DataGridView.cs, DataGridViewCell.cs,
6366 DataGridColumnStyle.cs: corcompare stuffs.
6368 2008-03-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6370 * FileDialog.cs: Don't add any ColumnHeader to Columns if view is not
6371 Details - This is needed after we added the bits to use any available
6372 column also for List and SmallIcon view.
6374 2008-03-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6376 * ListBox.cs: Fire SelectedIndexChanged and SelectedValueChanged events
6377 at the proper place, not only when changing SelectedIndex and changing
6378 the selection using keys/mouse, as .net does.
6380 2008-03-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6382 * ControlBindingsCollection.cs: Implement last 2.0
6383 DefaultDataSourceUpdateMode property. Also fix a wrong instruction
6384 in the new 2.0 Add methods.
6386 2008-03-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6388 * ListBox.cs: When calling SelectedIndexCollection.Clear,
6389 return if no items are previously selected - this is done to avoid
6390 firing OnSelectedIndexChanged without need to do so. Also,
6391 when creating handle ensure that the focused item is visible (as
6394 2008-03-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6396 * ListBox.cs: Rewrote/refactored most of selection code. We require
6397 the following things in selection: a) keep selection sorted (both
6398 indices and items), b) SelectedIndices automatically detect the
6399 selection mode, c) SelectedIndex should be the first selected item
6400 index, d) Need to Focus/adjust scroll bar when selecting a new item,
6401 not only for SelectedIndex, which is specially important in Multi*
6402 selection modes. To achieve this we are moving the selection core to
6403 SelectedIndexCollection and make depend all selection modifications on
6407 2008-03-06 Jonathan Pobst <monkey@jpobst.com>
6409 * ToolStrip.cs: Enable implicit mnemonics for drop down
6410 menu strips. [Fixes part of bug #367692]
6412 2008-03-06 Jonathan Pobst <monkey@jpobst.com>
6414 corcompare - fix parameter names [stragglers].
6415 Binding.cs, BindingsCollection.cs, GridColumnStylesCollection.cs,
6416 HelpEventHandler.cs, Label.cs, ListView.cs, Message.cs,
6419 2008-03-06 Jonathan Pobst <monkey@jpobst.com>
6421 Control.cs: Don't call ProcessMenuKey on WM_SYSKEYUP if there
6422 was a mnemonic pressed as well as Alt. Also, if nothing handles a
6423 mnemonic, let the ToolStripManager have it even if it doesn't
6424 have a matching mnemonic.
6427 2008-03-06 Jonathan Pobst <monkey@jpobst.com>
6429 corcompare - fix warning about implicit implementation
6430 * ToolStrip.cs: Add IToolStripData interface.
6431 * IToolStripData.cs: Add.
6433 2008-03-06 Jonathan Pobst <monkey@jpobst.com>
6435 corcompare - fix warning about implicit implementation
6436 * Control.cs, ToolStripPanelRow.cs: Add IBounds interface.
6439 2008-03-05 Jonathan Pobst <monkey@jpobst.com>
6441 corcompare - fix parameter names [N-Z].
6442 LinkArea.cs, NativeWindow.cs, NotifyIcon.cs, PageSetupDialog.cs,
6443 Panel.cs, PrintDialog.cs, PrintPreviewControl.cs, PropertyGrid.cs,
6444 PropertyManager.cs, RichTextBox.cs,
6445 ScrollBar.cs, SelectionRange.cs, SplitContainer.cs, StatusBar.cs,
6446 StatusBarDrawItemEventArgs.cs, StatusBarPanelClickEventArgs.cs,
6447 StatusStrip.cs, TabControl.cs, TableLayoutColumnStyleCollection.cs,
6448 TableLayoutRowStyleCollection.cs, TableLayoutStyleCollection.cs,
6449 TextBoxBase.cs, ThreadExceptionDialog.cs, ToolStrip.cs,
6450 ToolStripContentPanel.cs, ToolStripDropDown.cs,
6451 ToolStripDropDownMenu.cs, ToolStripItem.cs, ToolStripMenuItem.cs,
6452 ToolStripPanel.cs, ToolStripSeparator.cs,
6453 TreeNode.cs, TreeView.cs, TreeViewHitTestInfo.cs,
6454 UICuesEventHandler.cs, UpDownBase.cs.
6456 2008-03-05 Jonathan Pobst <monkey@jpobst.com>
6458 corcompare - fix parameter names [G-M].
6459 GridColumnStylesCollection.cs, GridItemCollection.cs,
6460 GridTableStylesCollection.cs, GroupBox.cs, Help.cs,
6461 HelpProvider.cs, ImageListStreamer.cs, InputLanguageCollection.cs,
6462 Label.cs, LayoutEngine.cs, LinkClickedEventArgs.cs,
6463 LinkLabel.cs, ListBox.cs, ListView.cs, ListViewGroupCollection.cs,
6464 ListViewItem.cs, Menu.cs, MenuItem.cs, MenuStrip.cs, MouseEventArgs.cs.
6466 2008-03-05 Jonathan Pobst <monkey@jpobst.com>
6468 corcompare - fix parameter names [A-F].
6469 Control.cs, DataGridBoolColumn.cs, DataGridColumnStyle.cs,
6470 DataGridTextBoxColumn.cs, DataGridViewButtonCell.cs,
6471 DataGridViewCellCollection.cs, DataGridViewCellParsingEventArgs.cs,
6472 DataGridViewCheckBoxCell.cs, DataGridViewColumnDesignTimeVisibleAttribute.cs,
6473 DataGridViewComboBoxCell.cs, DataGridViewHeaderCell.cs,
6474 DataGridViewImageCell.cs, DataObject.cs, DomainUpDown.cs,
6475 DrawItemEventArgs.cs, FolderBrowserDialog.cs, FontDialog.cs, Form.cs.
6477 2008-03-03 Ivan N. Zlatev <contact@i-nz.net>
6479 * GridEntry.cs: Do not convert not only if the types match,
6480 but also if the property type is assigneable from the value's
6484 2008-03-03 Ivan N. Zlatev <contact@i-nz.net>
6486 * PropertyGridView.cs:
6487 - Subscribe to the listbox only once and not everytime.
6488 - Update the textbox even if SetValue fails.
6489 - Close the listbox before calling TrySetValue just in case.
6492 2008-03-03 Jonathan Pobst <monkey@jpobst.com>
6494 * Control.cs: Hide ICollection.CopyTo from the 1.1 profile.
6496 2008-03-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6498 * ListView.cs: Implement support for custom column width based on
6499 Columns collection (we were previously using this collection only
6503 2008-03-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6505 * ListViewItem.cs: For Tile view, always set bounds for the first
6506 subitem (which is the main one), and also don't let Width be larger
6507 than ListView.TileSize.Width. Improve code readibility also.
6508 * ThemeWin32Classic.cs: When painting the ListViewItem instances
6509 in Tile view, _always_ use the NoWrap flag.
6512 2008-02-29 Ivan N. Zlatev <contact@i-nz.net>
6514 * PropertyGrid.cs: Check for null PropertyDescriptor.Name just
6516 * GridEntry.cs: For MS compitability make all child properties
6517 readonly if the parent is readonly. Ugh.
6518 [Fixes bug #365945 and #365944]
6520 2008-02-29 Andreia Gaita <avidigal@novell.com>
6522 * HtmlHistory.cs: Fix sigs for Forward and Back to navigate by index
6523 relative to the history
6525 2008-02-29 Andreia Gaita <avidigal@novell.com>
6527 * HtmlElement.cs: More handlers for mouse and key events
6529 2008-02-28 Andreia Gaita <avidigal@novell.com>
6531 * WebBrowserBase.cs: MouseClick sig changed.
6532 * HtmlHistory.cs: Implement history navigation
6533 * HtmlElement.cs: Add event handlers, and connect them.
6535 2008-02-28 Ivan N. Zlatev <contact@i-nz.net>
6538 - Use PropertyDescriptor.DisplayName instead of .Name for Label,
6539 so that DisplayNameAttribute doesn't get ignored.
6540 - Check for ParenthesizeNameAttribute and parenthesize the Label.
6541 - Add support for PasswordPropertyTextAttribute
6542 * PropertyGridView.cs: Check if an entry is a password.
6543 [Fixes bugs #365589, #365586, #365588]
6545 2008-02-28 Andreia Gaita <avidigal@novell.com>
6547 * PropertyGridView.cs: Revert the message filtering change, as we
6548 need it to block after all. Remove block parameter, unnecessary.
6550 2008-02-27 Jonathan Pobst <monkey@jpobst.com>
6552 * UserControl.cs: Better implementation of GetPreferredSize.
6553 First step to fixing bug #361441.
6555 2008-02-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6557 * Binding.cs: Actually implement data binding support for
6558 classes implementing IBindableComponent.
6559 * ControlBindingsCollection.cs: Likewise.
6561 2008-02-26 Andreia Gaita <avidigal@novell.com>
6563 * PropertyGridView.cs: Use a message filter to check when to
6566 2008-02-26 Andreia Gaita <avidigal@novell.com>
6568 * Application.cs: Change the message_filters loop so a filter
6569 can be removed while looping.
6571 2008-02-26 Ivan N. Zlatev <contact@i-nz.net>
6573 * GridEntry.cs: Optimization in ToggleValue so that it caches
6575 * PropertyGridView.cs: An optimization so that the property isn't
6576 re-read twice for each StandardValue added to the drop-down menu.
6577 Patch by Andy Hume <andyhume32@yahoo.co.uk> under the MIT/X11
6581 2008-02-26 Jonathan Pobst <monkey@jpobst.com>
6583 * Application.cs: Apply patch from Justin Cherniak to match
6584 MS better for ProductName, ProductVersion, and CompanyName.
6587 2008-02-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6589 * Binding.cs: Actually implement 2.0 NullValue property. Also
6590 when changing the formatting related properties, only update the state
6591 if formatting_enabled is true (we don't mind otherwise).
6593 2008-02-25 Jonathan Pobst <monkey@jpobst.com>
6595 * ToolStrip.cs: Don't raise ItemClicked for disabled items.
6598 2008-02-25 Ivan N. Zlatev <contact@i-nz.net>
6600 * GridEntry.cs: Use the PropertyDescriptor.PropertyType instead
6601 of GetType on the current value as it uses reflection to
6602 determine the type. This fixes the case where the new value is
6605 2008-02-25 Ivan N. Zlatev <contact@i-nz.net>
6607 * PropertyGridView.cs: Limit mousewheel scrolling to not scroll
6610 2008-02-24 Luke Page <luke.a.page@gmail.com>
6612 * Line.cs, TextControl.cs: Implement offset x and y so that a
6613 document doesn't have to begin at (0,0) on the viewpoint.
6614 * TextBox.cs, TextBoxBase.cs: RightToLeft switches the scroll
6615 bars and switches the text alignment (and therefore is now
6616 implemented for textbox). Fixes #321383.
6618 2008-02-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6620 * Binding.cs: Actually implement 2.0 FormatString and FormatInfo
6621 properties. Also when changing FormattingEnabled update the control
6622 property -as .Net does-.
6624 2008-02-22 Carlos Alberto Cortez <calberto.cortez@ŋmail.com>
6626 * ControlBindingsCollection.cs: Add the missing 2.0 Add overloads.
6627 * Binding.cs: Add stubs for the overloads of the Add method in
6630 2008-02-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6632 * Binding.cs: PullData () returns a false value if we got an exception.
6633 Also when validating the control and we get an error, instead of
6634 setting the value of the previous one, cancel the event (tested in 1.1
6637 2008-02-22 Jonathan Pobst <monkey@jpobst.com>
6639 * TreeView.cs: Make selected_node and highlighted_node internal.
6640 * TreeNodeCollection.cs: Reset selected_node and highlighted_node
6641 to null when Nodes.Clear is called.
6644 2008-02-21 Jonathan Pobst <monkey@jpobst.com>
6646 * FontDialog.cs: Ensure that when the Font is set in code,
6647 all the gui pieces are updated accordingly.
6650 2008-02-21 Jonathan Pobst <monkey@jpobst.com>
6652 * TextRenderer.cs: Respect proposed size for MeasureString.
6653 * ThemeWin32Classics.cs: If our CheckBox/RadioButton isn't
6654 autosize, use a proposed width to force wrapping for long text.
6657 2008-02-21 Jonathan Pobst <monkey@jpobst.com>
6659 * TreeView.cs: Factor in checkboxes = false and state images in
6660 to HitTest. [Fixes bug #363360]
6662 2008-02-21 Jonathan Pobst <monkey@jpobst.com>
6664 * ThemeWin32Classic.cs: Only look at the Date part of a DateTime
6665 when drawing the selected range.
6668 2008-02-21 Jonathan Pobst <monkey@jpobst.com>
6670 * ToolStripContainer.cs: Add SupportsTransparentBackColor and
6671 ResizeRedraw control styles.
6674 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
6676 * TreeView.cs: StateImages are basically custom checkboxes, so
6677 factor their size the same as real checkboxes when determining
6681 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
6683 * MessageBox.cs: Make the message box wider if the form caption
6684 is longer than the text in the form.
6687 2008-02-20 Ivan N. Zlatev <contact@i-nz.net>
6689 * PropertyGridView.cs: Fix a NRE when closing the drop down form.
6691 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
6693 * TreeNode.cs: Guard against an NRE when the parent's
6694 StateImageList hasn't been set.
6697 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
6699 * SplitContainer.cs: Add SupportsTransparentBackColor and
6700 OptimizedDoubleBuffering control styles.
6703 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
6705 * Application.cs: For the app data paths and the registry key paths,
6706 ensure they are created before returning them to the user.
6709 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
6711 * Application.cs: Guard against an NRE in CompanyName and
6714 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
6716 * Application.cs: For CompanyName, ProductName, and ProductVersion,
6717 make sure we handle all three cases correctly: attribute is present,
6718 attribute is present but is an empty string, and attribute is not
6721 2008-02-20 Ivan N. Zlatev <contact@i-nz.net>
6723 * PropertyGridView.cs:
6724 - Fix a NRE that caused a test failure
6725 - Another performance improvement - cache the standard values
6728 2008-02-19 Jonathan Pobst <monkey@jpobst.com>
6730 * ComboBox.cs: Fix previous change to affect both 1.1 and 2.0
6733 2008-02-19 Ivan N. Zlatev <contact@i-nz.net>
6735 * PropertyGridView.cs: Fix a big performance bug.
6737 2008-02-19 Jonathan Pobst <monkey@jpobst.com>
6739 * SelectionRange.cs: Apply patch from Andy Hume to make
6740 constructor behavior more accurate. [Fixes bug #362117]
6742 2008-02-19 Andreia Gaita <avidigal@novell.com>
6744 * Control.cs: Added a new flag is_disposing to track if the
6745 window is currently in the process of being disposed of.
6746 This is used so that, when firing visibility changes triggered
6747 by unparenting controls during Dispose, the control doesn't
6750 2008-02-19 Jonathan Pobst <monkey@jpobst.com>
6752 * ComboBox.cs: Set height to preferred height when the handle
6753 is created. [Fixes bug #360862]
6755 2008-02-18 Andreia Gaita <avidigal@novell.com>
6757 * XplatUIX11.cs: Create FosterParent with border width at 0.
6758 With the previous value of 4, everytime a control got reparented
6759 from parent = null, it's location would be shifted right and
6760 down by 4, since these coordinates would be offset by the
6761 FosterParent's border width.
6763 2008-02-18 Ivan N. Zlatev <contact@i-nz.net>
6765 * Control.cs: During diposing firstly remove ourselfes from
6766 the parent and *then* destroy our handle, because removing
6767 ourselfes from the parent controls collection causes
6768 VisibilityChange, etc events, which require a handle and end
6769 up recreating the control.
6771 2008-02-17 Ivan N. Zlatev <contact@i-nz.net>
6773 * GridEntry.cs: Set expanded state before notifying that the
6774 expansion has taken place.
6775 * PropertyGridView.cs:
6776 - Set the propertygridtextbox text to the selected
6777 StandardValue before proceeding to setting it.
6778 - Scrolling bugfixes.
6780 2008-02-16 Ivan N. Zlatev <contact@i-nz.net>
6783 - Fix ValueText to not return null.
6784 - Fix conversion error reporting to actually happen.
6785 * PropertyGridView.cs: Set entry only if the text has changed.
6788 2008-02-16 Ivan N. Zlatev <contact@i-nz.net>
6791 - Fix handling of a null current value.
6792 - Swallow editor exceptions.
6795 2008-02-16 Ivan N. Zlatev <contact@i-nz.net>
6797 * PropertyGrid.cs: Clear current items first thing before
6798 repopulating subitems.
6800 - Handle null StandardValuesCollection.
6801 - Mark as not editable if there is no PropertyDescriptor and
6802 if the Converter cannot convert from string.
6803 [Part of fix for bugs #360666 and #358332]
6805 2008-02-15 Luke Page <luke.a.page@gmail.com>
6806 * MaskedTextBox.cs: Now skips non editable characters after a
6807 character has been entered and we are progressing to the next
6808 position in the MaskedTextBox.
6810 2008-02-15 Luke Page <luke.a.page@gmail.com>
6811 * TextBoxBase.cs: Handles MouseDown when shift key is clicked so
6812 that it changes the selection rather than just repositioning the
6813 cursor. Fixes Bug #360873.
6815 2008-02-15 Luke Page <luke.a.page@gmail.com>
6816 * TextBoxBase.cs, TextControl.cs, RichTextBox.cs: TextChanged fires
6817 when Undo/Redo changes the text. Undo/Redo/Undo/Redo now works
6818 correctly. See #359330
6820 2008-02-15 Andreia Gaita <avidigal@novell.com>
6822 * XplatUIX11.cs: If the handle is null when posting a message, use the
6823 current thread queue to post instead. Fixes #332409
6825 * SendKeys.cs: Slight optimization
6827 2008-02-14 Ivan N. Zlatev <contact@i-nz.net>
6829 * PropertyGrid.cs, PropertyGridView.cs:
6830 Fix multiple scrolling and sizing issues.
6833 2008-02-12 Ivan N. Zlatev <contact@i-nz.net>
6835 * PropertyGridView.cs: Ensure that drop down editors are shown
6836 in the WorkingArea of the screen.
6839 2008-02-12 Ivan N. Zlatev <contact@i-nz.net>
6841 * GridEntry.cs: Fail silently when UITypeEditor is missing.
6844 2008-02-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6846 * Binding.cs: Implement 2.0 DataSourceNullValue property.
6848 2008-02-11 Ivan N. Zlatev <contact@i-nz.net>
6850 * PropertyGridView.cs:
6851 - Clear the controls in the drop down form after it is hidden.
6852 - Fix Width sizing of the dropdown editors to match MSFT.
6854 2008-02-11 Ivan N. Zlatev <contact@i-nz.net>
6856 * PropertyGridView.cs:
6857 - Fix height for drawing the grid entry
6858 text value, so that it clips multiline text properly.
6859 - Fix unfocusing to match MSFT.
6861 2008-02-11 Ivan N. Zlatev <contact@i-nz.net>
6863 * PropertyGrid.cs: Do not populate subgriditems unless expandable.
6864 Fixes a bug where on repopulation after value changed items become
6867 2008-02-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6869 * Binding.cs: For the 2.0 profile, look for a
6870 'PropertyChanged' event in the target control, and add checks for
6871 DataSourceUpdateMode property to change -or not- the data source
6872 from validation/control property change.
6874 2008-02-10 Atsushi Enomoto <atsushi@ximian.com>
6876 * Binding.cs : build fix (operator == is not overriden in 1.x. Do
6877 not compare struct with null in 2.0).
6879 2008-02-10 Luke Page <luke.a.page@gmail.com>
6881 * MaskedTextBox.cs: UseSystemPasswordChar updates PasswordChar, PasswordChar
6882 updates the provider and if not using a provider, uses the internal document
6883 class implementation of password char. Also when showing text, uses display string
6884 from the provider, instead of the actual text.
6886 2008-02-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6888 * Binding.cs: Ooooops, forgot to take into account the data_source
6889 and binding_member_info null case (it was breaking the Binding tests).
6891 2008-02-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6893 * Binding.cs: Implement support for data source changes exposed by
6894 'PropertyNameChanged' events, and update the control property as
6897 2008-02-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6899 * Binding.cs: Implement 2.0 WriteValue method.
6901 2008-02-08 Jonathan Pobst <monkey@jpobst.com>
6903 Commit patch from James Purcell for better AutoScale implementation:
6905 * ScaleControl should call GetScaledBounds with the control's total size rather
6906 than client size. GetScaledBounds should handle ignoring the borders in its
6907 calculations. Cleaned up ScaleControl/GetScaledBounds overrides in controls
6908 (for the most part they just call the base code now since that is fixed).
6909 * Added ScaleChildrenInternal to allow controls to disable scaling of children
6910 without having to override ScaleChildren (since none of .NET's controls do).
6911 This is required for most controls in Mono that have scrollbars to prevent the
6912 scrollbars from being moved/resized.
6913 * Nested ContainerControls can have a different scale mode than their parent.
6914 This is briefly mentioned in MSDN but is buggy in MS.NET (the runtime and
6915 designer produce different results both of which look incorrect).
6916 * Default AutoScaleMode for ContainerControl should be Inherit.
6917 * Simplified workaround for ComboBox scaling issue.
6918 * 1.0 style auto-scaling now uses its own methods instead of sharing 2.0's.
6919 1.0 style auto scaling should scale the whole control's size instead of
6920 ignoring the borders (except for Form) and the rounding is done differently to
6921 preserve control alignment.
6922 * ApplyAutoScaling (used for 1.0 style) should use the rounded result of
6924 * Cleaned up fix for "Bug 355703 - Setting AutoScale = true doesn't stick".
6925 * CurrentAutoScaleDimensions should round the estimated character width instead
6927 * ListBox's GetScaledBounds should always use the height it was set to instead
6928 of the height that was passed in. This prevents rounding errors from
6929 accumulating quickly with IntegralHeight.
6932 2008-02-08 Andreia Gaita <avidigal@novell.com>
6934 * Form.cs: Add a null check (darn it).
6936 2008-02-08 Jonathan Pobst <monkey@jpobst.com>
6938 * MdiClient.cs: Make sure the requesting form actually owns the
6939 control menu items before removing them. Also, use
6940 Suspend/ResumeLayout when adding or removing items so we only
6944 2008-02-08 Jonathan Pobst <monkey@jpobst.com>
6946 * Control.cs: Guard against an NRE in ShowFocusCues.
6949 2008-02-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6951 * Binding.cs: Implement 2.0 ReadValue method and ControlUpdateMode
6952 property, as well as stubbing DataSourceUpdateMode.
6954 2008-02-08 Andreia Gaita <avidigal@novell.com>
6956 * Form.cs: When closing forms, get focus back to the active control of the
6957 active form. [Fixes #341314, corner case]
6959 2008-02-07 Jonathan Pobst <monkey@jpobst.com>
6961 * MdiClient.cs: After we move the scrollbars, invalidate the NC
6962 area, so any old scrollbar artifacts are cleaned up.
6965 2008-02-07 Jonathan Pobst <monkey@jpobst.com>
6967 * MdiWindowManager.cs: If we are maximized and using MainMenuStrip
6968 for our menus, display that control box menu instead of the 1.1
6971 2008-02-07 Jonathan Pobst <monkey@jpobst.com>
6973 * MdiControlStrip.cs: Add property to access the mdi form tied to
6975 * MdiClient.cs: Be smarter about removing and adding toolstripitems
6976 to the implicitly merged menu. Every time we clicked the form, items
6977 were getting removed and the re-added, causing the form to jump around
6978 as the menu resized.
6980 2008-02-07 Jonathan Pobst <monkey@jpobst.com>
6982 * MdiClient.cs: Make sure the NormalBounds always gets set. It
6983 was being reset by the implicit menu merge for menustrips.
6986 2008-02-07 Jonathan Pobst <monkey@jpobst.com>
6988 * Form.cs: Don't do the previous change when WindowState = Normal,
6989 or it messes up where the window is placed. Fixes test failure.
6991 2008-02-07 Jonathan Pobst <monkey@jpobst.com>
6993 * Form.cs: When becoming visible, if we are an MDI child, call
6994 SetWindowState with a dummy old_state so that changes will actually
6996 [Fixes the 2nd part of bug #325473]
6998 2008-02-07 Andreia Gaita <avidigal@novell.com>
7000 * Control.cs: Reset properties to their pre parent-change values in case
7001 the new parent == null (in which case we're basically removing the control,
7002 and don't want any events fired due to fake property changes)
7005 2008-02-06 Ivan N. Zlatev <contact@i-nz.net>
7007 * PropertyGridView.cs:
7008 - Refactor SetValue to allow setting the value
7009 when a custom editor is used, but the entry is not editable.
7010 - Remove the custom editor control on CloseDropDown.
7013 2008-02-06 Andreia Gaita <avidigal@novell.com>
7015 * PrintControllerWithStatusDialog.cs: Set PrintFileName value through
7016 reflection only on 1.1, this property is public on system.drawing on 2.0.
7019 2008-02-06 Andreia Gaita <avidigal@novell.com>
7021 * WebBrowser.cs: Do a normal page refresh by default.
7023 2008-02-05 Andreia Gaita <avidigal@novell.com>
7025 * XplatUIWin32.cs, XplatUICarbon.cs: set the hwnd.Mapped flag when we create
7026 the window so that the check on Control.UpdateZOrderOfChild passes on non-X
7027 platforms. Fixes #359036
7029 Note: Control.UpdateZOrderOfChild needs to be rewritten to not rely on
7030 platform-specific flags.
7032 2008-02-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7034 * Binding.cs: Add 2.0 BindableComponent property - just return control
7037 2008-02-05 Everaldo Canuto <ecanuto@novell.com>
7039 * MenuAPI.cs: Check if control is disposable when track popup menu. Thanks
7040 Jonathan for this patch. Fixes #358442.
7042 2008-02-05 Jonathan Pobst <monkey@jpobst.com>
7044 * Form.cs: If we change the active MDI child form, let the others
7045 know they need to repaint their title bar so it will appear inactive.
7046 [Fixes part 1 of bug #325473]
7048 2008-02-05 Ivan N. Zlatev <contact@i-nz.net>
7050 * PropertyGridView.cs: Do not trucate custom editors' width
7051 and align them to the left.
7052 [Fixes #358353 and #358349]
7054 2008-02-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7056 * BindingsCollection.cs: Implement 2.0 CollectionChanging event.
7057 Also fix the arguments passed to CollectionChangeEventArgs in the
7060 2008-02-04 Geoff Norton <gnorton@novell.com>
7062 * Hwnd.cs: The conversion to Quartz coordinates happens in
7063 System.Drawing. Removing this translation from here.
7065 2008-02-04 Ivan N. Zlatev <contact@i-nz.net>
7067 * PropertyGrid.cs, PropertyGridView.cs, GridEntry.cs,
7068 CategoryGridEntry.cs, RootGridEntry.cs, GridItem.cs,
7069 GridItemCollection.cs:
7070 PropertyGrid rewrite part 2. Tons of bugfixes and new features.
7072 2008-02-04 Geoff Norton <gnorton@novell.com>
7074 * X11Keyboard.cs: VK_MENU should send a KEYUP instead of
7075 SYSKEYUP if any other key has been pressed in the mean time.
7078 2008-02-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7080 * ListView.cs: In ItemControl.ItemsMouseMove, only fire ItemDrag event
7081 when the item in current position is different than 0. Also, save the
7082 item index in the beginning of the operation, instead of getting the
7083 index of the item when the event is actually performed. Lastly clean
7084 the related fields in ItemsMouseUp if the ItemDrag operation wasn't
7088 2008-02-03 Jonathan Pobst <monkey@jpobst.com>
7090 * Form.cs: Alt-Minus for MDI children system menu should work
7091 with both the minus keys on the keyboard.
7094 2008-02-03 Jonathan Pobst <monkey@jpobst.com>
7096 * Control.cs: Don't invalidate on region change. The WM should
7097 take care of this automagically. Keeps us out of an infinite
7098 paint loop if someone changes the Region in the OnPaint.
7101 2008-02-04 Ivan N. Zlatev <contact@i-nz.net>
7103 * ImageIndexConverter.cs: ConvertFrom must handle "(none)".
7105 2008-02-03 Jonathan Pobst <monkey@jpobst.com>
7107 * DateTimePicker.cs: Apply patch from Srikanth Madikeri so we drop
7108 down the MonthCalendar only on F4, not Alt+F4.
7109 * MonthCalendar.cs: If we are a popup, close ourselves on Alt+F4.
7112 2008-02-03 Jonathan Pobst <monkey@jpobst.com>
7114 * ThemeWin32Classic.cs: For MonthCalendar, draw a dark border
7115 if its part of a DateTimePicker, else, use the back color.
7118 2008-02-03 Jonathan Pobst <monkey@jpobst.com>
7120 * Hwnd.cs: Use GraphicContext instead of the uninitialized bmp_g.
7123 2008-02-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7125 * CurrencyManager.cs: When we get a ListChanged event from our source,
7126 always fire our own ListChanged event, as .Net does.
7128 2008-02-03 Luke Page <luke.a.page@gmail.com>
7130 * RichTextBox.cs: AutoSize now defaults to false. Fixes Bug
7133 2008-02-03 Luke Page <luke.a.page@gmail.com>
7135 * TextBoxBase.cs, RichTextBox.cs, TextControl.cs: Sets richtext
7136 property. Removed if for richtext property that was always true.
7137 PgUp/PgDn at top/bottom fixed for RTB. Fixes bug #358237.
7139 2008-02-03 Luke Page <luke.a.page@gmail.com>
7141 * TextBoxBase.cs - commited patch from James Purcell that
7142 correctly sets the FixedHeight control style when the MultiLine
7143 property is changed on a TextBox control. Fixes bug 358229.
7145 2008-02-02 Luke Page <luke.a.page@gmail.com>
7147 * Line.cs, LineTag.cs, RichTextBox.cs, TextControl.cs
7148 Fixes bug 351938 - caret is positioned correctly when drawn
7149 and when calculating textual position of caret, no longer
7150 has a NRE in certain situations.
7152 2008-02-01 Geoff Norton <gnorton@novell.com>
7154 * Hwnd.cs: Ensure that windows moved into -'ve coordinate space
7155 get that region removed from the paint event.
7156 * XplatUICarbon.cs: Remove the window mapping after disposing of
7157 window. Prevents a crash with handle reuse. Optimize exposes
7158 only onto visible windows (rare; but possible).
7160 2008-02-01 Jonathan Pobst <monkey@jpobst.com>
7162 * UpDownBase.cs: Make sure the internal textbox calls the base's
7163 OnMouseDown and OnMouseUp so the textbox will function correctly.
7164 There were notes saying it doesn't chain up, but its an internal
7165 class, so our implementation may differ.
7168 2008-02-01 Jonathan Pobst <monkey@jpobst.com>
7170 * ListBox.cs: Fix a logic error and don't process MouseDown
7171 for mouse buttons other than Left.
7173 2008-02-01 Jonathan Pobst <monkey@jpobst.com>
7175 * Control.cs: Remove HeightInternal.
7176 * ListBox.cs: Commit patch from James Purcell that correctly
7177 calculates heights for ListBoxen.
7180 2008-02-01 Jonathan Pobst <monkey@jpobst.com>
7182 * Label.cs: Apply patch from James Purcell that corrects the
7183 signature of the AutoSize property.
7186 2008-02-01 Jonathan Pobst <monkey@jpobst.com>
7188 * ListBox.cs: Don't throw [Mouse]Click events for buttons
7189 other than the left mouse button.
7191 2008-01-31 Jonathan Pobst <monkey@jpobst.com>
7193 * Control.cs: Remove my awesome optimization as it caused some
7194 regressions with control ordering. :(
7197 2008-01-31 Ivan N. Zlatev <contact@i-nz.net>
7199 * PropertyGridView.cs: Fix a NRE on double click when there is no
7202 2008-01-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7204 * BindingManagerBase.cs: Implement IsBindingSuspended 2.0 property.
7206 2008-01-30 Jonathan Pobst <monkey@jpobst.com>
7208 * ListBox.cs: Call MouseClick and MouseDoubleClick.
7211 2008-01-29 Jonathan Pobst <monkey@jpobst.com>
7213 * Hwnd.cs: Make bmp, bmp_g variables threadstatic and private.
7214 * Control.cs, DataGridViewCell.cs, LineTag.cs: Use Hwnd.GraphicsContext
7215 instead of Hwnd.bmp_g.
7217 2008-01-29 Jonathan Pobst <monkey@jpobst.com>
7219 * TextRenderer.cs: Don't maintain private bitmap/graphics contexts.
7220 Use the Hwnd one instead.
7222 2008-01-29 Jonathan Pobst <monkey@jpobst.com>
7224 * Form.cs: Remove duplicated copy of GetAutoScaleSize.
7226 2008-01-29 Jonathan Pobst <monkey@jpobst.com>
7228 * Form.cs: corcompare for RestoreBounds.
7230 2008-01-29 Jonathan Pobst <monkey@jpobst.com>
7232 * Control.cs: Add MarshalAs attribute to Font getter for corcompare.
7234 2008-01-29 Jonathan Pobst <monkey@jpobst.com>
7236 * Form.cs: Handle Alt-Minus for MDI children forms.
7237 * MdiWindowManager.cs: Make ShowPopup internal so Form can call it.
7238 Add mnemonics to the control menu.
7241 2008-01-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7243 * Binding.cs: Initial implementation bits of FormattingEnabled
7244 property and BindingComplete event (2.0).
7245 * BindingCompleteEventArgs.cs: Internal methods for setting error text
7248 2008-01-28 Jonathan Pobst <monkey@jpobst.com>
7250 * TableLayoutPanel.cs: Draw the table border at 0,0 instead of
7251 table.Location. [Fixes bug #354672]
7253 2008-01-28 Jonathan Pobst <monkey@jpobst.com>
7255 * Form.cs: Handle WM_ENTERSIZEMOVE and WM_EXITSIZEMOVE to raise
7256 ResizeBegin and ResizeEnd. [Fixes bug #346529 for win32]
7258 2008-01-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7260 * ComboBox.cs: When OnDisplayMemberChanged method is reached, instead
7261 of doing all the re-bound work, just invalidate and call SetControlText
7262 to set the updated text of selected item to our textbox.
7265 2008-01-28 Andreia Gaita <avidigal@novell.com>
7267 * HtmlWindow.cs: Add event handler support. Add Document, Frames,
7268 IsClosed, Opener, StatusBarText, Url properties, stub out the remaining
7269 missing properties and methods. Add Load, Unload, Error, GotFocus,
7270 LostFocus, Resize, Scroll events (only load and unload are connected)
7272 2008-01-27 Gert Driesen <drieseng@users.sourceforge.net>
7274 * AccessibleObject.cs: Modified argument names to match MS.
7275 * Button.cs: Modified argument names to match MS.
7276 * BindingContext.cs: Modified argument names to match MS.
7277 * BindingMemberInfo.cs: Modified argument names to match MS.
7278 * ButtonBase.cs: Modified argument names to match MS.
7279 * ComboBox.cs: Modified argument names to match MS.
7280 * Control.cs: Modified argument names to match MS.
7281 * CheckedListBox.cs: Modified argument names to match MS.
7282 * CommonDialog.cs: Modified argument names to match MS.
7283 * DataGrid.cs: Modified argument names to match MS.
7284 * CursorConverter.cs: Modified argument names to match MS.
7285 * ControlPaint.cs: Modified argument names to match MS.
7286 * CheckBox.cs: Modified argument names to match MS.
7287 * ControlBindingsCollection.cs: Modified argument names to match MS.
7288 * BindingSource.cs: Modified argument names to match MS.
7289 * DataFormats.cs: Modified argument names to match MS.
7290 * ContainerControl.cs: Modified argument names to match MS.
7291 * CurrencyManager.cs: Modified argument names to match MS.
7292 * Application.cs: Modified argument names to match MS.
7293 * ContextMenuStrip.cs: Modified argument names to match MS.
7294 * ContextMenu.cs: Modified argument names to match MS.
7295 * BindingManagerBase.cs: Modified argument names to match MS.
7296 * WindowsFormsSection.cs: Fixed line ending.
7298 2008-01-27 Andreia Gaita <avidigal@novell.com>
7300 * PropertyGridView.cs: Rearrange the dropdown loop so that it exits when
7301 detecting that the dropdown toolwindow is hidden. EndLoop outside the
7304 2008-01-26 Gert Driesen <drieseng@users.sourceforge.net>
7306 * PropertiesTab.cs: Fixed argument name of GetDefaultProperty to match
7307 MS. Code formatting.
7309 2008-01-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7311 * Binding.cs: Don't avoid the Format event if the control
7312 property type is object. Also, if the value retrieved by
7313 the data source is null _and_ the control proeprty type
7314 is object, return Convert.DBNull (match .Net).
7315 Fixes part of #324286.
7317 2008-01-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7319 * ListControl.cs: Since we are getting two BinginContextChanged events
7320 for the same binding context instance (when the control is added to
7321 form, and when the form is actually shown), take it into account only the
7322 first time for a given binding context instance.
7323 Fixes part of #324286.
7325 2008-01-26 Ivan N. Zlatev <contact@i-nz.net>
7327 * PropertryGridView.cs: Ops.
7329 2008-01-26 Ivan N. Zlatev <contact@i-nz.net>
7331 * PropertyGridView.cs: Close dropdown form if the owner form is
7335 2008-01-25 Ivan N. Zlatev <contact@i-nz.net>
7337 * PropertyGrid.cs, PropertyGridView.cs, GridEntry.cs, GridItem.cs,
7338 RootGridEntry.cs, CategoryGridEntry.cs:
7339 PropertyGrid rewrite.
7340 - Rewrite all of the control logic in PropertyGrid.
7341 - Rewrite all of the ComponentModel logic in GridEntry.
7342 - Rewrite all UI work in PropertyGridView.
7343 - Many bugfixes, etc.
7345 2008-01-24 Jonathan Pobst <monkey@jpobst.com>
7347 * TableLayoutPanel.cs: Enhance GetPreferredSize to take into account
7348 when all contained controls are autosize or dock-fill. Also take into
7349 account when the total percentage of column/row sizes is not 100%.
7352 2008-01-24 Andreia Gaita <avidigal@novell.com>
7355 - Save a reference to the IDocument in the instance and
7356 use that one instead of going to WebHost.Document; the document that the
7357 WebHost returns might not be the right one (in case of frames).
7358 - Use the hashcode returned from the IDocument interface.
7359 - Implemented: ActiveElement, ActiveLinkColor, All, BackColor, Cookie,
7360 Domain (setter is not supported), Encoding, ForeColor, Forms, Images,
7361 LinkColor, Url, VisitedColor, Window
7364 - Implemented: CanHaveChildren, Children, Document, GetAttribute,
7365 set_Attribute, NextSibling, Parent, TagName, AppendChild,
7366 GetElementsByTagName, GetHashCode, HasAttribute, InsertAdjacentElement,
7367 SetAttribute, Equals, equality operators.
7368 - Added stubs for: AttachEventHandler, DetachEventHandler, Focus,
7369 InvokeMember, RaiseEvent, RemoveFocus, ScrollIntoView,
7371 * HtmlElementCollection.cs: Change implementation to use a generic
7372 collection. Implemented Enumerator and CopyTo
7374 * HtmlHistory.cs: Add constructor, no implementation yet.
7376 * HtmlWindow.cs: Initial implementation with: Name, Parent, Alert,
7377 Confirm, Prompt, Navigation, ScrollTo, Open, OpenNew, GetHashCode,
7378 Equals, equality operators.
7380 * HtmlWindowCollection.cs: Implemented.
7382 * WebBrowser.cs: Use the Navigation object to navigate (WebHost.Navigate
7383 has been deprecated).
7385 * WebBrowserBase.cs: Use Completed event to track document loading
7386 (Navigated has been deprecated)
7388 2008-01-24 Jonatham Pobst <monkey@jpobst.com>
7390 * ThemeWin32Classic.cs: Add tab stops and NoWrap to dropdown MenuItems. Top
7391 level MenuItems do not respect tabs.
7394 2008-01-23 Geoff Norton <gnorton@novell.com>
7396 * XplatUICarbon.cs: Ensure that windows are created in their initial
7397 FormWindowState. Finished fixing Fullscreen windows on Carbon
7399 2008-01-23 Everaldo Canuto <ecanuto@novell.com>
7401 * MenuAPI.cs: When FindForm fails uses FindRootParent to find the control to
7402 be used as grab_control. Also save status of capture before show ContextMenu
7403 and restore it after close.
7405 2008-01-23 Everaldo Canuto <ecanuto@novell.com>
7407 * Control.cs: Internal FindRootParent method added to return high control
7410 2008-01-23 Geoff Norton <gnorton@novell.com>
7412 * Hwnd.cs: Refactor Whole/Client pointer to 1 element for Cursors.
7413 * XplatUICarbon.cs: Refactor some dead code out to Cursor.cs and make
7414 it work again. Handle HITTEST events.
7416 2008-01-23 Geoff Norton <gnorton@novell.com>
7418 * XplatUICarbon.cs: Ensure that we always have a host window. Prevents
7419 a crash in certain cases. Support for fullscreen windows in certain cases.
7421 2008-01-23 Jonathan Pobst <monkey@jpobst.com>
7423 * Form.cs: Don't set AutoScaleMode in AutoScale if we don't have to.
7426 2008-01-23 Geoff Norton <gnorton@novell.com>
7428 * XplatUICarbon.cs: Remove some dead code that was causing warnings.
7430 2008-01-23 Geoff Norton <gnorton@novell.com>
7432 * XplatUICarbon.cs: Re-enabled Carets in QuickDraw as a overlay window.
7434 2008-01-23 Everaldo Canuto <ecanuto@novell.com>
7436 * SplitContainer.cs: Remove unused declarations.
7437 * Binding.cs: Remove unused declarations.
7439 2008-01-23 Everaldo Canuto <ecanuto@novell.com>
7441 * Form.cs: Remove unused declaration of 'active' in Activate method.
7442 * Control.cs: Move declaration of nested_layout inside '#if NET_2_0" to
7443 prevent compilation warnings.
7444 * TextControl.cs: Remove unused declaration of selection_pos_on_line.
7445 * Hwnd.cs: Remove unused declaration of clip in GetClippingRectangles.
7446 * Bindings.cs: Remove unused formatting_enabled declaration.
7447 * ToolTip.cs: Put some methods inside '#if NET_2_0" to prevent compilation
7449 * TreeView.cs: Put some methods inside '#if NET_2_0" to prevent compilation
7451 * PropertyGridView.cs: Remove usused 'ex' declaration.
7452 * DataGridView.cs: Remove unused declarations.
7454 2008-01-23 Everaldo Canuto <ecanuto@novell.com>
7456 [Fixes bugs #343966, #338511 and other non reported (context)menu bugs]
7458 * Form.cs: Remove all active_tracker (used by menu) stuff, it is now moved
7459 to Control class, it makes possible to grab menu to controls that can't
7460 reach Form using parent tree. Handle for WmButtonUp, WmButtonDown and
7461 WmMouseMove removed since it was used only to track menu events.
7464 - Moved all active_tracker stuff from Form.
7465 - ProcessActiveTracker added to prevent code duplicity, now mouse events
7466 can call this method instead of reimplement all necessary code handle for
7468 - Call to ProcessActiveTracker for mouse events (WmButtonUp, WmButtonDown
7472 - Remove special handle to ToolStripOverflow, now we can grab menu to
7473 controls that can't reach Form using parent tree.
7474 - Change type of grab_control from Form to Control.
7476 2008-01-22 Geoff Norton <gnorton@novell.com>
7478 * TextBoxBase.cs: Split up the sizing of controls and placing of
7479 controls. Fixes a bug where scrollbars in Reflector could be sized
7480 wrong and have non-working thumbers.
7482 2008-01-23 Geoff Norton <gnorton@novell.com>
7484 * XplatUI.cs: Refactor environment variables to default support to the
7485 Carbon driver on the Mac.
7487 2008-01-23 Everaldo Canuto <ecanuto@novell.com>
7489 * Label.cs: Uses new LabelPainter for drawing operations.
7490 * ThemeWin32Classic.cs: DrawLabel and LabelDefaultSize removed.
7491 * Theme.cs: DrawLabel and LabelDefaultSize removed.
7493 2008-01-22 Geoff Norton <gnorton@novell.com>
7495 * XplatUICarbon.cs: Enable packing scroll delta into the mouse wParam
7497 2008-01-22 Jonathan Pobst <monkey@jpobst.com>
7499 * ThemeWin32Classic.cs: Run Flat, Button appearance, 2.0 CheckBoxes
7500 through the normal flat button code and don't draw the checkbox glyph.
7501 * Theme.cs: Button->ButtonBase signature change.
7504 2008-01-22 Everaldo Canuto <ecanuto@novell.com>
7506 * LinkLabel.cs: Uses new class LinkLabelPainter.
7508 2008-01-22 Everaldo Canuto <ecanuto@novell.com>
7510 * MessageBox.cs: Adjust right border space, we don't need to add
7511 "space_border*2" two times.
7513 2008-01-22 Jonathan Pobst <monkey@jpobst.com>
7515 * ScrollableControl.cs: With the advent of 2.0's Padding, DockPadding
7516 becomes a wrapper around Padding.
7517 [Fixes a part of bug #354676]
7519 2008-01-22 Geoff Norton <gnorton@novell.com>
7521 * Mime.cs: Avoid a needles exception on OSX if we dont have a buffer
7522 acquired. Also ensure the buffer is large enough to grab the header
7523 we need on linux boxes.
7525 2008-01-22 Jonathan Pobst <monkey@jpobst.com>
7527 * Control.cs: Implement a custom enumerator so people can delete
7528 from the Controls collection while in a foreach.
7531 2008-01-22 Ivan N. Zlatev <contact@i-nz.net>
7533 * PropertyGridView.cs: Fix focusing behavior:
7534 - Tab should focus the grid text box.
7535 - Clicking on the labels shouldn't focus the grid text box.
7537 2008-01-22 Ivan N. Zlatev <contact@i-nz.net>
7539 * PropertyGridView.cs: IsValueTypeGridItem should return true
7542 2008-01-22 Ivan N. Zlatev <contact@i-nz.net>
7544 * PropertyGrid.cs, GridEntry.cs, PropertyGridView.cs:
7545 - Renamed GridEntry.SelectedObjects to TargetObjects to better
7546 reflect the property name role.
7547 - PropertyGrid.GetTarget is not required as the target is known
7549 - Setting values will handle value types as a special case now and
7550 populate them up in the chain.
7553 2008-01-21 Jonathan Pobst <monkey@jpobst.com>
7555 * Hwnd.cs: Create a public property for the Graphics we keep around.
7557 2008-01-21 Ivan N. Zlatev <contact@i-nz.net>
7559 * PropertyGridView.cs: Just hide the grid textbox and do nothing more
7560 when the current object selection changes.
7561 Fixes failing test SelectedObject_Null2.B5.
7563 2008-01-21 Ivan N. Zlatev <contact@i-nz.net>
7565 * PropertyGrid.cs: Process Browsable properties with
7566 DesignerSerializationVisibilityAttribute.Content as being expandable.
7567 This seems also what MS does. Without this e.g SplitContainer.Panel1/2
7568 will not be expandable. We should be nested components-friendly now.
7570 2008-01-21 Andreia Gaita <avidigal@novell.com>
7572 * WebBrowserBase.cs: Check if control was loaded properly,
7573 don't bind if it wasn't.
7575 * HtmlDocument.cs: Implement CreateElement, Equals, Focus,
7576 GetElementFromPoint, equality operators, OpenNew, Write.
7577 Remove extra set_Body
7579 2008-01-18 Jonathan Pobst <monkey@jpobst.com>
7581 * ContainerControl.cs, Control.cs: Apply patch from James Purcell
7582 that makes our AutoScale* stuff more tolerant to different orders
7583 of being set. [Fixes bug #354669]
7585 2008-01-18 Ivan N. Zlatev <contact@i-nz.net>
7587 * PropertyGridView.cs, PropertyGridTextBox.cs:
7588 Drop WM_LBUTTONDOWN msg sending and use focusing instead.
7589 [Fixes #339005 and #348209]
7591 2008-01-18 Ivan N. Zlatev <contact@i-nz.net>
7593 * PropertyGridView.cs: Hide the grid text box before adjusting it
7594 for the newly selected GridItem.
7597 2008-01-18 Jonathan Pobst <monkey@jpobst.com>
7599 * Form.cs: Give MDI children the opportunity to cancel the parent form
7600 attempting to close. Ensure that all [Form]Clos[ing,ed] events get called
7601 properly for both the parent and child.
7602 * Application.cs: Signature of internal method changed, pass the previous
7606 2008-01-17 Ivan N. Zlatev <contact@i-nz.net>
7608 * PropertyGridView.cs: Set the property value only if it has changed.
7611 2008-01-17 Jonathan Pobst <monkey@jpobst.com>
7613 * MenuAPI.cs: Windows sends us MOUSEMOVE messages when any key is pressed.
7614 If the mouse hasn't actually moved, ignore these messages so the currently
7615 highlighted menuitem isn't reset to the one under the mouse.
7618 2008-01-17 Ivan N. Zlatev <contact@i-nz.net>
7620 * PropertyGridView.cs: When the property changes Invalidate the GridItem
7621 in order for the properties with UITypeEditor.GetPaintValueSupported == true
7622 to reflect the change visually.
7625 2008-01-17 Jonathan Pobst <monkey@jpobst.com>
7627 * ButtonBase.cs: Add LineLimit to 1.1 button drawing, and TextBoxControl
7628 to 2.0 button drawing.
7629 * ThemeWin32Classic.cs: Ensure that the rectangle we are using to draw
7630 the button text is tall enough for one line. LineLimit says it will
7631 always draw at least one line, but it is a lie.
7634 2008-01-17 Atsushi Enomoto <atsushi@ximian.com>
7636 * XplatUIStructs.cs, X11Keyboard.cs :
7637 added some more VK_* keys to be handled.
7639 2008-01-16 Andreia Gaita <avidigal@novell.com>
7641 * Control.cs: Check if there is a container before setting or getting
7642 the validation flag.
7644 2008-01-16 Andreia Gaita <avidigal@novell.com>
7646 * ContainerControl.cs: Add flag to track if a control cancels validation,
7647 so we don't fire click events.
7650 - (HandleClick) Check if validation was cancelled before firing the click
7651 events (doubleclicks are fired, but not clicks)
7652 - (WmLButtonDown) Reset validation flag. The flag is normally reset on
7653 ContainerControl.set_ActiveControl, but in the case of non-selectable
7654 controls, like a Label, activecontrol is not set.
7656 * ButtonBase.cs: Only fire clicks if validation passes.
7660 2008-01-16 Geoff Norton <gnorton@novell.com>
7662 * XplatUICarbon.cs: Implement GetAutoScaleSize to fix Reflector on
7665 2008-01-16 Jonathan Pobst <monkey@jpobst.com>
7667 * FolderBrowserDialog.cs: If we cannot interpret the user's requested
7668 SelectedPath, just display the default dialog instead of crashing.
7671 2008-01-16 Geoff Norton <gnorton@novell.com>
7673 * XplatUICarbon.cs: Flicker be gone! Generate our messages in
7674 AddExpose instead of trusting apples compositing manager which doesn't
7675 work for our use case. Remove some dead code causing warnings and
7676 redecorate some other code to prevent warnings.
7678 2008-01-16 Geoff Norton <gnorton@novell.com>
7680 * XplatUICarbon.cs: Avoid some unecessary invalidation calls when
7681 carbon signals us to redraw. Fixes another portion of the flickering bug
7683 2008-01-16 Everaldo Canuto <ecanuto@novell.com>
7685 * Form.cs: Prevent the MdiParent property to be set when value is the same
7686 as value already set. Fixes bug #328019.
7688 2008-01-16 Everaldo Canuto <ecanuto@novell.com>
7690 * Form.cs: Don't set mdi_parent as null when mdi window close is prevented,
7691 it prevents NRE when closing mdi child windows. Fixes bug #325211.
7693 2008-01-16 Everaldo Canuto <ecanuto@novell.com>
7695 * InternalWindowManager.cs: Invalidade close button after mouse up when
7696 mdi form is prevented to close.
7698 2008-01-16 Everaldo Canuto <ecanuto@novell.com>
7700 * MdiClient.cs: Fix the minimum bounds on child window sizes when cascade,
7701 thanks to Andy Hume. Fixes bug #325433.
7703 2008-01-16 Andreia Gaita <avidigal@novell.com>
7705 * LinkLabel.cs: Reset focused_index when resellecting the control.
7708 2008-01-15 Geoff Norton <gnorton@novell.com>
7710 * XplatUICarbon.cs: Rework Grab/Ungrab handling to send some needed
7713 2008-01-15 Jonathan Pobst <monkey@jpobst.com>
7715 * Form.cs: Change 2 more AutoScaleBaseSize calculation to round instead
7718 2008-01-15 Jonathan Pobst <monkey@jpobst.com>
7720 * ContainerControl.cs: Setting AutoScaleMode to anything should set
7721 Form.AutoScale to false.
7722 * Form.cs: Setting AutoScale to true should set AutoScaleMode to None.
7723 AutoScaleBaseSize should be changed on Font change unless it has been
7727 2008-01-15 Everaldo Canuto <ecanuto@novell.com>
7729 * MenuAPI.cs: On instance of MenuTracker check if source control is
7730 ToolStripOverflow and use properly method to find form.
7733 2008-01-15 Everaldo Canuto <ecanuto@novell.com>
7735 [Fixes bug #323241 Transparent toolbar support]
7737 * ToolBar.cs: Define ToolBarStyles.TBSTYLE_FLAT in CreateParams when toolbar
7740 * Control.cs: Paint background as transparent in case of TBSTYLE_FLAT is
7741 defined in control style to mimic win32 behavior.
7743 * ThemeWin32Classic.cs: Don't paint background for flat apparence toolbar,
7744 it will be transparent.
7746 2008-01-14 Everaldo Canuto <ecanuto@novell.com>
7748 * XplatUIStructs.cs: Implement ToolBarStyles to use in Style property of
7749 CreateParams for ToolBar controls.
7751 2008-01-14 Jonathan Pobst <monkey@jpobst.com>
7753 * Form.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs: Forms with
7754 FixedToolWindow, SizeableToolWindow, or None for border styles have
7755 different minimum sizes than regular forms. Implemented to fix
7756 regression in PDN with toolbox being too wide.
7758 2008-01-14 Andreia Gaita <avidigal@novell.com>
7760 * HtmlElementCollection.cs: Implemented
7762 * HtmlElement.cs: Implemented:
7770 * HtmlDocument.cs: Implemented GetElementsByTagName.
7772 2008-01-14 Jonathan Pobst <monkey@jpobst.com>
7774 * Screen.cs: Stub BitsPerPixel to always return 32.
7776 2008-01-14 Jonathan Pobst <monkey@jpobst.com>
7778 * Form.cs: Implement RestoreBounds.
7780 2008-01-14 Jonathan Pobst <monkey@jpobst.com>
7782 * RichTextBox.cs, ToolStrip.cs: Fix some typos pointed out by
7783 Sebastien and his fabulous magical problem-finding machine:
7784 Gendarme. Also put a MonoTodo on AutoWordSelect since we don't
7785 respect the value set.
7787 2008-01-14 Everaldo Canuto <ecanuto@novell.com>
7789 * Form.cs: In WmWindowPosChanged call base.WndProc including when state is
7790 minimized. Fixes bug #325122 for Win32. Thanks Srikanth Madikeri.
7792 2008-01-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7794 * X11Dnd.cs: Since we don't propagate the WM_LBUTTONUP/WM_RBUTTONUP
7795 messages (to match .Net), we need to remove the capture ourselves.
7797 2008-01-11 Jonathan Pobst <monkey@jpobst.com>
7799 * MenuAPI.cs: If we get an Alt-F4, release our capture so Windows
7800 will process the message and close our window.
7803 2008-01-10 Geoff Norton <gnorton@novell.com>
7805 * XplatUICarbon.cs: Clip the Graphics context to the invalid area
7806 tracked in the Hwnd. Only invalidate the dirty region to the Carbon
7809 2008-01-10 Jonathan Pobst <monkey@jpobst.com>
7811 * Form.cs: Enforce the Form minimum size in SetBoundsCore. Fixed
7814 2008-01-10 Jonathan Pobst <monkey@jpobst.com>
7816 * XplatUIX11.cs: Set a minimum window size and enforce it. Even though
7817 Linux doesn't care, having a minimum matches MS and keeps the window
7818 from becoming too small to use window decorations.
7821 2008-01-10 Jonathan Pobst <monkey@jpobst.com>
7823 * ThemeWin32Classic.cs: Tie CheckBox/RadioButton focus rectangles to
7824 ShowFocusCues. Make focus rectangles fit the text instead of the whole
7825 control. [Fixes bug #325419]
7827 2008-01-10 Jonathan Pobst <monkey@jpobst.com>
7829 * ComboBox.cs: Guard against an NRE if the user open a new form from a
7830 SelectedIndexChanged event. This closes the combobox dropdown, and we
7831 were trying to dispose it. [Fixes bug #352830]
7833 2008-01-09 Jonathan Pobst <monkey@jpobst.com>
7835 * Control.cs, Form.cs: Implement the necessary semantics for
7836 ShowFocusCues. All paint code will need to check Control.ShowFocusCues
7837 to determine if a focus rectangle should be drawn.
7838 * PropertyGrid.cs: Fix property visibility to match override.
7839 * ThemeWin32Classic.cs: Use ShowFocusCues for Button.
7841 2008-01-09 Jonathan Pobst <monkey@jpobst.com>
7843 * Application.cs: Use GetCommandLineArgs to calculate ExecutablePath.
7846 2008-01-09 Geoff Norton <gnorton@novell.com>
7848 * XplatUICarbon.cs: Scroll windows in the correct direction.
7850 2008-01-09 Geoff Norton <gnorton@novell.com>
7852 * XplatUICarbon.cs: Track all created utility windows so we can hide them
7853 when the app is deactivated or spaces is enabled.
7855 2008-01-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7857 * ListViewItem.cs: Cosmetic fix - When calculating layout for item, don't add an
7858 extra separation pixel for the label rect origin if SmallImageList is
7859 null, and thus we don't need that separation between icon and label
7861 Patch by Ernesto Carrea.
7864 2008-01-08 Jonathan Pobst <monkey@jpobst.com>
7866 * StatusStrip.cs: Invalidate after completing a layout. The base
7867 OnLayout does this, but we don't call the base.
7868 * ToolStripItem.cs: Revert the previous change to invalidate after
7870 [Fixes bug #351341 better.]
7872 2008-01-07 Geoff Norton <gnorton@novell.com>
7874 * XplatUICarbon.cs: WM_DESTROY is a teardown of a single window
7875 not a notification to exit the application. Listen for WM_QUIT
7878 2008-01-07 Andreia Gaita <avidigal@novell.com>
7880 * HtmlDocument.cs: Fix case on GetElementById (interface changed)
7882 2008-01-07 Jonathan Pobst <monkey@jpobst.com>
7884 * ToolStripItem.cs: If the bounds of an item changes, invalidate it
7885 so it can repaint at the correct location.
7888 2008-01-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7890 * ListControl.cs: SelectedValue should return a null value if
7891 SelectedIndex is -1. Also, when setting it, it should throw an
7892 ArgumentNullException if the value is null, as well as taking
7893 into account the String.Empty value, instead of ignoring it (we have
7894 tests for that now).
7895 Fixes part of #324286.
7897 2008-01-06 Jonathan Pobst <monkey@jpobst.com>
7899 * TextBoxBase.cs, TextControl.cs: Patch from Luke Page to ensure
7900 SelectionStart is updated after pressing enter. Fixes bug #351918.
7902 2008-01-05 Jonathan Pobst <monkey@jpobst.com>
7904 * TextControl.cs: Revert a piece r92316 that prevented the fix
7905 from working when there were multiple tags in the text box.
7908 2008-01-05 Jonathan Pobst <monkey@jpobst.com>
7910 * TextControl.cs: Apply patch from Luke Page that prevents an
7911 NRE when determining the beginning of a paragraph.
7914 2008-01-05 Jonathan Pobst <monkey@jpobst.com>
7916 * TextBoxBase.cs: Apply patch from Luke Page that ensures the
7917 caret gets moved with clicking away from a selected block of
7918 text. Fixes bug #351885.
7920 2008-01-05 Jonathan Pobst <monkey@jpobst.com>
7922 * TextControl.cs: Apply patch from Luke Page that takes line
7923 alignment into account for mouse selection, so that center and
7924 right aligned text can be selected.
7927 2008-01-05 Jonathan Pobst <monkey@jpobst.com>
7929 * RichTextBox.cs: Apply patch from Luke Page that fixes some caret
7930 issues after loading an RTF file by using the correct line feeds.
7933 2008-01-05 Jonathan Pobst <monkey@jpobst.com>
7935 * TextControl.cs: When deleting multiple line selections, we need
7936 to invalidate every line beginning at the first line of the selection.
7937 Patch from Luke Page fixes bug #351791.
7939 2008-01-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7941 * ListControl.cs: When getting a CurrencyManager.PositionChanged
7942 event, don't set SelectedIndex if the number of items is 1. This is
7943 because, for the first item, PositionChanged is fired _before_
7944 ItemChanged (the place where we actually populate the items), and
7945 leave us in a temporary invalid state (since items collection is
7949 2008-01-04 Geoff Norton <gnorton@novell.com>
7951 * XplatUICarbon.cs: Create native toolwindows instead of
7952 the managed drawing ones.
7954 2008-01-03 Jonathan Pobst <monkey@jpobst.com>
7956 * LineTag.cs: If the line doesn't have any characters, return
7957 0 for GetCharIndex. Fixes an AOORE exception after certain
7958 caret movements. Fixes bug #351683. Patch by Luke Page.
7960 2008-01-03 Jonathan Pobst <monkey@jpobst.com>
7962 * TextBoxBase.cs: Apply patch from Luke Page so when backspace
7963 is hit when there is selected text, only the selected text gets
7964 deleted, not the character in front of the selection as well.
7967 2008-01-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7969 * ComboBox.cs: When the values are displayed, calculate the
7970 ComboListBox scrollbar's LargeChange based on the visible area's
7971 height and the actuall ItemHeight, instead of calculating it
7972 based on MaxDropItems value, since it's not used by our _current_
7976 2008-01-03 Jonathan Pobst <monkey@jpobst.com>
7978 * Line.cs, LineTag.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs:
7979 Patch from Luke Page that fixes issues with font colors and styles
7980 not showing up in a readonly RichTextBox. Fixes bug #324354.
7982 2008-01-03 Jonathan Pobst <monkey@jpobst.com>
7984 * Line.cs, RichTextBox.cs, TextControl.cs: Another awesome patch
7985 from Luke Page. This one fixes bug #349926.
7987 2007-12-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7989 * CurrencyManager.cs: Actually fire the 2.0 ListChanged event when
7990 an item in the IBindingList source changes with
7991 ListChangedType.ItemAdded. Ignore for now firing the event for other
7992 changes, since we want to have tests for those cases as well.
7994 2007-12-28 Jonathan Pobst <monkey@jpobst.com>
7996 * TextBoxBase.cs: Don't store a 1x1 Bitmap for every TextBox
7999 2007-12-28 Jonathan Pobst <monkey@jpobst.com>
8001 * TextBoxTextRenderer.cs: Implement a cache for measuring each
8002 character. This is effective because the typical usage of a
8003 TextBox is with a limited amount of fonts and characters, and
8004 the current implementation of TextBox measures everything one
8005 character at a time. Another second or two speedup for bug #347238.
8007 2007-12-28 Jonathan Pobst <monkey@jpobst.com>
8009 * Control.cs: Rewrite the Font getter to only query the parent's
8010 Font property once instead of twice. Since this operation is
8011 recursive, the queries were growing exponentially as the control
8012 tree got deeper. Another second or two speedup for bug #347238.
8014 2007-12-28 Jonathan Pobst <monkey@jpobst.com>
8016 * Control.cs: Avoid setting a parent (and more importantly, updating
8017 the zorder of all its children) if the parent is already correct in
8018 WmShowWindow. Decreases the startup time of the test case on bug
8019 #347238 from 35 seconds to 11 seconds.
8021 2007-12-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8023 * X11Dnd.cs: When the dnd operation has started and we are
8024 in the dnd loop, don't dispatch either WM_LBUTTONUP nor WM_RBUTTONUP.
8025 This is done to match .Net, which doesn't send those messages after
8026 dnd operation was completed/cancelled.
8029 2007-12-27 Jonathan Pobst <monkey@jpobst.com>
8031 * ToolStrip.cs: Previous change should be != null, not == null.
8034 2007-12-27 Jonathan Pobst <monkey@jpobst.com>
8036 * ToolStrip.cs: Guard against an NRE after ItemClicked is called, the
8037 user may have moved the mouse off the current item during the event.
8039 2007-12-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8041 * ListView.cs: In ItemControl.ItemsMouseMove, try to avoid
8042 calling GetItemAt for every MouseMove event by also taking into
8043 account whether any mouse button is pressed (probably dragging);
8044 if so, we can call GetItemAt, and if not, try to not call it
8045 (GetItemAt can be quite expensive when used with a large number of items).
8047 2007-12-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8049 * ListView.cs: Implement -finally- support for dnd, by calling
8050 OnItemDrag as needed. Also, remove the dnd TODO, and add myself to the
8052 * ListViewInsertionMark.cs: Implement NearestIndex method, by doing a
8053 simple calculation of distances for all the items in the owner
8056 2007-12-21 Geoff Norton <gnorton@novell.com>
8058 * XplatUICarbon.cs: Ensure that we create WindowMapping handles
8059 for windows that are originally created as invisible. Fixes missing
8060 main window in paint-mono.
8062 2007-12-21 Geoff Norton <gnorton@novell.com>
8064 * XplatUICarbon.cs: Register our D&D handler. Register our custom
8065 subclass handler for com.novell.mwfview subclassing HIView. Implement
8066 Pasteboard and Dnd methods.
8068 2007-12-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8070 * ListBox.cs: When we got focus, give focus to first item if there
8071 wasn't any pervious focused item. Also update navigation to depend on
8072 SelectedIndex rather than FocusedItem, just as .Net does.
8075 2007-12-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8077 * ListBox.cs: Both FindString and FindStringExact methods must do an
8078 case insensitive search, should allow the last valid index to be
8079 passed in the overload taking an initial index, and should also
8080 continue searching from the top back to the specified index when it
8083 2007-12-19 Jonathan Pobst <monkey@jpobst.com>
8085 * TextControl.cs: Apply patch from Luke Page that fixes a scrolling
8086 redraw issue, and allows RichTextBox to draw colored text even while
8087 disabled or readonly.
8089 2007-12-19 Jonathan Pobst <monkey@jpobst.com>
8091 * RichTextBox.cs, TextBoxBase.cs: Apply patch from Luke Page that
8092 disallows cut/paste in a readonly textbox, adds support for Shift-Insert,
8093 and doesn't grey text in a disabled RichTextBox.
8095 2007-12-19 Jonathan Pobst <monkey@jpobst.com>
8097 * RichTextBox.cs: Apply patch from Luke Page that adds better support
8098 for many RTF commands: quad alignment, separate formatting for blocks
8099 inside groups, and ParDef support. Makes the test case from bug #324589
8102 2007-12-19 Jonathan Pobst <monkey@jpobst.com>
8104 * LineTag.cs: Fix an error in the new Draw method that caused
8105 a crash when rendering the document on bug #324589.
8107 2007-12-19 Jonathan Pobst <monkey@jpobst.com>
8109 * Line.cs, LineTag.cs, RichTextBox.cs, TextBoxBase.cs,
8110 TextControl.cs: Apply patch from Luke Page that adds support
8111 for URL links in RichTextBox.
8112 [Fixes enhancement #342516]
8114 2007-12-18 Everaldo Canuto <ecanuto@novell.com>
8116 * MenuItem.cs: When cloning menuitem clone also name and tag properties for
8117 2.0 profile. Thanks Ernesto Carrea and Luke Page. Fixes bug #340289.
8119 2007-12-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8121 * ListBox.cs: When a key gets pressed, try to find a string
8122 if the key is a character or a digit.
8125 2007-12-17 Jonathan Pobst <monkey@jpobst.com>
8127 * TableLayoutPanel.cs: Remove some unused variables.
8129 2007-12-17 Jonathan Pobst <monkey@jpobst.com>
8131 * DateTimePicker.cs: Commit patch from Luke Page that ensures
8132 we don't end up at an invalid date when we click the up/down
8133 spinner to change the month or year. Fixes bug #348682.
8135 2007-12-17 Jonathan Pobst <monkey@jpobst.com>
8137 * Application.cs: Calling Exit in 2.0 should chain to the
8138 Exit (CancelEventArgs) version so it can be cancelled.
8139 * Form.cs: Create a flag to allow raising the Closing
8140 events to be skipped. We raise them once in Application.Exit
8141 and don't want to raise them again when the Form is actually
8142 closed. [Fixes bug #349073]
8144 2007-12-16 Jonathan Pobst <monkey@jpobst.com>
8146 * ToolStripDropDown.cs: Guard against an NRE when there
8147 hasn't been a mainform set in the application context.
8150 2007-12-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8152 * ListBox.cs: When SetBoundsCore gets called, besides
8153 calling UpdateScrollBars, update the value of
8154 last_visible_index, since we could need to show more items
8155 than before, and we need to let the paint routines know that.
8158 2007-12-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8160 * ListView.cs: Add DesignerSerializationVisibility attribute to
8161 InsertionMark property.
8162 * ListViewItem.cs: Add same attribute to Position property.
8164 2007-12-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8166 * ListViewItem.cs: .ctor (SerializationInfo, StreamingContext)
8169 2007-12-14 Jonathan Pobst <monkey@jpobst.com>
8171 * ThemeWin32Classic.cs: Don't draw the background on a
8172 flat button if there is a background image.
8175 2007-12-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8177 * ListBox.cs: If we remove the item currently selected,
8178 remove it not only from SelectedItems, but also
8179 resetting selected_index. Moreover, set focused_item to Items.Count - 1 if
8180 the items count decreased and focused_item has bigger value than that.
8182 2007-12-13 Jonathan Pobst <monkey@jpobst.com>
8184 * Control.cs: Perform our layout after we resize ourselves
8185 if we had to adjust our AutoSize. Missed commit for bug
8188 2007-12-13 Jonathan Pobst <monkey@jpobst.com>
8190 * TableLayoutPanel.cs: Override GetPreferredSizeCore so
8191 we can provide an implementation of AutoSize.
8194 2007-12-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8196 * ListBox.cs: Add the internal overload Sort (bool paint),
8197 to indicate whether we actually need a paint or we will
8198 call Refresh ourselves. This way we don't request a paint
8199 _before_ having an updated and valid layout.
8202 2007-12-12 Andreia Gaita <avidigal@novell.com>
8204 * XPlatUIX11.cs: Send paint messages when updating a systray icon
8205 * NotifyIcon.cs: Invalidate the window before doing a systray change so it is
8206 properly invalidated.
8209 2007-12-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8211 * ListViewItem.cs: When using a .ctor taking a ListViewGroup,
8212 don't simply assign it to our internal group field, but instead
8213 use our Group property, which should do all the neccessary work
8214 required to support groups. Fixes an issue reported to me (mail) by a
8215 guy using this new feature.
8217 2007-12-11 Jonathan Pobst <monkey@jpobst.com>
8219 * Control.cs: Use Scale instead of ScaleControl to ensure the
8220 whole hierarchy gets scaled.
8223 2007-12-10 Jonathan Pobst <monkey@jpobst.com>
8225 * DateTimePicker.cs: Don't set the internal MonthCalendar's
8226 Parent property. Doing this causes the control to be hosted by
8227 the Form instead of being a popup window.
8230 2007-12-10 Jonathan Pobst <monkey@jpobst.com>
8232 * ToolStripItemCollection.cs: If we try to insert a ToolStripItem
8233 at an index higher than Count, just use Add instead of Insert.
8236 2007-12-10 Jonathan Pobst <monkey@jpobst.com>
8238 * ThemeWin32Classic.cs: Don't draw a PictureBox's background in
8239 DrawPictureBox, this is handled by Control.PaintBackground.
8242 2007-12-10 Everaldo Canuto <ecanuto@novell.com>
8244 * MenuAPI.cs: When process menu keys return true by default only if menu is
8245 active. Fixes bug #342892.
8247 2007-12-09 Andreia Gaita <avidigal@novell.com>
8249 * Control.cs: check if windows are actually mapped before
8250 trying to zorder. Fixes #342509, #346955
8252 2007-12-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8255 * ListViewInsertionMark.cs:
8256 * ThemeWin32Classic.cs: Implement the drawing side of the
8257 new 2.0 ListView.InsertionMark property.
8259 2007-12-07 Jonathan Pobst <monkey@jpobst.com>
8261 * CurrencyManager.cs: Silence some debug spew.
8263 2007-12-07 Geoff Norton <gnorton@novell.com>
8265 * Hwnd.cs: Refactor GetClippingRectangles to suppose returning the
8266 masks for our children as well as siblings to avoid having to query
8267 Quartz for this information.
8268 * XplatUICarbon.cs: Implement a delegate based system to pass
8269 information to System.Drawing. Implement Async methods. Remove
8270 the hack for the resize thumb and imlpement a transparent Grow Box.
8271 Rework the messaging system to proplery create window's and messages,
8274 2007-12-06 Andreia Gaita <avidigal@novell.com>
8276 * X11Keyboard.cs: Use Xutf8LookupString to support international
8277 characters under alternate codepages. Patch from #340878
8279 2007-12-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8281 * ListView.cs: When doing layout computations, set position in the
8282 ListView instances (we cache the position just as .Net does).
8283 * ListViewItem.cs: New internal setter method for Position. Also set
8284 position field as also available in 1.1, since we are going to use it
8285 now in the common case.
8287 2007-12-06 Andreia Gaita <avidigal@novell.com>
8289 * Control.cs: When removing controls, get the actual container
8290 to notify about active control changes. Fixes 341314.
8292 2007-12-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8294 * ListViewItem.cs: Forgot to add Font to our serialization stuff.
8296 2007-12-05 Andreia Gaita <avidigal@novell.com>
8298 * Control.cs: When updating the zorder, ignore windows that are not
8299 mapped. Fixes #342509
8301 2007-12-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8303 * ListViewItem.cs: Actually implement serialization on this class.
8305 2007-12-05 Gert Driesen <drieseng@users.sourceforge.net>
8307 * LinkLabel.cs: Fixed paramname of ArgumentNullException in ctor of
8308 LinkCollection. Spaces to tabs, and removed extra tabs.
8310 2007-12-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
8312 * XplatUIX11.cs: Make toolwindows' decorations show up without causing any
8313 tests to fail (hopefully).
8315 2007-12-03 Jonathan Pobst <monkey@jpobst.com>
8317 * ToolStripDropDownMenu.cs: Fill in AffectedBounds when drawing
8318 the image margin so custom renderers can correctly place it.
8320 2007-12-03 Jonathan Pobst <monkey@jpobst.com>
8322 * StatusStrip.cs: Fill in AffectedBounds when drawing the grip
8323 so custom renderers can correctly place it.
8325 2007-12-03 Jonathan Pobst <monkey@jpobst.com>
8327 * Application.cs: Let WM_CHAR messages flow through to controls
8328 hosted in Strips. [Fixes bug #343972]
8330 2007-12-02 Jonathan Pobst <monkey@jpobst.com>
8332 * ToolStripManager.cs: Guard against an NRE I ran into.
8334 2007-12-02 Jonathan Pobst <monkey@jpobst.com>
8336 * LinkLabel.cs: Apply patch from George to fix bug 344012. If
8337 a Link is manually added to the Links collection, we need to set
8338 its owner, so it can invalidate properly.
8341 2007-11-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8343 * ListView.cs: When changing ListViewItem.Position (which calls
8344 ListView.ChangeItemLocation), invalidate not only the area
8345 corresponding to the main item, but also to the area occupied
8346 by the items being moved.
8348 2007-11-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8350 * ListView.cs: When changing the position of a given item,
8351 don't use item bounds, but item areas (which includes the item spacing
8352 between them). Also, use first/last position if the requested
8353 position is outside bounds (as .Net does). Invalidate the previous and
8354 new bounds. Finally, in ItemControl.ItemsMouseDown use the actual item
8355 in a specific position, instead of directly accessing Items collection
8356 (this is done to get the right item - remember an Item can have a
8357 different position in the grid than in the Items collection).
8359 2007-11-23 Everaldo Canuto <ecanuto@novell.com>
8361 * MessageBox.cs: Calculate text area instead of just top left, this rect
8362 area will be used in DrawString. Fixes bug #343364.
8364 2007-11-23 Everaldo Canuto <ecanuto@novell.com>
8366 * MessageBox.cs: Calculate max amount for text area width, it must be 60% of
8367 screen width. Partially fixes bug #343364.
8369 2007-11-23 Everaldo Canuto <ecanuto@novell.com>
8371 * NotifyIcon.cs: Remove duplicated code before call realculate and put this
8372 code inside recalculate, it makes code more simple.
8374 2007-11-22 Everaldo Canuto <ecanuto@novell.com>
8376 * NotifyIcon.cs: When recalculate icon verify if icon is active to decide
8377 between update or add icon. Fixes bug #324344.
8379 2007-11-21 Andreia Gaita <avidigal@novell.com>
8381 * XPlatUIX11.cs: Do not treat tool windows as if they have no
8382 window manager, since that stretches the drawing area to include
8383 the window decorations, and they get hidden. Reverts r84444 and fixes
8384 #335849 and #342790 (mdi and pdn3 regression)
8386 2007-11-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8388 * ListView.cs: When setting focused item, try to give focus to the
8389 previous one _only_ if the previous one remains valid.
8392 2007-11-20 Jonathan Pobst <monkey@jpobst.com>
8394 * Application.cs: Revert r89650, as it broke a common case to fix
8395 an obscure case. Fixes bug #342606.
8397 2007-11-20 Everaldo Canuto <ecanuto@novell.com>
8399 * ThemeWin32Classic.cs: Fix extra space on end of tooltip.
8401 2007-11-20 Everaldo Canuto <ecanuto@novell.com>
8403 * ThemeWin32Classic.cs: Fix tooltip text align removing horizontal
8404 alignment. [Fixes #324228]
8406 2007-11-19 Jonathan Pobst <monkey@jpobst.com>
8408 * ToolStrip.cs: Handle flow layout in GetPreferredSize to fix PDN3.
8411 2007-11-19 Everaldo Canuto <ecanuto@novell.com>
8413 * Form.cs: Check for empty Text before assign to cp.Caption in CreateParams
8414 it prevent problems when empty captions. [Fixes #342141]
8416 2007-11-19 Jonathan Pobst <monkey@jpobst.com>
8418 * Label.cs: Use Size instead of None. Fixes bug #342077.
8420 2007-11-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8422 * ListViewItem.cs: Implement 2.0 FindNearestItem method.
8424 2007-11-17 Jonathan Pobst <monkey@jpobst.com>
8426 * MenuStrip.cs: Guard against a NRE when a MdiWindowItem is set
8427 but there isn't a MdiContainer.
8430 2007-11-17 Jonathan Pobst <monkey@jpobst.com>
8432 * TextControl.cs: Don't recalculate document if the recalc_start and
8433 recalc_end hasn't changed.
8436 2007-11-17 Gert Driesen <drieseng@users.sourceforge.net>
8438 * DataGridViewTextBoxCell.cs: Removed CWL.
8440 2007-11-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8442 * ListView.cs: Implement 2.0 SearchForVirtualItem event support.
8444 2007-11-16 Jonathan Pobst <monkey@jpobst.com>
8446 * TextControl.cs: Missed some code for bug 341534 to trigger a
8447 recalculation when the font changes.
8449 2007-11-16 Andreia Gaita <avidigal@novell.com>
8451 * Control.cs: When updating the zorder, check if the child to update is
8452 the same control that is set to always be on top (i.e., scrollbars), and
8453 just put it on top directly. Fixes BadMatch error on pdn3
8455 2007-11-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8457 * ListView.cs: Throw the needed exceptions for FindNearestItem.
8459 2007-11-16 Jonathan Pobst <monkey@jpobst.com>
8461 * Control.cs: Don't perform a new layout when a label changes its text,
8462 cause label handles its own autosizing.
8465 2007-11-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8467 * ListView.cs: Implement 2.0 FindNearestItem methods.
8469 2007-11-15 Jonathan Pobst <monkey@jpobst.com>
8471 * ToolStripPanel.cs: Make Join at least add the control to the panel,
8472 even if the rest of what Join does isn't supported. Add some more
8473 support for vertical toolbars.
8474 * ToolStripPanelRow.cs: Add some more support for vertical toolbars.
8475 [Fixes the application breaking parts of bug #341998]
8477 2007-11-15 Jonathan Pobst <monkey@jpobst.com>
8479 * ToolStripItem.cs: When determining if we have a check/image margin,
8480 we need to look at ShowCheckMargin as well as ShowImageMargin.
8482 2007-11-15 Geoff Norton <gnorton@novell.com>
8484 * XplatUIOSX.cs: Rename to...
8485 * XplatUICarbon.cs: and refactor all event handling out to the new event handling
8486 system in System.Windows.Forms.CarbonInternal. Lots of code cleanup as well.
8488 2007-11-15 Jonathan Pobst <monkey@jpobst.com>
8490 * KeysConverter.cs: The default values should be an array of Keys, not
8491 strings. Also, the array has more values for 2.0.
8494 2007-11-14 Jonathan Pobst <monkey@jpobst.com>
8496 * Application.cs: Change ExecutablePath to use
8497 Process.GetCurrentProcess ().MainModule.FileName instead of Assembly.GetEntryAssembly.
8500 2007-11-14 Jonathan Pobst <monkey@jpobst.com>
8502 * LineTag.cs: Don't attempt to draw '\r', treat it like it doesn't exist.
8503 When measureing CR or LF, use /u000D instead of /u0013. (Hex, not decimal.)
8504 * TextControl.cs: Fix a case in GetLineEnding where a \n before a \r would
8505 be ignored. Create a new GetLineEnding that can specify which types of
8506 line endings to look for. On Insert, only create new lines for \n and \r\n.
8509 2007-11-14 Jonathan Pobst <monkey@jpobst.com>
8511 * TextBoxBase.cs: As we loop through each line changing the font, tell
8512 the document that the line needs to be recalculated. Fixes bug #341534.
8514 2007-11-13 Jonathan Pobst <monkey@jpobst.com>
8515 [Another round of refactoring]
8516 * Line.cs: Add DeleteCharacters.
8517 * LineTag.cs: Add Delete.
8518 * TextBoxBase.cs: Update to use new methods.
8519 * TextControl.cs: Refactor the Delete* methods.
8521 2007-11-13 Everaldo Canuto <ecanuto@novell.com>
8523 * Win32DnD.cs: Implement Win32 Drop files, thank you Srikanth Madikeri for
8524 the patch. [Fixes #324856]
8526 2007-11-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8529 * ListViewItem.cs: Add an initial implementation of
8530 2.0 ListViewItem.Position getter.
8532 2007-11-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8534 * ListView.cs: Add a reordered_items_indices array, to allow us
8535 to have a different sorting than that of Items (the sorting in Items
8536 could not match the actual sorting in screen). This is needed to
8537 implement a pair of 2.0 features.
8538 * ListViewItem.cs: Add a DisplayIndex property to keep track of the
8539 actual position in the ListView grid, since it could have a position
8540 different than its Index (position in ListViewItemCollection).
8542 2007-11-09 Jonathan Pobst <monkey@jpobst.com>
8544 * Label.cs: Add StringFormatFlags.LineLimit. This tells DrawString to
8545 not draw partial lines.
8546 * LinkLabel.cs: Change FormatFlags setter from = to |= so that the
8547 LineLimit flag from the base is preserved.
8548 Fixes the windows part of bug #338965.
8550 2007-11-09 Jonathan Pobst <monkey@jpobst.com>
8552 * TextBoxBase.cs: Move handling of the enter key from KEYDOWN to CHAR
8553 so that it can be canceled in KeyPress.
8556 2007-11-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8558 * ListView.cs: In ItemControl, reset mouse-handling related
8559 fields even if we dont' have items (we still should reset them when
8560 we had items but then called Items.Clear). Partially based in a patch
8564 2007-11-08 Gert Driesen <drieseng@users.sourceforge.net>
8566 * Application.cs: In ProductVersion first try AssemblyFileVersion
8567 before falling back to assembly version. Fixes bug #339787.
8569 2007-11-08 Andreia Gaita <avidigal@novell.com>
8571 * HtmlElement.cs: Implement InnerText setter.
8572 * WebBrowserBase.cs: Implement Navigated event support.
8573 Add flag to track when the browser "document" is ready to be retrieved.
8574 * WebBrowser.cs: Implement CanGoBack, CanGoForward, Title, Url.
8575 Make sure browser document is ready before retrieving it.
8576 Clean up cached objects (document) when moving to a new page through
8577 any of the navigation methods.
8578 Use the new Mono.WebBrowser.INavigation interface to control navigation.
8579 Implement OnNavigated event.
8581 2007-11-07 Jonathan Pobst <monkey@jpobst.com>
8583 * ThemeWin32Classic.cs: Don't draw the background in DrawLabel or
8584 DrawLinkLabel, this is handled by OnPaintBackground.
8585 Fixes bug #339565, part II.
8587 2007-11-07 Andreia Gaita <avidigal@novell.com>
8589 * Control.cs: Revert r88915. Selecting text on a textbox depends on
8590 getting a Select call on click, so this call needs to be here for now.
8593 2007-11-07 Geoff Norton <gnorton@novell.com>
8595 * OSXStructs.cs: Add the kEventClassApplication constants.
8596 * XplatUIOSX.cs: Send a WM_LBUTTONDOWN to the Grab window when the
8597 application is deactivated otherwise Menu overlays linger on top of
8598 other application windows.
8600 2007-11-07 Geoff Norton <gnorton@novell.com>
8602 * XplatUIOSX.cs: Dont throw an exception on OverrideCursor as we
8603 dont support cursors yet anyways. This allows Reflector to run.
8605 2007-11-07 Geoff Norton <gnorton@novell.com>
8607 * XplatUIOSX.cs: Implement DragSize.
8609 2007-11-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8611 * ListView.cs: When we receive a WM_LBUTTONDOWN message in
8612 ItemControl, request the focus, as .Net does. This is needed after
8613 Control does not request focus anymore when it receives a
8616 2007-11-06 Jonathan Pobst <monkey@Jpobst.com>
8618 * Label.cs: Make DrawImage internal so it can be called from Theme code.
8619 Remove the DrawImage call from OnPaint.
8620 * LinkLabel.cs: Remove the DrawImage call from OnPaint.
8621 * ThemeWin32Classic.cs: Call DrawImage after we paint the background,
8622 but before we draw the text for DrawLabel and DrawLinkLabel.
8625 2007-11-05 Andreia Gaita <avidigal@novell.com>
8627 * Control.cs: Remove select call on click. Fixes #325809
8629 2007-11-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8631 * ListViewItem.cs: Add 2.0 Position property getter.
8633 2007-11-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8635 * ListView.cs: Add 2.0 BackgroundImageTiled property.
8636 Also, to make it work properly, change item's BackColor and
8637 BackgroundImageLayout as needed.
8638 * ThemeWin32Classic.cs: Don't fill any background rectangle
8639 in ListView.ItemControl when drawing items; just let the Control
8640 base implementation fill it.
8642 2007-11-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8644 * ListViewGroup.cs: Adda TypeConverter attribute for this class,
8645 as well as adding a custom 'dummy' Converter, as .net does.
8647 2007-11-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8649 * PropertyGridView.cs: When clicking drop-down button,
8650 select an index in the listbox only if our standard values collection
8651 has one or more items.
8653 2007-11-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8655 * ListViewItem.cs: Add a DefaultValue attribute to 2.0 IndentCount
8658 2007-11-04 Gert Driesen <drieseng@users.sourceforge.net>
8660 * PropertyGrid.cs: In PropertySort, update the toolbar buttons even if
8661 the value is not changed. This ensure a pushed button remains in that
8662 state when clicked again. When switching the value of PropertySort
8663 between Categorized and CategorizedAlphabetical, do not update the
8664 grid items and do not fire a PropertyChangedEvent. When clicking the
8665 sorting buttons, do not modify the PropertySort value when switching
8666 between Categorized and CategorizedAlphabetical but only update the
8669 2007-11-04 Gert Driesen <drieseng@users.sourceforge.net>
8671 * Label.cs: Make AutoEllipsis internal on 1.0 profile. Code
8673 * PropertyGrid.cs: Also put Categorized button in pushed state when
8674 PropertySort is CategorizedAlphabetical. Set AutoEllipsis to true
8675 for help description label.
8677 2007-11-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8679 * ListView.cs: When calculating the biggest item for a given column,
8680 take into account 2.0 LIstViewItem.IndentCount, since it directly affects
8683 2007-11-03 Gert Driesen <drieseng@users.sourceforge.net>
8685 * PropertyGrid.cs: Fixed default value for PropertySort. Allow invalid
8686 value for PropertySort on 1.0 profile. PropertySortChanged event
8687 should only be fired on 2.0 profile. Fixed NullReferenceException
8688 in UpdateSortLayout when PropertyGrid contains no items.
8690 2007-11-02 Jonathan Pobst <monkey@jpobst.com>
8692 * MessageBox.cs: Patch from George to implement MessageBoxDefaultButton.
8695 2007-11-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8697 * ListViewItem.cs: Implement 2.0 IndentCount property.
8699 2007-11-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8701 * X11Dnd.cs: When sending status in a dnd operation, compare current
8702 effect with the 'allowed' field instead of 'drag_data.Allowed', since
8703 the later is only created when a Winforms application is both the
8704 source and the target, but not when we are the target only.
8705 Fixes part of #324251.
8707 2007-11-01 Geoff Norton <gnorton@novell.com>
8709 * XplatUI*.cs: Add GetPreviousWindow utility method to return windows in
8711 * Hwnd.cs: Add initial implementation of GetClippingRectangles to clip sibling
8712 children out of the drawing view on mac.
8713 * XplatUIOSX.cs: Code cleanup. Handle more window grab cases. Fix SetParent
8714 to handle the orphan and invisible case (1/2 fixes TabStrip drawing in FormsTest)
8716 2007-11-01 Jonathan Pobst <monkey@jpobst.com>
8718 * ToolStrip.cs: Don't process MouseUp for a ToolStripControlHost, clicking
8719 on the non-hosted-control part of it shouldn't do anything.
8720 Fixes part of bug #327498.
8722 2007-11-01 Andreia Gaita <avidigal@novell.com>
8724 * WebBrowserBase.cs: revert previous change, resize can be called anytime
8726 2007-11-01 Jonathan Pobst <monkey@jpobst.com>
8728 * Application.cs: When a toolstrip has the keyboard input loop, let messages
8729 it does not use flow through to controls that are hosted in menus.
8730 Same with mouse clicks.
8731 * Form.cs: Don't close all menus on click if the click is on a
8732 control hosted in a menu.
8733 Fixes part of bug #327498, and part of bug #325969.
8735 2007-10-31 Andreia Gaita <avidigal@novell.com>
8737 * WebBrowserBase.cs: Only call resize on gluezilla when it is active
8739 2007-10-31 Jonathan Pobst <monkey@jpobst.com>
8741 * TextBoxBase.cs: Use int.MaxValue for MaxLength instead of magic number.
8742 Addresses an issue raised in bug #336218.
8744 2007-10-30 Jonathan Pobst <monkey@jpobst.com>
8746 * Form.cs: Patch from George that moves the conversion of ClientSize->Size
8747 for PreferredSize from OnLayout to PreferredSize. Fixes bug #325242.
8749 2007-10-30 Andreia Gaita <avidigal@novell.com>
8751 * ContainerControl.cs: Check if the active control is a
8752 child of a removed control and update active_control accordingly.
8755 2007-10-29 Jonathan Pobst <monkey@jpobst.com>
8757 * DateTimePicker.cs: Throw ArgEx if the Value is set outside the MinDate
8758 or the MaxDate. Fixed bug #337693.
8760 2007-10-29 Jonathan Pobst <monkey@jpobst.com>
8762 * XplatUIWin32.cs: Always call SetWindowPos with SWP_FRAMECHANGED flag
8763 after calling SetWindowLong for a form, to force an immediate NC refresh.
8764 Fixes first part of bug #325150.
8766 2007-10-29 Jonathan Pobst <monkey@jpobst.com>
8768 * ComboBox.cs: Don't try to resize the listbox when we are DropDownStyle
8769 simple. Fixes the last part of bug #322668.
8771 2007-10-29 Jonathan Pobst <monkey@jpobst.com>
8773 * MessageBox.cs: If the owner is TopMost, then the MessageBox form
8774 needs to be TopMost as well, or else the MessageBox is under the form.
8775 Patch by George fixes bug #325300.
8777 2007-10-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8779 * X11Dnd.cs: When starting a new drag operation, reset the static
8780 'dropped' field to false (previously the implementation didn't reset
8781 it and got confused after the first drag).
8784 2007-10-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8786 * PropertyGrid.cs: When PropertySort changes, re-organize the grid
8787 items instead of re-creating them all. For this purpose we now cache
8788 both CategoryGridEntry items and the GridEntries for the main object's
8790 * GridItem.cs: Make SetParent method abstract.
8791 * GridEntry.cs: Override the SetParent method (already there, but now
8795 2007-10-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8797 * PropertyGridView.cs: Set the plus/minus bounds of a grid item
8798 depending on its depth (as .Net does). Update the needed values in
8799 MouseDown handler. Also draw the plus/minus rect after the label,
8800 so we don't draw on top of it.
8802 2007-10-24 Everaldo Canuto <ecanuto@novell.com>
8804 * MenuAPI.cs: Return true as default in ProcessKeys to prevent keys to be
8805 processed by forms or controls when menu is active. [Fixes #333548]
8807 2007-10-24 Jonathan Pobst <monkey@jpobst.com>
8809 * ToolStripItem.cs: Don't focus a ToolStripControlHost on Select of the
8810 parent doesn't have focus. This was causing ToolStripTextBoxes to take
8811 focus on mouse over.
8813 2007-10-24 Jonathan Pobst <monkey@jpobst.com>
8815 * TextControl.cs: Code cleaning, simplifying.
8817 2007-10-24 Geoff Norton <gnorton@novell.com>
8819 * XplatUIOSX.cs: Route mouse events to the grab hwnd on mouse down as well.
8820 * XplatUIStructs.cs: Fix the ToString method of POINT and MSG.
8822 2007-10-24 Jonathan Pobst <monkey@jpobst.com>
8824 * TextBoxBase.cs: If the user sets maxlength to 0, it should mean
8825 the cap is maxvalue, not actually 0. [Fixes bug #336218]
8827 2007-10-24 Andreia Gaita <avidigal@novell.com>
8829 * SendKeys.cs: apply jpobst's patch to bug #332409
8831 2007-10-23 Andreia Gaita <avidigal@novell.com>
8833 * TextBoxTextRenderer.cs: Lower bounds max size to Int16.MaxValue, the
8834 Windows 2000 gdi DrawText call doesn't draw if it's higher than that
8837 2007-10-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8839 * PropertyGridView.cs: If a property has an UIEditor available,
8840 make the drop-down/editor button available only if the property
8843 2007-10-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8845 * PropertyGridView.cs: Don't make the grid item textbox
8846 editable when a drop-down control is available, but
8847 CanConvertFrom (typeof (string)) is false or GetStandardValuesExclusive () is
8848 true. The same bur the color of the grid item value's label.
8850 2007-10-22 Geoff Norton <gnorton@novell.com>
8852 * OSXStructs.cs: Add the needed constants for keyboard modifiers.
8853 * OSXKeyboard.cs: Initial support for keyboard and limited modifiers.
8854 * XplatUIOSX.cs: New reversible frame support. Wire in the new keyboard
8855 driver. Padd the bottom of all real windows so the resize thumb doesn't
8856 obscure scroll/status bars.
8858 2007-10-22 Jonathan Pobst <monkey@jpobst.com>
8860 * WindowsFormsSection.cs: Implement.
8862 2007-10-22 Everaldo Canuto <ecanuto@novell.com>
8864 * MdiClient.cs: Maximize new active mdi child when a maximized child is
8865 closed see #325434 patch.
8867 2007-10-22 Everaldo Canuto <ecanuto@novell.com>
8869 * MdiClient.cs: Fix remaining issues from layout vertical and horizontal,
8872 2007-10-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8874 * PropertyGridView.cs: When showing the textbox for a grid item,
8875 have two local variables to store the read-only and non-editable
8876 status of a grid item (we were previously using just one variable
8877 to do this, when actually they are slightly different).
8878 Fixes part of #325023.
8880 2007-10-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8882 * PropertyGridView.cs: When showing a drop-down list, try to get the
8883 values using TypeConverter.ConvertTo (to convert to a string). Fixes
8886 2007-10-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8888 * PropertyGrid.cs: When updating a property and populating sub grid
8889 items, remove the previous ones, and invalidate the specific area.
8890 * PropertyGridView.cs: A new InvalidateBelowGridItem to invalidate the
8891 area behind a grid item.
8892 * GridItemCollection.cs: Add an internal Clear method, to allow us to
8893 clean the items if needed (specially for controls implementing
8894 ICustomTypeDescriptor and returning a variable number of properties).
8897 2007-10-19 Jonathan Pobst <monkey@jpobst.com>
8899 * TextControl.cs: Clean up and document the Insert function.
8901 2007-10-17 Jonathan Pobst <monkey@jpobst.com>
8903 * TextControl.cs: Make sure we know our start point for updating the view
8904 in ReplaceSelection. Fixes an issue where pasting multiline text wouldn't
8907 2007-10-17 Jonathan Pobst <monkey@jpobst.com>
8909 * ListView: Couple of corcompare fixes.
8911 2007-10-17 Geoff Norton <gnorton@novell.com>
8913 * XplatUIOSX.cs: Implement support for window icons in the dock. Set
8914 the title caption of real window.
8916 2007-10-17 Jonathan Pobst <monkey@jpobst.com>
8918 * ErrorProvider.cs: Add the error provider's internal window to a
8919 containercontrol when the parent changes. [Fixes bug #329714]
8921 2007-10-17 Geoff Norton <gnorton@novell.com>
8923 * XplatUIOSX.cs: Implement ScrollWindow. Properly create TOOLWINDOWs.
8924 When we make a new window; restore the old active window - fixes dialogs.
8926 2007-10-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8928 * PropertyGridView.cs: Look for RefreshPropertiesAttribute
8929 when modifying a property, and if found then invalidate as
8931 Fixes part of #324865.
8933 2007-10-17 Geoff Norton <gnorton@novell.com>
8935 * XplatUIOSX.cs: Re-enable the native driver on the Mac. This is still
8936 highly experimental. Fixed coordinate translation. Fixed window locations.
8937 Initial support for clipping. Implemented NC areas and menus. Support for
8938 launching from command line from Will Johansson (wjohansson@atacomm.com).
8939 * OSXStructs.cs: Add ProcessSerialNumer (Patch from Will Johansson
8940 wjohansson@atacomm.com)
8941 * Hwnd.cs: Add some internal structures for tracking Mac cursors.
8942 Hwnds now track the existence of all of their children for Mac clipping.
8943 * XplatUI.cs: Re-enabled the native driver on the Mac.
8945 2007-10-17 Jonathan Pobst <monkey@jpobst.com>
8947 * Line.cs: Move the InsertString function to here.
8948 * TextControl.cs: Cleanup some duplicate code, move some InsertString
8949 functionality to Line.
8951 2007-10-17 Geoff Norton <gnorton@novell.com>
8953 * ComboBox.cs: Destroy the popup after hiding it. Fixes #322582
8955 2007-10-16 Gert Driesen <drieseng@users.sourceforge.net>
8957 * ButtonBase.cs: Fixed IsDefault to use assigned value instead of
8958 always setting value to true.
8959 * Form.cs: When changing AcceptButton, notify new and original button.
8961 2007-10-16 Jonathan Pobst <monkey@jpobst.com>
8963 * Form.cs: Guard against an NRE when the user sets the AcceptButton to
8964 a custom control that implements IButtonControl instead of an actual
8965 button. [Fixes bug #334244]
8967 2007-10-15 Everaldo Canuto <ecanuto@novell.com>
8969 * Form.cs: Change SelectActiveControl to internal, we need to call it in
8972 * MdiWindowManager.cs: In RaiseActivated call SelectActiveControl to select
8973 active control when activate a new mdi window.
8977 2007-10-15 Everaldo Canuto <ecanuto@novell.com>
8979 * ComboBox.cs: Dont implicit add listbox_ctrl on OnHandleCreated because it
8983 2007-10-15 Jonathan Pobst <monkey@jpobst.com>
8985 * TextControl.cs: When SuspendRecalc is first called, reset the recalc_start
8986 to MaxValue and recalc_end to MinValue. Currently, recalc_start is always 1,
8987 so we always recalculate the whole document instead of just the new part.
8990 2007-10-15 Jonathan Pobst <monkey@jpobst.com>
8992 * LineTag.cs: Fix a case where the GetCharIndex would not return 0
8993 when the mouse was to the left of the first character in the line.
8995 2007-10-15 Jonathan Pobst <monkey@jpobst.com>
8997 * TextBox.cs, TextBoxBase.cs: When setting the document's password
8998 character, use the property instead of the variable so that the
8999 UseSystemPasswordChar property is taken into account.
9002 2007-10-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9004 * FolderBrowserDialog.cs: When a node is right clicked and the "New
9005 folder" contex menu appears, actually add the new folder to it, even
9006 if the node is not currently selected. Still use SelectedNode in case
9007 there wasn't found a node under the pointer.
9010 2007-10-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9012 * ListViewItem.cs: When retrieving the focused state, the index check
9013 should be done only when ListView is in virtualmode, as it is an
9014 expensive check for normal mode.
9016 2007-10-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9018 * ListViewItem.cs: Make the focus state information be stored
9019 in the ListView, not in the items. This is done to match the MS
9020 behaviour for items that are not yet part of a ListView control;
9021 besides that, since just one item can be focused at the same time,
9022 we save a little space in our items.
9023 Fixes part of #331643.
9025 2007-10-13 Gert Driesen <drieseng@users.sourceforge.net>
9027 * ComboBox.cs: When focus is lost, deselect the text. When setting
9028 text of control, select all text. Do not hide selection when control
9029 does not have focus. Fixes bug #333663.
9031 2007-10-13 Gert Driesen <drieseng@users.sourceforge.net>
9033 * TextBoxBase.cs: On 2.0 profile, throw ArgumentOutOFRangeException
9034 instead of ArgumentException when SelectionLength is set to negative
9035 value. Added same check to SelectionStart. Code formatting.
9037 2007-10-13 Gert Driesen <drieseng@users.sourceforge.net>
9039 * TextBoxBase.cs: Invalidate selection before changing SelectionLength
9040 or SelectionStart. Code formatting.
9042 2007-10-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9044 * TreeView.cs: drag_begin_x and drag_begin_y are now set to -1,
9045 indicating that there was not a previous drag-and-drop operation going
9047 Fixes part of #325071.
9049 2007-10-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9051 * X11Dnd.cs: When DragEventArgs.Effect is set to a value not part of
9052 AllowedEffect, don't let the drop operation happen.
9055 2007-10-12 Jonathan Pobst <monkey@jpobst.com>
9057 * TextRenderer.cs: Use GDI on Windows in both the 1.1 and 2.0 profiles.
9059 2007-10-12 Jonathan Pobst <monkey@jpobst.com>
9061 * Line.cs, LineTag.cs: Guard against an exception when Document.Clear
9064 2007-10-12 Jonathan Pobst <monkey@jpobst.com>
9066 * Line.cs: Add a method that finds the tag that contains an x-coord.
9067 * LineTag.cs: Add a method that finds the character at an x-coord using
9068 a binary search, the old way was a linear search.
9069 * TextControl.cs: Change FindCursor to use the above new methods.
9071 2007-10-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9073 * DragEventArgs.cs: Allow Effect to have a non allowed value (a
9074 value different than AllowedEffect). This should be possible to
9075 indicate that dragging is not possible in some control/area.
9077 2007-10-11 Jonathan Pobst <monkey@jpobst.com>
9079 * LineTag.cs: Encapsulate all variables with properties. Calculate ascent/
9080 descent internally when font changes instead of outside code being responsible
9082 * Line.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs: Use Tag properties
9083 instead of accessing internal variables.
9085 2007-10-09 Everaldo Canuto <ecanuto@novell.com>
9087 * MdiClient.cs: Always call ArrangeIconicWindows before any arrangement and
9088 remove special treatment for ArrangeIcons since it is already arranged.
9090 2007-10-09 Jonathan Pobst <monkey@jpobst.com>
9092 * TextBoxTextRenderer.cs: Draw takes a Color now instead of a Brush, as
9093 the Win32 backend uses Color.
9094 * Line.cs, LineTag.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs:
9095 Refactor to store a Color instead of a Brush for Color.
9097 2007-10-09 Jonathan Pobst <monkey@jpobst.com>
9099 * Line.cs, LineTag.cs: Override GetHashCode to make a compiler warning go
9100 away. I didn't realize I needed this when I refactored these earlier.
9102 2007-10-09 Jonathan Pobst <monkey@jpobst.com>
9104 * LineTag.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs: Refactor to
9105 store a Color structure and use the ResPool for back color instead of
9106 holding onto brushes.
9108 2007-10-09 Jonathan Pobst <monkey@jpobst.com>
9110 * TextControl.cs: Fix how we calculate the end of the tag we are drawing.
9113 2007-10-08 Jonathan Pobst <monkey@jpobst.com>
9115 * MonthCalendar.cs: When ShowWeekNumbers is changed, force the calendar
9116 to recalculate its size. Fixes a part of bug #331052.
9118 2007-10-08 Jonathan Pobst <monkey@jpobst.com>
9120 * NotifyIcon.cs: Set the correct mouse button when handling right mouse
9121 button. Fixes a part of bug #331052.
9123 2007-10-08 Jonathan Pobst <monkey@jpobst.com>
9125 * Form.cs: Trim NewLine before setting XPlatUI.SetText, and when setting
9127 * ThemeWin32Classic.cs: Trim NewLine before drawing MDI children window
9131 2007-10-08 Jonathan Pobst <monkey@jpobst.com>
9133 * TextBoxTextRenderer.cs: Don't make this a static class, as static
9134 doesn't exist in 1.1. (Thanks jb!)
9136 2007-10-08 Jonathan Pobst <monkey@jpobst.com>
9138 * TextBoxTextRenderer.cs: Abstract text measuring and drawing to this
9139 class to allow us to use different backends on different platforms.
9140 Linux uses the current [Draw|Measure]String backend. Windows uses
9141 the TextRenderer.[Draw|Measure]Text backend, which uses GDI instead
9142 of GDI+. This leads to better looking text and more accurate measurements
9143 on Windows, fixing many of the reported issues.
9144 * Line.cs, LineTag.cs: Update to use TextBoxTextRenderer.
9146 2007-10-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9148 * FolderBrowserDialog.cs: When running on Windows,
9149 try to detect paths such "C:" and add Path.DirectorySeparatorChar,
9150 since we must match both "C:" and "C:\" forms. A little hackish, but
9154 2007-10-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9156 * ListView.cs: When calling EndEdit (after editing an item),
9157 create a new instance of LabelEditEventArgs to keep clean the fields
9158 in case we get a new call to BeginEdit; also do Application.DoEvents
9159 to have focus in synch. This is a fix similar to TreeView's #325244.
9161 2007-10-07 Andreia Gaita <avidigal@novell.com>
9163 * HtmlDocument.cs, HtmlElement.cs, WebBrowser.cs: Added dom support
9164 * WebBrowserBase.cs: Added dialog support, calling the
9165 WebBrowserDialogs classes for each specific dialog type.
9167 2007-10-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9169 * ListView.cs: When the last item is focused and is removed,
9170 move the focus to the previous item (in Items order). This is what MS
9174 2007-10-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9176 * ListView.cs: In ListViewItemCollection, make Remove call RemoveAt,
9177 instead of the opposite (RemoveAt call Remove). This is a better
9178 approach since we don't need to to a pair of traversals when using
9181 2006-10-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9183 * TreeView.cs: When Keys.Left is pressed, before trying to Collapse
9184 check that the node actually has nodes, and if not, move to the
9185 parent node instead.
9188 2006-10-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9190 * TreeView.cs: Move the previous change to the general case (to
9191 call Application.DoEvents in cases where the method was called by
9194 2007_10-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9196 * TreeView.cs: When calling EndEdit and we need to hide the textbox,
9197 call Application.DoEvents. This is neccessary when we get a call to
9198 BeginEdit from an AfterLabelEdit handler, because the focus always
9199 goes to the TreeView, even if we try to give it to our
9200 LabelEditTextBox. The call do Application.DoEvents seems to
9201 synchronize the focus, basically.
9204 2007-10-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9206 * TreeView.cs: When AfterLabelEdit event is fired, TreeNode.IsEditing
9207 should be false. This also removes some nasty recursive paths. Fixes
9210 2007-10-04 Everaldo Canuto <ecanuto@novell.com>
9212 * MdiClient.cs: When cascade (layout) mdi window that is maximized, set the
9213 state to normal. Also resize window when cascading. Fixes #325433.
9215 2007-10-04 Jonathan Pobst <monkey@jpobst.com>
9217 * RichTextBox.cs: When SelectionColor is set to Color.Empty, use
9218 DefaultForeColor, as drawing empty colored lines isn't very useful.
9219 [Fixes the not drawn lines part of bug #324358]
9221 2007-10-04 Jonathan Pobst <monkey@jpobst.com>
9223 * TextControl.cs: Move Line and LineTag classes into separate files to
9224 make things easier to find.
9225 * Line.cs, LineTag.cs: Bring coding standards up to Mono's guidelines.
9226 * RichTextBox.cs: Capitalize LineTag.Length property access.
9227 - This is purely an organizational/formatting change, no logic changed. -
9229 2007-10-03 Everaldo Canuto <ecanuto@novell.com>
9231 * ThemeWin32Classic.cs: Do not show focus rectangle in radio buttons when
9234 2007-10-03 Everaldo Canuto <ecanuto@novell.com>
9236 * ThemeWin32Classic.cs: Do not show focus rectangle in checkboxes when
9239 2007-10-03 Everaldo Canuto <ecanuto@novell.com>
9241 * ComboBox.cs: On contructor use backgound_color instead of BackColor to
9242 prevent calling of OnBackColorChanged. Fixes #325321.
9244 2007-10-03 Everaldo Canuto <ecanuto@novell.com>
9246 * TextBox.cs: When check enabled uses Enabled property instead of is_enabled
9247 because control can be disabled because owner is disabled.
9249 2007-10-02 Jonathan Pobst <monkey@jpobst.com>
9251 * ComboBox.cs: For the 1.1 profile, the default SelectedText is
9252 string.Empty, test failed from previous change.
9254 2007-10-02 Jonathan Pobst <monkey@jpobst.com>
9256 * TextBoxBase.cs: For the 1.1 profile, the default SelectedText
9257 is null, not String.Empty. See bug #323038.
9259 2007-10-01 Jonathan Pobst <monkey@jpobst.com>
9261 * TextControl.cs: Change the margins to match MS a little better.
9262 Still not perfect for X11 due to some DrawString differences, but
9263 is still an improvement over the old stuff.
9264 Partially fixes #324467.
9266 2007-09-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9268 * FolderBrowserDialog.cs: When using MyComputer as
9269 RootFolder, let absolute paths be considered as valid ones. Also, use
9270 Path.DirectorySeparatorChar instead of Path.AltDirectorySeparatorChar,
9271 for Windows compatibility.
9272 Partially fixes #325247.
9274 2007-09-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9276 * FolderBrowserDialog.cs: Fix the recursive FindPathInNodes method.
9277 Also remove the stack.Count > 0 check in FBTreeView.SetSelectedNode
9278 method, since it causes the dialog to not select folders directly
9279 under the root path (when setting SelectedPath property).
9281 2007-09-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9283 * TreeNode.cs: When calling Expand/Collapse and need to call
9284 ExpandBelow/CollapseBelow respectively, take into account
9285 partially visible nodes (previously Expanding/Collapsing
9286 a partially visible node in the bottom was not updating its +- sign).
9288 2007-09-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9290 * TreeView.cs: When calling Expand on a TreeNode, and we need to
9291 expand nodes below (ExpandBelow), scroll the entire Viewport
9292 area if the node is above it and not visible (instead of scrolling
9293 the area from node's Bottom, which applies only when the node is
9297 2007-09-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9299 * TreeView.cs: When calling ExpandAll, set SelectedNode to the top
9300 node in the bottom area (as .Net does). This is done to preserve the
9301 scroll position when ExpandAll is called before handle is created for
9302 the 1.1 profile (bottom area, as opposed to top area in 2.0).
9305 2007-09-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9307 * TreeView.cs: When calling ExpandAll, don't move the scroll to the
9308 bottom area if we are in fact not using the vertical scroll bar.
9311 2007-09-27 Jonathan Pobst <monkey@jpobst.com>
9313 * Control.cs: Comment out a double buffering optimization that doesn't
9314 take into account invalidates created in OnPaint, causing the control
9315 to never be redrawn. It would take quite a bit of work to work around
9316 this, but I left it commented with an explanation for later possible
9320 2007-09-27 Jonathan Pobst <monkey@jpobst.com>
9322 * Control.cs: Ask parent to perform a layout if control is AutoSize and
9324 * RadioButton.cs: Implement GetPreferredSizeCore.
9327 2007-09-26 Jonathan Pobst <monkey@jpobst.com>
9329 * RichTextBox.cs, TextBoxBase.cs, WindowsFormsSynchronizationContext.cs:
9332 2007-09-26 Jonathan Pobst <monkey@jpobst.com>
9334 * Application.cs: Move the sync context stuff to Run instead of RunLoop
9335 so that it doesn't get uninstalled on modal forms.
9336 * Control.cs: Install a sync context when a control is created.
9337 * WindowsFormsSyncronizationContext.cs: Create a private static control
9338 to invoke on. This is easier than trying to find a created control we
9342 2007-09-25 Jonathan Pobst <monkey@jpobst.com>
9344 * Application.cs: Install a WindowsFormsSynchronizationContext in the
9345 run loop, and uninstall it when done.
9346 * WindowsFormsSynchronizationContext.cs: Implement.
9347 [Fixes the common case in bug #327608]
9349 2007-09-23 Gert Driesen <drieseng@users.sourceforge.net>
9351 * DataGridViewCellCollection.cs: Added argument checks for indexers.
9352 Use case-insensitive lookup of column name in indexer. Code
9355 2007-09-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9357 * TreeNode.cs: When collapsing or expanding a node, check whether its
9358 change will affect the visible area (we were previously doing a
9359 IsVisible check, but that check is not enough since children nodes
9360 could be still visible). Fixes part of #325266.
9362 2007-09-21 Jonathan Pobst <monkey@jpobst.com>
9364 * TreeView.cs: Always select the first node when the TreeView gets
9365 focus if there is no currently selected node.
9368 2007-09-21 Jonathan Pobst <monkey@jpobst.com>
9370 * TreeView.cs: Do not raise BeforeSelect or AfterSelect when the
9371 node being selected is null.
9372 [Patch from Yves Bastide fixes bug #326858]
9374 2007-09-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9376 * TreeNode.cs: Add an internal ArePreviousNodesExpanded, to know
9377 whether all the parent nodes are expanded.
9378 * TreeNodeCollection.cs: When adding a new node an calling SetupNode,
9379 call RecalculateVisibleOrder if all previous nodes are expanded.
9380 Before that we were doing a IsVisible check, but sometimes the node
9381 is not in the visible area, but _should_already be ready, because of
9382 all previous nodes are expanded. Fixes #325259.
9384 2007-09-20 Jonathan Pobst <monkey@jpobst.com>
9386 * ToolStripSplitButton.cs: Call the ButtonClick event if the button
9387 portion of the item is clicked.
9389 2007-09-20 Jonathan Pobst <monkey@jpobst.com>
9391 * TextControl.cs: Do not tell the system to move the cursor if the
9392 textbox isn't focused. Fixes part of bug #322668.
9394 2007-09-20 Jonathan Pobst <monkey@jpobst.com>
9396 * ComboBox.cs: When there are no items, do not show the dropdown if
9397 the down arrow is clicked. Fixes part of bug #322668.
9399 2007-09-20 Jonathan Pobst <monkey@jpobst.com>
9401 * ToolStripComboBox.cs: Manually set the size of this control in the
9402 constructor, as it doesn't seem to be the same as DefaultSize.
9403 Fixes a failing monobuild test.
9405 2007-09-19 Jonathan Pobst <monkey@jpobst.com>
9407 * DateTimePicker.cs: If the user sets MinDate to DateTime.MinValue,
9408 change it to DateTimePicker.MinDateTime. [Fixes bug #326609]
9410 2007-09-19 Jonathan Pobst <monkey@jpobst.com>
9412 * Theme.cs: FileDialogs should be using DesktopDirectory instead of
9413 Desktop. This lets it work for people who have moved their desktops
9414 from the default location on windows. For people who have not, both
9415 values are the same, so it shouldn't hurt anything. [Fixes bug #325270]
9417 2007-09-18 Jonathan Pobst <monkey@jpobst.com>
9419 * ToolStripControlHostTest.cs: DefaultSize is based off hosted control,
9420 but when the base constructor sets this, the control is null. Set it
9421 again in the constructor. Fixes a failing monobuild test.
9423 2007-09-18 Jonathan Pobst <monkey@jpobst.com>
9425 * ToolStripDropDownItem.cs: Make sure Click and DropDownOpened events
9427 * ToolStripSplitButton.cs: Make sure MouseDown and MouseUp events get
9430 2007-09-18 Jonathan Pobst <monkey@jpobst.com>
9432 * ToolStrip.cs: Don't show tooltips for ToolStripTextBoxes, they
9433 will handle it themselves.
9434 * ToolStripItem.cs: When deciding what the text of a tooltip should
9435 be, use the Text property instead of the text field.
9436 * ToolStripTextBox.cs: Handle tooltips.
9437 [Fixes bugs #325417 and #325973]
9439 2007-09-18 Jonathan Pobst <monkey@jpobst.com>
9441 * ToolStripDropDownButton.cs: Only drop down overflow menu with a
9442 left click. Fixes the easy part of bug #325969.
9444 2007-09-18 Jonathan Pobst <monkey@jpobst.com>
9446 * ToolStrip.cs: Set AutoSizeMode back to GrowAndShrink to refix
9447 bug #325406, but set a minimum for StatusStrip to 22 to keep
9448 bug #325390 fixed. I think this minimum would have been figured
9449 up automatically if the grip was actually a ToolStripItem, but it
9452 2007-09-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9454 * ListView.cs: max_label_wrapping is now 30 pixels instead of 38,
9455 as this is apparently the actual value used by .Net. Also apply
9456 ItemPadding in Details view only, and decrease the general width padding,
9457 to have only the needed. This should fix #324340 in Windows too.
9459 2007-09-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9461 * ListViewItem.cs: Don't Invalidate item if parent is inside
9462 a BeginUpdate/EndUpdate block. This prevents to have differences
9463 between the ListView and items state, as well as avoid some exceptions
9465 * ListView.cs: Make 'updating' field internal.
9467 2007-09-17 Jonathan Pobst <monkey@jpobst.com>
9469 * ToolStripControlHost.cs: Realign control when ControlAlign changes.
9470 * ToolStripItem.cs: Use ImageScalingSize when calculating preferred
9471 size if appropriate.
9472 Fixes reopened bug #325414.
9474 2007-09-17 Jonathan Pobst <monkey@jpobst.com>
9476 * ToolStrip.cs: Set AutoSizeMode back to GrowOnly.
9477 * ToolStripItem.cs: Invalidate before and after our new autosize when
9479 Fixes reopened bug #325390.
9481 2007-09-17 Jonathan Pobst <monkey@jpobst.com>
9483 * ToolStripMenuItem.cs: Make sure we invalidate when clicked so
9484 mnemonics can be drawn or undrawn correctly. Fixes reopened bug
9487 2007-09-17 Jonathan Pobst <monkey@jpobst.com>
9489 * Control.cs: Do WM_CONTEXTMENU before OnMouseUp. [Fixes bug #325535]
9491 2007-09-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9493 * ColumnHeader.cs: When drawing column text, use EllipsisCharacter
9494 instead of EllipsisWord (by equistango at gmail.com). Fixes part of
9497 2007-09-14 Jonathan Pobst <monkey@jpobst.com>
9499 * ToolStrip.cs: Make ToolStrip selectable when TabStop = true. Find an
9500 item to select when the ToolStrip is selected.
9501 * ToolStripControlHost: Realign the control when the bounds or visibility
9503 * ToolStripItem.cs: When selected, if it's a control host, focus the control.
9504 * ToolStripOverflow.cs: When laying out the drop down, respect the item's
9506 * ToolStripTextBox.cs: OnPaintInternal should call base.OnPaintInternal, not
9507 base.OnPaint. Was causing text not to be drawn.
9509 2007-09-14 Jonathan Pobst <monkey@jpobst.com>
9511 * SplitterPanel.cs: Ignore attempts to set AutoSizeMode.
9513 2007-09-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9515 * TreeView.cs: When creating the label edit text box,
9516 set is initially to Visible = false. This is done to
9517 prevent a confusion in the layout which makes it to lose
9518 focus when shown the first time. Fixes part of #82592.
9520 2007-09-13 Andreia Gaita <avidigal@novell.com>
9522 * WebBrowserBase.cs: add FocusOption enumeration for finer focus control
9524 2007-09-13 Jonathan Pobst <monkey@jpobst.com>
9526 * ToolStrip.cs: Take Margin into account when calculating preferred
9527 size. Also, allow preferred size to get smaller than the explicit
9529 * ToolStripTextBox.cs: Don't change the GetPreferredSize implementation.
9530 First step towards fixing bug #82747.
9532 2007-09-13 Jonathan Pobst <monkey@jpobst.com>
9534 * TreeView.cs: Applied patch from latency@gmx.de to not paint the
9535 full row select background over the plus/minus glyph. Also, turn
9536 off the focus rectangle for full row select since MS doesn't seem
9537 to ever paint it. [Fixes bug #81839]
9539 2007-09-13 Jonathan Pobst <monkey@jpobst.com>
9541 * ToolStrip.cs: Don't FocusInternal if there is no selected item.
9542 This was causing keyboard opened dropdowns to lose focus.
9545 2007-09-13 Jonathan Pobst <monkey@jpobst.com>
9547 * Control.cs: If Rectangle.Empty is passed to Invalidate, use
9548 ClientRectangle instead. [Fixes bug #82838]
9550 2007-09-13 Jonathan Pobst <monkey@jpobst.com>
9552 * SplitContainer.cs: We can't reset Visible on every layout because
9553 someone may have set Visible = false explicitly on a SplitterPanel.
9554 Make sure when we switch orientation the SplitterDistance does not
9555 change. Fixes two failing tests.
9557 2007-09-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9559 * TreeView.cs: Use MeasureTextInternal instead of MeasureText in
9560 TextRenderer, since the latter is only available in 2.0.
9562 2007-09-13 Ivan N. Zlatev <contact@i-nz.net>
9564 * Cursor.cs: Fix Cursor.Current to apply Cursor.Default.
9565 * SplitContainer.cs: Implement FixedPanel layouting.
9567 2007-09-12 Andreia Gaita <avidigal@novell.com>
9569 * WebBrowserBase.cs: setup shutdown routine
9571 2007-09-12 Andreia Gaita <avidigal@novell.com>
9573 * Application.cs: Let keyboard events that are targetted
9574 to non-mwf windows hosted inside mwf (as in, webbrowser),
9575 propagate properly. Fixes keyboard handling on the webbrowser.
9577 2007-09-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9579 * ListView.cs: When handling MouseUp event and we are
9580 highligting a node with the mouse right button, don't trigger
9581 Before/AfterSelecting event, since we are not actually selecting
9584 2007-09-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9586 * TreeView.cs: When editing a node, modify the edit text box
9587 depending on the text length (as you are typing), like MS does.
9589 2007-09-12 Jonathan Pobst <monkey@jpobst.com>
9591 * ToolStrip.cs: Fixup preferred size calculations for vertical toolbars.
9592 Override GetPreferredSizeCore to perform calculations. Remove custom
9593 autosize logic. [Fixes bug #82739]
9595 2007-09-12 Jonathan Pobst <monkey@jpobst.com>
9597 * TextBoxBase.cs: Modified should default to false.
9599 2007-09-11 Jonathan Pobst <monkey@jpobst.com>
9601 * Control.cs: Update the anchoring distances even when layout is supspended.
9602 Patch provided by George fixes bug #82805.
9604 2007-09-11 Jonathan Pobst <monkey@jpobst.com>
9606 * Control.cs: Provide a setter for ExplicitHeight.
9607 * TextBoxBase.cs: Now that we have the implementation for explicit heights,
9608 remove the hacks in here for requested_height.
9611 2007-09-11 Jonathan Pobst <monkey@jpobst.com>
9613 * ScrollBar.cs: Fix an issue reported on the lists where setting a scrollbar's
9614 Maximum to lower that its current Value caused an ArgumentException by setting
9615 the Value to the new Maximum.
9617 2007-09-11 Jonathan Pobst <monkey@jpobst.com>
9619 * ThemeWin32Classic.cs: Math is hard! Fix some math so that the TrackBar
9620 handle moves to the closest tick when it is being dragged.
9623 2007-09-11 Jonathan Pobst <monkey@jpobst.com>
9625 * ToolStripManager.cs: When we have added MDI buttons onto a MenuStrip, we
9626 can't let them count as real items when calculating where to merge in the
9627 user's items. [Fixed bug #82786]
9629 2007-09-10 Jonathan Pobst <monkey@jpobst.com>
9631 * ToolStripMenuItem.cs: Add a parent type check so we don't crash on people
9632 who want to add a menu item directly onto a toolstrip.
9633 [Fixes bug #82775, part II]
9635 2007-09-10 Jonathan Pobst <monkey@jpobst.com>
9637 * StatusStrip.cs: Synchronize SetDisplayedItems with the ToolStrip version.
9638 * ToolStrip.cs: If a ToolStripItem set to not visible is added to a ToolStrip,
9639 don't set it to available.
9640 * ToolStripItem.cs: When Visible is changed, tell the owner to perform a layout.
9641 [Fixes bug #82727, part II]
9643 2007-09-10 Jonathan Pobst <monkey@jpobst.com>
9645 * StatusStrip.cs: Change item placement to None if not visible.
9646 * ToolStripItem.cs: Invalidate when InternalVisible changes.
9647 These should have been committed to fix 82723, but I missed them.
9649 2007-09-10 Jonathan Pobst <monkey@jpobst.com>
9651 * ToolStrip.cs: Make sure ItemClicked is raised before the ToolStripItem's
9652 Click, and that it is only called once.
9653 * ToolStripMenuItem.cs: Call OnClick even when there are dropdown items.
9654 * ToolStripDropDownItem.cs: Override HandleItemClick so dropdowns stay
9658 2007-09-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9660 * ColumnHeaderSample.cs: Use 5 pixels as extra height instead of 8
9662 * ThemeWin32Classic.cs: For the columns text, use 5 pixels as left padding
9663 instead of 8, just like above. Partially fixes #82734.
9665 2007-09-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9667 Patch by Ernesto Carrea <equistango at gmail.com>. Partially
9670 * ListView.cs: Remove extra space between rows in Details view (match
9672 * ThemeWin32Classic.cs: Header text should use ListView.Font, not
9675 2007-09-08 Gert Driesen <drieseng@users.sourceforge.net>
9677 * Application.cs: Modified ProductVersion to return value of
9678 AssemblyInformationVersion if available, and fallback to assembly
9679 version. Fixes bug #82746. Code formatting.
9680 * BindingSource.cs: Remove NIE from Dispose, and mark it MonoTODO
9683 2007-09-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9685 * Control.cs: When updating ZOrder for a child control,
9686 take into account the implicit ones (we need it in our controls
9687 using them). Fixes #82642.
9689 2007-09-07 Jonathan Pobst <monkey@jpobst.com>
9691 * ToolStripItem.cs: Add support for animated images.
9694 2007-09-07 Jonathan Pobst <monkey@jpobst.com>
9696 * ToolStrip.cs: Make sure we aren't drawing anything that isn't
9697 visible. [Fixes bug #82727]
9699 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
9701 * ToolStripItem.cs: If AutoSize changes the size of our item, invalidate
9702 so we repaint using the new size. [Fixes bug #82723]
9704 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
9706 * TreeView.cs: If ShowLines is true, we should ignore the FullRowSelect
9707 option. [Fixes bug #81779]
9709 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
9711 * TreeView.cs: Override HandleClick because the StandardClick style is
9712 set to false. According to MSDN (and testing), the click events should
9713 only be raised when the click occurs on a TreeNode. [Fixes bug #81739]
9715 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
9717 * ToolStripTextBox.cs: Invalidate our textbox when it loses focus, so
9718 the border will disappear. Fixes reopened #82653.
9720 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
9722 * Control.cs: If the control is autosize, and its preferred size changes
9723 when it lays out its children, tell its parent so it can be re-layed out.
9724 Fixing some of the fallout from r85433.
9726 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
9728 * ThemeWin32Classic.cs: Fix a NRE caused by r85427 because RadioButton
9729 and CheckBox share some code.
9731 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
9733 * TrackBar.cs: Only call OnScroll if we actually changed the Value of
9734 the TrackBar, not every mouse move. [Fixed bug #82718]
9736 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
9738 * ThemeWin32Classic.cs: Allow a CheckBox to be rendered like a Button
9739 under 2.0 rendering. [Fixes bug #82657]
9741 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
9743 * TreeView.cs: If we found a TreeNode to display a context menu, but
9744 it doesn't have one to show, let the TreeView display its menu
9745 instead. [Fixes bug #82680]
9747 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
9749 * ToolStripTextBox.cs: TextBox no longer call OnPaint, we need to use
9750 OnPaintInternal instead. Give the internal TextBox a Border property
9751 so it can draw itself more correctly. [Fixes bug #82653]
9753 2007-09-06 Zoltan Varga <vargaz@gmail.com>
9755 * HtmlHistory.cs HtmlWindow.cs HtmlWindowCollection.cs ListBindingHelper.cs WindowsFormsSection.cs WindowsFormsSynchronizationContext.cs: Stubs for missing 2.0 classes.
9757 2007-09-05 Everaldo Canuto <everaldo@simios.org>
9759 * ComboBox.cs: Adjust combobox button state to reflect current state when
9760 back to enabled = true. Fixes first issue of #82654.
9762 2007-09-05 Everaldo Canuto <everaldo@simios.org>
9764 * Control.cs: Fix last patch regression, prevent forms to update zorder when
9765 setting visible property.
9767 2007-09-05 Everaldo Canuto <everaldo@simios.org>
9769 * Control.cs: Update zorder after control creation in SetVisibleCore, it
9770 fix zorder for controls initially created as non visible. Fixes #82667.
9772 2007-09-04 Everaldo Canuto <everaldo@simios.org>
9774 * ThemeWin32Classic.cs: Adjust checkbox light color to ControlLightLight to
9775 mimic win32 look. Fixes #82656.
9777 2007-09-01 Zoltan Varga <vargaz@gmail.com>
9779 * FileDialogCustomPlace.cs FileDialogCustomPlacesCollection.cs:
9780 Stubs for new net 3.5 classes.
9782 2007-08-31 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9784 * ListViewItem.cs: In ListViewItemCollection operations calculate
9785 Layout for owner as well as invalidate it. Fixes part of #82642.
9787 2007-08-31 Jonathan Pobst <monkey@jpobst.com>
9789 * ToolStripItem.cs: Take Parent/Owner's Enabled state in to account
9790 when returning Enabled. [Fixes bug #82651]
9792 2007-08-30 Everaldo Canuto <everaldo@simios.org>
9794 * ToolBar.cs: Fix button size for non flat toolbars. Fixes #82368.
9796 2007-08-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9798 * ListView.cs: Put item padding info in a single place
9799 (Theme.ListViewItemPaddingWidth) to have working AutoResize on
9801 * ThemeWin32Classic.cs:
9802 * Theme.cs: Likewise.
9804 2007-08-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9806 * ListView.cs: When a ListViewSubItem instance is invalidated,
9807 invoke Invalidate on parent ListViewItem, not parent ListView.
9810 2007-08-30 Jonathan Pobst <monkey@jpobst.com>
9812 * ListView.cs, ListViewItem.cs: corcompare stuffs.
9814 2007-08-30 Jonathan Pobst <monkey@jpobst.com>
9816 * BindingMemberInfo.cs: Implement == and != operators.
9818 2007-08-30 Jonathan Pobst <monkey@jpobst.com>
9820 * HtmlElementEventArgs.cs: Implement properties.
9822 2007-08-29 Jonathan Pobst <monkey@jpobst.com>
9824 * HtmlElementErrorEventArgs.cs, HtmlElementErrorEventHandler.cs: Added.
9826 2007-08-29 Jonathan Pobst <monkey@jpobst.com>
9828 * TabControl.cs: I was looking into the MonoTODO on TabPageCollection.
9829 Add (string,string,string) to implement the imagekey. It turns out, we
9830 use the requested imagekey whereas .Net does not. So I broke ours to match
9833 2007-08-29 Jonathan Pobst <monkey@jpobst.com>
9835 * Form.cs, UserControl.cs: Override ValidateChildren, AutoValidate.
9837 2007-08-29 Jonathan Pobst <monkey@jpobst.com>
9839 * ContainerControl.cs: Implement ValidateChildren and new Validate overload.
9841 2007-08-29 Gert Driesen <drieseng@users.sourceforge.net>
9843 * FolderBrowserDialog.cs: Set Tag of newly created node, and keep it
9844 up-to-date. Fixes bug #82618.
9846 2007-08-29 Everaldo Canuto <everaldo@simios.org>
9848 * TextBoxBase.cs: Call CalculateDocument after changes Lines property to
9849 reflect document changes. Fixes #82367.
9851 2007-08-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9853 * ListView.cs: Add/fix some override differences between 1.1 and 2.0,
9854 as well as add new ones. This should make work the BackgroundImage
9855 property for ListView again.
9857 2007-08-28 Jonathan Pobst <monkey@jpobst.com>
9859 * DataGrid.cs, DataGridViewButtonColumn.cs, DataGridViewCheckBoxColumn.cs,
9860 DataGridViewComboBoxColumn.cs, DataGridViewImageColumn.cs, DataGridViewLinkColumn.cs,
9861 DataGridViewTextBoxColumn.cs, ToolTip.cs: corcompare stuffs.
9863 2007-08-28 Jonathan Pobst <monkey@jpobst.com>
9865 * Control.cs, XPlatUI.cs, XPlatUIDriver.cs, XPlatUIWin32.cs: Implement
9868 2007-08-28 Jonathan Pobst <monkey@jpobst.com>
9870 * Cursor.cs: Add HotSpot, hook into XPlatUI.GetCursorInfo.
9871 * XPlatUIWin32.cs: Implement hotspot lookup in GetCursorInfo.
9873 2007-08-28 Jonathan Pobst <monkey@jpobst.com>
9875 * RadioButton.cs: Use 2.0 rendering. Use base implementation of TextAlign.
9876 * Theme.cs, ThemeWin32Classic.cs: Implement 2.0 rendering for RadioButton.
9878 2007-08-27 Ivan N. Zlatev <contact@i-nz.net>
9880 * CursorConverter.cs: Implement conversion to InstanceDescriptor.
9882 2007-08-27 Ivan N. Zlatev <contact@i-nz.net>
9884 * GridEntry.cs: Implement GetService.
9886 2007-08-27 Jonathan Pobst <monkey@jpobst.com>
9888 * LabelEditTextBox.cs, TreeView.cs: After hiding the textbox used
9889 for label editting, make sure we focus back on the TreeView.
9892 2007-08-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9894 * ListView.cs: Add some 2.0 overrides.
9896 2007-08-27 Everaldo Canuto <ecanuto@novell.com>
9898 * Form.cs: Uses opacity var instead of Opacity property in CreateHandle
9899 because getter dont returns right value before handle creation. Thanks
9900 to George. Fixes #82569.
9902 2007-08-27 Everaldo Canuto <ecanuto@novell.com>
9904 * Theme.cs: Revert last patch, it causes error under win32.
9906 2007-08-27 Everaldo Canuto <ecanuto@novell.com>
9908 * Theme.cs: Uses Environment.SpecialFolder.DesktopDirectory instead of
9909 Environment.SpecialFolder.Desktop in Places method, Desktop returns the
9910 logical Desktop rather than the physical file system location. Fixes #82603.
9912 2007-08-26 Everaldo Canuto <ecanuto@novell.com>
9914 * MessageBox.cs: Add clipboard copy (ctrl+c) to messagebox. Thanks Andy Hume
9915 for the patch. Fixes #82568.
9917 2007-08-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9919 * ListView.cs: Add a pair of missing 2.0 ListViewItemCollection.Insert
9922 2007-08-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9924 * ListViewInsertionMark.cs: New stubbed class.
9926 2007-08-25 Gert Driesen <drieseng@users.sourceforge.net>
9928 * FolderBrowserDialog.cs: When adding folder, immediately create the
9929 directory with temporary name and rename the directory when editing
9930 finishes. This matches MS. Ensure the node for the new folder is
9931 selected and LabelEdit is disabled, when editing is either finished
9934 2007-08-25 Gert Driesen <drieseng@users.sourceforge.net>
9936 * TreeView.cs: When editing label of node, ensure node is visible.
9938 2007-08-25 Ivan N. Zlatev <contact@i-nz.net>
9940 * PropertyGridView.cs: Set the value only if it has changed.
9942 2007-08-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9944 * ListView.cs: Some more code refactoring to add support sorting
9945 with groups (now for Details view). Remove unused code also.
9947 2007-08-24 Jonathan Pobst <monkey@jpobst.com>
9949 * NodeLabelEditEventArgs.cs: EndEdit immediately when CancelEdit is called.
9950 Not a big fan of reacting immediately to a field in an EventArg, but that's
9951 the way it's done. (This is part of the previous commit that got left out.)
9953 2007-08-25 Gert Driesen <drieseng@users.sourceforge.net>
9955 * FolderBrowserDialog.cs: Removed need for separate description field.
9956 Replaced "" with string.Empty. Fixed tabindex. Ensure OK button
9957 has focus when dialog box is displayed again, regardless of what
9958 button was pressed the previous time. Set RootFolder and SelectedPath
9959 each time dialog box is displayed. This ensures the treeview is
9960 refreshed, and fixes bug #82579. Do no hide selected node in TreeView
9961 when it does not have focus. Added support for more special folders.
9963 2007-08-24 Jonathan Pobst <monkey@jpobst.com>
9965 * TreeView.cs: Create a CancelEdit method. Clone the edit_args in EndEdit
9966 before calling AfterLabelEdit. If the user calls BeginEdit in that event,
9967 it resets the edit_args.
9968 * TreeNode.cs: Call CancelEdit if the user passes cancel = true to EndEdit.
9971 2007-08-24 Gert Driesen <drieseng@users.sourceforge.net>
9973 * FolderBrowserDialog.cs: Modifies form caption and text of new folder
9974 button to match MS. Provide more meaningful exception message for
9975 invalid RootFolder value. Use zero-length string when SelectedPath
9976 is set to null. Allow non-rooted paths in SelectedPath, but ignore
9977 them in FolderBrowserTreeView. Allow folders to be created in
9978 RootFolder. Fixes bug #82576.
9980 2007-08-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9982 * ListView.cs: Correctly compute the layout_ht (height) when using groups,
9983 since we need to take into account the group headers and the margin
9985 * ListViewGroup.cs: Add a rows field to store the number of rows per
9988 2007-08-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
9990 * DateTimePicker.cs: The MS' MTB has a really stupid year formatting.
9991 Anyways, let's just follow the lead.
9993 2007-08-24 Jonathan Pobst <monkey@jpobst.com>
9995 * CheckBox.cs: Set the AutoSizeMode to GrowAndShrink.
9996 * Form.cs, GroupBox.cs: Don't skip Right or Bottom anchored
9997 controls in GetPreferredSizeCore.
9998 * ThemeWin32Classic.cs: Tweak text drawing of CheckBoxes.
10001 2007-08-24 Jonathan Pobst <monkey@jpobst.com>
10003 * PrintDialog.cs: Need to instantiate the form variable here too.
10005 2007-08-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10007 * ListView.cs: Do some reorganization to support sorting in groups,
10008 by doing the layout sequentially in ListView.Items. Also add support
10009 for the Default Group, which should be available for items with no
10011 * ListViewGroup.cs: Add support for DefaultGroup. Include new members
10012 for storing layout info also.
10013 * ListViewGroupCollection.cs: Add a DefaultGroup as part of the
10014 collection, as well as providing internal members to do a traversal
10015 including the default group (needed when doing layout/drawing).
10016 * ThemeWin32Classic.cs: When drawing group headers use internal
10017 ListViewGroupCollection members to take into account the default
10020 2007-08-23 George Giolfan <georgegiolfan@yahoo.com>
10022 * FlowLayoutPanel.cs: Add GetPreferredSizeCore. [Fixes bug #82537]
10024 2007-08-23 Jonathan Pobst <monkey@jpobst.com>
10026 * TreeView.cs: IsInputKey: don't ask for any keys if the handle hasn't
10027 been created. If handle is created, we want arror keys. If we are editing
10028 a node, we want things like enter, esc, home, end, page up, page down.
10029 Allows Esc to work for FolderBrowserDialog.
10031 2007-08-23 Jonathan Pobst <monkey@jpobst.com>
10033 * ColorDialog.cs, FontDialog.cs: Set the form's CancelButton so that
10034 they close when ESC is pressed. Thanks Andy!
10036 2007-08-23 Jonathan Pobst <monkey@jpobst.com>
10038 * CommonDialog.cs: Do not instantiate form, leave that for derived classes.
10039 This way we can tell if this is a CommonDialog provided with mono, or one
10040 that is being implemented outside by a developer. If it is an external one,
10041 the developer is responsible for showing their own form. We were showing
10042 our blank form after the developer showed his.
10043 * ColorDialog.cs, FileDialog.cs, FolderBrowserDialog.cs, FontDialog.cs,
10044 PageSetupDialog.cs: Instantiate form variable in our constructor.
10047 2007-08-23 Jonathan Pobst <monkey@jpobst.com>
10049 * ListBox.cs, ListView.cs, TreeView.cs: Override IsInputCharInternal
10050 and always return true. [Fixes bug #81616]
10052 2007-08-23 Jonathan Pobst <monkey@jpobst.com>
10054 * TextBoxBase.cs: Allow 2.0 AutoSize to change the height of the
10055 TextBox. [Fixes bug #82549]
10057 2007-08-23 Gert Driesen <drieseng@users.sourceforge.net>
10059 * FileDialog.cs: When Save/Open is clicked and no filename is selected
10060 or entered then do not close the dialog. Fixes bug #82539. Removed
10063 2007-08-22 Everaldo Canuto <ecanuto@novell.com>
10065 * FileDialog.cs: Create UpdateRecentFiles and move the recent files refresh
10066 code to this method. It is calling every time filter changes. This method
10067 will help to fix the bug #80887.
10069 2007-08-22 Jonathan Pobst <monkey@jpobst.com>
10071 * CheckBox.cs: Implement AutoSize calculation.
10073 2007-08-22 Jonathan Pobst <monkey@jpobst.com>
10075 * CheckBox.cs: Use new 2.0 rendering for 2.0.
10076 * Theme.cs: Method declarations for 2.0 rendering path.
10077 * ThemeWin32Classic.cs: 2.0 rendering implementation for CheckBox.
10079 2007-08-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10081 * ListViewGroupCollection.cs: Fix a typo of the previous patch.
10083 2007-08-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10085 * ListViewGroupCollection.cs: Implement AddRange the right way, to
10086 only call Redraw on the parent one time.
10088 2007-08-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
10090 * DataGridViewRowHeaderCell.cs, DataGridViewColumnHeaderCell.cs: Implemented
10091 GetClipboardContent.
10092 * DataGridViewCell.cs: Implemented GetClipboardContent,
10093 GetEditedFormattedValue, GetFormattedValue.
10094 * DataGridView.cs: Implemented GetClipboardContent, TopLeftHeaderCell.
10096 2007-08-21 Jonathan Pobst <monkey@jpobst.com>
10098 * TableLayoutStyleCollection.cs: corcompare fix.
10100 2007-08-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
10102 * DataObject.cs: Implemented retrieval of convertible / not convertible
10105 2007-08-21 Jonathan Pobst <monkey@jpobst.com>
10107 * ToolStripItem.cs: When changing the item's text, invalidate before we resize
10108 ourselves. This ensures the entire old bounds are repainted, in case our new
10109 size is smaller. [Fixes bug #82518]
10111 2007-08-20 Everaldo Canuto <ecanuto@novell.com>
10113 * XplatUIX11.cs: Apply patch from #81588, it makes use of PointerMotionHintMask
10114 flag to make fast handle of mouse events, without this the mouse move is
10115 handled in some manner, whether it is a mouse move or not. Fixes #81588.
10117 2007-08-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10119 * ListView.cs: When doing layout calculations don't use a ref
10120 param to keep the current item; instead use its Index value (this
10121 is specially important when doing the layout with Groups
10122 and Items being sparse). Also don't take into account items added to
10123 the Group but not yet added to the main ListView.Items collection.
10125 2007-08-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10127 * ListViewGroupCollection.cs: Forgot to mimic an issue
10128 in the indexer (don't assign the ListView owner for new values).
10130 2007-08-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10132 * ListViewGroupCollection.cs: Make the string indexer use
10133 the int based indexer to re-use code, instead of duplicate the code.
10134 Also Redraw as needed and take into account null values.
10136 2007-08-20 Jonathan Pobst <monkey@jpobst.com>
10138 * StatusStrip.cs: Make sure the item's parent gets set in SetDisplayedItems.
10141 2007-08-20 Jonathan Pobst <monkey@jpobst.com>
10143 * ToolStrip.cs: Add some logic to un-focus controls in ToolStripControlHosts
10144 when other buttons are clicked or navigated to.
10146 2007-08-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
10148 * XplatUIX11.cs: Treat toolwindows as if they had no window manager, since
10149 it's XplatUIX11 that attaches them.
10151 2007-08-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
10153 * DataGridView.cs: If a column has been added, recreate the editing row.
10156 2007-08-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
10158 * TextControl.cs: Use Math.Max instead of Math.Min when deciding the length
10159 of the tag to draw. Makes disappearing text show up again.
10161 2007-08-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
10163 * StatusBar.cs: Take into account any icons when a panel has AutoSize =
10164 Contents. Fixes #82487.
10166 2007-08-19 Andreia Gaita <avidigal@novell.com>
10168 * Added HtmlElement.cs, HtmlElementCollection.cs,
10169 HtmlElementEventArgs.cs, HtmlElementEventHandler.cs
10171 2007-08-19 Andreia Gaita <avidigal@novell.com>
10173 * BindingSource.cs: Implement this, dispose and getenumerator.
10174 * DataGridViewRowCollection.cs: Move the InvalidOperationException
10175 out of AddInternal, throw it only on public Add calls. The
10176 UsingWebBrowser sample was blowing up with this when setting the
10177 DataSource after adding DataBindings, so it's likely that .net
10178 only throws this exception when Add is called directly.
10180 * ToolStripControlHost.cs: Return the hosted control's text
10181 property, and not the ToolStripItem one (it would always return
10182 the initial value).
10184 * HtmlDocument.cs: Implement GetElementById and All
10185 * WebBrowser.cs: Remove exception on set_DocumentStream.
10187 2007-08-19 Everaldo Canuto <ecanuto@novell.com>
10189 * Form.cs: Fix the max and min value for opacity (0~1).
10191 2007-08-19 Everaldo Canuto <ecanuto@novell.com>
10194 * DataGridTableStyle.cs: Default header font is now null, on getter it
10195 returns datagrid font when is null. On setter permits null.
10198 - When ResetHeaderFont set header font to null.
10199 - On EndInit set grid_style.DataGrid.
10201 2007-08-19 Everaldo Canuto <ecanuto@novell.com>
10203 * TabControl.cs: Fix regression in default padding x.
10205 2007-08-19 Everaldo Canuto <ecanuto@novell.com>
10207 * TabControl.cs: Fix tab page text area removing padding. Fixes #82471.
10209 2007-08-19 Everaldo Canuto <ecanuto@novell.com>
10211 * TabControl.cs: Fix first tab drawing, when selected it must have x = 0
10212 not 2. Fixes #82229.
10214 2007-08-18 Everaldo Canuto <ecanuto@novell.com>
10216 * TabControl.cs: Fix tab size when image height is less than text height.
10217 Partially fixes #81837.
10219 2007-08-18 Everaldo Canuto <ecanuto@novell.com>
10221 * Form.cs: Add WS_EX_CONTROLPARENT to forms to make it selectable using
10222 "alt + tab". It works only for Win32, for X11 theres no way to remove window
10223 from taskbar and keep it on "alt_tab". Fixes #81722.
10225 2007-08-18 Everaldo Canuto <ecanuto@novell.com>
10227 * XplatUIX11.cs: Apply patch from Jurek Bartuszek to fix DrawReversibleFrame
10228 and DrawReversibleLine, also apply same behavior to FillReversibleRectangle.
10229 Fixes #80877 and #79418.
10231 2007-08-18 Everaldo Canuto <ecanuto@novell.com>
10233 * MenuAPI.cs: Fix popup menu position when the size is larger than distance
10234 between position and one of the screen borders. Fixes #82349.
10236 2007-08-18 Everaldo Canuto <ecanuto@novell.com>
10238 * MessageBox.cs: When there is no form that invoked the MessageBox, shows
10239 the MessageBox in the taskbar. Fixes #82457.
10241 2007-08-18 Everaldo Canuto <ecanuto@novell.com>
10243 * MessageBox.cs: Fix form size when icon is set and text height is bigger
10244 than icon. Fixes #82468.
10246 2007-08-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
10248 * ThemeWin32Classic.cs: A FixedToolWindow has border size 3.
10249 * InternalWindowManager.cs: Change HandleCalcSize to return a boolean value
10250 if handled or not. Implement WM_NCCALCSIZE for WParam == 0 as well.
10251 Refactored HandleNCCalcSize somewhat to avoid code duplication.
10252 * Form.cs: Add is_clientsize_set, set in set_ClientSize, used by
10253 FormBorderStyle to decide if we're calculating a new size from the
10254 client size or not. CreateParams: Don't fake tool windows, only the X11
10255 backend manages toolwindows manually.
10257 2007-08-17 Jonathan Pobst <monkey@jpobst.com>
10259 * Form.cs: Only reset is_visible if !IsDisposed to prevent an
10260 ObjectDisposedException.
10262 2007-08-17 Jonathan Pobst <monkey@jpobst.com>
10264 * Form.cs: Reset is_visible back to true after OnLoad. Setting this
10265 in OnLoad should not have any effect. [Fixes bug #82470]
10267 2007-08-17 Jonathan Pobst <monkey@jpobst.com>
10269 * ToolTip.cs: Add a hack to ToolTipWindow so it will still size and
10270 paint for controls that create their own ToolTipWindow instead of
10271 going through ToolTip.
10273 2007-08-17 Jonathan Pobst <monkey@jpobst.com>
10275 * ToolTip.cs: Make Hide internal instead of public to match MS API.
10277 2007-08-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10279 * ListViewGroupCollection.cs: Use generic List instead of an
10280 ArrayList, since this collection is 2.0 only.
10282 2007-08-17 Jeffrey Stedfast <fejj@novell.com>
10284 * ToolTip.cs (Hide): Made public to make the build work (should
10285 this not be public?).
10287 2007-08-17 Jonathan Pobst <monkey@jpobst.com>
10289 * ToolBar.cs, ToolStrip.cs, TreeView.cs: Use a ToolTip instead of a
10291 * ToolTip.cs: Add an internal Visible property to facilitate transition.
10293 2007-08-17 Jonathan Pobst <monkey@jpobst.com>
10295 * DrawToolTipEventArgs.cs, DrawToolTipEventHandler.cs, PopupEventArgs.cs,
10296 PopupEventHandler.cs: Make these internal for 1.1.
10297 * ThemeClearlooks.cs, ThemeWin32Classic.cs: Use TextRenderer, and modify to not
10298 use ToolTipWindow internals.
10299 * ToolTip.cs: Add 2.0 modal Show methods. Had to move a lot of stuff around to
10300 support this. A lot of stuff in the ToolTipWindow got moved to the ToolTip.
10302 2007-08-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
10304 * X11Dnd.cs: Add a null check.
10306 2007-08-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
10308 * X11Dnd.cs: MwfWindow: Try to load the control directly from the handle if
10309 nothing else succeeds. Fixes #82453.
10311 2007-08-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
10313 * XplatUIWin32.cs: PaintEventStart: validate the entire source client
10314 rectangle if we're painting to another window than the one the paint
10315 message was generated on. Simplify the code somewhat, which makes
10316 PaintEventEnd also simpler.
10318 2007-08-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
10320 * Control.cs: When changing parent of a form, let the form decide whether
10321 XplatUI.SetParent should be called or not.
10322 * Form.cs: ChangingParent: only call XplatUI.SetParent if we're not
10323 recreating the handle. If the new parent's handle isn't created, don't
10324 recreate our handle, just destroy it. CreateParams: Check if the
10325 parent's handle is created before fetching it.
10327 2007-08-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
10329 * Control.cs, Form.cs, InternalWindowManager.cs, MainMenu.cs, MdiClient.cs:
10330 Update calls to PaintEventStart/End to take a Message argument.
10331 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Update PaintEventStart/End to
10332 take a Message argument.
10333 * XplatUIWin32.cs, XplatUIX11.cs: Update PaintEventStart/End to take a
10334 Message argument, and handle the case where we don't paint to the window
10335 for which the paint message was generated.
10337 2007-08-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
10339 * XplatUIWin32.cs: Don't call Win32GetLastError directly, use
10340 Marshal.GetLastWin32Error. Plug nasty memory leak in
10341 PaintEventStart/End, we were creating a DC we weren't releasing.
10343 2007-08-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10345 * ListView.cs: Add Groups support in Details view. Also have a small
10346 method to do the layout of the group header. Don't use a separate
10347 method to do the groups calculation in Icons view, since our methods
10348 are now a little simpler.
10349 * ListViewGroup.cs: Use the more accurate `HeaderBounds' name than
10351 * ThemeWin32Classic.cs: Likewise.
10353 2007-08-16 Jonathan Pobst <monkey@jpobst.com>
10355 * Application.cs: Add FilterMessage method and rework our message loop
10358 2007-08-16 Jonathan Pobst <monkey@jpobst.com>
10360 * Application.cs: Add some methods and stub a few methods that are
10361 pretty much never used.
10363 2007-08-15 Jonathan Pobst <monkey@jpobst.com>
10365 * TreeNode.cs: Add some serialization methods.
10367 2007-08-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10369 * ListView.cs: In ListViewItemCollection have a
10370 'is_main_collection' field to not modify ListViewItem.ListView
10371 when using it as ListViewGroup.Items (and not ListView.Items)
10372 and also don't modify selection state (.Net behaviour).
10373 Instead, set group for items contained in a ListViewGroup.Items collection.
10374 * ListViewItem.cs: Simplify some code in Group setter.
10375 * ListViewGroup.cs: use the new .ctor to pass the current instance
10376 to the ItemsCollection.
10377 * ListViewGroup.cs: Set the ListView property for ListViewGroup
10378 instances when adding/removing. Also make Remove use RemoveAt, which
10379 should perform better.
10381 2007-08-14 Jonathan Pobst <monkey@jpobst.com>
10383 * Message.cs, TabControl.cs, TextBox.cs, TextBoxBase.cs: Hide some 2.0 API
10384 that crept into the 1.1 profile.
10386 2007-08-14 Jonathan Pobst <monkey@jpobst.com>
10388 * ToolBarButton.cs: Implement ImageKey.
10390 2007-08-14 Jonathan Pobst <monkey@jpobst.com>
10392 * ToolBar.cs: Implement ScaleControl/ScaleCore.
10394 2007-08-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
10396 * PictureBox.cs: OnAnimateImage/UpdateAnimateImage: Check if handle is still
10397 created, it might have gotten destroyed since we last checked. Fixes
10400 2007-08-11 Jonathan Pobst <monkey@jpobst.com>
10402 * ToolTip.cs: Remove mouse in control check from mouseleave handler so
10403 tooltip will hide when mouse is moved off the control.
10406 2007-08-11 Andreia Gaita <avidigal@novell.com>
10408 * WebBrowserBase.cs, WebBrowser.cs: add implementation
10409 using Mono.Mozilla for loading and navigating webcontrol
10411 The initial implementation was done on
10412 /trunk/mozembed/tests/browser , and copied here.
10414 2007-08-11 Gert Driesen <drieseng@users.sourceforge.net>
10416 * ThemeWin32Classic.cs: On 2.0 profile, use ForeColor and BackColor of
10417 ToolTipWindow for drawing the tooltip. Fixes bug #82408.
10419 2007-08-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
10421 * DataGridView.cs: Add support for an editing row. Fixes #82226.
10422 RowTemplateFull: throw an exception if a column doesn't have a template.
10423 * DataGridViewRowCollection.cs: AddInternal: if there are any editing rows,
10424 add the row just before it.
10425 * DataGridViewTextBoxCell.cs: Don't paint cells which are in edit mode as
10427 * DataGridViewSelectedRowCollection.cs: Don't return the editing row. Add a
10428 DataGridView field to be able to reach the grid's editing row.
10430 2007-08-10 Jonathan Pobst <monkey@jpobst.com>
10432 * ToolTip.cs: If the control's handle hasn't been created when it has a
10433 tooltip set on it, don't check to see if we need to show the tooltip. This
10434 check was causing the control's handle to be created.
10437 2007-08-10 Jonathan Pobst <monkey@jpobst.com>
10439 * TextBoxBase.cs: Fix SelectionLength when no text selected to match MS:
10441 Handle Not Created -1 0
10445 2007-08-10 Jonathan Pobst <monkey@jpobst.com>
10447 * ToolTip.cs: Hide the tooltip if the control is clicked to match MS behavior.
10450 2007-08-09 Jonathan Pobst <monkey@jpobst.com>
10452 * DrawToolTipEventArgs.cs: Don't dispose a brush we got from the respool.
10453 * ToolTip.cs: Implement some properties and owner draw.
10455 2007-08-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
10457 * DataGridView.cs: OnPaint: don't set scrollbar visibility to false then
10458 show them again, since setting visibility causes a paint, causing an
10459 endless loop (instead use a temporary and set it all when it's known if
10460 they should be shown or not). Fixes #79265.
10462 2007-08-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
10464 * DataGridView.cs: Only do a full column/row selection if a header was
10465 clicked and we're in Column/RowHeader selection mode. If shift and ctrl
10466 isn't pressed, deselect everything before selecting something.
10468 2007-08-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
10470 * DataGridView.cs: Fix SelectedRows and SelectedColumns to match MS
10471 behaviour according to bug #81075 - they are returned in the order they
10472 are selected. Fix HitTest to check if the point is within any of the
10473 headers. Allow for row/column selection when in ColumnHeader or
10474 RowHeader selection mode. Add SetSelected[Column|Row]CoreInternal for
10475 the row and column to call when their selected state changes, and
10476 updated selected_[rows|columns] whenever SetSelected* is called.
10477 * DataGridViewBand.cs: Initialize isRow correctly. Call
10478 SetSelected[Row|Column]CoreInternal when the selected state changes, and
10479 add a SelectedInternal to avoid StackOverflows.
10480 * DataGridViewColumn.cs, DataGridViewRow.cs: If DGV is ReadOnly, we're also
10481 ReadOnly no matter what.
10482 * DataGridViewSelectedColumnCollection.cs,
10483 DataGridViewSelectedRowCollection.cs: Add an InternalAddRange that adds
10484 the items in reverse order (just as MS does...)
10486 2007-08-09 Jonathan Pobst <monkey@jpobst.com>
10488 * Application.cs: Only release menustrips if Alt (MenuKey) is pressed by
10489 itself, not part of a mnemonic. [Fixes bug #82378]
10491 2007-08-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
10493 * DataGridView.cs: BeginEdit: don't allow editing of readonly cells.
10494 * DataGridViewCell.cs: Implement ReadOnly better: the cell is ReadOnly if
10495 the DGV, the column, the row, or the cell itself is readonly.
10497 2007-08-09 Gert Driesen <drieseng@users.sourceforge.net>
10499 * ThemeNice.cs: Use XplatUI.RunningOnUnix instead of checking
10500 OSVersion.Platform.
10501 * FileDialog.cs: Same.
10502 * TextRendered.cs: Same.
10503 * FolderBrowserDialog.cs: Same.
10504 * TextBoxBase.cs: Same.
10505 * Application.cs: Same.
10506 * Cursors.cs: Same.
10507 * ThemeClearLooks.cs: Same.
10509 2007-08-09 Gert Driesen <drieseng@users.sourceforge.net>
10511 * XplatUI.cs: Added RunningOnUnix property to be used by controls
10512 instead of duplicating these checks everywhere.
10513 * FileDialog.cs: Use case-insensitive comparison for populating the
10514 DirComboBox when not running on unix. Fixes bug #82385.
10515 * OpenFileDialog.cs: to match MS, change label of DirComboBox to
10518 2007-08-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
10520 * DataGridView.cs: SelectedRows: we need to check if selectionMode is
10521 FullRowSelect (not FullColumnSelect). Fixes #81075. Implemented
10522 BeginEdit, EndEdit, SetSelected<Cell|Row|Column>Core. Implemented row,
10523 cell and column selection with ctrl and shift pressed. Call the correct
10524 BeginEdit/EndEdit whenever we start/end editing. Move painting code to
10525 the corresponding virtual method (PaintBackground to paint background,
10527 * DataGridViewCell.cs: Implement Selected correctly, we're selected if
10528 either the column, row or the cell itself is selected.
10529 * DataGridViewRowCollection.cs: Use DGV.OnRowsAddedInternal instead of
10531 * DataGridViewRow.cs: Moved some of the painting code from DataGridView
10532 here. When the row is selected, don't select all cells. Each cell now
10533 queries the row to see if the row is selected.
10535 2007-08-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
10537 * DataGridViewColumn.cs: Throw if the SortMode conflicts with DataGridView's
10540 2007-08-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10542 * ListView.cs: In ListViewItemsCollection check that owner is
10543 not null before trying to access it (this happens quite often
10544 using Groups). Also don't duplicate calls by calling CollectionChanged
10547 2007-08-08 Jonathan Pobst <monkey@jpobst.com>
10549 * ToolStrip.cs: Record if we were activated by mouse or keyboard. Redraw
10550 when we are dismissed to clear keyboard mnemonics.
10551 * MenuStrip.cs, ToolStripDropDown.cs, ToolStripItem.cs,
10552 ToolStripMenuItem.cs: Record if we were activated by mouse or keyboard.
10553 * ToolStripItemTextRenderEventArgs.cs: Draw mnemonic underlines if menu
10554 was activated by keyboard or the OS tells us to always draw them.
10555 * ToolStripManager.cs: Setup storage for activated by mouse or keyboard.
10556 [Fixes bugs #82376, #82377]
10558 2007-08-08 Jonathan Pobst <monkey@jpobst.com>
10560 * Control.cs: If no one accepts a mnemonic, let the MenuStrip have a
10561 shot at having it because Alt was pressed.
10562 * MenuStrip.cs: When handling Alt, don't select a SystemMenuItem, select
10563 the first real menu item.
10564 * ToolStrip.cs: Don't crash when looking for a ToolStripItem to handle
10565 a mnemonic if Text is null.
10568 2007-08-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10570 * ListView.cs: In ListViewItemCollection.AddItem, don't do a linear
10571 search do check whether the item is already contained in the
10572 collection or not; instead check if the owner of the item is the same
10573 as ours. Also, remove a redundant check in the same method.
10575 2007-08-08 Jonathan Pobst <monkey@jpobst.com>
10577 * Control.cs: Allow the clip region to be set back to null.
10578 * XplatUIWin32.cs: If we are sent a null clip region, use IntPtr.Zero.
10579 [Fixes button still showing up in bug #82370 when Show Through is turned off]
10581 2007-08-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
10583 * GridEntry.cs: Add a null check.
10584 * PropertyGrid.cs: When checking for existing grid entries, ignore category
10585 entries. Fixes #82297.
10587 2007-08-07 Jonathan Pobst <monkey@jpobst.com>
10589 * OwnerDrawPropertyBag.cs: Make the serialization constructor protected
10592 2007-08-07 Jonathan Pobst <monkey@jpobst.com>
10594 * ListBox.cs: Implement ScaleControl.
10596 2007-08-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
10598 * Form.cs: Add a few ActiveMenu null checks. ActiveMenu might be null if we
10600 * MdiWindowManager.cs: Don't create a maximized menu if the child or it's
10601 parent has a menu strip. Fixes #81689.
10603 2007-08-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
10605 * ToolTip.cs: We don't get mouse events on all platforms in the exact same
10606 moments, so apply some fuzzy logic to determine if the mouse is still
10607 inside a control or not. Fixes #82288 (for the third time).
10609 2007-08-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
10611 * Control.cs: CreateControl: create implicit children as well. Fixes #82344.
10612 Don't create the child if it has been disposed already (may happen if
10613 the user closes the form the Load event).
10615 2007-08-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
10617 * ToolTip.cs: If ReshowDelay is 0, show the tooltip immediately. Fixes
10620 2007-08-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
10622 * Control.cs: Add a null check in OnParentBindingContextChanged. The parent
10623 might call us after we've been destroyed, in which case our own private
10624 parent field is null. Fixes #82326.
10626 2007-08-06 Jonathan Pobst <monkey@jpobst.com>
10628 * ToolStripDropDown.cs: Fix a failing test on X11 by adding a null
10629 check for setting the dropdown's owner.
10631 2007-08-06 Jonathan Pobst <monkey@jpobst.com>
10633 * MdiClient.cs: Fix some failing tests on X11 by adding a null check
10634 before removing system menu items.
10636 2007-08-02 Jonathan Pobst <monkey@jpobst.com>
10638 * MdiClient.cs, MdiWindowManager.cs: Support 2.0 Mdi MenuStrip
10640 * MdiControlStrip.cs: Added. These are the menu items used in mdi
10642 * ToolStrip.cs: Add a null check to mnemonics.
10643 * ToolStripDropDownMenu.cs: When using a SystemMenuItem, there is
10645 [Fixes most of bug #81689]
10647 2007-08-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
10649 * PropertyGrid.cs: Add a null-check. Fixes #82289/SVGPad.
10651 2007-08-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
10653 Use InitialDelay if ReshowDelay is zero. Fixes #82288.
10655 2007-08-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
10657 * DataGridViewCell.cs: EditType: returns
10658 DataGridViewTextBoxEditingControl always.
10660 2007-08-01 Jonathan Pobst <monkey@jpobst.com>
10662 * TextRenderer.cs: Remove the LineLimit string format flag from the
10663 DrawString fallback method so that things like buttons that aren't
10664 tall enough to draw a full line will still draw part of the text.
10665 [Fixes part of bug #82272]
10667 2007-08-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
10669 * DataGridView.cs: Implemented AutoResizeColumn(s).
10670 * DataGridViewCellStyle.cs: Added SetAlignment, fills in a StringFormat
10671 according to the Alignment.
10672 * DataGridViewColumnHeaderCell.cs, DataGridViewTextBoxCell.cs:
10673 Implement alignment and padding when painting.
10674 * DataGridViewRow.cs: SetValues: Don't create a cell if it already
10676 * DataGridViewCell.cs: Implement BorderWidths in the most primitive
10678 * DataGridViewColumnCollection.cs: Raise OnColumnAdded on the DGV when
10681 2007-07-31 Jonathan Pobst <monkey@jpobst.com>
10683 * TextBoxBase.cs: Use Control.ExplicitBounds instead of explicit_bounds,
10686 2007-07-31 Jonathan Pobst <monkey@jpobst.com>
10688 * ToolStrip.cs: Stub out drag and drop methods, fix some corcompare stuff,
10689 hide GetPreferredSize from public API.
10690 * ToolStripDropDown.cs: Override AllowItemReorder, fix AccessibleObject.
10691 * ToolStripItem.cs: Stub out drag and drop methods and events.
10692 * ToolStripManager.cs: Stub out Save/LoadSettings.
10693 * ToolStripOverflow.cs: Use renamed ToolStrip.GetPreferredSize.
10694 * ToolStripPanel.cs: Fix corcompare error.
10695 * ToolStripPanelRow.cs: Use renamed ToolStrip.GetPreferredSize.
10696 * ToolStripSplitButton.cs: Fix AccessibleObject stuff.
10697 * ToolStripSplitStackLayout.cs: Use renamed ToolStrip.GetPreferredSize.
10699 2007-07-31 Jonathan Pobst <monkey@jpobst.com>
10701 * TextBoxBase.cs: In our new GetPreferredSizeCore, return the explicit
10702 bounds height instead of PreferredHeight. Puts things back the way
10703 they were for height while still fixing the width. Fixes broken unit
10706 2007-07-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
10708 * Binding.cs: Implement 2.0 constructors and add a null check.
10710 2007-07-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
10712 * DataGridViewRowCollection.cs: Allow a null DGV in the constructor,
10713 and fix row index (off by one).
10715 2007-07-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
10717 * PropertyGridView.cs: Remove debug output.
10719 2007-07-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
10721 * Control.cs: We need to reset the is_created flags when the handle is
10722 destroyed. Fixes #82187.
10723 * XplatUIWin32.cs: In GetWindowRect don't offset screen coordinates to
10724 client coordinates if the window doesn't have a parent.
10725 Win32GetParent returns the parent or the owner, and for top-level
10726 windows with no parent (but with an owner) we were calculating the
10727 location from the location of the owner.
10728 * Form.cs: Remove incorrect fix for #82187. Don't raise OnLoad if the
10729 form has been disposed.
10730 * MdiClient.cs: Add a null-check.
10732 2007-07-30 Jonathan Pobst <monkey@jpobst.com>
10734 * TextBoxBase.cs: TextBoxBase reports itself at AutoSize, but doesn't
10735 actually do auto-sizing. Override the internal GetPreferredSizeCore
10736 so we can provide an implementation that returns the current width
10737 and preferred height. Allows anchor = right to work with TextBox 2.0.
10740 2007-07-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10742 * ListView.cs: Add support for navigating items in Groups mode, by
10743 creating a big matrix containing all rows and cols of all groups. When
10744 are in other mode than Details, pressing Up should have a similar
10745 behaviour as that one of Down (moving to the next available column if
10746 current one doesn't have an item in the requested row). Also, don't
10747 proceed to use groups if ShowGroups is false.
10748 * ListViewGroup.cs: Add an internal int field to store the starting
10749 row of the group (used by the big matrix used for navigating the
10751 * ThemeWin32Classic.cs: Don't draw headers if ListView.ShowGroups is
10754 2007-07-30 Jonathan Pobst <monkey@jpobst.com>
10756 * ToolStripDropDown.cs: When we do Show, start with the
10757 DefaultDropDownDirection, but if our popup menu is going to off-screen,
10758 modify the direction to keep it on screen. [Fixes bug #82210]
10760 2007-07-29 Gert Driesen <drieseng@users.sourceforge.net>
10762 * FileDialog.cs: Accept any FilterIndex value, and store it
10763 unmodified. When FilterIndex is less than 1, or greater than number
10764 of filters, then default to first filter. Only add filter extension to
10765 file if user did not specifiy an extension. When type of dialog is
10766 OpenFileDialog and DefaultExt is set, then only use filter extension
10767 if: CheckFileExists is true and no file wih the default extension
10768 exists, or CheckFileExists is false, and user specified file does not
10769 exist. When CheckFileExists is true, then add first extension of
10770 selected filter that matches existing file. Perform checks for
10771 existing file, overwrite and create after extension has been added to
10772 file name. When CheckFileExists is true and type is SaveFileDialog,
10773 then only consider first filter extension if DefaultExt is set.
10774 When CheckFileExists is true, then ignore DefaultExt if file with that
10775 extension does not exist. Also perform check for existing file when
10776 type is SaveFileDialog. Changed some field to constants.
10778 2007-07-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10780 * ListView.cs: Take into account the region used by header
10781 control when doing the vertical scroll (this way we invalidate
10782 the precise area, and don't get any dirty one).
10784 2007-07-27 Everaldo Canuto <ecanuto@novell.com>
10786 * FileDialog.cs: Check for valid filterIndex on button open/save.
10789 2007-07-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10791 * ListView.cs: Update some layout calculations in details view
10792 and clean the code in a pair of assignations.
10794 2007-07-26 Jonathan Pobst <monkey@jpobst.com>
10796 * ComboBox.cs, ContainerControl.cs, DataGrid.cs, FontDialog.cs, Label.cs,
10797 LinkLabel.cs, ListBox.cs, ListView.cs, ListViewItem.cs, MessageBox.cs,
10798 MonthCalender.cs, StatusBar.cs, ThemeClearlooks.cs, ThemeWin32Class.cs,
10799 ToolBar.cs, TreeView.cs: First pass at using thread-safe string measuring.
10801 2007-07-26 Jonathan Pobst <monkey@jpobst.com>
10803 * TextRenderer.cs: Use [ThreadStatic] instead of locks to improve
10804 performance of thread-safe Graphic methods. (Thanks rolf!)
10806 2007-07-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10808 * ListView.cs: When doing the layout calculations, don't calculate
10809 scroll bars before handle is created. This is unnecessary and also
10810 calculating them before handle creation item causes a number of random
10811 bugs (which begin to appear after Chris' big patch for handle creation
10814 2007-07-26 Jonathan Pobst <monkey@jpobst.com>
10816 * TextRenderer.cs: Create thread-safe versions of Graphics.MeasureString
10817 for things that don't have a Graphics object. Currently, things just use
10818 the static Hwnd.bmp_g which is not thread safe.
10820 2007-07-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
10822 * Form.cs: ShowDialog: don't destroy handles if the dialog is a common
10823 dialog. Fixes #82187.
10825 2007-07-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
10827 * DataGridViewElement.cs: Initialize state.
10828 * DataGridView.cs: Forward a few Mouse events to cells. Add
10829 GetRowInternal and GetCellInternal that doesn't unshare rows.
10830 Implement GetCellDisplayRectangle. HitTest: if the row is shared,
10831 don't use the index, but look it up. Add
10832 DataGridViewControlCollection.RemoveInternal to remove controls
10833 that Remove won't remove (scrollbars, edit control).
10834 * DataGridViewColumn.cs: Initialize State correctly.
10835 * DataGridViewColumnHeaderCell.cs, DataGridViewComboBoxCell.cs,
10836 DataGridViewHeaderCell.cs, DataGridViewRowHeaderCell.cs: Started
10838 * DataGridViewRowCollection.cs: Implemented shared rows.
10839 * DataGridViewRow.cs: Throw exceptions as MS do.
10840 * DataGridViewCell.cs: A few properties are implemented by a
10841 Get<Property> method, so move implementation there and remove the
10842 NIEX in the method. Add a bunch of OnXInternal that DataGridView
10843 calls when necessary.
10844 * DataGridViewComboBoxEditingControl.cs: Remove a few NIEX'es that just
10845 complicates matters.
10846 * DataGridViewCellCollection.cs: Add a GetCellInternal that doesn't
10849 2007-07-25 Jonathan Pobst <monkey@jpobst.com>
10851 * UpDownBase.cs: We cannot override SetBoundsCore for 2.0, which was relayout-ing
10852 the children controls. Instead, we will just set up the proper docking for the
10853 children controls so we don't have to worry about it. [Fixes bug #82188]
10855 2007-07-25 Jonathan Pobst <monkey@jpobst.com>
10857 * TreeView.cs, NodeLabelEditEventArgs.cs, LabelEditTextBox.cs: Support edit
10858 canceling and correct Before/AfterLabelEdit properties as layed out in bug
10859 81847. [Fixes bug #81847]
10861 2007-07-25 Jonathan Pobst <monkey@jpobst.com>
10863 * Label.cs: If AutoSize = true and a width or height is set, ignore it and
10864 redo the autosize. VS2005 defaults to setting the AutoSize, and then setting
10865 an explicit size based on the design-time size of the text. Since our fonts
10866 may not match this explicit size, we tend to cut off the ends of people's labels.
10868 2007-07-24 Jonathan Pobst <monkey@jpobst.com>
10870 * Menu.cs: Add some missing methods to MenuItemCollection.
10872 2007-07-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
10874 * DataGridView.cs: Added RowTemplateFull, creates a row from the templates in the columns.
10875 * DataGridViewBand.cs: DefaultHeaderCellType: initialize correctly. Resizable: if not set, check DGV.
10876 * DataGridViewColumn.cs: InheritedAutoSizeMode: if not set, check DGV. Resizable: delegate to base class. ToolTipText: Never return null. Initialize a few other properties correctly.
10877 * DataGridViewColumnCollection.cs: Add: Default column is a TextBoxColumn.
10878 * DataGridViewComboBoxCell.cs: Started implementing this, lots left still.
10879 * DataGridViewElement.cs: State defaults to Visible.
10880 * DataGridViewRowCollection.cs: Add: creates the new row based on a template.
10881 * DataGridViewTextBoxColumn.cs: SortMode: delegate to base class, but initialize to Automatic. ToString: implement correctly.
10883 2007-07-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
10885 * Control.cs: Minor 1.1 corcompare fix.
10887 2007-07-23 Jonathan Pobst <monkey@jpobst.com>
10889 * LinkLabel.cs, PrintPreviewDialog.cs, TabPage.cs, TextBox.cs,
10890 TextBoxBase.cs, ToolBar.cs: 2.0 corcompare work.
10892 2007-07-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
10894 * DataGridViewLinkColumn.cs, DataGridViewRowCollection.cs,
10895 DataGridViewImageColumn.cs, DataGridViewSelectedCellCollection.cs,
10896 DataGridViewComboBoxCell.cs, DataGridViewLinkCell.cs,
10897 DataGridViewSelectedColumnCollection.cs,
10898 DataGridViewSelectedRowCollection.cs: Corcompare work.
10900 2007-07-23 Jonathan Pobst <monkey@jpobst.com>
10902 * PrintDialog.cs: Stub UseEXDialog. I chose to stub this because
10903 it is autoset by VS2005 designer and the effect is barely noticeable.
10905 2007-07-23 Jonathan Pobst <monkey@jpobst.com>
10907 * TreeView.cs: Implement HitTest.
10909 2007-07-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
10911 * DataGridViewTextBoxCell.cs: Use DGV.EditControlInternal instead of
10912 manually adding and removing the control from the Controls
10914 * DataGridView.cs: Implement DataGridViewControlCollection. Add an
10915 EditingControlInternal property that tracks the editing control.
10916 Always keeping the scrollbars in the Controls collection, as MS
10917 testing confirms is the right behaviour.
10919 2007-07-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
10921 * ScrollableControl.cs: Fix implementation of AutoScrollPosition
10922 according to MSDN and new test.
10924 2007-07-20 Jonathan Pobst <monkey@jpobst.com>
10926 * TreeNode.cs: Implement ToolTipText.
10927 * TreeView.cs: Implement tooltips, NodeMouse* events.
10929 2007-07-20 Jonathan Pobst <monkey@jpobst.com>
10931 * TreeView.cs: Implement OnNodeMouseClick and OnNodeMouseDoubleClick.
10933 2007-07-20 Jonathan Pobst <monkey@jpobst.com>
10935 * TreeNode.cs: Implement ContextMenu, ContextMenuStrip, and Level.
10936 * TreeView.cs: Use the node's contextmenu[strip] if applicable.
10938 2007-07-20 Ivan N. Zlatev <contact@i-nz.net>
10940 * Control.cs, Form.cs, ContainerControl.cs,
10941 ScrollableControl.cs, ButtonBase.cs: Added ShouldSerialize
10942 for misc properties.
10944 2007-07-20 Jonathan Pobst <monkey@jpobst.com>
10946 * TreeNode.cs: Implement StateImageIndex and StateImageKey.
10947 * TreeView.cs: Implement StateImageList.
10949 2007-07-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
10951 * Form.cs: Don't check if the current form is the active form before
10952 activating it. Fixes #81904.
10954 2007-07-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
10956 * Form.cs: Don't check if the current form is the active form before
10957 activating it. Fixes #81904.
10959 2007-07-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
10961 * TreeView.cs: Apply patch from Tyron (tmm@aon.at). Fixes #81847.
10963 2007-07-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
10965 * Form.cs: Don't try to position the form after loading if the form was
10966 disposed. Fixes #81969.
10968 2007-07-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
10970 * PropertyGrid.cs, PropertyGridView.cs: Implemented 2.0 methods and
10971 properties. Had to change ToolBar into ToolStrip, which required a
10974 2007-07-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
10976 * PropertyGrid.cs: PropertyToolBar: Redraw the entire toolbar when it's
10977 resized, fixes part of #79829 (vertical lines in toolbar).
10978 PropertyGrid: Refactored Populate* to something that's easier to
10979 follow at least for me, as well as splitting it up into several new
10980 methods, required to update only subitems when something has
10981 changed by a popup editor or listbox. Don't use events to check
10982 when any values are changed, since the events are unreliable (we're
10983 changing the objects the events are registered with, and if the
10984 event handling requires the objects to be immutable (objects stored
10985 in hashtables for instance), the events will never be raised).
10986 * PropertyGridView.cs: Call PropertyGrid.PropertyValueChangedInternal
10987 everytime we change a value, since events are unreliable.
10988 DropDownButtonClicked: For the same reason don't compare objects to
10989 check if it has changed or not, it would require all objects to
10990 derive Equals. Fix dialog location on windows, MS is doing weird
10991 things when creating parented forms.
10992 * GridEntry.cs: Add a SelectedObject setter.
10994 2007-07-19 Jonathan Pobst <monkey@jpobst.com>
10996 * TreeNode.cs: Add some corcompare attributes.
10997 * TreeNodeCollection.cs: Implement 2.0 stuffs.
10998 * TreeView.cs: Implement some 2.0 stuffs.
11000 2007-07-18 Andreia Gaita <avidigal@novell.com>
11002 * WebBrowser.cs, WebBrowserBase.cs: add some more MonoTODOs now
11005 2007-07-19 Jonathan Pobst <monkey@jpobst.com>
11007 * ListBox.cs: Implement custom tab offsets.
11009 2007-07-18 Jonathan Pobst <monkey@jpobst.com>
11011 * ToolStripContentPanel.cs: Support System renderer.
11012 * ToolStripControlHost.cs: Set RightToLeft to default to No.
11014 2007-07-18 Jonathan Pobst <monkey@jpobst.com>
11016 * ScrollableControl.cs: Don't mess up the user's explicit bounds.
11018 2007-07-18 Jonathan Pobst <monkey@jpobst.com>
11020 * CheckBox.cs: Chain TextAlign to base implementation instead of
11021 maintaining another one.
11023 2007-07-18 Jonathan Pobst <monkey@jpobst.com>
11025 * ButtonBase.cs: Fix an incorrect string constant.
11027 2007-07-18 Jonathan Pobst <monkey@jpobst.com>
11029 * TextRenderer.cs: Use the static Graphics context in Hwnd instead
11030 of creating one for measuring strings.
11032 2007-07-18 Jonathan Pobst <monkey@jpobst.com>
11034 * ToolStrip.cs, ToolStripDropDown.cs, ToolStripDropDownMenu.cs:
11035 Implement MaxItemSize.
11037 2007-07-17 Jonathan Pobst <monkey@jpobst.com>
11039 * Control.cs: Remove per-control 1x1 Bitmap and Graphics context used
11040 for DeviceContext. Instead, use the static one available in Hwnd.
11041 Informal tests show this saves about 500k on formtest.exe.
11043 2007-07-17 Jonathan Pobst <monkey@jpobst.com>
11045 * ContainerControl.cs: Implement 2.0 AutoScaling.
11047 2007-07-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
11049 * ComboBox.cs: Work around bug #82120 (bug in mcs).
11051 2007-07-16 Jonathan Pobst <monkey@jpobst.com>
11053 * ThemeWin32Classic.cs: Allow a Flat button to be Focused and Entered.
11054 Darken the focus color.
11056 2007-07-16 Jonathan Pobst <monkey@jpobst.com>
11058 * ListBox.cs: When measuring items, if it's a CheckedListBox, add room
11060 * ThemeWin32Classic.cs: Make the checkbox bigger in a CheckedListBox and use
11061 X, Y instead of a rect for drawing text.
11062 - For ControlPaint.DrawCheckBox, center the check a little better when the
11063 checkbox is odd width. When drawing a flat checkbox, use a white background
11064 when state != inactive.
11065 [Fixes bugs #82097, 82100]
11067 2007-07-16 Gert Driesen <drieseng@users.sourceforge.net>
11069 * ListControl.cs: When changing CurrencyManager, disconnect event
11070 handlers from previous one. Fixes bug #81771. Code formatting.
11072 2007-07-15 Andreia Gaita <avidigal@novell.com>
11074 * PrintPreviewControl.cs: Remove extraneous Invalidate calls. Separate
11075 full preview invalidation from layout invalidation, and only invalidate
11076 the layout when setting zoom or other properties. Invalidation should
11077 always be done even when resetting properties with the same values as
11078 what is there. Fixes #81744 and #79830.
11080 2007-07-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11082 * ListView.cs: Implement initial support for Groups. Split some of the
11083 LayoutIcons code to render a partial list of the items (needed by
11084 items contained in ListViewGroup instances). Let the
11085 ListViewItemsCollection.ListView property be modifiable (needed when
11086 using Groups, too).
11087 * ListViewGroup.cs: Use a Bounds property rather than a Location
11088 one. Also invalidate the bounds when they get changed.
11089 * ThemeWin32Classic.cs: When drawing items, also draw the group header
11090 if ListView.Groups.Count is bigger than 0. Add a DrawListViewGroupHeader
11093 2007-07-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11095 * ListView.cs: When space gets pressed and CheckBoxes is true,
11096 don't invoke the Begin and EndUpdate methods. We are generating
11097 a redraw of the entire control without need to do so.
11099 2007-07-13 William Holmes <billholmes54@gmail.com>
11101 * Control.cs: Changing logic in FindFlatForward and
11102 FindFlatBackward to handle multiple Controls with
11104 This fixes bug 81687.
11106 2007-07-13 Jonathan Pobst <monkey@jpobst.com>
11108 * OSFeature.cs: Enable IsPresent.
11110 2007-07-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
11112 * Control.cs: Don't do anything in WmShowWindow if the control has been
11113 disposed. We can get WM_SHOWWINDOW after a control is disposed: a
11114 control is created, put on a form, the control is disposed (the
11115 form is never shown), and then we get a MapNotify, triggering a
11117 * Form.cs: Exclude the current form when sending Deactivate to all
11119 * NativeWindow.cs: Set WindowCreating to null as soon as possible,
11120 there was a race condition because assigning the handle raises
11121 events, we can get more messages, therefore trying to assign the
11122 handle again, which would fail if any of those event handlers
11123 closed/disposed the control.
11125 2007-07-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
11127 * Form.cs: Make the fix for #80775 windows-only (fixes #81957).
11129 2007-07-12 Jonathan Pobst <monkey@jpobst.com>
11131 * SystemInformation.cs, Theme.cs, XplatUI.cs, XplatUIDriver.cs,
11132 XplatUIWin32.cs: Implement SystemInformation 2.0 properties.
11134 2007-07-12 Rolf Bjarne Kvinge <RKvinge@novell.com>
11136 * DateTimePicker.cs: If there's no part format specifier, return an
11139 2007-07-12 Jonathan Pobst <monkey@jpobst.com>
11141 * FlatButtonAppearance.cs: Throw NotSupportedException for a
11142 Transparent BorderColor.
11144 2007-07-12 Rolf Bjarne Kvinge <RKvinge@novell.com>
11146 * DataGridView.cs, TextControl.cs, ProgressBar.cs, PrintDialog.cs,
11147 MessageBox.cs, ButtonBase.cs, PageSetupDialog.cs, NumericUpDown.cs,
11148 X11Dnd.cs, Binding.cs, DataGrid.cs, AxHost.cs,
11149 LinkLabelLinkClickedEventArgs.cs, TextRenderer.cs, Label.cs,
11150 LinkLabel.cs, TreeNode.cs, BindingSource.cs, TabPage.cs,
11151 TextBoxBase.cs, BindingNavigator.cs, Application.cs,
11152 ToolStripPanel.cs, TabControl.cs, ThemeClearlooks.cs, TreeView.cs:
11154 * X11Structs.cs: Remove warnings, add ToString implementations.
11156 2007-07-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
11158 * XplatUIX11.cs: Translate min/max size according to the actual min/max
11159 size, and not the current size. Fixes #81798.
11161 2007-07-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
11163 * XplatUIX11.cs: Fix #80822 again (DefWndProc can be reached before
11164 XplatUI.CreateWindow returns, in which case the hwnd isn't assigned
11165 to the control yet).
11167 2007-07-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
11169 * PropertyGridTextBox.cs: Add a method that sends any forwarded
11170 mousedowns to the contained textbox.
11171 * X11Structs.cs: More ToString implementation.
11172 * PropertyGridView.cs: Forward any mousedowns to the textbox, fixes
11175 2007-07-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
11177 * PropertyGridView.cs: Add a null-check, fixes a few tests.
11179 2007-07-10 Jonathan Pobst <monkey@jpobst.com>
11181 * TableLayoutPanelCellPosition.cs: TypeConverter.
11183 2007-07-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
11187 * PropertyGridTextBox.cs: Propagate any color changes to all contained
11189 * PropertyGridView.cs: A few color fixes.
11191 2007-07-10 Jackson Harper <jackson@ximian.com>
11193 * TextControl.cs: Remove some old unused text formatting stuff.
11195 2007-07-10 Jackson Harper <jackson@ximian.com>
11197 * TreeView.cs: Update full row select invalidation to match the
11198 newer DrawSelection... method.
11199 - Make sure to invalidate the entire width when selecting a new
11200 node, if we have full row selection enabled.
11202 2007-07-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
11204 * PropertyGridView.cs: Fix for #81800, makes text show up on initial
11205 display of properties again.
11207 2007-07-10 Jonathan Pobst <monkey@jpobst.com>
11209 * ListBox.cs: Add IntegerCollection and Add, Clear, Remove
11210 to existing collections.
11212 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
11214 * AccessibleObject.cs, RadioButton.cs: Fix some base classes
11215 that changed between 1.1 and 2.0.
11217 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
11219 * PowerStatus.cs: Added. This is just a data class, it is filled
11220 in by SystemInformation.
11222 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
11224 * Message.cs: Add op_Equality and op_Inequality.
11226 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
11228 * MenuStrip.cs: Finish corcompare work.
11230 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
11232 * LinkArea.cs: Add op_Equality and op_Inequality.
11234 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
11236 * Application.cs: Add MessageLoopCallback delegate.
11238 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
11240 * ListBox.cs: First set of 2.0 stuffs.
11242 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
11244 * Control.cs: Make an internal Height property we can override
11245 without messing up the public API.
11246 * ListBox.cs: Override HeightInternal to always return the size
11247 the user set. [Fixes bug #80466]
11249 2007-07-08 Jonathan Pobst <monkey@jpobst.com>
11251 * TableLayoutPanel.cs: Add a null check so we don't NRE trying to
11252 paint cell borders if we haven't calculated where they go yet.
11253 [Fixes bugs #82040 and #82041]
11255 2007-07-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11257 * ListView.cs: In Details view, set the location of item_control
11258 in the (0,0) position (and the header_control is thus on the
11259 item_control). This way the Bounds of the Items are relative to the
11260 ListView control (before this, they had a Bounds value without the
11261 header_control offset, which wasn't matching .Net). Fixes #82004.
11263 2007-07-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11265 * ListControl.cs: When DataSource is set to null, pass an empty
11266 array of object to SetItemsCore. This is done to clean the items
11267 in the ListContol children. Fixes #81788.
11269 2007-07-06 Jonathan Pobst <monkey@jpobst.com>
11271 * ListControl.cs: Add 2.0 stuffs.
11273 2007-07-06 Jonathan Pobst <monkey@jpobst.com>
11275 * Label.cs: Finish up 2.0 stuffs. Replace calls to Refresh with Invalidate,
11276 Refresh is overkill for just about every repaint request.
11278 2007-07-06 Jonathan Pobst <monkey@jpobst.com>
11280 * ToolStripItem.cs: TextDirection getter handles looking up Inherit for us,
11281 so remove my custom Get method and fix the property getter.
11283 2007-07-06 Jonathan Pobst <monkey@jpobst.com>
11285 * Label.cs: DefaultMargin for 2.0.
11287 2007-07-06 Jonathan Pobst <monkey@jpobst.com>
11289 * ComboBox.cs: Override IsInputCharInternal and return true. Fixes
11290 reported issue where other controls with mnemonics would steal strokes
11291 from a selected ComboBox.
11293 2007-07-06 Jonathan Pobst <monkey@jpobst.com>
11295 * ScrollOrientation.cs: Make internal for 1.1.
11296 * ScrollEventArgs.cs: Add 2.0 stuffs.
11298 2007-07-05 Jonathan Pobst <monkey@jpobst.com>
11300 * ToolStrip.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
11301 ToolStripItem.cs, ToolStripItem.cs, ToolStripItemTextRenderEventArgs.cs,
11302 ToolStripRenderer.cs, ToolStripSeparator.cs: Implement TextDirection.
11304 2007-07-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11306 * ListViewItem.cs: Implement the small 2.0 GetSubItemAt method.
11308 2007-07-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11310 * ListView.cs: Implement the so-incredibly broken 2.0
11311 VirtualItemsSelectionRangeChanged event.
11313 2007-07-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11315 * ListView.cs: When enter is pressed and selection is non empty,
11316 an OnItemActivate event must be fired.
11318 2007-07-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11320 * ListView.cs: Store the FocusedItem information as an
11321 int instead of a ListViewItem (needed by VirtualMode).
11322 Update the calls to SetFocusedItem to pass an index instead of
11324 * ListViewItem.cs: Likewise. Also, in VirtualMode retrieve
11325 the Focused state from the owner ListView.
11327 2007-07-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11329 * ListView.cs: Set ListView.focused_item from ListViewItem.Focused
11330 property. Also, invalidate previous focused item in the mentioned
11331 property (match .Net).
11333 2007-07-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11335 * ListView.cs: Implement 2.0 FocusedItem property setter.
11337 2007-07-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11339 * ListView.cs: Implement 2.0 TopItem property setter.
11341 2007-07-03 Jonathan Pobst <monkey@jpobst.com>
11343 * StatusStrip.cs: The default renderer is System.
11344 * ToolStrip.cs, ToolStripManager: Now that we have System renderer, use it
11345 if the user specifies it.
11346 * ToolStripDropDown.cs: Don't reset our Renderer on changing OwnerItem
11347 if we are ManagerRenderMode.
11348 * ToolStripMenuItem.cs: Calculate our text color better.
11349 * ToolStripRenderer.cs, ToolStripProfessionalRenderer.cs: Move some stuff
11350 from Professional to the base class based off working with the System renderer.
11351 * ToolStripSystemRenderer.cs: Added.
11353 2007-07-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11355 * ListView.cs: I'm so lame - the real name is HitTest, not HitInfo.
11357 2007-07-02 Jonathan Pobst <monkey@jpobst.com>
11359 * ToolTip.cs: Implement 2.0 Tag property.
11361 2007-06-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11363 * ListView.cs: Implement 2.0 HitTest methods.
11365 2007-06-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11367 * ListViewItem.cs: Add a 2.0 bool Hot property, to tell whether the
11368 item is under the pointer or not (sugar). Also remove the TODO
11369 regarding to the cursor changes in OneClick activation.
11370 * ThemeWin32Classic.cs: When HotTracking is true and we are drawing
11371 the subitems use the parent's HotFont if UseItemStyleForSubItems is
11372 true; otherwise don't show the underline style.
11374 2007-06-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11376 * ListView.cs: In ItemControl.ItemsMouseMove, refactor
11377 the code to retrieve the item at position only one time. Also
11378 change cursor when Activation is ItemActivation.OneClick as well
11379 as invalidate the item if HotTracking is true (to show/hide the
11380 underline style). Add an internal HotItemIndex property to retrieve
11381 the current hot item's index.
11382 * ListViewItem.cs: Add an internal HotFont property to cache the
11383 font used when HotTracking is true and the pointer moves within the
11385 * ThemeWin32Classic.cs: When drawing the item's text, use Font or
11386 HotFont depending on the hot state of the item.
11388 2007-06-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11390 * ListView.cs: Implement 2.0 HotTracking property.
11392 2007-06-21 Jonathan Pobst <monkey@jpobst.com>
11394 * ToolStripControlHost.cs: If our hosted control never got created,
11395 don't try to dispose it. [Fixes bug #81909]
11397 2007-06-21 Jonathan Pobst <monkey@jpobst.com>
11399 * TableLayoutPanel.cs: Implement ScaleCore, ScaleControl.
11401 2007-06-21 Jonathan Pobst <monkey@jpobst.com>
11403 * TableLayoutPanel.cs: Implement CellBorderStyle. [Fixes bug #81884]
11405 2007-06-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11407 * ThemeWin32Classic.cs: In OwnerDraw mode draw subitems only for
11409 * DrawListViewColumnHeaderEventArgs.cs:
11410 * DrawListViewSubItemEventArgs.cs: Add padding to the bounds when drawing text
11411 using the DrawText () methods.
11413 2007-06-19 Jonathan Pobst <monkey@jpobst.com>
11415 * ToolStripProfessionalRenderer.cs: Put back clearing a ToolStripDropDown's
11416 background which got erased in my changes yesterday.
11418 2007-06-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11420 * ListViewItem.cs: Actually set bounds for subitems in Details view
11422 * ThemeWin32Classic.cs: Refactor the drawing code for subitems, so we
11423 can invoke from the owner draw routines if we need it. Also, add
11424 support for Owner draw in Details view.
11426 2007-06-18 Jonathan Pobst <monkey@jpobst.com>
11428 * ToolStripDropDownMenu.cs, ToolStripItem.cs, ToolStripLabel.cs,
11429 ToolStripMenuItem.cs, ToolStripProfessionalRenderer.cs: Respect the
11430 ShowImageMargin setting, properly align text in a ToolStripLabel
11431 hosted on a ToolStripDropDown.
11433 2007-06-18 Jonathan Pobst <monkey@jpobst.com>
11435 * ToolStrip.cs, ToolStripContentPanel.cs, ToolStripDropDownMenu.cs,
11436 ToolStripProfessionalRenderer.cs: Refactor and clean up some rendering code.
11438 2007-06-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11440 * DrawListViewSubItemEventArgs.cs: Actually implement its methods.
11442 2007-06-18 Jonathan Pobst <monkey@jpobst.com>
11444 * ToolStripLabel.cs: If the label is on a dropdown, adjust the text
11445 location to match ToolStripMenuItems.
11447 2007-06-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11449 * DrawListViewColumnHeaderEventArgs.cs:
11450 * ThemeWin32Classic.cs: Implement 2.0 OwnerDraw support for
11451 column headers in ListView.
11453 2007-06-15 Jonathan Pobst <monkey@jpobst.com>
11455 * UserControl.cs: Implement AutoSize.
11457 2007-06-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11459 * DrawListViewItemEventArgs.cs:
11461 * ThemeWin32Classic.cs: Implement basic support for 2.0 OwnerDraw in
11464 2007-06-15 Jonathan Pobst <monkey@jpobst.com>
11466 * ToolStripDropDownItemAccessibleObject.cs: Added.
11467 * ToolStripDropDownItem.cs, ToolStripItem.cs, ToolStripMenuItem.cs,
11468 ToolStripOverflow.cs, ToolStripOverflowButton.cs, ToolStripPanel.cs,
11469 ToolStripProgressBar.cs, ToolStripSeparator.cs, ToolStripSplitButton.cs,
11470 ToolStripTextBox.cs: corcompare work.
11472 2007-06-14 Jonathan Pobst <monkey@jpobst.com>
11474 * OSFeature.cs, StatusStrip.cs, TabControl.cs, TableLayoutSettings.cs,
11475 TableLayoutStyle.cs, TableLayoutCollection.cs, ToolStripContentPanel.cs,
11476 ToolStripControlHost.cs, ToolStripDropDown.cs, ToolStripDropDownButton.cs:
11479 2007-06-14 Jonathan Pobst <monkey@jpobst.com>
11481 * OSFeature.cs: Add IsPresent.
11482 * PrintPreviewControl.cs: Add RightToLeft.
11483 * SplitContainer.cs: Add AutoScrollOffset, ScaleControl.
11484 * SplitterPanel.cs: Add AutoSizeMode.
11486 2007-06-13 Jonathan Pobst <monkey@jpobst.com>
11488 * LayoutEventArgs.cs: Add 2.0 AffectedComponent.
11489 * MdiClient.cs: Add 2.0 ScaleControl.
11490 * NativeWindow.cs: Implement 2.0 interface IWin32Window.
11491 * NumericUpDownAccelerationCollection.cs: Add [ListBinding].
11493 2007-06-13 Jonathan Pobst <monkey@jpobst.com>
11495 * Form.cs: Implement some scaling methods, stub some RTL methods,
11498 2007-06-13 Jonathan Pobst <monkey@jpobst.com>
11500 * Control.cs: corcompare work.
11501 * FlatButtonAppearance.cs, FolderBrowserDialog.cs: Add TypeConverters.
11503 2007-06-13 Jonathan Pobst <monkey@jpobst.com>
11505 * ControlPaint.cs, Theme.cs, ThemeWin32Classic.cs: Implement
11506 ControlPaint 2.0 stuffs.
11508 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
11510 * ThreadExceptionDialog.cs: Add 2.0 stuffs.
11512 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
11514 * UpDownBase.cs: Add 2.0 stuffs.
11516 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
11518 * NumericUpDown.cs: Add 2.0 stuffs.
11520 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
11522 * NotfiyIcon.cs: Add MouseDoubleClick event, hook up MouseClick event.
11524 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
11526 * ErrorProvider.cs: Implement 2.0 stuffs.
11528 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
11530 * DomainUpDown.cs: Implement 2.0 stuffs.
11532 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
11534 * CheckedListBox.cs: Fix RefreshItems signature.
11536 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
11538 * PictureBox.cs: Implement 2.0 stuffs.
11540 2007-06-12 Andreia Gaita <avidigal@novell.com>
11542 * TabControl.cs: Check if there are tabpages before checking
11543 the selected index - fix #81802 (font changes raise a ResizeTabs
11544 call on controls.add, which blew up nicely with no tabpages)
11546 2007-06-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11549 * ListViewItem.cs: Implement 2.0 ItemSelectionChanged event.
11551 2007-06-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11554 * ListViewItem.cs: In VirtualMode the selection information
11555 resides in the ListView, rather than in the Items. Also, throw
11556 InvalidOperationExceptions when VirtualMode is being used and
11557 CheckedItemCollection is accessed.
11559 2007-06-08 Jonathan Pobst <monkey@jpobst.com>
11561 * ComboBox.cs: Add ScaleControl.
11563 2007-06-08 Jonathan Pobst <monkey@jpobst.com>
11565 * ButtonBase.cs: ButtonBaseAccessibleObject.State should not be visible to 1.1.
11567 2007-06-08 Jonathan Pobst <monkey@jpobst.com>
11569 * GroupBox.cs: Add 2.0 stuffs.
11571 2007-06-08 Jonathan Pobst <monkey@jpobst.com>
11573 * Panel.cs: Add autosize properties/event.
11575 2007-06-07 Jonathan Pobst <monkey@jpobst.com>
11578 - When we remove a control, remove it from the collection before performing the layout.
11579 - Setup an internal property for explicit_bounds.
11580 - Don't let the UpdateBounds in CreateHandle overwrite our explicit bounds.
11581 - Perform a layout when we set a new AutoSizeMode.
11583 2007-06-07 Jonathan Pobst <monkey@jpobst.com>
11585 * ScrollableControl.cs: Add 2.0 stuffs.
11587 2007-06-06 Jonathan Pobst <monkey@jpobst.com>
11589 * ScrollBar.cs: Add 2.0 stuffs.
11591 2007-06-06 Jonathan Pobst <monkey@jpobst.com>
11593 * Splitter.cs: Add 2.0 stuffs.
11595 2007-06-06 Jonathan Pobst <monkey@jpobst.com>
11597 * SplitContainer.cs: Apply patch from Neil Cawse <neilcawse@geotab.com>
11598 to have BindingContext simply use base implementation.
11600 2007-06-06 Jonathan Pobst <monkey@jpobst.com>
11602 * ColumnHeader.cs: corcompare fix.
11604 2007-06-06 Jonathan Pobst <monkey@jpobst.com>
11606 * Button.cs: corcompare fixes.
11607 * ButtonBase.cs: corcompare fixes, add ButtonBaseAccessibleObject.State.
11609 2007-06-06 Jonathan Pobst <monkey@jpobst.com>
11611 * Button.cs: Override GetPreferredSizeCore.
11612 * ButtonBase.cs: PerformLayout after changing properties that can affect
11613 AutoSize. Simplify some mouse/keyboard code.
11614 * Control.cs: PerformLayout after changing Padding if AutoSize = true.
11615 * MouseEventArgs.cs: Make Location internal for 1.1.
11616 * TextRenderer.cs: Make MeasureTextInternal (string, Font, bool) internal for 1.1.
11617 * Theme.cs: Add CalculateButtonAutoSize.
11618 * ThemeWin32Classic.cs: Implement CalculateButtonAutoSize.
11620 2007-06-05 Miguel de Icaza <miguel@novell.com>
11622 * TreeNodeCollection.cs: Applied patch from Neil Cawse <neilcawse@geotab.com>
11624 2007-06-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11626 * ListViewItem.cs: We can't cache Bounds in VirtualMode
11627 since we can get different item instances every time we retrieve it.
11629 2007-06-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11631 * ListView.cs: Work around for #81602, since an unkown an pretty
11632 infrequent condition appears only in some systems (old linux boxes, it
11635 2007-06-04 Jonathan Pobst <monkey@jpobst.com>
11637 * Button.cs: Completely reformat and a little refactor to bring
11638 this closer to Mono circa 2007.
11640 2007-06-04 Jonathan Pobst <monkey@jpobst.com>
11642 * CheckBox.cs, Form.cs, RadioButton.cs: Change call to ButtonBase.Redraw
11643 to be ButtonBase.Invalidate.
11645 2007-06-04 Jonathan Pobst <monkey@jpobst.com>
11647 * ButtonBase.cs: GetPreferredSize is 2.0 only. Fixes build.
11649 2007-06-04 Jonathan Pobst <monkey@jpobst.com>
11651 * ButtonBase.cs: Completely reformat and a little refactor to bring
11652 this closer to Mono circa 2007.
11654 2007-06-01 Everaldo Canuto <ecanuto@novell.com>
11656 * Label.cs: Fixes preferred sizes for 2.0 profile, also adjust some
11657 values for autosize. Fixes #80137.
11659 2007-06-01 Jonathan Pobst <monkey@jpobst.com>
11661 * Control.cs: Don't perform layout when AutoSize changes.
11662 * Form.cs: Perform layout in AutoSize override. Don't set ClientSize
11663 directly when autosizing, use SetBounds with BoundsSpecified.None.
11664 Fixes unit tests my last commit broke.
11666 2007-06-01 Jonathan Pobst <monkey@jpobst.com>
11668 * Control.cs: Perform layout when AutoSize changes.
11669 * Form.cs: Implement AutoSizing.
11671 2007-06-01 Chris Toshok <toshok@ximian.com>
11673 * DataGrid.cs: remove the XXX'ed check at the top of
11674 ProcessGridKey. fixes #80464.
11676 2007-06-01 Chris Toshok <toshok@ximian.com>
11678 * DataGridTextBoxColumn.cs: TextBox.TextChanged event handler
11679 adding idempotent (add/remove in Edit()), and also make sure we
11680 don't add it until after we set the text, so it's not tripped in
11681 Edit(). Fixes unit test regression.
11683 2007-06-01 Jonathan Pobst <monkey@jpobst.com>
11685 * Control.cs: In UpdateBounds, only recalculate anchor distances if the
11686 change is user explicit, not when the layout engine moves stuff. Fixes
11687 anchoring to bottom and right. [Fixes bug #81790]
11689 2007-06-01 Andreia Gaita <avidigal@novell.com>
11691 * PrintDialog.cs: Add collation preview thumbnails. Fixes #80726.
11693 2007-06-01 Andreia Gaita <avidigal@novell.com>
11695 * ContainerControl.cs:
11696 Fire enter event for common ancestor if it is not a ContainerControl.
11697 Send focus to the active_control and not the 'value', the active
11698 control might have been changed in one of the events fired.
11699 Definitely fixes #80159.
11701 2007-06-01 Andreia Gaita <avidigal@novell.com>
11703 * DataGrid.cs: Finish editing when focus leave the datagrid. Fixes #80159.
11705 2007-06-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
11707 * PropertyGrid.cs: Anchor the help description to the bottom of the
11708 help panel and refactor SelectGridItem into a
11709 SelectGridItemInternal that can be set to null (and update it to
11710 clear the help texts when it is set to null). Set root item to null
11711 when there's no SelectedObject. Fixes #80438.
11712 * ScrollableControl.cs: In Recalculate we need to ResumeLayout(true)
11713 when we're recalculating after a resize (only).
11715 2007-05-31 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11717 * ListView.cs: Implement 2.0 RedrawItems method.
11719 2007-05-31 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11721 * ListControl.cs: Disconnect PositionChanged and ItemChanged
11722 handlers from previous data manager when DataSource is set to
11723 null. Fixes #81771.
11725 2007-05-31 Jackson Harper <jackson@ximian.com>
11727 * TextBoxBase.cs: These seem to be the correct values.
11729 2007-05-31 Everaldo Canuto <ecanuto@novell.com>
11731 * FileDialog.cs: When close dialog with ok set filterindex using combobox
11732 value. Fixes #81784.
11734 2007-05-31 Jonathan Pobst <monkey@jpobst.com>
11736 * Control.cs: Implement 2.0 scaling methods.
11738 2007-05-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
11740 * ProgressBar.cs, WebBrowserBase.cs, Control.cs, MaskedTextBox.cs,
11741 MessageBox.cs, PropertyGrid.cs, RichTextBox.cs: Fix warnings and
11744 2007-05-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
11746 * ProgressBar.cs: Implemented missing 2.0 members.
11748 2007-05-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
11750 * Control.cs: Corcompare issues.
11751 * MessageBox.cs: Implemented missing 2.0 functions.
11753 2007-05-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
11755 * CheckedListBox.cs, ListBox.cs, ListControl.cs, ComboBox.cs:
11756 Implemented more 2.0 members.
11758 2007-05-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
11760 * Application.cs: Try to avoid NRE when Assembly.GetEntryAssembly is
11761 null (strange, but it seems to happen when running unit tests).
11763 2007-05-30 Andreia Gaita <avidigal@novell.com>
11765 * ContainerControl.cs: Set active_control even earlier, before
11766 firing any events, and undo it if validation returns false.
11768 2007-05-30 Andreia Gaita <avidigal@novell.com>
11770 * ContainerControl.cs: Raise Validation and Enter/Leave events
11771 even if there is no Form and set active_control earlier, just
11772 before firing Enter events (toshok's patches). Fixes #80647.
11774 2007-05-30 Jackson Harper <jackson@ximian.com>
11776 * TextControl.cs: Redid the pageup/pagedown a little to simplify
11777 things and fix bug #81311.
11779 2007-05-30 Jackson Harper <jackson@ximian.com>
11781 * X11Dnd.cs: Now that we have our own event loop, we need to
11782 cancel when we get a mouseup but it won't be accepted.
11784 2007-05-30 Chris Toshok <toshok@ximian.com>
11786 * DataGrid.cs (set_CurrentCell): guard against negative
11789 * DataGridColumnStyle.cs (CheckValidDataSource): just use the
11790 array index syntax instead of looping over the property names.
11792 * DataGridTextBoxColumn.cs: add a changed handler on the textbox,
11793 and set IsInEditOrNavigateMode to false there.
11795 2007-05-30 Jackson Harper <jackson@ximian.com>
11797 * TreeView.cs: Make sure we don't get a bad visible order when
11798 setting to the top node. Fixes some misc crashing in
11801 2007-05-30 Andreia Gaita <avidigal@novell.com>
11803 * UserControl.cs: Add 2.0 AutoSizeMode
11805 2007-05-29 Everaldo Canuto <ecanuto@novell.com>
11807 * DataGridTextBoxColumn.cs: Fix textbox horizontal offset.
11809 2007-05-29 Everaldo Canuto <ecanuto@novell.com>
11811 * DataGridTextBoxColumn.cs: Fix textbox position to prevent override grid
11812 lines. Fixes #80285.
11814 2007-05-29 Everaldo Canuto <ecanuto@novell.com>
11816 * DataGridColumnStyle.cs: Add char trimming column header text format.
11818 2007-05-29 Everaldo Canuto <ecanuto@novell.com>
11820 * DataGridColumnStyle.cs: Fix grid header arrow drawing over column name.
11823 2007-05-29 Jackson Harper <jackson@ximian.com>
11825 * TreeNode.cs: Fix off by one on calculating whether or not a node
11828 2007-05-29 Jonathan Pobst <monkey@jpobst.com>
11830 * Control.cs: ResumeLayout(false) should recalculate anchor distances.
11831 * ScrollableControl.cs: Force an UpdateDistances when we move the
11835 2007-05-29 Andreia Gaita <avidigal@novell.com>
11837 * PageSetupDialog.cs: Fix #80728 - Changing the printer doesn't
11838 update the page setup screen.
11840 2007-05-29 Andreia Gaita <avidigal@novell.com>
11842 * PageSetupDialog.cs: Fix landscape mode.
11844 2007-05-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11846 * SystemInformation.cs: Add 2.0 IconSizeVerticalSpacing and
11847 IconSizeHorizontalSpacing.
11849 2007-05-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11851 * ListView.cs: The declaration of prev_tooltip_item should be inside
11852 a NET_2_0 conditional (avoid a warning).
11854 2007-05-28 Andreia Gaita <avidigal@novell.com>
11856 * PageSetupDialog.cs: Implement PrintPreview control to display
11857 the preview thumbnail. Change unit conversion to use
11858 PrinterUnitConvert methods.
11860 Note: there is a huge bug in ms.net where the default margins are
11861 interpreted as centimeters (?), when in fact they are set in inches. When
11862 loading the page setup dialog initially (ms.net), the default margins
11863 are set to 1 inch, and the dialog shows them with value 10, when in fact
11864 it should be 25 (properly converted). Our dialog doesn't have this bug.
11866 * Theme.cs, ThemeWin32Classic.cs: Add a CPDrawBorder override for
11868 * ControlPaint.cs: Add a DrawBorder internal method for RectangleF.
11870 2007-05-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11873 * ListViewItem.cs: Implement 2.0 ToolTipText support for listview
11876 2007-05-28 Andreia Gaita <avidigal@novell.com>
11878 * X11Dnd.cs: A direct cast to VirtualKeys is not allowed from
11879 an IntPtr on csc (it builds fine on mcs, could it be a compiler
11880 bug?), convert the ptr to Int32 first.
11882 2007-05-28 Jackson Harper <jackson@ximian.com>
11884 * X11Dnd.cs: Add a timer, so after drop, if a finish is not
11885 recieved, we will exit the dnd tracking loop.
11887 2007-05-28 Jackson Harper <jackson@ximian.com>
11889 * X11Dnd.cs: Keep tracking until the xdnd finished event is
11890 recieved. TODO: I should probably stick a timer on the dropped
11891 event, and finish the drag if the XDND Finished event never shows
11892 (because some apps don't seem to send it).
11894 2007-05-28 Everaldo Canuto <ecanuto@novell.com>
11896 * ToolBar.cs: Fix toolbar default width for button with image. Fixes
11899 2007-05-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
11901 * MonthCalendar.cs: Only mark the keypresses we actually handle as
11904 2007-05-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
11906 * MonthCalendar.cs: Set the size after initializing all the relevant
11907 variables. Fixes #81742.
11909 2007-05-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
11911 * KeyEventArgs.cs: Fix typo.
11913 2007-05-28 Gert Driesen <drieseng@users.sourceforge.net>
11915 * DateTimePicker.cs: Changed exceptions thrown by MinDate and MaxDate
11916 to match MS. Fixed MinDate to only accept value less than or equal
11917 to MaxDate on 2.0 profile and less than MaxDate on 1.0 profile.
11918 Removed TODO's that are now verified by unit tests.
11920 2007-05-27 Gert Driesen <drieseng@users.sourceforge.net>
11922 * TreeNodeCollection.cs: Minor corrections to exceptions to match
11925 2007-05-25 Jackson Harper <jackson@ximian.com>
11927 * X11Dnd.cs: Rework to make StartDrag a blocking call that runs
11928 it's own message loop.
11929 * XplatUIX11.cs: Remove some of the dnd hooks
11931 2007-05-25 Gert Driesen <drieseng@users.sourceforge.net>
11933 * XplatUIX11.cs: Change MinimumWindowSize to {Width=0,Height=0}
11934 instead of MinimizedWindowSize.
11936 2007-05-25 Jackson Harper <jackson@ximian.com>
11938 * TextBoxBase.cs: Raise textchanged when cutting and pasting text.
11940 2007-05-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
11942 * KeyEventArgs.cs: Added SuppressKeyPress.
11943 * Control.cs: Added support for SuppressKeyPress.
11945 2007-05-24 Andreia Gaita <avidigal@novell.com>
11947 * NumericUpDown.cs: Refactor code to fix regressions on #79950 and
11948 problems with PieChart. suppress_validation should not be a counter,
11949 if there are several BeginInit calls, the first EndInit will
11950 activate validation. Fix exceptions thrown by set_Value.
11951 * UpDownBase.cs: ValidateText only if it's the user editing it.
11953 2007-05-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11955 * ListControl.cs: FilterItemOnProperty should return the filtered
11956 item proeprty even if DataSource is null. The same applies for
11957 GetItemText. Fixes #80427.
11959 2007-05-24 Jonathan Pobst <monkey@jpobst.com>
11961 * Control.cs: If a control doesn't have a parent when it's Dock is
11962 set, but it has children, it needs to do a layout. Fixes some nested
11963 controls issues. [Fixes bug #81199]
11965 2007-05-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
11967 * ComboBox.cs: If there are few items in the drop down list, make it
11968 the exact size the items need, no bigger. Fixes #81612.
11970 2007-05-24 Jonathan Pobst <monkey@jpobst.com>
11972 * Application.cs: When we have captured the keyboard for a menu,
11973 check for mouse down events in case we need to close the menu.
11974 * Control.cs, Form.cs: Remove mouse down checks for menus.
11976 2007-05-24 Jackson Harper <jackson@ximian.com>
11978 * TextControl.cs: Handle tabs in non multiline mode a little
11981 2007-05-24 Jackson Harper <jackson@ximian.com>
11983 * TextControl.cs: We need to manually break apart tabbed text and
11984 move the tabs, since the system.drawing tabbing mechanism relies
11986 * TextBoxBase.cs: Move the caret properly when the user enters a
11989 2007-05-24 Jonathan Pobst <monkey@jpobst.com>
11991 * ContainerControl.cs: Don't check CanSelect before calling
11993 * ToolStrip.cs: Only do implicit mnemonics on MenuStrips. Don't
11994 release a KeyboardActive on click if it's not ours.
11996 2007-05-23 Andreia Gaita <avidigal@novell.com>
11998 * ColumnHeader.cs: Add TypeConverter
12000 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
12002 * LinkLabel.cs: Implement LinkCollection.Add with Link parameter (2.0).
12004 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
12006 * LinkLabelLinkClickedEventArgs.cs, LinkLabel.cs: Implement Button property.
12008 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
12010 * LinkLabel.cs: Implement public Padding property.
12012 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
12014 * LinkLabel.cs: Implement public FlatStyle.
12016 2007-05-23 Jonathan Pobst <monkey@jpobst.com>
12018 * Control.cs: Apply patch from George to call parent.PerformLayout
12019 when Visible is changed. [Fixes bugs #81118, 81718]
12021 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
12023 * MainMenu.cs, MenuAPI.cs: Implement Collapse event for MainMenu (2.0).
12025 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
12027 * ContextMenu.cs: Implement ProcessCmdKey with control parameter.
12029 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
12031 * ContextMenu.cs: Implement Collapse.
12033 2007-05-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
12035 * ToolBarButton.cs: Implement Name.
12037 2007-05-22 Everaldo Canuto <ecanuto@novell.com>
12039 * ToolBar.cs: Fix OnButtonDropDown to save item used in dropdown instead of
12040 use current_item, it prevents some NRE. Fixes #81675.
12042 2007-05-22 Andreia Gaita <avidigal@novell.com>
12044 * NumericUpDown.cs: Fix PieChart by not returning from UpdateEditText
12045 without updating the text.
12047 2007-05-22 Jonathan Pobst <monkey@jpobst.com>
12049 * XplatUIWin32.cs: Plug a GDI leak caused by calling Font.ToHfont ()
12050 without calling DeleteObject. [Should fix bug #81709]
12052 2007-05-22 Jackson Harper <jackson@ximian.com>
12054 * RichTextBox.cs: Set the line endings correctly, when flushing
12057 2007-05-22 Gert Driesen <drieseng@users.sourceforge.net>
12059 * XplatUIX11.cs: MinimumWindowSize on X11 is actually
12060 {Width=0,Height=0}.
12062 2007-05-22 Jackson Harper <jackson@ximian.com>
12064 * TreeView.cs: Setting top with a null node should set to the very
12067 2007-05-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
12069 * Form.cs: ShowDialog: destroy the handle when message loop is
12070 finished, matches MS behaviour. Refactor parts of WmClose into
12071 RaiseCloseEvents, that only raises events if they haven't already
12072 been raised. Fixes #81688 and #81521.
12073 * Application.cs: Don't call close on the form when exiting a modal
12074 loop, it will raise all the (Form)Closed/Closing events again if
12075 WM_CLOSE has been sent earlier on, instead call RaiseCloseEvent,
12076 which doesn'r raise any events it they have been raised before.
12078 2007-05-22 Jonathan Pobst <monkey@jpobst.com>
12080 * Control.cs: Add OnPrint.
12081 * ToolStrip.cs: Add GetChildAtPoint.
12082 * ToolStripContainer.cs: Add OnRightToLeftChanged.
12083 * ToolStripRenderer.cs: Make CreateMirrorImage internal.
12085 2007-05-22 Everaldo Canuto <ecanuto@novell.com>
12087 * MenuAPI.cs: Prevent context menu to be typed as MainMenu. Fixes #81509.
12089 2007-05-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
12091 * InternalWindowManager.cs: ToolTipShow: Don't show tooltip if the form
12092 isn't visible anymore. Fixes #81651.
12094 2007-05-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
12096 * Control.cs: WmShowWindow: Update children's z-order after setting
12097 their parent. SetParent may show the window, thereby corrupting
12098 z-order, since the window will be shown on top.
12099 * XplatUIWin32.cs: SetParent: don't call SetVisible on forms. Prevents
12100 multiple (and redundant) WM_SHOWWINDOW messages.
12101 * MdiWindowManager.cs: RaiseDeactivate: only raise after an Activate
12102 event has already been raised.
12103 * Form.cs: Change is_changing_visible_state to a counter, since
12104 SetVisibleCore can be called recursively. CreateHandle: when
12105 creating mdi children, send (De)Activated events.
12106 * MdiClient.cs: Update use of is_changing_visible_state.
12107 * Application.cs: OnThreadException: Surround exception handling with
12108 try/finally to ensure we always reset the error-handling state
12111 2007-05-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
12113 * ThemeWin32Classic.cs: DrawProgressBar: Avoid a DivideByZero exception
12116 2007-05-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12118 * ListView.cs: Use Theme.ListViewHorizontalSpacing for List and
12119 SmallIcon views, now that we have a standarized horizontal spacing.
12121 * ThemeWin32Classic.cs: ListViewHorizontalSpacing now has a value of
12122 4, just like the other views (Match .Net).
12124 2007-05-21 Jonathan Pobst <monkey@jpobst.com>
12126 * Control.cs: Delay calculating anchor distances until we actually layout.
12127 Always query the WM for the actual size and location it put us at instead of
12128 only when we send negative values.
12129 [Fixes bugs #81694, 81695]
12131 2007-05-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
12133 * Application.cs: Avoid a possible stack overflow when trying to exit
12136 2007-05-19 Marek Safar <marek.safar@gmail.com>
12138 * Theme.cs (GetHatchBrush): A key uses internal value instead of formated
12141 2007-05-19 Andreia Gaita <avidigal@novell.com>
12143 * NumericUpDown.cs: Added 2.0 methods (spin acceleration)
12144 * NumericUpDownAcceleration.cs,
12145 NumericUpDownAccelerationCollection.cs: Added 2.0
12148 2007-05-19 Gert Driesen <drieseng@users.sourceforge.net>
12150 * RichTextBox.cs: Recalculate the document after the ScrollBars
12151 property is changed. Fixes bug #81681.
12153 2007-05-18 Jonathan Pobst <monkey@jpobst.com>
12155 * DataObject.cs: Implement 2.0 methods.
12157 2007-05-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12159 * ThemeWin32Classic.cs: Draw the check marks in ListViewItems
12160 in the center of the checkbox, not in the left-top corner.
12163 2007-05-18 Jackson Harper <jackson@ximian.com>
12165 * RichTextBox.cs: Recalculate the document after the scrollbars
12166 property is changed.
12167 * TextBoxBase.cs: ScrollBars is not a flags enum...This fixes
12170 2007-05-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
12172 * CreateParams.cs: Make HasWindowManager marginally faster.
12173 * XplatUIX11.cs, Hwnd.cs: CreateWindow: Move the default location code
12174 into Hwnd so that other drivers can use it as well.
12175 * XplatUIWin32.cs: CreateWindow: If the window has a window manager get
12176 the default location from Hwnd. Fixes MDI client windows always
12177 showing up at (0,0) in Windows (Win32 won't set the default
12178 location since the window styles aren't correct).
12180 2007-05-18 Gert Driesen <drieseng@users.sourceforge.net>
12182 * TreeView.cs: Modified DoubleBuffered to just use the base
12185 2007-05-18 Jackson Harper <jackson@ximian.com>
12187 * TreeView.cs: Set the top node to the last child node when
12189 - When we get focus, if there is no selected node, use the top
12192 2007-05-18 Jonathan Pobst <monkey@jpobst.com>
12194 * KeysConverter.cs: Add CanConvertTo.
12195 * LinkLabel.cs: Add some 2.0 constructors and properties to LinkLabel.Link.
12196 * LinkConverter.cs: Added.
12198 2007-05-18 Everaldo Canuto <ecanuto@novell.com>
12200 * Cursor.cs: Apply Sebastien patch from #81669 to open file in read mode,
12201 it prevents error when file dont have write access. Fixes #81669 and #81667.
12203 2007-05-18 Everaldo Canuto <ecanuto@novell.com>
12205 * ThemeWin32Classic.cs: Check for ShowKeyboardCues true when draw toolbar
12206 button text. Fixes #79640.
12208 2007-05-18 Everaldo Canuto <ecanuto@novell.com>
12210 * Control.cs: According to MSDN controls created in the designer theres
12211 keyboard accelerators visible by default. So included check for design
12212 in ShowKeyboardCuesInternal.
12214 2007-05-18 Everaldo Canuto <ecanuto@novell.com>
12216 * ThemeWin32Classic.cs: Check for ShowKeyboardCues true when draw combobox
12217 text. Fixes #81621.
12219 2007-05-18 Everaldo Canuto <ecanuto@novell.com>
12221 * Control.cs: ShowKeyboardCuesInternal add to expose ShowKeyboardCues
12222 for 1.0, becuse ShowKeyboardCues is protected on 1.0.
12224 2007-05-17 Everaldo Canuto <ecanuto@novell.com>
12226 * Control.cs: Finish implementation of UI State using WmChangeUIState
12227 to send WM_UPDATEUISTATE to all child controls. Some hack will be needed
12228 in some controls to check for show_keyboard_cues to draw accell keys "_".
12230 2007-05-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12232 * ListBox.cs: When calculating the horizontal scrollbar
12233 in single column mode, don't use values less than 0 for
12234 Maximum. Fixes #81474.
12236 2007-05-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12238 * ListBox.cs: Throw the some missing exceptions in
12239 ListBox.ObjectCollection methods.
12241 2007-05-17 Jackson Harper <jackson@ximian.com>
12243 * TextBoxBase.cs: Recalculate the document when the word wrap
12244 value has changed. This fixes 81488.
12246 2007-05-17 Jonathan Pobst <monkey@jpobst.com>
12248 * Clipboard.cs: Implement missing GetText overload.
12250 2007-05-17 Chris Toshok <toshok@ximian.com>
12252 * Control.cs (CheckDataBindings): remove the binding_context arg
12255 * CurrencyManager.cs (OnItemChanged): fix this now that
12256 BindingManagerBase is fixed. also remove the comment telling where
12257 the fix should go. We set transfering_data to true/false around
12258 the call to PushData to keep UpdateIsBinding from being called.
12259 (ListChangedHandler): remove the extra OnMetaDataChanged call for
12260 PropertyDescriptorAdded in the 1.1 case. The extra call is
12261 actually generated by System.Data generating 2 metadata changed
12262 events of its own per column add. The fix should go there. Add a
12263 comment to that affect in our test's Assert.Ignore.
12265 * BindingManagerBase.cs: Rework PullData and PushData slightly.
12266 we keep a boolean flag (transfering_data) that keeps us from
12267 calling UpdateIsBinding multiple times if we re-enter either of
12270 * ControlBindingsCollection.cs (AddCore): remove the
12271 binding_context arg to binding.Check.
12273 * Binding.cs (IsBinding): don't check if we're binding here, just
12274 return our cached value. we update it in UpdateIsBinding.
12275 (Check): don't take the binding_context arg, we'll just use our
12276 control's. Also, for some reason MS doesn't use the data member
12277 field when getting the bindingmanager for this binding. it just
12278 uses the datasource. Make this method callable multiple times,
12279 and only do the is_null_desc stuff if manager.Position != -1 (so
12280 we don't get an exception accessing manager.Current).
12281 (UpdateIsBinding): move the code from IsBinding here.
12282 (PositionChangedHandler): call Check here to we can initialize
12283 things that require a non- -1 position.
12285 2007-05-17 Everaldo Canuto <ecanuto@novell.com>
12287 * Form.cs: When alt keys is pressed send WM_CHANGEUISTATE to top level
12290 2007-05-17 Andreia Gaita <avidigal@novell.com>
12292 * TabControl.cs: Add 2.0 methods and events, including
12293 OnEnter / OnLeave and raises it for tabpages (fixes #79869)
12294 * TabPage.cs: Add 2.0 methods
12296 2007-05-17 Everaldo Canuto <ecanuto@novell.com>
12298 * Control.cs: Implement WmUpdateUIState, show_focus_cues and
12299 keyboard_cues is properly handled by message method.
12301 2007-05-17 Jonathan Pobst <monkey@jpobst.com>
12303 * TreeViewImageIndexConverter.cs: Add 2.0 methods.
12305 2007-05-17 Jonathan Pobst <monkey@jpobst.com>
12307 * ToolStripTextBox.cs: Wire up new 2.0 Textbox methods/properties.
12309 2007-05-16 Everaldo Canuto <ecanuto@novell.com>
12312 - WmUpdateUIState added to handle state changes, it make call to
12313 OnChangeUICues event.
12314 - Fixed ShowKeyboardCues to check for MenuAccessKeysUnderlined in
12317 2007-05-16 Jonathan Pobst <monkey@jpobst.com>
12319 * ImageKeyConverter.cs: Added.
12320 * TreeViewImageKeyConverter.cs: Added.
12322 2007-05-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12324 * ToolTips.cs: Update Text if SetToolTip is called for a control
12325 already showing the tooltip, as well as restarting its timer; show
12326 tooltip if we are inside the control bounds by the time of calling
12327 SetToolTip. Inside ShowTooltip remove the check to not show the
12328 tooltip again for the active control (it is allowed by .Net to
12329 show the tooltip on the same control multiple times).
12331 2007-05-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
12333 * MaskedTextBox.cs: Small fix for Text that fixes a broken test.
12335 2007-05-16 Andreia Gaita <avidigal@novell.com>
12337 * ContainerControl.cs: only process tab key if there are no
12338 modifier keys present, otherwise the control does the
12339 tab processing, if it needs to. Fixes #81622
12340 * TabControl.cs: Fixes calculation for which tab to select on
12343 2007-05-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
12345 * MaskedTextBox.cs: Small fix for Text that fixes a broken test.
12347 2007-05-15 Jonathan Pobst <monkey@jpobst.com>
12349 * Control.cs: Make IsInputCharInternal to allow controls to
12350 override it and still match MS API.
12351 * TextBoxBase.cs: Override IsInputCharInternal and always
12355 2007-05-15 Jackson Harper <jackson@ximian.com>
12357 * TextBox.cs: Disable some of the menu options when using a
12360 2007-05-15 Jackson Harper <jackson@ximian.com>
12364 * RichTextBox.cs: Some new 2.0 methods
12366 2007-05-15 Gert Driesen <drieseng@users.sourceforge.net>
12368 * FileDialog.cs: On 1.0 profile, do not support multidotted
12371 2007-05-14 Jackson Harper <jackson@ximian.com>
12373 * TextBoxBase.cs: Implement some of the new 2.0 methods.
12374 * RichTextBox.cs: We need to override these methods on 2.0.
12375 * MaskedTextBox.cs: These are implemented now
12376 * TextControl.cs: This was off by one.
12378 2007-05-14 Jackson Harper <jackson@ximian.com>
12380 * TextControl.cs: Because the line endings are including in the
12381 text, we don't need to add them in anymore.
12383 2007-05-11 Everaldo Canuto <everaldo@simios.org>
12385 * ToolBar.cs: Fix autosize and get it working only after hadle is created,
12386 also prevent redraw in set_autosize if handle is not created. Fixes #81523.
12388 2007-05-11 Everaldo Canuto <everaldo@simios.org>
12390 * ToolBar.cs: Adjust size to default size when button theres no text and
12391 image, it fixes remaining issues from #81524.
12393 2007-05-11 Everaldo Canuto <everaldo@simios.org>
12396 - When not flat call redraw to recalculate sizes on creare handle to match
12398 - Revert 77220 because it causes some regressions in toobar
12401 2007-05-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
12403 * MaskedTextBox.cs: Update the base text whenever the text changes. MTB
12404 now actually enters a usable state.
12406 2007-05-11 Everaldo Canuto <everaldo@simios.org>
12408 * ToolBar.cs: Check for handle created in redraw to prevent unneeded size
12409 calculations, it reduces the size cauculation from 7 to 3 on a toolbar with
12412 2007-05-11 Everaldo Canuto <everaldo@simios.org>
12414 * ToolBar.cs: Save default_size on create handle to use later for buttons
12415 without text, needed to mimic win32 behavior.
12417 2007-05-11 Everaldo Canuto <everaldo@simios.org>
12419 * ToolBar.cs: Fix button layour to best fit width or height according to
12420 vertical or not. Fixes #81524.
12422 2007-05-10 Everaldo Canuto <everaldo@simios.org>
12424 * ToolBarButton.cs: When change style call ToolBar.Redraw to update
12425 toolbar size info because different styles theres different sizes.
12428 2007-05-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12430 * ThemeWinClassic.cs: For .Net 2.0 don't draw any image
12431 if we are using checkboxes, checked is true, and we have less
12432 than two images in StateImageList; for the 1.1 in the same scenario
12433 draw the first image if we have at least one image in StateImageList.
12434 Fixes part of #81191.
12436 2007-05-10 Jonathan Pobst <monkey@jpobst.com>
12438 * ToolStrip.cs, ToolStripManager.cs: We need to remove items from
12439 the owner's Items collection on merge.
12441 2007-05-10 Jonathan Pobst <monkey@jpobst.com>
12443 * ToolStrip.cs: Use new internal ToolStripItemCollection constructor.
12444 * ToolStripItemCollection.cs: Lots of fixes to when events get called
12445 and parent/owner gets changed based on gert's unit tests.
12447 2007-05-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
12449 * MaskedTextBox.cs: Started implementing parts of it.
12451 2007-05-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12453 * ListView.cs: When clicking the checkbox on the items
12454 take into account the double clicks even if we have only
12455 one image in StateImageList (only for 1.0/1.1). Also
12456 generate an extra change of checked state when we receive
12457 the second click on checkbox (match .Net behaviour).
12458 Fixes part of #81191.
12460 2007-05-10 Everaldo Canuto <everaldo@simios.org>
12462 * ThemeWin32Classic.cs: Fix text rectangles in Tooltips.
12464 2007-05-10 Jonathan Pobst <monkey@jpobst.com>
12466 * Form.cs: Move some of OnLoad to OnLoadInternal so it gets called
12467 even if OnLoad is overriden and base.OnLoad is not called.
12470 2007-05-10 Andreia Gaita <avidigal@novell.com>
12472 * TableLayoutSettings.cs: A big doh! fix and bowing down of head in
12473 shame. (I blame my ever-persisting and annoying cold)
12475 2007-05-09 Jonathan Pobst <monkey@jpobst.com>
12477 * ListView.cs: Don't eat navigation keys. Let them flow through to
12478 KeyDown/KeyPress routines. [Fixes bug #81569]
12480 2007-05-09 Jonathan Pobst <monkey@jpobst.com>
12482 * ListView.cs: When handling keys for selecting the item based off
12483 keyboard input, do not consider keys pressed with Alt or Control. Also,
12484 correctly handle keys when the Shift key is down. [Fixes bug #81578]
12486 2007-05-09 Jonathan Pobst <monkey@jpobst.com>
12488 * Control.cs: When using UseWaitCursor, we have to store the requested
12489 Cursor to use when UseWaitCursor is turned off.
12491 2007-05-09 Jonathan Pobst <monkey@jpobst.com>
12493 * Control.cs: Implement PreProcessControlMessage. Default IsInputChar
12495 * Application.cs: Use PreProcessControlMessage instead of
12497 * PreProcessControlMessage.cs: Make internal for 1.1.
12499 2007-05-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12501 * Control.cs: Add InternalContains focus property, which hast the same
12502 functionality of ContainsFocus, but also including implicit controls.
12503 * ListViewItem.cs: Use InternalContainsFocus instead of ContainsFocus,
12504 since we need to know if the focus is contained in our implicit
12505 ItemControl when calculating Layout. Fixes part of #80888.
12507 2007-05-08 Everaldo Canuto <everaldo@simios.org>
12509 * ToolTip.cs: Remove center form string alignment as it must be align to
12512 2007-05-08 Jonathan Pobst <monkey@jpobst.com>
12514 * ToolStripItemCollection.cs: Set the new item's parent and owner
12515 in Insert like we do in Add. [Fixes bug #81568]
12517 2007-05-08 Jackson Harper <jackson@ximian.com>
12519 * TreeView.cs: GotFocus differences between 1.1 and 2.0.
12520 - Off by one error in SetTop
12521 - Disable DoubeBuffering
12523 2007-05-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
12525 * ScrollableControl.cs: ScrollIControlntoView: we now only move the
12526 control as much as necessary in order to make it entirely visible,
12527 instead of centering the control in the container (matches MS
12528 behaviour). CalculateCanvasSize: we need to take the current scroll
12529 position into account when calculating the maximum canvas,
12530 otherwise the following scenario will fail: resize so that the
12531 scrollbars appear, use the scrollbars to scroll, resize again
12532 smaller, and now the canvas size is too small. Recalculate: when
12533 showing scrollbars make sure they start off at 0, and try to scroll
12534 the active control into view. Fixes #79540. HandleScrollBar: don't
12535 scroll anywhere if the scrollbar isn't visible.
12537 2007-05-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12539 * ListView.cs: When focus changed, call Layout/Invalidate
12540 in the focused item to update the selected state (should show
12541 entire label when ListView is focused, and a part of it if is not).
12542 * ListViewItem.cs: When doing layout for LargeIcon, take into account
12543 for displaying the entire label not only the Focused state of the
12544 item, but also the Focused state of the ListView (match .Net
12547 2007-05-07 Jonathan Pobst <monkey@jpobst.com>
12549 * Control.cs: Stub CanRaiseEvents, IsMirrored, and NotifyClients.
12550 Implement UseWaitCursor.
12552 2007-05-07 Jonathan Pobst <monkey@jpobst.com>
12553 Applying contributed patch from Sergey Volk.
12555 * Clipboard.cs: Implement SetDataObject retry logic and new overload
12557 * XplatUIWin32.cs: Throw an ExternalException if the clipboard set fails.
12559 2007-05-07 Jonathan Pobst <monkey@jpobst.com>
12561 * Control.cs: Implement DrawToBitmap.
12563 2007-05-07 Jonathan Pobst <monkey@jpobst.com>
12564 Applying contributed patch from Stefan Noack.
12566 * Control.cs: Add [Get|Set]AutoSizeMode.
12568 2007-05-07 Jonathan Pobst <monkey@jpobst.com>
12570 * MdiClient.cs: Unmerge menus when the last child is closed.
12572 2007-05-07 Jonathan Pobst <monkey@jpobst.com>
12574 * ToolStrip.cs: Do not call BeginMerge on DropDowns.
12575 * ToolStripManager.cs: Call Merge on DropDowns.
12578 2007-05-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
12580 * XplatUIWin32.cs: Changed Win32CreateWindow to take enums instead of
12582 * Form.cs: CreateParams: don't set WS_VISIBLE if we're changing
12583 visibility. We can't create forms visible, since we have to set the
12584 owner before making the form visible (otherwise Win32 will do
12585 strange things with task bar icons). The problem is that we set the
12586 internal is_visible to true before creating the control, so
12587 is_changing_visible_state is the only way of determining if we're
12588 in the process of creating the form due to setting Visible=true -
12589 this works because SetVisibleCore explicitly makes the form
12590 visibile afterwards anyways. Fixes #80775.
12592 2007-05-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12594 * ThemeWin32Classic.cs: When drawing ListViewItems,
12595 use StringTrimming.EllipsisCharacter if the view is Tile, Details,
12596 or LargeIcon _and_ item is not focused (match .Net behaviour).
12598 2007-05-04 Jonathan Pobst <monkey@jpobst.com>
12600 * Control.cs, Form.cs: Fix some obsolete method warnings.
12602 2007-05-04 Jonathan Pobst <monkey@jpobst.com>
12604 * Control.cs: Implement GetChildAtPoint and OnParentCursorChanged.
12605 * GetChildAtPointSkip.cs: Make internal for 1.1 profile.
12607 2007-05-04 Andreia Gaita <avidigal@novell.com>
12609 * ContainerControl.cs: Fix active_control attribution when going
12610 up the parent chain so that the first parent container gets the control
12611 and the rest of the parent containers get the child containers (skips
12612 non-containers). Fixes #80729
12614 2007-05-04 Randolph Chung <tausq@debian.org>
12616 * FileDialog.cs: Implement the SupportMultiDottedExtensions property.
12619 2007-05-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
12621 * XplatUIX11.cs: Add a TranslateWindowSizeToXWindowSize overload that
12622 takes a size parameter, since the CreateParam's size isn't true for
12623 minimized forms. Fixes #81518,
12625 2007-05-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
12627 * Form.cs: Add OnDeactivateInternal.
12628 * MdiClient.cs: Raise Deactivate event. Fixes #81409.
12630 2007-05-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
12632 * DateTimePicker.cs: CalculateDropDownLocation: do a null check before
12633 accessing the parent. Fixes #81508.
12635 2007-05-03 Chris Toshok <toshok@ximian.com>
12637 * CurrencyManager.cs (CurrencyManager.ListChangeHandler): in the
12638 2.0 block, pass listposition + 1 to ChangeRecordState when a row
12639 was added before the current listposition. Fixes the
12640 TestInsertRowBeforeCurrent unit test.
12642 2007-05-03 Jonathan Pobst <monkey@jpobst.com>
12644 * Application.cs: Add RaiseIdle.
12645 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
12646 XplatUIX11.cs: Implement RaiseIdle.
12648 2007-05-02 Jonathan Pobst <monkey@jpobst.com>
12649 corcompare work: N - Z
12653 * ScrollableControl.cs
12654 * SplitContainer.cs
12657 * SystemInformation.cs
12659 * TableLayoutControlCollection.cs
12660 * TableLayoutPanel.cs
12665 * ToolStripComboBox.cs
12666 * ToolStripContainer.cs
12667 * ToolStripContentPanel.cs
12668 * ToolStripDropDown.cs
12669 * ToolStripDropDownItem.cs
12670 * ToolStripDropDownMenu.cs
12672 * ToolStripItemCollection.cs
12673 * ToolStripMenuItem.cs
12674 * ToolStripPanel.cs
12675 * ToolStripSplitButton.cs
12678 * TreeNodeCollection.cs
12679 * TreeNodeMouseHoverEventArgs.cs
12682 2007-05-01 Everaldo Canuto <everaldo@simios.org>
12684 * ContextMenu.cs: Add public method Show with alignment property to 2.0
12685 stuff. Thanks aatdark for the patch.
12687 2007-05-01 Jonathan Pobst <monkey@jpobst.com>
12689 * GridItem.cs: Implement 2.0 Tag property.
12691 2007-05-01 Frederik Carlier <frederik.carlier@carlier-online.be>
12693 * TreeNodeCollection.cs: Fix ContainsKey and IndexOfKey methods to use
12694 count instead of Nodes.Length. [Fixes bug #81448]
12696 2007-05-01 Jonathan Pobst <monkey@jpobst.com>
12698 * ComboBox.cs: Fix paramName sent to ArgumentOutOfRangeException's.
12701 2007-05-01 Jonathan Pobst <monkey@jpobst.com>
12702 corcompare work: A - M
12703 * BindingNavigator.cs
12708 * FlowLayoutPanel.cs
12714 2007-05-01 Jonathan Pobst <monkey@jpobst.com>
12716 * Application.cs: Give toolstrips a chance to process mnemonics.
12717 * ToolStrip.cs, ToolStripDropDownButton.cs, ToolStripItem.cs,
12718 ToolStripItemTextRenderEventArgs.cs, ToolStripLabel.cs,
12719 ToolStripMenuItem.cs, ToolStripSplitButton.cs: Implement keyboard mnemonics.
12721 2007-05-01 Jackson Harper <jackson@ximian.com>
12723 * TextBoxBase.cs: Better preferred height, FixedSingle gets the
12725 - Don't set the BoundsSpecified
12727 2007-04-30 Jonathan Pobst <monkey@jpobst.com>
12729 * Application.cs: When using the toolstrip shortcut mechanism, allow the
12730 message to pass through to a regular control if it hosted by a toolstrip.
12731 * ToolStrip.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
12732 ToolStripManager.cs: Enable keyboard navigation for ToolStrips.
12734 2007-04-30 Jonathan Pobst <monkey@jpobst.com>
12736 * TextRenderer.cs: Use the flags argument when using the MeasureString
12737 fallback algorithm.
12739 2007-04-30 Jonathan Pobst <monkey@jpobst.com>
12741 * MenuStrip.cs: Don't let multiple ToolStripSeparators get added to
12742 the MDI menu item. [Fixes bug #81483]
12744 2007-04-30 Gert Driesen <drieseng@users.sourceforge.net>
12746 * DataGridViewColumn.cs: Initialize value of headercell to zero-length
12747 string. When setting Name to null, use zero-length string instead.
12749 2007-04-29 Andreia Gaita <avidigal@novell.com>
12751 * TabControl.cs: Implement missing 2.0 methods (SelectTab,
12752 DeselectTab). Implement missing 2.0 TabPageCollection methods
12753 (Add, ContainsKey, RemoveByKey, IndexOfKey)
12755 2007-04-29 Pedro Martínez Juliá <pedromj@gmail.com>
12757 * DataGridViewColumn.cs: Make HeaderText take preference over Name.
12759 2007-04-29 Gert Driesen <drieseng@users.sourceforge.net>
12761 * RichTextBox.cs: In LoadFile, use StreamReader to read plain text.
12762 Fixes bug #81479. Include details of exception when LoadFile fails.
12764 2007-04-28 Alan McGovern <alan.mcgovern@gmail.com>
12766 * DrawListViewSubItemEventArgs.cs: Added missing setter
12768 2007-04-27 Andreia Gaita <avidigal@novell.com>
12770 * ToolTip.cs: Add missing 2.0 properties. Implement 2.0 Show and
12771 Hide methods (not complete). Implement missing 2.0 OnPopup event.
12773 2007-04-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12775 * ListView.cs: In ItemControl.OnMouseDown restore a pair of braces I
12776 removed in ly last commit (it was breaking the Label edit feature).
12778 * ThemeWin32Classic.cs: When drawing a ListViewItem use
12779 StringAlignment.Near for LineAlignment (match .Net).
12781 2007-04-27 Andreia Gaita <avidigal@novell.com>
12783 * TabControl.cs: Change SetTab so it adds the tabpage to the list
12784 of controls if it isn't already there - was blowing up when doing
12785 tabcontrol.TabPages[i]=new TabPage().
12786 SetTab now does a replace by removing the page at the index.
12787 Add a new InsertTab method that inserts a page in a given index
12788 instead of replacing.
12789 Implements TabPageCollection.Insert(int, TabPage).
12791 2007-04-27 Chris Toshok <toshok@ximian.com>
12793 * BindingManagerBase.cs: fill in CurrentItemChanged (and have an
12794 internal handler that can be invoked from our subclasses.) Also,
12795 add a comment to PushData about how we need to fix it.
12797 * CurrencyManager.cs: tons of changes here. trying to get things
12798 matching the behavior of .net wrt event orders (ItemChanged,
12799 CurrentChanged, PositionChanged.) I've implemented a private .net
12800 symbol (ChangeRecordState) that appears in stack traces because
12801 it's actually easier to do this than to effective inline all its
12802 various behaviors at every call site.
12804 * RelatedPropertyManager.cs: guard against an exception here by
12805 not using parent.Current if the position is set to -1 (if the
12806 parent datasource is cleared, for instance).
12808 * Binding.cs: don't parse data in PushData (this might be wrong,
12809 but it jives with MS's behavior.) Also, don't call PushData when
12810 we get a CurrentChanged event.
12812 2007-04-27 Andreia Gaita <avidigal@novell.com>
12816 WebBrowserSiteBase.cs,
12817 HtmlDocument.cs: Added stubbed out classes, no real implementations
12820 2007-04-27 Everaldo Canuto <everaldo@simios.org>
12822 * MainMenu.cs: In draw method without parameters call draw method with
12823 PaintEvent, another one (just rect) adjust rectangle and we dont need it
12824 as Rect property is already adjusted. Fixes #80694.
12826 2007-04-27 Jonathan Pobst <monkey@jpobst.com>
12828 * Application.cs: Need to handle keyboard menu deselection here.
12829 * Control.cs: Use WM_SYSKEYUP instead of WM_SYSCOMMAND to start menu keyboard
12830 navigation, allowing keyboard to work on X11.
12831 * ToolStrip.cs: Don't worry about handling the Menu key here anymore.
12833 2007-04-27 Everaldo Canuto <everaldo@simios.org>
12835 * MenuAPI.cs: When deactivate menu verify if hotkey (_) is active and redraw
12836 menu bar. It fixes some drawing issues in menu bar.
12838 2007-04-27 Everaldo Canuto <everaldo@simios.org>
12840 * MenuAPI.cs: Remove unneeded "keynav_state = KeyNavState.Idle" before
12841 Deactivate calls, Deactivate method already do it. Also ser ActiveTracker
12842 when <alt> key is pressed.
12844 2007-04-26 Everaldo Canuto <everaldo@simios.org>
12846 * XplatUIX11.cs: Simplify SystrayRemove to be like other libraries, Gtk as
12847 example just set visible to false and make this prevent from other problems.
12848 In SystrayAdd always remove pending expose. Fixes #81072.
12850 2007-04-26 Marek Safar <marek.safar@gmail.com>
12852 * TextBoxBase.cs (CaretMoved): Consider scroll maximum when scroll
12855 2007-04-26 Alan McGovern <alan.mcgovern@gmail.com>
12857 * ListView.cs: Added three missing 2.0 events and corresponding
12858 EventHandlers. Added the OwnerDraw property.
12859 * DrawListViewColumnHeaderEventHandler.cs: fixed typo
12861 2007-04-26 Alan McGovern <alan.mcgovern@gmail.com>
12863 * DrawListViewItemEventArgs.cs
12864 * DrawListViewSubItemEventArgs.cs: Brought classes up to 2.0 status.
12866 2007-04-26 Alan McGovern <alan.mcgovern@gmail.com>
12868 * TextControl.cs: Fixed typo in constructor
12870 2007-04-26 Jonathan Pobst <monkey@jpobst.com>
12872 * Application.cs: Create a shortcut path so that currently selected
12873 MenuStrips can intercept keyboard events without having focus.
12874 * Control.cs: Handle WM_SYSCOMMAND message to activate MenuStrips.
12875 * MenuStrip.cs, ToolStrip.cs, ToolStripDropDown.cs, ToolStripDropDownItem.cs,
12876 ToolStripItem.cs, ToolStripManager.cs, ToolStripMenuItem.cs: Support
12877 keyboard navigation (arrows, tab, enter, esc) on Windows. Still need to
12878 generate WM_SYSCOMMAND message in X11 for other platforms.
12879 * ToolStripProfessionalRenderer.cs: ToolStripMenuItems need to be painted
12880 in OnRenderMenuItemBackground instead of OnRenderButtonBackground.
12881 * ToolStripSplitButton.cs: Add DefaultItem property.
12883 2007-04-26 Everaldo Canuto <everaldo@simios.org>
12885 * MainMenu.cs: In OnMenuChanged pass PaintEventArgs to Draw method, it
12886 fixes some menu draw problem on Windows with border diferent from default
12887 it also fixes #81403.
12889 2007-04-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
12891 * Form.cs: Refactor WndProc into separate methods, just like Control is
12894 2007-04-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
12896 * Control.cs: set_Text: move the call to the driver into a seperate
12897 virtual method so that Form can override it.
12898 * MaskedTextBox.cs: Corcompare fixes.
12899 * Form.cs: Override UpdateWindowText and only update the styles if the
12900 form has been shown (fixes #81405).
12902 2007-04-25 Jonathan Pobst <monkey@jpobst.com>
12904 * Control.cs, Form.cs: Use the better supported WM_?BUTTONDOWN and
12905 WM_ACTIVATE messages instead of WM_MOUSEACTIVATE and
12906 WM_ACTIVATEAPP. This fixes menus not disappearing on X11 when
12907 the form lost focus or another control was clicked.
12909 2007-04-25 Gert Driesen <drieseng@users.sourceforge.net>
12911 * DataGrid.cs: Uncomment MakeTransparent calls since bug #80151 is
12914 2007-04-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
12916 * DrawListViewColumnHeaderEventHandler.cs, DrawToolTipEventArgs.cs,
12917 DrawListViewItemEventHandler.cs,
12918 DrawListViewSubItemEventHandler.cs, DrawToolTipEventHandler.cs:
12920 * X11Structs.cs: More ToString implementation.
12922 2007-04-25 Jonathan Pobst <monkey@jpobst.com>
12924 * ToolStripDropDownItem.cs: Don't lazy create a DropDown in Dispose.
12925 * ToolStripOverflowButton.cs: Don't lazy create a DropDown in HasDropDownItems.
12927 2007-04-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
12929 * Control.cs: Only raise OnVisibleChanged if we're not recreating the
12931 * FormCollection.cs: Don't add a form if it's already in the
12933 * Form.cs: Change ShowDialog () to call ShowDialog (owner) with a null
12934 according to behaviour and MSDN. The ownerWin32 is the active
12935 window at the moment when we call ShowDialog, not the context's
12936 main form (the context's main form may open another form that opens
12937 a form with ShowDialog, the win32 owner is the second form). Add
12938 and remove forms to the Application.OpenForms in other places to
12939 better match MS behaviour. Add an IsActive property that raises
12940 On(de)Activated only if the active state has changed (we were
12941 raising OnDeactivated before OnActivated while creating forms).
12942 * Application.cs: Refactor Enabling/Disabling of windows for modal
12943 dialog loops out to separate methods, and restore the thread
12944 context when we quit the method. Fixes #81407.
12946 2007-04-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12948 * ListView.cs: In ItemControl.HandleClicks, also fire
12949 2.0 MouseClick or MouseDoubleClick events on the parent,
12950 not only the Click/DoubleClick events.
12952 2007-04-24 Andreia Gaita <avidigal@novell.com>
12954 * TableLayoutSettings.cs:
12955 - Added a GetControls method and a support structure to help the
12956 TypeConverter to enumerate the controls for serialization.
12957 - Added a new serialization constructor.
12958 - Added a isSerialized flag initialized to true on the
12959 serialization constructor so that the TableLayoutPanel.LayoutSettings
12960 setter does not throw the designed NotSupportedOperation exception
12961 when the object is built through deserialization.
12962 - Implemented GetObjectData
12964 * TableLayoutPanel.cs: Added check on LayoutSettings.
12966 2007-04-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12968 * ListView.cs: Report Click and DoubleClick events to the parent
12969 from ItemsMouseUp, instead of ItemsMouseDown. This prevents us
12970 from breaking the click count state when using dialog forms (Control
12971 reports the clicks in a similar fashion). In the previous behaviour
12972 the last WM_LBUTTONUP message in a double click was sent to the
12973 ListView's form, instead of the ListView, which was breaking the click
12974 count for it. Fixes #80387.
12976 2007-04-24 Alan McGovern <alan.mcgovern@gmail.com>
12978 * BindingNavigator.cs : fixed bugs revealed by new nunit tests
12980 2007-04-24 Jonathan Pobst <monkey@jpobst.com>
12982 * ToolStripDropDownItem.cs: Lazy initialize the DropDown. This prevents
12983 us from created dropdowns for menu items that do not have subitems.
12984 * ToolStripItem.cs, ToolStripProfessionalRenderer.cs, ToolStripSplitButton.cs:
12985 Check HasDropDownItems before calling DropDown so a dropdown will not be
12986 created if it isn't needed.
12988 2007-04-24 Jackson Harper <jackson@ximian.com>
12990 * TreeView.cs: Set the first node to the selected node when we get
12991 focus if there is no selected node.
12993 2007-04-24 Andreia Gaita <avidigal@novell.com>
12995 * MimeIcon.cs: remove using blocks so that image streams are
12996 not disposed of. Fixes #80151
12998 2007-04-24 Jackson Harper <jackson@ximian.com>
13000 * TextBoxBase.cs: Fixup the height of textboxes when the control
13003 2007-04-24 Jonathan Pobst <monkey@jpobst.com>
13005 * ToolStrip.cs: Fully implement GetNextItem. Call OnParentRightToLeftChanged
13006 for each ToolStripItem when the parent's RightToLeftChanged is called.
13008 2007-04-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
13010 * ComboBox.cs: Forward ContextMenu to the underlying textbox, if any.
13012 * Control.cs: Replace GetContextMenuInternal() with ContextMenuInternal
13013 property, so that the setter can be overriden too.
13014 * TextBox.cs: Change GetContextMenuInternal() to use
13015 ContextMenuInternal.
13017 2007-04-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
13019 * ThemeWin32Classic.cs: Use a black pen to draw checkboxes, fixes
13022 2007-04-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
13024 * ThemeWin32Classic.cs: Use a black pen to draw checkboxes, fixes
13027 2007-04-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
13029 * MaskedTextBox.cs: Commit this so nobody else starts working on it and
13030 avoid duplicate work. Mostily skeleton code, it's not working at
13033 2007-04-20 Leszek Ciesielski <skolima@gmail.com>
13035 * NotifyIcon.cs : stub for MouseClick event
13036 * Application.cs: stub for SetUnhandledExceptionMode
13038 2007-04-24 Alan McGovern <alan.mcgovern@gmail.com>
13040 * BindingNavigator.cs : Initial (partial) implementation
13042 2007-04-23 Jackson Harper <jackson@ximian.com>
13044 * TreeView.cs: Do not create the treeview's handle when setting
13045 the scroll position.
13046 - ExpandAll needs to compute the scrollbars so it knows which
13047 position to set the bar too.
13049 * TreeNodeCollection.cs: Pass new flag to UpdateScrollBars
13051 2007-04-23 Jackson Harper <jackson@ximian.com>
13053 * TextBoxBase.cs: Non multiline textboxes shouldn't take the enter
13056 2007-04-23 Jonathan Pobst <monkey@jpobst.com>
13058 * ToolStripItem.cs: Make GetImageSize internal.
13059 * ToolStripMenuItem.cs: Use GetImageSize to determine the size we
13060 need to draw an item. Fixes a reported issue where images on menus
13061 that were not 16x16 were drawing incorrectly.
13063 2007-04-21 Miguel de Icaza <miguel@novell.com>
13065 * Padding.cs: Use the converter, fixes the resgen2 issue with
13068 2007-04-21 Jackson Harper <jackson@ximian.com>
13070 * TreeView.cs: Dont try to unhighlight the selected node if there
13071 isn't a selected node.
13073 2007-04-21 Jackson Harper <jackson@ximian.com>
13079 * TreeView.cs: Use the InternalBorderStyle property to set the
13080 initial border style, this forces the client rectangle to be sized
13083 2007-04-20 Jackson Harper <jackson@ximian.com>
13085 * TreeView.cs: Simplify scrolling to the last node after expanding
13087 - Fix some off by ones with setting the bottom.
13089 2007-04-20 Jonathan Pobst <monkey@jpobst.com>
13091 * Control.cs: Use DefaultSize for Size, calculate ClientSize from
13092 that. We were incorrectly doing it the other way around. Also,
13093 update ClientSize if we change the BorderStyle before the control
13096 2007-04-20 Gert Driesen <drieseng@users.sourceforge.net>
13098 * XplatUI.cs: Added Border3DSize, BorderSize, CaptionButtonSize,
13099 DoubleClickSize, DoubleClickTime and FixedFrameBorderSize. Renamed
13100 XplatUIDriver.Caption to CaptionHeight. Spaces to tabs.
13101 * XplatUIDriver.cs: Added Border3DSize, BorderSize, CaptionButtonSize,
13102 DoubleClickSize, DoubleClickTime and FixedFrameBorderSize. Renamed
13103 Caption to CaptionHeight.
13104 * XplatUIX11.cs: Renamed Caption to CaptionHeight.
13105 * Theme.cs: Modified Border3DSize, BorderSize, CaptionButtonSize
13106 and FixedFrameBorderSize to return value from current XplatUI driver.
13107 * XplatUIWin32.cs: Implemented Border3DSize, BorderSize,
13108 CaptionButtonSize, DragFullWindows, DoubleClickSize, DoubleClickTime
13109 and FixedFrameBorderSize using win32 API. Renamed Caption to
13111 * XplatUIOSX.cs: Renamed Caption to CaptionHeight.
13112 * SystemInformation.cs: Fixed typo in BorderSize.
13114 2007-04-20 Gert Driesen <drieseng@users.sourceforge.net>
13116 * XplatUI.cs: Added MenuAccessKeysUnderlined.
13117 * XplatUIDriver.cs: Added MenuAccessKeysUnderlined.
13118 * XplatUIX11.cs: Implemented MenuAccessKeysUnderlined by always
13120 * Theme.cs: Modified MenuAccessKeysUnderlined to return corresponding
13121 value from XplatUI driver.
13122 * XplatUIWin32.cs: Implemented MenuAccessKeysUnderlined using
13123 SystemParametersInfo.
13124 * ThemeWin32Classic.cs: Remove obsolete MenuAccessKeysUnderlined
13126 * XplatUIOSX.cs: Implemented MenuAccessKeysUnderlind by always
13129 2007-04-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
13131 * XplatUIX11.cs, Hwnd.cs: Remove warnings.
13133 2007-04-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
13135 * MessageBox.cs, XplatUIX11.cs, Hwnd.cs: Remove warnings.
13137 2007-04-20 Jonathan Pobst <monkey@jpobst.com>
13139 * ToolStripManager.cs: Fix a reported InvalidCastException when unmerging
13140 MenuStrips that contain ToolStripSeparators.
13142 2007-04-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
13144 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Add
13145 DefineStdCursorBitmap.
13146 * Cursor.cs: Add an internal constructor so that the Cursor knows if it
13147 has been created off a standard cursor. This is used to get a
13148 bitmap of the standard cursor when Draw or DrawStretched is called
13149 in order to draw the cursor.
13150 * X11Structs.cs: Added XcursorImage and XcursorImages.
13151 * XplatUIX11.cs, XplatUIWin32.cs: Add and implement
13152 DefineStdCursorBitmap.
13153 * Cursors.cs: Update all relevant creations of Cursor to use the new
13154 internal constructor.
13156 2007-04-19 Jackson Harper <jackson@ximian.com>
13158 * TextBox.cs: Move the has_been_focused into the base control, so
13159 some of the text adding methods can manipulate it (probably time
13160 for a better name for this flag too).
13161 - Call a new version of selectall that doesn't scroll
13162 * TextBoxBase.cs: When we append text, if the document is empty,
13163 don't scroll. If the document has text already, we scroll to the
13164 end of the appended text.
13165 - When the text is changed, we reset the has_been_focused, so the
13166 next time the control gets focused, all the text is selected.
13168 2007-04-19 Jackson Harper <jackson@ximian.com>
13170 * TextControl.cs: Move the margins to the document, add a method
13171 so the margin sizes can be updated.
13172 * TextBoxBase.cs: When the border style is changed, update the
13175 2007-04-19 Jonathan Pobst <monkey@jpobst.com>
13177 * Control.cs: Respect DefaultPadding.
13178 * GroupBox.cs: Implement DefaultPadding, DisplayRectangle takes
13179 padding into account.
13180 * ToolStrip.cs: Remove setting padding to DefaultPadding in constructor.
13182 2007-04-19 Jackson Harper <jackson@ximian.com>
13184 * TextControl.cs: Oops, we need to use the ClientRect not the
13187 2007-04-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13189 * ListView.cs: In ItemControl.ItemsMouseDown, take into
13190 account the double clicks when CheckBoxes are used and
13191 the pointer is inside the checkbox. Fixes part of #81191.
13193 2007-04-18 Jackson Harper <jackson@ximian.com>
13195 * TextControl.cs: Pressing the end key shouldn't move the caret
13196 past the line ending.
13197 * TextBoxBase.cs: We can still delete if we are in the line
13198 ending and the combine will just kill the existing line ending.
13200 2007-04-18 Jackson Harper <jackson@ximian.com>
13202 * TextControl.cs: We can't move lines, then invalidate their
13203 bounds, we need to get the old bounds and combine that with the
13205 * TextBoxBase.cs: Before combining two lines for a delete, we need
13206 to invalidate the area of the old line, since that will be moved
13207 in the combine operation.
13209 2007-04-18 Everaldo Canuto <everaldo@simios.org>
13211 * LinkLabel.cs: In OnPaint invoke draw background to fix problems
13212 with transparent background. Fixes #80482.
13214 2007-04-18 Jonathan Pobst <monkey@jpobst.com>
13216 * PictureBox.cs: Refresh on resize when SizeMode = Zoom.
13217 * ThemeWin32Classic.cs: Implement PictureBox.SizeMode = Zoom.
13220 2007-04-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
13222 * CreateParams.cs: Add a couple of helper methods and do a less string
13223 concatenation in ToString.
13224 * XplatUIX11.cs: Add an TranslateClientRectangleToXClientRectangle
13225 overload that takes a Control parameter, since this method may be
13226 called before a control is assigned to the hwnd (from
13227 CreateWindow), and update CreateWindow to use the new overload. In
13228 GetMenuOrigin subtract the title bar from the y position if the
13229 form has a window manager (since we're painting it and not X).
13230 * XplatUIWin32.cs: If we can get a form in GetMenuOrigin use the form's
13231 CreateParams to calculate the origin (since border sizes may vary).
13232 In ScreenToMenu only subtract the title height if we actually have
13234 * MdiWindowManager.cs: Override MenuHeight to always return 0, since
13235 mdi children never have menus of themselves.
13236 * InternalWindowManager.cs: Implement menu handling like form does.
13237 Added GetMenuOrigin to calculate the menu origin, can't use the
13238 CreateParams from the form like normally since it's lying.
13239 * Hwnd.cs: Implement GetBorderSize better (in the sense more
13240 windows-like) and add Inflate and comparison operators to the
13241 Borders type. When calculating MenuOrigin and it's a form with a
13242 window manager, use the window manager to calculate it.
13244 2007-04-17 Chris Toshok <toshok@ximian.com>
13246 * Control.cs (CreateControl): turns out in 2.0 we don't need this
13247 OnBindingContextChanged thing here. It's only generated from
13248 ContainerControl.OnCreateControl. Fixes a newly written unit test
13249 - BindingTest.BindingContextChangedTest4.
13251 2007-04-17 Jackson Harper <jackson@ximian.com>
13253 * ScrollBar.cs: When setting values, make sure the current
13254 position stays within the new values range.
13256 2007-04-17 Chris Toshok <toshok@ximian.com>
13258 * Control.cs (CreateControl): talk about a bizarre corner case.
13259 Don't emit OnBindingContextChanged here if we're a parentless
13260 control (i.e. if we're a form.). Fixes
13261 BindingTest.BindingContextChangedTest2.
13263 2007-04-17 Everaldo Canuto <everaldo@simios.org>
13265 * ButtonBase.cs: Remove TextFormatFlags.WordBreak to mimic same behavior
13266 from win32. Fixes #81255.
13268 2007-04-17 Everaldo Canuto <everaldo@simios.org>
13270 * ThemeWin32Classic.cs: Remove text offset from DrawButtonText as it is
13271 already present in CalculateButtonTextAndImageLayout.
13273 2007-04-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
13275 * XplatUIX11.cs: When setting min/max size for a window we need to
13276 translate the coordinates to x coordinates. Create an overload of
13277 SetWindowMinMax that takes a CreateParams handling this, and change
13278 SetWMStyles to call this function (can't use Control.FromHandle in
13279 the SetWindowMinMax to get the control/CreateParams from the handle
13280 because the handle might not have been assigned to the control
13281 yet). Fixes #81371.
13283 2007-04-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13285 * ListView.cs: In ItemControl.ItemMouseDown, don't change check state
13286 if StateImageList is non-null and it has less than two items (match MS
13287 behaviour). Also, in HandleNavKeys handle the Space key, calling
13288 the new ToggleItemsCheckState method, which tries to change the
13289 checked state of the selected items. Fixes part of #81191.
13291 2007-04-16 Jackson Harper <jackson@ximian.com>
13293 * RichTextBox.cs: namespace cleanup.
13295 2007-04-16 Everaldo Canuto <everaldo@simios.org>
13297 * XplatUIWin32.cs: Back last parameter to true in SetClipRegion.
13299 2007-04-16 Everaldo Canuto <everaldo@simios.org>
13302 * Control.cs: Call invalidate in set_Region.
13304 * XplatUIX11.cs, XplatUIWin32.cs: Remove invalidate from SetClipRegion as
13305 it dont works here.
13307 2007-04-16 Jackson Harper <jackson@ximian.com>
13309 * TextBoxBase.cs: When enter is pressed, we need to update all
13310 lines below the current.
13312 2007-04-16 Jonathan Pobst <jpobst@monkey.com>
13314 * MdiClient.cs: Implement implicit menu merging for MDI
13315 children. When a child form is active, if it has a menustrip
13316 and the parent form has a MainMenuStrip, automatically merge
13319 2007-04-15 Andreia Gaita <avidigal@novell.com>
13321 * TabControl.cs: Refactored sizing methods to not repeat
13322 code all over the place. Tab bounds are now calculated
13323 as if alignment is top and single line, and only when
13324 setting the bounds are the positions adjusted according
13325 to alignment. Replaced hardcoded positions, spacings and
13326 paddings by getting the values the ThemeEngine.
13329 * Theme.cs: Change TabControl properties and methods so
13330 that all start with TabControl*. Added more properties
13331 to help remove hardcoded values on tabcontrol.
13332 Add CPDrawBorder3D declaration so the Theming classes
13335 * ThemeClearlooks.cs, ThemeNice.cs: Method signature changes from Theme.
13337 * ThemeWin32Classic.cs: Rector TabControl out to the TabControlPainter
13338 on the Theming namespace, and call the appropriate methods here.
13339 Change CPDrawBorder3D to public.
13341 2007-04-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13343 * Control.cs: In WmRButtonUp, send the WM_CONTEXTMENU message to
13344 the control after firing the OnMouseUp event, instead of sending
13345 the message before the mentioned event. This is so we can match the
13346 MS behaviour. Fixes part of #80385.
13348 2007-04-13 Jonathan Pobst <monkey@jpobst.com>
13350 * ToolStripItem.cs: Call the RightToLeftChanged event when setting the
13351 RightToLeft property.
13353 2007-04-13 Jonathan Pobst <monkey@jpobst.com>
13355 * ToolStrip.cs: Add properties and internal methods to support merging.
13356 * ToolStripItem.cs: Add MergeAction and MergeIndex.
13357 * ToolStripItemCollection.cs: Add Insert and Remove methods that do
13358 not trigger reparenting or layouts.
13359 * ToolStripManager.cs: Add Merge and RevertMerge methods.
13360 * ToolStripOverflow.cs: Add a convenience method to find the ToolStrip that
13361 is hosting the overflow menu.
13363 2007-04-13 Jackson Harper <jackson@ximian.com>
13365 * TextControl.cs: Set the line ending correctly for the first
13368 2007-04-13 Sebastien Pouliot <sebastien@ximian.com>
13370 * Theme.cs: Update GetMethod to get the new definition for
13371 KnownColors.Update (and fix theme color updates).
13373 2007-04-12 Everaldo Canuto <everaldo@simios.org>
13375 * MessageBox.cs: Fix some test and button position.
13377 2007-04-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13379 * Form.cs: Consider the implicit controls in
13380 GetRealChildAtPoint. We need it since this method
13381 is called on Form when handling the some messages in
13382 WndProc, and need to consider those implicit ones too.
13385 2007-04-12 Jonathan Pobst <monkey@jpobst.com>
13387 * ToolStripMenuItem.cs: Display the ShortcutKeyDisplayString even
13388 if there are no ShortcutKeys set.
13389 * ToolStripProfessionalRenderer.cs: If an item has had its BackColor
13390 set, use it when painting.
13392 2007-04-12 Jackson Harper <jackson@ximian.com>
13394 * TextControl.cs: Fix some off-by-one issues in line duplication
13395 and insertion in the undo manager. Also, overwrite the first tag
13396 of a line on insert, if it is just a zero lengthed tag. This
13397 prevents us from getting an extra stranded tag at the beginning of
13400 2007-04-11 Everaldo Canuto <everaldo@simios.org>
13402 * Label.cs: Remove check for handle created in CalcAutoSize, we need
13403 to calculated proper size including when handle was not created yet.
13405 2007-04-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
13407 * MdiWindowManager.cs: When moving a form, allow the form to be moved
13408 when the mouse is outside of it's parent's client rectangle. Fixes
13409 #79982 (take 3, part 2).
13411 2007-04-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
13413 * X11Structs.cs: Add a few ToString() overrides.
13414 * XplatUIX11.cs: Added GetTopLevelWindowLocation to try to calculate
13415 the window location in a window-manager independent way. Reworked
13416 FrameExtents, it now actually works. Reworked AddConfigureNotify
13417 and ReparentNotify handling to use GetTopLevelWindowLocation
13418 instead of the earlier, more hacky solution. Reworked SetWMStyles,
13419 hopefully for the better: we now set _NET_WM_WINDOW_TYPE* for all
13420 windows, DIALOG for modal windows, UTILITY for toolboxes and NORMAL
13421 for all other windows (fixes #81281 part 1), a toolwindow is hidden
13422 from the taskbar if it has a parent (fixes #81281 part 2 for kwin),
13423 and generally refactored to do as few calculations as possible
13426 2007-04-09 Sebastien Pouliot <sebastien@ximian.com>
13428 * Theme.cs: Change "reflective-contract" between MWF and SD to
13429 minimize # of calls, avoid Color serialization and avoid updating
13430 every "known colors" each time a single one is updated.
13432 2007-04-09 Gert Driesen <drieseng@users.sourceforge.net>
13434 * DataGridTextBoxColumn.cs: Only set IsInEditOrNavigateMode to false
13435 when not readonly and the text is explicitly set. Code style updates.
13436 * DataGridTableStyle.cs: Removed extra line.
13437 * DataGrid.cs: Code style updates. Removed extra whitespace.
13438 * DataGridColumnStyle.cs: Code style updates. Removed extra
13441 2007-04-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
13443 * XplatUIX11.cs: Added comment that "fixes" #80021.
13445 2007-04-09 Jackson Harper <jackson@ximian.com>
13447 * TextControl.cs: We don't need this -1 on the line count anymore.
13449 2007-04-09 Gert Driesen <drieseng@users.sourceforge.net>
13451 * DataGridTextBoxColumn.cs: In Commit, use TypeConverter to convert
13452 entered value to underlying type, and convert it back to a string to
13453 apply formatting. Modified GetFormattedValue to use TypeConverter
13456 2007-04-08 Gert Driesen <drieseng@users.sourceforge.net>
13458 * ListViewItem.cs: Added null checks. Avoid duplicating code in ctors.
13459 Use SubItems property when we want to ensure there's at least one
13460 subitem. Modified SubItems property to ensure there's always at least
13461 one subitem. Avoid using ListViewSubItemCollection.AddRange to match
13462 the NRE's reported by MS.
13464 2007-04-07 Gert Driesen <drieseng@users.sourceforge.net>
13466 * ProgressBar.cs: On 2.0 profile, default forecolor is Highlight. Added
13467 ResetForeColor override on 2.0. Fixed a few API compatibility issues.
13468 Spaces to tabs. Removed extra tabs.
13470 2007-04-06 Jonathan Pobst <monkey@jpobst.com>
13472 * ToolStripSplitStackLayout.cs: If we run out of things to hide, don't
13473 infinite loop. (Forgot to copy to the horizontal toolstrip case.)
13475 2007-04-06 Jackson Harper <jackson@ximian.com>
13477 * TextBoxBase.cs: When a delete removes a line, recalculate all
13478 lines below that line (they need to get offsets setup correctly)
13481 2007-04-05 Jackson Harper <jackson@ximian.com>
13483 * TextControl.cs: We need to invalidate across the width of the
13484 document when we are invalidating multiple lines.
13485 * TextBoxBase.cs: Don't delete into the line ending.
13487 2007-04-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13489 * ListView.cs: Restore the check for the MouseHover event
13490 in ListView. It looks like the ListView fires more than one MouseHover
13491 event when HoverSelection is true _only_ in weird-corner scenarios, but
13492 in most of the cases it only fires one. Also, add the 2.0 ItemMouseHover
13495 2007-04-05 Mike Kestner <mkestner@novell.com>
13497 * ListView.cs : raise MouseDown before updating selection.
13498 [Fixes #80373 tab 1&3]
13500 2007-04-05 Jonathan Pobst <monkey@jpobst.com>
13502 * ToolStripRenderer.cs: Add static method to mirror image.
13503 * ToolStripProfessionalRenderer.cs: Support ImageTransparentColor
13504 and RightToLeftAutoMirrorImage.
13505 * ToolStripItem.cs: Remove MonoTODO from ImageTransparentColor.
13507 2007-04-05 Jonathan Pobst <monkey@jpobst.com>
13509 * ToolStripSplitStackLayout.cs: Support Alignment property.
13510 * ToolStripItem.cs: Remove MonoTODO from the Alignment property.
13512 2007-04-05 Jackson Harper <jackson@ximian.com>
13514 * TextControl.cs: Move around the line endings when crossing line
13516 - When combining lines, strip the ending text off the first line.
13518 2007-04-05 Jackson Harper <jackson@ximian.com>
13521 * TextBoxBase.cs: Try to never move the cursor into the line
13524 2007-04-04 Jonathan Pobst <monkey@jpobst.com>
13526 * ToolStripItem.cs: Make sure we aren't firing mouse events when
13527 the item is disabled. Also add a few missing methods.
13529 2007-04-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13531 * ListView.cs: We don't need the MouseEnter/MouseLeave check
13532 to fire just one MouseHover event when HoverSelection is true, since
13533 .Net does fire more than one MouseHover event in that scenario. Also,
13534 fix the selection in HoverSelection, by invoking UpdateMultiSelect
13535 if MultiSelect is true, instead of only setting ListViewItem.Selected.
13536 Finally, we need to reset the Hover logic in MouseMove, even when we
13537 don't have a selected item.
13539 2007-04-04 Jonathan Pobst <monkey@jpobst.com>
13541 * ToolStrip.cs: Add several missing methods, properties, and events.
13543 2007-04-04 Chris Toshok <toshok@ximian.com>
13545 * DataGridTextBoxColumn.cs: set the bounds of the text box to
13546 (0,0,0,0) in Commit, as MS does.
13548 * DataGrid.cs: call EndEdit() from Select() as microsoft does, and
13549 make sure we set CurrentRow on a row header click *before* calling
13550 Select. This moves the current cell (and the textbox) to the new
13551 row. The call to Select then hides the textbox, giving us the
13552 correct behavior. Fixes #80362.
13554 * CurrencyManager.cs (UpdateIsBinding): raise ItemChanged (-1).
13555 (ListChangedHandler): reorder the position/current changed events,
13556 and call UpdateIsBinding in the ItemAdded case.
13558 * GridColumnStylesCollection.cs: add some columns events, one of
13559 which raises the CollectionChanged event.
13561 2007-04-04 Jackson Harper <jackson@ximian.com>
13563 * TextControl.cs: When we delete multiple selection lines
13564 invalidate the selection area, don't need to do that for single
13565 lines because the final update view will handle it.
13567 2007-04-04 Jonathan Pobst <monkey@jpobst.com>
13569 * Control.cs: When we CreateControl, we need to also create all of the
13570 control's children. The child's OnLoad must also fire before the parent's
13571 OnLoad. Fixes the toolbox size in PDN.
13573 2007-04-04 Jackson Harper <jackson@ximian.com>
13575 * TextBoxBase.cs: When the user presses enter, insert a line
13576 ending into the text. (Maybe this would be a good spot for
13577 Environment.NewLine).
13578 * TextControl.cs: Remove undo manager hack, line endings get
13579 inserted properly now.
13581 2007-04-04 Everaldo Canuto <everaldo@simios.org>
13584 - Remove unneeded parameters in UpdateCursor.
13585 - Fix UpdateCursor to check if menu is active.
13586 - Call UpdateCursor when menu deactivate my click.
13587 [Fixes remaining issues from #80410]
13589 2007-04-04 Everaldo Canuto <everaldo@simios.org>
13591 * Control.cs: GetRealChildAtPoint method added, it make an
13592 recursive child control search for the point.
13594 * Form.cs: Makes use of GetRealChildAtPoint in mouse event after closes
13597 * MenuAPI.cs: Makes use of GetRealChildAtPoint in UpdateCursor.
13599 2007-04-03 Everaldo Canuto <everaldo@simios.org>
13601 * Form.cs: Fix mouse position when send back mouse event after closes
13604 2007-04-03 Everaldo Canuto <everaldo@simios.org>
13606 * Form.cs: Simplify the BUTTONDOWN for active tracker.
13608 2007-04-03 Jonathan Pobst <monkey@jpobst.com>
13610 * Control.cs: Fix an issue where if a user resized a control inside
13611 a sizing method like OnResize, we would overwrite their explicit
13612 value. Also, only call DefaultSize once in the constructor instead
13613 of 4 times. Also, do not call SetBoundsCore from SetBounds if
13614 nothing actually changed.
13616 2007-04-03 Jackson Harper <jackson@ximian.com>
13618 * TextControl.cs: Don't attempt to copy text for lines with no
13619 text in them (technically this shouldn't happen, but we aren't
13620 always inserting line endings when we should be).
13622 2007-04-03 Jackson Harper <jackson@ximian.com>
13624 * TextBoxBase.cs: Calculate the scrollbars before calculating the
13625 document, because this sets some of the document size properties
13628 2007-04-03 Jackson Harper <jackson@ximian.com>
13630 * TextBoxBase.cs: We need to calculate maximums even if this is
13631 not a multiline control, because the maxs are used for scrolling.
13632 - Display the caret after doing a page up/down, we need to
13633 manually display it because a proper CaretMoved event isn't
13634 triggered (this is because of the way the math is done to
13635 determine how far to scroll).
13637 2007-04-03 Jonathan Pobst <monkey@jpobst.com>
13639 * ToolBar.cs: Fix some breakage caused by the SetBoundsCore change.
13640 (ToolBar was relying on SetBoundsCore to default the values sent
13641 base off of BoundsSpecified.)
13643 2007-04-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
13645 * DateTimePicker.cs: Change Text so that when a null value or empty
13646 string is assigned to the test we always raise ValueChanged and
13647 TextChanged (earlier implementation would only raise ValueChanged
13648 if the current date value was different from DateTime.Now).
13650 2007-04-03 Andreia Gaita <avidigal@novell.com>
13652 * ButtonBase: Call update after invalidation, fixes #80194
13654 2007-04-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
13656 * ThemeWin32Classic.cs: Draw StatusBar using double buffering. Fixes
13659 2007-04-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
13661 * XplatUIX11.cs: SetWMStyles: If the control is a form with
13662 FormBorderStyle = None, don't give the window any decorations.
13665 2007-04-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
13667 * XplatUI.cs, XplatUIDriver.cs: Updated CalculateWindowRect parameters.
13668 * CreateParams.cs: Fix IsSet, wasn't working correctly when the style
13669 to check for is a mix of several styles (such as WS_CAPTION for
13671 * Control.cs: Don't paint an area bigger than the client area when
13672 painting the background colour. Add an internal GetCreateParams.
13673 Update calls to XplatUI.CalculateWindowRect due to API change.
13674 * XplatUIX11.cs: In PerformNCCalc set the initial size to the whole
13675 window's size, and handle WM_NCCALCSIZE in DefWndProc to calculate
13676 the size if it hasn't been handled by any windows. When creating
13677 and moving windows, X wants the location of the entire window, but
13678 the size of the client window, so add
13679 TranslateClientRectangleToXClientRectangle,
13680 TranslateWindowSizeToXWindowSIze and
13681 TranslatedXWindowSizeToWindowSize to cope with this, and call them
13682 before every window creation and move. Update CalculateWIndowRect
13683 to use Hwnd.GetWindowRect (one step towards removing DeriveStyles).
13684 In AddConfigureNotify don't do anything if the hwnd is a zombie
13685 (fixes the BadWindow we were getting while running the tests),
13686 always calculate the offsets when it's a parentless window, not
13687 only when reparented, and translate the window size, since we're
13688 getting the client size of the whole window, excluding entire
13690 * Theme.cs: Added BorderSizableSize.
13691 * XplatUIWin32.cs: Fix RECT Height and Width. Don't fake styles here
13692 anymore. Update calls to XplatUI.CalculateWindowRect due to API
13694 * Form.cs: Update calls to XplatUI.CalculateWindowRect due to API
13695 change. Fake the window styles here instead of in XplatUIWin32 so
13696 that all back-ends get the same window styles (and it's Form that's
13697 deciding when to use wm, not the Win32 backend anyways)
13698 * Hwnd.cs: Completely reworked GetWindowRectangle and
13699 GetClientRectangle - they are now passed a CreateParams and they
13700 only use Style and ExStyle to determine the rectangles (they should
13701 now work just like Win32AdjustWindowRectEx - though quite a few
13702 special cases are probably missing). They should also be 100%
13703 complimentary (i.e. GetWindowRectangle (GetClientRectangle (rect))
13704 == rect), and all numbers (borders, menu sizes) are taken from the
13705 current theme. Added a GetBorders helper function that will return
13706 the borders for any given CreateParams (including captions and
13707 menus), and GetBorderSize that returns the given border size only.
13708 * XplatUIOSX.cs: Update calls to CalculateWindowRect and
13709 Hwnd.GetClientRectangle.
13711 2007-04-02 Chris Toshok <toshok@ximian.com>
13713 * DataGridBoolColumn.cs: rewrite things a bit, and fix up the
13714 logic between the values we present to the user and the values
13715 which are stored in the column's property. Also, don't call
13716 GetPreferredSize - it's virtual. Along the way, fix bug #80965.
13718 2007-04-02 Jackson Harper <jackson@ximian.com>
13720 * TextBoxBase.cs: Scroll faster!
13722 2007-04-02 Jonathan Pobst <monkey@jpobst.com>
13724 * StatusStrip.cs: Layout fixes for PDN.
13725 * ToolStrip.cs: Set item's available to true, and placement to main when
13727 * ToolStripItem.cs: Fix an Available issue, check that Parent is really
13728 changing in setter before doing any work, add InternalVisible.
13729 * ToolStripPanel.cs: Remove unused variable to fix compiler warning.
13730 * ToolStripSplitStackLayout.cs: If we run out of things to hide, don't
13733 2007-04-02 Jackson Harper <jackson@ximian.com>
13735 * TextBox.cs: LBUTTON does not make the textbox select all of it's
13738 2007-04-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
13740 * XplatUIWin32.cs: Use the previous change in SetParent for forms only.
13741 Makes ToolStripComboBoxes show up again.
13743 2007-04-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13745 * ListView.cs: Add a hover_pending field in ListView
13746 to fire just one OnMouseHover event for each MouseEnter/MouseLeave
13747 cycle (we are resetting the MouseHover logic in XplatUI
13748 to handle HoverSelection). Fixes #80429.
13750 2007-04-02 Jackson Harper <jackson@ximian.com>
13752 * TextControl.cs: Make sure the attributes get set on the last
13754 - Still have to do the end tag if we have stepped all the ways to
13757 2007-04-02 Sebastien Pouliot <sebastien@ximian.com>
13759 * XplatUIOSX.cs, XplatUIX11.cs, XplatUIX11GTK.cs: Remove dependency
13760 on an internal libgdiplus call when the information is already
13761 available via the public API.
13763 2007-04-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
13765 * Control.cs: Call ContainerControl.ChildControlRemoved whenever a
13766 control is removed from a control collecftion.
13767 * XplatUIX11.cs: The first location for toplevel form is (22, 22).
13768 Fixes FormPropertyTest (failed on rare occasions).
13769 * XplatUIWin32.cs: Add a workaround in SetParent for strange behaviour
13770 of Win32SetParent (when changing from no parent to a parent it
13771 might add the new parent's location in screen coordinates to this
13772 window's location).
13773 * Form.cs: Rework ChangingParent once again, now the handle is
13774 recreated whenever a FormWindowManager is added or removed (that is
13775 whenever a normal form is parented or abandoned). Also change
13776 CreateParams so that all non-toplevel windows always get the
13777 specified sice (StartupPosition is never considered for
13778 non-TopLevel forms).
13779 * ContainerControl.cs: Add ChildControlRemoved, the container control
13780 needs to be notified when a control is removed from it's
13781 collection, in the case the removed control is the active control.
13783 2007-04-02 Jackson Harper <jackson@ximian.com>
13785 * RichTextBox.cs: Use the new methods for setting the font and
13786 color, these methods set the specified attribute without
13787 overriding the other attributes.
13789 2007-04-02 Jonathan Pobst <monkey@jpobst.com>
13791 * ToolStripPanel.cs: Fixes for better layouts in PDN.
13793 2007-03-31 Gert Driesen <drieseng@users.sourceforge.net>
13795 * TextBox.cs: Added internal ChangeBackColor method to special-case
13796 Color.Empty. Added check for invalid ScrollBars value.
13797 * TextBoxBase.cs: Added internal ChangeBackColor method.
13798 * RichTextBox.cs: Only set backcolor_set on 2.0 profile. Added
13799 internal ChangeBackColor method to special-case Color.Empty. Added
13800 check for invalid ScrollBars value.
13802 2007-03-30 Everaldo Canuto <everaldo@simios.org>
13804 * MenuItem.cs: On invalidate prevent form to create handle. [Fixes #81272]
13806 2007-03-30 Jonathan Pobst <monkey@jpobst.com>
13808 * ScollableControl.cs: Add HorizontalScroll and VerticalScroll properties.
13809 * ScrollProperties.cs, HScrollProperties.cs, VScrollProperties.cs: Added.
13810 [Based on submitted patch from Olivier Duff.]
13812 2007-03-30 Jackson Harper <jackson@ximian.com>
13814 * TextBox.cs: Only select all on initial focus if the user has not
13815 specified a selection area.
13817 2007-03-30 Jonathan Pobst <monkey@jpobst.com>
13819 * UserControl.cs: Override CreateParams.
13821 2007-03-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
13825 * XplatUI.cs, XplatUIDriver.cs: Updated CalculateWindowRect parameters.
13826 * CreateParams.cs: Fix IsSet, wasn't working correctly when the style to
13827 check for is a mix of several styles (such as WS_CAPTION for instance).
13828 * Control.cs: Don't paint an area bigger than the client area when painting
13829 the background colour. Add an internal GetCreateParams. Update calls to
13830 XplatUI.CalculateWindowRect due to API change.
13831 * XplatUIX11.cs: In PerformNCCalc set the initial size to the whole window's
13832 size, and handle WM_NCCALCSIZE in DefWndProc to calculate the size if it
13833 hasn't been handled by any windows. When creating and moving windows, X
13834 wants the location of the entire window, but the size of the client
13835 window, so add TranslateClientRectangleToXClientRectangle,
13836 TranslateWindowSizeToXWindowSIze and TranslatedXWindowSizeToWindowSize
13837 to cope with this, and call them before every window creation and move.
13838 Update CalculateWIndowRect to use Hwnd.GetWindowRect (one step towards
13839 removing DeriveStyles). In AddConfigureNotify don't do anything if the
13840 hwnd is a zombie (fixes the BadWindow we were getting while running the
13841 tests), always calculate the offsets when it's a parentless window, not
13842 only when reparented, and translate the window size, since we're getting
13843 the client size of the whole window, excluding entire window.
13844 * Theme.cs: Added BorderSizableSize.
13845 * XplatUIWin32.cs: Fix RECT Height and Width. Don't fake styles here
13846 anymore. Update calls to XplatUI.CalculateWindowRect due to API change.
13847 * Form.cs: Update calls to XplatUI.CalculateWindowRect due to API change.
13848 Fake the window styles here instead of in XplatUIWin32 so that all
13849 back-ends get the same window styles (and it's Form that's deciding when
13850 to use wm, not the Win32 backend anyways)
13851 * Hwnd.cs: Completely reworked GetWindowRectangle and GetClientRectangle -
13852 they are now passed a CreateParams and they only use Style and ExStyle
13853 to determine the rectangles (they should now work just like
13854 Win32AdjustWindowRectEx - though quite a few special cases are probably
13855 missing). They should also be 100% complimentary (i.e. GetWindowRectangle
13856 (GetClientRectangle (rect)) == rect), and all numbers (borders, menu
13857 sizes) are taken from the current theme. Added a GetBorders helper
13858 function that will return the borders for any given CreateParams
13859 (including captions and menus), and GetBorderSize that returns the given
13861 * XplatUIOSX.cs: Update calls to CalculateWindowRect and
13862 Hwnd.GetClientRectangle.
13864 2007-03-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
13866 * Form.cs: Don't layout mdi children on MdiParent creation, the initial
13867 layout of the mdi children is handled by CreateParams. Fixes
13870 2007-03-29 Everaldo Canuto <everaldo@simios.org>
13872 * MenuAPI.cs: Make OnMouseDown returns a boolean to identify if event is
13875 * Form.cs: When active tracker mouse down is not processed, send event
13876 back to control inside mouse position. [Fixes #81227]
13878 2007-03-29 Jonathan Pobst <monkey@jpobst.com>
13880 * ComboBox.cs: Override the ComboListBox's ActivateOnShow property and
13881 remove WS_VISIBLE from CreateParams to prevent combobox dropdowns from
13882 stealing focus from the active form on Windows. (Control will be made
13883 visible in ShowWindow.)
13885 2007-03-29 Mike Kestner <mkestner@novell.com>
13887 * ImageList.cs : add internal Changed event.
13888 * ListView.cs : hook up to StateImageList.Changed to perform
13889 invalidations when the the state icon list changes. [Fixes #81191]
13891 2007-03-29 Jonathan Pobst <monkey@jpobst.com>
13893 * ToolTip.cs: Override the ToolTipWindow's ActivateOnShow property
13894 to prevent tooltips from stealing focus from the active form on Windows.
13896 2007-03-29 Everaldo Canuto <everaldo@simios.org>
13898 * ThemeWin32Classic.cs: Small stetic fixes in notifyicon balloon.
13900 * ThemeClearlooks.cs: Implement notifyicon balloon for clearlooks theme.
13902 2007-03-29 Everaldo Canuto <everaldo@simios.org>
13904 * NotifyIcon.cs, ThemeWin32Classic.cs: Icon support added to notifyicon
13907 2007-03-29 Jackson Harper <jackson@ximian.com>
13909 * TextControl.cs: When deleting text from non multiline textboxes,
13910 we need to update the entire document, because line offsets will
13913 2007-03-29 Everaldo Canuto <everaldo@simios.org>
13915 * XplatUIX11.cs, ThemeWin32Classic.cs, Theme.cs: ShowBalloonWindow method
13916 added to theme, now we can create themes that uses diferent notify engines
13917 like notification-daemon from galago project or growl for Mac OS.
13919 2007-03-28 Everaldo Canuto <everaldo@simios.org>
13921 * NotifyIcon.cs: Prevent Balloon to show in task bar.
13923 2007-03-28 Everaldo Canuto <everaldo@simios.org>
13925 * XplatUIX11.cs: Prevent system to open more than one balloon.
13927 * NotifyIcon.cs: Prevent system to open more than one balloon and remove
13928 some compiler warning messages.
13930 2007-03-28 Everaldo Canuto <everaldo@simios.org>
13934 * XplatUIX11.cs: Implement SystrayBalloon for X11 systems.
13936 * ThemeWin32Classic.cs, Theme.cs: DrawBalloonWindow and BalloonWindowRect
13937 implemented, this methods is used by NotifyIcon.BalloonWindow class.
13939 * NotifyIcon.cs: BalloonWindow class added to support Balloon in X11
13942 2007-03-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13944 * ListViewItem.cs: Forgot to make Invalidate internal.
13946 2007-03-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13948 * ListView.cs: Add a InvalidateSelection method to
13949 invalidate methods which are currently selected, and call
13950 it when setting FullRowSelect and HideSelection, instead of
13953 2007-03-28 Chris Toshok <toshok@ximian.com>
13955 * XplatUIX11.cs (UnmapWindow): reindent this block.
13957 * DataGrid.cs (UpdateSelectionAfterCursorMove): we need to update
13958 the selection_start if we're moving the selection (that is, not
13959 extending it). Fixes bug #80461.
13961 2007-03-28 Jonathan Pobst <monkey@jpobst.com>
13963 * ProgressBar.cs: Make the default MarqueeAnimationSpeed = 100.
13964 * ToolStripPanel.cs: Fix RowMargin, Renderer, RenderMode, and
13965 create private ControlCollection.
13967 2007-03-28 Jonathan Pobst <monkey@jpobst.com>
13969 * Control.cs: We need to call OnVisibleChanged for our implicit
13970 children as well as our normal children. Fixes scrollbars in
13971 comboboxes not showing up.
13973 2007-03-28 Jonathan Pobst <monkey@jpobst.com>
13975 * Control.cs, Form.cs: Anywhere we call CreateHandle, we need to do
13976 the check for IsHandleCreated first. The check in CreateHandle is not
13977 good enough because CreateHandle can be overriden, and the override
13978 should not be called if the handle is already created.
13980 2007-03-28 Jonathan Pobst <monkey@jpobst.com>
13982 * ToolStrip.cs: Remove MonoTODO for tooltips.
13983 * ToolStripComboBox.cs: Fix MonoTODO for DropDownHeight and events.
13984 * ToolStripContainer.cs: Add custom ControlCollection class.
13985 * ToolStripContentPanel.cs: Fix Renderer setting to match MS behavior.
13986 * ToolStripDropDown.cs: Add some missing properties/methods.
13987 * ToolStripDropDownMenu.cs: Override OnLayout and SetDisplayedItems.
13988 * ToolStripItem.cs: Remove MonoTODO for tooltips.
13989 * ToolStripManager.cs: Add IsShortcutDefined.
13990 * ToolStripOverflow.cs: Override LayoutEngine.
13991 * ToolStripProgressBar.cs: Add MarqueeAnimationSpeed.
13992 * ToolStripSeparator.cs: Add ImageKey.
13994 2007-03-28 Jackson Harper <jackson@ximian.com>
13996 * TextControl.cs: If a char delete removes a line ending, we need
13997 to update the ending style.
13998 - Make sure the line ending calcs get called.
14000 2007-03-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
14002 * XplatUIX11.cs: CreateWindow: Remove old default form location code,
14003 it was making the new code not work. Fixed a typo in the new code
14004 as well. Fixes #79826.
14006 2007-03-27 Everaldo Canuto <everaldo@simios.org>
14009 - NIF_STATE and NIF_INFO added to NotifyIconFlags.
14010 - NOTIFYICONDATA properties sizes fixed, szTip is 128, not 64.
14011 - SystrayBalloon method implemented.
14012 [Add support for notifyicon balloon on win32, #79149]
14014 2007-03-27 Mike Kestner <mkestner@novell.com>
14016 * ThemeWin32Classic.cs : update StateImageList selection to mirror
14017 the ms behavior when only one image is added to the list.
14020 2007-03-27 Jackson Harper <jackson@ximian.com>
14022 * TextControl.cs: Improvements to non multiline line ending
14025 2007-03-27 Everaldo Canuto <everaldo@simios.org>
14027 * XplatUIX11.cs: Fix the time which tooltip is opened for NotifyIcon.
14029 2007-03-27 Everaldo Canuto <everaldo@simios.org>
14032 - Balloon message handling added.
14033 - Call XplatUI.SystrayBalloon in ShowBalloonTip.
14035 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
14036 XplatUIOSX.cs, XplatUIX11-new.cs: ShowBalloonTip method renamed
14037 to SystrayBalloon to me like other Systray method, also a
14038 handle parameter added.
14040 2007-03-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
14042 * ListView.cs: Show scrollbars even when items.Count == 0
14043 but the columns Width is bigger than the ListView.Width.
14044 Also, when columns.Count == 0 set layout_wd and layout_ht
14045 to the ClientRectangle values, so we don't show any scrollbar
14048 2007-03-27 Everaldo Canuto <everaldo@simios.org>
14050 * XplatUIStructs.cs: Balloon (NIN_BALLOON*) constants added.
14052 2007-03-27 Jackson Harper <jackson@ximian.com>
14054 * RichTextBox.cs: The RTF library decodes the text properly for us
14057 2007-03-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
14059 * ListView.cs: Display HeaderControl even when columns.Count == 0.
14060 * ThemeWin32Classic.cs: Use SystemBrushes.Control to draw the
14061 ListView header (HeaderControl), instead of Control.BackColor.
14063 2007-03-27 Jonathan Pobst <monkey@jpobst.com>
14065 * Control.cs: Call OnVisibleChanged in SetVisibleCore for non-forms.
14066 Fixes tab control issues where controls would not show up because they
14067 never received their OnVisibleChanged call.
14069 2007-03-27 Everaldo Canuto <everaldo@simios.org>
14071 * NotifyIcon.cs: Balloon events added (BalloonTipClicked, BalloonTipClosed,
14074 2007-03-27 Jonathan Pobst <monkey@jpobst.com>
14076 * Control.cs: We won't get a WM_SHOWWINDOW when we create a window that
14077 is maximized or minimized, so move CreateControl to Control.OnVisibleChanged.
14078 * Form.cs: After we set the form visible, send a fake WM_SHOWWINDOW if we
14079 are max or min. Remove WS_VISIBLE from CreateParams unless we are recreating
14080 the handle. Fix WindowState by using the internal variable until we are
14081 sure that we've been shown.
14082 * XplatUIX11.cs: Do not generate a WM_SHOWWINDOW message if new form is
14086 2007-03-27 Rolf Bjarne Kvinge <RKvinge@novell.com>
14088 * XplatUIX11.cs: Windows without WS_CAPTION can still get decorations
14089 (at least borders). Fixes #79386 on Linux (with a small difference
14090 in behaviour: when trying to resize a caption-less window metacity
14091 shows the sysmenu. Resizing is still possible though).
14092 * XplatUIWin32.cs: When setting window styles send request an extra
14093 WM_NCCALCSIZE when it's a form without title (due to no text and no
14094 caption), since Win32 seems to calculate it wrong the first time we
14095 get the message, though the second time things work as they should.
14096 * Form.cs: Reorder a few statements in ChangingParent, otherwise the
14097 newly reparented window might show up unparented. Update
14098 CreateParams to exclude WS_DLGFRAME if ControlBox is false and
14099 there's no title text. Fixes #79386.
14101 2007-03-27 Mike Kestner <mkestner@novell.com>
14103 * ListBox.cs : don't perform invalidations if the handle hasn't been
14104 created. [Fixes #80753]
14106 2007-03-27 Mike Kestner <mkestner@novell.com>
14108 * ListBox.cs : don't adjust top item when SelectedIndex is set to -1.
14111 2007-03-26 Everaldo Canuto <everaldo@simios.org>
14113 * XplatUIWin32.cs: Complete NOTIFYICONDATA structure, additional fields
14114 needed to implement Balloon.
14116 2007-03-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
14118 * ListViewItem.cs: In the constructors that take
14119 an array of strings, don't use ListViewSubItemCollection.AddRange
14120 method to add items, since we need to have a different behaviour (in
14121 the constructors we add an item for each null string, opposed to
14122 the behaviour of AddRange, which adds nothing).
14124 2007-03-26 Andreia Gaita <avidigal@novell.com>
14126 * NumericUpDown.cs: Fix broken 1.1 api for ParseEditText
14128 2007-03-26 Jackson Harper <jackson@ximian.com>
14130 * TextControl.cs: Draw and measure line endings when in non
14132 - When searching the text, count the end of the last line as a
14135 2007-03-26 Jackson Harper <jackson@ximian.com>
14137 * RichTextBox.cs: The selection_start and selection_end don't
14138 really track the correct tags for the selection. So we'll manually
14139 compute the correct tag here.
14141 2007-03-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
14143 * ProgressBar.cs, ThemeWin32Classic.cs: Implemented drawing of Marquee
14144 and Continuous styles. Fixes #79469.
14146 2007-03-26 Jonathan Pobst <monkey@jpobst.com>
14148 * ToolStrip.cs: Implement Tooltips.
14149 * ToolStripItem.cs: Create internal method for determining tooltip.
14151 2007-03-26 Jonathan Pobst <monkey@jpobst.com>
14153 * PropertyGrid.cs: Hide a EditorBrowsable attribute from 1.1 API.
14155 2007-03-26 Everaldo Canuto <everaldo@simios.org>
14157 * NotifyIcon.cs: On disposing verify if icon is visible and hide it,
14158 it prevents a problem thak keeps icon visible after application
14161 2007-03-26 Everaldo Canuto <everaldo@simios.org>
14163 * NotifyIcon.cs: Balloon properties and methods created.
14165 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
14166 XplatUIOSX.cs, XplatUIX11-new.cs: Implement ShowBalloonTip method.
14168 2007-03-25 Jonathan Pobst <monkey@jpobst.com>
14170 * ToolStripComboBox.cs: Default the ComboBox's FlatStyle to Popup.
14172 2007-03-24 Jonathan Pobst <monkey@jpobst.com>
14174 * Control.cs: Make SetBoundsCore match MS better. The BoundsSpecified
14175 parameter indicates which aspects were explicit/user-set.
14176 * ComboBox.cs, ListBox.cs: Call SetBoundsCore correctly. (no 0 parameters).
14178 2007-03-24 Jonathan Pobst <monkey@jpobst.com>
14180 * ProgressBar.cs: Throw AOORE instead of AE for property Value (2.0).
14181 * ScrollBar.cs: Throw AOORE instead of AE for properties LargeChange,
14182 SmallChange, and Value (2.0).
14183 * Timer.cs: Throw AOORE instead of AE for property Interval (2.0).
14185 2007-03-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
14187 * ListView.cs: Always set item_control.Width in LayoutDetails
14188 if View is Details. Setting it later in CalculateScrollBars
14189 in a not-so-corner scenario (the sum of columns width is
14190 not bigger than the ListView width when handle is created, and then
14191 that sum gets bigger by increasing the width of the columns)
14192 causes a very weird recursion path (which shouldn't be happening,
14193 since header_control sets it in CalculateScrollBars too). This bug
14194 appeared after Chris' fixes for handle created issues, so probably
14195 it's related to some handle-creation time.
14197 2007-03-23 Chris Toshok <toshok@ximian.com>
14199 * DataGrid.cs (GetVisibleRowCount): increase the row count in the
14200 case where there's an add row, just so we don't end up in a case
14201 where it's not displayed (this happens when the row is partially
14202 obscured). Fixes bug #79574.
14204 2007-03-23 Jackson Harper <jackson@ximian.com>
14208 * RichTextBox.cs: Preserve line endings in the lines text buffer,
14209 also added an enum that represents the line ending type.
14211 2007-03-23 Andreia Gaita <avidigal@novell.com>
14213 * NumericUpDown.cs: Fix logic so Text and Value properties are not
14214 messed with in every method call, but only from DownButton,
14215 UpButton, UpdateEditText() and ValidateText. Fixes #80346
14217 2007-03-23 Chris Toshok <toshok@ximian.com>
14219 * DataGridTextBoxColumn.cs (GetFormattedValue): don't try to
14220 format objects if the format spec is "". Fixes bug #80889.
14222 2007-03-22 Miguel de Icaza <miguel@novell.com>
14224 * ToolStripPanel.cs (Join): added stubs to build PDN3
14226 * Control.cs (AutoScrollOffset): Add.
14228 * SystemInformation.cs (MouseWheelScrollDelta): Expose this
14229 property, its only implemented for Win32, on X11 it defaults to
14230 some hardcoded value.
14232 * ToolStripItem.cs (AllowDrop): Add property
14234 2007-03-22 Mike Kestner <mkestner@novell.com>
14236 * ListView.cs : in FullRowSelect Details mode, only enable box
14237 selection if the user clicks over the "item" column outside of the
14238 text area. Mmmmm, compatibility. [Fixes #80374 subpart 7]
14240 2007-03-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
14242 * Control.cs: ChangeParent: Call Form's ChangingParent even if the
14243 handle is not created yet.
14244 * Form.cs: Select: Don't call CreateHandle if the handle is already
14245 created, avoids a stack overflow on Windows when we are recreating
14247 * ScrollableControl.cs: Set the correct z-order for the scrollbars when
14248 they are made visible, and override AfterTopMostControl to keep
14249 them on top when other controls are brought to front.
14250 CalculateCanvas: Scrollbars are only visible if auto_scroll is true
14251 or force_*scroll_visible is true (old implementation always shows
14252 scrollbars when needed, no matter what auto_scroll was set to).
14253 * InternalWindowManager.cs: UpdateWindowDecorations: Add a
14254 IsHandleCreated check.
14256 2007-03-22 Andreia Gaita <avidigal@novell.com>
14258 * DataGrid.cs: Implement Column and Row auto sizing when double-clicking on
14259 row or col separator.
14260 * DataGridTextBoxColumn.cs: Implement GetPreferredHeight and GetPreferredSize
14262 2007-03-22 Everaldo Canuto <everaldo@simios.org>
14264 * MenuAPI.cs: Remove unneeded check for grab_control in UpdateCursor.
14266 2007-03-22 Everaldo Canuto <everaldo@simios.org>
14268 * MenuAPI.cs: UpdateCursor method added, it is calling in OnMotion to update
14269 cursor for child controls. In ShowWindow and HideWindow now call SetCursor
14270 every time. Fixes #80410.
14272 2007-03-22 Chris Toshok <toshok@ximian.com>
14274 * BindingSource.cs (AddNew): partially implement.
14276 remove a couple of NotImplementedException's
14277 to get bug #81148 closed.
14279 2007-03-22 Everaldo Canuto <everaldo@simios.org>
14284 - UpdateCursor method added to update the screen cursor.
14285 - GetAvailableCursor method added to return cursor for enabled tree,
14286 it searches for cursor on control and it's parent's for enabled control.
14287 - Call UpdateCursor method on setter of Cursor property.
14288 - On setter of Enabled call UpdateCursor when it is false, we need to
14289 change cursor to normal (or to this parent cursor) because cursor
14290 setting theres no effect to disabled controls.
14291 - Some minor source changes to follow the coding style guidelines.
14293 * XplatUIX11.cs: In MotionNotify only dispatch SET_CURSOR event for enabled
14296 2007-03-22 Chris Toshok <toshok@ximian.com>
14298 * XplatUIX11.cs: ignore the BadPicture errors cairo+render
14301 2007-03-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
14303 * XplatUIX11.cs: Implement default locations for forms.
14304 * Form.cs: Completely rework startup location for forms. Fixes #79964.
14305 * Hwnd.cs: Add previous_child_startup_location (to track the current
14306 startup location for any child forms of the current form) and
14307 previous_main_startup_location (to track the startup location for
14308 the current toplevel form).
14310 2007-03-21 Jonathan Pobst <monkey@jpobst.com>
14312 * Control.cs: Don't trigger a layout if an implicit control is added
14313 that isn't visible. Also, don't notify the owner when an implicit control
14314 is added. (Owners shouldn't even know about their implicit controls.)
14316 2007-03-21 Jonathan Pobst <monkey@jpobst.com>
14318 * ScrollableControl.cs: Add implicit controls with AddRangeImplicit
14319 to save some re-layouts.
14321 2007-03-21 Everaldo Canuto <everaldo@simios.org>
14323 * MenuAPI.cs: In ProcessKeys returns false when key is not processed.
14326 2007-03-21 Jonathan Pobst <monkey@jpobst.com>
14328 * FlowLayoutSettings.cs, ToolStrip.cs, ToolStripPanel.cs,
14329 ToolStripPanelRow.cs: Lazy instantiate the LayoutEngine.
14331 2007-03-21 Mike Kestner <mkestner@novell.com>
14333 * ListView.cs : disable selection update for non-left button clicks
14334 with mods and over selected items. [Fixes #80524]
14336 2007-03-20 Jackson Harper <jackson@ximian.com>
14339 * TextBoxBase.cs: Allow different types of line endings. \r, \r\n,
14342 2007-03-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
14344 * ComboBox.cs: PreferredHeight seems to be ItemHeight + 6, but there is
14345 very probably a more complicated calculation there. Update the
14346 textbox' ForeColor and BackColor when the ComboBox' colors are
14347 changed. Change the border change in LayoutComboBox to only affect
14348 the textbox, not all the calculations there. Seems to fix most of
14351 2007-03-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
14353 * ComboBox.cs: Handle Home and End keys as well as all combinations of
14354 modifiers + navigation keys as input keys, enables advanced text
14355 selection in the combobox (like Shift+Left Arrow for instance).
14356 ComboTextBox now overrides Focused and returns whatever
14357 ComboBox.Focused returns, since it really should be focused
14358 whenever the ComboBox is. Fixes #80795. Also make the border around
14359 the text box one pixel bigger, as mentioned in #79436.
14361 2007-03-20 Jackson Harper <jackson@ximian.com>
14363 * TreeView.cs: Don't offset the images, this was causing some
14364 artifacts when expanding/collapsing with images that were the
14365 exact height of the treenode.
14367 2007-03-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
14369 * TrackBar.cs: Query the theme for the correct value when the mouse
14370 moves and the thumb is pressed.
14371 * Theme.cs: Added TrackBarValueFromMousePosition
14372 * ThemeWin32Classic.cs: Reworked TrackBar drawing. Earlier
14373 implementation was updating the trackbar value when drawing, now
14374 the drawing methods only draw. Fixes #80900. Refactored the
14375 calculations out to TrackBarValueFromMousePosition and
14376 GetTrackBarDrawingInfo, so that TrackBar can get the correct value
14377 according to the mouse position whenever it wants to. Changed the
14378 light coloured pen when drawing the thumb from ControlLight to
14379 ControlLightLight, because the ControlLight is the same colour as
14380 the background so the 3D effect is lost.
14382 2007-03-20 Everaldo Canuto <everaldo@simios.org>
14384 * Form.cs: In ShowDialog uses MainForm as transient form when no form is
14385 defined. Fixes #80784.
14387 2007-03-20 Marek Habersack <mhabersack@novell.com>
14389 * ContextMenuStrip.cs: align with the change introduced in
14392 2007-03-20 Everaldo Canuto <everaldo@simios.org>
14394 * XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs,
14395 XplatUI.cs, Form.cs, ToolTip.cs: Remove unneeded parameter owner
14398 2007-03-19 Chris Toshok <toshok@ximian.com>
14400 * Control.cs (WmPaint): don't make use of the Handle property
14401 after an event is emitted, as the user could have closed the
14402 form/destroyed the control. Store the Handle in a local variable
14403 and make use of that. Fixes bug #80768.
14405 2007-03-20 Everaldo Canuto <everaldo@simios.org>
14407 * XplatUIX11.cs: Set _NET_WM_STATE_ABOVE on SetTopmost, it fixes Topmost
14408 behavior in X11 environments.
14410 2007-03-20 Everaldo Canuto <everaldo@simios.org>
14412 * Form.cs: Call SetTopmost in CreateHandle when window is topmost, its
14413 because on setter of topmost we dont call SetTopmost when handle is not
14416 2007-03-20 Jackson Harper <jackson@ximian.com>
14418 * TextControl.cs: Need to use SelectionLength () not
14419 selection_length, since that var is reset to -1.
14420 - Draw the caret when we don't have focus.
14421 * TextBox.cs: The selectall actually doesn't occur until the first
14423 * TextBoxBase.cs: Need to update the caret position after a
14426 2007-03-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
14428 * ListView.cs: Enable scrolling when using Tile view.
14430 2007-03-20 Everaldo Canuto <everaldo@simios.org>
14434 * XplatUIDriver.cs: Abstract SetOwner method created.
14436 * XplatUIOSX.cs: Override SetOwner to prevent compilation errors method
14437 must be implemented and was masked as todo.
14439 * XplatUIWin32.cs: SetOwner implemented using SetWindowLong with
14442 * XplatUIX11.cs: SetOwner implemented using same code from SetTopmost but
14443 cheking for null owner to remove transient. The SetTopmost will be change
14446 * Form.cs: In set_Owner and CreateHandle uses new SetOwner instead of
14447 SetTopmost. Now owned forms will work properly in win32 and X11.
14449 2007-03-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
14451 * MdiWindowManager.cs: Update function name.
14452 * Form.cs: After closing a form MdiParent is always null.
14453 * MdiClient.cs: Rename CloseChildForm to ChildFormClosed to explain
14454 better what it should do: necessary book-keeping when the form is
14455 closed, it should not close the form itself.
14457 2007-03-19 Andreia Gaita <avidigal@novell.com>
14459 * ListViewItem.cs: Fix back and fore color. The subitems only
14460 use their own colors if they are set, otherwise use the listview's
14461 colors. Don't set default colors on constructor for subitem.
14464 2007-03-19 Mike Kestner <mkestner@novell.com>
14466 * ListView.cs : make box selection for Details views with
14467 FullRowSelect conform to MS behavior when clicking in the "item"
14468 column and clicking outside the defined columns.
14469 [Fixes case 5-6 of #80374]
14471 2007-03-19 Chris Toshok <toshok@ximian.com>
14473 * ScrollableControl.cs: create the controls from within the ctor,
14474 but don't actually add them until our handle is created. this
14475 fixes a NRE possibility jpobst found (if you override OnLayout in
14476 a subclass, it's called before your ctor). Also, add a
14477 IsHandleCreated guard to UpdateSizeGripVisibility as well.
14479 2007-03-19 Jackson Harper <jackson@ximian.com>
14481 * TextBox.cs: Reduce the amount of invalidation we do.
14482 * TextBoxBase.cs: Make shortcuts enabled true by default, at least
14483 some of them are true by default on MS.
14484 - Add some functions to reduce the amount of invalidates we do.
14485 * TextControl.cs: Less invalidation.
14487 2007-03-19 Chris Toshok <toshok@ximian.com>
14489 [ Fixes #81773, and *seems* to fix #81553 as well ]
14491 * XplatUIX11.cs: remove the assignment of hwnd.zombie = true from
14492 AccumulateDestroyedHandles. We need to do it *after* we send
14493 WM_DESTROY, as the user's code can access Control.Handle in
14494 OnHandleDestroyed, and this shouldn't cause a recreation. Also,
14495 move the WM_DESTROY/zombie handling to before the call to
14496 XDestroyWindow. For some reason without this ordering
14497 FormTest.RecreateHandle hangs. This ordering is semantically
14498 equivalent, however, as XDestroyWindow is async anyway.
14500 2007-03-19 Gert Driesen <drieseng@users.sourceforge.net>
14502 * RichTextBox.cs: Reset backcolor_set after setting default.
14504 2007-03-19 Chris Toshok <toshok@ximian.com>
14506 * ScrollableControl.cs: the scroll position should not effect the
14507 canvas size. commit patch from georgegiolfan@yahoo.com, which
14508 fixes some really bizarre behavior on resizing. Fixes bug #80778.
14510 2007-03-19 Chris Toshok <toshok@ximian.com>
14512 * ScrollableControl.cs: clean this up a bit. create the
14513 scrollbars in the ctor and just show/hide them as needed. Also,
14514 make hscroll_visible/vscroll_visible internal to Recalculate, and
14515 just use hscrollbar.VisibleInternal/vscrollbar.VisibleInternal
14516 everywhere else. This seems to fix the scrollbars appearing
14517 beneath the content for me (i have *no* idea why that is,
14520 2007-03-19 Jonathan Pobst <monkey@jpobst.com>
14522 * ToolStrip.cs: Don't call DoAutoSize when we change Dock. Also, remove
14523 some redundacy for stuff in Anchor and Dock that base will take care of.
14526 2007-03-19 Mike Kestner <mkestner@novell.com>
14528 * ListView.cs : make box selection for Details views without
14529 FullRowSelect dependent on the text bounds, not item bounds.
14530 * ListViewItem.cs : add an internal property to obtain the TextBounds
14531 in Details view. [Fixes case 1-4 of #80374]
14533 2007-03-19 Andreia Gaita <avidigal@novell.com>
14535 * PaintEventArgs.cs (Dispose): Only dispose of graphics object if
14536 we're < 2.0. #78448 && #80316
14538 2007-03-19 Jonathan Pobst <monkey@jpobst.com>
14540 * FontDialog.cs: Don't crash when we switch to a new font that doesn't
14541 have the same style available as the previously selected one. Also,
14542 support FixedPitchOnly property. [Fixes bugs #80918, #80947]
14544 2007-03-19 Jackson Harper <jackson@ximian.com>
14546 * TextControl.cs: Add an alignment property that all new lines
14548 - Make sure to use the align shift when calculating the line's X
14550 * TextBox.cs: Set the alignment on the document as well as on all
14551 the document lines.
14553 2007-03-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
14555 * Control.cs: ControlCollection.Add: Remove a couple of duplicated casts and
14556 throw if setting the parent of an mdichild that already has an
14557 mdiparent. Update signature for 2.0 profile. ProductName: If there's no
14558 AssemblyProductAttribute in the assembly, use the type's namespace (as
14559 MS seems to do). CreateControl: don't create the handle if the control
14560 is not visible (according to MS behaviour and spec). SetTopLevel: Only
14561 create handle if the control is not a form. Change FocusInternal to
14562 virtual so that it can be overriden by Form.
14563 * TextBox.cs: Update call to FocusInternal.
14564 * Form.cs: Always create the handle when calling Focus on a MdiChild. The
14565 form is not a toplevel form when it's a mdi child, so update is_toplevel
14566 accordingly. ShowIcon/TransparencyKey: avoid creating the handle if it
14567 hasn't been created. Show (IWin32Window): Don't allow this overload for
14568 toplevel windows. CenterToParent/CenterToScreen/Select: create the
14569 handle as MS does. SetVisibleCore: if called on a MdiChild and the
14570 parent isn't visible yet, save the visibility and restore it when the
14571 parent is made visible.
14572 * ScrollableControl.cs: Refactor out scrollbar visibility code to separate
14573 methods, since the visibility of the scrollbars can be changed from
14574 several places, not only from AutoScroll.
14577 2007-03-19 Jackson Harper <jackson@ximian.com>
14579 * RichTextBox.cs: Enable shortcuts by default.
14580 * TextBoxBase.cs: Add conditional shortcuts.
14582 2007-03-19 Everaldo Canuto <everaldo@simios.org>
14584 * MenuItem.cs: Dont call OnDrawItem when OwnerDraw is false (#81182).
14586 2007-03-19 Chris Toshok <toshok@ximian.com>
14588 [ Fixes bug #80604]
14590 * XplatUIX11.cs (WaitForHwndMessage): change this to actually
14591 swallow the message we're waiting on, instead of delivering it, as
14592 this is only used for the WM_SHOWWINDOW raised from
14593 MapWindow/UnmapWindow, and the message needs to be generated
14594 (MapWindow, UnmapWindow): generate the WM_SHOWWINDOW message
14595 before doing the Map/Unmap. Also make sure that the Hwnd is still
14596 alive after the message has been handled.
14598 *before* the window is shown.
14600 * Control.cs (CreateControl): guard a few more things inside the
14601 if (!is_created) block, as we might end up being called again -
14603 (WmShowWindow): call CreateControl if we're showing the control.
14605 2007-03-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
14607 * Control.cs: Fix 2.0 signature for Invoke. Support invoking on
14608 controls without a handle if they have any parent with a handle. In
14609 Dispose add a check whether the handle is created or not before
14610 calling BeginInvoke, this removes the need of the extra disposing
14611 parameter (which was bogus anyway since it didn't prevent the
14612 invoke from happening, it only skipped the check for an existing
14613 handle, meaning that the invoke would call on an inexistent
14616 2007-03-19 Everaldo Canuto <everaldo@simios.org>
14618 * MessageBox.cs: Remove WS_POPUP from CreateParams style, with it form
14619 appears in taskbar.
14621 2007-03-18 Everaldo Canuto <everaldo@simios.org>
14624 - Fixed a problem that dont show help button for messages with 3 buttons.
14625 - Refactory button size and position calculations, now dont use fixed
14626 values, also fixed button sizes (#80043) and form's border space.
14627 - AddButton method created, now all other AddButton methods call this one.
14628 - Some other source code cosmetic changes.
14630 2007-03-18 Jackson Harper <jackson@ximian.com>
14632 * RichTextBox.cs: Don't do this all fonts must match check if
14633 there is only one char selected.
14635 2007-03-18 Jackson Harper <jackson@ximian.com>
14637 * TreeView.cs: ScrollWindow works properly now, so we don't need
14638 to screw around with the scroll area. This fixes some artifacts
14639 when expanding and collapsing.
14641 2007-03-18 Jackson Harper <jackson@ximian.com>
14643 * TextBoxBase.cs: Allow updating the selection position when the
14644 cursor is outside the textarea, but we have a capture.
14645 * TextControl.cs: A special case for when the cursor is outside
14646 the bounds of the TB.
14648 2007-03-18 Jackson Harper <jackson@ximian.com>
14650 * TextBoxBase.cs: Remove image pasting code for now. There is no
14651 way to get an image on the clipboard right now anyways.
14653 * RichTextBox.cs: Use the new RTF Picture class for pictures.
14655 2007-03-18 Everaldo Canuto <everaldo@simios.org>
14658 - Set window properties in constructor intead of on CreateParams.
14659 - Remove topmost from Window ExStyle.
14660 - Set ShowInTaskbar to false.
14661 - Set form border to FixedDialog.
14662 - Some cosmetic changes and remove unneeded comments.
14663 - It fixes itens 2,3 and 4 of bug #80043.
14665 2007-03-18 Gert Driesen <drieseng@users.sourceforge.net>
14667 * TextBoxBase.cs: In setter for ReadOnly, only chance BackColor if
14668 none was explicitly set. Fixes part of bug #79949.
14670 2007-03-16 George Giolfan <georgegiolfan@yahoo.com>
14672 * ToolStripComboBox.cs: Add AutoComplete*.
14674 2007-03-16 George Giolfan <georgegiolfan@yahoo.com>
14676 * ToolStripComboBox.cs: Add FlatStyle.
14678 2007-03-16 Jonathan Pobst <monkey@jpobst.com>
14680 * ToolStrip.cs, ToolStripProfessionalRenderer.cs,
14681 ToolStripSplitStackLayout.cs: Implement some basic vertical toolbar support.
14683 2007-03-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
14685 * ButtonBase.cs, ToolStrip.cs, SendKeys.cs, TextRenderer.cs,
14686 CheckBox.cs, RadioButton.cs, BindingSource.cs,
14687 DataGridColumnStyle.cs: Remove warnings.
14689 2007-03-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
14691 * Menu.cs: MergeMenu: Check menu argument for null before looping over
14693 * MdiWindowManager.cs: Add IsVisiblePending to track the pending
14694 visibility of mdi child forms. FormSizeChangedHandler: update the
14695 maximized size if size has changed while maximized.
14696 * MdiClient.cs: SizeScrollbars/ArrangeWindows/ActivateChild: Avoid
14697 creating the handle.
14698 * InternalWindowManager.cs: UpdateBorderStyle/FormSizeChangedHandler:
14699 avoid creating the handle if not created.
14700 * XplatUI.cs: Update debug output.
14701 * XplatUIStructs.cs: Added ToString's for a couple of structs.
14703 2007-03-16 Jonathan Pobst <monkey@jpobst.com>
14705 * ContainerControl.cs: Give ToolStripManager the opportunity to handle
14707 * ToolStripDownItem.cs, ToolStripItem.cs, ToolStripItemCollection.cs,
14708 ToolStripItemEventType.cs, ToolStripManager.cs, ToolStripMenuItem.cs:
14709 Implement keyboard shortcuts.
14711 2007-03-15 Everaldo Canuto <everaldo@simios.org>
14713 * CommonDialog.cs: Set StartPosition to CenterScreen on form's constructor.
14714 Fixes #79560 and #80200, it also fix problem in FileDialog, SaveDialog,
14715 ColorDialog and all derived classes.
14717 2007-03-15 Everaldo Canuto <everaldo@simios.org>
14719 [ Fixes bug #79828 ]
14722 - Rename ToolBarButtonInfor to ToolBarItem.
14723 - Add all layout and calculation stuff gtom ToolBarButton to ToolBarItem.
14724 - Maintain an array of ToolBarItem, used instead of ToolBarButton
14725 collection to be able add same button more than one time on a toolbar.
14726 - Refactory all properties and methods to use ToolBarItem.
14728 * ToolBarButton.cs:
14729 - Remove all propeties and methods that is now in ToolBarItem.
14730 - Rectangle propery now gets the rectangle from first ToolBarItem to
14731 mimic win32 behavior.
14732 - Size calculation and layout methods also removed.
14734 * ThemeWin32Classic.cs: Change all ToolBar drawing methods to receive
14735 ToolBarItem instead of ToolBarButton to right drawing buttons when
14736 same button/separator was added more than one time to ToolBar.
14738 * ThemeNice.cs: Same as above.
14740 2007-03-15 Andreia Gaita <avidigal@novell.com>
14742 * XplatUIX11.cs: Fire extra MouseMove events right after
14743 MouseDown and MouseUp, emulating win32's <censored> behaviour
14744 for apps that rely on it.
14746 2007-03-15 Jackson Harper <jackson@ximian.com>
14749 * TextBoxBase.cs: On MS, a fixed single border is not in NC area,
14750 it is drawn on the controls client window and there is no NC
14752 - Set the background color to gray on 2.0 when we are readonly.
14754 2007-03-15 Chris Toshok <toshok@ximian.com>
14756 [ Fixes bug #81144 ]
14758 * XplatUIX11.cs: implement VirtualScreen independently of
14759 WorkingArea, by querying the _NET_DESKTOP_GEOMETRY root window
14762 2007-03-15 Chris Toshok <toshok@ximian.com>
14764 * Hwnd.cs: add an internal field for the cached_window_state.
14766 * XplatUIX11.cs: cache the window state, invalidating the cache
14767 (and thus re-querying the X server) only when we see an update to
14768 the _NET_WM_STATE property.
14770 2007-03-15 Chris Toshok <toshok@ximian.com>
14772 * BindingSource.cs: get a lot of the unit tests working.
14774 2007-03-15 Jonathan Pobst <monkey@jpobst.com>
14776 * Control.cs: Modify UpdateStyles to store distances when bounds >=
14777 0 instead of just bounds > 0. [Fixes bug #80912]
14779 2007-03-15 Jonathan Pobst <monkey@jpobst.com>
14781 * ToolStrip.cs, ToolStripItem.cs: Implement several new properties
14784 2007-03-15 Ivan N. Zlatev <contact@i-nz.net>
14786 * ComboBox.cs, Control.cs, XplatUIStructs.cs, XplatUIX11GTK.cs,
14787 XplatUIX11.cs, XplatUIWin32.cs, InternalWindowManager.cs,
14788 XplatUIOSX.cs, TextControl.cs: Replaces all uses of the custom
14789 WM_MOUSE_LEAVE with the system WM_MOUSELEAVE message.
14791 2007-03-15 Chris Toshok <toshok@ximian.com>
14795 * Control.cs: add Ivan's fix for 81101, with a slight modification
14796 - you can set control.Target to null.
14798 2007-03-14 Jonathan Pobst <monkey@jpobst.com>
14800 * ToolStripItem.cs: If our OwnerItem is null, we can't use
14801 HideDropDown, use Hide instead to prevent an NRE.
14804 2007-03-14 Jackson Harper <jackson@ximian.com>
14806 * TextBoxBase.cs: Mess with the creation stuff a little. We need
14807 to calculate the document before the handle is created, in some
14808 cases. (Actually just one case).
14810 2007-03-14 Jackson Harper <jackson@ximian.com>
14812 * TextBoxBase.cs: Need to display the caret after letting the base
14813 wndproc handle the focus methods, because the caret display
14814 methods check the focus state.
14815 - Try to display the caret after updating it's position with SelectWord.
14816 - Don't need to do an immediate update on this recalc, since there
14817 will be an invalidate anyways.
14819 2007-03-14 Jackson Harper <jackson@ximian.com>
14821 * TreeView.cs: Some workarounds so that we can match event order a
14824 2007-03-14 Gert Driesen <drieseng@users.sourceforge.net>
14826 * ErrorProvider.cs: Invoke default ctor from 2.0-only ctor. Fixes bug
14827 #80803. Avoid NullReferenceException when Control does not have
14828 parent. Fixed different blinkstyle issues. Only subscribe to Tick
14829 event a single time. Only draw error icon when control is created and
14830 visible. Fixes failing unit tests.
14832 2007-03-14 Andreia Gaita <avidigal@novell.com>
14834 * TabControl.cs: Add support for 2.0 Deselecting, Deselected and
14835 Selecting events. Fire Leave and Enter events when changing tabs.
14837 2007-03-14 George Giolfan <georgegiolfan@yahoo.com>
14839 * TreeView.cs: Add TreeViewNodeSorter.
14840 * TreeNodeCollection.cs: Add sorter parameter to Sort method.
14842 2007-03-14 Chris Toshok <toshok@ximian.com>
14844 * Form.cs: go ahead and remove the RecreateHandles that jpobst
14845 removed earlier and I had him add back it. It turns out metacity
14846 *does* in fact handle the MOTIF_WM_HINTS property changing, it
14847 just doesn't redraw the window titlebar until you resize the
14848 window. This also means we aren't recreating the entire window
14849 hierarchy on X when you change this property. And it looks better
14852 2007-03-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
14855 * ListView.cs: Collecting selection information
14856 is now done in SelectedIndexCollection rather than in
14857 SelectedListViewItemCollection. This is done so we can
14858 have the selection information code in one single place
14859 (virtual mode selection information entirely depends on
14860 SelectedIndexCollection).
14862 2007-03-13 Miguel de Icaza <miguel@novell.com>
14864 * ErrorProvider.cs: Add stubs for ISupportInitialize
14866 2007-03-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
14868 * ListViewItem.cs: Trigger the ItemCheck and ItemChecked events
14869 in the right order with the right values, from the Checked property,
14870 just as MS does (instead of triggering them from ListView).
14872 * ListView.cs: Make OnItemCheck and OnItemChecked internal.
14874 2007-03-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
14876 * ListView.cs: Implement ItemChecked 2.0 event. Also cast to
14877 the correct handler in OnItemCheck method (ItemCheckEventHandler
14878 instead of EventHandler). This used to throw an InvalidCastException.
14880 2007-03-13 Jackson Harper <jackson@ximian.com>
14882 * TextBoxBase.cs: Calculate the document before the handle is
14883 created, so there isn't an extra invalidate called.
14885 2007-03-13 Jonathan Pobst <monkey@jpobst.com>
14887 * Form.cs: Don't set owner in ShowDialog until we are sure
14888 that we aren't going to throw an exception. [Fixes bug #80773]
14890 2007-03-12 George Giolfan <georgegiolfan@yahoo.com>
14892 * TreeView.cs: Make it compile.
14894 2007-03-12 Jonathan Pobst <monkey@jpobst.com>
14896 * Control.cs: Another place we don't call SizeFromClientSize.
14897 * Form.cs: Another place we don't call SizeFromClientSize.
14900 2007-03-12 Jackson Harper <jackson@ximian.com>
14902 * TreeView.cs: Basically emulating some strangness here with
14903 exanding nodes and setting node positions when windows aren't
14905 - Also attempting to walk the node tree less than previously, and
14906 just use visible order calculations for determining offsets.
14907 - oops made scrolling backwards.
14908 * TreeNode.cs: We need to start nodes with a zero visible order,
14909 because the order calcs are based on the first nodes order.
14911 2007-03-12 Jonathan Pobst <monkey@jpobst.com>
14913 * Form.cs: Don't exit the program if RecreateHandle is called on
14916 2007-03-12 Chris Toshok <toshok@ximian.com>
14918 * XEventQueue.cs: remove the use of PostQuitState.
14920 * XplatUIX11.cs: remove the use of PostQuitState. If we get a
14921 WM_QUIT message in GetMessage, return false (and if we're in the
14922 nested WaitForHwndMessage, repost the WM_QUIT message).
14924 2007-03-12 Jonathan Pobst <monkey@jpobst.com>
14926 * Form.cs: Don't call RecreateHandle when we change the MinimizeBox
14927 or the MaximizeBox properties. [Part of bug #80640]
14929 2007-03-12 Everaldo Canuto <everaldo@simios.org>
14931 * LinkLabel.cs: When calculate pieces make LinkArea empty if theres
14934 2007-03-12 Jonathan Pobst <monkey@jpobst.com>
14936 * ToolStripItem.cs: Fix some tests I broke by checking Visible
14937 instead of visible.
14939 2007-03-12 Gert Driesen <drieseng@users.sourceforge.net>
14941 * FileDialog.cs: Use text of File name combobox to determine what
14942 files the user selected. Added tokenizer to parse the file names.
14945 2007-03-12 Jonathan Pobst <monkey@jpobst.com>
14947 * Control.cs: We can't call SizeFromClientSize in the constructor,
14948 but we still need to do the same work, so make an internal version.
14951 2007-03-12 Jackson Harper <jackson@ximian.com>
14955 * OpenTreeNodeEnumerator: Match MS better for IsVisible and
14958 2007-03-12 Jackson Harper <jackson@ximian.com>
14960 * TextBoxBase.cs: Now that the handles are being created a little
14961 later, we need to make sure that the document is recalculated when
14962 the handle is created.
14964 2007-03-11 Everaldo Canuto <everaldo@simios.org>
14966 * Theme.cs: GetLinkFont abstract method added.
14969 - Remove CalcTrimRectangle, no longer needed.
14970 - Factor also remove, position issues must be fixed in libgdiplus.
14971 - Move GetPieceColor to ThemeWin32Classic.cs as it is theme related.
14972 - GetPieceFont, CreateLinkFont and link_font removed, theme must be
14973 care about font used to draw links.
14974 - Set TabStop to true when control is "Selectable", control is selectable
14975 when have one or more links. Fixes #80501 (test case is also added).
14976 - Set the LinkArea values after links change, LinkArea values must be
14977 based in first link position and size, a test case was created.
14978 - Fix ControlStyles.Selectable value, now is based on LinkArea value,
14979 the attribute must be true LinkArea.Length > 0. The same was applied to
14982 * ThemeWin32Classic.cs:
14983 - LinkLabelGetPieceColor and LinkLabelGetPieceFont created and used
14985 - Use CPDrawStringDisabled to draw disabled text instead of hard code
14987 - Draw focus rectangle for every parts focused, including parts that
14988 is on another line, its because regions returns various rectangles
14989 and not only one. Needed to mimic W32 look.
14990 - Uses Graphics.Clip to delimite region painted, it mean that now
14991 complete text is passed to DrawString, with this we solve layout
14992 issues without create another text renderer.
14993 - Uses Region.Intersect to fix some flickers problems, now only needed
14994 parts will redrawed.
14995 - This changes fixes #79614 and some other unreported issues, on Linux
14996 some layout problems still remain, the problem is under
14997 MeasureCharacterRanges but it is an libgdiplus bug.
14999 2007-03-10 Gert Driesen <drieseng@users.sourceforge.net>
15001 * TextBox.cs: Set for foreground color.
15002 * TextBoxBase.cs: Remove Invalidate when setting BackColor, since
15003 this is already done in Control.
15005 2007-03-10 Jackson Harper <jackson@ximian.com>
15007 * TextBox.cs: Set the background color, but reset the
15008 backcolor_set flag which is just for the user setting the
15011 2007-03-09 Chris Toshok <toshok@ximian.com>
15013 * Control.cs: really remove the call to XplatUI.SetVisible from
15014 CreateHandle(), like I said I did when I merged the branch.
15016 * BindingSource.cs: implement some more of this stuff.
15018 2007-03-09 Jackson Harper <jackson@ximian.com>
15020 * TextBox.cs: Don't explicitly set our background colors.
15022 * TextBoxBase.cs: Draw readonly text.
15023 - Need to invalidate when backcolor or readonly are changed.
15025 2007-03-09 Jackson Harper <jackson@ximian.com>
15027 * TextBoxBase.cs: Don't set the forecolor until the handle is
15029 - Do not raise OnPaint, and removed some old debug code.
15031 2007-03-09 George Giolfan <georgegiolfan@yahoo.com>
15033 * ScrollableControl.cs: Fix mouse wheel scrolling.
15035 2007-03-09 Jonathan Pobst <monkey@jpobst.com>
15037 * Control.cs: Wire up MouseDoubleClick event.
15039 2007-03-09 Jonathan Pobst <monkey@jpobst.com>
15041 * ToolStrip.cs: Rework AutoSize to adjust height when docked to the
15043 * ToolStripItem.cs: Make Image drawing take ImageScaling into account.
15044 * ToolStripItemCollection.cs: Don't call owner.PerformLayout when a new
15045 item is added. This logic was moved to ToolStrip.OnItemAdded.
15048 2007-03-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
15050 * ListVieItem.cs: SetIndex is only valid for 2.0 profile by now.
15052 2007-03-08 Jackson Harper <jackson@ximian.com>
15054 * TreeView.cs: Show the correct image for selected node (this used
15055 to work, not sure how the code got deleted). Also implemented 2.0 feature
15058 2007-03-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
15061 * ListViewItem.cs: Cache index in items when retrieving them
15064 2007-03-08 Jonathan Pobst <monkey@jpobst.com>
15066 * ToolStripItem.cs: Don't return the explicit_size if we are using
15067 AutoSize. Fixes invalidation issue when user has explicitly set a
15068 size and has AutoSize = true.
15070 2007-03-08 Jonathan Pobst <monkey@jpobst.com>
15072 * XplatUIX11.cs: Hardcode FrameBorderSize value temporarily to fix MWF.
15074 2007-03-07 Pedro Martínez Juliá <pedromj@gmail.com>
15076 * DataGridView.cs: Remove event handler from DataView when a
15077 DataTable is used as DataSource.
15079 2007-03-08 Jonathan Pobst <monkey@jpobst.com>
15081 * Control.cs: Create internal setter for client_size to allow it to be
15082 set without triggering resizing code.
15083 * Form.cs: Calculate client_size in constructor, only change client_size
15084 in FormBorderStyle property if Handle has been created.
15085 [Fixes #80574, #80791]
15087 2007-03-08 George Giolfan <georgegiolfan@yahoo.com>
15089 * SystemInformation.cs: Add TerminalServerSession.
15091 2007-03-07 Jonathan Pobst <monkey@jpobst.com>
15093 * TreeViewDrawMode.cs: Make internal for 1.1 to allow for consolidated
15096 2007-03-07 Jonathan Pobst <monkey@jpobst.com>
15098 * XplatUIWin32.cs: The no_activate stuff was forcing us to create a
15099 Handle before we were supposed to. Now checks ActivateOnShow property
15101 * Control.cs: Add internal ActivateOnShow property.
15102 * ComboBox.cs, Form.cs, MenuAPI.cs, ToolStripDropDown.cs: Return false
15103 for ActivateOnShow.
15104 * Hwnd.cs Remove no longer needed no_activate field.
15106 2007-03-07 Jackson Harper <jackson@ximian.com>
15108 * TreeView.cs: Implement owner draw tree nodes. And a couple more
15110 * DrawTreeNodeEventHandler.cs: Add
15111 * DrawTreeNodeEventArgs.cs: Correct default value.
15113 2007-03-07 Chris Toshok <toshok@ximian.com>
15115 * XplatUIWin32.cs: create InternalWndProc so that we're guaranteed
15116 to be called before NativeWindow.WndProc. Put the HwndCreating
15117 magic there to hook up our Hwnd's to handles.
15119 2007-03-07 Gert Driesen <drieseng@users.sourceforge.net>
15121 * DataGridView.cs: Comment out debug code.
15123 2007-03-07 Chris Toshok <toshok@ximian.com>
15125 [merge -r72718:73765 from mwf-handle-branch, and include 2 changes
15126 to make the rest of the world happy]
15128 * Control.cs (CreateHandle): there's no need to call
15129 XplatUI.SetVisible here, it's effectively done by
15130 XplatUI.CreateWindow on X now, and always was on windows.
15132 * XplatUIX11.cs (WaitForHwndMessage): only use the PostQuitState
15133 shortcircuit out of the loop if we have a message loop running on
15136 [Changelog from merge]
15138 2007-03-05 Chris Toshok <toshok@ximian.com>
15140 * Control.cs (AccessibilityNotifyClients): turns out in 1.1 this
15141 causes handle creation.
15143 2007-02-28 Chris Toshok <toshok@ximian.com>
15145 * ApplicationContext.cs: Add a flag to make sure we only raise the
15146 ThreadExit event once (ExitThreadCore can be indirectly called
15147 from a few places.) I don't like the additional flag, but it
15148 makes the event ordering/count correct.
15150 * Application.cs (MWFThread.LoopCount): don't use an enumerator
15151 without locking the collection. An enumerator doesn't give us any
15152 protection from modification anyway. Lock the thread hash and
15153 replace the complicated enumerator loop with a foreach.
15154 (Application.CloseForms): make internal so it can be called from
15155 ApplicationContext. This should probably be moved to MWFThread.
15156 (Application.ExitThread): don't call MWFThread.Current.Exit()
15157 here. just call XplatUI.PostQuitMessage. We'll exit the thread
15158 when the runloop exits (in response to WM_QUIT.)
15159 (Application.RunLoop): add a comment (and check) for
15160 context.MainForm being null after setting context.MainForm.Visible
15161 = true. This is because you're perfectly free to dispose of a
15162 form in VisibilityChanged. Chalk this up to another case where we
15163 need to synchronously generate WM_ACTIVATE from Control.Show.
15164 Also, add handling for WM_QUIT here so we'll exit the loop.
15166 * XplatUIX11.cs: clean up MapWindow and UnmapWindow a bit. The
15167 fact that we don't wait if we're only unmapping the whole_window
15168 makes me a bit nervous, but it doesn't seem to cause any problems
15171 also, add a comment about the stupid, broken and wrong resetting
15172 of PostQuitState to false in GetMessage().
15174 In PostQuitMessage, we need to add a WM_QUIT message to the
15175 thread's queue. We use the FosterParent to get the right
15178 Lastly, in SetVisible, we need to unmap both windows, since the
15179 waiting only happens when we're unmapping the client window. So
15180 now, the *only* time we unmap just the whole_window is in the hack
15181 for resizing a control to 0,0.
15183 2007-02-21 Chris Toshok <toshok@ximian.com>
15185 * Application.cs (CloseForms): rewrite this so that we don't
15186 modify the list while we're traversing it.
15188 2007-02-20 Chris Toshok <toshok@ximian.com>
15190 * ListBox.cs (.ctor): move the Control.AddImplicits here instead
15191 of OnHandleCreated.
15192 (HorizontalScrollEvent): only call XplatUI.ScrollWindow if the
15193 handle is created. otherwise we'll create it here.
15194 (VerticalScrollEvent): same here.
15196 * Application.cs (CloseForms): call Form.Dispose, don't post
15199 * Form.cs (WndProc): we don't need to use CLOSE_INTERNAL
15200 here. Application should Dispose() of the Form's.
15202 * XplatUIX11.cs (WaitForHwndMessage): break out of the loop on
15203 WM_DESTROY as well.
15204 (MapWindow,UnmapWindow): only actually do the waiting for
15205 SHOWWINDOW if the control we're dealing with is a Form.
15206 (CreateWindow): if the control isn't a form, SendMessage
15207 WM_SHOWWINDOW here (if the WS_VISIBLE style is set).
15209 * Control.cs (SetVisibleCore): always use is_visible here, not
15210 value. If we use value, we can end up re-setting something
15211 visible if, for instance, you do Control.Hide() in a delegate
15212 attached to VisibleChanged as we do in FormTest.ShowDialogTest.
15214 2007-02-20 Chris Toshok <toshok@ximian.com>
15216 * XplatUIX11.cs (WaitForHwndMessage): we need to loop until we get
15217 the message we need. PeekMessage returning false should not be a
15218 condition under which we exit the loop.
15220 2007-02-15 Chris Toshok <toshok@ximian.com>
15222 * Control.cs (Refresh): only refresh if we've got a handle and are
15224 (CreateAccessibilityInstance): CreateControl() here.
15225 (UpdateChildrenZOrder): complicate the code loop even more by
15226 taking into account controls that haven't had their handle
15227 created, and those that aren't visible. But on the flip side,
15228 simplify the code by splitting it into two loops. one which
15229 builds up the list of child controls we're interested in, and the
15230 other that sets the z order of those children.
15232 2007-02-14 Chris Toshok <toshok@ximian.com>
15234 * Control.cs: Control.AccessibilityObject causes the control to be
15235 created, not just the handle.
15237 2007-02-14 Chris Toshok <toshok@ximian.com>
15239 * Control.cs: rework UpdateChildrenZOrder to correctly handle the
15240 problem on X where a window might have its handle created (and be
15241 visible) while the window is unmapped. calling XConfigureWindow
15242 on an unmapped window is bad, and generates X errors.
15244 2007-02-13 Chris Toshok <toshok@ximian.com>
15246 * Control.cs (CreateHandle): don't loop over our children setting
15247 their parent here. do it when in WndProc when we're shown.
15248 (UpdateChildrenZOrder): make this internal so we can call it from
15250 (WndProc): for WM_SHOWWINDOW, reparent the child control after
15251 creating its handle. Also, remove the calls to PerformLayout from
15252 here. they're done in ScrollableControl.OnVisibleChanged. Also,
15253 OnVisibleChanged only seems to be called directly here for the
15254 toplevel control. It's propagated down the window hierarchy by
15255 calls to child.OnParentVisibleChanged.
15256 (OnVisibleChanged): don't do layout here - it's done (oddly
15257 enough, according to a glance at stack traces on ms.net..) in
15260 * ScrollableControl.cs (OnVisibleChanged): make sure we update the
15261 z order of our children before calling PerformLayout.
15263 2007-02-12 Chris Toshok <toshok@ximian.com>
15265 [big change, fixes #80020]
15267 * AccessibleObject.cs: we need to make owner internal again to fix
15268 some of ControlAccessibleObject.
15270 * Control.cs: lots of changes here. add support for WM_CREATE,
15271 for which we generate OnHandleCreated. Remove the OnHandleCreated
15272 call from CreateHandle. Also add support for WM_SHOWWINDOW where
15273 we create child controls. leave the MonoTODO's for the
15274 accessibility calls, but fix the exceptions so the tests pass.
15276 Add the InvalidOperationExceptions to Invoke methods, and remove a
15277 couple of InvokeInternal methods we aren't using.
15279 Also, add a couple of CreateHandle calls in places where we know
15280 the handles are being created but our code doesn't reference
15283 Make SetVisibleCore call OnVisibleChange if the handle isn't
15284 created. If the handle is created, we rely on XplatUI.SetVisible
15285 generating the event synchronously.
15287 Lastly, make sure we don't use this.Handle inside CreateHandle,
15288 because we can call back into client (and that code can dispose of
15291 * XplatUIStructs.cs: misc/cleanup.
15293 * XplatUIX11.cs: Map/Unmap X events correspond to WM_SHOWWINDOW,
15294 although we don't populate the wParam properly.
15295 (CreateWindow): generate WM_CREATE.
15296 (MapWindow,UnmapWindow): make these calls synchronous, at great
15297 performance expense (particularly in the unmap case), to match
15300 * Form.cs (.ctor): remove the call to UpdateBounds. we don't need
15302 (set_MdiParent): don't recreate the handle unless it's been
15305 * MdiClient.cs (OnResize): don't InvalidateNC Parent.Handle unless
15308 * NativeWindow.cs: this is probably the weirdest part of the
15309 patch. We need a way to link up the window being created to the
15310 WM_CREATE message. Since we can only be creating one window at a
15311 time on a given thread, we keep track of a per-thread reference so
15312 we can dispatch it properly. We also need to keep track of the
15313 Hwnd currently being created so that the win32 backend doesn't
15316 * XplatUIWin32.cs: a similar change to the one we made in
15319 2007-03-07 Jonathan Pobst <monkey@jpobst.com>
15321 * ToolStripItem.cs: Make CalculatePreferredSize virtual.
15322 * ToolStripMenuItem.cs: Modify CalculatePreferredSize and OnPaint
15323 to draw the menu shortcut string.
15325 2007-03-07 Jackson Harper <jackson@ximian.com>
15327 * TreeNode.cs: Add the 2.0 collapse method.
15329 2007-03-07 Pedro Martínez Juliá <pedromj@gmail.com>
15331 * DataGridViewColumn.cs: Fix HeaderText behaviour (Bug #80746).
15333 2007-03-07 Pedro Martínez Juliá <pedromj@gmail.com>
15335 * DataGridView.cs: Change DataSource will clear column and row
15336 lists. Call Invalidate() to reflect DataSource change.
15338 2007-03-07 Pedro Martínez Juliá <pedromj@gmail.com>
15340 * DataGridView.cs: Add rows when DataSource is System.Data.DataView
15341 and a new row is added to it.
15343 2007-03-07 Pedro Martínez Juliá <pedromj@gmail.com>
15345 * DataGridView.cs: Add columns when DataSource is en empty list but
15346 is a System.Data.DataView (from a System.Data.DataTable).
15348 2007-03-06 Andreia Gaita <avidigal@novell.com>
15350 * Label.cs: Implement AutoEllipsis (2.0)
15352 2007-03-06 Jackson Harper <jackson@ximian.com>
15354 * TreeView.cs: Implement 2.0 TopNode setter property.
15355 - Use a local var instead of the skipped_nodes field for computing
15356 how many nodes to skip. Otherwise we won't scroll because the
15357 valuechanged handler checks if skipped_nodes is equal to the new
15359 - Implement 2.0 Sort method.
15360 - Add useless 2.0 DoubleBuffer property
15361 - Implement 2.0 LineColors property. Lets you change the color of
15362 the lines in the tree. Terribly useful for creating non cohesive
15364 - Implement 2.0 image key feature.
15366 2007-03-06 Jackson Harper <jackson@ximian.com>
15368 * TreeView.cs: We can't get the bounds of the nodes before raising
15369 the AfterSelect event, because that event could change the node's
15370 bounds (scrolling, font change, etc).
15372 2007-03-06 Rolf Bjarne Kvinge <RKvinge@novell.com>
15374 * XplatUIWin32.cs: When faking styles don't remove the WS_VISIBLE flag.
15375 * Form.cs: Don't recreate handle when creating FormWindowManager, just
15376 update window styles. In CreateParams us VisibleInternal instead of
15377 VIsible to get the actual visible flag set for this form.
15378 * FormWindowManager.cs: Activate the form whenever the mouse clicks on
15379 the nc area. Fixes #81042. Also fix HandleTitleBarDoubleClick to
15380 handle the case when the form is already maximized, in which case
15381 it should be restored. Fixes #81043.
15383 2007-03-06 Rolf Bjarne Kvinge <RKvinge@novell.com>
15385 * XplatUIX11.cs: Tool windows still get wm styles. Fixes toolwindows showing up with double decorations.
15387 2007-03-05 Jackson Harper <jackson@ximian.com>
15389 * TreeViewHitTestInfo.cs: implement.
15391 2007-03-05 Jackson Harper <jackson@ximian.com>
15393 * InternalWindowManager.cs: class status fix.
15395 2007-03-05 Rolf Bjarne Kvinge <RKvinge@novell.com>
15397 * InternalWindowManager.cs: All windows that have a parent
15398 are confined to their parent when they're being moved.
15401 2007-03-04 Gert Driesen <drieseng@users.sourceforge.net>
15403 * SystemInformation.cs: Marked KeyboardDelay and KeyboardSpeed public
15404 on 2.0 profile. Fixes bug #81018. Small code formatting fixes.
15406 2007-03-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
15408 * ThemeWin32Classic.cs: ManagedWindowSetButtonLocations: Make all
15409 buttons invisible before deciding which ones should be visible
15410 (fixes minimize/maximize buttons showing up in toolwindows). Remove
15411 an unused variable.
15412 * InternalWindowManager.cs: Remove warning.
15414 2007-03-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
15416 * ListView.cs: Add a check in ListViewItemCollection.RemoveAt
15417 to throw an InvalidOperationException is virtual mode is being used.
15419 2007-03-02 Jonathan Pobst <monkey@jpobst.com>
15421 * SplitContainer.cs, SplitterPanel.cs, StatusStrip.cs, TableLayoutPanel.cs,
15422 ToolStrip.cs, ToolStripContainer.cs, ToolStripContentPanel.cs,
15423 ToolStripControlHost.cs, ToolStripDropDownItems.cs, ToolStripItem.cs,
15424 ToolStripMenuItem.cs, ToolStripOverflowButton.cs, ToolStripPanel.cs,
15425 ToolStripPanelRow.cs, ToolStripProfessionalRenderer.cs, ToolStripSplitButton.cs,
15426 ToolStripStatusLabel.cs, ToolStripTextBox.cs: Corcompare work.
15428 2007-03-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
15430 * XplatUI.cs: Fixed returning driver.KeyboardSpeed instead of
15431 driver.KeyboardDelay from XplatUI.KeyboardDelay
15432 * XplatUIW in32.cs: Implemented KeyboardSpeed/KeyboardDelay properties
15433 (patch by Sergey Volk)
15435 2007-03-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
15437 * ToolWindowManager.cs: Added, contains logic for
15439 * CreateParams.cs: Add a few helper methods and an
15440 internal variable to know which control the CreateParams belongs
15442 * Control.cs: Call Form.ChangingParent when the
15443 parent is about to be changed.
15444 * XplatUIX11.cs: DeriveStyles (): Set
15445 caption_height for all windows that have captions and are children.
15446 Update to use ToolWindowManager instead of InternalWindowManager
15448 * XplatUIWin32.cs: Set fake window styles for all
15449 windows that have window managers.
15450 * MdiWindowManager.cs: Added MaximizedTitleButtons (buttons are
15451 now duplicated for mdi windows when they are
15452 maximized, first for the buttons the window itself has, then for
15453 the buttons that appear in the menu bar. Makes things a little
15454 easier). Updated UpdateWindowDecorations, SetWindowState and the
15455 mouse eventhandlers accordingly.
15456 * Form.cs: Add ChangingParent (), contains the
15457 logic of what should happen when the parent changes. In MdiParent
15458 don't set things that ChangingParent () is doing. When handling
15459 WM_CLOSE, we can close the form if there are any other modal forms
15460 and the current form is a descendent of the modal form.
15461 * InternalWindowManager.cs: A lot of refactoring,
15462 the title buttons are now extracted to a separate container class
15463 that takes care of all button code (clicks, tooltips, etc). Moved
15464 Iconic|Maximized|Normal Bounds properties to this class from
15465 MdiWindowManager, so that the window state logic can succeed for
15466 other than mdi wm's. Implemented general window state change logic.
15467 Moved CreateButtons to ThemeWin32Classic, since the theme might
15468 override which buttons are available when as well as the exact
15470 * FormWindowManager.cs: Added, contains logic for
15472 * ThemeWin32Classic.cs: ManagedWindowSetButtonLocations now decides
15473 which buttons go where (and if they are at all visible).
15474 Removed special handling of maximized windows, since they aren't special.
15475 In DrawManagedWindowDecorations don't try to draw the text if it is
15477 * MdiClient.cs: ArrangeIconicWindows: Don't calculate any sizes,
15478 use whatever the wm gives us.
15480 2007-03-02 Jonathan Pobst <monkey@jpobst.com>
15482 * ButtonBase.cs: Add 2.0 properties.
15483 * Button.cs: Override Draw for 2.0.
15484 * Control.cs: Add Entered and Selected properties.
15485 * FlatButtonAppearance.cs, TextFormatFlags.cs, TextImageRelation.cs,
15486 TextRenderer.cs: Make internal for 1.1 to unify drawing code.
15487 * Theme.cs: New abstract functions for drawing Standard, Flat, Popup
15489 * ThemeWin32Classic.cs: Implement layout calculations for 2.0 buttons.
15491 2007-03-01 Jonathan Pobst <monkey@jpobst.com>
15493 * XplatUIWin32.cs: Don't use 2.0 methods in 1.1 code. :/
15495 2007-03-01 Jonathan Pobst <monkey@jpobst.com>
15497 * XplatUIWin32.cs: Register a new class with Windows each time we get
15498 a new ClassStyle. [Fixes bugs #79432, #80817]
15499 * Controls.cs: Set the correct ClassStyle in CreateParams.
15500 * ToolStripDropDown.cs: Don't request an invalid ClassStyle.
15502 2007-03-01 Gert Driesen <drieseng@users.sourceforge.net>
15504 * ListView.cs: Add fireEvent argument to ReorderColumn since the
15505 ColumnReordered event must not be signaled when modifying DisplayIndex
15506 of a ColumnHeader. Added internal ReorderColumns method which takes
15507 care of drawing, and updating the internal DisplayIndex of the
15508 ColumnHeader. Added AddColumn method which is invoked from
15509 ColumnHeaderCollection when adding or inserting columns, and which
15510 ensures that reorder_columns_indices is kept in sync. Avoid redrawing
15511 after adding each ColumnHeader in ColumnHeaderCollection.AddRange.
15512 Recalculated dispay indices after removing a ColumnHeader.
15513 * ColumnHeader.cs: Save DisplayIndex separately from ListView to
15514 match MS. Allows last display index to be returned after ListView
15515 is disposed. Update actual location of ColumnHeader when DisplayIndex
15518 2007-03-01 Everaldo Canuto <everaldo@simios.org>
15520 * LinkLabel.cs: Improve CalcTrimRectangle.
15522 * ThemeWin32Classic.cs: Fix some compilation problem under VS 2003.
15524 2007-02-28 Everaldo Canuto <everaldo@simios.org>
15526 * LinkLabel.cs: Rename CalcMeasurementFactor as CalcTrimRectangle and
15527 get rectangle as a result value.
15529 2007-02-28 Everaldo Canuto <everaldo@simios.org>
15531 * LinkLabel.cs: Theres some diferences between rectangle return from
15532 MeasureCharacterRanges and the area used for DrawString to fix this
15533 CalcMeasurementFactor method was created, it calcules the diferences
15534 to be use later to adjust rectangle in draw operations. Fixes #80473.
15536 * ThemeWin32Classic.cs: Use factor calculated by CalcMeasurementFactor
15537 to adjust draw rectangle.
15539 2007-02-27 Everaldo Canuto <everaldo@simios.org>
15541 * ThemeWin32Classic.cs: In DrawLinkLabel draw focus rectangle before draw
15542 text and some other changes to reduce and optimize source code.
15544 2007-02-27 Jonathan Pobst <monkey@jpobst.com>
15546 * RadioButton.cs: Implement 2.0 event.
15547 * RelatedImageListAttribute.cs: Implement new class.
15549 2007-02-27 Everaldo Canuto <everaldo@simios.org>
15551 * MenuAPI.cs: Change keynav_state before call SelectItem. Fixes #80901.
15553 2007-02-27 Jonathan Pobst <monkey@jpobst.com>
15555 * CheckBox.cs: Implement 2.0 functionality.
15557 2007-02-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
15559 * ListView.cs: Refactor Add and AddRange methods of
15560 ListViewItemCollection, to not update the ListView
15561 everytime an item is added in AddRange. Also move the update
15562 code to a new CollectionChanged method, and call it
15563 from other methods that need it as well (this should also fix some
15564 bugs when Sorting is used).
15566 2007-02-27 Jackson Harper <jackson@ximian.com>
15568 * TextControl.cs: Try to never let the caret stay in a non-text
15570 * TextBoxBase.cs: Update the caret.
15572 2007-02-26 Jonathan Pobst <monkey@jpobst.com>
15574 * XplatUIStructs.cs: Add some convenience methods for POINT structure.
15575 * XplatUIWin32.cs: Add some convenience methods for RECT structure,
15576 delete POINT structure, duplicate of one in XplatUIStructs.
15577 * TextRenderer.cs: Use XplatUIWin32.RECT instead of UXTheme.RECT.
15579 2007-02-26 Gert Driesen <drieseng@users.sourceforge.net>
15581 * ListView.cs: Initialize LabelEditEventArgs after setting Text of
15582 edit box since otherwise the Label would immediately be set (even if
15583 the user did not modify the label). In OnKeyDown set Handled to true
15584 if Return or Escape was pressed. In ColumnHeaderCollection unlink
15585 columns that are to be removed. In ListViewItemCollection unlink items
15586 that are to be removed.
15588 2007-02-24 Jonathan Pobst <monkey@jpobst.com>
15590 * TextRenderer.cs: If we set a GDI clip region, we need to clear
15591 it when we are done. [Fixes bug #80949]
15593 2007-02-23 Jonathan Pobst <monkey@jpobst.com>
15595 * Form.cs: Wrap checking ShowWithoutActivation in a NET_2_0 block.
15597 2007-02-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
15599 * ListView.cs: I forgot to commit the changes for ListView
15600 in my previous patch.
15602 2007-02-23 Jonathan Pobst <monkey@jpobst.com>
15604 * Clipboard.cs: Partially implement an overload of SetDataObject.
15605 * Form.cs: Implement ShowWithoutActivation.
15606 * XPlatUIWin32.cs: Fix for WM_SHOWNOACTIVATE for forms.
15608 2007-02-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
15610 This is a first set of changes to make the Virtual mode works,
15611 by avoiding the retrieval of ListViewItem instances until
15614 * ListView.cs: Store item position in the ListView instead of the
15615 ListViewItem, this way we don't request the Bounds property of
15616 ListViewItem inside the ListView calculations, as well as cache the item
15617 size in item_size field. Store indexes instead of ListViewItem
15618 instances in the matrix used by icon view. Add a ItemMatrixLocation
15619 struct to hold the row and col info of the matrix info.
15621 * ListViewItem.cs: Don't store the location anymore, and only cache
15622 the rectangles for GetBounds. Use the ListView.GetItemLocation
15623 method to retrieve the actual location.
15625 2007-02-23 Jonathan Pobst <monkey@jpobst.com>
15627 * TextRenderer.cs: Add clipping support, thanks to George.
15630 2007-02-23 Gert Driesen <drieseng@users.sourceforge.net>
15632 * ListViewItem.cs: Cancel label edit when item is removed from
15634 * ListView.cs: Move setting of focus to EndEdit. Fire BeforeLabelEdit
15635 event before the edit textbox is displayed. Added CancelEdit method
15636 which is used end to editing while ignoring the value set by the
15637 user. In EndEdit, set focus to ListView to avoid losing focus to
15638 other controls. In ListViewItemCollection.Clear, cancel editing of
15639 any of the items. In Remove, cancel editing of item being removed.
15640 Avoid udplicate code by modifing RemoveAt to invoke Remove.
15642 2007-02-23 Gert Driesen <drieseng@users.sourceforge.net>
15644 * FileDialog.cs: Update FSEntry when move is successful. Fixes
15647 2007-02-23 Everaldo Canuto <everaldo@simios.org>
15649 * MainMenu.cs: Change Draw method to take care about MenuOrigin to be
15650 compatible with non X11 systems. Fixes #80901.
15652 2007-02-23 Gert Driesen <drieseng@users.sourceforge.net>
15654 * ListView.cs: Added bool argument to UpdateMultiSelection to specify
15655 whether the item should be unselected and reselect. We do no want this
15656 when we're starting to edit the label. Do not fire the
15657 SelectedIndexChanged event from ListView when its already been fired
15658 by modifying ListViewItem.Selected. Fixes bug #80943.
15660 2007-02-23 Jonathan Pobst <monkey@jpobst.com>
15662 * TextRenderer.cs: Previos commit logic was backwards.
15664 2007-02-23 Jonathan Pobst <monkey@jpobst.com>
15666 * TextRenderer.cs: Don't add padding on MeasureText if we were
15667 sent the NoPadding flag.
15669 2007-02-23 Everaldo Canuto <everaldo@simios.org>
15671 * ThemeWin32Classic.cs: Invert order of drawing operation with DrawImage
15672 after DrawButton. To prevent image overlaps button borders SetClip and
15673 ResetClip added before and after draw image. Fixes #79129.
15675 2007-02-23 Everaldo Canuto <everaldo@simios.org>
15677 * FolderBrowserDialog.cs: Use ClientSize instead of Size to specify
15678 window size, it fix problem when you run under win32 that theres
15679 Size diferent than ClientSize. Also fix controls size and positions
15680 to mimic Win32. Fixes #80837.
15682 2007-02-22 Everaldo Canuto <everaldo@simios.org>
15684 * Form.cs: Handle WM_NCHITTEST and return HTMENU when point is on
15685 menu area to fix some problems for non X11 systems. Fixes #80613.
15687 2007-02-22 Jackson Harper <jackson@ximian.com>
15689 * TreeNode.cs: When a node is expanded, set its is_expanded flag
15690 even if it doesn't have any children.
15692 2007-02-22 Jackson Harper <jackson@ximian.com>
15694 * TreeView.cs: Calculate the top node 'on the fly', this
15695 eliminates issues where you need to click on the tree before
15696 scrolling it to get the top node computed correctly.
15697 * TreeNodeCollection.cs: We don't need to mess with the top node
15700 2007-02-22 Jackson Harper <jackson@ximian.com>
15702 * DataGridViewRow.cs: Fix typo so height can actually be set.
15703 Patch by Peter Grimm.
15705 2007-02-22 Gert Driesen <drieseng@users.sourceforge.net>
15707 * FileDialog.cs: Fixed support for renaming files and directories.
15708 * ListView.cs: Do not lose focus when edit is canceled. Process
15709 Escape as regular key (to prevent closing of dialogs).
15711 2007-02-22 Gert Driesen <drieseng@users.sourceforge.net>
15713 * ListView.cs: Removed TODO for LabelEdit. Removed extra tabs and
15714 spaces. Changed spaces to tabs. Removed unnecessary init of bools.
15716 2007-02-22 Gert Driesen <drieseng@users.sourceforge.net>
15718 * FileDialog.cs: LabelEditEventArgs.Label now returns null when user
15719 did not modify label.
15720 * ListView.cs: Only set LabelEditEventArgs.Label if user actually
15721 modified the text. Reset Label when user presses Escape in edit mode.
15722 Move focus to ListView after having cancelled or finished editing the
15725 2007-02-21 Gert Driesen <drieseng@users.sourceforge.net>
15727 * ComboBox.cs: Removed unnecessary initializations. Marked items field
15728 private. Clear textbox when Text is set to null and SelectedIndex is
15730 * FileDialog.cs: Removed unnecessary initializations. Removed
15731 workarounds for ComboBox bugs that are now fixed. Modified
15732 DefaultExt, InitialDirectory and Title property to change null to
15733 zero-length string in getters. Avoid directly accessing fields.
15735 2007-02-20 Jackson Harper <jackson@ximian.com>
15737 * TextControl.cs: Remove RecalAlignments call, that was some
15738 debugging leftovers.
15739 - Don't use the line indent when we shouldn't.
15740 * RichTextBox.cs: Add support for paragraph left indents.
15742 2007-02-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
15744 * Control.cs: Fix BeginInvoke signature for 2.0 profile.
15745 Seems like the class status pages doesn't catch params differences.
15747 2007-02-19 Gert Driesen <drieseng@users.sourceforge.net>
15749 * ComboBox.cs: Removed extra tabs. Changes spaces to tabs.
15751 2007-02-19 Gert Driesen <drieseng@users.sourceforge.net>
15753 * ComboBox.cs: Setting Text should have no effect if item text of
15754 selected item exactly matches value. First lookup text using
15755 case-sensitive comparison, and fallback to case-insensitive comparison.
15756 FindString(Exact) returns -1 if search string is null. On 2.0 profile,
15757 allow startIndex to be last index. Changed ArgumentOutOfRangeException
15758 paramname to match MS. Restart from first item if string is not found
15759 after startIndex. Fixed paramname of ArgumentNullException that is
15760 thrown for null value in ObjectCollection.Contains.
15762 2007-02-19 Everaldo Canuto <everaldo@simios.org>
15764 * XplatUIStructs.cs: WM_XXX UISTATE elements uncommented.
15766 2007-02-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
15768 * ListControl.cs: In SelectedValue use value.Equals to compare for
15769 equality instead of ==, otherwise it will fail for strings.
15772 2007-02-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
15774 * ComboBox.cs: Switch the order to ShowSelection and ActivateCaret,
15775 since the caret won't show up unless ShowSelection is true.
15778 2007-02-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
15780 * Application.cs: When disabling all forms but the main form, do not
15781 disable any descendants of the main form (such as mdi children or
15782 other parented forms). Fixes #80822 on Windows.
15783 * Form.cs: If we have a parent, set the WS_CHILD style.
15784 * Control.cs: Update the window styles if the control whose parent has
15785 changed is a form (the WS_CHILD style has to be switched).
15787 2007-02-19 Everaldo Canuto <everaldo@simios.org>
15789 * XplatUIStructs.cs: MsgUIState structure added.
15791 2007-02-18 Gert Driesen <drieseng@users.sourceforge.net>
15793 * FileDialog.cs: Removed need for separate fileName field. On 2.0
15794 profile, do not check filename(s) for illegal character if filename(s)
15795 were set non-interactively but always check on 1.0 profile. Fixed NRE
15796 in DefaultExt and only strip off first leading dot. Improve exception
15797 message when invalid Filter is set. Do not ignore InitialDirectory if
15798 it does no exist. Store specified Title, and if empty use default
15799 title (depending on type of dialog). Added an internal DialogTitle
15800 property for retrieving dialog title. Fixed logic of displayed dir to
15801 more closely match MS. Avoid setting ComboBox.Text to a zero-length
15802 string as its buggy.
15803 * OpenFileDialog.cs: In OpenFile, throw ArgumentNullException if
15804 FileName is a zero-length string (it can never be null). Override
15805 DialogTitle property to set default title of dialog box.
15806 * SaveFileDialog.cs: Override DialogTitle property to set default
15807 title of dialog box.
15809 2007-02-18 Gert Driesen <drieseng@users.sourceforge.net>
15811 * FileDialog.cs: Modify default text of filename and filetype labels
15812 to match that of MS. Reset do_not_call_OnSelectedIndexChanged...
15813 after we've updated the SelectedIndex. Fixes part of bug #80887.
15814 * SaveFileDialog.cs: Set text of filetype label.
15816 2007-02-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
15818 * LabelEditEventArgs.cs: New internal SetLabel method, to set the
15819 label field. Needed by latest Jackson's fixes for ListView.
15821 2007-02-16 Andreia Gaita <avidigal@novell.com>
15823 * PrintPreviewControl/PrintPreviewDialog: Properly dispose of
15824 print preview images.
15826 2007-02-16 Jackson Harper <jackson@ximian.com>
15828 * ListView.cs: Make AfterLabelEdit work correctly.
15829 * FileDialog.cs: After changing the name of the folder, we have to
15830 make sure that it is created, or that we pop up an error because
15833 2007-02-16 Jackson Harper <jackson@ximian.com>
15835 * X11Dnd.cs: Implement aliases on mime handlers, so things like
15836 System.String are mapped to text.
15837 - Handle dataobjects, getting all the possible formats out of them
15838 - We dont need the drag event args before we give feedback. This
15839 allows feedback cursors to be immediate before selections have
15842 2007-02-16 Jackson Harper <jackson@ximian.com>
15844 * TextBoxBase.cs: Modified the method for inserting images to
15845 taking a line and position instead of tag and position.
15846 * RichTextBox.cs: Handle PngBlip data by inserting the png image
15848 * TextControl.cs: Allow images to be inserted as the first tag of
15850 - Fix some off by one issues when we assume the first tag is a
15851 text tag, not an image tag.
15853 2007-02-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
15855 * ListView.cs: Set focus to ListView when ItemControl gets a
15856 WM_RBUTTONDOWN message, to mimic .Net behaviour.
15857 Fixes part of #80467.
15859 2007-02-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
15861 * DateTimePicker.cs: Call RecreateHandle if the Format changes and
15862 validate Text input (if null or empty string reset Value to default
15863 value). Fixes #80830.
15865 2007-02-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
15867 * ListView.cs: Set owner as null for columns and items when
15868 Dispose is invoked. Fixes #80607.
15870 2007-02-14 Jonathan Pobst <monkey@jpobst.com>
15872 * ToolStrip.cs: Allow LayoutStyle.Flow, make sure to call OnOpening when
15873 showing DropDowns, don't show a Grip when doing Flow layout.
15874 [This fixes the toolbox in PDN 2.72.]
15875 * ToolStripItem.cs: Add Anchor property and some internal properties to
15876 reduces needed changes to FlowLayout.
15877 * ToolStripOverflow.cs: Remove unused variable.
15878 * ToolStripSplitStackLayout.cs: If a ToolStripItem isn't visible, don't
15879 use it in the layout calculations.
15881 2007-02-13 Everaldo Canuto <everaldo@simios.org>
15883 * ToolTip.cs: Add HotkeyPrefix.Hide to MeasureString format, it fix an issue
15884 reported in #79640.
15886 * ThemeWin32Classic.cs: Uses format for MeasureString in ToolTipSize to fiz
15889 2007-02-13 Everaldo Canuto <everaldo@simios.org>
15891 * ToolBar.cs, ToolBarButton.cs: Revert and remove HotkeyPrefix from
15892 MeasureString format, it can make button very large in some cases, it is
15893 strange but is what win32 do.
15895 2007-02-13 Everaldo Canuto <everaldo@simios.org>
15897 * ToolBar.cs, ToolBarButton.cs: Uses format in MeasureString to fix string
15900 * ThemeWin32Classic.cs: Set HotkeyPrefix in toolbar text format to fix text
15901 rendering, the value is based on MenuAccessKeysUnderlined.
15903 2007-02-13 Everaldo Canuto <everaldo@simios.org>
15905 * Theme.cs: Change MenuAccessKeysUnderlined to "true" that is value used
15908 * ThemeWin32Classic.cs: Override MenuAccessKeysUnderlined as false.
15910 * ThemeNice.cs, ThemeGtk.cs, ThemeClearlooks.cs: Remove always_draw_hotkeys
15911 and use MenuAccessKeysUnderlined instead.
15913 2007-02-13 Andreia Gaita <avidigal@novell.com>
15915 * ContainerControl.cs: Focus fix for nunit treeview selection bug.
15916 A selected control would not get a Focus call if:
15917 - the default active control of the container is the same as
15918 the one that was selected
15919 - we are switching from one container to another
15920 Under these conditions, the container being selected already has
15921 an active_control, which is the same as the one being activated,
15922 so set_ActiveControl would always return and not send the Focus
15923 call. Fix to check if the currently active control of the container
15924 is actually focused.
15926 2007-02-13 Jonathan Pobst <monkey@jpobst.com>
15928 * StatusStrip.cs: Implement the spring layout.
15929 * ToolStripControlHost.cs: Make sure the hosted control's visibility
15930 always matches the host.
15931 * ToolStripItem.cs: Write a more accurate layout for TextBeforeImage
15932 and TextAfterImage.
15934 2007-02-13 Andreia Gaita <avidigal@novell.com>
15936 * Control.cs: Code reorganization only.
15937 - Reorganize the WndProc cases so that each case has it's own handling method,
15938 to help with the no-line-numbering stack traces.
15939 - Formatting changes (it's vstudio's fault, really :p)
15941 2007-02-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
15943 * MonthCalendar.cs: Switch to using Thread.CurrentCulture instead of
15944 Thread.CurrentUICulture to match DateTimePicker's (and MS)
15947 2007-02-12 Jackson Harper <jackson@ximian.com>
15950 * TextBox.cs: By default we have a non multiline document
15951 - use the multiline property instead of the internal variable
15952 * TextBoxBase.cs: Treat multiline and non multiline the same in
15954 - Use the documents multiline flag instead of tracking it ourself
15955 * TextControl.cs: Attempt at getting multiline to match MS
15956 behavior. Lines now track an offset, which is either their X or Y
15957 offset depending on whether or not we are in multiline mode.
15958 - Update all the methods to understand that lines have an X value.
15959 - Fix crash in Undo::Duplicate when empty lines are deleted.
15961 2007-02-12 Everaldo Canuto <everaldo@simios.org>
15963 * Label.cs: CalcPreferredHeight and CalcPreferredWidth methods removed and
15964 code moved to properties PreferredHeight and PreferredWidth. It solve the
15965 all problems when preferred sizes must be recalculated. Fixes #80801.
15967 2007-02-12 Everaldo Canuto <everaldo@simios.org>
15969 * Label.cs: Fix CalcPreferredHeight for 2.0 that must return only
15970 font height when compatible_text_rendering is false. Partially fix #80801.
15972 2007-02-09 Gert Driesen <drieseng@users.sourceforge.net>
15974 * Form.cs: Fixed typo in exception message. Fixes bug #80779.
15976 2007-02-09 Gert Driesen <drieseng@users.sourceforge.net>
15978 * Form.cs: Improved exception messages in ShowDialog.
15980 2007-02-09 Gert Driesen <drieseng@users.sourceforge.net>
15982 * PrintDialog.cs: On 1.0 profile, throw ArgumentException in RunDialog if
15983 PrinterSettins has not been set. On 2.0 profile, initialize PrinterSettings
15984 if not set. Fixes bug #80764. Avoid accessing current_settings field
15987 2007-02-08 Everaldo Canuto <everaldo@simios.org>
15989 * Theme.cs: An new property MenuAccessKeysUnderlined added with default value
15992 * SystemInformation.cs: An new property MenuAccessKeysUnderlined added, it is
15993 public in 2.0 and for easy maintenance and dont break compatibility it is
15996 2007-02-08 Jonathan Pobst <monkey@jpobst.com>
15998 * ToolStripItem.cs: Implement using images from ImageList.
16000 2007-02-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
16002 * DateTimePicker.cs: Change default date-formatting culture from
16003 CurrentThread.CurrentUICulture to CurrentThread.CurrentCulture,
16004 seems to be the way MS does it.
16006 2007-02-08 Andreia Gaita <avidigal@novell.com>
16008 * PrintPreviewControl.cs: rewrite toolbar code to fix #80725. Correct 6-up image
16009 (the 6 was cut off on the right side)
16011 2007-02-08 Jonathan Pobst <monkey@jpobst.com>
16013 * Form.cs: Tell MenuStrips to close when the form is clicked.
16014 * MenuStrip.cs, ToolStrip.cs, ToolStripControlHost.cs,
16015 ToolStripDropDown.cs, ToolStripDropDownItem.cs, ToolStripItem.cs,
16016 ToolStripItemCollection.cs, ToolStripMenuItem.cs, ToolStripProfessionalRenderer.cs,
16017 ToolStripSplitButton.cs, ToolStripSplitStackLayout.cs: Add
16018 support for Overflow, where items that do not fit are automatically
16019 reparented to a drop down menu.
16020 * ToolStripOverflow.cs, ToolStripOverflowButton.cs: Added.
16021 Also: fixes bug #80747.
16023 2007-02-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
16025 * ComboBox.cs: Remove warning (unused code).
16026 * ScrollableControl.cs: Remove warning for 1.1 profile.
16028 2007-02-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
16030 * Form.cs: Remove a warning.
16032 2007-02-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
16034 * DateTimePicker.cs: Fixed a NRE if CustomFormat was null. Handles the
16035 'g' specifier, not documented anywhere, but seems to always show up
16036 as a single space (might have something to do with the DateTime 'g'
16037 specifier, which is the era format, but since DateTimePicker can't
16038 go earlier than 1753 it wouldn't matter) . Fixed quote handling,
16039 won't crash if the format has an unmatched quote. Now shows
16040 single-character formats correctly. Fixes #80744.
16042 2007-02-08 Jonathan Pobst <monkey@jpobst.com>
16044 * StatusStrip.cs: Stretch property needs to call base.Stretch,
16045 not this.Stretch to fix stack overflow. [Fixes bug #80760]
16047 2007-02-07 Chris Toshok <toshok@ximian.com>
16049 * ThemeWin32Classic.cs (DrawButtonBase): don't clear to the
16050 background color. it overwrites the background image we've
16051 already painted. Fixes #80599.
16053 2007-02-07 Chris Toshok <toshok@ximian.com>
16055 * DataGrid.cs: return immediately from Edit() when there are no
16056 columns. Fixes #80662.
16058 2007-02-07 Chris Toshok <toshok@ximian.com>
16060 * MessageBox.cs: fix #80625. don't always show the Help button in
16061 2.0. use the displayHelpButton parameter to determine if we
16062 should show it. Also, make the internal show_help field private.
16064 2007-02-07 Chris Toshok <toshok@ximian.com>
16066 * Control.cs (SetVisibleCore): check in the proposed patch for
16067 80604, and set is_visible before calling CreateControl.
16069 2007-02-07 Jonathan Pobst <monkey@jpobst.com>
16071 * ListView.cs: UseCompatibleStateImageBehavior setter changed from NIEX to
16072 MonoInternalNote. This is added automagically by VS2005, so let's not crash
16075 2007-02-06 Everaldo Canuto <everaldo@simios.org>
16077 * MenuAPI.cs: hotkey_active internal field added, it is required because
16078 we need to know when hotkeys must be draw, before this change a keystate
16079 Navigating was used but we can have menu in navigating state without
16080 hotkeys. Fixes #80694.
16082 * ThemeWin32Classic.cs: Only draw hot keys when hotkey_active is true.
16084 2007-02-06 Rolf Bjarne Kvinge <RKvinge@novell.com>
16086 * Control.cs: Handle WM_CAPTURECHANGED in 1.1 code as well, and change
16087 corresponding events and methods to be internal for 1.1 profile and
16088 public for 2.0 profile (required by SizeGrip).
16089 * Form.cs: Use SizeGrip as a virtual SizeGrip (and don't add it to the
16090 implicit control list). Don't set the size nor the location of the
16091 SizeGrip anymore as it's not needed.
16092 * SizeGrip.cs: Rewrote large parts, it now supports a virtual mode to
16093 draw directly on the captured control (fixes #80656). Removed
16094 ShowGrip (it wasn't used anywhere), redraw (always true), added
16095 GetDefaultSize and GetDefaultRectangle to calculate defaults.
16096 * ScrollableControl.cs: Make UpdateSIzeGripVisible internal so it can
16097 be called from SizeGrip.
16099 2007-02-06 Rolf Bjarne Kvinge <RKvinge@novell.com>
16101 * Timer.cs: Throw ArgumentException if Interval <= 0.
16103 2007-02-05 Jackson Harper <jackson@ximian.com>
16105 * TreeView.cs: We need to check scrollbar visibility when window
16106 visibility is updated, because non visible trees don't ever add
16108 * Cursor.cs: We want the override cursor to be reset to NULL when
16109 we set current cursor to the default cursor.
16111 2007-02-05 Jackson Harper <jackson@ximian.com>
16113 * TextControl.cs: Don't have crlfs when we are non multiline.
16114 - Consolidate the line position.
16116 2007-02-05 Jackson Harper <jackson@ximian.com>
16118 * X11Keyboard.cs: BACK+CTRL gets a special char code.
16120 2007-02-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
16122 * XplatUIX11.cs: Implemented WM_CAPTURECHANGED support, we're now
16123 handling LeaveNotify->NotifyUngrab in order to send
16124 WM_CAPTURECHANGED. However sometimes the NotifyUngrab arrives late
16125 after calling XUngrabPointer, so we call WindowUngrabbed directly
16126 from UngrabWindow in order to send WM_CAPTURECHANGED immediately.
16127 * Control.cs: Handle WM_CAPTURECHANGED in order to raise
16128 MouseCaptureChanged correctly. Also create handles if changing
16129 Capture (matches MS behaviour).
16131 2007-02-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
16133 * SizeGrip.cs: Make the last change 2.0 only.
16135 2007-02-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
16137 * SizeGrip.cs: If resizing and the capture is lost, revert any size
16138 changes to initial size (fixes #80597).
16140 2007-02-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
16142 * SizeGrip.cs: Use the normal icon for SizeGrip if it is disabled.
16144 2007-02-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
16146 * SizeGrip.cs: Only draw sizegrip if enabled (but always draw
16147 background) and only allow dragging if enabled. This way the
16148 sizegrip can be used to fill the open square that otherwise would
16149 have been shown in the bottom right corner of ScrollableControl
16150 when ScrollableControl is not suppose to support sizing.
16151 * ScrollableControl.cs: Create UpdateSizeGripVisible to decide when the
16152 sizegrip is shown and enabled, and hook up with necessary events.
16154 2007-02-01 Chris Toshok <toshok@ximian.com>
16156 * DataGridTextBoxColumn.cs: clean up the
16157 GetFormattedString/GetColumnValueAtRow combination of functions.
16158 Also fix UpdateUI, and the initial state of
16159 IsInEditOrNavigateMode.
16161 * DataGridTextBox.cs: don't chain up to base.OnMouseWheel - we
16162 aren't supposed to scroll the textbox here, we're supposed to
16163 scroll the datagrid.
16165 2007-02-01 Chris Toshok <toshok@ximian.com>
16167 * ComboBox.cs: use vscrollbar_ctrl.Dock instead of explicitly
16168 setting the position.
16170 2007-02-01 Chris Toshok <toshok@ximian.com>
16172 * DataGrid.cs (OnLeave): we can now do the CancelCurrentEdit thing
16173 here, since the most recent focus fixes keep us from generating
16174 the Leave event when our textbox gets focus.
16175 (Edit): we should be passing null for the column style's
16176 instantText parameter.
16178 2007-02-01 Jonathan Pobst <monkey@jpobst.com>
16180 * ToolStripDropDownItem.cs: Make sure DropDownOpening event is
16181 raised. Fixes menu text/icons not showing up in PDN.
16183 2007-02-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
16185 * Control.cs: Remove code in constructor that makes every
16186 control with WS_CHILD set have initial location -1, -1.
16188 2007-01-31 Jackson Harper <jackson@ximian.com>
16190 * X11Dnd.cs: Take the keyboard on init to reduce coupling with
16192 * XplatUIX11.cs: Give teh keyboard to teh dnd.
16194 2007-01-31 Jackson Harper <jackson@ximian.com>
16196 * X11Dnd.cs: Use IDataObject instead of the DataObject class.
16197 - Remove some debug code.
16199 2007-01-31 Jackson Harper <jackson@ximian.com>
16201 * XplatUIX11.cs: If you set the override cursor during a grab, it
16202 should actually override the grab cursor. This comes into play
16203 when you are setting custom cursors in a DND feedback method.
16205 2007-01-31 Jackson Harper <jackson@ximian.com>
16207 * X11Dnd.cs: Add support for handling the QueryContinue and
16208 GiveFeedback events.
16209 - Cancel drag and drop actions when the escape key is clicked.
16210 * XplatUIX11.cs: Let the dnd subsystem get key events, so that it
16211 can handle the ESCAPE key.
16212 - Allow dnd to swallow BUTTONUP messages if it needs to. This is
16213 done when dnd events are continued after the button is released.
16214 - Add a new helper method so that dnd can translate key events.
16216 2007-01-31 Alexander Olk <alex.olk@googlemail.com>
16218 * FileDialog.cs: Rewrite of Jacksons OnClickCancelButton patch to
16219 make it more obvious what is happening.
16221 2007-01-30 Jackson Harper <jackson@ximian.com>
16223 * XplatUIX11.cs: Don't break when handling button release in drag
16224 and drop operations. We need that BUTTONUP message to get through
16225 so capture is released.
16226 * X11Dnd.cs: We don't need to manually grab the pointer anymore,
16227 this is handled automatically when the mouse is down.
16229 2007-01-30 Jackson Harper <jackson@ximian.com>
16231 * FileDialog.cs: OnClickCancelButton gets called whenever the dialog
16232 is closed, so we need to make sure that we aren't changing the
16233 dialog result when the OK (Open or Save) button has been clicked
16234 and we are closing the window ourselves. Note we don't need to
16235 worry about the cache being written in this case, because it was
16236 already done in the previous FilOk call.
16238 2007-01-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
16240 * DateTimePicker.cs: Remove a warning.
16241 * ComboBox.cs: Remove a couple of warnings.
16243 2007-01-29 Chris Toshok <toshok@ximian.com>
16245 * XplatUIX11.cs: don't crash, and remove the icon if the user has
16246 set one, if SetIcon is passed a null icon.
16248 2007-01-29 Andreia Gaita <avidigal@novell.com>
16250 * TextBox.cs: Redraw when the password characters changes
16251 * TextControl.cs: Check if textbox has a password char and draw
16252 a line of password chars instead of the text in the line. LineTag gets
16253 an extra Draw() method which allows document.Draw to override the text
16254 that will be drawn. Removes 1024 char limitation on length of passworded
16257 2007-01-29 Jackson Harper <jackson@ximian.com>
16259 * TextBoxBase.cs: Deleting sections of text is undoable. Deleting
16260 single chars is not.
16262 2007-01-28 Jonathan Pobst <monkey@jpobst.com>
16264 * TextRenderer.cs: Fix cutting off the bottom of letters like "j" by
16265 one pixel. Fix a StackOverflowException caused by an overload wrongly
16268 2007-01-26 Everaldo Canuto <everaldo@simios.org>
16270 * MenuAPI.cs: Fixed kerboard grab problem when "enter"key is pressed,
16271 also remove ProcessArrowKey and put the code inside ProcessKeys.
16273 2007-01-26 Jonathan Pobst <monkey@jpobst.com>
16275 * PaddingConverter.cs: Added.
16277 2007-01-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
16279 * ThemeWin32Classic.cs: Only draw the text of a StatusBar if
16280 ShowPanels is false (fixes #80600). Only draw up to 127 characters
16281 of text (fixes #80601). For panels clip the text to draw to the
16282 panel (fixes #80603).
16284 2007-01-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
16286 * ComboBox.cs: Fixed implementation of ResetText.
16288 2007-01-25 Jackson Harper <jackson@ximian.com>
16290 * TextControl.cs: For the last char of a line we need to use the
16291 line size, not that chars width, since it won't actually be
16292 computed since the right side of a char is based on the start of
16293 the left side of the next char, and the next char does not exist.
16295 2007-01-25 Chris Toshok <toshok@ximian.com>
16297 * Splitter.cs: fix the new unit tests, and reindent some switch
16300 2007-01-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
16302 * ComboBox.cs: Implemented 2.0 methods and events.
16303 * TextBoxBase.cs: Added OnTextUpdate, so that
16304 ComboBox.ComboTextBox can inform ComboBox of it.
16306 2007-01-25 Jackson Harper <jackson@ximian.com>
16308 * TextControl.cs: Respect ShowSelection when deciding whether or
16309 not to display the caret, this allows comboboxes to have carets
16310 when the combotextbox does not have focus.
16312 2007-01-25 Jackson Harper <jackson@ximian.com>
16314 * TextControl.cs: Add a Suspend/Resume for updating, basically the
16315 same as the Suspend/Resume for recalc, except this will do actual
16317 - New Undo manager, works much like the MS version.
16319 * TextBoxBase.cs: The Cut operation is undoable.
16321 2007-01-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
16323 * TextBoxBase.cs: Don't antialias text. Makes it look way better
16324 on Windows (no difference on Linux).
16326 2007-01-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
16328 * XplatUIWin32.cs: Set SWP_NOACTIVATE in RequestNCRecalc as well,
16329 we don't want to activate any windows. Fixes #79433.
16331 2007-01-25 Jonathan Pobst <monkey@jpobst.com>
16333 - ButtonBase.cs: Fix capitalization of parameter: disposing.
16336 2007-01-25 Alexander Olk <alex.olk@googlemail.com>
16339 - Move to using System.ComponentModel.EventHandlerList
16340 - Replace Refresh with Invalidate
16341 - Clear the mime filecache on closing
16342 - Some other memory reducing work. After beeing closed FD now uses
16343 only about 300 KB for the fdo mime stuff plus the memory of the
16345 * Mime.cs: Changed coding style and removed unnecessary commented
16346 code. Some more memory memory reducing work.
16348 2007-01-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
16350 * ComboBox.cs: Implemented FlatStyle and DropDownHeight, and added
16351 a few other missing 2.0 properties.
16352 * Theme.cs: Added DrawFlatStyleComboBox.
16353 * ThemeWin32Classic.cs: Implemented DrawFlatStyleComboBox.
16355 2007-01-24 Chris Toshok <toshok@ximian.com>
16357 * XplatUIX11.cs: fix the wake_waiting logic - we always clear the
16358 wake_waiting flag, not just when there's data to be read. if we
16359 don't, then future wakeup's won't reach us and we'll be doomed to
16360 wait for the entire 1 second timeout forever (unless there are X
16363 2007-01-24 Jonathan Pobst <monkey@jpobst.com>
16365 * ComboBox.cs: FindStringExactMaxException doesn't throw AOORE on 2.0
16366 until you pass Items.Count, not Items.Count - 1 like 1.1.
16368 2007-01-24 Gert Driesen <drieseng@users.sourceforge.net>
16370 * ColumnHeader.cs: Fixed ParamName in ArgumentOutOfRangeException.
16372 2007-01-24 Jonathan Pobst <monkey@jpobst.com>
16374 * ToolStripContainer.cs: The recent Dock fix exposed that I was
16375 adding the panels in the wrong order.
16377 2007-01-24 Jackson Harper <jackson@ximian.com>
16379 * TextBoxBase.cs: When we move the caret we also need to move the
16380 selection, this fixes some random crashing after doing select
16381 text, unselect, delete a char, paste.
16383 2007-01-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
16385 * Form.cs: Update SizeGrip's location even if it's not visible (fixes #80592).
16387 2007-01-23 Everaldo Canuto <everaldo@simios.org>
16389 * Control.cs: In OnParentBackgroundImageChanged remove conditions to call
16390 OnBackgroundImageChanged, it mimics win32 behavior. Fixes #80553.
16391 * ToolBar.cs: Force redraw in BackgroundImageChanged.
16393 2007-01-23 Everaldo Canuto <everaldo@simios.org>
16396 - Implement support for vertical toolbars. Fixes #80539;
16397 - Call LayoutToolBar when resize, it fix some other problems in layout.
16398 - Rename requested_height to requested_size, as we can have width on it
16399 when toolbar is vertical.
16400 - Create a private property "Vertical" that uses Dock to verify when
16401 toolbar is vertical or not.
16402 - Set ControlStyles when change Dock property.
16403 - Refactory in LayoutToolBar to have better variables names and to support
16405 - Fixes default value for ButtonSize when button count is equal zero, size
16406 must be (39, 36) test case writed.
16408 2007-01-23 Chris Toshok <toshok@ximian.com>
16410 * Control.cs: fix the checks so that they work correctly for mdi
16413 2007-01-23 Chris Toshok <toshok@ximian.com>
16415 * Control.cs: ControlCollection seems to have super-secret
16416 abstraction breaking knowledge of Mdi containers. allow MdiClient
16417 to add toplevel controls.
16419 2007-01-23 Chris Toshok <toshok@ximian.com>
16421 * Control.cs: throw an ArgumentException if a toplevel control is
16422 added to our control collection from ControlCollection.Add, as
16423 well as from ControlCollection.IList.Add. This fixes the
16424 ControlSetTopLevelTest.TestTopLevelAdd unit test.
16426 Also, in ControlCollection.IList.Add, don't through an
16427 ArgumentNullException, throw an ArgumentException, when value ==
16428 null. This matches MS.
16430 2007-01-23 Chris Toshok <toshok@ximian.com>
16432 * BindingSource.cs: initial, incomplete, implementation of
16435 2007-01-23 Jackson Harper <jackson@ximian.com>
16438 * TextBoxBase.cs: Checking in some pieces of the undo stuff so
16439 that I can fix a broken unit test (TextBoxTest::ClearUndo)
16441 2007-01-23 Everaldo Canuto <everaldo@simios.org>
16443 * ToolBar.cs: Add status fields to ToolBarButtonInfo.
16445 2007-01-23 Andreia Gaita <avidigal@novell.com>
16447 * TreeNode.cs: Add new 2.0 ImageKey and SelectedImageKey properties.
16448 * TreeNodeCollection.cs: New Add() methods, ContainsKey and
16449 IndexOfKey() for 2.0
16451 2007-01-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
16453 * XplatWin32.cs: In RequestNCRecalc call SetWindowPos with SWP_NOZORDER
16454 to prevent it from changing z-order.
16455 * MdiWindowManager.cs: Refactor part of SetWindowState to MdiClient, only
16456 leave UI updates in MdiWindowManager.
16457 * InternalWindowManager.cs: Check for 0 sized nc areas and make them
16458 1 sized (NC handling goes weird on Linux otherwise).
16459 * MdiClient.cs: Add missing ExStyle (WS_EX_CLIENTEDGE), so it's no longer
16460 necessary to handle WM_NCCALCSIZE anymore. This also made it possible to
16461 remove a few NCRequestRecalcs. Changed calculations in IconicBounds
16462 to use ClientSize of MdiClient instead of entire size. Refactored ActivateChild
16463 and SetWindowState(s) to allow for changing the size of an activated child
16464 before activating it (reduces a lot of flicker).
16466 2007-01-22 Jonathan Pobst <monkey@jpobst.com>
16468 * Form.cs: Changing FormBorderStyle has different semantics based
16469 on whether the Form is visible or not. If not visible, don't change
16470 the Size. But InvalidateNC needs to be called to force the window
16471 to pick up the changes and redraw itself. [Fixes bug #80574]
16473 2007-01-22 Jonathan Pobst <monkey@jpobst.com>
16476 * ContainerControl.cs: ProcessCmdKey.
16477 * ErrorProvider.cs: new constructor.
16478 * Form.cs: fix AutoValidateEvent compiler warning.
16479 * Label.cs: fix OnAutoSizeChanged compiler warning.
16480 * MenuStrip.cs: fix CanOverflow compiler warning.
16481 * TabControl.cs: SelectTab, OnSelected methods, Selected event.
16482 * TextBox.cs: Dispose.
16483 * ToolStrip.cs: CanOverflow, re-enable double buffering.
16484 * ToolStripControlHost.cs: fix CausesValidation compiler warning.
16485 * ToolStripDropDown.cs: fix ContextStripMenu compiler warning.
16486 * ToolStripItem.cs: Overflow, RightToLeft properties.
16488 2007-01-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
16490 * Form.cs: Move the layout of the main form to MdiWindowManager.
16491 * MdiWindowManager.cs: If WindowState changes from or to Maximized,
16492 do a layout of the main window to update MdiClient's client area to
16493 the right area. Fixes #80533. Remove the calculation of nc size,
16494 it was just wrong and the correct one is the same as for
16495 InternalWindowManager.
16497 2007-01-20 Jonathan Pobst <monkey@jpobst.com>
16499 * Control.cs: Setting Anchor or Dock needs to reset the other
16500 to its default. [Fixes bug #80556]
16502 2007-01-20 Chris Toshok <toshok@ximian.com>
16504 * CheckedListBox.cs: class status changes.
16506 * ScrollableControl.cs: same.
16508 * RichTextBox.cs: same.
16510 * ContainerControl.cs: same.
16512 * ListView.cs: same.
16514 * NotifyIcon.cs: same.
16516 * MenuStrip.cs: same.
16518 * RadioButton.cs: same.
16520 * CheckBox.cs: same.
16522 * PrintPreviewDialog.cs: same.
16526 2007-01-19 Jonathan Pobst <monkey@jpobst.com>
16528 * TreeNode.cs: Apply Alan's patch for Name property.
16530 2007-01-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
16532 * Form.cs: Implemented SizeGripStyle.
16533 * SizeGrip.cs: Check for minimum and maximum size for the
16534 control being resized and only resize if size has actually
16537 2007-01-19 Chris Toshok <toshok@ximian.com>
16539 * DataGridColumnStyle.cs: stop setting _readonly in the
16540 PropertyDescriptor setter. fixes a unit test failure.
16542 also, rename ParentReadOnly to TableStyleReadOnly, and have it
16543 just consult our table style (if we have one). We don't need to
16544 consult the datagrid readonly attribute because that's passed in
16545 as the _ro arg to Edit. this simplifies things a little.
16547 * DataGrid.cs: use CurrentColumn instead of
16548 current_cell.ColumnNumber just to simplify some of the code.
16550 switch the order of some things in the CurrentCell setter to keep
16551 the previous cell from getting a textbox again -
16552 EnsureCellVisibility causes scrolling to happen, which calls Edit.
16553 So we need to set the new cell before calling it.
16555 call Edit in OnEnter, as does Microsoft.
16557 also, make sure the current table style isn't the one we create
16558 initially when checking to see if it's different than the one
16559 we're setting it to in BindColumns (this fixes #80421).
16561 * GridTableStylesCollection.cs: table styles can have "" for a
16562 mapping name. part of the fix for #80421.
16564 * DataGridTextBoxColumn.cs: simplify the readonly calculation in
16565 Edit significantly.
16567 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
16569 * TextRenderer.cs: Rewrote to be complete-er, more MS-matching-er,
16570 and less GDI object leaky-er.
16572 2007-01-18 Andreia Gaita <avidigal@novell.com>
16574 * LinkLabel.cs: Add opaque control style
16576 2007-01-18 Jackson Harper <jackson@ximian.com>
16578 * TextControl.cs: Calculate width properly.
16579 - Don't store the tag's X offset, this can be figured out very
16581 - When getting the caret tag make sure to get the last empty tag.
16583 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
16585 * Form.cs: Recalculate our size after setting a new FormBorderStyle.
16588 * Control.cs: Color.Empty shouldn't count for previous transparent
16591 2007-01-18 Jackson Harper <jackson@ximian.com>
16595 * TextControl.cs: Starting to merge in some pieces of my older
16596 undo work. Basically just some slight cleanup of the undo API.
16598 2007-01-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
16600 * TrackBar.cs: Fix signature of RightToLeftLayout.
16601 * StatusBar.cs: Implemented missing 2.0 methods and attributes.
16602 * StatusBarPanel.cs: Implemented missing 2.0 methods and attributes.
16603 * Application.cs: Implemented UseWaitCursor.
16605 2007-01-18 Jackson Harper <jackson@ximian.com>
16607 * TextControl.cs: We can't skip tags if any part of the tag is
16610 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
16612 * ContainerControl.cs: Override OnLayout.
16614 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
16616 * NotifyIcon.cs: Add ContextMenuStrip and Tag properties.
16618 * ContextMenuStrip.cs: Make sure context menu is shown on top of
16621 2007-01-18 Chris Toshok <toshok@ximian.com>
16623 * ContainerControl.cs: remove the partial handling of LBUTTONDOWN
16624 (leftover from the container_selected days, I'd wager). fixes bug
16627 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
16629 * Control.cs: Apply patch from George to fix the new testcase on
16630 bug #80451. We can't just check for Color.Transparent, we need
16631 to check if the back color's alpha channel is < 255.
16633 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
16635 * Form.cs: Move setting show_icon = true to before the constructor
16636 so that the base constructor has that information when it calculates
16637 the form's size. Was causing forms to be (6, 6) bigger than they
16638 were supposed to be. Thanks for catching this Rolf!
16640 2007-01-18 Jackson Harper <jackson@ximian.com>
16642 * TextControl.cs: When replacing a selection we need to invalidate
16643 from the initial selection start, because selection start is moved
16644 to the end of the replacement.
16646 2007-01-18 Andreia Gaita <avidigal@novell.com>
16648 * LinkLabel.cs: Missing ControlStyles. Fixes #80482
16650 2007-01-18 Chris Toshok <toshok@ximian.com>
16652 * DataGridTextBoxColumn.cs: fix most of the NotWorking unit tests
16655 2007-01-17 Everaldo Canuto <everaldo@simios.org>
16657 * ToolBar.cs: Add layout methods to ToolBarButtonInfo class, every
16658 layout methods and properties from ToolBarButton must be available
16659 into ToolBarButtonInfo.
16661 2007-01-17 Jonathan Pobst <monkey@jpobst.com>
16663 * Control.cs: If the control has a transparent background, we
16664 need to refresh it when it moves and when it's parent's background
16665 image changes. [Fixes bug #80451]
16667 2007-01-17 Jonathan Pobst <monkey@jpobst.com>
16669 * XplatUIWin32.cs: Don't use 2.0 methods in 1.1 code! Doh!
16671 2007-01-17 Jonathan Pobst <monkey@jpobst.com>
16673 * XplatUIWin32.cs: Implement proper double buffering for Windows.
16674 [Fixes bug #80447, and probably speeds up things as well]
16676 2007-01-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
16678 * XplatUIX11.cs: Caption height for MDI children is 19, not 26.
16679 * XplatUIWin32.cs: We need to recalculate NC size after changing
16680 window style to toolwindow (otherwise the client rectangle will be
16681 3 pixels to small for some reason).
16682 * MdiWindowManager.cs: Revert NC size calculations to match how
16683 they are calculated only based on window styles (to match
16684 Win32AdjustWindowRectEx, since otherwise when setting size or
16685 location, Control will call Win32AdjustWindowRectEx to update client
16686 size, which would provoke a paint, then we'd get a NCCALCSIZE and
16687 calculate a different value of client size causing another paint
16689 * InternalWindowManager.cs: When moving or resizing a window only
16690 update size or location if they actually changed.
16691 * ThemeWin32Classic.cs: ManagedWindowsBorderWidth is now 4 instead of 3
16692 (seems to match Windows behaviour better). Cleaned up
16693 ManagedWindowDecorations to draw what's needed and nothing else
16694 (was drawing borders and lines where they shouldn't be)
16695 * Hwnd.cs: GetWindowRectangle now knows about MDI border sizes
16696 (style = 0xFFFF) and takes into account caption height when
16697 calculating window rectangle.
16699 2007-01-16 Everaldo Canuto <everaldo@simios.org>
16701 * ToolBar.cs: Internal ToolBarButtonInfo class added, Because same button
16702 can be added to toolbar multiple times, we need to maintain a list of
16703 button information for each positions.
16705 2007-01-16 Everaldo Canuto <everaldo@simios.org>
16707 * ToolBar.cs: Some small stetic changes.
16709 2007-01-16 Jackson Harper <jackson@ximian.com>
16711 * TextBoxBase.cs: Use the new SuspendRecalc/ResumeRecalc methods
16712 that allow us to have nested recalc = false blocks.
16713 - Add paste support for images in the RichTextBox
16714 * RichTextBox.cs: flush the text after the color is changed, so
16715 the change takes effect.
16716 - Use SuspendRecalc
16717 - Some extra debugging info
16718 * TextControl.cs: Tags no longer track their length, it is just
16719 computed from the next tags length, this makes things a little
16720 simpler and reduces places that we have to track length changes.
16721 - Refactored the linetag class a little so we could make it
16722 a base class for different kinds of tags
16723 - Created a image tag, a tag that can have a single image inserted
16725 - Replace the norecalc flag with a Suspend/Resume Recalc pair, so
16726 that we can call suspend multiple times.
16727 - Add some debugging methods
16729 2007-01-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
16731 * MdiClient.cs: Add ActivatePreviousChild for
16732 mdi child window navigation.
16733 * Form.cs: Use MdiClient.ActivateNextChild/
16734 ActivatePreviousChild instead of Form.SelectNextControl
16735 to select the next/previous child since
16736 SelectNextControl doesn't do it in the same order
16737 as mdi children should do it.
16739 2007-01-16 Chris Toshok <toshok@ximian.com>
16741 * Control.cs: remove container_selected field.
16743 2007-01-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
16745 * MdiClient.cs: Update main form's ActiveChild when
16746 updating keyboard focus for the mdi child.
16748 2007-01-16 Jonathan Pobst <jpobst@novell.com>
16750 * Control.cs: PreferredSize fix.
16752 * Form.cs: Add several 2.0 events, properties, and methods.
16754 2007-01-16 Gert Driesen <drieseng@users.sourceforge.net>
16756 * Form.cs: Provide meaningful message when MdiParent is assigned a
16757 Form that is not an MdiContainer.
16759 2007-01-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
16761 * MdiClient.cs: Update main form's ActiveChild when
16762 activating a mdi child.
16764 2007-01-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
16766 * MdiWindowManager.cs: Fix NRE when merging menus and main form
16767 doesn't have a menu.
16769 * Form.cs: Request NCRecalc after creating a mdi child window.
16770 Implement mdi key handling (Ctrl+F4, Ctrl+Shift+F4, Ctrl+Tab,
16771 Ctrl+Shift+Tab, Ctrl+F6 and Ctrl+Shift+F6).
16773 * MdiClient.cs: Add new method SendFocusToActiveChild that either
16774 sends keyboard focus to the active child, or to the MdiClient
16775 if there are no child forms.
16777 2007-01-15 Chris Toshok <toshok@ximian.com>
16779 * ListView.cs: drop the *Internal overrides, just do our work in
16780 ItemControl's WndProc instead.
16782 * UpDownBase.cs: a few large changes. Fix up the Selectable state
16783 of the various controls, and forward the events properly (in the
16784 same manner as MS) from the textbox to the UpDown. Also the
16785 ActiveControl of the UpDownBase gets set properly now. Finally,
16786 we don't call UpdateEditText from the ctor. Fixes bug #79957.
16788 * NumericUpDown.cs: set Text in the ctor.
16790 * DomainUpDown.cs: call UpdateEditText in the ctor.
16792 * TextBox.cs: on ms.net, WM_LBUTTONDOWN sets focus on the textbox,
16793 so even a Selectable = false textbox can be focused if you click
16796 * Control.cs: remove On{Got,Lost}FocusInternal. Subclasses can
16797 just add their handling in their respective WndProc's. Also add
16798 an explicit FocusInternal method that doesn't consult CanFocus
16799 before calling Select(this).
16801 * TextBoxBase.cs: deal with removal of the FocusInternal calls -
16802 do our work in WndProc instead.
16804 * TabControl.cs: same.
16806 * ComboBox.cs: same.
16808 2007-01-15 Everaldo Canuto <everaldo@simios.org>
16810 * Menu.cs: implement MergeItems and Replace for MenuMerge method.
16813 2007-01-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
16816 * ThemeWin32Classic.cs: Don't draw the item text outside
16817 item bounds in Details view, as well as use trimming.
16820 2007-01-15 Jonathan Pobst <jpobst@novell.com>
16822 * Form.cs: Implement Form.ShowIcon.
16824 * XplatUIWin32.cs: Allow the SetIcon win32 call to set the icon to
16825 null, which when combined with the DlgModalFrame window style removes
16826 the icon from the title bar.
16828 2007-01-15 Jonathan Pobst <jpobst@novell.com>
16830 * Control.cs: Call OnMouseClick after OnClick. (2.0)
16832 2007-01-15 Everaldo Canuto <everaldo@simios.org>
16834 * MdiWindowManager.cs: In CreateMaximizedMenu fix a position of icon
16835 menu when mdi child windows theres a menu, uses insert to get icon
16836 at first position. Partially fix #80006.
16838 2007-01-15 Jonathan Pobst <jpobst@novell.com>
16840 * Clipboard.cs: Implement 2.0 methods.
16842 2007-01-15 Everaldo Canuto <everaldo@simios.org>
16844 * Menu.cs: Implement Insert method of MenuItemCollection class
16847 2007-01-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
16849 * ListView.cs: Implement 2.0 FindItemWithText method.
16851 2007-01-11 Everaldo Canuto <everaldo@simios.org>
16853 * Form.cs: When process WM_NCCALCSIZE message use ClienSize.Width
16854 to calculate menu bar size. Fixes #80290.
16856 2007-01-11 Everaldo Canuto <everaldo@simios.org>
16858 * ThemeWin32Classic.cs: Fix position of menuitem check mark.
16860 2007-01-11 Chris Toshok <toshok@ximian.com>
16862 * XplatUIX11.cs: don't send duplicate WM_ACTIVATE messages to the
16865 2007-01-11 Chris Toshok <toshok@ximian.com>
16867 * LinkLabel.cs: make sure to call base.Select in our Select method
16868 if it turns out we're going to be selected (i.e. if we have a link
16869 that is going to receive focus). That way our container's
16870 ActiveControl is updated properly.
16872 2007-01-11 Chris Toshok <toshok@ximian.com>
16874 * LinkLabel.cs: turns out that LinkLabels are only Selectable if
16875 they have 1 or more links. this fixes the crash gert reported.
16877 2007-01-11 Andreia Gaita <avidigal@novell.com>
16879 * ContainerControl.cs: Remove ContainerSelected flag, not needed
16882 * Control.cs (Controls.Add): Check if control to be added to the collection
16883 is a top level control, and throw an ArgumentException if it is.
16884 Remove ContainerSelectedFlag, not needed anymore.
16886 * XplaUIWin32.cs (SetTopMost): Add flag SWP_NOACTIVATE so that setting the
16887 top most control doesn't activate the form. This fixes a problem in the
16888 MessageBox, where the default button wouldn't get focus because the form
16889 was activated before being Loaded - when the Owner is set, SetTopMost is
16890 called, and it would activate it.
16892 2007-01-11 Jonathan Pobst <jpobst@novell.com>
16894 * Button.cs: When clicked and setting the parent form's DialogResult,
16895 use FindForm instead of Parent, since parent could be a container
16896 control and not the Form. Fixes bug #80495.
16898 2007-01-10 Chris Toshok <toshok@ximian.com>
16900 * Form.cs: move the call to SendControlFocus into the same
16903 2007-01-10 Chris Toshok <toshok@ximian.com>
16905 * UpDownBase.cs (.ctor): remove the ActiveControl assignment here.
16906 It breaks in the face of the new ActiveControl stuff, and should
16909 * Form.cs (WndProc): in the WM_ACTIVATE case, we need to set the
16910 activecontrol's focus if it's not already set, after we set
16911 ActiveControl, but before we call OnActivated. Re-fixes #79667
16912 after the previous focus/active control fixes regressed it.
16914 * Control.cs: reindent some code.
16916 2007-01-10 Chris Toshok <toshok@ximian.com>
16918 * Splitter.cs: clearing some outstanding changes from my tree.
16919 Replace all accesses (not writes) to the internal dock_style field
16920 with the Dock property.
16922 2007-01-10 Chris Toshok <toshok@ximian.com>
16924 * Control.cs: make FireEnter, FireLeave, FireValidating, and
16925 FireValidated virtual.
16927 * Form.cs: override and don't chain up calls to FireEnter and
16930 2007-01-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
16932 * ListView.cs: Add more text padding space when using
16933 auto resize for columns (the previous value didn't work fine).
16935 * ThemeWin32Classic.cs: Update text position inside columns,
16936 to match the appeareance of .Net.
16938 * ColumnHeader.cs: When using auto resize, only the Width should
16939 depend on the sub items, not the Height. Also, set width after
16940 auto resizing (the value of Width should never remain as -1 or -2).
16942 2007-01-10 Chris Toshok <toshok@ximian.com>
16944 * Application.cs: fix compilation errors when debug is enabled.
16946 2007-01-10 Chris Toshok <toshok@ximian.com>
16948 * ContainerControl.cs (set_ActiveControl): rework this a bit (and
16949 add some nice ascii art pictures and explanation of the process).
16950 (GetMostDeeplyNestedActiveControl): new utility function we need
16951 because our ActiveControl can refer to a child container with its
16954 * Form.cs (OnActivated): remove the call to SelectActiveControl
16955 from here, since you can override this method and not chain up,
16956 and winforms still sets the active control.
16957 (OnCreateControl): also remove the unnecessary SelectActiveControl
16959 (WndProc): it's actually called from the WM_ACTIVATE block, just
16960 before calling OnActivated.
16962 * Control.cs (Select (Control)): move the call to XplatUI.SetFocus
16963 inside the else. the ActiveControl setter will end up setting
16964 focus on @control. This keeps us from setting it again (and
16965 generating an extra LostFocus/GotFocus pair).
16966 (Select (bool, bool)): reindent.
16968 2007-01-10 Jonathan Pobst <jpobst@novell.com>
16970 * FlowLayoutPanel.cs, MenuStrip.cs, SplitContainer.cs, SplitterPanel.cs,
16971 StatusStrip.cs, TableLayoutPanel.cs, TableLayoutStyleCollection.cs,
16972 ToolStrip.cs, ToolStripComboBox.cs, ToolStripContainer.cs,
16973 ToolStripContentPanel.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
16974 ToolStripDropDownButton.cs, ToolStripDropDownItem.cs, ToolStripDropDownMenu.cs,
16975 ToolStripItem.cs, ToolStripMenuItem.cs, ToolStripPanel.cs, ToolStripPanelRow.cs,
16976 ToolStripSeparator.cs, ToolStripSplitButton.cs, ToolStripStatusLabel.cs
16977 ToolStripTextBox.cs: Another wave of corcompare work.
16979 2007-01-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
16981 * ColumnHeader.cs: Implement 2.0 AutoResize method using
16982 the Width property.
16984 * ListView.cs: Implement 2.0 AutoResizeColumn and AutoResizeColumns
16985 methods by callling Column.AutoResize method on columns.
16987 2007-01-09 Jonathan Pobst <monkey@jpobst.com>
16989 * Control.cs: Provide proper implementations of PreferredSize
16990 and GetPreferredSize (2.0).
16992 2007-01-09 Jonathan Pobst <monkey@jpobst.com>
16994 * Form.cs: Remove one character (!) to make my previous OnClosing
16995 stuff work for modal windows like MessageBox.
16997 2007-01-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
17000 * ThemeWin32Classic.cs: Use ListView.GetReorderedColumn instead of
17001 ListView.Columns to get the last displayed column. Fixes #80452.
17003 2007-01-09 Everaldo Canuto <everaldo@simios.org>
17005 * Label.cs, LinkLabel.cs: Source code identation fixes.
17007 2007-01-08 Everaldo Canuto <everaldo@simios.org>
17009 * ToolBarButton.cs: Remove InvalidateBorder and use Invalidate instead,
17010 we dont need to invalidate only borders because when we invalidate four
17011 border lines the invalidate's generates a complete redraw of button,
17012 because it now invalidate a complete rect some other redraws operations
17013 are fixed. Fixes #80196.
17015 * Theme.cs, ThemeNice.cs, ThemeClearLooks.cs, ThemeWin32Classic.cs:
17016 Remove ToolBarInvalidateEntireButton as it is not used.
17018 2007-01-08 Jonathan Pobst <monkey@jpobst.com>
17020 * Form.cs: Make sure that both OnClosing and OnFormClosing are
17021 called for 2.0 profile.
17022 * CloseReason.cs: Make class internal for 1.1.
17024 2007-01-08 Jonathan Pobst <monkey@jpobst.com>
17026 * ToolStripManager.cs: Implement FindToolStrip functionality.
17027 * ToolStrip.cs: Register and unregister with ToolStripManager.
17029 2007-01-07 Jonathan Pobst <monkey@jpobst.com>
17031 * Control.cs: This was messy. 2.0 moves much of ControlCollection
17032 to ArrangedElementCollection. Implemented this with as few #if's as
17033 possible (which is still too many).
17035 2007-01-07 Jonathan Pobst <monkey@jpobst.com>
17037 * Control.cs: Implement SizeFromClientSize() [2.0].
17039 2007-01-07 Everaldo Canuto <everaldo@simios.org>
17041 * Hwnd.cs: On GetClientRectangle add a new parameter border_static,
17042 use Theme.BorderSize to calculate area instead of static value 1,
17043 by the way use new BorderStaticSize instead Border3DSize when
17044 border_static is true. Fixes #79537.
17046 * XplatUIOSX.cs: Fix call to GetClientRectangle.
17048 * ThemeWin32Classic.cs: On CPDrawBorder3D dont draw inner border when
17051 2007-01-06 Everaldo Canuto <everaldo@simios.org>
17053 * Hwnd.cs: Gives more code legibility to GetWindowRectangle.
17055 2007-01-06 Everaldo Canuto <everaldo@simios.org>
17057 * Label.cs: Override CreateParams to use WS_EX_STATICEDGE instead of
17058 WS_EX_CLIENTEDGE in ExStyles when BorderStyle is Fixed3D, it is
17061 - border_static field added, it will used to define when a control
17062 theres 3D border but it must be static (thin).
17063 - In GetWindowRectangle use Theme.BorderSize to calculate area
17064 instead of static value 1, by the way use new BorderStaticSize instead
17065 Border3DSize when border_static is true.
17067 * XplatUIX11.cs, XplatUIOSX.cs:
17068 - When WS_EX_STATICEDGE ExStyle is set define border_static as true.
17070 * Theme.cs: BorderStaticSize field added.
17072 2007-01-05 Everaldo Canuto <everaldo@simios.org>
17074 * XplatUIX11.cs: Removed unused hwnd var in SetBorderStyle.
17076 2007-01-05 Everaldo Canuto <everaldo@simios.org>
17078 * Control.cs: Under InternalBorderStyle call RecreateHangle to
17079 mimic same behavior than win32 that set border only in CreateParams,
17080 it fix problems under CreateParams overrides. Fix #79442 and partial
17083 * XplatUIX11.cs: Dont set hwnd.border_style in SetBorderStyle instead
17084 of thi control you must call recreate handle.
17086 * XplatUIWin32.cs: Remove all SetBorderStyle code, for win32 we dont
17087 need to do anything as RecreateHangle will take care about borders.
17089 2007-01-05 Mike Kestner <mkestner@novell.com>
17091 * ListView.cs: hack to eliminate Lost/Got focus notifications on
17092 cycles between the ItemControl and parent. Fixes #80388.
17094 2007-01-05 Gert Driesen <drieseng@users.sourceforge.net>
17096 * Control.cs: Lazy init layout engine. Do not directly use
17097 layout_engine since LayoutEngine may be overridden (on 2.0 profile).
17099 2007-01-05 Chris Toshok <toshok@ximian.com>
17101 * DataGrid.cs: don't forceably rebind columns in SetDataSource
17102 unless our list manager has changed (i.e. unless we have reason to
17103 believe our columns have changed). Fixes #80422.
17105 also, disable the call do BindColumns in
17106 OnListManagerMetaDataChanged. this breaks this test in 2.0 (in
17107 1.1 the event isn't raised in response to a column addition on a
17110 2007-01-05 Jonathan Pobst <monkey@jpobst.com>
17112 * Control.cs: Move LayoutEngine.Layout to the OnLayout method, so
17113 that inheritors can not call it if they choose. Fixes bug #80456.
17115 2007-01-05 Andreia Gaita <avidigal@novell.com>
17117 * XplatUIWin32.cs: Initialize MSG.refobject at 0 so it
17118 doesn't blow up with a null exception on marshalling.
17120 2007-01-05 Jonathan Pobst <monkey@jpobst.com>
17122 * Control.cs: Implement several 2.0 protected properties and methods.
17123 Ensure that all necessary events are being called when properties
17126 2007-01-05 Mike Kestner <mkestner@novell.com>
17128 * ListView.cs: implement PgUp/PgDn for Details view. Also
17129 fixes First/LastVisibleIndex to use the item_control.ClientRect
17130 instead of the parent control. Fixes #80378.
17132 2006-01-05 Atsushi Enomoto <atsushi@ximian.com>
17134 * PageSetupDialog.cs : cosmetic refactoring; use RegionInfo to
17135 determine whether to use yard-pound or not (bug #78399).
17137 2006-01-04 Alexander Olk <alex.olk@googlemail.com>
17139 * FileDialog.cs: Sebastien fixed the libgdiplus png alpha
17140 problems. So it is time to bring back the old popupbutton colors.
17142 2006-01-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
17145 * ListView.cs: Implement 2.0 ColumnHeader.DisplayIndex
17146 property by using the internal information of the
17147 columns order in ListView.
17149 2007-01-04 Jonathan Pobst <monkey@jpobst.com>
17151 * CommonDialog.cs, Cursor.cs, ErrorProvider.cs, HelpProvider.cs:
17152 Add 2.0 Tag properties.
17154 * LinkArea.cs: Add 2.0 ToString method.
17156 2007-01-03 Chris Toshok <toshok@ximian.com>
17158 * DataGrid.cs: the Alt+0 handling was wrong, it should have been
17159 Ctrl+0. Fixes bug #80367. Also, don't eat the Delete keypress
17160 when we're editing, which fixes #80047.
17162 2007-01-03 Chris Toshok <toshok@ximian.com>
17164 * Form.cs: apply patch contributed by Dominik Seichter. fixes
17167 2007-01-03 Jonathan Pobst <monkey@jpobst.com>
17169 * MenuStrip.cs, ToolStripMenuItem.cs: Add MdiWindowListItem
17170 property and implementation.
17172 * Form.cs, MdiClient.cs, MdiWindowManager.cs: Add needed hooks
17173 for MdiWindowListItem property.
17175 * ToolStripDropDown.cs: Don't consider hidden menu items while
17176 laying out the menu.
17178 2007-01-03 Andreia Gaita <avidigal@novell.com>
17180 * SendKeys.cs: window handle is not needed in win32, so just
17181 get the active window for X after parsing keys and don't use
17182 it when building the message; it is passed by parameter to the
17183 Xplat method and used there to build the message instead. Also,
17184 wait for events to be processed on SendWait, as opposed to Send,
17185 which doesn't wait :) Playing with threads and Send() completely
17186 hangs on ms.net, only SendWait() works.
17189 X11Display.cs: Check for valid window handle.
17191 2007-01-03 Jackson Harper <jackson@ximian.com>
17193 * TextControl.cs: Need to prevent wrap calculations when replacing
17194 text (this was there before i removed it accidently).
17195 - Don't update the cursor during the positioning, just set it to
17196 selection_start at the end of the operaion.
17198 2007-01-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
17201 * NotifyIcon.cs: corcompare work, no more X's in 1.1 class status.
17203 2007-01-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
17205 * MonthCalendar.cs: Added Click and DoubleClick events again,
17206 but this time they only hide Control's Click and DoubleClick.
17208 2007-01-03 Gert Driesen <drieseng@users.sourceforge.net>
17210 * Theme.cs: Re-enabled DefaultFont change. Use const to refer to
17211 System.Drawing assembly. Spaces to tabs. Removed extra tabs.
17213 2007-01-02 Jackson Harper <jackson@ximian.com>
17215 * TextBoxBase.cs: We move the caret with the split now, so we
17216 don't need to explicitly move the caret after splitting. This
17217 fixes the caret bumping down an extra line on Enter.
17219 2007-01-02 Miguel de Icaza <miguel@novell.com>
17221 * ContainerControl.cs: Add AutoValidateChanged event (for PDN
17224 * ScrollableControl.cs: Add Scroll event.
17226 2007-01-02 Mike Kestner <mkestner@novell.com>
17228 * ListView.cs: one more try with help from georgegiolfan@yahoo.com
17229 to fix all hdr height padding codepaths. Fixes #80207.
17231 2007-01-02 Chris Toshok <toshok@ximian.com>
17233 * StatusBar.cs (.ctor): remove the Anchor setting, as it's just
17234 setting it to the Control defaults anyway, and it being after the
17235 Dock set was screwing up layout.
17236 (set_Dock): don't short circuit out of setting base.Dock. Also,
17237 no need to call UpdateStatusBar here, as it'll be re-layed out if
17240 2007-01-02 Mike Kestner <mkestner@novell.com>
17242 * ListView.cs: patch from georgegiolfan@yahoo.com to add padding
17243 to header height for width == -1. Fixes the rest of #80207.
17245 2007-01-02 Mike Kestner <mkestner@novell.com>
17247 * ListView.cs: rework the mouse event forwarding everaldo added
17248 to translate the coordinates to the parent control not
17249 raise the parent events until after we've done our work. Hover
17250 needs more work, in the case where HoverSelection is on, because
17251 the item control receives more than one MouseHover per Enter
17252 event, so we need to ensure only the "first" hover gets forwarded.
17253 Opening a minor bug for that.
17255 2007-01-02 Gert Driesen <drieseng@users.sourceforge.net>
17257 * CheckedListBox.cs: Fixed SelectionMode to match MS.
17258 * ListControl.cs: Implemented AllowSelection property. Removed extra
17260 * ListBox.cs: Implemented AllowSelection property.
17262 2007-01-02 Everaldo Canuto <everaldo@simios.org>
17264 * MenuItem.cs: In MdiWindowClickHandler uses sender instead of
17265 SelectedItem, it prevent for errors when you must disable item
17266 before perform click. Fixes #80409.
17268 2007-01-02 Everaldo Canuto <everaldo@simios.org>
17270 * MenuAPI.cs: Prevent second level and beyond submenus to close
17271 until first level when move out side of popup.
17273 2007-01-02 Everaldo Canuto <everaldo@simios.org>
17276 - Down submenu positin in three pixels.
17277 - Closes sub menu when mouse leaves from menu. Fixes #80402.
17279 2007-01-02 Everaldo Canuto <everaldo@simios.org>
17281 * ThemeWin32Classic.cs:
17282 - Fix popup menu size adding one pixel on the top.
17283 - Down menu item border from two to one to mimic Win32.
17284 - Some source identation fixes.
17286 2007-01-01 Everaldo Canuto <everaldo@simios.org>
17288 * ThemeWin32Classic.cs: Use float numbers to calculate size and
17289 position of menu arrows, it fix wrong arrow size.
17291 2007-01-01 Everaldo Canuto <everaldo@simios.org>
17293 * ThemeWin32Classic.cs: Uses CPDrawBorder3D to draw menu borders
17294 instead of line, it simplify draw operation and fix it using 3D
17295 borders to mimic Win32.
17297 2007-01-01 Jonathan Pobst <monkey@jpobst.com>
17299 * StatusStrip.cs: Add implementation of the sizing grip.
17301 * ToolStripRenderer.cs, ToolStripProfessionalRenderer.cs: Add
17302 StatusStrip rendering.
17304 2006-12-31 Chris Toshok <toshok@ximian.com>
17306 * ToolBar.cs: don't assign to dock_style in the .ctor. it doesn't
17307 override the layout style (anchor/dock) of the control. assign to
17308 Dock instead. Fixes bug #80416.
17310 * ToolStrip.cs: same.
17312 2006-12-31 Andreia Gaita <avidigal@novell.com>
17314 * ContainerControl.cs: Use ContainerSelected flag to check if
17315 a Container is directly selected, or if Select is called on a
17316 non-container. If a container is directly selected, focus events
17317 should not be raised.
17318 Apply #80411 patch to throw exception on set_ActiveControl if
17319 control is the same as the current one.
17321 * Control.cs: Use ContainerSelected flag (see above).
17322 Add invalidation check to raise event but not invalidate if
17324 Apply #80411 patch.
17327 2006-12-31 Everaldo Canuto <everaldo@simios.org>
17329 * MenuAPI.cs: After click, dont close popup menu when menu is
17330 ContextMenu. Fixes #80399.
17332 2006-12-30 Chris Toshok <toshok@ximian.com>
17334 * ContainerControl.cs: make sure we throw the exception if the
17335 container control doesn't contain the control we're setting
17338 2006-12-30 Chris Toshok <toshok@ximian.com>
17340 * Control.cs (SetTopLevel): fix the exception raised by
17341 SetTopLevel for child controls.
17342 (set_Anchor): call UpdateDistances when setting the anchor type.
17343 This fixes bug #80336.
17345 2006-12-29 Gert Driesen <drieseng@users.sourceforge.net>
17347 * Theme.cs: For now, revert back to 8pt font.
17349 2006-12-29 Everaldo Canuto <everaldo@simios.org>
17351 * MenuAPI.cs: Set popup as active when open a ContextMenu.
17354 2006-12-29 Chris Toshok <toshok@ximian.com>
17356 * Control.cs: reorder the code in OnResize to give the same event
17359 2006-12-29 Rolf Bjarne Kvinge <RKvinge@novell.com>
17361 * MdiClient.cs: Implemented MdiLayout for ArrangeIcons,
17362 TileHorizontally and TileVertically.
17364 2006-12-29 Alexander Olk <alex.olk@googlemail.com>
17366 * ColorDialog.cs, FileDialog.cs, FolderBrowserDialog.cs,
17367 FontDialog.cs, Mime.cs, MimeIcon.cs, OpenFileDialog.cs,
17368 SaveFileDialog.cs, ThemeClearlooks.cs, ThemeNics.cs:
17369 Corrected copyright and email adress.
17371 2006-12-29 Gert Driesen <drieseng@users.sourceforge.net>
17373 * TreeNode.cs: On 2.0 profile, throw InvalidOperationException instead
17374 of Exception in FullPath property if no TreeView is associated with
17377 2006-12-29 Gert Driesen <drieseng@users.sourceforge.net>
17379 * Theme.cs: Marked default_font as private, and initialize it in ctor
17380 with MS Sans Sarif 8.25 on 1.0 profile, and SystemFonts.DefaultFont
17382 * ThemeGtk.cs: Removed default_font intialization.
17383 * ThemeWin32Classic.cs: Removed default_font initialization.
17385 2006-12-28 Chris Toshok <toshok@ximian.com>
17387 * Control.cs: fix a couple of place where we were creating handles
17388 more aggressively than we should be. Fixes ControlRefresh unit
17391 2006-12-28 Chris Toshok <toshok@ximian.com>
17393 * Control.cs: contrary to what the comment said, Control.Dock does
17394 not supercede Control.Anchor - the last one you assign to decides
17395 the layout behavior. so we need to keep track of which was the
17396 last set. Also, fix some of the affected property arguments in
17397 PerformLayout calls, and remove an redundant parent.PerformLayout
17400 Add a VisibleInternal property, which returns is_visible. We
17401 can/should get rid of all the usage of this field elsewhere.
17403 2006-12-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
17405 * Control.cs: DoubleBuffered property reflects the OptimizedDoubleBuffer
17406 control style, not DoubleBuffer. Added UseDoubleBuffering property
17407 that indicates whether doublebuffering is enabled and supported.
17408 (comment from and code based on Gert Driesen's patch in #80324).
17411 2006-12-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
17413 * Control.cs: Fixed a NRE.
17415 2006-12-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
17417 * TrackBar.cs: Fix SmallChange and LargeChange exceptions
17420 2006-12-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
17422 * Control.cs: Rewrote double buffering, now a seperate
17423 class handles all the buffering, no Graphics is disposed of
17424 until the painting is finished (earlier implementation
17425 would crash if the control was resized in the OnPaint,
17426 since it would cause the double buffer to be recreated
17427 and the old one disposed), a separate Graphics is
17428 created for every paint (MS behaviour and anyways the state
17429 of the Graphics would have to be saved and restored otherwise)
17431 * XplatUIDriver.cs:
17433 * XplatUI.cs: Added and implemented GetOffscreenGraphics
17434 so that we can get the graphics for the back buffer without
17435 having to create a new one and remove the offscreen_dc parameter
17436 from CreateOffscreenDrawable and DestroyOffscreenDrawable.
17438 2006-12-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
17440 * ListView.cs: Add key-related 2.0 methods for CheckedItemCollection.
17441 Also make virtual all the key-related methods.
17443 * ListViewItem.cs: Make virtual the key related methods for
17444 ListViewSubItemCollection.
17446 2006-12-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
17450 * ThemeWin32Classic.cs:
17451 * Theme.cs: Initial support for Tile view in ListView,
17452 as well as the implementation of the required bits for it (Item
17455 2006-12-27 Gert Driesen <drieseng@users.sourceforge.net>
17457 * MonthCalendar.cs: On 2.0, throw ArgumentOutOfRangeException instead
17458 of ArgumentException in MaxSelectionCount, MaxDate and MinDate.
17459 Provide useful exception messages.
17461 2006-12-27 Rolf Bjarne Kvinge <RKvinge@novell.com>
17463 * TrackBar.cs: Remove a warning.
17464 * MonthCalendar.cs: Moved back to using Capture to hide the calendar
17465 when used by DateTimePicker, fixes #80287. This also requires that
17466 MonthCalendar implements it's own drawing for the yearly updown control,
17467 otherwise the Capture tracking would be too complicated. Removed the Click
17468 and DoubleClick events (according to comments they were hiding the base class
17469 event to prevent them from beeing fired - MSDN only says MonthCalendar doesn't
17470 raise these events, not that they cannot be raised. It is possible to raise
17471 them by calling OnClick and OnDoubleClick). Added two internal fields in
17472 HitTestInfo in order to track give more tracking info needed by MonthCalendar.
17473 * ThemeWin32Classic.cs: Implement drawing of MonthCalendar's updown part.
17474 * DateTimePicker.cs: Removed handling of MonthCalendar's LostFocus
17475 event, no longer needed.
17477 2006-12-27 Gert Driesen <drieseng@users.sourceforge.net>
17479 * ScrollableControl.cs: In AutoScrollMinSize, only set AutoScroll to
17480 true if new value differs from current value.
17482 2006-12-27 Gert Driesen <drieseng@users.sourceforge.net>
17484 * Control.cs: ControlCollection.Count must be public. Fixed build of
17487 2006-12-27 Gert Driesen <drieseng@users.sourceforge.net>
17489 * ListView.cs: Redraw when FullRowSelect is changed. Fixes bug #80379.
17491 2006-12-27 Gert Driesen <drieseng@users.sourceforge.net>
17493 * ComboBox.cs: Mergable=>MergableProperty. Fixes build.
17495 2006-12-26 Everaldo Canuto <everaldo@simios.org>
17497 * Control.cs: Invalidates control including when Width and Height is
17498 equal zero or is not visible, only Paint event must be care about
17499 this. Fixes #79913.
17501 2006-12-26 Chris Toshok <toshok@ximian.com>
17503 * CurrencyManager.cs, PropertyManager.cs, BindingManagerBase.cs:
17504 more corcompare work.
17506 * DataGridView.cs: fix compiler warning.
17508 * ColumnHeader.cs: some corcompare work, and also take the
17509 opportunity to make the internal fields private.
17511 * ListView.cs: fix the fallout from the above field change.
17513 2006-12-26 Jonathan Pobst <monkey@jpobst.com>
17515 * ToolStripButton.cs, ToolStripComboBox.cs, ToolStripControlHost.cs,
17516 ToolStripItem.cs, ToolStripProgressBar.cs, ToolStripSplitButton.cs,
17517 ToolStripTextBox.cs: Fixes to events and corcompare.
17519 2006-12-26 Everaldo Canuto <everaldo@simios.org>
17521 * ListView.cs: Call owner.OnMousexx event to propagate events from
17522 item to ListView. Fixes #80367.
17524 2006-12-26 Gert Driesen <drieseng@users.sourceforge.net>
17526 * ComboBox.cs: On 2.0, DropDownWidth throws ArgumentOutOfRangeException
17527 if value is less than one. ItemHeight should not be set to a value
17528 less than 1, and throw ArgumentOutOfRangeException on 2.0 profile.
17529 Removed extra tabs.
17531 2006-12-26 Jonathan Pobst <monkey@jpobst.com>
17533 * ToolStripMenuItem.cs: Add ShortcutDisplayString for Moma.
17534 * ToolStripStatusLabel.cs: Add Spring for Moma.
17536 2006-12-26 Gert Driesen <drieseng@users.sourceforge.net>
17538 * DataGridView.cs: Fixed several NullReferenceException in On* methods.
17539 Fixed code formatting. Removed debug code.
17540 * DataGridViewTextBoxEditingControl.cs: Removed debug code.
17542 2006-12-26 Gert Driesen <drieseng@users.sourceforge.net>
17544 * DataGridView.cs: Fixed GridColor, DefaultSize, DefaultCellStyle,
17545 RowHeadersDefaultStyle, RowHeadersWidth to match MS. Throw
17546 ArgumentOutOfRangeException if ColumnCount is negative. In
17547 ColumnHeadersHeight, throw ArgumentOutOfRangeException if height is
17548 less than 4 or higher than 32768.
17549 * DataGridViewCellStyle.cs: Fixed default value for NullValue.
17550 Fixed FormatProvider to return CurrentCulture unless explicitly set.
17551 Fixed IsFormatProviderDefault to return true if FormatProvider has
17552 not been explicitly set.
17554 2006-12-25 Chris Toshok <toshok@ximian.com>
17556 * Application.cs: add a couple of 2.0 events.
17558 2006-12-25 Chris Toshok <toshok@ximian.com>
17560 * Control.cs: fix compiler warning.
17562 * AxHost.cs: corcompare fixes.
17564 * ApplicationContext.cs: corcompare fixes.
17566 2006-12-25 Chris Toshok <toshok@ximian.com>
17568 * Control.cs: only update dist_right/dist_bottom if the
17569 width/height is > 0. this fixes anchored controls being resized
17570 smaller until they disappear and then resized larger again.
17572 2006-12-25 Chris Toshok <toshok@ximian.com>
17574 * Control.cs: a couple of changes. Remove dist_left and dist_top,
17575 since they're nothing more than X/Left and Y/Top, respectively.
17577 Also, move back to a per-control Bitmap/Graphics for
17578 DeviceContext, since using the static Hwnd.bmp/bmp_g is bad in the
17579 MT case. Go with a tiny bitmap though, 1x1, instead of Width x
17582 2006-12-25 Miguel de Icaza <miguel@novell.com>
17584 * MessageBox.cs: Implemented overload that takes a new "bool
17585 displayHelpButton" by adding a new internal field "show_help".
17586 When clicked this will raise the HelpRequested on the owner or the
17589 From: 007dbe3ff0ca4729a4f5fcd1d8ab2a2e.txt
17590 From: c935e12b95fe4dc1ae670e7f4dc5fd68.txt
17592 * ListView.cs: Add support ColumnWidthChanged and
17593 ColumnWidthChanging.
17595 Add support for ColumnReordered event.
17596 (ReorderColumn): Add NET_2_0 specific support for cancelling the
17599 Very nice codebase!
17601 * TextBoxBase.cs (GetLineFromCharIndex): Implement this method.
17603 This is used by report f4ae0a88a0a244558aaadf017c9b9efe.
17605 2006-12-24 Chris Toshok <toshok@ximian.com>
17607 * GridTablesFactory.cs: 2.0 corcompare work.
17609 * ToolStripContainer.cs: add "override" to
17610 ContextMenuStripChanged, and remove the local event object.
17612 * ToolStripDropDown.cs: same with a couple properties.
17614 * ToolStripPanel.cs: same with AutoSizeChanged event.
17616 * TextBoxBase.cs: add "override" to AutoSizeChanged.
17618 * Form.cs: add the remaining 2.0 events, and do some corcompare
17621 * DateTimePicker.cs: add "new" to padding.
17623 * ButtonBase.cs: use Control's use_compatible_text_rendering.
17625 * ToolStripContentPanel.cs: use base.AutoSizeChanged.
17627 * DataGridView.cs: PaddingChanged is overridden.
17629 2006-12-24 Chris Toshok <toshok@ximian.com>
17631 * Control.cs: corecompare work here too.
17633 * DataGridViewElement.cs, DataGridView.cs,
17634 DataGridViewButtonCell.cs, DataGridViewRowCollection.cs,
17635 DataGridViewImageColumn.cs, DataGridViewComboBoxColumn.cs,
17636 DataGridViewImageCell.cs, DataGridViewCheckBoxCell.cs,
17637 DataGridViewHeaderCell.cs, DataGridViewCell.cs: more corcompare
17640 2006-12-24 Miguel de Icaza <miguel@novell.com>
17642 * Control.cs: Switched the error message on the console for a
17643 todo. A review of the code will have to cope with this anyways
17644 (since its a large feature, it is in our radar) and it was
17645 producing too much output when running PDN.
17647 * ToolStripComboBox.cs: Set the text when the SelectedIndex
17648 changes. Applications depend on this (PDN 2.72)
17650 2006-12-23 Chris Toshok <toshok@ximian.com>
17652 * TableLayoutSettings.cs: finish up the corcompare work for this
17655 2006-12-23 Chris Toshok <toshok@ximian.com>
17657 * Control.cs: make SetImplicitBounds internal, do some futzing
17658 with LayoutEngine so that it's available in 1.1, and remove the
17659 entire duplicated code mess from PerformLayout. Use
17660 System.Windows.Forms.Layout.DefaultLayout instead.
17662 * LayoutEngine.cs: make this class internal in 1.1, public in 2.0.
17664 2006-12-23 Jonathan Pobst <monkey@jpobst.com>
17666 * Form.cs: Add MainMenuStrip property.
17668 2006-12-23 Jonathan Pobst <monkey@jpobst.com>
17670 * Control.cs: Add ContextMenuStrip property and implementation.
17671 Fix ContextMenu implementation to show menu centered on control when
17672 activated using the keyboard instead of showing at screen (0,0).
17674 * ToolStripDropDown.cs: Fix needed overload of Show ().
17676 2006-12-23 Everaldo Canuto <everaldo@simios.org>
17678 * Menu.cs: Name property added for 2.0 profile.
17680 2006-12-23 Everaldo Canuto <everaldo@simios.org>
17682 * Menu.cs: Update information about FindMenuItem, method to be
17685 2006-12-23 Everaldo Canuto <everaldo@simios.org>
17687 * MenuAPI.cs: When deselect items deselect also selected subitems.
17689 2006-12-23 Everaldo Canuto <everaldo@simios.org>
17691 * MenuAPI.cs: When hides menu set Wnd to null, it prevents
17692 FindSubItemByCoord to found itens that is not active, also an
17693 cheking added to FindSubItemByCoord to search for items only
17694 in visible popup windows. Fixes #80274.
17696 2006-12-22 Everaldo Canuto <everaldo@simios.org>
17698 * UserControl.cs: Remove MonoTodo and use InternalBorderStyle,
17699 internal property, it be care about change ExStyle.
17701 2006-12-22 Andreia Gaita <avidigal@novell.com>
17703 * ContainerControl.cs: set activeControl for parent forms up the
17704 tree when the new activecontrol is a container.
17705 When validating the active control, if it is a container, also
17706 raise up the validation for it's active control. Fixes #80280
17708 * Control.cs: Add internal property flag and check to prevent
17709 Focus events from getting raised when Select() is called for
17710 a ContainerControl. There are still too many focus events being
17711 raised at the moment though.
17712 Cleaned up the code a bit.
17714 2006-12-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
17716 * Control.cs: Added all missing 2.0 events.and
17717 fixed a couple of corcompare issues.
17718 * TrackBar.cs: Implemented missing 2.0 bits.
17719 * MonthCalendar.cs,
17720 * DateTimePicker.cs,
17721 * MdiClient.cs: Fixed some corcompare issues.
17723 2006-12-21 Jonathan Pobst <monkey@jpobst.com>
17725 * ContextMenuStrip.cs, FlowLayoutPanel.cs, SplitContainer.cs,
17726 SplitterPanel.cs: corecompare work.
17728 2006-12-21 Jonathan Pobst <monkey@jpobst.com>
17730 * ToolStripContainer.cs, ToolStripDropDown.cs, StatusStrip.cs:
17731 Clean up warnings for BackgroundImageChanged and PaddingChanged
17732 events now that they are implemented in Control.cs.
17734 2006-12-21 Jonathan Pobst <monkey@jpobst.com>
17736 * Control.cs: Make sure layout_engine isn't null before using it (2.0).
17738 * TableLayoutControlCollection.cs, TableLayoutPanel.cs, TableLayoutCellPosition.cs,
17739 TableLayoutSettings.cs, TableLayoutStyleCollection.cs: Initial implementation
17740 of TableLayoutPanel and supporting cast.
17742 2006-12-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
17745 - GrabWindow now confines the mouse pointer to the confine window.
17746 - Added Win32ClipCursor and Win32GetClipCursor.
17749 - Added CaptureWithConfine to be able to capture and confine
17752 * InternalWindowManager.cs:
17753 - Call CaptureWithConfine instead of Capture if we're an
17754 MdiChild (fixes #79982).
17756 2006-12-21 Chris Toshok <toshok@ximian.com>
17758 * DataGrid.cs: guard against the initial state of selection, where
17759 selection_start == -1. make sure we only select from index >= 0.
17762 2006-12-21 Chris Toshok <toshok@ximian.com>
17764 * Control.cs: we don't need to be so draconian with
17765 UpdateDistances, and we thusly don't need to call it before
17766 calling PerformLayout in ResumeLayout. Fixes bug #80289.
17768 2006-12-21 Daniel Nauck <dna@mono-project.de>
17771 TextBox.cs: Implemented AutoComplete properties.
17773 2006-12-20 Chris Toshok <toshok@ximian.com>
17775 * DataGridView*.cs: some corecompare work.
17777 2006-12-20 Jackson Harper <jackson@ximian.com>
17779 * XplatUIX11.cs: We need to hide the caret when deleting it,
17780 otherwise you get carets left lying around everywhere.
17781 * TextBoxBase.cs: Kill then redraw the caret when scrolling. This
17782 prevents getting some weird half drawn caret tracers when
17784 * TextControl.cs: Attempt to reduce the number of times we need to
17785 recreate the caret.
17787 2006-12-20 Gert Driesen <drieseng@users.sourceforge.net>
17789 * MonthCalendar.cs: Fixed previous month button. Removed extra tabs.
17791 2006-12-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
17793 * DateTimePicker.cs:
17794 - Implemented missing 2.0 bits.
17795 - Changed some default values to match MS.
17797 2006-12-20 Jackson Harper <jackson@ximian.com>
17799 * TextBoxBase.cs: When changing the font across the document we
17800 can't recalculate after changing each line, since that will cahnge
17802 - PreferredHeight is a little different than i thought.
17803 - When backspacing, move the caret before we do the actual char
17804 delete, because when that delete crosses a wrap boundary the
17805 positional information will change.
17807 2006-12-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
17809 * Control.cs: Added some missing 2.0 bits:
17810 BackgroundImageLayout, BackgroundImageLayoutChanged,
17811 OnPaddingChanged, MouseClick, MouseDoubleClick, PaddingChanged and
17812 add IBindableComponent and IDropTarget implementation.
17814 * MonthCalendar.cs:
17815 - Added all missing 2.0 features:
17816 BackgroundImageLayout, RightToLeftLayout,
17817 OnHandleDestroyed, RightToLeftLayoutChanged,
17818 BackgroundImageLayoutChanged, MouseClick, MouseDoubleClick,
17820 - Rewrote all the BoldDate code, it was completely broken.
17821 - Fixed all the tests (the tests can now be re-enabled, the
17822 problems were not with the tests, but with the control, it was
17825 * DateTimePicker.cs: Changed the location where the
17826 MonthCalendar is shown.
17828 2006-12-19 Chris Toshok <toshok@ximian.com>
17830 * DataGridView.cs: add IDropTarget implementation.
17832 * ToolStripPanel.cs: add IDropTarget implementation.
17834 2006-12-19 Jackson Harper <jackson@ximian.com>
17836 * TextControl.cs: soft now means something different than what it
17837 used to mean, we want to move the caret regardless of whether or
17838 not this break was soft (would we really have wanted the caret
17839 to not move with the break in the old context?)
17840 * TreeView.cs: Make sure we factor in the vert scrollbar when
17841 calculating the horizontal scrollbar's maximum.
17843 2006-12-19 Andreia Gaita <avidigal@novell.org>
17845 * SendKeys.cs: Fix Send() behaviour, clear keys after sending,
17846 check for keywords in alternate casing, close bug #80049.
17848 2006-12-19 Chris Toshok <toshok@ximian.com>
17850 * ToolStripItem.cs: add the implementation of the 4 IDropTarget
17851 methods (which all do nothing).
17853 * IDropTarget.cs: add the 4 missing methods.
17855 2006-12-19 Chris Toshok <toshok@ximian.com>
17857 * TableLayoutRowStyleCollection.cs: corcompare work.
17859 * TableLayoutSettings.cs: same.
17861 * TableLayoutStyle.cs: same.
17863 * TableLayoutColumnStyleCollection.cs: same.
17865 2006-12-19 Jonathan Pobst <monkey@jpobst.com>
17867 * ColumnStyle.cs, RowStyle.cs, TableLayoutStyle.cs: Plumbing for
17868 TableLayoutPanel I've had in my local tree for way too long.
17870 2006-12-19 Miguel de Icaza <miguel@novell.com>
17872 * TableLayoutSettings.cs: Finish the public API (still needs all
17873 the logic to update on changes).
17875 * TableLayoutPanelCellPosition.cs: new file.
17877 * TableLayoutRowStyleCollection.cs,
17878 TableLayoutColumnStyleCollection, TableLayoutStyle.cs,
17879 TableLayoutSettings.cs: Track the final 2.0 table api.
17881 2006-12-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
17883 * ColumnHeader.cs: Add Tag, Name, ImageKey, ImageIndex,
17884 and Image List 2.0 members for ColummnHeader.
17885 * ListView.cs: Add key-related 2.0 methods for
17886 ColumnHeaderCollection.
17888 2006-12-19 Gert Driesen <drieseng@users.sourceforge.net>
17890 * ListViewItem.cs: Changed AddRange overloads to match MS: throw
17891 ArgumentNullException if items argument is null. Ignore null item in
17892 arrays. Removed extra tabs.
17894 2006-12-19 Gert Driesen <drieseng@users.sourceforge.net>
17896 * MonthCalendar.cs: Fixed InvalidCastException.
17898 2006-12-19 Jackson Harper <jackson@ximian.com>
17900 * TextControl.cs: Don't increment the position here.
17901 - When calculating char positions only add in the line break size
17902 for hard line breaks.
17904 2006-12-19 Andreia Gaita <avidigal@novell.org>
17906 * SendKeys.cs: Changed some things to match ms.net behaviour
17907 when parsing shifted capital letters.
17909 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32, XplatUIOSX:
17910 Add window handle as parameter to SendInput. X11 needs the
17911 window handle, and the handle being passed to it in the keys
17912 queue is the active control handle (which windows needs), not
17915 XplatUIX11.cs, XplaUIX11-new.cs, X11Display: Implement SendInput
17916 to support SendKeys on X.
17918 * X11Keyboard: Implement helper method to lookup a linux keycode
17919 given the virtual keycode. Added table of keycode-2-virtualkey
17920 values to support this.
17922 2006-12-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
17924 * ListView.cs: Add support for SelectedIndexCollection
17925 and SelectedItemCollection 2.0 methods. Implement support
17927 * ListViewItem.cs: Add support for ListViewSubItemCollection
17928 2.0 methods. Also, fix an incorrect behavior of AddRange method
17929 (it shouldn't call Clear).
17930 * ThemeWin32Classic.cs: Support for ListView.ImageKey 2.0 property.
17932 2006-12-19 Jackson Harper <jackson@ximian.com>
17935 * TextBoxBase.cs: New args for FormatText
17936 * TextControl.cs: Rewrote the main drawing method, this version
17937 feels a little easier to understand and debug to me. Hopefully it
17938 does to others also
17939 - Fix FormatText to OR in the new formating values. Added
17940 FormatSpecified param, basically this works in the same way as
17941 BoundsSpecified in Control.
17942 - Set the caret properties when the caret is positioned.
17943 - When wrapping text make sure that we calculate the width of the
17945 - when calculating alignments we might have wrapped down to the
17946 next line, so don't search for an individual tag, search for the
17948 - We need to invalidate the selection area when we replace the
17951 2006-12-19 Daniel Nauck <dna@mono-project.de>
17953 * Application.cs: add Restart () 2.0 support
17955 2006-12-18 Everaldo Canuto <everaldo@simios.org>
17957 * MenuItem.cs: Invalidate menu item rectangle after change Enable
17958 property. Fixes #80268.
17960 2006-12-18 Everaldo Canuto <everaldo@simios.org>
17962 * MenuAPI.cs: Dont trigger select event when closes top menu
17963 item. Fixes #80270.
17965 2006-12-18 Everaldo Canuto <everaldo@simios.org>
17967 * MenuAPI.cs: When you click on menuitem only trigger onselect
17968 event for top menu itens. Fixes #80271.
17970 2006-12-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
17972 * MdiWindowManager.cs: Make IconicBounds depend on
17973 the bottom of MdiClient, not the top (fixes #80267)
17975 2006-12-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
17977 * MdiClient.cs: Added missing 2.0 attribute
17979 2006-12-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
17981 * ListViewItem.cs: Add Name and Tag 2.0 properties, as well
17982 as IndexOfKey, ContainsKey, RemoveByKey and indexer 2.0.
17984 2006-12-18 Everaldo Canuto <everaldo@simios.org>
17986 * MenuAPI.cs: Fix click when menuitem is not popup,
17987 this regression was caused by last commit (#80272).
17989 2006-12-17 Everaldo Canuto <everaldo@simios.org>
17991 * MenuAPI.cs: When a non-toplevel menuitem is clicked dont
17992 fire click event or close menu. Fixes #80272.
17994 2006-12-17 Daniel Nauck <dna@mono-project.de>
17996 * ListViewHitTestInfo.cs: add
17998 2006-12-17 Daniel Nauck <dna@mono-project.de>
18000 * ButtonBase.cs: Added FlatButtonAppearance 2.0 support.
18001 * FlatButtonAppearance.cs: add
18002 * DockingAttribute.cs: add
18004 2006-12-17 Chris Toshok <toshok@ximian.com>
18006 * DataGrid.cs: hook up MetaDataChanged event on the list manager,
18007 and rebind our columns when it does - this way, if you make
18008 changes to the DataTable (or set the Table attribute on a DataView
18009 after setting it as the DataGrid's DataSource, the changes are
18010 made visible.) Fixes bug #80107.
18012 2006-12-17 Daniel Nauck <dna@mono-project.de>
18014 * ListViewGroup.cs: add internal Location property for layouting.
18015 * Theme.cs: add abstract ListViewGroupHeight function.
18016 * ThemeWin32Classic.cs: implement ListViewGroupHeight function.
18018 2006-12-16 Andreia Gaita <avidigal@novell.com>
18020 * TabControl.cs: Fixed checks for NET_2_0-specific exceptions.
18021 Added reset of selected index to 0 when adding first tab page.
18024 * NumericUpDown.cs: Fix NET_2_0 check
18026 2006-12-16 Daniel Nauck <dna@mono-project.de>
18028 * ListViewGroup.cs: fixed DefaultValueAttribute value
18030 2006-12-16 Daniel Nauck <dna@mono-project.de>
18032 * AutoCompleteStringCollection.cs: add new AutoCompleteStringCollection 2.0 class
18034 2006-12-15 Miguel de Icaza <miguel@novell.com>
18036 * Button.cs, ComboBox.cs, ScrollBar.cs, UserControl.cs,
18037 TextBoxBase.cs, ListView.cs, ContainerControl.cs,
18038 ScrollableControl.cs: Add a handful of methods that are
18041 2006-12-15 Chris Toshok <toshok@ximian.com>
18043 * XplatUIWin32.cs: initial implementation of the Reversible
18044 drawing functions. there are some problems. DrawReversibleFrame
18045 doesn't seem to work at all for Dashed FrameStyle, and in the
18046 Thick case there are drawing errors at the corners (we probably
18047 need to bind Rectangle instead of doing moveto/lineto's.)
18049 2006-12-16 Andreia Gaita <avidigal@novell.com>
18051 * SendKeys.cs: Implemented. SendKeys uses a new method in XPlatUI, SendInput,
18052 to send blocks of key messages. Send accumulates keys to send with Flush,
18053 while SendWait sends all keys immediately.
18055 * XplaUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
18056 XplatUIX11.cs, XplatUIX11-new.cs:
18057 - Define SendInput and stubs for OSX and X11, implements Win32 with a call
18058 to Win32 SendInput.
18059 - Added INPUT support structures to XplatUIWin32 for Win32SendInput
18061 Tests: It seems ms.net is hooking the keyboard to implement this, so doing unit
18062 testing for ms.net on this class is very tricky, as the tests run too fast
18063 to allow the hook to release, essentially freezing the keyboard and the
18064 test. So, barring a win32 miracle, they'll be commited in the ms-notworking
18067 2006-12-16 Daniel Nauck <dna@mono-project.de>
18069 * Padding.cs: fixed serialization compability to MS ("_var" field names),
18070 added missing attributes.
18072 2006-12-15 Daniel Nauck <dna@mono-project.de>
18074 * ListViewGroup.cs: Added missing attributes.
18075 * ListViewGroupCollection.cs: Added missing attributes.
18077 2006-12-15 Daniel Nauck <dna@mono-project.de>
18079 * ListViewItem.cs: fixed ListViewSubItem text property.
18081 2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
18083 * Control.cs: Added missing 2.0 attributes
18085 2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
18087 * MdiClient.cs: Added missing 2.0 attribute.
18088 * MonthCalendar.cs: Added some missing 2.0 attributes
18091 2006-12-15 Daniel Nauck <dna@mono-project.de>
18093 * ListView.cs: implemented ListViewItemCollection Add 2.0 support.
18095 2006-12-15 Jonathan Pobst <monkey@jpobst.com>
18097 * MainMenu.cs: Add the new 2.0 constructor to help out people
18098 using the MainMenu in VS2005.
18100 2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
18102 * MdiChildContext.cs: Removed it, no longer used.
18103 * MdiClient.cs: Added missing 2.0 attributes.
18105 2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
18107 * InternalWindowManager.cs: Fix a NullRef with previous
18108 changes for toolwindows.
18110 2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
18113 - Added AfterTopMostControl to allow for certain controls
18114 to always stay on top when normal controls are brought to
18118 - (DrawInversibleRectangle): Get window rectangle from Win32
18119 in stead of from control, since Win32 doesn't calculate
18120 screen coords correctly from control's Location if it
18121 have docked siblings.
18123 * MdiWindowManager.cs:
18124 - Correct the control menu popup location when clicked on
18125 the maximized form icon. (fixes #80223.1)
18126 - Don't show moving rectangle if mouse hasn't moved from
18127 the original clicked point.
18128 - Removed FormGotFocus handler (not used).
18129 - Calculate the control buttons location from the main
18130 window's size and not client size (fixes #79770).
18131 - Form is now closed when the form icon is double-clicked
18133 - Correct NCCalcSize numbers a little bit (fixes #80223.2)
18135 * InternalWindowManager.cs:
18136 - Moved some MDI-only methods to MdiWindowManager.
18137 - Removed unused properties and methods.
18138 - Unified method naming for methods handling wm messages.
18139 - Moved all message handling to seperate methods for
18142 * ThemeWin32Classic.cs:
18143 - DrawManagedWindowDecorations now draws the title bar
18144 with a gradient brush.
18145 - Add a CPDrawButtonInternal that allows us to specify
18146 light, normal and dark colors for the buttons (control
18147 buttons for MDI children were drawn with the same light
18148 color as the background, therefore loosing the 3D effect).
18151 - Add a CapturedControl property that is used to
18152 determine the control to resize (defaults to parent).
18153 Needed for MdiClient, since its SizeGrip's parent is
18154 MdiClient, but the control to resize is the main form.
18157 - Set SizeGrip's CapturedControl to the main form in order
18158 to resize the main form and not the MdiClient.
18159 - Override AfterTopMostControl to leave the scrollbars
18162 2006-12-15 Daniel Nauck <dna@mono-project.de>
18164 * ListView.cs: fixed ListViewItemCollection AddRange and
18165 implemented ListViewItemCollection AddRange 2.0 support.
18167 2006-12-15 Daniel Nauck <dna@mono-project.de>
18169 * ListViewGroup.cs: Add.
18170 * ListViewGroupCollection.cs: Add
18171 * ListView.cs: Add ListViewGroup (Group) and ShowGroups 2.0 support.
18172 * ListViewItem.cs: Add ListViewgroup (Group), ListViewGroups constructors and
18173 stub for ImageKey 2.0 support.
18175 2006-12-14 Mike Kestner <mkestner@novell.com>
18177 * ListView.cs: add text padding to the autocalculation for columns
18178 of width -2. Fixes #80207.
18180 2006-12-14 Mike Kestner <mkestner@novell.com>
18182 * ListView.cs: add some index guarding for partial row navigation
18183 logic. Fixes #80250.
18185 2006-12-14 Mike Kestner <mkestner@novell.com>
18187 * ListView.cs: throw ArgumentExceptions when parented ListViewItems
18188 are added or inserted to the collection. Fixes #81099.
18190 2006-12-13 Everaldo Canuto <everaldo@simios.org>
18192 * MenuAPI.cs: Closes menu when right click out side of popup
18193 it fix problem in ContextMenu and MainMenu. Fixes #80252.
18195 2006-12-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
18197 * ListViewItem.cs: Fix dumb error.
18199 * ListView.cs: Add Find and ContainsKey methods in
18200 ListViewItemCollection, and also return true for IsReadOnly
18201 and IsFixedSize (changes for 2.0).
18203 2006-12-13 Gert Driesen <drieseng@users.sourceforge.net>
18205 * Control.cs: Allow Region to be set to null.
18207 2006-12-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
18209 * MdiWindowManager.cs: Remove unused (commented out) code.
18210 * Form.cs: When the MdiChild is maximized, the form needs
18211 WM_NCMOUSELEAVE, so request it.
18212 * InternalWindowManager.cs:
18213 - Added tooltips to control buttons.
18214 - Removed duplicated control button handling code.
18215 - Removed unused (commented out) code.
18217 2006-12-12 Everaldo Canuto <everaldo@simios.org>
18219 * MenuAPI.cs: Set cursor to default in popup menus, a XplatUI.SetCursor
18220 was used because we must set cursor without trigger ChangeCursor event
18221 and without change Cursor control property. Fixes #79963.
18223 2006-12-12 Andreia Gaita <avidigal@novell.com>
18225 * Control.cs: Check if Region setter value is null, and ignore
18227 2006-12-12 Jackson Harper <jackson@ximian.com>
18229 * TextControl.cs: We were almost always drawing one more line then
18230 needed, since the GetLineByPixel will return the last line found
18231 at that pixel. In most cases though, we were invalidating up to
18232 the junction between two lines.
18233 - Improve debug code.
18235 2006-12-12 Chris Toshok <toshok@ximian.com>
18237 * XplatUI.cs: add static DrawReversibleFrame, DrawReversibleLine,
18238 and FillReversibleRectangle.
18240 * XplatUIDriver.cs: add abstract DrawReversibleFrame, DrawReversibleLine,
18241 and FillReversibleRectangle.
18243 * XplatUIWin32.cs: add stubs which do nothing for
18244 DrawReversibleFrame, DrawReversibleLine, and
18245 FillReversibleRectangle.
18247 * XplatUIOSX.cs: add stubs which raise NIE for
18248 DrawReversibleFrame, DrawReversibleLine, and
18249 FillReversibleRectangle.
18251 * XplatUIX11.cs: add working implementation for
18252 DrawReversibleFrame, DrawReversibleLine, and
18253 FillReversibleRectangle.
18255 * ControlPaint.cs: implement DrawReversibleFrame,
18256 DrawReversibleLine, and FillReversibleRectangle, by calling into
18257 the appropriate XplatUI method.
18259 2006-12-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
18261 * Form.cs: Make MdiClient have the focus even if it's
18262 not selectable, since it should receive WM_KEY* and WM_MOUSE
18263 messages. Fixes #79907.
18265 2006-12-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
18267 * Hwnd.cs: Save the CreateParams.ExStyle so that it can be
18268 queried after the window is created.
18270 * XplatUIX11.cs: Added SendParentNotify to implement
18271 WM_PARENTNOTIFY logic. Fixes #79965.
18273 * Control.cs: Added MakeParam.
18275 2006-12-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
18277 * MdiClient.cs: Resume Layout before setting window
18278 states (fixes #80201).
18280 2006-12-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
18282 * MenuAPI.cs: Deselect a menu item after performing
18283 the click (fixes #80197).
18285 2006-12-11 Jackson Harper <jackson@ximian.com>
18287 * TextBoxBase.cs: We need to cap this value, since Maximum -
18288 ViewPortHeight can be less than zero.
18289 - Only do selection with the left mouse button.
18290 * TextBox.cs: Don't tell the world that we have a context menu.
18291 * Control.cs: New method so that we can control whether or not the
18292 context menu is visible outside MWF.
18294 2006-12-11 Everaldo Canuto <everaldo@simios.org>
18296 * ToolBarButton.cs: Fix text positon.
18298 2006-12-11 Miguel de Icaza <miguel@novell.com>
18300 * ProgressBar.cs (MarqueeAnimationSpeed): Add stub.
18302 * Control.cs (DoubleBuffered): Add implementation.
18304 * Application.cs (OpenForms): Add.
18306 2006-12-11 Jonathan Pobst <monkey@jpobst.com>
18308 * Form.cs: Use opacity instead of Opactiy to determine if we need
18309 to set the WS_EX_LAYERED bit. [Fixes bug #80185]
18311 2006-12-11 Jonathan Pobst <monkey@jpobst.com>
18313 * Control.cs: Fix NRE if Control.Site was set to null.
18315 2006-12-11 Chris Toshok <toshok@ximian.com>
18317 * Control.cs: ControlCollection.Remove should return if the arg is
18318 null, and ControlCollection.SetChildIndex should raise a ANE.
18320 2006-12-11 Gert Driesen <drieseng@users.sourceforge.net>
18322 * Control.cs: Verify value set for Dock property. Code formatting
18325 2006-12-11 Jackson Harper <jackson@ximian.com>
18327 * TextControl.cs: Draw the caret and the selection when a flag is
18329 * TextBoxBase.cs: We want to draw the caret and the selection for
18330 TextBox but not for TextBoxBase.
18331 - If the window is resized and scrolling is no longer needed (the
18332 whole doc is visible) set the scroll position to zero.
18333 - The default SelectWord (the one TextBox uses) should move the
18334 caret to the end of the word.
18335 - SelectAll moves the caret to the end of the selection.
18336 * TextBox.cs: We don't selectall on focus, we just do it when the
18337 control is created.
18339 2006-12-11 Mike Kestner <mkestner@novell.com>
18341 * ComboBox.cs: stub in a 2.0 override for ProcessKeyEventArgs.
18343 2006-12-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
18345 * ListView.cs: Add Insert, IndexOfKey, RemoveByKey and indexer
18347 * ListViewItem.cs: Add Name 2.0 property.
18349 2006-12-11 Andreia Gaita <avidigal@novell.com>
18351 * TabControl.cs: Set visibility on selected or default tab
18352 when tabcontrol handle is created, so that it's contents
18353 actually show up (duh). Fixes #80193
18354 Don't redraw the control if there is no handle created, as
18355 the selected index might be completely invalid. Added some tests
18358 2006-12-11 Everaldo Canuto <everaldo@simios.org>
18360 * ToolBar.cs: Uses maximun width and height of all buttons as
18361 button rectangle when ButtonSize specified, it looks strange but
18362 is what happens in Win32. Fixes #80189.
18364 2006-12-11 Jackson Harper <jackson@ximian.com>
18366 * TextControl.cs: Need to track undo levels ourself, since
18367 compound actions will mess them up.
18369 2006-12-10 Andreia Gaita <avidigal@novell.com>
18371 * TabControl.cs: Raise SelectedIndexChanged for 1.1 if the
18372 SelectedIndex value is changed (even if it's not valid).
18373 Reset SelectedIndex to 0 when the handle is created and if
18374 the current index is invalid.
18375 Fixes SelectdeIndex unit tests and #80128
18377 2006-12-08 Chris Toshok <toshok@ximian.com>
18379 * DataGrid.cs (set_CurrentCell): because EnsureCellVisibility
18380 calls EndEdit, it needs to be called before we set current_cell to
18381 its new value. Otherwise, we end up committing the value in the
18382 textbox to the new cell as well. Fixes bug #80160.
18384 2006-12-08 Chris Toshok <toshok@ximian.com>
18386 * Form.cs (set_CancelButton): if the button's DialogResult is
18387 None, set it to Cancel. Fixes bug 80180.
18389 2006-12-08 Jackson Harper <jackson@ximian.com>
18391 * TextBoxBase.cs: Ugh, ClientSize can be 0,0 sometimes, so we need
18392 to watch ourselves when setting the canvas size and setting the
18395 2006-12-08 Chris Toshok <toshok@ximian.com>
18397 * DataGrid.cs: comment out the two MakeTransparent calls for the
18398 time being so people using trunk (and not 1.2.2) on windows can
18399 actually use the datagrid. This deals with bug #80151.
18401 2006-12-08 Jonathan Pobst <monkey@jpobst.com>
18403 * ThemeWin32Classic.cs: Change ButtonBase_DrawImage to use the
18404 Graphics.DrawImage (image, int, int, int, int) overload instead
18405 of Graphics.DrawImage (image, int, int). GDI+ can't figure out
18406 the dpi difference and was blurring images it drew.
18409 2006-12-08 Chris Toshok <toshok@ximian.com>
18411 * ThemeWin32Classic.cs (DataGridPaintRows): handle case where
18412 rowcnt is 0 (such as with an empty datasource), and make sure we
18413 initialize not_usedarea.Y to cells.Y, so we don't draw over the
18414 other areas (caption, parent row, etc, etc). Fixes bug #80095.
18416 2006-12-08 Chris Toshok <toshok@ximian.com>
18418 * DataGridColumnStyle.cs (SetDataGrid): don't try to access a null
18421 2006-12-08 Chris Toshok <toshok@ximian.com>
18423 [ Fixes bug #80167 ]
18425 * ThemeWin32Classic.cs: don't draw the image if the button's flat
18426 style is FlatStyle.System.
18428 * ButtonBase, ThemeClearlooks.cs, ThemeGtk.cs, ThemeNice.cs: make
18429 ButtonBase.flat_style private, and switch uses of it to the public
18432 2006-12-08 Chris Toshok <toshok@ximian.com>
18434 [ Fixes bug #80121 ]
18436 * ThemeWin32Classic.cs: center the caption text in the datagrid
18439 * DataGrid.cs: lessen the amount we add to the caption height from
18440 6 to 2. 6 was making it huge.
18442 2006-12-08 Andreia Gaita <avidigal@novell.com>
18444 * UpDownBase: Handle MouseWheel call directly instead of capturing
18445 the inner textbox's OnMouseWheel. Fixes #80166
18447 2006-12-08 Jackson Harper <jackson@ximian.com>
18449 * TextControl.cs: We need to invalidate the textbox when we empty
18450 it (how had this not been discovered before?)
18452 2006-12-08 Jackson Harper <jackson@ximian.com>
18454 * TextBoxBase.cs: Reworked the mouse down code so I could get it
18455 to behave like MS, we now ignore the eventargs.Click and just
18456 track state ourself, which we were already doing anyways.
18457 - Constrain the double click handler to the double click size.
18459 2006-12-08 Chris Toshok <toshok@ximian.com>
18461 * DataGrid.cs: the mousewheel code shouldn't try to scroll in a
18462 direction if that scrollbar isn't shown. fixes bug #80158.
18464 2006-12-08 Andreia Gaita <avidigal@novell.com>
18466 * NumericUpDown.cs: Update value on getter. Fixes #79950
18468 2006-12-08 Chris Toshok <toshok@ximian.com>
18470 * MenuItem.cs: add back in the event cloning code. I didn't know
18471 how to do it in the face of the EventHandlerList work i'd done
18472 last week. Fixes bug #80183.
18474 2006-12-08 Jonathan Pobst <monkey@jpobst.com>
18476 * Control.cs: Add an invalidate to the BackgroundImage setter.
18479 2006-12-07 Jonathan Pobst <monkey@jpobst.com>
18481 * ToolStrip*: Add some small properties reported by MoMA, fix event
18482 firing and default properties based off of unit tests, and add some
18483 attributes based off of the class status page.
18485 2006-12-07 Jackson Harper <jackson@ximian.com>
18487 * TextBoxBase.cs: Take HideSelection into account when determining
18488 whether or not to show the selection.
18489 * RichTextBox.cs: After inserting the RTF into the document move
18490 the cursor to the beginning of the document.
18492 2006-12-07 Jonathan Pobst <monkey@jpobst.com>
18494 * Control.cs: Remove static ArrayList "controls" which maintained
18495 a reference to every control created.
18496 * Application.cs: Create a static FormCollection to maintain a reference
18497 to every form created. Use it in places that formerly enumerated through
18498 the controls one looking for forms.
18499 * Form.cs: Add and remove self from above FormCollection.
18501 2006-12-07 Alexander Olk <alex.olk@googlemail.com>
18503 * MimeIcon.cs: gdk_pixbuf_save_to_buffer is part of libgdk-pixbuf,
18504 not libgdk (though it makes me wonder why I didn't have any
18507 2006-12-07 Chris Toshok <toshok@ximian.com>
18509 [ you had to know this was coming after that last commit...]
18511 * XplatUIX11.cs: implement the 3 Offscreen functions in terms of
18512 XPixmaps (CreateOffscreenDrawable maps to XCreatePixmap,
18513 DestroyOffscreenDrawable to FreePixmap, and BlitFromOffscreen to
18516 2006-12-07 Chris Toshok <toshok@ximian.com>
18518 * XplatUI.cs: add 3 calls (CreateOffscreenDrawable,
18519 DestroyOffscreenDrawable, and BlitFromOffscreen) that encompass
18520 all the behavior we need for double buffering.
18522 * XplatUIDriver.cs: implement the 3 double buffer methods using a
18523 client side Bitmap, just like the old Control-based double buffer
18524 code did. The methods are virtual, so each XplatUI driver
18525 subclass can replace the implementation to use a faster, platform
18528 * Control.cs: make use of the 3 Offscreen XplatUI calls in the
18529 double buffer code, and clean things up a bit in the process.
18531 2006-12-06 Chris Toshok <toshok@ximian.com>
18533 * Control.cs: reindent WndProc.
18535 2006-12-06 Chris Toshok <toshok@ximian.com>
18537 [ I wanna be like BenM when I grow up ]
18539 * Hwnd.cs: create a single static Graphics object on the static
18540 Bitmap we create. use this for our text measurements.
18542 * Control.cs (DeviceContext): stop using the backbuffer's dc_mem.
18543 This was causing us to allocate a backbuffer for every control,
18544 even when it wasn't flagged as double buffered. Instead use the
18545 single graphics instance. This might have implications for
18546 multithreaded applications. If we run into problems we can switch
18547 to creating 1 Graphics per control, on the static Hwnd bitmap.
18549 this change nets us a 7M savings in private dirty mappings when
18550 running FormsTest.exe.
18552 2006-12-06 Chris Toshok <toshok@ximian.com>
18554 * ListView.cs: the BackgroundImage override is just to set
18555 attributes. chain up to base.BackgroundImage.
18557 * RichTextBox.cs: same.
18559 * ToolBar.cs: same, but we need to also redraw the toolbar when it
18560 changes, so instead a handler for BackgroundImageChanged.
18562 * Control.cs: make background_image private.
18564 2006-12-06 Chris Toshok <toshok@ximian.com>
18566 * ScrollBar.cs: change the assignment of cursor to Cursor. not
18567 sure we even need this assignment, but roll with it for now.
18569 * Control.cs: make the cursor field private.
18571 2006-12-06 Chris Toshok <toshok@ximian.com>
18573 * Form.cs: we don't need to explicitly set ImeMode to
18574 ImeMode.NoControl - that's a natural fallout of Control.ImeMode's
18575 behavior in the face of ImeMode.Inherit.
18577 * ButtonBase.cs: change DefaultImeMode to ImeMode.Disable, and
18578 change the ctor's assignment to use ImeMode instead of ime_mode.
18580 * Control.cs (get_ImeMode): don't assume DefaultImeMode ==
18581 ImeModeInherit. Only check for the parent's imemode (and return
18582 NoControl if there is no parent) if ime_Mode == ImeMode.Inherit.
18583 This fixes the button unit test, which sets both ImeMode and
18584 DefaultImeMode to ImeMode.Disable.
18586 also make the ime_mode field private.
18588 2006-12-06 Chris Toshok <toshok@ximian.com>
18590 * Control.cs: make control_style private.
18592 * TextBoxBase.cs: fix the HandleClick override. it was explicitly
18593 setting the styles to true, then setting them to false instead of
18594 reverting to their previous values.
18596 also, call SetStyle on the scrollbars instead of using
18597 control_style directly.
18599 2006-12-06 Jonathan Pobst <monkey@jpobst.com>
18601 * FormCollection.cs: Implement. [2.0]
18603 2006-12-06 Chris Toshok <toshok@ximian.com>
18605 * Control.cs: make tab_stop private.
18607 * Label.cs: set TabStop, not tab_stop. reformat some event
18608 add/remove methods to make them more compact.
18610 2006-12-06 Chris Toshok <toshok@ximian.com>
18612 * RadioButton.cs: fix TabStop handling.
18614 2006-12-06 Chris Toshok <toshok@ximian.com>
18616 * TextBox.cs: remove the explicit assignments to has_focus.
18619 * ButtonBase.cs: remove the assignment to has_focus. Control will
18622 2006-12-06 Chris Toshok <toshok@ximian.com>
18624 * ButtonBase.cs: remove all uses of is_enabled from this code.
18625 it's always true when any of the code containing the checks is
18628 2006-12-06 Chris Toshok <toshok@ximian.com>
18630 * ImageList.cs: reinstate the ShouldSerialize*/Reset* methods,
18631 with different semantics (some are present in both 1.1 and 2.0
18632 profiles) so that we match MS's behavior in our unit tests.
18634 2006-12-06 Jackson Harper <jackson@ximian.com>
18636 * TextControl.cs: Make this operation undoable.
18637 * TextBoxBase.cs: Factor the border width into the preferred
18639 - implement Modified as per the spec.
18641 2006-12-06 Chris Toshok <toshok@ximian.com>
18643 * Timer.cs, Control.cs, Menu.cs: make control_tag private.
18645 2006-12-06 Chris Toshok <toshok@ximian.com>
18647 * Control.cs: make right_to_left and context_menu fields private.
18649 2006-12-06 Chris Toshok <toshok@ximian.com>
18651 * AccessibleObject.cs, Control.cs, XplatUIX11GTK.cs,
18652 XplatUIX11.cs, Form.cs, RadioButton.cs, ScrollableControl.cs: make
18653 Control.child_controls private. switch all uses over to
18656 2006-12-06 Chris Toshok <toshok@ximian.com>
18658 * System.Windows.Forms/GroupBox.cs,
18659 System.Windows.Forms/AccessibleObject.cs,
18660 System.Windows.Forms/ErrorProvider.cs,
18661 System.Windows.Forms/Control.cs,
18662 System.Windows.Forms/UpDownBase.cs,
18663 System.Windows.Forms/ScrollBar.cs,
18664 System.Windows.Forms/DateTimePicker.cs,
18665 System.Windows.Forms/Form.cs, System.Windows.Forms/Label.cs,
18666 System.Windows.Forms/ToolTip.cs,
18667 System.Windows.Forms/RadioButton.cs,
18668 System.Windows.Forms/LinkLabel.cs,
18669 System.Windows.Forms/Splitter.cs,
18670 System.Windows.Forms/TextBoxBase.cs,
18671 System.Windows.Forms/ToolStripTextBox.cs,
18672 System.Windows.Forms/ContainerControl.cs,
18673 System.Windows.Forms/ThemeWin32Classic.cs,
18674 System.Windows.Forms/SizeGrip.cs,
18675 System.Windows.Forms/ToolStripDropDown.cs,
18676 System.Windows.Forms/ScrollableControl.cs: Make Control.parent
18677 private. switch all uses over to Control.Parent.
18679 2006-12-06 Chris Toshok <toshok@ximian.com>
18681 * RichTextBox.cs: don't assign to has_focus in GotFocus/LostFocus.
18682 Control does this before calling emitting these events.
18684 * TabControl.cs: same.
18686 * ThemeWin32Classic.cs: use Control.ClientRectangle instead of
18687 Control.client_rect.
18689 * ButtonBase.cs: use the ClientSize property instead of the
18692 * ScrollableControl.cs: same.
18694 * Control.cs: another pass at making properties private. also,
18695 move the initialization of tab_stop to the ctor.
18697 2006-12-05 Andreia Gaita <avidigal@novell.com>
18699 * TabControl.cs: Let the selected index be set freely if the
18700 control handle is not yet created.
18702 2006-12-05 Jonathan Pobst <monkey@jpobst.com>
18704 * Control.cs: Revert dist_top, dist_right, and dist_bottom to
18705 internal until I can rewrite DefaultLayout.
18706 * ToolStrip.cs: Fix build error and some general cleaning.
18707 * ToolStripControlHost.cs, SplitterPanel.cs, DataGridView.cs:
18708 Fix build errors caused by making some of Control's fields private.
18710 2006-12-05 Jackson Harper <jackson@ximian.com>
18712 * TextControl.cs: Redo Insert a little so that it use IndexOf
18713 instead of Split, this prevents it from messing up on things like
18714 \n\n\n. Also more effecient since the split array doesn't need to
18716 * TextBoxBase.cs: AppendText doesnt handle multiline and non
18717 multiline text differently, this is the first of many fixes that
18718 will make multiline/non-multiline the same thing as far as the
18719 TextBoxBase is concerned.
18720 - Don't split the text and insert lines, this can lose some line
18721 endings (like is the last line a soft or hard break). Instead use
18723 - Fix an off by one when combining all the lines in the Text
18725 - Remove separate multiline handling from the Text getter/setter.
18727 2006-12-05 Chris Toshok <toshok@ximian.com>
18729 * ButtonBase.cs: a few changes:
18731 - don't reinitialize internal Control fields in the ctor when they
18732 have the same values as Control sets them.
18734 - don't set has_focus in OnGotFocus/OnLostFocus. Control does
18735 this before calling those methods.
18737 - we don't need to call Refresh for anything. use Invalidate
18740 - OnEnabledChanged doesn't need to redraw at all - Control.cs
18741 calls Refresh in its OnEnabledChanged.
18743 - several of the events we were registered for in the ctor to
18744 redraw ourselves already include calls to Invalidate in the
18745 property setters that raise the events. remove the extra
18748 - reformat a switch statement that was 83274658 columns wide.
18750 2006-12-05 Mike Kestner <mkestner@novell.com>
18752 * ComboBox.cs: fix a unit test regression from a TextBox
18753 SelectionLength return of -1 when there's no selection.
18755 2006-12-05 Chris Toshok <toshok@ximian.com>
18757 * Control.cs, Button.cs, ThemeGtk.cs, Form.cs, ListView.cs,
18758 ThemeWin32Classic.cs, SizeGrip.cs, ToolBar.cs: first pass at
18759 cleaning up some of the internal Control fields being used by
18762 2006-12-05 Mike Kestner <mkestner@novell.com>
18764 * ComboBox.cs: fix some Simple mode regressions. Set Visible on the
18765 listbox after AddImplicit calls since it defaults to hidden. Add a
18766 hack to preserve requested heights across DropDownStyle changes.
18768 2006-12-05 Jonathan Pobst <monkey@jpobst.com>
18770 * PropertyGrid.cs: Hide FindFirstItem method from public API.
18772 2006-12-05 Chris Toshok <toshok@ximian.com>
18774 * DataGridView.cs: fix compiler warnings.
18776 * PrintControllerWithStatusDialog.cs: same.
18778 * ToolBar.cs: same.
18780 * FolderBrowserDialog.cs: same.
18782 * Splitter.cs: same.
18784 * DataGridViewComboBoxCell.cs: same.
18786 * XplatUIWin32.cs: same.
18788 * PictureBox.cs: same.
18790 * Win32DnD.cs: same.
18792 * PageSetupDialog.cs: same.
18794 * FileDialog.cs: same.
18796 * PrintDialog.cs: same.
18798 * DataGridTextBoxColumn.cs: same.
18800 * DrawTreeNodeEventArgs.cs: same (and fix corcompare)
18802 2006-12-05 Chris Toshok <toshok@ximian.com>
18804 * TextBox.cs, CheckedListBox.cs, MonthCalendar.cs, Menu.cs,
18805 MainMenu.cs, ListView.cs, LabelEditTextBox.cs, ToolBar.cs: more
18806 System.ComponentModel.EventHandlerList work.
18808 2006-12-05 Jonathan Chambers <joncham@gmail.com>
18810 * DrawTreeNodeEventArgs.cs: Added.
18812 2006-12-05 Rolf Bjarne Kvinge <RKvinge@novell.com>
18814 * InternalWindowManager.cs: Remove an unused field.
18816 2006-12-05 Rolf Bjarne Kvinge <RKvinge@novell.com>
18818 * InternalWindowManager.cs:
18819 - Save the point where the title bar is clicked.
18821 * MdiWindowManager.cs:
18822 - Only allow moving of the window as long as the
18823 clicked point on the title bar does not get out of
18824 MdiClient's rectangle. Fixes #79982.
18827 - Added Horizontal/VerticalScrollbarVisible.
18828 - Simplified the scrollbar sizing algorithm.
18829 - Cache the difference in scrolled value in
18830 H/VBarValueChanged and move the calculation out
18833 2006-12-05 Rolf Bjarne Kvinge <RKvinge@novell.com>
18835 * Control.cs: Make the Console.WriteLine in WndProc
18838 2006-12-05 Chris Toshok <toshok@ximian.com>
18840 * ToolStripManager.cs, ToolStripButton.cs,
18841 ToolStripContentPanel.cs, ToolStripComboBox.cs, ToolStrip.cs,
18842 ToolStripMenuItem.cs, ToolStripItem.cs, ToolStripControlHost.cs,
18843 ToolStripSplitButton.cs, ToolStripSeparator.cs,
18844 ToolStripRenderer.cs, ToolStripDropDownItem.cs,
18845 ToolStripProgressBar.cs, ToolStripContainer.cs,
18846 ToolStripTextBox.cs, ToolStripPanel.cs, ToolStripDropDown.cs: move
18847 to using System.ComponentModel.EventHandlerList.
18849 2006-12-04 Chris Toshok <toshok@ximian.com>
18851 * LinkLabel.cs: fix up compiler warnings.
18853 * TableLayoutSettings.cs: same.
18855 * TreeView.cs: same.
18857 * ToolBar.cs: same.
18859 * TabControl.cs: same.
18861 * RichTextBox.cs: same.
18863 * ListViewItem.cs: same.
18865 * PropertyGrid.cs: same.
18867 * DataGridViewRowPostPaintEventArgs.cs: corcompare fix.
18871 * TextRenderer.cs: fix up compiler warnings.
18875 * Form.cs: corcompare fixes.
18877 * PictureBox.cs: fix up compiler warnings.
18879 * ImageListStreamer.cs: same.
18881 * TrackBar.cs: corcompare fix.
18883 * Control.cs: fix up compiler warnings.
18885 * SplitterPanel.cs: same.
18887 * NumericTextBox.cs: same.
18889 * ImageList.cs: same.
18891 * StatusStrip.cs: same.
18893 * ProgressBar.cs: corcompare fix.
18895 * ToolStripButton.cs: fix up compiler warnings.
18897 * ToolStripStatusLabel.cs: same.
18899 * ToolStripSplitButton.cs: same.
18901 * ToolStripSeparator.cs: same.
18903 * ToolStripProgressBar.cs: same.
18905 * ToolStripDropDownMenu.cs: same
18907 * ToolStripDropDown.cs: same.
18909 * ToolStripDropDownButton.cs: same.
18911 * ToolStrip.cs: same.
18913 * ToolStripControlHost.cs: same.
18915 * ToolStripContentPanel.cs: same.
18917 * ToolStripDropDown.cs: same.
18919 * ToolStripContainer.cs: same.
18921 * ToolStripPanel.cs: same, and add "new" where we need it to work
18922 with the new ArrangedElementCollection.
18924 * ToolStripItemCollection.cs: add "new" where we need it to work
18925 with the new ArrangedElementCollection.
18927 2006-12-04 Andreia Gaita <avidigal@novell.com>
18929 * TabControl.cs: Fix default tab selection to after TabControl
18930 gets focus and not before. Fixes #80128
18932 2006-12-04 Chris Toshok <toshok@ximian.com>
18934 * DataGridTableStyle.cs: remove the gross calling of
18935 datagrid.Refresh from here. It's a broken idea and it doesn't
18938 * DataGrid.cs: instead, just register/unregister from the
18939 DataGridTableStyle events in CurrentTableStyle. we play it
18940 conservatively and EndEdit + CalcAreasAndInvalidate on any event,
18941 even though some would most likely not require it. Fixes bug
18942 #80115 (and one portion of #80117 as a side effect).
18944 2006-12-04 Chris Toshok <toshok@ximian.com>
18946 * DataGrid.cs (set_CaptionVisible): EndEdit before doing the work
18947 so the textbox (if any) goes away. Fixes bug #80117.
18949 2006-12-04 Chris Toshok <toshok@ximian.com>
18951 * DataGridColumnStyle.cs: set the column's readonly property
18952 initially based on the property descriptor's IsReadOnly. Fixes
18955 2006-12-04 Chris Toshok <toshok@ximian.com>
18957 * ComboBox.cs: wrap the dropdown style changing work in
18958 SuspendLayout/ResumeLayout. Fixes bug #79968.
18960 2006-12-04 Jackson Harper <jackson@ximian.com>
18962 * TextBoxBase.cs: Fix off by one, since these are one-based.
18963 * TextBox.cs: Select all the text when we get focus. The TextBox
18964 does this but the RTB does not.
18966 2006-12-04 Chris Toshok <toshok@ximian.com>
18968 * DataGridTextBoxColumn.cs: remove some spew.
18970 * DataGridColumnStyle.cs (SetColumnValueAtRow): this seems right
18971 but some part of me is saying "it shouldn't be here.." At any
18972 rate, it fixes bug #80046. Call IEditableObject.EndEdit after
18975 2006-12-04 Chris Toshok <toshok@ximian.com>
18977 * DataGridColumnStyle.cs (SetDataGrid): call CheckValidDataSource
18978 to reassign the propertydescriptor.
18980 2006-12-04 Jackson Harper <jackson@ximian.com>
18983 * TextControl.cs: Remove some unused variables. Maybe this will
18984 patch things up between mike and I.
18985 - don't split lines less then one char wide, if the viewport is
18986 that small text won't be visible anyways.
18988 2006-12-04 Jackson Harper <jackson@ximian.com>
18990 * TextBoxBase.cs: Default selection length is -1, need to do some
18991 more testing on windows to see when this is used for the property.
18992 - Redid the Lines [] property to that we properly remove soft line
18994 - added support for preserving carriage returns
18995 - CanUndo is not a variable like 'is undo enabled' it just returns
18996 true if there is undo operations available.
18997 - AppendText doesn't need to grab the last tag itself anymore,
18998 this happens automatically when we move the cursor.
18999 * TextControl.cs: Add CompoundActions to the undo class. This
19000 allows combining the other operations into one big option. ie a
19001 paste will combine { delete old, insert new, move cursor }
19002 - Add InsertString undo operation
19003 - New method for deleting multiline text
19004 - Add carriage returns to lines. So we can preserve carriage
19005 returns when text is 'roundtripped'
19007 2006-12-04 Chris Toshok <toshok@ximian.com>
19009 * DataGrid.cs (CalcCellsArea): cells_area.Width/Height are at a
19010 minimum 0. Fixes the scrollbar exception in bug #80136.
19012 2006-12-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
19015 * MdiWindowManager: Removed unused fields and methods.
19017 2006-12-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
19019 * StatusBar.cs: Update all panels when a AutoSize=Contents
19020 panel needs updating.
19022 * StatusBarPanel.cs: Remove twidth and only use initialize.
19025 2006-12-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
19027 * Form.cs: When a form's MdiParent is set add it directly
19028 on top of the z-order in stead of relying on MdiClient's
19029 ActivateChild to do it. Fixes #80135.
19032 - Remove original_order, mdi_child_list is already doing
19034 - Create mdi_child_list on construction in
19035 stead of first use (avoids a few null checks).
19037 * MenuItem.cs: Use an already existing list of mdi children
19038 to get the correct order of children and remove the other
19041 2006-12-04 Chris Toshok <toshok@ximian.com>
19043 * PropertyGridView.cs: cached_splitter_location is only used in
19044 !DOUBLEBUFFER code.
19046 * PropertyGrid.cs: implement the ComComponentNameChanged event
19047 using Events, hoping that would fix the warning. Looks like a
19048 compiler bug instead (#80144).
19050 * PropertyManager.cs: remove unused method.
19052 2006-11-04 Everaldo Canuto <everaldo@simios.org>
19054 * ThemeWin32Classic.cs: Dont draw arrow when menuitem on menubar,
19055 include parentesis to fix expression evaluation. Fixes #79634.
19057 2006-11-02 Everaldo Canuto <everaldo@simios.org>
19060 - Changes to fix behavior in Menu control, some reported in #80097
19061 and other detected during behavior refactory like a select event
19063 - Remove unneded "if's" conditions.
19064 - Created an internal to flag when popup is active in control, we need
19065 it because in .NET you can have menu active but without popup active
19066 when you active menu using popup without visible items.
19067 - Mimic win32 behavior for Select and Popup events.
19068 - Dont open popup menu when you dont have visible subitems.
19069 - Do nothing when click on disabled menu item.
19070 - Some small changes to follow the coding style guidelines.
19071 - Unselect menu only when another control gives focus. Fixes #80097.
19072 - Remove unused code.
19074 * MenuItem.cs: internal VisibleItems method to check if menu
19075 theres visible subitems, it will be usefull to fix some
19076 behavior in Menu control.
19078 2006-11-01 Everaldo Canuto <everaldo@simios.org>
19080 * Timer.cs: Tag property for 2.0 profile.
19082 2006-12-01 Chris Toshok <toshok@ximian.com>
19084 [ after removing all warning suppressions, this cleans up over 100 warnings. ]
19086 * Win32DnD.cs: comment out some unused fields.
19088 * XplatUIWin32.cs: comment out some unused pinvokes, and remove
19089 some unused properties/methods.
19091 * XplatUIX11.cs: fix MousePosition so we override the base class's
19092 property instead of conflicting with it.
19094 * PictureBox.cs: comment out some unused fields
19096 * OSXStructs.cs: make some struct fields public.
19098 * XplatUIOSX.cs: comment out some unused pinvokes, and fix
19099 MousePosition so we override the base class's property instead of
19100 conflicting with it.
19102 * X11Dnd.cs: comment out some unused fields
19104 * X11DesktopColors.cs: fix some struct field visibility to quiet
19107 * X11Dnd.cs: remove some debug code.
19109 * ThemeClearlooks.cs: comment out unused field.
19111 * ThemeNice.cs: mark some methods as overriding ThemeWin32Classic as needed.
19113 * ThemeGtk.cs: comment out some unused pinvokes.
19115 * Timer.cs: remove some unused fields.
19117 * ThemeClearlooks.cs: comment out unused field.
19119 * UpDownBase.cs: comment out unused field.
19121 * DataObject.cs: comment out unused field.
19123 * DataGridBoolColumn.cs: reomve unused field.
19125 * DataGrid.cs: remove unused field.
19127 * Cursor.cs: remove old ToBitmap code.
19129 * ControlPaint.cs: remove unused method.
19131 * ScrollBar.cs: remove unused fields.
19133 * ComboBox.cs: remove unused field, and chain up to
19134 AccessibleObject ctor.
19136 * ListBox.cs: remove unused field.
19138 * ButtonBase.cs: wrap a couple fields in NET_2_0.
19140 * GridEntry.cs: remove unused fields.
19142 * Binding.cs: remove unused fields.
19144 * AxHost.cs: remove unused method.
19146 * ContainerControl.cs: remove unused field.
19148 * ScrollableControl.cs: remove unused fields.
19150 2006-12-01 Chris Toshok <toshok@ximian.com>
19152 * XplatUI.cs, XplatUIWin32.cs, XplatUIGTK.cs: nuke
19153 the Where/WhereString stuff. it's easy enough to CWL
19154 Environment.StackTrace.
19156 * XplatUIX11.cs: same, but also fix up a lot of mcs warnings about
19157 unused private fields.
19159 2006-12-01 Jackson Harper <jackson@ximian.com>
19161 * TextControl.cs: Do not update the view while inserting multiline
19162 text. If we update the view we might wrap lines, before entering
19163 the new lines, which causes the new line insertion calculations to
19164 be totally fubared.
19165 - Remove an old TODO
19166 - Make debug output a little nicer
19168 2006-12-01 Chris Toshok <toshok@ximian.com>
19170 * ToolBar.cs: revert the ImeMode fix here and add an XXX comment.
19172 2006-12-01 Chris Toshok <toshok@ximian.com>
19174 [ fix the majority of the CS0108 warnings we've been suppressing ]
19176 * TreeView.cs: mark BackgroundImageChanged as 'new'.
19178 * ToolBar.cs: ImeMode just passes stuff to Control. Rename Layout
19179 to "LayoutToolBar" to quiet mcs.
19181 * TabControl.cs: mark our ControlCollection class as 'new'.
19183 * TextBoxBase.cs: mark some events as 'new'.
19185 * Splitter.cs: TabStop is 'new'.
19187 * ControlBindingsCollection.cs: mark a few methods as new since
19188 they change the visibility from protected to public.
19190 * RadioButton.cs: DoubleClick -> base class, and remove unused
19193 * MonthCalendar.cs: ImeMode property -> base class, and mark many
19196 * NumericUpDown.cs: TextChanged -> base class.
19198 * CheckedListBox.cs: mark our ObjectCollection class as new to
19201 * FolderBrowserDialog.cs: make HelpRequest event new and have it
19202 muck with the base class.
19204 * StatusBar.cs: fix some mcs warnings about Update being the same
19205 name as a base class method.
19207 * RichTextBox.cs: mark some events as new, and make them do things
19208 to the base class impl.
19210 * UserControl.cs: mark TextChanged as new, and have it manipulate
19213 * UpDownBase.cs: mark some things new.
19215 * CheckBox.cs: mark DoubleClick "new", and add some text about
19216 what we need to look at.
19218 * Panel.cs: make the events "new", and manipulate the base
19219 version. these are just here for attributes.
19221 * AccessibleObject.cs: make owner private.
19223 * Control.cs: deal with AccessibleObject.owner being private.
19224 cache our own copy if we need it.
19226 * Button.cs: add "new" to the DoubleClickEvent.
19228 * ListBox.cs: no need to track our own has_focus here. let
19229 Control.has_focus do it for us. Also some other work to clear up
19230 warnings about not overriding base class methods of the same name.
19232 * ComboBox.cs: clear up some warnings about not override base
19233 class methods of the same name.
19235 2006-12-01 Chris Toshok <toshok@ximian.com>
19237 * Form.cs: flag a few things as "new" to quiet some of the mcs
19242 * PrintPreviewDialog.cs: same.
19244 * DataGridView.cs: fix a ton of corcompare warnings. not all, but
19245 now DGV isn't so horrible on the class status page. also, move
19246 all events to using System.ComponentModel.EventHandlerList. my
19249 2006-12-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
19251 * MdiWindowManager.cs:
19252 - Set form to active mdi child if shown,
19253 and update the active mdi child to the next
19254 remaining child in the z-order if the form is hidden.
19257 - Track if the form has been visible and if its
19258 visibility is beeing changed, so that the MdiClient
19259 can properly decide the ActiveMdiChild. The MdiClient
19260 cannot track this since the form can change visibility
19261 before MdiClient is created.
19264 - Don't activate anything of the parent form is changing
19266 - Rework ActiveMdiChild to only return visible mdi
19267 children and take into account several other corner
19270 2006-12-01 Chris Toshok <toshok@ximian.com>
19272 * IBindableComponent.cs: new 2.0 interface.
19274 2006-12-01 Gert Driesen <drieseng@users.sourceforge.net>
19276 * DataGrid.cs: Font for caption area is bold by default.
19278 2006-12-01 Everaldo Canuto <everaldo@simios.org>
19280 * Menu.cs: Tag property for 2.0.
19282 2006-11-01 Everaldo Canuto <everaldo@simios.org>
19284 * ThemeWin32Classic.cs: Adjust menu separator drawing.
19286 2006-12-01 Chris Toshok <toshok@ximian.com>
19288 * TreeView.cs: doh, the Begin* events should be
19289 TreeViewCancelEventHandler.
19291 2006-12-01 Chris Toshok <toshok@ximian.com>
19293 * Form.cs: Form.ControlCollection already stores off the
19294 form_owner field. don't access the base class's internal "owner"
19297 * Control.cs: make all the fields in Control.ControlCollection
19298 private. there's no need for any internal fields here.
19300 2006-12-01 Chris Toshok <toshok@ximian.com>
19302 * DataGrid.cs: call SetDataSource instead of CalcGridAreas in
19303 OnHandleCreated. Fixes bug #80109.
19305 2006-12-01 Chris Toshok <toshok@ximian.com>
19307 * Button.cs, PropertyGridTextBox.cs, ComboBox.cs,
19308 SplitContainer.cs, Control.cs, StatusStrip.cs,
19309 DataGridTableStyle.cs, MenuItem.cs, DomainUpDown.cs, ImageList.cs,
19310 NumericTextBox.cs, NumericUpDown.cs, Panel.cs, CommonDialog.cs,
19311 DataGrid.cs, ScrollBar.cs, TrackBar.cs, PictureBox.cs,
19312 DateTimePicker.cs, StatusBar.cs, Form.cs, PrintPreviewDialog.cs,
19313 Label.cs, UserControl.cs, CheckBox.cs, RadioButton.cs,
19314 LinkLabel.cs, ListControl.cs, PropertyGrid.cs, Splitter.cs,
19315 MenuStrip.cs, FolderBrowserDialog.cs, NotifyIcon.cs,
19316 TextBoxBase.cs, ListView.cs, DataGridBoolColumn.cs,
19317 PrintPreviewControl.cs, RichTextBox.cs, ListBox.cs, TabControl.cs,
19318 DataGridColumnStyle.cs, ContextMenu.cs, TreeView.cs:
19320 do most of the work to convert our code over to use
19321 System.ComponentModel.Component.Events for
19322 adding/removing/dispatching events.
19325 2006-11-30 Jonathan Pobst <monkey@jpobst.com>
19327 * DataGridView.cs: Fix an ArgumentNullException reported
19328 twice today in IRC.
19330 2006-11-30 Mike Kestner <mkestner@novell.com>
19332 * ComboBox.cs: fix the scrollbar mouse event forwarding in the
19333 grabbed listbox. Fixes #80036 and #80101.
19335 2006-11-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
19337 * Message.cs: Changed ToString() to match MS.
19339 2006-11-30 Jackson Harper <jackson@ximian.com>
19341 * TextBoxBase.cs: You can still change the selected text on a read
19343 * TextControl.cs: Lower magic number for wrap calculations. This
19344 lets text get closer to the right (far) edge.
19346 2006-11-30 Jonathan Pobst <monkey@jpobst.com>
19348 * Control.cs: Tweak 2.0 layout properties.
19349 * Form.cs: Switch ToolStripMenuTracker hooks to ToolStripManager.
19350 * TextRenderer.cs: Add a new overload.
19351 * ToolStrip*: Huge amount of changes and new features.
19353 2006-11-30 Mike Kestner <mkestner@novell.com>
19355 * ComboBox.cs: fixes for LargeChange and Maximum to get the
19356 scroll range correct. Fixes #79994.
19358 2006-11-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
19360 * MdiWindowManager.cs: Update main form's text when
19361 a form is closed. (fixes #80038)
19363 2006-11-30 Everaldo Canuto <everaldo@simios.org>
19366 - Fix an regression in ButtonSize.
19367 - Get ImeMode default value change to "Disable".
19368 - Get ShowTooltips default value change to true, default value is
19369 "false" but after make a test in .NET we get "true" result as default.
19371 2006-11-29 Jonathan Pobst <monkey@jpobst.com>
19373 * ToolStripDropDown.cs: Fix for SupportsTransparency change.
19375 2006-11-29 Chris Toshok <toshok@ximian.com>
19377 * XplatUIWin32.cs (GetWindowTransparency): check return value of
19378 GetLayeredWindowAttributes. if it's 0, return 1.0, as
19379 SetWindowTransparency hasn't been called.
19381 2006-11-29 Chris Toshok <toshok@ximian.com>
19383 * Form.cs (set_TransparencyKey): only call SetWindowTransparency
19385 (set_AllowTransparency): reorder things a little so that the
19386 WS_EX_LAYERED style is removed properly.
19388 2006-11-29 Chris Toshok <toshok@ximian.com>
19390 [ totally cosmetic eye-candy feature, fixes bug #80089 ]
19392 * Form.cs: only call the XplatUI transparency method (get/set) if
19393 SupportsTransparency says it's supported. Otherwise fallback to
19394 doing nothing (in the set case) or returning the instance field we
19395 cache (in the get case).
19397 * XplatUIStructs.cs: add TransparencySupport flag enum.
19399 * XplatUIDriver.cs: add abstract GetWindowTransparency, and track
19400 change to SupportsTransparency.
19402 * XplatUIOSX.cs: stub out GetWindowTransparency, and return
19403 TransparencySupport.None from SupportsTransparency.
19405 * XplatUIX11.cs: Stub out GetWindowTransparency, and return
19406 TransparencySupport.Set from SupportsTransparency.
19408 * XplatUIWin32.cs: implement GetWindowTransparency calling
19409 GetLayeredWindowAttributes, and implement SupportsTransparency by
19410 checking whether or not both
19411 GetWindowTransparency/SetWindowTransparency are available
19412 entrypoints. We need to do this since SetWindowTransparency is
19413 available as of win2k, but GetWindowTransparency requires winxp.
19416 * XplatUI.cs: Add GetWindowTransparency, and change
19417 SupportsTransparency to allow for either/both Get/Set.
19419 2006-11-29 Chris Toshok <toshok@ximian.com>
19421 * DataGrid.cs: keep from going into an infinite loop redrawing a
19422 datagrid that has no datasource. Fixes bug #80033.
19424 2006-11-29 Chris Toshok <toshok@ximian.com>
19426 * MenuItem.cs: fix the NRE when we assign text (and therefore call
19427 Invalidate) before the mainmenu has been assigned to a control.
19429 2006-11-29 Chris Toshok <toshok@ximian.com>
19431 * DataGrid.cs: detect when we should be double the double click
19432 row/column autosize stuff, although that codepath has yet to be
19433 written. part of the work for bug #79891.
19435 2006-11-29 Chris Toshok <toshok@ximian.com>
19437 * Binding.cs (SetControl): fix unit test.
19439 2006-11-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
19441 * PageSetupDialog.cs: Validate the margins and set them in
19443 * NumericTextBox.cs: New class to mimic the behavior of the
19444 textboxes used in the printing dialogs.
19446 2006-11-29 Andreia Gaita <avidigal@novell.com>
19448 * Form.cs: Revert previous change (remove call UpdateBounds
19449 from form constructor), because it messes with the handle creation
19450 order, and that one needs lots and lots of love.
19451 * PrintPreviewDialog.cs: Revert change to CreateHandle (add check
19452 for valid printer and throw InvalidPrinterException if document
19453 is set but printer not valid), adding a MonoTODO. Once
19454 handle creation is done properly, we can put this back in.
19456 2006-11-28 Everaldo Canuto <everaldo@simios.org>
19458 * MenuItem.cs: Create a invalidate method for menu item, to be
19459 calling from set text, it make text changes to imadiate update
19460 on screen. Fixes #80013.
19462 2006-11-28 Everaldo Canuto <everaldo@simios.org>
19464 * ToolBar.cs: Fixes and simplify toolbar button layout, it
19465 fixes bug #80070 and some other problem on toolbar buttons
19468 2006-11-28 Everaldo Canuto <everaldo@simios.org>
19470 * ThemeWin32Classic.cs: Paint toolbar toggle button background
19471 with dotted brush. Fixes #79564
19473 2006-11-28 Andreia Gaita <avidigal@novell.com>
19475 * Form.cs: Removed call to UpdateBounds on Form
19476 constructor, it was causing a call to CreateHandle
19477 before it was supposed to.
19478 * PrintControllerWithStatusDialog: Applied patch
19479 by Chris Toshok to hide controller when there are
19480 no printers available.
19481 PrintDialog.cs: initialize printer settings to
19482 null - correct DefaultValues test #5
19483 * PrintPreviewControl.cs: Move PrintController
19484 initialization to GeneratePreview
19485 * PrintPreviewDialog.cs:
19486 - Remove Preview generation from Document_set(). It is
19488 - Throw InvalidPrinterException on CreateHandle if
19489 a Document is set but there are no printers or
19490 printer is not valid.
19491 * ThemeWin32Classic: don't paint PrintPreviewControl
19492 if there is nothing to paint
19494 2006-11-28 Miguel de Icaza <miguel@novell.com>
19496 * Form.cs: Add another popular method.
19498 * TabPage.cs: ditto.
19500 2006-11-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
19502 * MenuItem.cs: Fixed a warning.
19503 * InternalWindowManager: Fixed a warning.
19505 2006-11-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
19508 - When cloning a menu also clone MdiList and clone the
19509 window menu items properly (as the forms and menuitems
19510 are kept in an internal hashtable, these need updating
19512 - Rewrote the window menu code, menu items are added in the
19513 order the forms were added to their parent, and they are
19514 updated every time the window menu is shown (before the
19515 list was only generated once, in the current order of the
19516 forms, and would never be updated). A checkmark is shown
19517 next to the item corresponding to the active mdi child.
19519 2006-11-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
19521 * XplatUIStructs.cs:
19522 - Added WM_NCMOUSEHOVER and WM_NCMOUSELEAVE.
19525 - Added TME_NONCLIENT to TMEFlags.
19526 - Handles WM_NCMOUSEMOVE in GetMessage to
19527 generate WM_NCMOUSEHOVER and WM_NCMOUSELEAVE messages.
19529 * MdiWindowManager:
19530 - Now merges mdi child menu to parent menu when maximized.
19531 - Recalculate NC areas of both mdi child and mdi parent.
19533 on window state and size changes.Fixes #79844 (3).
19534 - Handle WM_NCCALCSIZE to properly calculate borders.
19537 - Add/remove to the mdi containers list of mdi children
19538 in the order they are added.
19539 - Pass on WM_NCLBUTTONUP, WM_NCMOUSEMOVE and WM_NCMOUSELEAVE
19540 to the maximized mdi child.
19542 * InternalWindowManager.cs:
19543 - Only execute a click on the control buttons on the mouse up,
19544 not on the mouse down. Show the state of the button
19545 (was only showing Normal state, never Pressed state). The
19546 pressed button now follows the mouse (if you click the Close
19547 button and move the mouse over the Maximize button, the
19548 Maximize button will be shown as pressed). Since Win32 does
19549 not generate WM_NCLBUTTONUP if you release the button outside
19550 of the nc area, we need to handle WM_NCMOUSELEAVE and treat
19553 * ThemeWin32Classic.cs:
19554 - Draw a missing border around mdi child forms. Fixes #79844 (2).
19557 - Added a list of forms which contains the order the forms are
19558 added to the mdi parent.
19559 - Handle WM_NCPAINT to properly draw a 3D border. Fixes #79844 (2).
19560 - Handle WM_NCCALCSIZE to properly calculate the 3D border.
19561 - If the active form changes set the scrollbars to the top
19562 of the Z order, otherwise the form could hide them.
19563 - Scrollbars are now sized according to ClientSize, not
19564 to Size, and they take into account the other scrollbar
19565 to determine maximum.
19567 2006-11-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
19570 * XplatUIDriver.cs:
19574 - Added RequestAdditionalWM_NCMessages for windows to
19575 opt in for WM_NCMOUSELEAVE and WM_NCMOUSEHOVER.
19576 Currently only implemented in XplatUIWin32.
19578 2006-11-27 Chris Toshok <toshok@ximian.com>
19580 * Hwnd.cs: only add the hwnd to the windows hash in
19581 set_WholeWindow and set_ClientWindow if whole_window/client_window
19582 are not IntPtr.Zero. also, remove the unused SetObjectWindow.
19584 2006-11-27 Mike Kestner <mkestner@novell.com>
19586 * ComboBox.cs: remove redundant OnDropDown call. It is called
19587 from the ComboListBox.ShowWindow code. Fixes #79969.
19589 2006-11-27 Chris Toshok <toshok@ximian.com>
19591 * Hwnd.cs: remove the setters for ExposePending and
19592 NCExposePending - noone uses them.
19594 2006-11-27 Jackson Harper <jackson@ximian.com>
19596 * TextControl.cs: new param for ReplaceSelection which determines
19597 whether we select the new selection, or set the cursor to the end
19598 of the new selection.
19599 * TextBoxBase.cs: Use new param for ReplaceSelection. When
19600 pasting, select the new text.
19601 * RichTextBox.cs: Use new param for ReplaceSelection.
19603 2006-11-27 Jackson Harper <jackson@ximian.com>
19605 * TextBoxBase.cs: Set the selection to the caret after the caret
19606 is moved, otherwise they get out of sync.
19608 2006-11-26 Everaldo Canuto <everaldo@simios.org>
19610 * ToolBar.cs: Fixe size of ToolBar when AutoSize is false,
19613 2006-11-26 Everaldo Canuto <everaldo@simios.org>
19615 * ThemeWin32Classic.cs:
19616 - Fix toolbar drop down arrow position.
19617 - Fix drop down appearance when ToolBar.Appearance is normal,
19620 2006-11-26 Gert Driesen <drieseng@users.sourceforge.net>
19622 * ProgressBar.cs: GetStyle fixes for 2.0 profile.
19623 * Control.cs: Same.
19624 * UpDownBase.cs: Same.
19625 * ButtonBase.cs: Same.
19626 * ScrollBar.cs: Same.
19627 * TrackBar.cs: Same.
19628 * PictureBox.cs: Same.
19629 * UserControl.cs: Same.
19631 * ListControl.cs: Same.
19632 * TextBoxBase.cs: Same.
19633 * ListView.cs: Same.
19634 * RichTextBox.cs: Same.
19635 * TreeView.cs: Same.
19637 2006-11-25 Jordi Mas i Hernandez <jordimash@gmail.com>
19640 - Text label for where
19641 - Text label comment was not shown
19643 2006-11-23 Everaldo Canuto <everaldo@simios.org>
19645 * ThemeWin32Classic.cs: Fix toolbar drop down arrow size.
19647 2006-11-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
19649 * InternalWindowManager.cs:
19650 - Handle WM_PARENTNOTIFY to activate the form
19651 if any child control is clicked.
19652 - The form is only sizable if not minimized.
19654 * MdiWindowManager.cs:
19655 - Save the IconicBounds if the form is moved.
19656 - Rework SetWindowState, now the window bounds
19657 are stored only if the old window state is Normal.
19660 - In SetWindowStates store the old window state if
19661 the window is maximized and restore window state if
19662 the window looses focus.
19663 - Don't handle any scrollbar value changes if
19664 initializing the scroll bars. Fixes #79771.
19665 - Reworked ArrangeIconicWindows. Current algorithm
19666 tests bounds agains all other minimized windows, if
19667 any intersections create new bounds (going left to
19668 right, bottom to top) and then test again. When
19669 successful the bounds are saved and never computed
19670 again. Fixes #79774.
19672 2006-11-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
19674 * InternalWindowManager.cs: Added HandleTitleBarUp.
19676 2006-11-23 Gert Driesen <drieseng@users.sourceforge.net>
19678 * NumericUpDown.cs: In .NET 1.1, user entered text is still
19679 hexadecimal in ParseUserEdit.
19682 2006-11-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
19684 * MdiWindowManager.cs:
19685 - Handle a click on the form's icon to show the
19686 system menu (when maximized). Fixes #79775.
19687 - Change the existing click handler for the form's
19688 icon when not maximized to show on MouseUp.
19691 * Form.cs: In OnResize only layout the mdi child's
19692 parent if it actually has a parent. Might not if
19693 the window is closing.
19696 2006-11-23 Gert Driesen <drieseng@users.sourceforge.net>
19698 * MdiClient.cs: Ignore active MDI client for text of parent, if
19699 child has no text set.
19701 2006-11-23 Gert Driesen <drieseng@users.sourceforge.net>
19703 * ToolBar.cs: Fixed ToString to match MS.
19705 2006-11-22 Andreia Gaita <avidigal@novell.com>
19708 - Fix DecimalPlaces, Hexadecimal and ThousandsSeparator to
19709 update inner values on set. Fixes #79966.
19710 - Override OnLostFocus to update value on NET 2. Fixes #79950.
19711 - Fix hexadecimal parsing.
19713 * UpDownBase: Override OnGotFocus and OnLostFocus to notify
19714 parent. Fixes #79957
19716 2006-11-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
19718 * Control.cs: After calling SetWindowsPos in SetBoundsCore
19719 the actual size has to be queried, since if height /
19720 width is negative Win32 changes it to 0.
19721 Fixes #79999 on Windows.
19723 * XplatUIX11.cs: Set height / width to 0 if negative
19724 in SetWindowPos. Fixes #79999 on Linux.
19726 2006-11-22 Everaldo Canuto <everaldo@simios.org>
19728 * ThemeWin32Classic.cs: Fix text redenring when button is
19731 2006-11-22 Everaldo Canuto <everaldo@simios.org>
19733 * MenuAPI.cs: Fixes behavior when menu is opened by kerboard
19734 and later navigate by mouse. Fixes #79528.
19736 2006-11-21 Everaldo Canuto <everaldo@simios.org>
19738 * ToolBar.cs: Set default value for TabStop to false in
19739 constructor, it fixes remaining behavior of bug #79863.
19741 2006-11-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
19743 * MdiWindowManager.cs:
19744 * InternalWindowManager.cs:
19745 - Moved a few methods specific to Mdi from
19746 InternalWindowManager to MdiWindowManager.
19749 2006-11-21 Chris Toshok <toshok@ximian.com>
19751 * XplatUIOSX.cs: stub out InvalidateNC.
19753 * XplatUIWin32.cs: implement InvalidateNC using the call I found
19754 at http://www.dotnet247.com/247reference/msgs/58/292037.aspx.
19756 * XplatUIX11.cs: rename InvalidateWholeWindow to InvalidateNC.
19758 * XplatUIDriver.cs: add InvalidateNC abstract method.
19760 * XplatUI.cs: add InvalidateNC.
19762 2006-11-21 Everaldo Canuto <everaldo@simios.org>
19764 * ToolBar.cs: Invalidate complete button area when pressed status
19766 * ToolButton.cs: Fix InvalidateBorder for DropDown buttons.
19767 * ThemeWin32Classic.cs: Increase vertical and horizontal position
19768 by 1 when button is pressed.
19770 2006-11-20 Everaldo Canuto <everaldo@simios.org>
19772 * ToolButton.cs: Invalidate middle of DropDown button when
19773 ToolBar theres DropDownArrows.
19774 * ThemeWin32Classic.cs: Change position of DropDown arrow and
19775 fix DropDown drawing operations.
19777 2006-11-20 Chris Toshok <toshok@ximian.com>
19779 * NativeWindow.cs: fix the formatting of functions ('{' on the
19780 following line), and enable the thread exception dialog.
19782 * Application.cs: remove the duplicate exception catching from
19785 2006-11-20 Everaldo Canuto <everaldo@simios.org>
19787 * Toolbar.cs: Triggers button click event when click on icon
19788 of dropdown ToolBarButton. Fixes #79912.
19790 2006-11-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
19793 * ThemeWin32Classic.cs:
19794 - Added a property WindowBorderFont to enable themeing
19795 of mdi child windows' Text.
19797 2006-11-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
19799 * InternalWindowManager.cs:
19802 * MdiWindowManager.cs:
19803 - If mdi child is maximized, set mdi parent's
19804 text to "Parent - [Child]". Fixes #79770.
19805 - If there is any maximized mdi child windows, only the active
19806 window (and any new windows) is maximized, the rest are normal.
19807 - On a WindowState change only save mdi child's window bounds
19808 if the old window state was normal. Fixes #79774.
19809 - The scroll bars are now calculated on hopefully all
19810 necessary events. Fixed #79771 / #79844->6 / #79906.
19811 - MdiClient.SizeScrollBars() now takes into account docked
19812 controls in the parent when calculating available space.
19813 - InternalWindowManager now always repaints the entire title
19814 area. Fixes #79844->1/4/5.
19815 - Added RequestNCRecalc on mdi child windowstate changes.
19818 2006-11-20 Mike Kestner <mkestner@novell.com>
19820 * ComboBox.cs: setup LargeChange on the scrollbar. Invoke FireMouseUp
19821 in the MouseUp handler of the listbox and move the return handling
19822 code to FireMouseUp to avoid scrolling on ups. Fixes #79952.
19824 2006-11-20 Everaldo Canuto <everaldo@simios.org>
19826 * Toolbar.cs: Ignore right mouse clicks in toolbar. Fixes #79855.
19828 2006-11-17 Alexander Olk <alex.olk@googlemail.com>
19830 * MimeIcon.cs: Seems that DllImports that were fine in 1.2 are not
19831 working in 1.2.x anymore. So, updated.
19833 2006-11-19 Gert Driesen <drieseng@users.sourceforge.net>
19835 * NumericUpDown.cs: Use NegativeSign, NumberDecimalSeparator and
19836 NumberGroupSeparator of current culture instead of assuming en-US.
19839 2006-11-17 Mike Kestner <mkestner@novell.com>
19841 * Control.cs: Add the concept of implicit bounds setting so that
19842 dock/undock round trips preserve explicitly set size/locations.
19845 2006-11-17 Alexander Olk <alex.olk@googlemail.com>
19847 * FileDialog.cs: Trim all filters, otherwise DirInfo.GetFiles
19848 can't handle those filters. (Fixes bug #79961)
19850 2006-11-17 Chris Toshok <toshok@ximian.com>
19852 [ fixes the exit/crashes associated with #79835. it's clearly
19853 suboptimal though, we need to figure out a better way to solve
19856 * PrintPreviewControl.cs: deal with the new invalid printer
19859 * PageSetupDialog.cs: if the printer is invalid, pop up a dialog
19860 and return false (so CommonDialog.ShowDialog doesn't actually show
19863 * PrintDialog.cs: enable/disable the Ok button depending on
19864 whether or not the printer is valid.
19866 * CommonDialog.cs (ShowDialog): only actually show the form if
19867 RunDialog returns true.
19869 2006-11-17 Jackson Harper <jackson@ximian.com>
19871 * TextControl.cs: When soft splitting a line, mark it as a soft
19872 split line. Also carry over the current line break to the next
19875 2006-11-17 Chris Toshok <toshok@ximian.com>
19877 * XplatUIX11.cs: when scrolling a window with an invalid area, we
19878 only want to shift the part of the invalid area that overlaps the
19879 area we're scrolling. we also don't want to clear the invalid
19880 area unless the invalid area was entirely contained within the
19883 2006-11-16 Chris Toshok <toshok@ximian.com>
19885 * XplatUIX11.cs: remove the handling of the TimerEvent stuff, and
19886 also make sure to free the memory returned by XGetWindowProperty
19889 * X11Structs.cs: remove the TimerEvent stuff, it's unused.
19891 2006-11-16 Chris Toshok <toshok@ximian.com>
19893 * XplatUI.cs: add a new super secret way to get at the totally
19894 unsupported X11 backend.
19896 2006-11-16 Gert Driesen <drieseng@users.sourceforge.net>
19898 * NumericUpDown.cs: Allow lowercase letters when in hex-mode.
19900 2006-11-16 Jackson Harper <jackson@ximian.com>
19902 * TreeView.cs: Allow more explicit setting of top node position
19903 for scrollbars. Slower algo, but more accurate.
19904 - CollapseAll should maintain the current top node.
19905 * TextBoxBase.cs: When positioning the caret, use the line, pos
19906 method, since the x, y method does not grab the correct tag, and
19907 the caret height never gets set correctly. (Maybe I should just do
19908 away with the caret having its own height, and always use the
19909 carets current tag for height).
19911 2006-11-16 Jonathan Pobst <monkey@jpobst.com
19913 [Fixes 79778, 79923]
19915 * XplatUIWin32.cs: Don't allow a parent to be set to IntPtr.Zero.
19916 Parent to the FosterParent instead.
19918 2006-11-16 Jackson Harper <jackson@ximian.com>
19920 * TreeView.cs: Need to recalc the topnode when we expand or
19921 collapse. The scrolling methods can't handle this on their own,
19922 since they use differences between the last scroll position, and
19923 those difference get completely messed up since we are expanding
19924 nodes. This problem should probably be fixed in the scrolling
19925 methods, so they can figure out exactly where they are, but this
19926 will slow things down a little.
19927 * ThemeWin32Classic.cs: Special case for groupboxes with empty
19928 strings, makes nunit-gui look a lot nicer.
19930 2006-11-16 Chris Toshok <toshok@ximian.com>
19932 * XplatUIX11.cs: nasty, nasty, nasty changes required because of
19933 the broken multithreaded event handling we have in here. File
19934 this entry under "Why we should move to the new X11 backend".
19936 Any thread can make it into UpdateMessageQueue, which gets events
19937 from the X socket - some of which could belong to hwnds being
19938 managed by a different thread. We can also have multiple threads
19939 in UpdateMessageQueue at the same time, with each one reading from
19940 the X socket. This leads to many problems, with the following
19943 We can't use hwnd.Queue.Enqueue anywhere in here and must use
19946 The MotionNotify compression we do can't work across threads
19947 (without locking the entire queue, perhaps) since we call
19948 hwnd.Queue.Peek, so we just punt and don't compress motion events
19949 unless the owning thread is the one which got the X event.
19951 ConfigureNotify is another fun one, since it modifies the hwnd's
19952 bounds and then enqueues the event. We add a lock to Hwnd which
19953 is held when setting configure_pending to true (and enqueuing the
19956 There is a race wrt the wake socket. we need to make sure that
19957 only 1 thread is waiting on that socket, or else a thread could
19958 sleep waiting for data that never comes. It's difficult (but not
19959 impossible) to make happen, because it seems to require something
19960 like the following:
19962 1. Thread 1 polls on wake_receive
19964 2. poll returns saying there's data to be read on
19967 3. Thread 2 polls on wake_receive and immediately returns
19968 saying there's data to be read.
19970 4. Thread 2 reads the wakeup byte from wake_receive
19972 5. Thread 1 attempts to read the wakeup byte from
19975 6. Thread 2 exits (due to a form closing, perhaps).
19977 7. Thread 1 blocks forever.
19981 Fixing the Expose handling isn't done yet, and the races inherent
19982 in that piece of code are responsible for the drawing mistakes you
19983 see when generating expose events in a MT app (like NPlot). This
19984 one is the likely to be the hardest to bandaid, and it doesn't
19985 appear to cause anything but drawing problems. The other issues
19986 caused apps to exit or hang.
19988 * XEventQueue.cs: output some spew when Dequeue/Enqueue/Peek are
19989 called from a different thread than the one that should be calling
19992 * Hwnd.cs: add some locks to be used by the XplatUIX11 code.
19994 2006-11-15 Chris Toshok <toshok@ximian.com>
19996 * Application.cs: null out the context's MainForm when we exit
19997 RunLoop. Fixes a newly checked in unit test as well as the last
19998 ODE from bug #79933.
20000 2006-11-15 Chris Toshok <toshok@ximian.com>
20002 * Form.cs (set_Owner): allow a null value so we can clear the
20004 (Dispose): set all our owned_form's Owner properties to null, and
20005 clear the owned_forms collection.
20006 (WM_CLOSE): clean up this a little bit.. still not right though.
20008 * ApplicationContext.cs: OnMainFormClosed should only call
20009 ExitThreadCore if the main form isn't recreating. Fixes unit
20012 2006-11-15 Jonathan Pobst <monkey@jpobst.com>
20016 * ComboBox.cs: Set the Hwnd.no_activate flag for the ComboListBox.
20018 2006-11-15 Jonathan Pobst <monkey@jpobst.com>
20022 * Hwnd.cs: Add a flag to show a window, but not activate it, to
20023 keep popup window types from stealing focus from the main form
20026 * XPlatUIWin32.cs: Use SW_SHOWNOACTIVATE if above field is true.
20028 * MenuAPI.cs: Set above flag to true.
20030 2006-11-15 Chris Toshok <toshok@ximian.com>
20032 * XplatUIX11.cs: mimic win32 behavior on BUTTONUP events, where
20033 the button being released is not in wParam.
20035 2006-11-15 Jonathan Pobst <monkey@jpobst.com>
20037 * Form.cs: Add the released button to MouseEventArgs.Button
20038 for the OnMouseUp call to the MenuTracker. Fixes menu clicking
20041 2006-11-15 Chris Toshok <toshok@ximian.com>
20043 * XplatUIX11.cs: add (untested) a _NET_WM_NAME implementation of
20044 GetText(). untested because it's unused in our implementation.
20045 Control.Text always caches the text, even if
20046 ControlStyles.CacheText is not set.
20050 2006-11-15 Chris Toshok <toshok@ximian.com>
20054 * Form.cs: in Close() don't do anything after we send the WM_CLOSE
20055 message. no hiding, no disposing.
20057 in the WM_CLOSE handler, hide the form if it's modal.
20059 2006-11-15 Chris Toshok <toshok@ximian.com>
20061 * XplatUIX11.cs: use AddExpose instead of sending a message.
20062 fixes textbox border drawing.
20064 2006-11-15 Chris Toshok <toshok@ximian.com>
20066 * PropertyGridView.cs: keep from crashing on mouse move/down when
20067 the property grid is empty.
20069 2006-11-14 Jackson Harper <jackson@ximian.com>
20071 * TextControl.cs: Make PageUp and PageDown more like the MS
20073 * TextBoxBase.cs: When we set the text property position the
20074 cursor at the beginning of the document.
20076 2006-11-14 Rolf Bjarne Kvinge <RKvinge@novell.com>
20078 * Form.cs: if a mdi child's WindowState has changed
20079 before it's creation, it would display wrong control
20082 2006-11-14 Alexander Olk <alex.olk@googlemail.com>
20084 * TreeView.cs: De-uglify TreeView checkbox checkmarks.
20087 2006-11-14 Rolf Bjarne Kvinge <RKvinge@novell.com>
20089 * XplatUIX11.cs: send a WM_NCPAINT on WM_NCCALCSIZE so that
20090 the window gets to paint its borders even if the window is
20093 * Form.cs: on a WM_NCPAINT invalidate the entire menu,
20094 otherwise the old control buttons would still be painted
20095 if the window gets bigger.
20097 * PaintEventArgs.cs: add an internal method so that the clip
20098 rectangle can be changed.
20100 2006-11-13 Chris Toshok <toshok@ximian.com>
20102 [ fixes bug #79745 ]
20104 * NotifyIcon.cs: lots of cleanup.
20106 * X11Structs.cs: add an enum for XEMBED messages.
20108 * XplatUIX11.cs: reindent one of the giant switch statements, it
20109 was taking up an additional tab stop, and this file is already way
20110 too wide for my laptop's screen.
20112 Also, add handling for the XEmbed EMBEDDED_NOTIFY message. When
20113 we get it, resize the hwnd to the WMNormalHints max_width/height.
20115 2006-11-13 Jackson Harper <jackson@ximian.com>
20117 * TextBoxBase.cs: Compute the value changes for the mouse wheel
20120 2006-11-13 Chris Toshok <toshok@ximian.com>
20122 * XplatUIX11.cs, XplatUIStructs.cs: kind of a gross fix for
20123 #79898. force a reference to the Region to stick around so the
20124 unmanaged object isn't collected (rendering our handle in the MSG
20127 2006-11-13 Chris Toshok <toshok@ximian.com>
20129 * XplatUIX11.cs: fix #79917 for window managers which support
20131 using XStoreName on the raw utf8, and we need to convert to
20132 COMPOUND_TEXT if it's non-latin1.
20134 2006-11-13 Chris Toshok <toshok@ximian.com>
20136 * Form.cs (set_DialogResult): we need to set closing to false if
20137 we're setting our result to None. fixes bug #79908.
20139 2006-11-13 Jackson Harper <jackson@ximian.com>
20141 * TextControl.cs: When formatting text, compute the adjusted tag
20142 lengths correctly, using FindTag for the end tag instead of trying
20143 to figure it out outselves.
20144 * TreeNode.cs: Use ActualItemHeight, which is the actual height of
20145 the item, ItemHeight doesn't work, because trees with large
20146 imagelists use those for their height
20147 * TreeView.cs: ActualItemHeight factors in the image height
20148 - compute left edge of checkboxes correctly
20149 - when expanding/collapsing move the bottom down one pixel, so we
20150 aren't moving part of the node
20152 2006-11-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
20154 * XplatUIX11.cs: The PaintEventArgs is also added to the drawing
20155 stack in PaintEventStart so that it won't get disposed by the gc
20156 before reaching PaintEventEnd.
20158 2006-11-13 Jackson Harper <jackson@ximian.com>
20160 * TextBoxBase.cs: Don't select the word if we are on a line with
20162 - We don't need to position the caret on mouse up, since the mouse
20163 move handler should be doing this
20164 - When double clicking a blank line, the caret is advanced to the
20167 2006-11-13 Gert Driesen <drieseng@users.sourceforge.net>
20169 * TreeNodeCollection.cs: Avoid duplicating indexer code.
20171 2006-11-12 Gert Driesen <drieseng@users.sourceforge.net>
20173 * ColorDialog.cs: Reset size of dialog between calls to ShowDialog.
20174 Fixes part of bug #79910.
20176 2006-11-11 Alexander Olk <alex.olk@googlemail.com>
20178 * ColorDialog.cs: Fix a NRE when adding a color to custom colors
20179 (bug #79903). Some minor string updates to match ms.
20181 2006-11-10 Alexander Olk <alex.olk@googlemail.com>
20183 * FileDialog.cs: Don't add an extension if the filename
20184 already ends with that extension.
20186 2006-11-10 Jackson Harper <jackson@ximian.com>
20188 * TreeView.cs: Use the currently highlighted node for the
20189 BeforeSelect event.
20190 * TextBoxBase.cs: There is no need to expand selection on
20192 - CanUndo means 'is there any undo operations', not 'is undo
20193 allowed on this textcontrol. Fixed ClearUndo unit test.
20195 2006-11-10 Andreia Gaita <shana.ufie@gmail.com>
20197 * Button.cs: only perform click when button is Selectable (so as
20198 not to activate default buttons when they're disabled)
20200 * Control.cs: Rewrite of the SelectNextControl and related
20201 methods. HandleClick now selects next control if the current one
20204 * Form.cs: OnActivated selects next active control only if Load
20205 has already occurred. If Load hasn't run, there's no point in
20206 selecting here, Load might change the state of controls.
20208 * FocusTest.cs: Tests marked as working again for these fixes
20210 2006-11-10 Chris Toshok <toshok@ximian.com>
20212 * XplatUIX11.cs: a couple of fixes.
20214 - use XInternAtoms with almost all the atoms we need to register,
20215 instead of many, many calls to XInternAtom. should help a bit on
20216 startup time, at the expense of making the code look a little
20219 - fall back to setting TransientFor on TOOLWINDOW's if their hwnd
20220 isn't reparented (which seems to be a clue that we're running fon
20221 compiz) and they have an Owner form. This fixes the tool windows
20222 in paint.net when running under compiz.
20224 - when setting the opacity of a window, support both the case
20225 where the window has been reparented and also when it hasn't been.
20226 Since compiz/beryl doesn't seem to reparent windows, and these are
20227 the only window managers which support translucency, I'm not sure
20228 why we need the hwnd.reparented case at all.. but leave it in.
20229 now we get translucent windows in paint.net under compiz/beryl.
20231 2006-11-10 Alexander Olk <alex.olk@googlemail.com>
20233 * FileDialog.cs: Always return the value for FilterIndex that
20234 was set. Internally convert it to values that make sense.
20236 2006-11-10 Everaldo Canuto <everaldo@simios.org>
20238 * ThemeWin32Classic.cs: Fix drowp down arrow borders.
20240 2006-11-10 Everaldo Canuto <everaldo@simios.org>
20242 * Toolbar.cs: Change default value of DropDownArrows to true, the
20243 signature still using false to make it compatible with MS but the
20244 initial value is true. Fixes #79855.
20246 2006-11-10 Alexander Olk <alex.olk@googlemail.com>
20248 * MimeIcon.cs: Don't throw an exception on windows. Mime stuff is
20249 only available on Linux.
20251 2006-11-09 Everaldo Canuto <everaldo@simios.org>
20253 * Toolbar.cs, ToolBarButton.cs: Fix wrong separator size and
20254 reduce number of calls to redraw method during toolbar creation.
20256 2006-11-09 Mike Kestner <mkestner@novell.com>
20258 * ListView.cs : raise SelectedIndexChanged when an item is selected
20259 programmatically via the Item.Selected property. Gert's nice
20260 ListViewSelectedIndexChanged test fixture now runs clean.
20262 2006-11-09 Mike Kestner <mkestner@novell.com>
20264 * ListView.cs : raise SelectedIndexChanged when a selected item is
20265 removed from the item collection using Remove or RemoveAt.
20267 2006-11-09 Mike Kestner <mkestner@novell.com>
20269 * ListView.cs : raise SelectedIndexChanged once per selected item
20270 for compat with MS. Fixes #79849+.
20272 2006-11-09 Chris Toshok <toshok@ximian.com>
20274 * TabControl.cs: initialize row_count to 0, and set it to 1 when
20275 we need to (if we have any tab pages). Fixes unit test.
20277 2006-11-09 Chris Toshok <toshok@ximian.com>
20279 * Label.cs (CalcPreferredWidth): if Text == "", our preferred
20280 width is 0, not 3. Fixes a unit test.
20282 2006-11-09 Mike Kestner <mkestner@novell.com>
20284 * ListView.cs : use Implicit scrollbars so that focus isn't
20285 stolen from the listview when they are clicked. Fixes #79850.
20287 2006-11-09 Chris Toshok <toshok@ximian.com>
20289 * PropertyGridView.cs (OnPaint): only call DrawGridItems if we
20290 have a root item. Fixes #79879.
20292 2006-11-09 Alexander Olk <alex.olk@googlemail.com>
20296 - An ArgumentException is now thrown if a wrong filter
20297 is applied (matches ms). The previous filter doesn't change
20298 anymore if an exception is thrown.
20299 - Changing the FileName property also affects FileNames
20300 * ColorDialog.cs: The length of the CustomColors array is always
20301 16. It doesn't matter if we use a smaller array or null to update
20302 or change the custom colors property.
20303 * FolderBrowserDialog.cs: Throw an InvalidEnumArgumentException if
20304 for RootFolder if we get a undefined value.
20306 2006-11-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
20308 * StatusBarPanel.cs:
20309 - Width is set to MinWidth if Width is smaller than
20310 MinWidth. Fixes #79842.
20311 - MinWidth now always overrides Width (MSDN says MinWidth
20312 is set to Width when AutoSize = None, but they do not
20314 - Style has now the the correct default value.
20316 2006-11-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
20319 - The control is completely invalidated on
20320 Got/LostFocus to draw the focus rectangle correctly.
20321 - When AutoSize then height is always 45 (width for
20322 vertical controls).
20324 * ThemeWin32Classic.cs: The TrackBar thumb is now centered
20325 on the mouse when moved and it doesn't move when grabbed
20326 until the mouse moves as well. Also fixed some wrong
20327 calculations when clicking on the thumb (control thought
20328 click was outside of thumb and didn't grab it).
20329 Fixes some of the issues in #79718.
20331 2006-11-08 Everaldo Canuto <everaldo@simios.org>
20333 * Toolbar.cs: Prevent disabled button to highlight. Fixes #79868.
20335 2006-11-08 Chris Toshok <toshok@ximian.com>
20337 * PropertyGridView.cs: only call ToggleValue if the item is not
20340 2006-11-08 Jackson Harper <jackson@ximian.com>
20342 * TextBoxBase.cs: The RichTextBox and textbox have very different
20343 word selection methods. Implement the textbox's simple word
20344 selection here, and let the RichTextBox override and provide it's
20346 - Don't do extra selection on mouseup
20347 * RichTextBox.cs: Use the documents word selection algorithm, I
20348 think ideally, this function will be pulled into the
20349 RichTextBox.cs code someday.
20351 2006-11-08 Chris Toshok <toshok@ximian.com>
20353 * RootGridEntry.cs: new class to represent GridItemType.Root.
20355 * CategoryGridEntry.cs: reformat, and add boilerplate.
20357 * GridEntry.cs: remove the UIParent stuff - turns out .Parent
20358 returns the UI parent anyway, and we need special handling to
20359 implement the GetTarget method in the face of it. Also, implement
20362 * PropertyGrid.cs, PropertyGridView.cs: a number of fixes. create
20363 a root grid item, and use that instead of PropertyGrid.grid_items.
20364 Also, make use of TypeConverters (and add limitted support for
20365 ICustomTypeDescriptors) when initially populating the grid.
20366 Arrays now show up more or less properly.
20368 2006-11-08 Chris Toshok <toshok@ximian.com>
20370 * Application.cs: set the modal dialog to non modal after we close
20371 it. Fixes bug #79866.
20373 2006-11-08 Jackson Harper <jackson@ximian.com>
20375 * TextControl.cs: When combining lines carry over the line end
20376 style from the end line.
20377 - Invalidate the selected area when setting it, if it is visible.
20378 * TextBoxBase.cs: Only rich text box can do full line selects.
20379 - Make sure to set the cursor position when there is a click,
20380 otherwise two clicks in separate areas could cause a large chunk
20383 2006-11-07 Everaldo Canuto <everaldo@simios.org>
20385 * Toolbar.cs: Release flat button borders when Toolbar lost focus.
20388 2006-11-07 Everaldo Canuto <everaldo@simios.org>
20390 * Toolbar.cs: Prevent toolbar to open more than one tooltip at same
20391 time. Remove tooltips when ToolButton click events. Fixes #79856.
20393 2006-11-07 Everaldo Canuto <everaldo@simios.org>
20395 * MenuAPI.cs: Ignore right click for menu actions and fixes
20396 menu border when clicked. Fixes #79846.
20398 2006-11-07 Everaldo Canuto <everaldo@simios.org>
20400 * XplatUIX11.cs, XplatUIX11.cs: Fix MouseRelease to only release
20401 MouseState after create wParam for message, this fixes mouse button
20402 equal none in mouse up events.
20404 2006-11-07 Andreia Gaita <shana.ufie@gmail.com>
20406 * Control.cs : Focus() now calls Select to set the Container's
20407 Active Control and to give it focus. To avoid infinite recursion
20408 (because ActiveControl also calls Focus at one point), a check
20409 is made in Focus with the help of a new internal variable
20412 2006-11-07 Mike Kestner <mkestner@novell.com>
20414 * ListView.cs : raise OnSelectedIndexChanged in CreateHandle
20415 if there's a selection. Fixes #79849.
20417 2006-11-07 Gert Driesen <drieseng@users.sourceforge.net>
20419 * PropertyGrid.cs: Avoid fixed height of help description label.
20420 Fixes part of bug #79829.
20422 2006-11-07 Chris Toshok <toshok@ximian.com>
20424 * XplatUIX11.cs: fix #79790 again, by using the
20425 _NET_WM_STATE_SKIP_TASKBAR atom to implement Form.ShowInTaskbar.
20427 2006-11-07 Everaldo Canuto <everaldo@simios.org>
20429 * ToolBar.cs: Fix left click checking.
20431 2006-11-07 Chris Toshok <toshok@ximian.com>
20433 * ProgressBar.cs: fix a typo in ToString(). fixes a unit test.
20435 2006-11-07 Chris Toshok <toshok@ximian.com>
20437 * RelatedPropertyManager.cs: set property_name in our ctor. fixes
20438 PropertyManager unit tests.
20440 * PropertyManager.cs: make property_name internal.
20442 2006-11-07 Chris Toshok <toshok@ximian.com>
20444 * ButtonBase.cs: initialize base.ime_mode to ImeMode.Disable to
20445 pass a unit test. Also, don't set image_index to anything in
20446 response to setting the ImageList property.
20448 2006-11-07 Everaldo Canuto <everaldo@simios.org>
20450 * ToolBar.cs: Ignore click events when mouse button is not a
20451 left button, only accepts other button for dropdown menus.
20454 2006-11-07 Chris Toshok <toshok@ximian.com>
20456 * DataGrid.cs: make the back and parent row buttons a little less
20459 2006-11-07 Jackson Harper <jackson@ximian.com>
20461 * TextBoxBase.cs: When converting to Text don't put line breaks in
20462 for soft line breaks.
20463 * TextControl.cs: There is an initial "fake" line in the document,
20464 this is now a soft break line, so that an extra line feed doesn't
20465 get added to the end of documents.
20467 2006-11-07 Chris Toshok <toshok@ximian.com>
20471 * CurrencyManager.cs: if the list is readonly, don't bother
20472 checking if IBindingList.AllowNew is true.
20474 * ThemeWin32Classic.cs (DataGridPaintParentRow): make this work
20475 for non-DataRowView datasources.. or rather, make it not crash.
20476 (DataGridPaintRelationRow): make sure we limit the row painting to
20477 the area not covered by the row header, and make our cell width at
20478 least large enough to cover the relation area. This allows grids
20479 that have relations but no rows to render correctly.
20480 (DataGridPaintRowContents): same type of changes here.
20481 (SetDataSource): move back to always calling
20482 CalcAreasAndInvalidate. this fixes a crash/drawing problem when
20483 navigating back through relations.
20484 (HitTest): handle the case where we have no cells but have
20485 relations. Right now we generate a hit in cell 0 of whatever the
20486 row is, not sure if this is strictly correct, but it works for our
20489 * DataGrid.cs (EndEdit, CancelEdit): if we have no columns, don't
20490 bother doing anything.
20492 2006-11-07 Jonathan Pobst <monkey@jpobst.com>
20494 * StatusStrip.cs, ToolStripStatusLabel.cs: By request, an
20495 early version of StatusStrip. Not responsible for eaten
20496 application or firstborn children.
20498 2006-11-06 Chris Toshok <toshok@ximian.com>
20500 * TabControl.cs: in OnGotFocusInternal/OnLostFocusInternal don't
20501 call GetTabRect with a -1 index. Fixes #79847.
20503 2006-11-06 Jackson Harper <jackson@ximian.com>
20505 * TreeNodeCollection.cs: Update scrollbars after clearing.
20507 2006-11-06 Chris Toshok <toshok@ximian.com>
20509 * NumericUpDown.cs: fix the ToString method for some unit test
20512 2006-11-06 Chris Toshok <toshok@ximian.com>
20515 - set the initial SelectedGridItem if we can.
20517 - Exclude non-mergable properties only if we're merging > 1
20518 object. Merging 1 object isn't really merging, obviously.
20520 - Handle PropertySort.NoSort just like Alphabetical, which is
20521 wrong of course, but at least gets things on the screen.
20523 * PropertyGridView.cs:
20524 - Add method "FindFirstItem" which finds the first property grid
20525 item, so we can select it by default.
20527 - make use of GridEntry.CanResetValue.
20529 - Don't call RedrawBelowItemOnExpansion here anymore, the
20530 individual GridEntry's will do that.
20532 - Remove the ITypeDescriptorContextImpl internal class.
20535 - this class needs to implement ITypeDescriptorContext, as it's
20536 what MS's PropertyDescriptorGridEntry does, which means we can
20537 remove the ITypeDescriptorContextImpl internal class from
20538 PropertyGrid.cs. This fixes the crashing portion of bug #79829.
20540 - keep a reference to our PropertyGridView, and move the call to
20541 RedrawBelowItemOnExpansion here from PGV. This means
20542 programmaticly setting Expanded actually does something visible.
20544 - add a CanResetValue() function which takes into account our
20545 possibly multiple "selected_objects" in the merged case. Shifting
20546 PropertyGridView to use this method fixes another unreported
20547 crasher found running the test for #79829.
20549 - when Top or Bounds is updated, make sure the PropertyGridTextBox
20550 is updated to reflect this.
20552 * CategoryGridEntry.cs: the ctor takes the PGV now.
20554 2006-11-06 Jackson Harper <jackson@ximian.com>
20556 * TextControl.cs: These are 1 based.
20557 * TextBoxBase.cs: When setting the selected text, don't change the
20558 selected text tags, this is done by ReplaceText, just position the
20559 cursor at the end of the new text.
20561 2006-11-06 Alexander Olk <alex.olk@googlemail.com>
20563 * ListView.cs: Allow label edit only when, when LabelEdit is
20566 2006-11-06 Jackson Harper <jackson@ximian.com>
20568 * TextControl.cs: If a suitable wrapping position isn't found,
20569 just wrap right in the middle of a word.
20571 2006-11-06 Alexander Olk <alex.olk@googlemail.com>
20573 * ListView.cs, ListViewItem.cs: Implement LabelEdit. Fixes
20576 2006-11-06 Jackson Harper <jackson@ximian.com>
20578 * TreeView.cs: Can't use the VisibleCount property when setting
20579 scrollbar heights, because this doesn't take into account whether
20580 or not the horz scrollbar just came visible.
20582 2006-11-05 Everaldo Canuto <everaldo@simios.org>
20584 * MenuAPI.cs: Deactivate menu on mouse up when menus it is already
20585 activated. Fixes #79369, #79832.
20587 2006-11-05 Alexander Olk <alex.olk@googlemail.com>
20589 * FileDialog.cs: *sigh* Because of recent runtime changes (r67043) I
20590 had to remove support for links that point to a directory. FileInfo
20591 returns no usefull information (means, the directory they point to)
20592 for such links. Replaced some empty string ("") with String.Empty.
20594 2006-11-04 Gert Driesen <drieseng@users.sourceforge.net>
20596 * TreeNodeCollection.cs: To match MS, in 1.0 profile throw
20597 NullReferenceException when attempting to remove node that is not in
20598 collection. Throw NullReferenceException when null is passed to
20599 Remove. Allow first element of the collection to be removed. Fixes
20600 bug #79831. In GetEnumerator ().Current return null if positioned
20601 before the first element of the collection. In GetEnumerator ().Reset,
20602 position before first element of the collection.
20604 2006-11-04 Gert Driesen <drieseng@users.sourceforge.net>
20606 * PropertyGrid.cs: To match MS, remove default title and description
20607 for panel. Fixed tooltips for Categorized and Alphabetic toolbar
20610 2006-11-04 Chris Toshok <toshok@ximian.com>
20612 * Theme.cs: add a Clamp method, just for kicks.
20614 * ThemeWin32Classic.cs: clamp all color components to [0..255].
20616 2006-11-04 Chris Toshok <toshok@ximian.com>
20618 * Form.cs: if the form isn't visible, Close() does nothing.
20620 2006-11-03 Chris Toshok <toshok@ximian.com>
20622 * Form.cs (Close): if the form is modal, don't Dispose of it, only
20624 (WndProc): don't Dispose after handling the WM_CLOSE message.
20626 * Application.cs (RunLoop): toplevels is a list of Forms, so treat
20627 them as such, instead of using casts from Control to Form. Also,
20628 don't Dispose of the modal dialog when we fall out of the loop -
20629 Close() it instead.
20633 2006-11-03 Chris Toshok <toshok@ximian.com>
20635 * Control.cs (Dispose): only go through the dispose thing if we're
20636 @disposing, and we haven't already been disposed. Fixes bug
20639 * Form.cs: no reason to call "base.Dispose()" here instead of
20642 2006-11-03 Mike Kestner <mkestner@novell.com>
20644 * ComboBox.cs : use ToString instead of casts in AddItem for
20645 sorting functionality. Fixes #79812.
20647 2006-11-03 Chris Toshok <toshok@ximian.com>
20649 * Application.cs: pave the way for actually using the thread
20650 exception dialog. it's ifdefed out at the moment.
20652 2006-11-03 Chris Toshok <toshok@ximian.com>
20654 * ThreadExceptionDialog.cs: until we get a better layout, actually
20655 hide the details textbox and label when we shouldn't see them.
20657 2006-11-03 Jackson Harper <jackson@ximian.com>
20659 * TextBoxBase.cs: Don't bail from the scrollbar calcs for non
20660 multiline textboxes anymore. This method also determines the
20661 width/height of a textboxes canvas area.
20662 - Sorta a revert of the last patch. For multiline just position
20663 the controls, then bail. This way the scrollbar width won't be
20666 2006-11-03 Everaldo Canuto <everaldo@simios.org>
20668 * ThemeWin32Classic.cs: Dont paint inner lines of 3D border when
20669 it dont need. Fixes #79537.
20671 2006-11-02 Jackson Harper <jackson@ximian.com>
20673 * X11Dnd.cs: We always allow copy, since XDND implies Copy. Also
20674 send the status after firing the DndOver event.
20676 2006-11-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
20678 * TrackBar.cs: Now orientation only switches height / width if
20679 the control's handle is created (Win32 does it like this). Also
20680 fixed a typo in ToString() for a test to pass, changed the
20681 exception thrown in set_LargeChange and set_SmallChange to
20682 match Win32 behaviour, and added TrackBar tests to the unit
20685 2006-11-02 Chris Toshok <toshok@ximian.com>
20687 * XplatUIX11.cs: the atom we want is _NET_WM_STATE_SKIP_TASKBAR,
20688 not _NET_WM_STATE_NO_TASKBAR.
20690 2006-11-02 Jackson Harper <jackson@ximian.com>
20692 * TextControl.cs: Increment count by one, since in the update view
20695 2006-11-02 Jackson Harper <jackson@ximian.com>
20697 * TextBoxBase.cs: Use client rectangle not bounds for checking if
20698 the mouse is in the client rectangle (duh).
20700 2006-11-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
20702 * TrackBar.cs: Fixed trackbar jumping around when clicking
20703 on it - the trackbar was not detecting correctly at which
20704 side of the thumb the click was done. (fixes #79718)
20706 2006-11-02 Everaldo Canuto <everaldo@simios.org>
20708 * ListBox.cs: scroll visible area when change SelectedIndex to
20709 a non visible area. Fixes #79481.
20711 2006-11-01 Jackson Harper <jackson@ximian.com>
20713 * TextControl.cs: When replacing the selection move the selection
20714 start/end/anchor to the end of the new text.
20716 2006-11-01 Jackson Harper <jackson@ximian.com>
20718 * XplatUIWin32.cs: When setting the parent change the controls
20719 visibility to it's visibility flag, not to it's old parents
20720 visibility (.Visible walks the parent chain).
20722 2006-11-01 Chris Toshok <toshok@ximian.com>
20724 * XplatUIX11.cs: revert the #79790 fix, as the simple.
20725 XSetTransientForHint fix breaks paint .net's tool windows. more
20726 work needed for that one.
20728 2006-11-01 Chris Toshok <toshok@ximian.com>
20730 * ScrollBar.cs: throw ArgumentException instead of Exception in
20731 LargeChange/SmallChange setters. fixes unit tests.
20733 2006-10-31 Andreia Gaita <shana.ufie@gmail.com>
20735 * ContainerControl.cs: reverted rev.67183 (which was itself
20736 a reversion of rev.66853... eh).
20738 * Control.cs: Fixes Reflector hang by changing Focus() call
20739 to what it was before rev.66643 (calling Select() here sets
20740 ActiveControl, which in some situations calls back Focus and
20741 eventually does a stack overflow). Temp fix.
20742 Changes to GetNextControl() to not look for children to select when
20743 parent cannot be selectable (so it looks for siblings instead)
20745 2006-10-31 Mike Kestner <mkestner@novell.com>
20747 * CheckedListBox.cs : off by one error in returned index from
20748 ObjectCollection.Add. Fixes #79758.
20750 2006-10-31 Chris Toshok <toshok@ximian.com>
20752 * UpDownBase.cs: remove the OnGotFocusInternal/OnLostFocusInternal
20753 calls for the textbox/spinner, to keep from recursing to the point
20754 where we crash. Fixes #79760.
20756 2006-10-31 Chris Toshok <toshok@ximian.com>
20758 * ListControl.cs (set_SelectedValue): don't throw exceptions on
20759 null/"" value, just return. matches ms's behavior and fixes some
20762 2006-10-31 Chris Toshok <toshok@ximian.com>
20764 * Control.cs (set_Capture): make a logic a little easier to
20767 * XplatUIX11.cs (CleanupCachedWindows): zero out the Grab window
20768 if it's being destroyed. A necessary fix surely, but a bandaid
20769 also, to fix the stuck capture problem in bug #78413.
20771 2006-10-31 Chris Toshok <toshok@ximian.com>
20773 * XplatUIX11.cs: fix a couple of compiler warnings, and follow the
20774 convention of clearing hwnd.ClientRect when we set the
20775 width/height (so it'll be recalculated by Hwnd).
20777 2006-10-31 Andreia Gaita <shana.ufie@gmail.com>
20779 * ContainerControl.cs: reversed Contains check from
20780 ActiveControl due to hanging problems. This fix
20781 partly regresses #79667 (button does not have
20782 initial focus), so this might be a symptom for
20783 a larger parenting problem (set_ActiveControl
20784 is being called but the child control does
20785 not have the parent set yet?)
20787 2006-10-31 Mike Kestner <mkestner@novell.com>
20789 * MenuAPI.cs : fix keynav when menu is click activated.
20791 2006-10-31 Jonathan Pobst <monkey@jpobst.com>
20793 * ToolStrip*: Version 0.2.
20795 * MenuStrip.cs: Version 0.1.
20797 * Form.cs: Add a 2.0 MenuStrip tracker like the 1.1 Menu one.
20799 2006-10-30 Chris Toshok <toshok@ximian.com>
20801 [ fixes the oversized notify icon issue in bug #79745 ]
20803 * NotifyIcon.cs: scale the icon down to the size we're given by
20804 the XplatUI layer (this would be faster if we did it once instead
20805 of whenever we paint..) Also, remove the WM_NCPAINT handling,
20806 since it's never invoked.
20808 * XplatUIX11.cs: the gnome and kde systrays use icons that are 24
20809 pixels high by default, so let's hardcode our systray icon to that
20810 size. The SYSTEM_TRAY protocol should really have a way for
20811 client apps to query for the correct icon size.. but oh well. A
20812 couple of patches to deal with the screwy client_window ==
20813 whole_window notifyicon stuff (we don't want to PerformNCCalc, for
20814 instance, and also make sure we don't XSelectInput twice).
20816 2006-10-30 Chris Toshok <toshok@ximian.com>
20818 * Control.cs: ugh, the unit test fix (CH11, yesterday) breaks when
20819 recreating forms. Control recreation is the bane of my existence.
20820 Fix it in a way that keeps everyone happy.
20822 2006-10-30 Chris Toshok <toshok@ximian.com>
20824 * XplatUIX11.cs: use StructureNotifyMask on all whole_windows, not
20825 just non-CHILD ones. otherwise sometimes scrollbars end up with
20826 client_windows not being resized to the proper size (ReportBuilder
20827 shows this extremely well).
20829 2006-10-30 Chris Toshok <toshok@ximian.com>
20831 * XplatUIX11.cs (SetWMStyles): reinstate the XSetTransientForHint
20832 for non-WS_EX_APPWINDOW windows. This is what keeps them from
20833 showing up in the gnome taskbar. Fixes bug #79790.
20835 2006-10-30 Chris Toshok <toshok@ximian.com>
20837 * ApplicationContext.cs: guard against a NRE.
20839 * Application.cs: null out the old MainForm for the context, so we
20840 don't try to use it again once it's disposed. Fixes bug #79783.
20842 2006-10-30 Chris Toshok <toshok@ximian.com>
20844 * DataGrid.cs (set_DataSource, set_DataMember): if we have a
20845 BindingContext, set the data source directly, otherwise do the
20846 lazy approach - the actual ListManager will be created when we get
20847 a BindingContext. Fixes bug #79700.
20849 2006-10-30 Jonathan Pobst <monkey@jpobst.com>
20851 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
20852 XplatUIX11.cs: Remove old 2 parameter SetVisible.
20854 * Control.cs: Use the new 3 parameter SetVisible with activate = true.
20856 2006-10-30 Jonathan Pobst <monkey@jpobst.com>
20858 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Add an overload
20859 of SetVisible that allows a window to be shown, but not activated.
20860 This is needed on Windows for MenuStrip, and can probably be used
20861 with MainMenu and ComboBox to fix the focus stealing issues on
20864 * XplatUIOSX.cs, XplatUIX11.cs: Not needed, call existing SetVisible.
20866 2006-10-30 Alexander Olk <alex.olk@googlemail.com>
20868 * PictureBox.cs: Fix the output of the ToString method.
20870 2006-10-29 Chris Toshok <toshok@ximian.com>
20872 * Control.cs (get_TopLevelControl): fix bug #79781.
20874 2006-10-29 Chris Toshok <toshok@ximian.com>
20876 * ListControl.cs (set_DataSource): throw Exception here, not
20877 ArgumentException, to match MS behavior.
20879 2006-10-29 Chris Toshok <toshok@ximian.com>
20881 * Form.cs: remove the try-catch's around calls to GetWindowState.
20882 We can just check the return value.
20884 * XplatUIX11.cs: don't throw exceptions from GetWindowState.
20887 * XplatUI.cs: Add note about additional return value for
20890 2006-10-29 Chris Toshok <toshok@ximian.com>
20892 * Control.cs (CreateHandle): when we create our handle, we also
20893 create the handles of our child controls. Fixes one of the
20894 Control unit tests (CH11).
20896 2006-10-28 Alexander Olk <alex.olk@googlemail.com>
20898 * MimeIcon.cs: If a gnome icon doesn't exist add a default icon.
20900 2006-10-28 Alexander Olk <alex.olk@googlemail.com>
20902 * ThemeClearlooks.cs: A little speedup.
20904 2006-10-27 Chris Toshok <toshok@ximian.com>
20906 * Control.cs: implement Control.FromChildHandle in a way that
20907 matches the docs (and fixes the failed test.)
20909 2006-10-27 Chris Toshok <toshok@ximian.com>
20911 * DataGridTableStyle.cs: reproduce buggy MS behavior (with
20914 * DataGrid.cs: implement ResetForeColor such that the tests
20917 2006-10-27 Chris Toshok <toshok@ximian.com>
20919 * ToolBarButton.cs: setting text/tooltiptext to null results in it
20920 being set to "". Fixes bug #79759.
20922 2006-10-27 Jackson Harper <jackson@ximian.com>
20924 * TextControl.cs: We need to clear the entire selection area when
20925 setting the start, otherwise multiline selections are still
20928 2006-10-26 Chris Toshok <toshok@ximian.com>
20930 * PropertyGridView.cs:
20932 - ifdef all the code specific to the double
20933 buffer case, and provide some alternatives in the non-doublebuffer
20934 code, which makes heavy use of XplatUI.ScrollWindow to move things
20935 around without having to invalidate (and cause flicker). There
20936 are still some drawing problems in the non-doublebuffered case, so
20937 DOUBLEBUFFER is defined by default.
20939 - Fix the way dropdowns are handled. now we explicitly watch for
20940 the events which might cause the dropdown to close, and break out
20941 of the nested event loop there. This gets rid of all Capture
20942 code, at the expense of the Msg special casing. Seems to work,
20943 though, and fixes bug #79743.
20945 2006-10-27 Rolf Bjarne Kvinge <RKvinge@novell.com>
20946 * Control.cs: SetIsRecreating now recreates implicitly added
20947 child controls as well. Finally fixes #79629. The flag passed to
20948 SetIsRecreating has also been removed since it wasn't used.
20950 2006-10-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
20952 * PageSetupDialog.cs: Clean some code, fix some bits,
20953 add some checks, and add a printer sub-dialog.
20955 2006-10-26 Chris Toshok <toshok@ximian.com>
20957 * PropertyGrid.cs: make set_SelectedObject call
20958 set_SelectedObjects, and move the duplicate logic to the
20959 SelectedObjects setter. Also, raise SelectedObjectsChanged.
20961 * PropertyGridView.cs: hide the textbox when we get a
20962 SelectedObjectsChanged event.
20966 2006-10-26 Chris Toshok <toshok@ximian.com>
20968 * PropertyGridView.cs: deal with the type converter not supporting
20969 GetStandardValues() or GetStandardValues() returning null, which
20970 is does in the default case. Fixes #79742.
20972 2006-10-25 Andreia Gaita <shana.ufie@gmail.com>
20974 * CheckedListBox.cs: nunit no longer crashes when selecting
20975 Project/Edit menu option
20977 2006-10-25 Andreia Gaita <shana.ufie@gmail.com>
20979 * MenuAPI.cs: prevent ExecFocusedItem from blowing up if there
20980 is no menu selected. fixes #79739
20982 2006-10-25 Chris Toshok <toshok@ximian.com>
20984 * PropertyGridView.cs: factor out the splitter invalidation code
20985 into the SplitterPercent setter, and for kicks implement the
20986 Ctrl-Left/Ctrl-Right handling that moves the splitter by a small
20987 amount in either direction.
20989 2006-10-25 Chris Toshok <toshok@ximian.com>
20991 * PropertyGridView.cs: do some cleanup of the brush used to draw
20992 text - read only fields should be grayed out. not sure how to do
20993 this with the textbox, though. but the textbox's should also be
20994 readonly now at least. Also, hide/show the textbox when resizing
20997 * CursorConverter.cs: use System.Reflection when getting the
20998 properties of Cursors, as TypeDescriptor.GetProperties isn't
20999 returning static properties.
21001 2006-10-25 Chris Toshok <toshok@ximian.com>
21003 * PropertyGridView.cs: factor out the up/down handling, and reuse
21004 it for page up/down. also add End/Home support.
21006 2006-10-25 Chris Toshok <toshok@ximian.com>
21008 * PropertyGridView.cs:
21010 - ensure the selected grid item is visible in the scrolled area,
21013 - fix Keys.Down handling when you're on the last item in the
21016 2006-10-25 Mike Kestner <mkestner@novell.com>
21018 * MenuAPI.cs : set the ActiveTracker for MainMenu non-popup
21019 clicks too. Fixes #79725.
21021 2006-10-24 Chris Toshok <toshok@ximian.com>
21023 * PropertyGrid.cs: use property.Converter instead of
21024 TypeDescriptor.GetConverter(property.PropertyType), so we catch
21025 TypeConverters declared on the property as well as on the
21026 PropertyType. Fixes bug #79678.
21028 2006-10-24 Alexander Olk <alex.olk@googlemail.com>
21030 * MimeIcon.cs, Mime.cs:
21031 Fallback to the default platform handler if no shared mime info
21032 stuff exists (fixes #79693).
21034 2006-10-20 Andreia Gaita <shana.ufie@gmail.com>
21035 * ContainerControl.cs: Incorrect contains check in ActiveControl
21036 from previous fix (duh).
21038 2006-10-20 Chris Toshok <toshok@ximian.com>
21040 * PropertyGridView.cs: the dropdown should be MIN(number of items
21041 in list, 15). Fixes #79551.
21043 2006-10-20 Andreia Gaita <shana.ufie@gmail.com>
21044 Fixes #79384, #79394, #79652, #79667
21047 - Modal windows are now destroyed in the proper order for windows
21049 * ContainerControl.cs:
21051 - ActiveControl setter has more conditions on when to return:
21052 - if we're reselecting the active control, but it actually
21053 didn't have focus (window hidden or some such), it runs
21054 - if the active control being selected doesn't actually
21055 exist in the container, it returns
21059 - The ShowDialog now gets the current form as the owner when
21060 invoking without parameters, and correctly activates the owner
21065 - MessageBox now catches the Escape key to exit
21067 2006-10-20 Chris Toshok <toshok@ximian.com>
21069 * PropertyGridView.cs: fix a number of issues (bug #78565, and
21070 most of bug #79676):
21072 - you can navigate around the property grid with the arrow keys.
21074 - the dropdown is sized properly when the pg has a vertical
21077 - fix the indentation for subentries, and properly select the
21080 - fix the gray bar's drawing (only draw it to the last element,
21081 not for the height of the control. Also make sure we draw that
21082 last horizontal grid line.
21084 - use the same mechanism the datagrid uses wrt the editing textbox
21085 when scrolling/resizing/etc. Namely, we hide it first, do the
21086 operation, then show it again (if it's still visible).
21088 - aggressively remove a lot of unnecessary refreshes (and also
21089 calls to Invalidate(). call more limited variants, and only redraw
21094 - when we're populating the merged collection, fill in the UI
21095 parent with either the passed in item, or the category item we
21098 - remove the Refresh call from the BorderHelpControl.OnSizeChanged.
21100 * GridItem.cs: drop some fully qualified names.
21102 * GridEntry.cs: add a "UIParent", which is basically the parent
21105 * GridItemCollection.cs: add an IndexOf method.
21107 2006-10-20 Mike Kestner <mkestner@novell.com>
21109 * MainMenu.cs : go back to Draw in OnMenuChanged. Until we get
21110 a working win32 NC invalidation mechanism, we can't invalidate
21111 menus. [Fixes #79705]
21113 2006-10-20 Mike Kestner <mkestner@novell.com>
21115 * ListBox.cs : don't update the VScrollbar if the list is empty,
21116 just hide it. [Fixes #79692]
21118 2006-10-20 Jackson Harper <jackson@ximian.com>
21120 * RichTextBox.cs: Handle some special chars better, and don't skip
21121 the entire group when we encounter a special char that we don't
21124 2006-10-18 Chris Toshok <toshok@ximian.com>
21126 * PropertyGridView.cs: address a number of issues from bug #79676,
21127 mostly of the cosmetic variety.
21129 - The highlight rectangle for indented items not extends all the
21132 - Indented items aren't indented so much.
21134 - the dropdown is properly sized width-wise if the pg has a
21135 vertical scrollbar.
21137 2006-10-18 Chris Toshok <toshok@ximian.com>
21139 * XplatUIX11.cs (SystrayAdd): a rather convoluted change, but the
21140 systray stuff is rather convoluted to begin with.
21142 systray icons are a single window for some reason (that I haven't
21143 figured out yet), and for them, client_window == whole_window.
21144 Given the way the tests are structured elsewhere to determine
21145 which paints are pending (client vs. nc), that situation will
21146 always yield PAINT, not NCPAINT. So, if we have a pending
21147 nc_expose and no pending expose, remove the hwnd from the paint
21148 queue, and also set nc_expose_pending to false, to keep us from
21149 blocking further expose's adding the hwnd to the paint queue.
21151 phew. like i said, a rather convoluted change. Fixes the
21152 notifyicon repaint issues in bug #79645.
21154 2006-10-18 Chris Toshok <toshok@ximian.com>
21156 * Form.cs: when getting the backcolor of the form, don't get
21157 base.BackColor, as this allows parents to influence the background
21158 color. This breaks mdi forms. Instead, if the background_color
21159 is empty, return the default.
21161 2006-10-18 Chris Toshok <toshok@ximian.com>
21163 * XplatUIX11.cs: change some debug ifdefs, and return XGetParent
21164 to being private instead of internal static.
21166 * Control.cs: remove all the stupid ParentWaitingOnRecreation
21167 crap, it wasn't working for more deeply nested controls anyway,
21168 and we already have the is_recreating flag - use that instead.
21169 Before calling DestroyHandle in RecreateHandle, recurse through
21170 the control tree setting it to true. this returns the recreate
21171 code to much of its original simplicity, while now guaranteeing we
21172 actually recreate everything we're supposed to. This change gets
21173 fyireporting actually showing mdi children.
21175 2006-10-17 Chris Toshok <toshok@ximian.com>
21177 * Form.cs: remove some debug spew, and collapse some duplicate
21178 code at the end of SetClientSizeCore.
21181 - add some more debug spew here too wrt Destroy handling.
21182 - don't call hwnd.Dispose in DestroyWindow, it's effectively done
21183 in Control's handling of WM_DESTROY.
21184 - Remove the handling of zombie window DestroyNotifies from the
21185 event loop - we don't need it. Now the only DestroyNotifies we
21186 actually handle are ones generated by X.
21187 - When sending _NET_ACTIVE_WINDOW, the first param should be 1, to
21188 match gtk's (functioning) handling of this. This keep metacity
21189 from leaving droppings in the form of wm borders with no window
21190 contents all over the place.
21193 - add a bunch of debug spew wrt control recreation.
21194 - fix a bug where we weren't tracking Visible properly on
21196 - fixed the WM_PAINT double buffer handling to support re-entrant
21197 calls (yes, i know it's gross, but it's happening to us).
21199 2006-10-17 Rolf Bjarne Kvinge <rolfkvinge@ya.com>
21200 * ThemeWin32Classic.cs: changed drawing of selected days
21201 to make them look better.
21203 2006-10-16 Chris Toshok <toshok@ximian.com>
21205 * Hwnd.cs: replace the user_data/client_dc/non_client_dc with
21206 drawing_stack. Nuke the ClientDC/NonClientDC properties.
21208 * XplatUIX11.cs: move away from using hwnd.client_dc and
21209 hwnd.non_client_dc and on to a stack of dc's (and in window's
21210 case, PAINTSTRUCT's), so we can deal with nested Paint calls
21211 without puking or not disposing of Graphics objects.
21213 * XplatUIOSX.cs: same.
21215 * XplatUIWin32.cs: same.
21217 2006-10-03 Alexander Olk <alex.olk@googlemail.com>
21219 * FileDialog.cs: Don't call on_directory_changed inside
21220 OnSelectedIndexChanged (it changes the SelectedIndex too).
21221 Instead move it to OnSelectionChangeCommitted.
21223 2006-10-13 Chris Toshok <toshok@ximian.com>
21225 * XplatUIX11.cs: more Destroy work. the current code does the
21226 following things, in order:
21228 1. Enumerates all handles of all controls at or below the one
21229 being destroyed, in pre-order. As it is doing this, it marks the
21230 handles as zombie and clears all references to them.
21232 2. calls XDestroyWindow on the window passed in.
21234 3. SendMessage's WM_DESTROY to all he handles in the accumulated
21237 2006-10-13 Chris Toshok <toshok@ximian.com>
21239 * XplatUIX11.cs: set hwnd.zombie to true before calling
21240 SendMessage (WM_DESTROY). this keeps us from marking the new
21241 window a zombie, and also keeps us from calling sendmessage at
21244 2006-10-13 Jackson Harper <jackson@ximian.com>
21246 * TextControl.cs: Do not show the caret and selection at the same
21247 time. Reduces ugliness by 35%.
21249 2006-10-13 Chris Toshok <toshok@ximian.com>
21251 * XplatUIX11.cs (SendWMDestroyMessages): set the hwnd to be a
21252 zombie after we do the recursive call, so we actually do call
21253 SendMessage on the children controls.
21254 (GetMessage): if we find a pending paint event for a zombie hwnd,
21255 remove the hwnd from the paint queue, or else it will always be
21256 there (and we'll effectively loop infinitely)
21258 2006-10-13 Mike Kestner <mkestner@novell.com>
21260 * MenuItem.cs : add Selected format under keynav too.
21263 2006-10-13 Gert Driesen <drieseng@users.sourceforge.net>
21265 * PropertyGrid.cs: Fixed some NRE's and small difference between our
21266 implementation and that of MS.
21268 2006-10-13 Chris Toshok <toshok@ximian.com>
21270 * Control.cs (OnInvalidated) only futz with the invalid_region if
21271 the control is double buffered. this fixes the apparent hang in
21272 the ListView unit tests. Someone needs to make the
21273 BeginEndUpdateTest not call OnInvalidated 15004 times, though..
21275 2006-10-13 Chris Toshok <toshok@ximian.com>
21277 * PropertyGridView.cs:
21279 - do a little refactoring so that only one place calls
21280 dropdown_form.Hide, and that is CloseDropDown. make everywhere
21281 else call that. Also make it Refresh, since there are redraw bugs
21282 otherwise (we should take a look at that...)
21284 - do a little more refactoring work to share the body of code
21285 involved with the drop down. it was duplicated in the code
21286 dealing with the listbox handling and in the code dealing with the
21289 - add a Capture to the dropdown form's control once it's
21290 displayed, and add a MouseDown handler that checks to make sure
21291 the position is inside the control. If it's not, close the
21292 dropdown. This fixes #78190.
21294 - in SetPropertyValueFromUITypeEditor, only call SetPropertyValue
21295 if the value is different than the initial value.
21297 2006-10-13 Andreia Gaita <shana.ufie@gmail.com>
21299 * Control.cs: see #78650
21300 - Fixed GetNextControl for several cases:
21301 - Changed FindFlatForward to return
21302 correct sibling control when more than one
21303 control has same TabIndex as the currently
21305 - Changed FindFlatBackward to loop children
21306 from last to first and apply same logic as in
21308 - Changed FindControlForward to search for
21309 children when control is not a container
21310 but has children, or search for siblings if
21311 control is a container...
21312 - Changed FindControlBackward to continue
21313 searching for child controls when hitting
21316 - Fixed Focus method to update ActiveControl
21317 (FocusTest.FocusSetsActive failure)
21320 - Focus rectangle now refreshes when gaining
21322 - Removed grab for Tab key on IsInputKey that
21323 was keeping tab navigation from working (#78650)
21325 2006-10-13 Chris Toshok <toshok@ximian.com>
21327 * PropertyGridView.cs:
21328 - Rewrite SetPropertyValue to loop over SelectedGridItem's
21331 - Deal with GridItem.Value == null a few places.
21334 - replace the PopulateGridItemCollection with a pair of methods
21335 which compute the intersection of all the properties in the
21336 SelectedObjects array. Fixes #79615.
21338 - Throw ArgumentException from set_SelectedObjects if there's a
21341 - Add GetTarget method which can be used to traverse up the
21342 GridItem.Parent chain. It depends on the assumption that
21343 selected_objects for different GridEntries are always in the same
21344 order (a safe assumption). Use this method and loop over all the
21345 selected objects in the entry when calling RemoveValueChanged and
21348 * GridEntry.cs: Make this handle multiple selected objects.
21349 .Value returns null if not all the selected objects share the same
21352 2006-10-12 Jonathan Pobst <monkey@jpobst.com>
21353 * ToolStrip.cs, ToolStripButton.cs, ToolStripComboBox.cs,
21354 ToolStripControlHost.cs, ToolStripItem.cs, ToolStripLabel.cs,
21355 ToolStripProfessionalRenderer.cs, ToolStripProgressBar.cs,
21356 ToolStripSeparator.cs, ToolStripSplitStackLayout.cs,
21357 ToolStripTextBox.cs: Add accessibility, fix attributes/API and
21358 add additional functionality.
21360 2006-10-12 Mike Kestner <mkestner@novell.com>
21362 * ErrorProvider.cs : new ToolTipWindow ctor sig.
21363 * HelpProvider.cs : new ToolTipWindow ctor sig.
21364 * ToolTip.cs : remove ToolTip param from Window sig since it is
21366 * ToolBar.cs : add tooltip support. Fixes #79565.
21368 2006-10-12 Rolf Bjarne Kvinge <rolfkvinge@ya.com>
21370 * ComboBox.cs: move the events in set_SelectedIndex to
21371 after the call to HighlightIndex in order to avoid
21372 possible recursion and subsequent problems with the call
21373 to HighlightIndex and include a range check in
21374 set_HighlightIndex. Fixes #79588
21376 2006-10-12 Rolf Bjarne Kvinge <rolfkvinge@ya.com>
21378 * MonthCalendar.cs: When FirstDayOfWeek is default set firstday
21379 to ui thread's settings instead of sunday.
21380 * ThemeWin32Classic.cs: Localize the day string. Fixes #79563
21382 2006-10-12 Rolf Bjarne Kvinge <rolfkvinge@ya.com>
21384 * DateTimePicker.cs
21386 * ThemeWin32Classic.cs: rewrote DateTimePicker to fix bug #78364
21387 and implement missing functionality (selecting different parts
21388 of the date and edit them individually with the keyboard).
21390 2006-10-11 Chris Toshok <toshok@ximian.com>
21392 * Control.cs (OnInvalidated): fix NRE relating to last change.
21394 2006-10-11 Chris Toshok <toshok@ximian.com>
21396 * XplatUIX11.cs (SetWMStyles): make sure we include the MAXIMIZED
21397 atoms in _NET_WM_STATE here if the window is maximized. We need
21398 to do this because we're *replacing* the existing _NET_WM_STATE
21399 property, so those atoms will be lost otherwise, and any further
21400 call to GetWindowState will return Normal for a window which is
21401 actually maximized. Fixes #79338.
21403 2006-10-11 Jackson Harper <jackson@ximian.com>
21405 * TextControl.cs: Special case for setting selection end to
21406 selection start, we basically kill the anchor.
21407 - some todo comments.
21409 2006-10-11 Chris Toshok <toshok@ximian.com>
21411 * Control.cs: switch to using an "invalid_region" to track which
21412 parts of the image buffer need updating. This is more code than
21413 the simple fix from r66532. That version just attempted to always
21414 fill the entire buffer on redraw, which turns out to be
21415 inefficient when invalidating small rectangles. This version
21416 simply adds the invalid rectangle to the invalid region. When we
21417 get any WM_PAINT message we see if it can be filled using the
21418 image buffer, and if it can't (if the paint event's clip rectangle
21419 is visible in the invalid region) we first fill the image buffer.
21420 So, the image buffer is still a cache, we just fill it lazily.
21422 * PaintEventArgs.cs: remove the SetClipRectangle method, we don't
21423 need it any longer.
21425 2006-10-11 Chris Toshok <toshok@ximian.com>
21427 * XplatUIX11.cs (SetWindowPos): we need to update both position as
21428 well as size after calling XMoveResizeWindow. This keeps us from
21429 ignoring future SetWindowPos calls. Fixes the disappearing
21430 DateTimePicker in the ToolBarDockExample from bug #72499.
21432 2006-10-11 Chris Toshok <toshok@ximian.com>
21434 * TextBoxBase.cs: reorder things a bit when it comes to
21435 resizing-causing-recalculation. we were recalculating the
21436 document when our position was changed, which shouldn't happen.
21437 We only care about size changes. Clear up some more redundant
21438 recalculation calls while I'm at it. This makes the toolbar dock
21439 example snappy when you're just dragging toolbars around (since it
21440 causes a relayout whenever you move one.)
21442 2006-10-11 Chris Toshok <toshok@ximian.com>
21444 * ToolBarButton.cs (get_Rectangle): this only returns
21445 Rectangle.Empty if Visible == false, or Parent == null.
21446 Parent.Visible doesn't matter.
21448 2006-10-10 Chris Toshok <toshok@ximian.com>
21450 * Control.cs, PaintEventArgs.cs: "internal set { .. }" isn't loved
21451 by .net 1.1, so switch to an internal method instead.
21453 2006-10-10 Chris Toshok <toshok@ximian.com>
21455 * Control.cs (WM_PAINT): when a control is double buffered we draw
21456 initially to the ImageBuffer and then copy from there. But when a
21457 parent control which has child controls is double buffered, the
21458 initial drawing doesn't encompass the entire ClientRectangle of
21459 the parent control, so we end up with uninitialized bits (this is
21460 easily seen by dragging the top toolbar in
21461 wf-apps/ToolBarDockExample to the right, quickly). The fix is to
21462 manually set the ClipRectangle of the paint_event (only the one we
21463 use to populate the ImageBuffer) to ClientRectangle. Fixes more
21464 of the nastiness in bug #72499.
21466 * PaintEventArgs.cs: Add an internal setter for ClipRectangle,
21467 which we use in Control.cs's WM_PAINT handling.
21469 2006-10-10 Jackson Harper <jackson@ximian.com>
21471 * TextBoxBase.cs: Finish off the autoscrolling stuff.
21473 2006-10-10 Chris Toshok <toshok@ximian.com>
21475 * Cursor.cs: Apply a slightly different patch to the one suggested
21478 2006-10-10 Jackson Harper <jackson@ximian.com>
21480 * MenuItem.cs: Make sure to put the mdi child in the hashtable,
21481 not the parent form.
21482 * TextControl.cs: use difference in old line count vs new count to
21483 calculate how many lines were added, this takes into account soft
21484 line breaks properly.
21486 2006-10-10 Chris Toshok <toshok@ximian.com>
21488 * LinkLabel.cs: don't call MeasureCharacterRanges against a
21489 rectangle located at 0,0 and the size of the text. Use
21490 ClientRectangle instead. This fixes rendering of non-left aligned
21493 2006-10-10 Jackson Harper <jackson@ximian.com>
21495 * TextBoxBase.cs: When we set the selection start position the
21497 * TextControl.cs: Need to update the caret when we decrement it to
21499 - Make sure that the selection_visible flag gets reset to false if
21500 the selection isn't visible. Before this you could get it set to
21501 visible by changing the selection start, then changing the end to
21504 2006-10-09 Jackson Harper <jackson@ximian.com>
21506 * TreeView.cs: Don't update scrollbars when we aren't visible.
21507 * TreeNodeCollection.cs: Only need to update scrollbars if being
21508 added to an expanded visible node or the root node.
21510 2006-10-09 Chris Toshok <toshok@ximian.com>
21512 * XplatUIX11.cs (SendMessage): fix NRE.
21514 2006-10-09 Jackson Harper <jackson@ximian.com>
21516 * TextBoxBase.cs: Implement horizontal autoscrolling.
21517 * TextControl.cs: Add a movement types that allows moving forward
21518 and backwards without wrapping.
21520 2006-10-09 Mike Kestner <mkestner@novell.com>
21522 * ListViewItem.cs : layout changes for wrapped LargeIcon labels
21523 with focus "expansion" of labels. Fixes #79532 and then some.
21524 * ThemeWin32Classic.cs : add LineLimit to ListView label format
21527 2006-10-09 Jackson Harper <jackson@ximian.com>
21529 * TextBoxBase.cs: Set the default max values to MaxValue since
21530 we use the scrollbar for autoscrolling and the default value is
21531 100. If we don't do this the caret won't keep up with typing
21532 after about 18 characters.
21533 * TextControl.cs: Make sure the selection is offset by the
21534 viewport x. This fixes selection when using auto scrolling.
21536 2006-10-07 Andreia Gaita <shana.ufie@gmail.com>
21538 * Form.cs: The active control should be selected after the
21539 OnLoad so that any child control initialization that affects
21540 the selection is done. Fixes #79406
21542 2006-10-06 Chris Toshok <toshok@ximian.com>
21544 * XplatUIX11.cs: This is perhaps a dangerous change, but it seems
21545 to have no evil effects.
21547 - Stop selecting StructureNotifyMask on non-toplevel windows.
21549 The only way children should be resized is by using the SWF api,
21550 and we already send WM_WINDOWPOSCHANGED messages in those cases.
21551 Toplevel windows can be interacted with via the window manager,
21552 and so we keep the input mask there.
21554 The other event StructureNotifyMask gives us (that we care
21555 about) is DestroyNotify. The code is already structured such
21556 that it assumes we won't be getting a DestroyNotify event for
21557 the window we pass to XDestroyWindow (which is what
21558 StructureNotifyMask is supposed to guarantee.) So, that code
21559 shouldn't be affected by this either.
21561 - Stop selecting VisibilityChangeMask altogether.
21563 We weren't doing anything with the resulting events anyway.
21565 This vastly reduces the number of X requests and events we see
21566 when resizing/laying out a large ui.
21568 2006-10-06 Chris Toshok <toshok@ximian.com>
21570 * ScrollableControl.cs (DisplayRectangle): we need to take into
21571 account the DockPadding regardless of whether or not auto_scroll
21572 == true. rework this slightly to this effect, and fix bug #79606,
21573 and part of #72499 (you can now see the drag handles and drag
21576 2006-10-06 Gert Driesen <drieseng@users.souceforge.net>
21578 * ListViewItem.cs: Collections of selected and checked items are now
21579 dynamically rebuilt. Whenever an item is (un)checked or (de)selected
21580 we mark the collection "dirty".
21581 * ListView.cs: Marked collections readonly. Modified UpdateSelection
21582 to only clear SelectedItems when a new item is selected and MultiSelect
21583 is enabled. CheckedItems and SelectedItems now subscribe to Changed
21584 event of ListViewItemCollection, and mark its list dirty whenever
21585 that event is fire. This allows us to return selected/checked items
21586 in the same order as they are in the Items collection. This matches
21589 2006-10-06 Chris Toshok <toshok@ximian.com>
21591 * NotifyIcon.cs (HandleMouseUp): only show the context menu on
21592 right mouse clicks. Fixes bug #79593.
21594 2006-10-06 Chris Toshok <toshok@ximian.com>
21596 * Splitter.cs: doh, fix splitters that don't want to cancel the
21597 movement when you drag them. Also, impose the limits on the
21598 values we send to the SplitterMovingEvent. Fixes #79598.
21600 2006-10-06 Jackson Harper <jackson@ximian.com>
21602 * TextBoxBase.cs: Ignore whether or not the scrollbar is enabled,
21603 since we use this for auto scrolling also.
21605 2006-10-05 Chris Toshok <toshok@ximian.com>
21607 * DataGridBoolColumn.cs: Nuke the code from ConcedeFocus. I'm
21608 beginning to think that most datagrid column types don't need this
21609 method. Fixes bug #79392.
21611 2006-10-05 Chris Toshok <toshok@ximian.com>
21613 * DataGrid.cs: move back to a more lazy scheme for creating the
21614 CurrencyManager, so we aren't updating it every time you set
21615 either DataSource or DataMember. Also, don't call
21616 RecreateDataGridRows if the currency manager hasn't changed.
21618 2006-10-05 Chris Toshok <toshok@ximian.com>
21620 * ComboBox.cs: by the time the OnSelectionChangeCommitted event is
21621 emitted, SelectedIndex should already be updated. Fixes bug
21624 2006-10-05 Jonathan Pobst <monkey@jpobst.com>
21626 * ToolStripComboBox.cs, ToolStripControlHost.cs, ToolStripProgressBar,
21627 ToolStripTextBox.cs: Initial commit.
21628 * ToolStripItem.cs: Fixes for OnLayout, BackColor, Parent.
21630 2006-10-05 Jackson Harper <jackson@ximian.com>
21632 * TabControl.cs: We need to invalidate the tab control area when
21633 new ones are added (duh).
21635 2006-10-03 Chris Toshok <toshok@ximian.com>
21637 * Form.cs (ProcessDialogKey): if the focused control is in this
21638 form and is a button, call its PerformClick method here. Fixes
21641 2006-10-04 Jackson Harper <jackson@ximian.com>
21643 * TabPage.cs: Ignore setting of Visible, and add an internal
21644 method for setting the controls visibility. TabPage's Visible
21645 property is a little strange on MS, this seems to make us
21646 compatible, and fixes cases where people set all the tab pages to
21648 * TabControl.cs: Use the new internal setting on tab pages
21651 2006-10-03 Mike Kestner <mkestner@novell.com>
21653 * ComboBox.cs : raise Click on ComboTextBox clicks. Fixes #79555.
21655 2006-10-03 Mike Kestner <mkestner@novell.com>
21657 * ListView.cs : use is_visible instead of Visible to check if
21658 scrollbars should be placed/sized. Also some max_wrap_width
21659 love for LargeIcon view. [Fixes #79533]
21661 2006-10-03 Atsushi Enomoto <atsushi@ximian.com>
21664 Make set_TextAlign() do actually update the align. Fixed #78403.
21666 2006-10-03 Chris Toshok <toshok@ximian.com>
21668 * DataGrid.cs: fix a crash when switching datasources if the
21669 vertical scrollbar is at someplace other than Value = 0. Also,
21670 reduce the number of recalculation passes we do in SetDataSource
21673 2006-10-03 Jackson Harper <jackson@ximian.com>
21675 * TextBoxBase.cs: Move the if value the same bail check up, we
21676 don't want to empty the document if it is already empty, this
21677 seems to severly mess up the caret. TODO: I should probably fix
21678 the empty statement to update teh caret somehow.
21680 2006-10-03 Chris Toshok <toshok@ximian.com>
21682 * ThemeWin32Classic.cs, DataGrid.cs: some changes so that the
21683 incredibly hacky Windows.Forms FAQ autosize rows entry (it uses
21684 reflection, an internal row type, properties on said type, etc.)
21685 will work with our datagrid. Fixes #79531.
21687 2006-10-03 Alexander Olk <alex.olk@googlemail.com>
21689 * FileDialog.cs: Don't crash if a path is not accessible
21690 (System.UnauthorizedAccessException). Fixes #79569.
21691 * MimeIcon.cs: Workaround for a Uri bug. Unix paths/files can have
21692 a ':' too. Return unknown icon for those paths/files.
21694 2006-10-03 Sebastien Pouliot <sebastien@ximian.com>
21696 * ToolTip.cs: Fix rare, but possible, NRE on MouseEnter when
21697 GetContainerControl returns null.
21699 2006-10-02 Chris Toshok <toshok@ximian.com>
21701 * XplatUIX11.cs (GetWindowState): use hwnd.client_window in the
21702 call to XGetWindowAttributes instead of "handle". fixes an X
21703 error using notifyicon after the NotifyIconWindow to Form base
21706 2006-10-02 Chris Toshok <toshok@ximian.com>
21708 * XplatUIX11.cs (QueryPointer): new function, encapsulating the
21709 server grab and looping we need to do to get down to the most
21710 deeply nested child window.
21711 (SetCursorPos): use QueryPointer instead of GetCursorPos, and call
21712 QueryPointer again after the WarpPointer so we can generate a
21713 proper (fake) MotionNotify event to be enqueued in the destination
21715 (GetCursorPos): call QueryPointer.
21719 2006-10-02 Jackson Harper <jackson@ximian.com>
21721 * NotifyIcon.cs: Derive the notify icon from a form, so things
21722 like FindForm work on it.
21723 - Swallow the WM_CONTEXTMENU message, since that is generated on
21724 mouse down, and context menu is a mouse up kinda guy. I believe
21725 the correct fix here is probably to make the notify icon entirely
21726 NC area, but this seems to work fine for anyone not manipulating
21729 2006-10-02 Jonathan Pobst <monkey@jpobst.com>
21731 * ToolStrip.cs, ToolStripButton.cs, ToolStripItem.cs,
21732 ToolStripItemCollection.cs, ToolStripLabel.cs,
21733 ToolStripProfessionalRenderer.cs, ToolStripRenderer.cs,
21734 ToolStripSeparator.cs, ToolStripSplitStackLayout.cs:
21735 Initial implementation.
21736 * TextRenderer.cs: Provide padding to MeasureText.
21738 2006-10-02 Sebastien Pouliot <sebastien@ximian.com>
21740 * ButtonBase.cs: Fix CreateAccessibilityInstance to return an instance
21741 of ButtonBaseAccessibleObject. Fix bug #79552.
21743 2006-10-02 Jackson Harper <jackson@ximian.com>
21745 * MdiWindowManager.cs: When maximizing use the containers client
21746 rect, not it's bounds, so nc area is accounted correctly.
21747 - Use the parent form's size for the menu position, since the
21748 client isn't always the full form size.
21750 2006-10-01 Chris Toshok <toshok@ximian.com>
21752 * ScrollableControl.cs: make sure neither right_edge or
21753 bottom_edge are < 0, since they're used as LargeChange for the
21754 horiz/vert scrollbars respectively. Fixes #79539.
21756 2006-10-01 Chris Toshok <toshok@ximian.com>
21758 * NotifyIcon.cs: add NotifyIconWindow.InternalRecreateHandle, so
21759 the xplatuix11 code can cause us to destroy/recreate our handle.
21763 - this code can be invoked many times for the same Hwnd. Make
21764 sure we only destroy the client window once (the first time this
21765 method is called). This fixes bug #79544.
21766 - Remove the call to the improperly bound XSync. why we had two
21767 bindings to this, I will never know, but this call resulted in
21768 events being discarded from the queue(!).
21769 - correct a misunderstanding of _XEMBED_INFO - the second atom is
21770 not our current state but the state we wish to be in. So, 0 if
21771 we don't want to be mapped. Change it to 1.
21772 (SystrayRemove): The XEMBED spec makes mention of the fact that
21773 gtk doesn't support the reparent of client windows away from the
21774 embedder. Looking at gtksocket-x11.c seems to agree with this.
21775 The only avenue we have for removing systray icons is to destroy
21776 them. We don't want the handle to go away for good, though, so
21777 call InternalRecreateHandle on the NotifyIconWindow. Fixes
21780 2006-10-01 Chris Toshok <toshok@ximian.com>
21782 * Form.cs (WndProc): inline the native_enabled variable usage into
21783 the cases in which it's used. Fixes #79536.
21785 2006-09-29 Mike Kestner <mkestner@novell.com>
21787 * ListView.cs : toggle the selection state for ctrl clicks in
21788 multiselect mode. [Fixes #79417]
21790 2006-09-29 Mike Kestner <mkestner@novell.com>
21792 * ListView.cs : kill CanMultiSelect and refactor the selection
21793 code to support multiselection in the absence of mod keys. Steal
21794 arrow/home/end keys by overriding InternalPreProcessMessage to
21795 restore regressed keynav behavior.
21798 2006-09-29 Jackson Harper <jackson@ximian.com>
21800 * MdiClient.cs: Repaint the titlebars when the active window is
21803 2006-09-29 Chris Toshok <toshok@ximian.com>
21805 * Application.cs: when entering a runloop with a modal, make sure
21806 the hwnd is enabled. Fixes #79480.
21808 2006-09-29 Chris Toshok <toshok@ximian.com>
21810 * DataGrid.cs (CurrentCell): if we try to navigate to the add row
21811 when ListManager.CanAddRows == false, bump us back one.
21813 * DataGridColumnStyle.cs (ParentReadOnly): remove the
21814 listmanager.CanAddRows check. This makes ArrayLists uneditable
21815 using a datagrid, which is not right.
21816 (SetColumnValueAtRow): call IEditable.BeginEdit if source[rowNum]
21817 is an IEditable, but call property_descriptor.SetValue regardless.
21820 2006-09-29 Chris Toshok <toshok@ximian.com>
21822 * DataGridBoolColumn.cs: we need to test equality in the face of
21823 possible null values (as is the case with the default NullValue).
21824 This patch keeps us from crashing in that case.
21826 2006-09-29 Jackson Harper <jackson@ximian.com>
21828 * TreeNodeCollection.cs: Don't do a recalculate/updatescrollbars
21829 here, since it will get called for every node collection in the
21830 tree. This is now done in the treeview once the sorting is
21832 * TreeView.cs: Recalculate the visible order, and update the
21833 scrollbars after sorting, set the top nope to the root so that the
21834 recalc actually works.
21836 2006-09-29 Chris Toshok <toshok@ximian.com>
21838 * LinkLabel.cs: more handling of the default link collection in
21839 the face of LinkArea manipulation. The default link collection
21840 contains 1 element (start=0,length=-1). If the user sets LinkArea
21841 to anything and the links collection is the default, clear it.
21842 Then only add the link if its nonempty. Fixes #79518.
21844 2006-09-29 Chris Toshok <toshok@ximian.com>
21846 * LinkLabel.cs (CreatePiecesFromText): calculate the length of a
21847 piece correctly when we hit a '\n'. Fixes #79517.
21849 2006-09-29 Chris Toshok <toshok@ximian.com>
21851 * MimeIcon.cs, ThemeGtk.cs, X11DesktopColors.cs, XplatUIX11GTK.cs:
21852 change the binding of gdk_init_check to take two IntPtr's, and
21853 pass IntPtr.Zero for both of them. Fixes #79520.
21855 2006-09-29 Mike Kestner <mkestner@novell.com>
21857 * ComboBox.cs : raise TextChanged on ComboTextBox.TextChanged.
21860 2006-09-28 Jackson Harper <jackson@ximian.com>
21862 * XplatUIX11.cs: When translating NC messages make sure we go from
21863 whole window to screen, not client window to screen.
21864 * MdiClient.cs: Remove the calls to PaintWindowDecorations, this
21865 method doesn't exist
21866 - Skip over controls that aren't forms when arranging.
21868 2006-09-28 Jackson Harper <jackson@ximian.com>
21870 * XplatUIWin32.cs: Clip the rect to the parent window.
21871 * XplatUIStructs.cs: Add clipping modes struct.
21872 * InternalWindowManager.cs: New private method that factors title
21873 bar heights in when calculating the pos of an NC mouse message.
21874 - Use SendMessage to force a paint when the form's size is changed
21875 instead of painting the decorations immediately.
21876 - Don't let the NC button click messages get to DefWndProc,
21877 because they will attempt to handle windowing themself, and this
21878 messes up z-order (it will put them in front of the scrollbars).
21879 * XplatUIX11.cs: Make sure that we don't reset window managers if
21880 we already have one (ie the window is an MDI window).
21882 2006-09-28 Chris Toshok <toshok@ximian.com>
21884 * MainMenu.cs: fix #79405 by way of a disgusting hack. all the
21885 menu code really needs going over.
21887 2006-09-27 Chris Toshok <toshok@ximian.com>
21889 * XplatUIX11.cs (SetWMStyles): more metacity wonderment. turns
21890 out metacity ignores the MAXIMIZE_HORZ/VERT messages unless the
21891 window is maximizable. So, we need to make sure that even if we
21892 clear the border/wm frame of those functions, they're still
21893 available (basically, we remove the decoration without removing
21894 the function). Half the fix for #79338.
21896 2006-09-27 Chris Toshok <toshok@ximian.com>
21898 * DataGrid.cs (ProcessGridKey): implement Shift-Tab handling.
21901 2006-09-27 Chris Toshok <toshok@ximian.com>
21903 * Splitter.cs: reorder things a bit so that we don't actually
21904 draw/move the splitter until after calling OnSplitterMoving. This
21905 lets users cancel/disallow the movement by explicitly setting
21906 event.SplitX/SplitY. Fixes #79372.
21908 2006-09-27 Jackson Harper <jackson@ximian.com>
21910 * XplatUIX11.cs: Don't hide the caret when it is being destroyed,
21911 because it is most likely on a window being destroyed, and that
21912 will give us an X11 error.
21914 2006-09-27 Chris Toshok <toshok@ximian.com>
21916 * PropertyGridView.cs: half of the fix for #78190. Clicking on
21917 the dropdown button now toggles between showing and hiding the
21918 dropdown. Also, get rid of dropdown_form_showing and just use
21919 dropdown_form.Visible. We still don't do a grab, but I'll leave
21920 that part to someone who has handled Capture-fu before.
21922 2006-09-27 Chris Toshok <toshok@ximian.com>
21924 * DataGrid.cs: return false if alt isn't pressed when '0' is
21925 pressed. this keeps the '0' key from being swallowed, and fixes
21928 2006-09-27 Chris Toshok <toshok@ximian.com>
21930 * ComboBox.cs: use Invalidate when scrolling the dropdown list.
21931 Calling Refresh (in response to a scrollbar event) screws up the
21932 scrollbar painting. Fixes bug #78923.
21934 2006-09-27 Chris Toshok <toshok@ximian.com>
21936 * Theme.cs (SystemResPool): make the "if hashtable[key] == null
21937 then insert into hashtable" blocks threadsafe.
21939 2006-09-27 Chris Toshok <toshok@ximian.com>
21941 * MessageBox.cs (CreateParams): the styles should be |'ed with our
21942 baseclass's, since otherwise the
21943 ControlBox/MinimizeBox/MaximizeBox assignments above have no
21944 effect. This gets the close button back in messageboxes.
21946 2006-09-27 Chris Toshok <toshok@ximian.com>
21948 * XplatUIX11.cs: make StyleSet and ExStyleSet check == with the
21949 flag, not just != 0. this makes flags that are actually multiple
21950 bits (like WS_CAPTION) work. fixes bug #79508.
21952 2006-09-27 Jordi Mas i Hernandez <jordimash@gmail.com>
21954 * PageSetupDialog.cs: add support for getting and settings the
21955 paper size, source and orientation.
21957 2006-09-26 Chris Toshok <toshok@ximian.com>
21959 * XplatUIX11.cs (SetWMStyles): turns out when SYSMENU is not set
21960 and caption == "", we need to remove the resize handles as well as
21963 * Control.cs (set_Text): turns out that setting Text on a form
21964 should change the WM styles on the window, since if ControlBox ==
21965 false, the only way to get a window border is to have a non-""
21966 Text property. check winforms/forms/text.cs for an example. so,
21967 call both XplatUI.SetWindowStyle and XplatUI.Text here to properly
21968 update both window styles and title. This fixes a lot of dialogs
21969 (including the preferences dialog in MonoCalendar.)
21971 2006-09-26 Chris Toshok <toshok@ximian.com>
21973 * XplatUIWin32.cs (SetParent): if parent == IntPtr.Zero (and the
21974 control isn't a Form), call Win32ShowWindow to hide the window,
21975 but don't update the control Visible property. When we reparent
21976 back to a parent control, call SetVisible in order for the
21977 window's visibility to be reinstated.
21979 * XplatUIX11.cs (SetParent): if hwnd.parent == null, reparent to
21982 * Control.cs (ControlCollection.Remove): remove that value.Hide()
21983 call for good, since it breaks MonoCalendar (and other things I'm
21984 sure.) Also, set all_controls to null *after* the owner calls,
21985 which end up regenerating it.
21986 (ChangeParent): allow new_parent to be == null, passing
21987 IntPtr.Zero down to XplatUI.
21989 this fixes #79294 the right way.
21991 2006-09-26 Mike Kestner <mkestner@novell.com>
21993 * GridEntry.cs : internal SetParent method.
21994 * PropertyGrid.cs : attach to property changed on the proper
21995 target if we have a hierarchical grid with subobjects. Setup
21996 GridItem.Parent for hierarchical items.
21997 * PropertyGridView.cs : Set value on the correct target for
21998 hierarchical grids. [Fixes #78903]
22000 2006-09-26 Chris Toshok <toshok@ximian.com>
22002 * Control.cs (ChildNeedsRecreating): this should return true if
22003 either we're being recreated and the child is in our list, or our
22004 parent is waiting for our recreation.
22006 2006-09-26 Chris Toshok <toshok@ximian.com>
22008 * Control.cs (ControlCollection.Remove): reinstate the
22009 value.Hide() call as suggested in bug #79294.
22011 2006-09-26 Sebastien Pouliot <sebastien@ximian.com>
22013 * XplatUIX11.cs: Fixed SetCursorPos to move the cursor to screen
22014 coordinates (versus a relative move).
22016 2006-09-26 Chris Toshok <toshok@ximian.com>
22018 * Control.cs: rework child recreation a little bit. It turns out
22019 that we race between the DestroyNotify the WM_DESTROY message. If
22020 the parent gets its DestroyNotify before the child gets the
22021 WM_DESTROY message, the child ends up not recreating (since the
22022 parent finishes its recreation on DestroyNotify, and the child
22023 checks ParentIsRecreating.)
22025 So, instead we store off a list of all the child controls which
22026 need to be recreated when the parent control starts to recreate
22027 itself. Then, when child controls get their WM_DESTROY message we
22028 check to see if they're in the parent's pending recreation list,
22029 and if so, we recreate. This removes all dependency on ordering
22030 from the code and fixes the initial MonoCalendar upgrade dialog.
22032 2006-09-26 Jackson Harper <jackson@ximian.com>
22034 * TextControl.cs: Use the Line to get the length of the line,
22035 since soft line breaks can change the end line.
22037 2006-09-26 Chris Toshok <toshok@ximian.com>
22039 * Control.cs (ControlCollection.AddImplicit): don't add the
22040 control again if it's already in one of our lists. This keeps us
22041 from adding controls over and over again for comboboxes when their
22042 handle gets recreated (as the combobox adds implicit controls in
22043 OnHandleCreated). Fixes the X11 errors in bug #79480.
22045 2006-09-26 Jackson Harper <jackson@ximian.com>
22047 * TextControl.cs: When deleting characters make sure that any
22048 orphaned zero lengthed tags get deleted.
22049 - Fix ToString for zero lengthed tags.
22051 2006-09-25 Jackson Harper <jackson@ximian.com>
22053 * TextControl.cs: When getting a tag at the location there can be
22054 multiple tags at the same spot, these are 0-lengthed tags that
22055 appear when extra formatting has been stuck in a location. We
22056 need to pull out the last of these 0 lengthed tags.
22058 2006-09-25 Jackson Harper <jackson@ximian.com>
22060 * TextControl.cs: Fix print out in debug method.
22061 * TextBoxBase.cs: When text is set bail if we are setting to the
22064 2006-09-24 Alexander Olk <alex.olk@googlemail.com>
22066 * FontDialog.cs: Fixed the up/down arrow keys issue from bug #79478.
22067 It is now possible to change the selected index in a FontXXXListBox
22068 with the up and down arrow keys from the FontXXXTextBoxes.
22069 Also, send the FontXXXTextBox mouse wheel event to the corresponding
22070 FontXXXListBoxes to match ms.
22072 2006-09-22 Sebastien Pouliot <sebastien@ximian.com>
22074 * SystemInformation.cs: Return a clone of the theme's MenuFont because
22075 anyone can dispose it, anytime. All other properties returns enums,
22076 structs or basic types so they don't need such tricks.
22078 2006-09-22 Jackson Harper <jackson@ximian.com>
22085 * XplatUIDriver.cs: Update interface to add a primary selection
22086 flag, so the driver can use the primary selection buffer if
22088 * XplatUIX11.cs: Allow the clipboard to retrieve from PRIMARY.
22090 * RichTextBox.cs: We need to supply the data object to paste now
22091 (so we can choose to supply CLIPBOARD or PRIMARY).
22092 * TextBoxBase.cs: Supply data object to paste (see above).
22093 - Middle click uses the primary selection data object.
22095 2006-09-21 Chris Toshok <toshok@ximian.com>
22097 * XplatUIX11.cs: first little cleanup of the StyleSet (...) block
22098 of SetWMStyles. It's still a rat's nest and is largely
22099 order-dependent which I dislike immensely. This also fixes the X
22100 button disappearing from toplevel forms.
22102 2006-09-21 Mike Kestner <mkestner@novell.com>
22104 * ListBox.cs: move Jordi's click/dblclick raising code to the
22107 2006-09-21 Jordi Mas i Hernandez <jordimash@gmail.com>
22109 * ListBox.cs: Fixes 79450
22111 2006-09-21 Mike Kestner <mkestner@novell.com>
22113 * TreeView.cs: guard against disposed conditions in UpdateScrollbars
22114 to deal with people updating the TreeNodeCollection after the tree
22115 is disposed. "Fixes" 79330.
22117 2006-09-20 Jackson Harper <jackson@ximian.com>
22119 * TextControl.cs: Push the cursor record onto the undo stack
22120 before the delete action. This fixes 78651.
22122 2006-09-20 Jonathan Chambers <joncham@gmail.com>
22124 * PropertyGridView.cs: Remove WindowStyles.WS_VISIBLE from
22125 CreateParams. Fixes 79329.
22127 2006-09-19 Chris Toshok <toshok@ximian.com>
22129 * XplatUIX11.cs: a couple of blanket code massage passes to clean
22130 things up a bit. First, get rid of the NetAtoms array (and the NA
22131 enum), and just embed the atoms as static fields. Also, add a
22132 couple of functions (StyleSet and ExStyleSet) to clean up all the
22133 bitmask testing of styles.
22135 * X11Structs.cs: remove the NA enum, not needed anymore.
22137 2006-09-19 Chris Toshok <toshok@ximian.com>
22139 * XplatUIX11.cs: apply Alexander's tool window fix for bug #79245
22140 (mapping them to _NET_WM_WINDOW_TYPE_UTILITY). and add a little
22141 added cleanup to get MessageBox titles appearing again, which were
22142 broken by my earlier fix for caption-less/ControlBox-less windows.
22144 2006-09-18 Jonathan Pobst <monkey@jpobst.com>
22146 * ToolStripArrowRenderEventArgs.cs, ToolStripArrowRenderEventHandler.cs,
22147 ToolStripContentPanelRenderEventArgs.cs, ToolStripContentPanelRenderEventHandler.cs,
22148 ToolStripGripRenderEventArgs.cs, ToolStripGripRenderEventHandler.cs,
22149 ToolStripItemClickedEventArgs.cs, ToolStripItemClickedEventHandler.cs,
22150 ToolStripItemEventArgs.cs, ToolStripItemEventHandler.cs,
22151 ToolStripItemImageRenderEventArgs.cs, ToolStripItemImageRenderEventHandler.cs,
22152 ToolStripItemRenderEventArgs.cs, ToolStripItemRenderEventHandler.cs,
22153 ToolStripItemTextRenderEventArgs.cs, ToolStripItemTextRenderEventHandler.cs,
22154 ToolStripPanelRenderEventArgs.cs, ToolStripPanelRenderEventHandler.cs,
22155 ToolStripRenderEventArgs.cs, ToolStripRenderEventHandler.cs,
22156 ToolStripSeparatorRenderEventArgs.cs, ToolStripSeparatorRenderEventHandler.cs:
22158 * ToolStripPanel.cs, ToolStripContentPanel.cs, ToolStripSeparator.cs,
22159 ToolStripButton.cs: Stubs needed for above.
22160 * ToolStrip.cs, ToolStripItem.cs: Stub a few variables/properties for above.
22162 2006-09-15 Chris Toshok <toshok@ximian.com>
22165 - make the MessageQueues hashtable Synchronized.
22167 - SendMessage: if the Hwnd is owned by a different thread, use the
22168 AsyncMethod stuff to dispatch the SendMessage on the hwnd's
22169 thread. Fixes bug #79201.
22171 2006-09-15 Chris Toshok <toshok@ximian.com>
22173 * XplatUIX11.cs (SetWMStyles): rework the #79368 fix slightly. If
22174 ControlBox == false, we disallow maximize/minimize/close. If the
22175 form Caption is "" we also disallow move (and get rid of the Title
22176 decoration). Unfortunately, regardless of how things are set,
22177 we're stuck with the Title and WM menu.
22179 2006-09-15 Chris Toshok <toshok@ximian.com>
22181 * Application.cs: add locking around the static message_filters
22182 ArrayList, part of #79196.
22184 2006-09-15 Chris Toshok <toshok@ximian.com>
22186 * XplatUIX11.cs (SetWMStyles): if Form.Text == "" and
22187 Form.ControlBox == false, the window has no titlebar nor resize
22188 handles. fixes bug #79368.
22190 2006-09-15 Chris Toshok <toshok@ximian.com>
22192 * TextBoxBase.cs: in CalculateScrollBars make sure LargeChange is
22193 >= 0. Fixes bug #79370.
22195 2006-09-15 Jonathan Pobst <monkey@jpobst.com>
22196 * FlowLayoutPanel.cs, FlowLayoutSettings.cs: Initial commit.
22198 Add properties: LayoutEngine, Margin, DefaultMargin.
22199 Add method: GetPreferredSize.
22200 Move layout logic from PerformLayout to layout engines.
22202 2006-09-13 Chris Toshok <toshok@ximian.com>
22204 * XplatUIX11.cs: more destroy work. Jackson pointed out that my
22205 fix for #79326 broke #78718, so this change addresses that.
22207 - in SendWMDestroyMessages remove the call to
22208 CleanupCachedWindows, since we might be recreating the control and
22209 need to maintain the references to right Hwnd handles. Also, set
22210 the zombie flag to true for each of the children in the hierarchy
22211 instead of calling hwnd.Dispose. This will cause GetMessage to
22212 ignore all events for the window except for DestroyNotify.
22214 - In GetMessage, ignore messages except for DestroyNotify for
22217 * Control.cs: revert the is_recreating fix from the last
22218 ChangeLog. It's definitely "right", but it breaks switching from
22219 an MDI form to a non-MDI form. Will need to revisit that.
22221 * Hwnd.cs: add a zombie flag, which means "the
22222 client_window/whole_window handles are invalid, but we're waiting
22223 for the DestroyNotify event to come in for them". Set the flag to
22224 false explicitly if setting WholeWindow/ClientWindow, and also
22227 2006-09-13 Chris Toshok <toshok@ximian.com>
22229 * XplatUIX11.cs: rework window destruction slightly.
22231 - when destroying the windows associated with a control, we don't
22232 need 2 separate XDestroyWindow calls. Just the one for the
22233 whole_window (or for client_window if whole_window is somehow
22234 IntPtr.Zero -- can this happen?) is enough.
22236 - reworked SendWMDestroyMessages slightly, so we always dispose
22237 the child control hwnd's after sending the messages.
22239 - refactored out the ActiveWindow/FocusWindow/Caret clearing from
22240 the two places it was used (one was even using hwnd.Handle and the
22241 other hwnd.client_window. ugh), adding another call in
22242 SendWMDestroyMessages. We need this new call because now the
22243 DestroyNotify events in the queue will be ignored for the child
22244 controls (as their hwnd's were disposed, and the window id's
22245 removed from the hashtable in SendWMDestroyMessages.) fun, eh?
22247 - this fixes bug #79326.
22249 2006-09-13 Chris Toshok <toshok@ximian.com>
22251 * Control.cs: don't always set is_recreating to false at the end
22252 of RecreateHandle, since sometimes we're not done (and won't be
22253 until WndProc handles the WM_DESTROY message). Also, set
22254 is_recreating to false in the WM_DESTROY handling code. Part of
22255 the fix for bug #79326.
22257 2006-09-13 Miguel de Icaza <miguel@novell.com>
22259 * X11DesktopColors.cs: Start the droppage of debugging messages.
22261 * FileDialog.cs: Store the configuration file in ~/.mono/mwf_config
22263 2006-09-13 Jonathan Pobst <monkey@jpobst.com>
22265 * SplitContainer.cs, SplitterPanel.cs: Initial implementation [2.0].
22267 2006-09-12 Chris Toshok <toshok@ximian.com>
22269 * DataGrid.cs (get_ListManager): if the list_manager is null, try
22270 to create it using SetDataSource. Fixes bug #79151.
22272 2006-09-11 Chris Toshok <toshok@ximian.com>
22274 * XEventQueue.cs: add a DispatchIdle property.
22276 * XplatUIX11.cs (UpdateMessageQueue): only emit the Idle event if
22277 either the queue is null, or the queue has DispatchIdle set to
22279 (DoEvents): set queue.DispatchIdle to false around the
22280 peek/translate/dispatch message loop in this method. This keeps
22281 Application.Doevents from emitting idle events. Part of the fix
22284 2006-09-11 Chris Toshok <toshok@ximian.com>
22286 * DataGrid.cs (set_DataSource): make this work for both the
22287 winforms/datagrid test and ReportBuilder. It seems as though when
22288 we've created a ListManager (or maybe it's if we have a
22289 BindingContext?), when we set the DataSource it clears the
22290 DataMember to "". otherwise we reuse the datamember. Fixes bug
22293 2006-09-11 Chris Toshok <toshok@ximian.com>
22295 * XplatUIX11.cs: deal with queue being null, which happens in all
22296 the Clipboard functions. Fixes one of the two problems mentioned
22299 2006-09-11 Chris Toshok <toshok@ximian.com>
22301 * MenuAPI.cs: rework OnMouseUp a bit so that releasing the mouse
22302 button on various spots (including outside the menu) works closer
22303 to MS, and doesn't crash. Fixes #79343.
22305 2006-09-11 Gert Driesen <drieseng@users.sourceforge.net>
22307 * ListView.cs: Do not initialize item_sorter in init. To match MS,
22308 return null for ListViewItemSorter if View is SmallIcon or LargeIcon
22309 and the internal comparer is set. When a new ListViewItemSorter is set,
22310 sort the items. Use Enum.IsDefined to verify whether a valid SortOrder
22311 was specified. No further processing is necessary if SortOrder is set
22312 to it's current value. If Sorting is modified to None, and View is
22313 neither SmallIcon nor LargeIcon then: on 2.0 profile set item_sorter
22314 (either custom or our internal ItemComparer) to null, on 1.0 profile
22315 only set item_sorter to null if its our internal IComparer. If Sorting
22316 is modified to Ascending or Descending, then use our internal IComparer
22317 if none is set, and if the current IComparer is our internal one then:
22318 on 2.0 profile always replace it with one for new Sorting, and on 1.0
22319 profile only use new Sorting if view is not SmallIcon or LargeIcon. Use
22320 Enum.IsDefined to verify whether a valid View value is specified in
22321 its setter. Automatically sort listview items when listview is
22322 created. In Sort, do nothing if ListView is not yet created, or if
22323 no item_sorter is set (no Sorting was set, Sorting was explicitly set
22324 to None or ListViewItemSorter was set to null). Added Sort overload
22325 taking a bool to indicate whether the ListView should be redrawn when
22326 items are sorted (we use this in ListViewItemCollection to avoid double
22327 redraws). Modified our internal IComparer to take the sort order into
22328 account. In Add and AddRange methods of ListViewItemCollection, also
22329 call Sort if Sorting is None (necessary for SmallIcon and LargeIcon
22330 view), but use overload with noredraw option to avoid double redraw.
22331 On 2.0 profile, throw NotSupportedException when setting CheckBoxes to
22332 true when View is Tile, and do the same when attempting to set View to
22333 Tile when CheckBoxes is true. Avoid maintaining separate ArrayLists
22334 for selected/checked indices, as it involves overhead when sorting is
22335 done while these collections are not used all that often. Instead
22336 we'll build the indices on demand. Modified IList implementation of
22337 CheckedIndexCollection to use public methods if object is int.
22338 Modified CheckedListViewItemCollection to hide checked items if
22339 ListView.CheckBoxes is false. Removed LAMESPEC remark in
22340 ListViewItemCollection as the .NET SDK docs have been fixed. Modified
22341 IList implementation in SelectedIndexCollection to use public methods
22342 if object is int. Modified SelectedListViewItemCollection to hide
22343 selected items if listview is not yet created.
22344 * ListViewItem.cs: CheckedIndices list no longer needs to be
22345 maintained separately (see ListView changes). Also clone font, fixes
22348 2006-09-11 Mike Kestner <mkestner@novell.com>
22350 * ComboBox.cs: if we are updating the contents of the currently
22351 selected index, refresh the control or the textbox selection.
22354 2006-09-11 Mike Kestner <mkestner@novell.com>
22356 * ComboBox.cs (UpdateBounds): use SetBounds not SetBoundsCore since
22357 the 'specified' logic has been moved there. This seems like a bug
22358 in Control.cs, since our current SetBoundsCore completely ignores
22359 the specified parameter. Peter's commit seems to indicate that is
22360 the way the MS control implementation works. [Fixes #79325]
22362 2006-09-10 Jonathan Chambers <joncham@gmail.com>
22364 * XplatUI.cs: Set default_class_name to be composed
22365 of current domain id. This allows MWF to be loaded in multiple
22368 2006-09-09 Miguel de Icaza <miguel@novell.com>
22370 * X11Keyboard.cs: If we are unable to obtain the input method, do
22371 not call CreateXic to create the input context. Should fix
22374 2006-09-08 Alexander Olk <alex.olk@googlemail.com>
22376 * MimeIcon.cs: Rewrote major parts. Dropped KDE support for now.
22377 Simplified gnome support by adding more pinvokes to get the
22378 icon for a file or mime type.
22380 2006-09-08 Jackson Harper <jackson@ximian.com>
22382 * MenuAPI.cs: Deslect popup context menu items before closing the
22383 window, so that you don't see the previously selected item
22384 selected when you reopen the menu.
22385 * TextControl.cs: Update the cursor position even if we don't have
22386 focus. This fixes typing in things like the ComboBox. I'm not
22387 totally sure we should always set the visibility if we don't have
22388 focus, but couldn't find any corner cases where the cursor showed
22389 up when it shouldn't.
22391 2006-09-08 Chris Toshok <toshok@ximian.com>
22393 * X11Keyboard.cs: In UpdateKeyState vkey can be any integer, but
22394 our arrays are length 256. & 0xff before indexing. Fixes the
22395 crash in bug #78077.
22397 2006-09-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
22399 * ThemeWin32Classic.cs:
22400 * DateTimePicker.cs: Draw check box if DateTimePicker.ShowCheckBox
22401 is true. Handle that check box too.
22403 2006-09-07 Chris Toshok <toshok@ximian.com>
22405 * MenuAPI.cs: move the PerformClick call to OnMouseUp. Fixes bug
22408 2006-09-07 Chris Toshok <toshok@ximian.com>
22410 * Control.cs: in set_BackColor only do the work if
22411 background_color != value.
22413 * XplatUIX11.cs: move the clearing of invalid areas (both client
22414 and nc) to the same block of code where we set (nc_)expose_pending
22415 to false. That is, move it from PaintEventEnd to PaintEventStart,
22416 so things that cause invalidates from within OnPaint will trigger
22417 another call to OnPaint. Fixes bug #79262.
22419 2006-09-07 Alexander Olk <alex.olk@googlemail.com>
22421 * Theme.cs: Use correct icon for UIIcon.PlacesPersonal
22422 * FileDialog.cs: Fix typo
22424 2006-09-07 Jackson Harper <jackson@ximian.com>
22426 * ThemeWin32Classic.cs: oops, forgot to commit. Draw the images
22427 for tab pages if they have any.
22429 2006-09-06 Mike Kestner <mkestner@novell.com>
22431 * Splitter.cs: use the "current" rect when finishing drag handle
22432 to avoid an artifact demonstrated by resedit.exe. [Fixes #79251]
22434 2006-09-06 Mike Kestner <mkestner@novell.com>
22436 * Splitter.cs: draw the drag handle at X or Y instead of 0 to deal
22437 support offset splitters. [Fixes #79298]
22439 2006-09-06 Alexander Olk <alex.olk@googlemail.com>
22441 * Mime.cs: Fixed a bug that could override the global mime type
22444 2006-09-05 Jackson Harper <jackson@ximian.com>
22446 * TabControl.cs: Better calculation method for setting the slider
22447 pos. Prevents crashes on really wide tabs.
22448 - Draw Image on tab pages if an image list is used.
22450 2006-09-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
22452 * MonthCalendar.cs: When Font changes, the Size should be
22453 updated to fit the new font's space requirements.
22455 2006-09-02 Alexander Olk <alex.olk@googlemail.com>
22457 * ListBox.cs: If the items are cleared with Items.Clear set
22460 2006-09-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
22462 * MonthCalendar.cs: Handle arrow keys as input keys. Also
22463 fire DateChanged event instead of DateSelected event when
22464 the date was changed by keyboard interaction.
22466 2006-09-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
22468 * DateTimePicker.cs: Handle DateChanged for the associated
22469 month_calendar control, and set month_calendar.Font from
22470 OnFontChanged method, as well as resize the height of the
22471 control when needed. Make PreferredHeight proportional.
22473 2006-09-01 Chris Toshok <toshok@ximian.com>
22475 * DataGrid.cs: grr, stop overthinking the DataMember/DataSource
22478 * BindingContext.cs (HashKey.GetHashCode): use ^ instead of +.
22480 2006-09-01 Peter Dennis Bartok <pbartok@novell.com>
22482 * FileDialog.cs: Set ClientSize instead of window size, to allow space
22483 for decorations (Fixes #79219)
22485 2006-09-01 Mike Kestner <mkestner@novell.com>
22487 * ComboBox.cs: first stab at sorting plus some selection handling
22488 fixes to bring us more in line with MS behavior. Also switches back
22489 to index based selection. Alternative patches for index-based
22490 selection were provided by Jackson Harper, Carlos Alberto Cortez,
22491 and latency@gmx.de on bug 78848. I assume they were similar to this
22492 code I've had simmering in my tree forever.
22495 2006-09-01 Chris Toshok <toshok@ximian.com>
22497 * CurrencyManager.cs (ListChangedHandler): in the ItemAdded case,
22498 when setting list position guard against ending up with a -1 index
22499 (the other part of the fix for #78812). Should probably make sure
22500 we don't need the analogous fix in the ItemDeleted case.
22503 - in SetDataSource, work around the fact that the way
22504 OnBindingContextChanged is invoked will cause us to re-enter this
22505 method. I'll remove the hack once I investigate
22506 OnBindingContextChanged.
22508 - fix the logic in set_DataSource and set_DataMember (basically
22509 what to do if the other of the two is null.)
22511 - in OnListManagerItemChanged, we need to take into account the
22512 edit row when deciding whether or not to call RecreateDataGridRows
22513 (part of the fix for #78812).
22515 2006-09-01 Jackson Harper <jackson@ximian.com>
22517 * Splitter.cs: Don't do anything if there is no control to affect
22518 (prevents us from crashing in weird tet cases).
22519 * TreeView.cs: Bounding box for the mouse movement reverting
22520 focus/selection back to previously selected node. This matches
22521 MS, and makes the tree a lot more useable.
22522 * GroupBox.cs: Instead of drawing over the lines of the groupbox,
22523 use clipping so they are not drawn. This fixes when the control
22524 is set to have a transparent background, or if it was over an
22527 2006-09-01 Alexander Olk <alex.olk@googlemail.com>
22529 * MimeIcon.cs: Improved handling for reading default icons when
22530 using gnome (2.16 made it necessary). Check and read svg icons
22531 first, then 48x48 and then 32x32 icons.
22533 2006-08-31 Chris Toshok <toshok@ximian.com>
22535 * DataGridTextBoxColumn.cs: only hide the textbox if it's still
22538 * DataGridTextBox.cs: Pass Tab's up to the datagrid by calling
22539 ProcessKeyPreview. Fixes part of #77806.
22541 * DataGrid.cs: big patch.
22543 - revert the queueing up of DataSource/DataMember if inside
22544 BeginInit/EndInit calls. That's not the way the datagrid achieves
22545 its delayed databinding. Instead, call SetDataSource in
22546 OnBindingContextChanged. This mimic's MS's behavior, and fixes
22549 - Also, it wasn't mentioned in #78811, but the test case exhibits
22550 behavior that was lacking in our datagrid implementation - Columns
22551 that have mapping names that don't exist in the datasource's
22552 properties aren't shown. Yuck. To fix this I added the bound
22553 field to the column style, and basically any calculation to figure
22554 out anything about columns uses a loop to find the bound columns.
22555 still need to investigate if I can cache an array of the bound
22556 columns or if the indices must be the same.
22558 - When setting CurrentCell, we no longer abort if the cell being
22559 edited was in the add row. This fixes the other part of #77806.
22561 - The new code also fixes #78807.
22563 * ThemeWin32Classic.cs: perpetrate the same disgusting
22564 column.bound field hack, and only render bound fields.
22566 2006-08-31 Chris Toshok <toshok@ximian.com>
22568 * DataGridColumnStyle.cs: add bound field. this field is true if
22569 the datasource has a property corresponding to the mapping name.
22571 * DataGridTableStyle.cs: set the bound field on the column styles
22572 depending on whether or not we have a column for that property.
22574 2006-08-31 Peter Dennis Bartok <pbartok@novell.com>
22576 * Splitter.cs (SetBoundsCore): Don't ignore width/height of the
22577 splitter control (fixes #79228)
22579 2006-08-31 Chris Toshok <toshok@ximian.com>
22581 * DataGridColumnStyle.cs: we need to delay the assignment of
22582 property descriptor until the last possible moment due to the lazy
22583 databinding stuff in the datagrid. Also, fix the exceptions
22584 thrown by CheckValidDataSource to match MS.
22586 2006-08-31 Jackson Harper <jackson@ximian.com>
22588 * Form.cs: When activated select the active control, if there is
22589 no active control, we select the first control.
22590 * XplatUIX11.cs: If there is no focus control when we get a
22591 FocusIn event, find the toplevel form and activate it. This
22592 occurs when you popup a window, it becomes the focus window, then
22593 you close that window, giving focus back to the main window.
22595 2006-08-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
22597 * MonthCalendar.cs:
22598 * ThemeWin32Classic.cs: Cache Font in bold style, as well
22599 as StringFormat with Center alignments in MonthCalendar,
22600 instead of creating new ones when drawing the control.
22601 Also, draw the month name in bold style.
22603 2006-08-30 Peter Dennis Bartok <pbartok@novell.com>
22606 - PerformLayout(): It would seem MS performs the fill even if the
22607 control is not visible (part of #79218 fix)
22608 - ResetBackColor(): Use the setter to reset the color, to allow
22609 overriders to catch the change.
22611 - .ctor: Call UpdateBounds to adjust client rectangle (part of #79218 fix)
22612 - CreateHandle(): dito (part of $79218 fix)
22613 - Don't set an icon if we have a dialog
22614 * ScrollableControl.cs:
22615 - set_AutoScrollMinSize: Setting the property enables AutoScroll (#79218)
22616 - ScrollIntoView(): No need to scroll if control is already visible
22617 (resolves fixme and fixes #79218)
22619 2006-08-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
22621 * MonthCalendar.cs: Change proportions in SingleMonthSize
22622 to match the aspect of the original control.
22624 2006-08-29 Alexander Olk <alex.olk@googlemail.com>
22626 * XplatUIX11.cs: Fix for a metacity/X problem where windows don't
22627 get updated when they get maximized.
22629 2006-08-29 Peter Dennis Bartok <pbartok@novell.com>
22631 * XplatUIX11.cs: Handle windows with no border (Fixes part of #79160)
22633 2006-08-29 Chris Toshok <toshok@ximian.com>
22635 * XplatUIX11.cs: when destroying the FocusWindow, send KILLFOCUS.
22637 2006-08-29 Jackson Harper <jackson@ximian.com>
22639 * TreeView.cs: Need to track selected node and highlighted node,
22640 they aren't always the same thing, when the mouse is down on a
22641 node it is hilighted, but not selected yet.
22642 - Do the HideSelection stuff right
22643 - Need to focus on rbutton mouse down. And redraw selection when
22644 right click is mouse upped.
22646 2006-08-29 Mike Kestner <mkestner@novell.com>
22648 * ThemeWin32Classic.cs: draw selections for columns in FullRowSelect
22649 when SubItems.Count < Columns.Count. [Fixes #79167]
22651 2006-08-28 Peter Dennis Bartok <pbartok@novell.com>
22653 * TextControl.cs (FindCursor): Fix math error (Fixes #78402)
22655 2006-08-28 Peter Dennis Bartok <pbartok@novell.com>
22657 * XplatUIX11.cs: Preempt the roundtrip for getting the location back
22658 from X. Only send based on ConfigureNotify if we don't have the
22659 correct location in hwnd (if the window manager moved us)
22661 2006-08-28 Mike Kestner <mkestner@novell.com>
22663 * ListView.cs: remove a TODO.
22664 * ThemeWin32Classic.cs: implement HideSelection support for ListView.
22665 [Fixes ListView part of #79166]
22667 2006-08-28 Mike Kestner <mkestner@novell.com>
22669 * ListView.cs: move wheel handler to parent since it is focused
22670 instead of the item_control now. [Fixes #79177]
22672 2006-08-28 Mike Kestner <mkestner@novell.com>
22674 * ThemeWin32Classic.cs: only highlight subitems in fullrowselect
22675 when the control is focused. [Fixes #79171]
22677 2006-08-28 Mike Kestner <mkestner@novell.com>
22679 * ListView.cs: size the item and header controls for empty and
22680 unscrollable views.
22681 * ThemeWin32Classic.cs: draw disabled backgrounds.
22684 2006-08-28 Chris Toshok <toshok@ximian.com>
22686 * Form.cs: remove unused "active_form" static field.
22688 * Hwnd.cs: lock around accesses to static windows collection.
22690 * Application.cs: lock threads in Exit ().
22692 2006-08-28 Chris Toshok <toshok@ximian.com>
22694 * NativeWindow.cs: lock around accesses to window_collection.
22696 2006-08-28 Chris Toshok <toshok@ximian.com>
22698 * Control.cs: err, fix this the right way, by locking on controls
22699 when using it. not by making it synchronized.
22701 2006-08-28 Chris Toshok <toshok@ximian.com>
22703 * Control.cs: make the static "controls" field synchronized, as it
22704 gets updated from multiple threads.
22706 2006-08-27 Peter Dennis Bartok <pbartok@novell.com>
22708 * XplatUIX11.cs: PostQuitMessage is thread-specific not app-specific.
22709 Prevent other threads from exiting when calling thread sets quit state.
22710 * XEventQueue.cs: Added PostQuitState property
22712 2006-08-27 Chris Toshok <toshok@ximian.com>
22714 * AsyncMethodData.cs: add a slot for the window handle.
22716 * XplatUIX11.cs (SendAsyncMethod): send the event to the right
22717 window (the destination control's window, not the foster window).
22719 * Control.cs (BeginInvokeInternal): store the window's handle in
22720 the AsyncMethodData.
22723 2006-08-27 Peter Dennis Bartok <pbartok@novell.com>
22726 - PostQuitMessage: Removed resetting S.D display handle, we might have
22727 another loop started after calling PostQuitMessage (Fixes #79119)
22728 - Created destructor to reset S.D handle
22730 2006-08-27 Peter Dennis Bartok <pbartok@novell.com>
22732 * XplatUIX11.cs (SetCursor): Issue flush after setting the cursor (#79168)
22734 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
22736 * TextControl.cs (Insert): Update the caret position even if we don't
22737 have a handle yet, just don't call the driver in that case.
22738 * TextBoxBase.cs (set_SelectedText): Set the Start and End selection
22739 to the end of the new selection text (Fixes #79184)
22741 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
22743 * Form.cs (Activate): Only activate if the handle is created)
22745 - Mark window as invisible when it's disposed
22746 - Check if window handle is created when setting window visible,
22747 instead of relying just on the is_created variable
22748 - Check if object is disposed when creating the control (Fixes #79155)
22750 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
22752 * ScrollableWindow.cs (ScrollWindow): Don't actually perform layouting
22753 when allowing layout again. Otherwise we re-generate the anchoring
22754 distance to the border again and actually alter what the user wanted
22755 This is ugly, it'd be better if we used DisplayRectangle instead of
22756 ClientRectangle for Control.UpdateDistances, but that causes us to
22757 have other problems (initial anchoring positons would be wrong)
22760 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
22763 - The size and location setters shouldn't go directly to
22764 SetBoundsCore, but to SetBounds, which triggers layout on the
22765 parent, then calls SetBoundsCore. (Related to fix for #78835)
22766 - SetBounds: Moved actual location update code into this function
22767 from SetBoundsCore, to match MS. Added call to PerformLayout if
22768 we have a parent (to trigger resizing of anchored parents if the
22769 child size has changed (see testcase for #78835)
22770 * ListBox.cs, Form.cs: Call SetBounds instead of SetBoundsCore to match
22772 * ScrollableControl.cs (CalculateCanvasSize): Use shortcut variable
22774 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
22776 * XplatUIX11.cs: Don't reset the DisplayHandle that's stored in
22777 System.Drawing when a toplevel window gets closed; there might
22778 be other toplevel windows belonging to the same app (Fixes #78052)
22780 2006-08-26 Alexander Olk <alex.olk@googlemail.com>
22782 * FileDialog.cs: After reading FileDialog settings from mwf_config
22783 use Desktop prefix only if a real folder doesn't exist anymore.
22784 * FontDialog.cs: Added char sets.
22785 It is now possible to select the font, size or style with the
22788 2006-08-25 Kornél Pál <kornelpal@gmail.com>
22790 * PrintPreviewDialog.cs: Use assembly name constants.
22792 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
22794 * XplatUIWin32.cs (ScrollWindow): Use clipping rectangle arg (prevents
22795 scrollbar from whacking it's buttons)
22797 2006-08-24 Chris Toshok <toshok@ximian.com>
22799 * ScrollableControl.cs: fix #78271. There's a lot of misc stuff
22800 in this patch (aggregating setting Left/Top/Width/Height to
22801 setting Bounds on the scrollbars), but the crux of the fix is in
22802 Recalculate, where we scroll by the remaining scroll_position if
22803 we're hiding a scrollbar. The 2*$5 reward in the comment is
22806 2006-08-24 Jackson Harper <jackson@ximian.com>
22809 * MdiWindowManager.cs: If the form is made a non-mdi window we
22810 need to remove the form closed event so that closing forms works
22813 2006-08-24 Jackson Harper <jackson@ximian.com>
22815 * Control.cs: Make IsRecreating internal so that the driver can
22817 - Temporarily remove the Hide when controls are removed, its
22818 making a whole bunch of things not work because visibility isn't
22819 getting reset elsewhere correctly
22820 * Form.cs: Need to do a full handle recreation when the mdi parent
22822 * XplatUIX11.cs: If we are recreating handles don't dispose the
22823 HWNDs. What was happening is the handles were being recreated in
22824 SendWMDestroyMessages, but then flow continued on in that method
22825 and destroyed the new handles.
22827 2006-08-23 Jackson Harper <jackson@ximian.com>
22829 * Form.cs: MdiClient is always at the back of the bus
22830 * Control.cs: When the order of items in the collection is changed
22831 we need to reset the all_controls array
22832 - do the same sorta setup thats done when adding a control when a
22833 control is set on the collection.
22835 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
22837 * TextBoxBase.cs (get_Text): Return an empty array if our document
22838 is empty (fixes #79052)
22840 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
22842 * Control.cs: We should call IsInputChar on only on WM_CHAR but not
22843 on WM_SYSCHAR messages (fixes #79053)
22845 2006-08-23 Chris Toshok <toshok@ximian.com>
22847 * DataGrid.cs: fix flickering when scrolling vertically.
22849 2006-08-23 Chris Toshok <toshok@ximian.com>
22851 * DataGrid.cs (EndEdit): only invalidate the row header when we
22854 2006-08-23 Chris Toshok <toshok@ximian.com>
22856 * ThemeWin32Classic.cs: fix the clip munging of the datagrid paint
22857 methods. fixes the flicker when scrolling around.
22859 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
22861 * FileDialog.cs: Making sure the control is created before we get a
22862 chance to use it with BeginInvoke (Fixes #79096)
22864 2006-08-23 Chris Toshok <toshok@ximian.com>
22866 * ThemeWin32Classic.cs (DataGridPaintRows): calculate the proper
22867 width to use when painting the rows.
22869 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
22872 - Throw ArgumentException if a negative value is passed to SelectionLength
22873 - Update the selection end if start is moved. end needs to be always
22874 after start. (Fixes #79095)
22875 - Track selection length; MS keeps the selection length even if start
22876 is changed; reset on all other operations affection selection
22878 2006-08-22 Jackson Harper <jackson@ximian.com>
22880 * TreeView.cs: Make sure both scrollbars get displayed and sized
22881 correctly when the other bar is visible.
22882 - Use the original clip rectangle for checking if the area between
22883 the two scrollbars is visible, not the viewport adjusted clipping
22886 2006-08-22 Jackson Harper <jackson@ximian.com>
22888 * Binding.cs: We don't use IsBinding because it requires the
22889 control to be created, which really shouldn't be necessary just to
22890 set a property on the control.
22892 2006-08-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
22894 * ComboBox.cs: Some CB.ObjectCollection methods must throw
22895 ArgumentNullReferenceException when the argument is null.
22897 2006-08-21 Jackson Harper <jackson@ximian.com>
22899 * Timer.cs: Track the thread that the timer is started in (NOT
22900 CREATED), this way messages for it will only be triggered on its
22902 * XEventQueue.cs: Track the timers here, this makes timers per
22904 * XplatUIX11.cs: The timers are moved to the XEventQueue.
22906 2006-08-19 Chris Toshok <toshok@ximian.com>
22908 * XplatUIX11.cs: after further communication with pdb, we get the
22909 best of both worlds. SetZOrder working for un-Mapped windows, and
22910 no X errors for un-mapped windows.
22912 2006-08-19 Chris Toshok <toshok@ximian.com>
22914 * XplatUIX11.cs (SetZOrder): remove the if (!hwnd.mapped) check,
22915 as it was causing pdn toolbars to not have the correct stacking.
22917 2006-08-18 Mike Kestner <mkestner@novell.com>
22919 * ListView.cs : guard against negative ClientArea.Width in scrollbar
22920 calculation. Not sure why control should ever be setting a negative
22921 width though. Fixes #78931.
22923 2006-08-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
22925 * ComboBox.cs: Throw ArgumentNullException when adding/modifyng
22926 null items in ObjectCollection class.
22927 * ListBox.cs.: Likewise.
22929 2006-08-18 Atsushi Enomoto <atsushi@ximian.com>
22931 * ThemeNice.cs, ThemeClearlooks.cs : remove RadioButton_DrawFocus()
22932 as the base method in ThemeWin32Classic should work fine.
22935 2006-08-18 Jackson Harper <jackson@ximian.com>
22937 * Binding.cs: When validating if the value entered doesn't convert
22938 properly reset to the old value.
22939 * RadioButton.cs: Don't fire click when we get focus.
22941 2006-08-18 Jackson Harper <jackson@ximian.com>
22943 * FileDialog.cs: Paint the selection on the directory combobox the
22946 2006-08-17 Jackson Harper <jackson@ximian.com>
22948 * ErrorProvider.cs: Don't allow the error control to be selected.
22949 * Control.cs: Don't send the SetFocus messages, the control
22950 activation will do this, and if we do it blindly here validation
22953 2006-08-17 Jackson Harper <jackson@ximian.com>
22956 * ContainerControl.cs: Make validation events fire in the correct
22957 order. TODO: For some reason the first validation event is not
22960 2006-08-17 Mike Kestner <mkestner@novell.com>
22962 * ComboBox.cs : some null guarding for ComboListBox.Scroll.
22964 2006-08-17 Mike Kestner <mkestner@novell.com>
22966 * ComboBox.cs : implement scroll wheel support for popped-down
22967 state. Fixes #78945.
22969 2006-08-17 Jackson Harper <jackson@ximian.com>
22971 * TreeView.cs: Specify treeview actions (old patch that didn't get
22972 committed for some reason).
22973 - Don't let the mouse wheel scroll us too far. Just want to make
22974 the bottom node visible, not scroll it all the ways to the top.
22976 2006-08-17 Jackson Harper <jackson@ximian.com>
22978 * XplatUIX11.cs: Mouse wheel events go to the focused window.
22980 2006-08-17 Mike Kestner <mkestner@novell.com>
22982 * ComboBox.cs : don't do mouseover selection in simple mode.
22984 2006-08-16 Jackson Harper <jackson@ximian.com>
22986 * Form.cs: Fire the closing events for all the mdi child windows
22987 when a window is closed. If the cancel args are set to true, the
22988 main window still gets the event fired, but it doesn't not close.
22989 * MdiWindowManager.cs: Do this closing cleanup in a Closed
22990 handler, instead of when the button is clicked, so cancelling the
22991 close works correctly.
22992 * ComboBox.cs: Send the mouse down to the scrollbar.
22994 2006-08-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
22996 * ListBox.cs: When passing 'null' to SelectedItem,
22997 set SelectedIndex to -1, to unselect items. This is the
22998 observed behaviour in .Net.
23000 2006-08-16 Peter Dennis Bartok <pbartok@novell.com>
23002 * TextBoxBase.cs: Overriding HandleClick to get clicks in spite of
23003 MS flags saying there won't be any. (fixes #78800)
23004 * Control.cs (HandleClick): Made virtual
23006 2006-08-16 Atsushi Enomoto <atsushi@ximian.com>
23008 * PageSetupDialog.cs : use Yard-Pound units only in en-GB and en-US
23009 cultures. Fixed bug #78399.
23011 2006-08-16 Jackson Harper <jackson@ximian.com>
23013 * Form.cs: Use the MdiClients MdiChildren property to access
23014 MdiChildren instead of creating the array from the child controls.
23015 * MdiClient.cs: Maintain a separate array of the mdi children, so
23016 that insertion order is maintained when the Z-order is changed.
23018 2006-08-16 Mike Kestner <mkestner@novell.com>
23020 * ListView.cs : add an ItemComparer and default to it for sorting.
23021 Fixes #79076, but sorting needs a complete overhaul to be compat with
23024 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
23026 * XplatUIX11.cs (SetZOrder): Fix debugging leftover (fixes #79080)
23028 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
23030 * Hwnd.cs (Mapped): Properly traverse the tree
23032 2006-08-15 Chris Toshok <toshok@ximian.com>
23034 * Binding.cs: fix PullData/SetPropertyValue. We don't want to
23035 pass manager.Current.GetType() to ParseData. It has to be the
23036 property type. So, hold off doing the ParseData until we're in
23037 SetPropertyValue where we know the type. This fixes the crash in
23038 #78821 but the textbox is still empty.
23040 2006-08-15 Chris Toshok <toshok@ximian.com>
23043 - when we're scrolling, only call Edit() again if the
23044 current cell is still unobscured. Fixes bug #78927.
23045 - when handling mousedown on a cell, ensure the cell is visible
23046 before calling Edit.
23047 - remove the properties from DataGridRow, and remove the
23048 DataGridParentRow class altogether.
23051 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
23053 * TextBoxBase.cs (set_Text): Don't use base.Text, instead just
23054 fire OnTextChanged by ourselves. There's no point calling base,
23055 we don't set the base value anywhere else. Fixes #78773.
23057 2006-08-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
23059 * ListBox.cs: Call CollectionChanged when modifying
23060 an item from Items indexer, to update the actual items
23063 2006-08-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
23065 * PrintDialog.cs: Small fixes for focus and a pair of checks,
23066 to match .Net behaviour.
23068 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
23070 * XplatUIX11.cs (SetZOrder): Handle raising toplevel windows
23072 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
23074 * Control.cs: Handle BringToFront for toplevel windows (Fixes #78737)
23076 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
23078 * MessageBox.cs: Prevent potential NRE exception.
23079 * TextBoxBase.cs: AutoSize only applies if MultiLine is false. Fixes #78889
23081 2006-08-14 Peter Dennis Bartok <pbartok@novell.com>
23083 * MessageBox.cs: Calculate the owner of a messagebox, also make
23084 it topmost. Fixes #78753
23086 2006-08-14 Chris Toshok <toshok@ximian.com>
23088 * XplatUIX11.cs: A couple of fixes so that metacity will let us
23089 programmatically move windows. first, set the PPosition hint as
23090 well as the USPosition hint. Second include some code from pdb
23091 that sets the window type to NORMAL when we set the transient for
23092 hint. This is because, in the absence of a window type, metacity
23093 thinks any window with TransientFor set is a dialog, and refuses
23094 to let us move it programmatically. fascists.
23096 2006-08-14 Peter Dennis Bartok <pbartok@novell.com>
23098 * XplatUIX11.cs: When setting normal hints, take into consideration
23099 an different hints previously set so we don't delete them (fixes #78866)
23101 2006-08-12 Chris Toshok <toshok@ximian.com>
23103 * ToolBarButton.cs: make Layout return a boolean, if something to
23104 do with the button's layout changed.
23107 - add another parameter to Redraw, @force, which all existing
23109 - make the Layout function return a boolean which is true if the
23110 layout has actually changed. Redraw now uses this (and @force)
23111 to determine when to invalidate. At present the only place
23112 where @force can be false is the call from OnResize, when
23113 background_image == null. So, resizing a toolbar when the
23114 layout doesn't change results in no drawing.
23116 2006-08-12 Chris Toshok <toshok@ximian.com>
23118 * ThemeWin32Classic.cs: fix the bottom right corner painting. had
23119 the VScrollBar and HScrollbar reversed. oops.
23121 * DataGrid.cs: fix the logic that assigns sizes to the implicit
23122 scrollbars. we were assigning them twice (once in
23123 Calc{Horiz,Vertical}Scrollbar, and once in CalcGridAreas),
23124 therefore causing two scrollbar resizes (and redraws?) to happen
23127 2006-08-12 Chris Toshok <toshok@ximian.com>
23129 * ToolBarButton.cs: redraw the entire button if the theme tells us
23132 * Theme.cs: add ToolBarInvalidateEntireButton.
23134 * ThemeWin32Classic.cs: we don't need to redraw the entire toolbar
23135 buttons, just the border.
23137 * ThemeNice.cs: redraw the entire toolbar button since we need to
23138 draw the highlight image.
23140 * ThemeClearlooks.cs: the rounded corners of toolbar buttons mean
23141 we need to redraw the entire button (not just the border).
23143 2006-08-11 Peter Dennis Bartok <pbartok@novell.com>
23145 * TextBoxBase.cs (CalculateScrollbars): Set the proper thumb size
23146 for vertical bars. Fixes the mismatches shown by #78513
23148 2006-08-11 Alexander Olk <alex.olk@googlemail.com>
23150 * FileDialog.cs: If a saved/remembered path doesn't exist
23151 anymore, fall back to "Desktop".
23153 2006-08-11 Peter Dennis Bartok <pbartok@novell.com>
23155 * Form.cs (CreateParams): Don't use Parent.Handle unless we have a
23156 parent. It's apparently legal to not have one
23158 - SetZOrder: Don't try to set Z-Order on an unmapped window
23159 - CreateWindow: 0,0 are legal coordinates for a window. don't move
23160 it unless the coordinates are negative
23162 2006-08-10 Mike Kestner <mkestner@novell.com>
23164 * ListControl.cs: allow null for DataSource. Clear DisplayMember
23165 when setting to null per msdn docs. Fixes #78854.
23167 2006-08-10 Chris Toshok <toshok@ximian.com>
23169 * Menu.cs, MainMenu.cs, MenuAPI.cs: get rid of most of the
23170 flickering by setting a clip rectangle on the Graphics when we
23171 need to redraw just a particular menuitem. Also, rename "OnClick"
23172 to "OnMouseDown" to reflect what it actually is.
23174 * Form.cs: track the OnMouseDown change.
23176 2006-08-10 Peter Dennis Bartok <pbartok@novell.com>
23178 * CommonDialog.cs: Properly inherit the CreateParams from the form
23179 and only change what we need. Fixes #78865
23181 2006-08-10 Chris Toshok <toshok@ximian.com>
23183 * ToolBar.cs, ToolBarButton.cs: fix the redraw-on-highlight
23184 flickering in flat mode (and most of the flickering in general) by
23185 only invalidating the button border (and not the entire rectangle)
23186 when the state changes. A couple of cases still flicker:
23187 ToggleButtons, and the dropdown arrow case when the user mouse
23190 2006-08-10 Alexander Olk <alex.olk@googlemail.com>
23192 * X11Keyboard.cs: Fixed handling of the Del key on the cursorblock
23193 for german keyboards. Numlock state shouldn't affect the behaviour
23194 of the Del key. Fixes bug #78291.
23196 2006-08-10 Chris Toshok <toshok@ximian.com>
23198 * ListControl.cs: remove the items.Clear line from BindDataItems,
23199 as this is the first thing done by both subclasses in their
23200 SetItemsCore overrides. Also, add a ItemChanged handler, and when
23201 passed -1, refresh the list. This gets databinding working when
23202 the datasource is set on the list before the datasource is
23203 populated (as in wf-apps/ReportBuilder.)
23205 * ComboBox.cs: remove the argument to BindDataItems. This call
23206 should really go away, and be initiated by the ListControl code.
23208 * ListBox.cs: same.
23210 2006-08-09 Peter Dennis Bartok <pbartok@novell.com>
23212 * TextControl.cs (Document.ctor): Initialize caret so we don't crash
23213 if no data is in the document when the control is displayed
23215 2006-08-09 Peter Dennis Bartok <pbartok@novell.com>
23217 * TextBoxBase.cs: Don't try moving the caret if we don't have a window
23220 - PositionCaret: Allow positioning of caret but don't call methods
23221 requiring a handle if the window isn't created yet
23222 - CharIndexToLineTag: Fix ending loop early error. Lines is 1 based
23223 - owner_HandleCreated: Don't position the caret, just update it's
23224 location. User might have already set a different position
23226 2006-08-09 Peter Dennis Bartok <pbartok@novell.com>
23228 * XplatUIWin32.cs: Don't use the desktop as basis for foster-parented
23229 windows. Screws up the returned coordinates for child windows.
23230 Fixes #78825. I'm hoping this doesn't break something, since the
23231 code was explicitly put in 8 months ago, but no bug was attached.
23232 Menus still seem to work properly.
23234 2006-08-08 Chris Toshok <toshok@ximian.com>
23236 * DataGrid.cs: make BeginInit/EndInit actually do what they're
23237 supposed to do - delay data binding until the EndInit call. Also,
23238 make the table style collection's CollectionChangeAction.Refresh
23241 * GridTableStylesCollection.cs: raise a CollectionChangeEvent
23242 (with action = Refresh) when a consituent table's MappingName is
23245 2006-08-08 Chris Toshok <toshok@ximian.com>
23247 * ToolBarButton.cs: in set_Text, call Parent.Redraw, not
23248 Invalidate, since changing the text can change the size of the all
23251 2006-08-08 Peter Dennis Bartok <pbartok@novell.com>
23253 * Form.cs (AddOwnedForm): Still need to add the form to our listif
23254 we don't have it yet
23256 2006-08-08 Chris Toshok <toshok@ximian.com>
23258 * PrintControllerWithStatusDialog.cs: don't .Close() the status
23259 dialog, as this causes X errors later on, since we actually
23260 destroy the window. Instead, .Hide() it.
23262 2006-08-08 Peter Dennis Bartok <pbartok@novell.com>
23264 * ComboBox.cs: Added focus reflection for popup window
23266 - Removed transient setting for non-app windows for now, not sure it
23268 - Fixed logic checking if we have captions when deciding
23269 override_redirect, WS_CAPTION is two bits and a 0 check was not
23271 - Removed the WINDOW_TYPE stuff, it was unneeded and making things
23274 - AddOwnedForm: Don't just add the form to the list, call the property
23275 to ensure the driver is informed about the ownership as well
23276 - CreateHandle: Set the TopMost status in the driver if we have an owner
23277 * XplatUI.cs: Fixed debug statement
23279 2006-08-08 Jonathan Pobst <monkey@jpobst.com>
23280 * ButtonRenderer.cs, CheckBoxRenderer.cs, ComboBoxRenderer.cs
23281 GroupBoxRenderer.cs, ProgressBarRenderer.cs, RadioButtonRenderer.cs,
23282 ScrollBarRenderer.cs, TabRenderer.cs, TextBoxRenderer.cs,
23283 TrackBarRenderer.cs: Make constructor private.
23284 * ProfessionalColors.cs, ProfessionalColorTable.cs: Fix misnamed properties.
23285 * ProfessionalColorTable.cs: Make properties virtual.
23287 2006-08-06 Duncan Mak <duncan@novell.com>
23289 * NumericUpDown.cs (Value): Don't call OnValueChanged if the value
23292 2006-08-04 Jonathan Pobst <monkey@jpobst.com>
23293 * ButtonRenderer.cs, CheckBoxRenderer.cs, ComboBoxRenderer.cs
23294 GroupBoxRenderer.cs, ProfessionalColors.cs, ProfessionalColorTable.cs,
23295 ProgressBarRenderer.cs, RadioButtonRenderer.cs, ScrollBarRenderer.cs,
23296 TabRenderer.cs, TextBoxRenderer.cs, TextRenderer.cs, TrackBarRenderer.cs:
23297 Initial import of new 2.0 classes.
23299 2006-08-04 Jonathan Pobst <monkey@jpobst.com>
23300 * Application.cs: Add 2.0 VisualStyles properties.
23302 2006-08-04 Jonathan Pobst <monkey@jpobst.com>
23303 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
23304 XplatUIX11.cs: Create property to allow access to existing private
23305 variable "themes_enabled"
23307 2006-08-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
23309 * ImageListStreamer.cs: generate the MemoryStreams with the exact BMP
23310 file size, as otherwise our class libraries fail using windows. Fixes
23313 2006-08-04 Jackson Harper <jackson@ximian.com>
23316 * XplatUIX11.cs: Move the toolwindow window manager creation into
23317 the X11 driver, this way on win32 we can let windows create/handle
23320 2006-08-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
23322 * PrintDialog.cs: Remove some redundant checks, add some others,
23323 clean some code, and move the focus to the text boxes when the
23324 values are incorrect.
23326 2006-08-04 Alexander Olk <alex.olk@googlemail.com>
23328 * FontDialog.cs: Remove Form.MinimumSize. It's not needed.
23330 2006-08-03 Alexander Olk <alex.olk@googlemail.com>
23332 * NumericUpDown.cs: Setting the Minimum and Maximum is now
23333 handled correctly. Fixes bug #79001.
23335 2006-08-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
23337 * PrintDialog.cs: The "Copies" numeric up down must have
23338 set the Minimum property to 1; only if the value is bigger
23339 than 1, activate "Collate" check box. This is the behaviour of .Net.
23340 Also modify the Document elements only if it is not null.
23342 2006-08-03 Jackson Harper <jackson@ximian.com>
23344 * TreeNodeCollection.cs: Fix copyto to use the correct nodes
23345 length. (We have a larger array then actual node count).
23347 2006-08-03 Jackson Harper <jackson@ximian.com>
23349 * ComboBox.cs: Don't show selection by default.
23350 - The SelectAll isn't needed here, since the focus code should do
23352 - DDL style lists to manual selection drawing, so when they
23353 get/lose focus they have to invalidate.
23355 2006-08-03 Peter Dennis Bartok <pbartok@novell.com>
23357 * TextBoxBase.cs: Don't always show all selections by default.
23359 2006-08-03 Jonathan Pobst <monkey@jpobst.com>
23360 * ControlUpdateMode.cs, DataSourceUpdateMode.cs,
23361 HelpNavigator.cs, WebBrowserEncryptionLevel.cs:
23362 Fixed various typos.
23364 2006-08-03 Alexander Olk <alex.olk@googlemail.com>
23366 * Control.cs: Removing the controls in a ControlCollection with
23367 Clear now hides the controls as expected. Fixes bug #78804.
23369 2006-08-03 Jackson Harper <jackson@ximian.com>
23371 * Control.cs: Revert previous focus patch, it breaks reflector.
23373 2006-08-03 Jackson Harper <jackson@ximian.com>
23375 * ComboBox.cs: Cleanup selection and focus with the combobox.
23376 This also eliminates some duplicated keyboard code, since now
23377 everything is handled by the main class.
23378 - Make list selection work on mouse up instead of down, to match
23381 2006-08-02 Jackson Harper <jackson@ximian.com>
23383 * Control.cs: Setting focus needs to go through the whole
23384 selection mechanism.
23386 2006-08-02 Chris Toshok <toshok@ximian.com>
23388 * PrintPreviewDialog.cs: change MinimumSize to use
23389 base.MinimumSize so it works.
23391 2006-08-02 Peter Dennis Bartok <pbartok@novell.com>
23394 - UpdateCaret: Added sanity check in case caret isn't defined yet
23395 - Line.Delete: Now updating selection and caret markers if we're
23396 transfering a node (Properly fixes #78323)
23397 - SetSelectionEnd: Added sanity check
23398 * TextBoxBase.cs: Removed broken attempt to fix #78323
23400 2006-08-01 Chris Toshok <toshok@ximian.com>
23402 * PrintPreviewDialog.cs: the CancelEventArgs stuff surrounding the
23403 Close() call is handled in Form, not here.
23405 2006-08-01 Chris Toshok <toshok@ximian.com>
23407 * Theme.cs, ThemeWin32Classic.cs: fix the PrintPreviewControl
23410 * PrintPreviewDialog.cs: add scrollbars, and add an image cache
23411 for sizes < 100% zoom. The code now aggressively attempts to keep
23412 from calling document.Print (), and tries not to use the scaling
23413 g.DrawImage whenever possible (it still does if you scale to >
23414 100%, since usually that involves huge images).
23416 * PrintPreviewControl.cs: hook up the close button.
23418 2006-08-01 Jonathan Pobst <monkey@jpobst.com>
23419 * ColumnClickEventHandler.cs, DrawItemEventHandler.cs,
23420 ItemChangedEventHandler.cs, ItemCheckEventHandler.cs,
23421 ItemDragEventHandler.cs, LabelEditEventHandler.cs,
23422 LinkClickedEventHandler.cs, LinkLabelLinkClickedEventHandler.cs,
23423 MeasureItemEventHandler.cs, MethodInvoker.cs, PaintEventHandler.cs,
23424 PropertyTabChangedEventHandler.cs, PropertyValueChangedEventHandler.cs,
23425 SelectedGridItemChangedEventHandler.cs, ToolBarButtonClickEventHandler.cs:
23426 Removed [Serializable] for 2.0 Event Handlers.
23428 2006-07-31 Jackson Harper <jackson@ximian.com>
23430 * TextBoxBase.cs: Make ShowSelection invalidate when changed.
23431 * TextControl.cs: Uncomment out the body of this method.
23433 2006-07-31 Alexander Olk <alex.olk@googlemail.com>
23435 * XplatUIX11.cs: Use the correct cursor shapes for arrow and default
23438 2006-07-31 Peter Dennis Bartok <pbartok@novell.com>
23440 * TextBoxBase.cs: Added internal property ShowSelection to allow controls
23441 that embed TextBox and need selections visible even if textbox is not
23442 focused to enforce that behaviour.
23443 * TextControl.cs (Draw): Use ShowSelection instead of has_focus to determine
23446 2006-07-31 Peter Dennis Bartok <pbartok@novell.com>
23449 - Added new SetSelectionStart/SetSelectionEnd overloads
23450 - Fixed viewport width assignment to be accurate
23451 - Adjusted alignment line shift calculations to allow cursor on right
23452 aligned lines to be always visible at the right border (like MS)
23454 - SetBoundsCore: Re-adjust caret location after resize (Fixes #78323)
23455 - TextBoxBase_SizeChanged: recalculating canvas on size changes
23456 - CalculateScrollBars: Use ViewPort size instead of window size, to
23457 properly consider space occupied by the border and scrollbars
23459 - hscroll_ValueChanged, vscroll_ValueChanged: Fixed scroll
23460 calculations; no longer leaves artifacts
23461 - CaretMoved: Adjusted window scrolling to match MS and fixed several
23462 calculation bugs (Still missing right/center align calculations)
23464 2006-07-31 Peter Dennis Bartok <pbartok@novell.com>
23466 * XPlatUIWin32.cs: Made ScrollRectEx a bit more flexible, and removed
23467 use of both scroll rect and clip rect, as they do the same.
23469 2006-07-31 Peter Dennis Bartok <pbartok@novell.com>
23471 * Control.cs (WM_CHAR WndProc): 2.0 profile allows changing the key
23472 in the event handler (fixes #78912)
23474 2006-07-31 Chris Toshok <toshok@ximian.com>
23476 * ThemeWin32Classic.cs: use grid.RowsCount here instead of
23477 grid.ListManager.Count, since grid.ListManager might be null.
23478 This of course begs the question "why are we drawing rows for a
23479 grid with no list manager (and therefor no rows)?" Fixes the
23480 crash in bug #78929.
23482 2006-07-31 Chris Toshok <toshok@ximian.com>
23484 * RelatedPropertyManager.cs: Don't always chain up to the parent
23485 ctor. instead, call SetDataSource if the parent's position is !=
23486 -1. Fixes the crash in #78822.
23488 2006-07-31 Chris Toshok <toshok@ximian.com>
23490 * DataGrid.cs (get_ListManager): use field instead of property
23491 accessors for datasource and datamember.
23492 (RowsCount): make internal again.
23493 (OnMouseDown): end edits before resizing columns/rows.
23494 (OnMouseUp): restart edits after resizing columns/rows.
23496 2006-07-30 Peter Dennis Bartok <pbartok@novell.com>
23498 * XplatUIX11.cs: Default cursor cannot be 0 or it will not get set.
23499 This fixes the situation where the last set cursor is displayed
23500 whenever the mouse is over scrollbars.
23502 2006-07-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
23504 * PrintDialog.cs: Fix the behaviour of PrinterSettings and
23505 Document properties, as well as initial values.
23507 2006-07-29 Peter Dennis Bartok <pbartok@novell.com>
23509 * XplatUIWin32.cs (SetBorderStyle): Setting both border
23510 and ClientEdge results in a 3-pixel border, which is
23513 2006-07-28 Jackson Harper <jackson@ximian.com>
23515 * TreeNodeCollection.cs: Fix the clear method.
23516 - Fix the Shrink also
23518 2006-07-27 Jackson Harper <jackson@ximian.com>
23520 * TreeView.cs: Make sure the visible order is computed when we
23521 attempt to size the scrollbars (for trees that mess with the
23522 scrolling when they shouldn't.
23523 - Make sure to give the scrollbars valid values.
23525 2006-07-26 Peter Dennis Bartok <pbartok@novell.com>
23527 * XplatUIX11.cs: Move motion compression code to where it
23528 has less performance impact
23530 2006-07-26 Jackson Harper <jackson@ximian.com>
23532 * UpDownBase.cs: When the control is selected make the child
23533 controls non selectable, so that a click on them won't do a
23534 focus/unfocus cycle.
23535 - Don't give focus to the text box when the spinner is selected.
23536 * XEventQueue.cs: Peek on both the x11 queue and the lock queue.
23538 2006-07-26 Chris Toshok <toshok@ximian.com>
23540 * ThemeWin32Classic.cs: add print preview rendering. I'm not
23541 satisfied with this solution. If the bitmaps are small, we should
23542 just cache them in the PrintPreviewDialog and draw them here.
23543 Also, the layout is broken for the 2-up and 3-up cases.
23545 * Theme.cs: add PrintPReviewControlPaint.
23547 * PrintPreviewDialog.cs: first pass implementation.
23549 * PrintPreviewControl.cs: first pass implementation. No
23552 * PrintDialog.cs: only validate fields if that particular portion
23553 of the UI is enabled. Also, set the document's controller to a
23554 PrintControllerWithStatusDialog wrapping the document's print
23557 * PrintControllerWithStatusDialog.cs: if we're printing to a file,
23558 bring up a SaveFileDialog (i hope we don't want to match the
23559 behavior of the crappy windows file entry) and set the
23560 PrinterSettings.PrintFileName accordingly.
23562 2006-07-26 Jackson Harper <jackson@ximian.com>
23564 * ContainerControl.cs: Add a field that disables auto selecting
23565 the next control in a container when the container is activated.
23566 * UpDownBase.cs: Don't select the text box when the up down is
23569 2006-07-26 Peter Dennis Bartok <pbartok@novell.com>
23571 * XEventQueue.cs: Added methods for peeking (used for compression
23572 of successive events)
23573 * XplatUIX11.cs (GetMessage): We're now compressing consecutive
23574 mouse move events (fixes #78732)
23576 2006-07-25 Jackson Harper <jackson@ximian.com>
23578 * UpDownBase.cs: Use an internal class for the textbox so that we
23579 can control focus. the updown control should always have focus,
23580 if either the text area or the buttons are clicked.
23581 - Send the key messages to the textbox, since it never actually
23583 - Activate and decativate the textbox caret.
23585 2006-07-24 Jackson Harper <jackson@ximian.com>
23587 * Control.cs: Use the directed select when selecting a control,
23588 this way the container controls override will get called and the
23589 whole ActiveControl chain will get triggered. TODO: probably need
23590 to make sure this gets done everywhere instead of the old
23592 * ContainerControl.cs: Implement the directed Select method to
23593 find and activate the correct child control.
23595 2006-07-22 Mike Kestner <mkestner@novell.com>
23597 * Form.cs: use Control.MousePosition for NCLBUTTONDOWN in the menu
23598 menu handling code so that clicks without a grab work too.
23601 2006-07-22 Alexander Olk <alex.olk@googlemail.com>
23603 * FileDialog.cs: Enable the BackButton when dirstack has one element.
23604 Added some small optimizations.
23606 2006-07-21 Matt Hargett <matt@use.net>
23608 * Control.cs: Implemented 2.0 MinimumSize/MaximumSize properties
23610 2006-07-21 Peter Dennis Bartok <pbartok@novell.com>
23612 * Control.cs (GetNextControl): Fixes to make all of Jackson's unit
23613 tests pass and match MS in some strange border cases.
23615 2006-07-21 Chris Toshok <toshok@ximian.com>
23617 * ThemeWin32Classic.cs: handle drawing of the relation links and
23618 parent row buttons.
23620 * Theme.cs: change args to DataGridPaintParentRow.
23622 * DataGrid.cs: Don't use controls for the relation links and
23623 parent buttons, so we have to handle all their interactions in
23624 MouseMove, MouseDown, MouseUp, etc. Also, store a lot more stuff
23625 when we're navigating through child tables, so we can reinstate
23626 selection, expanded state, current cell, etc.
23628 2006-07-20 Chris Toshok <toshok@ximian.com>
23630 * ToolBar.cs: When we redraw a button, for whatever reason,
23631 there's no reason to redraw the entire toolbar. Also, don't call
23632 Control.Refresh from within Redraw, as it's much heavier than
23633 Invalidate (which is really what we want).
23635 2006-07-20 Chris Toshok <toshok@ximian.com>
23637 * DataGrid.cs, CurrencyManager.cs, DataGridColumnStyle.cs,
23638 DataGridTextBoxColumn.cs, DataGridTextBox.cs,
23639 ThemeWin32Classic.cs, ListControl.cs: After staring at stack
23640 traces from within a debug IBindingList datasource
23641 (in mono/winforms/datagrid) for *days*, I've finally gotten things
23642 to work in a similar fashion.
23644 2006-07-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
23646 * ListBox.cs: Don't call Sort () when setting
23647 the Sorted property to false (avoid an unnecessary sort).
23649 2006-07-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
23651 * ListControl.cs: DataSource should throw an ArgumentException
23652 instead of a normal exception when the argument is not of the
23655 2006-07-20 Mike Kestner <mkestner@novell.com>
23657 * Control.cs: add InternalPreProcessMessage to allow us to steal
23658 key events before MWF gets its paws on them. Adapted from a
23660 * ToolBar.cs: add GotLostFocus handing for flat toolbars, with
23661 up/down/left/right navigation. Override the new internal control
23662 method to steal the events since they never make it to WndProc.
23663 * ToolBarButton.cs: don't worry about pushed when setting hilight
23664 since the drawing code prefers pushed to hilight. Invalidate on
23665 Hilight changes. Fixes #78547 and #78525.
23667 2006-07-20 Peter Dennis Bartok <pbartok@novell.com>
23669 * ScrollableControl.cs: Consider AutoScrollMinSize when calculating
23670 the canvas size. Fixes #78868
23672 2006-07-20 Peter Dennis Bartok <pbartok@novell.com>
23674 * Splitter.cs: Track requested split position until first layout
23675 is performed. Fixes #78871
23677 2006-07-20 Peter Dennis Bartok <pbartok@novell.com>
23679 * Application.cs: Removed code that forces 1.x for the version
23680 number if the version started with 0. Not sure why that code was
23681 there and I couldn't find any bugs that indicated we needed it.
23684 2006-07-20 Alexander Olk <alex.olk@googlemail.com>
23686 * ThemeWin32Classic.cs: Don't throw a NotImplementedException in
23687 ResetDefaults(), just write some output to the console until it's
23688 implemented. Fixes bug #78907 for now. Eliminated two warnings.
23690 2006-07-19 Jonathan Chambers <joncham@gmail.com>
23692 * PropertyGridView.cs: set StartPosition of drop down forms
23693 so they appear in correct initial spot. Fixes #78190.
23695 2006-07-19 Mike Kestner <mkestner@novell.com>
23697 * ThemeWin32Classic.cs: use parent background color when drawing
23698 flat toolbars. Restructure the conditionals to make sure non-flat
23699 non-Divider toolbars are filled too. Fixes #78837.
23701 2006-07-19 Mike Kestner <mkestner@novell.com>
23703 * ListBox.cs: Sort on collection changes even if the handle
23704 isn't created yet. Fixes #78813.
23706 2006-07-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
23708 * ListControl.cs: DisplayMember should never be null,
23709 and now we assign String.Empty when null is passed to it (this
23712 2006-07-17 Mike Kestner <mkestner@novell.com>
23714 * ListViewItem.cs: restructure Font and subitem Font handling
23715 to hold a specific font and refer back to owner on null.
23718 2006-07-17 Mike Kestner <mkestner@novell.com>
23720 * ToolBar.cs: bandaid for side-effect of previous patch which was
23721 discarding explicit heights for non-AutoSize toolbars. Need to
23722 extend my format tester to deal with AutoSize=false. Fixes #78864.
23724 2006-07-15 Jackson Harper <jackson@ximian.com>
23726 * LabelEditTextBox.cs:
23727 * TreeView.cs: Use a new LabelEdit class for node editing, this
23728 class automatically 'closes' itself when it gets the enter key or
23730 - Use the client rectangle when setting the trees scrollbars, so
23731 border style is taken into account.
23733 2006-07-14 Jackson Harper <jackson@ximian.com>
23736 * TreeView.cs: Make the editing work similar to MSs, firing the
23737 events correctly and ending edits correctly.
23739 2006-07-14 Mike Kestner <mkestner@novell.com>
23741 * ToolBarButton.cs:
23742 * ToolBar.cs: layout restructuring and redraw enhancements to support
23743 formatting changes gracefully, like setting TextAlign, ImageList,
23744 ButtonSize, and Appearance. Handles explicit button sizing quirks
23745 of the MS controls. Things like flat toolbars ignoring button size
23746 but becoming constant sized at the largest button's size. Normal
23747 toolbars with an image set cannot be shrunk smaller than the image,
23748 but text can be clipped/ignored.
23749 * ThemeWin32Classic.cs: don't draw text if text_rect height or width
23750 is zero. Seems like DrawString should be smart enough to not put
23751 anything on screen though. Also trim labels and ellipsize at the char
23752 boundary, not word.
23753 Fixes #78711 and #78483.
23755 2006-07-14 Alexander Olk <alex.olk@googlemail.com>
23757 * FolderBrowserDialog.cs: Disable "New Folder" button and
23758 "New Folder" contextmenu menuitem if a folder like "My Computer"
23761 2006-07-14 Alexander Olk <alex.olk@googlemail.com>
23763 * FileDialog.cs: Don't create a new folder in "MyComputer" folder.
23764 * FolderBrowserDialog.cs:
23765 - Use MWFConfig to store and read size and position settings
23766 - Added code to create a new folder (button or context menu).
23767 Use TreeView labeledit to change the name of the new folder.
23769 2006-07-14 Jackson Harper <jackson@ximian.com>
23771 * TreeView.cs: Raise the OnAfterLabelEdit event correctly. Also,
23772 when the tree is scrolled we end editing.
23774 2006-07-14 Alexander Olk <alex.olk@googlemail.com>
23776 * ThemeWin32Classic.cs: Fixed position of CPDrawScrollButton Up and
23779 2006-07-14 Jonathan Pobst <monkey@ipobst.com>
23781 WebBrowserProgressChangedEventHandler.cs, BindingCompleteEventArgs.cs,
23782 BindingCompleteEventHandler.cs, BindingManagerDataErrorEventArgs.cs,
23783 BindingManagerDataErrorEventHandler.cs, CacheVirtualItemsEventArgs.cs,
23784 CacheVirtualItemsEventHandler.cs, ColumnReorderedEventArgs.cs,
23785 ColumnReorderedEventHandler.cs, ColumnWidthChangedEventArgs.cs,
23786 ColumnWidthChangedEventHandler.cs, ColumnWidthChangingEventArgs.cs,
23787 ColumnWidthChangingEventHandler.cs, FormClosedEventArgs.cs,
23788 FormClosedEventHandler.cs, FormClosingEventArgs.cs,
23789 FormClosingEventHandler.cs, ItemCheckedEventArgs.cs,
23790 ItemCheckedEventHandler.cs, ListControlConvertEventArgs.cs,
23791 ListControlConvertEventHandler.cs, ListViewItemMouseHoverEventArgs.cs,
23792 ListViewItemMouseHoverEventHandler.cs, ListViewItemSelectionChangedEventArgs.cs,
23793 ListViewItemSelectionChangedEventHandler.cs,
23794 ListViewVirtualItemsSelectionRangeChangedEventArgs.cs,
23795 ListViewVirtualItemsSelectionRangeChangedEventHandler.cs,
23796 MaskInputRejectedEventArgs.cs, MaskInputRejectedEventHandler.cs,
23797 PopupEventArgs.cs, PopupEventHandler.cs, PreviewKeyDownEventArgs.cs,
23798 PreviewKeyDownEventHandler.cs, RetrieveVirtualItemEventArgs.cs,
23799 RetrieveVirtualItemEventHandler.cs, SearchForVirtualItemEventArgs.cs,
23800 SearchForVirtualItemEventHandler.cs, SplitterCancelEventArgs.cs,
23801 SplitterCancelEventHandler.cs, TabControlCancelEventArgs.cs,
23802 TabControlCancelEventHandler.cs, TabControlEventArgs.cs,
23803 TabControlEventHandler.cs, TableLayoutCellPaintEventArgs.cs,
23804 TableLayoutCellPaintEventHandler.cs, ToolStripDropDownClosedEventArgs.cs,
23805 ToolStripDropDownClosedEventHandler.cs, ToolStripDropDownClosingEventArgs.cs,
23806 ToolStripDropDownClosingEventHandler.cs, TreeNodeMouseClickEventArgs.cs,
23807 TreeNodeMouseClickEventHandler.cs, TreeNodeMouseHoverEventArgs.cs,
23808 TreeNodeMouseHoverEventHandler.cs, TypeValidationEventArgs.cs,
23809 TypeValidationEventHandler.cs, WebBrowserDocumentCompletedEventArgs.cs,
23810 WebBrowserDocumentCompletedEventHandler.cs, WebBrowserNavigatedEventArgs.cs,
23811 WebBrowserNavigatedEventHandler.cs, WebBrowserNavigatingEventArgs.cs,
23812 WebBrowserNavigatingEventHandler.cs,
23813 WebBrowserProgressChangedEventArgs.cs: New 2.0 Event Handlers
23815 2006-07-14 Jonathan Pobst <monkey@ipobst.com>
23817 MergeAction.cs, PowerLineStatus.cs, PowerState.cs, PreProcessControlState.cs,
23818 RichTextBoxLanguageOptions.cs, ScreenOrientation.cs, ScrollOrientation.cs,
23819 SearchDirectionHint.cs, SystemParameter.cs, TabControlAction.cs,
23820 TableLayoutPanelCellBorderStyle.cs, TextDataFormat.cs, TextImageRelation.cs,
23821 ToolStripDropDownCloseReason.cs, ToolStripDropDownDirection.cs,
23822 ToolStripGripDisplayStyle.cs, ToolStripGripStyle.cs,
23823 ToolStripItemAlignment.cs, ToolStripItemDisplayStyle.cs,
23824 ToolStripItemImageScaling.cs, ToolStripItemOverflow.cs,
23825 ToolStripItemPlacement.cs, ToolStripLayoutStyle.cs,
23826 ToolStripManagerRenderMode.cs, ToolStripRenderMode.cs,
23827 ToolStripStatusLabelBorderSides.cs, ToolStripTextDirection.cs,
23828 ToolTipIcon.cs, TreeNodeStates.cs, TreeViewDrawMode.cs,
23829 TreeViewHitTestLocations.cs, UnhandledExceptionMode.cs, ValidationConstraints.cs,
23830 WebBrowserEncryptionLevel.cs, WebBrowserReadyState.cs, WebBrowserRefreshOption.cs,
23831 ArrowDirection.cs, AutoCompleteMode.cs, AutoCompleteSource.cs, AutoSizeMode.cs,
23832 AutoValidate.cs, BatteryChargeStatus.cs, BindingCompleteContext.cs,
23833 BindingCompleteState.cs, CloseReason.cs, ColumnHeaderAutoResizeStyle.cs,
23834 ControlUpdateMode.cs, DataSourceUpdateMode.cs, DockingBehavior.cs,
23835 FixedPanel.cs, FlowDirection.cs, GetChildAtPointSkip.cs,
23836 HtmlElementInsertionOrientation.cs, InsertKeyMode.cs, ListViewHitTestLocations.cs,
23837 ListViewItemStates.cs, MaskFormat.cs: Added
23839 2006-07-13 Jonathan Chambers <joncham@gmail.com>
23841 * PropertyGridView.cs: Fix keyboard navigation of drop down.
23842 Patch from eno for bug 78558.
23844 2006-07-13 Jackson Harper <jackson@ximian.com>
23846 * TreeView.cs: When an edit is finished make sure that the
23847 selected node is visible.
23848 - When setting the top/bottom use the scrollbars is_visible, so
23849 everything will be set correctly even if the tree isn't visible
23852 2006-07-13 Jackson Harper <jackson@ximian.com>
23854 * ComboBox.cs: Revert the item->index part of my previous patch.
23855 * TreeView.cs: Use LostFocus instead of Leave for detecting when
23856 the edit box has lost focus (duh).
23857 - Just make the edit box not visible when we get return, that will
23858 take the focus, which will call EndEdit
23859 * TreeNode.cs When we start editing, notify the treeview.
23861 2006-07-12 Jackson Harper <jackson@ximian.com>
23863 * ComboBox.cs: Clear out old items before setting the item list.
23864 This prevents databound controls from having their items added
23866 - Switch the combobox to use indices whereever possible instead of
23867 using Item's. This allows usto navigate through lists that have
23868 more then one item with the same string value (ie a, b, b, a).
23869 - Scroll the listboxes scrollbar when a non visible item is
23871 - Allow keypress to cycle through all the possible values. For
23872 example if you have b1, b2, b3 and hold down the B key all the
23873 values will be cycled through.
23875 2006-07-12 Jackson Harper <jackson@ximian.com>
23878 * ListView.cs: Don't need to override SETFOCUS anymore, we can do
23879 this using the internal methods.
23880 * Control.cs: Add OnGotFocusInternal. A new method that allows
23881 controls to "override" OnGotFocus and change focus behavior if
23883 - Same thing for LostFocus
23884 * ComboBox.cs: Pass off focus to the text control properly.
23886 2006-07-12 Alexander Olk <alex.olk@googlemail.com>
23888 * FileDialog.cs: Added GetFoldersOnly to MWFVFS
23889 * FolderBrowserDialog.cs: Almost a complete rewrite.
23890 - Better support for Environment.Specialfolders
23891 - Added support for MWFVFS
23892 - Made setting SelectedPath work
23894 2006-07-12 Jackson Harper <jackson@ximian.com>
23896 * Control.cs: Optimze getting all the controls.
23898 2006-07-11 Jackson Harper <jackson@ximian.com>
23900 * ContainerControl.cs: Override SETFOCUS in the container control,
23901 so that it is not selected on mouse click.
23903 2006-07-11 Peter Dennis Bartok <pbartok@novell.com>
23905 * LinkLabel.cs: Hack to handle Shift-Tabbing to the linklabel.
23906 Hopefully we will have a better way once all of focus is complete.
23908 2006-07-11 Peter Dennis Bartok <pbartok@novell.com>
23910 * ThemeWin32Classic.cs: Commented out some debug code and fixed
23911 a compile error with csc.
23913 2006-07-11 Jackson Harper <jackson@ximian.com>
23915 * Control.cs: When hiding a control only select the next control
23916 if the current control was focused.
23917 - Don't handle enter/leave when setting/killing focus, this is
23918 done by the container control.
23919 - Remove is_selected, it's not needed anymore.
23920 - Add utility methods for selecting a child control, and for
23921 firing the Enter/Leave events.
23922 * ContainerControl.cs: When a control is activated fire the
23923 enter/leave events.
23924 - Don't wrap when processing the tab key, so that focus can be
23925 moved outside of the container.
23926 - Use the correct active control
23928 2006-07-11 Jackson Harper <jackson@ximian.com>
23930 * ComboBox.cs: Remove some debug code that was blinding me.
23931 * UpDownBase.cs: These controls actually aren't implicit, they are
23932 visible to the user.
23934 2006-07-10 Chris Toshok <toshok@ximian.com>
23936 * DataGrid.cs: move back to the is_adding boolean field. god i
23937 hate this is_editing/is_adding/is_changing stuff.
23939 2006-07-10 Chris Toshok <toshok@ximian.com>
23941 * DataGridTableStyle.cs: just check if the property type is bool.
23942 if it is, use DataGridBoolColumn, otherwise DataGridTextBoxColumn.
23943 Don't use CanRenderType.
23945 * DataGridTextBoxColumn.cs: set the value to DBNull.Value, not "",
23946 if our text == NullText. Remove CanRenderType.
23948 * DataGridBoolColumn.cs: nuke CanRenderType.
23950 * DataGrid.cs: reenable some code to end the current edit inside
23951 of set_CurrentCell. This fixes the other 1.1.16 regression.
23952 Also, remove rowhdrs_maxheight and just use rowhdrs_area.Height.
23953 Also, remove the visible_row_count arg from CalcRowHeaders, since
23954 we don't need to worry about the actual height of the area.
23956 2006-07-10 Chris Toshok <toshok@ximian.com>
23958 * DataGridTextBoxColumn.cs: if when we Commit we're in navigate
23961 * DataGridTextBox.cs: change "isedit" to "isnavigating" to reflect
23962 the real sense of the IsInEditOrNavigateMode property (true =
23963 navigate, false = edit). Also, update OnKeyPress to reflect this.
23965 * DataGridTableStyle.cs (CreateColumnsForTable): even if the
23966 column style exists, we still need to set its property descriptor
23967 to match up with our list manager.
23969 2006-07-10 Chris Toshok <toshok@ximian.com>
23971 * ThemeWin32Classic.cs: implement the new row/header painting
23972 approach. The parent row painting will likely go away and
23973 replaced with label controls, but the rest seems to work ok (and
23976 * Theme.cs: change the way we draw datagrid rows. we don't draw
23977 the row headers as a block now. Instead we draw them in the
23978 normal draw-row loop. Add some calls for drawing parent rows and
23981 * DataGridTableStyle.cs: add tons of ArgumentExceptions if this is
23982 a default table style. Set the defaults from ThemeEngine.Current,
23983 not SystemColors. Fix lots of misc issues with property setters.
23985 * DataGrid.cs: move loads of style information out of this class
23986 as it's being duplicated with DataGridTableStyle. keep track of a
23987 special DataGridTableStyle for the properties we used to mirror
23988 here. Switch all the style properties to access this table style
23989 instead of instance fields of this class. Also add a internal
23990 class to represent parent rows (more needs to be stored here, like
23991 the selection state from the parent table, as well as the
23992 expansion state.) Also, for datasources with relations, do the
23993 right thing for collapse/expand, and add support for the
23994 navigation/parent row buttons.
23996 Lastly, fix the crash in the 1.1.16 build.
23998 * GridTableStylesCollection.cs: make the explicit interface
23999 implementations call the class's methods as opposed to duplicating
24002 * DataGridTextBoxColumn.cs: set the x/y offset of the textfield to
24003 0 so the text doesn't jump around when we move the cursor.
24005 2006-07-10 Jackson Harper <jackson@ximian.com>
24008 * ListBox.cs: Match MS's ToString (this makes debugging focus
24009 stuff infinitely easier).
24011 2006-07-10 Jackson Harper <jackson@ximian.com>
24013 * Control.cs (SelectNextControl): When checking the control's
24014 parent use this instead of ctrl.parent so that null can be passed
24015 to SelectNextControl. (I have unit tests for this).
24016 - Remove unused var.
24018 2006-07-10 Chris Toshok <toshok@ximian.com>
24020 * CurrencyManager.cs: correct one regression, the removal of the
24021 finalType field. Also, add a MonoTODO on CanAddRows, implement
24022 Refresh() correctly, and fix some event emission in
24023 ListChangedHandler.
24025 2006-07-07 Alexander Olk <alex.olk@googlemail.com>
24027 * FileDialog.cs: Don't use brackets for new folders if they exist
24028 under *nix. Instead use -(number of existing folders +1).
24030 2006-07-07 Alexander Olk <alex.olk@googlemail.com>
24033 - Fixed really nasty bug #78771
24034 - Don't block the whole GUI when reading directories with a lot of
24035 entries. Use an other thread instead and call BeginInvoke to
24036 update the ListView in MWFFileView
24038 2006-07-07 Chris Toshok <toshok@ximian.com>
24040 * Control.cs (Dispose): release any Capture when disposing.
24042 2006-07-07 Chris Toshok <toshok@ximian.com>
24044 * LinkLabel.cs (Select): if we chain up to the parent, set
24045 focused_index to -1 so we'll search for the first available link
24046 the next time the user tabs into us. Also, if the direction is
24047 backward and focused_index == -1, start the search from the last
24050 2006-07-07 Chris Toshok <toshok@ximian.com>
24052 * LinkLabel.cs (CreatePiecesFromText): if the link's range piece
24053 is beyond the end of the text, don't do anything.
24054 (CreateLinkPieces): set our ControlStyles.Selectable based on
24055 whether or not we have any links.
24056 (Link.Invalidate): use a loop instead of foreach.
24057 (Link.set_Start): null out owner.sorted_links so it'll be
24058 recreated by CreateLinkPieces.
24060 2006-07-06 Chris Toshok <toshok@ximian.com>
24062 * LinkLabel.cs: revert the SetStyle change.
24064 2006-07-06 Chris Toshok <toshok@ximian.com>
24066 * LinkLabel.cs (.ctor): SetStyle Selectable to true.
24067 (OnEnableChanged): s/Refresh/Invalidate
24068 (OnGotFocus): if we have a focused index already, refocus it (so
24069 if we mouse out/in to the window it'll focus the right link).
24070 (OnKeyDown): move the tab handling out of here.
24071 (OnLostFocus): don't set focused_index to -1, so we can refocus it
24072 when we lose focus.
24073 (OnMouseDown): don't Capture here - Control handles it. Also,
24074 focus the active link.
24075 (OnMouseUp): don't deal with Capture.
24076 (OnPaintBackgroundInternal): remove.
24077 (OnTextAlignChanged): CreateLinkPieces before calling the
24078 superclass's method.
24079 (OnTextChanged): call CreateLinkPieces before calling superclass's
24081 (ProcessDialogKey): handle Tab here, and call Select(bool,bool) to
24083 (Select): implement this, moving the selection between different
24084 links, and call parent.SelectNextControl if we don't have another
24085 link to focus in the given direction.
24086 (CreateLinkPieces): call Invalidate instead of Refresh.
24088 2006-07-06 Chris Toshok <toshok@ximian.com>
24090 * ThemeWin32Classic.cs: DrawLinkLabel changes to accomodate the
24091 new LinkLabel internals.
24093 * LinkLabel.cs: fairly major rewrite. get rid of all the loops
24094 over pieces looking for active/focused/etc links. also, deal with
24095 runs of text (and links) with embedded \n's in them, and use
24096 MeasureCharacterRanges instead of MeasureString to figure out the
24097 regions text occupies. Lastly, do the usual s/Refresh/Invalidate
24100 2006-07-04 Jackson Harper <jackson@ximian.com>
24102 * XplatUIX11.cs: Enable key auto repeat. If the user doesn't have
24103 XKB or key auto repeat, do it manually. Without key auto repeat,
24104 when a key is held down we get key press, key release, key press,
24105 key release, ... with auto repeat we get key press, key press, key
24106 press ..., and then a release when the key is actually released.
24108 2006-07-03 Jackson Harper <jackson@ximian.com>
24111 * ThemeWin32Classic.cs: Tabs do not obey normal background color
24112 rules, they are always control color regardless of the background
24115 2006-07-02 Alexander Olk <alex.olk@googlemail.com>
24117 * FileDialog.cs: Added internal class MWFConfig.
24118 Removed Registry support and replaced it with support for the new
24119 MWFConfig class. See MWFConfig comments for more information.
24121 2006-06-30 Alexander Olk <alex.olk@googlemail.com>
24123 * ThemeWin32Classic.cs: Added RadioButton and CheckBox focus
24124 rectangle. Added some patches from eno from bug #78490 and fixed
24125 the arrow position for small up and down CPDrawScrollButtons.
24127 2006-06-30 Jackson Harper <jackson@ximian.com>
24129 * InternalWindowManager.cs: Remove some debug code.
24130 * Form.cs: When an MdiParent is set to null, the window is
24131 "detatched" and becomes a normal window.
24132 * MdiClient.cs: Don't bring the new child form to the front until
24133 it is activated (setting it as active does this), this makes the
24134 previously active forms titlebar get redrawn as inactive.
24136 2006-06-29 Peter Dennis Bartok <pbartok@novell.com>
24138 * PrintDialog.cs: Labels need a tab index too, otherwise they overlap
24139 with later controls
24141 2006-06-29 Mike Kestner <mkestner@novell.com>
24143 * MenuAPI.cs: handle arrow keys in keynav state. Go active on down
24144 arrow in keynav state. Fixes #78682.
24146 2006-06-28 Atsushi Enomoto <atsushi@ximian.com>
24148 * PrintDialog.cs: Reorder, relayout, remove extra code, set tab
24149 order (fixes #78393)
24151 2006-06-28 Jonathan Pobst <monkey@ipobst.com>
24153 * AccessibleRole.cs, AccessibleStates.cs, AnchorStyles.cs,
24154 ArrangeDirection.cs, ArrangeStartingPosition.cs, ColorDepth.cs,
24155 ControlStyles.cs, DataGridViewImageCellLayout.cs, DrawMode.cs,
24156 FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs,
24157 GridItemType.cs, HelpNavigator.cs, ImeMode.cs, ItemActivation.cs,
24158 ItemBoundsPortion.cs, Keys.cs, ListViewAlignment.cs,
24159 PictureBoxSizeMode.cs, PropertySort.cs, SelectionMode.cs,
24160 Shortcut.cs, SizeGripStyle.cs, SortOrder.cs, StructFormat.cs,
24161 TextFormatFlags.cs, ToolBarAppearance.cs, ToolBarButtonStyle.cs,
24162 ToolBarTextAlign.cs, View.cs: 2.0 Changes to existing 1.x
24163 enumerations (FlagsAttribute, SerializableAttribute, added/removed
24166 2006-06-28 Mike Kestner <mkestner@novell.com>
24168 * ComboBox.cs: implement scroll wheel support. Fixes #78360.
24170 2006-06-28 Atsushi Enomoto <atsushi@ximian.com>
24173 PropertyGridTextBox.cs : explicitly set BackColor to differentiate
24174 item lines from other area (It also makes BackColor consistent and
24175 compatible with .NET). Fixed bug #78564.
24177 2006-06-28 Jonathan Chambers <jonathan.chambers@ansys.com>
24179 * PropertyGrid.cs: refresh toolbar when PropertySort is set.
24180 Patch from Eno for #78555.
24182 2006-06-27 Chris Toshok <toshok@ximian.com>
24184 * ThemeWin32Classic.cs: s/grid.grid_drawing/grid
24186 * DataGridColumnStyle.cs: same.
24188 * DataGrid.cs: Roll DataGridDrawingLogic.cs into this file.
24190 * DataGridDrawingLogic.cs: nuke.
24192 2006-06-27 Chris Toshok <toshok@ximian.com>
24194 * DataGridTableStyle.cs: clean up the constructors, and build the
24195 list of child relations for this table. I have no idea if this is
24196 where we should be doing it (it probably isn't), but since we're
24197 already iterating over the properties..
24199 * DataGrid.cs: add row resizing. for now we add a DataGridRow
24200 struct and array for keeping track of row information, similar to
24201 what's shown in a hack on
24202 http://www.syncfusion.com/FAQ/WindowsForms/FAQ_c44c.aspx.
24204 * Theme.cs: be consistent about the naming of DataGrid methods,
24205 prefering ColumnWidths and RowHeights over columnsWidths and
24208 * ThemeWin32Classic.cs: same, and also add support for variable
24209 sized rows (and the +/- expansion icons for related rows).
24211 2006-06-27 Peter Dennis Bartok <pbartok@novell.com>
24213 * TextBoxBase.cs: Applied Eno's patch from #78660
24215 2006-06-27 Peter Dennis Bartok <pbartok@novell.com>
24217 * Form.cs (ScaleCore): We don't want to scale our form if it's
24218 state is minimized or maximized, but we still need to scale our
24219 child windows. Also, added try/finally block to ensure layout
24220 gets reset (Fixes #78697)
24222 2006-06-27 Peter Dennis Bartok <pbartok@novell.com>
24224 * Control.cs: Added 2.0 Scale(SizeF) method (Fixes 78700)
24226 2006-06-27 Peter Dennis Bartok <pbartok@novell.com>
24228 * Form.cs: Fixed c+p error and added check to resize form if minimum
24229 size is bigger than current size (Fixes #78709)
24231 2006-06-26 Peter Dennis Bartok <pbartok@novell.com>
24233 * ThemeEngine.cs (..ctor): Properly use ToLower() (Fixes #78704)
24235 2006-06-26 Mike Kestner <mkestner@novell.com>
24237 * ComboBox.cs: only do Keypress handling in the combo when there
24238 are items in the collection. Fixes #78710.
24240 2006-06-26 Chris Toshok <toshok@ximian.com>
24242 * Binding.cs: make this work bi-directionally. also, clear up
24243 other mixups between Push/Pull Data (e.g. we're supposed to pull
24244 data when validating).
24246 * BindingManagerBase.cs: trim some fully qualified collection
24249 * PropertyManager.cs (get_IsSuspended): oops, fix this check.
24251 2006-06-23 Chris Toshok <toshok@ximian.com>
24253 * PropertyManager.cs: It appears (according to the unit tests)
24254 that PropertyManager doesn't use
24255 PropertyDescriptor.AddValueChanged to track propery value changes
24256 in its datasource, but uses the same scheme as Binding, where it
24257 looks for a <Property>Changed event and binds to it.
24259 Also, according to the docs, IsSuspended always returns false for
24260 a property manager with a non-null datasource.
24262 2006-06-22 Peter Dennis Bartok <pbartok@novell.com>
24264 * Form.cs: (ShowDialog): If we're returning a forced cancel we still
24265 need to update the actual DialogResult. (Fixes #78613)
24267 2006-06-22 Peter Dennis Bartok <pbartok@novell.com>
24269 * Form.cs (ShowDialog): Release any captures before running the
24270 new message pump (fixes #78680)
24272 2006-06-22 Mike Kestner <mkestner@novell.com>
24274 * ListView.cs: Layout column widths properly in details mode even
24275 if HeaderStyle.None is set. Fixes #78691.
24277 2006-06-21 Peter Dennis Bartok <pbartok@novell.com>
24279 * FileDialog.cs: Fixed taborder to match MS. Fixes #77873 partially.
24281 2006-06-21 Peter Dennis Bartok <pbartok@novell.com>
24283 * Control.cs (ContainsFocus): Using new driver method to get focused
24284 window, instead of trying to use internal tracking var, which can
24285 recursion issues (Fixes #78685)
24286 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
24287 XplatUIWin32.cs: Added GetFocus method to return focused window
24289 2006-06-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24291 * ColorDialog.cs: when the mouse button is pressed inside the color
24292 matrix, don't let the cursor move out of it until the button is
24293 released, which is the behavior on windows. Changed 'colours' by
24294 'colors' to use the same word consistently.
24296 2006-06-21 Chris Toshok <toshok@ximian.com>
24298 * DataGrid.cs: add in some basic navigation stuff (navigating to a
24299 child relation and back, using a stack). Also, remove
24300 GetDataSource and the code that calls it - it's not needed. Also,
24301 track CurrencyManager.ListName's removal.
24303 2006-06-21 Chris Toshok <toshok@ximian.com>
24305 * CurrencyManager.cs: push some of the original type checking from
24306 BindingContext.CreateBindingManager to here, and remove some of
24307 the finalType stuff. Need more tests to make sure I've got the
24308 ListName part right, and we might need more in SetDataSource.
24310 * PropertyManager.cs: add a ctor that takes just the datasource,
24311 and no property name. Make SetDataSource work with a null
24312 property_name, and make Current return the data_source if the
24313 property descriptor is null. this makes 'string foo = "hi";
24314 BindingContext[foo].Current' return "hi" as it should.
24316 * RelatedCurrencyManager.cs: make this code more generic - there's
24317 no reason the parent manager has to be CurrencyManager, and
24318 there's no reason to pass the DataRelation. It suffices to use a
24319 BindingManagerBase and PropetyDescriptor.
24321 * RelatedPropertyManager.cs: make a similar change here.
24323 * BindingContext.cs: make CreateBindingManager the beautiful, tiny
24324 flower I knew it could be.
24326 2006-06-20 Chris Toshok <toshok@ximian.com>
24328 * PropertyManager.cs: the PropertyChangedHandler is invoked when
24329 data in the source has changed and we need to update the control,
24330 so s/PullData/PushData.
24332 * CurrencyManager.cs: Refresh is meant to update the control from
24333 data in the datasource. So, s/PullData/PushData.
24335 * BindingContext.cs: add more ugliness (we weren't handling the
24336 case where data_source = DataTable and data_member = column_name).
24338 * Binding.cs: fix PushData/PullData mixup. Both are interpreted
24339 from the perspective of the datasource. PullData pulls from the
24340 control, PushData pushes to the control.
24342 2006-06-20 Chris Toshok <toshok@ximian.com>
24344 * BindingContext.cs: rewrite the CreateBindingManager code to
24345 handle navigation paths more or less properly. This could
24346 definitely stand some more work, in particular to push the
24347 recursion up to the toplevel. But that relies on fixes in other
24348 places (System.Data comes to mind).
24350 Also, move to a flat hashtable (and encode the twolevel nature of
24351 the dictionary into the hash key). This lets us implement the
24352 IEnumerable.GetEnumerator method.
24354 * RelatedCurrencyManager.cs: new class. Update our view based on
24355 our relation and our parent CurrencyManager's position.
24357 * CurrencyManager.cs: split out some logic from the ctor into
24358 SetView, so it can be called from the new RelatedCurrencyManager
24361 * RelatedPropertyManager.cs: new class. Update our datasource
24362 based on the position of our parent CurrencyManager.
24364 * PropertyManager.cs: split out some logic from the ctor into
24365 SetDataSource, so it can be called from the new RelatedDataSource
24366 subclass. Also, make the Current getter return the value
24367 of the PropertyDescriptor, not the data_source.
24369 * Binding.cs: no need to duplicate the string splitting code here.
24371 2006-06-19 Peter Dennis Bartok <pbartok@novell.com>
24374 - set_Enabled: OnEnabledChanged is not called if the inherited state
24375 of the control is not altered, even though we might be changing the
24376 internal state of the control (#78458)
24377 - set_Enabled: (Re)Moved the enabling/disabling of the window to
24378 OnEnabledChanged, to allow easy altering of any child window state
24379 - OnEnabledChanged: Added code to enable/disable driver window state
24380 - OnParentEnabledChanged: Instead of firing the event, call
24381 OnEnabledChanged, which will fire the event and also a) set driver
24382 window state and pass the enabled state to any grandchildren (#78458)
24384 2006-06-19 Jackson Harper <jackson@ximian.com>
24386 * InternalWindowManager.cs: We don't set the cursor explicitly
24387 thats done via the response to NCHITTESTs.
24388 - Don't need to adjust for titlebar heights anymore, the
24389 coordinates are coming in the correct coordinates now (see peters
24393 2006-06-19 Peter Dennis Bartok <pbartok@novell.com>
24395 * XplatUIX11.cs (GetMessage): WM_NCxBUTTONx messages were wrongly
24396 being translated relative to whole window, instead of client window.
24397 That caused broken offsets on mouseclick (and caused gas for our
24398 InternalWindowManager)
24400 2006-06-15 Peter Dennis Bartok <pbartok@novell.com>
24403 - MoveCaret: Implemented PgUp, PgDown, CtrlPgUp and CtrlPgDown
24404 - Undo(): Added replay of cursor move on DeleteChars action; added
24405 calling Undo() again if a recorded cursor move is invalid (to
24406 ensure that some action is performed on Undo)
24407 * TextBoxBase.cs (ProcessKey): Added handling of PgUp and PgDown (#78482)
24409 2006-06-16 Jackson Harper <jackson@ximian.com>
24411 * MdiClient.cs: Instead of just sizing maximized windows when
24412 there is a resize we also have to adjust the Y of minimized
24413 windows, so they stay pinned to the bottom of the mdi container.
24414 - Eliminate separate tracking of the active control, we can just
24415 get this from the controls collection.
24416 - Paint the decorations for the newly activated titlebar so we get
24418 * InternalWindowManager.cs:
24419 * ThemeWin32Classic.cs: Minimized windows get all three buttons
24420 even if they are a tool window.
24422 2006-06-15 Peter Dennis Bartok <pbartok@novell.com>
24424 * TextControl.cs (Undo): Handle non-existent cursor locations in the
24425 undo buffer, these can happen when text was deleted and the cursor
24426 was recorded first. Since we will also have a recorded cursor
24427 after the delete this is not an issue. (Fixes #78651)
24429 2006-06-14 Peter Dennis Bartok <pbartok@novell.com>
24431 * AccessibleObject.cs: Remove dependence on Control.is_selected;
24432 instead properly track control states internally (allows us to
24433 remove is_selected from Control)
24435 2006-06-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24437 * ImageListStreamer.cs: correctly generate the 1bpp mask for images
24438 whose width is not a multiple of 8.
24440 2006-06-13 Jackson Harper <jackson@ximian.com>
24442 * MdiClient.cs: Only maximize the next child if the current one
24445 2006-06-13 Chris Toshok <toshok@ximian.com>
24447 * DataGridColumnStyle.cs: Invalidate the column when HeaderText is
24448 modified. Also, guard against grid or grid_drawing being null in
24451 * DataGrid.cs: Reformat tons of getters/setters. In the
24452 DataMember setter, just call SetNewDataSource instead of
24453 duplicating some of its functionality. In SetNewDataSource, don't
24454 check ListManager for null, since the property getter creates the
24457 * DataGridTableStyle.cs: don't set TableStyle or call
24458 SetDataGridInternal on the column here, it's done in
24459 GridColumnStylesCollection.Add.
24461 * GridColumnStylesCollection.cs: fix all the explicit interface
24462 implementations to just call our methods. Nuke AddInternal() and
24463 move the body of it to Add(). Also, add a call to
24464 column.SetDataGridInternal to Add().
24466 * DataGridTextBoxColumn.cs (.ctors): call this() instead of
24467 base()+duplicate code. Also, use the Format property instead of
24468 format to generate an Invalidate ala MS. Lastly, create the
24469 textbox here, unconditionally.
24470 (set_Format): call Invalidate.
24471 (get_TextBox): no need to call EnsureTextBox.
24472 (Commit): remove the message box.
24473 (Edit) remove the call to EnsureTextBox.
24474 (EndEdit): call HideEditBox instead of ReleaseHostedControl.
24475 (EnterNullValue): no need to check textbox for null.
24476 (HideEditBox): no need to check textbox for null.
24477 (SetDataGridInColumn): add the textbox to the grid's controls.
24478 (EnsureTextBox): nuke.
24480 2006-06-13 Jackson Harper <jackson@ximian.com>
24482 * MdiWindowManager.cs: Hook up to the maximized menus paint event
24483 and redraw the buttons when needed. Unhook when the window is
24485 * MainMenu.cs: Add an internal Paint event, the mdi window manager
24486 needs this so that it can redraw its buttons when the menu is
24488 * InternalWindowManager.cs:
24489 * Form.cs: The method order has changed for DrawMaximizedButtons,
24490 so that it can be a PaintEventHandler.
24492 2006-06-13 Jackson Harper <jackson@ximian.com>
24494 * MdiClient.cs: When we close a maximized mdi window, the next mdi
24495 window is activated and maximized, even if it wasn't before.
24496 - When a new window is activated repaint the decorations of the
24497 old one, so that it no longer has the Active "look" (the blue
24499 * InternalWindowManager.cs: Open up CreateButtons to base classes
24500 so they can recreate the buttons on state changes.
24501 - If a window is maximized give it all three buttons
24502 * MdiWindowManager.cs: Create the titlebar buttons when the state
24503 is changed, this is needed because a toolwindow will not have all
24504 three buttons until it is maximized.
24506 2006-06-13 Atsushi Enomoto <atsushi@ximian.com>
24508 * ProgressBar.cs : PerformStep() shouldn't exceed Maximum.
24511 2006-06-12 Jackson Harper <jackson@ximian.com>
24513 * KeysConverter.cs: Make sure we handle the Ctrl special case
24514 if its the only key.
24516 2006-06-12 Jackson Harper <jackson@ximian.com>
24518 * Theme.cs: Add a method to get the size of a managed window
24520 * InternalWindowManager.cs: Remove the ButtonSize property, this
24521 should be retrieved from the theme.
24522 * MdiWindowManager.cs: Get the button size from the theme
24523 * ThemeWin32Classic.cs: Make the method to get the managed window
24524 titlebar button size public.
24525 - Handle the different button sizes of maximized toolwindows
24526 (should match any maximized window).
24527 - Get the titlebar height from the theme, not the WM (which gets
24528 it from the theme).
24530 2006-06-12 Jackson Harper <jackson@ximian.com>
24532 * InternalWindowManager.cs: Handle NC Double Clicks, passing the
24533 event down to the mdi window manager.
24534 - Expose some extra stuff to base classes
24535 - Make sure to end the Capture on an NC Mouse up, so that we can
24536 get double clicks properly, and the sizing doens't stick.
24537 - When doing PointToClient contain it in the workable desktop
24538 area, this prevents windows from changing size when the cursor is
24539 pulled outside of the working area while sizing.
24540 * MdiWindowManager.cs: When we get a double click maximize the
24542 - Reset the cursor after handling mode changes.
24544 2006-06-12 Peter Dennis Bartok <pbartok@novell.com>
24546 * XplatUIX11.cs (WorkingArea): Read the actual workarea for the
24547 current desktop, instead of just assuming a 0, 0 origin. This
24548 is needed for our internal window manager, to know the top
24549 margin of the desktop
24551 2006-06-12 Chris Toshok <toshok@ximian.com>
24553 * DataGrid.cs (set_CurrentCell): concede focus as we move around.
24554 we need this to get rid of the selected background in the bool
24556 (CancelEditing): move the ConcedeFocus call to above the Abort
24557 call. Also, set is_changing to false and invalidate the row
24558 header if we were changing before.
24559 (ProcessKeyPreviewInternal): remove, since noone outside this
24560 class calls it anymore. Roll the code into ProcessKeyPreview.
24561 (EndEdit): remove the internal version.
24562 (InvalidateCurrentRowHeader): make private.
24564 * DataGridBoolColumn.cs: simplify this class a bunch. remove the
24565 Keys.Escape handling (and with it the last call to
24566 DataGrid.EndEdit from outside the class.)
24569 2006-06-12 Chris Toshok <toshok@ximian.com>
24571 * DataGridTextBox.cs (.ctor): isedit defaults to false.
24572 (OnKeyPress): set isedit to true.
24573 (ProcessKeyMessage): remove Keys.Enter handling from here. it's
24574 already handled by the grid.
24576 * DataGrid.cs (set_CurrentCell): more work here. it's still not
24578 (set_DataSource): SetDataSource always returns true, so stop
24579 putting it in an if statement.
24580 (EndEdit): get rid of some {}'s
24581 (ProcessGridKey): return true in case Keys.Escape.
24582 (ProcessKeyPreviewInternal): only handle KEYDOWN messages.
24583 (ConnectListManagerEvents,DisconnectListManagerEvents): connect to
24584 PositionChanged, stopped connecting to CurrentChanged.
24585 (GetDataSource): simplify this a bunch.
24586 (SetDataSource): change return type from bool to void.
24587 (OnListManagerPositionChanged): rename OnListManagerCurrentChanged
24588 to this, and make sure we don't set ListManager.Position inside
24590 (OnListManagerItemChanged): if we're passed an actual index,
24593 * CurrencyManager.cs (set_Position): don't call PullData here.
24595 2006-06-09 Jackson Harper <jackson@ximian.com>
24597 * TreeNode.cs: Recalculate the visible order before doing the
24598 Expand/Collapse Below calls, because those calls generate an
24600 - Reduce calls to the TreeView property, which is mildly expensive
24601 by using a local var.
24602 * Form.cs: Layout the MDI child windows when creating the parent
24604 - Don't use the internal constructor anymore
24605 * MdiClient.cs: use the parent form width/height (if available)
24606 when laying out the child windows, we do this because the
24607 mdiclient isn't docked yet when the initial layout is done.
24608 - Don't need an internal constructor anymore.
24610 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24612 * FileDialog.cs: handle access errors when trying to create a folder
24613 or changing to a directory. No need to initialize out parameters.
24615 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
24617 * FileDialog.cs: Append a number when creating a new folder if the
24618 folder already exists (use parenthesis instead of square brackets)
24620 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
24623 - Disabled registry support for windows and added better registry
24624 error checking for other systems (need to investigate why it
24625 works perfectly on my system)
24626 - If a folder already exist show an error MessageBox instead of
24627 trying to create an indexed name.
24628 - Fixed a non intentional typo.
24630 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24632 * FileDialog.cs: (SetFileName) don't crash if CurrentRealFolder is null.
24634 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
24636 * FileDialog.cs: When creating a new folder don't crash if the
24637 folder already exists.
24639 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
24641 * FileDialog.cs: Allmost a complete rewrite.
24642 - added a "virtual" file system that handles the differences
24643 between unix and windows file systems (especially the directory
24644 structure). Moved most of the directory and file handling code
24646 Added vfs classes: MWFVFS, FileSystem, WinFileSystem,
24647 UnixFileSystem and FSEntry.
24648 - Recently used folder/directory, size, location and used file names
24649 (file name ComboBox) are now stored in the registry and get read
24650 before the dialog shows up (fixes part 6 of bug #78446).
24651 - Creation of new folders/directories is now possible (context menu
24652 or ToolBar). Added TextEntryDialog for this that fills in the gap
24653 until ListView.LabelEdit works.
24654 - Fixed cursor handling (bug #78527) and focus handling for
24656 - Various "Search in" ComboBox enhancements. The content of the
24657 dropdown listbox now almost matches ms.
24658 - Changed the behaviour when the user switches to SpecialFolder
24659 Recent to show the ListView in View.Details.
24660 - Beside using the ToolBar to change the View property of the
24661 file ListView it is now possible to use the context menu too.
24663 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
24665 * ComboBox.cs: Don't create a new ObjectCollection when an item
24666 gets inserted. Just insert the item in the existing object_items
24669 2006-06-08 Jackson Harper <jackson@ximian.com>
24671 * OpenTreeNodeEnumerator.cs: Fix to use the Parent property, so
24672 that the treeview and root node checks are done also, this fixes a
24673 regression i caused in the unit tests.
24675 2006-06-07 Wade Berrier <wberrier@novell.com>
24677 * RichTextBox.cs: More ISO8859-1 -> unicode
24679 2006-06-07 Mike Kestner <mkestner@novell.com>
24681 * ComboBox.cs : use items to hold highlight/selection so that
24682 collection insertions don't require synchronization.
24684 2006-06-07 Jackson Harper <jackson@ximian.com>
24686 * InternalWindowManager.cs: Simplify (and FIX) the window sizing
24687 routine. We now always keep the sized edge at the cursor instead
24688 of computing movement and adjusting rects. There is one buglet
24689 with this method though when the cursor is moved over area that
24690 the window can not expand too (such as the toolbars on the desktop).
24692 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24694 * XplatUIX11.cs: (IsEnabled,IsVisible) the window handler can be null
24695 here. Fixes crash on startup in AlbumSurfer.
24697 2006-06-07 Peter Dennis Bartok <pbartok@novell.com>
24699 * RichTextBox.cs: Replaced embedded ISO8859-1 chars with proper unicode
24702 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24704 * XplatUIX11.cs: call XPending and XNextEvent inside the same lock()
24705 statement to avoid calling XNextEvent which will block if another thread
24706 took the event that we were expecting. Fixes bug #78605.
24708 2006-06-07 Mike Kestner <mkestner@novell.com>
24710 * ListView.cs : isolated checkbox clicking from the selection logic.
24711 Toggle check state on item doubleclicks. Really fixes #78454 part2.
24713 2006-06-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
24715 * Form.cs: Check that the value passed to Form.DialogResult
24716 is a valid enum value.
24718 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24720 * FileDialog.cs: disable the up button when in 'Recently Used' or 'My
24721 Computer'. Clicking it in the network view goes to 'My Computer'.
24722 Added CIFS filesystem type. Display the mount point of filesystems.
24723 Avoid duplicate mount points (happens for me with CIFS);
24725 2006-06-06 Jackson Harper <jackson@ximian.com>
24727 * InternalWindowManager.cs: Draw the maximized windows buttons
24730 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24732 * Form.cs: when running a modal dialog, ignore WM_CLOSE requests for
24733 all other dialogs. Fixes bug #78585.
24735 2006-06-06 Mike Kestner <mkestner@novell.com>
24737 * CheckedListBox.cs : apply CheckOnClick behavior to unchecking too.
24738 Only invalidate checkbox on checkstate changes to avoid flicker.
24739 * ListBox.cs : avoid unselect/select when clicking selected item.
24740 avoid reselection flicker for already multiselected items.
24743 2006-06-06 Jackson Harper <jackson@ximian.com>
24745 * MdiWindowManager.cs: When the window is closed do an NCRecalc on
24746 the parent form so that the menu is removed if needed.
24748 2006-06-06 Mike Kestner <mkestner@novell.com>
24750 * ListBox.cs : add ScrollWindow call to UpdateTopItem. fix
24751 Prev/Next/PrevPage/NextPage/Home/End index calculation. Fixes #78559.
24753 2006-06-06 Mike Kestner <mkestner@novell.com>
24755 * CheckedListBox.cs : rebuild check collection on Add. Fixes #78426.
24758 2006-06-06 Jackson Harper <jackson@ximian.com>
24760 * Control.cs: Use the property (instead of the field) to get the
24761 default cursor so it is instantiated correctly.
24762 * InternalWindowManager.cs: The OS doesn't give us an NCPAINT with
24763 resizes so we need to manually repaint the window decorations here.
24764 - Set the titlebar button locations as soon as they are created,
24765 otherwise they are not set correctly on win32.
24767 2006-06-06 Chris Toshok <toshok@ximian.com>
24769 * CurrencyManager.cs (set_Position): call PullData before
24771 (AddNew): after calling IBindingList.AddNew, update our
24772 listposition, and call OnCurrentChanged/OnPositionChanged (without
24774 (OnCurrentChanged): remove the call to PullData from here.
24775 (OnItemChanged): remove the call to PushData from here.
24776 (OnPositionChanged): change the test from == null to != null to
24777 match the other methods.
24778 (ListChangedHandler): the grossest part of the patch. Implement
24779 this such that it passes the unit tests in CurrencyManagerTest and
24780 the output more or less matches that of MS's implementation.
24782 2006-06-06 Mike Kestner <mkestner@novell.com>
24784 * ListView.cs : only update check state on single click.
24785 * ThemeWin32Classic.cs : fix focus drawing for details view without
24786 fullrowselect. Fixes #78454.
24787 * XplatUIX11.cs : fix for double click emission.
24789 2006-06-05 Jonathan Chambers <jonathan.chambers@ansys.com>
24791 * PropertyGridView.cs : Applied Atsushi's patch to fix
24792 font dialog bug (#78197).
24794 2006-06-05 Jackson Harper <jackson@ximian.com>
24796 * TreeNode.cs: Compute the next node for expanding/collapsing
24797 correctly. We now factor in nodes without a NextNode
24798 correctly. (Fixes somes cases in nunit-gui).
24799 * InternalWindowManager.cs: Set the bounds when updating the
24800 virtual position of a tool window.
24802 2006-06-05 Chris Toshok <toshok@ximian.com>
24804 * DataGrid.cs: rename cached_currencymgr to list_manager.
24805 (set_CurrentCell): move SetCurrentCell code here, and clean it up
24807 (CurrentRow, CurrentColumn): single accessors so we can make the
24808 cursor movement code a lot easier to understand.
24809 (CurrentRowIndex): implement this in terms of CurrentRow.
24810 (BeginEdit): clean this up a bit.
24811 (CancelEditing): sort out the is_editing/is_changing/is_adding
24813 (EndEdit): minor changes.
24814 (OnKeyDown): add a comment about a (most likely) unnecessary
24816 (OnMouseDown): cancel editing when we click on a row header. And
24817 use the CurrentRow setter, not CurrentCell.
24818 (ProcessDialogKey): directly call ProcessGridKey.
24819 (UpdateSelectionAfterCursorMove): factor out this common block of
24820 code (it's used everywhere that we move the cursor by updating row
24822 (ProcessGridKey): pretty substantial overhaul. Use the
24823 CurrentRow/CurrentColumn properties to make the code a lot more
24824 readable. Only use the CurrentCell property when we have to
24825 modify both row and column at once. Tab behavior is still broken,
24826 and Delete is untested.
24827 (Select): if we have no selected rows, set selection_start to
24829 (EditCurrentCell): rename EditCell this. It was only ever invoked
24830 with CurrentCell as the arg, so drop the arg and rename it.
24832 * DataGridColumnStyle.cs: clean up the constructors a little, and
24833 drop CommonConstructor().
24835 * DataGridTextBox.cs (.ctor): set accepts_return to true so we
24836 actually get notified when the user hits it.
24837 (ProcessKeyMessage): *substantially* simplify this method.
24838 There's no reason (that I can see) for the textbox to be making
24839 calls into the datagrid at all. Remove all of them but the ones
24840 for Enter handling. those will take some more work.
24842 * DataGridTextBoxColumn.cs (ConcedeFocus): implement this by
24843 calling HideEditBox.
24844 (HideEditBox): if we have an active textbox, render it invisible
24845 without causing a re-layout of the datagrid.
24847 2006-06-05 Mike Kestner <mkestner@novell.com>
24849 * ListView.cs : fix NRE crasher when focuseditem is cleared by
24850 collection changes by resetting it to Items[0]. Fixes #78587.
24852 2006-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24854 * MessageBox.cs: if the height of the text is larger than the icon_size,
24855 use that. Fixes bug #78575.
24857 2006-06-05 Jackson Harper <jackson@ximian.com>
24859 * TreeView.cs: Fix line drawing when scrolling. To do this each
24860 node is basically responsible for drawing its entire horizontal
24861 area. When drawing a node it draws its parent node lines if
24863 - Adjust the clip area to the viewport rectangle
24864 - Fix Left/Right key handling to match MS. (It expand/collapses
24865 and moves to parents/first child but does not move selection to
24867 - Fix SetTop to work with new bound calculation code
24868 - When scrollbars are no longer needed we need to reset scrolling
24869 vars and recalculate the visible order so the redraw is correct
24870 * TreeNode.cs: We can't expand/collapse nodes with no children.
24872 2006-06-03 John Luke <john.luke@gmail.com>
24874 * X11DesktopColors.cs: dllimport the exact gtk and gdk versions
24875 so the colors work without dev packages
24877 2006-06-02 Peter Dennis Bartok <pbartok@novell.com>
24880 - Select: Implemented to just use activate. Seems to match MS
24881 behaviour closest. Documented to only do actual control walking
24882 based on it's parameters if in a container control so I moved
24884 - Removed selection check logic from our internal Select() method
24885 * ContainerControl.cs:
24886 - Select: Moved selection logic from Control here, since MS documents
24887 that containers obey the bool arguments. No longer calling base
24889 2006-06-02 Jackson Harper <jackson@ximian.com>
24891 * TreeView.cs: If the selected node isn't changed when we get
24892 focus update the previously selected node so that we see the
24895 2006-06-02 Mike Kestner <mkestner@novell.com>
24897 * ComboBox.cs: restructure grab and general mouse event handling.
24898 Make the composite control raise mouse events like it was a single
24899 control for leaves/enters/motion/up/down events. fix dropdown list
24900 coordinate mangling and refactor it into the scrollbar subclass to
24901 reduce code duplication. Fixes #78282 #78361 and #78457.
24903 2006-06-02 Mike Kestner <mkestner@novell.com>
24905 * ScrollBar.cs: remove Capture setting/clearing, as it happens
24906 automatically in the Control.WndProc.
24908 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24910 * FileDialog.cs: fix crash when running SharpChess, which sets the
24911 FilterIndex to 2 with only one Filter.
24913 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24915 * ToolBar.cs: add SizeSpecified property.
24916 * ToolBarButton.cs: when the ButtonSize is calculated by the container,
24917 try to figure out our real size, otherwise fallback to what the
24920 2006-06-01 Peter Dennis Bartok <pbartok@novell.com>
24922 * XplatUIX11.cs (DefWndProc): WM_MOUSEWHEEL needs to be passed up
24923 * Control.cs (WndProc): MS always calls the DefWndProc to pass
24926 2006-06-01 Mike Kestner <mkestner@novell.com>
24928 * ListView.cs: revamp the focus management in ListView. It still
24929 causes churn of LostFocus/GotFocus emissions on clicks, but it's
24930 better than not handling focus at all. Will revisit when pdb feels
24931 the general focus handling is solid. Fixes #78526.
24933 2006-06-01 Jackson Harper <jackson@ximian.com>
24935 * TreeView.cs: Set the default border style in the constructor.
24936 - Move painting to use OnPaintInternal instead of capturing
24937 WM_PAINT, this is the correct way of doing things
24938 - UpdateBelow shouldn't invalidate the scrollbar area
24939 - Cap the top on update below in case the node was above the top
24940 of the viewport rectangle.
24941 - ExpandBelow and Collapse below need to obey Begin/End Update.
24942 * TreeNode.cs: Make is_expanded internal so the treenode
24943 collection can change it without firing the whole event chain.
24944 * TreeNodeCollection.cs: When clearing all the child nodes make
24945 sure to recalc the visible order.
24946 - Improve algo for remove the top node
24948 2006-06-01 Peter Dennis Bartok <pbartok@novell.com>
24950 * XplatUIX11.cs (SetFocus): Make sure we can handle re-entrancy due to
24951 SendMessage directly calling window procedures, which in turn might
24954 2006-06-01 Peter Dennis Bartok <pbartok@novell.com>
24956 * Control.cs: Don't handle WM_SETFOCUS if the same window already
24957 has focus (works around X11 sending a FocusIn after our SetFocus)
24958 * XplatUIX11.cs: Send KILLFOCUS before setting SETFOCUS on new window
24960 2006-06-01 Alexander Olk <alex.olk@googlemail.com>
24962 * Mime.cs: Fix for the NET_2_0 build.
24963 NameValueCollection needs StringComparer now.
24965 2006-05-31 Chris Toshok <toshok@ximian.com>
24967 * DataGridDrawingLogic.cs (FromPixelToColumn): modify this to also
24968 return (via an out parameter) the starting X of the column.
24969 (UpdateVisibleColumn): track change to FromPixelToColumn.
24970 (HitTest): add a ColumnResize case here.
24971 (DrawResizeLine): new function, probably poorly named.
24973 * DataGrid.cs (.ctor): get rid of cached_currencymgr_events. We
24974 only need to keep one reference.
24975 (set_ListManager): same.
24976 (OnMouseDown): call HitTest instead of grid_drawing.HitTest.
24977 Also, add support for HitTestType.ColumnResize.
24978 (OnMouseMove): add column resize behavior here, and change the
24979 cursor to the correct one as we move around the datagrid.
24980 (OnMouseUp): terminate the column resize if we're resizing.
24981 (ProcessGridKey): from the MS docs, Alt-0 enters the null value
24982 for the current cell.
24983 (ConnectListManagerEvents): use cached_currencymgr.
24984 (DisconnectListManagerEvents): fill this in, using
24985 cached_currencymgr.
24986 (SetCurrentCell): remove cached_currencymgr_events handling.
24987 (SetDataMember): only call DisconnectListManagerEvents if
24988 cached_currencymgr is != null.
24989 (SetDataSource): same.
24990 (OnListManagerCurrentChanged): cached_currencymgr_events ->
24991 cached_currencymgr.
24993 2006-05-31 Jackson Harper <jackson@ximian.com>
24995 * BindingManagerBase.cs: Remove somedebug code that creeped into
24997 * TreeNode.cs: We get the indent level dynamically right now, so
24998 don't track it as a member.
24999 * TreeNodeCollection.cs: Make sure all nodes added to the list
25000 have parents, treeviews/topnodes setup properly.
25001 - Don't attempt to track indent level.
25003 2006-05-30 Jackson Harper <jackson@ximian.com>
25005 * BindingContext.cs: Create the currency manager tables here.
25006 This allows us to more easily create null tables (when bad data
25007 members are used), and more easily create related currency
25009 * CurrencyManager.cs: All the table creation stuff is done by the
25010 binding context now.
25011 - Current should throw an exception if listposition is -1.
25012 - CancelCurrentEdit/EndCurrentEdit, do nothing if the list hasn't
25015 2006-05-30 Mike Kestner <mkestner@novell.com>
25017 * ListView.cs: allow reexpansion of zero-width column headers.
25020 2006-05-28 Chris Toshok <toshok@ximian.com>
25022 * CurrencyManager.cs (get_Current): after the late binding
25023 listposition = -1 fix, we need to guard against it here and return
25024 null, otherwise we raise an exception (which is swallowed
25025 elsewhere, and breaks datagrid databinding.)
25027 2006-05-26 Peter Dennis Bartok <pbartok@novell.com>
25029 * MenuAPI.cs (ProcessMenuKey): We can legally get msg types other
25030 than WM_SYSKEY, don't throw if get something unexpected (#78507)
25032 2006-05-26 Jackson Harper <jackson@ximian.com>
25035 * ThemeWin32Classic.cs: For color comparisons just use the ARGB
25036 values, it's faster and it's all we care about (we don't care if
25037 the names aren't equal).
25038 * KeyboardLayouts.cs: Eliminate some dead code.
25040 * X11Keyboard.cs: Lazy init keyboard detection.
25041 - Cleanup access modifiers a little.
25043 2006-05-26 Peter Dennis Bartok <pbartok@novell.com>
25045 * XplatUIX11.cs: Once again, attempting to get layout just right.
25047 2006-05-26 Peter Dennis Bartok <pbartok@novell.com>
25049 * LinkLabel.cs (CreateLinkPieces): Use MeasureString to calculate
25050 the sizes of each link section, that will result in sizes that
25051 match DrawString's layout (Fixes #78391)
25053 2006-05-27 Alexander Olk <alex.olk@googlemail.com>
25055 * FileDialog.cs: If AddExtension property is true autocomplete the
25056 extensions in SaveFileDialog correctly. Fixes bug #78453.
25057 Set MyNetwork and MyComputer to "C:\" for windows. This should
25058 fix part 8 of bug #78446 for now.
25060 2006-05-26 Chris Toshok <toshok@ximian.com>
25062 * DataGrid.cs (ColumnStartedEditing): fill these in. for now just
25063 invalidate the current row header if we need to, but presumably
25064 we'll invalidate the row corrsponding to the bounds or
25066 (GridHScrolled): switch back to this method, as it's part of the
25067 public api. *sigh*.
25068 (GridVScrolled): same.
25069 (OnMouseWheel): hack up something that more or less works. Call
25070 GridHScrolled/GridVScrolled directly, instead of duplicating much
25071 of their code here.
25072 (EnsureCellVisibility): reinstate a bunch of this code, since we
25073 can't just set the scrollbar Value and expect to do all the work
25074 in the ValueChanged handler. Also, Call Update() after scrolling
25075 in one direction so the other XplatX11.ScrollWindow call has the
25076 proper stuff in the proper places.
25077 (EditCell): set is_editing to true before calling .Edit.
25079 * DataGridTextBox.cs (set_IsInEditOrNavigateMode): just set it,
25080 don't bother comparing first.
25081 (OnKeyPress): call grid.ColumnStartedEditing before calling
25082 base.OnKeyPress. this will set is_changing and invalidate the row
25083 header if necessary.
25084 (ProcessKeyMessage): for WM_CHAR messages, call
25085 ProcessKeyEventArgs directly. swallow anything other than WM_CHAR
25088 * DataGridBoolColumn.cs (Edit): don't set is_editing to true here.
25089 it's done in the DataGrid.
25090 (NextState): call grid.ColumnStartedEditing, which takes care of
25091 invalidating the row header (and setting is_changing).
25093 * DataGridTextBoxColumn.cs (Edit): don't set is_editing to true
25094 here. it's done in the DataGrid.
25096 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25098 * Control.cs: allow changing the cursor when the mouse position is
25099 out of bounds but Capture is set.
25100 * LinkLabel.cs: handle the case when the mouse button is pressed on the
25101 linklabel but released somewhere else.
25103 2006-05-25 Jackson Harper <jackson@ximian.com>
25105 * TreeView.cs: When we get focus if there is no selected node make
25107 - Remove some uneeded setup code from Draw.
25108 * TreeNodeCollection.cs: If the tree doesn't have a top node when
25109 a new node is inserted make the new node the top.
25111 * Timer.cs: Use Utc time so that no local time zone stuff needs to
25112 be used (should be faster).
25114 2006-05-25 Chris Toshok <toshok@ximian.com>
25116 * DataGrid.cs (EnsureCellVisibility): remove some code to fix a
25117 problem with the last commit.
25119 2006-05-25 Chris Toshok <toshok@ximian.com>
25121 * DataGridTextBoxColumn.cs (ReleaseHostedControl): turns out we do
25122 need the invalidate call here, while scrolling right-to-left via
25123 the left arrow key (i.e. moving the editing cell while scrolling).
25125 * DataGrid.cs (.ctor): remove the initialization of
25126 ctrl_pressed/shift_pressed. We no longer track them using key
25127 up/down handlers, but by using Control.ModifierKeys. Also, switch
25128 to using ValueChanged handlers on the scrollbars instead of
25129 Scrolled event handlers. This simplifies a bunch of the scrolling
25131 (GridHValueChanged): rename from GridHScrolled, and change it to
25132 work with the new event args.
25133 (GridVValueChanged): same.
25134 (OnMouseDown): initialize ctrl_pressed/shift_pressed here.
25135 (OnMouseWheel): actually scroll the datagrid. Don't change the
25137 (ProcessGridKey): correct all the keyboard navigation stuff I
25138 could find. Ctrl up/down/left/right/home/end work now.
25139 (EnsureCellVisibility): correct method name spelling. Also,
25140 simplify this a touch by not explicitly calling the
25141 ScrollToRow/ScrollToColumnInPixels methods. We just set the
25143 (OnKeyUpDG): no need for this method now.
25145 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25147 * LinkLabel.cs: display the OverrideCursor when hovering the label.
25150 2006-05-25 Chris Toshok <toshok@ximian.com>
25152 * ThemeWin32Classic.cs: fix datagrid clipping problems caused by
25155 2006-05-25 Peter Dennis Bartok <pbartok@novell.com>
25157 * Application.cs: Moved setting of is_modal and closing to before
25158 we create the control, to allow the event handlers called as a
25159 result of creation affect closing. Also removed Gonzalo's previous
25160 change to setting DialogResult, the behaviour has been moved to
25163 - ShowDialog(): Removed explicit creation of the form, let RunLoop
25165 - ShowDialog(): If no dialog result is set, we need to return Cancel
25166 - WM_CLOSE: Fire Closing/Closed events, and reset dialog result if
25167 the close is cancelled
25169 2006-05-25 Jackson Harper <jackson@ximian.com>
25171 * StatusBar.cs: We only need to update the sizes of the other
25172 panels when we have auto size contents. Also we are only updating
25173 the contents of the panel, not the borders, so compensate for the
25174 border width (TODO: get this width from the theme somehow).
25175 * TreeView.cs: Scrollable is true by default
25176 - Use invalidate instead of refresh where needed
25177 - Factor the scrollable value into scrollbar updating
25178 - Update the scrollbars if the Scrollable property is altered
25179 - Update the selected node if its ImageIndex is changed
25180 - Handle null nodes in UpdateNode (mainly so we don't have to
25181 check if selected is null when updating it
25182 - Fix VisibleCount to use the ViewportRectangle so that scrollbars
25183 are factored into the visible count
25184 - Use VisibleCount for clarity in the code
25185 - When the font is changed we need to recurse through all the
25186 nodes and invalidate their sizes
25188 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25190 * Application.cs: set the DialogResult to fixed when the main form is
25191 hidden or destroyed while being modal.
25193 2006-05-25 Miguel de Icaza <miguel@novell.com>
25195 * Theme.cs: Use Tangoified messagebox icons.
25197 (GetSizedResourceImage): Also cope with width = 0 and do not
25198 trigger a warning in that case (0 means "give me your icon from
25199 the resouce, no special size needed).
25201 2006-05-25 Peter Dennis Bartok <pbartok@novell.com>
25203 * Application.cs: Leave runloop if the the main modal form is
25204 hidden (fixes #78484)
25206 2006-05-25 Atsushi Enomoto <atsushi@ximian.com>
25208 * BindingContext.cs : reject null datasource in Contains() and
25210 * CurrencyManager.cs : check data_member validity when data_source
25211 is dataset. When it is late binding, the initial position is -1.
25213 2006-05-24 Jackson Harper <jackson@ximian.com>
25215 * TreeNodeCollection.cs: Dont't recalculate the visible order on
25216 inserted nodes that aren't visible. This changes the
25217 max_visible_order which confuses scrollbar settings.
25218 - Use the enumerator to get the prev node instead of duplicating
25220 * TreeView.cs: Use new method for setting scrollbar values
25221 - Don't set the bounds every time the scrollbar is updated
25222 - When updating below the root node use an invalidate instead of a
25223 refresh to prevent the child controls (scrollbars) from being
25224 refreshed. (UpdateBelow still needs to be reworked anyways).
25225 - Reenable SetBottom now that visible orders are set correctly,
25226 added some debug code incase we ever get bad values there again.
25227 - Set the scrollbar max to 2 less then the max value, this
25228 compensates for the max value being one above the node count, and
25229 for scrollbars adding one extra "notch".
25230 - When drawing image nodes if there is an imagelist we draw the
25231 first image in the list if the supplied image index is out of the
25232 image list's bounds.
25234 2006-05-24 Peter Dennis Bartok <pbartok@novell.com>
25236 * XplatUIX11.cs: Don't blindly cache hwnd.ClientRect, reset it when
25237 we receive a size change from the WM (Fixes #78503)
25239 2006-05-24 Peter Dennis Bartok <pbartok@novell.com>
25241 * XplatUIWin32.cs, XplatUIX11.cs: Refresh when setting the Clip
25242 rectangle (Fixes #78501)
25244 2006-05-24 Peter Dennis Bartok <pbartok@novell.com>
25247 - Fixed MouseUp, MouseDown and MouseMove to treat mouseevent.Button
25249 - Fixed MouseMove to no longer switch pressed state unless the left
25250 mouse button is pressed. Atsushi provided the original patch (#78485)
25252 2006-05-24 Jackson Harper <jackson@ximian.com>
25254 * ScrollBar.cs: New internal methods that allow us to change a
25255 couple values on the scrollbar (the most common case is maximum
25256 and large change) without getting multiple invalidates.
25258 2006-05-24 Chris Toshok <toshok@ximian.com>
25260 * DataGridBoolColumn.cs (Abort): revert back to the saved setting.
25261 (Edit): save off the original state in oldState, and set
25262 grid.is_editing to true.
25263 (OnKeyDown): abort editing if escape is pressed. also, call
25264 NextState if space is pressed.
25265 (OnMouseDown): call NextState.
25266 (NextState): factor out shared code from OnKeyDown and OnMouseDown
25267 here. Also, only invalidate the row header once (on the initial
25268 is_changing switch) to save on redraws.
25270 2006-05-24 Chris Toshok <toshok@ximian.com>
25272 * DataGridTextBoxColumn.cs (Commit): only call SetColumnValueAtRow
25273 if the value in the cell is different than it was before. This
25274 keeps us from triggering a layout when we move around a datarid
25275 with a highlighted cell.
25276 (Edit): suspend layout when creating/positining the text box, and
25277 resume passing false so we don't ever actually re-layout.
25278 (ReleaseHostedControl): same.
25279 (EnsureTextBox): reformat slightly, and set WordWrap to false.
25281 * DataGridTextBox.cs (ProcessKeyMessage): it's not true that all
25282 control-key sequences should go to the datagrid - remove that
25283 lock. Also, modify the conditions under which we move between
25284 cells when moving the cursor within a cell, and remove the "this"
25285 and "base" from field accesses. We weren't even consistent, given
25286 they all were in the base class.
25288 2006-05-24 Atsushi Enomoto <atsushi@ximian.com>
25290 * Binding.cs : (.ctor)
25291 An obvious NRE fix for BindingTest.CtorNullTest().
25293 2006-05-23 Chris Toshok <toshok@ximian.com>
25295 * TextBoxBase.cs (get_Text): don't add a trailing newline, add
25296 them between lines. This fixes some quirks editing cells in the
25299 2006-05-23 Jackson Harper <jackson@ximian.com>
25301 * TreeView.cs: Use begin/end update when doing expand/collapse all
25302 so that we don't get flicker on the scrollbar.
25304 2006-05-23 Jackson Harper <jackson@ximian.com>
25306 * TreeNode.cs: Bounds are computed 'on the fly' now. This allows
25307 treenode calculations to be independant of the painting code. To
25308 do this nodes track a visible order which is calculated by the
25310 - Call new methods for expanding/collapsing nodes. These methods
25311 use scrollwindow so we don't have to update everything below the
25313 * TreeView.cs: Refactored drawing and scrolling code. We don't
25314 need to update nodes when drawing anymore or calculate scrollbar
25316 - Added new methods for expanding/collapsing nodes. These methods
25317 use ScrollWindow so as to not have to redraw all the nodes below.
25318 * TreeNodeCollection.cs: Recalc visible order and scrollbars when
25319 we add/remove nodes or sort.
25320 - Handle removing the selected and the top node properly.
25322 2006-05-23 Chris Toshok <toshok@ximian.com>
25324 * DataGridTextBoxColumn.cs (Edit): set grid.is_editing to true.
25325 maybe this should actually happen in the datagrid code?
25326 (EndEdit): no need to invalidate anything, given that
25327 ReleaseHostedControl causes the datagrid to relayout, which
25328 invalidates everything anyway.
25330 * DataGrid.cs (set_CurrentCell): remove duplicate check (it's also
25331 in SetCurrentCell).
25332 (set_SelectionBackColor): call InvalidateSelection instead of
25334 (set_SelectionForeColor): same.
25335 (BeginEdit): Flesh this out a bit.
25336 (CancelEditing): only do any of this if we're editing/adding.
25338 (OnMouseDown): there's no need to cancel editing here, it's done
25340 (SetCurrentCell): only invalidate the current row header if it's a
25341 different row than the new one.
25342 (ShiftSelection): fix this to work like MS does.
25343 (ResetSelection): factor out the invalidation of selected_rows to
25344 InvalidateSelection.
25345 (SetDataSource): cancel any editing that's going on.
25347 * DataGridColumnStyle.cs
25348 (IDataGridColumnStyleEditingNotificationService.ColumnStartedEditing):
25349 call the non-interface version.
25351 * ThemeWin32Classic.cs (DataGridPaintColumsHdrs): intersect the
25352 header rectangle with the clip rectangle so we don't redraw the
25353 entire header for just a small area. Gets rid of the last flicker
25354 when horizontally scrolling.
25355 (DataGridPaintRow): same.
25357 2006-05-23 Mike Kestner <mkestner@novell.com>
25359 * ListViewItem.cs: remove size for line hack from LargeIcon layout.
25360 * ThemeWin32Classic.cs: don't draw line. it's really the top of a
25361 poorly placed checkbox on the MS control. Fixes Alex's unfiled
25362 Critical bug report.
25364 2006-05-23 Peter Dennis Bartok <pbartok@novell.com>
25366 * PictureBox.cs: Fixed broken ControlStyles. Unit test no longer fails,
25367 and this fixes #78493
25369 2006-05-23 Miguel de Icaza <miguel@novell.com>
25371 * Theme.cs (GetSizedResourceImage): Scale images if the proper
25374 * FileDialog.cs: Do not change the background for the side bar as
25375 it wont work nicely with the theme, and also reduces the artifacts
25376 in rendering the icons (which I want to fix too).
25378 * MimeIcon.cs (ResourceImageLoader): Load images from assembly
25379 resources, not resgen resources.
25381 (PlatformDefaultHandler): Pull images using the new API.
25383 2006-05-23 Peter Dennis Bartok <pbartok@novell.com>
25385 * Hwnd.cs (Dispose): Remove any pending exposures. XEventQueue holds
25386 a reference to the hwnd and will not remove it unless there are
25387 no pending exposures (fixes #78341)
25388 * XplatUI.cs: Improved debug
25390 2006-05-23 Atsushi Enomoto <atsushi@ximian.com>
25392 * MenuAPI.cs : don't handle OnClick event when it was not the left
25393 button. Fixed bug #78487.
25395 2006-05-23 Mike Kestner <mkestner@novell.com>
25397 * MenuAPI.cs: fix placement of submenus for multi-row menu bars, and
25398 prefer submenus to the top menu for item lookup, to avoid popping down
25401 2006-05-23 Alexander Olk <alex.olk@googlemail.com>
25403 * ThemeWin32Classic.cs: Rewrote CPCPDrawScrollButton to drop
25404 Graphics.FillRectangle as the visual results are really bad (even
25405 on win). We now draw perfect arrows (and perfect shadows when the
25406 scrollbar is disabled). Simplified CPDrawGrid. CPDrawGrid now uses
25407 Pen.DashPattern to draw the dots of each line.
25409 2006-05-22 Alexander Olk <alex.olk@googlemail.com>
25411 * FileDialog.cs: Update the filename combobox when navigating through
25412 the ListView with the cursor keys. Fixes part 7 of bug #78446.
25414 2006-05-22 Mike Kestner <mkestner@novell.com>
25416 * ListView.cs: raise SelectedIndexChanged on keyboard selection.
25419 2006-05-22 Mike Kestner <mkestner@novell.com>
25421 * ComboBox.cs: Refresh in EndUpdate to pick up all the dropped Paint
25422 requests. Fix a misspelled parameter and a copy paste exception error
25425 2006-05-22 Peter Dennis Bartok <pbartok@novell.com>
25427 * ThemeWin32Classic.cs: Changed DefaultFont emSize from 8.25 to 8
25428 to get the same width/height (5/13) on X11 as the default font has on
25429 win32. This means that our DefaultFont emSize is smaller than the
25430 the MS SWF equivalent (even thought the width/height stays the same)
25432 2006-05-20 Jackson Harper <jackson@ximian.com>
25435 * MdiWindowManager.cs:
25436 * InternalWindowManager.cs: Make sure to use the border width from
25439 2006-05-20 Jordi Mas i Hernandez <jordimash@gmail.com>
25441 * PrintDialog.cs: Implements printer details
25443 2006-05-19 Alexander Olk <alex.olk@googlemail.com>
25445 * FileDialog.cs: Added focus handling for PopupButtonPanel.
25446 Fixes part 1 and 2 of bug #78446
25448 2006-05-19 Peter Dennis Bartok <pbartok@novell.com>
25450 * XplatUIX11.cs (SetWindowPos): Recalculate client area size on resizes
25451 instead of sticking to the first ever calculated value
25453 2006-05-19 Mike Kestner <mkestner@novell.com>
25455 * ComboBox.cs: fix mouse motion selection to use MousePosition and
25456 PointToClient, since Capture is set. Fixes #78344.
25458 2006-05-19 Mike Kestner <mkestner@novell.com>
25460 * ListView.cs: match MS behavior in Details view where items are not
25461 drawn if Columns.Count == 0.
25462 * ThemeWin32Classic.cs: only highlight ListView selection if focused.
25463 Use a separate pen to draw the check, since changing the width affects
25464 the box as well. Fixes #78454.
25466 2006-05-18 Miguel de Icaza <miguel@novell.com>
25468 * ListView.cs: ArgumentOutOfRangeException, single versions of the
25469 exception should throw the name of the invalid argument.
25471 * FileDialog.cs (OnClickOpenSaveButton): Avoid crash in open if
25472 there are no files listed.
25474 2006-05-18 Jackson Harper <jackson@ximian.com>
25476 * ThemeWin32Classic.cs: Don't use endcaps, they mess the drawing
25479 2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
25481 * Control.cs: Brought back our old UpdateZOrder method as a private
25482 function and switched our calls from UpdateZOrder to the new one.
25483 This fixes the Paint.Net canvas disappearing bug.
25485 2006-05-18 Jackson Harper <jackson@ximian.com>
25488 * ThemeWin32Classic.cs:
25489 * InternalWindowManager.cs: Move the drawing into the theme,
25490 expose everything the theme should need from the window manager.
25492 2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
25494 * XplatUIX11.cs (DefWndProc): WM_SETCURSOR: Assign the return value
25495 from the call to NativeWindow to avoid walking up the parent chain
25496 further than needed (speeds up setting cursors and avoids setting
25497 the wrong cursor if a parent has another cursor defined)
25498 * Cursor.cs: When loading an icon as cursor, MS uses the center of
25499 the icon as hotspot, not what's contained as hotspot in the icon
25500 file. This fixes the perceived drawing offset seen with Paint.Net
25502 2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
25505 - Store the calculated rectangle in Hwnd object and use it when
25506 setting the client size
25507 - Force Toolwindows to always be type Dock, to ensure they're on top
25509 2006-05-18 Mike Kestner <mkestner@novell.com>
25511 * ComboBox.cs: first pass at ComboBox rework. Layout is more
25512 consistent with MS positioning. IntegralHeight, ItemHeight, Sizing.
25513 Correctly initialize textcontrol and ListBox on DropDownStyle changes.
25514 Substantial refactoring to remove confusing nested classes. Coding
25515 standard and Get+Set->property refactorings. Shift to index based
25516 highlighting in ComboListBox instead of constantly using IndexOf and
25517 Items[]. Add invalidations on resize for DropDownList to fix ugliness
25518 in FileDialog growth. Draw borders manually since Simple mode needs
25519 to look like two independent controls. Make listbox border
25520 conditional to DropDownStyle. Improved OwnerDraw support.
25522 2006-05-18 Sebastien Pouliot <sebastien@ximian.com>
25524 * PaintEventArgs.cs: For 2.0, check for a null Graphics in the .ctor.
25525 Don't set the disposed graphics to null, so we can throw the "right"
25526 exception if the graphics is reused later (added a flag to avoid
25527 double disposing). Some behaviours are different under 2.0 and are
25528 filled under bug #78448.
25530 2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
25532 * Control.cs: When double-buffering is enabled, we need to reset
25533 our graphics context between paint calls. Otherwise, any
25534 transformations and other alterations on the context will
25535 become cumulative (#77734)
25537 2006-05-18 Mike Kestner <mkestner@novell.com>
25539 * ListView.cs: do focused item selection like MS on clicks.
25540 Rework focus handling for ItemControl so LostFocus invalidates as
25542 * ThemeWin32Classic.cs: only draw focus rectangle for ListViewItems if
25543 the ListView ItemControl has focus.
25545 2006-05-17 Peter Dennis Bartok <pbartok@novell.com>
25547 * XplatUIX11.cs: If client_window ends up being width or height zero
25548 due to border settings, move it off window inside whole_window (#78433)
25550 2006-05-17 Alexander Olk <alex.olk@googlemail.com>
25552 * Mime.cs: Shrink the mime file cache correctly.
25554 2006-05-17 Alexander Olk <alex.olk@googlemail.com>
25556 * ThemeWin32Classic.cs: Readded button focus drawing code. (#78429)
25558 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
25560 * XplatUIX11.cs (AddExpose): More sanity checks
25562 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
25565 - AddExpose: Don't add expose ranges outside the size of our
25567 - Cast opacity values to Int32 to avoid crashes with certain
25569 - Added disabled code paths that protect against illegal cross-
25570 thread painting (Developers.exe)
25572 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
25574 * ProgressBar.cs: Invalidate the control when it's resized
25575 since block size is based on control size. (#78388)
25577 2006-05-16 Miguel de Icaza <miguel@novell.com>
25579 * DataGrid.cs (SetDataBinding): per the discussion on irc, instead
25580 of setting the incoming argument to the "reset" value, we set the
25581 this.datamember to string.empty (before we were invalidating the
25586 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
25588 * Form.cs: Only apply transparency settings after the form
25589 is created. (Fixes #77800)
25591 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
25593 * ApplicationContext.cs: Grab the HandleDestroyed event so
25594 we know when to fire OnMainFormClosed
25596 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
25598 * Application.cs: Introduced sub-class to allow tracking of
25599 threads and centralized triggering of the event mess for
25600 ThreadExit, AppExit, etc.. (#76156)
25602 2006-05-16 Alexander Olk <alex.olk@googlemail.com>
25605 - Do not return a null icon index value for a mime subclass.
25606 Instead try the main mime type class too.
25607 - Seems that some newer distributions don't have a link to some
25608 gnome default icons anymore. So check the default gnome dir too.
25611 2006-05-16 Jackson Harper <jackson@ximian.com>
25613 * MdiClient.cs: Don't paint the parent background image if we have
25614 our own background image.
25616 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
25619 - PerformLayout: Do not shrink space filled by DockStyle.Fill
25620 controls, all filled controls are supposed to overlap (#78080)
25621 - UpdateZOrder is supposed to update the control's z-order in the
25622 parent's z-order chain. Fixed to behave like that
25623 - BringToFront: Removed obsolete code
25624 - SendToBack: Simplyfied
25625 - SetChildIndex: Trigger layout calculations when Z-order changes
25626 since layout is done by z-order
25628 2006-05-16 Chris Toshok <toshok@ximian.com>
25630 [ fixes bug #78410 ]
25631 * DataGrid.cs (set_AlternatingBackColor): use
25632 grid_drawing.InvalidateCells instead of Refresh().
25633 (set_BackColor): call grid_drawing.InvalidateCells.
25634 (set_BackgroundColor): use Invalidate instead of Refresh.
25636 * DataGridDrawingLogic.cs (InvalidateCells): new function, just
25637 invalidate the cell area.
25639 2006-05-15 Chris Toshok <toshok@ximian.com>
25641 [ fixes bug #78011 ]
25642 * ThemeWin32Classic.cs (DataGridPaintRows): pass the clip argument
25643 on to DataGridPaintRow.
25644 (DataGridPaintRow): take a clip argument, and only draw the cells
25645 which intersect it. same with the not_usedarea.
25647 * Theme.cs (DataGridPaintRow) add @clip parameter.
25649 * DataGrid.cs (ScrollToColumnInPixels): simplify, use
25650 XplatUI.ScrollWindow.
25651 (ScrollToRow): same.
25653 * DataGridDrawingLogic.cs (UpdateVisibleColumn): fix corner case
25654 with last column which was causing a gray swath to appear with the
25655 XplatUI.ScrollWindow code.
25657 2006-05-15 Chris Toshok <toshok@ximian.com>
25659 * ListBox.cs (HorizontalScrollEvent): in the non-multicolumn case,
25660 use XplatUI.ScrollWindow.
25661 (VerticalScrollEvent): use XplatUI.ScrollWindow.
25663 2006-05-15 Peter Dennis Bartok <pbartok@novell.com>
25665 * TextBoxBase.cs: Added handling of middle-button paste for X11. (#78375)
25667 2006-05-15 Peter Dennis Bartok <pbartok@novell.com>
25669 * Cursors.cs: For X11, read NWSE and NESW cursors from our resource
25670 file since there are no equivalent X11 cursors
25672 2006-05-15 Atsushi Enomoto <atsushi@ximian.com>
25674 * MonthCalendar.cs : DateTimePicker should reflect selected date
25675 on mouse*up*, not mouse*down*. Fixed originally reported part of
25678 2006-05-15 Atsushi Enomoto <atsushi@ximian.com>
25680 * TabControl.cs : When argument index is equal or more than tab
25681 count, just ignore. Fixed bug #78395.
25683 2006-05-15 Peter Dennis Bartok <pbartok@novell.com>
25685 * Control.cs: Dispose all child controls when control is diposed (#78394)
25687 2006-05-14 Alexander Olk <alex.olk@googlemail.com>
25689 * ColorDialog.cs: Finally it is possible to select the color with
25692 2006-05-14 Alexander Olk <alex.olk@googlemail.com>
25694 * PrintDialog.cs: Fix typo
25696 2006-05-14 Alexander Olk <alex.olk@googlemail.com>
25698 * PrintDialog.cs: PrintDialog is not resizable
25699 * ThemeWin32Classic.cs: Draw non links in LinkLabel with the correct
25700 color. Made some ToolBar drawing methods protected virtual.
25702 2006-05-13 Jordi Mas i Hernandez <jordimash@gmail.com>
25704 * PrintDialog.cs: Implementation of the PrintDialog
25706 2006-05-12 Chris Toshok <toshok@ximian.com>
25708 * ScrollBar.cs (set_Value): don't use Dirty/Invalidate to move the
25709 thumb, instead use MoveThumb. This has the side effect of making
25710 most of the other thumb moving machinery use MoveThumb as well.
25711 (OnHandleCreated): pass false for @dirty to UpdateThumbPos, as we
25712 need to actually invalidate the rectangle where the new thumb will
25714 (MoveThumb): use XplatUI.ScrollWindow to move the thumb around.
25715 We force an Update() after, so it's not as fast as it could be,
25716 but at least there's zero flicker and no droppings.
25717 (OnMouseMoveSB): in the thumb dragging case, use MoveThumb.
25718 (UpdateThumbPos): add another argument (dirty), which says whether
25719 or not to calculate/add dirty regions which we later invalidate.
25720 For cases where we know we're going to use MoveThumb, we pass
25721 false for this. Otherwise, pass true.
25723 2006-05-12 Jackson Harper <jackson@ximian.com>
25725 * ThemeWin32Class.cs: Fixes for alignment and icon rendering in
25728 2006-05-12 Peter Dennis Bartok <pbartok@novell.com>
25730 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new SetClipRegion
25731 and GetClipRegion methods and UserClipWontExposeParent property.
25732 * XplatUIWin32.cs: Implemented SetClipRegion/GetClipRegion methods,
25733 overriding UserClipWontExposeParent property, setting to false, since
25734 Win32 handles the required expose messages to draw our clipped parent
25736 * XplatUIX11.cs: Implemented SetClipRegion and GetClipRegion; updated
25737 PaintEventStart to set the user clip region if set.
25739 - Now internally tracking the Region for the control since we need to
25740 store it if the handle is not yet created and only set it when it
25741 becomes created. Before setting the region forced handle creation
25742 - Added code to draw the parents underneath a user-clipped region
25743 * Hwnd.cs: Added UserClip property
25745 2006-05-12 Chris Toshok <toshok@ximian.com>
25747 * ScrollBar.cs (set_LargeChange): Refresh() -> InvalidateDirty()
25748 (set_Maximum): same.
25749 (set_Minimum): same.
25750 (set_SmallChange): same.
25751 (OnMouseUpSB): remove the call to refresh when releasing the
25752 thumb. We shouldn't need it.
25754 2006-05-12 Miguel de Icaza <miguel@novell.com>
25756 * StatusBar.cs (UpdatePanel): If the panel being refreshes has the
25757 AutoSize set to None, we do not need to relayout everything, we
25758 just need to invalidate the current region.
25760 (Draw): Do not draw the entire ClientArea, just redraw the
25761 clip area being passed.
25763 * MdiClient.cs: Make MdiClient constructor with the Form argument
25766 2006-05-12 Jackson Harper <jackson@ximian.com>
25768 * ThemeWin32Classic.cs (DrawToolBar): Flat toolbars get their
25769 parents background image, but strangely not their own.
25770 - (DrawStatusBarPanel): Take into account horizontal alignment
25771 when drawing the strings and icons.
25773 2006-05-12 Mike Kestner <mkestner@novell.com>
25775 * ListBox.cs: avoid invalidations for focus when the collection is
25778 2006-05-12 Chris Toshok <toshok@ximian.com>
25780 * ScrollBar.cs (OnMouseMoveSB): when dragging the thumb, don't
25781 invalidate the entire thumb area. Call InvalidateDirty which
25782 limits the redraw to the thumb itself and surrounding pixels.
25784 * XplatUIX11.cs (ScrollWindow): optimize copying.
25786 2006-05-12 Chris Toshok <toshok@ximian.com>
25788 * DataGridDrawingLogic.cs: make CalcGridAreas non-reentrant.
25789 Figure out the positioning/layout in a single pass instead of
25790 multiple recursive invocations. Speeds up the initial display of
25791 the data grid. Also, make many things private that were
25792 originally public but unused outside this class.
25794 2006-05-11 Jackson Harper <jackson@ximian.com>
25796 * MdiClient.cs: Improved layout code.
25798 2006-05-11 Jonathan Chambers <jonathan.chambers@ansys.com>
25800 * PropertyGrid.cs : Only check GetPropertiesSupported for properties,
25801 not SelectedObject.
25803 2006-05-11 Chris Toshok <toshok@ximian.com>
25805 * Hwnd.cs (Invalid): don't start off with Rectangle.Empty, as
25806 union of that will always be {0,0,width,height}.
25808 2006-05-11 Jackson Harper <jackson@ximian.com>
25810 * Form.cs: Match MS's DefaultSize for forms (they must have
25811 changed the size in sp2).
25813 2006-05-11 Atsushi Enomoto <atsushi@ximian.com>
25815 * TextBoxBase.cs : implement CTRL+A (select all). Fixed bug #78368.
25817 2006-05-11 Atsushi Enomoto <atsushi@ximian.com>
25819 * TextControl.cs : Fixed bug #78109. This incorrect position
25820 comparison caused crash on automatic line split.
25821 * TextBoxBase.cs : reduce duplicate code.
25823 2006-05-10 Jackson Harper <jackson@ximian.com>
25825 * MdiClient.cs: Active form is only sent to the back when using
25826 the Next form functionality, when a form is clicked the current
25827 active shouldn't be sent to the back.
25828 - Layout the mdi windows when the container is first made visible.
25829 * Form.cs: Give the MdiClient a ref to the containing form when we
25832 2006-05-10 Atsushi Enomoto <atsushi@ximian.com>
25834 * LinkLabel.cs : link_font could be uninitialized, so populate one
25835 before actual use. Fixed bug #78340.
25837 2006-05-10 Atsushi Enomoto <atsushi@ximian.com>
25839 * XplatUIX11.cs : clipboard format native value is IntPtr.
25842 2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
25845 - Instead of showing context menus directly we send WM_CONTEXTMENU,
25846 which is passed up the parent chain by DefWndProc
25847 - We now handle WM_CONTEXTMENU to display any menu, or pass it
25848 to DefWndProc (#77956)
25849 * XplatUIX11.cs: Added handling of WM_CONTEXTMENU (pass up) to DefWndProc
25851 2006-05-10 Jackson Harper <jackson@ximian.com>
25853 * MdiClient.cs: We need to remove the controls from the mdi
25854 collection, when we close the window.
25855 * MdiWindowManager.cs: Special handling of closing mdi windows.
25856 * InternalWindowManager.cs: Make the close method virtual so the
25857 mdi window manager can handle it specially.
25859 2006-05-10 Jordi Mas i Hernandez <jordimash@gmail.com>
25862 - Recalculate grid when the data source has changed
25863 - Matches styles provided by user from all data sources types
25864 * DataGridTableStyle.cs: For columns that provided by the user set the
25865 with the preferred value is there was unassigned.
25866 * CurrencyManager.cs: throw OnItemChanged event
25868 2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
25870 * PictureBox.cs: Don't animate until handle is created. Start animation
25871 when handle is created.
25873 2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
25875 * XplatUIX11.cs, Hwnd.cs: Adopted Mike's patch from #77979 to match
25877 * XEventQueue.cs: We don't need to provide the extra info
25879 2006-05-10 Jackson Harper <jackson@ximian.com>
25881 * MdiClient.cs: If the mdi clients parent form has a background
25882 image set, we draw that background image for the mdi area's
25885 2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
25887 * TextBoxBase.cs: Set IBeam cursor (#78347)
25889 2006-05-10 Mike Kestner <mkestner@novell.com>
25891 * ToolBar.cs: fix some text padding issues with ButtonSize
25892 calculation. Update the default size to match MS documentation.
25893 * ToolBarButton.cs: use ToolBar.ButtonSize for layout of unspecified
25894 button size. Fixes #78296.
25896 2006-05-10 Mike Kestner <mkestner@novell.com>
25898 * ListBox.cs: use is_visible for scrollbar positioning in case the
25899 control isn't on screen yet. Fix off by one with Right vs Width
25900 usage. Update Scrollbars in SetBoundsCore. Fixes #78188 and #78258.
25902 2006-05-10 Jackson Harper <jackson@ximian.com>
25904 * X11Dnd.cs: Drop to a control with another control on top of it.
25905 * ToolBar.cs: Work on a copy of the buttons list, so that it can
25906 be modified in click handlers. TODO: Look for similar problems in
25909 2006-05-09 Jackson Harper <jackson@ximian.com>
25911 * Form.cs: Window managers need the old window state when setting
25913 * InternalWindowManager.cs: Allow the base mdi window manager to
25914 handle more of the MDI only stuff (like maximize buttons).
25915 * MdiWindowManager.cs: Fix some snafus in changing the window
25916 state. Add all the menu functionality, for both popup and
25918 * MdiClient.cs: When a new form is selected the currently
25919 activated form is sent to the back, this matches MS.
25920 - Implement a new method to activate the next mdi child window.
25922 2006-05-08 Peter Dennis Bartok <pbartok@novell.com>
25925 - Added new InternalCapture method to allow controls to prevent
25926 the capture behaviour on the click handlers
25927 - Switched to use InternalCapture
25929 - Using InternalCapture to prevent mouse captures from being released
25930 on mouse button release (Fixes #78100)
25931 * XplatUIX11.cs (DeriveStyles): Now checks caption state and only
25932 returns Form borders if a caption is present. (Fixes #78310)
25934 2006-05-08 Peter Dennis Bartok <pbartok@novell.com>
25936 * TreeNode.cs: Changed serialization .ctor to not require every field
25937 to be present. (#78265)
25938 * OwnerDrawPropertyBag.cs: Added serialization .ctor
25940 2006-05-05 Alexander Olk <alex.olk@googlemail.com>
25942 * MimeIcon.cs: for is faster than foreach for strings.
25944 2006-05-05 Mike Kestner <mkestner@novell.com>
25946 * CheckedListBox.cs: update check handling code to not use selected.
25947 * ListBox.cs: rewrite of mouse selection handling to correspond to MS
25948 behavior for visual feedback, motion response, shift/ctrl handling,
25949 and properly deal with all 4 selection modes. Updates to bounds
25950 handling logic. Add scroll wheel support. [Fixes #77842]
25952 2006-05-05 Peter Dennis Bartok <pbartok@novell.com>
25955 - Moved adding of Implicit controls into .ctor. That way, subsequent
25956 creation of the controls will not cause them to think they are
25957 toplevel windows (fixes #78200 header problem)
25958 - Added 2.0 ShowGroups and UseCompatibleStateImageBehaviour
25959 - Switched visibility setting of header control to use internal field
25960 to avoid triggering handle creation
25961 - Now checking if handle is created before causing a refresh when items
25962 are added (This makes us now match handle creation time with MS)
25963 * Splitter.cs: Removed loading of private splitter cursor, switched to
25964 Cursors version now that that is loading the right ones
25965 * Cursors.cs: Load proper splitter cursors from resources
25966 * Cursor.cs: Added second method of loading resource cursors for the
25967 VS.Net users amongst us
25969 2006-05-05 Mike Kestner <mkestner@novell.com>
25971 * ListView.cs: give header_control a minimum size based on the
25974 2006-05-05 Peter Dennis Bartok <pbartok@novell.com>
25976 * XplatUIX11.cs: WS_EX_TOPMOST requires window to be on top. A dock
25977 window seems to do that with metacity, so set that type. (#78120)
25979 2006-05-05 Mike Kestner <mkestner@novell.com>
25981 * ListViewItem.cs: fix Details mode checkbox layout bug.
25982 * ThemeWin32Classic.cs: draw a ListView column header for unused space
25983 at the end of the header, if it exists. [Fixes for #78200]
25985 2006-05-04 Jackson Harper <jackson@ximian.com>
25987 * MdiClient.cs: Add a helper property to get the container form.
25988 * MdiWindowManager.cs: We have to make sure to use the menu origin
25989 when drawing the icons and buttons, this fixes maximized window
25990 icons/buttons on win32.
25991 * InternalWindowManager.cs: Reset the restore captions when a
25992 window goes from Maximized to Minimized and vice versa. Move the
25993 DrawMaximizedButtons into the MdiWindowManager source, tool
25994 windows can't be maximized. NOTE: This could use a little
25995 refactoring if time ever permits.
25997 2006-05-03 Jonathan Chambers <jonathan.chambers@ansys.com>
25999 * TextBox.cs: Add MWFCategoryAttributes
26000 * TextBoxBase.cs: Add MWFCategoryAttributes
26001 * Form.cs: Add MWFCategoryAttributes
26003 2006-05-03 Jonathan Chambers <jonathan.chambers@ansys.com>
26005 * Control.cs: Add MWFCategoryAttributes
26006 * ScrollableControl.cs: Add MWFCategoryAttributes
26008 2006-05-03 Alexander Olk <alex.olk@googlemail.com>
26010 * ThemeWin32Classic.cs: Draw the ToolBar top border only if
26011 Divider is true. Fix a little glitch in PropertyToolBar
26014 2006-05-02 Peter Dennis Bartok <pbartok@novell.com>
26017 - Dispose: Call base.Dispose, this causes the disposed event
26018 to be fired (and probably other, more important stuff)
26019 - SetVisibleCore: Set is_visible to true after creating the
26020 window so that the window still gets created invisible (if
26021 WM_VISIBLE isn't set). That will cause the ShowWindow afterwards
26022 to generate a WM_ACTIVE message
26023 * Form.cs: Call Dispose when we want to destroy the window, instead of
26024 just destroying the handle (Dispose will do that for us)
26026 - RootWindow also needs a queue, so we can properly process the
26027 property change events from RootWindow (like Activate)
26028 - Generatic synthetic WM_ACTIVE message when the active window is
26031 2006-05-01 Peter Dennis Bartok <pbartok@novell.com>
26033 * LinkLabel.cs: Trigger a recalc of our label dimensions when
26036 2006-05-01 Peter Dennis Bartok <pbartok@novell.com>
26038 * ThemeWin32Classic.cs (ButtonBase_DrawImage): Use the proper image
26039 for determining width and height (image might not be assigned if
26040 we're drawing an imagelist)
26042 2006-05-01 Peter Dennis Bartok <pbartok@novell.com>
26044 * XplatUI.cs, XplatUIDriver.cs: Added MenuHeight property
26045 * XplatUIWin32.cs: Overriding new MenuHeight property, retrieving
26047 * Theme.cs: No longer returns hardcoded menu height, instead calls
26049 * Form.cs (OnLoad): Scaling happens before triggering Load events
26052 2006-05-01 Mike Kestner <mkestner@novell.com>
26054 * MenuItem.cs: fix NRE for text == null. Fixes #78250.
26056 2006-04-30 Peter Dennis Bartok <pbartok@novell.com>
26058 * TextBoxBase.cs: Removed Fixme
26059 * RichTextBox.cs (set_RTF): Invalidate document after update (#78247)
26061 2006-04-30 Peter Dennis Bartok <pbartok@novell.com>
26064 - ScrollWindow: We were passing hwnd.ClientRectangle which returns
26065 the rectangle relative to the parent, considering borders. We
26066 don't really want that.
26067 - ScrollWindow: Fixed warning to be more understandable
26068 * TextBoxBase.cs: Fixed ScrollWindow calculations to consider our
26069 scrollbars and scroll only the visible area
26070 * RichTextBox.cs: Removed debug output
26072 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
26074 * NumericUpDown.cs (Text): Just use base
26075 * UpDownBase.cs: Ensure txtView is created before using it
26077 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
26079 * XplatUIX11.cs (SetWindowTransparency): Casting opacity to int before
26080 casting to IntPtr to avoid 64bit overflow errors
26082 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
26085 - AllowDrop: Don't force handle creation.
26086 - CreateHandle: Added call to tell driver if we're allowed to drop
26088 2006-04-27 Alexander Olk <alex.olk@googlemail.com>
26090 * FileDialog.cs: Remember the last directory not only for the
26091 current instance but also for new FileDialog instances.
26093 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
26095 * XplatUIX11.cs: Forgot to set the queue on the foster parent. That
26096 broke sending async messages
26098 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
26101 - ScrollWindow: Fixed method. We finally generate expose events again
26102 for scrolled areas. This was causing 'garbage' when scrolling
26103 textbox and other controls that used ScrollWindow
26104 - Switched from using the regular queue for paint events to the MS
26105 model of 'generating' paint events when the queue is empty.
26106 We use the new XQueueEvent.Paint subclass to store which windows
26108 - AddExpose now takes the x/y/width/height of the exposed area
26109 and inserts the window into the paint queue if not already there
26110 - InvalidateWholeWindow: Switched to use new AddExpose method
26111 - UpdateMessageQueue: Added which queue to monitor for paint events
26112 - DefWndProc: Added default handler for WM_PAINT and WM_NCPAINT in
26113 the unlikely case nothing above handles it. We reset the expose
26114 pending states to get them off the queue.
26115 - GetMessage: Now pulls a paint event if no other events are in the
26117 - Invalidate: Switched to new AddExpose method
26118 - PeekMessage: Updated to understand pending paint events
26119 - UpdateWindow: Fixed logic bug. We were only updating if the window
26120 didn't need updating. Also switched to sending WM_PAINT directly,
26122 * XEventQueue.cs: Added Paint queue support. Allows enqueue/dequeue
26123 and random access Remove(). The random access is needed to handle
26124 UpdateWindow() where a WM_PAINT is sent directly without accessing
26126 * ScrollBar.cs: Added Update() calls to cause immediate updates to
26127 allow for better feedback when scrolling. Scrollbars are small and
26128 the immediate update should make it 'feel' more responsive without
26129 slowing things down. ScrollBar still needs it's invaliate logic
26130 updated to not always invalidate the whole bar on certain changes.
26132 2006-04-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
26135 (BackColor): if the control does not support a transparent background,
26136 return the default backcolor when the parent backcolor is transparent.
26138 2006-04-28 Peter Dennis Bartok <pbartok@novell.com>
26140 * Application.cs: Updated to new StartLoop/GetMessage API
26141 * RichTextBox.cs: Provide some output on RTF parsing errors
26142 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs: Added
26143 new queue_id argument to GetMessage and PeekMessage to allow faster
26144 handling of per-thread queues in drivers.
26145 * Hwnd.cs: Added Queue tracking and property
26146 * MenuAPI.cs: Updated to new StartLoop/GetMessage API
26147 * XEventQueue.cs: Added thread trackingA
26148 * PropertyGridView.cs: Updated to new StartLoop/GetMessage API
26150 - Implemented new per-thread queue
26151 - GetMessage: Fixed return/break behaviour on several cases. We were
26152 returning stale messages in some cases, instead of just processing
26155 2006-04-27 Jonathan Chambers <jonathan.chambers@ansys.com>
26157 * PropertyGrid.cs: Call GetPropertiesSupported on TypeConverter.
26159 2006-04-27 Peter Dennis Bartok <pbartok@novell.com>
26161 * ThemeWin32Classic.cs (DrawToolBar): Refactored, simplified the logic,
26162 fixed off-by-one comparisons between Width/Height and Right/Bottom.
26164 2006-04-27 Jonathan Chambers <jonathan.chambers@ansys.com>
26166 * PropertyGridView.cs: Fix drop down width.
26168 2006-04-27 Alexander Olk <alex.olk@googlemail.com>
26170 * ThemeWin32Classic.cs: Peter thinks that three additional lines are
26171 a mess in DrawToolBar, so I removed one of them.
26173 2006-04-27 Alexander Olk <alex.olk@googlemail.com>
26175 * ThemeWin32Classic.cs: Draw the ToolBar border lines only if
26176 needed (clip). Otherwise we get artifacts.
26178 2006-04-26 Peter Dennis Bartok <pbartok@novell.com>
26180 * FixedSizeTextBox.cs: Added constructor to allow specifying which
26182 * UpDownBase.cs: Set the spinner control to be fixed height vertical,
26183 and switched FixedSizeTextBox to only be fixed vertical (#78116)
26184 * Form.cs: Not applying the 'MS 0.08 fudge factor' for a given dimension
26185 if it matches the scale base font (avoids unneeded scaling)
26187 2006-04-26 Alexander Olk <alex.olk@googlemail.com>
26189 * X11DesktopColors.cs: One gtk_init_check should be enough
26191 2006-04-26 Peter Dennis Bartok <pbartok@novell.com>
26193 * TextBoxBase.cs: Moved Backspace handling into WM_CHAR block to
26196 2006-04-26 Peter Dennis Bartok <pbartok@novell.com>
26199 - Generate OnTextChanged for Backspace even if we're only deleting
26200 the current selection
26201 - When setting the Text property, only select all text if the
26202 control does not have focus when it is being set. Otherwise
26203 just place the cursor at the beginning of the control
26205 2006-04-26 Alexander Olk <alex.olk@googlemail.com>
26207 * ThemeWin32Classic.cs: ToolBars get drawn with two lines at the top.
26208 Added a little helper to draw PropertyGrid ToolBar with a different
26209 border and a different BackColor.
26210 * PropertyGrid.cs: Some background parts didn't get painted with the
26211 correct background color. Added a class that helps us to draw the
26212 correct border for PropertyGridView and a class that helps us to
26213 draw ToolBars with a different backcolor
26214 * PropertyGridView.cs: Draw PlusMinus with the correct colors.
26216 2006-04-25 Jonathan Chambers <jonathan.chambers@ansys.com>
26218 * PropertyGrid.cs: Bug 78196, font size, and splitter location.
26219 * PropertyGridView.cs: Bug 78196, font size, and splitter location.
26221 2006-04-25 Peter Dennis Bartok <pbartok@novell.com>
26223 * XplatUIWin32.cs (DIBtoImage): ORing instead of ANDing the alpha
26224 into the palette entries. Also, since we're working on a copy
26225 we needed to copy the palette back onto the bitmap.
26226 * Cursor.cs: Same fix as XplatUIWin32.cs.
26228 2006-04-25 Peter Dennis Bartok <pbartok@novell.com>
26230 * ImageListStreamer.cs: Need to read the var (or we're off)
26232 2006-04-25 Peter Dennis Bartok <pbartok@novell.com>
26234 * TextControl.cs, ComboBox.cs, CommonDialog.cs, Theme.cs,
26235 XplatUIWin32.cs, RichTextBox.cs, ImageListStreamer.cs,
26236 TextBoxBase.cs: Unused var fixes
26237 * AxHost.cs: Small 2.0 fix
26238 * XplatUIX11.cs: Switched to IntPtr from int for XA_CARDINAL atoms
26239 as it seems that is what at least Metacity expects. This will make
26240 icons show up on 64bit platforms. We still have some 64bit size
26241 issues, though, since the startup app window size still won't match.
26243 2006-04-25 Mike Kestner <mkestner@novell.com>
26245 * *.cs: cleanup newly reported exception var unused warnings.
26247 2006-04-25 Alexander Olk <alex.olk@googlemail.com>
26249 * ThemeWin32Classic.cs: Button image alignment now matches exactly
26252 2006-04-25 Alexander Olk <alex.olk@googlemail.com>
26254 * ThemeWin32Classic.cs: Fixed drawing code for buttons with an
26255 image. The image position is always the same, no matter if the
26256 button is pressed or not.
26258 2006-04-25 Alexander Olk <alex.olk@googlemail.com>
26260 * FileDialog.cs: SaveFileDialog shouldn't rely on a MWFFileView
26261 selection and set the correct filename for SaveFileDialog.
26262 Patch by Emery Conrad.
26264 2006-04-24 Mike Kestner <mkestner@novell.com>
26266 * ListView.cs (LastVisibleIndex): when in List mode of Alignment.Left,
26267 check for item.X outside the ClientRect instead of item.Y. Fixes
26270 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
26272 * ImageListStreamer.cs: some images store a wrong grow factor, so don't
26273 trust that value blindly and do some sanity check. Fixes bug #77814.
26275 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
26277 * ImageListStreamer.cs: save the mask as a 1bpp image.
26279 2006-04-21 Mike Kestner <mkestner@novell.com>
26281 * CheckedListBox.cs: maintain CheckStatus here. Use DrawItemState to
26282 pass Checked and Indeterminate to the Theme Engine. Improve
26283 encapsulation with ListBox.
26284 * ListBox.cs: Keep a StringFormat instead of calculating it every item
26285 draw. Kill ListBoxItem. Refactor away the ListBoxInfo and ListBoxItem
26286 nested types. Move all CheckState functionality to CheckedListBox.
26287 Make IntegralHeight work like MS. Rewrite of Layout engine. Fix
26288 OwnerDrawVariable layout/rendering. Fix multicolumn rendering. Fix
26289 ScrollAlwaysVisible handling. Refactor "selected" collections to use a
26290 single base list. Fix scrollbar sizing and placement to mirror MS.
26291 * Theme.cs: remove CheckedListBoxCheckRectangle. It wasn't really
26293 * ThemeWin32Classic.cs: implement Indeterminate CheckState rendering
26294 for CheckedListBox by using new DrawItemState info. Center the
26295 checkboxes on the items. Use new StringFormat property.
26297 2006-04-18 Jackson Harper <jackson@ximian.com>
26299 * Form.cs: MdiChildren don't do default locations the same way as
26300 regular forms. This prevents a crash when trying to position the
26303 2006-04-17 Jonathan Chambers <jonathan.chambers@ansys.com>
26305 * PropertyGridTextBox.cs: Formatting, copyright
26306 * PropertiesTab.cs: Formatting
26307 * PropertyGrid.cs: Formatting
26308 * PropertyGridView.cs: Formatting, fix drop down, enabled double
26309 click toggling of values
26311 2006-04-17 Peter Dennis Bartok <pbartok@novell.com>
26313 * KeyPressEventArgs: Added 2.0 only setter for KeyChar
26314 * Control.cs (.ctor): verify_thread_handle is static, don't reset
26315 every time a control is created
26316 * Application.cs: Removed obsolete EnableRTLMirroring method
26318 2006-04-18 Gert Driesen <drieseng@users.sourceforge.net>
26320 * TabControl.cs: Avoid ArgumentOutOfRangeException when setting
26321 SelectedIndex to -1. Fixes bug #78121.
26323 2006-04-17 Jackson Harper <jackson@ximian.com>
26325 * Binding.cs: Handle null values for Current and BindingContext.
26326 This occurs when binding is a little delayed.
26327 * CurrencyManager.cs: return null for Current when there are no
26329 - Hookup to the listchanged event on the DataView and update
26330 bindings when the list is changed. This fixes late binding of
26333 2006-04-17 Jackson Harper <jackson@ximian.com>
26336 * XplatUIX11.cs: Drops should not create a mousedown. Patch by Tim
26339 2006-04-15 Alexander Olk <alex.olk@googlemail.com>
26341 * ThemeWin32Classic.cs: Draw disabled combo button in the correct
26343 * ComboBox.cs: If the combobox is disabled call CPDrawComboButton
26344 with the correct ButtonState
26346 2006-04-14 Peter Dennis Bartok <pbartok@novell.com>
26348 * XplatUIX11.cs: Improved distinguishing between window types to
26349 tell the WM a type closer to what the app wants (Fixes #78107)
26351 2006-04-14 Alexander Olk <alex.olk@googlemail.com>
26353 * ThemeWin32Classic.cs: Fixed drawing of ContainerGrabHandle and
26356 2006-04-14 Alexander Olk <alex.olk@googlemail.com>
26358 * ThemeWin32Classic.cs: Fixed size grip drawing and updated StatusBar
26359 drawing code to reflect the size grip changes
26361 2006-04-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
26363 * ImageListStreamer.cs: fix handling of the mask that follows the main
26364 bitmap when deserializing and serialize it properly. The generated mask
26365 should better be a 1bpp image, but I'll do that later.
26367 2006-04-13 Alexander Olk <alex.olk@googlemail.com>
26369 * FileDialog.cs: Show something in the DirComboBox on *nix if the
26370 path doesn't fit into some of our Current.Places
26372 2006-04-13 Jackson Harper <jackson@ximian.com>
26374 * ComboBox.cs: Use borders instead of drawing our own decorations,
26375 try to obey correct rules for heights.
26378 * ThemeClearLooks.cs:
26379 * ThemeWin32Classic.cs: Remove combobox decoration drawing code,
26380 this is now handled by borders.
26381 - Remove unused DrawListBoxDecorationSize method.
26383 2006-04-13 Mike Kestner <mkestner@novell.com>
26385 * MenuAPI.cs: null guarding for the disbled click check fixes crash
26388 2006-04-13 Alexander Olk <alex.olk@googlemail.com>
26390 * ThemeWin32Classic.cs:
26391 - Fixed CPDrawStringDisabled
26392 - Corrected drawing of disabled menu items
26393 - Fixed drawing of disabled radio buttons (bug #78095)
26394 - Draw check in a disabled CheckBox with color ControlDark
26396 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
26398 * Form.cs: Use the provided width when calculating the menu size;
26399 when being maximized we get WM_NCCALCSIZE before WM_WINDOWPOSCHANGED
26400 and ClientSize.Width won't be updated yet
26401 * Application.cs: Use Visible instead of Show() to make form visible,
26402 this way we create the handle later and menusize is considered
26404 2006-04-12 Mike Kestner <mkestner@novell.com>
26406 * MenuAPI.cs: ignore clicks on disabled menu items. Thanks to Alex for
26409 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
26411 * TextBox.cs: Implemented context menu
26413 2006-04-12 Mike Kestner <mkestner@novell.com>
26415 * ListView.cs: implement box selection. fixes #77838.
26416 * ThemeWin32Classic.cs: draw box select rect, remove a ResetClip.
26418 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
26420 * XplatUIX11.cs: Added setting of window type when transient window
26421 is created (metacity would move it otherwise)
26422 * X11Structs.cs: Added WINDOW_TYPE atoms
26423 * LinkLabel.cs: Override OnPaintBackgroundInternal and draw the
26424 background (the control is Opaque but still wants transparent
26427 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
26429 * Control.cs: Added OnPaintBackgroundInternal to allow controls
26430 that set Opaque but don't mean it (like all ButtonBase-derived
26431 controls) to still draw their background
26432 * ButtonBase.cs: Override OnPaintBackgroundInternal and draw
26435 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
26437 * Control.cs (PaintControlBackground): Set the graphics object
26438 on our PaintEvent to null to prevent it from being disposed
26439 when the PaintEvent gets disposed
26441 2006-04-12 Alexander Olk <alex.olk@googlemail.com>
26443 * ThemeWin32Classic.cs: Use even more SystemBrushes and SystemPens
26444 * ThemeNice.cs, ThemeClearlooks.cs: fix typo
26446 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
26449 - Added transparency check to BackColor property. Transparent
26450 backgrounds are only allowed if the control styles permit it
26451 - Added recursive painting of parent control background and
26452 foreground if a control with a transparent backcolor is drawn
26453 (Thanks to Tim Ringenback for providing his 'hack' as a base
26454 for this patch) Fixes #77985 and #78026.
26455 - Added Opaque style check before calling OnPaintBackground, no
26456 need to draw the background if the control is opaque
26457 - Removed ControlAccessibleObject owner variable (inherited from
26458 base, no need to define again)
26459 - Added some documentation links explaining the drawing events
26462 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
26464 * Splitter.cs (CalculateSplitPosition): Corrected the bad assumption
26465 that the affected control is the located at the left border of our
26466 parent (Fixes #77936)
26468 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
26470 * TextBoxBase.cs: When rendering disabled or readonly controls,
26471 draw the background with 'Control' instead of 'Window' color as
26472 long as the user hasn't specifically set a color
26474 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
26476 * TextBoxBase.cs: Don't try to shortcut by checking against base.Text
26477 since that won't be updated if the user types text (only if it's
26478 programatically set)
26480 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
26482 * ScrollableControl.cs: Calculate DisplayRect dynamically, so that
26483 layout changes do to app-triggered resizes will have the proper
26484 display rectangle for layout
26486 2006-04-11 Alexander Olk <alex.olk@googlemail.com>
26488 * ThemeWin32Classic.cs:
26489 - Make use of the SystemBrushes and SystemPens wherever possible
26490 - Corrected some highlight colors
26491 - Corrected RadioButton and CheckBox FlatStyle.Flat and Popup
26493 * Theme.cs: Added Empty field to CPColor struct
26495 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
26497 * ScrollabeControl.cs: We need to consider whether or not a scrollbar
26498 is displayed when calculating the display rectangle. Thanks to Mike
26499 for teaching me the err of my ways.
26501 2006-04-10 Peter Dennis Bartok <pbartok@novell.com>
26503 * ScrollableControl.cs:
26504 - Rewrote DisplayRectangle code, now returning the proper x/y coords
26505 (instead of 0,0) and we now return the real width/height instead of
26506 just the clientrectangle, adjusted for padding. The rectangle is
26507 now cached and created by the new CalculateDisplayRectangle method.
26508 - Created new CalculateDisplayRectange method, which basically does
26509 what get_DisplayRectangle() did originally, but now using the
26510 right edge instead of DisplayRectangle to determine the size of
26512 - get_Canvas(): Fixed it to properly calculate canvas for
26513 right/bottom controls which seem to be placed to the right/bottom
26514 of any controls that have a fixed location
26515 - Removed TODO that's taken care of
26516 - Removed NotImplementeds and attempted to implement AdjustFormScrollBars
26517 and SetDisplayRectLocation according to new MSDN2 docs
26518 - Added call to PerformLayout in OnVisibleChanged, MS causes a layout
26519 event when that is called, this is added for compatibility
26520 - ScrollControlIntoView(): Implemented.
26521 - Switched scrollbars to be implicit, they shouldn't be selectable
26522 * ContainerControl: Now that ScrollControlIntoView is implemented, we
26523 call it when the active control is set/changed
26524 * ScrollBar.cs: Added support for generating Win32 scrollbar messages
26525 * ImplicitHScrollBar.cs, ImplicitVScrollBar.cs: Now setting new base
26526 implicit_control variable (used for native Win32 message generation)
26527 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added new
26528 HorizontalScrollBarHeight and VerticalScrollBarWidth properties
26529 * ThemeWin32Classic.cs: Now calling the driver for the scrollbar sizes
26530 * XplatUIStructs.cs: Added ScrollBarCommands enum
26532 2006-04-10 Jackson Harper <jackson@ximian.com>
26535 * CheckedListBox.cs:
26542 * PrintPreviewControl.cs:
26548 * UpDownBase.cs: Fixup base event overrides.
26550 2006-04-06 Mike Kestner <mkestner@novell.com>
26552 * ScrollBar.cs: fix "new event" declarations (#76509) and bounds check
26553 all user-initiated value changes to min <= value <= max-thumbsz+1.
26554 (set_Value): check for vert/horiz when calculating new thumb position.
26555 (LargeIncrement): bounds check to stop pos at max - thumb_size + 1
26557 (OnMouseMoveSB): refactor the thumb dragging code and refine
26558 invalidation logic to reduce flicker.
26559 (SetEndPosition): bounds check to stop pos at max - thumb_size + 1
26560 (SmallIncrement): bounds check to stop pos at max - thumb_size + 1
26561 (UpdateThumbPosition): small code readability cleanup
26563 2006-04-10 Alexander Olk <alex.olk@googlemail.com>
26565 * ThemeNice.cs: Small UI polishing. Draw borders a little bit
26568 2006-04-08 Alexander Olk <alex.olk@googlemail.com>
26570 * ThemeNice.cs: Use a better graphics effect when a button is pressed
26572 2006-04-08 Alexander Olk <alex.olk@googlemail.com>
26574 * Theme.cs: Added GetDashPen and GetSizedPen to SystemResPool
26575 * ThemeWin32Classic.cs: Make use of the new SystemResPool methods.
26576 This dramatically reduces the number of Pen.Dispose calls.
26577 Where possible call ResPool methods only once instead of calling it
26578 over and over again (for example for the same color).
26580 2006-04-06 Mike Kestner <mkestner@novell.com>
26582 * TabControl.cs: fix for SelectedIndex updating on TabPage removals.
26583 Also remove an unused private field on the collection. Fixes #77972.
26585 2006-04-06 Alexander Olk <alex.olk@googlemail.com>
26587 * ThemeNice.cs: Added ToolBar drawing code
26589 2006-04-06 Mike Kestner <mkestner@novell.com>
26591 * Form.cs (ShowDialog): MS allows IWin32Window param to be a non-form.
26592 I'm assuming that means we need to look up the toplevel for the
26593 provided control. Fixes the crash trace in #77911 but exposes another
26594 crash in some strange reflection usage in NDocGui.
26596 2006-04-06 Alexander Olk <alex.olk@googlemail.com>
26598 * ThemeNice.cs: Gave it a little silver touch and added Images
26600 * FontDialog.cs: FontDialog is not resizable
26601 * FileDialg.cs: Added SizeGripStyle.Show
26603 2006-04-05 Jackson Harper <jackson@ximian.com>
26605 * KeyboardLayouts.cs: Remove warning.
26607 2006-04-05 Jackson Harper <jackson@ximian.com>
26609 * Control.cs: Enable OnPaintInternal so we can use it for drawing
26610 all of our controls instead of Paint +=.
26625 * ComboBox.cs: Remove handling of WM_PAINT and WM_ERASEBKGND and
26626 use OnPaintInternal. Remove Width/Height and Visible checks in
26627 paint handler, this is done at a higher level now.
26628 * GroupBox.cs: Don't need to handle WM_ERASEBKGND anymore.
26629 * PaintEventArgs.cs: Add a handled flag so controls that don't
26630 want anymore painting after OnPaintInternal can make sure OnPaint
26633 2006-04-05 Mike Kestner <mkestner@novell.com>
26635 * Form.cs: fix the menu WndProc hacks to respect the native enabled
26636 state of the form, so that we don't process events when Modal dialogs
26637 are up. Fixes #77922.
26639 2006-04-05 Alexander Olk <alex.olk@googlemail.com>
26641 * Mime.cs: Default for range length is 1 not 0. If set to 0 no match
26644 2006-04-05 Mike Kestner <mkestner@novell.com>
26646 * XplatUIX11.cs: fix typo in the EX_APPWINDOW transient patch.
26648 2006-04-05 Mike Kestner <mkestner@novell.com>
26650 * ListView.cs (HeaderMouseMove): null guarding for the over column
26651 when setting up the drag_to_index. Fixes #78015.
26653 2006-04-04 Peter Dennis Bartok <pbartok@novell.com>
26655 * XplatUIX11.cs: If WS_EX_APPWINDOW isn't set we don't want to show up
26656 in the taskbar. Transient windows seem to accomplish that.
26658 2006-04-04 Peter Dennis Bartok <pbartok@novell.com>
26661 - Re-enabled CreateParams.X/Y code for FormStartPosition
26662 - Added code for manual placement when creating the Control
26663 - Incomplete patch to treat MDI forms differently when
26664 setting the ClientSizeCore. (Still need to figure out handling
26667 - When we're explicitly setting the X/Y position of a non-Child
26668 window, let the WM know. Metacity really wants this.
26670 2006-04-04 Alexander Olk <alex.olk@googlemail.com>
26672 * ThemeNice.cs: Added CPDrawButton
26674 2006-04-04 Alexander Olk <alex.olk@googlemail.com>
26676 * ThemeNice.cs: Changed the color for focused buttons and activated
26677 the arrows for small scroll buttons.
26679 2006-04-04 Alexander Olk <alex.olk@googlemail.com>
26681 * ThemeWin32Classic.cs: Removed DrawFlatStyleButton, not needed
26682 anymore. Changed some method modifiers to protected (virtual)
26683 * ThemeClearlooks.cs: Updated to reflect the ThemeWin32Classic
26685 * ThemeNice.cs: Updated to reflect the ThemeWin32Classic changes.
26686 Updated drawing of menus, buttons and progressbars; added
26689 2006-04-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
26691 * ImageListStreamer.cs: implemented serialization/deserialization
26694 2006-04-03 Alexander Olk <alex.olk@googlemail.com>
26696 * ThemeWin32Classic.cs:
26697 - Removed all the DrawFrameControl stuff; CPDrawButton,
26698 CPDrawCheckBox and CPDrawRadioButton are now handled directly
26700 - Updated and corrected the drawing code of CPDrawButton,
26701 CPDrawCheckBox and CPDrawRadioButton to better match ms
26702 - Updated theme checkbox and radiobutton code to use the CP*
26705 2006-03-31 Peter Dennis Bartok <pbartok@novell.com>
26707 * XplatUIX11.cs: Enable clipping again now that the libgdiplus
26710 2006-03-31 Jackson Harper <jackson@ximian.com>
26712 * XplatUIX11.cs: Somehow we get SETCURSORS for bad windows
26714 * UpDownBase.cs: Don't CreateGraphics manually, use a
26715 Refresh. Ideally we would invalidate the correct areas here.
26717 2006-03-31 Peter Dennis Bartok <pbartok@novell.com>
26720 - We now track the mapping state of windows. If a window (or
26721 one of it's parents) is not mapped we no longer permit
26722 WM_PAINT messages to be generated since we'd otherwise get
26723 lots of BadMatch X errors. Jackson did all the work figuring
26725 - Destroying the caret if the window it's contained in is
26726 destroyed. Can't use regular DestroyCaret method since it
26727 might fall into a drawing function (trying to remove the
26728 caret) and with that generate new BadMatch errors. Again,
26729 Jackson tracked this down.
26730 - Changed DestroyChildWindows to SendWMDestroyMessages, we now
26731 make sure we send the messages to all windows. (The old code
26732 would send the WM_DESTROY to the window, and then all child
26733 windows would be 'gone' because the WM_DESTROY handle lookup
26734 would no longer find the destroyed window)
26735 * Hwnd.cs: Added Mapping property to track mapping state of hwnd
26736 * X11Structs.cs: Added WindowType enum for MapWindow/UnmapWindow
26738 2006-03-31 Jackson Harper <jackson@ximian.com>
26740 * ScrollableControl.cs: Dont recalc if we are not visible.
26742 2006-03-31 Mike Kestner <mkestner@novell.com>
26744 * Control.cs (SetVisibleCore): move the CreateControl call up ahead of
26745 the visibility branch.
26747 2006-03-31 Jackson Harper <jackson@ximian.com>
26749 * ScrollBar.cs: Cap values when incrementing/decrementing.
26751 2006-03-31 Mike Kestner <mkestner@novell.com>
26753 * MenuAPI.cs: setup menu.tracker for popup/context menus.
26754 * ToolTip.cs: guard against timer expirations with no active control.
26755 Not sure why it happened.
26757 2006-03-31 Mike Kestner <mkestner@novell.com>
26759 * ThemeWin32Classic.cs: add some horizontal padding space for the tip
26761 * ToolTip.cs: Position the tooltip based on where the cursor is at
26762 popup time, not at MouseEnter time. Add a Down state so that we don't
26763 redisplay tips without a Leave. Use faked XplatUI.GetCursorInfo for
26764 positioning offset. Lookup DisplaySize at positioning time, since it
26765 can theoretically change during invocation.
26766 * XplatUIWin32.cs: fake GetCursorInfo until pdb can do it properly.
26767 * XplatUIX11.cs: fake GetCursorInfo until pdb can do it properly.
26769 2006-03-31 Alexander Olk <alex.olk@googlemail.com>
26771 * ThemeWin32Classic.cs: Use CPDrawBorder3D to draw a GroupBox.
26772 Fixes behaviour when the Text property of the box is String.Empty
26774 2006-03-31 Peter Dennis Bartok <pbartok@novell.com>
26776 * XplatUIX11.cs: Only send mouseleave for our client windows, not
26777 for the whole window (otherwise we get WM_MOUSE_LEAVE twice for
26780 2006-03-31 Alexander Olk <alex.olk@googlemail.com>
26782 * FileDialog.cs: Visual enhancement for the popup buttons in
26785 2006-03-31 Alexander Olk <alex.olk@googlemail.com>
26787 * ColorDialog.cs, FontDialog.cs: Make use of the updated 3D border
26790 2006-03-30 Alexander Olk <alex.olk@googlemail.com>
26792 * ThemeWin32Classic.cs: Updated MainMenu drawing of selected and
26793 highlighted menu items to match ms
26795 2006-03-30 Peter Dennis Bartok <pbartok@novell.com>
26797 * XplatUIX11.cs: Don't set a clip rectangle unless it's not empty
26799 2006-03-30 Mike Kestner <mkestner@novell.com>
26801 * Menu.cs (SelectedItem): use new MenuItem.Selected prop.
26802 * MenuAPI.cs: use new MenuItem.Selected prop. redraw MainMenu when we
26803 go active to account for HotLight to Selected transition.
26804 * MenuItem.cs: add internal Selected prop. Fill out the Status
26805 property by calculating it from item info. Add HotLight,
26806 NoAccelerator, Checked, Grayed, and Disabled flags where appropriate.
26808 2006-03-30 Mike Kestner <mkestner@novell.com>
26810 * MenuItem.cs: only emit DrawItem and MeasureItem for OwnerDraw.
26812 2006-03-29 Jackson Harper <jackson@ximian.com>
26814 * Form.cs: Implement TODO.
26816 2006-03-29 Peter Dennis Bartok <pbartok@novell.com>
26818 * PrintPreviewDialog.cs: Implemented missing methods and events; still
26819 missing proper dialog setup in the constructor
26821 2006-03-29 Peter Dennis Bartok <pbartok@novell.com>
26823 * ProgressBar.cs: Added 2.0 Style property that apps seem to use
26825 - Implemented CheckForIllegalCrossThreadCalls, removed TODO
26826 - Fixed ResetBindings and removed TODO
26827 - Added check for cross-thread calls to get_Handle()
26828 - Added Marshaller attribute for set_Font to satisfy class status
26829 * FontDialog.cs: Removed TODOs that seemed implemented
26830 * UpDownBase.cs: Removed unneeded TODO and Fixme
26831 * MessageBox.cs: Implemented support for Default button and removed TODO
26832 * FileDialog.cs: Removed obsolete TODO
26833 * DomainUpDown.cs: Removed obsolete TODO
26834 * ButtonBase.cs: Removed obsolete TODO
26835 * XplatUIWin32.cs: Removed obsolete TODO
26837 - Removed obsolete TODO
26838 - Calling CheckAcceptButton when the acceptbutton is changed to allow
26839 internal status updates
26840 - Making sure the active control is selected when the control is created
26841 * CurrencyManager.cs: Removed obsolete TODO
26843 2006-03-29 Mike Kestner <mkestner@novell.com>
26845 * *.cs: fix remaining corcompare issues for 1.1 API with the exception
26846 of PrintPreviewDialog and RichTextBox.
26848 2006-03-29 Alexander Olk <alex.olk@googlemail.com>
26850 * Theme.cs: Added a little helper to SystemResPool to get the Dark,
26851 DarkDark, Light and LightLight colors for a specific color
26852 * ThemeWin32Classic.cs:
26853 - Use Button drawing code to draw RadioButtons and CheckBoxes with
26854 Appearance = Button
26855 - Make use of the new ResPool helper CPColor
26856 - Draw ProgressBar and StatusBar with correct 3D borders
26858 2006-03-29 Alexander Olk <alex.olk@googlemail.com>
26860 * ColorDialog.cs: Return selected color. Fixes bug #77940.
26862 2006-03-28 Mike Kestner <mkestner@novell.com>
26864 * ListView.cs: fix Icon layout to plan for scrollbar widths when
26865 calculating col/row counts.
26867 2006-03-28 Mike Kestner <mkestner@novell.com>
26873 switch to explicit interface method implementation for some methods
26874 corcompare identifies as inconsistent with MS.
26876 2006-03-28 Mike Kestner <mkestner@novell.com>
26880 add a few missing methods from the class status output.
26882 2006-03-28 Alexander Olk <alex.olk@googlemail.com>
26884 * ControlPaint.cs: Fixed ControlPaint.Light method. Results are now
26887 2006-03-28 Mike Kestner <mkestner@novell.com>
26889 * MenuAPI.cs: Deactivate on MainMenu item click. Fixes #77917.
26891 2006-03-27 Mike Kestner <mkestner@novell.com>
26893 * ThemeWin32Classic.cs: Switch flat toolbars to use RaisedInner for
26894 the Hilight state to adapt to Alex's CPDrawBorder3D changes.
26896 2006-03-27 Alexander Olk <alex.olk@googlemail.com>
26898 * ThemeWin32Classic.cs: Rewrote Button drawing code to match ms.
26900 2006-03-25 Alexander Olk <alex.olk@googlemail.com>
26902 * ThemeWin32Classic.cs:
26903 - GroupBox: Inserted a little gap between the text and the lines
26905 - Made the code in CPDrawBorder3D more readable
26906 - Corrected the drawing location of the up and down arrows in
26909 2006-03-25 Alexander Olk <alex.olk@googlemail.com>
26911 * ControlPaint.cs: Corrected line widths in DrawBorder for
26912 ButtonBorderStyle Inset and Outset
26914 2006-03-25 Alexander Olk <alex.olk@googlemail.com>
26916 * ThemeWin32Classic.cs:
26917 - Rewrote the totally broken CPDrawBorder3D method. That was
26918 one of the main problems for the terrific ThemeWin32Classic
26920 - Updated and corrected Button drawing
26921 - Correct the dimensions of the SizeGrip to match ms ones
26922 - Removed a small drawing glitch in DrawComboBoxEditDecorations
26923 * XplatUIX11.cs: Draw borders with BorderStyle = Fixed3D with
26924 Border3DStyle.Sunken to match ms.
26926 2006-03-25 Alexander Olk <alex.olk@googlemail.com>
26928 * ThemeWin32Classic.cs: First small part of the "de-uglify
26929 ThemeWin32Classic" effort, SizeGrip
26931 2006-03-24 Jackson Harper <jackson@ximian.com>
26933 * XplatUIX11.cs: Give a max idle time of one second, this matches
26934 MS and forces an Idle event every second when there are no other
26935 events in the queue.
26937 2006-03-24 Mike Kestner <mkestner@novell.com>
26939 * ListView.cs: Handle (Large|Small)ImageList == null more robustly.
26940 * ListView.Item.cs: fix layout issues with null image lists and images
26941 smaller than checkbox size.
26942 * ThemeWin32Classic.cs: Draw a 12 pixel line in ListView LargeIcon
26943 mode like MS does. It's weird, but consistent. ;-)
26946 2006-03-24 Mike Kestner <mkestner@novell.com>
26948 * ListView.cs: Scroll wheel support for the item control. Fixes
26951 2006-03-23 Jackson Harper <jackson@ximian.com>
26953 * ScrollableControl.cs: Special case negative sized areas, not
26955 * MonthCalendar.cs: Save the rect of the clicked date so we can
26956 use it for invalidation.
26957 - Try to cut down on the number of invalidates
26958 - Invalidate the rect the mouse is over and was over when moving
26959 the mouse, so we get the focus box following the cursor.
26961 2006-03-23 Mike Kestner <mkestner@novell.com>
26963 * ThemeWin32Classic.cs: fix FullRowSelect selection background and
26964 focus rectangle drawing. Fixes #77835.
26966 2006-03-23 Mike Kestner <mkestner@novell.com>
26968 * XplatUIX11.cs: rework the fix for #77828 by changing the order of
26969 the if and else if and reverting back to the original == check on the
26972 2006-03-23 Alexander Olk <alex.olk@googlemail.com>
26974 * FontDialog.cs: Update the example panel if the selected index of
26975 the fontListBox changes.
26977 2006-03-23 Alexander Olk <alex.olk@googlemail.com>
26979 * FileDialog.cs: Make FileDialog remember which directory it was in
26980 last in the same execution.
26982 2006-03-22 Mike Kestner <mkestner@novell.com>
26984 * FileDialog.cs: make the DropDownMenu on the toolbar display
26985 RadioChecks since they are mutually exclusive and that's what MS does.
26987 2006-03-22 Mike Kestner <mkestner@novell.com>
26989 * Theme.cs: add Color param to CPDrawMenuGlyph.
26990 * ThemeWin32Classic.cs: do color specific menu glyph rendering so that
26991 checks and radio marks and arrows are visible on highlighted items.
26992 * ControlPaint.cs: update to use new Theme signature.
26994 2006-03-22 Mike Kestner <mkestner@novell.com>
26996 * MenuAPI.cs: only process Enter and arrow keypresses if the tracker
26997 is active. Fixes #77870.
26999 2006-03-22 Alexander Olk <alex.olk@googlemail.com>
27001 * FileDialog.cs: Corrected TabIndex order and set fileNameComboBox
27002 to be focused/selected after startup
27004 2006-03-22 Alexander Olk <alex.olk@googlemail.com>
27007 - Corrected behaviour of Color, AllowFullOpen, FullOpen,
27008 CustomColors and ShowHelp properties
27009 - Some internal rewrites to get better results when using the
27012 2006-03-22 Mike Kestner <mkestner@novell.com>
27014 * ListView.cs: hook into Peter's new ResetMouseHover capability to fix
27015 HoverSelection. Fixes #77836.
27017 2006-03-22 Mike Kestner <mkestner@novell.com>
27019 * FileDialog.cs: bugfixes for the toolbar. Use PushButtons instead of
27020 ToggleButtons. (De)Sensitize the Back button around a stack count of
27021 1, not 0. Update ButtonSize based on a pixel count of the win32
27022 control. Adjust the toolbar size/location for new button size.
27024 2006-03-22 Jackson Harper <jackson@ximian.com>
27026 * XplatUIX11.cs: Don't handle configurenotifys if PostQuitState is
27028 * ScrollBar.cs: When doing increments and decrements we need to
27029 set the Value property so that ValueChanged gets raised. A
27030 possible optimization here would be to make an internal SetValue
27031 that doesn't invalidate immediately.
27032 * ToolTip.cs: Tooltips get added to their container (when
27033 supplied) so they get disposed when the container is disposed.
27034 - Don't create tooltips for String.Empty. This prevents all these
27035 little 2-3 pixel windows from showing up when running nunit-gui
27036 and driving me mad.
27037 * Form.cs: Don't set topmost when setting the owner if the handles
27038 haven't been created yet. The topmost set will happen when the
27039 handles are created.
27041 2006-03-22 Peter Dennis Bartok <pbartok@novell.com>
27044 - DeriveWindowStyles: Fixed typo in borderstyle generation (#77828)
27045 - SetVisible: Sending WINDOWPOSCHANGED for all controls when made
27046 visible (to allow them to recalculate their sizes)
27048 2006-03-21 Mike Kestner <mkestner@novell.com>
27050 * ThemeWin32Classic.cs: major refactoring of the ToolBar rendering
27051 methods. Removed a ton of redundant code. Still not really happy with
27052 the border rendering, but I think that's mainly because of the
27053 ControlDarkDark being black instead of a dark grey. Depending on how
27054 close we want to be, we might want to revisit those color choices.
27055 Among the new features added during the refactor were DropDownArrow
27056 pressed rendering, Disabled image rendering. Proper flat appearance
27057 boundary rendering. Removed the Divider and Wrapping dividers since I
27058 can't figure out any combination of themes and conditions to make the
27059 MS control draw a horizontal line on a toolbar despite what the
27060 Divider property docs indicate.
27061 * ToolBar.cs: rewrite the layout engine. Fixes numerous flicker
27062 conditions and incorrect layout. Updated to coding standard.
27063 * ToolBarButton.cs: refactored layout and positioning code from
27064 ToolBar to here. Invalidate wherever possible instead of forcing
27065 redraws of the whole toolbar.
27066 (Known remaining issues: explicit ButtonSize smaller than provided
27069 2006-03-21 Mike Kestner <mkestner@novell.com>
27071 * ContextMenu.cs (Show): use the position parameter instead of just
27072 showing at the MousePosition.
27074 2006-03-21 Jackson Harper <jackson@ximian.com>
27076 * TabControl.cs: Remove the call to ProcessKeyEventArgs and let
27077 control handle this.
27078 * TreeNodeCollection.cs: If we are clearing the root node we need
27079 to reset top_node so calcs can still happen.
27080 * ThemeWin32Classic.cs: This is a Flags so we need to check
27083 2006-03-21 Jackson Harper <jackson@ximian.com>
27085 * DataGrid.cs: Create columns when the binding context has been
27087 * X11Structs.cs: Keysyms are uints.
27088 - Add size to fix build.
27090 2006-03-21 Peter Dennis Bartok <pbartok@novell.com>
27092 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
27094 - Added ResetMouseHover method to allow controls to retrigger
27095 hovering if they need it more than once
27096 - Implemented MouseHoverTime and MouseHoverSize properties
27097 * Timer.cs: Start() must reset the interval
27098 * SystemInformation.cs: Added 2.0 MouseHoverTime and MouseHoverSize
27101 2006-03-21 Jackson Harper <jackson@ximian.com>
27103 * X11Keyboard.cs: improved layout detection. Move the nonchar
27104 tables into this file.
27105 * KeyboardLayouts.cs: Move the tables into resource files.
27107 2006-03-21 Mike Kestner <mkestner@novell.com>
27109 * ListView.cs: use OnItemActivated to raise events. Fixes #77834.
27111 2006-03-21 Alexander Olk <alex.olk@googlemail.com>
27113 * Mime.cs: Various speed optimizations. Looking up mime types
27114 is now 2 times faster than before
27116 2006-03-17 Peter Dennis Bartok <pbartok@novell.com>
27118 * CreateParams.cs: Added internal menu field
27120 - Switched call order for UpdateBounds; now we always call
27121 the one that also takes ClientSize, and we're calculating the
27122 client size via driver method in the others. The previous
27123 method of tracking client size by difference wasn't working
27124 for forms where even the starting client size wouldn't match
27125 the overall form size (due to borders) (Part of fix for #77729)
27126 - CreateParams(): Do not use parent.Handle unless the handle is
27127 already created. Causes havoc with Nexxia and throws off our
27128 creation of controls
27130 - Created new PerformNCCalc method to trigger WM_NCCALCSIZE message
27131 - Switched handling of ConfigureNotify over to new PerformNCCalc
27132 method (consolidates code)
27133 - Changed RequestNCRecalc to use new PerformNCCalc method
27134 - Added calls to RequestNCRecalc when menus and borders are changed
27135 to allow app to set NC size. (Part of fix for #77729) This matches
27136 when MS send a WM_NCRECALC on Win32 windows.
27137 - Now sending WM_WINDOWPOSCHANGED when toplevel for is made visible
27138 (Part of fix for #77729). This matches what MS does, they also
27139 send that message when the form is made visible.
27140 - XException.GetMessage: Improved usability of X errors by including
27141 a translation of the window into Hwnd and Control class
27142 - Improved debug info for window creation, reparenting and destruction
27143 - Created helper method WindowIsMapped() [Currently not used]
27144 * XplatUIWin32.cs: Added ToString() debug helper to RECT structure
27146 - CreateParams: Now setting our menu on the new internal menu field
27147 - SetClientSizeCore: Now passing cp.menu instead of ActiveMenu to
27148 avoid calculating the same property twice
27150 - Improved usability of ToString() for debugging purposes
27151 - GetWindowRectangle(): Now uses proper CalcMenuBarSize method to
27152 determine the height of the menu, instead of just the font. This
27153 required to also create a graphics context and to keep a bmp
27154 around (for performance reasons)
27156 2006-03-17 Peter Dennis Bartok <pbartok@novell.com>
27158 * MenuAPI.cs: Added OnMouseUp method
27160 - Now remembering the requested client size, avoids size errors
27161 - WndProc: Now handling WM_xBUTTONUP and passing it to MenuTracker
27162 instead of base if the menu is active. This is required due to
27163 control now capturing and releasing on down/up and it would
27164 prematurely release our menu capture
27166 2006-03-17 Jackson Harper <jackson@ximian.com>
27168 * KeyboardLayouts.cs: Add the czech layouts.
27170 2006-03-16 Jackson Harper <jackson@ximian.com>
27172 * Control.cs: Use the viewport space when sizing not the controls
27173 client size, so things like ScrollableControl that effect the
27174 viewport size (when scrollbars are added) are computed correctly.
27175 * BindingContext.cs: Cleanup to use the DataSourceEntrys instead
27177 - Handle creating BindingManagers for null data sources.
27178 * DataGrid.cs: Bind the cached_currencymgr_events to the real data
27179 source, otherwise when rows are added they are added to the 'fake'
27180 datasource and we will crash when trying to set the position in
27182 - Use Implicit scrollbars on the datagrid so they arent
27185 2006-03-16 Jackson Harper <jackson@ximian.com>
27188 * InternalWindowManager.cs:
27189 * MdiWindowManager.cs:
27190 * X11Keyboard.cs: I really want Mike to love me again (fix
27191 compiler warnings).
27193 2006-03-16 Peter Dennis Bartok <pbartok@novell.com>
27196 - OnMouseDown: Switch to editing mode when clicking on the cell
27197 even if we're clicking on the cell that's currently
27199 - ProcessGridKey: Left/Right now wrap like MS.Net does
27200 - ProcessGridKey: Tab now knows to add a new row when tab is
27201 pressed in the cell of the last column of the
27203 - ProcessGridKey: Enter now adds another row if pressed in the last
27204 row and selectes the new row, same column cell
27205 - ProcessGridKey: Home/End navigate columns, not rows, like
27206 originally implemented
27207 - Broke ProcessKeyPreview code out into an extra Internal method
27208 so it can be called from the edit code
27209 * DataGridTextBox.cs (ProcessKeyMessage):
27210 - Switched to accept Tab keypresses
27211 - Added F2 handling to allow jumping to the end of the edited cell
27212 - Added logic to allow moving caret left/right inside edited cell
27213 and making the edited cell jump when the caret hits cell borders
27214 - Tab and Enter are now passed to the datagrid after being handled
27216 - Removed capture code now that Control handles it
27217 - set_SelectionStart now ensures caret is visible
27219 2006-03-16 Jackson Harper <jackson@ximian.com>
27221 * TrackBar.cs: Debackwards the increment/decrement for handling
27222 mouse clicks on the bar with vertical trackbars.
27223 * ThemeWin32Classic.cs: Draw vertical trackbars with 0 at the
27224 bottom to match MS.
27226 2006-03-16 Mike Kestner <mkestner@novell.com>
27228 * ListView.cs: make shift/ctrl keyboard and mouse selection
27229 consistent with the MS control. Fix a bug in
27230 SelectedListViewItemCollection.Clear that was pissing me off for the
27231 better part of a day because the collection was being altered
27232 underneath us as we walked the list.
27234 2006-03-16 Peter Dennis Bartok <pbartok@novell.com>
27236 * Control.cs: Not sure how we could miss this so long, but it seems
27237 that MS.Net has Capture set all the way from before calling
27238 OnMouseDown through sending the mouse events until after
27239 OnMouseUp. This will fix DataGrid's selection being set to end
27240 at the location of the MouseUp.
27242 2006-03-15 Jackson Harper <jackson@ximian.com>
27244 * BindingContext.cs: Check the binding after its added so that it
27245 can initialize the binding managers and hookup to events.
27246 * Binding.cs: Data members seem to sometimes include rows/cols in
27247 the format Row.Column we now take this into account.
27248 - Hookup to the position changed event so we can update the
27249 control when the position has changed in the data set.
27250 * CurrencyManager.cs: Take into account the row/col naming
27251 convention when creating dataset tables.
27252 * BindingContext.cs: Using a newer better way of storing
27253 datasource/datamember pairs. Hopefully this better matches MS for
27254 looking up binding managers.
27257 2006-03-15 Jackson Harper <jackson@ximian.com>
27259 * BindingContext.cs: The currency manager needs the data member
27260 name, if the member is a data set we use the name to find the
27262 * CurrencyManager.cs: When creating the list prefer an IList over
27264 - Attempt to create a DataTable from a DataSet (TODO: might need
27265 some better error checking here, although MS doesn't seem to have much)
27266 - If we have a DataTable create a view and use it as our list.
27268 2006-03-15 Mike Kestner <mkestner@novell.com>
27270 * ListView.cs: keep a matrix of the icon mode layout to facilitate
27271 keyboard navigation. Support Up/Down/Left/Right selection correctly
27272 for all 4 View modes.
27273 * ListViewItem.cs: add internal row/col fields for icon layouts.
27275 2006-03-15 Jackson Harper <jackson@ximian.com>
27277 * TabControl.cs: Redraw the tabs when we resize so their newly
27278 calculated sizes are drawn on screen.
27279 * X11Keyboard.cs: Begginnings of XIM support. We also now support
27280 composite characters.
27281 * XplatUIX11.cs: Keyboard driver needs to know about focus changes
27282 - filter events so that composite characters can be created
27284 * X11Structs.cs: Add XIMProperties enum.
27286 2006-03-14 Peter Dennis Bartok <pbartok@novell.com>
27288 * Control.cs (BringToFront, SendToBack): Don't use window or handle
27289 unless it's created
27291 2006-03-14 Peter Dennis Bartok <pbartok@novell.com>
27293 * Control.cs (PerformLayout): We don't need to consider visiblity
27294 for anchoring, only for docking. This fixes 'whacky' alignment
27295 in listbox and other controls that use implicit scrollbars after
27296 the previous PerformLayout patch
27297 * ListBox.cs: Switched to use implicit scrollbars
27299 2006-03-14 Mike Kestner <mkestner@novell.com>
27303 - chain up the "new event" overrides to base and use
27304 OnEvent to raise them. Part of fix for bug #76509.
27306 2006-03-14 Alexander Olk <alex.olk@googlemail.com>
27308 * FileDialog.cs: Do not select an item in the parent directory
27311 2006-03-14 Peter Dennis Bartok <pbartok@novell.com>
27313 * Control.cs (PerformLayout): It would seem that we considered
27314 invisible windows for our layout. Not quite the right thing
27315 to do. Now we don't any longer, thereby fixing bug #76889.
27317 2006-03-14 Peter Dennis Bartok <pbartok@novell.com>
27319 * Control.cs (CanFocus): I goofed. A control can have focus
27320 even though it's not selectable. Made it match MS docs.
27322 2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
27324 * ControlPaint.cs (DrawBorder3D): DrawBorder3D does not fill the
27325 center by default (fixes #76895)
27326 * ThemeWin32Classic.cs, ThemeNice.cs, ThemeClearlooks.cs: Replaced
27327 all uses of Border3DSides.All with the explicit ORd together
27328 Left|Right|Top|Bottom because I assume that nobody was aware
27329 that All also implies a center fill. Most places I checked had
27330 a fill right above.
27331 * ProgressBarStyle.cs: Added
27333 2006-03-13 Mike Kestner <mkestner@novell.com>
27335 * ListView.cs: fix breakage in drag shadow header positioning
27336 from Peter's csc compilation fix.
27338 2006-03-13 Mike Kestner <mkestner@novell.com>
27340 * ListView.cs: fix NRE produced by backspacing twice in a focused
27343 2006-03-13 Mike Kestner <mkestner@novell.com>
27345 * ListView.cs: proxy Key(Down|Up) from ItemControl to ListView.
27347 2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
27349 * Hwnd.cs: Added fixed_size field to track windows whose size cannot
27351 * XplatUIX11.cs: Now setting fixed_size on hwnd and if set, re-setting
27352 the allowed size before making programmatic size changes
27354 2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
27356 * XplatUIX11.cs: Don't call XSetWMNormalHints if no flags are
27357 set, metacity is broken and will still use the emty sizes in
27358 the struct. (Fix for #77089)
27360 2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
27362 * XplatUIStructs.cs: Split WindowStyles into WindowStyles and
27363 WindowExStyles and marked both enums as Flags
27364 * Form.cs, ComboBox.cs, ToolTip.cs, Control.cs, PropertyGridView.cs,
27365 NotifyIcon.cs, MenuAPI.cs, XplatUIOSX.cs, MonthCalendar.cs: Updated
27366 to match WindowStyles split
27368 - SetWMStyles: Added cehck to not apply WM attributes to Child windows
27369 - Updated to match WindowStyles split
27371 - Fixed FosterParent creation, was using ExStyle on the Style field
27372 (This should help with Popup focus issues)
27373 - Updated to match WindowStyles split
27375 2006-03-13 Jackson Harper <jackson@ximian.com>
27377 * MdiWindowManager.cs: Use the system menu height. Fixes some
27378 strange sizing issues.
27380 2006-03-12 Peter Dennis Bartok <pbartok@novell.com>
27382 * RichTextBox.cs: Need to scroll to caret after text is inserted (#77672)
27384 - Scroll to caret after inserting text (#77672)
27385 - Make scroll range one pixel higher, fixes off-by-one error (and
27386 makes underlines visible on the last line)
27388 2006-03-12 Peter Dennis Bartok <pbartok@novell.com>
27390 * XplatUIX11.cs: Added call to new Keyboard.ResetKeyState to prevent
27391 the keyboard state from being stuck with keys in 'pressed' state when
27392 focus is switched away via keyboard
27393 * X11Keyboard.cs: Added new ResetKeyState method to allow drivers to
27394 reset the keyboard if no X11 KeyUp events are expected to come
27395 * X11Structs.cs: Switched type of Visible to bool to match driver
27397 2006-03-12 Peter Dennis Bartok <pbartok@novell.com>
27400 - Switched caret to be just 1 pixel wide, matches MS and looks less
27402 - Moved caret display 1 pixel down from the top of the control
27404 - InsertCharAtCharet: Update the selection start if moving the caret
27405 (fixes bug #77696; based on patch suggested by kazuki@panicode.com)
27406 - No longer always creating the caret when the caret methods are
27407 called. Only the actual ShowCaret/HideCaret will do that now
27408 - Only setting caret visible if the owner control has focus
27409 - UpdateView: Added invalidation-shortcut logic for center and right
27410 aligned text. Previously we'd update all according to the left
27411 logic which caused drawing errors. Also fixed height of invalidated
27412 areas, now properly invalidating the whole area (was off-by-one)
27413 - owner_HandleCreated: Always generate the document when the
27414 handle is created; this ensures that
27416 - Fixed situation where caret would disappear under the right
27417 window border, also improved scrolling behaviour on left-
27419 - Fixed right-aligned textboxes to have a border to the
27420 right instead of the caret being under the right border
27422 - Switched from 'nested' to simple visible/not visible tracking
27423 for caret (part of fix for #77671)
27424 - No longer passing through translated FocusIn/FocusOut messages
27425 since we were notifying too often and the wrong windows. Instead
27426 we just notify our focussed window of receiving or loosing focus
27427 * XplatUIWin32.cs: Switched from 'nested' show/hide
27428 counting for caret to simple visible yes/no behaviour (part of
27431 2006-03-11 Alexander Olk <alex.olk@googlemail.com>
27433 * Mime.cs: Remove debug code...
27435 2006-03-11 Alexander Olk <alex.olk@googlemail.com>
27437 * MimeGenerated.cs: Removed
27438 * Mime.cs: Mime now reads the mime data (magic, globs, aliases
27439 and subclasses) from /usr/(local/)share/mime and
27440 $HOME/.local/share/mime.
27442 2006-03-10 Jackson Harper <jackson@ximian.com>
27444 * MdiWindowManager.cs: Recalc the NC area when a window is
27445 maximized/restored so that the menu area is drawn on forms that
27448 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
27450 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
27451 XplatUIX11.cs: Added RequestNCRecalc method to driver to allow
27452 us to force a WM_NCCALCRESIZE message being sent. This is needed
27453 for MDI maximizing.
27455 2006-03-10 Jackson Harper <jackson@ximian.com>
27457 * Form.cs: We need to use the ActiveMenu when calculating menu
27459 - Fix nullref when the window manager hasn't been created yet.
27460 * Control.cs: Fix nullref when we try to bring a control to the
27461 front that has no parent.
27462 * MdiWindowManager.cs: Use the MaximizedMenu for calculating
27464 - Add a dummy item to the maximized menu so it always has the
27465 correct height. Otherwise when there are no menus we don't get our
27469 2006-03-10 Jackson Harper <jackson@ximian.com>
27471 * MenuAPI.cs: Make this available elsewhere. I need it in some MDI
27473 * Form.cs: Make the window_state internal so the window managers
27475 - When an MDI child is maximized let its window manager create the
27476 main menu (so it can add its icon).
27477 - Notify the window managers of state changes
27478 - Let the window manager paint its buttons and handle button
27479 clicks on the menu when it is maximized.
27480 * InternalWindowManager.cs: Move the prev_bounds into the mdi
27481 window manager, since tool windows don't use it, only mdi windows.
27482 - Tell the main form that we don't want it to handle NCPAINT
27483 itself to avoid extra painting.
27484 - Handle clicks on a maximized windows menu.
27485 - Handle window state changes
27486 - Handle minimize/maximize clicks correctly by setting the window state.
27487 * MdiWindowManager.cs: Add an icon menu that (the menu you get
27488 when clicking on the forms icon).
27489 - New method to create a forms maximized menu. This is its normal
27491 - Handle window state changes.
27492 - Handle sizing of maximized windows. Maximized windows are just
27493 drawn bigger then the parent visible area. All controls are still
27494 there, they are just outside the visible area (this matches windows).
27495 * MdiClient.cs: No scrollbars when a child window is maximized.
27496 - Let the children windows figure out how big they should be when
27497 sizing maximized windows.
27498 - Implement a version of ArrangeIconicWindows somewhat similar to
27499 Windows version. There are some little differences, but I don't
27500 think any app will rely on the layout of minimized mdi windows.
27502 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
27504 * Padding.cs: Several fixes to allow compiling with csc 2.0
27506 2006-03-09 Jackson Harper <jackson@ximian.com>
27509 * MenuItem.cs: Cheap hack so we can add items to the list without
27510 the events being raised. This allows adding mdi items during
27511 drawing. TODO: Should probably find a better time to add the items.
27513 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
27515 * ThemeWin32Classic.cs:
27516 - CheckBox_DrawText: Added logic to not wrap if not enough space
27517 is available (Fix for bug #77727)
27518 - RadioButton_DrawText: Added logic not to wrap if not enough
27519 space is available (Fix for bug #77727). Also removed some
27520 duplicate code, DrawString always drawing the regular text
27521 before hitting the if statement.
27523 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
27525 * XplatUIX11.cs: Handle an unmapped window state in SetWindowState
27527 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
27529 * PictureBox.cs: Implemented ISupportInitialize interface (fixes #77726)
27530 * ContainerControl.cs: Partial implementation of some 2.0 scaling
27531 methods. Moved the new 2.0 properties into alphabetical order with
27532 other properties and added MonoTODO tags
27534 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
27536 * AutoScaleMode.cs: Added. Fix build.
27538 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
27540 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
27541 XplatUIOSX.cs: Removed HWnd argument from CalcuateClientRect, not used
27542 and was requiring premature handle creation for calls from above
27543 * Form.cs, Control.cs: Removed handle arguments from calls to
27544 CalculateClientRect()
27546 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
27548 * ListView.cs (HeaderMouseMove): Fix csc compilation.
27549 drag_column.column_rect is MarshalByRef and can't be used that way
27551 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
27553 * AxHost.cs: Added deserialization constructor for
27554 AxHost+State (fixes 77743)
27556 2006-03-09 Mike Kestner <mkestner@novell.com>
27559 - Added column drag reordering for details view.
27560 - fixed behavior when mouse is dragged off column and
27561 AllowColumnReorder is false.
27562 * ColumnHeader.cs: clone the format too in Clone.
27563 * Theme.cs: add DrawListViewHeaderDragDetails method.
27564 * ThemeWin32Classic.cs:
27565 - impl new method for drawing drag column shadows and targets.
27566 - support column offset for details mode in DrawListViewItem.
27568 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
27570 * TextControl.cs: Reset the char_count when the document is cleared
27571 (Fixes bug reported on mono-winforms mailing list)
27573 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
27575 * TextBoxBase.cs: Honor the Handled state of KeyPress events. Instead
27576 of calling base we simply process the key ourselves, since both
27577 DefWindowProc and the handled method would set m.Result.
27580 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
27582 * Form.cs(ScaleCore): No longer calling base.ScaleCore since that
27583 method also moves the window; instead implemented a copy of
27584 Control.ScaleCore (Part of fix for #77456)
27586 - Created new CreateGraphicsInternal method to allow providing
27587 a graphics context when no handle is created without triggering
27588 handle creation. (Part of fix for #77456)
27589 - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
27591 - Switched Constructor to require TextBoxBase instead of Control (to
27592 allow uncast access to CreateGraphicsInternal)
27593 - Safeguarded use of owner.Handle property. No longer accessing it
27594 unless the handle is already created.
27595 - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
27596 - Now triggering a recalc when owning control becomes visible
27597 * TextBox.cs, RichTextBox.cs: Switched to use new internal
27598 TextBoxBase.CreateGraphicsInternal() method to avoid triggering
27599 premature handle creation (Part of fix for #77456)
27601 - We now only destroy our double-buffering buffers when the
27602 control is resized or disposed, but not when visibility
27603 changes. (The code even re-created them twice every time)
27604 - Now requiring a redraw of the buffer on visibility changes
27605 (fixes bug 77654 part 2)
27606 - Not passing OnParentVisibleChanged up unless the control
27608 - CanFocus: Fixed to match MS documentation
27609 - Focus: Fixed to return actual focus state and to check if
27610 setting focus is legal before setting it
27612 2006-03-08 Peter Dennis Bartok <pbartok@novell.com>
27614 * ThemeWin32Classic.cs: TabPages cannot have focus. Determine
27615 when to draw focus rectangle by looking at parent focus and
27616 selected state instead. This fixes TabPages on Linux sometimes
27617 having none or multiple focus rectangles.
27618 * XplatUIX11.cs (SetFocus):
27619 - Don't set the focus if the same window already has focus
27620 - Use SendMessage instead of PostMessage (like it's Win32
27621 equivalent) and send the WM_SETFOCUS before the WM_KILLFOCUS
27622 to match MS behaviour
27623 * TabControl.cs(SelectedIndex): Don't set Focus on TabPage, TabPages
27624 are not selectable.
27626 2006-03-07 Jackson Harper <jackson@ximian.com>
27628 * PictureBox.cs: Revert line I accidently committed last week.
27630 2006-03-07 Peter Dennis Bartok <pbartok@novell.com>
27633 - Added new IsRecreating and ParentIsRecreating properties to
27634 allow testing if RecreateHandle has been called on ourselves
27635 or one of our parents
27636 - WndProc(WM_DESTROY): If our control handle is being recreated
27637 we immediately need to create the handle when receiving the
27638 destroy, that way our child windows find a valid parent handle
27639 when they themselves are being recreated upon WM_DESTROY receipt
27640 (fix for bug #77654 part 1)
27642 - DestroyWindow: WM_DESTROY must be sent to our own window before
27643 notifying any child windows. MS documents that child windows
27644 are still valid when WM_DESTROY is received. (Control now relies on
27646 - Added some fine-grain debug options
27648 2006-03-06 Jackson Harper <jackson@ximian.com>
27650 * MdiClient.cs: Redid scrolling logic a bit to create a virtual
27651 box and base calculations off this.
27652 * MdiChildContext.cs:
27653 * MdiWindowManager.cs: Don't need to ensure scrollbars here
27656 2006-03-06 Peter Dennis Bartok <pbartok@novell.com>
27658 * Splitter.cs: In situations where the affected control is added
27659 to the parent's control list after the splitter, we would not
27660 populate affected. Now we try populating it on mousedown, if
27661 it's not already set, and force it to be re-set whenever our
27664 2006-03-03 Matt Hargett <matt@use.net>
27666 * Control.cs: implement Control.Padding
27667 * Padding.cs: -Padding.All returns -1 when constructing with the
27668 implicit default ctor
27669 -Padding.ToString() matches MS.NET
27670 * ContainerControl.cs: implement
27671 ContainerControl.AutoScaleDimensions
27672 * ListControl.cs: implement ListControl.FormattingEnabled
27673 * TextBox.cs: Implemented TextBox.UseSystemPasswordChar.
27675 * TabPage.cs: Implement UseVisualStyleBackColor.
27676 * PictureBox.cs: Implement PictureBox.InitialImage.
27678 2006-03-03 Mike Kestner <mkestner@novell.com>
27680 * ListView.cs: Refactor into HeaderControl and ItemControl. Fix new
27681 event declarations to proxy to base event.
27682 * ListViewItem.cs: update to use ItemControl.
27683 * Theme.cs: make DrawListViewHeader. s/DrawListView/DrawListViewItems.
27684 * ThemeWin32Classic.cs: update to new ListView theme API and fix
27685 column header label rendering for 0 width columns.
27687 2006-03-03 Peter Dennis Bartok <pbartok@novell.com>
27689 * Control.cs (ControlCollection.SetChildIndex): Avoid using a call
27690 that causes the control to be created. Fixes #77476.
27692 2006-03-02 Jackson Harper <jackson@ximian.com>
27694 * Hwnd.cs: Clear the nc pending when clearing the NC area, not the
27697 2006-03-02 Peter Dennis Bartok <pbartok@novell.com>
27699 * Control.cs: Implemented 2.0 feature where OnClick has MouseEventArgs
27700 passed in for the EventArgs (fixes #77690)
27702 2006-03-01 Jackson Harper <jackson@ximian.com>
27704 * ScrollBar.cs: Refresh afterbeing resized.
27706 2006-02-28 Mike Kestner <mkestner@novell.com>
27708 * MenuAPI.cs: Call PerformPopup internal method to emit Popup.
27709 Clean up a tracker compile warning.
27710 * MenuItem.cs: add internal PerformPopup method.
27713 2006-02-28 Peter Dennis Bartok <pbartok@novell.com>
27715 * TextBoxBase.cs (set_Text): Recalculate the document (causing an
27716 implicit expose) when the text is set to null
27718 2006-02-28 Peter Dennis Bartok <pbartok@novell.com>
27720 * RichTextBox.cs (FlushText): When newline is true, we always
27721 need to split the line, even if no text is on it and we may
27722 never eat newlines. (Fixes #77669)
27724 2006-02-28 Mike Kestner <mkestner@novell.com>
27726 * ListView.cs: Add UpdateSelection internal method. Remove SelectItem
27727 and set Selected instead.
27728 * ListViewItem.cs: Call owner.UpdateSelection to manipulate the
27731 2006-02-28 Peter Dennis Bartok <pbartok@novell.com>
27733 * ComboBox.cs: Allow setting SelectedIndex to -1. Fixes #77665
27735 2006-02-28 Alexander Olk <alex.olk@googlemail.com>
27738 - Got rid of the panel. All controls are now directly added to
27740 - It is now possible to set a font with the Font property
27741 - MinSize and MaxSize property do now what they should
27742 - ShowApply, ShowHelp, ShowColor, ShowEffects likewise
27743 - Searching and selecting a font with the font textbox works now,
27744 the same applies to the style and size textbox
27745 - Draw the correct 3D border in the example panel
27746 - Fixed a little mem leak (unused fonts didn't get disposed)
27747 - Many other internal updates/rewrites...
27750 2006-02-27 Peter Dennis Bartok <pbartok@novell.com>
27753 - InsertRTFFromStream: Added 'number of characters inserted' argument
27754 - set_SelectedRTF: Now using the number of characters to calculate
27755 the new location for the selection and cursor (x/y cannot be used
27756 due to potentially already wrapped text)
27758 2006-02-27 Peter Dennis Bartok <pbartok@novell.com>
27760 * TextControl.cs: Added property and implemented means to allow
27761 disabling recalculation of a document (can be used to speed up
27762 multiple inserts and is needed to make RTF inserts predictable, see
27764 * RichTextBox.cs: Using the new NoRecalc property of Document to
27765 keep x/y insert locations predictable. Also makes it faster inserting
27766 large chunks of RTF
27768 2006-02-27 Peter Dennis Bartok <pbartok@novell.com>
27770 * Control.cs: Separated special WM_SYSKEYUP keyboard handling. That way
27771 it's easier for a child control to handle the other messages without
27772 having to duplicate the special functionality
27774 - WndProc: Removed calling base handler for WM_KEYDOWN and added
27775 code to handle processing the key ourselves, in order to get
27776 access to the result of KeyEventArgs.Handled. We now only call
27777 ProcessKey if they key hasn't been handled already. Fixes #77526.
27778 - set_Text: If null or empty string is given, just clear the
27779 document. Fixes part of #77526
27781 2006-02-27 Jackson Harper <jackson@ximian.com>
27783 * SizeGrip.cs: Paint the background color before painting the grip
27784 so things look right.
27785 * MdiClient.cs: Add the sizegrip when both scrollbars are used.
27787 2006-02-27 Mike Kestner <mkestner@novell.com>
27790 - Restructure layout and invalidation model to remove a ton of
27791 flicker from the control and speed up performance in general.
27792 - Add manual column resize, flickers like crazy, but I already have
27793 some ideas on how I'll fix that. (#76822)
27794 - Merge the three Icon-based views into a single layout method.
27795 - Move item selection interaction logic from the item since
27796 interaction with the collections is more appropriate to the view.
27797 - Deselection on non-item clicks.
27799 - Encapsulate most of the layout. Add some internal props to trigger
27800 layout. Move to a model where Items invalidate themselves instead
27801 of just invalidating the whole control every time something changes.
27802 - Invalidate on Text/Caption changes.
27803 - switch to an offset based layout model to avoid having to absolute
27804 position every element on item moves.
27805 - correct checkbox layout to conform to MS layout.
27806 * ThemeWin32Classic.cs:
27807 - refactor some column header drawing code.
27808 - fix string justification for column headers (#76821)
27809 - make SmallIcon labels top justified for compat with MS impl.
27810 * ThemeClearlooks.cs:
27811 - adjust to new ListViewItem internal checkbox bounds api.
27813 2006-02-27 Jackson Harper <jackson@ximian.com>
27815 * Control.cs: Change where implicit controls fall in the zorder.
27816 They are now on top of all children.
27817 - Synced AddImplicit code with Add
27818 - Removed unused enumerator.
27819 * SizeGrip.cs: Remove the TODO as its been TODONE.
27821 2006-02-26 Peter Dennis Bartok <pbartok@novell.com>
27823 * TextControl.cs(Insert): Combine the last lines unless the insertion
27824 string ends with \n\n, otherwise we leave one line too many (Fixes
27825 something I noticed with the testapp for #77526; the bug itself was
27826 already fixed in the previous checkin)
27828 2006-02-26 Peter Dennis Bartok <pbartok@novell.com>
27831 - SelectionColor and SelectionFont methods no longer set absolute
27832 styles. Instead, the keep font or color respectively (This
27833 resolves a long-standing FIXME in the code)
27834 - When flushing RTF text, the insert code now considers text trailing
27835 behind the insertion point (Fixes the bug where when replacing
27836 the selected text via SelectedRTF the remainder of the line behind
27837 the selection would stay on the first insertion line)
27839 - AppendText now updates the selection points after inserting text
27840 - AppendText now ensures that the last tag (sometimes 0-length) of
27841 the document is used for the style information (Fixes part of
27844 - Created new FontDefiniton class to allow describing partial style
27846 - StreamLine() now takes a lines argument, to allow it to decide
27847 whether an encountered zero-length tag is the last in the document
27848 (which must be kept to not loose the font/color contained in it,
27850 - Created Combine() and Split() methods for Marker structs, to
27851 support marker updates due to reformatted documents (soft line
27853 - Implemented Document.CaretTag setter
27854 - Fixed MoveCaret(CtrlEnd) handling, now moves to the last character
27855 of the last line (Not the cause, but also exposed by bug #77220)
27856 - Added LineTag argument to InsertString method, to allow callers
27857 to force a certain tag to be used (required to force use of the
27858 trailing zero-length tag of a document)
27859 - Now updating markers in Combine(), to avoid stale tag markers
27860 - Added some method descriptions to aid maintenance
27861 - Implemented new FormatText concept, allowing additive/subtractive
27862 formatting by only specifying the components that are to be
27863 changed. This was needed for resolving the RTB.SelectedColor/
27864 RTB.SelectedFont fixmes
27865 - Added Break() support method to allow breaking up linetags (used
27866 for partial formatting)
27867 - Added GenerateTextFormat() method. It is used for partial
27868 formatting and allows to generate a full font/color from given
27869 attributes and an existing tag.
27871 2006-02-26 Jackson Harper <jackson@ximian.com>
27873 * XplatUIX11.cs: Use the correct caption height.
27874 - Translate hittest coordinates to screen coords to match MS.
27875 * XplatUIWin32.cs: When we create MDI windows we need to reset
27876 some of the style flags, so we get a nice blank window, and can
27877 draw all the decorations ourselves.
27878 - Set a clipping rectangle on the non client paint event, the
27879 window manager drawing code needs one.
27880 * Form.cs: The window manager needs to know when the window state
27882 * Hwnd.cs: The window manager stuff now does a proper NCCALC so we
27883 don't need to factor in border and title sizes in these
27884 methods. TODO: Remove the args and fix the call points.
27885 * InternalWindowManager.cs: Handle NCHITTEST and NCCALCAREA
27887 - Let the driver set the cursors.
27888 - Improve active window handling
27889 - Correct sizes for title bars and buttons.
27890 - Match MS drawing better
27891 * MdiWindowManager.cs: We don't need to handle border style
27892 updates specially anymore.
27893 - Check for scrollbars when windows are done moving
27894 - Handle Active properly.
27895 * MimeIcon.cs: Don't crash when we can't load the GNOME stuff
27896 correctly. I am spewing the exception though, so we don't hide the
27899 2006-02-26 Pedro Martinez Julia <pedromj@gmail.com>
27901 * DataGridViewRowPostPaintEventArgs.cs,
27902 DataGridViewCellPaintingEventArgs.cs,
27903 DataGridViewRowCollection.cs,
27904 DataGridViewRowPrePaintEventArgs.cs,
27905 DataGridViewCell.cs: Clear a few warnings and implement a few
27906 exceptions that should be thrown.
27908 2006-02-22 Peter Dennis Bartok <pbartok@novell.com>
27910 * ScrollBar.cs (ctor): Explicitly set a cursor to avoid
27911 'inheriting' our parent's (non-default) cursor. (Part of
27912 the fix for #77479)
27914 2006-02-22 Peter Dennis Bartok <pbartok@novell.com>
27916 * XplatUIX11.cs: Fixed cast to make csc happy
27918 2006-02-22 Peter Dennis Bartok <pbartok@novell.com>
27920 * Control.cs (WndProc): Only handle WM_SETCURSOR messages if
27921 it's for the client area (part of fix for #77479 and needed
27922 for MDI window cursor handling)
27924 - DefWindowProc: Now handles the WM_SETCURSOR messages, setting
27925 the appropriate default cursors and also passing the message
27926 up the parent chain
27927 - GetMessage: Now generating WM_NCHITTEST and WM_SETCURSOR even
27928 for non-client areas
27930 2006-02-15 Jackson Harper <jackson@ximian.com>
27932 * XplatUIWin32.cs: Since we fake MDI dont tell Windows that this
27933 is a real MDI window
27935 2006-02-14 Alexander Olk <alex.olk@googlemail.com>
27937 * X11DesktopColors.cs: Instead of checking the desktop session
27938 string for "KDE" check if it starts with "KDE"
27940 2006-02-10 Jackson Harper <jackson@ximian.com>
27942 * XplatUIX11.cs: These should be unsigned (fixes crash on 32 bit
27945 2006-02-10 Alexander Olk <alex.olk@googlemail.com>
27947 * FileDialog.cs: Added Refresh to RunDialog to fix some drawing
27950 - Got rid of the panel. All controls are now directly added to
27952 - Changed to mono coding style
27954 2006-02-10 Jackson Harper <jackson@ximian.com>
27956 * InternalWindowManager.cs: We don't need the set visibility to
27957 false hack anymore now that peter has written beautiful shutdown
27960 2006-02-10 Peter Dennis Bartok <pbartok@novell.com>
27962 * XplatUIX11.cs: Ignore DestroyNotify messages for windows that
27963 where already explicitly destroyed
27965 2006-02-10 Jackson Harper <jackson@ximian.com>
27967 * MdiClient.cs: Handle the case where windows are too high or to
27968 the left and we need scrollbars.
27970 2006-02-10 Alexander Olk <alex.olk@googlemail.com>
27972 * MimeIcon.cs: Added some icons
27975 - Got rid of the panel. All controls are now directly added to
27977 - Changed to mono coding style
27978 - On Linux "My Computer" and "My Network" will now show some
27979 more usefull information. A new class, MasterMount, gathers
27980 this information from /proc/mount. Updated MWFFileView to make
27981 use of this information
27982 - Fixed a bug that caused FileDialog to crash when
27983 ".recently_used" file had a zero size
27984 - FilterIndex does now what it should
27986 * OpenFileDialog.cs, SaveFileDialog.cs: Updated to reflect latest
27989 2006-02-09 Jackson Harper <jackson@ximian.com>
27991 * ComboBox.cs: Don't touch if null.
27993 2006-02-09 Peter Dennis Bartok <pbartok@novell.com>
27995 * Cursor.cs: 64bit safeness fix
27996 * XplatUIX11.cs: Removed several unneeded and one moronic cast.
27998 2006-02-09 Jackson Harper <jackson@ximian.com>
28000 * Form.cs: If a form is made into an MDI form update the styles so
28001 all the props can get set correctly.
28002 - Kill the mdi_container when we dont need it anymore.
28003 * InternalWindowManager.cs: Add missing NOT
28005 2006-02-08 Jackson Harper <jackson@ximian.com>
28007 * InternalWindowManager.cs: Respek clipping when drawing MDi
28010 2006-02-08 Jackson Harper <jackson@ximian.com>
28012 * Hwnd.cs: Add bits to track non client expose events.
28013 * XplatUIX11.cs: Track non client expose events on the hwnd. This
28014 gives us a proper invalid rect and will allow for some nice
28015 optimizations with NC client drawing
28016 - MDI windows are children windows, so move their style handling
28017 into the child window block.
28018 * InternalWindowManager.cs: Remove a state reset that was
28019 getting invoked at the wrong time. Fixes managed windows getting
28020 into a 'stuck' captured state.
28022 2006-02-07 Peter Dennis Bartok <pbartok@novell.com>
28024 * TextControl.cs (Document.ctor): Now initializing
28025 selection_anchor. Fixes #77493
28027 2006-02-07 Jackson Harper <jackson@ximian.com>
28029 * TrackBar.cs: The increment/decrements were backwards.
28031 2006-02-07 Mike Kestner <mkestner@novell.com>
28033 * Theme*.cs : remove ThemeEngine.Current usage as it just points back
28034 to the instance itself.
28036 2006-02-07 Peter Dennis Bartok <pbartok@novell.com>
28038 * X11DesktopColors.cs, ThemeGtk.cs: The GObject structure is based
28039 on ulongs and pointers, the size differs between 32bit and 64bit
28042 2006-02-07 Mike Kestner <mkestner@novell.com>
28044 * XplatUIX11.cs : force the WorkingArea away from XGetWindowProperty
28045 for 64 bit platforms to work around a metacity bug.
28047 2006-02-07 Jackson Harper <jackson@ximian.com>
28049 * TrackBar.cs: Process the input keys we need, and hookup to
28050 KeyDown instead of using WndProc, so we get key messages.
28052 2006-02-06 Peter Dennis Bartok <pbartok@novell.com>
28054 * XplatUIX11.cs: Atoms are only 32bit on the wire, no matter what
28056 * X11Dnd.cs(SetAllowDrop): Since atoms are always 32bit on the wire
28057 we need to translate the XdndVersion atoms array before sending it
28059 2006-02-06 Peter Dennis Bartok <pbartok@novell.com>
28062 - The preceeding 64bit fixes had a bug: ChangeProperty expects the
28063 number of bits for the property, not the number of bytes. The
28064 change to provide IntPtr.Size broke 32bit. (64bit was also wrong
28065 but would not crash since it specified 8 bits instead of 4 bits)
28066 - More 64bit fixes: Switched all atoms from int to IntPtr (they are
28067 defined as XID -> long in the C headers)
28068 - Removed 'new IntPtr((int))' and '(IntPtr)' casts from all NetAtoms
28069 references since those are now IntPtr to begin with
28070 - Switched all Atom.XXX 'int' casts to IntPtr casts
28071 - Fixed XGrabPointer DllImport signature to work for 64bit (cursor arg)
28072 - Fixed XInternAtom signature for 64bit, now returns an IntPtr
28073 - Added XChangeActivePointerGrab DllImport (for X11DnD)
28075 - Changed 'int' type for Atoms in XEvent structures to IntPtr
28076 - Changed atom in HoverStruct to be IntPtr
28078 - Removed local DllImports, switched code to use those from XplatUIX11
28079 - Removed/fixed casts related to the switch of Atom to be a IntPtr
28081 2006-02-06 Mike Kestner <mkestner@novell.com>
28083 * XplatUIX11.cs : many more 64 bit pinvoke changes. I've audited all the
28084 method signatures in the import region. There may still be some
28085 lingering struct marshaling issues, as I didn't drill down into those.
28088 2006-02-06 Jackson Harper <jackson@ximian.com>
28090 * ComboBox.cs: Dont manually set the top_item, this is computed
28091 when the scrollbar position is set.
28093 2006-02-06 Mike Kestner <mkestner@novell.com>
28095 * XplatUIX11.cs : 64 bit changes to XGetWindowProperty usage. Fixes
28096 startup crashes on amd64. There's other fixes needed. All pinvoke
28097 usage of Atom needs to be mapped to IntPtr for example. And there are
28098 likely other int/long issues to be addressed.
28100 2006-02-04 Alexander Olk <alex.olk@googlemail.com>
28102 * FileDialog.cs: One more...
28104 2006-02-03 Alexander Olk <alex.olk@googlemail.com>
28106 * FileDialog.cs: Next try
28108 2006-02-03 Alexander Olk <alex.olk@googlemail.com>
28110 * FileDialog.cs: First part of fix for #77464
28112 2006-02-03 Alexander Olk <alex.olk@googlemail.com>
28114 * ButtonBase.cs, ContainerControl.cs, Forms.cs,
28115 ThemeWin32Classic.cs: Fix for #77458. Correct handling of
28116 AcceptButton border drawing.
28118 2006-02-03 Peter Dennis Bartok <pbartok@novell.com>
28120 * Form.cs: Moved positioning of form after auto scaling is applied,
28121 otherwise it would possibly use wrong form size.
28123 2006-02-03 Peter Dennis Bartok <pbartok@novell.com>
28125 * Control.cs (RecreateHandle): No need to re-create any child
28126 controls, the child windows will get destroyed automatically by
28127 the windowing system or driver, and re-created when the handle
28128 is being accessed the first time. Fixes #77456
28129 * Form.cs: No longer setting the form to closing if the handle is
28130 being recreated. This seems like the right thing to do, don't
28131 have a bug or testcase for this, though.
28133 2006-02-02 Peter Dennis Bartok <pbartok@novell.com>
28135 * FileDialog.cs: Suspend/Resume layouting when changing sizes of
28136 controls to avoid unwanted side effects
28138 2006-02-02 Peter Dennis Bartok <pbartok@novell.com>
28141 - ScaleCore needs to scale the bounds, not the ClientSize of the
28142 control. Fixes #77416.
28143 - DefaultSize is 0,0 for control
28145 - DefaultSize is 100, 20
28146 - SetBoundsCore: Now enforcing the height, no matter if the provided
28147 height is more or less than the preferred one, as long as AutoSize
28149 * Form.cs: Apply documented fudge factor. Part of item 3 fix for #77416
28151 2006-02-02 Peter Dennis Bartok <pbartok@novell.com>
28154 - ResumeLayout: Fixed logic when to call PerformLayout, we may not
28155 call unless both performLayout is true *and* we have a pending
28157 - ResumeLayout: MS does not completely nest Suspend and Resume,
28158 they bottom out at 0, fixed our code to match that.
28159 - UpdateBounds/SetBoundsCore: Moved calling of UpdateDistances() to
28160 SetBoundsCore, we were updating even when we shouldn't. This fixes
28161 swf-anchors mis-anchoring when resizing the app fast and lots.
28162 - UpdateDistances: Now only setting the left and top distance if
28163 we have a parent and are not suspended, this is based on
28164 a suggestion by Don Edvaldson in bug #77355.
28165 - OnVisibleChanged: Fixed logic when to create the control. We may
28166 not create the control if we have no parent or if it's not visible;
28167 switched to using Visible property instead of is_visible field
28168 since the property also considers parent states. This fixes a bug
28169 when starting Paint.Net
28171 2006-02-02 Jackson Harper <jackson@ximian.com>
28173 * Form.cs: If the forms handle hasn't been created yet don't call
28174 into xplatui to make it top most, just set the topmost flag on the
28175 form in CreateParams
28176 * XplatUIX11.cs: Handle WS_EX_TOPMOST.
28178 2006-02-01 Jackson Harper <jackson@ximian.com>
28180 * ScrollableControl.cs: Refactored the Recalculate method a
28181 little, this wasn't handling all the variants of bottom and right
28182 bars needed to be added and added/removed based on their
28183 counterparts being added/removed (which changes the drawable
28184 size). Also we special case client widths and heights of 0 and
28185 don't add the scrollbar for those.
28187 2006-02-01 Peter Dennis Bartok <pbartok@novell.com>
28190 - Added method to get AbsoluteGeometry(); currently unused, but might
28191 be used in the future, if we try again to figure out toplevel
28192 coordinates with some more crappy window managers
28193 - Added FrameExtents() method to retrieve the WM set decoration size
28194 - Tried to fix up AddConfigureNotify and handling of ReparentNotify
28195 to deal with at least KDE, FVWM and metacity (Fixes #77092)
28197 - Added whacky_wm tracking var for metacity
28198 - Added logic to have default menu height if the actual menu height
28199 has not yet been calculated (part of fix for #77426)
28200 * Form.cs: Keep track whether client size has been set and re-set
28201 it if a menu is added/removed afterwards (Fixes #77426)
28203 2006-01-31 Jackson Harper <jackson@ximian.com>
28205 * Control.cs: When a new Site is set on the component attempt to
28206 pull the AmbientProperties from it.
28208 2006-01-31 Peter Dennis Bartok <pbartok@novell.com>
28210 * ThemeWin32Classic.cs: Menu background is drawn in ColorMenu, not
28211 in the background of the owning form. Fixes #77332
28213 2006-01-31 Alexander Olk <alex.olk@googlemail.com>
28215 * MimeIcon.cs: Fix for #77409
28217 2006-01-31 Alexander Olk <alex.olk@googlemail.com>
28219 * XplatUIX11GTK.cs: Initial import
28221 2006-01-31 Jordi Mas i Hernandez <jordimash@gmail.com>
28223 * FixedSizeTextBox: fixes class signature
28225 2006-01-30 Jackson Harper <jackson@ximian.com>
28227 * FixedSizeTextBox.cs: New internal class that represents a
28228 textBox that will not be scaled.
28231 * UpDownBase.cs: Use the new FixedSizeTextBox instead of a
28234 2006-01-30 Peter Dennis Bartok <pbartok@novell.com>
28236 * XplatUIX11.cs: Retrieve default screen number instead of
28237 assuming 0. Attempted fix for #77318
28239 2006-01-30 Peter Dennis Bartok <pbartok@novell.com>
28242 - GetWindowPos: When a window is parented by FosterParent, use
28243 the desktop instead of FosterParent as the base to get coordinates
28244 - CreateWindow: Don't make FosterParent the parent window for Popups
28245 if we don't want a taskbar entry, Popups automatically don't get one
28246 * Hwnd.cs: Need to call remove to actually remove the key from the
28249 2006-01-30 Mike Kestner <mkestner@novell.com>
28251 * MenuAPI.cs: adjust MainMenu item popup location to y=0.
28253 2006-01-30 Jackson Harper <jackson@ximian.com>
28256 * TreeNode.cs: Raise events no matter how the treenode is
28257 checked. Patch by Don Edvalson.
28259 2006-01-30 Jackson Harper <jackson@ximian.com>
28261 * TreeNode.cs: Signature fix.
28263 2006-01-29 Alexander Olk <alex.olk@googlemail.com>
28265 * ThemeClearlooks.cs: Fixed a crash in ProgressBar drawing.
28267 2006-01-20 Mike Kestner <mkestner@novell.com>
28269 * Form.cs: Add ActiveTracker property to do Captures and perform mouse
28270 event forwarding when menus are active.
28271 * MenuAPI.cs: kill the GrabControl hack. Use Form.ActiveTracker.
28272 Most of the patch is pdb's with a little rework.
28274 2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
28276 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs:
28277 Removed GetMenuDC and ReleaseMenuDC methods; replaced
28278 by PaintEventStart(handle, false) and PaintEventEnd(handle, false)
28279 * Form.cs: Changed WM_NCPAINT handler to use PaintEventStart and End
28280 * InternalWindowManager.cs: Added use of PaintEventStart/End to
28281 handling of WM_NCPAINT message, now passing the PaintEventArgs to
28282 the PaintWindowDecorations method
28283 * MainMenu.cs: Switched logic from GetMenuDC to PaintEventStart
28284 * MdiChildContext.cs: Switched logic from GetMenuDC to PaintEventStart
28285 * MenuAPI.cs: Made tracker window invisible
28287 - Removed GetMenuDC and ReleaseMenuDC methods
28288 - Implemented the client=false path for PaintEventStart and
28291 2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
28293 * XplatUIWin32.cs(SetBorderStyle): Fixed3D needs a border
28294 * XplatUIX11.cs(DeriveWindowStyles): Updated to match fixed Form
28297 - MaximizeBox, MinimizeBox: Recreate the handle when setting
28299 - CreateParams: Reworked the styles to match MS look'n'feel,
28300 removed automatic setting of MinimizeBox, MaximizeBox, etc. via
28301 the WS_OVERLAPPEDWINDOW style. This fixes #76823.
28303 2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
28305 * XplatUIX11.cs(GetWindowState): Now throwing an exception when the
28306 window is not mapped, since otherwise every form that's being
28307 created is considered minimized, which is wrong.
28308 * Form.cs: Catching the exception and returning our internal value
28311 2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
28313 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new driver method
28314 SetWindowMinMax() to have means to tell the driver about the minimum,
28315 maximum and maximized state window sizes. (Part of the fix for #76485)
28317 - Implemented tracking of minimum and maximum window size, now calling
28318 new SetWindowMinMax() driver method to tell the driver (Part of the
28320 - Finished handling of WM_GETMINMAXINFO method, now setting all values
28321 (Completes fix for #76485)
28322 - Calling new SetWindowMinMax driver method when the handle for a
28323 form is created, to make sure the driver knows about it even if
28324 the values have been set before the window was created
28325 - Now eating the WM_WINDOWPOSCHANGED message if the form is minimized
28326 to avoid messing up our anchoring calculations (partial fix
28328 * XplatUIStructs.cs: Added MINMAXINFO struct (moved from Win32 driver)
28330 - Added _NET_WM_STATE_HIDDEN property for detecting minimized state
28331 - Improved GetWindowState() to detect 'Minimized' state on Metacity
28332 (and presumably other freedesktop.org compliant WMs). Left the
28333 assumption unmapped=minimized, needed for SetVisible to work.
28334 - Now setting the window state when creating windows
28335 - Fixed SetVisible to consider/set the window state when mapping
28336 a Form. We cannot set the state before it's mapped, and we cannot
28337 use Form.WindowState once it's mapped (since it would ask the
28338 driver and get 'normal'. Therefore, we grab the state before
28339 mapping, map, and then set state.
28340 - Implmemented SetWindowMinMax method; Metacity does not seem to
28341 honor the ZoomHints, though.
28343 - Removed MINMAXINFO (moved to XplatUIStructs)
28344 - Added SetWindowMinMax stub (on Win32 the only way to set that
28345 information is in response to the WM_GETMINMAXINFO message, which
28346 is handled in Form.cs)
28347 - Added logic to SetVisible to set the proper window state when a
28348 form is made visible (fixes #75720)
28350 2006-01-26 Jackson Harper <jackson@ximian.com>
28352 * Control.cs (BeginInvoke): Automagically handle EventHandlers the
28353 same way we handle them with Invoke.
28355 2006-01-25 Peter Dennis Bartok <pbartok@novell.com>
28358 - Added tracking of window state so CreateParams can return
28359 the appropriate style
28360 - Moved setting of WS_CAPTION style in CreateParams to allow
28361 styles without caption
28362 * DataGridTextBoxColumn.cs: We are now also creating the TextBox
28363 control if the TextBox property is accessed. Fixes #77345
28365 - get_Created: now uses is_disposed and is_created to determine
28366 return value (suggested by Jackson)
28367 - CreateHandle: No longer exits if the handle is being recreated
28368 - RecreateHandle: If the handle is not yet created call the
28369 appropriate method to create either control or handle. If the
28370 control is already created CreateHandle will simply exit instead
28371 of just creating the handle
28372 * Hwnd.cs: Removed expose_pending tracking, no longer needed since we
28373 now SendMessage WM_DESTROY directly to the control when DestroyWindow
28376 - When DestroyWindow is called, instead of waiting for the
28377 DestroyNotification from X11, we directly post it to the WndProc
28378 and immediately dispose the hwnd object.
28379 Same applies to DestroyChildWindows, and this obsoletes the
28380 expose_pending tracking. Contrary to Win32 behaviour we destroy our
28381 child windows before our own, to avoid X11 errors.
28382 - Removed the direct sending of WM_PAINT on UpdateWindow
28384 - Reworked DoEvents and GetMessage to allow access to internal queue
28385 even when trying non-blocking access to the queue. Fixes #77335.
28386 Based on a patch suggestion by Don Edvalson. The new private
28387 GetMessage can now also be used as a backend for a PeekMessage
28389 * XplatUI.cs: Improved debug output for CreateWindow
28391 2006-01-25 Jackson Harper <jackson@ximian.com>
28393 * Help.cs: Allow param to be null. Patch by Don Edvalson.
28395 2006-01-24 Jackson Harper <jackson@ximian.com>
28397 * ComboBox.cs: Clamp the max value set for the vertical scrollbar
28398 when we have a MaxDropItems lower then the selected index.
28400 2006-01-24 Jackson Harper <jackson@ximian.com>
28402 * Control.cs: Don't allow selection of non visible controls, allow
28403 selection of controls without parents.
28405 2006-01-24 Jordi Mas i Hernandez <jordimash@gmail.com>
28407 * ThemeWin32Classic.cs: Fixes Datagrid drawing issues
28408 * DataGridDrawingLogic.cs: Add editing row only when is necessary
28410 2006-01-23 Jackson Harper <jackson@ximian.com>
28412 * UpDownBase.cs: Make the textbox handle all the selection and
28413 tabbing. This fixes tabing to updown controls.
28415 2006-01-24 Jordi Mas i Hernandez <jordimash@gmail.com>
28417 * TextBoxBase.cs: fixes exception thown the object was null
28419 2006-01-23 Jackson Harper <jackson@ximian.com>
28421 * ButtonBase.cs: Just use the base CreateParams. They set
28422 visibility and enabled correctly.
28425 * MonthCalendar.cs: Lets let the base set as much of the
28426 createparams as possible so we don't have duplicate code all over
28429 2006-01-22 Alexander Olk <alex.olk@googlemail.com>
28431 * ThemeGtk.cs: Added TrackBar and some experimental code to
28432 get double buffering back
28434 2006-01-21 Jordi Mas i Hernandez <jordimash@gmail.com>
28436 * DataGrid.cs: Allows row number set internally higher than the last
28437 when creating a new row. Restores the editing functionality.
28439 2006-01-20 Mike Kestner <mkestner@novell.com>
28441 * MimeIcon.cs: delay Image creation until the icons are accessed
28442 instead of creating 190 scaled images on GnomeHandler startup.
28444 2006-01-19 Peter Dennis Bartok <pbartok@novell.com>
28446 * TextBoxBase.cs (WndProc): When handling WM_KEYDOWN we need to
28447 first call base before processing the event. Fixes #77279
28449 2006-01-19 Peter Dennis Bartok <pbartok@novell.com>
28451 * XplatUIWin32.cs, Cursor.cs: Fixed code that wrongly assumed
28452 that the stride for the GDI bitmap would match the stride of
28455 2006-01-19 Alexander Olk <alex.olk@googlemail.com>
28457 * ThemeGtk.cs: Added ProgressBar, RadioButton, CheckBox
28459 2006-01-19 Jackson Harper <jackson@ximian.com>
28461 * ComboBox.cs: Hookup the text controls keydown event so we get
28462 those when the text control has the focus.
28464 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
28466 * Label.cs: Now using the base events instead of defining new ones;
28467 this allows us to just call the base properties without having to
28468 duplicate all base property logic
28470 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
28472 * Label.cs: A label by default is not a tabstop (Fixes one of our
28473 failing nunit tests)
28475 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
28477 * XplatUIWin32.cs: Fixed wrong DoEvents logic. Fixes #77282
28478 * XplatUIX11.cs: Removed WM_PAINT check from DoEvents. Fixes #77282
28480 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
28482 * Cursor.cs: Reimplemented creating cursor bitmaps without using
28483 the Bitmap(Stream) constructor which is semi-broken on MS GDI+.
28486 - Reimplemented creating Bitmaps from DIBs since the Bitmap(Stream)
28487 constructor creates images that can't be saved. Part of the fix
28489 - Added handling of CF_BITMAP as CF_DIB to clipboard code (Fixes #76103)
28490 - SetWindowState: Switched ShowWindow flags (part of an upcoming
28491 bug fix for handling window state in forms properly)
28493 2006-01-18 Alexander Olk <alex.olk@googlemail.com>
28495 * ThemeGtk.cs: Simplify ScrollBar drawing
28497 2006-01-18 Jackson Harper <jackson@ximian.com>
28499 * Splitter.cs: Set the default dock style for the splitter control
28500 in the constructor.
28502 2006-01-18 Alexander Olk <alex.olk@googlemail.com>
28504 * ThemeGtk.cs: Corrected StateType and ShadowType for
28507 2006-01-18 Alexander Olk <alex.olk@googlemail.com>
28509 * Control.cs: Make use of Theme.DoubleBufferingSupported
28511 - Added drawing for flat style buttons
28512 - Added ScrollBar drawing
28514 2006-01-18 Alexander Olk <alex.olk@googlemail.com>
28516 * ThemeClearlooks.cs: Removed some unneeded code.
28517 * ThemeGtk.cs: First part of ThemeGtk enhancements.
28519 2006-01-17 Peter Dennis Bartok <pbartok@novell.com>
28521 * LinkLabel.cs: We need to update the hover drawing when
28522 leaving the control as well.
28524 2006-01-18 Jordi Mas i Hernandez <jordimash@gmail.com>
28526 * DataGrid.cs: Clicking on non empty areas in the columns
28527 area was giving an exception
28529 2006-01-17 Jackson Harper <jackson@ximian.com>
28531 * ThemeWin32Classic.cs:
28532 * ListView.cs: Do not draw/clip the headers when the header style
28535 2006-01-17 Jordi Mas i Hernandez <jordimash@gmail.com>
28537 * DataGrid.cs: Fixes 77260
28539 2006-01-17 Jordi Mas i Hernandez <jordimash@gmail.com>
28541 * DataGrid.cs: Clicking on a column on a empty grid was giving
28544 2006-01-17 Peter Dennis Bartok <pbartok@novell.com>
28546 * DataGrid.cs (OnKeyDown): Don't use the array if it's empty
28547 or any keypress will crash the grid.
28549 2006-01-17 Mike Kestner <mkestner@novell.com>
28551 * MainMenu.cs (OnMenuChanged): set Height=0 to cause relayout.
28552 * ThemeWin32Classic.cs (CalcItemSize): clear Height/Width for
28553 invisible/previously-visible items.
28556 2006-01-17 Alexander Olk <alex.olk@googlemail.com>
28558 * ThemeClearlooks.cs:
28559 - Added CL_Draw_Button method; now other theme controls that are
28560 not derived from button or do not have a button can draw buttons
28562 - Updated ComboBox drawing
28563 - Beautified RadioButton drawing
28564 - Corrected drawing of bottom and left tabs
28565 - Beautified DateTimePicker and MonthCalendar
28566 - Added CPDrawButton and CPDrawRadioButton
28568 2006-01-16 Jackson Harper <jackson@ximian.com>
28570 * ComboBox.cs: Set the initial value of the scrollbar to the
28571 current index. Reduce the numbers of refreshs and IndexOfs called.
28573 2006-01-14 Alexander Olk <alex.olk@googlemail.com>
28575 * FileDialog.cs: When the file listview is focused hitting the
28576 backspace key moves the fileview to the parent directory
28578 2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
28581 - Added RecreateHandle call when changing taskbar visibility to
28582 trigger reparenting in Win32 driver (Fixes #75719)
28583 - If a window has minimize or maximize buttons, it cannot have
28586 - CreateWindow: When no WS_EX_APPWINDOW style is found we parent
28587 the toplevel form with FosterParent (A toolwindow not on the
28588 taskbar) (Fixes #75719)
28589 - Made FosterParent a toolwindow
28591 2006-01-13 Alexander Olk <alex.olk@googlemail.com>
28593 * FileDialog.cs: Don't crash if InitialDirectory doesn't exist
28595 2006-01-13 Alexander Olk <alex.olk@googlemail.com>
28597 * ToolTip.cs: If SetToolTip is called from a control and the mouse
28598 is currently over that control, make sure that tooltip_window.Text
28601 2006-01-13 Mike Kestner <mkestner@novell.com>
28603 * MimeIcon.cs: size_t on lp64 fix for gdk_pixbuf_save_to_file extern.
28605 2006-01-13 Jackson Harper <jackson@ximian.com>
28607 * TreeView.cs: On MS GetNodeAt never actually factors in the X
28608 value passed. Also redraw the selected node when we recieve
28609 focus, so tabbing between trees works correctly.
28611 2006-01-13 Alexander Olk <alex.olk@googlemail.com>
28613 * MimeIcon.cs: GnomeHandler: older gnome versions don't have
28614 ~/.gconf/%gconf-tree.xml, so use
28615 .gconf/desktop/gnome/interface/%gconf.xml
28617 2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
28619 * TextControl.cs: Draw text in gray if control is disabled
28621 2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
28623 * TreeView.cs: Draw the focus rectangle outside the highlight, to
28624 make sure it's always visible. Fixes #76680.
28626 2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
28628 * TreeView.cs: Implemented Wheel scrolling. Fixes #76531
28630 2006-01-13 Jonathan Chambers <jonathan.chambers@ansys.com>
28632 * PageSetupDialog.cs: Added.
28633 * PrintDialog.cs: Attributes.
28634 * PrintPreviewControl.cs: Updates.
28635 * PrintPreviewDialog.cs: Updates.
28637 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
28639 * Control.cs: Undid my selection check fix, since it's not needed
28641 - Now considering the presence of hscroll/vscroll when sizing
28642 vscroll/hscroll respectively. Fixed bug #77077
28643 - Added Left/Up/Down/Right to IsInputKey list to prevent
28644 ContainerControl from stealing them. This fixes what I broke
28645 with my last checkin.
28647 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
28649 * ScrollableControl.cs: Implemented dockpadding. Fixes #77166. And
28650 I finally understand how the property can be set without a setter :-)
28652 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
28655 - Switched RunLoop to use static Message.Create to create a
28657 - Added PreProcessMessage call in runloop for keyboard events; this
28658 is part of the fix for #77219, I overlooked this originally in the
28659 MSDN doc for PreProcessMessage
28661 - Removed call to PreProcessMessage from handling of keyboard
28662 messages; it's supposed to be done in the message pump
28663 - Moved call to ProcessKeyEventArgs inside ProcessKeyMessage as
28664 per MSDN documentation.
28665 - IsInputChar: All chars are input chars by default; removed the
28666 parent calling chain, MS does not document that
28667 - PreProcessMessage: If IsInputChar is true, we want to return false
28668 to allow dispatching of the message
28669 - When selecting the next control, now also check that we're not
28670 selecting ourselves again and therefore return a false positive.
28672 - Tried to match return values for IsInputKey and ProcessDialogKey
28673 to what MS returns; moved processing of our special keys outside
28674 ProcessDialogKey since MS does not seem to return true on those.
28675 - Moved code that previously was in ProcessDialogKey into new private
28676 ProcessKey method, which gets called upon receipt of WM_KEYDOWN
28677 - Reworked handling of WM_CHAR to not have to duplicate code from
28678 Control.cs anymore, instead we simply call down to base.
28680 2006-01-12 Jackson Harper <jackson@ximian.com>
28682 * ComboBox.cs: We always need to refresh the text area when
28683 EndUpdate is called. Fixes the combobox in the file dialog.
28684 * Control.cs: Don't create the creator_thread until the controls
28685 handle is created. Also in InvokeRequired we check if the
28686 creator_thread is null. This gives the effect of InvokeRequired
28687 returning true if the controls handle is not created yet, and
28690 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
28693 - Added StartLoop() driver method. This is used to allow drivers to
28694 prepare for an upcoming GetMessage/TranslateMessage/DispatchMessage
28695 loop for a particular thread
28696 - Added EndLoop() driver method. This is called once the message
28697 pump for the thread is shut down
28698 - Added SupportsTransparency method to allow the driver to indicate
28699 opacity support for windows
28701 - Removed TODO attribute, completed AllowTransparency property
28702 - Added documented logic to Opacity
28703 * GroupBox.cs, Label.cs, LinkLabel.cs, PropertyGrid.cs, Control.cs,
28704 ButtonBase.cs, CheckedListBox.cs: Combined Jackson's and Miguel's
28705 versions of CompatibleTextRendering
28706 * X11Structs.cs: Added opacity atom to our atom enumeration
28707 * Hwnd.cs: Added opacity tracking (we need to track since the opacity
28708 of a form might be set before it's reparented by the WM, and we need
28709 the opacity value without calling up to Form)
28710 * XplatUIDriver.cs: Added StartLoop(), EndLoop() and
28711 SupportsTransparency() driver methods
28712 * Application.cs: Now calling StartLoop and EndLoop driver methods
28714 - Added opacity atom registration
28715 - Added StartLoop()/EndLoop() methods. They're empty right now but
28716 will need to get implemented when we switch to a per-thread queue
28717 - Implemented SupportsTransparency() method
28718 - Implemented SetWindowTransparency() method
28719 - Added support for setting the opacity value when a window is
28720 reparented (since the opacity needs to be set on the WM frame)
28721 * XplatUIOSX.cs, XplatUIWin32.cs:
28722 - Added SupportsTransparency(), StartLoop() and EndLoop() methods
28724 2006-01-12 Alexander Olk <alex.olk@googlemail.com>
28726 * ThemeClearlooks.cs: Don't crash if TabControl.Parent is null.
28728 2006-01-12 Alexander Olk <alex.olk@googlemail.com>
28730 * FileDialog.cs: Added ToolTip for MWFFileView
28731 * MimeIcon.cs: Rewrote GnomeHandler.
28732 - Get currently used gnome icon theme from
28733 ($HOME)/.gconf/%gconf-tree.xml
28734 - Make use of inherited icon themes
28735 - Support SVG icon themes like Tango via librsvg
28737 2006-01-12 Miguel de Icaza <miguel@novell.com>
28739 Revert's Jackson's revert which broke 2.0 builds. Fix both
28742 * Application.cs: Move the use_compatible_text_rendering outside
28743 the NET_2_0 define. If we ever need to use the
28744 use_compatible_text_rendering on the individual controls they will
28745 access the variable from the common shared code paths.
28747 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
28750 - Added more granular debug options
28751 - Added method to print both window text and id
28752 - Switched debug output to use new Window() debug method
28753 - Added IsEnabled() driver method
28754 - Added EnableWindow() driver method
28756 - Removed end_modal; no longer needed, new loop handles termination
28757 via 'closing' variable
28758 - If form is modal, setting DialogResult will now initiate loop
28759 termination via 'closing' variable
28760 - Added support for is_enabled/WS_DISABLED to CreateParams
28761 - Close() now just send the WM_CLOSE message; the WM_CLOSE handler
28763 - Removed code that's now in RunLoop from ShowDialog()
28764 - Added various documented sanity checks to ShowDialog()
28765 - Added handling of WM_DESTROY message; we set 'closing' on getting
28766 the message to indicate the message pump to terminate
28767 - Added handling of new internal WM_CLOSE_INTERNAL message - it's
28768 send by the Application.ExitThread method. (We send the message
28769 to destroy the window after all other events have been
28770 processed through the queue, instead of destroying the handle
28772 - Moved code from Close() method to WM_CLOSE handler; added logic
28773 to only send close-related events if the form is not displayed
28775 * Splitter.cs (..ctor): Fixed typo in resource name
28777 - DrawBackgroundImage: Explicitly selecting the wrap mode for the
28779 - set_Cursor: Now only setting calling into XplatUI if the handle for
28780 the control is already created; this avoids implict handle creation
28781 or crashes if it's not created
28782 - set_Enabled: Now setting the enabled state via the new driver method
28783 instead of just tracking it
28784 - CreateParams: Added logic to set WS_DISABLED based on enabled state
28785 - CreateControl: Reordered event firing and method calls to more
28786 closely fire events in the order MS does. Now setting the
28787 enabled state in the driver when creating the control.
28788 - SetVisibleCore: Moved when the OnVisibleChanged event is fired to
28790 * FolderBrowserDialog.cs, MessageBox.cs, ButtonBase.cs, TrackBar.cs,
28791 MonthCalendar.cs: get_CreateParams: Added setting of WS_DISABLED
28792 * XplatUIStructs.cs: Added internal WM_CLOSE_INTERNAL mesage id
28794 - Added tracking of window enabled state (get_Enabled/set_Enabled)
28795 - Added EnabledHwnd property to easily allow a driver to find the
28796 handle of the first enabled window in the parent chain (this is
28797 used by drivers to pass up input events of disabled windows)
28798 * XplatUIDriver.cs: Added IsEnabled() method
28800 - Removed crude and obsolete exiting tracking variable
28801 - Removed internal ModalRun(); replaced by RunLoop()
28802 - Implemented private CloseForms() method to allow closing all
28803 windows owned by a particular (or all) threads
28804 - Exit() now properly closes all windows without forcing the message
28806 - Removed obsolete InternalExit() method
28807 - Changed Run() methods to use new RunLoop() message pump
28808 - Implemented new RunLoop() method for both modal and non-modal forms
28810 - get_CreateParams: Added setting of WS_DISABLED
28811 - Simplified ShowDialog(); now all the work is done in RunLoop(),
28812 invoked via Form.ShowDialog()
28813 * NativeWindow.cs: We don't remove the window from the collection when
28814 the handle is destroyed; there might still be messages for it in the
28815 queue (mainly the resulting WM_DESTROY); instead it will be removed
28816 when Control calls InvalidateHandle in the WM_DESTROY handler
28818 - CreateWindow: Added logic to handle the WS_DISABLED window style
28819 - EnableWindow: Implemented based on Hwnd.Enabled
28820 - GetMessage: Reset PostQuitState so the method can be called again
28821 - Implemented support for disabled windows (passing messages to the
28822 first enabled parent) in handling all input messages
28823 - Added optimizations for handling Expose events
28824 - Implemeted new driver method IsEnabled()
28825 - Now always resetting paint pending tracking vars when we start paint
28826 - Re-implemented UpdateWindow via just sending a WM_PAINT message
28827 * XplatUIOSX.cs: Added IsEnabled method stub
28828 * XplatUIWin32.cs: Implemented new IsEnabled() method
28830 2006-01-11 Jackson Harper <jackson@ximian.com>
28832 * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
28833 LinkLabel.cs, PropertyGrid.cs: Unbreak 1.1 build. Consolidate the
28834 variables a little.
28835 * ColorDialog.cs: Clear out the old form before adding the new
28838 2006-01-11 Jackson Harper <jackson@ximian.com>
28840 * X11Dnd.cs: Make sure to add all the text formats when adding
28841 strings to the data object.
28842 * TreeNodeCollection.cs: When adding to a sorted tree we need to
28843 do some redrawing too. Also change the UpdateNode to an
28844 UpdateBelow so the newly added node gets painted.
28846 2006-01-11 Miguel de Icaza <miguel@novell.com>
28848 * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
28849 LinkLabel.cs, PropertyGrid.cs: Implement the
28850 UseCompatibleTextRendering property for 2.x
28852 * Application.cs (SetCompatibleTextRenderingDefault): Add.
28854 2006-01-11 Jackson Harper <jackson@ximian.com>
28856 * TreeView.cs: Use the property for setting the selected node so
28857 the correct events get raised.
28858 * TreeNode.cs: Update the tree when the fore/back colours of a
28861 2006-01-10 Jackson Harper <jackson@ximian.com>
28863 * TreeView.cs: Allow setting SelectedNode to null.
28865 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
28867 * Form.cs: Fix support for Form TransparencyKey and Opacity on Windows.
28869 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
28871 * PrintControllerWithStatusDialog.cs: Update page number in dialog.
28873 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
28875 * PrintDialog.cs: Added attributes and set default property values.
28877 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
28879 * PrintControllerWithStatusDialog.cs:
28880 Added PrintControllerWithStatusDialog.
28882 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
28884 * XplatUI.cs, Form.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
28885 XplatUIWin32.cs: Added support for Form TransparencyKey and Opacity on Windows.
28887 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
28889 * ComboBox.cs: Fix crash when there is no selected item (due to last commit)
28891 2006-01-09 Jonathan Chambers <jonathan.chambers@ansys.com>
28893 * ComboBox.cs: Added KeyDown event handler for processing arrow keys
28894 and PgUp/PgDown. Also, scroll to selected item upon dropdown. Bugs 76857 and 76788.
28896 2006-01-08 Alexander Olk <alex.olk@googlemail.com>
28898 * MimeIcon.cs: Added internal class SVGUtil.
28900 2006-01-08 Alexander Olk <alex.olk@googlemail.com>
28902 * FileDialog.cs: Don't crash if there are two files with the
28903 same name but different locations.
28905 2006-01-08 John BouAntoun <jba-mono@optusnet.com.au>
28907 * MonthCalendar.cs: Fixed annoying rendering bug when selecting
28908 dates across multiple month grids. Used to not highlight entire
28909 month, but does now.
28911 2006-01-06 Jackson Harper <jackson@ximian.com>
28913 * MonthCalendar.cs: Removed DoEvents call to prevent a running
28914 message loop. Change timer intervals to numbers that seem more
28917 2006-01-06 John BouAntoun <jba-mono@optusnet.com.au>
28919 * DateTimePicker.cs: Modified CalculateDropDownLocation to use the screen
28920 object for location info since screen object is now implemented.
28922 2006-01-05 Jackson Harper <jackson@ximian.com>
28924 * AsyncMethodData.cs: Check if the call is complete before doing a WaitOne
28925 * AsyncMethodResult.cs: We no longer use a WeakReference for the
28926 AsyncMethodResult, this is because we ALWAYS want the
28927 ManualResetEvent to get set.
28928 * Control.cs: When disposing use an async invoke to call shutdown
28929 code, so that thigns don't block on the finalizer thread. Also
28930 check if we even have a message loop before trying to send
28931 messages, if we don't then don't bother sending messages.
28932 - No more weak references for async methods
28933 * XplatUIDriver.cs: No more weak references for async methods.
28935 2006-01-04 Alexander Olk <alex.olk@googlemail.com>
28937 * FontDialog.cs: Fix, don't throw an exception if FontFamily.Families
28938 returns two FontFamily with the same name
28940 2006-01-04 Peter Dennis Bartok <pbartok@novell.com>
28942 * ThemeWin32Classic.cs, ThemeClearlooks.cs: Dropped stupid scheme of
28943 drawing disabled text. Instead using the ColorGrayText color
28945 2006-01-04 Jackson Harper <jackson@ximian.com>
28947 * TreeNode.cs: redraw the node when its image index is changed.
28949 2006-01-04 Peter Dennis Bartok <pbartok@novell.com>
28951 * RichTextBox.cs: Same fix as last, just for SelectionColor. This
28952 time I checked there are no others like it.
28954 2006-01-04 Jackson Harper <jackson@ximian.com>
28956 * AsyncMethodResult.cs: Use a ManualResetEvent instead of a mutex,
28957 this gives the behavoir I was looking for.
28958 * Control.cs: Special case Invoking EventHandlers, this matches MS
28959 and fixes part of bug #76326.
28961 2006-01-04 Alexander Olk <alex.olk@googlemail.com>
28963 * ThemeClearlooks.cs, FileDialog.cs:
28964 - Reflect the latest Theme class changes
28965 - Remove Mono.Unix.Syscall.time in FileDialg and replace it
28968 2006-01-04 Alexander Olk <alex.olk@googlemail.com>
28970 * Theme.cs: Cache UI resource images and resize them if needed
28972 2006-01-03 Peter Dennis Bartok <pbartok@novell.com>
28974 * RichTextBox.cs: FormatText is 1-based, make it so when SelectionFont
28975 is called. This fixes the crash in Nexxia when setting the font
28976 attributes in the chat. [However, RTF needs a look-over to make sure
28977 that all SelectionXXX methods handle the special case that selection
28978 is empty and therefore the change must be applied to all text starting
28979 at the cursor/selection start]
28981 2006-01-03 Peter Dennis Bartok <pbartok@novell.com>
28983 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
28984 XplatUIOSX.cs: Added SendMessage and PostMessage methods
28985 * X11Keyboard.cs: Switched to new way of calling PostMessage
28987 2006-01-03 Peter Dennis Bartok <pbartok@novell.com>
28989 * Theme.cs: Added theme interface for images to allow the theme to
28990 control what images are used for things like FileDialog, MessageBox
28992 * MessageBox.cs: Now uses the new Theme icon/image interfaces
28994 2006-01-03 Alexander Olk <alex.olk@googlemail.com>
28997 - Removed some dead code
28998 - Opening a recently used file does work now
28999 - Small UI enhancements
29002 2006-01-02 Alexander Olk <alex.olk@googlemail.com>
29004 * FileDialog.cs: Forgot too add __MonoCS__
29006 2006-01-02 Alexander Olk <alex.olk@googlemail.com>
29008 * FileDialog.cs: We are able to read recently used files now let's
29009 go on and write them.
29011 2006-01-01 Alexander Olk <alex.olk@googlemail.com>
29013 * FileDialog.cs: Breathe some life into "last open"/"recently used"
29015 * MimeIcon.cs: Do a check for the top level media type also
29017 2005-12-31 Alexander Olk <alex.olk@googlemail.com>
29019 * ThemeClearlooks.cs:
29020 - Added CPDrawStringDisabled
29021 - ButtonBase_DrawText: Workaround for a DrawString bug; cut off
29022 some chars if the text doesn't fit into text_rect
29023 - DrawListViewItem: If View = View.LargeIcon center the image;
29024 rewrote the drawing of ListViewItem.Text if View =
29027 2005-12-31 Alexander Olk <alex.olk@googlemail.com>
29029 * MimeIcon.cs: Use default KDE icon theme if there is no
29030 "48x48" directory for the current icon theme, fixes #77114
29031 * Mime.cs: Disable not working and actually not used code.
29032 * ThemeWin32Classic.cs:
29033 - Replace "new SolidBrush" in GetControlBackBrush and
29034 GetControlForeBrush with ResPool.GetSolidBrush
29035 - Changed DrawListViewItem from private to protected virtual
29037 - Added form.MaximizeBox = true
29038 - Don't throw an exception if there is a broken symbolic link
29040 2005-12-23 Jackson Harper <jackson@ximian.com>
29042 * TabControl.cs: Give the panels focus, keyboard navigation is
29043 fixed so this works correctly now.
29044 - We need these key events also.
29045 * ToolBar.cs: Remove some of the poor mans double buffering.
29047 2005-12-24 Alexander Olk <alex.olk@googlemail.com>
29049 * ComboBox.cs: The internal TextBox now returns the focus.
29051 2005-12-23 Jackson Harper <jackson@ximian.com>
29053 * ThemeWin32Classic.cs: Draw the text for all tab appearances.
29055 2005-12-23 Peter Dennis Bartok <pbartok@novell.com>
29057 * Control.cs: Removed debug code
29058 * XplatUIX11.cs: Changed DestroyChildWindows to also consider
29061 2005-12-23 Peter Dennis Bartok <pbartok@novell.com>
29063 * Control.cs: When creating the control, update the Z-order after
29064 all it's children are created, too. (Fixes nexxia not showing
29067 2005-12-23 Peter Dennis Bartok <pbartok@novell.com>
29069 * Control.cs: Do not update the anchoring distances if layout is
29070 suspended, instead do it once layout is resumed
29072 2005-12-22 Peter Dennis Bartok <pbartok@novell.com>
29075 - After many hours of debugging, for both Jackson and
29076 myself, it turns out that it helps to set the parent of a control
29077 if you want to actually see it onscreen. In the spirit of that
29078 discovery, we're now setting the parent of the control and
29079 it's children when the control's handle is created. This fix
29080 will make Lutz Roeder's Reflector run happily.
29081 - now just creating the handle instead of the whole control when
29082 getting a graphics context for the control.
29084 2005-12-22 Peter Dennis Bartok <pbartok@novell.com>
29086 * ScrollableControl.cs: When calculating the canvas, don't consider
29087 the scrollbar widths. Instead, predict if horizontal scrollbar
29088 will affect canvas when deciding on vertical display and vice versa.
29090 2005-12-22 Peter Dennis Bartok <pbartok@novell.com>
29092 * RichTextBox.cs: Set default RTF font for documents that don't
29093 have a font table (Fixes #77076)
29095 2005-12-22 Jackson Harper <jackson@ximian.com>
29097 * TextBoxBase.cs: It's difficult to do, but you can have an empty
29098 clipboard. This prevents a NullRef in that case.
29099 * XplatUIX11.cs: Use CLIPBOARD not PRIMARY for our
29100 clipboard. PRIMARY is for the currently selected text only. (We
29101 should implement PRIMARY at some point.
29103 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
29105 * XplatUIWin32.cs: Fixed the TEXTMETRIC structure, we were calling
29106 a Unicode function with a structure that was defined in Ansi way.
29109 2005-12-21 Jackson Harper <jackson@ximian.com>
29111 * StatusBar.cs: Statusbar handles its fore/back colours on it's
29112 on. Because thats how it rolls. (and this avoids it using ambient
29114 * ThemeWin32Classic.cs: Use the proper back color for filling.
29115 * Menu.cs: Use the system menu bar color for drawing menu
29116 bars. Using the window back color will bring ambient colours into
29119 2005-12-21 Alexander Olk <alex.olk@googlemail.com>
29121 * ColorDialog.cs: Fixed a memory leak that caused a SIGSEV. A lot of
29122 Bitmaps were created and not disposed.
29124 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
29126 * Control.cs (CreateControl): Don't do anything if the control is
29127 already created, otherwise we'd fire the OnCreated event more than
29130 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
29132 * ComboBox.cs (FindStringCaseInsensitive): Don't search for emtpy strings,
29133 will always match. Instead return -1. Fixes #76464.
29135 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
29137 * TextControl.cs (RecalculateLine): Only wrap if the wrap point is
29138 neither the beginning nor the end of the line (Fixes bug #76479)
29140 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
29143 - ControlNativeWindow.ControlFromHandle(): Now handling situation
29144 where handle is invalid
29145 - FromHandle(): Now using hashtable-based ControlFromHandle() lookup
29146 instead of slower linear search
29147 * NativeWindow.cs: Don't remove the window from the hashtable until
29148 after the driver has destroyed it (since the driver might use
29149 Control.FromHandle to lookup the control object
29150 * Hwnd.cs: Added DestroyPending property to track if a window is
29151 already destroyed as far as the driver is concerned and only hasn't
29152 yet notified the control
29154 - Activate(): Check if the window is still valid before using the
29156 - Implemented DestroyChildWindow() method to mark child windows as
29157 destroyed when a window is destroyed. This prevents situations
29158 where we might call an X method based on queued events for a
29159 window that already has been destroyed but we haven't yet pulled
29160 the destroy method from the queue.
29161 - Added a call to the new DestroyChildWindow() method to the drivers
29162 DestroyWindow code. Also now marking the destroyed window itself
29165 2005-12-20 Jackson Harper <jackson@ximian.com>
29168 * StatusBarPanel.cs: Don't calculate panel sizes on draw
29169 anymore. Just do them when needed, also track the rects of panels
29170 so that we can optimize refreshing more in the future.
29172 2005-12-20 Alexander Olk <alex.olk@googlemail.com>
29174 * ColorDialog.cs: Fixed focus drawing in small color controls
29176 2005-12-19 Jackson Harper <jackson@ximian.com>
29178 * InternalWindowManager.cs:
29179 * MdiWindowManager.cs: Cleanup some coordinate system changes so
29180 moving windows works properly.
29182 2005-12-19 Peter Dennis Bartok <pbartok@novell.com>
29185 - Removed call to InitLayout() from SetBoundsCore(); doc says
29186 it's only called when a control is added to a container
29187 - Split InitLayout logic, moved to separate UpdateDistances() method
29188 since we need to perform those calculations more often than just
29189 when adding the control to a container. (Needed to fix #77022)
29190 - Now calling UpdateDistances() from UpdateBounds() (fixes #77022)
29191 - Reduced the OnBindingContextChanged events count, don't send them
29192 unless the control is created, we still aren't totally matching
29193 MS, but I can't quite figure out some of their rules
29195 2005-12-18 Alexander Olk <alex.olk@googlemail.com>
29197 * ThemeClearlooks.cs: Corrected distance between ProgressBar
29200 2005-12-18 Alexander Olk <alex.olk@googlemail.com>
29202 * ThemeClearlooks.cs:
29203 - Updated ProgressBar drawing
29204 - Corrected drawing of ScrollBars and scroll buttons
29205 - Some temporary fixes for minor pixel artefacts
29207 2005-12-18 Peter Dennis Bartok <pbartok@novell.com>
29210 - Reworked Controls.Add(), Controls.Remove() and set_Parent() to
29211 cause events to be sent in the same order as MS does.
29212 - Added ChangeParent() method to trigger various OnXXXChanged events
29213 that need to be fired when a parent changes (This is a reworking
29214 of the patch from r54254, with the X11 errors fixed)
29215 - Removed SuspendLayout()/ResumeLayout() calls from Controls.Clear()
29216 since on MS we get OnLayoutChanged events when calling Clear()
29217 - Changed Enabled property to consider parent state as well, if a
29218 parent is not enabled, the control will not be either
29219 - Changed Parent property to simply call Controls.Add() since that
29220 now does all the work required, this way we avoid code duplication
29221 - Threw in a few OnBindingsContextChanged calls to try and match
29222 when MS sends them. We seem to send a few too many, though.
29223 - Added call to CreateControl when adding the control to a parent.
29224 We were never calling CreateControl. Still needs some work, in
29225 some places we treat HandleCreated and ControlCreated as equal,
29227 - Removed obsolete commented out code from UpdateZOrder()
29229 2005-12-18 Alexander Olk <alex.olk@googlemail.com>
29231 * ThemeClearlooks.cs: Updated TrackBar drawing.
29233 2005-12-17 Alexander Olk <alex.olk@googlemail.com>
29235 * FileDialog.cs: Patch for #76901 by Atsushi Enomoto
29237 2005-12-17 Alexander Olk <alex.olk@googlemail.com>
29239 * FileDialog.cs: Add the Help button and the open readonly
29240 checkbox only if needed
29242 2005-12-16 Jackson Harper <jackson@ximian.com>
29244 * Control.cs: Make sure we have an active menu before trying to
29245 process commands on it. Prevents menu-less forms from crashing
29246 when Alt is pressed.
29247 * TreeNodeCollection.cs: Some fixes to prevent null refs. Patch by
29249 * RichTextBox.cs: Expand statement to help out gmcs and fix the
29252 2005-12-16 Jackson Harper <jackson@ximian.com>
29254 * InternalWindowManager.cs: Don't translate tool windows screen
29255 coordinates. This fixes windows 'bouncing' around when being moved.
29257 2005-12-15 Peter Dennis Bartok <pbartok@novell.com>
29260 - MaxLength now treats 2^31-1 equal to unlimited length (this is
29261 not quite MS compatible, MS uses that number only for single line
29262 and 2^32-1 for multi-line, but I figure it won't hurt keeping
29264 - Now enforcing the MaxLength limit when entering characters
29265 - Added argument to internal Paste() method to track if it's called
29266 from programatically or via keyboard, since keyboard driven pastes
29267 need to enforce max-length
29268 - Added logic to Paste to only paste as many chars as MaxLength
29270 * RichTextBox.cs: Updated to use new obey argument for internal Paste()
29272 - Added Length property to return number of characters in document
29273 - Added private CharCount property which only tracks actual chars
29274 in the document (no linefeeds) and fires event when CharCount
29276 - Added tracking of character count to all methods that alter it
29277 - Added LengthChanged event to allow applications to subscribe
29278 to any changes to the document
29280 2005-12-15 Peter Dennis Bartok <pbartok@novell.com>
29283 - Removed local password_char field (moved to TextBoxBase)
29284 - Now setting the document's password var when password is
29287 - Added password_char field (needed here so MultiLine can
29289 - Added logic to MultiLine property setter to set the document's
29290 variable when password display is allowed
29291 - Removed debug code and made some debug code conditional
29293 - Added RecalculatePasswordLine() method to handle special password
29295 - Added PasswordChar property, also added related tracking vars
29296 - Draw() method now uses local text var for grabbing text to draw,
29297 this var is set to line.text unless we're doing password display,
29298 then it is set to the pre-generated all-password-chars line
29299 - Added calling RecalculatePasswordLine() method for password lines
29301 2005-12-14 Peter Dennis Bartok <pbartok@novell.com>
29304 - Added Reparented property to allow tracking of Window Manager
29305 reparenting actions (which affect X/Y calculations of toplevel
29307 - Made ToString() print window handles in hex
29309 - AddConfigureNotify(): Now uses reparented state off Hwnd to
29310 determine if X/Y needs offsetting
29311 - AddConfigureNotify(): Fixed offset calculations
29312 - Now adds ReparentNotify messages into the queue
29313 - Now processes ReparentNotify messages and causes a
29314 WM_WINDOWPOSCHANGED message to be sent upstream if a window
29315 is reparented (as most likely it's X/Y coordinates are changed
29318 2005-12-14 Jackson Harper <jackson@ximian.com>
29320 * XplatUIX11.cs: Tool windows still need to respek focus.
29322 2005-12-14 Peter Dennis Bartok <pbartok@novell.com>
29324 * Control.cs: Undid 54254 (causing XConfigure errors) so we can
29325 have a working release
29327 2005-12-13 Jackson Harper <jackson@ximian.com>
29329 * Form.cs: Update styles after setting the border style regardless
29330 of whether or not the window is using a window manager.
29332 2005-12-13 Jackson Harper <jackson@ximian.com>
29334 * Form.cs: We now hook into an internal window manager instead of just an
29335 MDI subsystem, this is so we can have properly behaving tool windows.
29336 * MdiClient.cs: Naming change, MdiChildContext is now WindowManager
29337 * InternalWindowManager.cs: New internal class that acts as a
29338 window manager for tool windows and as a base for mdi windows.
29339 * MdiWindowManager.cs: New class that acts as a window manager for
29342 2005-12-12 Jackson Harper <jackson@ximian.com>
29344 * Control.cs: Updates so we match behavoir for for implicit
29345 controls. Fixes explosions in MDI.
29347 2005-12-12 Jackson Harper <jackson@ximian.com>
29349 * Control.cs: Implement Invalidate (Region).
29351 2005-12-12 Peter Dennis Bartok <pbartok@novell.com>
29354 - Changed handling of Controls.Add/Controls.Remove to fire (almost)
29355 the same events as MS does. MS fires events for each property
29356 except, for unknown reasons, Cursor, when the control is reparented.
29357 I can't seem to totally match add/remove since MS also fires some
29358 VisibleChanged events, which makes no sense. Consolidated the
29359 parenting code into a separate method so it can be called from
29360 both Add and Remove. set_Parent no longer needs any special logic
29361 as it calls the parent's add method which implicitly fires
29363 - Removed some obsolete code and debug output
29364 - Enabled state is inherited from parents, if this is enabled
29366 2005-12-08 Peter Dennis Bartok <pbartok@novell.com>
29368 * Form.cs: Removed commented out code
29370 2005-12-08 Peter Dennis Bartok <pbartok@novell.com>
29373 - Added internal version of Invoke, with additional argument
29374 indicating if we're calling it from a Dispose() handler. That
29375 way we can avoid BeginInvoke throwing an exception if we're
29376 calling for an already destroyed window.
29377 - Added a dispose argument to BeginInvokeInternal, and made the
29378 check if a valid window handle chain exists conditional on
29379 it not being a dispose call
29380 - Removed code in DestroyHandle to destroy our children. Since we
29381 now handle the WM_DESTROY message we will catch all our children
29383 - Now calling OnHandleDestroyed from our new WM_DESTROY handler
29385 - Added a field to track the application context of the form.
29386 - No need to set closing variable as response to WM_CLOSE, instead
29387 we destroy the window. We also call PostQuitMessage if the form
29388 has an application context (which makes it the main app form,
29389 which, when closed terminates the app)
29391 - Dropped Exit() method, it's naming was confusing
29392 - Added PostQuitMessage() which causes GetMessage to return false
29393 once the message queue is empty
29394 * XplatUIDriver.cs, XplatUIWin32.cs: Dropped Exit(), added
29396 * XplatUIOSX.cs: Switched signature for Exit method since Exit() is
29397 no longer a valid XplatUI method, but left it in since it's used
29398 internally. Added empty PostQuitMessage() method.
29399 * MenuAPI.cs: Replaced call to Exit() with call to
29400 PostQuitMessage, even though this is probably no longer needed.
29401 * Hwnd.cs: Added 'pretty' ToString() to support debugging.
29402 * X11Structs.cs: Added pretty XEvent.ToString() to support debugging.
29404 - Replaced call to XplatUI.Exit() with PostQuitMessage()
29405 - Removed old debug code that would call XplatUI for exception
29406 display, enabled standard exception handling (Still not enabled
29407 though, until NativeWindow's ExternalExceptionHandler define
29410 - Added internal method to allow control to update NativeWindow
29411 after a window has been destroyed
29412 - Added handling of already destroyed windows when calling i
29414 - Added removal of handle from list on ReleaseHandle
29416 - Dropped GetMessageResult var and related code
29417 - Added PostQuitState to field to track if PostQuitMessage has been
29419 - Dropped Exit() method
29420 - Added PostQuitMessage() method
29421 - GetMessage now will return false if PostQuitState is set and no
29422 more messages are in the queue.
29423 - Expose handler will no longer generate WM_PAINT messages if we are
29424 in PostQuitState since it's very likely any windows have already
29425 been destroyed, and since Hwnd won't get updated until we have
29426 processed the DestroyNotify we'd be causing X errors.
29428 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
29430 * Control.cs(WndProc): Apparently I'm suffering from brain cloud.
29431 Thanks to Mike for pointing out the err of my ways.
29433 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
29435 * Control.cs(PreProcessMessage): Moved menu handling back, but
29436 after all other key handling, to match MS (who handles Menu in
29438 * Menu.cs (WndProc): Removed my brainfart
29440 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
29442 * Control.cs(PreProcessMessage): Removed special menu handling
29443 * Menu.cs (WndProc): Added handling of WM_SYSKEYUP for menu purposes.
29445 2005-12-07 Mike Kestner <mkestner@novell.com>
29447 * Control.cs : special case SYSKEYUP so that we can adjust keynav
29448 state according in tracker.
29449 * Menu.cs : promote tracker field to base class and provide a tracker
29450 lookup capability. Add/Remove shortcuts dynamically if the top menu
29451 has a tracker. Unparent items that are removed from the collection.
29452 * MenuAPI.cs : implement mnemonic, shortcut, and arrow-based keynav.
29453 * Theme*.cs: add always_show_hotkeys field to support configurability
29454 of mnemonic display. win32 doesn't show mnemonics until Alt is
29457 2005-12-07 Jackson Harper <jackson@ximian.com>
29459 * MdiChildContext.cs: Use Control.ResetCursor.
29460 * Control.cs: ResetCursor needs to set the property so that the
29461 correct XplatUI call gets made.
29463 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
29465 * Control.cs: More fixes to make our key events match MS. We
29466 were not setting the modifier state on KeyData, and we were
29467 not generating any events when Alt was pressed with a key
29468 since handling of WM_SYSxxx was missing for the OnKey methods.
29470 2005-12-07 Jackson Harper <jackson@ximian.com>
29472 * MdiChildContext.cs: reenable the sizing code.
29473 - When the mouse leaves a window reset its cursor.
29475 2005-12-07 Alexander Olk <alex.olk@googlemail.com>
29477 * ThemeClearlooks.cs: Reflect latest Hwnd changes
29479 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
29481 * Hwnd.cs: Now using the theme 3d bordersize to calculate
29482 widths of Fixed3D borders
29484 2005-12-07 Jackson Harper <jackson@ximian.com>
29486 * MdiClient.cs: Fix warnings. Earn Mike's love.
29488 2005-12-07 Alexander Olk <alex.olk@googlemail.com>
29490 * ThemeClearlooks.cs:
29491 - Adjusted mouse over button color
29492 - Added first parts of CheckBox drawing
29493 - Added correct color for selected text background
29494 - Fixed ComboBox drawing
29495 - Added CPDrawBorder3D and CPDrawBorder
29497 2005-12-06 Peter Dennis Bartok <pbartok@novell.com>
29499 * XplatUIX11.cs: Added call to XBell for AudibleAlert
29501 2005-12-06 Peter Dennis Bartok <pbartok@novell.com>
29503 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
29504 XplatUIOSX.cs: Added AudibleAlert() method to have a means to
29505 alert users via sound. We could add an enum arg with different
29506 types of alerts in the future
29508 2005-12-06 Peter Dennis Bartok <pbartok@novell.com>
29510 * Control.cs: Fix behaviour problems pointed out by Mike
29512 2005-12-05 Mike Kestner <mkestner@novell.com>
29514 * StatusBarPanel.cs: add Invalidate method and hook it into all the
29515 prop setters. Calls parent.Refresh for now, but could be maybe be
29516 optimized with an internal method on StatusBar at some point.
29519 2005-12-05 Peter Dennis Bartok <pbartok@novell.com>
29521 * RichTextBox.cs: Implemented get_SelectionColor
29523 2005-12-05 Alexander Olk <alex.olk@googlemail.com>
29525 * ThemeClearlooks.cs:
29526 - Removed dead code
29527 - Draw black button border only if button is Form.AcceptButton
29528 - Draw correct button color for pressed RadioButton if the mouse
29529 has entered the button
29530 - Updated ProgressBar drawing!
29531 - Updated CPDrawSizeGrip drawing
29532 - Updated StatusBarPanel drawing
29534 2005-12-05 Mike Kestner <mkestner@novell.com>
29536 * Control.cs (PreProcessMessage): add Keys.Alt based on LParam value.
29537 * X11Keyboard.cs (SendKeyboardInput): formal lParam for alt mod.
29539 2005-12-04 Alexander Olk <alex.olk@googlemail.com>
29541 * ThemeClearlooks.cs: Initial check-in, activate with
29542 export MONO_THEME=clearlooks
29543 * ThemeEngine.cs: Added ThemeClearlooks
29545 2005-12-03 Mike Kestner <mkestner@novell.com>
29547 * MenuAPI.cs: deactivate menus prior to calling item.PerformClick.
29550 2005-12-02 Jackson Harper <jackson@ximian.com>
29552 * Form.cs: If the child form has no menu the default main menu is
29553 used as the active menu.
29555 2005-12-02 Peter Dennis Bartok <pbartok@novell.com>
29557 * ListBox.cs: Check if any items exist before trying to resolve
29558 coordinates into items
29560 2005-12-02 Peter Dennis Bartok <pbartok@novell.com>
29562 * ThemeWin32Classic.cs: Hatchbrush on Win32 seems to always use white
29563 as the second color for the background hatch
29565 2005-12-02 Peter Dennis Bartok <pbartok@novell.com>
29567 * TextBoxBase.cs: Now uses Jackson's new and improved ImplicitScrollbar
29568 * RichTextBox.cs: FormatText position arguments are 1-based, now making
29569 sure that what we pass to FormatText is always 1-based. Fixes #76885
29571 2005-11-29 Miguel de Icaza <miguel@novell.com>
29573 * NumericUpDown.cs (EndInit): When we are done initializing,
29574 reflect any updates on the UI.
29576 2005-12-02 Jackson Harper <jackson@ximian.com>
29578 * ImplicitHScrollBar.cs:
29579 * ImplicitVScrollBar.cs: New scrollbars that don't take focus from
29580 their container controls.
29581 * TreeView.cs: Use the new implicit scrollbars.
29583 2005-12-02 Jackson Harper <jackson@ximian.com>
29585 * TreeView.cs: Make top_node internal so the TreeNodeCollections
29587 * TreeNodeCollection.cs: If we remove the topnode we need to
29588 update topnode to the next node in line.
29589 - When clearing nodes go through the same process as removing
29590 them, so they get depareneted and checked if they are top node.
29592 2005-12-01 Jackson Harper <jackson@ximian.com>
29594 * TreeView.cs: When imagelists are used the image area is
29595 selectable as well as the text.
29596 - If there are no selected nodes select the first one.
29597 * TreeNodeCollection.cs: Getting the TreeView is mildly expensive,
29598 so don't do it more then we need to.
29600 2005-12-01 Jackson Harper <jackson@ximian.com>
29602 * ThemeWin32Classic.cs: Reimplement the scroll arrow drawing so
29603 that arrows can be scaled.
29605 2005-12-01 Jackson Harper <jackson@ximian.com>
29607 * TreeNode.cs : Fixed bugs that caused FullPathTest + Traverse to
29608 fail. Patch by Dieter Bremes
29610 2005-11-30 Jackson Harper <jackson@ximian.com>
29612 * Form.cs: Property is 2.0 only
29613 * PrintDialog.cs: Signature fix.
29615 2005-11-30 Peter Dennis Bartok <pbartok@novell.com>
29618 - No longer artificially moves text 2 pixels down (now that we have
29619 borders this is no longer needed)
29620 - Added calcs for left, hanging and right indent
29622 2005-11-23 Mike Kestner <mkestner@novell.com>
29624 * Menu.cs: mark MenuChanged internal, since it's not exposed by MS.
29626 2005-11-30 Jackson Harper <jackson@ximian.com>
29628 * MdiChildContext.cs: Set the cloned menus forms, as these don't
29629 get cloned as part of CloneMenu ().
29630 * Menu.cs: Make sure the parent of the items get set correctly
29631 when they are added. And the owners are notified of the changes.
29632 * Form.cs: Create an ActiveMenu property, so that when MDI is used
29633 we can change the menu being displayed/handled by the form without
29634 changing the menu assosciated with the form.
29635 - Don't let Mdi children draw/handle menus.
29637 2005-11-30 Jackson Harper <jackson@ximian.com>
29639 * Menu.cs: Switch the MenuChanged method to OnMenuChanged and add
29640 a MenuChanged event. Just to make the API a little more
29643 * MenuItem.cs: Use the new OnMenuChanged
29644 * MdiChildContext.cs: Handle menu merging.
29645 * Form.cs: Implement MergedMenu.
29647 2005-11-30 Jackson Harper <jackson@ximian.com>
29649 * Menu.cs: We were misusing Add. Add goes behind the specified
29650 index according to the docs, and does not replace the specified
29651 index. So I added an Insert method.
29653 2005-11-30 Peter Dennis Bartok <pbartok@novell.com>
29655 * TextBoxBase.cs: Implemented Ctrl-Ins (Copy), Shift-Ins (Paste) and
29656 Shift-Del (Cut), apparently Emacs uses these old Win 2.x keys. This
29658 * RichTextBox.cs: Added calls to base for DnD events
29660 2005-11-28 Peter Dennis Bartok <pbartok@novell.com>
29663 - Fixed drag-selection related crash; style fixes
29664 - Implemented undo class
29665 o Implemented method to capture document state for specified
29666 range in document tree
29667 o Implemented method to restore captured document state
29668 o Implemented cursor tracking
29669 o Implemented basic undo stack
29670 - Added undo cursor tracking to methods altering cursor location
29671 - Added undo tracking to selection deletion (still missing
29672 other text-altering hookups)
29674 - Added SelectionLength property
29675 - Implemented CanPaste()
29676 - Implemented Paste()
29677 - Added missing protected methods
29678 - Fixed RTF->Document conversion; now uses font index 0 and color
29679 index 0 as the default font for the parsed text
29680 - Fixed RTF<->Document font size translation
29681 - Fixed RTF generation, now properly handles cross-tag boundaries
29682 for single line selection
29683 - No longer always appends blank line to generated RTF
29685 - Added missing attributes
29686 - Hooked up undo-related methods
29688 - Implemented Copy()
29689 - Implemented Paste()
29690 - Implemented Cut()
29691 - Fixed caret mis-behaviour on backspace across line-boundaries
29693 2005-11-29 Jackson Harper <jackson@ximian.com>
29695 * MdiClient.cs: Add a method for activating mdi children. Very
29696 basic right now. I imagine someday it might need more girth.
29697 * MenuItem.cs: Implement MDI lists. When mdilist is true the mdi
29698 children windows names are added to the menu item.
29699 * ThemeWin32Classic.cs: Draw the arrow if the item is an
29700 mdilist. This happens regardless of whether or not there are any
29701 mdi windows to see in the list, and according to my tests happens
29702 before the items are even added. Also happens if there isn't even
29703 an mdi client to get windows from.
29705 2005-11-29 Alexander Olk <alex.olk@googlemail.com>
29707 * ThemeWin32Classic.cs: Make DrawFlatStyleRadioButton protected
29708 * ThemeNice.cs: Fix drawing of flatstyle radiobuttons
29710 2005-11-29 Jordi Mas i Hernandez <jordimash@gmail.com>
29712 * DataGridTableStyle.cs:
29713 - Create always the styles for the missing columns even if they are
29714 provided by the user (not default table style)
29717 - Fixes SetDataBinding (always re-attach source)
29718 - Fixes SetNewDataSource (only clear styles if they are not for
29720 - Expands OnTableStylesCollectionChanged to handle style refresh
29721 and remove properly
29723 2005-11-29 Jackson Harper <jackson@ximian.com>
29725 * FileDialog.cs: Implement missing bits, remove some dead
29727 * FontDialog.cs: Implement missing Apply stuff, and ToString. Move
29728 creation of the panel so that the options set on the dialog are
29729 seen when the panel is created.
29730 * TreeView.cs: raise a click when items are clicked.
29732 2005-11-29 Jackson Harper <jackson@ximian.com>
29734 * MdiClient.cs: Pass some signature methods through to base.
29736 2005-11-28 Jackson Harper <jackson@ximian.com>
29738 * ListView.cs: Raise the click event when items are clicked.
29740 2005-11-28 Jackson Harper <jackson@ximian.com>
29742 * MdiClient.cs: Make this algorithm even more beautiful. And fix
29745 2005-11-27 Alexander Olk <alex.olk@googlemail.com>
29747 * ThemeNice.cs: - Removed 1 pixel bitmaps
29748 - Use SmoothingMode.AntiAlias where it makes sense
29749 (ScrollButton arrow for example)
29750 - Enhanced Button focus drawing
29751 - Fixed ComboBox drawing (no artefacts anymore, focus
29752 rectangle is back again, reduced size of ComboButton, etc.)
29753 - Fixed RadioButton focus drawing for Appearence.Button
29754 - Slight ScrollButton redesign
29755 - Some LinearGradientBrush size fixes
29756 - GroupBoxes have now rounded edges
29757 - Fixed StatusBar drawing
29759 2005-11-25 Alexander Olk <alex.olk@googlemail.com>
29761 * ThemeNice.cs: - Remove dead code
29762 - use correct background colors for menus, etc.
29763 - Fake pixel drawing with 1 pixel bitmaps
29765 2005-11-24 Jackson Harper <jackson@ximian.com>
29767 * MdiClient.cs: Size the scrollbars when resizing the window.
29768 - Resize the maximized windows when the client is resized
29769 * Form.cs: Make the child context available
29771 2005-11-23 Jackson Harper <jackson@ximian.com>
29773 * MdiChildContext.cs: Don't size windows if they are maximized.
29775 2005-11-23 Mike Kestner <mkestner@novell.com>
29777 * ContextMenu.cs: use MenuTracker.
29778 * Control.cs: remove menu handle usage.
29779 * Form.cs: remove menu handle usage.
29780 * Hwnd.cs: remove menu handle usage.
29781 * MainMenu.cs: Draw method moved here from MenuAPI.DrawMenuBar. Proxy
29782 motion and clicks to the new Tracker handlers.
29783 * Menu.cs: add sizing accessors, SelectedItem prop, kill CreateItems
29785 * MenuAPI.cs: refactored to combine popup and menubar event handling.
29786 Killed the MENU and MENUITEM data types and associated collections
29787 since we now keep the info on Menu and MenuItem. Expanded TRACKER into
29788 MenuTracker class that exposes the leftovers from the old MenuAPI
29789 static methods. Restructured Capture handling so that only one grab is
29790 done for the entire menu hierarchy instead of handing off grabs to
29791 submenus. Tracker now has an invisible control to Capture when active.
29792 * MenuItem.cs: add sizing accessors, kill Create
29794 * Theme.cs: remove menu handle and MENU(ITEM) usage.
29795 * ThemeWin32Classic.cs: use Menu/MenuItem sizing props instead of
29796 MENU(ITEM). remove menu handle usage, use Menu directly.
29797 * XplatUIDriver.cs: remove menu handle usage.
29798 * XplatUIOSX.cs: remove menu handle usage.
29799 * XplatUIWin32.cs: remove menu handle usage.
29800 * XplatUIX11.cs: remove menu handle usage.
29802 2005-11-22 Jackson Harper <jackson@ximian.com>
29804 * Hwnd.cs: Don't compute the menu size for
29805 DefaultClientRectangle.
29806 - Reenable menu sizes being computed for GetClienRectangle.
29807 * Form.cs: Remove comment of trechery
29809 2005-11-22 Jackson Harper <jackson@ximian.com>
29811 * Hwnd.cs: The adjustments for the menu bar are made when it is
29812 attached to the form.
29814 2005-11-19 Jackson Harper <jackson@ximian.com>
29816 * XplatUIX11.cs: Create an HGRN of the invalid area for WM_NCPAINT
29817 (just like on windows).
29819 2005-11-19 Jackson Harper <jackson@ximian.com>
29821 * MdiChildContext.cs: Handle all the buttons ourselves. We can't
29822 use real buttons anymore because they are in non client area. The
29823 one TODO here is that I need to somehow invalidate a section of
29824 the non client area.
29826 2005-11-18 Jackson Harper <jackson@ximian.com>
29828 * Control.cs: Put the enum check back in now that MDI doesnt have
29829 to use this to set border styles.
29830 * Form.cs: Only set mdi child windows borders if the handle has
29832 * MdiChildContext.cs: Don't set the InternalBorderStyle, just pass
29833 this directly on to the driver.
29834 - Get the move start position before adjusting for the titlebar
29835 height, this fixes the windows "skipping" when they are first
29838 2005-11-18 Jackson Harper <jackson@ximian.com>
29840 * XplatUIX11.cs: Just compute the mdi borders separately as they
29841 don't totally match up with normal form borders.
29843 2005-11-18 Jackson Harper <jackson@ximian.com>
29845 * Control.cs: Set WS_ styles for borders, so that the driver does
29846 not have to retrieve the control instance to figure out what kind
29847 of borders it should have.
29848 * Form.cs: Set the WS_EX_MDICHILD flag on mdi children, so the
29849 driver can know its an mdi child easily.
29850 * XplatUIX11.cs: Get the border styles and whether the window is
29851 MDI from the Styles and ExStyles params instead of having to get a
29852 control. This prevents a chicken and egg problem.
29854 2005-11-18 Jackson Harper <jackson@ximian.com>
29856 * MdiClient.cs: Fix typo so scrollbars show up correctly.
29858 2005-11-18 Jackson Harper <jackson@ximian.com>
29860 * MdiClient.cs: Calculate when to add and remove scrollbars
29862 * MdiChildContext.cs: Adjust the y position to take the titlebar
29864 - No height for FormBorderStyle.None
29866 2005-11-18 Jackson Harper <jackson@ximian.com>
29868 * Control.cs: Allow non enum values to be used for
29869 InternalBorderStyle. MDI does this to set a special border style.
29870 - New utility methods for converting points to/from client coords
29871 - Add the newly created control to the Controls collection before
29872 updating its style. This way UpdateStyle can walk the control
29873 heirarchy to find the control if needed.
29874 so I don't need to create a new Point object all the time.
29875 * Form.cs: Let MDI windows handle their border styles.
29876 - Set styles on MDI windows so the correct title style is derived.
29877 * MdiChildContext.cs: Move all the painting and window handling
29878 into the non client area.
29879 - Use correct sizing and put correct buttons on frames based on
29880 the FormBorderStyle.
29881 - Notify the mdi client about scrolling
29882 - Need to handle the buttons ourselves now, because they are all
29883 in non client areas and we can't add controls there.
29884 * MdiClient.cs: Halfway to scrolling, this implementation is
29885 somewhat broken though, we need to check to make sure other
29886 windows aren't causing scrolling before removing the bars. Also
29887 the bars need to be drawn on top, maybe I can switch implicit
29888 controls to be on top.
29889 * Hwnd.cs: caption_height and tool_caption_height are now
29890 properties of an hwnd, this way they can be set by the driver
29891 based on the type of window they are. In X11 the window manager
29892 handles the decorations so caption_height is zero unless its an
29894 - Add 3 pixel borders for MDI windows (0xFFFF).
29895 - Get rid of some code duplication, have DefaultClientRectanle
29896 just call GetClientRectangle.
29897 * XplatUIX11.cs: Pass caption_height and tool_caption_height to
29899 - Set border styles differently for mdi windows.
29900 * XplatUIOSX.cs: Pass caption_height and tool_caption_height to
29903 2005-11-15 Mike Kestner <mkestner@novell.com>
29905 * Menu.cs: when adding an item to the collection, if item is already
29906 parented, remove it from the parent.
29908 2005-11-13 Alexander Olk <alex.olk@googlemail.com>
29910 * X11DesktopColors.cs: Added KDE support
29912 2005-11-11 Peter Dennis Bartok <pbartok@novell.com>
29915 - Clipboard methods now can translate Rtf format
29916 - No longer removes clipboard contents whenever a new format is added
29917 to allow placing multiple formats on the clipboard
29918 * Clipboard.cs: Clipboard now supports getting a IDataObject and
29919 will place all formats contained in it onto the clipboard. Also
29920 now cleans the clipboard before placing a new object onto it
29922 - Implemented set_Rtf
29923 - Implemented set_SelectedRtf
29924 - Created InsertRTFFromStream() method to allow single code base
29925 for all properties and methods that insert RTF into document
29926 - Removed debug output
29928 - Fixed Delete(int) to fix up line numbers
29929 - Fixed ReplaceSelection to combine start and end line
29930 - Fixed serious DeleteChars bug that would leave the document tree
29932 - Improved DumpTree with several logic checks to detect broken
29934 - Removed debug lines
29935 - Fixed Caret.WordForward/WordBack moving code, now always also
29936 updates caret.tag (fixes crash when word-selecting across tag
29937 boundaries via keyboard)
29938 - Added Insert() method for inserting multiline text into documents
29939 - Fixed DeleteChars() calculation errors that would cause a broken
29940 tag chain with multiple tag lines
29941 - DeleteChars() no longer crashes on multi-tag lines if not all tags
29942 - Split() no longer moves caret if split is at caret location
29943 - ReplaceSelection() now updates the cursor and re-displays it
29944 - ReplaceSelection() now uses new Insert() method to avoid code
29946 - FormatText() can now handle formatting partial lines
29948 - Append now uses new TextControl.Insert() method (this avoids
29950 - Implemented Ctrl-X (Cut) (
29951 - Implemented Ctrl-C (Copy)
29952 - Implemented Ctrl-V (Paste) (Still some bugs related to screen
29953 regeneration when pasting text; roundtripping Copy&Paste within
29954 edit control still fails due to some calculation bugs in GenerateRTF)
29955 - The Delete key will now remove the current selection if it is visible
29956 * TextBox.cs: Removed debug lines
29957 * XplatUI.cs: Trigger initialization of DataFormats (which requires the
29958 driver to be initialized and can't therefore be done via a static ctor)
29960 2005-11-10 Peter Dennis Bartok <pbartok@novell.com>
29962 * TextControl.cs: Added backend code for finding char arrays and strings
29964 - Added mouse wheel scroll support
29965 - Added support for VScroll and HScroll events
29967 - Implemented all seven Find() variants
29968 - Implemented GetCharFromPosition()
29969 - Implemented GetCharIndexFromPosition()
29970 - Implemented GetLineFromIndex()
29971 - Implemented GetPositionFromCharIndex();
29972 - Implemented SaveFile for PlainText and UnicodeText
29973 - Fixed set_Font, now setting a new font applies that font to
29975 - Implemented generic Document to RTF converter
29976 - Implemented SaveFile for RichText format (still missing unicode
29977 conversion for non-ansi chars)
29978 - Implemented get_Rtf
29979 - Implemented get_SelectedRtf
29981 2005-11-09 Peter Dennis Bartok <pbartok@novell.com>
29983 * Control.cs (WndProc): Call HandleClick after having sent OnMouseUp
29984 to allow any captures to be released before triggering OnClick. This
29985 way a click handler may capture the mouse without interference.
29986 * XplatUIX11.cs: Always send mouse messages to grab window if one exists.
29987 This way we send them even though X may not allow a grab (if the window
29988 isn't visible, for example)
29990 2005-11-08 Pedro Martinez Julia <pedromj@gmail.com>
29992 * DataGridViewRowEventArgs.cs: DataGridView implementation
29993 * DataGridViewElement.cs: DataGridView implementation
29994 * DataGridViewComboBoxCell.cs: DataGridView implementation
29995 * DataGridViewDataErrorContexts.cs: DataGridView implementation
29996 * DataGridViewCellErrorTextNeededEventArgs.cs: DataGridView implementation
29997 * DataGridViewColumnHeadersHeightSizeMode.cs: DataGridView implementation
29998 * ImageLayout.cs: DataGridView implementation
29999 * DataGridViewComboBoxColumn.cs: DataGridView implementation
30000 * DataGridViewCellMouseEventHandler.cs: DataGridView implementation
30001 * DataGridViewSelectionMode.cs: DataGridView implementation
30002 * IDataGridViewEditingControl.cs: DataGridView implementation
30003 * DataGridViewSortCompareEventHandler.cs: DataGridView implementation
30004 * DataGridViewCellStyleContentChangedEventHandler.cs: DataGridView implementation
30005 * DataGridViewAutoSizeModeEventHandler.cs: DataGridView implementation
30006 * DataGridViewColumnStateChangedEventHandler.cs: DataGridView implementation
30007 * DataGridViewColumnSortMode.cs: DataGridView implementation
30008 * DataGridView.cs: DataGridView implementation
30009 * DataGridViewRowStateChangedEventHandler.cs: DataGridView implementation
30010 * DataGridViewRowPostPaintEventArgs.cs: DataGridView implementation
30011 * DataGridViewDataErrorEventArgs.cs: DataGridView implementation
30012 * Padding.cs: DataGridView implementation
30013 * DataGridViewCellParsingEventArgs.cs: DataGridView implementation
30014 * DataGridViewCellStateChangedEventHandler.cs: DataGridView implementation
30015 * DataGridViewRowEventHandler.cs: DataGridView implementation
30016 * DataGridViewCellPaintingEventHandler.cs: DataGridView implementation
30017 * DataGridViewCellFormattingEventHandler.cs: DataGridView implementation
30018 * DataGridViewButtonCell.cs: DataGridView implementation
30019 * DataGridViewCellStyleContentChangedEventArgs.cs: DataGridView implementation
30020 * DataGridViewEditMode.cs: DataGridView implementation
30021 * DataGridViewCellValueEventArgs.cs: DataGridView implementation
30022 * DataGridViewRowCancelEventArgs.cs: DataGridView implementation
30023 * DataGridViewRowHeadersWidthSizeMode.cs: DataGridView implementation
30024 * DataGridViewCheckBoxColumn.cs: DataGridView implementation
30025 * DataGridViewCellToolTipTextNeededEventHandler.cs: DataGridView implementation
30026 * DataGridViewAutoSizeColumnsMode.cs: DataGridView implementation
30027 * DataGridViewCellEventHandler.cs: DataGridView implementation
30028 * DataGridViewEditingControlShowingEventHandler.cs: DataGridView implementation
30029 * DataGridViewCellStyleConverter.cs: DataGridView implementation
30030 * DataGridViewSelectedRowCollection.cs: DataGridView implementation
30031 * DataGridViewBindingCompleteEventHandler.cs: DataGridView implementation
30032 * DataGridViewColumnEventArgs.cs: DataGridView implementation
30033 * DataGridViewRowHeightInfoPushedEventHandler.cs: DataGridView implementation
30034 * DataGridViewRowContextMenuStripNeededEventHandler.cs: DataGridView implementation
30035 * QuestionEventArgs.cs: DataGridView implementation
30036 * IDataGridViewEditingCell.cs: DataGridView implementation
30037 * DataGridViewTriState.cs: DataGridView implementation
30038 * DataGridViewColumnDesignTimeVisibleAttribute.cs: DataGridView implementation
30039 * DataGridViewCellStateChangedEventArgs.cs: DataGridView implementation
30040 * DataGridViewColumnCollection.cs: DataGridView implementation
30041 * DataGridViewCellValueEventHandler.cs: DataGridView implementation
30042 * DataGridViewRowDividerDoubleClickEventHandler.cs: DataGridView implementation
30043 * DataGridViewCellFormattingEventArgs.cs: DataGridView implementation
30044 * DataGridViewColumn.cs: DataGridView implementation
30045 * DataGridViewCellBorderStyle.cs: DataGridView implementation
30046 * DataGridViewCellContextMenuStripNeededEventHandler.cs: DataGridView implementation
30047 * DataGridViewCellValidatingEventArgs.cs: DataGridView implementation
30048 * DataGridViewRow.cs: DataGridView implementation
30049 * DataGridViewImageCellLayout.cs: DataGridView implementation
30050 * DataGridViewImageCell.cs: DataGridView implementation
30051 * DataGridViewTopLeftHeaderCell.cs: DataGridView implementation
30052 * DataGridViewCheckBoxCell.cs: DataGridView implementation
30053 * DataGridViewHeaderCell.cs: DataGridView implementation
30054 * DataGridViewCellErrorTextNeededEventHandler.cs: DataGridView implementation
30055 * DataGridViewRowHeightInfoPushedEventArgs.cs: DataGridView implementation
30056 * DataGridViewAutoSizeColumnsModeEventHandler.cs: DataGridView implementation
30057 * DataGridViewTextBoxColumn.cs: DataGridView implementation
30058 * QuestionEventHandler.cs: DataGridView implementation
30059 * DataGridViewCellStyleScopes.cs: DataGridView implementation
30060 * DataGridViewSortCompareEventArgs.cs: DataGridView implementation
30061 * DataGridViewCellContextMenuStripNeededEventArgs.cs: DataGridView implementation
30062 * DataGridViewCell.cs: DataGridView implementation
30063 * DataGridViewCellEventArgs.cs: DataGridView implementation
30064 * DataGridViewClipboardCopyMode.cs: DataGridView implementation
30065 * DataGridViewCellStyle.cs: DataGridView implementation
30066 * DataGridViewColumnHeaderCell.cs: DataGridView implementation
30067 * DataGridViewRowPrePaintEventHandler.cs: DataGridView implementation
30068 * DataGridViewRowCancelEventHandler.cs: DataGridView implementation
30069 * TextFormatFlags.cs: DataGridView implementation
30070 * DataGridViewCellToolTipTextNeededEventArgs.cs: DataGridView implementation
30071 * DataGridViewDataErrorEventHandler.cs: DataGridView implementation
30072 * DataGridViewAdvancedCellBorderStyle.cs: DataGridView implementation
30073 * DataGridViewCellPaintingEventArgs.cs: DataGridView implementation
30074 * DataGridViewButtonColumn.cs: DataGridView implementation
30075 * DataGridViewRowsRemovedEventArgs.cs: DataGridView implementation
30076 * HandledMouseEventArgs.cs: DataGridView implementation
30077 * DataGridViewCellParsingEventHandler.cs: DataGridView implementation
30078 * DataGridViewColumnDividerDoubleClickEventHandler.cs: DataGridView implementation
30079 * DataGridViewCellMouseEventArgs.cs: DataGridView implementation
30080 * DataGridViewAutoSizeRowsMode.cs: DataGridView implementation
30081 * DataGridViewRowCollection.cs: DataGridView implementation
30082 * DataGridViewAdvancedBorderStyle.cs: DataGridView implementation
30083 * DataGridViewCellCancelEventHandler.cs: DataGridView implementation
30084 * DataGridViewHitTestType.cs: DataGridView implementation
30085 * DataGridViewAutoSizeModeEventArgs.cs: DataGridView implementation
30086 * DataGridViewColumnStateChangedEventArgs.cs: DataGridView implementation
30087 * DataGridViewColumnEventHandler.cs: DataGridView implementation
30088 * DataGridViewRowDividerDoubleClickEventArgs.cs: DataGridView implementation
30089 * DataGridViewAutoSizeRowMode.cs: DataGridView implementation
30090 * DataGridViewRowHeightInfoNeededEventArgs.cs: DataGridView implementation
30091 * DataGridViewRowsDeletedEventArgs.cs: DataGridView implementation
30092 * DataGridViewTextBoxEditingControl.cs: DataGridView implementation
30093 * DataGridViewContentAlignment.cs: DataGridView implementation
30094 * DataGridViewRowPostPaintEventHandler.cs: DataGridView implementation
30095 * DataGridViewComboBoxEditingControl.cs: DataGridView implementation
30096 * DataGridViewCellValidatingEventHandler.cs: DataGridView implementation
30097 * DataGridViewSelectedColumnCollection.cs: DataGridView implementation
30098 * DataGridViewPaintParts.cs: DataGridView implementation
30099 * DataGridViewCellCollection.cs: DataGridView implementation
30100 * DataGridViewRowsAddedEventArgs.cs: DataGridView implementation
30101 * DataGridViewImageColumn.cs: DataGridView implementation
30102 * DataGridViewRowsRemovedEventHandler.cs: DataGridView implementation
30103 * DataGridViewElementStates.cs: DataGridView implementation
30104 * DataGridViewRowHeightInfoNeededEventHandler.cs: DataGridView implementation
30105 * DataGridViewColumnDividerDoubleClickEventArgs.cs: DataGridView implementation
30106 * DataGridViewRowPrePaintEventArgs.cs: DataGridView implementation
30107 * DataGridViewRowStateChangedEventArgs.cs: DataGridView implementation
30108 * DataGridViewEditingControlShowingEventArgs.cs: DataGridView implementation
30109 * DataGridViewCellCancelEventArgs.cs: DataGridView implementation
30110 * DataGridViewRowHeaderCell.cs: DataGridView implementation
30111 * DataGridViewBindingCompleteEventArgs.cs: DataGridView implementation
30112 * DataGridViewTextBoxCell.cs: DataGridView implementation
30113 * DataGridViewBand.cs: DataGridView implementation
30114 * DataGridViewAutoSizeColumnModeEventArgs.cs: DataGridView implementation
30115 * DataGridViewHeaderBorderStyle.cs: DataGridView implementation
30116 * DataGridViewRowsAddedEventHandler.cs: DataGridView implementation
30117 * DataGridViewAutoSizeColumnMode.cs: DataGridView implementation
30118 * DataGridViewAutoSizeColumnModeEventHandler.cs: DataGridView implementation
30119 * DataGridViewAutoSizeColumnsModeEventArgs.cs: DataGridView implementation
30120 * DataGridViewRowErrorTextNeededEventHandler.cs: DataGridView implementation
30121 * DataGridViewSelectedCellCollection.cs: DataGridView implementation
30122 * DataGridViewRowContextMenuStripNeededEventArgs.cs: DataGridView implementation
30123 * DataGridViewRowErrorTextNeededEventArgs.cs: DataGridView implementation
30124 * DataGridViewComboBoxDisplayStyle.cs: DataGridView implementation
30126 2005-11-08 Peter Dennis Bartok <pbartok@novell.com>
30128 * ThemeWin32Classic.cs:
30129 - Draw the outside focus rectangle around buttons
30130 - Use CPDrawFocusRectangle to draw focus rectangles until Cairo
30131 doesn't use end caps for every dash of a line anymore. This
30132 workaround ignores the forecolor.
30134 2005-11-08 Kornél Pál <kornelpal@hotmail.com>
30136 * ImageList.cs: Don't use ArgbColor with LayoutKind.Explicit as it isn't
30139 2005-11-07 Jackson Harper <jackson@ximian.com>
30141 * X11Dnd.cs: Set the X/Y positions on the DragEventArgs correctly.
30143 2005-11-07 Jackson Harper <jackson@ximian.com>
30145 * ScrollableControl.cs: Calculate the maximum and change vars
30146 (more) correctly so that scrollbars appear as a sensible size.
30148 2005-11-04 Jackson Harper <jackson@ximian.com>
30150 * TreeNodeCollection.cs: Refresh when nodes are cleared from the
30152 * TreeView.cs: When the tree is sorted null out the top_node so
30153 that it is recalculated.
30154 - Use dotted lines instead of dashed lines to match MS better.
30156 2005-11-04 Jordi Mas i Hernandez <jordimash@gmail.com>
30159 - Implements key search for items. Useful when browsing files with FileDialog
30160 - When changing view mode or when clear the items reset scrollbar positions
30162 2005-11-04 Jackson Harper <jackson@ximian.com>
30164 * CurrencyManager.cs: Implement the MetaDataChanged event, the
30165 Reset method, and the CheckEmpty. CheckEmpty is just a total guess
30166 as to what the method may do as there is no real way of creating a
30167 derived CurrencyManager and calling the method.
30169 2005-11-03 Jackson Harper <jackson@ximian.com>
30171 * ThemeWin32Classic.cs: Implement ownerdrawing in the tab control
30172 * TabControl.cs: Add Ownerdrawing bits, add the UpdateTabSelection
30173 method which seems to just be used internally to refresh the tabs.
30175 2005-11-03 Jackson Harper <jackson@ximian.com>
30177 * TabControl.cs: Implement the remove method. Fix some broken
30180 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
30182 * DateTimePicker.cs:
30183 - Added missing DateTimePickerAccessibleObject class
30184 - Added missing events
30185 - Added OnFontChanged method
30186 * Form.cs: Added missing attributes
30187 * TreeView.cs: Added missing attributes
30189 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
30191 * GridItemCollection.cs: Fix signatures
30193 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
30195 * XplatUI.cs: Updated build rev/date
30196 * ComboBox.cs, DataGridTextBoxColumn.cs Control.cs,
30197 DataGridTableStyle.cs, DataGrid.cs, DateTimePicker.cs: Signature fixes
30198 * Application.cs: Trigger context-specific ExitThread events
30200 2005-11-03 Jackson Harper <jackson@ximian.com>
30204 * GridTableStylesCollection.cs:
30209 * MonthCalendar.cs: Signature fixes
30211 2005-11-03 Jackson Harper <jackson@ximian.com>
30213 * TreeNodeCollection.cs: Remove should not be virtual.
30214 * TreeView.cs: Implement the last of the missing methods.
30216 2005-11-03 Jackson Harper <jackson@ximian.com>
30218 * TreeNodeConverter.cs: Implement to get off my class-status back.
30220 2005-11-03 Jackson Harper <jackson@ximian.com>
30222 * TreeView.cs: Hookup the bits for drag and drop.
30223 * TreeNode.cs: Don't cache the tree_view or index anymore, now
30224 that nodes can be moved from tree to tree easily this just causes
30225 all sorts of problems.
30226 * TreeNodeCollection: Don't need to give treenodes an index and
30227 treeview anymore when they are added, these are computed on the
30228 fly. Also make sure to remove a node before its added.
30230 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
30233 - Added CaretSelection enum
30234 - Added comparison methods to Marker struct, makes selection code
30236 - Added SelectionStart and SelectionEnd as 'moveable' location for
30237 the CaretDirection enum and handler
30238 - Added selection_prev variable to track optimized invalidation for
30239 word and line selection
30240 - Added SelectionVisible property (returns true if there is a valid
30242 - Switched CaretHasFocus to only display the caret if there is no
30244 - Avoiding StringBuilder.ToString to retrieve a single char, instead
30245 using the direct character index; should be much faster
30246 - Added various conditional debug statements
30247 - Fixed invalidation calculation for selection ranges
30248 - Added ExpandSelection() method to support word and line selection
30249 - Switched SetSelectionToCaret to use new Marker compare overloads
30250 - Added central IsWordSeparator() method to determine word
30251 separators/whitespace and FindWordSeparator() to streamline common
30252 usage of IsWordSeparator()
30254 - Removed unneeded grabbed variable, it was just mirroring
30256 - No longer firing OnTextChanged event when Text setter is called,
30257 since the base will fire the event for us
30258 - Added handling of Ctrl-Up/Down selection
30259 - Added handling of Shift-Cursorkey selection
30260 - Added handling for Ctrl-Delete and Ctrl-Backspace to remove
30262 - Added handling of Shift and Ctrl-Shift-Home/End selection
30263 - Removed some debug output
30264 - Added handling for single/double/tripple-click to place caret/
30265 select word/select line respectively (Fixes bug #76031)
30266 - Added support for drag expansion of word/line selection
30267 * RichTextBox.cs: Handle GotFocus event to trigger redrawing of
30270 2005-11-02 Jackson Harper <jackson@ximian.com>
30272 * X11Dnd.cs: If the drag is going to and from a MWF window just
30273 copy the data instead of sending it out through the X Selection
30276 2005-11-02 Jackson Harper <jackson@ximian.com>
30279 * XplatUIX11.cs: When in a drag we don't want motion notify
30280 messages to get passed on to the other controls. This prevents
30281 mouse move messages from showing up in the drag source.
30283 2005-11-02 Jackson Harper <jackson@ximian.com>
30285 * X11Dnd.cs: Remove unneeded call to XAllowEvents. Make sure that
30286 the correct button is release to end a drag.
30287 * XplatUIX11.cs: Make the button state internal so the drag system
30288 can access it. Dragging needs to know about all button releases,
30289 not just left button.
30291 2005-11-02 Miguel de Icaza <miguel@novell.com>
30293 * Form.cs (Icon): If the icon is null, reset the icon to the
30296 * Cursor.cs: When writing the AND-mask bitmap do not include the
30297 number of colors, but hardcode those to two (black and white),
30298 fixes the loading of color cursors (Paint Dot Net).
30300 * Form.cs: To debug, allow MONO_MWF_SCALING=disable variable to
30301 turn off autoscaling.
30303 * Cursor.cs: Allow resource type to be 1 or 2 (from ImageMagic).
30305 2005-11-02 Jackson Harper <jackson@ximian.com>
30307 * X11Dnd.cs: Make sure to send a status message if the pointer
30308 enters a control that can not accept a drop, otherwise the cursor
30309 isn't updated correctly. Also tried to compress the lines of code
30312 2005-11-02 Jackson Harper <jackson@ximian.com>
30314 * X11Dnd.cs: Change cursors based on drag action. Also attempt to
30315 set actions correctly. This isn't perfect as XDND and win32 have
30316 some differences on how you allow actions. I'll clear this up by
30317 adding a path for drag from MWF to MWF windows.
30318 * XplatUIX11.cs: Hook into the dnd system.
30320 2005-11-02 Jordi Mas i Hernandez <jmas@softcatala.org>
30322 * ListView.cs: Fixes scroll bar visibility. Hide them if they were
30323 previously shown but they are no longer need it. Very obvious when
30324 browsing files with FileDialog.
30326 2005-11-01 Peter Dennis Bartok <pbartok@novell.com>
30328 * Control.cs: We always need to call OnPaintBackground. We pretty much
30329 ignore AllPaintingInWmPaint and always do the painting there, whether
30330 it's set or not, since we always ignore the WM_ERASEBKGND message
30331 (which we don't generate on X11). This fixes #76616.
30332 * Panel.cs: Removed unneeded background painting. This happens properly
30333 in Control.cs already
30335 2005-10-31 Mike Kestner <mkestner@novell.com>
30337 * Menu.cs: Add items to collection before setting their index.
30338 * MenuItem.cs : add range checking with ArgumentException like MS.
30341 2005-10-31 Jackson Harper <jackson@ximian.com>
30343 * ListBox.cs: Invalidate if the area is visible at all not just
30344 contained in the visible rect. Fixes unselection of semi visible
30347 2005-10-31 Jackson Harper <jackson@ximian.com>
30349 * Control.cs: Consistently name the dnd methods. Make them
30350 internal so we can override them to match some MS behavoir
30352 * Win32DnD.cs: Use the new consistent names.
30354 2005-10-31 Jackson Harper <jackson@ximian.com>
30356 * TreeView.cs: Don't draw the selected node when we lose focus.
30358 2005-10-31 Jackson Harper <jackson@ximian.com>
30360 * X11Dnd.cs: We still need to reset the state even though a full
30361 reset isn't being done, otherwise status's still get sent all over
30364 2005-10-31 Jackson Harper <jackson@ximian.com>
30366 * Control.cs: Make the dnd_aware flag internal so the dnd
30367 subsystem can check it. Catch exceptions thrown in dnd handlers to
30369 * Hwnd.cs: Add a flag for whether or not a window is dnd aware.
30370 * X11Dnd.cs: Handle null data in the converters. Set the XDND
30371 version when sending a XdndEnter. Use the control/hwnd dnd_aware
30372 flags to reduce the number of dnd enters/status's sent.
30374 2005-10-31 Jackson Harper <jackson@ximian.com>
30376 * X11Dnd.cs: Don't need the sizeof here. Patch by Jordi Mas.
30378 2005-10-31 Jordi Mas i Hernandez <jordi@ximian.com>
30380 * PictureBox.cs: Fixes 76512
30382 2005-10-28 Jackson Harper <jackson@ximian.com>
30384 * X11Dnd.cs: Early implementation to support winforms being a drag
30385 source for data on X11. Also restructured the converters so they
30386 can go both ways now.
30387 * XplatUIX11.cs: Tie ins to the the Dnd stuff.
30389 2005-10-27 Peter Dennis Bartok <pbartok@novell.com>
30391 * XplatUIX11.cs: Fixed FIXME - implemented ASCII encoding for XA_STRING
30394 2005-10-27 Jackson Harper <jackson@ximian.com>
30396 * TreeNode.cs: Implement serialization so my DnD examples will work.
30398 2005-10-24 Kornél Pál <kornelpal@hotmail.com>
30400 * ButtonBase.cs, ListView.cs, NotifyIcon.cs, PictureBox.cs, ToolBar.cs,
30401 TreeView.cs: Don't dispose objects that are not owned.
30403 2005-10-24 Peter Dennis Bartok <pbartok@novell.com>
30405 * Cursor.cs: Defaulting the Current cursor to Cursors.Default. We
30406 should retrieve the current cursor and report that, but XplatUI
30407 doesn't (yet) have an interface for that (and I'm not sure I even
30409 * XplatUIWin32.cs: Fixed override behaviour. The override is temporary,
30410 until any message loop processing is done (and the WM_SETCURSOR
30411 replaces the cursor to the proper one)
30413 - Fixed override behaviour, we can't set the cursor globally on X11,
30414 just for our windows.
30415 - Invalidating the System.Drawing X11 display handle when we are
30417 * Control.cs: Fix to make csc happy
30419 2005-10-23 Peter Dennis Bartok <pbartok@novell.com>
30422 - get_Text: Add last line (without trailing newline) to returned
30423 value (Fixes 76212)
30424 - get_TextLength: Count last line in returned length
30425 - ToString: Call Text property instead of duplicating code
30427 2005-10-23 Kornél Pál <kornelpal@hotmail.com>
30429 * ImageList.cs: Dispose ImageAttributes objects.
30431 2005-10-22 Kornél Pál <kornelpal@hotmail.com>
30433 * ImageList.cs: Use attribute constructors with less arguments where
30436 2005-10-22 Kornél Pál <kornelpal@hotmail.com>
30438 * ImageList.cs: Added lastKeyIndex field and use in IndexOfKey.
30439 Use typeof instead of strings when assembly is referenced. Added
30440 some more comments.
30442 2005-10-21 Jackson Harper <jackson@ximian.com>
30444 * ListView.cs: Raise a double click event. Also tried to somewhat
30445 fix when the selectedindexchanged event is raised. Its still
30448 2005-10-21 Jackson Harper <jackson@ximian.com>
30450 * TreeView.cs: New method to invalidate the plus minus area of a
30451 node without invalidating the whole node (maybe this can be used
30452 in some more places).
30453 * TreeNodeCollection.cs: When adding to an empty node we need to
30454 invalidate its plus minus area so the little block shows up.
30456 2005-10-21 Jackson Harper <jackson@ximian.com>
30458 * TreeView.cs: Make sure that when we invalidate a node the bounds
30459 are big enough to cover the selected box and the focus
30460 rectangle. Use a different colour for the lines connecting nodes
30461 so they show up with all themes.
30463 2005-10-21 Peter Dennis Bartok <pbartok@novell.com>
30465 * NativeWindow.cs: Don't call anything that could call into the driver,
30466 we might be on a different thread.
30468 2005-10-21 Peter Dennis Bartok <pbartok@novell.com>
30470 * Control.cs(Dispose): Since Dispose might run on a different thread,
30471 make sure that we call methods that could call into the driver via
30472 invoke, to avoid thread issues
30474 2005-10-21 Peter Dennis Bartok <pbartok@novell.com>
30476 * XplatUI.cs: Removed finalizer
30477 * XplatUIX11.cs: Removed Destructor, was causing crashes due to X11
30478 not allowing to be called on the finalizer thread.
30480 2005-10-21 Kornél Pál <kornelpal@hotmail.com>
30483 - Reverted r51889 and r51891.
30484 - Added ImageListItem class that stores unmodified image items and image
30485 properties required to create list images until handle is created.
30486 - Added AddItem and moved image creation logic to AddItemInternal.
30487 - Added CreateHandle method that creates images based on unmodified items.
30488 - Added DestroyHandle that changes state to store unmodified items.
30489 - Add and AddStrip methods no more create handle.
30490 - ReduceColorDepth has no return value.
30491 - Dispose destroys handle.
30492 - Modified other methods to reflect the above changes.
30493 - Implemented key support.
30494 - Added profile 2.0 members and attributes.
30495 - Added private Reset and ShouldSerialize methods that provide the same
30496 behavior as MS.NET but the Visual Studio .NET designer seems to ignore
30497 them as they are private.
30498 - Added some more comments about implementation details.
30500 2005-10-21 Jordi Mas i Hernandez <jordi@ximian.com>
30502 * DataGrid.cs: Adds support for vertical scrolling using the mousewheel
30504 2005-10-21 Jordi Mas i Hernandez <jordi@ximian.com>
30506 * Binding.cs: No PushData/PullData if there is no binding (fixes crash)
30508 2005-10-21 Jordi Mas i Hernandez <jordi@ximian.com>
30510 * DataGridDrawingLogic.cs: Fixes column hit calcultation
30511 * DataGridColumnStyle.cs: Remove debug message
30513 2005-10-20 Jackson Harper <jackson@ximian.com>
30515 * TreeView.cs: We can always get input keys regardless of whether
30516 or not editing is enabled. They are used for navigation.
30518 2005-10-20 Jackson Harper <jackson@ximian.com>
30520 * TreeNode.cs: Use the viewport rect for determining if a node
30521 needs to be moved for visibility. Don't use Begin/End edit. This
30522 calls a full refresh when its done.
30523 * TreeView.cs: New SetBottom works correctly. Make the viewport
30524 rect property internal so the treenodes can see it. When clicking
30525 on a node we need to ensure that its visible because it might just
30526 be partly visible when clicked.
30528 2005-10-20 Jackson Harper <jackson@ximian.com>
30530 * TreeNodeCollection.cs: Remove debug code.
30532 2005-10-20 Jordi Mas i Hernandez <jordi@ximian.com>
30534 * Datagrid.cs: Implements column sorting in Datagrid
30535 * DataGridColumnStyle.cs: Implements column sorting in Datagrid
30537 2005-10-20 Jackson Harper <jackson@ximian.com>
30539 * TreeNodeCollection.cs: Remove items properly. Update the correct
30540 area after removing them.
30542 2005-10-20 Jordi Mas i Hernandez <jordi@ximian.com>
30544 * Datagrid.cs: Should not call base.OnPaintBackground
30546 2005-10-20 Peter Dennis Bartok <pbartok@novell.com>
30548 * XplatUIX11.cs (GetMessage):
30549 - Now properly calculates NC_xBUTTONDOWN coordinates off the whole
30550 window instead of client window
30551 - Now properly calculates NC_xBUTTONUP message coordinates
30552 - ScreenToMenu now properly calculates it's coordinates of whole
30553 window, since menus are in the whole window, not in the client
30555 - Added WholeToScreen coordinate translation method
30557 2005-10-20 Peter Dennis Bartok <pbartok@novell.com>
30559 * XplatUIX11.cs (GetMessage): Don't return in situations where we don't
30560 want to return a message, loop back to the beginning of the function
30561 and grab the next real message to process instead.
30563 2005-10-20 Peter Dennis Bartok <pbartok@novell.com>
30565 * Splitter.cs: Properly set limits if no filler control is used
30567 2005-10-19 Jackson Harper <jackson@ximian.com>
30569 * ColorDialog.cs: Don't show the help button if it is not enabled
30570 instead of disabling it (this is what MS does). Don't create the
30571 panel until the dialog is run, otherwise the vars (such as
30572 ShowHelp) are not set yet.
30574 2005-10-19 Jackson Harper <jackson@ximian.com>
30576 * TreeView.cs: Implement Begin/EndEdit more correctly so refreshes
30577 are reduced when adding nodes.
30579 * TreeNodeCollection.cs: Use UpdateNode instead of refreshing the
30582 2005-10-19 Jackson Harper <jackson@ximian.com>
30584 * FolderBrowserDialog.cs: End editing our treeview so the window
30585 actually gets refreshed.
30587 2005-10-18 Peter Dennis Bartok <pbartok@novell.com>
30589 * Control.cs: Fixed logic flip on when to call OnPaintBackground.
30590 Obsoleted handling of WM_ERASEBKGND, now always draws our background
30593 2005-10-18 Jordi Mas i Hernandez <jordi@ximian.com>
30595 * MenuAPI.cs: Returns after Hidding window
30596 * XplatUIX11.cs: Added TODO found while debugging menu issues
30598 2005-10-18 Peter Dennis Bartok <pbartok@novell.com>
30600 * XplatUIX11.cs: Do not re-map the whole window when it's size
30601 becomes non-zero unless it's supposed to be actually visible
30603 2005-10-18 Jackson Harper <jackson@ximian.com>
30605 * TreeView.cs: We don't need to keep a count anymore.
30606 * TreeNodeCollection.cs: Fix off by one in RemoveAt, Insert can
30607 use the Grow method.
30609 2005-10-18 Jackson Harper <jackson@ximian.com>
30611 * TreeNodeCollection.cs: Insert is not supported on arrays, so
30612 implement it manually here.
30614 2005-10-18 Jackson Harper <jackson@ximian.com>
30616 * ImageList.cs: Dont kill the list when the colour depth is
30617 changed, just change the colour depth of all the images.
30618 - Same goes for setting the image size. Just resize them all
30619 instead of killing the list softly.
30621 2005-10-18 Jackson Harper <jackson@ximian.com>
30623 * Control.cs: Don't invalidate empty rectangles.
30625 2005-10-18 Jordi Mas i Hernandez <jordi@ximian.com>
30628 - Adds checked item to the Checked/Item lists (where empty before)
30629 - Do not add items to the Selected lists if they are already present
30631 - Fixes IsFixedSize, SyncRoot, IsReadOnly in many collections
30632 - When deleting items make sure that we delete them for the Selected
30633 and Checked list also.
30635 2005-10-18 Jordi Mas i Hernandez <jordi@ximian.com>
30637 * Label.cs: Dispose objects no longer used
30638 * ThemeWin32Classic.cs: Dispose objects no longer used
30640 2005-10-18 Jackson Harper <jackson@ximian.com>
30642 * TabControl.cs: Don't refresh the whole control when the tabs are
30643 scrolled, we just need to refresh the tab area.
30645 2005-10-17 Jackson Harper <jackson@ximian.com>
30647 * XplatUIX11.cs: Compress code a little bit. Only calculate the
30648 after handle when we need it.
30650 2005-10-17 Peter Dennis Bartok <pbartok@novell.com>
30652 * Control.cs: When the parent size changes, recalculate anchor
30653 positions. Partial fix for #76462
30655 2005-10-17 Peter Dennis Bartok <pbartok@novell.com>
30657 * ThemeWin32Classic.cs: Make sure the picturebox has it's background
30658 drawn. Fixes #76462
30660 2005-10-17 Jackson Harper <jackson@ximian.com>
30662 * MonthCalendar.cs: Don't create the numeric up down until our
30663 handle is created. Otherwise our handle is created in the
30664 constructor and we don't know if we are a WS_CHILD or WS_POPUP
30667 2005-10-17 Jackson Harper <jackson@ximian.com>
30669 * TreeView.cs: Merge in patch by Rafael Teixeira to align strings
30672 2005-10-17 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
30673 * TreeNode.cs : small logical fix (was using local var instead of field)
30675 2005-10-17 Jordi Mas i Hernandez <jordi@ximian.com>
30677 * ThemeWin32Classic.cs: Fixes vert/horz scrollbar colours
30679 2005-10-17 Jordi Mas i Hernandez <jordi@ximian.com>
30681 * ThemeWin32Classic.cs: Fixes focus drawing in for non-flat/popup buttons
30683 2005-10-16 Peter Dennis Bartok <pbartok@novell.com>
30686 - Re-implemented anchoring code. My first version was really broken.
30687 This fixes bug #76033. Unlike the previous implementation we will
30688 no longer have round errors since all numbers are calculated from
30689 scratch every time. Removed various anchor-related obsolete vars.
30690 - InitLayout no longer causes layout event firing and layout to be
30693 2005-10-16 Jackson Harper <jackson@ximian.com>
30695 * Hwnd.cs: Compute invalid area correctly (fixes my last commit
30698 2005-10-16 Jackson Harper <jackson@ximian.com>
30700 * TabControl.cs: Remove debug code.
30702 2005-10-16 Jackson Harper <jackson@ximian.com>
30704 * XEventQueue.cs: Increase the default queue size (very simple
30705 apps needed to grow the queue).
30706 * Hwnd.cs: No finalizer so we don't need to suppress
30707 finalization. Compute the invalid area manually so a new rectangle
30708 does not newto be created.
30709 * ScrollableControl.cs: Don't set any params (otherwise visibility
30710 isn't set correctly).
30711 * MdiChildContext.cs: New constructor takes the mdi parent so it
30712 doesn't have to be computed and avoids a crash on windows. Draw
30713 the window icon properly, and allow the text to be seen.
30714 * Form.cs: Use new MdiChildContext constructor. Make sure the
30715 child context isn't null in wndproc.
30716 * TabControl.cs: Don't set focus, this is muddling keyboard
30717 behavoir. Expand the tab rows when a window size increase will
30718 allow extra tabs to be seen. Don't allow tabs smaller than the
30719 width of a window to be scrolled out of view.
30721 * TreeView.cs: Use measure string to calculate a nodes width, the
30722 width is cached and only updated when the text or the font is
30723 changed. Don't check for expand/collapse clicks on the first level
30724 nodes if root lines are disabled.
30726 2005-10-16 Ritvik Mayank <mritvik@novell.com>
30728 * TextBoxBase.cs: Fixes #76352 (passing tab key in a multiline textbox)
30730 2005-10-16 Jordi Mas i Hernandez <jordi@ximian.com>
30732 * DataGridBoolColumn.cs: fixes warning
30734 2005-10-16 Jordi Mas i Hernandez <jordi@ximian.com>
30736 * ControlPaint.cs: Fixes methods Dark, DarkDark, Light, LightLight
30737 to match more to match more precisely the MS Net behavior
30739 2005-10-13 Peter Dennis Bartok <pbartok@novell.com>
30741 * Hwnd.cs: Added field to track if window is mapped
30743 - Unmap windows if they become 0-size, re-map when
30744 they are >0 again; fixes #76035
30745 - Re-set our error handler after initializing X11Desktop
30746 to override any error handlers Gtk or whatever was called
30749 2005-10-13 Peter Dennis Bartok <pbartok@novell.com>
30751 * CheckedListBox.cs: Removed unused vars
30752 * ListView.cs: Fixed signatures
30753 * RichTextBox.cs: Removed unused vars
30754 * TextBoxBase.cs: Removed unused vars
30755 * XplatUIWin32.cs: Removed unused vars
30756 * XplatUIX11.cs: Removed unused vars
30757 * XplatUI.cs: Updated version and date to latest published
30759 2005-10-13 Peter Dennis Bartok <pbartok@novell.com>
30761 * Cursor.cs: Added private .ctor to work around a bug in
30762 resourceset (Thanks to Geoff Norton for the help on this)
30763 * SplitterEventArgs.cs: Made fields accessible so we don't
30764 waste boatloads of objects and can reuse the same one
30766 * XplatUIWin32.cs(DrawReversibleLine): Now also considers
30767 any captions and borders when generating screen coordinates
30768 * Splitter.cs: Reimplemented control, now fully complete, uses
30769 rubberband drawing, supports and obeys all properties, has
30772 2005-10-13 Miguel de Icaza <miguel@novell.com>
30774 * Form.cs (Form): Setup default values for autoscale and
30775 autoscale_base_size; Make these instance variables, not static
30778 (OnLoad): on the first load, adjust the size of the form.
30780 2005-10-13 Peter Dennis Bartok <pbartok@novell.com>
30782 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added
30783 width argument to DrawReversibleRectangle()
30784 * XplatUIWin32.cs, XplatUIX11.cs:
30785 - Implemented width for DrawReversibleRectangle()
30786 - Added logic to DrawReversibleRectangle that recognizes a zero
30787 width or height and only draws a line in that situation
30789 2005-10-12 Peter Dennis Bartok <pbartok@novell.com>
30791 * XplatUI.cs, XplatUIDriver.cs: Added GetAutoScaleSize()
30792 * XplatUIOSX.cs: Stubbed GetAutoScaleSize() method
30793 * XplatUIWin32.cs, XplatUIX11.cs: Implemented GetAutoScaleSize()
30794 method (it uses our FosterParent window to get a graphics context)
30796 2005-10-12 Peter Dennis Bartok <pbartok@novell.com>
30798 * XplatUI.cs, XplatUIDriver.cs: Removed EraseWindowBackground
30799 and SetWindowBackground methods
30801 - Setting proper ControlStyles
30802 - We no longer call XplatUI.SetWindowBackground and XplatUI.
30803 EraseWindowBackground, instead we draw the window background
30804 ourselves in PaintControlBackground. This behaviour is
30805 required to match MS, where, when OnPaintBackground is not
30806 called, the background is not drawn.
30807 - Removed unneeded Refresh() in set_Text
30808 * Hwnd.cs: Dropped the ErasePending support. No longer needed
30810 - Created DeriveStyles method to translate from CreateParams to
30811 FormBorderStyle and TitleStyle, also handles BorderStyle (which
30812 matches FormBorderStyle enum values)
30813 - Consolidated SetHwndStyles and CalculateWindowRect border/title
30814 style calculations into single DeriveStyles method
30815 - Fixed CreateWindow to (finally) use Gravity. This prevents X11
30816 from redrawing the whole window on any resize or expose.
30817 - Fixed CreateWindow usage of SetWindowValuemask. Before not
30818 all styles were applied to our whole/client window appropriately
30819 - Removed EraseWindowBackground() and SetWindowBackground() methods
30820 - Removed handling of WM_ERASEBKGND message from DefWndProc, we
30821 no longer clear/redraw the background through X
30822 - Removed handling of erase_pending bit, we have no use for it (or
30825 - Removed generation and handling of WM_ERASEBKGND message
30826 - Removed EraseWindowBackground() and SetWindowBackground() methods
30827 - Removed handling of hwnd.ErasePending flag
30829 - Removed EraseWindowBackground() and SetWindowBackground() methods
30830 - We no longer call EraseWindowBackground on PaintEventStart, we
30831 ignore the fErase flag, erasing is handled in Control in the
30833 * Button.cs, GroupBox.cs, Label.cs, CheckBox.cs, ProgressBar.cs,
30834 LinkLabel.cs, ListControl.cs, TabPage.cs, UpDownBase.cs,
30835 TextBoxBase.cs, TextBox.cs, ListView.cs, ButtonBase.cs,
30836 CheckedListBox.cs, MdiClient.cs, Panel.cs, DataGrid.cs,
30837 DataGridTextBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs,
30838 TabControl.cs, ScrollableControl.cs, ToolBar.cs, PictureBox.cs,
30839 DateTimePicker.cs, StatusBar.cs, MonthCalendar.cs: Setting proper ControlStyles
30841 2005-10-12 Jonathan Chambers <jonathan.chambers@ansys.com>
30843 * PropertyGrids.cs: Get sub properties
30844 * PropertyGridView.cs: Fix drawing code
30846 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
30848 * ListBox.cs: Fixes 76383
30850 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
30852 * DataGridTextBoxColumn.cs: Sets location and size before attachment
30853 * ThemeWin32Classic.cs: Fixes border drawing and calculations
30854 * DataGridDrawingLogic.cs: Fixes border drawing and calculations
30857 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
30859 * ComboBox.cs: Fixes border drawing
30861 2005-10-10 Miguel de Icaza <miguel@novell.com>
30863 * MimeIcon.cs: Ignore errors if the file can not be read.
30865 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
30867 * Theme.cs, ThemeWin32Classic.cs, ListBox.cs:
30868 - Fixed border calculations
30869 - Fixed horizontal scrolling in single column listboxes
30870 - Fixed drawing issues
30872 2005-10-10 Peter Dennis Bartok <pbartok@novell.com>
30874 * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched from BorderStyle to
30875 FormBorderStyle enum
30876 * XplatUIX11.cs: Switched BorderStyle to FormBorderStyle, added
30877 code to determine FormBorderStyles from CreateParams
30879 - Fixed bug where we'd set the wrong window styles if we were
30880 not creating an MDI window
30881 - Added call to XplatUI.SetBorderStyle when form borders are set
30882 * Control.cs: Casting BorderStyles to accommodate changed XplatUI APIs
30884 - Removed obsolete edge style
30885 - Switched from BorderStyle to FormBorderStyle
30887 2005-10-10 Jackson Harper <jackson@ximian.com>
30889 * Form.cs: Use the property to get the window handle instead of
30890 accessing it directly. Prevents a null reference exception.
30892 2005-10-10 Jackson Harper <jackson@ximian.com>
30894 * TreeView.cs: Don't adjust the rect given to DrawString now that
30895 our libgdiplus draws correctly.
30897 2005-10-08 Jackson Harper <jackson@ximian.com>
30899 * TreeView.cs: Don't try to find the clicked on node if there are
30900 no nodes in the tree.
30902 2005-10-08 Alexander Olk <alex.olk@googlemail.com>
30908 2005-10-08 Alexander Olk <alex.olk@googlemail.com>
30910 * ImageListStreamer.cs, TreeView.cs, UpDownBase.cs, RichTextBox.cs,
30911 ColorDialog.cs, TextControl.cs, Panel.cs, MdiChildContext.cs,
30913 Use ResPool for brushes and dispose System.Drawing objects that
30914 are not used anymore.
30916 2005-10-07 Jackson Harper <jackson@ximian.com>
30918 * MdiChildContext.cs: Use the new borders instead of drawing them
30921 2005-10-06 Jordi Mas i Hernandez <jordi@ximian.com>
30923 * Calling UpdateBounds after changing the window's BorderStyle
30924 since the style can change the ClientSize
30926 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
30928 * Control.cs: Made PaintControlBackground virtual
30929 * Panel.cs: Overriding PaintControlBackground instead of using paint
30930 event; paint event method was interfering with 'real' users of the
30933 2005-10-06 Jordi Mas i Hernandez <jordi@ximian.com>
30935 * ThemeWin32Classic.cs: remove border drawing since it is handled
30936 by the base control class now and was causing double border drawing.
30938 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
30940 * Panel.cs: Redraw our background on paint. Not a pretty solution,
30941 but it does seem to match MS behaviour. This fixes bug #75324
30943 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
30945 * XplatUIX11.cs: A better DrawReversibleRectangle version, however
30946 somewhat hackish looking
30948 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
30951 - We now accept Enter even if AcceptEnter is false, if the containing
30952 form does not have an AcceptButton configured (fixes bug #76355)
30953 - Calculations are now fixed to no longer use Width/Height, but
30954 ClientSize.Width/Height, since we now support borders (this was
30955 a result of fixing borders and therefore bug #76166)
30956 - We no longer show the horizontal scrollbar if TextBox.WordWrap is
30957 true (fixes bug #76354)
30959 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
30962 - Defaulting BorderStyle and setting it in XplatUI when our window
30964 - Added enum check to InternalBorderStyle setter
30966 - Added drawing of window borders
30967 - Now properly calculates WM decorations offset for toplevel
30968 windows (fixes bug #74763)
30970 - Implemented BorderStyles for windows (we're letting win32 draw
30972 - Fixed the signature for SetWindowLong
30973 * PictureBox.cs, DataGrid.cs, TextBoxBase.cs, ToolBar.cs, Panel.cs,
30974 ListBox.cs, Label.cs: Now uses Control.InternalBorderStyle for
30976 * UpDownBase.cs: Remove drawing of borders, this is handled by
30977 the driver, outside the client area
30978 * ListView.cs: Removed bogus border calculations. The control should
30979 be oblivious to borders, since those are not part of the client
30981 * X11DesktopColors.cs: Commented out (currently) unneeded variables
30982 * ThemeWin32Classic.cs: Removed border calculations from ListView
30985 2005-10-06 Jackson Harper <jackson@ximian.com>
30987 * MdiChildContext.cs: Clear out the old virtual position remove
30988 all the unneeded calls to CreateGraphics.
30990 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
30992 * TextControl.cs: Use proper color for highlighted text; fixes #76350
30994 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
30997 - Added loading and setting of our new default icon
30998 - Only set icon if window is already created
31000 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
31003 - Do not explicitly set the foreground and background colors, to
31004 allow inheriting from parents (fixes #76302)
31005 - Use Control's InternalBorderStyle property to deal with borders
31007 2005-10-06 Jackson Harper <jackson@ximian.com>
31009 * MdiChildContext.cs: Use the new xplatui function to draw a
31012 2005-10-06 Jackson Harper <jackson@ximian.com>
31014 * Form.cs: Add the parent before creating the child context cause
31015 we need the parent when setting up the child.
31017 2005-10-06 Jackson Harper <jackson@ximian.com>
31019 * FolderBrowserDialog.cs: redo the tree population code so a
31020 second thread isn't used. Should be a lot faster and more stable
31023 2005-10-05 Jackson Harper <jackson@ximian.com>
31025 * TreeView.cs: There are no expand/collapse boxes if the node has
31028 2005-10-05 Jackson Harper <jackson@ximian.com>
31030 * X11DesktopColors.cs: Get menu colours for the gtk theme.
31032 2005-10-05 Alexander Olk <alex.olk@googlemail.com>
31034 * FileDialog.cs: Fix InitialDirectory
31036 2005-10-05 Jordi Mas i Hernandez <jordi@ximian.com>
31039 - Fixes changing between styles
31040 - Fixes simple mode
31041 - Fixes last item crashing when navigating with keyboard
31043 2005-10-05 Jordi Mas i Hernandez <jordi@ximian.com>
31045 * LinkLabel.cs: Related to 76045. Stops the LinkLabel been drawn as a Label
31047 2005-10-05 Jackson Harper <jackson@ximian.com>
31049 * TreeView.cs: If updating the root node do a full refresh.
31050 * TreeNode.cs: The root node should be expanded by default. Also
31051 added a utility prop to tell if we are the root node.
31052 * TreeNodeCollection.cs: Only refresh if the node we are being
31053 added to is expanded. Also added a comment on a potential
31056 2005-10-04 Peter Dennis Bartok <pbartok@novell.com>
31058 * Cursor.cs, Hwnd.cs: Added call to GC.SuppressFinalize()
31059 in dispose method. Fixes #76330
31061 2005-10-04 Jordi Mas i Hernandez <jordi@ximian.com>
31063 * ListView.cs, ThemeWin32Classic.cs, ListViewItem.cs:
31065 - Implements vertical and horizontal scrolling using XplatUI
31066 - Fixes keyboard navagation
31067 - Fixes EnsureVisible
31069 - Handles and draws focus properly
31072 2005-10-04 Kornél Pál <kornelpal@hotmail.com>
31074 * ImageList.cs: Use upper case initials for internal fields. ImageStream:
31075 Create handle. NET_2_0: Destroy handle when value is null.
31077 2005-10-03 Jackson Harper <jackson@ximian.com>
31079 * ScrollBar.cs: My last scrollbar patch was broken. This is a
31080 revert and a new patch to prevent the thumb from refreshing so
31083 2005-10-02 Jackson Harper <jackson@ximian.com>
31085 * ScrollBar.cs: Don't update position if it hasn't actually
31086 changed. This occurs when you hold down the increment/decrement
31087 buttons and the thumb gets to the max/min.
31089 2005-10-01 Jackson Harper <jackson@ximian.com>
31092 * MdiChildContext.cs:
31093 * MdiClient.cs: Implement ActiveMdiChild in Form.
31095 2005-10-01 Jordi Mas i Hernandez <jordi@ximian.com>
31097 * ComboBox.cs: Include ComboBoxEdit flag for the edit item
31099 2005-10-01 Peter Dennis Bartok <pbartok@novell.com>
31101 * X11DesktopColors.cs: Bow out gracefully if the Gtk libs cannot
31104 2005-09-30 Jackson Harper <jackson@ximian.com>
31106 * ListBox.cs: Don't do a full refresh unless some data has
31109 2005-09-30 Jackson Harper <jackson@ximian.com>
31111 * TreeView.cs: Make sure that the checkboxes size is factored in
31112 even when not visible.
31114 2005-09-30 Peter Dennis Bartok <pbartok@novell.com>
31116 * FileDialog.cs: Fix Jordi's build break
31118 2005-09-30 Jordi Mas i Hernandez <jordi@ximian.com>
31121 - Use standard the Windows colours for the combobox as espected
31122 - Dispose objects that use resouces when no longer need them
31124 2005-09-30 Peter Dennis Bartok <pbartok@novell.com>
31126 * X11DesktopColors.cs: Initial incomplete implementation
31127 * XplatUIX11.cs: Added call to initialize X11DesktopColors
31129 2005-09-30 Peter Dennis Bartok <pbartok@novell.com>
31132 - Switched Theme color names to match the names defined in
31133 System.Drawing.KnownColors. Life's hard enough, no need to make
31135 - Added setters to all theme color properties so themes can set
31136 their color schemes. The setters also propagate the color changes
31137 to System.Drawing.KnownColors via reflection
31138 * ControlPaint.cs, Label.cs, TextControl.cs, ToolTip.cs, ThemeNice.cs,
31139 ComboBox.cs, MdiChildContext.cs, TextBoxBase.cs, DateTimePicker.cs
31140 DataGridColumnStyle.cs, MonthCalendar.cs, TreeView.cs: Updated to
31141 use the new, more logical theme color names
31142 * XplatUIWin32.cs: Updated the GetSysColorIndex enum to include new
31144 * ThemeWin32Classic.cs:
31145 - Removed code to set the old classic Windows colors. Instead it
31146 now relies on the colors returned by System.Drawing.KnownColors
31147 which will be either modern static colors (Unix) or colors
31148 read from the user's configuration (Win32)
31149 - Updated to use the new, more logical theme color names
31150 - Switched DataGrid drawing code to use only Theme colors instead of
31151 a mix of System.Drawing.KnownColors and Theme colors
31152 - DrawFrameControl(): Removed code that fills the button area, the
31153 fill would overwrite any previous fill done by a control. This
31155 - Added DrawReversibleRectangle() stub
31156 * ScrollableControl.cs: Set visible state to false when scrollbars
31157 are removed (pdn fix)
31158 * XplatUI.cs, XplatUIOSX.cs, XplatUIDriver.cs: Added
31159 DrawReversibleRectangle() method to allow drawing primitive
31161 * XplatUIX11.cs: Implemented DrawReversibleRectangle()
31163 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
31165 * ImageList.cs: Add(Icon): Create handle.
31167 2005-09-30 Jordi Mas i Hernandez <jordi@ximian.com>
31170 * ThemeWin32Classic.cs:
31171 - Fixes detail mode
31173 - Issues with drawing
31175 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
31177 * ImageList.cs: Moved RecreateHandle back to ImageList as event
31178 source has to be the ImageList.
31180 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
31182 * ImageList.cs: Add(Icon): Use Graphics.DrawIcon instead of Icon.ToBitmap.
31184 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
31186 * ImageList.cs: ReduceColorDepth: Clean up pointer operations.
31188 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
31190 * ImageList.cs: ImageCollection: Removed owner field as it is no more used.
31192 2005-09-29 Jonathan Chambers <jonathan.chambers@ansys.com>
31193 * GridItem.cs: Fixed TODOs
31194 * GridItemCollection.cs: Added ICollection interface
31196 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
31198 * ImageList.cs: Resize icons when needed.
31200 2005-09-29 Jordi Mas i Hernandez <jordi@ximian.com>
31203 - Fixes GetBounds and returns on screen rects
31205 - Fixes vertical and horzintal scrolling of items
31206 * ThemeWin32Classic.cs:
31209 2005-09-29 Raja R Harinath <harinath@gmail.com>
31211 * ImageList.cs (ImageStream) [NET_2_0]: Reflect re-factoring.
31213 2005-09-29 Kornél Pál <kornelpal@hotmail.com>
31215 * ImageList.cs: Added comments about handle creation. Moved Handle,
31216 HandleCreated and OnRecreateHandle implementations to ImageCollection.
31217 Handle is created in Add methods.
31219 2005-09-28 Jordi Mas i Hernandez <jordi@ximian.com>
31221 * DataGridDrawingLogic.cs:
31222 - Takes rows into account on Colum calculations
31223 - Returns the column when clickig
31225 - Fixes default HitTestInfo values
31226 - Fixes HitTestInfo.ToString
31227 - Fixes ResetBackColor
31229 2005-09-28 Jackson Harper <jackson@ximian.com>
31231 * MdiChildContext.cs: Obey rules for fixed sized windows (no
31232 sizing or cursor changes). Also added some temp code to draw the
31233 titlebars text (Makes dev a little easier).
31235 2005-09-28 Kornél Pál <kornelpal@hotmail.com>
31237 * ImageList.cs: AddStrip: Throw ArgumentException when Image is not a Bitmap.
31239 2005-09-28 Jordi Mas i Hernandez <jordi@ximian.com>
31241 * ListBox.cs: Fixes bug 76253
31243 2005-09-28 Kornél Pál <kornelpal@hotmail.com>
31245 * ImageList.cs: Added comments about the current implementation. Added
31246 ReduceColorDepth, IndexedColorDepths and GetNearestColor to can use
31247 Format32bppArgb to preserve transparency and can use Graphics.FromImage
31248 while using the specified ColorDepth. ReduceColorDepth uses unsafe code
31249 with Bitmap.LockBits for better performance. Revised the whole file to
31250 match MS.NET behaviour and provide better performance. Non-public
31251 interface members are calling public members even when they throw
31252 NotSupportedException for better maintainability. Moved ColorDepth,
31253 ImageSize, ImageStream and TransparentColor implementations to
31254 ImageCollection for better performance as these properties are not used
31256 * ImageListStreamer.cs: Added a new internal constructor that takes an
31257 ImageList.ImageCollection and serializes Images based on
31258 ImageCollection.ToArray(). Renamed ImageColorDepth to ColorDepth to
31259 match ImageList property name.
31261 2005-09-28 Kazuki Oikawa <kazuki@panicode.com>
31263 * ListBox.cs: Fixes IndexFromPoint for last item
31265 2005-09-27 Jackson Harper <jackson@ximian.com>
31267 * Form.cs: Set the position of new mdi children correctly.
31269 2005-09-27 Jackson Harper <jackson@ximian.com>
31271 * MdiClient.cs: New mdi children need to be added to the back of
31272 the controls collection so the zorder is set correctly. Also add a
31273 count of all the child windows that have been created.
31275 2005-09-27 Jackson Harper <jackson@ximian.com>
31277 * Form.cs (CreateParams): Setup MDI forms correctly.
31279 2005-09-27 Jackson Harper <jackson@ximian.com>
31281 * MdiChildContext.cs:
31282 * MonthCalendar.cs:
31288 * ScrollableControl.cs:
31289 * ComboBox.cs: Add implicit controls using the new implict control
31290 functionality in ControlCollection. Also try to block multiple
31291 control add in a suspend/resume layout to save some cycles.
31293 2005-09-27 Jackson Harper <jackson@ximian.com>
31295 * Control.cs: Add functionality to the controls collection to add
31296 'implicit controls' these are controls that are created by the
31297 containing control but should not be exposed to the user. Such as
31298 scrollbars in the treeview.
31299 * Form.cs: The list var of the ControlsCollection is no longer
31300 available because of the potential of implicit controls getting
31301 ignored by someone accessing the list directly.
31303 2005-09-26 Peter Dennis Bartok <pbartok@novell.com>
31305 * Control.cs: Fixed SetChildIndex; it no longer causes a child to
31306 loose it's parent. (Fixed bug introduced in r49103 when we added
31307 setting the child parent to null on Remove)
31309 2005-09-26 Gert Driesen <drieseng@users.sourceforge.net>
31311 * DataGridBoolColumn.cs: Marked CheckState private to fix public API.
31312 * Splitter.cs: Added missing attributes for BorderStyle property.
31313 * TextBoxBase.cs: Marked Calculate* methods internal.
31314 * TextBox.cs: Fixed DefaultValue for PasswordChar property to match
31317 2005-09-26 Jordi Mas i Hernandez <jordi@ximian.com>
31319 * ListBox.cs: Fixes navigation to the last item in multicolumn lists
31321 2005-09-25 Jackson Harper <jackson@ximian.com>
31323 * TreeView.cs: Update the node bounds correctly regardless of
31324 whether the node is visible.
31326 2005-09-25 Jackson Harper <jackson@ximian.com>
31328 * ImageList.cs: Don't dispose the image after it is added to the
31329 image list. Only reformat images that need to be resized.
31331 2005-09-25 Jackson Harper <jackson@ximian.com>
31333 * ImageList.cs: Don't set the format when changing the image.
31335 2005-09-25 Jackson Harper <jackson@ximian.com>
31337 * TreeView.cs: We can't just assume the node has a font. Use the
31338 treeviews font if no node font is available.
31340 2005-09-25 Jackson Harper <jackson@ximian.com>
31342 * TreeView.cs: Allow the scrollbars to be reset with negative
31344 - Don't add scrollbars to negative sized windows.
31346 2005-09-23 Jackson Harper <jackson@ximian.com>
31348 * XplatUIX11.cs: Update to use Mono.Posix.Native instead of plain
31349 old Mono.Posix. Also remove some stray code that shouldn't have
31352 2005-09-23 Jackson Harper <jackson@ximian.com>
31354 * TreeView.cs: Attempt at proper sizing of the horizontal
31355 scrollbar. Also don't resize the scrollbars unless they are
31358 2005-09-23 Jackson Harper <jackson@ximian.com>
31360 * TreeView.cs: We don't need to expand the invalid area when the
31361 selection changes, as this is all drawn in the node's bounding
31362 box. The area needs to be expanded (previous typo was contracting
31363 it) when the focus rect moves.
31365 2005-09-23 Jackson Harper <jackson@ximian.com>
31367 * TreeView.cs: Display the selection box under the correct
31368 circumstances. We were rendering white text with no selection box
31371 2005-09-23 Peter Dennis Bartok <pbartok@novell.com>
31373 * TextControl.cs(Split): Now updates selection start/end if it points
31374 into a line that's being split. Fixes a FIXME and bug #75258
31376 2005-09-23 Jackson Harper <jackson@ximian.com>
31379 * ListControl.cs: Don't use the path when retrieving binding
31380 managers from the binding context. My bat sense tells me that the
31381 path is only used on insertion.
31383 2005-09-22 Jackson Harper <jackson@ximian.com>
31385 * Splitter.cs: Set the cursor an easier way. (Thanks peter).
31387 2005-09-22 Jackson Harper <jackson@ximian.com>
31389 * Splitter.cs: There are special cursors used for splitting.
31390 * XplatUIX11.cs: The VSplit and HSplit cursors were backwards.
31392 2005-09-22 Jackson Harper <jackson@ximian.com>
31394 * Splitter.cs: Change the cursor appropriately when the splitter
31395 is moused over, so the user actually knows there is a splitter
31398 2005-09-22 Hisham Mardam Bey <hisham.mardambey@gmail.com>
31400 * Label.cs : Fix ToString method to give same output as MS.NET
31402 2005-09-22 Jackson Harper <jackson@ximian.com>
31404 * TreeView.cs: Create the scrollbars when the handle is created
31405 and add them right away, just make them invisble. Also account for
31406 the window being shrunk vertically to the point that the vert
31407 scrollbar needs to be added.
31408 - Remove some 0.5 adjustments to get around anti aliasing issues.
31410 2005-09-22 Jordi Mas i Hernandez <jordi@ximian.com>
31412 * MainMenu.cs: Fixes default value
31413 * MenuItem.cs: Fixes default value
31415 2005-09-22 Kazuki Oikawa <kazuki@panicode.com>
31417 * AsyncMethodResult.cs: Fixes Control.Invoke is blocked infinitely.
31419 2005-09-21 Jackson Harper <jackson@ximian.com>
31421 * Control.cs: Don't try to set the border style on the window if
31422 it hasn't been created. When the window is created the border
31423 style will be used.
31425 2005-09-21 Peter Dennis Bartok <pbartok@novell.com>
31427 * Control.cs (Update): Don't call XplatUI if we don't have a
31430 2005-09-21 Peter Dennis Bartok <pbartok@novell.com>
31432 * ContainerControl.cs: Instead of throwing an exception, print
31433 a one-time warning about Validate not being implemented
31434 * XplatUIWin32.cs: Removed debug output
31436 2005-09-21 Peter Dennis Bartok <pbartok@novell.com>
31438 * Control.cs: Only set XplatUI background if we expect the windowing
31439 system to handle the background. This stops controls that draw their
31440 own background from flickering
31442 * XplatUIX11.cs: Support custom visuals and colormaps for window
31443 creation. This allows, amongst other things, using MWF X11 windows
31446 2005-09-21 Peter Dennis Bartok <pbartok@novell.com>
31448 * OpenFileDialog.cs, ContentsResizedEventArgs.cs, LibSupport.cs, GridItem.cs,
31449 CursorConverter.cs, SplitterEventHandler.cs, PropertyGridTextBox.cs,
31450 GridTablesFactory.cs, MethodInvoker.cs, AccessibleEvents.cs,
31451 SplitterEventArgs.cs, XplatUI.cs, Mime.cs, PropertySort.cs,
31452 TreeViewCancelEventHandler.cs, Form.cs, PropertyGridCommands.cs,
31453 IDataGridEditingService.cs, DateBoldEventHandler.cs, Label.cs,
31454 KeyboardLayouts.cs, TextControl.cs, ProgressBar.cs, ToolTip.cs,
31455 RadioButton.cs, OSFeature.cs, LinkLabel.cs, ColorDialog.cs,
31456 ThemeNice.cs, ErrorIconAlignment.cs, TreeNode.cs, MimeGenerated.cs,
31457 ComboBox.cs, DataGridTextBoxColumn.cs, ArrangeStartingPosition.cs,
31458 GridColumnStylesCollection.cs,
31459 IDataGridColumnStyleEditingNotificationService.cs,
31460 PropertyGrid.cs, IFeatureSupport.cs, ICommandExecutor.cs,
31461 MdiLayout.cs, GridEntry.cs, ControlBindingsCollection.cs,
31462 GridTableStylesCollection.cs, TreeViewCancelEventArgs.cs,
31463 TreeNodeCollection.cs, AmbientProperties.cs,
31464 RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
31465 DataObject.cs, ErrorProvider.cs, Splitter.cs,
31466 DataGridLineStyle.cs, Shortcut.cs, Control.cs,
31467 FontDialog.cs, SecurityIDType.cs, GridItemType.cs,
31468 BindingMemberInfo.cs, DataGridCell.cs, MdiChildContext.cs,
31469 IRootGridEntry.cs, PropertyGridView.cs, DataGridParentRowsLabelStyle.cs,
31470 FolderBrowserDialog.cs, OpacityConverter.cs, HelpProvider.cs,
31471 IComponentEditorPageSite.cs, DataGridTableStyle.cs, NavigateEventArgs.cs,
31472 NotifyIcon.cs, ContentsResizedEventHandler.cs, MenuItem.cs,
31473 PropertyTabChangedEventHandler.cs, TextBoxBase.cs, OpenTreeNodeEnumerator.cs,
31474 SelectionMode.cs, TextBox.cs, ListBindingConverter.cs,
31475 FileDialog.cs, KeysConverter.cs, DomainUpDown.cs,
31476 DataFormats.cs, SaveFileDialog.cs, GridItemCollection.cs,
31477 ArrangeDirection.cs, FeatureSupport.cs, SelectionRangeConverter.cs,
31478 RichTextBoxScrollBars.cs, NodeLabelEditEventHandler.cs, TreeNodeConverter.cs,
31479 MimeIcon.cs, X11Structs.cs, PropertyGridEntry.cs,
31480 ImageList.cs, ThemeWin32Classic.cs, X11Keyboard.cs,
31481 CheckedListBox.cs, HelpNavigator.cs, DateTimePickerFormat.cs,
31482 MdiClient.cs, DataGridDrawingLogic.cs, DataGridBoolColumn.cs,
31483 NodeLabelEditEventArgs.cs, Screen.cs, PropertyManager.cs,
31484 ComponentModel.cs, PropertiesTab.cs, CurrencyManager.cs,
31485 SizeGrip.cs, DateBoldEventArgs.cs, X11Dnd.cs, Panel.cs,
31486 Hwnd.cs, OSXStructs.cs, DrawMode.cs, XplatUIDriver.cs,
31487 RichTextBox.cs, PropertyTabChangedEventArgs.cs, CommonDialog.cs,
31488 DataGrid.cs, XplatUIX11.cs, RichTextBoxStreamType.cs, Win32DnD.cs,
31489 ErrorBlinkStyle.cs, TreeViewEventHandler.cs,
31490 PropertyValueChangedEventHandler.cs, IFileReaderService.cs,
31491 DataGridTextBox.cs, SelectedGridItemChangedEventArgs.cs, ScrollBar.cs,
31492 ListBox.cs, TreeViewAction.cs, Help.cs, TrackBar.cs,
31493 AxHost.cs, PropertyValueChangedEventArgs.cs, XplatUIOSX.cs,
31494 RichTextBoxFinds.cs, UpDownEventArgs.cs, Cursors.cs,
31495 CategoryGridEntry.cs, RichTextBoxWordPunctuations.cs, DataGridColumnStyle.cs,
31496 SelectedGridItemChangedEventHandler.cs, DateTimePicker.cs, NavigateEventHandler.cs,
31497 Clipboard.cs, UpDownEventHandler.cs, MonthCalendar.cs,
31498 SendKeys.cs, DataGridPreferredColumnWidthTypeConverter.cs, TreeView.cs,
31499 ThreadExceptionDialog.cs, ImageListConverter.cs, XplatUIWin32.cs,
31500 TreeViewEventArgs.cs: Fixed whitespace and set eol-style:native attribute
31502 2005-09-21 Jackson Harper <jackson@ximian.com>
31504 * TreeNode.cs: Call Before/After Expand not Collapse when
31507 2005-09-20 Jackson Harper <jackson@ximian.com>
31509 * XplatUIX11.cs: Use the more hand looking hand (in most themes).
31511 2005-09-16 Jordi Mas i Hernandez <jordi@ximian.com>
31515 - Fixes proper storing of subitems
31516 - Fixes not updated items
31518 2005-09-20 Peter Dennis Bartok <pbartok@novell.com>
31520 * Control.cs, TextBoxBase.cs, TextControl.cs: Don't do certain
31521 things if our window handle isn't created yet. Also disabled
31522 debug for TextBoxBase
31524 2005-09-20 Peter Dennis Bartok <pbartok@novell.com>
31526 * MenuAPI.cs: Remove filtering of events to allow menu usage
31528 2005-09-20 Miguel de Icaza <miguel@novell.com>
31530 * Cursor.cs: Allow null to be passed to Cursor.Current.
31532 2005-09-20 Alexander Olk <alex.olk@googlemail.com>
31534 * ThemeWin32Classic.cs:
31535 - Change some private methods/fields to protected virtual so that
31536 they can be accessed and overriden in derived classes
31537 - First refactoring of some methods. Derived themes now don't
31538 need to duplicate the complete code from ThemeWin32Classic
31540 - Added nice StatusBar
31541 - Derive from ThemeWin32Classic and not Theme
31542 - Removed duplicate ThemeWin32Classic code
31544 2005-09-20 Miguel de Icaza <miguel@novell.com>
31546 * Control.cs (ControlCollection.Add): If the value null is passed
31547 the control is ignored.
31549 Optimize this loop.
31551 2005-09-19 Peter Dennis Bartok <pbartok@novell.com>
31553 * MenuAPI.cs: Replaced Application.Run() with a loop that tracks
31554 PostQuitMessage state.
31555 * XplatUIWin32.cs: Removed bogus PostQuitMessage P/Invoke with HWND arg
31557 2005-09-19 Peter Dennis Bartok <pbartok@novell.com>
31559 * Application.cs: Our constructor will never get called, move
31560 initialization to fields; fixes bug #75933
31562 2005-09-19 Hisham Mardam Bey <hisham.mardambey@gmail.com>
31565 - Allow files to be selected properly using file name
31567 - Add ability to change diretory (absolute / relative)
31568 using file name combo box.
31570 2005-09-16 Jordi Mas i Hernandez <jordi@ximian.com>
31573 - Fixes Multicolumn listboxes item wrong calculations
31574 - Allows to click when only one item is in the listbox
31575 - Fixes crash when no items using keyboard navigation
31577 2005-09-16 Alexander Olk <alex.olk@googlemail.com>
31579 * ComboBox.cs: Reverted almost everything from the latest patch which
31582 2005-09-16 Kazuki Oikawa <kazuki@panicode.com>
31585 - Fixed #Mtd2 of ToolTipTest.RemoveToolTipTest.
31587 - When DropDownStyle is Simple, it does not show scrollbar
31588 to the last item of the list.
31589 - When DropDownStyle is Simple, it crashed when the list was
31590 scrolled down with the down cursor key.
31591 - Fixed a bug that when DropDownStyle is DropDownList, the
31592 selected item was not shown.
31593 - The position of the selected item was not preserved when
31594 the next dropdown happened.
31595 * ThemeWin32Classic.cs:
31596 - Items were wrapped at the right end.
31597 * CheckedListBox.cs:
31600 - Items should be fully shown.
31601 - When resizing and vertical scrollbar disappeared, the item
31602 of index 0 should be on the top of the list.
31603 - GetItemRectangle should consider the size of ver. scrollbar
31605 - SizingGrip area should not be allocated when it is not
31607 - Now it reflects MinWidth of the containing panel and
31608 fixed a crash that happens when its width becomes so small.
31610 2005-09-13 Jordi Mas i Hernandez <jordi@ximian.com>
31612 * CheckedListBox.cs: Fixes bug 76028
31613 * ListBox.cs: Fixes bug 76028
31615 2005-09-13 Jordi Mas i Hernandez <jordi@ximian.com>
31617 * ThemeWin32Classic.cs: Sets clipping on DataGridPaintRowsHeaders
31618 * DataGridDrawingLogic.cs: fixes issues with Datagrid drawing
31620 2005-09-12 Jordi Mas i Hernandez <jordi@ximian.com>
31622 * XplatUIX11.cs: fixes System.NullReferenceException in some situations
31624 2005-09-09 Jonathan Chambers <jonathan.chambers@ansys.com>
31626 * IRootGridEntry.cs: Changed namespace to PropertyGridInternal
31628 2005-09-09 Jonathan Chambers <jonathan.chambers@ansys.com>
31630 * IRootGridEntry.cs: Added
31631 * PropertyGridCommands.cs: Added
31632 * PropertiesTab.cs: Added missing methods and property
31633 * PropertyGridView.cs: Made class internal
31634 * PropertyGridTextBox.cs: Made class internal
31636 2005-09-09 Alexander Olk <alex.olk@googlemail.com>
31638 * MimeIcon.cs: Try to check some other environment variables
31639 if "DESKTOP_SESSION" returns "default"
31641 2005-09-09 Alexander Olk <alex.olk@googlemail.com>
31643 * ThemeNice.cs: Corrected background colors (e.g. menus)
31644 * ColorDialog.cs: Use correct background colors for controls
31646 2005-09-09 Alexander Olk <alex.olk@googlemail.com>
31648 * ThemeNice.cs: Merged r49535 from ThemeWin32Classic
31650 2005-09-08 Peter Dennis Bartok <pbartok@novell.com>
31652 * RichTextBox.cs: Added initial implementation
31653 * lang.cs: Removed. Was accidentally checked in long time ago
31654 * TODO: Removed. Contents were obsolete
31656 2005-09-06 Jonathan Chambers <jonathan.chambers@ansys.com>
31658 * PropertiesTab.cs : Added
31660 2005-09-06 Jonathan Chambers <jonathan.chambers@ansys.com>
31662 * PropertyGrid.cs : Update
31663 * PropertyGridView.cs : Update
31664 * System.Windows.Forms.resx : Added images and strings
31666 2005-09-06 Peter Dennis Bartok <pbartok@novell.com>
31668 * ThemeNice.cs: Do not dispose Pens retrieved from ResPool
31670 2005-09-06 Peter Dennis Bartok <pbartok@novell.com>
31672 * XplatUIX11.cs: Force a flush after Ungrab; if case the app enters
31673 a busy loop right after the Ungrab the X11 display is otherwise
31676 2005-09-06 Jordi Mas i Hernandez <jordi@ximian.com>
31678 * ThemeWin32Classic.cs: Optimise the use of clipping
31680 2005-09-05 Jordi Mas i Hernandez <jordi@ximian.com>
31682 * DataGrid.cs: fixes recursion bug
31684 2005-09-03 Alexander Olk <alex.olk@googlemail.com>
31687 - Draw RadioButton and CheckBox Buttons with DrawButtonBase
31690 2005-09-02 Alexander Olk <alex.olk@googlemail.com>
31692 * ThemeNice.cs: Draw nice ProgressBars
31694 2005-09-01 Miguel de Icaza <miguel@novell.com>
31696 * VScrollBar.cs: Another buglet found by Aaron's tool.
31698 * ProgressBar.cs: Fix three recursive bugs found by Aaron Tomb's
31701 2005-08-30 Alexander Olk <alex.olk@googlemail.com>
31704 - Added nicer menu drawing
31708 2005-08-30 Peter Dennis Bartok <pbartok@novell.com>
31710 * CreateParams.cs (ToString): Made output match MS
31711 * Control.cs (Text): Don't set Text or Focus via XplatUI unless
31712 handle is already created (to avoid forcing window creation)
31713 * XplatUIX11.cs: Set window text to caption after creating window,
31714 in case Text was set before window was created
31715 * Form.cs: Use this.Text instead of a static string as caption
31717 2005-08-30 Peter Dennis Bartok <pbartok@novell.com>
31719 * NotifyIcon.cs: Don't set the window to visible; this screws
31720 up Win32 (causes WM_NCPAINT to be sent on Win32, which calls
31721 OnPaint without a bitmap)
31722 * XplatUIX11.cs: Removed Visible optimization in AddExpose; doesn't
31723 happen very often anyway; we could add the check to the WM_PAINT
31724 event generation code
31726 2005-08-30 Peter Dennis Bartok <pbartok@novell.com>
31728 * NotifyIcon.cs: Fill the icon area with a background color, to
31729 avoid 'residue' when transparent icons are drawn
31731 - Handle whole_window == client_window when destroying windows
31732 - SystrayAdd(): Set client_window to whole_window value to
31733 get mouse and other events passed to NotifyIcon
31735 2005-08-30 Peter Dennis Bartok <pbartok@novell.com>
31737 * Form.cs: Set proper default for Opacity property
31739 - ShowSystray(): Don't bother creating telling the OS
31740 about the systray item if no icon is provided
31741 - Now handles WM_NCPAINT message to deal with whole/client window
31743 - Create window as visible to not get caught by Expose optimization
31744 * Hwnd.cs: Removed debug message
31745 * ComboBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs, TabControl.cs,
31746 StatusBar.cs, TreeView.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched
31747 PaintEventStart/End to use new client argument
31749 - Commented out debug messages
31750 - Switched PaintEventStart/End to use new client argument
31751 * XplatUI.cs: Added client window bool to PaintEventStart()/
31752 PaintEventEnd() calls, to support drawing in non-client areas
31753 * XplatUIDriver.cs:
31754 - Added client window bool to PaintEventStart()/PaintEventEnd()
31755 calls, to support drawing in non-client areas
31756 - Added conditional compile to allow using MWF BeginInvoke
31759 - Added some conditional debug output
31760 - Fixed SystrayAdd() method to support new (for SystrayAdd, anyway)
31761 whole/client window split
31762 - Implemented handling of client argument to PaintEventStart()/End()
31764 - Throw exception if BeginInvoke() is called and the window handle
31765 or one of the window's parent handles is not created
31766 - Added conditional compile to allow using MWF BeginInvoke on
31768 - get_Parent(): Only sets parent if handle is created. This avoids
31769 forcing window handle creation when parent is set.
31770 - Now fires Layout and Parent changed events in proper order
31771 - Switched to use Handle instead of window.Handle for Z-Order setting,
31772 the get_Parent() patch above causes us to possibly get null for 'window'
31773 - Implemented handling of client argument to PaintEventStart()/End()
31774 - Now reports back to windows that WM_SETCURSOR was handled (to avoid
31776 - Now sends a Refresh() to all child windows when Refresh() is called
31778 2005-08-29 Peter Dennis Bartok <pbartok@novell.com>
31780 * Form.cs: Added (non-functional) Opacity property
31781 * XplatUIWin32.cs (SystrayAdd): Removed bogus line of code
31783 2005-08-29 Alexander Olk <xenomorph2@onlinehome.de>
31784 * ThemeNice.cs: New theme for MWF, based on ThemWin32Classic
31785 use export MONO_THEME=nice to activate it.
31786 Currently supported controls:
31790 - TabControl (TabAlignment.Top only, other will follow)
31791 * ThemeEngine.cs: Add theme nice
31792 * ButtonBase.cs: Redraw button on MouseEnter and MouseLeave everytime,
31795 2005-08-25 Jonathan Chambers <jonathan.chambers@ansys.com>
31797 * Splitter.cs: Resize docked control and its neighbor.
31799 2005-08-24 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
31800 -- Making Windows with Menus layout correctly --
31801 * Form.cs : The first leg of the fix
31802 Menu setter - adjust Client Size as needed to make space for the menu
31803 SetClientSizeCore - doesn't call base version to be able to pass the
31804 menu handle to XplatUI.CalculateWindowRect
31805 * Hwnd.cs: Fix for menu_height, now gets from MenuAPI.MENU
31806 * XplatUIX11.cs: The critical second leg of the fix
31807 GetWindowPos needs to use a recalculated client_rect
31808 so that resizing the window doesn't break layout of child controls.
31809 Also a more complete rule to avoid X Server roundtrips in SetWindowPos
31810 Lots of \t\n killed
31812 2005-08-23 Peter Dennis Bartok <pbartok@novell.com>
31814 * Label.cs: Now properly recalculates width and height on Font and Text
31815 changes if AutoSize is set
31817 2005-08-19 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
31818 * TreeView.cs : Revamped drawing logic, and support for FullRowSelect
31820 2005-08-19 Jordi Mas i Hernandez <jordi@ximian.com>
31822 * ImageList.cs: Makes ToString method compatible with MS
31824 2005-08-18 Jordi Mas i Hernandez <jordi@ximian.com>
31826 * MenuAPI.cs: fixes bug 75716
31828 2005-08-11 Umadevi S <sumadevi@novell.com>
31829 * Control.cs: Fixed Remove & RemoveAt to make the parent of the control null.
31831 2005-08-11 Umadevi S <sumadevi@novell.com>
31832 * Contorl.cs: Fixed ResetRightToLeft and ResetImeMode to work correctly
31834 2005-08-10 Umadevi S <sumadevi@novell.com>
31835 * CheckedListBox.cs: Fixed event firing on Adding to the CheckedListBox
31837 2005-08-07 Jordi Mas i Hernandez <jordi@ximian.com>
31839 * Menu.cs: fixes bug 75700
31840 * MenuAPI.cs: fixes navigation issues
31842 2005-08-09 Umadevi S <sumadevi@novell.com>
31843 * CheckedListBox.cs - simple fix for GetItemChecked.
31845 2005-08-08 Jordi Mas i Hernandez <jordi@ximian.com>
31847 * ComboBox.cs: Serveral fixes
31848 * ListBox.cs: Serveral fixes
31850 2005-08-05 Jordi Mas i Hernandez <jordi@ximian.com>
31852 * ComboBox.cs: Fixes FindString methods and GetItemHeight
31853 * ListBox.cs: Fixes FindString methods
31855 2005-08-05 Jordi Mas i Hernandez <jordi@ximian.com>
31857 * DataGrid.cs: fixes bugs exposed by new tests
31859 2005-08-04 Peter Dennis Bartok <pbartok@novell.com>
31861 * Mime.cs: Compile Mono assembly references only if compiling
31862 with Mono (Allows to build with VS.Net again)
31864 2005-07-28 Marek Safar <marek.safar@seznam.cz>
31866 * Control.cs (PaintControlBackground): Draw background image
31868 (CheckForIllegalCrossThreadCalls): Stubbed.
31870 * Form.cs (OnCreateControl): Center when should be centered.
31872 * ThemeWin32Classic.cs (DrawPictureBox): Pass size.
31874 2005-07-19 Jordi Mas i Hernandez <jordi@ximian.com>
31876 * Binding.cs: Binding to properties should be case unsensitive
31878 2005-07-18 vlindos@nucleusys.com
31880 * DataGrid.cs: fixes setmember order
31882 2005-07-07 Alexander Olk <xenomorph2@onlinehome.de>
31884 * MimeIcon.cs: added MimeIcon stuff (MimeIconEngine)
31885 * FileDialog.cs: FileDialog is now resizable and uses the new
31888 2005-07-06 Jordi Mas i Hernandez <jordi@ximian.com>
31890 * DataGridTextBoxColumn.cs: default value
31891 * GridColumnStylesCollection.cs: fixes event firing, checking MappingName
31892 * GridTableStylesCollection.cs: fixes checking MappingName
31893 * DataGridDrawingLogic.cs: fixes drawing logic issues
31894 * DataSourceHelper.cs: rewritten to make compatible with more data sources
31895 * DataGrid.cs: fixes
31897 2005-07-06 Alexander Olk <xenomorph2@onlinehome.de>
31899 * MimeGenerated.cs: Use case sensitive comparer for
31900 NameValueCollections
31902 2005-07-01 Jordi Mas i Hernandez <jordi@ximian.com>
31904 * DataGridTextBoxColumn.cs: bug fixes, code refactoring
31905 * ThemeWin32Classic.cs: bug fixes, code refactoring
31906 * DataGridDrawingLogic.cs: bug fixes, code refactoring
31907 * DataGrid.cs: bug fixes, code refactoring
31908 * DataGridTextBox.cs: bug fixes, code refactoring
31909 * DataGridColumnStyle.cs: bug fixes, code refactoring
31910 * Theme.cs: bug fixes, code refactoring
31912 2005-07-01 Peter Bartok <pbartok@novell.com>
31914 * TextControl.cs: Quick fix for the reported crash on ColorDialog
31915 and other text box usage
31917 2005-07-01 Jackson Harper <jackson@ximian.com>
31919 * TabControl.cs: Make sure the bottom of the tab covers the pages
31922 2005-06-30 Peter Bartok <pbartok@novell.com>
31924 * Form.cs (ShowDialog): Assign owner of the dialog
31925 * TextBoxBase.cs: Always refresh caret size when deleting, caret
31926 might have been moved to a tag with different height
31928 2005-06-30 Jackson Harper <jackson@ximian.com>
31930 * Form.cs: Don't create an infinite loop when setting focus
31931 * MenuItem.cs: Don't dirty the parents if we don't have any
31933 2005-06-29 Ben Maurer <bmaurer@ximian.com>
31935 * LibSupport.cs: Rename
31937 2005-06-29 Peter Bartok <pbartok@novell.com>
31939 * TextBoxBase.cs: Re-align caret after deleting a character
31941 - DeleteChars(): Ensure that tag covers the provided position
31942 - StreamLine(): Drop reference for dropped tag
31944 2005-06-29 Peter Bartok <pbartok@novell.com>
31947 - Selections now work properly, anchoring at the initial location
31948 and properly extending in either direction (SetSelectionToCaret(),
31949 SetSelectionStart() and SetSelectionEnd())
31950 - No longer redraws the whole control on selection change, now
31951 calculates delta between previous and new selection and only
31952 invalidates/redraws that area
31953 - Fixed FindPos() math off-by-one errors
31954 - Changed DeleteChars() to verify the provided tag covers the
31955 provided position, selections may have a tag that doesn't cover
31956 the position if the selection is at a tag border
31957 - Fixed off-by-one errors in DeleteChars()
31958 - Added missing streamlining check in DeleteChars() to remove
31960 - Implemented Invalidate() method, now properly calculates exposures
31961 between two given lines/positions
31962 - Implemented SetSelection()
31963 - Obsoleted and removed FixupSelection()
31964 - Improved RecalculateDocument() logic, removing code duplication
31966 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
31968 * LibSupport.cs: changes to match different input/output arguments.
31970 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
31972 * LibSupport.cs: added libsupport.so init routine.
31974 2005-06-29 Jordi Mas i Hernandez <jordi@ximian.com>
31976 * ControlBindingsCollection.cs
31977 - Throws an exception on null datasource when adding
31978 - Checks for duplicated bindings when adding
31980 2005-06-28 Jackson Harper <jackson@ximian.com>
31982 * TreeView.cs (OnKeyDown): Support left and right properly
31983 (navigates as well as expanding and collapsing.
31984 - Add support for Multiply, this expands all the selected nodes
31986 - Fix some tabbing.
31988 2005-06-28 Jackson Harper <jackson@ximian.com>
31990 * TreeView.cs: Implement keyboard navigation, currently supports,
31991 LEFT, RIGHT, UP, DOWN, PGUP, PGDOWN, HOME, END, ADD, SUBTRACT. Add
31992 support for toggling checkboxes with the space bar.
31994 2005-06-28 Jackson Harper <jackson@ximian.com>
31996 * OpenTreeNodeEnumerator.cs: Don't move past the begining of the
31999 2005-06-28 Jackson Harper <jackson@ximian.com>
32001 * TreeView.cs: Add missing event.
32003 2005-06-27 Peter Bartok <pbartok@novell.com>
32006 - Made line ending size configurable (now allows for counting
32007 lineendings as \n or \r\n)
32008 - Added margin to viewport to keep caret visible on right side
32009 - Fixed translation routines for line/pos to documentpos to consider
32010 cr/lf when counting (Fixes RichTextBox.SelectionFont issues)
32011 - Fixed some line-endings to be unix style
32012 - Fixed Document.FormatText to perform it's calculations 1-based
32013 - Added descriptions for a few methods that might otherwise get
32015 - Added NOTE section with some basic conventions to remember at
32016 the top of the file
32017 - Major fixup for RichTextBox selection drawing:
32018 * Fixed crashes when multiple tags on a single line were selected
32019 * fixed selection box drawing not overlaying text
32020 * fixed bogus offset calculation for tags not starting at index 1
32021 * Switched behaviour from using multiple Substrings of a
32022 StringBuilder.ToString() to using multiple
32023 StringBuilder.ToString(start, length) statements, hoping this is
32024 faster (kept original version commented out in the code, in case
32025 original version was faster)
32026 * TextBox.cs (set_TextAlignment): TextBox always needs to wrap if
32028 * TextBoxBase.cs (CalculateDocument): Made protected so RichTextBox can
32031 2005-06-27 Jackson Harper <jackson@ximian.com>
32033 * TabControl.cs: Move to the left and right with the arrow
32034 keys. These keys don't cycle beyond first and last like
32035 tab. Refresh all the tabs when scrolling them to the left or
32038 2005-06-27 Jackson Harper <jackson@ximian.com>
32041 - ToString: Added method
32042 - CreateParams: Remove TODO and comment
32043 - OnKeyDown: Cycle through bounds properly.
32044 - SelectedIndex: Scroll to the right or left if we need to
32045 display the newly selected tab.
32047 2005-06-23 Jackson Harper <jackson@ximian.com>
32049 * TabControl.cs: Stay in bounds when cycling. Make sure Handled is
32052 2005-06-23 Jackson Harper <jackson@ximian.com>
32054 * TabControl.cs: Keyboard handling. We now support CTRL-TAB,
32055 CTRL-SHIFT-TAB, and HOME, END are there any others?
32057 2005-06-23 Jackson Harper <jackson@ximian.com>
32059 * XplatUIX11.cs: Get the modifier keys from the keyboard driver.
32061 2005-06-22 Jordi Mas i Hernandez <jordi@ximian.com>
32063 * DataGridTextBoxColumn.cs: fixes and enhancements
32064 * ThemeWin32Classic.cs: fixes and enhancements
32065 * DataGridBoolColumn.cs: fixes and enhancements
32066 * DataGridDrawingLogic.cs: fixes and enhancements
32067 * CurrencyManager.cs: fixes and enhancements
32068 * DataGrid.cs: fixes and enhancements
32069 * DataGridColumnStyle.cs: fixes and enhancements
32071 2005-06-22 Jackson Harper <jackson@ximian.com>
32073 * TabControl.cs: Add some missing methods that just call into the
32074 base. Make the TabPageCollection's IList interface behave in the
32075 same manner as the MS implementation.
32077 2005-06-22 Peter Bartok <pbartok@novell.com>
32079 * TextControl.cs: Added sanity check
32081 - Fixed wrapping behaviour, don't set wrap on single line controls
32082 (this fixes the breakage of colordialog introduced in an earlier
32084 - Added rudimentary support for autoscrolling right-aligned controls
32085 (still needs fixing, also, center alignment scroll is missing)
32087 2005-06-22 Jordi Mas i Hernandez <jordi@ximian.com>
32089 * ScrollBar.cs: Fixes thumbpos on Maximum values
32091 2005-06-21 Jonathan Chambers <jonathan.chambers@ansys.com>
32093 * PropertyGridView.cs: Pass context information to UITypeEditors
32095 2005-06-21 Peter Bartok <pbartok@novell.com>
32098 - Now calling PositionCaret with absolute space coordinates
32099 - Enabled vertical scrolling
32100 - Better tracking of scrollbar changes, tied into WidthChange
32102 - Improved cursor tracking
32103 - Removed debug output
32105 - PositionCaret coordinates are now works in absolute space, not
32107 - Improved tracking of document size
32108 - Added events for width and height changes
32110 2005-06-21 Peter Bartok <pbartok@novell.com>
32112 * Form.cs: Set focus to active control when form is activated
32114 - Added word-wrap functionality to RecalculateLine()
32115 - Added some short function descriptions for VS.Net to aid in
32116 writing dependent controls
32117 - Added Caret property, returning the current coords of the caret
32118 - Added ViewPortWidth and ViewPortHeight properties
32119 - Added Wrap property
32120 - Added CaretMoved event
32121 - Removed some old debug code
32122 - Split() can now create soft splits
32123 - Added PreviousTag()/NextTag() to allow walking "tag-lists"
32124 - Added method to format existing text
32125 - Fixed size/alignment calculations to use viewport
32126 - RecalculateDocument now can handle changing line-numbers while
32130 - Added some wrap logic, we don't wrap if alignment is not left
32131 - Added casts for scrollbar var, base class switched types to
32132 also support RichTextBoxA
32133 - Implemented handling of scrollbar visibility flags
32136 - Switched scrollbars type to RichTextBoxScrollBars to support
32138 - Added tracking of canvas width/height
32139 - Switched scrollbars to be not selectable (to keep focus on text)
32140 - Added central CalculateDocument() method to handle all redraw
32142 - Added ReadOnly support
32143 - Added WordWrap support
32144 - Fixed handling of Enter key (we now treat it as a DialogKey)
32145 - Fixed caret positioning when h or v scroll is not zero
32146 - Fixed placing/generation of vertical scrollbar
32147 - Added CalculateScrollBars() method to allow updating scrollbar
32148 limits and visibility
32149 - Fixed handling of horizontal scroll
32150 - Added handling of vertical scroll
32151 - Implemented auto-'jump' when caret moves to close to a left or
32152 right border and there is text to be scrolled into view (currently
32153 there's the potential for a stack overflow, until a bug in
32154 scrollbar is fixed)
32156 2005-06-21 Geoff Norton <gnorton@customerdna.com>
32158 * XplatUIOSX.cs: Initial implementation of WM_ERASEBKGND
32160 2005-06-19 Alexander Olk <xenomorph2@onlinehome.de>
32164 - return application/x-zerosize for files with size zero
32165 (if no extension pattern matches).
32166 - check matches collection for strings too.
32167 - return only the first mime type if the name value
32168 collection has more than one mime type.
32170 2005-06-18 Jonathan Chambers <jonathan.chambers@ansys.com>
32172 * PropertyGrid.cs: Cleaned up some TODOs
32173 * PropertyGridView.cs: Added support for UITypeEditors
32175 2005-06-17 Jordi Mas i Hernandez <jordi@ximian.com>
32177 * DataGrid.cs: clears cached value
32179 2005-06-17 Jordi Mas i Hernandez <jordi@ximian.com>
32181 * DataGridTextBoxColumn.cs: new rows, speed improvements, fixes, readonly prop.
32182 * DataGridDrawingLogic.cs: new rows, speed improvements, fixes, readonly prop.
32183 * DataGrid.cs: new rows, speed improvements, fixes, readonly prop.
32184 * DataGridColumnStyle.cs: new rows, speed improvements, fixes, readonly prop.
32186 2005-06-16 Jordi Mas i Hernandez <jordi@ximian.com>
32188 * ThemeWin32Classic.cs: fixes colour
32190 2005-06-15 Peter Bartok <pbartok@novell.com>
32192 * MWFCategoryAttribute.cs: Added (Needed for PropertyGrid designer support)
32193 * MWFDescriptionAttribute.cs: Added (Needed for PropertyGrid designer support)
32194 * ButtonBase.cs: Added MWFCategory and MWFDescription attributes
32195 * Control.cs: Added some MWFCategory and MWFDescription attributes
32196 * ScrollBar.cs: Added some MWFCategory and MWFDescription attributes
32198 2005-06-15 Alexander Olk <xenomorph2@onlinehome.de>
32200 * Mime.cs, MimeGenerated.cs: First draft of MWF mime stuff, see Mime.cs for
32203 2005-06-14 Jordi Mas i Hernandez <jordi@ximian.com>
32205 * DataGridTextBoxColumn.cs: default datagrid settings for Default Styles, fixes
32206 * DataGridTableStyle.cs: default datagrid settings for Default Styles, fixes
32207 * DataGridDrawingLogic.cs: default datagrid settings for Default Styles, fixes
32208 * DataGridBoolColumn.cs: default datagrid settings for Default Styles, fixes
32209 * DataGrid.cs: default datagrid settings for Default Styles, fixes
32210 * DataGridColumnStyle.cs: default datagrid settings for Default Styles, fixes
32212 2005-06-13 Jackson Harper <jackson@ximian.com>
32214 * XplatUIX11.cs: Override SetAllowDrop on X11 so an error message
32215 isn't printed when the user enables dropping. (X11 does accept
32218 2005-06-13 Jackson Harper <jackson@ximian.com>
32220 * TreeView.cs: Remove some TODOS.
32222 2005-06-13 Jackson Harper <jackson@ximian.com>
32224 * Form.cs: Hook into the mdi framework.
32225 * MdiClient.cs: Use the base control collections add method so
32226 parents get setup correctly. Set the default back colour and dock
32228 * MdiChildContext.cs: New class, this bad actor handles an
32229 instance of an MDI window. Right now there is only basic
32230 support. You can drag, close, and resize windows. Minimize and
32231 Maximize are partially implemented.
32233 2005-06-13 Jackson Harper <jackson@ximian.com>
32235 * XplatUIX11.cs: Mash numbers together properly, otherwise we get
32236 freaky when both vals are negative. NOTE: There are probably other
32237 places in XplatUIX11 that this needs to be done.
32239 2005-06-13 Jordi Mas i Hernandez <jordi@ximian.com>
32241 * DataGrid.cs: implement missing methods, move KeyboardNavigation
32242 * DataGridColumnStyle.cs: fixes signature
32244 2005-06-12 Jackson Harper <jackson@ximian.com>
32246 * XplatUIX11.cs: Use sizing cursors similar to the ones on
32249 2005-06-11 Jackson Harper <jackson@ximian.com>
32251 * StatusBarPanel.cs: Signature cleanups. Implement
32254 2005-06-10 Jordi Mas i Hernandez <jordi@ximian.com>
32256 * DataGridTextBoxColumn.cs: Honors aligment
32257 * GridColumnStylesCollection.cs: Contains is case unsensitive
32258 * GridTableStylesCollection.cs: several fixes
32259 * DataGridTableStyle.cs: default column creation
32260 * DataGridDrawingLogic.cs: fixes
32261 * CurrencyManager.cs: ListName property
32262 * DataGrid.cs: multiple styles support
32263 * DataGridColumnStyle.cs: fixes
32266 2005-06-10 Peter Bartok <pbartok@novell.com>
32268 * Control.cs(Select): Moved SetFocus call to avoid potential
32269 loops if controls change the active control when getting focus
32270 * UpDownBase.cs: Fixes to allow proper keyboard focus after clicking
32271 the up/down buttons
32273 2005-06-10 Matthias Felgner <matthiasf@voelcker.ocm>
32275 * ImageListConverter.cs: Implemented
32277 2005-06-10 John BouAntoun <jba-mono@optusnet.com.au>
32279 * MonthCalendar.cs: Wired in NumericUpDown control for year
32281 2005-06-10 John BouAntoun <jba-mono@optusnet.com.au>
32283 * MonthCalendar.cs: Removed MonoTodo attributes on Click and
32284 DoubleClick events, since they are not meant to be fired.
32286 2005-06-09 Peter Bartok <pbartok@novell.com>
32288 * UpDownBase.cs, NumericUpDown.cs, DomainUpDown.cs: Integrated
32289 Jonathan's standalone controls into MWF, implemented missing
32290 events, attributes and methods; added xxxAccessible classes
32291 * AccessibleObject.cs: Made fields internal so other classes
32292 can change them if needed
32294 2005-06-09 Jonathan Gilbert <2a5gjx302@sneakemail.com>
32296 * UpDownBase.cs: Complete implementation
32297 * NumericUpDown.cs: Complete implementation
32298 * DomainUpDown.cs: Complete implementation
32300 2005-06-09 Jordi Mas i Hernandez <jordi@ximian.com>
32302 * DataGridTextBoxColumn.cs: drawing fixes
32303 * DataGridCell.cs: fixes ToString method to match MSNet
32304 * DataGridTableStyle.cs: fixes
32305 * DataGridBoolColumn.cs: fixes, drawing
32306 * DataGridDrawingLogic.cs: fixes, new methods
32307 * DataGridTextBox.cs: Keyboard and fixes
32309 - Keyboard navigation
32311 - Row selection (single, multiple, deletion, etc)
32314 2005-06-07 Jackson Harper <jackson@ximian.com>
32316 * ThemeWin32Classic.cs: Clear the background area when drawing
32319 2005-06-06 Peter Bartok <pbartok@novell.com>
32321 * ImageListStreamer.cs: Fixed signature for GetData
32322 * CheckBox.cs: Fixed base class for CheckBoxAccessibleObject
32324 - Added missing ChildAccessibleObject class
32325 - Added missing OnXXXFocus overrides, switched to using those
32326 instead of the event handler
32328 - Added Parent property for ControlAccessibleObject
32331 - Added ResetBindings()
32332 * ListBindingConverter.cs: Implemented some methods
32333 * ButtonBase.cs: Added missing ButtonBaseAccessibleObject class
32334 * ImageList.cs: Implemented basic handle scheme, removed TODOs
32335 * ContainerControl.cs: Fixed signature, now subscribing to the
32336 ControlRemoved event instead of overriding the handler, LAMESPEC
32337 * CurrencyManager.cs: Added missing attribute
32338 * MonthCalendar.cs: Added missing properties
32340 2005-06-06 Jordi Mas i Hernandez <jordi@ximian.com>
32342 * DataGridColumnStyle.cs: fixes for DataGridColumnStyle
32344 2005-06-06 Gaurav Vaish and Ankit Jain
32346 * DataSourceHelper.cs: Gaurav Vaish and Ankit Jain patch for databinding
32347 * DataGrid.cs: Gaurav Vaish and Ankit Jain patch for databinding
32349 2005-06-06 Jordi Mas i Hernandez <jordi@ximian.com>
32351 * Control.cs: fixes CreateParams Width / Height.
32353 2005-06-05 Peter Bartok <pbartok@novell.com>
32355 * Win32DnD.cs: Removed compilation warnings
32357 2005-06-05 Peter Bartok <pbartok@novell.com>
32359 * Control.cs (CreateParams): Since we don't know if one of the
32360 properties we use is overridden, lets make sure if we fail accessing
32361 we continue with a backup plan
32363 2005-06-05 Peter Bartok <pbartok@novell.com>
32366 - Removed debug output
32367 - Added MarshalAs attribute to ensure proper marshalling of FORMATETC
32369 - Plugged resource leak
32370 * XplatUIStructs.cs: Changed ClipboardFormats size to ushort, to match
32373 2005-06-05 Peter Bartok <pbartok@novell.com>
32375 * XplatUIWin32.cs: Removed DnD code
32376 * Win32DnD.cs: Implemented drop source and drop target functionality
32378 2005-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
32380 * UpDownBase.cs: remove duplicate addition of event, enable some code
32381 that was commented out.
32382 * NumericUpDown.cs: added missing attributes and Hexadecimal property.
32383 Validate input when a key is pressed. It works fine now for every
32384 combination of Hexadecimal. Only missing some drawing love when sharing
32385 space with other controls.
32387 2005-06-04 Peter Bartok <pbartok@novell.com>
32390 - We need to pass a window for DragDrop, so enable callback events
32391 - Added DnD callback events when being a DragSource
32392 * XplatUI.cs (StartDrag): Added window handle argument
32393 * XplatUIDriver.cs (StartDrag): Added window handle argument
32394 * QueryContinueDragEventArgs: Made fields internally accessible so
32395 drivers can set them
32396 * GiveFeedbackEventArgs: Made fields internally accessible so drivers
32399 2005-06-03 Jordi Mas i Hernandez <jordi@ximian.com>
32401 * DataGridTextBoxColumn.cs: column text editing
32402 * DataGridTableStyle.cs: Respect columns styles created by the user
32403 * DataGridDrawingLogic.cs: lots of drawing fixes and enhanments
32404 * DataGridBoolColumn.cs: bool column editing
32405 * DataGrid.cs: fixes to scrolling, properties, etc
32406 * DataGridTextBox.cs: handle keyboard
32407 * DataGridColumnStyle.cs: fixes
32409 2005-06-02 Jackson Harper <jackson@ximian.com>
32411 * ImageListStreamer.cs: Somewhat broken implementation of
32412 GetObjectData. The RLE needs some work to match MS properly.
32414 2005-06-02 Jackson Harper <jackson@ximian.com>
32416 * X11Dnd.cs: Attempting to keep at least one file in MWF
32419 2005-06-02 Peter Bartok <pbartok@novell.com>
32421 * X11DnD.cs: Use Marshal.SizeOf instead of sizeof, no /unsafe required
32424 2005-06-02 Peter Bartok <pbartok@novell.com>
32426 * Control.cs: Removed MonoTODO from DoDragDrop and added call to Xplat
32427 * XplatUI.cs: Added DoDragDrop() method
32428 * XplatUIDriver.cs: Added DoDragDrop() method
32430 2005-06-02 Jackson Harper <jackson@ximian.com>
32432 * Splitter.cs: Implement BorderStyle.
32434 2005-06-02 Jackson Harper <jackson@ximian.com>
32436 * XplatUIX11.cs: Tie into the X11Dnd subsystem.
32437 * X11Dnd.cs: New file. A subsystem that handles drag and drop on
32440 2005-06-02 Peter Bartok <pbartok@novell.com>
32443 - Added Data setter
32444 - Fixed broken insertion code for SetData, now also
32445 overwrites any existing entry of the same format name
32446 * Hwnd.cs: Added list of pointers that automatically gets
32447 freed when the window is disposed
32448 * XplatUI.cs: Call driver initialization method when loading
32451 - OnDragLeave takes EventArgs, not DragEventArgs
32452 - Added setting of WS_EX_ACCEPTFILES style when dropping is
32454 - Forces style update when drop state changes
32455 * XplatUIWin32.cs: Implemented Drag'n'Drop (as good as possible,
32456 not perfect since we cannot (yet) call the IDataObject.GetData()
32457 method, we keep getting 0x80004005 error, dunno why)
32459 2005-06-02 Peter Bartok <pbartok@novell.com>
32461 * DragEventArgs.cs: Make fields internal so we can cache the
32462 object and re-set the fields from XplatUI
32464 2005-06-02 Jackson Harper <jackson@ximian.com>
32466 * Control.cs: Add some internal methods so the DnD subsystem can
32467 raise DnD events. Also call into the driver when AllowDrop is set.
32469 * XplatUIDriver.cs: New method for setting whether or not a window
32470 is allowed to accept drag and drop messages.
32472 2005-06-01 Jordi Mas i Hernandez <jordi@ximian.com>
32474 * ScrollBar.cs: Make sure that values sent in Scroll events
32475 are always between Maximum and Minimum.
32477 2005-06-01 Marek Safar <marek.safar@seznam.cz>
32479 * Menu.cs: Call MenuChanged when menuitem visibility has been
32481 * MenuItem.cs: Rebuild menu when item is (not) visible.
32482 * MainMenu.cs: MainMenu has special MenuChanged.
32483 * Theme.cs: Caption and FrameBorderSize are not fixed.
32484 * XplatUI.cs: Added CaptionHeight,FrameBorderSize.
32485 * XplatUIDriver.cs: Introduced Caption and FrameBorderSize.
32487 * XplatUIOSX: Caption and FrameBorderSize not implemented yet.
32488 * XplatUIWin32.cs: Get Caption and FrameBorderSize from system.
32490 2005-05-30 Jackson Harper <jackson@ximian.com>
32492 * DataFormat.cs: We can't statically initialize this stuff because
32493 it calls into the xplatui and could create a loop. So we lazy init
32496 2005-05-28 Jackson Harper <jackson@ximian.com>
32498 * Control.cs: Proper implementation of Product(Name/Version).
32500 2005-05-27 Jackson Harper <jackson@ximian.com>
32502 * DataObject.cs: Dont crash if no data is found.
32504 2005-05-26 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
32505 * MdiClient.cs: Add missing Localizable attribute to BackgroundImage property
32506 as per status page, guessing it should be set to true
32508 2005-05-26 Jordi Mas i Hernandez <jordi@ximian.com>
32510 * DataGridTextBoxColumn.cs: Draws text and basic text formatting
32511 * DataGridTableStyle.cs: set proper formatting text, def header text
32512 * ThemeWin32Classic.cs: new themable paramaters
32513 * DataGridBoolColumn.cs: paint check box, get data, fixes
32514 * DataGridDrawingLogic.cs: huge improvements in painting, fixes, new methods
32515 * DataGrid.cs: fixes properties, implements vertical and horizontal scrolling
32516 * DataGridColumnStyle.cs: fixes
32517 * Theme.cs: new themable paramaters
32519 2005-05-26 Peter Bartok <pbartok@novell.com>
32521 * ContainerControl.cs: Pass AdjustFormScrollbars() call on to base
32523 2005-05-24 Jonathan S. Chambers <jonathan.chambers@ansys.com>
32524 * Control.cs: Fixed LowOrder and HighOrder to preserve sign.
32526 2005-05-24 Peter Bartok <pbartok@novell.com>
32528 * OpenFileDialog.cs, Form.cs, Menu.cs, GroupBox.cs, UserControl.cs,
32529 Label.cs, DataGridTextBoxColumn.cs, PropertyGrid.cs, ErrorProvider.cs
32530 Splitter.cs, Control.cs, FontDialog.cs, TabPage.cs,
32531 FolderBrowserDialog.cs, HelpProvider.cs, DataGridTableStyle.cs,
32532 NotifyIcon.cs, FileDialog.cs, ListView.cs, SaveFileDialog.cs,
32533 ToolBarButton.cs, ImageList.cs, DataGridBoolColumn.cs, Panel.cs,
32534 DataGrid.cs, DataGridTextBox.cs, ListBox.cs, TrackBar.cs,
32535 AxHost.cs, TabControl.cs, ScrollableControl.cs, ToolBar.cs,
32536 DataGridColumnStyle.cs, PictureBox.cs, DateTimePicker.cs,
32537 StatusBar.cs, MonthCalendar.cs, TreeView.cs: Added
32538 missing attributes, etc
32539 * DataGridPreferredColumnWidthTypeConverter.cs: Added
32541 2005-05-24 Peter Bartok <pbartok@novell.com>
32543 * Help.cs: Added, implemented trivial functions, throws up MessageBox
32544 when user tries to get help
32545 * DataObject.cs, DataFormats.cs, LinkArea.cs,
32546 SelectionRangeConverter.cs, Clipboard.cs : Removed unused variables
32547 to suppress warnings
32548 * XplatUIWin32.cs, XplatUIOSX.cs, XplatUIX11.cs: Removed unused code to
32549 avoid unreachable code warning
32551 2005-05-20 Peter Bartok <pbartok@novell.com>
32553 * CursorConverter.cs (ConvertTo): Switched to use Cursor.GetObjectData
32555 2005-05-20 Jordi Mas i Hernandez <jordi@ximian.com>
32557 * DataGridTextBoxColumn.cs: Basic painting methods
32558 * DataGridTableStyle.cs: Set table style in the column
32559 * ThemeWin32Classic.cs: Use Theme for colors
32560 * DataGridDrawingLogic.cs: Implement more drawing
32561 * DataGrid.cs: drawing, theming, enhacements, fixes
32562 * DataGridColumnStyle.cs: fixes, drawing
32563 * Theme.cs: theming for Datagrid
32565 2005-05-20 Peter Bartok <pbartok@novell.com>
32567 * Cursor.cs: Implemented GetObjectData() method
32569 2005-05-20 Peter Bartok <pbartok@novell.com>
32571 * Cursors.cs: Added setting of cursor name
32573 - Implemented constructors
32574 - Implemented Draw and DrawStretched
32575 - Implemented Current property
32576 - Implemented == and != operators
32577 - Implemented Dispose()
32578 - Implemented ToString
32579 - Added missing attributes
32581 - Added missing reset for OverrideCursor when DoEvents is called
32582 - Fixed creation of cursor, logic was wrong
32584 - Added missing reset for OverrideCursor when DoEvents is called
32585 - Fixed creation of cursor, bit arrays were swapped
32586 * Clipboard.cs: Removed obsolete MonoTODO attribute
32588 2005-05-20 Jordi Mas i Hernandez <jordi@ximian.com>
32590 * ComboBox.cs: fixes OnSelectedItemChanged
32591 * ControlBindingsCollection.cs: fixes item range check
32593 2005-05-20 Jordi Mas i Hernandez <jordi@ximian.com>
32596 - Calc preferred height properly
32597 - Implement missing properties
32599 * NumericUpDown.cs: Implement missing events
32601 2005-05-19 Jackson Harper <jackson@ximian.com>
32603 * TabControl.cs: New method that resizes the tab pages before
32604 redrawing them. This as needed as the control is double buffered
32605 and sizing will not be recalculated unless ResizeTabPages is
32607 * TabPage.cs: Set base.Text instead of Text in the constructor so
32608 that UpdateOwner does not get called. Use the new Redraw method of
32609 TabControl instead of Refresh so the sizing is recalculated.
32610 * ThemeWin32Classic.cs: Draw the text for button tabs.
32612 2005-05-19 Jackson Harper <jackson@ximian.com>
32614 * Control.cs: Paint control background images. Fix typo where
32615 PaintControlBackground was not getting called correctly.
32617 2005-05-19 Peter Bartok <pbartok@novell.com>
32619 * ScrollableControl.cs (DisplayRectangle): Undid my last change until
32620 I can investigate, apparently I broke FileDialog
32622 2005-05-19 Marek Safar <marek.safar@seznam.cz>
32624 * AxHost.cs: Some simple properties.
32625 * Control.cs: window must be accessible after ctor.
32626 * Form.cs: Added TransparencyKey property.
32627 * TextBoxBase.cs: Implemented Clear. Text property can be null.
32628 * XplatUIWin32.cs: SetBorderStyle implemented.
32630 2005-05-18 Peter Bartok <pbartok@novell.com>
32632 * DataObject.cs: Entries are not global but particular to the
32633 DataObject, now it behaves that way
32634 * XplatUIWin32.cs: Implemented Clipboard methods
32635 * Clipboard.cs: Implemented
32636 * ScrollableControl.cs (DisplayRectangle): Fixed calculation
32637 * XplatUIOSX.cs: Updated to final clipboard prototypes
32638 * XplatUIX11.cs: Implemented Clipboard methods
32639 * XplatUIDriver.cs: Updated to final clipboard prototypes
32640 * XplatUIStructs.cs:
32641 - Added BITMAPINFOHEADER struct
32642 - Added ClipboardFormats enum
32644 - Added ClipboardStruct
32645 - Added Atom enum items for clipboard types
32646 - Fixed atom types for Selection event structures
32648 - Added internal properties and methods for drivers to enumerate
32650 - Switched initialization method to allow drivers to assign their
32651 own IDs even for the MS predefined clipboard IDs
32652 * XplatUI.cs: Updated to final clipboard interface
32654 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
32655 * PropertyGridView.cs: Fixed compiler warnings.
32657 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
32658 * PropertyGrid.cs: Added some event calls
32659 * PropertyGridView.cs: Change drawing code to use double buffering
32660 * PropertyGridTextBox.cs: Changed Text property name
32661 * GridItem.cs: Added Bounds property.
32662 * GridEntry.cs: Added Bounds property.
32664 2005-05-17 Lluis Sanchez Gual <lluis@novell.com>
32666 * Binding.cs: Use IsInstanceOfType instead of IsAssignableFrom
32667 since GetType() may not return the correct type if the object is
32670 2005-05-17 Jordi Mas i Hernandez <jordi@ximian.com>
32672 * TreeNodeCollection.cs: fixes get/set item ranges
32674 2005-05-15 Jordi Mas i Hernandez <jordi@ximian.com>
32676 * ListBox.cs: Kazuki Oikawa's PreferredHeight and ItemHeight fixes
32678 2005-05-15 Jordi Mas i Hernandez <jordi@ximian.com>
32680 * ComboBox.cs: Fix item range comparation
32681 * ListView.cs: Fix item range comparation
32683 2005-05-03 Alexander Olk <xenomorph2@onlinehome.de>
32686 - Clear example panel when OnPaint is called
32687 - Better solution for displaying the example panel text
32688 - Select default indexes in the ListBoxes
32690 2005-05-11 Geoff Norton <gnorton@customerdna.com>
32692 * XplatUIOSX.cs: Avoid painting into invisible views. Fixes #74926
32694 2005-05-11 Peter Bartok <pbartok@novell.com>
32696 * LinkArea.cs: Added and implemented LinkAreaTypeConverter class
32697 * SelectionRangeConverter.cs: Implemented
32698 * PropertyGrid.cs: Fixed attribute value
32700 - Invoke(): Don't call Begin/EndInvoke if it is not neccessary
32701 - Added Sebastien Pouliot's CAS Stack Propagation fixes
32702 * XplatUIDriver.cs: Added new XplatUIDriverSupport class, for code
32703 that's common to all drivers. First methods to go there are
32704 Sebastien Pouliot's CAS Stack Propagation helper methods
32705 * XplatUIWin32.cs, XplatUIX11.cs, AsyncMethodData.cs: Fixes by
32706 Sebastien Pouliot for CAS Stack Propagation
32708 2005-05-11 Geoff Norton <gnorton@customerdna.com>
32711 XplatUIOSX.cs: More cosmetic cleanup courtesy of Artyom Tyazhelov (Artyom.Tyazhelov@helmes.ee)
32713 2005-05-12 Jordi Mas i Hernandez <jordi@ximian.com>
32715 * DataGridTextBoxColumn.cs: fixed some members
32716 * GridColumnStylesCollection.cs: indexed column is case insensitive
32717 * DataGridTableStyle.cs: fixes
32718 * ThemeWin32Classic.cs: add new theme parameter
32719 * Theme.cs: add new theme parameter
32720 * DataGridDrawingLogic.cs: Datagrid's drawing logic
32721 * DataGrid.cs: fixes, new internal properties, etc.
32722 * DataGridColumnStyle.cs: allows to set grid value
32725 2005-05-10 Peter Bartok <pbartok@novell.com>
32727 * AccessibleObject.cs:
32728 - Removed MonoTODO attribute on help, method is correct
32729 - Fixed Bounds property
32730 * AxHost.cs: Moved MonoTODO
32731 * ButtonBase.cs: Now setting AccessibleObject properties
32732 * RadioButton.cs: Setting proper AccessibleObject role
32733 * CheckBox.cs: Setting proper AccessibleObject role
32734 * ControlBindingsCollection.cs: Added properties, methods and attributes
32735 * DataFormats.cs: Fixed awkward internal API, and changed to enable
32736 userdefined DataFormats.Format items as well
32737 * ListControl.cs: Removed data_member from the public eye
32738 * OpenFileDialog.cs:
32739 - Made class sealed
32740 - Added missing attributes
32741 * SaveFileDialog.cs: Added missing attributes
32742 * ImageListStreamer.cs: Fixed code that caused warnings
32743 * LinkLabel.cs: Removed unreachable code
32744 * TreeView.cs: Fixed code that caused warnings
32745 * PropertyGridView.cs: Fixed code that caused warnings
32746 * GridColumnStylesCollection.cs: Added missing attributes
32747 * GridTableStylesCollection: Added missing attribute
32748 * PropertyManager: Added .ctor
32749 * SecurityIDType: Added
32750 * DataObject.cs: Implemented class
32751 * LinkArea.cs: Added missing attribute
32753 2005-05-11 Jordi Mas i Hernandez <jordi@ximian.com>
32755 * RadioButton.cs: call base method to allow to fire OnClick event
32756 * UpDownBase.cs: OnMouseUp call base method
32757 * CheckedListBox.cs: call base method before returning
32758 * TrackBar.cs: call base method before returning
32761 2005-05-10 Peter Bartok <pbartok@novell.com>
32763 * XplatUIX11.cs: Fix for #74902, check pending timers when peeking
32766 2005-05-10 Peter Bartok <pbartok@novell.com>
32768 * DataFormats.cs: Implemented
32769 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs,
32770 XplatUIX11.cs: Added Clipboard APIs
32771 * XplatUIWin32.cs: Implemented Clipboard APIs
32772 * FolderBrowserDialog.cs: Added missing event, attributes
32774 2005-05-10 Jordi Mas i Hernandez <jordi@ximian.com>
32776 * CheckBox.cs: call base method to allow to fire OnClick event
32778 2005-05-09 Sebastien Pouliot <sebastien@ximian.com>
32780 * XplatUI.cs: Use PlatformID.Unix under NET_2_0.
32782 2005-05-06 Peter Bartok <pbartok@novell.com>
32784 * XplatUIX11.cs: Redid Jackson's fix, it was causing a busy loop
32785 * Screen.cs: Implemented
32786 * HelpNavigator.cs: Added
32787 * XplatUIWin32.cs: Added SystemParametersInfo call, fixed WorkArea
32789 * HelpProvider.cs: Implemented all we can do until we have a CHM
32790 help library (which means that "What's This" does work now)
32792 2005-05-06 Jackson Harper <jackson@ximian.com>
32794 * XplatUIX11.cs: Fix waking up the main loop.
32796 2005-05-05 Peter Bartok <pbartok@novell.com>
32798 * XplatUI.cs: Updated revision
32799 * Form.cs: Removed enless loop
32800 * GroupBox.cs (OnPaint): Added call to base.OnPaint()
32801 * Label.cs (OnPaint): Added call to base.OnPaint()
32802 * ToolTip.cs: Made ToolTipWindow reusable for other controls
32803 * LinkLabel.cs (OnPaint): Added call to base.OnPaint()
32804 * UpDownBase.cs (OnPaint): Moved base.OnPaint() call to end of method
32806 * ButtonBase.cs: Moved base.OnPaint() call to end of method
32807 * ThemeWin32Classic.cs: Replaced references to ToolTip with references
32808 to ToolTip.ToolTipWindow for drawing and size methods; this allows
32809 reuse of ToolTipWindow by other controls
32810 * SizeGrip.cs: Moved base.OnPaint() call to end of method
32811 * XplatUIX11.cs: Now clipping drawing area (experimental)
32812 * PictureBox.cs: Moved base.OnPaint() call to end of method
32813 * Theme.cs: Fixed ToolTip abstracts to match new format
32814 * ErrorProvider.cs: Implemented
32816 2005-05-05 Jordi Mas i Hernandez <jordi@ximian.com>
32818 * Label.cs: fire events using OnAutoSizeChanged and OnTextAlignChanged
32822 - Implements LinkBehavior
32823 - Fixes many issues
32825 2005-05-03 Jackson Harper <jackson@ximian.com>
32827 * ListView.cs: Calculate the scrollbar positioning on resize and
32828 paint, so they get put in the correct place.
32830 2005-05-03 Alexander Olk <xenomorph2@onlinehome.de>
32832 * ColorDialogs.cs: The small color panels are now handled by
32833 SmallColorControl. This fixes drawing of the focus rectangle
32834 and adds a 3D border.
32836 2005-05-03 Peter Bartok <pbartok@novell.com>
32838 * Control.cs: Modified version of Jonathan Chamber's fix for
32841 2005-05-03 Jackson Harper <jackson@ximian.com>
32843 * ListView.cs: Remove redraw variable. Control now handles whether
32844 or not a redraw needs to be done, and will only raise the paint
32845 event if redrawing is needed.
32847 2005-05-03 Jackson Harper <jackson@ximian.com>
32849 * Splitter.cs: No decorations for the splitter form. Cache the
32852 2005-05-03 Jackson Harper <jackson@ximian.com>
32854 * TreeView.cs: Use dashed lines to connect nodes. Use the
32855 ControlPaint method for drawing the focus rect instead of doing
32858 2005-05-02 Peter Bartok <pbartok@novell.com>
32860 * LinkLabel.cs: Fixed the fixes from r43566 and 43521
32862 2005-04-29 Jackson Harper <jackson@ximian.com>
32864 * ThemeWin32Classic.cs: Don't clear the GC that will clear the
32865 entire image buffer. Just clear the clipping rectangle.
32867 2005-04-29 Jackson Harper <jackson@ximian.com>
32869 * ThemeWin32Classic.cs: Don't draw list view items that are
32870 outside the clipping rectangle.
32872 2005-04-29 Jordi Mas i Hernandez <jordi@ximian.com>
32874 * ListBox.cs: added horizontal item scroll
32876 2005-04-29 Jackson Harper <jackson@ximian.com>
32878 * ThemeWin32Classic.cs: Remove some old debug code that was
32879 causing flicker with the new double buffering code.
32881 2005-04-29 John BouAntoun <jba-mono@optusnet.com.au>
32883 * MonthCalendar.cs, DateTimePicker.cs: Made monthcalendar dropdwon
32884 behave like combobox and comboboxlist (still not sure if this is
32887 2005-04-28 Jackson Harper <jackson@ximian.com>
32889 * ThemeWin32Classic.cs: Don't fill the middle of progress
32890 bars. This fills areas outside of the clip bounds that don't need
32893 2005-04-28 Jackson Harper <jackson@ximian.com>
32895 * Control.cs: Don't expose functionality to touch the image buffers.
32897 * ListView.cs: We do not need to (and no longer can) manipulate
32898 the image buffers directly. All of this is handled by Control.
32900 2005-04-28 Peter Bartok <pbartok@novell.com>
32902 * RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
32903 RichTextBoxScrollBars.cs, RichTextBoxStreamType.cs,
32904 RichTextBoxFinds.cs, RichTextBoxWordPunctuations.cs: Added
32906 2005-04-28 Jordi Mas i Hernandez <jordi@ximian.com>
32909 - Adjust control's height for non-simple comboboxes (bug fix)
32911 * MenuAPI.cs: remove unused var
32912 * ScrollBar.cs: remove unsed var
32914 * ListBox.cs: unselect items when clearing
32916 2005-04-28 Jordi Mas i Hernandez <jordi@ximian.com>
32918 * ListControl.cs: honors OnPositionChanged and default Selected Item
32919 * ListBox.cs: unselect items when clearing
32921 2005-04-27 Jackson Harper <jackson@ximian.com>
32923 * X11Keyboard.cs: Initialize a default keyboard and give a warning
32924 if a "correct" keyboard is not found. This will make us not crash,
32925 but might give some users bad keyboard layouts...seems to be the
32926 same thing rewind does.
32928 2005-04-27 Jackson Harper <jackson@ximian.com>
32930 * BindingManagerBase.cs: Attach the current/position changed
32931 handlers to their respective events.
32933 2005-04-27 Jackson Harper <jackson@ximian.com>
32935 * Control.cs: Make sure that the first WM_PAINT does a full draw,
32937 * ThemeWin32Classic.cs: Don't fill the background for picture
32938 boxes. This could overright user drawing.
32939 * ComboBox.cs: Just fill the clipping rect not the entire client
32940 rect when drawing the background. This prevents pieces of the
32941 image buffer from getting overwritten and is theoretically faster.
32943 2005-04-26 Jordi Mas i Hernandez <jordi@ximian.com>
32945 * ComboBox.cs: Databinding support fixes, fire missing events
32946 * ListControl.cs: implement missing methods and properties, fixes
32947 * ThemeWin32Classic.cs: Databiding support on Drawing
32948 * CheckedListBox.cs: Databinding support fixes, fire missing events
32949 * ListBox.cs: Databinding support fixes, fire missing events
32951 2005-04-25 Peter Bartok <pbartok@novell.com>
32953 * LinkLabel.cs: Length of LinkArea is not allowed to be negative
32955 2005-04-25 Jackson Harper <jackson@ximian.com>
32957 * TreeView.cs: Use the horizontal scrollbars height not width when
32958 determining how much of the client area is available.
32960 2005-04-25 Jackson Harper <jackson@ximian.com>
32962 * Control.cs: Double buffering is handled differently now. As per
32963 the spec, the extra buffer is created in the WM_PAINT message and
32964 passed down to the control's drawing code.
32972 * PropertyGridView.cs:
32984 * DateTimePicker.cs:
32986 * TreeView.cs: Update to new double buffering system.
32987 * MonthCalendar.cs: Uncomment block, as Capture is now
32988 working. Update to new double buffering
32989 * LinkLabel.cs: Lazy init the link collection. Update to new double buffering
32990 * PaintEventArgs.cs: New internal method allows us to set the
32991 graphics object. This is used for double buffering.
32992 * ThemeWin32Classic.cs: Give the picture box drawing code a clip
32993 rectangle. The internal paint_area var has been removed from
32994 StatusBar. The clipping rect should be used instead.
32995 * Theme.cs: Give the PictureBox drawing method a clipping rect.
32996 * TabPage.cs: The RefreshTabs method was removed, so just call the
32997 tab controls Refresh method now.
32998 * TabControl.cs: Update to new double buffering. Make sure the
32999 handle is created before sizing the tab pages, otherwise we will
33000 get stuck in a loop.
33002 2005-04-24 Borja Sanchez Zamorano <borsanza@gmail.com>
33004 * LinkLabel.cs: Fix typo, bug #74719; patch
33005 from Borja Sanchez Zamorano
33007 2005-04-22 Jackson Harper <jackson@ximian.com>
33009 * TreeNode.cs: Implement Handle stuff.
33010 * TreeView.cs: Utility methods so nodes can get/lookup by handle.
33012 2005-04-22 Jordi Mas i Hernandez <jordi@ximian.com>
33014 * DataGridTextBoxColumn.cs: call base constructors, fixes
33015 * GridColumnStylesCollection.cs: missing events, methods, and functionality
33016 * GridTableStylesCollection.cs: fixes, check duplicate mapping names
33017 * DataGridTableStyle.cs: implements create default column styles
33018 * DataGridBoolColumn.cs: which types can handle
33019 * DataGrid.cs: missing methods, fixes, new functionality
33020 * DataGridColumnStyle.cs: fixes
33022 2005-04-20 Alexander Olk <xenomorph2@onlinehome.de>
33023 * FolderBrowserDialog.cs:
33024 - Use a thread to fill the TreeView
33025 - Adjusted some sizes
33027 2005-04-19 Peter Bartok <pbartok@novell.com>
33029 * LinkLabel.cs: (Re-)create the pieces when setting the Text
33030 property. Fixes #74360.
33032 2005-04-19 Jackson Harper <jackson@ximian.com>
33034 * XEventQueue.cs: Lock when getting the lockqueue size.
33035 * PictureBox.cs: Call base OnPaint
33037 2005-04-19 Peter Bartok <pbartok@novell.com>
33039 * XplatUIX11.cs: Fixed bug introduced with the HWND rewrite, Async
33040 messages were no longer being processed (this broke BeginInvoke)
33043 2005-04-18 Jackson Harper <jackson@ximian.com>
33045 * TreeView.cs: buglet that caused node images to get drawn
33046 regardless of whether or not they were in the clipping rectangle.
33048 2005-04-18 Jackson Harper <jackson@ximian.com>
33050 * CurrencyManager.cs: There are four rules for GetItemProperties:
33051 - If the type is an array use the element type of the array
33052 - If the type is a typed list, use the type
33053 - If the list contains an Item property that is not an object, use
33055 - use the first element of the list if there are any elements in
33058 2005-04-17 Jackson Harper <jackson@ximian.oom>
33060 * TreeView.cs: Calculate plus minus and checkbox bounds when there is a
33061 click. This handles offsets for scrolling properly and reduces
33062 memory. Also fixed GetNode to not offset now that TopNode works
33064 * TreeNode.cs: No longer need to track the plus minus or checkbox bounds.
33066 2005-04-17 Jackson Harper <jackson@ximian.com>
33068 * CursorConverter.cs: Initial implementation.
33070 2005-04-15 Jordi Mas i Hernandez <jordi@ximian.com>
33072 * ListControl.cs: work towards complex data binding support on ListControl
33073 * CurrencyManager.cs: work towards complex data binding support on ListControl
33074 * ListBox.cs: work towards complex data binding support on ListControl
33077 2005-04-15 Jordi Mas i Hernandez <jordi@ximian.com>
33079 * GridTableStylesCollection.cs: fixes name and constructor
33080 * DataGridTableStyle.cs: fixes
33081 * DataGridBoolColumn.cs: fixes names and constructors
33082 * DataGrid.cs: define methods and properties. Some init implementations
33083 * DataGridCell.cs: define methods and properties. Some init implementations
33084 * GridTablesFactory.cs: Define methods and properties
33086 2005-04-15 Geoff Norton <gnorton@customerdna.com>
33088 * XplatUIOSX.cs: Handle proper mouse tracking even if the current
33089 graphics port changes. We still want the coordinates in global screen
33092 2005-04-14 Jackson Harper <jackson@ximian.com>
33094 * TreeView.cs: Handle clicks when plus minus is disabled. Don't
33095 check plus minus or checkbox clicks unless those features are enabled.
33097 2005-04-14 Jackson Harper <jackson@ximian.com>
33099 * TreeView.cs: Add methods for setting the top and bottom visible
33100 nodes. TreeNode::EnsureVisible uses these methods.
33101 * TreeNode.cs: Implement EnsureVisible
33103 2005-04-13 Jordi Mas i Hernandez <jordi@ximian.com>
33105 * Form.cs: Pospone menu assignation if the window has not been created yet
33106 * XplatUIWin32.cs: Fixes Win32SetWindowPos, then does not change window
33109 2005-04-12 Jackson Harper <jackson@ximian.com>
33111 * TreeView.cs: Set the TopNode properly when scrolling
33112 occurs. This has the added benifit of reducing the amount of
33113 walking that needs to be done when drawing. Also removed an old
33115 * OpenTreeNodeEnumerator.cs: Fix moving backwards.
33117 2005-04-11 Jordi Mas i Hernandez <jordi@ximian.com>
33119 * Timer.cs: fixes interval setting when the timer is already enabled
33121 2005-04-10 Alexander Olk <xenomorph2@onlinehome.de>
33123 * FolderBrowserDialog.cs: First approach
33125 2005-04-09 Peter Bartok <pbartok@novell.com>
33127 * FolderBrowserDialog: Added
33129 2005-04-07 Jordi Mas i Hernandez <jordi@ximian.com>
33131 * LinkLabel.cs: move drawing code into the theme
33132 * ThemeWin32Classic.cs: drawing code and painting background bugfix
33133 * Theme.cs: define DrawLinkLabel method
33135 2005-04-05 Jackson Harper <jackson@ximian.com>
33137 * BindingContext.cs: Use weak references so these bad actors don't
33138 stay alive longer then they need to.
33140 2005-04-05 Jackson Harper <jackson@ximian.com>
33142 * ListControl.cs: Basic implementation of complex databinding.
33144 * ListBox.cs: Add calls to ListControl databinding methods.
33146 2005-04-05 Alexander Olk <xenomorph2@onlinehome.de>
33149 - Don't change PopupButtonState to Normal when the
33150 PopupButton gets pressed several times.
33151 - Renamed ButtonPanel to PopupButtonPanel
33153 2005-04-05 Jordi Mas i Hernandez <jordi@ximian.com>
33155 * ColorDialog.cs: Use cached objects instead of creating them
33156 * LinkLabel.cs: Use cached objects instead of creating them
33157 * Splitter.cs: Use cached objects instead of creating them
33158 * FontDialog.cs: Use cached objects instead of creating them
33159 * PropertyGridView.cs: Use cached objects instead of creating them
33160 * MessageBox.cs: Use cached objects instead of creating them
33161 * FileDialog.cs: Use cached objects instead of creating them
33162 * ThemeWin32Classic.cs: Use cached objects instead of creating them
33163 * TreeView.cs: Use cached objects instead of creating them
33165 2005-04-04 Jordi Mas i Hernandez <jordi@ximian.com>
33167 * Control.cs: use Equals to compare the font since no == op
33168 * ScrollBar.cs: use Equals to compare the font since no == op
33170 2005-04-04 Alexander Olk <xenomorph2@onlinehome.de>
33172 * SaveFileDialog.cs: Open stream in OpenFile with FileMode Create
33174 2005-04-01 Jackson Harper <jackson@ximian.com>
33176 * Binding.cs: Implement IsBinding.
33177 * BindingManagerBase.cs:
33178 * PropertyManager.cs:
33179 * CurrencyManager.cs: Add IsSuspended property.
33181 2005-04-01 Jackson Harper <jackson@ximian.com>
33183 * Binding.cs: Had some IsAssignableFrom calls backwards.
33185 2005-04-01 Jackson Harper <jackson@ximian.com>
33187 * Binding.cs: Handle null data members when pulling data.
33188 * PropertyManager.cs: Handle the data member being a property that
33191 2005-04-01 Jordi Mas i Hernandez <jordi@ximian.com>
33193 * DataGridTextBoxColumn.cs: fixes signature
33194 * DataGrid.cs: calls right constructor
33196 2005-04-01 Jordi Mas i Hernandez <jordi@ximian.com>
33198 * DataGridTextBoxColumn.cs: implements DataGridTextBoxColumn class
33199 * GridColumnStylesCollection.cs: implements GridColumnStylesCollection
33200 * GridTableStylesCollection.cs: implements GridTableStylesCollection
33201 * DataGridTableStyle.cs: implements DataGridTableStyle
33202 * DataGridBoolColumn.cs: implements DataGridBoolColumn
33203 * DataGridTextBox.cs: implements DataGridTextBox
33204 * DataGridColumnStyle.cs: implements DataGridColumnStyle
33206 2005-03-31 Alexander Olk <xenomorph2@onlinehome.de>
33208 * FileDialog.cs: Added simple PopupButton class for ButtonPanel
33210 2005-03-29 Peter Bartok <pbartok@novell.com>
33213 - Properly implemented CompanyName property
33214 - Fixed LocalUserAppDataPath and UserAppDataPath, now properly
33215 returns a path that includes CompanyName, ProductName and
33216 Version (fixes bug #70330)
33218 2005-03-29 Stefan Buehler <sbuehler@gmx.ch>
33220 * TabPage.cs: Don't use Owner.DisplayRectangle unless owner is valid,
33223 2005-03-28 Alexander Olk <xenomorph2@onlinehome.de>
33225 * FileDialog.cs, SaveFileDialog.cs OpenFileDialog.cs:
33227 - Added ReadOnly CheckBox
33228 - Further refactoring: moved some code from Open-/SaveFileDialog
33231 2005-03-28 Alexander Olk <xenomorph2@onlinehome.de>
33233 * OpenFileDialog.cs: Fixed CheckFileExists
33235 Moved FileView and DirComboBox outside FileDialog class.
33236 They can now be used outside FileDialog
33238 2005-03-27 Alexander Olk <xenomorph2@onlinehome.de>
33240 * FileDialog.cs: Added a contextmenu to change ShowHiddenFiles
33241 * SaveDialog.cs, OpenFileDialog.cs: Fixes for Reset() method
33243 2005-03-27 Alexander Olk <xenomorph2@onlinehome.de>
33245 * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
33246 - Added missing CreatePrompt property in SaveDialog
33247 - Overall SaveDialog handling should be better now
33248 - Added non standard ShowHiddenFiles property
33249 - Added extension, CreatePrompt and OverwritePrompt support in SaveDialog
33250 - Added InitialDirectory and RestoreDirectory support
33252 2005-03-26 Alexander Olk <xenomorph2@onlinehome.de>
33254 * FileDialog.cs: Made dirComboBox usable
33256 2005-03-24 Alexander Olk <xenomorph2@onlinehome.de>
33258 * FileDialog.cs: Added Filter support (case sensitiv)
33260 2005-03-24 Jackson Harper <jackson@ximian.com>
33262 * TabControl.cs: Need a couple more pixels for the lines.
33264 2005-03-23 Jackson Harper <jackson@ximian.com>
33266 * TabControl.cs: Give the tab page focus when it is selected.
33268 2005-03-23 Jackson Harper <jackson@ximian.com>
33270 * TabControl.cs: Account for the drawing of tabs borders when
33271 invalidating. If the slider was clicked dont do click detection on
33274 2005-03-23 Jackson Harper <jackson@ximian.com>
33276 * TabControl.cs: Fix typo, emilinates an unneeded expose event.
33278 2005-03-22 Jonathan Chambers <jonathan.chambers@ansys.com>
33280 * CategoryGridEntry.cs: Added
33281 * GridItem.cs: Added helper properties
33282 * PropertyGridTextBox.cs: Custom textbox control for PropertyGrid.
33283 * GridEntry.cs: Updated code for collection
33284 * PropertyGrid.cs: Cleaned up some formatting
33285 * PropertyGridView.cs: Added drop down functionality for enums.
33286 * GridItemCollection.cs: Added enumerator logic
33287 * PropertyGridEntry.cs: Added
33289 2005-03-19 Alexander Olk <xenomorph2@onlinehome.de>
33292 - Removed unnecessary commented code
33293 - Fixed handling for entering the filename manually in the combobox
33295 2005-03-19 Alexander Olk <xenomorph2@onlinehome.de>
33297 * FileDialog.cs, OpenFileDialog.cs: OpenFileDialog Multiselect now works
33299 2005-03-18 Peter Bartok <pbartok@novell.com>
33301 * ThemeWin32Classic.cs: Moved listview column headers a bit, to avoid
33302 them being touching the border
33304 2005-03-18 Peter Bartok <pbartok@novell.com>
33306 * TextControl.cs: Quick hack to center text better
33308 2005-03-18 Peter Bartok <pbartok@novell.com>
33311 - Don't throw NotImplemented exceptions, just print a notice once
33312 instead (requested by Miguel). This makes running existing SWF
33315 - Commented out Drag'N'Drop XplatUI call (no driver support yet)
33316 - Added context menu trigger on right click
33317 * Panel.cs: Trigger invalidate on resize
33319 - Removed old double-buffer drawing
33320 - Added ResizeRedraw style to force proper update of statusbar
33322 - Removed debug output
33323 * ThemeWin32Classic.cs:
33324 - Fixed drawing of status bar, now draws Text property if there
33325 are no defined panels
33327 2005-03-18 Jackson Harper <jackson@ximian.com>
33329 * ImageList.cs: When the image stream is set pull all the images
33331 * ImageListStreamer.cs: Implement reading image list streams.
33333 2005-03-18 Peter Bartok <pbartok@novell.com>
33335 * ThemeWin32Classic.cs (DrawPictureBox):
33336 - Fixed calculations for centered drawing
33337 - Fixed drawing for normal mode, not scaling the image on normal
33339 2005-03-18 Peter Bartok <pbartok@novell.com>
33341 * ComboBox.cs: Now also firing the OnKeyPress events for the embedded
33344 - Made Open/Save button the accept button for FileDialog
33345 - Tied the cancel button to the IButtonControl cancel button
33346 - Save/Open now properly builds the pathname
33347 - Now handles user-entered text
33348 - Preventing crash on right-click if no item is selected
33349 - Fixed Text property, now uses contents of textbox
33350 - Fixed SelectedText property, now just returns the text part that
33351 is selected in the text box
33353 2005-03-18 Jackson Harper <jackson@ximian.com>
33355 * ThemeWin32Classic.cs: Use the proper func for drawing the focus
33356 rect, make sure to de-adjust the interior rect after drawing the
33359 2005-03-18 Peter Bartok <pbartok@novell.com>
33361 * MenuAPI.cs: Remove menu *before* executing selected action to
33362 prevent the menu from 'hanging around'
33364 2005-03-17 Geoff Norton <gnorton@customerdna.com>
33366 * XplatUIOSX.cs: Implemented WorkingArea property
33368 2005-03-17 Peter Bartok <pbartok@novell.com>
33370 * XplatUIX11.cs: Fixed menu coord calculations
33371 * MenuAPI.cs: Now using new ScreenToMenu()/MenuToScreen() methods
33372 for calculating offsets
33374 2005-03-17 Peter Bartok <pbartok@novell.com>
33376 * Hwnd.cs: Do not consider menu presence for default client
33377 rectangle location/size
33378 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
33379 XplatUIWin32.cs: Added MenuToScreen() and ScreenToMenu() coord
33380 translation functions
33381 * FileDialog.cs: Fixed (what I presume is a) typo
33383 2005-03-17 Jonathan Gilbert <logic@deltaq.org>
33385 * XplatUIX11.cs: Added call to XInitThreads() to allow multi-threaded
33386 X access (avoids X-Async errors)
33388 2005-03-16 Jackson Harper <jackson@ximian.com>
33390 * TabControl.cs: Raise the SelectedIndexChanged event.
33392 2005-03-16 Alexander Olk <xenomorph2@onlinehome.de>
33394 * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
33395 - Removed vertical ToolBar and replaced it with a custom panel
33396 (desktop and home button already work)
33397 - Added Help button (some controls get resized or relocated then)
33398 - Draw correct text depending on Open or Save.
33399 - Fixed some typos...
33401 2005-03-16 Jordi Mas i Hernandez <jordi@ximian.com>
33404 - Only change Maximum and Minimum when need it (bug fix)
33406 2005-03-15 Peter Bartok <pbartok@novell.com>
33408 * Form.cs: Use Handle for icon, to trigger creation if
33409 the window does not yet exist
33411 - CanSelect: Slight performance improvement
33412 - Focus(): Preventing possible recursion
33413 - Invalidate(): Removed ControlStyle based clear flag setting
33414 - WM_PAINT: fixed logic for calling OnPaintBackground
33415 - WM_ERASEBKGND: Fixed logic, added call to new driver method
33416 EraseWindowBackground if the control doesn't paint background
33418 - Moved EraseWindowBackground() method to internal methods
33419 - Removed unused WM_ERASEBKGND handling in GetMessage; msg never comes;
33420 is sent via SendMessage on BeginPaint call on Win32
33422 - Added EraseWindowBackground() method
33423 - No longer sends WM_ERASEBKGND on .Expose, but on call to
33424 PaintEventStart, which more closely matches Win32 behaviour
33425 - Fixed Invalidate() call, now updates new ErasePending Hwnd property
33426 - Fixed SetFocus() to properly deal with client and whole windows
33427 * Hwnd.cs: Added ErasePending property
33428 * XplatUIOSX.cs: Stubbed EraseWindowBackground() method
33429 * XplatUI.cs, XplatUIDriver.cs: Added EraseWindowBackground() method
33431 2005-03-12 Geoff Norton <gnorton@customerdna.com>
33434 - Fix hard loop when timers exist.
33435 - Fix bugs with middle and right click for 3 button mice.
33437 2005-03-11 Peter Bartok <pbartok@novell.com>
33440 - get_WorkingArea: Need to call X directly, GetWindowPos only
33441 returns cached data now
33442 - Added sanity check to GetWindowPos hwnd usage
33444 2005-03-11 Jackson Harper <jackson@ximian.com>
33446 * BindingManagerBase.cs: This method isn't used anymore as
33447 PullData now updates the data in the control.
33449 2005-03-11 Jordi Mas i Hernandez <jordi@ximian.com>
33451 * Form.cs: fixes menu drawing on X11
33452 * MenuAPI.cs: fixes menu drawing on X11
33454 2005-03-11 Peter Bartok <pbartok@novell.com>
33456 * Control.cs: Changed OnCreateControl behaviour based on a suggestion
33457 from Jonathan Gilbert; should fix bug #73606
33458 * XplatUIX11.cs: Fixed NC Mouse message coordinates, they need to be
33459 in Screen coordinates. Thanks, Jordi.
33460 * Form.cs: Added missing attribute
33462 2005-03-11 Peter Bartok <pbartok@novell.com>
33465 - Rudimentary Mdi support
33466 - Removed outdated FormParent code
33467 - Implemented lots of missing properties and methods, still missing
33468 transparency support
33469 - Added missing attributes
33470 - Implemented support for MaximumBounds
33471 - Added firing of various events
33472 * XplatUI.cs: Added SetIcon() method
33473 * XplatUIDriver.cs: Added SetIcon() abstract
33474 * XplatUIOSX.cs: Stubbed out SetIcon() method
33476 - Implemented SetIcon() support
33477 - Moved SetMenu() and SetBorderStyle() to proper alphabetical pos
33478 - Switched to unix line endings
33480 - Made POINT internal so for can access it as part of MINMAX
33481 - Implemented SetIcon() support
33482 - Implemented support for CLIENTCREATESTRUCT (but might have to drop
33483 native Mdi support again, might have to go managed)
33484 * Control.cs: Now fires the StyleChanged event
33485 * MdiClient.cs: Added; still mostly empty
33487 2005-03-10 Peter Bartok <pbartok@novell.com>
33489 * SaveFileDialog.cs: Added emtpy file
33491 2005-03-08 Peter Bartok <pbartok@novell.com>
33493 * Control.cs: Fixed bug #73190; now invokes CreateControl (which
33494 in turn triggers OnCreateContro) when creating a handle for the
33496 * TextControl.cs: Fixed endless loop in certain cases when
33497 replacing the current selection
33499 2005-03-08 Jordi Mas i Hernandez <jordi@ximian.com>
33502 - Honors NewValue changes in Scroll events allowing apps to change it
33503 - Adds First and Last Scroll events
33504 - Fixes Thumb events
33506 2005-03-07 Peter Bartok <pbartok@novell.com>
33508 * Hwnd.cs: Added DefaultClientRectangle property
33509 * XplatUI.cs: Now using the X11 driver Where() method, which provides
33510 more detailed debug information
33512 - Fixed size-change feedback loop, where we would pull an old size
33513 off the queue and mistakenly change our window's size to an
33515 - Now compressing ConfigureNotify events, to reduce looping and
33517 * TextBoxBase.cs: Preventing crash when no text is set and ToString()
33520 2005-03-07 Jackson Harper <jackson@ximian.com>
33522 * Binding.cs: Push data pushes from data -> property. Check if the
33523 property is readonly when attempting to set it.
33525 2005-03-07 Jackson Harper <jackson@ximian.com>
33527 * Binding.cs: Format and parse data correctly. Use ASsignableFrom
33528 instead of IsSubclassOf. Pulling data now sets the value on the
33530 * PropertyManager.cs:
33531 * CurrencyManager.cs: Just need to pull data when updating now,
33532 because PullData will set the value on the control.
33534 2005-03-04 Jackson Harper <jackson@ximian.com>
33536 * Binding.cs: Implement data type parsing and converting on pulled
33537 data. TODO: Are there more ways the data can be converted?
33539 2005-03-04 Jackson Harper <jackson@ximian.com>
33541 * Binding.cs: Support <Property>IsNull checks. Also bind to the
33542 controls Validating method so we can repull the data when the
33543 control loses focus.
33545 2005-03-03 Jordi Mas i Hernandez <jordi@ximian.com>
33548 - Fixes null string format
33551 - Adds enum type checks
33552 - Fixes redrawing and recalc need after changing some properties
33553 - Fixes on focus_item set after the event
33554 - Fixes adding columns after the control has been created
33556 * ThemeWin32Classic.cs:
33557 - Fixes CheckBox focus rectangle
33558 - Fixes ColumnHeader drawing
33561 2005-03-03 Jackson Harper <jackson@ximian.com>
33563 * Binding.cs: Bind to <Property>Changed events so we can detect
33564 when properties are changed and update the data.
33566 2005-03-02 Jordi Mas i Hernandez <jordi@ximian.com>
33569 - Changes 32-bit pixel format to Format32bppArgb to allow transparency
33570 - Fixes ImageList constructor with ImageList container
33571 - Fixes image scaling (wrong parameters at DrawImage)
33573 2005-02-02 Jackson Harper <jackson@ximian.com>
33575 * Binding.cs: Make property searches case-insensitive. Eliminate
33576 some duplicated code.
33578 2005-03-01 Jordi Mas i Hernandez <jordi@ximian.com>
33581 - Handle focus event
33582 - Fix scrollbar events
33583 - Discard highlighted item if remove it
33584 - Fixes SelectedItem with strings
33586 2005-03-01 Peter Bartok <pbartok@novell.com>
33589 - Fixed Visible property, now follows (once again) parent chain
33590 to return false if any control in the chain is visible=false
33591 - Fixed OnParentVisibleChanged, now just calls OnVisibleChanged event
33592 - Fixed several places where is_visible instead of Visible was used
33593 - Implemented FIXME related to focus selection when setting focused
33594 control to be invisible
33596 * XplatUIWin32.cs: Now using proper method to find out if window is
33597 visible. Thanks to Jordi for pointing it out
33599 2005-02-28 Jordi Mas i Hernandez <jordi@ximian.com>
33601 * ComboBox.cs: show/hide scrollbar instead of creating it
33603 2005-02-27 Jackson Harper <jackson@ximian.com>
33605 * CurrencyManager.cs: Add PositionChanged stuff.
33607 2005-02-27 Peter Bartok <pbartok@novell.com>
33609 * XplatUI.cs, XplatUIDriver.cs: Added new GetMenuOrigin() method
33610 * XplatUIOSX.cs: Added GetMenuOrigin() stub
33611 * XplatUIWin32.cs: Implemented GetMenuOrigin()
33613 - Implemented GetMenuDC()
33614 - Implemented GetMenuOrigin()
33615 - Implemented ReleaseMenuDC()
33616 - Implemented generation of WM_NCPAINT message
33617 - Implemented generation and handling of WM_NCCALCSIZE message
33618 * Form.cs: Added debug helper message for Jordi's menu work
33620 - Modified ClientRect property; added setter, fixed getter to handle
33621 setting of ClientRect
33622 - Added MenuOrigin property
33624 2005-02-26 Peter Bartok <pbartok@novell.com>
33627 - Destroys the caret if a window that's being destroyed contains it
33628 - Ignores expose events coming from the X11 queue for windows that
33629 already are destroyed
33630 - Now uses the proper variable for handling DestroyNotify, before we
33631 marked the wrong window as destroyed
33632 - Improved/added some debug output
33634 2005-02-26 Peter Bartok <pbartok@novell.com>
33636 * X11Keyboard.cs: Fixes to work on 64bit systems
33638 2005-02-26 Peter Bartok <pbartok@novell.com>
33641 - Now calling OnHandleDestroyed from DestroyHandle()
33642 instead of Dispose()
33643 - Removed bogus call to controls.Remove() from DestroyHandle()
33645 2005-02-26 Peter Bartok <pbartok@novell.com>
33647 * Control.cs: Properly destroy child windows when our handle is
33650 2005-02-25 Peter Bartok <pbartok@novell.com>
33653 - Added 'DriverDebug' define to allow tracing XplatUI API calls
33654 - Alphabetized Static Methods and Subclasses
33657 - Added XException class to allow custom handling of X11 exceptions
33658 - Created custom X11 error handler, tied into XException class
33659 - Added support for MONO_XEXCEPTIONS env var to allow the user
33660 to either throw an exception on X errors or continue running
33661 after displaying the error
33662 - Added handling of DestroyNotify message
33663 - Added handler for CreateNotify message (still disabled)
33664 - Improved (tried to at least) Where method to provide file and lineno
33666 - Added XErrorHandler delegate
33667 - Added XRequest enumeration (to suppor translation of errors)
33669 2005-02-25 Jackson Harper <jackson@ximian.com>
33671 * PropertyManager.cs: Implement editing features
33672 * CurrencyManager.cs:
33673 * Binding.cs: First attempt at UpdateIsBinding
33674 * BindingManagerBase.cs: Call UpdateIsBinding before
33675 pushing/pulling data.
33677 2005-02-25 Jordi Mas i Hernandez <jordi@ximian.com>
33679 * MenuAPI.cs: Respect disabled items
33680 * ThemeWin32Classic.cs
33681 - Caches ImageAttributes creation for DrawImageDisabled
33682 - Fixes vertical menu line drawing
33683 - Draws disabled arrows in disable menu items
33685 2005-02-24 Peter Bartok <pbartok@novell.com>
33688 - Added UserData property to allow associating arbitrary objects
33690 - Fixed leak; now removing Hwnd references from static windows array
33692 - Fixed Graphics leak in PaintEventEnd
33693 - Removed usage of HandleData, switched over to Hwnd class
33694 * HandleData.cs: Removed, obsoleted by Hwnd.cs
33696 2005-02-24 Jordi Mas i Hernandez <jordi@ximian.com>
33698 * ThemeWin32Classic.cs: Adds Cliping to TrackBar drawing
33699 * ScrollBar.cs: Fixes bug
33700 * TrackBar.cs: removes death code, clipping, mimize refreshes,
33701 keyboard navigation enhancements
33703 2005-02-24 Jordi Mas i Hernandez <jordi@ximian.com>
33705 * Control.cs: Call DefWndProc at WM_PAINT only if UserPaint not defined
33706 * GroupBox.cs: Add control styles
33707 * Label.cs: Add control styles
33708 * UpDownBase.cs: Add control styles
33709 * ListBox.cs: Add control styles
33710 * XplatUIWin32.cs: Fixes wrong parameter order
33713 2005-02-23 Chris Bacon <chris.bacon@docobo.co.uk>
33715 * ListView.cs: Assign owner for ColumnHeader. Patch by Chris Bacon
33717 2005-02-23 Jackson Harper <jackson@ximian.com>
33719 * PropertyManager.cs: Implement property binding. This doesn't
33720 seem to work yet though as (I think) there are some bugs in
33721 System.ComponentModel.PropertyDescriptor.
33722 * BindingContext.cs: Use new PropertyManager constructor.
33724 2005-02-23 Jordi Mas i Hernandez <jordi@ximian.com>
33726 * ProgressBar.cs: use clip region in ProgressBar
33727 * ThemeWin32Classic.cs: use clip region in ProgressBar
33729 2004-02-22 Jackson Harper <jackson@ximian.com>
33731 * BindingsCollection.cs: Remove some debug code.
33733 2005-02-22 Jackson Harper <jackson@ximian.com>
33735 * BindingContext.cs:
33736 * ControlBindingsCollection.cs:
33737 * CurrencyManager.cs:
33739 * BindingManagerBase.cs: Initial implementation
33740 * BindingsCollection.cs: Add an internal contains method that the
33741 BindingManagerBase uses to ensure bindings aren't added twice to
33743 * PropertyManager.cs: Stubbed out.
33745 * ContainerControl.cs: Hook up databinding
33747 2005-02-22 Geoff Norton <gnorton@customerdna.com>
33750 OSXStructs.cs: Refactored to handle the new Hwnd NC logic area.
33751 Fixed Invalidate/Update chain.
33752 Fixed tons of other minor bugs (this is almost a complete rewrite).
33754 2005-02-22 Jordi Mas i Hernandez <jordi@ximian.com>
33756 * ComboBox.cs: do subcontrol creation when the control is created
33758 2005-02-19 Jordi Mas i Hernandez <jordi@ximian.com>
33760 * Label.cs: fixes image drawing (image and imagelist)
33761 * ThemeWin32Classic.cs: cache brushes
33763 2005-02-19 Jordi Mas i Hernandez <jordi@ximian.com>
33765 * Form.cs: Move menu drawing code to Theme class
33766 * ComboBox.cs: Move ComboBox drawing code to Theme class
33767 * MenuItem.cs: Move menu drawing code to Theme class
33768 * MenuAPI.cs: Move menu drawing code to Theme class
33769 * ThemeWin32Classic.cs: New methods
33770 * CheckedListBox.cs: Move CheckedListbox drawing code to Theme class
33771 * ListBox.cs: Move Listbox drawing code to Theme class
33772 * Theme.cs: New methods
33774 2005-02-20 Peter Bartok <pbartok@novell.com>
33777 - Fixed ProcessKeyEventArgs to also handle WM_SYSKEY messages (and
33778 only process mnemonics on those)
33779 - Fixed event sequence for key handling; first calling
33780 ProcessKeyEventArgs now
33782 - Removed WM_KEYDOWN hook, instead we now use ProcessDialogKey()
33783 for processing non-character keys
33784 - Fixed WM_CHAR to generate proper event sequence before processing
33785 * XplatUIWin32.cs: Added ALT key state to ModifierKeys property
33788 2005-02-19 Peter Bartok <pbartok@novell.com>
33790 * UserControl.cs: Added TextChanged event; added attributes
33791 * SizeGrip.cs: Implemented resizing and optional display of grip
33792 * Form.cs: Fixed attribute
33793 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs:
33794 Changed meaning of ScrollWindow bool argument; instead of the
33795 clear attribute (which will be true usually anyway), it gives the
33796 option of moving child controls as well.
33798 - Changed to match new ScrollWindow argument
33799 - Fixed GetWindowPos/SetWindowPos behaviour for toplevel controls,
33800 now handles the implicit parent window a WM puts around us
33801 * ScrollableControl.cs: Implemented (not the prettiest, but it seems
33803 * TextBoxBase.cs: Adjusted to new ScrollWindow arguments
33804 * TreeView.cs: Adjusted to new ScrollWindow arguments
33806 2005-02-19 Jordi Mas i Hernandez <jordi@ximian.com>
33808 * Form.cs: Menu integration with non-client area
33809 * MenuItem.cs: Menu integration with non-client area
33810 * MenuAPI.cs: Menu integration with non-client area
33812 2005-02-18 Peter Bartok <pbartok@novell.com>
33814 * MethodInvoker.cs: Added
33815 * MdiLayout.cs: Added
33816 * SendKeys.cs: Started implementation
33817 * ErrorIconAlignment.cs: Added
33819 2005-02-18 Peter Bartok <pbartok@novell.com>
33821 * XplatUIWin32.cs: Implemented SetMenu(); fixed GetMenuDC()
33822 * Form.cs: Added handling for Menu-related Non-client messages
33824 2005-02-17 Peter Bartok <pbartok@novell.com>
33826 * UpDownBase.cs: Fixed typo, compilation errors
33827 * DomainUpDown.cs: Fixed attribute value
33829 2005-02-16 Miguel de Icaza <miguel@novell.com>
33831 * UpDownBase.cs: Attach entry events.
33833 Add ForeColor property, Focused, InterceptArrowKeys (interception
33834 does not work yet).
33836 2005-02-17 Jordi Mas i Hernandez <jordi@ximian.com>
33839 - Redraw non client are on Setmenu
33840 - Calc proper menu starting point
33842 2005-02-17 Peter Bartok <pbartok@novell.com>
33844 * Application.cs: Fixed message_filter check
33846 2005-02-17 Peter Bartok <pbartok@novell.com>
33848 * Application.cs: Now calls registered message filters
33849 * DockStyle.cs: Fixed attribute
33850 * Form.cs: Fixed attribute
33851 * Menu.cs: Fixed attribute
33852 * ToolTip.cs: Fixed attribute
33853 * TreeNode.cs: Added missing attributes and arranged in regions
33854 * PropertyGrid.cs: Fixed signatures
33855 * TreeNodeCollection.cs: Added attributes
33856 * Splitter.cs: Added missing attributes; arranged into regions
33857 * TabPage.cs: Added missing attributes; arranged into regions
33858 * TextBoxBase.cs: Added missing attributes
33859 * TextBox.cs: Added missing attributes
33860 * ArrangeDirection.cs: Added missing attributes
33861 * TreeNodeConverter.cs: Added stub (needed for TreeNode)
33862 * ToolBarButton.cs: Fixed attributes
33863 * AnchorStyles.cs: Fixed attribute
33864 * TrackBar.cs: Fixed attributes
33865 * TabControl.cs: Added missing attributes and arranged into regions
33866 * ToolBar.cs: Fixed attribute
33867 * StatusBar.cs: Fixed signature, organized into regions and added
33869 * StatusBarPanel.cs: Fixed attributes
33870 * ContentsResizedEventArgs.cs: Implemented
33871 * ContentsResizedEventHandler.cs: Implemented
33872 * DateBoldEventArgs.cs: Implemented
33873 * DateBoldEventHandler.cs: Implemented
33874 * UpDownEventArgs.cs: Implemented
33875 * UpDownEventHandler.cs: Implemented
33877 2005-02-16 Jordi Mas i Hernandez <jordi@ximian.com>
33879 * Form.cs: first Menu NC refactoring
33880 * MenuAPI.cs: first Menu NC refactoring
33882 2005-02-16 Peter Bartok <pbartok@novell.com>
33884 * ImeMode.cs: Added missing attributes
33885 * Menu.cs: Fixed attribute
33886 * GroupBox.cs: Fixed attribute
33887 * Label.cs: Fixed attribute
33888 * ColorDialog.cs (RunDialog): Removed TODO attribute
33889 * ComboBox.cs: Fixed attributes
33890 * ListControl.cs: Added missing attributes
33891 * PropertyGrid.cs: Fixed attributes
33892 * Control.cs: Fixed attributes
33893 * ListViewItem.cs: Added TypeConverter attribute
33894 * NotifyIcon.cs: Fixed attributes
33895 * ListView.cs: Fixed attributes
33896 * ButtonBase.cs: Fixed attribute
33897 * ImageList.cs: Added missing attributes
33898 * ContainerControl.cs: Fixed signature
33899 * CheckedListBox.cs: Fixed attribute; added missing attributes
33900 * Panel.cs: Fixed attributes
33901 * PropertyTabChangedEventArgs.cs: Added missing attribute
33902 * PropertyValueChangedEventArgs.cs: Added missing attribute
33903 * Binding.cs: Fixed attribute
33904 * ListViewItemConverter: Implemented ListViewSubItemConverter class
33905 * ListBox.cs: Fixed attribute; added missing attributes;
33906 * ScrollableControl.cs: Added missing attributes
33907 * PictureBox.cs: Added missing attributes; implemented missing property
33908 * DateTimePicker.cs: Added missing attributes
33909 * Theme.cs (ToolWindowCaptionHeight): Fixed type
33910 * MonthCalendar.cs: Fixed attributes
33911 * StatusBarPanel.cs: Added missing attributes
33912 * SystemInformation.cs (ToolWindowCaptionHeight): Fixed type
33914 2005-02-16 Peter Bartok <pbartok@novell.com>
33916 * TextBoxBase.cs: The previous method to enforce height yet remember
33917 the requested high was less than ideal, this is an attempt to do
33919 * Control.cs: Added comment about possible problem
33920 * Copyright: Updated format
33921 * GridItemType.cs: Fixed swapped values
33923 2005-02-15 Jackson Harper <jackson@ximian.com>
33925 * BaseCollection.cs: Use property so we never access an
33926 uninitialized list. Also initialize the list in the property.
33928 2005-02-15 Peter Bartok <pbartok@novell.com>
33930 * GroupBox.cs (ProcessMnemonic): Implemented
33931 * Label.cs (ProcessMnemonic): Implemented
33932 * ThemeWin32Classic.cs (DrawGroupBox): Added stringformat to show
33935 2005-02-15 Peter Bartok <pbartok@novell.com>
33937 * RadioButton.cs (ProcessMnemonic): Implemented
33938 * CheckBox.cs (ProcessMnemonic): Implemented
33940 - Added handling of WM_SYSxxx keyboard messages to support mnemonic
33942 - Added internal method to allow calling ProcessMnemonic from other
33944 * ContainerControl.cs:
33945 - Started support for handling validation chain handling
33946 - Implemented ProcessMnemonic support
33947 - Added Select() call to Active, to make sure the active control
33949 * Form.cs: Setting toplevel flag for Forms (this was lost in the
33950 FormParent rewrite)
33951 * ThemeWin32Classic.cs:
33952 - DrawCheckBox(): Fixed stringformat to show hotkeys
33953 - DrawRadioButton(): Fixed stringformat to show hotkeys
33954 * CommonDialog.cs: Removed WndProc override, not needed
33956 2005-02-14 Peter Bartok <pbartok@novell.com>
33958 * XplatUIX11.cs: Fixed NotImplemented exceptions for properties,
33959 missed those in the rewrite
33961 2005-02-14 Miguel de Icaza <miguel@novell.com>
33963 * NumericUpDown.cs (Increment, ToString): Add.
33964 (DecimalPlaces): implement.
33968 * UpDownBase.cs: Add the designer attributes.
33970 2005-02-13 Peter Bartok <pbartok@novell.com>
33972 * Panel.cs: Removed border_style, now in Control
33973 * XplatUIDriver.cs: Added SetBorderStyle, SetMenu, GetMenuDC and
33974 ReleaseMenuDC Methods; renmaed ReleaseWindow to UngrabWindow
33976 2005-02-13 Peter Bartok <pbartok@novell.com>
33978 * MouseButtons.cs: Added missing attributes
33979 * XplatUIStructs.cs: Added enumeration for title styles
33980 * LeftRightAlignment.cs: Added missing attributes
33981 * Hwnd.cs: Switched to use client_window as handle (slower, but makes
33982 it compatible with Graphics.FromHwnd()
33983 * SelectedGridItemChangedEventArgs.cs: Fixed property type
33984 * Keys.cs: Added missing attributes
33985 * SelectionRange.cs: Added missing attributes
33986 * SelectionRangeConverter.cs: Added
33988 - Introduced SetBorderStyle, SetMenu, GetMenuDC and
33989 ReleaseMenuDC methods
33990 - Renamed ReleaseWindow to UngrabWindow
33991 - Added proper startup notice to allow version identification
33993 - Added missing attributes
33994 - Removed FormParent concept
33995 * Label.cs: Removed border_style field, now in Control
33996 * RadioButton.cs: Now properly selects RadioButton when focus is
33998 * ThemeGtk.cs: Fixed SetDisplay call to match new X11 behaviour
34000 - Added missing attributes
34001 - Added borderstyle handling
34002 - Removed FormParent concept support
34003 - Fixed calls to XplatUI to match changed APIs
34004 - Fixed bug that would case us to use disposed Graphics objects
34005 - Removed unneeded internal methods
34006 - PerformLayout(): Fixed to handle DockStyle.Fill properly
34007 - SelectNextControl(): Fixed to properly check common parents
34008 * TextBoxBase.cs: Removed border_style field (now in Control)
34010 - Patch by Robert Thompson (rmt@corporatism.org): Added icon support,
34011 fixed calculations for form size
34012 - Added support for localized strings and icons
34013 - Improved form size calculations, added border
34014 * ListView.cs: Removed border_style field (now in Control)
34015 * X11Structs.cs: Moved several structs from X11 driver here
34016 * X11Keyboard.cs: Changed debug message
34017 * Application.cs: Removed FormParent concept support
34019 - Resetting end_modal flag
34020 - Removed FormParent concept support
34021 * NativeWindow.cs: Removed FormParent concept support
34022 * XplatUIX11.cs: Rewritten, now using the new Hwnd class, implementing
34023 Client area and Non-Client whole window to allow support for WM_NC
34025 * XplatUIOSX.cs: Updated to match latest driver spec; added exception
34026 prevent using it until it supports Hwnd as per Geoff Norton's request
34027 * ToolBar.cs: Fixed drawing, was not doing proper drawing
34028 * PictureBox.cs: Removed border_style field, now in Control
34029 * XplatUIWin32.cs: Added new driver methods
34031 2005-02-12 Peter Bartok <pbartok@novell.com>
34033 * OpacityConverter.cs: Implemented
34034 * Hwnd.cs: Internal class to support drivers that need to emulate
34035 client area/non-client area window behaviour
34037 2005-02-11 Peter Bartok <pbartok@novell.com>
34039 * KeysConverter.cs: Implemented
34041 2005-02-11 Jordi Mas i Hernandez <jordi@ximian.com>
34043 * Menu.cs: fixes methods GetContextMenu, GetMainMenu, ToString
34044 * LinkLabel: Added missing attributes
34045 * MainMenu.cs: fixes ToString
34046 * MenuItem.cs: fixes methods GetContextMenu, GetMainMenu
34047 * ListBox.cs: fixes event position
34048 * TrackBar.cs: adds missing attributes and events
34050 2005-02-10 Jordi Mas i Hernandez <jordi@ximian.com>
34052 * MenuItem.cs: Use SystemInformation and bug fixes
34053 * MenuAPI.cs: Use SystemInformation and bug fixes
34055 2005-02-09 Jackson Harper <jackson@ximian.com>
34057 * X11Keyboard.cs: We ignore some keys, but still need to set/reset
34058 their keystate otherwise things like VK_MENU get stuck "on".
34060 2005-02-09 Kazuki Oikawa <kazuki@panicode.com>
34062 * ListBox.cs: Fixes AddRange bug
34064 2005-02-09 Jordi Mas i Hernandez <jordi@ximian.com>
34067 - Add missing attributes
34068 - Add missing method
34070 * CheckedListBox.cs: Added missing attributes
34071 - Add missing attributes
34072 - Remove extra method
34074 * ComboBox.cs: Added missing attributes
34075 * VScrollBar.cs: Added missing attributes
34076 * ScrollBar.cs: Added missing attributes
34077 * ListBox.cs: Fixes signature, add missing consts
34078 * LinkArea.cs: Added missing attributes
34081 2005-02-08 Peter Bartok <pbartok@novell.com>
34083 * Menu.cs: Added missing attributes
34084 * MainMenu.cs: Added missing attributes
34085 * GroupBox.cs: Added missing attributes
34086 * Label.cs: Added missing attributes
34087 * CheckBox.cs: Implemented CheckBoxAccessibleObject class
34089 - Added Instance and Options properties
34090 - Added missing attributes
34091 * Cursor.cs: Made Serializable
34092 * NotifyIcon: Added missing attributes
34093 * MenuItem.cs: Added missing attributes
34094 * TextBoxBase.cs: Implemented AppendText() and Select() methods
34095 * Panel.cs: Added Missing attributes
34096 * MonthCalendar.cs: Fixed CreateParams
34098 2005-02-08 Jordi Mas i Hernandez <jordi@ximian.com>
34102 - Fixes issues with links
34103 - Adds the class attributes
34105 2005-02-08 Jordi Mas i Hernandez <jordi@ximian.com>
34108 - Fixes button when no items available in dropdown
34109 - Fixes repainting problems
34110 - Adds the class attributes
34112 2005-02-07 Geoff Norton <gnorton@customerdna.com>
34114 * XplatUIOSX.cs: Detect the menu bar and title bar height from
34115 the current theme. Cache these on startup.
34117 2005-02-07 Jackson Harper <jackson@ximian.com>
34119 * ScrollBar.cs: Give the correct clipping rect to the theme. Dirty
34120 the scrollbar buttons when they are depressed.
34122 2005-02-07 Geoff Norton <gnorton@customerdna.com>
34124 * XplatUIOSX.cs: Really fix working at resolutions not 1024x768.
34125 Get the display size from the main displayid. We currently dont
34126 support multiple display configurations.
34128 2005-02-07 Geoff Norton <gnorton@customerdna.com>
34130 * XplatUIOSX.cs: Ensure the window doesn't get stuck behind the statusbar.
34132 2005-02-07 Miguel de Icaza <miguel@novell.com>
34134 * UpDownBase.cs: Add ReadOnly and UpDownAlign properties.
34136 2005-02-05 Jonathan Chambers <jonathan.chambers@ansys.com>
34138 * PropertyGrid.cs: Updated. Patch by Jonathan Chambers
34140 2005-02-04 Jackson Harper <jackson@ximian.com>
34142 * ThemeWin32Classic.cs: Respect the clipping rect when
34143 drawing. Only fill the intersection of clips and rects so there
34144 isn't a lot of large fills.
34145 * ScrollBar.cs: Pass the correct clipping rect to the theme
34146 engine. Remove some debug code.
34148 2005-02-05 John BouAntoun <jba-mono@optusnet.com.au>
34150 * DateTimePicker.cs:
34151 - Fixed crash on DateTime.Parse, use Constructor instead
34153 2005-02-04 Jordi Mas i Hernandez <jordi@ximian.com>
34157 - Owner draw support (MeasureItem and DrawItem)
34159 2005-02-04 Jordi Mas i Hernandez <jordi@ximian.com>
34162 - Implements FindMergePosition and MergeMenu functions (very poor documented)
34163 - Fixes MenuItems.Add range
34165 - MergeMenu and Clone and CloneMenu functions
34167 2005-02-03 Jackson Harper <jackson@ximian.com>
34169 * ScrollBar.cs: Make abstract
34170 * ScrollableControl.cs: Create H/V scrollbars now that scrollbar
34173 2005-02-03 Jackson Harper <jackson@ximian.com>
34175 * ScrollBar.cs: First part of my scrollbar fixups. This removes
34176 all the unneeded refreshes and uses invalidates with properly
34179 2005-02-03 Peter Bartok <pbartok@novell.com>
34181 * ComponentModel.cs: Added
34182 * IDataGridEditingService.cs: Added
34183 * Timer.cs: Added missing attributes
34184 * ToolTip.cs: Added missing attributes
34186 2005-02-03 Jonathan Chambers <jonathan.chambers@ansys.com>
34188 * PropertyGridView.cs: Added. Patch by Jonathan Chambers
34190 2005-02-03 Peter Bartok <pbartok@novell.com>
34192 * ListBox.cs: Added missing attributes
34194 2005-02-03 Jordi Mas i Hernandez <jordi@ximian.com>
34197 - Fixes font height after font change
34198 - Avoid generating unnecesary OnSelectedIndexChanged on clearing
34200 2005-02-02 Peter Bartok <pbartok@novell.com>
34202 * HandleData.cs: Introduced static methods to allow class
34203 to be more self-contained and track it's own HandleData objects
34204 * XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs: Fixed usage of
34205 HandleData to use new static methods
34207 2005-02-02 Jordi Mas i Hernandez <jordi@ximian.com>
34210 - Fixes default size and PreferredHeight
34212 - ObjectCollection.Insert implementation
34218 - ObjectCollection.Insert implementation
34219 - No selection after clean
34222 2005-01-31 John BouAntoun <jba-mono@optusnet.com.au>
34224 * ThemeWin32Classic.cs: quick fix to comboboxbutton pushed painting
34226 2005-02-01 Jordi Mas i Hernandez <jordi@ximian.com>
34229 - Caches ItemHeight calculation for OwnerDrawVariable
34230 - Handles dropdown properly
34231 - Fixes several minor bugs
34233 2005-01-31 Jordi Mas i Hernandez <jordi@ximian.com>
34236 - Fixes 71946 and 71950
34237 - Fixes changing Multicolumn on the fly
34238 - Fixes keyboard navigation on Multicolumn listboxes
34240 2005-01-31 Geoff Norton <gnorton@customerdna.com>
34242 * XplatUIOSX.cs: Call ExitToShell in our teardown to avoid a
34243 crash reporter log.
34245 2005-01-31 Geoff Norton <gnorton@customerdna.com>
34247 * XplatUIOSX.cs: Allow applications to actually exit.
34249 2005-01-31 Geoff Norton <gnorton@customerdna.com>
34251 * XplatUIOSX.cs: SetWindowStyle implemented. Reposition views in
34252 their parent at creation time rather than lazily later. Fixes a major
34253 regression we were experiencing.
34255 2005-01-31 John BouAntoun <jba-mono@optusnet.com.au>
34257 * ThemeWin32Classic.cs: more date time picker painting fixes
34258 * DateTimePicker.cs: more monthcalendar drop down fixes
34259 * MonthCalendar.cs: more CreateParams fixes to ensure correct drop down
34261 2005-01-31 Jordi Mas i Hernandez <jordi@ximian.com>
34264 - When moving the thumb going outside the control should stop the moving
34265 - Adds the firing of missing events
34266 - Fixes no button show if Size is not specified
34267 - End / Home keys for keyboard navigation
34269 2005-01-30 Peter Bartok <pbartok@novell.com>
34271 * NotifyIcon.cs (CalculateIconRect): Removed debug output and added
34272 sanity check to prevent theoretical loop
34273 * XplatUIWin32.cs (SetVisible): Removed debug output
34274 * XplatUIX11.cs (SystrayChange): Added sanity check
34275 * ScrollableControl.cs (OnVisibleChanged): Now calls base method
34276 * Control.cs (OnVisibleChanged): Added workaround for ParentForm
34277 behaviour, valid until the X11 client window rewrite is done
34278 * TextBox.cs (ctor): Setting proper default foreground and background
34281 2005-01-30 John BouAntoun <jba-mono@optusnet.com.au>
34283 * Theme: Added DrawDateTimePicker to interface
34284 * ThemeWin32Classic.cs: Added DrawDateTimePicker (incomplete)
34285 * DateTimePicker.cs: Created (still needs keys and painting code)
34286 * DateTimePickerFormat.cs: added
34287 * MonthCalendar.cs: fixed CreateParams for popup window mode
34289 2005-01-29 Peter Bartok <pbartok@novell.com>
34291 * ControlPaint.cs: Fixed luminace value returned on achromatic colors,
34292 this should also the calculations for ligher/darker
34293 * Theme.cs: Fixed defaults for ScrollBar widths/heights
34295 2005-01-29 Peter Bartok <pbartok@novell.com>
34297 * ArrangeDirection.cs: Added
34298 * ArrangeStartingPositon.cs: Added
34299 * SystemInformation.cs: Implemented
34300 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
34301 XplatUIX11.cs, Theme.cs: Added/implemented new static properties
34302 used by SystemInformation class
34303 * X11Strucs.cs: Added XSizeHints structure
34305 - Fixed CreateParams to make sure the menu window is always visible
34306 - TrackPopupMenu: Added check to make sure we don't draw the
34309 2005-01-29 Peter Bartok <pbartok@novell.com>
34311 * HandleData.cs: Added method for altering invalid area
34312 * TextBoxBase.cs: Implemented TextLength
34314 2005-01-28 Peter Bartok <pbartok@novell.com>
34316 * XplatUIX11.cs: Improvement over last patch, not sending
34317 the WM_PAINT directly anymore, instead we scroll any pending
34318 exposed areas and let the system pick out the WM_PAINT later
34320 2005-01-28 Peter Bartok <pbartok@novell.com>
34322 * SWF.csproj: Deleted, no longer used. Instead,
34323 Managed.Windows.Forms/SWF.csproj should be used
34324 * XplatUIX11.cs: Instead of posting the WM_PAINT, we send it
34325 directly, to avoid a potential race condition with the next
34328 2005-01-28 Peter Bartok <pbartok@novell.com>
34330 * XplatUI.cs: Made class internal
34332 2005-01-28 Jordi Mas i Hernandez <jordi@ximian.com>
34334 * CheckedListBox.cs:
34337 - Missing methods and events
34339 2005-01-27 Peter Bartok <pbartok@novell.com>
34341 * Application.cs (Run): Don't use form if we don't have one
34343 2005-01-27 Peter Bartok <pbartok@novell.com>
34345 * TextBoxBase.cs (get_Lines): Fixed index off by one error
34347 2005-01-27 Peter Bartok <pbartok@novell.com>
34349 * GridEntry.cs: Added; Patch by Jonathan S. Chambers
34350 * GridItem.cs: Added; Patch by Jonathan S. Chambers
34351 * GridItemCollection.cs: Added; Patch by Jonathan S. Chambers
34352 * GridItemType.cs: Added; Patch by Jonathan S. Chambers
34353 * PropertyGrid.cs: Added; Patch by Jonathan S. Chambers
34354 * PropertySort.cs: Added; Patch by Jonathan S. Chambers
34355 * PropertyTabChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
34356 * PropertyTabChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
34357 * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
34358 * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
34359 * SelectedGridItemChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
34360 * SelectedGridItemChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
34362 2005-01-27 Jordi Mas i Hernandez <jordi@ximian.com>
34365 - Draw focus on Simple Combobox
34366 - Fixes drawing issues
34369 2005-01-27 Peter Bartok <pbartok@novell.com>
34372 - Place window in default location, instead of hardcoded 0/0
34373 - Send initial LocationChanged event
34375 - UpdateBounds after creation to find out where the WM placed us
34376 - Make sure that if the ParentForm changes location the Form
34378 * XplatUIX11.cs: XGetGeometry will not return the coords relative
34379 to the root, but to whatever the WM placed around us.
34380 Translate to root coordinates before returning toplevel
34382 * XplatUIWin32.cs: Removed debug output
34383 * XplatUIOSX.cs, XplatUI.cs, XplatUIDriver.cs: Added toplevel
34384 flag to GetWindowPos, to allow translation of coordinates on X11
34386 2005-01-27 Jordi Mas i Hernandez <jordi@ximian.com>
34388 * ListBox.cs: connect LostFocus Event
34390 2005-01-27 Peter Bartok <pbartok@novell.com>
34392 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
34393 XplatUIX11.cs: Extended the Systray API
34394 * Form.cs: Removed debug output
34395 * Application.cs: Fixed focus assignment, always need to call
34396 XplatUI.Activate() since Form.Activate() has rules that may
34398 * NotifyIcon.cs: Should be complete now
34399 * ToolTip.cs: Worked around possible timer bug
34401 2005-01-27 Jackson Harper <jackson@ximian.com>
34404 - Only invalidate the effected tabs when the
34405 selected index changes. This reduces drawing and gets rid of some
34407 - Only refresh if the tabs need to be shifted, otherwise only
34408 invalidate the slider button.
34409 - On windows the tabs are not filled to right if the slider is
34412 2005-01-27 Jackson Harper <jackson@ximian.com>
34414 * TabControl.cs: Only refresh on mouseup if we are showing the
34415 slider. Also only invalidate the button whose state has changed.
34417 2005-01-26 Peter Bartok <pbartok@novell.com>
34419 * XplatUI.cs, XplatUIDriver.cs: Added Systray methods
34420 * XplatUIWin32.cs: Implemented SystrayAdd(), SystrayChange()
34421 and SystrayRemove() methods
34422 * XplatUIOSX.cs: Stubbed Systray methods
34424 - Implemented SystrayAdd(), SystrayChange() and SystrayRemove()
34426 - Fixed broken XChangeProperty calls (marshalling messed up things)
34427 * X11Structs.cs: Added enums and structs required for Size hinting
34428 * NotifyIcon.cs: Added & implemented
34430 2005-01-26 Jackson Harper <jackson@ximian.com>
34432 * TabControl.cs: Space vertically layed out tabs properly.
34434 2005-01-26 Peter Bartok <pbartok@novell.com>
34436 * Form.cs (CreateClientParams): Always set the location to 0,0
34437 since we're a child window.
34439 * Control.cs (SetVisibleCore): Always explicitly setting the location
34440 of a toplevel window, apparently X11 doesn't like to move windows
34441 while they're not mapped.
34443 2005-01-26 Jackson Harper <jackson@ximian.com>
34445 * TabControl.cs: Implement FillToRight size mode with vertically
34448 2005-01-26 Jordi Mas i Hernandez <jordi@ximian.com>
34450 * ControlPaint.cs, ThemeWin32Classic.cs
34451 - Fixes DrawFocusRectangle
34453 2005-01-26 Jordi Mas i Hernandez <jordi@ximian.com>
34456 - MenuBar tracking only starts when item is first clicked
34457 - Fixes menu hidding for multiple subitems
34458 - Unselect item in MenuBar when item Executed
34461 2005-01-25 Jordi Mas i Hernandez <jordi@ximian.com>
34464 - IsInputKey for ListBox
34467 - Shift and Control item selection
34468 - Implement SelectionMode.MultiExtended
34469 - Fixes RightToLeft
34471 - IsInputKey implemented
34472 - Do not generate OnTextChangedEdit on internal txt changes
34474 2005-01-23 Peter Bartok <pbartok@novell.com>
34476 * AccessibleObject.cs: Partially implemented Select()
34477 * MonthCalendar.cs: Added missing attributes and events
34478 * Form.cs: Fixed CreateParams behaviour, now controls derived from
34479 form can properly override CreateParams.
34480 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
34481 XplatUIX11.cs: Dropped RefreshWindow method, not needed if
34482 Control performs Invalidate & Update
34483 * NativeWindow (CreateHandle): Added special handling for Form
34484 and Form.FormParent classes to allow overriding of From.CreateParams
34486 - ControlNativeWindow: Renamed 'control' variable to more intuitive
34488 - ControlNativeWindow: Added Owner property
34489 - Removed usage of Refresh() on property changes, changed into
34490 Invalidate(), we need to wait until the queue is processed for
34491 updates, direct calls might cause problems if not all vars for
34492 Paint are initialized
34493 - Added call to UpdateStyles() when creating the window, to set any
34494 styles that CreateWindow might have ignored.
34495 - Added support for Form CreateParent overrides to UpdateStyles()
34496 * MessageBox.cs: Removed no longer needed FormParent override stuff,
34497 CreateParams are now properly overridable
34498 * CommonDialog.cs: Removed no longer needed FormParent override stuff,
34499 CreateParams are now properly overridable
34501 2005-01-23 Miguel de Icaza <miguel@ximian.com>
34503 * UpDownBase.cs (ctor): Connect TextChanged in the entry to the
34506 Capture LostFocus and OnTextBoxChanged. The later introduces a
34507 recursive invocation that I have not figured out yet.
34509 Reset the timer when not using (it was accumulating).
34512 (OnTextBoxChanged): Set UserEdit to true here to track whether the
34513 user has made changes that require validation.
34515 Reset changing to avoid loops.
34517 2005-01-22 Miguel de Icaza <miguel@ximian.com>
34519 * NumericUpDown.cs: Display value at startup.
34521 * UpDownBase.cs (Text): Do not call UpdateEditText here, only call
34524 * NumericUpDown.cs: Minimum, Maximum, Text, Value properties
34525 filled in. Added some basic parsing of text.
34527 Still missing the OnXXX method overrides, and figuring out the
34528 events that must be emitted.
34530 * UpDownBase.cs: Handle UserEdit on the Text property.
34532 2005-01-22 Jordi Mas i Hernandez <jordi@ximian.com>
34535 - Fixes IntegralHeight
34538 2005-01-21 Jackson Harper <jackson@ximian.com>
34540 * TabControl.cs: Set the SelectedIndex property when SelectedTab
34541 is set so that the page visibility is updated and the tabs are
34544 2005-01-21 Jackson Harper <jackson@ximian.com>
34546 * TabControl.cs: Use cliping rectangle for blitting. Give the
34547 theme the clipping rect so we can do clipping while
34548 drawing. Remove some debug code.
34550 2005-01-21 Jackson Harper <jackson@ximian.com>
34552 * TabPage.cs: Add a new method so tab pages can force the tab
34553 control to recalculate the tab page sizes.
34554 * TabControl.cs: UpdateOwner needs to make the tab control recalc
34557 2005-01-20 Jackson Harper <jackson@ximian.com>
34559 * ThemeWin32Classic.cs: Clip text to the staus bar panels rects.
34561 2005-01-20 Jackson Harper <jackson@ximian.com>
34563 * TreeView.cs: Set the bounds for nodes properly. They were
34564 getting screwed up when checkboxes were not enabled, but images
34567 2005-01-20 Jordi Mas i Hernandez <jordi@ximian.com>
34570 - Owner draw support
34573 2005-01-20 Jackson Harper <jackson@ximian.com>
34575 * XplatUIStructs.cs: More misc keys
34576 * X11Keyboard.cs: Ignore some control keys.
34578 2005-01-20 Jackson Harper <jackson@ximian.com>
34580 * X11Structs.cs: Add the modmaps to the keymask struct and tabify.
34581 * X11Keyboard.cs: Set the AltGr mask when we get a key event.
34583 2005-01-19 Peter Bartok <pbartok@novell.com>
34585 * Control.cs: Un-selecting the control when it is loosing focus
34587 2005-01-19 Jackson Harper <jackson@ximian.com>
34589 * TreeView.cs: Hook up to the text controls leave event so we can
34590 end editing when the users clicks outside the text box.
34592 2005-01-19 Jackson Harper <jackson@ximian.com>
34594 * X11Keyboard.cs: Fix typo that was causing the wrong keycodes to
34595 get set in the conversion array.
34597 2005-01-19 Peter Bartok <pbartok@novell.com>
34599 * Application.cs (ModalRun): Added a call to CreateControl to ensure
34600 focus is properly set
34602 - Added missing attributes
34603 - removed styles, those are already set in the base class
34605 - Added missing attributes
34606 - Added clip window styles
34607 * CheckBox.cs: Added missing attributes
34609 - FormParentWindow.CreateParams: Added required clip styles
34610 * Form.cs (ProcessDialogKey): Fixed handling of Escape key, now
34611 also filters modifier keys
34613 - Added assignment of Accept and Cancel button to enable Enter
34614 and Esc keys in MessageBox dialogs
34615 - FormParentWindow.CreateParams: Added required clip styles
34616 * RadioButton.cs: Added missing attributes
34617 * TextControl.cs: No longer draws selection if control does not
34620 - Now draws simple rectangle around test area to make it obvious
34621 there's a control. This is a hack until we properly support borders
34622 - A few simple fixes to support selections better, now erases selected
34623 text when typing, and resets selection when using movement keys
34625 2005-01-19 Miguel de Icaza <miguel@ximian.com>
34627 * UpDownBase.cs: Added some new properties.
34629 * DomainUpDown.cs: Implement a lot to get my test working.
34631 2005-01-19 Geoff Norton <gnorton@customerdna.com>
34633 * XplatUIOSX.cs: Fix a minor bug to bring the close box back
34635 2005-01-19 Geoff Norton <gnorton@customerdna.com>
34637 * OSXStructs (WindowAttributes): Fixed csc complaints
34639 2005-01-19 Geoff Norton <gnorton@customerdna.com>
34642 OSXStructs.cs: Initial refactor to move enums and consts into
34643 OSXStructs and use them in the driver for greater readability.
34645 2005-01-19 Geoff Norton <gnorton@customerdna.com>
34647 * XplatUIOSX.cs: Initial support for Standard Cursors.
34648 * OSXStructs.cs: Move our structs here; added ThemeCursor enum
34650 2005-01-19 Jordi Mas i Hernandez <jordi@ximian.com>
34652 * ComboBox.cs: ability to change style when the ctrl is already
34653 created, missing methods and events, bug fixes, signature fixes
34655 2005-01-19 Peter Bartok <pbartok@novell.com>
34657 * Cursors.cs (ctor): Added ctor to fix signature
34659 2005-01-18 Peter Bartok <pbartok@novell.com>
34661 * Button.cs: Implemented DoubleClick event
34663 - Fixed keyboard handling to behave like MS, where the press of
34664 Spacebar is equivalent to a mousedown, and the key release is
34665 equivalent to mouseup. Now a spacebar push will give the same
34666 visual feedback like a mouse click.
34667 - Added missing attributes
34668 - Added ImeModeChanged event
34669 - Added support for generating DoubleClick event for derived classes
34671 - Implemented DoubleClick event
34672 - Added missing attributes
34673 * CommonDialog.cs: Added missing attribute
34674 * ContextMenu.cs: Added missing attributes
34676 - AutoChecked buttons do not allow to be unselected when clicked
34677 (otherwise we might end up with no selected buttons in a group)
34678 - Added missing attributes
34679 - Implemented DoubleClickEvent
34680 * ThreadExceptionDialog.cs: Enabled TextBox code
34682 2005-01-18 Peter Bartok <pbartok@novell.com>
34684 * Form.cs: Removed debug output
34685 * Button.cs: Added support for DoubleClick method
34687 2005-01-18 Peter Bartok <pbartok@novell.com>
34690 - Added method to parent window that allows triggering size
34691 calculations when a menu is added/removed
34692 - set_Menu: Cleaned up mess from early days of Form and Control,
34693 now properly triggers a recalc when a menu is added/removed
34694 - Added case to select form itself as focused form if no child
34696 - Added PerformLayout call when showing dialog, to ensure properly
34699 - Select(): Made internal so Form can access it
34700 - Focus(): Only call Xplat layer if required (avoids loop), and sets
34702 * Application.cs (Run): Removed hack and calls PerformLayout instead
34703 to trigger calculation when Form becomes visible
34705 2005-01-18 Jordi Mas i Hernandez <jordi@ximian.com>
34707 * ComboBox.cs: fixes for ownerdraw
34709 2005-01-18 Peter Bartok <pbartok@novell.com>
34712 - Sentinel is no longer static, each Document gets it's own, this
34713 avoids locking or alternatively overwrite problems when more
34714 than one text control is used simultaneously.
34715 - Switched to use Hilight and HilightText brushes for text selection
34717 * TextBoxBase.cs (PaintControl): Disabled AntiAliasing to improve looks
34719 2005-01-18 Peter Bartok <pbartok@novell.com>
34722 - Hooked up the following events:
34730 o SystemColorsChanged
34731 o ParentFontChanged
34733 - Removed debug output
34734 - Added a call to the current theme's ResetDefaults when a color change
34736 * Form.cs: Now setting the proper ImeMode
34737 * Theme.cs: Defined a method to force recreation of cached resources
34738 and rereading of system defaults (ResetDefaults())
34739 * ThemeWin32Classic.cs: Added ResetDefaults() stub
34741 2005-01-17 Peter Bartok <pbartok@novell.com>
34743 * Control.cs: Added missing attributes
34745 2005-01-17 Jackson Harper <jackson@ximian.com>
34747 * TreeNode.cs: Implement editing. Add missing properties selected
34749 * TreeView.cs: Implement node editing. Also some fixes to use
34750 Invalidate (invalid area) instead of Refresh when selecting.
34752 2005-01-17 Peter Bartok <pbartok@novell.com>
34755 - Implemented InvokeGotFocus() method
34756 - Implemented InvokeLostFocus() method
34757 - Implemented InvokePaint() method
34758 - Implemented InvokePaintBackground() method
34759 - Implemented InvokeClick() method
34760 - Implemented FindForm() method
34761 - Implemented RectangleToClient() method
34762 - Implemented ClientToRectangle() method
34763 - Implemented ResetBackColor() method
34764 - Implemented ResetCursor() method
34765 - Implemented ResetFont() method
34766 - Implemented ResteForeColor() method
34767 - Implemented ResetImeMode() method
34768 - Implemented ResetLeftToRight() method
34769 - Implemented ResetText() method
34770 - Implemented Scale() methods
34771 - Implemented ScaleCore() method
34772 - Implemented Update() method
34773 - Removed unused variables
34774 - Stubbed AccessibilityNotifyClients and
34775 ControlAccessibleObject.NotifyClients() methods (dunno what to do
34777 - Now setting proper default for RightToLeft property
34778 - Fixed bug in SetClientSizeCore that would cause windows to get
34780 - Now sending Click/DoubleClick events
34781 - Now selecting controls when left mouse button is clicked on
34783 * AccessibleEvents.cs: Added
34784 * XplatUI.cs, XplatUIDriver.cs: Added UpdateWindow() method
34785 * XplatUIOSX.cs: Stubbed UpdateWindow() method
34786 * XplatUIWin32.cs: Implemented UpdateWindow() method
34787 * XplatUIX11.cs: Implemented UpdateWindow() method
34788 * Form.cs: Removed stray semicolon causing CS0162 warning
34789 * ThemeWin32Classic.cs: Fixed unused variable warnings
34790 * ScrollableControl.cs: Now calls base method for ScaleCore
34791 * ButtonBase.cs: Now disabling StandardClick and StandardDoubleClick
34792 style to avoid interference with internal click handler (which is
34793 different than standard Control click handling)
34795 - Now unchecks all sibling radio buttons when control is
34796 selected (Fixes #68756)
34797 - Removed internal tabstop variable, using the one inherited from
34800 2005-01-17 Jackson Harper <jackson@ximian.com>
34802 * NavigateEventArgs.cs: Fix base type.
34803 * LinkLabel.cs: Sig fix
34805 2005-01-17 Jackson Harper <jackson@ximian.com>
34807 * TreeView.cs: Only invalidate the effected nodes bounds when
34810 2005-01-13 Jordi Mas i Hernandez <jordi@ximian.com>
34812 * XplatUIWin32.cs: fixes Win32 marshaling
34813 * XplatUIX11.cs: fixes method signature
34815 2005-01-17 Peter Bartok <pbartok@novell.com>
34817 * XplatUIX11.cs: Clean up resources when we no longer need them
34819 2005-01-17 Peter Bartok <pbartok@novell.com>
34821 * XplatUI.cs, XplatUIDriver.cs: Added SetCursor(), ShowCursor(),
34822 OverrideCursor(), DefineCursor(), DefineStdCursor(), GetCursorInfo()
34823 and DestroyCursor() methods.
34824 * Cursor.cs: Partially implemented, now supports standard cursors;
34825 still contains some debug code
34826 * Cursors.cs: Implemented class
34828 - WndProc(): Added handling of WM_SETCURSOR message, setting the
34830 - Implemented Cursor property
34831 - Replaced break; with return; more straightforwar and possibly
34833 - Now properly setting the result for WM_HELP
34834 * X11Structs.cs: Added CursorFontShape enum
34835 * XplatUIStructs.cs:
34836 - Added StdCursor enum (to support DefineStdCursor() method)
34837 - Added HitTest enum (to support sending WM_SETCURSOR message)
34839 - Now sends the WM_SETCURSOR message
34840 - Implemented new cursor methods
34841 * XplatUIOSX.cs: Stubbed new cursor methods
34843 - Implemented new cursor methods
34844 - Added GetSystemMetrics function and associated enumeration
34846 2005-01-15 Peter Bartok <pbartok@novell.com>
34849 - WndProc(): Now handles EnableNotifyMessage
34850 - SelectNextControl(): Fixed bug where if no child or sibling
34851 controls exist we looped endlessly
34853 2005-01-14 Jackson Harper <jackson@ximian.com>
34855 * TreeView.cs: Recalculate the tab pages when a new one is added
34856 so that the proper bounding rects are created.
34858 2005-01-14 Jackson Harper <jackson@ximian.com>
34860 * TreeView.cs: Draw a gray box instead of a grip in the lower
34861 right hand corner when there are both horizontal and vertical
34864 2005-01-14 Jackson Harper <jackson@ximian.com>
34866 * Control.cs: When erasing backgrounds use FromHwnd instead of
34867 FromHdc when there is a NULL wparam. This occurs on the X driver.
34868 * XplatUIX11.cs: Set the wparam to NULL.
34870 2005-01-13 Jackson Harper <jackson@ximian.com>
34872 * PictureBox.cs: Implement missing methods (except ToString, need
34873 to test that on windows) and events. When visibility is changed we
34874 need to redraw the image because the buffers are killed. When size
34875 is changed refresh if the sizemode needs it.
34877 2005-01-13 Peter Bartok <pbartok@novell.com>
34879 * Control.cs (SelectNextControl): Was using wrong method to select
34882 2005-01-13 Jordi Mas i Hernandez <jordi@ximian.com>
34884 * ComboBox.cs: fixes dropstyle
34886 2005-01-13 Peter Bartok <pbartok@novell.com>
34889 - Implemented Select() override
34890 - Now handles WM_SETFOCUS/WM_KILLFOCUS messages
34891 - Now sets keyboard focus on startup
34892 * Control.cs (SelectNextControl): Now properly handles directed=true
34894 - WndProc: Now passes tab key on to base if AcceptTabChar=false
34895 - Added (really bad) focus rectangle (mostly for testing)
34896 * TextBox.cs: Added code to handle getting/loosing focus and invalidating
34897 to enforce redraw on focus changes
34898 * ContainerControl.cs:
34899 - Fixed detection of Shift-Tab key presses
34900 - Fixed traversal with arrow keys
34901 * XplatUIX11.cs: Implemented simulated keyboard focus; not sure if we're
34902 gonna keep this or if it's complete yet
34904 2005-01-13 Jordi Mas i Hernandez <jordi@ximian.com>
34906 * ComboBox.cs: missing properties, fixes
34908 2005-01-13 Peter Bartok <pbartok@novell.com>
34910 * Panel.cs (ctor): Setting Selectable window style to off
34911 * Splitter.cs (ctor): Setting Selectable window style to off
34912 * GroupBox.cs (ctor): Setting Selectable window style to off
34913 * Label.cs (ctor): Setting Selectable window style to off
34915 2005-01-12 Miguel de Icaza <miguel@ximian.com>
34917 * UpDownBase.cs (InitTimer): If the timer has been already
34918 created, enable it.
34920 Use a TextBox instead of a Label.
34922 2005-01-12 Jackson Harper <jackson@ximian.com>
34924 * TreeView.cs: Refresh the tree after sorting the nodes. Always
34925 draw the connecting node lines (when ShowLines is true).
34926 * TreeNode.cs: The nodes index can now be updated. This is used
34927 when a node collection is sorted.
34928 * TreeNodeCollection.cs: Implement sorting. Nodes can be sorted on
34929 insert or an existing unsorted node collection can be sorted.
34931 2005-01-12 Peter Bartok <pbartok@novell.com>
34933 * ContainerControl.cs: Implemented ProcessDialogKeys()
34935 2005-01-12 Peter Bartok <pbartok@novell.com>
34938 - Implemented SelectNextControl() method
34939 - Several focus related bug fixes
34940 - Fixed Docking calculations to match MS documentation and
34943 2005-01-12 Jordi Mas i Hernandez <jordi@ximian.com>
34945 * ContainerControl.cs, ListControl.cs, ListBox.cs: keyboard navigation and
34948 2005-01-12 Peter Bartok <pbartok@novell.com>
34951 - Fixed broken Contains() method
34952 - Implemented GetNextControl() method. Finally. This is the pre-
34953 requisite for focus handling.
34955 2005-01-12 Peter Bartok <pbartok@novell.com>
34957 * OSXStrucs.cs: Added
34959 2005-01-12 Peter Bartok <pbartok@novell.com>
34962 - Removed PeekMessageFlags
34963 - Implemented SetWindowStyle() method
34964 * XplatUIStructs.cs: Added PeekMessageFlags
34965 * X11Structs: Added missing border_width field to XWindowChanges struct
34967 - PeekMessage: Now throws exception if flags which are not yet
34968 supported are passed
34969 - Implemented SetWindowStyle() method
34970 - Fixed SetZOrder to handle AfterHwnd properly
34971 * XplatUI.cs: Added SetWindowStyle() method
34972 * XplatUIDriver.cs: Added SetWindowStyle() abstract
34974 - Implemented UpdateStyles() method
34975 - Implemented UpdateZOrder() method
34976 * XplatUIOSX.cs: Added SetWindowStyle() stub
34978 2005-01-12 Geoff Norton <gnorton@customerdna.com>
34980 * XplatUIOSX.cs: Fix SetZOrder (this needs more testing with a 3
34984 2005-01-11 Jackson Harper <jackson@ximian.com>
34986 * TreeView.cs: Still need to draw lines to siblings even if out of
34987 the current node is out of the clip.
34989 2005-01-11 Jackson Harper <jackson@ximian.com>
34991 * TreeView.cs: When setting the hbar/vbar/grip position use
34992 SetBounds so that perform layout is only called once. Also suspend
34993 and resume layout so layout is only done once for all controls.
34994 - Removed some debug fluff
34995 * SizeGrip.cs: Call base implmentation in overriding methods.
34996 - When visibility is changed the drawing buffers are killed so we
34999 2005-01-11 Jackson Harper <jackson@ximian.com>
35001 * TreeView.cs: Calculate the open node count while drawing. This
35002 saves us an entire tree traversal for every paint operation. Use
35003 a member var for the open node count so less vars are passed around.
35005 2005-01-11 John BouAntoun <jba-mono@optusnet.com.au>
35007 * MonthCalendar.cs:
35008 - fixed selection to use mousemove, not mouse polling on timer
35009 * ThemeWin32Classic.cs
35010 - removed redundant unused variable "no_more_content"
35012 2005-01-11 Peter Bartok <pbartok@novell.com>
35014 * XplatUIX11.cs (DoEvents): Needs to return when no more events
35015 are pending, so it now calls PeekMessage instead of GetMessage;
35016 implemented a incomplete version of PeekMessage
35018 2005-01-11 Peter Bartok <pbartok@novell.com>
35020 * XplatUIWin32.cs: Switched P/Invokes to unicode charset to avoid
35022 * TextBoxBase.cs: Added sending of TextChanged event
35024 2005-01-10 Jackson Harper <jackson@ximian.com>
35026 * TreeView.cs: Try not to draw outside the clipping rectangle on
35029 2005-01-10 Jordi Mas i Hernandez <jordi@ximian.com>
35031 * ComboBox.cs: keyboard navigation, item navigation, bug fixes
35033 2005-01-10 Jackson Harper <jackson@ximian.com>
35036 - Implement fast scrolling. Now only the newly
35037 exposed nodes are drawn and the old image is moved using the
35038 XplatUI::ScrollWindow method.
35039 - Factor in height of nodes when calculating whether or not the
35040 node is in the clipping rect.
35042 2005-01-10 Jackson Harper <jackson@ximian.com>
35044 * TreeNodeCollection.cs: Refresh the tree when a new node is added.
35046 2005-01-10 Peter Bartok <pbartok@novell.com>
35048 * Application.cs: Added temporary hack to resolve all our resize
35049 required issues on startup. This will get fixed properly at
35050 some point in the future
35052 2005-01-10 Jackson Harper <jackson@ximian.com>
35054 * SizeGrip.cs: New internal class that is used as a sizing
35055 grip control...hence the name.
35057 2005-01-10 Peter Bartok <pbartok@novell.com>
35059 * Control.cs: Implemented proper TabIndex handling, now assigning
35060 a tabindex when a control is added to a container
35061 * GroupBox.cs (ctor): Now sets the Container style bit, required
35062 for Control.GetNextControl()
35064 2005-01-09 Jackson Harper <jackson@ximian.com>
35066 * TextBoxBase.cs: Clear window when scrolling (fixes build).
35068 2005-01-09 Peter Bartok <pbartok@novell.com>
35070 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
35071 XplatUIX11.cs: Added ability to control ScrollWindow expose and
35072 an overload for ScrollWindow to allow only scrolling a rectangle
35074 2005-01-09 Peter Bartok <pbartok@novell.com>
35077 - Implemented SetDesktopBounds method
35078 - Implemented SetDesktopLocation method
35080 2005-01-08 Jackson Harper <jackson@ximian.com>
35082 * TreeView.cs: Only set the vbar's Maximum and LargeChange when
35083 the node count has changed, this removes to VScroll::Refresh calls
35086 2005-01-08 Geoff Norton <gnorton@customerdna.com>
35088 * XplatUIOSX.cs: Fix GetWindowState & SetWindowState
35090 2005-01-07 Jackson Harper <jackson@ximian.com>
35092 * TreeNode.cs: Just update the single node when it is
35093 checked. Don't refresh after toggling, the Expand/Collapse already
35095 * TreeView.cs: Respect clipping a little more when drawing. Try
35096 not to redraw things that don't need to be redrawn. Just hide the
35097 scrollbars when they are no longer needed instead of removing
35098 them, so they don't have to be created again and again.
35100 2005-01-07 Geoff Norton <gnorton@customerdna.com>
35102 * XplatUIOSX.cs (SetCaretPos): We need to translate the view
35103 coordinates to window space to place the caret properly, FIXED.
35104 Implement GetWindowState & SetWindowState
35106 2005-01-06 Peter Bartok <pbartok@novell.com>
35109 - Implemented ClientSize property
35110 - Implemented DesktopBounds property
35111 - Implemented DesktopLocation property
35112 - Implemented IsRestrictedWindow property
35113 - Implemented Size property
35114 - Implemented TopLevel property
35115 - Implemented FormWindowState property
35117 - Implemented GetTopLevel() method
35118 - Implemented SetTopLevel() method
35119 * X11Structs.cs (Atom):
35120 - Added AnyPropertyType definition
35121 - Added MapState definiton and updated XWindowAttribute struct
35122 * XplatUI.cs: Added GetWindowState() and SetWindowState() methods
35123 * XplatUIDriver.cs: Added GetWindowState() and SetWindowState() methods
35124 * XplatUIOSX.cs: Stubbed GetWindowState() and SetWindowState() methods
35126 - Implemented GetWindowState() and SetWindowState() methods
35127 - Fixed Win32GetWindowLong return type
35129 - Introduced central function for sending NET_WM messages
35130 - Implemented GetWindowState() and SetWindowState() methods
35131 * TextBoxBase.cs (set_Lines):
35132 - Now uses Foreground color for text added via Text property (Duh!)
35133 - Added code to remember programmatically requested size (fixes
35134 behaviour when Multiline is set after Size)
35135 - Added AutoSize logic
35137 2005-01-06 Jackson Harper <jackson@ximian.com>
35139 * TreeView.cs: Draw the image after the checkbox if checkboxes are enabled.
35141 2005-01-06 Jackson Harper <jackson@ximian.com>
35143 * ListBox.cs: Don't allow the horizontal scrollbars maximum to be
35144 set to less then 0.
35146 2005-01-06 Jackson Harper <jackson@ximian.com>
35148 * ScrollableControl.cs: Lazy init the scrollbars.
35150 2005-01-06 Jackson Harper <jackson@ximian.com>
35152 * Theme.cs: Speed up getting pens and solid brushes, by using
35153 their ARGB as a hash instead of tostring and not calling Contains.
35155 2005-01-06 Peter Bartok <pbartok@novell.com>
35158 - Implemented OnActivated and OnDeactivate event trigger
35159 - Implemented Activate() method
35160 - Fixed ShowDialog() to activate the form that was active before
35161 the dialog was shown
35163 - Added global active_window var that tracks the currently active
35165 - Now always grabs Property changes from the root window to always
35166 catch changes on the active window property
35167 - Added code to PropertyNotify handler to send Active/Inactive
35168 messages when state changes. This puts X11 and Win32 en par on
35169 WM_ACTIVATE notifications (except for double notifications when
35170 the user clicks away from our modal window to another one of our
35173 2005-01-05 Jackson Harper <jackson@ximian.com>
35175 * ImageList.cs: Implment ctor
35177 2005-01-05 Geoff Norton <gnorton@customerdna.com>
35179 * XplatUIOSX.cs: Implement Activate/SetTopmost
35181 2005-01-05 Geoff Norton <gnorton@customerdna.com>
35183 * XplatUIOSX.cs: Implement SetZOrder, minor cleanup
35185 2005-01-05 Geoff Norton <gnorton@customerdna.com>
35187 * XplatUIOSX.cs: Implement GetActive/SetFocus.
35189 2005-01-05 Peter Bartok <pbartok@novell.com>
35191 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs,
35192 XplatUIOSX.cs: Added GetActive method to return the currently
35193 active window for the application (or null, if none is active)
35195 - Implemented ActiveForm
35196 - Commented out owner assignment for modal dialogs (causes problems
35197 on Win32, since the owner will be disabled)
35198 - Reworked some Active/Focus handling (still incomplete)
35199 * CommonDialog.cs: Commented out owner assignment for modal dialogs
35200 (causes problems on Win32, since the owner will be disabled)
35201 * IWin32Window: Added ComVisible attribute
35203 2005-01-05 Peter Bartok <pbartok@novell.com>
35205 * ToolTip.cs (WndProc): Enable setting focus now that we have the
35206 required XplatUI functions.
35208 2005-01-05 Peter Bartok <pbartok@novell.com>
35210 * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIDriver.cs,
35211 XplatUIX11.cs, X11Structs.cs, Form.cs: Framework code required
35212 to implement focus and activation handling; still incomplete and
35215 2005-01-04 Peter Bartok <pbartok@novell.com>
35217 * TextBoxBase.cs: Changed access level for Document property to
35218 match switch to internal for TextControl
35220 2005-01-04 Peter Bartok <pbartok@novell.com>
35222 * AccessibleObject: Added ComVisible attribute
35224 2005-01-04 Jackson Harper <jackson@ximian.com>
35226 * X11Keyboard.cs: Remove unneeded var.
35228 2005-01-04 Jackson Harper <jackson@ximian.com>
35230 * XplatUIX11.cs (DoEvents): Implement, Just cast aside all events
35232 * XplatUIX11.cs (GetMessage): Call Exit when we get an unknown
35233 ClientMessage. This makes apps exit cleanly (more often).
35235 2005-01-04 Jackson Harper <jackson@ximian.com>
35237 * TreeNode.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) for
35238 handling focus, return correct colors and fonts,
35239 * TreeView.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) to
35240 handle selection, horizontal scrolling, and mouse interaction.
35242 2005-01-04 Peter Bartok <pbartok@novell.com>
35244 * ICommandExecutor.cs: Added
35245 * IDataGridColumnStyleEditingNotificationService.cs: Added
35246 * IFeatureSupport.cs: Added
35247 * IFileReaderService.cs: Added
35248 * IDataObject.cs: Added ComVisible attribute
35249 * AmbientProperties.cs: Added
35250 * BaseCollection.cs: Added missing attributes
35251 * ListBindingConverter.cs: Added (stubbed, required for certain attributes)
35252 * BaseCollection.cs: Added missing attributes
35253 * Binding.cs: Added TypeConverter attribute
35254 * BindingContext.cs: Added DefaultEvent attribute
35255 * BindingsCollection.cs: Added DefaultEvent attribute
35256 * Button.cs: Added DefaultValue attribute
35257 * DragEventArgs.cs: Added ComVisible attribute
35258 * GiveFeedbackEventArgs.cs: Added ComVisible attribute
35259 * KeyEventArgs.cs: Added ComVisible attribute
35260 * KeyPressEventArgs.cs: Added ComVisible attribute
35261 * MouseEventArgs.cs: Added ComVisible attribute
35262 * NavigateEventArgs.cs: Added
35263 * NavigateEventHandler.cs: Added
35264 * FeatureSupport.cs: Added
35265 * OSFeature.cs: Added
35266 * Theme.cs: Added abstract Version property to support OSFeature
35267 * ThemeWin32Classic.cs: Added Version property to
35268 support OSFeature.Themes
35269 * ProgressBar.cs: Removed OnPaintBackground override, not required since
35270 the proper styles to avoid background drawing are set, also doesn't
35272 * QueryAccessibilityHelpEventArgs.cs: Added ComVisible attribute
35273 * QueryContinueDragEventArgs.cs: Added ComVisible attribute
35274 * ScrollEventArgs.cs: Added ComVisible attribute
35275 * SplitterEventArgs.cs: Added ComVisible attribute
35276 * AccessibleSelection.cs: Added Flags attribute
35277 * Appearance.cs: Added ComVisible attribute
35278 * Border3DSide.cs: Added ComVisible attribute
35279 * Border3DStyle.cs: Added ComVisible attribute
35280 * BorderStyle.cs: Added ComVisible attribute
35281 * DragAction.cs: Added ComVisible attribute
35282 * ErrorBlinkStyle.cs: Added
35283 * ScrollEventType.cs: Added ComVisible attribute
35284 * AnchorStyles.cs: Added Editor attribute
35285 * DockStyle.cs: Added Editor attribute
35286 * HorizontalAlignment.cs: Added ComVisible attribute
35287 * HelpEventArgs.cs: Added ComVisible attribute
35288 * PaintEventArgs.cs: Added IDisposable
35290 2005-01-04 Peter Bartok <pbartok@novell.com>
35292 * TextControl.cs: Switched Line, LineTag and Document classes to
35295 2005-01-04 Jordi Mas i Hernandez <jordi@ximian.com>
35297 * ComboBox.cs, ThemeWin32Classic.cs, ListBox.cs, Theme.cs:
35298 Simple mode, fixes, IntegralHeight, etc.
35300 2005-01-04 Peter Bartok <pbartok@novell.com>
35302 * TextBoxBase.cs: Using proper font variable now
35304 2005-01-04 Peter Bartok <pbartok@novell.com>
35306 * Form.cs (ShowDialog): Set parent to owner, if provided
35307 * GroupBox.cs: Removed unused vars
35309 - Added GetHashCode() for Document and LineTag classes
35310 - Removed unused variables
35311 - Added CharIndexToLineTag() and LineTagToCharIndex() methods
35312 to allow translation between continuous char position and line/pos
35313 * CheckBox.cs: Removed vars that are provided by base class
35314 * RadioButton.cs: Removed vars that are provided by base class, added
35315 new keyword where required
35316 * LinkLabel.cs: Added new keyword where required
35317 * Control.cs (WndProc): Removed unused variable
35319 - Finished SelectionLength property
35320 - Implemented SelectionStart property
35321 - Implemented Text property
35322 - Removed unused vars
35323 * MessageBox.cs: Added new keyword where required
35324 * TextBox.cs: Removed Text property code (now in TextBoxBase), fixed
35326 * MenuAPI.cs: Added new keyword where required
35327 * ButtonBase.cs: Removed vars that are provided by base class, added
35328 new keyword where required
35329 * ThemeWin32Classic.cs (DrawMonthCalendarDate): Now cast Math.Floor
35330 argument to double, to allow compiling with csc 2.0 (Atsushi ran
35332 * Application.cs (Run): Now triggers the ThreadExit event
35333 * CommonDialog.cs: Added new keyword where required; now properly sets
35334 parent (owner) for dialog
35335 * XplatUIX11.cs: Commented out unused vars
35336 * StatusBar.cs: Fixed signature for Text property
35337 * TabPage.cs: Undid Jordi's removal of unused var, now using the var
35339 2005-01-04 Jordi Mas i Hernandez <jordi@ximian.com>
35341 * ComboBox.cs, TabPage.cs, MenuAPI.cs, ThemeWin32Classic.cs,
35342 TrackBar.cs, MonthCalendar.cs: remove unused vars
35344 2005-01-03 Jackson Harper <jackson@ximian.com>
35346 * ThemeWin32Classic.cs:
35347 * X11Keyboard.cs: Remove unused vars.
35349 2005-01-03 Peter Bartok <pbartok@novell.com>
35352 - set_Text: Tied into TextControl
35353 - set_TextAlignment: Tied into TextControl
35355 - Added alignment properties and implemented alignment handling
35356 and drawing (still has a bug, not generating proper expose events)
35357 - Added new Line() constructor to allow passing the line alignment
35358 - Fixed selection setting, properly handling end<start now
35359 - Added aligment considerations to RecalculateDocument()
35361 - Now properly enforces control height for single line controls
35362 - Added support for CharacterCasing
35363 - Added IsInputKey override
35364 - Fixed Keys.Enter logic
35365 - Added SetBoundsCore override
35366 - Fixed mouse selection handling
35368 2005-01-03 Jackson Harper <jackson@ximian.com>
35371 - Collapse and uncheck all nodes when CheckBoxes is disabled.
35372 - Checkboxes are always aligned to the bottom of the node,
35373 regardless of item height.
35374 - Use the node bounds to draw the text so we can center it when
35375 the item height is greater then the font height.
35376 - Node::Bounds are only the text part of the node.
35377 * TreeNode.cs: New method to combine collapsing and unchecking all
35380 2005-01-02 Jackson Harper <jackson@ximian.com>
35382 * TreeView.cs: Draw checkmarks, handle detecting check mark clicks
35383 * TreeNode.cs: Add a bounding box for the checkbox, refresh the
35384 tree when a check is changed. TODO: Only refresh the checked node.
35386 2004-12-30 Jackson Harper <jackson@ximian.com>
35388 * TreeView.cs: Draw checkbox boxes when checkboxes are enabled.
35389 * TreeNode.cs: When collapsing make sure to never collapse the
35392 2004-12-29 Jackson Harper <jackson@ximian.com>
35394 * TreeView.cs: Align lines to the bottom of plus minus boxes properly.
35396 2004-12-28 Zoltan Varga <vargaz@freemail.hu>
35398 * X11Structs.cs X11Keyboard.cs XplatUIX11.cs: Fix 64 bit issues.
35400 2004-12-28 Peter Bartok <pbartok@novell.com>
35402 * MessageBox.cs (get_CreateParams): Don't use owner var if it's
35405 2004-12-28 Peter Bartok <pbartok@novell.com>
35407 * Control.cs (WndProc): Added WM_HELP handler, now generates
35408 HelpRequested event
35409 * Form.cs: Added HelpButton property and required support code
35410 * XplatUIStructs.cs: Added HELPINFO structure for WM_HELP handling
35412 2004-12-28 Peter Bartok <pbartok@novell.com>
35415 - Made DialogForm.owner variable internal
35416 - Added check to ensure owner form is set before setting
35417 owner properties in CreateParams
35419 2004-12-28 Geoff Norton <gnorton@customerdna.com>
35421 * XplatUIOSX.cs: Implement mouse hovering. Fix QDPoint struct to avoid
35422 swizzling. Implement ClientToScreen and ScreenToClient. Implement
35423 GetCursorPos. Fix major visibility issues. Rework the windowing
35424 system to support borderless/titleless windows (implements menus).
35425 Fix GetWindowPos. Implement initial background color support for
35428 2004-12-28 Peter Bartok <pbartok@novell.com>
35430 * Form.cs (get_CreateParams): Make sure we have an owner before using
35431 the owner variable. Implement proper default if no owner exists
35433 2004-12-28 Peter Bartok <pbartok@novell.com>
35435 * In preparation for making Managed.Windows.Forms the default build target
35436 for System.Windows.Forms, the following stubbed files were added.
35437 Dialogs are currently being implemented by contributors and are only
35438 short-term place holders.
35439 * ColorDialog.cs: Initial check-in (minmal stub)
35440 * DataGrid.cs: Initial check-in (minimal stub)
35441 * DataGridLineStyle.cs: Initial check-in (minimal stub)
35442 * DataGridParentRowsLabelStyle.cs: Initial check-in (minimal stub)
35443 * DataGridTableStyle.cs: Initial check-in (minimal stub)
35444 * FontDialog.cs: Initial check-in (minimal stub)
35445 * FileDialog.cs: Initial check-in (minimal stub)
35446 * GridColumnStylesCollection.cs: Initial check-in (minimal stub)
35447 * GridTableStylesCollection.cs: Initial check-in (minimal stub)
35448 * OpenFileDialog: Initial check-in (minimal stub)
35449 * IComponentEditorPageSite.cs: Initial check-in
35450 * Splitter.cs: Initial check-in (for Jackson)
35451 * SplitterEventArgs.cs: Initial check-in (for Jackson)
35452 * SplitterEventHandler.cs: Initial check-in (for Jackson)
35453 * TextBox.cs: Initial check-in; still needs some wiring to
35454 TextControl backend
35455 * Form.cs: Implemented ControlBox property
35456 * MessageBox.cs: Added proper coding for Minimize/Maximize/ControlBox
35457 * CommonDialog.cs: Added proper coding for Minimize/Maximize/ControlBox
35458 * TextControl.cs: Added selection functionality; added todo header
35460 - Implemented Lines property
35461 - Implemented TextHeight property
35462 - Implemented SelectedText property
35463 - Implemented SelectionLength property
35464 - Implemented SelectAll method
35465 - Implemented ToString method
35466 - Removed and cleaned up some debug code
35467 - Implemented (still buggy) mouse text selection
35469 2004-12-27 Jordi Mas i Hernandez <jordi@ximian.com>
35471 * ComboBox.cs: Complete DropDownList implementation, fixes.
35473 2004-12-26 Jordi Mas i Hernandez <jordi@ximian.com>
35475 * ThemeWin32Classic, Theme.cs: ComboBox drawing methods
35476 * ComboBoxStyle.cs: ComboBoxStyle enum
35477 * ComboBox.cs: Initial work on ComboBox control
35479 2004-12-21 Peter Bartok <pbartok@novell.com>
35481 * Control.cs (ctor, CreateParams): Moved setting of is_visible
35482 forward so that anything that creates a window gets the default,
35483 also no longer uses Visible property in CreateParams to avoid
35484 walking up the parent chain and possibly get the wrong visible
35485 status. Fixed IsVisible to no longer walk up to the parent.
35487 2004-12-21 Peter Bartok <pbartok@novell.com>
35489 * Form.cs (ShowDialog): Unset modality for the proper window
35491 2004-12-20 Peter Bartok <pbartok@novell.com>
35493 * CommonDialog.cs: Initial check-in
35495 2004-12-20 Peter Bartok <pbartok@novell.com>
35497 * Control.cs (Visible): Now uses the parent window instead of the
35498 client area window for the property
35501 - ShowDialog(): Now uses the proper window for modality
35502 - The default visibility state for the form parent is now false. This
35503 will prevent the user from seeing all the changes to the form and
35504 its controls before the application hits Application.Run()
35505 - Removed some stale commented out code
35508 - Added FindWindow() method to have a method to check for existence
35510 - Added ability to override default exception handling (for example
35511 when debugging with VS.Net; to do this the ExternalExceptionHandler
35513 - Removed some useless debug output
35516 - Removed r37929 (SetModal patch from Ashwin Bharambe), was
35517 not working as expected
35518 - Implemented modal_window stack and checking for _WM_ACTIVE_WINDOW
35519 property to allow switching back to the modal window if focus is
35520 given to another one of our windows (Application Modal)
35521 - Now only sets override_redirect if we create a window
35523 - Moved EventMask selection before mapping of newly created window
35524 so we can catch the map event as well
35525 - Implemented Activate() method via the _WM_ACTIVE_WINDOW property
35526 - Added various Atom related DllImports
35527 - Implemented Exit() method
35528 - .ctor() : No longer shows window if WS_VISIBLE is not defined
35529 in the CreateParams
35531 * MessageBox.cs: Now properly deals with the FormParent window by
35532 providing an override the FormParent CreateParams property to
35533 set as POPUP instead of OVERLAPPED window.
35535 2004-12-19 Geoff Norton <gnorton@customerdna.com>
35537 * XplatUIOSX.cs: Implement DestroyWindow. Implement ScrollWindow
35538 Minor code cleanup.
35540 2004-12-19 Geoff Norton <gnorton@customerdna.com>
35542 * XplatUIOSX.cs (SetModal): Implement this method on OSX.
35544 2004-12-18 Peter Bartok <pbartok@novell.com>
35546 * XplatUIX11.cs (SetModal): Applied patch from Ashwin Bharambe,
35547 implementing SetModal() method
35549 2004-12-18 Peter Bartok <pbartok@novell.com>
35551 * X11Structs.cs (XGCValues): Fixed type of function element
35552 * XplatUI.cs: Added ScrollWindow() method
35553 * XplatUIDriver.cs: Added ScrollWindow() abstract
35554 * XplatUIWin32.cs: Implemented ScrollWindow() method
35555 * XplatUIX11.cs: Implemented ScrollWindow() method
35556 * XplatUIOSX.cs: Stubbed out ScrollWindow() method
35558 2004-12-17 Geoff Norton <gnorton@customerdna.com>
35560 * XplatUIOSX.cs: Fix cursor to use an Invert instead of drawing it
35561 Some more keyboard support (INCOMPLETE)
35563 2004-12-17 Peter Bartok <pbartok@novell.com>
35566 - Added color attribute to line tags.
35567 - Added color argument to all functions dealing with tags
35568 - Added color argument support to various functions
35569 - Fixed miss-calculation of baseline/shift in certain circumstances
35571 * TextBoxBase.cs: Added new color option to test code
35573 2004-12-17 Jackson Harper <jackson@ximian.com>
35576 * MonthCalendar.cs: Signature fixes
35578 2004-12-17 Geoff Norton <gnorton@customerdna.com>
35580 * XplatUIOSX.cs: Find the missing caret; caret was dissappearing after a
35581 keyboard event moved it. Create a new graphics context for each paint resolves this
35583 2004-12-17 Geoff Norton <gnorton@customerdna.com>
35585 * XplatUIOSX.cs: Fix hard cpu eat on loop with existing timers,
35586 Make caret exist and go blink blink. Initial keyboard support.
35587 Fix exception handler, Add Invalidate support. Change way RefreshWindow
35590 2004-12-17 Jackson Harper <jackson@ximian.com>
35592 * XplatUIStructs.cs: Updated set of virtual keycodes.
35593 * KeyboardLayouts.cs: SCROLL_LOCK is now SCROLL
35595 2004-12-17 Jackson Harper <jackson@ximian.com>
35597 * XplatUIX11.cs: Prune old keyboard code.
35599 2004-12-17 Jackson Harper <jackson@ximian.com>
35601 * XplatUIX11.cs: When generating mouse wparams get the modifier
35602 keys from the ModifierKeys property.
35604 2004-12-17 Jackson Harper <jackson@ximian.com>
35606 * X11Keyboard.cs: Send up/down input when generating
35607 messages. Remove some unused vars.
35609 2004-12-17 Jackson Harper <jackson@ximian.com>
35612 * TreeView.cs: get rid of warnings.
35614 2004-12-17 Jackson Harper <jackson@ximian.com>
35616 * XplatUIStructs.cs: Fix a couple wrong virtual keycodes.
35618 2004-12-17 Jordi Mas i Hernandez <jordi@ximian.com>
35620 * ListBox.cs: bug fixes, changes for CheckedListBox.cs
35621 CheckedListBox.cs: Implementation
35623 2004-12-17 Peter Bartok <pbartok@novell.com>
35625 * TextControl.cs (RecalculateLine): Fixed baseline aligning calcs
35627 2004-12-16 Peter Bartok <pbartok@novell.com>
35630 - InsertCharAtCaret(): Fixed start pos fixup
35631 - CaretLine_get: No longer derives the line from the tag, the tag
35632 could be stale if lines in the document have been added or deleted
35633 - RebalanceAfterDelete(): Fixed bug in balancing code
35634 - RebalanceAfterAdd(): Fixed really stupid bug in balancing code
35635 - Line.Streamline(): Now can also elminate leading empty tags
35636 - DumpTree(): Added a few more tests and prevented exception on
35638 - Added Debug section for Combining lines
35639 - Delete(): Now copies all remaining properties of a line
35642 - Left mousebutton now sets the caret (and middle button still acts
35643 as formatting tester, which must go away soon)
35644 - Added Debug section for Deleting/Combining lines
35645 - Fixed calculations for UpdateView after Combining lines
35647 2004-12-16 Peter Bartok <pbartok@novell.com>
35649 * TextControl.cs: Now properly aligns text on a baseline, using the
35650 new XplatUI.GetFontMetrics() method. Simplified several calculations
35651 * TextBoxBase.cs: Moved #endif to allow compiling if Debug is not
35654 2004-12-16 Peter Bartok <pbartok@novell.com>
35656 * XplatUI.cs: Added GetFontMetrics() method
35657 * XplatUIDriver.cs: Added GetFontMetrics() abstract
35658 * XplatUIX11.cs: Implemented GetFontMetrics() method, now calls
35659 into libgdiplus, our private GetFontMetrics function
35660 * XplatUIOSX.cs: Implemented GetFontMetrics() method, same as X11
35661 * XplatUIWin32.cs: Implemented GetFontMetrics() method
35663 2004-12-16 Jackson Harper <jackson@ximain.com>
35665 * XplatUIStruct.cs: Add enum for dead keys
35666 * X11Keyboard.cs: Map and unmap dead keys.
35668 2004-12-16 Jackson Harper <jackson@ximian.com>
35670 * X11Keyboard.cs: Detect and use the num lock mask.
35672 2004-12-16 Peter Bartok <pbartok@novell.com>
35674 * Control.cs (CreateGraphics): Added check to make sure the
35675 handle of the window exists before calling Graphics.FromHwnd()
35677 2004-12-16 Peter Bartok <pbartok@novell.com>
35679 * TextBoxBase.cs: Initial check-in. DO NOT TRY TO USE THIS YET. It
35680 contains a lot of code that's not supposed to be there for the
35681 real thing, but required for developing/testing the textbox
35684 2004-12-16 Peter Bartok <pbartok@novell.com>
35687 - Fixed Streamline method
35688 - Added FindTag method to Line
35689 - Added DumpTree method for debugging
35690 - Added DecrementLines() method for deleting lines
35691 - Fixed UpdateView to update the cursor to end-of-line on single-line
35693 - Added PositionCaret() method
35694 - Fixed MoveCaret(LineDown) to move into the last line, too
35695 - Added InsertChar overload
35696 - Fixed InsertChar tag offset calculations
35697 - Added DeleteChar() method
35698 - Added Combine() method for folding lines
35699 - Fixed Delete() method, no longer allocates wasted Line object and
35700 now copies all properties when swapping nodes
35701 - Delete() method now updates document line counter
35703 2004-12-15 Jackson Harper <jackson@ximian.com>
35705 * XplatUIX11.cs: Get the modifier keys from the keyboard driver
35706 * X11Keyboard.cs: Expose the currently selected modifier keys
35707 through a property.
35709 2004-12-15 Peter Bartok <pbartok@novell.com>
35711 * TextControl.cs: Initial check-in. Still incomplete
35713 2004-12-15 Jackson Harper <jackson@ximian.com>
35716 * TreeView.cs: Fix build on csc (second time today ;-))
35718 2004-12-15 Jackson Harper <jackson@ximian.com>
35720 * TreeView.cs: Store the treenodes plus/minus box bounds when it
35721 is calculated and use this for click testing.
35722 * TreeNode.cs: Add functionality to store the nodes plus minus box bounds.
35724 2004-12-15 Jackson Harper <jackson@ximian.com>
35726 * TreeView.cs: Pass the nodes image index to the image list when
35727 drawing that image.
35729 2004-12-15 Jackson Harper <jackson@ximian.com>
35731 * X11Keyboard.cs: Set messages hwnd.
35732 * XplatUIX11.cs: Pass proper hwnd wot keyboard driver. Set hwnd on
35733 post_message calls.
35735 2004-12-15 Jackson Harper <jackson@ximian.com>
35737 * X11Keyboard.cs: Fix to compile with csc.
35739 2004-12-15 Jackson Harper <jackson@ximian.com>
35741 * X11Structs.cs: Add key mask values
35742 * XplatUIStruct.cs: Add keyboard event flags, and keyboard definitions
35743 * X11Keyboard.cs: New file - Extrapolates and interpolates key
35744 down/up foo into WM_CHAR foo
35745 * KeyboardLayouts.cs: Common keyboard layouts
35746 * XplatUIX11.cs: Add the keyboard driver. Add functionality to
35747 post messages into the main queue.
35749 2004-12-13 Jordi Mas i Hernandez <jordi@ximian.com>
35751 * Button.cs: implement ProcessMnemonic
35752 * ThemeWin32Classic.cs: use ResPool (caching) instead of creating
35754 * Control.cs: fixes IsMnemonic (support for &&, case insensitive, etc)
35755 * ButtonBase.cs: Show HotkeyPrefix (not the &)
35757 2004-12-12 John BouAntoun <jba-mon@optusnet.com.au>
35759 * MonthCalendar.cs: Implemented click-hold for next/previous month
35762 2004-12-11 Peter Bartok <pbartok@novell.com>
35765 - Added XKeyboardState (moved from XplatUIX11.cs)
35766 - Added XCreateGC related enums and structures
35767 - Added GXFunction for XSetFunction
35769 * XplatUIStructs.cs: Added missing WS_EX_xxx definitions
35771 * XplatUI.cs: Added CreateCaret(), DestroyCaret(), SetCaretPos() and
35772 CaretVisible() calls
35774 * ToolTip.cs: Added code to prevent stealing focus from app windows
35776 * XplatUIDriver.cs: Added abstracts for caret functions (CreateCaret,
35777 DestroyCaret, SetCaretPos and CaretVisible)
35780 - Added implementation for caret functions
35781 - Moved hover variables into a struct, to make it a bit easier
35782 on the eyes and to debug
35783 - Removed XKeyboardState (moved to XplatUIX11.cs)
35784 - Moved Keyboard properties into the properties region
35786 * Control.cs (get_Region): Control.CreateGraphics is the appropriate
35787 call to get a graphics context for our control
35789 * XplatUIOSX.cs: Added empty overrides for the new caret functions
35791 * TreeView.cs: Fixed bug. No matter what color was set it would always
35792 return SystemColors.Window
35794 * XplatUIWin32.cs: Implemented caret overrides
35796 2004-12-10 Jordi Mas i Hernandez <jordi@ximian.com>
35798 * ListBox.cs: fire events, implement missing methods and properties,
35801 2004-12-10 John BouAntoun <jba-mono@optusnet.com.au>
35803 * MonthCalendar.cs: invalidation bug fixing
35804 * ThemeWin32Classic.cs: paint fixing
35806 2004-12-09 Geoff Norton <gnorton@customerdna.com>
35808 * XplatUIOSX.cs: Refactor to pass the real hwnd into Graphics.FromHwnd, we
35809 prepare the CGContextRef there now.
35811 2004-12-09 John BouAntoun <jba-mono@optusnet.com.au>
35813 * MonthCalendar.cs:
35814 - optimisationL only invalidate areas that have changed
35815 * ThemeWin32Classic.cs:
35816 - only paint parts that intersect with clip_area
35818 2004-12-09 Peter Bartok <pbartok@novell.com>
35820 * Application.cs: Undid changes from r37004 which cause problems
35823 2004-12-09 Ravindra <rkumar@novell.com>
35825 * ToolBar.cs: Added support for displaying ContextMenu
35826 attached to a button on ToolBar.
35827 * ToolBarButton.cs: Uncomment/fixed the DropDownMenu
35830 2004-12-09 Jordi Mas i Hernandez <jordi@ximian.com>
35832 * Label.cs: autosize works in text change and removes unnecessary
35835 2004-12-09 Jordi Mas i Hernandez <jordi@ximian.com>
35837 * ThemeWin32Classic.cs, XplatUIOSX.cs, XplatUIWin32.cs:
35840 2004-12-08 Geoff Norton <gnorton@customerdna.com>
35842 * XplatUIOSX.cs: Added mouse move/click/grab support
35843 Remove some debugging WriteLines not needed anymore.
35844 Add window resizing/positioning.
35845 Fix visibility on reparenting.
35847 2004-12-08 Peter Bartok <pbartok@novell.com>
35849 * XplatUIOSX.cs: Added Idle event, now compiles on VS.Net
35851 2004-12-07 Geoff Norton <gnorton@customerdna.com>
35853 * XplatUIOSX.cs: Initial checkin
35854 * XplatUI.cs: Use the Quartz driver if the environment is set to use it
35856 2004-12-03 Ravindra <rkumar@novell.com>
35858 * ListView.cs: Added some keybindings and fixed scrolling.
35859 ScrollBars listen to ValueChanged event instead of Scroll
35860 Event. This would let us take care of all changes being
35861 done in the scrollbars' values programmatically or manually.
35862 * ListView.cs (CanMultiselect): Added a check for shift key.
35863 * ListView.cs (EnsureVisible): Fixed. Do proper scrolling.
35864 * ListViewItem.cs (Clone): Fixed. We need to make a copy
35865 of ListViewSubItemCollection as well.
35867 2004-12-06 Peter Bartok <pbartok@novell.com>
35869 * Control.cs (Parent): Added check and exception to prevent
35872 2004-12-03 Jordi Mas i Hernandez <jordi@ximian.com>
35874 * ListBox.cs: implemented clipping, selection single and multiple,
35877 2004-12-03 Ravindra <rkumar@novell.com>
35879 * ListView.cs (ListView_KeyDown):
35880 * ListView.cs (ListView_KeyUp): Fixed multiple selection handling
35881 when CTRL key is pressed.
35882 * ListViewItem.cs (Selected): Fixed setting the property.
35884 2004-12-03 Marek Safar <marek.safar@seznam.cz>
35886 * Application.cs (OnThreadException): Use ThreadExceptionDialog.
35888 * Form.cs: Add ActiveForm, FormBorderStyle, MaximizeBox,
35889 MinimizeBox, ShowInTaskbar, TopMost properties.
35891 * ThreadExceptionDialog.cs: Implemented (disabled TextBox until
35892 will be implemented).
35894 2004-12-03 Marek Safar <marek.safar@seznam.cz>
35896 * OwnerDrawPropertyBag.cs: New internal parameterless ctor.
35898 * TreeNode.cs: Implemented ICloneable, Fixed to pass my simple
35901 * TreeNodeCollection.cs: Add exception throwing for Add,AddRange.
35903 * TreeView.cs: BackColor is Colors.Window.
35905 2004-12-01 Jackson Harper <jackson@ximian.com>
35907 * TreeView.cs: When resizing the tree if the user is making it
35908 smaller we don't get expose events, so we need to handle adding
35909 the horizontal scrollbar in the size changed handler as well as
35910 the expose handler.
35912 2004-12-02 Jordi Mas i Hernandez <jordi@ximian.com>
35914 * DrawItemState.cs: fixes wrong enum values
35916 2004-12-01 Jackson Harper <jackson@ximian.com>
35918 * TreeView.cs: Resize the hbar as well as the vbar on resize.
35920 2004-12-01 Jackson Harper <jackson@ximian.com>
35922 * NodeLabelEditEventArgs.cs:
35923 * NodeLabelEditEventHandler.cs:
35924 * OpenTreeNodeEnumerator.cs:
35926 * TreeNodeCollection.cs:
35928 * TreeViewAction.cs:
35929 * TreeViewCancelEventArgs.cs:
35930 * TreeViewCancelEventHandler.cs:
35931 * TreeViewEventArgs.cs:
35932 * TreeViewEventHandler.cs: Initial implementation.
35934 2004-12-01 Ravindra <rkumar@novell.com>
35936 * ListView.cs (CalculateListView): Fixed scrolling related
35937 calculations. Also, removed some debug statements from other
35939 * ListViewItem.cs: Changed access to 'selected' instance variable
35940 from private to internal.
35941 * ThemeWin32Classic.cs (DrawListViewItem): Fixed SubItem drawing.
35943 2004-12-01 Jordi Mas i Hernandez <jordi@ximian.com>
35945 * ThemeWin32Classic.cs: remove cache of brush and pens for
35946 specific controls and use the global system, fixes scrollbutton
35947 bugs (for small sizes, disabled, etc)
35949 * ScrollBar.cs: does not show the thumb for very small controls
35950 (as MS) and allow smaller buttons that the regular size
35952 2004-12-01 Miguel de Icaza <miguel@ximian.com>
35954 * UpDownBase.cs: Add abstract methods for the interface.
35955 Add new virtual methods (need to be hooked up to TextEntry when it
35957 Add override methods for most features.
35958 Computes the size, forces the height of the text entry.
35960 * NumericUpDown.cs: Put here the current testing code.
35962 * Set eol-style property on all files that do not have mixed line
35963 endings, to minimize the future problems. There are still a few
35964 files with mixed endings, and someone should choose whether they
35965 want to move it or not.
35967 2004-11-30 Jordi Mas i Hernandez <jordi@ximian.com>
35969 * MonthCalendar.cs, ListView.cs: use Theme colours instead of
35972 2004-11-30 Ravindra <rkumar@novell.com>
35974 * ThemeWin32Classic.cs (DrawListViewItem): Fixed selected item
35975 drawing and replaced use of SystemColors by theme colors.
35976 * ListView.cs (ListView_Paint): Fixed painting done during scrolling.
35977 * ListView.cs (ListViewItemCollection.Add): Throw exception when
35978 same ListViewItem is being added more than once.
35980 2004-11-30 John BouAntoun <jba-mono@optusnet.com.au>
35982 * MonthCalendar.cs:
35983 - ControlStyles love to make the control not flicker
35985 2004-11-30 Peter Bartok <pbartok@novell.com>
35987 * CharacterCasing.cs: Added
35989 2004-11-29 Peter Bartok <pbartok@novell.com>
35991 * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
35992 TreeViewAction.cs, TreeViewEventArgs.cs: Removed new files.
35993 I am removing these files as they conflict with already completed
35994 work. While it is fantastic to get contributions to MWF, I
35995 respectfully ask that everyone please coordinate their contributions
35996 through mono-winforms-list or #mono-winforms at this time. We're
35997 explicitly avoiding stubbing and don't want controls that don't have
35998 their basic functionality implemented in svn. Please also see
35999 http://www.mono-project.com/contributing/winforms.html
36002 2004-11-29 Marek Safar <marek.safar@seznam.cz>
36004 * Application.cs (ModalRun): Don't hang after exit.
36006 * Theme.cs: New TreeViewDefaultSize property.
36008 * ThemeWin32Classic.cs: Replaced hardcoded defaultWindowBackColor
36009 with less hardcoded SystemColors constant.
36010 Implemented TreeViewDefaultSize.
36012 * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
36013 TreeViewAction.cs, TreeViewEventArgs.cs: New files.
36016 2004-11-29 John BouAntoun <jba-mono@optusnet.com.au>
36018 * MonthCalendar.cs:
36019 - Fix NextMonthDate and PrevMonthDate click moving calendar
36021 2004-11-26 John BouAntoun <jba-mono@optusnet.com.au>
36023 * MonthCalendar.cs:
36024 - Fix usage of ScrollChange Property when scrolling months
36026 2004-11-26 Jordi Mas i Hernandez <jordi@ximian.com>
36028 * Menu.cs, MainMenu.cs, MenuItem.cs, MenuAPI.cs
36029 - Fixes menu destroying
36030 - Support adding and removing items on already created menus
36032 2004-11-26 John BouAntoun <jba-mono@optusnet.com.au>
36034 * MonthCalendar.cs:
36035 - Re-worked all bolded dates handling to match win32
36036 * ThemeWin32Classic.cs:
36037 - Fixed rendering with bolded dates
36039 2004-11-25 Jordi Mas i Hernandez <jordi@ximian.com>
36041 * ListBox.cs, Theme.cs, ThemeWin32Classic.cs:
36042 - Horizontal scroolbar
36047 2004-11-25 John BouAntoun <jba-mono@optusnet.com.au>
36049 * MonthCalendar.cs:
36050 - Fix Usage of MaxSelectionCount from SelectionRange
36051 - Fixed Shift + Cursor Selection
36052 - Fixed Shift + (Pg up/Pg dn, Home/End) selection
36053 - Fixed normal cursor selection to be compat with win32
36054 - Fixed Shift + Mouse Click selection
36056 2004-11-24 Peter Bartok <pbartok@novell.com>
36058 * XplatUI.cs (DispatchMessage): Switched to return IntPtr
36059 * XplatUIDriver.cs (DispatchMessage): Switched to return IntPtr
36061 - CreatedKeyBoardMsg now updates keystate with Alt key
36062 - Added workaround for timer crash to CheckTimers, Jackson will
36063 develop a proper fix and check in later
36064 - Implemented DispatchMessage
36065 - Removed calling the native window proc from GetMessage (call
36066 now moved to DispatchMessage)
36068 * KeyEventArgs.cs (Constructor): Now combines modifierkeys into
36069 the keydata (Fixes bug #69831)
36072 - (DispatchMessage): Switched to return IntPtr
36073 - Added DllImport for SetFocus
36075 2004-11-24 Ravindra <rkumar@novell.com>
36077 * ThemeWin32Classic.cs: Fixed ListView border and checkbox
36078 background drawing.
36079 * ListViewItem.cs: Fixed various properties, calculations
36080 and Clone() method. Fixed ListViewSubItemCollection.Clear() method.
36081 * ListView.cs: Fixed calculations, BackColor, ForeColor properties
36082 and some internal properties. Fixed MouseDown handler and Paint
36085 2004-11-24 John BouAntoun <jba-mono@optusnet.com.au>
36087 * MonthCalendar.cs: Add TitleMonth ContextMenu handling
36089 2004-11-24 John BouAntoun <jba-mono@optusnet.com.au>
36091 * ContainerControl.cs: correct accidental check in of local changes
36093 2004-11-24 John BouAntoun <jba-mono@optusnet.com.au>
36095 * ThemeWin32Classic.cs:
36096 - Fixed Drawing Last month in grid (sometimes not showing)
36097 * MonthCalendar.cs:
36098 - Fixed title width calculation bug (makeing title small)
36100 2004-11-23 Peter Bartok <pbartok@novell.com>
36103 - Added generation of WM_MOUSEHOVER event
36104 - Added missing assignment of async_method atom
36105 - Fixed WM_ERASEBKGND; now only redraws the exposed area
36107 2004-11-23 John BouAntoun <jba-mono@optusnet.com.au>
36109 * ThemeWin32Classic.cs:
36110 - Fixed Drawing of today circle when showtodaycircle not set
36111 - fixed drawing of first and last month in the grid (gay dates)
36112 * MonthCalendar.cs:
36113 - Fixed Drawing of today circle
36114 - Fixed drawing of grady dates
36115 - Fixed HitTest for today link when ShowToday set to false
36116 - Fixed DefaultSize to obey ShowToday
36118 2004-11-23 John BouAntoun <jba-mono@optusnet.com.au>
36120 * ThemeWin32Classic.cs: Fixed DrawMonthCalendar and private support methods
36121 * System.Windows.Forms/Theme.cs
36122 * MonthCalendar.cs: added for MonthCalendar
36123 * SelectionRange.cs: added for MonthCalendar
36124 * Day.cs: added for MonthCalendar: added for MonthCalendar
36125 * DateRangeEventArgs.cs: added for MonthCalendar
36126 * DateRangeEventHandler.cs: added for MonthCalendar
36128 2004-11-22 Ravindra <rkumar@novell.com>
36130 * ThemeWin32Classic.cs: Fixed ListViewDrawing with 'UseItemStyleForSubItems'
36133 2004-11-22 Miguel de Icaza <miguel@ximian.com>
36135 * UpDownBase.cs (InitTimer): Use prehistoric C# 1.0 notation for
36138 * NumericUpDown.cs: Added new implementation.
36139 * UpDownBase.cs: Added new implementation.
36141 * XplatUIWin32.cs (KeyboardSpeed, KeyboardDelay): added default
36144 * XplatUIX11.cs (KeyboardSpeed, KeyboardDelay): added default
36147 * XplatUIDriver.cs ((KeyboardSpeed, KeyboardDelay): added new
36150 2004-11-21 Miguel de Icaza <miguel@ximian.com>
36152 * Timer.cs (Dispose): Should call the base dispose when
36155 2004-11-19 Jordi Mas i Hernandez <jordi@ximian.com>
36157 * ScrollBar.cs: updates thumb position when max, min or increment
36160 2004-11-21 Ravindra <rkumar@novell.com>
36162 * ListView.cs: Implemented item selection, activation and
36163 column header style. Fixed properties to do a redraw, if
36164 required. Added support for MouseHover, DoubleClick, KeyDown
36165 and KeyUp event handling and some minor fixes.
36166 * ListViewItem.cs: Fixed constructor.
36167 * ThemeWin32Classic.cs: Improved drawing for ListView.
36169 2004-11-19 Jordi Mas i Hernandez <jordi@ximian.com>
36171 * ThemeWin32Classic.cs: initial listbox drawing code
36172 * DrawMode.cs: new enumerator
36173 * ListControl.cs: stubbed class
36174 * ListBox.cs: initial implementation
36175 * Theme.cs: new methods definitions
36176 * SelectionMode.cs: new enumerator
36178 2004-11-17 Peter Bartok <pbartok@novell.com>
36180 * XplatUIWin32.cs: Added double-click events to the class style
36181 * Control.cs (WndProc):
36182 - Added handling of click-count to MouseDown/ MouseUp events.
36183 - Added handling of middle and right mouse buttons
36184 - Removed old debug code
36186 2004-11-17 Jackson Harper <jackson@ximian.com>
36188 * XplatUIX11.cs: Use the new Mono.Unix namespace.
36190 2004-11-17 Ravindra <rkumar@novell.com>
36192 * ListView.cs: Added event handling for MouseMove/Up/Down.
36193 * ColumnHeader.cs: Added a read-only internal property 'Pressed'.
36194 * ThemeWin32Classic.cs: We need to clear the graphics context and
36195 draw column header in a proper state.
36198 2004-11-17 Jordi Mas i Hernandez <jordi@ximian.com>
36200 * Menu.cs: fixes signature
36202 2004-11-16 Peter Bartok <pbartok@novell.com>
36204 * XplatUIX11.cs (GetMessage): Implemented generation of
36205 double click mouse messages
36207 2004-11-12 Jordi Mas i Hernandez <jordi@ximian.com>
36209 * Form.cs, MainMenu.cs, MenuAPI.cs: tracker should be for tracking session
36212 2004-11-11 Peter Bartok <pbartok@novell.com>
36214 * HandleData.cs: Added Visible property
36215 * XplatUIX11.cs (IsVisible): Now uses Visible property from
36217 * XplatUIX11.cs: Removed old debug leftovers
36218 * XplatUIX11.cs (DefWndProc): Added WM_ERASEBKGND handler
36219 * Control.cs (WndProc): Removed old debug leftovers,
36220 streamlined handling of WM_WINDOWPOSCHANGED, removed un-
36221 needed WM_SIZE handling
36223 2004-11-11 Jackson Harper <jackson@ximian.com>
36225 * OwnerDrawPropertyBag.cs:
36226 * TreeViewImageIndexConverter.cs: Initial implementation
36228 2004-11-10 Jackson Harper <jackson@ximian.com>
36230 * ThemeWin32Classic.cs:
36231 * TabControl.cs: instead of moving tabs by the slider pos just
36232 start drawing at the tab that is offset by the slider. This way
36233 scrolling always moves by exactly one tab.
36235 2004-11-10 Jackson Harper <jackson@ximian.com>
36237 * TabControl.cs: You can only scroll left when the slider has
36238 already ben moved right.
36240 2004-11-10 Jackson Harper <jackson@ximian.com>
36242 * ThemeWin32Classic.cs: Do not draw the selected tab if its not in
36245 2004-11-10 Jackson Harper <jackson@ximian.com>
36247 * ThemeWin32Classic.cs: Don't bother drawing tabs outside of the
36250 2004-11-09 Jackson Harper <jackson@ximian.com>
36252 * TabControl.cs (CalcXPos): New helper method so we can determine
36253 the proper place to start drawing vertical tabs.
36254 * ThemeWin32Classic.cs (DrawTab): Draw right aligned tabs.
36256 2004-11-09 Jackson Harper <jackson@ximian.com>
36258 * TabControl.cs: Calculate sizing and rects for left aligned tabs.
36259 * ThemeWin32Classic.cs (GetTabControl*ScrollRect): Only handle Top
36260 and Bottom, left and right are illegal values for this and
36261 multiline is enabled when the alignment is set to left or right.
36262 (DrawTab): Each alignment block should draw the text itself now
36263 because Left requires special love. Also add rendering for Left
36266 2004-11-09 Jordi Mas i Hernandez <jordi@ximian.com>
36268 * Form.cs, MainMenu.cs, MenuAPI.cs: fixes menu navigation, fixes popups,
36269 does not destroy the windows, removes debugging messages
36271 2004-11-09 jba <jba-mono@optusnet.com.au>
36273 * ThemeWin32Classic.cs
36274 (DrawButtonBase): Fix verticle text rect clipping in windows
36275 (DrawCheckBox): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
36276 rendering and incorrect text rect clipping
36277 (DrawRadioButton): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
36278 rendering and incorrect text rect clipping
36280 2004-11-08 Jackson Harper <jackson@ximian.com>
36282 * ThemeWin32Classic.cs (DrawTabControl): Render tabs from top to
36283 bottom when they are bottom aligned so the bottoms of the tabs get
36285 * TabControl.cs (DropRow): Move rows up instead of down when the
36286 tab control is bottom aligned.
36288 2004-11-08 13:59 pbartok
36291 - Added handling for various window styles
36292 - Added handling for popup windows
36293 - Added SetTopmost handling
36295 2004-11-08 13:55 pbartok
36298 - Added argument to SetTopmost method
36299 - Fixed broken ClientToScreen function
36301 2004-11-08 13:53 pbartok
36303 * XplatUIStructs.cs:
36304 - Added missing WS_EX styles
36306 2004-11-08 13:53 pbartok
36308 * XplatUI.cs, XplatUIDriver.cs:
36309 - Added argument to SetTopmost
36311 2004-11-08 13:52 pbartok
36314 - Added XSetWindowAttributes structure
36315 - Improved XWindowAttributes structure
36316 - Added SetWindowValuemask enum
36317 - Added window creation arguments enum
36318 - Added gravity enum
36319 - Added Motif hints structure
36320 - Added various Motif flags and enums
36321 - Added PropertyMode enum for property functions
36323 2004-11-08 13:50 pbartok
36326 - Fixed arguments for updated SetTopmost method
36328 2004-11-08 13:49 pbartok
36331 - Fixed arguments for updated SetTopmost function
36332 - Fixed usage of PointToClient
36334 2004-11-08 13:44 pbartok
36337 - Added Clipping of children and siblings
36339 2004-11-08 13:41 pbartok
36342 - Removed SetMenuBarWindow call. We do this in Form.cs
36344 2004-11-08 13:40 jackson
36346 * TabControl.cs, Theme.cs, ThemeWin32Classic.cs: Render the little
36347 scrolling jimmi in the correct location with bottom aligned tabs
36349 2004-11-08 13:36 pbartok
36351 * ContainerControl.cs:
36352 - Implemented BindingContext
36353 - Implemented ParentForm
36355 2004-11-08 12:46 jackson
36357 * TabControl.cs: Put bottom rendered tabs in the right location
36359 2004-11-08 07:15 jordi
36361 * ScrollBar.cs, ThemeWin32Classic.cs: fixes vertical scrollbar and
36364 2004-11-05 17:30 jackson
36366 * TabControl.cs: When selected tabs are expanded make sure they
36367 don't go beyond the edges of the tab control
36369 2004-11-05 14:57 jackson
36371 * TabControl.cs: Reset show_slider so if the control is resized to
36372 a size where it is no longer needed it's not displayed anymore
36374 2004-11-05 13:16 jackson
36376 * TabControl.cs: Make tab pages non visible when added to the
36379 2004-11-05 12:42 jackson
36381 * TabControl.cs: Implement SizeMode.FillToRight
36383 2004-11-05 12:16 jackson
36385 * Control.cs: Do not call CreateHandle if the handle is already
36388 2004-11-05 11:46 jackson
36390 * TabControl.cs: Remove superflous call to CalcTabRows
36392 2004-11-05 09:07 jackson
36394 * XplatUIX11.cs: Update for Mono.Posix changes
36396 2004-11-05 07:00 ravindra
36398 * ListView.cs, ListViewItem.cs: Implemented some methods and fixed
36401 2004-11-04 22:47 jba
36403 * ThemeWin32Classic.cs:
36404 - Fix Button rendering for FlatStyle = Flat or Popup
36405 - Fix RadioButton and CheckBox rendering when Appearance = Button
36406 (normal and flatstyle).
36407 - Correct outer rectangle color when drawing focus rectangle
36408 - Adjust button bounds to be 1 px smaller when focused
36409 - Make button not draw sunken 3d border when pushed (windows compat)
36410 - Fix CPDrawBorder3D to not make bottom right hand corner rounded
36411 - Offset the text in RadioButton and Checkbox when being rendered as
36413 - Hover and Click behaviour for Colored FlatStyle.Flat and Popup
36415 - Fixed disabled rendering for colored flatstyle radiobuttons (both)
36416 - Fixed disabled text rendering for normally rendered radiobuttons
36418 2004-11-04 10:26 jackson
36420 * TabControl.cs: Recalculate tab rows when resizing
36422 2004-11-04 07:47 jordi
36424 * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs:
36425 collection completion, drawing issues, missing features
36427 2004-11-04 05:03 ravindra
36430 - We need to recalculate the Thumb area when
36431 LargeChange/maximum/minimum values are changed.
36432 - We set the 'pos' in UpdatePos() method to minimum, if it's less
36433 than minimum. This is required to handle the case if large_change is
36434 more than max, and use LargeChange property instead of large_change
36436 - We return max+1 when large_change is more than max, like MS does.
36438 2004-11-04 04:29 ravindra
36440 * ColumnHeader.cs, ListView.cs, ListViewItem.cs:
36441 - Changed default value signatures (prefixed all with ListView).
36442 - Fixed/implemented layout LargeIcon, SmallIcon and List views for
36444 - Fixed calculations for ListViewItem and implemented Clone()
36447 2004-11-04 04:26 ravindra
36449 * Theme.cs, ThemeWin32Classic.cs:
36450 - Changed default ListView values signatures (prefixed all with
36452 - Fixed default size values for VScrollBar and HScrollBar.
36453 - Fixed DrawListViewItem method.
36455 2004-11-04 04:05 ravindra
36457 * ColumnHeaderStyle.cs: Typo. It should be Nonclickable.
36459 2004-11-04 04:04 ravindra
36461 * ImageList.cs: Implemented the missing overload for Draw method.
36463 2004-11-03 19:29 jackson
36465 * TabControl.cs: Handle dropping rows on selection properly
36467 2004-11-03 11:59 jackson
36469 * TabControl.cs: remove debug code
36471 2004-11-03 11:52 jackson
36473 * TabControl.cs, ThemeWin32Classic.cs: Initial implementation of
36474 the scrolly widgerywoo
36476 2004-11-02 13:52 jackson
36478 * TabControl.cs: Resize the tab pages and tabs when the tab control
36481 2004-11-02 13:40 jackson
36483 * TabControl.cs, ThemeWin32Classic.cs: Move the row with the
36484 selected tab to the bottom
36486 2004-11-02 13:39 jackson
36488 * TabPage.cs: Store the tab pages row
36490 2004-11-02 12:33 jordi
36492 * MenuItem.cs: fixes handle creation
36494 2004-11-02 11:42 jackson
36496 * TabControl.cs: signature fix
36498 2004-11-02 08:56 jackson
36500 * TabControl.cs: Calculate whether the tab is on an edge properly.
36501 Remove top secret debugging code
36503 2004-11-01 19:57 jackson
36505 * TabControl.cs: Add click handling, and proper sizing
36507 2004-11-01 19:47 jackson
36509 * Theme.cs, ThemeWin32Classic.cs: New rendering and sizing code for
36512 2004-11-01 19:39 jackson
36514 * TabPage.cs: add internal property to store the bounds of a tab
36517 2004-10-30 04:23 ravindra
36519 * Theme.cs, ThemeWin32Classic.cs: Drawing ListView and some default
36522 2004-10-30 04:21 ravindra
36524 * ListView.cs, ListViewItem.cs: Added support for scrolling and
36525 fixed calculations.
36527 2004-10-30 03:06 pbartok
36530 - Removed extension of DllImported libs
36532 2004-10-29 09:55 jordi
36534 * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: Menu key
36535 navigation, itemcollection completion, menu fixes
36537 2004-10-27 22:58 pbartok
36540 - Now throws a nice error message when no X display could be opened
36542 2004-10-26 13:51 jordi
36544 * ListView.cs: removes warning
36546 2004-10-26 03:55 ravindra
36548 * ColumnHeader.cs, ListView.cs, ListViewItem.cs,
36549 ThemeWin32Classic.cs: Some formatting for my last checkins.
36551 2004-10-26 03:36 ravindra
36553 * ThemeWin32Classic.cs: Implemented DetailView drawing for ListView
36554 control and default values.
36556 2004-10-26 03:35 ravindra
36558 * Theme.cs: Added some default values for ListView control.
36560 2004-10-26 03:33 ravindra
36562 * ToolBar.cs: ToolBar should use the user specified button size, if
36563 there is any. Added a size_specified flag for the same.
36565 2004-10-26 03:33 ravindra
36567 * ColumnHeader.cs: Added some internal members and calculations for
36570 2004-10-26 03:32 ravindra
36572 * ListViewItem.cs: Calculations for ListViewItem.
36574 2004-10-26 03:31 ravindra
36576 * ListView.cs: Added some internal members and calculations for
36579 2004-10-22 13:31 jordi
36581 * MenuAPI.cs: speedup menus drawing
36583 2004-10-22 13:16 jackson
36585 * XplatUIX11.cs: Make sure to update exposed regions when adding an
36588 2004-10-22 11:49 jackson
36592 2004-10-22 11:41 jackson
36594 * Control.cs: Check to see if the window should have its background
36595 repainted by X when drawing.
36597 2004-10-22 11:31 jackson
36599 * XplatUIX11.cs: When invalidating areas only use XClearArea if
36600 clear is true, this way we do not get flicker from X repainting the
36603 2004-10-22 11:28 jackson
36605 * XEventQueue.cs: Queue properly
36607 2004-10-21 09:38 jackson
36609 * XEventQueue.cs: Fix access modifier
36611 2004-10-21 09:36 jackson
36613 * XEventQueue.cs: Don't loose messages
36615 2004-10-21 09:22 jackson
36617 * XEventQueue.cs: Don't loose messages
36619 2004-10-20 04:15 jordi
36621 * BootMode.cs: enum need it by SystemInfo
36623 2004-10-19 21:58 pbartok
36626 - Small sanity check
36628 2004-10-19 21:56 pbartok
36631 - Added private FormParentWindow class which acts as the container
36632 for our form and as the non-client area where menus are drawn
36633 - Added/Moved required tie-ins to Jordi's menus
36634 - Fixed/Implemented the FormStartPosition functionality
36636 2004-10-19 21:52 pbartok
36639 - Removed unneeded locals
36640 - Added code to all size and location properties to understand and
36641 deal with the parent container of Form
36643 2004-10-19 21:33 pbartok
36646 - Fixed to deal with new Form subclasses for menus
36648 2004-10-19 17:48 jackson
36650 * XEventQueue.cs: commit correct version of file
36652 2004-10-19 16:50 jackson
36654 * XEventQueue.cs, XplatUIX11.cs: New optimized event queue
36656 2004-10-19 16:15 jordi
36658 * MenuAPI.cs: MenuBarCalcSize returns the height
36660 2004-10-19 08:31 pbartok
36663 - Added missing call to PreProcessMessage before calling OnXXXKey
36666 2004-10-19 00:04 ravindra
36668 * ToolTip.cs: Fixed constructor.
36670 2004-10-18 09:31 jordi
36672 * MenuAPI.cs: menuitems in menubars do not have shortcuts
36674 2004-10-18 09:26 jordi
36676 * MenuItem.cs: fixes MenuItem class signature
36678 2004-10-18 08:56 jordi
36680 * MenuAPI.cs: prevents windows from showing in the taskbar
36682 2004-10-18 00:28 ravindra
36684 * ToolTip.cs: Suppressed a warning message.
36686 2004-10-18 00:27 ravindra
36688 * Control.cs: Default value of visible property must be true.
36690 2004-10-17 23:19 pbartok
36693 - Complete implementation
36695 2004-10-17 23:19 pbartok
36698 - Added EnableWindow method
36699 - Added SetModal stub
36700 - Added generation of WM_ACTIVATE message (still needs testing)
36701 - Added SetTopMost stub
36702 - Changes to deal with VirtualKeys being moved to XplatUIStructs.cs
36704 2004-10-17 23:17 pbartok
36707 - Removed VirtualKeys to XplatUIStructs
36708 - Implemented SetTopMost method
36709 - Implemented EnableWindow method
36710 - Bugfix in ScreenToClient()
36711 - Bugfixes in ClientToScreen()
36713 2004-10-17 22:51 pbartok
36715 * XplatUIStructs.cs:
36716 - Added WS_EX styles to WindowStyles enumeration
36718 2004-10-17 22:50 pbartok
36720 * XplatUI.cs, XplatUIDriver.cs:
36721 - Added method for enabling/disabling windows
36722 - Added method for setting window modality
36723 - Added method for setting topmost window
36725 2004-10-17 22:49 pbartok
36727 * ThemeWin32Classic.cs:
36728 - Added ToolTip drawing code
36730 2004-10-17 22:49 pbartok
36733 - Added ToolTip abstracts
36735 2004-10-17 22:47 pbartok
36738 - Fixed Form.ControlCollection to handle owner relations
36739 - Added Owner/OwnedForms handling
36740 - Implemented Z-Ordering for owned forms
36741 - Removed unneeded private overload of ShowDialog
36742 - Fixed ShowDialog, added the X11 incarnation of modal handling (or
36744 - Fixed Close(), had wrong default
36745 - Added firing of OnLoad event
36746 - Added some commented out debug code for Ownership handling
36748 2004-10-17 22:16 pbartok
36751 - Fixed/implemented flat list of controls
36753 2004-10-17 22:14 pbartok
36756 - Added code to simulate modal dialogs on Win32
36758 2004-10-17 16:11 jordi
36760 * ScrollBar.cs: disabled scrollbar should not honor any keyboard or
36763 2004-10-17 13:39 jordi
36765 * MenuAPI.cs: menu drawing fixes
36767 2004-10-15 09:10 ravindra
36769 * StructFormat.cs: General Enum.
36771 2004-10-15 09:09 ravindra
36773 * SizeGripStyle.cs: Enum for Form.
36775 2004-10-15 09:08 ravindra
36777 * Theme.cs, ThemeWin32Classic.cs: Added ColumnHeaderHeight property
36778 in Theme for ListView.
36780 2004-10-15 09:06 ravindra
36782 * ColumnHeader.cs: Flushing some formatting changes.
36784 2004-10-15 09:05 ravindra
36786 * ListViewItem.cs: Implemented GetBounds method and fixed coding
36789 2004-10-15 09:03 ravindra
36791 * ListView.cs: Implemented Paint method and fixed coding style.
36793 2004-10-15 07:34 jordi
36795 * MenuAPI.cs: fix for X11
36797 2004-10-15 07:32 ravindra
36799 * ButtonBase.cs, CheckBox.cs, RadioButton.cs:
36800 - Renamed Paint() method to Draw() for clarity. Also, moved
36801 DrawImage() to OnPaint().
36803 2004-10-15 07:25 ravindra
36805 * CheckBox.cs, RadioButton.cs:
36806 - Removed Redraw (), we get it from ButtonBase.
36807 - Implemented Paint (), to do class specific painting.
36809 2004-10-15 07:16 ravindra
36812 - Redraw () is not virtual now.
36813 - Added an internal virtual method Paint (), so that
36814 derived classes can do their painting on their own.
36815 - Modified OnPaint () to call Paint ().
36817 2004-10-15 06:43 jordi
36819 * ContextMenu.cs, DrawItemEventHandler.cs, Form.cs, MainMenu.cs,
36820 MenuAPI.cs, MenuItem.cs: menu work, mainmenu, subitems, etc
36822 2004-10-15 00:30 ravindra
36825 - MessageBox on windows does not have min/max buttons.
36826 This change in CreateParams fixes this on Windows. We
36827 still need to implement this windowstyle behavior in
36830 2004-10-14 05:14 ravindra
36833 - Changed Redraw () to do a Refresh () always.
36834 - Fixed the MouseMove event handling when mouse is pressed,
36835 ie drag event handling.
36836 - Replaced the usage of ToolBarButton.Pressed property to
36837 ToolBarButton.pressed internal variable.
36839 2004-10-14 05:10 ravindra
36841 * ToolBarButton.cs:
36842 - Added an internal member 'inside' to handle mouse move
36843 with mouse pressed ie mouse drag event.
36844 - Changed 'Pressed' property to return true only when
36845 'inside' and 'pressed' are both true.
36846 - Some coding style love.
36848 2004-10-14 00:17 ravindra
36850 * Form.cs: Fixed class signature. ShowDialog (Control) is not a
36853 2004-10-14 00:15 ravindra
36855 * ButtonBase.cs: Redraw () related improvements.
36857 2004-10-14 00:14 ravindra
36859 * MessageBox.cs: Moved InitFormSize () out of Paint method and
36860 removed unnecessary calls to Button.Show () method.
36862 2004-10-13 17:50 pbartok
36866 - Removed destroying of window until we solve the problem of X
36867 destroying the window before us on shutdown
36869 2004-10-13 16:32 pbartok
36872 - Now Redraws on MouseUp for FlatStyle Flat and Popup
36874 2004-10-13 14:18 pbartok
36877 - Added code to destroy the X window
36879 2004-10-13 14:18 pbartok
36882 - Added code to destroy a window
36884 2004-10-13 14:12 pbartok
36887 - Added the Redraw on Resize that got dropped in the last rev
36889 2004-10-13 09:06 pbartok
36891 * ThemeWin32Classic.cs:
36892 - Path from John BouAntoun:
36893 * Fix check rendering (centre correctly for normal style, offset
36894 correctly for FlatStyle).
36895 * Fix border color usage (use backcolor) for FlatStyle.Popup
36896 * Use checkbox.Capture instead of checkbox.is_pressed when
36897 rendering flatstyle states.
36899 2004-10-12 21:48 pbartok
36901 * ThemeWin32Classic.cs:
36902 - Removed all occurences of SystemColors and replaced them with the
36903 matching theme color
36905 2004-10-12 21:41 pbartok
36907 * ThemeWin32Classic.cs:
36908 - From John BouAntoun: Added an overload to CPDrawBorder3D to allow
36909 him using the function for flatstyle drawing
36910 - Changed functions to use the new version of CPDrawBorder3D
36912 2004-10-12 21:15 pbartok
36915 - Fixed Dark(), DarkDark(), Light() and LightLight() methods to
36916 match MS documentation. They need to return defined colors if the
36917 passed color matches the configured control color. Thanks to John
36918 BouAntoun for pointing this out.
36920 2004-10-12 20:57 pbartok
36923 - Fix from John BouAntoun: Raise ForeColorChanged event when text
36926 2004-10-12 20:46 pbartok
36929 - Fix from John BouAntoun: Now properly sets the Appearance property
36931 2004-10-12 20:45 pbartok
36933 * ThemeWin32Classic.cs:
36934 - Fixes from John BouAntoun: now handles forecolors and backcolors
36935 for flatstyle rendered controls much better; It also fixes normal
36936 checkbox rendering when pushed or disabled.
36938 2004-10-08 02:50 jordi
36940 * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: more menu
36943 2004-10-07 08:56 jordi
36945 * ThemeWin32Classic.cs: Removes deletion of cached brushes
36947 2004-10-06 03:59 jordi
36949 * Control.cs, StatusBar.cs, ThemeWin32Classic.cs, ToolBar.cs,
36950 XplatUIWin32.cs: removes warnings from compilation
36952 2004-10-05 12:23 jackson
36954 * RadioButton.cs: Fix ctor
36956 2004-10-05 11:10 pbartok
36959 - Partial implementation by Benjamin Dasnois
36961 2004-10-05 10:15 jackson
36963 * ThemeWin32Classic.cs: Improve rendering of the radio button patch
36966 2004-10-05 03:07 ravindra
36969 - Removed a private method, Draw ().
36970 - Fixed the ButtonDropDown event handling.
36971 - Fixed MouseMove event handling.
36973 2004-10-05 03:04 ravindra
36975 * ThemeWin32Classic.cs:
36976 - Added DrawListView method and ListViewDefaultSize property.
36977 - Changed ControlPaint method calls to CPDrawXXX wherever possible.
36978 - Changed DOS style CRLF to Unix format (dos2unix).
36980 2004-10-05 03:03 ravindra
36983 - Added DrawListView method and ListViewDefaultSize property.
36985 2004-10-05 02:42 ravindra
36987 * ToolBarButton.cs: Added an internal member dd_pressed to handle
36988 clicks on DropDown arrow.
36990 2004-10-04 22:56 jackson
36992 * ButtonBase.cs, Label.cs, MenuAPI.cs, ProgressBar.cs,
36993 ScrollBar.cs, StatusBar.cs, ToolBar.cs, TrackBar.cs: Let the base
36994 Control handle the buffers, derived classes should not have to
36995 CreateBuffers themselves.
36997 2004-10-04 21:20 jackson
36999 * StatusBar.cs: The control handles resizing the buffers now.
37001 2004-10-04 21:18 jackson
37003 * Control.cs: When resizing the buffers should be invalidated. This
37004 should be handled in Control not in derived classes.
37006 2004-10-04 14:45 jackson
37010 2004-10-04 02:14 pbartok
37012 * LeftRightAlignment.cs:
37015 2004-10-04 01:09 jordi
37017 * ThemeWin32Classic.cs: fixes right button position causing right
37018 button not showing on horizontal scrollbars
37020 2004-10-02 13:12 pbartok
37023 - Simplified the Invalidate method by using an X call instead of
37024 generating the expose ourselves
37025 - Added an expose when the window background is changed
37026 - Implemented ClientToScreen method
37028 2004-10-02 13:08 pbartok
37031 - Added Win32EnableWindow method (test for implementing modal
37033 - Added ClientToScreen method and imports
37035 2004-10-02 13:07 pbartok
37037 * XplatUI.cs, XplatUIDriver.cs:
37038 - Added ClientToScreen coordinate translation method
37040 2004-10-02 13:06 pbartok
37042 * KeyPressEventArgs.cs:
37043 - Fixed access level for constructor
37045 2004-10-02 13:06 pbartok
37048 - Changed access level for the window_collection hash table
37050 2004-10-02 13:05 pbartok
37053 - Added KeyPreview property
37054 - Added Menu property (still incomplete, pending Jordi's menu work)
37055 - Implemented ProcessCmdKey
37056 - Implemented ProcessDialogKey
37057 - Implemented ProcessKeyPreview
37059 2004-10-02 13:02 pbartok
37062 - Added private method to get the Control object from the window
37064 - Implemented ContextMenu property
37065 - Implemented PointToScreen
37066 - Implemented PreProcessMessage
37067 - Implemented IsInputChar
37068 - Implemented IsInputKey
37069 - Implemented ProcessCmdKey
37070 - Completed ProcessKeyEventArgs
37071 - Fixed message loop to call the proper chain of functions on key
37073 - Implemented ProcessDialogChar
37074 - Implemented ProcessDialogKey
37075 - Implemented ProcessKeyMessage
37076 - Implemented ProcessKeyPreview
37077 - Added RaiseDragEvent stub (MS internal method)
37078 - Added RaiseKeyEvent stub (MS internal method)
37079 - Added RaiseMouseEvent stub (MS Internal method)
37080 - Added RaisePaintEvent stub (MS Internal method)
37081 - Added ResetMouseEventArgs stub (MS Internal method)
37082 - Implemented RtlTranslateAlignment
37083 - Implemented RtlTranslateContent
37084 - Implemented RtlTranslateHorizontal
37085 - Implemented RtlTranslateLeftRight
37086 - Added generation of KeyPress event
37088 2004-10-02 05:57 ravindra
37090 * ListViewItem.cs: Added attributes.
37092 2004-10-02 05:32 ravindra
37094 * ListView.cs: Added attributes.
37096 2004-10-01 11:53 jackson
37098 * Form.cs: Implement the Close method so work on MessageBox can
37101 2004-09-30 14:06 pbartok
37106 2004-09-30 11:34 jackson
37108 * RadioButton.cs: Fix typo. Patch by John BouAntoun.
37110 2004-09-30 07:26 ravindra
37112 * ListViewItemConverter.cs: Converter for ListViewItem.
37114 2004-09-30 07:26 ravindra
37116 * SortOrder.cs: Enum for ListView control.
37118 2004-09-30 07:25 ravindra
37120 * ColumnHeader.cs: Supporting class for ListView control.
37122 2004-09-30 07:24 ravindra
37124 * ListView.cs, ListViewItem.cs: Initial implementation.
37126 2004-09-30 07:20 ravindra
37128 * ItemActivation.cs: Enum for ListView Control.
37130 2004-09-29 20:29 pbartok
37133 - Added lookup of pixel value for background color; tries to get a
37134 color 'close' to the requested color, it avoids having to create a
37135 colormap. Depending on the display this could mean the used color
37136 is slightly off the desired color. Might have to change it to a more
37137 resource intensive colormap approach, but it will work as a
37138 workaround to avoid red screens.
37140 2004-09-29 14:27 jackson
37142 * XplatUIX11.cs: Set the X DisplayHandle in System.Drawing
37144 2004-09-28 12:44 pbartok
37146 * ButtonBase.cs, CheckBox.cs, ControlPaint.cs, GroupBox.cs,
37147 HScrollBar.cs, Label.cs, LinkLabel.cs, Panel.cs, PictureBox.cs,
37148 ProgressBar.cs, RadioButton.cs, ScrollBar.cs, StatusBar.cs,
37149 Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs, ToolBar.cs,
37150 TrackBar.cs, VScrollBar.cs:
37151 - Streamlined Theme interfaces:
37152 * Each DrawXXX method for a control now is passed the object for
37153 the control to be drawn in order to allow accessing any state the
37154 theme might require
37156 * ControlPaint methods for the theme now have a CP prefix to avoid
37157 name clashes with the Draw methods for controls
37159 * Every control now retrieves it's DefaultSize from the current
37162 2004-09-28 12:17 jackson
37164 * Button.cs: Do not redraw OnClick MouseUp/Down will handle the
37167 2004-09-24 14:57 jackson
37169 * XplatUIX11.cs: Don't lock/enqueue/dequeue for unhandled messages.
37170 Gives us a nice little performance boost.
37172 2004-09-24 12:02 jackson
37174 * TabAlignment.cs, TabAppearance.cs, TabControl.cs, TabDrawMode.cs,
37175 TabPage.cs, TabSizeMode.cs: Partial implementation of the Tab
37176 Control and supporting classes. Initial checkin
37178 2004-09-23 13:08 jackson
37180 * Form.cs: Temp build fixage
37182 2004-09-23 01:39 ravindra
37184 * ItemChangedEventArgs.cs, ItemChangedEventHandler.cs,
37185 ItemCheckEventArgs.cs, ItemCheckEventHandler.cs,
37186 ItemDragEventArgs.cs, ItemDragEventHandler.cs,
37187 LabelEditEventArgs.cs, LabelEditEventHandler.cs: EventArgs and
37188 EventHandlers needed by ListView Control.
37190 2004-09-22 14:12 pbartok
37192 * ScrollableControl.cs:
37193 - Implemented DockPadding property
37194 - Implemented AutoScroll property
37195 - Implemented AutoScrollMargin property
37196 - Implemented AutoScrollMinSize property
37197 - Implemented AutoScrollPosition property
37198 - Implemented DisplayRectangle property (still incomplete)
37199 - Implemented CreateParams property
37200 - Implemented HScroll property
37201 - Implemented VScroll property
37202 - Implemented OnVisibleChanged property
37204 2004-09-22 14:09 pbartok
37207 - Added Form.ControllCollection class
37208 - Added handling for Form owners: Owner, OwnedForms, AddOwnedForm,
37209 RemoveOwnedForm (still incomplete, missing on-top and common
37210 minimize/maximize behaviour)
37211 - Added StartPosition property (still incomplete, does not use when
37213 - Added ShowDialog() methods (still incomplete, missing forcing the
37216 2004-09-22 14:05 pbartok
37219 - Added message loop for modal dialogs
37221 2004-09-22 14:02 pbartok
37224 - Fixed wrong types for events
37226 2004-09-22 14:00 pbartok
37228 * Shortcut.cs, FormWindowState.cs:
37229 - Fixed wrong values
37231 2004-09-22 12:01 jackson
37233 * Control.cs: Text is never null
37235 2004-09-20 22:14 pbartok
37238 - Fixed accessibility level for Idle handler
37240 2004-09-20 18:54 jackson
37242 * Application.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
37243 XplatUIX11.cs: New message loop that uses poll so we don't get a
37246 2004-09-17 10:43 pbartok
37249 - Fixed behaviour of arrow buttons. Now properly behaves like
37250 Buttons (and like Microsoft's scrollbar arrow buttons)
37252 2004-09-17 10:14 pbartok
37255 - Added missing release of keyboard/mouse capture
37257 2004-09-17 06:18 jordi
37259 * ContextMenu.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs,
37260 Theme.cs: Very early menu support
37262 2004-09-16 17:45 pbartok
37265 - Fixed sending a window to the front
37266 - Added overload for SetWindowPos to avoid casting
37268 2004-09-16 17:44 pbartok
37271 - Added SendToBack and BringToFront methods
37273 2004-09-16 07:00 ravindra
37275 * Copyright: Added Novell URL.
37277 2004-09-16 07:00 ravindra
37279 * ToolBar.cs: Invalidate should be done before redrawing.
37281 2004-09-15 21:19 ravindra
37283 * ColumnHeaderStyle.cs: Enum for ListView Control.
37285 2004-09-15 21:18 ravindra
37287 * ColumnClickEventArgs.cs, ColumnClickEventHandler.cs: Event for
37290 2004-09-13 18:26 jackson
37292 * Timer.cs, XplatUIX11.cs: Remove test code so timers are updated
37295 2004-09-13 18:13 jackson
37297 * Timer.cs, X11Structs.cs, XplatUIX11.cs: Timers are now handled in
37298 a second thread and post messages into the main threads message
37299 queue. This makes timing much more consistent. Both win2K and XP
37300 have a minimum timer value of 15 milliseconds, so we now do this
37303 2004-09-13 15:18 pbartok
37305 * X11Structs.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
37307 - Added Z-Ordering methods
37309 2004-09-13 10:56 pbartok
37312 - Fixed #region names
37313 - Moved properties and methods into their proper #regions
37315 2004-09-13 10:51 pbartok
37318 - Added Accept and CancelButton properties
37319 - Added ProcessDialogKey() method
37321 2004-09-13 08:18 pbartok
37323 * IWindowTarget.cs:
37326 2004-09-10 21:50 pbartok
37329 - Added DoDragDrop() [incomplete]
37330 - Properly implemented 'Visible' handling
37331 - Added SetVisibleCore()
37332 - Implemented FindChildAtPoint()
37333 - Implemented GetContainerControl()
37334 - Implemented Hide()
37336 2004-09-10 19:28 pbartok
37339 - Moved methods into their appropriate #regions
37340 - Reordered methods within regions alphabetically
37342 2004-09-10 18:57 pbartok
37344 * XplatUIX11.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
37345 - Added method to retrieve text from window
37347 2004-09-10 18:56 pbartok
37350 - Moved some internal functions into the internal region
37351 - Implemented FontHeight
37352 - Implemented RenderRightToLeft
37353 - Implemented ResizeRedraw
37354 - Implemented ShowFocusCues
37355 - Implemented ShowKeyboardCues
37356 - Implemented FromChildHandle
37357 - Implemented FromHandle
37358 - Implemented IsMnemonic
37359 - Implemented ReflectMessage
37360 - All public and protected Static Methods are now complete
37362 2004-09-10 16:54 pbartok
37365 - Implemented remaining missing public instance properties
37366 - Alphabetized some out of order properties
37368 2004-09-10 05:51 ravindra
37370 * PictureBox.cs: Added a check for null image.
37372 2004-09-10 00:59 jordi
37374 * GroupBox.cs: remove cvs tag
37376 2004-09-09 05:25 ravindra
37378 * ToolBar.cs: Make redraw accessible from ToolBarButton.
37380 2004-09-09 05:23 ravindra
37382 * ToolBarButton.cs: Changes in ToolBarButton need to make it's
37385 2004-09-09 02:28 pbartok
37387 * ThemeWin32Classic.cs:
37388 - Improve disabled string look
37390 2004-09-09 01:15 jordi
37392 * MeasureItemEventArgs.cs, MeasureItemEventHandler.cs: measureitem
37395 2004-09-08 23:56 ravindra
37397 * ItemBoundsPortion.cs: It's enum, not a class!
37399 2004-09-08 23:47 ravindra
37401 * FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs:
37404 2004-09-08 21:13 ravindra
37406 * ItemBoundsPortion.cs, ListViewAlignment.cs, View.cs: Enums for
37409 2004-09-08 21:03 ravindra
37411 * ThemeWin32Classic.cs: PictureBox would not draw a null image to
37414 2004-09-08 21:01 ravindra
37416 * ScrollableControl.cs: Removed unreachable code.
37418 2004-09-08 06:45 jordi
37420 * MenuMerge.cs, Shortcut.cs: enumerations need it by menus
37422 2004-09-08 01:00 jackson
37424 * XplatUIX11.cs: Only run the timers when updating the message
37425 queue. This effectively gives X messages a higher priority then
37426 timer messages. Timers still need love though
37428 2004-09-07 14:01 jackson
37430 * XplatUIX11.cs: Do not call XDestroyWindow, X has already done
37431 this for us and the handle is no longer valid.
37433 2004-09-07 13:59 jackson
37435 * HandleData.cs, XplatUIX11.cs: First steps towards a new X event
37436 loop that manages to not crash. TODO: Add poll and cleanup timers
37438 2004-09-07 11:12 jordi
37440 * GroupBox.cs, Theme.cs, ThemeWin32Classic.cs: GroupBox control
37442 2004-09-07 03:40 jordi
37444 * Label.cs, LinkLabel.cs, Theme.cs, ThemeWin32Classic.cs: LinkLabel
37445 fixes, methods, multiple links
37447 2004-09-06 06:55 jordi
37449 * Control.cs: Caches ClientRectangle rectangle value
37451 2004-09-05 02:03 jordi
37453 * ScrollBar.cs, ThemeWin32Classic.cs: fixes bugs, adds flashing on
37456 2004-09-04 11:10 jordi
37458 * Label.cs: Refresh when font changed
37460 2004-09-02 16:24 pbartok
37463 - Added sanity check to creation of double buffer bitmap
37465 2004-09-02 16:24 pbartok
37468 - Fixed selection of text color
37469 - Fixed handling of resize event; now properly recreates double
37471 - Added missing assignment of TextAlignment
37472 - Added proper default for TextAlignment
37474 2004-09-02 14:26 pbartok
37477 - Added missing RadioButton.RadioButtonAccessibleObject class
37479 2004-09-02 14:26 pbartok
37482 - Added missing Control.ControlAccessibleObject class
37483 - Started to implement Select()ion mechanisms, still very incomplete
37485 2004-09-02 14:25 pbartok
37487 * AccessibleObject.cs:
37488 - Added missing methods
37490 2004-09-02 14:23 pbartok
37492 * AccessibleNavigation.cs, AccessibleSelection.cs:
37495 2004-09-02 10:32 jordi
37497 * Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: implements resource
37498 pool for pens, brushes, and hatchbruses
37500 2004-09-01 15:30 jackson
37502 * StatusBar.cs: Fix typo
37504 2004-09-01 14:44 pbartok
37509 2004-09-01 14:39 pbartok
37511 * Button.cs, RadioButton.cs:
37512 - Functional initial check-in
37514 2004-09-01 14:01 pbartok
37517 - Added missing default
37518 - Added missing region mark
37520 2004-09-01 09:10 jordi
37522 * Label.cs: fixes method signatures, new methods, events, fixes
37525 2004-09-01 07:19 jordi
37527 * Control.cs: Init string variables with an empty object
37529 2004-09-01 04:20 jordi
37531 * Control.cs: fires OnFontChanged event
37533 2004-08-31 20:07 pbartok
37536 - Enabled display of strings
37538 2004-08-31 20:05 pbartok
37541 - Added (partial) implementation of DialogResult; rest needs to be
37542 implemented when the modal loop code is done
37544 2004-08-31 19:55 pbartok
37547 - Fixed to match the removal of the needs_redraw concept
37549 2004-08-31 19:55 pbartok
37552 - Removed the rather odd split between 'needs redraw' and redrawing
37553 - Now handles the events that require regeneration (ambient
37554 properties and size)
37556 2004-08-31 19:41 pbartok
37559 - Added firing of BackColorChanged event
37560 - Added TopLevelControl property
37561 - Fixed handling of WM_ERASEBKGRND message
37563 2004-08-31 12:49 pbartok
37569 2004-08-31 12:48 pbartok
37572 - Finished (famous last words)
37574 2004-08-31 04:35 jordi
37576 * ScrollBar.cs: adds autorepeat timer, uses a single timer, fixes
37577 scrolling bugs, adds new methods
37579 2004-08-30 14:42 pbartok
37582 - Implemented CheckBox drawing code
37584 2004-08-30 14:42 pbartok
37587 - Made Redraw() and CheckRedraw() virtual
37588 - Improved mouse up/down/move logic to properly track buttons
37590 2004-08-30 09:44 pbartok
37593 - Updated to fix broken build. Not complete yet.
37595 2004-08-30 09:28 pbartok
37600 2004-08-30 09:17 pbartok
37605 2004-08-27 16:12 ravindra
37607 * ToolBarButton.cs: Added TypeConverter attribute.
37609 2004-08-27 16:07 ravindra
37611 * ImageIndexConverter.cs: Implemented.
37613 2004-08-27 14:17 pbartok
37616 - Removed unneeded stack vars
37617 - First attempt to fix sizing issues when layout is suspended
37619 2004-08-25 15:35 jordi
37621 * ScrollBar.cs: more fixes to scrollbar
37623 2004-08-25 14:04 ravindra
37625 * Theme.cs, ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs:
37626 Added the missing divider code and grip for ToolBar Control.
37628 2004-08-25 13:20 pbartok
37631 - Control now properly passes the ambient background color to child
37634 2004-08-25 13:20 jordi
37636 * ScrollBar.cs: small bug fix regarding bar position
37638 2004-08-25 12:33 pbartok
37641 - Now only calls SetTimer or KillTimer if the enabled state has
37644 2004-08-25 12:33 pbartok
37647 - Fixed timer handling, now seems to work
37648 - Improved error message for window creation
37650 2004-08-25 12:32 pbartok
37653 - Fixed generation of MouseUp message
37655 2004-08-25 12:29 jordi
37657 * ProgressBar.cs, ThemeWin32Classic.cs: new methods, properties,
37658 and fixes for progressbar
37660 2004-08-24 18:43 ravindra
37662 * ThemeWin32Classic.cs, ToolBar.cs: Fixed wrapping related issues
37663 in ToolBar control.
37665 2004-08-24 17:15 pbartok
37669 - Added missing events
37672 2004-08-24 17:14 pbartok
37674 * StatusBar.cs, PictureBox.cs:
37675 - Now uses Control's CreateParams
37677 2004-08-24 16:36 pbartok
37680 - Fixed background color handling
37681 - Fixed sending of enter/leave events on a grab
37683 2004-08-24 16:35 pbartok
37686 - Refined definitions for CrossingEvent
37688 2004-08-24 12:37 jordi
37690 * ScrollBar.cs, Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: fixes
37691 formmating, methods signature, and adds missing events
37693 2004-08-24 12:24 jordi
37695 * Control.cs: fire OnEnabledChanged event
37697 2004-08-24 11:17 pbartok
37700 - Implemented SetTimer() and KillTimer()
37702 2004-08-24 11:16 pbartok
37705 - Now uses Remove instead of Add to kill the timer
37707 2004-08-24 10:16 jackson
37709 * PictureBox.cs, Theme.cs, ThemeWin32Classic.cs: Handle drawing
37710 picture boxes in the theme now. Draw picture box borders and obey
37713 2004-08-24 05:49 jackson
37715 * Timer.cs: Remove top secret debugging code
37717 2004-08-24 05:34 jackson
37719 * PictureBox.cs: Temp hack to make picture boxes draw their full
37722 2004-08-24 05:29 jackson
37724 * Timer.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
37725 XplatUIX11.cs: Move timers to the driver level. On X they are
37726 queued by the driver and checked on idle.
37728 2004-08-24 01:07 jackson
37730 * XplatUIX11.cs: Use a queue for async messages instead of passing
37731 them as ClientMessages since that was totally broken. Also simply
37732 check for events and return an idle message if none are found. This
37733 gives us an idle handler, and prevents deadlocking when no messages
37736 2004-08-23 18:19 ravindra
37738 * XplatUIWin32.cs: Removed the unwanted destructor.
37740 2004-08-23 17:27 pbartok
37743 - Finishing touches. Works now, just needs some optimizations.
37745 2004-08-23 16:53 jordi
37747 * ScrollBar.cs: small fix
37749 2004-08-23 16:45 pbartok
37752 - Removed debug output
37755 2004-08-23 16:43 jordi
37757 * ScrollBar.cs: [no log message]
37759 2004-08-23 16:10 pbartok
37762 - Fixed handling of WM_CLOSE message
37763 - Removed debug output
37765 2004-08-23 16:09 pbartok
37768 - Added handling of Idle event
37769 - Added handling of form closing
37770 - Fixed reporting of MessageLoop property
37771 - Removed some unneeded code, should provide a bit of a speedup
37773 2004-08-23 15:22 pbartok
37776 - Added InitLayout() method
37777 - Added code to properly perform layout when Anchor or Dock property
37779 - Changed 'interpretation' of ResumeLayout. MS seems to have a
37780 LAMESPEC, tried to do it in a way that makes sense
37782 2004-08-23 14:10 jordi
37784 * HScrollBar.cs, ScrollBar.cs, TrackBar.cs, VScrollBar.cs: fixes
37785 properties and methods
37787 2004-08-23 13:55 pbartok
37790 - Properly fixed Jordi's last fix
37791 - Now uses Cursor's Position property instead of calling XplatUI
37794 2004-08-23 13:44 jordi
37796 * PaintEventHandler.cs: Adding missing attribute
37798 2004-08-23 13:39 pbartok
37801 - Implemented Position property
37803 2004-08-23 13:39 pbartok
37805 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
37806 - Added method to move mouse cursor
37808 2004-08-23 13:39 pbartok
37811 - Fixed setting of background color
37812 - Added method to move mouse cursor
37814 2004-08-23 13:16 jordi
37816 * Control.cs: avoids null exception
37818 2004-08-22 17:46 jackson
37820 * PictureBox.cs, PictureBoxSizeMode.cs: Initial implementation of
37823 2004-08-22 17:40 jackson
37825 * XplatUIX11.cs: Add some missing locks
37827 2004-08-22 15:10 pbartok
37829 * Control.cs, Form.cs:
37830 - Removed OverlappedWindow style from Control, instead it's default
37832 - Made form windows OverlappedWindow by default
37834 2004-08-22 13:34 jackson
37836 * ScrollBar.cs: Update the position through the Value property so
37837 the OnValueChanged event is raised.
37839 2004-08-22 12:04 pbartok
37842 - Added Cursor.cs and UserControl.cs
37844 2004-08-22 12:03 pbartok
37847 - Started implementation, not usable yet
37849 2004-08-22 12:00 pbartok
37852 - Implemented UserControl (complete)
37854 2004-08-21 19:20 ravindra
37856 * ToolBar.cs: Correcting the formatting mess of VS.NET.
37858 2004-08-21 18:49 ravindra
37860 * ToolBar.cs: Probably this completes the missing attributes in
37863 2004-08-21 18:03 ravindra
37865 * ToolBar.cs, ToolBarButton.cs, ToolBarButtonClickEventArgs.cs:
37866 Fixed toolbar control signatures.
37868 2004-08-21 16:32 pbartok
37873 2004-08-21 16:30 pbartok
37878 2004-08-21 16:19 pbartok
37880 * Control.cs, Label.cs:
37883 2004-08-21 15:57 pbartok
37886 - Added loads of debug output for development
37887 - Fixed typo in method name
37889 2004-08-21 15:52 pbartok
37891 * ToolBarButtonClickEventArgs.cs:
37892 - Added missing base class
37894 2004-08-21 14:53 pbartok
37897 - Updated to match new GrabWindow signature
37899 2004-08-21 14:51 pbartok
37901 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
37902 - Added method to get default display size
37904 2004-08-21 14:23 pbartok
37906 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
37907 - Added method to query current grab state
37908 - Added argument to allow confining a grab to a window
37910 2004-08-21 14:22 pbartok
37913 - Added [Flags] attribute so that modifiers can be used in bitwise
37916 2004-08-21 14:21 pbartok
37918 * TrackBar.cs, ScrollBar.cs:
37919 - Replaced direct XplatUI calls with their Control counterpart
37921 2004-08-21 13:32 pbartok
37924 - Implemented Created property
37926 2004-08-21 13:28 pbartok
37929 - Implemented ContainsFocus
37931 2004-08-21 13:26 pbartok
37934 - Implemented CausesValidation
37936 2004-08-21 13:21 pbartok
37939 - Implemented CanFocus
37940 - Implemented CanSelect
37941 - Implemented Capture
37943 2004-08-21 12:35 pbartok
37946 - Fixed bug with Async message handling
37947 - Implemented getting the ModifierKeys
37949 2004-08-21 12:32 jackson
37951 * AsyncMethodResult.cs: Make sure we have the mutex before we
37952 release it. Fixes BeginInvoke on windows
37954 2004-08-21 11:31 pbartok
37956 * XplatUIWin32.cs, XplatUIX11.cs:
37957 - Drivers now return proper mouse state
37959 2004-08-21 10:54 jackson
37961 * Control.cs: Implement EndInvoke
37963 2004-08-21 10:48 jackson
37965 * Timer.cs: Remove unneeded finalizer
37967 2004-08-20 19:52 ravindra
37969 * ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs: Improvments
37970 in mouse event handling in the ToolBar control.
37972 2004-08-20 19:50 ravindra
37974 * ImageList.cs: Changed draw method to use the arguments passed in
37977 2004-08-20 18:58 pbartok
37979 * XplatUIStructs.cs:
37980 - Added private message for async communication
37982 2004-08-20 17:38 ravindra
37984 * Control.cs: Made RightToLeft property virtual and removed a
37987 2004-08-20 14:39 jordi
37989 * ThemeGtk.cs: use style_attach
37991 2004-08-20 14:39 pbartok
37994 - Added jackson's Async code from X11 to Win32
37996 2004-08-20 14:09 pbartok
37999 - Added all new files
38001 2004-08-20 14:09 pbartok
38004 - Added call to set window background color
38006 2004-08-20 14:03 pbartok
38008 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
38009 - Added method for setting the window background
38011 2004-08-20 14:02 pbartok
38014 - Added method for setting the background color
38015 - Added handling for erasing the window background
38017 2004-08-20 13:45 jordi
38019 * TrackBar.cs: fixes timer, new properties and methods
38021 2004-08-20 13:34 jackson
38023 * ScrollBar.cs: Use the SWF timer so callbacks are run in the
38026 2004-08-20 13:22 jackson
38028 * Timer.cs: Timer Tick events are now handed through Controls Async
38029 mechanism so the callbacks are executed in the same thread as X
38031 2004-08-20 13:19 jackson
38033 * XplatUIDriver.cs: Expose functionality to send async messages
38036 2004-08-20 13:18 jackson
38038 * Control.cs: Implement Begininvoke
38040 2004-08-20 13:14 jackson
38042 * XplatUI.cs, XplatUIWin32.cs: Expose functionality to send async
38043 messages through the driver
38045 2004-08-20 13:12 jackson
38047 * XplatUIX11.cs: Lock before all X operations. Also added Async
38048 method functionality through XSendEvent
38050 2004-08-20 13:11 jackson
38052 * X11Structs.cs: Use IntPtrs for ClientMessage extra data (TODO:
38053 This will screw up on 64 bit systems)
38055 2004-08-20 13:10 jackson
38057 * AsyncMethodData.cs, AsyncMethodResult.cs: Classes for sending
38058 Async messages through X/Win32
38060 2004-08-19 19:39 pbartok
38063 - Updated code to match new HandleData.DeviceContext type
38065 2004-08-19 19:38 pbartok
38068 - Made DeviceContext a generic object to allow usage from various
38070 - Added support for queueing Windows messages
38072 2004-08-19 19:37 pbartok
38075 - Added generation of MouseEnter, MouseLeave and MouseHover events
38076 - Added cleanup on EndPaint
38078 2004-08-19 19:17 pbartok
38081 - Added handling of WM_MOUSEHOVER
38082 - Worked around 'bug' in Win32 WM_MOUSE_ENTER/WM_MOUSE_LEAVE driver
38085 2004-08-19 18:55 jordi
38087 * ThemeGtk.cs: fixes button order
38089 2004-08-19 18:12 jordi
38091 * Theme.cs, ThemeWin32Classic.cs: fixes methods signature
38093 2004-08-19 17:09 pbartok
38096 - Added Right property
38097 - Added RightToLeft property
38099 2004-08-19 16:27 jordi
38101 * ThemeGtk.cs: experimental GTK theme support
38103 2004-08-19 16:26 jordi
38105 * ITheme.cs, Theme.cs: move themes from an interface to a class
38107 2004-08-19 16:25 jordi
38109 * Control.cs, ScrollBar.cs, ThemeEngine.cs, ThemeWin32Classic.cs:
38112 2004-08-19 16:04 pbartok
38115 - Added colormap basics
38116 - Added a way to re-initialize with a different display handle
38117 - Fixed setting of the window background color
38118 - Added various X11 imports related to colors and colormaps
38120 2004-08-19 15:51 pbartok
38123 - Removed packing hints (Paolo suggested this a while back)
38124 - fixed colormap type
38125 - Added default Atom types
38126 - Added Screen and color structs and enums
38128 2004-08-19 15:39 pbartok
38131 - Added missing Draw() method
38132 - Added missing RecreateHandle event
38134 2004-08-19 15:30 pbartok
38137 - Added handling of WM_CLOSE
38139 2004-08-18 13:16 jordi
38141 * ITheme.cs, ThemeWin32Classic.cs, XplatUIWin32.cs: Move colors to
38144 2004-08-18 09:56 jordi
38146 * ScrollBar.cs: fixes to scrollbar: steps and multiple timers
38148 2004-08-17 15:31 ravindra
38150 * SWF.csproj: Updated project.
38152 2004-08-17 15:25 pbartok
38155 - Drawing improvement; don't call UpdateBounds if we are not visible
38156 (or have been minimized)
38158 2004-08-17 15:24 pbartok
38161 - Finished IsVisible
38162 - Added Win32GetWindowPlacement
38164 2004-08-17 15:08 jackson
38166 * Panel.cs: Initial checkin of the Panel
38168 2004-08-17 14:25 pbartok
38171 - Fixed broken handling of default window sizes
38173 2004-08-17 13:29 jackson
38175 * ThemeWin32Classic.cs: Don't use KnownColor to create colours. It
38176 has a large startup time.
38178 2004-08-17 10:25 jackson
38180 * HandleData.cs: union areas properly
38182 2004-08-17 10:12 jackson
38184 * HandleData.cs: union areas properly
38186 2004-08-16 20:00 ravindra
38188 * ToolBar.cs, ToolBarButton.cs: Added attributes.
38190 2004-08-16 18:48 ravindra
38192 * ToolBar.cs: Added attributes.
38194 2004-08-16 17:17 ravindra
38196 * SWF.csproj: Updated project.
38198 2004-08-16 17:16 jackson
38200 * XplatUIX11.cs: Check for more expose events before sending a
38201 WM_PAINT so they can all be grouped together. This makes dragging a
38202 window across another window redraw in a sane way.
38204 2004-08-16 15:47 pbartok
38207 - Added handling of WM_MOUSE_ENTER & WM_MOUSE_LEAVE to
38208 support OnMouseEnter/Leave()
38209 - Added WS_CLIPSIBLINGS and WS_CLIPCHILDREN window styles to improve
38212 2004-08-16 15:46 pbartok
38214 * XplatUIStructs.cs, XplatUIX11.cs:
38215 - Added WM_MOUSE_ENTER & WM_MOUSE_LEAVE to support
38216 OnMouseEnter/Leave()
38218 2004-08-16 15:34 jackson
38220 * XplatUIX11.cs: Group multiple expose events in HandleData, make
38221 sure messages get the message field set to WM_NULL if they are not
38224 2004-08-16 15:24 jackson
38226 * HandleData.cs: HandleData is used for storing message information
38229 2004-08-15 17:23 ravindra
38231 * ColorDepth.cs: Added attribute.
38233 2004-08-15 17:23 ravindra
38235 * SWF.csproj: Updated project for ToolBar Control.
38237 2004-08-15 17:20 ravindra
38239 * ITheme.cs, ThemeWin32Classic.cs: Changes to Theme for ToolBar
38240 control and also dos2unix format.
38242 2004-08-15 17:13 ravindra
38244 * ToolBar.cs, ToolBarAppearance.cs, ToolBarButton.cs,
38245 ToolBarButtonClickEventArgs.cs,
38246 ToolBarButtonClickEventHandler.cs, ToolBarButtonStyle.cs,
38247 ToolBarTextAlign.cs: First Implementation of ToolBar control.
38249 2004-08-15 15:31 pbartok
38252 - First (mostly) working version
38254 2004-08-13 16:15 pbartok
38257 - Fixed Anchor default
38259 2004-08-13 15:43 pbartok
38262 - Changed GetCursorPos signature
38264 2004-08-13 15:42 pbartok
38266 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
38267 - Changed signature for GetCursorPos
38269 2004-08-13 15:25 pbartok
38273 - Fixed resizing/exposure handling
38275 2004-08-13 15:22 jordi
38277 * ThemeWin32Classic.cs: removes redundant code and fixes issues
38280 2004-08-13 14:55 jordi
38282 * TrackBar.cs: change from wndproc to events
38284 2004-08-13 13:00 jordi
38286 * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
38287 XplatUIX11.cs: implements PointToClient (ScreenToClient)
38289 2004-08-13 12:53 pbartok
38292 - Changed GetWindowPos to also provide client area size
38293 - Fixed broken prototypes for several win32 functions
38295 2004-08-13 12:53 pbartok
38297 * XplatUI.cs, XplatUIDriver.cs:
38298 - Changed GetWindowPos to also provide client area size
38300 2004-08-13 12:52 pbartok
38303 - Added generation of WM_POSCHANGED
38304 - Changed GetWindowPos to also provide client area size
38306 2004-08-13 12:52 pbartok
38309 - Added Dispose() and destructor
38310 - Fixed resizing and bounds calculation
38312 - Added memory savings for invisible windows
38314 2004-08-13 12:46 jordi
38316 * TrackBar.cs: adds timer and grap window
38318 2004-08-13 10:25 jackson
38320 * Timer.cs: SWF Timer
38322 2004-08-12 16:59 pbartok
38324 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
38325 - Implemented method to get current mouse position
38327 2004-08-12 14:29 jordi
38329 * ITheme.cs, ThemeWin32Classic.cs, TrackBar.cs: Trackbar
38330 enhancement, fix mouse problems, highli thumb, etc
38332 2004-08-12 13:31 pbartok
38335 - Fixed Anchoring bugs
38337 2004-08-12 13:01 jackson
38339 * StatusBar.cs: Don't forget things
38341 2004-08-12 12:54 jackson
38343 * ThemeWin32Classic.cs: Handle owner draw status bars
38345 2004-08-12 12:54 jackson
38347 * StatusBar.cs: Implement missing properties, events, and methods.
38348 Handle mouse clicking
38350 2004-08-12 10:19 jackson
38352 * StatusBarPanelClickEventArgs.cs,
38353 StatusBarPanelClickEventHandler.cs: Classes for handling status
38354 bar panel click events
38356 2004-08-12 10:10 jackson
38358 * Control.cs: Add missing properties
38360 2004-08-12 09:46 pbartok
38362 * BindingsManagerBase.cs:
38363 - Name changed to BindingManagerBase.cs
38365 2004-08-12 09:25 jordi
38367 * ScrollableControl.cs: calls ctrlbase instead of exeception
38369 2004-08-11 16:28 pbartok
38371 * InputLanguageChangingEventArgs.cs:
38372 - Never check in before compiling. Fixes the last check-in
38374 2004-08-11 16:26 pbartok
38376 * InputLanguageChangingEventArgs.cs:
38377 - More signature fixes
38379 2004-08-11 16:20 pbartok
38381 * BindingManagerBase.cs, BindingMemberInfo.cs, ContainerControl.cs,
38382 Control.cs, ControlEventArgs.cs, ControlPaint.cs, Form.cs,
38383 ImageListStreamer.cs, InputLanguage.cs,
38384 InputLanguageChangedEventArgs.cs,
38385 InputLanguageChangingEventArgs.cs, Keys.cs, LayoutEventArgs.cs,
38386 LinkArea.cs, Message.cs, MouseEventArgs.cs, NativeWindow.cs,
38387 ScrollEventArgs.cs, ScrollableControl.cs, XplatUI.cs,
38388 XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
38391 2004-08-11 16:16 pbartok
38395 - Added .Net 1.1 method
38397 2004-08-11 15:25 pbartok
38400 - Fixed BindingManagerBase.cs filename
38402 2004-08-11 15:22 pbartok
38404 * BindingManagerBase.cs:
38405 - Was checked in with wrong filename
38407 2004-08-11 14:50 pbartok
38412 2004-08-11 13:41 jordi
38414 * XplatUIWin32.cs: Fixes ClientRect
38416 2004-08-11 13:19 pbartok
38418 * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
38420 - We had SetWindowPos and MoveWindow to set window positions and
38421 size, removed MoveWindow. We have GetWindowPos, so it made sense to
38422 keep SetWindowPos as matching counterpart
38423 - Added some X11 sanity checking
38425 2004-08-11 12:59 pbartok
38428 - Major cleanup of my SetBounds/SetBoundsCore/UpdateBounds mess
38429 (It seems that SetBounds is just a front for SetBoundsCore and
38430 SetBoundsCore updates the underlying window system and
38431 UpdateBounds is responsible for updating the variables associated
38432 with the Control and sending the events)
38433 - Major cleanup of Size handling; we now have two sizes, client_size
38434 and bounds. Bounds defines the window with decorations, client_size
38437 2004-08-11 12:55 pbartok
38439 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
38440 - Added method to calculate difference between decorated window and
38443 2004-08-11 12:54 pbartok
38446 - Forcing redraw on resize
38448 2004-08-11 11:43 pbartok
38451 - Removed disposing of the actual images when the list is disposed
38453 2004-08-11 09:13 pbartok
38456 - Now properly reparents windows
38458 2004-08-11 08:37 pbartok
38463 2004-08-11 07:47 pbartok
38466 - Rewrote the collection stuff. Might not be as fast now, not
38467 keeping the number of children around and accessible directly, but
38468 it's more straightforward
38470 2004-08-11 07:44 pbartok
38472 * AccessibleObject.cs:
38473 - Fixed to match ControlCollection rewrite
38475 2004-08-11 07:43 pbartok
38478 - Added missing creation of the collection list
38480 2004-08-10 20:08 jackson
38482 * StatusBar.cs: Get the paint message from WndProc
38484 2004-08-10 19:31 jackson
38486 * ThemeWin32Classic.cs: Create Brushes as little as possible
38488 2004-08-10 19:20 jackson
38490 * UICues.cs: Add Flags attribute
38492 2004-08-10 19:19 jackson
38494 * StatusBarPanel.cs: Signature cleanup
38496 2004-08-10 19:10 jackson
38498 * StatusBarDrawItemEventArgs.cs, StatusBarDrawItemEventHandler.cs:
38499 Initial implementation of status bar item drawing
38501 2004-08-10 17:27 jordi
38503 * TrackBar.cs: add missing methods, properties, and restructure to
38506 2004-08-10 16:24 jackson
38508 * AccessibleStates.cs, Border3DSide.cs, Border3DStyle.cs,
38509 ButtonState.cs, ControlStyles.cs, DragDropEffects.cs: Add flags
38512 2004-08-10 13:21 jordi
38514 * ITheme.cs, ScrollBar.cs, ThemeWin32Classic.cs: scrollbar
38515 enhancements and standarize on win colors defaults
38517 2004-08-10 12:52 jackson
38519 * DrawItemEventArgs.cs, DrawItemState.cs, ITheme.cs,
38520 ThemeWin32Classic.cs: Implement DrawItem functionality
38522 2004-08-10 12:47 jordi
38524 * XplatUIWin32.cs: Calls InvalidateRect before UpdateWindow
38526 2004-08-10 12:32 jordi
38528 * Control.cs: throw ontextchange event
38530 2004-08-10 11:43 pbartok
38533 - Added more to the still unfinished Dock/Anchor layout code
38535 2004-08-10 11:39 pbartok
38537 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
38538 - Added GetWindowPos method
38540 2004-08-10 11:36 pbartok
38543 - Implemented several methods
38545 2004-08-10 09:47 jackson
38547 * TrackBar.cs: Allow control to handle buffering
38549 2004-08-10 09:41 jackson
38551 * ProgressBar.cs, ScrollBar.cs: Allow control to handle buffering
38553 2004-08-10 09:24 jackson
38555 * Label.cs, LinkLabel.cs: Let Control handle buffering.
38557 2004-08-10 09:09 jackson
38559 * StatusBar.cs: Let Control handle all the buffering.
38561 2004-08-10 09:08 jackson
38563 * Control.cs: Control will now handle the buffering code, so each
38564 control does not have to implement this.
38566 2004-08-10 08:34 jackson
38568 * XplatUIDriver.cs: Use default colors from the theme
38570 2004-08-09 17:12 pbartok
38573 - Fixed several bugs Ravindra pointed out
38575 2004-08-09 16:11 pbartok
38578 - Added incomplete dock layout code
38579 - Added support for mouse wheel
38581 2004-08-09 16:09 pbartok
38584 - Added handling for middle and right mousebutton
38585 - Added handling for mouse wheel
38586 - Added handling for key state and mouse state and position
38587 - Now properly generates WM_xBUTTONx messages and WM_MOUSEWHEEL
38590 2004-08-09 15:40 jackson
38592 * StatusBarPanel.cs, StatusBarPanelAutoSize.cs,
38593 StatusBarPanelBorderStyle.cs, StatusBarPanelStyle.cs: Initial
38596 2004-08-09 15:37 jackson
38598 * StatusBar.cs: Initial implementation of StatusBar
38600 2004-08-09 15:36 jackson
38602 * ITheme.cs: Add support for drawing status bar and getting status
38605 2004-08-09 15:35 pbartok
38610 2004-08-09 15:34 jackson
38612 * ThemeWin32Classic.cs: Add support for drawing status bar and get
38613 status bar item sizes
38615 2004-08-09 15:21 jackson
38617 * ThemeWin32Classic.cs: Use known colors for default control
38620 2004-08-09 15:12 jackson
38622 * ThemeWin32Classic.cs: Make the default font static, it is static
38623 in control so this doesn't change functionality and creating fonts
38626 2004-08-09 14:56 pbartok
38629 - Added GrabMode enum
38631 2004-08-09 14:55 pbartok
38633 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
38634 - Removed Run method, was only required for initial development
38636 2004-08-09 14:51 pbartok
38638 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
38639 - Implemented GrabWindow/ReleaseWindow methods to allow pointer
38642 2004-08-09 13:48 pbartok
38645 - Fixed default sizing for child windows
38647 2004-08-09 12:56 pbartok
38650 - Added generation of WM_DESTROY message
38651 - Added handling of window manager induced shutdown
38653 2004-08-09 11:31 jackson
38655 * ThemeWin32Classic.cs: New names for control properties
38657 2004-08-09 11:25 jackson
38659 * Control.cs: Use new color names
38661 2004-08-09 11:02 jackson
38663 * XplatUI.cs: Get default window properties from the theme
38665 2004-08-09 11:01 jackson
38667 * ITheme.cs: The theme engine now controls default window
38670 2004-08-09 11:00 jackson
38672 * ThemeWin32Classic.cs: Add default window color properties
38674 2004-08-09 10:17 jackson
38676 * ThemeWin32Classic.cs: Use correct default back color
38678 2004-08-09 10:05 jackson
38680 * XplatUIWin32.cs, XplatUIX11.cs: These properties are handled by
38683 2004-08-09 09:56 jackson
38685 * XplatUI.cs: Remove defaults, these are handled by the theme now.
38687 2004-08-09 09:54 jackson
38689 * Control.cs: Get default properties from the theme.
38691 2004-08-09 09:53 jackson
38693 * ITheme.cs: Themes now handle default control properties
38695 2004-08-09 09:53 jackson
38697 * ThemeWin32Classic.cs: Themes now handle default control
38698 properties so coloring will be consistent
38700 2004-08-08 16:54 jordi
38702 * ITheme.cs, ThemeWin32Classic.cs: Label BorderStyles
38704 2004-08-08 15:08 jordi
38706 * XplatUIX11.cs: fixes keyboard crash
38708 2004-08-08 13:47 jordi
38710 * Label.cs: add cvs header info
38712 2004-08-08 12:09 jackson
38714 * ThemeWin32Classic.cs: Add pen_buttonface
38716 2004-08-08 11:52 jordi
38718 * Label.cs, LinkLabel.cs: [no log message]
38720 2004-08-08 11:34 jordi
38722 * ThemeWin32Classic.cs: Use Windows Standard Colours
38724 2004-08-07 17:32 jordi
38726 * TrackBar.cs: throw exceptions of invalid enums values
38728 2004-08-07 17:31 jordi
38730 * Label.cs, LinkLabel.cs, ThemeWin32Classic.cs: fixes label bug and
38733 2004-08-07 16:56 jackson
38735 * HorizontalAlignment.cs: Initial checkin
38737 2004-08-07 13:16 jordi
38739 * Label.cs, LinkLabel.cs: throw exceptions, fixes events, missing
38742 2004-08-07 13:05 jordi
38744 * ITheme.cs, ThemeWin32Classic.cs: Theme colour support and
38745 GetSysColor defines
38747 2004-08-06 18:01 pbartok
38749 * ThemeWin32Classic.cs:
38750 - Fixed some rounding issues with float/int
38752 2004-08-06 18:00 jackson
38754 * DockStyle.cs, AnchorStyles.cs:
38756 Add flags and serializable attributes.
38758 2004-08-06 17:46 pbartok
38761 - Implemented GetParent
38763 2004-08-06 17:18 pbartok
38766 - Fixed some rounding issues with float/int
38768 2004-08-06 17:17 pbartok
38770 * X11Structs.cs, XplatUIX11.cs:
38771 - Fixed Refresh and Invalidate
38773 2004-08-06 15:30 pbartok
38775 * Control.cs, X11Structs.cs, XplatUIX11.cs:
38776 - Fixed recursive loop when resizing
38777 - Improved/fixed redrawing on expose messages
38779 2004-08-06 09:53 jordi
38781 * Control.cs, X11Structs.cs, XplatUIWin32.cs, XplatUIX11.cs: X11
38782 keyboard navigation
38784 2004-08-06 08:02 pbartok
38786 * X11Structs.cs, XplatUIX11.cs:
38787 - Fixed reparenting
38788 - Fixed window border creation
38790 2004-08-05 15:38 pbartok
38793 - Attempted fix for reparenting problems
38795 2004-08-04 15:14 pbartok
38798 - Fixed Invalidation bug (calculated wrong client area)
38799 - Added ClientSize setter
38801 2004-08-04 15:13 pbartok
38804 - Added AutoScale properties
38806 2004-08-04 15:13 pbartok
38809 - Added latest files
38811 2004-08-04 14:11 pbartok
38813 * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
38815 - Added Invalidate handling
38817 2004-08-03 17:09 jordi
38819 * XplatUIDriver.cs: fixes spelling mistake
38821 2004-07-27 09:53 jordi
38823 * TrackBar.cs: fixes trackbar events, def classname, methods
38826 2004-07-27 09:29 jordi
38828 * ScrollBar.cs: fixes scrollbar events
38830 2004-07-27 04:38 jordi
38832 * Control.cs: changes to be able to run winforms samples
38834 2004-07-26 11:42 jordi
38836 * ControlPaint.cs, ITheme.cs, ProgressBar.cs, ScrollBar.cs,
38837 ThemeEngine.cs, ThemeWin32Classic.cs, TrackBar.cs: Theme support
38839 2004-07-26 05:41 jordi
38841 * MessageBox.cs, MessageBoxButtons.cs, MessageBoxDefaultButton.cs,
38842 MessageBoxIcon.cs, MessageBoxOptions.cs: initial messagebox
38845 2004-07-22 09:22 jordi
38847 * LinkLabel.cs, LinkLabelLinkClickedEventHandler.cs: link label:
38848 check link overlapping, implement events, and fixes
38850 2004-07-21 10:28 jordi
38852 * DialogResult.cs, IButtonControl.cs: fixes comments filenames
38854 2004-07-21 10:19 jordi
38856 * DialogResult.cs, IButtonControl.cs, Label.cs, LinkArea.cs,
38857 LinkBehavior.cs, LinkClickedEventArgs.cs, LinkLabel.cs,
38858 LinkLabelLinkClickedEventArgs.cs,
38859 LinkLabelLinkClickedEventHandler.cs, LinkState.cs,
38860 XplatUIWin32.cs, LinkClickedEventHandler.cs: LinkLabel control
38863 2004-07-19 13:09 jordi
38865 * Control.cs, Label.cs: label control re-written: added missing
38866 functionlity, events, and properties
38868 2004-07-19 10:49 jordi
38870 * Control.cs: fixes SetBounds logic
38872 2004-07-19 01:29 jordi
38874 * Control.cs: Call RefreshWindow only if the window has created
38876 2004-07-15 14:05 pbartok
38878 * ColorDepth.cs, ImageList.cs, ImageListStreamer.cs, SWF.csproj:
38879 - Implemented ImageList and ImageList.ImageCollection classes
38880 - Added ColorDepth enumeration
38881 - Updated SWF VS.Net project
38883 2004-07-15 11:06 jordi
38885 * XplatUIStructs.cs: added MsgButons enum
38887 2004-07-15 11:03 jordi
38889 * Control.cs: added basic mouse handeling events
38891 2004-07-15 03:38 jordi
38893 * Orientation.cs, TickStyle.cs, TrackBar.cs: Horizontal and
38894 Vertical TrackBar control implementation
38896 2004-07-13 09:33 jordi
38898 * HScrollBar.cs, VScrollBar.cs: vertical and hort. classes commit
38900 2004-07-13 09:31 jordi
38902 * Control.cs, Form.cs: commit: new properties and fixes form size
38905 2004-07-09 14:13 miguel
38907 * ProgressBar.cs: Spelling
38909 2004-07-09 11:25 pbartok
38912 - Removed usage of Rectangle for drawing. Miguel pointed out it's
38915 2004-07-09 11:17 miguel
38917 * ProgressBar.cs: 2004-07-09 Miguel de Icaza <miguel@ximian.com>
38919 * ProgressBar.cs: Fixed spelling for `block'
38921 drawProgressBar: renamed to `DrawProgressBar' to follow the coding
38924 Avoid using the += on rect.X, that exposed a bug in the compiler.
38926 2004-07-08 23:21 pbartok
38928 * AccessibleObject.cs, AccessibleRole.cs, AccessibleStates.cs,
38929 AnchorStyles.cs, Application.cs, ApplicationContext.cs,
38930 BaseCollection.cs, Binding.cs, BindingContext.cs,
38931 BindingMemberInfo.cs, BindingsCollection.cs,
38932 BindingsManagerBase.cs, Border3DSide.cs, Border3DStyle.cs,
38933 BorderStyle.cs, BoundsSpecified.cs, ButtonBorderStyle.cs,
38934 ButtonState.cs, CaptionButton.cs, CheckBox.cs,
38935 ContainerControl.cs, Control.cs, ControlEventArgs.cs,
38936 ControlEventHandler.cs, ControlPaint.cs, ControlStyles.cs,
38937 ConvertEventArgs.cs, ConvertEventHandler.cs, Copyright,
38938 CreateParams.cs, DockStyle.cs, DragAction.cs, DragDropEffects.cs,
38939 DragEventArgs.cs, DragEventHandler.cs, FlatStyle.cs, Form.cs,
38940 FrameStyle.cs, GiveFeedbackEventArgs.cs,
38941 GiveFeedbackEventHandler.cs, HelpEventArgs.cs,
38942 HelpEventHandler.cs, IContainerControl.cs, IDataObject.cs,
38943 IMessageFilter.cs, IWin32Window.cs, ImeMode.cs, InputLanguage.cs,
38944 InputLanguageChangedEventArgs.cs,
38945 InputLanguageChangedEventHandler.cs,
38946 InputLanguageChangingEventArgs.cs,
38947 InputLanguageChangingEventHandler.cs, InputLanguageCollection.cs,
38948 InvalidateEventArgs.cs, InvalidateEventHandler.cs,
38949 KeyEventArgs.cs, KeyEventHandler.cs, KeyPressEventArgs.cs,
38950 KeyPressEventHandler.cs, Keys.cs, Label.cs, LayoutEventArgs.cs,
38951 LayoutEventHandler.cs, MenuGlyph.cs, Message.cs, MouseButtons.cs,
38952 MouseEventArgs.cs, MouseEventHandler.cs, NativeWindow.cs,
38953 PaintEventArgs.cs, PaintEventHandler.cs, ProgressBar.cs,
38954 QueryAccessibilityHelpEventArgs.cs,
38955 QueryAccessibilityHelpEventHandler.cs,
38956 QueryContinueDragEventArgs.cs, QueryContinueDragEventHandler.cs,
38957 RightToLeft.cs, SWF.csproj, SWF.csproj.user, ScrollBar.cs,
38958 ScrollBars.cs, ScrollButton.cs, ScrollEventArgs.cs,
38959 ScrollEventHandler.cs, ScrollEventType.cs, ScrollableControl.cs,
38960 TODO, TODOAttribute.cs, UICues.cs, UICuesEventArgs.cs,
38961 UICuesEventHandler.cs, X11Structs.cs, XplatUI.cs,
38962 XplatUIDriver.cs, XplatUIStructs.cs, XplatUIWin32.cs,
38963 XplatUIX11.cs, lang.cs: